chatbot-interface-ifi 1.3.0 โ†’ 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(ke,ee){typeof exports=="object"&&typeof module<"u"?ee(exports,require("react"),require("@mui/material"),require("@emotion/styled"),require("@emotion/react"),require("react-markdown")):typeof define=="function"&&define.amd?define(["exports","react","@mui/material","@emotion/styled","@emotion/react","react-markdown"],ee):(ke=typeof globalThis<"u"?globalThis:ke||self,ee(ke.ChatbotInterface={},ke.React,ke.MaterialUI,ke.EmotionStyled,ke.EmotionReact,ke.ReactMarkdown))})(this,function(ke,ee,T,vs,it,cn){"use strict";function Es(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const se=Es(ee);function xe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Be(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var Ft={exports:{}},at={};/**
1
+ (function(Ne,F){typeof exports=="object"&&typeof module<"u"?F(exports,require("react"),require("@mui/material"),require("@emotion/styled"),require("@emotion/react"),require("react-markdown")):typeof define=="function"&&define.amd?define(["exports","react","@mui/material","@emotion/styled","@emotion/react","react-markdown"],F):(Ne=typeof globalThis<"u"?globalThis:Ne||self,F(Ne.ChatbotInterface={},Ne.React,Ne.MaterialUI,Ne.EmotionStyled,Ne.EmotionReact,Ne.ReactMarkdown))})(this,function(Ne,F,d,Hi,wt,sn){"use strict";function Yi(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const ye=Yi(F);function Q(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ge(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var Sr={exports:{}},Ct={};/**
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 un;function Ss(){if(un)return at;un=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,s){var i=null;if(s!==void 0&&(i=""+s),o.key!==void 0&&(i=""+o.key),"key"in o){s={};for(var c in o)c!=="key"&&(s[c]=o[c])}else s=o;return o=s.ref,{$$typeof:e,type:n,key:i,ref:o!==void 0?o:null,props:s}}return at.Fragment=t,at.jsx=r,at.jsxs=r,at}var ct={};/**
9
+ */var to;function Gi(){if(to)return Ct;to=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,s){var i=null;if(s!==void 0&&(i=""+s),o.key!==void 0&&(i=""+o.key),"key"in o){s={};for(var u in o)u!=="key"&&(s[u]=o[u])}else s=o;return o=s.ref,{$$typeof:e,type:n,key:i,ref:o!==void 0?o:null,props:s}}return Ct.Fragment=t,Ct.jsx=r,Ct.jsxs=r,Ct}var Et={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,31 +14,31 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var ln;function ws(){return ln||(ln=1,process.env.NODE_ENV!=="production"&&function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===C?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case a:return"Fragment";case _:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case V:return"SuspenseList";case w:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case y:return"Portal";case j:return(f.displayName||"Context")+".Provider";case $:return(f._context.displayName||"Context")+".Consumer";case F:var x=f.render;return f=f.displayName,f||(f=x.displayName||x.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case d:return x=f.displayName||null,x!==null?x:e(f.type)||"Memo";case R:x=f._payload,f=f._init;try{return e(f(x))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var x=!1}catch{x=!0}if(x){x=console;var O=x.error,P=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return O.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",P),t(f)}}function n(f){if(f===a)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===R)return"<...>";try{var x=e(f);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var f=M.A;return f===null?null:f.getOwner()}function s(){return Error("react-stack-top-frame")}function i(f){if(H.call(f,"key")){var x=Object.getOwnPropertyDescriptor(f,"key").get;if(x&&x.isReactWarning)return!1}return f.key!==void 0}function c(f,x){function O(){G||(G=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",x))}O.isReactWarning=!0,Object.defineProperty(f,"key",{get:O,configurable:!0})}function h(){var f=e(this.type);return K[f]||(K[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function u(f,x,O,P,I,N,B,L){return O=N.ref,f={$$typeof:E,type:f,key:x,props:N,_owner:I},(O!==void 0?O:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:h}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:B}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:L}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function l(f,x,O,P,I,N,B,L){var k=x.children;if(k!==void 0)if(P)if(Y(k)){for(P=0;P<k.length;P++)p(k[P]);Object.freeze&&Object.freeze(k)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(k);if(H.call(x,"key")){k=e(f);var D=Object.keys(x).filter(function(de){return de!=="key"});P=0<D.length?"{key: someKey, "+D.join(": ..., ")+": ...}":"{key: someKey}",W[k+P]||(D=0<D.length?"{"+D.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var ro;function Ki(){return ro||(ro=1,process.env.NODE_ENV!=="production"&&function(){function e(y){if(y==null)return null;if(typeof y=="function")return y.$$typeof===O?null:y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case c:return"Fragment";case v:return"Profiler";case x:return"StrictMode";case C:return"Suspense";case Y:return"SuspenseList";case E:return"Activity"}if(typeof y=="object")switch(typeof y.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),y.$$typeof){case b:return"Portal";case T:return(y.displayName||"Context")+".Provider";case j:return(y._context.displayName||"Context")+".Consumer";case D:var R=y.render;return y=y.displayName,y||(y=R.displayName||R.name||"",y=y!==""?"ForwardRef("+y+")":"ForwardRef"),y;case m:return R=y.displayName||null,R!==null?R:e(y.type)||"Memo";case _:R=y._payload,y=y._init;try{return e(y(R))}catch{}}return null}function t(y){return""+y}function r(y){try{t(y);var R=!1}catch{R=!0}if(R){R=console;var M=R.error,N=typeof Symbol=="function"&&Symbol.toStringTag&&y[Symbol.toStringTag]||y.constructor.name||"Object";return M.call(R,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",N),t(y)}}function n(y){if(y===c)return"<>";if(typeof y=="object"&&y!==null&&y.$$typeof===_)return"<...>";try{var R=e(y);return R?"<"+R+">":"<...>"}catch{return"<...>"}}function o(){var y=W.A;return y===null?null:y.getOwner()}function s(){return Error("react-stack-top-frame")}function i(y){if(U.call(y,"key")){var R=Object.getOwnPropertyDescriptor(y,"key").get;if(R&&R.isReactWarning)return!1}return y.key!==void 0}function u(y,R){function M(){J||(J=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",R))}M.isReactWarning=!0,Object.defineProperty(y,"key",{get:M,configurable:!0})}function h(){var y=e(this.type);return K[y]||(K[y]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),y=this.props.ref,y!==void 0?y:null}function l(y,R,M,N,z,A,$,q){return M=A.ref,y={$$typeof:S,type:y,key:R,props:A,_owner:z},(M!==void 0?M:null)!==null?Object.defineProperty(y,"ref",{enumerable:!1,get:h}):Object.defineProperty(y,"ref",{enumerable:!1,value:null}),y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(y,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(y,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:$}),Object.defineProperty(y,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:q}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y}function f(y,R,M,N,z,A,$,q){var k=R.children;if(k!==void 0)if(N)if(Z(k)){for(N=0;N<k.length;N++)p(k[N]);Object.freeze&&Object.freeze(k)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(k);if(U.call(R,"key")){k=e(y);var B=Object.keys(R).filter(function(xe){return xe!=="key"});N=0<B.length?"{key: someKey, "+B.join(": ..., ")+": ...}":"{key: someKey}",Te[k+N]||(B=0<B.length?"{"+B.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,P,k,D,k),W[k+P]=!0)}if(k=null,O!==void 0&&(r(O),k=""+O),i(x)&&(r(x.key),k=""+x.key),"key"in x){O={};for(var U in x)U!=="key"&&(O[U]=x[U])}else O=x;return k&&c(O,typeof f=="function"?f.displayName||f.name||"Unknown":f),u(f,k,N,I,o(),O,B,L)}function p(f){typeof f=="object"&&f!==null&&f.$$typeof===E&&f._store&&(f._store.validated=1)}var m=ee,E=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),$=Symbol.for("react.consumer"),j=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),w=Symbol.for("react.activity"),C=Symbol.for("react.client.reference"),M=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=Object.prototype.hasOwnProperty,Y=Array.isArray,oe=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(f){return f()}};var G,K={},ce=m.react_stack_bottom_frame.bind(m,s)(),Ie=oe(n(s)),W={};ct.Fragment=a,ct.jsx=function(f,x,O,P,I){var N=1e4>M.recentlyCreatedOwnerStacks++;return l(f,x,O,!1,P,I,N?Error("react-stack-top-frame"):ce,N?oe(n(f)):Ie)},ct.jsxs=function(f,x,O,P,I){var N=1e4>M.recentlyCreatedOwnerStacks++;return l(f,x,O,!0,P,I,N?Error("react-stack-top-frame"):ce,N?oe(n(f)):Ie)}}()),ct}var fn;function Re(){return fn||(fn=1,process.env.NODE_ENV==="production"?Ft.exports=Ss():Ft.exports=ws()),Ft.exports}var v=Re(),ut={},vr={exports:{}},dn;function ve(){return dn||(dn=1,function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(vr)),vr.exports}var Er={};function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},te.apply(null,arguments)}function qe(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function pn(e){if(se.isValidElement(e)||!qe(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=pn(e[r])}),t}function Ne(e,t,r={clone:!0}){const n=r.clone?te({},e):e;return qe(e)&&qe(t)&&Object.keys(t).forEach(o=>{se.isValidElement(t[o])?n[o]=t[o]:qe(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&qe(e[o])?n[o]=Ne(e[o],t[o],r):r.clone?n[o]=qe(t[o])?pn(t[o]):t[o]:n[o]=t[o]}),n}const Rs=Object.freeze(Object.defineProperty({__proto__:null,default:Ne,isPlainObject:qe},Symbol.toStringTag,{value:"Module"}));var Mt={exports:{}},Bt={exports:{}},Q={};/** @license React v16.13.1
22
+ <%s key={someKey} {...props} />`,N,k,B,k),Te[k+N]=!0)}if(k=null,M!==void 0&&(r(M),k=""+M),i(R)&&(r(R.key),k=""+R.key),"key"in R){M={};for(var V in R)V!=="key"&&(M[V]=R[V])}else M=R;return k&&u(M,typeof y=="function"?y.displayName||y.name||"Unknown":y),l(y,k,A,z,o(),M,$,q)}function p(y){typeof y=="object"&&y!==null&&y.$$typeof===S&&y._store&&(y._store.validated=1)}var g=F,S=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),T=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),O=Symbol.for("react.client.reference"),W=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=Object.prototype.hasOwnProperty,Z=Array.isArray,le=console.createTask?console.createTask:function(){return null};g={react_stack_bottom_frame:function(y){return y()}};var J,K={},de=g.react_stack_bottom_frame.bind(g,s)(),ge=le(n(s)),Te={};Et.Fragment=c,Et.jsx=function(y,R,M,N,z){var A=1e4>W.recentlyCreatedOwnerStacks++;return f(y,R,M,!1,N,z,A?Error("react-stack-top-frame"):de,A?le(n(y)):ge)},Et.jsxs=function(y,R,M,N,z){var A=1e4>W.recentlyCreatedOwnerStacks++;return f(y,R,M,!0,N,z,A?Error("react-stack-top-frame"):de,A?le(n(y)):ge)}}()),Et}var no;function ee(){return no||(no=1,process.env.NODE_ENV==="production"?Sr.exports=Gi():Sr.exports=Ki()),Sr.exports}var a=ee(),Rt={},an={exports:{}},oo;function X(){return oo||(oo=1,function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(an)),an.exports}var cn={};function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ue.apply(null,arguments)}function Je(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function so(e){if(ye.isValidElement(e)||!Je(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=so(e[r])}),t}function We(e,t,r={clone:!0}){const n=r.clone?ue({},e):e;return Je(e)&&Je(t)&&Object.keys(t).forEach(o=>{ye.isValidElement(t[o])?n[o]=t[o]:Je(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Je(e[o])?n[o]=We(e[o],t[o],r):r.clone?n[o]=Je(t[o])?so(t[o]):t[o]:n[o]=t[o]}),n}const Ji=Object.freeze(Object.defineProperty({__proto__:null,default:We,isPlainObject:Je},Symbol.toStringTag,{value:"Module"}));var wr={exports:{}},Cr={exports:{}},ie={};/** @license React v16.13.1
23
23
  * react-is.production.min.js
24
24
  *
25
25
  * Copyright (c) Facebook, Inc. and its affiliates.
26
26
  *
27
27
  * This source code is licensed under the MIT license found in the
28
28
  * LICENSE file in the root directory of this source tree.
29
- */var hn;function _s(){if(hn)return Q;hn=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,a=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,$=e?Symbol.for("react.scope"):60119;function j(S){if(typeof S=="object"&&S!==null){var V=S.$$typeof;switch(V){case t:switch(S=S.type,S){case h:case u:case n:case s:case o:case p:return S;default:switch(S=S&&S.$$typeof,S){case c:case l:case y:case E:case i:return S;default:return V}}case r:return V}}}function F(S){return j(S)===u}return Q.AsyncMode=h,Q.ConcurrentMode=u,Q.ContextConsumer=c,Q.ContextProvider=i,Q.Element=t,Q.ForwardRef=l,Q.Fragment=n,Q.Lazy=y,Q.Memo=E,Q.Portal=r,Q.Profiler=s,Q.StrictMode=o,Q.Suspense=p,Q.isAsyncMode=function(S){return F(S)||j(S)===h},Q.isConcurrentMode=F,Q.isContextConsumer=function(S){return j(S)===c},Q.isContextProvider=function(S){return j(S)===i},Q.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},Q.isForwardRef=function(S){return j(S)===l},Q.isFragment=function(S){return j(S)===n},Q.isLazy=function(S){return j(S)===y},Q.isMemo=function(S){return j(S)===E},Q.isPortal=function(S){return j(S)===r},Q.isProfiler=function(S){return j(S)===s},Q.isStrictMode=function(S){return j(S)===o},Q.isSuspense=function(S){return j(S)===p},Q.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===u||S===s||S===o||S===p||S===m||typeof S=="object"&&S!==null&&(S.$$typeof===y||S.$$typeof===E||S.$$typeof===i||S.$$typeof===c||S.$$typeof===l||S.$$typeof===g||S.$$typeof===_||S.$$typeof===$||S.$$typeof===a)},Q.typeOf=j,Q}var Z={};/** @license React v16.13.1
29
+ */var io;function Qi(){if(io)return ie;io=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,c=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function T(C){if(typeof C=="object"&&C!==null){var Y=C.$$typeof;switch(Y){case t:switch(C=C.type,C){case h:case l:case n:case s:case o:case p:return C;default:switch(C=C&&C.$$typeof,C){case u:case f:case b:case S:case i:return C;default:return Y}}case r:return Y}}}function D(C){return T(C)===l}return ie.AsyncMode=h,ie.ConcurrentMode=l,ie.ContextConsumer=u,ie.ContextProvider=i,ie.Element=t,ie.ForwardRef=f,ie.Fragment=n,ie.Lazy=b,ie.Memo=S,ie.Portal=r,ie.Profiler=s,ie.StrictMode=o,ie.Suspense=p,ie.isAsyncMode=function(C){return D(C)||T(C)===h},ie.isConcurrentMode=D,ie.isContextConsumer=function(C){return T(C)===u},ie.isContextProvider=function(C){return T(C)===i},ie.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},ie.isForwardRef=function(C){return T(C)===f},ie.isFragment=function(C){return T(C)===n},ie.isLazy=function(C){return T(C)===b},ie.isMemo=function(C){return T(C)===S},ie.isPortal=function(C){return T(C)===r},ie.isProfiler=function(C){return T(C)===s},ie.isStrictMode=function(C){return T(C)===o},ie.isSuspense=function(C){return T(C)===p},ie.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===n||C===l||C===s||C===o||C===p||C===g||typeof C=="object"&&C!==null&&(C.$$typeof===b||C.$$typeof===S||C.$$typeof===i||C.$$typeof===u||C.$$typeof===f||C.$$typeof===x||C.$$typeof===v||C.$$typeof===j||C.$$typeof===c)},ie.typeOf=T,ie}var ae={};/** @license React v16.13.1
30
30
  * react-is.development.js
31
31
  *
32
32
  * Copyright (c) Facebook, Inc. and its affiliates.
33
33
  *
34
34
  * This source code is licensed under the MIT license found in the
35
35
  * LICENSE file in the root directory of this source tree.
36
- */var mn;function Ts(){return mn||(mn=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,a=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,$=e?Symbol.for("react.scope"):60119;function j(A){return typeof A=="string"||typeof A=="function"||A===n||A===u||A===s||A===o||A===p||A===m||typeof A=="object"&&A!==null&&(A.$$typeof===y||A.$$typeof===E||A.$$typeof===i||A.$$typeof===c||A.$$typeof===l||A.$$typeof===g||A.$$typeof===_||A.$$typeof===$||A.$$typeof===a)}function F(A){if(typeof A=="object"&&A!==null){var we=A.$$typeof;switch(we){case t:var me=A.type;switch(me){case h:case u:case n:case s:case o:case p:return me;default:var Ce=me&&me.$$typeof;switch(Ce){case c:case l:case y:case E:case i:return Ce;default:return we}}case r:return we}}}var S=h,V=u,d=c,R=i,w=t,C=l,M=n,H=y,Y=E,oe=r,G=s,K=o,ce=p,Ie=!1;function W(A){return Ie||(Ie=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),f(A)||F(A)===h}function f(A){return F(A)===u}function x(A){return F(A)===c}function O(A){return F(A)===i}function P(A){return typeof A=="object"&&A!==null&&A.$$typeof===t}function I(A){return F(A)===l}function N(A){return F(A)===n}function B(A){return F(A)===y}function L(A){return F(A)===E}function k(A){return F(A)===r}function D(A){return F(A)===s}function U(A){return F(A)===o}function de(A){return F(A)===p}Z.AsyncMode=S,Z.ConcurrentMode=V,Z.ContextConsumer=d,Z.ContextProvider=R,Z.Element=w,Z.ForwardRef=C,Z.Fragment=M,Z.Lazy=H,Z.Memo=Y,Z.Portal=oe,Z.Profiler=G,Z.StrictMode=K,Z.Suspense=ce,Z.isAsyncMode=W,Z.isConcurrentMode=f,Z.isContextConsumer=x,Z.isContextProvider=O,Z.isElement=P,Z.isForwardRef=I,Z.isFragment=N,Z.isLazy=B,Z.isMemo=L,Z.isPortal=k,Z.isProfiler=D,Z.isStrictMode=U,Z.isSuspense=de,Z.isValidElementType=j,Z.typeOf=F}()),Z}var yn;function gn(){return yn||(yn=1,process.env.NODE_ENV==="production"?Bt.exports=_s():Bt.exports=Ts()),Bt.exports}/*
36
+ */var ao;function Xi(){return ao||(ao=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,c=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function T(I){return typeof I=="string"||typeof I=="function"||I===n||I===l||I===s||I===o||I===p||I===g||typeof I=="object"&&I!==null&&(I.$$typeof===b||I.$$typeof===S||I.$$typeof===i||I.$$typeof===u||I.$$typeof===f||I.$$typeof===x||I.$$typeof===v||I.$$typeof===j||I.$$typeof===c)}function D(I){if(typeof I=="object"&&I!==null){var Oe=I.$$typeof;switch(Oe){case t:var Ee=I.type;switch(Ee){case h:case l:case n:case s:case o:case p:return Ee;default:var Re=Ee&&Ee.$$typeof;switch(Re){case u:case f:case b:case S:case i:return Re;default:return Oe}}case r:return Oe}}}var C=h,Y=l,m=u,_=i,E=t,O=f,W=n,U=b,Z=S,le=r,J=s,K=o,de=p,ge=!1;function Te(I){return ge||(ge=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),y(I)||D(I)===h}function y(I){return D(I)===l}function R(I){return D(I)===u}function M(I){return D(I)===i}function N(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function z(I){return D(I)===f}function A(I){return D(I)===n}function $(I){return D(I)===b}function q(I){return D(I)===S}function k(I){return D(I)===r}function B(I){return D(I)===s}function V(I){return D(I)===o}function xe(I){return D(I)===p}ae.AsyncMode=C,ae.ConcurrentMode=Y,ae.ContextConsumer=m,ae.ContextProvider=_,ae.Element=E,ae.ForwardRef=O,ae.Fragment=W,ae.Lazy=U,ae.Memo=Z,ae.Portal=le,ae.Profiler=J,ae.StrictMode=K,ae.Suspense=de,ae.isAsyncMode=Te,ae.isConcurrentMode=y,ae.isContextConsumer=R,ae.isContextProvider=M,ae.isElement=N,ae.isForwardRef=z,ae.isFragment=A,ae.isLazy=$,ae.isMemo=q,ae.isPortal=k,ae.isProfiler=B,ae.isStrictMode=V,ae.isSuspense=xe,ae.isValidElementType=T,ae.typeOf=D}()),ae}var co;function uo(){return co||(co=1,process.env.NODE_ENV==="production"?Cr.exports=Qi():Cr.exports=Xi()),Cr.exports}/*
37
37
  object-assign
38
38
  (c) Sindre Sorhus
39
39
  @license MIT
40
- */var Sr,bn;function Os(){if(bn)return Sr;bn=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function o(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var i={},c=0;c<10;c++)i["_"+String.fromCharCode(c)]=c;var h=Object.getOwnPropertyNames(i).map(function(l){return i[l]});if(h.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(l){u[l]=l}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Sr=o()?Object.assign:function(s,i){for(var c,h=n(s),u,l=1;l<arguments.length;l++){c=Object(arguments[l]);for(var p in c)t.call(c,p)&&(h[p]=c[p]);if(e){u=e(c);for(var m=0;m<u.length;m++)r.call(c,u[m])&&(h[u[m]]=c[u[m]])}}return h},Sr}var wr,xn;function Rr(){if(xn)return wr;xn=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return wr=e,wr}var _r,vn;function En(){return vn||(vn=1,_r=Function.call.bind(Object.prototype.hasOwnProperty)),_r}var Tr,Sn;function Cs(){if(Sn)return Tr;Sn=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Rr(),r={},n=En();e=function(s){var i="Warning: "+s;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(s,i,c,h,u){if(process.env.NODE_ENV!=="production"){for(var l in s)if(n(s,l)){var p;try{if(typeof s[l]!="function"){var m=Error((h||"React class")+": "+c+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}p=s[l](i,l,h,c,null,t)}catch(y){p=y}if(p&&!(p instanceof Error)&&e((h||"React class")+": type specification of "+c+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var E=u?u():"";e("Failed "+c+" type: "+p.message+(E??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Tr=o,Tr}var Or,wn;function As(){if(wn)return Or;wn=1;var e=gn(),t=Os(),r=Rr(),n=En(),o=Cs(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var h="Warning: "+c;typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}});function i(){return null}return Or=function(c,h){var u=typeof Symbol=="function"&&Symbol.iterator,l="@@iterator";function p(f){var x=f&&(u&&f[u]||f[l]);if(typeof x=="function")return x}var m="<<anonymous>>",E={array:_("array"),bigint:_("bigint"),bool:_("boolean"),func:_("function"),number:_("number"),object:_("object"),string:_("string"),symbol:_("symbol"),any:$(),arrayOf:j,element:F(),elementType:S(),instanceOf:V,node:C(),objectOf:R,oneOf:d,oneOfType:w,shape:H,exact:Y};function y(f,x){return f===x?f!==0||1/f===1/x:f!==f&&x!==x}function a(f,x){this.message=f,this.data=x&&typeof x=="object"?x:{},this.stack=""}a.prototype=Error.prototype;function g(f){if(process.env.NODE_ENV!=="production")var x={},O=0;function P(N,B,L,k,D,U,de){if(k=k||m,U=U||L,de!==r){if(h){var A=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw A.name="Invariant Violation",A}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var we=k+":"+L;!x[we]&&O<3&&(s("You are manually calling a React.PropTypes validation function for the `"+U+"` prop on `"+k+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),x[we]=!0,O++)}}return B[L]==null?N?B[L]===null?new a("The "+D+" `"+U+"` is marked as required "+("in `"+k+"`, but its value is `null`.")):new a("The "+D+" `"+U+"` is marked as required in "+("`"+k+"`, but its value is `undefined`.")):null:f(B,L,k,D,U)}var I=P.bind(null,!1);return I.isRequired=P.bind(null,!0),I}function _(f){function x(O,P,I,N,B,L){var k=O[P],D=K(k);if(D!==f){var U=ce(k);return new a("Invalid "+N+" `"+B+"` of type "+("`"+U+"` supplied to `"+I+"`, expected ")+("`"+f+"`."),{expectedType:f})}return null}return g(x)}function $(){return g(i)}function j(f){function x(O,P,I,N,B){if(typeof f!="function")return new a("Property `"+B+"` of component `"+I+"` has invalid PropType notation inside arrayOf.");var L=O[P];if(!Array.isArray(L)){var k=K(L);return new a("Invalid "+N+" `"+B+"` of type "+("`"+k+"` supplied to `"+I+"`, expected an array."))}for(var D=0;D<L.length;D++){var U=f(L,D,I,N,B+"["+D+"]",r);if(U instanceof Error)return U}return null}return g(x)}function F(){function f(x,O,P,I,N){var B=x[O];if(!c(B)){var L=K(B);return new a("Invalid "+I+" `"+N+"` of type "+("`"+L+"` supplied to `"+P+"`, expected a single ReactElement."))}return null}return g(f)}function S(){function f(x,O,P,I,N){var B=x[O];if(!e.isValidElementType(B)){var L=K(B);return new a("Invalid "+I+" `"+N+"` of type "+("`"+L+"` supplied to `"+P+"`, expected a single ReactElement type."))}return null}return g(f)}function V(f){function x(O,P,I,N,B){if(!(O[P]instanceof f)){var L=f.name||m,k=W(O[P]);return new a("Invalid "+N+" `"+B+"` of type "+("`"+k+"` supplied to `"+I+"`, expected ")+("instance of `"+L+"`."))}return null}return g(x)}function d(f){if(!Array.isArray(f))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),i;function x(O,P,I,N,B){for(var L=O[P],k=0;k<f.length;k++)if(y(L,f[k]))return null;var D=JSON.stringify(f,function(de,A){var we=ce(A);return we==="symbol"?String(A):A});return new a("Invalid "+N+" `"+B+"` of value `"+String(L)+"` "+("supplied to `"+I+"`, expected one of "+D+"."))}return g(x)}function R(f){function x(O,P,I,N,B){if(typeof f!="function")return new a("Property `"+B+"` of component `"+I+"` has invalid PropType notation inside objectOf.");var L=O[P],k=K(L);if(k!=="object")return new a("Invalid "+N+" `"+B+"` of type "+("`"+k+"` supplied to `"+I+"`, expected an object."));for(var D in L)if(n(L,D)){var U=f(L,D,I,N,B+"."+D,r);if(U instanceof Error)return U}return null}return g(x)}function w(f){if(!Array.isArray(f))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var x=0;x<f.length;x++){var O=f[x];if(typeof O!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ie(O)+" at index "+x+"."),i}function P(I,N,B,L,k){for(var D=[],U=0;U<f.length;U++){var de=f[U],A=de(I,N,B,L,k,r);if(A==null)return null;A.data&&n(A.data,"expectedType")&&D.push(A.data.expectedType)}var we=D.length>0?", expected one of type ["+D.join(", ")+"]":"";return new a("Invalid "+L+" `"+k+"` supplied to "+("`"+B+"`"+we+"."))}return g(P)}function C(){function f(x,O,P,I,N){return oe(x[O])?null:new a("Invalid "+I+" `"+N+"` supplied to "+("`"+P+"`, expected a ReactNode."))}return g(f)}function M(f,x,O,P,I){return new a((f||"React class")+": "+x+" type `"+O+"."+P+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+I+"`.")}function H(f){function x(O,P,I,N,B){var L=O[P],k=K(L);if(k!=="object")return new a("Invalid "+N+" `"+B+"` of type `"+k+"` "+("supplied to `"+I+"`, expected `object`."));for(var D in f){var U=f[D];if(typeof U!="function")return M(I,N,B,D,ce(U));var de=U(L,D,I,N,B+"."+D,r);if(de)return de}return null}return g(x)}function Y(f){function x(O,P,I,N,B){var L=O[P],k=K(L);if(k!=="object")return new a("Invalid "+N+" `"+B+"` of type `"+k+"` "+("supplied to `"+I+"`, expected `object`."));var D=t({},O[P],f);for(var U in D){var de=f[U];if(n(f,U)&&typeof de!="function")return M(I,N,B,U,ce(de));if(!de)return new a("Invalid "+N+" `"+B+"` key `"+U+"` supplied to `"+I+"`.\nBad object: "+JSON.stringify(O[P],null," ")+`
41
- Valid keys: `+JSON.stringify(Object.keys(f),null," "));var A=de(L,U,I,N,B+"."+U,r);if(A)return A}return null}return g(x)}function oe(f){switch(typeof f){case"number":case"string":case"undefined":return!0;case"boolean":return!f;case"object":if(Array.isArray(f))return f.every(oe);if(f===null||c(f))return!0;var x=p(f);if(x){var O=x.call(f),P;if(x!==f.entries){for(;!(P=O.next()).done;)if(!oe(P.value))return!1}else for(;!(P=O.next()).done;){var I=P.value;if(I&&!oe(I[1]))return!1}}else return!1;return!0;default:return!1}}function G(f,x){return f==="symbol"?!0:x?x["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&x instanceof Symbol:!1}function K(f){var x=typeof f;return Array.isArray(f)?"array":f instanceof RegExp?"object":G(x,f)?"symbol":x}function ce(f){if(typeof f>"u"||f===null)return""+f;var x=K(f);if(x==="object"){if(f instanceof Date)return"date";if(f instanceof RegExp)return"regexp"}return x}function Ie(f){var x=ce(f);switch(x){case"array":case"object":return"an "+x;case"boolean":case"date":case"regexp":return"a "+x;default:return x}}function W(f){return!f.constructor||!f.constructor.name?m:f.constructor.name}return E.checkPropTypes=o,E.resetWarningCache=o.resetWarningCache,E.PropTypes=E,E},Or}var Cr,Rn;function Ps(){if(Rn)return Cr;Rn=1;var e=Rr();function t(){}function r(){}return r.resetWarningCache=t,Cr=function(){function n(i,c,h,u,l,p){if(p!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}n.isRequired=n;function o(){return n}var s={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},Cr}var _n;function js(){if(_n)return Mt.exports;if(_n=1,process.env.NODE_ENV!=="production"){var e=gn(),t=!0;Mt.exports=As()(e.isElement,t)}else Mt.exports=Ps()();return Mt.exports}var ks=js();const z=xe(ks);function lt(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const $s=Object.freeze(Object.defineProperty({__proto__:null,default:lt},Symbol.toStringTag,{value:"Module"}));var Lt={exports:{}},re={};/**
40
+ */var un,lo;function Zi(){if(lo)return un;lo=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function o(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var i={},u=0;u<10;u++)i["_"+String.fromCharCode(u)]=u;var h=Object.getOwnPropertyNames(i).map(function(f){return i[f]});if(h.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(f){l[f]=f}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return un=o()?Object.assign:function(s,i){for(var u,h=n(s),l,f=1;f<arguments.length;f++){u=Object(arguments[f]);for(var p in u)t.call(u,p)&&(h[p]=u[p]);if(e){l=e(u);for(var g=0;g<l.length;g++)r.call(u,l[g])&&(h[l[g]]=u[l[g]])}}return h},un}var ln,fo;function dn(){if(fo)return ln;fo=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ln=e,ln}var fn,po;function ho(){return po||(po=1,fn=Function.call.bind(Object.prototype.hasOwnProperty)),fn}var pn,mo;function ea(){if(mo)return pn;mo=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=dn(),r={},n=ho();e=function(s){var i="Warning: "+s;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(s,i,u,h,l){if(process.env.NODE_ENV!=="production"){for(var f in s)if(n(s,f)){var p;try{if(typeof s[f]!="function"){var g=Error((h||"React class")+": "+u+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}p=s[f](i,f,h,u,null,t)}catch(b){p=b}if(p&&!(p instanceof Error)&&e((h||"React class")+": type specification of "+u+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var S=l?l():"";e("Failed "+u+" type: "+p.message+(S??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},pn=o,pn}var hn,yo;function ta(){if(yo)return hn;yo=1;var e=uo(),t=Zi(),r=dn(),n=ho(),o=ea(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(u){var h="Warning: "+u;typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}});function i(){return null}return hn=function(u,h){var l=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function p(y){var R=y&&(l&&y[l]||y[f]);if(typeof R=="function")return R}var g="<<anonymous>>",S={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:j(),arrayOf:T,element:D(),elementType:C(),instanceOf:Y,node:O(),objectOf:_,oneOf:m,oneOfType:E,shape:U,exact:Z};function b(y,R){return y===R?y!==0||1/y===1/R:y!==y&&R!==R}function c(y,R){this.message=y,this.data=R&&typeof R=="object"?R:{},this.stack=""}c.prototype=Error.prototype;function x(y){if(process.env.NODE_ENV!=="production")var R={},M=0;function N(A,$,q,k,B,V,xe){if(k=k||g,V=V||q,xe!==r){if(h){var I=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw I.name="Invariant Violation",I}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Oe=k+":"+q;!R[Oe]&&M<3&&(s("You are manually calling a React.PropTypes validation function for the `"+V+"` prop on `"+k+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),R[Oe]=!0,M++)}}return $[q]==null?A?$[q]===null?new c("The "+B+" `"+V+"` is marked as required "+("in `"+k+"`, but its value is `null`.")):new c("The "+B+" `"+V+"` is marked as required in "+("`"+k+"`, but its value is `undefined`.")):null:y($,q,k,B,V)}var z=N.bind(null,!1);return z.isRequired=N.bind(null,!0),z}function v(y){function R(M,N,z,A,$,q){var k=M[N],B=K(k);if(B!==y){var V=de(k);return new c("Invalid "+A+" `"+$+"` of type "+("`"+V+"` supplied to `"+z+"`, expected ")+("`"+y+"`."),{expectedType:y})}return null}return x(R)}function j(){return x(i)}function T(y){function R(M,N,z,A,$){if(typeof y!="function")return new c("Property `"+$+"` of component `"+z+"` has invalid PropType notation inside arrayOf.");var q=M[N];if(!Array.isArray(q)){var k=K(q);return new c("Invalid "+A+" `"+$+"` of type "+("`"+k+"` supplied to `"+z+"`, expected an array."))}for(var B=0;B<q.length;B++){var V=y(q,B,z,A,$+"["+B+"]",r);if(V instanceof Error)return V}return null}return x(R)}function D(){function y(R,M,N,z,A){var $=R[M];if(!u($)){var q=K($);return new c("Invalid "+z+" `"+A+"` of type "+("`"+q+"` supplied to `"+N+"`, expected a single ReactElement."))}return null}return x(y)}function C(){function y(R,M,N,z,A){var $=R[M];if(!e.isValidElementType($)){var q=K($);return new c("Invalid "+z+" `"+A+"` of type "+("`"+q+"` supplied to `"+N+"`, expected a single ReactElement type."))}return null}return x(y)}function Y(y){function R(M,N,z,A,$){if(!(M[N]instanceof y)){var q=y.name||g,k=Te(M[N]);return new c("Invalid "+A+" `"+$+"` of type "+("`"+k+"` supplied to `"+z+"`, expected ")+("instance of `"+q+"`."))}return null}return x(R)}function m(y){if(!Array.isArray(y))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),i;function R(M,N,z,A,$){for(var q=M[N],k=0;k<y.length;k++)if(b(q,y[k]))return null;var B=JSON.stringify(y,function(xe,I){var Oe=de(I);return Oe==="symbol"?String(I):I});return new c("Invalid "+A+" `"+$+"` of value `"+String(q)+"` "+("supplied to `"+z+"`, expected one of "+B+"."))}return x(R)}function _(y){function R(M,N,z,A,$){if(typeof y!="function")return new c("Property `"+$+"` of component `"+z+"` has invalid PropType notation inside objectOf.");var q=M[N],k=K(q);if(k!=="object")return new c("Invalid "+A+" `"+$+"` of type "+("`"+k+"` supplied to `"+z+"`, expected an object."));for(var B in q)if(n(q,B)){var V=y(q,B,z,A,$+"."+B,r);if(V instanceof Error)return V}return null}return x(R)}function E(y){if(!Array.isArray(y))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var R=0;R<y.length;R++){var M=y[R];if(typeof M!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ge(M)+" at index "+R+"."),i}function N(z,A,$,q,k){for(var B=[],V=0;V<y.length;V++){var xe=y[V],I=xe(z,A,$,q,k,r);if(I==null)return null;I.data&&n(I.data,"expectedType")&&B.push(I.data.expectedType)}var Oe=B.length>0?", expected one of type ["+B.join(", ")+"]":"";return new c("Invalid "+q+" `"+k+"` supplied to "+("`"+$+"`"+Oe+"."))}return x(N)}function O(){function y(R,M,N,z,A){return le(R[M])?null:new c("Invalid "+z+" `"+A+"` supplied to "+("`"+N+"`, expected a ReactNode."))}return x(y)}function W(y,R,M,N,z){return new c((y||"React class")+": "+R+" type `"+M+"."+N+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+z+"`.")}function U(y){function R(M,N,z,A,$){var q=M[N],k=K(q);if(k!=="object")return new c("Invalid "+A+" `"+$+"` of type `"+k+"` "+("supplied to `"+z+"`, expected `object`."));for(var B in y){var V=y[B];if(typeof V!="function")return W(z,A,$,B,de(V));var xe=V(q,B,z,A,$+"."+B,r);if(xe)return xe}return null}return x(R)}function Z(y){function R(M,N,z,A,$){var q=M[N],k=K(q);if(k!=="object")return new c("Invalid "+A+" `"+$+"` of type `"+k+"` "+("supplied to `"+z+"`, expected `object`."));var B=t({},M[N],y);for(var V in B){var xe=y[V];if(n(y,V)&&typeof xe!="function")return W(z,A,$,V,de(xe));if(!xe)return new c("Invalid "+A+" `"+$+"` key `"+V+"` supplied to `"+z+"`.\nBad object: "+JSON.stringify(M[N],null," ")+`
41
+ Valid keys: `+JSON.stringify(Object.keys(y),null," "));var I=xe(q,V,z,A,$+"."+V,r);if(I)return I}return null}return x(R)}function le(y){switch(typeof y){case"number":case"string":case"undefined":return!0;case"boolean":return!y;case"object":if(Array.isArray(y))return y.every(le);if(y===null||u(y))return!0;var R=p(y);if(R){var M=R.call(y),N;if(R!==y.entries){for(;!(N=M.next()).done;)if(!le(N.value))return!1}else for(;!(N=M.next()).done;){var z=N.value;if(z&&!le(z[1]))return!1}}else return!1;return!0;default:return!1}}function J(y,R){return y==="symbol"?!0:R?R["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&R instanceof Symbol:!1}function K(y){var R=typeof y;return Array.isArray(y)?"array":y instanceof RegExp?"object":J(R,y)?"symbol":R}function de(y){if(typeof y>"u"||y===null)return""+y;var R=K(y);if(R==="object"){if(y instanceof Date)return"date";if(y instanceof RegExp)return"regexp"}return R}function ge(y){var R=de(y);switch(R){case"array":case"object":return"an "+R;case"boolean":case"date":case"regexp":return"a "+R;default:return R}}function Te(y){return!y.constructor||!y.constructor.name?g:y.constructor.name}return S.checkPropTypes=o,S.resetWarningCache=o.resetWarningCache,S.PropTypes=S,S},hn}var mn,go;function ra(){if(go)return mn;go=1;var e=dn();function t(){}function r(){}return r.resetWarningCache=t,mn=function(){function n(i,u,h,l,f,p){if(p!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}n.isRequired=n;function o(){return n}var s={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},mn}var xo;function na(){if(xo)return wr.exports;if(xo=1,process.env.NODE_ENV!=="production"){var e=uo(),t=!0;wr.exports=ta()(e.isElement,t)}else wr.exports=ra()();return wr.exports}var oa=na();const G=Q(oa);function _t(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const sa=Object.freeze(Object.defineProperty({__proto__:null,default:_t},Symbol.toStringTag,{value:"Module"}));var Er={exports:{}},pe={};/**
42
42
  * @license React
43
43
  * react-is.production.js
44
44
  *
@@ -46,7 +46,7 @@ Valid keys: `+JSON.stringify(Object.keys(f),null," "));var A=de(L,U,I,N,B+"."+U
46
46
  *
47
47
  * This source code is licensed under the MIT license found in the
48
48
  * LICENSE file in the root directory of this source tree.
49
- */var Tn;function Is(){if(Tn)return re;Tn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),E=Symbol.for("react.client.reference");function y(a){if(typeof a=="object"&&a!==null){var g=a.$$typeof;switch(g){case e:switch(a=a.type,a){case r:case o:case n:case h:case u:return a;default:switch(a=a&&a.$$typeof,a){case i:case c:case p:case l:return a;case s:return a;default:return g}}case t:return g}}}return re.ContextConsumer=s,re.ContextProvider=i,re.Element=e,re.ForwardRef=c,re.Fragment=r,re.Lazy=p,re.Memo=l,re.Portal=t,re.Profiler=o,re.StrictMode=n,re.Suspense=h,re.SuspenseList=u,re.isContextConsumer=function(a){return y(a)===s},re.isContextProvider=function(a){return y(a)===i},re.isElement=function(a){return typeof a=="object"&&a!==null&&a.$$typeof===e},re.isForwardRef=function(a){return y(a)===c},re.isFragment=function(a){return y(a)===r},re.isLazy=function(a){return y(a)===p},re.isMemo=function(a){return y(a)===l},re.isPortal=function(a){return y(a)===t},re.isProfiler=function(a){return y(a)===o},re.isStrictMode=function(a){return y(a)===n},re.isSuspense=function(a){return y(a)===h},re.isSuspenseList=function(a){return y(a)===u},re.isValidElementType=function(a){return typeof a=="string"||typeof a=="function"||a===r||a===o||a===n||a===h||a===u||a===m||typeof a=="object"&&a!==null&&(a.$$typeof===p||a.$$typeof===l||a.$$typeof===i||a.$$typeof===s||a.$$typeof===c||a.$$typeof===E||a.getModuleId!==void 0)},re.typeOf=y,re}var ne={};/**
49
+ */var bo;function ia(){if(bo)return pe;bo=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),S=Symbol.for("react.client.reference");function b(c){if(typeof c=="object"&&c!==null){var x=c.$$typeof;switch(x){case e:switch(c=c.type,c){case r:case o:case n:case h:case l:return c;default:switch(c=c&&c.$$typeof,c){case i:case u:case p:case f:return c;case s:return c;default:return x}}case t:return x}}}return pe.ContextConsumer=s,pe.ContextProvider=i,pe.Element=e,pe.ForwardRef=u,pe.Fragment=r,pe.Lazy=p,pe.Memo=f,pe.Portal=t,pe.Profiler=o,pe.StrictMode=n,pe.Suspense=h,pe.SuspenseList=l,pe.isContextConsumer=function(c){return b(c)===s},pe.isContextProvider=function(c){return b(c)===i},pe.isElement=function(c){return typeof c=="object"&&c!==null&&c.$$typeof===e},pe.isForwardRef=function(c){return b(c)===u},pe.isFragment=function(c){return b(c)===r},pe.isLazy=function(c){return b(c)===p},pe.isMemo=function(c){return b(c)===f},pe.isPortal=function(c){return b(c)===t},pe.isProfiler=function(c){return b(c)===o},pe.isStrictMode=function(c){return b(c)===n},pe.isSuspense=function(c){return b(c)===h},pe.isSuspenseList=function(c){return b(c)===l},pe.isValidElementType=function(c){return typeof c=="string"||typeof c=="function"||c===r||c===o||c===n||c===h||c===l||c===g||typeof c=="object"&&c!==null&&(c.$$typeof===p||c.$$typeof===f||c.$$typeof===i||c.$$typeof===s||c.$$typeof===u||c.$$typeof===S||c.getModuleId!==void 0)},pe.typeOf=b,pe}var he={};/**
50
50
  * @license React
51
51
  * react-is.development.js
52
52
  *
@@ -54,24 +54,24 @@ Valid keys: `+JSON.stringify(Object.keys(f),null," "));var A=de(L,U,I,N,B+"."+U
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 On;function Ns(){return On||(On=1,process.env.NODE_ENV!=="production"&&function(){function e(a){if(typeof a=="object"&&a!==null){var g=a.$$typeof;switch(g){case t:switch(a=a.type,a){case n:case s:case o:case u:case l:return a;default:switch(a=a&&a.$$typeof,a){case c:case h:case m:case p:return a;case i:return a;default:return g}}case r:return g}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),c=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),y=Symbol.for("react.client.reference");ne.ContextConsumer=i,ne.ContextProvider=c,ne.Element=t,ne.ForwardRef=h,ne.Fragment=n,ne.Lazy=m,ne.Memo=p,ne.Portal=r,ne.Profiler=s,ne.StrictMode=o,ne.Suspense=u,ne.SuspenseList=l,ne.isContextConsumer=function(a){return e(a)===i},ne.isContextProvider=function(a){return e(a)===c},ne.isElement=function(a){return typeof a=="object"&&a!==null&&a.$$typeof===t},ne.isForwardRef=function(a){return e(a)===h},ne.isFragment=function(a){return e(a)===n},ne.isLazy=function(a){return e(a)===m},ne.isMemo=function(a){return e(a)===p},ne.isPortal=function(a){return e(a)===r},ne.isProfiler=function(a){return e(a)===s},ne.isStrictMode=function(a){return e(a)===o},ne.isSuspense=function(a){return e(a)===u},ne.isSuspenseList=function(a){return e(a)===l},ne.isValidElementType=function(a){return typeof a=="string"||typeof a=="function"||a===n||a===s||a===o||a===u||a===l||a===E||typeof a=="object"&&a!==null&&(a.$$typeof===m||a.$$typeof===p||a.$$typeof===c||a.$$typeof===i||a.$$typeof===h||a.$$typeof===y||a.getModuleId!==void 0)},ne.typeOf=e}()),ne}var Cn;function Ds(){return Cn||(Cn=1,process.env.NODE_ENV==="production"?Lt.exports=Is():Lt.exports=Ns()),Lt.exports}var An=Ds();const Fs=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Pn(e){const t=`${e}`.match(Fs);return t&&t[1]||""}function jn(e,t=""){return e.displayName||e.name||Pn(e)||t}function kn(e,t,r){const n=jn(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Ms(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return jn(e,"Component");if(typeof e=="object")switch(e.$$typeof){case An.ForwardRef:return kn(e,e.render,"ForwardRef");case An.Memo:return kn(e,e.type,"memo");default:return}}}const Bs=Object.freeze(Object.defineProperty({__proto__:null,default:Ms,getFunctionName:Pn},Symbol.toStringTag,{value:"Module"}));function ze(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":lt(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Ls=Object.freeze(Object.defineProperty({__proto__:null,default:ze},Symbol.toStringTag,{value:"Module"}));function qs(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function zs(e,t=166){let r;function n(...o){const s=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(s,t)}return n.clear=()=>{clearTimeout(r)},n}function Us(e,t){return process.env.NODE_ENV==="production"?()=>null:(r,n,o,s,i)=>{const c=o||"<<anonymous>>",h=i||n;return typeof r[n]<"u"?new Error(`The ${s} \`${h}\` of \`${c}\` is deprecated. ${t}`):null}}function Vs(e,t){var r,n;return se.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function $n(e){return e&&e.ownerDocument||document}function Ws(e){return $n(e).defaultView||window}function Hs(e,t){if(process.env.NODE_ENV==="production")return()=>null;const r=t?te({},t.propTypes):null;return o=>(s,i,c,h,u,...l)=>{const p=u||i,m=r==null?void 0:r[p];if(m){const E=m(s,i,c,h,u,...l);if(E)return E}return typeof s[i]<"u"&&!s[o]?new Error(`The prop \`${p}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function In(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Nn=typeof window<"u"?se.useLayoutEffect:se.useEffect;let Dn=0;function Ys(e){const[t,r]=se.useState(e),n=e||t;return se.useEffect(()=>{t==null&&(Dn+=1,r(`mui-${Dn}`))},[t]),n}const Fn=se.useId;function Gs(e){if(Fn!==void 0){const t=Fn();return e??t}return Ys(e)}function Ks(e,t,r,n,o){if(process.env.NODE_ENV==="production")return null;const s=o||t;return typeof e[t]<"u"?new Error(`The prop \`${s}\` is not supported. Please remove it.`):null}function Js({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=se.useRef(e!==void 0),[s,i]=se.useState(t),c=o?e:s;if(process.env.NODE_ENV!=="production"){se.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${n} state of ${r} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
58
- `))},[n,r,e]);const{current:u}=se.useRef(t);se.useEffect(()=>{!o&&!Object.is(u,t)&&console.error([`MUI: A component is changing the default ${n} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
59
- `))},[JSON.stringify(t)])}const h=se.useCallback(u=>{o||i(u)},[]);return[c,h]}function Xs(e){const t=se.useRef(e);return Nn(()=>{t.current=e}),se.useRef((...r)=>(0,t.current)(...r)).current}function Qs(...e){return se.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{In(r,t)})},e)}class Ar{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ar}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}let qt=!0,Pr=!1;const Zs=new Ar,ei={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function ti(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&ei[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function ri(e){e.metaKey||e.altKey||e.ctrlKey||(qt=!0)}function jr(){qt=!1}function ni(){this.visibilityState==="hidden"&&Pr&&(qt=!0)}function oi(e){e.addEventListener("keydown",ri,!0),e.addEventListener("mousedown",jr,!0),e.addEventListener("pointerdown",jr,!0),e.addEventListener("touchstart",jr,!0),e.addEventListener("visibilitychange",ni,!0)}function si(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return qt||ti(t)}function ii(){const e=se.useCallback(o=>{o!=null&&oi(o.ownerDocument)},[]),t=se.useRef(!1);function r(){return t.current?(Pr=!0,Zs.start(100,()=>{Pr=!1}),t.current=!1,!0):!1}function n(o){return si(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function kr(e,t){const r=te({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=te({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},s=t[n];r[n]={},!s||!Object.keys(s)?r[n]=o:!o||!Object.keys(o)?r[n]=s:(r[n]=te({},s),Object.keys(o).forEach(i=>{r[n][i]=kr(o[i],s[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function ai(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((s,i)=>{if(i){const c=t(i);c!==""&&s.push(c),r&&r[i]&&s.push(r[i])}return s},[]).join(" ")}),n}const Mn=e=>e,Bn=(()=>{let e=Mn;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Mn}}})(),ci={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function $r(e,t,r="Mui"){const n=ci[t];return n?`${r}-${n}`:`${Bn.generate(e)}-${t}`}function ui(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=$r(e,o,r)}),n}function li(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const fi=Object.freeze(Object.defineProperty({__proto__:null,default:li},Symbol.toStringTag,{value:"Module"}));function Ue(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function Ln(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Ln(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function di(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Ln(e))&&(n&&(n+=" "),n+=t);return n}const pi=se.createContext(void 0);process.env.NODE_ENV!=="production"&&(z.node,z.object);function hi(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?kr(o.defaultProps,n):!o.styleOverrides&&!o.variants?kr(o,n):n}function mi({props:e,name:t}){const r=se.useContext(pi);return hi({props:e,name:t,theme:{components:r}})}process.env.NODE_ENV!=="production"&&(z.node,z.object.isRequired);function yi(e){return mi(e)}var We={},Ir={exports:{}},qn;function gi(){return qn||(qn=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var s in o)({}).hasOwnProperty.call(o,s)&&(r[s]=o[s])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ir)),Ir.exports}var Nr={exports:{}},zn;function bi(){return zn||(zn=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var s in r)if({}.hasOwnProperty.call(r,s)){if(n.includes(s))continue;o[s]=r[s]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Nr)),Nr.exports}var xi=!1;function vi(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Ei(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Si=function(){function e(r){var n=this;this._insertTag=function(o){var s;n.tags.length===0?n.insertionPoint?s=n.insertionPoint.nextSibling:n.prepend?s=n.container.firstChild:s=n.before:s=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,s),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!xi:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ei(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=vi(o);try{s.insertRule(n,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),ge="-ms-",zt="-moz-",J="-webkit-",Un="comm",Dr="rule",Fr="decl",wi="@import",Vn="@keyframes",Ri="@layer",_i=Math.abs,Ut=String.fromCharCode,Ti=Object.assign;function Oi(e,t){return ye(e,0)^45?(((t<<2^ye(e,0))<<2^ye(e,1))<<2^ye(e,2))<<2^ye(e,3):0}function Wn(e){return e.trim()}function Ci(e,t){return(e=t.exec(e))?e[0]:e}function X(e,t,r){return e.replace(t,r)}function Mr(e,t){return e.indexOf(t)}function ye(e,t){return e.charCodeAt(t)|0}function ft(e,t,r){return e.slice(t,r)}function De(e){return e.length}function Br(e){return e.length}function Vt(e,t){return t.push(e),e}function Ai(e,t){return e.map(t).join("")}var Wt=1,Ke=1,Hn=0,Ee=0,he=0,Je="";function Ht(e,t,r,n,o,s,i){return{value:e,root:t,parent:r,type:n,props:o,children:s,line:Wt,column:Ke,length:i,return:""}}function dt(e,t){return Ti(Ht("",null,null,"",null,null,0),e,{length:-e.length},t)}function Pi(){return he}function ji(){return he=Ee>0?ye(Je,--Ee):0,Ke--,he===10&&(Ke=1,Wt--),he}function _e(){return he=Ee<Hn?ye(Je,Ee++):0,Ke++,he===10&&(Ke=1,Wt++),he}function Fe(){return ye(Je,Ee)}function Yt(){return Ee}function pt(e,t){return ft(Je,e,t)}function ht(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Yn(e){return Wt=Ke=1,Hn=De(Je=e),Ee=0,[]}function Gn(e){return Je="",e}function Gt(e){return Wn(pt(Ee-1,Lr(e===91?e+2:e===40?e+1:e)))}function ki(e){for(;(he=Fe())&&he<33;)_e();return ht(e)>2||ht(he)>3?"":" "}function $i(e,t){for(;--t&&_e()&&!(he<48||he>102||he>57&&he<65||he>70&&he<97););return pt(e,Yt()+(t<6&&Fe()==32&&_e()==32))}function Lr(e){for(;_e();)switch(he){case e:return Ee;case 34:case 39:e!==34&&e!==39&&Lr(he);break;case 40:e===41&&Lr(e);break;case 92:_e();break}return Ee}function Ii(e,t){for(;_e()&&e+he!==57;)if(e+he===84&&Fe()===47)break;return"/*"+pt(t,Ee-1)+"*"+Ut(e===47?e:_e())}function Ni(e){for(;!ht(Fe());)_e();return pt(e,Ee)}function Di(e){return Gn(Kt("",null,null,null,[""],e=Yn(e),0,[0],e))}function Kt(e,t,r,n,o,s,i,c,h){for(var u=0,l=0,p=i,m=0,E=0,y=0,a=1,g=1,_=1,$=0,j="",F=o,S=s,V=n,d=j;g;)switch(y=$,$=_e()){case 40:if(y!=108&&ye(d,p-1)==58){Mr(d+=X(Gt($),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:d+=Gt($);break;case 9:case 10:case 13:case 32:d+=ki(y);break;case 92:d+=$i(Yt()-1,7);continue;case 47:switch(Fe()){case 42:case 47:Vt(Fi(Ii(_e(),Yt()),t,r),h);break;default:d+="/"}break;case 123*a:c[u++]=De(d)*_;case 125*a:case 59:case 0:switch($){case 0:case 125:g=0;case 59+l:_==-1&&(d=X(d,/\f/g,"")),E>0&&De(d)-p&&Vt(E>32?Jn(d+";",n,r,p-1):Jn(X(d," ","")+";",n,r,p-2),h);break;case 59:d+=";";default:if(Vt(V=Kn(d,t,r,u,l,o,c,j,F=[],S=[],p),s),$===123)if(l===0)Kt(d,t,V,V,F,s,p,c,S);else switch(m===99&&ye(d,3)===110?100:m){case 100:case 108:case 109:case 115:Kt(e,V,V,n&&Vt(Kn(e,V,V,0,0,o,c,j,o,F=[],p),S),o,S,p,c,n?F:S);break;default:Kt(d,V,V,V,[""],S,0,c,S)}}u=l=E=0,a=_=1,j=d="",p=i;break;case 58:p=1+De(d),E=y;default:if(a<1){if($==123)--a;else if($==125&&a++==0&&ji()==125)continue}switch(d+=Ut($),$*a){case 38:_=l>0?1:(d+="\f",-1);break;case 44:c[u++]=(De(d)-1)*_,_=1;break;case 64:Fe()===45&&(d+=Gt(_e())),m=Fe(),l=p=De(j=d+=Ni(Yt())),$++;break;case 45:y===45&&De(d)==2&&(a=0)}}return s}function Kn(e,t,r,n,o,s,i,c,h,u,l){for(var p=o-1,m=o===0?s:[""],E=Br(m),y=0,a=0,g=0;y<n;++y)for(var _=0,$=ft(e,p+1,p=_i(a=i[y])),j=e;_<E;++_)(j=Wn(a>0?m[_]+" "+$:X($,/&\f/g,m[_])))&&(h[g++]=j);return Ht(e,t,r,o===0?Dr:c,h,u,l)}function Fi(e,t,r){return Ht(e,t,r,Un,Ut(Pi()),ft(e,2,-2),0)}function Jn(e,t,r,n){return Ht(e,t,r,Fr,ft(e,0,n),ft(e,n+1,-1),n)}function Xe(e,t){for(var r="",n=Br(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Mi(e,t,r,n){switch(e.type){case Ri:if(e.children.length)break;case wi:case Fr:return e.return=e.return||e.value;case Un:return"";case Vn:return e.return=e.value+"{"+Xe(e.children,n)+"}";case Dr:e.value=e.props.join(",")}return De(r=Xe(e.children,n))?e.return=e.value+"{"+r+"}":""}function Bi(e){var t=Br(e);return function(r,n,o,s){for(var i="",c=0;c<t;c++)i+=e[c](r,n,o,s)||"";return i}}function Li(e){return function(t){t.root||(t=t.return)&&e(t)}}var qi=function(t,r,n){for(var o=0,s=0;o=s,s=Fe(),o===38&&s===12&&(r[n]=1),!ht(s);)_e();return pt(t,Ee)},zi=function(t,r){var n=-1,o=44;do switch(ht(o)){case 0:o===38&&Fe()===12&&(r[n]=1),t[n]+=qi(Ee-1,r,n);break;case 2:t[n]+=Gt(o);break;case 4:if(o===44){t[++n]=Fe()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Ut(o)}while(o=_e());return t},Ui=function(t,r){return Gn(zi(Yn(t),r))},Xn=new WeakMap,Vi=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Xn.get(n))&&!o){Xn.set(t,!0);for(var s=[],i=Ui(r,s),c=n.props,h=0,u=0;h<i.length;h++)for(var l=0;l<c.length;l++,u++)t.props[u]=s[h]?i[h].replace(/&\f/g,c[l]):c[l]+" "+i[h]}}},Wi=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Qn(e,t){switch(Oi(e,t)){case 5103:return J+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return J+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return J+e+zt+e+ge+e+e;case 6828:case 4268:return J+e+ge+e+e;case 6165:return J+e+ge+"flex-"+e+e;case 5187:return J+e+X(e,/(\w+).+(:[^]+)/,J+"box-$1$2"+ge+"flex-$1$2")+e;case 5443:return J+e+ge+"flex-item-"+X(e,/flex-|-self/,"")+e;case 4675:return J+e+ge+"flex-line-pack"+X(e,/align-content|flex-|-self/,"")+e;case 5548:return J+e+ge+X(e,"shrink","negative")+e;case 5292:return J+e+ge+X(e,"basis","preferred-size")+e;case 6060:return J+"box-"+X(e,"-grow","")+J+e+ge+X(e,"grow","positive")+e;case 4554:return J+X(e,/([^-])(transform)/g,"$1"+J+"$2")+e;case 6187:return X(X(X(e,/(zoom-|grab)/,J+"$1"),/(image-set)/,J+"$1"),e,"")+e;case 5495:case 3959:return X(e,/(image-set\([^]*)/,J+"$1$`$1");case 4968:return X(X(e,/(.+:)(flex-)?(.*)/,J+"box-pack:$3"+ge+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+J+e+e;case 4095:case 3583:case 4068:case 2532:return X(e,/(.+)-inline(.+)/,J+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(De(e)-1-t>6)switch(ye(e,t+1)){case 109:if(ye(e,t+4)!==45)break;case 102:return X(e,/(.+:)(.+)-([^]+)/,"$1"+J+"$2-$3$1"+zt+(ye(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Mr(e,"stretch")?Qn(X(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ye(e,t+1)!==115)break;case 6444:switch(ye(e,De(e)-3-(~Mr(e,"!important")&&10))){case 107:return X(e,":",":"+J)+e;case 101:return X(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+J+(ye(e,14)===45?"inline-":"")+"box$3$1"+J+"$2$3$1"+ge+"$2box$3")+e}break;case 5936:switch(ye(e,t+11)){case 114:return J+e+ge+X(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return J+e+ge+X(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return J+e+ge+X(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return J+e+ge+e+e}return e}var Hi=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Fr:t.return=Qn(t.value,t.length);break;case Vn:return Xe([dt(t,{value:X(t.value,"@","@"+J)})],o);case Dr:if(t.length)return Ai(t.props,function(s){switch(Ci(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Xe([dt(t,{props:[X(s,/:(read-\w+)/,":"+zt+"$1")]})],o);case"::placeholder":return Xe([dt(t,{props:[X(s,/:(plac\w+)/,":"+J+"input-$1")]}),dt(t,{props:[X(s,/:(plac\w+)/,":"+zt+"$1")]}),dt(t,{props:[X(s,/:(plac\w+)/,ge+"input-$1")]})],o)}return""})}},Yi=[Hi],Gi=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(a){var g=a.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(a),a.setAttribute("data-s",""))})}var o=t.stylisPlugins||Yi,s={},i,c=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(a){for(var g=a.getAttribute("data-emotion").split(" "),_=1;_<g.length;_++)s[g[_]]=!0;c.push(a)});var h,u=[Vi,Wi];{var l,p=[Mi,Li(function(a){l.insert(a)})],m=Bi(u.concat(o,p)),E=function(g){return Xe(Di(g),m)};h=function(g,_,$,j){l=$,E(g?g+"{"+_.styles+"}":_.styles),j&&(y.inserted[_.name]=!0)}}var y={key:r,sheet:new Si({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:h};return y.sheet.hydrate(c),y};let qr;typeof document=="object"&&(qr=Gi({key:"css",prepend:!0}));function Zn(e){const{injectFirst:t,children:r}=e;return t&&qr?v.jsx(it.CacheProvider,{value:qr,children:r}):r}process.env.NODE_ENV!=="production"&&(Zn.propTypes={children:z.node,injectFirst:z.bool});function Ki(e){return e==null||Object.keys(e).length===0}function eo(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(Ki(o)?r:o):t;return v.jsx(it.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(eo.propTypes={defaultTheme:z.object,styles:z.oneOfType([z.array,z.string,z.object,z.func])});/**
57
+ */var vo;function aa(){return vo||(vo=1,process.env.NODE_ENV!=="production"&&function(){function e(c){if(typeof c=="object"&&c!==null){var x=c.$$typeof;switch(x){case t:switch(c=c.type,c){case n:case s:case o:case l:case f:return c;default:switch(c=c&&c.$$typeof,c){case u:case h:case g:case p:return c;case i:return c;default:return x}}case r:return x}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),u=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),b=Symbol.for("react.client.reference");he.ContextConsumer=i,he.ContextProvider=u,he.Element=t,he.ForwardRef=h,he.Fragment=n,he.Lazy=g,he.Memo=p,he.Portal=r,he.Profiler=s,he.StrictMode=o,he.Suspense=l,he.SuspenseList=f,he.isContextConsumer=function(c){return e(c)===i},he.isContextProvider=function(c){return e(c)===u},he.isElement=function(c){return typeof c=="object"&&c!==null&&c.$$typeof===t},he.isForwardRef=function(c){return e(c)===h},he.isFragment=function(c){return e(c)===n},he.isLazy=function(c){return e(c)===g},he.isMemo=function(c){return e(c)===p},he.isPortal=function(c){return e(c)===r},he.isProfiler=function(c){return e(c)===s},he.isStrictMode=function(c){return e(c)===o},he.isSuspense=function(c){return e(c)===l},he.isSuspenseList=function(c){return e(c)===f},he.isValidElementType=function(c){return typeof c=="string"||typeof c=="function"||c===n||c===s||c===o||c===l||c===f||c===S||typeof c=="object"&&c!==null&&(c.$$typeof===g||c.$$typeof===p||c.$$typeof===u||c.$$typeof===i||c.$$typeof===h||c.$$typeof===b||c.getModuleId!==void 0)},he.typeOf=e}()),he}var So;function ca(){return So||(So=1,process.env.NODE_ENV==="production"?Er.exports=ia():Er.exports=aa()),Er.exports}var wo=ca();const ua=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Co(e){const t=`${e}`.match(ua);return t&&t[1]||""}function Eo(e,t=""){return e.displayName||e.name||Co(e)||t}function Ro(e,t,r){const n=Eo(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function la(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Eo(e,"Component");if(typeof e=="object")switch(e.$$typeof){case wo.ForwardRef:return Ro(e,e.render,"ForwardRef");case wo.Memo:return Ro(e,e.type,"memo");default:return}}}const da=Object.freeze(Object.defineProperty({__proto__:null,default:la,getFunctionName:Co},Symbol.toStringTag,{value:"Module"}));function Qe(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":_t(7));return e.charAt(0).toUpperCase()+e.slice(1)}const fa=Object.freeze(Object.defineProperty({__proto__:null,default:Qe},Symbol.toStringTag,{value:"Module"}));function pa(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function ha(e,t=166){let r;function n(...o){const s=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(s,t)}return n.clear=()=>{clearTimeout(r)},n}function ma(e,t){return process.env.NODE_ENV==="production"?()=>null:(r,n,o,s,i)=>{const u=o||"<<anonymous>>",h=i||n;return typeof r[n]<"u"?new Error(`The ${s} \`${h}\` of \`${u}\` is deprecated. ${t}`):null}}function ya(e,t){var r,n;return ye.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function _o(e){return e&&e.ownerDocument||document}function ga(e){return _o(e).defaultView||window}function xa(e,t){if(process.env.NODE_ENV==="production")return()=>null;const r=t?ue({},t.propTypes):null;return o=>(s,i,u,h,l,...f)=>{const p=l||i,g=r==null?void 0:r[p];if(g){const S=g(s,i,u,h,l,...f);if(S)return S}return typeof s[i]<"u"&&!s[o]?new Error(`The prop \`${p}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function To(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const jo=typeof window<"u"?ye.useLayoutEffect:ye.useEffect;let Oo=0;function ba(e){const[t,r]=ye.useState(e),n=e||t;return ye.useEffect(()=>{t==null&&(Oo+=1,r(`mui-${Oo}`))},[t]),n}const Ao=ye.useId;function va(e){if(Ao!==void 0){const t=Ao();return e??t}return ba(e)}function Sa(e,t,r,n,o){if(process.env.NODE_ENV==="production")return null;const s=o||t;return typeof e[t]<"u"?new Error(`The prop \`${s}\` is not supported. Please remove it.`):null}function wa({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=ye.useRef(e!==void 0),[s,i]=ye.useState(t),u=o?e:s;if(process.env.NODE_ENV!=="production"){ye.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${n} state of ${r} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
58
+ `))},[n,r,e]);const{current:l}=ye.useRef(t);ye.useEffect(()=>{!o&&!Object.is(l,t)&&console.error([`MUI: A component is changing the default ${n} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
59
+ `))},[JSON.stringify(t)])}const h=ye.useCallback(l=>{o||i(l)},[]);return[u,h]}function Ca(e){const t=ye.useRef(e);return jo(()=>{t.current=e}),ye.useRef((...r)=>(0,t.current)(...r)).current}function Ea(...e){return ye.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{To(r,t)})},e)}class yn{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new yn}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}let Rr=!0,gn=!1;const Ra=new yn,_a={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Ta(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&_a[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function ja(e){e.metaKey||e.altKey||e.ctrlKey||(Rr=!0)}function xn(){Rr=!1}function Oa(){this.visibilityState==="hidden"&&gn&&(Rr=!0)}function Aa(e){e.addEventListener("keydown",ja,!0),e.addEventListener("mousedown",xn,!0),e.addEventListener("pointerdown",xn,!0),e.addEventListener("touchstart",xn,!0),e.addEventListener("visibilitychange",Oa,!0)}function ka(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Rr||Ta(t)}function Ia(){const e=ye.useCallback(o=>{o!=null&&Aa(o.ownerDocument)},[]),t=ye.useRef(!1);function r(){return t.current?(gn=!0,Ra.start(100,()=>{gn=!1}),t.current=!1,!0):!1}function n(o){return ka(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function bn(e,t){const r=ue({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=ue({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},s=t[n];r[n]={},!s||!Object.keys(s)?r[n]=o:!o||!Object.keys(o)?r[n]=s:(r[n]=ue({},s),Object.keys(o).forEach(i=>{r[n][i]=bn(o[i],s[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Pa(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((s,i)=>{if(i){const u=t(i);u!==""&&s.push(u),r&&r[i]&&s.push(r[i])}return s},[]).join(" ")}),n}const ko=e=>e,Io=(()=>{let e=ko;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ko}}})(),Fa={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function vn(e,t,r="Mui"){const n=Fa[t];return n?`${r}-${n}`:`${Io.generate(e)}-${t}`}function Ba(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=vn(e,o,r)}),n}function Ma(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const Da=Object.freeze(Object.defineProperty({__proto__:null,default:Ma},Symbol.toStringTag,{value:"Module"}));function Xe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function Po(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Po(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function $a(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Po(e))&&(n&&(n+=" "),n+=t);return n}const Na=ye.createContext(void 0);process.env.NODE_ENV!=="production"&&(G.node,G.object);function za(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?bn(o.defaultProps,n):!o.styleOverrides&&!o.variants?bn(o,n):n}function qa({props:e,name:t}){const r=ye.useContext(Na);return za({props:e,name:t,theme:{components:r}})}process.env.NODE_ENV!=="production"&&(G.node,G.object.isRequired);function La(e){return qa(e)}var et={},Sn={exports:{}},Fo;function Ua(){return Fo||(Fo=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var s in o)({}).hasOwnProperty.call(o,s)&&(r[s]=o[s])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Sn)),Sn.exports}var wn={exports:{}},Bo;function Wa(){return Bo||(Bo=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var s in r)if({}.hasOwnProperty.call(r,s)){if(n.includes(s))continue;o[s]=r[s]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(wn)),wn.exports}var Va=!1;function Ha(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Ya(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Ga=function(){function e(r){var n=this;this._insertTag=function(o){var s;n.tags.length===0?n.insertionPoint?s=n.insertionPoint.nextSibling:n.prepend?s=n.container.firstChild:s=n.before:s=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,s),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!Va:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ya(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Ha(o);try{s.insertRule(n,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Ae="-ms-",_r="-moz-",oe="-webkit-",Mo="comm",Cn="rule",En="decl",Ka="@import",Do="@keyframes",Ja="@layer",Qa=Math.abs,Tr=String.fromCharCode,Xa=Object.assign;function Za(e,t){return je(e,0)^45?(((t<<2^je(e,0))<<2^je(e,1))<<2^je(e,2))<<2^je(e,3):0}function $o(e){return e.trim()}function ec(e,t){return(e=t.exec(e))?e[0]:e}function se(e,t,r){return e.replace(t,r)}function Rn(e,t){return e.indexOf(t)}function je(e,t){return e.charCodeAt(t)|0}function Tt(e,t,r){return e.slice(t,r)}function Ve(e){return e.length}function _n(e){return e.length}function jr(e,t){return t.push(e),e}function tc(e,t){return e.map(t).join("")}var Or=1,st=1,No=0,Pe=0,_e=0,it="";function Ar(e,t,r,n,o,s,i){return{value:e,root:t,parent:r,type:n,props:o,children:s,line:Or,column:st,length:i,return:""}}function jt(e,t){return Xa(Ar("",null,null,"",null,null,0),e,{length:-e.length},t)}function rc(){return _e}function nc(){return _e=Pe>0?je(it,--Pe):0,st--,_e===10&&(st=1,Or--),_e}function Be(){return _e=Pe<No?je(it,Pe++):0,st++,_e===10&&(st=1,Or++),_e}function He(){return je(it,Pe)}function kr(){return Pe}function Ot(e,t){return Tt(it,e,t)}function At(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function zo(e){return Or=st=1,No=Ve(it=e),Pe=0,[]}function qo(e){return it="",e}function Ir(e){return $o(Ot(Pe-1,Tn(e===91?e+2:e===40?e+1:e)))}function oc(e){for(;(_e=He())&&_e<33;)Be();return At(e)>2||At(_e)>3?"":" "}function sc(e,t){for(;--t&&Be()&&!(_e<48||_e>102||_e>57&&_e<65||_e>70&&_e<97););return Ot(e,kr()+(t<6&&He()==32&&Be()==32))}function Tn(e){for(;Be();)switch(_e){case e:return Pe;case 34:case 39:e!==34&&e!==39&&Tn(_e);break;case 40:e===41&&Tn(e);break;case 92:Be();break}return Pe}function ic(e,t){for(;Be()&&e+_e!==57;)if(e+_e===84&&He()===47)break;return"/*"+Ot(t,Pe-1)+"*"+Tr(e===47?e:Be())}function ac(e){for(;!At(He());)Be();return Ot(e,Pe)}function cc(e){return qo(Pr("",null,null,null,[""],e=zo(e),0,[0],e))}function Pr(e,t,r,n,o,s,i,u,h){for(var l=0,f=0,p=i,g=0,S=0,b=0,c=1,x=1,v=1,j=0,T="",D=o,C=s,Y=n,m=T;x;)switch(b=j,j=Be()){case 40:if(b!=108&&je(m,p-1)==58){Rn(m+=se(Ir(j),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:m+=Ir(j);break;case 9:case 10:case 13:case 32:m+=oc(b);break;case 92:m+=sc(kr()-1,7);continue;case 47:switch(He()){case 42:case 47:jr(uc(ic(Be(),kr()),t,r),h);break;default:m+="/"}break;case 123*c:u[l++]=Ve(m)*v;case 125*c:case 59:case 0:switch(j){case 0:case 125:x=0;case 59+f:v==-1&&(m=se(m,/\f/g,"")),S>0&&Ve(m)-p&&jr(S>32?Uo(m+";",n,r,p-1):Uo(se(m," ","")+";",n,r,p-2),h);break;case 59:m+=";";default:if(jr(Y=Lo(m,t,r,l,f,o,u,T,D=[],C=[],p),s),j===123)if(f===0)Pr(m,t,Y,Y,D,s,p,u,C);else switch(g===99&&je(m,3)===110?100:g){case 100:case 108:case 109:case 115:Pr(e,Y,Y,n&&jr(Lo(e,Y,Y,0,0,o,u,T,o,D=[],p),C),o,C,p,u,n?D:C);break;default:Pr(m,Y,Y,Y,[""],C,0,u,C)}}l=f=S=0,c=v=1,T=m="",p=i;break;case 58:p=1+Ve(m),S=b;default:if(c<1){if(j==123)--c;else if(j==125&&c++==0&&nc()==125)continue}switch(m+=Tr(j),j*c){case 38:v=f>0?1:(m+="\f",-1);break;case 44:u[l++]=(Ve(m)-1)*v,v=1;break;case 64:He()===45&&(m+=Ir(Be())),g=He(),f=p=Ve(T=m+=ac(kr())),j++;break;case 45:b===45&&Ve(m)==2&&(c=0)}}return s}function Lo(e,t,r,n,o,s,i,u,h,l,f){for(var p=o-1,g=o===0?s:[""],S=_n(g),b=0,c=0,x=0;b<n;++b)for(var v=0,j=Tt(e,p+1,p=Qa(c=i[b])),T=e;v<S;++v)(T=$o(c>0?g[v]+" "+j:se(j,/&\f/g,g[v])))&&(h[x++]=T);return Ar(e,t,r,o===0?Cn:u,h,l,f)}function uc(e,t,r){return Ar(e,t,r,Mo,Tr(rc()),Tt(e,2,-2),0)}function Uo(e,t,r,n){return Ar(e,t,r,En,Tt(e,0,n),Tt(e,n+1,-1),n)}function at(e,t){for(var r="",n=_n(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function lc(e,t,r,n){switch(e.type){case Ja:if(e.children.length)break;case Ka:case En:return e.return=e.return||e.value;case Mo:return"";case Do:return e.return=e.value+"{"+at(e.children,n)+"}";case Cn:e.value=e.props.join(",")}return Ve(r=at(e.children,n))?e.return=e.value+"{"+r+"}":""}function dc(e){var t=_n(e);return function(r,n,o,s){for(var i="",u=0;u<t;u++)i+=e[u](r,n,o,s)||"";return i}}function fc(e){return function(t){t.root||(t=t.return)&&e(t)}}var pc=function(t,r,n){for(var o=0,s=0;o=s,s=He(),o===38&&s===12&&(r[n]=1),!At(s);)Be();return Ot(t,Pe)},hc=function(t,r){var n=-1,o=44;do switch(At(o)){case 0:o===38&&He()===12&&(r[n]=1),t[n]+=pc(Pe-1,r,n);break;case 2:t[n]+=Ir(o);break;case 4:if(o===44){t[++n]=He()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Tr(o)}while(o=Be());return t},mc=function(t,r){return qo(hc(zo(t),r))},Wo=new WeakMap,yc=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Wo.get(n))&&!o){Wo.set(t,!0);for(var s=[],i=mc(r,s),u=n.props,h=0,l=0;h<i.length;h++)for(var f=0;f<u.length;f++,l++)t.props[l]=s[h]?i[h].replace(/&\f/g,u[f]):u[f]+" "+i[h]}}},gc=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Vo(e,t){switch(Za(e,t)){case 5103:return oe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return oe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return oe+e+_r+e+Ae+e+e;case 6828:case 4268:return oe+e+Ae+e+e;case 6165:return oe+e+Ae+"flex-"+e+e;case 5187:return oe+e+se(e,/(\w+).+(:[^]+)/,oe+"box-$1$2"+Ae+"flex-$1$2")+e;case 5443:return oe+e+Ae+"flex-item-"+se(e,/flex-|-self/,"")+e;case 4675:return oe+e+Ae+"flex-line-pack"+se(e,/align-content|flex-|-self/,"")+e;case 5548:return oe+e+Ae+se(e,"shrink","negative")+e;case 5292:return oe+e+Ae+se(e,"basis","preferred-size")+e;case 6060:return oe+"box-"+se(e,"-grow","")+oe+e+Ae+se(e,"grow","positive")+e;case 4554:return oe+se(e,/([^-])(transform)/g,"$1"+oe+"$2")+e;case 6187:return se(se(se(e,/(zoom-|grab)/,oe+"$1"),/(image-set)/,oe+"$1"),e,"")+e;case 5495:case 3959:return se(e,/(image-set\([^]*)/,oe+"$1$`$1");case 4968:return se(se(e,/(.+:)(flex-)?(.*)/,oe+"box-pack:$3"+Ae+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+oe+e+e;case 4095:case 3583:case 4068:case 2532:return se(e,/(.+)-inline(.+)/,oe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ve(e)-1-t>6)switch(je(e,t+1)){case 109:if(je(e,t+4)!==45)break;case 102:return se(e,/(.+:)(.+)-([^]+)/,"$1"+oe+"$2-$3$1"+_r+(je(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Rn(e,"stretch")?Vo(se(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(je(e,t+1)!==115)break;case 6444:switch(je(e,Ve(e)-3-(~Rn(e,"!important")&&10))){case 107:return se(e,":",":"+oe)+e;case 101:return se(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+oe+(je(e,14)===45?"inline-":"")+"box$3$1"+oe+"$2$3$1"+Ae+"$2box$3")+e}break;case 5936:switch(je(e,t+11)){case 114:return oe+e+Ae+se(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return oe+e+Ae+se(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return oe+e+Ae+se(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return oe+e+Ae+e+e}return e}var xc=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case En:t.return=Vo(t.value,t.length);break;case Do:return at([jt(t,{value:se(t.value,"@","@"+oe)})],o);case Cn:if(t.length)return tc(t.props,function(s){switch(ec(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return at([jt(t,{props:[se(s,/:(read-\w+)/,":"+_r+"$1")]})],o);case"::placeholder":return at([jt(t,{props:[se(s,/:(plac\w+)/,":"+oe+"input-$1")]}),jt(t,{props:[se(s,/:(plac\w+)/,":"+_r+"$1")]}),jt(t,{props:[se(s,/:(plac\w+)/,Ae+"input-$1")]})],o)}return""})}},bc=[xc],vc=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(c){var x=c.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(c),c.setAttribute("data-s",""))})}var o=t.stylisPlugins||bc,s={},i,u=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(c){for(var x=c.getAttribute("data-emotion").split(" "),v=1;v<x.length;v++)s[x[v]]=!0;u.push(c)});var h,l=[yc,gc];{var f,p=[lc,fc(function(c){f.insert(c)})],g=dc(l.concat(o,p)),S=function(x){return at(cc(x),g)};h=function(x,v,j,T){f=j,S(x?x+"{"+v.styles+"}":v.styles),T&&(b.inserted[v.name]=!0)}}var b={key:r,sheet:new Ga({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:h};return b.sheet.hydrate(u),b};let jn;typeof document=="object"&&(jn=vc({key:"css",prepend:!0}));function Ho(e){const{injectFirst:t,children:r}=e;return t&&jn?a.jsx(wt.CacheProvider,{value:jn,children:r}):r}process.env.NODE_ENV!=="production"&&(Ho.propTypes={children:G.node,injectFirst:G.bool});function Sc(e){return e==null||Object.keys(e).length===0}function Yo(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(Sc(o)?r:o):t;return a.jsx(wt.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(Yo.propTypes={defaultTheme:G.object,styles:G.oneOfType([G.array,G.string,G.object,G.func])});/**
60
60
  * @mui/styled-engine v5.16.12
61
61
  *
62
62
  * @license MIT
63
63
  * This source code is licensed under the MIT license found in the
64
64
  * LICENSE file in the root directory of this source tree.
65
- */function Ji(e,t){const r=vs(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
66
- `)):n.some(s=>s===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}const Xi=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Qi=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:eo,StyledEngineProvider:Zn,ThemeContext:it.ThemeContext,css:it.css,default:Ji,internal_processStyles:Xi,keyframes:it.keyframes},Symbol.toStringTag,{value:"Module"})),Zi=Be(Qi),ea=Be(Rs),ta=Be(Ls),ra=Be(Bs),na=["values","unit","step"],oa=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>te({},r,{[n.key]:n.val}),{})};function to(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Ue(e,na),s=oa(t),i=Object.keys(s);function c(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r})`}function h(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-n/100}${r})`}function u(m,E){const y=i.indexOf(E);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r}) and (max-width:${(y!==-1&&typeof t[i[y]]=="number"?t[i[y]]:E)-n/100}${r})`}function l(m){return i.indexOf(m)+1<i.length?u(m,i[i.indexOf(m)+1]):c(m)}function p(m){const E=i.indexOf(m);return E===0?c(i[1]):E===i.length-1?h(i[E]):u(m,i[i.indexOf(m)+1]).replace("@media","@media not all and")}return te({keys:i,values:s,up:c,down:h,between:u,only:l,not:p,unit:r},o)}const sa={borderRadius:4},Ve=process.env.NODE_ENV!=="production"?z.oneOfType([z.number,z.string,z.object,z.array]):{};function mt(e,t){return t?Ne(e,t,{clone:!1}):e}const zr={xs:0,sm:600,md:900,lg:1200,xl:1536},ro={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${zr[e]}px)`};function Le(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const s=n.breakpoints||ro;return t.reduce((i,c,h)=>(i[s.up(s.keys[h])]=r(t[h]),i),{})}if(typeof t=="object"){const s=n.breakpoints||ro;return Object.keys(t).reduce((i,c)=>{if(Object.keys(s.values||zr).indexOf(c)!==-1){const h=s.up(c);i[h]=r(t[c],c)}else{const h=c;i[h]=t[h]}return i},{})}return r(t)}function ia(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const s=e.up(o);return n[s]={},n},{}))||{}}function aa(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function Jt(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Xt(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Jt(e,r)||n,t&&(o=t(o,n,e)),o}function pe(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,s=i=>{if(i[t]==null)return null;const c=i[t],h=i.theme,u=Jt(h,n)||{};return Le(i,c,p=>{let m=Xt(u,o,p);return p===m&&typeof p=="string"&&(m=Xt(u,o,`${t}${p==="default"?"":ze(p)}`,p)),r===!1?m:{[r]:m}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:Ve}:{},s.filterProps=[t],s}function ca(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const ua={m:"margin",p:"padding"},la={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},no={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},fa=ca(e=>{if(e.length>2)if(no[e])e=no[e];else return[e];const[t,r]=e.split(""),n=ua[t],o=la[r]||"";return Array.isArray(o)?o.map(s=>n+s):[n+o]}),Qt=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Zt=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],da=[...Qt,...Zt];function yt(e,t,r,n){var o;const s=(o=Jt(e,t,!1))!=null?o:r;return typeof s=="number"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`),s*i):Array.isArray(s)?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>s.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(s)}.`,`${i} > ${s.length-1}, you need to add the missing values.`].join(`
65
+ */function wc(e,t){const r=Hi(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
66
+ `)):n.some(s=>s===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}const Cc=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Ec=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Yo,StyledEngineProvider:Ho,ThemeContext:wt.ThemeContext,css:wt.css,default:wc,internal_processStyles:Cc,keyframes:wt.keyframes},Symbol.toStringTag,{value:"Module"})),Rc=Ge(Ec),_c=Ge(Ji),Tc=Ge(fa),jc=Ge(da),Oc=["values","unit","step"],Ac=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>ue({},r,{[n.key]:n.val}),{})};function Go(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Xe(e,Oc),s=Ac(t),i=Object.keys(s);function u(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${r})`}function h(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-n/100}${r})`}function l(g,S){const b=i.indexOf(S);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${r}) and (max-width:${(b!==-1&&typeof t[i[b]]=="number"?t[i[b]]:S)-n/100}${r})`}function f(g){return i.indexOf(g)+1<i.length?l(g,i[i.indexOf(g)+1]):u(g)}function p(g){const S=i.indexOf(g);return S===0?u(i[1]):S===i.length-1?h(i[S]):l(g,i[i.indexOf(g)+1]).replace("@media","@media not all and")}return ue({keys:i,values:s,up:u,down:h,between:l,only:f,not:p,unit:r},o)}const kc={borderRadius:4},Ze=process.env.NODE_ENV!=="production"?G.oneOfType([G.number,G.string,G.object,G.array]):{};function kt(e,t){return t?We(e,t,{clone:!1}):e}const On={xs:0,sm:600,md:900,lg:1200,xl:1536},Ko={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${On[e]}px)`};function Ke(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const s=n.breakpoints||Ko;return t.reduce((i,u,h)=>(i[s.up(s.keys[h])]=r(t[h]),i),{})}if(typeof t=="object"){const s=n.breakpoints||Ko;return Object.keys(t).reduce((i,u)=>{if(Object.keys(s.values||On).indexOf(u)!==-1){const h=s.up(u);i[h]=r(t[u],u)}else{const h=u;i[h]=t[h]}return i},{})}return r(t)}function Ic(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const s=e.up(o);return n[s]={},n},{}))||{}}function Pc(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function Fr(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Br(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Fr(e,r)||n,t&&(o=t(o,n,e)),o}function Ce(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,s=i=>{if(i[t]==null)return null;const u=i[t],h=i.theme,l=Fr(h,n)||{};return Ke(i,u,p=>{let g=Br(l,o,p);return p===g&&typeof p=="string"&&(g=Br(l,o,`${t}${p==="default"?"":Qe(p)}`,p)),r===!1?g:{[r]:g}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:Ze}:{},s.filterProps=[t],s}function Fc(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Bc={m:"margin",p:"padding"},Mc={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Jo={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Dc=Fc(e=>{if(e.length>2)if(Jo[e])e=Jo[e];else return[e];const[t,r]=e.split(""),n=Bc[t],o=Mc[r]||"";return Array.isArray(o)?o.map(s=>n+s):[n+o]}),Mr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Dr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],$c=[...Mr,...Dr];function It(e,t,r,n){var o;const s=(o=Fr(e,t,!1))!=null?o:r;return typeof s=="number"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`),s*i):Array.isArray(s)?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>s.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(s)}.`,`${i} > ${s.length-1}, you need to add the missing values.`].join(`
67
67
  `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
68
68
  `))),s[i]):typeof s=="function"?s:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${s}) is invalid.`,"It should be a number, an array or a function."].join(`
69
- `)),()=>{})}function oo(e){return yt(e,"spacing",8,"spacing")}function gt(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function pa(e,t){return r=>e.reduce((n,o)=>(n[o]=gt(t,r),n),{})}function ha(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=fa(r),s=pa(o,n),i=e[r];return Le(e,i,s)}function so(e,t){const r=oo(e.theme);return Object.keys(e).map(n=>ha(e,t,n,r)).reduce(mt,{})}function le(e){return so(e,Qt)}le.propTypes=process.env.NODE_ENV!=="production"?Qt.reduce((e,t)=>(e[t]=Ve,e),{}):{},le.filterProps=Qt;function fe(e){return so(e,Zt)}fe.propTypes=process.env.NODE_ENV!=="production"?Zt.reduce((e,t)=>(e[t]=Ve,e),{}):{},fe.filterProps=Zt,process.env.NODE_ENV!=="production"&&da.reduce((e,t)=>(e[t]=Ve,e),{});function ma(e=8){if(e.mui)return e;const t=oo({spacing:e}),r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(s=>{const i=t(s);return typeof i=="number"?`${i}px`:i}).join(" "));return r.mui=!0,r}function er(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(s=>{n[s]=o}),n),{}),r=n=>Object.keys(n).reduce((o,s)=>t[s]?mt(o,t[s](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Ae(e){return typeof e!="number"?e:`${e}px solid`}function Pe(e,t){return pe({prop:e,themeKey:"borders",transform:t})}const ya=Pe("border",Ae),ga=Pe("borderTop",Ae),ba=Pe("borderRight",Ae),xa=Pe("borderBottom",Ae),va=Pe("borderLeft",Ae),Ea=Pe("borderColor"),Sa=Pe("borderTopColor"),wa=Pe("borderRightColor"),Ra=Pe("borderBottomColor"),_a=Pe("borderLeftColor"),Ta=Pe("outline",Ae),Oa=Pe("outlineColor"),tr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=yt(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:gt(t,n)});return Le(e,e.borderRadius,r)}return null};tr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Ve}:{},tr.filterProps=["borderRadius"],er(ya,ga,ba,xa,va,Ea,Sa,wa,Ra,_a,tr,Ta,Oa);const rr=e=>{if(e.gap!==void 0&&e.gap!==null){const t=yt(e.theme,"spacing",8,"gap"),r=n=>({gap:gt(t,n)});return Le(e,e.gap,r)}return null};rr.propTypes=process.env.NODE_ENV!=="production"?{gap:Ve}:{},rr.filterProps=["gap"];const nr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=yt(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:gt(t,n)});return Le(e,e.columnGap,r)}return null};nr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Ve}:{},nr.filterProps=["columnGap"];const or=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=yt(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:gt(t,n)});return Le(e,e.rowGap,r)}return null};or.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Ve}:{},or.filterProps=["rowGap"];const Ca=pe({prop:"gridColumn"}),Aa=pe({prop:"gridRow"}),Pa=pe({prop:"gridAutoFlow"}),ja=pe({prop:"gridAutoColumns"}),ka=pe({prop:"gridAutoRows"}),$a=pe({prop:"gridTemplateColumns"}),Ia=pe({prop:"gridTemplateRows"}),Na=pe({prop:"gridTemplateAreas"}),Da=pe({prop:"gridArea"});er(rr,nr,or,Ca,Aa,Pa,ja,ka,$a,Ia,Na,Da);function Qe(e,t){return t==="grey"?t:e}const Fa=pe({prop:"color",themeKey:"palette",transform:Qe}),Ma=pe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Qe}),Ba=pe({prop:"backgroundColor",themeKey:"palette",transform:Qe});er(Fa,Ma,Ba);function Te(e){return e<=1&&e!==0?`${e*100}%`:e}const La=pe({prop:"width",transform:Te}),Ur=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const s=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||zr[r];return s?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:Te(r)}};return Le(e,e.maxWidth,t)}return null};Ur.filterProps=["maxWidth"];const qa=pe({prop:"minWidth",transform:Te}),za=pe({prop:"height",transform:Te}),Ua=pe({prop:"maxHeight",transform:Te}),Va=pe({prop:"minHeight",transform:Te});pe({prop:"size",cssProperty:"width",transform:Te}),pe({prop:"size",cssProperty:"height",transform:Te});const Wa=pe({prop:"boxSizing"});er(La,Ur,qa,za,Ua,Va,Wa);const bt={border:{themeKey:"borders",transform:Ae},borderTop:{themeKey:"borders",transform:Ae},borderRight:{themeKey:"borders",transform:Ae},borderBottom:{themeKey:"borders",transform:Ae},borderLeft:{themeKey:"borders",transform:Ae},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ae},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:tr},color:{themeKey:"palette",transform:Qe},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Qe},backgroundColor:{themeKey:"palette",transform:Qe},p:{style:fe},pt:{style:fe},pr:{style:fe},pb:{style:fe},pl:{style:fe},px:{style:fe},py:{style:fe},padding:{style:fe},paddingTop:{style:fe},paddingRight:{style:fe},paddingBottom:{style:fe},paddingLeft:{style:fe},paddingX:{style:fe},paddingY:{style:fe},paddingInline:{style:fe},paddingInlineStart:{style:fe},paddingInlineEnd:{style:fe},paddingBlock:{style:fe},paddingBlockStart:{style:fe},paddingBlockEnd:{style:fe},m:{style:le},mt:{style:le},mr:{style:le},mb:{style:le},ml:{style:le},mx:{style:le},my:{style:le},margin:{style:le},marginTop:{style:le},marginRight:{style:le},marginBottom:{style:le},marginLeft:{style:le},marginX:{style:le},marginY:{style:le},marginInline:{style:le},marginInlineStart:{style:le},marginInlineEnd:{style:le},marginBlock:{style:le},marginBlockStart:{style:le},marginBlockEnd:{style:le},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:rr},rowGap:{style:or},columnGap:{style:nr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Te},maxWidth:{style:Ur},minWidth:{transform:Te},height:{transform:Te},maxHeight:{transform:Te},minHeight:{transform:Te},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Ha(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Ya(e,t){return typeof e=="function"?e(t):e}function io(){function e(r,n,o,s){const i={[r]:n,theme:o},c=s[r];if(!c)return{[r]:n};const{cssProperty:h=r,themeKey:u,transform:l,style:p}=c;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const m=Jt(o,u)||{};return p?p(i):Le(i,n,y=>{let a=Xt(m,l,y);return y===a&&typeof y=="string"&&(a=Xt(m,l,`${r}${y==="default"?"":ze(y)}`,y)),h===!1?a:{[h]:a}})}function t(r){var n;const{sx:o,theme:s={}}=r||{};if(!o)return null;const i=(n=s.unstable_sxConfig)!=null?n:bt;function c(h){let u=h;if(typeof h=="function")u=h(s);else if(typeof h!="object")return h;if(!u)return null;const l=ia(s.breakpoints),p=Object.keys(l);let m=l;return Object.keys(u).forEach(E=>{const y=Ya(u[E],s);if(y!=null)if(typeof y=="object")if(i[E])m=mt(m,e(E,y,s,i));else{const a=Le({theme:s},y,g=>({[E]:g}));Ha(a,y)?m[E]=t({sx:y,theme:s}):m=mt(m,a)}else m=mt(m,e(E,y,s,i))}),aa(p,m)}return Array.isArray(o)?o.map(c):c(o)}return t}const sr=io();sr.filterProps=["sx"];function ao(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const Ga=["breakpoints","palette","spacing","shape"];function co(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:s={}}=e,i=Ue(e,Ga),c=to(r),h=ma(o);let u=Ne({breakpoints:c,direction:"ltr",components:{},palette:te({mode:"light"},n),spacing:h,shape:te({},sa,s)},i);return u.applyStyles=ao,u=t.reduce((l,p)=>Ne(l,p),u),u.unstable_sxConfig=te({},bt,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(p){return sr({sx:p,theme:this})},u}const Ka=Be(Object.freeze(Object.defineProperty({__proto__:null,default:co,private_createBreakpoints:to,unstable_applyStyles:ao},Symbol.toStringTag,{value:"Module"}))),Ja=["sx"],Xa=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:bt;return Object.keys(e).forEach(s=>{o[s]?n.systemProps[s]=e[s]:n.otherProps[s]=e[s]}),n};function Qa(e){const{sx:t}=e,r=Ue(e,Ja),{systemProps:n,otherProps:o}=Xa(r);let s;return Array.isArray(t)?s=[n,...t]:typeof t=="function"?s=(...i)=>{const c=t(...i);return qe(c)?te({},n,c):n}:s=te({},n,t),te({},o,{sx:s})}const Za=Be(Object.freeze(Object.defineProperty({__proto__:null,default:sr,extendSxProp:Qa,unstable_createStyleFunctionSx:io,unstable_defaultSxConfig:bt},Symbol.toStringTag,{value:"Module"})));var uo;function ec(){if(uo)return We;uo=1;var e=ve();Object.defineProperty(We,"__esModule",{value:!0}),We.default=V,We.shouldForwardProp=g,We.systemDefaultTheme=void 0;var t=e(gi()),r=e(bi()),n=E(Zi),o=ea,s=e(ta),i=e(ra),c=e(Ka),h=e(Za);const u=["ownerState"],l=["variants"],p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function m(d){if(typeof WeakMap!="function")return null;var R=new WeakMap,w=new WeakMap;return(m=function(C){return C?w:R})(d)}function E(d,R){if(d&&d.__esModule)return d;if(d===null||typeof d!="object"&&typeof d!="function")return{default:d};var w=m(R);if(w&&w.has(d))return w.get(d);var C={__proto__:null},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var H in d)if(H!=="default"&&Object.prototype.hasOwnProperty.call(d,H)){var Y=M?Object.getOwnPropertyDescriptor(d,H):null;Y&&(Y.get||Y.set)?Object.defineProperty(C,H,Y):C[H]=d[H]}return C.default=d,w&&w.set(d,C),C}function y(d){return Object.keys(d).length===0}function a(d){return typeof d=="string"&&d.charCodeAt(0)>96}function g(d){return d!=="ownerState"&&d!=="theme"&&d!=="sx"&&d!=="as"}const _=We.systemDefaultTheme=(0,c.default)(),$=d=>d&&d.charAt(0).toLowerCase()+d.slice(1);function j({defaultTheme:d,theme:R,themeId:w}){return y(R)?d:R[w]||R}function F(d){return d?(R,w)=>w[d]:null}function S(d,R){let{ownerState:w}=R,C=(0,r.default)(R,u);const M=typeof d=="function"?d((0,t.default)({ownerState:w},C)):d;if(Array.isArray(M))return M.flatMap(H=>S(H,(0,t.default)({ownerState:w},C)));if(M&&typeof M=="object"&&Array.isArray(M.variants)){const{variants:H=[]}=M;let oe=(0,r.default)(M,l);return H.forEach(G=>{let K=!0;typeof G.props=="function"?K=G.props((0,t.default)({ownerState:w},C,w)):Object.keys(G.props).forEach(ce=>{(w==null?void 0:w[ce])!==G.props[ce]&&C[ce]!==G.props[ce]&&(K=!1)}),K&&(Array.isArray(oe)||(oe=[oe]),oe.push(typeof G.style=="function"?G.style((0,t.default)({ownerState:w},C,w)):G.style))}),oe}return M}function V(d={}){const{themeId:R,defaultTheme:w=_,rootShouldForwardProp:C=g,slotShouldForwardProp:M=g}=d,H=Y=>(0,h.default)((0,t.default)({},Y,{theme:j((0,t.default)({},Y,{defaultTheme:w,themeId:R}))}));return H.__mui_systemSx=!0,(Y,oe={})=>{(0,n.internal_processStyles)(Y,k=>k.filter(D=>!(D!=null&&D.__mui_systemSx)));const{name:G,slot:K,skipVariantsResolver:ce,skipSx:Ie,overridesResolver:W=F($(K))}=oe,f=(0,r.default)(oe,p),x=ce!==void 0?ce:K&&K!=="Root"&&K!=="root"||!1,O=Ie||!1;let P;process.env.NODE_ENV!=="production"&&G&&(P=`${G}-${$(K||"Root")}`);let I=g;K==="Root"||K==="root"?I=C:K?I=M:a(Y)&&(I=void 0);const N=(0,n.default)(Y,(0,t.default)({shouldForwardProp:I,label:P},f)),B=k=>typeof k=="function"&&k.__emotion_real!==k||(0,o.isPlainObject)(k)?D=>S(k,(0,t.default)({},D,{theme:j({theme:D.theme,defaultTheme:w,themeId:R})})):k,L=(k,...D)=>{let U=B(k);const de=D?D.map(B):[];G&&W&&de.push(me=>{const Ce=j((0,t.default)({},me,{defaultTheme:w,themeId:R}));if(!Ce.components||!Ce.components[G]||!Ce.components[G].styleOverrides)return null;const Dt=Ce.components[G].styleOverrides,xr={};return Object.entries(Dt).forEach(([Jl,Xl])=>{xr[Jl]=S(Xl,(0,t.default)({},me,{theme:Ce}))}),W(me,xr)}),G&&!x&&de.push(me=>{var Ce;const Dt=j((0,t.default)({},me,{defaultTheme:w,themeId:R})),xr=Dt==null||(Ce=Dt.components)==null||(Ce=Ce[G])==null?void 0:Ce.variants;return S({variants:xr},(0,t.default)({},me,{theme:Dt}))}),O||de.push(H);const A=de.length-D.length;if(Array.isArray(k)&&A>0){const me=new Array(A).fill("");U=[...k,...me],U.raw=[...k.raw,...me]}const we=N(U,...de);if(process.env.NODE_ENV!=="production"){let me;G&&(me=`${G}${(0,s.default)(K||"")}`),me===void 0&&(me=`Styled(${(0,i.default)(Y)})`),we.displayName=me}return Y.muiName&&(we.muiName=Y.muiName),we};return N.withConfig&&(L.withConfig=N.withConfig),L}}return We}var tc=ec();const rc=xe(tc);function nc(e,t){return te({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ue={};const oc=Be($s),sc=Be(fi);var lo;function ic(){if(lo)return ue;lo=1;var e=ve();Object.defineProperty(ue,"__esModule",{value:!0}),ue.alpha=y,ue.blend=V,ue.colorChannel=void 0,ue.darken=g,ue.decomposeColor=i,ue.emphasize=F,ue.getContrastRatio=E,ue.getLuminance=m,ue.hexToRgb=o,ue.hslToRgb=p,ue.lighten=$,ue.private_safeAlpha=a,ue.private_safeColorChannel=void 0,ue.private_safeDarken=_,ue.private_safeEmphasize=S,ue.private_safeLighten=j,ue.recomposeColor=u,ue.rgbToHex=l;var t=e(oc),r=e(sc);function n(d,R=0,w=1){return process.env.NODE_ENV!=="production"&&(d<R||d>w)&&console.error(`MUI: The value provided ${d} is out of range [${R}, ${w}].`),(0,r.default)(d,R,w)}function o(d){d=d.slice(1);const R=new RegExp(`.{1,${d.length>=6?2:1}}`,"g");let w=d.match(R);return w&&w[0].length===1&&(w=w.map(C=>C+C)),w?`rgb${w.length===4?"a":""}(${w.map((C,M)=>M<3?parseInt(C,16):Math.round(parseInt(C,16)/255*1e3)/1e3).join(", ")})`:""}function s(d){const R=d.toString(16);return R.length===1?`0${R}`:R}function i(d){if(d.type)return d;if(d.charAt(0)==="#")return i(o(d));const R=d.indexOf("("),w=d.substring(0,R);if(["rgb","rgba","hsl","hsla","color"].indexOf(w)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${d}\` color.
70
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,t.default)(9,d));let C=d.substring(R+1,d.length-1),M;if(w==="color"){if(C=C.split(" "),M=C.shift(),C.length===4&&C[3].charAt(0)==="/"&&(C[3]=C[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(M)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${M}\` color space.
71
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,t.default)(10,M))}else C=C.split(",");return C=C.map(H=>parseFloat(H)),{type:w,values:C,colorSpace:M}}const c=d=>{const R=i(d);return R.values.slice(0,3).map((w,C)=>R.type.indexOf("hsl")!==-1&&C!==0?`${w}%`:w).join(" ")};ue.colorChannel=c;const h=(d,R)=>{try{return c(d)}catch{return R&&process.env.NODE_ENV!=="production"&&console.warn(R),d}};ue.private_safeColorChannel=h;function u(d){const{type:R,colorSpace:w}=d;let{values:C}=d;return R.indexOf("rgb")!==-1?C=C.map((M,H)=>H<3?parseInt(M,10):M):R.indexOf("hsl")!==-1&&(C[1]=`${C[1]}%`,C[2]=`${C[2]}%`),R.indexOf("color")!==-1?C=`${w} ${C.join(" ")}`:C=`${C.join(", ")}`,`${R}(${C})`}function l(d){if(d.indexOf("#")===0)return d;const{values:R}=i(d);return`#${R.map((w,C)=>s(C===3?Math.round(255*w):w)).join("")}`}function p(d){d=i(d);const{values:R}=d,w=R[0],C=R[1]/100,M=R[2]/100,H=C*Math.min(M,1-M),Y=(K,ce=(K+w/30)%12)=>M-H*Math.max(Math.min(ce-3,9-ce,1),-1);let oe="rgb";const G=[Math.round(Y(0)*255),Math.round(Y(8)*255),Math.round(Y(4)*255)];return d.type==="hsla"&&(oe+="a",G.push(R[3])),u({type:oe,values:G})}function m(d){d=i(d);let R=d.type==="hsl"||d.type==="hsla"?i(p(d)).values:d.values;return R=R.map(w=>(d.type!=="color"&&(w/=255),w<=.03928?w/12.92:((w+.055)/1.055)**2.4)),Number((.2126*R[0]+.7152*R[1]+.0722*R[2]).toFixed(3))}function E(d,R){const w=m(d),C=m(R);return(Math.max(w,C)+.05)/(Math.min(w,C)+.05)}function y(d,R){return d=i(d),R=n(R),(d.type==="rgb"||d.type==="hsl")&&(d.type+="a"),d.type==="color"?d.values[3]=`/${R}`:d.values[3]=R,u(d)}function a(d,R,w){try{return y(d,R)}catch{return w&&process.env.NODE_ENV!=="production"&&console.warn(w),d}}function g(d,R){if(d=i(d),R=n(R),d.type.indexOf("hsl")!==-1)d.values[2]*=1-R;else if(d.type.indexOf("rgb")!==-1||d.type.indexOf("color")!==-1)for(let w=0;w<3;w+=1)d.values[w]*=1-R;return u(d)}function _(d,R,w){try{return g(d,R)}catch{return w&&process.env.NODE_ENV!=="production"&&console.warn(w),d}}function $(d,R){if(d=i(d),R=n(R),d.type.indexOf("hsl")!==-1)d.values[2]+=(100-d.values[2])*R;else if(d.type.indexOf("rgb")!==-1)for(let w=0;w<3;w+=1)d.values[w]+=(255-d.values[w])*R;else if(d.type.indexOf("color")!==-1)for(let w=0;w<3;w+=1)d.values[w]+=(1-d.values[w])*R;return u(d)}function j(d,R,w){try{return $(d,R)}catch{return w&&process.env.NODE_ENV!=="production"&&console.warn(w),d}}function F(d,R=.15){return m(d)>.5?g(d,R):$(d,R)}function S(d,R,w){try{return F(d,R)}catch{return w&&process.env.NODE_ENV!=="production"&&console.warn(w),d}}function V(d,R,w,C=1){const M=(G,K)=>Math.round((G**(1/C)*(1-w)+K**(1/C)*w)**C),H=i(d),Y=i(R),oe=[M(H.values[0],Y.values[0]),M(H.values[1],Y.values[1]),M(H.values[2],Y.values[2])];return u({type:"rgb",values:oe})}return ue}var ir=ic();const xt={black:"#000",white:"#fff"},ac={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Ze={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},et={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},vt={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},tt={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},rt={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},nt={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},cc=["mode","contrastThreshold","tonalOffset"],fo={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:xt.white,default:xt.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Vr={text:{primary:xt.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:xt.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function po(e,t,r,n){const o=n.light||n,s=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=ir.lighten(e.main,o):t==="dark"&&(e.dark=ir.darken(e.main,s)))}function uc(e="light"){return e==="dark"?{main:tt[200],light:tt[50],dark:tt[400]}:{main:tt[700],light:tt[400],dark:tt[800]}}function lc(e="light"){return e==="dark"?{main:Ze[200],light:Ze[50],dark:Ze[400]}:{main:Ze[500],light:Ze[300],dark:Ze[700]}}function fc(e="light"){return e==="dark"?{main:et[500],light:et[300],dark:et[700]}:{main:et[700],light:et[400],dark:et[800]}}function dc(e="light"){return e==="dark"?{main:rt[400],light:rt[300],dark:rt[700]}:{main:rt[700],light:rt[500],dark:rt[900]}}function pc(e="light"){return e==="dark"?{main:nt[400],light:nt[300],dark:nt[700]}:{main:nt[800],light:nt[500],dark:nt[900]}}function hc(e="light"){return e==="dark"?{main:vt[400],light:vt[300],dark:vt[700]}:{main:"#ed6c02",light:vt[500],dark:vt[900]}}function mc(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Ue(e,cc),s=e.primary||uc(t),i=e.secondary||lc(t),c=e.error||fc(t),h=e.info||dc(t),u=e.success||pc(t),l=e.warning||hc(t);function p(a){const g=ir.getContrastRatio(a,Vr.text.primary)>=r?Vr.text.primary:fo.text.primary;if(process.env.NODE_ENV!=="production"){const _=ir.getContrastRatio(a,g);_<3&&console.error([`MUI: The contrast ratio of ${_}:1 for ${g} on ${a}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
72
- `))}return g}const m=({color:a,name:g,mainShade:_=500,lightShade:$=300,darkShade:j=700})=>{if(a=te({},a),!a.main&&a[_]&&(a.main=a[_]),!a.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
73
- The color object needs to have a \`main\` property or a \`${_}\` property.`:lt(11,g?` (${g})`:"",_));if(typeof a.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
74
- \`color.main\` should be a string, but \`${JSON.stringify(a.main)}\` was provided instead.
69
+ `)),()=>{})}function Qo(e){return It(e,"spacing",8,"spacing")}function Pt(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function Nc(e,t){return r=>e.reduce((n,o)=>(n[o]=Pt(t,r),n),{})}function zc(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=Dc(r),s=Nc(o,n),i=e[r];return Ke(e,i,s)}function Xo(e,t){const r=Qo(e.theme);return Object.keys(e).map(n=>zc(e,t,n,r)).reduce(kt,{})}function Se(e){return Xo(e,Mr)}Se.propTypes=process.env.NODE_ENV!=="production"?Mr.reduce((e,t)=>(e[t]=Ze,e),{}):{},Se.filterProps=Mr;function we(e){return Xo(e,Dr)}we.propTypes=process.env.NODE_ENV!=="production"?Dr.reduce((e,t)=>(e[t]=Ze,e),{}):{},we.filterProps=Dr,process.env.NODE_ENV!=="production"&&$c.reduce((e,t)=>(e[t]=Ze,e),{});function qc(e=8){if(e.mui)return e;const t=Qo({spacing:e}),r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(s=>{const i=t(s);return typeof i=="number"?`${i}px`:i}).join(" "));return r.mui=!0,r}function $r(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(s=>{n[s]=o}),n),{}),r=n=>Object.keys(n).reduce((o,s)=>t[s]?kt(o,t[s](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function ze(e){return typeof e!="number"?e:`${e}px solid`}function qe(e,t){return Ce({prop:e,themeKey:"borders",transform:t})}const Lc=qe("border",ze),Uc=qe("borderTop",ze),Wc=qe("borderRight",ze),Vc=qe("borderBottom",ze),Hc=qe("borderLeft",ze),Yc=qe("borderColor"),Gc=qe("borderTopColor"),Kc=qe("borderRightColor"),Jc=qe("borderBottomColor"),Qc=qe("borderLeftColor"),Xc=qe("outline",ze),Zc=qe("outlineColor"),Nr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=It(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Pt(t,n)});return Ke(e,e.borderRadius,r)}return null};Nr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Ze}:{},Nr.filterProps=["borderRadius"],$r(Lc,Uc,Wc,Vc,Hc,Yc,Gc,Kc,Jc,Qc,Nr,Xc,Zc);const zr=e=>{if(e.gap!==void 0&&e.gap!==null){const t=It(e.theme,"spacing",8,"gap"),r=n=>({gap:Pt(t,n)});return Ke(e,e.gap,r)}return null};zr.propTypes=process.env.NODE_ENV!=="production"?{gap:Ze}:{},zr.filterProps=["gap"];const qr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=It(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Pt(t,n)});return Ke(e,e.columnGap,r)}return null};qr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Ze}:{},qr.filterProps=["columnGap"];const Lr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=It(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Pt(t,n)});return Ke(e,e.rowGap,r)}return null};Lr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Ze}:{},Lr.filterProps=["rowGap"];const eu=Ce({prop:"gridColumn"}),tu=Ce({prop:"gridRow"}),ru=Ce({prop:"gridAutoFlow"}),nu=Ce({prop:"gridAutoColumns"}),ou=Ce({prop:"gridAutoRows"}),su=Ce({prop:"gridTemplateColumns"}),iu=Ce({prop:"gridTemplateRows"}),au=Ce({prop:"gridTemplateAreas"}),cu=Ce({prop:"gridArea"});$r(zr,qr,Lr,eu,tu,ru,nu,ou,su,iu,au,cu);function ct(e,t){return t==="grey"?t:e}const uu=Ce({prop:"color",themeKey:"palette",transform:ct}),lu=Ce({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ct}),du=Ce({prop:"backgroundColor",themeKey:"palette",transform:ct});$r(uu,lu,du);function Me(e){return e<=1&&e!==0?`${e*100}%`:e}const fu=Ce({prop:"width",transform:Me}),An=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const s=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||On[r];return s?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:Me(r)}};return Ke(e,e.maxWidth,t)}return null};An.filterProps=["maxWidth"];const pu=Ce({prop:"minWidth",transform:Me}),hu=Ce({prop:"height",transform:Me}),mu=Ce({prop:"maxHeight",transform:Me}),yu=Ce({prop:"minHeight",transform:Me});Ce({prop:"size",cssProperty:"width",transform:Me}),Ce({prop:"size",cssProperty:"height",transform:Me});const gu=Ce({prop:"boxSizing"});$r(fu,An,pu,hu,mu,yu,gu);const Ft={border:{themeKey:"borders",transform:ze},borderTop:{themeKey:"borders",transform:ze},borderRight:{themeKey:"borders",transform:ze},borderBottom:{themeKey:"borders",transform:ze},borderLeft:{themeKey:"borders",transform:ze},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ze},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Nr},color:{themeKey:"palette",transform:ct},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ct},backgroundColor:{themeKey:"palette",transform:ct},p:{style:we},pt:{style:we},pr:{style:we},pb:{style:we},pl:{style:we},px:{style:we},py:{style:we},padding:{style:we},paddingTop:{style:we},paddingRight:{style:we},paddingBottom:{style:we},paddingLeft:{style:we},paddingX:{style:we},paddingY:{style:we},paddingInline:{style:we},paddingInlineStart:{style:we},paddingInlineEnd:{style:we},paddingBlock:{style:we},paddingBlockStart:{style:we},paddingBlockEnd:{style:we},m:{style:Se},mt:{style:Se},mr:{style:Se},mb:{style:Se},ml:{style:Se},mx:{style:Se},my:{style:Se},margin:{style:Se},marginTop:{style:Se},marginRight:{style:Se},marginBottom:{style:Se},marginLeft:{style:Se},marginX:{style:Se},marginY:{style:Se},marginInline:{style:Se},marginInlineStart:{style:Se},marginInlineEnd:{style:Se},marginBlock:{style:Se},marginBlockStart:{style:Se},marginBlockEnd:{style:Se},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:zr},rowGap:{style:Lr},columnGap:{style:qr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Me},maxWidth:{style:An},minWidth:{transform:Me},height:{transform:Me},maxHeight:{transform:Me},minHeight:{transform:Me},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function xu(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function bu(e,t){return typeof e=="function"?e(t):e}function Zo(){function e(r,n,o,s){const i={[r]:n,theme:o},u=s[r];if(!u)return{[r]:n};const{cssProperty:h=r,themeKey:l,transform:f,style:p}=u;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const g=Fr(o,l)||{};return p?p(i):Ke(i,n,b=>{let c=Br(g,f,b);return b===c&&typeof b=="string"&&(c=Br(g,f,`${r}${b==="default"?"":Qe(b)}`,b)),h===!1?c:{[h]:c}})}function t(r){var n;const{sx:o,theme:s={}}=r||{};if(!o)return null;const i=(n=s.unstable_sxConfig)!=null?n:Ft;function u(h){let l=h;if(typeof h=="function")l=h(s);else if(typeof h!="object")return h;if(!l)return null;const f=Ic(s.breakpoints),p=Object.keys(f);let g=f;return Object.keys(l).forEach(S=>{const b=bu(l[S],s);if(b!=null)if(typeof b=="object")if(i[S])g=kt(g,e(S,b,s,i));else{const c=Ke({theme:s},b,x=>({[S]:x}));xu(c,b)?g[S]=t({sx:b,theme:s}):g=kt(g,c)}else g=kt(g,e(S,b,s,i))}),Pc(p,g)}return Array.isArray(o)?o.map(u):u(o)}return t}const Ur=Zo();Ur.filterProps=["sx"];function es(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const vu=["breakpoints","palette","spacing","shape"];function ts(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:s={}}=e,i=Xe(e,vu),u=Go(r),h=qc(o);let l=We({breakpoints:u,direction:"ltr",components:{},palette:ue({mode:"light"},n),spacing:h,shape:ue({},kc,s)},i);return l.applyStyles=es,l=t.reduce((f,p)=>We(f,p),l),l.unstable_sxConfig=ue({},Ft,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(p){return Ur({sx:p,theme:this})},l}const Su=Ge(Object.freeze(Object.defineProperty({__proto__:null,default:ts,private_createBreakpoints:Go,unstable_applyStyles:es},Symbol.toStringTag,{value:"Module"}))),wu=["sx"],Cu=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Ft;return Object.keys(e).forEach(s=>{o[s]?n.systemProps[s]=e[s]:n.otherProps[s]=e[s]}),n};function Eu(e){const{sx:t}=e,r=Xe(e,wu),{systemProps:n,otherProps:o}=Cu(r);let s;return Array.isArray(t)?s=[n,...t]:typeof t=="function"?s=(...i)=>{const u=t(...i);return Je(u)?ue({},n,u):n}:s=ue({},n,t),ue({},o,{sx:s})}const Ru=Ge(Object.freeze(Object.defineProperty({__proto__:null,default:Ur,extendSxProp:Eu,unstable_createStyleFunctionSx:Zo,unstable_defaultSxConfig:Ft},Symbol.toStringTag,{value:"Module"})));var rs;function _u(){if(rs)return et;rs=1;var e=X();Object.defineProperty(et,"__esModule",{value:!0}),et.default=Y,et.shouldForwardProp=x,et.systemDefaultTheme=void 0;var t=e(Ua()),r=e(Wa()),n=S(Rc),o=_c,s=e(Tc),i=e(jc),u=e(Su),h=e(Ru);const l=["ownerState"],f=["variants"],p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function g(m){if(typeof WeakMap!="function")return null;var _=new WeakMap,E=new WeakMap;return(g=function(O){return O?E:_})(m)}function S(m,_){if(m&&m.__esModule)return m;if(m===null||typeof m!="object"&&typeof m!="function")return{default:m};var E=g(_);if(E&&E.has(m))return E.get(m);var O={__proto__:null},W=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var U in m)if(U!=="default"&&Object.prototype.hasOwnProperty.call(m,U)){var Z=W?Object.getOwnPropertyDescriptor(m,U):null;Z&&(Z.get||Z.set)?Object.defineProperty(O,U,Z):O[U]=m[U]}return O.default=m,E&&E.set(m,O),O}function b(m){return Object.keys(m).length===0}function c(m){return typeof m=="string"&&m.charCodeAt(0)>96}function x(m){return m!=="ownerState"&&m!=="theme"&&m!=="sx"&&m!=="as"}const v=et.systemDefaultTheme=(0,u.default)(),j=m=>m&&m.charAt(0).toLowerCase()+m.slice(1);function T({defaultTheme:m,theme:_,themeId:E}){return b(_)?m:_[E]||_}function D(m){return m?(_,E)=>E[m]:null}function C(m,_){let{ownerState:E}=_,O=(0,r.default)(_,l);const W=typeof m=="function"?m((0,t.default)({ownerState:E},O)):m;if(Array.isArray(W))return W.flatMap(U=>C(U,(0,t.default)({ownerState:E},O)));if(W&&typeof W=="object"&&Array.isArray(W.variants)){const{variants:U=[]}=W;let le=(0,r.default)(W,f);return U.forEach(J=>{let K=!0;typeof J.props=="function"?K=J.props((0,t.default)({ownerState:E},O,E)):Object.keys(J.props).forEach(de=>{(E==null?void 0:E[de])!==J.props[de]&&O[de]!==J.props[de]&&(K=!1)}),K&&(Array.isArray(le)||(le=[le]),le.push(typeof J.style=="function"?J.style((0,t.default)({ownerState:E},O,E)):J.style))}),le}return W}function Y(m={}){const{themeId:_,defaultTheme:E=v,rootShouldForwardProp:O=x,slotShouldForwardProp:W=x}=m,U=Z=>(0,h.default)((0,t.default)({},Z,{theme:T((0,t.default)({},Z,{defaultTheme:E,themeId:_}))}));return U.__mui_systemSx=!0,(Z,le={})=>{(0,n.internal_processStyles)(Z,k=>k.filter(B=>!(B!=null&&B.__mui_systemSx)));const{name:J,slot:K,skipVariantsResolver:de,skipSx:ge,overridesResolver:Te=D(j(K))}=le,y=(0,r.default)(le,p),R=de!==void 0?de:K&&K!=="Root"&&K!=="root"||!1,M=ge||!1;let N;process.env.NODE_ENV!=="production"&&J&&(N=`${J}-${j(K||"Root")}`);let z=x;K==="Root"||K==="root"?z=O:K?z=W:c(Z)&&(z=void 0);const A=(0,n.default)(Z,(0,t.default)({shouldForwardProp:z,label:N},y)),$=k=>typeof k=="function"&&k.__emotion_real!==k||(0,o.isPlainObject)(k)?B=>C(k,(0,t.default)({},B,{theme:T({theme:B.theme,defaultTheme:E,themeId:_})})):k,q=(k,...B)=>{let V=$(k);const xe=B?B.map($):[];J&&Te&&xe.push(Ee=>{const Re=T((0,t.default)({},Ee,{defaultTheme:E,themeId:_}));if(!Re.components||!Re.components[J]||!Re.components[J].styleOverrides)return null;const ot=Re.components[J].styleOverrides,St={};return Object.entries(ot).forEach(([Xn,Zn])=>{St[Xn]=C(Zn,(0,t.default)({},Ee,{theme:Re}))}),Te(Ee,St)}),J&&!R&&xe.push(Ee=>{var Re;const ot=T((0,t.default)({},Ee,{defaultTheme:E,themeId:_})),St=ot==null||(Re=ot.components)==null||(Re=Re[J])==null?void 0:Re.variants;return C({variants:St},(0,t.default)({},Ee,{theme:ot}))}),M||xe.push(U);const I=xe.length-B.length;if(Array.isArray(k)&&I>0){const Ee=new Array(I).fill("");V=[...k,...Ee],V.raw=[...k.raw,...Ee]}const Oe=A(V,...xe);if(process.env.NODE_ENV!=="production"){let Ee;J&&(Ee=`${J}${(0,s.default)(K||"")}`),Ee===void 0&&(Ee=`Styled(${(0,i.default)(Z)})`),Oe.displayName=Ee}return Z.muiName&&(Oe.muiName=Z.muiName),Oe};return A.withConfig&&(q.withConfig=A.withConfig),q}}return et}var Tu=_u();const ju=Q(Tu);function Ou(e,t){return ue({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ve={};const Au=Ge(sa),ku=Ge(Da);var ns;function Iu(){if(ns)return ve;ns=1;var e=X();Object.defineProperty(ve,"__esModule",{value:!0}),ve.alpha=b,ve.blend=Y,ve.colorChannel=void 0,ve.darken=x,ve.decomposeColor=i,ve.emphasize=D,ve.getContrastRatio=S,ve.getLuminance=g,ve.hexToRgb=o,ve.hslToRgb=p,ve.lighten=j,ve.private_safeAlpha=c,ve.private_safeColorChannel=void 0,ve.private_safeDarken=v,ve.private_safeEmphasize=C,ve.private_safeLighten=T,ve.recomposeColor=l,ve.rgbToHex=f;var t=e(Au),r=e(ku);function n(m,_=0,E=1){return process.env.NODE_ENV!=="production"&&(m<_||m>E)&&console.error(`MUI: The value provided ${m} is out of range [${_}, ${E}].`),(0,r.default)(m,_,E)}function o(m){m=m.slice(1);const _=new RegExp(`.{1,${m.length>=6?2:1}}`,"g");let E=m.match(_);return E&&E[0].length===1&&(E=E.map(O=>O+O)),E?`rgb${E.length===4?"a":""}(${E.map((O,W)=>W<3?parseInt(O,16):Math.round(parseInt(O,16)/255*1e3)/1e3).join(", ")})`:""}function s(m){const _=m.toString(16);return _.length===1?`0${_}`:_}function i(m){if(m.type)return m;if(m.charAt(0)==="#")return i(o(m));const _=m.indexOf("("),E=m.substring(0,_);if(["rgb","rgba","hsl","hsla","color"].indexOf(E)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${m}\` color.
70
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,t.default)(9,m));let O=m.substring(_+1,m.length-1),W;if(E==="color"){if(O=O.split(" "),W=O.shift(),O.length===4&&O[3].charAt(0)==="/"&&(O[3]=O[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(W)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${W}\` color space.
71
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,t.default)(10,W))}else O=O.split(",");return O=O.map(U=>parseFloat(U)),{type:E,values:O,colorSpace:W}}const u=m=>{const _=i(m);return _.values.slice(0,3).map((E,O)=>_.type.indexOf("hsl")!==-1&&O!==0?`${E}%`:E).join(" ")};ve.colorChannel=u;const h=(m,_)=>{try{return u(m)}catch{return _&&process.env.NODE_ENV!=="production"&&console.warn(_),m}};ve.private_safeColorChannel=h;function l(m){const{type:_,colorSpace:E}=m;let{values:O}=m;return _.indexOf("rgb")!==-1?O=O.map((W,U)=>U<3?parseInt(W,10):W):_.indexOf("hsl")!==-1&&(O[1]=`${O[1]}%`,O[2]=`${O[2]}%`),_.indexOf("color")!==-1?O=`${E} ${O.join(" ")}`:O=`${O.join(", ")}`,`${_}(${O})`}function f(m){if(m.indexOf("#")===0)return m;const{values:_}=i(m);return`#${_.map((E,O)=>s(O===3?Math.round(255*E):E)).join("")}`}function p(m){m=i(m);const{values:_}=m,E=_[0],O=_[1]/100,W=_[2]/100,U=O*Math.min(W,1-W),Z=(K,de=(K+E/30)%12)=>W-U*Math.max(Math.min(de-3,9-de,1),-1);let le="rgb";const J=[Math.round(Z(0)*255),Math.round(Z(8)*255),Math.round(Z(4)*255)];return m.type==="hsla"&&(le+="a",J.push(_[3])),l({type:le,values:J})}function g(m){m=i(m);let _=m.type==="hsl"||m.type==="hsla"?i(p(m)).values:m.values;return _=_.map(E=>(m.type!=="color"&&(E/=255),E<=.03928?E/12.92:((E+.055)/1.055)**2.4)),Number((.2126*_[0]+.7152*_[1]+.0722*_[2]).toFixed(3))}function S(m,_){const E=g(m),O=g(_);return(Math.max(E,O)+.05)/(Math.min(E,O)+.05)}function b(m,_){return m=i(m),_=n(_),(m.type==="rgb"||m.type==="hsl")&&(m.type+="a"),m.type==="color"?m.values[3]=`/${_}`:m.values[3]=_,l(m)}function c(m,_,E){try{return b(m,_)}catch{return E&&process.env.NODE_ENV!=="production"&&console.warn(E),m}}function x(m,_){if(m=i(m),_=n(_),m.type.indexOf("hsl")!==-1)m.values[2]*=1-_;else if(m.type.indexOf("rgb")!==-1||m.type.indexOf("color")!==-1)for(let E=0;E<3;E+=1)m.values[E]*=1-_;return l(m)}function v(m,_,E){try{return x(m,_)}catch{return E&&process.env.NODE_ENV!=="production"&&console.warn(E),m}}function j(m,_){if(m=i(m),_=n(_),m.type.indexOf("hsl")!==-1)m.values[2]+=(100-m.values[2])*_;else if(m.type.indexOf("rgb")!==-1)for(let E=0;E<3;E+=1)m.values[E]+=(255-m.values[E])*_;else if(m.type.indexOf("color")!==-1)for(let E=0;E<3;E+=1)m.values[E]+=(1-m.values[E])*_;return l(m)}function T(m,_,E){try{return j(m,_)}catch{return E&&process.env.NODE_ENV!=="production"&&console.warn(E),m}}function D(m,_=.15){return g(m)>.5?x(m,_):j(m,_)}function C(m,_,E){try{return D(m,_)}catch{return E&&process.env.NODE_ENV!=="production"&&console.warn(E),m}}function Y(m,_,E,O=1){const W=(J,K)=>Math.round((J**(1/O)*(1-E)+K**(1/O)*E)**O),U=i(m),Z=i(_),le=[W(U.values[0],Z.values[0]),W(U.values[1],Z.values[1]),W(U.values[2],Z.values[2])];return l({type:"rgb",values:le})}return ve}var Wr=Iu();const Bt={black:"#000",white:"#fff"},Pu={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ut={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},lt={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Mt={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},dt={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},ft={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},pt={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Fu=["mode","contrastThreshold","tonalOffset"],os={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Bt.white,default:Bt.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},kn={text:{primary:Bt.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Bt.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function ss(e,t,r,n){const o=n.light||n,s=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Wr.lighten(e.main,o):t==="dark"&&(e.dark=Wr.darken(e.main,s)))}function Bu(e="light"){return e==="dark"?{main:dt[200],light:dt[50],dark:dt[400]}:{main:dt[700],light:dt[400],dark:dt[800]}}function Mu(e="light"){return e==="dark"?{main:ut[200],light:ut[50],dark:ut[400]}:{main:ut[500],light:ut[300],dark:ut[700]}}function Du(e="light"){return e==="dark"?{main:lt[500],light:lt[300],dark:lt[700]}:{main:lt[700],light:lt[400],dark:lt[800]}}function $u(e="light"){return e==="dark"?{main:ft[400],light:ft[300],dark:ft[700]}:{main:ft[700],light:ft[500],dark:ft[900]}}function Nu(e="light"){return e==="dark"?{main:pt[400],light:pt[300],dark:pt[700]}:{main:pt[800],light:pt[500],dark:pt[900]}}function zu(e="light"){return e==="dark"?{main:Mt[400],light:Mt[300],dark:Mt[700]}:{main:"#ed6c02",light:Mt[500],dark:Mt[900]}}function qu(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Xe(e,Fu),s=e.primary||Bu(t),i=e.secondary||Mu(t),u=e.error||Du(t),h=e.info||$u(t),l=e.success||Nu(t),f=e.warning||zu(t);function p(c){const x=Wr.getContrastRatio(c,kn.text.primary)>=r?kn.text.primary:os.text.primary;if(process.env.NODE_ENV!=="production"){const v=Wr.getContrastRatio(c,x);v<3&&console.error([`MUI: The contrast ratio of ${v}:1 for ${x} on ${c}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
72
+ `))}return x}const g=({color:c,name:x,mainShade:v=500,lightShade:j=300,darkShade:T=700})=>{if(c=ue({},c),!c.main&&c[v]&&(c.main=c[v]),!c.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
73
+ The color object needs to have a \`main\` property or a \`${v}\` property.`:_t(11,x?` (${x})`:"",v));if(typeof c.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
74
+ \`color.main\` should be a string, but \`${JSON.stringify(c.main)}\` was provided instead.
75
75
 
76
76
  Did you intend to use one of the following approaches?
77
77
 
@@ -83,13 +83,13 @@ const theme1 = createTheme({ palette: {
83
83
 
84
84
  const theme2 = createTheme({ palette: {
85
85
  primary: { main: green[500] },
86
- } });`:lt(12,g?` (${g})`:"",JSON.stringify(a.main)));return po(a,"light",$,n),po(a,"dark",j,n),a.contrastText||(a.contrastText=p(a.main)),a},E={dark:Vr,light:fo};return process.env.NODE_ENV!=="production"&&(E[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Ne(te({common:te({},xt),mode:t,primary:m({color:s,name:"primary"}),secondary:m({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:c,name:"error"}),warning:m({color:l,name:"warning"}),info:m({color:h,name:"info"}),success:m({color:u,name:"success"}),grey:ac,contrastThreshold:r,getContrastText:p,augmentColor:m,tonalOffset:n},E[t]),o)}const yc=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function gc(e){return Math.round(e*1e5)/1e5}const ho={textTransform:"uppercase"},mo='"Roboto", "Helvetica", "Arial", sans-serif';function bc(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=mo,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:c=500,fontWeightBold:h=700,htmlFontSize:u=16,allVariants:l,pxToRem:p}=r,m=Ue(r,yc);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const E=o/14,y=p||(_=>`${_/u*E}rem`),a=(_,$,j,F,S)=>te({fontFamily:n,fontWeight:_,fontSize:y($),lineHeight:j},n===mo?{letterSpacing:`${gc(F/$)}em`}:{},S,l),g={h1:a(s,96,1.167,-1.5),h2:a(s,60,1.2,-.5),h3:a(i,48,1.167,0),h4:a(i,34,1.235,.25),h5:a(i,24,1.334,0),h6:a(c,20,1.6,.15),subtitle1:a(i,16,1.75,.15),subtitle2:a(c,14,1.57,.1),body1:a(i,16,1.5,.15),body2:a(i,14,1.43,.15),button:a(c,14,1.75,.4,ho),caption:a(i,12,1.66,.4),overline:a(i,12,2.66,1,ho),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ne(te({htmlFontSize:u,pxToRem:y,fontFamily:n,fontSize:o,fontWeightLight:s,fontWeightRegular:i,fontWeightMedium:c,fontWeightBold:h},g),m,{clone:!1})}const xc=.2,vc=.14,Ec=.12;function ie(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${xc})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${vc})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Ec})`].join(",")}const Sc=["none",ie(0,2,1,-1,0,1,1,0,0,1,3,0),ie(0,3,1,-2,0,2,2,0,0,1,5,0),ie(0,3,3,-2,0,3,4,0,0,1,8,0),ie(0,2,4,-1,0,4,5,0,0,1,10,0),ie(0,3,5,-1,0,5,8,0,0,1,14,0),ie(0,3,5,-1,0,6,10,0,0,1,18,0),ie(0,4,5,-2,0,7,10,1,0,2,16,1),ie(0,5,5,-3,0,8,10,1,0,3,14,2),ie(0,5,6,-3,0,9,12,1,0,3,16,2),ie(0,6,6,-3,0,10,14,1,0,4,18,3),ie(0,6,7,-4,0,11,15,1,0,4,20,3),ie(0,7,8,-4,0,12,17,2,0,5,22,4),ie(0,7,8,-4,0,13,19,2,0,5,24,4),ie(0,7,9,-4,0,14,21,2,0,5,26,4),ie(0,8,9,-5,0,15,22,2,0,6,28,5),ie(0,8,10,-5,0,16,24,2,0,6,30,5),ie(0,8,11,-5,0,17,26,2,0,6,32,5),ie(0,9,11,-5,0,18,28,2,0,7,34,6),ie(0,9,12,-6,0,19,29,2,0,7,36,6),ie(0,10,13,-6,0,20,31,3,0,8,38,7),ie(0,10,13,-6,0,21,33,3,0,8,40,7),ie(0,10,14,-6,0,22,35,3,0,8,42,7),ie(0,11,14,-7,0,23,36,3,0,9,44,8),ie(0,11,15,-7,0,24,38,3,0,9,46,8)],wc=["duration","easing","delay"],Rc={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},_c={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function yo(e){return`${Math.round(e)}ms`}function Tc(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Oc(e){const t=te({},Rc,e.easing),r=te({},_c,e.duration);return te({getAutoHeightDuration:Tc,create:(o=["all"],s={})=>{const{duration:i=r.standard,easing:c=t.easeInOut,delay:h=0}=s,u=Ue(s,wc);if(process.env.NODE_ENV!=="production"){const l=m=>typeof m=="string",p=m=>!isNaN(parseFloat(m));!l(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!p(i)&&!l(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),l(c)||console.error('MUI: Argument "easing" must be a string.'),!p(h)&&!l(h)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
87
- `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(l=>`${l} ${typeof i=="string"?i:yo(i)} ${c} ${typeof h=="string"?h:yo(h)}`).join(",")}},e,{easing:t,duration:r})}const Cc={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ac=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Pc(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:s={}}=e,i=Ue(e,Ac);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":lt(18));const c=mc(n),h=co(e);let u=Ne(h,{mixins:nc(h.breakpoints,r),palette:c,shadows:Sc.slice(),typography:bc(c,s),transitions:Oc(o),zIndex:te({},Cc)});if(u=Ne(u,i),u=t.reduce((l,p)=>Ne(l,p),u),process.env.NODE_ENV!=="production"){const l=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],p=(m,E)=>{let y;for(y in m){const a=m[y];if(l.indexOf(y)!==-1&&Object.keys(a).length>0){if(process.env.NODE_ENV!=="production"){const g=$r("",y);console.error([`MUI: The \`${E}\` component increases the CSS specificity of the \`${y}\` internal state.`,"You can not override it like this: ",JSON.stringify(m,null,2),"",`Instead, you need to use the '&.${g}' syntax:`,JSON.stringify({root:{[`&.${g}`]:a}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
88
- `))}m[y]={}}}};Object.keys(u.components).forEach(m=>{const E=u.components[m].styleOverrides;E&&m.indexOf("Mui")===0&&p(E,m)})}return u.unstable_sxConfig=te({},bt,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(p){return sr({sx:p,theme:this})},u}const jc=Pc(),kc="$$material";function $c(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ic=rc({themeId:kc,defaultTheme:jc,rootShouldForwardProp:e=>$c(e)&&e!=="classes"});function Nc(e){return $r("MuiSvgIcon",e)}ui("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Dc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Fc=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${ze(t)}`,`fontSize${ze(r)}`]};return ai(o,Nc,n)},Mc=Ic("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${ze(r.color)}`],t[`fontSize${ze(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,s,i,c,h,u,l,p,m,E,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(i=s.pxToRem)==null?void 0:i.call(s,20))||"1.25rem",medium:((c=e.typography)==null||(h=c.pxToRem)==null?void 0:h.call(c,24))||"1.5rem",large:((u=e.typography)==null||(l=u.pxToRem)==null?void 0:l.call(u,35))||"2.1875rem"}[t.fontSize],color:(p=(m=(e.vars||e).palette)==null||(m=m[t.color])==null?void 0:m.main)!=null?p:{action:(E=(e.vars||e).palette)==null||(E=E.action)==null?void 0:E.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),ar=se.forwardRef(function(t,r){const n=yi({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:i="inherit",component:c="svg",fontSize:h="medium",htmlColor:u,inheritViewBox:l=!1,titleAccess:p,viewBox:m="0 0 24 24"}=n,E=Ue(n,Dc),y=se.isValidElement(o)&&o.type==="svg",a=te({},n,{color:i,component:c,fontSize:h,instanceFontSize:t.fontSize,inheritViewBox:l,viewBox:m,hasSvgAsChild:y}),g={};l||(g.viewBox=m);const _=Fc(a);return v.jsxs(Mc,te({as:c,className:di(_.root,s),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:r},g,E,y&&o.props,{ownerState:a,children:[y?o.props.children:o,p?v.jsx("title",{children:p}):null]}))});process.env.NODE_ENV!=="production"&&(ar.propTypes={children:z.node,classes:z.object,className:z.string,color:z.oneOfType([z.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),z.string]),component:z.elementType,fontSize:z.oneOfType([z.oneOf(["inherit","large","medium","small"]),z.string]),htmlColor:z.string,inheritViewBox:z.bool,shapeRendering:z.string,sx:z.oneOfType([z.arrayOf(z.oneOfType([z.func,z.object,z.bool])),z.func,z.object]),titleAccess:z.string,viewBox:z.string}),ar.muiName="SvgIcon";function Bc(e,t){function r(n,o){return v.jsx(ar,te({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=ar.muiName,se.memo(se.forwardRef(r))}const Lc=Be(Object.freeze(Object.defineProperty({__proto__:null,capitalize:ze,createChainedFunction:qs,createSvgIcon:Bc,debounce:zs,deprecatedPropType:Us,isMuiElement:Vs,ownerDocument:$n,ownerWindow:Ws,requirePropFactory:Hs,setRef:In,unstable_ClassNameGenerator:{configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
89
- `)),Bn.configure(e)}},unstable_useEnhancedEffect:Nn,unstable_useId:Gs,unsupportedProp:Ks,useControlled:Js,useEventCallback:Xs,useForkRef:Qs,useIsFocusVisible:ii},Symbol.toStringTag,{value:"Module"})));var go;function je(){return go||(go=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Lc}(Er)),Er}var bo;function qc(){if(bo)return ut;bo=1;var e=ve();Object.defineProperty(ut,"__esModule",{value:!0}),ut.default=void 0;var t=e(je()),r=Re();return ut.default=(0,t.default)((0,r.jsx)("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M6 9h12v2H6zm8 5H6v-2h8zm4-6H6V6h12z"}),"Chat"),ut}var zc=qc();const xo=xe(zc);var Et={},vo;function Uc(){if(vo)return Et;vo=1;var e=ve();Object.defineProperty(Et,"__esModule",{value:!0}),Et.default=void 0;var t=e(je()),r=Re();return Et.default=(0,t.default)((0,r.jsx)("path",{d:"M18.3 5.71a.9959.9959 0 0 0-1.41 0L12 10.59 7.11 5.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"}),"CloseRounded"),Et}var Vc=Uc();const Wc=xe(Vc);var St={},Eo;function Hc(){if(Eo)return St;Eo=1;var e=ve();Object.defineProperty(St,"__esModule",{value:!0}),St.default=void 0;var t=e(je()),r=Re();return St.default=(0,t.default)((0,r.jsx)("path",{d:"m19.46 8 .79-1.75L22 5.46c.39-.18.39-.73 0-.91l-1.75-.79L19.46 2c-.18-.39-.73-.39-.91 0l-.79 1.75-1.76.79c-.39.18-.39.73 0 .91l1.75.79.79 1.76c.18.39.74.39.92 0M11.5 9.5 9.91 6c-.35-.78-1.47-.78-1.82 0L6.5 9.5 3 11.09c-.78.36-.78 1.47 0 1.82l3.5 1.59L8.09 18c.36.78 1.47.78 1.82 0l1.59-3.5 3.5-1.59c.78-.36.78-1.47 0-1.82zm7.04 6.5-.79 1.75-1.75.79c-.39.18-.39.73 0 .91l1.75.79.79 1.76c.18.39.73.39.91 0l.79-1.75 1.76-.79c.39-.18.39-.73 0-.91l-1.75-.79-.79-1.76c-.18-.39-.74-.39-.92 0"}),"AutoAwesomeRounded"),St}var Yc=Hc();const So=xe(Yc);var wt={},wo;function Gc(){if(wo)return wt;wo=1;var e=ve();Object.defineProperty(wt,"__esModule",{value:!0}),wt.default=void 0;var t=e(je()),r=Re();return wt.default=(0,t.default)((0,r.jsx)("path",{d:"M21 8.59V4c0-.55-.45-1-1-1h-4.59c-.89 0-1.34 1.08-.71 1.71l1.59 1.59-10 10-1.59-1.59c-.62-.63-1.7-.19-1.7.7V20c0 .55.45 1 1 1h4.59c.89 0 1.34-1.08.71-1.71L7.71 17.7l10-10 1.59 1.59c.62.63 1.7.19 1.7-.7"}),"OpenInFullRounded"),wt}var Kc=Gc();const Jc=xe(Kc);var Rt={},Ro;function Xc(){if(Ro)return Rt;Ro=1;var e=ve();Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.default=void 0;var t=e(je()),r=Re();return Rt.default=(0,t.default)((0,r.jsx)("path",{d:"M21.29 4.12 16.7 8.71l1.59 1.59c.63.63.18 1.71-.71 1.71H13c-.55 0-1-.45-1-1v-4.6c0-.89 1.08-1.34 1.71-.71l1.59 1.59 4.59-4.59c.39-.39 1.02-.39 1.41 0 .38.4.38 1.03-.01 1.42M4.12 21.29l4.59-4.59 1.59 1.59c.63.63 1.71.18 1.71-.71V13c0-.55-.45-1-1-1h-4.6c-.89 0-1.34 1.08-.71 1.71l1.59 1.59-4.59 4.59c-.39.39-.39 1.02 0 1.41.4.38 1.03.38 1.42-.01"}),"CloseFullscreenRounded"),Rt}var Qc=Xc();const Zc=xe(Qc);var _t={},_o;function eu(){if(_o)return _t;_o=1;var e=ve();Object.defineProperty(_t,"__esModule",{value:!0}),_t.default=void 0;var t=e(je()),r=Re();return _t.default=(0,t.default)((0,r.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2zM9 9h6c.55 0 1 .45 1 1v8c0 .55-.45 1-1 1H9c-.55 0-1-.45-1-1v-8c0-.55.45-1 1-1m6.5-5-.71-.71c-.18-.18-.44-.29-.7-.29H9.91c-.26 0-.52.11-.7.29L8.5 4H6c-.55 0-1 .45-1 1s.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1z"}),"DeleteOutlineRounded"),_t}var tu=eu();const ru=xe(tu);var Tt={},To;function nu(){if(To)return Tt;To=1;var e=ve();Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.default=void 0;var t=e(je()),r=Re();return Tt.default=(0,t.default)((0,r.jsx)("path",{d:"M15.59 3.59c-.38-.38-.89-.59-1.42-.59H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V9.83c0-.53-.21-1.04-.59-1.41zM8 17c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m6 0V4.5l5.5 5.5H15c-.55 0-1-.45-1-1"}),"SummarizeRounded"),Tt}var ou=nu();const su=xe(ou),Wr={chatToggleButton:{position:"fixed",bottom:20,right:20,bgcolor:"#CDDAFF",color:"white",width:60,height:60,borderRadius:"50%",boxShadow:"0px 4px 15px rgba(0, 0, 0, 0.3)","&:hover":{bgcolor:"#0B53C0"},transition:"background-color 0.3s, transform 0.3s","&:active":{transform:"scale(0.95)"}},chatContainer:(e,t,r=!1)=>({position:"fixed",...r?{top:"5%",left:"10%",right:"10%",bottom:"5%",width:"auto",height:"auto"}:{bottom:e?0:20,right:e?0:20,top:"auto",left:"auto",width:e?"80%":t?"60%":650,height:e?"50%":t?"55%":700},padding:0,display:"flex",flexDirection:"column",borderRadius:e&&!r?0:"16px",backgroundColor:"#F0F4FF",boxShadow:"0px 10px 30px rgba(0, 0, 0, 0.2)",zIndex:1300,overflow:"hidden"}),chatHeader:{fontFamily:"Staatliches, Arial, sans-serif",fontWeight:"bold",color:"black",fontSize:"1.25rem"},chatMessageInput:{"& .MuiOutlinedInput-root":{fontFamily:"Gabarito, Arial, sans-serif",borderRadius:"20px","& fieldset":{borderColor:"#ccc"},"&:hover fieldset":{borderColor:"#185cc4"}}},chatMessageBox:{maxWidth:"70%",borderRadius:"15px",padding:1,paddingX:2,boxShadow:"0px 2px 5px rgba(0, 0, 0, 0.1)","&.user":{bgcolor:"#f0f0f0",color:"#555",alignSelf:"flex-end"},"&.bot":{bgcolor:"#CDDAFF",color:"black",alignSelf:"flex-start","&:hover":{bgcolor:"#0B53C0",color:"white"}}},chatButtons:{backgroundColor:"#CDDAFF",color:"black",fontFamily:"Staatliches, sans-serif",fontSize:"1.25rem","&:hover":{backgroundColor:"#0B53C0",color:"white"}}};var Ot={},Oo;function iu(){if(Oo)return Ot;Oo=1;var e=ve();Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.default=void 0;var t=e(je()),r=Re();return Ot.default=(0,t.default)((0,r.jsx)("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3m-2 10H6V7h12zm-9-6c-.83 0-1.5-.67-1.5-1.5S8.17 10 9 10s1.5.67 1.5 1.5S9.83 13 9 13m7.5-1.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5M8 15h8v2H8z"}),"SmartToyOutlined"),Ot}var au=iu();const Hr=xe(au),cu=()=>v.jsxs(T.Box,{sx:{display:"flex",gap:1,alignItems:"flex-start"},children:[v.jsx(T.Box,{sx:{width:28,height:28,borderRadius:"50%",backgroundColor:"#CDDAFF",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,mt:.5},children:v.jsx(Hr,{sx:{fontSize:"1rem",color:"#0B53C0"}})}),v.jsxs(T.Box,{sx:{backgroundColor:"#CDDAFF",borderRadius:"15px",py:1.5,px:2,boxShadow:"0px 2px 5px rgba(0, 0, 0, 0.1)",display:"flex",alignItems:"center",gap:.5},children:[v.jsx(T.Box,{sx:{width:8,height:8,borderRadius:"50%",backgroundColor:"#0B53C0",animation:"bounce 1.4s ease-in-out infinite",animationDelay:"0s","@keyframes bounce":{"0%, 60%, 100%":{transform:"translateY(0)",opacity:.4},"30%":{transform:"translateY(-6px)",opacity:1}}}}),v.jsx(T.Box,{sx:{width:8,height:8,borderRadius:"50%",backgroundColor:"#0B53C0",animation:"bounce 1.4s ease-in-out infinite",animationDelay:"0.2s","@keyframes bounce":{"0%, 60%, 100%":{transform:"translateY(0)",opacity:.4},"30%":{transform:"translateY(-6px)",opacity:1}}}}),v.jsx(T.Box,{sx:{width:8,height:8,borderRadius:"50%",backgroundColor:"#0B53C0",animation:"bounce 1.4s ease-in-out infinite",animationDelay:"0.4s","@keyframes bounce":{"0%, 60%, 100%":{transform:"translateY(0)",opacity:.4},"30%":{transform:"translateY(-6px)",opacity:1}}}})]})]}),uu=({responses:e,messagesEndRef:t,loading:r})=>v.jsxs(T.Box,{sx:{flexGrow:1,overflowY:"auto",display:"flex",flexDirection:"column",gap:1.5,padding:2,backgroundColor:"#F0F4FF","&::-webkit-scrollbar":{width:"6px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"#CDDAFF",borderRadius:"3px"},"&::-webkit-scrollbar-thumb:hover":{background:"#0B53C0"}},children:[e.length>0?v.jsxs(v.Fragment,{children:[e.map((n,o)=>v.jsxs(T.Box,{sx:{display:"flex",flexDirection:"column",gap:1},children:[n.question&&v.jsx(T.Box,{sx:{display:"flex",justifyContent:"flex-end"},children:v.jsx(T.Box,{sx:{maxWidth:"80%",backgroundColor:"#0B53C0",color:"white",borderRadius:"15px",py:1,px:2,boxShadow:"0px 2px 5px rgba(0, 0, 0, 0.15)"},children:v.jsx(T.Typography,{variant:"body2",sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.9rem",lineHeight:1.5},children:n.question})})}),(n.answer||n.text)&&v.jsxs(T.Box,{sx:{display:"flex",gap:1,alignItems:"flex-start"},children:[v.jsx(T.Box,{sx:{width:28,height:28,borderRadius:"50%",backgroundColor:"#CDDAFF",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,mt:.5},children:v.jsx(Hr,{sx:{fontSize:"1rem",color:"#0B53C0"}})}),v.jsx(T.Box,{sx:{maxWidth:"calc(80% - 36px)",backgroundColor:"#CDDAFF",color:"black",borderRadius:"15px",py:1,px:2,boxShadow:"0px 2px 5px rgba(0, 0, 0, 0.1)"},children:v.jsx(T.Typography,{component:"div",variant:"body2",sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.9rem",lineHeight:1.6,"& p":{margin:0,marginBottom:1,"&:last-child":{marginBottom:0}},"& ul, & ol":{margin:0,paddingLeft:2.5},"& li":{marginBottom:.5},"& code":{backgroundColor:"rgba(0, 0, 0, 0.1)",padding:"2px 6px",borderRadius:"4px",fontSize:"0.85em",fontFamily:"monospace"},"& pre":{backgroundColor:"rgba(0, 0, 0, 0.1)",padding:1.5,borderRadius:"8px",overflow:"auto","& code":{backgroundColor:"transparent",padding:0}}},children:v.jsx(cn,{children:n.answer||n.text})})})]})]},o)),r&&v.jsx(cu,{})]}):v.jsxs(T.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",gap:2,color:"#888"},children:[v.jsx(Hr,{sx:{fontSize:"3rem",opacity:.5}}),v.jsx(T.Typography,{variant:"body2",sx:{fontFamily:"Gabarito, Arial, sans-serif",textAlign:"center"},children:"Start a conversation to begin learning!"})]}),v.jsx("div",{ref:t})]});var Ct={},Co;function lu(){if(Co)return Ct;Co=1;var e=ve();Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.default=void 0;var t=e(je()),r=Re();return Ct.default=(0,t.default)((0,r.jsx)("path",{d:"m3.4 20.4 17.45-7.48c.81-.35.81-1.49 0-1.84L3.4 3.6c-.66-.29-1.39.2-1.39.91L2 9.12c0 .5.37.93.87.99L17 12 2.87 13.88c-.5.07-.87.5-.87 1l.01 4.61c0 .71.73 1.2 1.39.91"}),"SendRounded"),Ct}var fu=lu();const du=xe(fu),pu=({onSendMessage:e,onStartConversation:t,onEndConversation:r,conversationId:n})=>{const[o,s]=ee.useState(""),i=()=>{o.trim()&&(e(o),s(""))};return v.jsx(T.Box,{sx:{p:2,backgroundColor:"#F0F4FF",borderTop:"1px solid #CDDAFF"},children:v.jsxs(T.Box,{sx:{display:"flex",gap:1,alignItems:"center",backgroundColor:"white",borderRadius:"20px",padding:"4px 4px 4px 16px",border:"1px solid #ccc","&:focus-within":{borderColor:"#185cc4"}},children:[v.jsx(T.TextField,{variant:"standard",placeholder:"Type a message...",fullWidth:!0,size:"small",value:o,onChange:c=>s(c.target.value),onKeyDown:c=>{c.key==="Enter"&&!c.shiftKey&&(c.preventDefault(),i())},InputProps:{disableUnderline:!0},sx:{"& .MuiInputBase-input":{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.9rem",padding:"8px 0","&::placeholder":{color:"#888",opacity:1}}}}),v.jsx(T.IconButton,{onClick:i,disabled:!o.trim(),sx:{width:40,height:40,backgroundColor:o.trim()?"#CDDAFF":"#e0e0e0",color:o.trim()?"#0B53C0":"#888",borderRadius:"50%","&:hover":{backgroundColor:o.trim()?"#0B53C0":"#e0e0e0",color:o.trim()?"white":"#888"},"&:disabled":{color:"#888"}},children:v.jsx(du,{sx:{fontSize:"1.2rem"}})})]})})};var At={},Ao;function hu(){if(Ao)return At;Ao=1;var e=ve();Object.defineProperty(At,"__esModule",{value:!0}),At.default=void 0;var t=e(je()),r=Re();return At.default=(0,t.default)((0,r.jsx)("path",{d:"M19 6.41 17.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"}),"Close"),At}var mu=hu();const yu=xe(mu);function Po(e,t){return function(){return e.apply(t,arguments)}}const{toString:gu}=Object.prototype,{getPrototypeOf:Yr}=Object,cr=(e=>t=>{const r=gu.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),$e=e=>(e=e.toLowerCase(),t=>cr(t)===e),ur=e=>t=>typeof t===e,{isArray:ot}=Array,Pt=ur("undefined");function bu(e){return e!==null&&!Pt(e)&&e.constructor!==null&&!Pt(e.constructor)&&Oe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const jo=$e("ArrayBuffer");function xu(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&jo(e.buffer),t}const vu=ur("string"),Oe=ur("function"),ko=ur("number"),lr=e=>e!==null&&typeof e=="object",Eu=e=>e===!0||e===!1,fr=e=>{if(cr(e)!=="object")return!1;const t=Yr(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Su=$e("Date"),wu=$e("File"),Ru=$e("Blob"),_u=$e("FileList"),Tu=e=>lr(e)&&Oe(e.pipe),Ou=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Oe(e.append)&&((t=cr(e))==="formdata"||t==="object"&&Oe(e.toString)&&e.toString()==="[object FormData]"))},Cu=$e("URLSearchParams"),[Au,Pu,ju,ku]=["ReadableStream","Request","Response","Headers"].map($e),$u=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function jt(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),ot(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const s=r?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let c;for(n=0;n<i;n++)c=s[n],t.call(null,e[c],c,e)}}function $o(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const He=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Io=e=>!Pt(e)&&e!==He;function Gr(){const{caseless:e}=Io(this)&&this||{},t={},r=(n,o)=>{const s=e&&$o(t,o)||o;fr(t[s])&&fr(n)?t[s]=Gr(t[s],n):fr(n)?t[s]=Gr({},n):ot(n)?t[s]=n.slice():t[s]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&jt(arguments[n],r);return t}const Iu=(e,t,r,{allOwnKeys:n}={})=>(jt(t,(o,s)=>{r&&Oe(o)?e[s]=Po(o,r):e[s]=o},{allOwnKeys:n}),e),Nu=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Du=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Fu=(e,t,r,n)=>{let o,s,i;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!n||n(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=r!==!1&&Yr(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Mu=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Bu=e=>{if(!e)return null;if(ot(e))return e;let t=e.length;if(!ko(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Lu=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Yr(Uint8Array)),qu=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},zu=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Uu=$e("HTMLFormElement"),Vu=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),No=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Wu=$e("RegExp"),Do=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};jt(r,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(n[s]=i||o)}),Object.defineProperties(e,n)},Hu=e=>{Do(e,(t,r)=>{if(Oe(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Oe(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Yu=(e,t)=>{const r={},n=o=>{o.forEach(s=>{r[s]=!0})};return ot(e)?n(e):n(String(e).split(t)),r},Gu=()=>{},Ku=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Kr="abcdefghijklmnopqrstuvwxyz",Fo="0123456789",Mo={DIGIT:Fo,ALPHA:Kr,ALPHA_DIGIT:Kr+Kr.toUpperCase()+Fo},Ju=(e=16,t=Mo.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Xu(e){return!!(e&&Oe(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Qu=e=>{const t=new Array(10),r=(n,o)=>{if(lr(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const s=ot(n)?[]:{};return jt(n,(i,c)=>{const h=r(i,o+1);!Pt(h)&&(s[c]=h)}),t[o]=void 0,s}}return n};return r(e,0)},Zu=$e("AsyncFunction"),el=e=>e&&(lr(e)||Oe(e))&&Oe(e.then)&&Oe(e.catch),Bo=((e,t)=>e?setImmediate:t?((r,n)=>(He.addEventListener("message",({source:o,data:s})=>{o===He&&s===r&&n.length&&n.shift()()},!1),o=>{n.push(o),He.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Oe(He.postMessage)),tl=typeof queueMicrotask<"u"?queueMicrotask.bind(He):typeof process<"u"&&process.nextTick||Bo,b={isArray:ot,isArrayBuffer:jo,isBuffer:bu,isFormData:Ou,isArrayBufferView:xu,isString:vu,isNumber:ko,isBoolean:Eu,isObject:lr,isPlainObject:fr,isReadableStream:Au,isRequest:Pu,isResponse:ju,isHeaders:ku,isUndefined:Pt,isDate:Su,isFile:wu,isBlob:Ru,isRegExp:Wu,isFunction:Oe,isStream:Tu,isURLSearchParams:Cu,isTypedArray:Lu,isFileList:_u,forEach:jt,merge:Gr,extend:Iu,trim:$u,stripBOM:Nu,inherits:Du,toFlatObject:Fu,kindOf:cr,kindOfTest:$e,endsWith:Mu,toArray:Bu,forEachEntry:qu,matchAll:zu,isHTMLForm:Uu,hasOwnProperty:No,hasOwnProp:No,reduceDescriptors:Do,freezeMethods:Hu,toObjectSet:Yu,toCamelCase:Vu,noop:Gu,toFiniteNumber:Ku,findKey:$o,global:He,isContextDefined:Io,ALPHABET:Mo,generateString:Ju,isSpecCompliantForm:Xu,toJSONObject:Qu,isAsyncFn:Zu,isThenable:el,setImmediate:Bo,asap:tl};function q(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}b.inherits(q,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:b.toJSONObject(this.config),code:this.code,status:this.status}}});const Lo=q.prototype,qo={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{qo[e]={value:e}}),Object.defineProperties(q,qo),Object.defineProperty(Lo,"isAxiosError",{value:!0}),q.from=(e,t,r,n,o,s)=>{const i=Object.create(Lo);return b.toFlatObject(e,i,function(h){return h!==Error.prototype},c=>c!=="isAxiosError"),q.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const rl=null;function Jr(e){return b.isPlainObject(e)||b.isArray(e)}function zo(e){return b.endsWith(e,"[]")?e.slice(0,-2):e}function Uo(e,t,r){return e?e.concat(t).map(function(o,s){return o=zo(o),!r&&s?"["+o+"]":o}).join(r?".":""):t}function nl(e){return b.isArray(e)&&!e.some(Jr)}const ol=b.toFlatObject(b,{},null,function(t){return/^is[A-Z]/.test(t)});function dr(e,t,r){if(!b.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=b.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(a,g){return!b.isUndefined(g[a])});const n=r.metaTokens,o=r.visitor||l,s=r.dots,i=r.indexes,h=(r.Blob||typeof Blob<"u"&&Blob)&&b.isSpecCompliantForm(t);if(!b.isFunction(o))throw new TypeError("visitor must be a function");function u(y){if(y===null)return"";if(b.isDate(y))return y.toISOString();if(!h&&b.isBlob(y))throw new q("Blob is not supported. Use a Buffer instead.");return b.isArrayBuffer(y)||b.isTypedArray(y)?h&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function l(y,a,g){let _=y;if(y&&!g&&typeof y=="object"){if(b.endsWith(a,"{}"))a=n?a:a.slice(0,-2),y=JSON.stringify(y);else if(b.isArray(y)&&nl(y)||(b.isFileList(y)||b.endsWith(a,"[]"))&&(_=b.toArray(y)))return a=zo(a),_.forEach(function(j,F){!(b.isUndefined(j)||j===null)&&t.append(i===!0?Uo([a],F,s):i===null?a:a+"[]",u(j))}),!1}return Jr(y)?!0:(t.append(Uo(g,a,s),u(y)),!1)}const p=[],m=Object.assign(ol,{defaultVisitor:l,convertValue:u,isVisitable:Jr});function E(y,a){if(!b.isUndefined(y)){if(p.indexOf(y)!==-1)throw Error("Circular reference detected in "+a.join("."));p.push(y),b.forEach(y,function(_,$){(!(b.isUndefined(_)||_===null)&&o.call(t,_,b.isString($)?$.trim():$,a,m))===!0&&E(_,a?a.concat($):[$])}),p.pop()}}if(!b.isObject(e))throw new TypeError("data must be an object");return E(e),t}function Vo(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Xr(e,t){this._pairs=[],e&&dr(e,this,t)}const Wo=Xr.prototype;Wo.append=function(t,r){this._pairs.push([t,r])},Wo.toString=function(t){const r=t?function(n){return t.call(this,n,Vo)}:Vo;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function sl(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ho(e,t,r){if(!t)return e;const n=r&&r.encode||sl;b.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let s;if(o?s=o(t,r):s=b.isURLSearchParams(t)?t.toString():new Xr(t,r).toString(n),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Yo{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){b.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Go={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},il={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Xr,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Qr=typeof window<"u"&&typeof document<"u",Zr=typeof navigator=="object"&&navigator||void 0,al=Qr&&(!Zr||["ReactNative","NativeScript","NS"].indexOf(Zr.product)<0),cl=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ul=Qr&&window.location.href||"http://localhost",be={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Qr,hasStandardBrowserEnv:al,hasStandardBrowserWebWorkerEnv:cl,navigator:Zr,origin:ul},Symbol.toStringTag,{value:"Module"})),...il};function ll(e,t){return dr(e,new be.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,s){return be.isNode&&b.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function fl(e){return b.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function dl(e){const t={},r=Object.keys(e);let n;const o=r.length;let s;for(n=0;n<o;n++)s=r[n],t[s]=e[s];return t}function Ko(e){function t(r,n,o,s){let i=r[s++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),h=s>=r.length;return i=!i&&b.isArray(o)?o.length:i,h?(b.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!c):((!o[i]||!b.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],s)&&b.isArray(o[i])&&(o[i]=dl(o[i])),!c)}if(b.isFormData(e)&&b.isFunction(e.entries)){const r={};return b.forEachEntry(e,(n,o)=>{t(fl(n),o,r,0)}),r}return null}function pl(e,t,r){if(b.isString(e))try{return(t||JSON.parse)(e),b.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const kt={transitional:Go,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,s=b.isObject(t);if(s&&b.isHTMLForm(t)&&(t=new FormData(t)),b.isFormData(t))return o?JSON.stringify(Ko(t)):t;if(b.isArrayBuffer(t)||b.isBuffer(t)||b.isStream(t)||b.isFile(t)||b.isBlob(t)||b.isReadableStream(t))return t;if(b.isArrayBufferView(t))return t.buffer;if(b.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return ll(t,this.formSerializer).toString();if((c=b.isFileList(t))||n.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return dr(c?{"files[]":t}:t,h&&new h,this.formSerializer)}}return s||o?(r.setContentType("application/json",!1),pl(t)):t}],transformResponse:[function(t){const r=this.transitional||kt.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(b.isResponse(t)||b.isReadableStream(t))return t;if(t&&b.isString(t)&&(n&&!this.responseType||o)){const i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?q.from(c,q.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:be.classes.FormData,Blob:be.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};b.forEach(["delete","get","head","post","put","patch"],e=>{kt.headers[e]={}});const hl=b.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ml=e=>{const t={};let r,n,o;return e&&e.split(`
90
- `).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&hl[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Jo=Symbol("internals");function $t(e){return e&&String(e).trim().toLowerCase()}function pr(e){return e===!1||e==null?e:b.isArray(e)?e.map(pr):String(e)}function yl(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const gl=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function en(e,t,r,n,o){if(b.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!b.isString(t)){if(b.isString(n))return t.indexOf(n)!==-1;if(b.isRegExp(n))return n.test(t)}}function bl(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function xl(e,t){const r=b.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,s,i){return this[n].call(this,t,o,s,i)},configurable:!0})})}class Se{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function s(c,h,u){const l=$t(h);if(!l)throw new Error("header name must be a non-empty string");const p=b.findKey(o,l);(!p||o[p]===void 0||u===!0||u===void 0&&o[p]!==!1)&&(o[p||h]=pr(c))}const i=(c,h)=>b.forEach(c,(u,l)=>s(u,l,h));if(b.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(b.isString(t)&&(t=t.trim())&&!gl(t))i(ml(t),r);else if(b.isHeaders(t))for(const[c,h]of t.entries())s(h,c,n);else t!=null&&s(r,t,n);return this}get(t,r){if(t=$t(t),t){const n=b.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return yl(o);if(b.isFunction(r))return r.call(this,o,n);if(b.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=$t(t),t){const n=b.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||en(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function s(i){if(i=$t(i),i){const c=b.findKey(n,i);c&&(!r||en(n,n[c],c,r))&&(delete n[c],o=!0)}}return b.isArray(t)?t.forEach(s):s(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const s=r[n];(!t||en(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const r=this,n={};return b.forEach(this,(o,s)=>{const i=b.findKey(n,s);if(i){r[i]=pr(o),delete r[s];return}const c=t?bl(s):String(s).trim();c!==s&&delete r[s],r[c]=pr(o),n[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return b.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&b.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
91
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Jo]=this[Jo]={accessors:{}}).accessors,o=this.prototype;function s(i){const c=$t(i);n[c]||(xl(o,i),n[c]=!0)}return b.isArray(t)?t.forEach(s):s(t),this}}Se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),b.reduceDescriptors(Se.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),b.freezeMethods(Se);function tn(e,t){const r=this||kt,n=t||r,o=Se.from(n.headers);let s=n.data;return b.forEach(e,function(c){s=c.call(r,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Xo(e){return!!(e&&e.__CANCEL__)}function st(e,t,r){q.call(this,e??"canceled",q.ERR_CANCELED,t,r),this.name="CanceledError"}b.inherits(st,q,{__CANCEL__:!0});function Qo(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new q("Request failed with status code "+r.status,[q.ERR_BAD_REQUEST,q.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function vl(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function El(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(h){const u=Date.now(),l=n[s];i||(i=u),r[o]=h,n[o]=u;let p=s,m=0;for(;p!==o;)m+=r[p++],p=p%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),u-i<t)return;const E=l&&u-l;return E?Math.round(m*1e3/E):void 0}}function Sl(e,t){let r=0,n=1e3/t,o,s;const i=(u,l=Date.now())=>{r=l,o=null,s&&(clearTimeout(s),s=null),e.apply(null,u)};return[(...u)=>{const l=Date.now(),p=l-r;p>=n?i(u,l):(o=u,s||(s=setTimeout(()=>{s=null,i(o)},n-p)))},()=>o&&i(o)]}const hr=(e,t,r=3)=>{let n=0;const o=El(50,250);return Sl(s=>{const i=s.loaded,c=s.lengthComputable?s.total:void 0,h=i-n,u=o(h),l=i<=c;n=i;const p={loaded:i,total:c,progress:c?i/c:void 0,bytes:h,rate:u||void 0,estimated:u&&c&&l?(c-i)/u:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(p)},r)},Zo=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},es=e=>(...t)=>b.asap(()=>e(...t)),wl=be.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,be.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(be.origin),be.navigator&&/(msie|trident)/i.test(be.navigator.userAgent)):()=>!0,Rl=be.hasStandardBrowserEnv?{write(e,t,r,n,o,s){const i=[e+"="+encodeURIComponent(t)];b.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),b.isString(n)&&i.push("path="+n),b.isString(o)&&i.push("domain="+o),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function _l(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Tl(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ts(e,t){return e&&!_l(t)?Tl(e,t):t}const rs=e=>e instanceof Se?{...e}:e;function Ye(e,t){t=t||{};const r={};function n(u,l,p,m){return b.isPlainObject(u)&&b.isPlainObject(l)?b.merge.call({caseless:m},u,l):b.isPlainObject(l)?b.merge({},l):b.isArray(l)?l.slice():l}function o(u,l,p,m){if(b.isUndefined(l)){if(!b.isUndefined(u))return n(void 0,u,p,m)}else return n(u,l,p,m)}function s(u,l){if(!b.isUndefined(l))return n(void 0,l)}function i(u,l){if(b.isUndefined(l)){if(!b.isUndefined(u))return n(void 0,u)}else return n(void 0,l)}function c(u,l,p){if(p in t)return n(u,l);if(p in e)return n(void 0,u)}const h={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(u,l,p)=>o(rs(u),rs(l),p,!0)};return b.forEach(Object.keys(Object.assign({},e,t)),function(l){const p=h[l]||o,m=p(e[l],t[l],l);b.isUndefined(m)&&p!==c||(r[l]=m)}),r}const ns=e=>{const t=Ye({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:c}=t;t.headers=i=Se.from(i),t.url=Ho(ts(t.baseURL,t.url),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let h;if(b.isFormData(r)){if(be.hasStandardBrowserEnv||be.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((h=i.getContentType())!==!1){const[u,...l]=h?h.split(";").map(p=>p.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...l].join("; "))}}if(be.hasStandardBrowserEnv&&(n&&b.isFunction(n)&&(n=n(t)),n||n!==!1&&wl(t.url))){const u=o&&s&&Rl.read(s);u&&i.set(o,u)}return t},Ol=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=ns(e);let s=o.data;const i=Se.from(o.headers).normalize();let{responseType:c,onUploadProgress:h,onDownloadProgress:u}=o,l,p,m,E,y;function a(){E&&E(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(l),o.signal&&o.signal.removeEventListener("abort",l)}let g=new XMLHttpRequest;g.open(o.method.toUpperCase(),o.url,!0),g.timeout=o.timeout;function _(){if(!g)return;const j=Se.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),S={data:!c||c==="text"||c==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:j,config:e,request:g};Qo(function(d){r(d),a()},function(d){n(d),a()},S),g=null}"onloadend"in g?g.onloadend=_:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(_)},g.onabort=function(){g&&(n(new q("Request aborted",q.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new q("Network Error",q.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let F=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const S=o.transitional||Go;o.timeoutErrorMessage&&(F=o.timeoutErrorMessage),n(new q(F,S.clarifyTimeoutError?q.ETIMEDOUT:q.ECONNABORTED,e,g)),g=null},s===void 0&&i.setContentType(null),"setRequestHeader"in g&&b.forEach(i.toJSON(),function(F,S){g.setRequestHeader(S,F)}),b.isUndefined(o.withCredentials)||(g.withCredentials=!!o.withCredentials),c&&c!=="json"&&(g.responseType=o.responseType),u&&([m,y]=hr(u,!0),g.addEventListener("progress",m)),h&&g.upload&&([p,E]=hr(h),g.upload.addEventListener("progress",p),g.upload.addEventListener("loadend",E)),(o.cancelToken||o.signal)&&(l=j=>{g&&(n(!j||j.type?new st(null,e,g):j),g.abort(),g=null)},o.cancelToken&&o.cancelToken.subscribe(l),o.signal&&(o.signal.aborted?l():o.signal.addEventListener("abort",l)));const $=vl(o.url);if($&&be.protocols.indexOf($)===-1){n(new q("Unsupported protocol "+$+":",q.ERR_BAD_REQUEST,e));return}g.send(s||null)})},Cl=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const s=function(u){if(!o){o=!0,c();const l=u instanceof Error?u:this.reason;n.abort(l instanceof q?l:new st(l instanceof Error?l.message:l))}};let i=t&&setTimeout(()=>{i=null,s(new q(`timeout ${t} of ms exceeded`,q.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),e=null)};e.forEach(u=>u.addEventListener("abort",s));const{signal:h}=n;return h.unsubscribe=()=>b.asap(c),h}},Al=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},Pl=async function*(e,t){for await(const r of jl(e))yield*Al(r,t)},jl=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},os=(e,t,r,n)=>{const o=Pl(e,t);let s=0,i,c=h=>{i||(i=!0,n&&n(h))};return new ReadableStream({async pull(h){try{const{done:u,value:l}=await o.next();if(u){c(),h.close();return}let p=l.byteLength;if(r){let m=s+=p;r(m)}h.enqueue(new Uint8Array(l))}catch(u){throw c(u),u}},cancel(h){return c(h),o.return()}},{highWaterMark:2})},mr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ss=mr&&typeof ReadableStream=="function",kl=mr&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),is=(e,...t)=>{try{return!!e(...t)}catch{return!1}},$l=ss&&is(()=>{let e=!1;const t=new Request(be.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),as=64*1024,rn=ss&&is(()=>b.isReadableStream(new Response("").body)),yr={stream:rn&&(e=>e.body)};mr&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!yr[t]&&(yr[t]=b.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new q(`Response type '${t}' is not supported`,q.ERR_NOT_SUPPORT,n)})})})(new Response);const Il=async e=>{if(e==null)return 0;if(b.isBlob(e))return e.size;if(b.isSpecCompliantForm(e))return(await new Request(be.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(b.isArrayBufferView(e)||b.isArrayBuffer(e))return e.byteLength;if(b.isURLSearchParams(e)&&(e=e+""),b.isString(e))return(await kl(e)).byteLength},Nl=async(e,t)=>{const r=b.toFiniteNumber(e.getContentLength());return r??Il(t)},nn={http:rl,xhr:Ol,fetch:mr&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:s,timeout:i,onDownloadProgress:c,onUploadProgress:h,responseType:u,headers:l,withCredentials:p="same-origin",fetchOptions:m}=ns(e);u=u?(u+"").toLowerCase():"text";let E=Cl([o,s&&s.toAbortSignal()],i),y;const a=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let g;try{if(h&&$l&&r!=="get"&&r!=="head"&&(g=await Nl(l,n))!==0){let S=new Request(t,{method:"POST",body:n,duplex:"half"}),V;if(b.isFormData(n)&&(V=S.headers.get("content-type"))&&l.setContentType(V),S.body){const[d,R]=Zo(g,hr(es(h)));n=os(S.body,as,d,R)}}b.isString(p)||(p=p?"include":"omit");const _="credentials"in Request.prototype;y=new Request(t,{...m,signal:E,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:_?p:void 0});let $=await fetch(y);const j=rn&&(u==="stream"||u==="response");if(rn&&(c||j&&a)){const S={};["status","statusText","headers"].forEach(w=>{S[w]=$[w]});const V=b.toFiniteNumber($.headers.get("content-length")),[d,R]=c&&Zo(V,hr(es(c),!0))||[];$=new Response(os($.body,as,d,()=>{R&&R(),a&&a()}),S)}u=u||"text";let F=await yr[b.findKey(yr,u)||"text"]($,e);return!j&&a&&a(),await new Promise((S,V)=>{Qo(S,V,{data:F,headers:Se.from($.headers),status:$.status,statusText:$.statusText,config:e,request:y})})}catch(_){throw a&&a(),_&&_.name==="TypeError"&&/fetch/i.test(_.message)?Object.assign(new q("Network Error",q.ERR_NETWORK,e,y),{cause:_.cause||_}):q.from(_,_&&_.code,e,y)}})};b.forEach(nn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const cs=e=>`- ${e}`,Dl=e=>b.isFunction(e)||e===null||e===!1,us={getAdapter:e=>{e=b.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let s=0;s<t;s++){r=e[s];let i;if(n=r,!Dl(r)&&(n=nn[(i=String(r)).toLowerCase()],n===void 0))throw new q(`Unknown adapter '${i}'`);if(n)break;o[i||"#"+s]=n}if(!n){const s=Object.entries(o).map(([c,h])=>`adapter ${c} `+(h===!1?"is not supported by the environment":"is not available in the build"));let i=t?s.length>1?`since :
92
- `+s.map(cs).join(`
93
- `):" "+cs(s[0]):"as no adapter specified";throw new q("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:nn};function on(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new st(null,e)}function ls(e){return on(e),e.headers=Se.from(e.headers),e.data=tn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),us.getAdapter(e.adapter||kt.adapter)(e).then(function(n){return on(e),n.data=tn.call(e,e.transformResponse,n),n.headers=Se.from(n.headers),n},function(n){return Xo(n)||(on(e),n&&n.response&&(n.response.data=tn.call(e,e.transformResponse,n.response),n.response.headers=Se.from(n.response.headers))),Promise.reject(n)})}const fs="1.7.9",gr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{gr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ds={};gr.transitional=function(t,r,n){function o(s,i){return"[Axios v"+fs+"] Transitional option '"+s+"'"+i+(n?". "+n:"")}return(s,i,c)=>{if(t===!1)throw new q(o(i," has been removed"+(r?" in "+r:"")),q.ERR_DEPRECATED);return r&&!ds[i]&&(ds[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,i,c):!0}},gr.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Fl(e,t,r){if(typeof e!="object")throw new q("options must be an object",q.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const s=n[o],i=t[s];if(i){const c=e[s],h=c===void 0||i(c,s,e);if(h!==!0)throw new q("option "+s+" must be "+h,q.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new q("Unknown option "+s,q.ERR_BAD_OPTION)}}const br={assertOptions:Fl,validators:gr},Me=br.validators;class Ge{constructor(t){this.defaults=t,this.interceptors={request:new Yo,response:new Yo}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
94
- `+s):n.stack=s}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ye(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:s}=r;n!==void 0&&br.assertOptions(n,{silentJSONParsing:Me.transitional(Me.boolean),forcedJSONParsing:Me.transitional(Me.boolean),clarifyTimeoutError:Me.transitional(Me.boolean)},!1),o!=null&&(b.isFunction(o)?r.paramsSerializer={serialize:o}:br.assertOptions(o,{encode:Me.function,serialize:Me.function},!0)),br.assertOptions(r,{baseUrl:Me.spelling("baseURL"),withXsrfToken:Me.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=s&&b.merge(s.common,s[r.method]);s&&b.forEach(["delete","get","head","post","put","patch","common"],y=>{delete s[y]}),r.headers=Se.concat(i,s);const c=[];let h=!0;this.interceptors.request.forEach(function(a){typeof a.runWhen=="function"&&a.runWhen(r)===!1||(h=h&&a.synchronous,c.unshift(a.fulfilled,a.rejected))});const u=[];this.interceptors.response.forEach(function(a){u.push(a.fulfilled,a.rejected)});let l,p=0,m;if(!h){const y=[ls.bind(this),void 0];for(y.unshift.apply(y,c),y.push.apply(y,u),m=y.length,l=Promise.resolve(r);p<m;)l=l.then(y[p++],y[p++]);return l}m=c.length;let E=r;for(p=0;p<m;){const y=c[p++],a=c[p++];try{E=y(E)}catch(g){a.call(this,g);break}}try{l=ls.call(this,E)}catch(y){return Promise.reject(y)}for(p=0,m=u.length;p<m;)l=l.then(u[p++],u[p++]);return l}getUri(t){t=Ye(this.defaults,t);const r=ts(t.baseURL,t.url);return Ho(r,t.params,t.paramsSerializer)}}b.forEach(["delete","get","head","options"],function(t){Ge.prototype[t]=function(r,n){return this.request(Ye(n||{},{method:t,url:r,data:(n||{}).data}))}}),b.forEach(["post","put","patch"],function(t){function r(n){return function(s,i,c){return this.request(Ye(c||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}Ge.prototype[t]=r(),Ge.prototype[t+"Form"]=r(!0)});class sn{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const n=this;this.promise.then(o=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](o);n._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(c=>{n.subscribe(c),s=c}).then(o);return i.cancel=function(){n.unsubscribe(s)},i},t(function(s,i,c){n.reason||(n.reason=new st(s,i,c),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new sn(function(o){t=o}),cancel:t}}}function Ml(e){return function(r){return e.apply(null,r)}}function Bl(e){return b.isObject(e)&&e.isAxiosError===!0}const an={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(an).forEach(([e,t])=>{an[t]=e});function ps(e){const t=new Ge(e),r=Po(Ge.prototype.request,t);return b.extend(r,Ge.prototype,t,{allOwnKeys:!0}),b.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return ps(Ye(e,o))},r}const ae=ps(kt);ae.Axios=Ge,ae.CanceledError=st,ae.CancelToken=sn,ae.isCancel=Xo,ae.VERSION=fs,ae.toFormData=dr,ae.AxiosError=q,ae.Cancel=ae.CanceledError,ae.all=function(t){return Promise.all(t)},ae.spread=Ml,ae.isAxiosError=Bl,ae.mergeConfig=Ye,ae.AxiosHeaders=Se,ae.formToJSON=e=>Ko(b.isHTMLForm(e)?new FormData(e):e),ae.getAdapter=us.getAdapter,ae.HttpStatusCode=an,ae.default=ae;const hs=async e=>{const t=new FormData;t.append("chatbot_id",e);try{const r=await ae.post("https://rag-flask-api.onrender.com/start_conversation",t,{headers:{"Content-Type":"multipart/form-data"}}),{conversation_id:n,intro_message:o}=r.data;if(!n)throw new Error("Failed to retrieve conversation ID from server.");return{conversationId:n,introMessage:o}}catch(r){throw console.error("Error starting conversation:",r),r}},Ll=async(e,t,r)=>{const n=new FormData;n.append("chatbot_id",e),n.append("conversation_id",t),n.append("question",r);try{return(await ae.post("https://rag-flask-api.onrender.com/ask",n,{headers:{"Content-Type":"multipart/form-data"}})).data}catch(o){throw console.error("Error sending message:",o),o}},ms=async(e,t)=>{const r=new FormData;r.append("chatbot_id",e),r.append("conversation_id",t);try{await ae.post("https://rag-flask-api.onrender.com/end_conversation",r,{headers:{"Content-Type":"multipart/form-data"}})}catch(n){throw console.error("Error ending conversation:",n),n}},ql=async e=>{try{const t=await ae.get(`https://rag-flask-api.onrender.com/summary/${e}`);if(t.status===200&&t.data.summary)return t.data.summary;throw new Error("Summary not found for this chatbot.")}catch(t){throw console.error("Error fetching summary:",t),t}},zl=async(e,t,r,n=[])=>{try{const o=await ae.post("https://rag-flask-api.onrender.com/generate_guided_questions",{chatbot_id:e,current_question:t,current_answer:r,conversation_history:n},{headers:{"Content-Type":"application/json"}});if(o.data.success&&o.data.guided_questions)return o.data.guided_questions;throw new Error(o.data.error||"Failed to generate guided questions.")}catch(o){throw console.error("Error generating guided questions:",o),o}},Ul=({chatbotId:e,open:t,onClose:r})=>{const[n,o]=ee.useState(null),[s,i]=ee.useState(!1),[c,h]=ee.useState(null),u=async()=>{i(!0),h(null);try{const l=await ql(e);o(l)}catch(l){h(l.message||"Failed to fetch summary. Please try again.")}finally{i(!1)}};return ee.useEffect(()=>{t&&u()},[t]),v.jsx(T.Modal,{open:t,onClose:r,"aria-labelledby":"summary-modal-title","aria-describedby":"summary-modal-description",children:v.jsxs(T.Box,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"80%",maxWidth:600,bgcolor:"background.paper",borderRadius:4,boxShadow:24,p:4},children:[v.jsxs(T.Box,{sx:{display:"flex",justifyContent:"space-between",mb:2},children:[v.jsx(T.Typography,{id:"summary-modal-title",variant:"h6",component:"h2",children:"Document Summary"}),v.jsx(T.IconButton,{onClick:r,children:v.jsx(yu,{})})]}),s?v.jsx(T.Box,{sx:{display:"flex",justifyContent:"center",my:4},children:v.jsx(T.CircularProgress,{})}):c?v.jsx(T.Typography,{color:"error",children:c}):v.jsx(T.Box,{sx:{maxHeight:300,overflowY:"auto",padding:2,border:"1px solid #ddd",borderRadius:2,backgroundColor:"#f9f9f9"},children:v.jsx(cn,{children:n})}),v.jsx(T.Button,{variant:"contained",sx:{mt:2},onClick:r,fullWidth:!0,children:"Close"})]})})};var It={},ys;function Vl(){if(ys)return It;ys=1;var e=ve();Object.defineProperty(It,"__esModule",{value:!0}),It.default=void 0;var t=e(je()),r=Re();return It.default=(0,t.default)((0,r.jsx)("path",{d:"M8.12 9.29 12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7a.9959.9959 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0"}),"KeyboardArrowDownRounded"),It}var Wl=Vl();const gs=xe(Wl);var Nt={},bs;function Hl(){if(bs)return Nt;bs=1;var e=ve();Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.default=void 0;var t=e(je()),r=Re();return Nt.default=(0,t.default)((0,r.jsx)("path",{d:"M8.12 14.71 12 10.83l3.88 3.88c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L12.7 8.71a.9959.9959 0 0 0-1.41 0L6.7 13.3c-.39.39-.39 1.02 0 1.41.39.38 1.03.39 1.42 0"}),"KeyboardArrowUpRounded"),Nt}var Yl=Hl();const xs=xe(Yl),Gl=({questions:e,loading:t,onQuestionClick:r})=>{const[n,o]=ee.useState(!1),[s,i]=ee.useState(!1);if(t)return v.jsxs(T.Box,{sx:{display:"flex",alignItems:"center",gap:1,py:1,px:2,mx:2,mb:1},children:[v.jsx(So,{sx:{fontSize:"0.9rem",color:"#0B53C0",animation:"spin 2s linear infinite","@keyframes spin":{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}}}),v.jsx(T.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",color:"#0B53C0",fontSize:"0.8rem",fontWeight:500},children:"Thinking of follow-up questions..."})]});if(!e||e.length===0)return null;const c=e[0],h=e.slice(1),u=h.length>0;return v.jsxs(T.Box,{sx:{px:2,pb:1,pt:.5},children:[v.jsxs(T.Box,{onClick:()=>o(!n),sx:{display:"flex",alignItems:"center",justifyContent:"space-between",backgroundColor:"#CDDAFF",borderRadius:"10px",py:.75,px:1.25,cursor:"pointer","&:hover":{backgroundColor:"#b8c9f7"}},children:[v.jsxs(T.Box,{sx:{display:"flex",alignItems:"center",gap:.5},children:[v.jsx(So,{sx:{fontSize:"0.9rem",color:"#0B53C0"}}),v.jsxs(T.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",color:"#0B53C0",fontSize:"0.8rem",fontWeight:600},children:["Suggested follow-ups (",e.length,")"]})]}),v.jsx(T.Box,{sx:{display:"flex",alignItems:"center",color:"#0B53C0"},children:n?v.jsx(xs,{sx:{fontSize:"1.2rem"}}):v.jsx(gs,{sx:{fontSize:"1.2rem"}})})]}),n&&v.jsxs(T.Box,{sx:{mt:1,display:"flex",flexDirection:"column",gap:.75},children:[v.jsx(T.Box,{onClick:()=>r(c),sx:{backgroundColor:"white",border:"1px solid #CDDAFF",borderRadius:"10px",py:1,px:1.5,cursor:"pointer",transition:"all 0.2s ease","&:hover":{backgroundColor:"#CDDAFF",borderColor:"#0B53C0",transform:"translateX(4px)"}},children:v.jsx(T.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.85rem",color:"#333",lineHeight:1.4},children:c})}),u&&s&&h.map((l,p)=>v.jsx(T.Box,{onClick:()=>r(l),sx:{backgroundColor:"white",border:"1px solid #CDDAFF",borderRadius:"10px",py:1,px:1.5,cursor:"pointer",transition:"all 0.2s ease","&:hover":{backgroundColor:"#CDDAFF",borderColor:"#0B53C0",transform:"translateX(4px)"}},children:v.jsx(T.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.85rem",color:"#333",lineHeight:1.4},children:l})},p)),u&&v.jsxs(T.Box,{onClick:()=>i(!s),sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:.5,py:.5,cursor:"pointer",borderRadius:"8px","&:hover":{backgroundColor:"rgba(11, 83, 192, 0.05)"}},children:[s?v.jsx(xs,{sx:{fontSize:"1rem",color:"#0B53C0"}}):v.jsx(gs,{sx:{fontSize:"1rem",color:"#0B53C0"}}),v.jsx(T.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.75rem",color:"#0B53C0",fontWeight:600},children:s?"Show less":`Show ${h.length} more`})]})]})]})},Kl=ee.forwardRef(({chatbotId:e,onConversationStart:t,enableGuidedQuestions:r=!1,customToggleButton:n=null},o)=>{const[s,i]=ee.useState(!1),[c,h]=ee.useState(!1),[u,l]=ee.useState(()=>{const W=localStorage.getItem("responses");return W?JSON.parse(W):[]}),[p,m]=ee.useState(()=>localStorage.getItem("conversationId")||null),[E,y]=ee.useState(!1),[a,g]=ee.useState(null),[_,$]=ee.useState(!1),[j,F]=ee.useState(r),[S,V]=ee.useState([]),[d,R]=ee.useState(!1),w=T.useMediaQuery("(max-width:600px)"),C=T.useMediaQuery("(min-width:601px) and (max-width:960px)"),M=ee.useRef(null);ee.useEffect(()=>{typeof t=="function"&&p&&t(p)},[p,t]),ee.useEffect(()=>{M.current&&M.current.scrollIntoView({behavior:"smooth"})},[u]),ee.useEffect(()=>{const W=f=>{f.key==="Escape"&&c&&h(!1)};return window.addEventListener("keydown",W),()=>window.removeEventListener("keydown",W)},[c]);const H=async()=>{i(W=>!W),c&&h(!1),!s&&!p&&!E&&Y()},Y=async()=>{if(!p){y(!0),g(null);try{const W=await hs(e),{conversationId:f,introMessage:x}=W;m(f),localStorage.setItem("conversationId",f),l(O=>{const P=[...O,{id:"intro",sender:"chatbot",text:x}];return localStorage.setItem("responses",JSON.stringify(P)),P})}catch(W){console.error("Error starting conversation:",W),g("Failed to start a conversation. Please try again.")}finally{y(!1)}}},oe=async(W,f=p)=>{g(null),V([]),l(x=>{const O=[...x,{question:W,answer:null}];return localStorage.setItem("responses",JSON.stringify(O)),O}),y(!0);try{const O=(await Ll(e,f,W)).answer;l(P=>{const I=[...P];return I[I.length-1]={question:W,answer:O},localStorage.setItem("responses",JSON.stringify(I)),I}),j&&G(W,O)}catch(x){console.error("Error sending message:",x),g("Failed to send the message. Please try again."),l(O=>{const P=O.slice(0,-1);return localStorage.setItem("responses",JSON.stringify(P)),P})}finally{y(!1)}},G=async(W,f)=>{R(!0);try{const x=u.filter(P=>P.question&&P.answer).map(P=>({question:P.question,answer:P.answer})),O=await zl(e,W,f,x);V(O)}catch(x){console.error("Error fetching guided questions:",x)}finally{R(!1)}},K=W=>{V([]),oe(W)},ce=async()=>{y(!0),g(null);try{p&&await ms(e,p),m(null),l([]),V([]),localStorage.removeItem("conversationId"),localStorage.removeItem("responses"),await Y()}catch(W){console.error("Error ending conversation:",W),g("Failed to end the conversation. Please try again.")}finally{y(!1)}},Ie=async()=>{y(!0),g(null);try{p&&await ms(e,p),m(null),l([]),V([]),localStorage.removeItem("conversationId"),localStorage.removeItem("responses");const W=await hs(e),{conversationId:f,introMessage:x}=W;m(f),localStorage.setItem("conversationId",f),l([{id:"intro",sender:"chatbot",text:x}]),localStorage.setItem("responses",JSON.stringify([{id:"intro",sender:"chatbot",text:x}]))}catch(W){console.error("Error clearing conversation:",W),g("Failed to start a new conversation. Please try again.")}finally{y(!1)}};return ee.useImperativeHandle(o,()=>({endConversation:ce})),v.jsx(v.Fragment,{children:s?v.jsxs(v.Fragment,{children:[c&&v.jsx(T.Box,{onClick:()=>h(!1),sx:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:1299}}),v.jsxs(T.Paper,{elevation:0,sx:Wr.chatContainer(w,C,c),children:[v.jsxs(T.Box,{sx:{backgroundColor:"#CDDAFF",px:2,py:1.5,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[v.jsxs(T.Box,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[v.jsx(T.Box,{sx:{width:36,height:36,borderRadius:"50%",backgroundColor:"#0B53C0",display:"flex",alignItems:"center",justifyContent:"center"},children:v.jsx(xo,{sx:{color:"white",fontSize:"1.25rem"}})}),v.jsxs(T.Box,{children:[v.jsx(T.Typography,{sx:Wr.chatHeader,children:"PAT"}),v.jsx(T.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.7rem",color:"#555",marginTop:"-2px"},children:"Personalized Academic Tutor"})]})]}),v.jsxs(T.Box,{sx:{display:"flex",alignItems:"center",gap:.5},children:[v.jsx(T.Tooltip,{title:"Toggle AI-suggested follow-up questions",arrow:!0,placement:"bottom",children:v.jsxs(T.Box,{sx:{display:"flex",alignItems:"center",gap:.5,backgroundColor:"rgba(11, 83, 192, 0.1)",borderRadius:"20px",pl:1,pr:.5,py:.25},children:[v.jsx(T.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.7rem",fontWeight:600,color:"#0B53C0"},children:"Suggestions"}),v.jsx(T.Switch,{checked:j,onChange:W=>F(W.target.checked),size:"small",sx:{width:36,height:20,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:"2px","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:"#0B53C0",opacity:1}}},"& .MuiSwitch-thumb":{width:16,height:16},"& .MuiSwitch-track":{borderRadius:10,backgroundColor:"rgba(11, 83, 192, 0.3)",opacity:1}}})]})}),p&&u.length>0&&v.jsx(T.Tooltip,{title:"View a summary of this conversation",arrow:!0,placement:"bottom",children:v.jsxs(T.Box,{onClick:()=>$(!0),sx:{display:"flex",alignItems:"center",gap:.5,color:"#0B53C0",backgroundColor:"rgba(11, 83, 192, 0.1)",borderRadius:"16px",px:1,py:.5,cursor:"pointer",transition:"all 0.2s ease","&:hover":{backgroundColor:"#0B53C0",color:"white"}},children:[v.jsx(su,{sx:{fontSize:"0.9rem"}}),v.jsx(T.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.7rem",fontWeight:600},children:"Summary"})]})}),p&&v.jsx(T.Tooltip,{title:"Start a new conversation",arrow:!0,placement:"bottom",children:v.jsxs(T.Box,{onClick:Ie,sx:{display:"flex",alignItems:"center",gap:.5,color:"#dc2626",backgroundColor:"rgba(220, 38, 38, 0.1)",borderRadius:"16px",px:1,py:.5,cursor:E?"not-allowed":"pointer",opacity:E?.5:1,transition:"all 0.2s ease","&:hover":{backgroundColor:E?"rgba(220, 38, 38, 0.1)":"#dc2626",color:E?"#dc2626":"white"}},children:[v.jsx(ru,{sx:{fontSize:"0.9rem"}}),v.jsx(T.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.7rem",fontWeight:600},children:"New Chat"})]})}),v.jsx(T.Tooltip,{title:c?"Exit fullscreen (Esc)":"Fullscreen",arrow:!0,placement:"bottom",children:v.jsx(T.IconButton,{onClick:()=>h(!c),sx:{color:"#0B53C0",backgroundColor:"rgba(11, 83, 192, 0.1)",width:32,height:32,"&:hover":{backgroundColor:"#0B53C0",color:"white"}},children:c?v.jsx(Zc,{sx:{fontSize:"1rem"}}):v.jsx(Jc,{sx:{fontSize:"1rem"}})})}),v.jsx(T.IconButton,{onClick:H,sx:{color:"#0B53C0",backgroundColor:"rgba(11, 83, 192, 0.1)",width:32,height:32,"&:hover":{backgroundColor:"#0B53C0",color:"white"}},children:v.jsx(Wc,{sx:{fontSize:"1.1rem"}})})]})]}),E&&v.jsx(T.LinearProgress,{sx:{height:3,backgroundColor:"rgba(205, 218, 255, 0.5)","& .MuiLinearProgress-bar":{backgroundColor:"#0B53C0"}}}),v.jsx(uu,{responses:u,messagesEndRef:M,loading:E}),j&&v.jsx(Gl,{questions:S,loading:d,onQuestionClick:K}),a&&v.jsx(T.Box,{sx:{mx:2,mb:1,p:1.5,backgroundColor:"#fef2f2",borderRadius:"10px",border:"1px solid #fecaca"},children:v.jsx(T.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.85rem",color:"#dc2626"},children:a})}),v.jsx(pu,{onSendMessage:oe,onStartConversation:Y,onEndConversation:ce,conversationId:p}),v.jsx(Ul,{chatbotId:e,open:_,onClose:()=>$(!1)})]})]}):n?v.jsx(T.Box,{onClick:H,sx:{cursor:"pointer"},children:n}):v.jsx(T.IconButton,{onClick:H,sx:Wr.chatToggleButton,children:v.jsx(xo,{sx:{fontSize:"1.75rem"}})})})});ke.ChatbotInterface=Kl,Object.defineProperty(ke,Symbol.toStringTag,{value:"Module"})});
86
+ } });`:_t(12,x?` (${x})`:"",JSON.stringify(c.main)));return ss(c,"light",j,n),ss(c,"dark",T,n),c.contrastText||(c.contrastText=p(c.main)),c},S={dark:kn,light:os};return process.env.NODE_ENV!=="production"&&(S[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),We(ue({common:ue({},Bt),mode:t,primary:g({color:s,name:"primary"}),secondary:g({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:u,name:"error"}),warning:g({color:f,name:"warning"}),info:g({color:h,name:"info"}),success:g({color:l,name:"success"}),grey:Pu,contrastThreshold:r,getContrastText:p,augmentColor:g,tonalOffset:n},S[t]),o)}const Lu=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Uu(e){return Math.round(e*1e5)/1e5}const is={textTransform:"uppercase"},as='"Roboto", "Helvetica", "Arial", sans-serif';function Wu(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=as,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:u=500,fontWeightBold:h=700,htmlFontSize:l=16,allVariants:f,pxToRem:p}=r,g=Xe(r,Lu);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const S=o/14,b=p||(v=>`${v/l*S}rem`),c=(v,j,T,D,C)=>ue({fontFamily:n,fontWeight:v,fontSize:b(j),lineHeight:T},n===as?{letterSpacing:`${Uu(D/j)}em`}:{},C,f),x={h1:c(s,96,1.167,-1.5),h2:c(s,60,1.2,-.5),h3:c(i,48,1.167,0),h4:c(i,34,1.235,.25),h5:c(i,24,1.334,0),h6:c(u,20,1.6,.15),subtitle1:c(i,16,1.75,.15),subtitle2:c(u,14,1.57,.1),body1:c(i,16,1.5,.15),body2:c(i,14,1.43,.15),button:c(u,14,1.75,.4,is),caption:c(i,12,1.66,.4),overline:c(i,12,2.66,1,is),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return We(ue({htmlFontSize:l,pxToRem:b,fontFamily:n,fontSize:o,fontWeightLight:s,fontWeightRegular:i,fontWeightMedium:u,fontWeightBold:h},x),g,{clone:!1})}const Vu=.2,Hu=.14,Yu=.12;function be(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Vu})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Hu})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Yu})`].join(",")}const Gu=["none",be(0,2,1,-1,0,1,1,0,0,1,3,0),be(0,3,1,-2,0,2,2,0,0,1,5,0),be(0,3,3,-2,0,3,4,0,0,1,8,0),be(0,2,4,-1,0,4,5,0,0,1,10,0),be(0,3,5,-1,0,5,8,0,0,1,14,0),be(0,3,5,-1,0,6,10,0,0,1,18,0),be(0,4,5,-2,0,7,10,1,0,2,16,1),be(0,5,5,-3,0,8,10,1,0,3,14,2),be(0,5,6,-3,0,9,12,1,0,3,16,2),be(0,6,6,-3,0,10,14,1,0,4,18,3),be(0,6,7,-4,0,11,15,1,0,4,20,3),be(0,7,8,-4,0,12,17,2,0,5,22,4),be(0,7,8,-4,0,13,19,2,0,5,24,4),be(0,7,9,-4,0,14,21,2,0,5,26,4),be(0,8,9,-5,0,15,22,2,0,6,28,5),be(0,8,10,-5,0,16,24,2,0,6,30,5),be(0,8,11,-5,0,17,26,2,0,6,32,5),be(0,9,11,-5,0,18,28,2,0,7,34,6),be(0,9,12,-6,0,19,29,2,0,7,36,6),be(0,10,13,-6,0,20,31,3,0,8,38,7),be(0,10,13,-6,0,21,33,3,0,8,40,7),be(0,10,14,-6,0,22,35,3,0,8,42,7),be(0,11,14,-7,0,23,36,3,0,9,44,8),be(0,11,15,-7,0,24,38,3,0,9,46,8)],Ku=["duration","easing","delay"],Ju={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Qu={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function cs(e){return`${Math.round(e)}ms`}function Xu(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Zu(e){const t=ue({},Ju,e.easing),r=ue({},Qu,e.duration);return ue({getAutoHeightDuration:Xu,create:(o=["all"],s={})=>{const{duration:i=r.standard,easing:u=t.easeInOut,delay:h=0}=s,l=Xe(s,Ku);if(process.env.NODE_ENV!=="production"){const f=g=>typeof g=="string",p=g=>!isNaN(parseFloat(g));!f(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!p(i)&&!f(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),f(u)||console.error('MUI: Argument "easing" must be a string.'),!p(h)&&!f(h)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
87
+ `)),Object.keys(l).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(l).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(f=>`${f} ${typeof i=="string"?i:cs(i)} ${u} ${typeof h=="string"?h:cs(h)}`).join(",")}},e,{easing:t,duration:r})}const el={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},tl=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function rl(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:s={}}=e,i=Xe(e,tl);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":_t(18));const u=qu(n),h=ts(e);let l=We(h,{mixins:Ou(h.breakpoints,r),palette:u,shadows:Gu.slice(),typography:Wu(u,s),transitions:Zu(o),zIndex:ue({},el)});if(l=We(l,i),l=t.reduce((f,p)=>We(f,p),l),process.env.NODE_ENV!=="production"){const f=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],p=(g,S)=>{let b;for(b in g){const c=g[b];if(f.indexOf(b)!==-1&&Object.keys(c).length>0){if(process.env.NODE_ENV!=="production"){const x=vn("",b);console.error([`MUI: The \`${S}\` component increases the CSS specificity of the \`${b}\` internal state.`,"You can not override it like this: ",JSON.stringify(g,null,2),"",`Instead, you need to use the '&.${x}' syntax:`,JSON.stringify({root:{[`&.${x}`]:c}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
88
+ `))}g[b]={}}}};Object.keys(l.components).forEach(g=>{const S=l.components[g].styleOverrides;S&&g.indexOf("Mui")===0&&p(S,g)})}return l.unstable_sxConfig=ue({},Ft,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(p){return Ur({sx:p,theme:this})},l}const nl=rl(),ol="$$material";function sl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const il=ju({themeId:ol,defaultTheme:nl,rootShouldForwardProp:e=>sl(e)&&e!=="classes"});function al(e){return vn("MuiSvgIcon",e)}Ba("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const cl=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ul=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Qe(t)}`,`fontSize${Qe(r)}`]};return Pa(o,al,n)},ll=il("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Qe(r.color)}`],t[`fontSize${Qe(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,s,i,u,h,l,f,p,g,S,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(i=s.pxToRem)==null?void 0:i.call(s,20))||"1.25rem",medium:((u=e.typography)==null||(h=u.pxToRem)==null?void 0:h.call(u,24))||"1.5rem",large:((l=e.typography)==null||(f=l.pxToRem)==null?void 0:f.call(l,35))||"2.1875rem"}[t.fontSize],color:(p=(g=(e.vars||e).palette)==null||(g=g[t.color])==null?void 0:g.main)!=null?p:{action:(S=(e.vars||e).palette)==null||(S=S.action)==null?void 0:S.active,disabled:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.disabled,inherit:void 0}[t.color]}}),Vr=ye.forwardRef(function(t,r){const n=La({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:i="inherit",component:u="svg",fontSize:h="medium",htmlColor:l,inheritViewBox:f=!1,titleAccess:p,viewBox:g="0 0 24 24"}=n,S=Xe(n,cl),b=ye.isValidElement(o)&&o.type==="svg",c=ue({},n,{color:i,component:u,fontSize:h,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:g,hasSvgAsChild:b}),x={};f||(x.viewBox=g);const v=ul(c);return a.jsxs(ll,ue({as:u,className:$a(v.root,s),focusable:"false",color:l,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:r},x,S,b&&o.props,{ownerState:c,children:[b?o.props.children:o,p?a.jsx("title",{children:p}):null]}))});process.env.NODE_ENV!=="production"&&(Vr.propTypes={children:G.node,classes:G.object,className:G.string,color:G.oneOfType([G.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),G.string]),component:G.elementType,fontSize:G.oneOfType([G.oneOf(["inherit","large","medium","small"]),G.string]),htmlColor:G.string,inheritViewBox:G.bool,shapeRendering:G.string,sx:G.oneOfType([G.arrayOf(G.oneOfType([G.func,G.object,G.bool])),G.func,G.object]),titleAccess:G.string,viewBox:G.string}),Vr.muiName="SvgIcon";function dl(e,t){function r(n,o){return a.jsx(Vr,ue({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Vr.muiName,ye.memo(ye.forwardRef(r))}const fl=Ge(Object.freeze(Object.defineProperty({__proto__:null,capitalize:Qe,createChainedFunction:pa,createSvgIcon:dl,debounce:ha,deprecatedPropType:ma,isMuiElement:ya,ownerDocument:_o,ownerWindow:ga,requirePropFactory:xa,setRef:To,unstable_ClassNameGenerator:{configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
89
+ `)),Io.configure(e)}},unstable_useEnhancedEffect:jo,unstable_useId:va,unsupportedProp:Sa,useControlled:wa,useEventCallback:Ca,useForkRef:Ea,useIsFocusVisible:Ia},Symbol.toStringTag,{value:"Module"})));var us;function ne(){return us||(us=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=fl}(cn)),cn}var ls;function pl(){if(ls)return Rt;ls=1;var e=X();Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.default=void 0;var t=e(ne()),r=ee();return Rt.default=(0,t.default)((0,r.jsx)("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M6 9h12v2H6zm8 5H6v-2h8zm4-6H6V6h12z"}),"Chat"),Rt}var hl=pl();const In=Q(hl);var Dt={},ds;function ml(){if(ds)return Dt;ds=1;var e=X();Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.default=void 0;var t=e(ne()),r=ee();return Dt.default=(0,t.default)((0,r.jsx)("path",{d:"M18.3 5.71a.9959.9959 0 0 0-1.41 0L12 10.59 7.11 5.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"}),"CloseRounded"),Dt}var yl=ml();const Pn=Q(yl);var $t={},fs;function gl(){if(fs)return $t;fs=1;var e=X();Object.defineProperty($t,"__esModule",{value:!0}),$t.default=void 0;var t=e(ne()),r=ee();return $t.default=(0,t.default)((0,r.jsx)("path",{d:"m19.46 8 .79-1.75L22 5.46c.39-.18.39-.73 0-.91l-1.75-.79L19.46 2c-.18-.39-.73-.39-.91 0l-.79 1.75-1.76.79c-.39.18-.39.73 0 .91l1.75.79.79 1.76c.18.39.74.39.92 0M11.5 9.5 9.91 6c-.35-.78-1.47-.78-1.82 0L6.5 9.5 3 11.09c-.78.36-.78 1.47 0 1.82l3.5 1.59L8.09 18c.36.78 1.47.78 1.82 0l1.59-3.5 3.5-1.59c.78-.36.78-1.47 0-1.82zm7.04 6.5-.79 1.75-1.75.79c-.39.18-.39.73 0 .91l1.75.79.79 1.76c.18.39.73.39.91 0l.79-1.75 1.76-.79c.39-.18.39-.73 0-.91l-1.75-.79-.79-1.76c-.18-.39-.74-.39-.92 0"}),"AutoAwesomeRounded"),$t}var xl=gl();const ps=Q(xl);var Nt={},hs;function bl(){if(hs)return Nt;hs=1;var e=X();Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.default=void 0;var t=e(ne()),r=ee();return Nt.default=(0,t.default)((0,r.jsx)("path",{d:"M21 8.59V4c0-.55-.45-1-1-1h-4.59c-.89 0-1.34 1.08-.71 1.71l1.59 1.59-10 10-1.59-1.59c-.62-.63-1.7-.19-1.7.7V20c0 .55.45 1 1 1h4.59c.89 0 1.34-1.08.71-1.71L7.71 17.7l10-10 1.59 1.59c.62.63 1.7.19 1.7-.7"}),"OpenInFullRounded"),Nt}var vl=bl();const ms=Q(vl);var zt={},ys;function Sl(){if(ys)return zt;ys=1;var e=X();Object.defineProperty(zt,"__esModule",{value:!0}),zt.default=void 0;var t=e(ne()),r=ee();return zt.default=(0,t.default)((0,r.jsx)("path",{d:"M21.29 4.12 16.7 8.71l1.59 1.59c.63.63.18 1.71-.71 1.71H13c-.55 0-1-.45-1-1v-4.6c0-.89 1.08-1.34 1.71-.71l1.59 1.59 4.59-4.59c.39-.39 1.02-.39 1.41 0 .38.4.38 1.03-.01 1.42M4.12 21.29l4.59-4.59 1.59 1.59c.63.63 1.71.18 1.71-.71V13c0-.55-.45-1-1-1h-4.6c-.89 0-1.34 1.08-.71 1.71l1.59 1.59-4.59 4.59c-.39.39-.39 1.02 0 1.41.4.38 1.03.38 1.42-.01"}),"CloseFullscreenRounded"),zt}var wl=Sl();const gs=Q(wl);var qt={},xs;function Cl(){if(xs)return qt;xs=1;var e=X();Object.defineProperty(qt,"__esModule",{value:!0}),qt.default=void 0;var t=e(ne()),r=ee();return qt.default=(0,t.default)((0,r.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2zM9 9h6c.55 0 1 .45 1 1v8c0 .55-.45 1-1 1H9c-.55 0-1-.45-1-1v-8c0-.55.45-1 1-1m6.5-5-.71-.71c-.18-.18-.44-.29-.7-.29H9.91c-.26 0-.52.11-.7.29L8.5 4H6c-.55 0-1 .45-1 1s.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1z"}),"DeleteOutlineRounded"),qt}var El=Cl();const Rl=Q(El);var Lt={},bs;function _l(){if(bs)return Lt;bs=1;var e=X();Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.default=void 0;var t=e(ne()),r=ee();return Lt.default=(0,t.default)((0,r.jsx)("path",{d:"M15.59 3.59c-.38-.38-.89-.59-1.42-.59H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V9.83c0-.53-.21-1.04-.59-1.41zM8 17c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m6 0V4.5l5.5 5.5H15c-.55 0-1-.45-1-1"}),"SummarizeRounded"),Lt}var Tl=_l();const vs=Q(Tl);var Ut={},Ss;function jl(){if(Ss)return Ut;Ss=1;var e=X();Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.default=void 0;var t=e(ne()),r=ee();return Ut.default=(0,t.default)((0,r.jsx)("path",{d:"M5 13.18v2.81c0 .73.4 1.41 1.04 1.76l5 2.73c.6.33 1.32.33 1.92 0l5-2.73c.64-.35 1.04-1.03 1.04-1.76v-2.81l-6.04 3.3c-.6.33-1.32.33-1.92 0zm6.04-9.66-8.43 4.6c-.69.38-.69 1.38 0 1.76l8.43 4.6c.6.33 1.32.33 1.92 0L21 10.09V16c0 .55.45 1 1 1s1-.45 1-1V9.59c0-.37-.2-.7-.52-.88l-9.52-5.19a2.04 2.04 0 0 0-1.92 0"}),"SchoolRounded"),Ut}var Ol=jl();const Hr=Q(Ol),Fn={chatToggleButton:{position:"fixed",bottom:20,right:20,bgcolor:"#CDDAFF",color:"white",width:60,height:60,borderRadius:"50%",boxShadow:"0px 4px 15px rgba(0, 0, 0, 0.3)","&:hover":{bgcolor:"#0B53C0"},transition:"background-color 0.3s, transform 0.3s","&:active":{transform:"scale(0.95)"}},chatContainer:(e,t,r=!1)=>({position:"fixed",...r?{top:"5%",left:"10%",right:"10%",bottom:"5%",width:"auto",height:"auto"}:{bottom:e?0:20,right:e?0:20,top:"auto",left:"auto",width:e?"80%":t?"60%":650,height:e?"50%":t?"55%":700},padding:0,display:"flex",flexDirection:"column",borderRadius:e&&!r?0:"16px",backgroundColor:"#F0F4FF",boxShadow:"0px 10px 30px rgba(0, 0, 0, 0.2)",zIndex:1300,overflow:"hidden"}),chatHeader:{fontFamily:"Staatliches, Arial, sans-serif",fontWeight:"bold",color:"black",fontSize:"1.25rem"},chatMessageInput:{"& .MuiOutlinedInput-root":{fontFamily:"Gabarito, Arial, sans-serif",borderRadius:"20px","& fieldset":{borderColor:"#ccc"},"&:hover fieldset":{borderColor:"#185cc4"}}},chatMessageBox:{maxWidth:"70%",borderRadius:"15px",padding:1,paddingX:2,boxShadow:"0px 2px 5px rgba(0, 0, 0, 0.1)","&.user":{bgcolor:"#f0f0f0",color:"#555",alignSelf:"flex-end"},"&.bot":{bgcolor:"#CDDAFF",color:"black",alignSelf:"flex-start","&:hover":{bgcolor:"#0B53C0",color:"white"}}},chatButtons:{backgroundColor:"#CDDAFF",color:"black",fontFamily:"Staatliches, sans-serif",fontSize:"1.25rem","&:hover":{backgroundColor:"#0B53C0",color:"white"}}};var Wt={},ws;function Al(){if(ws)return Wt;ws=1;var e=X();Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.default=void 0;var t=e(ne()),r=ee();return Wt.default=(0,t.default)((0,r.jsx)("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3m-2 10H6V7h12zm-9-6c-.83 0-1.5-.67-1.5-1.5S8.17 10 9 10s1.5.67 1.5 1.5S9.83 13 9 13m7.5-1.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5M8 15h8v2H8z"}),"SmartToyOutlined"),Wt}var kl=Al();const ht=Q(kl),Il=()=>a.jsxs(d.Box,{sx:{display:"flex",gap:1,alignItems:"flex-start"},children:[a.jsx(d.Box,{sx:{width:28,height:28,borderRadius:"50%",backgroundColor:"#CDDAFF",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,mt:.5},children:a.jsx(ht,{sx:{fontSize:"1rem",color:"#0B53C0"}})}),a.jsxs(d.Box,{sx:{backgroundColor:"#CDDAFF",borderRadius:"15px",py:1.5,px:2,boxShadow:"0px 2px 5px rgba(0, 0, 0, 0.1)",display:"flex",alignItems:"center",gap:.5},children:[a.jsx(d.Box,{sx:{width:8,height:8,borderRadius:"50%",backgroundColor:"#0B53C0",animation:"bounce 1.4s ease-in-out infinite",animationDelay:"0s","@keyframes bounce":{"0%, 60%, 100%":{transform:"translateY(0)",opacity:.4},"30%":{transform:"translateY(-6px)",opacity:1}}}}),a.jsx(d.Box,{sx:{width:8,height:8,borderRadius:"50%",backgroundColor:"#0B53C0",animation:"bounce 1.4s ease-in-out infinite",animationDelay:"0.2s","@keyframes bounce":{"0%, 60%, 100%":{transform:"translateY(0)",opacity:.4},"30%":{transform:"translateY(-6px)",opacity:1}}}}),a.jsx(d.Box,{sx:{width:8,height:8,borderRadius:"50%",backgroundColor:"#0B53C0",animation:"bounce 1.4s ease-in-out infinite",animationDelay:"0.4s","@keyframes bounce":{"0%, 60%, 100%":{transform:"translateY(0)",opacity:.4},"30%":{transform:"translateY(-6px)",opacity:1}}}})]})]}),Pl=({responses:e,messagesEndRef:t,loading:r})=>a.jsxs(d.Box,{sx:{flexGrow:1,overflowY:"auto",display:"flex",flexDirection:"column",gap:1.5,padding:2,backgroundColor:"#F0F4FF","&::-webkit-scrollbar":{width:"6px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"#CDDAFF",borderRadius:"3px"},"&::-webkit-scrollbar-thumb:hover":{background:"#0B53C0"}},children:[e.length>0?a.jsxs(a.Fragment,{children:[e.map((n,o)=>a.jsxs(d.Box,{sx:{display:"flex",flexDirection:"column",gap:1},children:[n.question&&a.jsx(d.Box,{sx:{display:"flex",justifyContent:"flex-end"},children:a.jsx(d.Box,{sx:{maxWidth:"80%",backgroundColor:"#0B53C0",color:"white",borderRadius:"15px",py:1,px:2,boxShadow:"0px 2px 5px rgba(0, 0, 0, 0.15)"},children:a.jsx(d.Typography,{variant:"body2",sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.9rem",lineHeight:1.5,color:"white"},children:n.question})})}),(n.answer||n.text)&&a.jsxs(d.Box,{sx:{display:"flex",gap:1,alignItems:"flex-start"},children:[a.jsx(d.Box,{sx:{width:28,height:28,borderRadius:"50%",backgroundColor:"#CDDAFF",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,mt:.5},children:a.jsx(ht,{sx:{fontSize:"1rem",color:"#0B53C0"}})}),a.jsx(d.Box,{sx:{maxWidth:"calc(80% - 36px)",backgroundColor:"#CDDAFF",color:"black",borderRadius:"15px",py:1,px:2,boxShadow:"0px 2px 5px rgba(0, 0, 0, 0.1)"},children:a.jsx(d.Typography,{component:"div",variant:"body2",sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.9rem",lineHeight:1.6,"& p":{margin:0,marginBottom:1,"&:last-child":{marginBottom:0}},"& ul, & ol":{margin:0,paddingLeft:2.5},"& li":{marginBottom:.5},"& code":{backgroundColor:"rgba(0, 0, 0, 0.1)",padding:"2px 6px",borderRadius:"4px",fontSize:"0.85em",fontFamily:"monospace"},"& pre":{backgroundColor:"rgba(0, 0, 0, 0.1)",padding:1.5,borderRadius:"8px",overflow:"auto","& code":{backgroundColor:"transparent",padding:0}}},children:a.jsx(sn,{children:n.answer||n.text})})})]})]},o)),r&&a.jsx(Il,{})]}):a.jsxs(d.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",gap:2,color:"#888"},children:[a.jsx(ht,{sx:{fontSize:"3rem",opacity:.5}}),a.jsx(d.Typography,{variant:"body2",sx:{fontFamily:"Gabarito, Arial, sans-serif",textAlign:"center"},children:"Start a conversation to begin learning!"})]}),a.jsx("div",{ref:t})]});var Vt={},Cs;function Fl(){if(Cs)return Vt;Cs=1;var e=X();Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.default=void 0;var t=e(ne()),r=ee();return Vt.default=(0,t.default)((0,r.jsx)("path",{d:"m3.4 20.4 17.45-7.48c.81-.35.81-1.49 0-1.84L3.4 3.6c-.66-.29-1.39.2-1.39.91L2 9.12c0 .5.37.93.87.99L17 12 2.87 13.88c-.5.07-.87.5-.87 1l.01 4.61c0 .71.73 1.2 1.39.91"}),"SendRounded"),Vt}var Bl=Fl();const Es=Q(Bl),Ml=({onSendMessage:e,onStartConversation:t,onEndConversation:r,conversationId:n})=>{const[o,s]=F.useState(""),i=()=>{o.trim()&&(e(o),s(""))};return a.jsx(d.Box,{sx:{p:2,backgroundColor:"#F0F4FF",borderTop:"1px solid #CDDAFF"},children:a.jsxs(d.Box,{sx:{display:"flex",gap:1,alignItems:"center",backgroundColor:"white",borderRadius:"20px",padding:"4px 4px 4px 16px",border:"1px solid #ccc","&:focus-within":{borderColor:"#185cc4"}},children:[a.jsx(d.TextField,{variant:"standard",placeholder:"Type a message...",fullWidth:!0,size:"small",value:o,onChange:u=>s(u.target.value),onKeyDown:u=>{u.key==="Enter"&&!u.shiftKey&&(u.preventDefault(),i())},InputProps:{disableUnderline:!0},sx:{"& .MuiInputBase-input":{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.9rem",padding:"8px 0","&::placeholder":{color:"#888",opacity:1}}}}),a.jsx(d.IconButton,{onClick:i,disabled:!o.trim(),sx:{width:40,height:40,backgroundColor:o.trim()?"#CDDAFF":"#e0e0e0",color:o.trim()?"#0B53C0":"#888",borderRadius:"50%","&:hover":{backgroundColor:o.trim()?"#0B53C0":"#e0e0e0",color:o.trim()?"white":"#888"},"&:disabled":{color:"#888"}},children:a.jsx(Es,{sx:{fontSize:"1.2rem"}})})]})})};var Ht={},Rs;function Dl(){if(Rs)return Ht;Rs=1;var e=X();Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.default=void 0;var t=e(ne()),r=ee();return Ht.default=(0,t.default)((0,r.jsx)("path",{d:"M19 6.41 17.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"}),"Close"),Ht}var $l=Dl();const Nl=Q($l);function _s(e,t){return function(){return e.apply(t,arguments)}}const{toString:zl}=Object.prototype,{getPrototypeOf:Bn}=Object,Yr=(e=>t=>{const r=zl.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ue=e=>(e=e.toLowerCase(),t=>Yr(t)===e),Gr=e=>t=>typeof t===e,{isArray:mt}=Array,Yt=Gr("undefined");function ql(e){return e!==null&&!Yt(e)&&e.constructor!==null&&!Yt(e.constructor)&&De(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ts=Ue("ArrayBuffer");function Ll(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ts(e.buffer),t}const Ul=Gr("string"),De=Gr("function"),js=Gr("number"),Kr=e=>e!==null&&typeof e=="object",Wl=e=>e===!0||e===!1,Jr=e=>{if(Yr(e)!=="object")return!1;const t=Bn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Vl=Ue("Date"),Hl=Ue("File"),Yl=Ue("Blob"),Gl=Ue("FileList"),Kl=e=>Kr(e)&&De(e.pipe),Jl=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||De(e.append)&&((t=Yr(e))==="formdata"||t==="object"&&De(e.toString)&&e.toString()==="[object FormData]"))},Ql=Ue("URLSearchParams"),[Xl,Zl,ed,td]=["ReadableStream","Request","Response","Headers"].map(Ue),rd=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Gt(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),mt(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const s=r?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let u;for(n=0;n<i;n++)u=s[n],t.call(null,e[u],u,e)}}function Os(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const tt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,As=e=>!Yt(e)&&e!==tt;function Mn(){const{caseless:e}=As(this)&&this||{},t={},r=(n,o)=>{const s=e&&Os(t,o)||o;Jr(t[s])&&Jr(n)?t[s]=Mn(t[s],n):Jr(n)?t[s]=Mn({},n):mt(n)?t[s]=n.slice():t[s]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Gt(arguments[n],r);return t}const nd=(e,t,r,{allOwnKeys:n}={})=>(Gt(t,(o,s)=>{r&&De(o)?e[s]=_s(o,r):e[s]=o},{allOwnKeys:n}),e),od=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),sd=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},id=(e,t,r,n)=>{let o,s,i;const u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!n||n(i,e,t))&&!u[i]&&(t[i]=e[i],u[i]=!0);e=r!==!1&&Bn(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},ad=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},cd=e=>{if(!e)return null;if(mt(e))return e;let t=e.length;if(!js(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},ud=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Bn(Uint8Array)),ld=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},dd=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},fd=Ue("HTMLFormElement"),pd=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),ks=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),hd=Ue("RegExp"),Is=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Gt(r,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(n[s]=i||o)}),Object.defineProperties(e,n)},md=e=>{Is(e,(t,r)=>{if(De(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(De(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},yd=(e,t)=>{const r={},n=o=>{o.forEach(s=>{r[s]=!0})};return mt(e)?n(e):n(String(e).split(t)),r},gd=()=>{},xd=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Dn="abcdefghijklmnopqrstuvwxyz",Ps="0123456789",Fs={DIGIT:Ps,ALPHA:Dn,ALPHA_DIGIT:Dn+Dn.toUpperCase()+Ps},bd=(e=16,t=Fs.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function vd(e){return!!(e&&De(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Sd=e=>{const t=new Array(10),r=(n,o)=>{if(Kr(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const s=mt(n)?[]:{};return Gt(n,(i,u)=>{const h=r(i,o+1);!Yt(h)&&(s[u]=h)}),t[o]=void 0,s}}return n};return r(e,0)},wd=Ue("AsyncFunction"),Cd=e=>e&&(Kr(e)||De(e))&&De(e.then)&&De(e.catch),Bs=((e,t)=>e?setImmediate:t?((r,n)=>(tt.addEventListener("message",({source:o,data:s})=>{o===tt&&s===r&&n.length&&n.shift()()},!1),o=>{n.push(o),tt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",De(tt.postMessage)),Ed=typeof queueMicrotask<"u"?queueMicrotask.bind(tt):typeof process<"u"&&process.nextTick||Bs,w={isArray:mt,isArrayBuffer:Ts,isBuffer:ql,isFormData:Jl,isArrayBufferView:Ll,isString:Ul,isNumber:js,isBoolean:Wl,isObject:Kr,isPlainObject:Jr,isReadableStream:Xl,isRequest:Zl,isResponse:ed,isHeaders:td,isUndefined:Yt,isDate:Vl,isFile:Hl,isBlob:Yl,isRegExp:hd,isFunction:De,isStream:Kl,isURLSearchParams:Ql,isTypedArray:ud,isFileList:Gl,forEach:Gt,merge:Mn,extend:nd,trim:rd,stripBOM:od,inherits:sd,toFlatObject:id,kindOf:Yr,kindOfTest:Ue,endsWith:ad,toArray:cd,forEachEntry:ld,matchAll:dd,isHTMLForm:fd,hasOwnProperty:ks,hasOwnProp:ks,reduceDescriptors:Is,freezeMethods:md,toObjectSet:yd,toCamelCase:pd,noop:gd,toFiniteNumber:xd,findKey:Os,global:tt,isContextDefined:As,ALPHABET:Fs,generateString:bd,isSpecCompliantForm:vd,toJSONObject:Sd,isAsyncFn:wd,isThenable:Cd,setImmediate:Bs,asap:Ed};function H(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}w.inherits(H,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.status}}});const Ms=H.prototype,Ds={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ds[e]={value:e}}),Object.defineProperties(H,Ds),Object.defineProperty(Ms,"isAxiosError",{value:!0}),H.from=(e,t,r,n,o,s)=>{const i=Object.create(Ms);return w.toFlatObject(e,i,function(h){return h!==Error.prototype},u=>u!=="isAxiosError"),H.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const Rd=null;function $n(e){return w.isPlainObject(e)||w.isArray(e)}function $s(e){return w.endsWith(e,"[]")?e.slice(0,-2):e}function Ns(e,t,r){return e?e.concat(t).map(function(o,s){return o=$s(o),!r&&s?"["+o+"]":o}).join(r?".":""):t}function _d(e){return w.isArray(e)&&!e.some($n)}const Td=w.toFlatObject(w,{},null,function(t){return/^is[A-Z]/.test(t)});function Qr(e,t,r){if(!w.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=w.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,x){return!w.isUndefined(x[c])});const n=r.metaTokens,o=r.visitor||f,s=r.dots,i=r.indexes,h=(r.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(t);if(!w.isFunction(o))throw new TypeError("visitor must be a function");function l(b){if(b===null)return"";if(w.isDate(b))return b.toISOString();if(!h&&w.isBlob(b))throw new H("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(b)||w.isTypedArray(b)?h&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function f(b,c,x){let v=b;if(b&&!x&&typeof b=="object"){if(w.endsWith(c,"{}"))c=n?c:c.slice(0,-2),b=JSON.stringify(b);else if(w.isArray(b)&&_d(b)||(w.isFileList(b)||w.endsWith(c,"[]"))&&(v=w.toArray(b)))return c=$s(c),v.forEach(function(T,D){!(w.isUndefined(T)||T===null)&&t.append(i===!0?Ns([c],D,s):i===null?c:c+"[]",l(T))}),!1}return $n(b)?!0:(t.append(Ns(x,c,s),l(b)),!1)}const p=[],g=Object.assign(Td,{defaultVisitor:f,convertValue:l,isVisitable:$n});function S(b,c){if(!w.isUndefined(b)){if(p.indexOf(b)!==-1)throw Error("Circular reference detected in "+c.join("."));p.push(b),w.forEach(b,function(v,j){(!(w.isUndefined(v)||v===null)&&o.call(t,v,w.isString(j)?j.trim():j,c,g))===!0&&S(v,c?c.concat(j):[j])}),p.pop()}}if(!w.isObject(e))throw new TypeError("data must be an object");return S(e),t}function zs(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Nn(e,t){this._pairs=[],e&&Qr(e,this,t)}const qs=Nn.prototype;qs.append=function(t,r){this._pairs.push([t,r])},qs.toString=function(t){const r=t?function(n){return t.call(this,n,zs)}:zs;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function jd(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ls(e,t,r){if(!t)return e;const n=r&&r.encode||jd;w.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let s;if(o?s=o(t,r):s=w.isURLSearchParams(t)?t.toString():new Nn(t,r).toString(n),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Us{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){w.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Ws={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Od={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Nn,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},zn=typeof window<"u"&&typeof document<"u",qn=typeof navigator=="object"&&navigator||void 0,Ad=zn&&(!qn||["ReactNative","NativeScript","NS"].indexOf(qn.product)<0),kd=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Id=zn&&window.location.href||"http://localhost",ke={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:zn,hasStandardBrowserEnv:Ad,hasStandardBrowserWebWorkerEnv:kd,navigator:qn,origin:Id},Symbol.toStringTag,{value:"Module"})),...Od};function Pd(e,t){return Qr(e,new ke.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,s){return ke.isNode&&w.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Fd(e){return w.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Bd(e){const t={},r=Object.keys(e);let n;const o=r.length;let s;for(n=0;n<o;n++)s=r[n],t[s]=e[s];return t}function Vs(e){function t(r,n,o,s){let i=r[s++];if(i==="__proto__")return!0;const u=Number.isFinite(+i),h=s>=r.length;return i=!i&&w.isArray(o)?o.length:i,h?(w.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!u):((!o[i]||!w.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],s)&&w.isArray(o[i])&&(o[i]=Bd(o[i])),!u)}if(w.isFormData(e)&&w.isFunction(e.entries)){const r={};return w.forEachEntry(e,(n,o)=>{t(Fd(n),o,r,0)}),r}return null}function Md(e,t,r){if(w.isString(e))try{return(t||JSON.parse)(e),w.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const Kt={transitional:Ws,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,s=w.isObject(t);if(s&&w.isHTMLForm(t)&&(t=new FormData(t)),w.isFormData(t))return o?JSON.stringify(Vs(t)):t;if(w.isArrayBuffer(t)||w.isBuffer(t)||w.isStream(t)||w.isFile(t)||w.isBlob(t)||w.isReadableStream(t))return t;if(w.isArrayBufferView(t))return t.buffer;if(w.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Pd(t,this.formSerializer).toString();if((u=w.isFileList(t))||n.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return Qr(u?{"files[]":t}:t,h&&new h,this.formSerializer)}}return s||o?(r.setContentType("application/json",!1),Md(t)):t}],transformResponse:[function(t){const r=this.transitional||Kt.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(w.isResponse(t)||w.isReadableStream(t))return t;if(t&&w.isString(t)&&(n&&!this.responseType||o)){const i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(u){if(i)throw u.name==="SyntaxError"?H.from(u,H.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ke.classes.FormData,Blob:ke.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],e=>{Kt.headers[e]={}});const Dd=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),$d=e=>{const t={};let r,n,o;return e&&e.split(`
90
+ `).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&Dd[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Hs=Symbol("internals");function Jt(e){return e&&String(e).trim().toLowerCase()}function Xr(e){return e===!1||e==null?e:w.isArray(e)?e.map(Xr):String(e)}function Nd(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const zd=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ln(e,t,r,n,o){if(w.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!w.isString(t)){if(w.isString(n))return t.indexOf(n)!==-1;if(w.isRegExp(n))return n.test(t)}}function qd(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Ld(e,t){const r=w.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,s,i){return this[n].call(this,t,o,s,i)},configurable:!0})})}class Fe{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function s(u,h,l){const f=Jt(h);if(!f)throw new Error("header name must be a non-empty string");const p=w.findKey(o,f);(!p||o[p]===void 0||l===!0||l===void 0&&o[p]!==!1)&&(o[p||h]=Xr(u))}const i=(u,h)=>w.forEach(u,(l,f)=>s(l,f,h));if(w.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(w.isString(t)&&(t=t.trim())&&!zd(t))i($d(t),r);else if(w.isHeaders(t))for(const[u,h]of t.entries())s(h,u,n);else t!=null&&s(r,t,n);return this}get(t,r){if(t=Jt(t),t){const n=w.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return Nd(o);if(w.isFunction(r))return r.call(this,o,n);if(w.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Jt(t),t){const n=w.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Ln(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function s(i){if(i=Jt(i),i){const u=w.findKey(n,i);u&&(!r||Ln(n,n[u],u,r))&&(delete n[u],o=!0)}}return w.isArray(t)?t.forEach(s):s(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const s=r[n];(!t||Ln(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const r=this,n={};return w.forEach(this,(o,s)=>{const i=w.findKey(n,s);if(i){r[i]=Xr(o),delete r[s];return}const u=t?qd(s):String(s).trim();u!==s&&delete r[s],r[u]=Xr(o),n[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return w.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&w.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
91
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Hs]=this[Hs]={accessors:{}}).accessors,o=this.prototype;function s(i){const u=Jt(i);n[u]||(Ld(o,i),n[u]=!0)}return w.isArray(t)?t.forEach(s):s(t),this}}Fe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),w.reduceDescriptors(Fe.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),w.freezeMethods(Fe);function Un(e,t){const r=this||Kt,n=t||r,o=Fe.from(n.headers);let s=n.data;return w.forEach(e,function(u){s=u.call(r,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Ys(e){return!!(e&&e.__CANCEL__)}function yt(e,t,r){H.call(this,e??"canceled",H.ERR_CANCELED,t,r),this.name="CanceledError"}w.inherits(yt,H,{__CANCEL__:!0});function Gs(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new H("Request failed with status code "+r.status,[H.ERR_BAD_REQUEST,H.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Ud(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Wd(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(h){const l=Date.now(),f=n[s];i||(i=l),r[o]=h,n[o]=l;let p=s,g=0;for(;p!==o;)g+=r[p++],p=p%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-i<t)return;const S=f&&l-f;return S?Math.round(g*1e3/S):void 0}}function Vd(e,t){let r=0,n=1e3/t,o,s;const i=(l,f=Date.now())=>{r=f,o=null,s&&(clearTimeout(s),s=null),e.apply(null,l)};return[(...l)=>{const f=Date.now(),p=f-r;p>=n?i(l,f):(o=l,s||(s=setTimeout(()=>{s=null,i(o)},n-p)))},()=>o&&i(o)]}const Zr=(e,t,r=3)=>{let n=0;const o=Wd(50,250);return Vd(s=>{const i=s.loaded,u=s.lengthComputable?s.total:void 0,h=i-n,l=o(h),f=i<=u;n=i;const p={loaded:i,total:u,progress:u?i/u:void 0,bytes:h,rate:l||void 0,estimated:l&&u&&f?(u-i)/l:void 0,event:s,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(p)},r)},Ks=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Js=e=>(...t)=>w.asap(()=>e(...t)),Hd=ke.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ke.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ke.origin),ke.navigator&&/(msie|trident)/i.test(ke.navigator.userAgent)):()=>!0,Yd=ke.hasStandardBrowserEnv?{write(e,t,r,n,o,s){const i=[e+"="+encodeURIComponent(t)];w.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),w.isString(n)&&i.push("path="+n),w.isString(o)&&i.push("domain="+o),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Gd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Kd(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Qs(e,t){return e&&!Gd(t)?Kd(e,t):t}const Xs=e=>e instanceof Fe?{...e}:e;function rt(e,t){t=t||{};const r={};function n(l,f,p,g){return w.isPlainObject(l)&&w.isPlainObject(f)?w.merge.call({caseless:g},l,f):w.isPlainObject(f)?w.merge({},f):w.isArray(f)?f.slice():f}function o(l,f,p,g){if(w.isUndefined(f)){if(!w.isUndefined(l))return n(void 0,l,p,g)}else return n(l,f,p,g)}function s(l,f){if(!w.isUndefined(f))return n(void 0,f)}function i(l,f){if(w.isUndefined(f)){if(!w.isUndefined(l))return n(void 0,l)}else return n(void 0,f)}function u(l,f,p){if(p in t)return n(l,f);if(p in e)return n(void 0,l)}const h={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:u,headers:(l,f,p)=>o(Xs(l),Xs(f),p,!0)};return w.forEach(Object.keys(Object.assign({},e,t)),function(f){const p=h[f]||o,g=p(e[f],t[f],f);w.isUndefined(g)&&p!==u||(r[f]=g)}),r}const Zs=e=>{const t=rt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:u}=t;t.headers=i=Fe.from(i),t.url=Ls(Qs(t.baseURL,t.url),e.params,e.paramsSerializer),u&&i.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let h;if(w.isFormData(r)){if(ke.hasStandardBrowserEnv||ke.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((h=i.getContentType())!==!1){const[l,...f]=h?h.split(";").map(p=>p.trim()).filter(Boolean):[];i.setContentType([l||"multipart/form-data",...f].join("; "))}}if(ke.hasStandardBrowserEnv&&(n&&w.isFunction(n)&&(n=n(t)),n||n!==!1&&Hd(t.url))){const l=o&&s&&Yd.read(s);l&&i.set(o,l)}return t},Jd=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=Zs(e);let s=o.data;const i=Fe.from(o.headers).normalize();let{responseType:u,onUploadProgress:h,onDownloadProgress:l}=o,f,p,g,S,b;function c(){S&&S(),b&&b(),o.cancelToken&&o.cancelToken.unsubscribe(f),o.signal&&o.signal.removeEventListener("abort",f)}let x=new XMLHttpRequest;x.open(o.method.toUpperCase(),o.url,!0),x.timeout=o.timeout;function v(){if(!x)return;const T=Fe.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),C={data:!u||u==="text"||u==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:T,config:e,request:x};Gs(function(m){r(m),c()},function(m){n(m),c()},C),x=null}"onloadend"in x?x.onloadend=v:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(v)},x.onabort=function(){x&&(n(new H("Request aborted",H.ECONNABORTED,e,x)),x=null)},x.onerror=function(){n(new H("Network Error",H.ERR_NETWORK,e,x)),x=null},x.ontimeout=function(){let D=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const C=o.transitional||Ws;o.timeoutErrorMessage&&(D=o.timeoutErrorMessage),n(new H(D,C.clarifyTimeoutError?H.ETIMEDOUT:H.ECONNABORTED,e,x)),x=null},s===void 0&&i.setContentType(null),"setRequestHeader"in x&&w.forEach(i.toJSON(),function(D,C){x.setRequestHeader(C,D)}),w.isUndefined(o.withCredentials)||(x.withCredentials=!!o.withCredentials),u&&u!=="json"&&(x.responseType=o.responseType),l&&([g,b]=Zr(l,!0),x.addEventListener("progress",g)),h&&x.upload&&([p,S]=Zr(h),x.upload.addEventListener("progress",p),x.upload.addEventListener("loadend",S)),(o.cancelToken||o.signal)&&(f=T=>{x&&(n(!T||T.type?new yt(null,e,x):T),x.abort(),x=null)},o.cancelToken&&o.cancelToken.subscribe(f),o.signal&&(o.signal.aborted?f():o.signal.addEventListener("abort",f)));const j=Ud(o.url);if(j&&ke.protocols.indexOf(j)===-1){n(new H("Unsupported protocol "+j+":",H.ERR_BAD_REQUEST,e));return}x.send(s||null)})},Qd=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const s=function(l){if(!o){o=!0,u();const f=l instanceof Error?l:this.reason;n.abort(f instanceof H?f:new yt(f instanceof Error?f.message:f))}};let i=t&&setTimeout(()=>{i=null,s(new H(`timeout ${t} of ms exceeded`,H.ETIMEDOUT))},t);const u=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(s):l.removeEventListener("abort",s)}),e=null)};e.forEach(l=>l.addEventListener("abort",s));const{signal:h}=n;return h.unsubscribe=()=>w.asap(u),h}},Xd=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},Zd=async function*(e,t){for await(const r of ef(e))yield*Xd(r,t)},ef=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},ei=(e,t,r,n)=>{const o=Zd(e,t);let s=0,i,u=h=>{i||(i=!0,n&&n(h))};return new ReadableStream({async pull(h){try{const{done:l,value:f}=await o.next();if(l){u(),h.close();return}let p=f.byteLength;if(r){let g=s+=p;r(g)}h.enqueue(new Uint8Array(f))}catch(l){throw u(l),l}},cancel(h){return u(h),o.return()}},{highWaterMark:2})},en=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ti=en&&typeof ReadableStream=="function",tf=en&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ri=(e,...t)=>{try{return!!e(...t)}catch{return!1}},rf=ti&&ri(()=>{let e=!1;const t=new Request(ke.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),ni=64*1024,Wn=ti&&ri(()=>w.isReadableStream(new Response("").body)),tn={stream:Wn&&(e=>e.body)};en&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!tn[t]&&(tn[t]=w.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new H(`Response type '${t}' is not supported`,H.ERR_NOT_SUPPORT,n)})})})(new Response);const nf=async e=>{if(e==null)return 0;if(w.isBlob(e))return e.size;if(w.isSpecCompliantForm(e))return(await new Request(ke.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(w.isArrayBufferView(e)||w.isArrayBuffer(e))return e.byteLength;if(w.isURLSearchParams(e)&&(e=e+""),w.isString(e))return(await tf(e)).byteLength},of=async(e,t)=>{const r=w.toFiniteNumber(e.getContentLength());return r??nf(t)},Vn={http:Rd,xhr:Jd,fetch:en&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:s,timeout:i,onDownloadProgress:u,onUploadProgress:h,responseType:l,headers:f,withCredentials:p="same-origin",fetchOptions:g}=Zs(e);l=l?(l+"").toLowerCase():"text";let S=Qd([o,s&&s.toAbortSignal()],i),b;const c=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let x;try{if(h&&rf&&r!=="get"&&r!=="head"&&(x=await of(f,n))!==0){let C=new Request(t,{method:"POST",body:n,duplex:"half"}),Y;if(w.isFormData(n)&&(Y=C.headers.get("content-type"))&&f.setContentType(Y),C.body){const[m,_]=Ks(x,Zr(Js(h)));n=ei(C.body,ni,m,_)}}w.isString(p)||(p=p?"include":"omit");const v="credentials"in Request.prototype;b=new Request(t,{...g,signal:S,method:r.toUpperCase(),headers:f.normalize().toJSON(),body:n,duplex:"half",credentials:v?p:void 0});let j=await fetch(b);const T=Wn&&(l==="stream"||l==="response");if(Wn&&(u||T&&c)){const C={};["status","statusText","headers"].forEach(E=>{C[E]=j[E]});const Y=w.toFiniteNumber(j.headers.get("content-length")),[m,_]=u&&Ks(Y,Zr(Js(u),!0))||[];j=new Response(ei(j.body,ni,m,()=>{_&&_(),c&&c()}),C)}l=l||"text";let D=await tn[w.findKey(tn,l)||"text"](j,e);return!T&&c&&c(),await new Promise((C,Y)=>{Gs(C,Y,{data:D,headers:Fe.from(j.headers),status:j.status,statusText:j.statusText,config:e,request:b})})}catch(v){throw c&&c(),v&&v.name==="TypeError"&&/fetch/i.test(v.message)?Object.assign(new H("Network Error",H.ERR_NETWORK,e,b),{cause:v.cause||v}):H.from(v,v&&v.code,e,b)}})};w.forEach(Vn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const oi=e=>`- ${e}`,sf=e=>w.isFunction(e)||e===null||e===!1,si={getAdapter:e=>{e=w.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let s=0;s<t;s++){r=e[s];let i;if(n=r,!sf(r)&&(n=Vn[(i=String(r)).toLowerCase()],n===void 0))throw new H(`Unknown adapter '${i}'`);if(n)break;o[i||"#"+s]=n}if(!n){const s=Object.entries(o).map(([u,h])=>`adapter ${u} `+(h===!1?"is not supported by the environment":"is not available in the build"));let i=t?s.length>1?`since :
92
+ `+s.map(oi).join(`
93
+ `):" "+oi(s[0]):"as no adapter specified";throw new H("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:Vn};function Hn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new yt(null,e)}function ii(e){return Hn(e),e.headers=Fe.from(e.headers),e.data=Un.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),si.getAdapter(e.adapter||Kt.adapter)(e).then(function(n){return Hn(e),n.data=Un.call(e,e.transformResponse,n),n.headers=Fe.from(n.headers),n},function(n){return Ys(n)||(Hn(e),n&&n.response&&(n.response.data=Un.call(e,e.transformResponse,n.response),n.response.headers=Fe.from(n.response.headers))),Promise.reject(n)})}const ai="1.7.9",rn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{rn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ci={};rn.transitional=function(t,r,n){function o(s,i){return"[Axios v"+ai+"] Transitional option '"+s+"'"+i+(n?". "+n:"")}return(s,i,u)=>{if(t===!1)throw new H(o(i," has been removed"+(r?" in "+r:"")),H.ERR_DEPRECATED);return r&&!ci[i]&&(ci[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,i,u):!0}},rn.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function af(e,t,r){if(typeof e!="object")throw new H("options must be an object",H.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const s=n[o],i=t[s];if(i){const u=e[s],h=u===void 0||i(u,s,e);if(h!==!0)throw new H("option "+s+" must be "+h,H.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new H("Unknown option "+s,H.ERR_BAD_OPTION)}}const nn={assertOptions:af,validators:rn},Ye=nn.validators;class nt{constructor(t){this.defaults=t,this.interceptors={request:new Us,response:new Us}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
94
+ `+s):n.stack=s}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=rt(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:s}=r;n!==void 0&&nn.assertOptions(n,{silentJSONParsing:Ye.transitional(Ye.boolean),forcedJSONParsing:Ye.transitional(Ye.boolean),clarifyTimeoutError:Ye.transitional(Ye.boolean)},!1),o!=null&&(w.isFunction(o)?r.paramsSerializer={serialize:o}:nn.assertOptions(o,{encode:Ye.function,serialize:Ye.function},!0)),nn.assertOptions(r,{baseUrl:Ye.spelling("baseURL"),withXsrfToken:Ye.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=s&&w.merge(s.common,s[r.method]);s&&w.forEach(["delete","get","head","post","put","patch","common"],b=>{delete s[b]}),r.headers=Fe.concat(i,s);const u=[];let h=!0;this.interceptors.request.forEach(function(c){typeof c.runWhen=="function"&&c.runWhen(r)===!1||(h=h&&c.synchronous,u.unshift(c.fulfilled,c.rejected))});const l=[];this.interceptors.response.forEach(function(c){l.push(c.fulfilled,c.rejected)});let f,p=0,g;if(!h){const b=[ii.bind(this),void 0];for(b.unshift.apply(b,u),b.push.apply(b,l),g=b.length,f=Promise.resolve(r);p<g;)f=f.then(b[p++],b[p++]);return f}g=u.length;let S=r;for(p=0;p<g;){const b=u[p++],c=u[p++];try{S=b(S)}catch(x){c.call(this,x);break}}try{f=ii.call(this,S)}catch(b){return Promise.reject(b)}for(p=0,g=l.length;p<g;)f=f.then(l[p++],l[p++]);return f}getUri(t){t=rt(this.defaults,t);const r=Qs(t.baseURL,t.url);return Ls(r,t.params,t.paramsSerializer)}}w.forEach(["delete","get","head","options"],function(t){nt.prototype[t]=function(r,n){return this.request(rt(n||{},{method:t,url:r,data:(n||{}).data}))}}),w.forEach(["post","put","patch"],function(t){function r(n){return function(s,i,u){return this.request(rt(u||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}nt.prototype[t]=r(),nt.prototype[t+"Form"]=r(!0)});class Yn{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const n=this;this.promise.then(o=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](o);n._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(u=>{n.subscribe(u),s=u}).then(o);return i.cancel=function(){n.unsubscribe(s)},i},t(function(s,i,u){n.reason||(n.reason=new yt(s,i,u),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Yn(function(o){t=o}),cancel:t}}}function cf(e){return function(r){return e.apply(null,r)}}function uf(e){return w.isObject(e)&&e.isAxiosError===!0}const Gn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Gn).forEach(([e,t])=>{Gn[t]=e});function ui(e){const t=new nt(e),r=_s(nt.prototype.request,t);return w.extend(r,nt.prototype,t,{allOwnKeys:!0}),w.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return ui(rt(e,o))},r}const ce=ui(Kt);ce.Axios=nt,ce.CanceledError=yt,ce.CancelToken=Yn,ce.isCancel=Ys,ce.VERSION=ai,ce.toFormData=Qr,ce.AxiosError=H,ce.Cancel=ce.CanceledError,ce.all=function(t){return Promise.all(t)},ce.spread=cf,ce.isAxiosError=uf,ce.mergeConfig=rt,ce.AxiosHeaders=Fe,ce.formToJSON=e=>Vs(w.isHTMLForm(e)?new FormData(e):e),ce.getAdapter=si.getAdapter,ce.HttpStatusCode=Gn,ce.default=ce;const li=async e=>{const t=new FormData;t.append("chatbot_id",e);try{const r=await ce.post("https://rag-flask-api.onrender.com/start_conversation",t,{headers:{"Content-Type":"multipart/form-data"}}),{conversation_id:n,intro_message:o}=r.data;if(!n)throw new Error("Failed to retrieve conversation ID from server.");return{conversationId:n,introMessage:o}}catch(r){throw console.error("Error starting conversation:",r),r}},lf=async(e,t,r)=>{const n=new FormData;n.append("chatbot_id",e),n.append("conversation_id",t),n.append("question",r);try{return(await ce.post("https://rag-flask-api.onrender.com/ask",n,{headers:{"Content-Type":"multipart/form-data"}})).data}catch(o){throw console.error("Error sending message:",o),o}},di=async(e,t)=>{const r=new FormData;r.append("chatbot_id",e),r.append("conversation_id",t);try{await ce.post("https://rag-flask-api.onrender.com/end_conversation",r,{headers:{"Content-Type":"multipart/form-data"}})}catch(n){throw console.error("Error ending conversation:",n),n}},df=async e=>{try{const t=await ce.get(`https://rag-flask-api.onrender.com/summary/${e}`);if(t.status===200&&t.data.summary)return t.data.summary;throw new Error("Summary not found for this chatbot.")}catch(t){throw console.error("Error fetching summary:",t),t}},ff=async(e,t,r,n=[])=>{try{const o=await ce.post("https://rag-flask-api.onrender.com/generate_guided_questions",{chatbot_id:e,current_question:t,current_answer:r,conversation_history:n},{headers:{"Content-Type":"application/json"}});if(o.data.success&&o.data.guided_questions)return o.data.guided_questions;throw new Error(o.data.error||"Failed to generate guided questions.")}catch(o){throw console.error("Error generating guided questions:",o),o}},fi=({chatbotId:e,open:t,onClose:r})=>{const[n,o]=F.useState(null),[s,i]=F.useState(!1),[u,h]=F.useState(null),l=async()=>{var f,p;i(!0),h(null),o(null);try{const g=await df(e);o(g)}catch(g){((f=g==null?void 0:g.response)==null?void 0:f.status)===404||(p=g.message)!=null&&p.includes("not found")?(o(null),h("no_summary")):h(g.message||"Failed to fetch summary. Please try again.")}finally{i(!1)}};return F.useEffect(()=>{t&&l()},[t]),a.jsx(d.Modal,{open:t,onClose:r,"aria-labelledby":"summary-modal-title","aria-describedby":"summary-modal-description",children:a.jsxs(d.Box,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"80%",maxWidth:600,bgcolor:"background.paper",borderRadius:4,boxShadow:24,p:4},children:[a.jsxs(d.Box,{sx:{display:"flex",justifyContent:"space-between",mb:2},children:[a.jsx(d.Typography,{id:"summary-modal-title",variant:"h6",component:"h2",children:"Document Summary"}),a.jsx(d.IconButton,{onClick:r,children:a.jsx(Nl,{})})]}),s?a.jsx(d.Box,{sx:{display:"flex",justifyContent:"center",my:4},children:a.jsx(d.CircularProgress,{})}):u==="no_summary"?a.jsx(d.Typography,{sx:{color:"#666",textAlign:"center",my:3},children:"No summary available for this document yet."}):u?a.jsx(d.Typography,{color:"error",children:u}):a.jsx(d.Box,{sx:{maxHeight:300,overflowY:"auto",padding:2,border:"1px solid #ddd",borderRadius:2,backgroundColor:"#f9f9f9"},children:a.jsx(sn,{children:n})}),a.jsx(d.Button,{variant:"contained",sx:{mt:2},onClick:r,fullWidth:!0,children:"Close"})]})})};var Qt={},pi;function pf(){if(pi)return Qt;pi=1;var e=X();Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.default=void 0;var t=e(ne()),r=ee();return Qt.default=(0,t.default)((0,r.jsx)("path",{d:"M8.12 9.29 12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7a.9959.9959 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0"}),"KeyboardArrowDownRounded"),Qt}var hf=pf();const hi=Q(hf);var Xt={},mi;function mf(){if(mi)return Xt;mi=1;var e=X();Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.default=void 0;var t=e(ne()),r=ee();return Xt.default=(0,t.default)((0,r.jsx)("path",{d:"M8.12 14.71 12 10.83l3.88 3.88c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L12.7 8.71a.9959.9959 0 0 0-1.41 0L6.7 13.3c-.39.39-.39 1.02 0 1.41.39.38 1.03.39 1.42 0"}),"KeyboardArrowUpRounded"),Xt}var yf=mf();const yi=Q(yf),gf=({questions:e,loading:t,onQuestionClick:r})=>{const[n,o]=F.useState(!1),[s,i]=F.useState(!1);if(t)return a.jsxs(d.Box,{sx:{display:"flex",alignItems:"center",gap:1,py:1,px:2,mx:2,mb:1},children:[a.jsx(ps,{sx:{fontSize:"0.9rem",color:"#0B53C0",animation:"spin 2s linear infinite","@keyframes spin":{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}}}),a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",color:"#0B53C0",fontSize:"0.8rem",fontWeight:500},children:"Thinking of follow-up questions..."})]});if(!e||e.length===0)return null;const u=e[0],h=e.slice(1),l=h.length>0;return a.jsxs(d.Box,{sx:{px:2,pb:1,pt:.5},children:[a.jsxs(d.Box,{onClick:()=>o(!n),sx:{display:"flex",alignItems:"center",justifyContent:"space-between",backgroundColor:"#CDDAFF",borderRadius:"10px",py:.75,px:1.25,cursor:"pointer","&:hover":{backgroundColor:"#b8c9f7"}},children:[a.jsxs(d.Box,{sx:{display:"flex",alignItems:"center",gap:.5},children:[a.jsx(ps,{sx:{fontSize:"0.9rem",color:"#0B53C0"}}),a.jsxs(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",color:"#0B53C0",fontSize:"0.8rem",fontWeight:600},children:["Suggested follow-ups (",e.length,")"]})]}),a.jsx(d.Box,{sx:{display:"flex",alignItems:"center",color:"#0B53C0"},children:n?a.jsx(yi,{sx:{fontSize:"1.2rem"}}):a.jsx(hi,{sx:{fontSize:"1.2rem"}})})]}),n&&a.jsxs(d.Box,{sx:{mt:1,display:"flex",flexDirection:"column",gap:.75},children:[a.jsx(d.Box,{onClick:()=>r(u),sx:{backgroundColor:"white",border:"1px solid #CDDAFF",borderRadius:"10px",py:1,px:1.5,cursor:"pointer",transition:"all 0.2s ease","&:hover":{backgroundColor:"#CDDAFF",borderColor:"#0B53C0",transform:"translateX(4px)"}},children:a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.85rem",color:"#333",lineHeight:1.4},children:u})}),l&&s&&h.map((f,p)=>a.jsx(d.Box,{onClick:()=>r(f),sx:{backgroundColor:"white",border:"1px solid #CDDAFF",borderRadius:"10px",py:1,px:1.5,cursor:"pointer",transition:"all 0.2s ease","&:hover":{backgroundColor:"#CDDAFF",borderColor:"#0B53C0",transform:"translateX(4px)"}},children:a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.85rem",color:"#333",lineHeight:1.4},children:f})},p)),l&&a.jsxs(d.Box,{onClick:()=>i(!s),sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:.5,py:.5,cursor:"pointer",borderRadius:"8px","&:hover":{backgroundColor:"rgba(11, 83, 192, 0.05)"}},children:[s?a.jsx(yi,{sx:{fontSize:"1rem",color:"#0B53C0"}}):a.jsx(hi,{sx:{fontSize:"1rem",color:"#0B53C0"}}),a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.75rem",color:"#0B53C0",fontWeight:600},children:s?"Show less":`Show ${h.length} more`})]})]})]})},xf=F.forwardRef(({chatbotId:e,onConversationStart:t,enableGuidedQuestions:r=!1,customToggleButton:n=null,onSwitchToLearn:o=null,isActive:s},i)=>{const[u,h]=F.useState(!1),[l,f]=F.useState(!1),[p,g]=F.useState(()=>{const A=localStorage.getItem("responses");return A?JSON.parse(A):[]}),[S,b]=F.useState(()=>localStorage.getItem("conversationId")||null),[c,x]=F.useState(!1),[v,j]=F.useState(null),[T,D]=F.useState(!1),[C,Y]=F.useState(r),[m,_]=F.useState([]),[E,O]=F.useState(!1),[W,U]=F.useState(null),Z=d.useMediaQuery("(max-width:600px)"),le=d.useMediaQuery("(min-width:601px) and (max-width:960px)"),J=F.useRef(null);F.useEffect(()=>{typeof t=="function"&&S&&t(S)},[S,t]),F.useEffect(()=>{J.current&&J.current.scrollIntoView({behavior:"smooth"})},[p]),F.useEffect(()=>{s&&!u&&h(!0)},[s]),F.useEffect(()=>{(u||s)&&!S&&!c&&de()},[u,s]),F.useEffect(()=>{const A=$=>{$.key==="Escape"&&l&&f(!1)};return window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)},[l]);const K=async()=>{h(A=>!A),l&&f(!1)},de=async()=>{if(!S){x(!0),j(null);try{const A=await li(e),{conversationId:$,introMessage:q}=A;b($),localStorage.setItem("conversationId",$),g(k=>{const B=[...k,{id:"intro",sender:"chatbot",text:q}];return localStorage.setItem("responses",JSON.stringify(B)),B})}catch(A){console.error("Error starting conversation:",A),j("Failed to start a conversation. Please try again.")}finally{x(!1)}}},ge=async(A,$=S)=>{j(null),_([]),g(q=>{const k=[...q,{question:A,answer:null}];return localStorage.setItem("responses",JSON.stringify(k)),k}),x(!0);try{const k=(await lf(e,$,A)).answer;g(B=>{const V=[...B];return V[V.length-1]={question:A,answer:k},localStorage.setItem("responses",JSON.stringify(V)),V}),C&&Te(A,k)}catch(q){console.error("Error sending message:",q),j("Failed to send the message. Please try again."),g(k=>{const B=k.slice(0,-1);return localStorage.setItem("responses",JSON.stringify(B)),B})}finally{x(!1)}},Te=async(A,$)=>{O(!0);try{const q=p.filter(B=>B.question&&B.answer).map(B=>({question:B.question,answer:B.answer})),k=await ff(e,A,$,q);_(k)}catch(q){console.error("Error fetching guided questions:",q)}finally{O(!1)}},y=A=>{_([]),ge(A)},R=async()=>{x(!0),j(null);try{S&&await di(e,S),b(null),g([]),_([]),localStorage.removeItem("conversationId"),localStorage.removeItem("responses"),await de()}catch(A){console.error("Error ending conversation:",A),j("Failed to end the conversation. Please try again.")}finally{x(!1)}},M=async()=>{x(!0),j(null);try{S&&await di(e,S),b(null),g([]),_([]),localStorage.removeItem("conversationId"),localStorage.removeItem("responses");const A=await li(e),{conversationId:$,introMessage:q}=A;b($),localStorage.setItem("conversationId",$),g([{id:"intro",sender:"chatbot",text:q}]),localStorage.setItem("responses",JSON.stringify([{id:"intro",sender:"chatbot",text:q}]))}catch(A){console.error("Error clearing conversation:",A),j("Failed to start a new conversation. Please try again.")}finally{x(!1)}};F.useImperativeHandle(i,()=>({endConversation:R}));const N=()=>{o&&(U("learn"),setTimeout(()=>{U(null),o()},300))},z=u||s;return a.jsx(a.Fragment,{children:z?a.jsxs(a.Fragment,{children:[l&&a.jsx(d.Box,{onClick:()=>f(!1),sx:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:1299}}),a.jsxs(d.Paper,{elevation:0,sx:Fn.chatContainer(Z,le,l),children:[a.jsxs(d.Box,{sx:{backgroundColor:"#CDDAFF",px:2,py:1.5,display:"flex",flexShrink:0,alignItems:"center",justifyContent:"space-between"},children:[a.jsxs(d.Box,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[a.jsx(d.Box,{sx:{width:36,height:36,borderRadius:"50%",backgroundColor:"#0B53C0",display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx(In,{sx:{color:"white",fontSize:"1.25rem"}})}),a.jsxs(d.Box,{children:[a.jsx(d.Typography,{sx:Fn.chatHeader,children:"PAT"}),a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.7rem",color:"#555",marginTop:"-2px"},children:"Personalized Academic Tutor"})]})]}),a.jsxs(d.Box,{sx:{display:"flex",alignItems:"center",gap:.5},children:[a.jsx(d.Tooltip,{title:"Toggle AI-suggested follow-up questions",arrow:!0,placement:"bottom",children:a.jsxs(d.Box,{sx:{display:"flex",alignItems:"center",gap:.5,backgroundColor:"rgba(11, 83, 192, 0.1)",borderRadius:"20px",pl:1,pr:.5,py:.25},children:[a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.7rem",fontWeight:600,color:"#0B53C0"},children:"Suggestions"}),a.jsx(d.Switch,{checked:C,onChange:A=>Y(A.target.checked),size:"small",sx:{width:36,height:20,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:"2px","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:"#0B53C0",opacity:1}}},"& .MuiSwitch-thumb":{width:16,height:16},"& .MuiSwitch-track":{borderRadius:10,backgroundColor:"rgba(11, 83, 192, 0.3)",opacity:1}}})]})}),S&&p.length>0&&a.jsx(d.Tooltip,{title:"View a summary of this conversation",arrow:!0,placement:"bottom",children:a.jsxs(d.Box,{onClick:()=>D(!0),sx:{display:"flex",alignItems:"center",gap:.5,color:"#0B53C0",backgroundColor:"rgba(11, 83, 192, 0.1)",borderRadius:"16px",px:1,py:.5,cursor:"pointer",transition:"all 0.2s ease","&:hover":{backgroundColor:"#0B53C0",color:"white"}},children:[a.jsx(vs,{sx:{fontSize:"0.9rem"}}),a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.7rem",fontWeight:600},children:"Summary"})]})}),S&&a.jsx(d.Tooltip,{title:"Start a new conversation",arrow:!0,placement:"bottom",children:a.jsxs(d.Box,{onClick:M,sx:{display:"flex",alignItems:"center",gap:.5,color:"#dc2626",backgroundColor:"rgba(220, 38, 38, 0.1)",borderRadius:"16px",px:1,py:.5,cursor:c?"not-allowed":"pointer",opacity:c?.5:1,transition:"all 0.2s ease","&:hover":{backgroundColor:c?"rgba(220, 38, 38, 0.1)":"#dc2626",color:c?"#dc2626":"white"}},children:[a.jsx(Rl,{sx:{fontSize:"0.9rem"}}),a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.7rem",fontWeight:600},children:"New Chat"})]})}),a.jsx(d.Tooltip,{title:l?"Exit fullscreen (Esc)":"Fullscreen",arrow:!0,placement:"bottom",children:a.jsx(d.IconButton,{onClick:()=>f(!l),sx:{color:"#0B53C0",backgroundColor:"rgba(11, 83, 192, 0.1)",width:32,height:32,"&:hover":{backgroundColor:"#0B53C0",color:"white"}},children:l?a.jsx(gs,{sx:{fontSize:"1rem"}}):a.jsx(ms,{sx:{fontSize:"1rem"}})})}),a.jsx(d.IconButton,{onClick:K,sx:{color:"#0B53C0",backgroundColor:"rgba(11, 83, 192, 0.1)",width:32,height:32,"&:hover":{backgroundColor:"#0B53C0",color:"white"}},children:a.jsx(Pn,{sx:{fontSize:"1.1rem"}})})]})]}),c&&a.jsx(d.LinearProgress,{sx:{height:3,backgroundColor:"rgba(205, 218, 255, 0.5)","& .MuiLinearProgress-bar":{backgroundColor:"#0B53C0"}}}),o&&a.jsxs(d.Box,{sx:{display:"flex",flexShrink:0,mx:1.5,mt:.75,mb:0,p:"3px",borderRadius:"12px",background:"linear-gradient(135deg, rgba(11, 83, 192, 0.06) 0%, rgba(99, 102, 241, 0.06) 100%)",border:"1px solid rgba(11, 83, 192, 0.08)",position:"relative",overflow:"hidden"},children:[a.jsx(d.Box,{sx:{position:"absolute",top:3,left:W==="learn"?"calc(50%)":3,width:"calc(50% - 3px)",height:"calc(100% - 6px)",borderRadius:"9px",background:"white",boxShadow:"0 1px 8px rgba(11, 83, 192, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06)",transition:"left 0.3s cubic-bezier(0.4, 0, 0.2, 1)"}}),a.jsxs(d.Box,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:.5,py:.6,zIndex:1,color:W==="learn"?"#aaa":"#0B53C0",transition:"color 0.3s ease",borderRadius:"9px",cursor:"default"},children:[a.jsx(In,{sx:{fontSize:"0.85rem"}}),a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.75rem",fontWeight:700,letterSpacing:"0.2px"},children:"Chat"})]}),a.jsxs(d.Box,{onClick:N,sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:.5,py:.6,zIndex:1,color:W==="learn"?"#0B53C0":"#aaa",transition:"color 0.3s ease",borderRadius:"9px",cursor:"pointer","&:hover":{color:W?void 0:"#666"}},children:[a.jsx(Hr,{sx:{fontSize:"0.85rem"}}),a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.75rem",fontWeight:600,letterSpacing:"0.2px"},children:"Learn"})]})]}),a.jsx(Pl,{responses:p,messagesEndRef:J,loading:c}),C&&a.jsx(gf,{questions:m,loading:E,onQuestionClick:y}),v&&a.jsx(d.Box,{sx:{mx:2,mb:1,p:1.5,backgroundColor:"#fef2f2",borderRadius:"10px",border:"1px solid #fecaca"},children:a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.85rem",color:"#dc2626"},children:v})}),a.jsx(Ml,{onSendMessage:ge,onStartConversation:de,onEndConversation:R,conversationId:S}),a.jsx(fi,{chatbotId:e,open:T,onClose:()=>D(!1)})]})]}):n?a.jsx(d.Box,{onClick:K,sx:{cursor:"pointer"},children:n}):a.jsx(d.IconButton,{onClick:K,sx:Fn.chatToggleButton,children:a.jsx(In,{sx:{fontSize:"1.75rem"}})})})});var Zt={},gi;function bf(){if(gi)return Zt;gi=1;var e=X();Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.default=void 0;var t=e(ne()),r=ee();return Zt.default=(0,t.default)((0,r.jsx)("path",{d:"M12 7c-.55 0-1 .45-1 1v3H8c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1h-3V8c0-.55-.45-1-1-1m0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutlineRounded"),Zt}var vf=bf();const Sf=Q(vf);var er={},xi;function wf(){if(xi)return er;xi=1;var e=X();Object.defineProperty(er,"__esModule",{value:!0}),er.default=void 0;var t=e(ne()),r=ee();return er.default=(0,t.default)((0,r.jsx)("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M7 9h10c.55 0 1 .45 1 1s-.45 1-1 1H7c-.55 0-1-.45-1-1s.45-1 1-1m6 5H7c-.55 0-1-.45-1-1s.45-1 1-1h6c.55 0 1 .45 1 1s-.45 1-1 1m4-6H7c-.55 0-1-.45-1-1s.45-1 1-1h10c.55 0 1 .45 1 1s-.45 1-1 1"}),"ChatRounded"),er}var Cf=wf();const Ef=Q(Cf);var tr={},bi;function Rf(){if(bi)return tr;bi=1;var e=X();Object.defineProperty(tr,"__esModule",{value:!0}),tr.default=void 0;var t=e(ne()),r=ee();return tr.default=(0,t.default)((0,r.jsx)("path",{d:"M19 5h-2V4c0-.55-.45-1-1-1H8c-.55 0-1 .45-1 1v1H5c-1.1 0-2 .9-2 2v1c0 2.55 1.92 4.63 4.39 4.94.63 1.5 1.98 2.63 3.61 2.96V19H8c-.55 0-1 .45-1 1s.45 1 1 1h8c.55 0 1-.45 1-1s-.45-1-1-1h-3v-3.1c1.63-.33 2.98-1.46 3.61-2.96C19.08 12.63 21 10.55 21 8V7c0-1.1-.9-2-2-2M5 8V7h2v3.82C5.84 10.4 5 9.3 5 8m14 0c0 1.3-.84 2.4-2 2.82V7h2z"}),"EmojiEventsRounded"),tr}var _f=Rf();const Tf=Q(_f),on={chatToggleButton:{position:"fixed",bottom:20,right:20,bgcolor:"#CDDAFF",color:"white",width:60,height:60,borderRadius:"50%",boxShadow:"0px 4px 15px rgba(0, 0, 0, 0.3)","&:hover":{bgcolor:"#0B53C0"},transition:"background-color 0.3s, transform 0.3s","&:active":{transform:"scale(0.95)"}},chatContainer:(e,t,r=!1)=>({position:"fixed",...r?{top:"5%",left:"10%",right:"10%",bottom:"5%",width:"auto",height:"auto"}:{bottom:e?0:20,right:e?0:20,top:"auto",left:"auto",width:e?"80%":t?"60%":650,height:e?"50%":t?"55%":700},padding:0,display:"flex",flexDirection:"column",borderRadius:e&&!r?0:"16px",backgroundColor:"#F0F4FF",boxShadow:"0px 10px 30px rgba(0, 0, 0, 0.2)",zIndex:1300,overflow:"hidden"}),chatHeader:{fontFamily:"Staatliches, Arial, sans-serif",fontWeight:"bold",color:"black",fontSize:"1.25rem"},bodyFont:{fontFamily:"Gabarito, Arial, sans-serif"},scrollbar:{"&::-webkit-scrollbar":{width:"6px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"#CDDAFF",borderRadius:"3px"},"&::-webkit-scrollbar-thumb:hover":{background:"#0B53C0"}}},vi=Hr,jf={onboarding:"Getting Started",diagnostic:"Diagnostic",teaching:"Learning",checkpoint_offer:"Checkpoint",checkpoint:"Checkpoint Quiz",revisit_recommendation:"Review Recommendation",revisit:"Reviewing",completed:"Completed"},Of=({progress:e})=>{if(!e)return null;const{mode:t,current_step_index:r=0,total_steps:n=0,percentage_complete:o=0,step_title:s}=e;return a.jsxs(d.Box,{sx:{px:2,py:1,flexShrink:0,backgroundColor:"#F0F4FF",borderBottom:"1px solid #CDDAFF"},children:[a.jsxs(d.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:.5},children:[a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.7rem",fontWeight:600,color:"#0B53C0",textTransform:"uppercase",letterSpacing:"0.5px"},children:jf[t]||t}),a.jsxs(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.7rem",color:"#555"},children:[o,"%",n>0&&` โ€ข Step ${r+1} of ${n}`]})]}),a.jsx(d.LinearProgress,{variant:"determinate",value:o,sx:{height:6,borderRadius:3,backgroundColor:"rgba(205, 218, 255, 0.5)","& .MuiLinearProgress-bar":{backgroundColor:"#0B53C0",borderRadius:3}}}),s&&a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.75rem",color:"#555",mt:.5},children:s})]})};var rr={},Si;function Af(){if(Si)return rr;Si=1;var e=X();Object.defineProperty(rr,"__esModule",{value:!0}),rr.default=void 0;var t=e(ne()),r=ee();return rr.default=(0,t.default)((0,r.jsx)("path",{d:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42a.9959.9959 0 0 0-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1"}),"ArrowBackRounded"),rr}var kf=Af();const wi=Q(kf);var nr={},Ci;function If(){if(Ci)return nr;Ci=1;var e=X();Object.defineProperty(nr,"__esModule",{value:!0}),nr.default=void 0;var t=e(ne()),r=ee();return nr.default=(0,t.default)((0,r.jsx)("path",{d:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42.39.39 1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1"}),"ArrowForwardRounded"),nr}var Pf=If();const Kn=Q(Pf);var or={},Ei;function Ff(){if(Ei)return or;Ei=1;var e=X();Object.defineProperty(or,"__esModule",{value:!0}),or.default=void 0;var t=e(ne()),r=ee();return or.default=(0,t.default)((0,r.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.88-11.71L10 14.17l-1.88-1.88a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l2.59 2.59c.39.39 1.02.39 1.41 0L17.3 9.7c.39-.39.39-1.02 0-1.41-.39-.39-1.03-.39-1.42 0"}),"CheckCircleOutlineRounded"),or}var Bf=Ff();const Mf=Q(Bf);var sr={},Ri;function Df(){if(Ri)return sr;Ri=1;var e=X();Object.defineProperty(sr,"__esModule",{value:!0}),sr.default=void 0;var t=e(ne()),r=ee();return sr.default=(0,t.default)((0,r.jsx)("path",{d:"M3 18c0 .55.45 1 1 1h5v-2H4c-.55 0-1 .45-1 1M3 6c0 .55.45 1 1 1h9V5H4c-.55 0-1 .45-1 1m10 14v-1h7c.55 0 1-.45 1-1s-.45-1-1-1h-7v-1c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1s1-.45 1-1M7 10v1H4c-.55 0-1 .45-1 1s.45 1 1 1h3v1c0 .55.45 1 1 1s1-.45 1-1v-4c0-.55-.45-1-1-1s-1 .45-1 1m14 2c0-.55-.45-1-1-1h-9v2h9c.55 0 1-.45 1-1m-5-3c.55 0 1-.45 1-1V7h3c.55 0 1-.45 1-1s-.45-1-1-1h-3V4c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1"}),"TuneRounded"),sr}var $f=Df();const _i=Q($f);var ir={},Ti;function Nf(){if(Ti)return ir;Ti=1;var e=X();Object.defineProperty(ir,"__esModule",{value:!0}),ir.default=void 0;var t=e(ne()),r=ee();return ir.default=(0,t.default)([(0,r.jsx)("path",{d:"M17 20H4V7c0-.55-.45-1-1-1s-1 .45-1 1v13c0 1.1.9 2 2 2h13c.55 0 1-.45 1-1s-.45-1-1-1"},"0"),(0,r.jsx)("path",{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-5.99 13c-.59 0-1.05-.47-1.05-1.05 0-.59.47-1.04 1.05-1.04.59 0 1.04.45 1.04 1.04-.01.58-.45 1.05-1.04 1.05m2.5-6.17c-.63.93-1.23 1.21-1.56 1.81-.08.14-.13.26-.16.49-.05.39-.36.68-.75.68h-.03c-.44 0-.79-.38-.75-.82.03-.28.09-.57.25-.84.41-.73 1.18-1.16 1.63-1.8.48-.68.21-1.94-1.14-1.94-.61 0-1.01.32-1.26.7-.19.29-.57.39-.89.25-.42-.18-.6-.7-.34-1.07.51-.74 1.36-1.29 2.48-1.29 1.23 0 2.08.56 2.51 1.26.37.61.58 1.73.01 2.57"},"1")],"QuizRounded"),ir}var zf=Nf();const ji=Q(zf);var ar={},Oi;function qf(){if(Oi)return ar;Oi=1;var e=X();Object.defineProperty(ar,"__esModule",{value:!0}),ar.default=void 0;var t=e(ne()),r=ee();return ar.default=(0,t.default)((0,r.jsx)("path",{d:"M12 5V2.21c0-.45-.54-.67-.85-.35l-3.8 3.79c-.2.2-.2.51 0 .71l3.79 3.79c.32.31.86.09.86-.36V7c3.73 0 6.68 3.42 5.86 7.29-.47 2.27-2.31 4.1-4.57 4.57-3.57.75-6.75-1.7-7.23-5.01-.07-.48-.49-.85-.98-.85-.6 0-1.08.53-1 1.13.62 4.39 4.8 7.64 9.53 6.72 3.12-.61 5.63-3.12 6.24-6.24C20.84 9.48 16.94 5 12 5"}),"ReplayRounded"),ar}var Lf=qf();const Jn=Q(Lf);var cr={},Ai;function Uf(){if(Ai)return cr;Ai=1;var e=X();Object.defineProperty(cr,"__esModule",{value:!0}),cr.default=void 0;var t=e(ne()),r=ee();return cr.default=(0,t.default)((0,r.jsx)("path",{d:"m7.58 16.89 5.77-4.07c.56-.4.56-1.24 0-1.63L7.58 7.11C6.91 6.65 6 7.12 6 7.93v8.14c0 .81.91 1.28 1.58.82M16 7v10c0 .55.45 1 1 1s1-.45 1-1V7c0-.55-.45-1-1-1s-1 .45-1 1"}),"SkipNextRounded"),cr}var Wf=Uf();const Vf={arrow:Kn,back:wi,check:Mf,school:Hr,tune:_i,quiz:ji,revisit:Jn,skip:Q(Wf)},ki={continue:{bg:"linear-gradient(135deg, #0B53C0, #6366F1)",text:"#fff"},back:{bg:"linear-gradient(135deg, #6B7280, #9CA3AF)",text:"#fff"},level:{bg:"linear-gradient(135deg, #059669, #10B981)",text:"#fff"},mcq:{bg:"linear-gradient(135deg, #7C3AED, #A78BFA)",text:"#fff"},meta:{bg:"linear-gradient(135deg, #D97706, #F59E0B)",text:"#fff"},checkpoint_accept:{bg:"linear-gradient(135deg, #059669, #10B981)",text:"#fff"},checkpoint_skip:{bg:"linear-gradient(135deg, #6B7280, #9CA3AF)",text:"#fff"},revisit_accept:{bg:"linear-gradient(135deg, #059669, #10B981)",text:"#fff"},revisit_skip:{bg:"linear-gradient(135deg, #6B7280, #9CA3AF)",text:"#fff"}},Hf=()=>a.jsxs(d.Box,{sx:{display:"flex",gap:1,alignItems:"flex-start"},children:[a.jsx(d.Box,{sx:{width:28,height:28,borderRadius:"50%",backgroundColor:"#CDDAFF",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,mt:.5},children:a.jsx(ht,{sx:{fontSize:"1rem",color:"#0B53C0"}})}),a.jsx(d.Box,{sx:{backgroundColor:"#CDDAFF",borderRadius:"15px",py:1.5,px:2,boxShadow:"0px 2px 5px rgba(0, 0, 0, 0.1)",display:"flex",alignItems:"center",gap:.5},children:[0,.2,.4].map(e=>a.jsx(d.Box,{sx:{width:8,height:8,borderRadius:"50%",backgroundColor:"#0B53C0",animation:"bounce 1.4s ease-in-out infinite",animationDelay:`${e}s`,"@keyframes bounce":{"0%, 60%, 100%":{transform:"translateY(0)",opacity:.4},"30%":{transform:"translateY(-6px)",opacity:1}}}},e))})]}),Yf=({msg:e})=>{const t=ki[e.actionType]||ki.continue,r=Vf[e.actionIcon]||Kn;return a.jsx(d.Box,{sx:{display:"flex",justifyContent:"center",my:.25,animation:"actionSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1)","@keyframes actionSlideIn":{"0%":{opacity:0,transform:"translateY(8px) scale(0.9)"},"100%":{opacity:1,transform:"translateY(0) scale(1)"}}},children:a.jsxs(d.Box,{sx:{display:"inline-flex",alignItems:"center",gap:.75,background:t.bg,color:t.text,borderRadius:"20px",px:1.75,py:.5,boxShadow:"0 2px 8px rgba(0,0,0,0.12)"},children:[a.jsx(r,{sx:{fontSize:"0.85rem"}}),a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.75rem",fontWeight:700,letterSpacing:"0.3px"},children:e.message})]})})},Gf={fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.9rem",lineHeight:1.6,"& p":{margin:0,marginBottom:1,"&:last-child":{marginBottom:0}},"& ul, & ol":{margin:0,paddingLeft:2.5},"& li":{marginBottom:.5},"& code":{backgroundColor:"rgba(0, 0, 0, 0.1)",padding:"2px 6px",borderRadius:"4px",fontSize:"0.85em",fontFamily:"monospace"},"& pre":{backgroundColor:"rgba(0, 0, 0, 0.1)",padding:1.5,borderRadius:"8px",overflow:"auto","& code":{backgroundColor:"transparent",padding:0}},"& strong":{fontWeight:700}},Kf=({messages:e,messagesEndRef:t,loading:r})=>a.jsxs(d.Box,{sx:{flexGrow:1,overflowY:"auto",display:"flex",flexDirection:"column",gap:1.5,padding:2,backgroundColor:"#F0F4FF",...on.scrollbar},children:[e.length>0?a.jsxs(a.Fragment,{children:[e.map((n,o)=>a.jsxs(d.Box,{children:[n.role==="student"&&n.isAction&&a.jsx(Yf,{msg:n}),n.role==="student"&&!n.isAction&&a.jsx(d.Box,{sx:{display:"flex",justifyContent:"flex-end",animation:"msgSlideIn 0.25s ease-out","@keyframes msgSlideIn":{"0%":{opacity:0,transform:"translateX(12px)"},"100%":{opacity:1,transform:"translateX(0)"}}},children:a.jsx(d.Box,{sx:{maxWidth:"80%",backgroundColor:"#0B53C0",color:"white",borderRadius:"15px",py:1,px:2,boxShadow:"0px 2px 5px rgba(0, 0, 0, 0.15)"},children:a.jsx(d.Typography,{variant:"body2",sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.9rem",lineHeight:1.5,color:"white"},children:n.message})})}),n.role==="tutor"&&a.jsxs(d.Box,{sx:{display:"flex",gap:1,alignItems:"flex-start",animation:"tutorFadeIn 0.35s ease-out","@keyframes tutorFadeIn":{"0%":{opacity:0,transform:"translateY(6px)"},"100%":{opacity:1,transform:"translateY(0)"}}},children:[a.jsx(d.Box,{sx:{width:28,height:28,borderRadius:"50%",backgroundColor:"#CDDAFF",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,mt:.5},children:a.jsx(ht,{sx:{fontSize:"1rem",color:"#0B53C0"}})}),a.jsx(d.Box,{sx:{maxWidth:"calc(80% - 36px)",backgroundColor:"#CDDAFF",color:"black",borderRadius:"15px",py:1,px:2,boxShadow:"0px 2px 5px rgba(0, 0, 0, 0.1)"},children:a.jsx(d.Typography,{component:"div",variant:"body2",sx:Gf,children:a.jsx(sn,{children:n.message})})})]})]},o)),r&&a.jsx(Hf,{})]}):a.jsxs(d.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",gap:2,color:"#888"},children:[a.jsx(ht,{sx:{fontSize:"3rem",opacity:.5}}),a.jsx(d.Typography,{variant:"body2",sx:{fontFamily:"Gabarito, Arial, sans-serif",textAlign:"center"},children:"Starting your learning session..."})]}),a.jsx("div",{ref:t})]});var ur={},Ii;function Jf(){if(Ii)return ur;Ii=1;var e=X();Object.defineProperty(ur,"__esModule",{value:!0}),ur.default=void 0;var t=e(ne()),r=ee();return ur.default=(0,t.default)((0,r.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m-1-4h2v2h-2zm1.61-9.96c-2.06-.3-3.88.97-4.43 2.79-.18.58.26 1.17.87 1.17h.2c.41 0 .74-.29.88-.67.32-.89 1.27-1.5 2.3-1.28.95.2 1.65 1.13 1.57 2.1-.1 1.34-1.62 1.63-2.45 2.88 0 .01-.01.01-.01.02-.01.02-.02.03-.03.05-.09.15-.18.32-.25.5-.01.03-.03.05-.04.08-.01.02-.01.04-.02.07-.12.34-.2.75-.2 1.25h2c0-.42.11-.77.28-1.07.02-.03.03-.06.05-.09.08-.14.18-.27.28-.39.01-.01.02-.03.03-.04.1-.12.21-.23.33-.34.96-.91 2.26-1.65 1.99-3.56-.24-1.74-1.61-3.21-3.35-3.47"}),"HelpOutlineRounded"),ur}var Qf=Jf();const Xf=Q(Qf);var lr={},Pi;function Zf(){if(Pi)return lr;Pi=1;var e=X();Object.defineProperty(lr,"__esModule",{value:!0}),lr.default=void 0;var t=e(ne()),r=ee();return lr.default=(0,t.default)((0,r.jsx)("path",{d:"M20 6h-1v8c0 .55-.45 1-1 1H6v1c0 1.1.9 2 2 2h10l4 4V8c0-1.1-.9-2-2-2m-3 5V4c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v13l4-4h9c1.1 0 2-.9 2-2"}),"QuestionAnswerRounded"),lr}var e0=Zf();const t0=Q(e0);var dr={},Fi;function r0(){if(Fi)return dr;Fi=1;var e=X();Object.defineProperty(dr,"__esModule",{value:!0}),dr.default=void 0;var t=e(ne()),r=ee();return dr.default=(0,t.default)((0,r.jsx)("path",{d:"M10 8.5v7c0 .41.47.65.8.4l4.67-3.5c.27-.2.27-.6 0-.8L10.8 8.1c-.33-.25-.8-.01-.8.4m1-5.27c0-.64-.59-1.13-1.21-.99-1.12.26-2.18.7-3.12 1.3-.53.34-.61 1.1-.16 1.55.32.32.83.4 1.21.16.77-.49 1.62-.85 2.54-1.05.44-.1.74-.51.74-.97M5.1 6.51c-.46-.45-1.21-.38-1.55.16-.6.94-1.04 2-1.3 3.12-.14.62.34 1.21.98 1.21.45 0 .87-.3.96-.74.2-.91.57-1.77 1.05-2.53.26-.39.18-.9-.14-1.22M3.23 13c-.64 0-1.13.59-.99 1.21.26 1.12.7 2.17 1.3 3.12.34.54 1.1.61 1.55.16.32-.32.4-.83.15-1.21-.49-.76-.85-1.61-1.05-2.53-.09-.45-.5-.75-.96-.75m3.44 7.45c.95.6 2 1.04 3.12 1.3.62.14 1.21-.35 1.21-.98 0-.45-.3-.87-.74-.96-.91-.2-1.77-.57-2.53-1.05-.39-.24-.89-.17-1.21.16-.46.44-.39 1.19.15 1.53M22 12c0 4.73-3.3 8.71-7.73 9.74-.62.15-1.22-.34-1.22-.98 0-.46.31-.86.75-.97 3.55-.82 6.2-4 6.2-7.79s-2.65-6.97-6.2-7.79c-.44-.1-.75-.51-.75-.97 0-.64.6-1.13 1.22-.98C18.7 3.29 22 7.27 22 12"}),"SlowMotionVideoRounded"),dr}var n0=r0();const o0=Q(n0);var fr={},Bi;function s0(){if(Bi)return fr;Bi=1;var e=X();Object.defineProperty(fr,"__esModule",{value:!0}),fr.default=void 0;var t=e(ne()),r=ee();return fr.default=(0,t.default)([(0,r.jsx)("path",{d:"M19.46 10a1 1 0 0 0-.07 1 7.55 7.55 0 0 1 .52 1.81 8 8 0 0 1-.69 4.73 1 1 0 0 1-.89.53H5.68a1 1 0 0 1-.89-.54A8 8 0 0 1 13 6.06a7.69 7.69 0 0 1 2.11.56 1 1 0 0 0 1-.07 1 1 0 0 0-.17-1.76A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0 .55-8.89 1 1 0 0 0-1.75-.11"},"0"),(0,r.jsx)("path",{d:"M10.59 12.59a2 2 0 0 0 2.83 2.83l5.66-8.49z"},"1")],"SpeedRounded"),fr}var i0=s0();const a0=Q(i0);var pr={},Mi;function c0(){if(Mi)return pr;Mi=1;var e=X();Object.defineProperty(pr,"__esModule",{value:!0}),pr.default=void 0;var t=e(ne()),r=ee();return pr.default=(0,t.default)((0,r.jsx)("path",{d:"M19.94 9.06C19.5 5.73 16.57 3 13 3 9.47 3 6.57 5.61 6.08 9l-1.93 3.48c-.41.66.07 1.52.85 1.52h1v2c0 1.1.9 2 2 2h1v2c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-3.68c2.62-1.25 4.35-4.08 3.94-7.26M12.5 14c-.41 0-.74-.33-.74-.74s.33-.73.74-.73.73.32.73.73-.31.74-.73.74m1.76-4.32c-.44.65-.86.85-1.09 1.27-.09.17-.13.28-.13.82h-1.06c0-.29-.04-.75.18-1.16.28-.51.83-.81 1.14-1.26.33-.47.15-1.36-.8-1.36-.62 0-.92.47-1.05.86l-.96-.4c.27-.78.97-1.45 2.01-1.45.86 0 1.45.39 1.75.88.26.43.41 1.22.01 1.8"}),"PsychologyAltRounded"),pr}var u0=c0();const l0=Q(u0);var hr={},Di;function d0(){if(Di)return hr;Di=1;var e=X();Object.defineProperty(hr,"__esModule",{value:!0}),hr.default=void 0;var t=e(ne()),r=ee();return hr.default=(0,t.default)((0,r.jsx)("path",{d:"M16.24 7.76C15.07 6.59 13.54 6 12 6v6l-4.24 4.24c2.34 2.34 6.14 2.34 8.49 0 2.34-2.34 2.34-6.14-.01-8.48M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"TimelapseRounded"),hr}var f0=d0();const p0=[{label:"Slow down",meta_type:"PACE",message:"Please slow down.",icon:o0},{label:"Speed up",meta_type:"PACE",message:"Please speed up.",icon:a0},{label:"I'm confused",meta_type:"CONFUSION",message:"I'm confused, can you help?",icon:l0},{label:"Repeat",meta_type:"REPEAT",message:"Can you repeat that?",icon:Jn},{label:"How much is left?",meta_type:"PROGRESS",message:"How much is left?",icon:Q(f0)}],gt=(e,t="#0B53C0",r="0.08")=>({display:"flex",alignItems:"center",gap:.75,px:1.5,py:1,borderRadius:"12px",border:"2px solid",borderColor:e?t:"#CDDAFF",backgroundColor:e?`rgba(11, 83, 192, ${r})`:"white",cursor:"pointer",transition:"all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1)",userSelect:"none","&:hover":{borderColor:t,backgroundColor:"rgba(11, 83, 192, 0.04)",transform:"translateY(-1px)",boxShadow:"0 3px 10px rgba(11, 83, 192, 0.12)"},"&:active":{transform:"scale(0.96)",boxShadow:"none"}}),xt=(e,t="#0B53C0")=>({fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.8rem",fontWeight:600,color:e?t:"#555",whiteSpace:"nowrap"}),h0=({onSendTextMessage:e,onContinue:t,onBack:r,showBack:n,expectsAnswer:o,disabled:s})=>{const[i,u]=F.useState(null),[h,l]=F.useState(""),[f,p]=F.useState(!1),g=v=>{if(!s){if(v==="META"){p(j=>!j),u(i==="META"?null:"META");return}p(!1),u(i===v?null:v)}},S=()=>{!h.trim()||!i||(e(h.trim(),i),l(""),u(null))},b=v=>{e(v.message,"META",v.meta_type),p(!1),u(null)},c=()=>{u(null),p(!1),l("")},x=i==="QUESTION"||i==="ANSWER";return a.jsxs(d.Box,{sx:{px:2,pb:2,pt:1.5,backgroundColor:"#F0F4FF",borderTop:"1px solid #CDDAFF",display:"flex",flexDirection:"column",gap:1},children:[a.jsx(d.Collapse,{in:f,children:a.jsx(d.Box,{sx:{display:"flex",flexWrap:"wrap",gap:.75,mb:.5},children:p0.map((v,j)=>{const T=v.icon;return a.jsxs(d.Box,{onClick:()=>!s&&b(v),sx:{...gt(!1,"#555","0.04"),borderColor:"#ddd",py:.75,px:1.25,cursor:s?"not-allowed":"pointer",opacity:s?.5:1,animation:f?`metaChipIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) ${j*.05}s both`:"none","@keyframes metaChipIn":{"0%":{opacity:0,transform:"translateY(8px) scale(0.9)"},"100%":{opacity:1,transform:"translateY(0) scale(1)"}},"&:hover":{borderColor:s?"#ddd":"#888",backgroundColor:s?void 0:"rgba(0, 0, 0, 0.04)",transform:s?void 0:"translateY(-2px)",boxShadow:s?void 0:"0 4px 12px rgba(0, 0, 0, 0.1)"},"&:active":{transform:s?void 0:"scale(0.94)"}},children:[a.jsx(T,{sx:{fontSize:"0.9rem",color:"#555"}}),a.jsx(d.Typography,{sx:{...xt(!1,"#555"),fontSize:"0.75rem"},children:v.label})]},v.label)})})}),a.jsx(d.Collapse,{in:x,children:a.jsxs(d.Box,{sx:{display:"flex",gap:1,alignItems:"center",backgroundColor:"white",borderRadius:"20px",padding:"4px 4px 4px 16px",border:"2px solid #0B53C0",boxShadow:"0 2px 12px rgba(11, 83, 192, 0.12)",animation:x?"inputSlideDown 0.3s cubic-bezier(0.34, 1.56, 0.64, 1)":"none","@keyframes inputSlideDown":{"0%":{opacity:0,transform:"translateY(-8px)"},"100%":{opacity:1,transform:"translateY(0)"}}},children:[a.jsx(d.TextField,{variant:"standard",placeholder:i==="ANSWER"?"Type your answer...":"Type your question...",fullWidth:!0,size:"small",value:h,onChange:v=>l(v.target.value),onKeyDown:v=>{v.key==="Enter"&&!v.shiftKey&&(v.preventDefault(),S())},disabled:s,autoFocus:!0,InputProps:{disableUnderline:!0},sx:{"& .MuiInputBase-input":{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.9rem",padding:"8px 0","&::placeholder":{color:"#888",opacity:1}}}}),a.jsx(d.IconButton,{onClick:c,sx:{width:32,height:32,color:"#888",transition:"all 0.2s ease","&:hover":{color:"#dc2626",transform:"rotate(90deg)"}},children:a.jsx(Pn,{sx:{fontSize:"1rem"}})}),a.jsx(d.IconButton,{onClick:S,disabled:!h.trim()||s,sx:{width:40,height:40,background:h.trim()?"linear-gradient(135deg, #0B53C0, #6366F1)":"#e0e0e0",color:h.trim()?"white":"#888",borderRadius:"50%",transition:"all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1)",boxShadow:h.trim()?"0 3px 10px rgba(11, 83, 192, 0.3)":"none","&:hover":{background:h.trim()?"linear-gradient(135deg, #094299, #4F46E5)":"#e0e0e0",transform:h.trim()?"scale(1.1)":"none"},"&:active":{transform:h.trim()?"scale(0.92)":"none"},"&:disabled":{color:"#888"}},children:a.jsx(Es,{sx:{fontSize:"1.2rem"}})})]})}),a.jsxs(d.Box,{sx:{display:"flex",gap:1,flexWrap:"wrap"},children:[n&&a.jsxs(d.Box,{onClick:()=>!s&&r(),sx:{...gt(!1),cursor:s?"not-allowed":"pointer",opacity:s?.5:1},children:[a.jsx(wi,{sx:{fontSize:"1rem",color:"#555"}}),a.jsx(d.Typography,{sx:xt(!1),children:"Back"})]}),a.jsxs(d.Box,{onClick:()=>!s&&t(),sx:{...gt(!1,"#0B53C0"),background:"linear-gradient(135deg, #0B53C0 0%, #6366F1 100%)",borderColor:"transparent",cursor:s?"not-allowed":"pointer",opacity:s?.5:1,boxShadow:s?"none":"0 3px 12px rgba(11, 83, 192, 0.3)","&:hover":{background:s?void 0:"linear-gradient(135deg, #094299 0%, #4F46E5 100%)",borderColor:"transparent",transform:s?void 0:"translateY(-2px) scale(1.02)",boxShadow:s?void 0:"0 6px 20px rgba(11, 83, 192, 0.35)"},"&:active":{transform:s?void 0:"scale(0.95)",boxShadow:s?void 0:"0 2px 8px rgba(11, 83, 192, 0.2)"}},children:[a.jsx(Kn,{sx:{fontSize:"1rem",color:"white"}}),a.jsx(d.Typography,{sx:{...xt(!0,"white")},children:"Continue"})]}),a.jsxs(d.Box,{onClick:()=>g("QUESTION"),sx:{...gt(i==="QUESTION"),opacity:s?.5:1},children:[a.jsx(Xf,{sx:{fontSize:"1rem",color:i==="QUESTION"?"#0B53C0":"#555",transition:"transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1)",transform:i==="QUESTION"?"rotate(15deg) scale(1.15)":"rotate(0)"}}),a.jsx(d.Typography,{sx:xt(i==="QUESTION"),children:"Ask a Question"})]}),o&&a.jsxs(d.Box,{onClick:()=>g("ANSWER"),sx:{...gt(i==="ANSWER","#0B53C0","0.12"),borderColor:"#0B53C0",animation:i!=="ANSWER"?"answerPulse 2s ease-in-out infinite, answerEntrance 0.4s cubic-bezier(0.34, 1.56, 0.64, 1)":"answerEntrance 0.4s cubic-bezier(0.34, 1.56, 0.64, 1)","@keyframes answerPulse":{"0%, 100%":{boxShadow:"0 0 0 0 rgba(11, 83, 192, 0.25)"},"50%":{boxShadow:"0 0 0 6px rgba(11, 83, 192, 0.08)"}},"@keyframes answerEntrance":{"0%":{opacity:0,transform:"scale(0.8)"},"100%":{opacity:1,transform:"scale(1)"}}},children:[a.jsx(t0,{sx:{fontSize:"1rem",color:"#0B53C0",animation:i!=="ANSWER"?"iconBounce 2s ease-in-out infinite":"none","@keyframes iconBounce":{"0%, 100%":{transform:"translateY(0)"},"50%":{transform:"translateY(-2px)"}}}}),a.jsx(d.Typography,{sx:xt(!0,"#0B53C0"),children:"Answer"})]}),a.jsxs(d.Box,{onClick:()=>g("META"),sx:{...gt(i==="META"),opacity:s?.5:1},children:[a.jsx(_i,{sx:{fontSize:"1rem",color:i==="META"?"#0B53C0":"#555",transition:"transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1)",transform:i==="META"?"rotate(180deg)":"rotate(0)"}}),a.jsx(d.Typography,{sx:xt(i==="META"),children:"Options"})]})]})]})};var mr={},$i;function m0(){if($i)return mr;$i=1;var e=X();Object.defineProperty(mr,"__esModule",{value:!0}),mr.default=void 0;var t=e(ne()),r=ee();return mr.default=(0,t.default)((0,r.jsx)("path",{d:"M9.19 6.35c-2.04 2.29-3.44 5.58-3.57 5.89l-2.26-.97c-.65-.28-.81-1.13-.31-1.63l3.01-3.01c.47-.47 1.15-.68 1.81-.55zm1.49 10.16c.3.3.74.38 1.12.2 1.16-.54 3.65-1.81 5.26-3.42 4.59-4.59 4.63-8.33 4.36-9.93-.07-.4-.39-.72-.79-.79-1.6-.27-5.34-.23-9.93 4.36-1.61 1.61-2.87 4.1-3.42 5.26-.18.38-.09.83.2 1.12zm6.97-1.7c-2.29 2.04-5.58 3.44-5.89 3.57l.97 2.26c.28.65 1.13.81 1.63.31l3.01-3.01c.47-.47.68-1.15.55-1.81zm-8.71 2.6c.2 1.06-.15 2.04-.82 2.71-.77.77-3.16 1.34-4.71 1.64-.69.13-1.3-.48-1.17-1.17.3-1.55.86-3.94 1.64-4.71.67-.67 1.65-1.02 2.71-.82 1.17.22 2.13 1.18 2.35 2.35M13 9c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2"}),"RocketLaunchRounded"),mr}var y0=m0();const g0=Q(y0),yr={beginner:{icon:"๐ŸŒฑ",gradient:"linear-gradient(135deg, #059669, #10B981)",glow:"rgba(5, 150, 105, 0.25)"},intermediate:{icon:"๐Ÿ“š",gradient:"linear-gradient(135deg, #0B53C0, #6366F1)",glow:"rgba(11, 83, 192, 0.25)"},advanced:{icon:"๐Ÿš€",gradient:"linear-gradient(135deg, #7C3AED, #A78BFA)",glow:"rgba(124, 58, 237, 0.25)"}},x0=({data:e,onSelect:t,disabled:r})=>{var g,S,b,c;const[n,o]=F.useState(null),[s,i]=F.useState("");if(!e)return null;const{options:u=[],option_labels:h={},allow_prior_knowledge:l,prior_knowledge_placeholder:f}=e,p=()=>{n&&t(n,s.trim()||void 0)};return a.jsxs(d.Box,{sx:{px:2,pb:2,animation:"selectorEnter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1)","@keyframes selectorEnter":{"0%":{opacity:0,transform:"translateY(16px)"},"100%":{opacity:1,transform:"translateY(0)"}}},children:[a.jsx(d.Box,{sx:{display:"flex",flexDirection:"column",gap:1},children:u.map((x,v)=>{const j=yr[x]||{icon:"โญ",gradient:"linear-gradient(135deg, #0B53C0, #6366F1)",glow:"rgba(11, 83, 192, 0.25)"},T=n===x,D=n&&!T;return a.jsxs(d.Box,{onClick:()=>!r&&o(x),sx:{display:"flex",alignItems:"center",gap:1.5,p:1.5,borderRadius:"14px",border:"2px solid",borderColor:T?"transparent":"#CDDAFF",background:T?j.gradient:"white",cursor:r?"not-allowed":"pointer",opacity:D?.45:r?.5:1,transition:"all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1)",transform:T?"scale(1.03)":D?"scale(0.97)":"scale(1)",boxShadow:T?`0 6px 24px ${j.glow}`:"0 1px 3px rgba(0, 0, 0, 0.06)",animation:`levelSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) ${.1+v*.1}s both`,"@keyframes levelSlideIn":{"0%":{opacity:0,transform:"translateY(12px) scale(0.95)"},"100%":{opacity:1,transform:"translateY(0) scale(1)"}},"&:hover":{borderColor:r?void 0:T?"transparent":"#0B53C0",transform:r?void 0:T?"scale(1.03)":"scale(1.02)",boxShadow:r?void 0:T?`0 8px 28px ${j.glow}`:"0 4px 16px rgba(11, 83, 192, 0.15)"},"&:active":{transform:r?void 0:"scale(0.98)"}},children:[a.jsx(d.Box,{sx:{fontSize:"1.8rem",lineHeight:1,transition:"transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1)",transform:T?"scale(1.2)":"scale(1)",filter:T?"drop-shadow(0 2px 4px rgba(0,0,0,0.2))":"none"},children:j.icon}),a.jsxs(d.Box,{children:[a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.95rem",fontWeight:700,color:T?"white":"#333",textTransform:"capitalize",transition:"color 0.3s ease"},children:x}),h[x]&&a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.75rem",color:T?"rgba(255,255,255,0.85)":"#666",transition:"color 0.3s ease"},children:h[x].replace(/^[^-]+-\s*/,"")})]})]},x)})}),l&&a.jsx(d.TextField,{multiline:!0,minRows:2,maxRows:4,fullWidth:!0,placeholder:f||"Optional: What do you already know?",value:s,onChange:x=>i(x.target.value),disabled:r,sx:{mt:1.5,animation:"textFieldFadeIn 0.5s ease-out 0.4s both","@keyframes textFieldFadeIn":{"0%":{opacity:0,transform:"translateY(8px)"},"100%":{opacity:1,transform:"translateY(0)"}},"& .MuiOutlinedInput-root":{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.85rem",borderRadius:"12px",backgroundColor:"white","& fieldset":{borderColor:"#CDDAFF"},"&:hover fieldset":{borderColor:"#0B53C0"},"&.Mui-focused fieldset":{borderColor:"#0B53C0"}}}}),a.jsxs(d.Button,{onClick:p,disabled:!n||r,fullWidth:!0,sx:{mt:1.5,py:1.2,borderRadius:"14px",fontFamily:"Gabarito, Arial, sans-serif",fontWeight:700,fontSize:"0.9rem",textTransform:"none",background:n?((g=yr[n])==null?void 0:g.gradient)||"linear-gradient(135deg, #0B53C0, #6366F1)":"#ccc",color:"white",boxShadow:n?`0 4px 16px ${((S=yr[n])==null?void 0:S.glow)||"rgba(11, 83, 192, 0.25)"}`:"none",transition:"all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1)",animation:"buttonFadeIn 0.5s ease-out 0.5s both","@keyframes buttonFadeIn":{"0%":{opacity:0,transform:"translateY(8px)"},"100%":{opacity:1,transform:"translateY(0)"}},"&:hover":{background:n?((b=yr[n])==null?void 0:b.gradient)||"linear-gradient(135deg, #0B53C0, #6366F1)":"#ccc",transform:n?"translateY(-2px)":"none",boxShadow:n?`0 6px 24px ${((c=yr[n])==null?void 0:c.glow)||"rgba(11, 83, 192, 0.35)"}`:"none"},"&:active":{transform:n?"translateY(0) scale(0.98)":"none"},"&:disabled":{background:"#ccc",color:"white"}},children:[a.jsx(g0,{sx:{fontSize:"1rem",mr:.75}}),"Start Learning"]})]})};var gr={},Ni;function b0(){if(Ni)return gr;Ni=1;var e=X();Object.defineProperty(gr,"__esModule",{value:!0}),gr.default=void 0;var t=e(ne()),r=ee();return gr.default=(0,t.default)((0,r.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M9.29 16.29 5.7 12.7a.9959.9959 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L10 14.17l6.88-6.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-7.59 7.59c-.38.39-1.02.39-1.41 0"}),"CheckCircleRounded"),gr}var v0=b0();const zi=Q(v0),S0=["A","B","C","D"],w0=({data:e,onAnswer:t,disabled:r})=>{const[n,o]=F.useState(null);if(!e)return null;const{question:s,options:i={},mode:u,question_number:h,total_questions:l}=e,f=p=>{r||n||(o(p),t(p))};return a.jsxs(d.Box,{sx:{px:2,pb:2,animation:"mcqCardEnter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1)","@keyframes mcqCardEnter":{"0%":{opacity:0,transform:"translateY(16px) scale(0.96)"},"100%":{opacity:1,transform:"translateY(0) scale(1)"}}},children:[a.jsxs(d.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:[a.jsx(d.Box,{sx:{px:1.25,py:.4,borderRadius:"10px",background:u==="DIAGNOSTIC"?"linear-gradient(135deg, rgba(11, 83, 192, 0.15), rgba(99, 102, 241, 0.15))":"linear-gradient(135deg, rgba(5, 150, 105, 0.15), rgba(16, 185, 129, 0.15))",color:u==="DIAGNOSTIC"?"#0B53C0":"#059669",animation:"badgeFadeIn 0.5s ease-out 0.2s both","@keyframes badgeFadeIn":{"0%":{opacity:0,transform:"scale(0.8)"},"100%":{opacity:1,transform:"scale(1)"}}},children:a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.65rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.5px"},children:u==="DIAGNOSTIC"?"Diagnostic":"Checkpoint"})}),h&&l&&a.jsxs(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.75rem",color:"#666",animation:"badgeFadeIn 0.5s ease-out 0.3s both"},children:["Question ",h," of ",l]})]}),a.jsx(d.Box,{sx:{display:"flex",flexDirection:"column",gap:1},children:S0.map((p,g)=>{if(!i[p])return null;const S=n===p,b=n&&!S;return a.jsxs(d.Box,{onClick:()=>f(p),sx:{display:"flex",alignItems:"center",gap:1.5,p:1.5,borderRadius:"12px",border:"2px solid",borderColor:S?"#0B53C0":"#CDDAFF",backgroundColor:S?"rgba(11, 83, 192, 0.08)":"white",cursor:r||n?"default":"pointer",opacity:b?.4:r?.5:1,transition:"all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1)",transform:S?"scale(1.02)":b?"scale(0.97)":"scale(1)",boxShadow:S?"0 4px 16px rgba(11, 83, 192, 0.25)":"0 1px 3px rgba(0, 0, 0, 0.05)",animation:`optionSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) ${.1+g*.08}s both`,"@keyframes optionSlideIn":{"0%":{opacity:0,transform:"translateX(-12px)"},"100%":{opacity:1,transform:"translateX(0)"}},"&:hover":{borderColor:r||n?void 0:"#0B53C0",backgroundColor:r||n?void 0:"rgba(11, 83, 192, 0.04)",transform:r||n?void 0:"scale(1.01)",boxShadow:r||n?void 0:"0 3px 12px rgba(11, 83, 192, 0.15)"},"&:active":{transform:r||n?void 0:"scale(0.98)"}},children:[a.jsx(d.Box,{sx:{width:28,height:28,borderRadius:"50%",background:S?"linear-gradient(135deg, #0B53C0, #6366F1)":"#CDDAFF",color:S?"white":"#0B53C0",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transition:"all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1)",transform:S?"scale(1.1)":"scale(1)"},children:S?a.jsx(zi,{sx:{fontSize:"1rem",animation:"checkPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1)","@keyframes checkPop":{"0%":{transform:"scale(0) rotate(-90deg)"},"60%":{transform:"scale(1.3) rotate(10deg)"},"100%":{transform:"scale(1) rotate(0deg)"}}}}):a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.8rem",fontWeight:700},children:p})}),a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.85rem",color:S?"#0B53C0":"#333",fontWeight:S?600:400,lineHeight:1.4,transition:"all 0.3s ease"},children:i[p]})]},p)})})]})},C0=({data:e,onDecision:t,disabled:r})=>{if(!e)return null;const{message:n}=e;return a.jsx(d.Box,{sx:{px:2,pb:2},children:a.jsxs(d.Box,{sx:{p:2,borderRadius:"12px",border:"2px solid #CDDAFF",backgroundColor:"white"},children:[a.jsxs(d.Box,{sx:{display:"flex",alignItems:"center",gap:1,mb:1.5},children:[a.jsx(ji,{sx:{fontSize:"1.2rem",color:"#0B53C0"}}),a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.85rem",fontWeight:600,color:"#0B53C0"},children:"Checkpoint Available"})]}),n&&a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.85rem",color:"#555",mb:2,lineHeight:1.5},children:n}),a.jsxs(d.Box,{sx:{display:"flex",gap:1},children:[a.jsx(d.Button,{onClick:()=>t(!0),disabled:r,sx:{flex:1,py:1,borderRadius:"10px",fontFamily:"Gabarito, Arial, sans-serif",fontWeight:600,fontSize:"0.85rem",textTransform:"none",backgroundColor:"#0B53C0",color:"white","&:hover":{backgroundColor:"#094299"},"&:disabled":{backgroundColor:"#ccc",color:"white"}},children:"Take Checkpoint"}),a.jsx(d.Button,{onClick:()=>t(!1),disabled:r,variant:"outlined",sx:{flex:1,py:1,borderRadius:"10px",fontFamily:"Gabarito, Arial, sans-serif",fontWeight:600,fontSize:"0.85rem",textTransform:"none",borderColor:"#CDDAFF",color:"#555","&:hover":{borderColor:"#0B53C0",color:"#0B53C0",backgroundColor:"rgba(11, 83, 192, 0.04)"},"&:disabled":{borderColor:"#ccc",color:"#ccc"}},children:"Skip"})]})]})})};var xr={},qi;function E0(){if(qi)return xr;qi=1;var e=X();Object.defineProperty(xr,"__esModule",{value:!0}),xr.default=void 0;var t=e(ne()),r=ee();return xr.default=(0,t.default)([(0,r.jsx)("path",{d:"M17.5 4.5c-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5-1.45 0-2.99.22-4.28.79C1.49 5.62 1 6.33 1 7.14v11.28c0 1.3 1.22 2.26 2.48 1.94.98-.25 2.02-.36 3.02-.36 1.56 0 3.22.26 4.56.92.6.3 1.28.3 1.87 0 1.34-.67 3-.92 4.56-.92 1 0 2.04.11 3.02.36 1.26.33 2.48-.63 2.48-1.94V7.14c0-.81-.49-1.52-1.22-1.85-1.28-.57-2.82-.79-4.27-.79M21 17.23c0 .63-.58 1.09-1.2.98-.75-.14-1.53-.2-2.3-.2-1.7 0-4.15.65-5.5 1.5V8c1.35-.85 3.8-1.5 5.5-1.5.92 0 1.83.09 2.7.28.46.1.8.51.8.98z"},"0"),(0,r.jsx)("path",{d:"M13.98 11.01c-.32 0-.61-.2-.71-.52-.13-.39.09-.82.48-.94 1.54-.5 3.53-.66 5.36-.45.41.05.71.42.66.83-.05.41-.42.71-.83.66-1.62-.19-3.39-.04-4.73.39-.08.01-.16.03-.23.03m0 2.66c-.32 0-.61-.2-.71-.52-.13-.39.09-.82.48-.94 1.53-.5 3.53-.66 5.36-.45.41.05.71.42.66.83-.05.41-.42.71-.83.66-1.62-.19-3.39-.04-4.73.39-.08.02-.16.03-.23.03m0 2.66c-.32 0-.61-.2-.71-.52-.13-.39.09-.82.48-.94 1.53-.5 3.53-.66 5.36-.45.41.05.71.42.66.83-.05.41-.42.7-.83.66-1.62-.19-3.39-.04-4.73.39-.08.02-.16.03-.23.03"},"1")],"MenuBookRounded"),xr}var R0=E0();const _0=Q(R0),T0=({data:e,onDecision:t,disabled:r})=>{if(!e)return null;const{summary:n,recommended_steps:o=[]}=e;return a.jsx(d.Box,{sx:{px:2,pb:2},children:a.jsxs(d.Box,{sx:{p:2,borderRadius:"12px",border:"2px solid #CDDAFF",backgroundColor:"white"},children:[a.jsxs(d.Box,{sx:{display:"flex",alignItems:"center",gap:1,mb:1.5},children:[a.jsx(Jn,{sx:{fontSize:"1.2rem",color:"#0B53C0"}}),a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.85rem",fontWeight:600,color:"#0B53C0"},children:"Review Recommendation"})]}),n&&a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.85rem",color:"#555",mb:1.5,lineHeight:1.5},children:n}),o.length>0&&a.jsx(d.Box,{sx:{display:"flex",flexDirection:"column",gap:.75,mb:2},children:o.map((s,i)=>a.jsxs(d.Box,{sx:{display:"flex",alignItems:"flex-start",gap:1,p:1,borderRadius:"8px",backgroundColor:"#F0F4FF"},children:[a.jsx(_0,{sx:{fontSize:"0.9rem",color:"#0B53C0",mt:.25,flexShrink:0}}),a.jsxs(d.Box,{children:[a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.8rem",fontWeight:600,color:"#333"},children:s.step_title}),s.reason&&a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.75rem",color:"#777",mt:.25},children:s.reason})]})]},i))}),a.jsxs(d.Box,{sx:{display:"flex",gap:1},children:[a.jsx(d.Button,{onClick:()=>t(!0),disabled:r,sx:{flex:1,py:1,borderRadius:"10px",fontFamily:"Gabarito, Arial, sans-serif",fontWeight:600,fontSize:"0.85rem",textTransform:"none",backgroundColor:"#0B53C0",color:"white","&:hover":{backgroundColor:"#094299"},"&:disabled":{backgroundColor:"#ccc",color:"white"}},children:"Follow Recommendation"}),a.jsx(d.Button,{onClick:()=>t(!1),disabled:r,variant:"outlined",sx:{flex:1,py:1,borderRadius:"10px",fontFamily:"Gabarito, Arial, sans-serif",fontWeight:600,fontSize:"0.85rem",textTransform:"none",borderColor:"#CDDAFF",color:"#555","&:hover":{borderColor:"#0B53C0",color:"#0B53C0",backgroundColor:"rgba(11, 83, 192, 0.04)"},"&:disabled":{borderColor:"#ccc",color:"#ccc"}},children:"Skip"})]})]})})};var br={},Li;function j0(){if(Li)return br;Li=1;var e=X();Object.defineProperty(br,"__esModule",{value:!0}),br.default=void 0;var t=e(ne()),r=ee();return br.default=(0,t.default)((0,r.jsx)("path",{d:"M13.26 3C8.17 2.86 4 6.95 4 12H2.21c-.45 0-.67.54-.35.85l2.79 2.8c.2.2.51.2.71 0l2.79-2.8c.31-.31.09-.85-.36-.85H6c0-3.9 3.18-7.05 7.1-7 3.72.05 6.85 3.18 6.9 6.9.05 3.91-3.1 7.1-7 7.1-1.61 0-3.1-.55-4.28-1.48-.4-.31-.96-.28-1.32.08-.42.42-.39 1.13.08 1.49C9 20.29 10.91 21 13 21c5.05 0 9.14-4.17 9-9.26-.13-4.69-4.05-8.61-8.74-8.74m-.51 5c-.41 0-.75.34-.75.75v3.68c0 .35.19.68.49.86l3.12 1.85c.36.21.82.09 1.03-.26.21-.36.09-.82-.26-1.03l-2.88-1.71v-3.4c0-.4-.34-.74-.75-.74"}),"HistoryRounded"),br}var O0=j0();const A0=Q(O0);var vr={},Ui;function k0(){if(Ui)return vr;Ui=1;var e=X();Object.defineProperty(vr,"__esModule",{value:!0}),vr.default=void 0;var t=e(ne()),r=ee();return vr.default=(0,t.default)((0,r.jsx)("path",{d:"M8 6.82v10.36c0 .79.87 1.27 1.54.84l8.14-5.18c.62-.39.62-1.29 0-1.69L9.54 5.98C8.87 5.55 8 6.03 8 6.82"}),"PlayArrowRounded"),vr}var I0=k0();const P0=Q(I0),bt="https://rag-flask-api.onrender.com",vt=async(e,{retries:t=3,baseDelay:r=600,label:n="request"}={})=>{var s;let o=null;for(let i=1;i<=t;i++)try{return await e()}catch(u){o=u;const h=(s=u==null?void 0:u.response)==null?void 0:s.status;if(!(h===502||h===503||h===504)||i===t)throw h&&!u.status&&(u.status=h),u;const f=r*i;console.warn(`[teachApi] ${n} attempt ${i}/${t} failed (${h}), retrying in ${f}ms...`),await new Promise(p=>setTimeout(p,f))}throw o},F0=async e=>(await vt(()=>ce.post(`${bt}/teach/start`,{chatbot_id:e},{headers:{"Content-Type":"application/json"}}),{retries:3,label:"startTeachSession"})).data,B0=async(e,t,r={})=>(await vt(()=>ce.post(`${bt}/teach/next`,{session_id:e,event:{type:t,payload:r}},{headers:{"Content-Type":"application/json"}}),{retries:3,label:`sendTeachEvent(${t})`})).data,Wi=async e=>(await vt(()=>ce.get(`${bt}/teach/state`,{params:{session_id:e}}),{retries:3,label:"getTeachState"})).data,M0=async e=>(await vt(()=>ce.get(`${bt}/teach/sessions/${e}`),{retries:3,label:"getTeachSessions"})).data,Vi=async e=>(await vt(()=>ce.get(`${bt}/teach/conversations/${e}`),{retries:3,label:"getTeachConversation"})).data,D0=async e=>(await vt(()=>ce.delete(`${bt}/teach/session/${e}`),{retries:2,label:"deleteTeachSession"})).data,$0=({sessionIds:e=[],chatbotId:t,currentSessionId:r,onSelectSession:n,disabled:o})=>{const[s,i]=F.useState(!1),[u,h]=F.useState([]),[l,f]=F.useState(!1),p=F.useRef(null),g=e&&e.length>0;F.useEffect(()=>{const v=j=>{p.current&&!p.current.contains(j.target)&&i(!1)};return s&&document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[s]),F.useEffect(()=>{if(!s||!t||!g)return;(async()=>{f(!0);try{const j=await M0(t);if(j.success&&j.sessions){const T=new Set(e),D=j.sessions.filter(C=>T.has(C.session_id));h(D)}}catch(j){console.error("Error fetching sessions:",j)}finally{f(!1)}})()},[s,t,g]);const S=()=>{o||i(v=>!v)},b=v=>{v.session_id!==r&&(i(!1),n(v.session_id))},c=v=>{if(!v)return"";const j=new Date(v),D=new Date-j,C=Math.floor(D/6e4),Y=Math.floor(D/36e5),m=Math.floor(D/864e5);return C<1?"Just now":C<60?`${C}m ago`:Y<24?`${Y}h ago`:m<7?`${m}d ago`:j.toLocaleDateString()},x={onboarding:"Getting Started",diagnostic:"Diagnostic",teaching:"In Progress",checkpoint_offer:"Checkpoint",checkpoint:"Checkpoint",revisit_recommendation:"Review",revisit:"Reviewing",completed:"Completed"};return g?a.jsxs(d.Box,{ref:p,sx:{position:"relative"},children:[a.jsx(d.Tooltip,{title:"Session history",arrow:!0,placement:"bottom",children:a.jsx(d.Box,{onClick:S,sx:{display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32,borderRadius:"50%",color:s?"white":"#0B53C0",backgroundColor:s?"#0B53C0":"rgba(11, 83, 192, 0.1)",cursor:o?"not-allowed":"pointer",opacity:o?.5:1,transition:"all 0.2s ease","&:hover":{backgroundColor:o?"rgba(11, 83, 192, 0.1)":"#0B53C0",color:o?"#0B53C0":"white"}},children:a.jsx(A0,{sx:{fontSize:"1rem"}})})}),s&&a.jsxs(d.Box,{sx:{position:"absolute",top:"calc(100% + 6px)",right:0,width:260,maxHeight:280,overflowY:"auto",backgroundColor:"white",borderRadius:"12px",border:"1px solid #CDDAFF",boxShadow:"0 8px 24px rgba(11, 83, 192, 0.15)",zIndex:10,animation:"dropdownIn 0.2s ease-out","@keyframes dropdownIn":{"0%":{opacity:0,transform:"translateY(-4px)"},"100%":{opacity:1,transform:"translateY(0)"}}},children:[a.jsx(d.Box,{sx:{px:1.5,py:1,borderBottom:"1px solid #CDDAFF"},children:a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.75rem",fontWeight:700,color:"#0B53C0",textTransform:"uppercase",letterSpacing:"0.5px"},children:"Previous Sessions"})}),l&&a.jsx(d.Box,{sx:{display:"flex",justifyContent:"center",py:2},children:a.jsx(d.CircularProgress,{size:20,sx:{color:"#0B53C0"}})}),!l&&u.length===0&&a.jsx(d.Box,{sx:{px:1.5,py:2,textAlign:"center"},children:a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.75rem",color:"#888"},children:"No sessions found"})}),!l&&u.map(v=>{const j=v.session_id===r,T=v.mode==="completed";return a.jsxs(d.Box,{onClick:()=>b(v),sx:{px:1.5,py:1,display:"flex",alignItems:"center",gap:1,cursor:j?"default":"pointer",backgroundColor:j?"rgba(11, 83, 192, 0.06)":"transparent",borderLeft:j?"3px solid #0B53C0":"3px solid transparent",transition:"all 0.15s ease","&:hover":{backgroundColor:j?"rgba(11, 83, 192, 0.06)":"rgba(11, 83, 192, 0.04)"},"&:not(:last-child)":{borderBottom:"1px solid rgba(205, 218, 255, 0.5)"}},children:[T?a.jsx(zi,{sx:{fontSize:"1rem",color:"#10B981",flexShrink:0}}):a.jsx(P0,{sx:{fontSize:"1rem",color:"#0B53C0",flexShrink:0}}),a.jsxs(d.Box,{sx:{flex:1,minWidth:0},children:[a.jsxs(d.Box,{sx:{display:"flex",alignItems:"center",gap:.5},children:[a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.78rem",fontWeight:j?700:600,color:"#333",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:v.selected_level?v.selected_level.charAt(0).toUpperCase()+v.selected_level.slice(1):"Session"}),j&&a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.6rem",fontWeight:700,color:"#0B53C0",backgroundColor:"rgba(11, 83, 192, 0.1)",borderRadius:"4px",px:.5,py:.1},children:"CURRENT"})]}),a.jsxs(d.Box,{sx:{display:"flex",alignItems:"center",gap:.5},children:[a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.68rem",color:"#888"},children:x[v.mode]||v.mode}),a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.68rem",color:"#aaa"},children:"ยท"}),a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.68rem",color:"#888"},children:c(v.last_updated||v.created_at)})]})]})]},v.session_id)})]})]}):null},Qn="teach_session_",N0=F.forwardRef(({chatbotId:e,initialSessionId:t=null,sessionIds:r=[],onSessionStart:n,onSwitchToChat:o,customToggleButton:s=null,isActive:i,showRestartButton:u=!0},h)=>{const[l,f]=F.useState(!1),[p,g]=F.useState(!1),[S,b]=F.useState(null),[c,x]=F.useState([]),[v,j]=F.useState(null),[T,D]=F.useState(null),[C,Y]=F.useState(!1),[m,_]=F.useState(!1),[E,O]=F.useState(!1),[W,U]=F.useState(null),[Z,le]=F.useState(null),[J,K]=F.useState(!1),de=F.useRef(!1),ge=F.useRef(!1),Te=F.useRef(null),y=F.useRef(n);F.useEffect(()=>{y.current=n},[n]);const R=F.useRef(t),M=d.useMediaQuery("(max-width:600px)"),N=d.useMediaQuery("(min-width:601px) and (max-width:960px)"),z=F.useRef(null);F.useEffect(()=>{Te.current=S},[S]);const A=F.useCallback(P=>{P&&typeof y.current=="function"&&(console.debug("[TeachMode] emitSessionStart โ†’",P),y.current(P))},[]),$=F.useCallback(P=>{P?localStorage.setItem(`${Qn}${e}`,P):localStorage.removeItem(`${Qn}${e}`)},[e]);F.useEffect(()=>{z.current&&z.current.scrollIntoView({behavior:"smooth"})},[c,T]),F.useEffect(()=>{i&&!l&&f(!0)},[i]),F.useEffect(()=>{const P=L=>{L.key==="Escape"&&p&&g(!1)};return window.addEventListener("keydown",P),()=>window.removeEventListener("keydown",P)},[p]),F.useEffect(()=>{if(!(l||i)||de.current||ge.current)return;de.current=!0;const L=t||localStorage.getItem(`${Qn}${e}`)||null;L?(console.debug("[TeachMode] init: attempting restore for candidate",L),V(L)):(console.debug("[TeachMode] init: no candidate id, starting new session"),B())},[l,i]),F.useEffect(()=>{R.current!==t&&(R.current=t,!(!t||t===S)&&(l||i)&&(console.debug("[TeachMode] initialSessionId changed โ†’",t),xe(t)))},[t]);const q=P=>P.map(L=>{var fe,te,Ie;if(L.role==="student"){const re={LEVEL_SELECTED:{actionType:"level",actionIcon:"school"},MCQ_ANSWER_SUBMITTED:{actionType:"mcq",actionIcon:"check"},CONTINUE:{actionType:"continue",actionIcon:"arrow"},BACK:{actionType:"back",actionIcon:"back"},CHECKPOINT_DECISION:null,REVISIT_DECISION:null},me=L.event_type;let Le=re[me];if(me==="CHECKPOINT_DECISION"){const $e=((fe=L.content)==null?void 0:fe.toLowerCase().includes("take"))||((te=L.content)==null?void 0:te.toLowerCase().includes("accept"));Le={actionType:$e?"checkpoint_accept":"checkpoint_skip",actionIcon:$e?"quiz":"skip"}}else if(me==="REVISIT_DECISION"){const $e=(Ie=L.content)==null?void 0:Ie.toLowerCase().includes("follow");Le={actionType:$e?"revisit_accept":"revisit_skip",actionIcon:$e?"revisit":"skip"}}return Le?{role:"student",message:L.content,isAction:!0,...Le}:L.intent==="META"?{role:"student",message:L.content,isAction:!0,actionType:"meta",actionIcon:"tune"}:{role:"student",message:L.content}}return{role:"tutor",message:L.content}}),k=P=>{if(!P.success&&P.error){U(P.error);return}P.chat_message&&x(fe=>[...fe,{role:"tutor",message:P.chat_message}]),P.progress&&j(P.progress);const L=P.ui||P.active_ui;L&&D(L.type==="NONE"?null:L),Y(!!P.expects_answer),P.completed&&_(!0),P.session_id&&P.session_id!==S&&(b(P.session_id),$(P.session_id))},B=async({force:P=!1}={})=>{var L;if(!P&&Te.current){console.debug("[TeachMode] startSession: SKIPPED (session already exists)",Te.current);return}if(ge.current){console.debug("[TeachMode] startSession: SKIPPED (busy)");return}ge.current=!0,console.debug("[TeachMode] startSession: creating new session..."),console.trace("[TeachMode] startSession TRACE"),O(!0),U(null);try{const fe=await F0(e);k(fe);const te=fe.session_id;te&&(Te.current=te,console.debug("[TeachMode] startSession: SUCCESS, new id =",te),A(te))}catch(fe){console.error("[TeachMode] startSession: FAILED",fe);const te=((L=fe==null?void 0:fe.response)==null?void 0:L.status)||(fe==null?void 0:fe.status);U(te===404?"Teach mode is not enabled for this chatbot yet. Use a teach-enabled chatbot ID.":te===502||te===503||te===504?"Backend is temporarily unavailable (cold start). Please try again in a moment.":"Failed to start learning session. Please try again.")}finally{O(!1),ge.current=!1}},V=async P=>{var fe,te,Ie;const L=P||S;if(!L){B();return}if(ge.current){console.debug("[TeachMode] restoreSession: SKIPPED (busy)");return}ge.current=!0,console.debug("[TeachMode] restoreSession: validating",L),O(!0),U(null);try{const[re,me]=await Promise.all([Wi(L),Vi(L).catch(()=>null)]);if(!re.success){console.debug("[TeachMode] restoreSession: state.success=false for",L,"โ†’ starting new"),I(),await B();return}console.debug("[TeachMode] restoreSession: SUCCESS for",L),me!=null&&me.success&&((fe=me.messages)==null?void 0:fe.length)>0?x(q(me.messages)):re.conversation_history&&re.conversation_history.length>0&&x(re.conversation_history.map($e=>({role:$e.role,message:$e.content||$e.message}))),re.progress&&j(re.progress);const Le=re.active_ui||re.ui;Le&&Le.type!=="NONE"&&D(Le),((te=re.progress)==null?void 0:te.mode)==="completed"&&_(!0),Te.current=L,b(L),$(L),A(L)}catch(re){const me=((Ie=re==null?void 0:re.response)==null?void 0:Ie.status)||(re==null?void 0:re.status);console.error("[TeachMode] restoreSession: FAILED for",L,"status=",me,re),me===404?(console.debug("[TeachMode] restoreSession: 404 โ†’ starting new session"),I(),await B()):me===502||me===503||me===504?U("Backend is temporarily unavailable. Your session may still exist โ€” please try again shortly."):(I(),await B())}finally{O(!1),ge.current=!1}},xe=async P=>{var L,fe,te,Ie;if(ge.current){console.debug("[TeachMode] loadExternalSession: SKIPPED (busy)");return}ge.current=!0,console.debug("[TeachMode] loadExternalSession:",P),O(!0),U(null),x([]),j(null),D(null),Y(!1),_(!1);try{const[re,me]=await Promise.all([Wi(P),Vi(P).catch(()=>null)]);if(!re.success){U("Session not found or expired."),O(!1);return}me!=null&&me.success&&((L=me.messages)==null?void 0:L.length)>0?x(q(me.messages)):((fe=re.conversation_history)==null?void 0:fe.length)>0&&x(re.conversation_history.map($e=>({role:$e.role,message:$e.content||$e.message}))),re.progress&&j(re.progress);const Le=re.active_ui||re.ui;Le&&Le.type!=="NONE"&&D(Le),((te=re.progress)==null?void 0:te.mode)==="completed"&&_(!0),Te.current=P,b(P),$(P),console.debug("[TeachMode] loadExternalSession: SUCCESS for",P),A(P)}catch(re){const me=((Ie=re==null?void 0:re.response)==null?void 0:Ie.status)||(re==null?void 0:re.status);console.error("[TeachMode] loadExternalSession: FAILED for",P,"status=",me),U(me===404?"Session no longer exists on the backend (404).":me===502||me===503||me===504?"Backend is temporarily unavailable. Please try again shortly.":"Failed to load session. Please try again.")}finally{O(!1),ge.current=!1}},I=()=>{Te.current=null,b(null),x([]),j(null),D(null),Y(!1),_(!1),$(null),de.current=!1,ge.current=!1},Oe=async()=>{ge.current||(O(!0),U(null),I(),await B({force:!0}),O(!1))},Ee=async()=>{if(!(typeof window<"u"&&!window.confirm("Restart this learning session? This will create a new session."))){O(!0),U(null);try{S&&await D0(S)}catch(P){console.error("Error deleting session:",P)}I(),await B({force:!0}),O(!1)}},Re=async(P,L={})=>{var fe;if(S){O(!0),U(null);try{const te=await B0(S,P,L);k(te)}catch(te){console.error(`Error sending ${P}:`,te);const Ie=((fe=te==null?void 0:te.response)==null?void 0:fe.status)||(te==null?void 0:te.status);U(Ie===502||Ie===503||Ie===504?"Backend is temporarily unavailable. Please try again shortly.":"Something went wrong. Please try again.")}finally{O(!1)}}},ot=(P,L)=>{const fe=P.charAt(0).toUpperCase()+P.slice(1);x(te=>[...te,{role:"student",message:fe,isAction:!0,actionType:"level",actionIcon:"school"}]),L&&x(te=>[...te,{role:"student",message:L}]),D(null),Re("LEVEL_SELECTED",{level:P,prior_knowledge_text:L})},St=P=>{x(L=>[...L,{role:"student",message:P,isAction:!0,actionType:"mcq",actionIcon:"check"}]),D(null),Re("MCQ_ANSWER_SUBMITTED",{selected_option:P})},Xn=()=>{x(P=>[...P,{role:"student",message:"Back",isAction:!0,actionType:"back",actionIcon:"back"}]),Re("BACK",{})},Zn=()=>{x(P=>[...P,{role:"student",message:"Continue",isAction:!0,actionType:"continue",actionIcon:"arrow"}]),Re("CONTINUE",{})},z0=(P,L,fe)=>{x(L==="META"?Ie=>[...Ie,{role:"student",message:P,isAction:!0,actionType:"meta",actionIcon:"tune"}]:Ie=>[...Ie,{role:"student",message:P}]);const te={message:P,intent:L};L==="META"&&fe&&(te.meta_type=fe),Re("TEXT_MESSAGE",te)},q0=P=>{x(L=>[...L,{role:"student",message:P?"Take checkpoint":"Skip",isAction:!0,actionType:P?"checkpoint_accept":"checkpoint_skip",actionIcon:P?"quiz":"skip"}]),D(null),Re("CHECKPOINT_DECISION",{accepted:P})},L0=P=>{x(L=>[...L,{role:"student",message:P?"Follow recommendation":"Skip review",isAction:!0,actionType:P?"revisit_accept":"revisit_skip",actionIcon:P?"revisit":"skip"}]),D(null),Re("REVISIT_DECISION",{accepted:P})};F.useImperativeHandle(h,()=>({createNewSession:Oe,resetSession:Ee}));const U0=()=>{o&&(le("chat"),setTimeout(()=>{le(null),o()},300))},eo=()=>{f(P=>!P),p&&g(!1)},W0=((v==null?void 0:v.mode)==="teaching"||(v==null?void 0:v.mode)==="checkpoint_offer"||(v==null?void 0:v.mode)==="revisit_recommendation"||(v==null?void 0:v.mode)==="revisit"||(v==null?void 0:v.mode)==="completed")&&!T&&!m,V0=(v==null?void 0:v.mode)==="teaching"||(v==null?void 0:v.mode)==="revisit"||(v==null?void 0:v.mode)==="checkpoint_offer",H0=l||i;return a.jsx(a.Fragment,{children:H0?a.jsxs(a.Fragment,{children:[p&&a.jsx(d.Box,{onClick:()=>g(!1),sx:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:1299}}),a.jsxs(d.Paper,{elevation:0,sx:on.chatContainer(M,N,p),children:[a.jsxs(d.Box,{sx:{backgroundColor:"#CDDAFF",px:2,py:1.5,display:"flex",flexShrink:0,alignItems:"center",justifyContent:"space-between"},children:[a.jsxs(d.Box,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[a.jsx(d.Box,{sx:{width:36,height:36,borderRadius:"50%",backgroundColor:"#0B53C0",display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx(vi,{sx:{color:"white",fontSize:"1.25rem"}})}),a.jsxs(d.Box,{children:[a.jsx(d.Typography,{sx:on.chatHeader,children:"PAT"}),a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.7rem",color:"#555",marginTop:"-2px"},children:"Guided Learning Mode"})]})]}),a.jsxs(d.Box,{sx:{display:"flex",alignItems:"center",gap:.5},children:[S&&a.jsx(d.Tooltip,{title:"Document summary",arrow:!0,placement:"bottom",children:a.jsx(d.IconButton,{onClick:()=>K(!0),sx:{color:"#0B53C0",backgroundColor:"rgba(11, 83, 192, 0.1)",width:32,height:32,"&:hover":{backgroundColor:"#0B53C0",color:"white"}},children:a.jsx(vs,{sx:{fontSize:"1rem"}})})}),a.jsx($0,{sessionIds:r,chatbotId:e,currentSessionId:S,onSelectSession:P=>xe(P),disabled:E}),S&&u&&a.jsx(d.Tooltip,{title:"Start new session",arrow:!0,placement:"bottom",children:a.jsx(d.IconButton,{onClick:Oe,disabled:E,sx:{color:"#0B53C0",backgroundColor:"rgba(11, 83, 192, 0.1)",width:32,height:32,"&:hover":{backgroundColor:"#0B53C0",color:"white"},"&:disabled":{opacity:.5}},children:a.jsx(Sf,{sx:{fontSize:"1rem"}})})}),a.jsx(d.Tooltip,{title:p?"Exit fullscreen (Esc)":"Fullscreen",arrow:!0,placement:"bottom",children:a.jsx(d.IconButton,{onClick:()=>g(!p),sx:{color:"#0B53C0",backgroundColor:"rgba(11, 83, 192, 0.1)",width:32,height:32,"&:hover":{backgroundColor:"#0B53C0",color:"white"}},children:p?a.jsx(gs,{sx:{fontSize:"1rem"}}):a.jsx(ms,{sx:{fontSize:"1rem"}})})}),a.jsx(d.IconButton,{onClick:eo,sx:{color:"#0B53C0",backgroundColor:"rgba(11, 83, 192, 0.1)",width:32,height:32,"&:hover":{backgroundColor:"#0B53C0",color:"white"}},children:a.jsx(Pn,{sx:{fontSize:"1.1rem"}})})]})]}),E&&a.jsx(d.LinearProgress,{sx:{height:3,backgroundColor:"rgba(205, 218, 255, 0.5)","& .MuiLinearProgress-bar":{backgroundColor:"#0B53C0"}}}),o&&a.jsxs(d.Box,{sx:{display:"flex",flexShrink:0,mx:1.5,mt:.75,mb:0,p:"3px",borderRadius:"12px",background:"linear-gradient(135deg, rgba(11, 83, 192, 0.06) 0%, rgba(99, 102, 241, 0.06) 100%)",border:"1px solid rgba(11, 83, 192, 0.08)",position:"relative",overflow:"hidden"},children:[a.jsx(d.Box,{sx:{position:"absolute",top:3,left:Z==="chat"?3:"calc(50%)",width:"calc(50% - 3px)",height:"calc(100% - 6px)",borderRadius:"9px",background:"white",boxShadow:"0 1px 8px rgba(11, 83, 192, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06)",transition:"left 0.3s cubic-bezier(0.4, 0, 0.2, 1)"}}),a.jsxs(d.Box,{onClick:U0,sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:.5,py:.6,zIndex:1,color:Z==="chat"?"#0B53C0":"#aaa",transition:"color 0.3s ease",borderRadius:"9px",cursor:"pointer","&:hover":{color:Z?void 0:"#666"}},children:[a.jsx(Ef,{sx:{fontSize:"0.85rem"}}),a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.75rem",fontWeight:600,letterSpacing:"0.2px"},children:"Chat"})]}),a.jsxs(d.Box,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:.5,py:.6,zIndex:1,color:Z==="chat"?"#aaa":"#0B53C0",transition:"color 0.3s ease",borderRadius:"9px",cursor:"default"},children:[a.jsx(Hr,{sx:{fontSize:"0.85rem"}}),a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.75rem",fontWeight:700,letterSpacing:"0.2px"},children:"Learn"})]})]}),v&&v.mode!=="onboarding"&&a.jsx(Of,{progress:v}),a.jsx(Kf,{messages:c,messagesEndRef:z,loading:E}),(T==null?void 0:T.type)==="LEVEL_SELECT"&&a.jsx(x0,{data:T.data,onSelect:ot,disabled:E}),(T==null?void 0:T.type)==="MCQ"&&a.jsx(w0,{data:T.data,onAnswer:St,disabled:E}),(T==null?void 0:T.type)==="CHECKPOINT_OFFER"&&a.jsx(C0,{data:T.data,onDecision:q0,disabled:E}),(T==null?void 0:T.type)==="REVISIT_RECOMMENDATION"&&a.jsx(T0,{data:T.data,onDecision:L0,disabled:E}),m&&a.jsxs(d.Box,{sx:{px:2,pb:2,display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[a.jsx(Tf,{sx:{fontSize:"2.5rem",color:"#F59E0B"}}),a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"1rem",fontWeight:700,color:"#0B53C0",textAlign:"center"},children:"You completed all the material!"})]}),W0&&a.jsx(h0,{onSendTextMessage:z0,onContinue:Zn,onBack:Xn,showBack:V0,expectsAnswer:C,disabled:E}),W&&a.jsx(d.Box,{sx:{mx:2,mb:1,p:1.5,backgroundColor:"#fef2f2",borderRadius:"10px",border:"1px solid #fecaca"},children:a.jsx(d.Typography,{sx:{fontFamily:"Gabarito, Arial, sans-serif",fontSize:"0.85rem",color:"#dc2626"},children:W})}),a.jsx(fi,{chatbotId:e,open:J,onClose:()=>K(!1)})]})]}):s?a.jsx(d.Box,{onClick:eo,sx:{cursor:"pointer"},children:s}):a.jsx(d.IconButton,{onClick:eo,sx:on.chatToggleButton,children:a.jsx(vi,{sx:{fontSize:"1.75rem"}})})})});Ne.ChatbotInterface=xf,Ne.TeachModeInterface=N0,Object.defineProperty(Ne,Symbol.toStringTag,{value:"Module"})});
95
95
  //# sourceMappingURL=chatbot-interface.umd.js.map