@botfabrik/engine-webclient 4.100.7 → 4.100.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))s(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function i(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(u){if(u.ep)return;u.ep=!0;const f=i(u);fetch(u.href,f)}})();var Co=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bu(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Vf={exports:{}},Ul={};/**
1
+ (function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))s(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function i(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(u){if(u.ep)return;u.ep=!0;const f=i(u);fetch(u.href,f)}})();var Co=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vu(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Vf={exports:{}},Bl={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var ey;function iS(){if(ey)return Ul;ey=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(s,u,f){var d=null;if(f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),"key"in u){f={};for(var h in u)h!=="key"&&(f[h]=u[h])}else f=u;return u=f.ref,{$$typeof:n,type:s,key:d,ref:u!==void 0?u:null,props:f}}return Ul.Fragment=a,Ul.jsx=i,Ul.jsxs=i,Ul}var ty;function lS(){return ty||(ty=1,Vf.exports=iS()),Vf.exports}var y=lS(),Yf={exports:{}},jl={},Pf={exports:{}},Xf={};/**
9
+ */var ey;function iS(){if(ey)return Bl;ey=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(s,u,f){var d=null;if(f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),"key"in u){f={};for(var h in u)h!=="key"&&(f[h]=u[h])}else f=u;return u=f.ref,{$$typeof:n,type:s,key:d,ref:u!==void 0?u:null,props:f}}return Bl.Fragment=a,Bl.jsx=i,Bl.jsxs=i,Bl}var ty;function lS(){return ty||(ty=1,Vf.exports=iS()),Vf.exports}var y=lS(),Yf={exports:{}},Ul={},Pf={exports:{}},Xf={};/**
10
10
  * @license React
11
11
  * scheduler.production.js
12
12
  *
@@ -22,7 +22,7 @@
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var ry;function uS(){if(ry)return me;ry=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),A=Symbol.iterator;function U(O){return O===null||typeof O!="object"?null:(O=A&&O[A]||O["@@iterator"],typeof O=="function"?O:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,I={};function E(O,q,P){this.props=O,this.context=q,this.refs=I,this.updater=P||x}E.prototype.isReactComponent={},E.prototype.setState=function(O,q){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,q,"setState")},E.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function C(){}C.prototype=E.prototype;function S(O,q,P){this.props=O,this.context=q,this.refs=I,this.updater=P||x}var H=S.prototype=new C;H.constructor=S,k(H,E.prototype),H.isPureReactComponent=!0;var N=Array.isArray;function Z(){}var X={H:null,A:null,T:null,S:null},te=Object.prototype.hasOwnProperty;function de(O,q,P){var W=P.ref;return{$$typeof:n,type:O,key:q,ref:W!==void 0?W:null,props:P}}function ye(O,q){return de(O.type,q,O.props)}function re(O){return typeof O=="object"&&O!==null&&O.$$typeof===n}function pe(O){var q={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(P){return q[P]})}var ce=/\/+/g;function Xe(O,q){return typeof O=="object"&&O!==null&&O.key!=null?pe(""+O.key):q.toString(36)}function Ne(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(Z,Z):(O.status="pending",O.then(function(q){O.status==="pending"&&(O.status="fulfilled",O.value=q)},function(q){O.status==="pending"&&(O.status="rejected",O.reason=q)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function G(O,q,P,W,J){var fe=typeof O;(fe==="undefined"||fe==="boolean")&&(O=null);var _e=!1;if(O===null)_e=!0;else switch(fe){case"bigint":case"string":case"number":_e=!0;break;case"object":switch(O.$$typeof){case n:case a:_e=!0;break;case b:return _e=O._init,G(_e(O._payload),q,P,W,J)}}if(_e)return J=J(O),_e=W===""?"."+Xe(O,0):W,N(J)?(P="",_e!=null&&(P=_e.replace(ce,"$&/")+"/"),G(J,q,P,"",function($t){return $t})):J!=null&&(re(J)&&(J=ye(J,P+(J.key==null||O&&O.key===J.key?"":(""+J.key).replace(ce,"$&/")+"/")+_e)),q.push(J)),1;_e=0;var We=W===""?".":W+":";if(N(O))for(var Ge=0;Ge<O.length;Ge++)W=O[Ge],fe=We+Xe(W,Ge),_e+=G(W,q,P,fe,J);else if(Ge=U(O),typeof Ge=="function")for(O=Ge.call(O),Ge=0;!(W=O.next()).done;)W=W.value,fe=We+Xe(W,Ge++),_e+=G(W,q,P,fe,J);else if(fe==="object"){if(typeof O.then=="function")return G(Ne(O),q,P,W,J);throw q=String(O),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return _e}function $(O,q,P){if(O==null)return O;var W=[],J=0;return G(O,W,"","",function(fe){return q.call(P,fe,J++)}),W}function ne(O){if(O._status===-1){var q=O._result;q=q(),q.then(function(P){(O._status===0||O._status===-1)&&(O._status=1,O._result=P)},function(P){(O._status===0||O._status===-1)&&(O._status=2,O._result=P)}),O._status===-1&&(O._status=0,O._result=q)}if(O._status===1)return O._result.default;throw O._result}var Se=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},Ae={map:$,forEach:function(O,q,P){$(O,function(){q.apply(this,arguments)},P)},count:function(O){var q=0;return $(O,function(){q++}),q},toArray:function(O){return $(O,function(q){return q})||[]},only:function(O){if(!re(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return me.Activity=_,me.Children=Ae,me.Component=E,me.Fragment=i,me.Profiler=u,me.PureComponent=S,me.StrictMode=s,me.Suspense=m,me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,me.__COMPILER_RUNTIME={__proto__:null,c:function(O){return X.H.useMemoCache(O)}},me.cache=function(O){return function(){return O.apply(null,arguments)}},me.cacheSignal=function(){return null},me.cloneElement=function(O,q,P){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var W=k({},O.props),J=O.key;if(q!=null)for(fe in q.key!==void 0&&(J=""+q.key),q)!te.call(q,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&q.ref===void 0||(W[fe]=q[fe]);var fe=arguments.length-2;if(fe===1)W.children=P;else if(1<fe){for(var _e=Array(fe),We=0;We<fe;We++)_e[We]=arguments[We+2];W.children=_e}return de(O.type,J,W)},me.createContext=function(O){return O={$$typeof:d,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:f,_context:O},O},me.createElement=function(O,q,P){var W,J={},fe=null;if(q!=null)for(W in q.key!==void 0&&(fe=""+q.key),q)te.call(q,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(J[W]=q[W]);var _e=arguments.length-2;if(_e===1)J.children=P;else if(1<_e){for(var We=Array(_e),Ge=0;Ge<_e;Ge++)We[Ge]=arguments[Ge+2];J.children=We}if(O&&O.defaultProps)for(W in _e=O.defaultProps,_e)J[W]===void 0&&(J[W]=_e[W]);return de(O,fe,J)},me.createRef=function(){return{current:null}},me.forwardRef=function(O){return{$$typeof:h,render:O}},me.isValidElement=re,me.lazy=function(O){return{$$typeof:b,_payload:{_status:-1,_result:O},_init:ne}},me.memo=function(O,q){return{$$typeof:g,type:O,compare:q===void 0?null:q}},me.startTransition=function(O){var q=X.T,P={};X.T=P;try{var W=O(),J=X.S;J!==null&&J(P,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(Z,Se)}catch(fe){Se(fe)}finally{q!==null&&P.types!==null&&(q.types=P.types),X.T=q}},me.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},me.use=function(O){return X.H.use(O)},me.useActionState=function(O,q,P){return X.H.useActionState(O,q,P)},me.useCallback=function(O,q){return X.H.useCallback(O,q)},me.useContext=function(O){return X.H.useContext(O)},me.useDebugValue=function(){},me.useDeferredValue=function(O,q){return X.H.useDeferredValue(O,q)},me.useEffect=function(O,q){return X.H.useEffect(O,q)},me.useEffectEvent=function(O){return X.H.useEffectEvent(O)},me.useId=function(){return X.H.useId()},me.useImperativeHandle=function(O,q,P){return X.H.useImperativeHandle(O,q,P)},me.useInsertionEffect=function(O,q){return X.H.useInsertionEffect(O,q)},me.useLayoutEffect=function(O,q){return X.H.useLayoutEffect(O,q)},me.useMemo=function(O,q){return X.H.useMemo(O,q)},me.useOptimistic=function(O,q){return X.H.useOptimistic(O,q)},me.useReducer=function(O,q,P){return X.H.useReducer(O,q,P)},me.useRef=function(O){return X.H.useRef(O)},me.useState=function(O){return X.H.useState(O)},me.useSyncExternalStore=function(O,q,P){return X.H.useSyncExternalStore(O,q,P)},me.useTransition=function(){return X.H.useTransition()},me.version="19.2.0",me}var iy;function vu(){return iy||(iy=1,Zf.exports=uS()),Zf.exports}var Qf={exports:{}},Ut={};/**
25
+ */var ry;function uS(){if(ry)return me;ry=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),A=Symbol.iterator;function U(O){return O===null||typeof O!="object"?null:(O=A&&O[A]||O["@@iterator"],typeof O=="function"?O:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,I={};function E(O,q,P){this.props=O,this.context=q,this.refs=I,this.updater=P||x}E.prototype.isReactComponent={},E.prototype.setState=function(O,q){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,q,"setState")},E.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function C(){}C.prototype=E.prototype;function S(O,q,P){this.props=O,this.context=q,this.refs=I,this.updater=P||x}var H=S.prototype=new C;H.constructor=S,k(H,E.prototype),H.isPureReactComponent=!0;var N=Array.isArray;function Z(){}var X={H:null,A:null,T:null,S:null},te=Object.prototype.hasOwnProperty;function de(O,q,P){var W=P.ref;return{$$typeof:n,type:O,key:q,ref:W!==void 0?W:null,props:P}}function ye(O,q){return de(O.type,q,O.props)}function re(O){return typeof O=="object"&&O!==null&&O.$$typeof===n}function pe(O){var q={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(P){return q[P]})}var ce=/\/+/g;function Xe(O,q){return typeof O=="object"&&O!==null&&O.key!=null?pe(""+O.key):q.toString(36)}function Ne(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(Z,Z):(O.status="pending",O.then(function(q){O.status==="pending"&&(O.status="fulfilled",O.value=q)},function(q){O.status==="pending"&&(O.status="rejected",O.reason=q)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function G(O,q,P,W,J){var fe=typeof O;(fe==="undefined"||fe==="boolean")&&(O=null);var _e=!1;if(O===null)_e=!0;else switch(fe){case"bigint":case"string":case"number":_e=!0;break;case"object":switch(O.$$typeof){case n:case a:_e=!0;break;case b:return _e=O._init,G(_e(O._payload),q,P,W,J)}}if(_e)return J=J(O),_e=W===""?"."+Xe(O,0):W,N(J)?(P="",_e!=null&&(P=_e.replace(ce,"$&/")+"/"),G(J,q,P,"",function($t){return $t})):J!=null&&(re(J)&&(J=ye(J,P+(J.key==null||O&&O.key===J.key?"":(""+J.key).replace(ce,"$&/")+"/")+_e)),q.push(J)),1;_e=0;var We=W===""?".":W+":";if(N(O))for(var Ge=0;Ge<O.length;Ge++)W=O[Ge],fe=We+Xe(W,Ge),_e+=G(W,q,P,fe,J);else if(Ge=U(O),typeof Ge=="function")for(O=Ge.call(O),Ge=0;!(W=O.next()).done;)W=W.value,fe=We+Xe(W,Ge++),_e+=G(W,q,P,fe,J);else if(fe==="object"){if(typeof O.then=="function")return G(Ne(O),q,P,W,J);throw q=String(O),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return _e}function $(O,q,P){if(O==null)return O;var W=[],J=0;return G(O,W,"","",function(fe){return q.call(P,fe,J++)}),W}function ne(O){if(O._status===-1){var q=O._result;q=q(),q.then(function(P){(O._status===0||O._status===-1)&&(O._status=1,O._result=P)},function(P){(O._status===0||O._status===-1)&&(O._status=2,O._result=P)}),O._status===-1&&(O._status=0,O._result=q)}if(O._status===1)return O._result.default;throw O._result}var Se=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},Ae={map:$,forEach:function(O,q,P){$(O,function(){q.apply(this,arguments)},P)},count:function(O){var q=0;return $(O,function(){q++}),q},toArray:function(O){return $(O,function(q){return q})||[]},only:function(O){if(!re(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return me.Activity=_,me.Children=Ae,me.Component=E,me.Fragment=i,me.Profiler=u,me.PureComponent=S,me.StrictMode=s,me.Suspense=m,me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,me.__COMPILER_RUNTIME={__proto__:null,c:function(O){return X.H.useMemoCache(O)}},me.cache=function(O){return function(){return O.apply(null,arguments)}},me.cacheSignal=function(){return null},me.cloneElement=function(O,q,P){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var W=k({},O.props),J=O.key;if(q!=null)for(fe in q.key!==void 0&&(J=""+q.key),q)!te.call(q,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&q.ref===void 0||(W[fe]=q[fe]);var fe=arguments.length-2;if(fe===1)W.children=P;else if(1<fe){for(var _e=Array(fe),We=0;We<fe;We++)_e[We]=arguments[We+2];W.children=_e}return de(O.type,J,W)},me.createContext=function(O){return O={$$typeof:d,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:f,_context:O},O},me.createElement=function(O,q,P){var W,J={},fe=null;if(q!=null)for(W in q.key!==void 0&&(fe=""+q.key),q)te.call(q,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(J[W]=q[W]);var _e=arguments.length-2;if(_e===1)J.children=P;else if(1<_e){for(var We=Array(_e),Ge=0;Ge<_e;Ge++)We[Ge]=arguments[Ge+2];J.children=We}if(O&&O.defaultProps)for(W in _e=O.defaultProps,_e)J[W]===void 0&&(J[W]=_e[W]);return de(O,fe,J)},me.createRef=function(){return{current:null}},me.forwardRef=function(O){return{$$typeof:h,render:O}},me.isValidElement=re,me.lazy=function(O){return{$$typeof:b,_payload:{_status:-1,_result:O},_init:ne}},me.memo=function(O,q){return{$$typeof:g,type:O,compare:q===void 0?null:q}},me.startTransition=function(O){var q=X.T,P={};X.T=P;try{var W=O(),J=X.S;J!==null&&J(P,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(Z,Se)}catch(fe){Se(fe)}finally{q!==null&&P.types!==null&&(q.types=P.types),X.T=q}},me.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},me.use=function(O){return X.H.use(O)},me.useActionState=function(O,q,P){return X.H.useActionState(O,q,P)},me.useCallback=function(O,q){return X.H.useCallback(O,q)},me.useContext=function(O){return X.H.useContext(O)},me.useDebugValue=function(){},me.useDeferredValue=function(O,q){return X.H.useDeferredValue(O,q)},me.useEffect=function(O,q){return X.H.useEffect(O,q)},me.useEffectEvent=function(O){return X.H.useEffectEvent(O)},me.useId=function(){return X.H.useId()},me.useImperativeHandle=function(O,q,P){return X.H.useImperativeHandle(O,q,P)},me.useInsertionEffect=function(O,q){return X.H.useInsertionEffect(O,q)},me.useLayoutEffect=function(O,q){return X.H.useLayoutEffect(O,q)},me.useMemo=function(O,q){return X.H.useMemo(O,q)},me.useOptimistic=function(O,q){return X.H.useOptimistic(O,q)},me.useReducer=function(O,q,P){return X.H.useReducer(O,q,P)},me.useRef=function(O){return X.H.useRef(O)},me.useState=function(O){return X.H.useState(O)},me.useSyncExternalStore=function(O,q,P){return X.H.useSyncExternalStore(O,q,P)},me.useTransition=function(){return X.H.useTransition()},me.version="19.2.0",me}var iy;function _u(){return iy||(iy=1,Zf.exports=uS()),Zf.exports}var Qf={exports:{}},Ut={};/**
26
26
  * @license React
27
27
  * react-dom.production.js
28
28
  *
@@ -30,7 +30,7 @@
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var ly;function cS(){if(ly)return Ut;ly=1;var n=vu();function a(m){var g="https://react.dev/errors/"+m;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)g+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+m+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(a(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(m,g,b){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:_==null?null:""+_,children:m,containerInfo:g,implementation:b}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,g){if(m==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Ut.createPortal=function(m,g){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(a(299));return f(m,g,null,b)},Ut.flushSync=function(m){var g=d.T,b=s.p;try{if(d.T=null,s.p=2,m)return m()}finally{d.T=g,s.p=b,s.d.f()}},Ut.preconnect=function(m,g){typeof m=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,s.d.C(m,g))},Ut.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},Ut.preinit=function(m,g){if(typeof m=="string"&&g&&typeof g.as=="string"){var b=g.as,_=h(b,g.crossOrigin),A=typeof g.integrity=="string"?g.integrity:void 0,U=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;b==="style"?s.d.S(m,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:_,integrity:A,fetchPriority:U}):b==="script"&&s.d.X(m,{crossOrigin:_,integrity:A,fetchPriority:U,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Ut.preinitModule=function(m,g){if(typeof m=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var b=h(g.as,g.crossOrigin);s.d.M(m,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&s.d.M(m)},Ut.preload=function(m,g){if(typeof m=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var b=g.as,_=h(b,g.crossOrigin);s.d.L(m,b,{crossOrigin:_,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Ut.preloadModule=function(m,g){if(typeof m=="string")if(g){var b=h(g.as,g.crossOrigin);s.d.m(m,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else s.d.m(m)},Ut.requestFormReset=function(m){s.d.r(m)},Ut.unstable_batchedUpdates=function(m,g){return m(g)},Ut.useFormState=function(m,g,b){return d.H.useFormState(m,g,b)},Ut.useFormStatus=function(){return d.H.useHostTransitionStatus()},Ut.version="19.2.0",Ut}var sy;function fS(){if(sy)return Qf.exports;sy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Qf.exports=cS(),Qf.exports}/**
33
+ */var ly;function cS(){if(ly)return Ut;ly=1;var n=_u();function a(m){var g="https://react.dev/errors/"+m;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)g+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+m+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(a(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(m,g,b){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:_==null?null:""+_,children:m,containerInfo:g,implementation:b}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,g){if(m==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Ut.createPortal=function(m,g){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(a(299));return f(m,g,null,b)},Ut.flushSync=function(m){var g=d.T,b=s.p;try{if(d.T=null,s.p=2,m)return m()}finally{d.T=g,s.p=b,s.d.f()}},Ut.preconnect=function(m,g){typeof m=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,s.d.C(m,g))},Ut.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},Ut.preinit=function(m,g){if(typeof m=="string"&&g&&typeof g.as=="string"){var b=g.as,_=h(b,g.crossOrigin),A=typeof g.integrity=="string"?g.integrity:void 0,U=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;b==="style"?s.d.S(m,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:_,integrity:A,fetchPriority:U}):b==="script"&&s.d.X(m,{crossOrigin:_,integrity:A,fetchPriority:U,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Ut.preinitModule=function(m,g){if(typeof m=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var b=h(g.as,g.crossOrigin);s.d.M(m,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&s.d.M(m)},Ut.preload=function(m,g){if(typeof m=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var b=g.as,_=h(b,g.crossOrigin);s.d.L(m,b,{crossOrigin:_,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Ut.preloadModule=function(m,g){if(typeof m=="string")if(g){var b=h(g.as,g.crossOrigin);s.d.m(m,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else s.d.m(m)},Ut.requestFormReset=function(m){s.d.r(m)},Ut.unstable_batchedUpdates=function(m,g){return m(g)},Ut.useFormState=function(m,g,b){return d.H.useFormState(m,g,b)},Ut.useFormStatus=function(){return d.H.useHostTransitionStatus()},Ut.version="19.2.0",Ut}var sy;function fS(){if(sy)return Qf.exports;sy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Qf.exports=cS(),Qf.exports}/**
34
34
  * @license React
35
35
  * react-dom-client.production.js
36
36
  *
@@ -38,15 +38,15 @@
38
38
  *
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
- */var oy;function dS(){if(oy)return jl;oy=1;var n=oS(),a=vu(),i=fS();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(f(e)!==e)throw Error(s(188))}function g(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var r=e,l=t;;){var o=r.return;if(o===null)break;var c=o.alternate;if(c===null){if(l=o.return,l!==null){r=l;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===r)return m(o),e;if(c===l)return m(o),t;c=c.sibling}throw Error(s(188))}if(r.return!==l.return)r=o,l=c;else{for(var p=!1,v=o.child;v;){if(v===r){p=!0,r=o,l=c;break}if(v===l){p=!0,l=o,r=c;break}v=v.sibling}if(!p){for(v=c.child;v;){if(v===r){p=!0,r=c,l=o;break}if(v===l){p=!0,l=c,r=o;break}v=v.sibling}if(!p)throw Error(s(189))}}if(r.alternate!==l)throw Error(s(190))}if(r.tag!==3)throw Error(s(188));return r.stateNode.current===r?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var _=Object.assign,A=Symbol.for("react.element"),U=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),S=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),te=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),ye=Symbol.for("react.memo_cache_sentinel"),re=Symbol.iterator;function pe(e){return e===null||typeof e!="object"?null:(e=re&&e[re]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Symbol.for("react.client.reference");function Xe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ce?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case E:return"Profiler";case I:return"StrictMode";case N:return"Suspense";case Z:return"SuspenseList";case de:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case x:return"Portal";case S:return e.displayName||"Context";case C:return(e._context.displayName||"Context")+".Consumer";case H:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return t=e.displayName||null,t!==null?t:Xe(e.type)||"Memo";case te:t=e._payload,e=e._init;try{return Xe(e(t))}catch{}}return null}var Ne=Array.isArray,G=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},Se=[],Ae=-1;function O(e){return{current:e}}function q(e){0>Ae||(e.current=Se[Ae],Se[Ae]=null,Ae--)}function P(e,t){Ae++,Se[Ae]=e.current,e.current=t}var W=O(null),J=O(null),fe=O(null),_e=O(null);function We(e,t){switch(P(fe,t),P(J,e),P(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Tg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Tg(t),e=Ag(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(W),P(W,e)}function Ge(){q(W),q(J),q(fe)}function $t(e){e.memoizedState!==null&&P(_e,e);var t=W.current,r=Ag(t,e.type);t!==r&&(P(J,e),P(W,r))}function Ba(e){J.current===e&&(q(W),q(J)),_e.current===e&&(q(_e),Ml._currentValue=ne)}var vt,jt;function hn(e){if(vt===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);vt=t&&t[1]||"",jt=-1<r.stack.indexOf(`
41
+ */var oy;function dS(){if(oy)return Ul;oy=1;var n=oS(),a=_u(),i=fS();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(f(e)!==e)throw Error(s(188))}function g(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var r=e,l=t;;){var o=r.return;if(o===null)break;var c=o.alternate;if(c===null){if(l=o.return,l!==null){r=l;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===r)return m(o),e;if(c===l)return m(o),t;c=c.sibling}throw Error(s(188))}if(r.return!==l.return)r=o,l=c;else{for(var p=!1,v=o.child;v;){if(v===r){p=!0,r=o,l=c;break}if(v===l){p=!0,l=o,r=c;break}v=v.sibling}if(!p){for(v=c.child;v;){if(v===r){p=!0,r=c,l=o;break}if(v===l){p=!0,l=c,r=o;break}v=v.sibling}if(!p)throw Error(s(189))}}if(r.alternate!==l)throw Error(s(190))}if(r.tag!==3)throw Error(s(188));return r.stateNode.current===r?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var _=Object.assign,A=Symbol.for("react.element"),U=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),S=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),te=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),ye=Symbol.for("react.memo_cache_sentinel"),re=Symbol.iterator;function pe(e){return e===null||typeof e!="object"?null:(e=re&&e[re]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Symbol.for("react.client.reference");function Xe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ce?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case E:return"Profiler";case I:return"StrictMode";case N:return"Suspense";case Z:return"SuspenseList";case de:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case x:return"Portal";case S:return e.displayName||"Context";case C:return(e._context.displayName||"Context")+".Consumer";case H:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return t=e.displayName||null,t!==null?t:Xe(e.type)||"Memo";case te:t=e._payload,e=e._init;try{return Xe(e(t))}catch{}}return null}var Ne=Array.isArray,G=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},Se=[],Ae=-1;function O(e){return{current:e}}function q(e){0>Ae||(e.current=Se[Ae],Se[Ae]=null,Ae--)}function P(e,t){Ae++,Se[Ae]=e.current,e.current=t}var W=O(null),J=O(null),fe=O(null),_e=O(null);function We(e,t){switch(P(fe,t),P(J,e),P(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Tg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Tg(t),e=Ag(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(W),P(W,e)}function Ge(){q(W),q(J),q(fe)}function $t(e){e.memoizedState!==null&&P(_e,e);var t=W.current,r=Ag(t,e.type);t!==r&&(P(J,e),P(W,r))}function La(e){J.current===e&&(q(W),q(J)),_e.current===e&&(q(_e),Nl._currentValue=ne)}var vt,jt;function dn(e){if(vt===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);vt=t&&t[1]||"",jt=-1<r.stack.indexOf(`
42
42
  at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+vt+e+jt}var Nn=!1;function fr(e,t){if(!e||Nn)return"";Nn=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(z){var j=z}Reflect.construct(e,[],Y)}else{try{Y.call()}catch(z){j=z}e.call(Y.prototype)}}else{try{throw Error()}catch(z){j=z}(Y=e())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(z){if(z&&j&&typeof z.stack=="string")return[z.stack,j.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),p=c[0],v=c[1];if(p&&v){var T=p.split(`
43
+ `+vt+e+jt}var wn=!1;function cr(e,t){if(!e||wn)return"";wn=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(z){var j=z}Reflect.construct(e,[],Y)}else{try{Y.call()}catch(z){j=z}e.call(Y.prototype)}}else{try{throw Error()}catch(z){j=z}(Y=e())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(z){if(z&&j&&typeof z.stack=="string")return[z.stack,j.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),p=c[0],v=c[1];if(p&&v){var T=p.split(`
44
44
  `),L=v.split(`
45
45
  `);for(o=l=0;l<T.length&&!T[l].includes("DetermineComponentFrameRoot");)l++;for(;o<L.length&&!L[o].includes("DetermineComponentFrameRoot");)o++;if(l===T.length||o===L.length)for(l=T.length-1,o=L.length-1;1<=l&&0<=o&&T[l]!==L[o];)o--;for(;1<=l&&0<=o;l--,o--)if(T[l]!==L[o]){if(l!==1||o!==1)do if(l--,o--,0>o||T[l]!==L[o]){var F=`
46
- `+T[l].replace(" at new "," at ");return e.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",e.displayName)),F}while(1<=l&&0<=o);break}}}finally{Nn=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?hn(r):""}function Ui(e,t){switch(e.tag){case 26:case 27:case 5:return hn(e.type);case 16:return hn("Lazy");case 13:return e.child!==t&&t!==null?hn("Suspense Fallback"):hn("Suspense");case 19:return hn("SuspenseList");case 0:case 15:return fr(e.type,!1);case 11:return fr(e.type.render,!1);case 1:return fr(e.type,!0);case 31:return hn("Activity");default:return""}}function ta(e){try{var t="",r=null;do t+=Ui(e,r),r=e,e=e.return;while(e);return t}catch(l){return`
46
+ `+T[l].replace(" at new "," at ");return e.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",e.displayName)),F}while(1<=l&&0<=o);break}}}finally{wn=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?dn(r):""}function Bi(e,t){switch(e.tag){case 26:case 27:case 5:return dn(e.type);case 16:return dn("Lazy");case 13:return e.child!==t&&t!==null?dn("Suspense Fallback"):dn("Suspense");case 19:return dn("SuspenseList");case 0:case 15:return cr(e.type,!1);case 11:return cr(e.type.render,!1);case 1:return cr(e.type,!0);case 31:return dn("Activity");default:return""}}function ea(e){try{var t="",r=null;do t+=Bi(e,r),r=e,e=e.return;while(e);return t}catch(l){return`
47
47
  Error generating stack: `+l.message+`
48
- `+l.stack}}var Ua=Object.prototype.hasOwnProperty,ja=n.unstable_scheduleCallback,Yr=n.unstable_cancelCallback,ss=n.unstable_shouldYield,Bu=n.unstable_requestPaint,Ct=n.unstable_now,dr=n.unstable_getCurrentPriorityLevel,na=n.unstable_ImmediatePriority,aa=n.unstable_UserBlockingPriority,hr=n.unstable_NormalPriority,os=n.unstable_LowPriority,ji=n.unstable_IdlePriority,Hi=n.log,us=n.unstable_setDisableYieldValue,qn=null,St=null;function Tt(e){if(typeof Hi=="function"&&us(e),St&&typeof St.setStrictMode=="function")try{St.setStrictMode(qn,e)}catch{}}var ct=Math.clz32?Math.clz32:Uu,Ii=Math.log,zi=Math.LN2;function Uu(e){return e>>>=0,e===0?32:31-(Ii(e)/zi|0)|0}var ra=256,ia=262144,Pr=4194304;function Wt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Xr(e,t,r){var l=e.pendingLanes;if(l===0)return 0;var o=0,c=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var v=l&134217727;return v!==0?(l=v&~c,l!==0?o=Wt(l):(p&=v,p!==0?o=Wt(p):r||(r=v&~e,r!==0&&(o=Wt(r))))):(v=l&~c,v!==0?o=Wt(v):p!==0?o=Wt(p):r||(r=l&~e,r!==0&&(o=Wt(r)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,r=t&-t,c>=r||c===32&&(r&4194048)!==0)?t:o}function mr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ft(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function la(){var e=Pr;return Pr<<=1,(Pr&62914560)===0&&(Pr=4194304),e}function Gi(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Ha(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ki(e,t,r,l,o,c){var p=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var v=e.entanglements,T=e.expirationTimes,L=e.hiddenUpdates;for(r=p&~r;0<r;){var F=31-ct(r),Y=1<<F;v[F]=0,T[F]=-1;var j=L[F];if(j!==null)for(L[F]=null,F=0;F<j.length;F++){var z=j[F];z!==null&&(z.lane&=-536870913)}r&=~Y}l!==0&&qi(e,l,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(p&~t))}function qi(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-ct(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|r&261930}function Fi(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var l=31-ct(r),o=1<<l;o&t|e[l]&t&&(e[l]|=t),r&=~o}}function cs(e,t){var r=t&-t;return r=(r&42)!==0?1:Ft(r),(r&(e.suspendedLanes|t))!==0?0:r}function Ft(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 Mn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Vi(){var e=$.p;return e!==0?e:(e=window.event,e===void 0?32:Xg(e.type))}function Yi(e,t){var r=$.p;try{return $.p=e,t()}finally{$.p=r}}var mn=Math.random().toString(36).slice(2),dt="__reactFiber$"+mn,Je="__reactProps$"+mn,sa="__reactContainer$"+mn,Zr="__reactEvents$"+mn,fs="__reactListeners$"+mn,ds="__reactHandles$"+mn,hs="__reactResources$"+mn,ie="__reactMarker$"+mn;function R(e){delete e[dt],delete e[Je],delete e[Zr],delete e[fs],delete e[ds]}function Q(e){var t=e[dt];if(t)return t;for(var r=e.parentNode;r;){if(t=r[sa]||r[dt]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Mg(e);e!==null;){if(r=e[dt])return r;e=Mg(e)}return t}e=r,r=e.parentNode}return null}function ee(e){if(e=e[dt]||e[sa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ie(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function nt(e){var t=e[hs];return t||(t=e[hs]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ee(e){e[ie]=!0}var Rt=new Set,pn={};function Vt(e,t){Fn(e,t),Fn(e+"Capture",t)}function Fn(e,t){for(pn[e]=t,e=0;e<t.length;e++)Rt.add(t[e])}var _t=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]*$"),Pi={},Xi={};function $_(e){return Ua.call(Xi,e)?!0:Ua.call(Pi,e)?!1:_t.test(e)?Xi[e]=!0:(Pi[e]=!0,!1)}function ms(e,t,r){if($_(t))if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+r)}}function ps(e,t,r){if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+r)}}function oa(e,t,r,l){if(l===null)e.removeAttribute(r);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(t,r,""+l)}}function gn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function W_(e,t,r){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,c=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(p){r=""+p,c.call(this,p)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return r},setValue:function(p){r=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ju(e){if(!e._valueTracker){var t=pm(e)?"checked":"value";e._valueTracker=W_(e,t,""+e[t])}}function gm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),l="";return e&&(l=pm(e)?e.checked?"true":"false":e.value),e=l,e!==r?(t.setValue(e),!0):!1}function gs(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 J_=/[\n"\\]/g;function yn(e){return e.replace(J_,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Hu(e,t,r,l,o,c,p,v){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+gn(t)):e.value!==""+gn(t)&&(e.value=""+gn(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?Iu(e,p,gn(t)):r!=null?Iu(e,p,gn(r)):l!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+gn(v):e.removeAttribute("name")}function ym(e,t,r,l,o,c,p,v){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||r!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){ju(e);return}r=r!=null?""+gn(r):"",t=t!=null?""+gn(t):r,v||t===e.value||(e.value=t),e.defaultValue=t}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=v?e.checked:!!l,e.defaultChecked=!!l,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),ju(e)}function Iu(e,t,r){t==="number"&&gs(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function Qr(e,t,r,l){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&l&&(e[r].defaultSelected=!0)}else{for(r=""+gn(r),t=null,o=0;o<e.length;o++){if(e[o].value===r){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function bm(e,t,r){if(t!=null&&(t=""+gn(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+gn(r):""}function vm(e,t,r,l){if(t==null){if(l!=null){if(r!=null)throw Error(s(92));if(Ne(l)){if(1<l.length)throw Error(s(93));l=l[0]}r=l}r==null&&(r=""),t=r}r=gn(t),e.defaultValue=r,l=e.textContent,l===r&&l!==""&&l!==null&&(e.value=l),ju(e)}function Kr(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var eE=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 _m(e,t,r){var l=t.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,r):typeof r!="number"||r===0||eE.has(t)?t==="float"?e.cssFloat=r:e[t]=(""+r).trim():e[t]=r+"px"}function Em(e,t,r){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,r!=null){for(var l in r)!r.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var o in t)l=t[o],t.hasOwnProperty(o)&&r[o]!==l&&_m(e,o,l)}else for(var c in t)t.hasOwnProperty(c)&&_m(e,c,t[c])}function zu(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 tE=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"]]),nE=/^[\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 ys(e){return nE.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ua(){}var Gu=null;function ku(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $r=null,Wr=null;function Sm(e){var t=ee(e);if(t&&(e=t.stateNode)){var r=e[Je]||null;e:switch(e=t.stateNode,t.type){case"input":if(Hu(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+yn(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var l=r[t];if(l!==e&&l.form===e.form){var o=l[Je]||null;if(!o)throw Error(s(90));Hu(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<r.length;t++)l=r[t],l.form===e.form&&gm(l)}break e;case"textarea":bm(e,r.value,r.defaultValue);break e;case"select":t=r.value,t!=null&&Qr(e,!!r.multiple,t,!1)}}}var qu=!1;function Tm(e,t,r){if(qu)return e(t,r);qu=!0;try{var l=e(t);return l}finally{if(qu=!1,($r!==null||Wr!==null)&&(ro(),$r&&(t=$r,e=Wr,Wr=$r=null,Sm(t),e)))for(t=0;t<e.length;t++)Sm(e[t])}}function Zi(e,t){var r=e.stateNode;if(r===null)return null;var l=r[Je]||null;if(l===null)return null;r=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(s(231,t,typeof r));return r}var ca=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fu=!1;if(ca)try{var Qi={};Object.defineProperty(Qi,"passive",{get:function(){Fu=!0}}),window.addEventListener("test",Qi,Qi),window.removeEventListener("test",Qi,Qi)}catch{Fu=!1}var Ia=null,Vu=null,bs=null;function Am(){if(bs)return bs;var e,t=Vu,r=t.length,l,o="value"in Ia?Ia.value:Ia.textContent,c=o.length;for(e=0;e<r&&t[e]===o[e];e++);var p=r-e;for(l=1;l<=p&&t[r-l]===o[c-l];l++);return bs=o.slice(e,1<l?1-l:void 0)}function vs(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function _s(){return!0}function Om(){return!1}function Yt(e){function t(r,l,o,c,p){this._reactName=r,this._targetInst=o,this.type=l,this.nativeEvent=c,this.target=p,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(r=e[v],this[v]=r?r(c):c[v]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?_s:Om,this.isPropagationStopped=Om,this}return _(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=_s)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=_s)},persist:function(){},isPersistent:_s}),t}var pr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Es=Yt(pr),Ki=_({},pr,{view:0,detail:0}),aE=Yt(Ki),Yu,Pu,$i,Ss=_({},Ki,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==$i&&($i&&e.type==="mousemove"?(Yu=e.screenX-$i.screenX,Pu=e.screenY-$i.screenY):Pu=Yu=0,$i=e),Yu)},movementY:function(e){return"movementY"in e?e.movementY:Pu}}),xm=Yt(Ss),rE=_({},Ss,{dataTransfer:0}),iE=Yt(rE),lE=_({},Ki,{relatedTarget:0}),Xu=Yt(lE),sE=_({},pr,{animationName:0,elapsedTime:0,pseudoElement:0}),oE=Yt(sE),uE=_({},pr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),cE=Yt(uE),fE=_({},pr,{data:0}),Cm=Yt(fE),dE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hE={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"},mE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function pE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=mE[e])?!!t[e]:!1}function Zu(){return pE}var gE=_({},Ki,{key:function(e){if(e.key){var t=dE[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=vs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?hE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zu,charCode:function(e){return e.type==="keypress"?vs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),yE=Yt(gE),bE=_({},Ss,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Rm=Yt(bE),vE=_({},Ki,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zu}),_E=Yt(vE),EE=_({},pr,{propertyName:0,elapsedTime:0,pseudoElement:0}),SE=Yt(EE),TE=_({},Ss,{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}),AE=Yt(TE),OE=_({},pr,{newState:0,oldState:0}),xE=Yt(OE),CE=[9,13,27,32],Qu=ca&&"CompositionEvent"in window,Wi=null;ca&&"documentMode"in document&&(Wi=document.documentMode);var RE=ca&&"TextEvent"in window&&!Wi,wm=ca&&(!Qu||Wi&&8<Wi&&11>=Wi),Nm=" ",Mm=!1;function Dm(e,t){switch(e){case"keyup":return CE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jr=!1;function wE(e,t){switch(e){case"compositionend":return Lm(t);case"keypress":return t.which!==32?null:(Mm=!0,Nm);case"textInput":return e=t.data,e===Nm&&Mm?null:e;default:return null}}function NE(e,t){if(Jr)return e==="compositionend"||!Qu&&Dm(e,t)?(e=Am(),bs=Vu=Ia=null,Jr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return wm&&t.locale!=="ko"?null:t.data;default:return null}}var ME={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 Bm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ME[e.type]:t==="textarea"}function Um(e,t,r,l){$r?Wr?Wr.push(l):Wr=[l]:$r=l,t=fo(t,"onChange"),0<t.length&&(r=new Es("onChange","change",null,r,l),e.push({event:r,listeners:t}))}var Ji=null,el=null;function DE(e){yg(e,0)}function Ts(e){var t=Ie(e);if(gm(t))return e}function jm(e,t){if(e==="change")return t}var Hm=!1;if(ca){var Ku;if(ca){var $u="oninput"in document;if(!$u){var Im=document.createElement("div");Im.setAttribute("oninput","return;"),$u=typeof Im.oninput=="function"}Ku=$u}else Ku=!1;Hm=Ku&&(!document.documentMode||9<document.documentMode)}function zm(){Ji&&(Ji.detachEvent("onpropertychange",Gm),el=Ji=null)}function Gm(e){if(e.propertyName==="value"&&Ts(el)){var t=[];Um(t,el,e,ku(e)),Tm(DE,t)}}function LE(e,t,r){e==="focusin"?(zm(),Ji=t,el=r,Ji.attachEvent("onpropertychange",Gm)):e==="focusout"&&zm()}function BE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ts(el)}function UE(e,t){if(e==="click")return Ts(t)}function jE(e,t){if(e==="input"||e==="change")return Ts(t)}function HE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jt=typeof Object.is=="function"?Object.is:HE;function tl(e,t){if(Jt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),l=Object.keys(t);if(r.length!==l.length)return!1;for(l=0;l<r.length;l++){var o=r[l];if(!Ua.call(t,o)||!Jt(e[o],t[o]))return!1}return!0}function km(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qm(e,t){var r=km(e);e=0;for(var l;r;){if(r.nodeType===3){if(l=e+r.textContent.length,e<=t&&l>=t)return{node:r,offset:t-e};e=l}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=km(r)}}function Fm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=gs(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=gs(e.document)}return t}function Wu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var IE=ca&&"documentMode"in document&&11>=document.documentMode,ei=null,Ju=null,nl=null,ec=!1;function Ym(e,t,r){var l=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;ec||ei==null||ei!==gs(l)||(l=ei,"selectionStart"in l&&Wu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),nl&&tl(nl,l)||(nl=l,l=fo(Ju,"onSelect"),0<l.length&&(t=new Es("onSelect","select",null,t,r),e.push({event:t,listeners:l}),t.target=ei)))}function gr(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var ti={animationend:gr("Animation","AnimationEnd"),animationiteration:gr("Animation","AnimationIteration"),animationstart:gr("Animation","AnimationStart"),transitionrun:gr("Transition","TransitionRun"),transitionstart:gr("Transition","TransitionStart"),transitioncancel:gr("Transition","TransitionCancel"),transitionend:gr("Transition","TransitionEnd")},tc={},Pm={};ca&&(Pm=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 yr(e){if(tc[e])return tc[e];if(!ti[e])return e;var t=ti[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Pm)return tc[e]=t[r];return e}var Xm=yr("animationend"),Zm=yr("animationiteration"),Qm=yr("animationstart"),zE=yr("transitionrun"),GE=yr("transitionstart"),kE=yr("transitioncancel"),Km=yr("transitionend"),$m=new Map,nc="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(" ");nc.push("scrollEnd");function Dn(e,t){$m.set(e,t),Vt(t,[e])}var As=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},bn=[],ni=0,ac=0;function Os(){for(var e=ni,t=ac=ni=0;t<e;){var r=bn[t];bn[t++]=null;var l=bn[t];bn[t++]=null;var o=bn[t];bn[t++]=null;var c=bn[t];if(bn[t++]=null,l!==null&&o!==null){var p=l.pending;p===null?o.next=o:(o.next=p.next,p.next=o),l.pending=o}c!==0&&Wm(r,o,c)}}function xs(e,t,r,l){bn[ni++]=e,bn[ni++]=t,bn[ni++]=r,bn[ni++]=l,ac|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function rc(e,t,r,l){return xs(e,t,r,l),Cs(e)}function br(e,t){return xs(e,null,null,t),Cs(e)}function Wm(e,t,r){e.lanes|=r;var l=e.alternate;l!==null&&(l.lanes|=r);for(var o=!1,c=e.return;c!==null;)c.childLanes|=r,l=c.alternate,l!==null&&(l.childLanes|=r),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-ct(r),e=c.hiddenUpdates,l=e[o],l===null?e[o]=[t]:l.push(t),t.lane=r|536870912),c):null}function Cs(e){if(50<Al)throw Al=0,mf=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ai={};function qE(e,t,r,l){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function en(e,t,r,l){return new qE(e,t,r,l)}function ic(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fa(e,t){var r=e.alternate;return r===null?(r=en(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function Jm(e,t){e.flags&=65011714;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Rs(e,t,r,l,o,c){var p=0;if(l=e,typeof e=="function")ic(e)&&(p=1);else if(typeof e=="string")p=X2(e,r,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case de:return e=en(31,r,t,o),e.elementType=de,e.lanes=c,e;case k:return vr(r.children,o,c,t);case I:p=8,o|=24;break;case E:return e=en(12,r,t,o|2),e.elementType=E,e.lanes=c,e;case N:return e=en(13,r,t,o),e.elementType=N,e.lanes=c,e;case Z:return e=en(19,r,t,o),e.elementType=Z,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case S:p=10;break e;case C:p=9;break e;case H:p=11;break e;case X:p=14;break e;case te:p=16,l=null;break e}p=29,r=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=en(p,r,t,o),t.elementType=e,t.type=l,t.lanes=c,t}function vr(e,t,r,l){return e=en(7,e,l,t),e.lanes=r,e}function lc(e,t,r){return e=en(6,e,null,t),e.lanes=r,e}function e0(e){var t=en(18,null,null,0);return t.stateNode=e,t}function sc(e,t,r){return t=en(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var t0=new WeakMap;function vn(e,t){if(typeof e=="object"&&e!==null){var r=t0.get(e);return r!==void 0?r:(t={value:e,source:t,stack:ta(t)},t0.set(e,t),t)}return{value:e,source:t,stack:ta(t)}}var ri=[],ii=0,ws=null,al=0,_n=[],En=0,za=null,Vn=1,Yn="";function da(e,t){ri[ii++]=al,ri[ii++]=ws,ws=e,al=t}function n0(e,t,r){_n[En++]=Vn,_n[En++]=Yn,_n[En++]=za,za=e;var l=Vn;e=Yn;var o=32-ct(l)-1;l&=~(1<<o),r+=1;var c=32-ct(t)+o;if(30<c){var p=o-o%5;c=(l&(1<<p)-1).toString(32),l>>=p,o-=p,Vn=1<<32-ct(t)+o|r<<o|l,Yn=c+e}else Vn=1<<c|r<<o|l,Yn=e}function oc(e){e.return!==null&&(da(e,1),n0(e,1,0))}function uc(e){for(;e===ws;)ws=ri[--ii],ri[ii]=null,al=ri[--ii],ri[ii]=null;for(;e===za;)za=_n[--En],_n[En]=null,Yn=_n[--En],_n[En]=null,Vn=_n[--En],_n[En]=null}function a0(e,t){_n[En++]=Vn,_n[En++]=Yn,_n[En++]=za,Vn=t.id,Yn=t.overflow,za=e}var wt=null,Qe=null,Me=!1,Ga=null,Sn=!1,cc=Error(s(519));function ka(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw rl(vn(t,e)),cc}function r0(e){var t=e.stateNode,r=e.type,l=e.memoizedProps;switch(t[dt]=e,t[Je]=l,r){case"dialog":xe("cancel",t),xe("close",t);break;case"iframe":case"object":case"embed":xe("load",t);break;case"video":case"audio":for(r=0;r<xl.length;r++)xe(xl[r],t);break;case"source":xe("error",t);break;case"img":case"image":case"link":xe("error",t),xe("load",t);break;case"details":xe("toggle",t);break;case"input":xe("invalid",t),ym(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":xe("invalid",t);break;case"textarea":xe("invalid",t),vm(t,l.value,l.defaultValue,l.children)}r=l.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||t.textContent===""+r||l.suppressHydrationWarning===!0||Eg(t.textContent,r)?(l.popover!=null&&(xe("beforetoggle",t),xe("toggle",t)),l.onScroll!=null&&xe("scroll",t),l.onScrollEnd!=null&&xe("scrollend",t),l.onClick!=null&&(t.onclick=ua),t=!0):t=!1,t||ka(e,!0)}function i0(e){for(wt=e.return;wt;)switch(wt.tag){case 5:case 31:case 13:Sn=!1;return;case 27:case 3:Sn=!0;return;default:wt=wt.return}}function li(e){if(e!==wt)return!1;if(!Me)return i0(e),Me=!0,!1;var t=e.tag,r;if((r=t!==3&&t!==27)&&((r=t===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||wf(e.type,e.memoizedProps)),r=!r),r&&Qe&&ka(e),i0(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Qe=Ng(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Qe=Ng(e)}else t===27?(t=Qe,tr(e.type)?(e=Bf,Bf=null,Qe=e):Qe=t):Qe=wt?An(e.stateNode.nextSibling):null;return!0}function _r(){Qe=wt=null,Me=!1}function fc(){var e=Ga;return e!==null&&(Qt===null?Qt=e:Qt.push.apply(Qt,e),Ga=null),e}function rl(e){Ga===null?Ga=[e]:Ga.push(e)}var dc=O(null),Er=null,ha=null;function qa(e,t,r){P(dc,t._currentValue),t._currentValue=r}function ma(e){e._currentValue=dc.current,q(dc)}function hc(e,t,r){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===r)break;e=e.return}}function mc(e,t,r,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var p=o.child;c=c.firstContext;e:for(;c!==null;){var v=c;c=o;for(var T=0;T<t.length;T++)if(v.context===t[T]){c.lanes|=r,v=c.alternate,v!==null&&(v.lanes|=r),hc(c.return,r,e),l||(p=null);break e}c=v.next}}else if(o.tag===18){if(p=o.return,p===null)throw Error(s(341));p.lanes|=r,c=p.alternate,c!==null&&(c.lanes|=r),hc(p,r,e),p=null}else p=o.child;if(p!==null)p.return=o;else for(p=o;p!==null;){if(p===e){p=null;break}if(o=p.sibling,o!==null){o.return=p.return,p=o;break}p=p.return}o=p}}function si(e,t,r,l){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var p=o.alternate;if(p===null)throw Error(s(387));if(p=p.memoizedProps,p!==null){var v=o.type;Jt(o.pendingProps.value,p.value)||(e!==null?e.push(v):e=[v])}}else if(o===_e.current){if(p=o.alternate,p===null)throw Error(s(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Ml):e=[Ml])}o=o.return}e!==null&&mc(t,e,r,l),t.flags|=262144}function Ns(e){for(e=e.firstContext;e!==null;){if(!Jt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Sr(e){Er=e,ha=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Nt(e){return l0(Er,e)}function Ms(e,t){return Er===null&&Sr(e),l0(e,t)}function l0(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},ha===null){if(e===null)throw Error(s(308));ha=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ha=ha.next=t;return r}var FE=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(r,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(r){return r()})}},VE=n.unstable_scheduleCallback,YE=n.unstable_NormalPriority,ht={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function pc(){return{controller:new FE,data:new Map,refCount:0}}function il(e){e.refCount--,e.refCount===0&&VE(YE,function(){e.controller.abort()})}var ll=null,gc=0,oi=0,ui=null;function PE(e,t){if(ll===null){var r=ll=[];gc=0,oi=_f(),ui={status:"pending",value:void 0,then:function(l){r.push(l)}}}return gc++,t.then(s0,s0),t}function s0(){if(--gc===0&&ll!==null){ui!==null&&(ui.status="fulfilled");var e=ll;ll=null,oi=0,ui=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function XE(e,t){var r=[],l={status:"pending",value:null,reason:null,then:function(o){r.push(o)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var o=0;o<r.length;o++)(0,r[o])(t)},function(o){for(l.status="rejected",l.reason=o,o=0;o<r.length;o++)(0,r[o])(void 0)}),l}var o0=G.S;G.S=function(e,t){Yp=Ct(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&PE(e,t),o0!==null&&o0(e,t)};var Tr=O(null);function yc(){var e=Tr.current;return e!==null?e:Ze.pooledCache}function Ds(e,t){t===null?P(Tr,Tr.current):P(Tr,t.pool)}function u0(){var e=yc();return e===null?null:{parent:ht._currentValue,pool:e}}var ci=Error(s(460)),bc=Error(s(474)),Ls=Error(s(542)),Bs={then:function(){}};function c0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function f0(e,t,r){switch(r=e[r],r===void 0?e.push(t):r!==t&&(t.then(ua,ua),t=r),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,h0(e),e;default:if(typeof t.status=="string")t.then(ua,ua);else{if(e=Ze,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=l}},function(l){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,h0(e),e}throw Or=t,ci}}function Ar(e){try{var t=e._init;return t(e._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(Or=r,ci):r}}var Or=null;function d0(){if(Or===null)throw Error(s(459));var e=Or;return Or=null,e}function h0(e){if(e===ci||e===Ls)throw Error(s(483))}var fi=null,sl=0;function Us(e){var t=sl;return sl+=1,fi===null&&(fi=[]),f0(fi,e,t)}function ol(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function js(e,t){throw t.$$typeof===A?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function m0(e){function t(M,w){if(e){var D=M.deletions;D===null?(M.deletions=[w],M.flags|=16):D.push(w)}}function r(M,w){if(!e)return null;for(;w!==null;)t(M,w),w=w.sibling;return null}function l(M){for(var w=new Map;M!==null;)M.key!==null?w.set(M.key,M):w.set(M.index,M),M=M.sibling;return w}function o(M,w){return M=fa(M,w),M.index=0,M.sibling=null,M}function c(M,w,D){return M.index=D,e?(D=M.alternate,D!==null?(D=D.index,D<w?(M.flags|=67108866,w):D):(M.flags|=67108866,w)):(M.flags|=1048576,w)}function p(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function v(M,w,D,V){return w===null||w.tag!==6?(w=lc(D,M.mode,V),w.return=M,w):(w=o(w,D),w.return=M,w)}function T(M,w,D,V){var oe=D.type;return oe===k?F(M,w,D.props.children,V,D.key):w!==null&&(w.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===te&&Ar(oe)===w.type)?(w=o(w,D.props),ol(w,D),w.return=M,w):(w=Rs(D.type,D.key,D.props,null,M.mode,V),ol(w,D),w.return=M,w)}function L(M,w,D,V){return w===null||w.tag!==4||w.stateNode.containerInfo!==D.containerInfo||w.stateNode.implementation!==D.implementation?(w=sc(D,M.mode,V),w.return=M,w):(w=o(w,D.children||[]),w.return=M,w)}function F(M,w,D,V,oe){return w===null||w.tag!==7?(w=vr(D,M.mode,V,oe),w.return=M,w):(w=o(w,D),w.return=M,w)}function Y(M,w,D){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=lc(""+w,M.mode,D),w.return=M,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case U:return D=Rs(w.type,w.key,w.props,null,M.mode,D),ol(D,w),D.return=M,D;case x:return w=sc(w,M.mode,D),w.return=M,w;case te:return w=Ar(w),Y(M,w,D)}if(Ne(w)||pe(w))return w=vr(w,M.mode,D,null),w.return=M,w;if(typeof w.then=="function")return Y(M,Us(w),D);if(w.$$typeof===S)return Y(M,Ms(M,w),D);js(M,w)}return null}function j(M,w,D,V){var oe=w!==null?w.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return oe!==null?null:v(M,w,""+D,V);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case U:return D.key===oe?T(M,w,D,V):null;case x:return D.key===oe?L(M,w,D,V):null;case te:return D=Ar(D),j(M,w,D,V)}if(Ne(D)||pe(D))return oe!==null?null:F(M,w,D,V,null);if(typeof D.then=="function")return j(M,w,Us(D),V);if(D.$$typeof===S)return j(M,w,Ms(M,D),V);js(M,D)}return null}function z(M,w,D,V,oe){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return M=M.get(D)||null,v(w,M,""+V,oe);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case U:return M=M.get(V.key===null?D:V.key)||null,T(w,M,V,oe);case x:return M=M.get(V.key===null?D:V.key)||null,L(w,M,V,oe);case te:return V=Ar(V),z(M,w,D,V,oe)}if(Ne(V)||pe(V))return M=M.get(D)||null,F(w,M,V,oe,null);if(typeof V.then=="function")return z(M,w,D,Us(V),oe);if(V.$$typeof===S)return z(M,w,D,Ms(w,V),oe);js(w,V)}return null}function ae(M,w,D,V){for(var oe=null,Ue=null,le=w,ve=w=0,we=null;le!==null&&ve<D.length;ve++){le.index>ve?(we=le,le=null):we=le.sibling;var je=j(M,le,D[ve],V);if(je===null){le===null&&(le=we);break}e&&le&&je.alternate===null&&t(M,le),w=c(je,w,ve),Ue===null?oe=je:Ue.sibling=je,Ue=je,le=we}if(ve===D.length)return r(M,le),Me&&da(M,ve),oe;if(le===null){for(;ve<D.length;ve++)le=Y(M,D[ve],V),le!==null&&(w=c(le,w,ve),Ue===null?oe=le:Ue.sibling=le,Ue=le);return Me&&da(M,ve),oe}for(le=l(le);ve<D.length;ve++)we=z(le,M,ve,D[ve],V),we!==null&&(e&&we.alternate!==null&&le.delete(we.key===null?ve:we.key),w=c(we,w,ve),Ue===null?oe=we:Ue.sibling=we,Ue=we);return e&&le.forEach(function(lr){return t(M,lr)}),Me&&da(M,ve),oe}function ue(M,w,D,V){if(D==null)throw Error(s(151));for(var oe=null,Ue=null,le=w,ve=w=0,we=null,je=D.next();le!==null&&!je.done;ve++,je=D.next()){le.index>ve?(we=le,le=null):we=le.sibling;var lr=j(M,le,je.value,V);if(lr===null){le===null&&(le=we);break}e&&le&&lr.alternate===null&&t(M,le),w=c(lr,w,ve),Ue===null?oe=lr:Ue.sibling=lr,Ue=lr,le=we}if(je.done)return r(M,le),Me&&da(M,ve),oe;if(le===null){for(;!je.done;ve++,je=D.next())je=Y(M,je.value,V),je!==null&&(w=c(je,w,ve),Ue===null?oe=je:Ue.sibling=je,Ue=je);return Me&&da(M,ve),oe}for(le=l(le);!je.done;ve++,je=D.next())je=z(le,M,ve,je.value,V),je!==null&&(e&&je.alternate!==null&&le.delete(je.key===null?ve:je.key),w=c(je,w,ve),Ue===null?oe=je:Ue.sibling=je,Ue=je);return e&&le.forEach(function(rS){return t(M,rS)}),Me&&da(M,ve),oe}function Pe(M,w,D,V){if(typeof D=="object"&&D!==null&&D.type===k&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case U:e:{for(var oe=D.key;w!==null;){if(w.key===oe){if(oe=D.type,oe===k){if(w.tag===7){r(M,w.sibling),V=o(w,D.props.children),V.return=M,M=V;break e}}else if(w.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===te&&Ar(oe)===w.type){r(M,w.sibling),V=o(w,D.props),ol(V,D),V.return=M,M=V;break e}r(M,w);break}else t(M,w);w=w.sibling}D.type===k?(V=vr(D.props.children,M.mode,V,D.key),V.return=M,M=V):(V=Rs(D.type,D.key,D.props,null,M.mode,V),ol(V,D),V.return=M,M=V)}return p(M);case x:e:{for(oe=D.key;w!==null;){if(w.key===oe)if(w.tag===4&&w.stateNode.containerInfo===D.containerInfo&&w.stateNode.implementation===D.implementation){r(M,w.sibling),V=o(w,D.children||[]),V.return=M,M=V;break e}else{r(M,w);break}else t(M,w);w=w.sibling}V=sc(D,M.mode,V),V.return=M,M=V}return p(M);case te:return D=Ar(D),Pe(M,w,D,V)}if(Ne(D))return ae(M,w,D,V);if(pe(D)){if(oe=pe(D),typeof oe!="function")throw Error(s(150));return D=oe.call(D),ue(M,w,D,V)}if(typeof D.then=="function")return Pe(M,w,Us(D),V);if(D.$$typeof===S)return Pe(M,w,Ms(M,D),V);js(M,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,w!==null&&w.tag===6?(r(M,w.sibling),V=o(w,D),V.return=M,M=V):(r(M,w),V=lc(D,M.mode,V),V.return=M,M=V),p(M)):r(M,w)}return function(M,w,D,V){try{sl=0;var oe=Pe(M,w,D,V);return fi=null,oe}catch(le){if(le===ci||le===Ls)throw le;var Ue=en(29,le,null,M.mode);return Ue.lanes=V,Ue.return=M,Ue}finally{}}}var xr=m0(!0),p0=m0(!1),Fa=!1;function vc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _c(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Va(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ya(e,t,r){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(He&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=Cs(e),Wm(e,null,r),t}return xs(e,l,t,r),Cs(e)}function ul(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,r|=l,t.lanes=r,Fi(e,r)}}function Ec(e,t){var r=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,r===l)){var o=null,c=null;if(r=r.firstBaseUpdate,r!==null){do{var p={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};c===null?o=c=p:c=c.next=p,r=r.next}while(r!==null);c===null?o=c=t:c=c.next=t}else o=c=t;r={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}var Sc=!1;function cl(){if(Sc){var e=ui;if(e!==null)throw e}}function fl(e,t,r,l){Sc=!1;var o=e.updateQueue;Fa=!1;var c=o.firstBaseUpdate,p=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var T=v,L=T.next;T.next=null,p===null?c=L:p.next=L,p=T;var F=e.alternate;F!==null&&(F=F.updateQueue,v=F.lastBaseUpdate,v!==p&&(v===null?F.firstBaseUpdate=L:v.next=L,F.lastBaseUpdate=T))}if(c!==null){var Y=o.baseState;p=0,F=L=T=null,v=c;do{var j=v.lane&-536870913,z=j!==v.lane;if(z?(Re&j)===j:(l&j)===j){j!==0&&j===oi&&(Sc=!0),F!==null&&(F=F.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var ae=e,ue=v;j=t;var Pe=r;switch(ue.tag){case 1:if(ae=ue.payload,typeof ae=="function"){Y=ae.call(Pe,Y,j);break e}Y=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=ue.payload,j=typeof ae=="function"?ae.call(Pe,Y,j):ae,j==null)break e;Y=_({},Y,j);break e;case 2:Fa=!0}}j=v.callback,j!==null&&(e.flags|=64,z&&(e.flags|=8192),z=o.callbacks,z===null?o.callbacks=[j]:z.push(j))}else z={lane:j,tag:v.tag,payload:v.payload,callback:v.callback,next:null},F===null?(L=F=z,T=Y):F=F.next=z,p|=j;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;z=v,v=z.next,z.next=null,o.lastBaseUpdate=z,o.shared.pending=null}}while(!0);F===null&&(T=Y),o.baseState=T,o.firstBaseUpdate=L,o.lastBaseUpdate=F,c===null&&(o.shared.lanes=0),Ka|=p,e.lanes=p,e.memoizedState=Y}}function g0(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function y0(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)g0(r[e],t)}var di=O(null),Hs=O(0);function b0(e,t){e=Ta,P(Hs,e),P(di,t),Ta=e|t.baseLanes}function Tc(){P(Hs,Ta),P(di,di.current)}function Ac(){Ta=Hs.current,q(di),q(Hs)}var tn=O(null),Tn=null;function Pa(e){var t=e.alternate;P(st,st.current&1),P(tn,e),Tn===null&&(t===null||di.current!==null||t.memoizedState!==null)&&(Tn=e)}function Oc(e){P(st,st.current),P(tn,e),Tn===null&&(Tn=e)}function v0(e){e.tag===22?(P(st,st.current),P(tn,e),Tn===null&&(Tn=e)):Xa()}function Xa(){P(st,st.current),P(tn,tn.current)}function nn(e){q(tn),Tn===e&&(Tn=null),q(st)}var st=O(0);function Is(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||Df(r)||Lf(r)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var pa=0,be=null,Ve=null,mt=null,zs=!1,hi=!1,Cr=!1,Gs=0,dl=0,mi=null,ZE=0;function rt(){throw Error(s(321))}function xc(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Jt(e[r],t[r]))return!1;return!0}function Cc(e,t,r,l,o,c){return pa=c,be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,G.H=e===null||e.memoizedState===null?np:qc,Cr=!1,c=r(l,o),Cr=!1,hi&&(c=E0(t,r,l,o)),_0(e),c}function _0(e){G.H=pl;var t=Ve!==null&&Ve.next!==null;if(pa=0,mt=Ve=be=null,zs=!1,dl=0,mi=null,t)throw Error(s(300));e===null||pt||(e=e.dependencies,e!==null&&Ns(e)&&(pt=!0))}function E0(e,t,r,l){be=e;var o=0;do{if(hi&&(mi=null),dl=0,hi=!1,25<=o)throw Error(s(301));if(o+=1,mt=Ve=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}G.H=ap,c=t(r,l)}while(hi);return c}function QE(){var e=G.H,t=e.useState()[0];return t=typeof t.then=="function"?hl(t):t,e=e.useState()[0],(Ve!==null?Ve.memoizedState:null)!==e&&(be.flags|=1024),t}function Rc(){var e=Gs!==0;return Gs=0,e}function wc(e,t,r){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r}function Nc(e){if(zs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}zs=!1}pa=0,mt=Ve=be=null,hi=!1,dl=Gs=0,mi=null}function Ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mt===null?be.memoizedState=mt=e:mt=mt.next=e,mt}function ot(){if(Ve===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var t=mt===null?be.memoizedState:mt.next;if(t!==null)mt=t,Ve=e;else{if(e===null)throw be.alternate===null?Error(s(467)):Error(s(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},mt===null?be.memoizedState=mt=e:mt=mt.next=e}return mt}function ks(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function hl(e){var t=dl;return dl+=1,mi===null&&(mi=[]),e=f0(mi,e,t),t=be,(mt===null?t.memoizedState:mt.next)===null&&(t=t.alternate,G.H=t===null||t.memoizedState===null?np:qc),e}function qs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return hl(e);if(e.$$typeof===S)return Nt(e)}throw Error(s(438,String(e)))}function Mc(e){var t=null,r=be.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var l=be.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),r===null&&(r=ks(),be.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0)for(r=t.data[t.index]=Array(e),l=0;l<e;l++)r[l]=ye;return t.index++,r}function ga(e,t){return typeof t=="function"?t(e):t}function Fs(e){var t=ot();return Dc(t,Ve,e)}function Dc(e,t,r){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=r;var o=e.baseQueue,c=l.pending;if(c!==null){if(o!==null){var p=o.next;o.next=c.next,c.next=p}t.baseQueue=o=c,l.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var v=p=null,T=null,L=t,F=!1;do{var Y=L.lane&-536870913;if(Y!==L.lane?(Re&Y)===Y:(pa&Y)===Y){var j=L.revertLane;if(j===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),Y===oi&&(F=!0);else if((pa&j)===j){L=L.next,j===oi&&(F=!0);continue}else Y={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},T===null?(v=T=Y,p=c):T=T.next=Y,be.lanes|=j,Ka|=j;Y=L.action,Cr&&r(c,Y),c=L.hasEagerState?L.eagerState:r(c,Y)}else j={lane:Y,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},T===null?(v=T=j,p=c):T=T.next=j,be.lanes|=Y,Ka|=Y;L=L.next}while(L!==null&&L!==t);if(T===null?p=c:T.next=v,!Jt(c,e.memoizedState)&&(pt=!0,F&&(r=ui,r!==null)))throw r;e.memoizedState=c,e.baseState=p,e.baseQueue=T,l.lastRenderedState=c}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Lc(e){var t=ot(),r=t.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=e;var l=r.dispatch,o=r.pending,c=t.memoizedState;if(o!==null){r.pending=null;var p=o=o.next;do c=e(c,p.action),p=p.next;while(p!==o);Jt(c,t.memoizedState)||(pt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),r.lastRenderedState=c}return[c,l]}function S0(e,t,r){var l=be,o=ot(),c=Me;if(c){if(r===void 0)throw Error(s(407));r=r()}else r=t();var p=!Jt((Ve||o).memoizedState,r);if(p&&(o.memoizedState=r,pt=!0),o=o.queue,jc(O0.bind(null,l,o,e),[e]),o.getSnapshot!==t||p||mt!==null&&mt.memoizedState.tag&1){if(l.flags|=2048,pi(9,{destroy:void 0},A0.bind(null,l,o,r,t),null),Ze===null)throw Error(s(349));c||(pa&127)!==0||T0(l,t,r)}return r}function T0(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=be.updateQueue,t===null?(t=ks(),be.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function A0(e,t,r,l){t.value=r,t.getSnapshot=l,x0(t)&&C0(e)}function O0(e,t,r){return r(function(){x0(t)&&C0(e)})}function x0(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Jt(e,r)}catch{return!0}}function C0(e){var t=br(e,2);t!==null&&Kt(t,e,2)}function Bc(e){var t=Ht();if(typeof e=="function"){var r=e;if(e=r(),Cr){Tt(!0);try{r()}finally{Tt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:e},t}function R0(e,t,r,l){return e.baseState=r,Dc(e,Ve,typeof l=="function"?l:ga)}function KE(e,t,r,l,o){if(Ps(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){c.listeners.push(p)}};G.T!==null?r(!0):c.isTransition=!1,l(c),r=t.pending,r===null?(c.next=t.pending=c,w0(t,c)):(c.next=r.next,t.pending=r.next=c)}}function w0(e,t){var r=t.action,l=t.payload,o=e.state;if(t.isTransition){var c=G.T,p={};G.T=p;try{var v=r(o,l),T=G.S;T!==null&&T(p,v),N0(e,t,v)}catch(L){Uc(e,t,L)}finally{c!==null&&p.types!==null&&(c.types=p.types),G.T=c}}else try{c=r(o,l),N0(e,t,c)}catch(L){Uc(e,t,L)}}function N0(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(l){M0(e,t,l)},function(l){return Uc(e,t,l)}):M0(e,t,r)}function M0(e,t,r){t.status="fulfilled",t.value=r,D0(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,w0(e,r)))}function Uc(e,t,r){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=r,D0(t),t=t.next;while(t!==l)}e.action=null}function D0(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function L0(e,t){return t}function B0(e,t){if(Me){var r=Ze.formState;if(r!==null){e:{var l=be;if(Me){if(Qe){t:{for(var o=Qe,c=Sn;o.nodeType!==8;){if(!c){o=null;break t}if(o=An(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Qe=An(o.nextSibling),l=o.data==="F!";break e}}ka(l)}l=!1}l&&(t=r[0])}}return r=Ht(),r.memoizedState=r.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:L0,lastRenderedState:t},r.queue=l,r=J0.bind(null,be,l),l.dispatch=r,l=Bc(!1),c=kc.bind(null,be,!1,l.queue),l=Ht(),o={state:t,dispatch:null,action:e,pending:null},l.queue=o,r=KE.bind(null,be,o,c,r),o.dispatch=r,l.memoizedState=e,[t,r,!1]}function U0(e){var t=ot();return j0(t,Ve,e)}function j0(e,t,r){if(t=Dc(e,t,L0)[0],e=Fs(ga)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=hl(t)}catch(p){throw p===ci?Ls:p}else l=t;t=ot();var o=t.queue,c=o.dispatch;return r!==t.memoizedState&&(be.flags|=2048,pi(9,{destroy:void 0},$E.bind(null,o,r),null)),[l,c,e]}function $E(e,t){e.action=t}function H0(e){var t=ot(),r=Ve;if(r!==null)return j0(t,r,e);ot(),t=t.memoizedState,r=ot();var l=r.queue.dispatch;return r.memoizedState=e,[t,l,!1]}function pi(e,t,r,l){return e={tag:e,create:r,deps:l,inst:t,next:null},t=be.updateQueue,t===null&&(t=ks(),be.updateQueue=t),r=t.lastEffect,r===null?t.lastEffect=e.next=e:(l=r.next,r.next=e,e.next=l,t.lastEffect=e),e}function I0(){return ot().memoizedState}function Vs(e,t,r,l){var o=Ht();be.flags|=e,o.memoizedState=pi(1|t,{destroy:void 0},r,l===void 0?null:l)}function Ys(e,t,r,l){var o=ot();l=l===void 0?null:l;var c=o.memoizedState.inst;Ve!==null&&l!==null&&xc(l,Ve.memoizedState.deps)?o.memoizedState=pi(t,c,r,l):(be.flags|=e,o.memoizedState=pi(1|t,c,r,l))}function z0(e,t){Vs(8390656,8,e,t)}function jc(e,t){Ys(2048,8,e,t)}function WE(e){be.flags|=4;var t=be.updateQueue;if(t===null)t=ks(),be.updateQueue=t,t.events=[e];else{var r=t.events;r===null?t.events=[e]:r.push(e)}}function G0(e){var t=ot().memoizedState;return WE({ref:t,nextImpl:e}),function(){if((He&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function k0(e,t){return Ys(4,2,e,t)}function q0(e,t){return Ys(4,4,e,t)}function F0(e,t){if(typeof t=="function"){e=e();var r=t(e);return function(){typeof r=="function"?r():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function V0(e,t,r){r=r!=null?r.concat([e]):null,Ys(4,4,F0.bind(null,t,e),r)}function Hc(){}function Y0(e,t){var r=ot();t=t===void 0?null:t;var l=r.memoizedState;return t!==null&&xc(t,l[1])?l[0]:(r.memoizedState=[e,t],e)}function P0(e,t){var r=ot();t=t===void 0?null:t;var l=r.memoizedState;if(t!==null&&xc(t,l[1]))return l[0];if(l=e(),Cr){Tt(!0);try{e()}finally{Tt(!1)}}return r.memoizedState=[l,t],l}function Ic(e,t,r){return r===void 0||(pa&1073741824)!==0&&(Re&261930)===0?e.memoizedState=t:(e.memoizedState=r,e=Xp(),be.lanes|=e,Ka|=e,r)}function X0(e,t,r,l){return Jt(r,t)?r:di.current!==null?(e=Ic(e,r,l),Jt(e,t)||(pt=!0),e):(pa&42)===0||(pa&1073741824)!==0&&(Re&261930)===0?(pt=!0,e.memoizedState=r):(e=Xp(),be.lanes|=e,Ka|=e,t)}function Z0(e,t,r,l,o){var c=$.p;$.p=c!==0&&8>c?c:8;var p=G.T,v={};G.T=v,kc(e,!1,t,r);try{var T=o(),L=G.S;if(L!==null&&L(v,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var F=XE(T,l);ml(e,t,F,ln(e))}else ml(e,t,l,ln(e))}catch(Y){ml(e,t,{then:function(){},status:"rejected",reason:Y},ln())}finally{$.p=c,p!==null&&v.types!==null&&(p.types=v.types),G.T=p}}function JE(){}function zc(e,t,r,l){if(e.tag!==5)throw Error(s(476));var o=Q0(e).queue;Z0(e,o,t,ne,r===null?JE:function(){return K0(e),r(l)})}function Q0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:ne},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function K0(e){var t=Q0(e);t.next===null&&(t=e.alternate.memoizedState),ml(e,t.next.queue,{},ln())}function Gc(){return Nt(Ml)}function $0(){return ot().memoizedState}function W0(){return ot().memoizedState}function e2(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=ln();e=Va(r);var l=Ya(t,e,r);l!==null&&(Kt(l,t,r),ul(l,t,r)),t={cache:pc()},e.payload=t;return}t=t.return}}function t2(e,t,r){var l=ln();r={lane:l,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ps(e)?ep(t,r):(r=rc(e,t,r,l),r!==null&&(Kt(r,e,l),tp(r,t,l)))}function J0(e,t,r){var l=ln();ml(e,t,r,l)}function ml(e,t,r,l){var o={lane:l,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(Ps(e))ep(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var p=t.lastRenderedState,v=c(p,r);if(o.hasEagerState=!0,o.eagerState=v,Jt(v,p))return xs(e,t,o,0),Ze===null&&Os(),!1}catch{}finally{}if(r=rc(e,t,o,l),r!==null)return Kt(r,e,l),tp(r,t,l),!0}return!1}function kc(e,t,r,l){if(l={lane:2,revertLane:_f(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ps(e)){if(t)throw Error(s(479))}else t=rc(e,r,l,2),t!==null&&Kt(t,e,2)}function Ps(e){var t=e.alternate;return e===be||t!==null&&t===be}function ep(e,t){hi=zs=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function tp(e,t,r){if((r&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,r|=l,t.lanes=r,Fi(e,r)}}var pl={readContext:Nt,use:qs,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt,useHostTransitionStatus:rt,useFormState:rt,useActionState:rt,useOptimistic:rt,useMemoCache:rt,useCacheRefresh:rt};pl.useEffectEvent=rt;var np={readContext:Nt,use:qs,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:Nt,useEffect:z0,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,Vs(4194308,4,F0.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Vs(4194308,4,e,t)},useInsertionEffect:function(e,t){Vs(4,2,e,t)},useMemo:function(e,t){var r=Ht();t=t===void 0?null:t;var l=e();if(Cr){Tt(!0);try{e()}finally{Tt(!1)}}return r.memoizedState=[l,t],l},useReducer:function(e,t,r){var l=Ht();if(r!==void 0){var o=r(t);if(Cr){Tt(!0);try{r(t)}finally{Tt(!1)}}}else o=t;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=t2.bind(null,be,e),[l.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:function(e){e=Bc(e);var t=e.queue,r=J0.bind(null,be,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:Hc,useDeferredValue:function(e,t){var r=Ht();return Ic(r,e,t)},useTransition:function(){var e=Bc(!1);return e=Z0.bind(null,be,e.queue,!0,!1),Ht().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var l=be,o=Ht();if(Me){if(r===void 0)throw Error(s(407));r=r()}else{if(r=t(),Ze===null)throw Error(s(349));(Re&127)!==0||T0(l,t,r)}o.memoizedState=r;var c={value:r,getSnapshot:t};return o.queue=c,z0(O0.bind(null,l,c,e),[e]),l.flags|=2048,pi(9,{destroy:void 0},A0.bind(null,l,c,r,t),null),r},useId:function(){var e=Ht(),t=Ze.identifierPrefix;if(Me){var r=Yn,l=Vn;r=(l&~(1<<32-ct(l)-1)).toString(32)+r,t="_"+t+"R_"+r,r=Gs++,0<r&&(t+="H"+r.toString(32)),t+="_"}else r=ZE++,t="_"+t+"r_"+r.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Gc,useFormState:B0,useActionState:B0,useOptimistic:function(e){var t=Ht();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=kc.bind(null,be,!0,r),r.dispatch=t,[e,t]},useMemoCache:Mc,useCacheRefresh:function(){return Ht().memoizedState=e2.bind(null,be)},useEffectEvent:function(e){var t=Ht(),r={impl:e};return t.memoizedState=r,function(){if((He&2)!==0)throw Error(s(440));return r.impl.apply(void 0,arguments)}}},qc={readContext:Nt,use:qs,useCallback:Y0,useContext:Nt,useEffect:jc,useImperativeHandle:V0,useInsertionEffect:k0,useLayoutEffect:q0,useMemo:P0,useReducer:Fs,useRef:I0,useState:function(){return Fs(ga)},useDebugValue:Hc,useDeferredValue:function(e,t){var r=ot();return X0(r,Ve.memoizedState,e,t)},useTransition:function(){var e=Fs(ga)[0],t=ot().memoizedState;return[typeof e=="boolean"?e:hl(e),t]},useSyncExternalStore:S0,useId:$0,useHostTransitionStatus:Gc,useFormState:U0,useActionState:U0,useOptimistic:function(e,t){var r=ot();return R0(r,Ve,e,t)},useMemoCache:Mc,useCacheRefresh:W0};qc.useEffectEvent=G0;var ap={readContext:Nt,use:qs,useCallback:Y0,useContext:Nt,useEffect:jc,useImperativeHandle:V0,useInsertionEffect:k0,useLayoutEffect:q0,useMemo:P0,useReducer:Lc,useRef:I0,useState:function(){return Lc(ga)},useDebugValue:Hc,useDeferredValue:function(e,t){var r=ot();return Ve===null?Ic(r,e,t):X0(r,Ve.memoizedState,e,t)},useTransition:function(){var e=Lc(ga)[0],t=ot().memoizedState;return[typeof e=="boolean"?e:hl(e),t]},useSyncExternalStore:S0,useId:$0,useHostTransitionStatus:Gc,useFormState:H0,useActionState:H0,useOptimistic:function(e,t){var r=ot();return Ve!==null?R0(r,Ve,e,t):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:Mc,useCacheRefresh:W0};ap.useEffectEvent=G0;function Fc(e,t,r,l){t=e.memoizedState,r=r(l,t),r=r==null?t:_({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Vc={enqueueSetState:function(e,t,r){e=e._reactInternals;var l=ln(),o=Va(l);o.payload=t,r!=null&&(o.callback=r),t=Ya(e,o,l),t!==null&&(Kt(t,e,l),ul(t,e,l))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var l=ln(),o=Va(l);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=Ya(e,o,l),t!==null&&(Kt(t,e,l),ul(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=ln(),l=Va(r);l.tag=2,t!=null&&(l.callback=t),t=Ya(e,l,r),t!==null&&(Kt(t,e,r),ul(t,e,r))}};function rp(e,t,r,l,o,c,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,p):t.prototype&&t.prototype.isPureReactComponent?!tl(r,l)||!tl(o,c):!0}function ip(e,t,r,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,l),t.state!==e&&Vc.enqueueReplaceState(t,t.state,null)}function Rr(e,t){var r=t;if("ref"in t){r={};for(var l in t)l!=="ref"&&(r[l]=t[l])}if(e=e.defaultProps){r===t&&(r=_({},r));for(var o in e)r[o]===void 0&&(r[o]=e[o])}return r}function lp(e){As(e)}function sp(e){console.error(e)}function op(e){As(e)}function Xs(e,t){try{var r=e.onUncaughtError;r(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function up(e,t,r){try{var l=e.onCaughtError;l(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Yc(e,t,r){return r=Va(r),r.tag=3,r.payload={element:null},r.callback=function(){Xs(e,t)},r}function cp(e){return e=Va(e),e.tag=3,e}function fp(e,t,r,l){var o=r.type.getDerivedStateFromError;if(typeof o=="function"){var c=l.value;e.payload=function(){return o(c)},e.callback=function(){up(t,r,l)}}var p=r.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){up(t,r,l),typeof o!="function"&&($a===null?$a=new Set([this]):$a.add(this));var v=l.stack;this.componentDidCatch(l.value,{componentStack:v!==null?v:""})})}function n2(e,t,r,l,o){if(r.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=r.alternate,t!==null&&si(t,r,o,!0),r=tn.current,r!==null){switch(r.tag){case 31:case 13:return Tn===null?io():r.alternate===null&&it===0&&(it=3),r.flags&=-257,r.flags|=65536,r.lanes=o,l===Bs?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([l]):t.add(l),yf(e,l,o)),!1;case 22:return r.flags|=65536,l===Bs?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([l]):r.add(l)),yf(e,l,o)),!1}throw Error(s(435,r.tag))}return yf(e,l,o),io(),!1}if(Me)return t=tn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,l!==cc&&(e=Error(s(422),{cause:l}),rl(vn(e,r)))):(l!==cc&&(t=Error(s(423),{cause:l}),rl(vn(t,r))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=vn(l,r),o=Yc(e.stateNode,l,o),Ec(e,o),it!==4&&(it=2)),!1;var c=Error(s(520),{cause:l});if(c=vn(c,r),Tl===null?Tl=[c]:Tl.push(c),it!==4&&(it=2),t===null)return!0;l=vn(l,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=o&-o,r.lanes|=e,e=Yc(r.stateNode,l,e),Ec(r,e),!1;case 1:if(t=r.type,c=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&($a===null||!$a.has(c))))return r.flags|=65536,o&=-o,r.lanes|=o,o=cp(o),fp(o,e,r,l),Ec(r,o),!1}r=r.return}while(r!==null);return!1}var Pc=Error(s(461)),pt=!1;function Mt(e,t,r,l){t.child=e===null?p0(t,null,r,l):xr(t,e.child,r,l)}function dp(e,t,r,l,o){r=r.render;var c=t.ref;if("ref"in l){var p={};for(var v in l)v!=="ref"&&(p[v]=l[v])}else p=l;return Sr(t),l=Cc(e,t,r,p,c,o),v=Rc(),e!==null&&!pt?(wc(e,t,o),ya(e,t,o)):(Me&&v&&oc(t),t.flags|=1,Mt(e,t,l,o),t.child)}function hp(e,t,r,l,o){if(e===null){var c=r.type;return typeof c=="function"&&!ic(c)&&c.defaultProps===void 0&&r.compare===null?(t.tag=15,t.type=c,mp(e,t,c,l,o)):(e=Rs(r.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!ef(e,o)){var p=c.memoizedProps;if(r=r.compare,r=r!==null?r:tl,r(p,l)&&e.ref===t.ref)return ya(e,t,o)}return t.flags|=1,e=fa(c,l),e.ref=t.ref,e.return=t,t.child=e}function mp(e,t,r,l,o){if(e!==null){var c=e.memoizedProps;if(tl(c,l)&&e.ref===t.ref)if(pt=!1,t.pendingProps=l=c,ef(e,o))(e.flags&131072)!==0&&(pt=!0);else return t.lanes=e.lanes,ya(e,t,o)}return Xc(e,t,r,l,o)}function pp(e,t,r,l){var o=l.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|r:r,e!==null){for(l=t.child=e.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~c}else l=0,t.child=null;return gp(e,t,c,r,l)}if((r&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ds(t,c!==null?c.cachePool:null),c!==null?b0(t,c):Tc(),v0(t);else return l=t.lanes=536870912,gp(e,t,c!==null?c.baseLanes|r:r,r,l)}else c!==null?(Ds(t,c.cachePool),b0(t,c),Xa(),t.memoizedState=null):(e!==null&&Ds(t,null),Tc(),Xa());return Mt(e,t,o,r),t.child}function gl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function gp(e,t,r,l,o){var c=yc();return c=c===null?null:{parent:ht._currentValue,pool:c},t.memoizedState={baseLanes:r,cachePool:c},e!==null&&Ds(t,null),Tc(),v0(t),e!==null&&si(e,t,l,!0),t.childLanes=o,null}function Zs(e,t){return t=Ks({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function yp(e,t,r){return xr(t,e.child,null,r),e=Zs(t,t.pendingProps),e.flags|=2,nn(t),t.memoizedState=null,e}function a2(e,t,r){var l=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Me){if(l.mode==="hidden")return e=Zs(t,l),t.lanes=536870912,gl(null,e);if(Oc(t),(e=Qe)?(e=wg(e,Sn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:za!==null?{id:Vn,overflow:Yn}:null,retryLane:536870912,hydrationErrors:null},r=e0(e),r.return=t,t.child=r,wt=t,Qe=null)):e=null,e===null)throw ka(t);return t.lanes=536870912,null}return Zs(t,l)}var c=e.memoizedState;if(c!==null){var p=c.dehydrated;if(Oc(t),o)if(t.flags&256)t.flags&=-257,t=yp(e,t,r);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(pt||si(e,t,r,!1),o=(r&e.childLanes)!==0,pt||o){if(l=Ze,l!==null&&(p=cs(l,r),p!==0&&p!==c.retryLane))throw c.retryLane=p,br(e,p),Kt(l,e,p),Pc;io(),t=yp(e,t,r)}else e=c.treeContext,Qe=An(p.nextSibling),wt=t,Me=!0,Ga=null,Sn=!1,e!==null&&a0(t,e),t=Zs(t,l),t.flags|=4096;return t}return e=fa(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Qs(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(s(284));(e===null||e.ref!==r)&&(t.flags|=4194816)}}function Xc(e,t,r,l,o){return Sr(t),r=Cc(e,t,r,l,void 0,o),l=Rc(),e!==null&&!pt?(wc(e,t,o),ya(e,t,o)):(Me&&l&&oc(t),t.flags|=1,Mt(e,t,r,o),t.child)}function bp(e,t,r,l,o,c){return Sr(t),t.updateQueue=null,r=E0(t,l,r,o),_0(e),l=Rc(),e!==null&&!pt?(wc(e,t,c),ya(e,t,c)):(Me&&l&&oc(t),t.flags|=1,Mt(e,t,r,c),t.child)}function vp(e,t,r,l,o){if(Sr(t),t.stateNode===null){var c=ai,p=r.contextType;typeof p=="object"&&p!==null&&(c=Nt(p)),c=new r(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Vc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},vc(t),p=r.contextType,c.context=typeof p=="object"&&p!==null?Nt(p):ai,c.state=t.memoizedState,p=r.getDerivedStateFromProps,typeof p=="function"&&(Fc(t,r,p,l),c.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(p=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),p!==c.state&&Vc.enqueueReplaceState(c,c.state,null),fl(t,l,c,o),cl(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){c=t.stateNode;var v=t.memoizedProps,T=Rr(r,v);c.props=T;var L=c.context,F=r.contextType;p=ai,typeof F=="object"&&F!==null&&(p=Nt(F));var Y=r.getDerivedStateFromProps;F=typeof Y=="function"||typeof c.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,F||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v||L!==p)&&ip(t,c,l,p),Fa=!1;var j=t.memoizedState;c.state=j,fl(t,l,c,o),cl(),L=t.memoizedState,v||j!==L||Fa?(typeof Y=="function"&&(Fc(t,r,Y,l),L=t.memoizedState),(T=Fa||rp(t,r,T,l,j,L,p))?(F||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"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=L),c.props=l,c.state=L,c.context=p,l=T):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,_c(e,t),p=t.memoizedProps,F=Rr(r,p),c.props=F,Y=t.pendingProps,j=c.context,L=r.contextType,T=ai,typeof L=="object"&&L!==null&&(T=Nt(L)),v=r.getDerivedStateFromProps,(L=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p!==Y||j!==T)&&ip(t,c,l,T),Fa=!1,j=t.memoizedState,c.state=j,fl(t,l,c,o),cl();var z=t.memoizedState;p!==Y||j!==z||Fa||e!==null&&e.dependencies!==null&&Ns(e.dependencies)?(typeof v=="function"&&(Fc(t,r,v,l),z=t.memoizedState),(F=Fa||rp(t,r,F,l,j,z,T)||e!==null&&e.dependencies!==null&&Ns(e.dependencies))?(L||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,z,T),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,z,T)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=z),c.props=l,c.state=z,c.context=T,l=F):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),l=!1)}return c=l,Qs(e,t),l=(t.flags&128)!==0,c||l?(c=t.stateNode,r=l&&typeof r.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&l?(t.child=xr(t,e.child,null,o),t.child=xr(t,null,r,o)):Mt(e,t,r,o),t.memoizedState=c.state,e=t.child):e=ya(e,t,o),e}function _p(e,t,r,l){return _r(),t.flags|=256,Mt(e,t,r,l),t.child}var Zc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Qc(e){return{baseLanes:e,cachePool:u0()}}function Kc(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=rn),e}function Ep(e,t,r){var l=t.pendingProps,o=!1,c=(t.flags&128)!==0,p;if((p=c)||(p=e!==null&&e.memoizedState===null?!1:(st.current&2)!==0),p&&(o=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Me){if(o?Pa(t):Xa(),(e=Qe)?(e=wg(e,Sn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:za!==null?{id:Vn,overflow:Yn}:null,retryLane:536870912,hydrationErrors:null},r=e0(e),r.return=t,t.child=r,wt=t,Qe=null)):e=null,e===null)throw ka(t);return Lf(e)?t.lanes=32:t.lanes=536870912,null}var v=l.children;return l=l.fallback,o?(Xa(),o=t.mode,v=Ks({mode:"hidden",children:v},o),l=vr(l,o,r,null),v.return=t,l.return=t,v.sibling=l,t.child=v,l=t.child,l.memoizedState=Qc(r),l.childLanes=Kc(e,p,r),t.memoizedState=Zc,gl(null,l)):(Pa(t),$c(t,v))}var T=e.memoizedState;if(T!==null&&(v=T.dehydrated,v!==null)){if(c)t.flags&256?(Pa(t),t.flags&=-257,t=Wc(e,t,r)):t.memoizedState!==null?(Xa(),t.child=e.child,t.flags|=128,t=null):(Xa(),v=l.fallback,o=t.mode,l=Ks({mode:"visible",children:l.children},o),v=vr(v,o,r,null),v.flags|=2,l.return=t,v.return=t,l.sibling=v,t.child=l,xr(t,e.child,null,r),l=t.child,l.memoizedState=Qc(r),l.childLanes=Kc(e,p,r),t.memoizedState=Zc,t=gl(null,l));else if(Pa(t),Lf(v)){if(p=v.nextSibling&&v.nextSibling.dataset,p)var L=p.dgst;p=L,l=Error(s(419)),l.stack="",l.digest=p,rl({value:l,source:null,stack:null}),t=Wc(e,t,r)}else if(pt||si(e,t,r,!1),p=(r&e.childLanes)!==0,pt||p){if(p=Ze,p!==null&&(l=cs(p,r),l!==0&&l!==T.retryLane))throw T.retryLane=l,br(e,l),Kt(p,e,l),Pc;Df(v)||io(),t=Wc(e,t,r)}else Df(v)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,Qe=An(v.nextSibling),wt=t,Me=!0,Ga=null,Sn=!1,e!==null&&a0(t,e),t=$c(t,l.children),t.flags|=4096);return t}return o?(Xa(),v=l.fallback,o=t.mode,T=e.child,L=T.sibling,l=fa(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,L!==null?v=fa(L,v):(v=vr(v,o,r,null),v.flags|=2),v.return=t,l.return=t,l.sibling=v,t.child=l,gl(null,l),l=t.child,v=e.child.memoizedState,v===null?v=Qc(r):(o=v.cachePool,o!==null?(T=ht._currentValue,o=o.parent!==T?{parent:T,pool:T}:o):o=u0(),v={baseLanes:v.baseLanes|r,cachePool:o}),l.memoizedState=v,l.childLanes=Kc(e,p,r),t.memoizedState=Zc,gl(e.child,l)):(Pa(t),r=e.child,e=r.sibling,r=fa(r,{mode:"visible",children:l.children}),r.return=t,r.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=r,t.memoizedState=null,r)}function $c(e,t){return t=Ks({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ks(e,t){return e=en(22,e,null,t),e.lanes=0,e}function Wc(e,t,r){return xr(t,e.child,null,r),e=$c(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Sp(e,t,r){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),hc(e.return,t,r)}function Jc(e,t,r,l,o,c){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:r,tailMode:o,treeForkCount:c}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=l,p.tail=r,p.tailMode=o,p.treeForkCount=c)}function Tp(e,t,r){var l=t.pendingProps,o=l.revealOrder,c=l.tail;l=l.children;var p=st.current,v=(p&2)!==0;if(v?(p=p&1|2,t.flags|=128):p&=1,P(st,p),Mt(e,t,l,r),l=Me?al:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Sp(e,r,t);else if(e.tag===19)Sp(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&Is(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),Jc(t,!1,o,r,c,l);break;case"backwards":case"unstable_legacy-backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Is(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}Jc(t,!0,r,null,c,l);break;case"together":Jc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function ya(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Ka|=t.lanes,(r&t.childLanes)===0)if(e!==null){if(si(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,r=fa(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=fa(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function ef(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ns(e)))}function r2(e,t,r){switch(t.tag){case 3:We(t,t.stateNode.containerInfo),qa(t,ht,e.memoizedState.cache),_r();break;case 27:case 5:$t(t);break;case 4:We(t,t.stateNode.containerInfo);break;case 10:qa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Oc(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Pa(t),t.flags|=128,null):(r&t.child.childLanes)!==0?Ep(e,t,r):(Pa(t),e=ya(e,t,r),e!==null?e.sibling:null);Pa(t);break;case 19:var o=(e.flags&128)!==0;if(l=(r&t.childLanes)!==0,l||(si(e,t,r,!1),l=(r&t.childLanes)!==0),o){if(l)return Tp(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),P(st,st.current),l)break;return null;case 22:return t.lanes=0,pp(e,t,r,t.pendingProps);case 24:qa(t,ht,e.memoizedState.cache)}return ya(e,t,r)}function Ap(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps)pt=!0;else{if(!ef(e,r)&&(t.flags&128)===0)return pt=!1,r2(e,t,r);pt=(e.flags&131072)!==0}else pt=!1,Me&&(t.flags&1048576)!==0&&n0(t,al,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Ar(t.elementType),t.type=e,typeof e=="function")ic(e)?(l=Rr(e,l),t.tag=1,t=vp(null,t,e,l,r)):(t.tag=0,t=Xc(null,t,e,l,r));else{if(e!=null){var o=e.$$typeof;if(o===H){t.tag=11,t=dp(null,t,e,l,r);break e}else if(o===X){t.tag=14,t=hp(null,t,e,l,r);break e}}throw t=Xe(e)||e,Error(s(306,t,""))}}return t;case 0:return Xc(e,t,t.type,t.pendingProps,r);case 1:return l=t.type,o=Rr(l,t.pendingProps),vp(e,t,l,o,r);case 3:e:{if(We(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var c=t.memoizedState;o=c.element,_c(e,t),fl(t,l,null,r);var p=t.memoizedState;if(l=p.cache,qa(t,ht,l),l!==c.cache&&mc(t,[ht],r,!0),cl(),l=p.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=_p(e,t,l,r);break e}else if(l!==o){o=vn(Error(s(424)),t),rl(o),t=_p(e,t,l,r);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Qe=An(e.firstChild),wt=t,Me=!0,Ga=null,Sn=!0,r=p0(t,null,l,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(_r(),l===o){t=ya(e,t,r);break e}Mt(e,t,l,r)}t=t.child}return t;case 26:return Qs(e,t),e===null?(r=Ug(t.type,null,t.pendingProps,null))?t.memoizedState=r:Me||(r=t.type,e=t.pendingProps,l=ho(fe.current).createElement(r),l[dt]=t,l[Je]=e,Dt(l,r,e),Ee(l),t.stateNode=l):t.memoizedState=Ug(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return $t(t),e===null&&Me&&(l=t.stateNode=Dg(t.type,t.pendingProps,fe.current),wt=t,Sn=!0,o=Qe,tr(t.type)?(Bf=o,Qe=An(l.firstChild)):Qe=o),Mt(e,t,t.pendingProps.children,r),Qs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Me&&((o=l=Qe)&&(l=B2(l,t.type,t.pendingProps,Sn),l!==null?(t.stateNode=l,wt=t,Qe=An(l.firstChild),Sn=!1,o=!0):o=!1),o||ka(t)),$t(t),o=t.type,c=t.pendingProps,p=e!==null?e.memoizedProps:null,l=c.children,wf(o,c)?l=null:p!==null&&wf(o,p)&&(t.flags|=32),t.memoizedState!==null&&(o=Cc(e,t,QE,null,null,r),Ml._currentValue=o),Qs(e,t),Mt(e,t,l,r),t.child;case 6:return e===null&&Me&&((e=r=Qe)&&(r=U2(r,t.pendingProps,Sn),r!==null?(t.stateNode=r,wt=t,Qe=null,e=!0):e=!1),e||ka(t)),null;case 13:return Ep(e,t,r);case 4:return We(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=xr(t,null,l,r):Mt(e,t,l,r),t.child;case 11:return dp(e,t,t.type,t.pendingProps,r);case 7:return Mt(e,t,t.pendingProps,r),t.child;case 8:return Mt(e,t,t.pendingProps.children,r),t.child;case 12:return Mt(e,t,t.pendingProps.children,r),t.child;case 10:return l=t.pendingProps,qa(t,t.type,l.value),Mt(e,t,l.children,r),t.child;case 9:return o=t.type._context,l=t.pendingProps.children,Sr(t),o=Nt(o),l=l(o),t.flags|=1,Mt(e,t,l,r),t.child;case 14:return hp(e,t,t.type,t.pendingProps,r);case 15:return mp(e,t,t.type,t.pendingProps,r);case 19:return Tp(e,t,r);case 31:return a2(e,t,r);case 22:return pp(e,t,r,t.pendingProps);case 24:return Sr(t),l=Nt(ht),e===null?(o=yc(),o===null&&(o=Ze,c=pc(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=r),o=c),t.memoizedState={parent:l,cache:o},vc(t),qa(t,ht,o)):((e.lanes&r)!==0&&(_c(e,t),fl(t,null,null,r),cl()),o=e.memoizedState,c=t.memoizedState,o.parent!==l?(o={parent:l,cache:l},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),qa(t,ht,l)):(l=c.cache,qa(t,ht,l),l!==o.cache&&mc(t,[ht],r,!0))),Mt(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function ba(e){e.flags|=4}function tf(e,t,r,l,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if($p())e.flags|=8192;else throw Or=Bs,bc}else e.flags&=-16777217}function Op(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Gg(t))if($p())e.flags|=8192;else throw Or=Bs,bc}function $s(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?la():536870912,e.lanes|=t,vi|=t)}function yl(e,t){if(!Me)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,l=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=r,t}function i2(e,t,r){var l=t.pendingProps;switch(uc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(t),null;case 1:return Ke(t),null;case 3:return r=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ma(ht),Ge(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(li(t)?ba(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,fc())),Ke(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(ba(t),c!==null?(Ke(t),Op(t,c)):(Ke(t),tf(t,o,null,l,r))):c?c!==e.memoizedState?(ba(t),Ke(t),Op(t,c)):(Ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&ba(t),Ke(t),tf(t,o,e,l,r)),null;case 27:if(Ba(t),r=fe.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ba(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Ke(t),null}e=W.current,li(t)?r0(t):(e=Dg(o,l,r),t.stateNode=e,ba(t))}return Ke(t),null;case 5:if(Ba(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ba(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Ke(t),null}if(c=W.current,li(t))r0(t);else{var p=ho(fe.current);switch(c){case 1:c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=p.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?p.createElement("select",{is:l.is}):p.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?p.createElement(o,{is:l.is}):p.createElement(o)}}c[dt]=t,c[Je]=l;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)c.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=c;e:switch(Dt(c,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ba(t)}}return Ke(t),tf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,r),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ba(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=fe.current,li(t)){if(e=t.stateNode,r=t.memoizedProps,l=null,o=wt,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[dt]=t,e=!!(e.nodeValue===r||l!==null&&l.suppressHydrationWarning===!0||Eg(e.nodeValue,r)),e||ka(t,!0)}else e=ho(e).createTextNode(l),e[dt]=t,t.stateNode=e}return Ke(t),null;case 31:if(r=t.memoizedState,e===null||e.memoizedState!==null){if(l=li(t),r!==null){if(e===null){if(!l)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[dt]=t}else _r(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ke(t),e=!1}else r=fc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return t.flags&256?(nn(t),t):(nn(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Ke(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=li(t),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[dt]=t}else _r(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ke(t),o=!1}else o=fc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(nn(t),t):(nn(t),null)}return nn(t),(t.flags&128)!==0?(t.lanes=r,t):(r=l!==null,e=e!==null&&e.memoizedState!==null,r&&(l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==o&&(l.flags|=2048)),r!==e&&r&&(t.child.flags|=8192),$s(t,t.updateQueue),Ke(t),null);case 4:return Ge(),e===null&&Af(t.stateNode.containerInfo),Ke(t),null;case 10:return ma(t.type),Ke(t),null;case 19:if(q(st),l=t.memoizedState,l===null)return Ke(t),null;if(o=(t.flags&128)!==0,c=l.rendering,c===null)if(o)yl(l,!1);else{if(it!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Is(e),c!==null){for(t.flags|=128,yl(l,!1),e=c.updateQueue,t.updateQueue=e,$s(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)Jm(r,e),r=r.sibling;return P(st,st.current&1|2),Me&&da(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Ct()>no&&(t.flags|=128,o=!0,yl(l,!1),t.lanes=4194304)}else{if(!o)if(e=Is(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,$s(t,e),yl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!Me)return Ke(t),null}else 2*Ct()-l.renderingStartTime>no&&r!==536870912&&(t.flags|=128,o=!0,yl(l,!1),t.lanes=4194304);l.isBackwards?(c.sibling=t.child,t.child=c):(e=l.last,e!==null?e.sibling=c:t.child=c,l.last=c)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Ct(),e.sibling=null,r=st.current,P(st,o?r&1|2:r&1),Me&&da(t,l.treeForkCount),e):(Ke(t),null);case 22:case 23:return nn(t),Ac(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(r&536870912)!==0&&(t.flags&128)===0&&(Ke(t),t.subtreeFlags&6&&(t.flags|=8192)):Ke(t),r=t.updateQueue,r!==null&&$s(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==r&&(t.flags|=2048),e!==null&&q(Tr),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ma(ht),Ke(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function l2(e,t){switch(uc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ma(ht),Ge(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ba(t),null;case 31:if(t.memoizedState!==null){if(nn(t),t.alternate===null)throw Error(s(340));_r()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(nn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));_r()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(st),null;case 4:return Ge(),null;case 10:return ma(t.type),null;case 22:case 23:return nn(t),Ac(),e!==null&&q(Tr),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ma(ht),null;case 25:return null;default:return null}}function xp(e,t){switch(uc(t),t.tag){case 3:ma(ht),Ge();break;case 26:case 27:case 5:Ba(t);break;case 4:Ge();break;case 31:t.memoizedState!==null&&nn(t);break;case 13:nn(t);break;case 19:q(st);break;case 10:ma(t.type);break;case 22:case 23:nn(t),Ac(),e!==null&&q(Tr);break;case 24:ma(ht)}}function bl(e,t){try{var r=t.updateQueue,l=r!==null?r.lastEffect:null;if(l!==null){var o=l.next;r=o;do{if((r.tag&e)===e){l=void 0;var c=r.create,p=r.inst;l=c(),p.destroy=l}r=r.next}while(r!==o)}}catch(v){qe(t,t.return,v)}}function Za(e,t,r){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var c=o.next;l=c;do{if((l.tag&e)===e){var p=l.inst,v=p.destroy;if(v!==void 0){p.destroy=void 0,o=t;var T=r,L=v;try{L()}catch(F){qe(o,T,F)}}}l=l.next}while(l!==c)}}catch(F){qe(t,t.return,F)}}function Cp(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;try{y0(t,r)}catch(l){qe(e,e.return,l)}}}function Rp(e,t,r){r.props=Rr(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(l){qe(e,t,l)}}function vl(e,t){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof r=="function"?e.refCleanup=r(l):r.current=l}}catch(o){qe(e,t,o)}}function Pn(e,t){var r=e.ref,l=e.refCleanup;if(r!==null)if(typeof l=="function")try{l()}catch(o){qe(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(o){qe(e,t,o)}else r.current=null}function wp(e){var t=e.type,r=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&l.focus();break e;case"img":r.src?l.src=r.src:r.srcSet&&(l.srcset=r.srcSet)}}catch(o){qe(e,e.return,o)}}function nf(e,t,r){try{var l=e.stateNode;R2(l,e.type,r,t),l[Je]=t}catch(o){qe(e,e.return,o)}}function Np(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&tr(e.type)||e.tag===4}function af(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Np(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&&tr(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 rf(e,t,r){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,t):(t=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,t.appendChild(e),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=ua));else if(l!==4&&(l===27&&tr(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for(rf(e,t,r),e=e.sibling;e!==null;)rf(e,t,r),e=e.sibling}function Ws(e,t,r){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(l!==4&&(l===27&&tr(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(Ws(e,t,r),e=e.sibling;e!==null;)Ws(e,t,r),e=e.sibling}function Mp(e){var t=e.stateNode,r=e.memoizedProps;try{for(var l=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);Dt(t,l,r),t[dt]=e,t[Je]=r}catch(c){qe(e,e.return,c)}}var va=!1,gt=!1,lf=!1,Dp=typeof WeakSet=="function"?WeakSet:Set,At=null;function s2(e,t){if(e=e.containerInfo,Cf=_o,e=Vm(e),Wu(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var l=r.getSelection&&r.getSelection();if(l&&l.rangeCount!==0){r=l.anchorNode;var o=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{r.nodeType,c.nodeType}catch{r=null;break e}var p=0,v=-1,T=-1,L=0,F=0,Y=e,j=null;t:for(;;){for(var z;Y!==r||o!==0&&Y.nodeType!==3||(v=p+o),Y!==c||l!==0&&Y.nodeType!==3||(T=p+l),Y.nodeType===3&&(p+=Y.nodeValue.length),(z=Y.firstChild)!==null;)j=Y,Y=z;for(;;){if(Y===e)break t;if(j===r&&++L===o&&(v=p),j===c&&++F===l&&(T=p),(z=Y.nextSibling)!==null)break;Y=j,j=Y.parentNode}Y=z}r=v===-1||T===-1?null:{start:v,end:T}}else r=null}r=r||{start:0,end:0}}else r=null;for(Rf={focusedElem:e,selectionRange:r},_o=!1,At=t;At!==null;)if(t=At,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,At=e;else for(;At!==null;){switch(t=At,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(r=0;r<e.length;r++)o=e[r],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,r=t,o=c.memoizedProps,c=c.memoizedState,l=r.stateNode;try{var ae=Rr(r.type,o);e=l.getSnapshotBeforeUpdate(ae,c),l.__reactInternalSnapshotBeforeUpdate=e}catch(ue){qe(r,r.return,ue)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,r=e.nodeType,r===9)Mf(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Mf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,At=e;break}At=t.return}}function Lp(e,t,r){var l=r.flags;switch(r.tag){case 0:case 11:case 15:Ea(e,r),l&4&&bl(5,r);break;case 1:if(Ea(e,r),l&4)if(e=r.stateNode,t===null)try{e.componentDidMount()}catch(p){qe(r,r.return,p)}else{var o=Rr(r.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){qe(r,r.return,p)}}l&64&&Cp(r),l&512&&vl(r,r.return);break;case 3:if(Ea(e,r),l&64&&(e=r.updateQueue,e!==null)){if(t=null,r.child!==null)switch(r.child.tag){case 27:case 5:t=r.child.stateNode;break;case 1:t=r.child.stateNode}try{y0(e,t)}catch(p){qe(r,r.return,p)}}break;case 27:t===null&&l&4&&Mp(r);case 26:case 5:Ea(e,r),t===null&&l&4&&wp(r),l&512&&vl(r,r.return);break;case 12:Ea(e,r);break;case 31:Ea(e,r),l&4&&jp(e,r);break;case 13:Ea(e,r),l&4&&Hp(e,r),l&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=g2.bind(null,r),j2(e,r))));break;case 22:if(l=r.memoizedState!==null||va,!l){t=t!==null&&t.memoizedState!==null||gt,o=va;var c=gt;va=l,(gt=t)&&!c?Sa(e,r,(r.subtreeFlags&8772)!==0):Ea(e,r),va=o,gt=c}break;case 30:break;default:Ea(e,r)}}function Bp(e){var t=e.alternate;t!==null&&(e.alternate=null,Bp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&R(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var et=null,Pt=!1;function _a(e,t,r){for(r=r.child;r!==null;)Up(e,t,r),r=r.sibling}function Up(e,t,r){if(St&&typeof St.onCommitFiberUnmount=="function")try{St.onCommitFiberUnmount(qn,r)}catch{}switch(r.tag){case 26:gt||Pn(r,t),_a(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:gt||Pn(r,t);var l=et,o=Pt;tr(r.type)&&(et=r.stateNode,Pt=!1),_a(e,t,r),Rl(r.stateNode),et=l,Pt=o;break;case 5:gt||Pn(r,t);case 6:if(l=et,o=Pt,et=null,_a(e,t,r),et=l,Pt=o,et!==null)if(Pt)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(r.stateNode)}catch(c){qe(r,t,c)}else try{et.removeChild(r.stateNode)}catch(c){qe(r,t,c)}break;case 18:et!==null&&(Pt?(e=et,Cg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),Ci(e)):Cg(et,r.stateNode));break;case 4:l=et,o=Pt,et=r.stateNode.containerInfo,Pt=!0,_a(e,t,r),et=l,Pt=o;break;case 0:case 11:case 14:case 15:Za(2,r,t),gt||Za(4,r,t),_a(e,t,r);break;case 1:gt||(Pn(r,t),l=r.stateNode,typeof l.componentWillUnmount=="function"&&Rp(r,t,l)),_a(e,t,r);break;case 21:_a(e,t,r);break;case 22:gt=(l=gt)||r.memoizedState!==null,_a(e,t,r),gt=l;break;default:_a(e,t,r)}}function jp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ci(e)}catch(r){qe(t,t.return,r)}}}function Hp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ci(e)}catch(r){qe(t,t.return,r)}}function o2(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Dp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Dp),t;default:throw Error(s(435,e.tag))}}function Js(e,t){var r=o2(e);t.forEach(function(l){if(!r.has(l)){r.add(l);var o=y2.bind(null,e,l);l.then(o,o)}})}function Xt(e,t){var r=t.deletions;if(r!==null)for(var l=0;l<r.length;l++){var o=r[l],c=e,p=t,v=p;e:for(;v!==null;){switch(v.tag){case 27:if(tr(v.type)){et=v.stateNode,Pt=!1;break e}break;case 5:et=v.stateNode,Pt=!1;break e;case 3:case 4:et=v.stateNode.containerInfo,Pt=!0;break e}v=v.return}if(et===null)throw Error(s(160));Up(c,p,o),et=null,Pt=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ip(t,e),t=t.sibling}var Ln=null;function Ip(e,t){var r=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Xt(t,e),Zt(e),l&4&&(Za(3,e,e.return),bl(3,e),Za(5,e,e.return));break;case 1:Xt(t,e),Zt(e),l&512&&(gt||r===null||Pn(r,r.return)),l&64&&va&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?l:r.concat(l))));break;case 26:var o=Ln;if(Xt(t,e),Zt(e),l&512&&(gt||r===null||Pn(r,r.return)),l&4){var c=r!==null?r.memoizedState:null;if(l=e.memoizedState,r===null)if(l===null)if(e.stateNode===null){e:{l=e.type,r=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":c=o.getElementsByTagName("title")[0],(!c||c[ie]||c[dt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(l),o.head.insertBefore(c,o.querySelector("head > title"))),Dt(c,l,r),c[dt]=e,Ee(c),l=c;break e;case"link":var p=Ig("link","href",o).get(l+(r.href||""));if(p){for(var v=0;v<p.length;v++)if(c=p[v],c.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&c.getAttribute("rel")===(r.rel==null?null:r.rel)&&c.getAttribute("title")===(r.title==null?null:r.title)&&c.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){p.splice(v,1);break t}}c=o.createElement(l),Dt(c,l,r),o.head.appendChild(c);break;case"meta":if(p=Ig("meta","content",o).get(l+(r.content||""))){for(v=0;v<p.length;v++)if(c=p[v],c.getAttribute("content")===(r.content==null?null:""+r.content)&&c.getAttribute("name")===(r.name==null?null:r.name)&&c.getAttribute("property")===(r.property==null?null:r.property)&&c.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&c.getAttribute("charset")===(r.charSet==null?null:r.charSet)){p.splice(v,1);break t}}c=o.createElement(l),Dt(c,l,r),o.head.appendChild(c);break;default:throw Error(s(468,l))}c[dt]=e,Ee(c),l=c}e.stateNode=l}else zg(o,e.type,e.stateNode);else e.stateNode=Hg(o,l,e.memoizedProps);else c!==l?(c===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):c.count--,l===null?zg(o,e.type,e.stateNode):Hg(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&nf(e,e.memoizedProps,r.memoizedProps)}break;case 27:Xt(t,e),Zt(e),l&512&&(gt||r===null||Pn(r,r.return)),r!==null&&l&4&&nf(e,e.memoizedProps,r.memoizedProps);break;case 5:if(Xt(t,e),Zt(e),l&512&&(gt||r===null||Pn(r,r.return)),e.flags&32){o=e.stateNode;try{Kr(o,"")}catch(ae){qe(e,e.return,ae)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,nf(e,o,r!==null?r.memoizedProps:o)),l&1024&&(lf=!0);break;case 6:if(Xt(t,e),Zt(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,r=e.stateNode;try{r.nodeValue=l}catch(ae){qe(e,e.return,ae)}}break;case 3:if(go=null,o=Ln,Ln=mo(t.containerInfo),Xt(t,e),Ln=o,Zt(e),l&4&&r!==null&&r.memoizedState.isDehydrated)try{Ci(t.containerInfo)}catch(ae){qe(e,e.return,ae)}lf&&(lf=!1,zp(e));break;case 4:l=Ln,Ln=mo(e.stateNode.containerInfo),Xt(t,e),Zt(e),Ln=l;break;case 12:Xt(t,e),Zt(e);break;case 31:Xt(t,e),Zt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Js(e,l)));break;case 13:Xt(t,e),Zt(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(to=Ct()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Js(e,l)));break;case 22:o=e.memoizedState!==null;var T=r!==null&&r.memoizedState!==null,L=va,F=gt;if(va=L||o,gt=F||T,Xt(t,e),gt=F,va=L,Zt(e),l&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(r===null||T||va||gt||wr(e)),r=null,t=e;;){if(t.tag===5||t.tag===26){if(r===null){T=r=t;try{if(c=T.stateNode,o)p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{v=T.stateNode;var Y=T.memoizedProps.style,j=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;v.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(ae){qe(T,T.return,ae)}}}else if(t.tag===6){if(r===null){T=t;try{T.stateNode.nodeValue=o?"":T.memoizedProps}catch(ae){qe(T,T.return,ae)}}}else if(t.tag===18){if(r===null){T=t;try{var z=T.stateNode;o?Rg(z,!0):Rg(T.stateNode,!1)}catch(ae){qe(T,T.return,ae)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(r=l.retryQueue,r!==null&&(l.retryQueue=null,Js(e,r))));break;case 19:Xt(t,e),Zt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Js(e,l)));break;case 30:break;case 21:break;default:Xt(t,e),Zt(e)}}function Zt(e){var t=e.flags;if(t&2){try{for(var r,l=e.return;l!==null;){if(Np(l)){r=l;break}l=l.return}if(r==null)throw Error(s(160));switch(r.tag){case 27:var o=r.stateNode,c=af(e);Ws(e,c,o);break;case 5:var p=r.stateNode;r.flags&32&&(Kr(p,""),r.flags&=-33);var v=af(e);Ws(e,v,p);break;case 3:case 4:var T=r.stateNode.containerInfo,L=af(e);rf(e,L,T);break;default:throw Error(s(161))}}catch(F){qe(e,e.return,F)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function zp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;zp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ea(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Lp(e,t.alternate,t),t=t.sibling}function wr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Za(4,t,t.return),wr(t);break;case 1:Pn(t,t.return);var r=t.stateNode;typeof r.componentWillUnmount=="function"&&Rp(t,t.return,r),wr(t);break;case 27:Rl(t.stateNode);case 26:case 5:Pn(t,t.return),wr(t);break;case 22:t.memoizedState===null&&wr(t);break;case 30:wr(t);break;default:wr(t)}e=e.sibling}}function Sa(e,t,r){for(r=r&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,o=e,c=t,p=c.flags;switch(c.tag){case 0:case 11:case 15:Sa(o,c,r),bl(4,c);break;case 1:if(Sa(o,c,r),l=c,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(L){qe(l,l.return,L)}if(l=c,o=l.updateQueue,o!==null){var v=l.stateNode;try{var T=o.shared.hiddenCallbacks;if(T!==null)for(o.shared.hiddenCallbacks=null,o=0;o<T.length;o++)g0(T[o],v)}catch(L){qe(l,l.return,L)}}r&&p&64&&Cp(c),vl(c,c.return);break;case 27:Mp(c);case 26:case 5:Sa(o,c,r),r&&l===null&&p&4&&wp(c),vl(c,c.return);break;case 12:Sa(o,c,r);break;case 31:Sa(o,c,r),r&&p&4&&jp(o,c);break;case 13:Sa(o,c,r),r&&p&4&&Hp(o,c);break;case 22:c.memoizedState===null&&Sa(o,c,r),vl(c,c.return);break;case 30:break;default:Sa(o,c,r)}t=t.sibling}}function sf(e,t){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&il(r))}function of(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&il(e))}function Bn(e,t,r,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Gp(e,t,r,l),t=t.sibling}function Gp(e,t,r,l){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Bn(e,t,r,l),o&2048&&bl(9,t);break;case 1:Bn(e,t,r,l);break;case 3:Bn(e,t,r,l),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&il(e)));break;case 12:if(o&2048){Bn(e,t,r,l),e=t.stateNode;try{var c=t.memoizedProps,p=c.id,v=c.onPostCommit;typeof v=="function"&&v(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){qe(t,t.return,T)}}else Bn(e,t,r,l);break;case 31:Bn(e,t,r,l);break;case 13:Bn(e,t,r,l);break;case 23:break;case 22:c=t.stateNode,p=t.alternate,t.memoizedState!==null?c._visibility&2?Bn(e,t,r,l):_l(e,t):c._visibility&2?Bn(e,t,r,l):(c._visibility|=2,gi(e,t,r,l,(t.subtreeFlags&10256)!==0||!1)),o&2048&&sf(p,t);break;case 24:Bn(e,t,r,l),o&2048&&of(t.alternate,t);break;default:Bn(e,t,r,l)}}function gi(e,t,r,l,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,p=t,v=r,T=l,L=p.flags;switch(p.tag){case 0:case 11:case 15:gi(c,p,v,T,o),bl(8,p);break;case 23:break;case 22:var F=p.stateNode;p.memoizedState!==null?F._visibility&2?gi(c,p,v,T,o):_l(c,p):(F._visibility|=2,gi(c,p,v,T,o)),o&&L&2048&&sf(p.alternate,p);break;case 24:gi(c,p,v,T,o),o&&L&2048&&of(p.alternate,p);break;default:gi(c,p,v,T,o)}t=t.sibling}}function _l(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var r=e,l=t,o=l.flags;switch(l.tag){case 22:_l(r,l),o&2048&&sf(l.alternate,l);break;case 24:_l(r,l),o&2048&&of(l.alternate,l);break;default:_l(r,l)}t=t.sibling}}var El=8192;function yi(e,t,r){if(e.subtreeFlags&El)for(e=e.child;e!==null;)kp(e,t,r),e=e.sibling}function kp(e,t,r){switch(e.tag){case 26:yi(e,t,r),e.flags&El&&e.memoizedState!==null&&Z2(r,Ln,e.memoizedState,e.memoizedProps);break;case 5:yi(e,t,r);break;case 3:case 4:var l=Ln;Ln=mo(e.stateNode.containerInfo),yi(e,t,r),Ln=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=El,El=16777216,yi(e,t,r),El=l):yi(e,t,r));break;default:yi(e,t,r)}}function qp(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Sl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var l=t[r];At=l,Vp(l,e)}qp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Fp(e),e=e.sibling}function Fp(e){switch(e.tag){case 0:case 11:case 15:Sl(e),e.flags&2048&&Za(9,e,e.return);break;case 3:Sl(e);break;case 12:Sl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,eo(e)):Sl(e);break;default:Sl(e)}}function eo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var l=t[r];At=l,Vp(l,e)}qp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Za(8,t,t.return),eo(t);break;case 22:r=t.stateNode,r._visibility&2&&(r._visibility&=-3,eo(t));break;default:eo(t)}e=e.sibling}}function Vp(e,t){for(;At!==null;){var r=At;switch(r.tag){case 0:case 11:case 15:Za(8,r,t);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var l=r.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:il(r.memoizedState.cache)}if(l=r.child,l!==null)l.return=r,At=l;else e:for(r=e;At!==null;){l=At;var o=l.sibling,c=l.return;if(Bp(l),l===r){At=null;break e}if(o!==null){o.return=c,At=o;break e}At=c}}}var u2={getCacheForType:function(e){var t=Nt(ht),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r},cacheSignal:function(){return Nt(ht).controller.signal}},c2=typeof WeakMap=="function"?WeakMap:Map,He=0,Ze=null,Oe=null,Re=0,ke=0,an=null,Qa=!1,bi=!1,uf=!1,Ta=0,it=0,Ka=0,Nr=0,cf=0,rn=0,vi=0,Tl=null,Qt=null,ff=!1,to=0,Yp=0,no=1/0,ao=null,$a=null,Et=0,Wa=null,_i=null,Aa=0,df=0,hf=null,Pp=null,Al=0,mf=null;function ln(){return(He&2)!==0&&Re!==0?Re&-Re:G.T!==null?_f():Vi()}function Xp(){if(rn===0)if((Re&536870912)===0||Me){var e=ia;ia<<=1,(ia&3932160)===0&&(ia=262144),rn=e}else rn=536870912;return e=tn.current,e!==null&&(e.flags|=32),rn}function Kt(e,t,r){(e===Ze&&(ke===2||ke===9)||e.cancelPendingCommit!==null)&&(Ei(e,0),Ja(e,Re,rn,!1)),Ha(e,r),((He&2)===0||e!==Ze)&&(e===Ze&&((He&2)===0&&(Nr|=r),it===4&&Ja(e,Re,rn,!1)),Xn(e))}function Zp(e,t,r){if((He&6)!==0)throw Error(s(327));var l=!r&&(t&127)===0&&(t&e.expiredLanes)===0||mr(e,t),o=l?h2(e,t):gf(e,t,!0),c=l;do{if(o===0){bi&&!l&&Ja(e,t,0,!1);break}else{if(r=e.current.alternate,c&&!f2(r)){o=gf(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var v=e;o=Tl;var T=v.current.memoizedState.isDehydrated;if(T&&(Ei(v,p).flags|=256),p=gf(v,p,!1),p!==2){if(uf&&!T){v.errorRecoveryDisabledLanes|=c,Nr|=c,o=4;break e}c=Qt,Qt=o,c!==null&&(Qt===null?Qt=c:Qt.push.apply(Qt,c))}o=p}if(c=!1,o!==2)continue}}if(o===1){Ei(e,0),Ja(e,t,0,!0);break}e:{switch(l=e,c=o,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Ja(l,t,rn,!Qa);break e;case 2:Qt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=to+300-Ct(),10<o)){if(Ja(l,t,rn,!Qa),Xr(l,0,!0)!==0)break e;Aa=t,l.timeoutHandle=Og(Qp.bind(null,l,r,Qt,ao,ff,t,rn,Nr,vi,Qa,c,"Throttled",-0,0),o);break e}Qp(l,r,Qt,ao,ff,t,rn,Nr,vi,Qa,c,null,-0,0)}}break}while(!0);Xn(e)}function Qp(e,t,r,l,o,c,p,v,T,L,F,Y,j,z){if(e.timeoutHandle=-1,Y=t.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ua},kp(t,c,Y);var ae=(c&62914560)===c?to-Ct():(c&4194048)===c?Yp-Ct():0;if(ae=Q2(Y,ae),ae!==null){Aa=c,e.cancelPendingCommit=ae(ag.bind(null,e,t,c,r,l,o,p,v,T,F,Y,null,j,z)),Ja(e,c,p,!L);return}}ag(e,t,c,r,l,o,p,v,T)}function f2(e){for(var t=e;;){var r=t.tag;if((r===0||r===11||r===15)&&t.flags&16384&&(r=t.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var l=0;l<r.length;l++){var o=r[l],c=o.getSnapshot;o=o.value;try{if(!Jt(c(),o))return!1}catch{return!1}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ja(e,t,r,l){t&=~cf,t&=~Nr,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var o=t;0<o;){var c=31-ct(o),p=1<<c;l[c]=-1,o&=~p}r!==0&&qi(e,r,t)}function ro(){return(He&6)===0?(Ol(0),!1):!0}function pf(){if(Oe!==null){if(ke===0)var e=Oe.return;else e=Oe,ha=Er=null,Nc(e),fi=null,sl=0,e=Oe;for(;e!==null;)xp(e.alternate,e),e=e.return;Oe=null}}function Ei(e,t){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,M2(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),Aa=0,pf(),Ze=e,Oe=r=fa(e.current,null),Re=t,ke=0,an=null,Qa=!1,bi=mr(e,t),uf=!1,vi=rn=cf=Nr=Ka=it=0,Qt=Tl=null,ff=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var o=31-ct(l),c=1<<o;t|=e[o],l&=~c}return Ta=t,Os(),r}function Kp(e,t){be=null,G.H=pl,t===ci||t===Ls?(t=d0(),ke=3):t===bc?(t=d0(),ke=4):ke=t===Pc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,an=t,Oe===null&&(it=1,Xs(e,vn(t,e.current)))}function $p(){var e=tn.current;return e===null?!0:(Re&4194048)===Re?Tn===null:(Re&62914560)===Re||(Re&536870912)!==0?e===Tn:!1}function Wp(){var e=G.H;return G.H=pl,e===null?pl:e}function Jp(){var e=G.A;return G.A=u2,e}function io(){it=4,Qa||(Re&4194048)!==Re&&tn.current!==null||(bi=!0),(Ka&134217727)===0&&(Nr&134217727)===0||Ze===null||Ja(Ze,Re,rn,!1)}function gf(e,t,r){var l=He;He|=2;var o=Wp(),c=Jp();(Ze!==e||Re!==t)&&(ao=null,Ei(e,t)),t=!1;var p=it;e:do try{if(ke!==0&&Oe!==null){var v=Oe,T=an;switch(ke){case 8:pf(),p=6;break e;case 3:case 2:case 9:case 6:tn.current===null&&(t=!0);var L=ke;if(ke=0,an=null,Si(e,v,T,L),r&&bi){p=0;break e}break;default:L=ke,ke=0,an=null,Si(e,v,T,L)}}d2(),p=it;break}catch(F){Kp(e,F)}while(!0);return t&&e.shellSuspendCounter++,ha=Er=null,He=l,G.H=o,G.A=c,Oe===null&&(Ze=null,Re=0,Os()),p}function d2(){for(;Oe!==null;)eg(Oe)}function h2(e,t){var r=He;He|=2;var l=Wp(),o=Jp();Ze!==e||Re!==t?(ao=null,no=Ct()+500,Ei(e,t)):bi=mr(e,t);e:do try{if(ke!==0&&Oe!==null){t=Oe;var c=an;t:switch(ke){case 1:ke=0,an=null,Si(e,t,c,1);break;case 2:case 9:if(c0(c)){ke=0,an=null,tg(t);break}t=function(){ke!==2&&ke!==9||Ze!==e||(ke=7),Xn(e)},c.then(t,t);break e;case 3:ke=7;break e;case 4:ke=5;break e;case 7:c0(c)?(ke=0,an=null,tg(t)):(ke=0,an=null,Si(e,t,c,7));break;case 5:var p=null;switch(Oe.tag){case 26:p=Oe.memoizedState;case 5:case 27:var v=Oe;if(p?Gg(p):v.stateNode.complete){ke=0,an=null;var T=v.sibling;if(T!==null)Oe=T;else{var L=v.return;L!==null?(Oe=L,lo(L)):Oe=null}break t}}ke=0,an=null,Si(e,t,c,5);break;case 6:ke=0,an=null,Si(e,t,c,6);break;case 8:pf(),it=6;break e;default:throw Error(s(462))}}m2();break}catch(F){Kp(e,F)}while(!0);return ha=Er=null,G.H=l,G.A=o,He=r,Oe!==null?0:(Ze=null,Re=0,Os(),it)}function m2(){for(;Oe!==null&&!ss();)eg(Oe)}function eg(e){var t=Ap(e.alternate,e,Ta);e.memoizedProps=e.pendingProps,t===null?lo(e):Oe=t}function tg(e){var t=e,r=t.alternate;switch(t.tag){case 15:case 0:t=bp(r,t,t.pendingProps,t.type,void 0,Re);break;case 11:t=bp(r,t,t.pendingProps,t.type.render,t.ref,Re);break;case 5:Nc(t);default:xp(r,t),t=Oe=Jm(t,Ta),t=Ap(r,t,Ta)}e.memoizedProps=e.pendingProps,t===null?lo(e):Oe=t}function Si(e,t,r,l){ha=Er=null,Nc(t),fi=null,sl=0;var o=t.return;try{if(n2(e,o,t,r,Re)){it=1,Xs(e,vn(r,e.current)),Oe=null;return}}catch(c){if(o!==null)throw Oe=o,c;it=1,Xs(e,vn(r,e.current)),Oe=null;return}t.flags&32768?(Me||l===1?e=!0:bi||(Re&536870912)!==0?e=!1:(Qa=e=!0,(l===2||l===9||l===3||l===6)&&(l=tn.current,l!==null&&l.tag===13&&(l.flags|=16384))),ng(t,e)):lo(t)}function lo(e){var t=e;do{if((t.flags&32768)!==0){ng(t,Qa);return}e=t.return;var r=i2(t.alternate,t,Ta);if(r!==null){Oe=r;return}if(t=t.sibling,t!==null){Oe=t;return}Oe=t=e}while(t!==null);it===0&&(it=5)}function ng(e,t){do{var r=l2(e.alternate,e);if(r!==null){r.flags&=32767,Oe=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&(e=e.sibling,e!==null)){Oe=e;return}Oe=e=r}while(e!==null);it=6,Oe=null}function ag(e,t,r,l,o,c,p,v,T){e.cancelPendingCommit=null;do so();while(Et!==0);if((He&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=ac,ki(e,r,c,p,v,T),e===Ze&&(Oe=Ze=null,Re=0),_i=t,Wa=e,Aa=r,df=c,hf=o,Pp=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,b2(hr,function(){return og(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=G.T,G.T=null,o=$.p,$.p=2,p=He,He|=4;try{s2(e,t,r)}finally{He=p,$.p=o,G.T=l}}Et=1,rg(),ig(),lg()}}function rg(){if(Et===1){Et=0;var e=Wa,t=_i,r=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||r){r=G.T,G.T=null;var l=$.p;$.p=2;var o=He;He|=4;try{Ip(t,e);var c=Rf,p=Vm(e.containerInfo),v=c.focusedElem,T=c.selectionRange;if(p!==v&&v&&v.ownerDocument&&Fm(v.ownerDocument.documentElement,v)){if(T!==null&&Wu(v)){var L=T.start,F=T.end;if(F===void 0&&(F=L),"selectionStart"in v)v.selectionStart=L,v.selectionEnd=Math.min(F,v.value.length);else{var Y=v.ownerDocument||document,j=Y&&Y.defaultView||window;if(j.getSelection){var z=j.getSelection(),ae=v.textContent.length,ue=Math.min(T.start,ae),Pe=T.end===void 0?ue:Math.min(T.end,ae);!z.extend&&ue>Pe&&(p=Pe,Pe=ue,ue=p);var M=qm(v,ue),w=qm(v,Pe);if(M&&w&&(z.rangeCount!==1||z.anchorNode!==M.node||z.anchorOffset!==M.offset||z.focusNode!==w.node||z.focusOffset!==w.offset)){var D=Y.createRange();D.setStart(M.node,M.offset),z.removeAllRanges(),ue>Pe?(z.addRange(D),z.extend(w.node,w.offset)):(D.setEnd(w.node,w.offset),z.addRange(D))}}}}for(Y=[],z=v;z=z.parentNode;)z.nodeType===1&&Y.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<Y.length;v++){var V=Y[v];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}_o=!!Cf,Rf=Cf=null}finally{He=o,$.p=l,G.T=r}}e.current=t,Et=2}}function ig(){if(Et===2){Et=0;var e=Wa,t=_i,r=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||r){r=G.T,G.T=null;var l=$.p;$.p=2;var o=He;He|=4;try{Lp(e,t.alternate,t)}finally{He=o,$.p=l,G.T=r}}Et=3}}function lg(){if(Et===4||Et===3){Et=0,Bu();var e=Wa,t=_i,r=Aa,l=Pp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Et=5:(Et=0,_i=Wa=null,sg(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&($a=null),Mn(r),t=t.stateNode,St&&typeof St.onCommitFiberRoot=="function")try{St.onCommitFiberRoot(qn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=G.T,o=$.p,$.p=2,G.T=null;try{for(var c=e.onRecoverableError,p=0;p<l.length;p++){var v=l[p];c(v.value,{componentStack:v.stack})}}finally{G.T=t,$.p=o}}(Aa&3)!==0&&so(),Xn(e),o=e.pendingLanes,(r&261930)!==0&&(o&42)!==0?e===mf?Al++:(Al=0,mf=e):Al=0,Ol(0)}}function sg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,il(t)))}function so(){return rg(),ig(),lg(),og()}function og(){if(Et!==5)return!1;var e=Wa,t=df;df=0;var r=Mn(Aa),l=G.T,o=$.p;try{$.p=32>r?32:r,G.T=null,r=hf,hf=null;var c=Wa,p=Aa;if(Et=0,_i=Wa=null,Aa=0,(He&6)!==0)throw Error(s(331));var v=He;if(He|=4,Fp(c.current),Gp(c,c.current,p,r),He=v,Ol(0,!1),St&&typeof St.onPostCommitFiberRoot=="function")try{St.onPostCommitFiberRoot(qn,c)}catch{}return!0}finally{$.p=o,G.T=l,sg(e,t)}}function ug(e,t,r){t=vn(r,t),t=Yc(e.stateNode,t,2),e=Ya(e,t,2),e!==null&&(Ha(e,2),Xn(e))}function qe(e,t,r){if(e.tag===3)ug(e,e,r);else for(;t!==null;){if(t.tag===3){ug(t,e,r);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&($a===null||!$a.has(l))){e=vn(r,e),r=cp(2),l=Ya(t,r,2),l!==null&&(fp(r,l,t,e),Ha(l,2),Xn(l));break}}t=t.return}}function yf(e,t,r){var l=e.pingCache;if(l===null){l=e.pingCache=new c2;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(r)||(uf=!0,o.add(r),e=p2.bind(null,e,t,r),t.then(e,e))}function p2(e,t,r){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,Ze===e&&(Re&r)===r&&(it===4||it===3&&(Re&62914560)===Re&&300>Ct()-to?(He&2)===0&&Ei(e,0):cf|=r,vi===Re&&(vi=0)),Xn(e)}function cg(e,t){t===0&&(t=la()),e=br(e,t),e!==null&&(Ha(e,t),Xn(e))}function g2(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),cg(e,r)}function y2(e,t){var r=0;switch(e.tag){case 31:case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),cg(e,r)}function b2(e,t){return ja(e,t)}var oo=null,Ti=null,bf=!1,uo=!1,vf=!1,er=0;function Xn(e){e!==Ti&&e.next===null&&(Ti===null?oo=Ti=e:Ti=Ti.next=e),uo=!0,bf||(bf=!0,_2())}function Ol(e,t){if(!vf&&uo){vf=!0;do for(var r=!1,l=oo;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var c=0;else{var p=l.suspendedLanes,v=l.pingedLanes;c=(1<<31-ct(42|e)+1)-1,c&=o&~(p&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(r=!0,mg(l,c))}else c=Re,c=Xr(l,l===Ze?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||mr(l,c)||(r=!0,mg(l,c));l=l.next}while(r);vf=!1}}function v2(){fg()}function fg(){uo=bf=!1;var e=0;er!==0&&N2()&&(e=er);for(var t=Ct(),r=null,l=oo;l!==null;){var o=l.next,c=dg(l,t);c===0?(l.next=null,r===null?oo=o:r.next=o,o===null&&(Ti=r)):(r=l,(e!==0||(c&3)!==0)&&(uo=!0)),l=o}Et!==0&&Et!==5||Ol(e),er!==0&&(er=0)}function dg(e,t){for(var r=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var p=31-ct(c),v=1<<p,T=o[p];T===-1?((v&r)===0||(v&l)!==0)&&(o[p]=ft(v,t)):T<=t&&(e.expiredLanes|=v),c&=~v}if(t=Ze,r=Re,r=Xr(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,r===0||e===t&&(ke===2||ke===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Yr(l),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||mr(e,r)){if(t=r&-r,t===e.callbackPriority)return t;switch(l!==null&&Yr(l),Mn(r)){case 2:case 8:r=aa;break;case 32:r=hr;break;case 268435456:r=ji;break;default:r=hr}return l=hg.bind(null,e),r=ja(r,l),e.callbackPriority=t,e.callbackNode=r,t}return l!==null&&l!==null&&Yr(l),e.callbackPriority=2,e.callbackNode=null,2}function hg(e,t){if(Et!==0&&Et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(so()&&e.callbackNode!==r)return null;var l=Re;return l=Xr(e,e===Ze?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Zp(e,l,t),dg(e,Ct()),e.callbackNode!=null&&e.callbackNode===r?hg.bind(null,e):null)}function mg(e,t){if(so())return null;Zp(e,t,!0)}function _2(){D2(function(){(He&6)!==0?ja(na,v2):fg()})}function _f(){if(er===0){var e=oi;e===0&&(e=ra,ra<<=1,(ra&261888)===0&&(ra=256)),er=e}return er}function pg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ys(""+e)}function gg(e,t){var r=t.ownerDocument.createElement("input");return r.name=t.name,r.value=t.value,e.id&&r.setAttribute("form",e.id),t.parentNode.insertBefore(r,t),e=new FormData(e),r.parentNode.removeChild(r),e}function E2(e,t,r,l,o){if(t==="submit"&&r&&r.stateNode===o){var c=pg((o[Je]||null).action),p=l.submitter;p&&(t=(t=p[Je]||null)?pg(t.formAction):p.getAttribute("formAction"),t!==null&&(c=t,p=null));var v=new Es("action","action",null,l,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(er!==0){var T=p?gg(o,p):new FormData(o);zc(r,{pending:!0,data:T,method:o.method,action:c},null,T)}}else typeof c=="function"&&(v.preventDefault(),T=p?gg(o,p):new FormData(o),zc(r,{pending:!0,data:T,method:o.method,action:c},c,T))},currentTarget:o}]})}}for(var Ef=0;Ef<nc.length;Ef++){var Sf=nc[Ef],S2=Sf.toLowerCase(),T2=Sf[0].toUpperCase()+Sf.slice(1);Dn(S2,"on"+T2)}Dn(Xm,"onAnimationEnd"),Dn(Zm,"onAnimationIteration"),Dn(Qm,"onAnimationStart"),Dn("dblclick","onDoubleClick"),Dn("focusin","onFocus"),Dn("focusout","onBlur"),Dn(zE,"onTransitionRun"),Dn(GE,"onTransitionStart"),Dn(kE,"onTransitionCancel"),Dn(Km,"onTransitionEnd"),Fn("onMouseEnter",["mouseout","mouseover"]),Fn("onMouseLeave",["mouseout","mouseover"]),Fn("onPointerEnter",["pointerout","pointerover"]),Fn("onPointerLeave",["pointerout","pointerover"]),Vt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Vt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Vt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Vt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Vt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Vt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xl="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(" "),A2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(xl));function yg(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var l=e[r],o=l.event;l=l.listeners;e:{var c=void 0;if(t)for(var p=l.length-1;0<=p;p--){var v=l[p],T=v.instance,L=v.currentTarget;if(v=v.listener,T!==c&&o.isPropagationStopped())break e;c=v,o.currentTarget=L;try{c(o)}catch(F){As(F)}o.currentTarget=null,c=T}else for(p=0;p<l.length;p++){if(v=l[p],T=v.instance,L=v.currentTarget,v=v.listener,T!==c&&o.isPropagationStopped())break e;c=v,o.currentTarget=L;try{c(o)}catch(F){As(F)}o.currentTarget=null,c=T}}}}function xe(e,t){var r=t[Zr];r===void 0&&(r=t[Zr]=new Set);var l=e+"__bubble";r.has(l)||(bg(t,e,2,!1),r.add(l))}function Tf(e,t,r){var l=0;t&&(l|=4),bg(r,e,l,t)}var co="_reactListening"+Math.random().toString(36).slice(2);function Af(e){if(!e[co]){e[co]=!0,Rt.forEach(function(r){r!=="selectionchange"&&(A2.has(r)||Tf(r,!1,e),Tf(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[co]||(t[co]=!0,Tf("selectionchange",!1,t))}}function bg(e,t,r,l){switch(Xg(t)){case 2:var o=W2;break;case 8:o=J2;break;default:o=zf}r=o.bind(null,t,r,e),o=void 0,!Fu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):o!==void 0?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Of(e,t,r,l,o){var c=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var p=l.tag;if(p===3||p===4){var v=l.stateNode.containerInfo;if(v===o)break;if(p===4)for(p=l.return;p!==null;){var T=p.tag;if((T===3||T===4)&&p.stateNode.containerInfo===o)return;p=p.return}for(;v!==null;){if(p=Q(v),p===null)return;if(T=p.tag,T===5||T===6||T===26||T===27){l=c=p;continue e}v=v.parentNode}}l=l.return}Tm(function(){var L=c,F=ku(r),Y=[];e:{var j=$m.get(e);if(j!==void 0){var z=Es,ae=e;switch(e){case"keypress":if(vs(r)===0)break e;case"keydown":case"keyup":z=yE;break;case"focusin":ae="focus",z=Xu;break;case"focusout":ae="blur",z=Xu;break;case"beforeblur":case"afterblur":z=Xu;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=xm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=iE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=_E;break;case Xm:case Zm:case Qm:z=oE;break;case Km:z=SE;break;case"scroll":case"scrollend":z=aE;break;case"wheel":z=AE;break;case"copy":case"cut":case"paste":z=cE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=Rm;break;case"toggle":case"beforetoggle":z=xE}var ue=(t&4)!==0,Pe=!ue&&(e==="scroll"||e==="scrollend"),M=ue?j!==null?j+"Capture":null:j;ue=[];for(var w=L,D;w!==null;){var V=w;if(D=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||D===null||M===null||(V=Zi(w,M),V!=null&&ue.push(Cl(w,V,D))),Pe)break;w=w.return}0<ue.length&&(j=new z(j,ae,null,r,F),Y.push({event:j,listeners:ue}))}}if((t&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",z=e==="mouseout"||e==="pointerout",j&&r!==Gu&&(ae=r.relatedTarget||r.fromElement)&&(Q(ae)||ae[sa]))break e;if((z||j)&&(j=F.window===F?F:(j=F.ownerDocument)?j.defaultView||j.parentWindow:window,z?(ae=r.relatedTarget||r.toElement,z=L,ae=ae?Q(ae):null,ae!==null&&(Pe=f(ae),ue=ae.tag,ae!==Pe||ue!==5&&ue!==27&&ue!==6)&&(ae=null)):(z=null,ae=L),z!==ae)){if(ue=xm,V="onMouseLeave",M="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(ue=Rm,V="onPointerLeave",M="onPointerEnter",w="pointer"),Pe=z==null?j:Ie(z),D=ae==null?j:Ie(ae),j=new ue(V,w+"leave",z,r,F),j.target=Pe,j.relatedTarget=D,V=null,Q(F)===L&&(ue=new ue(M,w+"enter",ae,r,F),ue.target=D,ue.relatedTarget=Pe,V=ue),Pe=V,z&&ae)t:{for(ue=O2,M=z,w=ae,D=0,V=M;V;V=ue(V))D++;V=0;for(var oe=w;oe;oe=ue(oe))V++;for(;0<D-V;)M=ue(M),D--;for(;0<V-D;)w=ue(w),V--;for(;D--;){if(M===w||w!==null&&M===w.alternate){ue=M;break t}M=ue(M),w=ue(w)}ue=null}else ue=null;z!==null&&vg(Y,j,z,ue,!1),ae!==null&&Pe!==null&&vg(Y,Pe,ae,ue,!0)}}e:{if(j=L?Ie(L):window,z=j.nodeName&&j.nodeName.toLowerCase(),z==="select"||z==="input"&&j.type==="file")var Ue=jm;else if(Bm(j))if(Hm)Ue=jE;else{Ue=BE;var le=LE}else z=j.nodeName,!z||z.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?L&&zu(L.elementType)&&(Ue=jm):Ue=UE;if(Ue&&(Ue=Ue(e,L))){Um(Y,Ue,r,F);break e}le&&le(e,j,L),e==="focusout"&&L&&j.type==="number"&&L.memoizedProps.value!=null&&Iu(j,"number",j.value)}switch(le=L?Ie(L):window,e){case"focusin":(Bm(le)||le.contentEditable==="true")&&(ei=le,Ju=L,nl=null);break;case"focusout":nl=Ju=ei=null;break;case"mousedown":ec=!0;break;case"contextmenu":case"mouseup":case"dragend":ec=!1,Ym(Y,r,F);break;case"selectionchange":if(IE)break;case"keydown":case"keyup":Ym(Y,r,F)}var ve;if(Qu)e:{switch(e){case"compositionstart":var we="onCompositionStart";break e;case"compositionend":we="onCompositionEnd";break e;case"compositionupdate":we="onCompositionUpdate";break e}we=void 0}else Jr?Dm(e,r)&&(we="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(we="onCompositionStart");we&&(wm&&r.locale!=="ko"&&(Jr||we!=="onCompositionStart"?we==="onCompositionEnd"&&Jr&&(ve=Am()):(Ia=F,Vu="value"in Ia?Ia.value:Ia.textContent,Jr=!0)),le=fo(L,we),0<le.length&&(we=new Cm(we,e,null,r,F),Y.push({event:we,listeners:le}),ve?we.data=ve:(ve=Lm(r),ve!==null&&(we.data=ve)))),(ve=RE?wE(e,r):NE(e,r))&&(we=fo(L,"onBeforeInput"),0<we.length&&(le=new Cm("onBeforeInput","beforeinput",null,r,F),Y.push({event:le,listeners:we}),le.data=ve)),E2(Y,e,L,r,F)}yg(Y,t)})}function Cl(e,t,r){return{instance:e,listener:t,currentTarget:r}}function fo(e,t){for(var r=t+"Capture",l=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=Zi(e,r),o!=null&&l.unshift(Cl(e,o,c)),o=Zi(e,t),o!=null&&l.push(Cl(e,o,c))),e.tag===3)return l;e=e.return}return[]}function O2(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function vg(e,t,r,l,o){for(var c=t._reactName,p=[];r!==null&&r!==l;){var v=r,T=v.alternate,L=v.stateNode;if(v=v.tag,T!==null&&T===l)break;v!==5&&v!==26&&v!==27||L===null||(T=L,o?(L=Zi(r,c),L!=null&&p.unshift(Cl(r,L,T))):o||(L=Zi(r,c),L!=null&&p.push(Cl(r,L,T)))),r=r.return}p.length!==0&&e.push({event:t,listeners:p})}var x2=/\r\n?/g,C2=/\u0000|\uFFFD/g;function _g(e){return(typeof e=="string"?e:""+e).replace(x2,`
49
- `).replace(C2,"")}function Eg(e,t){return t=_g(t),_g(e)===t}function Ye(e,t,r,l,o,c){switch(r){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Kr(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Kr(e,""+l);break;case"className":ps(e,"class",l);break;case"tabIndex":ps(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ps(e,r,l);break;case"style":Em(e,l,c);break;case"data":if(t!=="object"){ps(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||r!=="href")){e.removeAttribute(r);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(r);break}l=ys(""+l),e.setAttribute(r,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(r,"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"&&(r==="formAction"?(t!=="input"&&Ye(e,t,"name",o.name,o,null),Ye(e,t,"formEncType",o.formEncType,o,null),Ye(e,t,"formMethod",o.formMethod,o,null),Ye(e,t,"formTarget",o.formTarget,o,null)):(Ye(e,t,"encType",o.encType,o,null),Ye(e,t,"method",o.method,o,null),Ye(e,t,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(r);break}l=ys(""+l),e.setAttribute(r,l);break;case"onClick":l!=null&&(e.onclick=ua);break;case"onScroll":l!=null&&xe("scroll",e);break;case"onScrollEnd":l!=null&&xe("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(r=l.__html,r!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=r}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}r=ys(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(r,""+l):e.removeAttribute(r);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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":l===!0?e.setAttribute(r,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(r,l):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(r,l):e.removeAttribute(r);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(r):e.setAttribute(r,l);break;case"popover":xe("beforetoggle",e),xe("toggle",e),ms(e,"popover",l);break;case"xlinkActuate":oa(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":oa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":oa(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":oa(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":oa(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":oa(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":oa(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":oa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":oa(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":ms(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=tE.get(r)||r,ms(e,r,l))}}function xf(e,t,r,l,o,c){switch(r){case"style":Em(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(r=l.__html,r!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=r}}break;case"children":typeof l=="string"?Kr(e,l):(typeof l=="number"||typeof l=="bigint")&&Kr(e,""+l);break;case"onScroll":l!=null&&xe("scroll",e);break;case"onScrollEnd":l!=null&&xe("scrollend",e);break;case"onClick":l!=null&&(e.onclick=ua);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!pn.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(o=r.endsWith("Capture"),t=r.slice(2,o?r.length-7:void 0),c=e[Je]||null,c=c!=null?c[r]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof l=="function")){typeof c!="function"&&c!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,l,o);break e}r in e?e[r]=l:l===!0?e.setAttribute(r,""):ms(e,r,l)}}}function Dt(e,t,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xe("error",e),xe("load",e);var l=!1,o=!1,c;for(c in r)if(r.hasOwnProperty(c)){var p=r[c];if(p!=null)switch(c){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ye(e,t,c,p,r,null)}}o&&Ye(e,t,"srcSet",r.srcSet,r,null),l&&Ye(e,t,"src",r.src,r,null);return;case"input":xe("invalid",e);var v=c=p=o=null,T=null,L=null;for(l in r)if(r.hasOwnProperty(l)){var F=r[l];if(F!=null)switch(l){case"name":o=F;break;case"type":p=F;break;case"checked":T=F;break;case"defaultChecked":L=F;break;case"value":c=F;break;case"defaultValue":v=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(s(137,t));break;default:Ye(e,t,l,F,r,null)}}ym(e,c,v,T,L,p,o,!1);return;case"select":xe("invalid",e),l=p=c=null;for(o in r)if(r.hasOwnProperty(o)&&(v=r[o],v!=null))switch(o){case"value":c=v;break;case"defaultValue":p=v;break;case"multiple":l=v;default:Ye(e,t,o,v,r,null)}t=c,r=p,e.multiple=!!l,t!=null?Qr(e,!!l,t,!1):r!=null&&Qr(e,!!l,r,!0);return;case"textarea":xe("invalid",e),c=o=l=null;for(p in r)if(r.hasOwnProperty(p)&&(v=r[p],v!=null))switch(p){case"value":l=v;break;case"defaultValue":o=v;break;case"children":c=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(s(91));break;default:Ye(e,t,p,v,r,null)}vm(e,l,o,c);return;case"option":for(T in r)if(r.hasOwnProperty(T)&&(l=r[T],l!=null))switch(T){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ye(e,t,T,l,r,null)}return;case"dialog":xe("beforetoggle",e),xe("toggle",e),xe("cancel",e),xe("close",e);break;case"iframe":case"object":xe("load",e);break;case"video":case"audio":for(l=0;l<xl.length;l++)xe(xl[l],e);break;case"image":xe("error",e),xe("load",e);break;case"details":xe("toggle",e);break;case"embed":case"source":case"link":xe("error",e),xe("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(L in r)if(r.hasOwnProperty(L)&&(l=r[L],l!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ye(e,t,L,l,r,null)}return;default:if(zu(t)){for(F in r)r.hasOwnProperty(F)&&(l=r[F],l!==void 0&&xf(e,t,F,l,r,void 0));return}}for(v in r)r.hasOwnProperty(v)&&(l=r[v],l!=null&&Ye(e,t,v,l,r,null))}function R2(e,t,r,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,p=null,v=null,T=null,L=null,F=null;for(z in r){var Y=r[z];if(r.hasOwnProperty(z)&&Y!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":T=Y;default:l.hasOwnProperty(z)||Ye(e,t,z,null,l,Y)}}for(var j in l){var z=l[j];if(Y=r[j],l.hasOwnProperty(j)&&(z!=null||Y!=null))switch(j){case"type":c=z;break;case"name":o=z;break;case"checked":L=z;break;case"defaultChecked":F=z;break;case"value":p=z;break;case"defaultValue":v=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(s(137,t));break;default:z!==Y&&Ye(e,t,j,z,l,Y)}}Hu(e,p,v,T,L,F,c,o);return;case"select":z=p=v=j=null;for(c in r)if(T=r[c],r.hasOwnProperty(c)&&T!=null)switch(c){case"value":break;case"multiple":z=T;default:l.hasOwnProperty(c)||Ye(e,t,c,null,l,T)}for(o in l)if(c=l[o],T=r[o],l.hasOwnProperty(o)&&(c!=null||T!=null))switch(o){case"value":j=c;break;case"defaultValue":v=c;break;case"multiple":p=c;default:c!==T&&Ye(e,t,o,c,l,T)}t=v,r=p,l=z,j!=null?Qr(e,!!r,j,!1):!!l!=!!r&&(t!=null?Qr(e,!!r,t,!0):Qr(e,!!r,r?[]:"",!1));return;case"textarea":z=j=null;for(v in r)if(o=r[v],r.hasOwnProperty(v)&&o!=null&&!l.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ye(e,t,v,null,l,o)}for(p in l)if(o=l[p],c=r[p],l.hasOwnProperty(p)&&(o!=null||c!=null))switch(p){case"value":j=o;break;case"defaultValue":z=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==c&&Ye(e,t,p,o,l,c)}bm(e,j,z);return;case"option":for(var ae in r)if(j=r[ae],r.hasOwnProperty(ae)&&j!=null&&!l.hasOwnProperty(ae))switch(ae){case"selected":e.selected=!1;break;default:Ye(e,t,ae,null,l,j)}for(T in l)if(j=l[T],z=r[T],l.hasOwnProperty(T)&&j!==z&&(j!=null||z!=null))switch(T){case"selected":e.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:Ye(e,t,T,j,l,z)}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 ue in r)j=r[ue],r.hasOwnProperty(ue)&&j!=null&&!l.hasOwnProperty(ue)&&Ye(e,t,ue,null,l,j);for(L in l)if(j=l[L],z=r[L],l.hasOwnProperty(L)&&j!==z&&(j!=null||z!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(s(137,t));break;default:Ye(e,t,L,j,l,z)}return;default:if(zu(t)){for(var Pe in r)j=r[Pe],r.hasOwnProperty(Pe)&&j!==void 0&&!l.hasOwnProperty(Pe)&&xf(e,t,Pe,void 0,l,j);for(F in l)j=l[F],z=r[F],!l.hasOwnProperty(F)||j===z||j===void 0&&z===void 0||xf(e,t,F,j,l,z);return}}for(var M in r)j=r[M],r.hasOwnProperty(M)&&j!=null&&!l.hasOwnProperty(M)&&Ye(e,t,M,null,l,j);for(Y in l)j=l[Y],z=r[Y],!l.hasOwnProperty(Y)||j===z||j==null&&z==null||Ye(e,t,Y,j,l,z)}function Sg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function w2(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,r=performance.getEntriesByType("resource"),l=0;l<r.length;l++){var o=r[l],c=o.transferSize,p=o.initiatorType,v=o.duration;if(c&&v&&Sg(p)){for(p=0,v=o.responseEnd,l+=1;l<r.length;l++){var T=r[l],L=T.startTime;if(L>v)break;var F=T.transferSize,Y=T.initiatorType;F&&Sg(Y)&&(T=T.responseEnd,p+=F*(T<v?1:(v-L)/(T-L)))}if(--l,t+=8*(c+p)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Cf=null,Rf=null;function ho(e){return e.nodeType===9?e:e.ownerDocument}function Tg(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 Ag(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function wf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Nf=null;function N2(){var e=window.event;return e&&e.type==="popstate"?e===Nf?!1:(Nf=e,!0):(Nf=null,!1)}var Og=typeof setTimeout=="function"?setTimeout:void 0,M2=typeof clearTimeout=="function"?clearTimeout:void 0,xg=typeof Promise=="function"?Promise:void 0,D2=typeof queueMicrotask=="function"?queueMicrotask:typeof xg<"u"?function(e){return xg.resolve(null).then(e).catch(L2)}:Og;function L2(e){setTimeout(function(){throw e})}function tr(e){return e==="head"}function Cg(e,t){var r=t,l=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&o.nodeType===8)if(r=o.data,r==="/$"||r==="/&"){if(l===0){e.removeChild(o),Ci(t);return}l--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")l++;else if(r==="html")Rl(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,Rl(r);for(var c=r.firstChild;c;){var p=c.nextSibling,v=c.nodeName;c[ie]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&c.rel.toLowerCase()==="stylesheet"||r.removeChild(c),c=p}}else r==="body"&&Rl(e.ownerDocument.body);r=o}while(r);Ci(t)}function Rg(e,t){var r=e;e=0;do{var l=r.nextSibling;if(r.nodeType===1?t?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(t?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),l&&l.nodeType===8)if(r=l.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=l}while(r)}function Mf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":Mf(r),R(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function B2(e,t,r,l){for(;e.nodeType===1;){var o=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[ie])switch(t){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!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=An(e.nextSibling),e===null)break}return null}function U2(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=An(e.nextSibling),e===null))return null;return e}function wg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=An(e.nextSibling),e===null))return null;return e}function Df(e){return e.data==="$?"||e.data==="$~"}function Lf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function j2(e,t){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||r.readyState!=="loading")t();else{var l=function(){t(),r.removeEventListener("DOMContentLoaded",l)};r.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function An(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Bf=null;function Ng(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(t===0)return An(e.nextSibling);t--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||t++}e=e.nextSibling}return null}function Mg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(t===0)return e;t--}else r!=="/$"&&r!=="/&"||t++}e=e.previousSibling}return null}function Dg(e,t,r){switch(t=ho(r),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Rl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);R(e)}var On=new Map,Lg=new Set;function mo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Oa=$.d;$.d={f:H2,r:I2,D:z2,C:G2,L:k2,m:q2,X:V2,S:F2,M:Y2};function H2(){var e=Oa.f(),t=ro();return e||t}function I2(e){var t=ee(e);t!==null&&t.tag===5&&t.type==="form"?K0(t):Oa.r(e)}var Ai=typeof document>"u"?null:document;function Bg(e,t,r){var l=Ai;if(l&&typeof t=="string"&&t){var o=yn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof r=="string"&&(o+='[crossorigin="'+r+'"]'),Lg.has(o)||(Lg.add(o),e={rel:e,crossOrigin:r,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),Dt(t,"link",e),Ee(t),l.head.appendChild(t)))}}function z2(e){Oa.D(e),Bg("dns-prefetch",e,null)}function G2(e,t){Oa.C(e,t),Bg("preconnect",e,t)}function k2(e,t,r){Oa.L(e,t,r);var l=Ai;if(l&&e&&t){var o='link[rel="preload"][as="'+yn(t)+'"]';t==="image"&&r&&r.imageSrcSet?(o+='[imagesrcset="'+yn(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(o+='[imagesizes="'+yn(r.imageSizes)+'"]')):o+='[href="'+yn(e)+'"]';var c=o;switch(t){case"style":c=Oi(e);break;case"script":c=xi(e)}On.has(c)||(e=_({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),On.set(c,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(wl(c))||t==="script"&&l.querySelector(Nl(c))||(t=l.createElement("link"),Dt(t,"link",e),Ee(t),l.head.appendChild(t)))}}function q2(e,t){Oa.m(e,t);var r=Ai;if(r&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+yn(l)+'"][href="'+yn(e)+'"]',c=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=xi(e)}if(!On.has(c)&&(e=_({rel:"modulepreload",href:e},t),On.set(c,e),r.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Nl(c)))return}l=r.createElement("link"),Dt(l,"link",e),Ee(l),r.head.appendChild(l)}}}function F2(e,t,r){Oa.S(e,t,r);var l=Ai;if(l&&e){var o=nt(l).hoistableStyles,c=Oi(e);t=t||"default";var p=o.get(c);if(!p){var v={loading:0,preload:null};if(p=l.querySelector(wl(c)))v.loading=5;else{e=_({rel:"stylesheet",href:e,"data-precedence":t},r),(r=On.get(c))&&Uf(e,r);var T=p=l.createElement("link");Ee(T),Dt(T,"link",e),T._p=new Promise(function(L,F){T.onload=L,T.onerror=F}),T.addEventListener("load",function(){v.loading|=1}),T.addEventListener("error",function(){v.loading|=2}),v.loading|=4,po(p,t,l)}p={type:"stylesheet",instance:p,count:1,state:v},o.set(c,p)}}}function V2(e,t){Oa.X(e,t);var r=Ai;if(r&&e){var l=nt(r).hoistableScripts,o=xi(e),c=l.get(o);c||(c=r.querySelector(Nl(o)),c||(e=_({src:e,async:!0},t),(t=On.get(o))&&jf(e,t),c=r.createElement("script"),Ee(c),Dt(c,"link",e),r.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function Y2(e,t){Oa.M(e,t);var r=Ai;if(r&&e){var l=nt(r).hoistableScripts,o=xi(e),c=l.get(o);c||(c=r.querySelector(Nl(o)),c||(e=_({src:e,async:!0,type:"module"},t),(t=On.get(o))&&jf(e,t),c=r.createElement("script"),Ee(c),Dt(c,"link",e),r.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function Ug(e,t,r,l){var o=(o=fe.current)?mo(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(t=Oi(r.href),r=nt(o).hoistableStyles,l=r.get(t),l||(l={type:"style",instance:null,count:0,state:null},r.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=Oi(r.href);var c=nt(o).hoistableStyles,p=c.get(e);if(p||(o=o.ownerDocument||o,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,p),(c=o.querySelector(wl(e)))&&!c._p&&(p.instance=c,p.state.loading=5),On.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},On.set(e,r),c||P2(o,e,r,p.state))),t&&l===null)throw Error(s(528,""));return p}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=xi(r),r=nt(o).hoistableScripts,l=r.get(t),l||(l={type:"script",instance:null,count:0,state:null},r.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Oi(e){return'href="'+yn(e)+'"'}function wl(e){return'link[rel="stylesheet"]['+e+"]"}function jg(e){return _({},e,{"data-precedence":e.precedence,precedence:null})}function P2(e,t,r,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),Dt(t,"link",r),Ee(t),e.head.appendChild(t))}function xi(e){return'[src="'+yn(e)+'"]'}function Nl(e){return"script[async]"+e}function Hg(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+yn(r.href)+'"]');if(l)return t.instance=l,Ee(l),l;var o=_({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Ee(l),Dt(l,"style",o),po(l,r.precedence,e),t.instance=l;case"stylesheet":o=Oi(r.href);var c=e.querySelector(wl(o));if(c)return t.state.loading|=4,t.instance=c,Ee(c),c;l=jg(r),(o=On.get(o))&&Uf(l,o),c=(e.ownerDocument||e).createElement("link"),Ee(c);var p=c;return p._p=new Promise(function(v,T){p.onload=v,p.onerror=T}),Dt(c,"link",l),t.state.loading|=4,po(c,r.precedence,e),t.instance=c;case"script":return c=xi(r.src),(o=e.querySelector(Nl(c)))?(t.instance=o,Ee(o),o):(l=r,(o=On.get(c))&&(l=_({},r),jf(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),Ee(o),Dt(o,"link",l),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,po(l,r.precedence,e));return t.instance}function po(e,t,r){for(var l=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,c=o,p=0;p<l.length;p++){var v=l[p];if(v.dataset.precedence===t)c=v;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function Uf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function jf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var go=null;function Ig(e,t,r){if(go===null){var l=new Map,o=go=new Map;o.set(r,l)}else o=go,l=o.get(r),l||(l=new Map,o.set(r,l));if(l.has(e))return l;for(l.set(e,null),r=r.getElementsByTagName(e),o=0;o<r.length;o++){var c=r[o];if(!(c[ie]||c[dt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var p=c.getAttribute(t)||"";p=e+p;var v=l.get(p);v?v.push(c):l.set(p,[c])}}return l}function zg(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function X2(e,t,r){if(r===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Gg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Z2(e,t,r,l){if(r.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var o=Oi(l.href),c=t.querySelector(wl(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=yo.bind(e),t.then(e,e)),r.state.loading|=4,r.instance=c,Ee(c);return}c=t.ownerDocument||t,l=jg(l),(o=On.get(o))&&Uf(l,o),c=c.createElement("link"),Ee(c);var p=c;p._p=new Promise(function(v,T){p.onload=v,p.onerror=T}),Dt(c,"link",l),r.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&3)===0&&(e.count++,r=yo.bind(e),t.addEventListener("load",r),t.addEventListener("error",r))}}var Hf=0;function Q2(e,t){return e.stylesheets&&e.count===0&&vo(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var l=setTimeout(function(){if(e.stylesheets&&vo(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Hf===0&&(Hf=62500*w2());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&vo(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Hf?50:800)+t);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function yo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)vo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var bo=null;function vo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,bo=new Map,t.forEach(K2,e),bo=null,yo.call(e))}function K2(e,t){if(!(t.state.loading&4)){var r=bo.get(e);if(r)var l=r.get(null);else{r=new Map,bo.set(e,r);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var p=o[c];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(r.set(p.dataset.precedence,p),l=p)}l&&r.set(null,l)}o=t.instance,p=o.getAttribute("data-precedence"),c=r.get(p)||l,c===l&&r.set(null,o),r.set(p,o),this.count++,l=yo.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Ml={$$typeof:S,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function $2(e,t,r,l,o,c,p,v,T){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=Gi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gi(0),this.hiddenUpdates=Gi(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function kg(e,t,r,l,o,c,p,v,T,L,F,Y){return e=new $2(e,t,r,p,T,L,F,Y,v),t=1,c===!0&&(t|=24),c=en(3,null,null,t),e.current=c,c.stateNode=e,t=pc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:r,cache:t},vc(c),e}function qg(e){return e?(e=ai,e):ai}function Fg(e,t,r,l,o,c){o=qg(o),l.context===null?l.context=o:l.pendingContext=o,l=Va(t),l.payload={element:r},c=c===void 0?null:c,c!==null&&(l.callback=c),r=Ya(e,l,t),r!==null&&(Kt(r,e,t),ul(r,e,t))}function Vg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function If(e,t){Vg(e,t),(e=e.alternate)&&Vg(e,t)}function Yg(e){if(e.tag===13||e.tag===31){var t=br(e,67108864);t!==null&&Kt(t,e,67108864),If(e,67108864)}}function Pg(e){if(e.tag===13||e.tag===31){var t=ln();t=Ft(t);var r=br(e,t);r!==null&&Kt(r,e,t),If(e,t)}}var _o=!0;function W2(e,t,r,l){var o=G.T;G.T=null;var c=$.p;try{$.p=2,zf(e,t,r,l)}finally{$.p=c,G.T=o}}function J2(e,t,r,l){var o=G.T;G.T=null;var c=$.p;try{$.p=8,zf(e,t,r,l)}finally{$.p=c,G.T=o}}function zf(e,t,r,l){if(_o){var o=Gf(l);if(o===null)Of(e,t,l,Eo,r),Zg(e,l);else if(tS(o,e,t,r,l))l.stopPropagation();else if(Zg(e,l),t&4&&-1<eS.indexOf(e)){for(;o!==null;){var c=ee(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var p=Wt(c.pendingLanes);if(p!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;p;){var T=1<<31-ct(p);v.entanglements[1]|=T,p&=~T}Xn(c),(He&6)===0&&(no=Ct()+500,Ol(0))}}break;case 31:case 13:v=br(c,2),v!==null&&Kt(v,c,2),ro(),If(c,2)}if(c=Gf(l),c===null&&Of(e,t,l,Eo,r),c===o)break;o=c}o!==null&&l.stopPropagation()}else Of(e,t,l,null,r)}}function Gf(e){return e=ku(e),kf(e)}var Eo=null;function kf(e){if(Eo=null,e=Q(e),e!==null){var t=f(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=d(t),e!==null)return e;e=null}else if(r===31){if(e=h(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Eo=e,null}function Xg(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(dr()){case na:return 2;case aa:return 8;case hr:case os:return 32;case ji:return 268435456;default:return 32}default:return 32}}var qf=!1,nr=null,ar=null,rr=null,Dl=new Map,Ll=new Map,ir=[],eS="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 Zg(e,t){switch(e){case"focusin":case"focusout":nr=null;break;case"dragenter":case"dragleave":ar=null;break;case"mouseover":case"mouseout":rr=null;break;case"pointerover":case"pointerout":Dl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ll.delete(t.pointerId)}}function Bl(e,t,r,l,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:r,eventSystemFlags:l,nativeEvent:c,targetContainers:[o]},t!==null&&(t=ee(t),t!==null&&Yg(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function tS(e,t,r,l,o){switch(t){case"focusin":return nr=Bl(nr,e,t,r,l,o),!0;case"dragenter":return ar=Bl(ar,e,t,r,l,o),!0;case"mouseover":return rr=Bl(rr,e,t,r,l,o),!0;case"pointerover":var c=o.pointerId;return Dl.set(c,Bl(Dl.get(c)||null,e,t,r,l,o)),!0;case"gotpointercapture":return c=o.pointerId,Ll.set(c,Bl(Ll.get(c)||null,e,t,r,l,o)),!0}return!1}function Qg(e){var t=Q(e.target);if(t!==null){var r=f(t);if(r!==null){if(t=r.tag,t===13){if(t=d(r),t!==null){e.blockedOn=t,Yi(e.priority,function(){Pg(r)});return}}else if(t===31){if(t=h(r),t!==null){e.blockedOn=t,Yi(e.priority,function(){Pg(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function So(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Gf(e.nativeEvent);if(r===null){r=e.nativeEvent;var l=new r.constructor(r.type,r);Gu=l,r.target.dispatchEvent(l),Gu=null}else return t=ee(r),t!==null&&Yg(t),e.blockedOn=r,!1;t.shift()}return!0}function Kg(e,t,r){So(e)&&r.delete(t)}function nS(){qf=!1,nr!==null&&So(nr)&&(nr=null),ar!==null&&So(ar)&&(ar=null),rr!==null&&So(rr)&&(rr=null),Dl.forEach(Kg),Ll.forEach(Kg)}function To(e,t){e.blockedOn===t&&(e.blockedOn=null,qf||(qf=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,nS)))}var Ao=null;function $g(e){Ao!==e&&(Ao=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Ao===e&&(Ao=null);for(var t=0;t<e.length;t+=3){var r=e[t],l=e[t+1],o=e[t+2];if(typeof l!="function"){if(kf(l||r)===null)continue;break}var c=ee(r);c!==null&&(e.splice(t,3),t-=3,zc(c,{pending:!0,data:o,method:r.method,action:l},l,o))}}))}function Ci(e){function t(T){return To(T,e)}nr!==null&&To(nr,e),ar!==null&&To(ar,e),rr!==null&&To(rr,e),Dl.forEach(t),Ll.forEach(t);for(var r=0;r<ir.length;r++){var l=ir[r];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ir.length&&(r=ir[0],r.blockedOn===null);)Qg(r),r.blockedOn===null&&ir.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(l=0;l<r.length;l+=3){var o=r[l],c=r[l+1],p=o[Je]||null;if(typeof c=="function")p||$g(r);else if(p){var v=null;if(c&&c.hasAttribute("formAction")){if(o=c,p=c[Je]||null)v=p.formAction;else if(kf(o)!==null)continue}else v=p.action;typeof v=="function"?r[l+1]=v:(r.splice(l,3),l-=3),$g(r)}}}function Wg(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(p){return o=p})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),l||setTimeout(r,20)}function r(){if(!l&&!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 l=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(r,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Ff(e){this._internalRoot=e}Oo.prototype.render=Ff.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var r=t.current,l=ln();Fg(r,l,e,t,null,null)},Oo.prototype.unmount=Ff.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Fg(e.current,2,null,e,null,null),ro(),t[sa]=null}};function Oo(e){this._internalRoot=e}Oo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Vi();e={blockedOn:null,target:e,priority:t};for(var r=0;r<ir.length&&t!==0&&t<ir[r].priority;r++);ir.splice(r,0,e),r===0&&Qg(e)}};var Jg=a.version;if(Jg!=="19.2.0")throw Error(s(527,Jg,"19.2.0"));$.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=g(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var aS={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var xo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xo.isDisabled&&xo.supportsFiber)try{qn=xo.inject(aS),St=xo}catch{}}return jl.createRoot=function(e,t){if(!u(e))throw Error(s(299));var r=!1,l="",o=lp,c=sp,p=op;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError)),t=kg(e,1,!1,null,null,r,l,null,o,c,p,Wg),e[sa]=t.current,Af(e),new Ff(t)},jl.hydrateRoot=function(e,t,r){if(!u(e))throw Error(s(299));var l=!1,o="",c=lp,p=sp,v=op,T=null;return r!=null&&(r.unstable_strictMode===!0&&(l=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onUncaughtError!==void 0&&(c=r.onUncaughtError),r.onCaughtError!==void 0&&(p=r.onCaughtError),r.onRecoverableError!==void 0&&(v=r.onRecoverableError),r.formState!==void 0&&(T=r.formState)),t=kg(e,1,!0,t,r??null,l,o,T,c,p,v,Wg),t.context=qg(null),r=t.current,l=ln(),l=Ft(l),o=Va(l),o.callback=null,Ya(r,o,l),r=l,t.current.lanes=r,Ha(t,r),Xn(t),e[sa]=t.current,Af(e),new Oo(t)},jl.version="19.2.0",jl}var uy;function hS(){if(uy)return Yf.exports;uy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Yf.exports=dS(),Yf.exports}var mS=hS(),B=vu();const Gv=bu(B);var Kf={exports:{}},$f={};/**
48
+ `+l.stack}}var Ba=Object.prototype.hasOwnProperty,Ua=n.unstable_scheduleCallback,Vr=n.unstable_cancelCallback,ss=n.unstable_shouldYield,Bu=n.unstable_requestPaint,Ct=n.unstable_now,fr=n.unstable_getCurrentPriorityLevel,ta=n.unstable_ImmediatePriority,na=n.unstable_UserBlockingPriority,dr=n.unstable_NormalPriority,os=n.unstable_LowPriority,Ui=n.unstable_IdlePriority,ji=n.log,us=n.unstable_setDisableYieldValue,kn=null,St=null;function Tt(e){if(typeof ji=="function"&&us(e),St&&typeof St.setStrictMode=="function")try{St.setStrictMode(kn,e)}catch{}}var ct=Math.clz32?Math.clz32:Uu,Hi=Math.log,Ii=Math.LN2;function Uu(e){return e>>>=0,e===0?32:31-(Hi(e)/Ii|0)|0}var aa=256,ra=262144,Yr=4194304;function Wt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Pr(e,t,r){var l=e.pendingLanes;if(l===0)return 0;var o=0,c=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var v=l&134217727;return v!==0?(l=v&~c,l!==0?o=Wt(l):(p&=v,p!==0?o=Wt(p):r||(r=v&~e,r!==0&&(o=Wt(r))))):(v=l&~c,v!==0?o=Wt(v):p!==0?o=Wt(p):r||(r=l&~e,r!==0&&(o=Wt(r)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,r=t&-t,c>=r||c===32&&(r&4194048)!==0)?t:o}function hr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ft(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ia(){var e=Yr;return Yr<<=1,(Yr&62914560)===0&&(Yr=4194304),e}function zi(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function ja(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Gi(e,t,r,l,o,c){var p=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var v=e.entanglements,T=e.expirationTimes,L=e.hiddenUpdates;for(r=p&~r;0<r;){var F=31-ct(r),Y=1<<F;v[F]=0,T[F]=-1;var j=L[F];if(j!==null)for(L[F]=null,F=0;F<j.length;F++){var z=j[F];z!==null&&(z.lane&=-536870913)}r&=~Y}l!==0&&ki(e,l,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(p&~t))}function ki(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-ct(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|r&261930}function qi(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var l=31-ct(r),o=1<<l;o&t|e[l]&t&&(e[l]|=t),r&=~o}}function cs(e,t){var r=t&-t;return r=(r&42)!==0?1:Ft(r),(r&(e.suspendedLanes|t))!==0?0:r}function Ft(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 Nn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Fi(){var e=$.p;return e!==0?e:(e=window.event,e===void 0?32:Xg(e.type))}function Vi(e,t){var r=$.p;try{return $.p=e,t()}finally{$.p=r}}var hn=Math.random().toString(36).slice(2),dt="__reactFiber$"+hn,Je="__reactProps$"+hn,la="__reactContainer$"+hn,Xr="__reactEvents$"+hn,fs="__reactListeners$"+hn,ds="__reactHandles$"+hn,hs="__reactResources$"+hn,ie="__reactMarker$"+hn;function R(e){delete e[dt],delete e[Je],delete e[Xr],delete e[fs],delete e[ds]}function Q(e){var t=e[dt];if(t)return t;for(var r=e.parentNode;r;){if(t=r[la]||r[dt]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Mg(e);e!==null;){if(r=e[dt])return r;e=Mg(e)}return t}e=r,r=e.parentNode}return null}function ee(e){if(e=e[dt]||e[la]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ie(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function nt(e){var t=e[hs];return t||(t=e[hs]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ee(e){e[ie]=!0}var Rt=new Set,mn={};function Vt(e,t){qn(e,t),qn(e+"Capture",t)}function qn(e,t){for(mn[e]=t,e=0;e<t.length;e++)Rt.add(t[e])}var _t=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]*$"),Yi={},Pi={};function $_(e){return Ba.call(Pi,e)?!0:Ba.call(Yi,e)?!1:_t.test(e)?Pi[e]=!0:(Yi[e]=!0,!1)}function ms(e,t,r){if($_(t))if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+r)}}function ps(e,t,r){if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+r)}}function sa(e,t,r,l){if(l===null)e.removeAttribute(r);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(t,r,""+l)}}function pn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function W_(e,t,r){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,c=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(p){r=""+p,c.call(this,p)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return r},setValue:function(p){r=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ju(e){if(!e._valueTracker){var t=pm(e)?"checked":"value";e._valueTracker=W_(e,t,""+e[t])}}function gm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),l="";return e&&(l=pm(e)?e.checked?"true":"false":e.value),e=l,e!==r?(t.setValue(e),!0):!1}function gs(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 J_=/[\n"\\]/g;function gn(e){return e.replace(J_,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Hu(e,t,r,l,o,c,p,v){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+pn(t)):e.value!==""+pn(t)&&(e.value=""+pn(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?Iu(e,p,pn(t)):r!=null?Iu(e,p,pn(r)):l!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+pn(v):e.removeAttribute("name")}function ym(e,t,r,l,o,c,p,v){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||r!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){ju(e);return}r=r!=null?""+pn(r):"",t=t!=null?""+pn(t):r,v||t===e.value||(e.value=t),e.defaultValue=t}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=v?e.checked:!!l,e.defaultChecked=!!l,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),ju(e)}function Iu(e,t,r){t==="number"&&gs(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function Zr(e,t,r,l){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&l&&(e[r].defaultSelected=!0)}else{for(r=""+pn(r),t=null,o=0;o<e.length;o++){if(e[o].value===r){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function bm(e,t,r){if(t!=null&&(t=""+pn(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+pn(r):""}function vm(e,t,r,l){if(t==null){if(l!=null){if(r!=null)throw Error(s(92));if(Ne(l)){if(1<l.length)throw Error(s(93));l=l[0]}r=l}r==null&&(r=""),t=r}r=pn(t),e.defaultValue=r,l=e.textContent,l===r&&l!==""&&l!==null&&(e.value=l),ju(e)}function Qr(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var eE=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 _m(e,t,r){var l=t.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,r):typeof r!="number"||r===0||eE.has(t)?t==="float"?e.cssFloat=r:e[t]=(""+r).trim():e[t]=r+"px"}function Em(e,t,r){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,r!=null){for(var l in r)!r.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var o in t)l=t[o],t.hasOwnProperty(o)&&r[o]!==l&&_m(e,o,l)}else for(var c in t)t.hasOwnProperty(c)&&_m(e,c,t[c])}function zu(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 tE=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"]]),nE=/^[\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 ys(e){return nE.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function oa(){}var Gu=null;function ku(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Kr=null,$r=null;function Sm(e){var t=ee(e);if(t&&(e=t.stateNode)){var r=e[Je]||null;e:switch(e=t.stateNode,t.type){case"input":if(Hu(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+gn(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var l=r[t];if(l!==e&&l.form===e.form){var o=l[Je]||null;if(!o)throw Error(s(90));Hu(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<r.length;t++)l=r[t],l.form===e.form&&gm(l)}break e;case"textarea":bm(e,r.value,r.defaultValue);break e;case"select":t=r.value,t!=null&&Zr(e,!!r.multiple,t,!1)}}}var qu=!1;function Tm(e,t,r){if(qu)return e(t,r);qu=!0;try{var l=e(t);return l}finally{if(qu=!1,(Kr!==null||$r!==null)&&(ro(),Kr&&(t=Kr,e=$r,$r=Kr=null,Sm(t),e)))for(t=0;t<e.length;t++)Sm(e[t])}}function Xi(e,t){var r=e.stateNode;if(r===null)return null;var l=r[Je]||null;if(l===null)return null;r=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(s(231,t,typeof r));return r}var ua=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fu=!1;if(ua)try{var Zi={};Object.defineProperty(Zi,"passive",{get:function(){Fu=!0}}),window.addEventListener("test",Zi,Zi),window.removeEventListener("test",Zi,Zi)}catch{Fu=!1}var Ha=null,Vu=null,bs=null;function Am(){if(bs)return bs;var e,t=Vu,r=t.length,l,o="value"in Ha?Ha.value:Ha.textContent,c=o.length;for(e=0;e<r&&t[e]===o[e];e++);var p=r-e;for(l=1;l<=p&&t[r-l]===o[c-l];l++);return bs=o.slice(e,1<l?1-l:void 0)}function vs(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function _s(){return!0}function Om(){return!1}function Yt(e){function t(r,l,o,c,p){this._reactName=r,this._targetInst=o,this.type=l,this.nativeEvent=c,this.target=p,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(r=e[v],this[v]=r?r(c):c[v]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?_s:Om,this.isPropagationStopped=Om,this}return _(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=_s)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=_s)},persist:function(){},isPersistent:_s}),t}var mr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Es=Yt(mr),Qi=_({},mr,{view:0,detail:0}),aE=Yt(Qi),Yu,Pu,Ki,Ss=_({},Qi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ki&&(Ki&&e.type==="mousemove"?(Yu=e.screenX-Ki.screenX,Pu=e.screenY-Ki.screenY):Pu=Yu=0,Ki=e),Yu)},movementY:function(e){return"movementY"in e?e.movementY:Pu}}),xm=Yt(Ss),rE=_({},Ss,{dataTransfer:0}),iE=Yt(rE),lE=_({},Qi,{relatedTarget:0}),Xu=Yt(lE),sE=_({},mr,{animationName:0,elapsedTime:0,pseudoElement:0}),oE=Yt(sE),uE=_({},mr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),cE=Yt(uE),fE=_({},mr,{data:0}),Cm=Yt(fE),dE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hE={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"},mE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function pE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=mE[e])?!!t[e]:!1}function Zu(){return pE}var gE=_({},Qi,{key:function(e){if(e.key){var t=dE[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=vs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?hE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zu,charCode:function(e){return e.type==="keypress"?vs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),yE=Yt(gE),bE=_({},Ss,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Rm=Yt(bE),vE=_({},Qi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zu}),_E=Yt(vE),EE=_({},mr,{propertyName:0,elapsedTime:0,pseudoElement:0}),SE=Yt(EE),TE=_({},Ss,{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}),AE=Yt(TE),OE=_({},mr,{newState:0,oldState:0}),xE=Yt(OE),CE=[9,13,27,32],Qu=ua&&"CompositionEvent"in window,$i=null;ua&&"documentMode"in document&&($i=document.documentMode);var RE=ua&&"TextEvent"in window&&!$i,wm=ua&&(!Qu||$i&&8<$i&&11>=$i),Nm=" ",Mm=!1;function Dm(e,t){switch(e){case"keyup":return CE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wr=!1;function wE(e,t){switch(e){case"compositionend":return Lm(t);case"keypress":return t.which!==32?null:(Mm=!0,Nm);case"textInput":return e=t.data,e===Nm&&Mm?null:e;default:return null}}function NE(e,t){if(Wr)return e==="compositionend"||!Qu&&Dm(e,t)?(e=Am(),bs=Vu=Ha=null,Wr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return wm&&t.locale!=="ko"?null:t.data;default:return null}}var ME={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 Bm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ME[e.type]:t==="textarea"}function Um(e,t,r,l){Kr?$r?$r.push(l):$r=[l]:Kr=l,t=fo(t,"onChange"),0<t.length&&(r=new Es("onChange","change",null,r,l),e.push({event:r,listeners:t}))}var Wi=null,Ji=null;function DE(e){yg(e,0)}function Ts(e){var t=Ie(e);if(gm(t))return e}function jm(e,t){if(e==="change")return t}var Hm=!1;if(ua){var Ku;if(ua){var $u="oninput"in document;if(!$u){var Im=document.createElement("div");Im.setAttribute("oninput","return;"),$u=typeof Im.oninput=="function"}Ku=$u}else Ku=!1;Hm=Ku&&(!document.documentMode||9<document.documentMode)}function zm(){Wi&&(Wi.detachEvent("onpropertychange",Gm),Ji=Wi=null)}function Gm(e){if(e.propertyName==="value"&&Ts(Ji)){var t=[];Um(t,Ji,e,ku(e)),Tm(DE,t)}}function LE(e,t,r){e==="focusin"?(zm(),Wi=t,Ji=r,Wi.attachEvent("onpropertychange",Gm)):e==="focusout"&&zm()}function BE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ts(Ji)}function UE(e,t){if(e==="click")return Ts(t)}function jE(e,t){if(e==="input"||e==="change")return Ts(t)}function HE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jt=typeof Object.is=="function"?Object.is:HE;function el(e,t){if(Jt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),l=Object.keys(t);if(r.length!==l.length)return!1;for(l=0;l<r.length;l++){var o=r[l];if(!Ba.call(t,o)||!Jt(e[o],t[o]))return!1}return!0}function km(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qm(e,t){var r=km(e);e=0;for(var l;r;){if(r.nodeType===3){if(l=e+r.textContent.length,e<=t&&l>=t)return{node:r,offset:t-e};e=l}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=km(r)}}function Fm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=gs(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=gs(e.document)}return t}function Wu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var IE=ua&&"documentMode"in document&&11>=document.documentMode,Jr=null,Ju=null,tl=null,ec=!1;function Ym(e,t,r){var l=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;ec||Jr==null||Jr!==gs(l)||(l=Jr,"selectionStart"in l&&Wu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),tl&&el(tl,l)||(tl=l,l=fo(Ju,"onSelect"),0<l.length&&(t=new Es("onSelect","select",null,t,r),e.push({event:t,listeners:l}),t.target=Jr)))}function pr(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var ei={animationend:pr("Animation","AnimationEnd"),animationiteration:pr("Animation","AnimationIteration"),animationstart:pr("Animation","AnimationStart"),transitionrun:pr("Transition","TransitionRun"),transitionstart:pr("Transition","TransitionStart"),transitioncancel:pr("Transition","TransitionCancel"),transitionend:pr("Transition","TransitionEnd")},tc={},Pm={};ua&&(Pm=document.createElement("div").style,"AnimationEvent"in window||(delete ei.animationend.animation,delete ei.animationiteration.animation,delete ei.animationstart.animation),"TransitionEvent"in window||delete ei.transitionend.transition);function gr(e){if(tc[e])return tc[e];if(!ei[e])return e;var t=ei[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Pm)return tc[e]=t[r];return e}var Xm=gr("animationend"),Zm=gr("animationiteration"),Qm=gr("animationstart"),zE=gr("transitionrun"),GE=gr("transitionstart"),kE=gr("transitioncancel"),Km=gr("transitionend"),$m=new Map,nc="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(" ");nc.push("scrollEnd");function Mn(e,t){$m.set(e,t),Vt(t,[e])}var As=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},yn=[],ti=0,ac=0;function Os(){for(var e=ti,t=ac=ti=0;t<e;){var r=yn[t];yn[t++]=null;var l=yn[t];yn[t++]=null;var o=yn[t];yn[t++]=null;var c=yn[t];if(yn[t++]=null,l!==null&&o!==null){var p=l.pending;p===null?o.next=o:(o.next=p.next,p.next=o),l.pending=o}c!==0&&Wm(r,o,c)}}function xs(e,t,r,l){yn[ti++]=e,yn[ti++]=t,yn[ti++]=r,yn[ti++]=l,ac|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function rc(e,t,r,l){return xs(e,t,r,l),Cs(e)}function yr(e,t){return xs(e,null,null,t),Cs(e)}function Wm(e,t,r){e.lanes|=r;var l=e.alternate;l!==null&&(l.lanes|=r);for(var o=!1,c=e.return;c!==null;)c.childLanes|=r,l=c.alternate,l!==null&&(l.childLanes|=r),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-ct(r),e=c.hiddenUpdates,l=e[o],l===null?e[o]=[t]:l.push(t),t.lane=r|536870912),c):null}function Cs(e){if(50<Tl)throw Tl=0,mf=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ni={};function qE(e,t,r,l){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function en(e,t,r,l){return new qE(e,t,r,l)}function ic(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ca(e,t){var r=e.alternate;return r===null?(r=en(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function Jm(e,t){e.flags&=65011714;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Rs(e,t,r,l,o,c){var p=0;if(l=e,typeof e=="function")ic(e)&&(p=1);else if(typeof e=="string")p=X2(e,r,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case de:return e=en(31,r,t,o),e.elementType=de,e.lanes=c,e;case k:return br(r.children,o,c,t);case I:p=8,o|=24;break;case E:return e=en(12,r,t,o|2),e.elementType=E,e.lanes=c,e;case N:return e=en(13,r,t,o),e.elementType=N,e.lanes=c,e;case Z:return e=en(19,r,t,o),e.elementType=Z,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case S:p=10;break e;case C:p=9;break e;case H:p=11;break e;case X:p=14;break e;case te:p=16,l=null;break e}p=29,r=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=en(p,r,t,o),t.elementType=e,t.type=l,t.lanes=c,t}function br(e,t,r,l){return e=en(7,e,l,t),e.lanes=r,e}function lc(e,t,r){return e=en(6,e,null,t),e.lanes=r,e}function e0(e){var t=en(18,null,null,0);return t.stateNode=e,t}function sc(e,t,r){return t=en(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var t0=new WeakMap;function bn(e,t){if(typeof e=="object"&&e!==null){var r=t0.get(e);return r!==void 0?r:(t={value:e,source:t,stack:ea(t)},t0.set(e,t),t)}return{value:e,source:t,stack:ea(t)}}var ai=[],ri=0,ws=null,nl=0,vn=[],_n=0,Ia=null,Fn=1,Vn="";function fa(e,t){ai[ri++]=nl,ai[ri++]=ws,ws=e,nl=t}function n0(e,t,r){vn[_n++]=Fn,vn[_n++]=Vn,vn[_n++]=Ia,Ia=e;var l=Fn;e=Vn;var o=32-ct(l)-1;l&=~(1<<o),r+=1;var c=32-ct(t)+o;if(30<c){var p=o-o%5;c=(l&(1<<p)-1).toString(32),l>>=p,o-=p,Fn=1<<32-ct(t)+o|r<<o|l,Vn=c+e}else Fn=1<<c|r<<o|l,Vn=e}function oc(e){e.return!==null&&(fa(e,1),n0(e,1,0))}function uc(e){for(;e===ws;)ws=ai[--ri],ai[ri]=null,nl=ai[--ri],ai[ri]=null;for(;e===Ia;)Ia=vn[--_n],vn[_n]=null,Vn=vn[--_n],vn[_n]=null,Fn=vn[--_n],vn[_n]=null}function a0(e,t){vn[_n++]=Fn,vn[_n++]=Vn,vn[_n++]=Ia,Fn=t.id,Vn=t.overflow,Ia=e}var wt=null,Qe=null,Me=!1,za=null,En=!1,cc=Error(s(519));function Ga(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw al(bn(t,e)),cc}function r0(e){var t=e.stateNode,r=e.type,l=e.memoizedProps;switch(t[dt]=e,t[Je]=l,r){case"dialog":xe("cancel",t),xe("close",t);break;case"iframe":case"object":case"embed":xe("load",t);break;case"video":case"audio":for(r=0;r<Ol.length;r++)xe(Ol[r],t);break;case"source":xe("error",t);break;case"img":case"image":case"link":xe("error",t),xe("load",t);break;case"details":xe("toggle",t);break;case"input":xe("invalid",t),ym(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":xe("invalid",t);break;case"textarea":xe("invalid",t),vm(t,l.value,l.defaultValue,l.children)}r=l.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||t.textContent===""+r||l.suppressHydrationWarning===!0||Eg(t.textContent,r)?(l.popover!=null&&(xe("beforetoggle",t),xe("toggle",t)),l.onScroll!=null&&xe("scroll",t),l.onScrollEnd!=null&&xe("scrollend",t),l.onClick!=null&&(t.onclick=oa),t=!0):t=!1,t||Ga(e,!0)}function i0(e){for(wt=e.return;wt;)switch(wt.tag){case 5:case 31:case 13:En=!1;return;case 27:case 3:En=!0;return;default:wt=wt.return}}function ii(e){if(e!==wt)return!1;if(!Me)return i0(e),Me=!0,!1;var t=e.tag,r;if((r=t!==3&&t!==27)&&((r=t===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||wf(e.type,e.memoizedProps)),r=!r),r&&Qe&&Ga(e),i0(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Qe=Ng(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Qe=Ng(e)}else t===27?(t=Qe,er(e.type)?(e=Bf,Bf=null,Qe=e):Qe=t):Qe=wt?Tn(e.stateNode.nextSibling):null;return!0}function vr(){Qe=wt=null,Me=!1}function fc(){var e=za;return e!==null&&(Qt===null?Qt=e:Qt.push.apply(Qt,e),za=null),e}function al(e){za===null?za=[e]:za.push(e)}var dc=O(null),_r=null,da=null;function ka(e,t,r){P(dc,t._currentValue),t._currentValue=r}function ha(e){e._currentValue=dc.current,q(dc)}function hc(e,t,r){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===r)break;e=e.return}}function mc(e,t,r,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var p=o.child;c=c.firstContext;e:for(;c!==null;){var v=c;c=o;for(var T=0;T<t.length;T++)if(v.context===t[T]){c.lanes|=r,v=c.alternate,v!==null&&(v.lanes|=r),hc(c.return,r,e),l||(p=null);break e}c=v.next}}else if(o.tag===18){if(p=o.return,p===null)throw Error(s(341));p.lanes|=r,c=p.alternate,c!==null&&(c.lanes|=r),hc(p,r,e),p=null}else p=o.child;if(p!==null)p.return=o;else for(p=o;p!==null;){if(p===e){p=null;break}if(o=p.sibling,o!==null){o.return=p.return,p=o;break}p=p.return}o=p}}function li(e,t,r,l){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var p=o.alternate;if(p===null)throw Error(s(387));if(p=p.memoizedProps,p!==null){var v=o.type;Jt(o.pendingProps.value,p.value)||(e!==null?e.push(v):e=[v])}}else if(o===_e.current){if(p=o.alternate,p===null)throw Error(s(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Nl):e=[Nl])}o=o.return}e!==null&&mc(t,e,r,l),t.flags|=262144}function Ns(e){for(e=e.firstContext;e!==null;){if(!Jt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Er(e){_r=e,da=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Nt(e){return l0(_r,e)}function Ms(e,t){return _r===null&&Er(e),l0(e,t)}function l0(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},da===null){if(e===null)throw Error(s(308));da=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else da=da.next=t;return r}var FE=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(r,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(r){return r()})}},VE=n.unstable_scheduleCallback,YE=n.unstable_NormalPriority,ht={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function pc(){return{controller:new FE,data:new Map,refCount:0}}function rl(e){e.refCount--,e.refCount===0&&VE(YE,function(){e.controller.abort()})}var il=null,gc=0,si=0,oi=null;function PE(e,t){if(il===null){var r=il=[];gc=0,si=_f(),oi={status:"pending",value:void 0,then:function(l){r.push(l)}}}return gc++,t.then(s0,s0),t}function s0(){if(--gc===0&&il!==null){oi!==null&&(oi.status="fulfilled");var e=il;il=null,si=0,oi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function XE(e,t){var r=[],l={status:"pending",value:null,reason:null,then:function(o){r.push(o)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var o=0;o<r.length;o++)(0,r[o])(t)},function(o){for(l.status="rejected",l.reason=o,o=0;o<r.length;o++)(0,r[o])(void 0)}),l}var o0=G.S;G.S=function(e,t){Yp=Ct(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&PE(e,t),o0!==null&&o0(e,t)};var Sr=O(null);function yc(){var e=Sr.current;return e!==null?e:Ze.pooledCache}function Ds(e,t){t===null?P(Sr,Sr.current):P(Sr,t.pool)}function u0(){var e=yc();return e===null?null:{parent:ht._currentValue,pool:e}}var ui=Error(s(460)),bc=Error(s(474)),Ls=Error(s(542)),Bs={then:function(){}};function c0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function f0(e,t,r){switch(r=e[r],r===void 0?e.push(t):r!==t&&(t.then(oa,oa),t=r),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,h0(e),e;default:if(typeof t.status=="string")t.then(oa,oa);else{if(e=Ze,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=l}},function(l){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,h0(e),e}throw Ar=t,ui}}function Tr(e){try{var t=e._init;return t(e._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(Ar=r,ui):r}}var Ar=null;function d0(){if(Ar===null)throw Error(s(459));var e=Ar;return Ar=null,e}function h0(e){if(e===ui||e===Ls)throw Error(s(483))}var ci=null,ll=0;function Us(e){var t=ll;return ll+=1,ci===null&&(ci=[]),f0(ci,e,t)}function sl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function js(e,t){throw t.$$typeof===A?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function m0(e){function t(M,w){if(e){var D=M.deletions;D===null?(M.deletions=[w],M.flags|=16):D.push(w)}}function r(M,w){if(!e)return null;for(;w!==null;)t(M,w),w=w.sibling;return null}function l(M){for(var w=new Map;M!==null;)M.key!==null?w.set(M.key,M):w.set(M.index,M),M=M.sibling;return w}function o(M,w){return M=ca(M,w),M.index=0,M.sibling=null,M}function c(M,w,D){return M.index=D,e?(D=M.alternate,D!==null?(D=D.index,D<w?(M.flags|=67108866,w):D):(M.flags|=67108866,w)):(M.flags|=1048576,w)}function p(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function v(M,w,D,V){return w===null||w.tag!==6?(w=lc(D,M.mode,V),w.return=M,w):(w=o(w,D),w.return=M,w)}function T(M,w,D,V){var oe=D.type;return oe===k?F(M,w,D.props.children,V,D.key):w!==null&&(w.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===te&&Tr(oe)===w.type)?(w=o(w,D.props),sl(w,D),w.return=M,w):(w=Rs(D.type,D.key,D.props,null,M.mode,V),sl(w,D),w.return=M,w)}function L(M,w,D,V){return w===null||w.tag!==4||w.stateNode.containerInfo!==D.containerInfo||w.stateNode.implementation!==D.implementation?(w=sc(D,M.mode,V),w.return=M,w):(w=o(w,D.children||[]),w.return=M,w)}function F(M,w,D,V,oe){return w===null||w.tag!==7?(w=br(D,M.mode,V,oe),w.return=M,w):(w=o(w,D),w.return=M,w)}function Y(M,w,D){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=lc(""+w,M.mode,D),w.return=M,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case U:return D=Rs(w.type,w.key,w.props,null,M.mode,D),sl(D,w),D.return=M,D;case x:return w=sc(w,M.mode,D),w.return=M,w;case te:return w=Tr(w),Y(M,w,D)}if(Ne(w)||pe(w))return w=br(w,M.mode,D,null),w.return=M,w;if(typeof w.then=="function")return Y(M,Us(w),D);if(w.$$typeof===S)return Y(M,Ms(M,w),D);js(M,w)}return null}function j(M,w,D,V){var oe=w!==null?w.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return oe!==null?null:v(M,w,""+D,V);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case U:return D.key===oe?T(M,w,D,V):null;case x:return D.key===oe?L(M,w,D,V):null;case te:return D=Tr(D),j(M,w,D,V)}if(Ne(D)||pe(D))return oe!==null?null:F(M,w,D,V,null);if(typeof D.then=="function")return j(M,w,Us(D),V);if(D.$$typeof===S)return j(M,w,Ms(M,D),V);js(M,D)}return null}function z(M,w,D,V,oe){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return M=M.get(D)||null,v(w,M,""+V,oe);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case U:return M=M.get(V.key===null?D:V.key)||null,T(w,M,V,oe);case x:return M=M.get(V.key===null?D:V.key)||null,L(w,M,V,oe);case te:return V=Tr(V),z(M,w,D,V,oe)}if(Ne(V)||pe(V))return M=M.get(D)||null,F(w,M,V,oe,null);if(typeof V.then=="function")return z(M,w,D,Us(V),oe);if(V.$$typeof===S)return z(M,w,D,Ms(w,V),oe);js(w,V)}return null}function ae(M,w,D,V){for(var oe=null,Ue=null,le=w,ve=w=0,we=null;le!==null&&ve<D.length;ve++){le.index>ve?(we=le,le=null):we=le.sibling;var je=j(M,le,D[ve],V);if(je===null){le===null&&(le=we);break}e&&le&&je.alternate===null&&t(M,le),w=c(je,w,ve),Ue===null?oe=je:Ue.sibling=je,Ue=je,le=we}if(ve===D.length)return r(M,le),Me&&fa(M,ve),oe;if(le===null){for(;ve<D.length;ve++)le=Y(M,D[ve],V),le!==null&&(w=c(le,w,ve),Ue===null?oe=le:Ue.sibling=le,Ue=le);return Me&&fa(M,ve),oe}for(le=l(le);ve<D.length;ve++)we=z(le,M,ve,D[ve],V),we!==null&&(e&&we.alternate!==null&&le.delete(we.key===null?ve:we.key),w=c(we,w,ve),Ue===null?oe=we:Ue.sibling=we,Ue=we);return e&&le.forEach(function(ir){return t(M,ir)}),Me&&fa(M,ve),oe}function ue(M,w,D,V){if(D==null)throw Error(s(151));for(var oe=null,Ue=null,le=w,ve=w=0,we=null,je=D.next();le!==null&&!je.done;ve++,je=D.next()){le.index>ve?(we=le,le=null):we=le.sibling;var ir=j(M,le,je.value,V);if(ir===null){le===null&&(le=we);break}e&&le&&ir.alternate===null&&t(M,le),w=c(ir,w,ve),Ue===null?oe=ir:Ue.sibling=ir,Ue=ir,le=we}if(je.done)return r(M,le),Me&&fa(M,ve),oe;if(le===null){for(;!je.done;ve++,je=D.next())je=Y(M,je.value,V),je!==null&&(w=c(je,w,ve),Ue===null?oe=je:Ue.sibling=je,Ue=je);return Me&&fa(M,ve),oe}for(le=l(le);!je.done;ve++,je=D.next())je=z(le,M,ve,je.value,V),je!==null&&(e&&je.alternate!==null&&le.delete(je.key===null?ve:je.key),w=c(je,w,ve),Ue===null?oe=je:Ue.sibling=je,Ue=je);return e&&le.forEach(function(rS){return t(M,rS)}),Me&&fa(M,ve),oe}function Pe(M,w,D,V){if(typeof D=="object"&&D!==null&&D.type===k&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case U:e:{for(var oe=D.key;w!==null;){if(w.key===oe){if(oe=D.type,oe===k){if(w.tag===7){r(M,w.sibling),V=o(w,D.props.children),V.return=M,M=V;break e}}else if(w.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===te&&Tr(oe)===w.type){r(M,w.sibling),V=o(w,D.props),sl(V,D),V.return=M,M=V;break e}r(M,w);break}else t(M,w);w=w.sibling}D.type===k?(V=br(D.props.children,M.mode,V,D.key),V.return=M,M=V):(V=Rs(D.type,D.key,D.props,null,M.mode,V),sl(V,D),V.return=M,M=V)}return p(M);case x:e:{for(oe=D.key;w!==null;){if(w.key===oe)if(w.tag===4&&w.stateNode.containerInfo===D.containerInfo&&w.stateNode.implementation===D.implementation){r(M,w.sibling),V=o(w,D.children||[]),V.return=M,M=V;break e}else{r(M,w);break}else t(M,w);w=w.sibling}V=sc(D,M.mode,V),V.return=M,M=V}return p(M);case te:return D=Tr(D),Pe(M,w,D,V)}if(Ne(D))return ae(M,w,D,V);if(pe(D)){if(oe=pe(D),typeof oe!="function")throw Error(s(150));return D=oe.call(D),ue(M,w,D,V)}if(typeof D.then=="function")return Pe(M,w,Us(D),V);if(D.$$typeof===S)return Pe(M,w,Ms(M,D),V);js(M,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,w!==null&&w.tag===6?(r(M,w.sibling),V=o(w,D),V.return=M,M=V):(r(M,w),V=lc(D,M.mode,V),V.return=M,M=V),p(M)):r(M,w)}return function(M,w,D,V){try{ll=0;var oe=Pe(M,w,D,V);return ci=null,oe}catch(le){if(le===ui||le===Ls)throw le;var Ue=en(29,le,null,M.mode);return Ue.lanes=V,Ue.return=M,Ue}finally{}}}var Or=m0(!0),p0=m0(!1),qa=!1;function vc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _c(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Fa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Va(e,t,r){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(He&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=Cs(e),Wm(e,null,r),t}return xs(e,l,t,r),Cs(e)}function ol(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,r|=l,t.lanes=r,qi(e,r)}}function Ec(e,t){var r=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,r===l)){var o=null,c=null;if(r=r.firstBaseUpdate,r!==null){do{var p={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};c===null?o=c=p:c=c.next=p,r=r.next}while(r!==null);c===null?o=c=t:c=c.next=t}else o=c=t;r={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}var Sc=!1;function ul(){if(Sc){var e=oi;if(e!==null)throw e}}function cl(e,t,r,l){Sc=!1;var o=e.updateQueue;qa=!1;var c=o.firstBaseUpdate,p=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var T=v,L=T.next;T.next=null,p===null?c=L:p.next=L,p=T;var F=e.alternate;F!==null&&(F=F.updateQueue,v=F.lastBaseUpdate,v!==p&&(v===null?F.firstBaseUpdate=L:v.next=L,F.lastBaseUpdate=T))}if(c!==null){var Y=o.baseState;p=0,F=L=T=null,v=c;do{var j=v.lane&-536870913,z=j!==v.lane;if(z?(Re&j)===j:(l&j)===j){j!==0&&j===si&&(Sc=!0),F!==null&&(F=F.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var ae=e,ue=v;j=t;var Pe=r;switch(ue.tag){case 1:if(ae=ue.payload,typeof ae=="function"){Y=ae.call(Pe,Y,j);break e}Y=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=ue.payload,j=typeof ae=="function"?ae.call(Pe,Y,j):ae,j==null)break e;Y=_({},Y,j);break e;case 2:qa=!0}}j=v.callback,j!==null&&(e.flags|=64,z&&(e.flags|=8192),z=o.callbacks,z===null?o.callbacks=[j]:z.push(j))}else z={lane:j,tag:v.tag,payload:v.payload,callback:v.callback,next:null},F===null?(L=F=z,T=Y):F=F.next=z,p|=j;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;z=v,v=z.next,z.next=null,o.lastBaseUpdate=z,o.shared.pending=null}}while(!0);F===null&&(T=Y),o.baseState=T,o.firstBaseUpdate=L,o.lastBaseUpdate=F,c===null&&(o.shared.lanes=0),Qa|=p,e.lanes=p,e.memoizedState=Y}}function g0(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function y0(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)g0(r[e],t)}var fi=O(null),Hs=O(0);function b0(e,t){e=Sa,P(Hs,e),P(fi,t),Sa=e|t.baseLanes}function Tc(){P(Hs,Sa),P(fi,fi.current)}function Ac(){Sa=Hs.current,q(fi),q(Hs)}var tn=O(null),Sn=null;function Ya(e){var t=e.alternate;P(st,st.current&1),P(tn,e),Sn===null&&(t===null||fi.current!==null||t.memoizedState!==null)&&(Sn=e)}function Oc(e){P(st,st.current),P(tn,e),Sn===null&&(Sn=e)}function v0(e){e.tag===22?(P(st,st.current),P(tn,e),Sn===null&&(Sn=e)):Pa()}function Pa(){P(st,st.current),P(tn,tn.current)}function nn(e){q(tn),Sn===e&&(Sn=null),q(st)}var st=O(0);function Is(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||Df(r)||Lf(r)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ma=0,be=null,Ve=null,mt=null,zs=!1,di=!1,xr=!1,Gs=0,fl=0,hi=null,ZE=0;function rt(){throw Error(s(321))}function xc(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Jt(e[r],t[r]))return!1;return!0}function Cc(e,t,r,l,o,c){return ma=c,be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,G.H=e===null||e.memoizedState===null?np:qc,xr=!1,c=r(l,o),xr=!1,di&&(c=E0(t,r,l,o)),_0(e),c}function _0(e){G.H=ml;var t=Ve!==null&&Ve.next!==null;if(ma=0,mt=Ve=be=null,zs=!1,fl=0,hi=null,t)throw Error(s(300));e===null||pt||(e=e.dependencies,e!==null&&Ns(e)&&(pt=!0))}function E0(e,t,r,l){be=e;var o=0;do{if(di&&(hi=null),fl=0,di=!1,25<=o)throw Error(s(301));if(o+=1,mt=Ve=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}G.H=ap,c=t(r,l)}while(di);return c}function QE(){var e=G.H,t=e.useState()[0];return t=typeof t.then=="function"?dl(t):t,e=e.useState()[0],(Ve!==null?Ve.memoizedState:null)!==e&&(be.flags|=1024),t}function Rc(){var e=Gs!==0;return Gs=0,e}function wc(e,t,r){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r}function Nc(e){if(zs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}zs=!1}ma=0,mt=Ve=be=null,di=!1,fl=Gs=0,hi=null}function Ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mt===null?be.memoizedState=mt=e:mt=mt.next=e,mt}function ot(){if(Ve===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var t=mt===null?be.memoizedState:mt.next;if(t!==null)mt=t,Ve=e;else{if(e===null)throw be.alternate===null?Error(s(467)):Error(s(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},mt===null?be.memoizedState=mt=e:mt=mt.next=e}return mt}function ks(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function dl(e){var t=fl;return fl+=1,hi===null&&(hi=[]),e=f0(hi,e,t),t=be,(mt===null?t.memoizedState:mt.next)===null&&(t=t.alternate,G.H=t===null||t.memoizedState===null?np:qc),e}function qs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return dl(e);if(e.$$typeof===S)return Nt(e)}throw Error(s(438,String(e)))}function Mc(e){var t=null,r=be.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var l=be.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),r===null&&(r=ks(),be.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0)for(r=t.data[t.index]=Array(e),l=0;l<e;l++)r[l]=ye;return t.index++,r}function pa(e,t){return typeof t=="function"?t(e):t}function Fs(e){var t=ot();return Dc(t,Ve,e)}function Dc(e,t,r){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=r;var o=e.baseQueue,c=l.pending;if(c!==null){if(o!==null){var p=o.next;o.next=c.next,c.next=p}t.baseQueue=o=c,l.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var v=p=null,T=null,L=t,F=!1;do{var Y=L.lane&-536870913;if(Y!==L.lane?(Re&Y)===Y:(ma&Y)===Y){var j=L.revertLane;if(j===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),Y===si&&(F=!0);else if((ma&j)===j){L=L.next,j===si&&(F=!0);continue}else Y={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},T===null?(v=T=Y,p=c):T=T.next=Y,be.lanes|=j,Qa|=j;Y=L.action,xr&&r(c,Y),c=L.hasEagerState?L.eagerState:r(c,Y)}else j={lane:Y,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},T===null?(v=T=j,p=c):T=T.next=j,be.lanes|=Y,Qa|=Y;L=L.next}while(L!==null&&L!==t);if(T===null?p=c:T.next=v,!Jt(c,e.memoizedState)&&(pt=!0,F&&(r=oi,r!==null)))throw r;e.memoizedState=c,e.baseState=p,e.baseQueue=T,l.lastRenderedState=c}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Lc(e){var t=ot(),r=t.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=e;var l=r.dispatch,o=r.pending,c=t.memoizedState;if(o!==null){r.pending=null;var p=o=o.next;do c=e(c,p.action),p=p.next;while(p!==o);Jt(c,t.memoizedState)||(pt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),r.lastRenderedState=c}return[c,l]}function S0(e,t,r){var l=be,o=ot(),c=Me;if(c){if(r===void 0)throw Error(s(407));r=r()}else r=t();var p=!Jt((Ve||o).memoizedState,r);if(p&&(o.memoizedState=r,pt=!0),o=o.queue,jc(O0.bind(null,l,o,e),[e]),o.getSnapshot!==t||p||mt!==null&&mt.memoizedState.tag&1){if(l.flags|=2048,mi(9,{destroy:void 0},A0.bind(null,l,o,r,t),null),Ze===null)throw Error(s(349));c||(ma&127)!==0||T0(l,t,r)}return r}function T0(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=be.updateQueue,t===null?(t=ks(),be.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function A0(e,t,r,l){t.value=r,t.getSnapshot=l,x0(t)&&C0(e)}function O0(e,t,r){return r(function(){x0(t)&&C0(e)})}function x0(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Jt(e,r)}catch{return!0}}function C0(e){var t=yr(e,2);t!==null&&Kt(t,e,2)}function Bc(e){var t=Ht();if(typeof e=="function"){var r=e;if(e=r(),xr){Tt(!0);try{r()}finally{Tt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:e},t}function R0(e,t,r,l){return e.baseState=r,Dc(e,Ve,typeof l=="function"?l:pa)}function KE(e,t,r,l,o){if(Ps(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){c.listeners.push(p)}};G.T!==null?r(!0):c.isTransition=!1,l(c),r=t.pending,r===null?(c.next=t.pending=c,w0(t,c)):(c.next=r.next,t.pending=r.next=c)}}function w0(e,t){var r=t.action,l=t.payload,o=e.state;if(t.isTransition){var c=G.T,p={};G.T=p;try{var v=r(o,l),T=G.S;T!==null&&T(p,v),N0(e,t,v)}catch(L){Uc(e,t,L)}finally{c!==null&&p.types!==null&&(c.types=p.types),G.T=c}}else try{c=r(o,l),N0(e,t,c)}catch(L){Uc(e,t,L)}}function N0(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(l){M0(e,t,l)},function(l){return Uc(e,t,l)}):M0(e,t,r)}function M0(e,t,r){t.status="fulfilled",t.value=r,D0(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,w0(e,r)))}function Uc(e,t,r){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=r,D0(t),t=t.next;while(t!==l)}e.action=null}function D0(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function L0(e,t){return t}function B0(e,t){if(Me){var r=Ze.formState;if(r!==null){e:{var l=be;if(Me){if(Qe){t:{for(var o=Qe,c=En;o.nodeType!==8;){if(!c){o=null;break t}if(o=Tn(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Qe=Tn(o.nextSibling),l=o.data==="F!";break e}}Ga(l)}l=!1}l&&(t=r[0])}}return r=Ht(),r.memoizedState=r.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:L0,lastRenderedState:t},r.queue=l,r=J0.bind(null,be,l),l.dispatch=r,l=Bc(!1),c=kc.bind(null,be,!1,l.queue),l=Ht(),o={state:t,dispatch:null,action:e,pending:null},l.queue=o,r=KE.bind(null,be,o,c,r),o.dispatch=r,l.memoizedState=e,[t,r,!1]}function U0(e){var t=ot();return j0(t,Ve,e)}function j0(e,t,r){if(t=Dc(e,t,L0)[0],e=Fs(pa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=dl(t)}catch(p){throw p===ui?Ls:p}else l=t;t=ot();var o=t.queue,c=o.dispatch;return r!==t.memoizedState&&(be.flags|=2048,mi(9,{destroy:void 0},$E.bind(null,o,r),null)),[l,c,e]}function $E(e,t){e.action=t}function H0(e){var t=ot(),r=Ve;if(r!==null)return j0(t,r,e);ot(),t=t.memoizedState,r=ot();var l=r.queue.dispatch;return r.memoizedState=e,[t,l,!1]}function mi(e,t,r,l){return e={tag:e,create:r,deps:l,inst:t,next:null},t=be.updateQueue,t===null&&(t=ks(),be.updateQueue=t),r=t.lastEffect,r===null?t.lastEffect=e.next=e:(l=r.next,r.next=e,e.next=l,t.lastEffect=e),e}function I0(){return ot().memoizedState}function Vs(e,t,r,l){var o=Ht();be.flags|=e,o.memoizedState=mi(1|t,{destroy:void 0},r,l===void 0?null:l)}function Ys(e,t,r,l){var o=ot();l=l===void 0?null:l;var c=o.memoizedState.inst;Ve!==null&&l!==null&&xc(l,Ve.memoizedState.deps)?o.memoizedState=mi(t,c,r,l):(be.flags|=e,o.memoizedState=mi(1|t,c,r,l))}function z0(e,t){Vs(8390656,8,e,t)}function jc(e,t){Ys(2048,8,e,t)}function WE(e){be.flags|=4;var t=be.updateQueue;if(t===null)t=ks(),be.updateQueue=t,t.events=[e];else{var r=t.events;r===null?t.events=[e]:r.push(e)}}function G0(e){var t=ot().memoizedState;return WE({ref:t,nextImpl:e}),function(){if((He&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function k0(e,t){return Ys(4,2,e,t)}function q0(e,t){return Ys(4,4,e,t)}function F0(e,t){if(typeof t=="function"){e=e();var r=t(e);return function(){typeof r=="function"?r():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function V0(e,t,r){r=r!=null?r.concat([e]):null,Ys(4,4,F0.bind(null,t,e),r)}function Hc(){}function Y0(e,t){var r=ot();t=t===void 0?null:t;var l=r.memoizedState;return t!==null&&xc(t,l[1])?l[0]:(r.memoizedState=[e,t],e)}function P0(e,t){var r=ot();t=t===void 0?null:t;var l=r.memoizedState;if(t!==null&&xc(t,l[1]))return l[0];if(l=e(),xr){Tt(!0);try{e()}finally{Tt(!1)}}return r.memoizedState=[l,t],l}function Ic(e,t,r){return r===void 0||(ma&1073741824)!==0&&(Re&261930)===0?e.memoizedState=t:(e.memoizedState=r,e=Xp(),be.lanes|=e,Qa|=e,r)}function X0(e,t,r,l){return Jt(r,t)?r:fi.current!==null?(e=Ic(e,r,l),Jt(e,t)||(pt=!0),e):(ma&42)===0||(ma&1073741824)!==0&&(Re&261930)===0?(pt=!0,e.memoizedState=r):(e=Xp(),be.lanes|=e,Qa|=e,t)}function Z0(e,t,r,l,o){var c=$.p;$.p=c!==0&&8>c?c:8;var p=G.T,v={};G.T=v,kc(e,!1,t,r);try{var T=o(),L=G.S;if(L!==null&&L(v,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var F=XE(T,l);hl(e,t,F,ln(e))}else hl(e,t,l,ln(e))}catch(Y){hl(e,t,{then:function(){},status:"rejected",reason:Y},ln())}finally{$.p=c,p!==null&&v.types!==null&&(p.types=v.types),G.T=p}}function JE(){}function zc(e,t,r,l){if(e.tag!==5)throw Error(s(476));var o=Q0(e).queue;Z0(e,o,t,ne,r===null?JE:function(){return K0(e),r(l)})}function Q0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:ne},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function K0(e){var t=Q0(e);t.next===null&&(t=e.alternate.memoizedState),hl(e,t.next.queue,{},ln())}function Gc(){return Nt(Nl)}function $0(){return ot().memoizedState}function W0(){return ot().memoizedState}function e2(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=ln();e=Fa(r);var l=Va(t,e,r);l!==null&&(Kt(l,t,r),ol(l,t,r)),t={cache:pc()},e.payload=t;return}t=t.return}}function t2(e,t,r){var l=ln();r={lane:l,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ps(e)?ep(t,r):(r=rc(e,t,r,l),r!==null&&(Kt(r,e,l),tp(r,t,l)))}function J0(e,t,r){var l=ln();hl(e,t,r,l)}function hl(e,t,r,l){var o={lane:l,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(Ps(e))ep(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var p=t.lastRenderedState,v=c(p,r);if(o.hasEagerState=!0,o.eagerState=v,Jt(v,p))return xs(e,t,o,0),Ze===null&&Os(),!1}catch{}finally{}if(r=rc(e,t,o,l),r!==null)return Kt(r,e,l),tp(r,t,l),!0}return!1}function kc(e,t,r,l){if(l={lane:2,revertLane:_f(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ps(e)){if(t)throw Error(s(479))}else t=rc(e,r,l,2),t!==null&&Kt(t,e,2)}function Ps(e){var t=e.alternate;return e===be||t!==null&&t===be}function ep(e,t){di=zs=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function tp(e,t,r){if((r&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,r|=l,t.lanes=r,qi(e,r)}}var ml={readContext:Nt,use:qs,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt,useHostTransitionStatus:rt,useFormState:rt,useActionState:rt,useOptimistic:rt,useMemoCache:rt,useCacheRefresh:rt};ml.useEffectEvent=rt;var np={readContext:Nt,use:qs,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:Nt,useEffect:z0,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,Vs(4194308,4,F0.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Vs(4194308,4,e,t)},useInsertionEffect:function(e,t){Vs(4,2,e,t)},useMemo:function(e,t){var r=Ht();t=t===void 0?null:t;var l=e();if(xr){Tt(!0);try{e()}finally{Tt(!1)}}return r.memoizedState=[l,t],l},useReducer:function(e,t,r){var l=Ht();if(r!==void 0){var o=r(t);if(xr){Tt(!0);try{r(t)}finally{Tt(!1)}}}else o=t;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=t2.bind(null,be,e),[l.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:function(e){e=Bc(e);var t=e.queue,r=J0.bind(null,be,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:Hc,useDeferredValue:function(e,t){var r=Ht();return Ic(r,e,t)},useTransition:function(){var e=Bc(!1);return e=Z0.bind(null,be,e.queue,!0,!1),Ht().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var l=be,o=Ht();if(Me){if(r===void 0)throw Error(s(407));r=r()}else{if(r=t(),Ze===null)throw Error(s(349));(Re&127)!==0||T0(l,t,r)}o.memoizedState=r;var c={value:r,getSnapshot:t};return o.queue=c,z0(O0.bind(null,l,c,e),[e]),l.flags|=2048,mi(9,{destroy:void 0},A0.bind(null,l,c,r,t),null),r},useId:function(){var e=Ht(),t=Ze.identifierPrefix;if(Me){var r=Vn,l=Fn;r=(l&~(1<<32-ct(l)-1)).toString(32)+r,t="_"+t+"R_"+r,r=Gs++,0<r&&(t+="H"+r.toString(32)),t+="_"}else r=ZE++,t="_"+t+"r_"+r.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Gc,useFormState:B0,useActionState:B0,useOptimistic:function(e){var t=Ht();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=kc.bind(null,be,!0,r),r.dispatch=t,[e,t]},useMemoCache:Mc,useCacheRefresh:function(){return Ht().memoizedState=e2.bind(null,be)},useEffectEvent:function(e){var t=Ht(),r={impl:e};return t.memoizedState=r,function(){if((He&2)!==0)throw Error(s(440));return r.impl.apply(void 0,arguments)}}},qc={readContext:Nt,use:qs,useCallback:Y0,useContext:Nt,useEffect:jc,useImperativeHandle:V0,useInsertionEffect:k0,useLayoutEffect:q0,useMemo:P0,useReducer:Fs,useRef:I0,useState:function(){return Fs(pa)},useDebugValue:Hc,useDeferredValue:function(e,t){var r=ot();return X0(r,Ve.memoizedState,e,t)},useTransition:function(){var e=Fs(pa)[0],t=ot().memoizedState;return[typeof e=="boolean"?e:dl(e),t]},useSyncExternalStore:S0,useId:$0,useHostTransitionStatus:Gc,useFormState:U0,useActionState:U0,useOptimistic:function(e,t){var r=ot();return R0(r,Ve,e,t)},useMemoCache:Mc,useCacheRefresh:W0};qc.useEffectEvent=G0;var ap={readContext:Nt,use:qs,useCallback:Y0,useContext:Nt,useEffect:jc,useImperativeHandle:V0,useInsertionEffect:k0,useLayoutEffect:q0,useMemo:P0,useReducer:Lc,useRef:I0,useState:function(){return Lc(pa)},useDebugValue:Hc,useDeferredValue:function(e,t){var r=ot();return Ve===null?Ic(r,e,t):X0(r,Ve.memoizedState,e,t)},useTransition:function(){var e=Lc(pa)[0],t=ot().memoizedState;return[typeof e=="boolean"?e:dl(e),t]},useSyncExternalStore:S0,useId:$0,useHostTransitionStatus:Gc,useFormState:H0,useActionState:H0,useOptimistic:function(e,t){var r=ot();return Ve!==null?R0(r,Ve,e,t):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:Mc,useCacheRefresh:W0};ap.useEffectEvent=G0;function Fc(e,t,r,l){t=e.memoizedState,r=r(l,t),r=r==null?t:_({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Vc={enqueueSetState:function(e,t,r){e=e._reactInternals;var l=ln(),o=Fa(l);o.payload=t,r!=null&&(o.callback=r),t=Va(e,o,l),t!==null&&(Kt(t,e,l),ol(t,e,l))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var l=ln(),o=Fa(l);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=Va(e,o,l),t!==null&&(Kt(t,e,l),ol(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=ln(),l=Fa(r);l.tag=2,t!=null&&(l.callback=t),t=Va(e,l,r),t!==null&&(Kt(t,e,r),ol(t,e,r))}};function rp(e,t,r,l,o,c,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,p):t.prototype&&t.prototype.isPureReactComponent?!el(r,l)||!el(o,c):!0}function ip(e,t,r,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,l),t.state!==e&&Vc.enqueueReplaceState(t,t.state,null)}function Cr(e,t){var r=t;if("ref"in t){r={};for(var l in t)l!=="ref"&&(r[l]=t[l])}if(e=e.defaultProps){r===t&&(r=_({},r));for(var o in e)r[o]===void 0&&(r[o]=e[o])}return r}function lp(e){As(e)}function sp(e){console.error(e)}function op(e){As(e)}function Xs(e,t){try{var r=e.onUncaughtError;r(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function up(e,t,r){try{var l=e.onCaughtError;l(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Yc(e,t,r){return r=Fa(r),r.tag=3,r.payload={element:null},r.callback=function(){Xs(e,t)},r}function cp(e){return e=Fa(e),e.tag=3,e}function fp(e,t,r,l){var o=r.type.getDerivedStateFromError;if(typeof o=="function"){var c=l.value;e.payload=function(){return o(c)},e.callback=function(){up(t,r,l)}}var p=r.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){up(t,r,l),typeof o!="function"&&(Ka===null?Ka=new Set([this]):Ka.add(this));var v=l.stack;this.componentDidCatch(l.value,{componentStack:v!==null?v:""})})}function n2(e,t,r,l,o){if(r.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=r.alternate,t!==null&&li(t,r,o,!0),r=tn.current,r!==null){switch(r.tag){case 31:case 13:return Sn===null?io():r.alternate===null&&it===0&&(it=3),r.flags&=-257,r.flags|=65536,r.lanes=o,l===Bs?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([l]):t.add(l),yf(e,l,o)),!1;case 22:return r.flags|=65536,l===Bs?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([l]):r.add(l)),yf(e,l,o)),!1}throw Error(s(435,r.tag))}return yf(e,l,o),io(),!1}if(Me)return t=tn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,l!==cc&&(e=Error(s(422),{cause:l}),al(bn(e,r)))):(l!==cc&&(t=Error(s(423),{cause:l}),al(bn(t,r))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=bn(l,r),o=Yc(e.stateNode,l,o),Ec(e,o),it!==4&&(it=2)),!1;var c=Error(s(520),{cause:l});if(c=bn(c,r),Sl===null?Sl=[c]:Sl.push(c),it!==4&&(it=2),t===null)return!0;l=bn(l,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=o&-o,r.lanes|=e,e=Yc(r.stateNode,l,e),Ec(r,e),!1;case 1:if(t=r.type,c=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Ka===null||!Ka.has(c))))return r.flags|=65536,o&=-o,r.lanes|=o,o=cp(o),fp(o,e,r,l),Ec(r,o),!1}r=r.return}while(r!==null);return!1}var Pc=Error(s(461)),pt=!1;function Mt(e,t,r,l){t.child=e===null?p0(t,null,r,l):Or(t,e.child,r,l)}function dp(e,t,r,l,o){r=r.render;var c=t.ref;if("ref"in l){var p={};for(var v in l)v!=="ref"&&(p[v]=l[v])}else p=l;return Er(t),l=Cc(e,t,r,p,c,o),v=Rc(),e!==null&&!pt?(wc(e,t,o),ga(e,t,o)):(Me&&v&&oc(t),t.flags|=1,Mt(e,t,l,o),t.child)}function hp(e,t,r,l,o){if(e===null){var c=r.type;return typeof c=="function"&&!ic(c)&&c.defaultProps===void 0&&r.compare===null?(t.tag=15,t.type=c,mp(e,t,c,l,o)):(e=Rs(r.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!ef(e,o)){var p=c.memoizedProps;if(r=r.compare,r=r!==null?r:el,r(p,l)&&e.ref===t.ref)return ga(e,t,o)}return t.flags|=1,e=ca(c,l),e.ref=t.ref,e.return=t,t.child=e}function mp(e,t,r,l,o){if(e!==null){var c=e.memoizedProps;if(el(c,l)&&e.ref===t.ref)if(pt=!1,t.pendingProps=l=c,ef(e,o))(e.flags&131072)!==0&&(pt=!0);else return t.lanes=e.lanes,ga(e,t,o)}return Xc(e,t,r,l,o)}function pp(e,t,r,l){var o=l.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|r:r,e!==null){for(l=t.child=e.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~c}else l=0,t.child=null;return gp(e,t,c,r,l)}if((r&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ds(t,c!==null?c.cachePool:null),c!==null?b0(t,c):Tc(),v0(t);else return l=t.lanes=536870912,gp(e,t,c!==null?c.baseLanes|r:r,r,l)}else c!==null?(Ds(t,c.cachePool),b0(t,c),Pa(),t.memoizedState=null):(e!==null&&Ds(t,null),Tc(),Pa());return Mt(e,t,o,r),t.child}function pl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function gp(e,t,r,l,o){var c=yc();return c=c===null?null:{parent:ht._currentValue,pool:c},t.memoizedState={baseLanes:r,cachePool:c},e!==null&&Ds(t,null),Tc(),v0(t),e!==null&&li(e,t,l,!0),t.childLanes=o,null}function Zs(e,t){return t=Ks({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function yp(e,t,r){return Or(t,e.child,null,r),e=Zs(t,t.pendingProps),e.flags|=2,nn(t),t.memoizedState=null,e}function a2(e,t,r){var l=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Me){if(l.mode==="hidden")return e=Zs(t,l),t.lanes=536870912,pl(null,e);if(Oc(t),(e=Qe)?(e=wg(e,En),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ia!==null?{id:Fn,overflow:Vn}:null,retryLane:536870912,hydrationErrors:null},r=e0(e),r.return=t,t.child=r,wt=t,Qe=null)):e=null,e===null)throw Ga(t);return t.lanes=536870912,null}return Zs(t,l)}var c=e.memoizedState;if(c!==null){var p=c.dehydrated;if(Oc(t),o)if(t.flags&256)t.flags&=-257,t=yp(e,t,r);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(pt||li(e,t,r,!1),o=(r&e.childLanes)!==0,pt||o){if(l=Ze,l!==null&&(p=cs(l,r),p!==0&&p!==c.retryLane))throw c.retryLane=p,yr(e,p),Kt(l,e,p),Pc;io(),t=yp(e,t,r)}else e=c.treeContext,Qe=Tn(p.nextSibling),wt=t,Me=!0,za=null,En=!1,e!==null&&a0(t,e),t=Zs(t,l),t.flags|=4096;return t}return e=ca(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Qs(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(s(284));(e===null||e.ref!==r)&&(t.flags|=4194816)}}function Xc(e,t,r,l,o){return Er(t),r=Cc(e,t,r,l,void 0,o),l=Rc(),e!==null&&!pt?(wc(e,t,o),ga(e,t,o)):(Me&&l&&oc(t),t.flags|=1,Mt(e,t,r,o),t.child)}function bp(e,t,r,l,o,c){return Er(t),t.updateQueue=null,r=E0(t,l,r,o),_0(e),l=Rc(),e!==null&&!pt?(wc(e,t,c),ga(e,t,c)):(Me&&l&&oc(t),t.flags|=1,Mt(e,t,r,c),t.child)}function vp(e,t,r,l,o){if(Er(t),t.stateNode===null){var c=ni,p=r.contextType;typeof p=="object"&&p!==null&&(c=Nt(p)),c=new r(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Vc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},vc(t),p=r.contextType,c.context=typeof p=="object"&&p!==null?Nt(p):ni,c.state=t.memoizedState,p=r.getDerivedStateFromProps,typeof p=="function"&&(Fc(t,r,p,l),c.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(p=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),p!==c.state&&Vc.enqueueReplaceState(c,c.state,null),cl(t,l,c,o),ul(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){c=t.stateNode;var v=t.memoizedProps,T=Cr(r,v);c.props=T;var L=c.context,F=r.contextType;p=ni,typeof F=="object"&&F!==null&&(p=Nt(F));var Y=r.getDerivedStateFromProps;F=typeof Y=="function"||typeof c.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,F||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v||L!==p)&&ip(t,c,l,p),qa=!1;var j=t.memoizedState;c.state=j,cl(t,l,c,o),ul(),L=t.memoizedState,v||j!==L||qa?(typeof Y=="function"&&(Fc(t,r,Y,l),L=t.memoizedState),(T=qa||rp(t,r,T,l,j,L,p))?(F||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"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=L),c.props=l,c.state=L,c.context=p,l=T):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,_c(e,t),p=t.memoizedProps,F=Cr(r,p),c.props=F,Y=t.pendingProps,j=c.context,L=r.contextType,T=ni,typeof L=="object"&&L!==null&&(T=Nt(L)),v=r.getDerivedStateFromProps,(L=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p!==Y||j!==T)&&ip(t,c,l,T),qa=!1,j=t.memoizedState,c.state=j,cl(t,l,c,o),ul();var z=t.memoizedState;p!==Y||j!==z||qa||e!==null&&e.dependencies!==null&&Ns(e.dependencies)?(typeof v=="function"&&(Fc(t,r,v,l),z=t.memoizedState),(F=qa||rp(t,r,F,l,j,z,T)||e!==null&&e.dependencies!==null&&Ns(e.dependencies))?(L||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,z,T),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,z,T)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=z),c.props=l,c.state=z,c.context=T,l=F):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),l=!1)}return c=l,Qs(e,t),l=(t.flags&128)!==0,c||l?(c=t.stateNode,r=l&&typeof r.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&l?(t.child=Or(t,e.child,null,o),t.child=Or(t,null,r,o)):Mt(e,t,r,o),t.memoizedState=c.state,e=t.child):e=ga(e,t,o),e}function _p(e,t,r,l){return vr(),t.flags|=256,Mt(e,t,r,l),t.child}var Zc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Qc(e){return{baseLanes:e,cachePool:u0()}}function Kc(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=rn),e}function Ep(e,t,r){var l=t.pendingProps,o=!1,c=(t.flags&128)!==0,p;if((p=c)||(p=e!==null&&e.memoizedState===null?!1:(st.current&2)!==0),p&&(o=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Me){if(o?Ya(t):Pa(),(e=Qe)?(e=wg(e,En),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ia!==null?{id:Fn,overflow:Vn}:null,retryLane:536870912,hydrationErrors:null},r=e0(e),r.return=t,t.child=r,wt=t,Qe=null)):e=null,e===null)throw Ga(t);return Lf(e)?t.lanes=32:t.lanes=536870912,null}var v=l.children;return l=l.fallback,o?(Pa(),o=t.mode,v=Ks({mode:"hidden",children:v},o),l=br(l,o,r,null),v.return=t,l.return=t,v.sibling=l,t.child=v,l=t.child,l.memoizedState=Qc(r),l.childLanes=Kc(e,p,r),t.memoizedState=Zc,pl(null,l)):(Ya(t),$c(t,v))}var T=e.memoizedState;if(T!==null&&(v=T.dehydrated,v!==null)){if(c)t.flags&256?(Ya(t),t.flags&=-257,t=Wc(e,t,r)):t.memoizedState!==null?(Pa(),t.child=e.child,t.flags|=128,t=null):(Pa(),v=l.fallback,o=t.mode,l=Ks({mode:"visible",children:l.children},o),v=br(v,o,r,null),v.flags|=2,l.return=t,v.return=t,l.sibling=v,t.child=l,Or(t,e.child,null,r),l=t.child,l.memoizedState=Qc(r),l.childLanes=Kc(e,p,r),t.memoizedState=Zc,t=pl(null,l));else if(Ya(t),Lf(v)){if(p=v.nextSibling&&v.nextSibling.dataset,p)var L=p.dgst;p=L,l=Error(s(419)),l.stack="",l.digest=p,al({value:l,source:null,stack:null}),t=Wc(e,t,r)}else if(pt||li(e,t,r,!1),p=(r&e.childLanes)!==0,pt||p){if(p=Ze,p!==null&&(l=cs(p,r),l!==0&&l!==T.retryLane))throw T.retryLane=l,yr(e,l),Kt(p,e,l),Pc;Df(v)||io(),t=Wc(e,t,r)}else Df(v)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,Qe=Tn(v.nextSibling),wt=t,Me=!0,za=null,En=!1,e!==null&&a0(t,e),t=$c(t,l.children),t.flags|=4096);return t}return o?(Pa(),v=l.fallback,o=t.mode,T=e.child,L=T.sibling,l=ca(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,L!==null?v=ca(L,v):(v=br(v,o,r,null),v.flags|=2),v.return=t,l.return=t,l.sibling=v,t.child=l,pl(null,l),l=t.child,v=e.child.memoizedState,v===null?v=Qc(r):(o=v.cachePool,o!==null?(T=ht._currentValue,o=o.parent!==T?{parent:T,pool:T}:o):o=u0(),v={baseLanes:v.baseLanes|r,cachePool:o}),l.memoizedState=v,l.childLanes=Kc(e,p,r),t.memoizedState=Zc,pl(e.child,l)):(Ya(t),r=e.child,e=r.sibling,r=ca(r,{mode:"visible",children:l.children}),r.return=t,r.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=r,t.memoizedState=null,r)}function $c(e,t){return t=Ks({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ks(e,t){return e=en(22,e,null,t),e.lanes=0,e}function Wc(e,t,r){return Or(t,e.child,null,r),e=$c(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Sp(e,t,r){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),hc(e.return,t,r)}function Jc(e,t,r,l,o,c){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:r,tailMode:o,treeForkCount:c}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=l,p.tail=r,p.tailMode=o,p.treeForkCount=c)}function Tp(e,t,r){var l=t.pendingProps,o=l.revealOrder,c=l.tail;l=l.children;var p=st.current,v=(p&2)!==0;if(v?(p=p&1|2,t.flags|=128):p&=1,P(st,p),Mt(e,t,l,r),l=Me?nl:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Sp(e,r,t);else if(e.tag===19)Sp(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&Is(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),Jc(t,!1,o,r,c,l);break;case"backwards":case"unstable_legacy-backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Is(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}Jc(t,!0,r,null,c,l);break;case"together":Jc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function ga(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Qa|=t.lanes,(r&t.childLanes)===0)if(e!==null){if(li(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,r=ca(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=ca(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function ef(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ns(e)))}function r2(e,t,r){switch(t.tag){case 3:We(t,t.stateNode.containerInfo),ka(t,ht,e.memoizedState.cache),vr();break;case 27:case 5:$t(t);break;case 4:We(t,t.stateNode.containerInfo);break;case 10:ka(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Oc(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Ya(t),t.flags|=128,null):(r&t.child.childLanes)!==0?Ep(e,t,r):(Ya(t),e=ga(e,t,r),e!==null?e.sibling:null);Ya(t);break;case 19:var o=(e.flags&128)!==0;if(l=(r&t.childLanes)!==0,l||(li(e,t,r,!1),l=(r&t.childLanes)!==0),o){if(l)return Tp(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),P(st,st.current),l)break;return null;case 22:return t.lanes=0,pp(e,t,r,t.pendingProps);case 24:ka(t,ht,e.memoizedState.cache)}return ga(e,t,r)}function Ap(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps)pt=!0;else{if(!ef(e,r)&&(t.flags&128)===0)return pt=!1,r2(e,t,r);pt=(e.flags&131072)!==0}else pt=!1,Me&&(t.flags&1048576)!==0&&n0(t,nl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Tr(t.elementType),t.type=e,typeof e=="function")ic(e)?(l=Cr(e,l),t.tag=1,t=vp(null,t,e,l,r)):(t.tag=0,t=Xc(null,t,e,l,r));else{if(e!=null){var o=e.$$typeof;if(o===H){t.tag=11,t=dp(null,t,e,l,r);break e}else if(o===X){t.tag=14,t=hp(null,t,e,l,r);break e}}throw t=Xe(e)||e,Error(s(306,t,""))}}return t;case 0:return Xc(e,t,t.type,t.pendingProps,r);case 1:return l=t.type,o=Cr(l,t.pendingProps),vp(e,t,l,o,r);case 3:e:{if(We(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var c=t.memoizedState;o=c.element,_c(e,t),cl(t,l,null,r);var p=t.memoizedState;if(l=p.cache,ka(t,ht,l),l!==c.cache&&mc(t,[ht],r,!0),ul(),l=p.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=_p(e,t,l,r);break e}else if(l!==o){o=bn(Error(s(424)),t),al(o),t=_p(e,t,l,r);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Qe=Tn(e.firstChild),wt=t,Me=!0,za=null,En=!0,r=p0(t,null,l,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(vr(),l===o){t=ga(e,t,r);break e}Mt(e,t,l,r)}t=t.child}return t;case 26:return Qs(e,t),e===null?(r=Ug(t.type,null,t.pendingProps,null))?t.memoizedState=r:Me||(r=t.type,e=t.pendingProps,l=ho(fe.current).createElement(r),l[dt]=t,l[Je]=e,Dt(l,r,e),Ee(l),t.stateNode=l):t.memoizedState=Ug(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return $t(t),e===null&&Me&&(l=t.stateNode=Dg(t.type,t.pendingProps,fe.current),wt=t,En=!0,o=Qe,er(t.type)?(Bf=o,Qe=Tn(l.firstChild)):Qe=o),Mt(e,t,t.pendingProps.children,r),Qs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Me&&((o=l=Qe)&&(l=B2(l,t.type,t.pendingProps,En),l!==null?(t.stateNode=l,wt=t,Qe=Tn(l.firstChild),En=!1,o=!0):o=!1),o||Ga(t)),$t(t),o=t.type,c=t.pendingProps,p=e!==null?e.memoizedProps:null,l=c.children,wf(o,c)?l=null:p!==null&&wf(o,p)&&(t.flags|=32),t.memoizedState!==null&&(o=Cc(e,t,QE,null,null,r),Nl._currentValue=o),Qs(e,t),Mt(e,t,l,r),t.child;case 6:return e===null&&Me&&((e=r=Qe)&&(r=U2(r,t.pendingProps,En),r!==null?(t.stateNode=r,wt=t,Qe=null,e=!0):e=!1),e||Ga(t)),null;case 13:return Ep(e,t,r);case 4:return We(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Or(t,null,l,r):Mt(e,t,l,r),t.child;case 11:return dp(e,t,t.type,t.pendingProps,r);case 7:return Mt(e,t,t.pendingProps,r),t.child;case 8:return Mt(e,t,t.pendingProps.children,r),t.child;case 12:return Mt(e,t,t.pendingProps.children,r),t.child;case 10:return l=t.pendingProps,ka(t,t.type,l.value),Mt(e,t,l.children,r),t.child;case 9:return o=t.type._context,l=t.pendingProps.children,Er(t),o=Nt(o),l=l(o),t.flags|=1,Mt(e,t,l,r),t.child;case 14:return hp(e,t,t.type,t.pendingProps,r);case 15:return mp(e,t,t.type,t.pendingProps,r);case 19:return Tp(e,t,r);case 31:return a2(e,t,r);case 22:return pp(e,t,r,t.pendingProps);case 24:return Er(t),l=Nt(ht),e===null?(o=yc(),o===null&&(o=Ze,c=pc(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=r),o=c),t.memoizedState={parent:l,cache:o},vc(t),ka(t,ht,o)):((e.lanes&r)!==0&&(_c(e,t),cl(t,null,null,r),ul()),o=e.memoizedState,c=t.memoizedState,o.parent!==l?(o={parent:l,cache:l},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),ka(t,ht,l)):(l=c.cache,ka(t,ht,l),l!==o.cache&&mc(t,[ht],r,!0))),Mt(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function ya(e){e.flags|=4}function tf(e,t,r,l,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if($p())e.flags|=8192;else throw Ar=Bs,bc}else e.flags&=-16777217}function Op(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Gg(t))if($p())e.flags|=8192;else throw Ar=Bs,bc}function $s(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ia():536870912,e.lanes|=t,bi|=t)}function gl(e,t){if(!Me)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,l=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=r,t}function i2(e,t,r){var l=t.pendingProps;switch(uc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(t),null;case 1:return Ke(t),null;case 3:return r=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ha(ht),Ge(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ii(t)?ya(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,fc())),Ke(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(ya(t),c!==null?(Ke(t),Op(t,c)):(Ke(t),tf(t,o,null,l,r))):c?c!==e.memoizedState?(ya(t),Ke(t),Op(t,c)):(Ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&ya(t),Ke(t),tf(t,o,e,l,r)),null;case 27:if(La(t),r=fe.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ya(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Ke(t),null}e=W.current,ii(t)?r0(t):(e=Dg(o,l,r),t.stateNode=e,ya(t))}return Ke(t),null;case 5:if(La(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ya(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Ke(t),null}if(c=W.current,ii(t))r0(t);else{var p=ho(fe.current);switch(c){case 1:c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=p.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?p.createElement("select",{is:l.is}):p.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?p.createElement(o,{is:l.is}):p.createElement(o)}}c[dt]=t,c[Je]=l;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)c.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=c;e:switch(Dt(c,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ya(t)}}return Ke(t),tf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,r),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ya(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=fe.current,ii(t)){if(e=t.stateNode,r=t.memoizedProps,l=null,o=wt,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[dt]=t,e=!!(e.nodeValue===r||l!==null&&l.suppressHydrationWarning===!0||Eg(e.nodeValue,r)),e||Ga(t,!0)}else e=ho(e).createTextNode(l),e[dt]=t,t.stateNode=e}return Ke(t),null;case 31:if(r=t.memoizedState,e===null||e.memoizedState!==null){if(l=ii(t),r!==null){if(e===null){if(!l)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[dt]=t}else vr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ke(t),e=!1}else r=fc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return t.flags&256?(nn(t),t):(nn(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Ke(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=ii(t),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[dt]=t}else vr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ke(t),o=!1}else o=fc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(nn(t),t):(nn(t),null)}return nn(t),(t.flags&128)!==0?(t.lanes=r,t):(r=l!==null,e=e!==null&&e.memoizedState!==null,r&&(l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==o&&(l.flags|=2048)),r!==e&&r&&(t.child.flags|=8192),$s(t,t.updateQueue),Ke(t),null);case 4:return Ge(),e===null&&Af(t.stateNode.containerInfo),Ke(t),null;case 10:return ha(t.type),Ke(t),null;case 19:if(q(st),l=t.memoizedState,l===null)return Ke(t),null;if(o=(t.flags&128)!==0,c=l.rendering,c===null)if(o)gl(l,!1);else{if(it!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Is(e),c!==null){for(t.flags|=128,gl(l,!1),e=c.updateQueue,t.updateQueue=e,$s(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)Jm(r,e),r=r.sibling;return P(st,st.current&1|2),Me&&fa(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Ct()>no&&(t.flags|=128,o=!0,gl(l,!1),t.lanes=4194304)}else{if(!o)if(e=Is(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,$s(t,e),gl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!Me)return Ke(t),null}else 2*Ct()-l.renderingStartTime>no&&r!==536870912&&(t.flags|=128,o=!0,gl(l,!1),t.lanes=4194304);l.isBackwards?(c.sibling=t.child,t.child=c):(e=l.last,e!==null?e.sibling=c:t.child=c,l.last=c)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Ct(),e.sibling=null,r=st.current,P(st,o?r&1|2:r&1),Me&&fa(t,l.treeForkCount),e):(Ke(t),null);case 22:case 23:return nn(t),Ac(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(r&536870912)!==0&&(t.flags&128)===0&&(Ke(t),t.subtreeFlags&6&&(t.flags|=8192)):Ke(t),r=t.updateQueue,r!==null&&$s(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==r&&(t.flags|=2048),e!==null&&q(Sr),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ha(ht),Ke(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function l2(e,t){switch(uc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ha(ht),Ge(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return La(t),null;case 31:if(t.memoizedState!==null){if(nn(t),t.alternate===null)throw Error(s(340));vr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(nn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));vr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(st),null;case 4:return Ge(),null;case 10:return ha(t.type),null;case 22:case 23:return nn(t),Ac(),e!==null&&q(Sr),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ha(ht),null;case 25:return null;default:return null}}function xp(e,t){switch(uc(t),t.tag){case 3:ha(ht),Ge();break;case 26:case 27:case 5:La(t);break;case 4:Ge();break;case 31:t.memoizedState!==null&&nn(t);break;case 13:nn(t);break;case 19:q(st);break;case 10:ha(t.type);break;case 22:case 23:nn(t),Ac(),e!==null&&q(Sr);break;case 24:ha(ht)}}function yl(e,t){try{var r=t.updateQueue,l=r!==null?r.lastEffect:null;if(l!==null){var o=l.next;r=o;do{if((r.tag&e)===e){l=void 0;var c=r.create,p=r.inst;l=c(),p.destroy=l}r=r.next}while(r!==o)}}catch(v){qe(t,t.return,v)}}function Xa(e,t,r){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var c=o.next;l=c;do{if((l.tag&e)===e){var p=l.inst,v=p.destroy;if(v!==void 0){p.destroy=void 0,o=t;var T=r,L=v;try{L()}catch(F){qe(o,T,F)}}}l=l.next}while(l!==c)}}catch(F){qe(t,t.return,F)}}function Cp(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;try{y0(t,r)}catch(l){qe(e,e.return,l)}}}function Rp(e,t,r){r.props=Cr(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(l){qe(e,t,l)}}function bl(e,t){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof r=="function"?e.refCleanup=r(l):r.current=l}}catch(o){qe(e,t,o)}}function Yn(e,t){var r=e.ref,l=e.refCleanup;if(r!==null)if(typeof l=="function")try{l()}catch(o){qe(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(o){qe(e,t,o)}else r.current=null}function wp(e){var t=e.type,r=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&l.focus();break e;case"img":r.src?l.src=r.src:r.srcSet&&(l.srcset=r.srcSet)}}catch(o){qe(e,e.return,o)}}function nf(e,t,r){try{var l=e.stateNode;R2(l,e.type,r,t),l[Je]=t}catch(o){qe(e,e.return,o)}}function Np(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&er(e.type)||e.tag===4}function af(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Np(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&&er(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 rf(e,t,r){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,t):(t=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,t.appendChild(e),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=oa));else if(l!==4&&(l===27&&er(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for(rf(e,t,r),e=e.sibling;e!==null;)rf(e,t,r),e=e.sibling}function Ws(e,t,r){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(l!==4&&(l===27&&er(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(Ws(e,t,r),e=e.sibling;e!==null;)Ws(e,t,r),e=e.sibling}function Mp(e){var t=e.stateNode,r=e.memoizedProps;try{for(var l=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);Dt(t,l,r),t[dt]=e,t[Je]=r}catch(c){qe(e,e.return,c)}}var ba=!1,gt=!1,lf=!1,Dp=typeof WeakSet=="function"?WeakSet:Set,At=null;function s2(e,t){if(e=e.containerInfo,Cf=_o,e=Vm(e),Wu(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var l=r.getSelection&&r.getSelection();if(l&&l.rangeCount!==0){r=l.anchorNode;var o=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{r.nodeType,c.nodeType}catch{r=null;break e}var p=0,v=-1,T=-1,L=0,F=0,Y=e,j=null;t:for(;;){for(var z;Y!==r||o!==0&&Y.nodeType!==3||(v=p+o),Y!==c||l!==0&&Y.nodeType!==3||(T=p+l),Y.nodeType===3&&(p+=Y.nodeValue.length),(z=Y.firstChild)!==null;)j=Y,Y=z;for(;;){if(Y===e)break t;if(j===r&&++L===o&&(v=p),j===c&&++F===l&&(T=p),(z=Y.nextSibling)!==null)break;Y=j,j=Y.parentNode}Y=z}r=v===-1||T===-1?null:{start:v,end:T}}else r=null}r=r||{start:0,end:0}}else r=null;for(Rf={focusedElem:e,selectionRange:r},_o=!1,At=t;At!==null;)if(t=At,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,At=e;else for(;At!==null;){switch(t=At,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(r=0;r<e.length;r++)o=e[r],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,r=t,o=c.memoizedProps,c=c.memoizedState,l=r.stateNode;try{var ae=Cr(r.type,o);e=l.getSnapshotBeforeUpdate(ae,c),l.__reactInternalSnapshotBeforeUpdate=e}catch(ue){qe(r,r.return,ue)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,r=e.nodeType,r===9)Mf(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Mf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,At=e;break}At=t.return}}function Lp(e,t,r){var l=r.flags;switch(r.tag){case 0:case 11:case 15:_a(e,r),l&4&&yl(5,r);break;case 1:if(_a(e,r),l&4)if(e=r.stateNode,t===null)try{e.componentDidMount()}catch(p){qe(r,r.return,p)}else{var o=Cr(r.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){qe(r,r.return,p)}}l&64&&Cp(r),l&512&&bl(r,r.return);break;case 3:if(_a(e,r),l&64&&(e=r.updateQueue,e!==null)){if(t=null,r.child!==null)switch(r.child.tag){case 27:case 5:t=r.child.stateNode;break;case 1:t=r.child.stateNode}try{y0(e,t)}catch(p){qe(r,r.return,p)}}break;case 27:t===null&&l&4&&Mp(r);case 26:case 5:_a(e,r),t===null&&l&4&&wp(r),l&512&&bl(r,r.return);break;case 12:_a(e,r);break;case 31:_a(e,r),l&4&&jp(e,r);break;case 13:_a(e,r),l&4&&Hp(e,r),l&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=g2.bind(null,r),j2(e,r))));break;case 22:if(l=r.memoizedState!==null||ba,!l){t=t!==null&&t.memoizedState!==null||gt,o=ba;var c=gt;ba=l,(gt=t)&&!c?Ea(e,r,(r.subtreeFlags&8772)!==0):_a(e,r),ba=o,gt=c}break;case 30:break;default:_a(e,r)}}function Bp(e){var t=e.alternate;t!==null&&(e.alternate=null,Bp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&R(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var et=null,Pt=!1;function va(e,t,r){for(r=r.child;r!==null;)Up(e,t,r),r=r.sibling}function Up(e,t,r){if(St&&typeof St.onCommitFiberUnmount=="function")try{St.onCommitFiberUnmount(kn,r)}catch{}switch(r.tag){case 26:gt||Yn(r,t),va(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:gt||Yn(r,t);var l=et,o=Pt;er(r.type)&&(et=r.stateNode,Pt=!1),va(e,t,r),Cl(r.stateNode),et=l,Pt=o;break;case 5:gt||Yn(r,t);case 6:if(l=et,o=Pt,et=null,va(e,t,r),et=l,Pt=o,et!==null)if(Pt)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(r.stateNode)}catch(c){qe(r,t,c)}else try{et.removeChild(r.stateNode)}catch(c){qe(r,t,c)}break;case 18:et!==null&&(Pt?(e=et,Cg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),xi(e)):Cg(et,r.stateNode));break;case 4:l=et,o=Pt,et=r.stateNode.containerInfo,Pt=!0,va(e,t,r),et=l,Pt=o;break;case 0:case 11:case 14:case 15:Xa(2,r,t),gt||Xa(4,r,t),va(e,t,r);break;case 1:gt||(Yn(r,t),l=r.stateNode,typeof l.componentWillUnmount=="function"&&Rp(r,t,l)),va(e,t,r);break;case 21:va(e,t,r);break;case 22:gt=(l=gt)||r.memoizedState!==null,va(e,t,r),gt=l;break;default:va(e,t,r)}}function jp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{xi(e)}catch(r){qe(t,t.return,r)}}}function Hp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{xi(e)}catch(r){qe(t,t.return,r)}}function o2(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Dp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Dp),t;default:throw Error(s(435,e.tag))}}function Js(e,t){var r=o2(e);t.forEach(function(l){if(!r.has(l)){r.add(l);var o=y2.bind(null,e,l);l.then(o,o)}})}function Xt(e,t){var r=t.deletions;if(r!==null)for(var l=0;l<r.length;l++){var o=r[l],c=e,p=t,v=p;e:for(;v!==null;){switch(v.tag){case 27:if(er(v.type)){et=v.stateNode,Pt=!1;break e}break;case 5:et=v.stateNode,Pt=!1;break e;case 3:case 4:et=v.stateNode.containerInfo,Pt=!0;break e}v=v.return}if(et===null)throw Error(s(160));Up(c,p,o),et=null,Pt=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ip(t,e),t=t.sibling}var Dn=null;function Ip(e,t){var r=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Xt(t,e),Zt(e),l&4&&(Xa(3,e,e.return),yl(3,e),Xa(5,e,e.return));break;case 1:Xt(t,e),Zt(e),l&512&&(gt||r===null||Yn(r,r.return)),l&64&&ba&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?l:r.concat(l))));break;case 26:var o=Dn;if(Xt(t,e),Zt(e),l&512&&(gt||r===null||Yn(r,r.return)),l&4){var c=r!==null?r.memoizedState:null;if(l=e.memoizedState,r===null)if(l===null)if(e.stateNode===null){e:{l=e.type,r=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":c=o.getElementsByTagName("title")[0],(!c||c[ie]||c[dt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(l),o.head.insertBefore(c,o.querySelector("head > title"))),Dt(c,l,r),c[dt]=e,Ee(c),l=c;break e;case"link":var p=Ig("link","href",o).get(l+(r.href||""));if(p){for(var v=0;v<p.length;v++)if(c=p[v],c.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&c.getAttribute("rel")===(r.rel==null?null:r.rel)&&c.getAttribute("title")===(r.title==null?null:r.title)&&c.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){p.splice(v,1);break t}}c=o.createElement(l),Dt(c,l,r),o.head.appendChild(c);break;case"meta":if(p=Ig("meta","content",o).get(l+(r.content||""))){for(v=0;v<p.length;v++)if(c=p[v],c.getAttribute("content")===(r.content==null?null:""+r.content)&&c.getAttribute("name")===(r.name==null?null:r.name)&&c.getAttribute("property")===(r.property==null?null:r.property)&&c.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&c.getAttribute("charset")===(r.charSet==null?null:r.charSet)){p.splice(v,1);break t}}c=o.createElement(l),Dt(c,l,r),o.head.appendChild(c);break;default:throw Error(s(468,l))}c[dt]=e,Ee(c),l=c}e.stateNode=l}else zg(o,e.type,e.stateNode);else e.stateNode=Hg(o,l,e.memoizedProps);else c!==l?(c===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):c.count--,l===null?zg(o,e.type,e.stateNode):Hg(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&nf(e,e.memoizedProps,r.memoizedProps)}break;case 27:Xt(t,e),Zt(e),l&512&&(gt||r===null||Yn(r,r.return)),r!==null&&l&4&&nf(e,e.memoizedProps,r.memoizedProps);break;case 5:if(Xt(t,e),Zt(e),l&512&&(gt||r===null||Yn(r,r.return)),e.flags&32){o=e.stateNode;try{Qr(o,"")}catch(ae){qe(e,e.return,ae)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,nf(e,o,r!==null?r.memoizedProps:o)),l&1024&&(lf=!0);break;case 6:if(Xt(t,e),Zt(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,r=e.stateNode;try{r.nodeValue=l}catch(ae){qe(e,e.return,ae)}}break;case 3:if(go=null,o=Dn,Dn=mo(t.containerInfo),Xt(t,e),Dn=o,Zt(e),l&4&&r!==null&&r.memoizedState.isDehydrated)try{xi(t.containerInfo)}catch(ae){qe(e,e.return,ae)}lf&&(lf=!1,zp(e));break;case 4:l=Dn,Dn=mo(e.stateNode.containerInfo),Xt(t,e),Zt(e),Dn=l;break;case 12:Xt(t,e),Zt(e);break;case 31:Xt(t,e),Zt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Js(e,l)));break;case 13:Xt(t,e),Zt(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(to=Ct()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Js(e,l)));break;case 22:o=e.memoizedState!==null;var T=r!==null&&r.memoizedState!==null,L=ba,F=gt;if(ba=L||o,gt=F||T,Xt(t,e),gt=F,ba=L,Zt(e),l&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(r===null||T||ba||gt||Rr(e)),r=null,t=e;;){if(t.tag===5||t.tag===26){if(r===null){T=r=t;try{if(c=T.stateNode,o)p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{v=T.stateNode;var Y=T.memoizedProps.style,j=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;v.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(ae){qe(T,T.return,ae)}}}else if(t.tag===6){if(r===null){T=t;try{T.stateNode.nodeValue=o?"":T.memoizedProps}catch(ae){qe(T,T.return,ae)}}}else if(t.tag===18){if(r===null){T=t;try{var z=T.stateNode;o?Rg(z,!0):Rg(T.stateNode,!1)}catch(ae){qe(T,T.return,ae)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(r=l.retryQueue,r!==null&&(l.retryQueue=null,Js(e,r))));break;case 19:Xt(t,e),Zt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Js(e,l)));break;case 30:break;case 21:break;default:Xt(t,e),Zt(e)}}function Zt(e){var t=e.flags;if(t&2){try{for(var r,l=e.return;l!==null;){if(Np(l)){r=l;break}l=l.return}if(r==null)throw Error(s(160));switch(r.tag){case 27:var o=r.stateNode,c=af(e);Ws(e,c,o);break;case 5:var p=r.stateNode;r.flags&32&&(Qr(p,""),r.flags&=-33);var v=af(e);Ws(e,v,p);break;case 3:case 4:var T=r.stateNode.containerInfo,L=af(e);rf(e,L,T);break;default:throw Error(s(161))}}catch(F){qe(e,e.return,F)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function zp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;zp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function _a(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Lp(e,t.alternate,t),t=t.sibling}function Rr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Xa(4,t,t.return),Rr(t);break;case 1:Yn(t,t.return);var r=t.stateNode;typeof r.componentWillUnmount=="function"&&Rp(t,t.return,r),Rr(t);break;case 27:Cl(t.stateNode);case 26:case 5:Yn(t,t.return),Rr(t);break;case 22:t.memoizedState===null&&Rr(t);break;case 30:Rr(t);break;default:Rr(t)}e=e.sibling}}function Ea(e,t,r){for(r=r&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,o=e,c=t,p=c.flags;switch(c.tag){case 0:case 11:case 15:Ea(o,c,r),yl(4,c);break;case 1:if(Ea(o,c,r),l=c,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(L){qe(l,l.return,L)}if(l=c,o=l.updateQueue,o!==null){var v=l.stateNode;try{var T=o.shared.hiddenCallbacks;if(T!==null)for(o.shared.hiddenCallbacks=null,o=0;o<T.length;o++)g0(T[o],v)}catch(L){qe(l,l.return,L)}}r&&p&64&&Cp(c),bl(c,c.return);break;case 27:Mp(c);case 26:case 5:Ea(o,c,r),r&&l===null&&p&4&&wp(c),bl(c,c.return);break;case 12:Ea(o,c,r);break;case 31:Ea(o,c,r),r&&p&4&&jp(o,c);break;case 13:Ea(o,c,r),r&&p&4&&Hp(o,c);break;case 22:c.memoizedState===null&&Ea(o,c,r),bl(c,c.return);break;case 30:break;default:Ea(o,c,r)}t=t.sibling}}function sf(e,t){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&rl(r))}function of(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&rl(e))}function Ln(e,t,r,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Gp(e,t,r,l),t=t.sibling}function Gp(e,t,r,l){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Ln(e,t,r,l),o&2048&&yl(9,t);break;case 1:Ln(e,t,r,l);break;case 3:Ln(e,t,r,l),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&rl(e)));break;case 12:if(o&2048){Ln(e,t,r,l),e=t.stateNode;try{var c=t.memoizedProps,p=c.id,v=c.onPostCommit;typeof v=="function"&&v(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){qe(t,t.return,T)}}else Ln(e,t,r,l);break;case 31:Ln(e,t,r,l);break;case 13:Ln(e,t,r,l);break;case 23:break;case 22:c=t.stateNode,p=t.alternate,t.memoizedState!==null?c._visibility&2?Ln(e,t,r,l):vl(e,t):c._visibility&2?Ln(e,t,r,l):(c._visibility|=2,pi(e,t,r,l,(t.subtreeFlags&10256)!==0||!1)),o&2048&&sf(p,t);break;case 24:Ln(e,t,r,l),o&2048&&of(t.alternate,t);break;default:Ln(e,t,r,l)}}function pi(e,t,r,l,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,p=t,v=r,T=l,L=p.flags;switch(p.tag){case 0:case 11:case 15:pi(c,p,v,T,o),yl(8,p);break;case 23:break;case 22:var F=p.stateNode;p.memoizedState!==null?F._visibility&2?pi(c,p,v,T,o):vl(c,p):(F._visibility|=2,pi(c,p,v,T,o)),o&&L&2048&&sf(p.alternate,p);break;case 24:pi(c,p,v,T,o),o&&L&2048&&of(p.alternate,p);break;default:pi(c,p,v,T,o)}t=t.sibling}}function vl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var r=e,l=t,o=l.flags;switch(l.tag){case 22:vl(r,l),o&2048&&sf(l.alternate,l);break;case 24:vl(r,l),o&2048&&of(l.alternate,l);break;default:vl(r,l)}t=t.sibling}}var _l=8192;function gi(e,t,r){if(e.subtreeFlags&_l)for(e=e.child;e!==null;)kp(e,t,r),e=e.sibling}function kp(e,t,r){switch(e.tag){case 26:gi(e,t,r),e.flags&_l&&e.memoizedState!==null&&Z2(r,Dn,e.memoizedState,e.memoizedProps);break;case 5:gi(e,t,r);break;case 3:case 4:var l=Dn;Dn=mo(e.stateNode.containerInfo),gi(e,t,r),Dn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=_l,_l=16777216,gi(e,t,r),_l=l):gi(e,t,r));break;default:gi(e,t,r)}}function qp(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function El(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var l=t[r];At=l,Vp(l,e)}qp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Fp(e),e=e.sibling}function Fp(e){switch(e.tag){case 0:case 11:case 15:El(e),e.flags&2048&&Xa(9,e,e.return);break;case 3:El(e);break;case 12:El(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,eo(e)):El(e);break;default:El(e)}}function eo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var l=t[r];At=l,Vp(l,e)}qp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Xa(8,t,t.return),eo(t);break;case 22:r=t.stateNode,r._visibility&2&&(r._visibility&=-3,eo(t));break;default:eo(t)}e=e.sibling}}function Vp(e,t){for(;At!==null;){var r=At;switch(r.tag){case 0:case 11:case 15:Xa(8,r,t);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var l=r.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:rl(r.memoizedState.cache)}if(l=r.child,l!==null)l.return=r,At=l;else e:for(r=e;At!==null;){l=At;var o=l.sibling,c=l.return;if(Bp(l),l===r){At=null;break e}if(o!==null){o.return=c,At=o;break e}At=c}}}var u2={getCacheForType:function(e){var t=Nt(ht),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r},cacheSignal:function(){return Nt(ht).controller.signal}},c2=typeof WeakMap=="function"?WeakMap:Map,He=0,Ze=null,Oe=null,Re=0,ke=0,an=null,Za=!1,yi=!1,uf=!1,Sa=0,it=0,Qa=0,wr=0,cf=0,rn=0,bi=0,Sl=null,Qt=null,ff=!1,to=0,Yp=0,no=1/0,ao=null,Ka=null,Et=0,$a=null,vi=null,Ta=0,df=0,hf=null,Pp=null,Tl=0,mf=null;function ln(){return(He&2)!==0&&Re!==0?Re&-Re:G.T!==null?_f():Fi()}function Xp(){if(rn===0)if((Re&536870912)===0||Me){var e=ra;ra<<=1,(ra&3932160)===0&&(ra=262144),rn=e}else rn=536870912;return e=tn.current,e!==null&&(e.flags|=32),rn}function Kt(e,t,r){(e===Ze&&(ke===2||ke===9)||e.cancelPendingCommit!==null)&&(_i(e,0),Wa(e,Re,rn,!1)),ja(e,r),((He&2)===0||e!==Ze)&&(e===Ze&&((He&2)===0&&(wr|=r),it===4&&Wa(e,Re,rn,!1)),Pn(e))}function Zp(e,t,r){if((He&6)!==0)throw Error(s(327));var l=!r&&(t&127)===0&&(t&e.expiredLanes)===0||hr(e,t),o=l?h2(e,t):gf(e,t,!0),c=l;do{if(o===0){yi&&!l&&Wa(e,t,0,!1);break}else{if(r=e.current.alternate,c&&!f2(r)){o=gf(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var v=e;o=Sl;var T=v.current.memoizedState.isDehydrated;if(T&&(_i(v,p).flags|=256),p=gf(v,p,!1),p!==2){if(uf&&!T){v.errorRecoveryDisabledLanes|=c,wr|=c,o=4;break e}c=Qt,Qt=o,c!==null&&(Qt===null?Qt=c:Qt.push.apply(Qt,c))}o=p}if(c=!1,o!==2)continue}}if(o===1){_i(e,0),Wa(e,t,0,!0);break}e:{switch(l=e,c=o,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Wa(l,t,rn,!Za);break e;case 2:Qt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=to+300-Ct(),10<o)){if(Wa(l,t,rn,!Za),Pr(l,0,!0)!==0)break e;Ta=t,l.timeoutHandle=Og(Qp.bind(null,l,r,Qt,ao,ff,t,rn,wr,bi,Za,c,"Throttled",-0,0),o);break e}Qp(l,r,Qt,ao,ff,t,rn,wr,bi,Za,c,null,-0,0)}}break}while(!0);Pn(e)}function Qp(e,t,r,l,o,c,p,v,T,L,F,Y,j,z){if(e.timeoutHandle=-1,Y=t.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:oa},kp(t,c,Y);var ae=(c&62914560)===c?to-Ct():(c&4194048)===c?Yp-Ct():0;if(ae=Q2(Y,ae),ae!==null){Ta=c,e.cancelPendingCommit=ae(ag.bind(null,e,t,c,r,l,o,p,v,T,F,Y,null,j,z)),Wa(e,c,p,!L);return}}ag(e,t,c,r,l,o,p,v,T)}function f2(e){for(var t=e;;){var r=t.tag;if((r===0||r===11||r===15)&&t.flags&16384&&(r=t.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var l=0;l<r.length;l++){var o=r[l],c=o.getSnapshot;o=o.value;try{if(!Jt(c(),o))return!1}catch{return!1}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Wa(e,t,r,l){t&=~cf,t&=~wr,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var o=t;0<o;){var c=31-ct(o),p=1<<c;l[c]=-1,o&=~p}r!==0&&ki(e,r,t)}function ro(){return(He&6)===0?(Al(0),!1):!0}function pf(){if(Oe!==null){if(ke===0)var e=Oe.return;else e=Oe,da=_r=null,Nc(e),ci=null,ll=0,e=Oe;for(;e!==null;)xp(e.alternate,e),e=e.return;Oe=null}}function _i(e,t){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,M2(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),Ta=0,pf(),Ze=e,Oe=r=ca(e.current,null),Re=t,ke=0,an=null,Za=!1,yi=hr(e,t),uf=!1,bi=rn=cf=wr=Qa=it=0,Qt=Sl=null,ff=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var o=31-ct(l),c=1<<o;t|=e[o],l&=~c}return Sa=t,Os(),r}function Kp(e,t){be=null,G.H=ml,t===ui||t===Ls?(t=d0(),ke=3):t===bc?(t=d0(),ke=4):ke=t===Pc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,an=t,Oe===null&&(it=1,Xs(e,bn(t,e.current)))}function $p(){var e=tn.current;return e===null?!0:(Re&4194048)===Re?Sn===null:(Re&62914560)===Re||(Re&536870912)!==0?e===Sn:!1}function Wp(){var e=G.H;return G.H=ml,e===null?ml:e}function Jp(){var e=G.A;return G.A=u2,e}function io(){it=4,Za||(Re&4194048)!==Re&&tn.current!==null||(yi=!0),(Qa&134217727)===0&&(wr&134217727)===0||Ze===null||Wa(Ze,Re,rn,!1)}function gf(e,t,r){var l=He;He|=2;var o=Wp(),c=Jp();(Ze!==e||Re!==t)&&(ao=null,_i(e,t)),t=!1;var p=it;e:do try{if(ke!==0&&Oe!==null){var v=Oe,T=an;switch(ke){case 8:pf(),p=6;break e;case 3:case 2:case 9:case 6:tn.current===null&&(t=!0);var L=ke;if(ke=0,an=null,Ei(e,v,T,L),r&&yi){p=0;break e}break;default:L=ke,ke=0,an=null,Ei(e,v,T,L)}}d2(),p=it;break}catch(F){Kp(e,F)}while(!0);return t&&e.shellSuspendCounter++,da=_r=null,He=l,G.H=o,G.A=c,Oe===null&&(Ze=null,Re=0,Os()),p}function d2(){for(;Oe!==null;)eg(Oe)}function h2(e,t){var r=He;He|=2;var l=Wp(),o=Jp();Ze!==e||Re!==t?(ao=null,no=Ct()+500,_i(e,t)):yi=hr(e,t);e:do try{if(ke!==0&&Oe!==null){t=Oe;var c=an;t:switch(ke){case 1:ke=0,an=null,Ei(e,t,c,1);break;case 2:case 9:if(c0(c)){ke=0,an=null,tg(t);break}t=function(){ke!==2&&ke!==9||Ze!==e||(ke=7),Pn(e)},c.then(t,t);break e;case 3:ke=7;break e;case 4:ke=5;break e;case 7:c0(c)?(ke=0,an=null,tg(t)):(ke=0,an=null,Ei(e,t,c,7));break;case 5:var p=null;switch(Oe.tag){case 26:p=Oe.memoizedState;case 5:case 27:var v=Oe;if(p?Gg(p):v.stateNode.complete){ke=0,an=null;var T=v.sibling;if(T!==null)Oe=T;else{var L=v.return;L!==null?(Oe=L,lo(L)):Oe=null}break t}}ke=0,an=null,Ei(e,t,c,5);break;case 6:ke=0,an=null,Ei(e,t,c,6);break;case 8:pf(),it=6;break e;default:throw Error(s(462))}}m2();break}catch(F){Kp(e,F)}while(!0);return da=_r=null,G.H=l,G.A=o,He=r,Oe!==null?0:(Ze=null,Re=0,Os(),it)}function m2(){for(;Oe!==null&&!ss();)eg(Oe)}function eg(e){var t=Ap(e.alternate,e,Sa);e.memoizedProps=e.pendingProps,t===null?lo(e):Oe=t}function tg(e){var t=e,r=t.alternate;switch(t.tag){case 15:case 0:t=bp(r,t,t.pendingProps,t.type,void 0,Re);break;case 11:t=bp(r,t,t.pendingProps,t.type.render,t.ref,Re);break;case 5:Nc(t);default:xp(r,t),t=Oe=Jm(t,Sa),t=Ap(r,t,Sa)}e.memoizedProps=e.pendingProps,t===null?lo(e):Oe=t}function Ei(e,t,r,l){da=_r=null,Nc(t),ci=null,ll=0;var o=t.return;try{if(n2(e,o,t,r,Re)){it=1,Xs(e,bn(r,e.current)),Oe=null;return}}catch(c){if(o!==null)throw Oe=o,c;it=1,Xs(e,bn(r,e.current)),Oe=null;return}t.flags&32768?(Me||l===1?e=!0:yi||(Re&536870912)!==0?e=!1:(Za=e=!0,(l===2||l===9||l===3||l===6)&&(l=tn.current,l!==null&&l.tag===13&&(l.flags|=16384))),ng(t,e)):lo(t)}function lo(e){var t=e;do{if((t.flags&32768)!==0){ng(t,Za);return}e=t.return;var r=i2(t.alternate,t,Sa);if(r!==null){Oe=r;return}if(t=t.sibling,t!==null){Oe=t;return}Oe=t=e}while(t!==null);it===0&&(it=5)}function ng(e,t){do{var r=l2(e.alternate,e);if(r!==null){r.flags&=32767,Oe=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&(e=e.sibling,e!==null)){Oe=e;return}Oe=e=r}while(e!==null);it=6,Oe=null}function ag(e,t,r,l,o,c,p,v,T){e.cancelPendingCommit=null;do so();while(Et!==0);if((He&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=ac,Gi(e,r,c,p,v,T),e===Ze&&(Oe=Ze=null,Re=0),vi=t,$a=e,Ta=r,df=c,hf=o,Pp=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,b2(dr,function(){return og(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=G.T,G.T=null,o=$.p,$.p=2,p=He,He|=4;try{s2(e,t,r)}finally{He=p,$.p=o,G.T=l}}Et=1,rg(),ig(),lg()}}function rg(){if(Et===1){Et=0;var e=$a,t=vi,r=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||r){r=G.T,G.T=null;var l=$.p;$.p=2;var o=He;He|=4;try{Ip(t,e);var c=Rf,p=Vm(e.containerInfo),v=c.focusedElem,T=c.selectionRange;if(p!==v&&v&&v.ownerDocument&&Fm(v.ownerDocument.documentElement,v)){if(T!==null&&Wu(v)){var L=T.start,F=T.end;if(F===void 0&&(F=L),"selectionStart"in v)v.selectionStart=L,v.selectionEnd=Math.min(F,v.value.length);else{var Y=v.ownerDocument||document,j=Y&&Y.defaultView||window;if(j.getSelection){var z=j.getSelection(),ae=v.textContent.length,ue=Math.min(T.start,ae),Pe=T.end===void 0?ue:Math.min(T.end,ae);!z.extend&&ue>Pe&&(p=Pe,Pe=ue,ue=p);var M=qm(v,ue),w=qm(v,Pe);if(M&&w&&(z.rangeCount!==1||z.anchorNode!==M.node||z.anchorOffset!==M.offset||z.focusNode!==w.node||z.focusOffset!==w.offset)){var D=Y.createRange();D.setStart(M.node,M.offset),z.removeAllRanges(),ue>Pe?(z.addRange(D),z.extend(w.node,w.offset)):(D.setEnd(w.node,w.offset),z.addRange(D))}}}}for(Y=[],z=v;z=z.parentNode;)z.nodeType===1&&Y.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<Y.length;v++){var V=Y[v];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}_o=!!Cf,Rf=Cf=null}finally{He=o,$.p=l,G.T=r}}e.current=t,Et=2}}function ig(){if(Et===2){Et=0;var e=$a,t=vi,r=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||r){r=G.T,G.T=null;var l=$.p;$.p=2;var o=He;He|=4;try{Lp(e,t.alternate,t)}finally{He=o,$.p=l,G.T=r}}Et=3}}function lg(){if(Et===4||Et===3){Et=0,Bu();var e=$a,t=vi,r=Ta,l=Pp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Et=5:(Et=0,vi=$a=null,sg(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Ka=null),Nn(r),t=t.stateNode,St&&typeof St.onCommitFiberRoot=="function")try{St.onCommitFiberRoot(kn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=G.T,o=$.p,$.p=2,G.T=null;try{for(var c=e.onRecoverableError,p=0;p<l.length;p++){var v=l[p];c(v.value,{componentStack:v.stack})}}finally{G.T=t,$.p=o}}(Ta&3)!==0&&so(),Pn(e),o=e.pendingLanes,(r&261930)!==0&&(o&42)!==0?e===mf?Tl++:(Tl=0,mf=e):Tl=0,Al(0)}}function sg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,rl(t)))}function so(){return rg(),ig(),lg(),og()}function og(){if(Et!==5)return!1;var e=$a,t=df;df=0;var r=Nn(Ta),l=G.T,o=$.p;try{$.p=32>r?32:r,G.T=null,r=hf,hf=null;var c=$a,p=Ta;if(Et=0,vi=$a=null,Ta=0,(He&6)!==0)throw Error(s(331));var v=He;if(He|=4,Fp(c.current),Gp(c,c.current,p,r),He=v,Al(0,!1),St&&typeof St.onPostCommitFiberRoot=="function")try{St.onPostCommitFiberRoot(kn,c)}catch{}return!0}finally{$.p=o,G.T=l,sg(e,t)}}function ug(e,t,r){t=bn(r,t),t=Yc(e.stateNode,t,2),e=Va(e,t,2),e!==null&&(ja(e,2),Pn(e))}function qe(e,t,r){if(e.tag===3)ug(e,e,r);else for(;t!==null;){if(t.tag===3){ug(t,e,r);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ka===null||!Ka.has(l))){e=bn(r,e),r=cp(2),l=Va(t,r,2),l!==null&&(fp(r,l,t,e),ja(l,2),Pn(l));break}}t=t.return}}function yf(e,t,r){var l=e.pingCache;if(l===null){l=e.pingCache=new c2;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(r)||(uf=!0,o.add(r),e=p2.bind(null,e,t,r),t.then(e,e))}function p2(e,t,r){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,Ze===e&&(Re&r)===r&&(it===4||it===3&&(Re&62914560)===Re&&300>Ct()-to?(He&2)===0&&_i(e,0):cf|=r,bi===Re&&(bi=0)),Pn(e)}function cg(e,t){t===0&&(t=ia()),e=yr(e,t),e!==null&&(ja(e,t),Pn(e))}function g2(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),cg(e,r)}function y2(e,t){var r=0;switch(e.tag){case 31:case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),cg(e,r)}function b2(e,t){return Ua(e,t)}var oo=null,Si=null,bf=!1,uo=!1,vf=!1,Ja=0;function Pn(e){e!==Si&&e.next===null&&(Si===null?oo=Si=e:Si=Si.next=e),uo=!0,bf||(bf=!0,_2())}function Al(e,t){if(!vf&&uo){vf=!0;do for(var r=!1,l=oo;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var c=0;else{var p=l.suspendedLanes,v=l.pingedLanes;c=(1<<31-ct(42|e)+1)-1,c&=o&~(p&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(r=!0,mg(l,c))}else c=Re,c=Pr(l,l===Ze?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||hr(l,c)||(r=!0,mg(l,c));l=l.next}while(r);vf=!1}}function v2(){fg()}function fg(){uo=bf=!1;var e=0;Ja!==0&&N2()&&(e=Ja);for(var t=Ct(),r=null,l=oo;l!==null;){var o=l.next,c=dg(l,t);c===0?(l.next=null,r===null?oo=o:r.next=o,o===null&&(Si=r)):(r=l,(e!==0||(c&3)!==0)&&(uo=!0)),l=o}Et!==0&&Et!==5||Al(e),Ja!==0&&(Ja=0)}function dg(e,t){for(var r=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var p=31-ct(c),v=1<<p,T=o[p];T===-1?((v&r)===0||(v&l)!==0)&&(o[p]=ft(v,t)):T<=t&&(e.expiredLanes|=v),c&=~v}if(t=Ze,r=Re,r=Pr(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,r===0||e===t&&(ke===2||ke===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Vr(l),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||hr(e,r)){if(t=r&-r,t===e.callbackPriority)return t;switch(l!==null&&Vr(l),Nn(r)){case 2:case 8:r=na;break;case 32:r=dr;break;case 268435456:r=Ui;break;default:r=dr}return l=hg.bind(null,e),r=Ua(r,l),e.callbackPriority=t,e.callbackNode=r,t}return l!==null&&l!==null&&Vr(l),e.callbackPriority=2,e.callbackNode=null,2}function hg(e,t){if(Et!==0&&Et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(so()&&e.callbackNode!==r)return null;var l=Re;return l=Pr(e,e===Ze?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Zp(e,l,t),dg(e,Ct()),e.callbackNode!=null&&e.callbackNode===r?hg.bind(null,e):null)}function mg(e,t){if(so())return null;Zp(e,t,!0)}function _2(){D2(function(){(He&6)!==0?Ua(ta,v2):fg()})}function _f(){if(Ja===0){var e=si;e===0&&(e=aa,aa<<=1,(aa&261888)===0&&(aa=256)),Ja=e}return Ja}function pg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ys(""+e)}function gg(e,t){var r=t.ownerDocument.createElement("input");return r.name=t.name,r.value=t.value,e.id&&r.setAttribute("form",e.id),t.parentNode.insertBefore(r,t),e=new FormData(e),r.parentNode.removeChild(r),e}function E2(e,t,r,l,o){if(t==="submit"&&r&&r.stateNode===o){var c=pg((o[Je]||null).action),p=l.submitter;p&&(t=(t=p[Je]||null)?pg(t.formAction):p.getAttribute("formAction"),t!==null&&(c=t,p=null));var v=new Es("action","action",null,l,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ja!==0){var T=p?gg(o,p):new FormData(o);zc(r,{pending:!0,data:T,method:o.method,action:c},null,T)}}else typeof c=="function"&&(v.preventDefault(),T=p?gg(o,p):new FormData(o),zc(r,{pending:!0,data:T,method:o.method,action:c},c,T))},currentTarget:o}]})}}for(var Ef=0;Ef<nc.length;Ef++){var Sf=nc[Ef],S2=Sf.toLowerCase(),T2=Sf[0].toUpperCase()+Sf.slice(1);Mn(S2,"on"+T2)}Mn(Xm,"onAnimationEnd"),Mn(Zm,"onAnimationIteration"),Mn(Qm,"onAnimationStart"),Mn("dblclick","onDoubleClick"),Mn("focusin","onFocus"),Mn("focusout","onBlur"),Mn(zE,"onTransitionRun"),Mn(GE,"onTransitionStart"),Mn(kE,"onTransitionCancel"),Mn(Km,"onTransitionEnd"),qn("onMouseEnter",["mouseout","mouseover"]),qn("onMouseLeave",["mouseout","mouseover"]),qn("onPointerEnter",["pointerout","pointerover"]),qn("onPointerLeave",["pointerout","pointerover"]),Vt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Vt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Vt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Vt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Vt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Vt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ol="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(" "),A2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ol));function yg(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var l=e[r],o=l.event;l=l.listeners;e:{var c=void 0;if(t)for(var p=l.length-1;0<=p;p--){var v=l[p],T=v.instance,L=v.currentTarget;if(v=v.listener,T!==c&&o.isPropagationStopped())break e;c=v,o.currentTarget=L;try{c(o)}catch(F){As(F)}o.currentTarget=null,c=T}else for(p=0;p<l.length;p++){if(v=l[p],T=v.instance,L=v.currentTarget,v=v.listener,T!==c&&o.isPropagationStopped())break e;c=v,o.currentTarget=L;try{c(o)}catch(F){As(F)}o.currentTarget=null,c=T}}}}function xe(e,t){var r=t[Xr];r===void 0&&(r=t[Xr]=new Set);var l=e+"__bubble";r.has(l)||(bg(t,e,2,!1),r.add(l))}function Tf(e,t,r){var l=0;t&&(l|=4),bg(r,e,l,t)}var co="_reactListening"+Math.random().toString(36).slice(2);function Af(e){if(!e[co]){e[co]=!0,Rt.forEach(function(r){r!=="selectionchange"&&(A2.has(r)||Tf(r,!1,e),Tf(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[co]||(t[co]=!0,Tf("selectionchange",!1,t))}}function bg(e,t,r,l){switch(Xg(t)){case 2:var o=W2;break;case 8:o=J2;break;default:o=zf}r=o.bind(null,t,r,e),o=void 0,!Fu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):o!==void 0?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Of(e,t,r,l,o){var c=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var p=l.tag;if(p===3||p===4){var v=l.stateNode.containerInfo;if(v===o)break;if(p===4)for(p=l.return;p!==null;){var T=p.tag;if((T===3||T===4)&&p.stateNode.containerInfo===o)return;p=p.return}for(;v!==null;){if(p=Q(v),p===null)return;if(T=p.tag,T===5||T===6||T===26||T===27){l=c=p;continue e}v=v.parentNode}}l=l.return}Tm(function(){var L=c,F=ku(r),Y=[];e:{var j=$m.get(e);if(j!==void 0){var z=Es,ae=e;switch(e){case"keypress":if(vs(r)===0)break e;case"keydown":case"keyup":z=yE;break;case"focusin":ae="focus",z=Xu;break;case"focusout":ae="blur",z=Xu;break;case"beforeblur":case"afterblur":z=Xu;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=xm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=iE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=_E;break;case Xm:case Zm:case Qm:z=oE;break;case Km:z=SE;break;case"scroll":case"scrollend":z=aE;break;case"wheel":z=AE;break;case"copy":case"cut":case"paste":z=cE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=Rm;break;case"toggle":case"beforetoggle":z=xE}var ue=(t&4)!==0,Pe=!ue&&(e==="scroll"||e==="scrollend"),M=ue?j!==null?j+"Capture":null:j;ue=[];for(var w=L,D;w!==null;){var V=w;if(D=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||D===null||M===null||(V=Xi(w,M),V!=null&&ue.push(xl(w,V,D))),Pe)break;w=w.return}0<ue.length&&(j=new z(j,ae,null,r,F),Y.push({event:j,listeners:ue}))}}if((t&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",z=e==="mouseout"||e==="pointerout",j&&r!==Gu&&(ae=r.relatedTarget||r.fromElement)&&(Q(ae)||ae[la]))break e;if((z||j)&&(j=F.window===F?F:(j=F.ownerDocument)?j.defaultView||j.parentWindow:window,z?(ae=r.relatedTarget||r.toElement,z=L,ae=ae?Q(ae):null,ae!==null&&(Pe=f(ae),ue=ae.tag,ae!==Pe||ue!==5&&ue!==27&&ue!==6)&&(ae=null)):(z=null,ae=L),z!==ae)){if(ue=xm,V="onMouseLeave",M="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(ue=Rm,V="onPointerLeave",M="onPointerEnter",w="pointer"),Pe=z==null?j:Ie(z),D=ae==null?j:Ie(ae),j=new ue(V,w+"leave",z,r,F),j.target=Pe,j.relatedTarget=D,V=null,Q(F)===L&&(ue=new ue(M,w+"enter",ae,r,F),ue.target=D,ue.relatedTarget=Pe,V=ue),Pe=V,z&&ae)t:{for(ue=O2,M=z,w=ae,D=0,V=M;V;V=ue(V))D++;V=0;for(var oe=w;oe;oe=ue(oe))V++;for(;0<D-V;)M=ue(M),D--;for(;0<V-D;)w=ue(w),V--;for(;D--;){if(M===w||w!==null&&M===w.alternate){ue=M;break t}M=ue(M),w=ue(w)}ue=null}else ue=null;z!==null&&vg(Y,j,z,ue,!1),ae!==null&&Pe!==null&&vg(Y,Pe,ae,ue,!0)}}e:{if(j=L?Ie(L):window,z=j.nodeName&&j.nodeName.toLowerCase(),z==="select"||z==="input"&&j.type==="file")var Ue=jm;else if(Bm(j))if(Hm)Ue=jE;else{Ue=BE;var le=LE}else z=j.nodeName,!z||z.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?L&&zu(L.elementType)&&(Ue=jm):Ue=UE;if(Ue&&(Ue=Ue(e,L))){Um(Y,Ue,r,F);break e}le&&le(e,j,L),e==="focusout"&&L&&j.type==="number"&&L.memoizedProps.value!=null&&Iu(j,"number",j.value)}switch(le=L?Ie(L):window,e){case"focusin":(Bm(le)||le.contentEditable==="true")&&(Jr=le,Ju=L,tl=null);break;case"focusout":tl=Ju=Jr=null;break;case"mousedown":ec=!0;break;case"contextmenu":case"mouseup":case"dragend":ec=!1,Ym(Y,r,F);break;case"selectionchange":if(IE)break;case"keydown":case"keyup":Ym(Y,r,F)}var ve;if(Qu)e:{switch(e){case"compositionstart":var we="onCompositionStart";break e;case"compositionend":we="onCompositionEnd";break e;case"compositionupdate":we="onCompositionUpdate";break e}we=void 0}else Wr?Dm(e,r)&&(we="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(we="onCompositionStart");we&&(wm&&r.locale!=="ko"&&(Wr||we!=="onCompositionStart"?we==="onCompositionEnd"&&Wr&&(ve=Am()):(Ha=F,Vu="value"in Ha?Ha.value:Ha.textContent,Wr=!0)),le=fo(L,we),0<le.length&&(we=new Cm(we,e,null,r,F),Y.push({event:we,listeners:le}),ve?we.data=ve:(ve=Lm(r),ve!==null&&(we.data=ve)))),(ve=RE?wE(e,r):NE(e,r))&&(we=fo(L,"onBeforeInput"),0<we.length&&(le=new Cm("onBeforeInput","beforeinput",null,r,F),Y.push({event:le,listeners:we}),le.data=ve)),E2(Y,e,L,r,F)}yg(Y,t)})}function xl(e,t,r){return{instance:e,listener:t,currentTarget:r}}function fo(e,t){for(var r=t+"Capture",l=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=Xi(e,r),o!=null&&l.unshift(xl(e,o,c)),o=Xi(e,t),o!=null&&l.push(xl(e,o,c))),e.tag===3)return l;e=e.return}return[]}function O2(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function vg(e,t,r,l,o){for(var c=t._reactName,p=[];r!==null&&r!==l;){var v=r,T=v.alternate,L=v.stateNode;if(v=v.tag,T!==null&&T===l)break;v!==5&&v!==26&&v!==27||L===null||(T=L,o?(L=Xi(r,c),L!=null&&p.unshift(xl(r,L,T))):o||(L=Xi(r,c),L!=null&&p.push(xl(r,L,T)))),r=r.return}p.length!==0&&e.push({event:t,listeners:p})}var x2=/\r\n?/g,C2=/\u0000|\uFFFD/g;function _g(e){return(typeof e=="string"?e:""+e).replace(x2,`
49
+ `).replace(C2,"")}function Eg(e,t){return t=_g(t),_g(e)===t}function Ye(e,t,r,l,o,c){switch(r){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Qr(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Qr(e,""+l);break;case"className":ps(e,"class",l);break;case"tabIndex":ps(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ps(e,r,l);break;case"style":Em(e,l,c);break;case"data":if(t!=="object"){ps(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||r!=="href")){e.removeAttribute(r);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(r);break}l=ys(""+l),e.setAttribute(r,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(r,"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"&&(r==="formAction"?(t!=="input"&&Ye(e,t,"name",o.name,o,null),Ye(e,t,"formEncType",o.formEncType,o,null),Ye(e,t,"formMethod",o.formMethod,o,null),Ye(e,t,"formTarget",o.formTarget,o,null)):(Ye(e,t,"encType",o.encType,o,null),Ye(e,t,"method",o.method,o,null),Ye(e,t,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(r);break}l=ys(""+l),e.setAttribute(r,l);break;case"onClick":l!=null&&(e.onclick=oa);break;case"onScroll":l!=null&&xe("scroll",e);break;case"onScrollEnd":l!=null&&xe("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(r=l.__html,r!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=r}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}r=ys(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(r,""+l):e.removeAttribute(r);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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":l===!0?e.setAttribute(r,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(r,l):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(r,l):e.removeAttribute(r);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(r):e.setAttribute(r,l);break;case"popover":xe("beforetoggle",e),xe("toggle",e),ms(e,"popover",l);break;case"xlinkActuate":sa(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":sa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":sa(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":sa(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":sa(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":sa(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":sa(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":sa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":sa(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":ms(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=tE.get(r)||r,ms(e,r,l))}}function xf(e,t,r,l,o,c){switch(r){case"style":Em(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(r=l.__html,r!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=r}}break;case"children":typeof l=="string"?Qr(e,l):(typeof l=="number"||typeof l=="bigint")&&Qr(e,""+l);break;case"onScroll":l!=null&&xe("scroll",e);break;case"onScrollEnd":l!=null&&xe("scrollend",e);break;case"onClick":l!=null&&(e.onclick=oa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!mn.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(o=r.endsWith("Capture"),t=r.slice(2,o?r.length-7:void 0),c=e[Je]||null,c=c!=null?c[r]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof l=="function")){typeof c!="function"&&c!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,l,o);break e}r in e?e[r]=l:l===!0?e.setAttribute(r,""):ms(e,r,l)}}}function Dt(e,t,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xe("error",e),xe("load",e);var l=!1,o=!1,c;for(c in r)if(r.hasOwnProperty(c)){var p=r[c];if(p!=null)switch(c){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ye(e,t,c,p,r,null)}}o&&Ye(e,t,"srcSet",r.srcSet,r,null),l&&Ye(e,t,"src",r.src,r,null);return;case"input":xe("invalid",e);var v=c=p=o=null,T=null,L=null;for(l in r)if(r.hasOwnProperty(l)){var F=r[l];if(F!=null)switch(l){case"name":o=F;break;case"type":p=F;break;case"checked":T=F;break;case"defaultChecked":L=F;break;case"value":c=F;break;case"defaultValue":v=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(s(137,t));break;default:Ye(e,t,l,F,r,null)}}ym(e,c,v,T,L,p,o,!1);return;case"select":xe("invalid",e),l=p=c=null;for(o in r)if(r.hasOwnProperty(o)&&(v=r[o],v!=null))switch(o){case"value":c=v;break;case"defaultValue":p=v;break;case"multiple":l=v;default:Ye(e,t,o,v,r,null)}t=c,r=p,e.multiple=!!l,t!=null?Zr(e,!!l,t,!1):r!=null&&Zr(e,!!l,r,!0);return;case"textarea":xe("invalid",e),c=o=l=null;for(p in r)if(r.hasOwnProperty(p)&&(v=r[p],v!=null))switch(p){case"value":l=v;break;case"defaultValue":o=v;break;case"children":c=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(s(91));break;default:Ye(e,t,p,v,r,null)}vm(e,l,o,c);return;case"option":for(T in r)if(r.hasOwnProperty(T)&&(l=r[T],l!=null))switch(T){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ye(e,t,T,l,r,null)}return;case"dialog":xe("beforetoggle",e),xe("toggle",e),xe("cancel",e),xe("close",e);break;case"iframe":case"object":xe("load",e);break;case"video":case"audio":for(l=0;l<Ol.length;l++)xe(Ol[l],e);break;case"image":xe("error",e),xe("load",e);break;case"details":xe("toggle",e);break;case"embed":case"source":case"link":xe("error",e),xe("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(L in r)if(r.hasOwnProperty(L)&&(l=r[L],l!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ye(e,t,L,l,r,null)}return;default:if(zu(t)){for(F in r)r.hasOwnProperty(F)&&(l=r[F],l!==void 0&&xf(e,t,F,l,r,void 0));return}}for(v in r)r.hasOwnProperty(v)&&(l=r[v],l!=null&&Ye(e,t,v,l,r,null))}function R2(e,t,r,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,p=null,v=null,T=null,L=null,F=null;for(z in r){var Y=r[z];if(r.hasOwnProperty(z)&&Y!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":T=Y;default:l.hasOwnProperty(z)||Ye(e,t,z,null,l,Y)}}for(var j in l){var z=l[j];if(Y=r[j],l.hasOwnProperty(j)&&(z!=null||Y!=null))switch(j){case"type":c=z;break;case"name":o=z;break;case"checked":L=z;break;case"defaultChecked":F=z;break;case"value":p=z;break;case"defaultValue":v=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(s(137,t));break;default:z!==Y&&Ye(e,t,j,z,l,Y)}}Hu(e,p,v,T,L,F,c,o);return;case"select":z=p=v=j=null;for(c in r)if(T=r[c],r.hasOwnProperty(c)&&T!=null)switch(c){case"value":break;case"multiple":z=T;default:l.hasOwnProperty(c)||Ye(e,t,c,null,l,T)}for(o in l)if(c=l[o],T=r[o],l.hasOwnProperty(o)&&(c!=null||T!=null))switch(o){case"value":j=c;break;case"defaultValue":v=c;break;case"multiple":p=c;default:c!==T&&Ye(e,t,o,c,l,T)}t=v,r=p,l=z,j!=null?Zr(e,!!r,j,!1):!!l!=!!r&&(t!=null?Zr(e,!!r,t,!0):Zr(e,!!r,r?[]:"",!1));return;case"textarea":z=j=null;for(v in r)if(o=r[v],r.hasOwnProperty(v)&&o!=null&&!l.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ye(e,t,v,null,l,o)}for(p in l)if(o=l[p],c=r[p],l.hasOwnProperty(p)&&(o!=null||c!=null))switch(p){case"value":j=o;break;case"defaultValue":z=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==c&&Ye(e,t,p,o,l,c)}bm(e,j,z);return;case"option":for(var ae in r)if(j=r[ae],r.hasOwnProperty(ae)&&j!=null&&!l.hasOwnProperty(ae))switch(ae){case"selected":e.selected=!1;break;default:Ye(e,t,ae,null,l,j)}for(T in l)if(j=l[T],z=r[T],l.hasOwnProperty(T)&&j!==z&&(j!=null||z!=null))switch(T){case"selected":e.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:Ye(e,t,T,j,l,z)}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 ue in r)j=r[ue],r.hasOwnProperty(ue)&&j!=null&&!l.hasOwnProperty(ue)&&Ye(e,t,ue,null,l,j);for(L in l)if(j=l[L],z=r[L],l.hasOwnProperty(L)&&j!==z&&(j!=null||z!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(s(137,t));break;default:Ye(e,t,L,j,l,z)}return;default:if(zu(t)){for(var Pe in r)j=r[Pe],r.hasOwnProperty(Pe)&&j!==void 0&&!l.hasOwnProperty(Pe)&&xf(e,t,Pe,void 0,l,j);for(F in l)j=l[F],z=r[F],!l.hasOwnProperty(F)||j===z||j===void 0&&z===void 0||xf(e,t,F,j,l,z);return}}for(var M in r)j=r[M],r.hasOwnProperty(M)&&j!=null&&!l.hasOwnProperty(M)&&Ye(e,t,M,null,l,j);for(Y in l)j=l[Y],z=r[Y],!l.hasOwnProperty(Y)||j===z||j==null&&z==null||Ye(e,t,Y,j,l,z)}function Sg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function w2(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,r=performance.getEntriesByType("resource"),l=0;l<r.length;l++){var o=r[l],c=o.transferSize,p=o.initiatorType,v=o.duration;if(c&&v&&Sg(p)){for(p=0,v=o.responseEnd,l+=1;l<r.length;l++){var T=r[l],L=T.startTime;if(L>v)break;var F=T.transferSize,Y=T.initiatorType;F&&Sg(Y)&&(T=T.responseEnd,p+=F*(T<v?1:(v-L)/(T-L)))}if(--l,t+=8*(c+p)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Cf=null,Rf=null;function ho(e){return e.nodeType===9?e:e.ownerDocument}function Tg(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 Ag(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function wf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Nf=null;function N2(){var e=window.event;return e&&e.type==="popstate"?e===Nf?!1:(Nf=e,!0):(Nf=null,!1)}var Og=typeof setTimeout=="function"?setTimeout:void 0,M2=typeof clearTimeout=="function"?clearTimeout:void 0,xg=typeof Promise=="function"?Promise:void 0,D2=typeof queueMicrotask=="function"?queueMicrotask:typeof xg<"u"?function(e){return xg.resolve(null).then(e).catch(L2)}:Og;function L2(e){setTimeout(function(){throw e})}function er(e){return e==="head"}function Cg(e,t){var r=t,l=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&o.nodeType===8)if(r=o.data,r==="/$"||r==="/&"){if(l===0){e.removeChild(o),xi(t);return}l--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")l++;else if(r==="html")Cl(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,Cl(r);for(var c=r.firstChild;c;){var p=c.nextSibling,v=c.nodeName;c[ie]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&c.rel.toLowerCase()==="stylesheet"||r.removeChild(c),c=p}}else r==="body"&&Cl(e.ownerDocument.body);r=o}while(r);xi(t)}function Rg(e,t){var r=e;e=0;do{var l=r.nextSibling;if(r.nodeType===1?t?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(t?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),l&&l.nodeType===8)if(r=l.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=l}while(r)}function Mf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":Mf(r),R(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function B2(e,t,r,l){for(;e.nodeType===1;){var o=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[ie])switch(t){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!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Tn(e.nextSibling),e===null)break}return null}function U2(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=Tn(e.nextSibling),e===null))return null;return e}function wg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Tn(e.nextSibling),e===null))return null;return e}function Df(e){return e.data==="$?"||e.data==="$~"}function Lf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function j2(e,t){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||r.readyState!=="loading")t();else{var l=function(){t(),r.removeEventListener("DOMContentLoaded",l)};r.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Tn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Bf=null;function Ng(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(t===0)return Tn(e.nextSibling);t--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||t++}e=e.nextSibling}return null}function Mg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(t===0)return e;t--}else r!=="/$"&&r!=="/&"||t++}e=e.previousSibling}return null}function Dg(e,t,r){switch(t=ho(r),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Cl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);R(e)}var An=new Map,Lg=new Set;function mo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Aa=$.d;$.d={f:H2,r:I2,D:z2,C:G2,L:k2,m:q2,X:V2,S:F2,M:Y2};function H2(){var e=Aa.f(),t=ro();return e||t}function I2(e){var t=ee(e);t!==null&&t.tag===5&&t.type==="form"?K0(t):Aa.r(e)}var Ti=typeof document>"u"?null:document;function Bg(e,t,r){var l=Ti;if(l&&typeof t=="string"&&t){var o=gn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof r=="string"&&(o+='[crossorigin="'+r+'"]'),Lg.has(o)||(Lg.add(o),e={rel:e,crossOrigin:r,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),Dt(t,"link",e),Ee(t),l.head.appendChild(t)))}}function z2(e){Aa.D(e),Bg("dns-prefetch",e,null)}function G2(e,t){Aa.C(e,t),Bg("preconnect",e,t)}function k2(e,t,r){Aa.L(e,t,r);var l=Ti;if(l&&e&&t){var o='link[rel="preload"][as="'+gn(t)+'"]';t==="image"&&r&&r.imageSrcSet?(o+='[imagesrcset="'+gn(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(o+='[imagesizes="'+gn(r.imageSizes)+'"]')):o+='[href="'+gn(e)+'"]';var c=o;switch(t){case"style":c=Ai(e);break;case"script":c=Oi(e)}An.has(c)||(e=_({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),An.set(c,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(Rl(c))||t==="script"&&l.querySelector(wl(c))||(t=l.createElement("link"),Dt(t,"link",e),Ee(t),l.head.appendChild(t)))}}function q2(e,t){Aa.m(e,t);var r=Ti;if(r&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+gn(l)+'"][href="'+gn(e)+'"]',c=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Oi(e)}if(!An.has(c)&&(e=_({rel:"modulepreload",href:e},t),An.set(c,e),r.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(wl(c)))return}l=r.createElement("link"),Dt(l,"link",e),Ee(l),r.head.appendChild(l)}}}function F2(e,t,r){Aa.S(e,t,r);var l=Ti;if(l&&e){var o=nt(l).hoistableStyles,c=Ai(e);t=t||"default";var p=o.get(c);if(!p){var v={loading:0,preload:null};if(p=l.querySelector(Rl(c)))v.loading=5;else{e=_({rel:"stylesheet",href:e,"data-precedence":t},r),(r=An.get(c))&&Uf(e,r);var T=p=l.createElement("link");Ee(T),Dt(T,"link",e),T._p=new Promise(function(L,F){T.onload=L,T.onerror=F}),T.addEventListener("load",function(){v.loading|=1}),T.addEventListener("error",function(){v.loading|=2}),v.loading|=4,po(p,t,l)}p={type:"stylesheet",instance:p,count:1,state:v},o.set(c,p)}}}function V2(e,t){Aa.X(e,t);var r=Ti;if(r&&e){var l=nt(r).hoistableScripts,o=Oi(e),c=l.get(o);c||(c=r.querySelector(wl(o)),c||(e=_({src:e,async:!0},t),(t=An.get(o))&&jf(e,t),c=r.createElement("script"),Ee(c),Dt(c,"link",e),r.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function Y2(e,t){Aa.M(e,t);var r=Ti;if(r&&e){var l=nt(r).hoistableScripts,o=Oi(e),c=l.get(o);c||(c=r.querySelector(wl(o)),c||(e=_({src:e,async:!0,type:"module"},t),(t=An.get(o))&&jf(e,t),c=r.createElement("script"),Ee(c),Dt(c,"link",e),r.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function Ug(e,t,r,l){var o=(o=fe.current)?mo(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(t=Ai(r.href),r=nt(o).hoistableStyles,l=r.get(t),l||(l={type:"style",instance:null,count:0,state:null},r.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=Ai(r.href);var c=nt(o).hoistableStyles,p=c.get(e);if(p||(o=o.ownerDocument||o,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,p),(c=o.querySelector(Rl(e)))&&!c._p&&(p.instance=c,p.state.loading=5),An.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},An.set(e,r),c||P2(o,e,r,p.state))),t&&l===null)throw Error(s(528,""));return p}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Oi(r),r=nt(o).hoistableScripts,l=r.get(t),l||(l={type:"script",instance:null,count:0,state:null},r.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Ai(e){return'href="'+gn(e)+'"'}function Rl(e){return'link[rel="stylesheet"]['+e+"]"}function jg(e){return _({},e,{"data-precedence":e.precedence,precedence:null})}function P2(e,t,r,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),Dt(t,"link",r),Ee(t),e.head.appendChild(t))}function Oi(e){return'[src="'+gn(e)+'"]'}function wl(e){return"script[async]"+e}function Hg(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+gn(r.href)+'"]');if(l)return t.instance=l,Ee(l),l;var o=_({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Ee(l),Dt(l,"style",o),po(l,r.precedence,e),t.instance=l;case"stylesheet":o=Ai(r.href);var c=e.querySelector(Rl(o));if(c)return t.state.loading|=4,t.instance=c,Ee(c),c;l=jg(r),(o=An.get(o))&&Uf(l,o),c=(e.ownerDocument||e).createElement("link"),Ee(c);var p=c;return p._p=new Promise(function(v,T){p.onload=v,p.onerror=T}),Dt(c,"link",l),t.state.loading|=4,po(c,r.precedence,e),t.instance=c;case"script":return c=Oi(r.src),(o=e.querySelector(wl(c)))?(t.instance=o,Ee(o),o):(l=r,(o=An.get(c))&&(l=_({},r),jf(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),Ee(o),Dt(o,"link",l),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,po(l,r.precedence,e));return t.instance}function po(e,t,r){for(var l=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,c=o,p=0;p<l.length;p++){var v=l[p];if(v.dataset.precedence===t)c=v;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function Uf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function jf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var go=null;function Ig(e,t,r){if(go===null){var l=new Map,o=go=new Map;o.set(r,l)}else o=go,l=o.get(r),l||(l=new Map,o.set(r,l));if(l.has(e))return l;for(l.set(e,null),r=r.getElementsByTagName(e),o=0;o<r.length;o++){var c=r[o];if(!(c[ie]||c[dt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var p=c.getAttribute(t)||"";p=e+p;var v=l.get(p);v?v.push(c):l.set(p,[c])}}return l}function zg(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function X2(e,t,r){if(r===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Gg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Z2(e,t,r,l){if(r.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var o=Ai(l.href),c=t.querySelector(Rl(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=yo.bind(e),t.then(e,e)),r.state.loading|=4,r.instance=c,Ee(c);return}c=t.ownerDocument||t,l=jg(l),(o=An.get(o))&&Uf(l,o),c=c.createElement("link"),Ee(c);var p=c;p._p=new Promise(function(v,T){p.onload=v,p.onerror=T}),Dt(c,"link",l),r.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&3)===0&&(e.count++,r=yo.bind(e),t.addEventListener("load",r),t.addEventListener("error",r))}}var Hf=0;function Q2(e,t){return e.stylesheets&&e.count===0&&vo(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var l=setTimeout(function(){if(e.stylesheets&&vo(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Hf===0&&(Hf=62500*w2());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&vo(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Hf?50:800)+t);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function yo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)vo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var bo=null;function vo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,bo=new Map,t.forEach(K2,e),bo=null,yo.call(e))}function K2(e,t){if(!(t.state.loading&4)){var r=bo.get(e);if(r)var l=r.get(null);else{r=new Map,bo.set(e,r);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var p=o[c];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(r.set(p.dataset.precedence,p),l=p)}l&&r.set(null,l)}o=t.instance,p=o.getAttribute("data-precedence"),c=r.get(p)||l,c===l&&r.set(null,o),r.set(p,o),this.count++,l=yo.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Nl={$$typeof:S,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function $2(e,t,r,l,o,c,p,v,T){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=zi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zi(0),this.hiddenUpdates=zi(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function kg(e,t,r,l,o,c,p,v,T,L,F,Y){return e=new $2(e,t,r,p,T,L,F,Y,v),t=1,c===!0&&(t|=24),c=en(3,null,null,t),e.current=c,c.stateNode=e,t=pc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:r,cache:t},vc(c),e}function qg(e){return e?(e=ni,e):ni}function Fg(e,t,r,l,o,c){o=qg(o),l.context===null?l.context=o:l.pendingContext=o,l=Fa(t),l.payload={element:r},c=c===void 0?null:c,c!==null&&(l.callback=c),r=Va(e,l,t),r!==null&&(Kt(r,e,t),ol(r,e,t))}function Vg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function If(e,t){Vg(e,t),(e=e.alternate)&&Vg(e,t)}function Yg(e){if(e.tag===13||e.tag===31){var t=yr(e,67108864);t!==null&&Kt(t,e,67108864),If(e,67108864)}}function Pg(e){if(e.tag===13||e.tag===31){var t=ln();t=Ft(t);var r=yr(e,t);r!==null&&Kt(r,e,t),If(e,t)}}var _o=!0;function W2(e,t,r,l){var o=G.T;G.T=null;var c=$.p;try{$.p=2,zf(e,t,r,l)}finally{$.p=c,G.T=o}}function J2(e,t,r,l){var o=G.T;G.T=null;var c=$.p;try{$.p=8,zf(e,t,r,l)}finally{$.p=c,G.T=o}}function zf(e,t,r,l){if(_o){var o=Gf(l);if(o===null)Of(e,t,l,Eo,r),Zg(e,l);else if(tS(o,e,t,r,l))l.stopPropagation();else if(Zg(e,l),t&4&&-1<eS.indexOf(e)){for(;o!==null;){var c=ee(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var p=Wt(c.pendingLanes);if(p!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;p;){var T=1<<31-ct(p);v.entanglements[1]|=T,p&=~T}Pn(c),(He&6)===0&&(no=Ct()+500,Al(0))}}break;case 31:case 13:v=yr(c,2),v!==null&&Kt(v,c,2),ro(),If(c,2)}if(c=Gf(l),c===null&&Of(e,t,l,Eo,r),c===o)break;o=c}o!==null&&l.stopPropagation()}else Of(e,t,l,null,r)}}function Gf(e){return e=ku(e),kf(e)}var Eo=null;function kf(e){if(Eo=null,e=Q(e),e!==null){var t=f(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=d(t),e!==null)return e;e=null}else if(r===31){if(e=h(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Eo=e,null}function Xg(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(fr()){case ta:return 2;case na:return 8;case dr:case os:return 32;case Ui:return 268435456;default:return 32}default:return 32}}var qf=!1,tr=null,nr=null,ar=null,Ml=new Map,Dl=new Map,rr=[],eS="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 Zg(e,t){switch(e){case"focusin":case"focusout":tr=null;break;case"dragenter":case"dragleave":nr=null;break;case"mouseover":case"mouseout":ar=null;break;case"pointerover":case"pointerout":Ml.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dl.delete(t.pointerId)}}function Ll(e,t,r,l,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:r,eventSystemFlags:l,nativeEvent:c,targetContainers:[o]},t!==null&&(t=ee(t),t!==null&&Yg(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function tS(e,t,r,l,o){switch(t){case"focusin":return tr=Ll(tr,e,t,r,l,o),!0;case"dragenter":return nr=Ll(nr,e,t,r,l,o),!0;case"mouseover":return ar=Ll(ar,e,t,r,l,o),!0;case"pointerover":var c=o.pointerId;return Ml.set(c,Ll(Ml.get(c)||null,e,t,r,l,o)),!0;case"gotpointercapture":return c=o.pointerId,Dl.set(c,Ll(Dl.get(c)||null,e,t,r,l,o)),!0}return!1}function Qg(e){var t=Q(e.target);if(t!==null){var r=f(t);if(r!==null){if(t=r.tag,t===13){if(t=d(r),t!==null){e.blockedOn=t,Vi(e.priority,function(){Pg(r)});return}}else if(t===31){if(t=h(r),t!==null){e.blockedOn=t,Vi(e.priority,function(){Pg(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function So(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Gf(e.nativeEvent);if(r===null){r=e.nativeEvent;var l=new r.constructor(r.type,r);Gu=l,r.target.dispatchEvent(l),Gu=null}else return t=ee(r),t!==null&&Yg(t),e.blockedOn=r,!1;t.shift()}return!0}function Kg(e,t,r){So(e)&&r.delete(t)}function nS(){qf=!1,tr!==null&&So(tr)&&(tr=null),nr!==null&&So(nr)&&(nr=null),ar!==null&&So(ar)&&(ar=null),Ml.forEach(Kg),Dl.forEach(Kg)}function To(e,t){e.blockedOn===t&&(e.blockedOn=null,qf||(qf=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,nS)))}var Ao=null;function $g(e){Ao!==e&&(Ao=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Ao===e&&(Ao=null);for(var t=0;t<e.length;t+=3){var r=e[t],l=e[t+1],o=e[t+2];if(typeof l!="function"){if(kf(l||r)===null)continue;break}var c=ee(r);c!==null&&(e.splice(t,3),t-=3,zc(c,{pending:!0,data:o,method:r.method,action:l},l,o))}}))}function xi(e){function t(T){return To(T,e)}tr!==null&&To(tr,e),nr!==null&&To(nr,e),ar!==null&&To(ar,e),Ml.forEach(t),Dl.forEach(t);for(var r=0;r<rr.length;r++){var l=rr[r];l.blockedOn===e&&(l.blockedOn=null)}for(;0<rr.length&&(r=rr[0],r.blockedOn===null);)Qg(r),r.blockedOn===null&&rr.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(l=0;l<r.length;l+=3){var o=r[l],c=r[l+1],p=o[Je]||null;if(typeof c=="function")p||$g(r);else if(p){var v=null;if(c&&c.hasAttribute("formAction")){if(o=c,p=c[Je]||null)v=p.formAction;else if(kf(o)!==null)continue}else v=p.action;typeof v=="function"?r[l+1]=v:(r.splice(l,3),l-=3),$g(r)}}}function Wg(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(p){return o=p})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),l||setTimeout(r,20)}function r(){if(!l&&!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 l=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(r,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Ff(e){this._internalRoot=e}Oo.prototype.render=Ff.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var r=t.current,l=ln();Fg(r,l,e,t,null,null)},Oo.prototype.unmount=Ff.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Fg(e.current,2,null,e,null,null),ro(),t[la]=null}};function Oo(e){this._internalRoot=e}Oo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Fi();e={blockedOn:null,target:e,priority:t};for(var r=0;r<rr.length&&t!==0&&t<rr[r].priority;r++);rr.splice(r,0,e),r===0&&Qg(e)}};var Jg=a.version;if(Jg!=="19.2.0")throw Error(s(527,Jg,"19.2.0"));$.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=g(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var aS={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var xo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xo.isDisabled&&xo.supportsFiber)try{kn=xo.inject(aS),St=xo}catch{}}return Ul.createRoot=function(e,t){if(!u(e))throw Error(s(299));var r=!1,l="",o=lp,c=sp,p=op;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError)),t=kg(e,1,!1,null,null,r,l,null,o,c,p,Wg),e[la]=t.current,Af(e),new Ff(t)},Ul.hydrateRoot=function(e,t,r){if(!u(e))throw Error(s(299));var l=!1,o="",c=lp,p=sp,v=op,T=null;return r!=null&&(r.unstable_strictMode===!0&&(l=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onUncaughtError!==void 0&&(c=r.onUncaughtError),r.onCaughtError!==void 0&&(p=r.onCaughtError),r.onRecoverableError!==void 0&&(v=r.onRecoverableError),r.formState!==void 0&&(T=r.formState)),t=kg(e,1,!0,t,r??null,l,o,T,c,p,v,Wg),t.context=qg(null),r=t.current,l=ln(),l=Ft(l),o=Fa(l),o.callback=null,Va(r,o,l),r=l,t.current.lanes=r,ja(t,r),Pn(t),e[la]=t.current,Af(e),new Oo(t)},Ul.version="19.2.0",Ul}var uy;function hS(){if(uy)return Yf.exports;uy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Yf.exports=dS(),Yf.exports}var mS=hS(),B=_u();const Gv=vu(B);var Kf={exports:{}},$f={};/**
50
50
  * @license React
51
51
  * use-sync-external-store-with-selector.production.js
52
52
  *
@@ -54,34 +54,34 @@ Error generating stack: `+l.message+`
54
54
  *
55
55
  * This source code is licensed under the MIT license found in the
56
56
  * LICENSE file in the root directory of this source tree.
57
- */var cy;function pS(){if(cy)return $f;cy=1;var n=vu();function a(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}var i=typeof Object.is=="function"?Object.is:a,s=n.useSyncExternalStore,u=n.useRef,f=n.useEffect,d=n.useMemo,h=n.useDebugValue;return $f.useSyncExternalStoreWithSelector=function(m,g,b,_,A){var U=u(null);if(U.current===null){var x={hasValue:!1,value:null};U.current=x}else x=U.current;U=d(function(){function I(N){if(!E){if(E=!0,C=N,N=_(N),A!==void 0&&x.hasValue){var Z=x.value;if(A(Z,N))return S=Z}return S=N}if(Z=S,i(C,N))return Z;var X=_(N);return A!==void 0&&A(Z,X)?(C=N,Z):(C=N,S=X)}var E=!1,C,S,H=b===void 0?null:b;return[function(){return I(g())},H===null?void 0:function(){return I(H())}]},[g,b,_,A]);var k=s(m,U[0],U[1]);return f(function(){x.hasValue=!0,x.value=k},[k]),h(k),k},$f}var fy;function gS(){return fy||(fy=1,Kf.exports=pS()),Kf.exports}var yS=gS(),bS=B.version.startsWith("19"),vS=Symbol.for(bS?"react.transitional.element":"react.element"),_S=Symbol.for("react.portal"),ES=Symbol.for("react.fragment"),SS=Symbol.for("react.strict_mode"),TS=Symbol.for("react.profiler"),AS=Symbol.for("react.consumer"),OS=Symbol.for("react.context"),kv=Symbol.for("react.forward_ref"),xS=Symbol.for("react.suspense"),CS=Symbol.for("react.suspense_list"),Nh=Symbol.for("react.memo"),RS=Symbol.for("react.lazy"),wS=kv,NS=Nh;function MS(n){if(typeof n=="object"&&n!==null){const{$$typeof:a}=n;switch(a){case vS:switch(n=n.type,n){case ES:case TS:case SS:case xS:case CS:return n;default:switch(n=n&&n.$$typeof,n){case OS:case kv:case RS:case Nh:return n;case AS:return n;default:return a}}case _S:return a}}}function DS(n){return MS(n)===Nh}function LS(n,a,i,s,{areStatesEqual:u,areOwnPropsEqual:f,areStatePropsEqual:d}){let h=!1,m,g,b,_,A;function U(C,S){return m=C,g=S,b=n(m,g),_=a(s,g),A=i(b,_,g),h=!0,A}function x(){return b=n(m,g),a.dependsOnOwnProps&&(_=a(s,g)),A=i(b,_,g),A}function k(){return n.dependsOnOwnProps&&(b=n(m,g)),a.dependsOnOwnProps&&(_=a(s,g)),A=i(b,_,g),A}function I(){const C=n(m,g),S=!d(C,b);return b=C,S&&(A=i(b,_,g)),A}function E(C,S){const H=!f(S,g),N=!u(C,m,S,g);return m=C,g=S,H&&N?x():H?k():N?I():A}return function(S,H){return h?E(S,H):U(S,H)}}function BS(n,{initMapStateToProps:a,initMapDispatchToProps:i,initMergeProps:s,...u}){const f=a(n,u),d=i(n,u),h=s(n,u);return LS(f,d,h,n,u)}function US(n,a){const i={};for(const s in n){const u=n[s];typeof u=="function"&&(i[s]=(...f)=>a(u(...f)))}return i}function Jd(n){return function(i){const s=n(i);function u(){return s}return u.dependsOnOwnProps=!1,u}}function dy(n){return n.dependsOnOwnProps?!!n.dependsOnOwnProps:n.length!==1}function qv(n,a){return function(s,{displayName:u}){const f=function(h,m){return f.dependsOnOwnProps?f.mapToProps(h,m):f.mapToProps(h,void 0)};return f.dependsOnOwnProps=!0,f.mapToProps=function(h,m){f.mapToProps=n,f.dependsOnOwnProps=dy(n);let g=f(h,m);return typeof g=="function"&&(f.mapToProps=g,f.dependsOnOwnProps=dy(g),g=f(h,m)),g},f}}function Mh(n,a){return(i,s)=>{throw new Error(`Invalid value of type ${typeof n} for ${a} argument when connecting component ${s.wrappedComponentName}.`)}}function jS(n){return n&&typeof n=="object"?Jd(a=>US(n,a)):n?typeof n=="function"?qv(n):Mh(n,"mapDispatchToProps"):Jd(a=>({dispatch:a}))}function HS(n){return n?typeof n=="function"?qv(n):Mh(n,"mapStateToProps"):Jd(()=>({}))}function IS(n,a,i){return{...i,...n,...a}}function zS(n){return function(i,{displayName:s,areMergedPropsEqual:u}){let f=!1,d;return function(m,g,b){const _=n(m,g,b);return f?u(_,d)||(d=_):(f=!0,d=_),d}}}function GS(n){return n?typeof n=="function"?zS(n):Mh(n,"mergeProps"):()=>IS}function kS(n){n()}function qS(){let n=null,a=null;return{clear(){n=null,a=null},notify(){kS(()=>{let i=n;for(;i;)i.callback(),i=i.next})},get(){const i=[];let s=n;for(;s;)i.push(s),s=s.next;return i},subscribe(i){let s=!0;const u=a={callback:i,next:null,prev:a};return u.prev?u.prev.next=u:n=u,function(){!s||n===null||(s=!1,u.next?u.next.prev=u.prev:a=u.prev,u.prev?u.prev.next=u.next:n=u.next)}}}}var hy={notify(){},get:()=>[]};function Fv(n,a){let i,s=hy,u=0,f=!1;function d(k){b();const I=s.subscribe(k);let E=!1;return()=>{E||(E=!0,I(),_())}}function h(){s.notify()}function m(){x.onStateChange&&x.onStateChange()}function g(){return f}function b(){u++,i||(i=a?a.addNestedSub(m):n.subscribe(m),s=qS())}function _(){u--,i&&u===0&&(i(),i=void 0,s.clear(),s=hy)}function A(){f||(f=!0,b())}function U(){f&&(f=!1,_())}const x={addNestedSub:d,notifyNestedSubs:h,handleChangeWrapper:m,isSubscribed:g,trySubscribe:A,tryUnsubscribe:U,getListeners:()=>s};return x}var FS=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",VS=FS(),YS=()=>typeof navigator<"u"&&navigator.product==="ReactNative",PS=YS(),XS=()=>VS||PS?B.useLayoutEffect:B.useEffect,su=XS();function my(n,a){return n===a?n!==0||a!==0||1/n===1/a:n!==n&&a!==a}function Wf(n,a){if(my(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;const i=Object.keys(n),s=Object.keys(a);if(i.length!==s.length)return!1;for(let u=0;u<i.length;u++)if(!Object.prototype.hasOwnProperty.call(a,i[u])||!my(n[i[u]],a[i[u]]))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},QS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},KS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Vv={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},$S={[wS]:KS,[NS]:Vv};function py(n){return DS(n)?Vv:$S[n.$$typeof]||ZS}var WS=Object.defineProperty,JS=Object.getOwnPropertyNames,gy=Object.getOwnPropertySymbols,eT=Object.getOwnPropertyDescriptor,tT=Object.getPrototypeOf,yy=Object.prototype;function eh(n,a){if(typeof a!="string"){if(yy){const f=tT(a);f&&f!==yy&&eh(n,f)}let i=JS(a);gy&&(i=i.concat(gy(a)));const s=py(n),u=py(a);for(let f=0;f<i.length;++f){const d=i[f];if(!QS[d]&&!(u&&u[d])&&!(s&&s[d])){const h=eT(a,d);try{WS(n,d,h)}catch{}}}}return n}var nT=Symbol.for("react-redux-context"),aT=typeof globalThis<"u"?globalThis:{};function rT(){if(!B.createContext)return{};const n=aT[nT]??=new Map;let a=n.get(B.createContext);return a||(a=B.createContext(null),n.set(B.createContext,a)),a}var Ma=rT(),iT=[null,null];function lT(n,a,i){su(()=>n(...a),i)}function sT(n,a,i,s,u,f){n.current=s,i.current=!1,u.current&&(u.current=null,f())}function oT(n,a,i,s,u,f,d,h,m,g,b){if(!n)return()=>{};let _=!1,A=null;const U=()=>{if(_||!h.current)return;const k=a.getState();let I,E;try{I=s(k,u.current)}catch(C){E=C,A=C}E||(A=null),I===f.current?d.current||g():(f.current=I,m.current=I,d.current=!0,b())};return i.onStateChange=U,i.trySubscribe(),U(),()=>{if(_=!0,i.tryUnsubscribe(),i.onStateChange=null,A)throw A}}function uT(n,a){return n===a}function cT(n,a,i,{pure:s,areStatesEqual:u=uT,areOwnPropsEqual:f=Wf,areStatePropsEqual:d=Wf,areMergedPropsEqual:h=Wf,forwardRef:m=!1,context:g=Ma}={}){const b=g,_=HS(n),A=jS(a),U=GS(i),x=!!n;return I=>{const E=I.displayName||I.name||"Component",C=`Connect(${E})`,S={shouldHandleStateChanges:x,displayName:C,wrappedComponentName:E,WrappedComponent:I,initMapStateToProps:_,initMapDispatchToProps:A,initMergeProps:U,areStatesEqual:u,areStatePropsEqual:d,areOwnPropsEqual:f,areMergedPropsEqual:h};function H(X){const[te,de,ye]=B.useMemo(()=>{const{reactReduxForwardedRef:vt,...jt}=X;return[X.context,vt,jt]},[X]),re=B.useMemo(()=>{let vt=b;return te?.Consumer,vt},[te,b]),pe=B.useContext(re),ce=!!X.store&&!!X.store.getState&&!!X.store.dispatch,Xe=!!pe&&!!pe.store,Ne=ce?X.store:pe.store,G=Xe?pe.getServerState:Ne.getState,$=B.useMemo(()=>BS(Ne.dispatch,S),[Ne]),[ne,Se]=B.useMemo(()=>{if(!x)return iT;const vt=Fv(Ne,ce?void 0:pe.subscription),jt=vt.notifyNestedSubs.bind(vt);return[vt,jt]},[Ne,ce,pe]),Ae=B.useMemo(()=>ce?pe:{...pe,subscription:ne},[ce,pe,ne]),O=B.useRef(void 0),q=B.useRef(ye),P=B.useRef(void 0),W=B.useRef(!1),J=B.useRef(!1),fe=B.useRef(void 0);su(()=>(J.current=!0,()=>{J.current=!1}),[]);const _e=B.useMemo(()=>()=>P.current&&ye===q.current?P.current:$(Ne.getState(),ye),[Ne,ye]),We=B.useMemo(()=>jt=>ne?oT(x,Ne,ne,$,q,O,W,J,P,Se,jt):()=>{},[ne]);lT(sT,[q,O,W,ye,P,Se]);let Ge;try{Ge=B.useSyncExternalStore(We,_e,G?()=>$(G(),ye):_e)}catch(vt){throw fe.current&&(vt.message+=`
57
+ */var cy;function pS(){if(cy)return $f;cy=1;var n=_u();function a(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}var i=typeof Object.is=="function"?Object.is:a,s=n.useSyncExternalStore,u=n.useRef,f=n.useEffect,d=n.useMemo,h=n.useDebugValue;return $f.useSyncExternalStoreWithSelector=function(m,g,b,_,A){var U=u(null);if(U.current===null){var x={hasValue:!1,value:null};U.current=x}else x=U.current;U=d(function(){function I(N){if(!E){if(E=!0,C=N,N=_(N),A!==void 0&&x.hasValue){var Z=x.value;if(A(Z,N))return S=Z}return S=N}if(Z=S,i(C,N))return Z;var X=_(N);return A!==void 0&&A(Z,X)?(C=N,Z):(C=N,S=X)}var E=!1,C,S,H=b===void 0?null:b;return[function(){return I(g())},H===null?void 0:function(){return I(H())}]},[g,b,_,A]);var k=s(m,U[0],U[1]);return f(function(){x.hasValue=!0,x.value=k},[k]),h(k),k},$f}var fy;function gS(){return fy||(fy=1,Kf.exports=pS()),Kf.exports}var yS=gS(),bS=B.version.startsWith("19"),vS=Symbol.for(bS?"react.transitional.element":"react.element"),_S=Symbol.for("react.portal"),ES=Symbol.for("react.fragment"),SS=Symbol.for("react.strict_mode"),TS=Symbol.for("react.profiler"),AS=Symbol.for("react.consumer"),OS=Symbol.for("react.context"),kv=Symbol.for("react.forward_ref"),xS=Symbol.for("react.suspense"),CS=Symbol.for("react.suspense_list"),Nh=Symbol.for("react.memo"),RS=Symbol.for("react.lazy"),wS=kv,NS=Nh;function MS(n){if(typeof n=="object"&&n!==null){const{$$typeof:a}=n;switch(a){case vS:switch(n=n.type,n){case ES:case TS:case SS:case xS:case CS:return n;default:switch(n=n&&n.$$typeof,n){case OS:case kv:case RS:case Nh:return n;case AS:return n;default:return a}}case _S:return a}}}function DS(n){return MS(n)===Nh}function LS(n,a,i,s,{areStatesEqual:u,areOwnPropsEqual:f,areStatePropsEqual:d}){let h=!1,m,g,b,_,A;function U(C,S){return m=C,g=S,b=n(m,g),_=a(s,g),A=i(b,_,g),h=!0,A}function x(){return b=n(m,g),a.dependsOnOwnProps&&(_=a(s,g)),A=i(b,_,g),A}function k(){return n.dependsOnOwnProps&&(b=n(m,g)),a.dependsOnOwnProps&&(_=a(s,g)),A=i(b,_,g),A}function I(){const C=n(m,g),S=!d(C,b);return b=C,S&&(A=i(b,_,g)),A}function E(C,S){const H=!f(S,g),N=!u(C,m,S,g);return m=C,g=S,H&&N?x():H?k():N?I():A}return function(S,H){return h?E(S,H):U(S,H)}}function BS(n,{initMapStateToProps:a,initMapDispatchToProps:i,initMergeProps:s,...u}){const f=a(n,u),d=i(n,u),h=s(n,u);return LS(f,d,h,n,u)}function US(n,a){const i={};for(const s in n){const u=n[s];typeof u=="function"&&(i[s]=(...f)=>a(u(...f)))}return i}function Jd(n){return function(i){const s=n(i);function u(){return s}return u.dependsOnOwnProps=!1,u}}function dy(n){return n.dependsOnOwnProps?!!n.dependsOnOwnProps:n.length!==1}function qv(n,a){return function(s,{displayName:u}){const f=function(h,m){return f.dependsOnOwnProps?f.mapToProps(h,m):f.mapToProps(h,void 0)};return f.dependsOnOwnProps=!0,f.mapToProps=function(h,m){f.mapToProps=n,f.dependsOnOwnProps=dy(n);let g=f(h,m);return typeof g=="function"&&(f.mapToProps=g,f.dependsOnOwnProps=dy(g),g=f(h,m)),g},f}}function Mh(n,a){return(i,s)=>{throw new Error(`Invalid value of type ${typeof n} for ${a} argument when connecting component ${s.wrappedComponentName}.`)}}function jS(n){return n&&typeof n=="object"?Jd(a=>US(n,a)):n?typeof n=="function"?qv(n):Mh(n,"mapDispatchToProps"):Jd(a=>({dispatch:a}))}function HS(n){return n?typeof n=="function"?qv(n):Mh(n,"mapStateToProps"):Jd(()=>({}))}function IS(n,a,i){return{...i,...n,...a}}function zS(n){return function(i,{displayName:s,areMergedPropsEqual:u}){let f=!1,d;return function(m,g,b){const _=n(m,g,b);return f?u(_,d)||(d=_):(f=!0,d=_),d}}}function GS(n){return n?typeof n=="function"?zS(n):Mh(n,"mergeProps"):()=>IS}function kS(n){n()}function qS(){let n=null,a=null;return{clear(){n=null,a=null},notify(){kS(()=>{let i=n;for(;i;)i.callback(),i=i.next})},get(){const i=[];let s=n;for(;s;)i.push(s),s=s.next;return i},subscribe(i){let s=!0;const u=a={callback:i,next:null,prev:a};return u.prev?u.prev.next=u:n=u,function(){!s||n===null||(s=!1,u.next?u.next.prev=u.prev:a=u.prev,u.prev?u.prev.next=u.next:n=u.next)}}}}var hy={notify(){},get:()=>[]};function Fv(n,a){let i,s=hy,u=0,f=!1;function d(k){b();const I=s.subscribe(k);let E=!1;return()=>{E||(E=!0,I(),_())}}function h(){s.notify()}function m(){x.onStateChange&&x.onStateChange()}function g(){return f}function b(){u++,i||(i=a?a.addNestedSub(m):n.subscribe(m),s=qS())}function _(){u--,i&&u===0&&(i(),i=void 0,s.clear(),s=hy)}function A(){f||(f=!0,b())}function U(){f&&(f=!1,_())}const x={addNestedSub:d,notifyNestedSubs:h,handleChangeWrapper:m,isSubscribed:g,trySubscribe:A,tryUnsubscribe:U,getListeners:()=>s};return x}var FS=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",VS=FS(),YS=()=>typeof navigator<"u"&&navigator.product==="ReactNative",PS=YS(),XS=()=>VS||PS?B.useLayoutEffect:B.useEffect,ou=XS();function my(n,a){return n===a?n!==0||a!==0||1/n===1/a:n!==n&&a!==a}function Wf(n,a){if(my(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;const i=Object.keys(n),s=Object.keys(a);if(i.length!==s.length)return!1;for(let u=0;u<i.length;u++)if(!Object.prototype.hasOwnProperty.call(a,i[u])||!my(n[i[u]],a[i[u]]))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},QS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},KS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Vv={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},$S={[wS]:KS,[NS]:Vv};function py(n){return DS(n)?Vv:$S[n.$$typeof]||ZS}var WS=Object.defineProperty,JS=Object.getOwnPropertyNames,gy=Object.getOwnPropertySymbols,eT=Object.getOwnPropertyDescriptor,tT=Object.getPrototypeOf,yy=Object.prototype;function eh(n,a){if(typeof a!="string"){if(yy){const f=tT(a);f&&f!==yy&&eh(n,f)}let i=JS(a);gy&&(i=i.concat(gy(a)));const s=py(n),u=py(a);for(let f=0;f<i.length;++f){const d=i[f];if(!QS[d]&&!(u&&u[d])&&!(s&&s[d])){const h=eT(a,d);try{WS(n,d,h)}catch{}}}}return n}var nT=Symbol.for("react-redux-context"),aT=typeof globalThis<"u"?globalThis:{};function rT(){if(!B.createContext)return{};const n=aT[nT]??=new Map;let a=n.get(B.createContext);return a||(a=B.createContext(null),n.set(B.createContext,a)),a}var Na=rT(),iT=[null,null];function lT(n,a,i){ou(()=>n(...a),i)}function sT(n,a,i,s,u,f){n.current=s,i.current=!1,u.current&&(u.current=null,f())}function oT(n,a,i,s,u,f,d,h,m,g,b){if(!n)return()=>{};let _=!1,A=null;const U=()=>{if(_||!h.current)return;const k=a.getState();let I,E;try{I=s(k,u.current)}catch(C){E=C,A=C}E||(A=null),I===f.current?d.current||g():(f.current=I,m.current=I,d.current=!0,b())};return i.onStateChange=U,i.trySubscribe(),U(),()=>{if(_=!0,i.tryUnsubscribe(),i.onStateChange=null,A)throw A}}function uT(n,a){return n===a}function cT(n,a,i,{pure:s,areStatesEqual:u=uT,areOwnPropsEqual:f=Wf,areStatePropsEqual:d=Wf,areMergedPropsEqual:h=Wf,forwardRef:m=!1,context:g=Na}={}){const b=g,_=HS(n),A=jS(a),U=GS(i),x=!!n;return I=>{const E=I.displayName||I.name||"Component",C=`Connect(${E})`,S={shouldHandleStateChanges:x,displayName:C,wrappedComponentName:E,WrappedComponent:I,initMapStateToProps:_,initMapDispatchToProps:A,initMergeProps:U,areStatesEqual:u,areStatePropsEqual:d,areOwnPropsEqual:f,areMergedPropsEqual:h};function H(X){const[te,de,ye]=B.useMemo(()=>{const{reactReduxForwardedRef:vt,...jt}=X;return[X.context,vt,jt]},[X]),re=B.useMemo(()=>{let vt=b;return te?.Consumer,vt},[te,b]),pe=B.useContext(re),ce=!!X.store&&!!X.store.getState&&!!X.store.dispatch,Xe=!!pe&&!!pe.store,Ne=ce?X.store:pe.store,G=Xe?pe.getServerState:Ne.getState,$=B.useMemo(()=>BS(Ne.dispatch,S),[Ne]),[ne,Se]=B.useMemo(()=>{if(!x)return iT;const vt=Fv(Ne,ce?void 0:pe.subscription),jt=vt.notifyNestedSubs.bind(vt);return[vt,jt]},[Ne,ce,pe]),Ae=B.useMemo(()=>ce?pe:{...pe,subscription:ne},[ce,pe,ne]),O=B.useRef(void 0),q=B.useRef(ye),P=B.useRef(void 0),W=B.useRef(!1),J=B.useRef(!1),fe=B.useRef(void 0);ou(()=>(J.current=!0,()=>{J.current=!1}),[]);const _e=B.useMemo(()=>()=>P.current&&ye===q.current?P.current:$(Ne.getState(),ye),[Ne,ye]),We=B.useMemo(()=>jt=>ne?oT(x,Ne,ne,$,q,O,W,J,P,Se,jt):()=>{},[ne]);lT(sT,[q,O,W,ye,P,Se]);let Ge;try{Ge=B.useSyncExternalStore(We,_e,G?()=>$(G(),ye):_e)}catch(vt){throw fe.current&&(vt.message+=`
58
58
  The error may be correlated with this previous error:
59
59
  ${fe.current.stack}
60
60
 
61
- `),vt}su(()=>{fe.current=void 0,P.current=void 0,O.current=Ge});const $t=B.useMemo(()=>B.createElement(I,{...Ge,ref:de}),[de,I,Ge]);return B.useMemo(()=>x?B.createElement(re.Provider,{value:Ae},$t):$t,[re,$t,Ae])}const Z=B.memo(H);if(Z.WrappedComponent=I,Z.displayName=H.displayName=C,m){const te=B.forwardRef(function(ye,re){return B.createElement(Z,{...ye,reactReduxForwardedRef:re})});return te.displayName=C,te.WrappedComponent=I,eh(te,I)}return eh(Z,I)}}var fT=cT;function dT(n){const{children:a,context:i,serverState:s,store:u}=n,f=B.useMemo(()=>{const m=Fv(u);return{store:u,subscription:m,getServerState:s?()=>s:void 0}},[u,s]),d=B.useMemo(()=>u.getState(),[u]);su(()=>{const{subscription:m}=f;return m.onStateChange=m.notifyNestedSubs,m.trySubscribe(),d!==u.getState()&&m.notifyNestedSubs(),()=>{m.tryUnsubscribe(),m.onStateChange=void 0}},[f,d]);const h=i||Ma;return B.createElement(h.Provider,{value:f},a)}var hT=dT;function Dh(n=Ma){return function(){return B.useContext(n)}}var Yv=Dh();function Pv(n=Ma){const a=n===Ma?Yv:Dh(n),i=()=>{const{store:s}=a();return s};return Object.assign(i,{withTypes:()=>i}),i}var mT=Pv();function pT(n=Ma){const a=n===Ma?mT:Pv(n),i=()=>a().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var gT=pT(),yT=(n,a)=>n===a;function bT(n=Ma){const a=n===Ma?Yv:Dh(n),i=(s,u={})=>{const{equalityFn:f=yT}=typeof u=="function"?{equalityFn:u}:u,d=a(),{store:h,subscription:m,getServerState:g}=d;B.useRef(!0);const b=B.useCallback({[s.name](A){return s(A)}}[s.name],[s]),_=yS.useSyncExternalStoreWithSelector(m.addNestedSub,h.getState,g||h.getState,b,f);return B.useDebugValue(_),_};return Object.assign(i,{withTypes:()=>i}),i}var vT=bT(),Jf={exports:{}};/*!
61
+ `),vt}ou(()=>{fe.current=void 0,P.current=void 0,O.current=Ge});const $t=B.useMemo(()=>B.createElement(I,{...Ge,ref:de}),[de,I,Ge]);return B.useMemo(()=>x?B.createElement(re.Provider,{value:Ae},$t):$t,[re,$t,Ae])}const Z=B.memo(H);if(Z.WrappedComponent=I,Z.displayName=H.displayName=C,m){const te=B.forwardRef(function(ye,re){return B.createElement(Z,{...ye,reactReduxForwardedRef:re})});return te.displayName=C,te.WrappedComponent=I,eh(te,I)}return eh(Z,I)}}var fT=cT;function dT(n){const{children:a,context:i,serverState:s,store:u}=n,f=B.useMemo(()=>{const m=Fv(u);return{store:u,subscription:m,getServerState:s?()=>s:void 0}},[u,s]),d=B.useMemo(()=>u.getState(),[u]);ou(()=>{const{subscription:m}=f;return m.onStateChange=m.notifyNestedSubs,m.trySubscribe(),d!==u.getState()&&m.notifyNestedSubs(),()=>{m.tryUnsubscribe(),m.onStateChange=void 0}},[f,d]);const h=i||Na;return B.createElement(h.Provider,{value:f},a)}var hT=dT;function Dh(n=Na){return function(){return B.useContext(n)}}var Yv=Dh();function Pv(n=Na){const a=n===Na?Yv:Dh(n),i=()=>{const{store:s}=a();return s};return Object.assign(i,{withTypes:()=>i}),i}var mT=Pv();function pT(n=Na){const a=n===Na?mT:Pv(n),i=()=>a().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var gT=pT(),yT=(n,a)=>n===a;function bT(n=Na){const a=n===Na?Yv:Dh(n),i=(s,u={})=>{const{equalityFn:f=yT}=typeof u=="function"?{equalityFn:u}:u,d=a(),{store:h,subscription:m,getServerState:g}=d;B.useRef(!0);const b=B.useCallback({[s.name](A){return s(A)}}[s.name],[s]),_=yS.useSyncExternalStoreWithSelector(m.addNestedSub,h.getState,g||h.getState,b,f);return B.useDebugValue(_),_};return Object.assign(i,{withTypes:()=>i}),i}var vT=bT(),Jf={exports:{}};/*!
62
62
  Copyright (c) 2018 Jed Watson.
63
63
  Licensed under the MIT License (MIT), see
64
64
  http://jedwatson.github.io/classnames
65
- */var by;function _T(){return by||(by=1,(function(n){(function(){var a={}.hasOwnProperty;function i(){for(var f="",d=0;d<arguments.length;d++){var h=arguments[d];h&&(f=u(f,s(h)))}return f}function s(f){if(typeof f=="string"||typeof f=="number")return f;if(typeof f!="object")return"";if(Array.isArray(f))return i.apply(null,f);if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]"))return f.toString();var d="";for(var h in f)a.call(f,h)&&f[h]&&(d=u(d,h));return d}function u(f,d){return d?f?f+" "+d:f+d:f}n.exports?(i.default=i,n.exports=i):window.classNames=i})()})(Jf)),Jf.exports}var ET=_T();const K=bu(ET);var th=function(n,a){return th=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(i[u]=s[u])},th(n,a)};function Rn(n,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");th(n,a);function i(){this.constructor=n}n.prototype=a===null?Object.create(a):(i.prototype=a.prototype,new i)}var se=function(){return se=Object.assign||function(a){for(var i,s=1,u=arguments.length;s<u;s++){i=arguments[s];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(a[f]=i[f])}return a},se.apply(this,arguments)};function _u(n,a){var i={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&a.indexOf(s)<0&&(i[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,s=Object.getOwnPropertySymbols(n);u<s.length;u++)a.indexOf(s[u])<0&&Object.prototype.propertyIsEnumerable.call(n,s[u])&&(i[s[u]]=n[s[u]]);return i}function $n(n,a,i){if(i||arguments.length===2)for(var s=0,u=a.length,f;s<u;s++)(f||!(s in a))&&(f||(f=Array.prototype.slice.call(a,0,s)),f[s]=a[s]);return n.concat(f||Array.prototype.slice.call(a))}function Qn(n,a){var i=a&&a.cache?a.cache:RT,s=a&&a.serializer?a.serializer:xT,u=a&&a.strategy?a.strategy:AT;return u(n,{cache:i,serializer:s})}function ST(n){return n==null||typeof n=="number"||typeof n=="boolean"}function TT(n,a,i,s){var u=ST(s)?s:i(s),f=a.get(u);return typeof f>"u"&&(f=n.call(this,s),a.set(u,f)),f}function Xv(n,a,i){var s=Array.prototype.slice.call(arguments,3),u=i(s),f=a.get(u);return typeof f>"u"&&(f=n.apply(this,s),a.set(u,f)),f}function Zv(n,a,i,s,u){return i.bind(a,n,s,u)}function AT(n,a){var i=n.length===1?TT:Xv;return Zv(n,this,i,a.cache.create(),a.serializer)}function OT(n,a){return Zv(n,this,Xv,a.cache.create(),a.serializer)}var xT=function(){return JSON.stringify(arguments)},CT=(function(){function n(){this.cache=Object.create(null)}return n.prototype.get=function(a){return this.cache[a]},n.prototype.set=function(a,i){this.cache[a]=i},n})(),RT={create:function(){return new CT}},Kn={variadic:OT},De;(function(n){n[n.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",n[n.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",n[n.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",n[n.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",n[n.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",n[n.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",n[n.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",n[n.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",n[n.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",n[n.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",n[n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",n[n.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",n[n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",n[n.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",n[n.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",n[n.INVALID_TAG=23]="INVALID_TAG",n[n.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",n[n.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",n[n.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(De||(De={}));var $e;(function(n){n[n.literal=0]="literal",n[n.argument=1]="argument",n[n.number=2]="number",n[n.date=3]="date",n[n.time=4]="time",n[n.select=5]="select",n[n.plural=6]="plural",n[n.pound=7]="pound",n[n.tag=8]="tag"})($e||($e={}));var Ni;(function(n){n[n.number=0]="number",n[n.dateTime=1]="dateTime"})(Ni||(Ni={}));function vy(n){return n.type===$e.literal}function wT(n){return n.type===$e.argument}function Qv(n){return n.type===$e.number}function Kv(n){return n.type===$e.date}function $v(n){return n.type===$e.time}function Wv(n){return n.type===$e.select}function Jv(n){return n.type===$e.plural}function NT(n){return n.type===$e.pound}function e1(n){return n.type===$e.tag}function t1(n){return!!(n&&typeof n=="object"&&n.type===Ni.number)}function nh(n){return!!(n&&typeof n=="object"&&n.type===Ni.dateTime)}var n1=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,MT=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function DT(n){var a={};return n.replace(MT,function(i){var s=i.length;switch(i[0]){case"G":a.era=s===4?"long":s===5?"narrow":"short";break;case"y":a.year=s===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":a.month=["numeric","2-digit","short","long","narrow"][s-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":a.day=["numeric","2-digit"][s-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":a.weekday=s===4?"long":s===5?"narrow":"short";break;case"e":if(s<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");a.weekday=["short","long","narrow","short"][s-4];break;case"c":if(s<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");a.weekday=["short","long","narrow","short"][s-4];break;case"a":a.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":a.hourCycle="h12",a.hour=["numeric","2-digit"][s-1];break;case"H":a.hourCycle="h23",a.hour=["numeric","2-digit"][s-1];break;case"K":a.hourCycle="h11",a.hour=["numeric","2-digit"][s-1];break;case"k":a.hourCycle="h24",a.hour=["numeric","2-digit"][s-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":a.minute=["numeric","2-digit"][s-1];break;case"s":a.second=["numeric","2-digit"][s-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":a.timeZoneName=s<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),a}var LT=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function BT(n){if(n.length===0)throw new Error("Number skeleton cannot be empty");for(var a=n.split(LT).filter(function(A){return A.length>0}),i=[],s=0,u=a;s<u.length;s++){var f=u[s],d=f.split("/");if(d.length===0)throw new Error("Invalid number skeleton");for(var h=d[0],m=d.slice(1),g=0,b=m;g<b.length;g++){var _=b[g];if(_.length===0)throw new Error("Invalid number skeleton")}i.push({stem:h,options:m})}return i}function UT(n){return n.replace(/^(.*?)-/,"")}var _y=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,a1=/^(@+)?(\+|#+)?[rs]?$/g,jT=/(\*)(0+)|(#+)(0+)|(0+)/g,r1=/^(0+)$/;function Ey(n){var a={};return n[n.length-1]==="r"?a.roundingPriority="morePrecision":n[n.length-1]==="s"&&(a.roundingPriority="lessPrecision"),n.replace(a1,function(i,s,u){return typeof u!="string"?(a.minimumSignificantDigits=s.length,a.maximumSignificantDigits=s.length):u==="+"?a.minimumSignificantDigits=s.length:s[0]==="#"?a.maximumSignificantDigits=s.length:(a.minimumSignificantDigits=s.length,a.maximumSignificantDigits=s.length+(typeof u=="string"?u.length:0)),""}),a}function i1(n){switch(n){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function HT(n){var a;if(n[0]==="E"&&n[1]==="E"?(a={notation:"engineering"},n=n.slice(2)):n[0]==="E"&&(a={notation:"scientific"},n=n.slice(1)),a){var i=n.slice(0,2);if(i==="+!"?(a.signDisplay="always",n=n.slice(2)):i==="+?"&&(a.signDisplay="exceptZero",n=n.slice(2)),!r1.test(n))throw new Error("Malformed concise eng/scientific notation");a.minimumIntegerDigits=n.length}return a}function Sy(n){var a={},i=i1(n);return i||a}function IT(n){for(var a={},i=0,s=n;i<s.length;i++){var u=s[i];switch(u.stem){case"percent":case"%":a.style="percent";continue;case"%x100":a.style="percent",a.scale=100;continue;case"currency":a.style="currency",a.currency=u.options[0];continue;case"group-off":case",_":a.useGrouping=!1;continue;case"precision-integer":case".":a.maximumFractionDigits=0;continue;case"measure-unit":case"unit":a.style="unit",a.unit=UT(u.options[0]);continue;case"compact-short":case"K":a.notation="compact",a.compactDisplay="short";continue;case"compact-long":case"KK":a.notation="compact",a.compactDisplay="long";continue;case"scientific":a=se(se(se({},a),{notation:"scientific"}),u.options.reduce(function(m,g){return se(se({},m),Sy(g))},{}));continue;case"engineering":a=se(se(se({},a),{notation:"engineering"}),u.options.reduce(function(m,g){return se(se({},m),Sy(g))},{}));continue;case"notation-simple":a.notation="standard";continue;case"unit-width-narrow":a.currencyDisplay="narrowSymbol",a.unitDisplay="narrow";continue;case"unit-width-short":a.currencyDisplay="code",a.unitDisplay="short";continue;case"unit-width-full-name":a.currencyDisplay="name",a.unitDisplay="long";continue;case"unit-width-iso-code":a.currencyDisplay="symbol";continue;case"scale":a.scale=parseFloat(u.options[0]);continue;case"rounding-mode-floor":a.roundingMode="floor";continue;case"rounding-mode-ceiling":a.roundingMode="ceil";continue;case"rounding-mode-down":a.roundingMode="trunc";continue;case"rounding-mode-up":a.roundingMode="expand";continue;case"rounding-mode-half-even":a.roundingMode="halfEven";continue;case"rounding-mode-half-down":a.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":a.roundingMode="halfExpand";continue;case"integer-width":if(u.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");u.options[0].replace(jT,function(m,g,b,_,A,U){if(g)a.minimumIntegerDigits=b.length;else{if(_&&A)throw new Error("We currently do not support maximum integer digits");if(U)throw new Error("We currently do not support exact integer digits")}return""});continue}if(r1.test(u.stem)){a.minimumIntegerDigits=u.stem.length;continue}if(_y.test(u.stem)){if(u.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");u.stem.replace(_y,function(m,g,b,_,A,U){return b==="*"?a.minimumFractionDigits=g.length:_&&_[0]==="#"?a.maximumFractionDigits=_.length:A&&U?(a.minimumFractionDigits=A.length,a.maximumFractionDigits=A.length+U.length):(a.minimumFractionDigits=g.length,a.maximumFractionDigits=g.length),""});var f=u.options[0];f==="w"?a=se(se({},a),{trailingZeroDisplay:"stripIfInteger"}):f&&(a=se(se({},a),Ey(f)));continue}if(a1.test(u.stem)){a=se(se({},a),Ey(u.stem));continue}var d=i1(u.stem);d&&(a=se(se({},a),d));var h=HT(u.stem);h&&(a=se(se({},a),h))}return a}var Ro={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function zT(n,a){for(var i="",s=0;s<n.length;s++){var u=n.charAt(s);if(u==="j"){for(var f=0;s+1<n.length&&n.charAt(s+1)===u;)f++,s++;var d=1+(f&1),h=f<2?1:3+(f>>1),m="a",g=GT(a);for((g=="H"||g=="k")&&(h=0);h-- >0;)i+=m;for(;d-- >0;)i=g+i}else u==="J"?i+="H":i+=u}return i}function GT(n){var a=n.hourCycle;if(a===void 0&&n.hourCycles&&n.hourCycles.length&&(a=n.hourCycles[0]),a)switch(a){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i=n.language,s;i!=="root"&&(s=n.maximize().region);var u=Ro[s||""]||Ro[i||""]||Ro["".concat(i,"-001")]||Ro["001"];return u[0]}var ed,kT=new RegExp("^".concat(n1.source,"*")),qT=new RegExp("".concat(n1.source,"*$"));function Be(n,a){return{start:n,end:a}}var FT=!!String.prototype.startsWith&&"_a".startsWith("a",1),VT=!!String.fromCodePoint,YT=!!Object.fromEntries,PT=!!String.prototype.codePointAt,XT=!!String.prototype.trimStart,ZT=!!String.prototype.trimEnd,QT=!!Number.isSafeInteger,KT=QT?Number.isSafeInteger:function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n&&Math.abs(n)<=9007199254740991},ah=!0;try{var $T=s1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ah=((ed=$T.exec("a"))===null||ed===void 0?void 0:ed[0])==="a"}catch{ah=!1}var Ty=FT?function(a,i,s){return a.startsWith(i,s)}:function(a,i,s){return a.slice(s,s+i.length)===i},rh=VT?String.fromCodePoint:function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];for(var s="",u=a.length,f=0,d;u>f;){if(d=a[f++],d>1114111)throw RangeError(d+" is not a valid code point");s+=d<65536?String.fromCharCode(d):String.fromCharCode(((d-=65536)>>10)+55296,d%1024+56320)}return s},Ay=YT?Object.fromEntries:function(a){for(var i={},s=0,u=a;s<u.length;s++){var f=u[s],d=f[0],h=f[1];i[d]=h}return i},l1=PT?function(a,i){return a.codePointAt(i)}:function(a,i){var s=a.length;if(!(i<0||i>=s)){var u=a.charCodeAt(i),f;return u<55296||u>56319||i+1===s||(f=a.charCodeAt(i+1))<56320||f>57343?u:(u-55296<<10)+(f-56320)+65536}},WT=XT?function(a){return a.trimStart()}:function(a){return a.replace(kT,"")},JT=ZT?function(a){return a.trimEnd()}:function(a){return a.replace(qT,"")};function s1(n,a){return new RegExp(n,a)}var ih;if(ah){var Oy=s1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ih=function(a,i){var s;Oy.lastIndex=i;var u=Oy.exec(a);return(s=u[1])!==null&&s!==void 0?s:""}}else ih=function(a,i){for(var s=[];;){var u=l1(a,i);if(u===void 0||o1(u)||aA(u))break;s.push(u),i+=u>=65536?2:1}return rh.apply(void 0,s)};var eA=(function(){function n(a,i){i===void 0&&(i={}),this.message=a,this.position={offset:0,line:1,column:1},this.ignoreTag=!!i.ignoreTag,this.locale=i.locale,this.requiresOtherClause=!!i.requiresOtherClause,this.shouldParseSkeletons=!!i.shouldParseSkeletons}return n.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},n.prototype.parseMessage=function(a,i,s){for(var u=[];!this.isEOF();){var f=this.char();if(f===123){var d=this.parseArgument(a,s);if(d.err)return d;u.push(d.val)}else{if(f===125&&a>0)break;if(f===35&&(i==="plural"||i==="selectordinal")){var h=this.clonePosition();this.bump(),u.push({type:$e.pound,location:Be(h,this.clonePosition())})}else if(f===60&&!this.ignoreTag&&this.peek()===47){if(s)break;return this.error(De.UNMATCHED_CLOSING_TAG,Be(this.clonePosition(),this.clonePosition()))}else if(f===60&&!this.ignoreTag&&lh(this.peek()||0)){var d=this.parseTag(a,i);if(d.err)return d;u.push(d.val)}else{var d=this.parseLiteral(a,i);if(d.err)return d;u.push(d.val)}}}return{val:u,err:null}},n.prototype.parseTag=function(a,i){var s=this.clonePosition();this.bump();var u=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:$e.literal,value:"<".concat(u,"/>"),location:Be(s,this.clonePosition())},err:null};if(this.bumpIf(">")){var f=this.parseMessage(a+1,i,!0);if(f.err)return f;var d=f.val,h=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!lh(this.char()))return this.error(De.INVALID_TAG,Be(h,this.clonePosition()));var m=this.clonePosition(),g=this.parseTagName();return u!==g?this.error(De.UNMATCHED_CLOSING_TAG,Be(m,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:$e.tag,value:u,children:d,location:Be(s,this.clonePosition())},err:null}:this.error(De.INVALID_TAG,Be(h,this.clonePosition())))}else return this.error(De.UNCLOSED_TAG,Be(s,this.clonePosition()))}else return this.error(De.INVALID_TAG,Be(s,this.clonePosition()))},n.prototype.parseTagName=function(){var a=this.offset();for(this.bump();!this.isEOF()&&nA(this.char());)this.bump();return this.message.slice(a,this.offset())},n.prototype.parseLiteral=function(a,i){for(var s=this.clonePosition(),u="";;){var f=this.tryParseQuote(i);if(f){u+=f;continue}var d=this.tryParseUnquoted(a,i);if(d){u+=d;continue}var h=this.tryParseLeftAngleBracket();if(h){u+=h;continue}break}var m=Be(s,this.clonePosition());return{val:{type:$e.literal,value:u,location:m},err:null}},n.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!tA(this.peek()||0))?(this.bump(),"<"):null},n.prototype.tryParseQuote=function(a){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(a==="plural"||a==="selectordinal")break;return null;default:return null}this.bump();var i=[this.char()];for(this.bump();!this.isEOF();){var s=this.char();if(s===39)if(this.peek()===39)i.push(39),this.bump();else{this.bump();break}else i.push(s);this.bump()}return rh.apply(void 0,i)},n.prototype.tryParseUnquoted=function(a,i){if(this.isEOF())return null;var s=this.char();return s===60||s===123||s===35&&(i==="plural"||i==="selectordinal")||s===125&&a>0?null:(this.bump(),rh(s))},n.prototype.parseArgument=function(a,i){var s=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(De.EXPECT_ARGUMENT_CLOSING_BRACE,Be(s,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(De.EMPTY_ARGUMENT,Be(s,this.clonePosition()));var u=this.parseIdentifierIfPossible().value;if(!u)return this.error(De.MALFORMED_ARGUMENT,Be(s,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(De.EXPECT_ARGUMENT_CLOSING_BRACE,Be(s,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:$e.argument,value:u,location:Be(s,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(De.EXPECT_ARGUMENT_CLOSING_BRACE,Be(s,this.clonePosition())):this.parseArgumentOptions(a,i,u,s);default:return this.error(De.MALFORMED_ARGUMENT,Be(s,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var a=this.clonePosition(),i=this.offset(),s=ih(this.message,i),u=i+s.length;this.bumpTo(u);var f=this.clonePosition(),d=Be(a,f);return{value:s,location:d}},n.prototype.parseArgumentOptions=function(a,i,s,u){var f,d=this.clonePosition(),h=this.parseIdentifierIfPossible().value,m=this.clonePosition();switch(h){case"":return this.error(De.EXPECT_ARGUMENT_TYPE,Be(d,m));case"number":case"date":case"time":{this.bumpSpace();var g=null;if(this.bumpIf(",")){this.bumpSpace();var b=this.clonePosition(),_=this.parseSimpleArgStyleIfPossible();if(_.err)return _;var A=JT(_.val);if(A.length===0)return this.error(De.EXPECT_ARGUMENT_STYLE,Be(this.clonePosition(),this.clonePosition()));var U=Be(b,this.clonePosition());g={style:A,styleLocation:U}}var x=this.tryParseArgumentClose(u);if(x.err)return x;var k=Be(u,this.clonePosition());if(g&&Ty(g?.style,"::",0)){var I=WT(g.style.slice(2));if(h==="number"){var _=this.parseNumberSkeletonFromString(I,g.styleLocation);return _.err?_:{val:{type:$e.number,value:s,location:k,style:_.val},err:null}}else{if(I.length===0)return this.error(De.EXPECT_DATE_TIME_SKELETON,k);var E=I;this.locale&&(E=zT(I,this.locale));var A={type:Ni.dateTime,pattern:E,location:g.styleLocation,parsedOptions:this.shouldParseSkeletons?DT(E):{}},C=h==="date"?$e.date:$e.time;return{val:{type:C,value:s,location:k,style:A},err:null}}}return{val:{type:h==="number"?$e.number:h==="date"?$e.date:$e.time,value:s,location:k,style:(f=g?.style)!==null&&f!==void 0?f:null},err:null}}case"plural":case"selectordinal":case"select":{var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(De.EXPECT_SELECT_ARGUMENT_OPTIONS,Be(S,se({},S)));this.bumpSpace();var H=this.parseIdentifierIfPossible(),N=0;if(h!=="select"&&H.value==="offset"){if(!this.bumpIf(":"))return this.error(De.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Be(this.clonePosition(),this.clonePosition()));this.bumpSpace();var _=this.tryParseDecimalInteger(De.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,De.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(_.err)return _;this.bumpSpace(),H=this.parseIdentifierIfPossible(),N=_.val}var Z=this.tryParsePluralOrSelectOptions(a,h,i,H);if(Z.err)return Z;var x=this.tryParseArgumentClose(u);if(x.err)return x;var X=Be(u,this.clonePosition());return h==="select"?{val:{type:$e.select,value:s,options:Ay(Z.val),location:X},err:null}:{val:{type:$e.plural,value:s,options:Ay(Z.val),offset:N,pluralType:h==="plural"?"cardinal":"ordinal",location:X},err:null}}default:return this.error(De.INVALID_ARGUMENT_TYPE,Be(d,m))}},n.prototype.tryParseArgumentClose=function(a){return this.isEOF()||this.char()!==125?this.error(De.EXPECT_ARGUMENT_CLOSING_BRACE,Be(a,this.clonePosition())):(this.bump(),{val:!0,err:null})},n.prototype.parseSimpleArgStyleIfPossible=function(){for(var a=0,i=this.clonePosition();!this.isEOF();){var s=this.char();switch(s){case 39:{this.bump();var u=this.clonePosition();if(!this.bumpUntil("'"))return this.error(De.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Be(u,this.clonePosition()));this.bump();break}case 123:{a+=1,this.bump();break}case 125:{if(a>0)a-=1;else return{val:this.message.slice(i.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(i.offset,this.offset()),err:null}},n.prototype.parseNumberSkeletonFromString=function(a,i){var s=[];try{s=BT(a)}catch{return this.error(De.INVALID_NUMBER_SKELETON,i)}return{val:{type:Ni.number,tokens:s,location:i,parsedOptions:this.shouldParseSkeletons?IT(s):{}},err:null}},n.prototype.tryParsePluralOrSelectOptions=function(a,i,s,u){for(var f,d=!1,h=[],m=new Set,g=u.value,b=u.location;;){if(g.length===0){var _=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var A=this.tryParseDecimalInteger(De.EXPECT_PLURAL_ARGUMENT_SELECTOR,De.INVALID_PLURAL_ARGUMENT_SELECTOR);if(A.err)return A;b=Be(_,this.clonePosition()),g=this.message.slice(_.offset,this.offset())}else break}if(m.has(g))return this.error(i==="select"?De.DUPLICATE_SELECT_ARGUMENT_SELECTOR:De.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,b);g==="other"&&(d=!0),this.bumpSpace();var U=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?De.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:De.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Be(this.clonePosition(),this.clonePosition()));var x=this.parseMessage(a+1,i,s);if(x.err)return x;var k=this.tryParseArgumentClose(U);if(k.err)return k;h.push([g,{value:x.val,location:Be(U,this.clonePosition())}]),m.add(g),this.bumpSpace(),f=this.parseIdentifierIfPossible(),g=f.value,b=f.location}return h.length===0?this.error(i==="select"?De.EXPECT_SELECT_ARGUMENT_SELECTOR:De.EXPECT_PLURAL_ARGUMENT_SELECTOR,Be(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!d?this.error(De.MISSING_OTHER_CLAUSE,Be(this.clonePosition(),this.clonePosition())):{val:h,err:null}},n.prototype.tryParseDecimalInteger=function(a,i){var s=1,u=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(s=-1);for(var f=!1,d=0;!this.isEOF();){var h=this.char();if(h>=48&&h<=57)f=!0,d=d*10+(h-48),this.bump();else break}var m=Be(u,this.clonePosition());return f?(d*=s,KT(d)?{val:d,err:null}:this.error(i,m)):this.error(a,m)},n.prototype.offset=function(){return this.position.offset},n.prototype.isEOF=function(){return this.offset()===this.message.length},n.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},n.prototype.char=function(){var a=this.position.offset;if(a>=this.message.length)throw Error("out of bound");var i=l1(this.message,a);if(i===void 0)throw Error("Offset ".concat(a," is at invalid UTF-16 code unit boundary"));return i},n.prototype.error=function(a,i){return{val:null,err:{kind:a,message:this.message,location:i}}},n.prototype.bump=function(){if(!this.isEOF()){var a=this.char();a===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=a<65536?1:2)}},n.prototype.bumpIf=function(a){if(Ty(this.message,a,this.offset())){for(var i=0;i<a.length;i++)this.bump();return!0}return!1},n.prototype.bumpUntil=function(a){var i=this.offset(),s=this.message.indexOf(a,i);return s>=0?(this.bumpTo(s),!0):(this.bumpTo(this.message.length),!1)},n.prototype.bumpTo=function(a){if(this.offset()>a)throw Error("targetOffset ".concat(a," must be greater than or equal to the current offset ").concat(this.offset()));for(a=Math.min(a,this.message.length);;){var i=this.offset();if(i===a)break;if(i>a)throw Error("targetOffset ".concat(a," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},n.prototype.bumpSpace=function(){for(;!this.isEOF()&&o1(this.char());)this.bump()},n.prototype.peek=function(){if(this.isEOF())return null;var a=this.char(),i=this.offset(),s=this.message.charCodeAt(i+(a>=65536?2:1));return s??null},n})();function lh(n){return n>=97&&n<=122||n>=65&&n<=90}function tA(n){return lh(n)||n===47}function nA(n){return n===45||n===46||n>=48&&n<=57||n===95||n>=97&&n<=122||n>=65&&n<=90||n==183||n>=192&&n<=214||n>=216&&n<=246||n>=248&&n<=893||n>=895&&n<=8191||n>=8204&&n<=8205||n>=8255&&n<=8256||n>=8304&&n<=8591||n>=11264&&n<=12271||n>=12289&&n<=55295||n>=63744&&n<=64975||n>=65008&&n<=65533||n>=65536&&n<=983039}function o1(n){return n>=9&&n<=13||n===32||n===133||n>=8206&&n<=8207||n===8232||n===8233}function aA(n){return n>=33&&n<=35||n===36||n>=37&&n<=39||n===40||n===41||n===42||n===43||n===44||n===45||n>=46&&n<=47||n>=58&&n<=59||n>=60&&n<=62||n>=63&&n<=64||n===91||n===92||n===93||n===94||n===96||n===123||n===124||n===125||n===126||n===161||n>=162&&n<=165||n===166||n===167||n===169||n===171||n===172||n===174||n===176||n===177||n===182||n===187||n===191||n===215||n===247||n>=8208&&n<=8213||n>=8214&&n<=8215||n===8216||n===8217||n===8218||n>=8219&&n<=8220||n===8221||n===8222||n===8223||n>=8224&&n<=8231||n>=8240&&n<=8248||n===8249||n===8250||n>=8251&&n<=8254||n>=8257&&n<=8259||n===8260||n===8261||n===8262||n>=8263&&n<=8273||n===8274||n===8275||n>=8277&&n<=8286||n>=8592&&n<=8596||n>=8597&&n<=8601||n>=8602&&n<=8603||n>=8604&&n<=8607||n===8608||n>=8609&&n<=8610||n===8611||n>=8612&&n<=8613||n===8614||n>=8615&&n<=8621||n===8622||n>=8623&&n<=8653||n>=8654&&n<=8655||n>=8656&&n<=8657||n===8658||n===8659||n===8660||n>=8661&&n<=8691||n>=8692&&n<=8959||n>=8960&&n<=8967||n===8968||n===8969||n===8970||n===8971||n>=8972&&n<=8991||n>=8992&&n<=8993||n>=8994&&n<=9e3||n===9001||n===9002||n>=9003&&n<=9083||n===9084||n>=9085&&n<=9114||n>=9115&&n<=9139||n>=9140&&n<=9179||n>=9180&&n<=9185||n>=9186&&n<=9254||n>=9255&&n<=9279||n>=9280&&n<=9290||n>=9291&&n<=9311||n>=9472&&n<=9654||n===9655||n>=9656&&n<=9664||n===9665||n>=9666&&n<=9719||n>=9720&&n<=9727||n>=9728&&n<=9838||n===9839||n>=9840&&n<=10087||n===10088||n===10089||n===10090||n===10091||n===10092||n===10093||n===10094||n===10095||n===10096||n===10097||n===10098||n===10099||n===10100||n===10101||n>=10132&&n<=10175||n>=10176&&n<=10180||n===10181||n===10182||n>=10183&&n<=10213||n===10214||n===10215||n===10216||n===10217||n===10218||n===10219||n===10220||n===10221||n===10222||n===10223||n>=10224&&n<=10239||n>=10240&&n<=10495||n>=10496&&n<=10626||n===10627||n===10628||n===10629||n===10630||n===10631||n===10632||n===10633||n===10634||n===10635||n===10636||n===10637||n===10638||n===10639||n===10640||n===10641||n===10642||n===10643||n===10644||n===10645||n===10646||n===10647||n===10648||n>=10649&&n<=10711||n===10712||n===10713||n===10714||n===10715||n>=10716&&n<=10747||n===10748||n===10749||n>=10750&&n<=11007||n>=11008&&n<=11055||n>=11056&&n<=11076||n>=11077&&n<=11078||n>=11079&&n<=11084||n>=11085&&n<=11123||n>=11124&&n<=11125||n>=11126&&n<=11157||n===11158||n>=11159&&n<=11263||n>=11776&&n<=11777||n===11778||n===11779||n===11780||n===11781||n>=11782&&n<=11784||n===11785||n===11786||n===11787||n===11788||n===11789||n>=11790&&n<=11798||n===11799||n>=11800&&n<=11801||n===11802||n===11803||n===11804||n===11805||n>=11806&&n<=11807||n===11808||n===11809||n===11810||n===11811||n===11812||n===11813||n===11814||n===11815||n===11816||n===11817||n>=11818&&n<=11822||n===11823||n>=11824&&n<=11833||n>=11834&&n<=11835||n>=11836&&n<=11839||n===11840||n===11841||n===11842||n>=11843&&n<=11855||n>=11856&&n<=11857||n===11858||n>=11859&&n<=11903||n>=12289&&n<=12291||n===12296||n===12297||n===12298||n===12299||n===12300||n===12301||n===12302||n===12303||n===12304||n===12305||n>=12306&&n<=12307||n===12308||n===12309||n===12310||n===12311||n===12312||n===12313||n===12314||n===12315||n===12316||n===12317||n>=12318&&n<=12319||n===12320||n===12336||n===64830||n===64831||n>=65093&&n<=65094}function sh(n){n.forEach(function(a){if(delete a.location,Wv(a)||Jv(a))for(var i in a.options)delete a.options[i].location,sh(a.options[i].value);else Qv(a)&&t1(a.style)||(Kv(a)||$v(a))&&nh(a.style)?delete a.style.location:e1(a)&&sh(a.children)})}function rA(n,a){a===void 0&&(a={}),a=se({shouldParseSkeletons:!0,requiresOtherClause:!0},a);var i=new eA(n,a).parse();if(i.err){var s=SyntaxError(De[i.err.kind]);throw s.location=i.err.location,s.originalMessage=i.err.message,s}return a?.captureLocation||sh(i.val),i.val}var Jn;(function(n){n.MISSING_VALUE="MISSING_VALUE",n.INVALID_VALUE="INVALID_VALUE",n.MISSING_INTL_API="MISSING_INTL_API"})(Jn||(Jn={}));var cr=(function(n){Rn(a,n);function a(i,s,u){var f=n.call(this,i)||this;return f.code=s,f.originalMessage=u,f}return a.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},a})(Error),xy=(function(n){Rn(a,n);function a(i,s,u,f){return n.call(this,'Invalid values for "'.concat(i,'": "').concat(s,'". Options are "').concat(Object.keys(u).join('", "'),'"'),Jn.INVALID_VALUE,f)||this}return a})(cr),iA=(function(n){Rn(a,n);function a(i,s,u){return n.call(this,'Value for "'.concat(i,'" must be of type ').concat(s),Jn.INVALID_VALUE,u)||this}return a})(cr),lA=(function(n){Rn(a,n);function a(i,s){return n.call(this,'The intl string context variable "'.concat(i,'" was not provided to the string "').concat(s,'"'),Jn.MISSING_VALUE,s)||this}return a})(cr),zt;(function(n){n[n.literal=0]="literal",n[n.object=1]="object"})(zt||(zt={}));function sA(n){return n.length<2?n:n.reduce(function(a,i){var s=a[a.length-1];return!s||s.type!==zt.literal||i.type!==zt.literal?a.push(i):s.value+=i.value,a},[])}function u1(n){return typeof n=="function"}function Jo(n,a,i,s,u,f,d){if(n.length===1&&vy(n[0]))return[{type:zt.literal,value:n[0].value}];for(var h=[],m=0,g=n;m<g.length;m++){var b=g[m];if(vy(b)){h.push({type:zt.literal,value:b.value});continue}if(NT(b)){typeof f=="number"&&h.push({type:zt.literal,value:i.getNumberFormat(a).format(f)});continue}var _=b.value;if(!(u&&_ in u))throw new lA(_,d);var A=u[_];if(wT(b)){(!A||typeof A=="string"||typeof A=="number")&&(A=typeof A=="string"||typeof A=="number"?String(A):""),h.push({type:typeof A=="string"?zt.literal:zt.object,value:A});continue}if(Kv(b)){var U=typeof b.style=="string"?s.date[b.style]:nh(b.style)?b.style.parsedOptions:void 0;h.push({type:zt.literal,value:i.getDateTimeFormat(a,U).format(A)});continue}if($v(b)){var U=typeof b.style=="string"?s.time[b.style]:nh(b.style)?b.style.parsedOptions:s.time.medium;h.push({type:zt.literal,value:i.getDateTimeFormat(a,U).format(A)});continue}if(Qv(b)){var U=typeof b.style=="string"?s.number[b.style]:t1(b.style)?b.style.parsedOptions:void 0;U&&U.scale&&(A=A*(U.scale||1)),h.push({type:zt.literal,value:i.getNumberFormat(a,U).format(A)});continue}if(e1(b)){var x=b.children,k=b.value,I=u[k];if(!u1(I))throw new iA(k,"function",d);var E=Jo(x,a,i,s,u,f),C=I(E.map(function(N){return N.value}));Array.isArray(C)||(C=[C]),h.push.apply(h,C.map(function(N){return{type:typeof N=="string"?zt.literal:zt.object,value:N}}))}if(Wv(b)){var S=b.options[A]||b.options.other;if(!S)throw new xy(b.value,A,Object.keys(b.options),d);h.push.apply(h,Jo(S.value,a,i,s,u));continue}if(Jv(b)){var S=b.options["=".concat(A)];if(!S){if(!Intl.PluralRules)throw new cr(`Intl.PluralRules is not available in this environment.
65
+ */var by;function _T(){return by||(by=1,(function(n){(function(){var a={}.hasOwnProperty;function i(){for(var f="",d=0;d<arguments.length;d++){var h=arguments[d];h&&(f=u(f,s(h)))}return f}function s(f){if(typeof f=="string"||typeof f=="number")return f;if(typeof f!="object")return"";if(Array.isArray(f))return i.apply(null,f);if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]"))return f.toString();var d="";for(var h in f)a.call(f,h)&&f[h]&&(d=u(d,h));return d}function u(f,d){return d?f?f+" "+d:f+d:f}n.exports?(i.default=i,n.exports=i):window.classNames=i})()})(Jf)),Jf.exports}var ET=_T();const K=vu(ET);var th=function(n,a){return th=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(i[u]=s[u])},th(n,a)};function Cn(n,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");th(n,a);function i(){this.constructor=n}n.prototype=a===null?Object.create(a):(i.prototype=a.prototype,new i)}var se=function(){return se=Object.assign||function(a){for(var i,s=1,u=arguments.length;s<u;s++){i=arguments[s];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(a[f]=i[f])}return a},se.apply(this,arguments)};function Eu(n,a){var i={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&a.indexOf(s)<0&&(i[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,s=Object.getOwnPropertySymbols(n);u<s.length;u++)a.indexOf(s[u])<0&&Object.prototype.propertyIsEnumerable.call(n,s[u])&&(i[s[u]]=n[s[u]]);return i}function Kn(n,a,i){if(i||arguments.length===2)for(var s=0,u=a.length,f;s<u;s++)(f||!(s in a))&&(f||(f=Array.prototype.slice.call(a,0,s)),f[s]=a[s]);return n.concat(f||Array.prototype.slice.call(a))}function Zn(n,a){var i=a&&a.cache?a.cache:RT,s=a&&a.serializer?a.serializer:xT,u=a&&a.strategy?a.strategy:AT;return u(n,{cache:i,serializer:s})}function ST(n){return n==null||typeof n=="number"||typeof n=="boolean"}function TT(n,a,i,s){var u=ST(s)?s:i(s),f=a.get(u);return typeof f>"u"&&(f=n.call(this,s),a.set(u,f)),f}function Xv(n,a,i){var s=Array.prototype.slice.call(arguments,3),u=i(s),f=a.get(u);return typeof f>"u"&&(f=n.apply(this,s),a.set(u,f)),f}function Zv(n,a,i,s,u){return i.bind(a,n,s,u)}function AT(n,a){var i=n.length===1?TT:Xv;return Zv(n,this,i,a.cache.create(),a.serializer)}function OT(n,a){return Zv(n,this,Xv,a.cache.create(),a.serializer)}var xT=function(){return JSON.stringify(arguments)},CT=(function(){function n(){this.cache=Object.create(null)}return n.prototype.get=function(a){return this.cache[a]},n.prototype.set=function(a,i){this.cache[a]=i},n})(),RT={create:function(){return new CT}},Qn={variadic:OT},De;(function(n){n[n.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",n[n.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",n[n.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",n[n.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",n[n.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",n[n.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",n[n.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",n[n.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",n[n.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",n[n.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",n[n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",n[n.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",n[n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",n[n.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",n[n.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",n[n.INVALID_TAG=23]="INVALID_TAG",n[n.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",n[n.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",n[n.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(De||(De={}));var $e;(function(n){n[n.literal=0]="literal",n[n.argument=1]="argument",n[n.number=2]="number",n[n.date=3]="date",n[n.time=4]="time",n[n.select=5]="select",n[n.plural=6]="plural",n[n.pound=7]="pound",n[n.tag=8]="tag"})($e||($e={}));var wi;(function(n){n[n.number=0]="number",n[n.dateTime=1]="dateTime"})(wi||(wi={}));function vy(n){return n.type===$e.literal}function wT(n){return n.type===$e.argument}function Qv(n){return n.type===$e.number}function Kv(n){return n.type===$e.date}function $v(n){return n.type===$e.time}function Wv(n){return n.type===$e.select}function Jv(n){return n.type===$e.plural}function NT(n){return n.type===$e.pound}function e1(n){return n.type===$e.tag}function t1(n){return!!(n&&typeof n=="object"&&n.type===wi.number)}function nh(n){return!!(n&&typeof n=="object"&&n.type===wi.dateTime)}var n1=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,MT=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function DT(n){var a={};return n.replace(MT,function(i){var s=i.length;switch(i[0]){case"G":a.era=s===4?"long":s===5?"narrow":"short";break;case"y":a.year=s===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":a.month=["numeric","2-digit","short","long","narrow"][s-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":a.day=["numeric","2-digit"][s-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":a.weekday=s===4?"long":s===5?"narrow":"short";break;case"e":if(s<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");a.weekday=["short","long","narrow","short"][s-4];break;case"c":if(s<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");a.weekday=["short","long","narrow","short"][s-4];break;case"a":a.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":a.hourCycle="h12",a.hour=["numeric","2-digit"][s-1];break;case"H":a.hourCycle="h23",a.hour=["numeric","2-digit"][s-1];break;case"K":a.hourCycle="h11",a.hour=["numeric","2-digit"][s-1];break;case"k":a.hourCycle="h24",a.hour=["numeric","2-digit"][s-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":a.minute=["numeric","2-digit"][s-1];break;case"s":a.second=["numeric","2-digit"][s-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":a.timeZoneName=s<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),a}var LT=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function BT(n){if(n.length===0)throw new Error("Number skeleton cannot be empty");for(var a=n.split(LT).filter(function(A){return A.length>0}),i=[],s=0,u=a;s<u.length;s++){var f=u[s],d=f.split("/");if(d.length===0)throw new Error("Invalid number skeleton");for(var h=d[0],m=d.slice(1),g=0,b=m;g<b.length;g++){var _=b[g];if(_.length===0)throw new Error("Invalid number skeleton")}i.push({stem:h,options:m})}return i}function UT(n){return n.replace(/^(.*?)-/,"")}var _y=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,a1=/^(@+)?(\+|#+)?[rs]?$/g,jT=/(\*)(0+)|(#+)(0+)|(0+)/g,r1=/^(0+)$/;function Ey(n){var a={};return n[n.length-1]==="r"?a.roundingPriority="morePrecision":n[n.length-1]==="s"&&(a.roundingPriority="lessPrecision"),n.replace(a1,function(i,s,u){return typeof u!="string"?(a.minimumSignificantDigits=s.length,a.maximumSignificantDigits=s.length):u==="+"?a.minimumSignificantDigits=s.length:s[0]==="#"?a.maximumSignificantDigits=s.length:(a.minimumSignificantDigits=s.length,a.maximumSignificantDigits=s.length+(typeof u=="string"?u.length:0)),""}),a}function i1(n){switch(n){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function HT(n){var a;if(n[0]==="E"&&n[1]==="E"?(a={notation:"engineering"},n=n.slice(2)):n[0]==="E"&&(a={notation:"scientific"},n=n.slice(1)),a){var i=n.slice(0,2);if(i==="+!"?(a.signDisplay="always",n=n.slice(2)):i==="+?"&&(a.signDisplay="exceptZero",n=n.slice(2)),!r1.test(n))throw new Error("Malformed concise eng/scientific notation");a.minimumIntegerDigits=n.length}return a}function Sy(n){var a={},i=i1(n);return i||a}function IT(n){for(var a={},i=0,s=n;i<s.length;i++){var u=s[i];switch(u.stem){case"percent":case"%":a.style="percent";continue;case"%x100":a.style="percent",a.scale=100;continue;case"currency":a.style="currency",a.currency=u.options[0];continue;case"group-off":case",_":a.useGrouping=!1;continue;case"precision-integer":case".":a.maximumFractionDigits=0;continue;case"measure-unit":case"unit":a.style="unit",a.unit=UT(u.options[0]);continue;case"compact-short":case"K":a.notation="compact",a.compactDisplay="short";continue;case"compact-long":case"KK":a.notation="compact",a.compactDisplay="long";continue;case"scientific":a=se(se(se({},a),{notation:"scientific"}),u.options.reduce(function(m,g){return se(se({},m),Sy(g))},{}));continue;case"engineering":a=se(se(se({},a),{notation:"engineering"}),u.options.reduce(function(m,g){return se(se({},m),Sy(g))},{}));continue;case"notation-simple":a.notation="standard";continue;case"unit-width-narrow":a.currencyDisplay="narrowSymbol",a.unitDisplay="narrow";continue;case"unit-width-short":a.currencyDisplay="code",a.unitDisplay="short";continue;case"unit-width-full-name":a.currencyDisplay="name",a.unitDisplay="long";continue;case"unit-width-iso-code":a.currencyDisplay="symbol";continue;case"scale":a.scale=parseFloat(u.options[0]);continue;case"rounding-mode-floor":a.roundingMode="floor";continue;case"rounding-mode-ceiling":a.roundingMode="ceil";continue;case"rounding-mode-down":a.roundingMode="trunc";continue;case"rounding-mode-up":a.roundingMode="expand";continue;case"rounding-mode-half-even":a.roundingMode="halfEven";continue;case"rounding-mode-half-down":a.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":a.roundingMode="halfExpand";continue;case"integer-width":if(u.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");u.options[0].replace(jT,function(m,g,b,_,A,U){if(g)a.minimumIntegerDigits=b.length;else{if(_&&A)throw new Error("We currently do not support maximum integer digits");if(U)throw new Error("We currently do not support exact integer digits")}return""});continue}if(r1.test(u.stem)){a.minimumIntegerDigits=u.stem.length;continue}if(_y.test(u.stem)){if(u.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");u.stem.replace(_y,function(m,g,b,_,A,U){return b==="*"?a.minimumFractionDigits=g.length:_&&_[0]==="#"?a.maximumFractionDigits=_.length:A&&U?(a.minimumFractionDigits=A.length,a.maximumFractionDigits=A.length+U.length):(a.minimumFractionDigits=g.length,a.maximumFractionDigits=g.length),""});var f=u.options[0];f==="w"?a=se(se({},a),{trailingZeroDisplay:"stripIfInteger"}):f&&(a=se(se({},a),Ey(f)));continue}if(a1.test(u.stem)){a=se(se({},a),Ey(u.stem));continue}var d=i1(u.stem);d&&(a=se(se({},a),d));var h=HT(u.stem);h&&(a=se(se({},a),h))}return a}var Ro={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function zT(n,a){for(var i="",s=0;s<n.length;s++){var u=n.charAt(s);if(u==="j"){for(var f=0;s+1<n.length&&n.charAt(s+1)===u;)f++,s++;var d=1+(f&1),h=f<2?1:3+(f>>1),m="a",g=GT(a);for((g=="H"||g=="k")&&(h=0);h-- >0;)i+=m;for(;d-- >0;)i=g+i}else u==="J"?i+="H":i+=u}return i}function GT(n){var a=n.hourCycle;if(a===void 0&&n.hourCycles&&n.hourCycles.length&&(a=n.hourCycles[0]),a)switch(a){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i=n.language,s;i!=="root"&&(s=n.maximize().region);var u=Ro[s||""]||Ro[i||""]||Ro["".concat(i,"-001")]||Ro["001"];return u[0]}var ed,kT=new RegExp("^".concat(n1.source,"*")),qT=new RegExp("".concat(n1.source,"*$"));function Be(n,a){return{start:n,end:a}}var FT=!!String.prototype.startsWith&&"_a".startsWith("a",1),VT=!!String.fromCodePoint,YT=!!Object.fromEntries,PT=!!String.prototype.codePointAt,XT=!!String.prototype.trimStart,ZT=!!String.prototype.trimEnd,QT=!!Number.isSafeInteger,KT=QT?Number.isSafeInteger:function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n&&Math.abs(n)<=9007199254740991},ah=!0;try{var $T=s1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ah=((ed=$T.exec("a"))===null||ed===void 0?void 0:ed[0])==="a"}catch{ah=!1}var Ty=FT?function(a,i,s){return a.startsWith(i,s)}:function(a,i,s){return a.slice(s,s+i.length)===i},rh=VT?String.fromCodePoint:function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];for(var s="",u=a.length,f=0,d;u>f;){if(d=a[f++],d>1114111)throw RangeError(d+" is not a valid code point");s+=d<65536?String.fromCharCode(d):String.fromCharCode(((d-=65536)>>10)+55296,d%1024+56320)}return s},Ay=YT?Object.fromEntries:function(a){for(var i={},s=0,u=a;s<u.length;s++){var f=u[s],d=f[0],h=f[1];i[d]=h}return i},l1=PT?function(a,i){return a.codePointAt(i)}:function(a,i){var s=a.length;if(!(i<0||i>=s)){var u=a.charCodeAt(i),f;return u<55296||u>56319||i+1===s||(f=a.charCodeAt(i+1))<56320||f>57343?u:(u-55296<<10)+(f-56320)+65536}},WT=XT?function(a){return a.trimStart()}:function(a){return a.replace(kT,"")},JT=ZT?function(a){return a.trimEnd()}:function(a){return a.replace(qT,"")};function s1(n,a){return new RegExp(n,a)}var ih;if(ah){var Oy=s1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ih=function(a,i){var s;Oy.lastIndex=i;var u=Oy.exec(a);return(s=u[1])!==null&&s!==void 0?s:""}}else ih=function(a,i){for(var s=[];;){var u=l1(a,i);if(u===void 0||o1(u)||aA(u))break;s.push(u),i+=u>=65536?2:1}return rh.apply(void 0,s)};var eA=(function(){function n(a,i){i===void 0&&(i={}),this.message=a,this.position={offset:0,line:1,column:1},this.ignoreTag=!!i.ignoreTag,this.locale=i.locale,this.requiresOtherClause=!!i.requiresOtherClause,this.shouldParseSkeletons=!!i.shouldParseSkeletons}return n.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},n.prototype.parseMessage=function(a,i,s){for(var u=[];!this.isEOF();){var f=this.char();if(f===123){var d=this.parseArgument(a,s);if(d.err)return d;u.push(d.val)}else{if(f===125&&a>0)break;if(f===35&&(i==="plural"||i==="selectordinal")){var h=this.clonePosition();this.bump(),u.push({type:$e.pound,location:Be(h,this.clonePosition())})}else if(f===60&&!this.ignoreTag&&this.peek()===47){if(s)break;return this.error(De.UNMATCHED_CLOSING_TAG,Be(this.clonePosition(),this.clonePosition()))}else if(f===60&&!this.ignoreTag&&lh(this.peek()||0)){var d=this.parseTag(a,i);if(d.err)return d;u.push(d.val)}else{var d=this.parseLiteral(a,i);if(d.err)return d;u.push(d.val)}}}return{val:u,err:null}},n.prototype.parseTag=function(a,i){var s=this.clonePosition();this.bump();var u=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:$e.literal,value:"<".concat(u,"/>"),location:Be(s,this.clonePosition())},err:null};if(this.bumpIf(">")){var f=this.parseMessage(a+1,i,!0);if(f.err)return f;var d=f.val,h=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!lh(this.char()))return this.error(De.INVALID_TAG,Be(h,this.clonePosition()));var m=this.clonePosition(),g=this.parseTagName();return u!==g?this.error(De.UNMATCHED_CLOSING_TAG,Be(m,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:$e.tag,value:u,children:d,location:Be(s,this.clonePosition())},err:null}:this.error(De.INVALID_TAG,Be(h,this.clonePosition())))}else return this.error(De.UNCLOSED_TAG,Be(s,this.clonePosition()))}else return this.error(De.INVALID_TAG,Be(s,this.clonePosition()))},n.prototype.parseTagName=function(){var a=this.offset();for(this.bump();!this.isEOF()&&nA(this.char());)this.bump();return this.message.slice(a,this.offset())},n.prototype.parseLiteral=function(a,i){for(var s=this.clonePosition(),u="";;){var f=this.tryParseQuote(i);if(f){u+=f;continue}var d=this.tryParseUnquoted(a,i);if(d){u+=d;continue}var h=this.tryParseLeftAngleBracket();if(h){u+=h;continue}break}var m=Be(s,this.clonePosition());return{val:{type:$e.literal,value:u,location:m},err:null}},n.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!tA(this.peek()||0))?(this.bump(),"<"):null},n.prototype.tryParseQuote=function(a){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(a==="plural"||a==="selectordinal")break;return null;default:return null}this.bump();var i=[this.char()];for(this.bump();!this.isEOF();){var s=this.char();if(s===39)if(this.peek()===39)i.push(39),this.bump();else{this.bump();break}else i.push(s);this.bump()}return rh.apply(void 0,i)},n.prototype.tryParseUnquoted=function(a,i){if(this.isEOF())return null;var s=this.char();return s===60||s===123||s===35&&(i==="plural"||i==="selectordinal")||s===125&&a>0?null:(this.bump(),rh(s))},n.prototype.parseArgument=function(a,i){var s=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(De.EXPECT_ARGUMENT_CLOSING_BRACE,Be(s,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(De.EMPTY_ARGUMENT,Be(s,this.clonePosition()));var u=this.parseIdentifierIfPossible().value;if(!u)return this.error(De.MALFORMED_ARGUMENT,Be(s,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(De.EXPECT_ARGUMENT_CLOSING_BRACE,Be(s,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:$e.argument,value:u,location:Be(s,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(De.EXPECT_ARGUMENT_CLOSING_BRACE,Be(s,this.clonePosition())):this.parseArgumentOptions(a,i,u,s);default:return this.error(De.MALFORMED_ARGUMENT,Be(s,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var a=this.clonePosition(),i=this.offset(),s=ih(this.message,i),u=i+s.length;this.bumpTo(u);var f=this.clonePosition(),d=Be(a,f);return{value:s,location:d}},n.prototype.parseArgumentOptions=function(a,i,s,u){var f,d=this.clonePosition(),h=this.parseIdentifierIfPossible().value,m=this.clonePosition();switch(h){case"":return this.error(De.EXPECT_ARGUMENT_TYPE,Be(d,m));case"number":case"date":case"time":{this.bumpSpace();var g=null;if(this.bumpIf(",")){this.bumpSpace();var b=this.clonePosition(),_=this.parseSimpleArgStyleIfPossible();if(_.err)return _;var A=JT(_.val);if(A.length===0)return this.error(De.EXPECT_ARGUMENT_STYLE,Be(this.clonePosition(),this.clonePosition()));var U=Be(b,this.clonePosition());g={style:A,styleLocation:U}}var x=this.tryParseArgumentClose(u);if(x.err)return x;var k=Be(u,this.clonePosition());if(g&&Ty(g?.style,"::",0)){var I=WT(g.style.slice(2));if(h==="number"){var _=this.parseNumberSkeletonFromString(I,g.styleLocation);return _.err?_:{val:{type:$e.number,value:s,location:k,style:_.val},err:null}}else{if(I.length===0)return this.error(De.EXPECT_DATE_TIME_SKELETON,k);var E=I;this.locale&&(E=zT(I,this.locale));var A={type:wi.dateTime,pattern:E,location:g.styleLocation,parsedOptions:this.shouldParseSkeletons?DT(E):{}},C=h==="date"?$e.date:$e.time;return{val:{type:C,value:s,location:k,style:A},err:null}}}return{val:{type:h==="number"?$e.number:h==="date"?$e.date:$e.time,value:s,location:k,style:(f=g?.style)!==null&&f!==void 0?f:null},err:null}}case"plural":case"selectordinal":case"select":{var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(De.EXPECT_SELECT_ARGUMENT_OPTIONS,Be(S,se({},S)));this.bumpSpace();var H=this.parseIdentifierIfPossible(),N=0;if(h!=="select"&&H.value==="offset"){if(!this.bumpIf(":"))return this.error(De.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Be(this.clonePosition(),this.clonePosition()));this.bumpSpace();var _=this.tryParseDecimalInteger(De.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,De.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(_.err)return _;this.bumpSpace(),H=this.parseIdentifierIfPossible(),N=_.val}var Z=this.tryParsePluralOrSelectOptions(a,h,i,H);if(Z.err)return Z;var x=this.tryParseArgumentClose(u);if(x.err)return x;var X=Be(u,this.clonePosition());return h==="select"?{val:{type:$e.select,value:s,options:Ay(Z.val),location:X},err:null}:{val:{type:$e.plural,value:s,options:Ay(Z.val),offset:N,pluralType:h==="plural"?"cardinal":"ordinal",location:X},err:null}}default:return this.error(De.INVALID_ARGUMENT_TYPE,Be(d,m))}},n.prototype.tryParseArgumentClose=function(a){return this.isEOF()||this.char()!==125?this.error(De.EXPECT_ARGUMENT_CLOSING_BRACE,Be(a,this.clonePosition())):(this.bump(),{val:!0,err:null})},n.prototype.parseSimpleArgStyleIfPossible=function(){for(var a=0,i=this.clonePosition();!this.isEOF();){var s=this.char();switch(s){case 39:{this.bump();var u=this.clonePosition();if(!this.bumpUntil("'"))return this.error(De.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Be(u,this.clonePosition()));this.bump();break}case 123:{a+=1,this.bump();break}case 125:{if(a>0)a-=1;else return{val:this.message.slice(i.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(i.offset,this.offset()),err:null}},n.prototype.parseNumberSkeletonFromString=function(a,i){var s=[];try{s=BT(a)}catch{return this.error(De.INVALID_NUMBER_SKELETON,i)}return{val:{type:wi.number,tokens:s,location:i,parsedOptions:this.shouldParseSkeletons?IT(s):{}},err:null}},n.prototype.tryParsePluralOrSelectOptions=function(a,i,s,u){for(var f,d=!1,h=[],m=new Set,g=u.value,b=u.location;;){if(g.length===0){var _=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var A=this.tryParseDecimalInteger(De.EXPECT_PLURAL_ARGUMENT_SELECTOR,De.INVALID_PLURAL_ARGUMENT_SELECTOR);if(A.err)return A;b=Be(_,this.clonePosition()),g=this.message.slice(_.offset,this.offset())}else break}if(m.has(g))return this.error(i==="select"?De.DUPLICATE_SELECT_ARGUMENT_SELECTOR:De.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,b);g==="other"&&(d=!0),this.bumpSpace();var U=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?De.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:De.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Be(this.clonePosition(),this.clonePosition()));var x=this.parseMessage(a+1,i,s);if(x.err)return x;var k=this.tryParseArgumentClose(U);if(k.err)return k;h.push([g,{value:x.val,location:Be(U,this.clonePosition())}]),m.add(g),this.bumpSpace(),f=this.parseIdentifierIfPossible(),g=f.value,b=f.location}return h.length===0?this.error(i==="select"?De.EXPECT_SELECT_ARGUMENT_SELECTOR:De.EXPECT_PLURAL_ARGUMENT_SELECTOR,Be(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!d?this.error(De.MISSING_OTHER_CLAUSE,Be(this.clonePosition(),this.clonePosition())):{val:h,err:null}},n.prototype.tryParseDecimalInteger=function(a,i){var s=1,u=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(s=-1);for(var f=!1,d=0;!this.isEOF();){var h=this.char();if(h>=48&&h<=57)f=!0,d=d*10+(h-48),this.bump();else break}var m=Be(u,this.clonePosition());return f?(d*=s,KT(d)?{val:d,err:null}:this.error(i,m)):this.error(a,m)},n.prototype.offset=function(){return this.position.offset},n.prototype.isEOF=function(){return this.offset()===this.message.length},n.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},n.prototype.char=function(){var a=this.position.offset;if(a>=this.message.length)throw Error("out of bound");var i=l1(this.message,a);if(i===void 0)throw Error("Offset ".concat(a," is at invalid UTF-16 code unit boundary"));return i},n.prototype.error=function(a,i){return{val:null,err:{kind:a,message:this.message,location:i}}},n.prototype.bump=function(){if(!this.isEOF()){var a=this.char();a===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=a<65536?1:2)}},n.prototype.bumpIf=function(a){if(Ty(this.message,a,this.offset())){for(var i=0;i<a.length;i++)this.bump();return!0}return!1},n.prototype.bumpUntil=function(a){var i=this.offset(),s=this.message.indexOf(a,i);return s>=0?(this.bumpTo(s),!0):(this.bumpTo(this.message.length),!1)},n.prototype.bumpTo=function(a){if(this.offset()>a)throw Error("targetOffset ".concat(a," must be greater than or equal to the current offset ").concat(this.offset()));for(a=Math.min(a,this.message.length);;){var i=this.offset();if(i===a)break;if(i>a)throw Error("targetOffset ".concat(a," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},n.prototype.bumpSpace=function(){for(;!this.isEOF()&&o1(this.char());)this.bump()},n.prototype.peek=function(){if(this.isEOF())return null;var a=this.char(),i=this.offset(),s=this.message.charCodeAt(i+(a>=65536?2:1));return s??null},n})();function lh(n){return n>=97&&n<=122||n>=65&&n<=90}function tA(n){return lh(n)||n===47}function nA(n){return n===45||n===46||n>=48&&n<=57||n===95||n>=97&&n<=122||n>=65&&n<=90||n==183||n>=192&&n<=214||n>=216&&n<=246||n>=248&&n<=893||n>=895&&n<=8191||n>=8204&&n<=8205||n>=8255&&n<=8256||n>=8304&&n<=8591||n>=11264&&n<=12271||n>=12289&&n<=55295||n>=63744&&n<=64975||n>=65008&&n<=65533||n>=65536&&n<=983039}function o1(n){return n>=9&&n<=13||n===32||n===133||n>=8206&&n<=8207||n===8232||n===8233}function aA(n){return n>=33&&n<=35||n===36||n>=37&&n<=39||n===40||n===41||n===42||n===43||n===44||n===45||n>=46&&n<=47||n>=58&&n<=59||n>=60&&n<=62||n>=63&&n<=64||n===91||n===92||n===93||n===94||n===96||n===123||n===124||n===125||n===126||n===161||n>=162&&n<=165||n===166||n===167||n===169||n===171||n===172||n===174||n===176||n===177||n===182||n===187||n===191||n===215||n===247||n>=8208&&n<=8213||n>=8214&&n<=8215||n===8216||n===8217||n===8218||n>=8219&&n<=8220||n===8221||n===8222||n===8223||n>=8224&&n<=8231||n>=8240&&n<=8248||n===8249||n===8250||n>=8251&&n<=8254||n>=8257&&n<=8259||n===8260||n===8261||n===8262||n>=8263&&n<=8273||n===8274||n===8275||n>=8277&&n<=8286||n>=8592&&n<=8596||n>=8597&&n<=8601||n>=8602&&n<=8603||n>=8604&&n<=8607||n===8608||n>=8609&&n<=8610||n===8611||n>=8612&&n<=8613||n===8614||n>=8615&&n<=8621||n===8622||n>=8623&&n<=8653||n>=8654&&n<=8655||n>=8656&&n<=8657||n===8658||n===8659||n===8660||n>=8661&&n<=8691||n>=8692&&n<=8959||n>=8960&&n<=8967||n===8968||n===8969||n===8970||n===8971||n>=8972&&n<=8991||n>=8992&&n<=8993||n>=8994&&n<=9e3||n===9001||n===9002||n>=9003&&n<=9083||n===9084||n>=9085&&n<=9114||n>=9115&&n<=9139||n>=9140&&n<=9179||n>=9180&&n<=9185||n>=9186&&n<=9254||n>=9255&&n<=9279||n>=9280&&n<=9290||n>=9291&&n<=9311||n>=9472&&n<=9654||n===9655||n>=9656&&n<=9664||n===9665||n>=9666&&n<=9719||n>=9720&&n<=9727||n>=9728&&n<=9838||n===9839||n>=9840&&n<=10087||n===10088||n===10089||n===10090||n===10091||n===10092||n===10093||n===10094||n===10095||n===10096||n===10097||n===10098||n===10099||n===10100||n===10101||n>=10132&&n<=10175||n>=10176&&n<=10180||n===10181||n===10182||n>=10183&&n<=10213||n===10214||n===10215||n===10216||n===10217||n===10218||n===10219||n===10220||n===10221||n===10222||n===10223||n>=10224&&n<=10239||n>=10240&&n<=10495||n>=10496&&n<=10626||n===10627||n===10628||n===10629||n===10630||n===10631||n===10632||n===10633||n===10634||n===10635||n===10636||n===10637||n===10638||n===10639||n===10640||n===10641||n===10642||n===10643||n===10644||n===10645||n===10646||n===10647||n===10648||n>=10649&&n<=10711||n===10712||n===10713||n===10714||n===10715||n>=10716&&n<=10747||n===10748||n===10749||n>=10750&&n<=11007||n>=11008&&n<=11055||n>=11056&&n<=11076||n>=11077&&n<=11078||n>=11079&&n<=11084||n>=11085&&n<=11123||n>=11124&&n<=11125||n>=11126&&n<=11157||n===11158||n>=11159&&n<=11263||n>=11776&&n<=11777||n===11778||n===11779||n===11780||n===11781||n>=11782&&n<=11784||n===11785||n===11786||n===11787||n===11788||n===11789||n>=11790&&n<=11798||n===11799||n>=11800&&n<=11801||n===11802||n===11803||n===11804||n===11805||n>=11806&&n<=11807||n===11808||n===11809||n===11810||n===11811||n===11812||n===11813||n===11814||n===11815||n===11816||n===11817||n>=11818&&n<=11822||n===11823||n>=11824&&n<=11833||n>=11834&&n<=11835||n>=11836&&n<=11839||n===11840||n===11841||n===11842||n>=11843&&n<=11855||n>=11856&&n<=11857||n===11858||n>=11859&&n<=11903||n>=12289&&n<=12291||n===12296||n===12297||n===12298||n===12299||n===12300||n===12301||n===12302||n===12303||n===12304||n===12305||n>=12306&&n<=12307||n===12308||n===12309||n===12310||n===12311||n===12312||n===12313||n===12314||n===12315||n===12316||n===12317||n>=12318&&n<=12319||n===12320||n===12336||n===64830||n===64831||n>=65093&&n<=65094}function sh(n){n.forEach(function(a){if(delete a.location,Wv(a)||Jv(a))for(var i in a.options)delete a.options[i].location,sh(a.options[i].value);else Qv(a)&&t1(a.style)||(Kv(a)||$v(a))&&nh(a.style)?delete a.style.location:e1(a)&&sh(a.children)})}function rA(n,a){a===void 0&&(a={}),a=se({shouldParseSkeletons:!0,requiresOtherClause:!0},a);var i=new eA(n,a).parse();if(i.err){var s=SyntaxError(De[i.err.kind]);throw s.location=i.err.location,s.originalMessage=i.err.message,s}return a?.captureLocation||sh(i.val),i.val}var Wn;(function(n){n.MISSING_VALUE="MISSING_VALUE",n.INVALID_VALUE="INVALID_VALUE",n.MISSING_INTL_API="MISSING_INTL_API"})(Wn||(Wn={}));var ur=(function(n){Cn(a,n);function a(i,s,u){var f=n.call(this,i)||this;return f.code=s,f.originalMessage=u,f}return a.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},a})(Error),xy=(function(n){Cn(a,n);function a(i,s,u,f){return n.call(this,'Invalid values for "'.concat(i,'": "').concat(s,'". Options are "').concat(Object.keys(u).join('", "'),'"'),Wn.INVALID_VALUE,f)||this}return a})(ur),iA=(function(n){Cn(a,n);function a(i,s,u){return n.call(this,'Value for "'.concat(i,'" must be of type ').concat(s),Wn.INVALID_VALUE,u)||this}return a})(ur),lA=(function(n){Cn(a,n);function a(i,s){return n.call(this,'The intl string context variable "'.concat(i,'" was not provided to the string "').concat(s,'"'),Wn.MISSING_VALUE,s)||this}return a})(ur),zt;(function(n){n[n.literal=0]="literal",n[n.object=1]="object"})(zt||(zt={}));function sA(n){return n.length<2?n:n.reduce(function(a,i){var s=a[a.length-1];return!s||s.type!==zt.literal||i.type!==zt.literal?a.push(i):s.value+=i.value,a},[])}function u1(n){return typeof n=="function"}function eu(n,a,i,s,u,f,d){if(n.length===1&&vy(n[0]))return[{type:zt.literal,value:n[0].value}];for(var h=[],m=0,g=n;m<g.length;m++){var b=g[m];if(vy(b)){h.push({type:zt.literal,value:b.value});continue}if(NT(b)){typeof f=="number"&&h.push({type:zt.literal,value:i.getNumberFormat(a).format(f)});continue}var _=b.value;if(!(u&&_ in u))throw new lA(_,d);var A=u[_];if(wT(b)){(!A||typeof A=="string"||typeof A=="number")&&(A=typeof A=="string"||typeof A=="number"?String(A):""),h.push({type:typeof A=="string"?zt.literal:zt.object,value:A});continue}if(Kv(b)){var U=typeof b.style=="string"?s.date[b.style]:nh(b.style)?b.style.parsedOptions:void 0;h.push({type:zt.literal,value:i.getDateTimeFormat(a,U).format(A)});continue}if($v(b)){var U=typeof b.style=="string"?s.time[b.style]:nh(b.style)?b.style.parsedOptions:s.time.medium;h.push({type:zt.literal,value:i.getDateTimeFormat(a,U).format(A)});continue}if(Qv(b)){var U=typeof b.style=="string"?s.number[b.style]:t1(b.style)?b.style.parsedOptions:void 0;U&&U.scale&&(A=A*(U.scale||1)),h.push({type:zt.literal,value:i.getNumberFormat(a,U).format(A)});continue}if(e1(b)){var x=b.children,k=b.value,I=u[k];if(!u1(I))throw new iA(k,"function",d);var E=eu(x,a,i,s,u,f),C=I(E.map(function(N){return N.value}));Array.isArray(C)||(C=[C]),h.push.apply(h,C.map(function(N){return{type:typeof N=="string"?zt.literal:zt.object,value:N}}))}if(Wv(b)){var S=b.options[A]||b.options.other;if(!S)throw new xy(b.value,A,Object.keys(b.options),d);h.push.apply(h,eu(S.value,a,i,s,u));continue}if(Jv(b)){var S=b.options["=".concat(A)];if(!S){if(!Intl.PluralRules)throw new ur(`Intl.PluralRules is not available in this environment.
66
66
  Try polyfilling it using "@formatjs/intl-pluralrules"
67
- `,Jn.MISSING_INTL_API,d);var H=i.getPluralRules(a,{type:b.pluralType}).select(A-(b.offset||0));S=b.options[H]||b.options.other}if(!S)throw new xy(b.value,A,Object.keys(b.options),d);h.push.apply(h,Jo(S.value,a,i,s,u,A-(b.offset||0)));continue}}return sA(h)}function oA(n,a){return a?se(se(se({},n||{}),a||{}),Object.keys(n).reduce(function(i,s){return i[s]=se(se({},n[s]),a[s]||{}),i},{})):n}function uA(n,a){return a?Object.keys(n).reduce(function(i,s){return i[s]=oA(n[s],a[s]),i},se({},n)):n}function td(n){return{create:function(){return{get:function(a){return n[a]},set:function(a,i){n[a]=i}}}}}function cA(n){return n===void 0&&(n={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Qn(function(){for(var a,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((a=Intl.NumberFormat).bind.apply(a,$n([void 0],i,!1)))},{cache:td(n.number),strategy:Kn.variadic}),getDateTimeFormat:Qn(function(){for(var a,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((a=Intl.DateTimeFormat).bind.apply(a,$n([void 0],i,!1)))},{cache:td(n.dateTime),strategy:Kn.variadic}),getPluralRules:Qn(function(){for(var a,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((a=Intl.PluralRules).bind.apply(a,$n([void 0],i,!1)))},{cache:td(n.pluralRules),strategy:Kn.variadic})}}var c1=(function(){function n(a,i,s,u){i===void 0&&(i=n.defaultLocale);var f=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(m){var g=f.formatToParts(m);if(g.length===1)return g[0].value;var b=g.reduce(function(_,A){return!_.length||A.type!==zt.literal||typeof _[_.length-1]!="string"?_.push(A.value):_[_.length-1]+=A.value,_},[]);return b.length<=1?b[0]||"":b},this.formatToParts=function(m){return Jo(f.ast,f.locales,f.formatters,f.formats,m,void 0,f.message)},this.resolvedOptions=function(){var m;return{locale:((m=f.resolvedLocale)===null||m===void 0?void 0:m.toString())||Intl.NumberFormat.supportedLocalesOf(f.locales)[0]}},this.getAst=function(){return f.ast},this.locales=i,this.resolvedLocale=n.resolveLocale(i),typeof a=="string"){if(this.message=a,!n.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var d=u||{};d.formatters;var h=_u(d,["formatters"]);this.ast=n.__parse(a,se(se({},h),{locale:this.resolvedLocale}))}else this.ast=a;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=uA(n.formats,s),this.formatters=u&&u.formatters||cA(this.formatterCache)}return Object.defineProperty(n,"defaultLocale",{get:function(){return n.memoizedDefaultLocale||(n.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),n.memoizedDefaultLocale},enumerable:!1,configurable:!0}),n.memoizedDefaultLocale=null,n.resolveLocale=function(a){if(!(typeof Intl.Locale>"u")){var i=Intl.NumberFormat.supportedLocalesOf(a);return i.length>0?new Intl.Locale(i[0]):new Intl.Locale(typeof a=="string"?a:a[0])}},n.__parse=rA,n.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},n})(),qr;(function(n){n.FORMAT_ERROR="FORMAT_ERROR",n.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",n.INVALID_CONFIG="INVALID_CONFIG",n.MISSING_DATA="MISSING_DATA",n.MISSING_TRANSLATION="MISSING_TRANSLATION"})(qr||(qr={}));var as=(function(n){Rn(a,n);function a(i,s,u){var f=this,d=u?u instanceof Error?u:new Error(String(u)):void 0;return f=n.call(this,"[@formatjs/intl Error ".concat(i,"] ").concat(s,`
67
+ `,Wn.MISSING_INTL_API,d);var H=i.getPluralRules(a,{type:b.pluralType}).select(A-(b.offset||0));S=b.options[H]||b.options.other}if(!S)throw new xy(b.value,A,Object.keys(b.options),d);h.push.apply(h,eu(S.value,a,i,s,u,A-(b.offset||0)));continue}}return sA(h)}function oA(n,a){return a?se(se(se({},n||{}),a||{}),Object.keys(n).reduce(function(i,s){return i[s]=se(se({},n[s]),a[s]||{}),i},{})):n}function uA(n,a){return a?Object.keys(n).reduce(function(i,s){return i[s]=oA(n[s],a[s]),i},se({},n)):n}function td(n){return{create:function(){return{get:function(a){return n[a]},set:function(a,i){n[a]=i}}}}}function cA(n){return n===void 0&&(n={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Zn(function(){for(var a,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((a=Intl.NumberFormat).bind.apply(a,Kn([void 0],i,!1)))},{cache:td(n.number),strategy:Qn.variadic}),getDateTimeFormat:Zn(function(){for(var a,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((a=Intl.DateTimeFormat).bind.apply(a,Kn([void 0],i,!1)))},{cache:td(n.dateTime),strategy:Qn.variadic}),getPluralRules:Zn(function(){for(var a,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((a=Intl.PluralRules).bind.apply(a,Kn([void 0],i,!1)))},{cache:td(n.pluralRules),strategy:Qn.variadic})}}var c1=(function(){function n(a,i,s,u){i===void 0&&(i=n.defaultLocale);var f=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(m){var g=f.formatToParts(m);if(g.length===1)return g[0].value;var b=g.reduce(function(_,A){return!_.length||A.type!==zt.literal||typeof _[_.length-1]!="string"?_.push(A.value):_[_.length-1]+=A.value,_},[]);return b.length<=1?b[0]||"":b},this.formatToParts=function(m){return eu(f.ast,f.locales,f.formatters,f.formats,m,void 0,f.message)},this.resolvedOptions=function(){var m;return{locale:((m=f.resolvedLocale)===null||m===void 0?void 0:m.toString())||Intl.NumberFormat.supportedLocalesOf(f.locales)[0]}},this.getAst=function(){return f.ast},this.locales=i,this.resolvedLocale=n.resolveLocale(i),typeof a=="string"){if(this.message=a,!n.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var d=u||{};d.formatters;var h=Eu(d,["formatters"]);this.ast=n.__parse(a,se(se({},h),{locale:this.resolvedLocale}))}else this.ast=a;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=uA(n.formats,s),this.formatters=u&&u.formatters||cA(this.formatterCache)}return Object.defineProperty(n,"defaultLocale",{get:function(){return n.memoizedDefaultLocale||(n.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),n.memoizedDefaultLocale},enumerable:!1,configurable:!0}),n.memoizedDefaultLocale=null,n.resolveLocale=function(a){if(!(typeof Intl.Locale>"u")){var i=Intl.NumberFormat.supportedLocalesOf(a);return i.length>0?new Intl.Locale(i[0]):new Intl.Locale(typeof a=="string"?a:a[0])}},n.__parse=rA,n.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},n})(),kr;(function(n){n.FORMAT_ERROR="FORMAT_ERROR",n.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",n.INVALID_CONFIG="INVALID_CONFIG",n.MISSING_DATA="MISSING_DATA",n.MISSING_TRANSLATION="MISSING_TRANSLATION"})(kr||(kr={}));var ns=(function(n){Cn(a,n);function a(i,s,u){var f=this,d=u?u instanceof Error?u:new Error(String(u)):void 0;return f=n.call(this,"[@formatjs/intl Error ".concat(i,"] ").concat(s,`
68
68
  `).concat(d?`
69
69
  `.concat(d.message,`
70
- `).concat(d.stack):""))||this,f.code=i,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(f,a),f}return a})(Error),fA=(function(n){Rn(a,n);function a(i,s){return n.call(this,qr.UNSUPPORTED_FORMATTER,i,s)||this}return a})(as),dA=(function(n){Rn(a,n);function a(i,s){return n.call(this,qr.INVALID_CONFIG,i,s)||this}return a})(as),Cy=(function(n){Rn(a,n);function a(i,s){return n.call(this,qr.MISSING_DATA,i,s)||this}return a})(as),wn=(function(n){Rn(a,n);function a(i,s,u){var f=n.call(this,qr.FORMAT_ERROR,"".concat(i,`
70
+ `).concat(d.stack):""))||this,f.code=i,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(f,a),f}return a})(Error),fA=(function(n){Cn(a,n);function a(i,s){return n.call(this,kr.UNSUPPORTED_FORMATTER,i,s)||this}return a})(ns),dA=(function(n){Cn(a,n);function a(i,s){return n.call(this,kr.INVALID_CONFIG,i,s)||this}return a})(ns),Cy=(function(n){Cn(a,n);function a(i,s){return n.call(this,kr.MISSING_DATA,i,s)||this}return a})(ns),Rn=(function(n){Cn(a,n);function a(i,s,u){var f=n.call(this,kr.FORMAT_ERROR,"".concat(i,`
71
71
  Locale: `).concat(s,`
72
- `),u)||this;return f.locale=s,f}return a})(as),nd=(function(n){Rn(a,n);function a(i,s,u,f){var d=n.call(this,"".concat(i,`
72
+ `),u)||this;return f.locale=s,f}return a})(ns),nd=(function(n){Cn(a,n);function a(i,s,u,f){var d=n.call(this,"".concat(i,`
73
73
  MessageID: `).concat(u?.id,`
74
74
  Default Message: `).concat(u?.defaultMessage,`
75
75
  Description: `).concat(u?.description,`
76
- `),s,f)||this;return d.descriptor=u,d.locale=s,d}return a})(wn),hA=(function(n){Rn(a,n);function a(i,s){var u=n.call(this,qr.MISSING_TRANSLATION,'Missing message: "'.concat(i.id,'" for locale "').concat(s,'", using ').concat(i.defaultMessage?"default message (".concat(typeof i.defaultMessage=="string"?i.defaultMessage:i.defaultMessage.map(function(f){var d;return(d=f.value)!==null&&d!==void 0?d:JSON.stringify(f)}).join(),")"):"id"," as fallback."))||this;return u.descriptor=i,u}return a})(as);function mA(n,a,i){if(i===void 0&&(i=Error),!n)throw new i(a)}function Li(n,a,i){return i===void 0&&(i={}),a.reduce(function(s,u){return u in n?s[u]=n[u]:u in i&&(s[u]=i[u]),s},{})}var pA=function(n){},gA=function(n){},f1={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:pA,onWarn:gA};function d1(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Mr(n){return{create:function(){return{get:function(a){return n[a]},set:function(a,i){n[a]=i}}}}}function yA(n){n===void 0&&(n=d1());var a=Intl.RelativeTimeFormat,i=Intl.ListFormat,s=Intl.DisplayNames,u=Qn(function(){for(var h,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((h=Intl.DateTimeFormat).bind.apply(h,$n([void 0],m,!1)))},{cache:Mr(n.dateTime),strategy:Kn.variadic}),f=Qn(function(){for(var h,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((h=Intl.NumberFormat).bind.apply(h,$n([void 0],m,!1)))},{cache:Mr(n.number),strategy:Kn.variadic}),d=Qn(function(){for(var h,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((h=Intl.PluralRules).bind.apply(h,$n([void 0],m,!1)))},{cache:Mr(n.pluralRules),strategy:Kn.variadic});return{getDateTimeFormat:u,getNumberFormat:f,getMessageFormat:Qn(function(h,m,g,b){return new c1(h,m,g,se({formatters:{getNumberFormat:f,getDateTimeFormat:u,getPluralRules:d}},b||{}))},{cache:Mr(n.message),strategy:Kn.variadic}),getRelativeTimeFormat:Qn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(a.bind.apply(a,$n([void 0],h,!1)))},{cache:Mr(n.relativeTime),strategy:Kn.variadic}),getPluralRules:d,getListFormat:Qn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(i.bind.apply(i,$n([void 0],h,!1)))},{cache:Mr(n.list),strategy:Kn.variadic}),getDisplayNames:Qn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(s.bind.apply(s,$n([void 0],h,!1)))},{cache:Mr(n.displayNames),strategy:Kn.variadic})}}function Lh(n,a,i,s){var u=n&&n[a],f;if(u&&(f=u[i]),f)return f;s(new fA("No ".concat(a," format named: ").concat(i)))}function wo(n,a){return Object.keys(n).reduce(function(i,s){return i[s]=se({timeZone:a},n[s]),i},{})}function Ry(n,a){var i=Object.keys(se(se({},n),a));return i.reduce(function(s,u){return s[u]=se(se({},n[u]||{}),a[u]||{}),s},{})}function wy(n,a){if(!a)return n;var i=c1.formats;return se(se(se({},i),n),{date:Ry(wo(i.date,a),wo(n.date||{},a)),time:Ry(wo(i.time,a),wo(n.time||{},a))})}var oh=function(n,a,i,s,u){var f=n.locale,d=n.formats,h=n.messages,m=n.defaultLocale,g=n.defaultFormats,b=n.fallbackOnEmptyString,_=n.onError,A=n.timeZone,U=n.defaultRichTextElements;i===void 0&&(i={id:""});var x=i.id,k=i.defaultMessage;mA(!!x,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var I=String(x),E=h&&Object.prototype.hasOwnProperty.call(h,I)&&h[I];if(Array.isArray(E)&&E.length===1&&E[0].type===$e.literal)return E[0].value;if(!s&&E&&typeof E=="string"&&!U)return E.replace(/'\{(.*?)\}'/gi,"{$1}");if(s=se(se({},U),s||{}),d=wy(d,A),g=wy(g,A),!E){if(b===!1&&E==="")return E;if((!k||f&&f.toLowerCase()!==m.toLowerCase())&&_(new hA(i,f)),k)try{var C=a.getMessageFormat(k,m,g,u);return C.format(s)}catch(S){return _(new nd('Error formatting default message for: "'.concat(I,'", rendering default message verbatim'),f,i,S)),typeof k=="string"?k:I}return I}try{var C=a.getMessageFormat(E,f,d,se({formatters:a},u||{}));return C.format(s)}catch(S){_(new nd('Error formatting message: "'.concat(I,'", using ').concat(k?"default message":"id"," as fallback."),f,i,S))}if(k)try{var C=a.getMessageFormat(k,m,g,u);return C.format(s)}catch(S){_(new nd('Error formatting the default message for: "'.concat(I,'", rendering message verbatim'),f,i,S))}return typeof E=="string"?E:typeof k=="string"?k:I},bA=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function rs(n,a,i,s){var u=n.locale,f=n.formats,d=n.onError,h=n.timeZone;s===void 0&&(s={});var m=s.format,g=se(se({},h&&{timeZone:h}),m&&Lh(f,a,m,d)),b=Li(s,bA,g);return a==="time"&&!b.hour&&!b.minute&&!b.second&&!b.timeStyle&&!b.dateStyle&&(b=se(se({},b),{hour:"numeric",minute:"numeric"})),i(u,b)}function vA(n,a){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],f=i[1],d=f===void 0?{}:f,h=typeof u=="string"?new Date(u||0):u;try{return rs(n,"date",a,d).format(h)}catch(m){n.onError(new wn("Error formatting date.",n.locale,m))}return String(h)}function _A(n,a){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],f=i[1],d=f===void 0?{}:f,h=typeof u=="string"?new Date(u||0):u;try{return rs(n,"time",a,d).format(h)}catch(m){n.onError(new wn("Error formatting time.",n.locale,m))}return String(h)}function EA(n,a){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],f=i[1],d=i[2],h=d===void 0?{}:d,m=typeof u=="string"?new Date(u||0):u,g=typeof f=="string"?new Date(f||0):f;try{return rs(n,"dateTimeRange",a,h).formatRange(m,g)}catch(b){n.onError(new wn("Error formatting date time range.",n.locale,b))}return String(m)}function SA(n,a){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],f=i[1],d=f===void 0?{}:f,h=typeof u=="string"?new Date(u||0):u;try{return rs(n,"date",a,d).formatToParts(h)}catch(m){n.onError(new wn("Error formatting date.",n.locale,m))}return[]}function TA(n,a){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],f=i[1],d=f===void 0?{}:f,h=typeof u=="string"?new Date(u||0):u;try{return rs(n,"time",a,d).formatToParts(h)}catch(m){n.onError(new wn("Error formatting time.",n.locale,m))}return[]}var AA=["style","type","fallback","languageDisplay"];function OA(n,a,i,s){var u=n.locale,f=n.onError,d=Intl.DisplayNames;d||f(new cr(`Intl.DisplayNames is not available in this environment.
76
+ `),s,f)||this;return d.descriptor=u,d.locale=s,d}return a})(Rn),hA=(function(n){Cn(a,n);function a(i,s){var u=n.call(this,kr.MISSING_TRANSLATION,'Missing message: "'.concat(i.id,'" for locale "').concat(s,'", using ').concat(i.defaultMessage?"default message (".concat(typeof i.defaultMessage=="string"?i.defaultMessage:i.defaultMessage.map(function(f){var d;return(d=f.value)!==null&&d!==void 0?d:JSON.stringify(f)}).join(),")"):"id"," as fallback."))||this;return u.descriptor=i,u}return a})(ns);function mA(n,a,i){if(i===void 0&&(i=Error),!n)throw new i(a)}function Di(n,a,i){return i===void 0&&(i={}),a.reduce(function(s,u){return u in n?s[u]=n[u]:u in i&&(s[u]=i[u]),s},{})}var pA=function(n){},gA=function(n){},f1={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:pA,onWarn:gA};function d1(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Nr(n){return{create:function(){return{get:function(a){return n[a]},set:function(a,i){n[a]=i}}}}}function yA(n){n===void 0&&(n=d1());var a=Intl.RelativeTimeFormat,i=Intl.ListFormat,s=Intl.DisplayNames,u=Zn(function(){for(var h,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((h=Intl.DateTimeFormat).bind.apply(h,Kn([void 0],m,!1)))},{cache:Nr(n.dateTime),strategy:Qn.variadic}),f=Zn(function(){for(var h,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((h=Intl.NumberFormat).bind.apply(h,Kn([void 0],m,!1)))},{cache:Nr(n.number),strategy:Qn.variadic}),d=Zn(function(){for(var h,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((h=Intl.PluralRules).bind.apply(h,Kn([void 0],m,!1)))},{cache:Nr(n.pluralRules),strategy:Qn.variadic});return{getDateTimeFormat:u,getNumberFormat:f,getMessageFormat:Zn(function(h,m,g,b){return new c1(h,m,g,se({formatters:{getNumberFormat:f,getDateTimeFormat:u,getPluralRules:d}},b||{}))},{cache:Nr(n.message),strategy:Qn.variadic}),getRelativeTimeFormat:Zn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(a.bind.apply(a,Kn([void 0],h,!1)))},{cache:Nr(n.relativeTime),strategy:Qn.variadic}),getPluralRules:d,getListFormat:Zn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(i.bind.apply(i,Kn([void 0],h,!1)))},{cache:Nr(n.list),strategy:Qn.variadic}),getDisplayNames:Zn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(s.bind.apply(s,Kn([void 0],h,!1)))},{cache:Nr(n.displayNames),strategy:Qn.variadic})}}function Lh(n,a,i,s){var u=n&&n[a],f;if(u&&(f=u[i]),f)return f;s(new fA("No ".concat(a," format named: ").concat(i)))}function wo(n,a){return Object.keys(n).reduce(function(i,s){return i[s]=se({timeZone:a},n[s]),i},{})}function Ry(n,a){var i=Object.keys(se(se({},n),a));return i.reduce(function(s,u){return s[u]=se(se({},n[u]||{}),a[u]||{}),s},{})}function wy(n,a){if(!a)return n;var i=c1.formats;return se(se(se({},i),n),{date:Ry(wo(i.date,a),wo(n.date||{},a)),time:Ry(wo(i.time,a),wo(n.time||{},a))})}var oh=function(n,a,i,s,u){var f=n.locale,d=n.formats,h=n.messages,m=n.defaultLocale,g=n.defaultFormats,b=n.fallbackOnEmptyString,_=n.onError,A=n.timeZone,U=n.defaultRichTextElements;i===void 0&&(i={id:""});var x=i.id,k=i.defaultMessage;mA(!!x,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var I=String(x),E=h&&Object.prototype.hasOwnProperty.call(h,I)&&h[I];if(Array.isArray(E)&&E.length===1&&E[0].type===$e.literal)return E[0].value;if(!s&&E&&typeof E=="string"&&!U)return E.replace(/'\{(.*?)\}'/gi,"{$1}");if(s=se(se({},U),s||{}),d=wy(d,A),g=wy(g,A),!E){if(b===!1&&E==="")return E;if((!k||f&&f.toLowerCase()!==m.toLowerCase())&&_(new hA(i,f)),k)try{var C=a.getMessageFormat(k,m,g,u);return C.format(s)}catch(S){return _(new nd('Error formatting default message for: "'.concat(I,'", rendering default message verbatim'),f,i,S)),typeof k=="string"?k:I}return I}try{var C=a.getMessageFormat(E,f,d,se({formatters:a},u||{}));return C.format(s)}catch(S){_(new nd('Error formatting message: "'.concat(I,'", using ').concat(k?"default message":"id"," as fallback."),f,i,S))}if(k)try{var C=a.getMessageFormat(k,m,g,u);return C.format(s)}catch(S){_(new nd('Error formatting the default message for: "'.concat(I,'", rendering message verbatim'),f,i,S))}return typeof E=="string"?E:typeof k=="string"?k:I},bA=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function as(n,a,i,s){var u=n.locale,f=n.formats,d=n.onError,h=n.timeZone;s===void 0&&(s={});var m=s.format,g=se(se({},h&&{timeZone:h}),m&&Lh(f,a,m,d)),b=Di(s,bA,g);return a==="time"&&!b.hour&&!b.minute&&!b.second&&!b.timeStyle&&!b.dateStyle&&(b=se(se({},b),{hour:"numeric",minute:"numeric"})),i(u,b)}function vA(n,a){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],f=i[1],d=f===void 0?{}:f,h=typeof u=="string"?new Date(u||0):u;try{return as(n,"date",a,d).format(h)}catch(m){n.onError(new Rn("Error formatting date.",n.locale,m))}return String(h)}function _A(n,a){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],f=i[1],d=f===void 0?{}:f,h=typeof u=="string"?new Date(u||0):u;try{return as(n,"time",a,d).format(h)}catch(m){n.onError(new Rn("Error formatting time.",n.locale,m))}return String(h)}function EA(n,a){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],f=i[1],d=i[2],h=d===void 0?{}:d,m=typeof u=="string"?new Date(u||0):u,g=typeof f=="string"?new Date(f||0):f;try{return as(n,"dateTimeRange",a,h).formatRange(m,g)}catch(b){n.onError(new Rn("Error formatting date time range.",n.locale,b))}return String(m)}function SA(n,a){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],f=i[1],d=f===void 0?{}:f,h=typeof u=="string"?new Date(u||0):u;try{return as(n,"date",a,d).formatToParts(h)}catch(m){n.onError(new Rn("Error formatting date.",n.locale,m))}return[]}function TA(n,a){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],f=i[1],d=f===void 0?{}:f,h=typeof u=="string"?new Date(u||0):u;try{return as(n,"time",a,d).formatToParts(h)}catch(m){n.onError(new Rn("Error formatting time.",n.locale,m))}return[]}var AA=["style","type","fallback","languageDisplay"];function OA(n,a,i,s){var u=n.locale,f=n.onError,d=Intl.DisplayNames;d||f(new ur(`Intl.DisplayNames is not available in this environment.
77
77
  Try polyfilling it using "@formatjs/intl-displaynames"
78
- `,Jn.MISSING_INTL_API));var h=Li(s,AA);try{return a(u,h).of(i)}catch(m){f(new wn("Error formatting display name.",u,m))}}var xA=["type","style"],Ny=Date.now();function CA(n){return"".concat(Ny,"_").concat(n,"_").concat(Ny)}function RA(n,a,i,s){s===void 0&&(s={});var u=h1(n,a,i,s).reduce(function(f,d){var h=d.value;return typeof h!="string"?f.push(h):typeof f[f.length-1]=="string"?f[f.length-1]+=h:f.push(h),f},[]);return u.length===1?u[0]:u.length===0?"":u}function h1(n,a,i,s){var u=n.locale,f=n.onError;s===void 0&&(s={});var d=Intl.ListFormat;d||f(new cr(`Intl.ListFormat is not available in this environment.
78
+ `,Wn.MISSING_INTL_API));var h=Di(s,AA);try{return a(u,h).of(i)}catch(m){f(new Rn("Error formatting display name.",u,m))}}var xA=["type","style"],Ny=Date.now();function CA(n){return"".concat(Ny,"_").concat(n,"_").concat(Ny)}function RA(n,a,i,s){s===void 0&&(s={});var u=h1(n,a,i,s).reduce(function(f,d){var h=d.value;return typeof h!="string"?f.push(h):typeof f[f.length-1]=="string"?f[f.length-1]+=h:f.push(h),f},[]);return u.length===1?u[0]:u.length===0?"":u}function h1(n,a,i,s){var u=n.locale,f=n.onError;s===void 0&&(s={});var d=Intl.ListFormat;d||f(new ur(`Intl.ListFormat is not available in this environment.
79
79
  Try polyfilling it using "@formatjs/intl-listformat"
80
- `,Jn.MISSING_INTL_API));var h=Li(s,xA);try{var m={},g=Array.from(i).map(function(b,_){if(typeof b=="object"&&b!==null){var A=CA(_);return m[A]=b,A}return String(b)});return a(u,h).formatToParts(g).map(function(b){return b.type==="literal"?b:se(se({},b),{value:m[b.value]||b.value})})}catch(b){f(new wn("Error formatting list.",u,b))}return i}var wA=["type"];function NA(n,a,i,s){var u=n.locale,f=n.onError;s===void 0&&(s={}),Intl.PluralRules||f(new cr(`Intl.PluralRules is not available in this environment.
80
+ `,Wn.MISSING_INTL_API));var h=Di(s,xA);try{var m={},g=Array.from(i).map(function(b,_){if(typeof b=="object"&&b!==null){var A=CA(_);return m[A]=b,A}return String(b)});return a(u,h).formatToParts(g).map(function(b){return b.type==="literal"?b:se(se({},b),{value:m[b.value]||b.value})})}catch(b){f(new Rn("Error formatting list.",u,b))}return i}var wA=["type"];function NA(n,a,i,s){var u=n.locale,f=n.onError;s===void 0&&(s={}),Intl.PluralRules||f(new ur(`Intl.PluralRules is not available in this environment.
81
81
  Try polyfilling it using "@formatjs/intl-pluralrules"
82
- `,Jn.MISSING_INTL_API));var d=Li(s,wA);try{return a(u,d).select(i)}catch(h){f(new wn("Error formatting plural.",u,h))}return"other"}var MA=["numeric","style"];function DA(n,a,i){var s=n.locale,u=n.formats,f=n.onError;i===void 0&&(i={});var d=i.format,h=!!d&&Lh(u,"relative",d,f)||{},m=Li(i,MA,h);return a(s,m)}function LA(n,a,i,s,u){u===void 0&&(u={}),s||(s="second");var f=Intl.RelativeTimeFormat;f||n.onError(new cr(`Intl.RelativeTimeFormat is not available in this environment.
82
+ `,Wn.MISSING_INTL_API));var d=Di(s,wA);try{return a(u,d).select(i)}catch(h){f(new Rn("Error formatting plural.",u,h))}return"other"}var MA=["numeric","style"];function DA(n,a,i){var s=n.locale,u=n.formats,f=n.onError;i===void 0&&(i={});var d=i.format,h=!!d&&Lh(u,"relative",d,f)||{},m=Di(i,MA,h);return a(s,m)}function LA(n,a,i,s,u){u===void 0&&(u={}),s||(s="second");var f=Intl.RelativeTimeFormat;f||n.onError(new ur(`Intl.RelativeTimeFormat is not available in this environment.
83
83
  Try polyfilling it using "@formatjs/intl-relativetimeformat"
84
- `,Jn.MISSING_INTL_API));try{return DA(n,a,u).format(i,s)}catch(d){n.onError(new wn("Error formatting relative time.",n.locale,d))}return String(i)}var BA=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function m1(n,a,i){var s=n.locale,u=n.formats,f=n.onError;i===void 0&&(i={});var d=i.format,h=d&&Lh(u,"number",d,f)||{},m=Li(i,BA,h);return a(s,m)}function UA(n,a,i,s){s===void 0&&(s={});try{return m1(n,a,s).format(i)}catch(u){n.onError(new wn("Error formatting number.",n.locale,u))}return String(i)}function jA(n,a,i,s){s===void 0&&(s={});try{return m1(n,a,s).formatToParts(i)}catch(u){n.onError(new wn("Error formatting number.",n.locale,u))}return[]}function HA(n){var a=n?n[Object.keys(n)[0]]:void 0;return typeof a=="string"}function IA(n){n.onWarn&&n.defaultRichTextElements&&HA(n.messages||{})&&n.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
84
+ `,Wn.MISSING_INTL_API));try{return DA(n,a,u).format(i,s)}catch(d){n.onError(new Rn("Error formatting relative time.",n.locale,d))}return String(i)}var BA=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function m1(n,a,i){var s=n.locale,u=n.formats,f=n.onError;i===void 0&&(i={});var d=i.format,h=d&&Lh(u,"number",d,f)||{},m=Di(i,BA,h);return a(s,m)}function UA(n,a,i,s){s===void 0&&(s={});try{return m1(n,a,s).format(i)}catch(u){n.onError(new Rn("Error formatting number.",n.locale,u))}return String(i)}function jA(n,a,i,s){s===void 0&&(s={});try{return m1(n,a,s).formatToParts(i)}catch(u){n.onError(new Rn("Error formatting number.",n.locale,u))}return[]}function HA(n){var a=n?n[Object.keys(n)[0]]:void 0;return typeof a=="string"}function IA(n){n.onWarn&&n.defaultRichTextElements&&HA(n.messages||{})&&n.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
85
85
  Please consider using "@formatjs/cli" to pre-compile your messages for performance.
86
86
  For more details see https://formatjs.github.io/docs/getting-started/message-distribution`)}function zA(n,a){var i=yA(a),s=se(se({},f1),n),u=s.locale,f=s.defaultLocale,d=s.onError;return u?!Intl.NumberFormat.supportedLocalesOf(u).length&&d?d(new Cy('Missing locale data for locale: "'.concat(u,'" in Intl.NumberFormat. Using default locale: "').concat(f,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(u).length&&d&&d(new Cy('Missing locale data for locale: "'.concat(u,'" in Intl.DateTimeFormat. Using default locale: "').concat(f,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(d&&d(new dA('"locale" was not configured, using "'.concat(f,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),s.locale=s.defaultLocale||"en"),IA(s),se(se({},s),{formatters:i,formatNumber:UA.bind(null,s,i.getNumberFormat),formatNumberToParts:jA.bind(null,s,i.getNumberFormat),formatRelativeTime:LA.bind(null,s,i.getRelativeTimeFormat),formatDate:vA.bind(null,s,i.getDateTimeFormat),formatDateToParts:SA.bind(null,s,i.getDateTimeFormat),formatTime:_A.bind(null,s,i.getDateTimeFormat),formatDateTimeRange:EA.bind(null,s,i.getDateTimeFormat),formatTimeToParts:TA.bind(null,s,i.getDateTimeFormat),formatPlural:NA.bind(null,s,i.getPluralRules),formatMessage:oh.bind(null,s,i),$t:oh.bind(null,s,i),formatList:RA.bind(null,s,i.getListFormat),formatListToParts:h1.bind(null,s,i.getListFormat),formatDisplayName:OA.bind(null,s,i.getDisplayNames)})}function GA(n,a,i){if(i===void 0&&(i=Error),!n)throw new i(a)}function p1(n){GA(n,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var g1=se(se({},f1),{textComponent:B.Fragment}),kA=function(n,a){return B.isValidElement(n)?B.cloneElement(n,{key:a}):n},y1=function(n){var a;return(a=B.Children.map(n,kA))!==null&&a!==void 0?a:[]};function qA(n){return function(a){return n(y1(a))}}function FA(n,a){if(n===a)return!0;if(!n||!a)return!1;var i=Object.keys(n),s=Object.keys(a),u=i.length;if(s.length!==u)return!1;for(var f=0;f<u;f++){var d=i[f];if(n[d]!==a[d]||!Object.prototype.hasOwnProperty.call(a,d))return!1}return!0}var ad={exports:{}},ze={};/** @license React v16.13.1
87
87
  * react-is.production.min.js
@@ -90,26 +90,26 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
90
90
  *
91
91
  * This source code is licensed under the MIT license found in the
92
92
  * LICENSE file in the root directory of this source tree.
93
- */var My;function VA(){if(My)return ze;My=1;var n=typeof Symbol=="function"&&Symbol.for,a=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,s=n?Symbol.for("react.fragment"):60107,u=n?Symbol.for("react.strict_mode"):60108,f=n?Symbol.for("react.profiler"):60114,d=n?Symbol.for("react.provider"):60109,h=n?Symbol.for("react.context"):60110,m=n?Symbol.for("react.async_mode"):60111,g=n?Symbol.for("react.concurrent_mode"):60111,b=n?Symbol.for("react.forward_ref"):60112,_=n?Symbol.for("react.suspense"):60113,A=n?Symbol.for("react.suspense_list"):60120,U=n?Symbol.for("react.memo"):60115,x=n?Symbol.for("react.lazy"):60116,k=n?Symbol.for("react.block"):60121,I=n?Symbol.for("react.fundamental"):60117,E=n?Symbol.for("react.responder"):60118,C=n?Symbol.for("react.scope"):60119;function S(N){if(typeof N=="object"&&N!==null){var Z=N.$$typeof;switch(Z){case a:switch(N=N.type,N){case m:case g:case s:case f:case u:case _:return N;default:switch(N=N&&N.$$typeof,N){case h:case b:case x:case U:case d:return N;default:return Z}}case i:return Z}}}function H(N){return S(N)===g}return ze.AsyncMode=m,ze.ConcurrentMode=g,ze.ContextConsumer=h,ze.ContextProvider=d,ze.Element=a,ze.ForwardRef=b,ze.Fragment=s,ze.Lazy=x,ze.Memo=U,ze.Portal=i,ze.Profiler=f,ze.StrictMode=u,ze.Suspense=_,ze.isAsyncMode=function(N){return H(N)||S(N)===m},ze.isConcurrentMode=H,ze.isContextConsumer=function(N){return S(N)===h},ze.isContextProvider=function(N){return S(N)===d},ze.isElement=function(N){return typeof N=="object"&&N!==null&&N.$$typeof===a},ze.isForwardRef=function(N){return S(N)===b},ze.isFragment=function(N){return S(N)===s},ze.isLazy=function(N){return S(N)===x},ze.isMemo=function(N){return S(N)===U},ze.isPortal=function(N){return S(N)===i},ze.isProfiler=function(N){return S(N)===f},ze.isStrictMode=function(N){return S(N)===u},ze.isSuspense=function(N){return S(N)===_},ze.isValidElementType=function(N){return typeof N=="string"||typeof N=="function"||N===s||N===g||N===f||N===u||N===_||N===A||typeof N=="object"&&N!==null&&(N.$$typeof===x||N.$$typeof===U||N.$$typeof===d||N.$$typeof===h||N.$$typeof===b||N.$$typeof===I||N.$$typeof===E||N.$$typeof===C||N.$$typeof===k)},ze.typeOf=S,ze}var Dy;function YA(){return Dy||(Dy=1,ad.exports=VA()),ad.exports}var rd,Ly;function PA(){if(Ly)return rd;Ly=1;var n=YA(),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},f={};f[n.ForwardRef]=s,f[n.Memo]=u;function d(x){return n.isMemo(x)?u:f[x.$$typeof]||a}var h=Object.defineProperty,m=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,b=Object.getOwnPropertyDescriptor,_=Object.getPrototypeOf,A=Object.prototype;function U(x,k,I){if(typeof k!="string"){if(A){var E=_(k);E&&E!==A&&U(x,E,I)}var C=m(k);g&&(C=C.concat(g(k)));for(var S=d(x),H=d(k),N=0;N<C.length;++N){var Z=C[N];if(!i[Z]&&!(I&&I[Z])&&!(H&&H[Z])&&!(S&&S[Z])){var X=b(k,Z);try{h(x,Z,X)}catch{}}}}return x}return rd=U,rd}PA();var Bh=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=B.createContext(null)):B.createContext(null);Bh.Consumer;var XA=Bh.Provider,ZA=XA,QA=Bh;function Eu(){var n=B.useContext(QA);return p1(n),n}var uh;(function(n){n.formatDate="FormattedDate",n.formatTime="FormattedTime",n.formatNumber="FormattedNumber",n.formatList="FormattedList",n.formatDisplayName="FormattedDisplayName"})(uh||(uh={}));var ch;(function(n){n.formatDate="FormattedDateParts",n.formatTime="FormattedTimeParts",n.formatNumber="FormattedNumberParts",n.formatList="FormattedListParts"})(ch||(ch={}));function b1(n){var a=function(i){var s=Eu(),u=i.value,f=i.children,d=_u(i,["value","children"]),h=typeof u=="string"?new Date(u||0):u,m=n==="formatDate"?s.formatDateToParts(h,d):s.formatTimeToParts(h,d);return f(m)};return a.displayName=ch[n],a}function is(n){var a=function(i){var s=Eu(),u=i.value,f=i.children,d=_u(i,["value","children"]),h=s[n](u,d);if(typeof f=="function")return f(h);var m=s.textComponent||B.Fragment;return B.createElement(m,null,h)};return a.displayName=uh[n],a}function v1(n){return n&&Object.keys(n).reduce(function(a,i){var s=n[i];return a[i]=u1(s)?qA(s):s,a},{})}var By=function(n,a,i,s){for(var u=[],f=4;f<arguments.length;f++)u[f-4]=arguments[f];var d=v1(s),h=oh.apply(void 0,$n([n,a,i,d],u,!1));return Array.isArray(h)?y1(h):h},Uy=function(n,a){var i=n.defaultRichTextElements,s=_u(n,["defaultRichTextElements"]),u=v1(i),f=zA(se(se(se({},g1),s),{defaultRichTextElements:u}),a),d={locale:f.locale,timeZone:f.timeZone,fallbackOnEmptyString:f.fallbackOnEmptyString,formats:f.formats,defaultLocale:f.defaultLocale,defaultFormats:f.defaultFormats,messages:f.messages,onError:f.onError,defaultRichTextElements:u};return se(se({},f),{formatMessage:By.bind(null,d,f.formatters),$t:By.bind(null,d,f.formatters)})};function id(n){return{locale:n.locale,timeZone:n.timeZone,fallbackOnEmptyString:n.fallbackOnEmptyString,formats:n.formats,textComponent:n.textComponent,messages:n.messages,defaultLocale:n.defaultLocale,defaultFormats:n.defaultFormats,onError:n.onError,onWarn:n.onWarn,wrapRichTextChunksInFragment:n.wrapRichTextChunksInFragment,defaultRichTextElements:n.defaultRichTextElements}}var KA=(function(n){Rn(a,n);function a(){var i=n!==null&&n.apply(this,arguments)||this;return i.cache=d1(),i.state={cache:i.cache,intl:Uy(id(i.props),i.cache),prevConfig:id(i.props)},i}return a.getDerivedStateFromProps=function(i,s){var u=s.prevConfig,f=s.cache,d=id(i);return FA(u,d)?null:{intl:Uy(d,f),prevConfig:d}},a.prototype.render=function(){return p1(this.state.intl),B.createElement(ZA,{value:this.state.intl},this.props.children)},a.displayName="IntlProvider",a.defaultProps=g1,a})(B.PureComponent);is("formatDate");is("formatTime");is("formatNumber");is("formatList");is("formatDisplayName");b1("formatDate");b1("formatTime");const $A="_app_1rj0t_1",WA={app:$A},La=gT,ut=vT,_1="%[a-f0-9]{2}",jy=new RegExp("("+_1+")|([^%]+?)","gi"),Hy=new RegExp("("+_1+")+","gi");function fh(n,a){try{return[decodeURIComponent(n.join(""))]}catch{}if(n.length===1)return n;a=a||1;const i=n.slice(0,a),s=n.slice(a);return Array.prototype.concat.call([],fh(i),fh(s))}function JA(n){try{return decodeURIComponent(n)}catch{let a=n.match(jy)||[];for(let i=1;i<a.length;i++)n=fh(a,i).join(""),a=n.match(jy)||[];return n}}function eO(n){const a={"%FE%FF":"��","%FF%FE":"��"};let i=Hy.exec(n);for(;i;){try{a[i[0]]=decodeURIComponent(i[0])}catch{const u=JA(i[0]);u!==i[0]&&(a[i[0]]=u)}i=Hy.exec(n)}a["%C2"]="�";const s=Object.keys(a);for(const u of s)n=n.replace(new RegExp(u,"g"),a[u]);return n}function tO(n){if(typeof n!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof n+"`");try{return decodeURIComponent(n)}catch{return eO(n)}}function nO(n,a){const i={};if(Array.isArray(a))for(const s of a){const u=Object.getOwnPropertyDescriptor(n,s);u?.enumerable&&Object.defineProperty(i,s,u)}else for(const s of Reflect.ownKeys(n)){const u=Object.getOwnPropertyDescriptor(n,s);if(u.enumerable){const f=n[s];a(s,f,n)&&Object.defineProperty(i,s,u)}}return i}function E1(n,a){if(!(typeof n=="string"&&typeof a=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(n===""||a==="")return[];const i=n.indexOf(a);return i===-1?[]:[n.slice(0,i),n.slice(i+a.length)]}const aO=n=>n==null,rO=n=>encodeURIComponent(n).replaceAll(/[!'()*]/g,a=>`%${a.charCodeAt(0).toString(16).toUpperCase()}`),dh=Symbol("encodeFragmentIdentifier");function iO(n){switch(n.arrayFormat){case"index":return a=>(i,s)=>{const u=i.length;return s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,[yt(a,n),"[",u,"]"].join("")]:[...i,[yt(a,n),"[",yt(u,n),"]=",yt(s,n)].join("")]};case"bracket":return a=>(i,s)=>s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,[yt(a,n),"[]"].join("")]:[...i,[yt(a,n),"[]=",yt(s,n)].join("")];case"colon-list-separator":return a=>(i,s)=>s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,[yt(a,n),":list="].join("")]:[...i,[yt(a,n),":list=",yt(s,n)].join("")];case"comma":case"separator":case"bracket-separator":{const a=n.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(s,u)=>u===void 0||n.skipNull&&u===null||n.skipEmptyString&&u===""?s:(u=u===null?"":u,s.length===0?[[yt(i,n),a,yt(u,n)].join("")]:[[s,yt(u,n)].join(n.arrayFormatSeparator)])}default:return a=>(i,s)=>s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,yt(a,n)]:[...i,[yt(a,n),"=",yt(s,n)].join("")]}}function lO(n){let a;switch(n.arrayFormat){case"index":return(i,s,u)=>{if(a=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!a){u[i]=s;return}u[i]===void 0&&(u[i]={}),u[i][a[1]]=s};case"bracket":return(i,s,u)=>{if(a=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!a){u[i]=s;return}if(u[i]===void 0){u[i]=[s];return}u[i]=[...u[i],s]};case"colon-list-separator":return(i,s,u)=>{if(a=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!a){u[i]=s;return}if(u[i]===void 0){u[i]=[s];return}u[i]=[...u[i],s]};case"comma":case"separator":return(i,s,u)=>{const d=typeof s=="string"&&s.includes(n.arrayFormatSeparator)?s.split(n.arrayFormatSeparator).map(h=>Gr(h,n)):s===null?s:Gr(s,n);u[i]=d};case"bracket-separator":return(i,s,u)=>{const f=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!f){u[i]=s&&Gr(s,n);return}const d=s===null?[]:Gr(s,n).split(n.arrayFormatSeparator);if(u[i]===void 0){u[i]=d;return}u[i]=[...u[i],...d]};default:return(i,s,u)=>{if(u[i]===void 0){u[i]=s;return}u[i]=[...[u[i]].flat(),s]}}}function S1(n){if(typeof n!="string"||n.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function yt(n,a){return a.encode?a.strict?rO(n):encodeURIComponent(n):n}function Gr(n,a){return a.decode?tO(n):n}function T1(n){return Array.isArray(n)?n.sort():typeof n=="object"?T1(Object.keys(n)).sort((a,i)=>Number(a)-Number(i)).map(a=>n[a]):n}function A1(n){const a=n.indexOf("#");return a!==-1&&(n=n.slice(0,a)),n}function sO(n){let a="";const i=n.indexOf("#");return i!==-1&&(a=n.slice(i)),a}function Iy(n,a,i){return i==="string"&&typeof n=="string"?n:typeof i=="function"&&typeof n=="string"?i(n):i==="boolean"&&n===null?!0:i==="boolean"&&n!==null&&(n.toLowerCase()==="true"||n.toLowerCase()==="false")?n.toLowerCase()==="true":i==="boolean"&&n!==null&&(n.toLowerCase()==="1"||n.toLowerCase()==="0")?n.toLowerCase()==="1":i==="string[]"&&a.arrayFormat!=="none"&&typeof n=="string"?[n]:i==="number[]"&&a.arrayFormat!=="none"&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?[Number(n)]:i==="number"&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?Number(n):a.parseBooleans&&n!==null&&(n.toLowerCase()==="true"||n.toLowerCase()==="false")?n.toLowerCase()==="true":a.parseNumbers&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?Number(n):n}function Uh(n){n=A1(n);const a=n.indexOf("?");return a===-1?"":n.slice(a+1)}function jh(n,a){a={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...a},S1(a.arrayFormatSeparator);const i=lO(a),s=Object.create(null);if(typeof n!="string"||(n=n.trim().replace(/^[?#&]/,""),!n))return s;for(const u of n.split("&")){if(u==="")continue;const f=a.decode?u.replaceAll("+"," "):u;let[d,h]=E1(f,"=");d===void 0&&(d=f),h=h===void 0?null:["comma","separator","bracket-separator"].includes(a.arrayFormat)?h:Gr(h,a),i(Gr(d,a),h,s)}for(const[u,f]of Object.entries(s))if(typeof f=="object"&&f!==null&&a.types[u]!=="string")for(const[d,h]of Object.entries(f)){const m=a.types[u],g=typeof m=="function"?m:m?m.replace("[]",""):void 0;f[d]=Iy(h,a,g)}else typeof f=="object"&&f!==null&&a.types[u]==="string"?s[u]=Object.values(f).join(a.arrayFormatSeparator):s[u]=Iy(f,a,a.types[u]);return a.sort===!1?s:(a.sort===!0?Object.keys(s).sort():Object.keys(s).sort(a.sort)).reduce((u,f)=>{const d=s[f];return u[f]=d&&typeof d=="object"&&!Array.isArray(d)?T1(d):d,u},Object.create(null))}function O1(n,a){if(!n)return"";a={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...a},S1(a.arrayFormatSeparator);const i=d=>a.skipNull&&aO(n[d])||a.skipEmptyString&&n[d]==="",s=iO(a),u={};for(const[d,h]of Object.entries(n))i(d)||(u[d]=h);const f=Object.keys(u);return a.sort!==!1&&f.sort(a.sort),f.map(d=>{let h=n[d];if(a.replacer&&(h=a.replacer(d,h),h===void 0)||h===void 0)return"";if(h===null)return yt(d,a);if(Array.isArray(h)){if(h.length===0&&a.arrayFormat==="bracket-separator")return yt(d,a)+"[]";let m=h;return a.replacer&&(m=h.map((g,b)=>a.replacer(`${d}[${b}]`,g)).filter(g=>g!==void 0)),m.reduce(s(d),[]).join("&")}return yt(d,a)+"="+yt(h,a)}).filter(d=>d.length>0).join("&")}function x1(n,a){a={decode:!0,...a};let[i,s]=E1(n,"#");return i===void 0&&(i=n),{url:i?.split("?")?.[0]??"",query:jh(Uh(n),a),...a&&a.parseFragmentIdentifier&&s?{fragmentIdentifier:Gr(s,a)}:{}}}function C1(n,a){a={encode:!0,strict:!0,[dh]:!0,...a};const i=A1(n.url).split("?")[0]||"",s=Uh(n.url),u={...jh(s,{sort:!1,...a}),...n.query};let f=O1(u,a);f&&=`?${f}`;let d=sO(n.url);if(typeof n.fragmentIdentifier=="string"){const h=new URL(i);h.hash=n.fragmentIdentifier,d=a[dh]?h.hash:`#${n.fragmentIdentifier}`}return`${i}${f}${d}`}function R1(n,a,i){i={parseFragmentIdentifier:!0,[dh]:!1,...i};const{url:s,query:u,fragmentIdentifier:f}=x1(n,i);return C1({url:s,query:nO(u,a),fragmentIdentifier:f},i)}function oO(n,a,i){const s=Array.isArray(a)?u=>!a.includes(u):(u,f)=>!a(u,f);return R1(n,s,i)}const Su=Object.freeze(Object.defineProperty({__proto__:null,exclude:oO,extract:Uh,parse:jh,parseUrl:x1,pick:R1,stringify:O1,stringifyUrl:C1},Symbol.toStringTag,{value:"Module"}));var Un={},jn={},Fe={},No={},he={},zy;function dn(){return zy||(zy=1,Object.defineProperty(he,"__esModule",{value:!0}),he.GUEST_LOCALE_CHANGED=he.DRAWER_CLOSE=he.DRAWER_OPEN=he.CONVERSATION_RATING_FROM_GUEST=he.TRANSCRIPT_ITEM_GUEST_REACTION=he.TRANSCRIPT_MAIL_REQUEST=he.INBOX_CONNECT_REQUEST=he.RESTART_CHAT_REQUEST=he.EVENT_TO_GUEST=he.NLU_REQUEST_EVENT=he.EXPERTS_DISCONNECTED=he.EXPERTS_DISCONNECT_REQUEST=he.EXPERTS_CONNECTED=he.EXPERTS_CONNECT_REQUEST=he.MESSAGE_TO_GUEST=he.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST=he.MESSAGE_FROM_GUEST=he.GUEST_FEEDBACK_RESPONSE=he.GUEST_DISCONNECTED=he.GUEST_CONNECTED=he.TYPING_OFF=he.TYPING_ON=void 0,he.TYPING_ON="core.typing.on",he.TYPING_OFF="core.typing.off",he.GUEST_CONNECTED="core.guest.connected",he.GUEST_DISCONNECTED="core.guest.disconnected",he.GUEST_FEEDBACK_RESPONSE="core.guest.feedback.response",he.MESSAGE_FROM_GUEST="core.message.from.guest",he.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest",he.MESSAGE_TO_GUEST="core.message.to.guest",he.EXPERTS_CONNECT_REQUEST="core.experts.connect.request",he.EXPERTS_CONNECTED="core.experts.connected",he.EXPERTS_DISCONNECT_REQUEST="core.experts.disconnect.request",he.EXPERTS_DISCONNECTED="core.experts.disconnected",he.NLU_REQUEST_EVENT="core.nlu.request.event",he.EVENT_TO_GUEST="core.event.to.guest",he.RESTART_CHAT_REQUEST="core.chat.restart.request",he.INBOX_CONNECT_REQUEST="core.inbox.connect.request",he.TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request",he.TRANSCRIPT_ITEM_GUEST_REACTION="core.transcript.item.guest.reaction",he.CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest",he.DRAWER_OPEN="core.drawer.open",he.DRAWER_CLOSE="core.drawer.close",he.GUEST_LOCALE_CHANGED="core.guest.locale.changed"),he}var Gy;function uO(){if(Gy)return No;Gy=1,Object.defineProperty(No,"__esModule",{value:!0});const n=dn(),a=()=>({type:n.DRAWER_CLOSE});return No.default=a,No}var Mo={},ky;function cO(){if(ky)return Mo;ky=1,Object.defineProperty(Mo,"__esModule",{value:!0});const n=dn(),a=(i,s)=>({type:n.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:i,intent:s}});return Mo.default=a,Mo}var Do={},qy;function fO(){if(qy)return Do;qy=1,Object.defineProperty(Do,"__esModule",{value:!0});const n=dn(),a=i=>({type:n.GUEST_CONNECTED,payload:{sessionId:i}});return Do.default=a,Do}var Lo={},Fy;function dO(){if(Fy)return Lo;Fy=1,Object.defineProperty(Lo,"__esModule",{value:!0});const n=dn(),a=i=>({type:n.GUEST_DISCONNECTED,payload:{sessionId:i}});return Lo.default=a,Lo}var Bo={},Vy;function hO(){if(Vy)return Bo;Vy=1,Object.defineProperty(Bo,"__esModule",{value:!0});const n=dn(),a=(i,s)=>({type:n.GUEST_LOCALE_CHANGED,payload:{previousLocale:i,newLocale:s}});return Bo.default=a,Bo}var Uo={},Yy;function mO(){if(Yy)return Uo;Yy=1,Object.defineProperty(Uo,"__esModule",{value:!0});const n=dn(),a=i=>({type:n.DRAWER_OPEN,payload:{parameters:{contentUrl:i}}});return Uo.default=a,Uo}var jo={},at={},Py;function Hh(){if(Py)return at;Py=1,Object.defineProperty(at,"__esModule",{value:!0}),at.getStringRepresentationFromMessage=at.MessageTypeEnum=at.AudioMessage=at.FileMessage=at.ImageMessage=at.VideoMessage=at.MarkdownMessage=at.DetailMessage=at.TextMessage=at.Message=void 0;class n{type;sender;sources;quickReplies;constructor(_,A,U=[],x=[]){this.type=_,this.sender=A,this.sources=U,this.quickReplies=x}addQuickReply(_,A){this.quickReplies.push({label:_,payload:A})}}at.Message=n;class a extends n{text;constructor(_,A,U=[],x=[]){super(m.TEXT,A,U,x),this.text=_}}at.TextMessage=a;class i extends n{title;text;imageUrl;itemUrl;buttons;constructor(_,A){super(m.DETAIL,A),this.title=_,this.text="",this.imageUrl="",this.itemUrl="",this.buttons=[]}setImageUrl(_){this.imageUrl=_}setItemUrl(_){this.itemUrl=_}setText(_){this.text=_}addButton(_){this.buttons.push(_)}}at.DetailMessage=i;class s extends n{markdown;constructor(_,A,U=[],x=[]){super(m.MARKDOWN,A,U,x),this.markdown=_}}at.MarkdownMessage=s;class u extends n{url;constructor(_,A){super(m.VIDEO,A),this.url=_}}at.VideoMessage=u;class f extends n{url;constructor(_,A){super(m.IMAGE,A),this.url=_}}at.ImageMessage=f;class d extends n{url;constructor(_,A){super(m.FILE,A),this.url=_}}at.FileMessage=d;class h extends n{url;constructor(_,A){super(m.AUDIO,A),this.url=_}}at.AudioMessage=h;var m;(function(b){b.TEXT="TEXT",b.DETAIL="DETAIL",b.MARKDOWN="MARKDOWN",b.VIDEO="VIDEO",b.IMAGE="IMAGE",b.FILE="FILE",b.AUDIO="AUDIO"})(m||(at.MessageTypeEnum=m={}));const g=b=>{switch(b.type){case m.TEXT:return b.text;case m.DETAIL:return`${b.title}`;case m.MARKDOWN:return b.markdown;case m.VIDEO:return`Video Url: ${b.url}`;case m.IMAGE:return`Image Url: ${b.url}`;case m.FILE:return`File Url: ${b.url}`;case m.AUDIO:return`Audio Url: ${b.url}`;default:throw new Error("Unknown message type "+b.type)}};return at.getStringRepresentationFromMessage=g,at}var sn={},Xy;function Ih(){if(Xy)return sn;Xy=1,Object.defineProperty(sn,"__esModule",{value:!0}),sn.UserType=sn.PersonUser=sn.GuestUser=sn.BotUser=sn.User=void 0;class n{type;id;name;avatar;constructor(d,h,m,g){this.type=d,this.id=h,this.name=m,this.avatar=g}}sn.User=n;class a extends n{constructor(){super(u.BOT,null,"Chatbot","bot.svg")}}sn.BotUser=a;class i extends n{constructor(){super(u.GUEST,null,"Guest","visitor.svg")}}sn.GuestUser=i;class s extends n{constructor(d,h,m){super(u.PERSON,d,h,m)}}sn.PersonUser=s;var u;return(function(f){f.GUEST="GUEST",f.BOT="BOT",f.PERSON="PERSON"})(u||(sn.UserType=u={})),sn}var Zy;function pO(){if(Zy)return jo;Zy=1,Object.defineProperty(jo,"__esModule",{value:!0});const n=Hh(),a=Ih(),i=dn(),s=u=>{const f=new n.TextMessage(u,new a.GuestUser);return{type:i.MESSAGE_FROM_GUEST,message:f}};return jo.default=s,jo}var Ho={},Qy;function gO(){if(Qy)return Ho;Qy=1,Object.defineProperty(Ho,"__esModule",{value:!0});const n=Hh(),a=Ih(),i=dn(),s=(u,f={})=>{const d=new n.TextMessage(u,new a.GuestUser);return{type:i.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:d,payload:f}};return Ho.default=s,Ho}var Io={},Ky;function yO(){if(Ky)return Io;Ky=1,Object.defineProperty(Io,"__esModule",{value:!0});const n=dn(),a=i=>({type:n.NLU_REQUEST_EVENT,event:i});return Io.default=a,Io}var zo={},$y;function bO(){if($y)return zo;$y=1,Object.defineProperty(zo,"__esModule",{value:!0});const n=dn(),a=()=>({type:n.RESTART_CHAT_REQUEST});return zo.default=a,zo}var Go={},Wy;function vO(){if(Wy)return Go;Wy=1,Object.defineProperty(Go,"__esModule",{value:!0});const n=dn(),a=i=>({type:n.MESSAGE_TO_GUEST,message:i});return Go.default=a,Go}var ko={},Jy;function _O(){if(Jy)return ko;Jy=1,Object.defineProperty(ko,"__esModule",{value:!0});const n=dn(),a=(i,s,u=null,f=null)=>({type:n.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:i,reaction:s,category:u,comment:f}});return ko.default=a,ko}var eb;function EO(){if(eb)return Fe;eb=1;var n=Fe&&Fe.__importDefault||function(U){return U&&U.__esModule?U:{default:U}};Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.transcriptItemGuestReaction=Fe.sendMessageToGuest=Fe.restartChatRequest=Fe.requestNLUEvent=Fe.receiveTextMessageWithoutAnalysisFromGuest=Fe.receiveTextMessageFromGuest=Fe.openDrawer=Fe.guestLocaleChanged=Fe.guestDisconnected=Fe.guestConnected=Fe.feedbackFromGuestResponse=Fe.closeDrawer=void 0;const a=n(uO());Fe.closeDrawer=a.default;const i=n(cO());Fe.feedbackFromGuestResponse=i.default;const s=n(fO());Fe.guestConnected=s.default;const u=n(dO());Fe.guestDisconnected=u.default;const f=n(hO());Fe.guestLocaleChanged=f.default;const d=n(mO());Fe.openDrawer=d.default;const h=n(pO());Fe.receiveTextMessageFromGuest=h.default;const m=n(gO());Fe.receiveTextMessageWithoutAnalysisFromGuest=m.default;const g=n(yO());Fe.requestNLUEvent=g.default;const b=n(bO());Fe.restartChatRequest=b.default;const _=n(vO());Fe.sendMessageToGuest=_.default;const A=n(_O());return Fe.transcriptItemGuestReaction=A.default,Fe}var ld={},tb;function SO(){return tb||(tb=1,Object.defineProperty(ld,"__esModule",{value:!0})),ld}var nb;function TO(){return nb||(nb=1,(function(n){var a=jn&&jn.__createBinding||(Object.create?(function(f,d,h,m){m===void 0&&(m=h);var g=Object.getOwnPropertyDescriptor(d,h);(!g||("get"in g?!d.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(f,m,g)}):(function(f,d,h,m){m===void 0&&(m=h),f[m]=d[h]})),i=jn&&jn.__setModuleDefault||(Object.create?(function(f,d){Object.defineProperty(f,"default",{enumerable:!0,value:d})}):function(f,d){f.default=d}),s=jn&&jn.__importStar||(function(){var f=function(d){return f=Object.getOwnPropertyNames||function(h){var m=[];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(m[m.length]=g);return m},f(d)};return function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var m=f(d),g=0;g<m.length;g++)m[g]!=="default"&&a(h,d,m[g]);return i(h,d),h}})(),u=jn&&jn.__exportStar||function(f,d){for(var h in f)h!=="default"&&!Object.prototype.hasOwnProperty.call(d,h)&&a(d,f,h)};Object.defineProperty(n,"__esModule",{value:!0}),n.ActionTypes=n.Actions=void 0,n.Actions=s(EO()),n.ActionTypes=s(dn()),u(SO(),n)})(jn)),jn}var on={},sd={},ab;function AO(){return ab||(ab=1,Object.defineProperty(sd,"__esModule",{value:!0})),sd}var Hl={},rb;function OO(){if(rb)return Hl;rb=1,Object.defineProperty(Hl,"__esModule",{value:!0}),Hl.NullableKnowledgeBaseAdapter=void 0;class n{async createApiKnowledgeBase(i){throw new Error("Method not implemented.")}async updateApiKnowledgeBase(i,s){throw new Error("Method not implemented.")}async deleteApiKnowledgeBase(i){throw new Error("Method not implemented.")}async upsertApiKnowledgeBase(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseById(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findApiKnowledgeBases(){throw new Error("Method not implemented.")}async deleteApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findKnowledgeBaseEntries(i){throw new Error("Method not implemented.")}async createKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntry(i,s,u){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async upsertKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async retrieveKnowledgeBaseEntryConfig(i,s){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryByUriAlias(i,s){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntriesIndexedBeforeDate(i,s){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryAttachments(i,s){throw new Error("Method not implemented.")}async createKnowledgeBaseEntryAttachment(i,s,u){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntryAttachment(i,s,u,f){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntryAttachment(i,s,u){throw new Error("Method not implemented.")}async setIndexingStatus(i,s){throw new Error("Method not implemented.")}async subscribeToReindex(i,s){throw new Error("Method not implemented.")}isContentTypeSupported(i){throw new Error("Method not implemented.")}registerTool(i,s){throw new Error("Method not implemented.")}async getTools(i){throw new Error("Method not implemented.")}}return Hl.NullableKnowledgeBaseAdapter=n,Hl}var ib;function xO(){if(ib)return on;ib=1;var n=on&&on.__createBinding||(Object.create?(function(u,f,d,h){h===void 0&&(h=d);var m=Object.getOwnPropertyDescriptor(f,d);(!m||("get"in m?!f.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return f[d]}}),Object.defineProperty(u,h,m)}):(function(u,f,d,h){h===void 0&&(h=d),u[h]=f[d]})),a=on&&on.__setModuleDefault||(Object.create?(function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}):function(u,f){u.default=f}),i=on&&on.__importStar||(function(){var u=function(f){return u=Object.getOwnPropertyNames||function(d){var h=[];for(var m in d)Object.prototype.hasOwnProperty.call(d,m)&&(h[h.length]=m);return h},u(f)};return function(f){if(f&&f.__esModule)return f;var d={};if(f!=null)for(var h=u(f),m=0;m<h.length;m++)h[m]!=="default"&&n(d,f,h[m]);return a(d,f),d}})();Object.defineProperty(on,"__esModule",{value:!0}),on.NullableCmsAdapter=on.KnowledgeBase=void 0,on.KnowledgeBase=i(AO());const s=OO();return on.NullableCmsAdapter={knowledgeBase:new s.NullableKnowledgeBaseAdapter},on}var Dr={},od={},lb;function CO(){return lb||(lb=1,Object.defineProperty(od,"__esModule",{value:!0})),od}var ud={},sb;function RO(){return sb||(sb=1,Object.defineProperty(ud,"__esModule",{value:!0})),ud}var cd={},ob;function wO(){return ob||(ob=1,Object.defineProperty(cd,"__esModule",{value:!0})),cd}var fd={},ub;function NO(){return ub||(ub=1,Object.defineProperty(fd,"__esModule",{value:!0})),fd}var Il={},cb;function MO(){if(cb)return Il;cb=1,Object.defineProperty(Il,"__esModule",{value:!0}),Il.checkMiddlewareCondition=void 0;const n=async(a,i,s)=>(Array.isArray(a)?a:[a]).reduce(async(f,d)=>await f?await d(i,s):!1,Promise.resolve(!0));return Il.checkMiddlewareCondition=n,Il}var dd={},fb;function DO(){return fb||(fb=1,Object.defineProperty(dd,"__esModule",{value:!0})),dd}var hd={},db;function LO(){return db||(db=1,Object.defineProperty(hd,"__esModule",{value:!0})),hd}var md={},hb;function BO(){return hb||(hb=1,Object.defineProperty(md,"__esModule",{value:!0})),md}var mb;function UO(){return mb||(mb=1,(function(n){var a=Dr&&Dr.__createBinding||(Object.create?(function(s,u,f,d){d===void 0&&(d=f);var h=Object.getOwnPropertyDescriptor(u,f);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(s,d,h)}):(function(s,u,f,d){d===void 0&&(d=f),s[d]=u[f]})),i=Dr&&Dr.__exportStar||function(s,u){for(var f in s)f!=="default"&&!Object.prototype.hasOwnProperty.call(u,f)&&a(u,s,f)};Object.defineProperty(n,"__esModule",{value:!0}),i(CO(),n),i(RO(),n),i(wO(),n),i(NO(),n),i(MO(),n),i(DO(),n),i(LO(),n),i(BO(),n)})(Dr)),Dr}var Lr={},Hn={},pb;function jO(){if(pb)return Hn;pb=1,Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.ButtonTypeEnum=Hn.PostbackButton=Hn.UrlButton=Hn.Button=void 0;class n{title;type;constructor(f,d){this.title=f,this.type=d}}Hn.Button=n;class a extends n{url;constructor(f,d){super(f,s.WEB_URL),this.url=d}}Hn.UrlButton=a;class i extends n{payload;constructor(f,d){super(f,s.POSTBACK),this.payload=d}}Hn.PostbackButton=i;var s;return(function(u){u.WEB_URL="web_url",u.POSTBACK="postback"})(s||(Hn.ButtonTypeEnum=s={})),Hn}var pd={},gb;function HO(){return gb||(gb=1,Object.defineProperty(pd,"__esModule",{value:!0})),pd}var zl={},yb;function IO(){if(yb)return zl;yb=1,Object.defineProperty(zl,"__esModule",{value:!0}),zl.SatisfactionEnum=void 0;var n;return(function(a){a.GOOD="GOOD",a.BAD="BAD"})(n||(zl.SatisfactionEnum=n={})),zl}var bb;function vb(){return bb||(bb=1,(function(n){var a=Lr&&Lr.__createBinding||(Object.create?(function(s,u,f,d){d===void 0&&(d=f);var h=Object.getOwnPropertyDescriptor(u,f);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(s,d,h)}):(function(s,u,f,d){d===void 0&&(d=f),s[d]=u[f]})),i=Lr&&Lr.__exportStar||function(s,u){for(var f in s)f!=="default"&&!Object.prototype.hasOwnProperty.call(u,f)&&a(u,s,f)};Object.defineProperty(n,"__esModule",{value:!0}),i(jO(),n),i(HO(),n),i(IO(),n),i(Hh(),n),i(Ih(),n)})(Lr)),Lr}var _b;function zO(){return _b||(_b=1,(function(n){var a=Un&&Un.__createBinding||(Object.create?(function(f,d,h,m){m===void 0&&(m=h);var g=Object.getOwnPropertyDescriptor(d,h);(!g||("get"in g?!d.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(f,m,g)}):(function(f,d,h,m){m===void 0&&(m=h),f[m]=d[h]})),i=Un&&Un.__setModuleDefault||(Object.create?(function(f,d){Object.defineProperty(f,"default",{enumerable:!0,value:d})}):function(f,d){f.default=d}),s=Un&&Un.__exportStar||function(f,d){for(var h in f)h!=="default"&&!Object.prototype.hasOwnProperty.call(d,h)&&a(d,f,h)},u=Un&&Un.__importStar||(function(){var f=function(d){return f=Object.getOwnPropertyNames||function(h){var m=[];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(m[m.length]=g);return m},f(d)};return function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var m=f(d),g=0;g<m.length;g++)m[g]!=="default"&&a(h,d,m[g]);return i(h,d),h}})();Object.defineProperty(n,"__esModule",{value:!0}),n.Model=n.CMS=void 0,s(TO(),n),n.CMS=u(xO()),s(UO(),n),n.Model=u(vb()),s(vb(),n)})(Un)),Un}var Te=zO();const w1=n=>a=>(n.payload.type!==Te.ActionTypes.MESSAGE_FROM_GUEST&&a(Te.Actions.receiveTextMessageWithoutAnalysisFromGuest(n.label,n.payload)),a(n.payload)),N1=n=>(a,i)=>{const{quickReplies:s}=i().chat,u=s.find(f=>n.toLocaleLowerCase().indexOf(f.label.toLocaleLowerCase())>-1);return a(u?w1({...u,label:n}):JSON.parse(JSON.stringify(Te.Actions.receiveTextMessageFromGuest(n))))},zh="MESSAGE_TO_PARENT_PAGE",Gh="RESTORE_PREVIOUS_CHAT_MESSAGES",kh="AUDIO_MESSAGE_FROM_USER",qh="RECEIVE_SPEECH_TRANSCRIPTION",Fh="ENABLE_CONVERSATION_RATING",M1="LOAD_SOURCE_INFOS_RESPONSE",Vh="LOAD_SOURCE_INFOS_ERROR",Yh="LOAD_SOURCE_INFOS_REQUEST",Ph="CLOSE_SOURCE_INFOS",GO="webclient.get.started",D1="webclient.window.expand",L1="webclient.window.close",B1="webclient.transcript.pdf.download",kO=[zh,Gh,kh,qh,Fh,Yh,Ph],qO=n=>({type:kh,buffer:n}),FO=n=>({type:qh,transcription:n}),VO=n=>({type:Te.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:n}}}),YO=()=>({type:B1}),PO=({rating:n})=>({type:Fh,payload:{rating:n}}),XO=(n,a)=>({type:Te.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:n,feedback:a}}),U1=n=>Te.Actions.requestNLUEvent(n),ZO=n=>({type:Gh,messages:n}),QO=n=>{switch(n.type){case Te.ButtonTypeEnum.WEB_URL:return H1(n.url);case Te.ButtonTypeEnum.POSTBACK:return n.payload;default:throw new Error(`unknown button type ${n.type}`)}},j1=n=>H1(n),H1=n=>({type:zh,message:{type:"webclient.change.url",url:n}});/*! js-cookie v3.0.5 | MIT */function qo(n){for(var a=1;a<arguments.length;a++){var i=arguments[a];for(var s in i)n[s]=i[s]}return n}var KO={read:function(n){return n[0]==='"'&&(n=n.slice(1,-1)),n.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(n){return encodeURIComponent(n).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function hh(n,a){function i(u,f,d){if(!(typeof document>"u")){d=qo({},a,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),u=encodeURIComponent(u).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var h="";for(var m in d)d[m]&&(h+="; "+m,d[m]!==!0&&(h+="="+d[m].split(";")[0]));return document.cookie=u+"="+n.write(f,u)+h}}function s(u){if(!(typeof document>"u"||arguments.length&&!u)){for(var f=document.cookie?document.cookie.split("; "):[],d={},h=0;h<f.length;h++){var m=f[h].split("="),g=m.slice(1).join("=");try{var b=decodeURIComponent(m[0]);if(d[b]=n.read(g,b),u===b)break}catch{}}return u?d[u]:d}}return Object.create({set:i,get:s,remove:function(u,f){i(u,"",qo({},f,{expires:-1}))},withAttributes:function(u){return hh(this.converter,qo({},this.attributes,u))},withConverter:function(u){return hh(qo({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(a)},converter:{value:Object.freeze(n)}})}var Fo=hh(KO,{path:"/"});const Lt=[];for(let n=0;n<256;++n)Lt.push((n+256).toString(16).slice(1));function $O(n,a=0){return(Lt[n[a+0]]+Lt[n[a+1]]+Lt[n[a+2]]+Lt[n[a+3]]+"-"+Lt[n[a+4]]+Lt[n[a+5]]+"-"+Lt[n[a+6]]+Lt[n[a+7]]+"-"+Lt[n[a+8]]+Lt[n[a+9]]+"-"+Lt[n[a+10]]+Lt[n[a+11]]+Lt[n[a+12]]+Lt[n[a+13]]+Lt[n[a+14]]+Lt[n[a+15]]).toLowerCase()}let gd;const WO=new Uint8Array(16);function JO(){if(!gd){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");gd=crypto.getRandomValues.bind(crypto)}return gd(WO)}const ex=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Eb={randomUUID:ex};function tx(n,a,i){n=n||{};const s=n.random??n.rng?.()??JO();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=s[6]&15|64,s[8]=s[8]&63|128,$O(s)}function ou(n,a,i){return Eb.randomUUID&&!n?Eb.randomUUID():tx(n)}const Xh=()=>nx(window.location.pathname),nx=n=>{const a=n.split("/"),i=n.endsWith("/");return a[a.length-(i?2:1)]};function Bt(n){return`Minified Redux error #${n}; visit https://redux.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}var ax=typeof Symbol=="function"&&Symbol.observable||"@@observable",Sb=ax,yd=()=>Math.random().toString(36).substring(7).split("").join("."),rx={INIT:`@@redux/INIT${yd()}`,REPLACE:`@@redux/REPLACE${yd()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${yd()}`},uu=rx;function Zh(n){if(typeof n!="object"||n===null)return!1;let a=n;for(;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);return Object.getPrototypeOf(n)===a||Object.getPrototypeOf(n)===null}function I1(n,a,i){if(typeof n!="function")throw new Error(Bt(2));if(typeof a=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(Bt(0));if(typeof a=="function"&&typeof i>"u"&&(i=a,a=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(Bt(1));return i(I1)(n,a)}let s=n,u=a,f=new Map,d=f,h=0,m=!1;function g(){d===f&&(d=new Map,f.forEach((I,E)=>{d.set(E,I)}))}function b(){if(m)throw new Error(Bt(3));return u}function _(I){if(typeof I!="function")throw new Error(Bt(4));if(m)throw new Error(Bt(5));let E=!0;g();const C=h++;return d.set(C,I),function(){if(E){if(m)throw new Error(Bt(6));E=!1,g(),d.delete(C),f=null}}}function A(I){if(!Zh(I))throw new Error(Bt(7));if(typeof I.type>"u")throw new Error(Bt(8));if(typeof I.type!="string")throw new Error(Bt(17));if(m)throw new Error(Bt(9));try{m=!0,u=s(u,I)}finally{m=!1}return(f=d).forEach(C=>{C()}),I}function U(I){if(typeof I!="function")throw new Error(Bt(10));s=I,A({type:uu.REPLACE})}function x(){const I=_;return{subscribe(E){if(typeof E!="object"||E===null)throw new Error(Bt(11));function C(){const H=E;H.next&&H.next(b())}return C(),{unsubscribe:I(C)}},[Sb](){return this}}}return A({type:uu.INIT}),{dispatch:A,subscribe:_,getState:b,replaceReducer:U,[Sb]:x}}function ix(n){Object.keys(n).forEach(a=>{const i=n[a];if(typeof i(void 0,{type:uu.INIT})>"u")throw new Error(Bt(12));if(typeof i(void 0,{type:uu.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Bt(13))})}function z1(n){const a=Object.keys(n),i={};for(let f=0;f<a.length;f++){const d=a[f];typeof n[d]=="function"&&(i[d]=n[d])}const s=Object.keys(i);let u;try{ix(i)}catch(f){u=f}return function(d={},h){if(u)throw u;let m=!1;const g={};for(let b=0;b<s.length;b++){const _=s[b],A=i[_],U=d[_],x=A(U,h);if(typeof x>"u")throw h&&h.type,new Error(Bt(14));g[_]=x,m=m||x!==U}return m=m||s.length!==Object.keys(d).length,m?g:d}}function cu(...n){return n.length===0?a=>a:n.length===1?n[0]:n.reduce((a,i)=>(...s)=>a(i(...s)))}function lx(...n){return a=>(i,s)=>{const u=a(i,s);let f=()=>{throw new Error(Bt(15))};const d={getState:u.getState,dispatch:(m,...g)=>f(m,...g)},h=n.map(m=>m(d));return f=cu(...h)(u.dispatch),{...u,dispatch:f}}}function sx(n){return Zh(n)&&"type"in n&&typeof n.type=="string"}var G1=Symbol.for("immer-nothing"),Tb=Symbol.for("immer-draftable"),cn=Symbol.for("immer-state");function kn(n,...a){throw new Error(`[Immer] minified error nr: ${n}. Full error at: https://bit.ly/3cXEKWf`)}var Mi=Object.getPrototypeOf;function Fr(n){return!!n&&!!n[cn]}function Da(n){return n?k1(n)||Array.isArray(n)||!!n[Tb]||!!n.constructor?.[Tb]||Au(n)||Ou(n):!1}var ox=Object.prototype.constructor.toString();function k1(n){if(!n||typeof n!="object")return!1;const a=Mi(n);if(a===null)return!0;const i=Object.hasOwnProperty.call(a,"constructor")&&a.constructor;return i===Object?!0:typeof i=="function"&&Function.toString.call(i)===ox}function fu(n,a){Tu(n)===0?Reflect.ownKeys(n).forEach(i=>{a(i,n[i],n)}):n.forEach((i,s)=>a(s,i,n))}function Tu(n){const a=n[cn];return a?a.type_:Array.isArray(n)?1:Au(n)?2:Ou(n)?3:0}function mh(n,a){return Tu(n)===2?n.has(a):Object.prototype.hasOwnProperty.call(n,a)}function q1(n,a,i){const s=Tu(n);s===2?n.set(a,i):s===3?n.add(i):n[a]=i}function ux(n,a){return n===a?n!==0||1/n===1/a:n!==n&&a!==a}function Au(n){return n instanceof Map}function Ou(n){return n instanceof Set}function Ir(n){return n.copy_||n.base_}function ph(n,a){if(Au(n))return new Map(n);if(Ou(n))return new Set(n);if(Array.isArray(n))return Array.prototype.slice.call(n);const i=k1(n);if(a===!0||a==="class_only"&&!i){const s=Object.getOwnPropertyDescriptors(n);delete s[cn];let u=Reflect.ownKeys(s);for(let f=0;f<u.length;f++){const d=u[f],h=s[d];h.writable===!1&&(h.writable=!0,h.configurable=!0),(h.get||h.set)&&(s[d]={configurable:!0,writable:!0,enumerable:h.enumerable,value:n[d]})}return Object.create(Mi(n),s)}else{const s=Mi(n);if(s!==null&&i)return{...n};const u=Object.create(s);return Object.assign(u,n)}}function Qh(n,a=!1){return xu(n)||Fr(n)||!Da(n)||(Tu(n)>1&&(n.set=n.add=n.clear=n.delete=cx),Object.freeze(n),a&&Object.entries(n).forEach(([i,s])=>Qh(s,!0))),n}function cx(){kn(2)}function xu(n){return Object.isFrozen(n)}var fx={};function Vr(n){const a=fx[n];return a||kn(0,n),a}var es;function F1(){return es}function dx(n,a){return{drafts_:[],parent_:n,immer_:a,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Ab(n,a){a&&(Vr("Patches"),n.patches_=[],n.inversePatches_=[],n.patchListener_=a)}function gh(n){yh(n),n.drafts_.forEach(hx),n.drafts_=null}function yh(n){n===es&&(es=n.parent_)}function Ob(n){return es=dx(es,n)}function hx(n){const a=n[cn];a.type_===0||a.type_===1?a.revoke_():a.revoked_=!0}function xb(n,a){a.unfinalizedDrafts_=a.drafts_.length;const i=a.drafts_[0];return n!==void 0&&n!==i?(i[cn].modified_&&(gh(a),kn(4)),Da(n)&&(n=du(a,n),a.parent_||hu(a,n)),a.patches_&&Vr("Patches").generateReplacementPatches_(i[cn].base_,n,a.patches_,a.inversePatches_)):n=du(a,i,[]),gh(a),a.patches_&&a.patchListener_(a.patches_,a.inversePatches_),n!==G1?n:void 0}function du(n,a,i){if(xu(a))return a;const s=a[cn];if(!s)return fu(a,(u,f)=>Cb(n,s,a,u,f,i)),a;if(s.scope_!==n)return a;if(!s.modified_)return hu(n,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const u=s.copy_;let f=u,d=!1;s.type_===3&&(f=new Set(u),u.clear(),d=!0),fu(f,(h,m)=>Cb(n,s,u,h,m,i,d)),hu(n,u,!1),i&&n.patches_&&Vr("Patches").generatePatches_(s,i,n.patches_,n.inversePatches_)}return s.copy_}function Cb(n,a,i,s,u,f,d){if(Fr(u)){const h=f&&a&&a.type_!==3&&!mh(a.assigned_,s)?f.concat(s):void 0,m=du(n,u,h);if(q1(i,s,m),Fr(m))n.canAutoFreeze_=!1;else return}else d&&i.add(u);if(Da(u)&&!xu(u)){if(!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1)return;du(n,u),(!a||!a.scope_.parent_)&&typeof s!="symbol"&&Object.prototype.propertyIsEnumerable.call(i,s)&&hu(n,u)}}function hu(n,a,i=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&Qh(a,i)}function mx(n,a){const i=Array.isArray(n),s={type_:i?1:0,scope_:a?a.scope_:F1(),modified_:!1,finalized_:!1,assigned_:{},parent_:a,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1};let u=s,f=Kh;i&&(u=[s],f=ts);const{revoke:d,proxy:h}=Proxy.revocable(u,f);return s.draft_=h,s.revoke_=d,h}var Kh={get(n,a){if(a===cn)return n;const i=Ir(n);if(!mh(i,a))return px(n,i,a);const s=i[a];return n.finalized_||!Da(s)?s:s===bd(n.base_,a)?(vd(n),n.copy_[a]=vh(s,n)):s},has(n,a){return a in Ir(n)},ownKeys(n){return Reflect.ownKeys(Ir(n))},set(n,a,i){const s=V1(Ir(n),a);if(s?.set)return s.set.call(n.draft_,i),!0;if(!n.modified_){const u=bd(Ir(n),a),f=u?.[cn];if(f&&f.base_===i)return n.copy_[a]=i,n.assigned_[a]=!1,!0;if(ux(i,u)&&(i!==void 0||mh(n.base_,a)))return!0;vd(n),bh(n)}return n.copy_[a]===i&&(i!==void 0||a in n.copy_)||Number.isNaN(i)&&Number.isNaN(n.copy_[a])||(n.copy_[a]=i,n.assigned_[a]=!0),!0},deleteProperty(n,a){return bd(n.base_,a)!==void 0||a in n.base_?(n.assigned_[a]=!1,vd(n),bh(n)):delete n.assigned_[a],n.copy_&&delete n.copy_[a],!0},getOwnPropertyDescriptor(n,a){const i=Ir(n),s=Reflect.getOwnPropertyDescriptor(i,a);return s&&{writable:!0,configurable:n.type_!==1||a!=="length",enumerable:s.enumerable,value:i[a]}},defineProperty(){kn(11)},getPrototypeOf(n){return Mi(n.base_)},setPrototypeOf(){kn(12)}},ts={};fu(Kh,(n,a)=>{ts[n]=function(){return arguments[0]=arguments[0][0],a.apply(this,arguments)}});ts.deleteProperty=function(n,a){return ts.set.call(this,n,a,void 0)};ts.set=function(n,a,i){return Kh.set.call(this,n[0],a,i,n[0])};function bd(n,a){const i=n[cn];return(i?Ir(i):n)[a]}function px(n,a,i){const s=V1(a,i);return s?"value"in s?s.value:s.get?.call(n.draft_):void 0}function V1(n,a){if(!(a in n))return;let i=Mi(n);for(;i;){const s=Object.getOwnPropertyDescriptor(i,a);if(s)return s;i=Mi(i)}}function bh(n){n.modified_||(n.modified_=!0,n.parent_&&bh(n.parent_))}function vd(n){n.copy_||(n.copy_=ph(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var gx=class{constructor(n){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(a,i,s)=>{if(typeof a=="function"&&typeof i!="function"){const f=i;i=a;const d=this;return function(m=f,...g){return d.produce(m,b=>i.call(this,b,...g))}}typeof i!="function"&&kn(6),s!==void 0&&typeof s!="function"&&kn(7);let u;if(Da(a)){const f=Ob(this),d=vh(a,void 0);let h=!0;try{u=i(d),h=!1}finally{h?gh(f):yh(f)}return Ab(f,s),xb(u,f)}else if(!a||typeof a!="object"){if(u=i(a),u===void 0&&(u=a),u===G1&&(u=void 0),this.autoFreeze_&&Qh(u,!0),s){const f=[],d=[];Vr("Patches").generateReplacementPatches_(a,u,f,d),s(f,d)}return u}else kn(1,a)},this.produceWithPatches=(a,i)=>{if(typeof a=="function")return(d,...h)=>this.produceWithPatches(d,m=>a(m,...h));let s,u;return[this.produce(a,i,(d,h)=>{s=d,u=h}),s,u]},typeof n?.autoFreeze=="boolean"&&this.setAutoFreeze(n.autoFreeze),typeof n?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(n.useStrictShallowCopy)}createDraft(n){Da(n)||kn(8),Fr(n)&&(n=yx(n));const a=Ob(this),i=vh(n,void 0);return i[cn].isManual_=!0,yh(a),i}finishDraft(n,a){const i=n&&n[cn];(!i||!i.isManual_)&&kn(9);const{scope_:s}=i;return Ab(s,a),xb(void 0,s)}setAutoFreeze(n){this.autoFreeze_=n}setUseStrictShallowCopy(n){this.useStrictShallowCopy_=n}applyPatches(n,a){let i;for(i=a.length-1;i>=0;i--){const u=a[i];if(u.path.length===0&&u.op==="replace"){n=u.value;break}}i>-1&&(a=a.slice(i+1));const s=Vr("Patches").applyPatches_;return Fr(n)?s(n,a):this.produce(n,u=>s(u,a))}};function vh(n,a){const i=Au(n)?Vr("MapSet").proxyMap_(n,a):Ou(n)?Vr("MapSet").proxySet_(n,a):mx(n,a);return(a?a.scope_:F1()).drafts_.push(i),i}function yx(n){return Fr(n)||kn(10,n),Y1(n)}function Y1(n){if(!Da(n)||xu(n))return n;const a=n[cn];let i;if(a){if(!a.modified_)return a.base_;a.finalized_=!0,i=ph(n,a.scope_.immer_.useStrictShallowCopy_)}else i=ph(n,!0);return fu(i,(s,u)=>{q1(i,s,Y1(u))}),a&&(a.finalized_=!1),i}var fn=new gx,P1=fn.produce;fn.produceWithPatches.bind(fn);fn.setAutoFreeze.bind(fn);fn.setUseStrictShallowCopy.bind(fn);fn.applyPatches.bind(fn);fn.createDraft.bind(fn);fn.finishDraft.bind(fn);function X1(n){return({dispatch:i,getState:s})=>u=>f=>typeof f=="function"?f(i,s,n):u(f)}var bx=X1(),vx=X1,_x=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?cu:cu.apply(null,arguments)};function Rb(n,a){function i(...s){if(a){let u=a(...s);if(!u)throw new Error(Ra(0));return{type:n,payload:u.payload,..."meta"in u&&{meta:u.meta},..."error"in u&&{error:u.error}}}return{type:n,payload:s[0]}}return i.toString=()=>`${n}`,i.type=n,i.match=s=>sx(s)&&s.type===n,i}var Z1=class Kl extends Array{constructor(...a){super(...a),Object.setPrototypeOf(this,Kl.prototype)}static get[Symbol.species](){return Kl}concat(...a){return super.concat.apply(this,a)}prepend(...a){return a.length===1&&Array.isArray(a[0])?new Kl(...a[0].concat(this)):new Kl(...a.concat(this))}};function wb(n){return Da(n)?P1(n,()=>{}):n}function Vo(n,a,i){return n.has(a)?n.get(a):n.set(a,i(a)).get(a)}function Ex(n){return typeof n=="boolean"}var Sx=()=>function(a){const{thunk:i=!0,immutableCheck:s=!0,serializableCheck:u=!0,actionCreatorCheck:f=!0}=a??{};let d=new Z1;return i&&(Ex(i)?d.push(bx):d.push(vx(i.extraArgument))),d},Tx="RTK_autoBatch",Nb=n=>a=>{setTimeout(a,n)},Ax=(n={type:"raf"})=>a=>(...i)=>{const s=a(...i);let u=!0,f=!1,d=!1;const h=new Set,m=n.type==="tick"?queueMicrotask:n.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Nb(10):n.type==="callback"?n.queueNotification:Nb(n.timeout),g=()=>{d=!1,f&&(f=!1,h.forEach(b=>b()))};return Object.assign({},s,{subscribe(b){const _=()=>u&&b(),A=s.subscribe(_);return h.add(b),()=>{A(),h.delete(b)}},dispatch(b){try{return u=!b?.meta?.[Tx],f=!u,f&&(d||(d=!0,m(g))),s.dispatch(b)}finally{u=!0}}})},Ox=n=>function(i){const{autoBatch:s=!0}=i??{};let u=new Z1(n);return s&&u.push(Ax(typeof s=="object"?s:void 0)),u};function xx(n){const a=Sx(),{reducer:i=void 0,middleware:s,devTools:u=!0,preloadedState:f=void 0,enhancers:d=void 0}=n||{};let h;if(typeof i=="function")h=i;else if(Zh(i))h=z1(i);else throw new Error(Ra(1));let m;typeof s=="function"?m=s(a):m=a();let g=cu;u&&(g=_x({trace:!1,...typeof u=="object"&&u}));const b=lx(...m),_=Ox(b);let A=typeof d=="function"?d(_):_();const U=g(...A);return I1(h,f,U)}function Q1(n){const a={},i=[];let s;const u={addCase(f,d){const h=typeof f=="string"?f:f.type;if(!h)throw new Error(Ra(28));if(h in a)throw new Error(Ra(29));return a[h]=d,u},addAsyncThunk(f,d){return d.pending&&(a[f.pending.type]=d.pending),d.rejected&&(a[f.rejected.type]=d.rejected),d.fulfilled&&(a[f.fulfilled.type]=d.fulfilled),d.settled&&i.push({matcher:f.settled,reducer:d.settled}),u},addMatcher(f,d){return i.push({matcher:f,reducer:d}),u},addDefaultCase(f){return s=f,u}};return n(u),[a,i,s]}function Cx(n){return typeof n=="function"}function Rx(n,a){let[i,s,u]=Q1(a),f;if(Cx(n))f=()=>wb(n());else{const h=wb(n);f=()=>h}function d(h=f(),m){let g=[i[m.type],...s.filter(({matcher:b})=>b(m)).map(({reducer:b})=>b)];return g.filter(b=>!!b).length===0&&(g=[u]),g.reduce((b,_)=>{if(_)if(Fr(b)){const U=_(b,m);return U===void 0?b:U}else{if(Da(b))return P1(b,A=>_(A,m));{const A=_(b,m);if(A===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}}return b},h)}return d.getInitialState=f,d}var wx=Symbol.for("rtk-slice-createasyncthunk");function Nx(n,a){return`${n}/${a}`}function Mx({creators:n}={}){const a=n?.asyncThunk?.[wx];return function(s){const{name:u,reducerPath:f=u}=s;if(!u)throw new Error(Ra(11));const d=(typeof s.reducers=="function"?s.reducers(Lx()):s.reducers)||{},h=Object.keys(d),m={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},g={addCase(S,H){const N=typeof S=="string"?S:S.type;if(!N)throw new Error(Ra(12));if(N in m.sliceCaseReducersByType)throw new Error(Ra(13));return m.sliceCaseReducersByType[N]=H,g},addMatcher(S,H){return m.sliceMatchers.push({matcher:S,reducer:H}),g},exposeAction(S,H){return m.actionCreators[S]=H,g},exposeCaseReducer(S,H){return m.sliceCaseReducersByName[S]=H,g}};h.forEach(S=>{const H=d[S],N={reducerName:S,type:Nx(u,S),createNotation:typeof s.reducers=="function"};Ux(H)?Hx(N,H,g,a):Bx(N,H,g)});function b(){const[S={},H=[],N=void 0]=typeof s.extraReducers=="function"?Q1(s.extraReducers):[s.extraReducers],Z={...S,...m.sliceCaseReducersByType};return Rx(s.initialState,X=>{for(let te in Z)X.addCase(te,Z[te]);for(let te of m.sliceMatchers)X.addMatcher(te.matcher,te.reducer);for(let te of H)X.addMatcher(te.matcher,te.reducer);N&&X.addDefaultCase(N)})}const _=S=>S,A=new Map,U=new WeakMap;let x;function k(S,H){return x||(x=b()),x(S,H)}function I(){return x||(x=b()),x.getInitialState()}function E(S,H=!1){function N(X){let te=X[S];return typeof te>"u"&&H&&(te=Vo(U,N,I)),te}function Z(X=_){const te=Vo(A,H,()=>new WeakMap);return Vo(te,X,()=>{const de={};for(const[ye,re]of Object.entries(s.selectors??{}))de[ye]=Dx(re,X,()=>Vo(U,X,I),H);return de})}return{reducerPath:S,getSelectors:Z,get selectors(){return Z(N)},selectSlice:N}}const C={name:u,reducer:k,actions:m.actionCreators,caseReducers:m.sliceCaseReducersByName,getInitialState:I,...E(f),injectInto(S,{reducerPath:H,...N}={}){const Z=H??f;return S.inject({reducerPath:Z,reducer:k},N),{...C,...E(Z,!0)}}};return C}}function Dx(n,a,i,s){function u(f,...d){let h=a(f);return typeof h>"u"&&s&&(h=i()),n(h,...d)}return u.unwrapped=n,u}var $h=Mx();function Lx(){function n(a,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:a,...i}}return n.withTypes=()=>n,{reducer(a){return Object.assign({[a.name](...i){return a(...i)}}[a.name],{_reducerDefinitionType:"reducer"})},preparedReducer(a,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:a,reducer:i}},asyncThunk:n}}function Bx({type:n,reducerName:a,createNotation:i},s,u){let f,d;if("reducer"in s){if(i&&!jx(s))throw new Error(Ra(17));f=s.reducer,d=s.prepare}else f=s;u.addCase(n,f).exposeCaseReducer(a,f).exposeAction(a,d?Rb(n,d):Rb(n))}function Ux(n){return n._reducerDefinitionType==="asyncThunk"}function jx(n){return n._reducerDefinitionType==="reducerWithPrepare"}function Hx({type:n,reducerName:a},i,s,u){if(!u)throw new Error(Ra(18));const{payloadCreator:f,fulfilled:d,pending:h,rejected:m,settled:g,options:b}=i,_=u(n,f,b);s.exposeAction(a,_),d&&s.addCase(_.fulfilled,d),h&&s.addCase(_.pending,h),m&&s.addCase(_.rejected,m),g&&s.addMatcher(_.settled,g),s.exposeCaseReducer(a,{fulfilled:d||Yo,pending:h||Yo,rejected:m||Yo,settled:g||Yo})}function Yo(){}function Ra(n){return`Minified Redux Toolkit error #${n}; visit https://redux-toolkit.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}const Ix={formValues:{}},K1=$h({name:"start-screen",initialState:Ix,reducers:{showStartScreen(n){n.startScreenStatus="VISIBLE",n.formValues={}},startChat(n,a){n.startScreenStatus="HIDDEN",n.formValues=a.payload.formValues},startAuthenticatedChat(n,a){n.startScreenStatus="HIDDEN",n.loginToken=a.payload.loginToken,n.loginRequestToken=void 0},requestLogin(n,a){n.loginRequestToken=a.payload.loginRequestToken,n.formValues=a.payload.formValues},loginWindowClosed(n){n.loginRequestToken=void 0}}}),{startChat:zx,startAuthenticatedChat:Gx,showStartScreen:kx,requestLogin:qx,loginWindowClosed:Fx}=K1.actions,Vx=K1.reducer,$1="RESET_CHAT_STATE",W1="TOGGLE_TRANSCRIPT_MAIL_OVERLAY",J1="SHOW_CONVERSATION_RATING_OVERLAY",e_="HIDE_CONVERSATION_RATING_OVERLAY",t_=()=>({type:L1}),Yx=()=>({type:$1}),n_=()=>({type:W1}),mu=(n,a=void 0)=>({type:J1,payload:{opener:n,defaultRating:a}}),Px=()=>({type:e_}),Mb=(n,a,i)=>(s,u)=>{try{const f=u().connection.sessionId;if(!f)throw new Error("Session ID is not available");s({type:Yh,payload:{chunkId:i}}),Db(n,f,a,i,!1,s),Db(n,f,a,i,!0,s)}catch(f){console.error("Error loading source infos:",f),s({type:Vh})}},Db=(n,a,i,s,u,f)=>{const d=`/${n}/me/chat-widget/transcript/${i}/chunks/${s}?highlight=${u}`;fetch(d,{headers:{"x-bubble-chat-session-id":a}}).then(h=>{if(!h.ok)throw new Error(`HTTP error! Status: ${h.status}`);return h.json()}).then(h=>{const m={...h,chunkId:s,highlighted:u};f({type:M1,payload:m})}).catch(h=>{console.error("Error fetching source infos:",h),f({type:Vh,payload:{highlighted:u}})})},Xx=()=>({type:Ph}),Wh="CONNECT",Jh="CONNECTING",em="CONNECTED",tm="DISCONNECTED",nm="RECONNECTED",am="RESTORE_SESSION_ID",Cu="START",Ru="CLEAR_SESSION_ID",Zx=[Wh,Jh,em,tm,nm,am],Qx=(n,a)=>({type:Wh,clientName:n,querystrings:a}),Kx=n=>({type:am,sessionId:n}),$x=()=>({type:Jh}),Wx=()=>({type:em}),Jx=()=>({type:tm}),eC=()=>({type:nm}),a_=(n,a)=>(i,s)=>{const u=s().connection,{formValues:f,loginToken:d}=s().startScreen;let h=u.sessionId;h===void 0&&(h=ou());let m=u.userId;if(m===void 0){const g=Fo.get("bubble-chat-user-id")||Fo.get("bubble-chat-userId")||Fo.get("bf-webclient-userId");m=g||ou(),Fo.set("bubble-chat-user-id",m)}i({type:Cu,payload:{sessionId:h,userId:m,clientName:n,loginToken:d,querystrings:{...a,...f}}})},ls=()=>(n,a)=>{const i=a().connection.sessionId||"";if(n(tC(i)),n(Yx()),a().settings.enableStartScreen)n(kx());else{const s=Xh(),u=Su.parse(window.location.search);return n(a_(s,u))}},tC=n=>({type:Ru,payload:{sessionId:n}}),tt=()=>{const n=Eu();return i=>{const s=n.formatMessage({id:i});return s===i?void 0:s}};var kr=(n=>(n[n.CONNECTING=0]="CONNECTING",n[n.CONNECTED=1]="CONNECTED",n[n.RECONNECTED=2]="RECONNECTED",n[n.DISCONNECTED=3]="DISCONNECTED",n))(kr||{}),pu=(n=>(n.GUEST="GUEST",n.BOT="BOT",n.PERSON="PERSON",n))(pu||{});const nC="_container_q2uun_1",aC="_chatcontent_q2uun_6",rC="_accessabilityHidden_q2uun_12",_d={container:nC,chatcontent:aC,accessabilityHidden:rC},iC="_messageContainer_ofi0g_1",lC="_messages_ofi0g_12",Lb={messageContainer:iC,messages:lC};function zr(){return zr=Object.assign?Object.assign.bind():function(n){for(var a=1;a<arguments.length;a++){var i=arguments[a];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])}return n},zr.apply(this,arguments)}const sC=["children","options"],oC={footnoteReference:"7"},Bb=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((n,a)=>(n[a.toLowerCase()]=a,n),{class:"className",for:"htmlFor"}),Ub={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},uC=["style","script","pre"],cC=["src","href","data","formAction","srcDoc","action"],fC=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,dC=/\n{2,}$/,jb=/^(\s*>[\s\S]*?)(?=\n\n|$)/,hC=/^ *> ?/gm,mC=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,pC=/^ {2,}\n/,gC=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,Hb=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Ib=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,yC=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,bC=/^(?:\n *)*\n/,vC=/\r\n?/g,_C=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,EC=/^\[\^([^\]]+)]/,SC=/\f/g,TC=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,AC=/^\s*?\[(x|\s)\]/,zb=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Gb=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,kb=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Ed=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,OC=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,qb=/^<!--[\s\S]*?(?:-->)/,xC=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Sd=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,CC=/^\{.*\}$/,RC=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,wC=/^<([^ >]+[:@\/][^ >]+)>/,NC=/-([a-z])?/gi,Fb=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,MC=/^[^\n]+(?: \n|\n{2,})/,DC=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,LC=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,BC=/^\[([^\]]*)\] ?\[([^\]]*)\]/,UC=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,jC=/\t/g,HC=/(^ *\||\| *$)/g,IC=/^ *:-+: *$/,zC=/^ *:-+ *$/,GC=/^ *-+: *$/,wu=n=>`(?=[\\s\\S]+?\\1${n?"\\1":""})`,Nu="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",kC=RegExp(`^([*_])\\1${wu(1)}${Nu}\\1\\1(?!\\1)`),qC=RegExp(`^([*_])${wu(0)}${Nu}\\1(?!\\1)`),FC=RegExp(`^(==)${wu(0)}${Nu}\\1`),VC=RegExp(`^(~~)${wu(0)}${Nu}\\1`),YC=/^(:[a-zA-Z0-9-_]+:)/,PC=/^\\([^0-9A-Za-z\s])/,XC=/\\([^0-9A-Za-z\s])/g,ZC=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,QC=/^\n+/,KC=/^([ \t]*)/,$C=/(?:^|\n)( *)$/,rm="(?:\\d+\\.)",im="(?:[*+-])";function r_(n){return"( *)("+(n===1?rm:im)+") +"}const i_=r_(1),l_=r_(2);function s_(n){return RegExp("^"+(n===1?i_:l_))}const WC=s_(1),JC=s_(2);function o_(n){return RegExp("^"+(n===1?i_:l_)+"[^\\n]*(?:\\n(?!\\1"+(n===1?rm:im)+" )[^\\n]*)*(\\n|$)","gm")}const eR=o_(1),tR=o_(2);function u_(n){const a=n===1?rm:im;return RegExp("^( *)("+a+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+a+" (?!"+a+" ))\\n*|\\s*\\n*$)")}const c_=u_(1),f_=u_(2);function Vb(n,a){const i=a===1,s=i?c_:f_,u=i?eR:tR,f=i?WC:JC;return{t:d=>f.test(d),o:Di(function(d,h){const m=$C.exec(h.prevCapture);return m&&(h.list||!h.inline&&!h.simple)?s.exec(d=m[1]+d):null}),i:1,u(d,h,m){const g=i?+d[2]:void 0,b=d[0].replace(dC,`
93
+ */var My;function VA(){if(My)return ze;My=1;var n=typeof Symbol=="function"&&Symbol.for,a=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,s=n?Symbol.for("react.fragment"):60107,u=n?Symbol.for("react.strict_mode"):60108,f=n?Symbol.for("react.profiler"):60114,d=n?Symbol.for("react.provider"):60109,h=n?Symbol.for("react.context"):60110,m=n?Symbol.for("react.async_mode"):60111,g=n?Symbol.for("react.concurrent_mode"):60111,b=n?Symbol.for("react.forward_ref"):60112,_=n?Symbol.for("react.suspense"):60113,A=n?Symbol.for("react.suspense_list"):60120,U=n?Symbol.for("react.memo"):60115,x=n?Symbol.for("react.lazy"):60116,k=n?Symbol.for("react.block"):60121,I=n?Symbol.for("react.fundamental"):60117,E=n?Symbol.for("react.responder"):60118,C=n?Symbol.for("react.scope"):60119;function S(N){if(typeof N=="object"&&N!==null){var Z=N.$$typeof;switch(Z){case a:switch(N=N.type,N){case m:case g:case s:case f:case u:case _:return N;default:switch(N=N&&N.$$typeof,N){case h:case b:case x:case U:case d:return N;default:return Z}}case i:return Z}}}function H(N){return S(N)===g}return ze.AsyncMode=m,ze.ConcurrentMode=g,ze.ContextConsumer=h,ze.ContextProvider=d,ze.Element=a,ze.ForwardRef=b,ze.Fragment=s,ze.Lazy=x,ze.Memo=U,ze.Portal=i,ze.Profiler=f,ze.StrictMode=u,ze.Suspense=_,ze.isAsyncMode=function(N){return H(N)||S(N)===m},ze.isConcurrentMode=H,ze.isContextConsumer=function(N){return S(N)===h},ze.isContextProvider=function(N){return S(N)===d},ze.isElement=function(N){return typeof N=="object"&&N!==null&&N.$$typeof===a},ze.isForwardRef=function(N){return S(N)===b},ze.isFragment=function(N){return S(N)===s},ze.isLazy=function(N){return S(N)===x},ze.isMemo=function(N){return S(N)===U},ze.isPortal=function(N){return S(N)===i},ze.isProfiler=function(N){return S(N)===f},ze.isStrictMode=function(N){return S(N)===u},ze.isSuspense=function(N){return S(N)===_},ze.isValidElementType=function(N){return typeof N=="string"||typeof N=="function"||N===s||N===g||N===f||N===u||N===_||N===A||typeof N=="object"&&N!==null&&(N.$$typeof===x||N.$$typeof===U||N.$$typeof===d||N.$$typeof===h||N.$$typeof===b||N.$$typeof===I||N.$$typeof===E||N.$$typeof===C||N.$$typeof===k)},ze.typeOf=S,ze}var Dy;function YA(){return Dy||(Dy=1,ad.exports=VA()),ad.exports}var rd,Ly;function PA(){if(Ly)return rd;Ly=1;var n=YA(),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},f={};f[n.ForwardRef]=s,f[n.Memo]=u;function d(x){return n.isMemo(x)?u:f[x.$$typeof]||a}var h=Object.defineProperty,m=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,b=Object.getOwnPropertyDescriptor,_=Object.getPrototypeOf,A=Object.prototype;function U(x,k,I){if(typeof k!="string"){if(A){var E=_(k);E&&E!==A&&U(x,E,I)}var C=m(k);g&&(C=C.concat(g(k)));for(var S=d(x),H=d(k),N=0;N<C.length;++N){var Z=C[N];if(!i[Z]&&!(I&&I[Z])&&!(H&&H[Z])&&!(S&&S[Z])){var X=b(k,Z);try{h(x,Z,X)}catch{}}}}return x}return rd=U,rd}PA();var Bh=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=B.createContext(null)):B.createContext(null);Bh.Consumer;var XA=Bh.Provider,ZA=XA,QA=Bh;function Su(){var n=B.useContext(QA);return p1(n),n}var uh;(function(n){n.formatDate="FormattedDate",n.formatTime="FormattedTime",n.formatNumber="FormattedNumber",n.formatList="FormattedList",n.formatDisplayName="FormattedDisplayName"})(uh||(uh={}));var ch;(function(n){n.formatDate="FormattedDateParts",n.formatTime="FormattedTimeParts",n.formatNumber="FormattedNumberParts",n.formatList="FormattedListParts"})(ch||(ch={}));function b1(n){var a=function(i){var s=Su(),u=i.value,f=i.children,d=Eu(i,["value","children"]),h=typeof u=="string"?new Date(u||0):u,m=n==="formatDate"?s.formatDateToParts(h,d):s.formatTimeToParts(h,d);return f(m)};return a.displayName=ch[n],a}function rs(n){var a=function(i){var s=Su(),u=i.value,f=i.children,d=Eu(i,["value","children"]),h=s[n](u,d);if(typeof f=="function")return f(h);var m=s.textComponent||B.Fragment;return B.createElement(m,null,h)};return a.displayName=uh[n],a}function v1(n){return n&&Object.keys(n).reduce(function(a,i){var s=n[i];return a[i]=u1(s)?qA(s):s,a},{})}var By=function(n,a,i,s){for(var u=[],f=4;f<arguments.length;f++)u[f-4]=arguments[f];var d=v1(s),h=oh.apply(void 0,Kn([n,a,i,d],u,!1));return Array.isArray(h)?y1(h):h},Uy=function(n,a){var i=n.defaultRichTextElements,s=Eu(n,["defaultRichTextElements"]),u=v1(i),f=zA(se(se(se({},g1),s),{defaultRichTextElements:u}),a),d={locale:f.locale,timeZone:f.timeZone,fallbackOnEmptyString:f.fallbackOnEmptyString,formats:f.formats,defaultLocale:f.defaultLocale,defaultFormats:f.defaultFormats,messages:f.messages,onError:f.onError,defaultRichTextElements:u};return se(se({},f),{formatMessage:By.bind(null,d,f.formatters),$t:By.bind(null,d,f.formatters)})};function id(n){return{locale:n.locale,timeZone:n.timeZone,fallbackOnEmptyString:n.fallbackOnEmptyString,formats:n.formats,textComponent:n.textComponent,messages:n.messages,defaultLocale:n.defaultLocale,defaultFormats:n.defaultFormats,onError:n.onError,onWarn:n.onWarn,wrapRichTextChunksInFragment:n.wrapRichTextChunksInFragment,defaultRichTextElements:n.defaultRichTextElements}}var KA=(function(n){Cn(a,n);function a(){var i=n!==null&&n.apply(this,arguments)||this;return i.cache=d1(),i.state={cache:i.cache,intl:Uy(id(i.props),i.cache),prevConfig:id(i.props)},i}return a.getDerivedStateFromProps=function(i,s){var u=s.prevConfig,f=s.cache,d=id(i);return FA(u,d)?null:{intl:Uy(d,f),prevConfig:d}},a.prototype.render=function(){return p1(this.state.intl),B.createElement(ZA,{value:this.state.intl},this.props.children)},a.displayName="IntlProvider",a.defaultProps=g1,a})(B.PureComponent);rs("formatDate");rs("formatTime");rs("formatNumber");rs("formatList");rs("formatDisplayName");b1("formatDate");b1("formatTime");const $A="_app_1rj0t_1",WA={app:$A},Da=gT,ut=vT,_1="%[a-f0-9]{2}",jy=new RegExp("("+_1+")|([^%]+?)","gi"),Hy=new RegExp("("+_1+")+","gi");function fh(n,a){try{return[decodeURIComponent(n.join(""))]}catch{}if(n.length===1)return n;a=a||1;const i=n.slice(0,a),s=n.slice(a);return Array.prototype.concat.call([],fh(i),fh(s))}function JA(n){try{return decodeURIComponent(n)}catch{let a=n.match(jy)||[];for(let i=1;i<a.length;i++)n=fh(a,i).join(""),a=n.match(jy)||[];return n}}function eO(n){const a={"%FE%FF":"��","%FF%FE":"��"};let i=Hy.exec(n);for(;i;){try{a[i[0]]=decodeURIComponent(i[0])}catch{const u=JA(i[0]);u!==i[0]&&(a[i[0]]=u)}i=Hy.exec(n)}a["%C2"]="�";const s=Object.keys(a);for(const u of s)n=n.replace(new RegExp(u,"g"),a[u]);return n}function tO(n){if(typeof n!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof n+"`");try{return decodeURIComponent(n)}catch{return eO(n)}}function nO(n,a){const i={};if(Array.isArray(a))for(const s of a){const u=Object.getOwnPropertyDescriptor(n,s);u?.enumerable&&Object.defineProperty(i,s,u)}else for(const s of Reflect.ownKeys(n)){const u=Object.getOwnPropertyDescriptor(n,s);if(u.enumerable){const f=n[s];a(s,f,n)&&Object.defineProperty(i,s,u)}}return i}function E1(n,a){if(!(typeof n=="string"&&typeof a=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(n===""||a==="")return[];const i=n.indexOf(a);return i===-1?[]:[n.slice(0,i),n.slice(i+a.length)]}const aO=n=>n==null,rO=n=>encodeURIComponent(n).replaceAll(/[!'()*]/g,a=>`%${a.charCodeAt(0).toString(16).toUpperCase()}`),dh=Symbol("encodeFragmentIdentifier");function iO(n){switch(n.arrayFormat){case"index":return a=>(i,s)=>{const u=i.length;return s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,[yt(a,n),"[",u,"]"].join("")]:[...i,[yt(a,n),"[",yt(u,n),"]=",yt(s,n)].join("")]};case"bracket":return a=>(i,s)=>s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,[yt(a,n),"[]"].join("")]:[...i,[yt(a,n),"[]=",yt(s,n)].join("")];case"colon-list-separator":return a=>(i,s)=>s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,[yt(a,n),":list="].join("")]:[...i,[yt(a,n),":list=",yt(s,n)].join("")];case"comma":case"separator":case"bracket-separator":{const a=n.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(s,u)=>u===void 0||n.skipNull&&u===null||n.skipEmptyString&&u===""?s:(u=u===null?"":u,s.length===0?[[yt(i,n),a,yt(u,n)].join("")]:[[s,yt(u,n)].join(n.arrayFormatSeparator)])}default:return a=>(i,s)=>s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,yt(a,n)]:[...i,[yt(a,n),"=",yt(s,n)].join("")]}}function lO(n){let a;switch(n.arrayFormat){case"index":return(i,s,u)=>{if(a=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!a){u[i]=s;return}u[i]===void 0&&(u[i]={}),u[i][a[1]]=s};case"bracket":return(i,s,u)=>{if(a=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!a){u[i]=s;return}if(u[i]===void 0){u[i]=[s];return}u[i]=[...u[i],s]};case"colon-list-separator":return(i,s,u)=>{if(a=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!a){u[i]=s;return}if(u[i]===void 0){u[i]=[s];return}u[i]=[...u[i],s]};case"comma":case"separator":return(i,s,u)=>{const d=typeof s=="string"&&s.includes(n.arrayFormatSeparator)?s.split(n.arrayFormatSeparator).map(h=>zr(h,n)):s===null?s:zr(s,n);u[i]=d};case"bracket-separator":return(i,s,u)=>{const f=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!f){u[i]=s&&zr(s,n);return}const d=s===null?[]:zr(s,n).split(n.arrayFormatSeparator);if(u[i]===void 0){u[i]=d;return}u[i]=[...u[i],...d]};default:return(i,s,u)=>{if(u[i]===void 0){u[i]=s;return}u[i]=[...[u[i]].flat(),s]}}}function S1(n){if(typeof n!="string"||n.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function yt(n,a){return a.encode?a.strict?rO(n):encodeURIComponent(n):n}function zr(n,a){return a.decode?tO(n):n}function T1(n){return Array.isArray(n)?n.sort():typeof n=="object"?T1(Object.keys(n)).sort((a,i)=>Number(a)-Number(i)).map(a=>n[a]):n}function A1(n){const a=n.indexOf("#");return a!==-1&&(n=n.slice(0,a)),n}function sO(n){let a="";const i=n.indexOf("#");return i!==-1&&(a=n.slice(i)),a}function Iy(n,a,i){return i==="string"&&typeof n=="string"?n:typeof i=="function"&&typeof n=="string"?i(n):i==="boolean"&&n===null?!0:i==="boolean"&&n!==null&&(n.toLowerCase()==="true"||n.toLowerCase()==="false")?n.toLowerCase()==="true":i==="boolean"&&n!==null&&(n.toLowerCase()==="1"||n.toLowerCase()==="0")?n.toLowerCase()==="1":i==="string[]"&&a.arrayFormat!=="none"&&typeof n=="string"?[n]:i==="number[]"&&a.arrayFormat!=="none"&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?[Number(n)]:i==="number"&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?Number(n):a.parseBooleans&&n!==null&&(n.toLowerCase()==="true"||n.toLowerCase()==="false")?n.toLowerCase()==="true":a.parseNumbers&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?Number(n):n}function Uh(n){n=A1(n);const a=n.indexOf("?");return a===-1?"":n.slice(a+1)}function jh(n,a){a={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...a},S1(a.arrayFormatSeparator);const i=lO(a),s=Object.create(null);if(typeof n!="string"||(n=n.trim().replace(/^[?#&]/,""),!n))return s;for(const u of n.split("&")){if(u==="")continue;const f=a.decode?u.replaceAll("+"," "):u;let[d,h]=E1(f,"=");d===void 0&&(d=f),h=h===void 0?null:["comma","separator","bracket-separator"].includes(a.arrayFormat)?h:zr(h,a),i(zr(d,a),h,s)}for(const[u,f]of Object.entries(s))if(typeof f=="object"&&f!==null&&a.types[u]!=="string")for(const[d,h]of Object.entries(f)){const m=a.types[u],g=typeof m=="function"?m:m?m.replace("[]",""):void 0;f[d]=Iy(h,a,g)}else typeof f=="object"&&f!==null&&a.types[u]==="string"?s[u]=Object.values(f).join(a.arrayFormatSeparator):s[u]=Iy(f,a,a.types[u]);return a.sort===!1?s:(a.sort===!0?Object.keys(s).sort():Object.keys(s).sort(a.sort)).reduce((u,f)=>{const d=s[f];return u[f]=d&&typeof d=="object"&&!Array.isArray(d)?T1(d):d,u},Object.create(null))}function O1(n,a){if(!n)return"";a={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...a},S1(a.arrayFormatSeparator);const i=d=>a.skipNull&&aO(n[d])||a.skipEmptyString&&n[d]==="",s=iO(a),u={};for(const[d,h]of Object.entries(n))i(d)||(u[d]=h);const f=Object.keys(u);return a.sort!==!1&&f.sort(a.sort),f.map(d=>{let h=n[d];if(a.replacer&&(h=a.replacer(d,h),h===void 0)||h===void 0)return"";if(h===null)return yt(d,a);if(Array.isArray(h)){if(h.length===0&&a.arrayFormat==="bracket-separator")return yt(d,a)+"[]";let m=h;return a.replacer&&(m=h.map((g,b)=>a.replacer(`${d}[${b}]`,g)).filter(g=>g!==void 0)),m.reduce(s(d),[]).join("&")}return yt(d,a)+"="+yt(h,a)}).filter(d=>d.length>0).join("&")}function x1(n,a){a={decode:!0,...a};let[i,s]=E1(n,"#");return i===void 0&&(i=n),{url:i?.split("?")?.[0]??"",query:jh(Uh(n),a),...a&&a.parseFragmentIdentifier&&s?{fragmentIdentifier:zr(s,a)}:{}}}function C1(n,a){a={encode:!0,strict:!0,[dh]:!0,...a};const i=A1(n.url).split("?")[0]||"",s=Uh(n.url),u={...jh(s,{sort:!1,...a}),...n.query};let f=O1(u,a);f&&=`?${f}`;let d=sO(n.url);if(typeof n.fragmentIdentifier=="string"){const h=new URL(i);h.hash=n.fragmentIdentifier,d=a[dh]?h.hash:`#${n.fragmentIdentifier}`}return`${i}${f}${d}`}function R1(n,a,i){i={parseFragmentIdentifier:!0,[dh]:!1,...i};const{url:s,query:u,fragmentIdentifier:f}=x1(n,i);return C1({url:s,query:nO(u,a),fragmentIdentifier:f},i)}function oO(n,a,i){const s=Array.isArray(a)?u=>!a.includes(u):(u,f)=>!a(u,f);return R1(n,s,i)}const Tu=Object.freeze(Object.defineProperty({__proto__:null,exclude:oO,extract:Uh,parse:jh,parseUrl:x1,pick:R1,stringify:O1,stringifyUrl:C1},Symbol.toStringTag,{value:"Module"}));var Bn={},Un={},Fe={},No={},he={},zy;function fn(){return zy||(zy=1,Object.defineProperty(he,"__esModule",{value:!0}),he.GUEST_LOCALE_CHANGED=he.DRAWER_CLOSE=he.DRAWER_OPEN=he.CONVERSATION_RATING_FROM_GUEST=he.TRANSCRIPT_ITEM_GUEST_REACTION=he.TRANSCRIPT_MAIL_REQUEST=he.INBOX_CONNECT_REQUEST=he.RESTART_CHAT_REQUEST=he.EVENT_TO_GUEST=he.NLU_REQUEST_EVENT=he.EXPERTS_DISCONNECTED=he.EXPERTS_DISCONNECT_REQUEST=he.EXPERTS_CONNECTED=he.EXPERTS_CONNECT_REQUEST=he.MESSAGE_TO_GUEST=he.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST=he.MESSAGE_FROM_GUEST=he.GUEST_FEEDBACK_RESPONSE=he.GUEST_DISCONNECTED=he.GUEST_CONNECTED=he.TYPING_OFF=he.TYPING_ON=void 0,he.TYPING_ON="core.typing.on",he.TYPING_OFF="core.typing.off",he.GUEST_CONNECTED="core.guest.connected",he.GUEST_DISCONNECTED="core.guest.disconnected",he.GUEST_FEEDBACK_RESPONSE="core.guest.feedback.response",he.MESSAGE_FROM_GUEST="core.message.from.guest",he.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest",he.MESSAGE_TO_GUEST="core.message.to.guest",he.EXPERTS_CONNECT_REQUEST="core.experts.connect.request",he.EXPERTS_CONNECTED="core.experts.connected",he.EXPERTS_DISCONNECT_REQUEST="core.experts.disconnect.request",he.EXPERTS_DISCONNECTED="core.experts.disconnected",he.NLU_REQUEST_EVENT="core.nlu.request.event",he.EVENT_TO_GUEST="core.event.to.guest",he.RESTART_CHAT_REQUEST="core.chat.restart.request",he.INBOX_CONNECT_REQUEST="core.inbox.connect.request",he.TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request",he.TRANSCRIPT_ITEM_GUEST_REACTION="core.transcript.item.guest.reaction",he.CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest",he.DRAWER_OPEN="core.drawer.open",he.DRAWER_CLOSE="core.drawer.close",he.GUEST_LOCALE_CHANGED="core.guest.locale.changed"),he}var Gy;function uO(){if(Gy)return No;Gy=1,Object.defineProperty(No,"__esModule",{value:!0});const n=fn(),a=()=>({type:n.DRAWER_CLOSE});return No.default=a,No}var Mo={},ky;function cO(){if(ky)return Mo;ky=1,Object.defineProperty(Mo,"__esModule",{value:!0});const n=fn(),a=(i,s)=>({type:n.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:i,intent:s}});return Mo.default=a,Mo}var Do={},qy;function fO(){if(qy)return Do;qy=1,Object.defineProperty(Do,"__esModule",{value:!0});const n=fn(),a=i=>({type:n.GUEST_CONNECTED,payload:{sessionId:i}});return Do.default=a,Do}var Lo={},Fy;function dO(){if(Fy)return Lo;Fy=1,Object.defineProperty(Lo,"__esModule",{value:!0});const n=fn(),a=i=>({type:n.GUEST_DISCONNECTED,payload:{sessionId:i}});return Lo.default=a,Lo}var Bo={},Vy;function hO(){if(Vy)return Bo;Vy=1,Object.defineProperty(Bo,"__esModule",{value:!0});const n=fn(),a=(i,s)=>({type:n.GUEST_LOCALE_CHANGED,payload:{previousLocale:i,newLocale:s}});return Bo.default=a,Bo}var Uo={},Yy;function mO(){if(Yy)return Uo;Yy=1,Object.defineProperty(Uo,"__esModule",{value:!0});const n=fn(),a=i=>({type:n.DRAWER_OPEN,payload:{parameters:{contentUrl:i}}});return Uo.default=a,Uo}var jo={},at={},Py;function Hh(){if(Py)return at;Py=1,Object.defineProperty(at,"__esModule",{value:!0}),at.getStringRepresentationFromMessage=at.MessageTypeEnum=at.AudioMessage=at.FileMessage=at.ImageMessage=at.VideoMessage=at.MarkdownMessage=at.DetailMessage=at.TextMessage=at.Message=void 0;class n{type;sender;sources;quickReplies;constructor(_,A,U=[],x=[]){this.type=_,this.sender=A,this.sources=U,this.quickReplies=x}addQuickReply(_,A){this.quickReplies.push({label:_,payload:A})}}at.Message=n;class a extends n{text;constructor(_,A,U=[],x=[]){super(m.TEXT,A,U,x),this.text=_}}at.TextMessage=a;class i extends n{title;text;imageUrl;itemUrl;buttons;constructor(_,A){super(m.DETAIL,A),this.title=_,this.text="",this.imageUrl="",this.itemUrl="",this.buttons=[]}setImageUrl(_){this.imageUrl=_}setItemUrl(_){this.itemUrl=_}setText(_){this.text=_}addButton(_){this.buttons.push(_)}}at.DetailMessage=i;class s extends n{markdown;constructor(_,A,U=[],x=[]){super(m.MARKDOWN,A,U,x),this.markdown=_}}at.MarkdownMessage=s;class u extends n{url;constructor(_,A){super(m.VIDEO,A),this.url=_}}at.VideoMessage=u;class f extends n{url;constructor(_,A){super(m.IMAGE,A),this.url=_}}at.ImageMessage=f;class d extends n{url;constructor(_,A){super(m.FILE,A),this.url=_}}at.FileMessage=d;class h extends n{url;constructor(_,A){super(m.AUDIO,A),this.url=_}}at.AudioMessage=h;var m;(function(b){b.TEXT="TEXT",b.DETAIL="DETAIL",b.MARKDOWN="MARKDOWN",b.VIDEO="VIDEO",b.IMAGE="IMAGE",b.FILE="FILE",b.AUDIO="AUDIO"})(m||(at.MessageTypeEnum=m={}));const g=b=>{switch(b.type){case m.TEXT:return b.text;case m.DETAIL:return`${b.title}`;case m.MARKDOWN:return b.markdown;case m.VIDEO:return`Video Url: ${b.url}`;case m.IMAGE:return`Image Url: ${b.url}`;case m.FILE:return`File Url: ${b.url}`;case m.AUDIO:return`Audio Url: ${b.url}`;default:throw new Error("Unknown message type "+b.type)}};return at.getStringRepresentationFromMessage=g,at}var sn={},Xy;function Ih(){if(Xy)return sn;Xy=1,Object.defineProperty(sn,"__esModule",{value:!0}),sn.UserType=sn.PersonUser=sn.GuestUser=sn.BotUser=sn.User=void 0;class n{type;id;name;avatar;constructor(d,h,m,g){this.type=d,this.id=h,this.name=m,this.avatar=g}}sn.User=n;class a extends n{constructor(){super(u.BOT,null,"Chatbot","bot.svg")}}sn.BotUser=a;class i extends n{constructor(){super(u.GUEST,null,"Guest","visitor.svg")}}sn.GuestUser=i;class s extends n{constructor(d,h,m){super(u.PERSON,d,h,m)}}sn.PersonUser=s;var u;return(function(f){f.GUEST="GUEST",f.BOT="BOT",f.PERSON="PERSON"})(u||(sn.UserType=u={})),sn}var Zy;function pO(){if(Zy)return jo;Zy=1,Object.defineProperty(jo,"__esModule",{value:!0});const n=Hh(),a=Ih(),i=fn(),s=u=>{const f=new n.TextMessage(u,new a.GuestUser);return{type:i.MESSAGE_FROM_GUEST,message:f}};return jo.default=s,jo}var Ho={},Qy;function gO(){if(Qy)return Ho;Qy=1,Object.defineProperty(Ho,"__esModule",{value:!0});const n=Hh(),a=Ih(),i=fn(),s=(u,f={})=>{const d=new n.TextMessage(u,new a.GuestUser);return{type:i.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:d,payload:f}};return Ho.default=s,Ho}var Io={},Ky;function yO(){if(Ky)return Io;Ky=1,Object.defineProperty(Io,"__esModule",{value:!0});const n=fn(),a=i=>({type:n.NLU_REQUEST_EVENT,event:i});return Io.default=a,Io}var zo={},$y;function bO(){if($y)return zo;$y=1,Object.defineProperty(zo,"__esModule",{value:!0});const n=fn(),a=()=>({type:n.RESTART_CHAT_REQUEST});return zo.default=a,zo}var Go={},Wy;function vO(){if(Wy)return Go;Wy=1,Object.defineProperty(Go,"__esModule",{value:!0});const n=fn(),a=i=>({type:n.MESSAGE_TO_GUEST,message:i});return Go.default=a,Go}var ko={},Jy;function _O(){if(Jy)return ko;Jy=1,Object.defineProperty(ko,"__esModule",{value:!0});const n=fn(),a=(i,s,u=null,f=null)=>({type:n.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:i,reaction:s,category:u,comment:f}});return ko.default=a,ko}var eb;function EO(){if(eb)return Fe;eb=1;var n=Fe&&Fe.__importDefault||function(U){return U&&U.__esModule?U:{default:U}};Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.transcriptItemGuestReaction=Fe.sendMessageToGuest=Fe.restartChatRequest=Fe.requestNLUEvent=Fe.receiveTextMessageWithoutAnalysisFromGuest=Fe.receiveTextMessageFromGuest=Fe.openDrawer=Fe.guestLocaleChanged=Fe.guestDisconnected=Fe.guestConnected=Fe.feedbackFromGuestResponse=Fe.closeDrawer=void 0;const a=n(uO());Fe.closeDrawer=a.default;const i=n(cO());Fe.feedbackFromGuestResponse=i.default;const s=n(fO());Fe.guestConnected=s.default;const u=n(dO());Fe.guestDisconnected=u.default;const f=n(hO());Fe.guestLocaleChanged=f.default;const d=n(mO());Fe.openDrawer=d.default;const h=n(pO());Fe.receiveTextMessageFromGuest=h.default;const m=n(gO());Fe.receiveTextMessageWithoutAnalysisFromGuest=m.default;const g=n(yO());Fe.requestNLUEvent=g.default;const b=n(bO());Fe.restartChatRequest=b.default;const _=n(vO());Fe.sendMessageToGuest=_.default;const A=n(_O());return Fe.transcriptItemGuestReaction=A.default,Fe}var ld={},tb;function SO(){return tb||(tb=1,Object.defineProperty(ld,"__esModule",{value:!0})),ld}var nb;function TO(){return nb||(nb=1,(function(n){var a=Un&&Un.__createBinding||(Object.create?(function(f,d,h,m){m===void 0&&(m=h);var g=Object.getOwnPropertyDescriptor(d,h);(!g||("get"in g?!d.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(f,m,g)}):(function(f,d,h,m){m===void 0&&(m=h),f[m]=d[h]})),i=Un&&Un.__setModuleDefault||(Object.create?(function(f,d){Object.defineProperty(f,"default",{enumerable:!0,value:d})}):function(f,d){f.default=d}),s=Un&&Un.__importStar||(function(){var f=function(d){return f=Object.getOwnPropertyNames||function(h){var m=[];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(m[m.length]=g);return m},f(d)};return function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var m=f(d),g=0;g<m.length;g++)m[g]!=="default"&&a(h,d,m[g]);return i(h,d),h}})(),u=Un&&Un.__exportStar||function(f,d){for(var h in f)h!=="default"&&!Object.prototype.hasOwnProperty.call(d,h)&&a(d,f,h)};Object.defineProperty(n,"__esModule",{value:!0}),n.ActionTypes=n.Actions=void 0,n.Actions=s(EO()),n.ActionTypes=s(fn()),u(SO(),n)})(Un)),Un}var on={},sd={},ab;function AO(){return ab||(ab=1,Object.defineProperty(sd,"__esModule",{value:!0})),sd}var jl={},rb;function OO(){if(rb)return jl;rb=1,Object.defineProperty(jl,"__esModule",{value:!0}),jl.NullableKnowledgeBaseAdapter=void 0;class n{async createApiKnowledgeBase(i){throw new Error("Method not implemented.")}async updateApiKnowledgeBase(i,s){throw new Error("Method not implemented.")}async deleteApiKnowledgeBase(i){throw new Error("Method not implemented.")}async upsertApiKnowledgeBase(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseById(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findApiKnowledgeBases(){throw new Error("Method not implemented.")}async deleteApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findKnowledgeBaseEntries(i){throw new Error("Method not implemented.")}async createKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntry(i,s,u){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async upsertKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async retrieveKnowledgeBaseEntryConfig(i,s){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryByUriAlias(i,s){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntriesIndexedBeforeDate(i,s){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryAttachments(i,s){throw new Error("Method not implemented.")}async createKnowledgeBaseEntryAttachment(i,s,u){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntryAttachment(i,s,u,f){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntryAttachment(i,s,u){throw new Error("Method not implemented.")}async setIndexingStatus(i,s){throw new Error("Method not implemented.")}async subscribeToReindex(i,s){throw new Error("Method not implemented.")}isContentTypeSupported(i){throw new Error("Method not implemented.")}registerTool(i,s){throw new Error("Method not implemented.")}async getTools(i){throw new Error("Method not implemented.")}}return jl.NullableKnowledgeBaseAdapter=n,jl}var ib;function xO(){if(ib)return on;ib=1;var n=on&&on.__createBinding||(Object.create?(function(u,f,d,h){h===void 0&&(h=d);var m=Object.getOwnPropertyDescriptor(f,d);(!m||("get"in m?!f.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return f[d]}}),Object.defineProperty(u,h,m)}):(function(u,f,d,h){h===void 0&&(h=d),u[h]=f[d]})),a=on&&on.__setModuleDefault||(Object.create?(function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}):function(u,f){u.default=f}),i=on&&on.__importStar||(function(){var u=function(f){return u=Object.getOwnPropertyNames||function(d){var h=[];for(var m in d)Object.prototype.hasOwnProperty.call(d,m)&&(h[h.length]=m);return h},u(f)};return function(f){if(f&&f.__esModule)return f;var d={};if(f!=null)for(var h=u(f),m=0;m<h.length;m++)h[m]!=="default"&&n(d,f,h[m]);return a(d,f),d}})();Object.defineProperty(on,"__esModule",{value:!0}),on.NullableCmsAdapter=on.KnowledgeBase=void 0,on.KnowledgeBase=i(AO());const s=OO();return on.NullableCmsAdapter={knowledgeBase:new s.NullableKnowledgeBaseAdapter},on}var Mr={},od={},lb;function CO(){return lb||(lb=1,Object.defineProperty(od,"__esModule",{value:!0})),od}var ud={},sb;function RO(){return sb||(sb=1,Object.defineProperty(ud,"__esModule",{value:!0})),ud}var cd={},ob;function wO(){return ob||(ob=1,Object.defineProperty(cd,"__esModule",{value:!0})),cd}var fd={},ub;function NO(){return ub||(ub=1,Object.defineProperty(fd,"__esModule",{value:!0})),fd}var Hl={},cb;function MO(){if(cb)return Hl;cb=1,Object.defineProperty(Hl,"__esModule",{value:!0}),Hl.checkMiddlewareCondition=void 0;const n=async(a,i,s)=>(Array.isArray(a)?a:[a]).reduce(async(f,d)=>await f?await d(i,s):!1,Promise.resolve(!0));return Hl.checkMiddlewareCondition=n,Hl}var dd={},fb;function DO(){return fb||(fb=1,Object.defineProperty(dd,"__esModule",{value:!0})),dd}var hd={},db;function LO(){return db||(db=1,Object.defineProperty(hd,"__esModule",{value:!0})),hd}var md={},hb;function BO(){return hb||(hb=1,Object.defineProperty(md,"__esModule",{value:!0})),md}var mb;function UO(){return mb||(mb=1,(function(n){var a=Mr&&Mr.__createBinding||(Object.create?(function(s,u,f,d){d===void 0&&(d=f);var h=Object.getOwnPropertyDescriptor(u,f);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(s,d,h)}):(function(s,u,f,d){d===void 0&&(d=f),s[d]=u[f]})),i=Mr&&Mr.__exportStar||function(s,u){for(var f in s)f!=="default"&&!Object.prototype.hasOwnProperty.call(u,f)&&a(u,s,f)};Object.defineProperty(n,"__esModule",{value:!0}),i(CO(),n),i(RO(),n),i(wO(),n),i(NO(),n),i(MO(),n),i(DO(),n),i(LO(),n),i(BO(),n)})(Mr)),Mr}var Dr={},jn={},pb;function jO(){if(pb)return jn;pb=1,Object.defineProperty(jn,"__esModule",{value:!0}),jn.ButtonTypeEnum=jn.PostbackButton=jn.UrlButton=jn.Button=void 0;class n{title;type;constructor(f,d){this.title=f,this.type=d}}jn.Button=n;class a extends n{url;constructor(f,d){super(f,s.WEB_URL),this.url=d}}jn.UrlButton=a;class i extends n{payload;constructor(f,d){super(f,s.POSTBACK),this.payload=d}}jn.PostbackButton=i;var s;return(function(u){u.WEB_URL="web_url",u.POSTBACK="postback"})(s||(jn.ButtonTypeEnum=s={})),jn}var pd={},gb;function HO(){return gb||(gb=1,Object.defineProperty(pd,"__esModule",{value:!0})),pd}var Il={},yb;function IO(){if(yb)return Il;yb=1,Object.defineProperty(Il,"__esModule",{value:!0}),Il.SatisfactionEnum=void 0;var n;return(function(a){a.GOOD="GOOD",a.BAD="BAD"})(n||(Il.SatisfactionEnum=n={})),Il}var bb;function vb(){return bb||(bb=1,(function(n){var a=Dr&&Dr.__createBinding||(Object.create?(function(s,u,f,d){d===void 0&&(d=f);var h=Object.getOwnPropertyDescriptor(u,f);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(s,d,h)}):(function(s,u,f,d){d===void 0&&(d=f),s[d]=u[f]})),i=Dr&&Dr.__exportStar||function(s,u){for(var f in s)f!=="default"&&!Object.prototype.hasOwnProperty.call(u,f)&&a(u,s,f)};Object.defineProperty(n,"__esModule",{value:!0}),i(jO(),n),i(HO(),n),i(IO(),n),i(Hh(),n),i(Ih(),n)})(Dr)),Dr}var _b;function zO(){return _b||(_b=1,(function(n){var a=Bn&&Bn.__createBinding||(Object.create?(function(f,d,h,m){m===void 0&&(m=h);var g=Object.getOwnPropertyDescriptor(d,h);(!g||("get"in g?!d.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(f,m,g)}):(function(f,d,h,m){m===void 0&&(m=h),f[m]=d[h]})),i=Bn&&Bn.__setModuleDefault||(Object.create?(function(f,d){Object.defineProperty(f,"default",{enumerable:!0,value:d})}):function(f,d){f.default=d}),s=Bn&&Bn.__exportStar||function(f,d){for(var h in f)h!=="default"&&!Object.prototype.hasOwnProperty.call(d,h)&&a(d,f,h)},u=Bn&&Bn.__importStar||(function(){var f=function(d){return f=Object.getOwnPropertyNames||function(h){var m=[];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(m[m.length]=g);return m},f(d)};return function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var m=f(d),g=0;g<m.length;g++)m[g]!=="default"&&a(h,d,m[g]);return i(h,d),h}})();Object.defineProperty(n,"__esModule",{value:!0}),n.Model=n.CMS=void 0,s(TO(),n),n.CMS=u(xO()),s(UO(),n),n.Model=u(vb()),s(vb(),n)})(Bn)),Bn}var Te=zO();const w1=n=>a=>(n.payload.type!==Te.ActionTypes.MESSAGE_FROM_GUEST&&a(Te.Actions.receiveTextMessageWithoutAnalysisFromGuest(n.label,n.payload)),a(n.payload)),N1=n=>(a,i)=>{const{quickReplies:s}=i().chat,u=s.find(f=>n.toLocaleLowerCase().indexOf(f.label.toLocaleLowerCase())>-1);return a(u?w1({...u,label:n}):JSON.parse(JSON.stringify(Te.Actions.receiveTextMessageFromGuest(n))))},zh="MESSAGE_TO_PARENT_PAGE",Gh="RESTORE_PREVIOUS_CHAT_MESSAGES",kh="AUDIO_MESSAGE_FROM_USER",qh="RECEIVE_SPEECH_TRANSCRIPTION",Fh="ENABLE_CONVERSATION_RATING",M1="LOAD_SOURCE_INFOS_RESPONSE",Vh="LOAD_SOURCE_INFOS_ERROR",Yh="LOAD_SOURCE_INFOS_REQUEST",Ph="CLOSE_SOURCE_INFOS",GO="webclient.get.started",D1="webclient.window.expand",L1="webclient.window.close",B1="webclient.transcript.pdf.download",kO=[zh,Gh,kh,qh,Fh,Yh,Ph],qO=n=>({type:kh,buffer:n}),FO=n=>({type:qh,transcription:n}),VO=n=>({type:Te.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:n}}}),YO=()=>({type:B1}),PO=({rating:n})=>({type:Fh,payload:{rating:n}}),XO=(n,a)=>({type:Te.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:n,feedback:a}}),U1=n=>Te.Actions.requestNLUEvent(n),ZO=n=>({type:Gh,messages:n}),QO=n=>{switch(n.type){case Te.ButtonTypeEnum.WEB_URL:return H1(n.url);case Te.ButtonTypeEnum.POSTBACK:return n.payload;default:throw new Error(`unknown button type ${n.type}`)}},j1=n=>H1(n),H1=n=>({type:zh,message:{type:"webclient.change.url",url:n}});/*! js-cookie v3.0.5 | MIT */function qo(n){for(var a=1;a<arguments.length;a++){var i=arguments[a];for(var s in i)n[s]=i[s]}return n}var KO={read:function(n){return n[0]==='"'&&(n=n.slice(1,-1)),n.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(n){return encodeURIComponent(n).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function hh(n,a){function i(u,f,d){if(!(typeof document>"u")){d=qo({},a,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),u=encodeURIComponent(u).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var h="";for(var m in d)d[m]&&(h+="; "+m,d[m]!==!0&&(h+="="+d[m].split(";")[0]));return document.cookie=u+"="+n.write(f,u)+h}}function s(u){if(!(typeof document>"u"||arguments.length&&!u)){for(var f=document.cookie?document.cookie.split("; "):[],d={},h=0;h<f.length;h++){var m=f[h].split("="),g=m.slice(1).join("=");try{var b=decodeURIComponent(m[0]);if(d[b]=n.read(g,b),u===b)break}catch{}}return u?d[u]:d}}return Object.create({set:i,get:s,remove:function(u,f){i(u,"",qo({},f,{expires:-1}))},withAttributes:function(u){return hh(this.converter,qo({},this.attributes,u))},withConverter:function(u){return hh(qo({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(a)},converter:{value:Object.freeze(n)}})}var Fo=hh(KO,{path:"/"});const Lt=[];for(let n=0;n<256;++n)Lt.push((n+256).toString(16).slice(1));function $O(n,a=0){return(Lt[n[a+0]]+Lt[n[a+1]]+Lt[n[a+2]]+Lt[n[a+3]]+"-"+Lt[n[a+4]]+Lt[n[a+5]]+"-"+Lt[n[a+6]]+Lt[n[a+7]]+"-"+Lt[n[a+8]]+Lt[n[a+9]]+"-"+Lt[n[a+10]]+Lt[n[a+11]]+Lt[n[a+12]]+Lt[n[a+13]]+Lt[n[a+14]]+Lt[n[a+15]]).toLowerCase()}let gd;const WO=new Uint8Array(16);function JO(){if(!gd){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");gd=crypto.getRandomValues.bind(crypto)}return gd(WO)}const ex=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Eb={randomUUID:ex};function tx(n,a,i){n=n||{};const s=n.random??n.rng?.()??JO();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=s[6]&15|64,s[8]=s[8]&63|128,$O(s)}function uu(n,a,i){return Eb.randomUUID&&!n?Eb.randomUUID():tx(n)}const Xh=()=>nx(window.location.pathname),nx=n=>{const a=n.split("/"),i=n.endsWith("/");return a[a.length-(i?2:1)]};function Bt(n){return`Minified Redux error #${n}; visit https://redux.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}var ax=typeof Symbol=="function"&&Symbol.observable||"@@observable",Sb=ax,yd=()=>Math.random().toString(36).substring(7).split("").join("."),rx={INIT:`@@redux/INIT${yd()}`,REPLACE:`@@redux/REPLACE${yd()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${yd()}`},cu=rx;function Zh(n){if(typeof n!="object"||n===null)return!1;let a=n;for(;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);return Object.getPrototypeOf(n)===a||Object.getPrototypeOf(n)===null}function I1(n,a,i){if(typeof n!="function")throw new Error(Bt(2));if(typeof a=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(Bt(0));if(typeof a=="function"&&typeof i>"u"&&(i=a,a=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(Bt(1));return i(I1)(n,a)}let s=n,u=a,f=new Map,d=f,h=0,m=!1;function g(){d===f&&(d=new Map,f.forEach((I,E)=>{d.set(E,I)}))}function b(){if(m)throw new Error(Bt(3));return u}function _(I){if(typeof I!="function")throw new Error(Bt(4));if(m)throw new Error(Bt(5));let E=!0;g();const C=h++;return d.set(C,I),function(){if(E){if(m)throw new Error(Bt(6));E=!1,g(),d.delete(C),f=null}}}function A(I){if(!Zh(I))throw new Error(Bt(7));if(typeof I.type>"u")throw new Error(Bt(8));if(typeof I.type!="string")throw new Error(Bt(17));if(m)throw new Error(Bt(9));try{m=!0,u=s(u,I)}finally{m=!1}return(f=d).forEach(C=>{C()}),I}function U(I){if(typeof I!="function")throw new Error(Bt(10));s=I,A({type:cu.REPLACE})}function x(){const I=_;return{subscribe(E){if(typeof E!="object"||E===null)throw new Error(Bt(11));function C(){const H=E;H.next&&H.next(b())}return C(),{unsubscribe:I(C)}},[Sb](){return this}}}return A({type:cu.INIT}),{dispatch:A,subscribe:_,getState:b,replaceReducer:U,[Sb]:x}}function ix(n){Object.keys(n).forEach(a=>{const i=n[a];if(typeof i(void 0,{type:cu.INIT})>"u")throw new Error(Bt(12));if(typeof i(void 0,{type:cu.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Bt(13))})}function z1(n){const a=Object.keys(n),i={};for(let f=0;f<a.length;f++){const d=a[f];typeof n[d]=="function"&&(i[d]=n[d])}const s=Object.keys(i);let u;try{ix(i)}catch(f){u=f}return function(d={},h){if(u)throw u;let m=!1;const g={};for(let b=0;b<s.length;b++){const _=s[b],A=i[_],U=d[_],x=A(U,h);if(typeof x>"u")throw h&&h.type,new Error(Bt(14));g[_]=x,m=m||x!==U}return m=m||s.length!==Object.keys(d).length,m?g:d}}function fu(...n){return n.length===0?a=>a:n.length===1?n[0]:n.reduce((a,i)=>(...s)=>a(i(...s)))}function lx(...n){return a=>(i,s)=>{const u=a(i,s);let f=()=>{throw new Error(Bt(15))};const d={getState:u.getState,dispatch:(m,...g)=>f(m,...g)},h=n.map(m=>m(d));return f=fu(...h)(u.dispatch),{...u,dispatch:f}}}function sx(n){return Zh(n)&&"type"in n&&typeof n.type=="string"}var G1=Symbol.for("immer-nothing"),Tb=Symbol.for("immer-draftable"),cn=Symbol.for("immer-state");function Gn(n,...a){throw new Error(`[Immer] minified error nr: ${n}. Full error at: https://bit.ly/3cXEKWf`)}var Ni=Object.getPrototypeOf;function qr(n){return!!n&&!!n[cn]}function Ma(n){return n?k1(n)||Array.isArray(n)||!!n[Tb]||!!n.constructor?.[Tb]||is(n)||Ou(n):!1}var ox=Object.prototype.constructor.toString();function k1(n){if(!n||typeof n!="object")return!1;const a=Ni(n);if(a===null)return!0;const i=Object.hasOwnProperty.call(a,"constructor")&&a.constructor;return i===Object?!0:typeof i=="function"&&Function.toString.call(i)===ox}function du(n,a){Au(n)===0?Reflect.ownKeys(n).forEach(i=>{a(i,n[i],n)}):n.forEach((i,s)=>a(s,i,n))}function Au(n){const a=n[cn];return a?a.type_:Array.isArray(n)?1:is(n)?2:Ou(n)?3:0}function mh(n,a){return Au(n)===2?n.has(a):Object.prototype.hasOwnProperty.call(n,a)}function q1(n,a,i){const s=Au(n);s===2?n.set(a,i):s===3?n.add(i):n[a]=i}function ux(n,a){return n===a?n!==0||1/n===1/a:n!==n&&a!==a}function is(n){return n instanceof Map}function Ou(n){return n instanceof Set}function Hr(n){return n.copy_||n.base_}function ph(n,a){if(is(n))return new Map(n);if(Ou(n))return new Set(n);if(Array.isArray(n))return Array.prototype.slice.call(n);const i=k1(n);if(a===!0||a==="class_only"&&!i){const s=Object.getOwnPropertyDescriptors(n);delete s[cn];let u=Reflect.ownKeys(s);for(let f=0;f<u.length;f++){const d=u[f],h=s[d];h.writable===!1&&(h.writable=!0,h.configurable=!0),(h.get||h.set)&&(s[d]={configurable:!0,writable:!0,enumerable:h.enumerable,value:n[d]})}return Object.create(Ni(n),s)}else{const s=Ni(n);if(s!==null&&i)return{...n};const u=Object.create(s);return Object.assign(u,n)}}function Qh(n,a=!1){return xu(n)||qr(n)||!Ma(n)||(Au(n)>1&&Object.defineProperties(n,{set:{value:Vo},add:{value:Vo},clear:{value:Vo},delete:{value:Vo}}),Object.freeze(n),a&&Object.values(n).forEach(i=>Qh(i,!0))),n}function Vo(){Gn(2)}function xu(n){return Object.isFrozen(n)}var cx={};function Fr(n){const a=cx[n];return a||Gn(0,n),a}var Jl;function F1(){return Jl}function fx(n,a){return{drafts_:[],parent_:n,immer_:a,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Ab(n,a){a&&(Fr("Patches"),n.patches_=[],n.inversePatches_=[],n.patchListener_=a)}function gh(n){yh(n),n.drafts_.forEach(dx),n.drafts_=null}function yh(n){n===Jl&&(Jl=n.parent_)}function Ob(n){return Jl=fx(Jl,n)}function dx(n){const a=n[cn];a.type_===0||a.type_===1?a.revoke_():a.revoked_=!0}function xb(n,a){a.unfinalizedDrafts_=a.drafts_.length;const i=a.drafts_[0];return n!==void 0&&n!==i?(i[cn].modified_&&(gh(a),Gn(4)),Ma(n)&&(n=hu(a,n),a.parent_||mu(a,n)),a.patches_&&Fr("Patches").generateReplacementPatches_(i[cn].base_,n,a.patches_,a.inversePatches_)):n=hu(a,i,[]),gh(a),a.patches_&&a.patchListener_(a.patches_,a.inversePatches_),n!==G1?n:void 0}function hu(n,a,i){if(xu(a))return a;const s=a[cn];if(!s)return du(a,(u,f)=>Cb(n,s,a,u,f,i)),a;if(s.scope_!==n)return a;if(!s.modified_)return mu(n,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const u=s.copy_;let f=u,d=!1;s.type_===3&&(f=new Set(u),u.clear(),d=!0),du(f,(h,m)=>Cb(n,s,u,h,m,i,d)),mu(n,u,!1),i&&n.patches_&&Fr("Patches").generatePatches_(s,i,n.patches_,n.inversePatches_)}return s.copy_}function Cb(n,a,i,s,u,f,d){if(qr(u)){const h=f&&a&&a.type_!==3&&!mh(a.assigned_,s)?f.concat(s):void 0,m=hu(n,u,h);if(q1(i,s,m),qr(m))n.canAutoFreeze_=!1;else return}else d&&i.add(u);if(Ma(u)&&!xu(u)){if(!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1)return;hu(n,u),(!a||!a.scope_.parent_)&&typeof s!="symbol"&&(is(i)?i.has(s):Object.prototype.propertyIsEnumerable.call(i,s))&&mu(n,u)}}function mu(n,a,i=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&Qh(a,i)}function hx(n,a){const i=Array.isArray(n),s={type_:i?1:0,scope_:a?a.scope_:F1(),modified_:!1,finalized_:!1,assigned_:{},parent_:a,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1};let u=s,f=Kh;i&&(u=[s],f=es);const{revoke:d,proxy:h}=Proxy.revocable(u,f);return s.draft_=h,s.revoke_=d,h}var Kh={get(n,a){if(a===cn)return n;const i=Hr(n);if(!mh(i,a))return mx(n,i,a);const s=i[a];return n.finalized_||!Ma(s)?s:s===bd(n.base_,a)?(vd(n),n.copy_[a]=vh(s,n)):s},has(n,a){return a in Hr(n)},ownKeys(n){return Reflect.ownKeys(Hr(n))},set(n,a,i){const s=V1(Hr(n),a);if(s?.set)return s.set.call(n.draft_,i),!0;if(!n.modified_){const u=bd(Hr(n),a),f=u?.[cn];if(f&&f.base_===i)return n.copy_[a]=i,n.assigned_[a]=!1,!0;if(ux(i,u)&&(i!==void 0||mh(n.base_,a)))return!0;vd(n),bh(n)}return n.copy_[a]===i&&(i!==void 0||a in n.copy_)||Number.isNaN(i)&&Number.isNaN(n.copy_[a])||(n.copy_[a]=i,n.assigned_[a]=!0),!0},deleteProperty(n,a){return bd(n.base_,a)!==void 0||a in n.base_?(n.assigned_[a]=!1,vd(n),bh(n)):delete n.assigned_[a],n.copy_&&delete n.copy_[a],!0},getOwnPropertyDescriptor(n,a){const i=Hr(n),s=Reflect.getOwnPropertyDescriptor(i,a);return s&&{writable:!0,configurable:n.type_!==1||a!=="length",enumerable:s.enumerable,value:i[a]}},defineProperty(){Gn(11)},getPrototypeOf(n){return Ni(n.base_)},setPrototypeOf(){Gn(12)}},es={};du(Kh,(n,a)=>{es[n]=function(){return arguments[0]=arguments[0][0],a.apply(this,arguments)}});es.deleteProperty=function(n,a){return es.set.call(this,n,a,void 0)};es.set=function(n,a,i){return Kh.set.call(this,n[0],a,i,n[0])};function bd(n,a){const i=n[cn];return(i?Hr(i):n)[a]}function mx(n,a,i){const s=V1(a,i);return s?"value"in s?s.value:s.get?.call(n.draft_):void 0}function V1(n,a){if(!(a in n))return;let i=Ni(n);for(;i;){const s=Object.getOwnPropertyDescriptor(i,a);if(s)return s;i=Ni(i)}}function bh(n){n.modified_||(n.modified_=!0,n.parent_&&bh(n.parent_))}function vd(n){n.copy_||(n.copy_=ph(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var px=class{constructor(n){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(a,i,s)=>{if(typeof a=="function"&&typeof i!="function"){const f=i;i=a;const d=this;return function(m=f,...g){return d.produce(m,b=>i.call(this,b,...g))}}typeof i!="function"&&Gn(6),s!==void 0&&typeof s!="function"&&Gn(7);let u;if(Ma(a)){const f=Ob(this),d=vh(a,void 0);let h=!0;try{u=i(d),h=!1}finally{h?gh(f):yh(f)}return Ab(f,s),xb(u,f)}else if(!a||typeof a!="object"){if(u=i(a),u===void 0&&(u=a),u===G1&&(u=void 0),this.autoFreeze_&&Qh(u,!0),s){const f=[],d=[];Fr("Patches").generateReplacementPatches_(a,u,f,d),s(f,d)}return u}else Gn(1,a)},this.produceWithPatches=(a,i)=>{if(typeof a=="function")return(d,...h)=>this.produceWithPatches(d,m=>a(m,...h));let s,u;return[this.produce(a,i,(d,h)=>{s=d,u=h}),s,u]},typeof n?.autoFreeze=="boolean"&&this.setAutoFreeze(n.autoFreeze),typeof n?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(n.useStrictShallowCopy)}createDraft(n){Ma(n)||Gn(8),qr(n)&&(n=gx(n));const a=Ob(this),i=vh(n,void 0);return i[cn].isManual_=!0,yh(a),i}finishDraft(n,a){const i=n&&n[cn];(!i||!i.isManual_)&&Gn(9);const{scope_:s}=i;return Ab(s,a),xb(void 0,s)}setAutoFreeze(n){this.autoFreeze_=n}setUseStrictShallowCopy(n){this.useStrictShallowCopy_=n}applyPatches(n,a){let i;for(i=a.length-1;i>=0;i--){const u=a[i];if(u.path.length===0&&u.op==="replace"){n=u.value;break}}i>-1&&(a=a.slice(i+1));const s=Fr("Patches").applyPatches_;return qr(n)?s(n,a):this.produce(n,u=>s(u,a))}};function vh(n,a){const i=is(n)?Fr("MapSet").proxyMap_(n,a):Ou(n)?Fr("MapSet").proxySet_(n,a):hx(n,a);return(a?a.scope_:F1()).drafts_.push(i),i}function gx(n){return qr(n)||Gn(10,n),Y1(n)}function Y1(n){if(!Ma(n)||xu(n))return n;const a=n[cn];let i;if(a){if(!a.modified_)return a.base_;a.finalized_=!0,i=ph(n,a.scope_.immer_.useStrictShallowCopy_)}else i=ph(n,!0);return du(i,(s,u)=>{q1(i,s,Y1(u))}),a&&(a.finalized_=!1),i}var yx=new px,P1=yx.produce;function X1(n){return({dispatch:i,getState:s})=>u=>f=>typeof f=="function"?f(i,s,n):u(f)}var bx=X1(),vx=X1,_x=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?fu:fu.apply(null,arguments)};function Rb(n,a){function i(...s){if(a){let u=a(...s);if(!u)throw new Error(Ca(0));return{type:n,payload:u.payload,..."meta"in u&&{meta:u.meta},..."error"in u&&{error:u.error}}}return{type:n,payload:s[0]}}return i.toString=()=>`${n}`,i.type=n,i.match=s=>sx(s)&&s.type===n,i}var Z1=class Ql extends Array{constructor(...a){super(...a),Object.setPrototypeOf(this,Ql.prototype)}static get[Symbol.species](){return Ql}concat(...a){return super.concat.apply(this,a)}prepend(...a){return a.length===1&&Array.isArray(a[0])?new Ql(...a[0].concat(this)):new Ql(...a.concat(this))}};function wb(n){return Ma(n)?P1(n,()=>{}):n}function Yo(n,a,i){return n.has(a)?n.get(a):n.set(a,i(a)).get(a)}function Ex(n){return typeof n=="boolean"}var Sx=()=>function(a){const{thunk:i=!0,immutableCheck:s=!0,serializableCheck:u=!0,actionCreatorCheck:f=!0}=a??{};let d=new Z1;return i&&(Ex(i)?d.push(bx):d.push(vx(i.extraArgument))),d},Tx="RTK_autoBatch",Nb=n=>a=>{setTimeout(a,n)},Ax=(n={type:"raf"})=>a=>(...i)=>{const s=a(...i);let u=!0,f=!1,d=!1;const h=new Set,m=n.type==="tick"?queueMicrotask:n.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Nb(10):n.type==="callback"?n.queueNotification:Nb(n.timeout),g=()=>{d=!1,f&&(f=!1,h.forEach(b=>b()))};return Object.assign({},s,{subscribe(b){const _=()=>u&&b(),A=s.subscribe(_);return h.add(b),()=>{A(),h.delete(b)}},dispatch(b){try{return u=!b?.meta?.[Tx],f=!u,f&&(d||(d=!0,m(g))),s.dispatch(b)}finally{u=!0}}})},Ox=n=>function(i){const{autoBatch:s=!0}=i??{};let u=new Z1(n);return s&&u.push(Ax(typeof s=="object"?s:void 0)),u};function xx(n){const a=Sx(),{reducer:i=void 0,middleware:s,devTools:u=!0,preloadedState:f=void 0,enhancers:d=void 0}=n||{};let h;if(typeof i=="function")h=i;else if(Zh(i))h=z1(i);else throw new Error(Ca(1));let m;typeof s=="function"?m=s(a):m=a();let g=fu;u&&(g=_x({trace:!1,...typeof u=="object"&&u}));const b=lx(...m),_=Ox(b);let A=typeof d=="function"?d(_):_();const U=g(...A);return I1(h,f,U)}function Q1(n){const a={},i=[];let s;const u={addCase(f,d){const h=typeof f=="string"?f:f.type;if(!h)throw new Error(Ca(28));if(h in a)throw new Error(Ca(29));return a[h]=d,u},addAsyncThunk(f,d){return d.pending&&(a[f.pending.type]=d.pending),d.rejected&&(a[f.rejected.type]=d.rejected),d.fulfilled&&(a[f.fulfilled.type]=d.fulfilled),d.settled&&i.push({matcher:f.settled,reducer:d.settled}),u},addMatcher(f,d){return i.push({matcher:f,reducer:d}),u},addDefaultCase(f){return s=f,u}};return n(u),[a,i,s]}function Cx(n){return typeof n=="function"}function Rx(n,a){let[i,s,u]=Q1(a),f;if(Cx(n))f=()=>wb(n());else{const h=wb(n);f=()=>h}function d(h=f(),m){let g=[i[m.type],...s.filter(({matcher:b})=>b(m)).map(({reducer:b})=>b)];return g.filter(b=>!!b).length===0&&(g=[u]),g.reduce((b,_)=>{if(_)if(qr(b)){const U=_(b,m);return U===void 0?b:U}else{if(Ma(b))return P1(b,A=>_(A,m));{const A=_(b,m);if(A===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}}return b},h)}return d.getInitialState=f,d}var wx=Symbol.for("rtk-slice-createasyncthunk");function Nx(n,a){return`${n}/${a}`}function Mx({creators:n}={}){const a=n?.asyncThunk?.[wx];return function(s){const{name:u,reducerPath:f=u}=s;if(!u)throw new Error(Ca(11));const d=(typeof s.reducers=="function"?s.reducers(Lx()):s.reducers)||{},h=Object.keys(d),m={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},g={addCase(S,H){const N=typeof S=="string"?S:S.type;if(!N)throw new Error(Ca(12));if(N in m.sliceCaseReducersByType)throw new Error(Ca(13));return m.sliceCaseReducersByType[N]=H,g},addMatcher(S,H){return m.sliceMatchers.push({matcher:S,reducer:H}),g},exposeAction(S,H){return m.actionCreators[S]=H,g},exposeCaseReducer(S,H){return m.sliceCaseReducersByName[S]=H,g}};h.forEach(S=>{const H=d[S],N={reducerName:S,type:Nx(u,S),createNotation:typeof s.reducers=="function"};Ux(H)?Hx(N,H,g,a):Bx(N,H,g)});function b(){const[S={},H=[],N=void 0]=typeof s.extraReducers=="function"?Q1(s.extraReducers):[s.extraReducers],Z={...S,...m.sliceCaseReducersByType};return Rx(s.initialState,X=>{for(let te in Z)X.addCase(te,Z[te]);for(let te of m.sliceMatchers)X.addMatcher(te.matcher,te.reducer);for(let te of H)X.addMatcher(te.matcher,te.reducer);N&&X.addDefaultCase(N)})}const _=S=>S,A=new Map,U=new WeakMap;let x;function k(S,H){return x||(x=b()),x(S,H)}function I(){return x||(x=b()),x.getInitialState()}function E(S,H=!1){function N(X){let te=X[S];return typeof te>"u"&&H&&(te=Yo(U,N,I)),te}function Z(X=_){const te=Yo(A,H,()=>new WeakMap);return Yo(te,X,()=>{const de={};for(const[ye,re]of Object.entries(s.selectors??{}))de[ye]=Dx(re,X,()=>Yo(U,X,I),H);return de})}return{reducerPath:S,getSelectors:Z,get selectors(){return Z(N)},selectSlice:N}}const C={name:u,reducer:k,actions:m.actionCreators,caseReducers:m.sliceCaseReducersByName,getInitialState:I,...E(f),injectInto(S,{reducerPath:H,...N}={}){const Z=H??f;return S.inject({reducerPath:Z,reducer:k},N),{...C,...E(Z,!0)}}};return C}}function Dx(n,a,i,s){function u(f,...d){let h=a(f);return typeof h>"u"&&s&&(h=i()),n(h,...d)}return u.unwrapped=n,u}var $h=Mx();function Lx(){function n(a,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:a,...i}}return n.withTypes=()=>n,{reducer(a){return Object.assign({[a.name](...i){return a(...i)}}[a.name],{_reducerDefinitionType:"reducer"})},preparedReducer(a,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:a,reducer:i}},asyncThunk:n}}function Bx({type:n,reducerName:a,createNotation:i},s,u){let f,d;if("reducer"in s){if(i&&!jx(s))throw new Error(Ca(17));f=s.reducer,d=s.prepare}else f=s;u.addCase(n,f).exposeCaseReducer(a,f).exposeAction(a,d?Rb(n,d):Rb(n))}function Ux(n){return n._reducerDefinitionType==="asyncThunk"}function jx(n){return n._reducerDefinitionType==="reducerWithPrepare"}function Hx({type:n,reducerName:a},i,s,u){if(!u)throw new Error(Ca(18));const{payloadCreator:f,fulfilled:d,pending:h,rejected:m,settled:g,options:b}=i,_=u(n,f,b);s.exposeAction(a,_),d&&s.addCase(_.fulfilled,d),h&&s.addCase(_.pending,h),m&&s.addCase(_.rejected,m),g&&s.addMatcher(_.settled,g),s.exposeCaseReducer(a,{fulfilled:d||Po,pending:h||Po,rejected:m||Po,settled:g||Po})}function Po(){}function Ca(n){return`Minified Redux Toolkit error #${n}; visit https://redux-toolkit.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}const Ix={formValues:{}},K1=$h({name:"start-screen",initialState:Ix,reducers:{showStartScreen(n){n.startScreenStatus="VISIBLE",n.formValues={}},startChat(n,a){n.startScreenStatus="HIDDEN",n.formValues=a.payload.formValues},startAuthenticatedChat(n,a){n.startScreenStatus="HIDDEN",n.loginToken=a.payload.loginToken,n.loginRequestToken=void 0},requestLogin(n,a){n.loginRequestToken=a.payload.loginRequestToken,n.formValues=a.payload.formValues},loginWindowClosed(n){n.loginRequestToken=void 0}}}),{startChat:zx,startAuthenticatedChat:Gx,showStartScreen:kx,requestLogin:qx,loginWindowClosed:Fx}=K1.actions,Vx=K1.reducer,$1="RESET_CHAT_STATE",W1="TOGGLE_TRANSCRIPT_MAIL_OVERLAY",J1="SHOW_CONVERSATION_RATING_OVERLAY",e_="HIDE_CONVERSATION_RATING_OVERLAY",t_=()=>({type:L1}),Yx=()=>({type:$1}),n_=()=>({type:W1}),pu=(n,a=void 0)=>({type:J1,payload:{opener:n,defaultRating:a}}),Px=()=>({type:e_}),Mb=(n,a,i)=>(s,u)=>{try{const f=u().connection.sessionId;if(!f)throw new Error("Session ID is not available");s({type:Yh,payload:{chunkId:i}}),Db(n,f,a,i,!1,s),Db(n,f,a,i,!0,s)}catch(f){console.error("Error loading source infos:",f),s({type:Vh})}},Db=(n,a,i,s,u,f)=>{const d=`/${n}/me/chat-widget/transcript/${i}/chunks/${s}?highlight=${u}`;fetch(d,{headers:{"x-bubble-chat-session-id":a}}).then(h=>{if(!h.ok)throw new Error(`HTTP error! Status: ${h.status}`);return h.json()}).then(h=>{const m={...h,chunkId:s,highlighted:u};f({type:M1,payload:m})}).catch(h=>{console.error("Error fetching source infos:",h),f({type:Vh,payload:{highlighted:u}})})},Xx=()=>({type:Ph}),Wh="CONNECT",Jh="CONNECTING",em="CONNECTED",tm="DISCONNECTED",nm="RECONNECTED",am="RESTORE_SESSION_ID",Cu="START",Ru="CLEAR_SESSION_ID",Zx=[Wh,Jh,em,tm,nm,am],Qx=(n,a)=>({type:Wh,clientName:n,querystrings:a}),Kx=n=>({type:am,sessionId:n}),$x=()=>({type:Jh}),Wx=()=>({type:em}),Jx=()=>({type:tm}),eC=()=>({type:nm}),a_=(n,a)=>(i,s)=>{const u=s().connection,{formValues:f,loginToken:d}=s().startScreen;let h=u.sessionId;h===void 0&&(h=uu());let m=u.userId;if(m===void 0){const g=Fo.get("bubble-chat-user-id")||Fo.get("bubble-chat-userId")||Fo.get("bf-webclient-userId");m=g||uu(),Fo.set("bubble-chat-user-id",m)}i({type:Cu,payload:{sessionId:h,userId:m,clientName:n,loginToken:d,querystrings:{...a,...f}}})},ls=()=>(n,a)=>{const i=a().connection.sessionId||"";if(n(tC(i)),n(Yx()),a().settings.enableStartScreen)n(kx());else{const s=Xh(),u=Tu.parse(window.location.search);return n(a_(s,u))}},tC=n=>({type:Ru,payload:{sessionId:n}}),tt=()=>{const n=Su();return i=>{const s=n.formatMessage({id:i});return s===i?void 0:s}};var Gr=(n=>(n[n.CONNECTING=0]="CONNECTING",n[n.CONNECTED=1]="CONNECTED",n[n.RECONNECTED=2]="RECONNECTED",n[n.DISCONNECTED=3]="DISCONNECTED",n))(Gr||{}),gu=(n=>(n.GUEST="GUEST",n.BOT="BOT",n.PERSON="PERSON",n))(gu||{});const nC="_container_q2uun_1",aC="_chatcontent_q2uun_6",rC="_accessabilityHidden_q2uun_12",_d={container:nC,chatcontent:aC,accessabilityHidden:rC},iC="_messageContainer_ofi0g_1",lC="_messages_ofi0g_12",Lb={messageContainer:iC,messages:lC};function Ir(){return Ir=Object.assign?Object.assign.bind():function(n){for(var a=1;a<arguments.length;a++){var i=arguments[a];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])}return n},Ir.apply(this,arguments)}const sC=["children","options"],oC={footnoteReference:"7"},Bb=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((n,a)=>(n[a.toLowerCase()]=a,n),{class:"className",for:"htmlFor"}),Ub={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},uC=["style","script","pre"],cC=["src","href","data","formAction","srcDoc","action"],fC=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,dC=/\n{2,}$/,jb=/^(\s*>[\s\S]*?)(?=\n\n|$)/,hC=/^ *> ?/gm,mC=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,pC=/^ {2,}\n/,gC=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,Hb=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Ib=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,yC=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,bC=/^(?:\n *)*\n/,vC=/\r\n?/g,_C=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,EC=/^\[\^([^\]]+)]/,SC=/\f/g,TC=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,AC=/^\s*?\[(x|\s)\]/,zb=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Gb=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,kb=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Ed=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,OC=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,qb=/^<!--[\s\S]*?(?:-->)/,xC=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Sd=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,CC=/^\{.*\}$/,RC=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,wC=/^<([^ >]+[:@\/][^ >]+)>/,NC=/-([a-z])?/gi,Fb=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,MC=/^[^\n]+(?: \n|\n{2,})/,DC=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,LC=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,BC=/^\[([^\]]*)\] ?\[([^\]]*)\]/,UC=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,jC=/\t/g,HC=/(^ *\||\| *$)/g,IC=/^ *:-+: *$/,zC=/^ *:-+ *$/,GC=/^ *-+: *$/,wu=n=>`(?=[\\s\\S]+?\\1${n?"\\1":""})`,Nu="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",kC=RegExp(`^([*_])\\1${wu(1)}${Nu}\\1\\1(?!\\1)`),qC=RegExp(`^([*_])${wu(0)}${Nu}\\1(?!\\1)`),FC=RegExp(`^(==)${wu(0)}${Nu}\\1`),VC=RegExp(`^(~~)${wu(0)}${Nu}\\1`),YC=/^(:[a-zA-Z0-9-_]+:)/,PC=/^\\([^0-9A-Za-z\s])/,XC=/\\([^0-9A-Za-z\s])/g,ZC=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,QC=/^\n+/,KC=/^([ \t]*)/,$C=/(?:^|\n)( *)$/,rm="(?:\\d+\\.)",im="(?:[*+-])";function r_(n){return"( *)("+(n===1?rm:im)+") +"}const i_=r_(1),l_=r_(2);function s_(n){return RegExp("^"+(n===1?i_:l_))}const WC=s_(1),JC=s_(2);function o_(n){return RegExp("^"+(n===1?i_:l_)+"[^\\n]*(?:\\n(?!\\1"+(n===1?rm:im)+" )[^\\n]*)*(\\n|$)","gm")}const eR=o_(1),tR=o_(2);function u_(n){const a=n===1?rm:im;return RegExp("^( *)("+a+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+a+" (?!"+a+" ))\\n*|\\s*\\n*$)")}const c_=u_(1),f_=u_(2);function Vb(n,a){const i=a===1,s=i?c_:f_,u=i?eR:tR,f=i?WC:JC;return{t:d=>f.test(d),o:Mi(function(d,h){const m=$C.exec(h.prevCapture);return m&&(h.list||!h.inline&&!h.simple)?s.exec(d=m[1]+d):null}),i:1,u(d,h,m){const g=i?+d[2]:void 0,b=d[0].replace(dC,`
94
94
  `).match(u);let _=!1;return{items:b.map(function(A,U){const x=f.exec(A)[0].length,k=RegExp("^ {1,"+x+"}","gm"),I=A.replace(k,"").replace(f,""),E=U===b.length-1,C=I.indexOf(`
95
95
 
96
- `)!==-1||E&&_;_=C;const S=m.inline,H=m.list;let N;m.list=!0,C?(m.inline=!1,N=Jl(I)+`
96
+ `)!==-1||E&&_;_=C;const S=m.inline,H=m.list;let N;m.list=!0,C?(m.inline=!1,N=Wl(I)+`
97
97
 
98
- `):(m.inline=!0,N=Jl(I));const Z=h(N,m);return m.inline=S,m.list=H,Z}),ordered:i,start:g}},l:(d,h,m)=>n(d.ordered?"ol":"ul",{key:m.key,start:d.type==="20"?d.start:void 0},d.items.map(function(g,b){return n("li",{key:b},h(g,m))}))}}const nR=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),aR=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Yb(n){return typeof n=="string"}function Jl(n){let a=n.length;for(;a>0&&n[a-1]<=" ";)a--;return n.slice(0,a)}function eu(n,a){return n.startsWith(a)}function rR(n,a,i){if(Array.isArray(i)){for(let s=0;s<i.length;s++)if(eu(n,i[s]))return!0;return!1}return i(n,a)}function Gl(n){return n.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function iR(n){return GC.test(n)?"right":IC.test(n)?"center":zC.test(n)?"left":null}function Pb(n,a,i,s){const u=i.inTable;i.inTable=!0;let f=[[]],d="";function h(){if(!d)return;const m=f[f.length-1];m.push.apply(m,a(d,i)),d=""}return n.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((m,g,b)=>{m.trim()==="|"&&(h(),s)?g!==0&&g!==b.length-1&&f.push([]):d+=m}),h(),i.inTable=u,f}function lR(n,a,i){i.inline=!0;const s=n[2]?n[2].replace(HC,"").split("|").map(iR):[],u=n[3]?(function(d,h,m){return d.trim().split(`
99
- `).map(function(g){return Pb(g,h,m,!0)})})(n[3],a,i):[],f=Pb(n[1],a,i,!!u.length);return i.inline=!1,u.length?{align:s,cells:u,header:f,type:"25"}:{children:f,type:"21"}}function Xb(n,a){return n.align[a]==null?{}:{textAlign:n.align[a]}}function Di(n){return n.inline=1,n}function Br(n){return Di(function(a,i){return i.inline?n.exec(a):null})}function sr(n){return Di(function(a,i){return i.inline||i.simple?n.exec(a):null})}function xa(n){return function(a,i){return i.inline||i.simple?null:n.exec(a)}}function Po(n){return Di(function(a){return n.exec(a)})}const sR=/(javascript|vbscript|data(?!:image)):/i;function oR(n){try{const a=decodeURIComponent(n).replace(/[^A-Za-z0-9/:]/g,"");if(sR.test(a))return null}catch{return null}return n}function Zn(n){return n&&n.replace(XC,"$1")}function tu(n,a,i){const s=i.inline||!1,u=i.simple||!1;i.inline=!0,i.simple=!0;const f=n(a,i);return i.inline=s,i.simple=u,f}function uR(n,a,i){const s=i.inline||!1,u=i.simple||!1;i.inline=!1,i.simple=!0;const f=n(a,i);return i.inline=s,i.simple=u,f}function cR(n,a,i){const s=i.inline||!1;i.inline=!1;const u=n(a,i);return i.inline=s,u}const Td=(n,a,i)=>({children:tu(a,n[2],i)});function Ad(){return{}}function Od(){return null}function fR(...n){return n.filter(Boolean).join(" ")}function xd(n,a,i){let s=n;const u=a.split(".");for(;u.length&&(s=s[u[0]],s!==void 0);)u.shift();return s||i}function dR(n="",a={}){a.overrides=a.overrides||{},a.namedCodesToUnicode=a.namedCodesToUnicode?zr({},Ub,a.namedCodesToUnicode):Ub;const i=a.slugify||Gl,s=a.sanitizer||oR,u=a.createElement||B.createElement,f=[jb,Hb,Ib,a.enforceAtxHeadings?Gb:zb,kb,Fb,c_,f_],d=[...f,MC,Ed,qb,Sd];function h(E,C){for(let S=0;S<E.length;S++)if(E[S].test(C))return!0;return!1}function m(E,C,...S){const H=xd(a.overrides,E+".props",{});return u((function(N,Z){const X=xd(Z,N);return X?typeof X=="function"||typeof X=="object"&&"render"in X?X:xd(Z,N+".component",N):N})(E,a.overrides),zr({},C,H,{className:fR(C?.className,H.className)||void 0}),...S)}function g(E){E=E.replace(TC,"");let C=!1;a.forceInline?C=!0:a.forceBlock||(C=UC.test(E)===!1);const S=k(x(C?E:Jl(E).replace(QC,"")+`
98
+ `):(m.inline=!0,N=Wl(I));const Z=h(N,m);return m.inline=S,m.list=H,Z}),ordered:i,start:g}},l:(d,h,m)=>n(d.ordered?"ol":"ul",{key:m.key,start:d.type==="20"?d.start:void 0},d.items.map(function(g,b){return n("li",{key:b},h(g,m))}))}}const nR=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),aR=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Yb(n){return typeof n=="string"}function Wl(n){let a=n.length;for(;a>0&&n[a-1]<=" ";)a--;return n.slice(0,a)}function tu(n,a){return n.startsWith(a)}function rR(n,a,i){if(Array.isArray(i)){for(let s=0;s<i.length;s++)if(tu(n,i[s]))return!0;return!1}return i(n,a)}function zl(n){return n.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function iR(n){return GC.test(n)?"right":IC.test(n)?"center":zC.test(n)?"left":null}function Pb(n,a,i,s){const u=i.inTable;i.inTable=!0;let f=[[]],d="";function h(){if(!d)return;const m=f[f.length-1];m.push.apply(m,a(d,i)),d=""}return n.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((m,g,b)=>{m.trim()==="|"&&(h(),s)?g!==0&&g!==b.length-1&&f.push([]):d+=m}),h(),i.inTable=u,f}function lR(n,a,i){i.inline=!0;const s=n[2]?n[2].replace(HC,"").split("|").map(iR):[],u=n[3]?(function(d,h,m){return d.trim().split(`
99
+ `).map(function(g){return Pb(g,h,m,!0)})})(n[3],a,i):[],f=Pb(n[1],a,i,!!u.length);return i.inline=!1,u.length?{align:s,cells:u,header:f,type:"25"}:{children:f,type:"21"}}function Xb(n,a){return n.align[a]==null?{}:{textAlign:n.align[a]}}function Mi(n){return n.inline=1,n}function Lr(n){return Mi(function(a,i){return i.inline?n.exec(a):null})}function lr(n){return Mi(function(a,i){return i.inline||i.simple?n.exec(a):null})}function Oa(n){return function(a,i){return i.inline||i.simple?null:n.exec(a)}}function Xo(n){return Mi(function(a){return n.exec(a)})}const sR=/(javascript|vbscript|data(?!:image)):/i;function oR(n){try{const a=decodeURIComponent(n).replace(/[^A-Za-z0-9/:]/g,"");if(sR.test(a))return null}catch{return null}return n}function Xn(n){return n&&n.replace(XC,"$1")}function nu(n,a,i){const s=i.inline||!1,u=i.simple||!1;i.inline=!0,i.simple=!0;const f=n(a,i);return i.inline=s,i.simple=u,f}function uR(n,a,i){const s=i.inline||!1,u=i.simple||!1;i.inline=!1,i.simple=!0;const f=n(a,i);return i.inline=s,i.simple=u,f}function cR(n,a,i){const s=i.inline||!1;i.inline=!1;const u=n(a,i);return i.inline=s,u}const Td=(n,a,i)=>({children:nu(a,n[2],i)});function Ad(){return{}}function Od(){return null}function fR(...n){return n.filter(Boolean).join(" ")}function xd(n,a,i){let s=n;const u=a.split(".");for(;u.length&&(s=s[u[0]],s!==void 0);)u.shift();return s||i}function dR(n="",a={}){a.overrides=a.overrides||{},a.namedCodesToUnicode=a.namedCodesToUnicode?Ir({},Ub,a.namedCodesToUnicode):Ub;const i=a.slugify||zl,s=a.sanitizer||oR,u=a.createElement||B.createElement,f=[jb,Hb,Ib,a.enforceAtxHeadings?Gb:zb,kb,Fb,c_,f_],d=[...f,MC,Ed,qb,Sd];function h(E,C){for(let S=0;S<E.length;S++)if(E[S].test(C))return!0;return!1}function m(E,C,...S){const H=xd(a.overrides,E+".props",{});return u((function(N,Z){const X=xd(Z,N);return X?typeof X=="function"||typeof X=="object"&&"render"in X?X:xd(Z,N+".component",N):N})(E,a.overrides),Ir({},C,H,{className:fR(C?.className,H.className)||void 0}),...S)}function g(E){E=E.replace(TC,"");let C=!1;a.forceInline?C=!0:a.forceBlock||(C=UC.test(E)===!1);const S=k(x(C?E:Wl(E).replace(QC,"")+`
100
100
 
101
- `,{inline:C}));for(;Yb(S[S.length-1])&&!S[S.length-1].trim();)S.pop();if(a.wrapper===null)return S;const H=a.wrapper||(C?"span":"div");let N;if(S.length>1||a.forceWrapper)N=S;else{if(S.length===1)return N=S[0],typeof N=="string"?m("span",{key:"outer"},N):N;N=null}return u(H,{key:"outer"},N)}function b(E,C){if(!C||!C.trim())return null;const S=C.match(fC);return S?S.reduce(function(H,N){const Z=N.indexOf("=");if(Z!==-1){const X=(function(re){return re.indexOf("-")!==-1&&re.match(xC)===null&&(re=re.replace(NC,function(pe,ce){return ce.toUpperCase()})),re})(N.slice(0,Z)).trim(),te=(function(re){const pe=re[0];return(pe==='"'||pe==="'")&&re.length>=2&&re[re.length-1]===pe?re.slice(1,-1):re})(N.slice(Z+1).trim()),de=Bb[X]||X;if(de==="ref")return H;const ye=H[de]=(function(re,pe,ce,Xe){return pe==="style"?(function(Ne){const G=[];let $="",ne=!1,Se=!1,Ae="";if(!Ne)return G;for(let q=0;q<Ne.length;q++){const P=Ne[q];if(P!=='"'&&P!=="'"||ne||(Se?P===Ae&&(Se=!1,Ae=""):(Se=!0,Ae=P)),P==="("&&$.endsWith("url")?ne=!0:P===")"&&ne&&(ne=!1),P!==";"||Se||ne)$+=P;else{const W=$.trim();if(W){const J=W.indexOf(":");if(J>0){const fe=W.slice(0,J).trim(),_e=W.slice(J+1).trim();G.push([fe,_e])}}$=""}}const O=$.trim();if(O){const q=O.indexOf(":");if(q>0){const P=O.slice(0,q).trim(),W=O.slice(q+1).trim();G.push([P,W])}}return G})(ce).reduce(function(Ne,[G,$]){return Ne[G.replace(/(-[a-z])/g,ne=>ne[1].toUpperCase())]=Xe($,re,G),Ne},{}):cC.indexOf(pe)!==-1?Xe(Zn(ce),re,pe):(ce.match(CC)&&(ce=Zn(ce.slice(1,ce.length-1))),ce==="true"||ce!=="false"&&ce)})(E,X,te,s);typeof ye=="string"&&(Ed.test(ye)||Sd.test(ye))&&(H[de]=g(ye.trim()))}else N!=="style"&&(H[Bb[N]||N]=!0);return H},{}):null}const _=[],A={},U={0:{t:[">"],o:xa(jb),i:1,u(E,C,S){const[,H,N]=E[0].replace(hC,"").match(mC);return{alert:H,children:C(N,S)}},l(E,C,S){const H={key:S.key};return E.alert&&(H.className="markdown-alert-"+i(E.alert.toLowerCase(),Gl),E.children.unshift({attrs:{},children:[{type:"27",text:E.alert}],noInnerParse:!0,type:"11",tag:"header"})),m("blockquote",H,C(E.children,S))}},1:{t:[" "],o:Po(pC),i:1,u:Ad,l:(E,C,S)=>m("br",{key:S.key})},2:{t:["--","__","**","- ","* ","_ "],o:xa(gC),i:1,u:Ad,l:(E,C,S)=>m("hr",{key:S.key})},3:{t:[" "],o:xa(Ib),i:0,u:E=>({lang:void 0,text:Zn(Jl(E[0].replace(/^ {4}/gm,"")))}),l:(E,C,S)=>m("pre",{key:S.key},m("code",zr({},E.attrs,{className:E.lang?"lang-"+E.lang:""}),E.text))},4:{t:["```","~~~"],o:xa(Hb),i:0,u:E=>({attrs:b("code",E[3]||""),lang:E[2]||void 0,text:E[4],type:"3"})},5:{t:["`"],o:sr(yC),i:3,u:E=>({text:Zn(E[2])}),l:(E,C,S)=>m("code",{key:S.key},E.text)},6:{t:["[^"],o:xa(_C),i:0,u:E=>(_.push({footnote:E[2],identifier:E[1]}),{}),l:Od},7:{t:["[^"],o:Br(EC),i:1,u:E=>({target:"#"+i(E[1],Gl),text:E[1]}),l:(E,C,S)=>m("a",{key:S.key,href:s(E.target,"a","href")},m("sup",{key:S.key},E.text))},8:{t:["[ ]","[x]"],o:Br(AC),i:1,u:E=>({completed:E[1].toLowerCase()==="x"}),l:(E,C,S)=>m("input",{checked:E.completed,key:S.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:xa(a.enforceAtxHeadings?Gb:zb),i:1,u:(E,C,S)=>({children:tu(C,E[2],S),id:i(E[2],Gl),level:E[1].length}),l:(E,C,S)=>m("h"+E.level,{id:E.id,key:S.key},C(E.children,S))},10:{t:E=>{const C=E.indexOf(`
102
- `);return C>0&&C<E.length-1&&(E[C+1]==="="||E[C+1]==="-")},o:xa(kb),i:1,u:(E,C,S)=>({children:tu(C,E[1],S),level:E[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Po(Ed),i:1,u(E,C,S){const[,H]=E[3].match(KC),N=RegExp("^"+H,"gm"),Z=E[3].replace(N,""),X=h(d,Z)?cR:tu,te=E[1].toLowerCase(),de=uC.indexOf(te)!==-1,ye=(de?te:E[1]).trim(),re={attrs:b(ye,E[2]),noInnerParse:de,tag:ye};if(S.inAnchor=S.inAnchor||te==="a",de)re.text=E[3];else{const pe=S.inHTML;S.inHTML=!0,re.children=X(C,Z,S),S.inHTML=pe}return S.inAnchor=!1,re},l:(E,C,S)=>m(E.tag,zr({key:S.key},E.attrs),E.text||(E.children?C(E.children,S):""))},13:{t:["<"],o:Po(Sd),i:1,u(E){const C=E[1].trim();return{attrs:b(C,E[2]||""),tag:C}},l:(E,C,S)=>m(E.tag,zr({},E.attrs,{key:S.key}))},12:{t:["<!--"],o:Po(qb),i:1,u:()=>({}),l:Od},14:{t:["!["],o:sr(aR),i:1,u:E=>({alt:Zn(E[1]),target:Zn(E[2]),title:Zn(E[3])}),l:(E,C,S)=>m("img",{key:S.key,alt:E.alt||void 0,title:E.title||void 0,src:s(E.target,"img","src")})},15:{t:["["],o:Br(nR),i:3,u:(E,C,S)=>({children:uR(C,E[1],S),target:Zn(E[2]),title:Zn(E[3])}),l:(E,C,S)=>m("a",{key:S.key,href:s(E.target,"a","href"),title:E.title},C(E.children,S))},16:{t:["<"],o:Br(wC),i:0,u(E){let C=E[1],S=!1;return C.indexOf("@")!==-1&&C.indexOf("//")===-1&&(S=!0,C=C.replace("mailto:","")),{children:[{text:C,type:"27"}],target:S?"mailto:"+C:C,type:"15"}}},17:{t:(E,C)=>!C.inAnchor&&!a.disableAutoLink&&(eu(E,"http://")||eu(E,"https://")),o:Br(RC),i:0,u:E=>({children:[{text:E[1],type:"27"}],target:E[1],title:void 0,type:"15"})},20:Vb(m,1),33:Vb(m,2),19:{t:[`
103
- `],o:xa(bC),i:3,u:Ad,l:()=>`
104
- `},21:{o:Di(function(E,C){if(C.inline||C.simple||C.inHTML&&E.indexOf(`
101
+ `,{inline:C}));for(;Yb(S[S.length-1])&&!S[S.length-1].trim();)S.pop();if(a.wrapper===null)return S;const H=a.wrapper||(C?"span":"div");let N;if(S.length>1||a.forceWrapper)N=S;else{if(S.length===1)return N=S[0],typeof N=="string"?m("span",{key:"outer"},N):N;N=null}return u(H,{key:"outer"},N)}function b(E,C){if(!C||!C.trim())return null;const S=C.match(fC);return S?S.reduce(function(H,N){const Z=N.indexOf("=");if(Z!==-1){const X=(function(re){return re.indexOf("-")!==-1&&re.match(xC)===null&&(re=re.replace(NC,function(pe,ce){return ce.toUpperCase()})),re})(N.slice(0,Z)).trim(),te=(function(re){const pe=re[0];return(pe==='"'||pe==="'")&&re.length>=2&&re[re.length-1]===pe?re.slice(1,-1):re})(N.slice(Z+1).trim()),de=Bb[X]||X;if(de==="ref")return H;const ye=H[de]=(function(re,pe,ce,Xe){return pe==="style"?(function(Ne){const G=[];let $="",ne=!1,Se=!1,Ae="";if(!Ne)return G;for(let q=0;q<Ne.length;q++){const P=Ne[q];if(P!=='"'&&P!=="'"||ne||(Se?P===Ae&&(Se=!1,Ae=""):(Se=!0,Ae=P)),P==="("&&$.endsWith("url")?ne=!0:P===")"&&ne&&(ne=!1),P!==";"||Se||ne)$+=P;else{const W=$.trim();if(W){const J=W.indexOf(":");if(J>0){const fe=W.slice(0,J).trim(),_e=W.slice(J+1).trim();G.push([fe,_e])}}$=""}}const O=$.trim();if(O){const q=O.indexOf(":");if(q>0){const P=O.slice(0,q).trim(),W=O.slice(q+1).trim();G.push([P,W])}}return G})(ce).reduce(function(Ne,[G,$]){return Ne[G.replace(/(-[a-z])/g,ne=>ne[1].toUpperCase())]=Xe($,re,G),Ne},{}):cC.indexOf(pe)!==-1?Xe(Xn(ce),re,pe):(ce.match(CC)&&(ce=Xn(ce.slice(1,ce.length-1))),ce==="true"||ce!=="false"&&ce)})(E,X,te,s);typeof ye=="string"&&(Ed.test(ye)||Sd.test(ye))&&(H[de]=g(ye.trim()))}else N!=="style"&&(H[Bb[N]||N]=!0);return H},{}):null}const _=[],A={},U={0:{t:[">"],o:Oa(jb),i:1,u(E,C,S){const[,H,N]=E[0].replace(hC,"").match(mC);return{alert:H,children:C(N,S)}},l(E,C,S){const H={key:S.key};return E.alert&&(H.className="markdown-alert-"+i(E.alert.toLowerCase(),zl),E.children.unshift({attrs:{},children:[{type:"27",text:E.alert}],noInnerParse:!0,type:"11",tag:"header"})),m("blockquote",H,C(E.children,S))}},1:{t:[" "],o:Xo(pC),i:1,u:Ad,l:(E,C,S)=>m("br",{key:S.key})},2:{t:["--","__","**","- ","* ","_ "],o:Oa(gC),i:1,u:Ad,l:(E,C,S)=>m("hr",{key:S.key})},3:{t:[" "],o:Oa(Ib),i:0,u:E=>({lang:void 0,text:Xn(Wl(E[0].replace(/^ {4}/gm,"")))}),l:(E,C,S)=>m("pre",{key:S.key},m("code",Ir({},E.attrs,{className:E.lang?"lang-"+E.lang:""}),E.text))},4:{t:["```","~~~"],o:Oa(Hb),i:0,u:E=>({attrs:b("code",E[3]||""),lang:E[2]||void 0,text:E[4],type:"3"})},5:{t:["`"],o:lr(yC),i:3,u:E=>({text:Xn(E[2])}),l:(E,C,S)=>m("code",{key:S.key},E.text)},6:{t:["[^"],o:Oa(_C),i:0,u:E=>(_.push({footnote:E[2],identifier:E[1]}),{}),l:Od},7:{t:["[^"],o:Lr(EC),i:1,u:E=>({target:"#"+i(E[1],zl),text:E[1]}),l:(E,C,S)=>m("a",{key:S.key,href:s(E.target,"a","href")},m("sup",{key:S.key},E.text))},8:{t:["[ ]","[x]"],o:Lr(AC),i:1,u:E=>({completed:E[1].toLowerCase()==="x"}),l:(E,C,S)=>m("input",{checked:E.completed,key:S.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Oa(a.enforceAtxHeadings?Gb:zb),i:1,u:(E,C,S)=>({children:nu(C,E[2],S),id:i(E[2],zl),level:E[1].length}),l:(E,C,S)=>m("h"+E.level,{id:E.id,key:S.key},C(E.children,S))},10:{t:E=>{const C=E.indexOf(`
102
+ `);return C>0&&C<E.length-1&&(E[C+1]==="="||E[C+1]==="-")},o:Oa(kb),i:1,u:(E,C,S)=>({children:nu(C,E[1],S),level:E[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Xo(Ed),i:1,u(E,C,S){const[,H]=E[3].match(KC),N=RegExp("^"+H,"gm"),Z=E[3].replace(N,""),X=h(d,Z)?cR:nu,te=E[1].toLowerCase(),de=uC.indexOf(te)!==-1,ye=(de?te:E[1]).trim(),re={attrs:b(ye,E[2]),noInnerParse:de,tag:ye};if(S.inAnchor=S.inAnchor||te==="a",de)re.text=E[3];else{const pe=S.inHTML;S.inHTML=!0,re.children=X(C,Z,S),S.inHTML=pe}return S.inAnchor=!1,re},l:(E,C,S)=>m(E.tag,Ir({key:S.key},E.attrs),E.text||(E.children?C(E.children,S):""))},13:{t:["<"],o:Xo(Sd),i:1,u(E){const C=E[1].trim();return{attrs:b(C,E[2]||""),tag:C}},l:(E,C,S)=>m(E.tag,Ir({},E.attrs,{key:S.key}))},12:{t:["<!--"],o:Xo(qb),i:1,u:()=>({}),l:Od},14:{t:["!["],o:lr(aR),i:1,u:E=>({alt:Xn(E[1]),target:Xn(E[2]),title:Xn(E[3])}),l:(E,C,S)=>m("img",{key:S.key,alt:E.alt||void 0,title:E.title||void 0,src:s(E.target,"img","src")})},15:{t:["["],o:Lr(nR),i:3,u:(E,C,S)=>({children:uR(C,E[1],S),target:Xn(E[2]),title:Xn(E[3])}),l:(E,C,S)=>m("a",{key:S.key,href:s(E.target,"a","href"),title:E.title},C(E.children,S))},16:{t:["<"],o:Lr(wC),i:0,u(E){let C=E[1],S=!1;return C.indexOf("@")!==-1&&C.indexOf("//")===-1&&(S=!0,C=C.replace("mailto:","")),{children:[{text:C,type:"27"}],target:S?"mailto:"+C:C,type:"15"}}},17:{t:(E,C)=>!C.inAnchor&&!a.disableAutoLink&&(tu(E,"http://")||tu(E,"https://")),o:Lr(RC),i:0,u:E=>({children:[{text:E[1],type:"27"}],target:E[1],title:void 0,type:"15"})},20:Vb(m,1),33:Vb(m,2),19:{t:[`
103
+ `],o:Oa(bC),i:3,u:Ad,l:()=>`
104
+ `},21:{o:Mi(function(E,C){if(C.inline||C.simple||C.inHTML&&E.indexOf(`
105
105
 
106
106
  `)===-1&&C.prevCapture.indexOf(`
107
107
 
108
108
  `)===-1)return null;let S="",H=0;for(;;){const Z=E.indexOf(`
109
- `,H),X=E.slice(H,Z===-1?void 0:Z+1);if(h(f,X)||(S+=X,Z===-1||!X.trim()))break;H=Z+1}const N=Jl(S);return N===""?null:[S,,N]}),i:3,u:Td,l:(E,C,S)=>m("p",{key:S.key},C(E.children,S))},22:{t:["["],o:Br(DC),i:0,u:E=>(A[E[1]]={target:E[2],title:E[4]},{}),l:Od},23:{t:["!["],o:sr(LC),i:0,u:E=>({alt:E[1]?Zn(E[1]):void 0,ref:E[2]}),l:(E,C,S)=>A[E.ref]?m("img",{key:S.key,alt:E.alt,src:s(A[E.ref].target,"img","src"),title:A[E.ref].title}):null},24:{t:E=>E[0]==="["&&E.indexOf("](")===-1,o:Br(BC),i:0,u:(E,C,S)=>({children:C(E[1],S),fallbackChildren:E[0],ref:E[2]}),l:(E,C,S)=>A[E.ref]?m("a",{key:S.key,href:s(A[E.ref].target,"a","href"),title:A[E.ref].title},C(E.children,S)):m("span",{key:S.key},E.fallbackChildren)},25:{t:["|"],o:xa(Fb),i:1,u:lR,l(E,C,S){const H=E;return m("table",{key:S.key},m("thead",null,m("tr",null,H.header.map(function(N,Z){return m("th",{key:Z,style:Xb(H,Z)},C(N,S))}))),m("tbody",null,H.cells.map(function(N,Z){return m("tr",{key:Z},N.map(function(X,te){return m("td",{key:te,style:Xb(H,te)},C(X,S))}))})))}},27:{o:Di(function(E,C){let S;return eu(E,":")&&(S=YC.exec(E)),S||ZC.exec(E)}),i:4,u(E){const C=E[0];return{text:C.indexOf("&")===-1?C:C.replace(OC,(S,H)=>a.namedCodesToUnicode[H]||S)}},l:E=>E.text},28:{t:["**","__"],o:sr(kC),i:2,u:(E,C,S)=>({children:C(E[2],S)}),l:(E,C,S)=>m("strong",{key:S.key},C(E.children,S))},29:{t:E=>{const C=E[0];return(C==="*"||C==="_")&&E[1]!==C},o:sr(qC),i:3,u:(E,C,S)=>({children:C(E[2],S)}),l:(E,C,S)=>m("em",{key:S.key},C(E.children,S))},30:{t:["\\"],o:sr(PC),i:1,u:E=>({text:E[1],type:"27"})},31:{t:["=="],o:sr(FC),i:3,u:Td,l:(E,C,S)=>m("mark",{key:S.key},C(E.children,S))},32:{t:["~~"],o:sr(VC),i:3,u:Td,l:(E,C,S)=>m("del",{key:S.key},C(E.children,S))}};a.disableParsingRawHTML===!0&&(delete U[11],delete U[13]);const x=(function(E){var C=Object.keys(E);function S(H,N){var Z=[];if(N.prevCapture=N.prevCapture||"",H.trim())for(;H;)for(var X=0;X<C.length;){var te=C[X],de=E[te];if(!de.t||rR(H,N,de.t)){var ye=de.o(H,N);if(ye&&ye[0]){H=H.substring(ye[0].length);var re=de.u(ye,S,N);N.prevCapture+=ye[0],re.type||(re.type=te),Z.push(re);break}X++}else X++}return N.prevCapture="",Z}return C.sort(function(H,N){return E[H].i-E[N].i||(H<N?-1:1)}),function(H,N){return S((function(Z){return Z.replace(vC,`
110
- `).replace(SC,"").replace(jC," ")})(H),N)}})(U),k=(function(E,C){return function S(H,N={}){if(Array.isArray(H)){const Z=N.key,X=[];let te=!1;for(let de=0;de<H.length;de++){N.key=de;const ye=S(H[de],N),re=Yb(ye);re&&te?X[X.length-1]+=ye:ye!==null&&X.push(ye),te=re}return N.key=Z,X}return(function(Z,X,te){const de=E[Z.type].l;return C?C(()=>de(Z,X,te),Z,X,te):de(Z,X,te)})(H,S,N)}})(U,a.renderRule),I=g(n);return _.length?m("div",null,I,m("footer",{key:"footer"},_.map(function(E){return m("div",{id:i(E.identifier,Gl),key:E.identifier},E.identifier,k(x(E.footnote,{inline:!0})))}))):I}const wa=n=>{let{children:a="",options:i}=n,s=(function(u,f){if(u==null)return{};var d,h,m={},g=Object.keys(u);for(h=0;h<g.length;h++)f.indexOf(d=g[h])>=0||(m[d]=u[d]);return m})(n,sC);return B.cloneElement(dR(a,i),s)},hR="_generalConditionsContainer_55hjg_1",mR="_generalConditions_55hjg_1",pR="_generalConditionsHeader_55hjg_15",gR="_generalConditionsBody_55hjg_26",yR="_generalConditionsAccept_55hjg_35",kl={generalConditionsContainer:hR,generalConditions:mR,generalConditionsHeader:pR,generalConditionsBody:gR,generalConditionsAccept:yR},bR=()=>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"})}),vR=()=>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"})}),_R="general-conditions.header",ER="general-conditions.body",Zb="general-conditions.accept-conditions-note",SR=()=>{const n=tt(),[a,i]=B.useState(!1),s=()=>i(!a),u=h=>{h.key==="ArrowDown"||h.key==="ArrowRight"?i(!0):h.key==="ArrowUp"||h.key==="ArrowLeft"||h.key==="Escape"?i(!1):(h.key==="Enter"||h.key==="Space"||h.key===" ")&&s()},f=n(_R),d=n(Zb);return y.jsxs("div",{className:K(kl.generalConditionsContainer,"chat__generalConditions"),children:[!!f?.length&&y.jsxs("div",{className:kl.generalConditions,children:[y.jsxs("div",{role:"button",onClick:s,onKeyDown:u,tabIndex:0,className:K(kl.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":a?"true":"false","aria-pressed":a?"true":"false",children:[y.jsx(wa,{children:f}),a?y.jsx(vR,{}):y.jsx(bR,{})]}),y.jsx("div",{className:K(kl.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:a&&y.jsx(wa,{children:n(ER)||""})})]}),!!d?.length&&y.jsx("div",{className:K(kl.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:y.jsx(wa,{children:n(Zb)||""})})]})},TR="_messageContainer_1rxi5_1",AR="_message_1rxi5_1",OR="_messageBot_1rxi5_14",xR="_messageBotLast_1rxi5_45",CR="_avatar_1rxi5_45",RR="_messageBotFirst_1rxi5_54",wR="_messageBotAnimated_1rxi5_67",NR="_messageGuest_1rxi5_78",MR="_messageGuestFirst_1rxi5_84",DR="_messageGuestLast_1rxi5_90",LR="_botAvatar_1rxi5_104",BR="_agentAvatar_1rxi5_108",UR="_bubble_1rxi5_112",jR="_bubbleContent_1rxi5_118",HR="_bubbleLeft_1rxi5_132",IR="_leftText_1rxi5_143",zR="_bubbleRight_1rxi5_150",GR="_rightText_1rxi5_160",kR="_sourceInfoReference_1rxi5_192",qR="_sourceInfoReferenceActive_1rxi5_204",ge={messageContainer:TR,message:AR,messageBot:OR,messageBotLast:xR,avatar:CR,messageBotFirst:RR,messageBotAnimated:wR,messageGuest:NR,messageGuestFirst:MR,messageGuestLast:DR,botAvatar:LR,agentAvatar:BR,bubble:UR,bubbleContent:jR,bubbleLeft:HR,leftText:IR,bubbleRight:zR,rightText:GR,sourceInfoReference:kR,sourceInfoReferenceActive:qR},lm=(n,a)=>{B.useEffect(()=>{const i=s=>{n.current&&!n.current.contains(s.target)&&a()};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[n,a])};var Cd,Qb;function sm(){if(Qb)return Cd;Qb=1;function n(a){var i=typeof a;return a!=null&&(i=="object"||i=="function")}return Cd=n,Cd}var Rd,Kb;function FR(){if(Kb)return Rd;Kb=1;var n=typeof Co=="object"&&Co&&Co.Object===Object&&Co;return Rd=n,Rd}var wd,$b;function d_(){if($b)return wd;$b=1;var n=FR(),a=typeof self=="object"&&self&&self.Object===Object&&self,i=n||a||Function("return this")();return wd=i,wd}var Nd,Wb;function VR(){if(Wb)return Nd;Wb=1;var n=d_(),a=function(){return n.Date.now()};return Nd=a,Nd}var Md,Jb;function YR(){if(Jb)return Md;Jb=1;var n=/\s/;function a(i){for(var s=i.length;s--&&n.test(i.charAt(s)););return s}return Md=a,Md}var Dd,ev;function PR(){if(ev)return Dd;ev=1;var n=YR(),a=/^\s+/;function i(s){return s&&s.slice(0,n(s)+1).replace(a,"")}return Dd=i,Dd}var Ld,tv;function h_(){if(tv)return Ld;tv=1;var n=d_(),a=n.Symbol;return Ld=a,Ld}var Bd,nv;function XR(){if(nv)return Bd;nv=1;var n=h_(),a=Object.prototype,i=a.hasOwnProperty,s=a.toString,u=n?n.toStringTag:void 0;function f(d){var h=i.call(d,u),m=d[u];try{d[u]=void 0;var g=!0}catch{}var b=s.call(d);return g&&(h?d[u]=m:delete d[u]),b}return Bd=f,Bd}var Ud,av;function ZR(){if(av)return Ud;av=1;var n=Object.prototype,a=n.toString;function i(s){return a.call(s)}return Ud=i,Ud}var jd,rv;function QR(){if(rv)return jd;rv=1;var n=h_(),a=XR(),i=ZR(),s="[object Null]",u="[object Undefined]",f=n?n.toStringTag:void 0;function d(h){return h==null?h===void 0?u:s:f&&f in Object(h)?a(h):i(h)}return jd=d,jd}var Hd,iv;function KR(){if(iv)return Hd;iv=1;function n(a){return a!=null&&typeof a=="object"}return Hd=n,Hd}var Id,lv;function $R(){if(lv)return Id;lv=1;var n=QR(),a=KR(),i="[object Symbol]";function s(u){return typeof u=="symbol"||a(u)&&n(u)==i}return Id=s,Id}var zd,sv;function WR(){if(sv)return zd;sv=1;var n=PR(),a=sm(),i=$R(),s=NaN,u=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,d=/^0o[0-7]+$/i,h=parseInt;function m(g){if(typeof g=="number")return g;if(i(g))return s;if(a(g)){var b=typeof g.valueOf=="function"?g.valueOf():g;g=a(b)?b+"":b}if(typeof g!="string")return g===0?g:+g;g=n(g);var _=f.test(g);return _||d.test(g)?h(g.slice(2),_?2:8):u.test(g)?s:+g}return zd=m,zd}var Gd,ov;function m_(){if(ov)return Gd;ov=1;var n=sm(),a=VR(),i=WR(),s="Expected a function",u=Math.max,f=Math.min;function d(h,m,g){var b,_,A,U,x,k,I=0,E=!1,C=!1,S=!0;if(typeof h!="function")throw new TypeError(s);m=i(m)||0,n(g)&&(E=!!g.leading,C="maxWait"in g,A=C?u(i(g.maxWait)||0,m):A,S="trailing"in g?!!g.trailing:S);function H(ce){var Xe=b,Ne=_;return b=_=void 0,I=ce,U=h.apply(Ne,Xe),U}function N(ce){return I=ce,x=setTimeout(te,m),E?H(ce):U}function Z(ce){var Xe=ce-k,Ne=ce-I,G=m-Xe;return C?f(G,A-Ne):G}function X(ce){var Xe=ce-k,Ne=ce-I;return k===void 0||Xe>=m||Xe<0||C&&Ne>=A}function te(){var ce=a();if(X(ce))return de(ce);x=setTimeout(te,Z(ce))}function de(ce){return x=void 0,S&&b?H(ce):(b=_=void 0,U)}function ye(){x!==void 0&&clearTimeout(x),I=0,b=k=_=x=void 0}function re(){return x===void 0?U:de(a())}function pe(){var ce=a(),Xe=X(ce);if(b=arguments,_=this,k=ce,Xe){if(x===void 0)return N(k);if(C)return clearTimeout(x),x=setTimeout(te,m),H(k)}return x===void 0&&(x=setTimeout(te,m)),U}return pe.cancel=ye,pe.flush=re,pe}return Gd=d,Gd}var JR=m_();const e6=bu(JR),t6="_container_131ib_1",n6="_categoryContainer_131ib_13",a6="_categoryButton_131ib_20",r6="_active_131ib_35",i6="_commentTextarea_131ib_44",ql={container:t6,categoryContainer:n6,categoryButton:a6,active:r6,commentTextarea:i6},l6=(n,a,i)=>{B.useEffect(()=>{if(n){const s=()=>{const f=["button:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])',"a[href]","input:not([disabled])","select:not([disabled])"].join(","),d=a.current?Array.from(a.current.querySelectorAll(f)):[],h=i.current?Array.from(i.current.querySelectorAll(f)):[];return[...d,...h]},u=f=>{if(f.key==="Tab"){const d=s();if(d.length>0){const h=d[0],m=d[d.length-1],g=document.activeElement;!f.shiftKey&&g===m?(f.preventDefault(),h.focus()):f.shiftKey&&g===h&&(f.preventDefault(),m.focus())}}};return document.addEventListener("keydown",u,!0),()=>{document.removeEventListener("keydown",u,!0)}}},[n,a,i])},s6=({open:n,actionsRef:a,reaction:i,onReaction:s})=>{const u=tt(),f=B.useRef(null),d=e6(g=>{s({...i,comment:g})},300);B.useEffect(()=>()=>d.flush(),[d]),l6(n,a,f);const h=g=>{s({...i,category:i.category===g?void 0:g})},m=g=>d(g.target.value);return n?y.jsxs("div",{ref:f,className:ql.container,role:"dialog","aria-modal":"true","aria-labelledby":"bad-reaction-title",children:[y.jsx("h2",{id:"bad-reaction-title",children:u("bot-bubble.reaction.say-more")}),y.jsx("div",{className:ql.categoryContainer,role:"radiogroup",children:["WRONG_INFORMATION","MISSING_INFORMATION","OLD_INFORMATION","UNCLEAR","OFF_TOPIC"].map(g=>y.jsx("button",{className:K(ql.categoryButton,i?.category===g&&ql.active),onClick:()=>h(g),"aria-pressed":i?.category===g,"aria-label":u(`bot-bubble.reaction.category.${g}`),tabIndex:0,role:"radio",children:u(`bot-bubble.reaction.category.${g}`)},g))}),y.jsx("textarea",{id:"comment",name:"comment",placeholder:u("bot-bubble.reaction.comment"),defaultValue:i?.comment,onChange:m,className:ql.commentTextarea,rows:3,"aria-label":u("bot-bubble.reaction.comment")})]}):null},o6="_botMessageActionContainer_18fjb_1",u6="_alwaysVisible_18fjb_15",c6="_active_18fjb_19",f6="_botMessageActionInnerContainer_18fjb_27",d6="_header_18fjb_52",h6="_botMessageActions_18fjb_57",m6="_reported_18fjb_68",p6="_action_18fjb_72",g6="_wave_18fjb_86",y6="_anyReport_18fjb_156",b6="_closeButton_18fjb_172",lt={botMessageActionContainer:o6,alwaysVisible:u6,active:c6,botMessageActionInnerContainer:f6,header:d6,botMessageActions:h6,reported:m6,action:p6,wave:g6,anyReport:y6,closeButton:b6},v6=({isSubmitting:n,onClick:a})=>{const i=tt();return y.jsx("button",{className:K(lt.action,lt.closeButton,"tooltip--bottom-left"),"aria-label":i("bot-bubble.reaction.close"),"data-title":i("bot-bubble.reaction.close"),tabIndex:0,onClick:a,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:n?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"})})})},_6=({alwaysVisible:n,senderType:a,reaction:i,botMessageRef:s,message:u,onReaction:f})=>{const d=tt(),[h,m]=B.useState(!1),[g,b]=B.useState(!1),[_,A]=B.useState(!1),U=B.useRef(null),x=B.useRef(null);lm(U,()=>{A(!1)});const k=N=>{N.key==="Escape"&&A(!1)};B.useEffect(()=>(document.addEventListener("keydown",k),()=>{document.removeEventListener("keydown",k)}),[]),B.useEffect(()=>{_&&U.current?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[_]);const I=N=>{x.current&&clearTimeout(x.current),b(!0),f(N),x.current=setTimeout(()=>{b(!1)},1e3)},E=B.useCallback(async()=>{if(s.current)try{m(!0);const N=s.current.innerHTML,Z=s.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([N],{type:"text/html"}),"text/plain":new Blob([Z],{type:"text/plain"})})]),await new Promise(X=>setTimeout(X,1500))}finally{m(!1)}},[s]),C=()=>{A(!1),f(i?.type==="GOOD"?null:{type:"GOOD"})},S=()=>{f({...u.reaction,type:"BAD"}),A(!_)},H=N=>Z=>{(Z.key==="Enter"||Z.key===" ")&&N()};return y.jsx("div",{ref:U,className:K(lt.botMessageActionContainer,n&&lt.alwaysVisible,_&&lt.active),children:y.jsxs("div",{className:K(lt.botMessageActionInnerContainer,n&&lt.alwaysVisible,_&&lt.active,i&&lt.reported),role:"group",children:[y.jsxs("div",{className:lt.header,children:[y.jsxs("div",{className:K(lt.botMessageActions,i&&lt.reported),children:[a===pu.BOT&&y.jsx("button",{className:K(lt.action,lt.wave,i?.type&&lt.anyReport,i?.type==="GOOD"&&lt.reported,"tooltip--top-right"),tabIndex:0,"aria-label":d(i?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"aria-pressed":i?.type==="GOOD","data-title":d(i?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onPointerDown:C,onKeyDown:H(C),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"})})}),a===pu.BOT&&y.jsx("button",{className:K(lt.action,lt.wave,i?.type&&lt.anyReport,i?.type==="BAD"&&lt.reported,"tooltip--top-right"),tabIndex:0,"aria-label":d("bot-bubble.reaction.bad"),"aria-pressed":i?.type==="BAD","data-title":d("bot-bubble.reaction.bad"),onPointerDown:S,onKeyDown:H(S),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:K(lt.action,lt.wave,"tooltip--top-right"),style:{visibility:_?"hidden":"visible"},tabIndex:0,"aria-label":d("bot-bubble.copy"),"data-title":d("bot-bubble.copy"),onClick:E,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"})})})]}),_&&y.jsx(v6,{isSubmitting:g,onClick:()=>A(!1)})]}),u.reaction&&y.jsx(s6,{open:_,actionsRef:U,reaction:u.reaction,onReaction:I})]})})},p_=B.forwardRef(({message:n,isAnimated:a,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,children:f,onReaction:d},h)=>{const m=tt(),g=B.useRef(null),b=n.sender.type===Te.UserType.BOT;return y.jsxs("li",{ref:h,className:K(ge.message,ge.messageBot,i&&ge.lastMessage,s&&ge.messageBotFirst,u&&ge.messageBotLast,"chat__bubbleContainer",a&&ge.messageBotAnimated,a&&"chat__bubbleContainer--animated",b?"chat__botBubbleContainer":"chat__agentBubbleContainer",s&&"chat__bubbleContainer--first",u&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:K(ge.avatar,b?ge.botAvatar:ge.agentAvatar,"chat__avatar",b?"chat__botAvatar":"chat__agentAvatar"),src:`${n.sender.avatar}`,alt:b?"Bot":"Agent",referrerPolicy:"no-referrer"}),y.jsxs("div",{className:ge.messageContainer,children:[y.jsx("div",{ref:g,className:K(ge.bubble,ge.bubbleLeft,"chat__bubble",b?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":m(b?"bot-bubble.label":"agent-bubble.label"),children:y.jsx("div",{className:K(ge.leftText),children:f})}),d&&y.jsx(_6,{alwaysVisible:i&&u,senderType:n.sender.type,reaction:n.reaction,message:n,botMessageRef:g,onReaction:d})]})]})}),E6="_sourceList_1n31h_1",S6="_source_1n31h_1",T6="_label_1n31h_37",kd={sourceList:E6,source:S6,label:T6},g_=n=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,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"})}),y_=n=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,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"})}),b_=n=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,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"})}),v_=n=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,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"})}),A6=({type:n,...a})=>{switch(n){case"WEBSITE":return y.jsx(v_,{...a});case"PDF":return y.jsx(b_,{...a});case"DOCX":return y.jsx(g_,{...a});default:return y.jsx(y_,{...a})}},om=({sources:n,onLinkClick:a})=>{const i=tt(),s=f=>()=>{a(f.url)},u=f=>d=>{(d.key==="Enter"||d.key===" ")&&a(f.url)};return n.length?y.jsx("ul",{className:kd.sourceList,"aria-label":i("bot-bubble.sources"),children:n.map(f=>y.jsx("li",{className:kd.source,children:y.jsxs("a",{role:"button",tabIndex:0,"aria-label":`${i("bot-bubble.source.open")}: ${f.label}`,onClick:s(f),onKeyDown:u(f),children:[y.jsx(A6,{type:f.type,"aria-hidden":"true"}),y.jsx("div",{className:kd.label,children:f.label})]})},f.url))}):null},O6="_button_3ui4g_1",x6="_buttonDefault_3ui4g_13",C6="_buttonPrimary_3ui4g_28",ns={button:O6,buttonDefault:x6,buttonPrimary:C6},Mu=({className:n,children:a,...i})=>y.jsx("button",{className:K(ns.button,n),type:"button",role:"button",...i,children:a}),R6="_title_137pi_1",w6="_buttons_137pi_6",N6="_button_137pi_6",M6="_imageContainer_137pi_29",D6="_image_137pi_29",L6="_video_container_137pi_44",B6="_video_137pi_44",U6="_only_137pi_58",un={title:R6,buttons:w6,button:N6,imageContainer:M6,image:D6,video_container:L6,video:B6,only:U6},j6=({buttons:n,onButtonClick:a})=>y.jsx("div",{className:K(un.buttons,"chat__bubbleButtons"),children:n.map((i,s)=>y.jsx(Mu,{className:K(un.button,"chat__bubbleButton"),onClick:()=>a(i),children:i.title},s))}),uv="newtab#",__=({markdown:n,markdownOptions:a={},onLinkClick:i})=>{const s=f=>d=>(d.preventDefault(),f&&i(f),!1),u=({title:f,href:d,children:h})=>d.indexOf(uv)===0?y.jsx("a",{href:d.slice(uv.length),title:f,target:"_blank",rel:"noopener noreferrer",children:h}):y.jsx("a",{onClick:s(d),title:f,href:d,children:h});return y.jsx(wa,{options:{...a,overrides:{a:u}},children:n})},H6=({text:n,onLinkClick:a})=>n?y.jsx("div",{children:y.jsx(__,{markdown:n,onLinkClick:a})}):null,I6=({title:n})=>n?y.jsx("h1",{className:un.title,children:n}):null,z6=({title:n,text:a,buttons:i,onButtonClick:s,onLinkClick:u})=>n?.length||a?.length||i?.length?y.jsxs("div",{className:K(ge.bubbleContent),children:[y.jsx(I6,{title:n}),y.jsx(H6,{text:a,onLinkClick:u}),y.jsx(j6,{buttons:i,onButtonClick:s})]}):null,G6=({alt:n,imageUrl:a,itemUrl:i,hasBody:s})=>a?i?i.indexOf("youtube.com")>-1?y.jsx("div",{className:un.video_container,children:y.jsx("iframe",{className:K(un.video,{[un.only]:!s}),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:un.imageContainer,children:y.jsx("img",{className:K(un.image,{[un.only]:!s}),src:a,alt:n})})}):y.jsx("div",{className:un.imageContainer,children:y.jsx("img",{className:K(un.image,{[un.only]:!s}),src:a,alt:n})}):null,k6=({title:n,text:a,imageUrl:i,itemUrl:s,buttons:u,sources:f,onButtonClick:d,onLinkClick:h})=>{const m=!!n?.length||!!a?.length||!!u?.length;return y.jsxs("div",{className:K(un.detailMessage),children:[y.jsx(G6,{hasBody:m,imageUrl:i,itemUrl:s,alt:n||""}),m&&y.jsx(z6,{title:n,text:a,buttons:u,onLinkClick:h,onButtonClick:d}),y.jsx(om,{sources:f,onLinkClick:h})]})},q6=B.forwardRef(({isFirstMessageBySender:n,isLastMessageBySender:a,children:i},s)=>{const u=tt();return y.jsx("li",{ref:s,className:K(ge.message,ge.messageGuest,n&&ge.messageGuestFirst,a&&ge.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",n&&"chat__bubbleContainer--first",a&&"chat__bubbleContainer--last"),children:y.jsx("div",{className:K(ge.bubble,ge.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":u("guest-bubble.label"),children:y.jsx("div",{className:K(ge.rightText),children:i})})})}),F6="_markdown_nw7vg_1",E_={markdown:F6},um=()=>B.useMemo(()=>Xh(),[]),Xo="source-info-reference",V6=({actionId:n,markdown:a,sources:i,onLinkClick:s})=>{const u=um(),f=La(),d=Y6(),h=ut(b=>{const _=b.chat.sourceInfos;if(_?.type==="loaded"||_?.type==="loading")return _.chunkId}),m=b=>_=>{const A=_.key;(A==="ArrowDown"||A==="ArrowRight"||A==="Enter"||A===" "||A==="Space")&&(_.stopPropagation(),f(Mb(u,n,b)))},g=b=>()=>{f(Mb(u,n,b))};return B.useLayoutEffect(()=>{document.querySelectorAll(`.${Xo}`).forEach(b=>{const _=b.previousSibling;_&&_.nodeType===Node.TEXT_NODE&&_.textContent?.endsWith(" ")&&_.textContent?.trim().length&&b.classList.add(`${Xo}--before-space`);const A=b.nextSibling;A&&A.nodeType===Node.TEXT_NODE&&A.textContent?.startsWith(" ")&&A.textContent?.trim().length&&b.classList.add(`${Xo}--after-space`)})},[a]),y.jsxs("div",{className:ge.bubbleContent,children:[y.jsx("div",{className:E_.markdown,children:y.jsx(__,{markdown:a,onLinkClick:s,markdownOptions:{renderRule(b,_,A,U){if(_.type===oC.footnoteReference){const x=_.text===h;return y.jsx("span",{className:K(ge.sourceInfoReference,x&&ge.sourceInfoReferenceActive,Xo),children:y.jsx("a",{type:"button",tabIndex:0,onClick:g(_.text),onKeyDown:m(_.text),children:d(_.text)})},U.key)}return b()}}})}),y.jsx(om,{sources:i,onLinkClick:s})]})},Y6=()=>{const n=[];return i=>{const s=n.indexOf(i);return s>-1?s+1:(n.push(i),n.length)}},P6="_text_gp0s0_1",X6="_command_gp0s0_5",cv={text:P6,command:X6},Z6=({text:n,commands:a=[]})=>{const i=a.find(u=>n.startsWith(`/${u}`)),s=i?n.slice(i.length+1):n;return y.jsxs("div",{children:[i&&y.jsxs("code",{className:cv.command,children:["/",i]}),s.split(`
111
- `).map((u,f)=>y.jsxs("span",{className:cv.text,children:[u,y.jsx("br",{})]},f))]})},Q6=({text:n,commands:a,sources:i,onLinkClick:s})=>y.jsxs("div",{className:ge.bubbleContent,children:[y.jsx(Z6,{text:n,commands:a}),y.jsx(om,{sources:i,onLinkClick:s})]}),K6=B.forwardRef(({message:n,commands:a,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,onReaction:f,onButtonClick:d,onLinkClick:h},m)=>{const g=$6(n._id,n,a,d,h),b=_=>{f(n._id,_)};switch(n.sender.type){case Te.UserType.GUEST:return y.jsx(q6,{ref:m,isFirstMessageBySender:s,isLastMessageBySender:u,children:g});default:return y.jsx(p_,{ref:m,message:n,isAnimated:!1,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,onReaction:b,children:g})}}),$6=(n,a,i,s,u)=>{switch(a.type){case Te.MessageTypeEnum.TEXT:{const f=a;return y.jsx(Q6,{text:f.text,commands:i,sources:a.sources||[],onLinkClick:u})}case Te.MessageTypeEnum.DETAIL:{const f=a;return y.jsx(k6,{title:f.title,text:f.text,imageUrl:f.imageUrl,itemUrl:f.itemUrl,buttons:f.buttons,sources:a.sources||[],onButtonClick:s,onLinkClick:u})}case Te.MessageTypeEnum.MARKDOWN:{const f=a;return y.jsx(V6,{actionId:n,markdown:f.markdown,sources:f.sources||[],onLinkClick:u})}}},W6=(n,a)=>n.message._id===a.message._id&&n.message.reaction===a.message.reaction&&n.isLastMessage===a.isLastMessage&&n.isFirstMessageBySender===a.isFirstMessageBySender&&n.isLastMessageBySender===a.isLastMessageBySender,J6=Gv.memo(K6,W6),ew="_ticontainer_xg0dn_1",tw="_tiblock_xg0dn_5",nw="_tidot_xg0dn_12",Fl={ticontainer:ew,tiblock:tw,tidot:nw},aw=({isTyping:n=!1})=>y.jsx("div",{className:Fl.ticontainer,children:y.jsx("div",{className:Fl.tiblock,children:n?y.jsxs(y.Fragment,{children:[y.jsx("div",{className:K(Fl.tidot,"chat__typingIndicator")}),y.jsx("div",{className:K(Fl.tidot,"chat__typingIndicator")}),y.jsx("div",{className:K(Fl.tidot,"chat__typingIndicator")})]}):null})}),rw=Object.assign({_id:"typing-indicator"},new Te.TextMessage("",new Te.BotUser)),iw=({messages:n,isBotTyping:a,commands:i,onTranscriptItemReaction:s,onButtonClick:u,onLinkClick:f})=>{const d=B.useRef(0),h=B.useRef(!0),m=B.useRef(null),g=B.useRef(null),b=B.useRef(null),_=ut(x=>x.settings.enableGeneralConditions);B.useLayoutEffect(()=>{if(n.length&&m.current&&(d.current<n.length||a)){if(g.current){const x=g.current.offsetTop;m.current.scrollTop=x}else if(b.current){const x=b.current.offsetTop;m.current.scrollTop=x}h.current&&(h.current=!1),d.current=n.length}},[n,h,a]);let A;const U=n.length;return y.jsxs("div",{ref:m,className:K(Lb.messageContainer,"chat__messageContainer"),style:{scrollBehavior:n.length&&h.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[_&&y.jsx(SR,{}),y.jsxs("ul",{className:Lb.messages,children:[n.map((x,k)=>{const I=lw(x,A),E=sw(x,k,n,a);A=x.sender.type;const C=k+1===U,S=x._id||`added-${k}`;return y.jsx(J6,{ref:C?b:null,message:x,commands:i,isLastMessage:C,isFirstMessageBySender:I,isLastMessageBySender:E,onButtonClick:u,onLinkClick:f,onReaction:s},C&&!a?"last":S)}),a&&y.jsx(p_,{ref:g,message:rw,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:A!==Te.UserType.BOT,isLastMessageBySender:!0,children:y.jsx(aw,{isTyping:!0})},"last")]})]})},lw=(n,a)=>!a||a!==n.sender.type,sw=(n,a,i,s)=>{const u=n.sender.type,f=i.length;return a+1===f?!(u===Te.UserType.BOT&&s):u!==i.at(a+1)?.sender.type},ow="_bottomSheet_jp8dl_1",uw="_bottomSheetOpen_jp8dl_15",cw="_bottomSheetClose_jp8dl_20",Na={bottomSheet:ow,bottomSheetOpen:uw,bottomSheetClose:cw},fw="_container_xc2nx_1",fv={container:fw},dw=({contentUrl:n})=>{const a=ut(f=>f.connection.sessionId),[i,s]=B.useState(!1);B.useEffect(()=>{s(f=>f||!!n)},[n]);const u=B.useMemo(()=>{if(n&&a){const f=new URL(n,document.baseURI);return f.searchParams.set("sessionId",a),f.toString()}else return},[n,a]);return y.jsx("div",{className:K(fv.container,Na.bottomSheet,{[Na.bottomSheetOpen]:!!n,[Na.bottomSheetClose]:i&&!n}),children:u&&y.jsx("iframe",{title:"Drawer",src:u,className:fv.iframe})})},hw="_container_6tt4m_1",mw={container:hw},pw=({title:n,href:a,children:i})=>y.jsx("a",{href:a,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),gw=()=>{const a=tt()("powered-by");return a&&a.length?y.jsx("div",{className:K(mw.container,"chat__poweredBy"),children:y.jsx(wa,{options:{overrides:{a:pw}},children:a})}):null},S_=({className:n,children:a,...i})=>y.jsx(Mu,{className:K(ns.buttonDefault,n),type:"button",...i,children:a}),gu=({className:n,children:a,...i})=>y.jsx(Mu,{className:K(ns.buttonPrimary,n),...i,children:a}),yw="_container_h23mk_1",bw="_formContainer_h23mk_17",vw="_emailInput_h23mk_22",_w="_description_h23mk_52",Ew="_actions_h23mk_57",Sw="_validationError_h23mk_67",Tw="_submitted_h23mk_74",Ur={container:yw,formContainer:bw,emailInput:vw,description:_w,actions:Ew,validationError:Sw,submitted:Tw},Aw=({visible:n,onEmailExport:a,onClose:i})=>{const s=tt(),[u,f]=B.useState(void 0),[d,h]=B.useState(!1),[m,g]=B.useState(void 0),b=B.useRef(null);B.useEffect(()=>{n?(b.current?.focus(),h(!1),f(n)):u===!0&&f(!1)},[n,u]);const _=U=>{U.preventDefault(),m&&m.length>0&&(a(m),h(!0),setTimeout(i,3*1e3))},A=U=>{const x=U.target.value.trim(),k=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(x);g(k?x:"")};return y.jsxs("div",{className:K(Ur.container,Na.bottomSheet,{[Na.bottomSheetOpen]:u===!0,[Na.bottomSheetClose]:u===!1}),children:[y.jsx("h2",{children:s("export-transcript.email.title")}),y.jsx(wa,{className:Ur.description,children:s("export-transcript.email.description")||""}),y.jsxs("form",{onSubmit:_,className:Ur.formContainer,children:[y.jsxs("div",{children:[y.jsx("input",{disabled:d,ref:b,type:"email",placeholder:s("export-transcript.email.placeholder"),className:Ur.emailInput,onChange:A}),m?.length===0?y.jsx("div",{className:Ur.validationError,children:s("export-transcript.email.invalid")}):null]}),y.jsxs("div",{className:Ur.actions,children:[y.jsx(S_,{onClick:i,children:s("export-transcript.email.cancel")}),y.jsx(gu,{type:"submit",disabled:d||m===void 0||m.length===0,children:s("export-transcript.email.send")})]})]}),d&&y.jsx("div",{className:Ur.submitted,children:s("export-transcript.email.success")})]})},Ow="_inputContainer_fi5ao_1",xw={inputContainer:Ow},Cw="_blockUserInput_pot9c_1",Rw={blockUserInput:Cw},ww=({visible:n})=>{const a=tt();return n?y.jsx("div",{className:K(Rw.blockUserInput,"chat__blockUserInput"),children:a("block-user-input.title")}):null},Nw="_commandsDropdown_5ytuv_1",Mw="_commands_5ytuv_1",Dw="_command_5ytuv_1",Lw="_commandActive_5ytuv_46",Bw="_commandsSelections_5ytuv_55",$l={commandsDropdown:Nw,commands:Mw,command:Dw,commandActive:Lw,commandsSelections:Bw},Uw=(n,a,i,s,u)=>{B.useEffect(()=>{const f=d=>{if(n.length)switch(d.key){case"Enter":i(n[a]);break;case"ArrowUp":s(h=>h>0?h-1:n.length-1);break;case"ArrowDown":s(h=>h<n.length-1?h+1:0);break;case"Escape":u([]);break}};return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)}},[n,a,i,s,u])},jw=({text:n,commands:a,onSelectCommand:i,onVisibilityChange:s})=>{const u=B.useRef(null),f=tt(),[d,h]=B.useState([]),[m,g]=B.useState(dv(a)),[b,_]=B.useState(0),A=U=>i(`/${U}`);return lm(u,()=>h([])),Uw(d,b,A,_,h),B.useEffect(()=>{g(dv(a))},[a]),B.useEffect(()=>{const U=n.length||0;U===0||U>m||!n.startsWith("/")?h([]):h(a.filter(Hw(n))),_(0)},[a,n,m]),B.useEffect(()=>{s(!!d.length)},[d,s]),d.length?y.jsx("div",{ref:u,className:$l.commandsDropdown,children:y.jsx("ul",{id:"command-list",className:$l.commands,role:"listbox",children:d.map((U,x)=>y.jsxs("li",{className:K([$l.command,b===x&&$l.commandActive]),role:"option",onClick:()=>A(U),onMouseOver:()=>_(x),children:[y.jsxs("h1",{children:["/",U]}),y.jsx("p",{children:f(`commands.${U}`)})]},U))})}):null},dv=n=>Math.max(...n.map(a=>a.length+1)),Hw=n=>a=>{const i=`/${a}`;return i.startsWith(n)&&i.length>=n.length},hv=3,Iw=({commands:n,onSelectCommand:a})=>{const i=tt(),[s,u]=B.useState(!1),f=g=>()=>{a(`/${g}`),u(!1)},d=()=>{u(!0)},h=()=>{u(!1)},m=s?n:n.slice(0,hv);return y.jsxs("div",{className:$l.commandsSelections,children:[m.map(g=>y.jsxs("button",{className:"tooltip--top-center","aria-label":i(`commands.${g}`),"data-title":i(`commands.${g}`),tabIndex:0,onClick:f(g),children:["/",g]},g)),m.length<n.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"):m.length>hv?y.jsx("button",{"aria-label":i("commands.show-less.tooltip"),"data-title":i("commands.show-less.tooltip"),tabIndex:0,onClick:h,children:i("commands.show-less.action")},"show-less"):null]})},zw="_callToActionContainer_d8izj_1",Gw="_callToActionTitle_d8izj_23",kw="_rateOverlay_d8izj_30",qw="_body_d8izj_52",Fw="_footer_d8izj_60",Vw="_actions_d8izj_75",Yw="_bubbles_d8izj_89",Pw="_stars_d8izj_191",Xw="_starsSmall_d8izj_205",Zw="_starsLarge_d8izj_211",Qw="_star_d8izj_191",Kw="_starReadonly_d8izj_225",$w="_starIcon_d8izj_235",Ww="_starsDescriptionContainer_d8izj_253",Jw="_starsDescription_d8izj_253",Gt={callToActionContainer:zw,callToActionTitle:Gw,rateOverlay:kw,body:qw,footer:Fw,actions:Vw,bubbles:Yw,stars:Pw,starsSmall:Xw,starsLarge:Zw,star:Qw,starReadonly:Kw,starIcon:$w,starsDescriptionContainer:Ww,starsDescription:Jw},e3=({value:n,index:a,count:i,readonly:s,onHover:u,onClick:f})=>{const d=h=>{f&&h.key==="Enter"&&f()};return y.jsx("li",{className:K(Gt.star,{[Gt.starReadonly]:s},"chat__conversationRating__star"),children:y.jsx("div",{role:"radio","aria-checked":n>a?"true":"false","aria-posinset":a+1,"aria-setsize":i,tabIndex:0,onMouseOver:u,onKeyDown:d,onClick:f,children:y.jsx("span",{role:"img","aria-label":"Star",className:K(Gt.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,T_=({value:n,size:a,readonly:i=!1,onChange:s})=>{const[u,f]=B.useState(void 0),d=()=>{f(void 0)},h=g=>()=>{if(!i){const b=g+1;f(b)}},m=g=>()=>{s&&!i&&(s(g===0&&n===1?0:g+1),f(void 0))};return y.jsx("ul",{tabIndex:0,role:"radiogroup",className:K(Gt.stars,{[Gt.starsSmall]:a==="small",[Gt.starsLarge]:a==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:a==="small",chat__conversationRating__stars__large:a==="large"}),onMouseOut:d,children:Array(mv).fill(0).map((g,b)=>y.jsx(e3,{value:u===void 0?n:u,index:b,count:mv,readonly:i,onHover:h(b),onClick:m(b)},b))})},t3=({visible:n,onRate:a})=>{const i=tt();return n?y.jsxs("div",{className:K(Gt.callToActionContainer,"chat__conversationRating__callToAction"),children:[y.jsx("div",{className:K(Gt.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),y.jsx(T_,{value:0,size:"small",onChange:a})]}):null},qd=({isFirstMessageBySender:n,isLastMessageBySender:a,children:i})=>y.jsxs("div",{className:K(ge.message,ge.messageBot,n&&ge.messageBotFirst,a&&ge.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",n&&"chat__bubbleContainer--first",a&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:K(ge.avatar,ge.botAvatar),src:"bot.svg",alt:"Bot"}),y.jsx("div",{className:K(ge.bubble,ge.bubbleLeft,"chat__bubble","chat__botBubble"),children:y.jsx("div",{className:K(ge.leftText,ge.bubbleContent),children:i})})]}),n3=({children:n})=>y.jsx("div",{className:K(ge.message,ge.messageGuest,ge.messageGuestFirst,ge.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:y.jsx("div",{className:K(ge.bubble,ge.bubbleRight,"chat__bubble","chat__guestBubble"),children:y.jsx("div",{className:K(ge.rightText,ge.bubbleContent),children:n})})}),a3=()=>{const n=tt(),a=La(),i=ut(I=>I.chat.conversationRating),[s,u]=B.useState(i.rating?.value||0),[f,d]=B.useState(void 0),[h,m]=B.useState(void 0),[g,b]=B.useState({submitted:!1,feedback:""}),_=B.useRef(null),[A,U]=B.useState(!1);B.useEffect(()=>{i.opener?(b({submitted:!1,feedback:""}),m(!0)):h===!0&&m(!1)},[i.opener,h]),B.useEffect(()=>{u(i.rating?.value||0)},[i.rating?.value,i.opener]),B.useEffect(()=>{_.current&&(_.current.value=i.rating?.feedback||"")},[i.rating?.feedback]),B.useEffect(()=>{const I=s>0?n(`conversation-rating.overlay.bot-message.rate-feedback.value-${s}`):void 0;d(I?.length?I:void 0)},[s,n]),B.useEffect(()=>{g.submitted?setTimeout(()=>U(!0),g.feedback.length?500:0):U(!1)},[g]);const x=I=>{I.preventDefault();const E=_.current?.value?.trim()||"";a(XO(s,E)),b({submitted:!0,feedback:E})},k=()=>{i.opener==="CLOSE_CHAT"?a(t_()):i.opener==="RESTART_CHAT"?a(ls()):a(Px())};return y.jsx("div",{className:K(Gt.rateOverlay,Na.bottomSheet,"chat__conversationRating__overlay",{[Na.bottomSheetOpen]:h===!0,[Na.bottomSheetClose]:h===!1}),children:y.jsxs("form",{onSubmit:x,children:[y.jsxs("div",{className:K(Gt.body,"chat__conversationRating__overlay__body"),children:[y.jsx("div",{}),y.jsx("div",{className:K(Gt.bubbles),children:i.opener&&y.jsxs(y.Fragment,{children:[y.jsxs(qd,{isFirstMessageBySender:!0,isLastMessageBySender:!f,children:[y.jsx("h2",{children:n("conversation-rating.overlay.title")}),y.jsxs("div",{className:K(Gt.starsDescriptionContainer),children:[y.jsx(T_,{value:s,size:"large",readonly:g.submitted,onChange:u}),y.jsxs("div",{className:K(Gt.starsDescription),children:[y.jsx("div",{children:n("conversation-rating.overlay.star.very-bad")}),y.jsx("div",{children:n("conversation-rating.overlay.star.very-good")})]})]})]}),f&&y.jsx(qd,{isFirstMessageBySender:!1,isLastMessageBySender:!A||!!g.feedback.length,children:y.jsx("div",{children:f})}),!!g.feedback.length&&y.jsx(n3,{children:g.feedback}),A&&y.jsx(qd,{isFirstMessageBySender:!!g.feedback.length,isLastMessageBySender:!0,children:y.jsx("div",{children:n("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),y.jsxs("div",{className:K(Gt.footer,"chat__conversationRating__overlay__footer"),children:[!g.submitted&&y.jsx("input",{ref:_,defaultValue:i.rating?.feedback||"",placeholder:n("conversation-rating.overlay.guest-feedback.input-placeholder")}),y.jsxs("div",{className:K(Gt.actions,"chat__conversationRating__overlay__footer__actions"),children:[g.submitted?y.jsx(gu,{type:"button",disabled:!s,onClick:k,children:i.opener==="CLOSE_CHAT"?n("conversation-rating.overlay.action.close-chat"):i.opener==="RESTART_CHAT"?n("conversation-rating.overlay.action.restart-chat"):n("conversation-rating.overlay.action.back-to-chat")},"close-button"):y.jsx(gu,{type:"submit",disabled:!s,children:n("conversation-rating.overlay.action.submit")},"submit-button"),i.opener!=="CHAT"&&!g.submitted&&y.jsx(S_,{onClick:k,children:i.opener==="CLOSE_CHAT"?n("conversation-rating.overlay.action.close-chat"):i.opener==="RESTART_CHAT"?n("conversation-rating.overlay.action.restart-chat"):n("conversation-rating.overlay.action.cancel")})]})]})]})})},r3=({numberOfMessagesFromGuest:n})=>{const a=La(),i=ut(f=>f.chat.conversationRating),s=f=>{a(mu("CHAT",f))},u=!i.rating?.value&&n>=1;return i.enabled?y.jsxs(y.Fragment,{children:[y.jsx(t3,{visible:u,onRate:s}),y.jsx(a3,{})]}):null},i3=B.memo(r3),l3="_inputWrapper_e3h44_1",s3="_withOpenCommands_e3h44_14",o3="_messageInputWrapper_e3h44_20",u3="_messageInput_e3h44_20",c3="_buttons_e3h44_44",f3="_button_e3h44_44",Ri={inputWrapper:l3,withOpenCommands:s3,messageInputWrapper:o3,messageInput:u3,buttons:c3,button:f3},d3="_audioRecorder_g845f_1",h3="_audioButton_g845f_6",m3="_recorderIcon_g845f_37",p3="_spinning_g845f_60",jr={audioRecorder:d3,audioButton:h3,recorderIcon:m3,spinning:p3},pv=2048,yu=16e3;class g3 extends Gv.Component{audioInput=null;volume=null;leftchannel=[];recorder=null;recordingLength=0;sampleRate=null;mediaStream=null;constructor(a){super(a),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(a){this.mediaStream=a,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(a)}initRecording(a){const i=window.AudioContext||window.webkitAudioContext,s=new i;this.sampleRate=s.sampleRate,this.volume=s.createGain(),this.audioInput=s.createMediaStreamSource(a),this.audioInput.connect(this.volume),this.recorder=s.createScriptProcessor(pv,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(s.destination)}processRecordingInput(a){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const i=a.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(i)),this.recordingLength+=pv}}handleClickSubmitAudio(){const a=b3(this.leftchannel,this.recordingLength),i=v3(a,this.sampleRate||0),s=y3(i);this.props.onAudioRecorded(s),this.handleClickStopAudio()}handleClickStopAudio(){this.setState({recordingState:"none"}),this.audioInput?.disconnect(),this.volume?.disconnect(),this.recorder?.disconnect(),this.mediaStream&&this.mediaStream?.getAudioTracks().forEach(a=>{a.stop()})}render(){return y.jsxs("div",{className:jr.audioRecorder,children:[this.state.recordingState==="none"&&y.jsx("button",{className:K(jr.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:jr.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:jr.audioRecorder,children:[y.jsx("button",{className:K(jr.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:jr.recorderIcon}),y.jsx("button",{className:K(jr.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 y3=n=>{const a=new ArrayBuffer(44+n.length*2),i=new DataView(a);Zo(i,0,"RIFF"),i.setUint32(4,44+n.length*2,!0),Zo(i,8,"WAVE"),Zo(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,yu,!0),i.setUint32(28,yu*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),Zo(i,36,"data"),i.setUint32(40,n.length*2,!0);const s=n.length;let u=44;const f=1;for(let d=0;d<s;d++)i.setInt16(u,n[d]*(32767*f),!0),u+=2;return new Blob([i],{type:"audio/wav"})},Zo=(n,a,i)=>{for(let s=0;s<i.length;s++)n.setUint8(a+s,i.charCodeAt(s))},b3=(n,a)=>{const i=new Float32Array(a);let s=0;const u=n.length;for(let f=0;f<u;f++){const d=n[f];i.set(d,s),s+=d.length}return i},v3=(n,a)=>{if(yu===a)return n;const i=a/yu,s=Math.round(n.length/i),u=new Float32Array(s);let f=0,d=0;for(;f<u.length;){const h=Math.round((f+1)*i);let m=0,g=0;for(let b=d;b<h&&b<n.length;b++)m+=n[b],g++;u[f]=m/g,f++,d=h}return u},_3=({disabled:n,textInput:a,commandsVisible:i,hasCommands:s,onTextInput:u,onTextInputSubmit:f,onAudioRecorded:d})=>{const h=tt(),m=B.useRef(null),{enableSpeechSupport:g}=ut(x=>x.settings);B.useEffect(()=>{m.current?.focus()},[a]);const b=()=>{const x=m.current;x&&a.trim().length>=1&&f(a.trim())&&(x.value="",x.style.height="",x.focus())},_=x=>{x.preventDefault(),b()},A=x=>{const k=x.target.value;u(k),x.target.style.height="";const{scrollHeight:I}=x.target;x.target.style.height=`${I>150?150:I}px`},U=x=>{x.code==="Enter"&&!x.shiftKey?(x.repeat||b(),x.preventDefault()):i&&(x.code==="ArrowUp"||x.code==="ArrowDown")&&x.preventDefault()};return y.jsxs("form",{className:K(Ri.inputWrapper,i&&Ri.withOpenCommands,"chat__textInput"),onSubmit:_,children:[y.jsx("div",{className:Ri.messageInputWrapper,children:y.jsx("textarea",{id:"user_input",ref:m,className:Ri.messageInput,tabIndex:0,placeholder:h("message-input-placeholder"),value:a,onChange:A,onKeyDown:U,"aria-label":h("message-input-label"),"aria-controls":s?"command-list":void 0,"aria-haspopup":s?"listbox":void 0})}),y.jsx("div",{className:K(Ri.buttons,"chat__buttons"),children:a.length||!g||navigator.mediaDevices===void 0?y.jsx("button",{className:K(Ri.button,"chat__button"),type:"submit","aria-label":h("message-input.actions.submit.label"),"data-title":h("message-input.actions.submit.label"),tabIndex:0,disabled:n,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"})})}):g&&navigator.mediaDevices!==void 0&&y.jsx(g3,{translate:h,onAudioRecorded:d})})]})},E3="_quickReplies_83npe_1",S3="_quickReply_83npe_9",gv={quickReplies:E3,quickReply:S3},T3=({quickReplies:n,onQuickReplyClick:a})=>n.length?y.jsx("div",{className:K(gv.quickReplies,"chat__quickReplies"),children:n.map(i=>y.jsx(Mu,{tabIndex:0,className:K(gv.quickReply,"chat__button","chat__quickReply"),onClick:()=>a(i),children:i.label},i.label))}):null,yv=5e3,A3=1e3,O3=({isBotTyping:n,quickReplies:a,numberOfMessagesFromGuest:i,commands:s,onTextInput:u,onQuickReplyClick:f,onAudioRecorded:d})=>{const[h,m]=B.useState(""),[g,b]=B.useState(!1),[_,A]=B.useState(!1),U=B.useRef(0),x=B.useRef(0);B.useEffect(()=>{if(g&&!n){const E=U.current?Date.now()-U.current:0;E>yv?b(!1):setTimeout(()=>{b(!1)},yv-E)}},[g,n]),B.useEffect(()=>{g&&(U.current=Date.now())},[g]);const k=E=>{const C=Date.now()-x.current<A3;return _?!1:n||C?(b(!0),!1):(u(E),m(""),x.current=Date.now(),!0)},I=E=>{m(E+" ")};return y.jsxs("div",{className:K(xw.inputContainer),children:[y.jsx(T3,{quickReplies:a,onQuickReplyClick:f}),y.jsx(ww,{visible:g}),!g&&y.jsx(i3,{numberOfMessagesFromGuest:i}),!!s?.length&&y.jsx(jw,{text:h,commands:s,onSelectCommand:I,onVisibilityChange:A}),y.jsx(_3,{textInput:h,disabled:g,commandsVisible:_,hasCommands:!!s?.length,onTextInput:m,onTextInputSubmit:k,onAudioRecorded:d}),!!s?.length&&y.jsx(Iw,{commands:s,onSelectCommand:m})]})},x3=({clientName:n,messages:a,quickReplies:i,isBotTyping:s,drawerContentUrl:u,onMessageFromUser:f,onQuickReplyClick:d,onButtonClick:h,onLinkClick:m,onAudioRecorded:g,onTranscriptExport:b,onTranscriptItemReaction:_})=>{const A=La(),U=ut(H=>H.connection.connectionState),{enableTranscriptExportEmail:x,commands:k}=ut(H=>H.settings),{showTranscriptMailOverlay:I,conversationRating:E}=ut(H=>H.chat),C=a.filter(H=>H.sender.type===pu.GUEST).length;B.useEffect(()=>{if(U===kr.CONNECTED){const H=Su.parse(window.location.search);A(a_(n,H))}},[n,U,A]);const S=()=>{A(n_())};return y.jsxs("div",{className:_d.container,children:[y.jsxs("div",{className:K([_d.chatcontent,(I||E?.opener)&&_d.accessabilityHidden]),children:[y.jsx(iw,{messages:a,isBotTyping:s,commands:k,onButtonClick:h,onLinkClick:m,onTranscriptItemReaction:_}),y.jsx(O3,{isBotTyping:s,quickReplies:s?[]:i,numberOfMessagesFromGuest:C,commands:k,onQuickReplyClick:d,onTextInput:f,onAudioRecorded:g}),y.jsx(gw,{})]}),x&&y.jsx(Aw,{visible:!!I,onEmailExport:b,onClose:S}),y.jsx(dw,{contentUrl:u})]})},C3=n=>{const{messages:a,quickReplies:i,isBotTyping:s,drawerContentUrl:u}=n.chat;return{messages:a,quickReplies:i,isBotTyping:s,drawerContentUrl:u}},R3=n=>({onRestartChat:()=>n(ls()),onMessageFromUser:a=>n(N1(a)),onAudioRecorded:a=>n(qO(a)),onActionFromUser:a=>n(a),onQuickReplyClick:a=>n(w1(a)),onNluEvent:a=>n(U1(a)),onButtonClick:a=>n(QO(a)),onLinkClick:a=>n(j1(a)),onTranscriptExport:a=>n(VO(a)),onTranscriptItemReaction:(a,i)=>{n(Te.Actions.transcriptItemGuestReaction(a,i?.type||null,i?.category,i?.comment))}}),w3=fT(C3,R3)(x3),A_=()=>{const[n,a]=B.useState(!1);return B.useEffect(()=>{a((()=>{try{return window.self!==window.top}catch{return!0}})())},[]),n},N3=n=>a=>{const i=a.key;(i==="ArrowDown"||i==="ArrowRight"||i==="Enter"||i===" "||i==="Space")&&(a.stopPropagation(),n())},M3=({onClick:n})=>{const a=tt();return A_()?y.jsx("button",{className:"tooltip--bottom-left","aria-label":a("header.close-chat"),"data-title":a("header.close-chat"),tabIndex:0,onClick:n,onKeyDown:N3(n),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},D3="_header_3gvbz_1",L3="_logoContainer_3gvbz_14",B3="_logo_3gvbz_14",U3="_actions_3gvbz_28",j3="_active_3gvbz_43",H3="_menuContainer_3gvbz_56",I3="_menu_3gvbz_56",z3="_divider_3gvbz_86",or={header:D3,logoContainer:L3,logo:B3,actions:U3,active:j3,menuContainer:H3,menu:I3,divider:z3},G3=({icon:n})=>{switch(n){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",{})}},k3=B.forwardRef(({selected:n,item:a,onClick:i},s)=>{const u=tt(),f=d=>{d.preventDefault(),i()};return y.jsx("li",{"aria-selected":n,role:"option",className:a.withDivider?or.divider:void 0,children:y.jsxs("a",{ref:s,type:"button",role:"button",tabIndex:-1,onClick:f,children:[y.jsx(G3,{icon:a.icon}),y.jsx("span",{children:u(`header.menu.${a.id}`)})]})})}),q3=(n,a)=>{const i=A_(),{menuItems:s,enableStandaloneView:u,enableTranscriptExportPdf:f,enableTranscriptExportEmail:d}=ut(g=>g.settings),h=ut(g=>g.chat.conversationRating.enabled);return B.useMemo(()=>{const g=[],b=s.filter(({visibility:_})=>n?_==="always"||_==="chat-only":_==="always"||_==="start-screen-only");if(n&&(g.push({id:"restart-chat",type:"restart-chat",icon:"arrow-counter-clockwise",visibility:"chat-only"}),i&&u&&g.push({id:"expand-chat-window",type:"expand-chat-window",icon:"expand",visibility:"always"}),a&&f&&g.push({id:"download-transcript",type:"download-transcript",icon:"download",visibility:"chat-only"}),a&&d&&g.push({id:"send-transcript",type:"send-transcript",icon:"mail",visibility:"chat-only"}),a&&h&&g.push({id:"rate-conversation",type:"rate-conversation",icon:"star",visibility:"chat-only"}),g.length>0&&b.length)){const _=g.pop();_&&s.length&&g.push({..._,withDivider:!0})}return g.push(...b),g},[n,a,f,d,u,h,i,s])},F3=({chatStarted:n,hasGuestMessages:a})=>{const i=La(),s=tt(),[u,f]=B.useState(!1),[d,h]=B.useState(-1),m=B.useRef(null),g=B.useRef(null),b=B.useRef([]),_=q3(n,a);B.useEffect(()=>{b.current[d]?.focus()},[d]);const A=B.useCallback(()=>{i(a?mu("RESTART_CHAT"):ls()),f(!1),h(0)},[a,i]),U=B.useCallback(I=>{switch(I.type){case"restart-chat":A();break;case"expand-chat-window":window.open(window.location.href,"_blank");break;case"download-transcript":i(YO());break;case"send-transcript":i(n_());break;case"rate-conversation":i(mu("MENU"));break;case"link":i(j1(I.url));break;case"action":i(JSON.parse(JSON.stringify(I.action)));break}f(!1)},[i,A,f]);B.useEffect(()=>{const I=E=>{if(u)switch(E.key){case"Enter":E.preventDefault(),U(_[d]);break;case"ArrowUp":h(C=>C>0?C-1:_.length-1);break;case"ArrowDown":h(C=>C<_.length-1?C+1:0);break;case"Escape":f(!1);break;case"Tab":d>-1&&f(!1);break}};return document.addEventListener("keydown",I),()=>{document.removeEventListener("keydown",I)}},[u,d,_,h,f,U]),B.useEffect(()=>{u||h(-1)},[u,d]),lm(g,()=>f(!1));const x=()=>{f(I=>!I)},k=()=>{setTimeout(()=>{const I=document.activeElement;g.current&&!g.current.contains(I)&&f(!1)},0)};return _.length?y.jsxs("div",{className:K(or.menuContainer),ref:g,children:[y.jsx("button",{ref:m,className:K(u&&or.active,u?"tooltip-hidden":"tooltip--bottom-left"),"aria-label":s("header.menu.title"),"data-title":s("header.menu.title"),onClick:x,onBlur:k,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"})})}),u&&y.jsx("nav",{className:or.menu,"aria-label":s("header.menu.title"),children:y.jsx("ul",{tabIndex:0,children:_.map((I,E)=>y.jsx(k3,{ref:C=>{b.current[E]=C},selected:d===E,item:I,onClick:()=>U(I)},I.id))})})]}):null},bv=({className:n,chatStarted:a,...i})=>{const s=La(),u=ut(h=>h.chat.conversationRating),f=ut(h=>h.chat.messages.some(m=>m.sender.type===Te.UserType.GUEST)),d=()=>{u.enabled&&!u.opener&&f?s(mu("CLOSE_CHAT")):s(t_())};return y.jsxs("div",{className:K([or.header,n]),...i,children:[y.jsx("div",{className:or.logoContainer,children:y.jsx("div",{className:or.logo})}),y.jsxs("div",{className:or.actions,children:[y.jsx(F3,{chatStarted:a,hasGuestMessages:f}),y.jsx(M3,{onClick:d})]})]})},V3="_chatwindow_rkbir_1",Y3="_chatwindowWithAside_rkbir_21",vv={chatwindow:V3,chatwindowWithAside:Y3},O_=()=>{const[n,a]=B.useState(!1);return B.useEffect(()=>{const i=window.matchMedia("(max-width: 1023px)"),s=()=>a(i.matches);return s(),i.addEventListener("change",s),()=>i.removeEventListener("change",s)},[]),n},P3="_sourceInfos_vei0l_1",X3="_waitForLoading_vei0l_24",Z3="_loadingContent_vei0l_28",Q3="_sourceHeader_vei0l_37",K3="_sourceHeaderIcon_vei0l_57",$3="_sourceContent_vei0l_61",W3="_openSourceButton_vei0l_69",J3="_sourceButtonLabel_vei0l_79",eN="_closeSourceInfosButton_vei0l_101",tN="_loadingSourceInfos_vei0l_125",nN="_loading_vei0l_28",aN="_loadingError_vei0l_139",rN="_highlightLoadingInfo_vei0l_155",iN="_highlightLoadingInfoInnerContainer_vei0l_169",lN="_highlightLoadingInfoContent_vei0l_178",sN="_highlightLoadingInfoCloseIcon_vei0l_198",oN="_highlightLoader_vei0l_203",uN="_highlightLoaderLoading_vei0l_210",xt={sourceInfos:P3,waitForLoading:X3,loadingContent:Z3,sourceHeader:Q3,sourceHeaderIcon:K3,sourceContent:$3,openSourceButton:W3,sourceButtonLabel:J3,closeSourceInfosButton:eN,loadingSourceInfos:tN,loading:nN,loadingError:aN,highlightLoadingInfo:rN,highlightLoadingInfoInnerContainer:iN,highlightLoadingInfoContent:lN,highlightLoadingInfoCloseIcon:sN,highlightLoader:oN,highlightLoaderLoading:uN},cN=({onClick:n})=>{const a=tt();return y.jsx("button",{className:K(xt.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":a("source-infos.close"),"data-title":a("source-infos.close"),tabIndex:0,onClick:n,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"})})})},fN=B.forwardRef(({sourceInfos:n,onClose:a,...i},s)=>y.jsxs("div",{className:xt.sourceHeader,...i,ref:s,children:[y.jsx("div",{children:n?y.jsx("p",{id:"source-info-title",children:n.title}):y.jsx("p",{children:" "})}),y.jsx(cN,{onClick:a})]})),dN=({loading:n})=>y.jsx("div",{className:xt.highlightLoader,children:n&&y.jsx("div",{className:xt.highlightLoaderLoading})});/*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */const{entries:x_,setPrototypeOf:_v,isFrozen:hN,getPrototypeOf:mN,getOwnPropertyDescriptor:pN}=Object;let{freeze:kt,seal:Cn,create:_h}=Object,{apply:Eh,construct:Sh}=typeof Reflect<"u"&&Reflect;kt||(kt=function(a){return a});Cn||(Cn=function(a){return a});Eh||(Eh=function(a,i){for(var s=arguments.length,u=new Array(s>2?s-2:0),f=2;f<s;f++)u[f-2]=arguments[f];return a.apply(i,u)});Sh||(Sh=function(a){for(var i=arguments.length,s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];return new a(...s)});const Qo=qt(Array.prototype.forEach),gN=qt(Array.prototype.lastIndexOf),Ev=qt(Array.prototype.pop),Vl=qt(Array.prototype.push),yN=qt(Array.prototype.splice),nu=qt(String.prototype.toLowerCase),Fd=qt(String.prototype.toString),Vd=qt(String.prototype.match),Yl=qt(String.prototype.replace),bN=qt(String.prototype.indexOf),vN=qt(String.prototype.trim),zn=qt(Object.prototype.hasOwnProperty),It=qt(RegExp.prototype.test),Pl=_N(TypeError);function qt(n){return function(a){a instanceof RegExp&&(a.lastIndex=0);for(var i=arguments.length,s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];return Eh(n,a,s)}}function _N(n){return function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return Sh(n,i)}}function Ce(n,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:nu;_v&&_v(n,null);let s=a.length;for(;s--;){let u=a[s];if(typeof u=="string"){const f=i(u);f!==u&&(hN(a)||(a[s]=f),u=f)}n[u]=!0}return n}function EN(n){for(let a=0;a<n.length;a++)zn(n,a)||(n[a]=null);return n}function Ca(n){const a=_h(null);for(const[i,s]of x_(n))zn(n,i)&&(Array.isArray(s)?a[i]=EN(s):s&&typeof s=="object"&&s.constructor===Object?a[i]=Ca(s):a[i]=s);return a}function Xl(n,a){for(;n!==null;){const s=pN(n,a);if(s){if(s.get)return qt(s.get);if(typeof s.value=="function")return qt(s.value)}n=mN(n)}function i(){return null}return i}const Sv=kt(["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"]),Yd=kt(["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"]),Pd=kt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),SN=kt(["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"]),Xd=kt(["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"]),TN=kt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Tv=kt(["#text"]),Av=kt(["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=kt(["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"]),Ov=kt(["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"]),Ko=kt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),AN=Cn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ON=Cn(/<%[\w\W]*|[\w\W]*%>/gm),xN=Cn(/\$\{[\w\W]*/gm),CN=Cn(/^data-[\-\w.\u00B7-\uFFFF]+$/),RN=Cn(/^aria-[\-\w]+$/),C_=Cn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),wN=Cn(/^(?:\w+script|data):/i),NN=Cn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),R_=Cn(/^html$/i),MN=Cn(/^[a-z][.\w]*(-[.\w]+)+$/i);var xv=Object.freeze({__proto__:null,ARIA_ATTR:RN,ATTR_WHITESPACE:NN,CUSTOM_ELEMENT:MN,DATA_ATTR:CN,DOCTYPE_NAME:R_,ERB_EXPR:ON,IS_ALLOWED_URI:C_,IS_SCRIPT_OR_DATA:wN,MUSTACHE_EXPR:AN,TMPLIT_EXPR:xN});const Zl={element:1,text:3,progressingInstruction:7,comment:8,document:9},DN=function(){return typeof window>"u"?null:window},LN=function(a,i){if(typeof a!="object"||typeof a.createPolicy!="function")return null;let s=null;const u="data-tt-policy-suffix";i&&i.hasAttribute(u)&&(s=i.getAttribute(u));const f="dompurify"+(s?"#"+s:"");try{return a.createPolicy(f,{createHTML(d){return d},createScriptURL(d){return d}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},Cv=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function w_(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:DN();const a=ie=>w_(ie);if(a.version="3.3.0",a.removed=[],!n||!n.document||n.document.nodeType!==Zl.document||!n.Element)return a.isSupported=!1,a;let{document:i}=n;const s=i,u=s.currentScript,{DocumentFragment:f,HTMLTemplateElement:d,Node:h,Element:m,NodeFilter:g,NamedNodeMap:b=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:_,DOMParser:A,trustedTypes:U}=n,x=m.prototype,k=Xl(x,"cloneNode"),I=Xl(x,"remove"),E=Xl(x,"nextSibling"),C=Xl(x,"childNodes"),S=Xl(x,"parentNode");if(typeof d=="function"){const ie=i.createElement("template");ie.content&&ie.content.ownerDocument&&(i=ie.content.ownerDocument)}let H,N="";const{implementation:Z,createNodeIterator:X,createDocumentFragment:te,getElementsByTagName:de}=i,{importNode:ye}=s;let re=Cv();a.isSupported=typeof x_=="function"&&typeof S=="function"&&Z&&Z.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:pe,ERB_EXPR:ce,TMPLIT_EXPR:Xe,DATA_ATTR:Ne,ARIA_ATTR:G,IS_SCRIPT_OR_DATA:$,ATTR_WHITESPACE:ne,CUSTOM_ELEMENT:Se}=xv;let{IS_ALLOWED_URI:Ae}=xv,O=null;const q=Ce({},[...Sv,...Yd,...Pd,...Xd,...Tv]);let P=null;const W=Ce({},[...Av,...Zd,...Ov,...Ko]);let J=Object.seal(_h(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),fe=null,_e=null;const We=Object.seal(_h(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ge=!0,$t=!0,Ba=!1,vt=!0,jt=!1,hn=!0,Nn=!1,fr=!1,Ui=!1,ta=!1,Ua=!1,ja=!1,Yr=!0,ss=!1;const Bu="user-content-";let Ct=!0,dr=!1,na={},aa=null;const hr=Ce({},["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 os=null;const ji=Ce({},["audio","video","img","source","image","track"]);let Hi=null;const us=Ce({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qn="http://www.w3.org/1998/Math/MathML",St="http://www.w3.org/2000/svg",Tt="http://www.w3.org/1999/xhtml";let ct=Tt,Ii=!1,zi=null;const Uu=Ce({},[qn,St,Tt],Fd);let ra=Ce({},["mi","mo","mn","ms","mtext"]),ia=Ce({},["annotation-xml"]);const Pr=Ce({},["title","style","font","a","script"]);let Wt=null;const Xr=["application/xhtml+xml","text/html"],mr="text/html";let ft=null,la=null;const Gi=i.createElement("form"),Ha=function(R){return R instanceof RegExp||R instanceof Function},ki=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(la&&la===R)){if((!R||typeof R!="object")&&(R={}),R=Ca(R),Wt=Xr.indexOf(R.PARSER_MEDIA_TYPE)===-1?mr:R.PARSER_MEDIA_TYPE,ft=Wt==="application/xhtml+xml"?Fd:nu,O=zn(R,"ALLOWED_TAGS")?Ce({},R.ALLOWED_TAGS,ft):q,P=zn(R,"ALLOWED_ATTR")?Ce({},R.ALLOWED_ATTR,ft):W,zi=zn(R,"ALLOWED_NAMESPACES")?Ce({},R.ALLOWED_NAMESPACES,Fd):Uu,Hi=zn(R,"ADD_URI_SAFE_ATTR")?Ce(Ca(us),R.ADD_URI_SAFE_ATTR,ft):us,os=zn(R,"ADD_DATA_URI_TAGS")?Ce(Ca(ji),R.ADD_DATA_URI_TAGS,ft):ji,aa=zn(R,"FORBID_CONTENTS")?Ce({},R.FORBID_CONTENTS,ft):hr,fe=zn(R,"FORBID_TAGS")?Ce({},R.FORBID_TAGS,ft):Ca({}),_e=zn(R,"FORBID_ATTR")?Ce({},R.FORBID_ATTR,ft):Ca({}),na=zn(R,"USE_PROFILES")?R.USE_PROFILES:!1,Ge=R.ALLOW_ARIA_ATTR!==!1,$t=R.ALLOW_DATA_ATTR!==!1,Ba=R.ALLOW_UNKNOWN_PROTOCOLS||!1,vt=R.ALLOW_SELF_CLOSE_IN_ATTR!==!1,jt=R.SAFE_FOR_TEMPLATES||!1,hn=R.SAFE_FOR_XML!==!1,Nn=R.WHOLE_DOCUMENT||!1,ta=R.RETURN_DOM||!1,Ua=R.RETURN_DOM_FRAGMENT||!1,ja=R.RETURN_TRUSTED_TYPE||!1,Ui=R.FORCE_BODY||!1,Yr=R.SANITIZE_DOM!==!1,ss=R.SANITIZE_NAMED_PROPS||!1,Ct=R.KEEP_CONTENT!==!1,dr=R.IN_PLACE||!1,Ae=R.ALLOWED_URI_REGEXP||C_,ct=R.NAMESPACE||Tt,ra=R.MATHML_TEXT_INTEGRATION_POINTS||ra,ia=R.HTML_INTEGRATION_POINTS||ia,J=R.CUSTOM_ELEMENT_HANDLING||{},R.CUSTOM_ELEMENT_HANDLING&&Ha(R.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(J.tagNameCheck=R.CUSTOM_ELEMENT_HANDLING.tagNameCheck),R.CUSTOM_ELEMENT_HANDLING&&Ha(R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(J.attributeNameCheck=R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),R.CUSTOM_ELEMENT_HANDLING&&typeof R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(J.allowCustomizedBuiltInElements=R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),jt&&($t=!1),Ua&&(ta=!0),na&&(O=Ce({},Tv),P=[],na.html===!0&&(Ce(O,Sv),Ce(P,Av)),na.svg===!0&&(Ce(O,Yd),Ce(P,Zd),Ce(P,Ko)),na.svgFilters===!0&&(Ce(O,Pd),Ce(P,Zd),Ce(P,Ko)),na.mathMl===!0&&(Ce(O,Xd),Ce(P,Ov),Ce(P,Ko))),R.ADD_TAGS&&(typeof R.ADD_TAGS=="function"?We.tagCheck=R.ADD_TAGS:(O===q&&(O=Ca(O)),Ce(O,R.ADD_TAGS,ft))),R.ADD_ATTR&&(typeof R.ADD_ATTR=="function"?We.attributeCheck=R.ADD_ATTR:(P===W&&(P=Ca(P)),Ce(P,R.ADD_ATTR,ft))),R.ADD_URI_SAFE_ATTR&&Ce(Hi,R.ADD_URI_SAFE_ATTR,ft),R.FORBID_CONTENTS&&(aa===hr&&(aa=Ca(aa)),Ce(aa,R.FORBID_CONTENTS,ft)),Ct&&(O["#text"]=!0),Nn&&Ce(O,["html","head","body"]),O.table&&(Ce(O,["tbody"]),delete fe.tbody),R.TRUSTED_TYPES_POLICY){if(typeof R.TRUSTED_TYPES_POLICY.createHTML!="function")throw Pl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof R.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Pl('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');H=R.TRUSTED_TYPES_POLICY,N=H.createHTML("")}else H===void 0&&(H=LN(U,u)),H!==null&&typeof N=="string"&&(N=H.createHTML(""));kt&&kt(R),la=R}},qi=Ce({},[...Yd,...Pd,...SN]),Fi=Ce({},[...Xd,...TN]),cs=function(R){let Q=S(R);(!Q||!Q.tagName)&&(Q={namespaceURI:ct,tagName:"template"});const ee=nu(R.tagName),Ie=nu(Q.tagName);return zi[R.namespaceURI]?R.namespaceURI===St?Q.namespaceURI===Tt?ee==="svg":Q.namespaceURI===qn?ee==="svg"&&(Ie==="annotation-xml"||ra[Ie]):!!qi[ee]:R.namespaceURI===qn?Q.namespaceURI===Tt?ee==="math":Q.namespaceURI===St?ee==="math"&&ia[Ie]:!!Fi[ee]:R.namespaceURI===Tt?Q.namespaceURI===St&&!ia[Ie]||Q.namespaceURI===qn&&!ra[Ie]?!1:!Fi[ee]&&(Pr[ee]||!qi[ee]):!!(Wt==="application/xhtml+xml"&&zi[R.namespaceURI]):!1},Ft=function(R){Vl(a.removed,{element:R});try{S(R).removeChild(R)}catch{I(R)}},Mn=function(R,Q){try{Vl(a.removed,{attribute:Q.getAttributeNode(R),from:Q})}catch{Vl(a.removed,{attribute:null,from:Q})}if(Q.removeAttribute(R),R==="is")if(ta||Ua)try{Ft(Q)}catch{}else try{Q.setAttribute(R,"")}catch{}},Vi=function(R){let Q=null,ee=null;if(Ui)R="<remove></remove>"+R;else{const Ee=Vd(R,/^[\r\n\t ]+/);ee=Ee&&Ee[0]}Wt==="application/xhtml+xml"&&ct===Tt&&(R='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+R+"</body></html>");const Ie=H?H.createHTML(R):R;if(ct===Tt)try{Q=new A().parseFromString(Ie,Wt)}catch{}if(!Q||!Q.documentElement){Q=Z.createDocument(ct,"template",null);try{Q.documentElement.innerHTML=Ii?N:Ie}catch{}}const nt=Q.body||Q.documentElement;return R&&ee&&nt.insertBefore(i.createTextNode(ee),nt.childNodes[0]||null),ct===Tt?de.call(Q,Nn?"html":"body")[0]:Nn?Q.documentElement:nt},Yi=function(R){return X.call(R.ownerDocument||R,R,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},mn=function(R){return R instanceof _&&(typeof R.nodeName!="string"||typeof R.textContent!="string"||typeof R.removeChild!="function"||!(R.attributes instanceof b)||typeof R.removeAttribute!="function"||typeof R.setAttribute!="function"||typeof R.namespaceURI!="string"||typeof R.insertBefore!="function"||typeof R.hasChildNodes!="function")},dt=function(R){return typeof h=="function"&&R instanceof h};function Je(ie,R,Q){Qo(ie,ee=>{ee.call(a,R,Q,la)})}const sa=function(R){let Q=null;if(Je(re.beforeSanitizeElements,R,null),mn(R))return Ft(R),!0;const ee=ft(R.nodeName);if(Je(re.uponSanitizeElement,R,{tagName:ee,allowedTags:O}),hn&&R.hasChildNodes()&&!dt(R.firstElementChild)&&It(/<[/\w!]/g,R.innerHTML)&&It(/<[/\w!]/g,R.textContent)||R.nodeType===Zl.progressingInstruction||hn&&R.nodeType===Zl.comment&&It(/<[/\w]/g,R.data))return Ft(R),!0;if(!(We.tagCheck instanceof Function&&We.tagCheck(ee))&&(!O[ee]||fe[ee])){if(!fe[ee]&&fs(ee)&&(J.tagNameCheck instanceof RegExp&&It(J.tagNameCheck,ee)||J.tagNameCheck instanceof Function&&J.tagNameCheck(ee)))return!1;if(Ct&&!aa[ee]){const Ie=S(R)||R.parentNode,nt=C(R)||R.childNodes;if(nt&&Ie){const Ee=nt.length;for(let Rt=Ee-1;Rt>=0;--Rt){const pn=k(nt[Rt],!0);pn.__removalCount=(R.__removalCount||0)+1,Ie.insertBefore(pn,E(R))}}}return Ft(R),!0}return R instanceof m&&!cs(R)||(ee==="noscript"||ee==="noembed"||ee==="noframes")&&It(/<\/no(script|embed|frames)/i,R.innerHTML)?(Ft(R),!0):(jt&&R.nodeType===Zl.text&&(Q=R.textContent,Qo([pe,ce,Xe],Ie=>{Q=Yl(Q,Ie," ")}),R.textContent!==Q&&(Vl(a.removed,{element:R.cloneNode()}),R.textContent=Q)),Je(re.afterSanitizeElements,R,null),!1)},Zr=function(R,Q,ee){if(Yr&&(Q==="id"||Q==="name")&&(ee in i||ee in Gi))return!1;if(!($t&&!_e[Q]&&It(Ne,Q))){if(!(Ge&&It(G,Q))){if(!(We.attributeCheck instanceof Function&&We.attributeCheck(Q,R))){if(!P[Q]||_e[Q]){if(!(fs(R)&&(J.tagNameCheck instanceof RegExp&&It(J.tagNameCheck,R)||J.tagNameCheck instanceof Function&&J.tagNameCheck(R))&&(J.attributeNameCheck instanceof RegExp&&It(J.attributeNameCheck,Q)||J.attributeNameCheck instanceof Function&&J.attributeNameCheck(Q,R))||Q==="is"&&J.allowCustomizedBuiltInElements&&(J.tagNameCheck instanceof RegExp&&It(J.tagNameCheck,ee)||J.tagNameCheck instanceof Function&&J.tagNameCheck(ee))))return!1}else if(!Hi[Q]){if(!It(Ae,Yl(ee,ne,""))){if(!((Q==="src"||Q==="xlink:href"||Q==="href")&&R!=="script"&&bN(ee,"data:")===0&&os[R])){if(!(Ba&&!It($,Yl(ee,ne,"")))){if(ee)return!1}}}}}}}return!0},fs=function(R){return R!=="annotation-xml"&&Vd(R,Se)},ds=function(R){Je(re.beforeSanitizeAttributes,R,null);const{attributes:Q}=R;if(!Q||mn(R))return;const ee={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:P,forceKeepAttr:void 0};let Ie=Q.length;for(;Ie--;){const nt=Q[Ie],{name:Ee,namespaceURI:Rt,value:pn}=nt,Vt=ft(Ee),Fn=pn;let _t=Ee==="value"?Fn:vN(Fn);if(ee.attrName=Vt,ee.attrValue=_t,ee.keepAttr=!0,ee.forceKeepAttr=void 0,Je(re.uponSanitizeAttribute,R,ee),_t=ee.attrValue,ss&&(Vt==="id"||Vt==="name")&&(Mn(Ee,R),_t=Bu+_t),hn&&It(/((--!?|])>)|<\/(style|title|textarea)/i,_t)){Mn(Ee,R);continue}if(Vt==="attributename"&&Vd(_t,"href")){Mn(Ee,R);continue}if(ee.forceKeepAttr)continue;if(!ee.keepAttr){Mn(Ee,R);continue}if(!vt&&It(/\/>/i,_t)){Mn(Ee,R);continue}jt&&Qo([pe,ce,Xe],Xi=>{_t=Yl(_t,Xi," ")});const Pi=ft(R.nodeName);if(!Zr(Pi,Vt,_t)){Mn(Ee,R);continue}if(H&&typeof U=="object"&&typeof U.getAttributeType=="function"&&!Rt)switch(U.getAttributeType(Pi,Vt)){case"TrustedHTML":{_t=H.createHTML(_t);break}case"TrustedScriptURL":{_t=H.createScriptURL(_t);break}}if(_t!==Fn)try{Rt?R.setAttributeNS(Rt,Ee,_t):R.setAttribute(Ee,_t),mn(R)?Ft(R):Ev(a.removed)}catch{Mn(Ee,R)}}Je(re.afterSanitizeAttributes,R,null)},hs=function ie(R){let Q=null;const ee=Yi(R);for(Je(re.beforeSanitizeShadowDOM,R,null);Q=ee.nextNode();)Je(re.uponSanitizeShadowNode,Q,null),sa(Q),ds(Q),Q.content instanceof f&&ie(Q.content);Je(re.afterSanitizeShadowDOM,R,null)};return a.sanitize=function(ie){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q=null,ee=null,Ie=null,nt=null;if(Ii=!ie,Ii&&(ie="<!-->"),typeof ie!="string"&&!dt(ie))if(typeof ie.toString=="function"){if(ie=ie.toString(),typeof ie!="string")throw Pl("dirty is not a string, aborting")}else throw Pl("toString is not a function");if(!a.isSupported)return ie;if(fr||ki(R),a.removed=[],typeof ie=="string"&&(dr=!1),dr){if(ie.nodeName){const pn=ft(ie.nodeName);if(!O[pn]||fe[pn])throw Pl("root node is forbidden and cannot be sanitized in-place")}}else if(ie instanceof h)Q=Vi("<!---->"),ee=Q.ownerDocument.importNode(ie,!0),ee.nodeType===Zl.element&&ee.nodeName==="BODY"||ee.nodeName==="HTML"?Q=ee:Q.appendChild(ee);else{if(!ta&&!jt&&!Nn&&ie.indexOf("<")===-1)return H&&ja?H.createHTML(ie):ie;if(Q=Vi(ie),!Q)return ta?null:ja?N:""}Q&&Ui&&Ft(Q.firstChild);const Ee=Yi(dr?ie:Q);for(;Ie=Ee.nextNode();)sa(Ie),ds(Ie),Ie.content instanceof f&&hs(Ie.content);if(dr)return ie;if(ta){if(Ua)for(nt=te.call(Q.ownerDocument);Q.firstChild;)nt.appendChild(Q.firstChild);else nt=Q;return(P.shadowroot||P.shadowrootmode)&&(nt=ye.call(s,nt,!0)),nt}let Rt=Nn?Q.outerHTML:Q.innerHTML;return Nn&&O["!doctype"]&&Q.ownerDocument&&Q.ownerDocument.doctype&&Q.ownerDocument.doctype.name&&It(R_,Q.ownerDocument.doctype.name)&&(Rt="<!DOCTYPE "+Q.ownerDocument.doctype.name+`>
112
- `+Rt),jt&&Qo([pe,ce,Xe],pn=>{Rt=Yl(Rt,pn," ")}),H&&ja?H.createHTML(Rt):Rt},a.setConfig=function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ki(ie),fr=!0},a.clearConfig=function(){la=null,fr=!1},a.isValidAttribute=function(ie,R,Q){la||ki({});const ee=ft(ie),Ie=ft(R);return Zr(ee,Ie,Q)},a.addHook=function(ie,R){typeof R=="function"&&Vl(re[ie],R)},a.removeHook=function(ie,R){if(R!==void 0){const Q=gN(re[ie],R);return Q===-1?void 0:yN(re[ie],Q,1)[0]}return Ev(re[ie])},a.removeHooks=function(ie){re[ie]=[]},a.removeAllHooks=function(){re=Cv()},a}var BN=w_();const UN=({onClose:n})=>{const a=tt();return y.jsxs("div",{className:xt.highlightLoadingInfo,onClick:n,children:[y.jsx("div",{className:xt.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:xt.highlightLoadingInfoInnerContainer,children:[y.jsxs("div",{className:xt.highlightLoadingInfoContent,children:[y.jsx("h3",{children:a("source-infos.highlight-loading.title")}),y.jsx("p",{children:a("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"})})]})]})},jN=({title:n,href:a,children:i})=>y.jsx("a",{href:a,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),HN=({className:n,children:a,...i})=>y.jsx("a",{className:K(ns.button,ns.buttonDefault,n),type:"button",role:"button",...i,children:a}),IN=n=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,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"})}),zN=({type:n,...a})=>{switch(n){case"WEBSITE":return y.jsx(v_,{...a});case"PDF":return y.jsx(b_,{...a});case"DOCX":return y.jsx(g_,{...a});case"TEXT":return y.jsx(IN,{...a});default:return y.jsx(y_,{...a})}},GN=({url:n,knowledgeBaseType:a})=>{const i=tt();return y.jsx(HN,{className:xt.openSourceButton,href:n,target:"_blank",children:y.jsxs("div",{className:xt.sourceButtonLabel,children:[y.jsx("div",{className:xt.sourceHeaderIcon,children:y.jsx(zN,{type:a})}),y.jsx("p",{children:i("source-infos.open-source")})]})})},kN=({sourceInfos:{content:n,url:a,knowledgeBaseType:i,highlighted:s}})=>{const[u,f]=B.useState(!s);B.useEffect(()=>{s&&f(!1)},[s]);const d=BN.sanitize(n,{USE_PROFILES:{html:!0}});return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:K(xt.sourceContent,E_.markdown),children:[y.jsx(wa,{options:{overrides:{a:jN}},children:d}),u&&y.jsx(UN,{onClose:()=>f(!1)})]}),y.jsx(GN,{url:a,knowledgeBaseType:i})]})},qN=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,FN=()=>{const n=tt();return y.jsxs("div",{className:xt.loadingError,children:[y.jsx("h1",{children:n("source-infos.error.title")}),y.jsx("img",{src:qN,title:n("source-infos.error.title")}),y.jsx("p",{children:n("source-infos.error.info")})]})},VN=()=>y.jsx("div",{className:xt.loadingSourceInfos,children:y.jsx("svg",{className:xt.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 YN({sourceInfos:n,onClose:a,threshold:i=100}){const s=B.useRef(null),[u,f]=B.useState(0),[d,h]=B.useState(!1),m=B.useRef(null),g=B.useRef(null),b=B.useCallback(x=>{m.current=x,h(!0)},[]),_=B.useCallback(x=>{if(m.current!==null&&d){const k=x-m.current;k>0&&f(k)}},[d]),A=B.useCallback(()=>{h(!1),u>i&&a(),f(0),m.current=null},[u,i,a]),U=B.useCallback(x=>{const k=N=>b(N.touches[0].clientY),I=N=>_(N.touches[0].clientY),E=()=>A(),C=N=>{N.preventDefault(),b(N.clientY),window.addEventListener("mousemove",S),window.addEventListener("mouseup",H)},S=N=>_(N.clientY),H=()=>{A(),window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",H)};x.addEventListener("touchstart",k),x.addEventListener("touchmove",I),x.addEventListener("touchend",E),x.addEventListener("mousedown",C),g.current=()=>{x.removeEventListener("touchstart",k),x.removeEventListener("touchmove",I),x.removeEventListener("touchend",E),x.removeEventListener("mousedown",C),window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",H)}},[b,_,A]);return B.useEffect(()=>{let x;return(()=>{s.current?(g.current?.(),U(s.current)):(x=new MutationObserver(()=>{s.current&&(g.current?.(),U(s.current),x?.disconnect())}),x.observe(document.body,{childList:!0,subtree:!0}))})(),()=>{x?.disconnect(),g.current?.()}},[U,n]),{ref:s,dragOffsetY:u,isDragging:d}}const PN=n=>{const[a,i]=B.useState(!0);return B.useEffect(()=>{let s=null;return n?.type==="loading"?(i(!0),s=setTimeout(()=>{i(!1)},300)):i(!n),()=>{s&&clearTimeout(s)}},[n]),a},XN=()=>{const n=La(),a=ut(m=>m.chat.sourceInfos),i=O_(),s=B.useRef(null),u=PN(a);B.useEffect(()=>{s.current&&a?.type==="loading"&&(i?s.current.showModal():(s.current.setAttribute("open","true"),s.current?.focus()))},[a,i]);const f=B.useCallback(()=>{s.current&&(i?s.current.close():s.current.removeAttribute("open"),n(Xx()))},[n,i]),{ref:d,dragOffsetY:h}=YN({onClose:f,sourceInfos:a});return a?y.jsx("dialog",{ref:s,className:K(xt.sourceInfos,u?xt.waitForLoading:a.type==="loading"?xt.loadingContent:""),style:i&&h?{transform:`translateY(${h}px)`}:{},onClose:f,autoFocus:!0,role:"dialog","aria-labelledby":"source-info-title",children:u?null:y.jsxs(y.Fragment,{children:[y.jsx(fN,{ref:d,tabIndex:-1,sourceInfos:a.type==="loaded"?a:void 0,onClose:f}),a.type==="loading"?y.jsx(VN,{}):a.type==="loading-error"?y.jsx(FN,{}):y.jsxs(y.Fragment,{children:[y.jsx(dN,{loading:!a.highlighted}),y.jsx(kN,{sourceInfos:a})]})]})}):null},ZN="_container_1aof3_1",QN="_body_1aof3_7",KN="_intro_1aof3_14",$N="_footer_1aof3_39",WN="_footnote_1aof3_43",JN="_containerWithFootnote_1aof3_58",e8="_startChatButton_1aof3_73",t8="_spinner_1aof3_88",n8="_formFields_1aof3_92",a8="_formField_1aof3_92",r8="_radio_1aof3_104",i8="_checkbox_1aof3_111",l8="_input_1aof3_119",s8="_inputLabel_1aof3_153",o8="_selectWrapper_1aof3_157",u8="_select_1aof3_157",c8="_selectLabel_1aof3_203",Ot={container:ZN,body:QN,intro:KN,footer:$N,footnote:WN,containerWithFootnote:JN,startChatButton:e8,spinner:t8,formFields:n8,formField:a8,radio:r8,checkbox:i8,input:l8,inputLabel:s8,selectWrapper:o8,select:u8,selectLabel:c8},f8=({name:n,label:a,defaultValue:i,required:s,onChange:u})=>{const f=d=>{u(d.currentTarget.checked?"true":"false")};return y.jsxs("label",{className:K(Ot.checkbox,"chat__startScreen__checkbox"),htmlFor:n,children:[y.jsx("input",{type:"checkbox",id:n,name:n,defaultChecked:i==="true",required:s,onChange:f}),y.jsx("div",{children:a})]})},d8=({type:n,name:a,label:i,defaultValue:s,placeholder:u,required:f,multiple:d,min:h,max:m,pattern:g,onChange:b})=>{const _=A=>{b(A.target.value)};return y.jsxs("label",{className:K(Ot.input,"chat__startScreen__input"),htmlFor:a,children:[y.jsx("div",{className:K(Ot.inputLabel),children:i}),y.jsx("input",{type:n,id:a,name:a,defaultValue:s,placeholder:u,required:f,multiple:d,min:h,max:m,pattern:g,onChange:_})]})},h8=({name:n,value:a,label:i,defaultChecked:s,required:u,onChange:f})=>{const d=`${n}-${a}`,h=m=>{f(m.target.value)};return y.jsxs("label",{className:K(Ot.radio,"chat__startScreen__radio"),htmlFor:d,children:[y.jsx("input",{id:d,type:"radio",name:n,value:a,defaultChecked:s,required:u,onChange:h}),y.jsx("span",{className:K(Ot.label),children:i})]})},m8=({name:n,label:a,defaultValue:i,required:s,multiple:u,options:f,onChange:d})=>{const h=m=>{d(m.target.value)};return y.jsxs("label",{className:K(Ot.select,"chat__startScreen__select"),htmlFor:n,children:[y.jsx("div",{className:K(Ot.selectLabel),children:a}),y.jsx("div",{className:K(Ot.selectWrapper),children:y.jsx("select",{id:n,name:n,defaultValue:i,required:s,multiple:u,onChange:h,children:Object.entries(f||{}).map(([m,g])=>y.jsx("option",{value:m,selected:g===i,children:g}))})})]})},p8="start-screen.intro",g8="start-screen.start-chat",y8="start-screen.waiting-for-login",b8="start-screen.footnote",In="start-screen.form",Rv=`${In}.fields`,v8=()=>{const n=tt(),a=La(),i=um(),s=ut(x=>x.startScreen.loginRequestToken),u=ut(x=>x.settings.requiresUserAuthentication);B.useEffect(()=>{let x;if(s){const E=window.screenX+(window.outerWidth-600)/2,C=window.screenY+(window.outerHeight-700)/2,S=window.open(`/${i}/auth/login?loginRequestToken=${s}`,"Login",`width=600,height=700,left=${E},top=${C},resizable=yes,scrollbars=yes`);x=setInterval(()=>{S?.closed&&(a(Fx()),clearInterval(x))},500)}return()=>{x&&clearInterval(x)}},[i,s,a]);const[f,d]=B.useState({}),h=()=>{const x=Object.entries(f).reduce((k,[I,E])=>({...k,[I]:E.value}),{});a(u?qx({loginRequestToken:ou(),formValues:x}):zx({formValues:x}))},m=n(p8),g=n(s?y8:g8),b=n(b8),_=B.useMemo(()=>n(Rv)?.split(";").map(x=>x.trim())??[],[n(Rv)]);B.useEffect(()=>{_.length&&Object.keys(f).length===0&&d(_.reduce((x,k)=>({...x,[k]:_8(k,n)}),{}))},[n,_,f]);const A=x=>{x.preventDefault(),h()},U=x=>k=>{d(I=>({...I,[x]:{...I[x],value:k}}))};return y.jsxs("form",{onSubmit:A,className:K(Ot.container,b&&Ot.containerWithFootnote,"chat__startScreen"),children:[y.jsxs("div",{className:K(Ot.body,"chat__startScreen__body"),children:[m&&y.jsx("div",{className:K(Ot.intro,"chat__startScreen__intro"),children:y.jsx(wa,{options:{overrides:{a:wv}},children:m})}),y.jsx("div",{className:K(Ot.formFields,"chat__startScreen__fields"),children:Object.values(f).map(({type:x,name:k,label:I,placeholder:E,defaultValue:C,options:S,required:H,multiple:N,min:Z,max:X,pattern:te})=>y.jsx("div",{className:K(Ot.formField,"chat__startScreen__field"),children:(()=>{switch(x){case"radio":return y.jsxs(y.Fragment,{children:[y.jsx("div",{children:I}),Object.entries(S||{}).map(([de,ye])=>y.jsx(h8,{name:k,value:de,label:ye,defaultChecked:de===C,required:H,onChange:U(k)},de))]});case"checkbox":return y.jsx(f8,{name:k,label:I,defaultValue:C,required:H,onChange:U(k)});case"select":return y.jsx(m8,{name:k,label:I,defaultValue:C,required:H,multiple:N,options:S,onChange:U(k)});default:return y.jsx(d8,{type:x,name:k,label:I,placeholder:E,defaultValue:C,required:H,multiple:N,min:Z,max:X,pattern:te,onChange:U(k)})}})()},k))})]}),y.jsxs("div",{className:K(Ot.footer,"chat__startScreen__footer"),children:[y.jsxs(gu,{type:"submit",className:Ot.startChatButton,disabled:!!s,children:[!!s&&y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",className:Ot.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:g})]}),b&&y.jsx("div",{className:Ot.footnote,children:y.jsx(wa,{options:{overrides:{a:wv}},children:b})})]})]})},wv=({title:n,href:a,children:i})=>y.jsx("a",{href:a,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),_8=(n,a)=>{const i=a(`${In}.${n}.type`)||"text",s=a(`${In}.${n}.required`)==="true",u=a(`${In}.${n}.multiple`)==="true",f=a(`${In}.${n}.placeholder`),d=a(`${In}.${n}.label`)||"",h=a(`${In}.${n}.defaultValue`),m=a(`${In}.${n}.min`),g=a(`${In}.${n}.max`),b=a(`${In}.${n}.pattern`),_=S8(a(`${In}.${n}.options`));return{name:n,label:d,placeholder:f,value:E8(i,h,_)||"",defaultValue:h,options:_,type:i,required:s,multiple:u,min:m,max:g,pattern:b}},E8=(n,a,i)=>a||n==="select"&&Object.keys(i)[0]||"",S8=(n="")=>n.split(";").map(a=>a.trim()).reduce((a,i)=>{const[s,u]=i.split(":").map(f=>f.trim());return{...a,[s]:u}},{}),T8=()=>{const n=Eu();B.useEffect(()=>{window.document.documentElement.lang=n.locale},[n.locale])},wi={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"},A8=({clientName:n})=>{T8();const a=La(),i=ut(b=>b.intl.messages),s=tt(),u=ut(b=>b.settings.enableStartScreen),f=ut(b=>b.startScreen.startScreenStatus),[d,h]=B.useState(void 0);B.useEffect(()=>{const b=Su.parse(window.location.search);b.cssClassName&&h(b.cssClassName);const _=A=>{switch(A.data.type){case wi.TRIGGER_ACTION:a(A.data.action);break;case wi.TRIGGER_STORY:a(U1(A.data.story));break;case wi.ON_CHAT_WINDOW_OPEN:a({type:"webclient.chatwindow.opened"});break;case wi.ON_CHAT_WINDOW_CLOSE:a({type:"webclient.chatwindow.closed"});break;case wi.CHAT_MESSAGE_FROM_GUEST:a(N1(A.data.text));break;case wi.RESTART_CHAT:a(ls());break}};return a(Qx(n,b)),window.addEventListener("message",A=>_(A),!1),()=>window.removeEventListener("message",_)},[n,a]),B.useEffect(()=>{const b=s("page.title");b&&document&&(document.title=b)},[i,s]);const m=u===void 0,g=u===!1||f==="HIDDEN";return y.jsx("div",{className:K(vv.chatwindow,g&&vv.chatwindowWithAside,"chat__chatwindow",d),children:m?null:g?y.jsxs(y.Fragment,{children:[y.jsx("header",{children:y.jsx(bv,{chatStarted:!0})}),y.jsx("main",{children:y.jsx(w3,{clientName:n})}),y.jsx("aside",{children:y.jsx(XN,{})})]}):y.jsxs(y.Fragment,{children:[y.jsx("header",{children:y.jsx(bv,{chatStarted:!1})}),y.jsx("main",{children:y.jsx(v8,{})})]})})},O8=()=>{const n=um(),a=O_(),i=ut(u=>u.intl.locale),s=ut(u=>u.intl.messages);return y.jsx(KA,{locale:i,messages:s,onError:()=>{},children:y.jsx("div",{className:K([WA.app,a?"chat__small":"chat__large"]),children:y.jsx(A8,{clientName:n})})})};var Qd,Nv;function x8(){if(Nv)return Qd;Nv=1;var n=m_(),a=sm(),i="Expected a function";function s(u,f,d){var h=!0,m=!0;if(typeof u!="function")throw new TypeError(i);return a(d)&&(h="leading"in d?!!d.leading:h,m="trailing"in d?!!d.trailing:m),n(u,f,{leading:h,maxWait:f,trailing:m})}return Qd=s,Qd}var C8=x8();const R8=bu(C8);function w8(n){return n&&n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function N8(n){return n}function M8(n,a){a=a||{};const i=a.delimiter||".",s=a.maxDepth,u=a.transformKey||N8,f={};function d(h,m,g){g=g||1,Object.keys(h).forEach(function(b){const _=h[b],A=a.safe&&Array.isArray(_),U=Object.prototype.toString.call(_),x=w8(_),k=U==="[object Object]"||U==="[object Array]",I=m?m+i+u(b):u(b);if(!A&&!x&&k&&Object.keys(_).length&&(!a.maxDepth||g<s))return d(_,I,g+1);f[I]=_})}return d(n),f}const N_={"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:
109
+ `,H),X=E.slice(H,Z===-1?void 0:Z+1);if(h(f,X)||(S+=X,Z===-1||!X.trim()))break;H=Z+1}const N=Wl(S);return N===""?null:[S,,N]}),i:3,u:Td,l:(E,C,S)=>m("p",{key:S.key},C(E.children,S))},22:{t:["["],o:Lr(DC),i:0,u:E=>(A[E[1]]={target:E[2],title:E[4]},{}),l:Od},23:{t:["!["],o:lr(LC),i:0,u:E=>({alt:E[1]?Xn(E[1]):void 0,ref:E[2]}),l:(E,C,S)=>A[E.ref]?m("img",{key:S.key,alt:E.alt,src:s(A[E.ref].target,"img","src"),title:A[E.ref].title}):null},24:{t:E=>E[0]==="["&&E.indexOf("](")===-1,o:Lr(BC),i:0,u:(E,C,S)=>({children:C(E[1],S),fallbackChildren:E[0],ref:E[2]}),l:(E,C,S)=>A[E.ref]?m("a",{key:S.key,href:s(A[E.ref].target,"a","href"),title:A[E.ref].title},C(E.children,S)):m("span",{key:S.key},E.fallbackChildren)},25:{t:["|"],o:Oa(Fb),i:1,u:lR,l(E,C,S){const H=E;return m("table",{key:S.key},m("thead",null,m("tr",null,H.header.map(function(N,Z){return m("th",{key:Z,style:Xb(H,Z)},C(N,S))}))),m("tbody",null,H.cells.map(function(N,Z){return m("tr",{key:Z},N.map(function(X,te){return m("td",{key:te,style:Xb(H,te)},C(X,S))}))})))}},27:{o:Mi(function(E,C){let S;return tu(E,":")&&(S=YC.exec(E)),S||ZC.exec(E)}),i:4,u(E){const C=E[0];return{text:C.indexOf("&")===-1?C:C.replace(OC,(S,H)=>a.namedCodesToUnicode[H]||S)}},l:E=>E.text},28:{t:["**","__"],o:lr(kC),i:2,u:(E,C,S)=>({children:C(E[2],S)}),l:(E,C,S)=>m("strong",{key:S.key},C(E.children,S))},29:{t:E=>{const C=E[0];return(C==="*"||C==="_")&&E[1]!==C},o:lr(qC),i:3,u:(E,C,S)=>({children:C(E[2],S)}),l:(E,C,S)=>m("em",{key:S.key},C(E.children,S))},30:{t:["\\"],o:lr(PC),i:1,u:E=>({text:E[1],type:"27"})},31:{t:["=="],o:lr(FC),i:3,u:Td,l:(E,C,S)=>m("mark",{key:S.key},C(E.children,S))},32:{t:["~~"],o:lr(VC),i:3,u:Td,l:(E,C,S)=>m("del",{key:S.key},C(E.children,S))}};a.disableParsingRawHTML===!0&&(delete U[11],delete U[13]);const x=(function(E){var C=Object.keys(E);function S(H,N){var Z=[];if(N.prevCapture=N.prevCapture||"",H.trim())for(;H;)for(var X=0;X<C.length;){var te=C[X],de=E[te];if(!de.t||rR(H,N,de.t)){var ye=de.o(H,N);if(ye&&ye[0]){H=H.substring(ye[0].length);var re=de.u(ye,S,N);N.prevCapture+=ye[0],re.type||(re.type=te),Z.push(re);break}X++}else X++}return N.prevCapture="",Z}return C.sort(function(H,N){return E[H].i-E[N].i||(H<N?-1:1)}),function(H,N){return S((function(Z){return Z.replace(vC,`
110
+ `).replace(SC,"").replace(jC," ")})(H),N)}})(U),k=(function(E,C){return function S(H,N={}){if(Array.isArray(H)){const Z=N.key,X=[];let te=!1;for(let de=0;de<H.length;de++){N.key=de;const ye=S(H[de],N),re=Yb(ye);re&&te?X[X.length-1]+=ye:ye!==null&&X.push(ye),te=re}return N.key=Z,X}return(function(Z,X,te){const de=E[Z.type].l;return C?C(()=>de(Z,X,te),Z,X,te):de(Z,X,te)})(H,S,N)}})(U,a.renderRule),I=g(n);return _.length?m("div",null,I,m("footer",{key:"footer"},_.map(function(E){return m("div",{id:i(E.identifier,zl),key:E.identifier},E.identifier,k(x(E.footnote,{inline:!0})))}))):I}const Ra=n=>{let{children:a="",options:i}=n,s=(function(u,f){if(u==null)return{};var d,h,m={},g=Object.keys(u);for(h=0;h<g.length;h++)f.indexOf(d=g[h])>=0||(m[d]=u[d]);return m})(n,sC);return B.cloneElement(dR(a,i),s)},hR="_generalConditionsContainer_55hjg_1",mR="_generalConditions_55hjg_1",pR="_generalConditionsHeader_55hjg_15",gR="_generalConditionsBody_55hjg_26",yR="_generalConditionsAccept_55hjg_35",Gl={generalConditionsContainer:hR,generalConditions:mR,generalConditionsHeader:pR,generalConditionsBody:gR,generalConditionsAccept:yR},bR=()=>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"})}),vR=()=>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"})}),_R="general-conditions.header",ER="general-conditions.body",Zb="general-conditions.accept-conditions-note",SR=()=>{const n=tt(),[a,i]=B.useState(!1),s=()=>i(!a),u=h=>{h.key==="ArrowDown"||h.key==="ArrowRight"?i(!0):h.key==="ArrowUp"||h.key==="ArrowLeft"||h.key==="Escape"?i(!1):(h.key==="Enter"||h.key==="Space"||h.key===" ")&&s()},f=n(_R),d=n(Zb);return y.jsxs("div",{className:K(Gl.generalConditionsContainer,"chat__generalConditions"),children:[!!f?.length&&y.jsxs("div",{className:Gl.generalConditions,children:[y.jsxs("div",{role:"button",onClick:s,onKeyDown:u,tabIndex:0,className:K(Gl.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":a?"true":"false","aria-pressed":a?"true":"false",children:[y.jsx(Ra,{children:f}),a?y.jsx(vR,{}):y.jsx(bR,{})]}),y.jsx("div",{className:K(Gl.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:a&&y.jsx(Ra,{children:n(ER)||""})})]}),!!d?.length&&y.jsx("div",{className:K(Gl.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:y.jsx(Ra,{children:n(Zb)||""})})]})},TR="_messageContainer_1rxi5_1",AR="_message_1rxi5_1",OR="_messageBot_1rxi5_14",xR="_messageBotLast_1rxi5_45",CR="_avatar_1rxi5_45",RR="_messageBotFirst_1rxi5_54",wR="_messageBotAnimated_1rxi5_67",NR="_messageGuest_1rxi5_78",MR="_messageGuestFirst_1rxi5_84",DR="_messageGuestLast_1rxi5_90",LR="_botAvatar_1rxi5_104",BR="_agentAvatar_1rxi5_108",UR="_bubble_1rxi5_112",jR="_bubbleContent_1rxi5_118",HR="_bubbleLeft_1rxi5_132",IR="_leftText_1rxi5_143",zR="_bubbleRight_1rxi5_150",GR="_rightText_1rxi5_160",kR="_sourceInfoReference_1rxi5_192",qR="_sourceInfoReferenceActive_1rxi5_204",ge={messageContainer:TR,message:AR,messageBot:OR,messageBotLast:xR,avatar:CR,messageBotFirst:RR,messageBotAnimated:wR,messageGuest:NR,messageGuestFirst:MR,messageGuestLast:DR,botAvatar:LR,agentAvatar:BR,bubble:UR,bubbleContent:jR,bubbleLeft:HR,leftText:IR,bubbleRight:zR,rightText:GR,sourceInfoReference:kR,sourceInfoReferenceActive:qR},lm=(n,a)=>{B.useEffect(()=>{const i=s=>{n.current&&!n.current.contains(s.target)&&a()};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[n,a])};var Cd,Qb;function sm(){if(Qb)return Cd;Qb=1;function n(a){var i=typeof a;return a!=null&&(i=="object"||i=="function")}return Cd=n,Cd}var Rd,Kb;function FR(){if(Kb)return Rd;Kb=1;var n=typeof Co=="object"&&Co&&Co.Object===Object&&Co;return Rd=n,Rd}var wd,$b;function d_(){if($b)return wd;$b=1;var n=FR(),a=typeof self=="object"&&self&&self.Object===Object&&self,i=n||a||Function("return this")();return wd=i,wd}var Nd,Wb;function VR(){if(Wb)return Nd;Wb=1;var n=d_(),a=function(){return n.Date.now()};return Nd=a,Nd}var Md,Jb;function YR(){if(Jb)return Md;Jb=1;var n=/\s/;function a(i){for(var s=i.length;s--&&n.test(i.charAt(s)););return s}return Md=a,Md}var Dd,ev;function PR(){if(ev)return Dd;ev=1;var n=YR(),a=/^\s+/;function i(s){return s&&s.slice(0,n(s)+1).replace(a,"")}return Dd=i,Dd}var Ld,tv;function h_(){if(tv)return Ld;tv=1;var n=d_(),a=n.Symbol;return Ld=a,Ld}var Bd,nv;function XR(){if(nv)return Bd;nv=1;var n=h_(),a=Object.prototype,i=a.hasOwnProperty,s=a.toString,u=n?n.toStringTag:void 0;function f(d){var h=i.call(d,u),m=d[u];try{d[u]=void 0;var g=!0}catch{}var b=s.call(d);return g&&(h?d[u]=m:delete d[u]),b}return Bd=f,Bd}var Ud,av;function ZR(){if(av)return Ud;av=1;var n=Object.prototype,a=n.toString;function i(s){return a.call(s)}return Ud=i,Ud}var jd,rv;function QR(){if(rv)return jd;rv=1;var n=h_(),a=XR(),i=ZR(),s="[object Null]",u="[object Undefined]",f=n?n.toStringTag:void 0;function d(h){return h==null?h===void 0?u:s:f&&f in Object(h)?a(h):i(h)}return jd=d,jd}var Hd,iv;function KR(){if(iv)return Hd;iv=1;function n(a){return a!=null&&typeof a=="object"}return Hd=n,Hd}var Id,lv;function $R(){if(lv)return Id;lv=1;var n=QR(),a=KR(),i="[object Symbol]";function s(u){return typeof u=="symbol"||a(u)&&n(u)==i}return Id=s,Id}var zd,sv;function WR(){if(sv)return zd;sv=1;var n=PR(),a=sm(),i=$R(),s=NaN,u=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,d=/^0o[0-7]+$/i,h=parseInt;function m(g){if(typeof g=="number")return g;if(i(g))return s;if(a(g)){var b=typeof g.valueOf=="function"?g.valueOf():g;g=a(b)?b+"":b}if(typeof g!="string")return g===0?g:+g;g=n(g);var _=f.test(g);return _||d.test(g)?h(g.slice(2),_?2:8):u.test(g)?s:+g}return zd=m,zd}var Gd,ov;function m_(){if(ov)return Gd;ov=1;var n=sm(),a=VR(),i=WR(),s="Expected a function",u=Math.max,f=Math.min;function d(h,m,g){var b,_,A,U,x,k,I=0,E=!1,C=!1,S=!0;if(typeof h!="function")throw new TypeError(s);m=i(m)||0,n(g)&&(E=!!g.leading,C="maxWait"in g,A=C?u(i(g.maxWait)||0,m):A,S="trailing"in g?!!g.trailing:S);function H(ce){var Xe=b,Ne=_;return b=_=void 0,I=ce,U=h.apply(Ne,Xe),U}function N(ce){return I=ce,x=setTimeout(te,m),E?H(ce):U}function Z(ce){var Xe=ce-k,Ne=ce-I,G=m-Xe;return C?f(G,A-Ne):G}function X(ce){var Xe=ce-k,Ne=ce-I;return k===void 0||Xe>=m||Xe<0||C&&Ne>=A}function te(){var ce=a();if(X(ce))return de(ce);x=setTimeout(te,Z(ce))}function de(ce){return x=void 0,S&&b?H(ce):(b=_=void 0,U)}function ye(){x!==void 0&&clearTimeout(x),I=0,b=k=_=x=void 0}function re(){return x===void 0?U:de(a())}function pe(){var ce=a(),Xe=X(ce);if(b=arguments,_=this,k=ce,Xe){if(x===void 0)return N(k);if(C)return clearTimeout(x),x=setTimeout(te,m),H(k)}return x===void 0&&(x=setTimeout(te,m)),U}return pe.cancel=ye,pe.flush=re,pe}return Gd=d,Gd}var JR=m_();const e6=vu(JR),t6="_container_131ib_1",n6="_categoryContainer_131ib_13",a6="_categoryButton_131ib_20",r6="_active_131ib_35",i6="_commentTextarea_131ib_44",kl={container:t6,categoryContainer:n6,categoryButton:a6,active:r6,commentTextarea:i6},l6=(n,a,i)=>{B.useEffect(()=>{if(n){const s=()=>{const f=["button:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])',"a[href]","input:not([disabled])","select:not([disabled])"].join(","),d=a.current?Array.from(a.current.querySelectorAll(f)):[],h=i.current?Array.from(i.current.querySelectorAll(f)):[];return[...d,...h]},u=f=>{if(f.key==="Tab"){const d=s();if(d.length>0){const h=d[0],m=d[d.length-1],g=document.activeElement;!f.shiftKey&&g===m?(f.preventDefault(),h.focus()):f.shiftKey&&g===h&&(f.preventDefault(),m.focus())}}};return document.addEventListener("keydown",u,!0),()=>{document.removeEventListener("keydown",u,!0)}}},[n,a,i])},s6=({open:n,actionsRef:a,reaction:i,onReaction:s})=>{const u=tt(),f=B.useRef(null),d=e6(g=>{s({...i,comment:g})},300);B.useEffect(()=>()=>d.flush(),[d]),l6(n,a,f);const h=g=>{s({...i,category:i.category===g?void 0:g})},m=g=>d(g.target.value);return n?y.jsxs("div",{ref:f,className:kl.container,role:"dialog","aria-modal":"true","aria-labelledby":"bad-reaction-title",children:[y.jsx("h2",{id:"bad-reaction-title",children:u("bot-bubble.reaction.say-more")}),y.jsx("div",{className:kl.categoryContainer,role:"radiogroup",children:["WRONG_INFORMATION","MISSING_INFORMATION","OLD_INFORMATION","UNCLEAR","OFF_TOPIC"].map(g=>y.jsx("button",{className:K(kl.categoryButton,i?.category===g&&kl.active),onClick:()=>h(g),"aria-pressed":i?.category===g,"aria-label":u(`bot-bubble.reaction.category.${g}`),tabIndex:0,role:"radio",children:u(`bot-bubble.reaction.category.${g}`)},g))}),y.jsx("textarea",{id:"comment",name:"comment",placeholder:u("bot-bubble.reaction.comment"),defaultValue:i?.comment,onChange:m,className:kl.commentTextarea,rows:3,"aria-label":u("bot-bubble.reaction.comment")})]}):null},o6="_botMessageActionContainer_18fjb_1",u6="_alwaysVisible_18fjb_15",c6="_active_18fjb_19",f6="_botMessageActionInnerContainer_18fjb_27",d6="_header_18fjb_52",h6="_botMessageActions_18fjb_57",m6="_reported_18fjb_68",p6="_action_18fjb_72",g6="_wave_18fjb_86",y6="_anyReport_18fjb_156",b6="_closeButton_18fjb_172",lt={botMessageActionContainer:o6,alwaysVisible:u6,active:c6,botMessageActionInnerContainer:f6,header:d6,botMessageActions:h6,reported:m6,action:p6,wave:g6,anyReport:y6,closeButton:b6},v6=({isSubmitting:n,onClick:a})=>{const i=tt();return y.jsx("button",{className:K(lt.action,lt.closeButton,"tooltip--bottom-left"),"aria-label":i("bot-bubble.reaction.close"),"data-title":i("bot-bubble.reaction.close"),tabIndex:0,onClick:a,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:n?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"})})})},_6=({alwaysVisible:n,senderType:a,reaction:i,botMessageRef:s,message:u,onReaction:f})=>{const d=tt(),[h,m]=B.useState(!1),[g,b]=B.useState(!1),[_,A]=B.useState(!1),U=B.useRef(null),x=B.useRef(null);lm(U,()=>{A(!1)});const k=N=>{N.key==="Escape"&&A(!1)};B.useEffect(()=>(document.addEventListener("keydown",k),()=>{document.removeEventListener("keydown",k)}),[]),B.useEffect(()=>{_&&U.current?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[_]);const I=N=>{x.current&&clearTimeout(x.current),b(!0),f(N),x.current=setTimeout(()=>{b(!1)},1e3)},E=B.useCallback(async()=>{if(s.current)try{m(!0);const N=s.current.innerHTML,Z=s.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([N],{type:"text/html"}),"text/plain":new Blob([Z],{type:"text/plain"})})]),await new Promise(X=>setTimeout(X,1500))}finally{m(!1)}},[s]),C=()=>{A(!1),f(i?.type==="GOOD"?null:{type:"GOOD"})},S=()=>{f({...u.reaction,type:"BAD"}),A(!_)},H=N=>Z=>{(Z.key==="Enter"||Z.key===" ")&&N()};return y.jsx("div",{ref:U,className:K(lt.botMessageActionContainer,n&&lt.alwaysVisible,_&&lt.active),children:y.jsxs("div",{className:K(lt.botMessageActionInnerContainer,n&&lt.alwaysVisible,_&&lt.active,i&&lt.reported),role:"group",children:[y.jsxs("div",{className:lt.header,children:[y.jsxs("div",{className:K(lt.botMessageActions,i&&lt.reported),children:[a===gu.BOT&&y.jsx("button",{className:K(lt.action,lt.wave,i?.type&&lt.anyReport,i?.type==="GOOD"&&lt.reported,"tooltip--top-right"),tabIndex:0,"aria-label":d(i?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"aria-pressed":i?.type==="GOOD","data-title":d(i?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onPointerDown:C,onKeyDown:H(C),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"})})}),a===gu.BOT&&y.jsx("button",{className:K(lt.action,lt.wave,i?.type&&lt.anyReport,i?.type==="BAD"&&lt.reported,"tooltip--top-right"),tabIndex:0,"aria-label":d("bot-bubble.reaction.bad"),"aria-pressed":i?.type==="BAD","data-title":d("bot-bubble.reaction.bad"),onPointerDown:S,onKeyDown:H(S),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:K(lt.action,lt.wave,"tooltip--top-right"),style:{visibility:_?"hidden":"visible"},tabIndex:0,"aria-label":d("bot-bubble.copy"),"data-title":d("bot-bubble.copy"),onClick:E,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"})})})]}),_&&y.jsx(v6,{isSubmitting:g,onClick:()=>A(!1)})]}),u.reaction&&y.jsx(s6,{open:_,actionsRef:U,reaction:u.reaction,onReaction:I})]})})},p_=B.forwardRef(({message:n,isAnimated:a,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,children:f,onReaction:d},h)=>{const m=tt(),g=B.useRef(null),b=n.sender.type===Te.UserType.BOT;return y.jsxs("li",{ref:h,className:K(ge.message,ge.messageBot,i&&ge.lastMessage,s&&ge.messageBotFirst,u&&ge.messageBotLast,"chat__bubbleContainer",a&&ge.messageBotAnimated,a&&"chat__bubbleContainer--animated",b?"chat__botBubbleContainer":"chat__agentBubbleContainer",s&&"chat__bubbleContainer--first",u&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:K(ge.avatar,b?ge.botAvatar:ge.agentAvatar,"chat__avatar",b?"chat__botAvatar":"chat__agentAvatar"),src:`${n.sender.avatar}`,alt:b?"Bot":"Agent",referrerPolicy:"no-referrer"}),y.jsxs("div",{className:ge.messageContainer,children:[y.jsx("div",{ref:g,className:K(ge.bubble,ge.bubbleLeft,"chat__bubble",b?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":m(b?"bot-bubble.label":"agent-bubble.label"),children:y.jsx("div",{className:K(ge.leftText),children:f})}),d&&y.jsx(_6,{alwaysVisible:i&&u,senderType:n.sender.type,reaction:n.reaction,message:n,botMessageRef:g,onReaction:d})]})]})}),E6="_sourceList_1n31h_1",S6="_source_1n31h_1",T6="_label_1n31h_37",kd={sourceList:E6,source:S6,label:T6},g_=n=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,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"})}),y_=n=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,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"})}),b_=n=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,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"})}),v_=n=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,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"})}),A6=({type:n,...a})=>{switch(n){case"WEBSITE":return y.jsx(v_,{...a});case"PDF":return y.jsx(b_,{...a});case"DOCX":return y.jsx(g_,{...a});default:return y.jsx(y_,{...a})}},om=({sources:n,onLinkClick:a})=>{const i=tt(),s=f=>()=>{a(f.url)},u=f=>d=>{(d.key==="Enter"||d.key===" ")&&a(f.url)};return n.length?y.jsx("ul",{className:kd.sourceList,"aria-label":i("bot-bubble.sources"),children:n.map(f=>y.jsx("li",{className:kd.source,children:y.jsxs("a",{role:"button",tabIndex:0,"aria-label":`${i("bot-bubble.source.open")}: ${f.label}`,onClick:s(f),onKeyDown:u(f),children:[y.jsx(A6,{type:f.type,"aria-hidden":"true"}),y.jsx("div",{className:kd.label,children:f.label})]})},f.url))}):null},O6="_button_3ui4g_1",x6="_buttonDefault_3ui4g_13",C6="_buttonPrimary_3ui4g_28",ts={button:O6,buttonDefault:x6,buttonPrimary:C6},Mu=({className:n,children:a,...i})=>y.jsx("button",{className:K(ts.button,n),type:"button",role:"button",...i,children:a}),R6="_title_137pi_1",w6="_buttons_137pi_6",N6="_button_137pi_6",M6="_imageContainer_137pi_29",D6="_image_137pi_29",L6="_video_container_137pi_44",B6="_video_137pi_44",U6="_only_137pi_58",un={title:R6,buttons:w6,button:N6,imageContainer:M6,image:D6,video_container:L6,video:B6,only:U6},j6=({buttons:n,onButtonClick:a})=>y.jsx("div",{className:K(un.buttons,"chat__bubbleButtons"),children:n.map((i,s)=>y.jsx(Mu,{className:K(un.button,"chat__bubbleButton"),onClick:()=>a(i),children:i.title},s))}),uv="newtab#",__=({markdown:n,markdownOptions:a={},onLinkClick:i})=>{const s=f=>d=>(d.preventDefault(),f&&i(f),!1),u=({title:f,href:d,children:h})=>d.indexOf(uv)===0?y.jsx("a",{href:d.slice(uv.length),title:f,target:"_blank",rel:"noopener noreferrer",children:h}):y.jsx("a",{onClick:s(d),title:f,href:d,children:h});return y.jsx(Ra,{options:{...a,overrides:{a:u}},children:n})},H6=({text:n,onLinkClick:a})=>n?y.jsx("div",{children:y.jsx(__,{markdown:n,onLinkClick:a})}):null,I6=({title:n})=>n?y.jsx("h1",{className:un.title,children:n}):null,z6=({title:n,text:a,buttons:i,onButtonClick:s,onLinkClick:u})=>n?.length||a?.length||i?.length?y.jsxs("div",{className:K(ge.bubbleContent),children:[y.jsx(I6,{title:n}),y.jsx(H6,{text:a,onLinkClick:u}),y.jsx(j6,{buttons:i,onButtonClick:s})]}):null,G6=({alt:n,imageUrl:a,itemUrl:i,hasBody:s})=>a?i?i.indexOf("youtube.com")>-1?y.jsx("div",{className:un.video_container,children:y.jsx("iframe",{className:K(un.video,{[un.only]:!s}),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:un.imageContainer,children:y.jsx("img",{className:K(un.image,{[un.only]:!s}),src:a,alt:n})})}):y.jsx("div",{className:un.imageContainer,children:y.jsx("img",{className:K(un.image,{[un.only]:!s}),src:a,alt:n})}):null,k6=({title:n,text:a,imageUrl:i,itemUrl:s,buttons:u,sources:f,onButtonClick:d,onLinkClick:h})=>{const m=!!n?.length||!!a?.length||!!u?.length;return y.jsxs("div",{className:K(un.detailMessage),children:[y.jsx(G6,{hasBody:m,imageUrl:i,itemUrl:s,alt:n||""}),m&&y.jsx(z6,{title:n,text:a,buttons:u,onLinkClick:h,onButtonClick:d}),y.jsx(om,{sources:f,onLinkClick:h})]})},q6=B.forwardRef(({isFirstMessageBySender:n,isLastMessageBySender:a,children:i},s)=>{const u=tt();return y.jsx("li",{ref:s,className:K(ge.message,ge.messageGuest,n&&ge.messageGuestFirst,a&&ge.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",n&&"chat__bubbleContainer--first",a&&"chat__bubbleContainer--last"),children:y.jsx("div",{className:K(ge.bubble,ge.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":u("guest-bubble.label"),children:y.jsx("div",{className:K(ge.rightText),children:i})})})}),F6="_markdown_nw7vg_1",E_={markdown:F6},um=()=>B.useMemo(()=>Xh(),[]),Zo="source-info-reference",V6=({actionId:n,markdown:a,sources:i,onLinkClick:s})=>{const u=um(),f=Da(),d=Y6(),h=ut(b=>{const _=b.chat.sourceInfos;if(_?.type==="loaded"||_?.type==="loading")return _.chunkId}),m=b=>_=>{const A=_.key;(A==="ArrowDown"||A==="ArrowRight"||A==="Enter"||A===" "||A==="Space")&&(_.stopPropagation(),f(Mb(u,n,b)))},g=b=>()=>{f(Mb(u,n,b))};return B.useLayoutEffect(()=>{document.querySelectorAll(`.${Zo}`).forEach(b=>{const _=b.previousSibling;_&&_.nodeType===Node.TEXT_NODE&&_.textContent?.endsWith(" ")&&_.textContent?.trim().length&&b.classList.add(`${Zo}--before-space`);const A=b.nextSibling;A&&A.nodeType===Node.TEXT_NODE&&A.textContent?.startsWith(" ")&&A.textContent?.trim().length&&b.classList.add(`${Zo}--after-space`)})},[a]),y.jsxs("div",{className:ge.bubbleContent,children:[y.jsx("div",{className:E_.markdown,children:y.jsx(__,{markdown:a,onLinkClick:s,markdownOptions:{renderRule(b,_,A,U){if(_.type===oC.footnoteReference){const x=_.text===h;return y.jsx("span",{className:K(ge.sourceInfoReference,x&&ge.sourceInfoReferenceActive,Zo),children:y.jsx("a",{type:"button",tabIndex:0,onClick:g(_.text),onKeyDown:m(_.text),children:d(_.text)})},U.key)}return b()}}})}),y.jsx(om,{sources:i,onLinkClick:s})]})},Y6=()=>{const n=[];return i=>{const s=n.indexOf(i);return s>-1?s+1:(n.push(i),n.length)}},P6="_text_gp0s0_1",X6="_command_gp0s0_5",cv={text:P6,command:X6},Z6=({text:n,commands:a=[]})=>{const i=a.find(u=>n.startsWith(`/${u}`)),s=i?n.slice(i.length+1):n;return y.jsxs("div",{children:[i&&y.jsxs("code",{className:cv.command,children:["/",i]}),s.split(`
111
+ `).map((u,f)=>y.jsxs("span",{className:cv.text,children:[u,y.jsx("br",{})]},f))]})},Q6=({text:n,commands:a,sources:i,onLinkClick:s})=>y.jsxs("div",{className:ge.bubbleContent,children:[y.jsx(Z6,{text:n,commands:a}),y.jsx(om,{sources:i,onLinkClick:s})]}),K6=B.forwardRef(({message:n,commands:a,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,onReaction:f,onButtonClick:d,onLinkClick:h},m)=>{const g=$6(n._id,n,a,d,h),b=_=>{f(n._id,_)};switch(n.sender.type){case Te.UserType.GUEST:return y.jsx(q6,{ref:m,isFirstMessageBySender:s,isLastMessageBySender:u,children:g});default:return y.jsx(p_,{ref:m,message:n,isAnimated:!1,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,onReaction:b,children:g})}}),$6=(n,a,i,s,u)=>{switch(a.type){case Te.MessageTypeEnum.TEXT:{const f=a;return y.jsx(Q6,{text:f.text,commands:i,sources:a.sources||[],onLinkClick:u})}case Te.MessageTypeEnum.DETAIL:{const f=a;return y.jsx(k6,{title:f.title,text:f.text,imageUrl:f.imageUrl,itemUrl:f.itemUrl,buttons:f.buttons,sources:a.sources||[],onButtonClick:s,onLinkClick:u})}case Te.MessageTypeEnum.MARKDOWN:{const f=a;return y.jsx(V6,{actionId:n,markdown:f.markdown,sources:f.sources||[],onLinkClick:u})}}},W6=(n,a)=>n.message._id===a.message._id&&n.message.reaction===a.message.reaction&&n.isLastMessage===a.isLastMessage&&n.isFirstMessageBySender===a.isFirstMessageBySender&&n.isLastMessageBySender===a.isLastMessageBySender,J6=Gv.memo(K6,W6),ew="_ticontainer_xg0dn_1",tw="_tiblock_xg0dn_5",nw="_tidot_xg0dn_12",ql={ticontainer:ew,tiblock:tw,tidot:nw},aw=({isTyping:n=!1})=>y.jsx("div",{className:ql.ticontainer,children:y.jsx("div",{className:ql.tiblock,children:n?y.jsxs(y.Fragment,{children:[y.jsx("div",{className:K(ql.tidot,"chat__typingIndicator")}),y.jsx("div",{className:K(ql.tidot,"chat__typingIndicator")}),y.jsx("div",{className:K(ql.tidot,"chat__typingIndicator")})]}):null})}),rw=Object.assign({_id:"typing-indicator"},new Te.TextMessage("",new Te.BotUser)),iw=({messages:n,isBotTyping:a,commands:i,onTranscriptItemReaction:s,onButtonClick:u,onLinkClick:f})=>{const d=B.useRef(0),h=B.useRef(!0),m=B.useRef(null),g=B.useRef(null),b=B.useRef(null),_=ut(x=>x.settings.enableGeneralConditions);B.useLayoutEffect(()=>{if(n.length&&m.current&&(d.current<n.length||a)){if(g.current){const x=g.current.offsetTop;m.current.scrollTop=x}else if(b.current){const x=b.current.offsetTop;m.current.scrollTop=x}h.current&&(h.current=!1),d.current=n.length}},[n,h,a]);let A;const U=n.length;return y.jsxs("div",{ref:m,className:K(Lb.messageContainer,"chat__messageContainer"),style:{scrollBehavior:n.length&&h.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[_&&y.jsx(SR,{}),y.jsxs("ul",{className:Lb.messages,children:[n.map((x,k)=>{const I=lw(x,A),E=sw(x,k,n,a);A=x.sender.type;const C=k+1===U,S=x._id||`added-${k}`;return y.jsx(J6,{ref:C?b:null,message:x,commands:i,isLastMessage:C,isFirstMessageBySender:I,isLastMessageBySender:E,onButtonClick:u,onLinkClick:f,onReaction:s},C&&!a?"last":S)}),a&&y.jsx(p_,{ref:g,message:rw,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:A!==Te.UserType.BOT,isLastMessageBySender:!0,children:y.jsx(aw,{isTyping:!0})},"last")]})]})},lw=(n,a)=>!a||a!==n.sender.type,sw=(n,a,i,s)=>{const u=n.sender.type,f=i.length;return a+1===f?!(u===Te.UserType.BOT&&s):u!==i.at(a+1)?.sender.type},ow="_bottomSheet_jp8dl_1",uw="_bottomSheetOpen_jp8dl_15",cw="_bottomSheetClose_jp8dl_20",wa={bottomSheet:ow,bottomSheetOpen:uw,bottomSheetClose:cw},fw="_container_xc2nx_1",fv={container:fw},dw=({contentUrl:n})=>{const a=ut(f=>f.connection.sessionId),[i,s]=B.useState(!1);B.useEffect(()=>{s(f=>f||!!n)},[n]);const u=B.useMemo(()=>{if(n&&a){const f=new URL(n,document.baseURI);return f.searchParams.set("sessionId",a),f.toString()}else return},[n,a]);return y.jsx("div",{className:K(fv.container,wa.bottomSheet,{[wa.bottomSheetOpen]:!!n,[wa.bottomSheetClose]:i&&!n}),children:u&&y.jsx("iframe",{title:"Drawer",src:u,className:fv.iframe})})},hw="_container_6tt4m_1",mw={container:hw},pw=({title:n,href:a,children:i})=>y.jsx("a",{href:a,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),gw=()=>{const a=tt()("powered-by");return a&&a.length?y.jsx("div",{className:K(mw.container,"chat__poweredBy"),children:y.jsx(Ra,{options:{overrides:{a:pw}},children:a})}):null},S_=({className:n,children:a,...i})=>y.jsx(Mu,{className:K(ts.buttonDefault,n),type:"button",...i,children:a}),yu=({className:n,children:a,...i})=>y.jsx(Mu,{className:K(ts.buttonPrimary,n),...i,children:a}),yw="_container_h23mk_1",bw="_formContainer_h23mk_17",vw="_emailInput_h23mk_22",_w="_description_h23mk_52",Ew="_actions_h23mk_57",Sw="_validationError_h23mk_67",Tw="_submitted_h23mk_74",Br={container:yw,formContainer:bw,emailInput:vw,description:_w,actions:Ew,validationError:Sw,submitted:Tw},Aw=({visible:n,onEmailExport:a,onClose:i})=>{const s=tt(),[u,f]=B.useState(void 0),[d,h]=B.useState(!1),[m,g]=B.useState(void 0),b=B.useRef(null);B.useEffect(()=>{n?(b.current?.focus(),h(!1),f(n)):u===!0&&f(!1)},[n,u]);const _=U=>{U.preventDefault(),m&&m.length>0&&(a(m),h(!0),setTimeout(i,3*1e3))},A=U=>{const x=U.target.value.trim(),k=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(x);g(k?x:"")};return y.jsxs("div",{className:K(Br.container,wa.bottomSheet,{[wa.bottomSheetOpen]:u===!0,[wa.bottomSheetClose]:u===!1}),children:[y.jsx("h2",{children:s("export-transcript.email.title")}),y.jsx(Ra,{className:Br.description,children:s("export-transcript.email.description")||""}),y.jsxs("form",{onSubmit:_,className:Br.formContainer,children:[y.jsxs("div",{children:[y.jsx("input",{disabled:d,ref:b,type:"email",placeholder:s("export-transcript.email.placeholder"),className:Br.emailInput,onChange:A}),m?.length===0?y.jsx("div",{className:Br.validationError,children:s("export-transcript.email.invalid")}):null]}),y.jsxs("div",{className:Br.actions,children:[y.jsx(S_,{onClick:i,children:s("export-transcript.email.cancel")}),y.jsx(yu,{type:"submit",disabled:d||m===void 0||m.length===0,children:s("export-transcript.email.send")})]})]}),d&&y.jsx("div",{className:Br.submitted,children:s("export-transcript.email.success")})]})},Ow="_inputContainer_fi5ao_1",xw={inputContainer:Ow},Cw="_blockUserInput_pot9c_1",Rw={blockUserInput:Cw},ww=({visible:n})=>{const a=tt();return n?y.jsx("div",{className:K(Rw.blockUserInput,"chat__blockUserInput"),children:a("block-user-input.title")}):null},Nw="_commandsDropdown_5ytuv_1",Mw="_commands_5ytuv_1",Dw="_command_5ytuv_1",Lw="_commandActive_5ytuv_46",Bw="_commandsSelections_5ytuv_55",Kl={commandsDropdown:Nw,commands:Mw,command:Dw,commandActive:Lw,commandsSelections:Bw},Uw=(n,a,i,s,u)=>{B.useEffect(()=>{const f=d=>{if(n.length)switch(d.key){case"Enter":i(n[a]);break;case"ArrowUp":s(h=>h>0?h-1:n.length-1);break;case"ArrowDown":s(h=>h<n.length-1?h+1:0);break;case"Escape":u([]);break}};return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)}},[n,a,i,s,u])},jw=({text:n,commands:a,onSelectCommand:i,onVisibilityChange:s})=>{const u=B.useRef(null),f=tt(),[d,h]=B.useState([]),[m,g]=B.useState(dv(a)),[b,_]=B.useState(0),A=U=>i(`/${U}`);return lm(u,()=>h([])),Uw(d,b,A,_,h),B.useEffect(()=>{g(dv(a))},[a]),B.useEffect(()=>{const U=n.length||0;U===0||U>m||!n.startsWith("/")?h([]):h(a.filter(Hw(n))),_(0)},[a,n,m]),B.useEffect(()=>{s(!!d.length)},[d,s]),d.length?y.jsx("div",{ref:u,className:Kl.commandsDropdown,children:y.jsx("ul",{id:"command-list",className:Kl.commands,role:"listbox",children:d.map((U,x)=>y.jsxs("li",{className:K([Kl.command,b===x&&Kl.commandActive]),role:"option",onClick:()=>A(U),onMouseOver:()=>_(x),children:[y.jsxs("h1",{children:["/",U]}),y.jsx("p",{children:f(`commands.${U}`)})]},U))})}):null},dv=n=>Math.max(...n.map(a=>a.length+1)),Hw=n=>a=>{const i=`/${a}`;return i.startsWith(n)&&i.length>=n.length},hv=3,Iw=({commands:n,onSelectCommand:a})=>{const i=tt(),[s,u]=B.useState(!1),f=g=>()=>{a(`/${g}`),u(!1)},d=()=>{u(!0)},h=()=>{u(!1)},m=s?n:n.slice(0,hv);return y.jsxs("div",{className:Kl.commandsSelections,children:[m.map(g=>y.jsxs("button",{className:"tooltip--top-center","aria-label":i(`commands.${g}`),"data-title":i(`commands.${g}`),tabIndex:0,onClick:f(g),children:["/",g]},g)),m.length<n.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"):m.length>hv?y.jsx("button",{"aria-label":i("commands.show-less.tooltip"),"data-title":i("commands.show-less.tooltip"),tabIndex:0,onClick:h,children:i("commands.show-less.action")},"show-less"):null]})},zw="_callToActionContainer_d8izj_1",Gw="_callToActionTitle_d8izj_23",kw="_rateOverlay_d8izj_30",qw="_body_d8izj_52",Fw="_footer_d8izj_60",Vw="_actions_d8izj_75",Yw="_bubbles_d8izj_89",Pw="_stars_d8izj_191",Xw="_starsSmall_d8izj_205",Zw="_starsLarge_d8izj_211",Qw="_star_d8izj_191",Kw="_starReadonly_d8izj_225",$w="_starIcon_d8izj_235",Ww="_starsDescriptionContainer_d8izj_253",Jw="_starsDescription_d8izj_253",Gt={callToActionContainer:zw,callToActionTitle:Gw,rateOverlay:kw,body:qw,footer:Fw,actions:Vw,bubbles:Yw,stars:Pw,starsSmall:Xw,starsLarge:Zw,star:Qw,starReadonly:Kw,starIcon:$w,starsDescriptionContainer:Ww,starsDescription:Jw},e3=({value:n,index:a,count:i,readonly:s,onHover:u,onClick:f})=>{const d=h=>{f&&h.key==="Enter"&&f()};return y.jsx("li",{className:K(Gt.star,{[Gt.starReadonly]:s},"chat__conversationRating__star"),children:y.jsx("div",{role:"radio","aria-checked":n>a?"true":"false","aria-posinset":a+1,"aria-setsize":i,tabIndex:0,onMouseOver:u,onKeyDown:d,onClick:f,children:y.jsx("span",{role:"img","aria-label":"Star",className:K(Gt.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,T_=({value:n,size:a,readonly:i=!1,onChange:s})=>{const[u,f]=B.useState(void 0),d=()=>{f(void 0)},h=g=>()=>{if(!i){const b=g+1;f(b)}},m=g=>()=>{s&&!i&&(s(g===0&&n===1?0:g+1),f(void 0))};return y.jsx("ul",{tabIndex:0,role:"radiogroup",className:K(Gt.stars,{[Gt.starsSmall]:a==="small",[Gt.starsLarge]:a==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:a==="small",chat__conversationRating__stars__large:a==="large"}),onMouseOut:d,children:Array(mv).fill(0).map((g,b)=>y.jsx(e3,{value:u===void 0?n:u,index:b,count:mv,readonly:i,onHover:h(b),onClick:m(b)},b))})},t3=({visible:n,onRate:a})=>{const i=tt();return n?y.jsxs("div",{className:K(Gt.callToActionContainer,"chat__conversationRating__callToAction"),children:[y.jsx("div",{className:K(Gt.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),y.jsx(T_,{value:0,size:"small",onChange:a})]}):null},qd=({isFirstMessageBySender:n,isLastMessageBySender:a,children:i})=>y.jsxs("div",{className:K(ge.message,ge.messageBot,n&&ge.messageBotFirst,a&&ge.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",n&&"chat__bubbleContainer--first",a&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:K(ge.avatar,ge.botAvatar),src:"bot.svg",alt:"Bot"}),y.jsx("div",{className:K(ge.bubble,ge.bubbleLeft,"chat__bubble","chat__botBubble"),children:y.jsx("div",{className:K(ge.leftText,ge.bubbleContent),children:i})})]}),n3=({children:n})=>y.jsx("div",{className:K(ge.message,ge.messageGuest,ge.messageGuestFirst,ge.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:y.jsx("div",{className:K(ge.bubble,ge.bubbleRight,"chat__bubble","chat__guestBubble"),children:y.jsx("div",{className:K(ge.rightText,ge.bubbleContent),children:n})})}),a3=()=>{const n=tt(),a=Da(),i=ut(I=>I.chat.conversationRating),[s,u]=B.useState(i.rating?.value||0),[f,d]=B.useState(void 0),[h,m]=B.useState(void 0),[g,b]=B.useState({submitted:!1,feedback:""}),_=B.useRef(null),[A,U]=B.useState(!1);B.useEffect(()=>{i.opener?(b({submitted:!1,feedback:""}),m(!0)):h===!0&&m(!1)},[i.opener,h]),B.useEffect(()=>{u(i.rating?.value||0)},[i.rating?.value,i.opener]),B.useEffect(()=>{_.current&&(_.current.value=i.rating?.feedback||"")},[i.rating?.feedback]),B.useEffect(()=>{const I=s>0?n(`conversation-rating.overlay.bot-message.rate-feedback.value-${s}`):void 0;d(I?.length?I:void 0)},[s,n]),B.useEffect(()=>{g.submitted?setTimeout(()=>U(!0),g.feedback.length?500:0):U(!1)},[g]);const x=I=>{I.preventDefault();const E=_.current?.value?.trim()||"";a(XO(s,E)),b({submitted:!0,feedback:E})},k=()=>{i.opener==="CLOSE_CHAT"?a(t_()):i.opener==="RESTART_CHAT"?a(ls()):a(Px())};return y.jsx("div",{className:K(Gt.rateOverlay,wa.bottomSheet,"chat__conversationRating__overlay",{[wa.bottomSheetOpen]:h===!0,[wa.bottomSheetClose]:h===!1}),children:y.jsxs("form",{onSubmit:x,children:[y.jsxs("div",{className:K(Gt.body,"chat__conversationRating__overlay__body"),children:[y.jsx("div",{}),y.jsx("div",{className:K(Gt.bubbles),children:i.opener&&y.jsxs(y.Fragment,{children:[y.jsxs(qd,{isFirstMessageBySender:!0,isLastMessageBySender:!f,children:[y.jsx("h2",{children:n("conversation-rating.overlay.title")}),y.jsxs("div",{className:K(Gt.starsDescriptionContainer),children:[y.jsx(T_,{value:s,size:"large",readonly:g.submitted,onChange:u}),y.jsxs("div",{className:K(Gt.starsDescription),children:[y.jsx("div",{children:n("conversation-rating.overlay.star.very-bad")}),y.jsx("div",{children:n("conversation-rating.overlay.star.very-good")})]})]})]}),f&&y.jsx(qd,{isFirstMessageBySender:!1,isLastMessageBySender:!A||!!g.feedback.length,children:y.jsx("div",{children:f})}),!!g.feedback.length&&y.jsx(n3,{children:g.feedback}),A&&y.jsx(qd,{isFirstMessageBySender:!!g.feedback.length,isLastMessageBySender:!0,children:y.jsx("div",{children:n("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),y.jsxs("div",{className:K(Gt.footer,"chat__conversationRating__overlay__footer"),children:[!g.submitted&&y.jsx("input",{ref:_,defaultValue:i.rating?.feedback||"",placeholder:n("conversation-rating.overlay.guest-feedback.input-placeholder")}),y.jsxs("div",{className:K(Gt.actions,"chat__conversationRating__overlay__footer__actions"),children:[g.submitted?y.jsx(yu,{type:"button",disabled:!s,onClick:k,children:i.opener==="CLOSE_CHAT"?n("conversation-rating.overlay.action.close-chat"):i.opener==="RESTART_CHAT"?n("conversation-rating.overlay.action.restart-chat"):n("conversation-rating.overlay.action.back-to-chat")},"close-button"):y.jsx(yu,{type:"submit",disabled:!s,children:n("conversation-rating.overlay.action.submit")},"submit-button"),i.opener!=="CHAT"&&!g.submitted&&y.jsx(S_,{onClick:k,children:i.opener==="CLOSE_CHAT"?n("conversation-rating.overlay.action.close-chat"):i.opener==="RESTART_CHAT"?n("conversation-rating.overlay.action.restart-chat"):n("conversation-rating.overlay.action.cancel")})]})]})]})})},r3=({numberOfMessagesFromGuest:n})=>{const a=Da(),i=ut(f=>f.chat.conversationRating),s=f=>{a(pu("CHAT",f))},u=!i.rating?.value&&n>=1;return i.enabled?y.jsxs(y.Fragment,{children:[y.jsx(t3,{visible:u,onRate:s}),y.jsx(a3,{})]}):null},i3=B.memo(r3),l3="_inputWrapper_e3h44_1",s3="_withOpenCommands_e3h44_14",o3="_messageInputWrapper_e3h44_20",u3="_messageInput_e3h44_20",c3="_buttons_e3h44_44",f3="_button_e3h44_44",Ci={inputWrapper:l3,withOpenCommands:s3,messageInputWrapper:o3,messageInput:u3,buttons:c3,button:f3},d3="_audioRecorder_g845f_1",h3="_audioButton_g845f_6",m3="_recorderIcon_g845f_37",p3="_spinning_g845f_60",Ur={audioRecorder:d3,audioButton:h3,recorderIcon:m3,spinning:p3},pv=2048,bu=16e3;class g3 extends Gv.Component{audioInput=null;volume=null;leftchannel=[];recorder=null;recordingLength=0;sampleRate=null;mediaStream=null;constructor(a){super(a),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(a){this.mediaStream=a,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(a)}initRecording(a){const i=window.AudioContext||window.webkitAudioContext,s=new i;this.sampleRate=s.sampleRate,this.volume=s.createGain(),this.audioInput=s.createMediaStreamSource(a),this.audioInput.connect(this.volume),this.recorder=s.createScriptProcessor(pv,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(s.destination)}processRecordingInput(a){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const i=a.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(i)),this.recordingLength+=pv}}handleClickSubmitAudio(){const a=b3(this.leftchannel,this.recordingLength),i=v3(a,this.sampleRate||0),s=y3(i);this.props.onAudioRecorded(s),this.handleClickStopAudio()}handleClickStopAudio(){this.setState({recordingState:"none"}),this.audioInput?.disconnect(),this.volume?.disconnect(),this.recorder?.disconnect(),this.mediaStream&&this.mediaStream?.getAudioTracks().forEach(a=>{a.stop()})}render(){return y.jsxs("div",{className:Ur.audioRecorder,children:[this.state.recordingState==="none"&&y.jsx("button",{className:K(Ur.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:Ur.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:Ur.audioRecorder,children:[y.jsx("button",{className:K(Ur.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:Ur.recorderIcon}),y.jsx("button",{className:K(Ur.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 y3=n=>{const a=new ArrayBuffer(44+n.length*2),i=new DataView(a);Qo(i,0,"RIFF"),i.setUint32(4,44+n.length*2,!0),Qo(i,8,"WAVE"),Qo(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,bu,!0),i.setUint32(28,bu*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),Qo(i,36,"data"),i.setUint32(40,n.length*2,!0);const s=n.length;let u=44;const f=1;for(let d=0;d<s;d++)i.setInt16(u,n[d]*(32767*f),!0),u+=2;return new Blob([i],{type:"audio/wav"})},Qo=(n,a,i)=>{for(let s=0;s<i.length;s++)n.setUint8(a+s,i.charCodeAt(s))},b3=(n,a)=>{const i=new Float32Array(a);let s=0;const u=n.length;for(let f=0;f<u;f++){const d=n[f];i.set(d,s),s+=d.length}return i},v3=(n,a)=>{if(bu===a)return n;const i=a/bu,s=Math.round(n.length/i),u=new Float32Array(s);let f=0,d=0;for(;f<u.length;){const h=Math.round((f+1)*i);let m=0,g=0;for(let b=d;b<h&&b<n.length;b++)m+=n[b],g++;u[f]=m/g,f++,d=h}return u},_3=({disabled:n,textInput:a,commandsVisible:i,hasCommands:s,onTextInput:u,onTextInputSubmit:f,onAudioRecorded:d})=>{const h=tt(),m=B.useRef(null),{enableSpeechSupport:g}=ut(x=>x.settings);B.useEffect(()=>{m.current?.focus()},[a]);const b=()=>{const x=m.current;x&&a.trim().length>=1&&f(a.trim())&&(x.value="",x.style.height="",x.focus())},_=x=>{x.preventDefault(),b()},A=x=>{const k=x.target.value;u(k),x.target.style.height="";const{scrollHeight:I}=x.target;x.target.style.height=`${I>150?150:I}px`},U=x=>{x.code==="Enter"&&!x.shiftKey?(x.repeat||b(),x.preventDefault()):i&&(x.code==="ArrowUp"||x.code==="ArrowDown")&&x.preventDefault()};return y.jsxs("form",{className:K(Ci.inputWrapper,i&&Ci.withOpenCommands,"chat__textInput"),onSubmit:_,children:[y.jsx("div",{className:Ci.messageInputWrapper,children:y.jsx("textarea",{id:"user_input",ref:m,className:Ci.messageInput,tabIndex:0,placeholder:h("message-input-placeholder"),value:a,onChange:A,onKeyDown:U,"aria-label":h("message-input-label"),"aria-controls":s?"command-list":void 0,"aria-haspopup":s?"listbox":void 0})}),y.jsx("div",{className:K(Ci.buttons,"chat__buttons"),children:a.length||!g||navigator.mediaDevices===void 0?y.jsx("button",{className:K(Ci.button,"chat__button"),type:"submit","aria-label":h("message-input.actions.submit.label"),"data-title":h("message-input.actions.submit.label"),tabIndex:0,disabled:n,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"})})}):g&&navigator.mediaDevices!==void 0&&y.jsx(g3,{translate:h,onAudioRecorded:d})})]})},E3="_quickReplies_83npe_1",S3="_quickReply_83npe_9",gv={quickReplies:E3,quickReply:S3},T3=({quickReplies:n,onQuickReplyClick:a})=>n.length?y.jsx("div",{className:K(gv.quickReplies,"chat__quickReplies"),children:n.map(i=>y.jsx(Mu,{tabIndex:0,className:K(gv.quickReply,"chat__button","chat__quickReply"),onClick:()=>a(i),children:i.label},i.label))}):null,yv=5e3,A3=1e3,O3=({isBotTyping:n,quickReplies:a,numberOfMessagesFromGuest:i,commands:s,onTextInput:u,onQuickReplyClick:f,onAudioRecorded:d})=>{const[h,m]=B.useState(""),[g,b]=B.useState(!1),[_,A]=B.useState(!1),U=B.useRef(0),x=B.useRef(0);B.useEffect(()=>{if(g&&!n){const E=U.current?Date.now()-U.current:0;E>yv?b(!1):setTimeout(()=>{b(!1)},yv-E)}},[g,n]),B.useEffect(()=>{g&&(U.current=Date.now())},[g]);const k=E=>{const C=Date.now()-x.current<A3;return _?!1:n||C?(b(!0),!1):(u(E),m(""),x.current=Date.now(),!0)},I=E=>{m(E+" ")};return y.jsxs("div",{className:K(xw.inputContainer),children:[y.jsx(T3,{quickReplies:a,onQuickReplyClick:f}),y.jsx(ww,{visible:g}),!g&&y.jsx(i3,{numberOfMessagesFromGuest:i}),!!s?.length&&y.jsx(jw,{text:h,commands:s,onSelectCommand:I,onVisibilityChange:A}),y.jsx(_3,{textInput:h,disabled:g,commandsVisible:_,hasCommands:!!s?.length,onTextInput:m,onTextInputSubmit:k,onAudioRecorded:d}),!!s?.length&&y.jsx(Iw,{commands:s,onSelectCommand:m})]})},x3=({clientName:n,messages:a,quickReplies:i,isBotTyping:s,drawerContentUrl:u,onMessageFromUser:f,onQuickReplyClick:d,onButtonClick:h,onLinkClick:m,onAudioRecorded:g,onTranscriptExport:b,onTranscriptItemReaction:_})=>{const A=Da(),U=ut(H=>H.connection.connectionState),{enableTranscriptExportEmail:x,commands:k}=ut(H=>H.settings),{showTranscriptMailOverlay:I,conversationRating:E}=ut(H=>H.chat),C=a.filter(H=>H.sender.type===gu.GUEST).length;B.useEffect(()=>{if(U===Gr.CONNECTED){const H=Tu.parse(window.location.search);A(a_(n,H))}},[n,U,A]);const S=()=>{A(n_())};return y.jsxs("div",{className:_d.container,children:[y.jsxs("div",{className:K([_d.chatcontent,(I||E?.opener)&&_d.accessabilityHidden]),children:[y.jsx(iw,{messages:a,isBotTyping:s,commands:k,onButtonClick:h,onLinkClick:m,onTranscriptItemReaction:_}),y.jsx(O3,{isBotTyping:s,quickReplies:s?[]:i,numberOfMessagesFromGuest:C,commands:k,onQuickReplyClick:d,onTextInput:f,onAudioRecorded:g}),y.jsx(gw,{})]}),x&&y.jsx(Aw,{visible:!!I,onEmailExport:b,onClose:S}),y.jsx(dw,{contentUrl:u})]})},C3=n=>{const{messages:a,quickReplies:i,isBotTyping:s,drawerContentUrl:u}=n.chat;return{messages:a,quickReplies:i,isBotTyping:s,drawerContentUrl:u}},R3=n=>({onRestartChat:()=>n(ls()),onMessageFromUser:a=>n(N1(a)),onAudioRecorded:a=>n(qO(a)),onActionFromUser:a=>n(a),onQuickReplyClick:a=>n(w1(a)),onNluEvent:a=>n(U1(a)),onButtonClick:a=>n(QO(a)),onLinkClick:a=>n(j1(a)),onTranscriptExport:a=>n(VO(a)),onTranscriptItemReaction:(a,i)=>{n(Te.Actions.transcriptItemGuestReaction(a,i?.type||null,i?.category,i?.comment))}}),w3=fT(C3,R3)(x3),A_=()=>{const[n,a]=B.useState(!1);return B.useEffect(()=>{a((()=>{try{return window.self!==window.top}catch{return!0}})())},[]),n},N3=n=>a=>{const i=a.key;(i==="ArrowDown"||i==="ArrowRight"||i==="Enter"||i===" "||i==="Space")&&(a.stopPropagation(),n())},M3=({onClick:n})=>{const a=tt();return A_()?y.jsx("button",{className:"tooltip--bottom-left","aria-label":a("header.close-chat"),"data-title":a("header.close-chat"),tabIndex:0,onClick:n,onKeyDown:N3(n),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},D3="_header_3gvbz_1",L3="_logoContainer_3gvbz_14",B3="_logo_3gvbz_14",U3="_actions_3gvbz_28",j3="_active_3gvbz_43",H3="_menuContainer_3gvbz_56",I3="_menu_3gvbz_56",z3="_divider_3gvbz_86",sr={header:D3,logoContainer:L3,logo:B3,actions:U3,active:j3,menuContainer:H3,menu:I3,divider:z3},G3=({icon:n})=>{switch(n){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",{})}},k3=B.forwardRef(({selected:n,item:a,onClick:i},s)=>{const u=tt(),f=d=>{d.preventDefault(),i()};return y.jsx("li",{"aria-selected":n,role:"option",className:a.withDivider?sr.divider:void 0,children:y.jsxs("a",{ref:s,type:"button",role:"button",tabIndex:-1,onClick:f,children:[y.jsx(G3,{icon:a.icon}),y.jsx("span",{children:u(`header.menu.${a.id}`)})]})})}),q3=(n,a)=>{const i=A_(),{menuItems:s,enableStandaloneView:u,enableTranscriptExportPdf:f,enableTranscriptExportEmail:d}=ut(g=>g.settings),h=ut(g=>g.chat.conversationRating.enabled);return B.useMemo(()=>{const g=[],b=s.filter(({visibility:_})=>n?_==="always"||_==="chat-only":_==="always"||_==="start-screen-only");if(n&&(g.push({id:"restart-chat",type:"restart-chat",icon:"arrow-counter-clockwise",visibility:"chat-only"}),i&&u&&g.push({id:"expand-chat-window",type:"expand-chat-window",icon:"expand",visibility:"always"}),a&&f&&g.push({id:"download-transcript",type:"download-transcript",icon:"download",visibility:"chat-only"}),a&&d&&g.push({id:"send-transcript",type:"send-transcript",icon:"mail",visibility:"chat-only"}),a&&h&&g.push({id:"rate-conversation",type:"rate-conversation",icon:"star",visibility:"chat-only"}),g.length>0&&b.length)){const _=g.pop();_&&s.length&&g.push({..._,withDivider:!0})}return g.push(...b),g},[n,a,f,d,u,h,i,s])},F3=({chatStarted:n,hasGuestMessages:a})=>{const i=Da(),s=tt(),[u,f]=B.useState(!1),[d,h]=B.useState(-1),m=B.useRef(null),g=B.useRef(null),b=B.useRef([]),_=q3(n,a);B.useEffect(()=>{b.current[d]?.focus()},[d]);const A=B.useCallback(()=>{i(a?pu("RESTART_CHAT"):ls()),f(!1),h(0)},[a,i]),U=B.useCallback(I=>{switch(I.type){case"restart-chat":A();break;case"expand-chat-window":window.open(window.location.href,"_blank");break;case"download-transcript":i(YO());break;case"send-transcript":i(n_());break;case"rate-conversation":i(pu("MENU"));break;case"link":i(j1(I.url));break;case"action":i(JSON.parse(JSON.stringify(I.action)));break}f(!1)},[i,A,f]);B.useEffect(()=>{const I=E=>{if(u)switch(E.key){case"Enter":E.preventDefault(),U(_[d]);break;case"ArrowUp":h(C=>C>0?C-1:_.length-1);break;case"ArrowDown":h(C=>C<_.length-1?C+1:0);break;case"Escape":f(!1);break;case"Tab":d>-1&&f(!1);break}};return document.addEventListener("keydown",I),()=>{document.removeEventListener("keydown",I)}},[u,d,_,h,f,U]),B.useEffect(()=>{u||h(-1)},[u,d]),lm(g,()=>f(!1));const x=()=>{f(I=>!I)},k=()=>{setTimeout(()=>{const I=document.activeElement;g.current&&!g.current.contains(I)&&f(!1)},0)};return _.length?y.jsxs("div",{className:K(sr.menuContainer),ref:g,children:[y.jsx("button",{ref:m,className:K(u&&sr.active,u?"tooltip-hidden":"tooltip--bottom-left"),"aria-label":s("header.menu.title"),"data-title":s("header.menu.title"),onClick:x,onBlur:k,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"})})}),u&&y.jsx("nav",{className:sr.menu,"aria-label":s("header.menu.title"),children:y.jsx("ul",{tabIndex:0,children:_.map((I,E)=>y.jsx(k3,{ref:C=>{b.current[E]=C},selected:d===E,item:I,onClick:()=>U(I)},I.id))})})]}):null},bv=({className:n,chatStarted:a,...i})=>{const s=Da(),u=ut(h=>h.chat.conversationRating),f=ut(h=>h.chat.messages.some(m=>m.sender.type===Te.UserType.GUEST)),d=()=>{u.enabled&&!u.opener&&f?s(pu("CLOSE_CHAT")):s(t_())};return y.jsxs("div",{className:K([sr.header,n]),...i,children:[y.jsx("div",{className:sr.logoContainer,children:y.jsx("div",{className:sr.logo})}),y.jsxs("div",{className:sr.actions,children:[y.jsx(F3,{chatStarted:a,hasGuestMessages:f}),y.jsx(M3,{onClick:d})]})]})},V3="_chatwindow_rkbir_1",Y3="_chatwindowWithAside_rkbir_21",vv={chatwindow:V3,chatwindowWithAside:Y3},O_=()=>{const[n,a]=B.useState(!1);return B.useEffect(()=>{const i=window.matchMedia("(max-width: 1023px)"),s=()=>a(i.matches);return s(),i.addEventListener("change",s),()=>i.removeEventListener("change",s)},[]),n},P3="_sourceInfos_vei0l_1",X3="_waitForLoading_vei0l_24",Z3="_loadingContent_vei0l_28",Q3="_sourceHeader_vei0l_37",K3="_sourceHeaderIcon_vei0l_57",$3="_sourceContent_vei0l_61",W3="_openSourceButton_vei0l_69",J3="_sourceButtonLabel_vei0l_79",eN="_closeSourceInfosButton_vei0l_101",tN="_loadingSourceInfos_vei0l_125",nN="_loading_vei0l_28",aN="_loadingError_vei0l_139",rN="_highlightLoadingInfo_vei0l_155",iN="_highlightLoadingInfoInnerContainer_vei0l_169",lN="_highlightLoadingInfoContent_vei0l_178",sN="_highlightLoadingInfoCloseIcon_vei0l_198",oN="_highlightLoader_vei0l_203",uN="_highlightLoaderLoading_vei0l_210",xt={sourceInfos:P3,waitForLoading:X3,loadingContent:Z3,sourceHeader:Q3,sourceHeaderIcon:K3,sourceContent:$3,openSourceButton:W3,sourceButtonLabel:J3,closeSourceInfosButton:eN,loadingSourceInfos:tN,loading:nN,loadingError:aN,highlightLoadingInfo:rN,highlightLoadingInfoInnerContainer:iN,highlightLoadingInfoContent:lN,highlightLoadingInfoCloseIcon:sN,highlightLoader:oN,highlightLoaderLoading:uN},cN=({onClick:n})=>{const a=tt();return y.jsx("button",{className:K(xt.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":a("source-infos.close"),"data-title":a("source-infos.close"),tabIndex:0,onClick:n,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"})})})},fN=B.forwardRef(({sourceInfos:n,onClose:a,...i},s)=>y.jsxs("div",{className:xt.sourceHeader,...i,ref:s,children:[y.jsx("div",{children:n?y.jsx("p",{id:"source-info-title",children:n.title}):y.jsx("p",{children:" "})}),y.jsx(cN,{onClick:a})]})),dN=({loading:n})=>y.jsx("div",{className:xt.highlightLoader,children:n&&y.jsx("div",{className:xt.highlightLoaderLoading})});/*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */const{entries:x_,setPrototypeOf:_v,isFrozen:hN,getPrototypeOf:mN,getOwnPropertyDescriptor:pN}=Object;let{freeze:kt,seal:xn,create:_h}=Object,{apply:Eh,construct:Sh}=typeof Reflect<"u"&&Reflect;kt||(kt=function(a){return a});xn||(xn=function(a){return a});Eh||(Eh=function(a,i){for(var s=arguments.length,u=new Array(s>2?s-2:0),f=2;f<s;f++)u[f-2]=arguments[f];return a.apply(i,u)});Sh||(Sh=function(a){for(var i=arguments.length,s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];return new a(...s)});const Ko=qt(Array.prototype.forEach),gN=qt(Array.prototype.lastIndexOf),Ev=qt(Array.prototype.pop),Fl=qt(Array.prototype.push),yN=qt(Array.prototype.splice),au=qt(String.prototype.toLowerCase),Fd=qt(String.prototype.toString),Vd=qt(String.prototype.match),Vl=qt(String.prototype.replace),bN=qt(String.prototype.indexOf),vN=qt(String.prototype.trim),In=qt(Object.prototype.hasOwnProperty),It=qt(RegExp.prototype.test),Yl=_N(TypeError);function qt(n){return function(a){a instanceof RegExp&&(a.lastIndex=0);for(var i=arguments.length,s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];return Eh(n,a,s)}}function _N(n){return function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return Sh(n,i)}}function Ce(n,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:au;_v&&_v(n,null);let s=a.length;for(;s--;){let u=a[s];if(typeof u=="string"){const f=i(u);f!==u&&(hN(a)||(a[s]=f),u=f)}n[u]=!0}return n}function EN(n){for(let a=0;a<n.length;a++)In(n,a)||(n[a]=null);return n}function xa(n){const a=_h(null);for(const[i,s]of x_(n))In(n,i)&&(Array.isArray(s)?a[i]=EN(s):s&&typeof s=="object"&&s.constructor===Object?a[i]=xa(s):a[i]=s);return a}function Pl(n,a){for(;n!==null;){const s=pN(n,a);if(s){if(s.get)return qt(s.get);if(typeof s.value=="function")return qt(s.value)}n=mN(n)}function i(){return null}return i}const Sv=kt(["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"]),Yd=kt(["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"]),Pd=kt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),SN=kt(["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"]),Xd=kt(["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"]),TN=kt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Tv=kt(["#text"]),Av=kt(["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=kt(["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"]),Ov=kt(["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"]),$o=kt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),AN=xn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ON=xn(/<%[\w\W]*|[\w\W]*%>/gm),xN=xn(/\$\{[\w\W]*/gm),CN=xn(/^data-[\-\w.\u00B7-\uFFFF]+$/),RN=xn(/^aria-[\-\w]+$/),C_=xn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),wN=xn(/^(?:\w+script|data):/i),NN=xn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),R_=xn(/^html$/i),MN=xn(/^[a-z][.\w]*(-[.\w]+)+$/i);var xv=Object.freeze({__proto__:null,ARIA_ATTR:RN,ATTR_WHITESPACE:NN,CUSTOM_ELEMENT:MN,DATA_ATTR:CN,DOCTYPE_NAME:R_,ERB_EXPR:ON,IS_ALLOWED_URI:C_,IS_SCRIPT_OR_DATA:wN,MUSTACHE_EXPR:AN,TMPLIT_EXPR:xN});const Xl={element:1,text:3,progressingInstruction:7,comment:8,document:9},DN=function(){return typeof window>"u"?null:window},LN=function(a,i){if(typeof a!="object"||typeof a.createPolicy!="function")return null;let s=null;const u="data-tt-policy-suffix";i&&i.hasAttribute(u)&&(s=i.getAttribute(u));const f="dompurify"+(s?"#"+s:"");try{return a.createPolicy(f,{createHTML(d){return d},createScriptURL(d){return d}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},Cv=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function w_(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:DN();const a=ie=>w_(ie);if(a.version="3.3.0",a.removed=[],!n||!n.document||n.document.nodeType!==Xl.document||!n.Element)return a.isSupported=!1,a;let{document:i}=n;const s=i,u=s.currentScript,{DocumentFragment:f,HTMLTemplateElement:d,Node:h,Element:m,NodeFilter:g,NamedNodeMap:b=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:_,DOMParser:A,trustedTypes:U}=n,x=m.prototype,k=Pl(x,"cloneNode"),I=Pl(x,"remove"),E=Pl(x,"nextSibling"),C=Pl(x,"childNodes"),S=Pl(x,"parentNode");if(typeof d=="function"){const ie=i.createElement("template");ie.content&&ie.content.ownerDocument&&(i=ie.content.ownerDocument)}let H,N="";const{implementation:Z,createNodeIterator:X,createDocumentFragment:te,getElementsByTagName:de}=i,{importNode:ye}=s;let re=Cv();a.isSupported=typeof x_=="function"&&typeof S=="function"&&Z&&Z.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:pe,ERB_EXPR:ce,TMPLIT_EXPR:Xe,DATA_ATTR:Ne,ARIA_ATTR:G,IS_SCRIPT_OR_DATA:$,ATTR_WHITESPACE:ne,CUSTOM_ELEMENT:Se}=xv;let{IS_ALLOWED_URI:Ae}=xv,O=null;const q=Ce({},[...Sv,...Yd,...Pd,...Xd,...Tv]);let P=null;const W=Ce({},[...Av,...Zd,...Ov,...$o]);let J=Object.seal(_h(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),fe=null,_e=null;const We=Object.seal(_h(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ge=!0,$t=!0,La=!1,vt=!0,jt=!1,dn=!0,wn=!1,cr=!1,Bi=!1,ea=!1,Ba=!1,Ua=!1,Vr=!0,ss=!1;const Bu="user-content-";let Ct=!0,fr=!1,ta={},na=null;const dr=Ce({},["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 os=null;const Ui=Ce({},["audio","video","img","source","image","track"]);let ji=null;const us=Ce({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),kn="http://www.w3.org/1998/Math/MathML",St="http://www.w3.org/2000/svg",Tt="http://www.w3.org/1999/xhtml";let ct=Tt,Hi=!1,Ii=null;const Uu=Ce({},[kn,St,Tt],Fd);let aa=Ce({},["mi","mo","mn","ms","mtext"]),ra=Ce({},["annotation-xml"]);const Yr=Ce({},["title","style","font","a","script"]);let Wt=null;const Pr=["application/xhtml+xml","text/html"],hr="text/html";let ft=null,ia=null;const zi=i.createElement("form"),ja=function(R){return R instanceof RegExp||R instanceof Function},Gi=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ia&&ia===R)){if((!R||typeof R!="object")&&(R={}),R=xa(R),Wt=Pr.indexOf(R.PARSER_MEDIA_TYPE)===-1?hr:R.PARSER_MEDIA_TYPE,ft=Wt==="application/xhtml+xml"?Fd:au,O=In(R,"ALLOWED_TAGS")?Ce({},R.ALLOWED_TAGS,ft):q,P=In(R,"ALLOWED_ATTR")?Ce({},R.ALLOWED_ATTR,ft):W,Ii=In(R,"ALLOWED_NAMESPACES")?Ce({},R.ALLOWED_NAMESPACES,Fd):Uu,ji=In(R,"ADD_URI_SAFE_ATTR")?Ce(xa(us),R.ADD_URI_SAFE_ATTR,ft):us,os=In(R,"ADD_DATA_URI_TAGS")?Ce(xa(Ui),R.ADD_DATA_URI_TAGS,ft):Ui,na=In(R,"FORBID_CONTENTS")?Ce({},R.FORBID_CONTENTS,ft):dr,fe=In(R,"FORBID_TAGS")?Ce({},R.FORBID_TAGS,ft):xa({}),_e=In(R,"FORBID_ATTR")?Ce({},R.FORBID_ATTR,ft):xa({}),ta=In(R,"USE_PROFILES")?R.USE_PROFILES:!1,Ge=R.ALLOW_ARIA_ATTR!==!1,$t=R.ALLOW_DATA_ATTR!==!1,La=R.ALLOW_UNKNOWN_PROTOCOLS||!1,vt=R.ALLOW_SELF_CLOSE_IN_ATTR!==!1,jt=R.SAFE_FOR_TEMPLATES||!1,dn=R.SAFE_FOR_XML!==!1,wn=R.WHOLE_DOCUMENT||!1,ea=R.RETURN_DOM||!1,Ba=R.RETURN_DOM_FRAGMENT||!1,Ua=R.RETURN_TRUSTED_TYPE||!1,Bi=R.FORCE_BODY||!1,Vr=R.SANITIZE_DOM!==!1,ss=R.SANITIZE_NAMED_PROPS||!1,Ct=R.KEEP_CONTENT!==!1,fr=R.IN_PLACE||!1,Ae=R.ALLOWED_URI_REGEXP||C_,ct=R.NAMESPACE||Tt,aa=R.MATHML_TEXT_INTEGRATION_POINTS||aa,ra=R.HTML_INTEGRATION_POINTS||ra,J=R.CUSTOM_ELEMENT_HANDLING||{},R.CUSTOM_ELEMENT_HANDLING&&ja(R.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(J.tagNameCheck=R.CUSTOM_ELEMENT_HANDLING.tagNameCheck),R.CUSTOM_ELEMENT_HANDLING&&ja(R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(J.attributeNameCheck=R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),R.CUSTOM_ELEMENT_HANDLING&&typeof R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(J.allowCustomizedBuiltInElements=R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),jt&&($t=!1),Ba&&(ea=!0),ta&&(O=Ce({},Tv),P=[],ta.html===!0&&(Ce(O,Sv),Ce(P,Av)),ta.svg===!0&&(Ce(O,Yd),Ce(P,Zd),Ce(P,$o)),ta.svgFilters===!0&&(Ce(O,Pd),Ce(P,Zd),Ce(P,$o)),ta.mathMl===!0&&(Ce(O,Xd),Ce(P,Ov),Ce(P,$o))),R.ADD_TAGS&&(typeof R.ADD_TAGS=="function"?We.tagCheck=R.ADD_TAGS:(O===q&&(O=xa(O)),Ce(O,R.ADD_TAGS,ft))),R.ADD_ATTR&&(typeof R.ADD_ATTR=="function"?We.attributeCheck=R.ADD_ATTR:(P===W&&(P=xa(P)),Ce(P,R.ADD_ATTR,ft))),R.ADD_URI_SAFE_ATTR&&Ce(ji,R.ADD_URI_SAFE_ATTR,ft),R.FORBID_CONTENTS&&(na===dr&&(na=xa(na)),Ce(na,R.FORBID_CONTENTS,ft)),Ct&&(O["#text"]=!0),wn&&Ce(O,["html","head","body"]),O.table&&(Ce(O,["tbody"]),delete fe.tbody),R.TRUSTED_TYPES_POLICY){if(typeof R.TRUSTED_TYPES_POLICY.createHTML!="function")throw Yl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof R.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Yl('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');H=R.TRUSTED_TYPES_POLICY,N=H.createHTML("")}else H===void 0&&(H=LN(U,u)),H!==null&&typeof N=="string"&&(N=H.createHTML(""));kt&&kt(R),ia=R}},ki=Ce({},[...Yd,...Pd,...SN]),qi=Ce({},[...Xd,...TN]),cs=function(R){let Q=S(R);(!Q||!Q.tagName)&&(Q={namespaceURI:ct,tagName:"template"});const ee=au(R.tagName),Ie=au(Q.tagName);return Ii[R.namespaceURI]?R.namespaceURI===St?Q.namespaceURI===Tt?ee==="svg":Q.namespaceURI===kn?ee==="svg"&&(Ie==="annotation-xml"||aa[Ie]):!!ki[ee]:R.namespaceURI===kn?Q.namespaceURI===Tt?ee==="math":Q.namespaceURI===St?ee==="math"&&ra[Ie]:!!qi[ee]:R.namespaceURI===Tt?Q.namespaceURI===St&&!ra[Ie]||Q.namespaceURI===kn&&!aa[Ie]?!1:!qi[ee]&&(Yr[ee]||!ki[ee]):!!(Wt==="application/xhtml+xml"&&Ii[R.namespaceURI]):!1},Ft=function(R){Fl(a.removed,{element:R});try{S(R).removeChild(R)}catch{I(R)}},Nn=function(R,Q){try{Fl(a.removed,{attribute:Q.getAttributeNode(R),from:Q})}catch{Fl(a.removed,{attribute:null,from:Q})}if(Q.removeAttribute(R),R==="is")if(ea||Ba)try{Ft(Q)}catch{}else try{Q.setAttribute(R,"")}catch{}},Fi=function(R){let Q=null,ee=null;if(Bi)R="<remove></remove>"+R;else{const Ee=Vd(R,/^[\r\n\t ]+/);ee=Ee&&Ee[0]}Wt==="application/xhtml+xml"&&ct===Tt&&(R='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+R+"</body></html>");const Ie=H?H.createHTML(R):R;if(ct===Tt)try{Q=new A().parseFromString(Ie,Wt)}catch{}if(!Q||!Q.documentElement){Q=Z.createDocument(ct,"template",null);try{Q.documentElement.innerHTML=Hi?N:Ie}catch{}}const nt=Q.body||Q.documentElement;return R&&ee&&nt.insertBefore(i.createTextNode(ee),nt.childNodes[0]||null),ct===Tt?de.call(Q,wn?"html":"body")[0]:wn?Q.documentElement:nt},Vi=function(R){return X.call(R.ownerDocument||R,R,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},hn=function(R){return R instanceof _&&(typeof R.nodeName!="string"||typeof R.textContent!="string"||typeof R.removeChild!="function"||!(R.attributes instanceof b)||typeof R.removeAttribute!="function"||typeof R.setAttribute!="function"||typeof R.namespaceURI!="string"||typeof R.insertBefore!="function"||typeof R.hasChildNodes!="function")},dt=function(R){return typeof h=="function"&&R instanceof h};function Je(ie,R,Q){Ko(ie,ee=>{ee.call(a,R,Q,ia)})}const la=function(R){let Q=null;if(Je(re.beforeSanitizeElements,R,null),hn(R))return Ft(R),!0;const ee=ft(R.nodeName);if(Je(re.uponSanitizeElement,R,{tagName:ee,allowedTags:O}),dn&&R.hasChildNodes()&&!dt(R.firstElementChild)&&It(/<[/\w!]/g,R.innerHTML)&&It(/<[/\w!]/g,R.textContent)||R.nodeType===Xl.progressingInstruction||dn&&R.nodeType===Xl.comment&&It(/<[/\w]/g,R.data))return Ft(R),!0;if(!(We.tagCheck instanceof Function&&We.tagCheck(ee))&&(!O[ee]||fe[ee])){if(!fe[ee]&&fs(ee)&&(J.tagNameCheck instanceof RegExp&&It(J.tagNameCheck,ee)||J.tagNameCheck instanceof Function&&J.tagNameCheck(ee)))return!1;if(Ct&&!na[ee]){const Ie=S(R)||R.parentNode,nt=C(R)||R.childNodes;if(nt&&Ie){const Ee=nt.length;for(let Rt=Ee-1;Rt>=0;--Rt){const mn=k(nt[Rt],!0);mn.__removalCount=(R.__removalCount||0)+1,Ie.insertBefore(mn,E(R))}}}return Ft(R),!0}return R instanceof m&&!cs(R)||(ee==="noscript"||ee==="noembed"||ee==="noframes")&&It(/<\/no(script|embed|frames)/i,R.innerHTML)?(Ft(R),!0):(jt&&R.nodeType===Xl.text&&(Q=R.textContent,Ko([pe,ce,Xe],Ie=>{Q=Vl(Q,Ie," ")}),R.textContent!==Q&&(Fl(a.removed,{element:R.cloneNode()}),R.textContent=Q)),Je(re.afterSanitizeElements,R,null),!1)},Xr=function(R,Q,ee){if(Vr&&(Q==="id"||Q==="name")&&(ee in i||ee in zi))return!1;if(!($t&&!_e[Q]&&It(Ne,Q))){if(!(Ge&&It(G,Q))){if(!(We.attributeCheck instanceof Function&&We.attributeCheck(Q,R))){if(!P[Q]||_e[Q]){if(!(fs(R)&&(J.tagNameCheck instanceof RegExp&&It(J.tagNameCheck,R)||J.tagNameCheck instanceof Function&&J.tagNameCheck(R))&&(J.attributeNameCheck instanceof RegExp&&It(J.attributeNameCheck,Q)||J.attributeNameCheck instanceof Function&&J.attributeNameCheck(Q,R))||Q==="is"&&J.allowCustomizedBuiltInElements&&(J.tagNameCheck instanceof RegExp&&It(J.tagNameCheck,ee)||J.tagNameCheck instanceof Function&&J.tagNameCheck(ee))))return!1}else if(!ji[Q]){if(!It(Ae,Vl(ee,ne,""))){if(!((Q==="src"||Q==="xlink:href"||Q==="href")&&R!=="script"&&bN(ee,"data:")===0&&os[R])){if(!(La&&!It($,Vl(ee,ne,"")))){if(ee)return!1}}}}}}}return!0},fs=function(R){return R!=="annotation-xml"&&Vd(R,Se)},ds=function(R){Je(re.beforeSanitizeAttributes,R,null);const{attributes:Q}=R;if(!Q||hn(R))return;const ee={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:P,forceKeepAttr:void 0};let Ie=Q.length;for(;Ie--;){const nt=Q[Ie],{name:Ee,namespaceURI:Rt,value:mn}=nt,Vt=ft(Ee),qn=mn;let _t=Ee==="value"?qn:vN(qn);if(ee.attrName=Vt,ee.attrValue=_t,ee.keepAttr=!0,ee.forceKeepAttr=void 0,Je(re.uponSanitizeAttribute,R,ee),_t=ee.attrValue,ss&&(Vt==="id"||Vt==="name")&&(Nn(Ee,R),_t=Bu+_t),dn&&It(/((--!?|])>)|<\/(style|title|textarea)/i,_t)){Nn(Ee,R);continue}if(Vt==="attributename"&&Vd(_t,"href")){Nn(Ee,R);continue}if(ee.forceKeepAttr)continue;if(!ee.keepAttr){Nn(Ee,R);continue}if(!vt&&It(/\/>/i,_t)){Nn(Ee,R);continue}jt&&Ko([pe,ce,Xe],Pi=>{_t=Vl(_t,Pi," ")});const Yi=ft(R.nodeName);if(!Xr(Yi,Vt,_t)){Nn(Ee,R);continue}if(H&&typeof U=="object"&&typeof U.getAttributeType=="function"&&!Rt)switch(U.getAttributeType(Yi,Vt)){case"TrustedHTML":{_t=H.createHTML(_t);break}case"TrustedScriptURL":{_t=H.createScriptURL(_t);break}}if(_t!==qn)try{Rt?R.setAttributeNS(Rt,Ee,_t):R.setAttribute(Ee,_t),hn(R)?Ft(R):Ev(a.removed)}catch{Nn(Ee,R)}}Je(re.afterSanitizeAttributes,R,null)},hs=function ie(R){let Q=null;const ee=Vi(R);for(Je(re.beforeSanitizeShadowDOM,R,null);Q=ee.nextNode();)Je(re.uponSanitizeShadowNode,Q,null),la(Q),ds(Q),Q.content instanceof f&&ie(Q.content);Je(re.afterSanitizeShadowDOM,R,null)};return a.sanitize=function(ie){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q=null,ee=null,Ie=null,nt=null;if(Hi=!ie,Hi&&(ie="<!-->"),typeof ie!="string"&&!dt(ie))if(typeof ie.toString=="function"){if(ie=ie.toString(),typeof ie!="string")throw Yl("dirty is not a string, aborting")}else throw Yl("toString is not a function");if(!a.isSupported)return ie;if(cr||Gi(R),a.removed=[],typeof ie=="string"&&(fr=!1),fr){if(ie.nodeName){const mn=ft(ie.nodeName);if(!O[mn]||fe[mn])throw Yl("root node is forbidden and cannot be sanitized in-place")}}else if(ie instanceof h)Q=Fi("<!---->"),ee=Q.ownerDocument.importNode(ie,!0),ee.nodeType===Xl.element&&ee.nodeName==="BODY"||ee.nodeName==="HTML"?Q=ee:Q.appendChild(ee);else{if(!ea&&!jt&&!wn&&ie.indexOf("<")===-1)return H&&Ua?H.createHTML(ie):ie;if(Q=Fi(ie),!Q)return ea?null:Ua?N:""}Q&&Bi&&Ft(Q.firstChild);const Ee=Vi(fr?ie:Q);for(;Ie=Ee.nextNode();)la(Ie),ds(Ie),Ie.content instanceof f&&hs(Ie.content);if(fr)return ie;if(ea){if(Ba)for(nt=te.call(Q.ownerDocument);Q.firstChild;)nt.appendChild(Q.firstChild);else nt=Q;return(P.shadowroot||P.shadowrootmode)&&(nt=ye.call(s,nt,!0)),nt}let Rt=wn?Q.outerHTML:Q.innerHTML;return wn&&O["!doctype"]&&Q.ownerDocument&&Q.ownerDocument.doctype&&Q.ownerDocument.doctype.name&&It(R_,Q.ownerDocument.doctype.name)&&(Rt="<!DOCTYPE "+Q.ownerDocument.doctype.name+`>
112
+ `+Rt),jt&&Ko([pe,ce,Xe],mn=>{Rt=Vl(Rt,mn," ")}),H&&Ua?H.createHTML(Rt):Rt},a.setConfig=function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Gi(ie),cr=!0},a.clearConfig=function(){ia=null,cr=!1},a.isValidAttribute=function(ie,R,Q){ia||Gi({});const ee=ft(ie),Ie=ft(R);return Xr(ee,Ie,Q)},a.addHook=function(ie,R){typeof R=="function"&&Fl(re[ie],R)},a.removeHook=function(ie,R){if(R!==void 0){const Q=gN(re[ie],R);return Q===-1?void 0:yN(re[ie],Q,1)[0]}return Ev(re[ie])},a.removeHooks=function(ie){re[ie]=[]},a.removeAllHooks=function(){re=Cv()},a}var BN=w_();const UN=({onClose:n})=>{const a=tt();return y.jsxs("div",{className:xt.highlightLoadingInfo,onClick:n,children:[y.jsx("div",{className:xt.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:xt.highlightLoadingInfoInnerContainer,children:[y.jsxs("div",{className:xt.highlightLoadingInfoContent,children:[y.jsx("h3",{children:a("source-infos.highlight-loading.title")}),y.jsx("p",{children:a("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"})})]})]})},jN=({title:n,href:a,children:i})=>y.jsx("a",{href:a,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),HN=({className:n,children:a,...i})=>y.jsx("a",{className:K(ts.button,ts.buttonDefault,n),type:"button",role:"button",...i,children:a}),IN=n=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,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"})}),zN=({type:n,...a})=>{switch(n){case"WEBSITE":return y.jsx(v_,{...a});case"PDF":return y.jsx(b_,{...a});case"DOCX":return y.jsx(g_,{...a});case"TEXT":return y.jsx(IN,{...a});default:return y.jsx(y_,{...a})}},GN=({url:n,knowledgeBaseType:a})=>{const i=tt();return y.jsx(HN,{className:xt.openSourceButton,href:n,target:"_blank",children:y.jsxs("div",{className:xt.sourceButtonLabel,children:[y.jsx("div",{className:xt.sourceHeaderIcon,children:y.jsx(zN,{type:a})}),y.jsx("p",{children:i("source-infos.open-source")})]})})},kN=({sourceInfos:{content:n,url:a,knowledgeBaseType:i,highlighted:s}})=>{const[u,f]=B.useState(!s);B.useEffect(()=>{s&&f(!1)},[s]);const d=BN.sanitize(n,{USE_PROFILES:{html:!0}});return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:K(xt.sourceContent,E_.markdown),children:[y.jsx(Ra,{options:{overrides:{a:jN}},children:d}),u&&y.jsx(UN,{onClose:()=>f(!1)})]}),y.jsx(GN,{url:a,knowledgeBaseType:i})]})},qN=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,FN=()=>{const n=tt();return y.jsxs("div",{className:xt.loadingError,children:[y.jsx("h1",{children:n("source-infos.error.title")}),y.jsx("img",{src:qN,title:n("source-infos.error.title")}),y.jsx("p",{children:n("source-infos.error.info")})]})},VN=()=>y.jsx("div",{className:xt.loadingSourceInfos,children:y.jsx("svg",{className:xt.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 YN({sourceInfos:n,onClose:a,threshold:i=100}){const s=B.useRef(null),[u,f]=B.useState(0),[d,h]=B.useState(!1),m=B.useRef(null),g=B.useRef(null),b=B.useCallback(x=>{m.current=x,h(!0)},[]),_=B.useCallback(x=>{if(m.current!==null&&d){const k=x-m.current;k>0&&f(k)}},[d]),A=B.useCallback(()=>{h(!1),u>i&&a(),f(0),m.current=null},[u,i,a]),U=B.useCallback(x=>{const k=N=>b(N.touches[0].clientY),I=N=>_(N.touches[0].clientY),E=()=>A(),C=N=>{N.preventDefault(),b(N.clientY),window.addEventListener("mousemove",S),window.addEventListener("mouseup",H)},S=N=>_(N.clientY),H=()=>{A(),window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",H)};x.addEventListener("touchstart",k),x.addEventListener("touchmove",I),x.addEventListener("touchend",E),x.addEventListener("mousedown",C),g.current=()=>{x.removeEventListener("touchstart",k),x.removeEventListener("touchmove",I),x.removeEventListener("touchend",E),x.removeEventListener("mousedown",C),window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",H)}},[b,_,A]);return B.useEffect(()=>{let x;return(()=>{s.current?(g.current?.(),U(s.current)):(x=new MutationObserver(()=>{s.current&&(g.current?.(),U(s.current),x?.disconnect())}),x.observe(document.body,{childList:!0,subtree:!0}))})(),()=>{x?.disconnect(),g.current?.()}},[U,n]),{ref:s,dragOffsetY:u,isDragging:d}}const PN=n=>{const[a,i]=B.useState(!0);return B.useEffect(()=>{let s=null;return n?.type==="loading"?(i(!0),s=setTimeout(()=>{i(!1)},300)):i(!n),()=>{s&&clearTimeout(s)}},[n]),a},XN=()=>{const n=Da(),a=ut(m=>m.chat.sourceInfos),i=O_(),s=B.useRef(null),u=PN(a);B.useEffect(()=>{s.current&&a?.type==="loading"&&(i?s.current.showModal():(s.current.setAttribute("open","true"),s.current?.focus()))},[a,i]);const f=B.useCallback(()=>{s.current&&(i?s.current.close():s.current.removeAttribute("open"),n(Xx()))},[n,i]),{ref:d,dragOffsetY:h}=YN({onClose:f,sourceInfos:a});return a?y.jsx("dialog",{ref:s,className:K(xt.sourceInfos,u?xt.waitForLoading:a.type==="loading"?xt.loadingContent:""),style:i&&h?{transform:`translateY(${h}px)`}:{},onClose:f,autoFocus:!0,role:"dialog","aria-labelledby":"source-info-title",children:u?null:y.jsxs(y.Fragment,{children:[y.jsx(fN,{ref:d,tabIndex:-1,sourceInfos:a.type==="loaded"?a:void 0,onClose:f}),a.type==="loading"?y.jsx(VN,{}):a.type==="loading-error"?y.jsx(FN,{}):y.jsxs(y.Fragment,{children:[y.jsx(dN,{loading:!a.highlighted}),y.jsx(kN,{sourceInfos:a})]})]})}):null},ZN="_container_1aof3_1",QN="_body_1aof3_7",KN="_intro_1aof3_14",$N="_footer_1aof3_39",WN="_footnote_1aof3_43",JN="_containerWithFootnote_1aof3_58",e8="_startChatButton_1aof3_73",t8="_spinner_1aof3_88",n8="_formFields_1aof3_92",a8="_formField_1aof3_92",r8="_radio_1aof3_104",i8="_checkbox_1aof3_111",l8="_input_1aof3_119",s8="_inputLabel_1aof3_153",o8="_selectWrapper_1aof3_157",u8="_select_1aof3_157",c8="_selectLabel_1aof3_203",Ot={container:ZN,body:QN,intro:KN,footer:$N,footnote:WN,containerWithFootnote:JN,startChatButton:e8,spinner:t8,formFields:n8,formField:a8,radio:r8,checkbox:i8,input:l8,inputLabel:s8,selectWrapper:o8,select:u8,selectLabel:c8},f8=({name:n,label:a,defaultValue:i,required:s,onChange:u})=>{const f=d=>{u(d.currentTarget.checked?"true":"false")};return y.jsxs("label",{className:K(Ot.checkbox,"chat__startScreen__checkbox"),htmlFor:n,children:[y.jsx("input",{type:"checkbox",id:n,name:n,defaultChecked:i==="true",required:s,onChange:f}),y.jsx("div",{children:a})]})},d8=({type:n,name:a,label:i,defaultValue:s,placeholder:u,required:f,multiple:d,min:h,max:m,pattern:g,onChange:b})=>{const _=A=>{b(A.target.value)};return y.jsxs("label",{className:K(Ot.input,"chat__startScreen__input"),htmlFor:a,children:[y.jsx("div",{className:K(Ot.inputLabel),children:i}),y.jsx("input",{type:n,id:a,name:a,defaultValue:s,placeholder:u,required:f,multiple:d,min:h,max:m,pattern:g,onChange:_})]})},h8=({name:n,value:a,label:i,defaultChecked:s,required:u,onChange:f})=>{const d=`${n}-${a}`,h=m=>{f(m.target.value)};return y.jsxs("label",{className:K(Ot.radio,"chat__startScreen__radio"),htmlFor:d,children:[y.jsx("input",{id:d,type:"radio",name:n,value:a,defaultChecked:s,required:u,onChange:h}),y.jsx("span",{className:K(Ot.label),children:i})]})},m8=({name:n,label:a,defaultValue:i,required:s,multiple:u,options:f,onChange:d})=>{const h=m=>{d(m.target.value)};return y.jsxs("label",{className:K(Ot.select,"chat__startScreen__select"),htmlFor:n,children:[y.jsx("div",{className:K(Ot.selectLabel),children:a}),y.jsx("div",{className:K(Ot.selectWrapper),children:y.jsx("select",{id:n,name:n,defaultValue:i,required:s,multiple:u,onChange:h,children:Object.entries(f||{}).map(([m,g])=>y.jsx("option",{value:m,selected:g===i,children:g}))})})]})},p8="start-screen.intro",g8="start-screen.start-chat",y8="start-screen.waiting-for-login",b8="start-screen.footnote",Hn="start-screen.form",Rv=`${Hn}.fields`,v8=()=>{const n=tt(),a=Da(),i=um(),s=ut(x=>x.startScreen.loginRequestToken),u=ut(x=>x.settings.requiresUserAuthentication);B.useEffect(()=>{let x;if(s){const E=window.screenX+(window.outerWidth-600)/2,C=window.screenY+(window.outerHeight-700)/2,S=window.open(`/${i}/auth/login?loginRequestToken=${s}`,"Login",`width=600,height=700,left=${E},top=${C},resizable=yes,scrollbars=yes`);x=setInterval(()=>{S?.closed&&(a(Fx()),clearInterval(x))},500)}return()=>{x&&clearInterval(x)}},[i,s,a]);const[f,d]=B.useState({}),h=()=>{const x=Object.entries(f).reduce((k,[I,E])=>({...k,[I]:E.value}),{});a(u?qx({loginRequestToken:uu(),formValues:x}):zx({formValues:x}))},m=n(p8),g=n(s?y8:g8),b=n(b8),_=B.useMemo(()=>n(Rv)?.split(";").map(x=>x.trim())??[],[n(Rv)]);B.useEffect(()=>{_.length&&Object.keys(f).length===0&&d(_.reduce((x,k)=>({...x,[k]:_8(k,n)}),{}))},[n,_,f]);const A=x=>{x.preventDefault(),h()},U=x=>k=>{d(I=>({...I,[x]:{...I[x],value:k}}))};return y.jsxs("form",{onSubmit:A,className:K(Ot.container,b&&Ot.containerWithFootnote,"chat__startScreen"),children:[y.jsxs("div",{className:K(Ot.body,"chat__startScreen__body"),children:[m&&y.jsx("div",{className:K(Ot.intro,"chat__startScreen__intro"),children:y.jsx(Ra,{options:{overrides:{a:wv}},children:m})}),y.jsx("div",{className:K(Ot.formFields,"chat__startScreen__fields"),children:Object.values(f).map(({type:x,name:k,label:I,placeholder:E,defaultValue:C,options:S,required:H,multiple:N,min:Z,max:X,pattern:te})=>y.jsx("div",{className:K(Ot.formField,"chat__startScreen__field"),children:(()=>{switch(x){case"radio":return y.jsxs(y.Fragment,{children:[y.jsx("div",{children:I}),Object.entries(S||{}).map(([de,ye])=>y.jsx(h8,{name:k,value:de,label:ye,defaultChecked:de===C,required:H,onChange:U(k)},de))]});case"checkbox":return y.jsx(f8,{name:k,label:I,defaultValue:C,required:H,onChange:U(k)});case"select":return y.jsx(m8,{name:k,label:I,defaultValue:C,required:H,multiple:N,options:S,onChange:U(k)});default:return y.jsx(d8,{type:x,name:k,label:I,placeholder:E,defaultValue:C,required:H,multiple:N,min:Z,max:X,pattern:te,onChange:U(k)})}})()},k))})]}),y.jsxs("div",{className:K(Ot.footer,"chat__startScreen__footer"),children:[y.jsxs(yu,{type:"submit",className:Ot.startChatButton,disabled:!!s,children:[!!s&&y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",className:Ot.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:g})]}),b&&y.jsx("div",{className:Ot.footnote,children:y.jsx(Ra,{options:{overrides:{a:wv}},children:b})})]})]})},wv=({title:n,href:a,children:i})=>y.jsx("a",{href:a,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),_8=(n,a)=>{const i=a(`${Hn}.${n}.type`)||"text",s=a(`${Hn}.${n}.required`)==="true",u=a(`${Hn}.${n}.multiple`)==="true",f=a(`${Hn}.${n}.placeholder`),d=a(`${Hn}.${n}.label`)||"",h=a(`${Hn}.${n}.defaultValue`),m=a(`${Hn}.${n}.min`),g=a(`${Hn}.${n}.max`),b=a(`${Hn}.${n}.pattern`),_=S8(a(`${Hn}.${n}.options`));return{name:n,label:d,placeholder:f,value:E8(i,h,_)||"",defaultValue:h,options:_,type:i,required:s,multiple:u,min:m,max:g,pattern:b}},E8=(n,a,i)=>a||n==="select"&&Object.keys(i)[0]||"",S8=(n="")=>n.split(";").map(a=>a.trim()).reduce((a,i)=>{const[s,u]=i.split(":").map(f=>f.trim());return{...a,[s]:u}},{}),T8=()=>{const n=Su();B.useEffect(()=>{window.document.documentElement.lang=n.locale},[n.locale])},Ri={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"},A8=({clientName:n})=>{T8();const a=Da(),i=ut(b=>b.intl.messages),s=tt(),u=ut(b=>b.settings.enableStartScreen),f=ut(b=>b.startScreen.startScreenStatus),[d,h]=B.useState(void 0);B.useEffect(()=>{const b=Tu.parse(window.location.search);b.cssClassName&&h(b.cssClassName);const _=A=>{switch(A.data.type){case Ri.TRIGGER_ACTION:a(A.data.action);break;case Ri.TRIGGER_STORY:a(U1(A.data.story));break;case Ri.ON_CHAT_WINDOW_OPEN:a({type:"webclient.chatwindow.opened"});break;case Ri.ON_CHAT_WINDOW_CLOSE:a({type:"webclient.chatwindow.closed"});break;case Ri.CHAT_MESSAGE_FROM_GUEST:a(N1(A.data.text));break;case Ri.RESTART_CHAT:a(ls());break}};return a(Qx(n,b)),window.addEventListener("message",A=>_(A),!1),()=>window.removeEventListener("message",_)},[n,a]),B.useEffect(()=>{const b=s("page.title");b&&document&&(document.title=b)},[i,s]);const m=u===void 0,g=u===!1||f==="HIDDEN";return y.jsx("div",{className:K(vv.chatwindow,g&&vv.chatwindowWithAside,"chat__chatwindow",d),children:m?null:g?y.jsxs(y.Fragment,{children:[y.jsx("header",{children:y.jsx(bv,{chatStarted:!0})}),y.jsx("main",{children:y.jsx(w3,{clientName:n})}),y.jsx("aside",{children:y.jsx(XN,{})})]}):y.jsxs(y.Fragment,{children:[y.jsx("header",{children:y.jsx(bv,{chatStarted:!1})}),y.jsx("main",{children:y.jsx(v8,{})})]})})},O8=()=>{const n=um(),a=O_(),i=ut(u=>u.intl.locale),s=ut(u=>u.intl.messages);return y.jsx(KA,{locale:i,messages:s,onError:()=>{},children:y.jsx("div",{className:K([WA.app,a?"chat__small":"chat__large"]),children:y.jsx(A8,{clientName:n})})})};var Qd,Nv;function x8(){if(Nv)return Qd;Nv=1;var n=m_(),a=sm(),i="Expected a function";function s(u,f,d){var h=!0,m=!0;if(typeof u!="function")throw new TypeError(i);return a(d)&&(h="leading"in d?!!d.leading:h,m="trailing"in d?!!d.trailing:m),n(u,f,{leading:h,maxWait:f,trailing:m})}return Qd=s,Qd}var C8=x8();const R8=vu(C8);function w8(n){return n&&n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function N8(n){return n}function M8(n,a){a=a||{};const i=a.delimiter||".",s=a.maxDepth,u=a.transformKey||N8,f={};function d(h,m,g){g=g||1,Object.keys(h).forEach(function(b){const _=h[b],A=a.safe&&Array.isArray(_),U=Object.prototype.toString.call(_),x=w8(_),k=U==="[object Object]"||U==="[object Array]",I=m?m+i+u(b):u(b);if(!A&&!x&&k&&Object.keys(_).length&&(!a.maxDepth||g<s))return d(_,I,g+1);f[I]=_})}return d(n),f}const N_={"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:
113
113
 
114
114
  - Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
115
115
  - 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"},D8={"page.title":"Bubble Chat Chatbot","message-input-label":"User input","message-input-placeholder":"Enter a message","message-input.actions.submit.label":"Send message","message-input.actions.start-audio-recording.label":"Start voice input","message-input.actions.stop-audio-recording.label":"Stop voice input","message-input.actions.submit-audio-recording.label":"Transmit voice input","guest-bubble.label":"Your message","bot-bubble.label":"Message from the chatbot","bot-bubble.reaction.good":"I like","bot-bubble.reaction.bad":"I don't like it","bot-bubble.reaction.remove":"Remove marker","bot-bubble.reaction.say-more":"Please tell us more","bot-bubble.reaction.category.WRONG_INFORMATION":"Wrong","bot-bubble.reaction.category.MISSING_INFORMATION":"Incomplete","bot-bubble.reaction.category.OLD_INFORMATION":"Outdated","bot-bubble.reaction.category.UNCLEAR":"Unclear","bot-bubble.reaction.category.OFF_TOPIC":"Not relevant to the question","bot-bubble.reaction.comment":"Share your thoughts with us...","bot-bubble.reaction.close":"Close","bot-bubble.copy":"Copy","bot-bubble.sources":"Source list","bot-bubble.source.open":"Open source","agent-bubble.label":"Message from the live agent","export-transcript.email.title":"Receive chat history","export-transcript.email.description":"Please enter the e-mail address to which the chat history should be sent.","export-transcript.email.cancel":"Cancel","export-transcript.email.send":"Send","export-transcript.email.placeholder":"E-mail address","export-transcript.email.invalid":"Please enter a valid e-mail address.","export-transcript.email.success":"The chat history was sent to the e-mail address provided.","general-conditions.header":"**Terms of use**","general-conditions.body":`Please consider the following points:
@@ -121,5 +121,5 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
121
121
  - 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"},B8={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Inserire un messaggio","message-input.actions.submit.label":"Invia messaggio","message-input.actions.start-audio-recording.label":"Avviare l'input vocale","message-input.actions.stop-audio-recording.label":"Interrompere l'input vocale","message-input.actions.submit-audio-recording.label":"Trasmettere l'input vocale","guest-bubble.label":"Il tuo messaggio","bot-bubble.label":"Messaggio del chatbot","bot-bubble.reaction.good":"Mi piace","bot-bubble.reaction.bad":"Non mi piace","bot-bubble.reaction.remove":"Rimuovere il marcatore","bot-bubble.reaction.say-more":"Disci più, per favore","bot-bubble.reaction.category.WRONG_INFORMATION":"Errate","bot-bubble.reaction.category.MISSING_INFORMATION":"Incompleto","bot-bubble.reaction.category.OLD_INFORMATION":"Obsoleta","bot-bubble.reaction.category.UNCLEAR":"Poco chiaro","bot-bubble.reaction.category.OFF_TOPIC":"Non pertinente alla domanda","bot-bubble.reaction.comment":"Condividete con noi i vostri pensieri...","bot-bubble.reaction.close":"Chiudere","bot-bubble.copy":"Copia","bot-bubble.sources":"Elenco delle fonti","bot-bubble.source.open":"Fonte aperta","agent-bubble.label":"Messaggio dell'agente dal vivo","export-transcript.email.title":"Ricevere la cronologia della chat","export-transcript.email.description":"Inserire l'indirizzo e-mail a cui inviare la cronologia della chat.","export-transcript.email.cancel":"Annulla","export-transcript.email.send":"Invia","export-transcript.email.placeholder":"E-mail","export-transcript.email.invalid":"Inserire un indirizzo e-mail valido.","export-transcript.email.success":"La cronologia della chat è stata inviata all'indirizzo e-mail fornito.","general-conditions.header":"**Condizioni di utilizzo**","general-conditions.body":`Si prega di considerare i seguenti punti:
122
122
 
123
123
  - La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
124
- - 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"},U8=["de","en","fr","it"],M_={locale:"de",messages:N_},j8=(n,a)=>{if(U8.includes(n)){const i=H8(n),s=M8(a);return{...i,...s}}return a},H8=n=>{switch(n.toString()){case"en":return D8;case"fr":return L8;case"it":return B8;default:return N_}},I8=(n=z8,a)=>{switch(a.type){case Jh:return Object.assign({},n,{connectionState:kr.CONNECTING});case em:return Object.assign({},n,{connectionState:kr.CONNECTED});case tm:return Object.assign({},n,{connectionState:kr.DISCONNECTED});case nm:return Object.assign({},n,{connectionState:kr.RECONNECTED});case am:return Object.assign({},n,{sessionId:a.sessionId});case Cu:return Object.assign({},n,{sessionId:a.payload.sessionId,userId:a.payload.userId});case Ru:return Object.assign({},n,{sessionId:void 0});default:return n}},z8={connectionState:kr.DISCONNECTED,sessionId:void 0,userId:void 0},G8=(n=Dv,a)=>{switch(a.type){case $1:return Dv;case Cu:return Hr({type:"webclient.chat.started"}),n;case Ru:return Hr({type:"webclient.chat.ended"}),n;case Te.ActionTypes.TYPING_ON:return Object.assign({},n,{isBotTyping:!0});case Te.ActionTypes.TYPING_OFF:return Object.assign({},n,{isBotTyping:!1});case Te.ActionTypes.MESSAGE_FROM_GUEST:case Te.ActionTypes.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return Mv(n,a.message);case Te.ActionTypes.MESSAGE_TO_GUEST:{Hr(a);const i=Object.assign({},a.message,{_id:a.meta.actionId}),s=n.messages.filter(u=>u._id===a.meta.actionId).length>0;return Object.assign({},n,{isBotTyping:!1,messages:s?n.messages:n.messages.concat([i]),quickReplies:i.quickReplies?i.quickReplies:[]})}case Gh:{const i=a.messages,s=i.length?i[i.length-1]:void 0;return Object.assign({},n,{isBotTyping:!1,messages:i,quickReplies:s?.quickReplies||[]})}case zh:return Hr(a.message),n;case Te.ActionTypes.EVENT_TO_GUEST:return Hr(a.event),n;case Te.ActionTypes.DRAWER_OPEN:return Object.assign({},n,{drawerContentUrl:a.payload.parameters.contentUrl});case Te.ActionTypes.DRAWER_CLOSE:return Object.assign({},n,{drawerContentUrl:void 0});case Te.ActionTypes.GUEST_LOCALE_CHANGED:return Object.assign({},n,{locale:a.payload.locale});case D1:return Hr(a),n;case L1:return Hr(a),{...n,conversationRating:{...n.conversationRating,opener:void 0}};case qh:{const i=new Te.TextMessage(a.transcription,new Te.GuestUser),s=Object.assign({},i,{_id:ou()});return Mv(n,s)}case Te.ActionTypes.TRANSCRIPT_ITEM_GUEST_REACTION:{const i=n.messages.map(s=>s._id===a.payload.actionId?Object.assign({},s,a.payload.reaction?{reaction:{type:a.payload.reaction,category:a.payload.category,comment:a.payload.comment}}:{reaction:void 0}):s);return Object.assign({},n,{messages:i})}case Fh:{const i={enabled:!0,rating:a.payload.rating};return Object.assign({},n,{conversationRating:i})}case Te.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const i={...n.conversationRating,rating:a.payload};return Object.assign({},n,{conversationRating:i})}case J1:{const i={...n.conversationRating,opener:a.payload.opener,...a.payload.defaultRating?{rating:{value:a.payload.defaultRating,feedback:n.conversationRating.rating?.feedback||""}}:{}};return Object.assign({},n,{conversationRating:i})}case e_:{const i={...n.conversationRating,opener:void 0};return Object.assign({},n,{conversationRating:i})}case Yh:return{...n,sourceInfos:{type:"loading",chunkId:a.payload.chunkId}};case Vh:{const{highlighted:i}=a.payload;return n.sourceInfos?.type==="loaded"&&i?{...n,sourceInfos:{...n.sourceInfos,highlighted:!0}}:{...n,sourceInfos:{type:"loading-error"}}}case M1:{const i=n.sourceInfos?.type,{chunkId:s,knowledgeBaseType:u,title:f,content:d,highlighted:h,url:m}=a.payload,g=n.sourceInfos?.type==="loading"||n.sourceInfos?.type==="loaded"?n.sourceInfos?.chunkId:void 0;return g&&g!==s?n:i==="loading"||i==="loaded"&&h?{...n,sourceInfos:{type:"loaded",chunkId:s,knowledgeBaseType:u,title:f,content:d,highlighted:h,url:m}}:n}case Ph:return{...n,sourceInfos:void 0};case W1:return{...n,showTranscriptMailOverlay:!n.showTranscriptMailOverlay,conversationRating:{...n.conversationRating,opener:void 0}};default:return n}},Mv=(n,a)=>{const i=n.messages[n.messages.length-1],s=i?.text===a.text;return i&&i.sender.type===a.sender.type&&s?n:Object.assign({},n,{messages:n.messages.concat([a]),quickReplies:[]})},Hr=n=>{k8()?window.top?.postMessage(n,"*"):n.type==="webclient.change.url"&&window.open(n.url)},k8=()=>typeof window<"u"&&window.self!==window.top,Dv={messages:[],quickReplies:[],isBotTyping:!1,showTranscriptMailOverlay:!1,conversationRating:{enabled:!1}},D_=$h({name:"intl",initialState:M_,reducers:{updateIntl:(n,a)=>{n.locale=a.payload.language,n.messages=a.payload.messages}}}),{updateIntl:q8}=D_.actions,F8=D_.reducer,V8={version:void 0,requiresUserAuthentication:!1,enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[],menuItems:[]},L_=$h({name:"settings",initialState:V8,reducers:{setSettings(n,a){n.version&&n.version!==a.payload.version?(console.log("version changed, reloading chat window"),window.location.reload()):(n.version=a.payload.version,n.requiresUserAuthentication=a.payload.requiresUserAuthentication,n.enableStartScreen=a.payload.enableStartScreen,n.enableStandaloneView=a.payload.enableStandaloneView,n.enableTranscriptExportEmail=a.payload.enableTranscriptExportEmail,n.enableTranscriptExportPdf=a.payload.enableTranscriptExportPdf,n.enableGeneralConditions=a.payload.enableGeneralConditions,n.enableSpeechSupport=a.payload.enableSpeechSupport,n.commands=a.payload.commands,n.menuItems=a.payload.menuItems||[])}}}),{setSettings:Y8}=L_.actions,P8=L_.reducer,X8=z1({settings:P8,chat:G8,startScreen:Vx,connection:I8,intl:F8}),Z8="bubble-chat",B_="state-last-saved-at",U_="state",Q8=n=>{try{if(!W8())return;const a=Lv(n,B_);if($8(a))return;{const i=Lv(n,U_);return i===null?void 0:JSON.parse(i)}}catch(a){console.error(a);return}},K8=(n,a)=>{try{const i=JSON.stringify(a);Bv(n,U_,i);const s=new Date().toISOString();Bv(n,B_,s)}catch(i){console.error(i)}},$8=n=>{if(n===null)return!1;const a=new Date(n);return a.setHours(a.getHours()+12),new Date>a},W8=()=>typeof localStorage<"u",Lv=(n,a)=>{const i=j_(n,a);return localStorage.getItem(i)},Bv=(n,a,i)=>{const s=j_(n,a);return localStorage.setItem(s,i)},j_=(n,a)=>`${Z8}-${n}-${a}`,ea=Object.create(null);ea.open="0";ea.close="1";ea.ping="2";ea.pong="3";ea.message="4";ea.upgrade="5";ea.noop="6";const au=Object.create(null);Object.keys(ea).forEach(n=>{au[ea[n]]=n});const Th={type:"error",data:"parser error"},H_=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",I_=typeof ArrayBuffer=="function",z_=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,cm=({type:n,data:a},i,s)=>H_&&a instanceof Blob?i?s(a):Uv(a,s):I_&&(a instanceof ArrayBuffer||z_(a))?i?s(a):Uv(new Blob([a]),s):s(ea[n]+(a||"")),Uv=(n,a)=>{const i=new FileReader;return i.onload=function(){const s=i.result.split(",")[1];a("b"+(s||""))},i.readAsDataURL(n)};function jv(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let Kd;function J8(n,a){if(H_&&n.data instanceof Blob)return n.data.arrayBuffer().then(jv).then(a);if(I_&&(n.data instanceof ArrayBuffer||z_(n.data)))return a(jv(n.data));cm(n,!1,i=>{Kd||(Kd=new TextEncoder),a(Kd.encode(i))})}const Hv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<Hv.length;n++)Wl[Hv.charCodeAt(n)]=n;const eM=n=>{let a=n.length*.75,i=n.length,s,u=0,f,d,h,m;n[n.length-1]==="="&&(a--,n[n.length-2]==="="&&a--);const g=new ArrayBuffer(a),b=new Uint8Array(g);for(s=0;s<i;s+=4)f=Wl[n.charCodeAt(s)],d=Wl[n.charCodeAt(s+1)],h=Wl[n.charCodeAt(s+2)],m=Wl[n.charCodeAt(s+3)],b[u++]=f<<2|d>>4,b[u++]=(d&15)<<4|h>>2,b[u++]=(h&3)<<6|m&63;return g},tM=typeof ArrayBuffer=="function",fm=(n,a)=>{if(typeof n!="string")return{type:"message",data:G_(n,a)};const i=n.charAt(0);return i==="b"?{type:"message",data:nM(n.substring(1),a)}:au[i]?n.length>1?{type:au[i],data:n.substring(1)}:{type:au[i]}:Th},nM=(n,a)=>{if(tM){const i=eM(n);return G_(i,a)}else return{base64:!0,data:n}},G_=(n,a)=>{switch(a){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},k_="",aM=(n,a)=>{const i=n.length,s=new Array(i);let u=0;n.forEach((f,d)=>{cm(f,!1,h=>{s[d]=h,++u===i&&a(s.join(k_))})})},rM=(n,a)=>{const i=n.split(k_),s=[];for(let u=0;u<i.length;u++){const f=fm(i[u],a);if(s.push(f),f.type==="error")break}return s};function iM(){return new TransformStream({transform(n,a){J8(n,i=>{const s=i.length;let u;if(s<126)u=new Uint8Array(1),new DataView(u.buffer).setUint8(0,s);else if(s<65536){u=new Uint8Array(3);const f=new DataView(u.buffer);f.setUint8(0,126),f.setUint16(1,s)}else{u=new Uint8Array(9);const f=new DataView(u.buffer);f.setUint8(0,127),f.setBigUint64(1,BigInt(s))}n.data&&typeof n.data!="string"&&(u[0]|=128),a.enqueue(u),a.enqueue(i)})}})}let $d;function $o(n){return n.reduce((a,i)=>a+i.length,0)}function Wo(n,a){if(n[0].length===a)return n.shift();const i=new Uint8Array(a);let s=0;for(let u=0;u<a;u++)i[u]=n[0][s++],s===n[0].length&&(n.shift(),s=0);return n.length&&s<n[0].length&&(n[0]=n[0].slice(s)),i}function lM(n,a){$d||($d=new TextDecoder);const i=[];let s=0,u=-1,f=!1;return new TransformStream({transform(d,h){for(i.push(d);;){if(s===0){if($o(i)<1)break;const m=Wo(i,1);f=(m[0]&128)===128,u=m[0]&127,u<126?s=3:u===126?s=1:s=2}else if(s===1){if($o(i)<2)break;const m=Wo(i,2);u=new DataView(m.buffer,m.byteOffset,m.length).getUint16(0),s=3}else if(s===2){if($o(i)<8)break;const m=Wo(i,8),g=new DataView(m.buffer,m.byteOffset,m.length),b=g.getUint32(0);if(b>Math.pow(2,21)-1){h.enqueue(Th);break}u=b*Math.pow(2,32)+g.getUint32(4),s=3}else{if($o(i)<u)break;const m=Wo(i,u);h.enqueue(fm(f?m:$d.decode(m),a)),s=0}if(u===0||u>n){h.enqueue(Th);break}}}})}const q_=4;function bt(n){if(n)return sM(n)}function sM(n){for(var a in bt.prototype)n[a]=bt.prototype[a];return n}bt.prototype.on=bt.prototype.addEventListener=function(n,a){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(a),this};bt.prototype.once=function(n,a){function i(){this.off(n,i),a.apply(this,arguments)}return i.fn=a,this.on(n,i),this};bt.prototype.off=bt.prototype.removeListener=bt.prototype.removeAllListeners=bt.prototype.removeEventListener=function(n,a){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+n];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var s,u=0;u<i.length;u++)if(s=i[u],s===a||s.fn===a){i.splice(u,1);break}return i.length===0&&delete this._callbacks["$"+n],this};bt.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var a=new Array(arguments.length-1),i=this._callbacks["$"+n],s=1;s<arguments.length;s++)a[s-1]=arguments[s];if(i){i=i.slice(0);for(var s=0,u=i.length;s<u;++s)i[s].apply(this,a)}return this};bt.prototype.emitReserved=bt.prototype.emit;bt.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};bt.prototype.hasListeners=function(n){return!!this.listeners(n).length};const Du=typeof Promise=="function"&&typeof Promise.resolve=="function"?a=>Promise.resolve().then(a):(a,i)=>i(a,0),xn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),oM="arraybuffer";function F_(n,...a){return a.reduce((i,s)=>(n.hasOwnProperty(s)&&(i[s]=n[s]),i),{})}const uM=xn.setTimeout,cM=xn.clearTimeout;function Lu(n,a){a.useNativeTimers?(n.setTimeoutFn=uM.bind(xn),n.clearTimeoutFn=cM.bind(xn)):(n.setTimeoutFn=xn.setTimeout.bind(xn),n.clearTimeoutFn=xn.clearTimeout.bind(xn))}const fM=1.33;function dM(n){return typeof n=="string"?hM(n):Math.ceil((n.byteLength||n.size)*fM)}function hM(n){let a=0,i=0;for(let s=0,u=n.length;s<u;s++)a=n.charCodeAt(s),a<128?i+=1:a<2048?i+=2:a<55296||a>=57344?i+=3:(s++,i+=4);return i}function V_(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function mM(n){let a="";for(let i in n)n.hasOwnProperty(i)&&(a.length&&(a+="&"),a+=encodeURIComponent(i)+"="+encodeURIComponent(n[i]));return a}function pM(n){let a={},i=n.split("&");for(let s=0,u=i.length;s<u;s++){let f=i[s].split("=");a[decodeURIComponent(f[0])]=decodeURIComponent(f[1])}return a}class gM extends Error{constructor(a,i,s){super(a),this.description=i,this.context=s,this.type="TransportError"}}class dm extends bt{constructor(a){super(),this.writable=!1,Lu(this,a),this.opts=a,this.query=a.query,this.socket=a.socket,this.supportsBinary=!a.forceBase64}onError(a,i,s){return super.emitReserved("error",new gM(a,i,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(a){this.readyState==="open"&&this.write(a)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(a){const i=fm(a,this.socket.binaryType);this.onPacket(i)}onPacket(a){super.emitReserved("packet",a)}onClose(a){this.readyState="closed",super.emitReserved("close",a)}pause(a){}createUri(a,i={}){return a+"://"+this._hostname()+this._port()+this.opts.path+this._query(i)}_hostname(){const a=this.opts.hostname;return a.indexOf(":")===-1?a:"["+a+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(a){const i=mM(a);return i.length?"?"+i:""}}class yM extends dm{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(a){this.readyState="pausing";const i=()=>{this.readyState="paused",a()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||i()})),this.writable||(s++,this.once("drain",function(){--s||i()}))}else i()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(a){const i=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};rM(a,this.socket.binaryType).forEach(i),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const a=()=>{this.write([{type:"close"}])};this.readyState==="open"?a():this.once("open",a)}write(a){this.writable=!1,aM(a,i=>{this.doWrite(i,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const a=this.opts.secure?"https":"http",i=this.query||{};return this.opts.timestampRequests!==!1&&(i[this.opts.timestampParam]=V_()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(a,i)}}let Y_=!1;try{Y_=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const bM=Y_;function vM(){}class _M extends yM{constructor(a){if(super(a),typeof location<"u"){const i=location.protocol==="https:";let s=location.port;s||(s=i?"443":"80"),this.xd=typeof location<"u"&&a.hostname!==location.hostname||s!==a.port}}doWrite(a,i){const s=this.request({method:"POST",data:a});s.on("success",i),s.on("error",(u,f)=>{this.onError("xhr post error",u,f)})}doPoll(){const a=this.request();a.on("data",this.onData.bind(this)),a.on("error",(i,s)=>{this.onError("xhr poll error",i,s)}),this.pollXhr=a}}class Wn extends bt{constructor(a,i,s){super(),this.createRequest=a,Lu(this,s),this._opts=s,this._method=s.method||"GET",this._uri=i,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var a;const i=F_(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");i.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(i);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let u in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(u)&&s.setRequestHeader(u,this._opts.extraHeaders[u])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(a=this._opts.cookieJar)===null||a===void 0||a.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var u;s.readyState===3&&((u=this._opts.cookieJar)===null||u===void 0||u.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(u){this.setTimeoutFn(()=>{this._onError(u)},0);return}typeof document<"u"&&(this._index=Wn.requestsCount++,Wn.requests[this._index]=this)}_onError(a){this.emitReserved("error",a,this._xhr),this._cleanup(!0)}_cleanup(a){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=vM,a)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Wn.requests[this._index],this._xhr=null}}_onLoad(){const a=this._xhr.responseText;a!==null&&(this.emitReserved("data",a),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Wn.requestsCount=0;Wn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Iv);else if(typeof addEventListener=="function"){const n="onpagehide"in xn?"pagehide":"unload";addEventListener(n,Iv,!1)}}function Iv(){for(let n in Wn.requests)Wn.requests.hasOwnProperty(n)&&Wn.requests[n].abort()}const EM=(function(){const n=P_({xdomain:!1});return n&&n.responseType!==null})();class SM extends _M{constructor(a){super(a);const i=a&&a.forceBase64;this.supportsBinary=EM&&!i}request(a={}){return Object.assign(a,{xd:this.xd},this.opts),new Wn(P_,this.uri(),a)}}function P_(n){const a=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!a||bM))return new XMLHttpRequest}catch{}if(!a)try{return new xn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const X_=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class TM extends dm{get name(){return"websocket"}doOpen(){const a=this.uri(),i=this.opts.protocols,s=X_?{}:F_(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(a,i,s)}catch(u){return this.emitReserved("error",u)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=a=>this.onClose({description:"websocket connection closed",context:a}),this.ws.onmessage=a=>this.onData(a.data),this.ws.onerror=a=>this.onError("websocket error",a)}write(a){this.writable=!1;for(let i=0;i<a.length;i++){const s=a[i],u=i===a.length-1;cm(s,this.supportsBinary,f=>{try{this.doWrite(s,f)}catch{}u&&Du(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const a=this.opts.secure?"wss":"ws",i=this.query||{};return this.opts.timestampRequests&&(i[this.opts.timestampParam]=V_()),this.supportsBinary||(i.b64=1),this.createUri(a,i)}}const Wd=xn.WebSocket||xn.MozWebSocket;class AM extends TM{createSocket(a,i,s){return X_?new Wd(a,i,s):i?new Wd(a,i):new Wd(a)}doWrite(a,i){this.ws.send(i)}}class OM extends dm{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(a){return this.emitReserved("error",a)}this._transport.closed.then(()=>{this.onClose()}).catch(a=>{this.onError("webtransport error",a)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(a=>{const i=lM(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=a.readable.pipeThrough(i).getReader(),u=iM();u.readable.pipeTo(a.writable),this._writer=u.writable.getWriter();const f=()=>{s.read().then(({done:h,value:m})=>{h||(this.onPacket(m),f())}).catch(h=>{})};f();const d={type:"open"};this.query.sid&&(d.data=`{"sid":"${this.query.sid}"}`),this._writer.write(d).then(()=>this.onOpen())})})}write(a){this.writable=!1;for(let i=0;i<a.length;i++){const s=a[i],u=i===a.length-1;this._writer.write(s).then(()=>{u&&Du(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var a;(a=this._transport)===null||a===void 0||a.close()}}const xM={websocket:AM,webtransport:OM,polling:SM},CM=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,RM=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ah(n){if(n.length>8e3)throw"URI too long";const a=n,i=n.indexOf("["),s=n.indexOf("]");i!=-1&&s!=-1&&(n=n.substring(0,i)+n.substring(i,s).replace(/:/g,";")+n.substring(s,n.length));let u=CM.exec(n||""),f={},d=14;for(;d--;)f[RM[d]]=u[d]||"";return i!=-1&&s!=-1&&(f.source=a,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=wM(f,f.path),f.queryKey=NM(f,f.query),f}function wM(n,a){const i=/\/{2,9}/g,s=a.replace(i,"/").split("/");return(a.slice(0,1)=="/"||a.length===0)&&s.splice(0,1),a.slice(-1)=="/"&&s.splice(s.length-1,1),s}function NM(n,a){const i={};return a.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,u,f){u&&(i[u]=f)}),i}const Oh=typeof addEventListener=="function"&&typeof removeEventListener=="function",ru=[];Oh&&addEventListener("offline",()=>{ru.forEach(n=>n())},!1);class ur extends bt{constructor(a,i){if(super(),this.binaryType=oM,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,a&&typeof a=="object"&&(i=a,a=null),a){const s=Ah(a);i.hostname=s.host,i.secure=s.protocol==="https"||s.protocol==="wss",i.port=s.port,s.query&&(i.query=s.query)}else i.host&&(i.hostname=Ah(i.host).host);Lu(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(s=>{const u=s.prototype.name;this.transports.push(u),this._transportsByName[u]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},i),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=pM(this.opts.query)),Oh&&(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"})},ru.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(a){const i=Object.assign({},this.opts.query);i.EIO=q_,i.transport=a,this.id&&(i.sid=this.id);const s=Object.assign({},this.opts,{query:i,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[a]);return new this._transportsByName[a](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const a=this.opts.rememberUpgrade&&ur.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const i=this.createTransport(a);i.open(),this.setTransport(i)}setTransport(a){this.transport&&this.transport.removeAllListeners(),this.transport=a,a.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",ur.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(a){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",a),this.emitReserved("heartbeat"),a.type){case"open":this.onHandshake(JSON.parse(a.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=a.data,this._onError(i);break;case"message":this.emitReserved("data",a.data),this.emitReserved("message",a.data);break}}onHandshake(a){this.emitReserved("handshake",a),this.id=a.sid,this.transport.query.sid=a.sid,this._pingInterval=a.pingInterval,this._pingTimeout=a.pingTimeout,this._maxPayload=a.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const a=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+a,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},a),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 a=this._getWritablePackets();this.transport.send(a),this._prevBufferLen=a.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let i=1;for(let s=0;s<this.writeBuffer.length;s++){const u=this.writeBuffer[s].data;if(u&&(i+=dM(u)),s>0&&i>this._maxPayload)return this.writeBuffer.slice(0,s);i+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const a=Date.now()>this._pingTimeoutTime;return a&&(this._pingTimeoutTime=0,Du(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),a}write(a,i,s){return this._sendPacket("message",a,i,s),this}send(a,i,s){return this._sendPacket("message",a,i,s),this}_sendPacket(a,i,s,u){if(typeof i=="function"&&(u=i,i=void 0),typeof s=="function"&&(u=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const f={type:a,data:i,options:s};this.emitReserved("packetCreate",f),this.writeBuffer.push(f),u&&this.once("flush",u),this.flush()}close(){const a=()=>{this._onClose("forced close"),this.transport.close()},i=()=>{this.off("upgrade",i),this.off("upgradeError",i),a()},s=()=>{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?s():a()}):this.upgrading?s():a()),this}_onError(a){if(ur.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",a),this._onClose("transport error",a)}_onClose(a,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(),Oh&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=ru.indexOf(this._offlineEventListener);s!==-1&&ru.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",a,i),this.writeBuffer=[],this._prevBufferLen=0}}}ur.protocol=q_;class MM extends ur{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let a=0;a<this._upgrades.length;a++)this._probe(this._upgrades[a])}_probe(a){let i=this.createTransport(a),s=!1;ur.priorWebsocketSuccess=!1;const u=()=>{s||(i.send([{type:"ping",data:"probe"}]),i.once("packet",_=>{if(!s)if(_.type==="pong"&&_.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;ur.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(b(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const A=new Error("probe error");A.transport=i.name,this.emitReserved("upgradeError",A)}}))};function f(){s||(s=!0,b(),i.close(),i=null)}const d=_=>{const A=new Error("probe error: "+_);A.transport=i.name,f(),this.emitReserved("upgradeError",A)};function h(){d("transport closed")}function m(){d("socket closed")}function g(_){i&&_.name!==i.name&&f()}const b=()=>{i.removeListener("open",u),i.removeListener("error",d),i.removeListener("close",h),this.off("close",m),this.off("upgrading",g)};i.once("open",u),i.once("error",d),i.once("close",h),this.once("close",m),this.once("upgrading",g),this._upgrades.indexOf("webtransport")!==-1&&a!=="webtransport"?this.setTimeoutFn(()=>{s||i.open()},200):i.open()}onHandshake(a){this._upgrades=this._filterUpgrades(a.upgrades),super.onHandshake(a)}_filterUpgrades(a){const i=[];for(let s=0;s<a.length;s++)~this.transports.indexOf(a[s])&&i.push(a[s]);return i}}let DM=class extends MM{constructor(a,i={}){const s=typeof a=="object"?a:i;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(u=>xM[u]).filter(u=>!!u)),super(a,s)}};function LM(n,a="",i){let s=n;i=i||typeof location<"u"&&location,n==null&&(n=i.protocol+"//"+i.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=i.protocol+n:n=i.host+n),/^(https?|wss?):\/\//.test(n)||(typeof i<"u"?n=i.protocol+"//"+n:n="https://"+n),s=Ah(n)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const f=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+f+":"+s.port+a,s.href=s.protocol+"://"+f+(i&&i.port===s.port?"":":"+s.port),s}const BM=typeof ArrayBuffer=="function",UM=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,Z_=Object.prototype.toString,jM=typeof Blob=="function"||typeof Blob<"u"&&Z_.call(Blob)==="[object BlobConstructor]",HM=typeof File=="function"||typeof File<"u"&&Z_.call(File)==="[object FileConstructor]";function hm(n){return BM&&(n instanceof ArrayBuffer||UM(n))||jM&&n instanceof Blob||HM&&n instanceof File}function iu(n,a){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let i=0,s=n.length;i<s;i++)if(iu(n[i]))return!0;return!1}if(hm(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return iu(n.toJSON(),!0);for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&iu(n[i]))return!0;return!1}function IM(n){const a=[],i=n.data,s=n;return s.data=xh(i,a),s.attachments=a.length,{packet:s,buffers:a}}function xh(n,a){if(!n)return n;if(hm(n)){const i={_placeholder:!0,num:a.length};return a.push(n),i}else if(Array.isArray(n)){const i=new Array(n.length);for(let s=0;s<n.length;s++)i[s]=xh(n[s],a);return i}else if(typeof n=="object"&&!(n instanceof Date)){const i={};for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=xh(n[s],a));return i}return n}function zM(n,a){return n.data=Ch(n.data,a),delete n.attachments,n}function Ch(n,a){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<a.length)return a[n.num];throw new Error("illegal attachments")}else if(Array.isArray(n))for(let i=0;i<n.length;i++)n[i]=Ch(n[i],a);else if(typeof n=="object")for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(n[i]=Ch(n[i],a));return n}const GM=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],kM=5;var Le;(function(n){n[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK"})(Le||(Le={}));class qM{constructor(a){this.replacer=a}encode(a){return(a.type===Le.EVENT||a.type===Le.ACK)&&iu(a)?this.encodeAsBinary({type:a.type===Le.EVENT?Le.BINARY_EVENT:Le.BINARY_ACK,nsp:a.nsp,data:a.data,id:a.id}):[this.encodeAsString(a)]}encodeAsString(a){let i=""+a.type;return(a.type===Le.BINARY_EVENT||a.type===Le.BINARY_ACK)&&(i+=a.attachments+"-"),a.nsp&&a.nsp!=="/"&&(i+=a.nsp+","),a.id!=null&&(i+=a.id),a.data!=null&&(i+=JSON.stringify(a.data,this.replacer)),i}encodeAsBinary(a){const i=IM(a),s=this.encodeAsString(i.packet),u=i.buffers;return u.unshift(s),u}}function zv(n){return Object.prototype.toString.call(n)==="[object Object]"}class mm extends bt{constructor(a){super(),this.reviver=a}add(a){let i;if(typeof a=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");i=this.decodeString(a);const s=i.type===Le.BINARY_EVENT;s||i.type===Le.BINARY_ACK?(i.type=s?Le.EVENT:Le.ACK,this.reconstructor=new FM(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(hm(a)||a.base64)if(this.reconstructor)i=this.reconstructor.takeBinaryData(a),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: "+a)}decodeString(a){let i=0;const s={type:Number(a.charAt(0))};if(Le[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===Le.BINARY_EVENT||s.type===Le.BINARY_ACK){const f=i+1;for(;a.charAt(++i)!=="-"&&i!=a.length;);const d=a.substring(f,i);if(d!=Number(d)||a.charAt(i)!=="-")throw new Error("Illegal attachments");s.attachments=Number(d)}if(a.charAt(i+1)==="/"){const f=i+1;for(;++i&&!(a.charAt(i)===","||i===a.length););s.nsp=a.substring(f,i)}else s.nsp="/";const u=a.charAt(i+1);if(u!==""&&Number(u)==u){const f=i+1;for(;++i;){const d=a.charAt(i);if(d==null||Number(d)!=d){--i;break}if(i===a.length)break}s.id=Number(a.substring(f,i+1))}if(a.charAt(++i)){const f=this.tryParse(a.substr(i));if(mm.isPayloadValid(s.type,f))s.data=f;else throw new Error("invalid payload")}return s}tryParse(a){try{return JSON.parse(a,this.reviver)}catch{return!1}}static isPayloadValid(a,i){switch(a){case Le.CONNECT:return zv(i);case Le.DISCONNECT:return i===void 0;case Le.CONNECT_ERROR:return typeof i=="string"||zv(i);case Le.EVENT:case Le.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&GM.indexOf(i[0])===-1);case Le.ACK:case Le.BINARY_ACK:return Array.isArray(i)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class FM{constructor(a){this.packet=a,this.buffers=[],this.reconPack=a}takeBinaryData(a){if(this.buffers.push(a),this.buffers.length===this.reconPack.attachments){const i=zM(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const VM=Object.freeze(Object.defineProperty({__proto__:null,Decoder:mm,Encoder:qM,get PacketType(){return Le},protocol:kM},Symbol.toStringTag,{value:"Module"}));function Gn(n,a,i){return n.on(a,i),function(){n.off(a,i)}}const YM=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Q_ extends bt{constructor(a,i,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=a,this.nsp=i,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const a=this.io;this.subs=[Gn(a,"open",this.onopen.bind(this)),Gn(a,"packet",this.onpacket.bind(this)),Gn(a,"error",this.onerror.bind(this)),Gn(a,"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(...a){return a.unshift("message"),this.emit.apply(this,a),this}emit(a,...i){var s,u,f;if(YM.hasOwnProperty(a))throw new Error('"'+a.toString()+'" is a reserved event name');if(i.unshift(a),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(i),this;const d={type:Le.EVENT,data:i};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof i[i.length-1]=="function"){const b=this.ids++,_=i.pop();this._registerAckCallback(b,_),d.id=b}const h=(u=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||u===void 0?void 0:u.writable,m=this.connected&&!(!((f=this.io.engine)===null||f===void 0)&&f._hasPingExpired());return this.flags.volatile&&!h||(m?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d)),this.flags={},this}_registerAckCallback(a,i){var s;const u=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(u===void 0){this.acks[a]=i;return}const f=this.io.setTimeoutFn(()=>{delete this.acks[a];for(let h=0;h<this.sendBuffer.length;h++)this.sendBuffer[h].id===a&&this.sendBuffer.splice(h,1);i.call(this,new Error("operation has timed out"))},u),d=(...h)=>{this.io.clearTimeoutFn(f),i.apply(this,h)};d.withError=!0,this.acks[a]=d}emitWithAck(a,...i){return new Promise((s,u)=>{const f=(d,h)=>d?u(d):s(h);f.withError=!0,i.push(f),this.emit(a,...i)})}_addToQueue(a){let i;typeof a[a.length-1]=="function"&&(i=a.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:a,flags:Object.assign({fromQueue:!0},this.flags)};a.push((u,...f)=>s!==this._queue[0]?void 0:(u!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),i&&i(u)):(this._queue.shift(),i&&i(null,...f)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(a=!1){if(!this.connected||this._queue.length===0)return;const i=this._queue[0];i.pending&&!a||(i.pending=!0,i.tryCount++,this.flags=i.flags,this.emit.apply(this,i.args))}packet(a){a.nsp=this.nsp,this.io._packet(a)}onopen(){typeof this.auth=="function"?this.auth(a=>{this._sendConnectPacket(a)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(a){this.packet({type:Le.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},a):a})}onerror(a){this.connected||this.emitReserved("connect_error",a)}onclose(a,i){this.connected=!1,delete this.id,this.emitReserved("disconnect",a,i),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(a=>{if(!this.sendBuffer.some(s=>String(s.id)===a)){const s=this.acks[a];delete this.acks[a],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(a){if(a.nsp===this.nsp)switch(a.type){case Le.CONNECT:a.data&&a.data.sid?this.onconnect(a.data.sid,a.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 Le.EVENT:case Le.BINARY_EVENT:this.onevent(a);break;case Le.ACK:case Le.BINARY_ACK:this.onack(a);break;case Le.DISCONNECT:this.ondisconnect();break;case Le.CONNECT_ERROR:this.destroy();const s=new Error(a.data.message);s.data=a.data.data,this.emitReserved("connect_error",s);break}}onevent(a){const i=a.data||[];a.id!=null&&i.push(this.ack(a.id)),this.connected?this.emitEvent(i):this.receiveBuffer.push(Object.freeze(i))}emitEvent(a){if(this._anyListeners&&this._anyListeners.length){const i=this._anyListeners.slice();for(const s of i)s.apply(this,a)}super.emit.apply(this,a),this._pid&&a.length&&typeof a[a.length-1]=="string"&&(this._lastOffset=a[a.length-1])}ack(a){const i=this;let s=!1;return function(...u){s||(s=!0,i.packet({type:Le.ACK,id:a,data:u}))}}onack(a){const i=this.acks[a.id];typeof i=="function"&&(delete this.acks[a.id],i.withError&&a.data.unshift(null),i.apply(this,a.data))}onconnect(a,i){this.id=a,this.recovered=i&&this._pid===i,this._pid=i,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(a=>this.emitEvent(a)),this.receiveBuffer=[],this.sendBuffer.forEach(a=>{this.notifyOutgoingListeners(a),this.packet(a)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(a=>a()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Le.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(a){return this.flags.compress=a,this}get volatile(){return this.flags.volatile=!0,this}timeout(a){return this.flags.timeout=a,this}onAny(a){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(a),this}prependAny(a){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(a),this}offAny(a){if(!this._anyListeners)return this;if(a){const i=this._anyListeners;for(let s=0;s<i.length;s++)if(a===i[s])return i.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(a){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(a),this}prependAnyOutgoing(a){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(a),this}offAnyOutgoing(a){if(!this._anyOutgoingListeners)return this;if(a){const i=this._anyOutgoingListeners;for(let s=0;s<i.length;s++)if(a===i[s])return i.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(a){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const i=this._anyOutgoingListeners.slice();for(const s of i)s.apply(this,a.data)}}}function Bi(n){n=n||{},this.ms=n.min||100,this.max=n.max||1e4,this.factor=n.factor||2,this.jitter=n.jitter>0&&n.jitter<=1?n.jitter:0,this.attempts=0}Bi.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var a=Math.random(),i=Math.floor(a*this.jitter*n);n=(Math.floor(a*10)&1)==0?n-i:n+i}return Math.min(n,this.max)|0};Bi.prototype.reset=function(){this.attempts=0};Bi.prototype.setMin=function(n){this.ms=n};Bi.prototype.setMax=function(n){this.max=n};Bi.prototype.setJitter=function(n){this.jitter=n};class Rh extends bt{constructor(a,i){var s;super(),this.nsps={},this.subs=[],a&&typeof a=="object"&&(i=a,a=void 0),i=i||{},i.path=i.path||"/socket.io",this.opts=i,Lu(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((s=i.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new Bi({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(i.timeout==null?2e4:i.timeout),this._readyState="closed",this.uri=a;const u=i.parser||VM;this.encoder=new u.Encoder,this.decoder=new u.Decoder,this._autoConnect=i.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(a){return arguments.length?(this._reconnection=!!a,a||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(a){return a===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=a,this)}reconnectionDelay(a){var i;return a===void 0?this._reconnectionDelay:(this._reconnectionDelay=a,(i=this.backoff)===null||i===void 0||i.setMin(a),this)}randomizationFactor(a){var i;return a===void 0?this._randomizationFactor:(this._randomizationFactor=a,(i=this.backoff)===null||i===void 0||i.setJitter(a),this)}reconnectionDelayMax(a){var i;return a===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=a,(i=this.backoff)===null||i===void 0||i.setMax(a),this)}timeout(a){return arguments.length?(this._timeout=a,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(a){if(~this._readyState.indexOf("open"))return this;this.engine=new DM(this.uri,this.opts);const i=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const u=Gn(i,"open",function(){s.onopen(),a&&a()}),f=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),a?a(h):this.maybeReconnectOnOpen()},d=Gn(i,"error",f);if(this._timeout!==!1){const h=this._timeout,m=this.setTimeoutFn(()=>{u(),f(new Error("timeout")),i.close()},h);this.opts.autoUnref&&m.unref(),this.subs.push(()=>{this.clearTimeoutFn(m)})}return this.subs.push(u),this.subs.push(d),this}connect(a){return this.open(a)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const a=this.engine;this.subs.push(Gn(a,"ping",this.onping.bind(this)),Gn(a,"data",this.ondata.bind(this)),Gn(a,"error",this.onerror.bind(this)),Gn(a,"close",this.onclose.bind(this)),Gn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(a){try{this.decoder.add(a)}catch(i){this.onclose("parse error",i)}}ondecoded(a){Du(()=>{this.emitReserved("packet",a)},this.setTimeoutFn)}onerror(a){this.emitReserved("error",a)}socket(a,i){let s=this.nsps[a];return s?this._autoConnect&&!s.active&&s.connect():(s=new Q_(this,a,i),this.nsps[a]=s),s}_destroy(a){const i=Object.keys(this.nsps);for(const s of i)if(this.nsps[s].active)return;this._close()}_packet(a){const i=this.encoder.encode(a);for(let s=0;s<i.length;s++)this.engine.write(i[s],a.options)}cleanup(){this.subs.forEach(a=>a()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(a,i){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",a,i),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const a=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 s=this.setTimeoutFn(()=>{a.skipReconnect||(this.emitReserved("reconnect_attempt",a.backoff.attempts),!a.skipReconnect&&a.open(u=>{u?(a._reconnecting=!1,a.reconnect(),this.emitReserved("reconnect_error",u)):a.onreconnect()}))},i);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const a=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",a)}}const Ql={};function lu(n,a){typeof n=="object"&&(a=n,n=void 0),a=a||{};const i=LM(n,a.path||"/socket.io"),s=i.source,u=i.id,f=i.path,d=Ql[u]&&f in Ql[u].nsps,h=a.forceNew||a["force new connection"]||a.multiplex===!1||d;let m;return h?m=new Rh(s,a):(Ql[u]||(Ql[u]=new Rh(s,a)),m=Ql[u]),i.query&&!a.query&&(a.query=i.queryKey),m.socket(i.path,a)}Object.assign(lu,{Manager:Rh,Socket:Q_,io:lu,connect:lu});const PM=[Te.ActionTypes.MESSAGE_TO_GUEST,Te.ActionTypes.EVENT_TO_GUEST,Te.ActionTypes.TYPING_ON,Te.ActionTypes.TYPING_OFF,Te.ActionTypes.RESTART_CHAT_REQUEST,...Zx,...kO,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],XM=({dispatch:n,getState:a})=>i=>{let s=null;return u=>{const f=i(u);if(u.type===Wh){s?.disconnect(),n($x());const d=`/chat?${Su.stringify(u.querystrings)}`;s=lu(`/${u.clientName}${d}`),s.on("action",n),s.on("connect",()=>n(Wx())),s.on("disconnect",()=>n(Jx())),s.on("reconnect",()=>n(eC())),s.on("set-translations",(h,m)=>{n(q8({language:h,messages:j8(h,m)}))}),s.on("set-settings",h=>{n(Y8(h))}),s.on("enable-conversation-rating",h=>n(PO(h))),s.on("speech-transcription",h=>n(FO(h))),s.on("restore-client-state",h=>{n(Kx(h.sessionId)),n(ZO(h.messages))}),s.on("expand-window",({devices:h,initial:m=!1})=>{n({type:D1,devices:h,initial:m})}),s.on("restart-chat",()=>{n(ls())}),s.on("login-success",h=>{n(Gx({loginToken:h.loginToken}))})}else if(u.type==="start-screen/requestLogin")s?.emit("login-requested",u.payload);else if(u.type===Cu)s?.emit("start-chat",u.payload);else if(u.type===Ru)s?.emit("terminate-session",u.payload);else if(u.type===GO)s?.emit("get-started",JSON.stringify(u));else if(u.type===kh)s?.emit("audio-message",u.buffer);else if(u.type===Te.ActionTypes.CONVERSATION_RATING_FROM_GUEST)s?.emit("conversation-rating",u.payload);else if(u.type===B1){const{connection:{sessionId:d}}=a();window.location.href=`/transcript-pdf/${d}`}else PM.indexOf(u.type)===-1&&u.meta===void 0&&s&&s.emit("action",JSON.stringify(u));return f}},K_=Xh(),ZM={...Q8(K_),intl:M_},wh=xx({middleware:n=>n().concat(XM),reducer:X8,preloadedState:ZM});wh.subscribe(R8(()=>{const n=wh.getState();K8(K_,{connection:n.connection,startScreen:n.startScreen})},1e3));const QM=document.getElementById("root"),KM=mS.createRoot(QM);KM.render(y.jsx(hT,{store:wh,children:y.jsx(O8,{})}));
125
- //# sourceMappingURL=index-x4vggU9m.js.map
124
+ - 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"},U8=["de","en","fr","it"],M_={locale:"de",messages:N_},j8=(n,a)=>{if(U8.includes(n)){const i=H8(n),s=M8(a);return{...i,...s}}return a},H8=n=>{switch(n.toString()){case"en":return D8;case"fr":return L8;case"it":return B8;default:return N_}},I8=(n=z8,a)=>{switch(a.type){case Jh:return Object.assign({},n,{connectionState:Gr.CONNECTING});case em:return Object.assign({},n,{connectionState:Gr.CONNECTED});case tm:return Object.assign({},n,{connectionState:Gr.DISCONNECTED});case nm:return Object.assign({},n,{connectionState:Gr.RECONNECTED});case am:return Object.assign({},n,{sessionId:a.sessionId});case Cu:return Object.assign({},n,{sessionId:a.payload.sessionId,userId:a.payload.userId});case Ru:return Object.assign({},n,{sessionId:void 0});default:return n}},z8={connectionState:Gr.DISCONNECTED,sessionId:void 0,userId:void 0},G8=(n=Dv,a)=>{switch(a.type){case $1:return Dv;case Cu:return jr({type:"webclient.chat.started"}),n;case Ru:return jr({type:"webclient.chat.ended"}),n;case Te.ActionTypes.TYPING_ON:return Object.assign({},n,{isBotTyping:!0});case Te.ActionTypes.TYPING_OFF:return Object.assign({},n,{isBotTyping:!1});case Te.ActionTypes.MESSAGE_FROM_GUEST:case Te.ActionTypes.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return Mv(n,a.message);case Te.ActionTypes.MESSAGE_TO_GUEST:{jr(a);const i=Object.assign({},a.message,{_id:a.meta.actionId}),s=n.messages.filter(u=>u._id===a.meta.actionId).length>0;return Object.assign({},n,{isBotTyping:!1,messages:s?n.messages:n.messages.concat([i]),quickReplies:i.quickReplies?i.quickReplies:[]})}case Gh:{const i=a.messages,s=i.length?i[i.length-1]:void 0;return Object.assign({},n,{isBotTyping:!1,messages:i,quickReplies:s?.quickReplies||[]})}case zh:return jr(a.message),n;case Te.ActionTypes.EVENT_TO_GUEST:return jr(a.event),n;case Te.ActionTypes.DRAWER_OPEN:return Object.assign({},n,{drawerContentUrl:a.payload.parameters.contentUrl});case Te.ActionTypes.DRAWER_CLOSE:return Object.assign({},n,{drawerContentUrl:void 0});case Te.ActionTypes.GUEST_LOCALE_CHANGED:return Object.assign({},n,{locale:a.payload.locale});case D1:return jr(a),n;case L1:return jr(a),{...n,conversationRating:{...n.conversationRating,opener:void 0}};case qh:{const i=new Te.TextMessage(a.transcription,new Te.GuestUser),s=Object.assign({},i,{_id:uu()});return Mv(n,s)}case Te.ActionTypes.TRANSCRIPT_ITEM_GUEST_REACTION:{const i=n.messages.map(s=>s._id===a.payload.actionId?Object.assign({},s,a.payload.reaction?{reaction:{type:a.payload.reaction,category:a.payload.category,comment:a.payload.comment}}:{reaction:void 0}):s);return Object.assign({},n,{messages:i})}case Fh:{const i={enabled:!0,rating:a.payload.rating};return Object.assign({},n,{conversationRating:i})}case Te.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const i={...n.conversationRating,rating:a.payload};return Object.assign({},n,{conversationRating:i})}case J1:{const i={...n.conversationRating,opener:a.payload.opener,...a.payload.defaultRating?{rating:{value:a.payload.defaultRating,feedback:n.conversationRating.rating?.feedback||""}}:{}};return Object.assign({},n,{conversationRating:i})}case e_:{const i={...n.conversationRating,opener:void 0};return Object.assign({},n,{conversationRating:i})}case Yh:return{...n,sourceInfos:{type:"loading",chunkId:a.payload.chunkId}};case Vh:{const{highlighted:i}=a.payload;return n.sourceInfos?.type==="loaded"&&i?{...n,sourceInfos:{...n.sourceInfos,highlighted:!0}}:{...n,sourceInfos:{type:"loading-error"}}}case M1:{const i=n.sourceInfos?.type,{chunkId:s,knowledgeBaseType:u,title:f,content:d,highlighted:h,url:m}=a.payload,g=n.sourceInfos?.type==="loading"||n.sourceInfos?.type==="loaded"?n.sourceInfos?.chunkId:void 0;return g&&g!==s?n:i==="loading"||i==="loaded"&&h?{...n,sourceInfos:{type:"loaded",chunkId:s,knowledgeBaseType:u,title:f,content:d,highlighted:h,url:m}}:n}case Ph:return{...n,sourceInfos:void 0};case W1:return{...n,showTranscriptMailOverlay:!n.showTranscriptMailOverlay,conversationRating:{...n.conversationRating,opener:void 0}};default:return n}},Mv=(n,a)=>{const i=n.messages[n.messages.length-1],s=i?.text===a.text;return i&&i.sender.type===a.sender.type&&s?n:Object.assign({},n,{messages:n.messages.concat([a]),quickReplies:[]})},jr=n=>{k8()?window.top?.postMessage(n,"*"):n.type==="webclient.change.url"&&window.open(n.url)},k8=()=>typeof window<"u"&&window.self!==window.top,Dv={messages:[],quickReplies:[],isBotTyping:!1,showTranscriptMailOverlay:!1,conversationRating:{enabled:!1}},D_=$h({name:"intl",initialState:M_,reducers:{updateIntl:(n,a)=>{n.locale=a.payload.language,n.messages=a.payload.messages}}}),{updateIntl:q8}=D_.actions,F8=D_.reducer,V8={version:void 0,requiresUserAuthentication:!1,enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[],menuItems:[]},L_=$h({name:"settings",initialState:V8,reducers:{setSettings(n,a){n.version&&n.version!==a.payload.version?(console.log("version changed, reloading chat window"),window.location.reload()):(n.version=a.payload.version,n.requiresUserAuthentication=a.payload.requiresUserAuthentication,n.enableStartScreen=a.payload.enableStartScreen,n.enableStandaloneView=a.payload.enableStandaloneView,n.enableTranscriptExportEmail=a.payload.enableTranscriptExportEmail,n.enableTranscriptExportPdf=a.payload.enableTranscriptExportPdf,n.enableGeneralConditions=a.payload.enableGeneralConditions,n.enableSpeechSupport=a.payload.enableSpeechSupport,n.commands=a.payload.commands,n.menuItems=a.payload.menuItems||[])}}}),{setSettings:Y8}=L_.actions,P8=L_.reducer,X8=z1({settings:P8,chat:G8,startScreen:Vx,connection:I8,intl:F8}),Z8="bubble-chat",B_="state-last-saved-at",U_="state",Q8=n=>{try{if(!W8())return;const a=Lv(n,B_);if($8(a))return;{const i=Lv(n,U_);return i===null?void 0:JSON.parse(i)}}catch(a){console.error(a);return}},K8=(n,a)=>{try{const i=JSON.stringify(a);Bv(n,U_,i);const s=new Date().toISOString();Bv(n,B_,s)}catch(i){console.error(i)}},$8=n=>{if(n===null)return!1;const a=new Date(n);return a.setHours(a.getHours()+12),new Date>a},W8=()=>typeof localStorage<"u",Lv=(n,a)=>{const i=j_(n,a);return localStorage.getItem(i)},Bv=(n,a,i)=>{const s=j_(n,a);return localStorage.setItem(s,i)},j_=(n,a)=>`${Z8}-${n}-${a}`,Jn=Object.create(null);Jn.open="0";Jn.close="1";Jn.ping="2";Jn.pong="3";Jn.message="4";Jn.upgrade="5";Jn.noop="6";const ru=Object.create(null);Object.keys(Jn).forEach(n=>{ru[Jn[n]]=n});const Th={type:"error",data:"parser error"},H_=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",I_=typeof ArrayBuffer=="function",z_=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,cm=({type:n,data:a},i,s)=>H_&&a instanceof Blob?i?s(a):Uv(a,s):I_&&(a instanceof ArrayBuffer||z_(a))?i?s(a):Uv(new Blob([a]),s):s(Jn[n]+(a||"")),Uv=(n,a)=>{const i=new FileReader;return i.onload=function(){const s=i.result.split(",")[1];a("b"+(s||""))},i.readAsDataURL(n)};function jv(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let Kd;function J8(n,a){if(H_&&n.data instanceof Blob)return n.data.arrayBuffer().then(jv).then(a);if(I_&&(n.data instanceof ArrayBuffer||z_(n.data)))return a(jv(n.data));cm(n,!1,i=>{Kd||(Kd=new TextEncoder),a(Kd.encode(i))})}const Hv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$l=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<Hv.length;n++)$l[Hv.charCodeAt(n)]=n;const eM=n=>{let a=n.length*.75,i=n.length,s,u=0,f,d,h,m;n[n.length-1]==="="&&(a--,n[n.length-2]==="="&&a--);const g=new ArrayBuffer(a),b=new Uint8Array(g);for(s=0;s<i;s+=4)f=$l[n.charCodeAt(s)],d=$l[n.charCodeAt(s+1)],h=$l[n.charCodeAt(s+2)],m=$l[n.charCodeAt(s+3)],b[u++]=f<<2|d>>4,b[u++]=(d&15)<<4|h>>2,b[u++]=(h&3)<<6|m&63;return g},tM=typeof ArrayBuffer=="function",fm=(n,a)=>{if(typeof n!="string")return{type:"message",data:G_(n,a)};const i=n.charAt(0);return i==="b"?{type:"message",data:nM(n.substring(1),a)}:ru[i]?n.length>1?{type:ru[i],data:n.substring(1)}:{type:ru[i]}:Th},nM=(n,a)=>{if(tM){const i=eM(n);return G_(i,a)}else return{base64:!0,data:n}},G_=(n,a)=>{switch(a){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},k_="",aM=(n,a)=>{const i=n.length,s=new Array(i);let u=0;n.forEach((f,d)=>{cm(f,!1,h=>{s[d]=h,++u===i&&a(s.join(k_))})})},rM=(n,a)=>{const i=n.split(k_),s=[];for(let u=0;u<i.length;u++){const f=fm(i[u],a);if(s.push(f),f.type==="error")break}return s};function iM(){return new TransformStream({transform(n,a){J8(n,i=>{const s=i.length;let u;if(s<126)u=new Uint8Array(1),new DataView(u.buffer).setUint8(0,s);else if(s<65536){u=new Uint8Array(3);const f=new DataView(u.buffer);f.setUint8(0,126),f.setUint16(1,s)}else{u=new Uint8Array(9);const f=new DataView(u.buffer);f.setUint8(0,127),f.setBigUint64(1,BigInt(s))}n.data&&typeof n.data!="string"&&(u[0]|=128),a.enqueue(u),a.enqueue(i)})}})}let $d;function Wo(n){return n.reduce((a,i)=>a+i.length,0)}function Jo(n,a){if(n[0].length===a)return n.shift();const i=new Uint8Array(a);let s=0;for(let u=0;u<a;u++)i[u]=n[0][s++],s===n[0].length&&(n.shift(),s=0);return n.length&&s<n[0].length&&(n[0]=n[0].slice(s)),i}function lM(n,a){$d||($d=new TextDecoder);const i=[];let s=0,u=-1,f=!1;return new TransformStream({transform(d,h){for(i.push(d);;){if(s===0){if(Wo(i)<1)break;const m=Jo(i,1);f=(m[0]&128)===128,u=m[0]&127,u<126?s=3:u===126?s=1:s=2}else if(s===1){if(Wo(i)<2)break;const m=Jo(i,2);u=new DataView(m.buffer,m.byteOffset,m.length).getUint16(0),s=3}else if(s===2){if(Wo(i)<8)break;const m=Jo(i,8),g=new DataView(m.buffer,m.byteOffset,m.length),b=g.getUint32(0);if(b>Math.pow(2,21)-1){h.enqueue(Th);break}u=b*Math.pow(2,32)+g.getUint32(4),s=3}else{if(Wo(i)<u)break;const m=Jo(i,u);h.enqueue(fm(f?m:$d.decode(m),a)),s=0}if(u===0||u>n){h.enqueue(Th);break}}}})}const q_=4;function bt(n){if(n)return sM(n)}function sM(n){for(var a in bt.prototype)n[a]=bt.prototype[a];return n}bt.prototype.on=bt.prototype.addEventListener=function(n,a){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(a),this};bt.prototype.once=function(n,a){function i(){this.off(n,i),a.apply(this,arguments)}return i.fn=a,this.on(n,i),this};bt.prototype.off=bt.prototype.removeListener=bt.prototype.removeAllListeners=bt.prototype.removeEventListener=function(n,a){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+n];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var s,u=0;u<i.length;u++)if(s=i[u],s===a||s.fn===a){i.splice(u,1);break}return i.length===0&&delete this._callbacks["$"+n],this};bt.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var a=new Array(arguments.length-1),i=this._callbacks["$"+n],s=1;s<arguments.length;s++)a[s-1]=arguments[s];if(i){i=i.slice(0);for(var s=0,u=i.length;s<u;++s)i[s].apply(this,a)}return this};bt.prototype.emitReserved=bt.prototype.emit;bt.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};bt.prototype.hasListeners=function(n){return!!this.listeners(n).length};const Du=typeof Promise=="function"&&typeof Promise.resolve=="function"?a=>Promise.resolve().then(a):(a,i)=>i(a,0),On=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),oM="arraybuffer";function F_(n,...a){return a.reduce((i,s)=>(n.hasOwnProperty(s)&&(i[s]=n[s]),i),{})}const uM=On.setTimeout,cM=On.clearTimeout;function Lu(n,a){a.useNativeTimers?(n.setTimeoutFn=uM.bind(On),n.clearTimeoutFn=cM.bind(On)):(n.setTimeoutFn=On.setTimeout.bind(On),n.clearTimeoutFn=On.clearTimeout.bind(On))}const fM=1.33;function dM(n){return typeof n=="string"?hM(n):Math.ceil((n.byteLength||n.size)*fM)}function hM(n){let a=0,i=0;for(let s=0,u=n.length;s<u;s++)a=n.charCodeAt(s),a<128?i+=1:a<2048?i+=2:a<55296||a>=57344?i+=3:(s++,i+=4);return i}function V_(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function mM(n){let a="";for(let i in n)n.hasOwnProperty(i)&&(a.length&&(a+="&"),a+=encodeURIComponent(i)+"="+encodeURIComponent(n[i]));return a}function pM(n){let a={},i=n.split("&");for(let s=0,u=i.length;s<u;s++){let f=i[s].split("=");a[decodeURIComponent(f[0])]=decodeURIComponent(f[1])}return a}class gM extends Error{constructor(a,i,s){super(a),this.description=i,this.context=s,this.type="TransportError"}}class dm extends bt{constructor(a){super(),this.writable=!1,Lu(this,a),this.opts=a,this.query=a.query,this.socket=a.socket,this.supportsBinary=!a.forceBase64}onError(a,i,s){return super.emitReserved("error",new gM(a,i,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(a){this.readyState==="open"&&this.write(a)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(a){const i=fm(a,this.socket.binaryType);this.onPacket(i)}onPacket(a){super.emitReserved("packet",a)}onClose(a){this.readyState="closed",super.emitReserved("close",a)}pause(a){}createUri(a,i={}){return a+"://"+this._hostname()+this._port()+this.opts.path+this._query(i)}_hostname(){const a=this.opts.hostname;return a.indexOf(":")===-1?a:"["+a+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(a){const i=mM(a);return i.length?"?"+i:""}}class yM extends dm{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(a){this.readyState="pausing";const i=()=>{this.readyState="paused",a()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||i()})),this.writable||(s++,this.once("drain",function(){--s||i()}))}else i()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(a){const i=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};rM(a,this.socket.binaryType).forEach(i),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const a=()=>{this.write([{type:"close"}])};this.readyState==="open"?a():this.once("open",a)}write(a){this.writable=!1,aM(a,i=>{this.doWrite(i,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const a=this.opts.secure?"https":"http",i=this.query||{};return this.opts.timestampRequests!==!1&&(i[this.opts.timestampParam]=V_()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(a,i)}}let Y_=!1;try{Y_=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const bM=Y_;function vM(){}class _M extends yM{constructor(a){if(super(a),typeof location<"u"){const i=location.protocol==="https:";let s=location.port;s||(s=i?"443":"80"),this.xd=typeof location<"u"&&a.hostname!==location.hostname||s!==a.port}}doWrite(a,i){const s=this.request({method:"POST",data:a});s.on("success",i),s.on("error",(u,f)=>{this.onError("xhr post error",u,f)})}doPoll(){const a=this.request();a.on("data",this.onData.bind(this)),a.on("error",(i,s)=>{this.onError("xhr poll error",i,s)}),this.pollXhr=a}}class $n extends bt{constructor(a,i,s){super(),this.createRequest=a,Lu(this,s),this._opts=s,this._method=s.method||"GET",this._uri=i,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var a;const i=F_(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");i.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(i);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let u in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(u)&&s.setRequestHeader(u,this._opts.extraHeaders[u])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(a=this._opts.cookieJar)===null||a===void 0||a.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var u;s.readyState===3&&((u=this._opts.cookieJar)===null||u===void 0||u.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(u){this.setTimeoutFn(()=>{this._onError(u)},0);return}typeof document<"u"&&(this._index=$n.requestsCount++,$n.requests[this._index]=this)}_onError(a){this.emitReserved("error",a,this._xhr),this._cleanup(!0)}_cleanup(a){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=vM,a)try{this._xhr.abort()}catch{}typeof document<"u"&&delete $n.requests[this._index],this._xhr=null}}_onLoad(){const a=this._xhr.responseText;a!==null&&(this.emitReserved("data",a),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}$n.requestsCount=0;$n.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Iv);else if(typeof addEventListener=="function"){const n="onpagehide"in On?"pagehide":"unload";addEventListener(n,Iv,!1)}}function Iv(){for(let n in $n.requests)$n.requests.hasOwnProperty(n)&&$n.requests[n].abort()}const EM=(function(){const n=P_({xdomain:!1});return n&&n.responseType!==null})();class SM extends _M{constructor(a){super(a);const i=a&&a.forceBase64;this.supportsBinary=EM&&!i}request(a={}){return Object.assign(a,{xd:this.xd},this.opts),new $n(P_,this.uri(),a)}}function P_(n){const a=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!a||bM))return new XMLHttpRequest}catch{}if(!a)try{return new On[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const X_=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class TM extends dm{get name(){return"websocket"}doOpen(){const a=this.uri(),i=this.opts.protocols,s=X_?{}:F_(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(a,i,s)}catch(u){return this.emitReserved("error",u)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=a=>this.onClose({description:"websocket connection closed",context:a}),this.ws.onmessage=a=>this.onData(a.data),this.ws.onerror=a=>this.onError("websocket error",a)}write(a){this.writable=!1;for(let i=0;i<a.length;i++){const s=a[i],u=i===a.length-1;cm(s,this.supportsBinary,f=>{try{this.doWrite(s,f)}catch{}u&&Du(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const a=this.opts.secure?"wss":"ws",i=this.query||{};return this.opts.timestampRequests&&(i[this.opts.timestampParam]=V_()),this.supportsBinary||(i.b64=1),this.createUri(a,i)}}const Wd=On.WebSocket||On.MozWebSocket;class AM extends TM{createSocket(a,i,s){return X_?new Wd(a,i,s):i?new Wd(a,i):new Wd(a)}doWrite(a,i){this.ws.send(i)}}class OM extends dm{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(a){return this.emitReserved("error",a)}this._transport.closed.then(()=>{this.onClose()}).catch(a=>{this.onError("webtransport error",a)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(a=>{const i=lM(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=a.readable.pipeThrough(i).getReader(),u=iM();u.readable.pipeTo(a.writable),this._writer=u.writable.getWriter();const f=()=>{s.read().then(({done:h,value:m})=>{h||(this.onPacket(m),f())}).catch(h=>{})};f();const d={type:"open"};this.query.sid&&(d.data=`{"sid":"${this.query.sid}"}`),this._writer.write(d).then(()=>this.onOpen())})})}write(a){this.writable=!1;for(let i=0;i<a.length;i++){const s=a[i],u=i===a.length-1;this._writer.write(s).then(()=>{u&&Du(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var a;(a=this._transport)===null||a===void 0||a.close()}}const xM={websocket:AM,webtransport:OM,polling:SM},CM=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,RM=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ah(n){if(n.length>8e3)throw"URI too long";const a=n,i=n.indexOf("["),s=n.indexOf("]");i!=-1&&s!=-1&&(n=n.substring(0,i)+n.substring(i,s).replace(/:/g,";")+n.substring(s,n.length));let u=CM.exec(n||""),f={},d=14;for(;d--;)f[RM[d]]=u[d]||"";return i!=-1&&s!=-1&&(f.source=a,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=wM(f,f.path),f.queryKey=NM(f,f.query),f}function wM(n,a){const i=/\/{2,9}/g,s=a.replace(i,"/").split("/");return(a.slice(0,1)=="/"||a.length===0)&&s.splice(0,1),a.slice(-1)=="/"&&s.splice(s.length-1,1),s}function NM(n,a){const i={};return a.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,u,f){u&&(i[u]=f)}),i}const Oh=typeof addEventListener=="function"&&typeof removeEventListener=="function",iu=[];Oh&&addEventListener("offline",()=>{iu.forEach(n=>n())},!1);class or extends bt{constructor(a,i){if(super(),this.binaryType=oM,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,a&&typeof a=="object"&&(i=a,a=null),a){const s=Ah(a);i.hostname=s.host,i.secure=s.protocol==="https"||s.protocol==="wss",i.port=s.port,s.query&&(i.query=s.query)}else i.host&&(i.hostname=Ah(i.host).host);Lu(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(s=>{const u=s.prototype.name;this.transports.push(u),this._transportsByName[u]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},i),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=pM(this.opts.query)),Oh&&(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"})},iu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(a){const i=Object.assign({},this.opts.query);i.EIO=q_,i.transport=a,this.id&&(i.sid=this.id);const s=Object.assign({},this.opts,{query:i,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[a]);return new this._transportsByName[a](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const a=this.opts.rememberUpgrade&&or.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const i=this.createTransport(a);i.open(),this.setTransport(i)}setTransport(a){this.transport&&this.transport.removeAllListeners(),this.transport=a,a.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",or.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(a){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",a),this.emitReserved("heartbeat"),a.type){case"open":this.onHandshake(JSON.parse(a.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=a.data,this._onError(i);break;case"message":this.emitReserved("data",a.data),this.emitReserved("message",a.data);break}}onHandshake(a){this.emitReserved("handshake",a),this.id=a.sid,this.transport.query.sid=a.sid,this._pingInterval=a.pingInterval,this._pingTimeout=a.pingTimeout,this._maxPayload=a.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const a=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+a,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},a),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 a=this._getWritablePackets();this.transport.send(a),this._prevBufferLen=a.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let i=1;for(let s=0;s<this.writeBuffer.length;s++){const u=this.writeBuffer[s].data;if(u&&(i+=dM(u)),s>0&&i>this._maxPayload)return this.writeBuffer.slice(0,s);i+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const a=Date.now()>this._pingTimeoutTime;return a&&(this._pingTimeoutTime=0,Du(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),a}write(a,i,s){return this._sendPacket("message",a,i,s),this}send(a,i,s){return this._sendPacket("message",a,i,s),this}_sendPacket(a,i,s,u){if(typeof i=="function"&&(u=i,i=void 0),typeof s=="function"&&(u=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const f={type:a,data:i,options:s};this.emitReserved("packetCreate",f),this.writeBuffer.push(f),u&&this.once("flush",u),this.flush()}close(){const a=()=>{this._onClose("forced close"),this.transport.close()},i=()=>{this.off("upgrade",i),this.off("upgradeError",i),a()},s=()=>{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?s():a()}):this.upgrading?s():a()),this}_onError(a){if(or.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",a),this._onClose("transport error",a)}_onClose(a,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(),Oh&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=iu.indexOf(this._offlineEventListener);s!==-1&&iu.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",a,i),this.writeBuffer=[],this._prevBufferLen=0}}}or.protocol=q_;class MM extends or{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let a=0;a<this._upgrades.length;a++)this._probe(this._upgrades[a])}_probe(a){let i=this.createTransport(a),s=!1;or.priorWebsocketSuccess=!1;const u=()=>{s||(i.send([{type:"ping",data:"probe"}]),i.once("packet",_=>{if(!s)if(_.type==="pong"&&_.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;or.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(b(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const A=new Error("probe error");A.transport=i.name,this.emitReserved("upgradeError",A)}}))};function f(){s||(s=!0,b(),i.close(),i=null)}const d=_=>{const A=new Error("probe error: "+_);A.transport=i.name,f(),this.emitReserved("upgradeError",A)};function h(){d("transport closed")}function m(){d("socket closed")}function g(_){i&&_.name!==i.name&&f()}const b=()=>{i.removeListener("open",u),i.removeListener("error",d),i.removeListener("close",h),this.off("close",m),this.off("upgrading",g)};i.once("open",u),i.once("error",d),i.once("close",h),this.once("close",m),this.once("upgrading",g),this._upgrades.indexOf("webtransport")!==-1&&a!=="webtransport"?this.setTimeoutFn(()=>{s||i.open()},200):i.open()}onHandshake(a){this._upgrades=this._filterUpgrades(a.upgrades),super.onHandshake(a)}_filterUpgrades(a){const i=[];for(let s=0;s<a.length;s++)~this.transports.indexOf(a[s])&&i.push(a[s]);return i}}let DM=class extends MM{constructor(a,i={}){const s=typeof a=="object"?a:i;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(u=>xM[u]).filter(u=>!!u)),super(a,s)}};function LM(n,a="",i){let s=n;i=i||typeof location<"u"&&location,n==null&&(n=i.protocol+"//"+i.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=i.protocol+n:n=i.host+n),/^(https?|wss?):\/\//.test(n)||(typeof i<"u"?n=i.protocol+"//"+n:n="https://"+n),s=Ah(n)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const f=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+f+":"+s.port+a,s.href=s.protocol+"://"+f+(i&&i.port===s.port?"":":"+s.port),s}const BM=typeof ArrayBuffer=="function",UM=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,Z_=Object.prototype.toString,jM=typeof Blob=="function"||typeof Blob<"u"&&Z_.call(Blob)==="[object BlobConstructor]",HM=typeof File=="function"||typeof File<"u"&&Z_.call(File)==="[object FileConstructor]";function hm(n){return BM&&(n instanceof ArrayBuffer||UM(n))||jM&&n instanceof Blob||HM&&n instanceof File}function lu(n,a){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let i=0,s=n.length;i<s;i++)if(lu(n[i]))return!0;return!1}if(hm(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return lu(n.toJSON(),!0);for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&lu(n[i]))return!0;return!1}function IM(n){const a=[],i=n.data,s=n;return s.data=xh(i,a),s.attachments=a.length,{packet:s,buffers:a}}function xh(n,a){if(!n)return n;if(hm(n)){const i={_placeholder:!0,num:a.length};return a.push(n),i}else if(Array.isArray(n)){const i=new Array(n.length);for(let s=0;s<n.length;s++)i[s]=xh(n[s],a);return i}else if(typeof n=="object"&&!(n instanceof Date)){const i={};for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=xh(n[s],a));return i}return n}function zM(n,a){return n.data=Ch(n.data,a),delete n.attachments,n}function Ch(n,a){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<a.length)return a[n.num];throw new Error("illegal attachments")}else if(Array.isArray(n))for(let i=0;i<n.length;i++)n[i]=Ch(n[i],a);else if(typeof n=="object")for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(n[i]=Ch(n[i],a));return n}const GM=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],kM=5;var Le;(function(n){n[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK"})(Le||(Le={}));class qM{constructor(a){this.replacer=a}encode(a){return(a.type===Le.EVENT||a.type===Le.ACK)&&lu(a)?this.encodeAsBinary({type:a.type===Le.EVENT?Le.BINARY_EVENT:Le.BINARY_ACK,nsp:a.nsp,data:a.data,id:a.id}):[this.encodeAsString(a)]}encodeAsString(a){let i=""+a.type;return(a.type===Le.BINARY_EVENT||a.type===Le.BINARY_ACK)&&(i+=a.attachments+"-"),a.nsp&&a.nsp!=="/"&&(i+=a.nsp+","),a.id!=null&&(i+=a.id),a.data!=null&&(i+=JSON.stringify(a.data,this.replacer)),i}encodeAsBinary(a){const i=IM(a),s=this.encodeAsString(i.packet),u=i.buffers;return u.unshift(s),u}}function zv(n){return Object.prototype.toString.call(n)==="[object Object]"}class mm extends bt{constructor(a){super(),this.reviver=a}add(a){let i;if(typeof a=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");i=this.decodeString(a);const s=i.type===Le.BINARY_EVENT;s||i.type===Le.BINARY_ACK?(i.type=s?Le.EVENT:Le.ACK,this.reconstructor=new FM(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(hm(a)||a.base64)if(this.reconstructor)i=this.reconstructor.takeBinaryData(a),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: "+a)}decodeString(a){let i=0;const s={type:Number(a.charAt(0))};if(Le[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===Le.BINARY_EVENT||s.type===Le.BINARY_ACK){const f=i+1;for(;a.charAt(++i)!=="-"&&i!=a.length;);const d=a.substring(f,i);if(d!=Number(d)||a.charAt(i)!=="-")throw new Error("Illegal attachments");s.attachments=Number(d)}if(a.charAt(i+1)==="/"){const f=i+1;for(;++i&&!(a.charAt(i)===","||i===a.length););s.nsp=a.substring(f,i)}else s.nsp="/";const u=a.charAt(i+1);if(u!==""&&Number(u)==u){const f=i+1;for(;++i;){const d=a.charAt(i);if(d==null||Number(d)!=d){--i;break}if(i===a.length)break}s.id=Number(a.substring(f,i+1))}if(a.charAt(++i)){const f=this.tryParse(a.substr(i));if(mm.isPayloadValid(s.type,f))s.data=f;else throw new Error("invalid payload")}return s}tryParse(a){try{return JSON.parse(a,this.reviver)}catch{return!1}}static isPayloadValid(a,i){switch(a){case Le.CONNECT:return zv(i);case Le.DISCONNECT:return i===void 0;case Le.CONNECT_ERROR:return typeof i=="string"||zv(i);case Le.EVENT:case Le.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&GM.indexOf(i[0])===-1);case Le.ACK:case Le.BINARY_ACK:return Array.isArray(i)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class FM{constructor(a){this.packet=a,this.buffers=[],this.reconPack=a}takeBinaryData(a){if(this.buffers.push(a),this.buffers.length===this.reconPack.attachments){const i=zM(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const VM=Object.freeze(Object.defineProperty({__proto__:null,Decoder:mm,Encoder:qM,get PacketType(){return Le},protocol:kM},Symbol.toStringTag,{value:"Module"}));function zn(n,a,i){return n.on(a,i),function(){n.off(a,i)}}const YM=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Q_ extends bt{constructor(a,i,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=a,this.nsp=i,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const a=this.io;this.subs=[zn(a,"open",this.onopen.bind(this)),zn(a,"packet",this.onpacket.bind(this)),zn(a,"error",this.onerror.bind(this)),zn(a,"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(...a){return a.unshift("message"),this.emit.apply(this,a),this}emit(a,...i){var s,u,f;if(YM.hasOwnProperty(a))throw new Error('"'+a.toString()+'" is a reserved event name');if(i.unshift(a),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(i),this;const d={type:Le.EVENT,data:i};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof i[i.length-1]=="function"){const b=this.ids++,_=i.pop();this._registerAckCallback(b,_),d.id=b}const h=(u=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||u===void 0?void 0:u.writable,m=this.connected&&!(!((f=this.io.engine)===null||f===void 0)&&f._hasPingExpired());return this.flags.volatile&&!h||(m?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d)),this.flags={},this}_registerAckCallback(a,i){var s;const u=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(u===void 0){this.acks[a]=i;return}const f=this.io.setTimeoutFn(()=>{delete this.acks[a];for(let h=0;h<this.sendBuffer.length;h++)this.sendBuffer[h].id===a&&this.sendBuffer.splice(h,1);i.call(this,new Error("operation has timed out"))},u),d=(...h)=>{this.io.clearTimeoutFn(f),i.apply(this,h)};d.withError=!0,this.acks[a]=d}emitWithAck(a,...i){return new Promise((s,u)=>{const f=(d,h)=>d?u(d):s(h);f.withError=!0,i.push(f),this.emit(a,...i)})}_addToQueue(a){let i;typeof a[a.length-1]=="function"&&(i=a.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:a,flags:Object.assign({fromQueue:!0},this.flags)};a.push((u,...f)=>s!==this._queue[0]?void 0:(u!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),i&&i(u)):(this._queue.shift(),i&&i(null,...f)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(a=!1){if(!this.connected||this._queue.length===0)return;const i=this._queue[0];i.pending&&!a||(i.pending=!0,i.tryCount++,this.flags=i.flags,this.emit.apply(this,i.args))}packet(a){a.nsp=this.nsp,this.io._packet(a)}onopen(){typeof this.auth=="function"?this.auth(a=>{this._sendConnectPacket(a)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(a){this.packet({type:Le.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},a):a})}onerror(a){this.connected||this.emitReserved("connect_error",a)}onclose(a,i){this.connected=!1,delete this.id,this.emitReserved("disconnect",a,i),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(a=>{if(!this.sendBuffer.some(s=>String(s.id)===a)){const s=this.acks[a];delete this.acks[a],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(a){if(a.nsp===this.nsp)switch(a.type){case Le.CONNECT:a.data&&a.data.sid?this.onconnect(a.data.sid,a.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 Le.EVENT:case Le.BINARY_EVENT:this.onevent(a);break;case Le.ACK:case Le.BINARY_ACK:this.onack(a);break;case Le.DISCONNECT:this.ondisconnect();break;case Le.CONNECT_ERROR:this.destroy();const s=new Error(a.data.message);s.data=a.data.data,this.emitReserved("connect_error",s);break}}onevent(a){const i=a.data||[];a.id!=null&&i.push(this.ack(a.id)),this.connected?this.emitEvent(i):this.receiveBuffer.push(Object.freeze(i))}emitEvent(a){if(this._anyListeners&&this._anyListeners.length){const i=this._anyListeners.slice();for(const s of i)s.apply(this,a)}super.emit.apply(this,a),this._pid&&a.length&&typeof a[a.length-1]=="string"&&(this._lastOffset=a[a.length-1])}ack(a){const i=this;let s=!1;return function(...u){s||(s=!0,i.packet({type:Le.ACK,id:a,data:u}))}}onack(a){const i=this.acks[a.id];typeof i=="function"&&(delete this.acks[a.id],i.withError&&a.data.unshift(null),i.apply(this,a.data))}onconnect(a,i){this.id=a,this.recovered=i&&this._pid===i,this._pid=i,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(a=>this.emitEvent(a)),this.receiveBuffer=[],this.sendBuffer.forEach(a=>{this.notifyOutgoingListeners(a),this.packet(a)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(a=>a()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Le.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(a){return this.flags.compress=a,this}get volatile(){return this.flags.volatile=!0,this}timeout(a){return this.flags.timeout=a,this}onAny(a){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(a),this}prependAny(a){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(a),this}offAny(a){if(!this._anyListeners)return this;if(a){const i=this._anyListeners;for(let s=0;s<i.length;s++)if(a===i[s])return i.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(a){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(a),this}prependAnyOutgoing(a){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(a),this}offAnyOutgoing(a){if(!this._anyOutgoingListeners)return this;if(a){const i=this._anyOutgoingListeners;for(let s=0;s<i.length;s++)if(a===i[s])return i.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(a){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const i=this._anyOutgoingListeners.slice();for(const s of i)s.apply(this,a.data)}}}function Li(n){n=n||{},this.ms=n.min||100,this.max=n.max||1e4,this.factor=n.factor||2,this.jitter=n.jitter>0&&n.jitter<=1?n.jitter:0,this.attempts=0}Li.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var a=Math.random(),i=Math.floor(a*this.jitter*n);n=(Math.floor(a*10)&1)==0?n-i:n+i}return Math.min(n,this.max)|0};Li.prototype.reset=function(){this.attempts=0};Li.prototype.setMin=function(n){this.ms=n};Li.prototype.setMax=function(n){this.max=n};Li.prototype.setJitter=function(n){this.jitter=n};class Rh extends bt{constructor(a,i){var s;super(),this.nsps={},this.subs=[],a&&typeof a=="object"&&(i=a,a=void 0),i=i||{},i.path=i.path||"/socket.io",this.opts=i,Lu(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((s=i.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new Li({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(i.timeout==null?2e4:i.timeout),this._readyState="closed",this.uri=a;const u=i.parser||VM;this.encoder=new u.Encoder,this.decoder=new u.Decoder,this._autoConnect=i.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(a){return arguments.length?(this._reconnection=!!a,a||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(a){return a===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=a,this)}reconnectionDelay(a){var i;return a===void 0?this._reconnectionDelay:(this._reconnectionDelay=a,(i=this.backoff)===null||i===void 0||i.setMin(a),this)}randomizationFactor(a){var i;return a===void 0?this._randomizationFactor:(this._randomizationFactor=a,(i=this.backoff)===null||i===void 0||i.setJitter(a),this)}reconnectionDelayMax(a){var i;return a===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=a,(i=this.backoff)===null||i===void 0||i.setMax(a),this)}timeout(a){return arguments.length?(this._timeout=a,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(a){if(~this._readyState.indexOf("open"))return this;this.engine=new DM(this.uri,this.opts);const i=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const u=zn(i,"open",function(){s.onopen(),a&&a()}),f=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),a?a(h):this.maybeReconnectOnOpen()},d=zn(i,"error",f);if(this._timeout!==!1){const h=this._timeout,m=this.setTimeoutFn(()=>{u(),f(new Error("timeout")),i.close()},h);this.opts.autoUnref&&m.unref(),this.subs.push(()=>{this.clearTimeoutFn(m)})}return this.subs.push(u),this.subs.push(d),this}connect(a){return this.open(a)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const a=this.engine;this.subs.push(zn(a,"ping",this.onping.bind(this)),zn(a,"data",this.ondata.bind(this)),zn(a,"error",this.onerror.bind(this)),zn(a,"close",this.onclose.bind(this)),zn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(a){try{this.decoder.add(a)}catch(i){this.onclose("parse error",i)}}ondecoded(a){Du(()=>{this.emitReserved("packet",a)},this.setTimeoutFn)}onerror(a){this.emitReserved("error",a)}socket(a,i){let s=this.nsps[a];return s?this._autoConnect&&!s.active&&s.connect():(s=new Q_(this,a,i),this.nsps[a]=s),s}_destroy(a){const i=Object.keys(this.nsps);for(const s of i)if(this.nsps[s].active)return;this._close()}_packet(a){const i=this.encoder.encode(a);for(let s=0;s<i.length;s++)this.engine.write(i[s],a.options)}cleanup(){this.subs.forEach(a=>a()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(a,i){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",a,i),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const a=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 s=this.setTimeoutFn(()=>{a.skipReconnect||(this.emitReserved("reconnect_attempt",a.backoff.attempts),!a.skipReconnect&&a.open(u=>{u?(a._reconnecting=!1,a.reconnect(),this.emitReserved("reconnect_error",u)):a.onreconnect()}))},i);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const a=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",a)}}const Zl={};function su(n,a){typeof n=="object"&&(a=n,n=void 0),a=a||{};const i=LM(n,a.path||"/socket.io"),s=i.source,u=i.id,f=i.path,d=Zl[u]&&f in Zl[u].nsps,h=a.forceNew||a["force new connection"]||a.multiplex===!1||d;let m;return h?m=new Rh(s,a):(Zl[u]||(Zl[u]=new Rh(s,a)),m=Zl[u]),i.query&&!a.query&&(a.query=i.queryKey),m.socket(i.path,a)}Object.assign(su,{Manager:Rh,Socket:Q_,io:su,connect:su});const PM=[Te.ActionTypes.MESSAGE_TO_GUEST,Te.ActionTypes.EVENT_TO_GUEST,Te.ActionTypes.TYPING_ON,Te.ActionTypes.TYPING_OFF,Te.ActionTypes.RESTART_CHAT_REQUEST,...Zx,...kO,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],XM=({dispatch:n,getState:a})=>i=>{let s=null;return u=>{const f=i(u);if(u.type===Wh){s?.disconnect(),n($x());const d=`/chat?${Tu.stringify(u.querystrings)}`;s=su(`/${u.clientName}${d}`),s.on("action",n),s.on("connect",()=>n(Wx())),s.on("disconnect",()=>n(Jx())),s.on("reconnect",()=>n(eC())),s.on("set-translations",(h,m)=>{n(q8({language:h,messages:j8(h,m)}))}),s.on("set-settings",h=>{n(Y8(h))}),s.on("enable-conversation-rating",h=>n(PO(h))),s.on("speech-transcription",h=>n(FO(h))),s.on("restore-client-state",h=>{n(Kx(h.sessionId)),n(ZO(h.messages))}),s.on("expand-window",({devices:h,initial:m=!1})=>{n({type:D1,devices:h,initial:m})}),s.on("restart-chat",()=>{n(ls())}),s.on("login-success",h=>{n(Gx({loginToken:h.loginToken}))})}else if(u.type==="start-screen/requestLogin")s?.emit("login-requested",u.payload);else if(u.type===Cu)s?.emit("start-chat",u.payload);else if(u.type===Ru)s?.emit("terminate-session",u.payload);else if(u.type===GO)s?.emit("get-started",JSON.stringify(u));else if(u.type===kh)s?.emit("audio-message",u.buffer);else if(u.type===Te.ActionTypes.CONVERSATION_RATING_FROM_GUEST)s?.emit("conversation-rating",u.payload);else if(u.type===B1){const{connection:{sessionId:d}}=a();window.location.href=`/transcript-pdf/${d}`}else PM.indexOf(u.type)===-1&&u.meta===void 0&&s&&s.emit("action",JSON.stringify(u));return f}},K_=Xh(),ZM={...Q8(K_),intl:M_},wh=xx({middleware:n=>n().concat(XM),reducer:X8,preloadedState:ZM});wh.subscribe(R8(()=>{const n=wh.getState();K8(K_,{connection:n.connection,startScreen:n.startScreen})},1e3));const QM=document.getElementById("root"),KM=mS.createRoot(QM);KM.render(y.jsx(hT,{store:wh,children:y.jsx(O8,{})}));
125
+ //# sourceMappingURL=index-BLgwfMqE.js.map