@malloy-publisher/server 0.9.0 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/README.docker.md +46 -5
  2. package/dist/app/api-doc.yaml +144 -54
  3. package/dist/app/assets/EnvironmentPage-B-t_QP32.js +1 -0
  4. package/dist/app/assets/{HomePage-D3MvQaZn.js → HomePage-Cpu2zMy-.js} +1 -1
  5. package/dist/app/assets/{LightMode-e1lNBfpL.js → LightMode-DOBl6awB.js} +1 -1
  6. package/dist/app/assets/MainPage-C7ySrclP.js +1 -0
  7. package/dist/app/assets/ModelPage-D8r_J-N9.js +2 -0
  8. package/dist/app/assets/PackagePage-CcVFBhnT.js +1 -0
  9. package/dist/app/assets/RenderedResult-CBLHr32C.es-DRr9Gmsz.js +141 -0
  10. package/dist/app/assets/{RouteError-BQnzPJvb.js → RouteError-mgOkv7XK.js} +1 -1
  11. package/dist/app/assets/ThemeEditorPage-CIPDs2w9.js +1 -0
  12. package/dist/app/assets/ToggleButtonGroup-CEZThrzh.js +1 -0
  13. package/dist/app/assets/{index-CCNqF0-G.js → index-Bg-M8sZz.js} +1 -1
  14. package/dist/app/assets/index-CGdwupPP.js +457 -0
  15. package/dist/app/assets/{index-CKmZ4HG7.js → index-CeLTZAFW.js} +116 -116
  16. package/dist/app/assets/{index-CdExa3Pk.js → index-DoF8ihra.js} +1 -1
  17. package/dist/app/assets/{index-ufFZR_K-.js → index-IC0jPCkR.js} +1 -1
  18. package/dist/app/assets/index.es-6eARPKZf.js +198 -0
  19. package/dist/app/index.html +1 -1
  20. package/dist/package_load_worker.mjs +571 -107
  21. package/dist/server.mjs +10356 -9719
  22. package/package.json +1 -1
  23. package/dist/app/assets/EnvironmentPage-UMS7Py4Q.js +0 -1
  24. package/dist/app/assets/MainPage-B0ozqtQO.js +0 -2
  25. package/dist/app/assets/ModelPage-lQj4Axqu.js +0 -2
  26. package/dist/app/assets/PackagePage-BT0YKNKU.js +0 -1
  27. package/dist/app/assets/RenderedResult-BRgIgxWh.es-DiE7kPNX.js +0 -136
  28. package/dist/app/assets/ThemeEditorPage-D6t7w9Js.js +0 -1
  29. package/dist/app/assets/ToggleButtonGroup-CJT2JKTC.js +0 -1
  30. package/dist/app/assets/index-TiWjmdoW.js +0 -450
  31. package/dist/app/assets/index.es-iUV0gCYk.js +0 -111
  32. package/dist/cpufeatures-1yrn0vtw.node +0 -0
@@ -0,0 +1,457 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CeLTZAFW.js","assets/index-ByieDZlo.js","assets/index-CRAwrhYM.js","assets/index-DoF8ihra.js","assets/index-Bg-M8sZz.js","assets/index-IC0jPCkR.js","assets/index-ireHUsv_.js","assets/core-B8oMW4sm.es-hOkwvru5.js","assets/engine-oniguruma-C4vnmooL.es-jdkXmgTr.js","assets/MainPage-C7ySrclP.js","assets/LightMode-DOBl6awB.js","assets/ThemeEditorPage-CIPDs2w9.js","assets/ToggleButtonGroup-CEZThrzh.js"])))=>i.map(i=>d[i]);
2
+ function o4(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(r,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();var Vye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function BD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var P1={exports:{}},Ih={};/**
3
+ * @license React
4
+ * react-jsx-runtime.production.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */var TR;function a4(){if(TR)return Ih;TR=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,a){var s=null;if(a!==void 0&&(s=""+a),o.key!==void 0&&(s=""+o.key),"key"in o){a={};for(var l in o)l!=="key"&&(a[l]=o[l])}else a=o;return o=a.ref,{$$typeof:e,type:r,key:s,ref:o!==void 0?o:null,props:a}}return Ih.Fragment=t,Ih.jsx=n,Ih.jsxs=n,Ih}var MR;function i4(){return MR||(MR=1,P1.exports=a4()),P1.exports}var m=i4(),A1={exports:{}},Hn={};/**
11
+ * @license React
12
+ * react.production.js
13
+ *
14
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */var RR;function s4(){if(RR)return Hn;RR=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),h=Symbol.iterator;function y(X){return X===null||typeof X!="object"?null:(X=h&&X[h]||X["@@iterator"],typeof X=="function"?X:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,x={};function w(X,te,ae){this.props=X,this.context=te,this.refs=x,this.updater=ae||v}w.prototype.isReactComponent={},w.prototype.setState=function(X,te){if(typeof X!="object"&&typeof X!="function"&&X!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,X,te,"setState")},w.prototype.forceUpdate=function(X){this.updater.enqueueForceUpdate(this,X,"forceUpdate")};function b(){}b.prototype=w.prototype;function k(X,te,ae){this.props=X,this.context=te,this.refs=x,this.updater=ae||v}var E=k.prototype=new b;E.constructor=k,S(E,w.prototype),E.isPureReactComponent=!0;var O=Array.isArray,$={H:null,A:null,T:null,S:null,V:null},A=Object.prototype.hasOwnProperty;function I(X,te,ae,ue,he,ie){return ae=ie.ref,{$$typeof:e,type:X,key:te,ref:ae!==void 0?ae:null,props:ie}}function j(X,te){return I(X.type,te,void 0,void 0,void 0,X.props)}function _(X){return typeof X=="object"&&X!==null&&X.$$typeof===e}function W(X){var te={"=":"=0",":":"=2"};return"$"+X.replace(/[=:]/g,function(ae){return te[ae]})}var U=/\/+/g;function T(X,te){return typeof X=="object"&&X!==null&&X.key!=null?W(""+X.key):te.toString(36)}function L(){}function F(X){switch(X.status){case"fulfilled":return X.value;case"rejected":throw X.reason;default:switch(typeof X.status=="string"?X.then(L,L):(X.status="pending",X.then(function(te){X.status==="pending"&&(X.status="fulfilled",X.value=te)},function(te){X.status==="pending"&&(X.status="rejected",X.reason=te)})),X.status){case"fulfilled":return X.value;case"rejected":throw X.reason}}throw X}function H(X,te,ae,ue,he){var ie=typeof X;(ie==="undefined"||ie==="boolean")&&(X=null);var le=!1;if(X===null)le=!0;else switch(ie){case"bigint":case"string":case"number":le=!0;break;case"object":switch(X.$$typeof){case e:case t:le=!0;break;case u:return le=X._init,H(le(X._payload),te,ae,ue,he)}}if(le)return he=he(X),le=ue===""?"."+T(X,0):ue,O(he)?(ae="",le!=null&&(ae=le.replace(U,"$&/")+"/"),H(he,te,ae,"",function(ne){return ne})):he!=null&&(_(he)&&(he=j(he,ae+(he.key==null||X&&X.key===he.key?"":(""+he.key).replace(U,"$&/")+"/")+le)),te.push(he)),1;le=0;var se=ue===""?".":ue+":";if(O(X))for(var pe=0;pe<X.length;pe++)ue=X[pe],ie=se+T(ue,pe),le+=H(ue,te,ae,ie,he);else if(pe=y(X),typeof pe=="function")for(X=pe.call(X),pe=0;!(ue=X.next()).done;)ue=ue.value,ie=se+T(ue,pe++),le+=H(ue,te,ae,ie,he);else if(ie==="object"){if(typeof X.then=="function")return H(F(X),te,ae,ue,he);throw te=String(X),Error("Objects are not valid as a React child (found: "+(te==="[object Object]"?"object with keys {"+Object.keys(X).join(", ")+"}":te)+"). If you meant to render a collection of children, use an array instead.")}return le}function D(X,te,ae){if(X==null)return X;var ue=[],he=0;return H(X,ue,"","",function(ie){return te.call(ae,ie,he++)}),ue}function K(X){if(X._status===-1){var te=X._result;te=te(),te.then(function(ae){(X._status===0||X._status===-1)&&(X._status=1,X._result=ae)},function(ae){(X._status===0||X._status===-1)&&(X._status=2,X._result=ae)}),X._status===-1&&(X._status=0,X._result=te)}if(X._status===1)return X._result.default;throw X._result}var Q=typeof reportError=="function"?reportError:function(X){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var te=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof X=="object"&&X!==null&&typeof X.message=="string"?String(X.message):String(X),error:X});if(!window.dispatchEvent(te))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",X);return}console.error(X)};function ee(){}return Hn.Children={map:D,forEach:function(X,te,ae){D(X,function(){te.apply(this,arguments)},ae)},count:function(X){var te=0;return D(X,function(){te++}),te},toArray:function(X){return D(X,function(te){return te})||[]},only:function(X){if(!_(X))throw Error("React.Children.only expected to receive a single React element child.");return X}},Hn.Component=w,Hn.Fragment=n,Hn.Profiler=o,Hn.PureComponent=k,Hn.StrictMode=r,Hn.Suspense=c,Hn.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,Hn.__COMPILER_RUNTIME={__proto__:null,c:function(X){return $.H.useMemoCache(X)}},Hn.cache=function(X){return function(){return X.apply(null,arguments)}},Hn.cloneElement=function(X,te,ae){if(X==null)throw Error("The argument must be a React element, but you passed "+X+".");var ue=S({},X.props),he=X.key,ie=void 0;if(te!=null)for(le in te.ref!==void 0&&(ie=void 0),te.key!==void 0&&(he=""+te.key),te)!A.call(te,le)||le==="key"||le==="__self"||le==="__source"||le==="ref"&&te.ref===void 0||(ue[le]=te[le]);var le=arguments.length-2;if(le===1)ue.children=ae;else if(1<le){for(var se=Array(le),pe=0;pe<le;pe++)se[pe]=arguments[pe+2];ue.children=se}return I(X.type,he,void 0,void 0,ie,ue)},Hn.createContext=function(X){return X={$$typeof:s,_currentValue:X,_currentValue2:X,_threadCount:0,Provider:null,Consumer:null},X.Provider=X,X.Consumer={$$typeof:a,_context:X},X},Hn.createElement=function(X,te,ae){var ue,he={},ie=null;if(te!=null)for(ue in te.key!==void 0&&(ie=""+te.key),te)A.call(te,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(he[ue]=te[ue]);var le=arguments.length-2;if(le===1)he.children=ae;else if(1<le){for(var se=Array(le),pe=0;pe<le;pe++)se[pe]=arguments[pe+2];he.children=se}if(X&&X.defaultProps)for(ue in le=X.defaultProps,le)he[ue]===void 0&&(he[ue]=le[ue]);return I(X,ie,void 0,void 0,null,he)},Hn.createRef=function(){return{current:null}},Hn.forwardRef=function(X){return{$$typeof:l,render:X}},Hn.isValidElement=_,Hn.lazy=function(X){return{$$typeof:u,_payload:{_status:-1,_result:X},_init:K}},Hn.memo=function(X,te){return{$$typeof:f,type:X,compare:te===void 0?null:te}},Hn.startTransition=function(X){var te=$.T,ae={};$.T=ae;try{var ue=X(),he=$.S;he!==null&&he(ae,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(ee,Q)}catch(ie){Q(ie)}finally{$.T=te}},Hn.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},Hn.use=function(X){return $.H.use(X)},Hn.useActionState=function(X,te,ae){return $.H.useActionState(X,te,ae)},Hn.useCallback=function(X,te){return $.H.useCallback(X,te)},Hn.useContext=function(X){return $.H.useContext(X)},Hn.useDebugValue=function(){},Hn.useDeferredValue=function(X,te){return $.H.useDeferredValue(X,te)},Hn.useEffect=function(X,te,ae){var ue=$.H;if(typeof ae=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ue.useEffect(X,te)},Hn.useId=function(){return $.H.useId()},Hn.useImperativeHandle=function(X,te,ae){return $.H.useImperativeHandle(X,te,ae)},Hn.useInsertionEffect=function(X,te){return $.H.useInsertionEffect(X,te)},Hn.useLayoutEffect=function(X,te){return $.H.useLayoutEffect(X,te)},Hn.useMemo=function(X,te){return $.H.useMemo(X,te)},Hn.useOptimistic=function(X,te){return $.H.useOptimistic(X,te)},Hn.useReducer=function(X,te,ae){return $.H.useReducer(X,te,ae)},Hn.useRef=function(X){return $.H.useRef(X)},Hn.useState=function(X){return $.H.useState(X)},Hn.useSyncExternalStore=function(X,te,ae){return $.H.useSyncExternalStore(X,te,ae)},Hn.useTransition=function(){return $.H.useTransition()},Hn.version="19.1.1",Hn}var OR;function yC(){return OR||(OR=1,A1.exports=s4()),A1.exports}var C=yC();const un=BD(C),rd=o4({__proto__:null,default:un},[C]);var D1={exports:{}},Lh={},j1={exports:{}},N1={};/**
19
+ * @license React
20
+ * scheduler.production.js
21
+ *
22
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */var $R;function l4(){return $R||($R=1,(function(e){function t(D,K){var Q=D.length;D.push(K);e:for(;0<Q;){var ee=Q-1>>>1,X=D[ee];if(0<o(X,K))D[ee]=K,D[Q]=X,Q=ee;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var K=D[0],Q=D.pop();if(Q!==K){D[0]=Q;e:for(var ee=0,X=D.length,te=X>>>1;ee<te;){var ae=2*(ee+1)-1,ue=D[ae],he=ae+1,ie=D[he];if(0>o(ue,Q))he<X&&0>o(ie,ue)?(D[ee]=ie,D[he]=Q,ee=he):(D[ee]=ue,D[ae]=Q,ee=ae);else if(he<X&&0>o(ie,Q))D[ee]=ie,D[he]=Q,ee=he;else break e}}return K}function o(D,K){var Q=D.sortIndex-K.sortIndex;return Q!==0?Q:D.id-K.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var c=[],f=[],u=1,h=null,y=3,v=!1,S=!1,x=!1,w=!1,b=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function O(D){for(var K=n(f);K!==null;){if(K.callback===null)r(f);else if(K.startTime<=D)r(f),K.sortIndex=K.expirationTime,t(c,K);else break;K=n(f)}}function $(D){if(x=!1,O(D),!S)if(n(c)!==null)S=!0,A||(A=!0,T());else{var K=n(f);K!==null&&H($,K.startTime-D)}}var A=!1,I=-1,j=5,_=-1;function W(){return w?!0:!(e.unstable_now()-_<j)}function U(){if(w=!1,A){var D=e.unstable_now();_=D;var K=!0;try{e:{S=!1,x&&(x=!1,k(I),I=-1),v=!0;var Q=y;try{t:{for(O(D),h=n(c);h!==null&&!(h.expirationTime>D&&W());){var ee=h.callback;if(typeof ee=="function"){h.callback=null,y=h.priorityLevel;var X=ee(h.expirationTime<=D);if(D=e.unstable_now(),typeof X=="function"){h.callback=X,O(D),K=!0;break t}h===n(c)&&r(c),O(D)}else r(c);h=n(c)}if(h!==null)K=!0;else{var te=n(f);te!==null&&H($,te.startTime-D),K=!1}}break e}finally{h=null,y=Q,v=!1}K=void 0}}finally{K?T():A=!1}}}var T;if(typeof E=="function")T=function(){E(U)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,F=L.port2;L.port1.onmessage=U,T=function(){F.postMessage(null)}}else T=function(){b(U,0)};function H(D,K){I=b(function(){D(e.unstable_now())},K)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(D){switch(y){case 1:case 2:case 3:var K=3;break;default:K=y}var Q=y;y=K;try{return D()}finally{y=Q}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(D,K){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var Q=y;y=D;try{return K()}finally{y=Q}},e.unstable_scheduleCallback=function(D,K,Q){var ee=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?ee+Q:ee):Q=ee,D){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=Q+X,D={id:u++,callback:K,priorityLevel:D,startTime:Q,expirationTime:X,sortIndex:-1},Q>ee?(D.sortIndex=Q,t(f,D),n(c)===null&&D===n(f)&&(x?(k(I),I=-1):x=!0,H($,Q-ee))):(D.sortIndex=X,t(c,D),S||v||(S=!0,A||(A=!0,T()))),D},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(D){var K=y;return function(){var Q=y;y=K;try{return D.apply(this,arguments)}finally{y=Q}}}})(N1)),N1}var PR;function c4(){return PR||(PR=1,j1.exports=l4()),j1.exports}var I1={exports:{}},ia={};/**
27
+ * @license React
28
+ * react-dom.production.js
29
+ *
30
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
31
+ *
32
+ * This source code is licensed under the MIT license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ */var AR;function u4(){if(AR)return ia;AR=1;var e=yC();function t(c){var f="https://react.dev/errors/"+c;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)f+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+c+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function a(c,f,u){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:h==null?null:""+h,children:c,containerInfo:f,implementation:u}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(c,f){if(c==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return ia.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ia.createPortal=function(c,f){var u=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return a(c,f,null,u)},ia.flushSync=function(c){var f=s.T,u=r.p;try{if(s.T=null,r.p=2,c)return c()}finally{s.T=f,r.p=u,r.d.f()}},ia.preconnect=function(c,f){typeof c=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(c,f))},ia.prefetchDNS=function(c){typeof c=="string"&&r.d.D(c)},ia.preinit=function(c,f){if(typeof c=="string"&&f&&typeof f.as=="string"){var u=f.as,h=l(u,f.crossOrigin),y=typeof f.integrity=="string"?f.integrity:void 0,v=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;u==="style"?r.d.S(c,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:h,integrity:y,fetchPriority:v}):u==="script"&&r.d.X(c,{crossOrigin:h,integrity:y,fetchPriority:v,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},ia.preinitModule=function(c,f){if(typeof c=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var u=l(f.as,f.crossOrigin);r.d.M(c,{crossOrigin:u,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(c)},ia.preload=function(c,f){if(typeof c=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var u=f.as,h=l(u,f.crossOrigin);r.d.L(c,u,{crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},ia.preloadModule=function(c,f){if(typeof c=="string")if(f){var u=l(f.as,f.crossOrigin);r.d.m(c,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:u,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(c)},ia.requestFormReset=function(c){r.d.r(c)},ia.unstable_batchedUpdates=function(c,f){return c(f)},ia.useFormState=function(c,f,u){return s.H.useFormState(c,f,u)},ia.useFormStatus=function(){return s.H.useHostTransitionStatus()},ia.version="19.1.1",ia}var DR;function UD(){if(DR)return I1.exports;DR=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),I1.exports=u4(),I1.exports}/**
35
+ * @license React
36
+ * react-dom-client.production.js
37
+ *
38
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
39
+ *
40
+ * This source code is licensed under the MIT license found in the
41
+ * LICENSE file in the root directory of this source tree.
42
+ */var jR;function d4(){if(jR)return Lh;jR=1;var e=c4(),t=yC(),n=UD();function r(i){var d="https://react.dev/errors/"+i;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)d+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+i+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function a(i){var d=i,p=i;if(i.alternate)for(;d.return;)d=d.return;else{i=d;do d=i,(d.flags&4098)!==0&&(p=d.return),i=d.return;while(i)}return d.tag===3?p:null}function s(i){if(i.tag===13){var d=i.memoizedState;if(d===null&&(i=i.alternate,i!==null&&(d=i.memoizedState)),d!==null)return d.dehydrated}return null}function l(i){if(a(i)!==i)throw Error(r(188))}function c(i){var d=i.alternate;if(!d){if(d=a(i),d===null)throw Error(r(188));return d!==i?null:i}for(var p=i,g=d;;){var M=p.return;if(M===null)break;var P=M.alternate;if(P===null){if(g=M.return,g!==null){p=g;continue}break}if(M.child===P.child){for(P=M.child;P;){if(P===p)return l(M),i;if(P===g)return l(M),d;P=P.sibling}throw Error(r(188))}if(p.return!==g.return)p=M,g=P;else{for(var Z=!1,re=M.child;re;){if(re===p){Z=!0,p=M,g=P;break}if(re===g){Z=!0,g=M,p=P;break}re=re.sibling}if(!Z){for(re=P.child;re;){if(re===p){Z=!0,p=P,g=M;break}if(re===g){Z=!0,g=P,p=M;break}re=re.sibling}if(!Z)throw Error(r(189))}}if(p.alternate!==g)throw Error(r(190))}if(p.tag!==3)throw Error(r(188));return p.stateNode.current===p?i:d}function f(i){var d=i.tag;if(d===5||d===26||d===27||d===6)return i;for(i=i.child;i!==null;){if(d=f(i),d!==null)return d;i=i.sibling}return null}var u=Object.assign,h=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),b=Symbol.for("react.provider"),k=Symbol.for("react.consumer"),E=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),W=Symbol.for("react.memo_cache_sentinel"),U=Symbol.iterator;function T(i){return i===null||typeof i!="object"?null:(i=U&&i[U]||i["@@iterator"],typeof i=="function"?i:null)}var L=Symbol.for("react.client.reference");function F(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===L?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case S:return"Fragment";case w:return"Profiler";case x:return"StrictMode";case $:return"Suspense";case A:return"SuspenseList";case _:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case v:return"Portal";case E:return(i.displayName||"Context")+".Provider";case k:return(i._context.displayName||"Context")+".Consumer";case O:var d=i.render;return i=i.displayName,i||(i=d.displayName||d.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case I:return d=i.displayName||null,d!==null?d:F(i.type)||"Memo";case j:d=i._payload,i=i._init;try{return F(i(d))}catch{}}return null}var H=Array.isArray,D=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},ee=[],X=-1;function te(i){return{current:i}}function ae(i){0>X||(i.current=ee[X],ee[X]=null,X--)}function ue(i,d){X++,ee[X]=i.current,i.current=d}var he=te(null),ie=te(null),le=te(null),se=te(null);function pe(i,d){switch(ue(le,d),ue(ie,i),ue(he,null),d.nodeType){case 9:case 11:i=(i=d.documentElement)&&(i=i.namespaceURI)?eR(i):0;break;default:if(i=d.tagName,d=d.namespaceURI)d=eR(d),i=tR(d,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}ae(he),ue(he,i)}function ne(){ae(he),ae(ie),ae(le)}function me(i){i.memoizedState!==null&&ue(se,i);var d=he.current,p=tR(d,i.type);d!==p&&(ue(ie,i),ue(he,p))}function xe(i){ie.current===i&&(ae(he),ae(ie)),se.current===i&&(ae(se),Ph._currentValue=Q)}var Se=Object.prototype.hasOwnProperty,ce=e.unstable_scheduleCallback,Ee=e.unstable_cancelCallback,Ge=e.unstable_shouldYield,Te=e.unstable_requestPaint,je=e.unstable_now,oe=e.unstable_getCurrentPriorityLevel,lt=e.unstable_ImmediatePriority,Ie=e.unstable_UserBlockingPriority,et=e.unstable_NormalPriority,mt=e.unstable_LowPriority,Wt=e.unstable_IdlePriority,zt=e.log,tt=e.unstable_setDisableYieldValue,Je=null,ct=null;function Le(i){if(typeof zt=="function"&&tt(i),ct&&typeof ct.setStrictMode=="function")try{ct.setStrictMode(Je,i)}catch{}}var ge=Math.clz32?Math.clz32:wt,qe=Math.log,De=Math.LN2;function wt(i){return i>>>=0,i===0?32:31-(qe(i)/De|0)|0}var Ct=256,yt=4194304;function st(i){var d=i&42;if(d!==0)return d;switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function jt(i,d,p){var g=i.pendingLanes;if(g===0)return 0;var M=0,P=i.suspendedLanes,Z=i.pingedLanes;i=i.warmLanes;var re=g&134217727;return re!==0?(g=re&~P,g!==0?M=st(g):(Z&=re,Z!==0?M=st(Z):p||(p=re&~i,p!==0&&(M=st(p))))):(re=g&~P,re!==0?M=st(re):Z!==0?M=st(Z):p||(p=g&~i,p!==0&&(M=st(p)))),M===0?0:d!==0&&d!==M&&(d&P)===0&&(P=M&-M,p=d&-d,P>=p||P===32&&(p&4194048)!==0)?d:M}function qt(i,d){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&d)===0}function mn(i,d){switch(i){case 1:case 2:case 4:case 8:case 64:return d+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return d+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $n(){var i=Ct;return Ct<<=1,(Ct&4194048)===0&&(Ct=256),i}function _n(){var i=yt;return yt<<=1,(yt&62914560)===0&&(yt=4194304),i}function Un(i){for(var d=[],p=0;31>p;p++)d.push(i);return d}function Jt(i,d){i.pendingLanes|=d,d!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function Dn(i,d,p,g,M,P){var Z=i.pendingLanes;i.pendingLanes=p,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=p,i.entangledLanes&=p,i.errorRecoveryDisabledLanes&=p,i.shellSuspendCounter=0;var re=i.entanglements,we=i.expirationTimes,Ye=i.hiddenUpdates;for(p=Z&~p;0<p;){var pt=31-ge(p),vt=1<<pt;re[pt]=0,we[pt]=-1;var Ke=Ye[pt];if(Ke!==null)for(Ye[pt]=null,pt=0;pt<Ke.length;pt++){var Xe=Ke[pt];Xe!==null&&(Xe.lane&=-536870913)}p&=~vt}g!==0&&Ce(i,g,0),P!==0&&M===0&&i.tag!==0&&(i.suspendedLanes|=P&~(Z&~d))}function Ce(i,d,p){i.pendingLanes|=d,i.suspendedLanes&=~d;var g=31-ge(d);i.entangledLanes|=d,i.entanglements[g]=i.entanglements[g]|1073741824|p&4194090}function Vn(i,d){var p=i.entangledLanes|=d;for(i=i.entanglements;p;){var g=31-ge(p),M=1<<g;M&d|i[g]&d&&(i[g]|=d),p&=~M}}function Mn(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function en(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function $t(){var i=K.p;return i!==0?i:(i=window.event,i===void 0?32:xR(i.type))}function Fr(i,d){var p=K.p;try{return K.p=i,d()}finally{K.p=p}}var Fn=Math.random().toString(36).slice(2),on="__reactFiber$"+Fn,Ln="__reactProps$"+Fn,ye="__reactContainer$"+Fn,Me="__reactEvents$"+Fn,ze="__reactListeners$"+Fn,Ve="__reactHandles$"+Fn,rt="__reactResources$"+Fn,kt="__reactMarker$"+Fn;function bt(i){delete i[on],delete i[Ln],delete i[Me],delete i[ze],delete i[Ve]}function Et(i){var d=i[on];if(d)return d;for(var p=i.parentNode;p;){if(d=p[ye]||p[on]){if(p=d.alternate,d.child!==null||p!==null&&p.child!==null)for(i=aR(i);i!==null;){if(p=i[on])return p;i=aR(i)}return d}i=p,p=i.parentNode}return null}function Pt(i){if(i=i[on]||i[ye]){var d=i.tag;if(d===5||d===6||d===13||d===26||d===27||d===3)return i}return null}function Kt(i){var d=i.tag;if(d===5||d===26||d===27||d===6)return i.stateNode;throw Error(r(33))}function At(i){var d=i[rt];return d||(d=i[rt]={hoistableStyles:new Map,hoistableScripts:new Map}),d}function Ft(i){i[kt]=!0}var de=new Set,fe={};function Fe(i,d){ft(i,d),ft(i+"Capture",d)}function ft(i,d){for(fe[i]=d,i=0;i<d.length;i++)de.add(d[i])}var Ue=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ot={},Yt={};function nn(i){return Se.call(Yt,i)?!0:Se.call(Ot,i)?!1:Ue.test(i)?Yt[i]=!0:(Ot[i]=!0,!1)}function ve(i,d,p){if(nn(d))if(p===null)i.removeAttribute(d);else{switch(typeof p){case"undefined":case"function":case"symbol":i.removeAttribute(d);return;case"boolean":var g=d.toLowerCase().slice(0,5);if(g!=="data-"&&g!=="aria-"){i.removeAttribute(d);return}}i.setAttribute(d,""+p)}}function Re(i,d,p){if(p===null)i.removeAttribute(d);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(d);return}i.setAttribute(d,""+p)}}function it(i,d,p,g){if(g===null)i.removeAttribute(p);else{switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(p);return}i.setAttributeNS(d,p,""+g)}}var xt,Tt;function Mt(i){if(xt===void 0)try{throw Error()}catch(p){var d=p.stack.trim().match(/\n( *(at )?)/);xt=d&&d[1]||"",Tt=-1<p.stack.indexOf(`
43
+ at`)?" (<anonymous>)":-1<p.stack.indexOf("@")?"@unknown:0:0":""}return`
44
+ `+xt+i+Tt}var Dt=!1;function Zt(i,d){if(!i||Dt)return"";Dt=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var g={DetermineComponentFrameRoot:function(){try{if(d){var vt=function(){throw Error()};if(Object.defineProperty(vt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(vt,[])}catch(Xe){var Ke=Xe}Reflect.construct(i,[],vt)}else{try{vt.call()}catch(Xe){Ke=Xe}i.call(vt.prototype)}}else{try{throw Error()}catch(Xe){Ke=Xe}(vt=i())&&typeof vt.catch=="function"&&vt.catch(function(){})}}catch(Xe){if(Xe&&Ke&&typeof Xe.stack=="string")return[Xe.stack,Ke.stack]}return[null,null]}};g.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var M=Object.getOwnPropertyDescriptor(g.DetermineComponentFrameRoot,"name");M&&M.configurable&&Object.defineProperty(g.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var P=g.DetermineComponentFrameRoot(),Z=P[0],re=P[1];if(Z&&re){var we=Z.split(`
45
+ `),Ye=re.split(`
46
+ `);for(M=g=0;g<we.length&&!we[g].includes("DetermineComponentFrameRoot");)g++;for(;M<Ye.length&&!Ye[M].includes("DetermineComponentFrameRoot");)M++;if(g===we.length||M===Ye.length)for(g=we.length-1,M=Ye.length-1;1<=g&&0<=M&&we[g]!==Ye[M];)M--;for(;1<=g&&0<=M;g--,M--)if(we[g]!==Ye[M]){if(g!==1||M!==1)do if(g--,M--,0>M||we[g]!==Ye[M]){var pt=`
47
+ `+we[g].replace(" at new "," at ");return i.displayName&&pt.includes("<anonymous>")&&(pt=pt.replace("<anonymous>",i.displayName)),pt}while(1<=g&&0<=M);break}}}finally{Dt=!1,Error.prepareStackTrace=p}return(p=i?i.displayName||i.name:"")?Mt(p):""}function bn(i){switch(i.tag){case 26:case 27:case 5:return Mt(i.type);case 16:return Mt("Lazy");case 13:return Mt("Suspense");case 19:return Mt("SuspenseList");case 0:case 15:return Zt(i.type,!1);case 11:return Zt(i.type.render,!1);case 1:return Zt(i.type,!0);case 31:return Mt("Activity");default:return""}}function nr(i){try{var d="";do d+=bn(i),i=i.return;while(i);return d}catch(p){return`
48
+ Error generating stack: `+p.message+`
49
+ `+p.stack}}function Xt(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function Ar(i){var d=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(d==="checkbox"||d==="radio")}function so(i){var d=Ar(i)?"checked":"value",p=Object.getOwnPropertyDescriptor(i.constructor.prototype,d),g=""+i[d];if(!i.hasOwnProperty(d)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var M=p.get,P=p.set;return Object.defineProperty(i,d,{configurable:!0,get:function(){return M.call(this)},set:function(Z){g=""+Z,P.call(this,Z)}}),Object.defineProperty(i,d,{enumerable:p.enumerable}),{getValue:function(){return g},setValue:function(Z){g=""+Z},stopTracking:function(){i._valueTracker=null,delete i[d]}}}}function To(i){i._valueTracker||(i._valueTracker=so(i))}function is(i){if(!i)return!1;var d=i._valueTracker;if(!d)return!0;var p=d.getValue(),g="";return i&&(g=Ar(i)?i.checked?"true":"false":i.value),i=g,i!==p?(d.setValue(i),!0):!1}function na(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var ur=/[\n"\\]/g;function _r(i){return i.replace(ur,function(d){return"\\"+d.charCodeAt(0).toString(16)+" "})}function Ga(i,d,p,g,M,P,Z,re){i.name="",Z!=null&&typeof Z!="function"&&typeof Z!="symbol"&&typeof Z!="boolean"?i.type=Z:i.removeAttribute("type"),d!=null?Z==="number"?(d===0&&i.value===""||i.value!=d)&&(i.value=""+Xt(d)):i.value!==""+Xt(d)&&(i.value=""+Xt(d)):Z!=="submit"&&Z!=="reset"||i.removeAttribute("value"),d!=null?ss(i,Z,Xt(d)):p!=null?ss(i,Z,Xt(p)):g!=null&&i.removeAttribute("value"),M==null&&P!=null&&(i.defaultChecked=!!P),M!=null&&(i.checked=M&&typeof M!="function"&&typeof M!="symbol"),re!=null&&typeof re!="function"&&typeof re!="symbol"&&typeof re!="boolean"?i.name=""+Xt(re):i.removeAttribute("name")}function pl(i,d,p,g,M,P,Z,re){if(P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"&&(i.type=P),d!=null||p!=null){if(!(P!=="submit"&&P!=="reset"||d!=null))return;p=p!=null?""+Xt(p):"",d=d!=null?""+Xt(d):p,re||d===i.value||(i.value=d),i.defaultValue=d}g=g??M,g=typeof g!="function"&&typeof g!="symbol"&&!!g,i.checked=re?i.checked:!!g,i.defaultChecked=!!g,Z!=null&&typeof Z!="function"&&typeof Z!="symbol"&&typeof Z!="boolean"&&(i.name=Z)}function ss(i,d,p){d==="number"&&na(i.ownerDocument)===i||i.defaultValue===""+p||(i.defaultValue=""+p)}function Ti(i,d,p,g){if(i=i.options,d){d={};for(var M=0;M<p.length;M++)d["$"+p[M]]=!0;for(p=0;p<i.length;p++)M=d.hasOwnProperty("$"+i[p].value),i[p].selected!==M&&(i[p].selected=M),M&&g&&(i[p].defaultSelected=!0)}else{for(p=""+Xt(p),d=null,M=0;M<i.length;M++){if(i[M].value===p){i[M].selected=!0,g&&(i[M].defaultSelected=!0);return}d!==null||i[M].disabled||(d=i[M])}d!==null&&(d.selected=!0)}}function ou(i,d,p){if(d!=null&&(d=""+Xt(d),d!==i.value&&(i.value=d),p==null)){i.defaultValue!==d&&(i.defaultValue=d);return}i.defaultValue=p!=null?""+Xt(p):""}function hl(i,d,p,g){if(d==null){if(g!=null){if(p!=null)throw Error(r(92));if(H(g)){if(1<g.length)throw Error(r(93));g=g[0]}p=g}p==null&&(p=""),d=p}p=Xt(d),i.defaultValue=p,g=i.textContent,g===p&&g!==""&&g!==null&&(i.value=g)}function ls(i,d){if(d){var p=i.firstChild;if(p&&p===i.lastChild&&p.nodeType===3){p.nodeValue=d;return}}i.textContent=d}var Zl=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Ps(i,d,p){var g=d.indexOf("--")===0;p==null||typeof p=="boolean"||p===""?g?i.setProperty(d,""):d==="float"?i.cssFloat="":i[d]="":g?i.setProperty(d,p):typeof p!="number"||p===0||Zl.has(d)?d==="float"?i.cssFloat=p:i[d]=(""+p).trim():i[d]=p+"px"}function ml(i,d,p){if(d!=null&&typeof d!="object")throw Error(r(62));if(i=i.style,p!=null){for(var g in p)!p.hasOwnProperty(g)||d!=null&&d.hasOwnProperty(g)||(g.indexOf("--")===0?i.setProperty(g,""):g==="float"?i.cssFloat="":i[g]="");for(var M in d)g=d[M],d.hasOwnProperty(M)&&p[M]!==g&&Ps(i,M,g)}else for(var P in d)d.hasOwnProperty(P)&&Ps(i,P,d[P])}function au(i){if(i.indexOf("-")===-1)return!1;switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Td=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Np=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function gl(i){return Np.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var Jl=null;function ec(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var As=null,cs=null;function iu(i){var d=Pt(i);if(d&&(i=d.stateNode)){var p=i[Ln]||null;e:switch(i=d.stateNode,d.type){case"input":if(Ga(i,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name),d=p.name,p.type==="radio"&&d!=null){for(p=i;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll('input[name="'+_r(""+d)+'"][type="radio"]'),d=0;d<p.length;d++){var g=p[d];if(g!==i&&g.form===i.form){var M=g[Ln]||null;if(!M)throw Error(r(90));Ga(g,M.value,M.defaultValue,M.defaultValue,M.checked,M.defaultChecked,M.type,M.name)}}for(d=0;d<p.length;d++)g=p[d],g.form===i.form&&is(g)}break e;case"textarea":ou(i,p.value,p.defaultValue);break e;case"select":d=p.value,d!=null&&Ti(i,!!p.multiple,d,!1)}}}var su=!1;function Md(i,d,p){if(su)return i(d,p);su=!0;try{var g=i(d);return g}finally{if(su=!1,(As!==null||cs!==null)&&($y(),As&&(d=As,i=cs,cs=As=null,iu(d),i)))for(d=0;d<i.length;d++)iu(i[d])}}function yl(i,d){var p=i.stateNode;if(p===null)return null;var g=p[Ln]||null;if(g===null)return null;p=g[d];e:switch(d){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(g=!g.disabled)||(i=i.type,g=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!g;break e;default:i=!1}if(i)return null;if(p&&typeof p!="function")throw Error(r(231,d,typeof p));return p}var Ra=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lu=!1;if(Ra)try{var vl={};Object.defineProperty(vl,"passive",{get:function(){lu=!0}}),window.addEventListener("test",vl,vl),window.removeEventListener("test",vl,vl)}catch{lu=!1}var Mi=null,cu=null,tc=null;function uu(){if(tc)return tc;var i,d=cu,p=d.length,g,M="value"in Mi?Mi.value:Mi.textContent,P=M.length;for(i=0;i<p&&d[i]===M[i];i++);var Z=p-i;for(g=1;g<=Z&&d[p-g]===M[P-g];g++);return tc=M.slice(i,1<g?1-g:void 0)}function nc(i){var d=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&d===13&&(i=13)):i=d,i===10&&(i=13),32<=i||i===13?i:0}function no(){return!0}function du(){return!1}function N(i){function d(p,g,M,P,Z){this._reactName=p,this._targetInst=M,this.type=g,this.nativeEvent=P,this.target=Z,this.currentTarget=null;for(var re in i)i.hasOwnProperty(re)&&(p=i[re],this[re]=p?p(P):P[re]);return this.isDefaultPrevented=(P.defaultPrevented!=null?P.defaultPrevented:P.returnValue===!1)?no:du,this.isPropagationStopped=du,this}return u(d.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=no)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=no)},persist:function(){},isPersistent:no}),d}var xo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ro=N(xo),Ka=u({},xo,{view:0,detail:0}),Oe=N(Ka),us,jn,zo,Ds=u({},Ka,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xl,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==zo&&(zo&&i.type==="mousemove"?(us=i.screenX-zo.screenX,jn=i.screenY-zo.screenY):jn=us=0,zo=i),us)},movementY:function(i){return"movementY"in i?i.movementY:jn}}),fu=N(Ds),Rd=u({},Ds,{dataTransfer:0}),Od=N(Rd),Ze=u({},Ka,{relatedTarget:0}),pu=N(Ze),hu=u({},xo,{animationName:0,elapsedTime:0,pseudoElement:0}),rc=N(hu),$d=u({},xo,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),js=N($d),bl=u({},xo,{data:0}),ds=N(bl),Ns={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ra={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Ip={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Lp(i){var d=this.nativeEvent;return d.getModifierState?d.getModifierState(i):(i=Ip[i])?!!d[i]:!1}function xl(){return Lp}var Pd=u({},Ka,{key:function(i){if(i.key){var d=Ns[i.key]||i.key;if(d!=="Unidentified")return d}return i.type==="keypress"?(i=nc(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?ra[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xl,charCode:function(i){return i.type==="keypress"?nc(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?nc(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),mu=N(Pd),zp=u({},Ds,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ad=N(zp),Fp=u({},Ka,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xl}),Dd=N(Fp),gu=u({},xo,{propertyName:0,elapsedTime:0,pseudoElement:0}),_p=N(gu),oc=u({},Ds,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),Bp=N(oc),Up=u({},xo,{newState:0,oldState:0}),Vp=N(Up),Hp=[9,13,27,32],yu=Ra&&"CompositionEvent"in window,Is=null;Ra&&"documentMode"in document&&(Is=document.documentMode);var Wp=Ra&&"TextEvent"in window&&!Is,jd=Ra&&(!yu||Is&&8<Is&&11>=Is),Nd=" ",Id=!1;function Ld(i,d){switch(i){case"keyup":return Hp.indexOf(d.keyCode)!==-1;case"keydown":return d.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zd(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Ls=!1;function qp(i,d){switch(i){case"compositionend":return zd(d);case"keypress":return d.which!==32?null:(Id=!0,Nd);case"textInput":return i=d.data,i===Nd&&Id?null:i;default:return null}}function Yp(i,d){if(Ls)return i==="compositionend"||!yu&&Ld(i,d)?(i=uu(),tc=cu=Mi=null,Ls=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(d.ctrlKey||d.altKey||d.metaKey)||d.ctrlKey&&d.altKey){if(d.char&&1<d.char.length)return d.char;if(d.which)return String.fromCharCode(d.which)}return null;case"compositionend":return jd&&d.locale!=="ko"?null:d.data;default:return null}}var Gp={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Fd(i){var d=i&&i.nodeName&&i.nodeName.toLowerCase();return d==="input"?!!Gp[i.type]:d==="textarea"}function _d(i,d,p,g){As?cs?cs.push(g):cs=[g]:As=g,d=Iy(d,"onChange"),0<d.length&&(p=new ro("onChange","change",null,p,g),i.push({event:p,listeners:d}))}var Sl=null,rr=null;function fs(i){KM(i,0)}function Gr(i){var d=Kt(i);if(is(d))return i}function B(i,d){if(i==="change")return d}var G=!1;if(Ra){var q;if(Ra){var ke="oninput"in document;if(!ke){var Qt=document.createElement("div");Qt.setAttribute("oninput","return;"),ke=typeof Qt.oninput=="function"}q=ke}else q=!1;G=q&&(!document.documentMode||9<document.documentMode)}function Ht(){Sl&&(Sl.detachEvent("onpropertychange",Rn),rr=Sl=null)}function Rn(i){if(i.propertyName==="value"&&Gr(rr)){var d=[];_d(d,rr,i,ec(i)),Md(fs,d)}}function Yn(i,d,p){i==="focusin"?(Ht(),Sl=d,rr=p,Sl.attachEvent("onpropertychange",Rn)):i==="focusout"&&Ht()}function Gn(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Gr(rr)}function Gt(i,d){if(i==="click")return Gr(d)}function wr(i,d){if(i==="input"||i==="change")return Gr(d)}function Cr(i,d){return i===d&&(i!==0||1/i===1/d)||i!==i&&d!==d}var ln=typeof Object.is=="function"?Object.is:Cr;function gr(i,d){if(ln(i,d))return!0;if(typeof i!="object"||i===null||typeof d!="object"||d===null)return!1;var p=Object.keys(i),g=Object.keys(d);if(p.length!==g.length)return!1;for(g=0;g<p.length;g++){var M=p[g];if(!Se.call(d,M)||!ln(i[M],d[M]))return!1}return!0}function Ur(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Hr(i,d){var p=Ur(i);i=0;for(var g;p;){if(p.nodeType===3){if(g=i+p.textContent.length,i<=d&&g>=d)return{node:p,offset:d-i};i=g}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=Ur(p)}}function Qa(i,d){return i&&d?i===d?!0:i&&i.nodeType===3?!1:d&&d.nodeType===3?Qa(i,d.parentNode):"contains"in i?i.contains(d):i.compareDocumentPosition?!!(i.compareDocumentPosition(d)&16):!1:!1}function ma(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var d=na(i.document);d instanceof i.HTMLIFrameElement;){try{var p=typeof d.contentWindow.location.href=="string"}catch{p=!1}if(p)i=d.contentWindow;else break;d=na(i.document)}return d}function zn(i){var d=i&&i.nodeName&&i.nodeName.toLowerCase();return d&&(d==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||d==="textarea"||i.contentEditable==="true")}var wl=Ra&&"documentMode"in document&&11>=document.documentMode,ga=null,ps=null,oa=null,oo=!1;function Cl(i,d,p){var g=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;oo||ga==null||ga!==na(g)||(g=ga,"selectionStart"in g&&zn(g)?g={start:g.selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),oa&&gr(oa,g)||(oa=g,g=Iy(ps,"onSelect"),0<g.length&&(d=new ro("onSelect","select",null,d,p),i.push({event:d,listeners:g}),d.target=ga)))}function So(i,d){var p={};return p[i.toLowerCase()]=d.toLowerCase(),p["Webkit"+i]="webkit"+d,p["Moz"+i]="moz"+d,p}var ac={animationend:So("Animation","AnimationEnd"),animationiteration:So("Animation","AnimationIteration"),animationstart:So("Animation","AnimationStart"),transitionrun:So("Transition","TransitionRun"),transitionstart:So("Transition","TransitionStart"),transitioncancel:So("Transition","TransitionCancel"),transitionend:So("Transition","TransitionEnd")},Kp={},Jg={};Ra&&(Jg=document.createElement("div").style,"AnimationEvent"in window||(delete ac.animationend.animation,delete ac.animationiteration.animation,delete ac.animationstart.animation),"TransitionEvent"in window||delete ac.transitionend.transition);function kl(i){if(Kp[i])return Kp[i];if(!ac[i])return i;var d=ac[i],p;for(p in d)if(d.hasOwnProperty(p)&&p in Jg)return Kp[i]=d[p];return i}var ey=kl("animationend"),ty=kl("animationiteration"),ny=kl("animationstart"),Qp=kl("transitionrun"),rx=kl("transitionstart"),ox=kl("transitioncancel"),Xp=kl("transitionend"),Zp=new Map,Bd="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Bd.push("scrollEnd");function Xa(i,d){Zp.set(i,d),Fe(d,[i])}var Jp=new WeakMap;function aa(i,d){if(typeof i=="object"&&i!==null){var p=Jp.get(i);return p!==void 0?p:(d={value:i,source:d,stack:nr(d)},Jp.set(i,d),d)}return{value:i,source:d,stack:nr(d)}}var ya=[],Ri=0,vu=0;function ic(){for(var i=Ri,d=vu=Ri=0;d<i;){var p=ya[d];ya[d++]=null;var g=ya[d];ya[d++]=null;var M=ya[d];ya[d++]=null;var P=ya[d];if(ya[d++]=null,g!==null&&M!==null){var Z=g.pending;Z===null?M.next=M:(M.next=Z.next,Z.next=M),g.pending=M}P!==0&&bu(p,M,P)}}function Oi(i,d,p,g){ya[Ri++]=i,ya[Ri++]=d,ya[Ri++]=p,ya[Ri++]=g,vu|=g,i.lanes|=g,i=i.alternate,i!==null&&(i.lanes|=g)}function Ud(i,d,p,g){return Oi(i,d,p,g),xu(i)}function hs(i,d){return Oi(i,null,null,d),xu(i)}function bu(i,d,p){i.lanes|=p;var g=i.alternate;g!==null&&(g.lanes|=p);for(var M=!1,P=i.return;P!==null;)P.childLanes|=p,g=P.alternate,g!==null&&(g.childLanes|=p),P.tag===22&&(i=P.stateNode,i===null||i._visibility&1||(M=!0)),i=P,P=P.return;return i.tag===3?(P=i.stateNode,M&&d!==null&&(M=31-ge(p),i=P.hiddenUpdates,g=i[M],g===null?i[M]=[d]:g.push(d),d.lane=p|536870912),P):null}function xu(i){if(50<Ch)throw Ch=0,t1=null,Error(r(185));for(var d=i.return;d!==null;)i=d,d=i.return;return i.tag===3?i.stateNode:null}var Za={};function Vd(i,d,p,g){this.tag=i,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=d,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function qo(i,d,p,g){return new Vd(i,d,p,g)}function Hd(i){return i=i.prototype,!(!i||!i.isReactComponent)}function $i(i,d){var p=i.alternate;return p===null?(p=qo(i.tag,d,i.key,i.mode),p.elementType=i.elementType,p.type=i.type,p.stateNode=i.stateNode,p.alternate=i,i.alternate=p):(p.pendingProps=d,p.type=i.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=i.flags&65011712,p.childLanes=i.childLanes,p.lanes=i.lanes,p.child=i.child,p.memoizedProps=i.memoizedProps,p.memoizedState=i.memoizedState,p.updateQueue=i.updateQueue,d=i.dependencies,p.dependencies=d===null?null:{lanes:d.lanes,firstContext:d.firstContext},p.sibling=i.sibling,p.index=i.index,p.ref=i.ref,p.refCleanup=i.refCleanup,p}function ry(i,d){i.flags&=65011714;var p=i.alternate;return p===null?(i.childLanes=0,i.lanes=d,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=p.childLanes,i.lanes=p.lanes,i.child=p.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=p.memoizedProps,i.memoizedState=p.memoizedState,i.updateQueue=p.updateQueue,i.type=p.type,d=p.dependencies,i.dependencies=d===null?null:{lanes:d.lanes,firstContext:d.firstContext}),i}function Wd(i,d,p,g,M,P){var Z=0;if(g=i,typeof i=="function")Hd(i)&&(Z=1);else if(typeof i=="string")Z=WF(i,p,he.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case _:return i=qo(31,p,d,M),i.elementType=_,i.lanes=P,i;case S:return Pi(p.children,M,P,d);case x:Z=8,M|=24;break;case w:return i=qo(12,p,d,M|2),i.elementType=w,i.lanes=P,i;case $:return i=qo(13,p,d,M),i.elementType=$,i.lanes=P,i;case A:return i=qo(19,p,d,M),i.elementType=A,i.lanes=P,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case b:case E:Z=10;break e;case k:Z=9;break e;case O:Z=11;break e;case I:Z=14;break e;case j:Z=16,g=null;break e}Z=29,p=Error(r(130,i===null?"null":typeof i,"")),g=null}return d=qo(Z,p,d,M),d.elementType=i,d.type=g,d.lanes=P,d}function Pi(i,d,p,g){return i=qo(7,i,g,d),i.lanes=p,i}function eh(i,d,p){return i=qo(6,i,null,d),i.lanes=p,i}function th(i,d,p){return d=qo(4,i.children!==null?i.children:[],i.key,d),d.lanes=p,d.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},d}var ms=[],El=0,qd=null,Su=0,va=[],ba=0,Ja=null,ei=1,yn="";function ti(i,d){ms[El++]=Su,ms[El++]=qd,qd=i,Su=d}function oy(i,d,p){va[ba++]=ei,va[ba++]=yn,va[ba++]=Ja,Ja=i;var g=ei;i=yn;var M=32-ge(g)-1;g&=~(1<<M),p+=1;var P=32-ge(d)+M;if(30<P){var Z=M-M%5;P=(g&(1<<Z)-1).toString(32),g>>=Z,M-=Z,ei=1<<32-ge(d)+M|p<<M|g,yn=P+i}else ei=1<<P|p<<M|g,yn=i}function V(i){i.return!==null&&(ti(i,1),oy(i,1,0))}function R(i){for(;i===qd;)qd=ms[--El],ms[El]=null,Su=ms[--El],ms[El]=null;for(;i===Ja;)Ja=va[--ba],va[ba]=null,yn=va[--ba],va[ba]=null,ei=va[--ba],va[ba]=null}var z=null,Y=null,J=!1,be=null,Pe=!1,_e=Error(r(519));function We(i){var d=Error(r(418,""));throw Kr(aa(d,i)),_e}function Rt(i){var d=i.stateNode,p=i.type,g=i.memoizedProps;switch(d[on]=i,d[Ln]=g,p){case"dialog":ar("cancel",d),ar("close",d);break;case"iframe":case"object":case"embed":ar("load",d);break;case"video":case"audio":for(p=0;p<Eh.length;p++)ar(Eh[p],d);break;case"source":ar("error",d);break;case"img":case"image":case"link":ar("error",d),ar("load",d);break;case"details":ar("toggle",d);break;case"input":ar("invalid",d),pl(d,g.value,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name,!0),To(d);break;case"select":ar("invalid",d);break;case"textarea":ar("invalid",d),hl(d,g.value,g.defaultValue,g.children),To(d)}p=g.children,typeof p!="string"&&typeof p!="number"&&typeof p!="bigint"||d.textContent===""+p||g.suppressHydrationWarning===!0||JM(d.textContent,p)?(g.popover!=null&&(ar("beforetoggle",d),ar("toggle",d)),g.onScroll!=null&&ar("scroll",d),g.onScrollEnd!=null&&ar("scrollend",d),g.onClick!=null&&(d.onclick=Ly),d=!0):d=!1,d||We(i)}function vn(i){for(z=i.return;z;)switch(z.tag){case 5:case 13:Pe=!1;return;case 27:case 3:Pe=!0;return;default:z=z.return}}function Nn(i){if(i!==z)return!1;if(!J)return vn(i),J=!0,!1;var d=i.tag,p;if((p=d!==3&&d!==27)&&((p=d===5)&&(p=i.type,p=!(p!=="form"&&p!=="button")||y1(i.type,i.memoizedProps)),p=!p),p&&Y&&We(i),vn(i),d===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,d=0;i;){if(i.nodeType===8)if(p=i.data,p==="/$"){if(d===0){Y=ys(i.nextSibling);break e}d--}else p!=="$"&&p!=="$!"&&p!=="$?"||d++;i=i.nextSibling}Y=null}}else d===27?(d=Y,Sc(i.type)?(i=S1,S1=null,Y=i):Y=d):Y=z?ys(i.stateNode.nextSibling):null;return!0}function dr(){Y=z=null,J=!1}function Sn(){var i=be;return i!==null&&(ja===null?ja=i:ja.push.apply(ja,i),be=null),i}function Kr(i){be===null?be=[i]:be.push(i)}var Fo=te(null),Oa=null,$a=null;function Pa(i,d,p){ue(Fo,d._currentValue),d._currentValue=p}function Ai(i){i._currentValue=Fo.current,ae(Fo)}function nh(i,d,p){for(;i!==null;){var g=i.alternate;if((i.childLanes&d)!==d?(i.childLanes|=d,g!==null&&(g.childLanes|=d)):g!==null&&(g.childLanes&d)!==d&&(g.childLanes|=d),i===p)break;i=i.return}}function Yd(i,d,p,g){var M=i.child;for(M!==null&&(M.return=i);M!==null;){var P=M.dependencies;if(P!==null){var Z=M.child;P=P.firstContext;e:for(;P!==null;){var re=P;P=M;for(var we=0;we<d.length;we++)if(re.context===d[we]){P.lanes|=p,re=P.alternate,re!==null&&(re.lanes|=p),nh(P.return,p,i),g||(Z=null);break e}P=re.next}}else if(M.tag===18){if(Z=M.return,Z===null)throw Error(r(341));Z.lanes|=p,P=Z.alternate,P!==null&&(P.lanes|=p),nh(Z,p,i),Z=null}else Z=M.child;if(Z!==null)Z.return=M;else for(Z=M;Z!==null;){if(Z===i){Z=null;break}if(M=Z.sibling,M!==null){M.return=Z.return,Z=M;break}Z=Z.return}M=Z}}function wu(i,d,p,g){i=null;for(var M=d,P=!1;M!==null;){if(!P){if((M.flags&524288)!==0)P=!0;else if((M.flags&262144)!==0)break}if(M.tag===10){var Z=M.alternate;if(Z===null)throw Error(r(387));if(Z=Z.memoizedProps,Z!==null){var re=M.type;ln(M.pendingProps.value,Z.value)||(i!==null?i.push(re):i=[re])}}else if(M===se.current){if(Z=M.alternate,Z===null)throw Error(r(387));Z.memoizedState.memoizedState!==M.memoizedState.memoizedState&&(i!==null?i.push(Ph):i=[Ph])}M=M.return}i!==null&&Yd(d,i,p,g),d.flags|=262144}function Gd(i){for(i=i.firstContext;i!==null;){if(!ln(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Tl(i){Oa=i,$a=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function lo(i){return ay(Oa,i)}function zs(i,d){return Oa===null&&Tl(i),ay(i,d)}function ay(i,d){var p=d._currentValue;if(d={context:d,memoizedValue:p,next:null},$a===null){if(i===null)throw Error(r(308));$a=d,i.dependencies={lanes:0,firstContext:d},i.flags|=524288}else $a=$a.next=d;return p}var H5=typeof AbortController<"u"?AbortController:function(){var i=[],d=this.signal={aborted:!1,addEventListener:function(p,g){i.push(g)}};this.abort=function(){d.aborted=!0,i.forEach(function(p){return p()})}},W5=e.unstable_scheduleCallback,q5=e.unstable_NormalPriority,Do={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ax(){return{controller:new H5,data:new Map,refCount:0}}function rh(i){i.refCount--,i.refCount===0&&W5(q5,function(){i.controller.abort()})}var oh=null,ix=0,Kd=0,Qd=null;function Y5(i,d){if(oh===null){var p=oh=[];ix=0,Kd=l1(),Qd={status:"pending",value:void 0,then:function(g){p.push(g)}}}return ix++,d.then(_E,_E),d}function _E(){if(--ix===0&&oh!==null){Qd!==null&&(Qd.status="fulfilled");var i=oh;oh=null,Kd=0,Qd=null;for(var d=0;d<i.length;d++)(0,i[d])()}}function G5(i,d){var p=[],g={status:"pending",value:null,reason:null,then:function(M){p.push(M)}};return i.then(function(){g.status="fulfilled",g.value=d;for(var M=0;M<p.length;M++)(0,p[M])(d)},function(M){for(g.status="rejected",g.reason=M,M=0;M<p.length;M++)(0,p[M])(void 0)}),g}var BE=D.S;D.S=function(i,d){typeof d=="object"&&d!==null&&typeof d.then=="function"&&Y5(i,d),BE!==null&&BE(i,d)};var Cu=te(null);function sx(){var i=Cu.current;return i!==null?i:Vr.pooledCache}function iy(i,d){d===null?ue(Cu,Cu.current):ue(Cu,d.pool)}function UE(){var i=sx();return i===null?null:{parent:Do._currentValue,pool:i}}var ah=Error(r(460)),VE=Error(r(474)),sy=Error(r(542)),lx={then:function(){}};function HE(i){return i=i.status,i==="fulfilled"||i==="rejected"}function ly(){}function WE(i,d,p){switch(p=i[p],p===void 0?i.push(d):p!==d&&(d.then(ly,ly),d=p),d.status){case"fulfilled":return d.value;case"rejected":throw i=d.reason,YE(i),i;default:if(typeof d.status=="string")d.then(ly,ly);else{if(i=Vr,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=d,i.status="pending",i.then(function(g){if(d.status==="pending"){var M=d;M.status="fulfilled",M.value=g}},function(g){if(d.status==="pending"){var M=d;M.status="rejected",M.reason=g}})}switch(d.status){case"fulfilled":return d.value;case"rejected":throw i=d.reason,YE(i),i}throw ih=d,ah}}var ih=null;function qE(){if(ih===null)throw Error(r(459));var i=ih;return ih=null,i}function YE(i){if(i===ah||i===sy)throw Error(r(483))}var sc=!1;function cx(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ux(i,d){i=i.updateQueue,d.updateQueue===i&&(d.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function lc(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function cc(i,d,p){var g=i.updateQueue;if(g===null)return null;if(g=g.shared,(kr&2)!==0){var M=g.pending;return M===null?d.next=d:(d.next=M.next,M.next=d),g.pending=d,d=xu(i),bu(i,null,p),d}return Oi(i,g,d,p),xu(i)}function sh(i,d,p){if(d=d.updateQueue,d!==null&&(d=d.shared,(p&4194048)!==0)){var g=d.lanes;g&=i.pendingLanes,p|=g,d.lanes=p,Vn(i,p)}}function dx(i,d){var p=i.updateQueue,g=i.alternate;if(g!==null&&(g=g.updateQueue,p===g)){var M=null,P=null;if(p=p.firstBaseUpdate,p!==null){do{var Z={lane:p.lane,tag:p.tag,payload:p.payload,callback:null,next:null};P===null?M=P=Z:P=P.next=Z,p=p.next}while(p!==null);P===null?M=P=d:P=P.next=d}else M=P=d;p={baseState:g.baseState,firstBaseUpdate:M,lastBaseUpdate:P,shared:g.shared,callbacks:g.callbacks},i.updateQueue=p;return}i=p.lastBaseUpdate,i===null?p.firstBaseUpdate=d:i.next=d,p.lastBaseUpdate=d}var fx=!1;function lh(){if(fx){var i=Qd;if(i!==null)throw i}}function ch(i,d,p,g){fx=!1;var M=i.updateQueue;sc=!1;var P=M.firstBaseUpdate,Z=M.lastBaseUpdate,re=M.shared.pending;if(re!==null){M.shared.pending=null;var we=re,Ye=we.next;we.next=null,Z===null?P=Ye:Z.next=Ye,Z=we;var pt=i.alternate;pt!==null&&(pt=pt.updateQueue,re=pt.lastBaseUpdate,re!==Z&&(re===null?pt.firstBaseUpdate=Ye:re.next=Ye,pt.lastBaseUpdate=we))}if(P!==null){var vt=M.baseState;Z=0,pt=Ye=we=null,re=P;do{var Ke=re.lane&-536870913,Xe=Ke!==re.lane;if(Xe?(fr&Ke)===Ke:(g&Ke)===Ke){Ke!==0&&Ke===Kd&&(fx=!0),pt!==null&&(pt=pt.next={lane:0,tag:re.tag,payload:re.payload,callback:null,next:null});e:{var In=i,On=re;Ke=d;var Nr=p;switch(On.tag){case 1:if(In=On.payload,typeof In=="function"){vt=In.call(Nr,vt,Ke);break e}vt=In;break e;case 3:In.flags=In.flags&-65537|128;case 0:if(In=On.payload,Ke=typeof In=="function"?In.call(Nr,vt,Ke):In,Ke==null)break e;vt=u({},vt,Ke);break e;case 2:sc=!0}}Ke=re.callback,Ke!==null&&(i.flags|=64,Xe&&(i.flags|=8192),Xe=M.callbacks,Xe===null?M.callbacks=[Ke]:Xe.push(Ke))}else Xe={lane:Ke,tag:re.tag,payload:re.payload,callback:re.callback,next:null},pt===null?(Ye=pt=Xe,we=vt):pt=pt.next=Xe,Z|=Ke;if(re=re.next,re===null){if(re=M.shared.pending,re===null)break;Xe=re,re=Xe.next,Xe.next=null,M.lastBaseUpdate=Xe,M.shared.pending=null}}while(!0);pt===null&&(we=vt),M.baseState=we,M.firstBaseUpdate=Ye,M.lastBaseUpdate=pt,P===null&&(M.shared.lanes=0),yc|=Z,i.lanes=Z,i.memoizedState=vt}}function GE(i,d){if(typeof i!="function")throw Error(r(191,i));i.call(d)}function KE(i,d){var p=i.callbacks;if(p!==null)for(i.callbacks=null,i=0;i<p.length;i++)GE(p[i],d)}var Xd=te(null),cy=te(0);function QE(i,d){i=Dl,ue(cy,i),ue(Xd,d),Dl=i|d.baseLanes}function px(){ue(cy,Dl),ue(Xd,Xd.current)}function hx(){Dl=cy.current,ae(Xd),ae(cy)}var uc=0,Jn=null,Dr=null,Mo=null,uy=!1,Zd=!1,ku=!1,dy=0,uh=0,Jd=null,K5=0;function wo(){throw Error(r(321))}function mx(i,d){if(d===null)return!1;for(var p=0;p<d.length&&p<i.length;p++)if(!ln(i[p],d[p]))return!1;return!0}function gx(i,d,p,g,M,P){return uc=P,Jn=d,d.memoizedState=null,d.updateQueue=null,d.lanes=0,D.H=i===null||i.memoizedState===null?DT:jT,ku=!1,P=p(g,M),ku=!1,Zd&&(P=ZE(d,p,g,M)),XE(i),P}function XE(i){D.H=yy;var d=Dr!==null&&Dr.next!==null;if(uc=0,Mo=Dr=Jn=null,uy=!1,uh=0,Jd=null,d)throw Error(r(300));i===null||_o||(i=i.dependencies,i!==null&&Gd(i)&&(_o=!0))}function ZE(i,d,p,g){Jn=i;var M=0;do{if(Zd&&(Jd=null),uh=0,Zd=!1,25<=M)throw Error(r(301));if(M+=1,Mo=Dr=null,i.updateQueue!=null){var P=i.updateQueue;P.lastEffect=null,P.events=null,P.stores=null,P.memoCache!=null&&(P.memoCache.index=0)}D.H=nF,P=d(p,g)}while(Zd);return P}function Q5(){var i=D.H,d=i.useState()[0];return d=typeof d.then=="function"?dh(d):d,i=i.useState()[0],(Dr!==null?Dr.memoizedState:null)!==i&&(Jn.flags|=1024),d}function yx(){var i=dy!==0;return dy=0,i}function vx(i,d,p){d.updateQueue=i.updateQueue,d.flags&=-2053,i.lanes&=~p}function bx(i){if(uy){for(i=i.memoizedState;i!==null;){var d=i.queue;d!==null&&(d.pending=null),i=i.next}uy=!1}uc=0,Mo=Dr=Jn=null,Zd=!1,uh=dy=0,Jd=null}function Aa(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Mo===null?Jn.memoizedState=Mo=i:Mo=Mo.next=i,Mo}function Ro(){if(Dr===null){var i=Jn.alternate;i=i!==null?i.memoizedState:null}else i=Dr.next;var d=Mo===null?Jn.memoizedState:Mo.next;if(d!==null)Mo=d,Dr=i;else{if(i===null)throw Jn.alternate===null?Error(r(467)):Error(r(310));Dr=i,i={memoizedState:Dr.memoizedState,baseState:Dr.baseState,baseQueue:Dr.baseQueue,queue:Dr.queue,next:null},Mo===null?Jn.memoizedState=Mo=i:Mo=Mo.next=i}return Mo}function xx(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function dh(i){var d=uh;return uh+=1,Jd===null&&(Jd=[]),i=WE(Jd,i,d),d=Jn,(Mo===null?d.memoizedState:Mo.next)===null&&(d=d.alternate,D.H=d===null||d.memoizedState===null?DT:jT),i}function fy(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return dh(i);if(i.$$typeof===E)return lo(i)}throw Error(r(438,String(i)))}function Sx(i){var d=null,p=Jn.updateQueue;if(p!==null&&(d=p.memoCache),d==null){var g=Jn.alternate;g!==null&&(g=g.updateQueue,g!==null&&(g=g.memoCache,g!=null&&(d={data:g.data.map(function(M){return M.slice()}),index:0})))}if(d==null&&(d={data:[],index:0}),p===null&&(p=xx(),Jn.updateQueue=p),p.memoCache=d,p=d.data[d.index],p===void 0)for(p=d.data[d.index]=Array(i),g=0;g<i;g++)p[g]=W;return d.index++,p}function Ml(i,d){return typeof d=="function"?d(i):d}function py(i){var d=Ro();return wx(d,Dr,i)}function wx(i,d,p){var g=i.queue;if(g===null)throw Error(r(311));g.lastRenderedReducer=p;var M=i.baseQueue,P=g.pending;if(P!==null){if(M!==null){var Z=M.next;M.next=P.next,P.next=Z}d.baseQueue=M=P,g.pending=null}if(P=i.baseState,M===null)i.memoizedState=P;else{d=M.next;var re=Z=null,we=null,Ye=d,pt=!1;do{var vt=Ye.lane&-536870913;if(vt!==Ye.lane?(fr&vt)===vt:(uc&vt)===vt){var Ke=Ye.revertLane;if(Ke===0)we!==null&&(we=we.next={lane:0,revertLane:0,action:Ye.action,hasEagerState:Ye.hasEagerState,eagerState:Ye.eagerState,next:null}),vt===Kd&&(pt=!0);else if((uc&Ke)===Ke){Ye=Ye.next,Ke===Kd&&(pt=!0);continue}else vt={lane:0,revertLane:Ye.revertLane,action:Ye.action,hasEagerState:Ye.hasEagerState,eagerState:Ye.eagerState,next:null},we===null?(re=we=vt,Z=P):we=we.next=vt,Jn.lanes|=Ke,yc|=Ke;vt=Ye.action,ku&&p(P,vt),P=Ye.hasEagerState?Ye.eagerState:p(P,vt)}else Ke={lane:vt,revertLane:Ye.revertLane,action:Ye.action,hasEagerState:Ye.hasEagerState,eagerState:Ye.eagerState,next:null},we===null?(re=we=Ke,Z=P):we=we.next=Ke,Jn.lanes|=vt,yc|=vt;Ye=Ye.next}while(Ye!==null&&Ye!==d);if(we===null?Z=P:we.next=re,!ln(P,i.memoizedState)&&(_o=!0,pt&&(p=Qd,p!==null)))throw p;i.memoizedState=P,i.baseState=Z,i.baseQueue=we,g.lastRenderedState=P}return M===null&&(g.lanes=0),[i.memoizedState,g.dispatch]}function Cx(i){var d=Ro(),p=d.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=i;var g=p.dispatch,M=p.pending,P=d.memoizedState;if(M!==null){p.pending=null;var Z=M=M.next;do P=i(P,Z.action),Z=Z.next;while(Z!==M);ln(P,d.memoizedState)||(_o=!0),d.memoizedState=P,d.baseQueue===null&&(d.baseState=P),p.lastRenderedState=P}return[P,g]}function JE(i,d,p){var g=Jn,M=Ro(),P=J;if(P){if(p===void 0)throw Error(r(407));p=p()}else p=d();var Z=!ln((Dr||M).memoizedState,p);Z&&(M.memoizedState=p,_o=!0),M=M.queue;var re=nT.bind(null,g,M,i);if(fh(2048,8,re,[i]),M.getSnapshot!==d||Z||Mo!==null&&Mo.memoizedState.tag&1){if(g.flags|=2048,ef(9,hy(),tT.bind(null,g,M,p,d),null),Vr===null)throw Error(r(349));P||(uc&124)!==0||eT(g,d,p)}return p}function eT(i,d,p){i.flags|=16384,i={getSnapshot:d,value:p},d=Jn.updateQueue,d===null?(d=xx(),Jn.updateQueue=d,d.stores=[i]):(p=d.stores,p===null?d.stores=[i]:p.push(i))}function tT(i,d,p,g){d.value=p,d.getSnapshot=g,rT(d)&&oT(i)}function nT(i,d,p){return p(function(){rT(d)&&oT(i)})}function rT(i){var d=i.getSnapshot;i=i.value;try{var p=d();return!ln(i,p)}catch{return!0}}function oT(i){var d=hs(i,2);d!==null&&ii(d,i,2)}function kx(i){var d=Aa();if(typeof i=="function"){var p=i;if(i=p(),ku){Le(!0);try{p()}finally{Le(!1)}}}return d.memoizedState=d.baseState=i,d.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ml,lastRenderedState:i},d}function aT(i,d,p,g){return i.baseState=p,wx(i,Dr,typeof g=="function"?g:Ml)}function X5(i,d,p,g,M){if(gy(i))throw Error(r(485));if(i=d.action,i!==null){var P={payload:M,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(Z){P.listeners.push(Z)}};D.T!==null?p(!0):P.isTransition=!1,g(P),p=d.pending,p===null?(P.next=d.pending=P,iT(d,P)):(P.next=p.next,d.pending=p.next=P)}}function iT(i,d){var p=d.action,g=d.payload,M=i.state;if(d.isTransition){var P=D.T,Z={};D.T=Z;try{var re=p(M,g),we=D.S;we!==null&&we(Z,re),sT(i,d,re)}catch(Ye){Ex(i,d,Ye)}finally{D.T=P}}else try{P=p(M,g),sT(i,d,P)}catch(Ye){Ex(i,d,Ye)}}function sT(i,d,p){p!==null&&typeof p=="object"&&typeof p.then=="function"?p.then(function(g){lT(i,d,g)},function(g){return Ex(i,d,g)}):lT(i,d,p)}function lT(i,d,p){d.status="fulfilled",d.value=p,cT(d),i.state=p,d=i.pending,d!==null&&(p=d.next,p===d?i.pending=null:(p=p.next,d.next=p,iT(i,p)))}function Ex(i,d,p){var g=i.pending;if(i.pending=null,g!==null){g=g.next;do d.status="rejected",d.reason=p,cT(d),d=d.next;while(d!==g)}i.action=null}function cT(i){i=i.listeners;for(var d=0;d<i.length;d++)(0,i[d])()}function uT(i,d){return d}function dT(i,d){if(J){var p=Vr.formState;if(p!==null){e:{var g=Jn;if(J){if(Y){t:{for(var M=Y,P=Pe;M.nodeType!==8;){if(!P){M=null;break t}if(M=ys(M.nextSibling),M===null){M=null;break t}}P=M.data,M=P==="F!"||P==="F"?M:null}if(M){Y=ys(M.nextSibling),g=M.data==="F!";break e}}We(g)}g=!1}g&&(d=p[0])}}return p=Aa(),p.memoizedState=p.baseState=d,g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:uT,lastRenderedState:d},p.queue=g,p=$T.bind(null,Jn,g),g.dispatch=p,g=kx(!1),P=$x.bind(null,Jn,!1,g.queue),g=Aa(),M={state:d,dispatch:null,action:i,pending:null},g.queue=M,p=X5.bind(null,Jn,M,P,p),M.dispatch=p,g.memoizedState=i,[d,p,!1]}function fT(i){var d=Ro();return pT(d,Dr,i)}function pT(i,d,p){if(d=wx(i,d,uT)[0],i=py(Ml)[0],typeof d=="object"&&d!==null&&typeof d.then=="function")try{var g=dh(d)}catch(Z){throw Z===ah?sy:Z}else g=d;d=Ro();var M=d.queue,P=M.dispatch;return p!==d.memoizedState&&(Jn.flags|=2048,ef(9,hy(),Z5.bind(null,M,p),null)),[g,P,i]}function Z5(i,d){i.action=d}function hT(i){var d=Ro(),p=Dr;if(p!==null)return pT(d,p,i);Ro(),d=d.memoizedState,p=Ro();var g=p.queue.dispatch;return p.memoizedState=i,[d,g,!1]}function ef(i,d,p,g){return i={tag:i,create:p,deps:g,inst:d,next:null},d=Jn.updateQueue,d===null&&(d=xx(),Jn.updateQueue=d),p=d.lastEffect,p===null?d.lastEffect=i.next=i:(g=p.next,p.next=i,i.next=g,d.lastEffect=i),i}function hy(){return{destroy:void 0,resource:void 0}}function mT(){return Ro().memoizedState}function my(i,d,p,g){var M=Aa();g=g===void 0?null:g,Jn.flags|=i,M.memoizedState=ef(1|d,hy(),p,g)}function fh(i,d,p,g){var M=Ro();g=g===void 0?null:g;var P=M.memoizedState.inst;Dr!==null&&g!==null&&mx(g,Dr.memoizedState.deps)?M.memoizedState=ef(d,P,p,g):(Jn.flags|=i,M.memoizedState=ef(1|d,P,p,g))}function gT(i,d){my(8390656,8,i,d)}function yT(i,d){fh(2048,8,i,d)}function vT(i,d){return fh(4,2,i,d)}function bT(i,d){return fh(4,4,i,d)}function xT(i,d){if(typeof d=="function"){i=i();var p=d(i);return function(){typeof p=="function"?p():d(null)}}if(d!=null)return i=i(),d.current=i,function(){d.current=null}}function ST(i,d,p){p=p!=null?p.concat([i]):null,fh(4,4,xT.bind(null,d,i),p)}function Tx(){}function wT(i,d){var p=Ro();d=d===void 0?null:d;var g=p.memoizedState;return d!==null&&mx(d,g[1])?g[0]:(p.memoizedState=[i,d],i)}function CT(i,d){var p=Ro();d=d===void 0?null:d;var g=p.memoizedState;if(d!==null&&mx(d,g[1]))return g[0];if(g=i(),ku){Le(!0);try{i()}finally{Le(!1)}}return p.memoizedState=[g,d],g}function Mx(i,d,p){return p===void 0||(uc&1073741824)!==0?i.memoizedState=d:(i.memoizedState=p,i=TM(),Jn.lanes|=i,yc|=i,p)}function kT(i,d,p,g){return ln(p,d)?p:Xd.current!==null?(i=Mx(i,p,g),ln(i,d)||(_o=!0),i):(uc&42)===0?(_o=!0,i.memoizedState=p):(i=TM(),Jn.lanes|=i,yc|=i,d)}function ET(i,d,p,g,M){var P=K.p;K.p=P!==0&&8>P?P:8;var Z=D.T,re={};D.T=re,$x(i,!1,d,p);try{var we=M(),Ye=D.S;if(Ye!==null&&Ye(re,we),we!==null&&typeof we=="object"&&typeof we.then=="function"){var pt=G5(we,g);ph(i,d,pt,ai(i))}else ph(i,d,g,ai(i))}catch(vt){ph(i,d,{then:function(){},status:"rejected",reason:vt},ai())}finally{K.p=P,D.T=Z}}function J5(){}function Rx(i,d,p,g){if(i.tag!==5)throw Error(r(476));var M=TT(i).queue;ET(i,M,d,Q,p===null?J5:function(){return MT(i),p(g)})}function TT(i){var d=i.memoizedState;if(d!==null)return d;d={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ml,lastRenderedState:Q},next:null};var p={};return d.next={memoizedState:p,baseState:p,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ml,lastRenderedState:p},next:null},i.memoizedState=d,i=i.alternate,i!==null&&(i.memoizedState=d),d}function MT(i){var d=TT(i).next.queue;ph(i,d,{},ai())}function Ox(){return lo(Ph)}function RT(){return Ro().memoizedState}function OT(){return Ro().memoizedState}function eF(i){for(var d=i.return;d!==null;){switch(d.tag){case 24:case 3:var p=ai();i=lc(p);var g=cc(d,i,p);g!==null&&(ii(g,d,p),sh(g,d,p)),d={cache:ax()},i.payload=d;return}d=d.return}}function tF(i,d,p){var g=ai();p={lane:g,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null},gy(i)?PT(d,p):(p=Ud(i,d,p,g),p!==null&&(ii(p,i,g),AT(p,d,g)))}function $T(i,d,p){var g=ai();ph(i,d,p,g)}function ph(i,d,p,g){var M={lane:g,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null};if(gy(i))PT(d,M);else{var P=i.alternate;if(i.lanes===0&&(P===null||P.lanes===0)&&(P=d.lastRenderedReducer,P!==null))try{var Z=d.lastRenderedState,re=P(Z,p);if(M.hasEagerState=!0,M.eagerState=re,ln(re,Z))return Oi(i,d,M,0),Vr===null&&ic(),!1}catch{}finally{}if(p=Ud(i,d,M,g),p!==null)return ii(p,i,g),AT(p,d,g),!0}return!1}function $x(i,d,p,g){if(g={lane:2,revertLane:l1(),action:g,hasEagerState:!1,eagerState:null,next:null},gy(i)){if(d)throw Error(r(479))}else d=Ud(i,p,g,2),d!==null&&ii(d,i,2)}function gy(i){var d=i.alternate;return i===Jn||d!==null&&d===Jn}function PT(i,d){Zd=uy=!0;var p=i.pending;p===null?d.next=d:(d.next=p.next,p.next=d),i.pending=d}function AT(i,d,p){if((p&4194048)!==0){var g=d.lanes;g&=i.pendingLanes,p|=g,d.lanes=p,Vn(i,p)}}var yy={readContext:lo,use:fy,useCallback:wo,useContext:wo,useEffect:wo,useImperativeHandle:wo,useLayoutEffect:wo,useInsertionEffect:wo,useMemo:wo,useReducer:wo,useRef:wo,useState:wo,useDebugValue:wo,useDeferredValue:wo,useTransition:wo,useSyncExternalStore:wo,useId:wo,useHostTransitionStatus:wo,useFormState:wo,useActionState:wo,useOptimistic:wo,useMemoCache:wo,useCacheRefresh:wo},DT={readContext:lo,use:fy,useCallback:function(i,d){return Aa().memoizedState=[i,d===void 0?null:d],i},useContext:lo,useEffect:gT,useImperativeHandle:function(i,d,p){p=p!=null?p.concat([i]):null,my(4194308,4,xT.bind(null,d,i),p)},useLayoutEffect:function(i,d){return my(4194308,4,i,d)},useInsertionEffect:function(i,d){my(4,2,i,d)},useMemo:function(i,d){var p=Aa();d=d===void 0?null:d;var g=i();if(ku){Le(!0);try{i()}finally{Le(!1)}}return p.memoizedState=[g,d],g},useReducer:function(i,d,p){var g=Aa();if(p!==void 0){var M=p(d);if(ku){Le(!0);try{p(d)}finally{Le(!1)}}}else M=d;return g.memoizedState=g.baseState=M,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:M},g.queue=i,i=i.dispatch=tF.bind(null,Jn,i),[g.memoizedState,i]},useRef:function(i){var d=Aa();return i={current:i},d.memoizedState=i},useState:function(i){i=kx(i);var d=i.queue,p=$T.bind(null,Jn,d);return d.dispatch=p,[i.memoizedState,p]},useDebugValue:Tx,useDeferredValue:function(i,d){var p=Aa();return Mx(p,i,d)},useTransition:function(){var i=kx(!1);return i=ET.bind(null,Jn,i.queue,!0,!1),Aa().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,d,p){var g=Jn,M=Aa();if(J){if(p===void 0)throw Error(r(407));p=p()}else{if(p=d(),Vr===null)throw Error(r(349));(fr&124)!==0||eT(g,d,p)}M.memoizedState=p;var P={value:p,getSnapshot:d};return M.queue=P,gT(nT.bind(null,g,P,i),[i]),g.flags|=2048,ef(9,hy(),tT.bind(null,g,P,p,d),null),p},useId:function(){var i=Aa(),d=Vr.identifierPrefix;if(J){var p=yn,g=ei;p=(g&~(1<<32-ge(g)-1)).toString(32)+p,d="«"+d+"R"+p,p=dy++,0<p&&(d+="H"+p.toString(32)),d+="»"}else p=K5++,d="«"+d+"r"+p.toString(32)+"»";return i.memoizedState=d},useHostTransitionStatus:Ox,useFormState:dT,useActionState:dT,useOptimistic:function(i){var d=Aa();d.memoizedState=d.baseState=i;var p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return d.queue=p,d=$x.bind(null,Jn,!0,p),p.dispatch=d,[i,d]},useMemoCache:Sx,useCacheRefresh:function(){return Aa().memoizedState=eF.bind(null,Jn)}},jT={readContext:lo,use:fy,useCallback:wT,useContext:lo,useEffect:yT,useImperativeHandle:ST,useInsertionEffect:vT,useLayoutEffect:bT,useMemo:CT,useReducer:py,useRef:mT,useState:function(){return py(Ml)},useDebugValue:Tx,useDeferredValue:function(i,d){var p=Ro();return kT(p,Dr.memoizedState,i,d)},useTransition:function(){var i=py(Ml)[0],d=Ro().memoizedState;return[typeof i=="boolean"?i:dh(i),d]},useSyncExternalStore:JE,useId:RT,useHostTransitionStatus:Ox,useFormState:fT,useActionState:fT,useOptimistic:function(i,d){var p=Ro();return aT(p,Dr,i,d)},useMemoCache:Sx,useCacheRefresh:OT},nF={readContext:lo,use:fy,useCallback:wT,useContext:lo,useEffect:yT,useImperativeHandle:ST,useInsertionEffect:vT,useLayoutEffect:bT,useMemo:CT,useReducer:Cx,useRef:mT,useState:function(){return Cx(Ml)},useDebugValue:Tx,useDeferredValue:function(i,d){var p=Ro();return Dr===null?Mx(p,i,d):kT(p,Dr.memoizedState,i,d)},useTransition:function(){var i=Cx(Ml)[0],d=Ro().memoizedState;return[typeof i=="boolean"?i:dh(i),d]},useSyncExternalStore:JE,useId:RT,useHostTransitionStatus:Ox,useFormState:hT,useActionState:hT,useOptimistic:function(i,d){var p=Ro();return Dr!==null?aT(p,Dr,i,d):(p.baseState=i,[i,p.queue.dispatch])},useMemoCache:Sx,useCacheRefresh:OT},tf=null,hh=0;function vy(i){var d=hh;return hh+=1,tf===null&&(tf=[]),WE(tf,i,d)}function mh(i,d){d=d.props.ref,i.ref=d!==void 0?d:null}function by(i,d){throw d.$$typeof===h?Error(r(525)):(i=Object.prototype.toString.call(d),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":i)))}function NT(i){var d=i._init;return d(i._payload)}function IT(i){function d(Be,Ae){if(i){var He=Be.deletions;He===null?(Be.deletions=[Ae],Be.flags|=16):He.push(Ae)}}function p(Be,Ae){if(!i)return null;for(;Ae!==null;)d(Be,Ae),Ae=Ae.sibling;return null}function g(Be){for(var Ae=new Map;Be!==null;)Be.key!==null?Ae.set(Be.key,Be):Ae.set(Be.index,Be),Be=Be.sibling;return Ae}function M(Be,Ae){return Be=$i(Be,Ae),Be.index=0,Be.sibling=null,Be}function P(Be,Ae,He){return Be.index=He,i?(He=Be.alternate,He!==null?(He=He.index,He<Ae?(Be.flags|=67108866,Ae):He):(Be.flags|=67108866,Ae)):(Be.flags|=1048576,Ae)}function Z(Be){return i&&Be.alternate===null&&(Be.flags|=67108866),Be}function re(Be,Ae,He,gt){return Ae===null||Ae.tag!==6?(Ae=eh(He,Be.mode,gt),Ae.return=Be,Ae):(Ae=M(Ae,He),Ae.return=Be,Ae)}function we(Be,Ae,He,gt){var an=He.type;return an===S?pt(Be,Ae,He.props.children,gt,He.key):Ae!==null&&(Ae.elementType===an||typeof an=="object"&&an!==null&&an.$$typeof===j&&NT(an)===Ae.type)?(Ae=M(Ae,He.props),mh(Ae,He),Ae.return=Be,Ae):(Ae=Wd(He.type,He.key,He.props,null,Be.mode,gt),mh(Ae,He),Ae.return=Be,Ae)}function Ye(Be,Ae,He,gt){return Ae===null||Ae.tag!==4||Ae.stateNode.containerInfo!==He.containerInfo||Ae.stateNode.implementation!==He.implementation?(Ae=th(He,Be.mode,gt),Ae.return=Be,Ae):(Ae=M(Ae,He.children||[]),Ae.return=Be,Ae)}function pt(Be,Ae,He,gt,an){return Ae===null||Ae.tag!==7?(Ae=Pi(He,Be.mode,gt,an),Ae.return=Be,Ae):(Ae=M(Ae,He),Ae.return=Be,Ae)}function vt(Be,Ae,He){if(typeof Ae=="string"&&Ae!==""||typeof Ae=="number"||typeof Ae=="bigint")return Ae=eh(""+Ae,Be.mode,He),Ae.return=Be,Ae;if(typeof Ae=="object"&&Ae!==null){switch(Ae.$$typeof){case y:return He=Wd(Ae.type,Ae.key,Ae.props,null,Be.mode,He),mh(He,Ae),He.return=Be,He;case v:return Ae=th(Ae,Be.mode,He),Ae.return=Be,Ae;case j:var gt=Ae._init;return Ae=gt(Ae._payload),vt(Be,Ae,He)}if(H(Ae)||T(Ae))return Ae=Pi(Ae,Be.mode,He,null),Ae.return=Be,Ae;if(typeof Ae.then=="function")return vt(Be,vy(Ae),He);if(Ae.$$typeof===E)return vt(Be,zs(Be,Ae),He);by(Be,Ae)}return null}function Ke(Be,Ae,He,gt){var an=Ae!==null?Ae.key:null;if(typeof He=="string"&&He!==""||typeof He=="number"||typeof He=="bigint")return an!==null?null:re(Be,Ae,""+He,gt);if(typeof He=="object"&&He!==null){switch(He.$$typeof){case y:return He.key===an?we(Be,Ae,He,gt):null;case v:return He.key===an?Ye(Be,Ae,He,gt):null;case j:return an=He._init,He=an(He._payload),Ke(Be,Ae,He,gt)}if(H(He)||T(He))return an!==null?null:pt(Be,Ae,He,gt,null);if(typeof He.then=="function")return Ke(Be,Ae,vy(He),gt);if(He.$$typeof===E)return Ke(Be,Ae,zs(Be,He),gt);by(Be,He)}return null}function Xe(Be,Ae,He,gt,an){if(typeof gt=="string"&&gt!==""||typeof gt=="number"||typeof gt=="bigint")return Be=Be.get(He)||null,re(Ae,Be,""+gt,an);if(typeof gt=="object"&&gt!==null){switch(gt.$$typeof){case y:return Be=Be.get(gt.key===null?He:gt.key)||null,we(Ae,Be,gt,an);case v:return Be=Be.get(gt.key===null?He:gt.key)||null,Ye(Ae,Be,gt,an);case j:var tr=gt._init;return gt=tr(gt._payload),Xe(Be,Ae,He,gt,an)}if(H(gt)||T(gt))return Be=Be.get(He)||null,pt(Ae,Be,gt,an,null);if(typeof gt.then=="function")return Xe(Be,Ae,He,vy(gt),an);if(gt.$$typeof===E)return Xe(Be,Ae,He,zs(Ae,gt),an);by(Ae,gt)}return null}function In(Be,Ae,He,gt){for(var an=null,tr=null,gn=Ae,Pn=Ae=0,Uo=null;gn!==null&&Pn<He.length;Pn++){gn.index>Pn?(Uo=gn,gn=null):Uo=gn.sibling;var pr=Ke(Be,gn,He[Pn],gt);if(pr===null){gn===null&&(gn=Uo);break}i&&gn&&pr.alternate===null&&d(Be,gn),Ae=P(pr,Ae,Pn),tr===null?an=pr:tr.sibling=pr,tr=pr,gn=Uo}if(Pn===He.length)return p(Be,gn),J&&ti(Be,Pn),an;if(gn===null){for(;Pn<He.length;Pn++)gn=vt(Be,He[Pn],gt),gn!==null&&(Ae=P(gn,Ae,Pn),tr===null?an=gn:tr.sibling=gn,tr=gn);return J&&ti(Be,Pn),an}for(gn=g(gn);Pn<He.length;Pn++)Uo=Xe(gn,Be,Pn,He[Pn],gt),Uo!==null&&(i&&Uo.alternate!==null&&gn.delete(Uo.key===null?Pn:Uo.key),Ae=P(Uo,Ae,Pn),tr===null?an=Uo:tr.sibling=Uo,tr=Uo);return i&&gn.forEach(function(Tc){return d(Be,Tc)}),J&&ti(Be,Pn),an}function On(Be,Ae,He,gt){if(He==null)throw Error(r(151));for(var an=null,tr=null,gn=Ae,Pn=Ae=0,Uo=null,pr=He.next();gn!==null&&!pr.done;Pn++,pr=He.next()){gn.index>Pn?(Uo=gn,gn=null):Uo=gn.sibling;var Tc=Ke(Be,gn,pr.value,gt);if(Tc===null){gn===null&&(gn=Uo);break}i&&gn&&Tc.alternate===null&&d(Be,gn),Ae=P(Tc,Ae,Pn),tr===null?an=Tc:tr.sibling=Tc,tr=Tc,gn=Uo}if(pr.done)return p(Be,gn),J&&ti(Be,Pn),an;if(gn===null){for(;!pr.done;Pn++,pr=He.next())pr=vt(Be,pr.value,gt),pr!==null&&(Ae=P(pr,Ae,Pn),tr===null?an=pr:tr.sibling=pr,tr=pr);return J&&ti(Be,Pn),an}for(gn=g(gn);!pr.done;Pn++,pr=He.next())pr=Xe(gn,Be,Pn,pr.value,gt),pr!==null&&(i&&pr.alternate!==null&&gn.delete(pr.key===null?Pn:pr.key),Ae=P(pr,Ae,Pn),tr===null?an=pr:tr.sibling=pr,tr=pr);return i&&gn.forEach(function(r4){return d(Be,r4)}),J&&ti(Be,Pn),an}function Nr(Be,Ae,He,gt){if(typeof He=="object"&&He!==null&&He.type===S&&He.key===null&&(He=He.props.children),typeof He=="object"&&He!==null){switch(He.$$typeof){case y:e:{for(var an=He.key;Ae!==null;){if(Ae.key===an){if(an=He.type,an===S){if(Ae.tag===7){p(Be,Ae.sibling),gt=M(Ae,He.props.children),gt.return=Be,Be=gt;break e}}else if(Ae.elementType===an||typeof an=="object"&&an!==null&&an.$$typeof===j&&NT(an)===Ae.type){p(Be,Ae.sibling),gt=M(Ae,He.props),mh(gt,He),gt.return=Be,Be=gt;break e}p(Be,Ae);break}else d(Be,Ae);Ae=Ae.sibling}He.type===S?(gt=Pi(He.props.children,Be.mode,gt,He.key),gt.return=Be,Be=gt):(gt=Wd(He.type,He.key,He.props,null,Be.mode,gt),mh(gt,He),gt.return=Be,Be=gt)}return Z(Be);case v:e:{for(an=He.key;Ae!==null;){if(Ae.key===an)if(Ae.tag===4&&Ae.stateNode.containerInfo===He.containerInfo&&Ae.stateNode.implementation===He.implementation){p(Be,Ae.sibling),gt=M(Ae,He.children||[]),gt.return=Be,Be=gt;break e}else{p(Be,Ae);break}else d(Be,Ae);Ae=Ae.sibling}gt=th(He,Be.mode,gt),gt.return=Be,Be=gt}return Z(Be);case j:return an=He._init,He=an(He._payload),Nr(Be,Ae,He,gt)}if(H(He))return In(Be,Ae,He,gt);if(T(He)){if(an=T(He),typeof an!="function")throw Error(r(150));return He=an.call(He),On(Be,Ae,He,gt)}if(typeof He.then=="function")return Nr(Be,Ae,vy(He),gt);if(He.$$typeof===E)return Nr(Be,Ae,zs(Be,He),gt);by(Be,He)}return typeof He=="string"&&He!==""||typeof He=="number"||typeof He=="bigint"?(He=""+He,Ae!==null&&Ae.tag===6?(p(Be,Ae.sibling),gt=M(Ae,He),gt.return=Be,Be=gt):(p(Be,Ae),gt=eh(He,Be.mode,gt),gt.return=Be,Be=gt),Z(Be)):p(Be,Ae)}return function(Be,Ae,He,gt){try{hh=0;var an=Nr(Be,Ae,He,gt);return tf=null,an}catch(gn){if(gn===ah||gn===sy)throw gn;var tr=qo(29,gn,null,Be.mode);return tr.lanes=gt,tr.return=Be,tr}finally{}}}var nf=IT(!0),LT=IT(!1),Di=te(null),Fs=null;function dc(i){var d=i.alternate;ue(jo,jo.current&1),ue(Di,i),Fs===null&&(d===null||Xd.current!==null||d.memoizedState!==null)&&(Fs=i)}function zT(i){if(i.tag===22){if(ue(jo,jo.current),ue(Di,i),Fs===null){var d=i.alternate;d!==null&&d.memoizedState!==null&&(Fs=i)}}else fc()}function fc(){ue(jo,jo.current),ue(Di,Di.current)}function Rl(i){ae(Di),Fs===i&&(Fs=null),ae(jo)}var jo=te(0);function xy(i){for(var d=i;d!==null;){if(d.tag===13){var p=d.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||x1(p)))return d}else if(d.tag===19&&d.memoizedProps.revealOrder!==void 0){if((d.flags&128)!==0)return d}else if(d.child!==null){d.child.return=d,d=d.child;continue}if(d===i)break;for(;d.sibling===null;){if(d.return===null||d.return===i)return null;d=d.return}d.sibling.return=d.return,d=d.sibling}return null}function Px(i,d,p,g){d=i.memoizedState,p=p(g,d),p=p==null?d:u({},d,p),i.memoizedState=p,i.lanes===0&&(i.updateQueue.baseState=p)}var Ax={enqueueSetState:function(i,d,p){i=i._reactInternals;var g=ai(),M=lc(g);M.payload=d,p!=null&&(M.callback=p),d=cc(i,M,g),d!==null&&(ii(d,i,g),sh(d,i,g))},enqueueReplaceState:function(i,d,p){i=i._reactInternals;var g=ai(),M=lc(g);M.tag=1,M.payload=d,p!=null&&(M.callback=p),d=cc(i,M,g),d!==null&&(ii(d,i,g),sh(d,i,g))},enqueueForceUpdate:function(i,d){i=i._reactInternals;var p=ai(),g=lc(p);g.tag=2,d!=null&&(g.callback=d),d=cc(i,g,p),d!==null&&(ii(d,i,p),sh(d,i,p))}};function FT(i,d,p,g,M,P,Z){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(g,P,Z):d.prototype&&d.prototype.isPureReactComponent?!gr(p,g)||!gr(M,P):!0}function _T(i,d,p,g){i=d.state,typeof d.componentWillReceiveProps=="function"&&d.componentWillReceiveProps(p,g),typeof d.UNSAFE_componentWillReceiveProps=="function"&&d.UNSAFE_componentWillReceiveProps(p,g),d.state!==i&&Ax.enqueueReplaceState(d,d.state,null)}function Eu(i,d){var p=d;if("ref"in d){p={};for(var g in d)g!=="ref"&&(p[g]=d[g])}if(i=i.defaultProps){p===d&&(p=u({},p));for(var M in i)p[M]===void 0&&(p[M]=i[M])}return p}var Sy=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var d=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(d))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function BT(i){Sy(i)}function UT(i){console.error(i)}function VT(i){Sy(i)}function wy(i,d){try{var p=i.onUncaughtError;p(d.value,{componentStack:d.stack})}catch(g){setTimeout(function(){throw g})}}function HT(i,d,p){try{var g=i.onCaughtError;g(p.value,{componentStack:p.stack,errorBoundary:d.tag===1?d.stateNode:null})}catch(M){setTimeout(function(){throw M})}}function Dx(i,d,p){return p=lc(p),p.tag=3,p.payload={element:null},p.callback=function(){wy(i,d)},p}function WT(i){return i=lc(i),i.tag=3,i}function qT(i,d,p,g){var M=p.type.getDerivedStateFromError;if(typeof M=="function"){var P=g.value;i.payload=function(){return M(P)},i.callback=function(){HT(d,p,g)}}var Z=p.stateNode;Z!==null&&typeof Z.componentDidCatch=="function"&&(i.callback=function(){HT(d,p,g),typeof M!="function"&&(vc===null?vc=new Set([this]):vc.add(this));var re=g.stack;this.componentDidCatch(g.value,{componentStack:re!==null?re:""})})}function rF(i,d,p,g,M){if(p.flags|=32768,g!==null&&typeof g=="object"&&typeof g.then=="function"){if(d=p.alternate,d!==null&&wu(d,p,M,!0),p=Di.current,p!==null){switch(p.tag){case 13:return Fs===null?r1():p.alternate===null&&co===0&&(co=3),p.flags&=-257,p.flags|=65536,p.lanes=M,g===lx?p.flags|=16384:(d=p.updateQueue,d===null?p.updateQueue=new Set([g]):d.add(g),a1(i,g,M)),!1;case 22:return p.flags|=65536,g===lx?p.flags|=16384:(d=p.updateQueue,d===null?(d={transitions:null,markerInstances:null,retryQueue:new Set([g])},p.updateQueue=d):(p=d.retryQueue,p===null?d.retryQueue=new Set([g]):p.add(g)),a1(i,g,M)),!1}throw Error(r(435,p.tag))}return a1(i,g,M),r1(),!1}if(J)return d=Di.current,d!==null?((d.flags&65536)===0&&(d.flags|=256),d.flags|=65536,d.lanes=M,g!==_e&&(i=Error(r(422),{cause:g}),Kr(aa(i,p)))):(g!==_e&&(d=Error(r(423),{cause:g}),Kr(aa(d,p))),i=i.current.alternate,i.flags|=65536,M&=-M,i.lanes|=M,g=aa(g,p),M=Dx(i.stateNode,g,M),dx(i,M),co!==4&&(co=2)),!1;var P=Error(r(520),{cause:g});if(P=aa(P,p),wh===null?wh=[P]:wh.push(P),co!==4&&(co=2),d===null)return!0;g=aa(g,p),p=d;do{switch(p.tag){case 3:return p.flags|=65536,i=M&-M,p.lanes|=i,i=Dx(p.stateNode,g,i),dx(p,i),!1;case 1:if(d=p.type,P=p.stateNode,(p.flags&128)===0&&(typeof d.getDerivedStateFromError=="function"||P!==null&&typeof P.componentDidCatch=="function"&&(vc===null||!vc.has(P))))return p.flags|=65536,M&=-M,p.lanes|=M,M=WT(M),qT(M,i,p,g),dx(p,M),!1}p=p.return}while(p!==null);return!1}var YT=Error(r(461)),_o=!1;function Yo(i,d,p,g){d.child=i===null?LT(d,null,p,g):nf(d,i.child,p,g)}function GT(i,d,p,g,M){p=p.render;var P=d.ref;if("ref"in g){var Z={};for(var re in g)re!=="ref"&&(Z[re]=g[re])}else Z=g;return Tl(d),g=gx(i,d,p,Z,P,M),re=yx(),i!==null&&!_o?(vx(i,d,M),Ol(i,d,M)):(J&&re&&V(d),d.flags|=1,Yo(i,d,g,M),d.child)}function KT(i,d,p,g,M){if(i===null){var P=p.type;return typeof P=="function"&&!Hd(P)&&P.defaultProps===void 0&&p.compare===null?(d.tag=15,d.type=P,QT(i,d,P,g,M)):(i=Wd(p.type,null,g,d,d.mode,M),i.ref=d.ref,i.return=d,d.child=i)}if(P=i.child,!Bx(i,M)){var Z=P.memoizedProps;if(p=p.compare,p=p!==null?p:gr,p(Z,g)&&i.ref===d.ref)return Ol(i,d,M)}return d.flags|=1,i=$i(P,g),i.ref=d.ref,i.return=d,d.child=i}function QT(i,d,p,g,M){if(i!==null){var P=i.memoizedProps;if(gr(P,g)&&i.ref===d.ref)if(_o=!1,d.pendingProps=g=P,Bx(i,M))(i.flags&131072)!==0&&(_o=!0);else return d.lanes=i.lanes,Ol(i,d,M)}return jx(i,d,p,g,M)}function XT(i,d,p){var g=d.pendingProps,M=g.children,P=i!==null?i.memoizedState:null;if(g.mode==="hidden"){if((d.flags&128)!==0){if(g=P!==null?P.baseLanes|p:p,i!==null){for(M=d.child=i.child,P=0;M!==null;)P=P|M.lanes|M.childLanes,M=M.sibling;d.childLanes=P&~g}else d.childLanes=0,d.child=null;return ZT(i,d,g,p)}if((p&536870912)!==0)d.memoizedState={baseLanes:0,cachePool:null},i!==null&&iy(d,P!==null?P.cachePool:null),P!==null?QE(d,P):px(),zT(d);else return d.lanes=d.childLanes=536870912,ZT(i,d,P!==null?P.baseLanes|p:p,p)}else P!==null?(iy(d,P.cachePool),QE(d,P),fc(),d.memoizedState=null):(i!==null&&iy(d,null),px(),fc());return Yo(i,d,M,p),d.child}function ZT(i,d,p,g){var M=sx();return M=M===null?null:{parent:Do._currentValue,pool:M},d.memoizedState={baseLanes:p,cachePool:M},i!==null&&iy(d,null),px(),zT(d),i!==null&&wu(i,d,g,!0),null}function Cy(i,d){var p=d.ref;if(p===null)i!==null&&i.ref!==null&&(d.flags|=4194816);else{if(typeof p!="function"&&typeof p!="object")throw Error(r(284));(i===null||i.ref!==p)&&(d.flags|=4194816)}}function jx(i,d,p,g,M){return Tl(d),p=gx(i,d,p,g,void 0,M),g=yx(),i!==null&&!_o?(vx(i,d,M),Ol(i,d,M)):(J&&g&&V(d),d.flags|=1,Yo(i,d,p,M),d.child)}function JT(i,d,p,g,M,P){return Tl(d),d.updateQueue=null,p=ZE(d,g,p,M),XE(i),g=yx(),i!==null&&!_o?(vx(i,d,P),Ol(i,d,P)):(J&&g&&V(d),d.flags|=1,Yo(i,d,p,P),d.child)}function eM(i,d,p,g,M){if(Tl(d),d.stateNode===null){var P=Za,Z=p.contextType;typeof Z=="object"&&Z!==null&&(P=lo(Z)),P=new p(g,P),d.memoizedState=P.state!==null&&P.state!==void 0?P.state:null,P.updater=Ax,d.stateNode=P,P._reactInternals=d,P=d.stateNode,P.props=g,P.state=d.memoizedState,P.refs={},cx(d),Z=p.contextType,P.context=typeof Z=="object"&&Z!==null?lo(Z):Za,P.state=d.memoizedState,Z=p.getDerivedStateFromProps,typeof Z=="function"&&(Px(d,p,Z,g),P.state=d.memoizedState),typeof p.getDerivedStateFromProps=="function"||typeof P.getSnapshotBeforeUpdate=="function"||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(Z=P.state,typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount(),Z!==P.state&&Ax.enqueueReplaceState(P,P.state,null),ch(d,g,P,M),lh(),P.state=d.memoizedState),typeof P.componentDidMount=="function"&&(d.flags|=4194308),g=!0}else if(i===null){P=d.stateNode;var re=d.memoizedProps,we=Eu(p,re);P.props=we;var Ye=P.context,pt=p.contextType;Z=Za,typeof pt=="object"&&pt!==null&&(Z=lo(pt));var vt=p.getDerivedStateFromProps;pt=typeof vt=="function"||typeof P.getSnapshotBeforeUpdate=="function",re=d.pendingProps!==re,pt||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(re||Ye!==Z)&&_T(d,P,g,Z),sc=!1;var Ke=d.memoizedState;P.state=Ke,ch(d,g,P,M),lh(),Ye=d.memoizedState,re||Ke!==Ye||sc?(typeof vt=="function"&&(Px(d,p,vt,g),Ye=d.memoizedState),(we=sc||FT(d,p,we,g,Ke,Ye,Z))?(pt||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount()),typeof P.componentDidMount=="function"&&(d.flags|=4194308)):(typeof P.componentDidMount=="function"&&(d.flags|=4194308),d.memoizedProps=g,d.memoizedState=Ye),P.props=g,P.state=Ye,P.context=Z,g=we):(typeof P.componentDidMount=="function"&&(d.flags|=4194308),g=!1)}else{P=d.stateNode,ux(i,d),Z=d.memoizedProps,pt=Eu(p,Z),P.props=pt,vt=d.pendingProps,Ke=P.context,Ye=p.contextType,we=Za,typeof Ye=="object"&&Ye!==null&&(we=lo(Ye)),re=p.getDerivedStateFromProps,(Ye=typeof re=="function"||typeof P.getSnapshotBeforeUpdate=="function")||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(Z!==vt||Ke!==we)&&_T(d,P,g,we),sc=!1,Ke=d.memoizedState,P.state=Ke,ch(d,g,P,M),lh();var Xe=d.memoizedState;Z!==vt||Ke!==Xe||sc||i!==null&&i.dependencies!==null&&Gd(i.dependencies)?(typeof re=="function"&&(Px(d,p,re,g),Xe=d.memoizedState),(pt=sc||FT(d,p,pt,g,Ke,Xe,we)||i!==null&&i.dependencies!==null&&Gd(i.dependencies))?(Ye||typeof P.UNSAFE_componentWillUpdate!="function"&&typeof P.componentWillUpdate!="function"||(typeof P.componentWillUpdate=="function"&&P.componentWillUpdate(g,Xe,we),typeof P.UNSAFE_componentWillUpdate=="function"&&P.UNSAFE_componentWillUpdate(g,Xe,we)),typeof P.componentDidUpdate=="function"&&(d.flags|=4),typeof P.getSnapshotBeforeUpdate=="function"&&(d.flags|=1024)):(typeof P.componentDidUpdate!="function"||Z===i.memoizedProps&&Ke===i.memoizedState||(d.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||Z===i.memoizedProps&&Ke===i.memoizedState||(d.flags|=1024),d.memoizedProps=g,d.memoizedState=Xe),P.props=g,P.state=Xe,P.context=we,g=pt):(typeof P.componentDidUpdate!="function"||Z===i.memoizedProps&&Ke===i.memoizedState||(d.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||Z===i.memoizedProps&&Ke===i.memoizedState||(d.flags|=1024),g=!1)}return P=g,Cy(i,d),g=(d.flags&128)!==0,P||g?(P=d.stateNode,p=g&&typeof p.getDerivedStateFromError!="function"?null:P.render(),d.flags|=1,i!==null&&g?(d.child=nf(d,i.child,null,M),d.child=nf(d,null,p,M)):Yo(i,d,p,M),d.memoizedState=P.state,i=d.child):i=Ol(i,d,M),i}function tM(i,d,p,g){return dr(),d.flags|=256,Yo(i,d,p,g),d.child}var Nx={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ix(i){return{baseLanes:i,cachePool:UE()}}function Lx(i,d,p){return i=i!==null?i.childLanes&~p:0,d&&(i|=ji),i}function nM(i,d,p){var g=d.pendingProps,M=!1,P=(d.flags&128)!==0,Z;if((Z=P)||(Z=i!==null&&i.memoizedState===null?!1:(jo.current&2)!==0),Z&&(M=!0,d.flags&=-129),Z=(d.flags&32)!==0,d.flags&=-33,i===null){if(J){if(M?dc(d):fc(),J){var re=Y,we;if(we=re){e:{for(we=re,re=Pe;we.nodeType!==8;){if(!re){re=null;break e}if(we=ys(we.nextSibling),we===null){re=null;break e}}re=we}re!==null?(d.memoizedState={dehydrated:re,treeContext:Ja!==null?{id:ei,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},we=qo(18,null,null,0),we.stateNode=re,we.return=d,d.child=we,z=d,Y=null,we=!0):we=!1}we||We(d)}if(re=d.memoizedState,re!==null&&(re=re.dehydrated,re!==null))return x1(re)?d.lanes=32:d.lanes=536870912,null;Rl(d)}return re=g.children,g=g.fallback,M?(fc(),M=d.mode,re=ky({mode:"hidden",children:re},M),g=Pi(g,M,p,null),re.return=d,g.return=d,re.sibling=g,d.child=re,M=d.child,M.memoizedState=Ix(p),M.childLanes=Lx(i,Z,p),d.memoizedState=Nx,g):(dc(d),zx(d,re))}if(we=i.memoizedState,we!==null&&(re=we.dehydrated,re!==null)){if(P)d.flags&256?(dc(d),d.flags&=-257,d=Fx(i,d,p)):d.memoizedState!==null?(fc(),d.child=i.child,d.flags|=128,d=null):(fc(),M=g.fallback,re=d.mode,g=ky({mode:"visible",children:g.children},re),M=Pi(M,re,p,null),M.flags|=2,g.return=d,M.return=d,g.sibling=M,d.child=g,nf(d,i.child,null,p),g=d.child,g.memoizedState=Ix(p),g.childLanes=Lx(i,Z,p),d.memoizedState=Nx,d=M);else if(dc(d),x1(re)){if(Z=re.nextSibling&&re.nextSibling.dataset,Z)var Ye=Z.dgst;Z=Ye,g=Error(r(419)),g.stack="",g.digest=Z,Kr({value:g,source:null,stack:null}),d=Fx(i,d,p)}else if(_o||wu(i,d,p,!1),Z=(p&i.childLanes)!==0,_o||Z){if(Z=Vr,Z!==null&&(g=p&-p,g=(g&42)!==0?1:Mn(g),g=(g&(Z.suspendedLanes|p))!==0?0:g,g!==0&&g!==we.retryLane))throw we.retryLane=g,hs(i,g),ii(Z,i,g),YT;re.data==="$?"||r1(),d=Fx(i,d,p)}else re.data==="$?"?(d.flags|=192,d.child=i.child,d=null):(i=we.treeContext,Y=ys(re.nextSibling),z=d,J=!0,be=null,Pe=!1,i!==null&&(va[ba++]=ei,va[ba++]=yn,va[ba++]=Ja,ei=i.id,yn=i.overflow,Ja=d),d=zx(d,g.children),d.flags|=4096);return d}return M?(fc(),M=g.fallback,re=d.mode,we=i.child,Ye=we.sibling,g=$i(we,{mode:"hidden",children:g.children}),g.subtreeFlags=we.subtreeFlags&65011712,Ye!==null?M=$i(Ye,M):(M=Pi(M,re,p,null),M.flags|=2),M.return=d,g.return=d,g.sibling=M,d.child=g,g=M,M=d.child,re=i.child.memoizedState,re===null?re=Ix(p):(we=re.cachePool,we!==null?(Ye=Do._currentValue,we=we.parent!==Ye?{parent:Ye,pool:Ye}:we):we=UE(),re={baseLanes:re.baseLanes|p,cachePool:we}),M.memoizedState=re,M.childLanes=Lx(i,Z,p),d.memoizedState=Nx,g):(dc(d),p=i.child,i=p.sibling,p=$i(p,{mode:"visible",children:g.children}),p.return=d,p.sibling=null,i!==null&&(Z=d.deletions,Z===null?(d.deletions=[i],d.flags|=16):Z.push(i)),d.child=p,d.memoizedState=null,p)}function zx(i,d){return d=ky({mode:"visible",children:d},i.mode),d.return=i,i.child=d}function ky(i,d){return i=qo(22,i,null,d),i.lanes=0,i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},i}function Fx(i,d,p){return nf(d,i.child,null,p),i=zx(d,d.pendingProps.children),i.flags|=2,d.memoizedState=null,i}function rM(i,d,p){i.lanes|=d;var g=i.alternate;g!==null&&(g.lanes|=d),nh(i.return,d,p)}function _x(i,d,p,g,M){var P=i.memoizedState;P===null?i.memoizedState={isBackwards:d,rendering:null,renderingStartTime:0,last:g,tail:p,tailMode:M}:(P.isBackwards=d,P.rendering=null,P.renderingStartTime=0,P.last=g,P.tail=p,P.tailMode=M)}function oM(i,d,p){var g=d.pendingProps,M=g.revealOrder,P=g.tail;if(Yo(i,d,g.children,p),g=jo.current,(g&2)!==0)g=g&1|2,d.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=d.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&rM(i,p,d);else if(i.tag===19)rM(i,p,d);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===d)break e;for(;i.sibling===null;){if(i.return===null||i.return===d)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}g&=1}switch(ue(jo,g),M){case"forwards":for(p=d.child,M=null;p!==null;)i=p.alternate,i!==null&&xy(i)===null&&(M=p),p=p.sibling;p=M,p===null?(M=d.child,d.child=null):(M=p.sibling,p.sibling=null),_x(d,!1,M,p,P);break;case"backwards":for(p=null,M=d.child,d.child=null;M!==null;){if(i=M.alternate,i!==null&&xy(i)===null){d.child=M;break}i=M.sibling,M.sibling=p,p=M,M=i}_x(d,!0,p,null,P);break;case"together":_x(d,!1,null,null,void 0);break;default:d.memoizedState=null}return d.child}function Ol(i,d,p){if(i!==null&&(d.dependencies=i.dependencies),yc|=d.lanes,(p&d.childLanes)===0)if(i!==null){if(wu(i,d,p,!1),(p&d.childLanes)===0)return null}else return null;if(i!==null&&d.child!==i.child)throw Error(r(153));if(d.child!==null){for(i=d.child,p=$i(i,i.pendingProps),d.child=p,p.return=d;i.sibling!==null;)i=i.sibling,p=p.sibling=$i(i,i.pendingProps),p.return=d;p.sibling=null}return d.child}function Bx(i,d){return(i.lanes&d)!==0?!0:(i=i.dependencies,!!(i!==null&&Gd(i)))}function oF(i,d,p){switch(d.tag){case 3:pe(d,d.stateNode.containerInfo),Pa(d,Do,i.memoizedState.cache),dr();break;case 27:case 5:me(d);break;case 4:pe(d,d.stateNode.containerInfo);break;case 10:Pa(d,d.type,d.memoizedProps.value);break;case 13:var g=d.memoizedState;if(g!==null)return g.dehydrated!==null?(dc(d),d.flags|=128,null):(p&d.child.childLanes)!==0?nM(i,d,p):(dc(d),i=Ol(i,d,p),i!==null?i.sibling:null);dc(d);break;case 19:var M=(i.flags&128)!==0;if(g=(p&d.childLanes)!==0,g||(wu(i,d,p,!1),g=(p&d.childLanes)!==0),M){if(g)return oM(i,d,p);d.flags|=128}if(M=d.memoizedState,M!==null&&(M.rendering=null,M.tail=null,M.lastEffect=null),ue(jo,jo.current),g)break;return null;case 22:case 23:return d.lanes=0,XT(i,d,p);case 24:Pa(d,Do,i.memoizedState.cache)}return Ol(i,d,p)}function aM(i,d,p){if(i!==null)if(i.memoizedProps!==d.pendingProps)_o=!0;else{if(!Bx(i,p)&&(d.flags&128)===0)return _o=!1,oF(i,d,p);_o=(i.flags&131072)!==0}else _o=!1,J&&(d.flags&1048576)!==0&&oy(d,Su,d.index);switch(d.lanes=0,d.tag){case 16:e:{i=d.pendingProps;var g=d.elementType,M=g._init;if(g=M(g._payload),d.type=g,typeof g=="function")Hd(g)?(i=Eu(g,i),d.tag=1,d=eM(null,d,g,i,p)):(d.tag=0,d=jx(null,d,g,i,p));else{if(g!=null){if(M=g.$$typeof,M===O){d.tag=11,d=GT(null,d,g,i,p);break e}else if(M===I){d.tag=14,d=KT(null,d,g,i,p);break e}}throw d=F(g)||g,Error(r(306,d,""))}}return d;case 0:return jx(i,d,d.type,d.pendingProps,p);case 1:return g=d.type,M=Eu(g,d.pendingProps),eM(i,d,g,M,p);case 3:e:{if(pe(d,d.stateNode.containerInfo),i===null)throw Error(r(387));g=d.pendingProps;var P=d.memoizedState;M=P.element,ux(i,d),ch(d,g,null,p);var Z=d.memoizedState;if(g=Z.cache,Pa(d,Do,g),g!==P.cache&&Yd(d,[Do],p,!0),lh(),g=Z.element,P.isDehydrated)if(P={element:g,isDehydrated:!1,cache:Z.cache},d.updateQueue.baseState=P,d.memoizedState=P,d.flags&256){d=tM(i,d,g,p);break e}else if(g!==M){M=aa(Error(r(424)),d),Kr(M),d=tM(i,d,g,p);break e}else{switch(i=d.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(Y=ys(i.firstChild),z=d,J=!0,be=null,Pe=!0,p=LT(d,null,g,p),d.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling}else{if(dr(),g===M){d=Ol(i,d,p);break e}Yo(i,d,g,p)}d=d.child}return d;case 26:return Cy(i,d),i===null?(p=cR(d.type,null,d.pendingProps,null))?d.memoizedState=p:J||(p=d.type,i=d.pendingProps,g=zy(le.current).createElement(p),g[on]=d,g[Ln]=i,Ko(g,p,i),Ft(g),d.stateNode=g):d.memoizedState=cR(d.type,i.memoizedProps,d.pendingProps,i.memoizedState),null;case 27:return me(d),i===null&&J&&(g=d.stateNode=iR(d.type,d.pendingProps,le.current),z=d,Pe=!0,M=Y,Sc(d.type)?(S1=M,Y=ys(g.firstChild)):Y=M),Yo(i,d,d.pendingProps.children,p),Cy(i,d),i===null&&(d.flags|=4194304),d.child;case 5:return i===null&&J&&((M=g=Y)&&(g=AF(g,d.type,d.pendingProps,Pe),g!==null?(d.stateNode=g,z=d,Y=ys(g.firstChild),Pe=!1,M=!0):M=!1),M||We(d)),me(d),M=d.type,P=d.pendingProps,Z=i!==null?i.memoizedProps:null,g=P.children,y1(M,P)?g=null:Z!==null&&y1(M,Z)&&(d.flags|=32),d.memoizedState!==null&&(M=gx(i,d,Q5,null,null,p),Ph._currentValue=M),Cy(i,d),Yo(i,d,g,p),d.child;case 6:return i===null&&J&&((i=p=Y)&&(p=DF(p,d.pendingProps,Pe),p!==null?(d.stateNode=p,z=d,Y=null,i=!0):i=!1),i||We(d)),null;case 13:return nM(i,d,p);case 4:return pe(d,d.stateNode.containerInfo),g=d.pendingProps,i===null?d.child=nf(d,null,g,p):Yo(i,d,g,p),d.child;case 11:return GT(i,d,d.type,d.pendingProps,p);case 7:return Yo(i,d,d.pendingProps,p),d.child;case 8:return Yo(i,d,d.pendingProps.children,p),d.child;case 12:return Yo(i,d,d.pendingProps.children,p),d.child;case 10:return g=d.pendingProps,Pa(d,d.type,g.value),Yo(i,d,g.children,p),d.child;case 9:return M=d.type._context,g=d.pendingProps.children,Tl(d),M=lo(M),g=g(M),d.flags|=1,Yo(i,d,g,p),d.child;case 14:return KT(i,d,d.type,d.pendingProps,p);case 15:return QT(i,d,d.type,d.pendingProps,p);case 19:return oM(i,d,p);case 31:return g=d.pendingProps,p=d.mode,g={mode:g.mode,children:g.children},i===null?(p=ky(g,p),p.ref=d.ref,d.child=p,p.return=d,d=p):(p=$i(i.child,g),p.ref=d.ref,d.child=p,p.return=d,d=p),d;case 22:return XT(i,d,p);case 24:return Tl(d),g=lo(Do),i===null?(M=sx(),M===null&&(M=Vr,P=ax(),M.pooledCache=P,P.refCount++,P!==null&&(M.pooledCacheLanes|=p),M=P),d.memoizedState={parent:g,cache:M},cx(d),Pa(d,Do,M)):((i.lanes&p)!==0&&(ux(i,d),ch(d,null,null,p),lh()),M=i.memoizedState,P=d.memoizedState,M.parent!==g?(M={parent:g,cache:g},d.memoizedState=M,d.lanes===0&&(d.memoizedState=d.updateQueue.baseState=M),Pa(d,Do,g)):(g=P.cache,Pa(d,Do,g),g!==M.cache&&Yd(d,[Do],p,!0))),Yo(i,d,d.pendingProps.children,p),d.child;case 29:throw d.pendingProps}throw Error(r(156,d.tag))}function $l(i){i.flags|=4}function iM(i,d){if(d.type!=="stylesheet"||(d.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!hR(d)){if(d=Di.current,d!==null&&((fr&4194048)===fr?Fs!==null:(fr&62914560)!==fr&&(fr&536870912)===0||d!==Fs))throw ih=lx,VE;i.flags|=8192}}function Ey(i,d){d!==null&&(i.flags|=4),i.flags&16384&&(d=i.tag!==22?_n():536870912,i.lanes|=d,sf|=d)}function gh(i,d){if(!J)switch(i.tailMode){case"hidden":d=i.tail;for(var p=null;d!==null;)d.alternate!==null&&(p=d),d=d.sibling;p===null?i.tail=null:p.sibling=null;break;case"collapsed":p=i.tail;for(var g=null;p!==null;)p.alternate!==null&&(g=p),p=p.sibling;g===null?d||i.tail===null?i.tail=null:i.tail.sibling=null:g.sibling=null}}function ao(i){var d=i.alternate!==null&&i.alternate.child===i.child,p=0,g=0;if(d)for(var M=i.child;M!==null;)p|=M.lanes|M.childLanes,g|=M.subtreeFlags&65011712,g|=M.flags&65011712,M.return=i,M=M.sibling;else for(M=i.child;M!==null;)p|=M.lanes|M.childLanes,g|=M.subtreeFlags,g|=M.flags,M.return=i,M=M.sibling;return i.subtreeFlags|=g,i.childLanes=p,d}function aF(i,d,p){var g=d.pendingProps;switch(R(d),d.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ao(d),null;case 1:return ao(d),null;case 3:return p=d.stateNode,g=null,i!==null&&(g=i.memoizedState.cache),d.memoizedState.cache!==g&&(d.flags|=2048),Ai(Do),ne(),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),(i===null||i.child===null)&&(Nn(d)?$l(d):i===null||i.memoizedState.isDehydrated&&(d.flags&256)===0||(d.flags|=1024,Sn())),ao(d),null;case 26:return p=d.memoizedState,i===null?($l(d),p!==null?(ao(d),iM(d,p)):(ao(d),d.flags&=-16777217)):p?p!==i.memoizedState?($l(d),ao(d),iM(d,p)):(ao(d),d.flags&=-16777217):(i.memoizedProps!==g&&$l(d),ao(d),d.flags&=-16777217),null;case 27:xe(d),p=le.current;var M=d.type;if(i!==null&&d.stateNode!=null)i.memoizedProps!==g&&$l(d);else{if(!g){if(d.stateNode===null)throw Error(r(166));return ao(d),null}i=he.current,Nn(d)?Rt(d):(i=iR(M,g,p),d.stateNode=i,$l(d))}return ao(d),null;case 5:if(xe(d),p=d.type,i!==null&&d.stateNode!=null)i.memoizedProps!==g&&$l(d);else{if(!g){if(d.stateNode===null)throw Error(r(166));return ao(d),null}if(i=he.current,Nn(d))Rt(d);else{switch(M=zy(le.current),i){case 1:i=M.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:i=M.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":i=M.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":i=M.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":i=M.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof g.is=="string"?M.createElement("select",{is:g.is}):M.createElement("select"),g.multiple?i.multiple=!0:g.size&&(i.size=g.size);break;default:i=typeof g.is=="string"?M.createElement(p,{is:g.is}):M.createElement(p)}}i[on]=d,i[Ln]=g;e:for(M=d.child;M!==null;){if(M.tag===5||M.tag===6)i.appendChild(M.stateNode);else if(M.tag!==4&&M.tag!==27&&M.child!==null){M.child.return=M,M=M.child;continue}if(M===d)break e;for(;M.sibling===null;){if(M.return===null||M.return===d)break e;M=M.return}M.sibling.return=M.return,M=M.sibling}d.stateNode=i;e:switch(Ko(i,p,g),p){case"button":case"input":case"select":case"textarea":i=!!g.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&$l(d)}}return ao(d),d.flags&=-16777217,null;case 6:if(i&&d.stateNode!=null)i.memoizedProps!==g&&$l(d);else{if(typeof g!="string"&&d.stateNode===null)throw Error(r(166));if(i=le.current,Nn(d)){if(i=d.stateNode,p=d.memoizedProps,g=null,M=z,M!==null)switch(M.tag){case 27:case 5:g=M.memoizedProps}i[on]=d,i=!!(i.nodeValue===p||g!==null&&g.suppressHydrationWarning===!0||JM(i.nodeValue,p)),i||We(d)}else i=zy(i).createTextNode(g),i[on]=d,d.stateNode=i}return ao(d),null;case 13:if(g=d.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(M=Nn(d),g!==null&&g.dehydrated!==null){if(i===null){if(!M)throw Error(r(318));if(M=d.memoizedState,M=M!==null?M.dehydrated:null,!M)throw Error(r(317));M[on]=d}else dr(),(d.flags&128)===0&&(d.memoizedState=null),d.flags|=4;ao(d),M=!1}else M=Sn(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=M),M=!0;if(!M)return d.flags&256?(Rl(d),d):(Rl(d),null)}if(Rl(d),(d.flags&128)!==0)return d.lanes=p,d;if(p=g!==null,i=i!==null&&i.memoizedState!==null,p){g=d.child,M=null,g.alternate!==null&&g.alternate.memoizedState!==null&&g.alternate.memoizedState.cachePool!==null&&(M=g.alternate.memoizedState.cachePool.pool);var P=null;g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(P=g.memoizedState.cachePool.pool),P!==M&&(g.flags|=2048)}return p!==i&&p&&(d.child.flags|=8192),Ey(d,d.updateQueue),ao(d),null;case 4:return ne(),i===null&&f1(d.stateNode.containerInfo),ao(d),null;case 10:return Ai(d.type),ao(d),null;case 19:if(ae(jo),M=d.memoizedState,M===null)return ao(d),null;if(g=(d.flags&128)!==0,P=M.rendering,P===null)if(g)gh(M,!1);else{if(co!==0||i!==null&&(i.flags&128)!==0)for(i=d.child;i!==null;){if(P=xy(i),P!==null){for(d.flags|=128,gh(M,!1),i=P.updateQueue,d.updateQueue=i,Ey(d,i),d.subtreeFlags=0,i=p,p=d.child;p!==null;)ry(p,i),p=p.sibling;return ue(jo,jo.current&1|2),d.child}i=i.sibling}M.tail!==null&&je()>Ry&&(d.flags|=128,g=!0,gh(M,!1),d.lanes=4194304)}else{if(!g)if(i=xy(P),i!==null){if(d.flags|=128,g=!0,i=i.updateQueue,d.updateQueue=i,Ey(d,i),gh(M,!0),M.tail===null&&M.tailMode==="hidden"&&!P.alternate&&!J)return ao(d),null}else 2*je()-M.renderingStartTime>Ry&&p!==536870912&&(d.flags|=128,g=!0,gh(M,!1),d.lanes=4194304);M.isBackwards?(P.sibling=d.child,d.child=P):(i=M.last,i!==null?i.sibling=P:d.child=P,M.last=P)}return M.tail!==null?(d=M.tail,M.rendering=d,M.tail=d.sibling,M.renderingStartTime=je(),d.sibling=null,i=jo.current,ue(jo,g?i&1|2:i&1),d):(ao(d),null);case 22:case 23:return Rl(d),hx(),g=d.memoizedState!==null,i!==null?i.memoizedState!==null!==g&&(d.flags|=8192):g&&(d.flags|=8192),g?(p&536870912)!==0&&(d.flags&128)===0&&(ao(d),d.subtreeFlags&6&&(d.flags|=8192)):ao(d),p=d.updateQueue,p!==null&&Ey(d,p.retryQueue),p=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(p=i.memoizedState.cachePool.pool),g=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(g=d.memoizedState.cachePool.pool),g!==p&&(d.flags|=2048),i!==null&&ae(Cu),null;case 24:return p=null,i!==null&&(p=i.memoizedState.cache),d.memoizedState.cache!==p&&(d.flags|=2048),Ai(Do),ao(d),null;case 25:return null;case 30:return null}throw Error(r(156,d.tag))}function iF(i,d){switch(R(d),d.tag){case 1:return i=d.flags,i&65536?(d.flags=i&-65537|128,d):null;case 3:return Ai(Do),ne(),i=d.flags,(i&65536)!==0&&(i&128)===0?(d.flags=i&-65537|128,d):null;case 26:case 27:case 5:return xe(d),null;case 13:if(Rl(d),i=d.memoizedState,i!==null&&i.dehydrated!==null){if(d.alternate===null)throw Error(r(340));dr()}return i=d.flags,i&65536?(d.flags=i&-65537|128,d):null;case 19:return ae(jo),null;case 4:return ne(),null;case 10:return Ai(d.type),null;case 22:case 23:return Rl(d),hx(),i!==null&&ae(Cu),i=d.flags,i&65536?(d.flags=i&-65537|128,d):null;case 24:return Ai(Do),null;case 25:return null;default:return null}}function sM(i,d){switch(R(d),d.tag){case 3:Ai(Do),ne();break;case 26:case 27:case 5:xe(d);break;case 4:ne();break;case 13:Rl(d);break;case 19:ae(jo);break;case 10:Ai(d.type);break;case 22:case 23:Rl(d),hx(),i!==null&&ae(Cu);break;case 24:Ai(Do)}}function yh(i,d){try{var p=d.updateQueue,g=p!==null?p.lastEffect:null;if(g!==null){var M=g.next;p=M;do{if((p.tag&i)===i){g=void 0;var P=p.create,Z=p.inst;g=P(),Z.destroy=g}p=p.next}while(p!==M)}}catch(re){Br(d,d.return,re)}}function pc(i,d,p){try{var g=d.updateQueue,M=g!==null?g.lastEffect:null;if(M!==null){var P=M.next;g=P;do{if((g.tag&i)===i){var Z=g.inst,re=Z.destroy;if(re!==void 0){Z.destroy=void 0,M=d;var we=p,Ye=re;try{Ye()}catch(pt){Br(M,we,pt)}}}g=g.next}while(g!==P)}}catch(pt){Br(d,d.return,pt)}}function lM(i){var d=i.updateQueue;if(d!==null){var p=i.stateNode;try{KE(d,p)}catch(g){Br(i,i.return,g)}}}function cM(i,d,p){p.props=Eu(i.type,i.memoizedProps),p.state=i.memoizedState;try{p.componentWillUnmount()}catch(g){Br(i,d,g)}}function vh(i,d){try{var p=i.ref;if(p!==null){switch(i.tag){case 26:case 27:case 5:var g=i.stateNode;break;case 30:g=i.stateNode;break;default:g=i.stateNode}typeof p=="function"?i.refCleanup=p(g):p.current=g}}catch(M){Br(i,d,M)}}function _s(i,d){var p=i.ref,g=i.refCleanup;if(p!==null)if(typeof g=="function")try{g()}catch(M){Br(i,d,M)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof p=="function")try{p(null)}catch(M){Br(i,d,M)}else p.current=null}function uM(i){var d=i.type,p=i.memoizedProps,g=i.stateNode;try{e:switch(d){case"button":case"input":case"select":case"textarea":p.autoFocus&&g.focus();break e;case"img":p.src?g.src=p.src:p.srcSet&&(g.srcset=p.srcSet)}}catch(M){Br(i,i.return,M)}}function Ux(i,d,p){try{var g=i.stateNode;MF(g,i.type,p,d),g[Ln]=d}catch(M){Br(i,i.return,M)}}function dM(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&Sc(i.type)||i.tag===4}function Vx(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||dM(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&Sc(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Hx(i,d,p){var g=i.tag;if(g===5||g===6)i=i.stateNode,d?(p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p).insertBefore(i,d):(d=p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p,d.appendChild(i),p=p._reactRootContainer,p!=null||d.onclick!==null||(d.onclick=Ly));else if(g!==4&&(g===27&&Sc(i.type)&&(p=i.stateNode,d=null),i=i.child,i!==null))for(Hx(i,d,p),i=i.sibling;i!==null;)Hx(i,d,p),i=i.sibling}function Ty(i,d,p){var g=i.tag;if(g===5||g===6)i=i.stateNode,d?p.insertBefore(i,d):p.appendChild(i);else if(g!==4&&(g===27&&Sc(i.type)&&(p=i.stateNode),i=i.child,i!==null))for(Ty(i,d,p),i=i.sibling;i!==null;)Ty(i,d,p),i=i.sibling}function fM(i){var d=i.stateNode,p=i.memoizedProps;try{for(var g=i.type,M=d.attributes;M.length;)d.removeAttributeNode(M[0]);Ko(d,g,p),d[on]=i,d[Ln]=p}catch(P){Br(i,i.return,P)}}var Pl=!1,Co=!1,Wx=!1,pM=typeof WeakSet=="function"?WeakSet:Set,Bo=null;function sF(i,d){if(i=i.containerInfo,m1=Hy,i=ma(i),zn(i)){if("selectionStart"in i)var p={start:i.selectionStart,end:i.selectionEnd};else e:{p=(p=i.ownerDocument)&&p.defaultView||window;var g=p.getSelection&&p.getSelection();if(g&&g.rangeCount!==0){p=g.anchorNode;var M=g.anchorOffset,P=g.focusNode;g=g.focusOffset;try{p.nodeType,P.nodeType}catch{p=null;break e}var Z=0,re=-1,we=-1,Ye=0,pt=0,vt=i,Ke=null;t:for(;;){for(var Xe;vt!==p||M!==0&&vt.nodeType!==3||(re=Z+M),vt!==P||g!==0&&vt.nodeType!==3||(we=Z+g),vt.nodeType===3&&(Z+=vt.nodeValue.length),(Xe=vt.firstChild)!==null;)Ke=vt,vt=Xe;for(;;){if(vt===i)break t;if(Ke===p&&++Ye===M&&(re=Z),Ke===P&&++pt===g&&(we=Z),(Xe=vt.nextSibling)!==null)break;vt=Ke,Ke=vt.parentNode}vt=Xe}p=re===-1||we===-1?null:{start:re,end:we}}else p=null}p=p||{start:0,end:0}}else p=null;for(g1={focusedElem:i,selectionRange:p},Hy=!1,Bo=d;Bo!==null;)if(d=Bo,i=d.child,(d.subtreeFlags&1024)!==0&&i!==null)i.return=d,Bo=i;else for(;Bo!==null;){switch(d=Bo,P=d.alternate,i=d.flags,d.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&P!==null){i=void 0,p=d,M=P.memoizedProps,P=P.memoizedState,g=p.stateNode;try{var In=Eu(p.type,M,p.elementType===p.type);i=g.getSnapshotBeforeUpdate(In,P),g.__reactInternalSnapshotBeforeUpdate=i}catch(On){Br(p,p.return,On)}}break;case 3:if((i&1024)!==0){if(i=d.stateNode.containerInfo,p=i.nodeType,p===9)b1(i);else if(p===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":b1(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=d.sibling,i!==null){i.return=d.return,Bo=i;break}Bo=d.return}}function hM(i,d,p){var g=p.flags;switch(p.tag){case 0:case 11:case 15:hc(i,p),g&4&&yh(5,p);break;case 1:if(hc(i,p),g&4)if(i=p.stateNode,d===null)try{i.componentDidMount()}catch(Z){Br(p,p.return,Z)}else{var M=Eu(p.type,d.memoizedProps);d=d.memoizedState;try{i.componentDidUpdate(M,d,i.__reactInternalSnapshotBeforeUpdate)}catch(Z){Br(p,p.return,Z)}}g&64&&lM(p),g&512&&vh(p,p.return);break;case 3:if(hc(i,p),g&64&&(i=p.updateQueue,i!==null)){if(d=null,p.child!==null)switch(p.child.tag){case 27:case 5:d=p.child.stateNode;break;case 1:d=p.child.stateNode}try{KE(i,d)}catch(Z){Br(p,p.return,Z)}}break;case 27:d===null&&g&4&&fM(p);case 26:case 5:hc(i,p),d===null&&g&4&&uM(p),g&512&&vh(p,p.return);break;case 12:hc(i,p);break;case 13:hc(i,p),g&4&&yM(i,p),g&64&&(i=p.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(p=gF.bind(null,p),jF(i,p))));break;case 22:if(g=p.memoizedState!==null||Pl,!g){d=d!==null&&d.memoizedState!==null||Co,M=Pl;var P=Co;Pl=g,(Co=d)&&!P?mc(i,p,(p.subtreeFlags&8772)!==0):hc(i,p),Pl=M,Co=P}break;case 30:break;default:hc(i,p)}}function mM(i){var d=i.alternate;d!==null&&(i.alternate=null,mM(d)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(d=i.stateNode,d!==null&&bt(d)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var Qr=null,Da=!1;function Al(i,d,p){for(p=p.child;p!==null;)gM(i,d,p),p=p.sibling}function gM(i,d,p){if(ct&&typeof ct.onCommitFiberUnmount=="function")try{ct.onCommitFiberUnmount(Je,p)}catch{}switch(p.tag){case 26:Co||_s(p,d),Al(i,d,p),p.memoizedState?p.memoizedState.count--:p.stateNode&&(p=p.stateNode,p.parentNode.removeChild(p));break;case 27:Co||_s(p,d);var g=Qr,M=Da;Sc(p.type)&&(Qr=p.stateNode,Da=!1),Al(i,d,p),Mh(p.stateNode),Qr=g,Da=M;break;case 5:Co||_s(p,d);case 6:if(g=Qr,M=Da,Qr=null,Al(i,d,p),Qr=g,Da=M,Qr!==null)if(Da)try{(Qr.nodeType===9?Qr.body:Qr.nodeName==="HTML"?Qr.ownerDocument.body:Qr).removeChild(p.stateNode)}catch(P){Br(p,d,P)}else try{Qr.removeChild(p.stateNode)}catch(P){Br(p,d,P)}break;case 18:Qr!==null&&(Da?(i=Qr,oR(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,p.stateNode),Nh(i)):oR(Qr,p.stateNode));break;case 4:g=Qr,M=Da,Qr=p.stateNode.containerInfo,Da=!0,Al(i,d,p),Qr=g,Da=M;break;case 0:case 11:case 14:case 15:Co||pc(2,p,d),Co||pc(4,p,d),Al(i,d,p);break;case 1:Co||(_s(p,d),g=p.stateNode,typeof g.componentWillUnmount=="function"&&cM(p,d,g)),Al(i,d,p);break;case 21:Al(i,d,p);break;case 22:Co=(g=Co)||p.memoizedState!==null,Al(i,d,p),Co=g;break;default:Al(i,d,p)}}function yM(i,d){if(d.memoizedState===null&&(i=d.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{Nh(i)}catch(p){Br(d,d.return,p)}}function lF(i){switch(i.tag){case 13:case 19:var d=i.stateNode;return d===null&&(d=i.stateNode=new pM),d;case 22:return i=i.stateNode,d=i._retryCache,d===null&&(d=i._retryCache=new pM),d;default:throw Error(r(435,i.tag))}}function qx(i,d){var p=lF(i);d.forEach(function(g){var M=yF.bind(null,i,g);p.has(g)||(p.add(g),g.then(M,M))})}function ni(i,d){var p=d.deletions;if(p!==null)for(var g=0;g<p.length;g++){var M=p[g],P=i,Z=d,re=Z;e:for(;re!==null;){switch(re.tag){case 27:if(Sc(re.type)){Qr=re.stateNode,Da=!1;break e}break;case 5:Qr=re.stateNode,Da=!1;break e;case 3:case 4:Qr=re.stateNode.containerInfo,Da=!0;break e}re=re.return}if(Qr===null)throw Error(r(160));gM(P,Z,M),Qr=null,Da=!1,P=M.alternate,P!==null&&(P.return=null),M.return=null}if(d.subtreeFlags&13878)for(d=d.child;d!==null;)vM(d,i),d=d.sibling}var gs=null;function vM(i,d){var p=i.alternate,g=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:ni(d,i),ri(i),g&4&&(pc(3,i,i.return),yh(3,i),pc(5,i,i.return));break;case 1:ni(d,i),ri(i),g&512&&(Co||p===null||_s(p,p.return)),g&64&&Pl&&(i=i.updateQueue,i!==null&&(g=i.callbacks,g!==null&&(p=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=p===null?g:p.concat(g))));break;case 26:var M=gs;if(ni(d,i),ri(i),g&512&&(Co||p===null||_s(p,p.return)),g&4){var P=p!==null?p.memoizedState:null;if(g=i.memoizedState,p===null)if(g===null)if(i.stateNode===null){e:{g=i.type,p=i.memoizedProps,M=M.ownerDocument||M;t:switch(g){case"title":P=M.getElementsByTagName("title")[0],(!P||P[kt]||P[on]||P.namespaceURI==="http://www.w3.org/2000/svg"||P.hasAttribute("itemprop"))&&(P=M.createElement(g),M.head.insertBefore(P,M.querySelector("head > title"))),Ko(P,g,p),P[on]=i,Ft(P),g=P;break e;case"link":var Z=fR("link","href",M).get(g+(p.href||""));if(Z){for(var re=0;re<Z.length;re++)if(P=Z[re],P.getAttribute("href")===(p.href==null||p.href===""?null:p.href)&&P.getAttribute("rel")===(p.rel==null?null:p.rel)&&P.getAttribute("title")===(p.title==null?null:p.title)&&P.getAttribute("crossorigin")===(p.crossOrigin==null?null:p.crossOrigin)){Z.splice(re,1);break t}}P=M.createElement(g),Ko(P,g,p),M.head.appendChild(P);break;case"meta":if(Z=fR("meta","content",M).get(g+(p.content||""))){for(re=0;re<Z.length;re++)if(P=Z[re],P.getAttribute("content")===(p.content==null?null:""+p.content)&&P.getAttribute("name")===(p.name==null?null:p.name)&&P.getAttribute("property")===(p.property==null?null:p.property)&&P.getAttribute("http-equiv")===(p.httpEquiv==null?null:p.httpEquiv)&&P.getAttribute("charset")===(p.charSet==null?null:p.charSet)){Z.splice(re,1);break t}}P=M.createElement(g),Ko(P,g,p),M.head.appendChild(P);break;default:throw Error(r(468,g))}P[on]=i,Ft(P),g=P}i.stateNode=g}else pR(M,i.type,i.stateNode);else i.stateNode=dR(M,g,i.memoizedProps);else P!==g?(P===null?p.stateNode!==null&&(p=p.stateNode,p.parentNode.removeChild(p)):P.count--,g===null?pR(M,i.type,i.stateNode):dR(M,g,i.memoizedProps)):g===null&&i.stateNode!==null&&Ux(i,i.memoizedProps,p.memoizedProps)}break;case 27:ni(d,i),ri(i),g&512&&(Co||p===null||_s(p,p.return)),p!==null&&g&4&&Ux(i,i.memoizedProps,p.memoizedProps);break;case 5:if(ni(d,i),ri(i),g&512&&(Co||p===null||_s(p,p.return)),i.flags&32){M=i.stateNode;try{ls(M,"")}catch(Xe){Br(i,i.return,Xe)}}g&4&&i.stateNode!=null&&(M=i.memoizedProps,Ux(i,M,p!==null?p.memoizedProps:M)),g&1024&&(Wx=!0);break;case 6:if(ni(d,i),ri(i),g&4){if(i.stateNode===null)throw Error(r(162));g=i.memoizedProps,p=i.stateNode;try{p.nodeValue=g}catch(Xe){Br(i,i.return,Xe)}}break;case 3:if(By=null,M=gs,gs=Fy(d.containerInfo),ni(d,i),gs=M,ri(i),g&4&&p!==null&&p.memoizedState.isDehydrated)try{Nh(d.containerInfo)}catch(Xe){Br(i,i.return,Xe)}Wx&&(Wx=!1,bM(i));break;case 4:g=gs,gs=Fy(i.stateNode.containerInfo),ni(d,i),ri(i),gs=g;break;case 12:ni(d,i),ri(i);break;case 13:ni(d,i),ri(i),i.child.flags&8192&&i.memoizedState!==null!=(p!==null&&p.memoizedState!==null)&&(Zx=je()),g&4&&(g=i.updateQueue,g!==null&&(i.updateQueue=null,qx(i,g)));break;case 22:M=i.memoizedState!==null;var we=p!==null&&p.memoizedState!==null,Ye=Pl,pt=Co;if(Pl=Ye||M,Co=pt||we,ni(d,i),Co=pt,Pl=Ye,ri(i),g&8192)e:for(d=i.stateNode,d._visibility=M?d._visibility&-2:d._visibility|1,M&&(p===null||we||Pl||Co||Tu(i)),p=null,d=i;;){if(d.tag===5||d.tag===26){if(p===null){we=p=d;try{if(P=we.stateNode,M)Z=P.style,typeof Z.setProperty=="function"?Z.setProperty("display","none","important"):Z.display="none";else{re=we.stateNode;var vt=we.memoizedProps.style,Ke=vt!=null&&vt.hasOwnProperty("display")?vt.display:null;re.style.display=Ke==null||typeof Ke=="boolean"?"":(""+Ke).trim()}}catch(Xe){Br(we,we.return,Xe)}}}else if(d.tag===6){if(p===null){we=d;try{we.stateNode.nodeValue=M?"":we.memoizedProps}catch(Xe){Br(we,we.return,Xe)}}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===i)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===i)break e;for(;d.sibling===null;){if(d.return===null||d.return===i)break e;p===d&&(p=null),d=d.return}p===d&&(p=null),d.sibling.return=d.return,d=d.sibling}g&4&&(g=i.updateQueue,g!==null&&(p=g.retryQueue,p!==null&&(g.retryQueue=null,qx(i,p))));break;case 19:ni(d,i),ri(i),g&4&&(g=i.updateQueue,g!==null&&(i.updateQueue=null,qx(i,g)));break;case 30:break;case 21:break;default:ni(d,i),ri(i)}}function ri(i){var d=i.flags;if(d&2){try{for(var p,g=i.return;g!==null;){if(dM(g)){p=g;break}g=g.return}if(p==null)throw Error(r(160));switch(p.tag){case 27:var M=p.stateNode,P=Vx(i);Ty(i,P,M);break;case 5:var Z=p.stateNode;p.flags&32&&(ls(Z,""),p.flags&=-33);var re=Vx(i);Ty(i,re,Z);break;case 3:case 4:var we=p.stateNode.containerInfo,Ye=Vx(i);Hx(i,Ye,we);break;default:throw Error(r(161))}}catch(pt){Br(i,i.return,pt)}i.flags&=-3}d&4096&&(i.flags&=-4097)}function bM(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var d=i;bM(d),d.tag===5&&d.flags&1024&&d.stateNode.reset(),i=i.sibling}}function hc(i,d){if(d.subtreeFlags&8772)for(d=d.child;d!==null;)hM(i,d.alternate,d),d=d.sibling}function Tu(i){for(i=i.child;i!==null;){var d=i;switch(d.tag){case 0:case 11:case 14:case 15:pc(4,d,d.return),Tu(d);break;case 1:_s(d,d.return);var p=d.stateNode;typeof p.componentWillUnmount=="function"&&cM(d,d.return,p),Tu(d);break;case 27:Mh(d.stateNode);case 26:case 5:_s(d,d.return),Tu(d);break;case 22:d.memoizedState===null&&Tu(d);break;case 30:Tu(d);break;default:Tu(d)}i=i.sibling}}function mc(i,d,p){for(p=p&&(d.subtreeFlags&8772)!==0,d=d.child;d!==null;){var g=d.alternate,M=i,P=d,Z=P.flags;switch(P.tag){case 0:case 11:case 15:mc(M,P,p),yh(4,P);break;case 1:if(mc(M,P,p),g=P,M=g.stateNode,typeof M.componentDidMount=="function")try{M.componentDidMount()}catch(Ye){Br(g,g.return,Ye)}if(g=P,M=g.updateQueue,M!==null){var re=g.stateNode;try{var we=M.shared.hiddenCallbacks;if(we!==null)for(M.shared.hiddenCallbacks=null,M=0;M<we.length;M++)GE(we[M],re)}catch(Ye){Br(g,g.return,Ye)}}p&&Z&64&&lM(P),vh(P,P.return);break;case 27:fM(P);case 26:case 5:mc(M,P,p),p&&g===null&&Z&4&&uM(P),vh(P,P.return);break;case 12:mc(M,P,p);break;case 13:mc(M,P,p),p&&Z&4&&yM(M,P);break;case 22:P.memoizedState===null&&mc(M,P,p),vh(P,P.return);break;case 30:break;default:mc(M,P,p)}d=d.sibling}}function Yx(i,d){var p=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(p=i.memoizedState.cachePool.pool),i=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(i=d.memoizedState.cachePool.pool),i!==p&&(i!=null&&i.refCount++,p!=null&&rh(p))}function Gx(i,d){i=null,d.alternate!==null&&(i=d.alternate.memoizedState.cache),d=d.memoizedState.cache,d!==i&&(d.refCount++,i!=null&&rh(i))}function Bs(i,d,p,g){if(d.subtreeFlags&10256)for(d=d.child;d!==null;)xM(i,d,p,g),d=d.sibling}function xM(i,d,p,g){var M=d.flags;switch(d.tag){case 0:case 11:case 15:Bs(i,d,p,g),M&2048&&yh(9,d);break;case 1:Bs(i,d,p,g);break;case 3:Bs(i,d,p,g),M&2048&&(i=null,d.alternate!==null&&(i=d.alternate.memoizedState.cache),d=d.memoizedState.cache,d!==i&&(d.refCount++,i!=null&&rh(i)));break;case 12:if(M&2048){Bs(i,d,p,g),i=d.stateNode;try{var P=d.memoizedProps,Z=P.id,re=P.onPostCommit;typeof re=="function"&&re(Z,d.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(we){Br(d,d.return,we)}}else Bs(i,d,p,g);break;case 13:Bs(i,d,p,g);break;case 23:break;case 22:P=d.stateNode,Z=d.alternate,d.memoizedState!==null?P._visibility&2?Bs(i,d,p,g):bh(i,d):P._visibility&2?Bs(i,d,p,g):(P._visibility|=2,rf(i,d,p,g,(d.subtreeFlags&10256)!==0)),M&2048&&Yx(Z,d);break;case 24:Bs(i,d,p,g),M&2048&&Gx(d.alternate,d);break;default:Bs(i,d,p,g)}}function rf(i,d,p,g,M){for(M=M&&(d.subtreeFlags&10256)!==0,d=d.child;d!==null;){var P=i,Z=d,re=p,we=g,Ye=Z.flags;switch(Z.tag){case 0:case 11:case 15:rf(P,Z,re,we,M),yh(8,Z);break;case 23:break;case 22:var pt=Z.stateNode;Z.memoizedState!==null?pt._visibility&2?rf(P,Z,re,we,M):bh(P,Z):(pt._visibility|=2,rf(P,Z,re,we,M)),M&&Ye&2048&&Yx(Z.alternate,Z);break;case 24:rf(P,Z,re,we,M),M&&Ye&2048&&Gx(Z.alternate,Z);break;default:rf(P,Z,re,we,M)}d=d.sibling}}function bh(i,d){if(d.subtreeFlags&10256)for(d=d.child;d!==null;){var p=i,g=d,M=g.flags;switch(g.tag){case 22:bh(p,g),M&2048&&Yx(g.alternate,g);break;case 24:bh(p,g),M&2048&&Gx(g.alternate,g);break;default:bh(p,g)}d=d.sibling}}var xh=8192;function of(i){if(i.subtreeFlags&xh)for(i=i.child;i!==null;)SM(i),i=i.sibling}function SM(i){switch(i.tag){case 26:of(i),i.flags&xh&&i.memoizedState!==null&&YF(gs,i.memoizedState,i.memoizedProps);break;case 5:of(i);break;case 3:case 4:var d=gs;gs=Fy(i.stateNode.containerInfo),of(i),gs=d;break;case 22:i.memoizedState===null&&(d=i.alternate,d!==null&&d.memoizedState!==null?(d=xh,xh=16777216,of(i),xh=d):of(i));break;default:of(i)}}function wM(i){var d=i.alternate;if(d!==null&&(i=d.child,i!==null)){d.child=null;do d=i.sibling,i.sibling=null,i=d;while(i!==null)}}function Sh(i){var d=i.deletions;if((i.flags&16)!==0){if(d!==null)for(var p=0;p<d.length;p++){var g=d[p];Bo=g,kM(g,i)}wM(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)CM(i),i=i.sibling}function CM(i){switch(i.tag){case 0:case 11:case 15:Sh(i),i.flags&2048&&pc(9,i,i.return);break;case 3:Sh(i);break;case 12:Sh(i);break;case 22:var d=i.stateNode;i.memoizedState!==null&&d._visibility&2&&(i.return===null||i.return.tag!==13)?(d._visibility&=-3,My(i)):Sh(i);break;default:Sh(i)}}function My(i){var d=i.deletions;if((i.flags&16)!==0){if(d!==null)for(var p=0;p<d.length;p++){var g=d[p];Bo=g,kM(g,i)}wM(i)}for(i=i.child;i!==null;){switch(d=i,d.tag){case 0:case 11:case 15:pc(8,d,d.return),My(d);break;case 22:p=d.stateNode,p._visibility&2&&(p._visibility&=-3,My(d));break;default:My(d)}i=i.sibling}}function kM(i,d){for(;Bo!==null;){var p=Bo;switch(p.tag){case 0:case 11:case 15:pc(8,p,d);break;case 23:case 22:if(p.memoizedState!==null&&p.memoizedState.cachePool!==null){var g=p.memoizedState.cachePool.pool;g!=null&&g.refCount++}break;case 24:rh(p.memoizedState.cache)}if(g=p.child,g!==null)g.return=p,Bo=g;else e:for(p=i;Bo!==null;){g=Bo;var M=g.sibling,P=g.return;if(mM(g),g===p){Bo=null;break e}if(M!==null){M.return=P,Bo=M;break e}Bo=P}}}var cF={getCacheForType:function(i){var d=lo(Do),p=d.data.get(i);return p===void 0&&(p=i(),d.data.set(i,p)),p}},uF=typeof WeakMap=="function"?WeakMap:Map,kr=0,Vr=null,or=null,fr=0,Er=0,oi=null,gc=!1,af=!1,Kx=!1,Dl=0,co=0,yc=0,Mu=0,Qx=0,ji=0,sf=0,wh=null,ja=null,Xx=!1,Zx=0,Ry=1/0,Oy=null,vc=null,Go=0,bc=null,lf=null,cf=0,Jx=0,e1=null,EM=null,Ch=0,t1=null;function ai(){if((kr&2)!==0&&fr!==0)return fr&-fr;if(D.T!==null){var i=Kd;return i!==0?i:l1()}return $t()}function TM(){ji===0&&(ji=(fr&536870912)===0||J?$n():536870912);var i=Di.current;return i!==null&&(i.flags|=32),ji}function ii(i,d,p){(i===Vr&&(Er===2||Er===9)||i.cancelPendingCommit!==null)&&(uf(i,0),xc(i,fr,ji,!1)),Jt(i,p),((kr&2)===0||i!==Vr)&&(i===Vr&&((kr&2)===0&&(Mu|=p),co===4&&xc(i,fr,ji,!1)),Us(i))}function MM(i,d,p){if((kr&6)!==0)throw Error(r(327));var g=!p&&(d&124)===0&&(d&i.expiredLanes)===0||qt(i,d),M=g?pF(i,d):o1(i,d,!0),P=g;do{if(M===0){af&&!g&&xc(i,d,0,!1);break}else{if(p=i.current.alternate,P&&!dF(p)){M=o1(i,d,!1),P=!1;continue}if(M===2){if(P=d,i.errorRecoveryDisabledLanes&P)var Z=0;else Z=i.pendingLanes&-536870913,Z=Z!==0?Z:Z&536870912?536870912:0;if(Z!==0){d=Z;e:{var re=i;M=wh;var we=re.current.memoizedState.isDehydrated;if(we&&(uf(re,Z).flags|=256),Z=o1(re,Z,!1),Z!==2){if(Kx&&!we){re.errorRecoveryDisabledLanes|=P,Mu|=P,M=4;break e}P=ja,ja=M,P!==null&&(ja===null?ja=P:ja.push.apply(ja,P))}M=Z}if(P=!1,M!==2)continue}}if(M===1){uf(i,0),xc(i,d,0,!0);break}e:{switch(g=i,P=M,P){case 0:case 1:throw Error(r(345));case 4:if((d&4194048)!==d)break;case 6:xc(g,d,ji,!gc);break e;case 2:ja=null;break;case 3:case 5:break;default:throw Error(r(329))}if((d&62914560)===d&&(M=Zx+300-je(),10<M)){if(xc(g,d,ji,!gc),jt(g,0,!0)!==0)break e;g.timeoutHandle=nR(RM.bind(null,g,p,ja,Oy,Xx,d,ji,Mu,sf,gc,P,2,-0,0),M);break e}RM(g,p,ja,Oy,Xx,d,ji,Mu,sf,gc,P,0,-0,0)}}break}while(!0);Us(i)}function RM(i,d,p,g,M,P,Z,re,we,Ye,pt,vt,Ke,Xe){if(i.timeoutHandle=-1,vt=d.subtreeFlags,(vt&8192||(vt&16785408)===16785408)&&($h={stylesheets:null,count:0,unsuspend:qF},SM(d),vt=GF(),vt!==null)){i.cancelPendingCommit=vt(NM.bind(null,i,d,P,p,g,M,Z,re,we,pt,1,Ke,Xe)),xc(i,P,Z,!Ye);return}NM(i,d,P,p,g,M,Z,re,we)}function dF(i){for(var d=i;;){var p=d.tag;if((p===0||p===11||p===15)&&d.flags&16384&&(p=d.updateQueue,p!==null&&(p=p.stores,p!==null)))for(var g=0;g<p.length;g++){var M=p[g],P=M.getSnapshot;M=M.value;try{if(!ln(P(),M))return!1}catch{return!1}}if(p=d.child,d.subtreeFlags&16384&&p!==null)p.return=d,d=p;else{if(d===i)break;for(;d.sibling===null;){if(d.return===null||d.return===i)return!0;d=d.return}d.sibling.return=d.return,d=d.sibling}}return!0}function xc(i,d,p,g){d&=~Qx,d&=~Mu,i.suspendedLanes|=d,i.pingedLanes&=~d,g&&(i.warmLanes|=d),g=i.expirationTimes;for(var M=d;0<M;){var P=31-ge(M),Z=1<<P;g[P]=-1,M&=~Z}p!==0&&Ce(i,p,d)}function $y(){return(kr&6)===0?(kh(0),!1):!0}function n1(){if(or!==null){if(Er===0)var i=or.return;else i=or,$a=Oa=null,bx(i),tf=null,hh=0,i=or;for(;i!==null;)sM(i.alternate,i),i=i.return;or=null}}function uf(i,d){var p=i.timeoutHandle;p!==-1&&(i.timeoutHandle=-1,OF(p)),p=i.cancelPendingCommit,p!==null&&(i.cancelPendingCommit=null,p()),n1(),Vr=i,or=p=$i(i.current,null),fr=d,Er=0,oi=null,gc=!1,af=qt(i,d),Kx=!1,sf=ji=Qx=Mu=yc=co=0,ja=wh=null,Xx=!1,(d&8)!==0&&(d|=d&32);var g=i.entangledLanes;if(g!==0)for(i=i.entanglements,g&=d;0<g;){var M=31-ge(g),P=1<<M;d|=i[M],g&=~P}return Dl=d,ic(),p}function OM(i,d){Jn=null,D.H=yy,d===ah||d===sy?(d=qE(),Er=3):d===VE?(d=qE(),Er=4):Er=d===YT?8:d!==null&&typeof d=="object"&&typeof d.then=="function"?6:1,oi=d,or===null&&(co=1,wy(i,aa(d,i.current)))}function $M(){var i=D.H;return D.H=yy,i===null?yy:i}function PM(){var i=D.A;return D.A=cF,i}function r1(){co=4,gc||(fr&4194048)!==fr&&Di.current!==null||(af=!0),(yc&134217727)===0&&(Mu&134217727)===0||Vr===null||xc(Vr,fr,ji,!1)}function o1(i,d,p){var g=kr;kr|=2;var M=$M(),P=PM();(Vr!==i||fr!==d)&&(Oy=null,uf(i,d)),d=!1;var Z=co;e:do try{if(Er!==0&&or!==null){var re=or,we=oi;switch(Er){case 8:n1(),Z=6;break e;case 3:case 2:case 9:case 6:Di.current===null&&(d=!0);var Ye=Er;if(Er=0,oi=null,df(i,re,we,Ye),p&&af){Z=0;break e}break;default:Ye=Er,Er=0,oi=null,df(i,re,we,Ye)}}fF(),Z=co;break}catch(pt){OM(i,pt)}while(!0);return d&&i.shellSuspendCounter++,$a=Oa=null,kr=g,D.H=M,D.A=P,or===null&&(Vr=null,fr=0,ic()),Z}function fF(){for(;or!==null;)AM(or)}function pF(i,d){var p=kr;kr|=2;var g=$M(),M=PM();Vr!==i||fr!==d?(Oy=null,Ry=je()+500,uf(i,d)):af=qt(i,d);e:do try{if(Er!==0&&or!==null){d=or;var P=oi;t:switch(Er){case 1:Er=0,oi=null,df(i,d,P,1);break;case 2:case 9:if(HE(P)){Er=0,oi=null,DM(d);break}d=function(){Er!==2&&Er!==9||Vr!==i||(Er=7),Us(i)},P.then(d,d);break e;case 3:Er=7;break e;case 4:Er=5;break e;case 7:HE(P)?(Er=0,oi=null,DM(d)):(Er=0,oi=null,df(i,d,P,7));break;case 5:var Z=null;switch(or.tag){case 26:Z=or.memoizedState;case 5:case 27:var re=or;if(!Z||hR(Z)){Er=0,oi=null;var we=re.sibling;if(we!==null)or=we;else{var Ye=re.return;Ye!==null?(or=Ye,Py(Ye)):or=null}break t}}Er=0,oi=null,df(i,d,P,5);break;case 6:Er=0,oi=null,df(i,d,P,6);break;case 8:n1(),co=6;break e;default:throw Error(r(462))}}hF();break}catch(pt){OM(i,pt)}while(!0);return $a=Oa=null,D.H=g,D.A=M,kr=p,or!==null?0:(Vr=null,fr=0,ic(),co)}function hF(){for(;or!==null&&!Ge();)AM(or)}function AM(i){var d=aM(i.alternate,i,Dl);i.memoizedProps=i.pendingProps,d===null?Py(i):or=d}function DM(i){var d=i,p=d.alternate;switch(d.tag){case 15:case 0:d=JT(p,d,d.pendingProps,d.type,void 0,fr);break;case 11:d=JT(p,d,d.pendingProps,d.type.render,d.ref,fr);break;case 5:bx(d);default:sM(p,d),d=or=ry(d,Dl),d=aM(p,d,Dl)}i.memoizedProps=i.pendingProps,d===null?Py(i):or=d}function df(i,d,p,g){$a=Oa=null,bx(d),tf=null,hh=0;var M=d.return;try{if(rF(i,M,d,p,fr)){co=1,wy(i,aa(p,i.current)),or=null;return}}catch(P){if(M!==null)throw or=M,P;co=1,wy(i,aa(p,i.current)),or=null;return}d.flags&32768?(J||g===1?i=!0:af||(fr&536870912)!==0?i=!1:(gc=i=!0,(g===2||g===9||g===3||g===6)&&(g=Di.current,g!==null&&g.tag===13&&(g.flags|=16384))),jM(d,i)):Py(d)}function Py(i){var d=i;do{if((d.flags&32768)!==0){jM(d,gc);return}i=d.return;var p=aF(d.alternate,d,Dl);if(p!==null){or=p;return}if(d=d.sibling,d!==null){or=d;return}or=d=i}while(d!==null);co===0&&(co=5)}function jM(i,d){do{var p=iF(i.alternate,i);if(p!==null){p.flags&=32767,or=p;return}if(p=i.return,p!==null&&(p.flags|=32768,p.subtreeFlags=0,p.deletions=null),!d&&(i=i.sibling,i!==null)){or=i;return}or=i=p}while(i!==null);co=6,or=null}function NM(i,d,p,g,M,P,Z,re,we){i.cancelPendingCommit=null;do Ay();while(Go!==0);if((kr&6)!==0)throw Error(r(327));if(d!==null){if(d===i.current)throw Error(r(177));if(P=d.lanes|d.childLanes,P|=vu,Dn(i,p,P,Z,re,we),i===Vr&&(or=Vr=null,fr=0),lf=d,bc=i,cf=p,Jx=P,e1=M,EM=g,(d.subtreeFlags&10256)!==0||(d.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,vF(et,function(){return _M(),null})):(i.callbackNode=null,i.callbackPriority=0),g=(d.flags&13878)!==0,(d.subtreeFlags&13878)!==0||g){g=D.T,D.T=null,M=K.p,K.p=2,Z=kr,kr|=4;try{sF(i,d,p)}finally{kr=Z,K.p=M,D.T=g}}Go=1,IM(),LM(),zM()}}function IM(){if(Go===1){Go=0;var i=bc,d=lf,p=(d.flags&13878)!==0;if((d.subtreeFlags&13878)!==0||p){p=D.T,D.T=null;var g=K.p;K.p=2;var M=kr;kr|=4;try{vM(d,i);var P=g1,Z=ma(i.containerInfo),re=P.focusedElem,we=P.selectionRange;if(Z!==re&&re&&re.ownerDocument&&Qa(re.ownerDocument.documentElement,re)){if(we!==null&&zn(re)){var Ye=we.start,pt=we.end;if(pt===void 0&&(pt=Ye),"selectionStart"in re)re.selectionStart=Ye,re.selectionEnd=Math.min(pt,re.value.length);else{var vt=re.ownerDocument||document,Ke=vt&&vt.defaultView||window;if(Ke.getSelection){var Xe=Ke.getSelection(),In=re.textContent.length,On=Math.min(we.start,In),Nr=we.end===void 0?On:Math.min(we.end,In);!Xe.extend&&On>Nr&&(Z=Nr,Nr=On,On=Z);var Be=Hr(re,On),Ae=Hr(re,Nr);if(Be&&Ae&&(Xe.rangeCount!==1||Xe.anchorNode!==Be.node||Xe.anchorOffset!==Be.offset||Xe.focusNode!==Ae.node||Xe.focusOffset!==Ae.offset)){var He=vt.createRange();He.setStart(Be.node,Be.offset),Xe.removeAllRanges(),On>Nr?(Xe.addRange(He),Xe.extend(Ae.node,Ae.offset)):(He.setEnd(Ae.node,Ae.offset),Xe.addRange(He))}}}}for(vt=[],Xe=re;Xe=Xe.parentNode;)Xe.nodeType===1&&vt.push({element:Xe,left:Xe.scrollLeft,top:Xe.scrollTop});for(typeof re.focus=="function"&&re.focus(),re=0;re<vt.length;re++){var gt=vt[re];gt.element.scrollLeft=gt.left,gt.element.scrollTop=gt.top}}Hy=!!m1,g1=m1=null}finally{kr=M,K.p=g,D.T=p}}i.current=d,Go=2}}function LM(){if(Go===2){Go=0;var i=bc,d=lf,p=(d.flags&8772)!==0;if((d.subtreeFlags&8772)!==0||p){p=D.T,D.T=null;var g=K.p;K.p=2;var M=kr;kr|=4;try{hM(i,d.alternate,d)}finally{kr=M,K.p=g,D.T=p}}Go=3}}function zM(){if(Go===4||Go===3){Go=0,Te();var i=bc,d=lf,p=cf,g=EM;(d.subtreeFlags&10256)!==0||(d.flags&10256)!==0?Go=5:(Go=0,lf=bc=null,FM(i,i.pendingLanes));var M=i.pendingLanes;if(M===0&&(vc=null),en(p),d=d.stateNode,ct&&typeof ct.onCommitFiberRoot=="function")try{ct.onCommitFiberRoot(Je,d,void 0,(d.current.flags&128)===128)}catch{}if(g!==null){d=D.T,M=K.p,K.p=2,D.T=null;try{for(var P=i.onRecoverableError,Z=0;Z<g.length;Z++){var re=g[Z];P(re.value,{componentStack:re.stack})}}finally{D.T=d,K.p=M}}(cf&3)!==0&&Ay(),Us(i),M=i.pendingLanes,(p&4194090)!==0&&(M&42)!==0?i===t1?Ch++:(Ch=0,t1=i):Ch=0,kh(0)}}function FM(i,d){(i.pooledCacheLanes&=d)===0&&(d=i.pooledCache,d!=null&&(i.pooledCache=null,rh(d)))}function Ay(i){return IM(),LM(),zM(),_M()}function _M(){if(Go!==5)return!1;var i=bc,d=Jx;Jx=0;var p=en(cf),g=D.T,M=K.p;try{K.p=32>p?32:p,D.T=null,p=e1,e1=null;var P=bc,Z=cf;if(Go=0,lf=bc=null,cf=0,(kr&6)!==0)throw Error(r(331));var re=kr;if(kr|=4,CM(P.current),xM(P,P.current,Z,p),kr=re,kh(0,!1),ct&&typeof ct.onPostCommitFiberRoot=="function")try{ct.onPostCommitFiberRoot(Je,P)}catch{}return!0}finally{K.p=M,D.T=g,FM(i,d)}}function BM(i,d,p){d=aa(p,d),d=Dx(i.stateNode,d,2),i=cc(i,d,2),i!==null&&(Jt(i,2),Us(i))}function Br(i,d,p){if(i.tag===3)BM(i,i,p);else for(;d!==null;){if(d.tag===3){BM(d,i,p);break}else if(d.tag===1){var g=d.stateNode;if(typeof d.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(vc===null||!vc.has(g))){i=aa(p,i),p=WT(2),g=cc(d,p,2),g!==null&&(qT(p,g,d,i),Jt(g,2),Us(g));break}}d=d.return}}function a1(i,d,p){var g=i.pingCache;if(g===null){g=i.pingCache=new uF;var M=new Set;g.set(d,M)}else M=g.get(d),M===void 0&&(M=new Set,g.set(d,M));M.has(p)||(Kx=!0,M.add(p),i=mF.bind(null,i,d,p),d.then(i,i))}function mF(i,d,p){var g=i.pingCache;g!==null&&g.delete(d),i.pingedLanes|=i.suspendedLanes&p,i.warmLanes&=~p,Vr===i&&(fr&p)===p&&(co===4||co===3&&(fr&62914560)===fr&&300>je()-Zx?(kr&2)===0&&uf(i,0):Qx|=p,sf===fr&&(sf=0)),Us(i)}function UM(i,d){d===0&&(d=_n()),i=hs(i,d),i!==null&&(Jt(i,d),Us(i))}function gF(i){var d=i.memoizedState,p=0;d!==null&&(p=d.retryLane),UM(i,p)}function yF(i,d){var p=0;switch(i.tag){case 13:var g=i.stateNode,M=i.memoizedState;M!==null&&(p=M.retryLane);break;case 19:g=i.stateNode;break;case 22:g=i.stateNode._retryCache;break;default:throw Error(r(314))}g!==null&&g.delete(d),UM(i,p)}function vF(i,d){return ce(i,d)}var Dy=null,ff=null,i1=!1,jy=!1,s1=!1,Ru=0;function Us(i){i!==ff&&i.next===null&&(ff===null?Dy=ff=i:ff=ff.next=i),jy=!0,i1||(i1=!0,xF())}function kh(i,d){if(!s1&&jy){s1=!0;do for(var p=!1,g=Dy;g!==null;){if(i!==0){var M=g.pendingLanes;if(M===0)var P=0;else{var Z=g.suspendedLanes,re=g.pingedLanes;P=(1<<31-ge(42|i)+1)-1,P&=M&~(Z&~re),P=P&201326741?P&201326741|1:P?P|2:0}P!==0&&(p=!0,qM(g,P))}else P=fr,P=jt(g,g===Vr?P:0,g.cancelPendingCommit!==null||g.timeoutHandle!==-1),(P&3)===0||qt(g,P)||(p=!0,qM(g,P));g=g.next}while(p);s1=!1}}function bF(){VM()}function VM(){jy=i1=!1;var i=0;Ru!==0&&(RF()&&(i=Ru),Ru=0);for(var d=je(),p=null,g=Dy;g!==null;){var M=g.next,P=HM(g,d);P===0?(g.next=null,p===null?Dy=M:p.next=M,M===null&&(ff=p)):(p=g,(i!==0||(P&3)!==0)&&(jy=!0)),g=M}kh(i)}function HM(i,d){for(var p=i.suspendedLanes,g=i.pingedLanes,M=i.expirationTimes,P=i.pendingLanes&-62914561;0<P;){var Z=31-ge(P),re=1<<Z,we=M[Z];we===-1?((re&p)===0||(re&g)!==0)&&(M[Z]=mn(re,d)):we<=d&&(i.expiredLanes|=re),P&=~re}if(d=Vr,p=fr,p=jt(i,i===d?p:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),g=i.callbackNode,p===0||i===d&&(Er===2||Er===9)||i.cancelPendingCommit!==null)return g!==null&&g!==null&&Ee(g),i.callbackNode=null,i.callbackPriority=0;if((p&3)===0||qt(i,p)){if(d=p&-p,d===i.callbackPriority)return d;switch(g!==null&&Ee(g),en(p)){case 2:case 8:p=Ie;break;case 32:p=et;break;case 268435456:p=Wt;break;default:p=et}return g=WM.bind(null,i),p=ce(p,g),i.callbackPriority=d,i.callbackNode=p,d}return g!==null&&g!==null&&Ee(g),i.callbackPriority=2,i.callbackNode=null,2}function WM(i,d){if(Go!==0&&Go!==5)return i.callbackNode=null,i.callbackPriority=0,null;var p=i.callbackNode;if(Ay()&&i.callbackNode!==p)return null;var g=fr;return g=jt(i,i===Vr?g:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),g===0?null:(MM(i,g,d),HM(i,je()),i.callbackNode!=null&&i.callbackNode===p?WM.bind(null,i):null)}function qM(i,d){if(Ay())return null;MM(i,d,!0)}function xF(){$F(function(){(kr&6)!==0?ce(lt,bF):VM()})}function l1(){return Ru===0&&(Ru=$n()),Ru}function YM(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:gl(""+i)}function GM(i,d){var p=d.ownerDocument.createElement("input");return p.name=d.name,p.value=d.value,i.id&&p.setAttribute("form",i.id),d.parentNode.insertBefore(p,d),i=new FormData(i),p.parentNode.removeChild(p),i}function SF(i,d,p,g,M){if(d==="submit"&&p&&p.stateNode===M){var P=YM((M[Ln]||null).action),Z=g.submitter;Z&&(d=(d=Z[Ln]||null)?YM(d.formAction):Z.getAttribute("formAction"),d!==null&&(P=d,Z=null));var re=new ro("action","action",null,g,M);i.push({event:re,listeners:[{instance:null,listener:function(){if(g.defaultPrevented){if(Ru!==0){var we=Z?GM(M,Z):new FormData(M);Rx(p,{pending:!0,data:we,method:M.method,action:P},null,we)}}else typeof P=="function"&&(re.preventDefault(),we=Z?GM(M,Z):new FormData(M),Rx(p,{pending:!0,data:we,method:M.method,action:P},P,we))},currentTarget:M}]})}}for(var c1=0;c1<Bd.length;c1++){var u1=Bd[c1],wF=u1.toLowerCase(),CF=u1[0].toUpperCase()+u1.slice(1);Xa(wF,"on"+CF)}Xa(ey,"onAnimationEnd"),Xa(ty,"onAnimationIteration"),Xa(ny,"onAnimationStart"),Xa("dblclick","onDoubleClick"),Xa("focusin","onFocus"),Xa("focusout","onBlur"),Xa(Qp,"onTransitionRun"),Xa(rx,"onTransitionStart"),Xa(ox,"onTransitionCancel"),Xa(Xp,"onTransitionEnd"),ft("onMouseEnter",["mouseout","mouseover"]),ft("onMouseLeave",["mouseout","mouseover"]),ft("onPointerEnter",["pointerout","pointerover"]),ft("onPointerLeave",["pointerout","pointerover"]),Fe("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Fe("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Fe("onBeforeInput",["compositionend","keypress","textInput","paste"]),Fe("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Fe("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Fe("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Eh="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),kF=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Eh));function KM(i,d){d=(d&4)!==0;for(var p=0;p<i.length;p++){var g=i[p],M=g.event;g=g.listeners;e:{var P=void 0;if(d)for(var Z=g.length-1;0<=Z;Z--){var re=g[Z],we=re.instance,Ye=re.currentTarget;if(re=re.listener,we!==P&&M.isPropagationStopped())break e;P=re,M.currentTarget=Ye;try{P(M)}catch(pt){Sy(pt)}M.currentTarget=null,P=we}else for(Z=0;Z<g.length;Z++){if(re=g[Z],we=re.instance,Ye=re.currentTarget,re=re.listener,we!==P&&M.isPropagationStopped())break e;P=re,M.currentTarget=Ye;try{P(M)}catch(pt){Sy(pt)}M.currentTarget=null,P=we}}}}function ar(i,d){var p=d[Me];p===void 0&&(p=d[Me]=new Set);var g=i+"__bubble";p.has(g)||(QM(d,i,2,!1),p.add(g))}function d1(i,d,p){var g=0;d&&(g|=4),QM(p,i,g,d)}var Ny="_reactListening"+Math.random().toString(36).slice(2);function f1(i){if(!i[Ny]){i[Ny]=!0,de.forEach(function(p){p!=="selectionchange"&&(kF.has(p)||d1(p,!1,i),d1(p,!0,i))});var d=i.nodeType===9?i:i.ownerDocument;d===null||d[Ny]||(d[Ny]=!0,d1("selectionchange",!1,d))}}function QM(i,d,p,g){switch(xR(d)){case 2:var M=XF;break;case 8:M=ZF;break;default:M=T1}p=M.bind(null,d,p,i),M=void 0,!lu||d!=="touchstart"&&d!=="touchmove"&&d!=="wheel"||(M=!0),g?M!==void 0?i.addEventListener(d,p,{capture:!0,passive:M}):i.addEventListener(d,p,!0):M!==void 0?i.addEventListener(d,p,{passive:M}):i.addEventListener(d,p,!1)}function p1(i,d,p,g,M){var P=g;if((d&1)===0&&(d&2)===0&&g!==null)e:for(;;){if(g===null)return;var Z=g.tag;if(Z===3||Z===4){var re=g.stateNode.containerInfo;if(re===M)break;if(Z===4)for(Z=g.return;Z!==null;){var we=Z.tag;if((we===3||we===4)&&Z.stateNode.containerInfo===M)return;Z=Z.return}for(;re!==null;){if(Z=Et(re),Z===null)return;if(we=Z.tag,we===5||we===6||we===26||we===27){g=P=Z;continue e}re=re.parentNode}}g=g.return}Md(function(){var Ye=P,pt=ec(p),vt=[];e:{var Ke=Zp.get(i);if(Ke!==void 0){var Xe=ro,In=i;switch(i){case"keypress":if(nc(p)===0)break e;case"keydown":case"keyup":Xe=mu;break;case"focusin":In="focus",Xe=pu;break;case"focusout":In="blur",Xe=pu;break;case"beforeblur":case"afterblur":Xe=pu;break;case"click":if(p.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Xe=fu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Xe=Od;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Xe=Dd;break;case ey:case ty:case ny:Xe=rc;break;case Xp:Xe=_p;break;case"scroll":case"scrollend":Xe=Oe;break;case"wheel":Xe=Bp;break;case"copy":case"cut":case"paste":Xe=js;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Xe=Ad;break;case"toggle":case"beforetoggle":Xe=Vp}var On=(d&4)!==0,Nr=!On&&(i==="scroll"||i==="scrollend"),Be=On?Ke!==null?Ke+"Capture":null:Ke;On=[];for(var Ae=Ye,He;Ae!==null;){var gt=Ae;if(He=gt.stateNode,gt=gt.tag,gt!==5&&gt!==26&&gt!==27||He===null||Be===null||(gt=yl(Ae,Be),gt!=null&&On.push(Th(Ae,gt,He))),Nr)break;Ae=Ae.return}0<On.length&&(Ke=new Xe(Ke,In,null,p,pt),vt.push({event:Ke,listeners:On}))}}if((d&7)===0){e:{if(Ke=i==="mouseover"||i==="pointerover",Xe=i==="mouseout"||i==="pointerout",Ke&&p!==Jl&&(In=p.relatedTarget||p.fromElement)&&(Et(In)||In[ye]))break e;if((Xe||Ke)&&(Ke=pt.window===pt?pt:(Ke=pt.ownerDocument)?Ke.defaultView||Ke.parentWindow:window,Xe?(In=p.relatedTarget||p.toElement,Xe=Ye,In=In?Et(In):null,In!==null&&(Nr=a(In),On=In.tag,In!==Nr||On!==5&&On!==27&&On!==6)&&(In=null)):(Xe=null,In=Ye),Xe!==In)){if(On=fu,gt="onMouseLeave",Be="onMouseEnter",Ae="mouse",(i==="pointerout"||i==="pointerover")&&(On=Ad,gt="onPointerLeave",Be="onPointerEnter",Ae="pointer"),Nr=Xe==null?Ke:Kt(Xe),He=In==null?Ke:Kt(In),Ke=new On(gt,Ae+"leave",Xe,p,pt),Ke.target=Nr,Ke.relatedTarget=He,gt=null,Et(pt)===Ye&&(On=new On(Be,Ae+"enter",In,p,pt),On.target=He,On.relatedTarget=Nr,gt=On),Nr=gt,Xe&&In)t:{for(On=Xe,Be=In,Ae=0,He=On;He;He=pf(He))Ae++;for(He=0,gt=Be;gt;gt=pf(gt))He++;for(;0<Ae-He;)On=pf(On),Ae--;for(;0<He-Ae;)Be=pf(Be),He--;for(;Ae--;){if(On===Be||Be!==null&&On===Be.alternate)break t;On=pf(On),Be=pf(Be)}On=null}else On=null;Xe!==null&&XM(vt,Ke,Xe,On,!1),In!==null&&Nr!==null&&XM(vt,Nr,In,On,!0)}}e:{if(Ke=Ye?Kt(Ye):window,Xe=Ke.nodeName&&Ke.nodeName.toLowerCase(),Xe==="select"||Xe==="input"&&Ke.type==="file")var an=B;else if(Fd(Ke))if(G)an=wr;else{an=Gn;var tr=Yn}else Xe=Ke.nodeName,!Xe||Xe.toLowerCase()!=="input"||Ke.type!=="checkbox"&&Ke.type!=="radio"?Ye&&au(Ye.elementType)&&(an=B):an=Gt;if(an&&(an=an(i,Ye))){_d(vt,an,p,pt);break e}tr&&tr(i,Ke,Ye),i==="focusout"&&Ye&&Ke.type==="number"&&Ye.memoizedProps.value!=null&&ss(Ke,"number",Ke.value)}switch(tr=Ye?Kt(Ye):window,i){case"focusin":(Fd(tr)||tr.contentEditable==="true")&&(ga=tr,ps=Ye,oa=null);break;case"focusout":oa=ps=ga=null;break;case"mousedown":oo=!0;break;case"contextmenu":case"mouseup":case"dragend":oo=!1,Cl(vt,p,pt);break;case"selectionchange":if(wl)break;case"keydown":case"keyup":Cl(vt,p,pt)}var gn;if(yu)e:{switch(i){case"compositionstart":var Pn="onCompositionStart";break e;case"compositionend":Pn="onCompositionEnd";break e;case"compositionupdate":Pn="onCompositionUpdate";break e}Pn=void 0}else Ls?Ld(i,p)&&(Pn="onCompositionEnd"):i==="keydown"&&p.keyCode===229&&(Pn="onCompositionStart");Pn&&(jd&&p.locale!=="ko"&&(Ls||Pn!=="onCompositionStart"?Pn==="onCompositionEnd"&&Ls&&(gn=uu()):(Mi=pt,cu="value"in Mi?Mi.value:Mi.textContent,Ls=!0)),tr=Iy(Ye,Pn),0<tr.length&&(Pn=new ds(Pn,i,null,p,pt),vt.push({event:Pn,listeners:tr}),gn?Pn.data=gn:(gn=zd(p),gn!==null&&(Pn.data=gn)))),(gn=Wp?qp(i,p):Yp(i,p))&&(Pn=Iy(Ye,"onBeforeInput"),0<Pn.length&&(tr=new ds("onBeforeInput","beforeinput",null,p,pt),vt.push({event:tr,listeners:Pn}),tr.data=gn)),SF(vt,i,Ye,p,pt)}KM(vt,d)})}function Th(i,d,p){return{instance:i,listener:d,currentTarget:p}}function Iy(i,d){for(var p=d+"Capture",g=[];i!==null;){var M=i,P=M.stateNode;if(M=M.tag,M!==5&&M!==26&&M!==27||P===null||(M=yl(i,p),M!=null&&g.unshift(Th(i,M,P)),M=yl(i,d),M!=null&&g.push(Th(i,M,P))),i.tag===3)return g;i=i.return}return[]}function pf(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function XM(i,d,p,g,M){for(var P=d._reactName,Z=[];p!==null&&p!==g;){var re=p,we=re.alternate,Ye=re.stateNode;if(re=re.tag,we!==null&&we===g)break;re!==5&&re!==26&&re!==27||Ye===null||(we=Ye,M?(Ye=yl(p,P),Ye!=null&&Z.unshift(Th(p,Ye,we))):M||(Ye=yl(p,P),Ye!=null&&Z.push(Th(p,Ye,we)))),p=p.return}Z.length!==0&&i.push({event:d,listeners:Z})}var EF=/\r\n?/g,TF=/\u0000|\uFFFD/g;function ZM(i){return(typeof i=="string"?i:""+i).replace(EF,`
50
+ `).replace(TF,"")}function JM(i,d){return d=ZM(d),ZM(i)===d}function Ly(){}function jr(i,d,p,g,M,P){switch(p){case"children":typeof g=="string"?d==="body"||d==="textarea"&&g===""||ls(i,g):(typeof g=="number"||typeof g=="bigint")&&d!=="body"&&ls(i,""+g);break;case"className":Re(i,"class",g);break;case"tabIndex":Re(i,"tabindex",g);break;case"dir":case"role":case"viewBox":case"width":case"height":Re(i,p,g);break;case"style":ml(i,g,P);break;case"data":if(d!=="object"){Re(i,"data",g);break}case"src":case"href":if(g===""&&(d!=="a"||p!=="href")){i.removeAttribute(p);break}if(g==null||typeof g=="function"||typeof g=="symbol"||typeof g=="boolean"){i.removeAttribute(p);break}g=gl(""+g),i.setAttribute(p,g);break;case"action":case"formAction":if(typeof g=="function"){i.setAttribute(p,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof P=="function"&&(p==="formAction"?(d!=="input"&&jr(i,d,"name",M.name,M,null),jr(i,d,"formEncType",M.formEncType,M,null),jr(i,d,"formMethod",M.formMethod,M,null),jr(i,d,"formTarget",M.formTarget,M,null)):(jr(i,d,"encType",M.encType,M,null),jr(i,d,"method",M.method,M,null),jr(i,d,"target",M.target,M,null)));if(g==null||typeof g=="symbol"||typeof g=="boolean"){i.removeAttribute(p);break}g=gl(""+g),i.setAttribute(p,g);break;case"onClick":g!=null&&(i.onclick=Ly);break;case"onScroll":g!=null&&ar("scroll",i);break;case"onScrollEnd":g!=null&&ar("scrollend",i);break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error(r(61));if(p=g.__html,p!=null){if(M.children!=null)throw Error(r(60));i.innerHTML=p}}break;case"multiple":i.multiple=g&&typeof g!="function"&&typeof g!="symbol";break;case"muted":i.muted=g&&typeof g!="function"&&typeof g!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(g==null||typeof g=="function"||typeof g=="boolean"||typeof g=="symbol"){i.removeAttribute("xlink:href");break}p=gl(""+g),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",p);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":g!=null&&typeof g!="function"&&typeof g!="symbol"?i.setAttribute(p,""+g):i.removeAttribute(p);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":g&&typeof g!="function"&&typeof g!="symbol"?i.setAttribute(p,""):i.removeAttribute(p);break;case"capture":case"download":g===!0?i.setAttribute(p,""):g!==!1&&g!=null&&typeof g!="function"&&typeof g!="symbol"?i.setAttribute(p,g):i.removeAttribute(p);break;case"cols":case"rows":case"size":case"span":g!=null&&typeof g!="function"&&typeof g!="symbol"&&!isNaN(g)&&1<=g?i.setAttribute(p,g):i.removeAttribute(p);break;case"rowSpan":case"start":g==null||typeof g=="function"||typeof g=="symbol"||isNaN(g)?i.removeAttribute(p):i.setAttribute(p,g);break;case"popover":ar("beforetoggle",i),ar("toggle",i),ve(i,"popover",g);break;case"xlinkActuate":it(i,"http://www.w3.org/1999/xlink","xlink:actuate",g);break;case"xlinkArcrole":it(i,"http://www.w3.org/1999/xlink","xlink:arcrole",g);break;case"xlinkRole":it(i,"http://www.w3.org/1999/xlink","xlink:role",g);break;case"xlinkShow":it(i,"http://www.w3.org/1999/xlink","xlink:show",g);break;case"xlinkTitle":it(i,"http://www.w3.org/1999/xlink","xlink:title",g);break;case"xlinkType":it(i,"http://www.w3.org/1999/xlink","xlink:type",g);break;case"xmlBase":it(i,"http://www.w3.org/XML/1998/namespace","xml:base",g);break;case"xmlLang":it(i,"http://www.w3.org/XML/1998/namespace","xml:lang",g);break;case"xmlSpace":it(i,"http://www.w3.org/XML/1998/namespace","xml:space",g);break;case"is":ve(i,"is",g);break;case"innerText":case"textContent":break;default:(!(2<p.length)||p[0]!=="o"&&p[0]!=="O"||p[1]!=="n"&&p[1]!=="N")&&(p=Td.get(p)||p,ve(i,p,g))}}function h1(i,d,p,g,M,P){switch(p){case"style":ml(i,g,P);break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error(r(61));if(p=g.__html,p!=null){if(M.children!=null)throw Error(r(60));i.innerHTML=p}}break;case"children":typeof g=="string"?ls(i,g):(typeof g=="number"||typeof g=="bigint")&&ls(i,""+g);break;case"onScroll":g!=null&&ar("scroll",i);break;case"onScrollEnd":g!=null&&ar("scrollend",i);break;case"onClick":g!=null&&(i.onclick=Ly);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!fe.hasOwnProperty(p))e:{if(p[0]==="o"&&p[1]==="n"&&(M=p.endsWith("Capture"),d=p.slice(2,M?p.length-7:void 0),P=i[Ln]||null,P=P!=null?P[p]:null,typeof P=="function"&&i.removeEventListener(d,P,M),typeof g=="function")){typeof P!="function"&&P!==null&&(p in i?i[p]=null:i.hasAttribute(p)&&i.removeAttribute(p)),i.addEventListener(d,g,M);break e}p in i?i[p]=g:g===!0?i.setAttribute(p,""):ve(i,p,g)}}}function Ko(i,d,p){switch(d){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ar("error",i),ar("load",i);var g=!1,M=!1,P;for(P in p)if(p.hasOwnProperty(P)){var Z=p[P];if(Z!=null)switch(P){case"src":g=!0;break;case"srcSet":M=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,d));default:jr(i,d,P,Z,p,null)}}M&&jr(i,d,"srcSet",p.srcSet,p,null),g&&jr(i,d,"src",p.src,p,null);return;case"input":ar("invalid",i);var re=P=Z=M=null,we=null,Ye=null;for(g in p)if(p.hasOwnProperty(g)){var pt=p[g];if(pt!=null)switch(g){case"name":M=pt;break;case"type":Z=pt;break;case"checked":we=pt;break;case"defaultChecked":Ye=pt;break;case"value":P=pt;break;case"defaultValue":re=pt;break;case"children":case"dangerouslySetInnerHTML":if(pt!=null)throw Error(r(137,d));break;default:jr(i,d,g,pt,p,null)}}pl(i,P,re,we,Ye,Z,M,!1),To(i);return;case"select":ar("invalid",i),g=Z=P=null;for(M in p)if(p.hasOwnProperty(M)&&(re=p[M],re!=null))switch(M){case"value":P=re;break;case"defaultValue":Z=re;break;case"multiple":g=re;default:jr(i,d,M,re,p,null)}d=P,p=Z,i.multiple=!!g,d!=null?Ti(i,!!g,d,!1):p!=null&&Ti(i,!!g,p,!0);return;case"textarea":ar("invalid",i),P=M=g=null;for(Z in p)if(p.hasOwnProperty(Z)&&(re=p[Z],re!=null))switch(Z){case"value":g=re;break;case"defaultValue":M=re;break;case"children":P=re;break;case"dangerouslySetInnerHTML":if(re!=null)throw Error(r(91));break;default:jr(i,d,Z,re,p,null)}hl(i,g,M,P),To(i);return;case"option":for(we in p)if(p.hasOwnProperty(we)&&(g=p[we],g!=null))switch(we){case"selected":i.selected=g&&typeof g!="function"&&typeof g!="symbol";break;default:jr(i,d,we,g,p,null)}return;case"dialog":ar("beforetoggle",i),ar("toggle",i),ar("cancel",i),ar("close",i);break;case"iframe":case"object":ar("load",i);break;case"video":case"audio":for(g=0;g<Eh.length;g++)ar(Eh[g],i);break;case"image":ar("error",i),ar("load",i);break;case"details":ar("toggle",i);break;case"embed":case"source":case"link":ar("error",i),ar("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Ye in p)if(p.hasOwnProperty(Ye)&&(g=p[Ye],g!=null))switch(Ye){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,d));default:jr(i,d,Ye,g,p,null)}return;default:if(au(d)){for(pt in p)p.hasOwnProperty(pt)&&(g=p[pt],g!==void 0&&h1(i,d,pt,g,p,void 0));return}}for(re in p)p.hasOwnProperty(re)&&(g=p[re],g!=null&&jr(i,d,re,g,p,null))}function MF(i,d,p,g){switch(d){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var M=null,P=null,Z=null,re=null,we=null,Ye=null,pt=null;for(Xe in p){var vt=p[Xe];if(p.hasOwnProperty(Xe)&&vt!=null)switch(Xe){case"checked":break;case"value":break;case"defaultValue":we=vt;default:g.hasOwnProperty(Xe)||jr(i,d,Xe,null,g,vt)}}for(var Ke in g){var Xe=g[Ke];if(vt=p[Ke],g.hasOwnProperty(Ke)&&(Xe!=null||vt!=null))switch(Ke){case"type":P=Xe;break;case"name":M=Xe;break;case"checked":Ye=Xe;break;case"defaultChecked":pt=Xe;break;case"value":Z=Xe;break;case"defaultValue":re=Xe;break;case"children":case"dangerouslySetInnerHTML":if(Xe!=null)throw Error(r(137,d));break;default:Xe!==vt&&jr(i,d,Ke,Xe,g,vt)}}Ga(i,Z,re,we,Ye,pt,P,M);return;case"select":Xe=Z=re=Ke=null;for(P in p)if(we=p[P],p.hasOwnProperty(P)&&we!=null)switch(P){case"value":break;case"multiple":Xe=we;default:g.hasOwnProperty(P)||jr(i,d,P,null,g,we)}for(M in g)if(P=g[M],we=p[M],g.hasOwnProperty(M)&&(P!=null||we!=null))switch(M){case"value":Ke=P;break;case"defaultValue":re=P;break;case"multiple":Z=P;default:P!==we&&jr(i,d,M,P,g,we)}d=re,p=Z,g=Xe,Ke!=null?Ti(i,!!p,Ke,!1):!!g!=!!p&&(d!=null?Ti(i,!!p,d,!0):Ti(i,!!p,p?[]:"",!1));return;case"textarea":Xe=Ke=null;for(re in p)if(M=p[re],p.hasOwnProperty(re)&&M!=null&&!g.hasOwnProperty(re))switch(re){case"value":break;case"children":break;default:jr(i,d,re,null,g,M)}for(Z in g)if(M=g[Z],P=p[Z],g.hasOwnProperty(Z)&&(M!=null||P!=null))switch(Z){case"value":Ke=M;break;case"defaultValue":Xe=M;break;case"children":break;case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(91));break;default:M!==P&&jr(i,d,Z,M,g,P)}ou(i,Ke,Xe);return;case"option":for(var In in p)if(Ke=p[In],p.hasOwnProperty(In)&&Ke!=null&&!g.hasOwnProperty(In))switch(In){case"selected":i.selected=!1;break;default:jr(i,d,In,null,g,Ke)}for(we in g)if(Ke=g[we],Xe=p[we],g.hasOwnProperty(we)&&Ke!==Xe&&(Ke!=null||Xe!=null))switch(we){case"selected":i.selected=Ke&&typeof Ke!="function"&&typeof Ke!="symbol";break;default:jr(i,d,we,Ke,g,Xe)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var On in p)Ke=p[On],p.hasOwnProperty(On)&&Ke!=null&&!g.hasOwnProperty(On)&&jr(i,d,On,null,g,Ke);for(Ye in g)if(Ke=g[Ye],Xe=p[Ye],g.hasOwnProperty(Ye)&&Ke!==Xe&&(Ke!=null||Xe!=null))switch(Ye){case"children":case"dangerouslySetInnerHTML":if(Ke!=null)throw Error(r(137,d));break;default:jr(i,d,Ye,Ke,g,Xe)}return;default:if(au(d)){for(var Nr in p)Ke=p[Nr],p.hasOwnProperty(Nr)&&Ke!==void 0&&!g.hasOwnProperty(Nr)&&h1(i,d,Nr,void 0,g,Ke);for(pt in g)Ke=g[pt],Xe=p[pt],!g.hasOwnProperty(pt)||Ke===Xe||Ke===void 0&&Xe===void 0||h1(i,d,pt,Ke,g,Xe);return}}for(var Be in p)Ke=p[Be],p.hasOwnProperty(Be)&&Ke!=null&&!g.hasOwnProperty(Be)&&jr(i,d,Be,null,g,Ke);for(vt in g)Ke=g[vt],Xe=p[vt],!g.hasOwnProperty(vt)||Ke===Xe||Ke==null&&Xe==null||jr(i,d,vt,Ke,g,Xe)}var m1=null,g1=null;function zy(i){return i.nodeType===9?i:i.ownerDocument}function eR(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function tR(i,d){if(i===0)switch(d){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&d==="foreignObject"?0:i}function y1(i,d){return i==="textarea"||i==="noscript"||typeof d.children=="string"||typeof d.children=="number"||typeof d.children=="bigint"||typeof d.dangerouslySetInnerHTML=="object"&&d.dangerouslySetInnerHTML!==null&&d.dangerouslySetInnerHTML.__html!=null}var v1=null;function RF(){var i=window.event;return i&&i.type==="popstate"?i===v1?!1:(v1=i,!0):(v1=null,!1)}var nR=typeof setTimeout=="function"?setTimeout:void 0,OF=typeof clearTimeout=="function"?clearTimeout:void 0,rR=typeof Promise=="function"?Promise:void 0,$F=typeof queueMicrotask=="function"?queueMicrotask:typeof rR<"u"?function(i){return rR.resolve(null).then(i).catch(PF)}:nR;function PF(i){setTimeout(function(){throw i})}function Sc(i){return i==="head"}function oR(i,d){var p=d,g=0,M=0;do{var P=p.nextSibling;if(i.removeChild(p),P&&P.nodeType===8)if(p=P.data,p==="/$"){if(0<g&&8>g){p=g;var Z=i.ownerDocument;if(p&1&&Mh(Z.documentElement),p&2&&Mh(Z.body),p&4)for(p=Z.head,Mh(p),Z=p.firstChild;Z;){var re=Z.nextSibling,we=Z.nodeName;Z[kt]||we==="SCRIPT"||we==="STYLE"||we==="LINK"&&Z.rel.toLowerCase()==="stylesheet"||p.removeChild(Z),Z=re}}if(M===0){i.removeChild(P),Nh(d);return}M--}else p==="$"||p==="$?"||p==="$!"?M++:g=p.charCodeAt(0)-48;else g=0;p=P}while(p);Nh(d)}function b1(i){var d=i.firstChild;for(d&&d.nodeType===10&&(d=d.nextSibling);d;){var p=d;switch(d=d.nextSibling,p.nodeName){case"HTML":case"HEAD":case"BODY":b1(p),bt(p);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(p.rel.toLowerCase()==="stylesheet")continue}i.removeChild(p)}}function AF(i,d,p,g){for(;i.nodeType===1;){var M=p;if(i.nodeName.toLowerCase()!==d.toLowerCase()){if(!g&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(g){if(!i[kt])switch(d){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(P=i.getAttribute("rel"),P==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(P!==M.rel||i.getAttribute("href")!==(M.href==null||M.href===""?null:M.href)||i.getAttribute("crossorigin")!==(M.crossOrigin==null?null:M.crossOrigin)||i.getAttribute("title")!==(M.title==null?null:M.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(P=i.getAttribute("src"),(P!==(M.src==null?null:M.src)||i.getAttribute("type")!==(M.type==null?null:M.type)||i.getAttribute("crossorigin")!==(M.crossOrigin==null?null:M.crossOrigin))&&P&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(d==="input"&&i.type==="hidden"){var P=M.name==null?null:""+M.name;if(M.type==="hidden"&&i.getAttribute("name")===P)return i}else return i;if(i=ys(i.nextSibling),i===null)break}return null}function DF(i,d,p){if(d==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!p||(i=ys(i.nextSibling),i===null))return null;return i}function x1(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState==="complete"}function jF(i,d){var p=i.ownerDocument;if(i.data!=="$?"||p.readyState==="complete")d();else{var g=function(){d(),p.removeEventListener("DOMContentLoaded",g)};p.addEventListener("DOMContentLoaded",g),i._reactRetry=g}}function ys(i){for(;i!=null;i=i.nextSibling){var d=i.nodeType;if(d===1||d===3)break;if(d===8){if(d=i.data,d==="$"||d==="$!"||d==="$?"||d==="F!"||d==="F")break;if(d==="/$")return null}}return i}var S1=null;function aR(i){i=i.previousSibling;for(var d=0;i;){if(i.nodeType===8){var p=i.data;if(p==="$"||p==="$!"||p==="$?"){if(d===0)return i;d--}else p==="/$"&&d++}i=i.previousSibling}return null}function iR(i,d,p){switch(d=zy(p),i){case"html":if(i=d.documentElement,!i)throw Error(r(452));return i;case"head":if(i=d.head,!i)throw Error(r(453));return i;case"body":if(i=d.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function Mh(i){for(var d=i.attributes;d.length;)i.removeAttributeNode(d[0]);bt(i)}var Ni=new Map,sR=new Set;function Fy(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var jl=K.d;K.d={f:NF,r:IF,D:LF,C:zF,L:FF,m:_F,X:UF,S:BF,M:VF};function NF(){var i=jl.f(),d=$y();return i||d}function IF(i){var d=Pt(i);d!==null&&d.tag===5&&d.type==="form"?MT(d):jl.r(i)}var hf=typeof document>"u"?null:document;function lR(i,d,p){var g=hf;if(g&&typeof d=="string"&&d){var M=_r(d);M='link[rel="'+i+'"][href="'+M+'"]',typeof p=="string"&&(M+='[crossorigin="'+p+'"]'),sR.has(M)||(sR.add(M),i={rel:i,crossOrigin:p,href:d},g.querySelector(M)===null&&(d=g.createElement("link"),Ko(d,"link",i),Ft(d),g.head.appendChild(d)))}}function LF(i){jl.D(i),lR("dns-prefetch",i,null)}function zF(i,d){jl.C(i,d),lR("preconnect",i,d)}function FF(i,d,p){jl.L(i,d,p);var g=hf;if(g&&i&&d){var M='link[rel="preload"][as="'+_r(d)+'"]';d==="image"&&p&&p.imageSrcSet?(M+='[imagesrcset="'+_r(p.imageSrcSet)+'"]',typeof p.imageSizes=="string"&&(M+='[imagesizes="'+_r(p.imageSizes)+'"]')):M+='[href="'+_r(i)+'"]';var P=M;switch(d){case"style":P=mf(i);break;case"script":P=gf(i)}Ni.has(P)||(i=u({rel:"preload",href:d==="image"&&p&&p.imageSrcSet?void 0:i,as:d},p),Ni.set(P,i),g.querySelector(M)!==null||d==="style"&&g.querySelector(Rh(P))||d==="script"&&g.querySelector(Oh(P))||(d=g.createElement("link"),Ko(d,"link",i),Ft(d),g.head.appendChild(d)))}}function _F(i,d){jl.m(i,d);var p=hf;if(p&&i){var g=d&&typeof d.as=="string"?d.as:"script",M='link[rel="modulepreload"][as="'+_r(g)+'"][href="'+_r(i)+'"]',P=M;switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":P=gf(i)}if(!Ni.has(P)&&(i=u({rel:"modulepreload",href:i},d),Ni.set(P,i),p.querySelector(M)===null)){switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(p.querySelector(Oh(P)))return}g=p.createElement("link"),Ko(g,"link",i),Ft(g),p.head.appendChild(g)}}}function BF(i,d,p){jl.S(i,d,p);var g=hf;if(g&&i){var M=At(g).hoistableStyles,P=mf(i);d=d||"default";var Z=M.get(P);if(!Z){var re={loading:0,preload:null};if(Z=g.querySelector(Rh(P)))re.loading=5;else{i=u({rel:"stylesheet",href:i,"data-precedence":d},p),(p=Ni.get(P))&&w1(i,p);var we=Z=g.createElement("link");Ft(we),Ko(we,"link",i),we._p=new Promise(function(Ye,pt){we.onload=Ye,we.onerror=pt}),we.addEventListener("load",function(){re.loading|=1}),we.addEventListener("error",function(){re.loading|=2}),re.loading|=4,_y(Z,d,g)}Z={type:"stylesheet",instance:Z,count:1,state:re},M.set(P,Z)}}}function UF(i,d){jl.X(i,d);var p=hf;if(p&&i){var g=At(p).hoistableScripts,M=gf(i),P=g.get(M);P||(P=p.querySelector(Oh(M)),P||(i=u({src:i,async:!0},d),(d=Ni.get(M))&&C1(i,d),P=p.createElement("script"),Ft(P),Ko(P,"link",i),p.head.appendChild(P)),P={type:"script",instance:P,count:1,state:null},g.set(M,P))}}function VF(i,d){jl.M(i,d);var p=hf;if(p&&i){var g=At(p).hoistableScripts,M=gf(i),P=g.get(M);P||(P=p.querySelector(Oh(M)),P||(i=u({src:i,async:!0,type:"module"},d),(d=Ni.get(M))&&C1(i,d),P=p.createElement("script"),Ft(P),Ko(P,"link",i),p.head.appendChild(P)),P={type:"script",instance:P,count:1,state:null},g.set(M,P))}}function cR(i,d,p,g){var M=(M=le.current)?Fy(M):null;if(!M)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof p.precedence=="string"&&typeof p.href=="string"?(d=mf(p.href),p=At(M).hoistableStyles,g=p.get(d),g||(g={type:"style",instance:null,count:0,state:null},p.set(d,g)),g):{type:"void",instance:null,count:0,state:null};case"link":if(p.rel==="stylesheet"&&typeof p.href=="string"&&typeof p.precedence=="string"){i=mf(p.href);var P=At(M).hoistableStyles,Z=P.get(i);if(Z||(M=M.ownerDocument||M,Z={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},P.set(i,Z),(P=M.querySelector(Rh(i)))&&!P._p&&(Z.instance=P,Z.state.loading=5),Ni.has(i)||(p={rel:"preload",as:"style",href:p.href,crossOrigin:p.crossOrigin,integrity:p.integrity,media:p.media,hrefLang:p.hrefLang,referrerPolicy:p.referrerPolicy},Ni.set(i,p),P||HF(M,i,p,Z.state))),d&&g===null)throw Error(r(528,""));return Z}if(d&&g!==null)throw Error(r(529,""));return null;case"script":return d=p.async,p=p.src,typeof p=="string"&&d&&typeof d!="function"&&typeof d!="symbol"?(d=gf(p),p=At(M).hoistableScripts,g=p.get(d),g||(g={type:"script",instance:null,count:0,state:null},p.set(d,g)),g):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function mf(i){return'href="'+_r(i)+'"'}function Rh(i){return'link[rel="stylesheet"]['+i+"]"}function uR(i){return u({},i,{"data-precedence":i.precedence,precedence:null})}function HF(i,d,p,g){i.querySelector('link[rel="preload"][as="style"]['+d+"]")?g.loading=1:(d=i.createElement("link"),g.preload=d,d.addEventListener("load",function(){return g.loading|=1}),d.addEventListener("error",function(){return g.loading|=2}),Ko(d,"link",p),Ft(d),i.head.appendChild(d))}function gf(i){return'[src="'+_r(i)+'"]'}function Oh(i){return"script[async]"+i}function dR(i,d,p){if(d.count++,d.instance===null)switch(d.type){case"style":var g=i.querySelector('style[data-href~="'+_r(p.href)+'"]');if(g)return d.instance=g,Ft(g),g;var M=u({},p,{"data-href":p.href,"data-precedence":p.precedence,href:null,precedence:null});return g=(i.ownerDocument||i).createElement("style"),Ft(g),Ko(g,"style",M),_y(g,p.precedence,i),d.instance=g;case"stylesheet":M=mf(p.href);var P=i.querySelector(Rh(M));if(P)return d.state.loading|=4,d.instance=P,Ft(P),P;g=uR(p),(M=Ni.get(M))&&w1(g,M),P=(i.ownerDocument||i).createElement("link"),Ft(P);var Z=P;return Z._p=new Promise(function(re,we){Z.onload=re,Z.onerror=we}),Ko(P,"link",g),d.state.loading|=4,_y(P,p.precedence,i),d.instance=P;case"script":return P=gf(p.src),(M=i.querySelector(Oh(P)))?(d.instance=M,Ft(M),M):(g=p,(M=Ni.get(P))&&(g=u({},p),C1(g,M)),i=i.ownerDocument||i,M=i.createElement("script"),Ft(M),Ko(M,"link",g),i.head.appendChild(M),d.instance=M);case"void":return null;default:throw Error(r(443,d.type))}else d.type==="stylesheet"&&(d.state.loading&4)===0&&(g=d.instance,d.state.loading|=4,_y(g,p.precedence,i));return d.instance}function _y(i,d,p){for(var g=p.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),M=g.length?g[g.length-1]:null,P=M,Z=0;Z<g.length;Z++){var re=g[Z];if(re.dataset.precedence===d)P=re;else if(P!==M)break}P?P.parentNode.insertBefore(i,P.nextSibling):(d=p.nodeType===9?p.head:p,d.insertBefore(i,d.firstChild))}function w1(i,d){i.crossOrigin==null&&(i.crossOrigin=d.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=d.referrerPolicy),i.title==null&&(i.title=d.title)}function C1(i,d){i.crossOrigin==null&&(i.crossOrigin=d.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=d.referrerPolicy),i.integrity==null&&(i.integrity=d.integrity)}var By=null;function fR(i,d,p){if(By===null){var g=new Map,M=By=new Map;M.set(p,g)}else M=By,g=M.get(p),g||(g=new Map,M.set(p,g));if(g.has(i))return g;for(g.set(i,null),p=p.getElementsByTagName(i),M=0;M<p.length;M++){var P=p[M];if(!(P[kt]||P[on]||i==="link"&&P.getAttribute("rel")==="stylesheet")&&P.namespaceURI!=="http://www.w3.org/2000/svg"){var Z=P.getAttribute(d)||"";Z=i+Z;var re=g.get(Z);re?re.push(P):g.set(Z,[P])}}return g}function pR(i,d,p){i=i.ownerDocument||i,i.head.insertBefore(p,d==="title"?i.querySelector("head > title"):null)}function WF(i,d,p){if(p===1||d.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof d.precedence!="string"||typeof d.href!="string"||d.href==="")break;return!0;case"link":if(typeof d.rel!="string"||typeof d.href!="string"||d.href===""||d.onLoad||d.onError)break;switch(d.rel){case"stylesheet":return i=d.disabled,typeof d.precedence=="string"&&i==null;default:return!0}case"script":if(d.async&&typeof d.async!="function"&&typeof d.async!="symbol"&&!d.onLoad&&!d.onError&&d.src&&typeof d.src=="string")return!0}return!1}function hR(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var $h=null;function qF(){}function YF(i,d,p){if($h===null)throw Error(r(475));var g=$h;if(d.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(d.state.loading&4)===0){if(d.instance===null){var M=mf(p.href),P=i.querySelector(Rh(M));if(P){i=P._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(g.count++,g=Uy.bind(g),i.then(g,g)),d.state.loading|=4,d.instance=P,Ft(P);return}P=i.ownerDocument||i,p=uR(p),(M=Ni.get(M))&&w1(p,M),P=P.createElement("link"),Ft(P);var Z=P;Z._p=new Promise(function(re,we){Z.onload=re,Z.onerror=we}),Ko(P,"link",p),d.instance=P}g.stylesheets===null&&(g.stylesheets=new Map),g.stylesheets.set(d,i),(i=d.state.preload)&&(d.state.loading&3)===0&&(g.count++,d=Uy.bind(g),i.addEventListener("load",d),i.addEventListener("error",d))}}function GF(){if($h===null)throw Error(r(475));var i=$h;return i.stylesheets&&i.count===0&&k1(i,i.stylesheets),0<i.count?function(d){var p=setTimeout(function(){if(i.stylesheets&&k1(i,i.stylesheets),i.unsuspend){var g=i.unsuspend;i.unsuspend=null,g()}},6e4);return i.unsuspend=d,function(){i.unsuspend=null,clearTimeout(p)}}:null}function Uy(){if(this.count--,this.count===0){if(this.stylesheets)k1(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var Vy=null;function k1(i,d){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Vy=new Map,d.forEach(KF,i),Vy=null,Uy.call(i))}function KF(i,d){if(!(d.state.loading&4)){var p=Vy.get(i);if(p)var g=p.get(null);else{p=new Map,Vy.set(i,p);for(var M=i.querySelectorAll("link[data-precedence],style[data-precedence]"),P=0;P<M.length;P++){var Z=M[P];(Z.nodeName==="LINK"||Z.getAttribute("media")!=="not all")&&(p.set(Z.dataset.precedence,Z),g=Z)}g&&p.set(null,g)}M=d.instance,Z=M.getAttribute("data-precedence"),P=p.get(Z)||g,P===g&&p.set(null,M),p.set(Z,M),this.count++,g=Uy.bind(this),M.addEventListener("load",g),M.addEventListener("error",g),P?P.parentNode.insertBefore(M,P.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(M,i.firstChild)),d.state.loading|=4}}var Ph={$$typeof:E,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function QF(i,d,p,g,M,P,Z,re){this.tag=1,this.containerInfo=i,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Un(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Un(0),this.hiddenUpdates=Un(null),this.identifierPrefix=g,this.onUncaughtError=M,this.onCaughtError=P,this.onRecoverableError=Z,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=re,this.incompleteTransitions=new Map}function mR(i,d,p,g,M,P,Z,re,we,Ye,pt,vt){return i=new QF(i,d,p,Z,re,we,Ye,vt),d=1,P===!0&&(d|=24),P=qo(3,null,null,d),i.current=P,P.stateNode=i,d=ax(),d.refCount++,i.pooledCache=d,d.refCount++,P.memoizedState={element:g,isDehydrated:p,cache:d},cx(P),i}function gR(i){return i?(i=Za,i):Za}function yR(i,d,p,g,M,P){M=gR(M),g.context===null?g.context=M:g.pendingContext=M,g=lc(d),g.payload={element:p},P=P===void 0?null:P,P!==null&&(g.callback=P),p=cc(i,g,d),p!==null&&(ii(p,i,d),sh(p,i,d))}function vR(i,d){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var p=i.retryLane;i.retryLane=p!==0&&p<d?p:d}}function E1(i,d){vR(i,d),(i=i.alternate)&&vR(i,d)}function bR(i){if(i.tag===13){var d=hs(i,67108864);d!==null&&ii(d,i,67108864),E1(i,67108864)}}var Hy=!0;function XF(i,d,p,g){var M=D.T;D.T=null;var P=K.p;try{K.p=2,T1(i,d,p,g)}finally{K.p=P,D.T=M}}function ZF(i,d,p,g){var M=D.T;D.T=null;var P=K.p;try{K.p=8,T1(i,d,p,g)}finally{K.p=P,D.T=M}}function T1(i,d,p,g){if(Hy){var M=M1(g);if(M===null)p1(i,d,g,Wy,p),SR(i,g);else if(e4(M,i,d,p,g))g.stopPropagation();else if(SR(i,g),d&4&&-1<JF.indexOf(i)){for(;M!==null;){var P=Pt(M);if(P!==null)switch(P.tag){case 3:if(P=P.stateNode,P.current.memoizedState.isDehydrated){var Z=st(P.pendingLanes);if(Z!==0){var re=P;for(re.pendingLanes|=2,re.entangledLanes|=2;Z;){var we=1<<31-ge(Z);re.entanglements[1]|=we,Z&=~we}Us(P),(kr&6)===0&&(Ry=je()+500,kh(0))}}break;case 13:re=hs(P,2),re!==null&&ii(re,P,2),$y(),E1(P,2)}if(P=M1(g),P===null&&p1(i,d,g,Wy,p),P===M)break;M=P}M!==null&&g.stopPropagation()}else p1(i,d,g,null,p)}}function M1(i){return i=ec(i),R1(i)}var Wy=null;function R1(i){if(Wy=null,i=Et(i),i!==null){var d=a(i);if(d===null)i=null;else{var p=d.tag;if(p===13){if(i=s(d),i!==null)return i;i=null}else if(p===3){if(d.stateNode.current.memoizedState.isDehydrated)return d.tag===3?d.stateNode.containerInfo:null;i=null}else d!==i&&(i=null)}}return Wy=i,null}function xR(i){switch(i){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(oe()){case lt:return 2;case Ie:return 8;case et:case mt:return 32;case Wt:return 268435456;default:return 32}default:return 32}}var O1=!1,wc=null,Cc=null,kc=null,Ah=new Map,Dh=new Map,Ec=[],JF="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function SR(i,d){switch(i){case"focusin":case"focusout":wc=null;break;case"dragenter":case"dragleave":Cc=null;break;case"mouseover":case"mouseout":kc=null;break;case"pointerover":case"pointerout":Ah.delete(d.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dh.delete(d.pointerId)}}function jh(i,d,p,g,M,P){return i===null||i.nativeEvent!==P?(i={blockedOn:d,domEventName:p,eventSystemFlags:g,nativeEvent:P,targetContainers:[M]},d!==null&&(d=Pt(d),d!==null&&bR(d)),i):(i.eventSystemFlags|=g,d=i.targetContainers,M!==null&&d.indexOf(M)===-1&&d.push(M),i)}function e4(i,d,p,g,M){switch(d){case"focusin":return wc=jh(wc,i,d,p,g,M),!0;case"dragenter":return Cc=jh(Cc,i,d,p,g,M),!0;case"mouseover":return kc=jh(kc,i,d,p,g,M),!0;case"pointerover":var P=M.pointerId;return Ah.set(P,jh(Ah.get(P)||null,i,d,p,g,M)),!0;case"gotpointercapture":return P=M.pointerId,Dh.set(P,jh(Dh.get(P)||null,i,d,p,g,M)),!0}return!1}function wR(i){var d=Et(i.target);if(d!==null){var p=a(d);if(p!==null){if(d=p.tag,d===13){if(d=s(p),d!==null){i.blockedOn=d,Fr(i.priority,function(){if(p.tag===13){var g=ai();g=Mn(g);var M=hs(p,g);M!==null&&ii(M,p,g),E1(p,g)}});return}}else if(d===3&&p.stateNode.current.memoizedState.isDehydrated){i.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}i.blockedOn=null}function qy(i){if(i.blockedOn!==null)return!1;for(var d=i.targetContainers;0<d.length;){var p=M1(i.nativeEvent);if(p===null){p=i.nativeEvent;var g=new p.constructor(p.type,p);Jl=g,p.target.dispatchEvent(g),Jl=null}else return d=Pt(p),d!==null&&bR(d),i.blockedOn=p,!1;d.shift()}return!0}function CR(i,d,p){qy(i)&&p.delete(d)}function t4(){O1=!1,wc!==null&&qy(wc)&&(wc=null),Cc!==null&&qy(Cc)&&(Cc=null),kc!==null&&qy(kc)&&(kc=null),Ah.forEach(CR),Dh.forEach(CR)}function Yy(i,d){i.blockedOn===d&&(i.blockedOn=null,O1||(O1=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,t4)))}var Gy=null;function kR(i){Gy!==i&&(Gy=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Gy===i&&(Gy=null);for(var d=0;d<i.length;d+=3){var p=i[d],g=i[d+1],M=i[d+2];if(typeof g!="function"){if(R1(g||p)===null)continue;break}var P=Pt(p);P!==null&&(i.splice(d,3),d-=3,Rx(P,{pending:!0,data:M,method:p.method,action:g},g,M))}}))}function Nh(i){function d(we){return Yy(we,i)}wc!==null&&Yy(wc,i),Cc!==null&&Yy(Cc,i),kc!==null&&Yy(kc,i),Ah.forEach(d),Dh.forEach(d);for(var p=0;p<Ec.length;p++){var g=Ec[p];g.blockedOn===i&&(g.blockedOn=null)}for(;0<Ec.length&&(p=Ec[0],p.blockedOn===null);)wR(p),p.blockedOn===null&&Ec.shift();if(p=(i.ownerDocument||i).$$reactFormReplay,p!=null)for(g=0;g<p.length;g+=3){var M=p[g],P=p[g+1],Z=M[Ln]||null;if(typeof P=="function")Z||kR(p);else if(Z){var re=null;if(P&&P.hasAttribute("formAction")){if(M=P,Z=P[Ln]||null)re=Z.formAction;else if(R1(M)!==null)continue}else re=Z.action;typeof re=="function"?p[g+1]=re:(p.splice(g,3),g-=3),kR(p)}}}function $1(i){this._internalRoot=i}Ky.prototype.render=$1.prototype.render=function(i){var d=this._internalRoot;if(d===null)throw Error(r(409));var p=d.current,g=ai();yR(p,g,i,d,null,null)},Ky.prototype.unmount=$1.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var d=i.containerInfo;yR(i.current,2,null,i,null,null),$y(),d[ye]=null}};function Ky(i){this._internalRoot=i}Ky.prototype.unstable_scheduleHydration=function(i){if(i){var d=$t();i={blockedOn:null,target:i,priority:d};for(var p=0;p<Ec.length&&d!==0&&d<Ec[p].priority;p++);Ec.splice(p,0,i),p===0&&wR(i)}};var ER=t.version;if(ER!=="19.1.1")throw Error(r(527,ER,"19.1.1"));K.findDOMNode=function(i){var d=i._reactInternals;if(d===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=c(d),i=i!==null?f(i):null,i=i===null?null:i.stateNode,i};var n4={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qy=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qy.isDisabled&&Qy.supportsFiber)try{Je=Qy.inject(n4),ct=Qy}catch{}}return Lh.createRoot=function(i,d){if(!o(i))throw Error(r(299));var p=!1,g="",M=BT,P=UT,Z=VT,re=null;return d!=null&&(d.unstable_strictMode===!0&&(p=!0),d.identifierPrefix!==void 0&&(g=d.identifierPrefix),d.onUncaughtError!==void 0&&(M=d.onUncaughtError),d.onCaughtError!==void 0&&(P=d.onCaughtError),d.onRecoverableError!==void 0&&(Z=d.onRecoverableError),d.unstable_transitionCallbacks!==void 0&&(re=d.unstable_transitionCallbacks)),d=mR(i,1,!1,null,null,p,g,M,P,Z,re,null),i[ye]=d.current,f1(i),new $1(d)},Lh.hydrateRoot=function(i,d,p){if(!o(i))throw Error(r(299));var g=!1,M="",P=BT,Z=UT,re=VT,we=null,Ye=null;return p!=null&&(p.unstable_strictMode===!0&&(g=!0),p.identifierPrefix!==void 0&&(M=p.identifierPrefix),p.onUncaughtError!==void 0&&(P=p.onUncaughtError),p.onCaughtError!==void 0&&(Z=p.onCaughtError),p.onRecoverableError!==void 0&&(re=p.onRecoverableError),p.unstable_transitionCallbacks!==void 0&&(we=p.unstable_transitionCallbacks),p.formState!==void 0&&(Ye=p.formState)),d=mR(i,1,!0,d,p??null,g,M,P,Z,re,we,Ye),d.context=gR(null),p=d.current,g=ai(),g=Mn(g),M=lc(g),M.callback=null,cc(p,M,g),p=g,d.current.lanes=p,Jt(d,p),Us(d),i[ye]=d.current,f1(i),new Ky(d)},Lh.version="19.1.1",Lh}var NR;function f4(){if(NR)return D1.exports;NR=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),D1.exports=d4(),D1.exports}var p4=f4();/**
51
+ * react-router v7.18.4
52
+ *
53
+ * Copyright (c) Remix Software Inc.
54
+ *
55
+ * This source code is licensed under the MIT license found in the
56
+ * LICENSE.md file in the root directory of this source tree.
57
+ *
58
+ * @license MIT
59
+ */var VD=e=>{throw TypeError(e)},HD=(e,t,n)=>t.has(e)||VD("Cannot "+n),Fi=(e,t,n)=>(HD(e,t,"read from private field"),n?n.call(e):t.get(e)),Em=(e,t,n)=>t.has(e)?VD("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Vs=(e,t,n,r)=>(HD(e,t,"write to private field"),t.set(e,n),n),Fb=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,_b=/^[\\/]{2}/;function WD(e,t){return t+e.replace(/\\/g,"/")}var IR="popstate";function LR(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function h4(e={}){function t(r,o){let a=o.state?.masked,{pathname:s,search:l,hash:c}=a||r.location;return Xm("",{pathname:s,search:l,hash:c},o.state&&o.state.usr||null,o.state&&o.state.key||"default",a?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,o){return typeof o=="string"?o:ka(o)}return g4(t,n,null,e)}function Zn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function vo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function m4(){return Math.random().toString(36).substring(2,10)}function zR(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Xm(e,t,n=null,r,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ul(t):t,state:n,key:t&&t.key||r||m4(),mask:o}}function ka({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ul(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function g4(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,s=o.history,l="POP",c=null,f=u();f==null&&(f=0,s.replaceState({...s.state,idx:f},""));function u(){return(s.state||{idx:null}).idx}function h(){l="POP";let w=u(),b=w==null?null:w-f;f=w,c&&c({action:l,location:x.location,delta:b})}function y(w,b){l="PUSH";let k=LR(w)?w:Xm(x.location,w,b);f=u()+1;let E=zR(k,f),O=x.createHref(k.mask||k);try{s.pushState(E,"",O)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;o.location.assign(O)}a&&c&&c({action:l,location:x.location,delta:1})}function v(w,b){l="REPLACE";let k=LR(w)?w:Xm(x.location,w,b);f=u();let E=zR(k,f),O=x.createHref(k.mask||k);s.replaceState(E,"",O),a&&c&&c({action:l,location:x.location,delta:0})}function S(w){return qD(o,w)}let x={get action(){return l},get location(){return e(o,s)},listen(w){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(IR,h),c=w,()=>{o.removeEventListener(IR,h),c=null}},createHref(w){return t(o,w)},createURL:S,encodeLocation(w){let b=S(w);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:y,replace:v,go(w){return s.go(w)}};return x}function qD(e,t,n=!1){let r="http://localhost";e&&(r=e.location.origin!=="null"?e.location.origin:e.location.href),Zn(r,"No window.location.(origin|href) available to create URL");let o=typeof t=="string"?t:ka(t);return o=o.replace(/ $/,"%20"),!n&&_b.test(o)&&(o=r+o),new URL(o,r)}var Tm,FR=class{constructor(e){if(Em(this,Tm,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(Fi(this,Tm).has(e))return Fi(this,Tm).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){Fi(this,Tm).set(e,t)}};Tm=new WeakMap;var y4=new Set(["lazy","caseSensitive","path","id","index","children"]);function v4(e){return y4.has(e)}var b4=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function x4(e){return b4.has(e)}function S4(e){return e.index===!0}function Zm(e,t,n=[],r={},o=!1){return e.map((a,s)=>{let l=[...n,String(s)],c=typeof a.id=="string"?a.id:l.join("-");if(Zn(a.index!==!0||!a.children,"Cannot specify children on an index route"),Zn(o||!r[c],`Found a route id collision on id "${c}". Route id's must be globally unique within Data Router usages`),S4(a)){let f={...a,id:c};return r[c]=_R(f,t(f)),f}else{let f={...a,id:c,children:void 0};return r[c]=_R(f,t(f)),a.children&&(f.children=Zm(a.children,t,l,r,o)),f}})}function _R(e,t){return Object.assign(e,{...t,...typeof t.lazy=="object"&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function YD(e,t,n="/"){return Ss(e,t,n,!1)}function Ss(e,t,n,r,o){let a=typeof t=="string"?ul(t):t,s=Va(a.pathname||"/",n);if(s==null)return null;let l=o??Dv(e),c=null,f=D4(s);for(let u=0;c==null&&u<l.length;++u)c=A4(l[u],f,r);return c}function w4(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function Dv(e){let t=GD(e);return C4(t),t}function GD(e,t=[],n=[],r="",o=!1){let a=(s,l,c=o,f)=>{let u={relativePath:f===void 0?s.path||"":f,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};if(u.relativePath.startsWith("/")){if(!u.relativePath.startsWith(r)&&c)return;Zn(u.relativePath.startsWith(r),`Absolute route path "${u.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(r.length)}let h=Yi([r,u.relativePath]),y=n.concat(u);s.children&&s.children.length>0&&(Zn(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),GD(s.children,t,y,h,c)),!(s.path==null&&!s.index)&&t.push({path:h,score:$4(h,s.index),routesMeta:y.map((v,S)=>{let[x,w]=XD(v.relativePath,v.caseSensitive,S===y.length-1);return{...v,matcher:x,compiledParams:w}})})};return e.forEach((s,l)=>{if(s.path===""||!s.path?.includes("?"))a(s,l);else for(let c of KD(s.path))a(s,l,!0,c)}),t}function KD(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let s=KD(r.join("/")),l=[];return l.push(...s.map(c=>c===""?a:[a,c].join("/"))),o&&l.push(...s),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function C4(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:P4(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var k4=/^:[\w-]+$/,E4=3,T4=2,M4=1,R4=10,O4=-2,BR=e=>e==="*";function $4(e,t){let n=e.split("/"),r=n.length;return n.some(BR)&&(r+=O4),t&&(r+=T4),n.filter(o=>!BR(o)).reduce((o,a)=>o+(k4.test(a)?E4:a===""?M4:R4),r)}function P4(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function A4(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",s=[];for(let l=0;l<r.length;++l){let c=r[l],f=l===r.length-1,u=a==="/"?t:t.slice(a.length)||"/",h={path:c.relativePath,caseSensitive:c.caseSensitive,end:f},y=c.matcher&&c.compiledParams?QD(h,u,c.matcher,c.compiledParams):rb(h,u),v=c.route;if(!y&&f&&n&&!r[r.length-1].route.index&&(y=rb({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},u)),!y)return null;Object.assign(o,y.params),s.push({params:o,pathname:Yi([a,y.pathname]),pathnameBase:I4(Yi([a,y.pathnameBase])),route:v}),y.pathnameBase!=="/"&&(a=Yi([a,y.pathnameBase]))}return s}function rb(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=XD(e.path,e.caseSensitive,e.end);return QD(e,t,n,r)}function QD(e,t,n,r){let o=t.match(n);if(!o)return null;let a=o[0],s=ap(a,1),l=o.slice(1);return{params:r.reduce((f,{paramName:u,isOptional:h},y)=>{if(u==="*"){let S=l[y]||"";s=ap(a.slice(0,a.length-S.length),1)}const v=l[y];return h&&!v?f[u]=void 0:f[u]=(v||"").replace(/%2F/g,"/"),f},{}),pathname:a,pathnameBase:s,pattern:e}}function XD(e,t=!1,n=!0){vo(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,l,c,f,u)=>{if(r.push({paramName:l,isOptional:c!=null}),c){let h=u.charAt(f+s.length);return h&&h!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function D4(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return vo(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Va(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function j4({basename:e,pathname:t}){return t==="/"?e:Yi([e,t])}var vC=e=>Fb.test(e);function N4(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ul(e):e,a;return n?(n=bC(n),n.startsWith("/")||n.startsWith("\\")?a=UR(n.substring(1),"/"):a=UR(n,t)):a=t,{pathname:a,search:L4(r),hash:z4(o)}}function UR(e,t){let n=ap(t).split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function L1(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function ZD(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Bb(e){let t=ZD(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Sg(e,t,n,r=!1){let o;typeof e=="string"?o=ul(e):(o={...e},Zn(!o.pathname||!o.pathname.includes("?"),L1("?","pathname","search",o)),Zn(!o.pathname||!o.pathname.includes("#"),L1("#","pathname","hash",o)),Zn(!o.search||!o.search.includes("#"),L1("#","search","hash",o)));let a=e===""||o.pathname==="",s=a?"/":o.pathname,l;if(s==null)l=n;else{let h=t.length-1;if(!r&&s.startsWith("..")){let y=s.split("/");for(;y[0]==="..";)y.shift(),h-=1;o.pathname=y.join("/")}l=h>=0?t[h]:"/"}let c=N4(o,l),f=s&&s!=="/"&&s.endsWith("/"),u=(a||s===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(f||u)&&(c.pathname+="/"),c}var bC=e=>e.replace(/[\\/]{2,}/g,"/"),Yi=e=>bC(e.join("/"));function ap(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var I4=e=>ap(e).replace(/^\/*/,"/"),L4=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,z4=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,F4=["EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],wg=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Jm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Cg(e){let t=e.map(n=>n.route.path).filter(Boolean);return Yi(t)||"/"}var JD=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ej(e,t){let n=e;if(typeof n!="string"||!Fb.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(JD)try{let a=new URL(window.location.href),s=_b.test(n)?new URL(WD(n,a.protocol)):new URL(n),l=Va(s.pathname,t);s.origin===a.origin&&l!=null?n=l+s.search+s.hash:o=!0}catch{vo(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:n}}var Ic=Symbol("Uninstrumented");function _4(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(o=>o({id:t.id,index:t.index,path:t.path,instrument(a){let s=Object.keys(n);for(let l of s)a[l]&&n[l].push(a[l])}}));let r={};if(typeof t.lazy=="function"&&n.lazy.length>0){let o=Uf(n.lazy,t.lazy,()=>{});o&&(r.lazy=o)}if(typeof t.lazy=="object"){let o=t.lazy;["middleware","loader","action"].forEach(a=>{let s=o[a],l=n[`lazy.${a}`];if(typeof s=="function"&&l.length>0){let c=Uf(l,s,()=>{});c&&(r.lazy=Object.assign(r.lazy||{},{[a]:c}))}})}return["loader","action"].forEach(o=>{let a=t[o];if(typeof a=="function"&&n[o].length>0){let s=a[Ic]??a,l=Uf(n[o],s,(...c)=>VR(c[0]));l&&(o==="loader"&&s.hydrate===!0&&(l.hydrate=!0),l[Ic]=s,r[o]=l)}}),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(o=>{let a=o[Ic]??o,s=Uf(n.middleware,a,(...l)=>VR(l[0]));return s?(s[Ic]=a,s):o})),r}function B4(e,t){let n={navigate:[],fetch:[]};if(t.forEach(r=>r({instrument(o){let a=Object.keys(o);for(let s of a)o[s]&&n[s].push(o[s])}})),n.navigate.length>0){let r=e.navigate[Ic]??e.navigate,o=Uf(n.navigate,r,(...a)=>{let[s,l]=a;return{to:typeof s=="number"||typeof s=="string"?s:s?ka(s):".",...HR(e,l??{})}});o&&(o[Ic]=r,e.navigate=o)}if(n.fetch.length>0){let r=e.fetch[Ic]??e.fetch,o=Uf(n.fetch,r,(...a)=>{let[s,,l,c]=a;return{href:l??".",fetcherKey:s,...HR(e,c??{})}});o&&(o[Ic]=r,e.fetch=o)}return e}function Uf(e,t,n){return e.length===0?null:async(...r)=>{let o=await tj(e,n(...r),()=>t(...r),e.length-1);if(o.type==="error")throw o.value;return o.value}}async function tj(e,t,n,r){let o=e[r],a;if(o){let s,l=async()=>(s?console.error("You cannot call instrumented handlers more than once"):s=tj(e,t,n,r-1),a=await s,Zn(a,"Expected a result"),a.type==="error"&&a.value instanceof Error?{status:"error",error:a.value}:{status:"success",error:void 0});try{await o(l,t)}catch(c){console.error("An instrumentation function threw an error:",c)}s||await l(),await s}else try{a={type:"success",value:await n()}}catch(s){a={type:"error",value:s}}return a||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function VR(e){let{request:t,context:n,params:r,pattern:o}=e;return{request:U4(t),params:{...r},pattern:o,context:V4(n)}}function HR(e,t){return{currentUrl:ka(e.state.location),..."formMethod"in t?{formMethod:t.formMethod}:{},..."formEncType"in t?{formEncType:t.formEncType}:{},..."formData"in t?{formData:t.formData}:{},..."body"in t?{body:t.body}:{}}}function U4(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function V4(e){if(W4(e)){let t={...e};return Object.freeze(t),t}else return{get:t=>e.get(t)}}var H4=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function W4(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join("\0")===H4}var WR=new URL("http://localhost");function xC(e){if(e.createURL)return e.createURL("/");try{return new URL(e.createHref("/"),WR)}catch{return WR}}function z1(e,t){return e.origin===t.origin&&(e.origin!=="null"||e.protocol===t.protocol&&e.host===t.host)}function q4(e,t){if(e.startsWith("//"))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===""||e.slice(n.length).startsWith("//"):!1}function Gf(e,t,n,r){let o=null;try{o=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),s=o!=null&&!z1(o,n),l=!z1(a,n);if(r==="reject"){if(s||l)throw new Error("External navigation is not allowed")}else if(l&&(o==null||!q4(e,o)||!z1(o,a)))throw new Error("External navigation is not allowed")}var nj=["POST","PUT","PATCH","DELETE"],Y4=new Set(nj),G4=["GET",...nj],K4=new Set(G4),rj=new Set([301,302,303,307,308]),Q4=new Set([307,308]),F1={state:"idle",location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},X4={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},jf={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Z4=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),oj="remix-router-transitions",aj=Symbol("ResetLoaderData"),Lu,Nf,Pc,If,J4=class{constructor(e){Em(this,Lu),Em(this,Nf),Em(this,Pc),Em(this,If),Vs(this,Lu,e),Vs(this,Nf,Dv(e))}get stableRoutes(){return Fi(this,Lu)}get activeRoutes(){return Fi(this,Pc)??Fi(this,Lu)}get branches(){return Fi(this,If)??Fi(this,Nf)}get hasHMRRoutes(){return Fi(this,Pc)!=null}setRoutes(e){Vs(this,Lu,e),Vs(this,Nf,Dv(e))}setHmrRoutes(e){Vs(this,Pc,e),Vs(this,If,Dv(e))}commitHmrRoutes(){Fi(this,Pc)&&(Vs(this,Lu,Fi(this,Pc)),Vs(this,Nf,Fi(this,If)),Vs(this,Pc,void 0),Vs(this,If,void 0))}};Lu=new WeakMap;Nf=new WeakMap;Pc=new WeakMap;If=new WeakMap;function e3(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";Zn(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],o=e.mapRouteProperties||Z4,a=o;if(e.instrumentations){let ye=e.instrumentations;a=Me=>({...o(Me),..._4(ye.map(ze=>ze.route).filter(Boolean),Me)})}let s={},l=new J4(Zm(e.routes,a,void 0,s)),c=e.basename||"/";c.startsWith("/")||(c=`/${c}`);let f=e.dataStrategy||a3,u={...e.future},h=null,y=new Set,v=null,S=null,x=null,w=null,b=e.hydrationData!=null,k=Ss(l.activeRoutes,e.history.location,c,!1,l.branches),E=!1,O=null,$,A;if(k==null&&!e.patchRoutesOnNavigation){let ye=_i(404,{pathname:e.history.location.pathname}),{matches:Me,route:ze}=Xy(l.activeRoutes);$=!0,A=!$,k=Me,O={[ze.id]:ye}}else if(k&&!e.hydrationData&&$t(k,l.activeRoutes,e.history.location.pathname).active&&(k=null),k)if(k.some(ye=>ye.route.lazy))$=!1,A=!$;else if(!k.some(ye=>SC(ye.route)))$=!0,A=!$;else{let ye=e.hydrationData?e.hydrationData.loaderData:null,Me=e.hydrationData?e.hydrationData.errors:null,ze=k;if(Me){let Ve=k.findIndex(rt=>Me[rt.route.id]!==void 0);ze=ze.slice(0,Ve+1)}A=!1,$=!0,ze.forEach(Ve=>{let rt=ij(Ve.route,ye,Me);A=A||rt.renderFallback,$=$&&!rt.shouldLoad})}else{$=!1,A=!$,k=[];let ye=$t(null,l.activeRoutes,e.history.location.pathname);ye.active&&ye.matches&&(E=!0,k=ye.matches)}let I,j={historyAction:e.history.action,location:e.history.location,matches:k,initialized:$,renderFallback:A,navigation:F1,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||O,fetchers:new Map,blockers:new Map},_="POP",W=null,U=!1,T,L=!1,F=new Map,H=null,D=!1,K=!1,Q=new Set,ee=new Map,X=0,te=-1,ae=new Map,ue=new Set,he=new Map,ie=new Map,le=new Set,se=new Map,pe,ne=null;function me(){if(h=e.history.listen(({action:ye,location:Me,delta:ze})=>{if(pe){pe(),pe=void 0;return}vo(se.size===0||ze!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Ve=Jt({currentLocation:j.location,nextLocation:Me,historyAction:ye});if(Ve&&ze!=null){let rt=new Promise(kt=>{pe=kt});e.history.go(ze*-1),Un(Ve,{state:"blocked",location:Me,proceed(){Un(Ve,{state:"proceeding",proceed:void 0,reset:void 0,location:Me}),rt.then(()=>e.history.go(ze))},reset(){let kt=new Map(j.blockers);kt.set(Ve,jf),ce({blockers:kt})}}),W?.resolve(),W=null;return}return je(ye,Me)}),n){k3(t,F);let ye=()=>E3(t,F);t.addEventListener("pagehide",ye),H=()=>t.removeEventListener("pagehide",ye)}return j.initialized||je("POP",j.location,{initialHydration:!0}),I}function xe(){h&&h(),H&&H(),y.clear(),T&&T.abort(),j.fetchers.forEach((ye,Me)=>Ct(j.fetchers,Me)),j.blockers.forEach((ye,Me)=>_n(Me))}function Se(ye){if(y.add(ye),v){let{newErrors:Me}=v;v=null,ye(j,{deletedFetchers:[],newErrors:Me,viewTransitionOpts:void 0,flushSync:!1})}return()=>y.delete(ye)}function ce(ye,Me={}){ye.matches&&(ye.matches=ye.matches.map(rt=>{let kt=s[rt.route.id],bt=rt.route;return bt.element!==kt.element||bt.errorElement!==kt.errorElement||bt.hydrateFallbackElement!==kt.hydrateFallbackElement?{...rt,route:kt}:rt})),j={...j,...ye};let ze=[],Ve=[];j.fetchers.forEach((rt,kt)=>{rt.state==="idle"&&(le.has(kt)?ze.push(kt):Ve.push(kt))}),le.forEach(rt=>{!j.fetchers.has(rt)&&!ee.has(rt)&&ze.push(rt)}),y.size===0&&(v={newErrors:ye.errors??null}),[...y].forEach(rt=>rt(j,{deletedFetchers:ze,newErrors:ye.errors??null,viewTransitionOpts:Me.viewTransitionOpts,flushSync:Me.flushSync===!0})),ze.forEach(rt=>Ct(j.fetchers,rt)),Ve.forEach(rt=>j.fetchers.delete(rt))}function Ee(ye,Me,{flushSync:ze}={}){let Ve=j.actionData!=null&&j.navigation.formMethod!=null&&ua(j.navigation.formMethod)&&j.navigation.state==="loading"&&ye.state?._isRedirect!==!0,rt;Me.actionData?Object.keys(Me.actionData).length>0?rt=Me.actionData:rt=null:Ve?rt=j.actionData:rt=null;let kt=Me.loaderData?tO(j.loaderData,Me.loaderData,Me.matches||[],Me.errors):j.loaderData,bt=j.blockers;bt.size>0&&(bt=new Map(bt),bt.forEach((At,Ft)=>bt.set(Ft,jf)));let Et=D?!1:en(ye,Me.matches||j.matches),Pt=U===!0||j.navigation.formMethod!=null&&ua(j.navigation.formMethod)&&ye.state?._isRedirect!==!0;l.commitHmrRoutes(),D||_==="POP"||(_==="PUSH"?e.history.push(ye,ye.state):_==="REPLACE"&&e.history.replace(ye,ye.state));let Kt;if(_==="POP"&&!D&&ye!==j.location){let At=F.get(j.location.pathname);At&&At.has(ye.pathname)?Kt={currentLocation:j.location,nextLocation:ye}:F.has(ye.pathname)&&(Kt={currentLocation:ye,nextLocation:j.location})}else if(L){let At=F.get(j.location.pathname);At?At.add(ye.pathname):(At=new Set([ye.pathname]),F.set(j.location.pathname,At)),Kt={currentLocation:j.location,nextLocation:ye}}ce({...Me,actionData:rt,loaderData:kt,historyAction:_,location:ye,initialized:!0,renderFallback:!1,navigation:F1,revalidation:"idle",restoreScrollPosition:Et,preventScrollReset:Pt,blockers:bt},{viewTransitionOpts:Kt,flushSync:ze===!0}),_="POP",U=!1,L=!1,D=!1,K=!1,W?.resolve(),W=null,ne?.resolve(),ne=null}async function Ge(ye,Me){if(W?.resolve(),W=null,typeof ye=="number"){W||(W=aO());let Fe=W.promise;return e.history.go(ye),Fe}let ze=HS(j.location,j.matches,c,ye,Me?.fromRouteId,Me?.relative),{path:Ve,submission:rt,error:kt}=qR(!1,ze,Me),bt;if(Me?.mask){let Fe=typeof Me.mask=="string"?ul(Me.mask):{...j.location.mask,...Me.mask};if(bt={pathname:Fe.pathname??"",search:Fe.search??"",hash:Fe.hash??""},_b.test(bt.pathname))throw new Error("External navigation is not allowed");bt.pathname.startsWith("\\")&&(bt.pathname=bt.pathname.replace(/^\\+/,"/")),Gf(typeof Me.mask=="string"?Me.mask:ka(Me.mask),ka(bt),e.history.createURL("/"),"reject")}let Et=j.location,Pt=Xm(Et,Ve,Me&&Me.state,void 0,bt);Pt={...Pt,...e.history.encodeLocation(Pt)},Gf(ye==null?e.history.createHref(j.location):typeof ye=="string"?ye:ka(ye),e.history.createHref(Pt.mask||Pt),e.history.createURL("/"),"reject");let Kt=Me&&Me.replace!=null?Me.replace:void 0,At="PUSH";Kt===!0?At="REPLACE":Kt===!1||rt!=null&&ua(rt.formMethod)&&rt.formAction===j.location.pathname+j.location.search&&(At="REPLACE");let Ft=Me&&"preventScrollReset"in Me?Me.preventScrollReset===!0:void 0,de=(Me&&Me.flushSync)===!0,fe=Jt({currentLocation:Et,nextLocation:Pt,historyAction:At});if(fe){Un(fe,{state:"blocked",location:Pt,proceed(){Un(fe,{state:"proceeding",proceed:void 0,reset:void 0,location:Pt}),Ge(ye,Me)},reset(){let Fe=new Map(j.blockers);Fe.set(fe,jf),ce({blockers:Fe})}});return}await je(At,Pt,{submission:rt,pendingError:kt,preventScrollReset:Ft,replace:Me&&Me.replace,enableViewTransition:Me&&Me.viewTransition,flushSync:de,callSiteDefaultShouldRevalidate:Me&&Me.defaultShouldRevalidate})}function Te(){ne||(ne=aO()),Le(),ce({revalidation:"loading"});let ye=ne.promise;return j.navigation.state==="submitting"?ye:j.navigation.state==="idle"?(je(j.historyAction,j.location,{startUninterruptedRevalidation:!0}),ye):(je(_||j.historyAction,j.navigation.location,{overrideNavigation:j.navigation,enableViewTransition:L===!0}),ye)}async function je(ye,Me,ze){T&&T.abort(),T=null,_=ye,D=(ze&&ze.startUninterruptedRevalidation)===!0,Mn(j.location,j.matches),U=(ze&&ze.preventScrollReset)===!0,L=(ze&&ze.enableViewTransition)===!0;let Ve=l.activeRoutes,rt=ze?.initialHydration&&j.matches&&j.matches.length>0&&!E?j.matches:Ss(Ve,Me,c,!1,l.branches),kt=(ze&&ze.flushSync)===!0;if(rt&&j.initialized&&!K&&h3(j.location,Me)&&!(ze&&ze.submission&&ua(ze.submission.formMethod))){Ee(Me,{matches:rt},{flushSync:kt});return}let bt=$t(rt,Ve,Me.pathname);if(bt.active&&bt.matches&&(rt=bt.matches),!rt){let{error:Ue,notFoundMatches:Ot,route:Yt}=Dn(Me.pathname);Ee(Me,{matches:Ot,loaderData:{},errors:{[Yt.id]:Ue}},{flushSync:kt});return}let Et=ze&&ze.overrideNavigation?{...ze.overrideNavigation,matches:rt,historyAction:ye}:void 0;T=new AbortController;let Pt=Lf(e.history,Me,T.signal,ze&&ze.submission),Kt=e.getContext?await e.getContext():new FR,At;if(ze&&ze.pendingError)At=[Dc(rt).route.id,{type:"error",error:ze.pendingError}];else if(ze&&ze.submission&&ua(ze.submission.formMethod)){let Ue=await oe(Pt,Me,ze.submission,rt,ye,Kt,bt.active,ze&&ze.initialHydration===!0,{replace:ze.replace,flushSync:kt});if(Ue.shortCircuited)return;if(Ue.pendingActionResult){let[Ot,Yt]=Ue.pendingActionResult;if(ci(Yt)&&Jm(Yt.error)&&Yt.error.status===404){T=null,Ee(Me,{matches:Ue.matches,loaderData:{},errors:{[Ot]:Yt.error}});return}}rt=Ue.matches||rt,At=Ue.pendingActionResult,Et=_1(Me,rt,ye,ze.submission),kt=!1,bt.active=!1,Pt=Lf(e.history,Pt.url,Pt.signal)}let{shortCircuited:Ft,matches:de,loaderData:fe,errors:Fe,workingFetchers:ft}=await lt(Pt,Me,rt,ye,Kt,bt.active,Et,ze&&ze.submission,ze&&ze.fetcherSubmission,ze&&ze.replace,ze&&ze.initialHydration===!0,kt,At,ze&&ze.callSiteDefaultShouldRevalidate);Ft||(T=null,Ee(Me,{matches:de||rt,...nO(At),loaderData:fe,errors:Fe,...ft?{fetchers:ft}:{}}))}async function oe(ye,Me,ze,Ve,rt,kt,bt,Et,Pt={}){Le();let Kt=w3(Me,Ve,rt,ze);if(ce({navigation:Kt},{flushSync:Pt.flushSync===!0}),bt){let de=await Fr(Ve,Me.pathname,ye.signal);if(de.type==="aborted")return{shortCircuited:!0};if(de.type==="error"){if(de.partialMatches.length===0){let{matches:Fe,route:ft}=Xy(l.activeRoutes);return{matches:Fe,pendingActionResult:[ft.id,{type:"error",error:de.error}]}}let fe=Dc(de.partialMatches).route.id;return{matches:de.partialMatches,pendingActionResult:[fe,{type:"error",error:de.error}]}}else if(de.matches)Ve=de.matches;else{let{notFoundMatches:fe,error:Fe,route:ft}=Dn(Me.pathname);return{matches:fe,pendingActionResult:[ft.id,{type:"error",error:Fe}]}}}let At,Ft=jv(Ve,Me);if(!Ft.route.action&&!Ft.route.lazy)At={type:"error",error:_i(405,{method:ye.method,pathname:Me.pathname,routeId:Ft.route.id})};else{let de=Kf(a,s,ye,Me,Ve,Ft,Et?[]:r,kt),fe=await Je(ye,Me,de,kt,null);if(At=fe[Ft.route.id],!At){for(let Fe of Ve)if(fe[Fe.route.id]){At=fe[Fe.route.id];break}}if(ye.signal.aborted)return{shortCircuited:!0}}if(Hu(At)){let de;return Pt&&Pt.replace!=null?de=Pt.replace:de=ZR(At.response.headers.get("Location"),new URL(ye.url),c,e.history)===j.location.pathname+j.location.search,await tt(ye,At,!0,{submission:ze,replace:de}),{shortCircuited:!0}}if(ci(At)){let de=Dc(Ve,Ft.route.id);return(Pt&&Pt.replace)!==!0&&(_="PUSH"),{matches:Ve,pendingActionResult:[de.route.id,At,Ft.route.id]}}return{matches:Ve,pendingActionResult:[Ft.route.id,At]}}async function lt(ye,Me,ze,Ve,rt,kt,bt,Et,Pt,Kt,At,Ft,de,fe){let Fe=bt||_1(Me,ze,Ve,Et),ft=Et||Pt||oO(Fe),Ue=!D&&!At;if(kt){if(Ue){let Ar=Ie(de);ce({navigation:Fe,...Ar!==void 0?{actionData:Ar}:{}},{flushSync:Ft})}let Xt=await Fr(ze,Me.pathname,ye.signal);if(Xt.type==="aborted")return{shortCircuited:!0};if(Xt.type==="error"){if(Xt.partialMatches.length===0){let{matches:so,route:To}=Xy(l.activeRoutes);return{matches:so,loaderData:{},errors:{[To.id]:Xt.error}}}let Ar=Dc(Xt.partialMatches).route.id;return{matches:Xt.partialMatches,loaderData:{},errors:{[Ar]:Xt.error}}}else if(Xt.matches)ze=Xt.matches;else{let{error:Ar,notFoundMatches:so,route:To}=Dn(Me.pathname);return{matches:so,loaderData:{},errors:{[To.id]:Ar}}}}let Ot=l.activeRoutes,{dsMatches:Yt,revalidatingFetchers:nn}=YR(ye,rt,a,s,e.history,j,ze,ft,Me,At?[]:r,At===!0,K,Q,le,he,ue,Ot,c,e.patchRoutesOnNavigation!=null,l.branches,de,fe);if(te=++X,!e.dataStrategy&&!Yt.some(Xt=>Xt.shouldLoad)&&!Yt.some(Xt=>Xt.route.middleware&&Xt.route.middleware.length>0)&&nn.length===0){let Xt=new Map(j.fetchers),Ar=qt(Xt);return Ee(Me,{matches:ze,loaderData:{},errors:de&&ci(de[1])?{[de[0]]:de[1].error}:null,...nO(de),...Ar?{fetchers:Xt}:{}},{flushSync:Ft}),{shortCircuited:!0}}if(Ue){let Xt={};if(!kt){Xt.navigation=Fe;let Ar=Ie(de);Ar!==void 0&&(Xt.actionData=Ar)}nn.length>0&&(Xt.fetchers=et(nn)),ce(Xt,{flushSync:Ft})}nn.forEach(Xt=>{st(Xt.key),Xt.controller&&ee.set(Xt.key,Xt.controller)});let ve=()=>nn.forEach(Xt=>st(Xt.key));T&&T.signal.addEventListener("abort",ve);let{loaderResults:Re,fetcherResults:it}=await ct(Yt,nn,ye,Me,rt);if(ye.signal.aborted)return{shortCircuited:!0};T&&T.signal.removeEventListener("abort",ve),nn.forEach(Xt=>ee.delete(Xt.key));let xt=Zy(Re);if(xt)return await tt(ye,xt.result,!0,{replace:Kt}),{shortCircuited:!0};if(xt=Zy(it),xt)return ue.add(xt.key),await tt(ye,xt.result,!0,{replace:Kt}),{shortCircuited:!0};let Tt=new Map(j.fetchers),{loaderData:Mt,errors:Dt}=eO(j,ze,Re,de,nn,it,Tt);At&&j.errors&&(Dt={...j.errors,...Dt});let Zt=qt(Tt),bn=mn(te,Tt),nr=Zt||bn||nn.length>0;return{matches:ze,loaderData:Mt,errors:Dt,...nr?{workingFetchers:Tt}:{}}}function Ie(ye){if(ye&&!ci(ye[1]))return{[ye[0]]:ye[1].data};if(j.actionData)return Object.keys(j.actionData).length===0?null:j.actionData}function et(ye){let Me=new Map(j.fetchers);return ye.forEach(ze=>{let Ve=Me.get(ze.key),rt=zh(void 0,Ve?Ve.data:void 0);Me.set(ze.key,rt)}),Me}async function mt(ye,Me,ze,Ve){st(ye);let rt=(Ve&&Ve.flushSync)===!0,kt=l.activeRoutes,bt=HS(j.location,j.matches,c,ze,Me,Ve?.relative),Et=Ss(kt,bt,c,!1,l.branches),Pt=$t(Et,kt,bt);if(Pt.active&&Pt.matches&&(Et=Pt.matches),!Et){qe(ye,Me,_i(404,{pathname:bt}),{flushSync:rt});return}let{path:Kt,submission:At,error:Ft}=qR(!0,bt,Ve);if(Ft){qe(ye,Me,Ft,{flushSync:rt});return}let de=e.getContext?await e.getContext():new FR,fe=(Ve&&Ve.preventScrollReset)===!0;if(At&&ua(At.formMethod)){await Wt(ye,Me,Kt,Et,de,Pt.active,rt,fe,At,Ve&&Ve.defaultShouldRevalidate);return}he.set(ye,{routeId:Me,path:Kt}),await zt(ye,Me,Kt,Et,de,Pt.active,rt,fe,At)}async function Wt(ye,Me,ze,Ve,rt,kt,bt,Et,Pt,Kt){Le(),he.delete(ye);let At=j.fetchers.get(ye);ge(ye,C3(Pt,At),{flushSync:bt});let Ft=new AbortController,de=Lf(e.history,ze,Ft.signal,Pt);if(kt){let ur=await Fr(Ve,new URL(de.url).pathname,de.signal,ye);if(ur.type==="aborted")return;if(ur.type==="error"){qe(ye,Me,ur.error,{flushSync:bt});return}else if(ur.matches)Ve=ur.matches;else{qe(ye,Me,_i(404,{pathname:ze}),{flushSync:bt});return}}let fe=jv(Ve,ze);if(!fe.route.action&&!fe.route.lazy){let ur=_i(405,{method:Pt.formMethod,pathname:ze,routeId:Me});qe(ye,Me,ur,{flushSync:bt});return}ee.set(ye,Ft);let Fe=X,ft=Kf(a,s,de,ze,Ve,fe,r,rt),Ue=await Je(de,ze,ft,rt,ye),Ot=Ue[fe.route.id];if(!Ot){for(let ur of ft)if(Ue[ur.route.id]){Ot=Ue[ur.route.id];break}}if(de.signal.aborted){ee.get(ye)===Ft&&ee.delete(ye);return}if(le.has(ye)){if(Hu(Ot)||ci(Ot)){ge(ye,Ys(void 0));return}}else{if(Hu(Ot))if(ee.delete(ye),te>Fe){ge(ye,Ys(void 0));return}else return ue.add(ye),ge(ye,zh(Pt)),tt(de,Ot,!1,{fetcherSubmission:Pt,preventScrollReset:Et});if(ci(Ot)){qe(ye,Me,Ot.error);return}}let Yt=j.navigation.location||j.location,nn=Lf(e.history,Yt,Ft.signal),ve=l.activeRoutes,Re=j.navigation.state!=="idle"?Ss(ve,j.navigation.location,c,!1,l.branches):j.matches;Zn(Re,"Didn't find any matches after fetcher action");let it=++X;ae.set(ye,it);let{dsMatches:xt,revalidatingFetchers:Tt}=YR(nn,rt,a,s,e.history,j,Re,Pt,Yt,r,!1,K,Q,le,he,ue,ve,c,e.patchRoutesOnNavigation!=null,l.branches,[fe.route.id,Ot],Kt),Mt=zh(Pt,Ot.data),Dt=new Map(j.fetchers);Dt.set(ye,Mt),Tt.filter(ur=>ur.key!==ye).forEach(ur=>{let _r=ur.key,Ga=Dt.get(_r),pl=zh(void 0,Ga?Ga.data:void 0);Dt.set(_r,pl),st(_r),ur.controller&&ee.set(_r,ur.controller)}),ce({fetchers:Dt});let Zt=()=>Tt.forEach(ur=>st(ur.key));Ft.signal.addEventListener("abort",Zt);let{loaderResults:bn,fetcherResults:nr}=await ct(xt,Tt,nn,Yt,rt);if(Ft.signal.aborted)return;Ft.signal.removeEventListener("abort",Zt),ae.delete(ye),ee.delete(ye),Tt.forEach(ur=>ee.delete(ur.key));let Xt=j.fetchers.has(ye),Ar=ur=>{if(!Xt)return ur;let _r=new Map(ur.fetchers);return _r.set(ye,Ys(Ot.data)),{...ur,fetchers:_r}},so=Zy(bn);if(so)return j=Ar(j),tt(nn,so.result,!1,{preventScrollReset:Et});if(so=Zy(nr),so)return ue.add(so.key),j=Ar(j),tt(nn,so.result,!1,{preventScrollReset:Et});let To=new Map(j.fetchers);Xt&&To.set(ye,Ys(Ot.data));let{loaderData:is,errors:na}=eO(j,Re,bn,void 0,Tt,nr,To);mn(it,To),j.navigation.state==="loading"&&it>te?(Zn(_,"Expected pending action"),T&&T.abort(),Ee(j.navigation.location,{matches:Re,loaderData:is,errors:na,fetchers:To})):(ce({errors:na,loaderData:tO(j.loaderData,is,Re,na),fetchers:To}),K=!1)}async function zt(ye,Me,ze,Ve,rt,kt,bt,Et,Pt){let Kt=j.fetchers.get(ye);ge(ye,zh(Pt,Kt?Kt.data:void 0),{flushSync:bt});let At=new AbortController,Ft=Lf(e.history,ze,At.signal);if(kt){let Ot=await Fr(Ve,new URL(Ft.url).pathname,Ft.signal,ye);if(Ot.type==="aborted")return;if(Ot.type==="error"){qe(ye,Me,Ot.error,{flushSync:bt});return}else if(Ot.matches)Ve=Ot.matches;else{qe(ye,Me,_i(404,{pathname:ze}),{flushSync:bt});return}}let de=jv(Ve,ze);ee.set(ye,At);let fe=X,Fe=Kf(a,s,Ft,ze,Ve,de,r,rt),ft=await Je(Ft,ze,Fe,rt,ye),Ue=ft[de.route.id];if(!Ue){for(let Ot of Ve)if(ft[Ot.route.id]){Ue=ft[Ot.route.id];break}}if(ee.get(ye)===At&&ee.delete(ye),!Ft.signal.aborted){if(le.has(ye)){ge(ye,Ys(void 0));return}if(Hu(Ue))if(te>fe){ge(ye,Ys(void 0));return}else{ue.add(ye),await tt(Ft,Ue,!1,{preventScrollReset:Et});return}if(ci(Ue)){qe(ye,Me,Ue.error);return}ge(ye,Ys(Ue.data))}}async function tt(ye,Me,ze,{submission:Ve,fetcherSubmission:rt,preventScrollReset:kt,replace:bt}={}){ze||(W?.resolve(),W=null),Me.response.headers.has("X-Remix-Revalidate")&&(K=!0);let Et=Me.response.headers.get("Location");Zn(Et,"Expected a Location header on the redirect Response");let Pt=Et,Kt=new URL(ye.url);Et=ZR(Et,Kt,c,e.history),Gf(Pt,Et,Kt,"allow-explicit");let At=Xm(j.location,Et,{_isRedirect:!0});if(n){let Ue=!1;if(Me.response.headers.has("X-Remix-Reload-Document"))Ue=!0;else if(vC(Et)){const Ot=qD(t,Et,!0);Ue=Ot.origin!==t.location.origin||Va(Ot.pathname,c)==null}if(Ue){bt?t.location.replace(Et):t.location.assign(Et);return}}T=null;let Ft=bt===!0||Me.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:de,formAction:fe,formEncType:Fe}=j.navigation;!Ve&&!rt&&de&&fe&&Fe&&(Ve=oO(j.navigation));let ft=Ve||rt;if(Q4.has(Me.response.status)&&ft&&ua(ft.formMethod))await je(Ft,At,{submission:{...ft,formAction:Et},preventScrollReset:kt||U,enableViewTransition:ze?L:void 0});else{let Ue=_1(At,[],Ft,Ve);await je(Ft,At,{overrideNavigation:Ue,fetcherSubmission:rt,preventScrollReset:kt||U,enableViewTransition:ze?L:void 0})}}async function Je(ye,Me,ze,Ve,rt){let kt,bt={};try{kt=await s3(f,ye,Me,ze,rt,Ve,!1)}catch(Et){return ze.filter(Pt=>Pt.shouldLoad).forEach(Pt=>{bt[Pt.route.id]={type:"error",error:Et}}),bt}if(ye.signal.aborted)return bt;if(!ua(ye.method))for(let Et of ze){if(kt[Et.route.id]?.type==="error")break;!kt.hasOwnProperty(Et.route.id)&&!j.loaderData.hasOwnProperty(Et.route.id)&&(!j.errors||!j.errors.hasOwnProperty(Et.route.id))&&Et.shouldCallHandler()&&(kt[Et.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${Et.route.id}`)})}for(let[Et,Pt]of Object.entries(kt))if(v3(Pt)){let Kt=Pt.result;bt[Et]={type:"redirect",response:d3(Kt,ye,Et,ze,c)}}else bt[Et]=await u3(Pt);return bt}async function ct(ye,Me,ze,Ve,rt){let kt=Je(ze,Ve,ye,rt,null),bt=Promise.all(Me.map(async Kt=>{if(Kt.matches&&Kt.match&&Kt.request&&Kt.controller){let Ft=(await Je(Kt.request,Kt.path,Kt.matches,rt,Kt.key))[Kt.match.route.id];return{[Kt.key]:Ft}}else return Promise.resolve({[Kt.key]:{type:"error",error:_i(404,{pathname:Kt.path})}})})),Et=await kt,Pt=(await bt).reduce((Kt,At)=>Object.assign(Kt,At),{});return{loaderResults:Et,fetcherResults:Pt}}function Le(){K=!0,he.forEach((ye,Me)=>{ee.has(Me)&&Q.add(Me),st(Me)})}function ge(ye,Me,ze={}){let Ve=new Map(j.fetchers);Ve.set(ye,Me),ce({fetchers:Ve},{flushSync:(ze&&ze.flushSync)===!0})}function qe(ye,Me,ze,Ve={}){let rt=Dc(j.matches,Me),kt=new Map(j.fetchers);Ct(kt,ye),ce({errors:{[rt.route.id]:ze},fetchers:kt},{flushSync:(Ve&&Ve.flushSync)===!0})}function De(ye){return ie.set(ye,(ie.get(ye)||0)+1),le.has(ye)&&le.delete(ye),j.fetchers.get(ye)||X4}function wt(ye,Me){st(ye,Me?.reason),ge(ye,Ys(null))}function Ct(ye,Me){let ze=j.fetchers.get(Me);ee.has(Me)&&!(ze&&ze.state==="loading"&&ae.has(Me))&&st(Me),he.delete(Me),ae.delete(Me),ue.delete(Me),le.delete(Me),Q.delete(Me),ye.delete(Me)}function yt(ye){let Me=(ie.get(ye)||0)-1;Me<=0?(ie.delete(ye),le.add(ye)):ie.set(ye,Me),ce({fetchers:new Map(j.fetchers)})}function st(ye,Me){let ze=ee.get(ye);ze&&(ze.abort(Me),ee.delete(ye))}function jt(ye,Me){for(let ze of ye){let Ve=Me.get(ze);Zn(Ve,`Expected fetcher: ${ze}`);let rt=Ys(Ve.data);Me.set(ze,rt)}}function qt(ye){let Me=[],ze=!1;for(let Ve of ue){let rt=ye.get(Ve);Zn(rt,`Expected fetcher: ${Ve}`),rt.state==="loading"&&(ue.delete(Ve),Me.push(Ve),ze=!0)}return jt(Me,ye),ze}function mn(ye,Me){let ze=[];for(let[Ve,rt]of ae)if(rt<ye){let kt=Me.get(Ve);Zn(kt,`Expected fetcher: ${Ve}`),kt.state==="loading"&&(st(Ve),ae.delete(Ve),ze.push(Ve))}return jt(ze,Me),ze.length>0}function $n(ye,Me){let ze=j.blockers.get(ye)||jf;return se.get(ye)!==Me&&se.set(ye,Me),ze}function _n(ye){j.blockers.delete(ye),se.delete(ye)}function Un(ye,Me){let ze=j.blockers.get(ye)||jf;Zn(ze.state==="unblocked"&&Me.state==="blocked"||ze.state==="blocked"&&Me.state==="blocked"||ze.state==="blocked"&&Me.state==="proceeding"||ze.state==="blocked"&&Me.state==="unblocked"||ze.state==="proceeding"&&Me.state==="unblocked",`Invalid blocker state transition: ${ze.state} -> ${Me.state}`);let Ve=new Map(j.blockers);Ve.set(ye,Me),ce({blockers:Ve})}function Jt({currentLocation:ye,nextLocation:Me,historyAction:ze}){if(se.size===0)return;se.size>1&&vo(!1,"A router only supports one blocker at a time");let Ve=Array.from(se.entries()),[rt,kt]=Ve[Ve.length-1],bt=j.blockers.get(rt);if(!(bt&&bt.state==="proceeding")&&kt({currentLocation:ye,nextLocation:Me,historyAction:ze}))return rt}function Dn(ye){let Me=_i(404,{pathname:ye}),ze=l.activeRoutes,{matches:Ve,route:rt}=Xy(ze);return{notFoundMatches:Ve,route:rt,error:Me}}function Ce(ye,Me,ze){if(S=ye,w=Me,x=ze||null,!b&&j.navigation===F1){b=!0;let Ve=en(j.location,j.matches);Ve!=null&&ce({restoreScrollPosition:Ve})}return()=>{S=null,w=null,x=null}}function Vn(ye,Me){return x&&x(ye,Me.map(Ve=>w4(Ve,j.loaderData)))||ye.key}function Mn(ye,Me){if(S&&w){let ze=Vn(ye,Me);S[ze]=w()}}function en(ye,Me){if(S){let ze=Vn(ye,Me),Ve=S[ze];if(typeof Ve=="number")return Ve}return null}function $t(ye,Me,ze){if(e.patchRoutesOnNavigation){let Ve=l.branches;if(ye){if(Object.keys(ye[0].params).length>0)return{active:!0,matches:Ss(Me,ze,c,!0,Ve)}}else return{active:!0,matches:Ss(Me,ze,c,!0,Ve)||[]}}return{active:!1,matches:null}}async function Fr(ye,Me,ze,Ve){if(!e.patchRoutesOnNavigation)return{type:"success",matches:ye};let rt=ye;for(;;){let kt=s;try{await e.patchRoutesOnNavigation({signal:ze,path:Me,matches:rt,fetcherKey:Ve,patch:(Kt,At)=>{ze.aborted||GR(Kt,At,l,kt,a,!1)}})}catch(Kt){return{type:"error",error:Kt,partialMatches:rt}}if(ze.aborted)return{type:"aborted"};let bt=l.branches,Et=Ss(l.activeRoutes,Me,c,!1,bt),Pt=null;if(Et){if(Object.keys(Et[0].params).length===0)return{type:"success",matches:Et};if(Pt=Ss(l.activeRoutes,Me,c,!0,bt),!(Pt&&rt.length<Pt.length&&Fn(rt,Pt.slice(0,rt.length))))return{type:"success",matches:Et}}if(Pt||(Pt=Ss(l.activeRoutes,Me,c,!0,bt)),!Pt||Fn(rt,Pt))return{type:"success",matches:null};rt=Pt}}function Fn(ye,Me){return ye.length===Me.length&&ye.every((ze,Ve)=>ze.route.id===Me[Ve].route.id)}function on(ye){s={},l.setHmrRoutes(Zm(ye,a,void 0,s))}function Ln(ye,Me,ze=!1){GR(ye,Me,l,s,a,ze),l.hasHMRRoutes||ce({})}return I={get basename(){return c},get future(){return u},get state(){return j},get routes(){return l.stableRoutes},get branches(){return l.branches},get manifest(){return s},get window(){return t},initialize:me,subscribe:Se,enableScrollRestoration:Ce,navigate:Ge,fetch:mt,revalidate:Te,createHref:ye=>e.history.createHref(ye),createURL:ye=>e.history.createURL(ye),encodeLocation:ye=>e.history.encodeLocation(ye),getFetcher:De,resetFetcher:wt,deleteFetcher:yt,dispose:xe,getBlocker:$n,deleteBlocker:_n,patchRoutes:Ln,_internalFetchControllers:ee,_internalSetRoutes:on,_internalSetStateDoNotUseOrYouWillBreakYourApp(ye){ce(ye)}},e.instrumentations&&(I=B4(I,e.instrumentations.map(ye=>ye.router).filter(Boolean))),I}function t3(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function HS(e,t,n,r,o,a){let s,l;if(o){s=[];for(let f of t)if(s.push(f),f.route.id===o){l=f;break}}else s=t,l=t[t.length-1];let c=Sg(r||".",Bb(s),Va(e.pathname,n)||e.pathname,a==="path");if(r==null&&(c.search=e.search,c.hash=e.hash),(r==null||r===""||r===".")&&l){let f=CC(c.search);if(l.route.index&&!f)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!l.route.index&&f){let u=new URLSearchParams(c.search),h=u.getAll("index");u.delete("index"),h.filter(v=>v).forEach(v=>u.append("index",v));let y=u.toString();c.search=y?`?${y}`:""}}return n!=="/"&&(c.pathname=j4({basename:n,pathname:c.pathname})),ka(c)}function qR(e,t,n){if(!n||!t3(n))return{path:t};if(n.formMethod&&!S3(n.formMethod))return{path:t,error:_i(405,{method:n.formMethod})};let r=()=>({path:t,error:_i(400,{type:"invalid-body"})}),a=(n.formMethod||"get").toUpperCase(),s=pj(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!ua(a))return r();let h=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((y,[v,S])=>`${y}${v}=${S}
60
+ `,""):String(n.body);return{path:t,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:h}}}else if(n.formEncType==="application/json"){if(!ua(a))return r();try{let h=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:h,text:void 0}}}catch{return r()}}}Zn(typeof FormData=="function","FormData is not available in this environment");let l,c;if(n.formData)l=YS(n.formData),c=n.formData;else if(n.body instanceof FormData)l=YS(n.body),c=n.body;else if(n.body instanceof URLSearchParams)l=n.body,c=JR(l);else if(n.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(n.body),c=JR(l)}catch{return r()}let f={formMethod:a,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(ua(f.formMethod))return{path:t,submission:f};let u=ul(t);return e&&u.search&&CC(u.search)&&l.append("index",""),u.search=`?${l}`,{path:ka(u),submission:f}}function YR(e,t,n,r,o,a,s,l,c,f,u,h,y,v,S,x,w,b,k,E,O,$){let A=O?ci(O[1])?O[1].error:O[1].data:void 0,I=o.createURL(a.location),j=o.createURL(c),_;if(u&&a.errors){let D=Object.keys(a.errors)[0];_=s.findIndex(K=>K.route.id===D)}else if(O&&ci(O[1])){let D=O[0];_=s.findIndex(K=>K.route.id===D)-1}let W=O?O[1].statusCode:void 0,U=W&&W>=400,T={currentUrl:I,currentParams:a.matches[0]?.params||{},nextUrl:j,nextParams:s[0].params,...l,actionResult:A,actionStatus:W},L=Cg(s),F=s.map((D,K)=>{let{route:Q}=D,ee=null;if(_!=null&&K>_)ee=!1;else if(Q.lazy)ee=!0;else if(!SC(Q))ee=!1;else if(u){let{shouldLoad:ue}=ij(Q,a.loaderData,a.errors);ee=ue}else n3(a.loaderData,a.matches[K],D)&&(ee=!0);if(ee!==null)return WS(n,r,e,c,L,D,f,t,ee);let X=!1;typeof $=="boolean"?X=$:U?X=!1:(h||I.pathname+I.search===j.pathname+j.search||I.search!==j.search||r3(a.matches[K],D))&&(X=!0);let te={...T,defaultShouldRevalidate:X},ae=Lm(D,te);return WS(n,r,e,c,L,D,f,t,ae,te,$)}),H=[];return S.forEach((D,K)=>{if(u||!s.some(ie=>ie.route.id===D.routeId)||v.has(K))return;let Q=a.fetchers.get(K),ee=Q&&Q.state!=="idle"&&Q.data===void 0,X=Ss(w,D.path,b??"/",!1,E);if(!X){if(k&&ee)return;H.push({key:K,routeId:D.routeId,path:D.path,matches:null,match:null,request:null,controller:null});return}if(x.has(K))return;let te=jv(X,D.path),ae=new AbortController,ue=Lf(o,D.path,ae.signal),he=null;if(y.has(K))y.delete(K),he=Kf(n,r,ue,D.path,X,te,f,t);else if(ee)h&&(he=Kf(n,r,ue,D.path,X,te,f,t));else{let ie;typeof $=="boolean"?ie=$:U?ie=!1:ie=h;let le={...T,defaultShouldRevalidate:ie};Lm(te,le)&&(he=Kf(n,r,ue,D.path,X,te,f,t,le))}he&&H.push({key:K,routeId:D.routeId,path:D.path,matches:he,match:te,request:ue,controller:ae})}),{dsMatches:F,revalidatingFetchers:H}}function SC(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function ij(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!SC(e))return{shouldLoad:!1,renderFallback:!1};let r=t!=null&&e.id in t,o=n!=null&&n[e.id]!==void 0;if(!r&&o)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader=="function"&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!r};let a=!r&&!o;return{shouldLoad:a,renderFallback:a}}function n3(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o}function r3(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Lm(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function GR(e,t,n,r,o,a){let s;if(e){let f=r[e];Zn(f,`No route found to patch children into: routeId = ${e}`),f.children||(f.children=[]),s=f.children}else s=n.activeRoutes;let l=[],c=[];if(t.forEach(f=>{let u=s.find(h=>sj(f,h));u?c.push({existingRoute:u,newRoute:f}):l.push(f)}),l.length>0){let f=Zm(l,o,[e||"_","patch",String(s?.length||"0")],r);s.push(...f)}if(a&&c.length>0)for(let f=0;f<c.length;f++){let{existingRoute:u,newRoute:h}=c[f],y=u,[v]=Zm([h],o,[],{},!0);Object.assign(y,{element:v.element?v.element:y.element,errorElement:v.errorElement?v.errorElement:y.errorElement,hydrateFallbackElement:v.hydrateFallbackElement?v.hydrateFallbackElement:y.hydrateFallbackElement})}n.hasHMRRoutes||n.setRoutes([...n.activeRoutes])}function sj(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children?.every((n,r)=>t.children?.some(o=>sj(n,o)))??!1:!1}var KR=new WeakMap,lj=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if(Zn(o,"No route found in manifest"),!o.lazy||typeof o.lazy!="object")return;let a=o.lazy[e];if(!a)return;let s=KR.get(o);s||(s={},KR.set(o,s));let l=s[e];if(l)return l;let c=(async()=>{let f=v4(e),h=o[e]!==void 0&&e!=="hasErrorBoundary";if(f)vo(!f,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),s[e]=Promise.resolve();else if(h)vo(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let y=await a();y!=null&&(Object.assign(o,{[e]:y}),Object.assign(o,r(o)))}typeof o.lazy=="object"&&(o.lazy[e]=void 0,Object.values(o.lazy).every(y=>y===void 0)&&(o.lazy=void 0))})();return s[e]=c,c},QR=new WeakMap;function o3(e,t,n,r,o){let a=n[e.id];if(Zn(a,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let u=QR.get(a);if(u)return{lazyRoutePromise:u,lazyHandlerPromise:u};let h=(async()=>{Zn(typeof e.lazy=="function","No lazy route function found");let y=await e.lazy(),v={};for(let S in y){let x=y[S];if(x===void 0)continue;let w=x4(S),k=a[S]!==void 0&&S!=="hasErrorBoundary";w?vo(!w,"Route property "+S+" is not a supported property to be returned from a lazy route function. This property will be ignored."):k?vo(!k,`Route "${a.id}" has a static property "${S}" defined but its lazy function is also returning a value for this property. The lazy route property "${S}" will be ignored.`):v[S]=x}Object.assign(a,v),Object.assign(a,{...r(a),lazy:void 0})})();return QR.set(a,h),h.catch(()=>{}),{lazyRoutePromise:h,lazyHandlerPromise:h}}let s=Object.keys(e.lazy),l=[],c;for(let u of s){if(o&&o.includes(u))continue;let h=lj({key:u,route:e,manifest:n,mapRouteProperties:r});h&&(l.push(h),u===t&&(c=h))}let f=l.length>0?Promise.all(l).then(()=>{}):void 0;return f?.catch(()=>{}),c?.catch(()=>{}),{lazyRoutePromise:f,lazyHandlerPromise:c}}async function XR(e){let t=e.matches.filter(o=>o.shouldLoad),n={};return(await Promise.all(t.map(o=>o.resolve()))).forEach((o,a)=>{n[t[a].route.id]=o}),n}async function a3(e){return e.matches.some(t=>t.route.middleware)?cj(e,()=>XR(e)):XR(e)}function cj(e,t){return i3(e,t,r=>{if(x3(r))throw r;return r},g3,n);function n(r,o,a){if(a)return Promise.resolve(Object.assign(a.value,{[o]:{type:"error",result:r}}));{let{matches:s}=e,l=Math.min(Math.max(s.findIndex(f=>f.route.id===o),0),Math.max(s.findIndex(f=>f.shouldCallHandler()),0)),c=Dc(s,s[l].route.id).route.id;return Promise.resolve({[c]:{type:"error",result:r}})}}}async function i3(e,t,n,r,o){let{matches:a,...s}=e,l=a.flatMap(f=>f.route.middleware?f.route.middleware.map(u=>[f.route.id,u]):[]);return await uj(s,l,t,n,r,o)}async function uj(e,t,n,r,o,a,s=0){let{request:l}=e;if(l.signal.aborted)throw l.signal.reason??new Error(`Request aborted: ${l.method} ${l.url}`);let c=t[s];if(!c)return await n();let[f,u]=c,h,y=async()=>{if(h)throw new Error("You may only call `next()` once per middleware");try{return h={value:await uj(e,t,n,r,o,a,s+1)},h.value}catch(v){return h={value:await a(v,f,h)},h.value}};try{let v=await u(e,y),S=v!=null?r(v):void 0;return o(S)?S:h?S??h.value:(h={value:await y()},h.value)}catch(v){return await a(v,f,h)}}function dj(e,t,n,r,o){let a=lj({key:"middleware",route:r.route,manifest:t,mapRouteProperties:e}),s=o3(r.route,ua(n.method)?"action":"loader",t,e,o);return{middleware:a,route:s.lazyRoutePromise,handler:s.lazyHandlerPromise}}function WS(e,t,n,r,o,a,s,l,c,f=null,u){let h=!1,y=dj(e,t,n,a,s);return{...a,_lazyPromises:y,shouldLoad:c,shouldRevalidateArgs:f,shouldCallHandler(v){return h=!0,f?typeof u=="boolean"?Lm(a,{...f,defaultShouldRevalidate:u}):typeof v=="boolean"?Lm(a,{...f,defaultShouldRevalidate:v}):Lm(a,f):c},resolve(v){let{lazy:S,loader:x,middleware:w}=a.route,b=h||c||v&&!ua(n.method)&&(S||x),k=w&&w.length>0&&!x&&!S;return b&&(ua(n.method)||!k)?l3({request:n,path:r,pattern:o,match:a,lazyHandlerPromise:y?.handler,lazyRoutePromise:y?.route,handlerOverride:v,scopedContext:l}):Promise.resolve({type:"data",result:void 0})}}}function Kf(e,t,n,r,o,a,s,l,c=null){return o.map(f=>f.route.id!==a.route.id?{...f,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:dj(e,t,n,f,s),resolve:()=>Promise.resolve({type:"data",result:void 0})}:WS(e,t,n,r,Cg(o),f,s,l,!0,c))}async function s3(e,t,n,r,o,a,s){r.some(u=>u._lazyPromises?.middleware)&&await Promise.all(r.map(u=>u._lazyPromises?.middleware));let l={request:t,url:fj(t,n),pattern:Cg(r),params:r[0].params,context:a,matches:r},f=await e({...l,fetcherKey:o,runClientMiddleware:u=>{let h=l;return cj(h,()=>u({...h,fetcherKey:o,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(r.flatMap(u=>[u._lazyPromises?.handler,u._lazyPromises?.route]))}catch{}return f}async function l3({request:e,path:t,pattern:n,match:r,lazyHandlerPromise:o,lazyRoutePromise:a,handlerOverride:s,scopedContext:l}){let c,f,u=ua(e.method),h=u?"action":"loader",y=v=>{let S,x=new Promise((k,E)=>S=E);f=()=>S(),e.signal.addEventListener("abort",f);let w=k=>typeof v!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${h}" [routeId: ${r.route.id}]`)):v({request:e,url:fj(e,t),pattern:n,params:r.params,context:l},...k!==void 0?[k]:[]),b=(async()=>{try{return{type:"data",result:await(s?s(E=>w(E)):w())}}catch(k){return{type:"error",result:k}}})();return Promise.race([b,x])};try{let v=u?r.route.action:r.route.loader;if(o||a)if(v){let S,[x]=await Promise.all([y(v).catch(w=>{S=w}),o,a]);if(S!==void 0)throw S;c=x}else{await o;let S=u?r.route.action:r.route.loader;if(S)[c]=await Promise.all([y(S),a]);else if(h==="action"){let x=new URL(e.url),w=x.pathname+x.search;throw _i(405,{method:e.method,pathname:w,routeId:r.route.id})}else return{type:"data",result:void 0}}else if(v)c=await y(v);else{let S=new URL(e.url),x=S.pathname+S.search;throw _i(404,{pathname:x})}}catch(v){return{type:"error",result:v}}finally{f&&e.signal.removeEventListener("abort",f)}return c}async function c3(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function u3(e){let{result:t,type:n}=e;if(wC(t)){let r;try{r=await c3(t)}catch(o){return{type:"error",error:o}}return n==="error"?{type:"error",error:new wg(t.status,t.statusText,r),statusCode:t.status,headers:t.headers}:{type:"data",data:r,statusCode:t.status,headers:t.headers}}return n==="error"?rO(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:m3(t),statusCode:Jm(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Jm(t)?t.status:void 0}:rO(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function d3(e,t,n,r,o){let a=e.headers.get("Location");if(Zn(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!vC(a)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);a=HS(new URL(t.url),s,o,a),e.headers.set("Location",a)}return e}var f3=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function qS(e){try{return f3.includes(new URL(e).protocol)}catch{return!1}}function ZR(e,t,n,r){if(vC(e)){let o=e,a=_b.test(o)?new URL(WD(o,t.protocol)):new URL(o);if(qS(a.toString()))throw new Error("Invalid redirect location");let s=Va(a.pathname,n)!=null;if(a.origin===t.origin&&s)return bC(a.pathname)+a.search+a.hash}try{let o=r.createURL(e);if(qS(o.toString()))throw new Error("Invalid redirect location")}catch{}return e}function Lf(e,t,n,r){let o=e.createURL(pj(t)).toString(),a={signal:n};if(r&&ua(r.formMethod)){let{formMethod:s,formEncType:l}=r;a.method=s.toUpperCase(),l==="application/json"?(a.headers=new Headers({"Content-Type":l}),a.body=JSON.stringify(r.json)):l==="text/plain"?a.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?a.body=YS(r.formData):a.body=r.formData}return new Request(o,a)}function fj(e,t){let n=new URL(e.url),r=typeof t=="string"?ul(t):t;if(n.pathname=r.pathname||"/",r.search){let o=new URLSearchParams(r.search),a=o.getAll("index");o.delete("index");for(let s of a.filter(Boolean))o.append("index",s);n.search=o.size?`?${o.toString()}`:""}else n.search="";return n.hash=r.hash||"",n}function YS(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function JR(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function p3(e,t,n,r=!1,o=!1){let a={},s=null,l,c=!1,f={},u=n&&ci(n[1])?n[1].error:void 0;return e.forEach(h=>{if(!(h.route.id in t))return;let y=h.route.id,v=t[y];if(Zn(!Hu(v),"Cannot handle redirect results in processLoaderData"),ci(v)){let S=v.error;if(u!==void 0&&(S=u,u=void 0),s=s||{},o)s[y]=S;else{let x=Dc(e,y);s[x.route.id]==null&&(s[x.route.id]=S)}r||(a[y]=aj),c||(c=!0,l=Jm(v.error)?v.error.status:500),v.headers&&(f[y]=v.headers)}else a[y]=v.data,v.statusCode&&v.statusCode!==200&&!c&&(l=v.statusCode),v.headers&&(f[y]=v.headers)}),u!==void 0&&n&&(s={[n[0]]:u},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:s,statusCode:l||200,loaderHeaders:f}}function eO(e,t,n,r,o,a,s){let{loaderData:l,errors:c}=p3(t,n,r);return o.filter(f=>!f.matches||f.matches.some(u=>u.shouldLoad)).forEach(f=>{let{key:u,match:h,controller:y}=f;if(y&&y.signal.aborted)return;let v=a[u];if(Zn(v,"Did not find corresponding fetcher result"),ci(v)){let S=Dc(e.matches,h?.route.id);c&&c[S.route.id]||(c={...c,[S.route.id]:v.error}),s.delete(u)}else if(Hu(v))Zn(!1,"Unhandled fetcher revalidation redirect");else{let S=Ys(v.data);s.set(u,S)}}),{loaderData:l,errors:c}}function tO(e,t,n,r){let o=Object.entries(t).filter(([,a])=>a!==aj).reduce((a,[s,l])=>(a[s]=l,a),{});for(let a of n){let s=a.route.id;if(!t.hasOwnProperty(s)&&e.hasOwnProperty(s)&&a.route.loader&&(o[s]=e[s]),r&&r.hasOwnProperty(s))break}return o}function nO(e){return e?ci(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Dc(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Xy(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function _i(e,{pathname:t,routeId:n,method:r,type:o,message:a}={}){let s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",r&&t&&n?l=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:o==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l=`Route "${n}" does not match URL "${t}"`):e===404?(s="Not Found",l=`No route matches URL "${t}"`):e===405&&(s="Method Not Allowed",r&&t&&n?l=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(l=`Invalid request method "${r.toUpperCase()}"`)),new wg(e||500,s,new Error(l),!0)}function Zy(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(Hu(o))return{key:r,result:o}}}function pj(e){let t=typeof e=="string"?ul(e):e;return ka({...t,hash:""})}function h3(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function m3(e){return new wg(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function g3(e){return e!=null&&typeof e=="object"&&Object.entries(e).every(([t,n])=>typeof t=="string"&&y3(n))}function y3(e){return e!=null&&typeof e=="object"&&"type"in e&&"result"in e&&(e.type==="data"||e.type==="error")}function v3(e){return wC(e.result)&&rj.has(e.result.status)}function ci(e){return e.type==="error"}function Hu(e){return(e&&e.type)==="redirect"}function rO(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function wC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function b3(e){return rj.has(e)}function x3(e){return wC(e)&&b3(e.status)&&e.headers.has("Location")}function S3(e){return K4.has(e.toUpperCase())}function ua(e){return Y4.has(e.toUpperCase())}function CC(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function jv(e,t){let n=typeof t=="string"?ul(t).search:t.search;if(e[e.length-1].route.index&&CC(n||""))return e[e.length-1];let r=ZD(e);return r[r.length-1]}function oO(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:s}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function _1(e,t,n,r){return r?{state:"loading",location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}:{state:"loading",location:e,matches:t,historyAction:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function w3(e,t,n,r){return{state:"submitting",location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}}function zh(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function C3(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Ys(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function k3(e,t){try{let n=e.sessionStorage.getItem(oj);if(n){let r=JSON.parse(n);for(let[o,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(o,new Set(a||[]))}}catch{}}function E3(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(oj,JSON.stringify(n))}catch(r){vo(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function aO(){let e,t,n=new Promise((r,o)=>{e=async a=>{r(a);try{await n}catch{}},t=async a=>{o(a);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var yd=C.createContext(null);yd.displayName="DataRouter";var kg=C.createContext(null);kg.displayName="DataRouterState";var hj=C.createContext(!1);function mj(){return C.useContext(hj)}var kC=C.createContext({isTransitioning:!1});kC.displayName="ViewTransition";var gj=C.createContext(new Map);gj.displayName="Fetchers";var T3=C.createContext(null);T3.displayName="Await";var wi=C.createContext(null);wi.displayName="Navigation";var Ub=C.createContext(null);Ub.displayName="Location";var ts=C.createContext({outlet:null,matches:[],isDataRoute:!1});ts.displayName="Route";var EC=C.createContext(null);EC.displayName="RouteError";var yj="REACT_ROUTER_ERROR",M3="REDIRECT",R3="ROUTE_ERROR_RESPONSE";function O3(e){if(e.startsWith(`${yj}:${M3}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function $3(e){if(e.startsWith(`${yj}:${R3}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new wg(t.status,t.statusText,t.data)}catch{}}function P3(e,{relative:t}={}){Zn(wp(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=C.useContext(wi),{hash:o,pathname:a,search:s}=Tg(e,{relative:t}),l=a;return n!=="/"&&(l=a==="/"?n:Yi([n,a])),r.createHref({pathname:l,search:s,hash:o})}function wp(){return C.useContext(Ub)!=null}function ns(){return Zn(wp(),"useLocation() may be used only in the context of a <Router> component."),C.useContext(Ub).location}var vj="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function bj(e){C.useContext(wi).static||C.useLayoutEffect(e)}function Eg(){let{isDataRoute:e}=C.useContext(ts);return e?W3():A3()}function A3(){Zn(wp(),"useNavigate() may be used only in the context of a <Router> component.");let e=C.useContext(yd),{basename:t,navigator:n}=C.useContext(wi),{matches:r}=C.useContext(ts),{pathname:o}=ns(),a=JSON.stringify(Bb(r)),s=C.useRef(!1);return bj(()=>{s.current=!0}),C.useCallback((c,f={})=>{if(vo(s.current,vj),!s.current)return;if(typeof c=="number"){n.go(c);return}let u=Sg(c,JSON.parse(a),o,f.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:Yi([t,u.pathname])),Gf(typeof c=="string"?c:ka(c),n.createHref(u),xC(n),"reject"),(f.replace?n.replace:n.push)(u,f.state,f)},[t,n,a,o,e])}var D3=C.createContext(null);function j3(e){let t=C.useContext(ts).outlet;return C.useMemo(()=>t&&C.createElement(D3.Provider,{value:e},t),[t,e])}function Hye(){let{matches:e}=C.useContext(ts);return e[e.length-1]?.params??{}}function Tg(e,{relative:t}={}){let{matches:n}=C.useContext(ts),{pathname:r}=ns(),o=JSON.stringify(Bb(n));return C.useMemo(()=>Sg(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function N3(e,t,n){Zn(wp(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=C.useContext(wi),{matches:o}=C.useContext(ts),a=o[o.length-1],s=a?a.params:{},l=a?a.pathname:"/",c=a?a.pathnameBase:"/",f=a&&a.route;{let w=f&&f.path||"";Cj(l,!f||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${w}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
61
+
62
+ Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let u=ns(),h;h=u;let y=h.pathname||"/",v=y;if(c!=="/"){let w=c.replace(/^\//,"").split("/");v="/"+y.replace(/^\//,"").split("/").slice(w.length).join("/")}let S=n&&n.state.matches.length?n.state.matches.map(w=>Object.assign(w,{route:n.manifest[w.route.id]||w.route})):YD(e,{pathname:v});return vo(f||S!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),vo(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),_3(S&&S.map(w=>Object.assign({},w,{params:Object.assign({},s,w.params),pathname:Yi([c,r.encodeLocation?r.encodeLocation(w.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?c:Yi([c,r.encodeLocation?r.encodeLocation(w.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),o,n)}function I3(){let e=V3(),t=Jm(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=C.createElement(C.Fragment,null,C.createElement("p",null,"💿 Hey developer 👋"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:a},"ErrorBoundary")," or"," ",C.createElement("code",{style:a},"errorElement")," prop on your route.")),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:o},n):null,s)}var L3=C.createElement(I3,null),xj=class extends C.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=$3(e.digest);n&&(e=n)}let t=e!==void 0?C.createElement(ts.Provider,{value:this.props.routeContext},C.createElement(EC.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?C.createElement(z3,{error:e},t):t}};xj.contextType=hj;var B1=new WeakMap;function z3({children:e,error:t}){let{basename:n,navigator:r}=C.useContext(wi);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let o=O3(t.digest);if(o){let a=B1.get(t);if(a)throw a;let s=ej(o.location,n),l=s.absoluteURL||s.to;if(Gf(o.location,l,xC(r),"allow-explicit"),qS(l))throw new Error("Invalid redirect location");if(JD&&!B1.get(t))if(s.isExternal||o.reloadDocument)window.location.href=l;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:o.replace}));throw B1.set(t,c),c}return C.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l}`})}}return e}function F3({routeContext:e,match:t,children:n}){let r=C.useContext(yd);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),C.createElement(ts.Provider,{value:e},n)}function _3(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,a=r?.errors;if(a!=null){let u=o.findIndex(h=>h.route.id&&a?.[h.route.id]!==void 0);Zn(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),o=o.slice(0,Math.min(o.length,u+1))}let s=!1,l=-1;if(n&&r){s=r.renderFallback;for(let u=0;u<o.length;u++){let h=o[u];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(l=u),h.route.id){let{loaderData:y,errors:v}=r,S=h.route.loader&&!y.hasOwnProperty(h.route.id)&&(!v||v[h.route.id]===void 0);if(h.route.lazy||S){n.isStatic&&(s=!0),l>=0?o=o.slice(0,l+1):o=[o[0]];break}}}}let c=n?.onError,f=r&&c?(u,h)=>{c(u,{location:r.location,params:r.matches?.[0]?.params??{},pattern:Cg(r.matches),errorInfo:h})}:void 0;return o.reduceRight((u,h,y)=>{let v,S=!1,x=null,w=null;r&&(v=a&&h.route.id?a[h.route.id]:void 0,x=h.route.errorElement||L3,s&&(l<0&&y===0?(Cj("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,w=null):l===y&&(S=!0,w=h.route.hydrateFallbackElement||null)));let b=t.concat(o.slice(0,y+1)),k=()=>{let E;return v?E=x:S?E=w:h.route.Component?E=C.createElement(h.route.Component,null):h.route.element?E=h.route.element:E=u,C.createElement(F3,{match:h,routeContext:{outlet:u,matches:b,isDataRoute:r!=null},children:E})};return r&&(h.route.ErrorBoundary||h.route.errorElement||y===0)?C.createElement(xj,{location:r.location,revalidation:r.revalidation,component:x,error:v,children:k(),routeContext:{outlet:null,matches:b,isDataRoute:!0},onError:f}):k()},null)}function TC(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Sj(e){let t=C.useContext(yd);return Zn(t,TC(e)),t}function wj(e){let t=C.useContext(kg);return Zn(t,TC(e)),t}function B3(e){let t=C.useContext(ts);return Zn(t,TC(e)),t}function MC(e){let t=B3(e),n=t.matches[t.matches.length-1];return Zn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function U3(){return MC("useRouteId")}function V3(){let e=C.useContext(EC),t=wj("useRouteError"),n=MC("useRouteError");return e!==void 0?e:t.errors?.[n]}var H3=0;function Wye(e){let{router:t,basename:n}=Sj("useBlocker"),r=wj("useBlocker"),[o,a]=C.useState(""),s=C.useCallback(l=>{if(typeof e!="function")return!!e;if(n==="/")return e(l);let{currentLocation:c,nextLocation:f,historyAction:u}=l;return e({currentLocation:{...c,pathname:Va(c.pathname,n)||c.pathname},nextLocation:{...f,pathname:Va(f.pathname,n)||f.pathname},historyAction:u})},[n,e]);return C.useEffect(()=>{let l=String(++H3);return a(l),()=>t.deleteBlocker(l)},[t]),C.useEffect(()=>{o!==""&&t.getBlocker(o,s)},[t,o,s]),o&&r.blockers.has(o)?r.blockers.get(o):jf}function W3(){let{router:e}=Sj("useNavigate"),t=MC("useNavigate"),n=C.useRef(!1);return bj(()=>{n.current=!0}),C.useCallback(async(o,a={})=>{vo(n.current,vj),n.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...a}))},[e,t])}var iO={};function Cj(e,t,n){!t&&!iO[e]&&(iO[e]=!0,vo(!1,n))}var sO={};function lO(e,t){!e&&!sO[t]&&(sO[t]=!0,console.warn(t))}var q3="useOptimistic",cO=rd[q3],Y3=()=>{};function G3(e){return cO?cO(e):[e,Y3]}function K3(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&vo(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:C.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&vo(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:C.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&vo(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:C.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var Q3=["HydrateFallback","hydrateFallbackElement"],X3=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",t(n))}})}};function Z3({router:e,flushSync:t,onError:n,useTransitions:r}){r=mj()||r;let[a,s]=C.useState(e.state),[l,c]=G3(a),[f,u]=C.useState(),[h,y]=C.useState({isTransitioning:!1}),[v,S]=C.useState(),[x,w]=C.useState(),[b,k]=C.useState(),E=C.useRef(new Map),O=C.useCallback((j,{deletedFetchers:_,newErrors:W,flushSync:U,viewTransitionOpts:T})=>{W&&n&&Object.values(W).forEach(F=>n(F,{location:j.location,params:j.matches[0]?.params??{},pattern:Cg(j.matches)})),j.fetchers.forEach((F,H)=>{F.data!==void 0&&E.current.set(H,F.data)}),_.forEach(F=>E.current.delete(F)),lO(U===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let L=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(lO(T==null||L,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!T||!L){t&&U?t(()=>s(j)):r===!1?s(j):C.startTransition(()=>{r===!0&&c(F=>uO(F,j)),s(j)});return}if(t&&U){t(()=>{x&&(v?.resolve(),x.skipTransition()),y({isTransitioning:!0,flushSync:!0,currentLocation:T.currentLocation,nextLocation:T.nextLocation})});let F=e.window.document.startViewTransition(()=>{t(()=>s(j))});F.finished.finally(()=>{t(()=>{S(void 0),w(void 0),u(void 0),y({isTransitioning:!1})})}),t(()=>w(F));return}x?(v?.resolve(),x.skipTransition(),k({state:j,currentLocation:T.currentLocation,nextLocation:T.nextLocation})):(u(j),y({isTransitioning:!0,flushSync:!1,currentLocation:T.currentLocation,nextLocation:T.nextLocation}))},[e.window,t,x,v,r,c,n]);C.useLayoutEffect(()=>e.subscribe(O),[e,O]),C.useEffect(()=>{h.isTransitioning&&!h.flushSync&&S(new X3)},[h]),C.useEffect(()=>{if(v&&f&&e.window){let j=f,_=v.promise,W=e.window.document.startViewTransition(async()=>{r===!1?s(j):C.startTransition(()=>{r===!0&&c(U=>uO(U,j)),s(j)}),await _});W.finished.finally(()=>{S(void 0),w(void 0),u(void 0),y({isTransitioning:!1})}),w(W)}},[f,v,e.window,r,c]),C.useEffect(()=>{v&&f&&l.location.key===f.location.key&&v.resolve()},[v,x,l.location,f]),C.useEffect(()=>{!h.isTransitioning&&b&&(u(b.state),y({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),k(void 0))},[h.isTransitioning,b]);let $=C.useMemo(()=>({createHref:e.createHref,createURL:e.createURL,encodeLocation:e.encodeLocation,go:j=>e.navigate(j),push:(j,_,W)=>e.navigate(j,{state:_,preventScrollReset:W?.preventScrollReset}),replace:(j,_,W)=>e.navigate(j,{replace:!0,state:_,preventScrollReset:W?.preventScrollReset})}),[e]),A=e.basename||"/",I=C.useMemo(()=>({router:e,navigator:$,static:!1,basename:A,onError:n}),[e,$,A,n]);return C.createElement(C.Fragment,null,C.createElement(yd.Provider,{value:I},C.createElement(kg.Provider,{value:l},C.createElement(gj.Provider,{value:E.current},C.createElement(kC.Provider,{value:h},C.createElement(n_,{basename:A,location:l.location,navigationType:l.historyAction,navigator:$,useTransitions:r},C.createElement(J3,{routes:e.routes,manifest:e.manifest,future:e.future,state:l,isStatic:!1,onError:n})))))),null)}function uO(e,t){return{...e,navigation:t.navigation.state!=="idle"?t.navigation:e.navigation,revalidation:t.revalidation!=="idle"?t.revalidation:e.revalidation,actionData:t.navigation.state!=="submitting"?t.actionData:e.actionData,fetchers:t.fetchers}}var J3=C.memo(e_);function e_({routes:e,manifest:t,future:n,state:r,isStatic:o,onError:a}){return N3(e,void 0,{manifest:t,state:r,isStatic:o,onError:a})}function t_({to:e,replace:t,state:n,relative:r}){Zn(wp(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o,navigator:a}=C.useContext(wi);vo(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=C.useContext(ts),{pathname:l}=ns(),c=Eg(),f=Sg(e,Bb(s),l,r==="path");Gf(typeof e=="string"?e:ka(e),a.createHref(f),xC(a),"reject");let u=JSON.stringify(f);return C.useEffect(()=>{c(JSON.parse(u),{replace:t,state:n,relative:r})},[c,u,r,t,n]),null}function qye(e){return j3(e.context)}function n_({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:a=!1,useTransitions:s}){Zn(!wp(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),c=C.useMemo(()=>({basename:l,navigator:o,static:a,useTransitions:s,future:{}}),[l,o,a,s]);typeof n=="string"&&(n=ul(n));let{pathname:f="/",search:u="",hash:h="",state:y=null,key:v="default",mask:S}=n,x=C.useMemo(()=>{let w=Va(f,l);return w==null?null:{location:{pathname:w,search:u,hash:h,state:y,key:v,mask:S},navigationType:r}},[l,f,u,h,y,v,r,S]);return vo(x!=null,`<Router basename="${l}"> is not able to match the URL "${f}${u}${h}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:C.createElement(wi.Provider,{value:c},C.createElement(Ub.Provider,{children:t,value:x}))}var Nv="get",Iv="application/x-www-form-urlencoded";function Vb(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function r_(e){return Vb(e)&&e.tagName.toLowerCase()==="button"}function o_(e){return Vb(e)&&e.tagName.toLowerCase()==="form"}function a_(e){return Vb(e)&&e.tagName.toLowerCase()==="input"}function i_(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function s_(e,t){return e.button===0&&(!t||t==="_self")&&!i_(e)}function GS(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function l_(e,t){let n=GS(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(a=>{n.append(o,a)})}),n}var Jy=null;function c_(){if(Jy===null)try{new FormData(document.createElement("form"),0),Jy=!1}catch{Jy=!0}return Jy}var u_=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function U1(e){return e!=null&&!u_.has(e)?(vo(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Iv}"`),null):e}function d_(e,t){let n,r,o,a,s;if(o_(e)){let l=e.getAttribute("action");r=l?Va(l,t):null,n=e.getAttribute("method")||Nv,o=U1(e.getAttribute("enctype"))||Iv,a=new FormData(e)}else if(r_(e)||a_(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||l.getAttribute("action");if(r=c?Va(c,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||Nv,o=U1(e.getAttribute("formenctype"))||U1(l.getAttribute("enctype"))||Iv,a=new FormData(l,e),!c_()){let{name:f,type:u,value:h}=e;if(u==="image"){let y=f?`${f}.`:"";a.append(`${y}x`,"0"),a.append(`${y}y`,"0")}else f&&a.append(f,h)}}else{if(Vb(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Nv,r=null,o=Iv,s=e}return a&&o==="text/plain"&&(s=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function RC(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function kj(e,t,n,r){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:o.pathname==="/"?o.pathname=`_root.${r}`:t&&Va(o.pathname,t)==="/"?o.pathname=`${ap(t)}/_root.${r}`:o.pathname=`${ap(o.pathname)}.${r}`,o}async function f_(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function p_(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function h_(e,t,n){let r=await Promise.all(e.map(async o=>{let a=t.routes[o.route.id];if(a){let s=await f_(a,n);return s.links?s.links():[]}return[]}));return v_(r.flat(1).filter(p_).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function dO(e,t,n,r,o,a){let s=(c,f)=>n[f]?c.route.id!==n[f].route.id:!0,l=(c,f)=>n[f].pathname!==c.pathname||n[f].route.path?.endsWith("*")&&n[f].params["*"]!==c.params["*"];return a==="assets"?t.filter((c,f)=>s(c,f)||l(c,f)):a==="data"?t.filter((c,f)=>{let u=r.routes[c.route.id];if(!u||!u.hasLoader)return!1;if(s(c,f)||l(c,f))return!0;if(c.route.shouldRevalidate){let h=c.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function m_(e,t,{includeHydrateFallback:n}={}){return g_(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let a=[o.module];return o.clientActionModule&&(a=a.concat(o.clientActionModule)),o.clientLoaderModule&&(a=a.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(a=a.concat(o.hydrateFallbackModule)),o.imports&&(a=a.concat(o.imports)),a}).flat(1))}function g_(e){return[...new Set(e)]}function y_(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function v_(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let a=JSON.stringify(y_(o));return n.has(a)||(n.add(a),r.push({key:a,link:o})),r},[])}function OC(){let e=C.useContext(yd);return RC(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function b_(){let e=C.useContext(kg);return RC(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var $C=C.createContext(void 0);$C.displayName="FrameworkContext";function Hb(){let e=C.useContext($C);return RC(e,"You must render this element inside a <HydratedRouter> element"),e}function x_(e,t){let n=C.useContext($C),[r,o]=C.useState(!1),[a,s]=C.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:f,onMouseLeave:u,onTouchStart:h}=t,y=C.useRef(null);C.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let x=b=>{b.forEach(k=>{s(k.isIntersecting)})},w=new IntersectionObserver(x,{threshold:.5});return y.current&&w.observe(y.current),()=>{w.disconnect()}}},[e]),C.useEffect(()=>{if(r){let x=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(x)}}},[r]);let v=()=>{o(!0)},S=()=>{o(!1),s(!1)};return n?e!=="intent"?[a,y,{}]:[a,y,{onFocus:Fh(l,v),onBlur:Fh(c,S),onMouseEnter:Fh(f,v),onMouseLeave:Fh(u,S),onTouchStart:Fh(h,v)}]:[!1,y,{}]}function Fh(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function S_({page:e,...t}){let n=mj(),{nonce:r}=Hb(),{router:o}=OC(),a=C.useMemo(()=>YD(o.routes,e,o.basename),[o.routes,e,o.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?C.createElement(C_,{page:e,matches:a,...t}):C.createElement(k_,{page:e,matches:a,...t})):null}function w_(e){let{manifest:t,routeModules:n}=Hb(),[r,o]=C.useState([]);return C.useEffect(()=>{let a=!1;return h_(e,t,n).then(s=>{a||o(s)}),()=>{a=!0}},[e,t,n]),r}function C_({page:e,matches:t,...n}){let r=ns(),{future:o}=Hb(),{basename:a}=OC(),s=C.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let l=kj(e,a,o.v8_trailingSlashAwareDataRequests,"rsc"),c=!1,f=[];for(let u of t)typeof u.route.shouldRevalidate=="function"?c=!0:f.push(u.route.id);return c&&f.length>0&&l.searchParams.set("_routes",f.join(",")),[l.pathname+l.search]},[a,o.v8_trailingSlashAwareDataRequests,e,r,t]);return C.createElement(C.Fragment,null,s.map(l=>C.createElement("link",{key:l,rel:"prefetch",as:"fetch",href:l,...n})))}function k_({page:e,matches:t,...n}){let r=ns(),{future:o,manifest:a,routeModules:s}=Hb(),{basename:l}=OC(),{loaderData:c,matches:f}=b_(),u=C.useMemo(()=>dO(e,t,f,a,r,"data"),[e,t,f,a,r]),h=C.useMemo(()=>dO(e,t,f,a,r,"assets"),[e,t,f,a,r]),y=C.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let x=new Set,w=!1;if(t.forEach(k=>{let E=a.routes[k.route.id];!E||!E.hasLoader||(!u.some(O=>O.route.id===k.route.id)&&k.route.id in c&&s[k.route.id]?.shouldRevalidate||E.hasClientLoader?w=!0:x.add(k.route.id))}),x.size===0)return[];let b=kj(e,l,o.v8_trailingSlashAwareDataRequests,"data");return w&&x.size>0&&b.searchParams.set("_routes",t.filter(k=>x.has(k.route.id)).map(k=>k.route.id).join(",")),[b.pathname+b.search]},[l,o.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,s]),v=C.useMemo(()=>m_(h,a),[h,a]),S=w_(h);return C.createElement(C.Fragment,null,y.map(x=>C.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...n})),v.map(x=>C.createElement("link",{key:x,rel:"modulepreload",href:x,...n})),S.map(({key:x,link:w})=>C.createElement("link",{key:x,nonce:n.nonce,...w,crossOrigin:w.crossOrigin??n.crossOrigin})))}function E_(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var T_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{T_&&(window.__reactRouterVersion="7.18.4")}catch{}function M_(e,t){return e3({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:h4({window:t?.window}),hydrationData:R_(),routes:e,mapRouteProperties:K3,hydrationRouteProperties:Q3,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function R_(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:O_(e.errors)}),e}function O_(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new wg(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(typeof o.__subType=="string"&&F4.includes(o.__subType)){let a=window[o.__subType];if(typeof a=="function")try{let s=new a(o.message);s.stack="",n[r]=s}catch{}}if(n[r]==null){let a=new Error(o.message);a.stack="",n[r]=a}}else n[r]=o;return n}var Ej=C.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:a,replace:s,mask:l,state:c,target:f,to:u,preventScrollReset:h,viewTransition:y,defaultShouldRevalidate:v,...S},x){let{basename:w,navigator:b,useTransitions:k}=C.useContext(wi),E=typeof u=="string"&&Fb.test(u),O=ej(u,w);u=O.to;let $=P3(u,{relative:o}),A=ns(),I=null;if(l){let H=Sg(l,[],A.mask?A.mask.pathname:"/",!0);w!=="/"&&(H.pathname=H.pathname==="/"?w:Yi([w,H.pathname])),I=b.createHref(H)}let[j,_,W]=x_(r,S),U=D_(u,{replace:s,mask:l,state:c,target:f,preventScrollReset:h,relative:o,viewTransition:y,defaultShouldRevalidate:v,useTransitions:k});function T(H){t&&t(H),H.defaultPrevented||U(H)}let L=!(O.isExternal||a),F=C.createElement("a",{...S,...W,href:(L?I:void 0)||O.absoluteURL||$,onClick:L?T:t,ref:E_(x,_),target:f,"data-discover":!E&&n==="render"?"true":void 0});return j&&!E?C.createElement(C.Fragment,null,F,C.createElement(S_,{page:$})):F});Ej.displayName="Link";var $_=C.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:a,to:s,viewTransition:l,children:c,...f},u){let h=Tg(s,{relative:f.relative}),y=ns(),v=C.useContext(kg),{navigator:S,basename:x}=C.useContext(wi),w=v!=null&&F_(h)&&l===!0,b=S.encodeLocation?S.encodeLocation(h).pathname:h.pathname,k=y.pathname,E=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;n||(k=k.toLowerCase(),E=E?E.toLowerCase():null,b=b.toLowerCase()),E&&x&&(E=Va(E,x)||E);const O=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let $=k===b||!o&&k.startsWith(b)&&k.charAt(O)==="/",A=E!=null&&(E===b||!o&&E.startsWith(b)&&E.charAt(b.length)==="/"),I={isActive:$,isPending:A,isTransitioning:w},j=$?t:void 0,_;typeof r=="function"?_=r(I):_=[r,$?"active":null,A?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let W=typeof a=="function"?a(I):a;return C.createElement(Ej,{...f,"aria-current":j,className:_,ref:u,style:W,to:s,viewTransition:l},typeof c=="function"?c(I):c)});$_.displayName="NavLink";var P_=C.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:a,method:s=Nv,action:l,onSubmit:c,relative:f,preventScrollReset:u,viewTransition:h,defaultShouldRevalidate:y,...v},S)=>{let{useTransitions:x}=C.useContext(wi),w=L_(),b=z_(l,{relative:f}),k=s.toLowerCase()==="get"?"get":"post",E=typeof l=="string"&&Fb.test(l),O=$=>{if(c&&c($),$.defaultPrevented)return;$.preventDefault();let A=$.nativeEvent.submitter,I=A?.getAttribute("formmethod")||s,j=()=>w(A||$.currentTarget,{fetcherKey:t,method:I,navigate:n,replace:o,state:a,relative:f,preventScrollReset:u,viewTransition:h,defaultShouldRevalidate:y});x&&n!==!1?C.startTransition(()=>j()):j()};return C.createElement("form",{ref:S,method:k,action:b,onSubmit:r?c:O,...v,"data-discover":!E&&e==="render"?"true":void 0})});P_.displayName="Form";function A_(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Tj(e){let t=C.useContext(yd);return Zn(t,A_(e)),t}function D_(e,{target:t,replace:n,mask:r,state:o,preventScrollReset:a,relative:s,viewTransition:l,defaultShouldRevalidate:c,useTransitions:f}={}){let u=Eg(),h=ns(),y=Tg(e,{relative:s});return C.useCallback(v=>{if(s_(v,t)){v.preventDefault();let S=n!==void 0?n:ka(h)===ka(y),x=()=>u(e,{replace:S,mask:r,state:o,preventScrollReset:a,relative:s,viewTransition:l,defaultShouldRevalidate:c});f?C.startTransition(()=>x()):x()}},[h,u,y,n,r,o,t,e,a,s,l,c,f])}function j_(e){vo(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=C.useRef(GS(e)),n=C.useRef(!1),r=ns(),o=C.useMemo(()=>l_(r.search,n.current?null:t.current),[r.search]),a=Eg(),s=C.useCallback((l,c)=>{const f=GS(typeof l=="function"?l(new URLSearchParams(o)):l);n.current=!0,a("?"+f,c)},[a,o]);return[o,s]}var N_=0,I_=()=>`__${String(++N_)}__`;function L_(){let{router:e}=Tj("useSubmit"),{basename:t}=C.useContext(wi),n=U3(),r=e.fetch,o=e.navigate;return C.useCallback(async(a,s={})=>{let{action:l,method:c,encType:f,formData:u,body:h}=d_(a,t);if(s.navigate===!1){let y=s.fetcherKey||I_();await r(y,n,s.action||l,{defaultShouldRevalidate:s.defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:u,body:h,formMethod:s.method||c,formEncType:s.encType||f,flushSync:s.flushSync})}else await o(s.action||l,{defaultShouldRevalidate:s.defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:u,body:h,formMethod:s.method||c,formEncType:s.encType||f,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[r,o,t,n])}function z_(e,{relative:t}={}){let{basename:n}=C.useContext(wi),r=C.useContext(ts);Zn(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),a={...Tg(e||".",{relative:t})},s=ns();if(e==null){a.search=s.search;let l=new URLSearchParams(a.search),c=l.getAll("index");if(c.some(u=>u==="")){l.delete("index"),c.filter(h=>h).forEach(h=>l.append("index",h));let u=l.toString();a.search=u?`?${u}`:""}}return(!e||e===".")&&o.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:Yi([n,a.pathname])),ka(a)}function F_(e,{relative:t}={}){let n=C.useContext(kC);Zn(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Tj("useViewTransitionState"),o=Tg(e,{relative:t});if(!n.isTransitioning)return!1;let a=Va(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Va(n.nextLocation.pathname,r)||n.nextLocation.pathname;return rb(o.pathname,s)!=null||rb(o.pathname,a)!=null}var Wb=UD();const Lc=BD(Wb);function __(e){return C.createElement(Z3,{flushSync:Wb.flushSync,...e})}const B_="modulepreload",U_=function(e){return"/"+e},fO={},$o=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let s=function(f){return Promise.all(f.map(u=>Promise.resolve(u).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),c=l?.nonce||l?.getAttribute("nonce");o=s(n.map(f=>{if(f=U_(f),f in fO)return;fO[f]=!0;const u=f.endsWith(".css"),h=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${h}`))return;const y=document.createElement("link");if(y.rel=u?"stylesheet":B_,u||(y.as="script"),y.crossOrigin="",y.href=f,c&&y.setAttribute("nonce",c),document.head.appendChild(y),u)return new Promise((v,S)=>{y.addEventListener("load",v),y.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${f}`)))})}))}function a(s){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=s,window.dispatchEvent(l),!l.defaultPrevented)throw s}return o.then(s=>{for(const l of s||[])l.status==="rejected"&&a(l.reason);return t().catch(a)})},eg={black:"#000",white:"#fff"},yf={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},vf={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},bf={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},xf={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Sf={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},_h={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},V_={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"};function Vl(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const Cs="$$material";function ob(){return ob=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ob.apply(null,arguments)}function H_(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 W_(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 q_=(function(){function e(n){var r=this;this._insertTag=function(o){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,a),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(W_(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=H_(o);try{a.insertRule(r,a.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e})(),ca="-ms-",ab="-moz-",yr="-webkit-",Mj="comm",PC="rule",AC="decl",Y_="@import",Rj="@keyframes",G_="@layer",K_=Math.abs,qb=String.fromCharCode,Q_=Object.assign;function X_(e,t){return Jo(e,0)^45?(((t<<2^Jo(e,0))<<2^Jo(e,1))<<2^Jo(e,2))<<2^Jo(e,3):0}function Oj(e){return e.trim()}function Z_(e,t){return(e=t.exec(e))?e[0]:e}function vr(e,t,n){return e.replace(t,n)}function KS(e,t){return e.indexOf(t)}function Jo(e,t){return e.charCodeAt(t)|0}function tg(e,t,n){return e.slice(t,n)}function Ks(e){return e.length}function DC(e){return e.length}function ev(e,t){return t.push(e),e}function J_(e,t){return e.map(t).join("")}var Yb=1,ip=1,$j=0,Ha=0,Po=0,Cp="";function Gb(e,t,n,r,o,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Yb,column:ip,length:s,return:""}}function Bh(e,t){return Q_(Gb("",null,null,"",null,null,0),e,{length:-e.length},t)}function eB(){return Po}function tB(){return Po=Ha>0?Jo(Cp,--Ha):0,ip--,Po===10&&(ip=1,Yb--),Po}function yi(){return Po=Ha<$j?Jo(Cp,Ha++):0,ip++,Po===10&&(ip=1,Yb++),Po}function rl(){return Jo(Cp,Ha)}function Lv(){return Ha}function Mg(e,t){return tg(Cp,e,t)}function ng(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 Pj(e){return Yb=ip=1,$j=Ks(Cp=e),Ha=0,[]}function Aj(e){return Cp="",e}function zv(e){return Oj(Mg(Ha-1,QS(e===91?e+2:e===40?e+1:e)))}function nB(e){for(;(Po=rl())&&Po<33;)yi();return ng(e)>2||ng(Po)>3?"":" "}function rB(e,t){for(;--t&&yi()&&!(Po<48||Po>102||Po>57&&Po<65||Po>70&&Po<97););return Mg(e,Lv()+(t<6&&rl()==32&&yi()==32))}function QS(e){for(;yi();)switch(Po){case e:return Ha;case 34:case 39:e!==34&&e!==39&&QS(Po);break;case 40:e===41&&QS(e);break;case 92:yi();break}return Ha}function oB(e,t){for(;yi()&&e+Po!==57;)if(e+Po===84&&rl()===47)break;return"/*"+Mg(t,Ha-1)+"*"+qb(e===47?e:yi())}function aB(e){for(;!ng(rl());)yi();return Mg(e,Ha)}function iB(e){return Aj(Fv("",null,null,null,[""],e=Pj(e),0,[0],e))}function Fv(e,t,n,r,o,a,s,l,c){for(var f=0,u=0,h=s,y=0,v=0,S=0,x=1,w=1,b=1,k=0,E="",O=o,$=a,A=r,I=E;w;)switch(S=k,k=yi()){case 40:if(S!=108&&Jo(I,h-1)==58){KS(I+=vr(zv(k),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:I+=zv(k);break;case 9:case 10:case 13:case 32:I+=nB(S);break;case 92:I+=rB(Lv()-1,7);continue;case 47:switch(rl()){case 42:case 47:ev(sB(oB(yi(),Lv()),t,n),c);break;default:I+="/"}break;case 123*x:l[f++]=Ks(I)*b;case 125*x:case 59:case 0:switch(k){case 0:case 125:w=0;case 59+u:b==-1&&(I=vr(I,/\f/g,"")),v>0&&Ks(I)-h&&ev(v>32?hO(I+";",r,n,h-1):hO(vr(I," ","")+";",r,n,h-2),c);break;case 59:I+=";";default:if(ev(A=pO(I,t,n,f,u,o,l,E,O=[],$=[],h),a),k===123)if(u===0)Fv(I,t,A,A,O,a,h,l,$);else switch(y===99&&Jo(I,3)===110?100:y){case 100:case 108:case 109:case 115:Fv(e,A,A,r&&ev(pO(e,A,A,0,0,o,l,E,o,O=[],h),$),o,$,h,l,r?O:$);break;default:Fv(I,A,A,A,[""],$,0,l,$)}}f=u=v=0,x=b=1,E=I="",h=s;break;case 58:h=1+Ks(I),v=S;default:if(x<1){if(k==123)--x;else if(k==125&&x++==0&&tB()==125)continue}switch(I+=qb(k),k*x){case 38:b=u>0?1:(I+="\f",-1);break;case 44:l[f++]=(Ks(I)-1)*b,b=1;break;case 64:rl()===45&&(I+=zv(yi())),y=rl(),u=h=Ks(E=I+=aB(Lv())),k++;break;case 45:S===45&&Ks(I)==2&&(x=0)}}return a}function pO(e,t,n,r,o,a,s,l,c,f,u){for(var h=o-1,y=o===0?a:[""],v=DC(y),S=0,x=0,w=0;S<r;++S)for(var b=0,k=tg(e,h+1,h=K_(x=s[S])),E=e;b<v;++b)(E=Oj(x>0?y[b]+" "+k:vr(k,/&\f/g,y[b])))&&(c[w++]=E);return Gb(e,t,n,o===0?PC:l,c,f,u)}function sB(e,t,n){return Gb(e,t,n,Mj,qb(eB()),tg(e,2,-2),0)}function hO(e,t,n,r){return Gb(e,t,n,AC,tg(e,0,r),tg(e,r+1,-1),r)}function Qf(e,t){for(var n="",r=DC(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function lB(e,t,n,r){switch(e.type){case G_:if(e.children.length)break;case Y_:case AC:return e.return=e.return||e.value;case Mj:return"";case Rj:return e.return=e.value+"{"+Qf(e.children,r)+"}";case PC:e.value=e.props.join(",")}return Ks(n=Qf(e.children,r))?e.return=e.value+"{"+n+"}":""}function cB(e){var t=DC(e);return function(n,r,o,a){for(var s="",l=0;l<t;l++)s+=e[l](n,r,o,a)||"";return s}}function uB(e){return function(t){t.root||(t=t.return)&&e(t)}}function Dj(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var dB=function(t,n,r){for(var o=0,a=0;o=a,a=rl(),o===38&&a===12&&(n[r]=1),!ng(a);)yi();return Mg(t,Ha)},fB=function(t,n){var r=-1,o=44;do switch(ng(o)){case 0:o===38&&rl()===12&&(n[r]=1),t[r]+=dB(Ha-1,n,r);break;case 2:t[r]+=zv(o);break;case 4:if(o===44){t[++r]=rl()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=qb(o)}while(o=yi());return t},pB=function(t,n){return Aj(fB(Pj(t),n))},mO=new WeakMap,hB=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!mO.get(r))&&!o){mO.set(t,!0);for(var a=[],s=pB(n,a),l=r.props,c=0,f=0;c<s.length;c++)for(var u=0;u<l.length;u++,f++)t.props[f]=a[c]?s[c].replace(/&\f/g,l[u]):l[u]+" "+s[c]}}},mB=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function jj(e,t){switch(X_(e,t)){case 5103:return yr+"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 yr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return yr+e+ab+e+ca+e+e;case 6828:case 4268:return yr+e+ca+e+e;case 6165:return yr+e+ca+"flex-"+e+e;case 5187:return yr+e+vr(e,/(\w+).+(:[^]+)/,yr+"box-$1$2"+ca+"flex-$1$2")+e;case 5443:return yr+e+ca+"flex-item-"+vr(e,/flex-|-self/,"")+e;case 4675:return yr+e+ca+"flex-line-pack"+vr(e,/align-content|flex-|-self/,"")+e;case 5548:return yr+e+ca+vr(e,"shrink","negative")+e;case 5292:return yr+e+ca+vr(e,"basis","preferred-size")+e;case 6060:return yr+"box-"+vr(e,"-grow","")+yr+e+ca+vr(e,"grow","positive")+e;case 4554:return yr+vr(e,/([^-])(transform)/g,"$1"+yr+"$2")+e;case 6187:return vr(vr(vr(e,/(zoom-|grab)/,yr+"$1"),/(image-set)/,yr+"$1"),e,"")+e;case 5495:case 3959:return vr(e,/(image-set\([^]*)/,yr+"$1$`$1");case 4968:return vr(vr(e,/(.+:)(flex-)?(.*)/,yr+"box-pack:$3"+ca+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+yr+e+e;case 4095:case 3583:case 4068:case 2532:return vr(e,/(.+)-inline(.+)/,yr+"$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(Ks(e)-1-t>6)switch(Jo(e,t+1)){case 109:if(Jo(e,t+4)!==45)break;case 102:return vr(e,/(.+:)(.+)-([^]+)/,"$1"+yr+"$2-$3$1"+ab+(Jo(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~KS(e,"stretch")?jj(vr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Jo(e,t+1)!==115)break;case 6444:switch(Jo(e,Ks(e)-3-(~KS(e,"!important")&&10))){case 107:return vr(e,":",":"+yr)+e;case 101:return vr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+yr+(Jo(e,14)===45?"inline-":"")+"box$3$1"+yr+"$2$3$1"+ca+"$2box$3")+e}break;case 5936:switch(Jo(e,t+11)){case 114:return yr+e+ca+vr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return yr+e+ca+vr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return yr+e+ca+vr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return yr+e+ca+e+e}return e}var gB=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case AC:t.return=jj(t.value,t.length);break;case Rj:return Qf([Bh(t,{value:vr(t.value,"@","@"+yr)})],o);case PC:if(t.length)return J_(t.props,function(a){switch(Z_(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Qf([Bh(t,{props:[vr(a,/:(read-\w+)/,":"+ab+"$1")]})],o);case"::placeholder":return Qf([Bh(t,{props:[vr(a,/:(plac\w+)/,":"+yr+"input-$1")]}),Bh(t,{props:[vr(a,/:(plac\w+)/,":"+ab+"$1")]}),Bh(t,{props:[vr(a,/:(plac\w+)/,ca+"input-$1")]})],o)}return""})}},yB=[gB],vB=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(x){var w=x.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=t.stylisPlugins||yB,a={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var w=x.getAttribute("data-emotion").split(" "),b=1;b<w.length;b++)a[w[b]]=!0;l.push(x)});var c,f=[hB,mB];{var u,h=[lB,uB(function(x){u.insert(x)})],y=cB(f.concat(o,h)),v=function(w){return Qf(iB(w),y)};c=function(w,b,k,E){u=k,v(w?w+"{"+b.styles+"}":b.styles),E&&(S.inserted[b.name]=!0)}}var S={key:n,sheet:new q_({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:c};return S.sheet.hydrate(l),S},V1={exports:{}},Sr={};/** @license React v16.13.1
63
+ * react-is.production.min.js
64
+ *
65
+ * Copyright (c) Facebook, Inc. and its affiliates.
66
+ *
67
+ * This source code is licensed under the MIT license found in the
68
+ * LICENSE file in the root directory of this source tree.
69
+ */var gO;function bB(){if(gO)return Sr;gO=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function E($){if(typeof $=="object"&&$!==null){var A=$.$$typeof;switch(A){case t:switch($=$.type,$){case c:case f:case r:case a:case o:case h:return $;default:switch($=$&&$.$$typeof,$){case l:case u:case S:case v:case s:return $;default:return A}}case n:return A}}}function O($){return E($)===f}return Sr.AsyncMode=c,Sr.ConcurrentMode=f,Sr.ContextConsumer=l,Sr.ContextProvider=s,Sr.Element=t,Sr.ForwardRef=u,Sr.Fragment=r,Sr.Lazy=S,Sr.Memo=v,Sr.Portal=n,Sr.Profiler=a,Sr.StrictMode=o,Sr.Suspense=h,Sr.isAsyncMode=function($){return O($)||E($)===c},Sr.isConcurrentMode=O,Sr.isContextConsumer=function($){return E($)===l},Sr.isContextProvider=function($){return E($)===s},Sr.isElement=function($){return typeof $=="object"&&$!==null&&$.$$typeof===t},Sr.isForwardRef=function($){return E($)===u},Sr.isFragment=function($){return E($)===r},Sr.isLazy=function($){return E($)===S},Sr.isMemo=function($){return E($)===v},Sr.isPortal=function($){return E($)===n},Sr.isProfiler=function($){return E($)===a},Sr.isStrictMode=function($){return E($)===o},Sr.isSuspense=function($){return E($)===h},Sr.isValidElementType=function($){return typeof $=="string"||typeof $=="function"||$===r||$===f||$===a||$===o||$===h||$===y||typeof $=="object"&&$!==null&&($.$$typeof===S||$.$$typeof===v||$.$$typeof===s||$.$$typeof===l||$.$$typeof===u||$.$$typeof===w||$.$$typeof===b||$.$$typeof===k||$.$$typeof===x)},Sr.typeOf=E,Sr}var yO;function xB(){return yO||(yO=1,V1.exports=bB()),V1.exports}var H1,vO;function SB(){if(vO)return H1;vO=1;var e=xB(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[e.ForwardRef]=r,a[e.Memo]=o;function s(S){return e.isMemo(S)?o:a[S.$$typeof]||t}var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,y=Object.prototype;function v(S,x,w){if(typeof x!="string"){if(y){var b=h(x);b&&b!==y&&v(S,b,w)}var k=c(x);f&&(k=k.concat(f(x)));for(var E=s(S),O=s(x),$=0;$<k.length;++$){var A=k[$];if(!n[A]&&!(w&&w[A])&&!(O&&O[A])&&!(E&&E[A])){var I=u(x,A);try{l(S,A,I)}catch{}}}}return S}return H1=v,H1}SB();var wB=!0;function Nj(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var jC=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||wB===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},NC=function(t,n,r){jC(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function CB(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var kB={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},EB=/[A-Z]|^ms/g,TB=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ij=function(t){return t.charCodeAt(1)===45},bO=function(t){return t!=null&&typeof t!="boolean"},W1=Dj(function(e){return Ij(e)?e:e.replace(EB,"-$&").toLowerCase()}),xO=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(TB,function(r,o,a){return Qs={name:o,styles:a,next:Qs},o})}return kB[t]!==1&&!Ij(t)&&typeof n=="number"&&n!==0?n+"px":n};function rg(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Qs={name:o.name,styles:o.styles,next:Qs},o.name;var a=n;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)Qs={name:s.name,styles:s.styles,next:Qs},s=s.next;var l=a.styles+";";return l}return MB(e,t,n)}case"function":{if(e!==void 0){var c=Qs,f=n(e);return Qs=c,rg(e,t,f)}break}}var u=n;if(t==null)return u;var h=t[u];return h!==void 0?h:u}function MB(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=rg(e,t,n[o])+";";else for(var a in n){var s=n[a];if(typeof s!="object"){var l=s;t!=null&&t[l]!==void 0?r+=a+"{"+t[l]+"}":bO(l)&&(r+=W1(a)+":"+xO(a,l)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var c=0;c<s.length;c++)bO(s[c])&&(r+=W1(a)+":"+xO(a,s[c])+";");else{var f=rg(e,t,s);switch(a){case"animation":case"animationName":{r+=W1(a)+":"+f+";";break}default:r+=a+"{"+f+"}"}}}return r}var SO=/label:\s*([^\s;{]+)\s*(;|$)/g,Qs;function Rg(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Qs=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,o+=rg(n,t,a);else{var s=a;o+=s[0]}for(var l=1;l<e.length;l++)if(o+=rg(n,t,e[l]),r){var c=a;o+=c[l]}SO.lastIndex=0;for(var f="",u;(u=SO.exec(o))!==null;)f+="-"+u[1];var h=CB(o)+f;return{name:h,styles:o,next:Qs}}var RB=function(t){return t()},Lj=rd.useInsertionEffect?rd.useInsertionEffect:!1,zj=Lj||RB,wO=Lj||C.useLayoutEffect,Fj=C.createContext(typeof HTMLElement<"u"?vB({key:"css"}):null);Fj.Provider;var IC=function(t){return C.forwardRef(function(n,r){var o=C.useContext(Fj);return t(n,o,r)})},kp=C.createContext({}),LC={}.hasOwnProperty,XS="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",OB=function(t,n){var r={};for(var o in n)LC.call(n,o)&&(r[o]=n[o]);return r[XS]=t,r},$B=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return jC(n,r,o),zj(function(){return NC(n,r,o)}),null},PB=IC(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[XS],a=[r],s="";typeof e.className=="string"?s=Nj(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var l=Rg(a,void 0,C.useContext(kp));s+=t.key+"-"+l.name;var c={};for(var f in e)LC.call(e,f)&&f!=="css"&&f!==XS&&(c[f]=e[f]);return c.className=s,n&&(c.ref=n),C.createElement(C.Fragment,null,C.createElement($B,{cache:t,serialized:l,isStringTag:typeof o=="string"}),C.createElement(o,c))}),AB=PB,CO=function(t,n){var r=arguments;if(n==null||!LC.call(n,"css"))return C.createElement.apply(void 0,r);var o=r.length,a=new Array(o);a[0]=AB,a[1]=OB(t,n);for(var s=2;s<o;s++)a[s]=r[s];return C.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(CO||(CO={}));var DB=IC(function(e,t){var n=e.styles,r=Rg([n],void 0,C.useContext(kp)),o=C.useRef();return wO(function(){var a=t.key+"-global",s=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,c=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),c!==null&&(l=!0,c.setAttribute("data-emotion",a),s.hydrate([c])),o.current=[s,l],function(){s.flush()}},[t]),wO(function(){var a=o.current,s=a[0],l=a[1];if(l){a[1]=!1;return}if(r.next!==void 0&&NC(t,r.next,!0),s.tags.length){var c=s.tags[s.tags.length-1].nextElementSibling;s.before=c,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function Kc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Rg(t)}function Ci(){var e=Kc.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var jB=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,NB=Dj(function(e){return jB.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),IB=NB,LB=function(t){return t!=="theme"},kO=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?IB:LB},EO=function(t,n,r){var o;if(n){var a=n.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(s){return t.__emotion_forwardProp(s)&&a(s)}:a}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},zB=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return jC(n,r,o),zj(function(){return NC(n,r,o)}),null},FB=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,a,s;n!==void 0&&(a=n.label,s=n.target);var l=EO(t,n,r),c=l||kO(o),f=!c("as");return function(){var u=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&h.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)h.push.apply(h,u);else{var y=u[0];h.push(y[0]);for(var v=u.length,S=1;S<v;S++)h.push(u[S],y[S])}var x=IC(function(w,b,k){var E=f&&w.as||o,O="",$=[],A=w;if(w.theme==null){A={};for(var I in w)A[I]=w[I];A.theme=C.useContext(kp)}typeof w.className=="string"?O=Nj(b.registered,$,w.className):w.className!=null&&(O=w.className+" ");var j=Rg(h.concat($),b.registered,A);O+=b.key+"-"+j.name,s!==void 0&&(O+=" "+s);var _=f&&l===void 0?kO(E):c,W={};for(var U in w)f&&U==="as"||_(U)&&(W[U]=w[U]);return W.className=O,k&&(W.ref=k),C.createElement(C.Fragment,null,C.createElement(zB,{cache:b,serialized:j,isStringTag:typeof E=="string"}),C.createElement(E,W))});return x.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=o,x.__emotion_styles=h,x.__emotion_forwardProp=l,Object.defineProperty(x,"toString",{value:function(){return"."+s}}),x.withComponent=function(w,b){var k=e(w,ob({},n,b,{shouldForwardProp:EO(x,b,!0)}));return k.apply(void 0,h)},x}},_B=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],ib=FB.bind(null);_B.forEach(function(e){ib[e]=ib(e)});function BB(e){return e==null||Object.keys(e).length===0}function _j(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(BB(o)?n:o):t;return m.jsx(DB,{styles:r})}function Bj(e,t){return ib(e,t)}function UB(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const TO=[];function Fc(e){return TO[0]=e,Rg(TO)}var q1={exports:{}},Ir={};/**
70
+ * @license React
71
+ * react-is.production.js
72
+ *
73
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
74
+ *
75
+ * This source code is licensed under the MIT license found in the
76
+ * LICENSE file in the root directory of this source tree.
77
+ */var MO;function VB(){if(MO)return Ir;MO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),v=Symbol.for("react.client.reference");function S(x){if(typeof x=="object"&&x!==null){var w=x.$$typeof;switch(w){case e:switch(x=x.type,x){case n:case o:case r:case c:case f:case y:return x;default:switch(x=x&&x.$$typeof,x){case s:case l:case h:case u:return x;case a:return x;default:return w}}case t:return w}}}return Ir.ContextConsumer=a,Ir.ContextProvider=s,Ir.Element=e,Ir.ForwardRef=l,Ir.Fragment=n,Ir.Lazy=h,Ir.Memo=u,Ir.Portal=t,Ir.Profiler=o,Ir.StrictMode=r,Ir.Suspense=c,Ir.SuspenseList=f,Ir.isContextConsumer=function(x){return S(x)===a},Ir.isContextProvider=function(x){return S(x)===s},Ir.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},Ir.isForwardRef=function(x){return S(x)===l},Ir.isFragment=function(x){return S(x)===n},Ir.isLazy=function(x){return S(x)===h},Ir.isMemo=function(x){return S(x)===u},Ir.isPortal=function(x){return S(x)===t},Ir.isProfiler=function(x){return S(x)===o},Ir.isStrictMode=function(x){return S(x)===r},Ir.isSuspense=function(x){return S(x)===c},Ir.isSuspenseList=function(x){return S(x)===f},Ir.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===o||x===r||x===c||x===f||typeof x=="object"&&x!==null&&(x.$$typeof===h||x.$$typeof===u||x.$$typeof===s||x.$$typeof===a||x.$$typeof===l||x.$$typeof===v||x.getModuleId!==void 0)},Ir.typeOf=S,Ir}var RO;function HB(){return RO||(RO=1,q1.exports=VB()),q1.exports}var Uj=HB();function Js(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 Vj(e){if(C.isValidElement(e)||Uj.isValidElementType(e)||!Js(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Vj(e[n])}),t}function Wo(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Js(e)&&Js(t)&&Object.keys(t).forEach(o=>{C.isValidElement(t[o])||Uj.isValidElementType(t[o])?r[o]=t[o]:Js(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Js(e[o])?r[o]=Wo(e[o],t[o],n):n.clone?r[o]=Js(t[o])?Vj(t[o]):t[o]:r[o]=t[o]}),r}const WB=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function qB(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=WB(t),s=Object.keys(a);function l(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function c(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-r/100}${n})`}function f(y,v){const S=s.indexOf(v);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(S!==-1&&typeof t[s[S]]=="number"?t[s[S]]:v)-r/100}${n})`}function u(y){return s.indexOf(y)+1<s.length?f(y,s[s.indexOf(y)+1]):l(y)}function h(y){const v=s.indexOf(y);return v===0?l(s[1]):v===s.length-1?c(s[v]):f(y,s[s.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:s,values:a,up:l,down:c,between:f,only:u,not:h,unit:n,...o}}function OO(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{const a=/min-width:\s*([0-9.]+)/;return+(r.match(a)?.[1]||0)-+(o.match(a)?.[1]||0)});return n.length?n.reduce((r,o)=>{const a=t[o];return delete r[o],r[o]=a,r},{...t}):t}function YB(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function GB(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}function KB(e){const t=(a,s)=>a.replace("@media",s?`@container ${s}`:"@container");function n(a,s){a.up=(...l)=>t(e.breakpoints.up(...l),s),a.down=(...l)=>t(e.breakpoints.down(...l),s),a.between=(...l)=>t(e.breakpoints.between(...l),s),a.only=(...l)=>t(e.breakpoints.only(...l),s),a.not=(...l)=>{const c=t(e.breakpoints.not(...l),s);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const r={},o=a=>(n(r,a),r);return n(o),{...e,containerQueries:o}}const QB={borderRadius:4};function zm(e,t){return t?Wo(e,t,{clone:!1}):e}const Kb={xs:0,sm:600,md:900,lg:1200,xl:1536},$O={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Kb[e]}px)`},XB={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Kb[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function ks(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||$O;return t.reduce((s,l,c)=>(s[a.up(a.keys[c])]=n(t[c]),s),{})}if(typeof t=="object"){const a=r.breakpoints||$O;return Object.keys(t).reduce((s,l)=>{if(YB(a.keys,l)){const c=GB(r.containerQueries?r:XB,l);c&&(s[c]=n(t[l],l))}else if(Object.keys(a.values||Kb).includes(l)){const c=a.up(l);s[c]=n(t[l],l)}else{const c=l;s[c]=t[c]}return s},{})}return n(t)}function Hj(e={}){return e.keys?.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{})||{}}function ZS(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function ZB(e,...t){const n=Hj(e),r=[n,...t].reduce((o,a)=>Wo(o,a),{});return ZS(Object.keys(n),r)}function JB(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,a)=>{a<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function Y1({values:e,breakpoints:t,base:n}){const r=n||JB(e,t),o=Object.keys(r);if(o.length===0)return e;let a;return o.reduce((s,l,c)=>(Array.isArray(e)?(s[l]=e[c]!=null?e[c]:e[a],a=c):typeof e=="object"?(s[l]=e[l]!=null?e[l]:e[a],a=l):s[l]=e,s),{})}function nt(e){if(typeof e!="string")throw new Error(Vl(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Xs(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function sb(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Xs(e,n)||r,t&&(o=t(o,r,e)),o}function ko(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=s=>{if(s[t]==null)return null;const l=s[t],c=s.theme,f=Xs(c,r)||{};return ks(s,l,h=>{let y=sb(f,o,h);return h===y&&typeof h=="string"&&(y=sb(f,o,`${t}${h==="default"?"":nt(h)}`,h)),n===!1?y:{[n]:y}})};return a.propTypes={},a.filterProps=[t],a}function eU(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const tU={m:"margin",p:"padding"},nU={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},PO={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},rU=eU(e=>{if(e.length>2)if(PO[e])e=PO[e];else return[e];const[t,n]=e.split(""),r=tU[t],o=nU[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),zC=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],FC=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...zC,...FC];function Og(e,t,n,r){const o=Xs(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?o.startsWith("var(")&&a===0?0:o.startsWith("var(")&&a===1?o:`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const s=Math.abs(a),l=o[s];return a>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof o=="function"?o:()=>{}}function Qb(e){return Og(e,"spacing",8)}function od(e,t){return typeof t=="string"||t==null?t:e(t)}function oU(e,t){return n=>e.reduce((r,o)=>(r[o]=od(t,n),r),{})}function aU(e,t,n,r){if(!t.includes(n))return null;const o=rU(n),a=oU(o,r),s=e[n];return ks(e,s,a)}function Wj(e,t){const n=Qb(e.theme);return Object.keys(e).map(r=>aU(e,t,r,n)).reduce(zm,{})}function uo(e){return Wj(e,zC)}uo.propTypes={};uo.filterProps=zC;function fo(e){return Wj(e,FC)}fo.propTypes={};fo.filterProps=FC;function _C(e=8,t=Qb({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(a=>{const s=t(a);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Xb(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?zm(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Hi(e){return typeof e!="number"?e:`${e}px solid`}function rs(e,t){return ko({prop:e,themeKey:"borders",transform:t})}const iU=rs("border",Hi),sU=rs("borderTop",Hi),lU=rs("borderRight",Hi),cU=rs("borderBottom",Hi),uU=rs("borderLeft",Hi),dU=rs("borderColor"),fU=rs("borderTopColor"),pU=rs("borderRightColor"),hU=rs("borderBottomColor"),mU=rs("borderLeftColor"),gU=rs("outline",Hi),yU=rs("outlineColor"),Zb=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Og(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:od(t,r)});return ks(e,e.borderRadius,n)}return null};Zb.propTypes={};Zb.filterProps=["borderRadius"];Xb(iU,sU,lU,cU,uU,dU,fU,pU,hU,mU,Zb,gU,yU);const Jb=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Og(e.theme,"spacing",8),n=r=>({gap:od(t,r)});return ks(e,e.gap,n)}return null};Jb.propTypes={};Jb.filterProps=["gap"];const e0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Og(e.theme,"spacing",8),n=r=>({columnGap:od(t,r)});return ks(e,e.columnGap,n)}return null};e0.propTypes={};e0.filterProps=["columnGap"];const t0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Og(e.theme,"spacing",8),n=r=>({rowGap:od(t,r)});return ks(e,e.rowGap,n)}return null};t0.propTypes={};t0.filterProps=["rowGap"];const vU=ko({prop:"gridColumn"}),bU=ko({prop:"gridRow"}),xU=ko({prop:"gridAutoFlow"}),SU=ko({prop:"gridAutoColumns"}),wU=ko({prop:"gridAutoRows"}),CU=ko({prop:"gridTemplateColumns"}),kU=ko({prop:"gridTemplateRows"}),EU=ko({prop:"gridTemplateAreas"}),TU=ko({prop:"gridArea"});Xb(Jb,e0,t0,vU,bU,xU,SU,wU,CU,kU,EU,TU);function Xf(e,t){return t==="grey"?t:e}const MU=ko({prop:"color",themeKey:"palette",transform:Xf}),RU=ko({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Xf}),OU=ko({prop:"backgroundColor",themeKey:"palette",transform:Xf});Xb(MU,RU,OU);function mi(e){return e<=1&&e!==0?`${e*100}%`:e}const $U=ko({prop:"width",transform:mi}),BC=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||Kb[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:mi(n)}};return ks(e,e.maxWidth,t)}return null};BC.filterProps=["maxWidth"];const PU=ko({prop:"minWidth",transform:mi}),AU=ko({prop:"height",transform:mi}),DU=ko({prop:"maxHeight",transform:mi}),jU=ko({prop:"minHeight",transform:mi});ko({prop:"size",cssProperty:"width",transform:mi});ko({prop:"size",cssProperty:"height",transform:mi});const NU=ko({prop:"boxSizing"});Xb($U,BC,PU,AU,DU,jU,NU);const $g={border:{themeKey:"borders",transform:Hi},borderTop:{themeKey:"borders",transform:Hi},borderRight:{themeKey:"borders",transform:Hi},borderBottom:{themeKey:"borders",transform:Hi},borderLeft:{themeKey:"borders",transform:Hi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Hi},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Zb},color:{themeKey:"palette",transform:Xf},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Xf},backgroundColor:{themeKey:"palette",transform:Xf},p:{style:fo},pt:{style:fo},pr:{style:fo},pb:{style:fo},pl:{style:fo},px:{style:fo},py:{style:fo},padding:{style:fo},paddingTop:{style:fo},paddingRight:{style:fo},paddingBottom:{style:fo},paddingLeft:{style:fo},paddingX:{style:fo},paddingY:{style:fo},paddingInline:{style:fo},paddingInlineStart:{style:fo},paddingInlineEnd:{style:fo},paddingBlock:{style:fo},paddingBlockStart:{style:fo},paddingBlockEnd:{style:fo},m:{style:uo},mt:{style:uo},mr:{style:uo},mb:{style:uo},ml:{style:uo},mx:{style:uo},my:{style:uo},margin:{style:uo},marginTop:{style:uo},marginRight:{style:uo},marginBottom:{style:uo},marginLeft:{style:uo},marginX:{style:uo},marginY:{style:uo},marginInline:{style:uo},marginInlineStart:{style:uo},marginInlineEnd:{style:uo},marginBlock:{style:uo},marginBlockStart:{style:uo},marginBlockEnd:{style:uo},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:Jb},rowGap:{style:t0},columnGap:{style:e0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:mi},maxWidth:{style:BC},minWidth:{transform:mi},height:{transform:mi},maxHeight:{transform:mi},minHeight:{transform:mi},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function IU(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function LU(e,t){return typeof e=="function"?e(t):e}function zU(){function e(n,r,o,a){const s={[n]:r,theme:o},l=a[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:f,transform:u,style:h}=l;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const y=Xs(o,f)||{};return h?h(s):ks(s,r,S=>{let x=sb(y,u,S);return S===x&&typeof S=="string"&&(x=sb(y,u,`${n}${S==="default"?"":nt(S)}`,S)),c===!1?x:{[c]:x}})}function t(n){const{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;const s=o.unstable_sxConfig??$g;function l(c){let f=c;if(typeof c=="function")f=c(o);else if(typeof c!="object")return c;if(!f)return null;const u=Hj(o.breakpoints),h=Object.keys(u);let y=u;return Object.keys(f).forEach(v=>{const S=LU(f[v],o);if(S!=null)if(typeof S=="object")if(s[v])y=zm(y,e(v,S,o,s));else{const x=ks({theme:o},S,w=>({[v]:w}));IU(x,S)?y[v]=t({sx:S,theme:o,nested:!0}):y=zm(y,x)}else y=zm(y,e(v,S,o,s))}),!a&&o.modularCssLayers?{"@layer sx":OO(o,ZS(h,y))}:OO(o,ZS(h,y))}return Array.isArray(r)?r.map(l):l(r)}return t}const Vc=zU();Vc.filterProps=["sx"];function FU(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Ep(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...s}=e,l=qB(n),c=_C(o);let f=Wo({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...QB,...a}},s);return f=KB(f),f.applyStyles=FU,f=t.reduce((u,h)=>Wo(u,h),f),f.unstable_sxConfig={...$g,...s?.unstable_sxConfig},f.unstable_sx=function(h){return Vc({sx:h,theme:this})},f}function _U(e){return Object.keys(e).length===0}function n0(e=null){const t=C.useContext(kp);return!t||_U(t)?e:t}const BU=Ep();function Tp(e=BU){return n0(e)}function G1(e){const t=Fc(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function UC({styles:e,themeId:t,defaultTheme:n={}}){const r=Tp(n),o=t&&r[t]||r;let a=typeof e=="function"?e(o):e;return o.modularCssLayers&&(Array.isArray(a)?a=a.map(s=>G1(typeof s=="function"?s(o):s)):a=G1(a)),m.jsx(_j,{styles:a})}const UU=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??$g;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function r0(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=UU(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...s)=>{const l=t(...s);return Js(l)?{...r,...l}:r}:a={...r,...t},{...o,sx:a}}const AO=e=>e,VU=()=>{let e=AO;return{configure(t){e=t},generate(t){return e(t)},reset(){e=AO}}},VC=VU();function qj(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=qj(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Nt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=qj(e))&&(r&&(r+=" "),r+=t);return r}function HC(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=Bj("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Vc);return C.forwardRef(function(c,f){const u=Tp(n),{className:h,component:y="div",...v}=r0(c);return m.jsx(a,{as:y,ref:f,className:Nt(h,o?o(r):r),theme:t&&u[t]||u,...v})})}const HU={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 dn(e,t,n="Mui"){const r=HU[t];return r?`${n}-${r}`:`${VC.generate(e)}-${t}`}function pn(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=dn(e,o,n)}),r}const WU=pn("MuiBox",["root"]),Yj=HC({defaultClassName:WU.root,generateClassName:VC.generate});function Gj(e){const{variants:t,...n}=e,r={variants:t,style:Fc(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Fc(o.style))}),r}const qU=Ep();function _v(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Wu(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function YU(e){return e?(t,n)=>n[e]:null}function GU(e,t,n){e.theme=QU(e.theme)?n:e.theme[t]||e.theme}function Bv(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>Bv(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?Wu(r.style,n):r.style;else{const{variants:a,...s}=r;o=n?Wu(Fc(s),n):s}return Kj(e,r.variants,[o],n)}return r?.isProcessed?n?Wu(Fc(r.style),n):r.style:n?Wu(Fc(r),n):r}function Kj(e,t,n=[],r=void 0){let o;e:for(let a=0;a<t.length;a+=1){const s=t[a];if(typeof s.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!s.props(o))continue}else for(const l in s.props)if(e[l]!==s.props[l]&&e.ownerState?.[l]!==s.props[l])continue e;typeof s.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?Wu(Fc(s.style(o)),r):s.style(o))):n.push(r?Wu(Fc(s.style),r):s.style)}return n}function Qj(e={}){const{themeId:t,defaultTheme:n=qU,rootShouldForwardProp:r=_v,slotShouldForwardProp:o=_v}=e;function a(l){GU(l,t,n)}return(l,c={})=>{UB(l,A=>A.filter(I=>I!==Vc));const{name:f,slot:u,skipVariantsResolver:h,skipSx:y,overridesResolver:v=YU(ZU(u)),...S}=c,x=f&&f.startsWith("Mui")||u?"components":"custom",w=h!==void 0?h:u&&u!=="Root"&&u!=="root"||!1,b=y||!1;let k=_v;u==="Root"||u==="root"?k=r:u?k=o:XU(l)&&(k=void 0);const E=Bj(l,{shouldForwardProp:k,label:KU(),...S}),O=A=>{if(A.__emotion_real===A)return A;if(typeof A=="function")return function(j){return Bv(j,A,j.theme.modularCssLayers?x:void 0)};if(Js(A)){const I=Gj(A);return function(_){return I.variants?Bv(_,I,_.theme.modularCssLayers?x:void 0):_.theme.modularCssLayers?Wu(I.style,x):I.style}}return A},$=(...A)=>{const I=[],j=A.map(O),_=[];if(I.push(a),f&&v&&_.push(function(L){const H=L.theme.components?.[f]?.styleOverrides;if(!H)return null;const D={};for(const K in H)D[K]=Bv(L,H[K],L.theme.modularCssLayers?"theme":void 0);return v(L,D)}),f&&!w&&_.push(function(L){const H=L.theme?.components?.[f]?.variants;return H?Kj(L,H,[],L.theme.modularCssLayers?"theme":void 0):null}),b||_.push(Vc),Array.isArray(j[0])){const T=j.shift(),L=new Array(I.length).fill(""),F=new Array(_.length).fill("");let H;H=[...L,...T,...F],H.raw=[...L,...T.raw,...F],I.unshift(H)}const W=[...I,...j,..._],U=E(...W);return l.muiName&&(U.muiName=l.muiName),U};return E.withConfig&&($.withConfig=E.withConfig),$}}function KU(e,t){return void 0}function QU(e){for(const t in e)return!1;return!0}function XU(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ZU(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const WC=Qj();function og(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const a=o;if(a==="components"||a==="slots")r[a]={...e[a],...r[a]};else if(a==="componentsProps"||a==="slotProps"){const s=e[a],l=t[a];if(!l)r[a]=s||{};else if(!s)r[a]=l;else{r[a]={...l};for(const c in s)if(Object.prototype.hasOwnProperty.call(s,c)){const f=c;r[a][f]=og(s[f],l[f],n)}}}else a==="className"&&n&&t.className?r.className=Nt(e?.className,t?.className):a==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[a]===void 0&&(r[a]=e[a])}return r}function Xj(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:og(t.components[n].defaultProps,r)}function qC({props:e,name:t,defaultTheme:n,themeId:r}){let o=Tp(n);return r&&(o=o[r]||o),Xj({theme:o,name:t,props:e})}const Ea=typeof window<"u"?C.useLayoutEffect:C.useEffect;function JU(e,t,n,r,o){const[a,s]=C.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Ea(()=>{if(!n)return;const l=n(e),c=()=>{s(l.matches)};return c(),l.addEventListener("change",c),()=>{l.removeEventListener("change",c)}},[e,n]),a}const e6={...rd},Zj=e6.useSyncExternalStore;function t6(e,t,n,r,o){const a=C.useCallback(()=>t,[t]),s=C.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return a},[a,e,r,o,n]),[l,c]=C.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const u=n(e);return[()=>u.matches,h=>(u.addEventListener("change",h),()=>{u.removeEventListener("change",h)})]},[a,n,e]);return Zj(c,l,s)}function Jj(e={}){const{themeId:t}=e;return function(r,o={}){let a=n0();a&&t&&(a=a[t]||a);const s=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:c=s?window.matchMedia:null,ssrMatchMedia:f=null,noSsr:u=!1}=Xj({name:"MuiUseMediaQuery",props:o,theme:a});let h=typeof r=="function"?r(a):r;return h=h.replace(/^@media( ?)/m,""),h.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
78
+ `)),(Zj!==void 0?t6:JU)(h,l,c,f,u)}}Jj();function zf(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function YC(e,t=0,n=1){return zf(e,t,n)}function n6(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Hc(e){if(e.type)return e;if(e.charAt(0)==="#")return Hc(n6(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Vl(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(Vl(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}const r6=e=>{const t=Hc(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Mm=(e,t)=>{try{return r6(e)}catch{return e}};function o0(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,a)=>a<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function eN(e){e=Hc(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),s=(f,u=(f+n/30)%12)=>o-a*Math.max(Math.min(u-3,9-u,1),-1);let l="rgb";const c=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),o0({type:l,values:c})}function JS(e){e=Hc(e);let t=e.type==="hsl"||e.type==="hsla"?Hc(eN(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function o6(e,t){const n=JS(e),r=JS(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Es(e,t){return e=Hc(e),t=YC(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,o0(e)}function Ou(e,t,n){try{return Es(e,t)}catch{return e}}function a0(e,t){if(e=Hc(e),t=YC(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return o0(e)}function Tr(e,t,n){try{return a0(e,t)}catch{return e}}function i0(e,t){if(e=Hc(e),t=YC(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return o0(e)}function Mr(e,t,n){try{return i0(e,t)}catch{return e}}function ew(e,t=.15){return JS(e)>.5?a0(e,t):i0(e,t)}function tv(e,t,n){try{return ew(e,t)}catch{return e}}const tN=C.createContext(null);function GC(){return C.useContext(tN)}const a6=typeof Symbol=="function"&&Symbol.for,i6=a6?Symbol.for("mui.nested"):"__THEME_NESTED__";function s6(e,t){return typeof t=="function"?t(e):{...e,...t}}function l6(e){const{children:t,theme:n}=e,r=GC(),o=C.useMemo(()=>{const a=r===null?{...n}:s6(r,n);return a!=null&&(a[i6]=r!==null),a},[n,r]);return m.jsx(tN.Provider,{value:o,children:t})}const nN=C.createContext();function c6({value:e,...t}){return m.jsx(nN.Provider,{value:e??!0,...t})}const Pg=()=>C.useContext(nN)??!1,rN=C.createContext(void 0);function u6({value:e,children:t}){return m.jsx(rN.Provider,{value:e,children:t})}function d6(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?og(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?og(o,r,t.components.mergeClassNameAndStyle):r}function f6({props:e,name:t}){const n=C.useContext(rN);return d6({props:e,name:t,theme:{components:n}})}let DO=0;function p6(e){const[t,n]=C.useState(e),r=e||t;return C.useEffect(()=>{t==null&&(DO+=1,n(`mui-${DO}`))},[t]),r}const h6={...rd},jO=h6.useId;function Qc(e){if(jO!==void 0){const t=jO();return e??t}return p6(e)}function m6(e){const t=n0(),n=Qc()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!r||t!==null?o="":typeof r=="string"?o=r.replace(/mui(?!\.)/g,o):o=`@layer ${o};`,Ea(()=>{const a=document.querySelector("head");if(!a)return;const s=a.firstChild;if(o){if(s&&s.hasAttribute?.("data-mui-layer-order")&&s.getAttribute("data-mui-layer-order")===n)return;const l=document.createElement("style");l.setAttribute("data-mui-layer-order",n),l.textContent=o,a.prepend(l)}else a.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[o,n]),o?m.jsx(UC,{styles:o}):null}const NO={};function IO(e,t,n,r=!1){return C.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const a=n(o),s=e?{...t,[e]:a}:a;return r?()=>s:s}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function oN(e){const{children:t,theme:n,themeId:r}=e,o=n0(NO),a=GC()||NO,s=IO(r,o,n),l=IO(r,a,n,!0),c=(r?s[r]:s).direction==="rtl",f=m6(s);return m.jsx(l6,{theme:l,children:m.jsx(kp.Provider,{value:s,children:m.jsx(c6,{value:c,children:m.jsxs(u6,{value:r?s[r].components:s.components,children:[f,t]})})})})}const LO={theme:void 0};function aN(e){let t,n;return function(o){let a=t;return(a===void 0||o.theme!==n)&&(LO.theme=o.theme,a=Gj(e(LO)),t=a,n=o.theme),a}}const KC="mode",QC="color-scheme",g6="data-color-scheme";function y6(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=KC,colorSchemeStorageKey:a=QC,attribute:s=g6,colorSchemeNode:l="document.documentElement",nonce:c}=e||{};let f="",u=s;if(s==="class"&&(u=".%s"),s==="data"&&(u="[data-%s]"),u.startsWith(".")){const y=u.substring(1);f+=`${l}.classList.remove('${y}'.replace('%s', light), '${y}'.replace('%s', dark));
79
+ ${l}.classList.add('${y}'.replace('%s', colorScheme));`}const h=u.match(/\[([^[\]]+)\]/);if(h){const[y,v]=h[1].split("=");v||(f+=`${l}.removeAttribute('${y}'.replace('%s', light));
80
+ ${l}.removeAttribute('${y}'.replace('%s', dark));`),f+=`
81
+ ${l}.setAttribute('${y}'.replace('%s', colorScheme), ${v?`${v}.replace('%s', colorScheme)`:'""'});`}else f+=`${l}.setAttribute('${u}', colorScheme);`;return m.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?c:"",dangerouslySetInnerHTML:{__html:`(function() {
82
+ try {
83
+ let colorScheme = '';
84
+ const mode = localStorage.getItem('${o}') || '${t}';
85
+ const dark = localStorage.getItem('${a}-dark') || '${r}';
86
+ const light = localStorage.getItem('${a}-light') || '${n}';
87
+ if (mode === 'system') {
88
+ // handle system mode
89
+ const mql = window.matchMedia('(prefers-color-scheme: dark)');
90
+ if (mql.matches) {
91
+ colorScheme = dark
92
+ } else {
93
+ colorScheme = light
94
+ }
95
+ }
96
+ if (mode === 'light') {
97
+ colorScheme = light;
98
+ }
99
+ if (mode === 'dark') {
100
+ colorScheme = dark;
101
+ }
102
+ if (colorScheme) {
103
+ ${f}
104
+ }
105
+ } catch(e){}})();`}},"mui-color-scheme-init")}function v6(){}const b6=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(n){if(typeof window>"u")return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return v6;const r=o=>{const a=o.newValue;o.key===e&&n(a)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function K1(){}function zO(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function iN(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function x6(e){return iN(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function S6(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:a=KC,colorSchemeStorageKey:s=QC,storageWindow:l=typeof window>"u"?void 0:window,storageManager:c=b6,noSsr:f=!1}=e,u=o.join(","),h=o.length>1,y=C.useMemo(()=>c?.({key:a,storageWindow:l}),[c,a,l]),v=C.useMemo(()=>c?.({key:`${s}-light`,storageWindow:l}),[c,s,l]),S=C.useMemo(()=>c?.({key:`${s}-dark`,storageWindow:l}),[c,s,l]),[x,w]=C.useState(()=>{const j=y?.get(t)||t,_=v?.get(n)||n,W=S?.get(r)||r;return{mode:j,systemMode:zO(j),lightColorScheme:_,darkColorScheme:W}}),[b,k]=C.useState(f||!h);C.useEffect(()=>{k(!0)},[]);const E=x6(x),O=C.useCallback(j=>{w(_=>{if(j===_.mode)return _;const W=j??t;return y?.set(W),{..._,mode:W,systemMode:zO(W)}})},[y,t]),$=C.useCallback(j=>{j?typeof j=="string"?j&&!u.includes(j)?console.error(`\`${j}\` does not exist in \`theme.colorSchemes\`.`):w(_=>{const W={..._};return iN(_,U=>{U==="light"&&(v?.set(j),W.lightColorScheme=j),U==="dark"&&(S?.set(j),W.darkColorScheme=j)}),W}):w(_=>{const W={..._},U=j.light===null?n:j.light,T=j.dark===null?r:j.dark;return U&&(u.includes(U)?(W.lightColorScheme=U,v?.set(U)):console.error(`\`${U}\` does not exist in \`theme.colorSchemes\`.`)),T&&(u.includes(T)?(W.darkColorScheme=T,S?.set(T)):console.error(`\`${T}\` does not exist in \`theme.colorSchemes\`.`)),W}):w(_=>(v?.set(n),S?.set(r),{..._,lightColorScheme:n,darkColorScheme:r}))},[u,v,S,n,r]),A=C.useCallback(j=>{x.mode==="system"&&w(_=>{const W=j?.matches?"dark":"light";return _.systemMode===W?_:{..._,systemMode:W}})},[x.mode]),I=C.useRef(A);return I.current=A,C.useEffect(()=>{if(typeof window.matchMedia!="function"||!h)return;const j=(...W)=>I.current(...W),_=window.matchMedia("(prefers-color-scheme: dark)");return _.addListener(j),j(_),()=>{_.removeListener(j)}},[h]),C.useEffect(()=>{if(h){const j=y?.subscribe(U=>{(!U||["light","dark","system"].includes(U))&&O(U||t)})||K1,_=v?.subscribe(U=>{(!U||u.match(U))&&$({light:U})})||K1,W=S?.subscribe(U=>{(!U||u.match(U))&&$({dark:U})})||K1;return()=>{j(),_(),W()}}},[$,O,u,t,l,h,y,v,S]),{...x,mode:b?x.mode:void 0,systemMode:b?x.systemMode:void 0,colorScheme:b?E:void 0,setMode:O,setColorScheme:$}}const w6="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function C6(e){const{themeId:t,theme:n={},modeStorageKey:r=KC,colorSchemeStorageKey:o=QC,disableTransitionOnChange:a=!1,defaultColorScheme:s,resolveTheme:l}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},f=C.createContext(void 0),u=()=>C.useContext(f)||c,h={},y={};function v(b){const{children:k,theme:E,modeStorageKey:O=r,colorSchemeStorageKey:$=o,disableTransitionOnChange:A=a,storageManager:I,storageWindow:j=typeof window>"u"?void 0:window,documentNode:_=typeof document>"u"?void 0:document,colorSchemeNode:W=typeof document>"u"?void 0:document.documentElement,disableNestedContext:U=!1,disableStyleSheetGeneration:T=!1,defaultMode:L="system",forceThemeRerender:F=!1,noSsr:H}=b,D=C.useRef(!1),K=GC(),Q=C.useContext(f),ee=!!Q&&!U,X=C.useMemo(()=>E||(typeof n=="function"?n():n),[E]),te=X[t],ae=te||X,{colorSchemes:ue=h,components:he=y,cssVarPrefix:ie}=ae,le=Object.keys(ue).filter(Je=>!!ue[Je]).join(","),se=C.useMemo(()=>le.split(","),[le]),pe=typeof s=="string"?s:s.light,ne=typeof s=="string"?s:s.dark,me=ue[pe]&&ue[ne]?L:ue[ae.defaultColorScheme]?.palette?.mode||ae.palette?.mode,{mode:xe,setMode:Se,systemMode:ce,lightColorScheme:Ee,darkColorScheme:Ge,colorScheme:Te,setColorScheme:je}=S6({supportedColorSchemes:se,defaultLightColorScheme:pe,defaultDarkColorScheme:ne,modeStorageKey:O,colorSchemeStorageKey:$,defaultMode:me,storageManager:I,storageWindow:j,noSsr:H});let oe=xe,lt=Te;ee&&(oe=Q.mode,lt=Q.colorScheme);let Ie=lt||ae.defaultColorScheme;ae.vars&&!F&&(Ie=ae.defaultColorScheme);const et=C.useMemo(()=>{const Je=ae.generateThemeVars?.()||ae.vars,ct={...ae,components:he,colorSchemes:ue,cssVarPrefix:ie,vars:Je};if(typeof ct.generateSpacing=="function"&&(ct.spacing=ct.generateSpacing()),Ie){const Le=ue[Ie];Le&&typeof Le=="object"&&Object.keys(Le).forEach(ge=>{Le[ge]&&typeof Le[ge]=="object"?ct[ge]={...ct[ge],...Le[ge]}:ct[ge]=Le[ge]})}return l?l(ct):ct},[ae,Ie,he,ue,ie]),mt=ae.colorSchemeSelector;Ea(()=>{if(lt&&W&&mt&&mt!=="media"){const Je=mt;let ct=mt;if(Je==="class"&&(ct=".%s"),Je==="data"&&(ct="[data-%s]"),Je?.startsWith("data-")&&!Je.includes("%s")&&(ct=`[${Je}="%s"]`),ct.startsWith("."))W.classList.remove(...se.map(Le=>ct.substring(1).replace("%s",Le))),W.classList.add(ct.substring(1).replace("%s",lt));else{const Le=ct.replace("%s",lt).match(/\[([^\]]+)\]/);if(Le){const[ge,qe]=Le[1].split("=");qe||se.forEach(De=>{W.removeAttribute(ge.replace(lt,De))}),W.setAttribute(ge,qe?qe.replace(/"|'/g,""):"")}else W.setAttribute(ct,lt)}}},[lt,mt,W,se]),C.useEffect(()=>{let Je;if(A&&D.current&&_){const ct=_.createElement("style");ct.appendChild(_.createTextNode(w6)),_.head.appendChild(ct),window.getComputedStyle(_.body),Je=setTimeout(()=>{_.head.removeChild(ct)},1)}return()=>{clearTimeout(Je)}},[lt,A,_]),C.useEffect(()=>(D.current=!0,()=>{D.current=!1}),[]);const Wt=C.useMemo(()=>({allColorSchemes:se,colorScheme:lt,darkColorScheme:Ge,lightColorScheme:Ee,mode:oe,setColorScheme:je,setMode:Se,systemMode:ce}),[se,lt,Ge,Ee,oe,je,Se,ce,et.colorSchemeSelector]);let zt=!0;(T||ae.cssVariables===!1||ee&&K?.cssVarPrefix===ie)&&(zt=!1);const tt=m.jsxs(C.Fragment,{children:[m.jsx(oN,{themeId:te?t:void 0,theme:et,children:k}),zt&&m.jsx(_j,{styles:et.generateStyleSheets?.()||[]})]});return ee?tt:m.jsx(f.Provider,{value:Wt,children:tt})}const S=typeof s=="string"?s:s.light,x=typeof s=="string"?s:s.dark;return{CssVarsProvider:v,useColorScheme:u,getInitColorSchemeScript:b=>y6({colorSchemeStorageKey:o,defaultLightColorScheme:S,defaultDarkColorScheme:x,modeStorageKey:r,...b})}}function sN(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const FO=(e,t,n,r=[])=>{let o=e;t.forEach((a,s)=>{s===t.length-1?Array.isArray(o)?o[Number(a)]=n:o&&typeof o=="object"&&(o[a]=n):o&&typeof o=="object"&&(o[a]||(o[a]=r.includes(a)?[]:{}),o=o[a])})},k6=(e,t,n)=>{function r(o,a=[],s=[]){Object.entries(o).forEach(([l,c])=>{(!n||n&&!n([...a,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?r(c,[...a,l],Array.isArray(c)?[...s,l]:s):t([...a,l],c,s))})}r(e)},E6=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Q1(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},s={};return k6(e,(l,c,f)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(l,c))){const u=`--${n?`${n}-`:""}${l.join("-")}`,h=E6(l,c);Object.assign(o,{[u]:h}),FO(a,l,`var(${u})`,f),FO(s,l,`var(${u}, ${h})`,f)}},l=>l[0]==="vars"),{css:o,vars:a,varsWithDefaults:s}}function T6(e,t={}){const{getSelector:n=b,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:a}=t,{colorSchemes:s={},components:l,defaultColorScheme:c="light",...f}=e,{vars:u,css:h,varsWithDefaults:y}=Q1(f,t);let v=y;const S={},{[c]:x,...w}=s;if(Object.entries(w||{}).forEach(([O,$])=>{const{vars:A,css:I,varsWithDefaults:j}=Q1($,t);v=Wo(v,j),S[O]={css:I,vars:A}}),x){const{css:O,vars:$,varsWithDefaults:A}=Q1(x,t);v=Wo(v,A),S[c]={css:O,vars:$}}function b(O,$){let A=o;if(o==="class"&&(A=".%s"),o==="data"&&(A="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(A=`[${o}="%s"]`),O){if(A==="media")return e.defaultColorScheme===O?":root":{[`@media (prefers-color-scheme: ${s[O]?.palette?.mode||O})`]:{":root":$}};if(A)return e.defaultColorScheme===O?`:root, ${A.replace("%s",String(O))}`:A.replace("%s",String(O))}return":root"}return{vars:v,generateThemeVars:()=>{let O={...u};return Object.entries(S).forEach(([,{vars:$}])=>{O=Wo(O,$)}),O},generateStyleSheets:()=>{const O=[],$=e.defaultColorScheme||"light";function A(_,W){Object.keys(W).length&&O.push(typeof _=="string"?{[_]:{...W}}:_)}A(n(void 0,{...h}),h);const{[$]:I,...j}=S;if(I){const{css:_}=I,W=s[$]?.palette?.mode,U=!r&&W?{colorScheme:W,..._}:{..._};A(n($,{...U}),U)}return Object.entries(j).forEach(([_,{css:W}])=>{const U=s[_]?.palette?.mode,T=!r&&U?{colorScheme:U,...W}:{...W};A(n(_,{...T}),T)}),a&&O.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),O}}}function M6(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function fn(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let s="",l=!0;for(let c=0;c<a.length;c+=1){const f=a[c];f&&(s+=(l===!0?"":" ")+t(f),l=!1,n&&n[f]&&(s+=" "+n[f]))}r[o]=s}return r}const R6=Ep(),O6=WC("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${nt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),$6=e=>qC({props:e,name:"MuiContainer",defaultTheme:R6}),P6=(e,t)=>{const n=c=>dn(t,c),{classes:r,fixed:o,disableGutters:a,maxWidth:s}=e,l={root:["root",s&&`maxWidth${nt(String(s))}`,o&&"fixed",a&&"disableGutters"]};return fn(l,n,r)};function A6(e={}){const{createStyledComponent:t=O6,useThemeProps:n=$6,componentName:r="MuiContainer"}=e,o=t(({theme:s,ownerState:l})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!l.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}}),({theme:s,ownerState:l})=>l.fixed&&Object.keys(s.breakpoints.values).reduce((c,f)=>{const u=f,h=s.breakpoints.values[u];return h!==0&&(c[s.breakpoints.up(u)]={maxWidth:`${h}${s.breakpoints.unit}`}),c},{}),({theme:s,ownerState:l})=>({...l.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},...l.maxWidth&&l.maxWidth!=="xs"&&{[s.breakpoints.up(l.maxWidth)]:{maxWidth:`${s.breakpoints.values[l.maxWidth]}${s.breakpoints.unit}`}}}));return C.forwardRef(function(l,c){const f=n(l),{className:u,component:h="div",disableGutters:y=!1,fixed:v=!1,maxWidth:S="lg",classes:x,...w}=f,b={...f,component:h,disableGutters:y,fixed:v,maxWidth:S},k=P6(b,r);return m.jsx(o,{as:h,ownerState:b,className:Nt(k.root,u),ref:c,...w})})}function Uv(e,t){return C.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const D6=(e,t)=>e.filter(n=>t.includes(n)),Mp=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((o,a)=>{n((s,l)=>{a<=e.keys.length-1&&(a===0?Object.assign(s,l):s[e.up(e.keys[a])]=l)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:D6(e.keys,Object.keys(t))).forEach(a=>{if(e.keys.includes(a)){const s=t[a];s!==void 0&&n((l,c)=>{r===a?Object.assign(l,c):l[e.up(a)]=c},s)}}):(typeof t=="number"||typeof t=="string")&&n((o,a)=>{Object.assign(o,a)},t)};function lb(e){return`--Grid-${e}Spacing`}function s0(e){return`--Grid-parent-${e}Spacing`}const _O="--Grid-columns",Zf="--Grid-parent-columns",j6=({theme:e,ownerState:t})=>{const n={};return Mp(e.breakpoints,t.size,(r,o)=>{let a={};o==="grow"&&(a={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(a={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${Zf}) - (var(${Zf}) - ${o}) * (var(${s0("column")}) / var(${Zf})))`}),r(n,a)}),n},N6=({theme:e,ownerState:t})=>{const n={};return Mp(e.breakpoints,t.offset,(r,o)=>{let a={};o==="auto"&&(a={marginLeft:"auto"}),typeof o=="number"&&(a={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${Zf}) + var(${s0("column")}) * ${o} / var(${Zf}))`}),r(n,a)}),n},I6=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[_O]:12};return Mp(e.breakpoints,t.columns,(r,o)=>{const a=o??12;r(n,{[_O]:a,"> *":{[Zf]:a}})}),n},L6=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Mp(e.breakpoints,t.rowSpacing,(r,o)=>{const a=typeof o=="string"?o:e.spacing?.(o);r(n,{[lb("row")]:a,"> *":{[s0("row")]:a}})}),n},z6=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Mp(e.breakpoints,t.columnSpacing,(r,o)=>{const a=typeof o=="string"?o:e.spacing?.(o);r(n,{[lb("column")]:a,"> *":{[s0("column")]:a}})}),n},F6=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Mp(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},_6=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${lb("row")}) var(${lb("column")})`}}),B6=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},U6=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([o,a])=>{n(a)&&r.push(`spacing-${o}-${String(a)}`)}),r}return[]},V6=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`];function H6(e,t){e.item!==void 0&&delete e.item,e.zeroMinWidth!==void 0&&delete e.zeroMinWidth,t.keys.forEach(n=>{e[n]!==void 0&&delete e[n]})}const W6=Ep(),q6=WC("div",{name:"MuiGrid",slot:"Root"});function Y6(e){return qC({props:e,name:"MuiGrid",defaultTheme:W6})}function G6(e={}){const{createStyledComponent:t=q6,useThemeProps:n=Y6,useTheme:r=Tp,componentName:o="MuiGrid"}=e,a=(f,u)=>{const{container:h,direction:y,spacing:v,wrap:S,size:x}=f,w={root:["root",h&&"container",S!=="wrap"&&`wrap-xs-${String(S)}`,...V6(y),...B6(x),...h?U6(v,u.breakpoints.keys[0]):[]]};return fn(w,b=>dn(o,b),{})};function s(f,u,h=()=>!0){const y={};return f===null||(Array.isArray(f)?f.forEach((v,S)=>{v!==null&&h(v)&&u.keys[S]&&(y[u.keys[S]]=v)}):typeof f=="object"?Object.keys(f).forEach(v=>{const S=f[v];S!=null&&h(S)&&(y[v]=S)}):y[u.keys[0]]=f),y}const l=t(I6,z6,L6,j6,F6,_6,N6),c=C.forwardRef(function(u,h){const y=r(),v=n(u),S=r0(v);H6(S,y.breakpoints);const{className:x,children:w,columns:b=12,container:k=!1,component:E="div",direction:O="row",wrap:$="wrap",size:A={},offset:I={},spacing:j=0,rowSpacing:_=j,columnSpacing:W=j,unstable_level:U=0,...T}=S,L=s(A,y.breakpoints,te=>te!==!1),F=s(I,y.breakpoints),H=u.columns??(U?void 0:b),D=u.spacing??(U?void 0:j),K=u.rowSpacing??u.spacing??(U?void 0:_),Q=u.columnSpacing??u.spacing??(U?void 0:W),ee={...S,level:U,columns:H,container:k,direction:O,wrap:$,spacing:D,rowSpacing:K,columnSpacing:Q,size:L,offset:F},X=a(ee,y);return m.jsx(l,{ref:h,as:E,ownerState:ee,className:Nt(X.root,x),...T,children:C.Children.map(w,te=>C.isValidElement(te)&&Uv(te,["Grid"])&&k&&te.props.container?C.cloneElement(te,{unstable_level:te.props?.unstable_level??U+1}):te)})});return c.muiName="Grid",c}const K6=Ep(),Q6=WC("div",{name:"MuiStack",slot:"Root"});function X6(e){return qC({props:e,name:"MuiStack",defaultTheme:K6})}function Z6(e,t){const n=C.Children.toArray(e).filter(Boolean);return n.reduce((r,o,a)=>(r.push(o),a<n.length-1&&r.push(C.cloneElement(t,{key:`separator-${a}`})),r),[])}const J6=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],eV=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...ks({theme:t},Y1({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=Qb(t),o=Object.keys(t.breakpoints.values).reduce((c,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(c[f]=!0),c),{}),a=Y1({values:e.direction,base:o}),s=Y1({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((c,f,u)=>{if(!a[c]){const y=f>0?a[u[f-1]]:"column";a[c]=y}}),n=Wo(n,ks({theme:t},s,(c,f)=>e.useFlexGap?{gap:od(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${J6(f?a[f]:e.direction)}`]:od(r,c)}}))}return n=ZB(t.breakpoints,n),n};function XC(e={}){const{createStyledComponent:t=Q6,useThemeProps:n=X6,componentName:r="MuiStack"}=e,o=()=>fn({root:["root"]},c=>dn(r,c),{}),a=t(eV);return C.forwardRef(function(c,f){const u=n(c),h=r0(u),{component:y="div",direction:v="column",spacing:S=0,divider:x,children:w,className:b,useFlexGap:k=!1,...E}=h,O={direction:v,spacing:S,useFlexGap:k},$=o();return m.jsx(a,{as:y,ownerState:O,ref:f,className:Nt($.root,b),...E,children:x?Z6(w,x):w})})}const tV=XC();function lN(){return{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:eg.white,default:eg.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}}}const cN=lN();function uN(){return{text:{primary:eg.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:eg.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}}}const tw=uN();function BO(e,t,n,r){const o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=i0(e.main,o):t==="dark"&&(e.dark=a0(e.main,a)))}function UO(e,t,n,r,o){const a=o.light||o,s=o.dark||o*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(s*100).toFixed(0)}%)`))}function nV(e="light"){return e==="dark"?{main:bf[200],light:bf[50],dark:bf[400]}:{main:bf[700],light:bf[400],dark:bf[800]}}function rV(e="light"){return e==="dark"?{main:vf[200],light:vf[50],dark:vf[400]}:{main:vf[500],light:vf[300],dark:vf[700]}}function oV(e="light"){return e==="dark"?{main:yf[500],light:yf[300],dark:yf[700]}:{main:yf[700],light:yf[400],dark:yf[800]}}function aV(e="light"){return e==="dark"?{main:xf[400],light:xf[300],dark:xf[700]}:{main:xf[700],light:xf[500],dark:xf[900]}}function iV(e="light"){return e==="dark"?{main:Sf[400],light:Sf[300],dark:Sf[700]}:{main:Sf[800],light:Sf[500],dark:Sf[900]}}function sV(e="light"){return e==="dark"?{main:_h[400],light:_h[300],dark:_h[700]}:{main:"#ed6c02",light:_h[500],dark:_h[900]}}function lV(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function ZC(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...a}=e,s=e.primary||nV(t),l=e.secondary||rV(t),c=e.error||oV(t),f=e.info||aV(t),u=e.success||iV(t),h=e.warning||sV(t);function y(w){return o?lV(w):o6(w,tw.text.primary)>=n?tw.text.primary:cN.text.primary}const v=({color:w,name:b,mainShade:k=500,lightShade:E=300,darkShade:O=700})=>{if(w={...w},!w.main&&w[k]&&(w.main=w[k]),!w.hasOwnProperty("main"))throw new Error(Vl(11,b?` (${b})`:"",k));if(typeof w.main!="string")throw new Error(Vl(12,b?` (${b})`:"",JSON.stringify(w.main)));return o?(UO(o,w,"light",E,r),UO(o,w,"dark",O,r)):(BO(w,"light",E,r),BO(w,"dark",O,r)),w.contrastText||(w.contrastText=y(w.main)),w};let S;return t==="light"?S=lN():t==="dark"&&(S=uN()),Wo({common:{...eg},mode:t,primary:v({color:s,name:"primary"}),secondary:v({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:c,name:"error"}),warning:v({color:h,name:"warning"}),info:v({color:f,name:"info"}),success:v({color:u,name:"success"}),grey:V_,contrastThreshold:n,getContrastText:y,augmentColor:v,tonalOffset:r,...S},a)}function cV(e){const t={};return Object.entries(e).forEach(r=>{const[o,a]=r;typeof a=="object"&&(t[o]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function uV(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function dV(e){return Math.round(e*1e5)/1e5}const VO={textTransform:"uppercase"},HO='"Roboto", "Helvetica", "Arial", sans-serif';function dN(e,t){const{fontFamily:n=HO,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:f,pxToRem:u,...h}=typeof t=="function"?t(e):t,y=r/14,v=u||(w=>`${w/c*y}rem`),S=(w,b,k,E,O)=>({fontFamily:n,fontWeight:w,fontSize:v(b),lineHeight:k,...n===HO?{letterSpacing:`${dV(E/b)}em`}:{},...O,...f}),x={h1:S(o,96,1.167,-1.5),h2:S(o,60,1.2,-.5),h3:S(a,48,1.167,0),h4:S(a,34,1.235,.25),h5:S(a,24,1.334,0),h6:S(s,20,1.6,.15),subtitle1:S(a,16,1.75,.15),subtitle2:S(s,14,1.57,.1),body1:S(a,16,1.5,.15),body2:S(a,14,1.43,.15),button:S(s,14,1.75,.4,VO),caption:S(a,12,1.66,.4),overline:S(a,12,2.66,1,VO),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Wo({htmlFontSize:c,pxToRem:v,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l,...x},h,{clone:!1})}const fV=.2,pV=.14,hV=.12;function Xr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${fV})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${pV})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${hV})`].join(",")}const mV=["none",Xr(0,2,1,-1,0,1,1,0,0,1,3,0),Xr(0,3,1,-2,0,2,2,0,0,1,5,0),Xr(0,3,3,-2,0,3,4,0,0,1,8,0),Xr(0,2,4,-1,0,4,5,0,0,1,10,0),Xr(0,3,5,-1,0,5,8,0,0,1,14,0),Xr(0,3,5,-1,0,6,10,0,0,1,18,0),Xr(0,4,5,-2,0,7,10,1,0,2,16,1),Xr(0,5,5,-3,0,8,10,1,0,3,14,2),Xr(0,5,6,-3,0,9,12,1,0,3,16,2),Xr(0,6,6,-3,0,10,14,1,0,4,18,3),Xr(0,6,7,-4,0,11,15,1,0,4,20,3),Xr(0,7,8,-4,0,12,17,2,0,5,22,4),Xr(0,7,8,-4,0,13,19,2,0,5,24,4),Xr(0,7,9,-4,0,14,21,2,0,5,26,4),Xr(0,8,9,-5,0,15,22,2,0,6,28,5),Xr(0,8,10,-5,0,16,24,2,0,6,30,5),Xr(0,8,11,-5,0,17,26,2,0,6,32,5),Xr(0,9,11,-5,0,18,28,2,0,7,34,6),Xr(0,9,12,-6,0,19,29,2,0,7,36,6),Xr(0,10,13,-6,0,20,31,3,0,8,38,7),Xr(0,10,13,-6,0,21,33,3,0,8,40,7),Xr(0,10,14,-6,0,22,35,3,0,8,42,7),Xr(0,11,14,-7,0,23,36,3,0,9,44,8),Xr(0,11,15,-7,0,24,38,3,0,9,46,8)],gV={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)"},yV={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function WO(e){return`${Math.round(e)}ms`}function vV(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function bV(e){const t={...gV,...e.easing},n={...yV,...e.duration};return{getAutoHeightDuration:vV,create:(o=["all"],a={})=>{const{duration:s=n.standard,easing:l=t.easeInOut,delay:c=0,...f}=a;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:WO(s)} ${l} ${typeof c=="string"?c:WO(c)}`).join(",")},...e,easing:t,duration:n}}const xV={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function SV(e){return Js(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function fN(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let a=0;a<o.length;a++){const[s,l]=o[a];!SV(l)||s.startsWith("unstable_")?delete r[s]:Js(l)&&(r[s]={...l},n(r[s]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
106
+
107
+ const theme = ${JSON.stringify(t,null,2)};
108
+
109
+ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
110
+ theme.transitions = createTransitions(theme.transitions || {});
111
+
112
+ export default theme;`}function qO(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const wV=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function CV(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:Es(t,wV(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${qO(n)})`:i0(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${qO(n)})`:a0(t,n)}})}function nw(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:s={},typography:l={},shape:c,colorSpace:f,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Vl(20));const h=ZC({...a,colorSpace:f}),y=Ep(e);let v=Wo(y,{mixins:uV(y.breakpoints,r),palette:h,shadows:mV.slice(),typography:dN(h,l),transitions:bV(s),zIndex:{...xV}});return v=Wo(v,u),v=t.reduce((S,x)=>Wo(S,x),v),v.unstable_sxConfig={...$g,...u?.unstable_sxConfig},v.unstable_sx=function(x){return Vc({sx:x,theme:this})},v.toRuntimeSource=fN,CV(v),v}function rw(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const kV=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=rw(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function pN(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function hN(e){return e==="dark"?kV:[]}function EV(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...a}=e,s=ZC({...t,colorSpace:o});return{palette:s,opacity:{...pN(s.mode),...n},overlays:r||hN(s.mode),...a}}function TV(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const MV=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],RV=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return MV(e.cssVarPrefix).forEach(l=>{s[l]=n[l],delete n[l]}),a==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:a?{[a.replace("%s",t)]:s,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...s}}}if(a&&a!=="media")return`${r}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace("%s",String(t))}return r};function OV(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ut(e,t,n){!e[t]&&n&&(e[t]=n)}function Rm(e){return typeof e!="string"||!e.startsWith("hsl")?e:eN(e)}function Nl(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Mm(Rm(e[t])))}function $V(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Hs=e=>{try{return e()}catch{}},PV=(e="mui")=>sN(e);function X1(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const a=o==="dark"?"dark":"light";if(!r){t[o]=EV({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}const{palette:s,...l}=nw({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[o]={...n,palette:s,opacity:{...pN(a),...n?.opacity},overlays:n?.overlays||hN(a)},l}function AV(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",nativeColor:s=!1,shouldSkipGeneratingVar:l=TV,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:f=":root",...u}=e,h=Object.keys(n)[0],y=r||(n.light&&h!=="light"?"light":h),v=PV(a),{[y]:S,light:x,dark:w,...b}=n,k={...b};let E=S;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(E=!0),!E)throw new Error(Vl(21,y));let O;s&&(O="oklch");const $=X1(O,k,E,u,y);x&&!k.light&&X1(O,k,x,void 0,"light"),w&&!k.dark&&X1(O,k,w,void 0,"dark");let A={defaultColorScheme:y,...$,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:f,getCssVar:v,colorSchemes:k,font:{...cV($.typography),...$.font},spacing:$V(u.spacing)};Object.keys(A.colorSchemes).forEach(U=>{const T=A.colorSchemes[U].palette,L=H=>{const D=H.split("-"),K=D[1],Q=D[2];return v(H,T[K][Q])};T.mode==="light"&&(ut(T.common,"background","#fff"),ut(T.common,"onBackground","#000")),T.mode==="dark"&&(ut(T.common,"background","#000"),ut(T.common,"onBackground","#fff"));function F(H,D,K){if(O){let Q;return H===Ou&&(Q=`transparent ${((1-K)*100).toFixed(0)}%`),H===Tr&&(Q=`#000 ${(K*100).toFixed(0)}%`),H===Mr&&(Q=`#fff ${(K*100).toFixed(0)}%`),`color-mix(in ${O}, ${D}, ${Q})`}return H(D,K)}if(OV(T,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),T.mode==="light"){ut(T.Alert,"errorColor",F(Tr,T.error.light,.6)),ut(T.Alert,"infoColor",F(Tr,T.info.light,.6)),ut(T.Alert,"successColor",F(Tr,T.success.light,.6)),ut(T.Alert,"warningColor",F(Tr,T.warning.light,.6)),ut(T.Alert,"errorFilledBg",L("palette-error-main")),ut(T.Alert,"infoFilledBg",L("palette-info-main")),ut(T.Alert,"successFilledBg",L("palette-success-main")),ut(T.Alert,"warningFilledBg",L("palette-warning-main")),ut(T.Alert,"errorFilledColor",Hs(()=>T.getContrastText(T.error.main))),ut(T.Alert,"infoFilledColor",Hs(()=>T.getContrastText(T.info.main))),ut(T.Alert,"successFilledColor",Hs(()=>T.getContrastText(T.success.main))),ut(T.Alert,"warningFilledColor",Hs(()=>T.getContrastText(T.warning.main))),ut(T.Alert,"errorStandardBg",F(Mr,T.error.light,.9)),ut(T.Alert,"infoStandardBg",F(Mr,T.info.light,.9)),ut(T.Alert,"successStandardBg",F(Mr,T.success.light,.9)),ut(T.Alert,"warningStandardBg",F(Mr,T.warning.light,.9)),ut(T.Alert,"errorIconColor",L("palette-error-main")),ut(T.Alert,"infoIconColor",L("palette-info-main")),ut(T.Alert,"successIconColor",L("palette-success-main")),ut(T.Alert,"warningIconColor",L("palette-warning-main")),ut(T.AppBar,"defaultBg",L("palette-grey-100")),ut(T.Avatar,"defaultBg",L("palette-grey-400")),ut(T.Button,"inheritContainedBg",L("palette-grey-300")),ut(T.Button,"inheritContainedHoverBg",L("palette-grey-A100")),ut(T.Chip,"defaultBorder",L("palette-grey-400")),ut(T.Chip,"defaultAvatarColor",L("palette-grey-700")),ut(T.Chip,"defaultIconColor",L("palette-grey-700")),ut(T.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ut(T.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ut(T.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ut(T.LinearProgress,"primaryBg",F(Mr,T.primary.main,.62)),ut(T.LinearProgress,"secondaryBg",F(Mr,T.secondary.main,.62)),ut(T.LinearProgress,"errorBg",F(Mr,T.error.main,.62)),ut(T.LinearProgress,"infoBg",F(Mr,T.info.main,.62)),ut(T.LinearProgress,"successBg",F(Mr,T.success.main,.62)),ut(T.LinearProgress,"warningBg",F(Mr,T.warning.main,.62)),ut(T.Skeleton,"bg",O?F(Ou,T.text.primary,.11):`rgba(${L("palette-text-primaryChannel")} / 0.11)`),ut(T.Slider,"primaryTrack",F(Mr,T.primary.main,.62)),ut(T.Slider,"secondaryTrack",F(Mr,T.secondary.main,.62)),ut(T.Slider,"errorTrack",F(Mr,T.error.main,.62)),ut(T.Slider,"infoTrack",F(Mr,T.info.main,.62)),ut(T.Slider,"successTrack",F(Mr,T.success.main,.62)),ut(T.Slider,"warningTrack",F(Mr,T.warning.main,.62));const H=O?F(Tr,T.background.default,.6825):tv(T.background.default,.8);ut(T.SnackbarContent,"bg",H),ut(T.SnackbarContent,"color",Hs(()=>O?tw.text.primary:T.getContrastText(H))),ut(T.SpeedDialAction,"fabHoverBg",tv(T.background.paper,.15)),ut(T.StepConnector,"border",L("palette-grey-400")),ut(T.StepContent,"border",L("palette-grey-400")),ut(T.Switch,"defaultColor",L("palette-common-white")),ut(T.Switch,"defaultDisabledColor",L("palette-grey-100")),ut(T.Switch,"primaryDisabledColor",F(Mr,T.primary.main,.62)),ut(T.Switch,"secondaryDisabledColor",F(Mr,T.secondary.main,.62)),ut(T.Switch,"errorDisabledColor",F(Mr,T.error.main,.62)),ut(T.Switch,"infoDisabledColor",F(Mr,T.info.main,.62)),ut(T.Switch,"successDisabledColor",F(Mr,T.success.main,.62)),ut(T.Switch,"warningDisabledColor",F(Mr,T.warning.main,.62)),ut(T.TableCell,"border",F(Mr,F(Ou,T.divider,1),.88)),ut(T.Tooltip,"bg",F(Ou,T.grey[700],.92))}if(T.mode==="dark"){ut(T.Alert,"errorColor",F(Mr,T.error.light,.6)),ut(T.Alert,"infoColor",F(Mr,T.info.light,.6)),ut(T.Alert,"successColor",F(Mr,T.success.light,.6)),ut(T.Alert,"warningColor",F(Mr,T.warning.light,.6)),ut(T.Alert,"errorFilledBg",L("palette-error-dark")),ut(T.Alert,"infoFilledBg",L("palette-info-dark")),ut(T.Alert,"successFilledBg",L("palette-success-dark")),ut(T.Alert,"warningFilledBg",L("palette-warning-dark")),ut(T.Alert,"errorFilledColor",Hs(()=>T.getContrastText(T.error.dark))),ut(T.Alert,"infoFilledColor",Hs(()=>T.getContrastText(T.info.dark))),ut(T.Alert,"successFilledColor",Hs(()=>T.getContrastText(T.success.dark))),ut(T.Alert,"warningFilledColor",Hs(()=>T.getContrastText(T.warning.dark))),ut(T.Alert,"errorStandardBg",F(Tr,T.error.light,.9)),ut(T.Alert,"infoStandardBg",F(Tr,T.info.light,.9)),ut(T.Alert,"successStandardBg",F(Tr,T.success.light,.9)),ut(T.Alert,"warningStandardBg",F(Tr,T.warning.light,.9)),ut(T.Alert,"errorIconColor",L("palette-error-main")),ut(T.Alert,"infoIconColor",L("palette-info-main")),ut(T.Alert,"successIconColor",L("palette-success-main")),ut(T.Alert,"warningIconColor",L("palette-warning-main")),ut(T.AppBar,"defaultBg",L("palette-grey-900")),ut(T.AppBar,"darkBg",L("palette-background-paper")),ut(T.AppBar,"darkColor",L("palette-text-primary")),ut(T.Avatar,"defaultBg",L("palette-grey-600")),ut(T.Button,"inheritContainedBg",L("palette-grey-800")),ut(T.Button,"inheritContainedHoverBg",L("palette-grey-700")),ut(T.Chip,"defaultBorder",L("palette-grey-700")),ut(T.Chip,"defaultAvatarColor",L("palette-grey-300")),ut(T.Chip,"defaultIconColor",L("palette-grey-300")),ut(T.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ut(T.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ut(T.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ut(T.LinearProgress,"primaryBg",F(Tr,T.primary.main,.5)),ut(T.LinearProgress,"secondaryBg",F(Tr,T.secondary.main,.5)),ut(T.LinearProgress,"errorBg",F(Tr,T.error.main,.5)),ut(T.LinearProgress,"infoBg",F(Tr,T.info.main,.5)),ut(T.LinearProgress,"successBg",F(Tr,T.success.main,.5)),ut(T.LinearProgress,"warningBg",F(Tr,T.warning.main,.5)),ut(T.Skeleton,"bg",O?F(Ou,T.text.primary,.13):`rgba(${L("palette-text-primaryChannel")} / 0.13)`),ut(T.Slider,"primaryTrack",F(Tr,T.primary.main,.5)),ut(T.Slider,"secondaryTrack",F(Tr,T.secondary.main,.5)),ut(T.Slider,"errorTrack",F(Tr,T.error.main,.5)),ut(T.Slider,"infoTrack",F(Tr,T.info.main,.5)),ut(T.Slider,"successTrack",F(Tr,T.success.main,.5)),ut(T.Slider,"warningTrack",F(Tr,T.warning.main,.5));const H=O?F(Mr,T.background.default,.985):tv(T.background.default,.98);ut(T.SnackbarContent,"bg",H),ut(T.SnackbarContent,"color",Hs(()=>O?cN.text.primary:T.getContrastText(H))),ut(T.SpeedDialAction,"fabHoverBg",tv(T.background.paper,.15)),ut(T.StepConnector,"border",L("palette-grey-600")),ut(T.StepContent,"border",L("palette-grey-600")),ut(T.Switch,"defaultColor",L("palette-grey-300")),ut(T.Switch,"defaultDisabledColor",L("palette-grey-600")),ut(T.Switch,"primaryDisabledColor",F(Tr,T.primary.main,.55)),ut(T.Switch,"secondaryDisabledColor",F(Tr,T.secondary.main,.55)),ut(T.Switch,"errorDisabledColor",F(Tr,T.error.main,.55)),ut(T.Switch,"infoDisabledColor",F(Tr,T.info.main,.55)),ut(T.Switch,"successDisabledColor",F(Tr,T.success.main,.55)),ut(T.Switch,"warningDisabledColor",F(Tr,T.warning.main,.55)),ut(T.TableCell,"border",F(Tr,F(Ou,T.divider,1),.68)),ut(T.Tooltip,"bg",F(Ou,T.grey[700],.92))}Nl(T.background,"default"),Nl(T.background,"paper"),Nl(T.common,"background"),Nl(T.common,"onBackground"),Nl(T,"divider"),Object.keys(T).forEach(H=>{const D=T[H];H!=="tonalOffset"&&D&&typeof D=="object"&&(D.main&&ut(T[H],"mainChannel",Mm(Rm(D.main))),D.light&&ut(T[H],"lightChannel",Mm(Rm(D.light))),D.dark&&ut(T[H],"darkChannel",Mm(Rm(D.dark))),D.contrastText&&ut(T[H],"contrastTextChannel",Mm(Rm(D.contrastText))),H==="text"&&(Nl(T[H],"primary"),Nl(T[H],"secondary")),H==="action"&&(D.active&&Nl(T[H],"active"),D.selected&&Nl(T[H],"selected")))})}),A=t.reduce((U,T)=>Wo(U,T),A);const I={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:RV(A),enableContrastVars:s},{vars:j,generateThemeVars:_,generateStyleSheets:W}=T6(A,I);return A.vars=j,Object.entries(A.colorSchemes[A.defaultColorScheme]).forEach(([U,T])=>{A[U]=T}),A.generateThemeVars=_,A.generateStyleSheets=W,A.generateSpacing=function(){return _C(u.spacing,Qb(this))},A.getColorSchemeSelector=M6(c),A.spacing=A.generateSpacing(),A.shouldSkipGeneratingVar=l,A.unstable_sxConfig={...$g,...u?.unstable_sxConfig},A.unstable_sx=function(T){return Vc({sx:T,theme:this})},A.toRuntimeSource=fN,A}function YO(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:ZC({...n===!0?{}:n.palette,mode:t})})}function l0(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...s}=e,l=a||"light",c=o?.[l],f={...o,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return nw(e,...t);let u=n;"palette"in e||f[l]&&(f[l]!==!0?u=f[l].palette:l==="dark"&&(u={mode:"dark"}));const h=nw({...e,palette:u},...t);return h.defaultColorScheme=l,h.colorSchemes=f,h.palette.mode==="light"&&(h.colorSchemes.light={...f.light!==!0&&f.light,palette:h.palette},YO(h,"dark",f.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:h.palette},YO(h,"light",f.light)),h}return!n&&!("light"in f)&&l==="light"&&(f.light=!0),AV({...s,colorSchemes:f,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const JC=l0();function Xc(){const e=Tp(JC);return e[Cs]||e}function c0(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ma=e=>c0(e)&&e!=="classes",at=Qj({themeId:Cs,defaultTheme:JC,rootShouldForwardProp:Ma});function DV({theme:e,...t}){const n=Cs in e?e[Cs]:void 0;return m.jsx(oN,{...t,themeId:n?Cs:void 0,theme:n||e})}const nv={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:jV}=C6({themeId:Cs,theme:()=>l0({cssVariables:!0}),colorSchemeStorageKey:nv.colorSchemeStorageKey,modeStorageKey:nv.modeStorageKey,defaultColorScheme:{light:nv.defaultLightColorScheme,dark:nv.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:dN(e.palette,e.typography)};return t.unstable_sx=function(r){return Vc({sx:r,theme:this})},t}}),NV=jV;function IV({theme:e,...t}){const n=C.useMemo(()=>{if(typeof e=="function")return e;const r=Cs in e?e[Cs]:e;return"colorSchemes"in r?null:"vars"in r?e:{...e,vars:null}},[e]);return n?m.jsx(DV,{theme:n,...t}):m.jsx(NV,{theme:e,...t})}function GO(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function LV(e){return m.jsx(UC,{...e,defaultTheme:JC,themeId:Cs})}function ek(e){return function(n){return m.jsx(LV,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function zV(){return r0}const rn=aN;function hn(e){return f6(e)}function FV(e){return dn("MuiSvgIcon",e)}pn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const _V=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${nt(t)}`,`fontSize${nt(n)}`]};return fn(o,FV,r)},BV=at("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${nt(n.color)}`],t[`fontSize${nt(n.fontSize)}`]]}})(rn(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),ow=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:s="inherit",component:l="svg",fontSize:c="medium",htmlColor:f,inheritViewBox:u=!1,titleAccess:h,viewBox:y="0 0 24 24",...v}=r,S=C.isValidElement(o)&&o.type==="svg",x={...r,color:s,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:y,hasSvgAsChild:S},w={};u||(w.viewBox=y);const b=_V(x);return m.jsxs(BV,{as:l,className:Nt(b.root,a),focusable:"false",color:f,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n,...w,...v,...S&&o.props,ownerState:x,children:[S?o.props.children:o,h?m.jsx("title",{children:h}):null]})});ow.muiName="SvgIcon";function qa(e,t){function n(r,o){return m.jsx(ow,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=ow.muiName,C.memo(C.forwardRef(n))}function mN(e,t=166){let n;function r(...o){const a=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function Ao(e){return e&&e.ownerDocument||document}function Hl(e){return Ao(e).defaultView||window}function aw(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function _c(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:a}=C.useRef(t!==void 0),[s,l]=C.useState(n),c=a?t:s,f=C.useCallback(u=>{a||l(u)},[]);return[c,f]}function No(e){const t=C.useRef(e);return Ea(()=>{t.current=e}),C.useRef((...n)=>(0,t.current)(...n)).current}function bo(...e){const t=C.useRef(void 0),n=C.useCallback(r=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const s=a,l=s(r);return typeof l=="function"?l:()=>{s(null)}}return a.current=r,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},e);return C.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function UV(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function gN(e,t){if(!e)return t;function n(s,l){const c={};return Object.keys(l).forEach(f=>{UV(f,l[f])&&typeof s[f]=="function"&&(c[f]=(...u)=>{s[f](...u),l[f](...u)})}),c}if(typeof e=="function"||typeof t=="function")return s=>{const l=typeof t=="function"?t(s):t,c=typeof e=="function"?e({...s,...l}):e,f=Nt(s?.className,l?.className,c?.className),u=n(c,l);return{...l,...c,...u,...!!f&&{className:f},...l?.style&&c?.style&&{style:{...l.style,...c.style}},...l?.sx&&c?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const r=t,o=n(e,r),a=Nt(r?.className,e?.className);return{...t,...e,...o,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function yN(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function iw(e,t){return iw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},iw(e,t)}function vN(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,iw(e,t)}const KO={disabled:!1},cb=un.createContext(null);var VV=function(t){return t.scrollTop},Om="unmounted",zu="exited",Fu="entering",Ff="entered",sw="exiting",dl=(function(e){vN(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=o,l=s&&!s.isMounting?r.enter:r.appear,c;return a.appearStatus=null,r.in?l?(c=zu,a.appearStatus=Fu):c=Ff:r.unmountOnExit||r.mountOnEnter?c=Om:c=zu,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var s=o.in;return s&&a.status===Om?{status:zu}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var a=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Fu&&s!==Ff&&(a=Fu):(s===Fu||s===Ff)&&(a=sw)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,a,s,l;return a=s=l=o,o!=null&&typeof o!="number"&&(a=o.exit,s=o.enter,l=o.appear!==void 0?o.appear:s),{exit:a,enter:s,appear:l}},n.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===Fu){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Lc.findDOMNode(this);s&&VV(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===zu&&this.setState({status:Om})},n.performEnter=function(o){var a=this,s=this.props.enter,l=this.context?this.context.isMounting:o,c=this.props.nodeRef?[l]:[Lc.findDOMNode(this),l],f=c[0],u=c[1],h=this.getTimeouts(),y=l?h.appear:h.enter;if(!o&&!s||KO.disabled){this.safeSetState({status:Ff},function(){a.props.onEntered(f)});return}this.props.onEnter(f,u),this.safeSetState({status:Fu},function(){a.props.onEntering(f,u),a.onTransitionEnd(y,function(){a.safeSetState({status:Ff},function(){a.props.onEntered(f,u)})})})},n.performExit=function(){var o=this,a=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:Lc.findDOMNode(this);if(!a||KO.disabled){this.safeSetState({status:zu},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:sw},function(){o.props.onExiting(l),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:zu},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},n.setNextCallback=function(o){var a=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,a.nextCallback=null,o(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:Lc.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],f=c[0],u=c[1];this.props.addEndListener(f,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Om)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=yN(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return un.createElement(cb.Provider,{value:null},typeof s=="function"?s(o,l):un.cloneElement(un.Children.only(s),l))},t})(un.Component);dl.contextType=cb;dl.propTypes={};function wf(){}dl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:wf,onEntering:wf,onEntered:wf,onExit:wf,onExiting:wf,onExited:wf};dl.UNMOUNTED=Om;dl.EXITED=zu;dl.ENTERING=Fu;dl.ENTERED=Ff;dl.EXITING=sw;function HV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tk(e,t){var n=function(a){return t&&C.isValidElement(a)?t(a):a},r=Object.create(null);return e&&C.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function WV(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var a in e)a in t?o.length&&(r[a]=o,o=[]):o.push(a);var s,l={};for(var c in t){if(r[c])for(s=0;s<r[c].length;s++){var f=r[c][s];l[r[c][s]]=n(f)}l[c]=n(c)}for(s=0;s<o.length;s++)l[o[s]]=n(o[s]);return l}function qu(e,t,n){return n[t]!=null?n[t]:e.props[t]}function qV(e,t){return tk(e.children,function(n){return C.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:qu(n,"appear",e),enter:qu(n,"enter",e),exit:qu(n,"exit",e)})})}function YV(e,t,n){var r=tk(e.children),o=WV(t,r);return Object.keys(o).forEach(function(a){var s=o[a];if(C.isValidElement(s)){var l=a in t,c=a in r,f=t[a],u=C.isValidElement(f)&&!f.props.in;c&&(!l||u)?o[a]=C.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:qu(s,"exit",e),enter:qu(s,"enter",e)}):!c&&l&&!u?o[a]=C.cloneElement(s,{in:!1}):c&&l&&C.isValidElement(f)&&(o[a]=C.cloneElement(s,{onExited:n.bind(null,s),in:f.props.in,exit:qu(s,"exit",e),enter:qu(s,"enter",e)}))}}),o}var GV=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},KV={component:"div",childFactory:function(t){return t}},nk=(function(e){vN(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=a.handleExited.bind(HV(a));return a.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},a}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,a){var s=a.children,l=a.handleExited,c=a.firstRender;return{children:c?qV(o,l):YV(o,s,l),firstRender:!1}},n.handleExited=function(o,a){var s=tk(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(a),this.mounted&&this.setState(function(l){var c=ob({},l.children);return delete c[o.key],{children:c}}))},n.render=function(){var o=this.props,a=o.component,s=o.childFactory,l=yN(o,["component","childFactory"]),c=this.state.contextValue,f=GV(this.state.children).map(s);return delete l.appear,delete l.enter,delete l.exit,a===null?un.createElement(cb.Provider,{value:c},f):un.createElement(cb.Provider,{value:c},un.createElement(a,l,f))},t})(un.Component);nk.propTypes={};nk.defaultProps=KV;const QO={};function bN(e,t){const n=C.useRef(QO);return n.current===QO&&(n.current=e(t)),n}const QV=[];function XV(e){C.useEffect(e,QV)}class u0{static create(){return new u0}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Yu(){const e=bN(u0.create).current;return XV(e.disposeEffect),e}const xN=e=>e.scrollTop;function ub(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function ZV(e){return dn("MuiPaper",e)}pn("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const JV=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return fn(a,ZV,o)},eH=at("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(rn(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Wa=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiPaper"}),o=Xc(),{className:a,component:s="div",elevation:l=1,square:c=!1,variant:f="elevation",...u}=r,h={...r,component:s,elevation:l,square:c,variant:f},y=JV(h);return m.jsx(eH,{as:s,ownerState:h,className:Nt(y.root,a),ref:n,...u,style:{...f==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[l],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[l]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Es("#fff",rw(l))}, ${Es("#fff",rw(l))})`}},...u.style}})});function Bc(e){return typeof e=="string"}function SN(e,t,n){return e===void 0||Bc(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function wN(e,t,n){return typeof e=="function"?e(t,n):e}function Zu(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function XO(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function CN(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const v=Nt(n?.className,a,o?.className,r?.className),S={...n?.style,...o?.style,...r?.style},x={...n,...o,...r};return v.length>0&&(x.className=v),Object.keys(S).length>0&&(x.style=S),{props:x,internalRef:void 0}}const s=Zu({...o,...r}),l=XO(r),c=XO(o),f=t(s),u=Nt(f?.className,n?.className,a,o?.className,r?.className),h={...f?.style,...n?.style,...o?.style,...r?.style},y={...f,...n,...c,...l};return u.length>0&&(y.className=u),Object.keys(h).length>0&&(y.style=h),{props:y,internalRef:f.ref}}function An(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:s,shouldForwardComponentProp:l=!1,...c}=t,{component:f,slots:u={[e]:void 0},slotProps:h={[e]:void 0},...y}=a,v=u[e]||r,S=wN(h[e],o),{props:{component:x,...w},internalRef:b}=CN({className:n,...c,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:S}),k=bo(b,S?.ref,t.ref),E=e==="root"?x||f:x,O=SN(v,{...e==="root"&&!f&&!u[e]&&s,...e!=="root"&&!u[e]&&s,...w,...E&&!l&&{as:E},...E&&l&&{component:E},ref:k},o);return[v,O]}function Wc(e){try{return e.matches(":focus-visible")}catch{}return!1}class db{static create(){return new db}static use(){const t=bN(db.create).current,[n,r]=C.useState(!1);return t.shouldMount=n,t.setShouldMount=r,C.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=nH(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function tH(){return db.use()}function nH(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function rH(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:s,in:l,onExited:c,timeout:f}=e,[u,h]=C.useState(!1),y=Nt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:s,height:s,top:-(s/2)+a,left:-(s/2)+o},S=Nt(n.child,u&&n.childLeaving,r&&n.childPulsate);return!l&&!u&&h(!0),C.useEffect(()=>{if(!l&&c!=null){const x=setTimeout(c,f);return()=>{clearTimeout(x)}}},[c,l,f]),m.jsx("span",{className:y,style:v,children:m.jsx("span",{className:S})})}const Bi=pn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),lw=550,oH=80,aH=Ci`
113
+ 0% {
114
+ transform: scale(0);
115
+ opacity: 0.1;
116
+ }
117
+
118
+ 100% {
119
+ transform: scale(1);
120
+ opacity: 0.3;
121
+ }
122
+ `,iH=Ci`
123
+ 0% {
124
+ opacity: 1;
125
+ }
126
+
127
+ 100% {
128
+ opacity: 0;
129
+ }
130
+ `,sH=Ci`
131
+ 0% {
132
+ transform: scale(1);
133
+ }
134
+
135
+ 50% {
136
+ transform: scale(0.92);
137
+ }
138
+
139
+ 100% {
140
+ transform: scale(1);
141
+ }
142
+ `,lH=at("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),cH=at(rH,{name:"MuiTouchRipple",slot:"Ripple"})`
143
+ opacity: 0;
144
+ position: absolute;
145
+
146
+ &.${Bi.rippleVisible} {
147
+ opacity: 0.3;
148
+ transform: scale(1);
149
+ animation-name: ${aH};
150
+ animation-duration: ${lw}ms;
151
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
152
+ }
153
+
154
+ &.${Bi.ripplePulsate} {
155
+ animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
156
+ }
157
+
158
+ & .${Bi.child} {
159
+ opacity: 1;
160
+ display: block;
161
+ width: 100%;
162
+ height: 100%;
163
+ border-radius: 50%;
164
+ background-color: currentColor;
165
+ }
166
+
167
+ & .${Bi.childLeaving} {
168
+ opacity: 0;
169
+ animation-name: ${iH};
170
+ animation-duration: ${lw}ms;
171
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
172
+ }
173
+
174
+ & .${Bi.childPulsate} {
175
+ position: absolute;
176
+ /* @noflip */
177
+ left: 0px;
178
+ top: 0;
179
+ animation-name: ${sH};
180
+ animation-duration: 2500ms;
181
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
182
+ animation-iteration-count: infinite;
183
+ animation-delay: 200ms;
184
+ }
185
+ `,uH=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:s,...l}=r,[c,f]=C.useState([]),u=C.useRef(0),h=C.useRef(null);C.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const y=C.useRef(!1),v=Yu(),S=C.useRef(null),x=C.useRef(null),w=C.useCallback(O=>{const{pulsate:$,rippleX:A,rippleY:I,rippleSize:j,cb:_}=O;f(W=>[...W,m.jsx(cH,{classes:{ripple:Nt(a.ripple,Bi.ripple),rippleVisible:Nt(a.rippleVisible,Bi.rippleVisible),ripplePulsate:Nt(a.ripplePulsate,Bi.ripplePulsate),child:Nt(a.child,Bi.child),childLeaving:Nt(a.childLeaving,Bi.childLeaving),childPulsate:Nt(a.childPulsate,Bi.childPulsate)},timeout:lw,pulsate:$,rippleX:A,rippleY:I,rippleSize:j},u.current)]),u.current+=1,h.current=_},[a]),b=C.useCallback((O={},$={},A=()=>{})=>{const{pulsate:I=!1,center:j=o||$.pulsate,fakeElement:_=!1}=$;if(O?.type==="mousedown"&&y.current){y.current=!1;return}O?.type==="touchstart"&&(y.current=!0);const W=_?null:x.current,U=W?W.getBoundingClientRect():{width:0,height:0,left:0,top:0};let T,L,F;if(j||O===void 0||O.clientX===0&&O.clientY===0||!O.clientX&&!O.touches)T=Math.round(U.width/2),L=Math.round(U.height/2);else{const{clientX:H,clientY:D}=O.touches&&O.touches.length>0?O.touches[0]:O;T=Math.round(H-U.left),L=Math.round(D-U.top)}if(j)F=Math.sqrt((2*U.width**2+U.height**2)/3),F%2===0&&(F+=1);else{const H=Math.max(Math.abs((W?W.clientWidth:0)-T),T)*2+2,D=Math.max(Math.abs((W?W.clientHeight:0)-L),L)*2+2;F=Math.sqrt(H**2+D**2)}O?.touches?S.current===null&&(S.current=()=>{w({pulsate:I,rippleX:T,rippleY:L,rippleSize:F,cb:A})},v.start(oH,()=>{S.current&&(S.current(),S.current=null)})):w({pulsate:I,rippleX:T,rippleY:L,rippleSize:F,cb:A})},[o,w,v]),k=C.useCallback(()=>{b({},{pulsate:!0})},[b]),E=C.useCallback((O,$)=>{if(v.clear(),O?.type==="touchend"&&S.current){S.current(),S.current=null,v.start(0,()=>{E(O,$)});return}S.current=null,f(A=>A.length>0?A.slice(1):A),h.current=$},[v]);return C.useImperativeHandle(n,()=>({pulsate:k,start:b,stop:E}),[k,b,E]),m.jsx(lH,{className:Nt(Bi.root,a.root,s),ref:x,...l,children:m.jsx(nk,{component:null,exit:!0,children:c})})});function dH(e){return dn("MuiButtonBase",e)}const fH=pn("MuiButtonBase",["root","disabled","focusVisible"]),pH=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=fn({root:["root",t&&"disabled",n&&"focusVisible"]},dH,o);return n&&r&&(s.root+=` ${r}`),s},hH=at("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${fH.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ad=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:s,className:l,component:c="button",disabled:f=!1,disableRipple:u=!1,disableTouchRipple:h=!1,focusRipple:y=!1,focusVisibleClassName:v,LinkComponent:S="a",onBlur:x,onClick:w,onContextMenu:b,onDragLeave:k,onFocus:E,onFocusVisible:O,onKeyDown:$,onKeyUp:A,onMouseDown:I,onMouseLeave:j,onMouseUp:_,onTouchEnd:W,onTouchMove:U,onTouchStart:T,tabIndex:L=0,TouchRippleProps:F,touchRippleRef:H,type:D,...K}=r,Q=C.useRef(null),ee=tH(),X=bo(ee.ref,H),[te,ae]=C.useState(!1);f&&te&&ae(!1),C.useImperativeHandle(o,()=>({focusVisible:()=>{ae(!0),Q.current.focus()}}),[]);const ue=ee.shouldMount&&!u&&!f;C.useEffect(()=>{te&&y&&!u&&ee.pulsate()},[u,y,te,ee]);const he=Il(ee,"start",I,h),ie=Il(ee,"stop",b,h),le=Il(ee,"stop",k,h),se=Il(ee,"stop",_,h),pe=Il(ee,"stop",mt=>{te&&mt.preventDefault(),j&&j(mt)},h),ne=Il(ee,"start",T,h),me=Il(ee,"stop",W,h),xe=Il(ee,"stop",U,h),Se=Il(ee,"stop",mt=>{Wc(mt.target)||ae(!1),x&&x(mt)},!1),ce=No(mt=>{Q.current||(Q.current=mt.currentTarget),Wc(mt.target)&&(ae(!0),O&&O(mt)),E&&E(mt)}),Ee=()=>{const mt=Q.current;return c&&c!=="button"&&!(mt.tagName==="A"&&mt.href)},Ge=No(mt=>{y&&!mt.repeat&&te&&mt.key===" "&&ee.stop(mt,()=>{ee.start(mt)}),mt.target===mt.currentTarget&&Ee()&&mt.key===" "&&mt.preventDefault(),$&&$(mt),mt.target===mt.currentTarget&&Ee()&&mt.key==="Enter"&&!f&&(mt.preventDefault(),w&&w(mt))}),Te=No(mt=>{y&&mt.key===" "&&te&&!mt.defaultPrevented&&ee.stop(mt,()=>{ee.pulsate(mt)}),A&&A(mt),w&&mt.target===mt.currentTarget&&Ee()&&mt.key===" "&&!mt.defaultPrevented&&w(mt)});let je=c;je==="button"&&(K.href||K.to)&&(je=S);const oe={};je==="button"?(oe.type=D===void 0?"button":D,oe.disabled=f):(!K.href&&!K.to&&(oe.role="button"),f&&(oe["aria-disabled"]=f));const lt=bo(n,Q),Ie={...r,centerRipple:a,component:c,disabled:f,disableRipple:u,disableTouchRipple:h,focusRipple:y,tabIndex:L,focusVisible:te},et=pH(Ie);return m.jsxs(hH,{as:je,className:Nt(et.root,l),ownerState:Ie,onBlur:Se,onClick:w,onContextMenu:ie,onFocus:ce,onKeyDown:Ge,onKeyUp:Te,onMouseDown:he,onMouseLeave:pe,onMouseUp:se,onDragLeave:le,onTouchEnd:me,onTouchMove:xe,onTouchStart:ne,ref:lt,tabIndex:f?-1:L,type:D,...oe,...K,children:[s,ue?m.jsx(uH,{ref:X,center:a,...F}):null]})});function Il(e,t,n,r=!1){return No(o=>(n&&n(o),r||e[t](o),!0))}function mH(e){return typeof e.main=="string"}function gH(e,t=[]){if(!mH(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function zr(e=[]){return([,t])=>t&&gH(t,e)}function yH(e){return dn("MuiAlert",e)}const ZO=pn("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function vH(e){return dn("MuiCircularProgress",e)}pn("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Mc=44,cw=Ci`
186
+ 0% {
187
+ transform: rotate(0deg);
188
+ }
189
+
190
+ 100% {
191
+ transform: rotate(360deg);
192
+ }
193
+ `,uw=Ci`
194
+ 0% {
195
+ stroke-dasharray: 1px, 200px;
196
+ stroke-dashoffset: 0;
197
+ }
198
+
199
+ 50% {
200
+ stroke-dasharray: 100px, 200px;
201
+ stroke-dashoffset: -15px;
202
+ }
203
+
204
+ 100% {
205
+ stroke-dasharray: 1px, 200px;
206
+ stroke-dashoffset: -126px;
207
+ }
208
+ `,bH=typeof cw!="string"?Kc`
209
+ animation: ${cw} 1.4s linear infinite;
210
+ `:null,xH=typeof uw!="string"?Kc`
211
+ animation: ${uw} 1.4s ease-in-out infinite;
212
+ `:null,SH=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,a={root:["root",n,`color${nt(r)}`],svg:["svg"],circle:["circle",`circle${nt(n)}`,o&&"circleDisableShrink"]};return fn(a,vH,t)},wH=at("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${nt(n.color)}`]]}})(rn(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:bH||{animation:`${cw} 1.4s linear infinite`}},...Object.entries(e.palette).filter(zr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),CH=at("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),kH=at("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${nt(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(rn(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:xH||{animation:`${uw} 1.4s ease-in-out infinite`}}]}))),Ag=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:s=!1,size:l=40,style:c,thickness:f=3.6,value:u=0,variant:h="indeterminate",...y}=r,v={...r,color:a,disableShrink:s,size:l,thickness:f,value:u,variant:h},S=SH(v),x={},w={},b={};if(h==="determinate"){const k=2*Math.PI*((Mc-f)/2);x.strokeDasharray=k.toFixed(3),b["aria-valuenow"]=Math.round(u),x.strokeDashoffset=`${((100-u)/100*k).toFixed(3)}px`,w.transform="rotate(-90deg)"}return m.jsx(wH,{className:Nt(S.root,o),style:{width:l,height:l,...w,...c},ownerState:v,ref:n,role:"progressbar",...b,...y,children:m.jsx(CH,{className:S.svg,ownerState:v,viewBox:`${Mc/2} ${Mc/2} ${Mc} ${Mc}`,children:m.jsx(kH,{className:S.circle,style:x,ownerState:v,cx:Mc,cy:Mc,r:(Mc-f)/2,fill:"none",strokeWidth:f})})})});function EH(e){return dn("MuiIconButton",e)}const JO=pn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),TH=e=>{const{classes:t,disabled:n,color:r,edge:o,size:a,loading:s}=e,l={root:["root",s&&"loading",n&&"disabled",r!=="default"&&`color${nt(r)}`,o&&`edge${nt(o)}`,`size${nt(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return fn(l,EH,t)},MH=at(ad,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${nt(n.color)}`],n.edge&&t[`edge${nt(n.edge)}`],t[`size${nt(n.size)}`]]}})(rn(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),rn(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(zr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(zr()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${JO.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${JO.loading}`]:{color:"transparent"}}))),RH=at("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Jr=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:s,color:l="default",disabled:c=!1,disableFocusRipple:f=!1,size:u="medium",id:h,loading:y=null,loadingIndicator:v,...S}=r,x=Qc(h),w=v??m.jsx(Ag,{"aria-labelledby":x,color:"inherit",size:16}),b={...r,edge:o,color:l,disabled:c,disableFocusRipple:f,loading:y,loadingIndicator:w,size:u},k=TH(b);return m.jsxs(MH,{id:y?x:h,className:Nt(k.root,s),centerRipple:!0,focusRipple:!f,disabled:c||y,ref:n,...S,ownerState:b,children:[typeof y=="boolean"&&m.jsx("span",{className:k.loadingWrapper,style:{display:"contents"},children:m.jsx(RH,{className:k.loadingIndicator,ownerState:b,children:y&&w})}),a]})}),OH=qa(m.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),$H=qa(m.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),PH=qa(m.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),AH=qa(m.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),kN=qa(m.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),DH=e=>{const{variant:t,color:n,severity:r,classes:o}=e,a={root:["root",`color${nt(n||r)}`,`${t}${nt(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return fn(a,yH,o)},jH=at(Wa,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${nt(n.color||n.severity)}`]]}})(rn(({theme:e})=>{const t=e.palette.mode==="light"?e.darken:e.lighten,n=e.palette.mode==="light"?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(zr(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${ZO.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(zr(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${ZO.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(zr(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)}}}))]}})),NH=at("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),IH=at("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),LH=at("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),e2={success:m.jsx(OH,{fontSize:"inherit"}),warning:m.jsx($H,{fontSize:"inherit"}),error:m.jsx(PH,{fontSize:"inherit"}),info:m.jsx(AH,{fontSize:"inherit"})},ws=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiAlert"}),{action:o,children:a,className:s,closeText:l="Close",color:c,components:f={},componentsProps:u={},icon:h,iconMapping:y=e2,onClose:v,role:S="alert",severity:x="success",slotProps:w={},slots:b={},variant:k="standard",...E}=r,O={...r,color:c,severity:x,variant:k,colorSeverity:c||x},$=DH(O),A={slots:{closeButton:f.CloseButton,closeIcon:f.CloseIcon,...b},slotProps:{...u,...w}},[I,j]=An("root",{ref:n,shouldForwardComponentProp:!0,className:Nt($.root,s),elementType:jH,externalForwardedProps:{...A,...E},ownerState:O,additionalProps:{role:S,elevation:0}}),[_,W]=An("icon",{className:$.icon,elementType:NH,externalForwardedProps:A,ownerState:O}),[U,T]=An("message",{className:$.message,elementType:IH,externalForwardedProps:A,ownerState:O}),[L,F]=An("action",{className:$.action,elementType:LH,externalForwardedProps:A,ownerState:O}),[H,D]=An("closeButton",{elementType:Jr,externalForwardedProps:A,ownerState:O}),[K,Q]=An("closeIcon",{elementType:kN,externalForwardedProps:A,ownerState:O});return m.jsxs(I,{...j,children:[h!==!1?m.jsx(_,{...W,children:h||y[x]||e2[x]}):null,m.jsx(U,{...T,children:a}),o!=null?m.jsx(L,{...F,children:o}):null,o==null&&v?m.jsx(L,{...F,children:m.jsx(H,{size:"small","aria-label":l,title:l,color:"inherit",onClick:v,...D,children:m.jsx(K,{fontSize:"small",...Q})})}):null]})});function zH(e){return dn("MuiTypography",e)}const t2=pn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),FH={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},_H=zV(),BH=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:s}=e,l={root:["root",a,e.align!=="inherit"&&`align${nt(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return fn(l,zH,s)},UH=at("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${nt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(rn(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(zr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${nt(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),n2={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},It=C.forwardRef(function(t,n){const{color:r,...o}=hn({props:t,name:"MuiTypography"}),a=!FH[r],s=_H({...o,...a&&{color:r}}),{align:l="inherit",className:c,component:f,gutterBottom:u=!1,noWrap:h=!1,paragraph:y=!1,variant:v="body1",variantMapping:S=n2,...x}=s,w={...s,align:l,color:r,className:c,component:f,gutterBottom:u,noWrap:h,paragraph:y,variant:v,variantMapping:S},b=f||(y?"p":S[v]||n2[v])||"span",k=BH(w);return m.jsx(UH,{as:b,ref:n,className:Nt(k.root,c),...x,ownerState:w,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...x.style}})}),VH=e=>{const t=C.useRef({});return C.useEffect(()=>{t.current=e}),t.current};function r2({array1:e,array2:t,parser:n=r=>r}){return e&&t&&e.length===t.length&&e.every((r,o)=>n(r)===n(t[o]))}function o2(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function HH(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:a,trim:s=!1}=e;return(l,{inputValue:c,getOptionLabel:f})=>{let u=s?c.trim():c;n&&(u=u.toLowerCase()),t&&(u=o2(u));const h=u?l.filter(y=>{let v=(a||f)(y);return n&&(v=v.toLowerCase()),t&&(v=o2(v)),o==="start"?v.startsWith(u):v.includes(u)}):l;return typeof r=="number"?h.slice(0,r):h}}const WH=HH(),a2=5,qH=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),YH=[];function i2(e,t,n,r){if(t||e==null||r)return"";const o=n(e);return typeof o=="string"?o:""}function GH(e){const{unstable_isActiveElementInListbox:t=qH,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:c=!1,componentName:f="useAutocomplete",defaultValue:u=e.multiple?YH:null,disableClearable:h=!1,disableCloseOnSelect:y=!1,disabled:v,disabledItemsFocusable:S=!1,disableListWrap:x=!1,filterOptions:w=WH,filterSelectedOptions:b=!1,freeSolo:k=!1,getOptionDisabled:E,getOptionKey:O,getOptionLabel:$=de=>de.label??de,groupBy:A,handleHomeEndKeys:I=!e.freeSolo,id:j,includeInputInList:_=!1,inputValue:W,isOptionEqualToValue:U=(de,fe)=>de===fe,multiple:T=!1,onChange:L,onClose:F,onHighlightChange:H,onInputChange:D,onOpen:K,open:Q,openOnFocus:ee=!1,options:X,readOnly:te=!1,renderValue:ae,selectOnFocus:ue=!e.freeSolo,value:he}=e,ie=Qc(j);let le=$;le=de=>{const fe=$(de);return typeof fe!="string"?String(fe):fe};const se=C.useRef(!1),pe=C.useRef(!0),ne=C.useRef(null),me=C.useRef(null),[xe,Se]=C.useState(null),[ce,Ee]=C.useState(-1),Ge=o?0:-1,Te=C.useRef(Ge),je=C.useRef(i2(u??he,T,le)).current,[oe,lt]=_c({controlled:he,default:u,name:f}),[Ie,et]=_c({controlled:W,default:je,name:f,state:"inputValue"}),[mt,Wt]=C.useState(!1),zt=C.useCallback((de,fe,Fe)=>{if(!(T?oe.length<fe.length:fe!==null)&&!l)return;const Ue=i2(fe,T,le,ae);Ie!==Ue&&(et(Ue),D&&D(de,Ue,Fe))},[le,Ie,T,D,et,l,oe,ae]),[tt,Je]=_c({controlled:Q,default:!1,name:f,state:"open"}),[ct,Le]=C.useState(!0),ge=!T&&oe!=null&&Ie===le(oe),qe=tt&&!te,De=qe?w(X.filter(de=>!(b&&(T?oe:[oe]).some(fe=>fe!==null&&U(de,fe)))),{inputValue:ge&&ct?"":Ie,getOptionLabel:le}):[],wt=VH({filteredOptions:De,value:oe,inputValue:Ie});C.useEffect(()=>{const de=oe!==wt.value;mt&&!de||k&&!de||zt(null,oe,"reset")},[oe,zt,mt,wt.value,k]);const Ct=tt&&De.length>0&&!te,yt=No(de=>{if(de===-1)ne.current.focus();else{const fe=ae?"data-item-index":"data-tag-index";xe.querySelector(`[${fe}="${de}"]`).focus()}});C.useEffect(()=>{T&&ce>oe.length-1&&(Ee(-1),yt(-1))},[oe,T,ce,yt]);function st(de,fe){if(!me.current||de<0||de>=De.length)return-1;let Fe=de;for(;;){const ft=me.current.querySelector(`[data-option-index="${Fe}"]`),Ue=S?!1:!ft||ft.disabled||ft.getAttribute("aria-disabled")==="true";if(ft&&ft.hasAttribute("tabindex")&&!Ue)return Fe;if(fe==="next"?Fe=(Fe+1)%De.length:Fe=(Fe-1+De.length)%De.length,Fe===de)return-1}}const jt=No(({event:de,index:fe,reason:Fe})=>{if(Te.current=fe,fe===-1?ne.current.removeAttribute("aria-activedescendant"):ne.current.setAttribute("aria-activedescendant",`${ie}-option-${fe}`),H&&["mouse","keyboard","touch"].includes(Fe)&&H(de,fe===-1?null:De[fe],Fe),!me.current)return;const ft=me.current.querySelector(`[role="option"].${n}-focused`);ft&&(ft.classList.remove(`${n}-focused`),ft.classList.remove(`${n}-focusVisible`));let Ue=me.current;if(me.current.getAttribute("role")!=="listbox"&&(Ue=me.current.parentElement.querySelector('[role="listbox"]')),!Ue)return;if(fe===-1){Ue.scrollTop=0;return}const Ot=me.current.querySelector(`[data-option-index="${fe}"]`);if(Ot&&(Ot.classList.add(`${n}-focused`),Fe==="keyboard"&&Ot.classList.add(`${n}-focusVisible`),Ue.scrollHeight>Ue.clientHeight&&Fe!=="mouse"&&Fe!=="touch")){const Yt=Ot,nn=Ue.clientHeight+Ue.scrollTop,ve=Yt.offsetTop+Yt.offsetHeight;ve>nn?Ue.scrollTop=ve-Ue.clientHeight:Yt.offsetTop-Yt.offsetHeight*(A?1.3:0)<Ue.scrollTop&&(Ue.scrollTop=Yt.offsetTop-Yt.offsetHeight*(A?1.3:0))}}),qt=No(({event:de,diff:fe,direction:Fe="next",reason:ft})=>{if(!qe)return;const Ot=st((()=>{const Yt=De.length-1;if(fe==="reset")return Ge;if(fe==="start")return 0;if(fe==="end")return Yt;const nn=Te.current+fe;return nn<0?nn===-1&&_?-1:x&&Te.current!==-1||Math.abs(fe)>1?0:Yt:nn>Yt?nn===Yt+1&&_?-1:x||Math.abs(fe)>1?Yt:0:nn})(),Fe);if(jt({index:Ot,reason:ft,event:de}),r&&fe!=="reset")if(Ot===-1)ne.current.value=Ie;else{const Yt=le(De[Ot]);ne.current.value=Yt,Yt.toLowerCase().indexOf(Ie.toLowerCase())===0&&Ie.length>0&&ne.current.setSelectionRange(Ie.length,Yt.length)}}),mn=!r2({array1:wt.filteredOptions,array2:De,parser:le}),$n=()=>{const de=(fe,Fe)=>{const ft=fe?le(fe):"",Ue=Fe?le(Fe):"";return ft===Ue};if(Te.current!==-1&&!r2({array1:wt.filteredOptions,array2:De,parser:le})&&wt.inputValue===Ie&&(T?oe.length===wt.value.length&&wt.value.every((fe,Fe)=>le(oe[Fe])===le(fe)):de(wt.value,oe))){const fe=wt.filteredOptions[Te.current];if(fe)return De.findIndex(Fe=>le(Fe)===le(fe))}return-1},_n=C.useCallback(()=>{if(!qe)return;const de=$n();if(de!==-1){Te.current=de;return}const fe=T?oe[0]:oe;if(De.length===0||fe==null){qt({diff:"reset"});return}if(me.current){if(fe!=null){const Fe=De[Te.current];if(T&&Fe&&oe.findIndex(Ue=>U(Fe,Ue))!==-1)return;const ft=De.findIndex(Ue=>U(Ue,fe));ft===-1?qt({diff:"reset"}):jt({index:ft});return}if(Te.current>=De.length-1){jt({index:De.length-1});return}jt({index:Te.current})}},[De.length,T?!1:oe,b,qt,jt,qe,Ie,T]),Un=No(de=>{aw(me,de),de&&_n()});C.useEffect(()=>{mn&&_n()},[_n,mn]);const Jt=de=>{tt||(Je(!0),Le(!0),K&&K(de))},Dn=(de,fe)=>{tt&&(Je(!1),F&&F(de,fe))},Ce=(de,fe,Fe,ft)=>{if(T){if(oe.length===fe.length&&oe.every((Ue,Ot)=>Ue===fe[Ot]))return}else if(oe===fe)return;L&&L(de,fe,Fe,ft),lt(fe)},Vn=C.useRef(!1),Mn=(de,fe,Fe="selectOption",ft="options")=>{let Ue=Fe,Ot=fe;if(T){Ot=Array.isArray(oe)?oe.slice():[];const Yt=Ot.findIndex(nn=>U(fe,nn));Yt===-1?Ot.push(fe):ft!=="freeSolo"&&(Ot.splice(Yt,1),Ue="removeOption")}zt(de,Ot,Ue),Ce(de,Ot,Ue,{option:fe}),!y&&(!de||!de.ctrlKey&&!de.metaKey)&&Dn(de,Ue),(s===!0||s==="touch"&&Vn.current||s==="mouse"&&!Vn.current)&&ne.current.blur()};function en(de,fe){if(de===-1)return-1;let Fe=de;for(;;){if(fe==="next"&&Fe===oe.length||fe==="previous"&&Fe===-1)return-1;const ft=ae?"data-item-index":"data-tag-index",Ue=xe.querySelector(`[${ft}="${Fe}"]`);if(!Ue||!Ue.hasAttribute("tabindex")||Ue.disabled||Ue.getAttribute("aria-disabled")==="true")Fe+=fe==="next"?1:-1;else return Fe}}const $t=(de,fe)=>{if(!T)return;Ie===""&&Dn(de,"toggleInput");let Fe=ce;ce===-1?Ie===""&&fe==="previous"&&(Fe=oe.length-1):(Fe+=fe==="next"?1:-1,Fe<0&&(Fe=0),Fe===oe.length&&(Fe=-1)),Fe=en(Fe,fe),Ee(Fe),yt(Fe)},Fr=de=>{se.current=!0,et(""),D&&D(de,"","clear"),Ce(de,T?[]:null,"clear")},Fn=de=>fe=>{if(de.onKeyDown&&de.onKeyDown(fe),!fe.defaultMuiPrevented&&(ce!==-1&&!["ArrowLeft","ArrowRight"].includes(fe.key)&&(Ee(-1),yt(-1)),fe.which!==229))switch(fe.key){case"Home":qe&&I&&(fe.preventDefault(),qt({diff:"start",direction:"next",reason:"keyboard",event:fe}));break;case"End":qe&&I&&(fe.preventDefault(),qt({diff:"end",direction:"previous",reason:"keyboard",event:fe}));break;case"PageUp":fe.preventDefault(),qt({diff:-a2,direction:"previous",reason:"keyboard",event:fe}),Jt(fe);break;case"PageDown":fe.preventDefault(),qt({diff:a2,direction:"next",reason:"keyboard",event:fe}),Jt(fe);break;case"ArrowDown":fe.preventDefault(),qt({diff:1,direction:"next",reason:"keyboard",event:fe}),Jt(fe);break;case"ArrowUp":fe.preventDefault(),qt({diff:-1,direction:"previous",reason:"keyboard",event:fe}),Jt(fe);break;case"ArrowLeft":!T&&ae?yt(0):$t(fe,"previous");break;case"ArrowRight":!T&&ae?yt(-1):$t(fe,"next");break;case"Enter":if(Te.current!==-1&&qe){const Fe=De[Te.current],ft=E?E(Fe):!1;if(fe.preventDefault(),ft)return;Mn(fe,Fe,"selectOption"),r&&ne.current.setSelectionRange(ne.current.value.length,ne.current.value.length)}else k&&Ie!==""&&ge===!1&&(T&&fe.preventDefault(),Mn(fe,Ie,"createOption","freeSolo"));break;case"Escape":qe?(fe.preventDefault(),fe.stopPropagation(),Dn(fe,"escape")):c&&(Ie!==""||T&&oe.length>0||ae)&&(fe.preventDefault(),fe.stopPropagation(),Fr(fe));break;case"Backspace":if(T&&!te&&Ie===""&&oe.length>0){const Fe=ce===-1?oe.length-1:ce,ft=oe.slice();ft.splice(Fe,1),Ce(fe,ft,"removeOption",{option:oe[Fe]})}!T&&ae&&!te&&(lt(null),yt(-1));break;case"Delete":if(T&&!te&&Ie===""&&oe.length>0&&ce!==-1){const Fe=ce,ft=oe.slice();ft.splice(Fe,1),Ce(fe,ft,"removeOption",{option:oe[Fe]})}!T&&ae&&!te&&(lt(null),yt(-1));break}},on=de=>{Wt(!0),ee&&!se.current&&Jt(de)},Ln=de=>{if(t(me)){ne.current.focus();return}Wt(!1),pe.current=!0,se.current=!1,a&&Te.current!==-1&&qe?Mn(de,De[Te.current],"blur"):a&&k&&Ie!==""?Mn(de,Ie,"blur","freeSolo"):l&&zt(de,oe,"blur"),Dn(de,"blur")},ye=de=>{const fe=de.target.value;Ie!==fe&&(et(fe),Le(!1),D&&D(de,fe,"input")),fe===""?!h&&!T&&Ce(de,null,"clear"):Jt(de)},Me=de=>{const fe=Number(de.currentTarget.getAttribute("data-option-index"));Te.current!==fe&&jt({event:de,index:fe,reason:"mouse"})},ze=de=>{jt({event:de,index:Number(de.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Vn.current=!0},Ve=de=>{const fe=Number(de.currentTarget.getAttribute("data-option-index"));Mn(de,De[fe],"selectOption"),Vn.current=!1},rt=de=>fe=>{const Fe=oe.slice();Fe.splice(de,1),Ce(fe,Fe,"removeOption",{option:oe[de]})},kt=de=>{Ce(de,null,"removeOption",{option:oe})},bt=de=>{tt?Dn(de,"toggleInput"):Jt(de)},Et=de=>{de.currentTarget.contains(de.target)&&de.target.getAttribute("id")!==ie&&de.preventDefault()},Pt=de=>{de.currentTarget.contains(de.target)&&(ne.current.focus(),ue&&pe.current&&ne.current.selectionEnd-ne.current.selectionStart===0&&ne.current.select(),pe.current=!1)},Kt=de=>{!v&&(Ie===""||!tt)&&bt(de)};let At=k&&Ie.length>0;At=At||(T?oe.length>0:oe!==null);let Ft=De;return A&&(Ft=De.reduce((de,fe,Fe)=>{const ft=A(fe);return de.length>0&&de[de.length-1].group===ft?de[de.length-1].options.push(fe):de.push({key:Fe,index:Fe,group:ft,options:[fe]}),de},[])),v&&mt&&Ln(),{getRootProps:(de={})=>({...de,onKeyDown:Fn(de),onMouseDown:Et,onClick:Pt}),getInputLabelProps:()=>({id:`${ie}-label`,htmlFor:ie}),getInputProps:()=>({id:ie,value:Ie,onBlur:Ln,onFocus:on,onChange:ye,onMouseDown:Kt,"aria-activedescendant":qe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ct?`${ie}-listbox`:void 0,"aria-expanded":Ct,autoComplete:"off",ref:ne,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Fr}),getItemProps:({index:de=0}={})=>({...T&&{key:de},...ae?{"data-item-index":de}:{"data-tag-index":de},tabIndex:-1,...!te&&{onDelete:T?rt(de):kt}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:bt}),getTagProps:({index:de})=>({key:de,"data-tag-index":de,tabIndex:-1,...!te&&{onDelete:rt(de)}}),getListboxProps:()=>({role:"listbox",id:`${ie}-listbox`,"aria-labelledby":`${ie}-label`,ref:Un,onMouseDown:de=>{de.preventDefault()}}),getOptionProps:({index:de,option:fe})=>{const Fe=(T?oe:[oe]).some(Ue=>Ue!=null&&U(fe,Ue)),ft=E?E(fe):!1;return{key:O?.(fe)??le(fe),tabIndex:-1,role:"option",id:`${ie}-option-${de}`,onMouseMove:Me,onClick:Ve,onTouchStart:ze,"data-option-index":de,"aria-disabled":ft,"aria-selected":Fe}},id:ie,inputValue:Ie,value:oe,dirty:At,expanded:qe&&xe,popupOpen:qe,focused:mt||ce!==-1,anchorEl:xe,setAnchorEl:Se,focusedItem:ce,focusedTag:ce,groupedOptions:Ft}}var za="top",Qi="bottom",Xi="right",Fa="left",rk="auto",Dg=[za,Qi,Xi,Fa],sp="start",ag="end",KH="clippingParents",EN="viewport",Uh="popper",QH="reference",s2=Dg.reduce(function(e,t){return e.concat([t+"-"+sp,t+"-"+ag])},[]),TN=[].concat(Dg,[rk]).reduce(function(e,t){return e.concat([t,t+"-"+sp,t+"-"+ag])},[]),XH="beforeRead",ZH="read",JH="afterRead",e8="beforeMain",t8="main",n8="afterMain",r8="beforeWrite",o8="write",a8="afterWrite",i8=[XH,ZH,JH,e8,t8,n8,r8,o8,a8];function il(e){return e?(e.nodeName||"").toLowerCase():null}function bi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function id(e){var t=bi(e).Element;return e instanceof t||e instanceof Element}function Gi(e){var t=bi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ok(e){if(typeof ShadowRoot>"u")return!1;var t=bi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function s8(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!Gi(a)||!il(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(s){var l=o[s];l===!1?a.removeAttribute(s):a.setAttribute(s,l===!0?"":l)}))})}function l8(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(c,f){return c[f]="",c},{});!Gi(o)||!il(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(c){o.removeAttribute(c)}))})}}const c8={name:"applyStyles",enabled:!0,phase:"write",fn:s8,effect:l8,requires:["computeStyles"]};function ol(e){return e.split("-")[0]}var Ju=Math.max,fb=Math.min,lp=Math.round;function dw(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function MN(){return!/^((?!chrome|android).)*safari/i.test(dw())}function cp(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&Gi(e)&&(o=e.offsetWidth>0&&lp(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&lp(r.height)/e.offsetHeight||1);var s=id(e)?bi(e):window,l=s.visualViewport,c=!MN()&&n,f=(r.left+(c&&l?l.offsetLeft:0))/o,u=(r.top+(c&&l?l.offsetTop:0))/a,h=r.width/o,y=r.height/a;return{width:h,height:y,top:u,right:f+h,bottom:u+y,left:f,x:f,y:u}}function ak(e){var t=cp(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function RN(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ok(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Wl(e){return bi(e).getComputedStyle(e)}function u8(e){return["table","td","th"].indexOf(il(e))>=0}function Zc(e){return((id(e)?e.ownerDocument:e.document)||window.document).documentElement}function d0(e){return il(e)==="html"?e:e.assignedSlot||e.parentNode||(ok(e)?e.host:null)||Zc(e)}function l2(e){return!Gi(e)||Wl(e).position==="fixed"?null:e.offsetParent}function d8(e){var t=/firefox/i.test(dw()),n=/Trident/i.test(dw());if(n&&Gi(e)){var r=Wl(e);if(r.position==="fixed")return null}var o=d0(e);for(ok(o)&&(o=o.host);Gi(o)&&["html","body"].indexOf(il(o))<0;){var a=Wl(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function jg(e){for(var t=bi(e),n=l2(e);n&&u8(n)&&Wl(n).position==="static";)n=l2(n);return n&&(il(n)==="html"||il(n)==="body"&&Wl(n).position==="static")?t:n||d8(e)||t}function ik(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Fm(e,t,n){return Ju(e,fb(t,n))}function f8(e,t,n){var r=Fm(e,t,n);return r>n?n:r}function ON(){return{top:0,right:0,bottom:0,left:0}}function $N(e){return Object.assign({},ON(),e)}function PN(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var p8=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,$N(typeof t!="number"?t:PN(t,Dg))};function h8(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,l=ol(n.placement),c=ik(l),f=[Fa,Xi].indexOf(l)>=0,u=f?"height":"width";if(!(!a||!s)){var h=p8(o.padding,n),y=ak(a),v=c==="y"?za:Fa,S=c==="y"?Qi:Xi,x=n.rects.reference[u]+n.rects.reference[c]-s[c]-n.rects.popper[u],w=s[c]-n.rects.reference[c],b=jg(a),k=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,E=x/2-w/2,O=h[v],$=k-y[u]-h[S],A=k/2-y[u]/2+E,I=Fm(O,A,$),j=c;n.modifiersData[r]=(t={},t[j]=I,t.centerOffset=I-A,t)}}function m8(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||RN(t.elements.popper,o)&&(t.elements.arrow=o))}const g8={name:"arrow",enabled:!0,phase:"main",fn:h8,effect:m8,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function up(e){return e.split("-")[1]}var y8={top:"auto",right:"auto",bottom:"auto",left:"auto"};function v8(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:lp(n*o)/o||0,y:lp(r*o)/o||0}}function c2(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,f=e.adaptive,u=e.roundOffsets,h=e.isFixed,y=s.x,v=y===void 0?0:y,S=s.y,x=S===void 0?0:S,w=typeof u=="function"?u({x:v,y:x}):{x:v,y:x};v=w.x,x=w.y;var b=s.hasOwnProperty("x"),k=s.hasOwnProperty("y"),E=Fa,O=za,$=window;if(f){var A=jg(n),I="clientHeight",j="clientWidth";if(A===bi(n)&&(A=Zc(n),Wl(A).position!=="static"&&l==="absolute"&&(I="scrollHeight",j="scrollWidth")),A=A,o===za||(o===Fa||o===Xi)&&a===ag){O=Qi;var _=h&&A===$&&$.visualViewport?$.visualViewport.height:A[I];x-=_-r.height,x*=c?1:-1}if(o===Fa||(o===za||o===Qi)&&a===ag){E=Xi;var W=h&&A===$&&$.visualViewport?$.visualViewport.width:A[j];v-=W-r.width,v*=c?1:-1}}var U=Object.assign({position:l},f&&y8),T=u===!0?v8({x:v,y:x},bi(n)):{x:v,y:x};if(v=T.x,x=T.y,c){var L;return Object.assign({},U,(L={},L[O]=k?"0":"",L[E]=b?"0":"",L.transform=($.devicePixelRatio||1)<=1?"translate("+v+"px, "+x+"px)":"translate3d("+v+"px, "+x+"px, 0)",L))}return Object.assign({},U,(t={},t[O]=k?x+"px":"",t[E]=b?v+"px":"",t.transform="",t))}function b8(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,l=n.roundOffsets,c=l===void 0?!0:l,f={placement:ol(t.placement),variation:up(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,c2(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,c2(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const x8={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:b8,data:{}};var rv={passive:!0};function S8(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,c=bi(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach(function(u){u.addEventListener("scroll",n.update,rv)}),l&&c.addEventListener("resize",n.update,rv),function(){a&&f.forEach(function(u){u.removeEventListener("scroll",n.update,rv)}),l&&c.removeEventListener("resize",n.update,rv)}}const w8={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:S8,data:{}};var C8={left:"right",right:"left",bottom:"top",top:"bottom"};function Vv(e){return e.replace(/left|right|bottom|top/g,function(t){return C8[t]})}var k8={start:"end",end:"start"};function u2(e){return e.replace(/start|end/g,function(t){return k8[t]})}function sk(e){var t=bi(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function lk(e){return cp(Zc(e)).left+sk(e).scrollLeft}function E8(e,t){var n=bi(e),r=Zc(e),o=n.visualViewport,a=r.clientWidth,s=r.clientHeight,l=0,c=0;if(o){a=o.width,s=o.height;var f=MN();(f||!f&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:a,height:s,x:l+lk(e),y:c}}function T8(e){var t,n=Zc(e),r=sk(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Ju(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ju(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+lk(e),c=-r.scrollTop;return Wl(o||n).direction==="rtl"&&(l+=Ju(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:l,y:c}}function ck(e){var t=Wl(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function AN(e){return["html","body","#document"].indexOf(il(e))>=0?e.ownerDocument.body:Gi(e)&&ck(e)?e:AN(d0(e))}function _m(e,t){var n;t===void 0&&(t=[]);var r=AN(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=bi(r),s=o?[a].concat(a.visualViewport||[],ck(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(_m(d0(s)))}function fw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function M8(e,t){var n=cp(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function d2(e,t,n){return t===EN?fw(E8(e,n)):id(t)?M8(t,n):fw(T8(Zc(e)))}function R8(e){var t=_m(d0(e)),n=["absolute","fixed"].indexOf(Wl(e).position)>=0,r=n&&Gi(e)?jg(e):e;return id(r)?t.filter(function(o){return id(o)&&RN(o,r)&&il(o)!=="body"}):[]}function O8(e,t,n,r){var o=t==="clippingParents"?R8(e):[].concat(t),a=[].concat(o,[n]),s=a[0],l=a.reduce(function(c,f){var u=d2(e,f,r);return c.top=Ju(u.top,c.top),c.right=fb(u.right,c.right),c.bottom=fb(u.bottom,c.bottom),c.left=Ju(u.left,c.left),c},d2(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function DN(e){var t=e.reference,n=e.element,r=e.placement,o=r?ol(r):null,a=r?up(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case za:c={x:s,y:t.y-n.height};break;case Qi:c={x:s,y:t.y+t.height};break;case Xi:c={x:t.x+t.width,y:l};break;case Fa:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var f=o?ik(o):null;if(f!=null){var u=f==="y"?"height":"width";switch(a){case sp:c[f]=c[f]-(t[u]/2-n[u]/2);break;case ag:c[f]=c[f]+(t[u]/2-n[u]/2);break}}return c}function ig(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,l=n.boundary,c=l===void 0?KH:l,f=n.rootBoundary,u=f===void 0?EN:f,h=n.elementContext,y=h===void 0?Uh:h,v=n.altBoundary,S=v===void 0?!1:v,x=n.padding,w=x===void 0?0:x,b=$N(typeof w!="number"?w:PN(w,Dg)),k=y===Uh?QH:Uh,E=e.rects.popper,O=e.elements[S?k:y],$=O8(id(O)?O:O.contextElement||Zc(e.elements.popper),c,u,s),A=cp(e.elements.reference),I=DN({reference:A,element:E,placement:o}),j=fw(Object.assign({},E,I)),_=y===Uh?j:A,W={top:$.top-_.top+b.top,bottom:_.bottom-$.bottom+b.bottom,left:$.left-_.left+b.left,right:_.right-$.right+b.right},U=e.modifiersData.offset;if(y===Uh&&U){var T=U[o];Object.keys(W).forEach(function(L){var F=[Xi,Qi].indexOf(L)>=0?1:-1,H=[za,Qi].indexOf(L)>=0?"y":"x";W[L]+=T[H]*F})}return W}function $8(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?TN:c,u=up(r),h=u?l?s2:s2.filter(function(S){return up(S)===u}):Dg,y=h.filter(function(S){return f.indexOf(S)>=0});y.length===0&&(y=h);var v=y.reduce(function(S,x){return S[x]=ig(e,{placement:x,boundary:o,rootBoundary:a,padding:s})[ol(x)],S},{});return Object.keys(v).sort(function(S,x){return v[S]-v[x]})}function P8(e){if(ol(e)===rk)return[];var t=Vv(e);return[u2(e),t,u2(t)]}function A8(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,f=n.padding,u=n.boundary,h=n.rootBoundary,y=n.altBoundary,v=n.flipVariations,S=v===void 0?!0:v,x=n.allowedAutoPlacements,w=t.options.placement,b=ol(w),k=b===w,E=c||(k||!S?[Vv(w)]:P8(w)),O=[w].concat(E).reduce(function(he,ie){return he.concat(ol(ie)===rk?$8(t,{placement:ie,boundary:u,rootBoundary:h,padding:f,flipVariations:S,allowedAutoPlacements:x}):ie)},[]),$=t.rects.reference,A=t.rects.popper,I=new Map,j=!0,_=O[0],W=0;W<O.length;W++){var U=O[W],T=ol(U),L=up(U)===sp,F=[za,Qi].indexOf(T)>=0,H=F?"width":"height",D=ig(t,{placement:U,boundary:u,rootBoundary:h,altBoundary:y,padding:f}),K=F?L?Xi:Fa:L?Qi:za;$[H]>A[H]&&(K=Vv(K));var Q=Vv(K),ee=[];if(a&&ee.push(D[T]<=0),l&&ee.push(D[K]<=0,D[Q]<=0),ee.every(function(he){return he})){_=U,j=!1;break}I.set(U,ee)}if(j)for(var X=S?3:1,te=function(ie){var le=O.find(function(se){var pe=I.get(se);if(pe)return pe.slice(0,ie).every(function(ne){return ne})});if(le)return _=le,"break"},ae=X;ae>0;ae--){var ue=te(ae);if(ue==="break")break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}}const D8={name:"flip",enabled:!0,phase:"main",fn:A8,requiresIfExists:["offset"],data:{_skip:!1}};function f2(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function p2(e){return[za,Xi,Qi,Fa].some(function(t){return e[t]>=0})}function j8(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=ig(t,{elementContext:"reference"}),l=ig(t,{altBoundary:!0}),c=f2(s,r),f=f2(l,o,a),u=p2(c),h=p2(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}const N8={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:j8};function I8(e,t,n){var r=ol(e),o=[Fa,za].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],l=a[1];return s=s||0,l=(l||0)*o,[Fa,Xi].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function L8(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,s=TN.reduce(function(u,h){return u[h]=I8(h,t.rects,a),u},{}),l=s[t.placement],c=l.x,f=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=s}const z8={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:L8};function F8(e){var t=e.state,n=e.name;t.modifiersData[n]=DN({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const _8={name:"popperOffsets",enabled:!0,phase:"read",fn:F8,data:{}};function B8(e){return e==="x"?"y":"x"}function U8(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,f=n.rootBoundary,u=n.altBoundary,h=n.padding,y=n.tether,v=y===void 0?!0:y,S=n.tetherOffset,x=S===void 0?0:S,w=ig(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:u}),b=ol(t.placement),k=up(t.placement),E=!k,O=ik(b),$=B8(O),A=t.modifiersData.popperOffsets,I=t.rects.reference,j=t.rects.popper,_=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,W=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),U=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(A){if(a){var L,F=O==="y"?za:Fa,H=O==="y"?Qi:Xi,D=O==="y"?"height":"width",K=A[O],Q=K+w[F],ee=K-w[H],X=v?-j[D]/2:0,te=k===sp?I[D]:j[D],ae=k===sp?-j[D]:-I[D],ue=t.elements.arrow,he=v&&ue?ak(ue):{width:0,height:0},ie=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ON(),le=ie[F],se=ie[H],pe=Fm(0,I[D],he[D]),ne=E?I[D]/2-X-pe-le-W.mainAxis:te-pe-le-W.mainAxis,me=E?-I[D]/2+X+pe+se+W.mainAxis:ae+pe+se+W.mainAxis,xe=t.elements.arrow&&jg(t.elements.arrow),Se=xe?O==="y"?xe.clientTop||0:xe.clientLeft||0:0,ce=(L=U?.[O])!=null?L:0,Ee=K+ne-ce-Se,Ge=K+me-ce,Te=Fm(v?fb(Q,Ee):Q,K,v?Ju(ee,Ge):ee);A[O]=Te,T[O]=Te-K}if(l){var je,oe=O==="x"?za:Fa,lt=O==="x"?Qi:Xi,Ie=A[$],et=$==="y"?"height":"width",mt=Ie+w[oe],Wt=Ie-w[lt],zt=[za,Fa].indexOf(b)!==-1,tt=(je=U?.[$])!=null?je:0,Je=zt?mt:Ie-I[et]-j[et]-tt+W.altAxis,ct=zt?Ie+I[et]+j[et]-tt-W.altAxis:Wt,Le=v&&zt?f8(Je,Ie,ct):Fm(v?Je:mt,Ie,v?ct:Wt);A[$]=Le,T[$]=Le-Ie}t.modifiersData[r]=T}}const V8={name:"preventOverflow",enabled:!0,phase:"main",fn:U8,requiresIfExists:["offset"]};function H8(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function W8(e){return e===bi(e)||!Gi(e)?sk(e):H8(e)}function q8(e){var t=e.getBoundingClientRect(),n=lp(t.width)/e.offsetWidth||1,r=lp(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Y8(e,t,n){n===void 0&&(n=!1);var r=Gi(t),o=Gi(t)&&q8(t),a=Zc(t),s=cp(e,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((il(t)!=="body"||ck(a))&&(l=W8(t)),Gi(t)?(c=cp(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=lk(a))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function G8(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&o(c)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function K8(e){var t=G8(e);return i8.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Q8(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function X8(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var h2={placement:"bottom",modifiers:[],strategy:"absolute"};function m2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Z8(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,a=o===void 0?h2:o;return function(l,c,f){f===void 0&&(f=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},h2,a),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},h=[],y=!1,v={state:u,setOptions:function(b){var k=typeof b=="function"?b(u.options):b;x(),u.options=Object.assign({},a,u.options,k),u.scrollParents={reference:id(l)?_m(l):l.contextElement?_m(l.contextElement):[],popper:_m(c)};var E=K8(X8([].concat(r,u.options.modifiers)));return u.orderedModifiers=E.filter(function(O){return O.enabled}),S(),v.update()},forceUpdate:function(){if(!y){var b=u.elements,k=b.reference,E=b.popper;if(m2(k,E)){u.rects={reference:Y8(k,jg(E),u.options.strategy==="fixed"),popper:ak(E)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(W){return u.modifiersData[W.name]=Object.assign({},W.data)});for(var O=0;O<u.orderedModifiers.length;O++){if(u.reset===!0){u.reset=!1,O=-1;continue}var $=u.orderedModifiers[O],A=$.fn,I=$.options,j=I===void 0?{}:I,_=$.name;typeof A=="function"&&(u=A({state:u,options:j,name:_,instance:v})||u)}}}},update:Q8(function(){return new Promise(function(w){v.forceUpdate(),w(u)})}),destroy:function(){x(),y=!0}};if(!m2(l,c))return v;v.setOptions(f).then(function(w){!y&&f.onFirstUpdate&&f.onFirstUpdate(w)});function S(){u.orderedModifiers.forEach(function(w){var b=w.name,k=w.options,E=k===void 0?{}:k,O=w.effect;if(typeof O=="function"){var $=O({state:u,name:b,instance:v,options:E}),A=function(){};h.push($||A)}})}function x(){h.forEach(function(w){return w()}),h=[]}return v}}var J8=[w8,_8,x8,c8,z8,D8,V8,g8,N8],eW=Z8({defaultModifiers:J8});function Gs(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...a}=e,s=o?{}:wN(n,r),{props:l,internalRef:c}=CN({...a,externalSlotProps:s}),f=bo(c,s?.ref,e.additionalProps?.ref);return SN(t,{...l,ref:f},r)}function vd(e){return parseInt(C.version,10)>=19?e?.props?.ref||null:e?.ref||null}function tW(e){return typeof e=="function"?e():e}const jN=C.forwardRef(function(t,n){const{children:r,container:o,disablePortal:a=!1}=t,[s,l]=C.useState(null),c=bo(C.isValidElement(r)?vd(r):null,n);if(Ea(()=>{a||l(tW(o)||document.body)},[o,a]),Ea(()=>{if(s&&!a)return aw(n,s),()=>{aw(n,null)}},[n,s,a]),a){if(C.isValidElement(r)){const f={ref:c};return C.cloneElement(r,f)}return r}return s&&Wb.createPortal(r,s)});function nW(e){return dn("MuiPopper",e)}pn("MuiPopper",["root"]);function rW(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function pw(e){return typeof e=="function"?e():e}function oW(e){return e.nodeType!==void 0}const aW=e=>{const{classes:t}=e;return fn({root:["root"]},nW,t)},iW={},sW=C.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:a,disablePortal:s,modifiers:l,open:c,placement:f,popperOptions:u,popperRef:h,slotProps:y={},slots:v={},TransitionProps:S,ownerState:x,...w}=t,b=C.useRef(null),k=bo(b,n),E=C.useRef(null),O=bo(E,h),$=C.useRef(O);Ea(()=>{$.current=O},[O]),C.useImperativeHandle(h,()=>E.current,[]);const A=rW(f,a),[I,j]=C.useState(A),[_,W]=C.useState(pw(r));C.useEffect(()=>{E.current&&E.current.forceUpdate()}),C.useEffect(()=>{r&&W(pw(r))},[r]),Ea(()=>{if(!_||!c)return;const H=Q=>{j(Q.placement)};let D=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Q})=>{H(Q)}}];l!=null&&(D=D.concat(l)),u&&u.modifiers!=null&&(D=D.concat(u.modifiers));const K=eW(_,b.current,{placement:A,...u,modifiers:D});return $.current(K),()=>{K.destroy(),$.current(null)}},[_,s,l,c,u,A]);const U={placement:I};S!==null&&(U.TransitionProps=S);const T=aW(t),L=v.root??"div",F=Gs({elementType:L,externalSlotProps:y.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:k},ownerState:t,className:T.root});return m.jsx(L,{...F,children:typeof o=="function"?o(U):o})}),lW=C.forwardRef(function(t,n){const{anchorEl:r,children:o,container:a,direction:s="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:f,open:u,placement:h="bottom",popperOptions:y=iW,popperRef:v,style:S,transition:x=!1,slotProps:w={},slots:b={},...k}=t,[E,O]=C.useState(!0),$=()=>{O(!1)},A=()=>{O(!0)};if(!c&&!u&&(!x||E))return null;let I;if(a)I=a;else if(r){const W=pw(r);I=W&&oW(W)?Ao(W).body:Ao(null).body}const j=!u&&c&&(!x||E)?"none":void 0,_=x?{in:u,onEnter:$,onExited:A}:void 0;return m.jsx(jN,{disablePortal:l,container:I,children:m.jsx(sW,{anchorEl:r,direction:s,disablePortal:l,modifiers:f,ref:n,open:x?!E:u,placement:h,popperOptions:y,popperRef:v,slotProps:w,slots:b,...k,style:{position:"fixed",top:0,left:0,display:j,...S},TransitionProps:_,children:o})})}),cW=at(lW,{name:"MuiPopper",slot:"Root"})({}),f0=C.forwardRef(function(t,n){const r=Pg(),o=hn({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:c,container:f,disablePortal:u,keepMounted:h,modifiers:y,open:v,placement:S,popperOptions:x,popperRef:w,transition:b,slots:k,slotProps:E,...O}=o,$=k?.root??l?.Root,A={anchorEl:a,container:f,disablePortal:u,keepMounted:h,modifiers:y,open:v,placement:S,popperOptions:x,popperRef:w,transition:b,...O};return m.jsx(cW,{as:s,direction:r?"rtl":"ltr",slots:{root:$},slotProps:E??c,...A,ref:n})});function uW(e){return dn("MuiListSubheader",e)}pn("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const dW=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:a}=e,s={root:["root",n!=="default"&&`color${nt(n)}`,!r&&"gutters",o&&"inset",!a&&"sticky"]};return fn(s,uW,t)},fW=at("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${nt(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(rn(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),pb=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiListSubheader"}),{className:o,color:a="default",component:s="li",disableGutters:l=!1,disableSticky:c=!1,inset:f=!1,...u}=r,h={...r,color:a,component:s,disableGutters:l,disableSticky:c,inset:f},y=dW(h);return m.jsx(fW,{as:s,className:Nt(y.root,o),ref:n,ownerState:h,...u})});pb&&(pb.muiSkipListHighlight=!0);const pW=qa(m.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function hW(e){return dn("MuiChip",e)}const ir=pn("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),mW=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:s,clickable:l,variant:c}=e,f={root:["root",c,n&&"disabled",`size${nt(r)}`,`color${nt(o)}`,l&&"clickable",l&&`clickableColor${nt(o)}`,s&&"deletable",s&&`deletableColor${nt(o)}`,`${c}${nt(o)}`],label:["label",`label${nt(r)}`],avatar:["avatar",`avatar${nt(r)}`,`avatarColor${nt(o)}`],icon:["icon",`icon${nt(r)}`,`iconColor${nt(a)}`],deleteIcon:["deleteIcon",`deleteIcon${nt(r)}`,`deleteIconColor${nt(o)}`,`deleteIcon${nt(c)}Color${nt(o)}`]};return fn(f,hW,t)},gW=at("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:s,size:l,variant:c}=n;return[{[`& .${ir.avatar}`]:t.avatar},{[`& .${ir.avatar}`]:t[`avatar${nt(l)}`]},{[`& .${ir.avatar}`]:t[`avatarColor${nt(r)}`]},{[`& .${ir.icon}`]:t.icon},{[`& .${ir.icon}`]:t[`icon${nt(l)}`]},{[`& .${ir.icon}`]:t[`iconColor${nt(o)}`]},{[`& .${ir.deleteIcon}`]:t.deleteIcon},{[`& .${ir.deleteIcon}`]:t[`deleteIcon${nt(l)}`]},{[`& .${ir.deleteIcon}`]:t[`deleteIconColor${nt(r)}`]},{[`& .${ir.deleteIcon}`]:t[`deleteIcon${nt(c)}Color${nt(r)}`]},t.root,t[`size${nt(l)}`],t[`color${nt(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${nt(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${nt(r)}`],t[c],t[`${c}${nt(r)}`]]}})(rn(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${ir.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${ir.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${ir.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${ir.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${ir.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${ir.icon}`]:{marginLeft:5,marginRight:-6},[`& .${ir.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${ir.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${ir.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(zr(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${ir.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${ir.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${ir.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${ir.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(zr(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${ir.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${ir.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(zr(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${ir.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${ir.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ir.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${ir.avatar}`]:{marginLeft:4},[`& .${ir.avatarSmall}`]:{marginLeft:2},[`& .${ir.icon}`]:{marginLeft:4},[`& .${ir.iconSmall}`]:{marginLeft:2},[`& .${ir.deleteIcon}`]:{marginRight:5},[`& .${ir.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(zr()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${ir.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${ir.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${ir.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),yW=at("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${nt(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function g2(e){return e.key==="Backspace"||e.key==="Delete"}const NN=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:s,color:l="default",component:c,deleteIcon:f,disabled:u=!1,icon:h,label:y,onClick:v,onDelete:S,onKeyDown:x,onKeyUp:w,size:b="medium",variant:k="filled",tabIndex:E,skipFocusWhenDisabled:O=!1,slots:$={},slotProps:A={},...I}=r,j=C.useRef(null),_=bo(j,n),W=le=>{le.stopPropagation(),S&&S(le)},U=le=>{le.currentTarget===le.target&&g2(le)&&le.preventDefault(),x&&x(le)},T=le=>{le.currentTarget===le.target&&S&&g2(le)&&S(le),w&&w(le)},L=s!==!1&&v?!0:s,F=L||S?ad:c||"div",H={...r,component:F,disabled:u,size:b,color:l,iconColor:C.isValidElement(h)&&h.props.color||l,onDelete:!!S,clickable:L,variant:k},D=mW(H),K=F===ad?{component:c||"div",focusVisibleClassName:D.focusVisible,...S&&{disableRipple:!0}}:{};let Q=null;S&&(Q=f&&C.isValidElement(f)?C.cloneElement(f,{className:Nt(f.props.className,D.deleteIcon),onClick:W}):m.jsx(pW,{className:D.deleteIcon,onClick:W}));let ee=null;o&&C.isValidElement(o)&&(ee=C.cloneElement(o,{className:Nt(D.avatar,o.props.className)}));let X=null;h&&C.isValidElement(h)&&(X=C.cloneElement(h,{className:Nt(D.icon,h.props.className)}));const te={slots:$,slotProps:A},[ae,ue]=An("root",{elementType:gW,externalForwardedProps:{...te,...I},ownerState:H,shouldForwardComponentProp:!0,ref:_,className:Nt(D.root,a),additionalProps:{disabled:L&&u?!0:void 0,tabIndex:O&&u?-1:E,...K},getSlotProps:le=>({...le,onClick:se=>{le.onClick?.(se),v?.(se)},onKeyDown:se=>{le.onKeyDown?.(se),U(se)},onKeyUp:se=>{le.onKeyUp?.(se),T(se)}})}),[he,ie]=An("label",{elementType:yW,externalForwardedProps:te,ownerState:H,className:D.label});return m.jsxs(ae,{as:F,...ue,children:[ee||X,m.jsx(he,{...ie,children:y}),Q]})});function ov(e){return parseInt(e,10)||0}const vW={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function bW(e){for(const t in e)return!1;return!0}function y2(e){return bW(e)||e.outerHeightStyle===0&&!e.overflowing}const xW=C.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:a=1,style:s,value:l,...c}=t,{current:f}=C.useRef(l!=null),u=C.useRef(null),h=bo(n,u),y=C.useRef(null),v=C.useRef(null),S=C.useCallback(()=>{const E=u.current,O=v.current;if(!E||!O)return;const A=Hl(E).getComputedStyle(E);if(A.width==="0px")return{outerHeightStyle:0,overflowing:!1};O.style.width=A.width,O.value=E.value||t.placeholder||"x",O.value.slice(-1)===`
213
+ `&&(O.value+=" ");const I=A.boxSizing,j=ov(A.paddingBottom)+ov(A.paddingTop),_=ov(A.borderBottomWidth)+ov(A.borderTopWidth),W=O.scrollHeight;O.value="x";const U=O.scrollHeight;let T=W;a&&(T=Math.max(Number(a)*U,T)),o&&(T=Math.min(Number(o)*U,T)),T=Math.max(T,U);const L=T+(I==="border-box"?j+_:0),F=Math.abs(T-W)<=1;return{outerHeightStyle:L,overflowing:F}},[o,a,t.placeholder]),x=No(()=>{const E=u.current,O=S();if(!E||!O||y2(O))return!1;const $=O.outerHeightStyle;return y.current!=null&&y.current!==$}),w=C.useCallback(()=>{const E=u.current,O=S();if(!E||!O||y2(O))return;const $=O.outerHeightStyle;y.current!==$&&(y.current=$,E.style.height=`${$}px`),E.style.overflow=O.overflowing?"hidden":""},[S]),b=C.useRef(-1);Ea(()=>{const E=mN(w),O=u?.current;if(!O)return;const $=Hl(O);$.addEventListener("resize",E);let A;return typeof ResizeObserver<"u"&&(A=new ResizeObserver(()=>{x()&&(A.unobserve(O),cancelAnimationFrame(b.current),w(),b.current=requestAnimationFrame(()=>{A.observe(O)}))}),A.observe(O)),()=>{E.clear(),cancelAnimationFrame(b.current),$.removeEventListener("resize",E),A&&A.disconnect()}},[S,w,x]),Ea(()=>{w()});const k=E=>{f||w();const O=E.target,$=O.value.length,A=O.value.endsWith(`
214
+ `),I=O.selectionStart===$;A&&I&&O.setSelectionRange($,$),r&&r(E)};return m.jsxs(C.Fragment,{children:[m.jsx("textarea",{value:l,onChange:k,ref:h,rows:a,style:s,...c}),m.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:v,tabIndex:-1,style:{...vW.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function Jc({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const p0=C.createContext(void 0);function fl(){return C.useContext(p0)}function v2(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function hb(e,t=!1){return e&&(v2(e.value)&&e.value!==""||t&&v2(e.defaultValue)&&e.defaultValue!=="")}function SW(e){return e.startAdornment}function wW(e){return dn("MuiInputBase",e)}const ui=pn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var b2;const h0=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${nt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},m0=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},CW=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:s,formControl:l,fullWidth:c,hiddenLabel:f,multiline:u,readOnly:h,size:y,startAdornment:v,type:S}=e,x={root:["root",`color${nt(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",s&&"focused",l&&"formControl",y&&y!=="medium"&&`size${nt(y)}`,u&&"multiline",v&&"adornedStart",a&&"adornedEnd",f&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",S==="search"&&"inputTypeSearch",u&&"inputMultiline",y==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",v&&"inputAdornedStart",a&&"inputAdornedEnd",h&&"readOnly"]};return fn(x,wW,t)},g0=at("div",{name:"MuiInputBase",slot:"Root",overridesResolver:h0})(rn(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ui.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),y0=at("input",{name:"MuiInputBase",slot:"Input",overridesResolver:m0})(rn(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ui.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${ui.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),x2=ek({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),uk=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,color:c,components:f={},componentsProps:u={},defaultValue:h,disabled:y,disableInjectingGlobalStyles:v,endAdornment:S,error:x,fullWidth:w=!1,id:b,inputComponent:k="input",inputProps:E={},inputRef:O,margin:$,maxRows:A,minRows:I,multiline:j=!1,name:_,onBlur:W,onChange:U,onClick:T,onFocus:L,onKeyDown:F,onKeyUp:H,placeholder:D,readOnly:K,renderSuffix:Q,rows:ee,size:X,slotProps:te={},slots:ae={},startAdornment:ue,type:he="text",value:ie,...le}=r,se=E.value!=null?E.value:ie,{current:pe}=C.useRef(se!=null),ne=C.useRef(),me=C.useCallback(De=>{},[]),xe=bo(ne,O,E.ref,me),[Se,ce]=C.useState(!1),Ee=fl(),Ge=Jc({props:r,muiFormControl:Ee,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ge.focused=Ee?Ee.focused:Se,C.useEffect(()=>{!Ee&&y&&Se&&(ce(!1),W&&W())},[Ee,y,Se,W]);const Te=Ee&&Ee.onFilled,je=Ee&&Ee.onEmpty,oe=C.useCallback(De=>{hb(De)?Te&&Te():je&&je()},[Te,je]);Ea(()=>{pe&&oe({value:se})},[se,oe,pe]);const lt=De=>{L&&L(De),E.onFocus&&E.onFocus(De),Ee&&Ee.onFocus?Ee.onFocus(De):ce(!0)},Ie=De=>{W&&W(De),E.onBlur&&E.onBlur(De),Ee&&Ee.onBlur?Ee.onBlur(De):ce(!1)},et=(De,...wt)=>{if(!pe){const Ct=De.target||ne.current;if(Ct==null)throw new Error(Vl(1));oe({value:Ct.value})}E.onChange&&E.onChange(De,...wt),U&&U(De,...wt)};C.useEffect(()=>{oe(ne.current)},[]);const mt=De=>{ne.current&&De.currentTarget===De.target&&ne.current.focus(),T&&T(De)};let Wt=k,zt=E;j&&Wt==="input"&&(ee?zt={type:void 0,minRows:ee,maxRows:ee,...zt}:zt={type:void 0,maxRows:A,minRows:I,...zt},Wt=xW);const tt=De=>{oe(De.animationName==="mui-auto-fill-cancel"?ne.current:{value:"x"})};C.useEffect(()=>{Ee&&Ee.setAdornedStart(!!ue)},[Ee,ue]);const Je={...r,color:Ge.color||"primary",disabled:Ge.disabled,endAdornment:S,error:Ge.error,focused:Ge.focused,formControl:Ee,fullWidth:w,hiddenLabel:Ge.hiddenLabel,multiline:j,size:Ge.size,startAdornment:ue,type:he},ct=CW(Je),Le=ae.root||f.Root||g0,ge=te.root||u.root||{},qe=ae.input||f.Input||y0;return zt={...zt,...te.input??u.input},m.jsxs(C.Fragment,{children:[!v&&typeof x2=="function"&&(b2||(b2=m.jsx(x2,{}))),m.jsxs(Le,{...ge,ref:n,onClick:mt,...le,...!Bc(Le)&&{ownerState:{...Je,...ge.ownerState}},className:Nt(ct.root,ge.className,l,K&&"MuiInputBase-readOnly"),children:[ue,m.jsx(p0.Provider,{value:null,children:m.jsx(qe,{"aria-invalid":Ge.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:h,disabled:Ge.disabled,id:b,onAnimationStart:tt,name:_,placeholder:D,readOnly:K,required:Ge.required,rows:ee,value:se,onKeyDown:F,onKeyUp:H,type:he,...zt,...!Bc(qe)&&{as:Wt,ownerState:{...Je,...zt.ownerState}},ref:xe,className:Nt(ct.input,zt.className,K&&"MuiInputBase-readOnly"),onBlur:Ie,onChange:et,onFocus:lt})}),S,Q?Q({...Ge,startAdornment:ue}):null]})]})});function kW(e){return dn("MuiInput",e)}const jc={...ui,...pn("MuiInput",["root","underline","input"])};function EW(e){return dn("MuiOutlinedInput",e)}const Li={...ui,...pn("MuiOutlinedInput",["root","notchedOutline","input"])};function TW(e){return dn("MuiFilledInput",e)}const di={...ui,...pn("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},IN=qa(m.jsx("path",{d:"M7 10l5 5 5-5z"}));function MW(e){return dn("MuiAutocomplete",e)}const Kn=pn("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var S2,w2;const RW=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:a,hasClearIcon:s,hasPopupIcon:l,inputFocused:c,popupOpen:f,size:u}=e,h={root:["root",r&&"expanded",o&&"focused",a&&"fullWidth",s&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${nt(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",f&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return fn(h,MW,t)},OW=at("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:a,inputFocused:s,size:l}=n;return[{[`& .${Kn.tag}`]:t.tag},{[`& .${Kn.tag}`]:t[`tagSize${nt(l)}`]},{[`& .${Kn.inputRoot}`]:t.inputRoot},{[`& .${Kn.input}`]:t.input},{[`& .${Kn.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${Kn.focused} .${Kn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Kn.clearIndicator}`]:{visibility:"visible"}},[`& .${Kn.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Kn.inputRoot}`]:{[`.${Kn.hasPopupIcon}&, .${Kn.hasClearIcon}&`]:{paddingRight:30},[`.${Kn.hasPopupIcon}.${Kn.hasClearIcon}&`]:{paddingRight:56},[`& .${Kn.input}`]:{width:0,minWidth:30}},[`& .${jc.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${jc.root}.${ui.sizeSmall}`]:{[`& .${jc.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Li.root}`]:{padding:9,[`.${Kn.hasPopupIcon}&, .${Kn.hasClearIcon}&`]:{paddingRight:39},[`.${Kn.hasPopupIcon}.${Kn.hasClearIcon}&`]:{paddingRight:65},[`& .${Kn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Kn.endAdornment}`]:{right:9}},[`& .${Li.root}.${ui.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Kn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${di.root}`]:{paddingTop:19,paddingLeft:8,[`.${Kn.hasPopupIcon}&, .${Kn.hasClearIcon}&`]:{paddingRight:39},[`.${Kn.hasPopupIcon}.${Kn.hasClearIcon}&`]:{paddingRight:65},[`& .${di.input}`]:{padding:"7px 4px"},[`& .${Kn.endAdornment}`]:{right:9}},[`& .${di.root}.${ui.sizeSmall}`]:{paddingBottom:1,[`& .${di.input}`]:{padding:"2.5px 4px"}},[`& .${ui.hiddenLabel}`]:{paddingTop:8},[`& .${di.root}.${ui.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Kn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${di.root}.${ui.hiddenLabel}.${ui.sizeSmall}`]:{[`& .${Kn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Kn.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Kn.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Kn.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Kn.inputRoot}`]:{flexWrap:"wrap"}}}]}),$W=at("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),PW=at(Jr,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),AW=at(Jr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),DW=at(f0,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Kn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(rn(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),jW=at(Wa,{name:"MuiAutocomplete",slot:"Paper"})(rn(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),NW=at("div",{name:"MuiAutocomplete",slot:"Loading"})(rn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),IW=at("div",{name:"MuiAutocomplete",slot:"NoOptions"})(rn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),LW=at("ul",{name:"MuiAutocomplete",slot:"Listbox"})(rn(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Kn.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Kn.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Kn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Kn.focused}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Kn.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),zW=at(pb,{name:"MuiAutocomplete",slot:"GroupLabel"})(rn(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),FW=at("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${Kn.option}`]:{paddingLeft:24}}),_W=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiAutocomplete"}),{autoComplete:o=!1,autoHighlight:a=!1,autoSelect:s=!1,blurOnSelect:l=!1,ChipProps:c,className:f,clearIcon:u=S2||(S2=m.jsx(kN,{fontSize:"small"})),clearOnBlur:h=!r.freeSolo,clearOnEscape:y=!1,clearText:v="Clear",closeText:S="Close",componentsProps:x,defaultValue:w=r.multiple?[]:null,disableClearable:b=!1,disableCloseOnSelect:k=!1,disabled:E=!1,disabledItemsFocusable:O=!1,disableListWrap:$=!1,disablePortal:A=!1,filterOptions:I,filterSelectedOptions:j=!1,forcePopupIcon:_="auto",freeSolo:W=!1,fullWidth:U=!1,getLimitTagsText:T=Tt=>`+${Tt}`,getOptionDisabled:L,getOptionKey:F,getOptionLabel:H,isOptionEqualToValue:D,groupBy:K,handleHomeEndKeys:Q=!r.freeSolo,id:ee,includeInputInList:X=!1,inputValue:te,limitTags:ae=-1,ListboxComponent:ue,ListboxProps:he,loading:ie=!1,loadingText:le="Loading…",multiple:se=!1,noOptionsText:pe="No options",onChange:ne,onClose:me,onHighlightChange:xe,onInputChange:Se,onOpen:ce,open:Ee,openOnFocus:Ge=!1,openText:Te="Open",options:je,PaperComponent:oe,PopperComponent:lt,popupIcon:Ie=w2||(w2=m.jsx(IN,{})),readOnly:et=!1,renderGroup:mt,renderInput:Wt,renderOption:zt,renderTags:tt,renderValue:Je,selectOnFocus:ct=!r.freeSolo,size:Le="medium",slots:ge={},slotProps:qe={},value:De,...wt}=r,{getRootProps:Ct,getInputProps:yt,getInputLabelProps:st,getPopupIndicatorProps:jt,getClearProps:qt,getItemProps:mn,getListboxProps:$n,getOptionProps:_n,value:Un,dirty:Jt,expanded:Dn,id:Ce,popupOpen:Vn,focused:Mn,focusedItem:en,anchorEl:$t,setAnchorEl:Fr,inputValue:Fn,groupedOptions:on}=GH({...r,componentName:"Autocomplete"}),Ln=!b&&!E&&Jt&&!et,ye=(!W||_===!0)&&_!==!1,{onMouseDown:Me}=yt(),{ref:ze,...Ve}=$n(),kt=H||(Tt=>Tt.label??Tt),bt={...r,disablePortal:A,expanded:Dn,focused:Mn,fullWidth:U,getOptionLabel:kt,hasClearIcon:Ln,hasPopupIcon:ye,inputFocused:en===-1,popupOpen:Vn,size:Le},Et=RW(bt),Pt={slots:{paper:oe,popper:lt,...ge},slotProps:{chip:c,listbox:he,...x,...qe}},[Kt,At]=An("listbox",{elementType:LW,externalForwardedProps:Pt,ownerState:bt,className:Et.listbox,additionalProps:Ve,ref:ze}),[Ft,de]=An("paper",{elementType:Wa,externalForwardedProps:Pt,ownerState:bt,className:Et.paper}),[fe,Fe]=An("popper",{elementType:f0,externalForwardedProps:Pt,ownerState:bt,className:Et.popper,additionalProps:{disablePortal:A,style:{width:$t?$t.clientWidth:null},role:"presentation",anchorEl:$t,open:Vn}});let ft;const Ue=Tt=>({className:Et.tag,disabled:E,...mn(Tt)});if(se?Un.length>0&&(tt?ft=tt(Un,Ue,bt):Je?ft=Je(Un,Ue,bt):ft=Un.map((Tt,Mt)=>{const{key:Dt,...Zt}=Ue({index:Mt});return m.jsx(NN,{label:kt(Tt),size:Le,...Zt,...Pt.slotProps.chip},Dt)})):Je&&Un!=null&&(ft=Je(Un,Ue,bt)),ae>-1&&Array.isArray(ft)){const Tt=ft.length-ae;!Mn&&Tt>0&&(ft=ft.splice(0,ae),ft.push(m.jsx("span",{className:Et.tag,children:T(Tt)},ft.length)))}const Yt=mt||(Tt=>m.jsxs("li",{children:[m.jsx(zW,{className:Et.groupLabel,ownerState:bt,component:"div",children:Tt.group}),m.jsx(FW,{className:Et.groupUl,ownerState:bt,children:Tt.children})]},Tt.key)),ve=zt||((Tt,Mt)=>{const{key:Dt,...Zt}=Tt;return m.jsx("li",{...Zt,children:kt(Mt)},Dt)}),Re=(Tt,Mt)=>{const Dt=_n({option:Tt,index:Mt});return ve({...Dt,className:Et.option},Tt,{selected:Dt["aria-selected"],index:Mt,inputValue:Fn},bt)},it=Pt.slotProps.clearIndicator,xt=Pt.slotProps.popupIndicator;return m.jsxs(C.Fragment,{children:[m.jsx(OW,{ref:n,className:Nt(Et.root,f),ownerState:bt,...Ct(wt),children:Wt({id:Ce,disabled:E,fullWidth:!0,size:Le==="small"?"small":void 0,InputLabelProps:st(),InputProps:{ref:Fr,className:Et.inputRoot,startAdornment:ft,onMouseDown:Tt=>{Tt.target===Tt.currentTarget&&Me(Tt)},...(Ln||ye)&&{endAdornment:m.jsxs($W,{className:Et.endAdornment,ownerState:bt,children:[Ln?m.jsx(PW,{...qt(),"aria-label":v,title:v,ownerState:bt,...it,className:Nt(Et.clearIndicator,it?.className),children:u}):null,ye?m.jsx(AW,{...jt(),disabled:E,"aria-label":Vn?S:Te,title:Vn?S:Te,ownerState:bt,...xt,className:Nt(Et.popupIndicator,xt?.className),children:Ie}):null]})}},inputProps:{className:Et.input,disabled:E,readOnly:et,...yt()}})}),$t?m.jsx(DW,{as:fe,...Fe,children:m.jsxs(jW,{as:Ft,...de,children:[ie&&on.length===0?m.jsx(NW,{className:Et.loading,ownerState:bt,children:le}):null,on.length===0&&!W&&!ie?m.jsx(IW,{className:Et.noOptions,ownerState:bt,role:"presentation",onMouseDown:Tt=>{Tt.preventDefault()},children:pe}):null,on.length>0?m.jsx(Kt,{as:ue,...At,children:on.map((Tt,Mt)=>K?Yt({key:Tt.key,group:Tt.group,children:Tt.options.map((Dt,Zt)=>Re(Dt,Tt.index+Zt))}):Re(Tt,Mt))}):null]})}):null]})}),BW={entering:{opacity:1},entered:{opacity:1}},hw=C.forwardRef(function(t,n){const r=Xc(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,easing:c,in:f,onEnter:u,onEntered:h,onEntering:y,onExit:v,onExited:S,onExiting:x,style:w,timeout:b=o,TransitionComponent:k=dl,...E}=t,O=C.useRef(null),$=bo(O,vd(l),n),A=F=>H=>{if(F){const D=O.current;H===void 0?F(D):F(D,H)}},I=A(y),j=A((F,H)=>{xN(F);const D=ub({style:w,timeout:b,easing:c},{mode:"enter"});F.style.webkitTransition=r.transitions.create("opacity",D),F.style.transition=r.transitions.create("opacity",D),u&&u(F,H)}),_=A(h),W=A(x),U=A(F=>{const H=ub({style:w,timeout:b,easing:c},{mode:"exit"});F.style.webkitTransition=r.transitions.create("opacity",H),F.style.transition=r.transitions.create("opacity",H),v&&v(F)}),T=A(S),L=F=>{a&&a(O.current,F)};return m.jsx(k,{appear:s,in:f,nodeRef:O,onEnter:j,onEntered:_,onEntering:I,onExit:U,onExited:T,onExiting:W,addEndListener:L,timeout:b,...E,children:(F,{ownerState:H,...D})=>C.cloneElement(l,{style:{opacity:0,visibility:F==="exited"&&!f?"hidden":void 0,...BW[F],...w,...l.props.style},ref:$,...D})})});function UW(e){return dn("MuiBackdrop",e)}pn("MuiBackdrop",["root","invisible"]);const VW=e=>{const{classes:t,invisible:n}=e;return fn({root:["root",n&&"invisible"]},UW,t)},HW=at("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),LN=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiBackdrop"}),{children:o,className:a,component:s="div",invisible:l=!1,open:c,components:f={},componentsProps:u={},slotProps:h={},slots:y={},TransitionComponent:v,transitionDuration:S,...x}=r,w={...r,component:s,invisible:l},b=VW(w),k={transition:v,root:f.Root,...y},E={...u,...h},O={component:s,slots:k,slotProps:E},[$,A]=An("root",{elementType:HW,externalForwardedProps:O,className:Nt(b.root,a),ownerState:w}),[I,j]=An("transition",{elementType:hw,externalForwardedProps:O,ownerState:w});return m.jsx(I,{in:c,timeout:S,...x,...j,children:m.jsx($,{"aria-hidden":!0,...A,classes:b,ref:n,children:o})})}),WW=pn("MuiBox",["root"]),qW=l0(),_t=HC({themeId:Cs,defaultTheme:qW,defaultClassName:WW.root,generateClassName:VC.generate});function YW(e){return dn("MuiButton",e)}const $u=pn("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),GW=C.createContext({}),KW=C.createContext(void 0),QW=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,loading:s,loadingPosition:l,classes:c}=e,f={root:["root",s&&"loading",a,`${a}${nt(t)}`,`size${nt(o)}`,`${a}Size${nt(o)}`,`color${nt(t)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${nt(l)}`],startIcon:["icon","startIcon",`iconSize${nt(o)}`],endIcon:["icon","endIcon",`iconSize${nt(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=fn(f,YW,c);return{...c,...u}},zN=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],XW=at(ad,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${nt(n.color)}`],t[`size${nt(n.size)}`],t[`${n.variant}Size${nt(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(rn(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${$u.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${$u.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${$u.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${$u.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(zr()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${$u.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${$u.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${$u.loading}`]:{color:"transparent"}}}]}})),ZW=at("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${nt(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...zN]})),JW=at("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${nt(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...zN]})),e9=at("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),C2=at("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),eo=C.forwardRef(function(t,n){const r=C.useContext(GW),o=C.useContext(KW),a=og(r,t),s=hn({props:a,name:"MuiButton"}),{children:l,color:c="primary",component:f="button",className:u,disabled:h=!1,disableElevation:y=!1,disableFocusRipple:v=!1,endIcon:S,focusVisibleClassName:x,fullWidth:w=!1,id:b,loading:k=null,loadingIndicator:E,loadingPosition:O="center",size:$="medium",startIcon:A,type:I,variant:j="text",..._}=s,W=Qc(b),U=E??m.jsx(Ag,{"aria-labelledby":W,color:"inherit",size:16}),T={...s,color:c,component:f,disabled:h,disableElevation:y,disableFocusRipple:v,fullWidth:w,loading:k,loadingIndicator:U,loadingPosition:O,size:$,type:I,variant:j},L=QW(T),F=(A||k&&O==="start")&&m.jsx(ZW,{className:L.startIcon,ownerState:T,children:A||m.jsx(C2,{className:L.loadingIconPlaceholder,ownerState:T})}),H=(S||k&&O==="end")&&m.jsx(JW,{className:L.endIcon,ownerState:T,children:S||m.jsx(C2,{className:L.loadingIconPlaceholder,ownerState:T})}),D=o||"",K=typeof k=="boolean"?m.jsx("span",{className:L.loadingWrapper,style:{display:"contents"},children:k&&m.jsx(e9,{className:L.loadingIndicator,ownerState:T,children:U})}):null;return m.jsxs(XW,{ownerState:T,className:Nt(r.className,L.root,u,D),component:f,disabled:h||k,focusRipple:!v,focusVisibleClassName:Nt(L.focusVisible,x),ref:n,type:I,id:k?W:b,..._,classes:L,children:[F,O!=="end"&&K,l,O==="end"&&K,H]})});function t9(e){return dn("MuiCard",e)}pn("MuiCard",["root"]);const n9=e=>{const{classes:t}=e;return fn({root:["root"]},t9,t)},r9=at(Wa,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),o9=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiCard"}),{className:o,raised:a=!1,...s}=r,l={...r,raised:a},c=n9(l);return m.jsx(r9,{className:Nt(c.root,o),elevation:a?8:void 0,ref:n,ownerState:l,...s})});function a9(e){return dn("MuiCardContent",e)}pn("MuiCardContent",["root"]);const i9=e=>{const{classes:t}=e;return fn({root:["root"]},a9,t)},s9=at("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),l9=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiCardContent"}),{className:o,component:a="div",...s}=r,l={...r,component:a},c=i9(l);return m.jsx(s9,{as:a,className:Nt(c.root,o),ownerState:l,ref:n,...s})});function c9(e){return dn("MuiCardMedia",e)}pn("MuiCardMedia",["root","media","img"]);const u9=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return fn({root:["root",n&&"media",r&&"img"]},c9,t)},d9=at("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:o}=n;return[t.root,r&&t.media,o&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),f9=["video","audio","picture","iframe","img"],p9=["picture","img"],h9=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiCardMedia"}),{children:o,className:a,component:s="div",image:l,src:c,style:f,...u}=r,h=f9.includes(s),y=!h&&l?{backgroundImage:`url("${l}")`,...f}:f,v={...r,component:s,isMediaComponent:h,isImageComponent:p9.includes(s)},S=u9(v);return m.jsx(d9,{className:Nt(S.root,a),as:s,role:!h&&l?"img":void 0,ref:n,style:y,ownerState:v,src:h?l||c:void 0,...u,children:o})});function m9(e){return dn("PrivateSwitchBase",e)}pn("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const g9=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${nt(o)}`],input:["input"]};return fn(a,m9,t)},y9=at(ad,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),v9=at("input",{name:"MuiSwitchBase",shouldForwardProp:Ma})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),FN=C.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:a,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:f=!1,icon:u,id:h,inputProps:y,inputRef:v,name:S,onBlur:x,onChange:w,onFocus:b,readOnly:k,required:E=!1,tabIndex:O,type:$,value:A,slots:I={},slotProps:j={},..._}=t,[W,U]=_c({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),T=fl(),L=ie=>{b&&b(ie),T&&T.onFocus&&T.onFocus(ie)},F=ie=>{x&&x(ie),T&&T.onBlur&&T.onBlur(ie)},H=ie=>{if(ie.nativeEvent.defaultPrevented)return;const le=ie.target.checked;U(le),w&&w(ie,le)};let D=l;T&&typeof D>"u"&&(D=T.disabled);const K=$==="checkbox"||$==="radio",Q={...t,checked:W,disabled:D,disableFocusRipple:c,edge:f},ee=g9(Q),X={slots:I,slotProps:{input:y,...j}},[te,ae]=An("root",{ref:n,elementType:y9,className:ee.root,shouldForwardComponentProp:!0,externalForwardedProps:{...X,component:"span",..._},getSlotProps:ie=>({...ie,onFocus:le=>{ie.onFocus?.(le),L(le)},onBlur:le=>{ie.onBlur?.(le),F(le)}}),ownerState:Q,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:D,role:void 0,tabIndex:null}}),[ue,he]=An("input",{ref:v,elementType:v9,className:ee.input,externalForwardedProps:X,getSlotProps:ie=>({...ie,onChange:le=>{ie.onChange?.(le),H(le)}}),ownerState:Q,additionalProps:{autoFocus:r,checked:o,defaultChecked:s,disabled:D,id:K?h:void 0,name:S,readOnly:k,required:E,tabIndex:O,type:$,...$==="checkbox"&&A===void 0?{}:{value:A}}});return m.jsxs(te,{...ae,children:[m.jsx(ue,{...he}),W?a:u]})}),b9=qa(m.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),x9=qa(m.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),S9=qa(m.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function w9(e){return dn("MuiCheckbox",e)}const Z1=pn("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),C9=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${nt(r)}`,`size${nt(o)}`]},s=fn(a,w9,t);return{...t,...s}},k9=at(FN,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${nt(n.size)}`],n.color!=="default"&&t[`color${nt(n.color)}`]]}})(rn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(zr()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(zr()).map(([t])=>({props:{color:t},style:{[`&.${Z1.checked}, &.${Z1.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Z1.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),E9=m.jsx(x9,{}),T9=m.jsx(b9,{}),M9=m.jsx(S9,{}),R9=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiCheckbox"}),{checkedIcon:o=E9,color:a="primary",icon:s=T9,indeterminate:l=!1,indeterminateIcon:c=M9,inputProps:f,size:u="medium",disableRipple:h=!1,className:y,slots:v={},slotProps:S={},...x}=r,w=l?c:s,b=l?c:o,k={...r,disableRipple:h,color:a,indeterminate:l,size:u},E=C9(k),O=S.input??f,[$,A]=An("root",{ref:n,elementType:k9,className:Nt(E.root,y),shouldForwardComponentProp:!0,externalForwardedProps:{slots:v,slotProps:S,...x},ownerState:k,additionalProps:{type:"checkbox",icon:C.cloneElement(w,{fontSize:w.props.fontSize??u}),checkedIcon:C.cloneElement(b,{fontSize:b.props.fontSize??u}),disableRipple:h,slots:v,slotProps:{input:gN(typeof O=="function"?O(k):O,{"data-indeterminate":l})}}});return m.jsx($,{...A,classes:E})});function k2(e){return e.substring(2).toLowerCase()}function O9(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function $9(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,s=C.useRef(!1),l=C.useRef(null),c=C.useRef(!1),f=C.useRef(!1);C.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const u=bo(vd(t),l),h=No(S=>{const x=f.current;f.current=!1;const w=Ao(l.current);if(!c.current||!l.current||"clientX"in S&&O9(S,w))return;if(s.current){s.current=!1;return}let b;S.composedPath?b=S.composedPath().includes(l.current):b=!w.documentElement.contains(S.target)||l.current.contains(S.target),!b&&(n||!x)&&o(S)}),y=S=>x=>{f.current=!0;const w=t.props[S];w&&w(x)},v={ref:u};return a!==!1&&(v[a]=y(a)),C.useEffect(()=>{if(a!==!1){const S=k2(a),x=Ao(l.current),w=()=>{s.current=!0};return x.addEventListener(S,h),x.addEventListener("touchmove",w),()=>{x.removeEventListener(S,h),x.removeEventListener("touchmove",w)}}},[h,a]),r!==!1&&(v[r]=y(r)),C.useEffect(()=>{if(r!==!1){const S=k2(r),x=Ao(l.current);return x.addEventListener(S,h),()=>{x.removeEventListener(S,h)}}},[h,r]),C.cloneElement(t,v)}const dk=A6({createStyledComponent:at("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${nt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>hn({props:e,name:"MuiContainer"})}),mw=typeof ek({})=="function",P9=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),A9=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),_N=(e,t=!1)=>{const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([a,s])=>{const l=e.getColorSchemeSelector(a);l.startsWith("@")?n[l]={":root":{colorScheme:s.palette?.mode}}:n[l.replace(/\s*&/,"")]={colorScheme:s.palette?.mode}});let r={html:P9(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...A9(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=e.components?.MuiCssBaseline?.styleOverrides;return o&&(r=[r,o]),r},Hv="mui-ecs",D9=e=>{const t=_N(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Hv})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([r,o])=>{const a=e.getColorSchemeSelector(r);a.startsWith("@")?n[a]={[`:root:not(:has(.${Hv}))`]:{colorScheme:o.palette?.mode}}:n[a.replace(/\s*&/,"")]={[`&:not(:has(.${Hv}))`]:{colorScheme:o.palette?.mode}}}),t},j9=ek(mw?({theme:e,enableColorScheme:t})=>_N(e,t):({theme:e})=>D9(e));function N9(e){const t=hn({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return m.jsxs(C.Fragment,{children:[mw&&m.jsx(j9,{enableColorScheme:r}),!mw&&!r&&m.jsx("span",{className:Hv,style:{display:"none"}}),n]})}function BN(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function I9(e){const t=Ao(e);return t.body===e?Hl(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Bm(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function E2(e){return parseInt(Hl(e).getComputedStyle(e).paddingRight,10)||0}function L9(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function T2(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,s=>{const l=!a.includes(s),c=!L9(s);l&&c&&Bm(s,o)})}function J1(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function z9(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(I9(r)){const s=BN(Hl(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${E2(r)+s}px`;const l=Ao(r).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${E2(c)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=Ao(r).body;else{const s=r.parentElement,l=Hl(r);a=s?.nodeName==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:l})=>{a?s.style.setProperty(l,a):s.style.removeProperty(l)})}}function F9(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class _9{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Bm(t.modalRef,!1);const o=F9(n);T2(n,t.mount,t.modalRef,o,!0);const a=J1(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=J1(this.containers,a=>a.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=z9(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=J1(this.containers,s=>s.modals.includes(t)),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Bm(t.modalRef,n),T2(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&Bm(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const B9=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function U9(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function V9(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function H9(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||V9(e))}function W9(e){const t=[],n=[];return Array.from(e.querySelectorAll(B9)).forEach((r,o)=>{const a=U9(r);a===-1||!H9(r)||(a===0?t.push(r):n.push({documentOrder:o,tabIndex:a,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function q9(){return!0}function Y9(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=W9,isEnabled:s=q9,open:l}=e,c=C.useRef(!1),f=C.useRef(null),u=C.useRef(null),h=C.useRef(null),y=C.useRef(null),v=C.useRef(!1),S=C.useRef(null),x=bo(vd(t),S),w=C.useRef(null);C.useEffect(()=>{!l||!S.current||(v.current=!n)},[n,l]),C.useEffect(()=>{if(!l||!S.current)return;const E=Ao(S.current);return S.current.contains(E.activeElement)||(S.current.hasAttribute("tabIndex")||S.current.setAttribute("tabIndex","-1"),v.current&&S.current.focus()),()=>{o||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}},[l]),C.useEffect(()=>{if(!l||!S.current)return;const E=Ao(S.current),O=I=>{w.current=I,!(r||!s()||I.key!=="Tab")&&E.activeElement===S.current&&I.shiftKey&&(c.current=!0,u.current&&u.current.focus())},$=()=>{const I=S.current;if(I===null)return;if(!E.hasFocus()||!s()||c.current){c.current=!1;return}if(I.contains(E.activeElement)||r&&E.activeElement!==f.current&&E.activeElement!==u.current)return;if(E.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!v.current)return;let j=[];if((E.activeElement===f.current||E.activeElement===u.current)&&(j=a(S.current)),j.length>0){const _=!!(w.current?.shiftKey&&w.current?.key==="Tab"),W=j[0],U=j[j.length-1];typeof W!="string"&&typeof U!="string"&&(_?U.focus():W.focus())}else I.focus()};E.addEventListener("focusin",$),E.addEventListener("keydown",O,!0);const A=setInterval(()=>{E.activeElement&&E.activeElement.tagName==="BODY"&&$()},50);return()=>{clearInterval(A),E.removeEventListener("focusin",$),E.removeEventListener("keydown",O,!0)}},[n,r,o,s,l,a]);const b=E=>{h.current===null&&(h.current=E.relatedTarget),v.current=!0,y.current=E.target;const O=t.props.onFocus;O&&O(E)},k=E=>{h.current===null&&(h.current=E.relatedTarget),v.current=!0};return m.jsxs(C.Fragment,{children:[m.jsx("div",{tabIndex:l?0:-1,onFocus:k,ref:f,"data-testid":"sentinelStart"}),C.cloneElement(t,{ref:x,onFocus:b}),m.jsx("div",{tabIndex:l?0:-1,onFocus:k,ref:u,"data-testid":"sentinelEnd"})]})}function G9(e){return typeof e=="function"?e():e}function K9(e){return e?e.props.hasOwnProperty("in"):!1}const M2=()=>{},av=new _9;function Q9(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:f,rootRef:u}=e,h=C.useRef({}),y=C.useRef(null),v=C.useRef(null),S=bo(v,u),[x,w]=C.useState(!f),b=K9(l);let k=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(k=!1);const E=()=>Ao(y.current),O=()=>(h.current.modalRef=v.current,h.current.mount=y.current,h.current),$=()=>{av.mount(O(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},A=No(()=>{const H=G9(t)||E().body;av.add(O(),H),v.current&&$()}),I=()=>av.isTopModal(O()),j=No(H=>{y.current=H,H&&(f&&I()?$():v.current&&Bm(v.current,k))}),_=C.useCallback(()=>{av.remove(O(),k)},[k]);C.useEffect(()=>()=>{_()},[_]),C.useEffect(()=>{f?A():(!b||!o)&&_()},[f,_,b,o,A]);const W=H=>D=>{H.onKeyDown?.(D),!(D.key!=="Escape"||D.which===229||!I())&&(n||(D.stopPropagation(),c&&c(D,"escapeKeyDown")))},U=H=>D=>{H.onClick?.(D),D.target===D.currentTarget&&c&&c(D,"backdropClick")};return{getRootProps:(H={})=>{const D=Zu(e);delete D.onTransitionEnter,delete D.onTransitionExited;const K={...D,...H};return{role:"presentation",...K,onKeyDown:W(K),ref:S}},getBackdropProps:(H={})=>{const D=H;return{"aria-hidden":!0,...D,onClick:U(D),open:f}},getTransitionProps:()=>{const H=()=>{w(!1),a&&a()},D=()=>{w(!0),s&&s(),o&&_()};return{onEnter:GO(H,l?.props.onEnter??M2),onExited:GO(D,l?.props.onExited??M2)}},rootRef:S,portalRef:j,isTopModal:I,exited:x,hasTransition:b}}function X9(e){return dn("MuiModal",e)}pn("MuiModal",["root","hidden","backdrop"]);const Z9=e=>{const{open:t,exited:n,classes:r}=e;return fn({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},X9,r)},J9=at("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(rn(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),eq=at(LN,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),UN=C.forwardRef(function(t,n){const r=hn({name:"MuiModal",props:t}),{BackdropComponent:o=eq,BackdropProps:a,classes:s,className:l,closeAfterTransition:c=!1,children:f,container:u,component:h,components:y={},componentsProps:v={},disableAutoFocus:S=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:w=!1,disablePortal:b=!1,disableRestoreFocus:k=!1,disableScrollLock:E=!1,hideBackdrop:O=!1,keepMounted:$=!1,onClose:A,onTransitionEnter:I,onTransitionExited:j,open:_,slotProps:W={},slots:U={},theme:T,...L}=r,F={...r,closeAfterTransition:c,disableAutoFocus:S,disableEnforceFocus:x,disableEscapeKeyDown:w,disablePortal:b,disableRestoreFocus:k,disableScrollLock:E,hideBackdrop:O,keepMounted:$},{getRootProps:H,getBackdropProps:D,getTransitionProps:K,portalRef:Q,isTopModal:ee,exited:X,hasTransition:te}=Q9({...F,rootRef:n}),ae={...F,exited:X},ue=Z9(ae),he={};if(f.props.tabIndex===void 0&&(he.tabIndex="-1"),te){const{onEnter:me,onExited:xe}=K();he.onEnter=me,he.onExited=xe}const ie={slots:{root:y.Root,backdrop:y.Backdrop,...U},slotProps:{...v,...W}},[le,se]=An("root",{ref:n,elementType:J9,externalForwardedProps:{...ie,...L,component:h},getSlotProps:H,ownerState:ae,className:Nt(l,ue?.root,!ae.open&&ae.exited&&ue?.hidden)}),[pe,ne]=An("backdrop",{ref:a?.ref,elementType:o,externalForwardedProps:ie,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:me=>D({...me,onClick:xe=>{me?.onClick&&me.onClick(xe)}}),className:Nt(a?.className,ue?.backdrop),ownerState:ae});return!$&&!_&&(!te||X)?null:m.jsx(jN,{ref:Q,container:u,disablePortal:b,children:m.jsxs(le,{...se,children:[!O&&o?m.jsx(pe,{...ne}):null,m.jsx(Y9,{disableEnforceFocus:x,disableAutoFocus:S,disableRestoreFocus:k,isEnabled:ee,open:_,children:C.cloneElement(f,he)})]})})});function tq(e){return dn("MuiDialog",e)}const eS=pn("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),VN=C.createContext({}),nq=at(LN,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),rq=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${nt(n)}`],paper:["paper",`paperScroll${nt(n)}`,`paperWidth${nt(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return fn(s,tq,t)},oq=at(UN,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),aq=at("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${nt(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),iq=at(Wa,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${nt(n.scroll)}`],t[`paperWidth${nt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(rn(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${eS.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${eS.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${eS.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),dp=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiDialog"}),o=Xc(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":l,"aria-modal":c=!0,BackdropComponent:f,BackdropProps:u,children:h,className:y,disableEscapeKeyDown:v=!1,fullScreen:S=!1,fullWidth:x=!1,maxWidth:w="sm",onClick:b,onClose:k,open:E,PaperComponent:O=Wa,PaperProps:$={},scroll:A="paper",slots:I={},slotProps:j={},TransitionComponent:_=hw,transitionDuration:W=a,TransitionProps:U,...T}=r,L={...r,disableEscapeKeyDown:v,fullScreen:S,fullWidth:x,maxWidth:w,scroll:A},F=rq(L),H=C.useRef(),D=ce=>{H.current=ce.target===ce.currentTarget},K=ce=>{b&&b(ce),H.current&&(H.current=null,k&&k(ce,"backdropClick"))},Q=Qc(l),ee=C.useMemo(()=>({titleId:Q}),[Q]),X={transition:_,...I},te={transition:U,paper:$,backdrop:u,...j},ae={slots:X,slotProps:te},[ue,he]=An("root",{elementType:oq,shouldForwardComponentProp:!0,externalForwardedProps:ae,ownerState:L,className:Nt(F.root,y),ref:n}),[ie,le]=An("backdrop",{elementType:nq,shouldForwardComponentProp:!0,externalForwardedProps:ae,ownerState:L}),[se,pe]=An("paper",{elementType:iq,shouldForwardComponentProp:!0,externalForwardedProps:ae,ownerState:L,className:Nt(F.paper,$.className)}),[ne,me]=An("container",{elementType:aq,externalForwardedProps:ae,ownerState:L,className:F.container}),[xe,Se]=An("transition",{elementType:hw,externalForwardedProps:ae,ownerState:L,additionalProps:{appear:!0,in:E,timeout:W,role:"presentation"}});return m.jsx(ue,{closeAfterTransition:!0,slots:{backdrop:ie},slotProps:{backdrop:{transitionDuration:W,as:f,...le}},disableEscapeKeyDown:v,onClose:k,open:E,onClick:K,...he,...T,children:m.jsx(xe,{...Se,children:m.jsx(ne,{onMouseDown:D,...me,children:m.jsx(se,{as:O,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":Q,"aria-modal":c,...pe,children:m.jsx(VN.Provider,{value:ee,children:h})})})})})});function sq(e){return dn("MuiDialogActions",e)}pn("MuiDialogActions",["root","spacing"]);const lq=e=>{const{classes:t,disableSpacing:n}=e;return fn({root:["root",!n&&"spacing"]},sq,t)},cq=at("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),HN=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1,...s}=r,l={...r,disableSpacing:a},c=lq(l);return m.jsx(cq,{className:Nt(c.root,o),ownerState:l,ref:n,...s})});function uq(e){return dn("MuiDialogContent",e)}pn("MuiDialogContent",["root","dividers"]);function dq(e){return dn("MuiDialogTitle",e)}const fq=pn("MuiDialogTitle",["root"]),pq=e=>{const{classes:t,dividers:n}=e;return fn({root:["root",n&&"dividers"]},uq,t)},hq=at("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(rn(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${fq.root} + &`]:{paddingTop:0}}}]}))),fp=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1,...s}=r,l={...r,dividers:a},c=pq(l);return m.jsx(hq,{className:Nt(c.root,o),ownerState:l,ref:n,...s})}),mq=e=>{const{classes:t}=e;return fn({root:["root"]},dq,t)},gq=at(It,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),pp=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiDialogTitle"}),{className:o,id:a,...s}=r,l=r,c=mq(l),{titleId:f=a}=C.useContext(VN);return m.jsx(gq,{component:"h2",className:Nt(c.root,o),ownerState:l,ref:n,variant:"h6",id:a??f,...s})});function yq(e){return dn("MuiDivider",e)}const R2=pn("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),vq=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:s,textAlign:l,variant:c}=e;return fn({root:["root",t&&"absolute",c,a&&"light",s==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",l==="right"&&s!=="vertical"&&"textAlignRight",l==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},yq,r)},bq=at("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(rn(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),xq=at("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(rn(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),qc=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:s,orientation:l="horizontal",component:c=a||l==="vertical"?"div":"hr",flexItem:f=!1,light:u=!1,role:h=c!=="hr"?"separator":void 0,textAlign:y="center",variant:v="fullWidth",...S}=r,x={...r,absolute:o,component:c,flexItem:f,light:u,orientation:l,role:h,textAlign:y,variant:v},w=vq(x);return m.jsx(bq,{as:c,className:Nt(w.root,s),role:h,ref:n,ownerState:x,"aria-orientation":h==="separator"&&(c!=="hr"||l==="vertical")?l:void 0,...S,children:a?m.jsx(xq,{className:w.wrapper,ownerState:x,children:a}):null})});qc&&(qc.muiSkipListHighlight=!0);const Sq=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:a,hiddenLabel:s,multiline:l}=e,c={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${nt(a)}`,s&&"hiddenLabel",l&&"multiline"],input:["input"]},f=fn(c,TW,t);return{...t,...f}},wq=at(g0,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...h0(e,t),!n.disableUnderline&&t.underline]}})(rn(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${di.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${di.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${di.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${di.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${di.disabled}, .${di.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${di.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(zr()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:l})=>s.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),Cq=at(y0,{name:"MuiFilledInput",slot:"Input",overridesResolver:m0})(rn(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),fk=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:a={},componentsProps:s,fullWidth:l=!1,hiddenLabel:c,inputComponent:f="input",multiline:u=!1,slotProps:h,slots:y={},type:v="text",...S}=r,x={...r,disableUnderline:o,fullWidth:l,inputComponent:f,multiline:u,type:v},w=Sq(r),b={root:{ownerState:x},input:{ownerState:x}},k=h??s?Wo(b,h??s):b,E=y.root??a.Root??wq,O=y.input??a.Input??Cq;return m.jsx(uk,{slots:{root:E,input:O},slotProps:k,fullWidth:l,inputComponent:f,multiline:u,ref:n,type:v,...S,classes:w})});fk.muiName="Input";function kq(e){return dn("MuiFormControl",e)}pn("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Eq=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${nt(n)}`,r&&"fullWidth"]};return fn(o,kq,t)},Tq=at("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${nt(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),gw=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiFormControl"}),{children:o,className:a,color:s="primary",component:l="div",disabled:c=!1,error:f=!1,focused:u,fullWidth:h=!1,hiddenLabel:y=!1,margin:v="none",required:S=!1,size:x="medium",variant:w="outlined",...b}=r,k={...r,color:s,component:l,disabled:c,error:f,fullWidth:h,hiddenLabel:y,margin:v,required:S,size:x,variant:w},E=Eq(k),[O,$]=C.useState(()=>{let H=!1;return o&&C.Children.forEach(o,D=>{if(!Uv(D,["Input","Select"]))return;const K=Uv(D,["Select"])?D.props.input:D;K&&SW(K.props)&&(H=!0)}),H}),[A,I]=C.useState(()=>{let H=!1;return o&&C.Children.forEach(o,D=>{Uv(D,["Input","Select"])&&(hb(D.props,!0)||hb(D.props.inputProps,!0))&&(H=!0)}),H}),[j,_]=C.useState(!1);c&&j&&_(!1);const W=u!==void 0&&!c?u:j;let U;C.useRef(!1);const T=C.useCallback(()=>{I(!0)},[]),L=C.useCallback(()=>{I(!1)},[]),F=C.useMemo(()=>({adornedStart:O,setAdornedStart:$,color:s,disabled:c,error:f,filled:A,focused:W,fullWidth:h,hiddenLabel:y,size:x,onBlur:()=>{_(!1)},onFocus:()=>{_(!0)},onEmpty:L,onFilled:T,registerEffect:U,required:S,variant:w}),[O,s,c,f,A,W,h,y,U,L,T,S,x,w]);return m.jsx(p0.Provider,{value:F,children:m.jsx(Tq,{as:l,ownerState:k,className:Nt(E.root,a),ref:n,...b,children:o})})});function Mq(e){return dn("MuiFormControlLabel",e)}const $m=pn("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Rq=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e,s={root:["root",n&&"disabled",`labelPlacement${nt(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return fn(s,Mq,t)},Oq=at("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$m.label}`]:t.label},t.root,t[`labelPlacement${nt(n.labelPlacement)}`]]}})(rn(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${$m.disabled}`]:{cursor:"default"},[`& .${$m.label}`]:{[`&.${$m.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),$q=at("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(rn(({theme:e})=>({[`&.${$m.error}`]:{color:(e.vars||e).palette.error.main}}))),pk=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiFormControlLabel"}),{checked:o,className:a,componentsProps:s={},control:l,disabled:c,disableTypography:f,inputRef:u,label:h,labelPlacement:y="end",name:v,onChange:S,required:x,slots:w={},slotProps:b={},value:k,...E}=r,O=fl(),$=c??l.props.disabled??O?.disabled,A=x??l.props.required,I={disabled:$,required:A};["checked","name","onChange","value","inputRef"].forEach(H=>{typeof l.props[H]>"u"&&typeof r[H]<"u"&&(I[H]=r[H])});const j=Jc({props:r,muiFormControl:O,states:["error"]}),_={...r,disabled:$,labelPlacement:y,required:A,error:j.error},W=Rq(_),U={slots:w,slotProps:{...s,...b}},[T,L]=An("typography",{elementType:It,externalForwardedProps:U,ownerState:_});let F=h;return F!=null&&F.type!==It&&!f&&(F=m.jsx(T,{component:"span",...L,className:Nt(W.label,L?.className),children:F})),m.jsxs(Oq,{className:Nt(W.root,a),ownerState:_,ref:n,...E,children:[C.cloneElement(l,I),A?m.jsxs("div",{children:[F,m.jsxs($q,{ownerState:_,"aria-hidden":!0,className:W.asterisk,children:[" ","*"]})]}):F]})});function Pq(e){return dn("MuiFormGroup",e)}pn("MuiFormGroup",["root","row","error"]);const Aq=e=>{const{classes:t,row:n,error:r}=e;return fn({root:["root",n&&"row",r&&"error"]},Pq,t)},Dq=at("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),jq=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1,...s}=r,l=fl(),c=Jc({props:r,muiFormControl:l,states:["error"]}),f={...r,row:a,error:c.error},u=Aq(f);return m.jsx(Dq,{className:Nt(u.root,o),ownerState:f,ref:n,...s})});function Nq(e){return dn("MuiFormHelperText",e)}const O2=pn("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var $2;const Iq=e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:s,focused:l,required:c}=e,f={root:["root",o&&"disabled",a&&"error",r&&`size${nt(r)}`,n&&"contained",l&&"focused",s&&"filled",c&&"required"]};return fn(f,Nq,t)},Lq=at("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${nt(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(rn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${O2.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${O2.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),yw=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:s="p",disabled:l,error:c,filled:f,focused:u,margin:h,required:y,variant:v,...S}=r,x=fl(),w=Jc({props:r,muiFormControl:x,states:["variant","size","disabled","error","filled","focused","required"]}),b={...r,component:s,contained:w.variant==="filled"||w.variant==="outlined",variant:w.variant,size:w.size,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required};delete b.ownerState;const k=Iq(b);return m.jsx(Lq,{as:s,className:Nt(k.root,a),ref:n,...S,ownerState:b,children:o===" "?$2||($2=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function zq(e){return dn("MuiFormLabel",e)}const Um=pn("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Fq=e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:s,required:l}=e,c={root:["root",`color${nt(n)}`,o&&"disabled",a&&"error",s&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]};return fn(c,zq,t)},_q=at("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(rn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(zr()).map(([t])=>({props:{color:t},style:{[`&.${Um.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Um.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Um.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Bq=at("span",{name:"MuiFormLabel",slot:"Asterisk"})(rn(({theme:e})=>({[`&.${Um.error}`]:{color:(e.vars||e).palette.error.main}}))),Uq=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiFormLabel"}),{children:o,className:a,color:s,component:l="label",disabled:c,error:f,filled:u,focused:h,required:y,...v}=r,S=fl(),x=Jc({props:r,muiFormControl:S,states:["color","required","focused","disabled","error","filled"]}),w={...r,color:x.color||"primary",component:l,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required},b=Fq(w);return m.jsxs(_q,{as:l,ownerState:w,className:Nt(b.root,a),ref:n,...v,children:[o,x.required&&m.jsxs(Bq,{ownerState:w,"aria-hidden":!0,className:b.asterisk,children:[" ","*"]})]})}),Vf=G6({createStyledComponent:at("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>hn({props:e,name:"MuiGrid"}),useTheme:Xc});function vw(e){return`scale(${e}, ${e**2})`}const Vq={entering:{opacity:1,transform:vw(1)},entered:{opacity:1,transform:"none"}},tS=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),sg=C.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:a,easing:s,in:l,onEnter:c,onEntered:f,onEntering:u,onExit:h,onExited:y,onExiting:v,style:S,timeout:x="auto",TransitionComponent:w=dl,...b}=t,k=Yu(),E=C.useRef(),O=Xc(),$=C.useRef(null),A=bo($,vd(a),n),I=H=>D=>{if(H){const K=$.current;D===void 0?H(K):H(K,D)}},j=I(u),_=I((H,D)=>{xN(H);const{duration:K,delay:Q,easing:ee}=ub({style:S,timeout:x,easing:s},{mode:"enter"});let X;x==="auto"?(X=O.transitions.getAutoHeightDuration(H.clientHeight),E.current=X):X=K,H.style.transition=[O.transitions.create("opacity",{duration:X,delay:Q}),O.transitions.create("transform",{duration:tS?X:X*.666,delay:Q,easing:ee})].join(","),c&&c(H,D)}),W=I(f),U=I(v),T=I(H=>{const{duration:D,delay:K,easing:Q}=ub({style:S,timeout:x,easing:s},{mode:"exit"});let ee;x==="auto"?(ee=O.transitions.getAutoHeightDuration(H.clientHeight),E.current=ee):ee=D,H.style.transition=[O.transitions.create("opacity",{duration:ee,delay:K}),O.transitions.create("transform",{duration:tS?ee:ee*.666,delay:tS?K:K||ee*.333,easing:Q})].join(","),H.style.opacity=0,H.style.transform=vw(.75),h&&h(H)}),L=I(y),F=H=>{x==="auto"&&k.start(E.current||0,H),r&&r($.current,H)};return m.jsx(w,{appear:o,in:l,nodeRef:$,onEnter:_,onEntered:W,onEntering:j,onExit:T,onExited:L,onExiting:U,addEndListener:F,timeout:x==="auto"?null:x,...b,children:(H,{ownerState:D,...K})=>C.cloneElement(a,{style:{opacity:0,transform:vw(.75),visibility:H==="exited"&&!l?"hidden":void 0,...Vq[H],...S,...a.props.style},ref:A,...K})})});sg&&(sg.muiSupportAuto=!0);const Hq=e=>{const{classes:t,disableUnderline:n}=e,o=fn({root:["root",!n&&"underline"],input:["input"]},kW,t);return{...t,...o}},Wq=at(g0,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...h0(e,t),!n.disableUnderline&&t.underline]}})(rn(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${jc.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${jc.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${jc.disabled}, .${jc.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${jc.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(zr()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),qq=at(y0,{name:"MuiInput",slot:"Input",overridesResolver:m0})({}),hk=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:a={},componentsProps:s,fullWidth:l=!1,inputComponent:c="input",multiline:f=!1,slotProps:u,slots:h={},type:y="text",...v}=r,S=Hq(r),w={root:{ownerState:{disableUnderline:o}}},b=u??s?Wo(u??s,w):w,k=h.root??a.Root??Wq,E=h.input??a.Input??qq;return m.jsx(uk,{slots:{root:k,input:E},slotProps:b,fullWidth:l,inputComponent:c,multiline:f,ref:n,type:y,...v,classes:S})});hk.muiName="Input";function Yq(e){return dn("MuiInputAdornment",e)}const P2=pn("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var A2;const Gq=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${nt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Kq=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:s}=e,l={root:["root",n&&"disablePointerEvents",o&&`position${nt(o)}`,s,r&&"hiddenLabel",a&&`size${nt(a)}`]};return fn(l,Yq,t)},Qq=at("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Gq})(rn(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${P2.positionStart}&:not(.${P2.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Xq=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiInputAdornment"}),{children:o,className:a,component:s="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:f,variant:u,...h}=r,y=fl()||{};let v=u;u&&y.variant,y&&!v&&(v=y.variant);const S={...r,hiddenLabel:y.hiddenLabel,size:y.size,disablePointerEvents:l,position:f,variant:v},x=Kq(S);return m.jsx(p0.Provider,{value:null,children:m.jsx(Qq,{as:s,ownerState:S,className:Nt(x.root,a),ref:n,...h,children:typeof o=="string"&&!c?m.jsx(It,{color:"textSecondary",children:o}):m.jsxs(C.Fragment,{children:[f==="start"?A2||(A2=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});function Zq(e){return dn("MuiInputLabel",e)}pn("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Jq=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:s,required:l}=e,c={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&r!=="medium"&&`size${nt(r)}`,s],asterisk:[l&&"asterisk"]},f=fn(c,Zq,t);return{...t,...f}},e7=at(Uq,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Um.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(rn(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),t7=C.forwardRef(function(t,n){const r=hn({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:a,shrink:s,variant:l,className:c,...f}=r,u=fl();let h=s;typeof h>"u"&&u&&(h=u.filled||u.focused||u.adornedStart);const y=Jc({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),v={...r,disableAnimation:o,formControl:u,shrink:h,size:y.size,variant:y.variant,required:y.required,focused:y.focused},S=Jq(v);return m.jsx(e7,{"data-shrink":h,ref:n,className:Nt(S.root,c),...f,ownerState:v,classes:S})});function n7(e){return dn("MuiLinearProgress",e)}pn("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const bw=4,xw=Ci`
215
+ 0% {
216
+ left: -35%;
217
+ right: 100%;
218
+ }
219
+
220
+ 60% {
221
+ left: 100%;
222
+ right: -90%;
223
+ }
224
+
225
+ 100% {
226
+ left: 100%;
227
+ right: -90%;
228
+ }
229
+ `,r7=typeof xw!="string"?Kc`
230
+ animation: ${xw} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
231
+ `:null,Sw=Ci`
232
+ 0% {
233
+ left: -200%;
234
+ right: 100%;
235
+ }
236
+
237
+ 60% {
238
+ left: 107%;
239
+ right: -8%;
240
+ }
241
+
242
+ 100% {
243
+ left: 107%;
244
+ right: -8%;
245
+ }
246
+ `,o7=typeof Sw!="string"?Kc`
247
+ animation: ${Sw} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
248
+ `:null,ww=Ci`
249
+ 0% {
250
+ opacity: 1;
251
+ background-position: 0 -23px;
252
+ }
253
+
254
+ 60% {
255
+ opacity: 0;
256
+ background-position: 0 -23px;
257
+ }
258
+
259
+ 100% {
260
+ opacity: 1;
261
+ background-position: -200px -23px;
262
+ }
263
+ `,a7=typeof ww!="string"?Kc`
264
+ animation: ${ww} 3s infinite linear;
265
+ `:null,i7=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${nt(r)}`,n],dashed:["dashed",`dashedColor${nt(r)}`],bar1:["bar","bar1",`barColor${nt(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${nt(r)}`,n==="buffer"&&`color${nt(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return fn(o,n7,t)},mk=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),s7=at("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${nt(n.color)}`],t[n.variant]]}})(rn(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(zr()).map(([t])=>({props:{color:t},style:{backgroundColor:mk(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),l7=at("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${nt(n.color)}`]]}})(rn(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(zr()).map(([t])=>{const n=mk(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),a7||{animation:`${ww} 3s infinite linear`}),c7=at("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${nt(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(rn(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(zr()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${bw}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${bw}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:r7||{animation:`${xw} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),u7=at("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${nt(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(rn(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(zr()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(zr()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:mk(e,t),transition:`transform .${bw}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:o7||{animation:`${Sw} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),d7=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiLinearProgress"}),{className:o,color:a="primary",value:s,valueBuffer:l,variant:c="indeterminate",...f}=r,u={...r,color:a,variant:c},h=i7(u),y=Pg(),v={},S={bar1:{},bar2:{}};if((c==="determinate"||c==="buffer")&&s!==void 0){v["aria-valuenow"]=Math.round(s),v["aria-valuemin"]=0,v["aria-valuemax"]=100;let x=s-100;y&&(x=-x),S.bar1.transform=`translateX(${x}%)`}if(c==="buffer"&&l!==void 0){let x=(l||0)-100;y&&(x=-x),S.bar2.transform=`translateX(${x}%)`}return m.jsxs(s7,{className:Nt(h.root,o),ownerState:u,role:"progressbar",...v,ref:n,...f,children:[c==="buffer"?m.jsx(l7,{className:h.dashed,ownerState:u}):null,m.jsx(c7,{className:h.bar1,ownerState:u,style:S.bar1}),c==="determinate"?null:m.jsx(u7,{className:h.bar2,ownerState:u,style:S.bar2})]})});function f7(e){return dn("MuiLink",e)}const p7=pn("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),h7=({theme:e,ownerState:t})=>{const n=t.color;if("colorSpace"in e&&e.colorSpace){const a=Xs(e,`palette.${n}.main`)||Xs(e,`palette.${n}`)||t.color;return e.alpha(a,.4)}const r=Xs(e,`palette.${n}.main`,!1)||Xs(e,`palette.${n}`,!1)||t.color,o=Xs(e,`palette.${n}.mainChannel`)||Xs(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Es(r,.4)},D2={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},m7=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,a={root:["root",`underline${nt(o)}`,n==="button"&&"button",r&&"focusVisible"]};return fn(a,f7,t)},g7=at(It,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${nt(n.underline)}`],n.component==="button"&&t.button]}})(rn(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color==="inherit",style:e.colorSpace?{textDecorationColor:e.alpha("currentColor",.4)}:null},...Object.entries(e.palette).filter(zr()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${p7.focusVisible}`]:{outline:"auto"}}}]}))),y7=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiLink"}),o=Xc(),{className:a,color:s="primary",component:l="a",onBlur:c,onFocus:f,TypographyClasses:u,underline:h="always",variant:y="inherit",sx:v,...S}=r,[x,w]=C.useState(!1),b=$=>{Wc($.target)||w(!1),c&&c($)},k=$=>{Wc($.target)&&w(!0),f&&f($)},E={...r,color:s,component:l,focusVisible:x,underline:h,variant:y},O=m7(E);return m.jsx(g7,{color:s,className:Nt(O.root,a),classes:u,component:l,onBlur:b,onFocus:k,ref:n,ownerState:E,variant:y,...S,sx:[...D2[s]===void 0?[{color:s}]:[],...Array.isArray(v)?v:[v]],style:{...S.style,...h==="always"&&s!=="inherit"&&!D2[s]&&{"--Link-underlineColor":h7({theme:o,ownerState:E})}}})}),sd=C.createContext({});function v7(e){return dn("MuiList",e)}pn("MuiList",["root","padding","dense","subheader"]);const b7=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return fn({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},v7,t)},x7=at("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),gk=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiList"}),{children:o,className:a,component:s="ul",dense:l=!1,disablePadding:c=!1,subheader:f,...u}=r,h=C.useMemo(()=>({dense:l}),[l]),y={...r,component:s,dense:l,disablePadding:c},v=b7(y);return m.jsx(sd.Provider,{value:h,children:m.jsxs(x7,{as:s,className:Nt(v.root,a),ref:n,ownerState:y,...u,children:[f,o]})})});function S7(e){return dn("MuiListItemButton",e)}const Vh=pn("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),w7=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},C7=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:a,divider:s,selected:l}=e,f=fn({root:["root",r&&"dense",!a&&"gutters",s&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},S7,n);return{...n,...f}},k7=at(ad,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:w7})(rn(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Vh.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Vh.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Vh.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Vh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Vh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),WN=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:a=!1,component:s="div",children:l,dense:c=!1,disableGutters:f=!1,divider:u=!1,focusVisibleClassName:h,selected:y=!1,className:v,...S}=r,x=C.useContext(sd),w=C.useMemo(()=>({dense:c||x.dense||!1,alignItems:o,disableGutters:f}),[o,x.dense,c,f]),b=C.useRef(null);Ea(()=>{a&&b.current&&b.current.focus()},[a]);const k={...r,alignItems:o,dense:w.dense,disableGutters:f,divider:u,selected:y},E=C7(k),O=bo(b,n);return m.jsx(sd.Provider,{value:w,children:m.jsx(k7,{ref:O,href:S.href||S.to,component:(S.href||S.to)&&s==="div"?"button":s,focusVisibleClassName:Nt(E.focusVisible,h),ownerState:k,className:Nt(E.root,v),...S,classes:E,children:l})})});function E7(e){return dn("MuiListItemIcon",e)}const j2=pn("MuiListItemIcon",["root","alignItemsFlexStart"]),T7=e=>{const{alignItems:t,classes:n}=e;return fn({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},E7,n)},M7=at("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(rn(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Rp=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiListItemIcon"}),{className:o,...a}=r,s=C.useContext(sd),l={...r,alignItems:s.alignItems},c=T7(l);return m.jsx(M7,{className:Nt(c.root,o),ownerState:l,ref:n,...a})});function R7(e){return dn("MuiListItemText",e)}const Hf=pn("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),O7=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e;return fn({root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},R7,t)},$7=at("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Hf.primary}`]:t.primary},{[`& .${Hf.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${t2.root}:where(& .${Hf.primary})`]:{display:"block"},[`.${t2.root}:where(& .${Hf.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),eu=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:s=!1,inset:l=!1,primary:c,primaryTypographyProps:f,secondary:u,secondaryTypographyProps:h,slots:y={},slotProps:v={},...S}=r,{dense:x}=C.useContext(sd);let w=c??o,b=u;const k={...r,disableTypography:s,inset:l,primary:!!w,secondary:!!b,dense:x},E=O7(k),O={slots:y,slotProps:{primary:f,secondary:h,...v}},[$,A]=An("root",{className:Nt(E.root,a),elementType:$7,externalForwardedProps:{...O,...S},ownerState:k,ref:n}),[I,j]=An("primary",{className:E.primary,elementType:It,externalForwardedProps:O,ownerState:k}),[_,W]=An("secondary",{className:E.secondary,elementType:It,externalForwardedProps:O,ownerState:k});return w!=null&&w.type!==It&&!s&&(w=m.jsx(I,{variant:x?"body2":"body1",component:j?.variant?void 0:"span",...j,children:w})),b!=null&&b.type!==It&&!s&&(b=m.jsx(_,{variant:"body2",color:"textSecondary",...W,children:b})),m.jsxs($,{...A,children:[w,b]})});function nS(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function N2(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function qN(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Hh(e,t,n,r,o,a){let s=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(s)return!1;s=!0}const c=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!qN(l,a)||c)l=o(e,l,n);else return l.focus(),!0}return!1}const P7=C.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:a=!1,children:s,className:l,disabledItemsFocusable:c=!1,disableListWrap:f=!1,onKeyDown:u,variant:h="selectedMenu",...y}=t,v=C.useRef(null),S=C.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ea(()=>{o&&v.current.focus()},[o]),C.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(E,{direction:O})=>{const $=!v.current.style.width;if(E.clientHeight<v.current.clientHeight&&$){const A=`${BN(Hl(E))}px`;v.current.style[O==="rtl"?"paddingLeft":"paddingRight"]=A,v.current.style.width=`calc(100% + ${A})`}return v.current}}),[]);const x=E=>{const O=v.current,$=E.key;if(E.ctrlKey||E.metaKey||E.altKey){u&&u(E);return}const I=Ao(O).activeElement;if($==="ArrowDown")E.preventDefault(),Hh(O,I,f,c,nS);else if($==="ArrowUp")E.preventDefault(),Hh(O,I,f,c,N2);else if($==="Home")E.preventDefault(),Hh(O,null,f,c,nS);else if($==="End")E.preventDefault(),Hh(O,null,f,c,N2);else if($.length===1){const j=S.current,_=$.toLowerCase(),W=performance.now();j.keys.length>0&&(W-j.lastTime>500?(j.keys=[],j.repeating=!0,j.previousKeyMatched=!0):j.repeating&&_!==j.keys[0]&&(j.repeating=!1)),j.lastTime=W,j.keys.push(_);const U=I&&!j.repeating&&qN(I,j);j.previousKeyMatched&&(U||Hh(O,I,!1,c,nS,j))?E.preventDefault():j.previousKeyMatched=!1}u&&u(E)},w=bo(v,n);let b=-1;C.Children.forEach(s,(E,O)=>{if(!C.isValidElement(E)){b===O&&(b+=1,b>=s.length&&(b=-1));return}E.props.disabled||(h==="selectedMenu"&&E.props.selected||b===-1)&&(b=O),b===O&&(E.props.disabled||E.props.muiSkipListHighlight||E.type.muiSkipListHighlight)&&(b+=1,b>=s.length&&(b=-1))});const k=C.Children.map(s,(E,O)=>{if(O===b){const $={};return a&&($.autoFocus=!0),E.props.tabIndex===void 0&&h==="selectedMenu"&&($.tabIndex=0),C.cloneElement(E,$)}return E});return m.jsx(gk,{role:"menu",ref:w,className:l,onKeyDown:x,tabIndex:o?0:-1,...y,children:k})});function A7(e){return dn("MuiPopover",e)}pn("MuiPopover",["root","paper"]);function I2(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function L2(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function z2(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function iv(e){return typeof e=="function"?e():e}const D7=e=>{const{classes:t}=e;return fn({root:["root"],paper:["paper"]},A7,t)},j7=at(UN,{name:"MuiPopover",slot:"Root"})({}),YN=at(Wa,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),N7=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiPopover"}),{action:o,anchorEl:a,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:c="anchorEl",children:f,className:u,container:h,elevation:y=8,marginThreshold:v=16,open:S,PaperProps:x={},slots:w={},slotProps:b={},transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:E,transitionDuration:O="auto",TransitionProps:$={},disableScrollLock:A=!1,...I}=r,j=C.useRef(),_={...r,anchorOrigin:s,anchorReference:c,elevation:y,marginThreshold:v,transformOrigin:k,TransitionComponent:E,transitionDuration:O,TransitionProps:$},W=D7(_),U=C.useCallback(()=>{if(c==="anchorPosition")return l;const me=iv(a),Se=(me&&me.nodeType===1?me:Ao(j.current).body).getBoundingClientRect();return{top:Se.top+I2(Se,s.vertical),left:Se.left+L2(Se,s.horizontal)}},[a,s.horizontal,s.vertical,l,c]),T=C.useCallback(me=>({vertical:I2(me,k.vertical),horizontal:L2(me,k.horizontal)}),[k.horizontal,k.vertical]),L=C.useCallback(me=>{const xe={width:me.offsetWidth,height:me.offsetHeight},Se=T(xe);if(c==="none")return{top:null,left:null,transformOrigin:z2(Se)};const ce=U();let Ee=ce.top-Se.vertical,Ge=ce.left-Se.horizontal;const Te=Ee+xe.height,je=Ge+xe.width,oe=Hl(iv(a)),lt=oe.innerHeight-v,Ie=oe.innerWidth-v;if(v!==null&&Ee<v){const et=Ee-v;Ee-=et,Se.vertical+=et}else if(v!==null&&Te>lt){const et=Te-lt;Ee-=et,Se.vertical+=et}if(v!==null&&Ge<v){const et=Ge-v;Ge-=et,Se.horizontal+=et}else if(je>Ie){const et=je-Ie;Ge-=et,Se.horizontal+=et}return{top:`${Math.round(Ee)}px`,left:`${Math.round(Ge)}px`,transformOrigin:z2(Se)}},[a,c,U,T,v]),[F,H]=C.useState(S),D=C.useCallback(()=>{const me=j.current;if(!me)return;const xe=L(me);xe.top!==null&&me.style.setProperty("top",xe.top),xe.left!==null&&(me.style.left=xe.left),me.style.transformOrigin=xe.transformOrigin,H(!0)},[L]);C.useEffect(()=>(A&&window.addEventListener("scroll",D),()=>window.removeEventListener("scroll",D)),[a,A,D]);const K=()=>{D()},Q=()=>{H(!1)};C.useEffect(()=>{S&&D()}),C.useImperativeHandle(o,()=>S?{updatePosition:()=>{D()}}:null,[S,D]),C.useEffect(()=>{if(!S)return;const me=mN(()=>{D()}),xe=Hl(iv(a));return xe.addEventListener("resize",me),()=>{me.clear(),xe.removeEventListener("resize",me)}},[a,S,D]);let ee=O;const X={slots:{transition:E,...w},slotProps:{transition:$,paper:x,...b}},[te,ae]=An("transition",{elementType:sg,externalForwardedProps:X,ownerState:_,getSlotProps:me=>({...me,onEntering:(xe,Se)=>{me.onEntering?.(xe,Se),K()},onExited:xe=>{me.onExited?.(xe),Q()}}),additionalProps:{appear:!0,in:S}});O==="auto"&&!te.muiSupportAuto&&(ee=void 0);const ue=h||(a?Ao(iv(a)).body:void 0),[he,{slots:ie,slotProps:le,...se}]=An("root",{ref:n,elementType:j7,externalForwardedProps:{...X,...I},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:w.backdrop},slotProps:{backdrop:gN(typeof b.backdrop=="function"?b.backdrop(_):b.backdrop,{invisible:!0})},container:ue,open:S},ownerState:_,className:Nt(W.root,u)}),[pe,ne]=An("paper",{ref:j,className:W.paper,elementType:YN,externalForwardedProps:X,shouldForwardComponentProp:!0,additionalProps:{elevation:y,style:F?void 0:{opacity:0}},ownerState:_});return m.jsx(he,{...se,...!Bc(he)&&{slots:ie,slotProps:le,disableScrollLock:A},children:m.jsx(te,{...ae,timeout:ee,children:m.jsx(pe,{...ne,children:f})})})});function I7(e){return dn("MuiMenu",e)}pn("MuiMenu",["root","paper","list"]);const L7={vertical:"top",horizontal:"right"},z7={vertical:"top",horizontal:"left"},F7=e=>{const{classes:t}=e;return fn({root:["root"],paper:["paper"],list:["list"]},I7,t)},_7=at(N7,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),B7=at(YN,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),U7=at(P7,{name:"MuiMenu",slot:"List"})({outline:0}),tu=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:f,open:u,PaperProps:h={},PopoverClasses:y,transitionDuration:v="auto",TransitionProps:{onEntering:S,...x}={},variant:w="selectedMenu",slots:b={},slotProps:k={},...E}=r,O=Pg(),$={...r,autoFocus:o,disableAutoFocusItem:l,MenuListProps:c,onEntering:S,PaperProps:h,transitionDuration:v,TransitionProps:x,variant:w},A=F7($),I=o&&!l&&u,j=C.useRef(null),_=(ee,X)=>{j.current&&j.current.adjustStyleForScrollbar(ee,{direction:O?"rtl":"ltr"}),S&&S(ee,X)},W=ee=>{ee.key==="Tab"&&(ee.preventDefault(),f&&f(ee,"tabKeyDown"))};let U=-1;C.Children.map(a,(ee,X)=>{C.isValidElement(ee)&&(ee.props.disabled||(w==="selectedMenu"&&ee.props.selected||U===-1)&&(U=X))});const T={slots:b,slotProps:{list:c,transition:x,paper:h,...k}},L=Gs({elementType:b.root,externalSlotProps:k.root,ownerState:$,className:[A.root,s]}),[F,H]=An("paper",{className:A.paper,elementType:B7,externalForwardedProps:T,shouldForwardComponentProp:!0,ownerState:$}),[D,K]=An("list",{className:Nt(A.list,c.className),elementType:U7,shouldForwardComponentProp:!0,externalForwardedProps:T,getSlotProps:ee=>({...ee,onKeyDown:X=>{W(X),ee.onKeyDown?.(X)}}),ownerState:$}),Q=typeof T.slotProps.transition=="function"?T.slotProps.transition($):T.slotProps.transition;return m.jsx(_7,{onClose:f,anchorOrigin:{vertical:"bottom",horizontal:O?"right":"left"},transformOrigin:O?L7:z7,slots:{root:b.root,paper:F,backdrop:b.backdrop,...b.transition&&{transition:b.transition}},slotProps:{root:L,paper:H,backdrop:typeof k.backdrop=="function"?k.backdrop($):k.backdrop,transition:{...Q,onEntering:(...ee)=>{_(...ee),Q?.onEntering?.(...ee)}}},open:u,ref:n,transitionDuration:v,ownerState:$,...E,classes:y,children:m.jsx(D,{actions:j,autoFocus:o&&(U===-1||l),autoFocusItem:I,variant:w,...K,children:a})})});function V7(e){return dn("MuiMenuItem",e)}const Wh=pn("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),H7=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},W7=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:s}=e,c=fn({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},V7,s);return{...s,...c}},q7=at(ad,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:H7})(rn(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Wh.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Wh.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Wh.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Wh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Wh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${R2.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${R2.inset}`]:{marginLeft:52},[`& .${Hf.root}`]:{marginTop:0,marginBottom:0},[`& .${Hf.inset}`]:{paddingLeft:36},[`& .${j2.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${j2.root} svg`]:{fontSize:"1.25rem"}}}]}))),ea=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:s=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:f,role:u="menuitem",tabIndex:h,className:y,...v}=r,S=C.useContext(sd),x=C.useMemo(()=>({dense:s||S.dense||!1,disableGutters:c}),[S.dense,s,c]),w=C.useRef(null);Ea(()=>{o&&w.current&&w.current.focus()},[o]);const b={...r,dense:x.dense,divider:l,disableGutters:c},k=W7(r),E=bo(w,n);let O;return r.disabled||(O=h!==void 0?h:-1),m.jsx(sd.Provider,{value:x,children:m.jsx(q7,{ref:E,role:u,tabIndex:O,component:a,focusVisibleClassName:Nt(k.focusVisible,f),className:Nt(k.root,y),...v,ownerState:b,classes:k})})});function Y7(e){return dn("MuiNativeSelect",e)}const yk=pn("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),G7=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:s}=e,l={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${nt(n)}`,a&&"iconOpen",r&&"disabled"]};return fn(l,Y7,t)},GN=at("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${yk.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),K7=at(GN,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ma,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${yk.multiple}`]:t.multiple}]}})({}),KN=at("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${yk.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),Q7=at(KN,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${nt(n.variant)}`],n.open&&t.iconOpen]}})({}),X7=C.forwardRef(function(t,n){const{className:r,disabled:o,error:a,IconComponent:s,inputRef:l,variant:c="standard",...f}=t,u={...t,disabled:o,variant:c,error:a},h=G7(u);return m.jsxs(C.Fragment,{children:[m.jsx(K7,{ownerState:u,className:Nt(h.select,r),disabled:o,ref:l||n,...f}),t.multiple?null:m.jsx(Q7,{as:s,ownerState:u,className:h.icon})]})});var F2;const Z7=at("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Ma})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),J7=at("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Ma})(rn(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function eY(e){const{children:t,classes:n,className:r,label:o,notched:a,...s}=e,l=o!=null&&o!=="",c={...e,notched:a,withLabel:l};return m.jsx(Z7,{"aria-hidden":!0,className:r,ownerState:c,...s,children:m.jsx(J7,{ownerState:c,children:l?m.jsx("span",{children:o}):F2||(F2=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const tY=e=>{const{classes:t}=e,r=fn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},EW,t);return{...t,...r}},nY=at(g0,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:h0})(rn(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Li.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Li.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Li.focused} .${Li.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(zr()).map(([n])=>({props:{color:n},style:{[`&.${Li.focused} .${Li.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Li.error} .${Li.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Li.disabled} .${Li.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),rY=at(eY,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(rn(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),oY=at(y0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:m0})(rn(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),vk=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:a=!1,inputComponent:s="input",label:l,multiline:c=!1,notched:f,slots:u={},slotProps:h={},type:y="text",...v}=r,S=tY(r),x=fl(),w=Jc({props:r,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),b={...r,color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:x,fullWidth:a,hiddenLabel:w.hiddenLabel,multiline:c,size:w.size,type:y},k=u.root??o.Root??nY,E=u.input??o.Input??oY,[O,$]=An("notchedOutline",{elementType:rY,className:S.notchedOutline,shouldForwardComponentProp:!0,ownerState:b,externalForwardedProps:{slots:u,slotProps:h},additionalProps:{label:l!=null&&l!==""&&w.required?m.jsxs(C.Fragment,{children:[l," ","*"]}):l}});return m.jsx(uk,{slots:{root:k,input:E},slotProps:h,renderSuffix:A=>m.jsx(O,{...$,notched:typeof f<"u"?f:!!(A.startAdornment||A.filled||A.focused)}),fullWidth:a,inputComponent:s,multiline:c,ref:n,type:y,...v,classes:{...S,notchedOutline:null}})});vk.muiName="Input";const aY={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function QN(e){return dn("MuiSelect",e)}const qh=pn("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var _2;const iY=at(GN,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${qh.select}`]:t.select},{[`&.${qh.select}`]:t[n.variant]},{[`&.${qh.error}`]:t.error},{[`&.${qh.multiple}`]:t.multiple}]}})({[`&.${qh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),sY=at(KN,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${nt(n.variant)}`],n.open&&t.iconOpen]}})({}),lY=at("input",{shouldForwardProp:e=>c0(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function B2(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function cY(e){return e==null||typeof e=="string"&&!e.trim()}const uY=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:s}=e,l={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${nt(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return fn(l,QN,t)},dY=C.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:a,autoWidth:s,children:l,className:c,defaultOpen:f,defaultValue:u,disabled:h,displayEmpty:y,error:v=!1,IconComponent:S,inputRef:x,labelId:w,MenuProps:b={},multiple:k,name:E,onBlur:O,onChange:$,onClose:A,onFocus:I,onOpen:j,open:_,readOnly:W,renderValue:U,required:T,SelectDisplayProps:L={},tabIndex:F,type:H,value:D,variant:K="standard",...Q}=t,[ee,X]=_c({controlled:D,default:u,name:"Select"}),[te,ae]=_c({controlled:_,default:f,name:"Select"}),ue=C.useRef(null),he=C.useRef(null),[ie,le]=C.useState(null),{current:se}=C.useRef(_!=null),[pe,ne]=C.useState(),me=bo(n,x),xe=C.useCallback(st=>{he.current=st,st&&le(st)},[]),Se=ie?.parentNode;C.useImperativeHandle(me,()=>({focus:()=>{he.current.focus()},node:ue.current,value:ee}),[ee]),C.useEffect(()=>{f&&te&&ie&&!se&&(ne(s?null:Se.clientWidth),he.current.focus())},[ie,s]),C.useEffect(()=>{a&&he.current.focus()},[a]),C.useEffect(()=>{if(!w)return;const st=Ao(he.current).getElementById(w);if(st){const jt=()=>{getSelection().isCollapsed&&he.current.focus()};return st.addEventListener("click",jt),()=>{st.removeEventListener("click",jt)}}},[w]);const ce=(st,jt)=>{st?j&&j(jt):A&&A(jt),se||(ne(s?null:Se.clientWidth),ae(st))},Ee=st=>{st.button===0&&(st.preventDefault(),he.current.focus(),ce(!0,st))},Ge=st=>{ce(!1,st)},Te=C.Children.toArray(l),je=st=>{const jt=Te.find(qt=>qt.props.value===st.target.value);jt!==void 0&&(X(jt.props.value),$&&$(st,jt))},oe=st=>jt=>{let qt;if(jt.currentTarget.hasAttribute("tabindex")){if(k){qt=Array.isArray(ee)?ee.slice():[];const mn=ee.indexOf(st.props.value);mn===-1?qt.push(st.props.value):qt.splice(mn,1)}else qt=st.props.value;if(st.props.onClick&&st.props.onClick(jt),ee!==qt&&(X(qt),$)){const mn=jt.nativeEvent||jt,$n=new mn.constructor(mn.type,mn);Object.defineProperty($n,"target",{writable:!0,value:{value:qt,name:E}}),$($n,st)}k||ce(!1,jt)}},lt=st=>{W||[" ","ArrowUp","ArrowDown","Enter"].includes(st.key)&&(st.preventDefault(),ce(!0,st))},Ie=ie!==null&&te,et=st=>{!Ie&&O&&(Object.defineProperty(st,"target",{writable:!0,value:{value:ee,name:E}}),O(st))};delete Q["aria-invalid"];let mt,Wt;const zt=[];let tt=!1;(hb({value:ee})||y)&&(U?mt=U(ee):tt=!0);const Je=Te.map(st=>{if(!C.isValidElement(st))return null;let jt;if(k){if(!Array.isArray(ee))throw new Error(Vl(2));jt=ee.some(qt=>B2(qt,st.props.value)),jt&&tt&&zt.push(st.props.children)}else jt=B2(ee,st.props.value),jt&&tt&&(Wt=st.props.children);return C.cloneElement(st,{"aria-selected":jt?"true":"false",onClick:oe(st),onKeyUp:qt=>{qt.key===" "&&qt.preventDefault(),st.props.onKeyUp&&st.props.onKeyUp(qt)},role:"option",selected:jt,value:void 0,"data-value":st.props.value})});tt&&(k?zt.length===0?mt=null:mt=zt.reduce((st,jt,qt)=>(st.push(jt),qt<zt.length-1&&st.push(", "),st),[]):mt=Wt);let ct=pe;!s&&se&&ie&&(ct=Se.clientWidth);let Le;typeof F<"u"?Le=F:Le=h?null:0;const ge=L.id||(E?`mui-component-select-${E}`:void 0),qe={...t,variant:K,value:ee,open:Ie,error:v},De=uY(qe),wt={...b.PaperProps,...typeof b.slotProps?.paper=="function"?b.slotProps.paper(qe):b.slotProps?.paper},Ct={...b.MenuListProps,...typeof b.slotProps?.list=="function"?b.slotProps.list(qe):b.slotProps?.list},yt=Qc();return m.jsxs(C.Fragment,{children:[m.jsx(iY,{as:"div",ref:xe,tabIndex:Le,role:"combobox","aria-controls":Ie?yt:void 0,"aria-disabled":h?"true":void 0,"aria-expanded":Ie?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[w,ge].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":T?"true":void 0,"aria-invalid":v?"true":void 0,onKeyDown:lt,onMouseDown:h||W?null:Ee,onBlur:et,onFocus:I,...L,ownerState:qe,className:Nt(L.className,De.select,c),id:ge,children:cY(mt)?_2||(_2=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):mt}),m.jsx(lY,{"aria-invalid":v,value:Array.isArray(ee)?ee.join(","):ee,name:E,ref:ue,"aria-hidden":!0,onChange:je,tabIndex:-1,disabled:h,className:De.nativeInput,autoFocus:a,required:T,...Q,ownerState:qe}),m.jsx(sY,{as:S,className:De.icon,ownerState:qe}),m.jsx(tu,{id:`menu-${E||""}`,anchorEl:Se,open:Ie,onClose:Ge,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...b,slotProps:{...b.slotProps,list:{"aria-labelledby":w,role:"listbox","aria-multiselectable":k?"true":void 0,disableListWrap:!0,id:yt,...Ct},paper:{...wt,style:{minWidth:ct,...wt!=null?wt.style:null}}},children:Je})]})}),fY=e=>{const{classes:t}=e,r=fn({root:["root"]},QN,t);return{...t,...r}},bk={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Ma(e)&&e!=="variant"},pY=at(hk,bk)(""),hY=at(vk,bk)(""),mY=at(fk,bk)(""),XN=C.forwardRef(function(t,n){const r=hn({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:s={},className:l,defaultOpen:c=!1,displayEmpty:f=!1,IconComponent:u=IN,id:h,input:y,inputProps:v,label:S,labelId:x,MenuProps:w,multiple:b=!1,native:k=!1,onClose:E,onOpen:O,open:$,renderValue:A,SelectDisplayProps:I,variant:j="outlined",..._}=r,W=k?X7:dY,U=fl(),T=Jc({props:r,muiFormControl:U,states:["variant","error"]}),L=T.variant||j,F={...r,variant:L,classes:s},H=fY(F),{root:D,...K}=H,Q=y||{standard:m.jsx(pY,{ownerState:F}),outlined:m.jsx(hY,{label:S,ownerState:F}),filled:m.jsx(mY,{ownerState:F})}[L],ee=bo(n,vd(Q));return m.jsx(C.Fragment,{children:C.cloneElement(Q,{inputComponent:W,inputProps:{children:a,error:T.error,IconComponent:u,variant:L,type:void 0,multiple:b,...k?{id:h}:{autoWidth:o,defaultOpen:c,displayEmpty:f,labelId:x,MenuProps:w,onClose:E,onOpen:O,open:$,renderValue:A,SelectDisplayProps:{id:h,...I}},...v,classes:v?Wo(K,v.classes):K,...y?y.props.inputProps:{}},...(b&&k||f)&&L==="outlined"?{notched:!0}:{},ref:ee,className:Nt(Q.props.className,l,H.root),...!y&&{variant:L},..._})})});XN.muiName="Select";function gY(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const yY=2;function Cf(e,t,n,r,o){return n===1?Math.min(e+t,o):Math.max(e-t,r)}function ZN(e,t){return e-t}function U2(e,t){const{index:n}=e.reduce((r,o,a)=>{const s=Math.abs(t-o);return r===null||s<r.distance||s===r.distance?{distance:s,index:a}:r},null)??{};return n}function sv(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const o=n.changedTouches[r];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function mb(e,t,n){return(e-t)*100/(n-t)}function vY(e,t,n){return(n-t)*e+t}function bY(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function xY(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(bY(t)))}function V2({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(ZN)}function lv({sliderRef:e,activeIndex:t,setActive:n}){const r=Ao(e.current);(!e.current?.contains(r.activeElement)||Number(r?.activeElement?.getAttribute("data-index"))!==t)&&e.current?.querySelector(`[type="range"][data-index="${t}"]`).focus(),n&&n(t)}function cv(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?gY(e,t):!1}const SY={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},wY=e=>e;let uv;function H2(){return uv===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?uv=CSS.supports("touch-action","none"):uv=!0),uv}function CY(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:a=!1,marks:s=!1,max:l=100,min:c=0,name:f,onChange:u,onChangeCommitted:h,orientation:y="horizontal",rootRef:v,scale:S=wY,step:x=1,shiftStep:w=10,tabIndex:b,value:k}=e,E=C.useRef(void 0),[O,$]=C.useState(-1),[A,I]=C.useState(-1),[j,_]=C.useState(!1),W=C.useRef(0),U=C.useRef(null),[T,L]=_c({controlled:k,default:n??c,name:"Slider"}),F=u&&((tt,Je,ct)=>{const Le=tt.nativeEvent||tt,ge=new Le.constructor(Le.type,Le);Object.defineProperty(ge,"target",{writable:!0,value:{value:Je,name:f}}),U.current=Je,u(ge,Je,ct)}),H=Array.isArray(T);let D=H?T.slice().sort(ZN):[T];D=D.map(tt=>tt==null?c:zf(tt,c,l));const K=s===!0&&x!==null?[...Array(Math.floor((l-c)/x)+1)].map((tt,Je)=>({value:c+x*Je})):s||[],Q=K.map(tt=>tt.value),[ee,X]=C.useState(-1),te=C.useRef(null),ae=bo(v,te),ue=tt=>Je=>{const ct=Number(Je.currentTarget.getAttribute("data-index"));Wc(Je.target)&&X(ct),I(ct),tt?.onFocus?.(Je)},he=tt=>Je=>{Wc(Je.target)||X(-1),I(-1),tt?.onBlur?.(Je)},ie=(tt,Je)=>{const ct=Number(tt.currentTarget.getAttribute("data-index")),Le=D[ct],ge=Q.indexOf(Le);let qe=Je;if(K&&x==null){const De=Q[Q.length-1];qe>=De?qe=De:qe<=Q[0]?qe=Q[0]:qe=qe<Le?Q[ge-1]:Q[ge+1]}if(qe=zf(qe,c,l),H){o&&(qe=zf(qe,D[ct-1]||-1/0,D[ct+1]||1/0));const De=qe;qe=V2({values:D,newValue:qe,index:ct});let wt=ct;o||(wt=qe.indexOf(De)),lv({sliderRef:te,activeIndex:wt})}L(qe),X(ct),F&&!cv(qe,T)&&F(tt,qe,ct),h&&h(tt,U.current??qe)},le=tt=>Je=>{if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(Je.key)){Je.preventDefault();const ct=Number(Je.currentTarget.getAttribute("data-index")),Le=D[ct];let ge=null;if(x!=null){const qe=Je.shiftKey?w:x;switch(Je.key){case"ArrowUp":ge=Cf(Le,qe,1,c,l);break;case"ArrowRight":ge=Cf(Le,qe,a?-1:1,c,l);break;case"ArrowDown":ge=Cf(Le,qe,-1,c,l);break;case"ArrowLeft":ge=Cf(Le,qe,a?1:-1,c,l);break;case"PageUp":ge=Cf(Le,w,1,c,l);break;case"PageDown":ge=Cf(Le,w,-1,c,l);break;case"Home":ge=c;break;case"End":ge=l;break}}else if(K){const qe=Q[Q.length-1],De=Q.indexOf(Le),wt=[a?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],Ct=[a?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];wt.includes(Je.key)?De===0?ge=Q[0]:ge=Q[De-1]:Ct.includes(Je.key)&&(De===Q.length-1?ge=qe:ge=Q[De+1])}ge!=null&&ie(Je,ge)}tt?.onKeyDown?.(Je)};Ea(()=>{r&&te.current.contains(document.activeElement)&&document.activeElement?.blur()},[r]),r&&O!==-1&&$(-1),r&&ee!==-1&&X(-1);const se=tt=>Je=>{tt.onChange?.(Je),ie(Je,Je.target.valueAsNumber)},pe=C.useRef(void 0);let ne=y;a&&y==="horizontal"&&(ne+="-reverse");const me=({finger:tt,move:Je=!1})=>{const{current:ct}=te,{width:Le,height:ge,bottom:qe,left:De}=ct.getBoundingClientRect();let wt;ne.startsWith("vertical")?wt=(qe-tt.y)/ge:wt=(tt.x-De)/Le,ne.includes("-reverse")&&(wt=1-wt);let Ct;if(Ct=vY(wt,c,l),x)Ct=xY(Ct,x,c);else{const st=U2(Q,Ct);Ct=Q[st]}Ct=zf(Ct,c,l);let yt=0;if(H){Je?yt=pe.current:yt=U2(D,Ct),o&&(Ct=zf(Ct,D[yt-1]||-1/0,D[yt+1]||1/0));const st=Ct;Ct=V2({values:D,newValue:Ct,index:yt}),o&&Je||(yt=Ct.indexOf(st),pe.current=yt)}return{newValue:Ct,activeIndex:yt}},xe=No(tt=>{const Je=sv(tt,E);if(!Je)return;if(W.current+=1,tt.type==="mousemove"&&tt.buttons===0){Se(tt);return}const{newValue:ct,activeIndex:Le}=me({finger:Je,move:!0});lv({sliderRef:te,activeIndex:Le,setActive:$}),L(ct),!j&&W.current>yY&&_(!0),F&&!cv(ct,T)&&F(tt,ct,Le)}),Se=No(tt=>{const Je=sv(tt,E);if(_(!1),!Je)return;const{newValue:ct}=me({finger:Je,move:!0});$(-1),tt.type==="touchend"&&I(-1),h&&h(tt,U.current??ct),E.current=void 0,Ee()}),ce=No(tt=>{if(r)return;H2()||tt.preventDefault();const Je=tt.changedTouches[0];Je!=null&&(E.current=Je.identifier);const ct=sv(tt,E);if(ct!==!1){const{newValue:ge,activeIndex:qe}=me({finger:ct});lv({sliderRef:te,activeIndex:qe,setActive:$}),L(ge),F&&!cv(ge,T)&&F(tt,ge,qe)}W.current=0;const Le=Ao(te.current);Le.addEventListener("touchmove",xe,{passive:!0}),Le.addEventListener("touchend",Se,{passive:!0})}),Ee=C.useCallback(()=>{const tt=Ao(te.current);tt.removeEventListener("mousemove",xe),tt.removeEventListener("mouseup",Se),tt.removeEventListener("touchmove",xe),tt.removeEventListener("touchend",Se)},[Se,xe]);C.useEffect(()=>{const{current:tt}=te;return tt.addEventListener("touchstart",ce,{passive:H2()}),()=>{tt.removeEventListener("touchstart",ce),Ee()}},[Ee,ce]),C.useEffect(()=>{r&&Ee()},[r,Ee]);const Ge=tt=>Je=>{if(tt.onMouseDown?.(Je),r||Je.defaultPrevented||Je.button!==0)return;Je.preventDefault();const ct=sv(Je,E);if(ct!==!1){const{newValue:ge,activeIndex:qe}=me({finger:ct});lv({sliderRef:te,activeIndex:qe,setActive:$}),L(ge),F&&!cv(ge,T)&&F(Je,ge,qe)}W.current=0;const Le=Ao(te.current);Le.addEventListener("mousemove",xe,{passive:!0}),Le.addEventListener("mouseup",Se)},Te=mb(H?D[0]:c,c,l),je=mb(D[D.length-1],c,l)-Te,oe=(tt={})=>{const Je=Zu(tt),ct={onMouseDown:Ge(Je||{})},Le={...Je,...ct};return{...tt,ref:ae,...Le}},lt=tt=>Je=>{tt.onMouseOver?.(Je);const ct=Number(Je.currentTarget.getAttribute("data-index"));I(ct)},Ie=tt=>Je=>{tt.onMouseLeave?.(Je),I(-1)},et=(tt={})=>{const Je=Zu(tt),ct={onMouseOver:lt(Je||{}),onMouseLeave:Ie(Je||{})};return{...tt,...Je,...ct}},mt=tt=>({pointerEvents:O!==-1&&O!==tt?"none":void 0});let Wt;return y==="vertical"&&(Wt=a?"vertical-rl":"vertical-lr"),{active:O,axis:ne,axisProps:SY,dragging:j,focusedThumbIndex:ee,getHiddenInputProps:(tt={})=>{const Je=Zu(tt),ct={onChange:se(Je||{}),onFocus:ue(Je||{}),onBlur:he(Je||{}),onKeyDown:le(Je||{})},Le={...Je,...ct};return{tabIndex:b,"aria-labelledby":t,"aria-orientation":y,"aria-valuemax":S(l),"aria-valuemin":S(c),name:f,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:r,...tt,...Le,style:{...aY,direction:a?"rtl":"ltr",width:"100%",height:"100%",writingMode:Wt}}},getRootProps:oe,getThumbProps:et,marks:K,open:A,range:H,rootRef:ae,trackLeap:je,trackOffset:Te,values:D,getThumbStyle:mt}}const kY=e=>!e||!Bc(e);function EY(e){return dn("MuiSlider",e)}const qi=pn("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),TY=e=>{const{open:t}=e;return{offset:Nt(t&&qi.valueLabelOpen),circle:qi.valueLabelCircle,label:qi.valueLabelLabel}};function MY(e){const{children:t,className:n,value:r}=e,o=TY(e);return t?C.cloneElement(t,{className:t.props.className},m.jsxs(C.Fragment,{children:[t.props.children,m.jsx("span",{className:Nt(o.offset,n),"aria-hidden":!0,children:m.jsx("span",{className:o.circle,children:m.jsx("span",{className:o.label,children:r})})})]})):null}function W2(e){return e}const RY=at("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${nt(n.color)}`],n.size!=="medium"&&t[`size${nt(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(rn(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${qi.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${qi.dragging}`]:{[`& .${qi.thumb}, & .${qi.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(zr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),OY=at("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),$Y=at("span",{name:"MuiSlider",slot:"Track"})(rn(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(zr()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:e.lighten(e.palette[t].main,.62),borderColor:e.lighten(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:e.darken(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:e.darken(e.palette[t].main,.5)})}}}))]}))),PY=at("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${nt(n.color)}`],n.size!=="medium"&&t[`thumbSize${nt(n.size)}`]]}})(rn(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${qi.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(zr()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${qi.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${qi.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),AY=at(MY,{name:"MuiSlider",slot:"ValueLabel"})(rn(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${qi.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${qi.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}))),DY=at("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>c0(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(rn(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),jY=at("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>c0(e)&&e!=="markLabelActive"})(rn(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),NY=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:a,classes:s,color:l,size:c}=e,f={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",l&&`color${nt(l)}`,c&&`size${nt(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${nt(c)}`,l&&`thumbColor${nt(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return fn(f,EY,s)},IY=({children:e})=>e,LY=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiSlider"}),o=Pg(),{"aria-label":a,"aria-valuetext":s,"aria-labelledby":l,component:c="span",components:f={},componentsProps:u={},color:h="primary",classes:y,className:v,disableSwap:S=!1,disabled:x=!1,getAriaLabel:w,getAriaValueText:b,marks:k=!1,max:E=100,min:O=0,name:$,onChange:A,onChangeCommitted:I,orientation:j="horizontal",shiftStep:_=10,size:W="medium",step:U=1,scale:T=W2,slotProps:L,slots:F,tabIndex:H,track:D="normal",value:K,valueLabelDisplay:Q="off",valueLabelFormat:ee=W2,...X}=r,te={...r,isRtl:o,max:E,min:O,classes:y,disabled:x,disableSwap:S,orientation:j,marks:k,color:h,size:W,step:U,shiftStep:_,scale:T,track:D,valueLabelDisplay:Q,valueLabelFormat:ee},{axisProps:ae,getRootProps:ue,getHiddenInputProps:he,getThumbProps:ie,open:le,active:se,axis:pe,focusedThumbIndex:ne,range:me,dragging:xe,marks:Se,values:ce,trackOffset:Ee,trackLeap:Ge,getThumbStyle:Te}=CY({...te,rootRef:n});te.marked=Se.length>0&&Se.some(Jt=>Jt.label),te.dragging=xe,te.focusedThumbIndex=ne;const je=NY(te),oe=F?.root??f.Root??RY,lt=F?.rail??f.Rail??OY,Ie=F?.track??f.Track??$Y,et=F?.thumb??f.Thumb??PY,mt=F?.valueLabel??f.ValueLabel??AY,Wt=F?.mark??f.Mark??DY,zt=F?.markLabel??f.MarkLabel??jY,tt=F?.input??f.Input??"input",Je=L?.root??u.root,ct=L?.rail??u.rail,Le=L?.track??u.track,ge=L?.thumb??u.thumb,qe=L?.valueLabel??u.valueLabel,De=L?.mark??u.mark,wt=L?.markLabel??u.markLabel,Ct=L?.input??u.input,yt=Gs({elementType:oe,getSlotProps:ue,externalSlotProps:Je,externalForwardedProps:X,additionalProps:{...kY(oe)&&{as:c}},ownerState:{...te,...Je?.ownerState},className:[je.root,v]}),st=Gs({elementType:lt,externalSlotProps:ct,ownerState:te,className:je.rail}),jt=Gs({elementType:Ie,externalSlotProps:Le,additionalProps:{style:{...ae[pe].offset(Ee),...ae[pe].leap(Ge)}},ownerState:{...te,...Le?.ownerState},className:je.track}),qt=Gs({elementType:et,getSlotProps:ie,externalSlotProps:ge,ownerState:{...te,...ge?.ownerState},className:je.thumb}),mn=Gs({elementType:mt,externalSlotProps:qe,ownerState:{...te,...qe?.ownerState},className:je.valueLabel}),$n=Gs({elementType:Wt,externalSlotProps:De,ownerState:te,className:je.mark}),_n=Gs({elementType:zt,externalSlotProps:wt,ownerState:te,className:je.markLabel}),Un=Gs({elementType:tt,getSlotProps:he,externalSlotProps:Ct,ownerState:te});return m.jsxs(oe,{...yt,children:[m.jsx(lt,{...st}),m.jsx(Ie,{...jt}),Se.filter(Jt=>Jt.value>=O&&Jt.value<=E).map((Jt,Dn)=>{const Ce=mb(Jt.value,O,E),Vn=ae[pe].offset(Ce);let Mn;return D===!1?Mn=ce.includes(Jt.value):Mn=D==="normal"&&(me?Jt.value>=ce[0]&&Jt.value<=ce[ce.length-1]:Jt.value<=ce[0])||D==="inverted"&&(me?Jt.value<=ce[0]||Jt.value>=ce[ce.length-1]:Jt.value>=ce[0]),m.jsxs(C.Fragment,{children:[m.jsx(Wt,{"data-index":Dn,...$n,...!Bc(Wt)&&{markActive:Mn},style:{...Vn,...$n.style},className:Nt($n.className,Mn&&je.markActive)}),Jt.label!=null?m.jsx(zt,{"aria-hidden":!0,"data-index":Dn,..._n,...!Bc(zt)&&{markLabelActive:Mn},style:{...Vn,..._n.style},className:Nt(je.markLabel,_n.className,Mn&&je.markLabelActive),children:Jt.label}):null]},Dn)}),ce.map((Jt,Dn)=>{const Ce=mb(Jt,O,E),Vn=ae[pe].offset(Ce),Mn=Q==="off"?IY:mt;return m.jsx(Mn,{...!Bc(Mn)&&{valueLabelFormat:ee,valueLabelDisplay:Q,value:typeof ee=="function"?ee(T(Jt),Dn):ee,index:Dn,open:le===Dn||se===Dn||Q==="on",disabled:x},...mn,children:m.jsx(et,{"data-index":Dn,...qt,className:Nt(je.thumb,qt.className,se===Dn&&je.active,ne===Dn&&je.focusVisible),style:{...Vn,...Te(Dn),...qt.style},children:m.jsx(tt,{"data-index":Dn,"aria-label":w?w(Dn):a,"aria-valuenow":T(Jt),"aria-labelledby":l,"aria-valuetext":b?b(T(Jt),Dn):s,value:ce[Dn],...Un})})},Dn)})]})});function zY(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:a}=e,s=Yu();C.useEffect(()=>{if(!o)return;function b(k){k.defaultPrevented||k.key==="Escape"&&r?.(k,"escapeKeyDown")}return document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b)}},[o,r]);const l=No((b,k)=>{r?.(b,k)}),c=No(b=>{!r||b==null||s.start(b,()=>{l(null,"timeout")})});C.useEffect(()=>(o&&c(t),s.clear),[o,t,c,s]);const f=b=>{r?.(b,"clickaway")},u=s.clear,h=C.useCallback(()=>{t!=null&&c(a??t*.5)},[t,a,c]),y=b=>k=>{const E=b.onBlur;E?.(k),h()},v=b=>k=>{const E=b.onFocus;E?.(k),u()},S=b=>k=>{const E=b.onMouseEnter;E?.(k),u()},x=b=>k=>{const E=b.onMouseLeave;E?.(k),h()};return C.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",h),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",u)}},[n,o,h,u]),{getRootProps:(b={})=>{const k={...Zu(e),...Zu(b)};return{role:"presentation",...b,...k,onBlur:y(k),onFocus:v(k),onMouseEnter:S(k),onMouseLeave:x(k)}},onClickAway:f}}function FY(e){return dn("MuiSnackbarContent",e)}pn("MuiSnackbarContent",["root","message","action"]);const _Y=e=>{const{classes:t}=e;return fn({root:["root"],action:["action"],message:["message"]},FY,t)},BY=at(Wa,{name:"MuiSnackbarContent",slot:"Root"})(rn(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(ew(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:ew(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),UY=at("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),VY=at("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),HY=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiSnackbarContent"}),{action:o,className:a,message:s,role:l="alert",...c}=r,f=r,u=_Y(f);return m.jsxs(BY,{role:l,elevation:6,className:Nt(u.root,a),ownerState:f,ref:n,...c,children:[m.jsx(UY,{className:u.message,ownerState:f,children:s}),o?m.jsx(VY,{className:u.action,ownerState:f,children:o}):null]})});function WY(e){return dn("MuiSnackbar",e)}pn("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const qY=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${nt(n.vertical)}${nt(n.horizontal)}`]};return fn(r,WY,t)},YY=at("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${nt(n.anchorOrigin.vertical)}${nt(n.anchorOrigin.horizontal)}`]]}})(rn(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),v0=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiSnackbar"}),o=Xc(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:l,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:f=null,children:u,className:h,ClickAwayListenerProps:y,ContentProps:v,disableWindowBlurListener:S=!1,message:x,onBlur:w,onClose:b,onFocus:k,onMouseEnter:E,onMouseLeave:O,open:$,resumeHideDuration:A,slots:I={},slotProps:j={},TransitionComponent:_,transitionDuration:W=a,TransitionProps:{onEnter:U,onExited:T,...L}={},...F}=r,H={...r,anchorOrigin:{vertical:l,horizontal:c},autoHideDuration:f,disableWindowBlurListener:S,TransitionComponent:_,transitionDuration:W},D=qY(H),{getRootProps:K,onClickAway:Q}=zY({...H}),[ee,X]=C.useState(!0),te=ce=>{X(!0),T&&T(ce)},ae=(ce,Ee)=>{X(!1),U&&U(ce,Ee)},ue={slots:{transition:_,...I},slotProps:{content:v,clickAwayListener:y,transition:L,...j}},[he,ie]=An("root",{ref:n,className:[D.root,h],elementType:YY,getSlotProps:K,externalForwardedProps:{...ue,...F},ownerState:H}),[le,{ownerState:se,...pe}]=An("clickAwayListener",{elementType:$9,externalForwardedProps:ue,getSlotProps:ce=>({onClickAway:(...Ee)=>{const Ge=Ee[0];ce.onClickAway?.(...Ee),!Ge?.defaultMuiPrevented&&Q(...Ee)}}),ownerState:H}),[ne,me]=An("content",{elementType:HY,shouldForwardComponentProp:!0,externalForwardedProps:ue,additionalProps:{message:x,action:s},ownerState:H}),[xe,Se]=An("transition",{elementType:sg,externalForwardedProps:ue,getSlotProps:ce=>({onEnter:(...Ee)=>{ce.onEnter?.(...Ee),ae(...Ee)},onExited:(...Ee)=>{ce.onExited?.(...Ee),te(...Ee)}}),additionalProps:{appear:!0,in:$,timeout:W,direction:l==="top"?"down":"up"},ownerState:H});return!$&&ee?null:m.jsx(le,{...pe,...I.clickAwayListener&&{ownerState:se},children:m.jsx(he,{...ie,children:m.jsx(xe,{...Se,children:u||m.jsx(ne,{...me})})})})});function GY(e){return dn("MuiTooltip",e)}const mo=pn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function KY(e){return Math.round(e*1e5)/1e5}const QY=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${nt(a.split("-")[0])}`],arrow:["arrow"]};return fn(s,GY,t)},XY=at(f0,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(rn(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${mo.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${mo.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${mo.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${mo.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${mo.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${mo.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${mo.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${mo.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),ZY=at("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${nt(n.placement.split("-")[0])}`]]}})(rn(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${mo.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${mo.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${mo.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${mo.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${KY(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${mo.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${mo.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${mo.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${mo.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${mo.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${mo.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${mo.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${mo.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${mo.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${mo.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),JY=at("span",{name:"MuiTooltip",slot:"Arrow"})(rn(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let dv=!1;const q2=new u0;let Yh={x:0,y:0};function fv(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const xi=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:a,classes:s,components:l={},componentsProps:c={},describeChild:f=!1,disableFocusListener:u=!1,disableHoverListener:h=!1,disableInteractive:y=!1,disableTouchListener:v=!1,enterDelay:S=100,enterNextDelay:x=0,enterTouchDelay:w=700,followCursor:b=!1,id:k,leaveDelay:E=0,leaveTouchDelay:O=1500,onClose:$,onOpen:A,open:I,placement:j="bottom",PopperComponent:_,PopperProps:W={},slotProps:U={},slots:T={},title:L,TransitionComponent:F,TransitionProps:H,...D}=r,K=C.isValidElement(a)?a:m.jsx("span",{children:a}),Q=Xc(),ee=Pg(),[X,te]=C.useState(),[ae,ue]=C.useState(null),he=C.useRef(!1),ie=y||b,le=Yu(),se=Yu(),pe=Yu(),ne=Yu(),[me,xe]=_c({controlled:I,default:!1,name:"Tooltip",state:"open"});let Se=me;const ce=Qc(k),Ee=C.useRef(),Ge=No(()=>{Ee.current!==void 0&&(document.body.style.WebkitUserSelect=Ee.current,Ee.current=void 0),ne.clear()});C.useEffect(()=>Ge,[Ge]);const Te=en=>{q2.clear(),dv=!0,xe(!0),A&&!Se&&A(en)},je=No(en=>{q2.start(800+E,()=>{dv=!1}),xe(!1),$&&Se&&$(en),le.start(Q.transitions.duration.shortest,()=>{he.current=!1})}),oe=en=>{he.current&&en.type!=="touchstart"||(X&&X.removeAttribute("title"),se.clear(),pe.clear(),S||dv&&x?se.start(dv?x:S,()=>{Te(en)}):Te(en))},lt=en=>{se.clear(),pe.start(E,()=>{je(en)})},[,Ie]=C.useState(!1),et=en=>{Wc(en.target)||(Ie(!1),lt(en))},mt=en=>{X||te(en.currentTarget),Wc(en.target)&&(Ie(!0),oe(en))},Wt=en=>{he.current=!0;const $t=K.props;$t.onTouchStart&&$t.onTouchStart(en)},zt=en=>{Wt(en),pe.clear(),le.clear(),Ge(),Ee.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ne.start(w,()=>{document.body.style.WebkitUserSelect=Ee.current,oe(en)})},tt=en=>{K.props.onTouchEnd&&K.props.onTouchEnd(en),Ge(),pe.start(O,()=>{je(en)})};C.useEffect(()=>{if(!Se)return;function en($t){$t.key==="Escape"&&je($t)}return document.addEventListener("keydown",en),()=>{document.removeEventListener("keydown",en)}},[je,Se]);const Je=bo(vd(K),te,n);!L&&L!==0&&(Se=!1);const ct=C.useRef(),Le=en=>{const $t=K.props;$t.onMouseMove&&$t.onMouseMove(en),Yh={x:en.clientX,y:en.clientY},ct.current&&ct.current.update()},ge={},qe=typeof L=="string";f?(ge.title=!Se&&qe&&!h?L:null,ge["aria-describedby"]=Se?ce:null):(ge["aria-label"]=qe?L:null,ge["aria-labelledby"]=Se&&!qe?ce:null);const De={...ge,...D,...K.props,className:Nt(D.className,K.props.className),onTouchStart:Wt,ref:Je,...b?{onMouseMove:Le}:{}},wt={};v||(De.onTouchStart=zt,De.onTouchEnd=tt),h||(De.onMouseOver=fv(oe,De.onMouseOver),De.onMouseLeave=fv(lt,De.onMouseLeave),ie||(wt.onMouseOver=oe,wt.onMouseLeave=lt)),u||(De.onFocus=fv(mt,De.onFocus),De.onBlur=fv(et,De.onBlur),ie||(wt.onFocus=mt,wt.onBlur=et));const Ct={...r,isRtl:ee,arrow:o,disableInteractive:ie,placement:j,PopperComponentProp:_,touch:he.current},yt=typeof U.popper=="function"?U.popper(Ct):U.popper,st=C.useMemo(()=>{let en=[{name:"arrow",enabled:!!ae,options:{element:ae,padding:4}}];return W.popperOptions?.modifiers&&(en=en.concat(W.popperOptions.modifiers)),yt?.popperOptions?.modifiers&&(en=en.concat(yt.popperOptions.modifiers)),{...W.popperOptions,...yt?.popperOptions,modifiers:en}},[ae,W.popperOptions,yt?.popperOptions]),jt=QY(Ct),qt=typeof U.transition=="function"?U.transition(Ct):U.transition,mn={slots:{popper:l.Popper,transition:l.Transition??F,tooltip:l.Tooltip,arrow:l.Arrow,...T},slotProps:{arrow:U.arrow??c.arrow,popper:{...W,...yt??c.popper},tooltip:U.tooltip??c.tooltip,transition:{...H,...qt??c.transition}}},[$n,_n]=An("popper",{elementType:XY,externalForwardedProps:mn,ownerState:Ct,className:Nt(jt.popper,W?.className)}),[Un,Jt]=An("transition",{elementType:sg,externalForwardedProps:mn,ownerState:Ct}),[Dn,Ce]=An("tooltip",{elementType:ZY,className:jt.tooltip,externalForwardedProps:mn,ownerState:Ct}),[Vn,Mn]=An("arrow",{elementType:JY,className:jt.arrow,externalForwardedProps:mn,ownerState:Ct,ref:ue});return m.jsxs(C.Fragment,{children:[C.cloneElement(K,De),m.jsx($n,{as:_??f0,placement:j,anchorEl:b?{getBoundingClientRect:()=>({top:Yh.y,left:Yh.x,right:Yh.x,bottom:Yh.y,width:0,height:0})}:X,popperRef:ct,open:X?Se:!1,id:ce,transition:!0,...wt,..._n,popperOptions:st,children:({TransitionProps:en})=>m.jsx(Un,{timeout:Q.transitions.duration.shorter,...en,...Jt,children:m.jsxs(Dn,{...Ce,children:[L,o?m.jsx(Vn,{...Mn}):null]})})})]})}),cr=XC({createStyledComponent:at("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>hn({props:e,name:"MuiStack"})});function eG(e){return dn("MuiSwitch",e)}const xa=pn("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),tG=e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:s}=e,l={root:["root",n&&`edge${nt(n)}`,`size${nt(r)}`],switchBase:["switchBase",`color${nt(o)}`,a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=fn(l,eG,t);return{...t,...c}},nG=at("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${nt(n.edge)}`],t[`size${nt(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${xa.thumb}`]:{width:16,height:16},[`& .${xa.switchBase}`]:{padding:4,[`&.${xa.checked}`]:{transform:"translateX(16px)"}}}}]}),rG=at(FN,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${xa.input}`]:t.input},n.color!=="default"&&t[`color${nt(n.color)}`]]}})(rn(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${xa.checked}`]:{transform:"translateX(20px)"},[`&.${xa.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${xa.checked} + .${xa.track}`]:{opacity:.5},[`&.${xa.disabled} + .${xa.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${xa.input}`]:{left:"-100%",width:"300%"}})),rn(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(zr(["light"])).map(([t])=>({props:{color:t},style:{[`&.${xa.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${xa.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${xa.checked} + .${xa.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),oG=at("span",{name:"MuiSwitch",slot:"Track"})(rn(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),aG=at("span",{name:"MuiSwitch",slot:"Thumb"})(rn(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),JN=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:s=!1,size:l="medium",sx:c,slots:f={},slotProps:u={},...h}=r,y={...r,color:a,edge:s,size:l},v=tG(y),S={slots:f,slotProps:u},[x,w]=An("root",{className:Nt(v.root,o),elementType:nG,externalForwardedProps:S,ownerState:y,additionalProps:{sx:c}}),[b,k]=An("thumb",{className:v.thumb,elementType:aG,externalForwardedProps:S,ownerState:y}),E=m.jsx(b,{...k}),[O,$]=An("track",{className:v.track,elementType:oG,externalForwardedProps:S,ownerState:y});return m.jsxs(x,{...w,children:[m.jsx(rG,{type:"checkbox",icon:E,checkedIcon:E,ref:n,ownerState:y,...h,classes:{...v,root:v.switchBase},slots:{...f.switchBase&&{root:f.switchBase},...f.input&&{input:f.input}},slotProps:{...u.switchBase&&{root:typeof u.switchBase=="function"?u.switchBase(y):u.switchBase},input:{role:"switch"},...u.input&&{input:typeof u.input=="function"?u.input(y):u.input}}}),m.jsx(O,{...$})]})}),eI=C.createContext();function iG(e){return dn("MuiTable",e)}pn("MuiTable",["root","stickyHeader"]);const sG=e=>{const{classes:t,stickyHeader:n}=e;return fn({root:["root",n&&"stickyHeader"]},iG,t)},lG=at("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(rn(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),Y2="table",Ng=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiTable"}),{className:o,component:a=Y2,padding:s="normal",size:l="medium",stickyHeader:c=!1,...f}=r,u={...r,component:a,padding:s,size:l,stickyHeader:c},h=sG(u),y=C.useMemo(()=>({padding:s,size:l,stickyHeader:c}),[s,l,c]);return m.jsx(eI.Provider,{value:y,children:m.jsx(lG,{as:a,role:a===Y2?null:"table",ref:n,className:Nt(h.root,o),ownerState:u,...f})})}),b0=C.createContext();function cG(e){return dn("MuiTableBody",e)}pn("MuiTableBody",["root"]);const uG=e=>{const{classes:t}=e;return fn({root:["root"]},cG,t)},dG=at("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),fG={variant:"body"},G2="tbody",Ig=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiTableBody"}),{className:o,component:a=G2,...s}=r,l={...r,component:a},c=uG(l);return m.jsx(b0.Provider,{value:fG,children:m.jsx(dG,{className:Nt(c.root,o),as:a,ref:n,role:a===G2?null:"rowgroup",ownerState:l,...s})})});function pG(e){return dn("MuiTableCell",e)}const hG=pn("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),mG=e=>{const{classes:t,variant:n,align:r,padding:o,size:a,stickyHeader:s}=e,l={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${nt(r)}`,o!=="normal"&&`padding${nt(o)}`,`size${nt(a)}`]};return fn(l,pG,t)},gG=at("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${nt(n.size)}`],n.padding!=="normal"&&t[`padding${nt(n.padding)}`],n.align!=="inherit"&&t[`align${nt(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(rn(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
266
+ ${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${hG.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),Xn=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:s,padding:l,scope:c,size:f,sortDirection:u,variant:h,...y}=r,v=C.useContext(eI),S=C.useContext(b0),x=S&&S.variant==="head";let w;s?w=s:w=x?"th":"td";let b=c;w==="td"?b=void 0:!b&&x&&(b="col");const k=h||S&&S.variant,E={...r,align:o,component:w,padding:l||(v&&v.padding?v.padding:"normal"),size:f||(v&&v.size?v.size:"medium"),sortDirection:u,stickyHeader:k==="head"&&v&&v.stickyHeader,variant:k},O=mG(E);let $=null;return u&&($=u==="asc"?"ascending":"descending"),m.jsx(gG,{as:w,ref:n,className:Nt(O.root,a),"aria-sort":$,scope:b,ownerState:E,...y})});function yG(e){return dn("MuiTableContainer",e)}pn("MuiTableContainer",["root"]);const vG=e=>{const{classes:t}=e;return fn({root:["root"]},yG,t)},bG=at("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),xG=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiTableContainer"}),{className:o,component:a="div",...s}=r,l={...r,component:a},c=vG(l);return m.jsx(bG,{ref:n,as:a,className:Nt(c.root,o),ownerState:l,...s})});function SG(e){return dn("MuiTableHead",e)}pn("MuiTableHead",["root"]);const wG=e=>{const{classes:t}=e;return fn({root:["root"]},SG,t)},CG=at("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),kG={variant:"head"},K2="thead",Lg=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiTableHead"}),{className:o,component:a=K2,...s}=r,l={...r,component:a},c=wG(l);return m.jsx(b0.Provider,{value:kG,children:m.jsx(CG,{as:a,className:Nt(c.root,o),ref:n,role:a===K2?null:"rowgroup",ownerState:l,...s})})});function EG(e){return dn("MuiTableRow",e)}const Q2=pn("MuiTableRow",["root","selected","hover","head","footer"]),TG=e=>{const{classes:t,selected:n,hover:r,head:o,footer:a}=e;return fn({root:["root",n&&"selected",r&&"hover",o&&"head",a&&"footer"]},EG,t)},MG=at("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(rn(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Q2.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Q2.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),X2="tr",sl=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiTableRow"}),{className:o,component:a=X2,hover:s=!1,selected:l=!1,...c}=r,f=C.useContext(b0),u={...r,component:a,hover:s,selected:l,head:f&&f.variant==="head",footer:f&&f.variant==="footer"},h=TG(u);return m.jsx(MG,{as:a,ref:n,className:Nt(h.root,o),role:a===X2?null:"row",ownerState:u,...c})});function RG(e){return dn("MuiTextField",e)}pn("MuiTextField",["root"]);const OG={standard:hk,filled:fk,outlined:vk},$G=e=>{const{classes:t}=e;return fn({root:["root"]},RG,t)},PG=at(gw,{name:"MuiTextField",slot:"Root"})({}),wa=C.forwardRef(function(t,n){const r=hn({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:s,className:l,color:c="primary",defaultValue:f,disabled:u=!1,error:h=!1,FormHelperTextProps:y,fullWidth:v=!1,helperText:S,id:x,InputLabelProps:w,inputProps:b,InputProps:k,inputRef:E,label:O,maxRows:$,minRows:A,multiline:I=!1,name:j,onBlur:_,onChange:W,onFocus:U,placeholder:T,required:L=!1,rows:F,select:H=!1,SelectProps:D,slots:K={},slotProps:Q={},type:ee,value:X,variant:te="outlined",...ae}=r,ue={...r,autoFocus:a,color:c,disabled:u,error:h,fullWidth:v,multiline:I,required:L,select:H,variant:te},he=$G(ue),ie=Qc(x),le=S&&ie?`${ie}-helper-text`:void 0,se=O&&ie?`${ie}-label`:void 0,pe=OG[te],ne={slots:K,slotProps:{input:k,inputLabel:w,htmlInput:b,formHelperText:y,select:D,...Q}},me={},xe=ne.slotProps.inputLabel;te==="outlined"&&(xe&&typeof xe.shrink<"u"&&(me.notched=xe.shrink),me.label=O),H&&((!D||!D.native)&&(me.id=void 0),me["aria-describedby"]=void 0);const[Se,ce]=An("root",{elementType:PG,shouldForwardComponentProp:!0,externalForwardedProps:{...ne,...ae},ownerState:ue,className:Nt(he.root,l),ref:n,additionalProps:{disabled:u,error:h,fullWidth:v,required:L,color:c,variant:te}}),[Ee,Ge]=An("input",{elementType:pe,externalForwardedProps:ne,additionalProps:me,ownerState:ue}),[Te,je]=An("inputLabel",{elementType:t7,externalForwardedProps:ne,ownerState:ue}),[oe,lt]=An("htmlInput",{elementType:"input",externalForwardedProps:ne,ownerState:ue}),[Ie,et]=An("formHelperText",{elementType:yw,externalForwardedProps:ne,ownerState:ue}),[mt,Wt]=An("select",{elementType:XN,externalForwardedProps:ne,ownerState:ue}),zt=m.jsx(Ee,{"aria-describedby":le,autoComplete:o,autoFocus:a,defaultValue:f,fullWidth:v,multiline:I,name:j,rows:F,maxRows:$,minRows:A,type:ee,value:X,id:ie,inputRef:E,onBlur:_,onChange:W,onFocus:U,placeholder:T,inputProps:lt,slots:{input:K.htmlInput?oe:void 0},...Ge});return m.jsxs(Se,{...ce,children:[O!=null&&O!==""&&m.jsx(Te,{htmlFor:ie,id:se,...je,children:O}),H?m.jsx(mt,{"aria-describedby":le,id:ie,labelId:se,value:X,input:zt,...Wt,children:s}):zt,S&&m.jsx(Ie,{id:le,...et,children:S})]})}),AG=Jj({themeId:Cs});var bd=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},DG={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},jG=class{#e=DG;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Gu=new jG;function NG(e){setTimeout(e,0)}var ld=typeof window>"u"||"Deno"in globalThis;function da(){}function IG(e,t){return typeof e=="function"?e(t):e}function Cw(e){return typeof e=="number"&&e>=0&&e!==1/0}function tI(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Uc(e,t){return typeof e=="function"?e(t):e}function Ui(e,t){return typeof e=="function"?e(t):e}function Z2(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:s,stale:l}=e;if(s){if(r){if(t.queryHash!==xk(s,t.options))return!1}else if(!lg(t.queryKey,s))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||a&&!a(t))}function J2(e,t){const{exact:n,status:r,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(cd(t.options.mutationKey)!==cd(a))return!1}else if(!lg(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function xk(e,t){return(t?.queryKeyHashFn||cd)(e)}function cd(e){return JSON.stringify(e,(t,n)=>kw(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function lg(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>lg(e[n],t[n])):!1}var LG=Object.prototype.hasOwnProperty;function Sk(e,t){if(e===t)return e;const n=e$(e)&&e$(t);if(!n&&!(kw(e)&&kw(t)))return t;const o=(n?e:Object.keys(e)).length,a=n?t:Object.keys(t),s=a.length,l=n?new Array(s):{};let c=0;for(let f=0;f<s;f++){const u=n?f:a[f],h=e[u],y=t[u];if(h===y){l[u]=h,(n?f<o:LG.call(e,u))&&c++;continue}if(h===null||y===null||typeof h!="object"||typeof y!="object"){l[u]=y;continue}const v=Sk(h,y);l[u]=v,v===h&&c++}return o===s&&c===o?e:l}function cg(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function e$(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function kw(e){if(!t$(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!t$(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function t$(e){return Object.prototype.toString.call(e)==="[object Object]"}function zG(e){return new Promise(t=>{Gu.setTimeout(t,e)})}function Ew(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Sk(e,t):t}function FG(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function _G(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var wk=Symbol();function nI(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===wk?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function rI(e,t){return typeof e=="function"?e(...t):!!e}var BG=class extends bd{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!ld&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Ck=new BG;function Tw(){let e,t;const n=new Promise((o,a)=>{e=o,t=a});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var UG=NG;function VG(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=UG;const a=l=>{t?e.push(l):o(()=>{n(l)})},s=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(c=>{n(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||s()}return c},batchCalls:l=>(...c)=>{a(()=>{l(...c)})},schedule:a,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var go=VG(),HG=class extends bd{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!ld&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},gb=new HG;function WG(e){return Math.min(1e3*2**e,3e4)}function oI(e){return(e??"online")==="online"?gb.isOnline():!0}var Mw=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function aI(e){let t=!1,n=0,r;const o=Tw(),a=()=>o.status!=="pending",s=x=>{if(!a()){const w=new Mw(x);y(w),e.onCancel?.(w)}},l=()=>{t=!0},c=()=>{t=!1},f=()=>Ck.isFocused()&&(e.networkMode==="always"||gb.isOnline())&&e.canRun(),u=()=>oI(e.networkMode)&&e.canRun(),h=x=>{a()||(r?.(),o.resolve(x))},y=x=>{a()||(r?.(),o.reject(x))},v=()=>new Promise(x=>{r=w=>{(a()||f())&&x(w)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),S=()=>{if(a())return;let x;const w=n===0?e.initialPromise:void 0;try{x=w??e.fn()}catch(b){x=Promise.reject(b)}Promise.resolve(x).then(h).catch(b=>{if(a())return;const k=e.retry??(ld?0:3),E=e.retryDelay??WG,O=typeof E=="function"?E(n,b):E,$=k===!0||typeof k=="number"&&n<k||typeof k=="function"&&k(n,b);if(t||!$){y(b);return}n++,e.onFail?.(n,b),zG(O).then(()=>f()?void 0:v()).then(()=>{t?y(b):S()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(r?.(),o),cancelRetry:l,continueRetry:c,canStart:u,start:()=>(u()?S():v().then(S),o)}}var iI=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Cw(this.gcTime)&&(this.#e=Gu.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ld?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Gu.clearTimeout(this.#e),this.#e=void 0)}},qG=class extends iI{#e;#t;#n;#o;#r;#a;#s;constructor(e){super(),this.#s=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#o=e.client,this.#n=this.#o.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=n$(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=n$(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=Ew(this.state.data,e,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(da).catch(da):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>Ui(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===wk||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Uc(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!tI(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const l=this.observers.find(c=>c.options.queryFn);l&&this.setOptions(l.options)}const n=new AbortController,r=l=>{Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},o=()=>{const l=nI(this.options,t),f=(()=>{const u={client:this.#o,queryKey:this.queryKey,meta:this.meta};return r(u),u})();return this.#s=!1,this.options.persister?this.options.persister(l,f,this):l(f)},s=(()=>{const l={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#o,state:this.state,fetchFn:o};return r(l),l})();this.options.behavior?.onFetch(s,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#i({type:"fetch",meta:s.fetchOptions?.meta}),this.#r=aI({initialPromise:t?.initialPromise,fn:s.fetchFn,onCancel:l=>{l instanceof Mw&&l.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(l,c)=>{this.#i({type:"failed",failureCount:l,error:c})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0});try{const l=await this.#r.start();if(l===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(l),this.#n.config.onSuccess?.(l,this),this.#n.config.onSettled?.(l,this.state.error,this),l}catch(l){if(l instanceof Mw){if(l.silent)return this.#r.promise;if(l.revert){if(this.state.data===void 0)throw l;return this.state.data}}throw this.#i({type:"error",error:l}),this.#n.config.onError?.(l,this),this.#n.config.onSettled?.(this.state.data,l,this),l}finally{this.scheduleGc()}}#i(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...sI(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":const o=e.error;return{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),go.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function sI(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:oI(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function n$(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var kk=class extends bd{constructor(e,t){super(),this.options=t,this.#e=e,this.#i=null,this.#s=Tw(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#o=void 0;#r;#a;#s;#i;#c;#l;#d;#u;#p;#f;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),r$(this.#t,this.options)?this.#g():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Rw(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Rw(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ui(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#t.setOptions(this.options),t._defaulted&&!cg(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&o$(this.#t,n,this.options,t)&&this.#g(),this.updateResult(),r&&(this.#t!==n||Ui(this.options.enabled,this.#t)!==Ui(t.enabled,this.#t)||Uc(this.options.staleTime,this.#t)!==Uc(t.staleTime,this.#t))&&this.#y();const o=this.#h();r&&(this.#t!==n||Ui(this.options.enabled,this.#t)!==Ui(t.enabled,this.#t)||o!==this.#f)&&this.#v(o)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return GG(this,n)&&(this.#o=n,this.#a=this.options,this.#r=this.#t.state),n}getCurrentResult(){return this.#o}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(n,r))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#g({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#o))}#g(e){this.#w();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(da)),t}#y(){this.#x();const e=Uc(this.options.staleTime,this.#t);if(ld||this.#o.isStale||!Cw(e))return;const n=tI(this.#o.dataUpdatedAt,e)+1;this.#u=Gu.setTimeout(()=>{this.#o.isStale||this.updateResult()},n)}#h(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#S(),this.#f=e,!(ld||Ui(this.options.enabled,this.#t)===!1||!Cw(this.#f)||this.#f===0)&&(this.#p=Gu.setInterval(()=>{(this.options.refetchIntervalInBackground||Ck.isFocused())&&this.#g()},this.#f))}#b(){this.#y(),this.#v(this.#h())}#x(){this.#u&&(Gu.clearTimeout(this.#u),this.#u=void 0)}#S(){this.#p&&(Gu.clearInterval(this.#p),this.#p=void 0)}createResult(e,t){const n=this.#t,r=this.options,o=this.#o,a=this.#r,s=this.#a,c=e!==n?e.state:this.#n,{state:f}=e;let u={...f},h=!1,y;if(t._optimisticResults){const j=this.hasListeners(),_=!j&&r$(e,t),W=j&&o$(e,n,t,r);(_||W)&&(u={...u,...sI(f.data,e.options)}),t._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:v,errorUpdatedAt:S,status:x}=u;y=u.data;let w=!1;if(t.placeholderData!==void 0&&y===void 0&&x==="pending"){let j;o?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(j=o.data,w=!0):j=typeof t.placeholderData=="function"?t.placeholderData(this.#d?.state.data,this.#d):t.placeholderData,j!==void 0&&(x="success",y=Ew(o?.data,j,t),h=!0)}if(t.select&&y!==void 0&&!w)if(o&&y===a?.data&&t.select===this.#c)y=this.#l;else try{this.#c=t.select,y=t.select(y),y=Ew(o?.data,y,t),this.#l=y,this.#i=null}catch(j){this.#i=j}this.#i&&(v=this.#i,y=this.#l,S=Date.now(),x="error");const b=u.fetchStatus==="fetching",k=x==="pending",E=x==="error",O=k&&b,$=y!==void 0,I={status:x,fetchStatus:u.fetchStatus,isPending:k,isSuccess:x==="success",isError:E,isInitialLoading:O,isLoading:O,data:y,dataUpdatedAt:u.dataUpdatedAt,error:v,errorUpdatedAt:S,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>c.dataUpdateCount||u.errorUpdateCount>c.errorUpdateCount,isFetching:b,isRefetching:b&&!k,isLoadingError:E&&!$,isPaused:u.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:E&&$,isStale:Ek(e,t),refetch:this.refetch,promise:this.#s,isEnabled:Ui(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const j=U=>{I.status==="error"?U.reject(I.error):I.data!==void 0&&U.resolve(I.data)},_=()=>{const U=this.#s=I.promise=Tw();j(U)},W=this.#s;switch(W.status){case"pending":e.queryHash===n.queryHash&&j(W);break;case"fulfilled":(I.status==="error"||I.data!==W.value)&&_();break;case"rejected":(I.status!=="error"||I.error!==W.reason)&&_();break}}return I}updateResult(){const e=this.#o,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#a=this.options,this.#r.data!==void 0&&(this.#d=this.#t),cg(t,e))return;this.#o=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,o=typeof r=="function"?r():r;if(o==="all"||!o&&!this.#m.size)return!0;const a=new Set(o??this.#m);return this.options.throwOnError&&a.add("error"),Object.keys(this.#o).some(s=>{const l=s;return this.#o[l]!==e[l]&&a.has(l)})};this.#C({listeners:n()})}#w(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#C(e){go.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#o)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function YG(e,t){return Ui(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function r$(e,t){return YG(e,t)||e.state.data!==void 0&&Rw(e,t,t.refetchOnMount)}function Rw(e,t,n){if(Ui(t.enabled,e)!==!1&&Uc(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Ek(e,t)}return!1}function o$(e,t,n,r){return(e!==t||Ui(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Ek(e,n)}function Ek(e,t){return Ui(t.enabled,e)!==!1&&e.isStaleByTime(Uc(t.staleTime,e))}function GG(e,t){return!cg(e.getCurrentResult(),t)}function a$(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let l={pages:[],pageParams:[]},c=0;const f=async()=>{let u=!1;const h=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},y=nI(t.options,t.fetchOptions),v=async(S,x,w)=>{if(u)return Promise.reject();if(x==null&&S.pages.length)return Promise.resolve(S);const k=(()=>{const A={client:t.client,queryKey:t.queryKey,pageParam:x,direction:w?"backward":"forward",meta:t.options.meta};return h(A),A})(),E=await y(k),{maxPages:O}=t.options,$=w?_G:FG;return{pages:$(S.pages,E,O),pageParams:$(S.pageParams,x,O)}};if(o&&a.length){const S=o==="backward",x=S?KG:i$,w={pages:a,pageParams:s},b=x(r,w);l=await v(w,b,S)}else{const S=e??a.length;do{const x=c===0?s[0]??r.initialPageParam:i$(r,l);if(c>0&&x==null)break;l=await v(l,x),c++}while(c<S)}return l};t.options.persister?t.fetchFn=()=>t.options.persister?.(f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=f}}}function i$(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function KG(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var QG=class extends iI{#e;#t;#n;#o;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||lI(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#o=aI({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(a,s)=>{this.#r({type:"failed",failureCount:a,error:s})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",o=!this.#o.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:o}),await this.#n.config.onMutate?.(e,this,n);const s=await this.options.onMutate?.(e,n);s!==this.state.context&&this.#r({type:"pending",context:s,variables:e,isPaused:o})}const a=await this.#o.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#r({type:"success",data:a}),a}catch(a){try{throw await this.#n.config.onError?.(a,e,this.state.context,this,n),await this.options.onError?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,a,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,a,e,this.state.context,n),a}finally{this.#r({type:"error",error:a})}}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),go.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function lI(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var XG=class extends bd{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new QG({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=pv(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=pv(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=pv(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(o=>o.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=pv(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){go.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>J2(t,n))}findAll(e={}){return this.getAll().filter(t=>J2(e,t))}notify(e){go.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return go.batch(()=>Promise.all(e.map(t=>t.continue().catch(da))))}};function pv(e){return e.options.scope?.id}var ZG=class extends bd{#e;#t=void 0;#n;#o;constructor(t,n){super(),this.#e=t,this.setOptions(n),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#e.defaultMutationOptions(t),cg(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&cd(n.mutationKey)!==cd(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#a(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#a()}mutate(t,n){return this.#o=n,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??lI();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#a(t){go.batch(()=>{if(this.#o&&this.hasListeners()){const n=this.#t.variables,r=this.#t.context,o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#o.onSuccess?.(t.data,n,r,o),this.#o.onSettled?.(t.data,null,n,r,o)):t?.type==="error"&&(this.#o.onError?.(t.error,n,r,o),this.#o.onSettled?.(void 0,t.error,n,r,o))}this.listeners.forEach(n=>{n(this.#t)})})}};function s$(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function JG(e,t,n){const r=e.slice(0);return r[t]=n,r}var eK=class extends bd{#e;#t;#n;#o;#r;#a;#s;#i;#c=[];constructor(e,t,n){super(),this.#e=e,this.#o=n,this.#n=[],this.#r=[],this.#t=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#r.forEach(e=>{e.subscribe(t=>{this.#p(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#r.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#o=t,go.batch(()=>{const n=this.#r,r=this.#u(this.#n);this.#c=r,r.forEach(u=>u.observer.setOptions(u.defaultedQueryOptions));const o=r.map(u=>u.observer),a=o.map(u=>u.getCurrentResult()),s=n.length!==o.length,l=o.some((u,h)=>u!==n[h]),c=s||l,f=c?!0:a.some((u,h)=>{const y=this.#t[h];return!y||!cg(u,y)});!c&&!f||(c&&(this.#r=o),this.#t=a,this.hasListeners()&&(c&&(s$(n,o).forEach(u=>{u.destroy()}),s$(o,n).forEach(u=>{u.subscribe(h=>{this.#p(u,h)})})),this.#f()))})}getCurrentResult(){return this.#t}getQueries(){return this.#r.map(e=>e.getCurrentQuery())}getObservers(){return this.#r}getOptimisticResult(e,t){const n=this.#u(e),r=n.map(o=>o.observer.getOptimisticResult(o.defaultedQueryOptions));return[r,o=>this.#d(o??r,t),()=>this.#l(r,n)]}#l(e,t){return t.map((n,r)=>{const o=e[r];return n.defaultedQueryOptions.notifyOnChangeProps?o:n.observer.trackResult(o,a=>{t.forEach(s=>{s.observer.trackProp(a)})})})}#d(e,t){return t?((!this.#a||this.#t!==this.#i||t!==this.#s)&&(this.#s=t,this.#i=this.#t,this.#a=Sk(this.#a,t(e))),this.#a):e}#u(e){const t=new Map(this.#r.map(r=>[r.options.queryHash,r])),n=[];return e.forEach(r=>{const o=this.#e.defaultQueryOptions(r),a=t.get(o.queryHash);a?n.push({defaultedQueryOptions:o,observer:a}):n.push({defaultedQueryOptions:o,observer:new kk(this.#e,o)})}),n}#p(e,t){const n=this.#r.indexOf(e);n!==-1&&(this.#t=JG(this.#t,n,t),this.#f())}#f(){if(this.hasListeners()){const e=this.#a,t=this.#l(this.#t,this.#c),n=this.#d(t,this.#o?.combine);e!==n&&go.batch(()=>{this.listeners.forEach(r=>{r(this.#t)})})}}},tK=class extends bd{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,o=t.queryHash??xk(r,t);let a=this.get(o);return a||(a=new qG({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){go.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>Z2(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>Z2(e,n)):t}notify(e){go.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){go.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){go.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},nK=class{#e;#t;#n;#o;#r;#a;#s;#i;constructor(e={}){this.#e=e.queryCache||new tK,this.#t=e.mutationCache||new XG,this.#n=e.defaultOptions||{},this.#o=new Map,this.#r=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#s=Ck.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=gb.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#s?.(),this.#s=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Uc(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=this.#e.get(r.queryHash)?.state.data,s=IG(t,a);if(s!==void 0)return this.#e.build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return go.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;go.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return go.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=go.batch(()=>this.#e.findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(da).catch(da)}invalidateQueries(e,t={}){return go.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=go.batch(()=>this.#e.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let a=o.fetch(void 0,n);return n.throwOnError||(a=a.catch(da)),o.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(da)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(Uc(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(da).catch(da)}fetchInfiniteQuery(e){return e.behavior=a$(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(da).catch(da)}ensureInfiniteQueryData(e){return e.behavior=a$(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return gb.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#o.set(cd(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#o.values()],n={};return t.forEach(r=>{lg(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(cd(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{lg(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=xk(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===wk&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},cI=C.createContext(void 0),xd=e=>{const t=C.useContext(cI);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},rK=({client:e,children:t})=>(C.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),m.jsx(cI.Provider,{value:e,children:t})),uI=C.createContext(!1),dI=()=>C.useContext(uI);uI.Provider;function oK(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var aK=C.createContext(oK()),fI=()=>C.useContext(aK),pI=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},hI=e=>{C.useEffect(()=>{e.clearReset()},[e])},mI=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||rI(n,[e.error,r])),gI=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},yI=(e,t)=>e.isLoading&&e.isFetching&&!t,Ow=(e,t)=>e?.suspense&&t.isPending,yb=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function vI({queries:e,...t},n){const r=xd(n),o=dI(),a=fI(),s=C.useMemo(()=>e.map(x=>{const w=r.defaultQueryOptions(x);return w._optimisticResults=o?"isRestoring":"optimistic",w}),[e,r,o]);s.forEach(x=>{gI(x),pI(x,a)}),hI(a);const[l]=C.useState(()=>new eK(r,s,t)),[c,f,u]=l.getOptimisticResult(s,t.combine),h=!o&&t.subscribed!==!1;C.useSyncExternalStore(C.useCallback(x=>h?l.subscribe(go.batchCalls(x)):da,[l,h]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),C.useEffect(()=>{l.setQueries(s,t)},[s,t,l]);const v=c.some((x,w)=>Ow(s[w],x))?c.flatMap((x,w)=>{const b=s[w];if(b){const k=new kk(r,b);if(Ow(b,x))return yb(b,k,a);yI(x,o)&&yb(b,k,a)}return[]}):[];if(v.length>0)throw Promise.all(v);const S=c.find((x,w)=>{const b=s[w];return b&&mI({result:x,errorResetBoundary:a,throwOnError:b.throwOnError,query:r.getQueryCache().get(b.queryHash),suspense:b.suspense})});if(S?.error)throw S.error;return f(u())}function iK(e,t,n){const r=dI(),o=fI(),a=xd(n),s=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(s),s._optimisticResults=r?"isRestoring":"optimistic",gI(s),pI(s,o),hI(o);const l=!a.getQueryCache().get(s.queryHash),[c]=C.useState(()=>new t(a,s)),f=c.getOptimisticResult(s),u=!r&&e.subscribed!==!1;if(C.useSyncExternalStore(C.useCallback(h=>{const y=u?c.subscribe(go.batchCalls(h)):da;return c.updateResult(),y},[c,u]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),C.useEffect(()=>{c.setOptions(s)},[s,c]),Ow(s,f))throw yb(s,c,o);if(mI({result:f,errorResetBoundary:o,throwOnError:s.throwOnError,query:a.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw f.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(s,f),s.experimental_prefetchInRender&&!ld&&yI(f,r)&&(l?yb(s,c,o):a.getQueryCache().get(s.queryHash)?.promise)?.catch(da).finally(()=>{c.updateResult()}),s.notifyOnChangeProps?f:c.trackResult(f)}function bI(e,t){return iK(e,kk,t)}function sK(e,t){const n=xd(t),[r]=C.useState(()=>new ZG(n,e));C.useEffect(()=>{r.setOptions(e)},[r,e]);const o=C.useSyncExternalStore(C.useCallback(s=>r.subscribe(go.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=C.useCallback((s,l)=>{r.mutate(s,l).catch(da)},[r]);if(o.error&&rI(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}function xI(e,t){return function(){return e.apply(t,arguments)}}const{toString:lK}=Object.prototype,{getPrototypeOf:Yc}=Object,{iterator:zg,toStringTag:SI}=Symbol,ug=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),wI=e=>typeof e=="string"&&(e==="__proto__"||e==="constructor"||e==="prototype"),CI=(e,t,n)=>e===Object.prototype||!n&&t===null,cK=e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(n=>{if(wI(n))return!1;const r=Object.getOwnPropertyDescriptor(e,n);return!!r&&r.configurable&&r.writable===!0})},dg=(e,t)=>{let n=e;const r=[];for(;n!=null;){if(r.indexOf(n)!==-1)return!1;r.push(n);const o=Yc(n);if(CI(n,o,n===e))return!1;if(ug(n,t))return!0;n=o}return!1},uK=(e,t)=>e!=null&&dg(e,t)?e[t]:void 0,dK=e=>{if(e==null||typeof e!="object"&&typeof e!="function")return e;const t=Yc(e);if(t===null&&cK(e))return e;const n=Object.create(null),r=Object.create(null),o=[];let a=e;for(;a!=null&&o.indexOf(a)===-1;){o.push(a);const s=a===e?t:Yc(a);if(CI(a,s,a===e))break;const l=Object.getOwnPropertyNames(a);Object.getOwnPropertySymbols&&l.push(...Object.getOwnPropertySymbols(a));for(const c of l)wI(c)||ug(r,c)||(n[c]=e[c],r[c]=!0);a=s}return n},Tk=(e=>t=>{const n=lK.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),os=e=>(e=e.toLowerCase(),t=>Tk(t)===e),x0=e=>t=>typeof t===e,{isArray:ud}=Array,dd=x0("undefined");function Op(e){return e!==null&&!dd(e)&&e.constructor!==null&&!dd(e.constructor)&&_a(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const kI=os("ArrayBuffer");function fK(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&kI(e.buffer),t}const pK=x0("string"),_a=x0("function"),EI=x0("number"),$p=e=>e!==null&&typeof e=="object",hK=e=>e===!0||e===!1,Wv=e=>{if(!$p(e))return!1;const t=Yc(e);return(t===null||t===Object.prototype||Yc(t)===null)&&!dg(e,SI)&&!dg(e,zg)},mK=e=>{if(!$p(e)||Op(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},gK=os("Date"),yK=os("File"),vK=e=>!!(e&&typeof e.uri<"u"),bK=e=>e&&typeof e.getParts<"u",xK=os("Blob"),SK=os("FileList"),wK=os("Set"),CK=e=>$p(e)&&_a(e.pipe);function kK(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const l$=kK(),c$=typeof l$.FormData<"u"?l$.FormData:void 0,EK=e=>{if(!e)return!1;if(c$&&e instanceof c$)return!0;const t=Yc(e);if(!t||t===Object.prototype||!_a(e.append))return!1;const n=Tk(e);return n==="formdata"||n==="object"&&_a(e.toString)&&e.toString()==="[object FormData]"},TK=os("URLSearchParams"),[MK,RK,OK,$K]=["ReadableStream","Request","Response","Headers"].map(os),PK=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fg(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),ud(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(Op(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),s=a.length;let l;for(r=0;r<s;r++)l=a[r],t.call(null,e[l],l,e)}}function TI(e,t){if(Op(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Ku=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,MI=e=>!dd(e)&&e!==Ku;function $w(...e){const{caseless:t,skipUndefined:n}=MI(this)&&this||{},r={},o=(a,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const l=t&&typeof s=="string"&&TI(r,s)||s,c=ug(r,l)?r[l]:void 0;Wv(c)&&Wv(a)?r[l]=$w(c,a):Wv(a)?r[l]=$w({},a):ud(a)?r[l]=a.slice():(!n||!dd(a))&&(r[l]=a)};for(let a=0,s=e.length;a<s;a++){const l=e[a];if(!l||Op(l)||(Fg(l,o),typeof l!="object"||ud(l)))continue;const c=Object.getOwnPropertySymbols(l);for(let f=0;f<c.length;f++){const u=c[f];VK.call(l,u)&&o(l[u],u)}}return r}const AK=(e,t,n,{allOwnKeys:r}={})=>(Fg(t,(o,a)=>{n&&_a(o)?Object.defineProperty(e,a,{__proto__:null,value:xI(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,a,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),DK=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),jK=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},NK=(e,t,n,r)=>{let o,a,s;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)s=o[a],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&Yc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},IK=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},LK=e=>{if(!e)return null;if(ud(e))return e;let t=e.length;if(!EI(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},zK=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Yc(Uint8Array)),FK=(e,t)=>{const r=(e&&e[zg]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},_K=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},BK=os("HTMLFormElement"),UK=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),{propertyIsEnumerable:VK}=Object.prototype,HK=os("RegExp"),RI=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Fg(n,(o,a)=>{let s;(s=t(o,a,e))!==!1&&(r[a]=s||o)}),Object.defineProperties(e,r)},WK=e=>{RI(e,(t,n)=>{if(_a(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(_a(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},qK=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return ud(e)?r(e):r(String(e).split(t)),n},YK=()=>{},GK=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function KK(e){return!!(e&&_a(e.append)&&e[SI]==="FormData"&&e[zg])}const QK=e=>{const t=new WeakSet,n=r=>{if($p(r)){if(t.has(r))return;if(Op(r))return r;if(!("toJSON"in r)){t.add(r);let o;if(wK(r)){o=[];for(const a of r){const s=n(a);!dd(s)&&o.push(s)}}else o=ud(r)?[]:{},Fg(r,(a,s)=>{const l=n(a);!dd(l)&&(o[s]=l)});return t.delete(r),o}}return r};return n(e)},XK=os("AsyncFunction"),ZK=e=>e&&($p(e)||_a(e))&&_a(e.then)&&_a(e.catch),OI=((e,t)=>e?setImmediate:t?((n,r)=>(Ku.addEventListener("message",({source:o,data:a})=>{o===Ku&&a===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Ku.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",_a(Ku.postMessage)),JK=typeof queueMicrotask<"u"?queueMicrotask.bind(Ku):typeof process<"u"&&process.nextTick||OI,$I=e=>e!=null&&_a(e[zg]),eQ=e=>e!=null&&dg(e,zg)&&$I(e),$e={isArray:ud,isArrayBuffer:kI,isBuffer:Op,isFormData:EK,isArrayBufferView:fK,isString:pK,isNumber:EI,isBoolean:hK,isObject:$p,isPlainObject:Wv,isEmptyObject:mK,isReadableStream:MK,isRequest:RK,isResponse:OK,isHeaders:$K,isUndefined:dd,isDate:gK,isFile:yK,isReactNativeBlob:vK,isReactNative:bK,isBlob:xK,isRegExp:HK,isFunction:_a,isStream:CK,isURLSearchParams:TK,isTypedArray:zK,isFileList:SK,forEach:Fg,merge:$w,extend:AK,trim:PK,stripBOM:DK,inherits:jK,toFlatObject:NK,kindOf:Tk,kindOfTest:os,endsWith:IK,toArray:LK,forEachEntry:FK,matchAll:_K,isHTMLForm:BK,hasOwnProperty:ug,hasOwnProp:ug,hasOwnInPrototypeChain:dg,getSafeProp:uK,toSafeFlatObject:dK,reduceDescriptors:RI,freezeMethods:WK,toObjectSet:qK,toCamelCase:UK,noop:YK,toFiniteNumber:GK,findKey:TI,global:Ku,isContextDefined:MI,isSpecCompliantForm:KK,toJSONObject:QK,isAsyncFn:XK,isThenable:ZK,setImmediate:OI,asap:JK,isIterable:$I,isSafeIterable:eQ},tQ=$e.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"]),nQ=e=>{const t={};let n,r,o;return e&&e.split(`
267
+ `).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim();const l=$e.hasOwnProp(t,n);!n||l&&$e.hasOwnProp(tQ,n)||(n==="set-cookie"?l?t[n].push(r):t[n]=[r]:t[n]=l?t[n]+", "+r:r)}),t};function rQ(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const oQ=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),aQ=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Mk(e,t){return $e.isArray(e)?e.map(n=>Mk(n,t)):rQ(String(e).replace(t,""))}const iQ=e=>Mk(e,oQ),sQ=e=>Mk(e,aQ);function PI(e){const t=Object.create(null);return $e.forEach(e.toJSON(),(n,r)=>{t[r]=sQ(n)}),t}const u$=Symbol("internals");function Gh(e){return e&&String(e).trim().toLowerCase()}function qv(e){return e===!1||e==null?e:$e.isArray(e)?e.map(qv):iQ(String(e))}function lQ(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const cQ=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function rS(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function uQ(e){const t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n="";for(let r=1;r<t;r++){const o=e.charCodeAt(r);if(o===34||o===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function dQ(e){const t=Object.create(null),n=String(e);let r=0,o=!1,a=!1;function s(l){const c=rS(n.slice(r,l)),f=c.indexOf("=");if(f<1)return;const u=rS(c.slice(0,f));if(!cQ.test(u))return;const h=u.toLowerCase();if(h==="__proto__"||h==="constructor"||h==="prototype")return;const y=rS(c.slice(f+1));t[h]=uQ(y)}for(let l=0;l<n.length;l++){const c=n.charCodeAt(l);o?a?a=!1:c===92?a=!0:c===34&&(o=!1):c===34?o=!0:(c===44||c===59)&&(s(l),r=l+1)}return s(n.length),t}const fQ=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function oS(e,t,n,r,o){if($e.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!$e.isString(t)){if($e.isString(r))return t.indexOf(r)!==-1;if($e.isRegExp(r))return r.test(t)}}function pQ(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function hQ(e,t){const n=$e.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(o,a,s){return this[r].call(this,t,o,a,s)},configurable:!0})})}let fa=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(l,c,f){const u=Gh(c);if(!u)return;const h=$e.findKey(o,u);(!h||o[h]===void 0||f===!0||f===void 0&&o[h]!==!1)&&(o[h||c]=qv(l))}const s=(l,c)=>$e.forEach(l,(f,u)=>a(f,u,c));if($e.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if($e.isString(t)&&(t=t.trim())&&!fQ(t))s(nQ(t),n);else if($e.isObject(t)&&$e.isSafeIterable(t)){let l=Object.create(null),c,f;for(const u of t){if(!$e.isArray(u))throw new TypeError("Object iterator must return a key-value pair");f=u[0],$e.hasOwnProp(l,f)?(c=l[f],l[f]=$e.isArray(c)?[...c,u[1]]:[c,u[1]]):l[f]=u[1]}s(l,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=Gh(t),t){const r=$e.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return lQ(o);if($e.isFunction(n))return n.call(this,o,r);if($e.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Gh(t),t){const r=$e.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||oS(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(s){if(s=Gh(s),s){const l=$e.findKey(r,s);l&&(!n||oS(r,r[l],l,n))&&(delete r[l],o=!0)}}return $e.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const a=n[r];(!t||oS(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return $e.forEach(this,(o,a)=>{const s=$e.findKey(r,a);if(s){n[s]=qv(o),delete n[a];return}const l=t?pQ(a):String(a).trim();l!==a&&delete n[a],n[l]=qv(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return $e.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&$e.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
268
+ `)}getSetCookie(){const t=this.get("set-cookie");return $e.isArray(t)?t:t==null||t===!1?[]:[t]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static parseParameters(t){return dQ(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[u$]=this[u$]={accessors:{}}).accessors,o=this.prototype;function a(s){const l=Gh(s);r[l]||(hQ(o,s),r[l]=!0)}return $e.isArray(t)?t.forEach(a):a(t),this}};fa.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);$e.reduceDescriptors(fa.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});$e.freezeMethods(fa);const vb="[REDACTED ****]";function mQ(e){if($e.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if($e.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function gQ(e,t){const n=new Set(t.map(a=>String(a).toLowerCase())),r=[],o=a=>{if(a===null||typeof a!="object"||$e.isBuffer(a))return a;if(r.indexOf(a)!==-1)return;a instanceof fa&&(a=a.toJSON()),r.push(a);let s;if($e.isArray(a))s=[],a.forEach((l,c)=>{const f=o(l);$e.isUndefined(f)||(s[c]=f)});else{if(!$e.isPlainObject(a)&&mQ(a))return r.pop(),a;s=Object.create(null);for(const[l,c]of Object.entries(a)){const f=n.has(l.toLowerCase())?vb:o(c);$e.isUndefined(f)||(s[l]=f)}}return r.pop(),s};return o(e)}function d$(e){try{return String(e)}catch{return""}}function yQ(e){return e.errors.map(n=>{try{return n&&n.message?d$(n.message):d$(n)}catch{return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}let Bt=class AI extends Error{static from(t,n,r,o,a,s){let l=t.message;!l&&$e.isArray(t.errors)&&t.errors.length&&(l=yQ(t));const c=new AI(l,n||t.code,r,o,a);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),s&&Object.assign(c,s),c}constructor(t,n,r,o,a){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),a&&(this.response=a,this.status=a.status)}toJSON(){const t=this.config,n=t&&$e.hasOwnProp(t,"redact")?t.redact:void 0,r=$e.isArray(n)&&n.length>0?gQ(t,n):$e.toJSONObject(t);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:r,code:this.code,status:this.status}}};Bt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Bt.ERR_BAD_OPTION="ERR_BAD_OPTION";Bt.ECONNABORTED="ECONNABORTED";Bt.ETIMEDOUT="ETIMEDOUT";Bt.ECONNREFUSED="ECONNREFUSED";Bt.ERR_NETWORK="ERR_NETWORK";Bt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Bt.ERR_DEPRECATED="ERR_DEPRECATED";Bt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Bt.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Bt.ERR_CANCELED="ERR_CANCELED";Bt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Bt.ERR_INVALID_URL="ERR_INVALID_URL";Bt.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const vQ=null,DI=100;function Pw(e){return $e.isPlainObject(e)||$e.isArray(e)}function jI(e){return $e.endsWith(e,"[]")?e.slice(0,-2):e}function aS(e,t,n){return e?e.concat(t).map(function(o,a){return o=jI(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function bQ(e){return $e.isArray(e)&&!e.some(Pw)}const xQ=$e.toFlatObject($e,{},null,function(t){return/^is[A-Z]/.test(t)});function S0(e,t,n){if(!$e.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(k,E)=>{const O=$e.getSafeProp(n,k);return $e.isUndefined(O)?E:O},o=r("metaTokens",!0),a=r("visitor")||x,s=r("dots",!1),l=r("indexes",!1),c=r("Blob")||typeof Blob<"u"&&Blob,f=r("maxDepth",DI),u=c&&$e.isSpecCompliantForm(t),h=[];if(!$e.isFunction(a))throw new TypeError("visitor must be a function");function y(k){if(k===null)return"";if($e.isDate(k))return k.toISOString();if($e.isBoolean(k))return k.toString();if(!u&&$e.isBlob(k))throw new Bt("Blob is not supported. Use a Buffer instead.");if($e.isArrayBuffer(k)||$e.isTypedArray(k)){if(u&&typeof c=="function")return new c([k]);throw new Bt("Blob is not supported. Use a Buffer instead.",Bt.ERR_NOT_SUPPORT)}return k}function v(k){if(k>f)throw new Bt("Object is too deeply nested ("+k+" levels). Max depth: "+f,Bt.ERR_FORM_DATA_DEPTH_EXCEEDED)}function S(k,E){if(f===1/0)return JSON.stringify(k);const O=[];return JSON.stringify(k,function(A,I){if(!$e.isObject(I))return I;for(;O.length&&O[O.length-1]!==this;)O.pop();return O.push(I),v(E+O.length-1),I})}function x(k,E,O){let $=k;if($e.isReactNative(t)&&$e.isReactNativeBlob(k))return t.append(aS(O,E,s),y(k)),!1;if(k&&!O&&typeof k=="object"){if($e.endsWith(E,"{}"))E=o?E:E.slice(0,-2),k=S(k,1);else if($e.isArray(k)&&bQ(k)||($e.isFileList(k)||$e.endsWith(E,"[]"))&&($=$e.toArray(k)))return E=jI(E),$.forEach(function(I,j){!($e.isUndefined(I)||I===null)&&t.append(l===!0?aS([E],j,s):l===null?E:E+"[]",y(I))}),!1}return Pw(k)?!0:(t.append(aS(O,E,s),y(k)),!1)}const w=Object.assign(xQ,{defaultVisitor:x,convertValue:y,isVisitable:Pw});function b(k,E,O=0){if(!$e.isUndefined(k)){if(v(O),h.indexOf(k)!==-1)throw new Error("Circular reference detected in "+E.join("."));h.push(k),$e.forEach(k,function(A,I){(!($e.isUndefined(A)||A===null)&&a.call(t,A,$e.isString(I)?I.trim():I,E,w))===!0&&b(A,E?E.concat(I):[I],O+1)}),h.pop()}}if(!$e.isObject(e))throw new TypeError("data must be an object");return b(e),t}function f$(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function Rk(e,t){this._pairs=[],e&&S0(e,this,t)}const NI=Rk.prototype;NI.append=function(t,n){this._pairs.push([t,n])};NI.toString=function(t){const n=t?r=>t.call(this,r,f$):f$;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function SQ(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function II(e,t,n){if(!t)return e;e=e||"";const r=$e.isFunction(n)?{serialize:n}:n,o=$e.getSafeProp(r,"encode")||SQ,a=$e.getSafeProp(r,"serialize");let s;if(a?s=a(t,r):s=$e.isURLSearchParams(t)?t.toString():new Rk(t,r).toString(o),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}const Kh=Symbol("internals");function LI(e){return e?e.length:0}function p$(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function Qh(e,t){const n=e.handlers,r=LI(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(a,s){n[a.index]!==a.handler&&t.handlerEntries.delete(s)}):t.handlerEntries.clear()),t.handlersLength=r}class h${constructor(){this.handlers=[],this[Kh]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(t,n,r){const o={fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null},a=this[Kh];this.handlers==null&&(this.handlers=[]),Qh(this,a);const s=a.nextId++;return this.handlers.push(o),a.handlerEntries.set(s,{handler:o,index:this.handlers.length-1}),a.handlersLength=this.handlers.length,s}eject(t){const n=this[Kh];Qh(this,n);const r=n.handlerEntries.get(t);if(r){if(n.handlerEntries.delete(t),this.handlers[r.index]!==r.handler)return;this.handlers[r.index]=null,n.iterationDepth||(p$(this.handlers),n.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],Qh(this,this[Kh]))}forEach(t){const n=this[Kh];Qh(this,n),n.iterationDepth++;try{$e.forEach(this.handlers,function(o){o!==null&&t(o)})}finally{--n.iterationDepth||(Qh(this,n),p$(this.handlers),n.handlersLength=LI(this.handlers))}}}const Ok={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},wQ=typeof URLSearchParams<"u"?URLSearchParams:Rk,CQ=typeof FormData<"u"?FormData:null,kQ=typeof Blob<"u"?Blob:null,EQ={isBrowser:!0,classes:{URLSearchParams:wQ,FormData:CQ,Blob:kQ},protocols:["http","https","file","blob","url","data"]},$k=typeof window<"u"&&typeof document<"u",Aw=typeof navigator=="object"&&navigator||void 0,TQ=$k&&(!Aw||["ReactNative","NativeScript","NS"].indexOf(Aw.product)<0),MQ=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",RQ=$k&&window.location.href||"http://localhost",OQ=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:$k,hasStandardBrowserEnv:TQ,hasStandardBrowserWebWorkerEnv:MQ,navigator:Aw,origin:RQ},Symbol.toStringTag,{value:"Module"})),Ho={...OQ,...EQ};function $Q(e,t){return S0(e,new Ho.classes.URLSearchParams,{visitor:function(n,r,o,a){return Ho.isNode&&$e.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}const m$=DI;function zI(e){if(e>m$)throw new Bt("FormData field is too deeply nested ("+e+" levels). Max depth: "+m$,Bt.ERR_FORM_DATA_DEPTH_EXCEEDED)}function PQ(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;(r=n.exec(e))!==null;)zI(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function AQ(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}function FI(e){function t(n,r,o,a){zI(a);let s=n[a++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),c=a>=n.length;return s=!s&&$e.isArray(o)?o.length:s,c?($e.hasOwnProp(o,s)?o[s]=$e.isArray(o[s])?o[s].concat(r):[o[s],r]:o[s]=r,!l):((!$e.hasOwnProp(o,s)||!$e.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],a)&&$e.isArray(o[s])&&(o[s]=AQ(o[s])),!l)}if($e.isFormData(e)&&$e.isFunction(e.entries)){const n={};return $e.forEachEntry(e,(r,o)=>{t(PQ(r),o,n,0)}),n}return null}const _I=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),kf=(e,t)=>e!=null&&$e.hasOwnProp(e,t)?e[t]:void 0;function DQ(e,t,n){if($e.isString(e))try{return(t||JSON.parse)(e),$e.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const _g={transitional:Ok,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=$e.isObject(t);if(a&&$e.isHTMLForm(t)&&(t=new FormData(t)),$e.isFormData(t))return o?JSON.stringify(FI(t)):t;if($e.isArrayBuffer(t)||$e.isBuffer(t)||$e.isStream(t)||$e.isFile(t)||$e.isBlob(t)||$e.isReadableStream(t))return t;if($e.isArrayBufferView(t))return t.buffer;if($e.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){const c=kf(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return $Q(t,c).toString();if((l=$e.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=kf(this,"env"),u=f&&f.FormData;return S0(l?{"files[]":t}:t,u&&new u,c)}}return a||o?(n.setContentType("application/json",!1),DQ(t)):t}],transformResponse:[function(t){const n=kf(this,"transitional")||_g.transitional,r=n&&n.forcedJSONParsing,o=kf(this,"responseType"),a=o==="json";if($e.isResponse(t)||$e.isReadableStream(t))return t;if(t&&$e.isString(t)&&(r&&!o||a)){const l=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t,kf(this,"parseReviver"))}catch(c){if(l)throw c.name==="SyntaxError"?Bt.from(c,Bt.ERR_BAD_RESPONSE,this,null,kf(this,"response")):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ho.classes.FormData,Blob:Ho.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$e.forEach(_I,e=>{_g.headers[e]={}});function iS(e,t){const n=this||_g,r=t||n,o=fa.from(r.headers);let a=r.data;return $e.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function BI(e){return!!(e&&e.__CANCEL__)}let Bg=class extends Bt{constructor(t,n,r){super(t??"canceled",Bt.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function UI(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Bt("Request failed with status code "+n.status,n.status>=400&&n.status<500?Bt.ERR_BAD_REQUEST:Bt.ERR_BAD_RESPONSE,n.config,n.request,n))}const jQ=/[\t\n\r]/g;function VI(e){if(typeof e!="string")return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(jQ,"")}function sS(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function NQ(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,a=0,s;return t=t!==void 0?t:1e3,function(c){const f=Date.now(),u=r[a];s||(s=f),n[o]=c,r[o]=f;let h=a,y=0;for(;h!==o;)y+=n[h++],h=h%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),f-s<t)return;const v=u&&f-u;return v?Math.round(y*1e3/v):void 0}}function IQ(e,t){let n=0,r=1e3/t,o,a;const s=(u,h=Date.now())=>{n=h,o=null,a&&(clearTimeout(a),a=null),e(...u)};return[(...u)=>{const h=Date.now(),y=h-n;y>=r?s(u,h):(o=u,a||(a=setTimeout(()=>{a=null,s(o)},r-y)))},()=>o&&s(o),(...u)=>s(u)]}const bb=(e,t,n=3)=>{let r=0;const o=NQ(50,250);return IQ(a=>{if(!a||!$e.isNumber(a.loaded))return;const s=a.loaded,l=a.lengthComputable?a.total:void 0,c=Math.max(0,l!=null?Math.min(s,l):s),f=Math.max(0,c-r),u=o(f);r=Math.max(r,c);const h={loaded:c,total:l,progress:l?c/l:void 0,bytes:f,rate:u||void 0,estimated:u&&l?(l-c)/u:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(h)},n)},g$=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},y$=(e,t=$e.asap)=>(...n)=>t(()=>e(...n)),LQ=Ho.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ho.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ho.origin),Ho.navigator&&/(msie|trident)/i.test(Ho.navigator.userAgent)):()=>!0,zQ=Ho.hasStandardBrowserEnv?{write(e,t,n,r,o,a,s){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];$e.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),$e.isString(r)&&l.push(`path=${r}`),$e.isString(o)&&l.push(`domain=${o}`),a===!0&&l.push("secure"),$e.isString(s)&&l.push(`SameSite=${s}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),o=r.indexOf("=");if(o!==-1&&r.slice(0,o)===e)try{return decodeURIComponent(r.slice(o+1))}catch{return r.slice(o+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function FQ(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function _Q(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}const BQ=/^https?:(?!\/\/)/i;function UQ(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,n,r="")=>`${n}${r}${vb}`)}function VQ(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${vb}@`),n=t.indexOf("#"),o=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${vb}`);return n===-1?o:`${o}#${UQ(t.slice(n+1))}`}function v$(e,t){if(typeof e=="string"){const n=VI(e);if(BQ.test(n))throw new Bt(`Invalid URL ${JSON.stringify(VQ(n))}: missing "//" after protocol`,Bt.ERR_INVALID_URL,t)}}function HI(e,t,n,r){v$(t,r);let o=!FQ(t);return e&&(o||n===!1)?(v$(e,r),_Q(e,t)):t}const b$=e=>e instanceof fa?{...e}:e,HQ=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function fd(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(u,h,y,v){return $e.isPlainObject(u)&&$e.isPlainObject(h)?$e.merge.call({caseless:v},u,h):$e.isPlainObject(h)?$e.merge({},h):$e.isArray(h)?h.slice():h}function o(u,h,y,v){if($e.isUndefined(h)){if(!$e.isUndefined(u))return r(void 0,u,y,v)}else return r(u,h,y,v)}function a(u,h){if(!$e.isUndefined(h))return r(void 0,h)}function s(u,h){if($e.isUndefined(h)){if(!$e.isUndefined(u))return r(void 0,u)}else return r(void 0,h)}function l(u){const h=$e.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!$e.isUndefined(h))if($e.isPlainObject(h)){if($e.hasOwnProp(h,u))return h[u]}else return;const y=$e.hasOwnProp(e,"transitional")?e.transitional:void 0;if($e.isPlainObject(y)&&$e.hasOwnProp(y,u))return y[u]}function c(u,h,y){if($e.hasOwnProp(t,y))return r(u,h);if($e.hasOwnProp(e,y))return r(void 0,u)}const f={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutErrorMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:c,headers:(u,h,y)=>o(b$(u),b$(h),y,!0)};return $e.forEach(HQ({...e,...t}),function(h){if(h==="__proto__"||h==="constructor"||h==="prototype")return;const y=$e.hasOwnProp(f,h)?f[h]:o,v=$e.hasOwnProp(e,h)?e[h]:void 0,S=$e.hasOwnProp(t,h)?t[h]:void 0,x=y(v,S,h);$e.isUndefined(x)&&y!==c||(n[h]=x)}),$e.hasOwnProp(t,"validateStatus")&&$e.isUndefined(t.validateStatus)&&l("validateStatusUndefinedResolves")===!1&&($e.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const WQ=["content-type","content-length"];function qQ(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,o])=>{WQ.includes(r.toLowerCase())&&e.set(r,o)})}const YQ=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function WI(e){const t=fd({},e),n=y=>$e.hasOwnProp(t,y)?t[y]:void 0,r=n("data");let o=n("withXSRFToken");const a=n("xsrfHeaderName"),s=n("xsrfCookieName");let l=n("headers");const c=n("auth"),f=n("baseURL"),u=n("allowAbsoluteUrls"),h=n("url");if(t.headers=l=fa.from(l),t.url=II(HI(f,h,u,t),n("params"),n("paramsSerializer")),c){const y=$e.getSafeProp(c,"username")||"",v=$e.getSafeProp(c,"password")||"";try{l.set("Authorization","Basic "+btoa(y+":"+(v?YQ(v):"")))}catch(S){throw Bt.from(S,Bt.ERR_BAD_OPTION_VALUE,e)}}if($e.isFormData(r)){const y=$e.getSafeProp(r,"getHeaders");Ho.hasStandardBrowserEnv||Ho.hasStandardBrowserWebWorkerEnv||$e.isReactNative(r)?l.setContentType(void 0):$e.isFunction(y)&&qQ(l,y.call(r),n("formDataHeaderPolicy"))}if(Ho.hasStandardBrowserEnv&&($e.isFunction(o)&&(o=o(t)),o===!0||o==null&&LQ(t.url))){const v=a&&s&&zQ.read(s);v&&l.set(a,v)}return t}const GQ=typeof XMLHttpRequest<"u",KQ=GQ&&function(e){return new Promise(function(n,r){const o=WI(e);let a=o.data;const s=fa.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:f}=o,u,h,y,v,S,x;function w(){v&&v(),S&&S(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(o.method.toUpperCase(),o.url,!0),b.timeout=o.timeout;function k(O){if(!b)return;if(b.status===0&&(sS(VI(o.url))||sS(Ho.origin))!=="file"&&!(b.responseURL&&b.responseURL.startsWith("file:"))){r(new Bt("Request aborted",Bt.ECONNABORTED,e,b)),w(),b=null;return}try{O?x&&x(O):S&&S()}catch(j){setTimeout(()=>{throw j})}if(!b)return;const $=fa.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),I={data:!l||l==="text"||l==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:$,config:e,request:b};UI(function(_){n(_),w()},function(_){r(_),w()},I),b=null}"onloadend"in b?b.onloadend=k:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.startsWith("file:"))||setTimeout(k)},b.onabort=function(){b&&(r(new Bt("Request aborted",Bt.ECONNABORTED,e,b)),w(),b=null)},b.onerror=function($){const A=$&&$.message?$.message:"Network Error",I=new Bt(A,Bt.ERR_NETWORK,e,b);I.event=$||null,r(I),w(),b=null},b.ontimeout=function(){let $=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const A=o.transitional||Ok;o.timeoutErrorMessage&&($=o.timeoutErrorMessage),r(new Bt($,A.clarifyTimeoutError?Bt.ETIMEDOUT:Bt.ECONNABORTED,e,b)),w(),b=null},a===void 0&&s.setContentType(null),"setRequestHeader"in b&&$e.forEach(PI(s),function($,A){b.setRequestHeader(A,$)}),$e.isUndefined(o.withCredentials)||(b.withCredentials=!!o.withCredentials),l&&l!=="json"&&(b.responseType=o.responseType),f&&([y,S,x]=bb(f,!0),b.addEventListener("progress",y)),c&&b.upload&&([h,v]=bb(c),b.upload.addEventListener("progress",h),b.upload.addEventListener("loadend",v)),(o.cancelToken||o.signal)&&(u=O=>{b&&(r(!O||O.type?new Bg(null,e,b):O),b.abort(),w(),b=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const E=sS(o.url);if(E&&!Ho.protocols.includes(E)){r(new Bt("Unsupported protocol "+E+":",Bt.ERR_BAD_REQUEST,e)),w();return}b.send(a||null)})},QQ=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const o=function(c){if(!r){r=!0,s();const f=c instanceof Error?c:this.reason;n.abort(f instanceof Bt?f:new Bg(f instanceof Error?f.message:f))}};let a=t&&setTimeout(()=>{a=null,o(new Bt(`timeout of ${t}ms exceeded`,Bt.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>{if(!r){if(c.aborted){o.call(c);return}c.addEventListener("abort",o,{once:!0})}});const{signal:l}=n;return l.unsubscribe=()=>$e.asap(s),l},XQ=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},ZQ=async function*(e,t){for await(const n of JQ(e))yield*XQ(n,t)},JQ=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},x$=(e,t,n,r)=>{const o=ZQ(e,t);let a=0,s,l=c=>{s||(s=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:f,value:u}=await o.next();if(f){l(),c.close();return}let h=u.byteLength;if(n){let y=a+=h;n(y)}c.enqueue(new Uint8Array(u))}catch(f){throw l(f),f}},cancel(c){return l(c),o.return()}},{highWaterMark:2})},S$=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,qI=(e,t,n)=>t+2<n&&S$(e.charCodeAt(t+1))&&S$(e.charCodeAt(t+2)),w$=e=>e<=57?e-48:(e&223)-55,eX=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,tX=e=>e===9||e===10||e===12||e===13||e===32,nX=e=>{const t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},rX=e=>{const t=e.length;let n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},oX=e=>{const t=e.length;let n=0,r=0,o=!1;for(let a=0;a<t;a++){let s=e.charCodeAt(a);if(s===37&&qI(e,a,t)&&(s=w$(e.charCodeAt(a+1))*16+w$(e.charCodeAt(a+2)),a+=2),!tX(s)){if(s===61){r++;continue}if(!eX(s)||r>0){o=!0;continue}n++}}return o||r>2||r>0&&(n+r)%4!==0||n%4===1?rX(e):nX(n)},aX=(e,t)=>{if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const n=e.indexOf(",");if(n<0)return 0;const r=e.slice(5,n),o=e.slice(n+1);if(/;base64/i.test(r))return t(o);let s=0;for(let l=0,c=o.length;l<c;l++){const f=o.charCodeAt(l);if(f===37&&qI(o,l,c))s+=1,l+=2;else if(f<128)s+=1;else if(f<2048)s+=2;else if(f>=55296&&f<=56319&&l+1<c){const u=o.charCodeAt(l+1);u>=56320&&u<=57343?(s+=4,l++):s+=3}else s+=3}return s};function iX(e){const t=typeof e=="string"?e.indexOf("#"):-1;return aX(t===-1?e:e.slice(0,t),oX)}const Pk="1.20.0",C$=64*1024,sX={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:hv}=$e,lX=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),k$=e=>{if(!$e.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},E$=(e,...t)=>{try{return!!e(...t)}catch{return!1}},cX=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},uX=e=>{const t=$e.global!==void 0&&$e.global!==null?$e.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=$e.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:a,Response:s}=e,l=o?hv(o):typeof fetch=="function",c=hv(a),f=hv(s);if(!l)return!1;const u=l&&hv(n),h=l&&(typeof r=="function"?(b=>k=>b.encode(k))(new r):async b=>new Uint8Array(await new a(b).arrayBuffer())),y=c&&u&&E$(()=>{let b=!1;const k=new a(Ho.origin,{body:new n,method:"POST",get duplex(){return b=!0,"half"}}),E=k.headers.has("Content-Type");return k.body!=null&&k.body.cancel(),b&&!E}),v=f&&u&&E$(()=>$e.isReadableStream(new s("").body)),S={stream:v&&(b=>b.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!S[b]&&(S[b]=(k,E)=>{let O=k&&k[b];if(O)return O.call(k);throw new Bt(`Response type '${b}' is not supported`,Bt.ERR_NOT_SUPPORT,E)})});const x=async b=>{if(b==null)return 0;if($e.isBlob(b))return b.size;if($e.isSpecCompliantForm(b))return(await new a(Ho.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if($e.isArrayBufferView(b)||$e.isArrayBuffer(b))return b.byteLength;if($e.isURLSearchParams(b)&&(b=b+""),$e.isString(b))return(await h(b)).byteLength},w=async(b,k)=>{const E=$e.toFiniteNumber(b.getContentLength());return E??x(k)};return async b=>{let{url:k,method:E,data:O,signal:$,cancelToken:A,timeout:I,onDownloadProgress:j,onUploadProgress:_,responseType:W,headers:U,withCredentials:T="same-origin",fetchOptions:L,maxContentLength:F,maxBodyLength:H,maxRedirects:D}=WI(b);const K=$e.isNumber(F)&&F>-1,Q=$e.isNumber(H)&&H>-1,ee=se=>$e.hasOwnProp(b,se)?b[se]:void 0;let X=o||fetch;W=W?(W+"").toLowerCase():"text";let te=QQ([$,A&&A.toAbortSignal()],I),ae=null;const ue=te&&te.unsubscribe&&(()=>{te.unsubscribe()});let he,ie=null;const le=()=>new Bt("Request body larger than maxBodyLength limit",Bt.ERR_BAD_REQUEST,b,ae);try{let se;const pe=ee("auth");if(pe){const oe=$e.getSafeProp(pe,"username")||"",lt=$e.getSafeProp(pe,"password")||"";se={username:oe,password:lt}}if(cX(k)){const oe=new URL(k,Ho.origin);if(!se&&(oe.username||oe.password)){const lt=k$(oe.username),Ie=k$(oe.password);se={username:lt,password:Ie}}(oe.username||oe.password)&&(oe.username="",oe.password="",k=oe.href)}if(se&&(U.delete("authorization"),U.set("Authorization","Basic "+btoa(lX((se.username||"")+":"+(se.password||""))))),K&&typeof k=="string"&&k.startsWith("data:")&&iX(k)>F)throw new Bt("maxContentLength size of "+F+" exceeded",Bt.ERR_BAD_RESPONSE,b,ae);if(Q&&E!=="get"&&E!=="head"){const oe=await x(O);if(typeof oe=="number"&&isFinite(oe)&&(he=oe,oe>H))throw le()}const ne=Q&&($e.isReadableStream(O)||$e.isStream(O)),me=(oe,lt,Ie)=>x$(oe,C$,et=>{if(Q&&et>H)throw ie=le();lt&&lt(et)},Ie);if(y&&E!=="get"&&E!=="head"&&(_||ne)){if(he=he??await w(U,O),he!==0||ne){let oe=new a(k,{method:"POST",body:O,duplex:"half"}),lt;if($e.isFormData(O)&&(lt=oe.headers.get("content-type"))&&U.setContentType(lt),oe.body){const[Ie,et]=_&&g$(he,bb(y$(_)))||[];O=me(oe.body,Ie,et)}}}else if(ne&&!c&&u&&E!=="get"&&E!=="head")O=me(O);else if(ne&&c&&!y&&E!=="get"&&E!=="head")throw new Bt("Stream request bodies are not supported by the current fetch implementation",Bt.ERR_NOT_SUPPORT,b,ae);$e.isString(T)||(T=T?"include":"omit");const xe=c&&"credentials"in a.prototype;if($e.isFormData(O)){const oe=U.getContentType();oe&&/^multipart\/form-data/i.test(oe)&&!/boundary=/i.test(oe)&&U.delete("content-type")}U.set("User-Agent","axios/"+Pk,!1);const Se=L==null?L:Object.assign(Object.create(null),L);Se&&(delete Se.body,delete Se.headers,delete Se.method,delete Se.signal,delete Se.duplex,delete Se.credentials);const ce=Object.assign(Object.create(null),Se,{signal:te,method:E.toUpperCase(),headers:PI(U.normalize()),body:O,duplex:"half",credentials:xe?T:void 0});c&&($e.forEach(sX,(oe,lt)=>{ce[lt]===void 0&&(ce[lt]=oe)}),ce.signal===void 0&&(ce.signal=null),ce.body===void 0&&(ce.body=null)),D===0&&(ce.redirect="manual",Se&&(Se.redirect="manual")),ae=c&&new a(k,ce);let Ee=await(c?X(ae,Se):X(k,ce));const Ge=fa.from(Ee.headers);if(K){const oe=$e.toFiniteNumber(Ge.getContentLength());if(oe!=null&&oe>F)throw new Bt("maxContentLength size of "+F+" exceeded",Bt.ERR_BAD_RESPONSE,b,ae)}const Te=v&&(W==="stream"||W==="response");if(v&&Ee.body&&(j||K||Te&&ue)){const oe={};["status","statusText","headers"].forEach(zt=>{oe[zt]=Ee[zt]});const lt=$e.toFiniteNumber(Ge.getContentLength()),[Ie,et]=j&&g$(lt,bb(y$(j),!0))||[];let mt=0;const Wt=zt=>{if(K&&(mt=zt,mt>F))throw new Bt("maxContentLength size of "+F+" exceeded",Bt.ERR_BAD_RESPONSE,b,ae);Ie&&Ie(zt)};Ee=new s(x$(Ee.body,C$,Wt,()=>{et&&et(),ue&&ue()}),oe)}W=W||"text";let je=await S[$e.findKey(S,W)||"text"](Ee,b);if(K&&!v&&!Te){let oe;if(je!=null&&(typeof je.byteLength=="number"?oe=je.byteLength:typeof je.size=="number"?oe=je.size:typeof je=="string"&&(oe=typeof r=="function"?new r().encode(je).byteLength:je.length)),typeof oe=="number"&&oe>F)throw new Bt("maxContentLength size of "+F+" exceeded",Bt.ERR_BAD_RESPONSE,b,ae)}return!Te&&ue&&ue(),await new Promise((oe,lt)=>{UI(oe,lt,{data:je,headers:fa.from(Ee.headers),status:Ee.status,statusText:Ee.statusText,config:b,request:ae})})}catch(se){if(ue&&ue(),te&&te.aborted&&te.reason instanceof Bt){const pe=te.reason;throw pe.config=b,ae&&(pe.request=ae),se!==pe&&Object.defineProperty(pe,"cause",{__proto__:null,value:se,writable:!0,enumerable:!1,configurable:!0}),pe}if(ie)throw ae&&!ie.request&&(ie.request=ae),ie;if(se instanceof Bt)throw ae&&!se.request&&(se.request=ae),se;if(se&&se.name==="TypeError"&&/Load failed|fetch/i.test(se.message)){const pe=new Bt("Network Error",Bt.ERR_NETWORK,b,ae,se&&se.response);throw Object.defineProperty(pe,"cause",{__proto__:null,value:se.cause||se,writable:!0,enumerable:!1,configurable:!0}),pe}throw Bt.from(se,se&&se.code,b,ae,se&&se.response)}}},dX=new Map,YI=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,a=[r,o,n];let s=a.length,l=s,c,f,u=dX;for(;l--;)c=a[l],f=u.get(c),f===void 0&&u.set(c,f=l?new Map:uX(t)),u=f;return f};YI();const Ak={http:vQ,xhr:KQ,fetch:{get:YI}};$e.forEach(Ak,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const T$=e=>`- ${e}`,fX=e=>$e.isFunction(e)||e===null||e===!1;function pX(e,t){e=$e.isArray(e)?e:[e];const{length:n}=e;let r,o;const a={};for(let s=0;s<n;s++){r=e[s];let l;if(o=r,!fX(r)&&(o=Ak[(l=String(r)).toLowerCase()],o===void 0))throw new Bt(`Unknown adapter '${l}'`);if(o&&($e.isFunction(o)||(o=o.get(t))))break;a[l||"#"+s]=o}if(!o){const s=Object.entries(a).map(([c,f])=>`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let l=n?s.length>1?`since :
269
+ `+s.map(T$).join(`
270
+ `):" "+T$(s[0]):"as no adapter specified";throw new Bt("There is no suitable adapter to dispatch the request "+l,Bt.ERR_NOT_SUPPORT)}return o}const GI={getAdapter:pX,adapters:Ak};function lS(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Bg(null,e)}function cS(e){const t=$e.toSafeFlatObject(e);return lS(t),t.headers=fa.from($e.getSafeProp(t,"headers")),t.data=iS.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),GI.getAdapter(t.adapter||_g.adapter,t)(t).then(function(o){lS(t),t.response=o;try{o.data=iS.call(t,t.transformResponse,o)}finally{delete t.response}return o.headers=fa.from(o.headers),o},function(o){if(!BI(o)&&(lS(t),o&&o.response)){t.response=o.response;try{o.response.data=iS.call(t,t.transformResponse,o.response)}finally{delete t.response}o.response.headers=fa.from(o.response.headers)}return Promise.reject(o)})}const w0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{w0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const M$={};w0.transitional=function(t,n,r){function o(a,s){return"[Axios v"+Pk+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,l)=>{if(t===!1)throw new Bt(o(s," has been removed"+(n?" in "+n:"")),Bt.ERR_DEPRECATED);return n&&!M$[s]&&(M$[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,s,l):!0}};w0.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function hX(e,t,n){if(typeof e!="object"||e===null)throw new Bt("options must be an object",Bt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],s=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(s){const l=e[a],c=l===void 0||s(l,a,e);if(c!==!0)throw new Bt("option "+a+" must be "+c,Bt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Bt("Unknown option "+a,Bt.ERR_BAD_OPTION)}}const Yv={assertOptions:hX,validators:w0},sa=Yv.validators;let ed=class{constructor(t){this.defaults=t||{},this.interceptors={request:new h$,response:new h$}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error)try{let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=o.stack;let s="";if(typeof a=="string"){const l=a.indexOf(`
271
+ `);s=l===-1?"":a.slice(l+1)}if(!r.stack)r.stack=s;else if(s){const l=s.indexOf(`
272
+ `),c=l===-1?-1:s.indexOf(`
273
+ `,l+1),f=c===-1?"":s.slice(c+1);String(r.stack).endsWith(f)||(r.stack+=`
274
+ `+s)}}catch{}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=fd(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&Yv.assertOptions(r,{silentJSONParsing:sa.transitional(sa.boolean),forcedJSONParsing:sa.transitional(sa.boolean),clarifyTimeoutError:sa.transitional(sa.boolean),legacyInterceptorReqResOrdering:sa.transitional(sa.boolean),advertiseZstdAcceptEncoding:sa.transitional(sa.boolean),validateStatusUndefinedResolves:sa.transitional(sa.boolean)},!1),o!=null&&($e.isFunction(o)?n.paramsSerializer={serialize:o}:Yv.assertOptions(o,{encode:sa.function,serialize:sa.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Yv.assertOptions(n,{baseUrl:sa.spelling("baseURL"),withXsrfToken:sa.spelling("withXSRFToken")},!0),n.method=($e.getSafeProp(n,"method")||$e.getSafeProp(this.defaults,"method")||"get").toLowerCase();let s=a&&$e.merge(a.common,a[n.method]);a&&$e.forEach(_I.concat("common"),S=>{delete a[S]}),n.headers=fa.concat(s,a);const l=[];let c=!0;this.interceptors.request.forEach(function(x){if(typeof x.runWhen=="function"&&x.runWhen(n)===!1)return;c=c&&x.synchronous;const w=n.transitional||Ok;w&&w.legacyInterceptorReqResOrdering?l.unshift(x.fulfilled,x.rejected):l.push(x.fulfilled,x.rejected)});const f=[];this.interceptors.response.forEach(function(x){f.push(x.fulfilled,x.rejected)});let u,h=0,y;if(!c){const S=[cS.bind(this),void 0];for(S.unshift(...l),S.push(...f),y=S.length,u=Promise.resolve(n);h<y;)u=u.then(S[h++],S[h++]);return u}y=l.length;let v=n;for(;h<y;){const S=l[h++],x=l[h++];try{v=S?S(v):v}catch(w){if(!x){u=Promise.reject(w);break}try{const b=x.call(this,w);$e.isThenable(b)&&(u=Promise.resolve(b).then(()=>cS.call(this,v)))}catch(b){u=Promise.reject(b)}break}}if(!u)try{u=cS.call(this,v)}catch(S){u=Promise.reject(S)}for(h=0,y=f.length;h<y;)u=u.then(f[h++],f[h++]);return u}getUri(t){t=fd(this.defaults,t);const n=HI(t.baseURL,t.url,t.allowAbsoluteUrls,t);return II(n,t.params,t.paramsSerializer)}};$e.forEach(["delete","get","head","options"],function(t){ed.prototype[t]=function(n,r){return this.request(fd(r||{},{method:t,url:n,data:r&&$e.hasOwnProp(r,"data")?r.data:void 0}))}});$e.forEach(["post","put","patch","query"],function(t){function n(r){return function(a,s,l){return this.request(fd(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:s}))}}ed.prototype[t]=n(),t!=="query"&&(ed.prototype[t+"Form"]=n(!0))});let mX=class KI{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(o=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](o);r._listeners=null}),this.promise.then=o=>{let a;const s=new Promise(l=>{r.subscribe(l),a=l}).then(o);return s.cancel=function(){r.unsubscribe(a)},s},t(function(a,s,l){r.reason||(r.reason=new Bg(a,s,l),n(r.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 n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new KI(function(o){t=o}),cancel:t}}};function gX(e){return function(n){return e.apply(null,n)}}function yX(e){return $e.isObject(e)&&e.isAxiosError===!0}const Gv={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,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Gv).forEach(([e,t])=>{Gv[t]===void 0&&(Gv[t]=e)});function QI(e){const t=new ed(e),n=xI(ed.prototype.request,t);return $e.extend(n,ed.prototype,t,{allOwnKeys:!0}),$e.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return QI(fd(e,o))},n}const Vt=QI(_g);Vt.Axios=ed;Vt.CanceledError=Bg;Vt.CancelToken=mX;Vt.isCancel=BI;Vt.VERSION=Pk;Vt.toFormData=S0;Vt.AxiosError=Bt;Vt.Cancel=Vt.CanceledError;Vt.all=function(t){return Promise.all(t)};Vt.spread=gX;Vt.isAxiosError=yX;Vt.mergeConfig=fd;Vt.AxiosHeaders=fa;Vt.formToJSON=e=>FI($e.isHTMLForm(e)?new FormData(e):e);Vt.getAdapter=GI.getAdapter;Vt.HttpStatusCode=Gv;Vt.default=Vt;const{Axios:Xye,AxiosError:Zye,CanceledError:Jye,isCancel:eve,CancelToken:tve,VERSION:nve,all:rve,Cancel:ove,isAxiosError:ave,spread:ive,toFormData:sve,AxiosHeaders:lve,HttpStatusCode:cve,formToJSON:uve,getAdapter:dve,mergeConfig:fve,create:pve}=Vt,Wr={blue:"#2563eb",violet:"#7c3aed",pink:"#be185d",red:"#dc2626",orange:"#c2410c",amber:"#b45309",lime:"#4d7c0f",emerald:"#059669",teal:"#0f766e",cyan:"#0e7490"},Dk={environment:Wr.emerald,package:Wr.teal,connection:Wr.orange},hi='"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace',vX=at(o9)({display:"flex",flexDirection:"column",height:"100%",boxShadow:"none",border:"none",backgroundColor:"transparent"}),bX=at(l9)({display:"flex",flexDirection:"column",padding:"0",flexGrow:1}),XI=at(h9)({padding:"0"}),ZI=at("div")(({theme:e})=>({backgroundColor:e.palette.background.default,padding:"0 8px 0px 8px",borderRadius:"12px",boxShadow:"none",border:"none",maxWidth:"1200px",margin:"0 auto"})),JI=at("div")({marginBottom:"48px",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),_f=at("div")({backgroundColor:"transparent",paddingTop:"12px",paddingBottom:"2px",borderRadius:"8px",border:"none",boxShadow:"none",marginBottom:"0"}),xX=at("div")({height:"100%"}),eL=at("div")({height:"75vh",width:"100%",overflowY:"auto"}),SX=[Wr.blue,Wr.orange,Wr.emerald,Wr.pink,Wr.violet,Wr.amber,Wr.cyan,Wr.lime],wX="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",R$={palette:{series:SX,background:{light:"#ffffff",dark:"#0f172a"},tableHeader:{light:"#475569",dark:"#cbd5e1"},tableHeaderBackground:{light:"#f8fafc",dark:"#1e293b"},tableBody:{light:"#475569",dark:"#e2e8f0"},tile:{light:"#ffffff",dark:"#0f172a"},tileTitle:{light:"#475569",dark:"#94a3b8"},mapColor:{light:Wr.blue,dark:Wr.blue}},font:{family:wX,size:12}},CX=["background","tableHeader","tableHeaderBackground","tableBody","tile","tileTitle","mapColor"];function tL(e,t){const n=R$.palette??{},r=R$.font??{family:"sans-serif",size:12};let o=[...n.series??[]],a=r.family??"sans-serif",s=r.size??12;const l={background:{...n.background??{}},tableHeader:{...n.tableHeader??{}},tableHeaderBackground:{...n.tableHeaderBackground??{}},tableBody:{...n.tableBody??{}},tile:{...n.tile??{}},tileTitle:{...n.tileTitle??{}},mapColor:{...n.mapColor??{}}};for(const h of e)if(h){Array.isArray(h.palette?.series)&&(o=[...h.palette.series]);for(const y of CX){const v=h.palette?.[y];v&&(l[y]={...l[y],...v})}typeof h.font?.family=="string"&&(a=h.font.family),typeof h.font?.size=="number"&&(s=h.font.size)}const c=t==="dark",f=h=>l[h][t]??n[h]?.[t],u=f("background");return{mode:t,series:o,font:{family:a,size:s},background:u,tableHeader:f("tableHeader"),tableHeaderBackground:f("tableHeaderBackground"),tableBody:f("tableBody"),tile:f("tile"),tileTitle:f("tileTitle"),mapColor:f("mapColor"),tableBackground:u,border:c?"1px solid #334155":"1px solid #e2e8f0",cardBorder:c?"1px solid #475569":"1px solid #cbd5e1",pinnedBorder:c?"1px solid #475569":"1px solid #cbd5e1",valueColor:c?"#f1f5f9":"#0f172a",foreground:c?"#e2e8f0":"#0f172a",axisFaint:c?"#475569":"#cbd5e1",dashboardRoot:c?"#0f172a":"#ffffff",drillLink:c?"#60a5fa":Wr.blue}}function kX(e,t,n){const r=t??e??"light";return r==="auto"?n?"dark":"light":r}const nL=C.createContext(void 0);function EX({layers:e,mode:t,userChoice:n,setMode:r,allowUserToggle:o=!0,children:a}){const s=C.useMemo(()=>tL(e,t),[e,t]),l=C.useMemo(()=>({theme:s,layers:e,mode:t,userChoice:n,setMode:r,allowUserToggle:o}),[s,e,t,n,r,o]);return m.jsx(nL.Provider,{value:l,children:a})}function Ts(){return C.useContext(nL)||{theme:tL([],"light"),layers:[],mode:"light",userChoice:void 0,setMode:()=>{},allowUserToggle:!1}}const xn="http://localhost/api/v0".replace(/\/+$/,"");let Ms=class{constructor(t,n=xn,r=Vt){this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath??n)}configuration},TX=class extends Error{constructor(t,n){super(n),this.field=t,this.name="RequiredError"}};const wn={},Cn="https://example.com",ht=function(e,t,n){if(n==null)throw new TX(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function Dw(e,t,n=""){t!=null&&(typeof t=="object"?Array.isArray(t)||t instanceof Set?t.forEach(r=>Dw(e,r,n)):Object.keys(t).forEach(r=>Dw(e,t[r],`${n}${n!==""?".":""}${r}`)):e.has(n)?e.append(n,t):e.set(n,t))}const kn=function(e,...t){const n=new URLSearchParams(e.search);Dw(n,t),e.search=n.toString()},MX=function(e,t){return t instanceof Set?Array.from(t):t},Vo=function(e,t,n){const r=typeof e!="string";return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(e!==void 0?e:{},MX):e||""},En=function(e){return e.pathname+e.search+e.hash},Tn=function(e,t,n,r){return(o=t,a=n)=>{const s={...e.options,url:(o.defaults.baseURL?"":r?.basePath??a)+e.url};return o.request(s)}},rL={Bigquery:"bigquery",Snowflake:"snowflake",Postgres:"postgres",Gcs:"gcs",S3:"s3",Azure:"azure"},O$={Postgres:"postgres",Bigquery:"bigquery",Snowflake:"snowflake",Trino:"trino",Databricks:"databricks",Mysql:"mysql",Duckdb:"duckdb",Motherduck:"motherduck",Ducklake:"ducklake",Publisher:"publisher"},Sa={Pending:"PENDING",ManifestRowsReady:"MANIFEST_ROWS_READY",ManifestFileReady:"MANIFEST_FILE_READY",Failed:"FAILED",Cancelled:"CANCELLED"},mv={Version:"version",Package:"package"},RX=function(e){return{createConnection:async(t,n,r,o={})=>{ht("createConnection","environmentName",t),ht("createConnection","connectionName",n),ht("createConnection","connection",r);const a="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(a,Cn);let l;e&&(l=e.baseOptions);const c={method:"POST",...l,...o},f={},u={};f["Content-Type"]="application/json",f.Accept="application/json",kn(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...f,...h,...o.headers},c.data=Vo(r,c,e),{url:En(s),options:c}},deleteConnection:async(t,n,r={})=>{ht("deleteConnection","environmentName",t),ht("deleteConnection","connectionName",n);const o="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),a=new URL(o,Cn);let s;e&&(s=e.baseOptions);const l={method:"DELETE",...s,...r},c={},f={};c.Accept="application/json",kn(a,f);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...r.headers},{url:En(a),options:l}},getConnection:async(t,n,r={})=>{ht("getConnection","environmentName",t),ht("getConnection","connectionName",n);const o="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),a=new URL(o,Cn);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...r},c={},f={};c.Accept="application/json",kn(a,f);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...r.headers},{url:En(a),options:l}},getTable:async(t,n,r,o,a={})=>{ht("getTable","environmentName",t),ht("getTable","connectionName",n),ht("getTable","schemaName",r),ht("getTable","tablePath",o);const s="/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))).replace("{schemaName}",encodeURIComponent(String(r))).replace("{tablePath}",encodeURIComponent(String(o))),l=new URL(s,Cn);let c;e&&(c=e.baseOptions);const f={method:"GET",...c,...a},u={},h={};u.Accept="application/json",kn(l,h);let y=c&&c.headers?c.headers:{};return f.headers={...u,...y,...a.headers},{url:En(l),options:f}},getTableInPackage:async(t,n,r,o,a,s={})=>{ht("getTableInPackage","environmentName",t),ht("getTableInPackage","packageName",n),ht("getTableInPackage","connectionName",r),ht("getTableInPackage","schemaName",o),ht("getTableInPackage","tablePath",a);const l="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(r))).replace("{schemaName}",encodeURIComponent(String(o))).replace("{tablePath}",encodeURIComponent(String(a))),c=new URL(l,Cn);let f;e&&(f=e.baseOptions);const u={method:"GET",...f,...s},h={},y={};h.Accept="application/json",kn(c,y);let v=f&&f.headers?f.headers:{};return u.headers={...h,...v,...s.headers},{url:En(c),options:u}},listConnections:async(t,n={})=>{ht("listConnections","environmentName",t);const r="/environments/{environmentName}/connections".replace("{environmentName}",encodeURIComponent(String(t))),o=new URL(r,Cn);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...n},l={},c={};l.Accept="application/json",kn(o,c);let f=a&&a.headers?a.headers:{};return s.headers={...l,...f,...n.headers},{url:En(o),options:s}},listSchemas:async(t,n,r={})=>{ht("listSchemas","environmentName",t),ht("listSchemas","connectionName",n);const o="/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),a=new URL(o,Cn);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...r},c={},f={};c.Accept="application/json",kn(a,f);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...r.headers},{url:En(a),options:l}},listSchemasInPackage:async(t,n,r,o={})=>{ht("listSchemasInPackage","environmentName",t),ht("listSchemasInPackage","packageName",n),ht("listSchemasInPackage","connectionName",r);const a="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(r))),s=new URL(a,Cn);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},f={},u={};f.Accept="application/json",kn(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...f,...h,...o.headers},{url:En(s),options:c}},listTables:async(t,n,r,o,a={})=>{ht("listTables","environmentName",t),ht("listTables","connectionName",n),ht("listTables","schemaName",r);const s="/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))).replace("{schemaName}",encodeURIComponent(String(r))),l=new URL(s,Cn);let c;e&&(c=e.baseOptions);const f={method:"GET",...c,...a},u={},h={};o&&(h.tableNames=o),u.Accept="application/json",kn(l,h);let y=c&&c.headers?c.headers:{};return f.headers={...u,...y,...a.headers},{url:En(l),options:f}},listTablesInPackage:async(t,n,r,o,a,s={})=>{ht("listTablesInPackage","environmentName",t),ht("listTablesInPackage","packageName",n),ht("listTablesInPackage","connectionName",r),ht("listTablesInPackage","schemaName",o);const l="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(r))).replace("{schemaName}",encodeURIComponent(String(o))),c=new URL(l,Cn);let f;e&&(f=e.baseOptions);const u={method:"GET",...f,...s},h={},y={};a&&(y.tableNames=a),h.Accept="application/json",kn(c,y);let v=f&&f.headers?f.headers:{};return u.headers={...h,...v,...s.headers},{url:En(c),options:u}},postQuerydata:async(t,n,r,o={})=>{ht("postQuerydata","environmentName",t),ht("postQuerydata","connectionName",n),ht("postQuerydata","postQuerydataRequest",r);const a="/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(a,Cn);let l;e&&(l=e.baseOptions);const c={method:"POST",...l,...o},f={},u={};f["Content-Type"]="application/json",f.Accept="application/json",kn(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...f,...h,...o.headers},c.data=Vo(r,c,e),{url:En(s),options:c}},postQuerydataInPackage:async(t,n,r,o,a={})=>{ht("postQuerydataInPackage","environmentName",t),ht("postQuerydataInPackage","packageName",n),ht("postQuerydataInPackage","connectionName",r),ht("postQuerydataInPackage","postQuerydataRequest",o);const s="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(r))),l=new URL(s,Cn);let c;e&&(c=e.baseOptions);const f={method:"POST",...c,...a},u={},h={};u["Content-Type"]="application/json",u.Accept="application/json",kn(l,h);let y=c&&c.headers?c.headers:{};return f.headers={...u,...y,...a.headers},f.data=Vo(o,f,e),{url:En(l),options:f}},postSqlsource:async(t,n,r,o={})=>{ht("postSqlsource","environmentName",t),ht("postSqlsource","connectionName",n),ht("postSqlsource","postSqlsourceRequest",r);const a="/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(a,Cn);let l;e&&(l=e.baseOptions);const c={method:"POST",...l,...o},f={},u={};f["Content-Type"]="application/json",f.Accept="application/json",kn(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...f,...h,...o.headers},c.data=Vo(r,c,e),{url:En(s),options:c}},postSqlsourceInPackage:async(t,n,r,o,a={})=>{ht("postSqlsourceInPackage","environmentName",t),ht("postSqlsourceInPackage","packageName",n),ht("postSqlsourceInPackage","connectionName",r),ht("postSqlsourceInPackage","postSqlsourceRequest",o);const s="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(r))),l=new URL(s,Cn);let c;e&&(c=e.baseOptions);const f={method:"POST",...c,...a},u={},h={};u["Content-Type"]="application/json",u.Accept="application/json",kn(l,h);let y=c&&c.headers?c.headers:{};return f.headers={...u,...y,...a.headers},f.data=Vo(o,f,e),{url:En(l),options:f}},postTemporarytable:async(t,n,r,o={})=>{ht("postTemporarytable","environmentName",t),ht("postTemporarytable","connectionName",n),ht("postTemporarytable","postSqlsourceRequest",r);const a="/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(a,Cn);let l;e&&(l=e.baseOptions);const c={method:"POST",...l,...o},f={},u={};f["Content-Type"]="application/json",f.Accept="application/json",kn(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...f,...h,...o.headers},c.data=Vo(r,c,e),{url:En(s),options:c}},postTemporarytableInPackage:async(t,n,r,o,a={})=>{ht("postTemporarytableInPackage","environmentName",t),ht("postTemporarytableInPackage","packageName",n),ht("postTemporarytableInPackage","connectionName",r),ht("postTemporarytableInPackage","postSqlsourceRequest",o);const s="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(r))),l=new URL(s,Cn);let c;e&&(c=e.baseOptions);const f={method:"POST",...c,...a},u={},h={};u["Content-Type"]="application/json",u.Accept="application/json",kn(l,h);let y=c&&c.headers?c.headers:{};return f.headers={...u,...y,...a.headers},f.data=Vo(o,f,e),{url:En(l),options:f}},updateConnection:async(t,n,r,o={})=>{ht("updateConnection","environmentName",t),ht("updateConnection","connectionName",n),ht("updateConnection","updateConnectionRequest",r);const a="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(a,Cn);let l;e&&(l=e.baseOptions);const c={method:"PATCH",...l,...o},f={},u={};f["Content-Type"]="application/json",f.Accept="application/json",kn(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...f,...h,...o.headers},c.data=Vo(r,c,e),{url:En(s),options:c}}}},Qo=function(e){const t=RX(e);return{async createConnection(n,r,o,a){const s=await t.createConnection(n,r,o,a),l=e?.serverIndex??0,c=wn["ConnectionsApi.createConnection"]?.[l]?.url;return(f,u)=>Tn(s,Vt,xn,e)(f,c||u)},async deleteConnection(n,r,o){const a=await t.deleteConnection(n,r,o),s=e?.serverIndex??0,l=wn["ConnectionsApi.deleteConnection"]?.[s]?.url;return(c,f)=>Tn(a,Vt,xn,e)(c,l||f)},async getConnection(n,r,o){const a=await t.getConnection(n,r,o),s=e?.serverIndex??0,l=wn["ConnectionsApi.getConnection"]?.[s]?.url;return(c,f)=>Tn(a,Vt,xn,e)(c,l||f)},async getTable(n,r,o,a,s){const l=await t.getTable(n,r,o,a,s),c=e?.serverIndex??0,f=wn["ConnectionsApi.getTable"]?.[c]?.url;return(u,h)=>Tn(l,Vt,xn,e)(u,f||h)},async getTableInPackage(n,r,o,a,s,l){const c=await t.getTableInPackage(n,r,o,a,s,l),f=e?.serverIndex??0,u=wn["ConnectionsApi.getTableInPackage"]?.[f]?.url;return(h,y)=>Tn(c,Vt,xn,e)(h,u||y)},async listConnections(n,r){const o=await t.listConnections(n,r),a=e?.serverIndex??0,s=wn["ConnectionsApi.listConnections"]?.[a]?.url;return(l,c)=>Tn(o,Vt,xn,e)(l,s||c)},async listSchemas(n,r,o){const a=await t.listSchemas(n,r,o),s=e?.serverIndex??0,l=wn["ConnectionsApi.listSchemas"]?.[s]?.url;return(c,f)=>Tn(a,Vt,xn,e)(c,l||f)},async listSchemasInPackage(n,r,o,a){const s=await t.listSchemasInPackage(n,r,o,a),l=e?.serverIndex??0,c=wn["ConnectionsApi.listSchemasInPackage"]?.[l]?.url;return(f,u)=>Tn(s,Vt,xn,e)(f,c||u)},async listTables(n,r,o,a,s){const l=await t.listTables(n,r,o,a,s),c=e?.serverIndex??0,f=wn["ConnectionsApi.listTables"]?.[c]?.url;return(u,h)=>Tn(l,Vt,xn,e)(u,f||h)},async listTablesInPackage(n,r,o,a,s,l){const c=await t.listTablesInPackage(n,r,o,a,s,l),f=e?.serverIndex??0,u=wn["ConnectionsApi.listTablesInPackage"]?.[f]?.url;return(h,y)=>Tn(c,Vt,xn,e)(h,u||y)},async postQuerydata(n,r,o,a){const s=await t.postQuerydata(n,r,o,a),l=e?.serverIndex??0,c=wn["ConnectionsApi.postQuerydata"]?.[l]?.url;return(f,u)=>Tn(s,Vt,xn,e)(f,c||u)},async postQuerydataInPackage(n,r,o,a,s){const l=await t.postQuerydataInPackage(n,r,o,a,s),c=e?.serverIndex??0,f=wn["ConnectionsApi.postQuerydataInPackage"]?.[c]?.url;return(u,h)=>Tn(l,Vt,xn,e)(u,f||h)},async postSqlsource(n,r,o,a){const s=await t.postSqlsource(n,r,o,a),l=e?.serverIndex??0,c=wn["ConnectionsApi.postSqlsource"]?.[l]?.url;return(f,u)=>Tn(s,Vt,xn,e)(f,c||u)},async postSqlsourceInPackage(n,r,o,a,s){const l=await t.postSqlsourceInPackage(n,r,o,a,s),c=e?.serverIndex??0,f=wn["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;return(u,h)=>Tn(l,Vt,xn,e)(u,f||h)},async postTemporarytable(n,r,o,a){const s=await t.postTemporarytable(n,r,o,a),l=e?.serverIndex??0,c=wn["ConnectionsApi.postTemporarytable"]?.[l]?.url;return(f,u)=>Tn(s,Vt,xn,e)(f,c||u)},async postTemporarytableInPackage(n,r,o,a,s){const l=await t.postTemporarytableInPackage(n,r,o,a,s),c=e?.serverIndex??0,f=wn["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;return(u,h)=>Tn(l,Vt,xn,e)(u,f||h)},async updateConnection(n,r,o,a){const s=await t.updateConnection(n,r,o,a),l=e?.serverIndex??0,c=wn["ConnectionsApi.updateConnection"]?.[l]?.url;return(f,u)=>Tn(s,Vt,xn,e)(f,c||u)}}};let OX=class extends Ms{createConnection(t,n,r,o){return Qo(this.configuration).createConnection(t,n,r,o).then(a=>a(this.axios,this.basePath))}deleteConnection(t,n,r){return Qo(this.configuration).deleteConnection(t,n,r).then(o=>o(this.axios,this.basePath))}getConnection(t,n,r){return Qo(this.configuration).getConnection(t,n,r).then(o=>o(this.axios,this.basePath))}getTable(t,n,r,o,a){return Qo(this.configuration).getTable(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}getTableInPackage(t,n,r,o,a,s){return Qo(this.configuration).getTableInPackage(t,n,r,o,a,s).then(l=>l(this.axios,this.basePath))}listConnections(t,n){return Qo(this.configuration).listConnections(t,n).then(r=>r(this.axios,this.basePath))}listSchemas(t,n,r){return Qo(this.configuration).listSchemas(t,n,r).then(o=>o(this.axios,this.basePath))}listSchemasInPackage(t,n,r,o){return Qo(this.configuration).listSchemasInPackage(t,n,r,o).then(a=>a(this.axios,this.basePath))}listTables(t,n,r,o,a){return Qo(this.configuration).listTables(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listTablesInPackage(t,n,r,o,a,s){return Qo(this.configuration).listTablesInPackage(t,n,r,o,a,s).then(l=>l(this.axios,this.basePath))}postQuerydata(t,n,r,o){return Qo(this.configuration).postQuerydata(t,n,r,o).then(a=>a(this.axios,this.basePath))}postQuerydataInPackage(t,n,r,o,a){return Qo(this.configuration).postQuerydataInPackage(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}postSqlsource(t,n,r,o){return Qo(this.configuration).postSqlsource(t,n,r,o).then(a=>a(this.axios,this.basePath))}postSqlsourceInPackage(t,n,r,o,a){return Qo(this.configuration).postSqlsourceInPackage(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}postTemporarytable(t,n,r,o){return Qo(this.configuration).postTemporarytable(t,n,r,o).then(a=>a(this.axios,this.basePath))}postTemporarytableInPackage(t,n,r,o,a){return Qo(this.configuration).postTemporarytableInPackage(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}updateConnection(t,n,r,o){return Qo(this.configuration).updateConnection(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const $X=function(e){return{getDashboard:async(t,n,r,o,a={})=>{ht("getDashboard","environmentName",t),ht("getDashboard","packageName",n),ht("getDashboard","dashboardName",r);const s="/environments/{environmentName}/packages/{packageName}/dashboards/{dashboardName}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{dashboardName}",encodeURIComponent(String(r))),l=new URL(s,Cn);let c;e&&(c=e.baseOptions);const f={method:"GET",...c,...a},u={},h={};o!==void 0&&(h.versionId=o),u.Accept="application/json",kn(l,h);let y=c&&c.headers?c.headers:{};return f.headers={...u,...y,...a.headers},{url:En(l),options:f}},listDashboards:async(t,n,r,o={})=>{ht("listDashboards","environmentName",t),ht("listDashboards","packageName",n);const a="/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(a,Cn);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},f={},u={};r!==void 0&&(u.versionId=r),f.Accept="application/json",kn(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...f,...h,...o.headers},{url:En(s),options:c}}}},$$=function(e){const t=$X(e);return{async getDashboard(n,r,o,a,s){const l=await t.getDashboard(n,r,o,a,s),c=e?.serverIndex??0,f=wn["DashboardsApi.getDashboard"]?.[c]?.url;return(u,h)=>Tn(l,Vt,xn,e)(u,f||h)},async listDashboards(n,r,o,a){const s=await t.listDashboards(n,r,o,a),l=e?.serverIndex??0,c=wn["DashboardsApi.listDashboards"]?.[l]?.url;return(f,u)=>Tn(s,Vt,xn,e)(f,c||u)}}};let PX=class extends Ms{getDashboard(t,n,r,o,a){return $$(this.configuration).getDashboard(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listDashboards(t,n,r,o){return $$(this.configuration).listDashboards(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const AX=function(e){return{listDataApps:async(t,n,r={})=>{ht("listDataApps","environmentName",t),ht("listDataApps","packageName",n);const o="/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),a=new URL(o,Cn);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...r},c={},f={};c.Accept="application/json",kn(a,f);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...r.headers},{url:En(a),options:l}}}},DX=function(e){const t=AX(e);return{async listDataApps(n,r,o){const a=await t.listDataApps(n,r,o),s=e?.serverIndex??0,l=wn["DataAppsApi.listDataApps"]?.[s]?.url;return(c,f)=>Tn(a,Vt,xn,e)(c,l||f)}}};let jX=class extends Ms{listDataApps(t,n,r){return DX(this.configuration).listDataApps(t,n,r).then(o=>o(this.axios,this.basePath))}};const NX=function(e){return{listDatabases:async(t,n,r,o={})=>{ht("listDatabases","environmentName",t),ht("listDatabases","packageName",n);const a="/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(a,Cn);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},f={},u={};r!==void 0&&(u.versionId=r),f.Accept="application/json",kn(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...f,...h,...o.headers},{url:En(s),options:c}}}},IX=function(e){const t=NX(e);return{async listDatabases(n,r,o,a){const s=await t.listDatabases(n,r,o,a),l=e?.serverIndex??0,c=wn["DatabasesApi.listDatabases"]?.[l]?.url;return(f,u)=>Tn(s,Vt,xn,e)(f,c||u)}}};let LX=class extends Ms{listDatabases(t,n,r,o){return IX(this.configuration).listDatabases(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const zX=function(e){return{createEnvironment:async(t,n={})=>{ht("createEnvironment","environment",t);const r="/environments",o=new URL(r,Cn);let a;e&&(a=e.baseOptions);const s={method:"POST",...a,...n},l={},c={};l["Content-Type"]="application/json",l.Accept="application/json",kn(o,c);let f=a&&a.headers?a.headers:{};return s.headers={...l,...f,...n.headers},s.data=Vo(t,s,e),{url:En(o),options:s}},deleteEnvironment:async(t,n={})=>{ht("deleteEnvironment","environmentName",t);const r="/environments/{environmentName}".replace("{environmentName}",encodeURIComponent(String(t))),o=new URL(r,Cn);let a;e&&(a=e.baseOptions);const s={method:"DELETE",...a,...n},l={},c={};l.Accept="application/json",kn(o,c);let f=a&&a.headers?a.headers:{};return s.headers={...l,...f,...n.headers},{url:En(o),options:s}},getEnvironment:async(t,n,r={})=>{ht("getEnvironment","environmentName",t);const o="/environments/{environmentName}".replace("{environmentName}",encodeURIComponent(String(t))),a=new URL(o,Cn);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...r},c={},f={};n!==void 0&&(f.reload=n),c.Accept="application/json",kn(a,f);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...r.headers},{url:En(a),options:l}},listEnvironments:async(t={})=>{const n="/environments",r=new URL(n,Cn);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},s={},l={};s.Accept="application/json",kn(r,l);let c=o&&o.headers?o.headers:{};return a.headers={...s,...c,...t.headers},{url:En(r),options:a}},updateEnvironment:async(t,n,r={})=>{ht("updateEnvironment","environmentName",t),ht("updateEnvironment","environment",n);const o="/environments/{environmentName}".replace("{environmentName}",encodeURIComponent(String(t))),a=new URL(o,Cn);let s;e&&(s=e.baseOptions);const l={method:"PATCH",...s,...r},c={},f={};c["Content-Type"]="application/json",c.Accept="application/json",kn(a,f);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...r.headers},l.data=Vo(n,l,e),{url:En(a),options:l}}}},Xh=function(e){const t=zX(e);return{async createEnvironment(n,r){const o=await t.createEnvironment(n,r),a=e?.serverIndex??0,s=wn["EnvironmentsApi.createEnvironment"]?.[a]?.url;return(l,c)=>Tn(o,Vt,xn,e)(l,s||c)},async deleteEnvironment(n,r){const o=await t.deleteEnvironment(n,r),a=e?.serverIndex??0,s=wn["EnvironmentsApi.deleteEnvironment"]?.[a]?.url;return(l,c)=>Tn(o,Vt,xn,e)(l,s||c)},async getEnvironment(n,r,o){const a=await t.getEnvironment(n,r,o),s=e?.serverIndex??0,l=wn["EnvironmentsApi.getEnvironment"]?.[s]?.url;return(c,f)=>Tn(a,Vt,xn,e)(c,l||f)},async listEnvironments(n){const r=await t.listEnvironments(n),o=e?.serverIndex??0,a=wn["EnvironmentsApi.listEnvironments"]?.[o]?.url;return(s,l)=>Tn(r,Vt,xn,e)(s,a||l)},async updateEnvironment(n,r,o){const a=await t.updateEnvironment(n,r,o),s=e?.serverIndex??0,l=wn["EnvironmentsApi.updateEnvironment"]?.[s]?.url;return(c,f)=>Tn(a,Vt,xn,e)(c,l||f)}}};let FX=class extends Ms{createEnvironment(t,n){return Xh(this.configuration).createEnvironment(t,n).then(r=>r(this.axios,this.basePath))}deleteEnvironment(t,n){return Xh(this.configuration).deleteEnvironment(t,n).then(r=>r(this.axios,this.basePath))}getEnvironment(t,n,r){return Xh(this.configuration).getEnvironment(t,n,r).then(o=>o(this.axios,this.basePath))}listEnvironments(t){return Xh(this.configuration).listEnvironments(t).then(n=>n(this.axios,this.basePath))}updateEnvironment(t,n,r){return Xh(this.configuration).updateEnvironment(t,n,r).then(o=>o(this.axios,this.basePath))}};const _X=function(e){return{createMaterialization:async(t,n,r,o={})=>{ht("createMaterialization","environmentName",t),ht("createMaterialization","packageName",n);const a="/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(a,Cn);let l;e&&(l=e.baseOptions);const c={method:"POST",...l,...o},f={},u={};f["Content-Type"]="application/json",f.Accept="application/json",kn(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...f,...h,...o.headers},c.data=Vo(r,c,e),{url:En(s),options:c}},deleteMaterialization:async(t,n,r,o,a={})=>{ht("deleteMaterialization","environmentName",t),ht("deleteMaterialization","packageName",n),ht("deleteMaterialization","materializationId",r);const s="/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{materializationId}",encodeURIComponent(String(r))),l=new URL(s,Cn);let c;e&&(c=e.baseOptions);const f={method:"DELETE",...c,...a},u={},h={};o!==void 0&&(h.dropTables=o),u.Accept="application/json",kn(l,h);let y=c&&c.headers?c.headers:{};return f.headers={...u,...y,...a.headers},{url:En(l),options:f}},getMaterialization:async(t,n,r,o={})=>{ht("getMaterialization","environmentName",t),ht("getMaterialization","packageName",n),ht("getMaterialization","materializationId",r);const a="/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{materializationId}",encodeURIComponent(String(r))),s=new URL(a,Cn);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},f={},u={};f.Accept="application/json",kn(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...f,...h,...o.headers},{url:En(s),options:c}},listMaterializations:async(t,n,r,o,a={})=>{ht("listMaterializations","environmentName",t),ht("listMaterializations","packageName",n);const s="/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(s,Cn);let c;e&&(c=e.baseOptions);const f={method:"GET",...c,...a},u={},h={};r!==void 0&&(h.limit=r),o!==void 0&&(h.offset=o),u.Accept="application/json",kn(l,h);let y=c&&c.headers?c.headers:{};return f.headers={...u,...y,...a.headers},{url:En(l),options:f}},materializationAction:async(t,n,r,o,a={})=>{ht("materializationAction","environmentName",t),ht("materializationAction","packageName",n),ht("materializationAction","materializationId",r),ht("materializationAction","action",o);const s="/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{materializationId}",encodeURIComponent(String(r))),l=new URL(s,Cn);let c;e&&(c=e.baseOptions);const f={method:"POST",...c,...a},u={},h={};o!==void 0&&(h.action=o),u.Accept="application/json",kn(l,h);let y=c&&c.headers?c.headers:{};return f.headers={...u,...y,...a.headers},{url:En(l),options:f}}}},Zh=function(e){const t=_X(e);return{async createMaterialization(n,r,o,a){const s=await t.createMaterialization(n,r,o,a),l=e?.serverIndex??0,c=wn["MaterializationsApi.createMaterialization"]?.[l]?.url;return(f,u)=>Tn(s,Vt,xn,e)(f,c||u)},async deleteMaterialization(n,r,o,a,s){const l=await t.deleteMaterialization(n,r,o,a,s),c=e?.serverIndex??0,f=wn["MaterializationsApi.deleteMaterialization"]?.[c]?.url;return(u,h)=>Tn(l,Vt,xn,e)(u,f||h)},async getMaterialization(n,r,o,a){const s=await t.getMaterialization(n,r,o,a),l=e?.serverIndex??0,c=wn["MaterializationsApi.getMaterialization"]?.[l]?.url;return(f,u)=>Tn(s,Vt,xn,e)(f,c||u)},async listMaterializations(n,r,o,a,s){const l=await t.listMaterializations(n,r,o,a,s),c=e?.serverIndex??0,f=wn["MaterializationsApi.listMaterializations"]?.[c]?.url;return(u,h)=>Tn(l,Vt,xn,e)(u,f||h)},async materializationAction(n,r,o,a,s){const l=await t.materializationAction(n,r,o,a,s),c=e?.serverIndex??0,f=wn["MaterializationsApi.materializationAction"]?.[c]?.url;return(u,h)=>Tn(l,Vt,xn,e)(u,f||h)}}};let BX=class extends Ms{createMaterialization(t,n,r,o){return Zh(this.configuration).createMaterialization(t,n,r,o).then(a=>a(this.axios,this.basePath))}deleteMaterialization(t,n,r,o,a){return Zh(this.configuration).deleteMaterialization(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}getMaterialization(t,n,r,o){return Zh(this.configuration).getMaterialization(t,n,r,o).then(a=>a(this.axios,this.basePath))}listMaterializations(t,n,r,o,a){return Zh(this.configuration).listMaterializations(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}materializationAction(t,n,r,o,a){return Zh(this.configuration).materializationAction(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}};const UX={Stop:"stop"},VX=function(e){return{compileModelSource:async(t,n,r,o,a={})=>{ht("compileModelSource","environmentName",t),ht("compileModelSource","packageName",n),ht("compileModelSource","path",r),ht("compileModelSource","compileRequest",o);const s="/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),l=new URL(s,Cn);let c;e&&(c=e.baseOptions);const f={method:"POST",...c,...a},u={},h={};u["Content-Type"]="application/json",u.Accept="application/json",kn(l,h);let y=c&&c.headers?c.headers:{};return f.headers={...u,...y,...a.headers},f.data=Vo(o,f,e),{url:En(l),options:f}},executeQueryModel:async(t,n,r,o,a,s={})=>{ht("executeQueryModel","environmentName",t),ht("executeQueryModel","packageName",n),ht("executeQueryModel","path",r),ht("executeQueryModel","queryRequest",o);const l="/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),c=new URL(l,Cn);let f;e&&(f=e.baseOptions);const u={method:"POST",...f,...s},h={},y={};a!==void 0&&(y.includeHiddenFilesAndSources=a),h["Content-Type"]="application/json",h.Accept="application/json",kn(c,y);let v=f&&f.headers?f.headers:{};return u.headers={...h,...v,...s.headers},u.data=Vo(o,u,e),{url:En(c),options:u}},getModel:async(t,n,r,o,a,s={})=>{ht("getModel","environmentName",t),ht("getModel","packageName",n),ht("getModel","path",r);const l="/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),c=new URL(l,Cn);let f;e&&(f=e.baseOptions);const u={method:"GET",...f,...s},h={},y={};o!==void 0&&(y.versionId=o),a!==void 0&&(y.includeHiddenFilesAndSources=a),h.Accept="application/json",kn(c,y);let v=f&&f.headers?f.headers:{};return u.headers={...h,...v,...s.headers},{url:En(c),options:u}},listModels:async(t,n,r,o,a={})=>{ht("listModels","environmentName",t),ht("listModels","packageName",n);const s="/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(s,Cn);let c;e&&(c=e.baseOptions);const f={method:"GET",...c,...a},u={},h={};r!==void 0&&(h.versionId=r),o!==void 0&&(h.includeHiddenFilesAndSources=o),u.Accept="application/json",kn(l,h);let y=c&&c.headers?c.headers:{};return f.headers={...u,...y,...a.headers},{url:En(l),options:f}},updateModelSource:async(t,n,r,o,a,s={})=>{ht("updateModelSource","environmentName",t),ht("updateModelSource","packageName",n),ht("updateModelSource","path",r),ht("updateModelSource","modelSourceWriteRequest",o);const l="/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),c=new URL(l,Cn);let f;e&&(f=e.baseOptions);const u={method:"PUT",...f,...s},h={},y={};a!==void 0&&(y.versionId=a),h["Content-Type"]="application/json",h.Accept="application/json",kn(c,y);let v=f&&f.headers?f.headers:{};return u.headers={...h,...v,...s.headers},u.data=Vo(o,u,e),{url:En(c),options:u}}}},Jh=function(e){const t=VX(e);return{async compileModelSource(n,r,o,a,s){const l=await t.compileModelSource(n,r,o,a,s),c=e?.serverIndex??0,f=wn["ModelsApi.compileModelSource"]?.[c]?.url;return(u,h)=>Tn(l,Vt,xn,e)(u,f||h)},async executeQueryModel(n,r,o,a,s,l){const c=await t.executeQueryModel(n,r,o,a,s,l),f=e?.serverIndex??0,u=wn["ModelsApi.executeQueryModel"]?.[f]?.url;return(h,y)=>Tn(c,Vt,xn,e)(h,u||y)},async getModel(n,r,o,a,s,l){const c=await t.getModel(n,r,o,a,s,l),f=e?.serverIndex??0,u=wn["ModelsApi.getModel"]?.[f]?.url;return(h,y)=>Tn(c,Vt,xn,e)(h,u||y)},async listModels(n,r,o,a,s){const l=await t.listModels(n,r,o,a,s),c=e?.serverIndex??0,f=wn["ModelsApi.listModels"]?.[c]?.url;return(u,h)=>Tn(l,Vt,xn,e)(u,f||h)},async updateModelSource(n,r,o,a,s,l){const c=await t.updateModelSource(n,r,o,a,s,l),f=e?.serverIndex??0,u=wn["ModelsApi.updateModelSource"]?.[f]?.url;return(h,y)=>Tn(c,Vt,xn,e)(h,u||y)}}};let HX=class extends Ms{compileModelSource(t,n,r,o,a){return Jh(this.configuration).compileModelSource(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}executeQueryModel(t,n,r,o,a,s){return Jh(this.configuration).executeQueryModel(t,n,r,o,a,s).then(l=>l(this.axios,this.basePath))}getModel(t,n,r,o,a,s){return Jh(this.configuration).getModel(t,n,r,o,a,s).then(l=>l(this.axios,this.basePath))}listModels(t,n,r,o,a){return Jh(this.configuration).listModels(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}updateModelSource(t,n,r,o,a,s){return Jh(this.configuration).updateModelSource(t,n,r,o,a,s).then(l=>l(this.axios,this.basePath))}};const WX=function(e){return{executeNotebookCell:async(t,n,r,o,a,s,l,c,f={})=>{ht("executeNotebookCell","environmentName",t),ht("executeNotebookCell","packageName",n),ht("executeNotebookCell","path",r),ht("executeNotebookCell","cellIndex",o);const u="/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))).replace("{cellIndex}",encodeURIComponent(String(o))),h=new URL(u,Cn);let y;e&&(y=e.baseOptions);const v={method:"GET",...y,...f},S={},x={};a!==void 0&&(x.versionId=a),s!==void 0&&(x.filter_params=s),l!==void 0&&(x.bypass_filters=l),c!==void 0&&(x.givens=c),S.Accept="application/json",kn(h,x);let w=y&&y.headers?y.headers:{};return v.headers={...S,...w,...f.headers},{url:En(h),options:v}},getNotebook:async(t,n,r,o,a={})=>{ht("getNotebook","environmentName",t),ht("getNotebook","packageName",n),ht("getNotebook","path",r);const s="/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),l=new URL(s,Cn);let c;e&&(c=e.baseOptions);const f={method:"GET",...c,...a},u={},h={};o!==void 0&&(h.versionId=o),u.Accept="application/json",kn(l,h);let y=c&&c.headers?c.headers:{};return f.headers={...u,...y,...a.headers},{url:En(l),options:f}},listNotebooks:async(t,n,r,o={})=>{ht("listNotebooks","environmentName",t),ht("listNotebooks","packageName",n);const a="/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(a,Cn);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},f={},u={};r!==void 0&&(u.versionId=r),f.Accept="application/json",kn(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...f,...h,...o.headers},{url:En(s),options:c}}}},uS=function(e){const t=WX(e);return{async executeNotebookCell(n,r,o,a,s,l,c,f,u){const h=await t.executeNotebookCell(n,r,o,a,s,l,c,f,u),y=e?.serverIndex??0,v=wn["NotebooksApi.executeNotebookCell"]?.[y]?.url;return(S,x)=>Tn(h,Vt,xn,e)(S,v||x)},async getNotebook(n,r,o,a,s){const l=await t.getNotebook(n,r,o,a,s),c=e?.serverIndex??0,f=wn["NotebooksApi.getNotebook"]?.[c]?.url;return(u,h)=>Tn(l,Vt,xn,e)(u,f||h)},async listNotebooks(n,r,o,a){const s=await t.listNotebooks(n,r,o,a),l=e?.serverIndex??0,c=wn["NotebooksApi.listNotebooks"]?.[l]?.url;return(f,u)=>Tn(s,Vt,xn,e)(f,c||u)}}};let qX=class extends Ms{executeNotebookCell(t,n,r,o,a,s,l,c,f){return uS(this.configuration).executeNotebookCell(t,n,r,o,a,s,l,c,f).then(u=>u(this.axios,this.basePath))}getNotebook(t,n,r,o,a){return uS(this.configuration).getNotebook(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listNotebooks(t,n,r,o){return uS(this.configuration).listNotebooks(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const YX=function(e){return{createPackage:async(t,n,r={})=>{ht("createPackage","environmentName",t),ht("createPackage","_package",n);const o="/environments/{environmentName}/packages".replace("{environmentName}",encodeURIComponent(String(t))),a=new URL(o,Cn);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...r},c={},f={};c["Content-Type"]="application/json",c.Accept="application/json",kn(a,f);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...r.headers},l.data=Vo(n,l,e),{url:En(a),options:l}},deletePackage:async(t,n,r={})=>{ht("deletePackage","environmentName",t),ht("deletePackage","packageName",n);const o="/environments/{environmentName}/packages/{packageName}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),a=new URL(o,Cn);let s;e&&(s=e.baseOptions);const l={method:"DELETE",...s,...r},c={},f={};c.Accept="application/json",kn(a,f);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...r.headers},{url:En(a),options:l}},getPackage:async(t,n,r,o,a={})=>{ht("getPackage","environmentName",t),ht("getPackage","packageName",n);const s="/environments/{environmentName}/packages/{packageName}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(s,Cn);let c;e&&(c=e.baseOptions);const f={method:"GET",...c,...a},u={},h={};r!==void 0&&(h.versionId=r),o!==void 0&&(h.reload=o),u.Accept="application/json",kn(l,h);let y=c&&c.headers?c.headers:{};return f.headers={...u,...y,...a.headers},{url:En(l),options:f}},listPackages:async(t,n={})=>{ht("listPackages","environmentName",t);const r="/environments/{environmentName}/packages".replace("{environmentName}",encodeURIComponent(String(t))),o=new URL(r,Cn);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...n},l={},c={};l.Accept="application/json",kn(o,c);let f=a&&a.headers?a.headers:{};return s.headers={...l,...f,...n.headers},{url:En(o),options:s}},updatePackage:async(t,n,r,o={})=>{ht("updatePackage","environmentName",t),ht("updatePackage","packageName",n),ht("updatePackage","_package",r);const a="/environments/{environmentName}/packages/{packageName}".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(a,Cn);let l;e&&(l=e.baseOptions);const c={method:"PATCH",...l,...o},f={},u={};f["Content-Type"]="application/json",f.Accept="application/json",kn(s,u);let h=l&&l.headers?l.headers:{};return c.headers={...f,...h,...o.headers},c.data=Vo(r,c,e),{url:En(s),options:c}}}},em=function(e){const t=YX(e);return{async createPackage(n,r,o){const a=await t.createPackage(n,r,o),s=e?.serverIndex??0,l=wn["PackagesApi.createPackage"]?.[s]?.url;return(c,f)=>Tn(a,Vt,xn,e)(c,l||f)},async deletePackage(n,r,o){const a=await t.deletePackage(n,r,o),s=e?.serverIndex??0,l=wn["PackagesApi.deletePackage"]?.[s]?.url;return(c,f)=>Tn(a,Vt,xn,e)(c,l||f)},async getPackage(n,r,o,a,s){const l=await t.getPackage(n,r,o,a,s),c=e?.serverIndex??0,f=wn["PackagesApi.getPackage"]?.[c]?.url;return(u,h)=>Tn(l,Vt,xn,e)(u,f||h)},async listPackages(n,r){const o=await t.listPackages(n,r),a=e?.serverIndex??0,s=wn["PackagesApi.listPackages"]?.[a]?.url;return(l,c)=>Tn(o,Vt,xn,e)(l,s||c)},async updatePackage(n,r,o,a){const s=await t.updatePackage(n,r,o,a),l=e?.serverIndex??0,c=wn["PackagesApi.updatePackage"]?.[l]?.url;return(f,u)=>Tn(s,Vt,xn,e)(f,c||u)}}};let GX=class extends Ms{createPackage(t,n,r){return em(this.configuration).createPackage(t,n,r).then(o=>o(this.axios,this.basePath))}deletePackage(t,n,r){return em(this.configuration).deletePackage(t,n,r).then(o=>o(this.axios,this.basePath))}getPackage(t,n,r,o,a){return em(this.configuration).getPackage(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listPackages(t,n){return em(this.configuration).listPackages(t,n).then(r=>r(this.axios,this.basePath))}updatePackage(t,n,r,o){return em(this.configuration).updatePackage(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const KX=function(e){return{deleteTheme:async(t={})=>{const n="/theme",r=new URL(n,Cn);let o;e&&(o=e.baseOptions);const a={method:"DELETE",...o,...t},s={},l={};s.Accept="application/json",kn(r,l);let c=o&&o.headers?o.headers:{};return a.headers={...s,...c,...t.headers},{url:En(r),options:a}},getStatus:async(t={})=>{const n="/status",r=new URL(n,Cn);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},s={},l={};s.Accept="application/json",kn(r,l);let c=o&&o.headers?o.headers:{};return a.headers={...s,...c,...t.headers},{url:En(r),options:a}},getTheme:async(t={})=>{const n="/theme",r=new URL(n,Cn);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},s={},l={};s.Accept="application/json",kn(r,l);let c=o&&o.headers?o.headers:{};return a.headers={...s,...c,...t.headers},{url:En(r),options:a}},updateTheme:async(t,n={})=>{ht("updateTheme","theme",t);const r="/theme",o=new URL(r,Cn);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...n},l={},c={};l["Content-Type"]="application/json",l.Accept="application/json",kn(o,c);let f=a&&a.headers?a.headers:{};return s.headers={...l,...f,...n.headers},s.data=Vo(t,s,e),{url:En(o),options:s}}}},gv=function(e){const t=KX(e);return{async deleteTheme(n){const r=await t.deleteTheme(n),o=e?.serverIndex??0,a=wn["PublisherApi.deleteTheme"]?.[o]?.url;return(s,l)=>Tn(r,Vt,xn,e)(s,a||l)},async getStatus(n){const r=await t.getStatus(n),o=e?.serverIndex??0,a=wn["PublisherApi.getStatus"]?.[o]?.url;return(s,l)=>Tn(r,Vt,xn,e)(s,a||l)},async getTheme(n){const r=await t.getTheme(n),o=e?.serverIndex??0,a=wn["PublisherApi.getTheme"]?.[o]?.url;return(s,l)=>Tn(r,Vt,xn,e)(s,a||l)},async updateTheme(n,r){const o=await t.updateTheme(n,r),a=e?.serverIndex??0,s=wn["PublisherApi.updateTheme"]?.[a]?.url;return(l,c)=>Tn(o,Vt,xn,e)(l,s||c)}}};let QX=class extends Ms{deleteTheme(t){return gv(this.configuration).deleteTheme(t).then(n=>n(this.axios,this.basePath))}getStatus(t){return gv(this.configuration).getStatus(t).then(n=>n(this.axios,this.basePath))}getTheme(t){return gv(this.configuration).getTheme(t).then(n=>n(this.axios,this.basePath))}updateTheme(t,n){return gv(this.configuration).updateTheme(t,n).then(r=>r(this.axios,this.basePath))}};const XX=function(e){return{getWatchStatus:async(t={})=>{const n="/watch-mode/status",r=new URL(n,Cn);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},s={},l={};s.Accept="application/json",kn(r,l);let c=o&&o.headers?o.headers:{};return a.headers={...s,...c,...t.headers},{url:En(r),options:a}},startWatching:async(t,n={})=>{ht("startWatching","startWatchRequest",t);const r="/watch-mode/start",o=new URL(r,Cn);let a;e&&(a=e.baseOptions);const s={method:"POST",...a,...n},l={},c={};l["Content-Type"]="application/json",l.Accept="application/json",kn(o,c);let f=a&&a.headers?a.headers:{};return s.headers={...l,...f,...n.headers},s.data=Vo(t,s,e),{url:En(o),options:s}},stopWatching:async(t={})=>{const n="/watch-mode/stop",r=new URL(n,Cn);let o;e&&(o=e.baseOptions);const a={method:"POST",...o,...t},s={},l={};s.Accept="application/json",kn(r,l);let c=o&&o.headers?o.headers:{};return a.headers={...s,...c,...t.headers},{url:En(r),options:a}},streamPackageEvents:async(t,n,r={})=>{ht("streamPackageEvents","environmentName",t),ht("streamPackageEvents","packageName",n);const o="/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),a=new URL(o,Cn);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...r},c={},f={};c.Accept="text/event-stream,application/json",kn(a,f);let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...r.headers},{url:En(a),options:l}}}},yv=function(e){const t=XX(e);return{async getWatchStatus(n){const r=await t.getWatchStatus(n),o=e?.serverIndex??0,a=wn["WatchModeApi.getWatchStatus"]?.[o]?.url;return(s,l)=>Tn(r,Vt,xn,e)(s,a||l)},async startWatching(n,r){const o=await t.startWatching(n,r),a=e?.serverIndex??0,s=wn["WatchModeApi.startWatching"]?.[a]?.url;return(l,c)=>Tn(o,Vt,xn,e)(l,s||c)},async stopWatching(n){const r=await t.stopWatching(n),o=e?.serverIndex??0,a=wn["WatchModeApi.stopWatching"]?.[o]?.url;return(s,l)=>Tn(r,Vt,xn,e)(s,a||l)},async streamPackageEvents(n,r,o){const a=await t.streamPackageEvents(n,r,o),s=e?.serverIndex??0,l=wn["WatchModeApi.streamPackageEvents"]?.[s]?.url;return(c,f)=>Tn(a,Vt,xn,e)(c,l||f)}}};let ZX=class extends Ms{getWatchStatus(t){return yv(this.configuration).getWatchStatus(t).then(n=>n(this.axios,this.basePath))}startWatching(t,n){return yv(this.configuration).startWatching(t,n).then(r=>r(this.axios,this.basePath))}stopWatching(t){return yv(this.configuration).stopWatching(t).then(n=>n(this.axios,this.basePath))}streamPackageEvents(t,n,r){return yv(this.configuration).streamPackageEvents(t,n,r).then(o=>o(this.axios,this.basePath))}},JX=class{apiKey;username;password;accessToken;awsv4;basePath;serverIndex;baseOptions;formDataCtor;constructor(t={}){this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.awsv4=t.awsv4,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions={...t.baseOptions,headers:{...t.baseOptions?.headers}},this.formDataCtor=t.formDataCtor}isJsonMime(t){return t!==null&&/^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i.test(t)}};const jk=new nK({defaultOptions:{queries:{retry:!1,throwOnError:!1},mutations:{retry:!1,throwOnError:!1}}}),eZ={staleTime:300*1e3,refetchOnWindowFocus:!1,refetchOnReconnect:!1},jw="publisher:themeMode";function tZ(){if(!(typeof window>"u"))try{const e=window.localStorage.getItem(jw);if(e==="light"||e==="dark"||e==="auto")return e}catch{}}function nZ(e){if(!(typeof window>"u"))try{e===void 0?window.localStorage.removeItem(jw):window.localStorage.setItem(jw,e)}catch{}}function rZ(){return typeof window>"u"||!window.matchMedia?!1:window.matchMedia("(prefers-color-scheme: dark)").matches}Vt.defaults.baseURL||(Vt.defaults.baseURL="IfYouAreSeeingThis_baseURL_IsNotSet");const oL=C.createContext(void 0),oZ=(e,t)=>{const n=`${window.location.protocol}//${window.location.host}/api/v0`,r=Vt.create({baseURL:e||n,withCredentials:!0,timeout:6e5});r.interceptors.request.use(async a=>{const s=await t?.();return a.headers.Authorization=s||"",a});const o=new JX({basePath:n});return{models:new HX(o,n,r),publisher:new QX(o,n,r),environments:new FX(o,n,r),packages:new GX(o,n,r),dashboards:new PX(o,n,r),dataApps:new jX(o,n,r),notebooks:new qX(o,n,r),connections:new OX(o,n,r),databases:new LX(o,n,r),materializations:new BX(o,n,r),watchMode:new ZX(o,n,r)}},aZ=e=>m.jsx(rK,{client:jk,children:m.jsx(iZ,{...e})}),iZ=({children:e,getAccessToken:t,baseURL:n,mutable:r,theme:o})=>{const a=C.useMemo(()=>oZ(n,t),[n,t]),s=n||`${window.location.protocol}//${window.location.host}/api/v0`,l=bI({queryKey:["status"],queryFn:async()=>(await a.publisher.getStatus()).data});l.error&&console.error("Failed to fetch publisher status:",l.error);const c=l.data?.frozenConfig,f=l.data?.theme,u=l.isLoading;let h;l.isLoading||l.error?h=r:c?h=!1:h=r??!0;const y=C.useMemo(()=>[f,o],[f,o]),[v,S]=C.useState(tZ),[x,w]=C.useState(rZ);C.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const A=window.matchMedia("(prefers-color-scheme: dark)"),I=j=>w(j.matches);return A.addEventListener("change",I),()=>A.removeEventListener("change",I)},[]);const b=C.useCallback(A=>{S(A),nZ(A)},[]),k=f?.allowUserToggle??!0,E=k?v:void 0,O=C.useMemo(()=>kX(f?.defaultMode,E,x),[f?.defaultMode,E,x]),$={server:s,getAccessToken:t,apiClients:a,mutable:h,isLoadingStatus:u,instanceTheme:f};return m.jsx(oL.Provider,{value:$,children:m.jsx(EX,{layers:y,mode:O,userChoice:E,setMode:b,allowUserToggle:k,children:e})})},Pr=()=>{const e=C.useContext(oL);if(e===void 0)throw new Error("useServer must be used within a ServerProvider");return e};function Uu(){return Uu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uu.apply(this,arguments)}const sZ=["children","options"],P$=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),A$={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},lZ=["style","script","pre"],cZ=["src","href","data","formAction","srcDoc","action"],uZ=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,dZ=/mailto:/i,fZ=/\n{2,}$/,D$=/^(\s*>[\s\S]*?)(?=\n\n|$)/,pZ=/^ *> ?/gm,hZ=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,mZ=/^ {2,}\n/,gZ=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,j$=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,N$=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,yZ=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,vZ=/^(?:\n *)*\n/,bZ=/\r\n?/g,xZ=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,SZ=/^\[\^([^\]]+)]/,wZ=/\f/g,CZ=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,kZ=/^\s*?\[(x|\s)\]/,I$=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,L$=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,z$=/^([^\n]+)\n *(=|-){3,} *\n/,dS=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,EZ=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,F$=/^<!--[\s\S]*?(?:-->)/,TZ=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,fS=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,MZ=/^\{.*\}$/,RZ=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,OZ=/^<([^ >]+@[^ >]+)>/,$Z=/^<([^ >]+:\/[^ >]+)>/,PZ=/-([a-z])?/gi,_$=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,AZ=/^[^\n]+(?: \n|\n{2,})/,DZ=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,jZ=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,NZ=/^\[([^\]]*)\] ?\[([^\]]*)\]/,IZ=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,LZ=/\t/g,zZ=/(^ *\||\| *$)/g,FZ=/^ *:-+: *$/,_Z=/^ *:-+ *$/,BZ=/^ *-+: *$/,C0=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,k0="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",UZ=RegExp(`^([*_])\\1${C0(1)}${k0}\\1\\1(?!\\1)`),VZ=RegExp(`^([*_])${C0(0)}${k0}\\1(?!\\1)`),HZ=RegExp(`^(==)${C0(0)}${k0}\\1`),WZ=RegExp(`^(~~)${C0(0)}${k0}\\1`),qZ=/^(:[a-zA-Z0-9-_]+:)/,YZ=/^\\([^0-9A-Za-z\s])/,GZ=/\\([^0-9A-Za-z\s])/g,KZ=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,QZ=/^\n+/,XZ=/^([ \t]*)/,ZZ=/(?:^|\n)( *)$/,Nk="(?:\\d+\\.)",Ik="(?:[*+-])";function aL(e){return"( *)("+(e===1?Nk:Ik)+") +"}const iL=aL(1),sL=aL(2);function lL(e){return RegExp("^"+(e===1?iL:sL))}const JZ=lL(1),eJ=lL(2);function cL(e){return RegExp("^"+(e===1?iL:sL)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Nk:Ik)+" )[^\\n]*)*(\\n|$)","gm")}const tJ=cL(1),nJ=cL(2);function uL(e){const t=e===1?Nk:Ik;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const dL=uL(1),fL=uL(2);function B$(e,t){const n=t===1,r=n?dL:fL,o=n?tJ:nJ,a=n?JZ:eJ;return{t:s=>a.test(s),o:hp(function(s,l){const c=ZZ.exec(l.prevCapture);return c&&(l.list||!l.inline&&!l.simple)?r.exec(s=c[1]+s):null}),i:1,u(s,l,c){const f=n?+s[2]:void 0,u=s[0].replace(fZ,`
275
+ `).match(o);let h=!1;return{items:u.map(function(y,v){const S=a.exec(y)[0].length,x=RegExp("^ {1,"+S+"}","gm"),w=y.replace(x,"").replace(a,""),b=v===u.length-1,k=w.indexOf(`
276
+
277
+ `)!==-1||b&&h;h=k;const E=c.inline,O=c.list;let $;c.list=!0,k?(c.inline=!1,$=Vm(w)+`
278
+
279
+ `):(c.inline=!0,$=Vm(w));const A=l($,c);return c.inline=E,c.list=O,A}),ordered:n,start:f}},l:(s,l,c)=>e(s.ordered?"ol":"ul",{key:c.key,start:s.type==="20"?s.start:void 0},s.items.map(function(f,u){return e("li",{key:u},l(f,c))}))}}const rJ=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),oJ=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Vm(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function Kv(e,t){return e.startsWith(t)}function aJ(e,t,n){if(Array.isArray(n)){for(let r=0;r<n.length;r++)if(Kv(e,n[r]))return!0;return!1}return n(e,t)}function tm(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function iJ(e){return BZ.test(e)?"right":FZ.test(e)?"center":_Z.test(e)?"left":null}function U$(e,t,n,r){const o=n.inTable;n.inTable=!0;let a=[[]],s="";function l(){if(!s)return;const c=a[a.length-1];c.push.apply(c,t(s,n)),s=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((c,f,u)=>{c.trim()==="|"&&(l(),r)?f!==0&&f!==u.length-1&&a.push([]):s+=c}),l(),n.inTable=o,a}function sJ(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(zZ,"").split("|").map(iJ):[],o=e[3]?(function(s,l,c){return s.trim().split(`
280
+ `).map(function(f){return U$(f,l,c,!0)})})(e[3],t,n):[],a=U$(e[1],t,n,!!o.length);return n.inline=!1,o.length?{align:r,cells:o,header:a,type:"25"}:{children:a,type:"21"}}function V$(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function hp(e){return e.inline=1,e}function Rc(e){return hp(function(t,n){return n.inline?e.exec(t):null})}function Oc(e){return hp(function(t,n){return n.inline||n.simple?e.exec(t):null})}function Ll(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function vv(e){return hp(function(t){return e.exec(t)})}const lJ=/(javascript|vbscript|data(?!:image)):/i;function cJ(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(lJ.test(t))return null}catch{return null}return e}function Ws(e){return e&&e.replace(GZ,"$1")}function Qv(e,t,n){const r=n.inline||!1,o=n.simple||!1;n.inline=!0,n.simple=!0;const a=e(t,n);return n.inline=r,n.simple=o,a}function uJ(e,t,n){const r=n.inline||!1,o=n.simple||!1;n.inline=!1,n.simple=!0;const a=e(t,n);return n.inline=r,n.simple=o,a}function dJ(e,t,n){const r=n.inline||!1;n.inline=!1;const o=e(t,n);return n.inline=r,o}const pS=(e,t,n)=>({children:Qv(t,e[2],n)});function hS(){return{}}function mS(){return null}function fJ(...e){return e.filter(Boolean).join(" ")}function gS(e,t,n){let r=e;const o=t.split(".");for(;o.length&&(r=r[o[0]],r!==void 0);)o.shift();return r||n}function pJ(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?Uu({},A$,t.namedCodesToUnicode):A$;const n=t.slugify||tm,r=t.sanitizer||cJ,o=t.createElement||C.createElement,a=[D$,j$,N$,t.enforceAtxHeadings?L$:I$,z$,_$,dL,fL],s=[...a,AZ,dS,F$,fS];function l(b,k,...E){const O=gS(t.overrides,b+".props",{});return o((function($,A){const I=gS(A,$);return I?typeof I=="function"||typeof I=="object"&&"render"in I?I:gS(A,$+".component",$):$})(b,t.overrides),Uu({},k,O,{className:fJ(k?.className,O.className)||void 0}),...E)}function c(b){b=b.replace(CZ,"");let k=!1;t.forceInline?k=!0:t.forceBlock||(k=IZ.test(b)===!1);const E=S(v(k?b:Vm(b).replace(QZ,"")+`
281
+
282
+ `,{inline:k}));for(;typeof E[E.length-1]=="string"&&!E[E.length-1].trim();)E.pop();if(t.wrapper===null)return E;const O=t.wrapper||(k?"span":"div");let $;if(E.length>1||t.forceWrapper)$=E;else{if(E.length===1)return $=E[0],typeof $=="string"?l("span",{key:"outer"},$):$;$=null}return o(O,{key:"outer"},$)}function f(b,k){if(!k||!k.trim())return null;const E=k.match(uZ);return E?E.reduce(function(O,$){const A=$.indexOf("=");if(A!==-1){const I=(function(U){return U.indexOf("-")!==-1&&U.match(TZ)===null&&(U=U.replace(PZ,function(T,L){return L.toUpperCase()})),U})($.slice(0,A)).trim(),j=(function(U){const T=U[0];return(T==='"'||T==="'")&&U.length>=2&&U[U.length-1]===T?U.slice(1,-1):U})($.slice(A+1).trim()),_=P$[I]||I;if(_==="ref")return O;const W=O[_]=(function(U,T,L,F){return T==="style"?(function(H){const D=[];let K="",Q=!1,ee=!1,X="";if(!H)return D;for(let ae=0;ae<H.length;ae++){const ue=H[ae];if(ue!=='"'&&ue!=="'"||Q||(ee?ue===X&&(ee=!1,X=""):(ee=!0,X=ue)),ue==="("&&K.endsWith("url")?Q=!0:ue===")"&&Q&&(Q=!1),ue!==";"||ee||Q)K+=ue;else{const he=K.trim();if(he){const ie=he.indexOf(":");if(ie>0){const le=he.slice(0,ie).trim(),se=he.slice(ie+1).trim();D.push([le,se])}}K=""}}const te=K.trim();if(te){const ae=te.indexOf(":");if(ae>0){const ue=te.slice(0,ae).trim(),he=te.slice(ae+1).trim();D.push([ue,he])}}return D})(L).reduce(function(H,[D,K]){return H[D.replace(/(-[a-z])/g,Q=>Q[1].toUpperCase())]=F(K,U,D),H},{}):cZ.indexOf(T)!==-1?F(Ws(L),U,T):(L.match(MZ)&&(L=Ws(L.slice(1,L.length-1))),L==="true"||L!=="false"&&L)})(b,I,j,r);typeof W=="string"&&(dS.test(W)||fS.test(W))&&(O[_]=c(W.trim()))}else $!=="style"&&(O[P$[$]||$]=!0);return O},{}):null}const u=[],h={},y={0:{t:[">"],o:Ll(D$),i:1,u(b,k,E){const[,O,$]=b[0].replace(pZ,"").match(hZ);return{alert:O,children:k($,E)}},l(b,k,E){const O={key:E.key};return b.alert&&(O.className="markdown-alert-"+n(b.alert.toLowerCase(),tm),b.children.unshift({attrs:{},children:[{type:"27",text:b.alert}],noInnerParse:!0,type:"11",tag:"header"})),l("blockquote",O,k(b.children,E))}},1:{o:vv(mZ),i:1,u:hS,l:(b,k,E)=>l("br",{key:E.key})},2:{t:b=>{const k=b[0];return k==="-"||k==="*"||k==="_"},o:Ll(gZ),i:1,u:hS,l:(b,k,E)=>l("hr",{key:E.key})},3:{t:[" "],o:Ll(N$),i:0,u:b=>({lang:void 0,text:Ws(Vm(b[0].replace(/^ {4}/gm,"")))}),l:(b,k,E)=>l("pre",{key:E.key},l("code",Uu({},b.attrs,{className:b.lang?"lang-"+b.lang:""}),b.text))},4:{t:["```","~~~"],o:Ll(j$),i:0,u:b=>({attrs:f("code",b[3]||""),lang:b[2]||void 0,text:b[4],type:"3"})},5:{t:["`"],o:Oc(yZ),i:3,u:b=>({text:Ws(b[2])}),l:(b,k,E)=>l("code",{key:E.key},b.text)},6:{t:["[^"],o:Ll(xZ),i:0,u:b=>(u.push({footnote:b[2],identifier:b[1]}),{}),l:mS},7:{t:["[^"],o:Rc(SZ),i:1,u:b=>({target:"#"+n(b[1],tm),text:b[1]}),l:(b,k,E)=>l("a",{key:E.key,href:r(b.target,"a","href")},l("sup",{key:E.key},b.text))},8:{t:["[ ]","[x]"],o:Rc(kZ),i:1,u:b=>({completed:b[1].toLowerCase()==="x"}),l:(b,k,E)=>l("input",{checked:b.completed,key:E.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Ll(t.enforceAtxHeadings?L$:I$),i:1,u:(b,k,E)=>({children:Qv(k,b[2],E),id:n(b[2],tm),level:b[1].length}),l:(b,k,E)=>l("h"+b.level,{id:b.id,key:E.key},k(b.children,E))},10:{o:Ll(z$),i:0,u:(b,k,E)=>({children:Qv(k,b[1],E),level:b[2]==="="?1:2,type:"9"})},11:{t:["<"],o:vv(dS),i:1,u(b,k,E){const[,O]=b[3].match(XZ),$=RegExp("^"+O,"gm"),A=b[3].replace($,""),I=(j=A,s.some(L=>L.test(j))?dJ:Qv);var j;const _=b[1].toLowerCase(),W=lZ.indexOf(_)!==-1,U=(W?_:b[1]).trim(),T={attrs:f(U,b[2]),noInnerParse:W,tag:U};if(E.inAnchor=E.inAnchor||_==="a",W)T.text=b[3];else{const L=E.inHTML;E.inHTML=!0,T.children=I(k,A,E),E.inHTML=L}return E.inAnchor=!1,T},l:(b,k,E)=>l(b.tag,Uu({key:E.key},b.attrs),b.text||(b.children?k(b.children,E):""))},13:{t:["<"],o:vv(fS),i:1,u(b){const k=b[1].trim();return{attrs:f(k,b[2]||""),tag:k}},l:(b,k,E)=>l(b.tag,Uu({},b.attrs,{key:E.key}))},12:{t:["<!--"],o:vv(F$),i:1,u:()=>({}),l:mS},14:{t:["!["],o:Oc(oJ),i:1,u:b=>({alt:Ws(b[1]),target:Ws(b[2]),title:Ws(b[3])}),l:(b,k,E)=>l("img",{key:E.key,alt:b.alt||void 0,title:b.title||void 0,src:r(b.target,"img","src")})},15:{t:["["],o:Rc(rJ),i:3,u:(b,k,E)=>({children:uJ(k,b[1],E),target:Ws(b[2]),title:Ws(b[3])}),l:(b,k,E)=>l("a",{key:E.key,href:r(b.target,"a","href"),title:b.title},k(b.children,E))},16:{t:["<"],o:Rc($Z),i:0,u:b=>({children:[{text:b[1],type:"27"}],target:b[1],type:"15"})},17:{t:(b,k)=>!k.inAnchor&&!t.disableAutoLink&&(Kv(b,"http://")||Kv(b,"https://")),o:Rc(RZ),i:0,u:b=>({children:[{text:b[1],type:"27"}],target:b[1],title:void 0,type:"15"})},18:{t:["<"],o:Rc(OZ),i:0,u(b){let k=b[1],E=b[1];return dZ.test(E)||(E="mailto:"+E),{children:[{text:k.replace("mailto:",""),type:"27"}],target:E,type:"15"}}},20:B$(l,1),33:B$(l,2),19:{o:Ll(vZ),i:3,u:hS,l:()=>`
283
+ `},21:{o:hp(function(b,k){if(k.inline||k.simple||k.inHTML&&b.indexOf(`
284
+
285
+ `)===-1&&k.prevCapture.indexOf(`
286
+
287
+ `)===-1)return null;let E="";b.split(`
288
+ `).every($=>($+=`
289
+ `,!a.some(A=>A.test($))&&(E+=$,!!$.trim())));const O=Vm(E);return O===""?null:[E,,O]}),i:3,u:pS,l:(b,k,E)=>l("p",{key:E.key},k(b.children,E))},22:{t:["["],o:Rc(DZ),i:0,u:b=>(h[b[1]]={target:b[2],title:b[4]},{}),l:mS},23:{t:["!["],o:Oc(jZ),i:0,u:b=>({alt:b[1]?Ws(b[1]):void 0,ref:b[2]}),l:(b,k,E)=>h[b.ref]?l("img",{key:E.key,alt:b.alt,src:r(h[b.ref].target,"img","src"),title:h[b.ref].title}):null},24:{t:b=>b[0]==="["&&b.indexOf("](")===-1,o:Rc(NZ),i:0,u:(b,k,E)=>({children:k(b[1],E),fallbackChildren:b[0],ref:b[2]}),l:(b,k,E)=>h[b.ref]?l("a",{key:E.key,href:r(h[b.ref].target,"a","href"),title:h[b.ref].title},k(b.children,E)):l("span",{key:E.key},b.fallbackChildren)},25:{t:["|"],o:Ll(_$),i:1,u:sJ,l(b,k,E){const O=b;return l("table",{key:E.key},l("thead",null,l("tr",null,O.header.map(function($,A){return l("th",{key:A,style:V$(O,A)},k($,E))}))),l("tbody",null,O.cells.map(function($,A){return l("tr",{key:A},$.map(function(I,j){return l("td",{key:j,style:V$(O,j)},k(I,E))}))})))}},27:{o:hp(function(b,k){let E;return Kv(b,":")&&(E=qZ.exec(b)),E||KZ.exec(b)}),i:4,u(b){const k=b[0];return{text:k.indexOf("&")===-1?k:k.replace(EZ,(E,O)=>t.namedCodesToUnicode[O]||E)}},l:b=>b.text},28:{t:["**","__"],o:Oc(UZ),i:2,u:(b,k,E)=>({children:k(b[2],E)}),l:(b,k,E)=>l("strong",{key:E.key},k(b.children,E))},29:{t:b=>{const k=b[0];return(k==="*"||k==="_")&&b[1]!==k},o:Oc(VZ),i:3,u:(b,k,E)=>({children:k(b[2],E)}),l:(b,k,E)=>l("em",{key:E.key},k(b.children,E))},30:{t:["\\"],o:Oc(YZ),i:1,u:b=>({text:b[1],type:"27"})},31:{t:["=="],o:Oc(HZ),i:3,u:pS,l:(b,k,E)=>l("mark",{key:E.key},k(b.children,E))},32:{t:["~~"],o:Oc(WZ),i:3,u:pS,l:(b,k,E)=>l("del",{key:E.key},k(b.children,E))}};t.disableParsingRawHTML===!0&&(delete y[11],delete y[13]);const v=(function(b){var k=Object.keys(b);function E(O,$){var A=[];if($.prevCapture=$.prevCapture||"",O.trim())for(;O;)for(var I=0;I<k.length;){var j=k[I],_=b[j];if(!_.t||aJ(O,$,_.t)){var W=_.o(O,$);if(W&&W[0]){O=O.substring(W[0].length);var U=_.u(W,E,$);$.prevCapture+=W[0],U.type||(U.type=j),A.push(U);break}I++}else I++}return $.prevCapture="",A}return k.sort(function(O,$){return b[O].i-b[$].i||(O<$?-1:1)}),function(O,$){return E((function(A){return A.replace(bZ,`
290
+ `).replace(wZ,"").replace(LZ," ")})(O),$)}})(y),S=(x=(function(b,k){return function(E,O,$){const A=b[E.type].l;return k?k(()=>A(E,O,$),E,O,$):A(E,O,$)}})(y,t.renderRule),function b(k,E={}){if(Array.isArray(k)){const O=E.key,$=[];let A=!1;for(let I=0;I<k.length;I++){E.key=I;const j=b(k[I],E),_=typeof j=="string";_&&A?$[$.length-1]+=j:j!==null&&$.push(j),A=_}return E.key=O,$}return x(k,b,E)});var x;const w=c(e);return u.length?l("div",null,w,l("footer",{key:"footer"},u.map(function(b){return l("div",{id:n(b.identifier,tm),key:b.identifier},b.identifier,S(v(b.footnote,{inline:!0})))}))):w}const hJ=e=>{let{children:t="",options:n}=e,r=(function(o,a){if(o==null)return{};var s,l,c={},f=Object.keys(o);for(l=0;l<f.length;l++)a.indexOf(s=f[l])>=0||(c[s]=o[s]);return c})(e,sZ);return C.cloneElement(pJ(t,n),r)},mJ="[A-Za-z_][A-Za-z0-9_]*",Rve=e=>e.split(/\r\n|\r|\n/),xb=e=>new RegExp(`^${mJ}$`).test(e),gJ=new Set("accept aggregate calculate calculation connection declare dimension drill except given group_by grouped_by having index join_cross join_many join_one limit measure nest order_by partition_by primary_key query rename run sample select timezone top type view where".split(" ")),yJ=new Set("all and as asc avg boolean by case cast compose count date day desc distinct else end exclude export extend false filter for from full has hour import in include inner internal is json left like max min minute month not now null number on or pick private public quarter right second source sql string sum table then this timestamp timestamptz to true virtual week when with year".split(" ")),Ug=e=>xb(e)&&!yJ.has(e.toLowerCase()),Ove=e=>Ug(e)&&!gJ.has(e.toLowerCase()),$ve=e=>xb(e)&&!Ug(e)?`\`${e}\``:e;function H$(e){const t=/^##\|?(?:[ \t\r\n]|$)/.exec(e);if(!t)return!1;const n=/[0-9A-Za-z_\u00C0-\u024F\u1E00-\u1EFF]+/y;let r=0,o="";for(let a=t[0].length;a<e.length;a++){const s=e[a];if(/\s/.test(s))continue;if(e.startsWith("-...",a)){a+=3,o="";continue}n.lastIndex=a;const l=n.exec(e)?.[0];if(s==='"'||s==="'"){const c=e.startsWith(s.repeat(3),a)?s.repeat(3):s;for(a+=c.length;a<e.length&&!e.startsWith(c,a);)a+=e[a]==="\\"?2:1;a+=c.length-1}else if(s==="`"){let c=a+1;for(;c<e.length&&e[c]!=="`"&&e[c]!==`
291
+ `;)c+=e[c]==="\\"?2:1;const f=e.slice(a+1,c);if(r===0&&f==="artifact"&&!/[=.-]/.test(o))return!0;a=c}else if(s==="#"){const c=e.indexOf(`
292
+ `,a);if(c<0)return!1;a=c;continue}else if(s==="{"||s==="[")r++;else if(s==="}"||s==="]")r--;else if(l){if(r===0&&l==="artifact"&&!/[=.-]/.test(o))return!0;a+=l.length-1}o=s}return!1}function W$(e){const t=e.trim().split(/[ \t\r]/,1)[0],n=/^(#{1,2})(\|?)(?:\(markdown\)|<markdown>|\[markdown\]|\{markdown\})$/.exec(t);return n?{level:n[1].length,block:n[2]==="|"}:void 0}function vJ(e,t,n){const r=/^[ \t]*/.exec(e)[0].length;if(t!==void 0&&r!==t)return!1;const o=e.slice(r);return o.startsWith(n)&&(n!=="|#"||o.charAt(2)!=="#")}function E0(e,t){const n=new Map;e.forEach((a,s)=>{const l=/^[ \t]*/.exec(a)?.[0].length??0;for(const c of["|##","|#"])if(vJ(a,l,c)){const f=`${l}${c}`,u=n.get(f);u?u.push(s):n.set(f,[s]);break}});const r=new Map,o=[];for(let a=0;a<e.length;a++){if(t?.(a))continue;const s=/^([ \t]*)(#{1,2})\|/.exec(e[a]);if(!s)continue;const l=`${s[1].length}${s[2]==="#"?"|#":"|##"}`,c=n.get(l)??[];let f=r.get(l)??0;for(;f<c.length&&c[f]<=a;)f++;r.set(l,f),f<c.length&&(o.push([a,c[f]]),a=c[f])}return o}function pL(e){const t=new Set;for(const[n,r]of E0(e))for(let o=n;o<=r;o++)t.add(o);return t}function Pve(e,t){const n=new Set,r=new Set;for(const[o,a]of E0(e,t)){const s=W$(e[o])?.level===1;for(let l=o;l<=a;l++)r.add(l),s&&n.add(l)}return e.forEach((o,a)=>{if(r.has(a)||t?.(a))return;const s=W$(o);s?.level===1&&!s.block&&n.add(a)}),n}function bJ(e){const t=pL(e),n=e.findIndex((o,a)=>!t.has(a)&&!/^\s*##\|/.test(o)&&H$(o.trim())),r=E0(e).find(([o,a])=>H$(e.slice(o,a).join(`
293
+ `).trim()));return r&&(n<0||r[0]<n)?{from:r[0],to:r[1],block:!0,text:e.slice(r[0],r[1]).join(`
294
+ `)}:n<0?void 0:{from:n,to:n,block:!1,text:e[n]}}const Ave=e=>/^\s*##(?:\|\s*|[ \t]*)artifact\b/.test(e),Dve="The `artifact` property is not the first on its tag, so the builder cannot rewrite the tag without risking the properties before it. Move `artifact { … }` first on the tag to edit this file here.",xJ=e=>bJ(e)?.from??-1,jve=e=>e.replace(/^\s*##\|?\s*/,"# "),SJ=/^##"([ \t]|$)/;function Nve(e){const t=xJ(e),n=pL(e),r=h=>t<0||h<t,o=h=>t>=0&&h>t,a=[];e.forEach((h,y)=>{!n.has(y)&&SJ.test(h.trim())&&a.push({at:y,text:h.trim().slice(3).trim(),block:!1})});for(const[h,y]of E0(e)){if(!/^[ \t]*##\|"([ \t]|$)/.test(e[h]))continue;const v=[e[h].trim().slice(4),...e.slice(h+1,y)].map(S=>S.trim()).join(`
295
+ `).trim();v.length>0&&a.push({at:h,text:v,block:!0})}a.sort((h,y)=>h.at-y.at);const s=a.filter(h=>r(h.at)),l=a.filter(h=>o(h.at)),c=s.some(h=>h.text.trim())?s:l,f=c.map(h=>h.text).join(`
296
+ `),u=h=>h.filter(y=>!y.block).map(y=>y.at);return{read:u(c),blankAbove:c===l?u(s):[],below:u(l),belowBlock:l.some(h=>h.block),inBlock:c.some(h=>h.block),...f.trim()?{text:f}:{}}}const wJ=/^[A-Za-z_][A-Za-z0-9_]*$/;function Ive(e){const t=e.trim(),n=t.split(/[ \t\r]/,1)[0],r=/^##\|(?:\((markdown|text)\)|<(markdown|text)>|\[(markdown|text)\]|\{(markdown|text)\})$/.exec(n);if(!r)return;const o=t.slice(n.length).trim();return{route:r[1]??r[2]??r[3]??r[4],rest:o,...wJ.test(o)?{name:o}:{}}}function CJ(e){const t=(e??"").split("->").map(a=>a.trim());if(t.length!==2)return;const n=t[1].indexOf("+"),r=n<0?t[1]:t[1].slice(0,n).trim(),o=n<0?void 0:t[1].slice(n).trim();return{source:t[0],view:r,...o===void 0?{}:{refinement:o}}}const Lve=e=>/^`([A-Za-z_][A-Za-z0-9_]*)`$/.test(e)?e.slice(1,-1):e,kJ=new Set([401,403,404]);function hL(e){const t=e,n=t?.response?.status??t?.status;return typeof n!="number"||!kJ.has(n)}var Pu={},vs={},q$;function Pp(){if(q$)return vs;q$=1,Object.defineProperty(vs,"__esModule",{value:!0}),vs.isChainOp=e,vs.isStringCondition=t,vs.isStringFilter=n,vs.isBooleanFilter=r,vs.isNumberFilter=o,vs.isTemporalFilter=a,vs.isFilterExpression=s,vs.isFilterable=l;function e(c){return["and","or",","].includes(c)}function t(c){return["starts","ends","contains","="].includes(c.operator)}function n(c){return typeof c=="object"&&c!==null&&"operator"in c&&typeof c.operator=="string"&&["starts","ends","contains","=","~","null","none","empty","and","or",",","()"].includes(c.operator)}function r(c){return typeof c=="object"&&c!==null&&"operator"in c&&typeof c.operator=="string"&&["null","none","true","false","=false","=true"].includes(c.operator)}function o(c){return typeof c=="object"&&c!==null&&"operator"in c&&typeof c.operator=="string"&&["range","<=",">=","!=","=",">","<","and","or","()","null","none"].includes(c.operator)}function a(c){return typeof c=="object"&&c!==null&&"operator"in c&&typeof c.operator=="string"&&["literal","before","after","to","for","in","and","or","in_last","this","last","next","()","null","none"].includes(c.operator)}function s(c){return typeof c=="object"&&c!==null&&"operator"in c}function l(c){return["string","number","boolean","timestamp","timestamptz","date"].includes(c)}return vs}var nm={},Y$;function EJ(){return Y$||(Y$=1,Object.defineProperty(nm,"__esModule",{value:!0}),nm.BooleanFilterExpression=void 0,nm.BooleanFilterExpression={parse(e){var t;if(e.match(/^\s*$/))return{parsed:null,log:[]};const n={parsed:null,log:[]};let r=e.toLowerCase().trim().replace(/\s\s+/," "),o=!1;if(r.startsWith("not ")&&(o=!0,r=r.slice(4)),r==="true")n.parsed={operator:"true"};else if(r==="=true")n.parsed={operator:"=true"};else if(r==="false")n.parsed={operator:"false"};else if(r==="=false")n.parsed={operator:"=false"};else if(r==="null")n.parsed={operator:"null"};else if(r==="none")n.parsed={operator:"none"};else{const a=e.match(/[^\s]/),s=a&&(t=a.index)!==null&&t!==void 0?t:0;n.log=[{message:`Illegal boolean filter '${r}'. Must be one of true,=true,false,=false,null,none`,severity:"error",startIndex:s,endIndex:s+e.length-1}]}return o&&n.parsed&&(n.parsed.not=!0),n},unparse(e){return e===null?"":(e.not?"not ":"")+e.operator}}),nm}var yS={},la={},G$;function T0(){if(G$)return la;G$=1,Object.defineProperty(la,"__esModule",{value:!0}),la.maybeNot=t,la.unescape=n,la.escape=r,la.matchOp=a,la.conjoin=l,la.joinNumbers=c,la.mkRange=f,la.mkValues=u,la.numNot=h,la.temporalNot=y,la.joinTemporal=v,la.timeLiteral=S,la.mkUnits=x;const e=Pp();function t(w){const[b,k]=w;return b&&k&&(0,e.isStringFilter)(k)?{...k,not:!0}:k}function n(w){return w.replace(/\\(.)/g,"$1")}function r(w){const b=w.toLowerCase();return b==="null"||b==="empty"||b==="none"?"\\"+w:w.replace(/([,; |()\\%_-])/g,"\\$1")}function o(w){let b=!1,k=!1,E=0,O=!1;const $=w.length;for(let A=0;A<$;A+=1){const I=w[A];if(I===" "||I===" "){E+=1;continue}E=0,I==="%"?(O=!0,A===0&&(b=!0),k=!0):(k=!1,I==="\\"?A+=1:I==="_"&&(O=!0))}return{hasLike:O,percentEnd:k&&$>1,percentStart:b&&$>1,endSpace:E}}function a(w){let b=w.trimStart();const{hasLike:k,percentEnd:E,percentStart:O,endSpace:$}=o(b);if($>0&&(b=b.slice(0,-$)),k){if(O&&E){const A=b.slice(1,-1);if(!o(A).hasLike&&A.length>0)return{operator:"contains",values:[n(A)]}}else if(E){const A=b.slice(0,-1);if(!o(A).hasLike)return{operator:"starts",values:[n(A)]}}else if(O){const A=b.slice(1);if(!o(A).hasLike)return{operator:"ends",values:[n(A)]}}return{operator:"~",escaped_values:[b]}}return b.toLowerCase()==="null"?{operator:"null"}:b.toLowerCase()==="empty"?{operator:"empty"}:b.toLowerCase()==="none"?{operator:"none"}:{operator:"=",values:[n(b)]}}function s(w,b){var k,E;return w.operator===b.operator&&((k=w.not)!==null&&k!==void 0?k:!1)===((E=b.not)!==null&&E!==void 0?E:!1)}function l(w,b,k){if(b=b.toLowerCase(),(0,e.isStringFilter)(w)&&(0,e.isStringFilter)(k)){if(b===","){if(w.operator==="~"&&s(w,k))return{...w,escaped_values:[...w.escaped_values,...k.escaped_values]};if((0,e.isStringCondition)(w)&&s(w,k))return{...w,values:[...w.values,...k.values]}}const E=b===","?",":b==="|"?"or":b===";"?"and":void 0;if(E)return w.operator===E?{...w,members:[...w.members,k]}:{operator:E,members:[w,k]}}return null}function c(w,b,k){if(b=b.toLowerCase(),(0,e.isNumberFilter)(w)&&(0,e.isNumberFilter)(k)){if(b==="or"&&w.operator==="="&&s(w,k)){const E={operator:"=",values:[...w.values,...k.values]};return w.not&&(E.not=!0),E}if(b==="and"||b==="or")return w.operator===b?{...w,members:[...w.members,k]}:{operator:b,members:[w,k]}}return null}function f(w,b,k,E){return{operator:"range",startValue:b,startOperator:w==="("?">":">=",endValue:k,endOperator:E===")"?"<":"<="}}function u(w,b){return{values:[w,...b]}}function h(w,b){return(0,e.isNumberFilter)(w)&&b?w.operator==="="?{operator:"!=",values:w.values}:w.operator==="!="?{operator:"=",values:w.values}:{...w,not:!0}:w}function y(w,b){if((0,e.isTemporalFilter)(w)&&b){if("not"in w){const k={...w};return w.not?delete k.not:k.not=!0,k}return{...w,not:!0}}return w}function v(w,b,k){return b=b.toLowerCase(),(0,e.isTemporalFilter)(w)&&(0,e.isTemporalFilter)(k)&&(b==="and"||b==="or")?w.operator===b?{...w,members:[...w.members,k]}:{operator:b,members:[w,k]}:null}function S(w,b){const k={moment:"literal",literal:w};return b&&(k.units=b),k}function x(w){switch(w.toLowerCase()){case"second":case"seconds":return"second";case"minute":case"minutes":return"minute";case"hour":case"hours":return"hour";case"day":case"days":return"day";case"week":case"weeks":return"week";case"month":case"months":return"month";case"quarter":case"quarters":return"quarter";case"year":case"years":return"year"}}return la}var vS,K$;function TJ(){if(K$)return vS;K$=1;const{numNot:e,mkRange:t,joinNumbers:n,mkValues:r}=T0();function o(c,f){function u(){this.constructor=c}u.prototype=f.prototype,c.prototype=new u}function a(c,f,u,h){var y=Error.call(this,c);return Object.setPrototypeOf&&Object.setPrototypeOf(y,a.prototype),y.expected=f,y.found=u,y.location=h,y.name="SyntaxError",y}o(a,Error);function s(c,f,u){return u=u||" ",c.length>f?c:(f-=c.length,u+=u.repeat(f),c+u.slice(0,f))}a.prototype.format=function(c){var f="Error: "+this.message;if(this.location){var u=null,h;for(h=0;h<c.length;h++)if(c[h].source===this.location.source){u=c[h].text.split(/\r\n|\n|\r/g);break}var y=this.location.start,v=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(y):y,S=this.location.source+":"+v.line+":"+v.column;if(u){var x=this.location.end,w=s("",v.line.toString().length," "),b=u[y.line-1],k=y.line===x.line?x.column:b.length+1,E=k-y.column||1;f+=`
297
+ --> `+S+`
298
+ `+w+` |
299
+ `+v.line+" | "+b+`
300
+ `+w+" | "+s("",y.column-1," ")+s("",E,"^")}else f+=`
301
+ at `+S}return f},a.buildMessage=function(c,f){var u={literal:function(b){return'"'+y(b.text)+'"'},class:function(b){var k=b.parts.map(function(E){return Array.isArray(E)?v(E[0])+"-"+v(E[1]):v(E)});return"["+(b.inverted?"^":"")+k.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(b){return b.description}};function h(b){return b.charCodeAt(0).toString(16).toUpperCase()}function y(b){return b.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(k){return"\\x0"+h(k)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(k){return"\\x"+h(k)})}function v(b){return b.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(k){return"\\x0"+h(k)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(k){return"\\x"+h(k)})}function S(b){return u[b.type](b)}function x(b){var k=b.map(S),E,O;if(k.sort(),k.length>0){for(E=1,O=1;E<k.length;E++)k[E-1]!==k[E]&&(k[O]=k[E],O++);k.length=O}switch(k.length){case 1:return k[0];case 2:return k[0]+" or "+k[1];default:return k.slice(0,-1).join(", ")+", or "+k[k.length-1]}}function w(b){return b?'"'+y(b)+'"':"end of input"}return"Expected "+x(c)+" but "+w(f)+" found."};function l(c,f){f=f!==void 0?f:{};var u={},h=f.grammarSource,y={numberFilter:kt},v=kt,S="(",x=")",w="!=",b=",",k="=",E="<=",O=">=",$="[",A="]",I="-",j=".",_="not",W="null",U="none",T="and",L="or",F="to",H=/^[<>]/,D=/^[0-9]/,K=/^[Ee]/,Q=/^[+\-]/,ee=/^[a-zA-Z]/,X=/^[ \t]/,te=Fn("(",!1),ae=Fn(")",!1),ue=Fn("!=",!1),he=Fn(",",!1),ie=Fn("=",!1),le=Fn("<=",!1),se=Fn(">=",!1),pe=on(["<",">"],!1,!1),ne=Fn("[",!1),me=Fn("]",!1),xe=Fn("-",!1),Se=on([["0","9"]],!1,!1),ce=Fn(".",!1),Ee=on(["E","e"],!1,!1),Ge=on(["+","-"],!1,!1),Te=Fn("not",!0),je=Fn("null",!0),oe=Fn("none",!0),lt=Fn("and",!0),Ie=Fn("or",!0),et=Fn("to",!0),mt=on([["a","z"],["A","Z"]],!1,!1),Wt=ye("whitespace"),zt=on([" "," "],!1,!1),tt=function(ve,Re){return Re.reduce((it,[,xt,,Tt])=>n(it,xt,Tt),ve)},Je=function(ve,Re){return e(Re,ve)},ct=function(ve){return ve},Le=function(){return{operator:"null"}},ge=function(){return{operator:"none"}},qe=function(ve){return{operator:"()",expr:ve}},De=function(ve,Re,it,xt){return t(ve,Re,it,xt)},wt=function(ve,Re){return{operator:"!=",...r(ve,Re.map(it=>it[3]))}},Ct=function(ve,Re){return{operator:"=",...r(ve,Re.map(it=>it[3]))}},yt=function(ve,Re){return{operator:ve,values:[Re]}},st=function(ve,Re){return{operator:"=",...r(ve,Re.map(it=>it[3]))}},jt=function(){return"["},qt=function(){return"("},mn=function(){return"]"},$n=function(){return")"},_n=function(ve){return ve},Un=function(){return"or"},Jt=function(){return"and"},Dn=function(){return"not"},Ce=f.peg$currPos|0,Vn=[{line:1,column:1}],Mn=Ce,en=f.peg$maxFailExpected||[],$t=f.peg$silentFails|0,Fr;if(f.startRule){if(!(f.startRule in y))throw new Error(`Can't start parsing from rule "`+f.startRule+'".');v=y[f.startRule]}function Fn(ve,Re){return{type:"literal",text:ve,ignoreCase:Re}}function on(ve,Re,it){return{type:"class",parts:ve,inverted:Re,ignoreCase:it}}function Ln(){return{type:"end"}}function ye(ve){return{type:"other",description:ve}}function Me(ve){var Re=Vn[ve],it;if(Re)return Re;if(ve>=Vn.length)it=Vn.length-1;else for(it=ve;!Vn[--it];);for(Re=Vn[it],Re={line:Re.line,column:Re.column};it<ve;)c.charCodeAt(it)===10?(Re.line++,Re.column=1):Re.column++,it++;return Vn[ve]=Re,Re}function ze(ve,Re,it){var xt=Me(ve),Tt=Me(Re),Mt={source:h,start:{offset:ve,line:xt.line,column:xt.column},end:{offset:Re,line:Tt.line,column:Tt.column}};return Mt}function Ve(ve){Ce<Mn||(Ce>Mn&&(Mn=Ce,en=[]),en.push(ve))}function rt(ve,Re,it){return new a(a.buildMessage(ve,Re),ve,Re,it)}function kt(){var ve,Re,it,xt,Tt,Mt,Dt,Zt;if(ve=Ce,Re=bt(),Re!==u){for(it=[],xt=Ce,Tt=nn(),Mt=Ft(),Mt!==u?(Dt=nn(),Zt=bt(),Zt!==u?(Tt=[Tt,Mt,Dt,Zt],xt=Tt):(Ce=xt,xt=u)):(Ce=xt,xt=u);xt!==u;)it.push(xt),xt=Ce,Tt=nn(),Mt=Ft(),Mt!==u?(Dt=nn(),Zt=bt(),Zt!==u?(Tt=[Tt,Mt,Dt,Zt],xt=Tt):(Ce=xt,xt=u)):(Ce=xt,xt=u);ve=tt(Re,it)}else Ce=ve,ve=u;return ve}function bt(){var ve,Re,it;return ve=Ce,Re=de(),Re!==u?(nn(),it=Et(),it!==u?ve=Je(Re,it):(Ce=ve,ve=u)):(Ce=ve,ve=u),ve===u&&(ve=Ce,Re=Et(),Re!==u&&(Re=ct(Re)),ve=Re),ve}function Et(){var ve,Re,it,xt,Tt,Mt,Dt,Zt,bn,nr;if(ve=Ce,Re=fe(),Re!==u&&(Re=Le()),ve=Re,ve===u&&(ve=Ce,Re=Fe(),Re!==u&&(Re=ge()),ve=Re,ve===u&&(ve=Ce,c.charCodeAt(Ce)===40?(Re=S,Ce++):(Re=u,$t===0&&Ve(te)),Re!==u?(it=nn(),xt=kt(),xt!==u?(Tt=nn(),c.charCodeAt(Ce)===41?(Mt=x,Ce++):(Mt=u,$t===0&&Ve(ae)),Mt!==u?ve=qe(xt):(Ce=ve,ve=u)):(Ce=ve,ve=u)):(Ce=ve,ve=u),ve===u&&(ve=Ce,Re=Pt(),Re!==u?(it=nn(),xt=At(),xt!==u?(Tt=nn(),Mt=Ot(),Mt!==u?(Dt=nn(),Zt=At(),Zt!==u?(bn=nn(),nr=Kt(),nr!==u?ve=De(Re,xt,Zt,nr):(Ce=ve,ve=u)):(Ce=ve,ve=u)):(Ce=ve,ve=u)):(Ce=ve,ve=u)):(Ce=ve,ve=u),ve===u)))){if(ve=Ce,c.substr(Ce,2)===w?(Re=w,Ce+=2):(Re=u,$t===0&&Ve(ue)),Re!==u)if(it=nn(),xt=At(),xt!==u){for(Tt=[],Mt=Ce,Dt=nn(),c.charCodeAt(Ce)===44?(Zt=b,Ce++):(Zt=u,$t===0&&Ve(he)),Zt!==u?(bn=nn(),nr=At(),nr!==u?(Dt=[Dt,Zt,bn,nr],Mt=Dt):(Ce=Mt,Mt=u)):(Ce=Mt,Mt=u);Mt!==u;)Tt.push(Mt),Mt=Ce,Dt=nn(),c.charCodeAt(Ce)===44?(Zt=b,Ce++):(Zt=u,$t===0&&Ve(he)),Zt!==u?(bn=nn(),nr=At(),nr!==u?(Dt=[Dt,Zt,bn,nr],Mt=Dt):(Ce=Mt,Mt=u)):(Ce=Mt,Mt=u);ve=wt(xt,Tt)}else Ce=ve,ve=u;else Ce=ve,ve=u;if(ve===u){if(ve=Ce,c.charCodeAt(Ce)===61?(Re=k,Ce++):(Re=u,$t===0&&Ve(ie)),Re!==u)if(it=nn(),xt=At(),xt!==u){for(Tt=[],Mt=Ce,Dt=nn(),c.charCodeAt(Ce)===44?(Zt=b,Ce++):(Zt=u,$t===0&&Ve(he)),Zt!==u?(bn=nn(),nr=At(),nr!==u?(Dt=[Dt,Zt,bn,nr],Mt=Dt):(Ce=Mt,Mt=u)):(Ce=Mt,Mt=u);Mt!==u;)Tt.push(Mt),Mt=Ce,Dt=nn(),c.charCodeAt(Ce)===44?(Zt=b,Ce++):(Zt=u,$t===0&&Ve(he)),Zt!==u?(bn=nn(),nr=At(),nr!==u?(Dt=[Dt,Zt,bn,nr],Mt=Dt):(Ce=Mt,Mt=u)):(Ce=Mt,Mt=u);ve=Ct(xt,Tt)}else Ce=ve,ve=u;else Ce=ve,ve=u;if(ve===u&&(ve=Ce,Re=Ce,c.substr(Ce,2)===E?(it=E,Ce+=2):(it=u,$t===0&&Ve(le)),it===u&&(c.substr(Ce,2)===O?(it=O,Ce+=2):(it=u,$t===0&&Ve(se)),it===u&&(it=c.charAt(Ce),H.test(it)?Ce++:(it=u,$t===0&&Ve(pe)))),it!==u?Re=c.substring(Re,Ce):Re=it,Re!==u?(it=nn(),xt=At(),xt!==u?ve=yt(Re,xt):(Ce=ve,ve=u)):(Ce=ve,ve=u),ve===u))if(ve=Ce,Re=At(),Re!==u){for(it=[],xt=Ce,Tt=nn(),c.charCodeAt(Ce)===44?(Mt=b,Ce++):(Mt=u,$t===0&&Ve(he)),Mt!==u?(Dt=nn(),Zt=At(),Zt!==u?(Tt=[Tt,Mt,Dt,Zt],xt=Tt):(Ce=xt,xt=u)):(Ce=xt,xt=u);xt!==u;)it.push(xt),xt=Ce,Tt=nn(),c.charCodeAt(Ce)===44?(Mt=b,Ce++):(Mt=u,$t===0&&Ve(he)),Mt!==u?(Dt=nn(),Zt=At(),Zt!==u?(Tt=[Tt,Mt,Dt,Zt],xt=Tt):(Ce=xt,xt=u)):(Ce=xt,xt=u);ve=st(Re,it)}else Ce=ve,ve=u}}return ve}function Pt(){var ve,Re;return ve=Ce,c.charCodeAt(Ce)===91?(Re=$,Ce++):(Re=u,$t===0&&Ve(ne)),Re!==u&&(Re=jt()),ve=Re,ve===u&&(ve=Ce,c.charCodeAt(Ce)===40?(Re=S,Ce++):(Re=u,$t===0&&Ve(te)),Re!==u&&(Re=qt()),ve=Re),ve}function Kt(){var ve,Re;return ve=Ce,c.charCodeAt(Ce)===93?(Re=A,Ce++):(Re=u,$t===0&&Ve(me)),Re!==u&&(Re=mn()),ve=Re,ve===u&&(ve=Ce,c.charCodeAt(Ce)===41?(Re=x,Ce++):(Re=u,$t===0&&Ve(ae)),Re!==u&&(Re=$n()),ve=Re),ve}function At(){var ve,Re,it,xt,Tt,Mt,Dt,Zt,bn,nr;if(ve=Ce,Re=Ce,it=Ce,c.charCodeAt(Ce)===45?(xt=I,Ce++):(xt=u,$t===0&&Ve(xe)),xt===u&&(xt=null),Tt=Ce,Mt=[],Dt=c.charAt(Ce),D.test(Dt)?Ce++:(Dt=u,$t===0&&Ve(Se)),Dt!==u)for(;Dt!==u;)Mt.push(Dt),Dt=c.charAt(Ce),D.test(Dt)?Ce++:(Dt=u,$t===0&&Ve(Se));else Mt=u;if(Mt!==u){for(c.charCodeAt(Ce)===46?(Dt=j,Ce++):(Dt=u,$t===0&&Ve(ce)),Dt===u&&(Dt=null),Zt=[],bn=c.charAt(Ce),D.test(bn)?Ce++:(bn=u,$t===0&&Ve(Se));bn!==u;)Zt.push(bn),bn=c.charAt(Ce),D.test(bn)?Ce++:(bn=u,$t===0&&Ve(Se));Mt=[Mt,Dt,Zt],Tt=Mt}else Ce=Tt,Tt=u;if(Tt===u){for(Tt=Ce,Mt=[],Dt=c.charAt(Ce),D.test(Dt)?Ce++:(Dt=u,$t===0&&Ve(Se));Dt!==u;)Mt.push(Dt),Dt=c.charAt(Ce),D.test(Dt)?Ce++:(Dt=u,$t===0&&Ve(Se));if(c.charCodeAt(Ce)===46?(Dt=j,Ce++):(Dt=u,$t===0&&Ve(ce)),Dt!==u){if(Zt=[],bn=c.charAt(Ce),D.test(bn)?Ce++:(bn=u,$t===0&&Ve(Se)),bn!==u)for(;bn!==u;)Zt.push(bn),bn=c.charAt(Ce),D.test(bn)?Ce++:(bn=u,$t===0&&Ve(Se));else Zt=u;Zt!==u?(Mt=[Mt,Dt,Zt],Tt=Mt):(Ce=Tt,Tt=u)}else Ce=Tt,Tt=u}if(Tt!==u){if(Mt=Ce,Dt=c.charAt(Ce),K.test(Dt)?Ce++:(Dt=u,$t===0&&Ve(Ee)),Dt!==u){if(Zt=c.charAt(Ce),Q.test(Zt)?Ce++:(Zt=u,$t===0&&Ve(Ge)),Zt===u&&(Zt=null),bn=[],nr=c.charAt(Ce),D.test(nr)?Ce++:(nr=u,$t===0&&Ve(Se)),nr!==u)for(;nr!==u;)bn.push(nr),nr=c.charAt(Ce),D.test(nr)?Ce++:(nr=u,$t===0&&Ve(Se));else bn=u;bn!==u?(Dt=[Dt,Zt,bn],Mt=Dt):(Ce=Mt,Mt=u)}else Ce=Mt,Mt=u;Mt===u&&(Mt=null),xt=[xt,Tt,Mt],it=xt}else Ce=it,it=u;return it!==u?Re=c.substring(Re,Ce):Re=it,Re!==u&&(Re=_n(Re)),ve=Re,ve}function Ft(){var ve,Re;return ve=Ce,Re=Ue(),Re!==u&&(Re=Un()),ve=Re,ve===u&&(ve=Ce,Re=ft(),Re!==u&&(Re=Jt()),ve=Re),ve}function de(){var ve,Re,it,xt;return ve=Ce,Re=c.substr(Ce,3),Re.toLowerCase()===_?Ce+=3:(Re=u,$t===0&&Ve(Te)),Re!==u?(it=Ce,$t++,xt=Yt(),$t--,xt===u?it=void 0:(Ce=it,it=u),it!==u?ve=Dn():(Ce=ve,ve=u)):(Ce=ve,ve=u),ve}function fe(){var ve,Re,it,xt;return ve=Ce,Re=c.substr(Ce,4),Re.toLowerCase()===W?Ce+=4:(Re=u,$t===0&&Ve(je)),Re!==u?(it=Ce,$t++,xt=Yt(),$t--,xt===u?it=void 0:(Ce=it,it=u),it!==u?(Re=[Re,it],ve=Re):(Ce=ve,ve=u)):(Ce=ve,ve=u),ve}function Fe(){var ve,Re,it,xt;return ve=Ce,Re=c.substr(Ce,4),Re.toLowerCase()===U?Ce+=4:(Re=u,$t===0&&Ve(oe)),Re!==u?(it=Ce,$t++,xt=Yt(),$t--,xt===u?it=void 0:(Ce=it,it=u),it!==u?(Re=[Re,it],ve=Re):(Ce=ve,ve=u)):(Ce=ve,ve=u),ve}function ft(){var ve,Re,it,xt;return ve=Ce,Re=c.substr(Ce,3),Re.toLowerCase()===T?Ce+=3:(Re=u,$t===0&&Ve(lt)),Re!==u?(it=Ce,$t++,xt=Yt(),$t--,xt===u?it=void 0:(Ce=it,it=u),it!==u?(Re=[Re,it],ve=Re):(Ce=ve,ve=u)):(Ce=ve,ve=u),ve}function Ue(){var ve,Re,it,xt;return ve=Ce,Re=c.substr(Ce,2),Re.toLowerCase()===L?Ce+=2:(Re=u,$t===0&&Ve(Ie)),Re!==u?(it=Ce,$t++,xt=Yt(),$t--,xt===u?it=void 0:(Ce=it,it=u),it!==u?(Re=[Re,it],ve=Re):(Ce=ve,ve=u)):(Ce=ve,ve=u),ve}function Ot(){var ve,Re,it,xt;return ve=Ce,Re=c.substr(Ce,2),Re.toLowerCase()===F?Ce+=2:(Re=u,$t===0&&Ve(et)),Re!==u?(it=Ce,$t++,xt=Yt(),$t--,xt===u?it=void 0:(Ce=it,it=u),it!==u?(Re=[Re,it],ve=Re):(Ce=ve,ve=u)):(Ce=ve,ve=u),ve}function Yt(){var ve;return ve=c.charAt(Ce),ee.test(ve)?Ce++:(ve=u,$t===0&&Ve(mt)),ve}function nn(){var ve,Re;for($t++,ve=[],Re=c.charAt(Ce),X.test(Re)?Ce++:(Re=u,$t===0&&Ve(zt));Re!==u;)ve.push(Re),Re=c.charAt(Ce),X.test(Re)?Ce++:(Re=u,$t===0&&Ve(zt));return $t--,Re=u,$t===0&&Ve(Wt),ve}if(Fr=v(),f.peg$library)return{peg$result:Fr,peg$currPos:Ce,peg$FAILED:u,peg$maxFailExpected:en,peg$maxFailPos:Mn};if(Fr!==u&&Ce===c.length)return Fr;throw Fr!==u&&Ce<c.length&&Ve(Ln()),rt(en,Mn<c.length?c.charAt(Mn):null,Mn<c.length?ze(Mn,Mn+1):ze(Mn,Mn))}return vS={StartRules:["numberFilter"],SyntaxError:a,parse:l},vS}var bv={},Q$;function Lk(){if(Q$)return bv;Q$=1,Object.defineProperty(bv,"__esModule",{value:!0}),bv.run_parser=n;const e=Pp();function t(r){return r instanceof Error&&"location"in r}function n(r,o){try{const a=o(r);return(0,e.isFilterExpression)(a)?{parsed:a,log:[]}:{parsed:null,log:[]}}catch(a){if(t(a)){const s=a.location,l=s?s.start.offset:0,c=s?s.end.offset-1:r.length-1;return{parsed:null,log:[{message:a.message,startIndex:l,endIndex:Math.max(l,c),severity:"error"}]}}throw a}}return bv}var X$;function MJ(){return X$||(X$=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NumberFilterExpression=void 0;const t=Pp(),n=TJ(),r=Lk();e.NumberFilterExpression={parse(o){if(o.match(/^\s*$/))return{parsed:null,log:[]};const a=(0,r.run_parser)(o,n.parse);return a.parsed&&(0,t.isNumberFilter)(a.parsed)?{parsed:a.parsed,log:[]}:{parsed:null,log:a.log}},unparse(o){if(o===null)return"";switch(o.operator){case"=":return o.values.join(", ");case"!=":return"!= "+o.values.join(", ");case">":case"<":case"<=":case">=":return o.not?o.values.map(a=>o.operator==="="?`not ${a}`:`not ${o.operator} ${a}`).join(", "):o.values.map(a=>`${o.operator} ${a}`).join(", ");case"range":{const a=o.startOperator===">"?"(":"[",s=o.endOperator==="<"?")":"]",l=`${a}${o.startValue} to ${o.endValue}${s}`;return o.not?`not ${l}`:l}case"null":return o.not?"not null":"null";case"none":return o.not?"not none":"none";case"and":case"or":return o.members.map(a=>e.NumberFilterExpression.unparse(a)).join(` ${o.operator} `);case"()":{const a="("+e.NumberFilterExpression.unparse(o.expr)+")";return o.not?"not "+a:a}}return`no unparse for ${JSON.stringify(o)}`}}})(yS)),yS}var bS={},xS,Z$;function RJ(){if(Z$)return xS;Z$=1;const{conjoin:e,maybeNot:t,matchOp:n}=T0();function r(l,c){function f(){this.constructor=l}f.prototype=c.prototype,l.prototype=new f}function o(l,c,f,u){var h=Error.call(this,l);return Object.setPrototypeOf&&Object.setPrototypeOf(h,o.prototype),h.expected=c,h.found=f,h.location=u,h.name="SyntaxError",h}r(o,Error);function a(l,c,f){return f=f||" ",l.length>c?l:(c-=l.length,f+=f.repeat(c),l+f.slice(0,c))}o.prototype.format=function(l){var c="Error: "+this.message;if(this.location){var f=null,u;for(u=0;u<l.length;u++)if(l[u].source===this.location.source){f=l[u].text.split(/\r\n|\n|\r/g);break}var h=this.location.start,y=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(h):h,v=this.location.source+":"+y.line+":"+y.column;if(f){var S=this.location.end,x=a("",y.line.toString().length," "),w=f[h.line-1],b=h.line===S.line?S.column:w.length+1,k=b-h.column||1;c+=`
302
+ --> `+v+`
303
+ `+x+` |
304
+ `+y.line+" | "+w+`
305
+ `+x+" | "+a("",h.column-1," ")+a("",k,"^")}else c+=`
306
+ at `+v}return c},o.buildMessage=function(l,c){var f={literal:function(w){return'"'+h(w.text)+'"'},class:function(w){var b=w.parts.map(function(k){return Array.isArray(k)?y(k[0])+"-"+y(k[1]):y(k)});return"["+(w.inverted?"^":"")+b.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(w){return w.description}};function u(w){return w.charCodeAt(0).toString(16).toUpperCase()}function h(w){return w.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+u(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+u(b)})}function y(w){return w.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+u(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+u(b)})}function v(w){return f[w.type](w)}function S(w){var b=w.map(v),k,E;if(b.sort(),b.length>0){for(k=1,E=1;k<b.length;k++)b[k-1]!==b[k]&&(b[E]=b[k],E++);b.length=E}switch(b.length){case 1:return b[0];case 2:return b[0]+" or "+b[1];default:return b.slice(0,-1).join(", ")+", or "+b[b.length-1]}}function x(w){return w?'"'+h(w)+'"':"end of input"}return"Expected "+S(l)+" but "+x(c)+" found."};function s(l,c){c=c!==void 0?c:{};var f={},u=c.grammarSource,h={stringFilter:mt},y=mt,v="-",S="(",x=")",w="\\",b=",",k=";",E="|",O=/^[^\n,;()|]/,$=/^[ \t]/,A=ce("-",!1),I=ce("(",!1),j=ce(")",!1),_=je("match string"),W=ce("\\",!1),U=Ge(),T=Ee([`
307
+ `,",",";","(",")","|"],!0,!1),L=ce(",",!1),F=ce(";",!1),H=ce("|",!1),D=je("whitespace"),K=Ee([" "," "],!1,!1),Q=function(Le,ge){return ge.reduce((qe,[,De,,wt])=>e(qe,De,wt),Le)},ee=function(Le){return t([!0,Le])},X=function(Le){return Le},te=function(Le){return{operator:"()",expr:Le}},ae=function(Le){return n(Le)},ue=function(Le){return Le},he=function(){return","},ie=function(){return";"},le=function(){return"|"},se=c.peg$currPos|0,pe=[{line:1,column:1}],ne=se,me=c.peg$maxFailExpected||[],xe=c.peg$silentFails|0,Se;if(c.startRule){if(!(c.startRule in h))throw new Error(`Can't start parsing from rule "`+c.startRule+'".');y=h[c.startRule]}function ce(Le,ge){return{type:"literal",text:Le,ignoreCase:ge}}function Ee(Le,ge,qe){return{type:"class",parts:Le,inverted:ge,ignoreCase:qe}}function Ge(){return{type:"any"}}function Te(){return{type:"end"}}function je(Le){return{type:"other",description:Le}}function oe(Le){var ge=pe[Le],qe;if(ge)return ge;if(Le>=pe.length)qe=pe.length-1;else for(qe=Le;!pe[--qe];);for(ge=pe[qe],ge={line:ge.line,column:ge.column};qe<Le;)l.charCodeAt(qe)===10?(ge.line++,ge.column=1):ge.column++,qe++;return pe[Le]=ge,ge}function lt(Le,ge,qe){var De=oe(Le),wt=oe(ge),Ct={source:u,start:{offset:Le,line:De.line,column:De.column},end:{offset:ge,line:wt.line,column:wt.column}};return Ct}function Ie(Le){se<ne||(se>ne&&(ne=se,me=[]),me.push(Le))}function et(Le,ge,qe){return new o(o.buildMessage(Le,ge),Le,ge,qe)}function mt(){var Le,ge,qe,De,wt,Ct,yt,st;if(Le=se,ct(),ge=Wt(),ge!==f){for(qe=[],De=se,wt=ct(),Ct=Je(),Ct!==f?(yt=ct(),st=Wt(),st!==f?(wt=[wt,Ct,yt,st],De=wt):(se=De,De=f)):(se=De,De=f);De!==f;)qe.push(De),De=se,wt=ct(),Ct=Je(),Ct!==f?(yt=ct(),st=Wt(),st!==f?(wt=[wt,Ct,yt,st],De=wt):(se=De,De=f)):(se=De,De=f);Le=Q(ge,qe)}else se=Le,Le=f;return Le}function Wt(){var Le,ge,qe;return Le=se,l.charCodeAt(se)===45?(ge=v,se++):(ge=f,xe===0&&Ie(A)),ge!==f?(ct(),qe=zt(),qe!==f?Le=ee(qe):(se=Le,Le=f)):(se=Le,Le=f),Le===f&&(Le=se,ge=zt(),ge!==f&&(ge=X(ge)),Le=ge),Le}function zt(){var Le,ge,qe,De;return Le=se,l.charCodeAt(se)===40?(ge=S,se++):(ge=f,xe===0&&Ie(I)),ge!==f?(ct(),qe=mt(),qe!==f?(ct(),l.charCodeAt(se)===41?(De=x,se++):(De=f,xe===0&&Ie(j)),De!==f?Le=te(qe):(se=Le,Le=f)):(se=Le,Le=f)):(se=Le,Le=f),Le===f&&(Le=se,ge=tt(),ge!==f&&(ge=ae(ge)),Le=ge),Le}function tt(){var Le,ge,qe,De,wt,Ct;if(xe++,Le=se,ge=se,qe=[],De=se,l.charCodeAt(se)===92?(wt=w,se++):(wt=f,xe===0&&Ie(W)),wt!==f?(l.length>se?(Ct=l.charAt(se),se++):(Ct=f,xe===0&&Ie(U)),Ct!==f?(wt=[wt,Ct],De=wt):(se=De,De=f)):(se=De,De=f),De===f&&(De=l.charAt(se),O.test(De)?se++:(De=f,xe===0&&Ie(T))),De!==f)for(;De!==f;)qe.push(De),De=se,l.charCodeAt(se)===92?(wt=w,se++):(wt=f,xe===0&&Ie(W)),wt!==f?(l.length>se?(Ct=l.charAt(se),se++):(Ct=f,xe===0&&Ie(U)),Ct!==f?(wt=[wt,Ct],De=wt):(se=De,De=f)):(se=De,De=f),De===f&&(De=l.charAt(se),O.test(De)?se++:(De=f,xe===0&&Ie(T)));else qe=f;return qe!==f?ge=l.substring(ge,se):ge=qe,ge!==f&&(ge=ue(ge)),Le=ge,xe--,Le===f&&(ge=f,xe===0&&Ie(_)),Le}function Je(){var Le,ge;return Le=se,l.charCodeAt(se)===44?(ge=b,se++):(ge=f,xe===0&&Ie(L)),ge!==f&&(ge=he()),Le=ge,Le===f&&(Le=se,l.charCodeAt(se)===59?(ge=k,se++):(ge=f,xe===0&&Ie(F)),ge!==f&&(ge=ie()),Le=ge,Le===f&&(Le=se,l.charCodeAt(se)===124?(ge=E,se++):(ge=f,xe===0&&Ie(H)),ge!==f&&(ge=le()),Le=ge)),Le}function ct(){var Le,ge;for(xe++,Le=[],ge=l.charAt(se),$.test(ge)?se++:(ge=f,xe===0&&Ie(K));ge!==f;)Le.push(ge),ge=l.charAt(se),$.test(ge)?se++:(ge=f,xe===0&&Ie(K));return xe--,ge=f,xe===0&&Ie(D),Le}if(Se=y(),c.peg$library)return{peg$result:Se,peg$currPos:se,peg$FAILED:f,peg$maxFailExpected:me,peg$maxFailPos:ne};if(Se!==f&&se===l.length)return Se;throw Se!==f&&se<l.length&&Ie(Te()),et(me,ne<l.length?l.charAt(ne):null,ne<l.length?lt(ne,ne+1):lt(ne,ne))}return xS={StartRules:["stringFilter"],SyntaxError:o,parse:s},xS}var J$;function OJ(){return J$||(J$=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.StringFilterExpression=void 0;const t=Pp(),n=RJ(),r=T0(),o=Lk();e.StringFilterExpression={parse(a){if(a.match(/^\s*$/))return{parsed:null,log:[]};const s=(0,o.run_parser)(a,n.parse);return s.parsed&&(0,t.isStringFilter)(s.parsed)?{parsed:s.parsed,log:[]}:{parsed:null,log:s.log}},unparse(a){if(a===null)return"";switch(a.operator){case"=":return a.not?a.values.map(s=>"-"+(0,r.escape)(s)).join(", "):a.values.map(s=>(0,r.escape)(s)).join(", ");case"~":return a.not?a.escaped_values.map(s=>"-"+s).join(", "):a.escaped_values.join(", ");case"starts":return a.not?a.values.map(s=>"-"+(0,r.escape)(s)+"%").join(", "):a.values.map(s=>(0,r.escape)(s)+"%").join(", ");case"ends":return a.not?a.values.map(s=>"-%"+(0,r.escape)(s)).join(", "):a.values.map(s=>"%"+(0,r.escape)(s)).join(", ");case"contains":return a.not?a.values.map(s=>"-%"+(0,r.escape)(s)+"%").join(", "):a.values.map(s=>"%"+(0,r.escape)(s)+"%").join(", ");case"or":return a.members.map(s=>e.StringFilterExpression.unparse(s)).join(" | ");case"and":return a.members.map(s=>e.StringFilterExpression.unparse(s)).join("; ");case",":return a.members.map(s=>e.StringFilterExpression.unparse(s)).join(", ");case"()":{const s="("+e.StringFilterExpression.unparse(a.expr)+")";return a.not?"-"+s:s}case"null":return a.not?"-null":"null";case"empty":return a.not?"-empty":"empty";case"none":return a.not?"-none":"none"}}}})(bS)),bS}var SS={},wS,eP;function $J(){if(eP)return wS;eP=1;const{temporalNot:e,joinTemporal:t,timeLiteral:n,mkUnits:r}=T0();function o(c,f){function u(){this.constructor=c}u.prototype=f.prototype,c.prototype=new u}function a(c,f,u,h){var y=Error.call(this,c);return Object.setPrototypeOf&&Object.setPrototypeOf(y,a.prototype),y.expected=f,y.found=u,y.location=h,y.name="SyntaxError",y}o(a,Error);function s(c,f,u){return u=u||" ",c.length>f?c:(f-=c.length,u+=u.repeat(f),c+u.slice(0,f))}a.prototype.format=function(c){var f="Error: "+this.message;if(this.location){var u=null,h;for(h=0;h<c.length;h++)if(c[h].source===this.location.source){u=c[h].text.split(/\r\n|\n|\r/g);break}var y=this.location.start,v=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(y):y,S=this.location.source+":"+v.line+":"+v.column;if(u){var x=this.location.end,w=s("",v.line.toString().length," "),b=u[y.line-1],k=y.line===x.line?x.column:b.length+1,E=k-y.column||1;f+=`
308
+ --> `+S+`
309
+ `+w+` |
310
+ `+v.line+" | "+b+`
311
+ `+w+" | "+s("",y.column-1," ")+s("",E,"^")}else f+=`
312
+ at `+S}return f},a.buildMessage=function(c,f){var u={literal:function(b){return'"'+y(b.text)+'"'},class:function(b){var k=b.parts.map(function(E){return Array.isArray(E)?v(E[0])+"-"+v(E[1]):v(E)});return"["+(b.inverted?"^":"")+k.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(b){return b.description}};function h(b){return b.charCodeAt(0).toString(16).toUpperCase()}function y(b){return b.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(k){return"\\x0"+h(k)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(k){return"\\x"+h(k)})}function v(b){return b.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(k){return"\\x0"+h(k)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(k){return"\\x"+h(k)})}function S(b){return u[b.type](b)}function x(b){var k=b.map(S),E,O;if(k.sort(),k.length>0){for(E=1,O=1;E<k.length;E++)k[E-1]!==k[E]&&(k[O]=k[E],O++);k.length=O}switch(k.length){case 1:return k[0];case 2:return k[0]+" or "+k[1];default:return k.slice(0,-1).join(", ")+", or "+k[k.length-1]}}function w(b){return b?'"'+y(b)+'"':"end of input"}return"Expected "+x(c)+" but "+w(f)+" found."};function l(c,f){f=f!==void 0?f:{};var u={},h=f.grammarSource,y={temporalFilter:hu},v=hu,S="(",x=")",w="second",b="minute",k="hour",E="day",O="week",$="month",A="quarter",I="year",j="s",_="-",W=":",U="not",T="null",L="none",F="to",H="now",D="last",K="this",Q="next",ee="ago",X="from",te="before",ae="after",ue="through",he="starting",ie="for",le="today",se="yesterday",pe="tomorrow",ne="and",me="or",xe="monday",Se="tuesday",ce="wednesday",Ee="thursday",Ge="friday",Te="saturday",je="sunday",oe=/^[0-9]/,lt=/^[ Tt]/,Ie=/^[.,]/,et=/^[Ww]/,mt=/^[Kk]/,Wt=/^[Qq]/,zt=/^[1234]/,tt=/^[a-zA-Z]/,Je=/^[ \t]/,ct=jn("(",!1),Le=jn(")",!1),ge=zo([["0","9"]],!1,!1),qe=jn("second",!0),De=jn("minute",!0),wt=jn("hour",!0),Ct=jn("day",!0),yt=jn("week",!0),st=jn("month",!0),jt=jn("quarter",!0),qt=jn("year",!0),mn=jn("s",!0),$n=jn("-",!1),_n=zo([" ","T","t"],!1,!1),Un=jn(":",!1),Jt=zo([".",","],!1,!1),Dn=zo(["W","w"],!1,!1),Ce=zo(["K","k"],!1,!1),Vn=zo(["Q","q"],!1,!1),Mn=zo(["1","2","3","4"],!1,!1),en=jn("not",!0),$t=jn("null",!0),Fr=jn("none",!0),Fn=jn("to",!0),on=jn("now",!0),Ln=jn("last",!0),ye=jn("this",!0),Me=jn("next",!0),ze=jn("ago",!0),Ve=jn("from",!0),rt=jn("before",!0),kt=jn("after",!0),bt=jn("through",!0),Et=jn("starting",!0),Pt=jn("for",!0),Kt=jn("today",!0),At=jn("yesterday",!0),Ft=jn("tomorrow",!0),de=jn("and",!0),fe=jn("or",!0),Fe=jn("monday",!0),ft=jn("tuesday",!0),Ue=jn("wednesday",!0),Ot=jn("thursday",!0),Yt=jn("friday",!0),nn=jn("saturday",!0),ve=jn("sunday",!0),Re=zo([["a","z"],["A","Z"]],!1,!1),it=fu("optional whitespace"),xt=zo([" "," "],!1,!1),Tt=fu("whitespace"),Mt=function(B,G){return G.reduce((q,[,ke,,Qt])=>t(q,ke,Qt),B)},Dt=function(B){return e(B,!0)},Zt=function(B){return B},bn=function(){return{operator:"null"}},nr=function(){return{operator:"none"}},Xt=function(B){return{operator:"()",expr:B}},Ar=function(B){return{operator:"before",before:B}},so=function(B){return{operator:"before",before:B,not:!0}},To=function(B){return{operator:"after",after:B}},is=function(B){return{operator:"after",after:B,not:!0}},na=function(B,G){return{operator:B,...G}},ur=function(B,G){return{operator:"to",fromMoment:B,toMoment:G}},_r=function(B,G){return{...G,operator:"for",begin:B}},Ga=function(B){return{operator:"in",in:B}},pl=function(B){return{operator:"in_last",...B}},ss=function(){return"last"},Ti=function(){return"next"},ou=function(B,G){return{units:G,n:B}},hl=function(B){return B},ls=function(B){return r(B)},Zl=function(){return{moment:"now"}},Ps=function(){return{moment:"today"}},ml=function(){return{moment:"yesterday"}},au=function(){return{moment:"tomorrow"}},Td=function(B){return{moment:"ago",...B}},Np=function(B){return{moment:"from_now",...B}},gl=function(B){return{moment:B.toLowerCase(),which:"next"}},Jl=function(B){return{moment:B.toLowerCase(),which:"last"}},ec=function(B,G){return{moment:B,units:G}},As=function(B){return{moment:B.toLowerCase(),which:"last"}},cs=function(B){return B},iu=function(){return"this"},su=function(){return"next"},Md=function(){return"last"},yl=function(B){return n(B)},Ra=function(B){return n(B,"week")},lu=function(B){return n(B,"quarter")},vl=function(B){return n(B,"minute")},Mi=function(B){return n(B,"hour")},cu=function(B){return n(B,"day")},tc=function(B){return n(B,"month")},uu=function(B){return n(B,"year")},nc=function(B){return B},no=function(){return"or"},du=function(){return"and"},N=f.peg$currPos|0,xo=[{line:1,column:1}],ro=N,Ka=f.peg$maxFailExpected||[],Oe=f.peg$silentFails|0,us;if(f.startRule){if(!(f.startRule in y))throw new Error(`Can't start parsing from rule "`+f.startRule+'".');v=y[f.startRule]}function jn(B,G){return{type:"literal",text:B,ignoreCase:G}}function zo(B,G,q){return{type:"class",parts:B,inverted:G,ignoreCase:q}}function Ds(){return{type:"end"}}function fu(B){return{type:"other",description:B}}function Rd(B){var G=xo[B],q;if(G)return G;if(B>=xo.length)q=xo.length-1;else for(q=B;!xo[--q];);for(G=xo[q],G={line:G.line,column:G.column};q<B;)c.charCodeAt(q)===10?(G.line++,G.column=1):G.column++,q++;return xo[B]=G,G}function Od(B,G,q){var ke=Rd(B),Qt=Rd(G),Ht={source:h,start:{offset:B,line:ke.line,column:ke.column},end:{offset:G,line:Qt.line,column:Qt.column}};return Ht}function Ze(B){N<ro||(N>ro&&(ro=N,Ka=[]),Ka.push(B))}function pu(B,G,q){return new a(a.buildMessage(B,G),B,G,q)}function hu(){var B,G,q,ke,Qt,Ht,Rn,Yn;if(B=N,G=rc(),G!==u){for(q=[],ke=N,Qt=fs(),Ht=Pd(),Ht!==u?(Rn=fs(),Yn=rc(),Yn!==u?(Qt=[Qt,Ht,Rn,Yn],ke=Qt):(N=ke,ke=u)):(N=ke,ke=u);ke!==u;)q.push(ke),ke=N,Qt=fs(),Ht=Pd(),Ht!==u?(Rn=fs(),Yn=rc(),Yn!==u?(Qt=[Qt,Ht,Rn,Yn],ke=Qt):(N=ke,ke=u)):(N=ke,ke=u);B=Mt(G,q)}else N=B,B=u;return B}function rc(){var B,G,q,ke;return B=N,G=mu(),G!==u?(q=Gr(),q!==u?(ke=$d(),ke!==u?B=Dt(ke):(N=B,B=u)):(N=B,B=u)):(N=B,B=u),B===u&&(B=N,G=$d(),G!==u&&(G=Zt(G)),B=G),B}function $d(){var B,G,q,ke,Qt,Ht;return B=N,G=zp(),G!==u&&(G=bn()),B=G,B===u&&(B=N,G=Ad(),G!==u&&(G=nr()),B=G,B===u&&(B=N,c.charCodeAt(N)===40?(G=S,N++):(G=u,Oe===0&&Ze(ct)),G!==u?(q=fs(),ke=hu(),ke!==u?(Qt=fs(),c.charCodeAt(N)===41?(Ht=x,N++):(Ht=u,Oe===0&&Ze(Le)),Ht!==u?B=Xt(ke):(N=B,B=u)):(N=B,B=u)):(N=B,B=u),B===u&&(B=N,G=Vp(),G!==u?(q=Gr(),q!==u?(ke=ra(),ke!==u?B=Ar(ke):(N=B,B=u)):(N=B,B=u)):(N=B,B=u),B===u&&(B=N,G=Is(),G!==u?(q=Gr(),q!==u?(ke=ra(),ke!==u?B=so(ke):(N=B,B=u)):(N=B,B=u)):(N=B,B=u),B===u&&(B=N,G=Hp(),G!==u?(q=Gr(),q!==u?(ke=ra(),ke!==u?B=To(ke):(N=B,B=u)):(N=B,B=u)):(N=B,B=u),B===u&&(B=N,G=yu(),G!==u?(q=Gr(),q!==u?(ke=ra(),ke!==u?B=is(ke):(N=B,B=u)):(N=B,B=u)):(N=B,B=u),B===u&&(B=N,G=js(),G!==u?(q=Gr(),q!==u?(ke=bl(),ke!==u?B=na(G,ke):(N=B,B=u)):(N=B,B=u)):(N=B,B=u),B===u&&(B=N,G=ra(),G!==u?(q=Gr(),q!==u?(ke=Fp(),ke!==u?(Qt=Gr(),Qt!==u?(Ht=ra(),Ht!==u?B=ur(G,Ht):(N=B,B=u)):(N=B,B=u)):(N=B,B=u)):(N=B,B=u)):(N=B,B=u),B===u&&(B=N,G=ra(),G!==u?(q=Gr(),q!==u?(ke=Wp(),ke!==u?(Qt=Gr(),Qt!==u?(Ht=bl(),Ht!==u?B=_r(G,Ht):(N=B,B=u)):(N=B,B=u)):(N=B,B=u)):(N=B,B=u)):(N=B,B=u),B===u&&(B=N,G=ra(),G!==u&&(G=Ga(G)),B=G,B===u&&(B=N,G=bl(),G!==u&&(G=pl(G)),B=G))))))))))),B}function js(){var B,G;return B=N,G=gu(),G!==u&&(G=ss()),B=G,B===u&&(B=N,G=oc(),G!==u&&(G=Ti()),B=G),B}function bl(){var B,G,q,ke;return B=N,G=ds(),G!==u?(q=Gr(),q!==u?(ke=Ns(),ke!==u?B=ou(G,ke):(N=B,B=u)):(N=B,B=u)):(N=B,B=u),B}function ds(){var B,G,q,ke;if(B=N,G=N,q=[],ke=c.charAt(N),oe.test(ke)?N++:(ke=u,Oe===0&&Ze(ge)),ke!==u)for(;ke!==u;)q.push(ke),ke=c.charAt(N),oe.test(ke)?N++:(ke=u,Oe===0&&Ze(ge));else q=u;return q!==u?G=c.substring(G,N):G=q,G!==u&&(G=hl(G)),B=G,B}function Ns(){var B,G,q,ke,Qt;return B=N,G=N,q=c.substr(N,6),q.toLowerCase()===w?N+=6:(q=u,Oe===0&&Ze(qe)),q===u&&(q=c.substr(N,6),q.toLowerCase()===b?N+=6:(q=u,Oe===0&&Ze(De)),q===u&&(q=c.substr(N,4),q.toLowerCase()===k?N+=4:(q=u,Oe===0&&Ze(wt)),q===u&&(q=c.substr(N,3),q.toLowerCase()===E?N+=3:(q=u,Oe===0&&Ze(Ct)),q===u&&(q=c.substr(N,4),q.toLowerCase()===O?N+=4:(q=u,Oe===0&&Ze(yt)),q===u&&(q=c.substr(N,5),q.toLowerCase()===$?N+=5:(q=u,Oe===0&&Ze(st)),q===u&&(q=c.substr(N,7),q.toLowerCase()===A?N+=7:(q=u,Oe===0&&Ze(jt)),q===u&&(q=c.substr(N,4),q.toLowerCase()===I?N+=4:(q=u,Oe===0&&Ze(qt))))))))),q!==u?G=c.substring(G,N):G=q,G!==u?(q=c.charAt(N),q.toLowerCase()===j?N++:(q=u,Oe===0&&Ze(mn)),q===u&&(q=null),ke=N,Oe++,Qt=rr(),Oe--,Qt===u?ke=void 0:(N=ke,ke=u),ke!==u?B=ls(G):(N=B,B=u)):(N=B,B=u),B}function ra(){var B,G,q,ke,Qt,Ht;return B=N,G=Dd(),G!==u&&(G=Zl()),B=G,B===u&&(B=N,G=jd(),G!==u&&(G=Ps()),B=G,B===u&&(B=N,G=Nd(),G!==u&&(G=ml()),B=G,B===u&&(B=N,G=Id(),G!==u&&(G=au()),B=G,B===u&&(B=N,G=bl(),G!==u?(q=Gr(),q!==u?(ke=Bp(),ke!==u?B=Td(G):(N=B,B=u)):(N=B,B=u)):(N=B,B=u),B===u&&(B=N,G=bl(),G!==u?(q=Gr(),q!==u?(ke=Up(),ke!==u?(Qt=Gr(),Qt!==u?(Ht=Dd(),Ht!==u?B=Np(G):(N=B,B=u)):(N=B,B=u)):(N=B,B=u)):(N=B,B=u)):(N=B,B=u),B===u&&(B=N,G=oc(),G!==u?(q=Gr(),q!==u?(ke=xl(),ke!==u?B=gl(ke):(N=B,B=u)):(N=B,B=u)):(N=B,B=u),B===u&&(B=N,G=gu(),G!==u?(q=Gr(),q!==u?(ke=xl(),ke!==u?B=Jl(ke):(N=B,B=u)):(N=B,B=u)):(N=B,B=u),B===u&&(B=N,G=Ip(),G!==u?(q=Gr(),q!==u?(ke=Ns(),ke!==u?B=ec(G,ke):(N=B,B=u)):(N=B,B=u)):(N=B,B=u),B===u&&(B=N,G=xl(),G!==u&&(G=As(G)),B=G,B===u&&(B=N,G=Lp(),G!==u&&(G=cs(G)),B=G)))))))))),B}function Ip(){var B,G;return B=N,G=_p(),G!==u&&(G=iu()),B=G,B===u&&(B=N,G=oc(),G!==u&&(G=su()),B=G,B===u&&(B=N,G=gu(),G!==u&&(G=Md()),B=G)),B}function Lp(){var B,G,q,ke,Qt,Ht,Rn,Yn,Gn,Gt,wr,Cr,ln,gr,Ur,Hr,Qa,ma,zn,wl,ga,ps,oa,oo,Cl,So;if(B=N,G=N,q=N,ke=c.charAt(N),oe.test(ke)?N++:(ke=u,Oe===0&&Ze(ge)),ke!==u)if(Qt=c.charAt(N),oe.test(Qt)?N++:(Qt=u,Oe===0&&Ze(ge)),Qt!==u)if(Ht=c.charAt(N),oe.test(Ht)?N++:(Ht=u,Oe===0&&Ze(ge)),Ht!==u)if(Rn=c.charAt(N),oe.test(Rn)?N++:(Rn=u,Oe===0&&Ze(ge)),Rn!==u)if(c.charCodeAt(N)===45?(Yn=_,N++):(Yn=u,Oe===0&&Ze($n)),Yn!==u)if(Gn=c.charAt(N),oe.test(Gn)?N++:(Gn=u,Oe===0&&Ze(ge)),Gn!==u)if(Gt=c.charAt(N),oe.test(Gt)?N++:(Gt=u,Oe===0&&Ze(ge)),Gt!==u)if(c.charCodeAt(N)===45?(wr=_,N++):(wr=u,Oe===0&&Ze($n)),wr!==u)if(Cr=c.charAt(N),oe.test(Cr)?N++:(Cr=u,Oe===0&&Ze(ge)),Cr!==u)if(ln=c.charAt(N),oe.test(ln)?N++:(ln=u,Oe===0&&Ze(ge)),ln!==u)if(gr=c.charAt(N),lt.test(gr)?N++:(gr=u,Oe===0&&Ze(_n)),gr!==u)if(Ur=c.charAt(N),oe.test(Ur)?N++:(Ur=u,Oe===0&&Ze(ge)),Ur!==u)if(Hr=c.charAt(N),oe.test(Hr)?N++:(Hr=u,Oe===0&&Ze(ge)),Hr!==u)if(c.charCodeAt(N)===58?(Qa=W,N++):(Qa=u,Oe===0&&Ze(Un)),Qa!==u)if(ma=c.charAt(N),oe.test(ma)?N++:(ma=u,Oe===0&&Ze(ge)),ma!==u)if(zn=c.charAt(N),oe.test(zn)?N++:(zn=u,Oe===0&&Ze(ge)),zn!==u)if(c.charCodeAt(N)===58?(wl=W,N++):(wl=u,Oe===0&&Ze(Un)),wl!==u)if(ga=c.charAt(N),oe.test(ga)?N++:(ga=u,Oe===0&&Ze(ge)),ga!==u)if(ps=c.charAt(N),oe.test(ps)?N++:(ps=u,Oe===0&&Ze(ge)),ps!==u){if(oa=N,oo=c.charAt(N),Ie.test(oo)?N++:(oo=u,Oe===0&&Ze(Jt)),oo!==u){for(Cl=[],So=c.charAt(N),oe.test(So)?N++:(So=u,Oe===0&&Ze(ge));So!==u;)Cl.push(So),So=c.charAt(N),oe.test(So)?N++:(So=u,Oe===0&&Ze(ge));oo=[oo,Cl],oa=oo}else N=oa,oa=u;oa===u&&(oa=null),ke=[ke,Qt,Ht,Rn,Yn,Gn,Gt,wr,Cr,ln,gr,Ur,Hr,Qa,ma,zn,wl,ga,ps,oa],q=ke}else N=q,q=u;else N=q,q=u;else N=q,q=u;else N=q,q=u;else N=q,q=u;else N=q,q=u;else N=q,q=u;else N=q,q=u;else N=q,q=u;else N=q,q=u;else N=q,q=u;else N=q,q=u;else N=q,q=u;else N=q,q=u;else N=q,q=u;else N=q,q=u;else N=q,q=u;else N=q,q=u;else N=q,q=u;return q!==u?G=c.substring(G,N):G=q,G!==u&&(G=yl(G)),B=G,B===u&&(B=N,G=N,q=N,ke=c.charAt(N),oe.test(ke)?N++:(ke=u,Oe===0&&Ze(ge)),ke!==u?(Qt=c.charAt(N),oe.test(Qt)?N++:(Qt=u,Oe===0&&Ze(ge)),Qt!==u?(Ht=c.charAt(N),oe.test(Ht)?N++:(Ht=u,Oe===0&&Ze(ge)),Ht!==u?(Rn=c.charAt(N),oe.test(Rn)?N++:(Rn=u,Oe===0&&Ze(ge)),Rn!==u?(c.charCodeAt(N)===45?(Yn=_,N++):(Yn=u,Oe===0&&Ze($n)),Yn!==u?(Gn=c.charAt(N),oe.test(Gn)?N++:(Gn=u,Oe===0&&Ze(ge)),Gn!==u?(Gt=c.charAt(N),oe.test(Gt)?N++:(Gt=u,Oe===0&&Ze(ge)),Gt!==u?(c.charCodeAt(N)===45?(wr=_,N++):(wr=u,Oe===0&&Ze($n)),wr!==u?(Cr=c.charAt(N),oe.test(Cr)?N++:(Cr=u,Oe===0&&Ze(ge)),Cr!==u?(ln=c.charAt(N),oe.test(ln)?N++:(ln=u,Oe===0&&Ze(ge)),ln!==u?(c.charCodeAt(N)===45?(gr=_,N++):(gr=u,Oe===0&&Ze($n)),gr!==u?(Ur=c.charAt(N),et.test(Ur)?N++:(Ur=u,Oe===0&&Ze(Dn)),Ur!==u?(Hr=c.charAt(N),mt.test(Hr)?N++:(Hr=u,Oe===0&&Ze(Ce)),Hr!==u?(ke=[ke,Qt,Ht,Rn,Yn,Gn,Gt,wr,Cr,ln,gr,Ur,Hr],q=ke):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u),q!==u?G=c.substring(G,N):G=q,G!==u&&(G=Ra(G)),B=G,B===u&&(B=N,G=N,q=N,ke=c.charAt(N),oe.test(ke)?N++:(ke=u,Oe===0&&Ze(ge)),ke!==u?(Qt=c.charAt(N),oe.test(Qt)?N++:(Qt=u,Oe===0&&Ze(ge)),Qt!==u?(Ht=c.charAt(N),oe.test(Ht)?N++:(Ht=u,Oe===0&&Ze(ge)),Ht!==u?(Rn=c.charAt(N),oe.test(Rn)?N++:(Rn=u,Oe===0&&Ze(ge)),Rn!==u?(c.charCodeAt(N)===45?(Yn=_,N++):(Yn=u,Oe===0&&Ze($n)),Yn!==u?(Gn=c.charAt(N),Wt.test(Gn)?N++:(Gn=u,Oe===0&&Ze(Vn)),Gn!==u?(Gt=c.charAt(N),zt.test(Gt)?N++:(Gt=u,Oe===0&&Ze(Mn)),Gt!==u?(ke=[ke,Qt,Ht,Rn,Yn,Gn,Gt],q=ke):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u),q!==u?G=c.substring(G,N):G=q,G!==u&&(G=lu(G)),B=G,B===u&&(B=N,G=N,q=N,ke=c.charAt(N),oe.test(ke)?N++:(ke=u,Oe===0&&Ze(ge)),ke!==u?(Qt=c.charAt(N),oe.test(Qt)?N++:(Qt=u,Oe===0&&Ze(ge)),Qt!==u?(Ht=c.charAt(N),oe.test(Ht)?N++:(Ht=u,Oe===0&&Ze(ge)),Ht!==u?(Rn=c.charAt(N),oe.test(Rn)?N++:(Rn=u,Oe===0&&Ze(ge)),Rn!==u?(c.charCodeAt(N)===45?(Yn=_,N++):(Yn=u,Oe===0&&Ze($n)),Yn!==u?(Gn=c.charAt(N),oe.test(Gn)?N++:(Gn=u,Oe===0&&Ze(ge)),Gn!==u?(Gt=c.charAt(N),oe.test(Gt)?N++:(Gt=u,Oe===0&&Ze(ge)),Gt!==u?(c.charCodeAt(N)===45?(wr=_,N++):(wr=u,Oe===0&&Ze($n)),wr!==u?(Cr=c.charAt(N),oe.test(Cr)?N++:(Cr=u,Oe===0&&Ze(ge)),Cr!==u?(ln=c.charAt(N),oe.test(ln)?N++:(ln=u,Oe===0&&Ze(ge)),ln!==u?(gr=c.charAt(N),lt.test(gr)?N++:(gr=u,Oe===0&&Ze(_n)),gr!==u?(Ur=c.charAt(N),oe.test(Ur)?N++:(Ur=u,Oe===0&&Ze(ge)),Ur!==u?(Hr=c.charAt(N),oe.test(Hr)?N++:(Hr=u,Oe===0&&Ze(ge)),Hr!==u?(c.charCodeAt(N)===58?(Qa=W,N++):(Qa=u,Oe===0&&Ze(Un)),Qa!==u?(ma=c.charAt(N),oe.test(ma)?N++:(ma=u,Oe===0&&Ze(ge)),ma!==u?(zn=c.charAt(N),oe.test(zn)?N++:(zn=u,Oe===0&&Ze(ge)),zn!==u?(ke=[ke,Qt,Ht,Rn,Yn,Gn,Gt,wr,Cr,ln,gr,Ur,Hr,Qa,ma,zn],q=ke):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u),q!==u?G=c.substring(G,N):G=q,G!==u&&(G=vl(G)),B=G,B===u&&(B=N,G=N,q=N,ke=c.charAt(N),oe.test(ke)?N++:(ke=u,Oe===0&&Ze(ge)),ke!==u?(Qt=c.charAt(N),oe.test(Qt)?N++:(Qt=u,Oe===0&&Ze(ge)),Qt!==u?(Ht=c.charAt(N),oe.test(Ht)?N++:(Ht=u,Oe===0&&Ze(ge)),Ht!==u?(Rn=c.charAt(N),oe.test(Rn)?N++:(Rn=u,Oe===0&&Ze(ge)),Rn!==u?(c.charCodeAt(N)===45?(Yn=_,N++):(Yn=u,Oe===0&&Ze($n)),Yn!==u?(Gn=c.charAt(N),oe.test(Gn)?N++:(Gn=u,Oe===0&&Ze(ge)),Gn!==u?(Gt=c.charAt(N),oe.test(Gt)?N++:(Gt=u,Oe===0&&Ze(ge)),Gt!==u?(c.charCodeAt(N)===45?(wr=_,N++):(wr=u,Oe===0&&Ze($n)),wr!==u?(Cr=c.charAt(N),oe.test(Cr)?N++:(Cr=u,Oe===0&&Ze(ge)),Cr!==u?(ln=c.charAt(N),oe.test(ln)?N++:(ln=u,Oe===0&&Ze(ge)),ln!==u?(gr=c.charAt(N),lt.test(gr)?N++:(gr=u,Oe===0&&Ze(_n)),gr!==u?(Ur=c.charAt(N),oe.test(Ur)?N++:(Ur=u,Oe===0&&Ze(ge)),Ur!==u?(Hr=c.charAt(N),oe.test(Hr)?N++:(Hr=u,Oe===0&&Ze(ge)),Hr!==u?(ke=[ke,Qt,Ht,Rn,Yn,Gn,Gt,wr,Cr,ln,gr,Ur,Hr],q=ke):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u),q!==u?G=c.substring(G,N):G=q,G!==u&&(G=Mi(G)),B=G,B===u&&(B=N,G=N,q=N,ke=c.charAt(N),oe.test(ke)?N++:(ke=u,Oe===0&&Ze(ge)),ke!==u?(Qt=c.charAt(N),oe.test(Qt)?N++:(Qt=u,Oe===0&&Ze(ge)),Qt!==u?(Ht=c.charAt(N),oe.test(Ht)?N++:(Ht=u,Oe===0&&Ze(ge)),Ht!==u?(Rn=c.charAt(N),oe.test(Rn)?N++:(Rn=u,Oe===0&&Ze(ge)),Rn!==u?(c.charCodeAt(N)===45?(Yn=_,N++):(Yn=u,Oe===0&&Ze($n)),Yn!==u?(Gn=c.charAt(N),oe.test(Gn)?N++:(Gn=u,Oe===0&&Ze(ge)),Gn!==u?(Gt=c.charAt(N),oe.test(Gt)?N++:(Gt=u,Oe===0&&Ze(ge)),Gt!==u?(c.charCodeAt(N)===45?(wr=_,N++):(wr=u,Oe===0&&Ze($n)),wr!==u?(Cr=c.charAt(N),oe.test(Cr)?N++:(Cr=u,Oe===0&&Ze(ge)),Cr!==u?(ln=c.charAt(N),oe.test(ln)?N++:(ln=u,Oe===0&&Ze(ge)),ln!==u?(ke=[ke,Qt,Ht,Rn,Yn,Gn,Gt,wr,Cr,ln],q=ke):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u),q!==u?G=c.substring(G,N):G=q,G!==u&&(G=cu(G)),B=G,B===u&&(B=N,G=N,q=N,ke=c.charAt(N),oe.test(ke)?N++:(ke=u,Oe===0&&Ze(ge)),ke!==u?(Qt=c.charAt(N),oe.test(Qt)?N++:(Qt=u,Oe===0&&Ze(ge)),Qt!==u?(Ht=c.charAt(N),oe.test(Ht)?N++:(Ht=u,Oe===0&&Ze(ge)),Ht!==u?(Rn=c.charAt(N),oe.test(Rn)?N++:(Rn=u,Oe===0&&Ze(ge)),Rn!==u?(c.charCodeAt(N)===45?(Yn=_,N++):(Yn=u,Oe===0&&Ze($n)),Yn!==u?(Gn=c.charAt(N),oe.test(Gn)?N++:(Gn=u,Oe===0&&Ze(ge)),Gn!==u?(Gt=c.charAt(N),oe.test(Gt)?N++:(Gt=u,Oe===0&&Ze(ge)),Gt!==u?(ke=[ke,Qt,Ht,Rn,Yn,Gn,Gt],q=ke):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u),q!==u?G=c.substring(G,N):G=q,G!==u&&(G=tc(G)),B=G,B===u&&(B=N,G=N,q=N,ke=c.charAt(N),oe.test(ke)?N++:(ke=u,Oe===0&&Ze(ge)),ke!==u?(Qt=c.charAt(N),oe.test(Qt)?N++:(Qt=u,Oe===0&&Ze(ge)),Qt!==u?(Ht=c.charAt(N),oe.test(Ht)?N++:(Ht=u,Oe===0&&Ze(ge)),Ht!==u?(Rn=c.charAt(N),oe.test(Rn)?N++:(Rn=u,Oe===0&&Ze(ge)),Rn!==u?(ke=[ke,Qt,Ht,Rn],q=ke):(N=q,q=u)):(N=q,q=u)):(N=q,q=u)):(N=q,q=u),q!==u?G=c.substring(G,N):G=q,G!==u&&(G=uu(G)),B=G))))))),B}function xl(){var B,G,q;return B=N,G=N,q=Ls(),q===u&&(q=qp(),q===u&&(q=Yp(),q===u&&(q=Gp(),q===u&&(q=Fd(),q===u&&(q=_d(),q===u&&(q=Sl())))))),q!==u?G=c.substring(G,N):G=q,G!==u&&(G=nc(G)),B=G,B}function Pd(){var B,G;return B=N,G=zd(),G!==u&&(G=no()),B=G,B===u&&(B=N,G=Ld(),G!==u&&(G=du()),B=G),B}function mu(){var B,G,q,ke;return B=N,G=c.substr(N,3),G.toLowerCase()===U?N+=3:(G=u,Oe===0&&Ze(en)),G!==u?(q=N,Oe++,ke=rr(),Oe--,ke===u?q=void 0:(N=q,q=u),q!==u?(G=[G,q],B=G):(N=B,B=u)):(N=B,B=u),B}function zp(){var B,G,q,ke;return B=N,G=c.substr(N,4),G.toLowerCase()===T?N+=4:(G=u,Oe===0&&Ze($t)),G!==u?(q=N,Oe++,ke=rr(),Oe--,ke===u?q=void 0:(N=q,q=u),q!==u?(G=[G,q],B=G):(N=B,B=u)):(N=B,B=u),B}function Ad(){var B,G,q,ke;return B=N,G=c.substr(N,4),G.toLowerCase()===L?N+=4:(G=u,Oe===0&&Ze(Fr)),G!==u?(q=N,Oe++,ke=rr(),Oe--,ke===u?q=void 0:(N=q,q=u),q!==u?(G=[G,q],B=G):(N=B,B=u)):(N=B,B=u),B}function Fp(){var B,G,q,ke;return B=N,G=c.substr(N,2),G.toLowerCase()===F?N+=2:(G=u,Oe===0&&Ze(Fn)),G!==u?(q=N,Oe++,ke=rr(),Oe--,ke===u?q=void 0:(N=q,q=u),q!==u?(G=[G,q],B=G):(N=B,B=u)):(N=B,B=u),B}function Dd(){var B,G,q,ke;return B=N,G=c.substr(N,3),G.toLowerCase()===H?N+=3:(G=u,Oe===0&&Ze(on)),G!==u?(q=N,Oe++,ke=rr(),Oe--,ke===u?q=void 0:(N=q,q=u),q!==u?(G=[G,q],B=G):(N=B,B=u)):(N=B,B=u),B}function gu(){var B,G,q,ke;return B=N,G=c.substr(N,4),G.toLowerCase()===D?N+=4:(G=u,Oe===0&&Ze(Ln)),G!==u?(q=N,Oe++,ke=rr(),Oe--,ke===u?q=void 0:(N=q,q=u),q!==u?(G=[G,q],B=G):(N=B,B=u)):(N=B,B=u),B}function _p(){var B,G,q,ke;return B=N,G=c.substr(N,4),G.toLowerCase()===K?N+=4:(G=u,Oe===0&&Ze(ye)),G!==u?(q=N,Oe++,ke=rr(),Oe--,ke===u?q=void 0:(N=q,q=u),q!==u?(G=[G,q],B=G):(N=B,B=u)):(N=B,B=u),B}function oc(){var B,G,q,ke;return B=N,G=c.substr(N,4),G.toLowerCase()===Q?N+=4:(G=u,Oe===0&&Ze(Me)),G!==u?(q=N,Oe++,ke=rr(),Oe--,ke===u?q=void 0:(N=q,q=u),q!==u?(G=[G,q],B=G):(N=B,B=u)):(N=B,B=u),B}function Bp(){var B,G,q,ke;return B=N,G=c.substr(N,3),G.toLowerCase()===ee?N+=3:(G=u,Oe===0&&Ze(ze)),G!==u?(q=N,Oe++,ke=rr(),Oe--,ke===u?q=void 0:(N=q,q=u),q!==u?(G=[G,q],B=G):(N=B,B=u)):(N=B,B=u),B}function Up(){var B,G,q,ke;return B=N,G=c.substr(N,4),G.toLowerCase()===X?N+=4:(G=u,Oe===0&&Ze(Ve)),G!==u?(q=N,Oe++,ke=rr(),Oe--,ke===u?q=void 0:(N=q,q=u),q!==u?(G=[G,q],B=G):(N=B,B=u)):(N=B,B=u),B}function Vp(){var B,G,q,ke;return B=N,G=c.substr(N,6),G.toLowerCase()===te?N+=6:(G=u,Oe===0&&Ze(rt)),G!==u?(q=N,Oe++,ke=rr(),Oe--,ke===u?q=void 0:(N=q,q=u),q!==u?(G=[G,q],B=G):(N=B,B=u)):(N=B,B=u),B}function Hp(){var B,G,q,ke;return B=N,G=c.substr(N,5),G.toLowerCase()===ae?N+=5:(G=u,Oe===0&&Ze(kt)),G!==u?(q=N,Oe++,ke=rr(),Oe--,ke===u?q=void 0:(N=q,q=u),q!==u?(G=[G,q],B=G):(N=B,B=u)):(N=B,B=u),B}function yu(){var B,G,q,ke;return B=N,G=c.substr(N,7),G.toLowerCase()===ue?N+=7:(G=u,Oe===0&&Ze(bt)),G!==u?(q=N,Oe++,ke=rr(),Oe--,ke===u?q=void 0:(N=q,q=u),q!==u?(G=[G,q],B=G):(N=B,B=u)):(N=B,B=u),B}function Is(){var B,G,q,ke;return B=N,G=c.substr(N,8),G.toLowerCase()===he?N+=8:(G=u,Oe===0&&Ze(Et)),G!==u?(q=N,Oe++,ke=rr(),Oe--,ke===u?q=void 0:(N=q,q=u),q!==u?(G=[G,q],B=G):(N=B,B=u)):(N=B,B=u),B}function Wp(){var B,G,q,ke;return B=N,G=c.substr(N,3),G.toLowerCase()===ie?N+=3:(G=u,Oe===0&&Ze(Pt)),G!==u?(q=N,Oe++,ke=rr(),Oe--,ke===u?q=void 0:(N=q,q=u),q!==u?(G=[G,q],B=G):(N=B,B=u)):(N=B,B=u),B}function jd(){var B,G,q,ke;return B=N,G=c.substr(N,5),G.toLowerCase()===le?N+=5:(G=u,Oe===0&&Ze(Kt)),G!==u?(q=N,Oe++,ke=rr(),Oe--,ke===u?q=void 0:(N=q,q=u),q!==u?(G=[G,q],B=G):(N=B,B=u)):(N=B,B=u),B}function Nd(){var B,G,q,ke;return B=N,G=c.substr(N,9),G.toLowerCase()===se?N+=9:(G=u,Oe===0&&Ze(At)),G!==u?(q=N,Oe++,ke=rr(),Oe--,ke===u?q=void 0:(N=q,q=u),q!==u?(G=[G,q],B=G):(N=B,B=u)):(N=B,B=u),B}function Id(){var B,G,q,ke;return B=N,G=c.substr(N,8),G.toLowerCase()===pe?N+=8:(G=u,Oe===0&&Ze(Ft)),G!==u?(q=N,Oe++,ke=rr(),Oe--,ke===u?q=void 0:(N=q,q=u),q!==u?(G=[G,q],B=G):(N=B,B=u)):(N=B,B=u),B}function Ld(){var B,G,q,ke;return B=N,G=c.substr(N,3),G.toLowerCase()===ne?N+=3:(G=u,Oe===0&&Ze(de)),G!==u?(q=N,Oe++,ke=rr(),Oe--,ke===u?q=void 0:(N=q,q=u),q!==u?(G=[G,q],B=G):(N=B,B=u)):(N=B,B=u),B}function zd(){var B,G,q,ke;return B=N,G=c.substr(N,2),G.toLowerCase()===me?N+=2:(G=u,Oe===0&&Ze(fe)),G!==u?(q=N,Oe++,ke=rr(),Oe--,ke===u?q=void 0:(N=q,q=u),q!==u?(G=[G,q],B=G):(N=B,B=u)):(N=B,B=u),B}function Ls(){var B,G,q,ke;return B=N,G=c.substr(N,6),G.toLowerCase()===xe?N+=6:(G=u,Oe===0&&Ze(Fe)),G!==u?(q=N,Oe++,ke=rr(),Oe--,ke===u?q=void 0:(N=q,q=u),q!==u?(G=[G,q],B=G):(N=B,B=u)):(N=B,B=u),B}function qp(){var B,G,q,ke;return B=N,G=c.substr(N,7),G.toLowerCase()===Se?N+=7:(G=u,Oe===0&&Ze(ft)),G!==u?(q=N,Oe++,ke=rr(),Oe--,ke===u?q=void 0:(N=q,q=u),q!==u?(G=[G,q],B=G):(N=B,B=u)):(N=B,B=u),B}function Yp(){var B,G,q,ke;return B=N,G=c.substr(N,9),G.toLowerCase()===ce?N+=9:(G=u,Oe===0&&Ze(Ue)),G!==u?(q=N,Oe++,ke=rr(),Oe--,ke===u?q=void 0:(N=q,q=u),q!==u?(G=[G,q],B=G):(N=B,B=u)):(N=B,B=u),B}function Gp(){var B,G,q,ke;return B=N,G=c.substr(N,8),G.toLowerCase()===Ee?N+=8:(G=u,Oe===0&&Ze(Ot)),G!==u?(q=N,Oe++,ke=rr(),Oe--,ke===u?q=void 0:(N=q,q=u),q!==u?(G=[G,q],B=G):(N=B,B=u)):(N=B,B=u),B}function Fd(){var B,G,q,ke;return B=N,G=c.substr(N,6),G.toLowerCase()===Ge?N+=6:(G=u,Oe===0&&Ze(Yt)),G!==u?(q=N,Oe++,ke=rr(),Oe--,ke===u?q=void 0:(N=q,q=u),q!==u?(G=[G,q],B=G):(N=B,B=u)):(N=B,B=u),B}function _d(){var B,G,q,ke;return B=N,G=c.substr(N,8),G.toLowerCase()===Te?N+=8:(G=u,Oe===0&&Ze(nn)),G!==u?(q=N,Oe++,ke=rr(),Oe--,ke===u?q=void 0:(N=q,q=u),q!==u?(G=[G,q],B=G):(N=B,B=u)):(N=B,B=u),B}function Sl(){var B,G,q,ke;return B=N,G=c.substr(N,6),G.toLowerCase()===je?N+=6:(G=u,Oe===0&&Ze(ve)),G!==u?(q=N,Oe++,ke=rr(),Oe--,ke===u?q=void 0:(N=q,q=u),q!==u?(G=[G,q],B=G):(N=B,B=u)):(N=B,B=u),B}function rr(){var B;return B=c.charAt(N),tt.test(B)?N++:(B=u,Oe===0&&Ze(Re)),B}function fs(){var B,G;for(Oe++,B=[],G=c.charAt(N),Je.test(G)?N++:(G=u,Oe===0&&Ze(xt));G!==u;)B.push(G),G=c.charAt(N),Je.test(G)?N++:(G=u,Oe===0&&Ze(xt));return Oe--,G=u,Oe===0&&Ze(it),B}function Gr(){var B,G;if(Oe++,B=[],G=c.charAt(N),Je.test(G)?N++:(G=u,Oe===0&&Ze(xt)),G!==u)for(;G!==u;)B.push(G),G=c.charAt(N),Je.test(G)?N++:(G=u,Oe===0&&Ze(xt));else B=u;return Oe--,B===u&&(G=u,Oe===0&&Ze(Tt)),B}if(us=v(),f.peg$library)return{peg$result:us,peg$currPos:N,peg$FAILED:u,peg$maxFailExpected:Ka,peg$maxFailPos:ro};if(us!==u&&N===c.length)return us;throw us!==u&&N<c.length&&Ze(Ds()),pu(Ka,ro<c.length?c.charAt(ro):null,ro<c.length?Od(ro,ro+1):Od(ro,ro))}return wS={StartRules:["temporalFilter"],SyntaxError:a,parse:l},wS}var tP;function PJ(){return tP||(tP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TemporalFilterExpression=void 0;const t=Pp(),n=$J(),r=Lk();e.TemporalFilterExpression={parse(l){if(l.match(/^\s*$/))return{parsed:null,log:[]};const c=(0,r.run_parser)(l,n.parse);return c.parsed&&(0,t.isTemporalFilter)(c.parsed)?{parsed:c.parsed,log:[]}:{parsed:null,log:c.log}},unparse(l){if(l===null)return"";switch(l.operator){case"null":return o(l,"null");case"none":return o(l,"none");case"in":return o(l,s(l.in));case"()":return o(l,"("+e.TemporalFilterExpression.unparse(l.expr)+")");case"in_last":return o(l,a(l));case"last":case"next":return o(l,`${l.operator} ${a(l)}`);case"before":return`${l.not?"starting":"before"} ${s(l.before)}`;case"after":return`${l.not?"through":"after"} ${s(l.after)}`;case"to":return o(l,`${s(l.fromMoment)} to ${s(l.toMoment)}`);case"for":return o(l,`${s(l.begin)} for ${a(l)}`);case"or":return l.members.map(c=>e.TemporalFilterExpression.unparse(c)).join(" or ");case"and":return l.members.map(c=>e.TemporalFilterExpression.unparse(c)).join(" and ")}}};function o(l,c){return"not"in l&&l.not?"not "+c:c}function a(l){return l.n==="1"?`1 ${l.units}`:`${l.n} ${l.units}s`}function s(l){switch(l.moment){case"literal":return l.literal;case"now":case"today":case"yesterday":case"tomorrow":return l.moment;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return l.which==="next"?"next "+l.moment:l.moment;case"this":case"next":case"last":return`${l.moment} ${l.units}`;case"ago":return`${a(l)} ago`;case"from_now":return`${a(l)} from now`}}})(SS)),SS}var nP;function AJ(){return nP||(nP=1,(function(e){var t=Pu&&Pu.__createBinding||(Object.create?(function(l,c,f,u){u===void 0&&(u=f);var h=Object.getOwnPropertyDescriptor(c,f);(!h||("get"in h?!c.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return c[f]}}),Object.defineProperty(l,u,h)}):(function(l,c,f,u){u===void 0&&(u=f),l[u]=c[f]})),n=Pu&&Pu.__exportStar||function(l,c){for(var f in l)f!=="default"&&!Object.prototype.hasOwnProperty.call(c,f)&&t(c,l,f)};Object.defineProperty(e,"__esModule",{value:!0}),e.TemporalFilterExpression=e.StringFilterExpression=e.NumberFilterExpression=e.BooleanFilterExpression=void 0,n(Pp(),e);var r=EJ();Object.defineProperty(e,"BooleanFilterExpression",{enumerable:!0,get:function(){return r.BooleanFilterExpression}});var o=MJ();Object.defineProperty(e,"NumberFilterExpression",{enumerable:!0,get:function(){return o.NumberFilterExpression}});var a=OJ();Object.defineProperty(e,"StringFilterExpression",{enumerable:!0,get:function(){return a.StringFilterExpression}});var s=PJ();Object.defineProperty(e,"TemporalFilterExpression",{enumerable:!0,get:function(){return s.TemporalFilterExpression}})})(Pu)),Pu}var ki=AJ();const M0=qa(m.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"})),zk=qa(m.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"})),R0=qa(m.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"})),DJ=qa(m.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"})),rP=e=>e,jJ=()=>{let e=rP;return{configure(t){e=t},generate(t){return e(t)},reset(){e=rP}}},mL=jJ();function ql(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function St(e){if(typeof e!="string")throw new Error(ql(7));return e.charAt(0).toUpperCase()+e.slice(1)}function oP(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function Ql(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function NJ(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var aP={exports:{}},CS,iP;function IJ(){if(iP)return CS;iP=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return CS=e,CS}var kS,sP;function LJ(){if(sP)return kS;sP=1;var e=IJ();function t(){}function n(){}return n.resetWarningCache=t,kS=function(){function r(s,l,c,f,u,h){if(h!==e){var y=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 y.name="Invariant Violation",y}}r.isRequired=r;function o(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},kS}var lP;function zJ(){return lP||(lP=1,aP.exports=LJ()()),aP.exports}var FJ=zJ();const ot=Ql(FJ);function gL(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=gL(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Lt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=gL(e))&&(r&&(r+=" "),r+=t);return r}function sn(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let s="",l=!0;for(let c=0;c<a.length;c+=1){const f=a[c];f&&(s+=(l===!0?"":" ")+t(f),l=!1,n&&n[f]&&(s+=" "+n[f]))}r[o]=s}return r}var cP={exports:{}},Lr={};/**
313
+ * @license React
314
+ * react-is.production.js
315
+ *
316
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
317
+ *
318
+ * This source code is licensed under the MIT license found in the
319
+ * LICENSE file in the root directory of this source tree.
320
+ */var uP;function _J(){if(uP)return Lr;uP=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),v=Symbol.for("react.client.reference");function S(x){if(typeof x=="object"&&x!==null){var w=x.$$typeof;switch(w){case e:switch(x=x.type,x){case n:case o:case r:case c:case f:case y:return x;default:switch(x=x&&x.$$typeof,x){case s:case l:case h:case u:return x;case a:return x;default:return w}}case t:return w}}}return Lr.ContextConsumer=a,Lr.ContextProvider=s,Lr.Element=e,Lr.ForwardRef=l,Lr.Fragment=n,Lr.Lazy=h,Lr.Memo=u,Lr.Portal=t,Lr.Profiler=o,Lr.StrictMode=r,Lr.Suspense=c,Lr.SuspenseList=f,Lr.isContextConsumer=function(x){return S(x)===a},Lr.isContextProvider=function(x){return S(x)===s},Lr.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},Lr.isForwardRef=function(x){return S(x)===l},Lr.isFragment=function(x){return S(x)===n},Lr.isLazy=function(x){return S(x)===h},Lr.isMemo=function(x){return S(x)===u},Lr.isPortal=function(x){return S(x)===t},Lr.isProfiler=function(x){return S(x)===o},Lr.isStrictMode=function(x){return S(x)===r},Lr.isSuspense=function(x){return S(x)===c},Lr.isSuspenseList=function(x){return S(x)===f},Lr.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===o||x===r||x===c||x===f||typeof x=="object"&&x!==null&&(x.$$typeof===h||x.$$typeof===u||x.$$typeof===s||x.$$typeof===a||x.$$typeof===l||x.$$typeof===v||x.getModuleId!==void 0)},Lr.typeOf=S,Lr}var dP;function BJ(){return dP||(dP=1,cP.exports=_J()),cP.exports}var yL=BJ();function el(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 vL(e){if(C.isValidElement(e)||yL.isValidElementType(e)||!el(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=vL(e[n])}),t}function pa(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return el(e)&&el(t)&&Object.keys(t).forEach(o=>{C.isValidElement(t[o])||yL.isValidElementType(t[o])?r[o]=t[o]:el(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&el(e[o])?r[o]=pa(e[o],t[o],n):n.clone?r[o]=el(t[o])?vL(t[o]):t[o]:r[o]=t[o]}),r}function Hm(e,t){return t?pa(e,t,{clone:!1}):e}function fP(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{const a=/min-width:\s*([0-9.]+)/;return+(r.match(a)?.[1]||0)-+(o.match(a)?.[1]||0)});return n.length?n.reduce((r,o)=>{const a=t[o];return delete r[o],r[o]=a,r},{...t}):t}function UJ(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function VJ(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}function HJ(e){const t=(a,s)=>a.replace("@media",s?`@container ${s}`:"@container");function n(a,s){a.up=(...l)=>t(e.breakpoints.up(...l),s),a.down=(...l)=>t(e.breakpoints.down(...l),s),a.between=(...l)=>t(e.breakpoints.between(...l),s),a.only=(...l)=>t(e.breakpoints.only(...l),s),a.not=(...l)=>{const c=t(e.breakpoints.not(...l),s);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const r={},o=a=>(n(r,a),r);return n(o),{...e,containerQueries:o}}const O0={xs:0,sm:600,md:900,lg:1200,xl:1536},pP={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${O0[e]}px)`},WJ={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:O0[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Yl(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||pP;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const o=r.breakpoints||pP;return Object.keys(t).reduce((a,s)=>{if(UJ(o.keys,s)){const l=VJ(r.containerQueries?r:WJ,s);l&&(a[l]=n(t[s],s))}else if(Object.keys(o.values||O0).includes(s)){const l=o.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function qJ(e={}){return e.keys?.reduce((t,n)=>{const r=e.up(n);return t[r]={},t},{})||{}}function hP(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function $0(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Sb(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=$0(e,n)||r,t&&(o=t(o,r,e)),o}function Eo(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=s=>{if(s[t]==null)return null;const l=s[t],c=s.theme,f=$0(c,r)||{};return Yl(s,l,u=>{let h=Sb(f,o,u);return u===h&&typeof u=="string"&&(h=Sb(f,o,`${t}${u==="default"?"":St(u)}`,u)),n===!1?h:{[n]:h}})};return a.propTypes={},a.filterProps=[t],a}function YJ(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const GJ={m:"margin",p:"padding"},KJ={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},mP={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},QJ=YJ(e=>{if(e.length>2)if(mP[e])e=mP[e];else return[e];const[t,n]=e.split(""),r=GJ[t],o=KJ[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),Fk=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],_k=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Fk,..._k];function Vg(e,t,n,r){const o=$0(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?o.startsWith("var(")&&a===0?0:o.startsWith("var(")&&a===1?o:`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const s=Math.abs(a),l=o[s];return a>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof o=="function"?o:()=>{}}function Bk(e){return Vg(e,"spacing",8)}function Hg(e,t){return typeof t=="string"||t==null?t:e(t)}function XJ(e,t){return n=>e.reduce((r,o)=>(r[o]=Hg(t,n),r),{})}function ZJ(e,t,n,r){if(!t.includes(n))return null;const o=QJ(n),a=XJ(o,r),s=e[n];return Yl(e,s,a)}function bL(e,t){const n=Bk(e.theme);return Object.keys(e).map(r=>ZJ(e,t,r,n)).reduce(Hm,{})}function po(e){return bL(e,Fk)}po.propTypes={};po.filterProps=Fk;function ho(e){return bL(e,_k)}ho.propTypes={};ho.filterProps=_k;function P0(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?Hm(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Wi(e){return typeof e!="number"?e:`${e}px solid`}function as(e,t){return Eo({prop:e,themeKey:"borders",transform:t})}const JJ=as("border",Wi),eee=as("borderTop",Wi),tee=as("borderRight",Wi),nee=as("borderBottom",Wi),ree=as("borderLeft",Wi),oee=as("borderColor"),aee=as("borderTopColor"),iee=as("borderRightColor"),see=as("borderBottomColor"),lee=as("borderLeftColor"),cee=as("outline",Wi),uee=as("outlineColor"),A0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Vg(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Hg(t,r)});return Yl(e,e.borderRadius,n)}return null};A0.propTypes={};A0.filterProps=["borderRadius"];P0(JJ,eee,tee,nee,ree,oee,aee,iee,see,lee,A0,cee,uee);const D0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Vg(e.theme,"spacing",8),n=r=>({gap:Hg(t,r)});return Yl(e,e.gap,n)}return null};D0.propTypes={};D0.filterProps=["gap"];const j0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Vg(e.theme,"spacing",8),n=r=>({columnGap:Hg(t,r)});return Yl(e,e.columnGap,n)}return null};j0.propTypes={};j0.filterProps=["columnGap"];const N0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Vg(e.theme,"spacing",8),n=r=>({rowGap:Hg(t,r)});return Yl(e,e.rowGap,n)}return null};N0.propTypes={};N0.filterProps=["rowGap"];const dee=Eo({prop:"gridColumn"}),fee=Eo({prop:"gridRow"}),pee=Eo({prop:"gridAutoFlow"}),hee=Eo({prop:"gridAutoColumns"}),mee=Eo({prop:"gridAutoRows"}),gee=Eo({prop:"gridTemplateColumns"}),yee=Eo({prop:"gridTemplateRows"}),vee=Eo({prop:"gridTemplateAreas"}),bee=Eo({prop:"gridArea"});P0(D0,j0,N0,dee,fee,pee,hee,mee,gee,yee,vee,bee);function Jf(e,t){return t==="grey"?t:e}const xee=Eo({prop:"color",themeKey:"palette",transform:Jf}),See=Eo({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Jf}),wee=Eo({prop:"backgroundColor",themeKey:"palette",transform:Jf});P0(xee,See,wee);function gi(e){return e<=1&&e!==0?`${e*100}%`:e}const Cee=Eo({prop:"width",transform:gi}),Uk=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||O0[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:gi(n)}};return Yl(e,e.maxWidth,t)}return null};Uk.filterProps=["maxWidth"];const kee=Eo({prop:"minWidth",transform:gi}),Eee=Eo({prop:"height",transform:gi}),Tee=Eo({prop:"maxHeight",transform:gi}),Mee=Eo({prop:"minHeight",transform:gi});Eo({prop:"size",cssProperty:"width",transform:gi});Eo({prop:"size",cssProperty:"height",transform:gi});const Ree=Eo({prop:"boxSizing"});P0(Cee,Uk,kee,Eee,Tee,Mee,Ree);const Wg={border:{themeKey:"borders",transform:Wi},borderTop:{themeKey:"borders",transform:Wi},borderRight:{themeKey:"borders",transform:Wi},borderBottom:{themeKey:"borders",transform:Wi},borderLeft:{themeKey:"borders",transform:Wi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Wi},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:A0},color:{themeKey:"palette",transform:Jf},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Jf},backgroundColor:{themeKey:"palette",transform:Jf},p:{style:ho},pt:{style:ho},pr:{style:ho},pb:{style:ho},pl:{style:ho},px:{style:ho},py:{style:ho},padding:{style:ho},paddingTop:{style:ho},paddingRight:{style:ho},paddingBottom:{style:ho},paddingLeft:{style:ho},paddingX:{style:ho},paddingY:{style:ho},paddingInline:{style:ho},paddingInlineStart:{style:ho},paddingInlineEnd:{style:ho},paddingBlock:{style:ho},paddingBlockStart:{style:ho},paddingBlockEnd:{style:ho},m:{style:po},mt:{style:po},mr:{style:po},mb:{style:po},ml:{style:po},mx:{style:po},my:{style:po},margin:{style:po},marginTop:{style:po},marginRight:{style:po},marginBottom:{style:po},marginLeft:{style:po},marginX:{style:po},marginY:{style:po},marginInline:{style:po},marginInlineStart:{style:po},marginInlineEnd:{style:po},marginBlock:{style:po},marginBlockStart:{style:po},marginBlockEnd:{style:po},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:D0},rowGap:{style:N0},columnGap:{style:j0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:gi},maxWidth:{style:Uk},minWidth:{transform:gi},height:{transform:gi},maxHeight:{transform:gi},minHeight:{transform:gi},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Oee(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function $ee(e,t){return typeof e=="function"?e(t):e}function Pee(){function e(n,r,o,a){const s={[n]:r,theme:o},l=a[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:f,transform:u,style:h}=l;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const y=$0(o,f)||{};return h?h(s):Yl(s,r,v=>{let S=Sb(y,u,v);return v===S&&typeof v=="string"&&(S=Sb(y,u,`${n}${v==="default"?"":St(v)}`,v)),c===!1?S:{[c]:S}})}function t(n){const{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;const s=o.unstable_sxConfig??Wg;function l(c){let f=c;if(typeof c=="function")f=c(o);else if(typeof c!="object")return c;if(!f)return null;const u=qJ(o.breakpoints),h=Object.keys(u);let y=u;return Object.keys(f).forEach(v=>{const S=$ee(f[v],o);if(S!=null)if(typeof S=="object")if(s[v])y=Hm(y,e(v,S,o,s));else{const x=Yl({theme:o},S,w=>({[v]:w}));Oee(x,S)?y[v]=t({sx:S,theme:o,nested:!0}):y=Hm(y,x)}else y=Hm(y,e(v,S,o,s))}),!a&&o.modularCssLayers?{"@layer sx":fP(o,hP(h,y))}:fP(o,hP(h,y))}return Array.isArray(r)?r.map(l):l(r)}return t}const mp=Pee();mp.filterProps=["sx"];const Aee=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Wg;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Dee(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=Aee(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...s)=>{const l=t(...s);return el(l)?{...r,...l}:r}:a={...r,...t},{...o,sx:a}}function jee(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Vk(e,t=0,n=1){return jee(e,t,n)}function Nee(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Gc(e){if(e.type)return e;if(e.charAt(0)==="#")return Gc(Nee(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(ql(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(ql(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}const Iee=e=>{const t=Gc(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Pm=(e,t)=>{try{return Iee(e)}catch{return e}};function I0(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,a)=>a<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function xL(e){e=Gc(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),s=(f,u=(f+n/30)%12)=>o-a*Math.max(Math.min(u-3,9-u,1),-1);let l="rgb";const c=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),I0({type:l,values:c})}function Nw(e){e=Gc(e);let t=e.type==="hsl"||e.type==="hsla"?Gc(xL(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Lee(e,t){const n=Nw(e),r=Nw(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function wb(e,t){return e=Gc(e),t=Vk(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,I0(e)}function Au(e,t,n){try{return wb(e,t)}catch{return e}}function L0(e,t){if(e=Gc(e),t=Vk(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return I0(e)}function Rr(e,t,n){try{return L0(e,t)}catch{return e}}function z0(e,t){if(e=Gc(e),t=Vk(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return I0(e)}function Or(e,t,n){try{return z0(e,t)}catch{return e}}function Iw(e,t=.15){return Nw(e)>.5?L0(e,t):z0(e,t)}function xv(e,t,n){try{return Iw(e,t)}catch{return e}}const fg={black:"#000",white:"#fff"},zee={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"},Ef={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Tf={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},rm={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Mf={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Rf={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Of={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function SL(){return{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:fg.white,default:fg.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}}}const wL=SL();function CL(){return{text:{primary:fg.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:fg.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}}}const Lw=CL();function gP(e,t,n,r){const o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=z0(e.main,o):t==="dark"&&(e.dark=L0(e.main,a)))}function yP(e,t,n,r,o){const a=o.light||o,s=o.dark||o*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(s*100).toFixed(0)}%)`))}function Fee(e="light"){return e==="dark"?{main:Mf[200],light:Mf[50],dark:Mf[400]}:{main:Mf[700],light:Mf[400],dark:Mf[800]}}function _ee(e="light"){return e==="dark"?{main:Ef[200],light:Ef[50],dark:Ef[400]}:{main:Ef[500],light:Ef[300],dark:Ef[700]}}function Bee(e="light"){return e==="dark"?{main:Tf[500],light:Tf[300],dark:Tf[700]}:{main:Tf[700],light:Tf[400],dark:Tf[800]}}function Uee(e="light"){return e==="dark"?{main:Rf[400],light:Rf[300],dark:Rf[700]}:{main:Rf[700],light:Rf[500],dark:Rf[900]}}function Vee(e="light"){return e==="dark"?{main:Of[400],light:Of[300],dark:Of[700]}:{main:Of[800],light:Of[500],dark:Of[900]}}function Hee(e="light"){return e==="dark"?{main:rm[400],light:rm[300],dark:rm[700]}:{main:"#ed6c02",light:rm[500],dark:rm[900]}}function Wee(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Hk(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...a}=e,s=e.primary||Fee(t),l=e.secondary||_ee(t),c=e.error||Bee(t),f=e.info||Uee(t),u=e.success||Vee(t),h=e.warning||Hee(t);function y(x){return o?Wee(x):Lee(x,Lw.text.primary)>=n?Lw.text.primary:wL.text.primary}const v=({color:x,name:w,mainShade:b=500,lightShade:k=300,darkShade:E=700})=>{if(x={...x},!x.main&&x[b]&&(x.main=x[b]),!x.hasOwnProperty("main"))throw new Error(ql(11,w?` (${w})`:"",b));if(typeof x.main!="string")throw new Error(ql(12,w?` (${w})`:"",JSON.stringify(x.main)));return o?(yP(o,x,"light",k,r),yP(o,x,"dark",E,r)):(gP(x,"light",k,r),gP(x,"dark",E,r)),x.contrastText||(x.contrastText=y(x.main)),x};let S;return t==="light"?S=SL():t==="dark"&&(S=CL()),pa({common:{...fg},mode:t,primary:v({color:s,name:"primary"}),secondary:v({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:c,name:"error"}),warning:v({color:h,name:"warning"}),info:v({color:f,name:"info"}),success:v({color:u,name:"success"}),grey:zee,contrastThreshold:n,getContrastText:y,augmentColor:v,tonalOffset:r,...S},a)}function qee(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Yee={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Gee(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Kee=/[A-Z]|^ms/g,Qee=/_EMO_([^_]+?)_([^]*?)_EMO_/g,kL=function(e){return e.charCodeAt(1)===45},vP=function(e){return e!=null&&typeof e!="boolean"},ES=Gee(function(e){return kL(e)?e:e.replace(Kee,"-$&").toLowerCase()}),bP=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(Qee,function(n,r,o){return zc={name:r,styles:o,next:zc},r})}return Yee[e]!==1&&!kL(e)&&typeof t=="number"&&t!==0?t+"px":t};function Cb(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return zc={name:o.name,styles:o.styles,next:zc},o.name;var a=n;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)zc={name:s.name,styles:s.styles,next:zc},s=s.next;var l=a.styles+";";return l}return Xee(e,t,n)}}var c=n;return c}function Xee(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Cb(e,t,n[o])+";";else for(var a in n){var s=n[a];if(typeof s!="object"){var l=s;vP(l)&&(r+=ES(a)+":"+bP(a,l)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var c=0;c<s.length;c++)vP(s[c])&&(r+=ES(a)+":"+bP(a,s[c])+";");else{var f=Cb(e,t,s);switch(a){case"animation":case"animationName":{r+=ES(a)+":"+f+";";break}default:r+=a+"{"+f+"}"}}}return r}var xP=/label:\s*([^\s;{]+)\s*(;|$)/g,zc;function Zee(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";zc=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,o+=Cb(n,t,a);else{var s=a;o+=s[0]}for(var l=1;l<e.length;l++)if(o+=Cb(n,t,e[l]),r){var c=a;o+=c[l]}xP.lastIndex=0;for(var f="",u;(u=xP.exec(o))!==null;)f+="-"+u[1];var h=qee(o)+f;return{name:h,styles:o,next:zc}}function Jee(e,t){return ib(e,t)}function ete(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const SP=[];function td(e){return SP[0]=e,Zee(SP)}const Lo=typeof window<"u"?C.useLayoutEffect:C.useEffect;function tte(e){return Object.keys(e).length===0}function EL(e=null){const t=C.useContext(kp);return!t||tte(t)?e:t}const nte=C.createContext(),Rs=()=>C.useContext(nte)??!1;function pg(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const a=o;if(a==="components"||a==="slots")r[a]={...e[a],...r[a]};else if(a==="componentsProps"||a==="slotProps"){const s=e[a],l=t[a];if(!l)r[a]=s||{};else if(!s)r[a]=l;else{r[a]={...l};for(const c in s)if(Object.prototype.hasOwnProperty.call(s,c)){const f=c;r[a][f]=pg(s[f],l[f],n)}}}else a==="className"&&n&&t.className?r.className=Lt(e?.className,t?.className):a==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[a]===void 0&&(r[a]=e[a])}return r}const rte=C.createContext(void 0);function ote(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?pg(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?pg(o,r,t.components.mergeClassNameAndStyle):r}function ate({props:e,name:t}){const n=C.useContext(rte);return ote({props:e,name:t,theme:{components:n}})}let wP=0;function ite(e){const[t,n]=C.useState(e),r=e||t;return C.useEffect(()=>{t==null&&(wP+=1,n(`mui-${wP}`))},[t]),r}const ste={...rd},CP=ste.useId;function Os(e){if(CP!==void 0){const t=CP();return e??t}return ite(e)}const lte=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function cte(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=lte(t),s=Object.keys(a);function l(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function c(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-r/100}${n})`}function f(y,v){const S=s.indexOf(v);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(S!==-1&&typeof t[s[S]]=="number"?t[s[S]]:v)-r/100}${n})`}function u(y){return s.indexOf(y)+1<s.length?f(y,s[s.indexOf(y)+1]):l(y)}function h(y){const v=s.indexOf(y);return v===0?l(s[1]):v===s.length-1?c(s[v]):f(y,s[s.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:s,values:a,up:l,down:c,between:f,only:u,not:h,unit:n,...o}}const ute={borderRadius:4};function dte(e=8,t=Bk({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function fte(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Wk(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...s}=e,l=cte(n),c=dte(o);let f=pa({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...ute,...a}},s);return f=HJ(f),f.applyStyles=fte,f=t.reduce((u,h)=>pa(u,h),f),f.unstable_sxConfig={...Wg,...s?.unstable_sxConfig},f.unstable_sx=function(u){return mp({sx:u,theme:this})},f}const pte=Wk();function hte(e=pte){return EL(e)}const kP=(e,t,n,r=[])=>{let o=e;t.forEach((a,s)=>{s===t.length-1?Array.isArray(o)?o[Number(a)]=n:o&&typeof o=="object"&&(o[a]=n):o&&typeof o=="object"&&(o[a]||(o[a]=r.includes(a)?[]:{}),o=o[a])})},mte=(e,t,n)=>{function r(o,a=[],s=[]){Object.entries(o).forEach(([l,c])=>{(!n||n&&!n([...a,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?r(c,[...a,l],Array.isArray(c)?[...s,l]:s):t([...a,l],c,s))})}r(e)},gte=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function TS(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},s={};return mte(e,(l,c,f)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(l,c))){const u=`--${n?`${n}-`:""}${l.join("-")}`,h=gte(l,c);Object.assign(o,{[u]:h}),kP(a,l,`var(${u})`,f),kP(s,l,`var(${u}, ${h})`,f)}},l=>l[0]==="vars"),{css:o,vars:a,varsWithDefaults:s}}function yte(e,t={}){const{getSelector:n=b,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:a}=t,{colorSchemes:s={},components:l,defaultColorScheme:c="light",...f}=e,{vars:u,css:h,varsWithDefaults:y}=TS(f,t);let v=y;const S={},{[c]:x,...w}=s;if(Object.entries(w||{}).forEach(([k,E])=>{const{vars:O,css:$,varsWithDefaults:A}=TS(E,t);v=pa(v,A),S[k]={css:$,vars:O}}),x){const{css:k,vars:E,varsWithDefaults:O}=TS(x,t);v=pa(v,O),S[c]={css:k,vars:E}}function b(k,E){let O=o;if(o==="class"&&(O=".%s"),o==="data"&&(O="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(O=`[${o}="%s"]`),k){if(O==="media")return e.defaultColorScheme===k?":root":{[`@media (prefers-color-scheme: ${s[k]?.palette?.mode||k})`]:{":root":E}};if(O)return e.defaultColorScheme===k?`:root, ${O.replace("%s",String(k))}`:O.replace("%s",String(k))}return":root"}return{vars:v,generateThemeVars:()=>{let k={...u};return Object.entries(S).forEach(([,{vars:E}])=>{k=pa(k,E)}),k},generateStyleSheets:()=>{const k=[],E=e.defaultColorScheme||"light";function O(I,j){Object.keys(j).length&&k.push(typeof I=="string"?{[I]:{...j}}:I)}O(n(void 0,{...h}),h);const{[E]:$,...A}=S;if($){const{css:I}=$,j=s[E]?.palette?.mode,_=!r&&j?{colorScheme:j,...I}:{...I};O(n(E,{..._}),_)}return Object.entries(A).forEach(([I,{css:j}])=>{const _=s[I]?.palette?.mode,W=!r&&_?{colorScheme:_,...j}:{...j};O(n(I,{...W}),W)}),a&&k.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),k}}}function vte(e){const t={};return Object.entries(e).forEach(n=>{const[r,o]=n;typeof o=="object"&&(t[r]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}function bte(e){return function(t){return e==="media"?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:e==="class"?`.${t} &`:e==="data"?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}const xte={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 cn(e,t,n="Mui"){const r=xte[t];return r?`${n}-${r}`:`${mL.generate(e)}-${t}`}function Ste(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function wte(e){return Math.round(e*1e5)/1e5}const EP={textTransform:"uppercase"},TP='"Roboto", "Helvetica", "Arial", sans-serif';function Cte(e,t){const{fontFamily:n=TP,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:f,pxToRem:u,...h}=typeof t=="function"?t(e):t,y=r/14,v=u||(w=>`${w/c*y}rem`),S=(w,b,k,E,O)=>({fontFamily:n,fontWeight:w,fontSize:v(b),lineHeight:k,...n===TP?{letterSpacing:`${wte(E/b)}em`}:{},...O,...f}),x={h1:S(o,96,1.167,-1.5),h2:S(o,60,1.2,-.5),h3:S(a,48,1.167,0),h4:S(a,34,1.235,.25),h5:S(a,24,1.334,0),h6:S(s,20,1.6,.15),subtitle1:S(a,16,1.75,.15),subtitle2:S(s,14,1.57,.1),body1:S(a,16,1.5,.15),body2:S(a,14,1.43,.15),button:S(s,14,1.75,.4,EP),caption:S(a,12,1.66,.4),overline:S(a,12,2.66,1,EP),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return pa({htmlFontSize:c,pxToRem:v,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l,...x},h,{clone:!1})}const kte=.2,Ete=.14,Tte=.12;function Zr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${kte})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Ete})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Tte})`].join(",")}const Mte=["none",Zr(0,2,1,-1,0,1,1,0,0,1,3,0),Zr(0,3,1,-2,0,2,2,0,0,1,5,0),Zr(0,3,3,-2,0,3,4,0,0,1,8,0),Zr(0,2,4,-1,0,4,5,0,0,1,10,0),Zr(0,3,5,-1,0,5,8,0,0,1,14,0),Zr(0,3,5,-1,0,6,10,0,0,1,18,0),Zr(0,4,5,-2,0,7,10,1,0,2,16,1),Zr(0,5,5,-3,0,8,10,1,0,3,14,2),Zr(0,5,6,-3,0,9,12,1,0,3,16,2),Zr(0,6,6,-3,0,10,14,1,0,4,18,3),Zr(0,6,7,-4,0,11,15,1,0,4,20,3),Zr(0,7,8,-4,0,12,17,2,0,5,22,4),Zr(0,7,8,-4,0,13,19,2,0,5,24,4),Zr(0,7,9,-4,0,14,21,2,0,5,26,4),Zr(0,8,9,-5,0,15,22,2,0,6,28,5),Zr(0,8,10,-5,0,16,24,2,0,6,30,5),Zr(0,8,11,-5,0,17,26,2,0,6,32,5),Zr(0,9,11,-5,0,18,28,2,0,7,34,6),Zr(0,9,12,-6,0,19,29,2,0,7,36,6),Zr(0,10,13,-6,0,20,31,3,0,8,38,7),Zr(0,10,13,-6,0,21,33,3,0,8,40,7),Zr(0,10,14,-6,0,22,35,3,0,8,42,7),Zr(0,11,14,-7,0,23,36,3,0,9,44,8),Zr(0,11,15,-7,0,24,38,3,0,9,46,8)],Rte={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)"},Ote={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function MP(e){return`${Math.round(e)}ms`}function $te(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Pte(e){const t={...Rte,...e.easing},n={...Ote,...e.duration};return{getAutoHeightDuration:$te,create:(r=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0,...c}=o;return(Array.isArray(r)?r:[r]).map(f=>`${f} ${typeof a=="string"?a:MP(a)} ${s} ${typeof l=="string"?l:MP(l)}`).join(",")},...e,easing:t,duration:n}}const Ate={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Dte(e){return el(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function TL(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let a=0;a<o.length;a++){const[s,l]=o[a];!Dte(l)||s.startsWith("unstable_")?delete r[s]:el(l)&&(r[s]={...l},n(r[s]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
321
+
322
+ const theme = ${JSON.stringify(t,null,2)};
323
+
324
+ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
325
+ theme.transitions = createTransitions(theme.transitions || {});
326
+
327
+ export default theme;`}function RP(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const jte=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function Nte(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:wb(t,jte(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${RP(n)})`:z0(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${RP(n)})`:L0(t,n)}})}function zw(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:s={},typography:l={},shape:c,colorSpace:f,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(ql(20));const h=Hk({...a,colorSpace:f}),y=Wk(e);let v=pa(y,{mixins:Ste(y.breakpoints,r),palette:h,shadows:Mte.slice(),typography:Cte(h,l),transitions:Pte(s),zIndex:{...Ate}});return v=pa(v,u),v=t.reduce((S,x)=>pa(S,x),v),v.unstable_sxConfig={...Wg,...u?.unstable_sxConfig},v.unstable_sx=function(S){return mp({sx:S,theme:this})},v.toRuntimeSource=TL,Nte(v),v}function Fw(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const Ite=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Fw(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function ML(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function RL(e){return e==="dark"?Ite:[]}function Lte(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...a}=e,s=Hk({...t,colorSpace:o});return{palette:s,opacity:{...ML(s.mode),...n},overlays:r||RL(s.mode),...a}}function zte(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const Fte=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],_te=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return Fte(e.cssVarPrefix).forEach(l=>{s[l]=n[l],delete n[l]}),a==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:a?{[a.replace("%s",t)]:s,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...s}}}if(a&&a!=="media")return`${r}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace("%s",String(t))}return r};function Bte(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function dt(e,t,n){!e[t]&&n&&(e[t]=n)}function Am(e){return typeof e!="string"||!e.startsWith("hsl")?e:xL(e)}function zl(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Pm(Am(e[t])))}function Ute(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const qs=e=>{try{return e()}catch{}},Vte=(e="mui")=>sN(e);function MS(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const a=o==="dark"?"dark":"light";if(!r){t[o]=Lte({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}const{palette:s,...l}=zw({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[o]={...n,palette:s,opacity:{...ML(a),...n?.opacity},overlays:n?.overlays||RL(a)},l}function Hte(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",nativeColor:s=!1,shouldSkipGeneratingVar:l=zte,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:f=":root",...u}=e,h=Object.keys(n)[0],y=r||(n.light&&h!=="light"?"light":h),v=Vte(a),{[y]:S,light:x,dark:w,...b}=n,k={...b};let E=S;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(E=!0),!E)throw new Error(ql(21,y));let O;s&&(O="oklch");const $=MS(O,k,E,u,y);x&&!k.light&&MS(O,k,x,void 0,"light"),w&&!k.dark&&MS(O,k,w,void 0,"dark");let A={defaultColorScheme:y,...$,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:f,getCssVar:v,colorSchemes:k,font:{...vte($.typography),...$.font},spacing:Ute(u.spacing)};Object.keys(A.colorSchemes).forEach(U=>{const T=A.colorSchemes[U].palette,L=H=>{const D=H.split("-"),K=D[1],Q=D[2];return v(H,T[K][Q])};T.mode==="light"&&(dt(T.common,"background","#fff"),dt(T.common,"onBackground","#000")),T.mode==="dark"&&(dt(T.common,"background","#000"),dt(T.common,"onBackground","#fff"));function F(H,D,K){if(O){let Q;return H===Au&&(Q=`transparent ${((1-K)*100).toFixed(0)}%`),H===Rr&&(Q=`#000 ${(K*100).toFixed(0)}%`),H===Or&&(Q=`#fff ${(K*100).toFixed(0)}%`),`color-mix(in ${O}, ${D}, ${Q})`}return H(D,K)}if(Bte(T,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),T.mode==="light"){dt(T.Alert,"errorColor",F(Rr,T.error.light,.6)),dt(T.Alert,"infoColor",F(Rr,T.info.light,.6)),dt(T.Alert,"successColor",F(Rr,T.success.light,.6)),dt(T.Alert,"warningColor",F(Rr,T.warning.light,.6)),dt(T.Alert,"errorFilledBg",L("palette-error-main")),dt(T.Alert,"infoFilledBg",L("palette-info-main")),dt(T.Alert,"successFilledBg",L("palette-success-main")),dt(T.Alert,"warningFilledBg",L("palette-warning-main")),dt(T.Alert,"errorFilledColor",qs(()=>T.getContrastText(T.error.main))),dt(T.Alert,"infoFilledColor",qs(()=>T.getContrastText(T.info.main))),dt(T.Alert,"successFilledColor",qs(()=>T.getContrastText(T.success.main))),dt(T.Alert,"warningFilledColor",qs(()=>T.getContrastText(T.warning.main))),dt(T.Alert,"errorStandardBg",F(Or,T.error.light,.9)),dt(T.Alert,"infoStandardBg",F(Or,T.info.light,.9)),dt(T.Alert,"successStandardBg",F(Or,T.success.light,.9)),dt(T.Alert,"warningStandardBg",F(Or,T.warning.light,.9)),dt(T.Alert,"errorIconColor",L("palette-error-main")),dt(T.Alert,"infoIconColor",L("palette-info-main")),dt(T.Alert,"successIconColor",L("palette-success-main")),dt(T.Alert,"warningIconColor",L("palette-warning-main")),dt(T.AppBar,"defaultBg",L("palette-grey-100")),dt(T.Avatar,"defaultBg",L("palette-grey-400")),dt(T.Button,"inheritContainedBg",L("palette-grey-300")),dt(T.Button,"inheritContainedHoverBg",L("palette-grey-A100")),dt(T.Chip,"defaultBorder",L("palette-grey-400")),dt(T.Chip,"defaultAvatarColor",L("palette-grey-700")),dt(T.Chip,"defaultIconColor",L("palette-grey-700")),dt(T.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),dt(T.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),dt(T.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),dt(T.LinearProgress,"primaryBg",F(Or,T.primary.main,.62)),dt(T.LinearProgress,"secondaryBg",F(Or,T.secondary.main,.62)),dt(T.LinearProgress,"errorBg",F(Or,T.error.main,.62)),dt(T.LinearProgress,"infoBg",F(Or,T.info.main,.62)),dt(T.LinearProgress,"successBg",F(Or,T.success.main,.62)),dt(T.LinearProgress,"warningBg",F(Or,T.warning.main,.62)),dt(T.Skeleton,"bg",O?F(Au,T.text.primary,.11):`rgba(${L("palette-text-primaryChannel")} / 0.11)`),dt(T.Slider,"primaryTrack",F(Or,T.primary.main,.62)),dt(T.Slider,"secondaryTrack",F(Or,T.secondary.main,.62)),dt(T.Slider,"errorTrack",F(Or,T.error.main,.62)),dt(T.Slider,"infoTrack",F(Or,T.info.main,.62)),dt(T.Slider,"successTrack",F(Or,T.success.main,.62)),dt(T.Slider,"warningTrack",F(Or,T.warning.main,.62));const H=O?F(Rr,T.background.default,.6825):xv(T.background.default,.8);dt(T.SnackbarContent,"bg",H),dt(T.SnackbarContent,"color",qs(()=>O?Lw.text.primary:T.getContrastText(H))),dt(T.SpeedDialAction,"fabHoverBg",xv(T.background.paper,.15)),dt(T.StepConnector,"border",L("palette-grey-400")),dt(T.StepContent,"border",L("palette-grey-400")),dt(T.Switch,"defaultColor",L("palette-common-white")),dt(T.Switch,"defaultDisabledColor",L("palette-grey-100")),dt(T.Switch,"primaryDisabledColor",F(Or,T.primary.main,.62)),dt(T.Switch,"secondaryDisabledColor",F(Or,T.secondary.main,.62)),dt(T.Switch,"errorDisabledColor",F(Or,T.error.main,.62)),dt(T.Switch,"infoDisabledColor",F(Or,T.info.main,.62)),dt(T.Switch,"successDisabledColor",F(Or,T.success.main,.62)),dt(T.Switch,"warningDisabledColor",F(Or,T.warning.main,.62)),dt(T.TableCell,"border",F(Or,F(Au,T.divider,1),.88)),dt(T.Tooltip,"bg",F(Au,T.grey[700],.92))}if(T.mode==="dark"){dt(T.Alert,"errorColor",F(Or,T.error.light,.6)),dt(T.Alert,"infoColor",F(Or,T.info.light,.6)),dt(T.Alert,"successColor",F(Or,T.success.light,.6)),dt(T.Alert,"warningColor",F(Or,T.warning.light,.6)),dt(T.Alert,"errorFilledBg",L("palette-error-dark")),dt(T.Alert,"infoFilledBg",L("palette-info-dark")),dt(T.Alert,"successFilledBg",L("palette-success-dark")),dt(T.Alert,"warningFilledBg",L("palette-warning-dark")),dt(T.Alert,"errorFilledColor",qs(()=>T.getContrastText(T.error.dark))),dt(T.Alert,"infoFilledColor",qs(()=>T.getContrastText(T.info.dark))),dt(T.Alert,"successFilledColor",qs(()=>T.getContrastText(T.success.dark))),dt(T.Alert,"warningFilledColor",qs(()=>T.getContrastText(T.warning.dark))),dt(T.Alert,"errorStandardBg",F(Rr,T.error.light,.9)),dt(T.Alert,"infoStandardBg",F(Rr,T.info.light,.9)),dt(T.Alert,"successStandardBg",F(Rr,T.success.light,.9)),dt(T.Alert,"warningStandardBg",F(Rr,T.warning.light,.9)),dt(T.Alert,"errorIconColor",L("palette-error-main")),dt(T.Alert,"infoIconColor",L("palette-info-main")),dt(T.Alert,"successIconColor",L("palette-success-main")),dt(T.Alert,"warningIconColor",L("palette-warning-main")),dt(T.AppBar,"defaultBg",L("palette-grey-900")),dt(T.AppBar,"darkBg",L("palette-background-paper")),dt(T.AppBar,"darkColor",L("palette-text-primary")),dt(T.Avatar,"defaultBg",L("palette-grey-600")),dt(T.Button,"inheritContainedBg",L("palette-grey-800")),dt(T.Button,"inheritContainedHoverBg",L("palette-grey-700")),dt(T.Chip,"defaultBorder",L("palette-grey-700")),dt(T.Chip,"defaultAvatarColor",L("palette-grey-300")),dt(T.Chip,"defaultIconColor",L("palette-grey-300")),dt(T.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),dt(T.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),dt(T.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),dt(T.LinearProgress,"primaryBg",F(Rr,T.primary.main,.5)),dt(T.LinearProgress,"secondaryBg",F(Rr,T.secondary.main,.5)),dt(T.LinearProgress,"errorBg",F(Rr,T.error.main,.5)),dt(T.LinearProgress,"infoBg",F(Rr,T.info.main,.5)),dt(T.LinearProgress,"successBg",F(Rr,T.success.main,.5)),dt(T.LinearProgress,"warningBg",F(Rr,T.warning.main,.5)),dt(T.Skeleton,"bg",O?F(Au,T.text.primary,.13):`rgba(${L("palette-text-primaryChannel")} / 0.13)`),dt(T.Slider,"primaryTrack",F(Rr,T.primary.main,.5)),dt(T.Slider,"secondaryTrack",F(Rr,T.secondary.main,.5)),dt(T.Slider,"errorTrack",F(Rr,T.error.main,.5)),dt(T.Slider,"infoTrack",F(Rr,T.info.main,.5)),dt(T.Slider,"successTrack",F(Rr,T.success.main,.5)),dt(T.Slider,"warningTrack",F(Rr,T.warning.main,.5));const H=O?F(Or,T.background.default,.985):xv(T.background.default,.98);dt(T.SnackbarContent,"bg",H),dt(T.SnackbarContent,"color",qs(()=>O?wL.text.primary:T.getContrastText(H))),dt(T.SpeedDialAction,"fabHoverBg",xv(T.background.paper,.15)),dt(T.StepConnector,"border",L("palette-grey-600")),dt(T.StepContent,"border",L("palette-grey-600")),dt(T.Switch,"defaultColor",L("palette-grey-300")),dt(T.Switch,"defaultDisabledColor",L("palette-grey-600")),dt(T.Switch,"primaryDisabledColor",F(Rr,T.primary.main,.55)),dt(T.Switch,"secondaryDisabledColor",F(Rr,T.secondary.main,.55)),dt(T.Switch,"errorDisabledColor",F(Rr,T.error.main,.55)),dt(T.Switch,"infoDisabledColor",F(Rr,T.info.main,.55)),dt(T.Switch,"successDisabledColor",F(Rr,T.success.main,.55)),dt(T.Switch,"warningDisabledColor",F(Rr,T.warning.main,.55)),dt(T.TableCell,"border",F(Rr,F(Au,T.divider,1),.68)),dt(T.Tooltip,"bg",F(Au,T.grey[700],.92))}zl(T.background,"default"),zl(T.background,"paper"),zl(T.common,"background"),zl(T.common,"onBackground"),zl(T,"divider"),Object.keys(T).forEach(H=>{const D=T[H];H!=="tonalOffset"&&D&&typeof D=="object"&&(D.main&&dt(T[H],"mainChannel",Pm(Am(D.main))),D.light&&dt(T[H],"lightChannel",Pm(Am(D.light))),D.dark&&dt(T[H],"darkChannel",Pm(Am(D.dark))),D.contrastText&&dt(T[H],"contrastTextChannel",Pm(Am(D.contrastText))),H==="text"&&(zl(T[H],"primary"),zl(T[H],"secondary")),H==="action"&&(D.active&&zl(T[H],"active"),D.selected&&zl(T[H],"selected")))})}),A=t.reduce((U,T)=>pa(U,T),A);const I={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:_te(A),enableContrastVars:s},{vars:j,generateThemeVars:_,generateStyleSheets:W}=yte(A,I);return A.vars=j,Object.entries(A.colorSchemes[A.defaultColorScheme]).forEach(([U,T])=>{A[U]=T}),A.generateThemeVars=_,A.generateStyleSheets=W,A.generateSpacing=function(){return _C(u.spacing,Bk(this))},A.getColorSchemeSelector=bte(c),A.spacing=A.generateSpacing(),A.shouldSkipGeneratingVar=l,A.unstable_sxConfig={...Wg,...u?.unstable_sxConfig},A.unstable_sx=function(U){return mp({sx:U,theme:this})},A.toRuntimeSource=TL,A}function OP(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Hk({...n===!0?{}:n.palette,mode:t})})}function OL(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...s}=e,l=a||"light",c=o?.[l],f={...o,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return zw(e,...t);let u=n;"palette"in e||f[l]&&(f[l]!==!0?u=f[l].palette:l==="dark"&&(u={mode:"dark"}));const h=zw({...e,palette:u},...t);return h.defaultColorScheme=l,h.colorSchemes=f,h.palette.mode==="light"&&(h.colorSchemes.light={...f.light!==!0&&f.light,palette:h.palette},OP(h,"dark",f.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:h.palette},OP(h,"light",f.light)),h}return!n&&!("light"in f)&&l==="light"&&(f.light=!0),Hte({...s,colorSchemes:f,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const F0=OL(),Ap="$$material";function Sd(){const e=Tp(F0);return e[Ap]||e}function Wte(e){return m.jsx(UC,{...e,defaultTheme:F0,themeId:Ap})}function qte(e){const{variants:t,...n}=e,r={variants:t,style:td(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=td(o.style))}),r}const Yte=Wk();function RS(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Qu(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Gte(e){return e?(t,n)=>n[e]:null}function Kte(e,t,n){e.theme=Xte(e.theme)?n:e.theme[t]||e.theme}function Xv(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>Xv(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?Qu(r.style,n):r.style;else{const{variants:a,...s}=r;o=n?Qu(td(s),n):s}return $L(e,r.variants,[o],n)}return r?.isProcessed?n?Qu(td(r.style),n):r.style:n?Qu(td(r),n):r}function $L(e,t,n=[],r=void 0){let o;e:for(let a=0;a<t.length;a+=1){const s=t[a];if(typeof s.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!s.props(o))continue}else for(const l in s.props)if(e[l]!==s.props[l]&&e.ownerState?.[l]!==s.props[l])continue e;typeof s.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?Qu(td(s.style(o)),r):s.style(o))):n.push(r?Qu(td(s.style),r):s.style)}return n}function Qte(e={}){const{themeId:t,defaultTheme:n=Yte,rootShouldForwardProp:r=RS,slotShouldForwardProp:o=RS}=e;function a(s){Kte(s,t,n)}return(s,l={})=>{ete(s,$=>$.filter(A=>A!==mp));const{name:c,slot:f,skipVariantsResolver:u,skipSx:h,overridesResolver:y=Gte(Jte(f)),...v}=l,S=c&&c.startsWith("Mui")||f?"components":"custom",x=u!==void 0?u:f&&f!=="Root"&&f!=="root"||!1,w=h||!1;let b=RS;f==="Root"||f==="root"?b=r:f?b=o:Zte(s)&&(b=void 0);const k=Jee(s,{shouldForwardProp:b,label:void 0,...v}),E=$=>{if($.__emotion_real===$)return $;if(typeof $=="function")return function(A){return Xv(A,$,A.theme.modularCssLayers?S:void 0)};if(el($)){const A=qte($);return function(I){return A.variants?Xv(I,A,I.theme.modularCssLayers?S:void 0):I.theme.modularCssLayers?Qu(A.style,S):A.style}}return $},O=(...$)=>{const A=[],I=$.map(E),j=[];if(A.push(a),c&&y&&j.push(function(U){const T=U.theme.components?.[c]?.styleOverrides;if(!T)return null;const L={};for(const F in T)L[F]=Xv(U,T[F],U.theme.modularCssLayers?"theme":void 0);return y(U,L)}),c&&!x&&j.push(function(U){const T=U.theme?.components?.[c]?.variants;return T?$L(U,T,[],U.theme.modularCssLayers?"theme":void 0):null}),w||j.push(mp),Array.isArray(I[0])){const U=I.shift(),T=new Array(A.length).fill(""),L=new Array(j.length).fill("");let F;F=[...T,...U,...L],F.raw=[...T,...U.raw,...L],A.unshift(F)}const _=[...A,...I,...j],W=k(..._);return s.muiName&&(W.muiName=s.muiName),W};return k.withConfig&&(O.withConfig=k.withConfig),O}}function Xte(e){for(const t in e)return!1;return!0}function Zte(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Jte(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function PL(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ya=e=>PL(e)&&e!=="classes",Qe=Qte({themeId:Ap,defaultTheme:F0,rootShouldForwardProp:Ya});function ene(e){return function(t){return m.jsx(Wte,{styles:typeof e=="function"?n=>e({theme:n,...t}):e})}}function tne(){return Dee}const Wn=aN;function qn(e){return ate(e)}function tn(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=cn(e,o,n)}),r}function nne(e){return cn("MuiSvgIcon",e)}tn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const rne=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${St(t)}`,`fontSize${St(n)}`]};return sn(o,nne,r)},one=Qe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${St(n.color)}`],t[`fontSize${St(n.fontSize)}`]]}})(Wn(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),kb=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:f=!1,titleAccess:u,viewBox:h="0 0 24 24",...y}=n,v=C.isValidElement(r)&&r.type==="svg",S={...n,color:a,component:s,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:f,viewBox:h,hasSvgAsChild:v},x={};f||(x.viewBox=h);const w=rne(S);return m.jsxs(one,{as:s,className:Lt(w.root,o),focusable:"false",color:c,"aria-hidden":u?void 0:!0,role:u?"img":void 0,ref:t,...x,...y,...v&&r.props,ownerState:S,children:[v?r.props.children:r,u?m.jsx("title",{children:u}):null]})});kb.muiName="SvgIcon";function er(e,t){function n(r,o){return m.jsx(kb,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=kb.muiName,C.memo(C.forwardRef(n))}function AL(e,t=166){let n;function r(...o){const a=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function Zv(e,t){return C.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function Io(e){return e&&e.ownerDocument||document}function Gl(e){return Io(e).defaultView||window}function _w(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function vi(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:a}=C.useRef(t!==void 0),[s,l]=C.useState(n),c=a?t:s,f=C.useCallback(u=>{a||l(u)},[]);return[c,f]}function Ut(e){const t=C.useRef(e);return Lo(()=>{t.current=e}),C.useRef((...n)=>(0,t.current)(...n)).current}function mr(...e){const t=C.useRef(void 0),n=C.useCallback(r=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const s=a,l=s(r);return typeof l=="function"?l:()=>{s(null)}}return a.current=r,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},e);return C.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function ane(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function DL(e,t){if(!e)return t;function n(s,l){const c={};return Object.keys(l).forEach(f=>{ane(f,l[f])&&typeof s[f]=="function"&&(c[f]=(...u)=>{s[f](...u),l[f](...u)})}),c}if(typeof e=="function"||typeof t=="function")return s=>{const l=typeof t=="function"?t(s):t,c=typeof e=="function"?e({...s,...l}):e,f=Lt(s?.className,l?.className,c?.className),u=n(c,l);return{...l,...c,...u,...!!f&&{className:f},...l?.style&&c?.style&&{style:{...l.style,...c.style}},...l?.sx&&c?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const r=t,o=n(e,r),a=Lt(r?.className,e?.className);return{...t,...e,...o,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const qk=er(m.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),ine=2,jL=24,zve=(e,t,n)=>Math.min(Math.max(e+t,1),Math.min(n,jL)),Fve=(e,t)=>Math.min(Math.max(1,Math.round(e/t)),jL),Jv=16;function sne(e,t){const n=Math.min(e.colspan??1,t);return e.break?`1 / span ${n}`:`span ${n}`}function lne(e,t,n){if(!(t>0)||e<=1)return 1;const r=(t-(e-1)*Jv)/e;return Math.min(e,Math.max(1,Math.ceil((n+Jv)/(r+Jv))))}function cne({tiles:e,columns:t,keyOf:n,renderTile:r,minTilePx:o}){const a=C.useRef(null),[s,l]=C.useState(0);C.useEffect(()=>{const f=a.current;if(o===void 0||!f||typeof ResizeObserver>"u")return;const u=new ResizeObserver(([h])=>l(h?.contentRect.width??0));return u.observe(f),()=>u.disconnect()},[o]);const c=o===void 0?1:lne(t,s,o);return m.jsx(_t,{ref:a,sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:`repeat(${t}, minmax(0, 1fr))`},gap:`${Jv}px`},children:e.map((f,u)=>m.jsx(_t,{sx:{display:"grid",minWidth:0,gridColumn:{md:sne(f.colspan===void 0&&c>1?{...f,colspan:c}:f,t)}},children:r(f,u)},n(f,u)))})}const une=er(m.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-5.5-2.5 7.51-3.49L17.5 6.5 9.99 9.99zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1"}));function Ta({error:e,context:t}){const n=e.data?.message||"Unknown Error";return m.jsxs(m.Fragment,{children:[t&&m.jsx(It,{variant:"body2",sx:{p:"10px",m:"auto"},children:t}),m.jsx("pre",{style:{whiteSpace:"pre-wrap",color:"red",padding:"10px",margin:"auto"},children:n})]})}function _0({label:e,onClick:t,disabled:n}){return m.jsx(eo,{variant:"contained",color:"primary",startIcon:m.jsx(qk,{}),onClick:t,disabled:n,"aria-label":`Add ${e.toLowerCase()}`,sx:{whiteSpace:"nowrap"},children:e})}function qg({label:e,icon:t,onClick:n,disabled:r,disabledReason:o,ariaLabel:a,ariaHasPopup:s}){const l=m.jsx("span",{children:m.jsx(eo,{variant:"outlined",startIcon:t,onClick:n,disabled:r,"aria-label":a,"aria-haspopup":s,sx:{whiteSpace:"nowrap"},children:e})});return r&&o?m.jsx(xi,{title:o,children:l}):l}const gp=er(m.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"}));function ta({open:e,onClose:t,title:n,description:r,maxWidth:o="sm",showClose:a=!1,actions:s,children:l}){const c=C.useId();return m.jsxs(dp,{open:e,onClose:t,maxWidth:o,fullWidth:!0,"aria-labelledby":c,children:[m.jsxs(pp,{id:c,sx:{px:3,pt:3,pb:r?.5:1,display:"flex",alignItems:"center",justifyContent:"space-between",gap:1,fontSize:"1.25rem",fontWeight:600,letterSpacing:"-0.025em",lineHeight:1.2},children:[n,a&&m.jsx(Jr,{"aria-label":"Close",onClick:t,size:"small",sx:{color:"text.secondary",mr:-1},children:m.jsx(gp,{fontSize:"small"})})]}),m.jsxs(fp,{sx:{px:3,pb:1,pt:1},children:[r&&m.jsx(It,{variant:"body2",color:"text.secondary",sx:{mb:2},children:r}),m.jsx(cr,{sx:{gap:2,pt:r?0:1},children:l})]}),s&&m.jsx(HN,{sx:{px:3,pb:3,pt:2,gap:1},children:s})]})}function _ve({open:e,canSave:t,onKeepEditing:n,onDiscard:r,onSaveAndExit:o}){return m.jsx(ta,{open:e,onClose:n,title:"Leave with unsaved changes?",description:t&&o?"Your edits have not been saved. Save them, or leave without them.":"Leaving now discards your unsaved edits.",actions:m.jsxs(m.Fragment,{children:[m.jsx(eo,{onClick:n,children:"Keep editing"}),m.jsx(eo,{color:"error",onClick:r,children:"Discard changes"}),t&&o&&m.jsx(eo,{variant:"contained",onClick:o,children:"Save and exit"})]}),children:null})}function Bve({left:e,children:t}){const{theme:n}=Ts();return m.jsxs(cr,{direction:"row",sx:{position:"sticky",top:0,zIndex:5,alignItems:"center",justifyContent:"space-between",gap:1,minHeight:48,py:.5,mb:3,bgcolor:n.background,borderBottom:n.border},children:[m.jsx(cr,{direction:"row",sx:{alignItems:"center",gap:1,minWidth:0,overflow:"hidden"},children:e}),m.jsx(cr,{direction:"row",sx:{alignItems:"center",gap:.5,flexShrink:0,"& .MuiButton-root":{whiteSpace:"nowrap"}},children:t})]})}const to=e=>{const t=new URL(e),n={};if(t.protocol!=="publisher:")throw new Error(`Failed to parse resource URI: ${e}`);const r=(t.hostname+t.pathname).split("/");for(let o=0;o<r.length;o+=2){const a=r[o];a==="environments"?n.environmentName=decodeURI(r[o+1])||void 0:a==="packages"?n.packageName=decodeURI(r[o+1])||void 0:a==="connections"?n.connectionName=decodeURI(r[o+1])||void 0:a==="models"&&(n.modelPath=decodeURI(r.slice(o+1).join("/"))||void 0)}if(n.versionId=t.searchParams.get("versionId")||void 0,!n.environmentName)throw new Error(`Failed to parse resource URI: ${e}`);return n},B0=e=>{if(!e.environmentName)throw new Error(`Failed to encode resource URI, missing environment name: ${e}`);let t=`publisher://environments/${e.environmentName}`;return e.packageName&&(t+=`/packages/${e.packageName}`),e.connectionName&&(t+=`/connections/${e.connectionName}`),e.modelPath&&(t+=`/models/${e.modelPath}`),e.packageName&&e.versionId&&(t+=`?versionId=${e.versionId}`),t};function ha({text:e,size:t=20,color:n="primary",thickness:r=3.6,centered:o=!0,spacing:a=2,textVariant:s="body2"}){const l=m.jsxs(_t,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:a},children:[m.jsx(Ag,{size:t,color:n,thickness:r}),e&&m.jsx(It,{variant:s,color:"text.secondary",children:e})]});return o?m.jsx(_t,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:l}):l}var Bw={exports:{}},dne=Bw.exports,$P;function fne(){return $P||($P=1,(function(e,t){(function(n,r){e.exports=r()})(dne,(function(){var n=1e3,r=6e4,o=36e5,a="millisecond",s="second",l="minute",c="hour",f="day",u="week",h="month",y="quarter",v="year",S="date",x="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,k={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(F){var H=["th","st","nd","rd"],D=F%100;return"["+F+(H[(D-20)%10]||H[D]||H[0])+"]"}},E=function(F,H,D){var K=String(F);return!K||K.length>=H?F:""+Array(H+1-K.length).join(D)+F},O={s:E,z:function(F){var H=-F.utcOffset(),D=Math.abs(H),K=Math.floor(D/60),Q=D%60;return(H<=0?"+":"-")+E(K,2,"0")+":"+E(Q,2,"0")},m:function F(H,D){if(H.date()<D.date())return-F(D,H);var K=12*(D.year()-H.year())+(D.month()-H.month()),Q=H.clone().add(K,h),ee=D-Q<0,X=H.clone().add(K+(ee?-1:1),h);return+(-(K+(D-Q)/(ee?Q-X:X-Q))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:h,y:v,w:u,d:f,D:S,h:c,m:l,s,ms:a,Q:y}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},$="en",A={};A[$]=k;var I="$isDayjsObject",j=function(F){return F instanceof T||!(!F||!F[I])},_=function F(H,D,K){var Q;if(!H)return $;if(typeof H=="string"){var ee=H.toLowerCase();A[ee]&&(Q=ee),D&&(A[ee]=D,Q=ee);var X=H.split("-");if(!Q&&X.length>1)return F(X[0])}else{var te=H.name;A[te]=H,Q=te}return!K&&Q&&($=Q),Q||!K&&$},W=function(F,H){if(j(F))return F.clone();var D=typeof H=="object"?H:{};return D.date=F,D.args=arguments,new T(D)},U=O;U.l=_,U.i=j,U.w=function(F,H){return W(F,{locale:H.$L,utc:H.$u,x:H.$x,$offset:H.$offset})};var T=(function(){function F(D){this.$L=_(D.locale,null,!0),this.parse(D),this.$x=this.$x||D.x||{},this[I]=!0}var H=F.prototype;return H.parse=function(D){this.$d=(function(K){var Q=K.date,ee=K.utc;if(Q===null)return new Date(NaN);if(U.u(Q))return new Date;if(Q instanceof Date)return new Date(Q);if(typeof Q=="string"&&!/Z$/i.test(Q)){var X=Q.match(w);if(X){var te=X[2]-1||0,ae=(X[7]||"0").substring(0,3);return ee?new Date(Date.UTC(X[1],te,X[3]||1,X[4]||0,X[5]||0,X[6]||0,ae)):new Date(X[1],te,X[3]||1,X[4]||0,X[5]||0,X[6]||0,ae)}}return new Date(Q)})(D),this.init()},H.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},H.$utils=function(){return U},H.isValid=function(){return this.$d.toString()!==x},H.isSame=function(D,K){var Q=W(D);return this.startOf(K)<=Q&&Q<=this.endOf(K)},H.isAfter=function(D,K){return W(D)<this.startOf(K)},H.isBefore=function(D,K){return this.endOf(K)<W(D)},H.$g=function(D,K,Q){return U.u(D)?this[K]:this.set(Q,D)},H.unix=function(){return Math.floor(this.valueOf()/1e3)},H.valueOf=function(){return this.$d.getTime()},H.startOf=function(D,K){var Q=this,ee=!!U.u(K)||K,X=U.p(D),te=function(ne,me){var xe=U.w(Q.$u?Date.UTC(Q.$y,me,ne):new Date(Q.$y,me,ne),Q);return ee?xe:xe.endOf(f)},ae=function(ne,me){return U.w(Q.toDate()[ne].apply(Q.toDate("s"),(ee?[0,0,0,0]:[23,59,59,999]).slice(me)),Q)},ue=this.$W,he=this.$M,ie=this.$D,le="set"+(this.$u?"UTC":"");switch(X){case v:return ee?te(1,0):te(31,11);case h:return ee?te(1,he):te(0,he+1);case u:var se=this.$locale().weekStart||0,pe=(ue<se?ue+7:ue)-se;return te(ee?ie-pe:ie+(6-pe),he);case f:case S:return ae(le+"Hours",0);case c:return ae(le+"Minutes",1);case l:return ae(le+"Seconds",2);case s:return ae(le+"Milliseconds",3);default:return this.clone()}},H.endOf=function(D){return this.startOf(D,!1)},H.$set=function(D,K){var Q,ee=U.p(D),X="set"+(this.$u?"UTC":""),te=(Q={},Q[f]=X+"Date",Q[S]=X+"Date",Q[h]=X+"Month",Q[v]=X+"FullYear",Q[c]=X+"Hours",Q[l]=X+"Minutes",Q[s]=X+"Seconds",Q[a]=X+"Milliseconds",Q)[ee],ae=ee===f?this.$D+(K-this.$W):K;if(ee===h||ee===v){var ue=this.clone().set(S,1);ue.$d[te](ae),ue.init(),this.$d=ue.set(S,Math.min(this.$D,ue.daysInMonth())).$d}else te&&this.$d[te](ae);return this.init(),this},H.set=function(D,K){return this.clone().$set(D,K)},H.get=function(D){return this[U.p(D)]()},H.add=function(D,K){var Q,ee=this;D=Number(D);var X=U.p(K),te=function(he){var ie=W(ee);return U.w(ie.date(ie.date()+Math.round(he*D)),ee)};if(X===h)return this.set(h,this.$M+D);if(X===v)return this.set(v,this.$y+D);if(X===f)return te(1);if(X===u)return te(7);var ae=(Q={},Q[l]=r,Q[c]=o,Q[s]=n,Q)[X]||1,ue=this.$d.getTime()+D*ae;return U.w(ue,this)},H.subtract=function(D,K){return this.add(-1*D,K)},H.format=function(D){var K=this,Q=this.$locale();if(!this.isValid())return Q.invalidDate||x;var ee=D||"YYYY-MM-DDTHH:mm:ssZ",X=U.z(this),te=this.$H,ae=this.$m,ue=this.$M,he=Q.weekdays,ie=Q.months,le=Q.meridiem,se=function(me,xe,Se,ce){return me&&(me[xe]||me(K,ee))||Se[xe].slice(0,ce)},pe=function(me){return U.s(te%12||12,me,"0")},ne=le||function(me,xe,Se){var ce=me<12?"AM":"PM";return Se?ce.toLowerCase():ce};return ee.replace(b,(function(me,xe){return xe||(function(Se){switch(Se){case"YY":return String(K.$y).slice(-2);case"YYYY":return U.s(K.$y,4,"0");case"M":return ue+1;case"MM":return U.s(ue+1,2,"0");case"MMM":return se(Q.monthsShort,ue,ie,3);case"MMMM":return se(ie,ue);case"D":return K.$D;case"DD":return U.s(K.$D,2,"0");case"d":return String(K.$W);case"dd":return se(Q.weekdaysMin,K.$W,he,2);case"ddd":return se(Q.weekdaysShort,K.$W,he,3);case"dddd":return he[K.$W];case"H":return String(te);case"HH":return U.s(te,2,"0");case"h":return pe(1);case"hh":return pe(2);case"a":return ne(te,ae,!0);case"A":return ne(te,ae,!1);case"m":return String(ae);case"mm":return U.s(ae,2,"0");case"s":return String(K.$s);case"ss":return U.s(K.$s,2,"0");case"SSS":return U.s(K.$ms,3,"0");case"Z":return X}return null})(me)||X.replace(":","")}))},H.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},H.diff=function(D,K,Q){var ee,X=this,te=U.p(K),ae=W(D),ue=(ae.utcOffset()-this.utcOffset())*r,he=this-ae,ie=function(){return U.m(X,ae)};switch(te){case v:ee=ie()/12;break;case h:ee=ie();break;case y:ee=ie()/3;break;case u:ee=(he-ue)/6048e5;break;case f:ee=(he-ue)/864e5;break;case c:ee=he/o;break;case l:ee=he/r;break;case s:ee=he/n;break;default:ee=he}return Q?ee:U.a(ee)},H.daysInMonth=function(){return this.endOf(h).$D},H.$locale=function(){return A[this.$L]},H.locale=function(D,K){if(!D)return this.$L;var Q=this.clone(),ee=_(D,K,!0);return ee&&(Q.$L=ee),Q},H.clone=function(){return U.w(this.$d,this)},H.toDate=function(){return new Date(this.valueOf())},H.toJSON=function(){return this.isValid()?this.toISOString():null},H.toISOString=function(){return this.$d.toISOString()},H.toString=function(){return this.$d.toUTCString()},F})(),L=T.prototype;return W.prototype=L,[["$ms",a],["$s",s],["$m",l],["$H",c],["$W",f],["$M",h],["$y",v],["$D",S]].forEach((function(F){L[F[1]]=function(H){return this.$g(H,F[0],F[1])}})),W.extend=function(F,H){return F.$i||(F(H,T,W),F.$i=!0),W},W.locale=_,W.isDayjs=j,W.unix=function(F){return W(1e3*F)},W.en=A[$],W.Ls=A,W.p={},W}))})(Bw)),Bw.exports}var pne=fne();const $r=Ql(pne);var Uw={exports:{}},hne=Uw.exports,PP;function mne(){return PP||(PP=1,(function(e,t){(function(n,r){e.exports=r()})(hne,(function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(a,s,l){var c=s.prototype;l.utc=function(x){var w={date:x,utc:!0,args:arguments};return new s(w)},c.utc=function(x){var w=l(this.toDate(),{locale:this.$L,utc:!0});return x?w.add(this.utcOffset(),n):w},c.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var f=c.parse;c.parse=function(x){x.utc&&(this.$u=!0),this.$utils().u(x.$offset)||(this.$offset=x.$offset),f.call(this,x)};var u=c.init;c.init=function(){if(this.$u){var x=this.$d;this.$y=x.getUTCFullYear(),this.$M=x.getUTCMonth(),this.$D=x.getUTCDate(),this.$W=x.getUTCDay(),this.$H=x.getUTCHours(),this.$m=x.getUTCMinutes(),this.$s=x.getUTCSeconds(),this.$ms=x.getUTCMilliseconds()}else u.call(this)};var h=c.utcOffset;c.utcOffset=function(x,w){var b=this.$utils().u;if(b(x))return this.$u?0:b(this.$offset)?h.call(this):this.$offset;if(typeof x=="string"&&(x=(function($){$===void 0&&($="");var A=$.match(r);if(!A)return null;var I=(""+A[0]).match(o)||["-",0,0],j=I[0],_=60*+I[1]+ +I[2];return _===0?0:j==="+"?_:-_})(x),x===null))return this;var k=Math.abs(x)<=16?60*x:x;if(k===0)return this.utc(w);var E=this.clone();if(w)return E.$offset=k,E.$u=!1,E;var O=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(E=this.local().add(k+O,n)).$offset=k,E.$x.$localOffset=O,E};var y=c.format;c.format=function(x){var w=x||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return y.call(this,w)},c.valueOf=function(){var x=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*x},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var v=c.toDate;c.toDate=function(x){return x==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():v.call(this)};var S=c.diff;c.diff=function(x,w,b){if(x&&this.$u===x.$u)return S.call(this,x,w,b);var k=this.local(),E=l(x).local();return S.call(k,E,w,b)}}}))})(Uw)),Uw.exports}var gne=mne();const Yk=Ql(gne);$r.extend(Yk);function Vu(e){return(e??"").startsWith("filter<")}function yne(e){const{parsed:t}=ki.BooleanFilterExpression.parse(e);if(!(!t||t.not))return t.operator==="true"||t.operator==="false"?t.operator:void 0}function Wf(e){const t=/^filter<(.+)>$/.exec(e??"");return t?t[1]:void 0}function Gk(e){const t=e.filter(n=>n.trim()!=="");return t.length===0?"":ki.StringFilterExpression.unparse({operator:"=",values:[...t]})}function vne(e){if(e.trim()==="")return[];const{parsed:t}=ki.StringFilterExpression.parse(e);return NL(t)?t.values:[e]}function bne(e){return e===void 0||e.trim()===""?!0:NL(ki.StringFilterExpression.parse(e).parsed)}function NL(e){return e!==null&&ki.isStringCondition(e)&&e.operator==="="&&e.not!==!0}function xne(e){return ki.NumberFilterExpression.unparse({operator:">=",values:[String(e)]})}function Sne(e){const t=e.trim();if(t==="")return;const{parsed:n}=ki.NumberFilterExpression.parse(t);if(n===null||n.operator!==">="||n.not===!0||n.values?.length!==1)return;const r=Number(n.values[0]);return Number.isFinite(r)?r:void 0}function wne(e,t){return ki.NumberFilterExpression.unparse({operator:"range",startOperator:">=",startValue:String(e),endOperator:"<=",endValue:String(t)})}function Cne(e){const t=e.trim();if(t==="")return;const{parsed:n}=ki.NumberFilterExpression.parse(t);if(n===null||n.operator!=="range"||n.not===!0||n.startOperator!==">="||n.endOperator!=="<=")return;const r=Number(n.startValue),o=Number(n.endValue);return Number.isFinite(r)&&Number.isFinite(o)&&r<=o?[r,o]:void 0}const Eb=[{key:"today",label:"Today",clause:{operator:"in",in:{moment:"today"}}},{key:"7d",label:"Last 7 days",clause:{operator:"in_last",units:"day",n:"7"}},{key:"30d",label:"Last 30 days",clause:{operator:"in_last",units:"day",n:"30"}},{key:"90d",label:"Last 90 days",clause:{operator:"in_last",units:"day",n:"90"}},{key:"12m",label:"Last 12 months",clause:{operator:"in_last",units:"month",n:"12"}}];function kne(e){const t=Eb.find(n=>n.key===e);return t?ki.TemporalFilterExpression.unparse(t.clause):void 0}function Ene(e){const t=e.trim();if(t==="")return;const{parsed:n}=ki.TemporalFilterExpression.parse(t);if(n!==null)for(const r of Eb){const o=r.clause;if(o.operator===n.operator&&(o.operator==="in"&&n.operator==="in"&&n.not!==!0&&n.in.moment===o.in.moment||o.operator==="in_last"&&n.operator==="in_last"&&n.not!==!0&&n.units===o.units&&Number(n.n)===Number(o.n)))return r.key}}const Tne=/^\d{4}-\d{2}-\d{2}$/;function Mne(e,t){const n=$r.utc(t,"YYYY-MM-DD").add(1,"day");return ki.TemporalFilterExpression.unparse({operator:"to",fromMoment:{moment:"literal",literal:e,units:"day"},toMoment:{moment:"literal",literal:n.format("YYYY-MM-DD"),units:"day"}})}function Rne(e){const t=e.trim();if(t==="")return;const{parsed:n}=ki.TemporalFilterExpression.parse(t);if(n===null||n.operator!=="to"||n.not===!0)return;const r=AP(n.fromMoment),o=AP(n.toMoment);if(r===void 0||o===void 0)return;const a=$r.utc(o,"YYYY-MM-DD").subtract(1,"day");if(!(!a.isValid()||a.isBefore($r.utc(r,"YYYY-MM-DD"))))return{firstDay:r,lastDay:a.format("YYYY-MM-DD")}}function AP(e){return e.moment==="literal"&&Tne.test(e.literal)?e.literal:void 0}const OS="self";function IL(e){if(!e)return[];if(e.wasDimension&&!e.wasDimension())return[];const t=e.tag?.tag("drill");return t?(t.textArray("to")??[t.text("to")].filter(DP)).filter(DP):[]}function LL(e){const t=e.replace(/[-_]+/g," ").trim();return t.charAt(0).toUpperCase()+t.slice(1)}function zL(e){return e.tag?.tag("drill")?.text("given")??e.name}function U0(e){if(typeof e=="string"){const t=Gk([e]);return t===""?void 0:t}if(typeof e=="boolean")return String(e);if(typeof e=="number")return Number.isFinite(e)?String(e):void 0;if(e instanceof Date){const t=e.toISOString();return t.slice(0,t.indexOf("T"))}}function FL(e){return e instanceof Date?U0(e)??"":String(e)}function One(e){if(!e||e.isHeader)return;const t=e.field;if(!t)return;const n=IL(t);if(n.length===0)return;const r=U0(e.value);if(r!==void 0)return{to:n,given:zL(t),value:r,rawValue:e.value,label:FL(e.value)}}function DP(e){return typeof e=="string"&&e!==""}function $ne(e,t){if(t!==void 0&&!Vu(t)){if(t==="number"){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(typeof e!="string"||e.trim()==="")return;const n=Number(e);return Number.isFinite(n)?n:void 0}if(t==="date"||t==="timestamp"||t==="timestamptz")return e instanceof Date?e:void 0;if(t==="boolean")return typeof e=="boolean"?e:e==="true"?!0:e==="false"?!1:void 0;if(typeof e=="string")return e.trim()===""?void 0:e;if(typeof e=="number")return Number.isFinite(e)?String(e):void 0;if(typeof e=="boolean")return String(e)}return Wf(t)==="string"&&typeof e=="number"?Number.isFinite(e)?Gk([String(e)]):void 0:Wf(t)==="number"?typeof e=="number"?Number.isFinite(e)?String(e):void 0:typeof e!="string"||e.trim()===""?void 0:Number.isFinite(Number(e))?e.trim():void 0:U0(e)}function Pne({declaredTypes:e,setGiven:t,documentName:n}){const r=C.useMemo(()=>{const l=new Map;for(const c of e.keys())l.has(c.toLowerCase())||l.set(c.toLowerCase(),c);return l},[e]),o=C.useCallback(l=>e.has(l)?l:r.get(l.toLowerCase()),[e,r]),a=C.useCallback(l=>o(l)!==void 0,[o]),s=C.useCallback((l,c)=>{const f=o(l);if(f===void 0){console.warn(`# drill { to=self } tried to set '${l}', which '${n}' does not declare as a given. Name the given with 'given=' on the drill tag.`);return}const u=e.get(f),h=$ne(c,u);if(h===void 0){console.warn(`Drill declined: ${JSON.stringify(c)} cannot be a value for given "${f}"`+(u?` of type ${u}`:""));return}t(f,h)},[e,n,o,t]);return{resolveGiven:o,canSelf:a,onSelf:s}}function Ane(e,t){if(e!=null){if(e instanceof Date)return UL(e,t);if(!Array.isArray(e))return String(e)}}function Dne(e,t){return new Date(Date.UTC(e.year(),e.month(),e.date(),t?.getUTCHours()??0,t?.getUTCMinutes()??0,t?.getUTCSeconds()??0,t?.getUTCMilliseconds()??0))}const jne=/^(\d{4})-(\d{1,2})-(\d{1,2})(?:[T\s]+(\d{1,2}):(\d{2})(?::(\d{2}))?(?:\.(\d{1,9}))?)?\s*(Z|[+-]\d{2}:?\d{2}|[+-]\d{2}|UTC|GMT)?$/i;function _L(e){const t=e.trim();return t===""?e:t.replace(/^(\d{4}-\d{1,2}-\d{1,2}[T\s]+\d{1,2}:\d{2}(?::\d{2})?(?:\.\d{1,9})?)\s+(\d{2}:?\d{2}|\d{2})$/,"$1+$2")}function Nne(e,t=!1){const n=_L(e);if(n==="")return;const r=jne.exec(n);if(!r)return;const[,o,a,s,l,c,f,u,h]=r,y={year:Number(o),month:Number(a),day:Number(s),hour:Number(l??0),minute:Number(c??0),second:Number(f??0),milli:Number((u??"").slice(0,3).padEnd(3,"0")||0)},v=Date.UTC(y.year,y.month-1,y.day,y.hour,y.minute,y.second,y.milli),S=new Date(v);if(!(S.getUTCFullYear()===y.year&&S.getUTCMonth()===y.month-1&&S.getUTCDate()===y.day&&S.getUTCHours()===y.hour&&S.getUTCMinutes()===y.minute&&S.getUTCSeconds()===y.second)||h!==void 0&&l===void 0)return;const x=Ine(h);if(x===void 0)return;const w=new Date(v-x*6e4);if(!(t&&h!==void 0&&w.getUTCDate()!==y.day))return w}function Ine(e){if(e===void 0)return 0;const t=e.toUpperCase();if(t==="Z"||t==="UTC"||t==="GMT")return 0;const n=/^([+-])(\d{2}):?(\d{2})?$/.exec(t);if(!n)return;const r=Number(n[3]??0);if(r>59)return;const o=Number(n[2])*60+r,a=n[1]!=="-";if(!(o>(a?840:720)))return a?o:-o}function Lne(e){return!zne.has(e??"")}const zne=new Set(["boolean","number","date","timestamp","timestamptz"]);function BL(e,t){if(t===""&&!Lne(e))return null;if(Vu(e))return t;switch(e){case"number":{const n=t.trim()===""?NaN:Number(t);return Number.isFinite(n)?n:t}case"boolean":return t==="true"?!0:t==="false"?!1:t;case"date":case"timestamp":case"timestamptz":{const n=_L(t);return Nne(n,e==="date")??n}default:return t}}function Kk(e,t){const n={};for(const[r,o]of e){const a=Ane(o,t.get(r));a!==void 0&&(n[r]=a)}return n}function UL(e,t){const n=e.toISOString();switch(t){case"timestamptz":return n;case"timestamp":return n.slice(0,-1);default:return n.slice(0,10)}}function Yg(e,t,n){const r=n?new Set(n):void 0,o={};for(const[a,s]of e)r&&!r.has(a)||s!=null&&(Array.isArray(s)||(o[a]=s instanceof Date?UL(s,t.get(a)):s));return o}function jP(e,t){const n=new Map;for(const[r,o]of Object.entries(e))t.has(r)&&n.set(r,BL(t.get(r),o));return n}function NP(e,t){const n=Array.from(e.keys()).filter(o=>!t.has(o));if(n.length===0)return e;const r=new Map(e);for(const o of n)r.delete(o);return r}function IP(e){return Object.entries(e??{}).sort(([t],[n])=>t<n?-1:1)}function Fne(e,t,n){for(const r of n.keys())if(e[r]!==t[r])return!1;return!0}function LP(e,t){const n=Object.keys(e);return n.length!==Object.keys(t).length?!1:n.every(r=>e[r]===t[r])}function _ne({declaredTypes:e,startingValues:t,params:n,onParamsChange:r,documentKey:o,autorun:a}){const s=C.useMemo(()=>jP(t??{},e),[e,JSON.stringify(t)]),l=C.useRef(null),c=C.useRef(null),f=C.useRef({documentKey:o,params:n}),u=U=>U!==null&&Fne(n??{},U,e);u(l.current)&&(c.current=null),(f.current.documentKey!==o||!LP(n??{},f.current.params??{})&&!u(l.current)&&!u(c.current))&&(f.current={documentKey:o,params:n});const h=f.current.params,y=JSON.stringify(t),v=JSON.stringify(h),S=C.useMemo(()=>jP({...t??{},...h??{}},e),[e,y,v]),x=C.useMemo(()=>JSON.stringify([o??null,IP(t),IP(h)]),[o,y,v]),[w,b]=C.useState(null),k=w?.key===x?w:null;C.useEffect(()=>{w!==null&&w.key!==x&&b(null)},[w,x]);const E=C.useMemo(()=>NP(k?.draft??S,e),[k,S,e]),O=C.useMemo(()=>NP(k?.applied??S,e),[k,S,e]),$=C.useCallback(U=>U?.key===x?U:{key:x,draft:S,applied:S},[x,S]),A=C.useMemo(()=>Kk(O,e),[O,e]);l.current===null&&(l.current=A),C.useEffect(()=>{r&&(LP(l.current??{},A)||(c.current=l.current,l.current=A,r(A)))},[A,r]);const I=C.useCallback((U,T)=>{b(L=>{const F=$(L),H=new Map(F.draft);return T===null?H.delete(U):H.set(U,T),{key:F.key,draft:H,applied:a?H:F.applied}})},[a,$]),j=C.useCallback(()=>{b(U=>({key:$(U).key,draft:s,applied:s}))},[$,s]),_=C.useCallback(()=>{b(U=>{const T=$(U);return{key:T.key,draft:T.draft,applied:T.draft}})},[$]),W=C.useMemo(()=>{if(a)return!1;if(E.size!==O.size)return!0;for(const[U,T]of E){const L=O.get(U);if(T instanceof Date&&L instanceof Date){if(T.getTime()!==L.getTime())return!0}else if(Array.isArray(T)&&Array.isArray(L)){if(String(T)!==String(L))return!0}else if(T!==L)return!0}return!1},[a,E,O]);return{draft:E,applied:O,setGiven:I,reset:j,apply:_,pending:W}}const Bne=1e3;function VL(e){const t=e.split(".");return t[t.length-1]}function Une(e,t){return`run: ${e} -> {
328
+ group_by: ${t}
329
+ order_by: ${VL(t)} asc
330
+ limit: ${Bne}
331
+ }`}function Vne(e,t){const n=e.suggest?.givenNames;if(!t||!n||n.length===0)return;const r=Yg(t.values,t.declaredTypes,n);return Object.keys(r).length>0?r:void 0}function Hne(e,t,n,r,o,a){const{apiClients:s}=Pr(),l=C.useMemo(()=>r.filter(h=>h.name!==void 0&&(h.control==="select"||h.control==="multiselect")&&(h.suggest?.query!==void 0||h.suggest?.source!==void 0&&h.suggest?.dimension!==void 0)),[r]),c=vI({queries:l.map(h=>{const y=Vne(h,a);return{queryKey:["givenSuggest",e,t,o,n,h.name,h.suggest?.query,h.suggest?.source,h.suggest?.dimension,y===void 0?null:JSON.stringify(y)],enabled:n!==void 0,staleTime:300*1e3,refetchOnWindowFocus:!1,queryFn:async()=>{const v=h.suggest??{},S=await s.models.executeQueryModel(e,t,n,v.query!==void 0?{queryName:v.query,compactJson:!0,versionId:o,givens:y}:{query:Une(v.source,v.dimension),compactJson:!0,versionId:o,givens:y});return Wne(S.data.result,v.dimension===void 0?void 0:VL(v.dimension))}}})}),f=C.useMemo(()=>{const h=new Map;return l.forEach((y,v)=>{const S=c[v]?.data;y.name&&S&&h.set(y.name,S)}),h},[l,JSON.stringify(c.map(h=>h.data))]),u=C.useMemo(()=>{const h=new Set;return l.forEach((y,v)=>{y.name&&c[v]?.isError&&h.add(y.name)}),h},[l,c.map(h=>h.isError).join("|")]);return{options:f,isLoading:c.some(h=>h.isLoading),failed:u}}function Wne(e,t){if(!e)return[];let n;try{n=JSON.parse(e)}catch{throw new Error("Suggest query returned a result that is not JSON.")}if(!Array.isArray(n))throw new Error("Suggest query returned JSON that is not a list of rows.");const r=[],o=new Set;for(const a of n){if(a===null||typeof a!="object")continue;const s=a,l=Object.keys(s),c=t!==void 0&&Object.prototype.hasOwnProperty.call(s,t)?t:l[0],f=c===void 0?void 0:s[c];if(f==null)continue;const u=String(f);o.has(u)||(o.add(u),r.push(u))}return r}function Qk({specs:e,loaded:t,startingValues:n,params:r,onGivensChange:o,documentKey:a,autorun:s,environmentName:l,packageName:c,modelPath:f,versionId:u,documentName:h}){const y=C.useMemo(()=>new Map(e.filter(O=>O.name!==void 0).map(O=>[O.name,O.type])),[e]),v=C.useCallback(O=>{t&&o?.(O,Array.from(y.keys()))},[t,o,y]),S=_ne({declaredTypes:y,startingValues:n,params:r,onParamsChange:t?v:void 0,documentKey:a,autorun:s}),{options:x,isLoading:w,failed:b}=Hne(l,c,f,e,u,{values:S.applied,declaredTypes:y}),{canSelf:k,onSelf:E}=Pne({declaredTypes:y,setGiven:S.setGiven,documentName:h});return{...S,declaredTypes:y,options:x,optionsLoading:w,optionsFailed:b,canSelf:k,onSelf:E,panel:{givens:e,values:S.draft,onChange:S.setGiven,onReset:S.reset,options:x,optionsLoading:w,optionsFailed:b,apply:s?void 0:{onApply:S.apply,pending:S.pending}}}}const hg=er(m.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"}));function Ne(){return Ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ne.apply(null,arguments)}var Vw={exports:{}},qne=Vw.exports,zP;function Yne(){return zP||(zP=1,(function(e,t){(function(n,r){e.exports=r()})(qne,(function(){var n="week",r="year";return function(o,a,s){var l=a.prototype;l.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=s(this).startOf(r).add(1,r).date(f),h=s(this).endOf(n);if(u.isBefore(h))return 1}var y=s(this).startOf(r).date(f).startOf(n).subtract(1,"millisecond"),v=this.diff(y,n,!0);return v<0?s(this).startOf("week").week():Math.ceil(v)},l.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}}))})(Vw)),Vw.exports}var Gne=Yne();const Kne=Ql(Gne);var Hw={exports:{}},Qne=Hw.exports,FP;function Xne(){return FP||(FP=1,(function(e,t){(function(n,r){e.exports=r()})(Qne,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,a=/\d\d/,s=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,c={},f=function(w){return(w=+w)+(w>68?1900:2e3)},u=function(w){return function(b){this[w]=+b}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(w){(this.zone||(this.zone={})).offset=(function(b){if(!b||b==="Z")return 0;var k=b.match(/([+-]|\d\d)/g),E=60*k[1]+(+k[2]||0);return E===0?0:k[0]==="+"?-E:E})(w)}],y=function(w){var b=c[w];return b&&(b.indexOf?b:b.s.concat(b.f))},v=function(w,b){var k,E=c.meridiem;if(E){for(var O=1;O<=24;O+=1)if(w.indexOf(E(O,0,b))>-1){k=O>12;break}}else k=w===(b?"pm":"PM");return k},S={A:[l,function(w){this.afternoon=v(w,!1)}],a:[l,function(w){this.afternoon=v(w,!0)}],Q:[o,function(w){this.month=3*(w-1)+1}],S:[o,function(w){this.milliseconds=100*+w}],SS:[a,function(w){this.milliseconds=10*+w}],SSS:[/\d{3}/,function(w){this.milliseconds=+w}],s:[s,u("seconds")],ss:[s,u("seconds")],m:[s,u("minutes")],mm:[s,u("minutes")],H:[s,u("hours")],h:[s,u("hours")],HH:[s,u("hours")],hh:[s,u("hours")],D:[s,u("day")],DD:[a,u("day")],Do:[l,function(w){var b=c.ordinal,k=w.match(/\d+/);if(this.day=k[0],b)for(var E=1;E<=31;E+=1)b(E).replace(/\[|\]/g,"")===w&&(this.day=E)}],w:[s,u("week")],ww:[a,u("week")],M:[s,u("month")],MM:[a,u("month")],MMM:[l,function(w){var b=y("months"),k=(y("monthsShort")||b.map((function(E){return E.slice(0,3)}))).indexOf(w)+1;if(k<1)throw new Error;this.month=k%12||k}],MMMM:[l,function(w){var b=y("months").indexOf(w)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,u("year")],YY:[a,function(w){this.year=f(w)}],YYYY:[/\d{4}/,u("year")],Z:h,ZZ:h};function x(w){var b,k;b=w,k=c&&c.formats;for(var E=(w=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(W,U,T){var L=T&&T.toUpperCase();return U||k[T]||n[T]||k[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(F,H,D){return H||D.slice(1)}))}))).match(r),O=E.length,$=0;$<O;$+=1){var A=E[$],I=S[A],j=I&&I[0],_=I&&I[1];E[$]=_?{regex:j,parser:_}:A.replace(/^\[|\]$/g,"")}return function(W){for(var U={},T=0,L=0;T<O;T+=1){var F=E[T];if(typeof F=="string")L+=F.length;else{var H=F.regex,D=F.parser,K=W.slice(L),Q=H.exec(K)[0];D.call(U,Q),W=W.replace(Q,"")}}return(function(ee){var X=ee.afternoon;if(X!==void 0){var te=ee.hours;X?te<12&&(ee.hours+=12):te===12&&(ee.hours=0),delete ee.afternoon}})(U),U}}return function(w,b,k){k.p.customParseFormat=!0,w&&w.parseTwoDigitYear&&(f=w.parseTwoDigitYear);var E=b.prototype,O=E.parse;E.parse=function($){var A=$.date,I=$.utc,j=$.args;this.$u=I;var _=j[1];if(typeof _=="string"){var W=j[2]===!0,U=j[3]===!0,T=W||U,L=j[2];U&&(L=j[2]),c=this.$locale(),!W&&L&&(c=k.Ls[L]),this.$d=(function(K,Q,ee,X){try{if(["x","X"].indexOf(Q)>-1)return new Date((Q==="X"?1e3:1)*K);var te=x(Q)(K),ae=te.year,ue=te.month,he=te.day,ie=te.hours,le=te.minutes,se=te.seconds,pe=te.milliseconds,ne=te.zone,me=te.week,xe=new Date,Se=he||(ae||ue?1:xe.getDate()),ce=ae||xe.getFullYear(),Ee=0;ae&&!ue||(Ee=ue>0?ue-1:xe.getMonth());var Ge,Te=ie||0,je=le||0,oe=se||0,lt=pe||0;return ne?new Date(Date.UTC(ce,Ee,Se,Te,je,oe,lt+60*ne.offset*1e3)):ee?new Date(Date.UTC(ce,Ee,Se,Te,je,oe,lt)):(Ge=new Date(ce,Ee,Se,Te,je,oe,lt),me&&(Ge=X(Ge).week(me).toDate()),Ge)}catch{return new Date("")}})(A,_,I,k),this.init(),L&&L!==!0&&(this.$L=this.locale(L).$L),T&&A!=this.format(_)&&(this.$d=new Date("")),c={}}else if(_ instanceof Array)for(var F=_.length,H=1;H<=F;H+=1){j[1]=_[H-1];var D=k.apply(this,j);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}H===F&&(this.$d=new Date(""))}else O.call(this,$)}}}))})(Hw)),Hw.exports}var Zne=Xne();const Jne=Ql(Zne);var Ww={exports:{}},ere=Ww.exports,_P;function tre(){return _P||(_P=1,(function(e,t){(function(n,r){e.exports=r()})(ere,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,a){var s=o.prototype,l=s.format;a.en.formats=n,s.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var f=this.$locale().formats,u=(function(h,y){return h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(v,S,x){var w=x&&x.toUpperCase();return S||y[x]||n[x]||y[w].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(b,k,E){return k||E.slice(1)}))}))})(c,f===void 0?{}:f);return l.call(this,u)}}}))})(Ww)),Ww.exports}var nre=tre();const rre=Ql(nre);var qw={exports:{}},ore=qw.exports,BP;function are(){return BP||(BP=1,(function(e,t){(function(n,r){e.exports=r()})(ore,(function(){return function(n,r,o){r.prototype.isBetween=function(a,s,l,c){var f=o(a),u=o(s),h=(c=c||"()")[0]==="(",y=c[1]===")";return(h?this.isAfter(f,l):!this.isBefore(f,l))&&(y?this.isBefore(u,l):!this.isAfter(u,l))||(h?this.isBefore(f,l):!this.isAfter(f,l))&&(y?this.isAfter(u,l):!this.isBefore(u,l))}}}))})(qw)),qw.exports}var ire=are();const sre=Ql(ire);var Yw={exports:{}},lre=Yw.exports,UP;function cre(){return UP||(UP=1,(function(e,t){(function(n,r){e.exports=r()})(lre,(function(){return function(n,r){var o=r.prototype,a=o.format;o.format=function(s){var l=this,c=this.$locale();if(!this.isValid())return a.bind(this)(s);var f=this.$utils(),u=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(h){switch(h){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return f.s(l.week(),h==="w"?1:2,"0");case"W":case"WW":return f.s(l.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return f.s(String(l.$H===0?24:l.$H),h==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return h}}));return a.bind(this)(u)}}}))})(Yw)),Yw.exports}var ure=cre();const dre=Ql(ure);$r.extend(rre);$r.extend(Kne);$r.extend(sre);$r.extend(dre);const fre={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},pre={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},$S=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
332
+ `),VP=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
333
+ `),hre=(e,t)=>t?(...n)=>e(...n).locale(t):e;let Gw=class{constructor({locale:t,formats:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=fre,this.setLocaleToValue=r=>{const o=this.getCurrentLocaleCode();return o===r.locale()?r:r.locale(o)},this.hasUTCPlugin=()=>typeof $r.utc<"u",this.hasTimezonePlugin=()=>typeof $r.tz<"u",this.isSame=(r,o,a)=>{const s=this.setTimezone(o,this.getTimezone(r));return r.format(a)===s.format(a)},this.cleanTimezone=r=>{switch(r){case"default":return;case"system":return $r.tz.guess();default:return r}},this.createSystemDate=r=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=$r.tz.guess();return o!=="UTC"?$r.tz(r,o):$r(r)}return $r(r)},this.createUTCDate=r=>{if(!this.hasUTCPlugin())throw new Error($S);return $r.utc(r)},this.createTZDate=(r,o)=>{if(!this.hasUTCPlugin())throw new Error($S);if(!this.hasTimezonePlugin())throw new Error(VP);const a=r!==void 0&&!r.endsWith("Z");return $r(r).tz(this.cleanTimezone(o),a)},this.getLocaleFormats=()=>{const r=$r.Ls,o=this.locale||"en";let a=r[o];return a===void 0&&(a=r.en),a.formats},this.adjustOffset=r=>{if(!this.hasTimezonePlugin())return r;const o=this.getTimezone(r);if(o!=="UTC"){const a=r.tz(this.cleanTimezone(o),!0);if(a.$offset===(r.$offset??0))return r;r.$offset=a.$offset}return r},this.date=(r,o="default")=>{if(r===null)return null;let a;return o==="UTC"?a=this.createUTCDate(r):o==="system"||o==="default"&&!this.hasTimezonePlugin()?a=this.createSystemDate(r):a=this.createTZDate(r,o),this.locale===void 0?a:a.locale(this.locale)},this.getInvalidDate=()=>$r(new Date("Invalid date")),this.getTimezone=r=>{if(this.hasTimezonePlugin()){const o=r.$x?.$timezone;if(o)return o}return this.hasUTCPlugin()&&r.isUTC()?"UTC":"system"},this.setTimezone=(r,o)=>{if(this.getTimezone(r)===o)return r;if(o==="UTC"){if(!this.hasUTCPlugin())throw new Error($S);return r.utc()}if(o==="system")return r.local();if(!this.hasTimezonePlugin()){if(o==="default")return r;throw new Error(VP)}return $r.tz(r,this.cleanTimezone(o))},this.toJsDate=r=>r.toDate(),this.parse=(r,o)=>r===""?null:this.dayjs(r,o,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=r=>{const o=this.getLocaleFormats(),a=s=>s.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(l,c,f)=>c||f.slice(1));return r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(s,l,c)=>{const f=c&&c.toUpperCase();return l||o[c]||a(o[f])})},this.isValid=r=>r==null?!1:r.isValid(),this.format=(r,o)=>this.formatByString(r,this.formats[o]),this.formatByString=(r,o)=>this.dayjs(r).format(o),this.formatNumber=r=>r,this.isEqual=(r,o)=>r===null&&o===null?!0:r===null||o===null?!1:r.toDate().getTime()===o.toDate().getTime(),this.isSameYear=(r,o)=>this.isSame(r,o,"YYYY"),this.isSameMonth=(r,o)=>this.isSame(r,o,"YYYY-MM"),this.isSameDay=(r,o)=>this.isSame(r,o,"YYYY-MM-DD"),this.isSameHour=(r,o)=>r.isSame(o,"hour"),this.isAfter=(r,o)=>r>o,this.isAfterYear=(r,o)=>this.hasUTCPlugin()?!this.isSameYear(r,o)&&r.utc()>o.utc():r.isAfter(o,"year"),this.isAfterDay=(r,o)=>this.hasUTCPlugin()?!this.isSameDay(r,o)&&r.utc()>o.utc():r.isAfter(o,"day"),this.isBefore=(r,o)=>r<o,this.isBeforeYear=(r,o)=>this.hasUTCPlugin()?!this.isSameYear(r,o)&&r.utc()<o.utc():r.isBefore(o,"year"),this.isBeforeDay=(r,o)=>this.hasUTCPlugin()?!this.isSameDay(r,o)&&r.utc()<o.utc():r.isBefore(o,"day"),this.isWithinRange=(r,[o,a])=>r>=o&&r<=a,this.startOfYear=r=>this.adjustOffset(r.startOf("year")),this.startOfMonth=r=>this.adjustOffset(r.startOf("month")),this.startOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).startOf("week")),this.startOfDay=r=>this.adjustOffset(r.startOf("day")),this.endOfYear=r=>this.adjustOffset(r.endOf("year")),this.endOfMonth=r=>this.adjustOffset(r.endOf("month")),this.endOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).endOf("week")),this.endOfDay=r=>this.adjustOffset(r.endOf("day")),this.addYears=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"year"):r.add(o,"year")),this.addMonths=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"month"):r.add(o,"month")),this.addWeeks=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"week"):r.add(o,"week")),this.addDays=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"day"):r.add(o,"day")),this.addHours=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"hour"):r.add(o,"hour")),this.addMinutes=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"minute"):r.add(o,"minute")),this.addSeconds=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"second"):r.add(o,"second")),this.getYear=r=>r.year(),this.getMonth=r=>r.month(),this.getDate=r=>r.date(),this.getHours=r=>r.hour(),this.getMinutes=r=>r.minute(),this.getSeconds=r=>r.second(),this.getMilliseconds=r=>r.millisecond(),this.setYear=(r,o)=>this.adjustOffset(r.set("year",o)),this.setMonth=(r,o)=>this.adjustOffset(r.set("month",o)),this.setDate=(r,o)=>this.adjustOffset(r.set("date",o)),this.setHours=(r,o)=>this.adjustOffset(r.set("hour",o)),this.setMinutes=(r,o)=>this.adjustOffset(r.set("minute",o)),this.setSeconds=(r,o)=>this.adjustOffset(r.set("second",o)),this.setMilliseconds=(r,o)=>this.adjustOffset(r.set("millisecond",o)),this.getDaysInMonth=r=>r.daysInMonth(),this.getWeekArray=r=>{const o=this.startOfWeek(this.startOfMonth(r)),a=this.endOfWeek(this.endOfMonth(r));let s=0,l=o;const c=[];for(;l<a;){const f=Math.floor(s/7);c[f]=c[f]||[],c[f].push(l),l=this.addDays(l,1),s+=1}return c},this.getWeekNumber=r=>r.week(),this.getYearRange=([r,o])=>{const a=this.startOfYear(r),s=this.endOfYear(o),l=[];let c=a;for(;this.isBefore(c,s);)l.push(c),c=this.addYears(c,1);return l},this.dayjs=hre($r,t),this.locale=t,this.formats=Ne({},pre,n),$r.extend(Jne)}getDayOfWeek(t){return t.day()+1}};function Bn(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function HL(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:pg(t.components[n].defaultProps,r)}function mre({props:e,name:t,defaultTheme:n,themeId:r}){let o=hte(n);return o=o[r]||o,HL({theme:o,name:t,props:e})}function gre(e,t,n,r,o){const[a,s]=C.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Lo(()=>{if(!n)return;const l=n(e),c=()=>{s(l.matches)};return c(),l.addEventListener("change",c),()=>{l.removeEventListener("change",c)}},[e,n]),a}const yre={...rd},WL=yre.useSyncExternalStore;function vre(e,t,n,r,o){const a=C.useCallback(()=>t,[t]),s=C.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:f}=r(e);return()=>f}return a},[a,e,r,o,n]),[l,c]=C.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const f=n(e);return[()=>f.matches,u=>(f.addEventListener("change",u),()=>{f.removeEventListener("change",u)})]},[a,n,e]);return WL(c,l,s)}function qL(e={}){const{themeId:t}=e;return function(n,r={}){let o=EL();o&&t&&(o=o[t]||o);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:s=!1,matchMedia:l=a?window.matchMedia:null,ssrMatchMedia:c=null,noSsr:f=!1}=HL({name:"MuiUseMediaQuery",props:r,theme:o});let u=typeof n=="function"?n(o):n;return u=u.replace(/^@media( ?)/m,""),u.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
334
+ `)),(WL!==void 0?vre:gre)(u,s,l,c,f)}}qL();const YL=qL({themeId:Ap});function qr({props:e,name:t}){return mre({props:e,name:t,defaultTheme:F0,themeId:Ap})}const GL=ot.oneOfType([ot.func,ot.object]),HP={};function KL(e,t){const n=C.useRef(HP);return n.current===HP&&(n.current=e(t)),n}const bre=[];function xre(e){C.useEffect(e,bre)}class Xk{static create(){return new Xk}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Zk(){const e=KL(Xk.create).current;return xre(e.disposeEffect),e}function WP(e){try{return e.matches(":focus-visible")}catch{}return!1}function QL(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const Sre={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function yp(e){return typeof e=="string"}function XL(e,t,n){return e===void 0||yp(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Tb(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function qP(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function ZL(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const v=Lt(n?.className,a,o?.className,r?.className),S={...n?.style,...o?.style,...r?.style},x={...n,...o,...r};return v.length>0&&(x.className=v),Object.keys(S).length>0&&(x.style=S),{props:x,internalRef:void 0}}const s=Tb({...o,...r}),l=qP(r),c=qP(o),f=t(s),u=Lt(f?.className,n?.className,a,o?.className,r?.className),h={...f?.style,...n?.style,...o?.style,...r?.style},y={...f,...n,...c,...l};return u.length>0&&(y.className=u),Object.keys(h).length>0&&(y.style=h),{props:y,internalRef:f.ref}}function V0(e,t,n){return typeof e=="function"?e(t,n):e}function xr(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...a}=e,s=o?{}:V0(n,r),{props:l,internalRef:c}=ZL({...a,externalSlotProps:s}),f=mr(c,s?.ref,e.additionalProps?.ref);return XL(t,{...l,ref:f},r)}function Dp(e){return parseInt(C.version,10)>=19?e?.props?.ref||null:e?.ref||null}const om=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),wre=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let a;if(e!=null)a=e;else if(o.includes(t))a=t;else if(o.length>0)a=o[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:o,openTo:a}},Mb=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r=e.setMilliseconds(r,e.getMilliseconds(n)),r},Wm=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:a,utils:s,timezone:l})=>{const c=Mb(s,s.date(void 0,l),e);n&&s.isBefore(o,c)&&(o=c),t&&s.isAfter(r,c)&&(r=c);let f=e,u=e;for(s.isBefore(e,o)&&(f=o,u=null),s.isAfter(e,r)&&(u&&(u=r),f=null);f||u;){if(f&&s.isAfter(f,r)&&(f=null),u&&s.isBefore(u,o)&&(u=null),f){if(!a(f))return f;f=s.addDays(f,1)}if(u){if(!a(u))return u;u=s.addDays(u,-1)}}return null},Cre=(e,t)=>t==null||!e.isValid(t)?null:t,Zi=(e,t,n)=>t==null||!e.isValid(t)?n:t,kre=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Jk=(e,t)=>{const n=[e.startOfYear(t)];for(;n.length<12;){const r=n[n.length-1];n.push(e.addMonths(r,1))}return n},JL=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),Ere=["year","month","day"],YP=e=>Ere.includes(e),eE=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return om(n,["year"])?o.year:om(n,["month"])?o.month:om(n,["day"])?o.dayOfMonth:om(n,["month","year"])?`${o.month} ${o.year}`:om(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},Tre=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},Mre=["hours","minutes","seconds"],Rre=e=>Mre.includes(e),GP=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Ore=(e,t)=>(n,r)=>e?t.isAfter(n,r):GP(n,t)>GP(r,t),Zs={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},$re=e=>Math.max(...e.map(t=>Zs[t.type]??1)),am=(e,t,n)=>{if(t===Zs.year)return e.startOfYear(n);if(t===Zs.month)return e.startOfMonth(n);if(t===Zs.day)return e.startOfDay(n);let r=n;return t<Zs.minutes&&(r=e.setMinutes(r,0)),t<Zs.seconds&&(r=e.setSeconds(r,0)),t<Zs.milliseconds&&(r=e.setMilliseconds(r,0)),r},Pre=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{let a=o?o():am(t,n,JL(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,a)&&(a=am(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,a)&&(a=am(t,n,e.maxDate));const s=Ore(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&s(e.minTime,a)&&(a=am(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Mb(t,a,e.minTime))),e.maxTime!=null&&s(a,e.maxTime)&&(a=am(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Mb(t,a,e.maxTime))),a},ez=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
335
+ `));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},Are=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},H0=(e,t)=>{const n=[],r=e.date(void 0,"default"),o=e.startOfWeek(r),a=e.endOfWeek(r);let s=o;for(;e.isBefore(s,a);)n.push(s),s=e.addDays(s,1);return n.map(l=>e.formatByString(l,t))},tz=(e,t,n,r)=>{switch(n){case"month":return Jk(e,e.date(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return H0(e,r);case"meridiem":{const o=e.date(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(a=>e.formatByString(a,r))}default:return[]}},KP="s",Dre=["0","1","2","3","4","5","6","7","8","9"],jre=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),KP)==="0"?Dre:Array.from({length:10}).map((n,r)=>e.formatByString(e.setSeconds(t,r),KP))},pd=(e,t)=>{if(t[0]==="0")return e;const n=[];let r="";for(let o=0;o<e.length;o+=1){r+=e[o];const a=t.indexOf(r);a>-1&&(n.push(a.toString()),r="")}return n.join("")},tE=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),QP=(e,t)=>{const n=pd(e,t);return n!==" "&&!Number.isNaN(Number(n))},nz=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},rz=(e,t,n,r,o)=>{if(o.type==="day"&&o.contentType==="digit-with-letter"){const s=e.setDate(n.longestMonth,t);return e.formatByString(s,o.format)}let a=t.toString();return o.hasLeadingZerosInInput&&(a=nz(a,o.maxLength)),tE(a,r)},Nre=(e,t,n,r,o,a,s,l)=>{const c=Are(r),f=r==="Home",u=r==="End",h=n.value===""||f||u,y=()=>{const S=o[n.type]({currentDate:s,format:n.format,contentType:n.contentType}),x=k=>rz(e,k,S,a,n),w=n.type==="minutes"&&l?.minutesStep?l.minutesStep:1;let b;if(h){if(n.type==="year"&&!u&&!f)return e.formatByString(e.date(void 0,t),n.format);c>0||f?b=S.minimum:b=S.maximum}else b=parseInt(pd(n.value,a),10)+c*w;return b%w!==0&&((c<0||f)&&(b+=w-(w+b)%w),(c>0||u)&&(b-=b%w)),b>S.maximum?x(S.minimum+(b-S.maximum-1)%(S.maximum-S.minimum+1)):b<S.minimum?x(S.maximum-(S.minimum-b-1)%(S.maximum-S.minimum+1)):x(b)},v=()=>{const S=tz(e,t,n.type,n.format);if(S.length===0)return n.value;if(h)return c>0||f?S[0]:S[S.length-1];const x=((S.indexOf(n.value)+c)%S.length+S.length)%S.length;return S[x]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?y():v()},nE=(e,t,n)=>{let r=e.value||e.placeholder;const o=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(r=Number(pd(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!o&&r.length===1&&(r=`${r}‎`),t==="input-rtl"&&(r=`⁨${r}⁩`),r},XP=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),Ire=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,oz=(e,t,n,r)=>{if(t!=="digit")return!1;const o=e.date(void 0,"default");switch(n){case"year":return e.lib==="dayjs"&&r==="YY"?!0:e.formatByString(e.setYear(o,1),r).startsWith("0");case"month":return e.formatByString(e.startOfYear(o),r).length>1;case"day":return e.formatByString(e.startOfMonth(o),r).length>1;case"weekDay":return e.formatByString(e.startOfWeek(o),r).length>1;case"hours":return e.formatByString(e.setHours(o,1),r).length>1;case"minutes":return e.formatByString(e.setMinutes(o,1),r).length>1;case"seconds":return e.formatByString(e.setSeconds(o,1),r).length>1;default:throw new Error("Invalid section type")}},Lre=(e,t,n)=>{const r=t.some(c=>c.type==="day"),o=[],a=[];for(let c=0;c<t.length;c+=1){const f=t[c];r&&f.type==="weekDay"||(o.push(f.format),a.push(nE(f,"non-input",n)))}const s=o.join(" "),l=a.join(" ");return e.parse(l,s)},zre=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),Fre=(e,t,n)=>{const r=e.map(o=>{const a=nE(o,n?"input-rtl":"input-ltr",t);return`${o.startSeparator}${a}${o.endSeparator}`}).join("");return n?`⁦${r}⁩`:r},_re=(e,t,n)=>{const r=e.date(void 0,n),o=e.endOfYear(r),a=e.endOfDay(r),{maxDaysInMonth:s,longestMonth:l}=Jk(e,r).reduce((c,f)=>{const u=e.getDaysInMonth(f);return u>c.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:f}:c},{maxDaysInMonth:0,longestMonth:null});return{year:({format:c})=>({minimum:0,maximum:Ire(e,c)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(o)+1}),day:({currentDate:c})=>({minimum:1,maximum:c!=null&&e.isValid(c)?e.getDaysInMonth(c):s,longestMonth:l}),weekDay:({format:c,contentType:f})=>{if(f==="digit"){const u=H0(e,c).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:c})=>{const f=e.getHours(a);return pd(e.formatByString(e.endOfDay(r),c),t)!==f.toString()?{minimum:1,maximum:Number(pd(e.formatByString(e.startOfDay(r),c),t))}:{minimum:0,maximum:f}},minutes:()=>({minimum:0,maximum:e.getMinutes(a)}),seconds:()=>({minimum:0,maximum:e.getSeconds(a)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}},Bre=(e,t,n,r)=>{switch(t.type){case"year":return e.setYear(r,e.getYear(n));case"month":return e.setMonth(r,e.getMonth(n));case"weekDay":{const o=H0(e,t.format),a=e.formatByString(n,t.format),s=o.indexOf(a),l=o.indexOf(t.value)-s;return e.addDays(n,l)}case"day":return e.setDate(r,e.getDate(n));case"meridiem":{const o=e.getHours(n)<12,a=e.getHours(r);return o&&a>=12?e.addHours(r,-12):!o&&a<12?e.addHours(r,12):r}case"hours":return e.setHours(r,e.getHours(n));case"minutes":return e.setMinutes(r,e.getMinutes(n));case"seconds":return e.setSeconds(r,e.getSeconds(n));default:return r}},ZP={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},JP=(e,t,n,r,o)=>[...n].sort((a,s)=>ZP[a.type]-ZP[s.type]).reduce((a,s)=>!o||s.modified?Bre(e,s,t,a):a,r),Ure=()=>navigator.userAgent.toLowerCase().includes("android"),Vre=(e,t)=>{const n={};if(!t)return e.forEach((c,f)=>{const u=f===0?null:f-1,h=f===e.length-1?null:f+1;n[f]={leftIndex:u,rightIndex:h}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let a=0,s=0,l=e.length-1;for(;l>=0;){s=e.findIndex((c,f)=>f>=a&&c.endSeparator?.includes(" ")&&c.endSeparator!==" / "),s===-1&&(s=e.length-1);for(let c=s;c>=a;c-=1)o[c]=l,r[l]=c,l-=1;a=s+1}return e.forEach((c,f)=>{const u=o[f],h=u===0?null:r[u-1],y=u===e.length-1?null:r[u+1];n[f]={leftIndex:h,rightIndex:y}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},Kw=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(r=>r.type===e);return n===-1?null:n}return e},Hre=(e,t)=>{if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const n=t.parse(e.value,e.format);return n?t.format(n,"month"):void 0}case"day":return e.contentType==="digit"?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}},Wre=(e,t)=>{if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}},qre=["value","referenceDate"],ll={emptyValue:null,getTodayValue:JL,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Bn(e,qre);return t!=null&&r.utils.isValid(t)?t:n??Pre(r)},cleanValue:Cre,areValuesEqual:kre,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},Yre={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&n?n:r(t),getV7HiddenInputValueFromSections:zre,getV6InputValueFromSections:Fre,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},Gre=["localeText"],Qw=C.createContext(null),Rb=function(e){const{localeText:t}=e,n=Bn(e,Gre),{utils:r,localeText:o}=C.useContext(Qw)??{utils:void 0,localeText:void 0},a=qr({props:n,name:"MuiLocalizationProvider"}),{children:s,dateAdapter:l,dateFormats:c,dateLibInstance:f,adapterLocale:u,localeText:h}=a,y=C.useMemo(()=>Ne({},h,o,t),[h,o,t]),v=C.useMemo(()=>{if(!l)return r||null;const w=new l({locale:u,formats:c,instance:f});if(!w.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
336
+ `));return w},[l,u,c,f,r]),S=C.useMemo(()=>v?{minDate:v.date("1900-01-01T00:00:00.000"),maxDate:v.date("2099-12-31T00:00:00.000")}:null,[v]),x=C.useMemo(()=>({utils:v,defaultDates:S,localeText:y}),[S,v,y]);return m.jsx(Qw.Provider,{value:x,children:s})},Kre=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Ne({},e)}}}}),az=e=>{const{utils:t,formatKey:n,contextTranslation:r,propsTranslation:o}=e;return a=>{const s=a!==null&&t.isValid(a)?t.format(a,n):null;return(o??r)(a,t,s)}},iz={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n,r)=>`Select ${e}. ${!r&&(t===null||!n.isValid(t))?"No time selected":`Selected time is ${r??n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose date, selected date is ${n??t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose time, selected time is ${n??t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},Qre=iz;Kre(iz);const wd=()=>{const e=C.useContext(Qw);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
337
+ `));if(e.utils===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
338
+ `));const t=C.useMemo(()=>Ne({},Qre,e.localeText),[e.localeText]);return C.useMemo(()=>Ne({},e,{localeText:t}),[e,t])},Yr=()=>wd().utils,Gg=()=>wd().defaultDates,W0=e=>{const t=Yr(),n=C.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function Xre(e){return typeof e.main=="string"}function Zre(e,t=[]){if(!Xre(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Ca(e=[]){return([,t])=>t&&Zre(t,e)}function Jre(e){return cn("MuiTypography",e)}const eA=tn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),eoe={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},toe=tne(),noe=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:s}=e,l={root:["root",a,e.align!=="inherit"&&`align${St(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return sn(l,Jre,s)},roe=Qe("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${St(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Wn(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(Ca()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${St(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),tA={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},br=C.forwardRef(function(e,t){const{color:n,...r}=qn({props:e,name:"MuiTypography"}),o=!eoe[n],a=toe({...r,...o&&{color:n}}),{align:s="inherit",className:l,component:c,gutterBottom:f=!1,noWrap:u=!1,paragraph:h=!1,variant:y="body1",variantMapping:v=tA,...S}=a,x={...a,align:s,color:n,className:l,component:c,gutterBottom:f,noWrap:u,paragraph:h,variant:y,variantMapping:v},w=c||(h?"p":v[y]||tA[y])||"span",b=noe(x);return m.jsx(roe,{as:w,ref:t,className:Lt(b.root,l),...S,ownerState:x,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...S.style}})});function ooe(e){return cn("MuiPickersToolbar",e)}tn("MuiPickersToolbar",["root","content"]);const aoe=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],ioe=e=>{const{classes:t}=e;return sn({root:["root"],content:["content"]},ooe,t)},soe=Qe("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),loe=Qe("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),coe=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiPickersToolbar"}),{children:r,className:o,toolbarTitle:a,hidden:s,titleId:l}=n,c=Bn(n,aoe),f=n,u=ioe(f);return s?null:m.jsxs(soe,Ne({ref:t,className:Lt(u.root,o),ownerState:f},c,{children:[m.jsx(br,{color:"text.secondary",variant:"overline",id:l,children:a}),m.jsx(loe,{className:u.content,ownerState:f,children:r})]}))}),Xl=()=>wd().localeText;function uoe(e){return cn("MuiDatePickerToolbar",e)}tn("MuiDatePickerToolbar",["root","title"]);const doe=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],foe=e=>{const{classes:t}=e;return sn({root:["root"],title:["title"]},uoe,t)},poe=Qe(coe,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hoe=Qe(br,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),moe=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiDatePickerToolbar"}),{value:r,isLandscape:o,toolbarFormat:a,toolbarPlaceholder:s="––",views:l,className:c}=n,f=Bn(n,doe),u=Yr(),h=Xl(),y=foe(n),v=C.useMemo(()=>{if(!r)return s;const x=eE(u,{format:a,views:l},!0);return u.formatByString(r,x)},[r,a,s,u,l]),S=n;return m.jsx(poe,Ne({ref:t,toolbarTitle:h.datePickerToolbarTitle,isLandscape:o,className:Lt(y.root,c)},f,{children:m.jsx(hoe,{variant:"h4",align:o?"left":"center",ownerState:S,className:y.title,children:v})}))});function sz(e,t){const n=Yr(),r=Gg(),o=qr({props:e,name:t}),a=C.useMemo(()=>o.localeText?.toolbarTitle==null?o.localeText:Ne({},o.localeText,{datePickerToolbarTitle:o.localeText.toolbarTitle}),[o.localeText]);return Ne({},o,{localeText:a},wre({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:Zi(n,o.minDate,r.minDate),maxDate:Zi(n,o.maxDate,r.maxDate),slots:Ne({toolbar:moe},o.slots)})}const Kg=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:o,shouldDisableMonth:a,shouldDisableYear:s,disablePast:l,disableFuture:c}=e,f=r.utils.date(void 0,n),u=Zi(r.utils,e.minDate,r.defaultDates.minDate),h=Zi(r.utils,e.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(o&&o(t)):return"shouldDisableDate";case!!(a&&a(t)):return"shouldDisableMonth";case!!(s&&s(t)):return"shouldDisableYear";case!!(c&&r.utils.isAfterDay(t,f)):return"disableFuture";case!!(l&&r.utils.isBeforeDay(t,f)):return"disablePast";case!!(u&&r.utils.isBeforeDay(t,u)):return"minDate";case!!(h&&r.utils.isAfterDay(t,h)):return"maxDate";default:return null}};Kg.valueManager=ll;const lz=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],goe=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],yoe=["minDateTime","maxDateTime"],voe=[...lz,...goe,...yoe],cz=e=>voe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function uz(e){const{props:t,validator:n,value:r,timezone:o,onError:a}=e,s=wd(),l=C.useRef(n.valueManager.defaultErrorState),c=n({adapter:s,value:r,timezone:o,props:t}),f=n.valueManager.hasError(c);C.useEffect(()=>{a&&!n.valueManager.isSameError(c,l.current)&&a(c,r),l.current=c},[n,a,c,r]);const u=Ut(h=>n({adapter:s,value:h,timezone:o,props:t}));return{validationError:c,hasValidationError:f,getValidationErrorForNewValue:u}}const q0=C.createContext(void 0);function Ei(){return C.useContext(q0)}function boe(e){return cn("MuiInputAdornment",e)}const nA=tn("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var rA;const xoe=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${St(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Soe=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:s}=e,l={root:["root",n&&"disablePointerEvents",o&&`position${St(o)}`,s,r&&"hiddenLabel",a&&`size${St(a)}`]};return sn(l,boe,t)},woe=Qe("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:xoe})(Wn(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${nA.positionStart}&:not(.${nA.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),dz=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:f,...u}=n,h=Ei()||{};let y=f;f&&h.variant,h&&!y&&(y=h.variant);const v={...n,hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:s,position:c,variant:y},S=Soe(v);return m.jsx(q0.Provider,{value:null,children:m.jsx(woe,{as:a,ownerState:v,className:Lt(S.root,o),ref:t,...u,children:typeof r=="string"&&!l?m.jsx(br,{color:"textSecondary",children:r}):m.jsxs(C.Fragment,{children:[c==="start"?rA||(rA=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,r]})})})});class Ob{static create(){return new Ob}static use(){const t=KL(Ob.create).current,[n,r]=C.useState(!1);return t.shouldMount=n,t.setShouldMount=r,C.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=koe(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function Coe(){return Ob.use()}function koe(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function Xw(e,t){return Xw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Xw(e,t)}function rE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xw(e,t)}function Eoe(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Toe(e,t){e.classList?e.classList.add(t):Eoe(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function oA(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Moe(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=oA(e.className,t):e.setAttribute("class",oA(e.className&&e.className.baseVal||"",t))}const aA={disabled:!1},$b=un.createContext(null);var fz=function(e){return e.scrollTop},Dm="unmounted",_u="exited",Bu="entering",Bf="entered",Zw="exiting",$s=(function(e){rE(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=o,l=s&&!s.isMounting?r.enter:r.appear,c;return a.appearStatus=null,r.in?l?(c=_u,a.appearStatus=Bu):c=Bf:r.unmountOnExit||r.mountOnEnter?c=Dm:c=_u,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(r,o){var a=r.in;return a&&o.status===Dm?{status:_u}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var o=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==Bu&&a!==Bf&&(o=Bu):(a===Bu||a===Bf)&&(o=Zw)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,o,a,s;return o=a=s=r,r!=null&&typeof r!="number"&&(o=r.exit,a=r.enter,s=r.appear!==void 0?r.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(r,o){if(r===void 0&&(r=!1),o!==null)if(this.cancelNextCallback(),o===Bu){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Lc.findDOMNode(this);a&&fz(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===_u&&this.setState({status:Dm})},n.performEnter=function(r){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:r,l=this.props.nodeRef?[s]:[Lc.findDOMNode(this),s],c=l[0],f=l[1],u=this.getTimeouts(),h=s?u.appear:u.enter;if(!r&&!a||aA.disabled){this.safeSetState({status:Bf},function(){o.props.onEntered(c)});return}this.props.onEnter(c,f),this.safeSetState({status:Bu},function(){o.props.onEntering(c,f),o.onTransitionEnd(h,function(){o.safeSetState({status:Bf},function(){o.props.onEntered(c,f)})})})},n.performExit=function(){var r=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Lc.findDOMNode(this);if(!o||aA.disabled){this.safeSetState({status:_u},function(){r.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Zw},function(){r.props.onExiting(s),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:_u},function(){r.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,o){o=this.setNextCallback(o),this.setState(r,o)},n.setNextCallback=function(r){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,r(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(r,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:Lc.findDOMNode(this),s=r==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],f=l[1];this.props.addEndListener(c,f)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===Dm)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Bn(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return un.createElement($b.Provider,{value:null},typeof a=="function"?a(r,s):un.cloneElement(un.Children.only(a),s))},t})(un.Component);$s.contextType=$b;$s.propTypes={};function $f(){}$s.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:$f,onEntering:$f,onEntered:$f,onExit:$f,onExiting:$f,onExited:$f};$s.UNMOUNTED=Dm;$s.EXITED=_u;$s.ENTERING=Bu;$s.ENTERED=Bf;$s.EXITING=Zw;var Roe=function(e,t){return e&&t&&t.split(" ").forEach(function(n){return Toe(e,n)})},PS=function(e,t){return e&&t&&t.split(" ").forEach(function(n){return Moe(e,n)})},oE=(function(e){rE(t,e);function t(){for(var r,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(l,c){var f=r.resolveArguments(l,c),u=f[0],h=f[1];r.removeClasses(u,"exit"),r.addClass(u,h?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(l,c)},r.onEntering=function(l,c){var f=r.resolveArguments(l,c),u=f[0],h=f[1],y=h?"appear":"enter";r.addClass(u,y,"active"),r.props.onEntering&&r.props.onEntering(l,c)},r.onEntered=function(l,c){var f=r.resolveArguments(l,c),u=f[0],h=f[1],y=h?"appear":"enter";r.removeClasses(u,y),r.addClass(u,y,"done"),r.props.onEntered&&r.props.onEntered(l,c)},r.onExit=function(l){var c=r.resolveArguments(l),f=c[0];r.removeClasses(f,"appear"),r.removeClasses(f,"enter"),r.addClass(f,"exit","base"),r.props.onExit&&r.props.onExit(l)},r.onExiting=function(l){var c=r.resolveArguments(l),f=c[0];r.addClass(f,"exit","active"),r.props.onExiting&&r.props.onExiting(l)},r.onExited=function(l){var c=r.resolveArguments(l),f=c[0];r.removeClasses(f,"exit"),r.addClass(f,"exit","done"),r.props.onExited&&r.props.onExited(l)},r.resolveArguments=function(l,c){return r.props.nodeRef?[r.props.nodeRef.current,l]:[l,c]},r.getClassNames=function(l){var c=r.props.classNames,f=typeof c=="string",u=f&&c?c+"-":"",h=f?""+u+l:c[l],y=f?h+"-active":c[l+"Active"],v=f?h+"-done":c[l+"Done"];return{baseClassName:h,activeClassName:y,doneClassName:v}},r}var n=t.prototype;return n.addClass=function(r,o,a){var s=this.getClassNames(o)[a+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;o==="appear"&&a==="done"&&c&&(s+=" "+c),a==="active"&&r&&fz(r),s&&(this.appliedClasses[o][a]=s,Roe(r,s))},n.removeClasses=function(r,o){var a=this.appliedClasses[o],s=a.base,l=a.active,c=a.done;this.appliedClasses[o]={},s&&PS(r,s),l&&PS(r,l),c&&PS(r,c)},n.render=function(){var r=this.props;r.classNames;var o=Bn(r,["classNames"]);return un.createElement($s,Ne({},o,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(un.Component);oE.defaultProps={classNames:""};oE.propTypes={};function Ooe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aE(e,t){var n=function(o){return t&&C.isValidElement(o)?t(o):o},r=Object.create(null);return e&&C.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function $oe(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var a in e)a in t?o.length&&(r[a]=o,o=[]):o.push(a);var s,l={};for(var c in t){if(r[c])for(s=0;s<r[c].length;s++){var f=r[c][s];l[r[c][s]]=n(f)}l[c]=n(c)}for(s=0;s<o.length;s++)l[o[s]]=n(o[s]);return l}function Xu(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Poe(e,t){return aE(e.children,function(n){return C.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Xu(n,"appear",e),enter:Xu(n,"enter",e),exit:Xu(n,"exit",e)})})}function Aoe(e,t,n){var r=aE(e.children),o=$oe(t,r);return Object.keys(o).forEach(function(a){var s=o[a];if(C.isValidElement(s)){var l=a in t,c=a in r,f=t[a],u=C.isValidElement(f)&&!f.props.in;c&&(!l||u)?o[a]=C.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Xu(s,"exit",e),enter:Xu(s,"enter",e)}):!c&&l&&!u?o[a]=C.cloneElement(s,{in:!1}):c&&l&&C.isValidElement(f)&&(o[a]=C.cloneElement(s,{onExited:n.bind(null,s),in:f.props.in,exit:Xu(s,"exit",e),enter:Xu(s,"enter",e)}))}}),o}var Doe=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},joe={component:"div",childFactory:function(e){return e}},Qg=(function(e){rE(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=a.handleExited.bind(Ooe(a));return a.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},a}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,o){var a=o.children,s=o.handleExited,l=o.firstRender;return{children:l?Poe(r,s):Aoe(r,a,s),firstRender:!1}},n.handleExited=function(r,o){var a=aE(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(o),this.mounted&&this.setState(function(s){var l=Ne({},s.children);return delete l[r.key],{children:l}}))},n.render=function(){var r=this.props,o=r.component,a=r.childFactory,s=Bn(r,["component","childFactory"]),l=this.state.contextValue,c=Doe(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,o===null?un.createElement($b.Provider,{value:l},c):un.createElement($b.Provider,{value:l},un.createElement(o,s,c))},t})(un.Component);Qg.propTypes={};Qg.defaultProps=joe;function Noe(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:s,in:l,onExited:c,timeout:f}=e,[u,h]=C.useState(!1),y=Lt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:s,height:s,top:-(s/2)+a,left:-(s/2)+o},S=Lt(n.child,u&&n.childLeaving,r&&n.childPulsate);return!l&&!u&&h(!0),C.useEffect(()=>{if(!l&&c!=null){const x=setTimeout(c,f);return()=>{clearTimeout(x)}}},[c,l,f]),m.jsx("span",{className:y,style:v,children:m.jsx("span",{className:S})})}const Vi=tn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Jw=550,Ioe=80,Loe=Ci`
339
+ 0% {
340
+ transform: scale(0);
341
+ opacity: 0.1;
342
+ }
343
+
344
+ 100% {
345
+ transform: scale(1);
346
+ opacity: 0.3;
347
+ }
348
+ `,zoe=Ci`
349
+ 0% {
350
+ opacity: 1;
351
+ }
352
+
353
+ 100% {
354
+ opacity: 0;
355
+ }
356
+ `,Foe=Ci`
357
+ 0% {
358
+ transform: scale(1);
359
+ }
360
+
361
+ 50% {
362
+ transform: scale(0.92);
363
+ }
364
+
365
+ 100% {
366
+ transform: scale(1);
367
+ }
368
+ `,_oe=Qe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Boe=Qe(Noe,{name:"MuiTouchRipple",slot:"Ripple"})`
369
+ opacity: 0;
370
+ position: absolute;
371
+
372
+ &.${Vi.rippleVisible} {
373
+ opacity: 0.3;
374
+ transform: scale(1);
375
+ animation-name: ${Loe};
376
+ animation-duration: ${Jw}ms;
377
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
378
+ }
379
+
380
+ &.${Vi.ripplePulsate} {
381
+ animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
382
+ }
383
+
384
+ & .${Vi.child} {
385
+ opacity: 1;
386
+ display: block;
387
+ width: 100%;
388
+ height: 100%;
389
+ border-radius: 50%;
390
+ background-color: currentColor;
391
+ }
392
+
393
+ & .${Vi.childLeaving} {
394
+ opacity: 0;
395
+ animation-name: ${zoe};
396
+ animation-duration: ${Jw}ms;
397
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
398
+ }
399
+
400
+ & .${Vi.childPulsate} {
401
+ position: absolute;
402
+ /* @noflip */
403
+ left: 0px;
404
+ top: 0;
405
+ animation-name: ${Foe};
406
+ animation-duration: 2500ms;
407
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
408
+ animation-iteration-count: infinite;
409
+ animation-delay: 200ms;
410
+ }
411
+ `,Uoe=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a,...s}=n,[l,c]=C.useState([]),f=C.useRef(0),u=C.useRef(null);C.useEffect(()=>{u.current&&(u.current(),u.current=null)},[l]);const h=C.useRef(!1),y=Zk(),v=C.useRef(null),S=C.useRef(null),x=C.useCallback(E=>{const{pulsate:O,rippleX:$,rippleY:A,rippleSize:I,cb:j}=E;c(_=>[..._,m.jsx(Boe,{classes:{ripple:Lt(o.ripple,Vi.ripple),rippleVisible:Lt(o.rippleVisible,Vi.rippleVisible),ripplePulsate:Lt(o.ripplePulsate,Vi.ripplePulsate),child:Lt(o.child,Vi.child),childLeaving:Lt(o.childLeaving,Vi.childLeaving),childPulsate:Lt(o.childPulsate,Vi.childPulsate)},timeout:Jw,pulsate:O,rippleX:$,rippleY:A,rippleSize:I},f.current)]),f.current+=1,u.current=j},[o]),w=C.useCallback((E={},O={},$=()=>{})=>{const{pulsate:A=!1,center:I=r||O.pulsate,fakeElement:j=!1}=O;if(E?.type==="mousedown"&&h.current){h.current=!1;return}E?.type==="touchstart"&&(h.current=!0);const _=j?null:S.current,W=_?_.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,T,L;if(I||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)U=Math.round(W.width/2),T=Math.round(W.height/2);else{const{clientX:F,clientY:H}=E.touches&&E.touches.length>0?E.touches[0]:E;U=Math.round(F-W.left),T=Math.round(H-W.top)}if(I)L=Math.sqrt((2*W.width**2+W.height**2)/3),L%2===0&&(L+=1);else{const F=Math.max(Math.abs((_?_.clientWidth:0)-U),U)*2+2,H=Math.max(Math.abs((_?_.clientHeight:0)-T),T)*2+2;L=Math.sqrt(F**2+H**2)}E?.touches?v.current===null&&(v.current=()=>{x({pulsate:A,rippleX:U,rippleY:T,rippleSize:L,cb:$})},y.start(Ioe,()=>{v.current&&(v.current(),v.current=null)})):x({pulsate:A,rippleX:U,rippleY:T,rippleSize:L,cb:$})},[r,x,y]),b=C.useCallback(()=>{w({},{pulsate:!0})},[w]),k=C.useCallback((E,O)=>{if(y.clear(),E?.type==="touchend"&&v.current){v.current(),v.current=null,y.start(0,()=>{k(E,O)});return}v.current=null,c($=>$.length>0?$.slice(1):$),u.current=O},[y]);return C.useImperativeHandle(t,()=>({pulsate:b,start:w,stop:k}),[b,w,k]),m.jsx(_oe,{className:Lt(Vi.root,o.root,a),ref:S,...s,children:m.jsx(Qg,{component:null,exit:!0,children:l})})});function Voe(e){return cn("MuiButtonBase",e)}const Hoe=tn("MuiButtonBase",["root","disabled","focusVisible"]),Woe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=sn({root:["root",t&&"disabled",n&&"focusVisible"]},Voe,o);return n&&r&&(a.root+=` ${r}`),a},qoe=Qe("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Hoe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),hd=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:f=!1,disableTouchRipple:u=!1,focusRipple:h=!1,focusVisibleClassName:y,LinkComponent:v="a",onBlur:S,onClick:x,onContextMenu:w,onDragLeave:b,onFocus:k,onFocusVisible:E,onKeyDown:O,onKeyUp:$,onMouseDown:A,onMouseLeave:I,onMouseUp:j,onTouchEnd:_,onTouchMove:W,onTouchStart:U,tabIndex:T=0,TouchRippleProps:L,touchRippleRef:F,type:H,...D}=n,K=C.useRef(null),Q=Coe(),ee=mr(Q.ref,F),[X,te]=C.useState(!1);c&&X&&te(!1),C.useImperativeHandle(r,()=>({focusVisible:()=>{te(!0),K.current.focus()}}),[]);const ae=Q.shouldMount&&!f&&!c;C.useEffect(()=>{X&&h&&!f&&Q.pulsate()},[f,h,X,Q]);const ue=Fl(Q,"start",A,u),he=Fl(Q,"stop",w,u),ie=Fl(Q,"stop",b,u),le=Fl(Q,"stop",j,u),se=Fl(Q,"stop",et=>{X&&et.preventDefault(),I&&I(et)},u),pe=Fl(Q,"start",U,u),ne=Fl(Q,"stop",_,u),me=Fl(Q,"stop",W,u),xe=Fl(Q,"stop",et=>{WP(et.target)||te(!1),S&&S(et)},!1),Se=Ut(et=>{K.current||(K.current=et.currentTarget),WP(et.target)&&(te(!0),E&&E(et)),k&&k(et)}),ce=()=>{const et=K.current;return l&&l!=="button"&&!(et.tagName==="A"&&et.href)},Ee=Ut(et=>{h&&!et.repeat&&X&&et.key===" "&&Q.stop(et,()=>{Q.start(et)}),et.target===et.currentTarget&&ce()&&et.key===" "&&et.preventDefault(),O&&O(et),et.target===et.currentTarget&&ce()&&et.key==="Enter"&&!c&&(et.preventDefault(),x&&x(et))}),Ge=Ut(et=>{h&&et.key===" "&&X&&!et.defaultPrevented&&Q.stop(et,()=>{Q.pulsate(et)}),$&&$(et),x&&et.target===et.currentTarget&&ce()&&et.key===" "&&!et.defaultPrevented&&x(et)});let Te=l;Te==="button"&&(D.href||D.to)&&(Te=v);const je={};Te==="button"?(je.type=H===void 0?"button":H,je.disabled=c):(!D.href&&!D.to&&(je.role="button"),c&&(je["aria-disabled"]=c));const oe=mr(t,K),lt={...n,centerRipple:o,component:l,disabled:c,disableRipple:f,disableTouchRipple:u,focusRipple:h,tabIndex:T,focusVisible:X},Ie=Woe(lt);return m.jsxs(qoe,{as:Te,className:Lt(Ie.root,s),ownerState:lt,onBlur:xe,onClick:x,onContextMenu:he,onFocus:Se,onKeyDown:Ee,onKeyUp:Ge,onMouseDown:ue,onMouseLeave:se,onMouseUp:le,onDragLeave:ie,onTouchEnd:ne,onTouchMove:me,onTouchStart:pe,ref:oe,tabIndex:c?-1:T,type:H,...je,...D,children:[a,ae?m.jsx(Uoe,{ref:ee,center:o,...L}):null]})});function Fl(e,t,n,r=!1){return Ut(o=>(n&&n(o),r||e[t](o),!0))}function Yoe(e){return cn("MuiCircularProgress",e)}tn("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const $c=44,eC=Ci`
412
+ 0% {
413
+ transform: rotate(0deg);
414
+ }
415
+
416
+ 100% {
417
+ transform: rotate(360deg);
418
+ }
419
+ `,tC=Ci`
420
+ 0% {
421
+ stroke-dasharray: 1px, 200px;
422
+ stroke-dashoffset: 0;
423
+ }
424
+
425
+ 50% {
426
+ stroke-dasharray: 100px, 200px;
427
+ stroke-dashoffset: -15px;
428
+ }
429
+
430
+ 100% {
431
+ stroke-dasharray: 1px, 200px;
432
+ stroke-dashoffset: -126px;
433
+ }
434
+ `,Goe=typeof eC!="string"?Kc`
435
+ animation: ${eC} 1.4s linear infinite;
436
+ `:null,Koe=typeof tC!="string"?Kc`
437
+ animation: ${tC} 1.4s ease-in-out infinite;
438
+ `:null,Qoe=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,a={root:["root",n,`color${St(r)}`],svg:["svg"],circle:["circle",`circle${St(n)}`,o&&"circleDisableShrink"]};return sn(a,Yoe,t)},Xoe=Qe("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${St(n.color)}`]]}})(Wn(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Goe||{animation:`${eC} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Ca()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Zoe=Qe("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),Joe=Qe("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${St(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Wn(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:Koe||{animation:`${tC} 1.4s ease-in-out infinite`}}]}))),pz=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:a=!1,size:s=40,style:l,thickness:c=3.6,value:f=0,variant:u="indeterminate",...h}=n,y={...n,color:o,disableShrink:a,size:s,thickness:c,value:f,variant:u},v=Qoe(y),S={},x={},w={};if(u==="determinate"){const b=2*Math.PI*(($c-c)/2);S.strokeDasharray=b.toFixed(3),w["aria-valuenow"]=Math.round(f),S.strokeDashoffset=`${((100-f)/100*b).toFixed(3)}px`,x.transform="rotate(-90deg)"}return m.jsx(Xoe,{className:Lt(v.root,r),style:{width:s,height:s,...x,...l},ownerState:y,ref:t,role:"progressbar",...w,...h,children:m.jsx(Zoe,{className:v.svg,ownerState:y,viewBox:`${$c/2} ${$c/2} ${$c} ${$c}`,children:m.jsx(Joe,{className:v.circle,style:S,ownerState:y,cx:$c,cy:$c,r:($c-c)/2,fill:"none",strokeWidth:c})})})});function eae(e){return cn("MuiIconButton",e)}const iA=tn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),tae=e=>{const{classes:t,disabled:n,color:r,edge:o,size:a,loading:s}=e,l={root:["root",s&&"loading",n&&"disabled",r!=="default"&&`color${St(r)}`,o&&`edge${St(o)}`,`size${St(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return sn(l,eae,t)},nae=Qe(hd,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${St(n.color)}`],n.edge&&t[`edge${St(n.edge)}`],t[`size${St(n.size)}`]]}})(Wn(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Wn(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Ca()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Ca()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${iA.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${iA.loading}`]:{color:"transparent"}}))),rae=Qe("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),nu=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:f="medium",id:u,loading:h=null,loadingIndicator:y,...v}=n,S=Os(u),x=y??m.jsx(pz,{"aria-labelledby":S,color:"inherit",size:16}),w={...n,edge:r,color:s,disabled:l,disableFocusRipple:c,loading:h,loadingIndicator:x,size:f},b=tae(w);return m.jsxs(nae,{id:h?S:u,className:Lt(b.root,a),centerRipple:!0,focusRipple:!c,disabled:l||h,ref:t,...v,ownerState:w,children:[typeof h=="boolean"&&m.jsx("span",{className:b.loadingWrapper,style:{display:"contents"},children:m.jsx(rae,{className:b.loadingIndicator,ownerState:w,children:h&&x})}),o]})}),hz=e=>e.scrollTop;function Pb(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function nC(e){return`scale(${e}, ${e**2})`}const oae={entering:{opacity:1,transform:nC(1)},entered:{opacity:1,transform:"none"}},AS=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),mg=C.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:a,in:s,onEnter:l,onEntered:c,onEntering:f,onExit:u,onExited:h,onExiting:y,style:v,timeout:S="auto",TransitionComponent:x=$s,...w}=e,b=Zk(),k=C.useRef(),E=Sd(),O=C.useRef(null),$=mr(O,Dp(o),t),A=L=>F=>{if(L){const H=O.current;F===void 0?L(H):L(H,F)}},I=A(f),j=A((L,F)=>{hz(L);const{duration:H,delay:D,easing:K}=Pb({style:v,timeout:S,easing:a},{mode:"enter"});let Q;S==="auto"?(Q=E.transitions.getAutoHeightDuration(L.clientHeight),k.current=Q):Q=H,L.style.transition=[E.transitions.create("opacity",{duration:Q,delay:D}),E.transitions.create("transform",{duration:AS?Q:Q*.666,delay:D,easing:K})].join(","),l&&l(L,F)}),_=A(c),W=A(y),U=A(L=>{const{duration:F,delay:H,easing:D}=Pb({style:v,timeout:S,easing:a},{mode:"exit"});let K;S==="auto"?(K=E.transitions.getAutoHeightDuration(L.clientHeight),k.current=K):K=F,L.style.transition=[E.transitions.create("opacity",{duration:K,delay:H}),E.transitions.create("transform",{duration:AS?K:K*.666,delay:AS?H:H||K*.333,easing:D})].join(","),L.style.opacity=0,L.style.transform=nC(.75),u&&u(L)}),T=A(h);return m.jsx(x,{appear:r,in:s,nodeRef:O,onEnter:j,onEntered:_,onEntering:I,onExit:U,onExited:T,onExiting:W,addEndListener:L=>{S==="auto"&&b.start(k.current||0,L),n&&n(O.current,L)},timeout:S==="auto"?null:S,...w,children:(L,{ownerState:F,...H})=>C.cloneElement(o,{style:{opacity:0,transform:nC(.75),visibility:L==="exited"&&!s?"hidden":void 0,...oae[L],...v,...o.props.style},ref:$,...H})})});mg&&(mg.muiSupportAuto=!0);const aae={entering:{opacity:1},entered:{opacity:1}},md=C.forwardRef(function(e,t){const n=Sd(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:c,onEnter:f,onEntered:u,onEntering:h,onExit:y,onExited:v,onExiting:S,style:x,timeout:w=r,TransitionComponent:b=$s,...k}=e,E=C.useRef(null),O=mr(E,Dp(s),t),$=T=>L=>{if(T){const F=E.current;L===void 0?T(F):T(F,L)}},A=$(h),I=$((T,L)=>{hz(T);const F=Pb({style:x,timeout:w,easing:l},{mode:"enter"});T.style.webkitTransition=n.transitions.create("opacity",F),T.style.transition=n.transitions.create("opacity",F),f&&f(T,L)}),j=$(u),_=$(S),W=$(T=>{const L=Pb({style:x,timeout:w,easing:l},{mode:"exit"});T.style.webkitTransition=n.transitions.create("opacity",L),T.style.transition=n.transitions.create("opacity",L),y&&y(T)}),U=$(v);return m.jsx(b,{appear:a,in:c,nodeRef:E,onEnter:I,onEntered:j,onEntering:A,onExit:W,onExited:U,onExiting:_,addEndListener:T=>{o&&o(E.current,T)},timeout:w,...k,children:(T,{ownerState:L,...F})=>C.cloneElement(s,{style:{opacity:0,visibility:T==="exited"&&!c?"hidden":void 0,...aae[T],...x,...s.props.style},ref:O,...F})})});function iae(e){return cn("MuiPaper",e)}tn("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const sae=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return sn(a,iae,o)},lae=Qe("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Wn(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Cd=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiPaper"}),r=Sd(),{className:o,component:a="div",elevation:s=1,square:l=!1,variant:c="elevation",...f}=n,u={...n,component:a,elevation:s,square:l,variant:c},h=sae(u);return m.jsx(lae,{as:a,ownerState:u,className:Lt(h.root,o),ref:t,...f,style:{...c==="elevation"&&{"--Paper-shadow":(r.vars||r).shadows[s],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[s]},...!r.vars&&r.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${wb("#fff",Fw(s))}, ${wb("#fff",Fw(s))})`}},...f.style}})});var Ba="top",Ji="bottom",es="right",Ua="left",iE="auto",Xg=[Ba,Ji,es,Ua],vp="start",gg="end",cae="clippingParents",mz="viewport",im="popper",uae="reference",sA=Xg.reduce(function(e,t){return e.concat([t+"-"+vp,t+"-"+gg])},[]),gz=[].concat(Xg,[iE]).reduce(function(e,t){return e.concat([t,t+"-"+vp,t+"-"+gg])},[]),dae="beforeRead",fae="read",pae="afterRead",hae="beforeMain",mae="main",gae="afterMain",yae="beforeWrite",vae="write",bae="afterWrite",xae=[dae,fae,pae,hae,mae,gae,yae,vae,bae];function cl(e){return e?(e.nodeName||"").toLowerCase():null}function Si(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function gd(e){var t=Si(e).Element;return e instanceof t||e instanceof Element}function Ki(e){var t=Si(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function sE(e){if(typeof ShadowRoot>"u")return!1;var t=Si(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Sae(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!Ki(a)||!cl(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(s){var l=o[s];l===!1?a.removeAttribute(s):a.setAttribute(s,l===!0?"":l)}))})}function wae(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(c,f){return c[f]="",c},{});!Ki(o)||!cl(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(c){o.removeAttribute(c)}))})}}const Cae={name:"applyStyles",enabled:!0,phase:"write",fn:Sae,effect:wae,requires:["computeStyles"]};function al(e){return e.split("-")[0]}var nd=Math.max,Ab=Math.min,bp=Math.round;function rC(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function yz(){return!/^((?!chrome|android).)*safari/i.test(rC())}function xp(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&Ki(e)&&(o=e.offsetWidth>0&&bp(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&bp(r.height)/e.offsetHeight||1);var s=gd(e)?Si(e):window,l=s.visualViewport,c=!yz()&&n,f=(r.left+(c&&l?l.offsetLeft:0))/o,u=(r.top+(c&&l?l.offsetTop:0))/a,h=r.width/o,y=r.height/a;return{width:h,height:y,top:u,right:f+h,bottom:u+y,left:f,x:f,y:u}}function lE(e){var t=xp(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function vz(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&sE(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Kl(e){return Si(e).getComputedStyle(e)}function kae(e){return["table","td","th"].indexOf(cl(e))>=0}function ru(e){return((gd(e)?e.ownerDocument:e.document)||window.document).documentElement}function Y0(e){return cl(e)==="html"?e:e.assignedSlot||e.parentNode||(sE(e)?e.host:null)||ru(e)}function lA(e){return!Ki(e)||Kl(e).position==="fixed"?null:e.offsetParent}function Eae(e){var t=/firefox/i.test(rC()),n=/Trident/i.test(rC());if(n&&Ki(e)){var r=Kl(e);if(r.position==="fixed")return null}var o=Y0(e);for(sE(o)&&(o=o.host);Ki(o)&&["html","body"].indexOf(cl(o))<0;){var a=Kl(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Zg(e){for(var t=Si(e),n=lA(e);n&&kae(n)&&Kl(n).position==="static";)n=lA(n);return n&&(cl(n)==="html"||cl(n)==="body"&&Kl(n).position==="static")?t:n||Eae(e)||t}function cE(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function qm(e,t,n){return nd(e,Ab(t,n))}function Tae(e,t,n){var r=qm(e,t,n);return r>n?n:r}function bz(){return{top:0,right:0,bottom:0,left:0}}function xz(e){return Object.assign({},bz(),e)}function Sz(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Mae=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,xz(typeof e!="number"?e:Sz(e,Xg))};function Rae(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,l=al(n.placement),c=cE(l),f=[Ua,es].indexOf(l)>=0,u=f?"height":"width";if(!(!a||!s)){var h=Mae(o.padding,n),y=lE(a),v=c==="y"?Ba:Ua,S=c==="y"?Ji:es,x=n.rects.reference[u]+n.rects.reference[c]-s[c]-n.rects.popper[u],w=s[c]-n.rects.reference[c],b=Zg(a),k=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,E=x/2-w/2,O=h[v],$=k-y[u]-h[S],A=k/2-y[u]/2+E,I=qm(O,A,$),j=c;n.modifiersData[r]=(t={},t[j]=I,t.centerOffset=I-A,t)}}function Oae(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||vz(t.elements.popper,o)&&(t.elements.arrow=o))}const $ae={name:"arrow",enabled:!0,phase:"main",fn:Rae,effect:Oae,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Sp(e){return e.split("-")[1]}var Pae={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Aae(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:bp(n*o)/o||0,y:bp(r*o)/o||0}}function cA(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,f=e.adaptive,u=e.roundOffsets,h=e.isFixed,y=s.x,v=y===void 0?0:y,S=s.y,x=S===void 0?0:S,w=typeof u=="function"?u({x:v,y:x}):{x:v,y:x};v=w.x,x=w.y;var b=s.hasOwnProperty("x"),k=s.hasOwnProperty("y"),E=Ua,O=Ba,$=window;if(f){var A=Zg(n),I="clientHeight",j="clientWidth";if(A===Si(n)&&(A=ru(n),Kl(A).position!=="static"&&l==="absolute"&&(I="scrollHeight",j="scrollWidth")),A=A,o===Ba||(o===Ua||o===es)&&a===gg){O=Ji;var _=h&&A===$&&$.visualViewport?$.visualViewport.height:A[I];x-=_-r.height,x*=c?1:-1}if(o===Ua||(o===Ba||o===Ji)&&a===gg){E=es;var W=h&&A===$&&$.visualViewport?$.visualViewport.width:A[j];v-=W-r.width,v*=c?1:-1}}var U=Object.assign({position:l},f&&Pae),T=u===!0?Aae({x:v,y:x},Si(n)):{x:v,y:x};if(v=T.x,x=T.y,c){var L;return Object.assign({},U,(L={},L[O]=k?"0":"",L[E]=b?"0":"",L.transform=($.devicePixelRatio||1)<=1?"translate("+v+"px, "+x+"px)":"translate3d("+v+"px, "+x+"px, 0)",L))}return Object.assign({},U,(t={},t[O]=k?x+"px":"",t[E]=b?v+"px":"",t.transform="",t))}function Dae(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,l=n.roundOffsets,c=l===void 0?!0:l,f={placement:al(t.placement),variation:Sp(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,cA(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,cA(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const jae={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Dae,data:{}};var Sv={passive:!0};function Nae(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,c=Si(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach(function(u){u.addEventListener("scroll",n.update,Sv)}),l&&c.addEventListener("resize",n.update,Sv),function(){a&&f.forEach(function(u){u.removeEventListener("scroll",n.update,Sv)}),l&&c.removeEventListener("resize",n.update,Sv)}}const Iae={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Nae,data:{}};var Lae={left:"right",right:"left",bottom:"top",top:"bottom"};function eb(e){return e.replace(/left|right|bottom|top/g,function(t){return Lae[t]})}var zae={start:"end",end:"start"};function uA(e){return e.replace(/start|end/g,function(t){return zae[t]})}function uE(e){var t=Si(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function dE(e){return xp(ru(e)).left+uE(e).scrollLeft}function Fae(e,t){var n=Si(e),r=ru(e),o=n.visualViewport,a=r.clientWidth,s=r.clientHeight,l=0,c=0;if(o){a=o.width,s=o.height;var f=yz();(f||!f&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:a,height:s,x:l+dE(e),y:c}}function _ae(e){var t,n=ru(e),r=uE(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=nd(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=nd(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+dE(e),c=-r.scrollTop;return Kl(o||n).direction==="rtl"&&(l+=nd(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:l,y:c}}function fE(e){var t=Kl(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function wz(e){return["html","body","#document"].indexOf(cl(e))>=0?e.ownerDocument.body:Ki(e)&&fE(e)?e:wz(Y0(e))}function Ym(e,t){var n;t===void 0&&(t=[]);var r=wz(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=Si(r),s=o?[a].concat(a.visualViewport||[],fE(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(Ym(Y0(s)))}function oC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Bae(e,t){var n=xp(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function dA(e,t,n){return t===mz?oC(Fae(e,n)):gd(t)?Bae(t,n):oC(_ae(ru(e)))}function Uae(e){var t=Ym(Y0(e)),n=["absolute","fixed"].indexOf(Kl(e).position)>=0,r=n&&Ki(e)?Zg(e):e;return gd(r)?t.filter(function(o){return gd(o)&&vz(o,r)&&cl(o)!=="body"}):[]}function Vae(e,t,n,r){var o=t==="clippingParents"?Uae(e):[].concat(t),a=[].concat(o,[n]),s=a[0],l=a.reduce(function(c,f){var u=dA(e,f,r);return c.top=nd(u.top,c.top),c.right=Ab(u.right,c.right),c.bottom=Ab(u.bottom,c.bottom),c.left=nd(u.left,c.left),c},dA(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Cz(e){var t=e.reference,n=e.element,r=e.placement,o=r?al(r):null,a=r?Sp(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case Ba:c={x:s,y:t.y-n.height};break;case Ji:c={x:s,y:t.y+t.height};break;case es:c={x:t.x+t.width,y:l};break;case Ua:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var f=o?cE(o):null;if(f!=null){var u=f==="y"?"height":"width";switch(a){case vp:c[f]=c[f]-(t[u]/2-n[u]/2);break;case gg:c[f]=c[f]+(t[u]/2-n[u]/2);break}}return c}function yg(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,l=n.boundary,c=l===void 0?cae:l,f=n.rootBoundary,u=f===void 0?mz:f,h=n.elementContext,y=h===void 0?im:h,v=n.altBoundary,S=v===void 0?!1:v,x=n.padding,w=x===void 0?0:x,b=xz(typeof w!="number"?w:Sz(w,Xg)),k=y===im?uae:im,E=e.rects.popper,O=e.elements[S?k:y],$=Vae(gd(O)?O:O.contextElement||ru(e.elements.popper),c,u,s),A=xp(e.elements.reference),I=Cz({reference:A,element:E,placement:o}),j=oC(Object.assign({},E,I)),_=y===im?j:A,W={top:$.top-_.top+b.top,bottom:_.bottom-$.bottom+b.bottom,left:$.left-_.left+b.left,right:_.right-$.right+b.right},U=e.modifiersData.offset;if(y===im&&U){var T=U[o];Object.keys(W).forEach(function(L){var F=[es,Ji].indexOf(L)>=0?1:-1,H=[Ba,Ji].indexOf(L)>=0?"y":"x";W[L]+=T[H]*F})}return W}function Hae(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?gz:c,u=Sp(r),h=u?l?sA:sA.filter(function(S){return Sp(S)===u}):Xg,y=h.filter(function(S){return f.indexOf(S)>=0});y.length===0&&(y=h);var v=y.reduce(function(S,x){return S[x]=yg(e,{placement:x,boundary:o,rootBoundary:a,padding:s})[al(x)],S},{});return Object.keys(v).sort(function(S,x){return v[S]-v[x]})}function Wae(e){if(al(e)===iE)return[];var t=eb(e);return[uA(e),t,uA(t)]}function qae(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,f=n.padding,u=n.boundary,h=n.rootBoundary,y=n.altBoundary,v=n.flipVariations,S=v===void 0?!0:v,x=n.allowedAutoPlacements,w=t.options.placement,b=al(w),k=b===w,E=c||(k||!S?[eb(w)]:Wae(w)),O=[w].concat(E).reduce(function(he,ie){return he.concat(al(ie)===iE?Hae(t,{placement:ie,boundary:u,rootBoundary:h,padding:f,flipVariations:S,allowedAutoPlacements:x}):ie)},[]),$=t.rects.reference,A=t.rects.popper,I=new Map,j=!0,_=O[0],W=0;W<O.length;W++){var U=O[W],T=al(U),L=Sp(U)===vp,F=[Ba,Ji].indexOf(T)>=0,H=F?"width":"height",D=yg(t,{placement:U,boundary:u,rootBoundary:h,altBoundary:y,padding:f}),K=F?L?es:Ua:L?Ji:Ba;$[H]>A[H]&&(K=eb(K));var Q=eb(K),ee=[];if(a&&ee.push(D[T]<=0),l&&ee.push(D[K]<=0,D[Q]<=0),ee.every(function(he){return he})){_=U,j=!1;break}I.set(U,ee)}if(j)for(var X=S?3:1,te=function(he){var ie=O.find(function(le){var se=I.get(le);if(se)return se.slice(0,he).every(function(pe){return pe})});if(ie)return _=ie,"break"},ae=X;ae>0;ae--){var ue=te(ae);if(ue==="break")break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}}const Yae={name:"flip",enabled:!0,phase:"main",fn:qae,requiresIfExists:["offset"],data:{_skip:!1}};function fA(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function pA(e){return[Ba,es,Ji,Ua].some(function(t){return e[t]>=0})}function Gae(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=yg(t,{elementContext:"reference"}),l=yg(t,{altBoundary:!0}),c=fA(s,r),f=fA(l,o,a),u=pA(c),h=pA(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}const Kae={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Gae};function Qae(e,t,n){var r=al(e),o=[Ua,Ba].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],l=a[1];return s=s||0,l=(l||0)*o,[Ua,es].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function Xae(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,s=gz.reduce(function(u,h){return u[h]=Qae(h,t.rects,a),u},{}),l=s[t.placement],c=l.x,f=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=s}const Zae={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Xae};function Jae(e){var t=e.state,n=e.name;t.modifiersData[n]=Cz({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const eie={name:"popperOffsets",enabled:!0,phase:"read",fn:Jae,data:{}};function tie(e){return e==="x"?"y":"x"}function nie(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,f=n.rootBoundary,u=n.altBoundary,h=n.padding,y=n.tether,v=y===void 0?!0:y,S=n.tetherOffset,x=S===void 0?0:S,w=yg(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:u}),b=al(t.placement),k=Sp(t.placement),E=!k,O=cE(b),$=tie(O),A=t.modifiersData.popperOffsets,I=t.rects.reference,j=t.rects.popper,_=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,W=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),U=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(A){if(a){var L,F=O==="y"?Ba:Ua,H=O==="y"?Ji:es,D=O==="y"?"height":"width",K=A[O],Q=K+w[F],ee=K-w[H],X=v?-j[D]/2:0,te=k===vp?I[D]:j[D],ae=k===vp?-j[D]:-I[D],ue=t.elements.arrow,he=v&&ue?lE(ue):{width:0,height:0},ie=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:bz(),le=ie[F],se=ie[H],pe=qm(0,I[D],he[D]),ne=E?I[D]/2-X-pe-le-W.mainAxis:te-pe-le-W.mainAxis,me=E?-I[D]/2+X+pe+se+W.mainAxis:ae+pe+se+W.mainAxis,xe=t.elements.arrow&&Zg(t.elements.arrow),Se=xe?O==="y"?xe.clientTop||0:xe.clientLeft||0:0,ce=(L=U?.[O])!=null?L:0,Ee=K+ne-ce-Se,Ge=K+me-ce,Te=qm(v?Ab(Q,Ee):Q,K,v?nd(ee,Ge):ee);A[O]=Te,T[O]=Te-K}if(l){var je,oe=O==="x"?Ba:Ua,lt=O==="x"?Ji:es,Ie=A[$],et=$==="y"?"height":"width",mt=Ie+w[oe],Wt=Ie-w[lt],zt=[Ba,Ua].indexOf(b)!==-1,tt=(je=U?.[$])!=null?je:0,Je=zt?mt:Ie-I[et]-j[et]-tt+W.altAxis,ct=zt?Ie+I[et]+j[et]-tt-W.altAxis:Wt,Le=v&&zt?Tae(Je,Ie,ct):qm(v?Je:mt,Ie,v?ct:Wt);A[$]=Le,T[$]=Le-Ie}t.modifiersData[r]=T}}const rie={name:"preventOverflow",enabled:!0,phase:"main",fn:nie,requiresIfExists:["offset"]};function oie(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function aie(e){return e===Si(e)||!Ki(e)?uE(e):oie(e)}function iie(e){var t=e.getBoundingClientRect(),n=bp(t.width)/e.offsetWidth||1,r=bp(t.height)/e.offsetHeight||1;return n!==1||r!==1}function sie(e,t,n){n===void 0&&(n=!1);var r=Ki(t),o=Ki(t)&&iie(t),a=ru(t),s=xp(e,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((cl(t)!=="body"||fE(a))&&(l=aie(t)),Ki(t)?(c=xp(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=dE(a))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function lie(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&o(c)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function cie(e){var t=lie(e);return xae.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function uie(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function die(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var hA={placement:"bottom",modifiers:[],strategy:"absolute"};function mA(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function fie(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,a=o===void 0?hA:o;return function(s,l,c){c===void 0&&(c=a);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},hA,a),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},u=[],h=!1,y={state:f,setOptions:function(x){var w=typeof x=="function"?x(f.options):x;S(),f.options=Object.assign({},a,f.options,w),f.scrollParents={reference:gd(s)?Ym(s):s.contextElement?Ym(s.contextElement):[],popper:Ym(l)};var b=cie(die([].concat(r,f.options.modifiers)));return f.orderedModifiers=b.filter(function(k){return k.enabled}),v(),y.update()},forceUpdate:function(){if(!h){var x=f.elements,w=x.reference,b=x.popper;if(mA(w,b)){f.rects={reference:sie(w,Zg(b),f.options.strategy==="fixed"),popper:lE(b)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(j){return f.modifiersData[j.name]=Object.assign({},j.data)});for(var k=0;k<f.orderedModifiers.length;k++){if(f.reset===!0){f.reset=!1,k=-1;continue}var E=f.orderedModifiers[k],O=E.fn,$=E.options,A=$===void 0?{}:$,I=E.name;typeof O=="function"&&(f=O({state:f,options:A,name:I,instance:y})||f)}}}},update:uie(function(){return new Promise(function(x){y.forceUpdate(),x(f)})}),destroy:function(){S(),h=!0}};if(!mA(s,l))return y;y.setOptions(c).then(function(x){!h&&c.onFirstUpdate&&c.onFirstUpdate(x)});function v(){f.orderedModifiers.forEach(function(x){var w=x.name,b=x.options,k=b===void 0?{}:b,E=x.effect;if(typeof E=="function"){var O=E({state:f,name:w,instance:y,options:k}),$=function(){};u.push(O||$)}})}function S(){u.forEach(function(x){return x()}),u=[]}return y}}var pie=[Iae,eie,jae,Cae,Zae,Yae,rie,$ae,Kae],hie=fie({defaultModifiers:pie});function mie(e){return typeof e=="function"?e():e}const kz=C.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[a,s]=C.useState(null),l=mr(C.isValidElement(n)?Dp(n):null,t);if(Lo(()=>{o||s(mie(r)||document.body)},[r,o]),Lo(()=>{if(a&&!o)return _w(t,a),()=>{_w(t,null)}},[t,a,o]),o){if(C.isValidElement(n)){const c={ref:l};return C.cloneElement(n,c)}return n}return a&&Wb.createPortal(n,a)});function gie(e){return cn("MuiPopper",e)}tn("MuiPopper",["root"]);function yie(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function aC(e){return typeof e=="function"?e():e}function vie(e){return e.nodeType!==void 0}const bie=e=>{const{classes:t}=e;return sn({root:["root"]},gie,t)},xie={},Sie=C.forwardRef(function(e,t){const{anchorEl:n,children:r,direction:o,disablePortal:a,modifiers:s,open:l,placement:c,popperOptions:f,popperRef:u,slotProps:h={},slots:y={},TransitionProps:v,ownerState:S,...x}=e,w=C.useRef(null),b=mr(w,t),k=C.useRef(null),E=mr(k,u),O=C.useRef(E);Lo(()=>{O.current=E},[E]),C.useImperativeHandle(u,()=>k.current,[]);const $=yie(c,o),[A,I]=C.useState($),[j,_]=C.useState(aC(n));C.useEffect(()=>{k.current&&k.current.forceUpdate()}),C.useEffect(()=>{n&&_(aC(n))},[n]),Lo(()=>{if(!j||!l)return;const F=K=>{I(K.placement)};let H=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:K})=>{F(K)}}];s!=null&&(H=H.concat(s)),f&&f.modifiers!=null&&(H=H.concat(f.modifiers));const D=hie(j,w.current,{placement:$,...f,modifiers:H});return O.current(D),()=>{D.destroy(),O.current(null)}},[j,a,s,l,f,$]);const W={placement:A};v!==null&&(W.TransitionProps=v);const U=bie(e),T=y.root??"div",L=xr({elementType:T,externalSlotProps:h.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:b},ownerState:e,className:U.root});return m.jsx(T,{...L,children:typeof r=="function"?r(W):r})}),wie=C.forwardRef(function(e,t){const{anchorEl:n,children:r,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:f,placement:u="bottom",popperOptions:h=xie,popperRef:y,style:v,transition:S=!1,slotProps:x={},slots:w={},...b}=e,[k,E]=C.useState(!0),O=()=>{E(!1)},$=()=>{E(!0)};if(!l&&!f&&(!S||k))return null;let A;if(o)A=o;else if(n){const _=aC(n);A=_&&vie(_)?Io(_).body:Io(null).body}const I=!f&&l&&(!S||k)?"none":void 0,j=S?{in:f,onEnter:O,onExited:$}:void 0;return m.jsx(kz,{disablePortal:s,container:A,children:m.jsx(Sie,{anchorEl:n,direction:a,disablePortal:s,modifiers:c,ref:t,open:S?!k:f,placement:u,popperOptions:h,popperRef:y,slotProps:x,slots:w,...b,style:{position:"fixed",top:0,left:0,display:I,...v},TransitionProps:j,children:r})})}),Cie=Qe(wie,{name:"MuiPopper",slot:"Root"})({}),pE=C.forwardRef(function(e,t){const n=Rs(),r=qn({props:e,name:"MuiPopper"}),{anchorEl:o,component:a,components:s,componentsProps:l,container:c,disablePortal:f,keepMounted:u,modifiers:h,open:y,placement:v,popperOptions:S,popperRef:x,transition:w,slots:b,slotProps:k,...E}=r,O=b?.root??s?.Root,$={anchorEl:o,container:c,disablePortal:f,keepMounted:u,modifiers:h,open:y,placement:v,popperOptions:S,popperRef:x,transition:w,...E};return m.jsx(Cie,{as:a,direction:n?"rtl":"ltr",slots:{root:O},slotProps:k??l,...$,ref:t})}),kie=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Eie(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Tie(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Mie(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Tie(e))}function Rie(e){const t=[],n=[];return Array.from(e.querySelectorAll(kie)).forEach((r,o)=>{const a=Eie(r);a===-1||!Mie(r)||(a===0?t.push(r):n.push({documentOrder:o,tabIndex:a,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function Oie(){return!0}function Ez(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=Rie,isEnabled:s=Oie,open:l}=e,c=C.useRef(!1),f=C.useRef(null),u=C.useRef(null),h=C.useRef(null),y=C.useRef(null),v=C.useRef(!1),S=C.useRef(null),x=mr(Dp(t),S),w=C.useRef(null);C.useEffect(()=>{!l||!S.current||(v.current=!n)},[n,l]),C.useEffect(()=>{if(!l||!S.current)return;const E=Io(S.current);return S.current.contains(E.activeElement)||(S.current.hasAttribute("tabIndex")||S.current.setAttribute("tabIndex","-1"),v.current&&S.current.focus()),()=>{o||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}},[l]),C.useEffect(()=>{if(!l||!S.current)return;const E=Io(S.current),O=I=>{w.current=I,!(r||!s()||I.key!=="Tab")&&E.activeElement===S.current&&I.shiftKey&&(c.current=!0,u.current&&u.current.focus())},$=()=>{const I=S.current;if(I===null)return;if(!E.hasFocus()||!s()||c.current){c.current=!1;return}if(I.contains(E.activeElement)||r&&E.activeElement!==f.current&&E.activeElement!==u.current)return;if(E.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!v.current)return;let j=[];if((E.activeElement===f.current||E.activeElement===u.current)&&(j=a(S.current)),j.length>0){const _=!!(w.current?.shiftKey&&w.current?.key==="Tab"),W=j[0],U=j[j.length-1];typeof W!="string"&&typeof U!="string"&&(_?U.focus():W.focus())}else I.focus()};E.addEventListener("focusin",$),E.addEventListener("keydown",O,!0);const A=setInterval(()=>{E.activeElement&&E.activeElement.tagName==="BODY"&&$()},50);return()=>{clearInterval(A),E.removeEventListener("focusin",$),E.removeEventListener("keydown",O,!0)}},[n,r,o,s,l,a]);const b=E=>{h.current===null&&(h.current=E.relatedTarget),v.current=!0,y.current=E.target;const O=t.props.onFocus;O&&O(E)},k=E=>{h.current===null&&(h.current=E.relatedTarget),v.current=!0};return m.jsxs(C.Fragment,{children:[m.jsx("div",{tabIndex:l?0:-1,onFocus:k,ref:f,"data-testid":"sentinelStart"}),C.cloneElement(t,{ref:x,onFocus:b}),m.jsx("div",{tabIndex:l?0:-1,onFocus:k,ref:u,"data-testid":"sentinelEnd"})]})}function $ie(e){return cn("MuiPickersPopper",e)}tn("MuiPickersPopper",["root","paper"]);function Pie(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const Aie=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},Ia=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Ia(t.shadowRoot):t:null},Die="@media (pointer: fine)",jie="@media (prefers-reduced-motion: reduce)",ep=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),gA=ep&&ep[1]?parseInt(ep[1],10):null,yA=ep&&ep[2]?parseInt(ep[2],10):null,Nie=gA&&gA<10||yA&&yA<13||!1,Tz=()=>YL(jie,{defaultMatches:!1})||Nie,Iie=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],Lie=e=>{const{classes:t}=e;return sn({root:["root"],paper:["paper"]},$ie,t)},zie=Qe(pE,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),Fie=Qe(Cd,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});function _ie(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Bie(e,t){const n=C.useRef(!1),r=C.useRef(!1),o=C.useRef(null),a=C.useRef(!1);C.useEffect(()=>{if(!e)return;function c(){a.current=!0}return document.addEventListener("mousedown",c,!0),document.addEventListener("touchstart",c,!0),()=>{document.removeEventListener("mousedown",c,!0),document.removeEventListener("touchstart",c,!0),a.current=!1}},[e]);const s=Ut(c=>{if(!a.current)return;const f=r.current;r.current=!1;const u=Io(o.current);if(!o.current||"clientX"in c&&_ie(c,u))return;if(n.current){n.current=!1;return}let h;c.composedPath?h=c.composedPath().indexOf(o.current)>-1:h=!u.documentElement.contains(c.target)||o.current.contains(c.target),!h&&!f&&t(c)}),l=()=>{r.current=!0};return C.useEffect(()=>{if(e){const c=Io(o.current),f=()=>{n.current=!0};return c.addEventListener("touchstart",s),c.addEventListener("touchmove",f),()=>{c.removeEventListener("touchstart",s),c.removeEventListener("touchmove",f)}}},[e,s]),C.useEffect(()=>{if(e){const c=Io(o.current);return c.addEventListener("click",s),()=>{c.removeEventListener("click",s),r.current=!1}}},[e,s]),[o,l,l]}const Uie=C.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:a,paperSlotProps:s,paperClasses:l,onPaperClick:c,onPaperTouchStart:f}=e,u=Bn(e,Iie),h=Ne({},o,{placement:r}),y=xr({elementType:n,externalSlotProps:s,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:l,ownerState:h});return m.jsx(n,Ne({},u,y,{onClick:v=>{c(v),y.onClick?.(v)},onTouchStart:v=>{f(v),y.onTouchStart?.(v)},ownerState:h,children:a}))});function Vie(e){const t=qr({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:r,containerRef:o=null,shouldRestoreFocus:a,onBlur:s,onDismiss:l,open:c,role:f,placement:u,slots:h,slotProps:y,reduceAnimations:v}=t;C.useEffect(()=>{function H(D){c&&D.key==="Escape"&&l()}return document.addEventListener("keydown",H),()=>{document.removeEventListener("keydown",H)}},[l,c]);const S=C.useRef(null);C.useEffect(()=>{f==="tooltip"||a&&!a()||(c?S.current=Ia(document):S.current&&S.current instanceof HTMLElement&&setTimeout(()=>{S.current instanceof HTMLElement&&S.current.focus()}))},[c,f,a]);const[x,w,b]=Bie(c,s??l),k=C.useRef(null),E=mr(k,o),O=mr(E,x),$=t,A=Lie($),I=Tz(),j=v??I,_=H=>{H.key==="Escape"&&(H.stopPropagation(),l())},W=h?.desktopTransition??j?md:mg,U=h?.desktopTrapFocus??Ez,T=h?.desktopPaper??Fie,L=h?.popper??zie,F=xr({elementType:L,externalSlotProps:y?.popper,additionalProps:{transition:!0,role:f,open:c,anchorEl:n,placement:u,onKeyDown:_},className:A.root,ownerState:t});return m.jsx(L,Ne({},F,{children:({TransitionProps:H,placement:D})=>m.jsx(U,Ne({open:c,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:f==="tooltip",isEnabled:()=>!0},y?.desktopTrapFocus,{children:m.jsx(W,Ne({},H,y?.desktopTransition,{children:m.jsx(Uie,{PaperComponent:T,ownerState:$,popperPlacement:D,ref:O,onPaperClick:w,onPaperTouchStart:b,paperClasses:A.paper,paperSlotProps:y?.desktopPaper,children:r})}))}))}))}const Hie=({open:e,onOpen:t,onClose:n})=>{const r=C.useRef(typeof e=="boolean").current,[o,a]=C.useState(!1);C.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(e)}},[r,e]);const s=C.useCallback(l=>{r||a(l),l&&t&&t(),!l&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:s}},hE=({timezone:e,value:t,defaultValue:n,referenceDate:r,onChange:o,valueManager:a})=>{const s=Yr(),l=C.useRef(n),c=t??l.current??a.emptyValue,f=C.useMemo(()=>a.getTimezone(s,c),[s,a,c]),u=Ut(S=>f==null?S:a.setTimezone(s,f,S));let h;e?h=e:f?h=f:r?h=s.getTimezone(r):h="default";const y=C.useMemo(()=>a.setTimezone(s,h,c),[a,s,h,c]),v=Ut((S,...x)=>{const w=u(S);o?.(w,...x)});return{value:y,handleValueChange:v,timezone:h}},mE=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:o,onChange:a,valueManager:s})=>{const[l,c]=vi({name:e,state:"value",controlled:n,default:r??s.emptyValue}),f=Ut((u,...h)=>{c(u),a?.(u,...h)});return hE({timezone:t,value:l,defaultValue:void 0,referenceDate:o,onChange:f,valueManager:s})},Wie=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,a=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?a?!0:n(r.lastPublishedValue):!1},qie=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:a}=e,s=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?s&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&a?s?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},Yie=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},Gie=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:a,onChange:s,value:l,defaultValue:c,closeOnSelect:f=r==="desktop",timezone:u,referenceDate:h}=e,{current:y}=C.useRef(c),{current:v}=C.useRef(l!==void 0),[S,x]=C.useState(u),w=Yr(),b=wd(),{isOpen:k,setIsOpen:E}=Hie(e),{timezone:O,value:$,handleValueChange:A}=hE({timezone:u,value:l,defaultValue:y,referenceDate:h,onChange:s,valueManager:t}),[I,j]=C.useState(()=>{let pe;return $!==void 0?pe=$:y!==void 0?pe=y:pe=t.emptyValue,{draft:pe,lastPublishedValue:pe,lastCommittedValue:pe,lastControlledValue:l,hasBeenModifiedSinceMount:!1}}),_=t.getTimezone(w,I.draft);S!==u&&(x(u),u&&_&&u!==_&&j(pe=>Ne({},pe,{draft:t.setTimezone(w,u,pe.draft)})));const{getValidationErrorForNewValue:W}=uz({props:e,validator:o,timezone:O,value:I.draft,onError:e.onError}),U=Ut(pe=>{const ne={action:pe,dateState:I,hasChanged:Ge=>!t.areValuesEqual(w,pe.value,Ge),isControlled:v,closeOnSelect:f},me=Wie(ne),xe=qie(ne),Se=Yie(ne);j(Ge=>Ne({},Ge,{draft:pe.value,lastPublishedValue:me?pe.value:Ge.lastPublishedValue,lastCommittedValue:xe?pe.value:Ge.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let ce=null;const Ee=()=>(ce||(ce={validationError:pe.name==="setValueFromField"?pe.context.validationError:W(pe.value)},pe.name==="setValueFromShortcut"&&(ce.shortcut=pe.shortcut)),ce);me&&A(pe.value,Ee()),xe&&a&&a(pe.value,Ee()),Se&&E(!1)});if(I.lastControlledValue!==l){const pe=t.areValuesEqual(w,I.draft,$);j(ne=>Ne({},ne,{lastControlledValue:l},pe?{}:{lastCommittedValue:$,lastPublishedValue:$,draft:$,hasBeenModifiedSinceMount:!0}))}const T=Ut(()=>{U({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),L=Ut(()=>{U({value:I.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),F=Ut(()=>{U({value:I.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),H=Ut(()=>{U({value:I.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),D=Ut(()=>{U({value:t.getTodayValue(w,O,n),name:"setValueFromAction",pickerAction:"today"})}),K=Ut(pe=>{pe.preventDefault(),E(!0)}),Q=Ut(pe=>{pe?.preventDefault(),E(!1)}),ee=Ut((pe,ne="partial")=>U({name:"setValueFromView",value:pe,selectionState:ne})),X=Ut((pe,ne,me)=>U({name:"setValueFromShortcut",value:pe,changeImportance:ne,shortcut:me})),te=Ut((pe,ne)=>U({name:"setValueFromField",value:pe,context:ne})),ae={onClear:T,onAccept:L,onDismiss:F,onCancel:H,onSetToday:D,onOpen:K,onClose:Q},ue={value:I.draft,onChange:te},he=C.useMemo(()=>t.cleanValue(w,I.draft),[w,t,I.draft]),ie={value:he,onChange:ee,onClose:Q,open:k},le=Ne({},ae,{value:he,onChange:ee,onSelectShortcut:X,isValid:pe=>{const ne=o({adapter:b,value:pe,timezone:O,props:e});return!t.hasError(ne)}}),se=C.useMemo(()=>({onOpen:K,onClose:Q,open:k}),[k,Q,K]);return{open:k,fieldProps:ue,viewProps:ie,layoutProps:le,actions:ae,contextValue:se}};function Mz({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:a,focusedView:s,onFocusedViewChange:l}){const c=C.useRef(n),f=C.useRef(o),u=C.useRef(o.includes(n)?n:o[0]),[h,y]=vi({name:"useViews",state:"view",controlled:r,default:u.current}),v=C.useRef(a?h:null),[S,x]=vi({name:"useViews",state:"focusedView",controlled:s,default:v.current});C.useEffect(()=>{(c.current&&c.current!==n||f.current&&f.current.some(I=>!o.includes(I)))&&(y(o.includes(n)?n:o[0]),f.current=o,c.current=n)},[n,y,h,o]);const w=o.indexOf(h),b=o[w-1]??null,k=o[w+1]??null,E=Ut((I,j)=>{x(j?I:_=>I===_?null:_),l?.(I,j)}),O=Ut(I=>{E(I,!0),I!==h&&(y(I),t&&t(I))}),$=Ut(()=>{k&&O(k)}),A=Ut((I,j,_)=>{const W=j==="finish",U=_?o.indexOf(_)<o.length-1:!!k;if(e(I,W&&U?"partial":j,_),_&&_!==h){const T=o[o.indexOf(_)+1];T&&O(T)}else W&&$()});return{view:h,setView:O,focusedView:S,setFocusedView:E,nextView:k,previousView:b,defaultView:o.includes(n)?n:o[0],goToNextView:$,setValueAndGoToNextView:A}}const Kie=["className","sx"],Qie=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:r,rendererInterceptor:o,fieldRef:a})=>{const{onChange:s,open:l,onClose:c}=t,{view:f,views:u,openTo:h,onViewChange:y,viewRenderers:v,timezone:S}=e,x=Bn(e,Kie),{view:w,setView:b,defaultView:k,focusedView:E,setFocusedView:O,setValueAndGoToNextView:$}=Mz({view:f,views:u,openTo:h,onChange:s,onViewChange:y,autoFocus:r}),{hasUIView:A,viewModeLookup:I}=C.useMemo(()=>u.reduce((L,F)=>{let H;return v[F]!=null?H="UI":H="field",L.viewModeLookup[F]=H,H==="UI"&&(L.hasUIView=!0),L},{hasUIView:!1,viewModeLookup:{}}),[v,u]),j=C.useMemo(()=>u.reduce((L,F)=>v[F]!=null&&Rre(F)?L+1:L,0),[v,u]),_=I[w],W=Ut(()=>_==="UI"),[U,T]=C.useState(_==="UI"?w:null);return U!==w&&I[w]==="UI"&&T(w),Lo(()=>{_==="field"&&l&&(c(),setTimeout(()=>{a?.current?.setSelectedSections(w),a?.current?.focusField(w)}))},[w]),Lo(()=>{if(!l)return;let L=w;_==="field"&&U!=null&&(L=U),L!==k&&I[L]==="UI"&&I[k]==="UI"&&(L=k),L!==w&&b(L),O(L,!0)},[l]),{hasUIView:A,shouldRestoreFocus:W,layoutProps:{views:u,view:U,onViewChange:b},renderCurrentView:()=>{if(U==null)return null;const L=v[U];if(L==null)return null;const F=Ne({},x,n,t,{views:u,timezone:S,onChange:$,view:U,onViewChange:b,focusedView:E,onFocusedViewChange:O,showViewSwitcher:j>1,timeViewsCount:j});return o?o(v,U,F):L(F)}}};function vA(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const Xie=(e,t)=>{const[n,r]=C.useState(vA);return Lo(()=>{const o=()=>{r(vA())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),Pie(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},Zie=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,a=Xie(n.views,o),s=Rs();return{layoutProps:Ne({},n,t,{isLandscape:a,isRtl:s,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function Jie(e){const{props:t,pickerValueResponse:n}=e;return C.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:t.disabled??!1,readOnly:t.readOnly??!1}),[n.viewProps.value,n.open,t.disabled,t.readOnly])}const Rz=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:a,autoFocusView:s,rendererInterceptor:l,fieldRef:c})=>{const f=Gie({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:a}),u=Qie({props:e,additionalViewProps:o,autoFocusView:s,fieldRef:c,propsFromPickerValue:f.viewProps,rendererInterceptor:l}),h=Zie({props:e,wrapperVariant:r,propsFromPickerValue:f.layoutProps,propsFromPickerViews:u.layoutProps}),y=Jie({props:e,pickerValueResponse:f});return{open:f.open,actions:f.actions,fieldProps:f.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:h.layoutProps,contextValue:f.contextValue,ownerState:y}};function Oz(e){return cn("MuiPickersLayout",e)}const Du=tn("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function ese(e){return cn("MuiButton",e)}const ju=tn("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),tse=C.createContext({}),nse=C.createContext(void 0),rse=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,loading:s,loadingPosition:l,classes:c}=e,f={root:["root",s&&"loading",a,`${a}${St(t)}`,`size${St(o)}`,`${a}Size${St(o)}`,`color${St(t)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${St(l)}`],startIcon:["icon","startIcon",`iconSize${St(o)}`],endIcon:["icon","endIcon",`iconSize${St(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=sn(f,ese,c);return{...c,...u}},$z=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],ose=Qe(hd,{shouldForwardProp:e=>Ya(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${St(n.color)}`],t[`size${St(n.size)}`],t[`${n.variant}Size${St(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Wn(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${ju.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${ju.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ju.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${ju.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Ca()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ju.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ju.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${ju.loading}`]:{color:"transparent"}}}]}})),ase=Qe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${St(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...$z]})),ise=Qe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${St(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...$z]})),sse=Qe("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),bA=Qe("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),yo=C.forwardRef(function(e,t){const n=C.useContext(tse),r=C.useContext(nse),o=pg(n,e),a=qn({props:o,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:f,disabled:u=!1,disableElevation:h=!1,disableFocusRipple:y=!1,endIcon:v,focusVisibleClassName:S,fullWidth:x=!1,id:w,loading:b=null,loadingIndicator:k,loadingPosition:E="center",size:O="medium",startIcon:$,type:A,variant:I="text",...j}=a,_=Os(w),W=k??m.jsx(pz,{"aria-labelledby":_,color:"inherit",size:16}),U={...a,color:l,component:c,disabled:u,disableElevation:h,disableFocusRipple:y,fullWidth:x,loading:b,loadingIndicator:W,loadingPosition:E,size:O,type:A,variant:I},T=rse(U),L=($||b&&E==="start")&&m.jsx(ase,{className:T.startIcon,ownerState:U,children:$||m.jsx(bA,{className:T.loadingIconPlaceholder,ownerState:U})}),F=(v||b&&E==="end")&&m.jsx(ise,{className:T.endIcon,ownerState:U,children:v||m.jsx(bA,{className:T.loadingIconPlaceholder,ownerState:U})}),H=r||"",D=typeof b=="boolean"?m.jsx("span",{className:T.loadingWrapper,style:{display:"contents"},children:b&&m.jsx(sse,{className:T.loadingIndicator,ownerState:U,children:W})}):null;return m.jsxs(ose,{ownerState:U,className:Lt(n.className,T.root,f,H),component:c,disabled:u||b,focusRipple:!y,focusVisibleClassName:Lt(T.focusVisible,S),ref:t,type:A,id:b?_:w,...j,classes:T,children:[L,E!=="end"&&D,s,E==="end"&&D,F]})});function lse(e){return cn("MuiDialogActions",e)}tn("MuiDialogActions",["root","spacing"]);const cse=e=>{const{classes:t,disableSpacing:n}=e;return sn({root:["root",!n&&"spacing"]},lse,t)},use=Qe("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),dse=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:o=!1,...a}=n,s={...n,disableSpacing:o},l=cse(s);return m.jsx(use,{className:Lt(l.root,r),ownerState:s,ref:t,...a})}),fse=["onAccept","onClear","onCancel","onSetToday","actions"];function pse(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:a}=e,s=Bn(e,fse),l=Xl();if(a==null||a.length===0)return null;const c=a?.map(f=>{switch(f){case"clear":return m.jsx(yo,{onClick:n,children:l.clearButtonLabel},f);case"cancel":return m.jsx(yo,{onClick:r,children:l.cancelButtonLabel},f);case"accept":return m.jsx(yo,{onClick:t,children:l.okButtonLabel},f);case"today":return m.jsx(yo,{onClick:o,children:l.todayButtonLabel},f);default:return null}});return m.jsx(dse,Ne({},s,{children:c}))}const Ul=C.createContext({});function hse(e){return cn("MuiList",e)}tn("MuiList",["root","padding","dense","subheader"]);const mse=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return sn({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},hse,t)},gse=Qe("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Pz=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiList"}),{children:r,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c,...f}=n,u=C.useMemo(()=>({dense:s}),[s]),h={...n,component:a,dense:s,disablePadding:l},y=mse(h);return m.jsx(Ul.Provider,{value:u,children:m.jsxs(gse,{as:a,className:Lt(y.root,o),ref:t,ownerState:h,...f,children:[c,r]})})});function yse(e){return cn("MuiListItem",e)}tn("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const vse=tn("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function bse(e){return cn("MuiListItemSecondaryAction",e)}tn("MuiListItemSecondaryAction",["root","disableGutters"]);const xse=e=>{const{disableGutters:t,classes:n}=e;return sn({root:["root",t&&"disableGutters"]},bse,n)},Sse=Qe("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Az=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiListItemSecondaryAction"}),{className:r,...o}=n,a=C.useContext(Ul),s={...n,disableGutters:a.disableGutters},l=xse(s);return m.jsx(Sse,{className:Lt(l.root,r),ownerState:s,ref:t,...o})});Az.muiName="ListItemSecondaryAction";const wse=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},Cse=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:a,divider:s,hasSecondaryAction:l}=e;return sn({root:["root",r&&"dense",!o&&"gutters",!a&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"]},yse,n)},kse=Qe("div",{name:"MuiListItem",slot:"Root",overridesResolver:wse})(Wn(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${vse.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),Ese=Qe("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Tse=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiListItem"}),{alignItems:r="center",children:o,className:a,component:s,components:l={},componentsProps:c={},ContainerComponent:f="li",ContainerProps:{className:u,...h}={},dense:y=!1,disableGutters:v=!1,disablePadding:S=!1,divider:x=!1,secondaryAction:w,slotProps:b={},slots:k={},...E}=n,O=C.useContext(Ul),$=C.useMemo(()=>({dense:y||O.dense||!1,alignItems:r,disableGutters:v}),[r,O.dense,y,v]),A=C.useRef(null),I=C.Children.toArray(o),j=I.length&&Zv(I[I.length-1],["ListItemSecondaryAction"]),_={...n,alignItems:r,dense:$.dense,disableGutters:v,disablePadding:S,divider:x,hasSecondaryAction:j},W=Cse(_),U=mr(A,t),T=k.root||l.Root||kse,L=b.root||c.root||{},F={className:Lt(W.root,L.className,a),...E};let H=s||"li";return j?(H=!F.component&&!s?"div":H,f==="li"&&(H==="li"?H="div":F.component==="li"&&(F.component="div")),m.jsx(Ul.Provider,{value:$,children:m.jsxs(Ese,{as:f,className:Lt(W.container,u),ref:U,ownerState:_,...h,children:[m.jsx(T,{...L,...!yp(T)&&{as:H,ownerState:{..._,...L.ownerState}},...F,children:I}),I.pop()]})})):m.jsx(Ul.Provider,{value:$,children:m.jsxs(T,{...L,as:H,ref:U,...!yp(T)&&{ownerState:{..._,...L.ownerState}},...F,children:[I,w&&m.jsx(Az,{children:w})]})})}),Mse=er(m.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function Rse(e){return cn("MuiChip",e)}const sr=tn("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]);function lr(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:s,shouldForwardComponentProp:l=!1,...c}=t,{component:f,slots:u={[e]:void 0},slotProps:h={[e]:void 0},...y}=a,v=u[e]||r,S=V0(h[e],o),{props:{component:x,...w},internalRef:b}=ZL({className:n,...c,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:S}),k=mr(b,S?.ref,t.ref),E=e==="root"?x||f:x,O=XL(v,{...e==="root"&&!f&&!u[e]&&s,...e!=="root"&&!u[e]&&s,...w,...E&&!l&&{as:E},...E&&l&&{component:E},ref:k},o);return[v,O]}const Ose=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:s,clickable:l,variant:c}=e,f={root:["root",c,n&&"disabled",`size${St(r)}`,`color${St(o)}`,l&&"clickable",l&&`clickableColor${St(o)}`,s&&"deletable",s&&`deletableColor${St(o)}`,`${c}${St(o)}`],label:["label",`label${St(r)}`],avatar:["avatar",`avatar${St(r)}`,`avatarColor${St(o)}`],icon:["icon",`icon${St(r)}`,`iconColor${St(a)}`],deleteIcon:["deleteIcon",`deleteIcon${St(r)}`,`deleteIconColor${St(o)}`,`deleteIcon${St(c)}Color${St(o)}`]};return sn(f,Rse,t)},$se=Qe("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:s,size:l,variant:c}=n;return[{[`& .${sr.avatar}`]:t.avatar},{[`& .${sr.avatar}`]:t[`avatar${St(l)}`]},{[`& .${sr.avatar}`]:t[`avatarColor${St(r)}`]},{[`& .${sr.icon}`]:t.icon},{[`& .${sr.icon}`]:t[`icon${St(l)}`]},{[`& .${sr.icon}`]:t[`iconColor${St(o)}`]},{[`& .${sr.deleteIcon}`]:t.deleteIcon},{[`& .${sr.deleteIcon}`]:t[`deleteIcon${St(l)}`]},{[`& .${sr.deleteIcon}`]:t[`deleteIconColor${St(r)}`]},{[`& .${sr.deleteIcon}`]:t[`deleteIcon${St(c)}Color${St(r)}`]},t.root,t[`size${St(l)}`],t[`color${St(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${St(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${St(r)}`],t[c],t[`${c}${St(r)}`]]}})(Wn(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${sr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${sr.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${sr.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${sr.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${sr.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${sr.icon}`]:{marginLeft:5,marginRight:-6},[`& .${sr.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${sr.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${sr.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Ca(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${sr.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${sr.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${sr.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${sr.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(Ca(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${sr.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${sr.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Ca(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${sr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${sr.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${sr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${sr.avatar}`]:{marginLeft:4},[`& .${sr.avatarSmall}`]:{marginLeft:2},[`& .${sr.icon}`]:{marginLeft:4},[`& .${sr.iconSmall}`]:{marginLeft:2},[`& .${sr.deleteIcon}`]:{marginRight:5},[`& .${sr.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Ca()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${sr.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${sr.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${sr.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),Pse=Qe("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${St(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function xA(e){return e.key==="Backspace"||e.key==="Delete"}const Dz=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiChip"}),{avatar:r,className:o,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:f=!1,icon:u,label:h,onClick:y,onDelete:v,onKeyDown:S,onKeyUp:x,size:w="medium",variant:b="filled",tabIndex:k,skipFocusWhenDisabled:E=!1,slots:O={},slotProps:$={},...A}=n,I=C.useRef(null),j=mr(I,t),_=ie=>{ie.stopPropagation(),v&&v(ie)},W=ie=>{ie.currentTarget===ie.target&&xA(ie)&&ie.preventDefault(),S&&S(ie)},U=ie=>{ie.currentTarget===ie.target&&v&&xA(ie)&&v(ie),x&&x(ie)},T=a!==!1&&y?!0:a,L=T||v?hd:l||"div",F={...n,component:L,disabled:f,size:w,color:s,iconColor:C.isValidElement(u)&&u.props.color||s,onDelete:!!v,clickable:T,variant:b},H=Ose(F),D=L===hd?{component:l||"div",focusVisibleClassName:H.focusVisible,...v&&{disableRipple:!0}}:{};let K=null;v&&(K=c&&C.isValidElement(c)?C.cloneElement(c,{className:Lt(c.props.className,H.deleteIcon),onClick:_}):m.jsx(Mse,{className:H.deleteIcon,onClick:_}));let Q=null;r&&C.isValidElement(r)&&(Q=C.cloneElement(r,{className:Lt(H.avatar,r.props.className)}));let ee=null;u&&C.isValidElement(u)&&(ee=C.cloneElement(u,{className:Lt(H.icon,u.props.className)}));const X={slots:O,slotProps:$},[te,ae]=lr("root",{elementType:$se,externalForwardedProps:{...X,...A},ownerState:F,shouldForwardComponentProp:!0,ref:j,className:Lt(H.root,o),additionalProps:{disabled:T&&f?!0:void 0,tabIndex:E&&f?-1:k,...D},getSlotProps:ie=>({...ie,onClick:le=>{ie.onClick?.(le),y?.(le)},onKeyDown:le=>{ie.onKeyDown?.(le),W(le)},onKeyUp:le=>{ie.onKeyUp?.(le),U(le)}})}),[ue,he]=lr("label",{elementType:Pse,externalForwardedProps:X,ownerState:F,className:H.label});return m.jsxs(te,{as:L,...ae,children:[Q||ee,m.jsx(ue,{...he,children:h}),K]})}),vg=36,G0=2,K0=320,Ase=280,gE=336,Dse=["items","changeImportance","isLandscape","onChange","isValid"],jse=["getValue"];function Nse(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,a=Bn(e,Dse);if(t==null||t.length===0)return null;const s=t.map(l=>{let{getValue:c}=l,f=Bn(l,jse);const u=c({isValid:o});return Ne({},f,{label:f.label,onClick:()=>{r(u,n,f)},disabled:!o(u)})});return m.jsx(Pz,Ne({dense:!0,sx:[{maxHeight:gE,maxWidth:200,overflow:"auto"},...Array.isArray(a.sx)?a.sx:[a.sx]]},a,{children:s.map(l=>m.jsx(Tse,{children:m.jsx(Dz,Ne({},l))},l.id??l.label))}))}function Ise(e){return e.view!==null}const Lse=e=>{const{classes:t,isLandscape:n}=e;return sn({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},Oz,t)},zse=e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:o,onSetToday:a,view:s,views:l,onViewChange:c,value:f,onChange:u,onSelectShortcut:h,isValid:y,isLandscape:v,disabled:S,readOnly:x,children:w,slots:b,slotProps:k}=e,E=Lse(e),O=b?.actionBar??pse,$=xr({elementType:O,externalSlotProps:k?.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:a,actions:t==="desktop"?[]:["cancel","accept"]},className:E.actionBar,ownerState:Ne({},e,{wrapperVariant:t})}),A=m.jsx(O,Ne({},$)),I=b?.toolbar,j=xr({elementType:I,externalSlotProps:k?.toolbar,additionalProps:{isLandscape:v,onChange:u,value:f,view:s,onViewChange:c,views:l,disabled:S,readOnly:x},className:E.toolbar,ownerState:Ne({},e,{wrapperVariant:t})}),_=Ise(j)&&I?m.jsx(I,Ne({},j)):null,W=w,U=b?.tabs,T=s&&U?m.jsx(U,Ne({view:s,onViewChange:c,className:E.tabs},k?.tabs)):null,L=b?.shortcuts??Nse,F=xr({elementType:L,externalSlotProps:k?.shortcuts,additionalProps:{isValid:y,isLandscape:v,onChange:h},className:E.shortcuts,ownerState:{isValid:y,isLandscape:v,onChange:h,wrapperVariant:t}}),H=s&&L?m.jsx(L,Ne({},F)):null;return{toolbar:_,content:W,tabs:T,actionBar:A,shortcuts:H}},Fse=e=>{const{isLandscape:t,classes:n}=e;return sn({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},Oz,n)},_se=Qe("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Du.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${Du.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Du.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${Du.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${Du.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Du.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${Du.shortcuts}`]:{gridColumn:3}}}]}),Bse=Qe("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),jz=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:a,actionBar:s,shortcuts:l}=zse(n),{sx:c,className:f,isLandscape:u,wrapperVariant:h}=n,y=Fse(n);return m.jsxs(_se,{ref:t,sx:c,className:Lt(y.root,f),ownerState:n,children:[u?l:r,u?r:l,m.jsx(Bse,{className:y.contentWrapper,children:h==="desktop"?m.jsxs(C.Fragment,{children:[o,a]}):m.jsxs(C.Fragment,{children:[a,o]})}),s]})}),Use=C.createContext(null);function Nz(e){const{contextValue:t,localeText:n,children:r}=e;return m.jsx(Use.Provider,{value:t,children:m.jsx(Rb,{localeText:n,children:r})})}const Vse=["props","getOpenDialogAriaText"],Hse=["ownerState"],Wse=["ownerState"],qse=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=Bn(e,Vse);const{slots:o,slotProps:a,className:s,sx:l,format:c,formatDensity:f,enableAccessibleFieldDOMStructure:u,selectedSections:h,onSelectedSectionsChange:y,timezone:v,name:S,label:x,inputRef:w,readOnly:b,disabled:k,autoFocus:E,localeText:O,reduceAnimations:$}=t,A=C.useRef(null),I=C.useRef(null),j=Os(),_=a?.toolbar?.hidden??!1,{open:W,actions:U,hasUIView:T,layoutProps:L,renderCurrentView:F,shouldRestoreFocus:H,fieldProps:D,contextValue:K,ownerState:Q}=Rz(Ne({},r,{props:t,fieldRef:I,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),ee=o.inputAdornment??dz,X=xr({elementType:ee,externalSlotProps:a?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),te=Bn(X,Hse),ae=o.openPickerButton??nu,ue=xr({elementType:ae,externalSlotProps:a?.openPickerButton,additionalProps:{disabled:k||b,onClick:W?U.onClose:U.onOpen,"aria-label":n(D.value),edge:te.position},ownerState:t}),he=Bn(ue,Wse),ie=o.openPickerIcon,le=xr({elementType:ie,externalSlotProps:a?.openPickerIcon,ownerState:Q}),se=o.field,pe=xr({elementType:se,externalSlotProps:a?.field,additionalProps:Ne({},D,_&&{id:j},{readOnly:b,disabled:k,className:s,sx:l,format:c,formatDensity:f,enableAccessibleFieldDOMStructure:u,selectedSections:h,onSelectedSectionsChange:y,timezone:v,label:x,name:S,autoFocus:E&&!t.open,focused:W?!0:void 0},w?{inputRef:w}:{}),ownerState:t});T&&(pe.InputProps=Ne({},pe.InputProps,{ref:A},!t.disableOpenPicker&&{[`${te.position}Adornment`]:m.jsx(ee,Ne({},te,{children:m.jsx(ae,Ne({},he,{children:m.jsx(ie,Ne({},le))}))}))}));const ne=Ne({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},pe.slots),me=o.layout??jz;let xe=j;_&&(x?xe=`${j}-label`:xe=void 0);const Se=Ne({},a,{toolbar:Ne({},a?.toolbar,{titleId:j}),popper:Ne({"aria-labelledby":xe},a?.popper)}),ce=mr(I,pe.unstableFieldRef);return{renderPicker:()=>m.jsxs(Nz,{contextValue:K,localeText:O,children:[m.jsx(se,Ne({},pe,{slots:ne,slotProps:Se,unstableFieldRef:ce})),m.jsx(Vie,Ne({role:"dialog",placement:"bottom-start",anchorEl:A.current},U,{open:W,slots:o,slotProps:Se,shouldRestoreFocus:H,reduceAnimations:$,children:m.jsx(me,Ne({},L,Se?.layout,{slots:o,slotProps:Se,children:F()}))}))]})}},Yse=er(m.jsx("path",{d:"M7 10l5 5 5-5z"})),Gse=er(m.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"})),Kse=er(m.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),Qse=er(m.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}));er(m.jsxs(C.Fragment,{children:[m.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),m.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}));er(m.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}));er(m.jsxs(C.Fragment,{children:[m.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),m.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}));const Xse=er(m.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"}));function wv(e){return parseInt(e,10)||0}const Zse={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Jse(e){for(const t in e)return!1;return!0}function SA(e){return Jse(e)||e.outerHeightStyle===0&&!e.overflowing}const ele=C.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:a,value:s,...l}=e,{current:c}=C.useRef(s!=null),f=C.useRef(null),u=mr(t,f),h=C.useRef(null),y=C.useRef(null),v=C.useCallback(()=>{const k=f.current,E=y.current;if(!k||!E)return;const O=Gl(k).getComputedStyle(k);if(O.width==="0px")return{outerHeightStyle:0,overflowing:!1};E.style.width=O.width,E.value=k.value||e.placeholder||"x",E.value.slice(-1)===`
439
+ `&&(E.value+=" ");const $=O.boxSizing,A=wv(O.paddingBottom)+wv(O.paddingTop),I=wv(O.borderBottomWidth)+wv(O.borderTopWidth),j=E.scrollHeight;E.value="x";const _=E.scrollHeight;let W=j;o&&(W=Math.max(Number(o)*_,W)),r&&(W=Math.min(Number(r)*_,W)),W=Math.max(W,_);const U=W+($==="border-box"?A+I:0),T=Math.abs(W-j)<=1;return{outerHeightStyle:U,overflowing:T}},[r,o,e.placeholder]),S=Ut(()=>{const k=f.current,E=v();if(!k||!E||SA(E))return!1;const O=E.outerHeightStyle;return h.current!=null&&h.current!==O}),x=C.useCallback(()=>{const k=f.current,E=v();if(!k||!E||SA(E))return;const O=E.outerHeightStyle;h.current!==O&&(h.current=O,k.style.height=`${O}px`),k.style.overflow=E.overflowing?"hidden":""},[v]),w=C.useRef(-1);Lo(()=>{const k=AL(x),E=f?.current;if(!E)return;const O=Gl(E);O.addEventListener("resize",k);let $;return typeof ResizeObserver<"u"&&($=new ResizeObserver(()=>{S()&&($.unobserve(E),cancelAnimationFrame(w.current),x(),w.current=requestAnimationFrame(()=>{$.observe(E)}))}),$.observe(E)),()=>{k.clear(),cancelAnimationFrame(w.current),O.removeEventListener("resize",k),$&&$.disconnect()}},[v,x,S]),Lo(()=>{x()});const b=k=>{c||x();const E=k.target,O=E.value.length,$=E.value.endsWith(`
440
+ `),A=E.selectionStart===O;$&&A&&E.setSelectionRange(O,O),n&&n(k)};return m.jsxs(C.Fragment,{children:[m.jsx("textarea",{value:s,onChange:b,ref:u,rows:o,style:a,...l}),m.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:y,tabIndex:-1,style:{...Zse.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function kd({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}function wA(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Db(e,t=!1){return e&&(wA(e.value)&&e.value!==""||t&&wA(e.defaultValue)&&e.defaultValue!=="")}function tle(e){return e.startAdornment}function nle(e){return cn("MuiInputBase",e)}const fi=tn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var CA;const Q0=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${St(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},X0=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},rle=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:s,formControl:l,fullWidth:c,hiddenLabel:f,multiline:u,readOnly:h,size:y,startAdornment:v,type:S}=e,x={root:["root",`color${St(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",s&&"focused",l&&"formControl",y&&y!=="medium"&&`size${St(y)}`,u&&"multiline",v&&"adornedStart",a&&"adornedEnd",f&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",S==="search"&&"inputTypeSearch",u&&"inputMultiline",y==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",v&&"inputAdornedStart",a&&"inputAdornedEnd",h&&"readOnly"]};return sn(x,nle,t)},Z0=Qe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Q0})(Wn(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${fi.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),J0=Qe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:X0})(Wn(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${fi.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${fi.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),kA=ene({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),yE=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:o,autoFocus:a,className:s,color:l,components:c={},componentsProps:f={},defaultValue:u,disabled:h,disableInjectingGlobalStyles:y,endAdornment:v,error:S,fullWidth:x=!1,id:w,inputComponent:b="input",inputProps:k={},inputRef:E,margin:O,maxRows:$,minRows:A,multiline:I=!1,name:j,onBlur:_,onChange:W,onClick:U,onFocus:T,onKeyDown:L,onKeyUp:F,placeholder:H,readOnly:D,renderSuffix:K,rows:Q,size:ee,slotProps:X={},slots:te={},startAdornment:ae,type:ue="text",value:he,...ie}=n,le=k.value!=null?k.value:he,{current:se}=C.useRef(le!=null),pe=C.useRef(),ne=C.useCallback(qe=>{},[]),me=mr(pe,E,k.ref,ne),[xe,Se]=C.useState(!1),ce=Ei(),Ee=kd({props:n,muiFormControl:ce,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ee.focused=ce?ce.focused:xe,C.useEffect(()=>{!ce&&h&&xe&&(Se(!1),_&&_())},[ce,h,xe,_]);const Ge=ce&&ce.onFilled,Te=ce&&ce.onEmpty,je=C.useCallback(qe=>{Db(qe)?Ge&&Ge():Te&&Te()},[Ge,Te]);Lo(()=>{se&&je({value:le})},[le,je,se]);const oe=qe=>{T&&T(qe),k.onFocus&&k.onFocus(qe),ce&&ce.onFocus?ce.onFocus(qe):Se(!0)},lt=qe=>{_&&_(qe),k.onBlur&&k.onBlur(qe),ce&&ce.onBlur?ce.onBlur(qe):Se(!1)},Ie=(qe,...De)=>{if(!se){const wt=qe.target||pe.current;if(wt==null)throw new Error(ql(1));je({value:wt.value})}k.onChange&&k.onChange(qe,...De),W&&W(qe,...De)};C.useEffect(()=>{je(pe.current)},[]);const et=qe=>{pe.current&&qe.currentTarget===qe.target&&pe.current.focus(),U&&U(qe)};let mt=b,Wt=k;I&&mt==="input"&&(Q?Wt={type:void 0,minRows:Q,maxRows:Q,...Wt}:Wt={type:void 0,maxRows:$,minRows:A,...Wt},mt=ele);const zt=qe=>{je(qe.animationName==="mui-auto-fill-cancel"?pe.current:{value:"x"})};C.useEffect(()=>{ce&&ce.setAdornedStart(!!ae)},[ce,ae]);const tt={...n,color:Ee.color||"primary",disabled:Ee.disabled,endAdornment:v,error:Ee.error,focused:Ee.focused,formControl:ce,fullWidth:x,hiddenLabel:Ee.hiddenLabel,multiline:I,size:Ee.size,startAdornment:ae,type:ue},Je=rle(tt),ct=te.root||c.Root||Z0,Le=X.root||f.root||{},ge=te.input||c.Input||J0;return Wt={...Wt,...X.input??f.input},m.jsxs(C.Fragment,{children:[!y&&typeof kA=="function"&&(CA||(CA=m.jsx(kA,{}))),m.jsxs(ct,{...Le,ref:t,onClick:et,...ie,...!yp(ct)&&{ownerState:{...tt,...Le.ownerState}},className:Lt(Je.root,Le.className,s,D&&"MuiInputBase-readOnly"),children:[ae,m.jsx(q0.Provider,{value:null,children:m.jsx(ge,{"aria-invalid":Ee.error,"aria-describedby":r,autoComplete:o,autoFocus:a,defaultValue:u,disabled:Ee.disabled,id:w,onAnimationStart:zt,name:j,placeholder:H,readOnly:D,required:Ee.required,rows:Q,value:le,onKeyDown:L,onKeyUp:F,type:ue,...Wt,...!yp(ge)&&{as:mt,ownerState:{...tt,...Wt.ownerState}},ref:me,className:Lt(Je.input,Wt.className,D&&"MuiInputBase-readOnly"),onBlur:lt,onChange:Ie,onFocus:oe})}),v,K?K({...Ee,startAdornment:ae}):null]})]})});function ole(e){return cn("MuiInput",e)}const Nc={...fi,...tn("MuiInput",["root","underline","input"])},ale=e=>{const{classes:t,disableUnderline:n}=e,r=sn({root:["root",!n&&"underline"],input:["input"]},ole,t);return{...t,...r}},ile=Qe(Z0,{shouldForwardProp:e=>Ya(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Q0(e,t),!n.disableUnderline&&t.underline]}})(Wn(({theme:e})=>{let t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Nc.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Nc.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Nc.disabled}, .${Nc.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${Nc.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ca()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),sle=Qe(J0,{name:"MuiInput",slot:"Input",overridesResolver:X0})({}),vE=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiInput"}),{disableUnderline:r=!1,components:o={},componentsProps:a,fullWidth:s=!1,inputComponent:l="input",multiline:c=!1,slotProps:f,slots:u={},type:h="text",...y}=n,v=ale(n),S={root:{ownerState:{disableUnderline:r}}},x=f??a?pa(f??a,S):S,w=u.root??o.Root??ile,b=u.input??o.Input??sle;return m.jsx(yE,{slots:{root:w,input:b},slotProps:x,fullWidth:s,inputComponent:l,multiline:c,ref:t,type:h,...y,classes:v})});vE.muiName="Input";function lle(e){return cn("MuiFilledInput",e)}const pi={...fi,...tn("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},cle=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:a,hiddenLabel:s,multiline:l}=e,c={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${St(a)}`,s&&"hiddenLabel",l&&"multiline"],input:["input"]},f=sn(c,lle,t);return{...t,...f}},ule=Qe(Z0,{shouldForwardProp:e=>Ya(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Q0(e,t),!n.disableUnderline&&t.underline]}})(Wn(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${pi.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${pi.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${pi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${pi.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${pi.disabled}, .${pi.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${pi.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ca()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:l})=>s.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),dle=Qe(J0,{name:"MuiFilledInput",slot:"Input",overridesResolver:X0})(Wn(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),bE=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:o={},componentsProps:a,fullWidth:s=!1,hiddenLabel:l,inputComponent:c="input",multiline:f=!1,slotProps:u,slots:h={},type:y="text",...v}=n,S={...n,disableUnderline:r,fullWidth:s,inputComponent:c,multiline:f,type:y},x=cle(n),w={root:{ownerState:S},input:{ownerState:S}},b=u??a?pa(w,u??a):w,k=h.root??o.Root??ule,E=h.input??o.Input??dle;return m.jsx(yE,{slots:{root:k,input:E},slotProps:b,fullWidth:s,inputComponent:c,multiline:f,ref:t,type:y,...v,classes:x})});bE.muiName="Input";var EA;const fle=Qe("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Ya})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),ple=Qe("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Ya})(Wn(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function hle(e){const{children:t,classes:n,className:r,label:o,notched:a,...s}=e,l=o!=null&&o!=="",c={...e,notched:a,withLabel:l};return m.jsx(fle,{"aria-hidden":!0,className:r,ownerState:c,...s,children:m.jsx(ple,{ownerState:c,children:l?m.jsx("span",{children:o}):EA||(EA=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}function mle(e){return cn("MuiOutlinedInput",e)}const zi={...fi,...tn("MuiOutlinedInput",["root","notchedOutline","input"])},gle=e=>{const{classes:t}=e,n=sn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},mle,t);return{...t,...n}},yle=Qe(Z0,{shouldForwardProp:e=>Ya(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Q0})(Wn(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${zi.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${zi.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${zi.focused} .${zi.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Ca()).map(([n])=>({props:{color:n},style:{[`&.${zi.focused} .${zi.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${zi.error} .${zi.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${zi.disabled} .${zi.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),vle=Qe(hle,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Wn(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),ble=Qe(J0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:X0})(Wn(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),xE=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiOutlinedInput"}),{components:r={},fullWidth:o=!1,inputComponent:a="input",label:s,multiline:l=!1,notched:c,slots:f={},slotProps:u={},type:h="text",...y}=n,v=gle(n),S=Ei(),x=kd({props:n,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),w={...n,color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:S,fullWidth:o,hiddenLabel:x.hiddenLabel,multiline:l,size:x.size,type:h},b=f.root??r.Root??yle,k=f.input??r.Input??ble,[E,O]=lr("notchedOutline",{elementType:vle,className:v.notchedOutline,shouldForwardComponentProp:!0,ownerState:w,externalForwardedProps:{slots:f,slotProps:u},additionalProps:{label:s!=null&&s!==""&&x.required?m.jsxs(C.Fragment,{children:[s," ","*"]}):s}});return m.jsx(yE,{slots:{root:b,input:k},slotProps:u,renderSuffix:$=>m.jsx(E,{...O,notched:typeof c<"u"?c:!!($.startAdornment||$.filled||$.focused)}),fullWidth:o,inputComponent:a,multiline:l,ref:t,type:h,...y,classes:{...v,notchedOutline:null}})});xE.muiName="Input";function xle(e){return cn("MuiFormLabel",e)}const Gm=tn("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Sle=e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:s,required:l}=e,c={root:["root",`color${St(n)}`,o&&"disabled",a&&"error",s&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]};return sn(c,xle,t)},wle=Qe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Wn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Ca()).map(([t])=>({props:{color:t},style:{[`&.${Gm.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Gm.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Gm.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Cle=Qe("span",{name:"MuiFormLabel",slot:"Asterisk"})(Wn(({theme:e})=>({[`&.${Gm.error}`]:{color:(e.vars||e).palette.error.main}}))),kle=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiFormLabel"}),{children:r,className:o,color:a,component:s="label",disabled:l,error:c,filled:f,focused:u,required:h,...y}=n,v=Ei(),S=kd({props:n,muiFormControl:v,states:["color","required","focused","disabled","error","filled"]}),x={...n,color:S.color||"primary",component:s,disabled:S.disabled,error:S.error,filled:S.filled,focused:S.focused,required:S.required},w=Sle(x);return m.jsxs(wle,{as:s,ownerState:x,className:Lt(w.root,o),ref:t,...y,children:[r,S.required&&m.jsxs(Cle,{ownerState:x,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]})});function Ele(e){return cn("MuiInputLabel",e)}tn("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Tle=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:s,required:l}=e,c={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&r!=="medium"&&`size${St(r)}`,s],asterisk:[l&&"asterisk"]},f=sn(c,Ele,t);return{...t,...f}},Mle=Qe(kle,{shouldForwardProp:e=>Ya(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Gm.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Wn(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Iz=C.forwardRef(function(e,t){const n=qn({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,margin:o,shrink:a,variant:s,className:l,...c}=n,f=Ei();let u=a;typeof u>"u"&&f&&(u=f.filled||f.focused||f.adornedStart);const h=kd({props:n,muiFormControl:f,states:["size","variant","required","focused"]}),y={...n,disableAnimation:r,formControl:f,shrink:u,size:h.size,variant:h.variant,required:h.required,focused:h.focused},v=Tle(y);return m.jsx(Mle,{"data-shrink":u,ref:t,className:Lt(v.root,l),...c,ownerState:y,classes:v})});function Rle(e){return cn("MuiFormControl",e)}tn("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Ole=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${St(n)}`,r&&"fullWidth"]};return sn(o,Rle,t)},$le=Qe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${St(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Lz=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiFormControl"}),{children:r,className:o,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:f,fullWidth:u=!1,hiddenLabel:h=!1,margin:y="none",required:v=!1,size:S="medium",variant:x="outlined",...w}=n,b={...n,color:a,component:s,disabled:l,error:c,fullWidth:u,hiddenLabel:h,margin:y,required:v,size:S,variant:x},k=Ole(b),[E,O]=C.useState(()=>{let F=!1;return r&&C.Children.forEach(r,H=>{if(!Zv(H,["Input","Select"]))return;const D=Zv(H,["Select"])?H.props.input:H;D&&tle(D.props)&&(F=!0)}),F}),[$,A]=C.useState(()=>{let F=!1;return r&&C.Children.forEach(r,H=>{Zv(H,["Input","Select"])&&(Db(H.props,!0)||Db(H.props.inputProps,!0))&&(F=!0)}),F}),[I,j]=C.useState(!1);l&&I&&j(!1);const _=f!==void 0&&!l?f:I;let W;C.useRef(!1);const U=C.useCallback(()=>{A(!0)},[]),T=C.useCallback(()=>{A(!1)},[]),L=C.useMemo(()=>({adornedStart:E,setAdornedStart:O,color:a,disabled:l,error:c,filled:$,focused:_,fullWidth:u,hiddenLabel:h,size:S,onBlur:()=>{j(!1)},onFocus:()=>{j(!0)},onEmpty:T,onFilled:U,registerEffect:W,required:v,variant:x}),[E,a,l,c,$,_,u,h,W,T,U,v,S,x]);return m.jsx(q0.Provider,{value:L,children:m.jsx($le,{as:s,ownerState:b,className:Lt(k.root,o),ref:t,...w,children:r})})});function Ple(e){return cn("MuiFormHelperText",e)}const TA=tn("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var MA;const Ale=e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:s,focused:l,required:c}=e,f={root:["root",o&&"disabled",a&&"error",r&&`size${St(r)}`,n&&"contained",l&&"focused",s&&"filled",c&&"required"]};return sn(f,Ple,t)},Dle=Qe("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${St(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Wn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${TA.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${TA.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),zz=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiFormHelperText"}),{children:r,className:o,component:a="p",disabled:s,error:l,filled:c,focused:f,margin:u,required:h,variant:y,...v}=n,S=Ei(),x=kd({props:n,muiFormControl:S,states:["variant","size","disabled","error","filled","focused","required"]}),w={...n,component:a,contained:x.variant==="filled"||x.variant==="outlined",variant:x.variant,size:x.size,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required};delete w.ownerState;const b=Ale(w);return m.jsx(Dle,{as:a,className:Lt(b.root,o),ref:t,...v,ownerState:w,children:r===" "?MA||(MA=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):r})});function DS(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function RA(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Fz(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function sm(e,t,n,r,o,a){let s=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(s)return!1;s=!0}const c=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Fz(l,a)||c)l=o(e,l,n);else return l.focus(),!0}return!1}const jle=C.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:f,variant:u="selectedMenu",...h}=e,y=C.useRef(null),v=C.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Lo(()=>{r&&y.current.focus()},[r]),C.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(k,{direction:E})=>{const O=!y.current.style.width;if(k.clientHeight<y.current.clientHeight&&O){const $=`${QL(Gl(k))}px`;y.current.style[E==="rtl"?"paddingLeft":"paddingRight"]=$,y.current.style.width=`calc(100% + ${$})`}return y.current}}),[]);const S=k=>{const E=y.current,O=k.key;if(k.ctrlKey||k.metaKey||k.altKey){f&&f(k);return}const $=Io(E).activeElement;if(O==="ArrowDown")k.preventDefault(),sm(E,$,c,l,DS);else if(O==="ArrowUp")k.preventDefault(),sm(E,$,c,l,RA);else if(O==="Home")k.preventDefault(),sm(E,null,c,l,DS);else if(O==="End")k.preventDefault(),sm(E,null,c,l,RA);else if(O.length===1){const A=v.current,I=O.toLowerCase(),j=performance.now();A.keys.length>0&&(j-A.lastTime>500?(A.keys=[],A.repeating=!0,A.previousKeyMatched=!0):A.repeating&&I!==A.keys[0]&&(A.repeating=!1)),A.lastTime=j,A.keys.push(I);const _=$&&!A.repeating&&Fz($,A);A.previousKeyMatched&&(_||sm(E,$,!1,l,DS,A))?k.preventDefault():A.previousKeyMatched=!1}f&&f(k)},x=mr(y,t);let w=-1;C.Children.forEach(a,(k,E)=>{if(!C.isValidElement(k)){w===E&&(w+=1,w>=a.length&&(w=-1));return}k.props.disabled||(u==="selectedMenu"&&k.props.selected||w===-1)&&(w=E),w===E&&(k.props.disabled||k.props.muiSkipListHighlight||k.type.muiSkipListHighlight)&&(w+=1,w>=a.length&&(w=-1))});const b=C.Children.map(a,(k,E)=>{if(E===w){const O={};return o&&(O.autoFocus=!0),k.props.tabIndex===void 0&&u==="selectedMenu"&&(O.tabIndex=0),C.cloneElement(k,O)}return k});return m.jsx(Pz,{role:"menu",ref:x,className:s,onKeyDown:S,tabIndex:r?0:-1,...h,children:b})});function Nle(e){const t=Io(e);return t.body===e?Gl(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Km(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function OA(e){return parseInt(Gl(e).getComputedStyle(e).paddingRight,10)||0}function Ile(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return t||n}function $A(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,s=>{const l=!a.includes(s),c=!Ile(s);l&&c&&Km(s,o)})}function jS(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function Lle(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Nle(r)){const a=QL(Gl(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${OA(r)+a}px`;const s=Io(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${OA(l)+a}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=Io(r).body;else{const a=r.parentElement,s=Gl(r);o=a?.nodeName==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:a,property:s})=>{o?a.style.setProperty(s,o):a.style.removeProperty(s)})}}function zle(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Fle{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Km(t.modalRef,!1);const o=zle(n);$A(n,t.mount,t.modalRef,o,!0);const a=jS(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=jS(this.containers,a=>a.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=Lle(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=jS(this.containers,s=>s.modals.includes(t)),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Km(t.modalRef,n),$A(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&Km(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function _le(e){return cn("MuiBackdrop",e)}tn("MuiBackdrop",["root","invisible"]);const Ble=e=>{const{classes:t,invisible:n}=e;return sn({root:["root",n&&"invisible"]},_le,t)},Ule=Qe("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),_z=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiBackdrop"}),{children:r,className:o,component:a="div",invisible:s=!1,open:l,components:c={},componentsProps:f={},slotProps:u={},slots:h={},TransitionComponent:y,transitionDuration:v,...S}=n,x={...n,component:a,invisible:s},w=Ble(x),b={transition:y,root:c.Root,...h},k={...f,...u},E={component:a,slots:b,slotProps:k},[O,$]=lr("root",{elementType:Ule,externalForwardedProps:E,className:Lt(w.root,o),ownerState:x}),[A,I]=lr("transition",{elementType:md,externalForwardedProps:E,ownerState:x});return m.jsx(A,{in:l,timeout:v,...S,...I,children:m.jsx(O,{"aria-hidden":!0,...$,classes:w,ref:t,children:r})})});function Vle(e){return typeof e=="function"?e():e}function Hle(e){return e?e.props.hasOwnProperty("in"):!1}const PA=()=>{},Cv=new Fle;function Wle(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:f,rootRef:u}=e,h=C.useRef({}),y=C.useRef(null),v=C.useRef(null),S=mr(v,u),[x,w]=C.useState(!f),b=Hle(l);let k=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(k=!1);const E=()=>Io(y.current),O=()=>(h.current.modalRef=v.current,h.current.mount=y.current,h.current),$=()=>{Cv.mount(O(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},A=Ut(()=>{const T=Vle(t)||E().body;Cv.add(O(),T),v.current&&$()}),I=()=>Cv.isTopModal(O()),j=Ut(T=>{y.current=T,T&&(f&&I()?$():v.current&&Km(v.current,k))}),_=C.useCallback(()=>{Cv.remove(O(),k)},[k]);C.useEffect(()=>()=>{_()},[_]),C.useEffect(()=>{f?A():(!b||!o)&&_()},[f,_,b,o,A]);const W=T=>L=>{T.onKeyDown?.(L),!(L.key!=="Escape"||L.which===229||!I())&&(n||(L.stopPropagation(),c&&c(L,"escapeKeyDown")))},U=T=>L=>{T.onClick?.(L),L.target===L.currentTarget&&c&&c(L,"backdropClick")};return{getRootProps:(T={})=>{const L=Tb(e);delete L.onTransitionEnter,delete L.onTransitionExited;const F={...L,...T};return{role:"presentation",...F,onKeyDown:W(F),ref:S}},getBackdropProps:(T={})=>{const L=T;return{"aria-hidden":!0,...L,onClick:U(L),open:f}},getTransitionProps:()=>{const T=()=>{w(!1),a&&a()},L=()=>{w(!0),s&&s(),o&&_()};return{onEnter:oP(T,l?.props.onEnter??PA),onExited:oP(L,l?.props.onExited??PA)}},rootRef:S,portalRef:j,isTopModal:I,exited:x,hasTransition:b}}function qle(e){return cn("MuiModal",e)}tn("MuiModal",["root","hidden","backdrop"]);const Yle=e=>{const{open:t,exited:n,classes:r}=e;return sn({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},qle,r)},Gle=Qe("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Wn(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),Kle=Qe(_z,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Bz=C.forwardRef(function(e,t){const n=qn({name:"MuiModal",props:e}),{BackdropComponent:r=Kle,BackdropProps:o,classes:a,className:s,closeAfterTransition:l=!1,children:c,container:f,component:u,components:h={},componentsProps:y={},disableAutoFocus:v=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:x=!1,disablePortal:w=!1,disableRestoreFocus:b=!1,disableScrollLock:k=!1,hideBackdrop:E=!1,keepMounted:O=!1,onClose:$,onTransitionEnter:A,onTransitionExited:I,open:j,slotProps:_={},slots:W={},theme:U,...T}=n,L={...n,closeAfterTransition:l,disableAutoFocus:v,disableEnforceFocus:S,disableEscapeKeyDown:x,disablePortal:w,disableRestoreFocus:b,disableScrollLock:k,hideBackdrop:E,keepMounted:O},{getRootProps:F,getBackdropProps:H,getTransitionProps:D,portalRef:K,isTopModal:Q,exited:ee,hasTransition:X}=Wle({...L,rootRef:t}),te={...L,exited:ee},ae=Yle(te),ue={};if(c.props.tabIndex===void 0&&(ue.tabIndex="-1"),X){const{onEnter:ne,onExited:me}=D();ue.onEnter=ne,ue.onExited=me}const he={slots:{root:h.Root,backdrop:h.Backdrop,...W},slotProps:{...y,..._}},[ie,le]=lr("root",{ref:t,elementType:Gle,externalForwardedProps:{...he,...T,component:u},getSlotProps:F,ownerState:te,className:Lt(s,ae?.root,!te.open&&te.exited&&ae?.hidden)}),[se,pe]=lr("backdrop",{ref:o?.ref,elementType:r,externalForwardedProps:he,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:ne=>H({...ne,onClick:me=>{ne?.onClick&&ne.onClick(me)}}),className:Lt(o?.className,ae?.backdrop),ownerState:te});return!O&&!j&&(!X||ee)?null:m.jsx(kz,{ref:K,container:f,disablePortal:w,children:m.jsxs(ie,{...le,children:[!E&&r?m.jsx(se,{...pe}):null,m.jsx(Ez,{disableEnforceFocus:S,disableAutoFocus:v,disableRestoreFocus:b,isEnabled:Q,open:j,children:C.cloneElement(c,ue)})]})})});function Qle(e){return cn("MuiPopover",e)}tn("MuiPopover",["root","paper"]);function AA(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function DA(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function jA(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function kv(e){return typeof e=="function"?e():e}const Xle=e=>{const{classes:t}=e;return sn({root:["root"],paper:["paper"]},Qle,t)},Zle=Qe(Bz,{name:"MuiPopover",slot:"Root"})({}),Uz=Qe(Cd,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Jle=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:c,className:f,container:u,elevation:h=8,marginThreshold:y=16,open:v,PaperProps:S={},slots:x={},slotProps:w={},transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:k,transitionDuration:E="auto",TransitionProps:O={},disableScrollLock:$=!1,...A}=n,I=C.useRef(),j={...n,anchorOrigin:a,anchorReference:l,elevation:h,marginThreshold:y,transformOrigin:b,TransitionComponent:k,transitionDuration:E,TransitionProps:O},_=Xle(j),W=C.useCallback(()=>{if(l==="anchorPosition")return s;const ne=kv(o),me=(ne&&ne.nodeType===1?ne:Io(I.current).body).getBoundingClientRect();return{top:me.top+AA(me,a.vertical),left:me.left+DA(me,a.horizontal)}},[o,a.horizontal,a.vertical,s,l]),U=C.useCallback(ne=>({vertical:AA(ne,b.vertical),horizontal:DA(ne,b.horizontal)}),[b.horizontal,b.vertical]),T=C.useCallback(ne=>{const me={width:ne.offsetWidth,height:ne.offsetHeight},xe=U(me);if(l==="none")return{top:null,left:null,transformOrigin:jA(xe)};const Se=W();let ce=Se.top-xe.vertical,Ee=Se.left-xe.horizontal;const Ge=ce+me.height,Te=Ee+me.width,je=Gl(kv(o)),oe=je.innerHeight-y,lt=je.innerWidth-y;if(y!==null&&ce<y){const Ie=ce-y;ce-=Ie,xe.vertical+=Ie}else if(y!==null&&Ge>oe){const Ie=Ge-oe;ce-=Ie,xe.vertical+=Ie}if(y!==null&&Ee<y){const Ie=Ee-y;Ee-=Ie,xe.horizontal+=Ie}else if(Te>lt){const Ie=Te-lt;Ee-=Ie,xe.horizontal+=Ie}return{top:`${Math.round(ce)}px`,left:`${Math.round(Ee)}px`,transformOrigin:jA(xe)}},[o,l,W,U,y]),[L,F]=C.useState(v),H=C.useCallback(()=>{const ne=I.current;if(!ne)return;const me=T(ne);me.top!==null&&ne.style.setProperty("top",me.top),me.left!==null&&(ne.style.left=me.left),ne.style.transformOrigin=me.transformOrigin,F(!0)},[T]);C.useEffect(()=>($&&window.addEventListener("scroll",H),()=>window.removeEventListener("scroll",H)),[o,$,H]);const D=()=>{H()},K=()=>{F(!1)};C.useEffect(()=>{v&&H()}),C.useImperativeHandle(r,()=>v?{updatePosition:()=>{H()}}:null,[v,H]),C.useEffect(()=>{if(!v)return;const ne=AL(()=>{H()}),me=Gl(kv(o));return me.addEventListener("resize",ne),()=>{ne.clear(),me.removeEventListener("resize",ne)}},[o,v,H]);let Q=E;const ee={slots:{transition:k,...x},slotProps:{transition:O,paper:S,...w}},[X,te]=lr("transition",{elementType:mg,externalForwardedProps:ee,ownerState:j,getSlotProps:ne=>({...ne,onEntering:(me,xe)=>{ne.onEntering?.(me,xe),D()},onExited:me=>{ne.onExited?.(me),K()}}),additionalProps:{appear:!0,in:v}});E==="auto"&&!X.muiSupportAuto&&(Q=void 0);const ae=u||(o?Io(kv(o)).body:void 0),[ue,{slots:he,slotProps:ie,...le}]=lr("root",{ref:t,elementType:Zle,externalForwardedProps:{...ee,...A},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:x.backdrop},slotProps:{backdrop:DL(typeof w.backdrop=="function"?w.backdrop(j):w.backdrop,{invisible:!0})},container:ae,open:v},ownerState:j,className:Lt(_.root,f)}),[se,pe]=lr("paper",{ref:I,className:_.paper,elementType:Uz,externalForwardedProps:ee,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:L?void 0:{opacity:0}},ownerState:j});return m.jsx(ue,{...le,...!yp(ue)&&{slots:he,slotProps:ie,disableScrollLock:$},children:m.jsx(X,{...te,timeout:Q,children:m.jsx(se,{...pe,children:c})})})});function ece(e){return cn("MuiMenu",e)}tn("MuiMenu",["root","paper","list"]);const tce={vertical:"top",horizontal:"right"},nce={vertical:"top",horizontal:"left"},rce=e=>{const{classes:t}=e;return sn({root:["root"],paper:["paper"],list:["list"]},ece,t)},oce=Qe(Jle,{shouldForwardProp:e=>Ya(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),ace=Qe(Uz,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ice=Qe(jle,{name:"MuiMenu",slot:"List"})({outline:0}),sce=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiMenu"}),{autoFocus:r=!0,children:o,className:a,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:c,open:f,PaperProps:u={},PopoverClasses:h,transitionDuration:y="auto",TransitionProps:{onEntering:v,...S}={},variant:x="selectedMenu",slots:w={},slotProps:b={},...k}=n,E=Rs(),O={...n,autoFocus:r,disableAutoFocusItem:s,MenuListProps:l,onEntering:v,PaperProps:u,transitionDuration:y,TransitionProps:S,variant:x},$=rce(O),A=r&&!s&&f,I=C.useRef(null),j=(Q,ee)=>{I.current&&I.current.adjustStyleForScrollbar(Q,{direction:E?"rtl":"ltr"}),v&&v(Q,ee)},_=Q=>{Q.key==="Tab"&&(Q.preventDefault(),c&&c(Q,"tabKeyDown"))};let W=-1;C.Children.map(o,(Q,ee)=>{C.isValidElement(Q)&&(Q.props.disabled||(x==="selectedMenu"&&Q.props.selected||W===-1)&&(W=ee))});const U={slots:w,slotProps:{list:l,transition:S,paper:u,...b}},T=xr({elementType:w.root,externalSlotProps:b.root,ownerState:O,className:[$.root,a]}),[L,F]=lr("paper",{className:$.paper,elementType:ace,externalForwardedProps:U,shouldForwardComponentProp:!0,ownerState:O}),[H,D]=lr("list",{className:Lt($.list,l.className),elementType:ice,shouldForwardComponentProp:!0,externalForwardedProps:U,getSlotProps:Q=>({...Q,onKeyDown:ee=>{_(ee),Q.onKeyDown?.(ee)}}),ownerState:O}),K=typeof U.slotProps.transition=="function"?U.slotProps.transition(O):U.slotProps.transition;return m.jsx(oce,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?tce:nce,slots:{root:w.root,paper:L,backdrop:w.backdrop,...w.transition&&{transition:w.transition}},slotProps:{root:T,paper:F,backdrop:typeof b.backdrop=="function"?b.backdrop(O):b.backdrop,transition:{...K,onEntering:(...Q)=>{j(...Q),K?.onEntering?.(...Q)}}},open:f,ref:t,transitionDuration:y,ownerState:O,...k,classes:h,children:m.jsx(H,{actions:I,autoFocus:r&&(W===-1||s),autoFocusItem:A,variant:x,...D,children:o})})});function lce(e){return cn("MuiNativeSelect",e)}const SE=tn("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),cce=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:s}=e,l={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${St(n)}`,a&&"iconOpen",r&&"disabled"]};return sn(l,lce,t)},Vz=Qe("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${SE.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),uce=Qe(Vz,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ya,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${SE.multiple}`]:t.multiple}]}})({}),Hz=Qe("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${SE.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),dce=Qe(Hz,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${St(n.variant)}`],n.open&&t.iconOpen]}})({}),fce=C.forwardRef(function(e,t){const{className:n,disabled:r,error:o,IconComponent:a,inputRef:s,variant:l="standard",...c}=e,f={...e,disabled:r,variant:l,error:o},u=cce(f);return m.jsxs(C.Fragment,{children:[m.jsx(uce,{ownerState:f,className:Lt(u.select,n),disabled:r,ref:s||t,...c}),e.multiple?null:m.jsx(dce,{as:a,ownerState:f,className:u.icon})]})});function Wz(e){return cn("MuiSelect",e)}const lm=tn("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var NA;const pce=Qe(Vz,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${lm.select}`]:t.select},{[`&.${lm.select}`]:t[n.variant]},{[`&.${lm.error}`]:t.error},{[`&.${lm.multiple}`]:t.multiple}]}})({[`&.${lm.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),hce=Qe(Hz,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${St(n.variant)}`],n.open&&t.iconOpen]}})({}),mce=Qe("input",{shouldForwardProp:e=>PL(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function IA(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function gce(e){return e==null||typeof e=="string"&&!e.trim()}const yce=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:s}=e,l={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${St(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return sn(l,Wz,t)},vce=C.forwardRef(function(e,t){const{"aria-describedby":n,"aria-label":r,autoFocus:o,autoWidth:a,children:s,className:l,defaultOpen:c,defaultValue:f,disabled:u,displayEmpty:h,error:y=!1,IconComponent:v,inputRef:S,labelId:x,MenuProps:w={},multiple:b,name:k,onBlur:E,onChange:O,onClose:$,onFocus:A,onOpen:I,open:j,readOnly:_,renderValue:W,required:U,SelectDisplayProps:T={},tabIndex:L,type:F,value:H,variant:D="standard",...K}=e,[Q,ee]=vi({controlled:H,default:f,name:"Select"}),[X,te]=vi({controlled:j,default:c,name:"Select"}),ae=C.useRef(null),ue=C.useRef(null),[he,ie]=C.useState(null),{current:le}=C.useRef(j!=null),[se,pe]=C.useState(),ne=mr(t,S),me=C.useCallback(yt=>{ue.current=yt,yt&&ie(yt)},[]),xe=he?.parentNode;C.useImperativeHandle(ne,()=>({focus:()=>{ue.current.focus()},node:ae.current,value:Q}),[Q]),C.useEffect(()=>{c&&X&&he&&!le&&(pe(a?null:xe.clientWidth),ue.current.focus())},[he,a]),C.useEffect(()=>{o&&ue.current.focus()},[o]),C.useEffect(()=>{if(!x)return;const yt=Io(ue.current).getElementById(x);if(yt){const st=()=>{getSelection().isCollapsed&&ue.current.focus()};return yt.addEventListener("click",st),()=>{yt.removeEventListener("click",st)}}},[x]);const Se=(yt,st)=>{yt?I&&I(st):$&&$(st),le||(pe(a?null:xe.clientWidth),te(yt))},ce=yt=>{yt.button===0&&(yt.preventDefault(),ue.current.focus(),Se(!0,yt))},Ee=yt=>{Se(!1,yt)},Ge=C.Children.toArray(s),Te=yt=>{const st=Ge.find(jt=>jt.props.value===yt.target.value);st!==void 0&&(ee(st.props.value),O&&O(yt,st))},je=yt=>st=>{let jt;if(st.currentTarget.hasAttribute("tabindex")){if(b){jt=Array.isArray(Q)?Q.slice():[];const qt=Q.indexOf(yt.props.value);qt===-1?jt.push(yt.props.value):jt.splice(qt,1)}else jt=yt.props.value;if(yt.props.onClick&&yt.props.onClick(st),Q!==jt&&(ee(jt),O)){const qt=st.nativeEvent||st,mn=new qt.constructor(qt.type,qt);Object.defineProperty(mn,"target",{writable:!0,value:{value:jt,name:k}}),O(mn,yt)}b||Se(!1,st)}},oe=yt=>{_||[" ","ArrowUp","ArrowDown","Enter"].includes(yt.key)&&(yt.preventDefault(),Se(!0,yt))},lt=he!==null&&X,Ie=yt=>{!lt&&E&&(Object.defineProperty(yt,"target",{writable:!0,value:{value:Q,name:k}}),E(yt))};delete K["aria-invalid"];let et,mt;const Wt=[];let zt=!1;(Db({value:Q})||h)&&(W?et=W(Q):zt=!0);const tt=Ge.map(yt=>{if(!C.isValidElement(yt))return null;let st;if(b){if(!Array.isArray(Q))throw new Error(ql(2));st=Q.some(jt=>IA(jt,yt.props.value)),st&&zt&&Wt.push(yt.props.children)}else st=IA(Q,yt.props.value),st&&zt&&(mt=yt.props.children);return C.cloneElement(yt,{"aria-selected":st?"true":"false",onClick:je(yt),onKeyUp:jt=>{jt.key===" "&&jt.preventDefault(),yt.props.onKeyUp&&yt.props.onKeyUp(jt)},role:"option",selected:st,value:void 0,"data-value":yt.props.value})});zt&&(b?Wt.length===0?et=null:et=Wt.reduce((yt,st,jt)=>(yt.push(st),jt<Wt.length-1&&yt.push(", "),yt),[]):et=mt);let Je=se;!a&&le&&he&&(Je=xe.clientWidth);let ct;typeof L<"u"?ct=L:ct=u?null:0;const Le=T.id||(k?`mui-component-select-${k}`:void 0),ge={...e,variant:D,value:Q,open:lt,error:y},qe=yce(ge),De={...w.PaperProps,...typeof w.slotProps?.paper=="function"?w.slotProps.paper(ge):w.slotProps?.paper},wt={...w.MenuListProps,...typeof w.slotProps?.list=="function"?w.slotProps.list(ge):w.slotProps?.list},Ct=Os();return m.jsxs(C.Fragment,{children:[m.jsx(pce,{as:"div",ref:me,tabIndex:ct,role:"combobox","aria-controls":lt?Ct:void 0,"aria-disabled":u?"true":void 0,"aria-expanded":lt?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[x,Le].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":U?"true":void 0,"aria-invalid":y?"true":void 0,onKeyDown:oe,onMouseDown:u||_?null:ce,onBlur:Ie,onFocus:A,...T,ownerState:ge,className:Lt(T.className,qe.select,l),id:Le,children:gce(et)?NA||(NA=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):et}),m.jsx(mce,{"aria-invalid":y,value:Array.isArray(Q)?Q.join(","):Q,name:k,ref:ae,"aria-hidden":!0,onChange:Te,tabIndex:-1,disabled:u,className:qe.nativeInput,autoFocus:o,required:U,...K,ownerState:ge}),m.jsx(hce,{as:v,className:qe.icon,ownerState:ge}),m.jsx(sce,{id:`menu-${k||""}`,anchorEl:xe,open:lt,onClose:Ee,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...w,slotProps:{...w.slotProps,list:{"aria-labelledby":x,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:Ct,...wt},paper:{...De,style:{minWidth:Je,...De!=null?De.style:null}}},children:tt})]})}),qz=er(m.jsx("path",{d:"M7 10l5 5 5-5z"})),bce=e=>{const{classes:t}=e,n=sn({root:["root"]},Wz,t);return{...t,...n}},wE={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Ya(e)&&e!=="variant"},xce=Qe(vE,wE)(""),Sce=Qe(xE,wE)(""),wce=Qe(bE,wE)(""),Yz=C.forwardRef(function(e,t){const n=qn({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:f=qz,id:u,input:h,inputProps:y,label:v,labelId:S,MenuProps:x,multiple:w=!1,native:b=!1,onClose:k,onOpen:E,open:O,renderValue:$,SelectDisplayProps:A,variant:I="outlined",...j}=n,_=b?fce:vce,W=Ei(),U=kd({props:n,muiFormControl:W,states:["variant","error"]}),T=U.variant||I,L={...n,variant:T,classes:a},F=bce(L),{root:H,...D}=F,K=h||{standard:m.jsx(xce,{ownerState:L}),outlined:m.jsx(Sce,{label:v,ownerState:L}),filled:m.jsx(wce,{ownerState:L})}[T],Q=mr(t,Dp(K));return m.jsx(C.Fragment,{children:C.cloneElement(K,{inputComponent:_,inputProps:{children:o,error:U.error,IconComponent:f,variant:T,type:void 0,multiple:w,...b?{id:u}:{autoWidth:r,defaultOpen:l,displayEmpty:c,labelId:S,MenuProps:x,onClose:k,onOpen:E,open:O,renderValue:$,SelectDisplayProps:{id:u,...A}},...y,classes:y?pa(D,y.classes):D,...h?h.props.inputProps:{}},...(w&&b||c)&&T==="outlined"?{notched:!0}:{},ref:Q,className:Lt(K.props.className,s,F.root),...!h&&{variant:T},...j})})});Yz.muiName="Select";function Cce(e){return cn("MuiTextField",e)}tn("MuiTextField",["root"]);const kce={standard:vE,filled:bE,outlined:xE},Ece=e=>{const{classes:t}=e;return sn({root:["root"]},Cce,t)},Tce=Qe(Lz,{name:"MuiTextField",slot:"Root"})({}),hr=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:o=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:f=!1,error:u=!1,FormHelperTextProps:h,fullWidth:y=!1,helperText:v,id:S,InputLabelProps:x,inputProps:w,InputProps:b,inputRef:k,label:E,maxRows:O,minRows:$,multiline:A=!1,name:I,onBlur:j,onChange:_,onFocus:W,placeholder:U,required:T=!1,rows:L,select:F=!1,SelectProps:H,slots:D={},slotProps:K={},type:Q,value:ee,variant:X="outlined",...te}=n,ae={...n,autoFocus:o,color:l,disabled:f,error:u,fullWidth:y,multiline:A,required:T,select:F,variant:X},ue=Ece(ae),he=Os(S),ie=v&&he?`${he}-helper-text`:void 0,le=E&&he?`${he}-label`:void 0,se=kce[X],pe={slots:D,slotProps:{input:b,inputLabel:x,htmlInput:w,formHelperText:h,select:H,...K}},ne={},me=pe.slotProps.inputLabel;X==="outlined"&&(me&&typeof me.shrink<"u"&&(ne.notched=me.shrink),ne.label=E),F&&((!H||!H.native)&&(ne.id=void 0),ne["aria-describedby"]=void 0);const[xe,Se]=lr("root",{elementType:Tce,shouldForwardComponentProp:!0,externalForwardedProps:{...pe,...te},ownerState:ae,className:Lt(ue.root,s),ref:t,additionalProps:{disabled:f,error:u,fullWidth:y,required:T,color:l,variant:X}}),[ce,Ee]=lr("input",{elementType:se,externalForwardedProps:pe,additionalProps:ne,ownerState:ae}),[Ge,Te]=lr("inputLabel",{elementType:Iz,externalForwardedProps:pe,ownerState:ae}),[je,oe]=lr("htmlInput",{elementType:"input",externalForwardedProps:pe,ownerState:ae}),[lt,Ie]=lr("formHelperText",{elementType:zz,externalForwardedProps:pe,ownerState:ae}),[et,mt]=lr("select",{elementType:Yz,externalForwardedProps:pe,ownerState:ae}),Wt=m.jsx(ce,{"aria-describedby":ie,autoComplete:r,autoFocus:o,defaultValue:c,fullWidth:y,multiline:A,name:I,rows:L,maxRows:O,minRows:$,type:Q,value:ee,id:he,inputRef:k,onBlur:j,onChange:_,onFocus:W,placeholder:U,inputProps:oe,slots:{input:D.htmlInput?je:void 0},...Ee});return m.jsxs(xe,{...Se,children:[E!=null&&E!==""&&m.jsx(Ge,{htmlFor:he,id:le,...Te,children:E}),F?m.jsx(et,{"aria-describedby":ie,id:he,labelId:le,value:ee,input:Wt,...mt,children:a}):Wt,v&&m.jsx(lt,{id:ie,...Ie,children:v})]})}),Mce=({utils:e,format:t})=>{let n=10,r=t,o=e.expandFormat(t);for(;o!==r;)if(r=o,o=e.expandFormat(r),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return o},Rce=({utils:e,expandedFormat:t})=>{const n=[],{start:r,end:o}=e.escapedCharacters,a=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let s=null;for(;s=a.exec(t);)n.push({start:s.index,end:a.lastIndex-1});return n},Oce=(e,t,n,r)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),r).length,format:r});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return t.fieldDayPlaceholder({format:r});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return t.fieldHoursPlaceholder({format:r});case"minutes":return t.fieldMinutesPlaceholder({format:r});case"seconds":return t.fieldSecondsPlaceholder({format:r});case"meridiem":return t.fieldMeridiemPlaceholder({format:r});default:return r}},$ce=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:o,now:a,token:s,startSeparator:l})=>{if(s==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const c=ez(e,s),f=oz(e,c.contentType,c.type,s),u=n?f:c.contentType==="digit",h=t!=null&&e.isValid(t);let y=h?e.formatByString(t,s):"",v=null;if(u)if(f)v=y===""?e.formatByString(a,s).length:y.length;else{if(c.maxLength==null)throw new Error(`MUI X: The token ${s} should have a 'maxDigitNumber' property on it's adapter`);v=c.maxLength,h&&(y=tE(nz(pd(y,o),v),o))}return Ne({},c,{format:s,maxLength:v,value:y,placeholder:Oce(e,r,c,s),hasLeadingZerosInFormat:f,hasLeadingZerosInInput:u,startSeparator:l,endSeparator:"",modified:!1})},Pce=e=>{const{utils:t,expandedFormat:n,escapedParts:r}=e,o=t.date(void 0),a=[];let s="";const l=Object.keys(t.formatTokenMap).sort((v,S)=>S.length-v.length),c=/^([a-zA-Z]+)/,f=new RegExp(`^(${l.join("|")})*$`),u=new RegExp(`^(${l.join("|")})`),h=v=>r.find(S=>S.start<=v&&S.end>=v);let y=0;for(;y<n.length;){const v=h(y),S=v!=null,x=c.exec(n.slice(y))?.[1];if(!S&&x!=null&&f.test(x)){let w=x;for(;w.length>0;){const b=u.exec(w)[1];w=w.slice(b.length),a.push($ce(Ne({},e,{now:o,token:b,startSeparator:s}))),s=""}y+=x.length}else{const w=n[y];S&&v?.start===y||v?.end===y||(a.length===0?s+=w:a[a.length-1].endSeparator+=w),y+=1}}return a.length===0&&s.length>0&&a.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:s,endSeparator:"",modified:!1}),a},Ace=({isRtl:e,formatDensity:t,sections:n})=>n.map(r=>{const o=a=>{let s=a;return e&&s!==null&&s.includes(" ")&&(s=`⁩${s}⁦`),t==="spacious"&&["/",".","-"].includes(s)&&(s=` ${s} `),s};return r.startSeparator=o(r.startSeparator),r.endSeparator=o(r.endSeparator),r}),LA=e=>{let t=Mce(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=Rce(Ne({},e,{expandedFormat:t})),r=Pce(Ne({},e,{expandedFormat:t,escapedParts:n}));return Ace(Ne({},e,{sections:r}))},Dce=e=>{const t=Yr(),n=Xl(),r=wd(),o=Rs(),{valueManager:a,fieldValueManager:s,valueType:l,validator:c,internalProps:f,internalProps:{value:u,defaultValue:h,referenceDate:y,onChange:v,format:S,formatDensity:x="dense",selectedSections:w,onSelectedSectionsChange:b,shouldRespectLeadingZeros:k=!1,timezone:E,enableAccessibleFieldDOMStructure:O=!1}}=e,{timezone:$,value:A,handleValueChange:I}=hE({timezone:E,value:u,defaultValue:h,referenceDate:y,onChange:v,valueManager:a}),j=C.useMemo(()=>jre(t),[t]),_=C.useMemo(()=>_re(t,j,$),[t,j,$]),W=C.useCallback((ie,le=null)=>s.getSectionsFromValue(t,ie,le,se=>LA({utils:t,localeText:n,localizedDigits:j,format:S,date:se,formatDensity:x,shouldRespectLeadingZeros:k,enableAccessibleFieldDOMStructure:O,isRtl:o})),[s,S,n,j,o,k,t,x,O]),[U,T]=C.useState(()=>{const ie=W(A),le={sections:ie,value:A,referenceValue:a.emptyValue,tempValueStrAndroid:null},se=$re(ie),pe=a.getInitialReferenceValue({referenceDate:y,value:A,utils:t,props:f,granularity:se,timezone:$});return Ne({},le,{referenceValue:pe})}),[L,F]=vi({controlled:w,default:null,name:"useField",state:"selectedSections"}),H=ie=>{F(ie),b?.(ie)},D=C.useMemo(()=>Kw(L,U.sections),[L,U.sections]),K=D==="all"?0:D,Q=({value:ie,referenceValue:le,sections:se})=>{if(T(ne=>Ne({},ne,{sections:se,value:ie,referenceValue:le,tempValueStrAndroid:null})),a.areValuesEqual(t,U.value,ie))return;const pe={validationError:c({adapter:r,value:ie,timezone:$,props:f})};I(ie,pe)},ee=(ie,le)=>{const se=[...U.sections];return se[ie]=Ne({},se[ie],{value:le,modified:!0}),se},X=()=>{Q({value:a.emptyValue,referenceValue:U.referenceValue,sections:W(a.emptyValue)})},te=()=>{if(K==null)return;const ie=U.sections[K],le=s.getActiveDateManager(t,U,ie),se=le.getSections(U.sections).filter(xe=>xe.value!=="").length===(ie.value===""?0:1),pe=ee(K,""),ne=se?null:t.getInvalidDate(),me=le.getNewValuesFromNewActiveDate(ne);Q(Ne({},me,{sections:pe}))},ae=ie=>{const le=(ne,me)=>{const xe=t.parse(ne,S);if(xe==null||!t.isValid(xe))return null;const Se=LA({utils:t,localeText:n,localizedDigits:j,format:S,date:xe,formatDensity:x,shouldRespectLeadingZeros:k,enableAccessibleFieldDOMStructure:O,isRtl:o});return JP(t,xe,Se,me,!1)},se=s.parseValueStr(ie,U.referenceValue,le),pe=s.updateReferenceValue(t,se,U.referenceValue);Q({value:se,referenceValue:pe,sections:W(se,U.sections)})},ue=({activeSection:ie,newSectionValue:le,shouldGoToNextSection:se})=>{se&&K<U.sections.length-1&&H(K+1);const pe=s.getActiveDateManager(t,U,ie),ne=ee(K,le),me=pe.getSections(ne),xe=Lre(t,me,j);let Se,ce;if(xe!=null&&t.isValid(xe)){const Ee=JP(t,xe,me,pe.referenceDate,!0);Se=pe.getNewValuesFromNewActiveDate(Ee),ce=!0}else Se=pe.getNewValuesFromNewActiveDate(xe),ce=(xe!=null&&!t.isValid(xe))!=(pe.date!=null&&!t.isValid(pe.date));return ce?Q(Ne({},Se,{sections:ne})):T(Ee=>Ne({},Ee,Se,{sections:ne,tempValueStrAndroid:null}))},he=ie=>T(le=>Ne({},le,{tempValueStrAndroid:ie}));return C.useEffect(()=>{const ie=W(U.value);T(le=>Ne({},le,{sections:ie}))},[S,t.locale,o]),C.useEffect(()=>{let ie;a.areValuesEqual(t,U.value,A)?ie=a.getTimezone(t,U.value)!==a.getTimezone(t,A):ie=!0,ie&&T(le=>Ne({},le,{value:A,referenceValue:s.updateReferenceValue(t,A,le.referenceValue),sections:W(A)}))},[A]),{state:U,activeSectionIndex:K,parsedSelectedSections:D,setSelectedSections:H,clearValue:X,clearActiveSection:te,updateSectionValue:ue,updateValueFromValueStr:ae,setTempAndroidValueStr:he,getSectionsFromValue:W,sectionsValueBoundaries:_,localizedDigits:j,timezone:$}},jce=5e3,Pf=e=>e.saveQuery!=null,Nce=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:o,timezone:a})=>{const s=Yr(),[l,c]=C.useState(null),f=Ut(()=>c(null));C.useEffect(()=>{l!=null&&e[l.sectionIndex]?.type!==l.sectionType&&f()},[e,l,f]),C.useEffect(()=>{if(l!=null){const v=setTimeout(()=>f(),jce);return()=>{clearTimeout(v)}}return()=>{}},[l,f]);const u=({keyPressed:v,sectionIndex:S},x,w)=>{const b=v.toLowerCase(),k=e[S];if(l!=null&&(!w||w(l.value))&&l.sectionIndex===S){const O=`${l.value}${b}`,$=x(O,k);if(!Pf($))return c({sectionIndex:S,value:O,sectionType:k.type}),$}const E=x(b,k);return Pf(E)&&!E.saveQuery?(f(),null):(c({sectionIndex:S,value:b,sectionType:k.type}),Pf(E)?null:E)},h=v=>{const S=(w,b,k)=>{const E=b.filter(O=>O.toLowerCase().startsWith(k));return E.length===0?{saveQuery:!1}:{sectionValue:E[0],shouldGoToNextSection:E.length===1}},x=(w,b,k,E)=>{const O=$=>tz(s,a,b.type,$);if(b.contentType==="letter")return S(b.format,O(b.format),w);if(k&&E!=null&&ez(s,k).contentType==="letter"){const $=O(k),A=S(k,$,w);return Pf(A)?{saveQuery:!1}:Ne({},A,{sectionValue:E(A.sectionValue,$)})}return{saveQuery:!1}};return u(v,(w,b)=>{switch(b.type){case"month":{const k=E=>XP(s,E,s.formats.month,b.format);return x(w,b,s.formats.month,k)}case"weekDay":{const k=(E,O)=>O.indexOf(E).toString();return x(w,b,s.formats.weekday,k)}case"meridiem":return x(w,b);default:return{saveQuery:!1}}})},y=v=>{const S=(x,w)=>{const b=pd(x,r),k=Number(b),E=n[w.type]({currentDate:null,format:w.format,contentType:w.contentType});if(k>E.maximum)return{saveQuery:!1};if(k<E.minimum)return{saveQuery:!0};const O=k*10>E.maximum||b.length===E.maximum.toString().length;return{sectionValue:rz(s,k,E,r,w),shouldGoToNextSection:O}};return u(v,(x,w)=>{if(w.contentType==="digit"||w.contentType==="digit-with-letter")return S(x,w);if(w.type==="month"){oz(s,"digit","month","MM");const b=S(x,{type:w.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Pf(b))return b;const k=XP(s,b.sectionValue,"MM",w.format);return Ne({},b,{sectionValue:k})}if(w.type==="weekDay"){const b=S(x,w);if(Pf(b))return b;const k=H0(s,w.format)[Number(b.sectionValue)-1];return Ne({},b,{sectionValue:k})}return{saveQuery:!1}},x=>QP(x,r))};return{applyCharacterEditing:Ut(v=>{const S=e[v.sectionIndex],x=QP(v.keyPressed,r)?y(Ne({},v,{keyPressed:tE(v.keyPressed,r)})):h(v);if(x==null){o(null);return}t({activeSection:S,newSectionValue:x.sectionValue,shouldGoToNextSection:x.shouldGoToNextSection})}),resetCharacterQuery:f}},Ice=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:o,onClick:a,onFocus:s,onInput:l,onPaste:c,focused:f,autoFocus:u=!1},fieldValueManager:h,applyCharacterEditing:y,resetCharacterQuery:v,setSelectedSections:S,parsedSelectedSections:x,state:w,clearActiveSection:b,clearValue:k,updateSectionValue:E,updateValueFromValueStr:O,sectionOrder:$,areAllSectionsEmpty:A,sectionsValueBoundaries:I}=e,j=C.useRef(null),_=mr(r,j),W=Xl(),U=Yr(),T=Os(),[L,F]=C.useState(!1),H=C.useMemo(()=>({syncSelectionToDOM:()=>{if(!j.current)return;const ce=document.getSelection();if(!ce)return;if(x==null){ce.rangeCount>0&&j.current.getRoot().contains(ce.getRangeAt(0).startContainer)&&ce.removeAllRanges(),L&&j.current.getRoot().blur();return}if(!j.current.getRoot().contains(Ia(document)))return;const Ee=new window.Range;let Ge;x==="all"?Ge=j.current.getRoot():w.sections[x].type==="empty"?Ge=j.current.getSectionContainer(x):Ge=j.current.getSectionContent(x),Ee.selectNodeContents(Ge),Ge.focus(),ce.removeAllRanges(),ce.addRange(Ee)},getActiveSectionIndexFromDOM:()=>{const ce=Ia(document);return!ce||!j.current||!j.current.getRoot().contains(ce)?null:j.current.getSectionIndexFromDOMElement(ce)},focusField:(ce=0)=>{if(!j.current||H.getActiveSectionIndexFromDOM()!=null)return;const Ee=Kw(ce,w.sections);F(!0),j.current.getSectionContent(Ee).focus()},setSelectedSections:ce=>{if(!j.current)return;const Ee=Kw(ce,w.sections);F((Ee==="all"?0:Ee)!==null),S(ce)},isFieldFocused:()=>{const ce=Ia(document);return!!j.current&&j.current.getRoot().contains(ce)}}),[x,S,w.sections,L]),D=Ut(ce=>{if(!j.current)return;const Ee=w.sections[ce];j.current.getSectionContent(ce).innerHTML=Ee.value||Ee.placeholder,H.syncSelectionToDOM()}),K=Ut((ce,...Ee)=>{ce.isDefaultPrevented()||!j.current||(F(!0),a?.(ce,...Ee),x==="all"?setTimeout(()=>{const Ge=document.getSelection().getRangeAt(0).startOffset;if(Ge===0){S($.startIndex);return}let Te=0,je=0;for(;je<Ge&&Te<w.sections.length;){const oe=w.sections[Te];Te+=1,je+=`${oe.startSeparator}${oe.value||oe.placeholder}${oe.endSeparator}`.length}S(Te-1)}):L?j.current.getRoot().contains(ce.target)||S($.startIndex):(F(!0),S($.startIndex)))}),Q=Ut(ce=>{if(l?.(ce),!j.current||x!=="all")return;const Ee=ce.target.textContent??"";j.current.getRoot().innerHTML=w.sections.map(Ge=>`${Ge.startSeparator}${Ge.value||Ge.placeholder}${Ge.endSeparator}`).join(""),H.syncSelectionToDOM(),Ee.length===0||Ee.charCodeAt(0)===10?(v(),k(),S("all")):Ee.length>1?O(Ee):(x==="all"&&S(0),y({keyPressed:Ee,sectionIndex:0}))}),ee=Ut(ce=>{if(c?.(ce),n||x!=="all"){ce.preventDefault();return}const Ee=ce.clipboardData.getData("text");ce.preventDefault(),v(),O(Ee)}),X=Ut((...ce)=>{s?.(...ce),!(L||!j.current)&&(F(!0),j.current.getSectionIndexFromDOMElement(Ia(document))!=null||S($.startIndex))}),te=Ut((...ce)=>{o?.(...ce),setTimeout(()=>{if(!j.current)return;const Ee=Ia(document);!j.current.getRoot().contains(Ee)&&(F(!1),S(null))})}),ae=Ut(ce=>Ee=>{Ee.isDefaultPrevented()||S(ce)}),ue=Ut(ce=>{ce.preventDefault()}),he=Ut(ce=>()=>{S(ce)}),ie=Ut(ce=>{if(ce.preventDefault(),n||t||typeof x!="number")return;const Ee=w.sections[x],Ge=ce.clipboardData.getData("text"),Te=/^[a-zA-Z]+$/.test(Ge),je=/^[0-9]+$/.test(Ge),oe=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(Ge);Ee.contentType==="letter"&&Te||Ee.contentType==="digit"&&je||Ee.contentType==="digit-with-letter"&&oe?(v(),E({activeSection:Ee,newSectionValue:Ge,shouldGoToNextSection:!0})):!Te&&!je&&(v(),O(Ge))}),le=Ut(ce=>{ce.preventDefault(),ce.dataTransfer.dropEffect="none"}),se=Ut(ce=>{if(!j.current)return;const Ee=ce.target,Ge=Ee.textContent??"",Te=j.current.getSectionIndexFromDOMElement(Ee),je=w.sections[Te];if(n||!j.current){D(Te);return}if(Ge.length===0){if(je.value===""){D(Te);return}const oe=ce.nativeEvent.inputType;if(oe==="insertParagraph"||oe==="insertLineBreak"){D(Te);return}v(),b();return}y({keyPressed:Ge,sectionIndex:Te}),D(Te)});Lo(()=>{if(!(!L||!j.current)){if(x==="all")j.current.getRoot().focus();else if(typeof x=="number"){const ce=j.current.getSectionContent(x);ce&&ce.focus()}}},[x,L]);const pe=C.useMemo(()=>w.sections.reduce((ce,Ee)=>(ce[Ee.type]=I[Ee.type]({currentDate:null,contentType:Ee.contentType,format:Ee.format}),ce),{}),[I,w.sections]),ne=x==="all",me=C.useMemo(()=>w.sections.map((ce,Ee)=>{const Ge=!ne&&!t&&!n;return{container:{"data-sectionindex":Ee,onClick:ae(Ee)},content:{tabIndex:ne||Ee>0?-1:0,contentEditable:!ne&&!t&&!n,role:"spinbutton",id:`${T}-${ce.type}`,"aria-labelledby":`${T}-${ce.type}`,"aria-readonly":n,"aria-valuenow":Wre(ce,U),"aria-valuemin":pe[ce.type].minimum,"aria-valuemax":pe[ce.type].maximum,"aria-valuetext":ce.value?Hre(ce,U):W.empty,"aria-label":W[ce.type],"aria-disabled":t,spellCheck:Ge?!1:void 0,autoCapitalize:Ge?"off":void 0,autoCorrect:Ge?"off":void 0,[parseInt(C.version,10)>=17?"enterKeyHint":"enterkeyhint"]:Ge?"next":void 0,children:ce.value||ce.placeholder,onInput:se,onPaste:ie,onFocus:he(Ee),onDragOver:le,onMouseUp:ue,inputMode:ce.contentType==="letter"?"text":"numeric"},before:{children:ce.startSeparator},after:{children:ce.endSeparator}}}),[w.sections,he,ie,le,se,ae,ue,t,n,ne,W,U,pe,T]),xe=Ut(ce=>{O(ce.target.value)}),Se=C.useMemo(()=>A?"":h.getV7HiddenInputValueFromSections(w.sections),[A,w.sections,h]);return C.useEffect(()=>{if(j.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
441
+ `));u&&j.current&&j.current.getSectionContent($.startIndex).focus()},[]),{interactions:H,returnedValue:{autoFocus:u,readOnly:n,focused:f??L,sectionListRef:_,onBlur:te,onClick:K,onFocus:X,onInput:Q,onPaste:ee,enableAccessibleFieldDOMStructure:!0,elements:me,tabIndex:x===0?-1:0,contentEditable:ne,value:Se,onChange:xe,areAllSectionsEmpty:A}}},qf=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),Lce=(e,t,n)=>{let r=0,o=n?1:0;const a=[];for(let s=0;s<e.length;s+=1){const l=e[s],c=nE(l,n?"input-rtl":"input-ltr",t),f=`${l.startSeparator}${c}${l.endSeparator}`,u=qf(f).length,h=f.length,y=qf(c),v=o+(y===""?0:c.indexOf(y[0]))+l.startSeparator.length,S=v+y.length;a.push(Ne({},l,{start:r,end:r+u,startInInput:v,endInInput:S})),r+=u,o+=h}return a},zce=e=>{const t=Rs(),n=C.useRef(void 0),r=C.useRef(void 0),{forwardedProps:{onFocus:o,onClick:a,onPaste:s,onBlur:l,inputRef:c,placeholder:f},internalProps:{readOnly:u=!1,disabled:h=!1},parsedSelectedSections:y,activeSectionIndex:v,state:S,fieldValueManager:x,valueManager:w,applyCharacterEditing:b,resetCharacterQuery:k,updateSectionValue:E,updateValueFromValueStr:O,clearActiveSection:$,clearValue:A,setTempAndroidValueStr:I,setSelectedSections:j,getSectionsFromValue:_,areAllSectionsEmpty:W,localizedDigits:U}=e,T=C.useRef(null),L=mr(c,T),F=C.useMemo(()=>Lce(S.sections,U,t),[S.sections,U,t]),H=C.useMemo(()=>({syncSelectionToDOM:()=>{if(!T.current)return;if(y==null){T.current.scrollLeft&&(T.current.scrollLeft=0);return}if(T.current!==Ia(document))return;const le=T.current.scrollTop;if(y==="all")T.current.select();else{const se=F[y],pe=se.type==="empty"?se.startInInput-se.startSeparator.length:se.startInInput,ne=se.type==="empty"?se.endInInput+se.endSeparator.length:se.endInInput;(pe!==T.current.selectionStart||ne!==T.current.selectionEnd)&&T.current===Ia(document)&&T.current.setSelectionRange(pe,ne),clearTimeout(r.current),r.current=setTimeout(()=>{T.current&&T.current===Ia(document)&&T.current.selectionStart===T.current.selectionEnd&&(T.current.selectionStart!==pe||T.current.selectionEnd!==ne)&&H.syncSelectionToDOM()})}T.current.scrollTop=le},getActiveSectionIndexFromDOM:()=>{const le=T.current.selectionStart??0,se=T.current.selectionEnd??0;if(le===0&&se===0)return null;const pe=le<=F[0].startInInput?1:F.findIndex(ne=>ne.startInInput-ne.startSeparator.length>le);return pe===-1?F.length-1:pe-1},focusField:(le=0)=>{Ia(document)!==T.current&&(T.current?.focus(),j(le))},setSelectedSections:le=>j(le),isFieldFocused:()=>T.current===Ia(document)}),[T,y,F,j]),D=()=>{const le=T.current.selectionStart??0;let se;le<=F[0].startInInput||le>=F[F.length-1].endInInput?se=1:se=F.findIndex(ne=>ne.startInInput-ne.startSeparator.length>le);const pe=se===-1?F.length-1:se-1;j(pe)},K=Ut((...le)=>{o?.(...le);const se=T.current;clearTimeout(n.current),n.current=setTimeout(()=>{!se||se!==T.current||v==null&&(se.value.length&&Number(se.selectionEnd)-Number(se.selectionStart)===se.value.length?j("all"):D())})}),Q=Ut((le,...se)=>{le.isDefaultPrevented()||(a?.(le,...se),D())}),ee=Ut(le=>{if(s?.(le),le.preventDefault(),u||h)return;const se=le.clipboardData.getData("text");if(typeof y=="number"){const pe=S.sections[y],ne=/^[a-zA-Z]+$/.test(se),me=/^[0-9]+$/.test(se),xe=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(se);if(pe.contentType==="letter"&&ne||pe.contentType==="digit"&&me||pe.contentType==="digit-with-letter"&&xe){k(),E({activeSection:pe,newSectionValue:se,shouldGoToNextSection:!0});return}if(ne||me)return}k(),O(se)}),X=Ut((...le)=>{l?.(...le),j(null)}),te=Ut(le=>{if(u)return;const se=le.target.value;if(se===""){k(),A();return}const pe=le.nativeEvent.data,ne=pe&&pe.length>1,me=ne?pe:se,xe=qf(me);if(y==="all"&&j(v),v==null||ne){O(ne?pe:xe);return}let Se;if(y==="all"&&xe.length===1)Se=xe;else{const ce=qf(x.getV6InputValueFromSections(F,U,t));let Ee=-1,Ge=-1;for(let oe=0;oe<ce.length;oe+=1)Ee===-1&&ce[oe]!==xe[oe]&&(Ee=oe),Ge===-1&&ce[ce.length-oe-1]!==xe[xe.length-oe-1]&&(Ge=oe);const Te=F[v];if(Ee<Te.start||ce.length-Ge-1>Te.end)return;const je=xe.length-ce.length+Te.end-qf(Te.endSeparator||"").length;Se=xe.slice(Te.start+qf(Te.startSeparator||"").length,je)}if(Se.length===0){Ure()&&I(me),k(),$();return}b({keyPressed:Se,sectionIndex:v})}),ae=C.useMemo(()=>f!==void 0?f:x.getV6InputValueFromSections(_(w.emptyValue),U,t),[f,x,_,w.emptyValue,U,t]),ue=C.useMemo(()=>S.tempValueStrAndroid??x.getV6InputValueFromSections(S.sections,U,t),[S.sections,x,S.tempValueStrAndroid,U,t]);C.useEffect(()=>(T.current&&T.current===Ia(document)&&j("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const he=C.useMemo(()=>v==null||S.sections[v].contentType==="letter"?"text":"numeric",[v,S.sections]),ie=!(T.current&&T.current===Ia(document))&&W;return{interactions:H,returnedValue:{readOnly:u,onBlur:X,onClick:Q,onFocus:K,onPaste:ee,inputRef:L,enableAccessibleFieldDOMStructure:!1,placeholder:ae,inputMode:he,autoComplete:"off",value:ie?"":ue,onChange:te}}},Fce=e=>{const t=Yr(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:o,enableAccessibleFieldDOMStructure:a=!1,disabled:s=!1,readOnly:l=!1},forwardedProps:{onKeyDown:c,error:f,clearable:u,onClear:h},fieldValueManager:y,valueManager:v,validator:S}=e,x=Rs(),w=Dce(e),{state:b,activeSectionIndex:k,parsedSelectedSections:E,setSelectedSections:O,clearValue:$,clearActiveSection:A,updateSectionValue:I,setTempAndroidValueStr:j,sectionsValueBoundaries:_,localizedDigits:W,timezone:U}=w,T=Nce({sections:b.sections,updateSectionValue:I,sectionsValueBoundaries:_,localizedDigits:W,setTempAndroidValueStr:j,timezone:U}),{resetCharacterQuery:L}=T,F=v.areValuesEqual(t,b.value,v.emptyValue),H=a?Ice:zce,D=C.useMemo(()=>Vre(b.sections,x&&!a),[b.sections,x,a]),{returnedValue:K,interactions:Q}=H(Ne({},e,w,T,{areAllSectionsEmpty:F,sectionOrder:D})),ee=Ut(ie=>{if(c?.(ie),!s)switch(!0){case((ie.ctrlKey||ie.metaKey)&&String.fromCharCode(ie.keyCode)==="A"&&!ie.shiftKey&&!ie.altKey):{ie.preventDefault(),O("all");break}case ie.key==="ArrowRight":{if(ie.preventDefault(),E==null)O(D.startIndex);else if(E==="all")O(D.endIndex);else{const le=D.neighbors[E].rightIndex;le!==null&&O(le)}break}case ie.key==="ArrowLeft":{if(ie.preventDefault(),E==null)O(D.endIndex);else if(E==="all")O(D.startIndex);else{const le=D.neighbors[E].leftIndex;le!==null&&O(le)}break}case ie.key==="Delete":{if(ie.preventDefault(),l)break;E==null||E==="all"?$():A(),L();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(ie.key):{if(ie.preventDefault(),l||k==null)break;E==="all"&&O(k);const le=b.sections[k],se=y.getActiveDateManager(t,b,le),pe=Nre(t,U,le,ie.key,_,W,se.date,{minutesStep:o});I({activeSection:le,newSectionValue:pe,shouldGoToNextSection:!1});break}}});Lo(()=>{Q.syncSelectionToDOM()});const{hasValidationError:X}=uz({props:n,validator:S,timezone:U,value:b.value,onError:n.onError}),te=C.useMemo(()=>f!==void 0?f:X,[X,f]);C.useEffect(()=>{!te&&k==null&&L()},[b.referenceValue,k,te]),C.useEffect(()=>{b.tempValueStrAndroid!=null&&k!=null&&(L(),A())},[b.sections]),C.useImperativeHandle(r,()=>({getSections:()=>b.sections,getActiveSectionIndex:Q.getActiveSectionIndexFromDOM,setSelectedSections:Q.setSelectedSections,focusField:Q.focusField,isFieldFocused:Q.isFieldFocused}));const ae=Ut((ie,...le)=>{ie.preventDefault(),h?.(ie,...le),$(),Q.isFieldFocused()?O(D.startIndex):Q.focusField(0)}),ue={onKeyDown:ee,onClear:ae,error:te,clearable:!!(u&&!F&&!l&&!s)},he={disabled:s,readOnly:l};return Ne({},e.forwardedProps,ue,he,K)},_ce=["clearable","onClear","InputProps","sx","slots","slotProps"],Bce=["ownerState"],Uce=e=>{const t=Xl(),{clearable:n,onClear:r,InputProps:o,sx:a,slots:s,slotProps:l}=e,c=Bn(e,_ce),f=s?.clearButton??nu,u=xr({elementType:f,externalSlotProps:l?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),h=Bn(u,Bce),y=s?.clearIcon??Xse,v=xr({elementType:y,externalSlotProps:l?.clearIcon,ownerState:{}});return Ne({},c,{InputProps:Ne({},o,{endAdornment:m.jsxs(C.Fragment,{children:[n&&m.jsx(dz,{position:"end",sx:{marginRight:o?.endAdornment?-1:-1.5},children:m.jsx(f,Ne({},h,{onClick:r,children:m.jsx(y,Ne({fontSize:"small"},v))}))}),o?.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(a)?a:[a]]})},Vce=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],Hce=(e,t)=>C.useMemo(()=>{const n=Ne({},e),r={},o=a=>{n.hasOwnProperty(a)&&(r[a]=n[a],delete n[a])};return Vce.forEach(o),lz.forEach(o),{forwardedProps:n,internalProps:r}},[e,t]),Wce=e=>{const t=Yr(),n=Gg();return Ne({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:Zi(t,e.minDate,n.minDate),maxDate:Zi(t,e.maxDate,n.maxDate)})},qce=e=>{const t=Wce(e),{forwardedProps:n,internalProps:r}=Hce(t,"date");return Fce({forwardedProps:n,internalProps:r,valueManager:ll,fieldValueManager:Yre,validator:Kg,valueType:"date"})};function Yce(e){return cn("MuiPickersTextField",e)}tn("MuiPickersTextField",["root","focused","disabled","error","required"]);function Gce(e){return cn("MuiPickersInputBase",e)}const tp=tn("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function Kce(e){return cn("MuiPickersSectionList",e)}const cm=tn("MuiPickersSectionList",["root","section","sectionContent"]),Qce=["slots","slotProps","elements","sectionListRef"],Gz=Qe("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),Kz=Qe("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),Qz=Qe("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),Xz=Qe("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),Xce=e=>{const{classes:t}=e;return sn({root:["root"],section:["section"],sectionContent:["sectionContent"]},Kce,t)};function Zce(e){const{slots:t,slotProps:n,element:r,classes:o}=e,a=t?.section??Kz,s=xr({elementType:a,externalSlotProps:n?.section,externalForwardedProps:r.container,className:o.section,ownerState:{}}),l=t?.sectionContent??Xz,c=xr({elementType:l,externalSlotProps:n?.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:{}}),f=t?.sectionSeparator??Qz,u=xr({elementType:f,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),h=xr({elementType:f,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return m.jsxs(a,Ne({},s,{children:[m.jsx(f,Ne({},u)),m.jsx(l,Ne({},c)),m.jsx(f,Ne({},h))]}))}const Jce=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiPickersSectionList"}),{slots:r,slotProps:o,elements:a,sectionListRef:s}=n,l=Bn(n,Qce),c=Xce(n),f=C.useRef(null),u=mr(t,f),h=S=>{if(!f.current)throw new Error(`MUI X: Cannot call sectionListRef.${S} before the mount of the component.`);return f.current};C.useImperativeHandle(s,()=>({getRoot(){return h("getRoot")},getSectionContainer(S){return h("getSectionContainer").querySelector(`.${cm.section}[data-sectionindex="${S}"]`)},getSectionContent(S){return h("getSectionContent").querySelector(`.${cm.section}[data-sectionindex="${S}"] .${cm.sectionContent}`)},getSectionIndexFromDOMElement(S){const x=h("getSectionIndexFromDOMElement");if(S==null||!x.contains(S))return null;let w=null;return S.classList.contains(cm.section)?w=S:S.classList.contains(cm.sectionContent)&&(w=S.parentElement),w==null?null:Number(w.dataset.sectionindex)}}));const y=r?.root??Gz,v=xr({elementType:y,externalSlotProps:o?.root,externalForwardedProps:l,additionalProps:{ref:u,suppressContentEditableWarning:!0},className:c.root,ownerState:{}});return m.jsx(y,Ne({},v,{children:v.contentEditable?a.map(({content:S,before:x,after:w})=>`${x.children}${S.children}${w.children}`).join(""):m.jsx(C.Fragment,{children:a.map((S,x)=>m.jsx(Zce,{slots:r,slotProps:o,element:S,classes:c},x))})}))}),eue=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],tue=e=>Math.round(e*1e5)/1e5,ex=Qe("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>Ne({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${tue(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),CE=Qe(Gz,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:t,focused:n,filled:r,label:o})=>!t&&!n&&!r&&o==null,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),nue=Qe(Kz,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),rue=Qe(Xz,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),oue=Qe(Qz,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),aue=Qe("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(Ne({},Sre)),iue=e=>{const{focused:t,disabled:n,error:r,classes:o,fullWidth:a,readOnly:s,color:l,size:c,endAdornment:f,startAdornment:u}=e,h={root:["root",t&&!n&&"focused",n&&"disabled",s&&"readOnly",r&&"error",a&&"fullWidth",`color${St(l)}`,c==="small"&&"inputSizeSmall",!!u&&"adornedStart",!!f&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return sn(h,Gce,o)},kE=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiPickersInputBase"}),{elements:r,areAllSectionsEmpty:o,value:a,onChange:s,id:l,endAdornment:c,startAdornment:f,renderSuffix:u,slots:h,slotProps:y,contentEditable:v,tabIndex:S,onInput:x,onPaste:w,onKeyDown:b,name:k,readOnly:E,inputProps:O,inputRef:$,sectionListRef:A}=n,I=Bn(n,eue),j=C.useRef(null),_=mr(t,j),W=mr(O?.ref,$),U=Rs(),T=Ei();if(!T)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const L=ee=>{if(T.disabled){ee.stopPropagation();return}T.onFocus?.(ee)};C.useEffect(()=>{T&&T.setAdornedStart(!!f)},[T,f]),C.useEffect(()=>{T&&(o?T.onEmpty():T.onFilled())},[T,o]);const F=Ne({},n,T,{isRtl:U}),H=iue(F),D=h?.root||ex,K=xr({elementType:D,externalSlotProps:y?.root,externalForwardedProps:I,additionalProps:{"aria-invalid":T.error,ref:_},className:H.root,ownerState:F}),Q=h?.input||CE;return m.jsxs(D,Ne({},K,{children:[f,m.jsx(Jce,{sectionListRef:A,elements:r,contentEditable:v,tabIndex:S,className:H.sectionsContainer,onFocus:L,onBlur:T.onBlur,onInput:x,onPaste:w,onKeyDown:b,slots:{root:Q,section:nue,sectionContent:rue,sectionSeparator:oue},slotProps:{root:{ownerState:F},sectionContent:{className:tp.sectionContent},sectionSeparator:({position:ee})=>({className:ee==="before"?tp.sectionBefore:tp.sectionAfter})}}),c,u?u(Ne({},T)):null,m.jsx(aue,Ne({name:k,className:H.input,value:a,onChange:s,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:E,required:T.required,disabled:T.disabled},O,{ref:W}))]}))});function sue(e){return cn("MuiPickersOutlinedInput",e)}const bs=Ne({},tp,tn("MuiPickersOutlinedInput",["root","notchedOutline","input"])),lue=["children","className","label","notched","shrink"],cue=Qe("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),zA=Qe("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),uue=Qe("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function due(e){const{className:t,label:n}=e,r=Bn(e,lue),o=n!=null&&n!=="",a=Ne({},e,{withLabel:o});return m.jsx(cue,Ne({"aria-hidden":!0,className:t},r,{ownerState:a,children:m.jsx(uue,{ownerState:a,children:o?m.jsx(zA,{children:n}):m.jsx(zA,{className:"notranslate",children:"​"})})}))}const fue=["label","autoFocus","ownerState","notched"],pue=Qe(ex,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${bs.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${bs.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${bs.focused} .${bs.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${bs.disabled}`]:{[`& .${bs.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${bs.error} .${bs.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>(e.vars??e).palette[n]?.main??!1).map(n=>({props:{color:n},style:{[`&.${bs.focused}:not(.${bs.error}) .${bs.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),hue=Qe(CE,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),mue=e=>{const{classes:t}=e,n=sn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},sue,t);return Ne({},t,n)},Zz=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiPickersOutlinedInput"}),{label:r,ownerState:o,notched:a}=n,s=Bn(n,fue),l=Ei(),c=Ne({},n,o,l,{color:l?.color||"primary"}),f=mue(c);return m.jsx(kE,Ne({slots:{root:pue,input:hue},renderSuffix:u=>m.jsx(due,{shrink:!!(a||u.adornedStart||u.focused||u.filled),notched:!!(a||u.adornedStart||u.focused||u.filled),className:f.notchedOutline,label:r!=null&&r!==""&&l?.required?m.jsxs(C.Fragment,{children:[r," ","*"]}):r,ownerState:c})},s,{label:r,classes:f,ref:t}))});Zz.muiName="Input";function gue(e){return cn("MuiPickersFilledInput",e)}const Nu=Ne({},tp,tn("MuiPickersFilledInput",["root","underline","input"])),yue=["label","autoFocus","disableUnderline","ownerState"],vue=Qe(ex,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>_v(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Nu.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Nu.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[...Object.keys((e.vars??e).palette).filter(s=>(e.vars??e).palette[s].main).map(s=>({props:{color:s,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Nu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Nu.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Nu.disabled}, .${Nu.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Nu.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:s})=>!!s,style:{paddingLeft:12}},{props:({endAdornment:s})=>!!s,style:{paddingRight:12}}]}}),bue=Qe(CE,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),xue=e=>{const{classes:t,disableUnderline:n}=e,r=sn({root:["root",!n&&"underline"],input:["input"]},gue,t);return Ne({},t,r)},Jz=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:o=!1,ownerState:a}=n,s=Bn(n,yue),l=Ei(),c=Ne({},n,a,l,{color:l?.color||"primary"}),f=xue(c);return m.jsx(kE,Ne({slots:{root:vue,input:bue},slotProps:{root:{disableUnderline:o}}},s,{label:r,classes:f,ref:t}))});Jz.muiName="Input";function Sue(e){return cn("MuiPickersFilledInput",e)}const um=Ne({},tp,tn("MuiPickersInput",["root","input"])),wue=["label","autoFocus","disableUnderline","ownerState"],Cue=Qe(ex,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(n=>(e.vars??e).palette[n].main).map(n=>({props:{color:n},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${um.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${um.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${um.disabled}, .${um.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${um.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),kue=e=>{const{classes:t,disableUnderline:n}=e,r=sn({root:["root",!n&&"underline"],input:["input"]},Sue,t);return Ne({},t,r)},e5=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiPickersInput"}),{label:r,disableUnderline:o=!1,ownerState:a}=n,s=Bn(n,wue),l=Ei(),c=Ne({},n,a,l,{disableUnderline:o,color:l?.color||"primary"}),f=kue(c);return m.jsx(kE,Ne({slots:{root:Cue}},s,{label:r,classes:f,ref:t}))});e5.muiName="Input";const Eue=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],Tue={standard:e5,filled:Jz,outlined:Zz},Mue=Qe(Lz,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({maxWidth:"100%"}),Rue=e=>{const{focused:t,disabled:n,classes:r,required:o}=e;return sn({root:["root",t&&!n&&"focused",n&&"disabled",o&&"required"]},Yce,r)},Oue=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiPickersTextField"}),{onFocus:r,onBlur:o,className:a,color:s="primary",disabled:l=!1,error:c=!1,variant:f="outlined",required:u=!1,InputProps:h,inputProps:y,inputRef:v,sectionListRef:S,elements:x,areAllSectionsEmpty:w,onClick:b,onKeyDown:k,onKeyUp:E,onPaste:O,onInput:$,endAdornment:A,startAdornment:I,tabIndex:j,contentEditable:_,focused:W,value:U,onChange:T,fullWidth:L,id:F,name:H,helperText:D,FormHelperTextProps:K,label:Q,InputLabelProps:ee}=n,X=Bn(n,Eue),te=C.useRef(null),ae=mr(t,te),ue=Os(F),he=D&&ue?`${ue}-helper-text`:void 0,ie=Q&&ue?`${ue}-label`:void 0,le=Ne({},n,{color:s,disabled:l,error:c,focused:W,required:u,variant:f}),se=Rue(le),pe=Tue[f];return m.jsxs(Mue,Ne({className:Lt(se.root,a),ref:ae,focused:W,onFocus:r,onBlur:o,disabled:l,variant:f,error:c,color:s,fullWidth:L,required:u,ownerState:le},X,{children:[m.jsx(Iz,Ne({htmlFor:ue,id:ie},ee,{children:Q})),m.jsx(pe,Ne({elements:x,areAllSectionsEmpty:w,onClick:b,onKeyDown:k,onKeyUp:E,onInput:$,onPaste:O,endAdornment:A,startAdornment:I,tabIndex:j,contentEditable:_,value:U,onChange:T,id:ue,fullWidth:L,inputProps:y,inputRef:v,sectionListRef:S,label:Q,name:H,role:"group","aria-labelledby":ie,"aria-describedby":he,"aria-live":he?"polite":void 0},h)),D&&m.jsx(zz,Ne({id:he},K,{children:D}))]}))}),$ue=["enableAccessibleFieldDOMStructure"],Pue=["InputProps","readOnly"],Aue=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],Due=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=Bn(e,$ue);if(t){const{InputProps:h,readOnly:y}=n,v=Bn(n,Pue);return Ne({},v,{InputProps:Ne({},h??{},{readOnly:y})})}const{onPaste:r,onKeyDown:o,inputMode:a,readOnly:s,InputProps:l,inputProps:c,inputRef:f}=n,u=Bn(n,Aue);return Ne({},u,{InputProps:Ne({},l??{},{readOnly:s}),inputProps:Ne({},c??{},{inputMode:a,onPaste:r,onKeyDown:o,ref:f})})},jue=["slots","slotProps","InputProps","inputProps"],t5=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiDateField"}),{slots:r,slotProps:o,InputProps:a,inputProps:s}=n,l=Bn(n,jue),c=n,f=r?.textField??(e.enableAccessibleFieldDOMStructure?Oue:hr),u=xr({elementType:f,externalSlotProps:o?.textField,externalForwardedProps:l,additionalProps:{ref:t},ownerState:c});u.inputProps=Ne({},s,u.inputProps),u.InputProps=Ne({},a,u.InputProps);const h=qce(u),y=Due(h),v=Uce(Ne({},y,{slots:r,slotProps:o}));return m.jsx(f,Ne({},v))}),n5=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:s,timezone:l})=>{const c=wd();return C.useCallback(f=>Kg({adapter:c,value:f,timezone:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:s}})!==null,[c,e,t,n,r,o,a,s,l])},Nue=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return Ne({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const a=o.newTimezone;if(n.getTimezone(r.currentMonth)===a)return r;let s=n.setTimezone(r.currentMonth,a);return n.getMonth(s)!==n.getMonth(r.currentMonth)&&(s=n.setMonth(s,n.getMonth(r.currentMonth))),Ne({},r,{currentMonth:s})}case"finishMonthSwitchingAnimation":return Ne({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const a=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return Ne({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:a&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:a?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},Iue=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:a=!1,maxDate:s,minDate:l,onMonthChange:c,reduceAnimations:f,shouldDisableDate:u,timezone:h}=e,y=Yr(),v=C.useRef(Nue(!!f,a,y)).current,S=C.useMemo(()=>ll.getInitialReferenceValue({value:t,utils:y,timezone:h,props:e,referenceDate:n,granularity:Zs.day}),[n,h]),[x,w]=C.useReducer(v,{isMonthSwitchingAnimating:!1,focusedDay:S,currentMonth:y.startOfMonth(S),slideDirection:"left"});C.useEffect(()=>{w({type:"changeMonthTimezone",newTimezone:y.getTimezone(S)})},[S,y]);const b=C.useCallback(A=>{w(Ne({type:"changeMonth"},A)),c&&c(A.newMonth)},[c]),k=C.useCallback(A=>{const I=A;y.isSameMonth(I,x.currentMonth)||b({newMonth:y.startOfMonth(I),direction:y.isAfterDay(I,x.currentMonth)?"left":"right"})},[x.currentMonth,b,y]),E=n5({shouldDisableDate:u,minDate:l,maxDate:s,disableFuture:r,disablePast:o,timezone:h}),O=C.useCallback(()=>{w({type:"finishMonthSwitchingAnimation"})},[]),$=Ut((A,I)=>{E(A)||w({type:"changeFocusedDay",focusedDay:A,withoutMonthSwitchingAnimation:I})});return{referenceDate:S,calendarState:x,changeMonth:k,changeFocusedDay:$,isDateDisabled:E,onMonthSwitchingAnimationEnd:O,handleChangeMonth:b}},Lue=e=>cn("MuiPickersFadeTransitionGroup",e);tn("MuiPickersFadeTransitionGroup",["root"]);const zue=e=>{const{classes:t}=e;return sn({root:["root"]},Lue,t)},Fue=Qe(Qg,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function r5(e){const t=qr({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,s=zue(t),l=Sd();return o?n:m.jsx(Fue,{className:Lt(s.root,r),children:m.jsx(md,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:l.transitions.duration.enteringScreen,enter:l.transitions.duration.enteringScreen,exit:0},children:n},a)})}function _ue(e){return cn("MuiPickersDay",e)}const Iu=tn("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),Bue=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],Uue=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:a,outsideCurrentMonth:s,showDaysOutsideCurrentMonth:l,classes:c}=e,f=s&&!l;return sn({root:["root",t&&!f&&"selected",a&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",s&&l&&"dayOutsideMonth",f&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},_ue,c)},o5=({theme:e})=>Ne({},e.typography.caption,{width:vg,height:vg,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Es(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Es(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Iu.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Iu.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Iu.disabled}:not(.${Iu.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Iu.disabled}&.${Iu.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${G0}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Iu.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),a5=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},Vue=Qe(hd,{name:"MuiPickersDay",slot:"Root",overridesResolver:a5})(o5),Hue=Qe("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:a5})(({theme:e})=>Ne({},o5({theme:e}),{opacity:0,pointerEvents:"none"})),dm=()=>{},Wue=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiPickersDay"}),{autoFocus:r=!1,className:o,day:a,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:f,onClick:u,onDaySelect:h,onFocus:y=dm,onBlur:v=dm,onKeyDown:S=dm,onMouseDown:x=dm,onMouseEnter:w=dm,outsideCurrentMonth:b,selected:k=!1,showDaysOutsideCurrentMonth:E=!1,children:O,today:$=!1}=n,A=Bn(n,Bue),I=Ne({},n,{autoFocus:r,disabled:s,disableHighlightToday:l,disableMargin:c,selected:k,showDaysOutsideCurrentMonth:E,today:$}),j=Uue(I),_=Yr(),W=C.useRef(null),U=mr(W,t);Lo(()=>{r&&!s&&!f&&!b&&W.current.focus()},[r,s,f,b]);const T=F=>{x(F),b&&F.preventDefault()},L=F=>{s||h(a),b&&F.currentTarget.focus(),u&&u(F)};return b&&!E?m.jsx(Hue,{className:Lt(j.root,j.hiddenDaySpacingFiller,o),ownerState:I,role:A.role}):m.jsx(Vue,Ne({className:Lt(j.root,o),ref:U,centerRipple:!0,disabled:s,tabIndex:k?0:-1,onKeyDown:F=>S(F,a),onFocus:F=>y(F,a),onBlur:F=>v(F,a),onMouseEnter:F=>w(F,a),onClick:L,onMouseDown:T},A,{ownerState:I,children:O||_.format(a,"dayOfMonth")}))}),que=C.memo(Wue),Yue=e=>cn("MuiPickersSlideTransition",e),Ii=tn("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Gue=["children","className","reduceAnimations","slideDirection","transKey","classes"],Kue=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return sn(r,Yue,t)},Que=Qe(Qg,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Ii["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Ii["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Ii.slideEnterActive}`]:t.slideEnterActive},{[`.${Ii.slideExit}`]:t.slideExit},{[`.${Ii["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Ii["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Ii["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Ii["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Ii.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Ii.slideExit}`]:{transform:"translate(0%)"},[`& .${Ii["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Ii["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function Xue(e){const t=qr({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,s=Bn(t,Gue),l=Kue(t),c=Sd();if(o)return m.jsx("div",{className:Lt(l.root,r),children:n});const f={exit:l.exit,enterActive:l.enterActive,enter:l.enter,exitActive:l.exitActive};return m.jsx(Que,{className:Lt(l.root,r),childFactory:u=>C.cloneElement(u,{classNames:f}),role:"presentation",children:m.jsx(oE,Ne({mountOnEnter:!0,unmountOnExit:!0,timeout:c.transitions.duration.complex,classNames:f},s,{children:n}),a)})}const Zue=e=>cn("MuiDayCalendar",e);tn("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const Jue=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],ede=["ownerState"],tde=e=>{const{classes:t}=e;return sn({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},Zue,t)},i5=(vg+G0*2)*6,nde=Qe("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),rde=Qe("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),ode=Qe(br,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),ade=Qe(br,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),ide=Qe(br,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>Ne({},e.typography.caption,{width:vg,height:vg,padding:0,margin:`0 ${G0}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),sde=Qe("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:i5}),lde=Qe(Xue,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:i5}),cde=Qe("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),ude=Qe("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${G0}px 0`,display:"flex",justifyContent:"center"});function dde(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:o,isDateDisabled:a,currentMonthNumber:s,isViewFocused:l}=e,c=Bn(e,Jue);const{disabled:f,disableHighlightToday:u,isMonthSwitchingAnimating:h,showDaysOutsideCurrentMonth:y,slots:v,slotProps:S,timezone:x}=t,w=Yr(),b=W0(x),k=r!==null&&w.isSameDay(n,r),E=o.some(T=>w.isSameDay(T,n)),O=w.isSameDay(n,b),$=v?.day??que,A=xr({elementType:$,externalSlotProps:S?.day,additionalProps:Ne({disableHighlightToday:u,showDaysOutsideCurrentMonth:y,role:"gridcell",isAnimating:h,"data-timestamp":w.toJsDate(n).valueOf()},c),ownerState:Ne({},t,{day:n,selected:E})}),I=Bn(A,ede),j=C.useMemo(()=>f||a(n),[f,a,n]),_=C.useMemo(()=>w.getMonth(n)!==s,[w,n,s]),W=C.useMemo(()=>{const T=w.startOfMonth(w.setMonth(n,s));return y?w.isSameDay(n,w.startOfWeek(T)):w.isSameDay(n,T)},[s,n,y,w]),U=C.useMemo(()=>{const T=w.endOfMonth(w.setMonth(n,s));return y?w.isSameDay(n,w.endOfWeek(T)):w.isSameDay(n,T)},[s,n,y,w]);return m.jsx($,Ne({},I,{day:n,disabled:j,autoFocus:l&&k,today:O,outsideCurrentMonth:_,isFirstVisibleCell:W,isLastVisibleCell:U,selected:E,tabIndex:k?0:-1,"aria-selected":E,"aria-current":O?"date":void 0}))}function fde(e){const t=qr({props:e,name:"MuiDayCalendar"}),n=Yr(),{onFocusedDayChange:r,className:o,currentMonth:a,selectedDays:s,focusedDay:l,loading:c,onSelectedDaysChange:f,onMonthSwitchingAnimationEnd:u,readOnly:h,reduceAnimations:y,renderLoading:v=()=>m.jsx("span",{children:"..."}),slideDirection:S,TransitionProps:x,disablePast:w,disableFuture:b,minDate:k,maxDate:E,shouldDisableDate:O,shouldDisableMonth:$,shouldDisableYear:A,dayOfWeekFormatter:I=Te=>n.format(Te,"weekdayShort").charAt(0).toUpperCase(),hasFocus:j,onFocusedViewChange:_,gridLabelId:W,displayWeekNumber:U,fixedWeekNumber:T,autoFocus:L,timezone:F}=t,H=W0(F),D=tde(t),K=Rs(),Q=n5({shouldDisableDate:O,shouldDisableMonth:$,shouldDisableYear:A,minDate:k,maxDate:E,disablePast:w,disableFuture:b,timezone:F}),ee=Xl(),[X,te]=vi({name:"DayCalendar",state:"hasFocus",controlled:j,default:L??!1}),[ae,ue]=C.useState(()=>l||H),he=Ut(Te=>{h||f(Te)}),ie=Te=>{Q(Te)||(r(Te),ue(Te),_?.(!0),te(!0))},le=Ut((Te,je)=>{switch(Te.key){case"ArrowUp":ie(n.addDays(je,-7)),Te.preventDefault();break;case"ArrowDown":ie(n.addDays(je,7)),Te.preventDefault();break;case"ArrowLeft":{const oe=n.addDays(je,K?1:-1),lt=n.addMonths(je,K?1:-1),Ie=Wm({utils:n,date:oe,minDate:K?oe:n.startOfMonth(lt),maxDate:K?n.endOfMonth(lt):oe,isDateDisabled:Q,timezone:F});ie(Ie||oe),Te.preventDefault();break}case"ArrowRight":{const oe=n.addDays(je,K?-1:1),lt=n.addMonths(je,K?-1:1),Ie=Wm({utils:n,date:oe,minDate:K?n.startOfMonth(lt):oe,maxDate:K?oe:n.endOfMonth(lt),isDateDisabled:Q,timezone:F});ie(Ie||oe),Te.preventDefault();break}case"Home":ie(n.startOfWeek(je)),Te.preventDefault();break;case"End":ie(n.endOfWeek(je)),Te.preventDefault();break;case"PageUp":ie(n.addMonths(je,1)),Te.preventDefault();break;case"PageDown":ie(n.addMonths(je,-1)),Te.preventDefault();break}}),se=Ut((Te,je)=>ie(je)),pe=Ut((Te,je)=>{X&&n.isSameDay(ae,je)&&_?.(!1)}),ne=n.getMonth(a),me=n.getYear(a),xe=C.useMemo(()=>s.filter(Te=>!!Te).map(Te=>n.startOfDay(Te)),[n,s]),Se=`${me}-${ne}`,ce=C.useMemo(()=>C.createRef(),[Se]),Ee=C.useMemo(()=>{const Te=n.startOfMonth(a),je=n.endOfMonth(a);return Q(ae)||n.isAfterDay(ae,je)||n.isBeforeDay(ae,Te)?Wm({utils:n,date:ae,minDate:Te,maxDate:je,disablePast:w,disableFuture:b,isDateDisabled:Q,timezone:F}):ae},[a,b,w,ae,Q,n,F]),Ge=C.useMemo(()=>{const Te=n.getWeekArray(a);let je=n.addMonths(a,1);for(;T&&Te.length<T;){const oe=n.getWeekArray(je),lt=n.isSameDay(Te[Te.length-1][0],oe[0][0]);oe.slice(lt?1:0).forEach(Ie=>{Te.length<T&&Te.push(Ie)}),je=n.addMonths(je,1)}return Te},[a,T,n]);return m.jsxs(nde,{role:"grid","aria-labelledby":W,className:D.root,children:[m.jsxs(rde,{role:"row",className:D.header,children:[U&&m.jsx(ade,{variant:"caption",role:"columnheader","aria-label":ee.calendarWeekNumberHeaderLabel,className:D.weekNumberLabel,children:ee.calendarWeekNumberHeaderText}),Tre(n,H).map((Te,je)=>m.jsx(ode,{variant:"caption",role:"columnheader","aria-label":n.format(Te,"weekday"),className:D.weekDayLabel,children:I(Te)},je.toString()))]}),c?m.jsx(sde,{className:D.loadingContainer,children:v()}):m.jsx(lde,Ne({transKey:Se,onExited:u,reduceAnimations:y,slideDirection:S,className:Lt(o,D.slideTransition)},x,{nodeRef:ce,children:m.jsx(cde,{ref:ce,role:"rowgroup",className:D.monthContainer,children:Ge.map((Te,je)=>m.jsxs(ude,{role:"row",className:D.weekContainer,"aria-rowindex":je+1,children:[U&&m.jsx(ide,{className:D.weekNumber,role:"rowheader","aria-label":ee.calendarWeekNumberAriaLabelText(n.getWeekNumber(Te[0])),children:ee.calendarWeekNumberText(n.getWeekNumber(Te[0]))}),Te.map((oe,lt)=>m.jsx(dde,{parentProps:t,day:oe,selectedDays:xe,focusableDay:Ee,onKeyDown:le,onFocus:se,onBlur:pe,onDaySelect:he,isDateDisabled:Q,currentMonthNumber:ne,isViewFocused:X,"aria-colindex":lt+1},oe.toString()))]},`week-${Te[0]}`))})}))]})}function pde(e){return cn("MuiPickersMonth",e)}const Ev=tn("MuiPickersMonth",["root","monthButton","disabled","selected"]),hde=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],mde=e=>{const{disabled:t,selected:n,classes:r}=e;return sn({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},pde,r)},gde=Qe("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),yde=Qe("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Ev.disabled}`]:t.disabled},{[`&.${Ev.selected}`]:t.selected}]})(({theme:e})=>Ne({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Es(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Es(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Ev.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Ev.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),vde=C.memo(function(e){const t=qr({props:e,name:"MuiPickersMonth"}),{autoFocus:n,className:r,children:o,disabled:a,selected:s,value:l,tabIndex:c,onClick:f,onKeyDown:u,onFocus:h,onBlur:y,"aria-current":v,"aria-label":S,slots:x,slotProps:w}=t,b=Bn(t,hde),k=C.useRef(null),E=mde(t);Lo(()=>{n&&k.current?.focus()},[n]);const O=x?.monthButton??yde,$=xr({elementType:O,externalSlotProps:w?.monthButton,additionalProps:{children:o,disabled:a,tabIndex:c,ref:k,type:"button",role:"radio","aria-current":v,"aria-checked":s,"aria-label":S,onClick:A=>f(A,l),onKeyDown:A=>u(A,l),onFocus:A=>h(A,l),onBlur:A=>y(A,l)},ownerState:t,className:E.monthButton});return m.jsx(gde,Ne({className:Lt(E.root,r),ownerState:t},b,{children:m.jsx(O,Ne({},$))}))});function bde(e){return cn("MuiMonthCalendar",e)}tn("MuiMonthCalendar",["root"]);const xde=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],Sde=e=>{const{classes:t}=e;return sn({root:["root"]},bde,t)};function wde(e,t){const n=Yr(),r=Gg(),o=qr({props:e,name:t});return Ne({disableFuture:!1,disablePast:!1},o,{minDate:Zi(n,o.minDate,r.minDate),maxDate:Zi(n,o.maxDate,r.maxDate)})}const Cde=Qe("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:K0,boxSizing:"border-box"}),kde=C.forwardRef(function(e,t){const n=wde(e,"MuiMonthCalendar"),{className:r,value:o,defaultValue:a,referenceDate:s,disabled:l,disableFuture:c,disablePast:f,maxDate:u,minDate:h,onChange:y,shouldDisableMonth:v,readOnly:S,autoFocus:x=!1,onMonthFocus:w,hasFocus:b,onFocusedViewChange:k,monthsPerRow:E=3,timezone:O,gridLabelId:$,slots:A,slotProps:I}=n,j=Bn(n,xde),{value:_,handleValueChange:W,timezone:U}=mE({name:"MonthCalendar",timezone:O,value:o,defaultValue:a,referenceDate:s,onChange:y,valueManager:ll}),T=W0(U),L=Rs(),F=Yr(),H=C.useMemo(()=>ll.getInitialReferenceValue({value:_,utils:F,props:n,timezone:U,referenceDate:s,granularity:Zs.month}),[]),D=n,K=Sde(D),Q=C.useMemo(()=>F.getMonth(T),[F,T]),ee=C.useMemo(()=>_!=null?F.getMonth(_):null,[_,F]),[X,te]=C.useState(()=>ee||F.getMonth(H)),[ae,ue]=vi({name:"MonthCalendar",state:"hasFocus",controlled:b,default:x??!1}),he=Ut(xe=>{ue(xe),k&&k(xe)}),ie=C.useCallback(xe=>{const Se=F.startOfMonth(f&&F.isAfter(T,h)?T:h),ce=F.startOfMonth(c&&F.isBefore(T,u)?T:u),Ee=F.startOfMonth(xe);return F.isBefore(Ee,Se)||F.isAfter(Ee,ce)?!0:v?v(Ee):!1},[c,f,u,h,T,v,F]),le=Ut((xe,Se)=>{if(S)return;const ce=F.setMonth(_??H,Se);W(ce)}),se=Ut(xe=>{ie(F.setMonth(_??H,xe))||(te(xe),he(!0),w&&w(xe))});C.useEffect(()=>{te(xe=>ee!==null&&xe!==ee?ee:xe)},[ee]);const pe=Ut((xe,Se)=>{switch(xe.key){case"ArrowUp":se((12+Se-3)%12),xe.preventDefault();break;case"ArrowDown":se((12+Se+3)%12),xe.preventDefault();break;case"ArrowLeft":se((12+Se+(L?1:-1))%12),xe.preventDefault();break;case"ArrowRight":se((12+Se+(L?-1:1))%12),xe.preventDefault();break}}),ne=Ut((xe,Se)=>{se(Se)}),me=Ut((xe,Se)=>{X===Se&&he(!1)});return m.jsx(Cde,Ne({ref:t,className:Lt(K.root,r),ownerState:D,role:"radiogroup","aria-labelledby":$},j,{children:Jk(F,_??H).map(xe=>{const Se=F.getMonth(xe),ce=F.format(xe,"monthShort"),Ee=F.format(xe,"month"),Ge=Se===ee,Te=l||ie(xe);return m.jsx(vde,{selected:Ge,value:Se,onClick:le,onKeyDown:pe,autoFocus:ae&&Se===X,disabled:Te,tabIndex:Se===X&&!Te?0:-1,onFocus:ne,onBlur:me,"aria-current":Q===Se?"date":void 0,"aria-label":Ee,monthsPerRow:E,slots:A,slotProps:I,children:ce},ce)})}))});function Ede(e){return cn("MuiPickersYear",e)}const Tv=tn("MuiPickersYear",["root","yearButton","selected","disabled"]),Tde=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],Mde=e=>{const{disabled:t,selected:n,classes:r}=e;return sn({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},Ede,r)},Rde=Qe("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),Ode=Qe("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Tv.disabled}`]:t.disabled},{[`&.${Tv.selected}`]:t.selected}]})(({theme:e})=>Ne({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Es(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Es(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Tv.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Tv.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),$de=C.memo(function(e){const t=qr({props:e,name:"MuiPickersYear"}),{autoFocus:n,className:r,children:o,disabled:a,selected:s,value:l,tabIndex:c,onClick:f,onKeyDown:u,onFocus:h,onBlur:y,"aria-current":v,slots:S,slotProps:x}=t,w=Bn(t,Tde),b=C.useRef(null),k=Mde(t);Lo(()=>{n&&b.current?.focus()},[n]);const E=S?.yearButton??Ode,O=xr({elementType:E,externalSlotProps:x?.yearButton,additionalProps:{children:o,disabled:a,tabIndex:c,ref:b,type:"button",role:"radio","aria-current":v,"aria-checked":s,onClick:$=>f($,l),onKeyDown:$=>u($,l),onFocus:$=>h($,l),onBlur:$=>y($,l)},ownerState:t,className:k.yearButton});return m.jsx(Rde,Ne({className:Lt(k.root,r),ownerState:t},w,{children:m.jsx(E,Ne({},O))}))});function Pde(e){return cn("MuiYearCalendar",e)}tn("MuiYearCalendar",["root"]);const Ade=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],Dde=e=>{const{classes:t}=e;return sn({root:["root"]},Pde,t)};function jde(e,t){const n=Yr(),r=Gg(),o=qr({props:e,name:t});return Ne({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:Zi(n,o.minDate,r.minDate),maxDate:Zi(n,o.maxDate,r.maxDate)})}const Nde=Qe("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:K0,maxHeight:Ase,boxSizing:"border-box",position:"relative"}),Ide=C.forwardRef(function(e,t){const n=jde(e,"MuiYearCalendar"),{autoFocus:r,className:o,value:a,defaultValue:s,referenceDate:l,disabled:c,disableFuture:f,disablePast:u,maxDate:h,minDate:y,onChange:v,readOnly:S,shouldDisableYear:x,onYearFocus:w,hasFocus:b,onFocusedViewChange:k,yearsOrder:E="asc",yearsPerRow:O,timezone:$,gridLabelId:A,slots:I,slotProps:j}=n,_=Bn(n,Ade),{value:W,handleValueChange:U,timezone:T}=mE({name:"YearCalendar",timezone:$,value:a,defaultValue:s,referenceDate:l,onChange:v,valueManager:ll}),L=W0(T),F=Rs(),H=Yr(),D=C.useMemo(()=>ll.getInitialReferenceValue({value:W,utils:H,props:n,timezone:T,referenceDate:l,granularity:Zs.year}),[]),K=n,Q=Dde(K),ee=C.useMemo(()=>H.getYear(L),[H,L]),X=C.useMemo(()=>W!=null?H.getYear(W):null,[W,H]),[te,ae]=C.useState(()=>X||H.getYear(D)),[ue,he]=vi({name:"YearCalendar",state:"hasFocus",controlled:b,default:r??!1}),ie=Ut(je=>{he(je),k&&k(je)}),le=C.useCallback(je=>{if(u&&H.isBeforeYear(je,L)||f&&H.isAfterYear(je,L)||y&&H.isBeforeYear(je,y)||h&&H.isAfterYear(je,h))return!0;if(!x)return!1;const oe=H.startOfYear(je);return x(oe)},[f,u,h,y,L,x,H]),se=Ut((je,oe)=>{if(S)return;const lt=H.setYear(W??D,oe);U(lt)}),pe=Ut(je=>{le(H.setYear(W??D,je))||(ae(je),ie(!0),w?.(je))});C.useEffect(()=>{ae(je=>X!==null&&je!==X?X:je)},[X]);const ne=E!=="desc"?O*1:O*-1,me=F&&E==="asc"||!F&&E==="desc"?-1:1,xe=Ut((je,oe)=>{switch(je.key){case"ArrowUp":pe(oe-ne),je.preventDefault();break;case"ArrowDown":pe(oe+ne),je.preventDefault();break;case"ArrowLeft":pe(oe-me),je.preventDefault();break;case"ArrowRight":pe(oe+me),je.preventDefault();break}}),Se=Ut((je,oe)=>{pe(oe)}),ce=Ut((je,oe)=>{te===oe&&ie(!1)}),Ee=C.useRef(null),Ge=mr(t,Ee);C.useEffect(()=>{if(r||Ee.current===null)return;const je=Ee.current.querySelector('[tabindex="0"]');if(!je)return;const oe=je.offsetHeight,lt=je.offsetTop,Ie=Ee.current.clientHeight,et=Ee.current.scrollTop,mt=lt+oe;oe>Ie||lt<et||(Ee.current.scrollTop=mt-Ie/2-oe/2)},[r]);const Te=H.getYearRange([y,h]);return E==="desc"&&Te.reverse(),m.jsx(Nde,Ne({ref:Ge,className:Lt(Q.root,o),ownerState:K,role:"radiogroup","aria-labelledby":A},_,{children:Te.map(je=>{const oe=H.getYear(je),lt=oe===X,Ie=c||le(je);return m.jsx($de,{selected:lt,value:oe,onClick:se,onKeyDown:xe,autoFocus:ue&&oe===te,disabled:Ie,tabIndex:oe===te&&!Ie?0:-1,onFocus:Se,onBlur:ce,"aria-current":ee===oe?"date":void 0,yearsPerRow:O,slots:I,slotProps:j,children:H.format(je,"year")},H.format(je,"year"))})}))}),Lde=e=>cn("MuiPickersCalendarHeader",e),zde=tn("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function Fde(e){return cn("MuiPickersArrowSwitcher",e)}tn("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const _de=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],Bde=["ownerState"],Ude=["ownerState"],Vde=Qe("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Hde=Qe("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),FA=Qe(nu,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),Wde=e=>{const{classes:t}=e;return sn({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},Fde,t)},qde=C.forwardRef(function(e,t){const n=Rs(),r=qr({props:e,name:"MuiPickersArrowSwitcher"}),{children:o,className:a,slots:s,slotProps:l,isNextDisabled:c,isNextHidden:f,onGoToNext:u,nextLabel:h,isPreviousDisabled:y,isPreviousHidden:v,onGoToPrevious:S,previousLabel:x,labelId:w}=r,b=Bn(r,_de),k=r,E=Wde(k),O={isDisabled:c,isHidden:f,goTo:u,label:h},$={isDisabled:y,isHidden:v,goTo:S,label:x},A=s?.previousIconButton??FA,I=xr({elementType:A,externalSlotProps:l?.previousIconButton,additionalProps:{size:"medium",title:$.label,"aria-label":$.label,disabled:$.isDisabled,edge:"end",onClick:$.goTo},ownerState:Ne({},k,{hidden:$.isHidden}),className:Lt(E.button,E.previousIconButton)}),j=s?.nextIconButton??FA,_=xr({elementType:j,externalSlotProps:l?.nextIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"start",onClick:O.goTo},ownerState:Ne({},k,{hidden:O.isHidden}),className:Lt(E.button,E.nextIconButton)}),W=s?.leftArrowIcon??Gse,U=xr({elementType:W,externalSlotProps:l?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:k,className:E.leftArrowIcon}),T=Bn(U,Bde),L=s?.rightArrowIcon??Kse,F=xr({elementType:L,externalSlotProps:l?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:k,className:E.rightArrowIcon}),H=Bn(F,Ude);return m.jsxs(Vde,Ne({ref:t,className:Lt(E.root,a),ownerState:k},b,{children:[m.jsx(A,Ne({},I,{children:n?m.jsx(L,Ne({},H)):m.jsx(W,Ne({},T))})),o?m.jsx(br,{variant:"subtitle1",component:"span",id:w,children:o}):m.jsx(Hde,{className:E.spacer,ownerState:k}),m.jsx(j,Ne({},_,{children:n?m.jsx(W,Ne({},T)):m.jsx(L,Ne({},H))}))]}))});function Yde(e,{disableFuture:t,maxDate:n,timezone:r}){const o=Yr();return C.useMemo(()=>{const a=o.date(void 0,r),s=o.startOfMonth(t&&o.isBefore(a,n)?a:n);return!o.isAfter(s,e)},[t,n,e,o,r])}function Gde(e,{disablePast:t,minDate:n,timezone:r}){const o=Yr();return C.useMemo(()=>{const a=o.date(void 0,r),s=o.startOfMonth(t&&o.isAfter(a,n)?a:n);return!o.isBefore(s,e)},[t,n,e,o,r])}const Kde=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],Qde=["ownerState"],Xde=e=>{const{classes:t}=e;return sn({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Lde,t)},Zde=Qe("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),Jde=Qe("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>Ne({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),efe=Qe("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),tfe=Qe(nu,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${zde.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),nfe=Qe(Yse,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),rfe=C.forwardRef(function(e,t){const n=Xl(),r=Yr(),o=qr({props:e,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:s,currentMonth:l,disabled:c,disableFuture:f,disablePast:u,maxDate:h,minDate:y,onMonthChange:v,onViewChange:S,view:x,reduceAnimations:w,views:b,labelId:k,className:E,timezone:O,format:$=`${r.formats.month} ${r.formats.year}`}=o,A=Bn(o,Kde),I=o,j=Xde(o),_=a?.switchViewButton??tfe,W=xr({elementType:_,externalSlotProps:s?.switchViewButton,additionalProps:{size:"small","aria-label":n.calendarViewSwitchingButtonAriaLabel(x)},ownerState:I,className:j.switchViewButton}),U=a?.switchViewIcon??nfe,T=xr({elementType:U,externalSlotProps:s?.switchViewIcon,ownerState:I,className:j.switchViewIcon}),L=Bn(T,Qde),F=()=>v(r.addMonths(l,1),"left"),H=()=>v(r.addMonths(l,-1),"right"),D=Yde(l,{disableFuture:f,maxDate:h,timezone:O}),K=Gde(l,{disablePast:u,minDate:y,timezone:O}),Q=()=>{if(!(b.length===1||!S||c))if(b.length===2)S(b.find(X=>X!==x)||b[0]);else{const X=b.indexOf(x)!==0?0:1;S(b[X])}};if(b.length===1&&b[0]==="year")return null;const ee=r.formatByString(l,$);return m.jsxs(Zde,Ne({},A,{ownerState:I,className:Lt(j.root,E),ref:t,children:[m.jsxs(Jde,{role:"presentation",onClick:Q,ownerState:I,"aria-live":"polite",className:j.labelContainer,children:[m.jsx(r5,{reduceAnimations:w,transKey:ee,children:m.jsx(efe,{id:k,ownerState:I,className:j.label,children:ee})}),b.length>1&&!c&&m.jsx(_,Ne({},W,{children:m.jsx(U,Ne({},L))}))]}),m.jsx(md,{in:x==="day",appear:!w,enter:!w,children:m.jsx(qde,{slots:a,slotProps:s,onGoToPrevious:H,isPreviousDisabled:K,previousLabel:n.previousMonth,onGoToNext:F,isNextDisabled:D,nextLabel:n.nextMonth})})]}))}),ofe=Qe("div")({overflow:"hidden",width:K0,maxHeight:gE,display:"flex",flexDirection:"column",margin:"0 auto"}),afe=e=>cn("MuiDateCalendar",e);tn("MuiDateCalendar",["root","viewTransitionContainer"]);const ife=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],sfe=e=>{const{classes:t}=e;return sn({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},afe,t)};function lfe(e,t){const n=Yr(),r=Gg(),o=Tz(),a=qr({props:e,name:t});return Ne({},a,{loading:a.loading??!1,disablePast:a.disablePast??!1,disableFuture:a.disableFuture??!1,openTo:a.openTo??"day",views:a.views??["year","day"],reduceAnimations:a.reduceAnimations??o,renderLoading:a.renderLoading??(()=>m.jsx("span",{children:"..."})),minDate:Zi(n,a.minDate,r.minDate),maxDate:Zi(n,a.maxDate,r.maxDate)})}const cfe=Qe(ofe,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:gE}),ufe=Qe(r5,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),dfe=C.forwardRef(function(e,t){const n=Yr(),r=Os(),o=lfe(e,"MuiDateCalendar"),{autoFocus:a,onViewChange:s,value:l,defaultValue:c,referenceDate:f,disableFuture:u,disablePast:h,onChange:y,onYearChange:v,onMonthChange:S,reduceAnimations:x,shouldDisableDate:w,shouldDisableMonth:b,shouldDisableYear:k,view:E,views:O,openTo:$,className:A,disabled:I,readOnly:j,minDate:_,maxDate:W,disableHighlightToday:U,focusedView:T,onFocusedViewChange:L,showDaysOutsideCurrentMonth:F,fixedWeekNumber:H,dayOfWeekFormatter:D,slots:K,slotProps:Q,loading:ee,renderLoading:X,displayWeekNumber:te,yearsOrder:ae,yearsPerRow:ue,monthsPerRow:he,timezone:ie}=o,le=Bn(o,ife),{value:se,handleValueChange:pe,timezone:ne}=mE({name:"DateCalendar",timezone:ie,value:l,defaultValue:c,referenceDate:f,onChange:y,valueManager:ll}),{view:me,setView:xe,focusedView:Se,setFocusedView:ce,goToNextView:Ee,setValueAndGoToNextView:Ge}=Mz({view:E,views:O,openTo:$,onChange:pe,onViewChange:s,autoFocus:a,focusedView:T,onFocusedViewChange:L}),{referenceDate:Te,calendarState:je,changeFocusedDay:oe,changeMonth:lt,handleChangeMonth:Ie,isDateDisabled:et,onMonthSwitchingAnimationEnd:mt}=Iue({value:se,referenceDate:f,reduceAnimations:x,onMonthChange:S,minDate:_,maxDate:W,shouldDisableDate:w,disablePast:h,disableFuture:u,timezone:ne}),Wt=I&&se||_,zt=I&&se||W,tt=`${r}-grid-label`,Je=Se!==null,ct=K?.calendarHeader??rfe,Le=xr({elementType:ct,externalSlotProps:Q?.calendarHeader,additionalProps:{views:O,view:me,currentMonth:je.currentMonth,onViewChange:xe,onMonthChange:(mn,$n)=>Ie({newMonth:mn,direction:$n}),minDate:Wt,maxDate:zt,disabled:I,disablePast:h,disableFuture:u,reduceAnimations:x,timezone:ne,labelId:tt},ownerState:o}),ge=Ut(mn=>{const $n=n.startOfMonth(mn),_n=n.endOfMonth(mn),Un=et(mn)?Wm({utils:n,date:mn,minDate:n.isBefore(_,$n)?$n:_,maxDate:n.isAfter(W,_n)?_n:W,disablePast:h,disableFuture:u,isDateDisabled:et,timezone:ne}):mn;Un?(Ge(Un,"finish"),S?.($n)):(Ee(),lt($n)),oe(Un,!0)}),qe=Ut(mn=>{const $n=n.startOfYear(mn),_n=n.endOfYear(mn),Un=et(mn)?Wm({utils:n,date:mn,minDate:n.isBefore(_,$n)?$n:_,maxDate:n.isAfter(W,_n)?_n:W,disablePast:h,disableFuture:u,isDateDisabled:et,timezone:ne}):mn;Un?(Ge(Un,"finish"),v?.(Un)):(Ee(),lt($n)),oe(Un,!0)}),De=Ut(mn=>pe(mn&&Mb(n,mn,se??Te),"finish",me));C.useEffect(()=>{se!=null&&n.isValid(se)&&lt(se)},[se]);const wt=o,Ct=sfe(wt),yt={disablePast:h,disableFuture:u,maxDate:W,minDate:_},st={disableHighlightToday:U,readOnly:j,disabled:I,timezone:ne,gridLabelId:tt,slots:K,slotProps:Q},jt=C.useRef(me);C.useEffect(()=>{jt.current!==me&&(Se===jt.current&&ce(me,!0),jt.current=me)},[Se,ce,me]);const qt=C.useMemo(()=>[se],[se]);return m.jsxs(cfe,Ne({ref:t,className:Lt(Ct.root,A),ownerState:wt},le,{children:[m.jsx(ct,Ne({},Le,{slots:K,slotProps:Q})),m.jsx(ufe,{reduceAnimations:x,className:Ct.viewTransitionContainer,transKey:me,ownerState:wt,children:m.jsxs("div",{children:[me==="year"&&m.jsx(Ide,Ne({},yt,st,{value:se,onChange:qe,shouldDisableYear:k,hasFocus:Je,onFocusedViewChange:mn=>ce("year",mn),yearsOrder:ae,yearsPerRow:ue,referenceDate:Te})),me==="month"&&m.jsx(kde,Ne({},yt,st,{hasFocus:Je,className:A,value:se,onChange:ge,shouldDisableMonth:b,onFocusedViewChange:mn=>ce("month",mn),monthsPerRow:he,referenceDate:Te})),me==="day"&&m.jsx(fde,Ne({},je,yt,st,{onMonthSwitchingAnimationEnd:mt,onFocusedDayChange:oe,reduceAnimations:x,selectedDays:qt,onSelectedDaysChange:De,shouldDisableDate:w,shouldDisableMonth:b,shouldDisableYear:k,hasFocus:Je,onFocusedViewChange:mn=>ce("day",mn),showDaysOutsideCurrentMonth:F,fixedWeekNumber:H,dayOfWeekFormatter:D,displayWeekNumber:te,loading:ee,renderLoading:X}))]})})]}))}),np=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:a,defaultValue:s,referenceDate:l,onChange:c,className:f,classes:u,disableFuture:h,disablePast:y,minDate:v,maxDate:S,shouldDisableDate:x,shouldDisableMonth:w,shouldDisableYear:b,reduceAnimations:k,onMonthChange:E,monthsPerRow:O,onYearChange:$,yearsOrder:A,yearsPerRow:I,slots:j,slotProps:_,loading:W,renderLoading:U,disableHighlightToday:T,readOnly:L,disabled:F,showDaysOutsideCurrentMonth:H,dayOfWeekFormatter:D,sx:K,autoFocus:Q,fixedWeekNumber:ee,displayWeekNumber:X,timezone:te})=>m.jsx(dfe,{view:e,onViewChange:t,views:n.filter(YP),focusedView:r&&YP(r)?r:null,onFocusedViewChange:o,value:a,defaultValue:s,referenceDate:l,onChange:c,className:f,classes:u,disableFuture:h,disablePast:y,minDate:v,maxDate:S,shouldDisableDate:x,shouldDisableMonth:w,shouldDisableYear:b,reduceAnimations:k,onMonthChange:E,monthsPerRow:O,onYearChange:$,yearsOrder:A,yearsPerRow:I,slots:j,slotProps:_,loading:W,renderLoading:U,disableHighlightToday:T,readOnly:L,disabled:F,showDaysOutsideCurrentMonth:H,dayOfWeekFormatter:D,sx:K,autoFocus:Q,fixedWeekNumber:ee,displayWeekNumber:X,timezone:te}),s5=C.forwardRef(function(e,t){const n=Xl(),r=Yr(),o=sz(e,"MuiDesktopDatePicker"),a=Ne({day:np,month:np,year:np},o.viewRenderers),s=Ne({},o,{viewRenderers:a,format:eE(r,o,!1),yearsPerRow:o.yearsPerRow??4,slots:Ne({openPickerIcon:Qse,field:t5},o.slots),slotProps:Ne({},o.slotProps,{field:c=>Ne({},V0(o.slotProps?.field,c),cz(o),{ref:t}),toolbar:Ne({hidden:!0},o.slotProps?.toolbar)})}),{renderPicker:l}=qse({props:s,valueManager:ll,valueType:"date",getOpenDialogAriaText:az({utils:r,formatKey:"fullDate",contextTranslation:n.openDatePickerDialogue,propsTranslation:s.localeText?.openDatePickerDialogue}),validator:Kg});return l()});s5.propTypes={autoFocus:ot.bool,className:ot.string,closeOnSelect:ot.bool,dayOfWeekFormatter:ot.func,defaultValue:ot.object,disabled:ot.bool,disableFuture:ot.bool,disableHighlightToday:ot.bool,disableOpenPicker:ot.bool,disablePast:ot.bool,displayWeekNumber:ot.bool,enableAccessibleFieldDOMStructure:ot.any,fixedWeekNumber:ot.number,format:ot.string,formatDensity:ot.oneOf(["dense","spacious"]),inputRef:GL,label:ot.node,loading:ot.bool,localeText:ot.object,maxDate:ot.object,minDate:ot.object,monthsPerRow:ot.oneOf([3,4]),name:ot.string,onAccept:ot.func,onChange:ot.func,onClose:ot.func,onError:ot.func,onMonthChange:ot.func,onOpen:ot.func,onSelectedSectionsChange:ot.func,onViewChange:ot.func,onYearChange:ot.func,open:ot.bool,openTo:ot.oneOf(["day","month","year"]),orientation:ot.oneOf(["landscape","portrait"]),readOnly:ot.bool,reduceAnimations:ot.bool,referenceDate:ot.object,renderLoading:ot.func,selectedSections:ot.oneOfType([ot.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),ot.number]),shouldDisableDate:ot.func,shouldDisableMonth:ot.func,shouldDisableYear:ot.func,showDaysOutsideCurrentMonth:ot.bool,slotProps:ot.object,slots:ot.object,sx:ot.oneOfType([ot.arrayOf(ot.oneOfType([ot.func,ot.object,ot.bool])),ot.func,ot.object]),timezone:ot.string,value:ot.object,view:ot.oneOf(["day","month","year"]),viewRenderers:ot.shape({day:ot.func,month:ot.func,year:ot.func}),views:ot.arrayOf(ot.oneOf(["day","month","year"]).isRequired),yearsOrder:ot.oneOf(["asc","desc"]),yearsPerRow:ot.oneOf([3,4])};function ffe(e){return cn("MuiDialogContent",e)}tn("MuiDialogContent",["root","dividers"]);const pfe=tn("MuiDialogTitle",["root"]),hfe=e=>{const{classes:t,dividers:n}=e;return sn({root:["root",n&&"dividers"]},ffe,t)},mfe=Qe("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Wn(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${pfe.root} + &`]:{paddingTop:0}}}]}))),gfe=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiDialogContent"}),{className:r,dividers:o=!1,...a}=n,s={...n,dividers:o},l=hfe(s);return m.jsx(mfe,{className:Lt(l.root,r),ownerState:s,ref:t,...a})});function yfe(e){return cn("MuiDialog",e)}const Qm=tn("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),vfe=C.createContext({}),bfe=Qe(_z,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),xfe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${St(n)}`],paper:["paper",`paperScroll${St(n)}`,`paperWidth${St(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return sn(s,yfe,t)},Sfe=Qe(Bz,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),wfe=Qe("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${St(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),Cfe=Qe(Cd,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${St(n.scroll)}`],t[`paperWidth${St(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Wn(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Qm.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Qm.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Qm.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),kfe=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiDialog"}),r=Sd(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:f,children:u,className:h,disableEscapeKeyDown:y=!1,fullScreen:v=!1,fullWidth:S=!1,maxWidth:x="sm",onClick:w,onClose:b,open:k,PaperComponent:E=Cd,PaperProps:O={},scroll:$="paper",slots:A={},slotProps:I={},TransitionComponent:j=md,transitionDuration:_=o,TransitionProps:W,...U}=n,T={...n,disableEscapeKeyDown:y,fullScreen:v,fullWidth:S,maxWidth:x,scroll:$},L=xfe(T),F=C.useRef(),H=Se=>{F.current=Se.target===Se.currentTarget},D=Se=>{w&&w(Se),F.current&&(F.current=null,b&&b(Se,"backdropClick"))},K=Os(s),Q=C.useMemo(()=>({titleId:K}),[K]),ee={transition:j,...A},X={transition:W,paper:O,backdrop:f,...I},te={slots:ee,slotProps:X},[ae,ue]=lr("root",{elementType:Sfe,shouldForwardComponentProp:!0,externalForwardedProps:te,ownerState:T,className:Lt(L.root,h),ref:t}),[he,ie]=lr("backdrop",{elementType:bfe,shouldForwardComponentProp:!0,externalForwardedProps:te,ownerState:T}),[le,se]=lr("paper",{elementType:Cfe,shouldForwardComponentProp:!0,externalForwardedProps:te,ownerState:T,className:Lt(L.paper,O.className)}),[pe,ne]=lr("container",{elementType:wfe,externalForwardedProps:te,ownerState:T,className:L.container}),[me,xe]=lr("transition",{elementType:md,externalForwardedProps:te,ownerState:T,additionalProps:{appear:!0,in:k,timeout:_,role:"presentation"}});return m.jsx(ae,{closeAfterTransition:!0,slots:{backdrop:he},slotProps:{backdrop:{transitionDuration:_,as:c,...ie}},disableEscapeKeyDown:y,onClose:b,open:k,onClick:D,...ue,...U,children:m.jsx(me,{...xe,children:m.jsx(pe,{onMouseDown:H,...ne,children:m.jsx(le,{as:E,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":K,"aria-modal":l,...se,children:m.jsx(vfe.Provider,{value:Q,children:u})})})})})}),Efe=Qe(kfe)({[`& .${Qm.container}`]:{outline:0},[`& .${Qm.paper}`]:{outline:0,minWidth:K0}}),Tfe=Qe(gfe)({"&:first-of-type":{padding:0}});function Mfe(e){const{children:t,onDismiss:n,open:r,slots:o,slotProps:a}=e,s=o?.dialog??Efe,l=o?.mobileTransition??md;return m.jsx(s,Ne({open:r,onClose:n},a?.dialog,{TransitionComponent:l,TransitionProps:a?.mobileTransition,PaperComponent:o?.mobilePaper,PaperProps:a?.mobilePaper,children:m.jsx(Tfe,{children:t})}))}const Rfe=["props","getOpenDialogAriaText"],Ofe=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=Bn(e,Rfe);const{slots:o,slotProps:a,className:s,sx:l,format:c,formatDensity:f,enableAccessibleFieldDOMStructure:u,selectedSections:h,onSelectedSectionsChange:y,timezone:v,name:S,label:x,inputRef:w,readOnly:b,disabled:k,localeText:E}=t,O=C.useRef(null),$=Os(),A=a?.toolbar?.hidden??!1,{open:I,actions:j,layoutProps:_,renderCurrentView:W,fieldProps:U,contextValue:T}=Rz(Ne({},r,{props:t,fieldRef:O,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),L=o.field,F=xr({elementType:L,externalSlotProps:a?.field,additionalProps:Ne({},U,A&&{id:$},!(k||b)&&{onClick:j.onOpen,onKeyDown:Aie(j.onOpen)},{readOnly:b??!0,disabled:k,className:s,sx:l,format:c,formatDensity:f,enableAccessibleFieldDOMStructure:u,selectedSections:h,onSelectedSectionsChange:y,timezone:v,label:x,name:S},w?{inputRef:w}:{}),ownerState:t});F.inputProps=Ne({},F.inputProps,{"aria-label":n(U.value)});const H=Ne({textField:o.textField},F.slots),D=o.layout??jz;let K=$;A&&(x?K=`${$}-label`:K=void 0);const Q=Ne({},a,{toolbar:Ne({},a?.toolbar,{titleId:$}),mobilePaper:Ne({"aria-labelledby":K},a?.mobilePaper)}),ee=mr(O,F.unstableFieldRef);return{renderPicker:()=>m.jsxs(Nz,{contextValue:T,localeText:E,children:[m.jsx(L,Ne({},F,{slots:H,slotProps:Q,unstableFieldRef:ee})),m.jsx(Mfe,Ne({},j,{open:I,slots:o,slotProps:Q,children:m.jsx(D,Ne({},_,Q?.layout,{slots:o,slotProps:Q,children:W()}))}))]})}},l5=C.forwardRef(function(e,t){const n=Xl(),r=Yr(),o=sz(e,"MuiMobileDatePicker"),a=Ne({day:np,month:np,year:np},o.viewRenderers),s=Ne({},o,{viewRenderers:a,format:eE(r,o,!1),slots:Ne({field:t5},o.slots),slotProps:Ne({},o.slotProps,{field:c=>Ne({},V0(o.slotProps?.field,c),cz(o),{ref:t}),toolbar:Ne({hidden:!1},o.slotProps?.toolbar)})}),{renderPicker:l}=Ofe({props:s,valueManager:ll,valueType:"date",getOpenDialogAriaText:az({utils:r,formatKey:"fullDate",contextTranslation:n.openDatePickerDialogue,propsTranslation:s.localeText?.openDatePickerDialogue}),validator:Kg});return l()});l5.propTypes={autoFocus:ot.bool,className:ot.string,closeOnSelect:ot.bool,dayOfWeekFormatter:ot.func,defaultValue:ot.object,disabled:ot.bool,disableFuture:ot.bool,disableHighlightToday:ot.bool,disableOpenPicker:ot.bool,disablePast:ot.bool,displayWeekNumber:ot.bool,enableAccessibleFieldDOMStructure:ot.any,fixedWeekNumber:ot.number,format:ot.string,formatDensity:ot.oneOf(["dense","spacious"]),inputRef:GL,label:ot.node,loading:ot.bool,localeText:ot.object,maxDate:ot.object,minDate:ot.object,monthsPerRow:ot.oneOf([3,4]),name:ot.string,onAccept:ot.func,onChange:ot.func,onClose:ot.func,onError:ot.func,onMonthChange:ot.func,onOpen:ot.func,onSelectedSectionsChange:ot.func,onViewChange:ot.func,onYearChange:ot.func,open:ot.bool,openTo:ot.oneOf(["day","month","year"]),orientation:ot.oneOf(["landscape","portrait"]),readOnly:ot.bool,reduceAnimations:ot.bool,referenceDate:ot.object,renderLoading:ot.func,selectedSections:ot.oneOfType([ot.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),ot.number]),shouldDisableDate:ot.func,shouldDisableMonth:ot.func,shouldDisableYear:ot.func,showDaysOutsideCurrentMonth:ot.bool,slotProps:ot.object,slots:ot.object,sx:ot.oneOfType([ot.arrayOf(ot.oneOfType([ot.func,ot.object,ot.bool])),ot.func,ot.object]),timezone:ot.string,value:ot.object,view:ot.oneOf(["day","month","year"]),viewRenderers:ot.shape({day:ot.func,month:ot.func,year:ot.func}),views:ot.arrayOf(ot.oneOf(["day","month","year"]).isRequired),yearsOrder:ot.oneOf(["asc","desc"]),yearsPerRow:ot.oneOf([3,4])};const $fe=["desktopModeMediaQuery"],jb=C.forwardRef(function(e,t){const n=qr({props:e,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=Die}=n,o=Bn(n,$fe);return YL(r,{defaultMatches:!0})?m.jsx(s5,Ne({ref:t},o)):m.jsx(l5,Ne({ref:t},o))});function c5(e,t){if(!t)return;const n=t.trim();if(!n)return;const r=e??"string";if(r==="date"||r==="timestamp"||r==="timestamptz")return n.replace(/^@/,"");if(r.startsWith("filter<")){const o=n.replace(/^f/,""),a=o.match(/^'([^'\\]*)'$/)??o.match(/^"([^"\\]*)"$/);return a?a[1]:o}return r==="string"?Pfe(n):n}function Pfe(e){const t=e[0];return e.length>=2&&(t==="'"||t==='"')&&e[e.length-1]===t?e.slice(1,-1).replace(/\\(["'\\ntr])/g,(n,r)=>r==="n"?`
442
+ `:r==="t"?" ":r==="r"?"\r":r):e}$r.extend(Yk);const _A=14,Afe=42;function Dfe(e){const t=(e.annotations??[]).filter(r=>r.trim().startsWith("#("));if(t.length===0)return;const n=[];for(const r of t){const o=r.trim(),a=o.match(/description="([^"]*)"/);if(a){n.push(a[1]);continue}const s=o.replace(/^#\(/,"").replace(/\)\s*$/,"").trim();s&&n.push(s)}return n.length>0?n.join(`
443
+ `):void 0}function jfe({given:e,value:t,onChange:n,options:r,optionsLoading:o,optionsFailed:a}){const s=e.label??e.name??"",l=e.type??"string",c=Dfe(e),f=c5(l,e.default),u=f!==void 0?`Default: ${f===""?"(empty)":f}`:void 0,h=c||u?m.jsxs(m.Fragment,{children:[c,c&&u?m.jsx("br",{}):null,u]}):void 0,y=l==="string"||Wf(l)==="string",v=!Vu(l)||typeof t!="string"||bne(t),S=H=>m.jsx(wa,{label:s,value:String(t),error:!0,inputProps:{readOnly:!0},helperText:m.jsxs(m.Fragment,{children:[`Not a ${H}. Clear it to pick one.`,h?m.jsx("br",{}):null,h]}),slotProps:{input:{endAdornment:m.jsx(NS,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"}),x=Vu(l),w=e.control==="multiselect"&&x,b=Vu(l),k=e.control==="select"||e.control==="multiselect",E=k?b?typeof t=="string"?vne(t):[]:typeof t=="string"&&t!==""?[t]:[]:[];if(k&&y&&v&&!(!w&&E.length>1)){const H=D=>{const K=b?Gk(D):void 0;if(D.length===0||K===""){n(null);return}n(b?K:D[0])};return m.jsx(_W,{multiple:w,disableCloseOnSelect:w,freeSolo:!0,forcePopupIcon:!0,autoSelect:!0,options:r??[],loading:o,noOptionsText:a?"Options unavailable":"No matching values",value:w?E:E[0]??null,onChange:(D,K)=>H(K===null?[]:Array.isArray(K)?K:[K]),renderInput:D=>m.jsx(wa,{...D,label:s,size:"small",placeholder:E.length!==0?void 0:t===""?"All":f??"All",error:a,helperText:a?m.jsxs(m.Fragment,{children:["Could not load the options for this control. Type a value to filter anyway.",h?m.jsx("br",{}):null,h]}):h,slotProps:{input:{...D.InputProps,endAdornment:m.jsxs(m.Fragment,{children:[o&&m.jsx(Ag,{size:16}),D.InputProps.endAdornment]})}}}),fullWidth:!0})}const O=Vu(l)&&Wf(l)==="number",{rangeMin:$,rangeMax:A}=e,I=O&&typeof t=="string"?Sne(t):void 0,j=O&&typeof t=="string"?Cne(t):void 0;if((O||l==="number")&&$!==void 0&&A!==void 0&&(!O||t===void 0||t===null||t===""||I!==void 0||j!==void 0)){const H=j??(I!==void 0?[I,A]:void 0),D=O?H?.[0]:typeof t=="number"?t:void 0;if(D===void 0&&t!==void 0&&t!==null&&t!=="")return S("number");const K=D??$,Q=H??[$,A],ee=Q[1]>=A?`≥ ${Q[0]}`:`${Q[0]} to ${Q[1]}`,X=O&&t==="",te=D!==void 0||X;return m.jsxs(gw,{fullWidth:!0,children:[m.jsxs(_t,{sx:{height:Afe,px:`${_A}px`,display:"flex",flexDirection:"column",justifyContent:"center"},children:[m.jsxs(cr,{direction:"row",alignItems:"center",spacing:1,children:[m.jsx(It,{variant:"body2",color:"text.secondary",noWrap:!0,children:s}),m.jsx(It,{variant:"body2",sx:{fontWeight:600},children:te?X?"Any":O?ee:String(K):O?"Any":f??"Unset"}),te&&m.jsx(Jr,{size:"small","aria-label":"clear value",onClick:()=>n(null),sx:{p:0},children:m.jsx(hg,{fontSize:"small"})})]}),m.jsx(LY,{size:"small",min:$,max:A,value:O?Q:K,disableSwap:O,valueLabelDisplay:"auto","aria-label":O?void 0:s,getAriaLabel:O?ae=>ae===0?`${s} from`:`${s} to`:void 0,sx:{py:0,mt:.5},onChange:(ae,ue)=>{if(O){const[he,ie]=Array.isArray(ue)?[ue[0],ue[1]]:[ue,ue];if(he<=$&&ie>=A){n(null);return}n(ie>=A?xne(he):wne(he,ie));return}n(Array.isArray(ue)?ue[0]:ue)}})]}),h&&m.jsx(yw,{sx:{mx:`${_A}px`},children:h})]})}const _=Vu(l)?Wf(l):void 0,W=_==="date"||_==="timestamp"||_==="timestamptz",U=typeof t=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(t),T=t==null||U;if(W&&!U){const H=Ife(t);if(H!==void 0)return m.jsx(Lfe,{label:s,state:H,onChange:n,helperNode:h,defaultDisplay:f})}if(W&&T){const H=U?$r.utc(t):null;return m.jsx(Rb,{dateAdapter:Gw,children:m.jsx(jb,{label:s,value:H?.isValid()?H:null,onChange:D=>n(D?D.format("YYYY-MM-DD"):null),slotProps:{textField:{fullWidth:!0,size:"small",helperText:h},field:{clearable:!0,onClear:()=>n(null)}}})})}if(Wf(l)==="boolean"){const H=typeof t=="string"?yne(t):void 0;if(t==null||t===""||H!==void 0)return m.jsx(Nfe,{label:s,picked:H,emptyOverride:t==="",onChange:n,helperNode:h,defaultDisplay:f})}if(l==="boolean"){const H=typeof t=="boolean";if(!H&&t!==void 0&&t!==null)return S("true or false");const D=e.default?.trim()==="true";return m.jsxs(gw,{children:[m.jsxs(cr,{direction:"row",alignItems:"center",children:[m.jsx(pk,{control:m.jsx(R9,{checked:H?t:D,onChange:K=>n(K.target.checked)}),label:s}),H&&m.jsx(Jr,{size:"small","aria-label":"clear value",onClick:()=>n(null),edge:"end",children:m.jsx(hg,{fontSize:"small"})})]}),h&&m.jsx(yw,{children:h})]})}if(l==="number"){const H=typeof t=="number"?t:"",D=t!=null;return D&&t!==""&&typeof t!="number"?S("number"):m.jsx(wa,{label:s,type:"number",value:H,onChange:K=>{const Q=K.target.value;n(Q===""?null:Number(Q))},placeholder:f,helperText:h,slotProps:{input:{endAdornment:D&&m.jsx(NS,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"})}if(l==="date"||l==="timestamp"||l==="timestamptz"){const H=t instanceof Date?t:typeof t=="string"?(K=>K instanceof Date?K:null)(BL(l,t)):null,D=H?$r.utc(H):null;return t!=null&&t!==""&&H===null?S("date"):m.jsx(Rb,{dateAdapter:Gw,children:m.jsx(jb,{label:s,value:D,onChange:K=>n(K?Dne(K,H??void 0):null),slotProps:{textField:{fullWidth:!0,size:"small",helperText:h},field:{clearable:!0,onClear:()=>n(null)}}})})}const L=typeof t=="string"?t:"",F=t!=null;return m.jsx(wa,{label:s,value:L,onChange:H=>n(H.target.value),placeholder:F?void 0:f??(l.startsWith("filter<")?l:void 0),helperText:h,slotProps:{input:{endAdornment:F&&m.jsx(NS,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"})}function NS({onClear:e}){return m.jsx(Xq,{position:"end",children:m.jsx(Jr,{size:"small","aria-label":"clear value",onClick:e,edge:"end",children:m.jsx(hg,{fontSize:"small"})})})}const Mv="__any__";function Nfe({label:e,picked:t,emptyOverride:n,onChange:r,helperNode:o,defaultDisplay:a}){const s=t??(n?Mv:"");return m.jsx(_t,{"data-testid":"boolean-filter",children:m.jsxs(wa,{select:!0,label:e,value:s,size:"small",fullWidth:!0,helperText:o,slotProps:{select:{displayEmpty:!0,renderValue:l=>l==="true"||l==="false"?l:l===Mv?"Any":a||"Any"},input:{endAdornment:s!==""?m.jsx(Jr,{size:"small","aria-label":"clear value",onClick:()=>r(null),sx:{mr:2},children:m.jsx(hg,{fontSize:"small"})}):void 0}},onChange:l=>{l.target.value!==Mv&&r(l.target.value)},children:[n&&m.jsx(ea,{value:Mv,children:"Any"}),m.jsx(ea,{value:"true",children:"true"}),m.jsx(ea,{value:"false",children:"false"})]})})}function Ife(e){if(e==null)return{kind:"unset"};if(typeof e!="string")return;if(e==="")return{kind:"any"};const t=Ene(e);if(t!==void 0)return{kind:"preset",key:t};const n=Rne(e);if(n!==void 0)return{kind:"days",...n}}const Rv="__custom__",IS="__any__";function Lfe({label:e,state:t,onChange:n,helperNode:r,defaultDisplay:o}){const a=t.kind==="days"?`days:${t.firstDay}/${t.lastDay}`:t.kind==="preset"?`preset:${t.key}`:t.kind,[s,l]=C.useState(t.kind==="days"),[c,f]=C.useState(t.kind==="days"?{from:t.firstDay,to:t.lastDay}:{});C.useEffect(()=>{t.kind==="days"?(l(!0),f({from:t.firstDay,to:t.lastDay})):t.kind!=="unset"&&l(!1)},[a]);const u=t.kind!=="unset",h=s?Rv:t.kind==="preset"?t.key:t.kind==="any"?IS:"",y=S=>{f(S),S.from&&S.to&&!$r.utc(S.to).isBefore($r.utc(S.from))&&n(Mne(S.from,S.to))},v=S=>{const x=S?$r.utc(S):null;return x?.isValid()?x:null};return m.jsxs(cr,{direction:"row",spacing:1,"data-testid":"time-range",children:[m.jsxs(wa,{select:!0,label:e,value:h,size:"small",fullWidth:!0,helperText:r,slotProps:{select:{displayEmpty:!0,renderValue:S=>{if(S===Rv)return"Custom range";if(S===IS)return"Any time";const x=Eb.find(w=>w.key===S);return x?x.label:o??"Any time"}},input:{endAdornment:u?m.jsx(Jr,{size:"small","aria-label":"clear value",onClick:()=>{l(!1),f({}),n(null)},sx:{mr:2},children:m.jsx(hg,{fontSize:"small"})}):void 0}},onChange:S=>{const x=S.target.value;if(x===Rv){l(!0);return}l(!1);const w=kne(x);w!==void 0&&n(w)},children:[t.kind==="any"&&m.jsx(ea,{value:IS,children:"Any time"}),Eb.map(S=>m.jsx(ea,{value:S.key,children:S.label},S.key)),m.jsx(ea,{value:Rv,children:"Custom range"})]}),s&&m.jsxs(Rb,{dateAdapter:Gw,children:[m.jsx(jb,{label:"From",value:v(c.from),onChange:S=>y({...c,from:S?S.format("YYYY-MM-DD"):void 0}),slotProps:{textField:{size:"small"}}}),m.jsx(jb,{label:"To",value:v(c.to),minDate:v(c.from)??void 0,onChange:S=>y({...c,to:S?S.format("YYYY-MM-DD"):void 0}),slotProps:{textField:{size:"small"}}})]})]})}function EE({givens:e,values:t,onChange:n,onReset:r,layout:o="panel",options:a,optionsLoading:s,optionsFailed:l,apply:c,title:f}){const{theme:u}=Ts();if(e.length===0)return null;const h=Array.from(t.values()).some(S=>S!==null),y=e.map(S=>m.jsx(_t,{sx:o==="bar"?{minWidth:200,flex:"1 1 200px",maxWidth:320}:void 0,children:m.jsx(jfe,{given:S,value:S.name?t.get(S.name):void 0,onChange:x=>S.name&&n(S.name,x),options:S.name?a?.get(S.name):void 0,optionsLoading:s,optionsFailed:S.name?l?.has(S.name):void 0})},S.name)),v=m.jsxs(cr,{direction:"row",alignItems:"center",spacing:1,children:[c&&m.jsx(eo,{variant:"contained",size:"small",disableElevation:!0,onClick:c.onApply,disabled:!c.pending,sx:{textTransform:"none"},children:"Apply"}),h&&m.jsx(eo,{variant:"text",size:"small",onClick:r,sx:{textTransform:"none"},children:"Reset"})]});return o==="bar"?m.jsx(Wa,{elevation:0,sx:{p:2,border:u.cardBorder,borderRadius:1,backgroundColor:"transparent"},children:m.jsxs(cr,{direction:"row",alignItems:"flex-start",spacing:2,useFlexGap:!0,sx:{flexWrap:"wrap"},children:[y,m.jsx(_t,{sx:{flex:"0 0 auto",ml:"auto",pt:.5},children:v})]})}):m.jsxs(Wa,{elevation:0,sx:{p:3,backgroundColor:"transparent",border:"none",boxShadow:"none"},children:[m.jsxs(cr,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{mb:2},children:[m.jsx(It,{variant:"subtitle2",sx:{fontWeight:600,color:"text.primary"},children:f??"Filters"}),v]}),m.jsx(_t,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(220px, 1fr))",alignItems:"start",columnGap:3,rowGap:2.5},children:y})]})}const zfe=/^(https?|mailto|tel):/i,Ffe=/^[a-z][a-z0-9+.-]*:/i;function _fe({href:e,title:t,children:n,context:r}){const o=!!e&&Ffe.test(e),a=!!e&&!o&&!e.startsWith("/")&&!e.startsWith("#");if(!e||!a||!r){const h=o&&!zfe.test(e??"");return m.jsx("a",{href:h?void 0:e,title:t,...o?{target:"_blank",rel:"noopener noreferrer"}:{},children:n})}const s=r.sourcePath&&r.sourcePath.includes("/")?r.sourcePath.slice(0,r.sourcePath.lastIndexOf("/")+1):"",l=new URL(e,`https://malloy.invalid/${s}`),c=l.pathname.slice(1)+l.search+l.hash,f=`/${r.environmentName}/${r.packageName}/${c}`,{onNavigate:u}=r;return m.jsx("a",{href:f,title:t,onClick:u?h=>{h.preventDefault(),u(f,h)}:void 0,children:n})}const Bfe={document:{"& h1, & h2, & h3, & h4, & h5, & h6":{fontWeight:600,color:"text.primary",mb:1,mt:2},"& h1":{fontSize:"28px"},"& h2":{fontSize:"24px"},"& h3":{fontSize:"20px"},"& p, & ul, & ol":{color:"text.primary",lineHeight:1.7,mb:1,fontSize:"16px"},"& li":{mb:.5}},caption:{color:"text.secondary",typography:"body2","& > :first-of-type":{mt:0},"& > :last-child":{mb:0},"& h1, & h2, & h3, & h4, & h5, & h6":{fontSize:"inherit",fontWeight:600,m:"0.5em 0 0.25em"},"& p":{m:"0.5em 0"},"& ul, & ol":{m:"0.5em 0",pl:3},"& code":{fontFamily:"monospace",fontSize:"0.9em"}}};function rp({children:e,variant:t="caption",links:n,sx:r}){return m.jsx(_t,{sx:[Bfe[t],...Array.isArray(r)?r:[r]],children:m.jsx(hJ,{options:{overrides:{a:{component:_fe,props:{context:n}}}},children:e})})}const Ufe=new Set(["bar","line","chart","scatter_chart"]),Vfe=new Set(["table","dashboard","shape_map","segment_map","list","list_detail","big_value","cell","link","image"]);function Vve(e,t){return t==="fill"?"container":t==="fixed"||!e?"content":Ufe.has(e)?"container":"content"}function Hve(e,t){return t==="fixed"?!0:t==="fill"?!1:e!==void 0&&Vfe.has(e)}function Wve(e){return e==="dashboard"?3:2}function Hfe(e,t){let n=e.firstElementChild;for(let r=1;r<t&&n;r++)n=n.firstElementChild;return n}function qve(e,t){const n=Hfe(e,t);return n&&(n.scrollHeight||n.offsetHeight)||0}const Wfe=400,qfe=700,Yfe=600,Gfe=800,Kfe=400,BA=2e3;function Qfe(e){return e===void 0?BA:Math.min(e,BA)}function UA({sizing:e,contentHeight:t,maxHeight:n,fillHeight:r}){if(e==="container")return n??Kfe;if(t===void 0||t<=0)return Qfe(n);const o=n===void 0?t:Math.min(n,t);return r===void 0?o:Math.max(o,r)}function TE(e,t){if(e[t])return e;const n=e.default;return n?.[t]?n:e}const Xfe=e=>TE(e,"MalloyTranslator"),Zfe=e=>TE(e,"parseAnnotation"),Jfe=e=>TE(e,"ASTQuery");async function Yve(){return Xfe(await $o(()=>import("./index-CeLTZAFW.js").then(e=>e.i),__vite__mapDeps([0,1,2])))}async function Gve(){return Zfe(await $o(()=>import("./index-DoF8ihra.js").then(e=>e.i),__vite__mapDeps([3,1])))}async function epe(){return Jfe(await $o(()=>import("./index-Bg-M8sZz.js").then(e=>e.i),__vite__mapDeps([4,2,1])))}function tpe(e){return e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}function npe(e,t){if(e==null||e==="")return;const n=r=>`'${tpe(r)}'`;switch(t===void 0?rpe(e):t.startsWith("filter<")?"filter":t){case"filter":return`f${n(String(e))}`;case"string":return n(String(e));case"number":{const r=typeof e=="number"?e:Number(e);return Number.isFinite(r)?String(r):void 0}case"boolean":return e===!0||e==="true"?"true":"false";case"date":{const r=VA(e);return r&&`@${r}`}case"timestamp":{const r=VA(e);if(!r)return;const o=e instanceof Date?e.toISOString().slice(11,19):/[T ](\d{2}:\d{2}(?::\d{2})?)/.exec(String(e))?.[1]??"00:00:00";return`@${r} ${o}`}default:return}}function rpe(e){if(typeof e=="string")return"string";if(typeof e=="number")return"number";if(typeof e=="boolean")return"boolean";if(e instanceof Date&&!Number.isNaN(e.getTime()))return e.toISOString().slice(11,19)==="00:00:00"?"date":"timestamp"}function VA(e){return e instanceof Date?Number.isNaN(e.getTime())?void 0:e.toISOString().slice(0,10):/^(\d{4}-\d{2}-\d{2})/.exec(String(e))?.[1]}const u5=er(m.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.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"}));function op({sx:e,...t}){const{theme:n}=Ts();return m.jsx(Jr,{size:"small",...t,sx:[{width:32,height:32,bgcolor:n.tile,border:n.border,color:n.tileTitle,"&:hover":{bgcolor:n.tile,color:n.drillLink},"& .MuiSvgIcon-root":{fontSize:18}},...Array.isArray(e)?e:[e]]})}const ope=new Set(["warn","error"]);function ape(e){if(!e?.length)return;const t=[];let n=!1;for(const r of e)!r.message||!ope.has(r.severity??"")||(r.severity==="error"&&(n=!0),t.includes(r.message)||t.push(r.message));if(t.length)return{severity:n?"error":"warn",title:t.join(`
444
+ `)}}const ipe=C.lazy(()=>$o(()=>import("./RenderedResult-CBLHr32C.es-DRr9Gmsz.js"),[]).then(e=>e.c));function ME({result:e,maxHeight:t,maxResultSize:n=0,renderLogs:r,drill:o,fill:a=!1}){const s=C.useRef(null),[l,c]=C.useState(void 0),[f,u]=C.useState(void 0),[h,y]=C.useState(!1),[v,S]=C.useState(void 0),x=ape(r);if(C.useEffect(()=>{const E=s.current;if(!a||!E)return;const O=new ResizeObserver(([$])=>S(Math.round($.contentRect.height)));return O.observe(E),()=>O.disconnect()},[a,!!e,h]),!e)return null;if(n>0&&e.length>n&&!h)return m.jsxs(_t,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:2,p:4,backgroundColor:"#fafafa",border:"1px solid",borderColor:"#e0e0e0",borderRadius:1},children:[m.jsx(DJ,{sx:{fontSize:48,color:"#757575"}}),m.jsx(It,{variant:"h6",color:"text.secondary",align:"center",children:"Processing large results may cause browser performance issues. Proceed?"}),m.jsx(eo,{variant:"contained",color:"primary",onClick:()=>y(!0),children:"Proceed"})]});const w=m.jsx(ha,{text:"Loading...",centered:!0,size:32}),b=UA({sizing:l,contentHeight:f,maxHeight:t,fillHeight:a?v:void 0}),k=m.jsx(C.Suspense,{fallback:w,children:m.jsx(ipe,{result:e,height:b,onSizeChange:u,onSizing:c,drill:o,fill:a})});return m.jsxs(_t,{ref:s,sx:{position:"relative",height:"auto",border:"0px",borderRadius:0,overflow:"hidden",...a&&{flex:`1 1 ${UA({sizing:l,contentHeight:f,maxHeight:t})}px`,minHeight:0}},children:[a?m.jsx(_t,{sx:{position:"absolute",inset:0},children:k}):k,x&&m.jsx(_t,{sx:{position:"absolute",top:4,right:4,zIndex:1},children:m.jsx(xi,{title:x.title,slotProps:{tooltip:{sx:{whiteSpace:"pre-line"}}},children:m.jsx(op,{"aria-label":"Render tag warnings",children:m.jsx(u5,{fontSize:"small",color:x.severity==="error"?"error":"warning"})})})})]})}function RE({state:e,context:t,loadingText:n="Running…",maxHeight:r,maxResultSize:o,drill:a,fill:s,transform:l}){const{data:c,isSuccess:f,isError:u,error:h}=e,y=c?.data.result,v=C.useMemo(()=>y!==void 0&&l?l(y):y,[y,l]);return u?m.jsx(_t,{sx:{p:2},children:m.jsx(Ta,{context:t,error:h})}):f?m.jsx(ME,{result:v,maxHeight:r,maxResultSize:o,renderLogs:c.data.renderLogs,drill:a,fill:s}):m.jsx(ha,{text:n})}const HA=()=>typeof performance<"u"?performance.now():Date.now(),d5=20,spe={radius:"8px",padding:`${d5}px`};function Kve(e,t=spe){return{"--malloy-render--font-family":e.font.family,"--malloy-render--table-font-size":`${e.font.size}px`,"--malloy-render--table-header-color":e.tableHeader,"--malloy-render--table-body-color":e.tableBody,"--malloy-render--table-border":e.border,"--malloy-render--table-pinned-border":e.pinnedBorder,"--malloy-render--tile-background":e.tile,"--publisher-dashboard-root":e.dashboardRoot,"--malloy-render--label-color":e.tileTitle,"--malloy-render--value-color":e.valueColor,"--publisher-drill-link":e.drillLink,"--publisher-dashboard-card-radius":t.radius,"--publisher-dashboard-card-padding":t.padding,"--publisher-dashboard-card-border":e.cardBorder}}function f5({borderless:e=!1,chrome:t="card",sx:n,children:r}){const{theme:o}=Ts(),a=e||t==="none";return m.jsx(Wa,{elevation:0,"data-chrome":t,sx:[{border:a?"none":o.cardBorder,borderRadius:a?0:1,background:a?"none":o.tile,overflow:"hidden",display:"flex",flexDirection:"column",minWidth:0,minHeight:t==="none"?0:120,p:t==="none"?0:e?"12px 0":`${d5}px`},...Array.isArray(n)?n:[n]],children:r})}function lpe({title:e,subtitle:t,tooltip:n,action:r,quiet:o=!1}){const{theme:a}=Ts();return m.jsxs(_t,{sx:{pb:o?.5:1.5,display:"flex",alignItems:"flex-start",gap:1},children:[m.jsxs(_t,{sx:{minWidth:0,flex:1},children:[m.jsx(It,{variant:o?"caption":"subtitle2",sx:{fontWeight:o?400:500,display:o?"block":void 0,opacity:o?.8:void 0,color:a.tileTitle,fontFamily:a.font.family},title:n,children:e}),t!==void 0&&m.jsx(It,{variant:"caption",sx:{display:"block",color:a.tileTitle,fontFamily:a.font.family,opacity:.8},children:t})]}),r]})}const cpe=er(m.jsx("path",{d:"m16.95 6-3.57 4.55 1.43 1.43c1.03-1.31 4.98-6.37 4.98-6.37C20.3 4.95 19.83 4 19 4H6.83l2 2zM2.81 2.81 1.39 4.22 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-2.17l5.78 5.78 1.41-1.41z"})),upe=3;function dpe(e,t){if(e===void 0)return[];const n=new Set(e);return t.flatMap(r=>r.name&&!n.has(r.name)?[r.label??r.name]:[])}function fpe(e){return e.length<2?e.join(""):`${e.slice(0,-1).join(", ")} or ${e[e.length-1]}`}function ppe({ignored:e}){const{theme:t}=Ts();if(e.length===0)return null;const n=e.length>upe?`Doesn't respond to ${e.length} filters`:`Doesn't respond to ${e.join(", ")}`;return m.jsxs(_t,{"data-testid":"tile-filter-tag",title:`This tile's query never reads ${fpe(e)}, so changing ${e.length===1?"it":"them"} won't change this tile`,sx:{display:"inline-flex",alignItems:"center",gap:.5,maxWidth:"100%",mb:1,alignSelf:"flex-start",px:.75,py:.125,border:1,borderColor:"warning.main",borderRadius:1,fontSize:11,lineHeight:1.6,color:"warning.main",fontFamily:t.font.family},children:[m.jsx(cpe,{sx:{fontSize:12}}),m.jsx(_t,{component:"span",sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n})]})}const hpe=er(m.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}));async function mpe(e){const t=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(e));return Array.from(new Uint8Array(t),n=>n.toString(16).padStart(2,"0")).join("")}function gpe(e){return e.find(t=>t.authoritative)??e.find(t=>t.writeable)}function ype({authoritative:e,mutable:t,versionId:n,canStore:r,readFailed:o}){const a=e?"host":t?"package":"browser",s=n!==void 0&&a==="package";return{savesTo:a,pinnedPackageSave:s,writer:o?void 0:e?r?"storage":void 0:s?void 0:t?"package":r?"storage":void 0}}async function Qve(e,t){return e??(t===void 0?void 0:await mpe(t))}function Xve({authoritative:e,mutable:t,pinnedPackageSave:n,workspace:r,readFailure:o,versionId:a}){return o!==void 0?`The saved copy could not be read, so Save is off: ${o}`:e&&r?r.writeable?r.description:`${r.description}: you cannot save into it.`:n?`Reading version ${a}: a version is a fixed point in history, so Save is off.`:t?"Save writes the file into the package.":r?`${r.description}: this server does not take writes.`:"This server does not take writes."}function Zve(e){return e instanceof Error?e.message:String(e)}function vpe(e){const t=e.response?.data;return t?.message?t.message:e instanceof Error?e.message:String(e)}async function Jve({apiClients:e,queryClient:t,environmentName:n,packageName:r,modelPath:o,source:a,expectedHash:s,invalidateOnError:l,invalidate:c,afterWrite:f}){let u;try{u=await e.models.updateModelSource(n,r,o,{source:a,expectedHash:s})}catch(y){for(const v of l)t.invalidateQueries({queryKey:v});throw new Error(vpe(y))}const h=u.data.contentHash;await f?.(h);for(const{queryKey:y,refetchType:v,wait:S}of c){const x=t.invalidateQueries({queryKey:y,...v?{refetchType:v}:{}});S&&await x}return h}function ebe(e,t){return t===void 0||!/\.(saved|save_undone)$/.test(e.type)||e.where==="package"?e:{...e,workspace:t}}function tbe(e){if(!("resourceUri"in e))return{environmentName:e.environmentName,packageName:e.packageName,versionId:void 0,namesBoth:!0};let t;try{t=to(e.resourceUri)}catch{t=void 0}return{environmentName:t?.environmentName??"",packageName:t?.packageName??"",versionId:t?.versionId,namesBoth:!!t?.environmentName&&!!t?.packageName}}const bpe=String.raw`##?\|?[ \t]*(?:[([{<][ \t]*)?(?:(?:(?:row|source)[-_]?)?authorize|access[-_]?filter)(?=[)\]}>]|[ \t]|$)`;function p5(e,t){if(/[\r\n]/.test(t))return`A ${e} is one line; it cannot hold a line break.`;if(new RegExp(bpe,"iu").test(t))return`A ${e} cannot contain what reads as an access-control tag (authorize, row_authorize, source_authorize or access_filter).`}function xpe(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"").slice(0,80)}function Spe({title:e,modelPath:t,source:n,view:r}){for(const[o,a]of[["source",n],["view",r]])if(!Ug(a))return`The ${o} name ${JSON.stringify(a)} cannot be written as a Malloy name.`;return/["\\\r\n]/.test(t)?`The model path ${JSON.stringify(t)} cannot be written into an import.`:p5("title",e)}function wpe(e){const t=Spe(e);if(t)throw new Error(t);return Cpe(e)}function Cpe({title:e,modelPath:t,source:n,view:r}){const o=`${n}_tiles`,a=`${r}_tile`;return["##! experimental.givens",`## artifact { title=${`"${e.trim().replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`} tiles=["${o} -> ${a}"] } dashboard { columns=12 }`,`import { ${n} } from "../${t}"`,"",`source: ${o} is ${n} extend {`," # colspan=6",` view: ${a} is ${r}`,"}",""].join(`
445
+ `)}class h5 extends Error{constructor(t){super(t),this.name="DocumentNotFoundError"}}const kpe=e=>e instanceof h5||e instanceof Error&&e.name==="DocumentNotFoundError";function Epe(e,t){return`${e}s/${t}.malloy`}function Tpe(e){return xpe(e)||"untitled"}function iC(e,t,n=1){const r=Tpe(t);return Epe(e,n>1?`${r}-${n}`:r)}const Mpe=(e,t,n,r,o)=>({workspace:t,type:e,path:`${n}/${r}/${o}`}),fm=e=>Ug(e)?e:`\`${e}\``;function OE(e,t){const{title:n,modelPath:r,source:o,view:a}=t;if(n.trim()==="")return"A title cannot be empty.";const s=p5("title",n);if(s)return s;if(e==="notebook"&&n.includes("|##"))return"A title cannot contain `|##`, which closes a notebook's text cell.";if(/["\\\r\n]/.test(r)||r.trim()==="")return`The model path ${JSON.stringify(r)} cannot be written as an import.`;for(const[l,c]of[["source",o],["view",a]])if(c.trim()===""||/[`\r\n\\]/.test(c)||e==="dashboard"&&!Ug(c))return`The ${l} name ${JSON.stringify(c)} cannot be written as a Malloy name.`}function Rpe(e){const t=OE("notebook",e);if(t)throw new Error(t);const{modelPath:n,source:r,view:o}=e,a=e.title.trim(),s=`"${a.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`,l=fm(`${r}_tiles`),c=fm(`${o}_tile`),f=`"${l} -> ${c}"`;return["##! experimental.givens",`##| artifact { kind=notebook title=${s}`," tiles=["," intro { kind=text },",` ${f}`," ]","}","|##",`import { ${fm(r)} } from "../${n}"`,"","##|(markdown) intro",`# ${a}`,"Say what this notebook is for, then let the queries below answer it.","|##","",`source: ${l} is ${fm(r)} extend {`,` view: ${c} is ${fm(o)}`,"}",""].join(`
446
+ `)}const Nb=20;function Ope(e){const{savesTo:t,writer:n}=ype({...e,readFailed:!1});return t==="browser"?void 0:n}const WA=e=>e.slice(e.indexOf("/")+1,-7);async function $pe(e){const{kind:t,document:n,target:r,onCreated:o,onEvent:a}=e,s=OE(t,n);if(s)throw new Error(s);const l=t==="dashboard"?wpe(n):Rpe(n);let c;if(r.route==="package"){const f=new Set(r.existing);let u;for(let h=1;h<=Nb&&u===void 0;h++){const y=iC(t,n.title,h);if(!f.has(y))try{await r.write(y,l),u=y}catch(v){if(!Ppe(v))throw v}}if(u===void 0)throw qA(n.title);c={kind:t,path:u,slug:WA(u)}}else{const{storage:f,workspace:u,environmentName:h,packageName:y}=r,v=new Set(r.existing),S=new Set((await f.listDocuments(u,t)).map(w=>w.path));let x;for(let w=1;w<=Nb&&x===void 0;w++){const b=iC(t,n.title,w),k=Mpe(t,u.name,h,y,b);if(S.has(k.path)||v.has(b))continue;let E=!0;try{await f.getDocument(k)}catch(O){if(!kpe(O))throw O;E=!1}E||(x={kind:t,path:b,slug:WA(b),locator:k})}if(x===void 0)throw qA(n.title);await f.saveDocument(x.locator,l),c=x}return a?.({type:`${t}.created`,where:r.route==="package"?"package":"host"}),o?.(c),c}const Ppe=e=>e?.response?.status===409,qA=e=>new Error(`No free file name for "${e}" after ${Nb} tries. Fix: choose a different title.`);function Ape(e){try{const t=JSON.parse(e??"");return new Set((t.entries??[]).flatMap(n=>n.kind==="source"&&typeof n.name=="string"?[n.name]:[]))}catch{return new Set}}function Dpe({environmentName:e,packageName:t,versionId:n,models:r,enabled:o}){const{apiClients:a,server:s}=Pr(),l=vI({queries:r.map(S=>({queryKey:["new-document-model",e,t,n,S,s],queryFn:async()=>(await a.models.getModel(e,t,S,n)).data,enabled:o,retry:!1,staleTime:300*1e3,refetchOnWindowFocus:!1}))}),c=l.map(S=>S.dataUpdatedAt).join(),f=C.useMemo(()=>{const S=new Map;return l.forEach((x,w)=>{const b=[],k=Ape(x.data?.modelInfo);for(const E of x.data?.sources??[])if(!(typeof E.name!="string"||!k.has(E.name)))for(const O of E.views??[])typeof O.name=="string"&&b.push({source:E.name,view:O.name});b.length>0&&S.set(r[w],b)}),S},[c,r]),u=l.some(S=>S.isLoading),h=u?[]:r.filter((S,x)=>l[x]?.isError),y=!u&&l.some(S=>S.isError&&hL(S.error)),v=()=>{l.forEach(S=>{S.isError&&S.refetch()})};return{choices:f,isLoading:u,isSuccess:l.length>0&&l.every(S=>!S.isPending),failed:h,retry:v,canRetry:y}}const m5=C.createContext(void 0);function jpe({children:e,documentStorage:t}){const n=C.useMemo(()=>({documentStorage:t}),[t]);return m.jsx(m5.Provider,{value:n,children:e})}function Npe(){return C.useContext(m5)}function io(e){const{server:t}=Pr(),n={...e,queryKey:[...e.queryKey,t],queryFn:async()=>{try{return await e.queryFn()}catch(r){if(r&&typeof r=="object"&&"response"in r){const o=r;if(o.response?.data){const a=new Error(o.response.data.message||o.message);throw a.status=o.response.status,a.data=o.response.data,a}}throw r}},retry:!1,throwOnError:!1};return bI(n,jk)}function tl(e){const t={...e,mutationFn:async n=>{try{return await e.mutationFn(n)}catch(r){if(r&&typeof r=="object"&&"response"in r){const o=r;if(o.response?.data){const a=new Error(o.response.data.message||o.message);throw a.status=o.response.status,a.data=o.response.data,a}}throw r}},retry:!1,throwOnError:!1};return sK(t,jk)}function Ipe(e){return["queryResult",e.environmentName,e.packageName,e.versionId,e.modelPath,e.queryName,e.query,e.sourceName,JSON.stringify(e.givens??{})]}function nbe(e){return["queryResult",e.environmentName,e.packageName,e.versionId,e.modelPath]}function $E(e,{enabled:t=!0}={}){const{apiClients:n}=Pr();return io({queryKey:Ipe(e),queryFn:()=>n.models.executeQueryModel(e.environmentName,e.packageName,e.modelPath,{queryName:e.queryName,query:e.query,sourceName:e.sourceName,givens:e.givens,versionId:e.versionId}),enabled:t,...eZ})}const Lpe=new Set(["bar_chart","line_chart","scatter_chart","shape_map","segment_map","point_map","big_value","sparkline","list","list_detail","dashboard","transpose","table","json","image","link","text"]),zpe={value:`# big_value
447
+ `},Fpe=/^#\(malloy\)[\s\S]*\bcalculation\b/;function _pe(e){return e?e.kind==="measure"?!0:(e.annotations??[]).some(t=>typeof t?.value=="string"&&Fpe.test(t.value.trim())):!1}function Bpe(e){const t=e.schema?.fields;if(!Array.isArray(t)||t.length===0||!t.every(_pe))return!1;const n=e.data;return n?n.kind==="record_cell"?!0:n.kind==="array_cell"&&Array.isArray(n.array_value)&&n.array_value.length===1:!1}function Upe(e){for(const t of e){const n=t.trim();if(!n.startsWith("#")||n.startsWith("#(")||n.startsWith('#"'))continue;const r=n.slice(1).replace(/"(?:[^"\\]|\\.)*"/g,'""');for(const o of r.split(/[\s{}=.,[\]]+/))if(Lpe.has(o))return!0}return!1}function Vpe(e){let t;try{t=JSON.parse(e)}catch{return e}if(!t||typeof t!="object"||!Bpe(t))return e;const n=Array.isArray(t.annotations)?t.annotations:[],r=n.map(o=>o?.value).filter(o=>typeof o=="string");return Upe(r)?e:JSON.stringify({...t,annotations:[zpe,...n]})}function YA(e){const t=e.split("->").at(-1)?.trim()??e;return/^[A-Za-z_][\w-]*$/.test(t)?LL(t):e}function GA({environmentName:e,packageName:t,versionId:n,modelPath:r,queryName:o,tile:a,annotation:s,label:l,subtitle:c,heading:f,borderless:u,givens:h,declaredTypes:y,givenNames:v,height:S,maxResultSize:x,drill:w,onExplore:b,chrome:k="card",ignoredFilters:E}){const{theme:O}=Ts(),$=$E({environmentName:e,packageName:t,modelPath:r,versionId:n,queryName:o,query:a!==void 0?`${s?`${s}
448
+ `:""}run: ${a}`:void 0,givens:Yg(h,y,v)});return m.jsxs(f5,{borderless:u,chrome:k,sx:{"& .malloy-render, & .malloy-table":{width:"100%"},"& .publisher-tile-explore":{opacity:0,transition:"opacity 120ms"},"&:hover .publisher-tile-explore, & .publisher-tile-explore:focus-visible":{opacity:1}},children:[a!==void 0&&m.jsx(lpe,{title:f?.title??l??YA(a),subtitle:f?f.subtitle:c,quiet:k==="none",tooltip:a,action:b&&m.jsx(xi,{title:"Explore from here",children:m.jsx(Jr,{className:"publisher-tile-explore",size:"small","aria-label":`Explore ${l??YA(a)}`,onClick:b,sx:{mt:-.5,mr:-.5,color:O.tileTitle},children:m.jsx(une,{fontSize:"small"})})})}),E&&m.jsx(ppe,{ignored:E}),m.jsx(RE,{fill:!0,state:$,context:a??o??r,maxHeight:S,maxResultSize:x,drill:w,transform:a!==void 0?Vpe:void 0})]})}const Hpe=er(m.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}));function g5({label:e,href:t,onClick:n}){return m.jsxs(y7,{...t===void 0?{component:"button",type:"button"}:{href:t},onClick:r=>{const o=r.metaKey||r.ctrlKey||r.shiftKey||r.altKey||r.button!==0;t!==void 0&&o||(r.preventDefault(),n(r))},underline:"none","aria-label":`Back to ${e}`,sx:{display:"inline-flex",alignItems:"center",gap:.5,cursor:"pointer",color:"text.secondary",fontSize:"0.875rem",mb:2,border:0,p:0,background:"none",font:"inherit","&:hover":{color:"primary.main"}},children:[m.jsx(Hpe,{sx:{fontSize:18}}),"Back to ",e]})}const y5="(max-width:599.95px)";function Wpe(){return AG(y5,{noSsr:!0})}function qpe(){return typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia(y5).matches}function rbe({children:e}){const[t]=C.useState(qpe),[n,r]=C.useState(!1);return!t||n?m.jsx(m.Fragment,{children:e}):m.jsxs(cr,{sx:{alignItems:"flex-start",gap:1.5,py:3},children:[m.jsx(It,{variant:"h6",children:"Editing works best on a larger screen"}),m.jsx(It,{variant:"body2",color:"text.secondary",children:"The editor is built for a wider window. You can still try it here."}),m.jsx(eo,{variant:"outlined",onClick:()=>r(!0),children:"Edit anyway"})]})}function obe(){const e=Eg();return(t,n)=>{if(!n||!n.metaKey&&!n.ctrlKey&&!n.shiftKey&&n.button!==1){e(t);return}const r=new URL(t,window.location.href).href;(n.metaKey||n.ctrlKey||n.button===1||n.shiftKey)&&window.open(r,"_blank")}}function v5({onNavigate:e,onSelf:t,selfLabel:n="Filter this view",canSelf:r,onRows:o}){const[a,s]=C.useState(null),l=C.useCallback((S,x)=>S.filter(w=>w===OS?t!==void 0&&(r?.(x)??!0):e!==void 0),[e,t,r]),c=C.useCallback((S,x,w)=>{if(x===OS){t?.(S.given,S.rawValue);return}e?.({dashboard:x,givens:{[S.given]:S.value}},w)},[e,t]),f=C.useCallback(S=>{if(!(!o||S.isHeader||!S.field)&&(S.field.wasDimension?.()??!1)&&U0(S.value)!==void 0)return{field:S.field.name,rawValue:S.value,label:FL(S.value),...S.context===void 0?{}:{context:S.context}}},[o]),u=C.useCallback(S=>{const x=One(S),w=f(S),b=x?l(x.to,x.given):[];if(b.length===0){w&&o?.(w);return}if(b.length===1&&x){c(x,b[0],S.event);return}s({...x?{intent:x}:{},destinations:b,event:S.event,top:S.event?.clientY??0,left:S.event?.clientX??0,label:x?.label??w?.label??""})},[c,l,o,f]),h=C.useCallback(S=>l(IL(S),zL(S)).length>0||o!==void 0&&(S.wasDimension?.()??!1),[l,o]),y=C.useMemo(()=>({onClick:u,canDrill:h}),[u,h]),v=C.useCallback(()=>s(null),[]);return{drill:y,drillMenu:m.jsxs(tu,{open:a!==null,onClose:v,anchorReference:"anchorPosition",anchorPosition:{top:a?.top??0,left:a?.left??0},children:[m.jsx(pb,{sx:{lineHeight:"32px"},children:a?`${a.label} →`:""}),Array.from(new Set(a?.destinations??[])).map(S=>m.jsx(ea,{onClick:()=>{v(),a?.intent&&c(a.intent,S,a.event)},children:S===OS?n:LL(S)},S))]})}}const Ype=e=>{const t=C.useRef({});return C.useEffect(()=>{t.current=e}),t.current};function abe(){const[e]=j_(),t=Eg(),n=ns(),r=C.useMemo(()=>Object.fromEntries(e.entries()),[e]),o=C.useRef(new Set),a=C.useCallback((s,l)=>{const c=new Set([...l,...o.current]);o.current=new Set([...o.current,...Object.keys(s),...l]);const f=new URLSearchParams(n.search);for(const u of c)Object.prototype.hasOwnProperty.call(s,u)||f.delete(u);for(const[u,h]of Object.entries(s))f.set(u,h);t({search:f.toString(),hash:n.hash},{replace:!0})},[t,n]);return{params:r,onGivensChange:a}}function KA({array1:e,array2:t,parser:n=r=>r}){return e&&t&&e.length===t.length&&e.every((r,o)=>n(r)===n(t[o]))}function QA(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Gpe(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:a,trim:s=!1}=e;return(l,{inputValue:c,getOptionLabel:f})=>{let u=s?c.trim():c;n&&(u=u.toLowerCase()),t&&(u=QA(u));const h=u?l.filter(y=>{let v=(a||f)(y);return n&&(v=v.toLowerCase()),t&&(v=QA(v)),o==="start"?v.startsWith(u):v.includes(u)}):l;return typeof r=="number"?h.slice(0,r):h}}const Kpe=Gpe(),XA=5,Qpe=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),Xpe=[];function ZA(e,t,n,r){if(t||e==null||r)return"";const o=n(e);return typeof o=="string"?o:""}function Zpe(e){const{unstable_isActiveElementInListbox:t=Qpe,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:c=!1,componentName:f="useAutocomplete",defaultValue:u=e.multiple?Xpe:null,disableClearable:h=!1,disableCloseOnSelect:y=!1,disabled:v,disabledItemsFocusable:S=!1,disableListWrap:x=!1,filterOptions:w=Kpe,filterSelectedOptions:b=!1,freeSolo:k=!1,getOptionDisabled:E,getOptionKey:O,getOptionLabel:$=de=>de.label??de,groupBy:A,handleHomeEndKeys:I=!e.freeSolo,id:j,includeInputInList:_=!1,inputValue:W,isOptionEqualToValue:U=(de,fe)=>de===fe,multiple:T=!1,onChange:L,onClose:F,onHighlightChange:H,onInputChange:D,onOpen:K,open:Q,openOnFocus:ee=!1,options:X,readOnly:te=!1,renderValue:ae,selectOnFocus:ue=!e.freeSolo,value:he}=e,ie=Os(j);let le=$;le=de=>{const fe=$(de);return typeof fe!="string"?String(fe):fe};const se=C.useRef(!1),pe=C.useRef(!0),ne=C.useRef(null),me=C.useRef(null),[xe,Se]=C.useState(null),[ce,Ee]=C.useState(-1),Ge=o?0:-1,Te=C.useRef(Ge),je=C.useRef(ZA(u??he,T,le)).current,[oe,lt]=vi({controlled:he,default:u,name:f}),[Ie,et]=vi({controlled:W,default:je,name:f,state:"inputValue"}),[mt,Wt]=C.useState(!1),zt=C.useCallback((de,fe,Fe)=>{if(!(T?oe.length<fe.length:fe!==null)&&!l)return;const ft=ZA(fe,T,le,ae);Ie!==ft&&(et(ft),D&&D(de,ft,Fe))},[le,Ie,T,D,et,l,oe,ae]),[tt,Je]=vi({controlled:Q,default:!1,name:f,state:"open"}),[ct,Le]=C.useState(!0),ge=!T&&oe!=null&&Ie===le(oe),qe=tt&&!te,De=qe?w(X.filter(de=>!(b&&(T?oe:[oe]).some(fe=>fe!==null&&U(de,fe)))),{inputValue:ge&&ct?"":Ie,getOptionLabel:le}):[],wt=Ype({filteredOptions:De,value:oe,inputValue:Ie});C.useEffect(()=>{const de=oe!==wt.value;mt&&!de||k&&!de||zt(null,oe,"reset")},[oe,zt,mt,wt.value,k]);const Ct=tt&&De.length>0&&!te,yt=Ut(de=>{if(de===-1)ne.current.focus();else{const fe=ae?"data-item-index":"data-tag-index";xe.querySelector(`[${fe}="${de}"]`).focus()}});C.useEffect(()=>{T&&ce>oe.length-1&&(Ee(-1),yt(-1))},[oe,T,ce,yt]);function st(de,fe){if(!me.current||de<0||de>=De.length)return-1;let Fe=de;for(;;){const ft=me.current.querySelector(`[data-option-index="${Fe}"]`),Ue=S?!1:!ft||ft.disabled||ft.getAttribute("aria-disabled")==="true";if(ft&&ft.hasAttribute("tabindex")&&!Ue)return Fe;if(fe==="next"?Fe=(Fe+1)%De.length:Fe=(Fe-1+De.length)%De.length,Fe===de)return-1}}const jt=Ut(({event:de,index:fe,reason:Fe})=>{if(Te.current=fe,fe===-1?ne.current.removeAttribute("aria-activedescendant"):ne.current.setAttribute("aria-activedescendant",`${ie}-option-${fe}`),H&&["mouse","keyboard","touch"].includes(Fe)&&H(de,fe===-1?null:De[fe],Fe),!me.current)return;const ft=me.current.querySelector(`[role="option"].${n}-focused`);ft&&(ft.classList.remove(`${n}-focused`),ft.classList.remove(`${n}-focusVisible`));let Ue=me.current;if(me.current.getAttribute("role")!=="listbox"&&(Ue=me.current.parentElement.querySelector('[role="listbox"]')),!Ue)return;if(fe===-1){Ue.scrollTop=0;return}const Ot=me.current.querySelector(`[data-option-index="${fe}"]`);if(Ot&&(Ot.classList.add(`${n}-focused`),Fe==="keyboard"&&Ot.classList.add(`${n}-focusVisible`),Ue.scrollHeight>Ue.clientHeight&&Fe!=="mouse"&&Fe!=="touch")){const Yt=Ot,nn=Ue.clientHeight+Ue.scrollTop,ve=Yt.offsetTop+Yt.offsetHeight;ve>nn?Ue.scrollTop=ve-Ue.clientHeight:Yt.offsetTop-Yt.offsetHeight*(A?1.3:0)<Ue.scrollTop&&(Ue.scrollTop=Yt.offsetTop-Yt.offsetHeight*(A?1.3:0))}}),qt=Ut(({event:de,diff:fe,direction:Fe="next",reason:ft})=>{if(!qe)return;const Ue=st((()=>{const Ot=De.length-1;if(fe==="reset")return Ge;if(fe==="start")return 0;if(fe==="end")return Ot;const Yt=Te.current+fe;return Yt<0?Yt===-1&&_?-1:x&&Te.current!==-1||Math.abs(fe)>1?0:Ot:Yt>Ot?Yt===Ot+1&&_?-1:x||Math.abs(fe)>1?Ot:0:Yt})(),Fe);if(jt({index:Ue,reason:ft,event:de}),r&&fe!=="reset")if(Ue===-1)ne.current.value=Ie;else{const Ot=le(De[Ue]);ne.current.value=Ot,Ot.toLowerCase().indexOf(Ie.toLowerCase())===0&&Ie.length>0&&ne.current.setSelectionRange(Ie.length,Ot.length)}}),mn=!KA({array1:wt.filteredOptions,array2:De,parser:le}),$n=()=>{const de=(fe,Fe)=>{const ft=fe?le(fe):"",Ue=Fe?le(Fe):"";return ft===Ue};if(Te.current!==-1&&!KA({array1:wt.filteredOptions,array2:De,parser:le})&&wt.inputValue===Ie&&(T?oe.length===wt.value.length&&wt.value.every((fe,Fe)=>le(oe[Fe])===le(fe)):de(wt.value,oe))){const fe=wt.filteredOptions[Te.current];if(fe)return De.findIndex(Fe=>le(Fe)===le(fe))}return-1},_n=C.useCallback(()=>{if(!qe)return;const de=$n();if(de!==-1){Te.current=de;return}const fe=T?oe[0]:oe;if(De.length===0||fe==null){qt({diff:"reset"});return}if(me.current){if(fe!=null){const Fe=De[Te.current];if(T&&Fe&&oe.findIndex(Ue=>U(Fe,Ue))!==-1)return;const ft=De.findIndex(Ue=>U(Ue,fe));ft===-1?qt({diff:"reset"}):jt({index:ft});return}if(Te.current>=De.length-1){jt({index:De.length-1});return}jt({index:Te.current})}},[De.length,T?!1:oe,b,qt,jt,qe,Ie,T]),Un=Ut(de=>{_w(me,de),de&&_n()});C.useEffect(()=>{mn&&_n()},[_n,mn]);const Jt=de=>{tt||(Je(!0),Le(!0),K&&K(de))},Dn=(de,fe)=>{tt&&(Je(!1),F&&F(de,fe))},Ce=(de,fe,Fe,ft)=>{if(T){if(oe.length===fe.length&&oe.every((Ue,Ot)=>Ue===fe[Ot]))return}else if(oe===fe)return;L&&L(de,fe,Fe,ft),lt(fe)},Vn=C.useRef(!1),Mn=(de,fe,Fe="selectOption",ft="options")=>{let Ue=Fe,Ot=fe;if(T){Ot=Array.isArray(oe)?oe.slice():[];const Yt=Ot.findIndex(nn=>U(fe,nn));Yt===-1?Ot.push(fe):ft!=="freeSolo"&&(Ot.splice(Yt,1),Ue="removeOption")}zt(de,Ot,Ue),Ce(de,Ot,Ue,{option:fe}),!y&&(!de||!de.ctrlKey&&!de.metaKey)&&Dn(de,Ue),(s===!0||s==="touch"&&Vn.current||s==="mouse"&&!Vn.current)&&ne.current.blur()};function en(de,fe){if(de===-1)return-1;let Fe=de;for(;;){if(fe==="next"&&Fe===oe.length||fe==="previous"&&Fe===-1)return-1;const ft=ae?"data-item-index":"data-tag-index",Ue=xe.querySelector(`[${ft}="${Fe}"]`);if(!Ue||!Ue.hasAttribute("tabindex")||Ue.disabled||Ue.getAttribute("aria-disabled")==="true")Fe+=fe==="next"?1:-1;else return Fe}}const $t=(de,fe)=>{if(!T)return;Ie===""&&Dn(de,"toggleInput");let Fe=ce;ce===-1?Ie===""&&fe==="previous"&&(Fe=oe.length-1):(Fe+=fe==="next"?1:-1,Fe<0&&(Fe=0),Fe===oe.length&&(Fe=-1)),Fe=en(Fe,fe),Ee(Fe),yt(Fe)},Fr=de=>{se.current=!0,et(""),D&&D(de,"","clear"),Ce(de,T?[]:null,"clear")},Fn=de=>fe=>{if(de.onKeyDown&&de.onKeyDown(fe),!fe.defaultMuiPrevented&&(ce!==-1&&!["ArrowLeft","ArrowRight"].includes(fe.key)&&(Ee(-1),yt(-1)),fe.which!==229))switch(fe.key){case"Home":qe&&I&&(fe.preventDefault(),qt({diff:"start",direction:"next",reason:"keyboard",event:fe}));break;case"End":qe&&I&&(fe.preventDefault(),qt({diff:"end",direction:"previous",reason:"keyboard",event:fe}));break;case"PageUp":fe.preventDefault(),qt({diff:-XA,direction:"previous",reason:"keyboard",event:fe}),Jt(fe);break;case"PageDown":fe.preventDefault(),qt({diff:XA,direction:"next",reason:"keyboard",event:fe}),Jt(fe);break;case"ArrowDown":fe.preventDefault(),qt({diff:1,direction:"next",reason:"keyboard",event:fe}),Jt(fe);break;case"ArrowUp":fe.preventDefault(),qt({diff:-1,direction:"previous",reason:"keyboard",event:fe}),Jt(fe);break;case"ArrowLeft":!T&&ae?yt(0):$t(fe,"previous");break;case"ArrowRight":!T&&ae?yt(-1):$t(fe,"next");break;case"Enter":if(Te.current!==-1&&qe){const Fe=De[Te.current],ft=E?E(Fe):!1;if(fe.preventDefault(),ft)return;Mn(fe,Fe,"selectOption"),r&&ne.current.setSelectionRange(ne.current.value.length,ne.current.value.length)}else k&&Ie!==""&&ge===!1&&(T&&fe.preventDefault(),Mn(fe,Ie,"createOption","freeSolo"));break;case"Escape":qe?(fe.preventDefault(),fe.stopPropagation(),Dn(fe,"escape")):c&&(Ie!==""||T&&oe.length>0||ae)&&(fe.preventDefault(),fe.stopPropagation(),Fr(fe));break;case"Backspace":if(T&&!te&&Ie===""&&oe.length>0){const Fe=ce===-1?oe.length-1:ce,ft=oe.slice();ft.splice(Fe,1),Ce(fe,ft,"removeOption",{option:oe[Fe]})}!T&&ae&&!te&&(lt(null),yt(-1));break;case"Delete":if(T&&!te&&Ie===""&&oe.length>0&&ce!==-1){const Fe=ce,ft=oe.slice();ft.splice(Fe,1),Ce(fe,ft,"removeOption",{option:oe[Fe]})}!T&&ae&&!te&&(lt(null),yt(-1));break}},on=de=>{Wt(!0),ee&&!se.current&&Jt(de)},Ln=de=>{if(t(me)){ne.current.focus();return}Wt(!1),pe.current=!0,se.current=!1,a&&Te.current!==-1&&qe?Mn(de,De[Te.current],"blur"):a&&k&&Ie!==""?Mn(de,Ie,"blur","freeSolo"):l&&zt(de,oe,"blur"),Dn(de,"blur")},ye=de=>{const fe=de.target.value;Ie!==fe&&(et(fe),Le(!1),D&&D(de,fe,"input")),fe===""?!h&&!T&&Ce(de,null,"clear"):Jt(de)},Me=de=>{const fe=Number(de.currentTarget.getAttribute("data-option-index"));Te.current!==fe&&jt({event:de,index:fe,reason:"mouse"})},ze=de=>{jt({event:de,index:Number(de.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Vn.current=!0},Ve=de=>{const fe=Number(de.currentTarget.getAttribute("data-option-index"));Mn(de,De[fe],"selectOption"),Vn.current=!1},rt=de=>fe=>{const Fe=oe.slice();Fe.splice(de,1),Ce(fe,Fe,"removeOption",{option:oe[de]})},kt=de=>{Ce(de,null,"removeOption",{option:oe})},bt=de=>{tt?Dn(de,"toggleInput"):Jt(de)},Et=de=>{de.currentTarget.contains(de.target)&&de.target.getAttribute("id")!==ie&&de.preventDefault()},Pt=de=>{de.currentTarget.contains(de.target)&&(ne.current.focus(),ue&&pe.current&&ne.current.selectionEnd-ne.current.selectionStart===0&&ne.current.select(),pe.current=!1)},Kt=de=>{!v&&(Ie===""||!tt)&&bt(de)};let At=k&&Ie.length>0;At=At||(T?oe.length>0:oe!==null);let Ft=De;return A&&(Ft=De.reduce((de,fe,Fe)=>{const ft=A(fe);return de.length>0&&de[de.length-1].group===ft?de[de.length-1].options.push(fe):de.push({key:Fe,index:Fe,group:ft,options:[fe]}),de},[])),v&&mt&&Ln(),{getRootProps:(de={})=>({...de,onKeyDown:Fn(de),onMouseDown:Et,onClick:Pt}),getInputLabelProps:()=>({id:`${ie}-label`,htmlFor:ie}),getInputProps:()=>({id:ie,value:Ie,onBlur:Ln,onFocus:on,onChange:ye,onMouseDown:Kt,"aria-activedescendant":qe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ct?`${ie}-listbox`:void 0,"aria-expanded":Ct,autoComplete:"off",ref:ne,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Fr}),getItemProps:({index:de=0}={})=>({...T&&{key:de},...ae?{"data-item-index":de}:{"data-tag-index":de},tabIndex:-1,...!te&&{onDelete:T?rt(de):kt}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:bt}),getTagProps:({index:de})=>({key:de,"data-tag-index":de,tabIndex:-1,...!te&&{onDelete:rt(de)}}),getListboxProps:()=>({role:"listbox",id:`${ie}-listbox`,"aria-labelledby":`${ie}-label`,ref:Un,onMouseDown:de=>{de.preventDefault()}}),getOptionProps:({index:de,option:fe})=>{const Fe=(T?oe:[oe]).some(Ue=>Ue!=null&&U(fe,Ue)),ft=E?E(fe):!1;return{key:O?.(fe)??le(fe),tabIndex:-1,role:"option",id:`${ie}-option-${de}`,onMouseMove:Me,onClick:Ve,onTouchStart:ze,"data-option-index":de,"aria-disabled":ft,"aria-selected":Fe}},id:ie,inputValue:Ie,value:oe,dirty:At,expanded:qe&&xe,popupOpen:qe,focused:mt||ce!==-1,anchorEl:xe,setAnchorEl:Se,focusedItem:ce,focusedTag:ce,groupedOptions:Ft}}function Jpe(e){return cn("MuiListSubheader",e)}tn("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const ehe=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:a}=e,s={root:["root",n!=="default"&&`color${St(n)}`,!r&&"gutters",o&&"inset",!a&&"sticky"]};return sn(s,Jpe,t)},the=Qe("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${St(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(Wn(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),sC=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiListSubheader"}),{className:r,color:o="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1,...f}=n,u={...n,color:o,component:a,disableGutters:s,disableSticky:l,inset:c},h=ehe(u);return m.jsx(the,{as:a,className:Lt(h.root,r),ref:t,ownerState:u,...f})});sC&&(sC.muiSkipListHighlight=!0);const nhe=er(m.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}));function rhe(e){return cn("MuiAutocomplete",e)}const Qn=tn("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var JA,eD;const ohe=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:a,hasClearIcon:s,hasPopupIcon:l,inputFocused:c,popupOpen:f,size:u}=e,h={root:["root",r&&"expanded",o&&"focused",a&&"fullWidth",s&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${St(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",f&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return sn(h,rhe,t)},ahe=Qe("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:a,inputFocused:s,size:l}=n;return[{[`& .${Qn.tag}`]:t.tag},{[`& .${Qn.tag}`]:t[`tagSize${St(l)}`]},{[`& .${Qn.inputRoot}`]:t.inputRoot},{[`& .${Qn.input}`]:t.input},{[`& .${Qn.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${Qn.focused} .${Qn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Qn.clearIndicator}`]:{visibility:"visible"}},[`& .${Qn.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Qn.inputRoot}`]:{[`.${Qn.hasPopupIcon}&, .${Qn.hasClearIcon}&`]:{paddingRight:30},[`.${Qn.hasPopupIcon}.${Qn.hasClearIcon}&`]:{paddingRight:56},[`& .${Qn.input}`]:{width:0,minWidth:30}},[`& .${Nc.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Nc.root}.${fi.sizeSmall}`]:{[`& .${Nc.input}`]:{padding:"2px 4px 3px 0"}},[`& .${zi.root}`]:{padding:9,[`.${Qn.hasPopupIcon}&, .${Qn.hasClearIcon}&`]:{paddingRight:39},[`.${Qn.hasPopupIcon}.${Qn.hasClearIcon}&`]:{paddingRight:65},[`& .${Qn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Qn.endAdornment}`]:{right:9}},[`& .${zi.root}.${fi.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Qn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${pi.root}`]:{paddingTop:19,paddingLeft:8,[`.${Qn.hasPopupIcon}&, .${Qn.hasClearIcon}&`]:{paddingRight:39},[`.${Qn.hasPopupIcon}.${Qn.hasClearIcon}&`]:{paddingRight:65},[`& .${pi.input}`]:{padding:"7px 4px"},[`& .${Qn.endAdornment}`]:{right:9}},[`& .${pi.root}.${fi.sizeSmall}`]:{paddingBottom:1,[`& .${pi.input}`]:{padding:"2.5px 4px"}},[`& .${fi.hiddenLabel}`]:{paddingTop:8},[`& .${pi.root}.${fi.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Qn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${pi.root}.${fi.hiddenLabel}.${fi.sizeSmall}`]:{[`& .${Qn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Qn.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Qn.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Qn.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Qn.inputRoot}`]:{flexWrap:"wrap"}}}]}),ihe=Qe("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),she=Qe(nu,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),lhe=Qe(nu,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),che=Qe(pE,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Qn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(Wn(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),uhe=Qe(Cd,{name:"MuiAutocomplete",slot:"Paper"})(Wn(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),dhe=Qe("div",{name:"MuiAutocomplete",slot:"Loading"})(Wn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),fhe=Qe("div",{name:"MuiAutocomplete",slot:"NoOptions"})(Wn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),phe=Qe("ul",{name:"MuiAutocomplete",slot:"Listbox"})(Wn(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Qn.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Qn.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Qn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Qn.focused}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Qn.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),hhe=Qe(sC,{name:"MuiAutocomplete",slot:"GroupLabel"})(Wn(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),mhe=Qe("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${Qn.option}`]:{paddingLeft:24}}),ghe=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiAutocomplete"}),{autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:s=!1,ChipProps:l,className:c,clearIcon:f=JA||(JA=m.jsx(nhe,{fontSize:"small"})),clearOnBlur:u=!n.freeSolo,clearOnEscape:h=!1,clearText:y="Clear",closeText:v="Close",componentsProps:S,defaultValue:x=n.multiple?[]:null,disableClearable:w=!1,disableCloseOnSelect:b=!1,disabled:k=!1,disabledItemsFocusable:E=!1,disableListWrap:O=!1,disablePortal:$=!1,filterOptions:A,filterSelectedOptions:I=!1,forcePopupIcon:j="auto",freeSolo:_=!1,fullWidth:W=!1,getLimitTagsText:U=ve=>`+${ve}`,getOptionDisabled:T,getOptionKey:L,getOptionLabel:F,isOptionEqualToValue:H,groupBy:D,handleHomeEndKeys:K=!n.freeSolo,id:Q,includeInputInList:ee=!1,inputValue:X,limitTags:te=-1,ListboxComponent:ae,ListboxProps:ue,loading:he=!1,loadingText:ie="Loading…",multiple:le=!1,noOptionsText:se="No options",onChange:pe,onClose:ne,onHighlightChange:me,onInputChange:xe,onOpen:Se,open:ce,openOnFocus:Ee=!1,openText:Ge="Open",options:Te,PaperComponent:je,PopperComponent:oe,popupIcon:lt=eD||(eD=m.jsx(qz,{})),readOnly:Ie=!1,renderGroup:et,renderInput:mt,renderOption:Wt,renderTags:zt,renderValue:tt,selectOnFocus:Je=!n.freeSolo,size:ct="medium",slots:Le={},slotProps:ge={},value:qe,...De}=n,{getRootProps:wt,getInputProps:Ct,getInputLabelProps:yt,getPopupIndicatorProps:st,getClearProps:jt,getItemProps:qt,getListboxProps:mn,getOptionProps:$n,value:_n,dirty:Un,expanded:Jt,id:Dn,popupOpen:Ce,focused:Vn,focusedItem:Mn,anchorEl:en,setAnchorEl:$t,inputValue:Fr,groupedOptions:Fn}=Zpe({...n,componentName:"Autocomplete"}),on=!w&&!k&&Un&&!Ie,Ln=(!_||j===!0)&&j!==!1,{onMouseDown:ye}=Ct(),{ref:Me,...ze}=mn(),Ve=F||(ve=>ve.label??ve),rt={...n,disablePortal:$,expanded:Jt,focused:Vn,fullWidth:W,getOptionLabel:Ve,hasClearIcon:on,hasPopupIcon:Ln,inputFocused:Mn===-1,popupOpen:Ce,size:ct},kt=ohe(rt),bt={slots:{paper:je,popper:oe,...Le},slotProps:{chip:l,listbox:ue,...S,...ge}},[Et,Pt]=lr("listbox",{elementType:phe,externalForwardedProps:bt,ownerState:rt,className:kt.listbox,additionalProps:ze,ref:Me}),[Kt,At]=lr("paper",{elementType:Cd,externalForwardedProps:bt,ownerState:rt,className:kt.paper}),[Ft,de]=lr("popper",{elementType:pE,externalForwardedProps:bt,ownerState:rt,className:kt.popper,additionalProps:{disablePortal:$,style:{width:en?en.clientWidth:null},role:"presentation",anchorEl:en,open:Ce}});let fe;const Fe=ve=>({className:kt.tag,disabled:k,...qt(ve)});if(le?_n.length>0&&(zt?fe=zt(_n,Fe,rt):tt?fe=tt(_n,Fe,rt):fe=_n.map((ve,Re)=>{const{key:it,...xt}=Fe({index:Re});return m.jsx(Dz,{label:Ve(ve),size:ct,...xt,...bt.slotProps.chip},it)})):tt&&_n!=null&&(fe=tt(_n,Fe,rt)),te>-1&&Array.isArray(fe)){const ve=fe.length-te;!Vn&&ve>0&&(fe=fe.splice(0,te),fe.push(m.jsx("span",{className:kt.tag,children:U(ve)},fe.length)))}const ft=et||(ve=>m.jsxs("li",{children:[m.jsx(hhe,{className:kt.groupLabel,ownerState:rt,component:"div",children:ve.group}),m.jsx(mhe,{className:kt.groupUl,ownerState:rt,children:ve.children})]},ve.key)),Ue=Wt||((ve,Re)=>{const{key:it,...xt}=ve;return m.jsx("li",{...xt,children:Ve(Re)},it)}),Ot=(ve,Re)=>{const it=$n({option:ve,index:Re});return Ue({...it,className:kt.option},ve,{selected:it["aria-selected"],index:Re,inputValue:Fr},rt)},Yt=bt.slotProps.clearIndicator,nn=bt.slotProps.popupIndicator;return m.jsxs(C.Fragment,{children:[m.jsx(ahe,{ref:t,className:Lt(kt.root,c),ownerState:rt,...wt(De),children:mt({id:Dn,disabled:k,fullWidth:!0,size:ct==="small"?"small":void 0,InputLabelProps:yt(),InputProps:{ref:$t,className:kt.inputRoot,startAdornment:fe,onMouseDown:ve=>{ve.target===ve.currentTarget&&ye(ve)},...(on||Ln)&&{endAdornment:m.jsxs(ihe,{className:kt.endAdornment,ownerState:rt,children:[on?m.jsx(she,{...jt(),"aria-label":y,title:y,ownerState:rt,...Yt,className:Lt(kt.clearIndicator,Yt?.className),children:f}):null,Ln?m.jsx(lhe,{...st(),disabled:k,"aria-label":Ce?v:Ge,title:Ce?v:Ge,ownerState:rt,...nn,className:Lt(kt.popupIndicator,nn?.className),children:lt}):null]})}},inputProps:{className:kt.input,disabled:k,readOnly:Ie,...Ct()}})}),en?m.jsx(che,{as:Ft,...de,children:m.jsxs(uhe,{as:Kt,...At,children:[he&&Fn.length===0?m.jsx(dhe,{className:kt.loading,ownerState:rt,children:ie}):null,Fn.length===0&&!_&&!he?m.jsx(fhe,{className:kt.noOptions,ownerState:rt,role:"presentation",onMouseDown:ve=>{ve.preventDefault()},children:se}):null,Fn.length>0?m.jsx(Et,{as:ae,...Pt,children:Fn.map((ve,Re)=>D?ft({key:ve.key,group:ve.group,children:ve.options.map((it,xt)=>Ot(it,ve.index+xt))}):Ot(ve,Re))}):null]})}):null]})});function yhe(e){return e!=null}function vhe(e,t){const n=[],r=[];for(const a of e){if(a.name===void 0||yhe(t.get(a.name)))continue;if(a.default==null){n.push(a.name);continue}const s=c5(a.type??"string",a.default);s&&r.push(`${a.name} = ${s}`)}const o={missing:n};return r.length>0&&(o.defaultsNote=r.length===1?`Ran with the default ${r[0]}`:`Ran with defaults ${r.join(", ")}`),o}function bhe(e){return e.length===1?`This source may need a value for the given ${e[0]}. Set it in the parameters above.`:`This source may need values for the givens ${e.join(", ")}. Set them in the parameters above.`}function xhe({sourceAndPaths:e,selectedSourceIndex:t,existingQuery:n,onQueryChange:r,onSourceChange:o,resourceUri:a,givens:s,gate:l}){return un.useEffect(()=>{o&&o(t)},[t,o]),m.jsx(XI,{children:m.jsxs(tV,{spacing:2,component:"section",children:[m.jsx(whe,{sourceAndPath:e[t],existingQuery:n,onChange:c=>{r&&r(c)},resourceUri:a,givens:s,gate:l}),m.jsx(Yj,{height:"5px"})]})})}function LS(){return{query:void 0,malloyQuery:void 0,malloyResult:void 0}}function She({sourceAndPath:e,onChange:t,existingQuery:n,explorerComponents:r,QueryBuilder:o,resourceUri:a,givens:s,gate:l}){const[c,f]=un.useState(n||LS()),[u,h]=un.useState(void 0);un.useEffect(()=>{n&&f(n)},[n]);const[y,v]=un.useState([]),{MalloyExplorerProvider:S,QueryPanel:x,ResizableCollapsiblePanel:w,ResultPanel:b,SourcePanel:k}=r;un.useEffect(()=>{t&&t(c)},[t,c]);const{environmentName:E,packageName:O,versionId:$}=to(a),{apiClients:A}=Pr(),I=un.useRef(void 0),j=tl({mutationFn:()=>{I.current=l,h({executionState:"running",query:c?.malloyQuery,queryResolutionStartMillis:Date.now(),onCancel:()=>{j.reset(),h(void 0)},response:{}});const T=typeof c?.malloyQuery=="string"?c.malloyQuery:new o.ASTQuery({source:e.sourceInfo,query:c?.malloyQuery}).toMalloy();return f({...c,query:T}),A.models.executeQueryModel(E,O,e.modelPath,{query:T,sourceName:void 0,queryName:void 0,versionId:$,...s&&Object.keys(s).length>0?{givens:s}:{}})},onSuccess:T=>{if(T){const L=JSON.parse(T.data.result);f({...c,malloyResult:L});const F=I.current;h(H=>H?{...H,executionState:"finished",response:{result:L,...F?.defaultsNote?{messages:[{severity:"INFO",title:F.defaultsNote}]}:{}}}:void 0)}},onError:T=>{console.error("Query execution error:",T);const L=T?.data?.message??T?.message??"The query could not be run.",F=[{severity:"ERROR",title:L}],H=I.current?.missing??[];(T?.status===403||/Access denied for source/i.test(L))&&H.length>0&&F.push({severity:"WARN",title:bhe(H)}),h(D=>D?{...D,executionState:"finished",response:{messages:F}}:void 0)}}),[_,W]=un.useState(e.sourceInfo.name);un.useEffect(()=>{_!==e.sourceInfo.name&&(W(e.sourceInfo.name),f(LS()),h(void 0))},[e,_]);const U=un.useCallback(T=>{f({...c,malloyQuery:T,malloyResult:void 0})},[c]);return _!==e.sourceInfo.name?m.jsx("div",{children:"Loading..."}):m.jsx(eL,{sx:{border:"1px solid #e0e0e0",borderRadius:"8px",overflow:"hidden"},children:m.jsx(S,{source:e.sourceInfo,query:c?.malloyQuery,topValues:[],onFocusedNestViewPathChange:v,focusedNestViewPath:y,onQueryChange:U,children:m.jsxs("div",{style:{display:"flex",height:"100%",overflowY:"auto"},children:[m.jsx(w,{isInitiallyExpanded:!0,initialWidth:180,minWidth:180,icon:"database",title:e.sourceInfo.name,children:m.jsx(k,{onRefresh:()=>f(LS())})}),m.jsx(w,{isInitiallyExpanded:!0,initialWidth:280,minWidth:280,icon:"filterSliders",title:"Query",children:m.jsx(x,{runQuery:()=>{console.log(`running query with: ${c?.malloyQuery}`);try{j.mutate()}catch(T){console.error("Error running query:",T)}}})}),m.jsx(b,{source:e.sourceInfo,draftQuery:c?.malloyQuery,setDraftQuery:T=>f({...c,malloyQuery:T}),submittedQuery:u,options:{showRawQuery:!0}})]})})},e.sourceInfo.name)}function whe(e){const[t,n]=C.useState(null),[r,o]=C.useState(null),[a,s]=C.useState(!0);return C.useEffect(()=>{let l=!0;return Promise.all([$o(()=>import("./index-IC0jPCkR.js"),__vite__mapDeps([5,0,1,2,4,3,6])),epe()]).then(([c,f])=>{l&&(n(c),o(f),s(!1))}).catch(c=>{console.error("Failed to load Malloy components:",c),l&&s(!1)}),()=>{l=!1}},[]),a||!t||!r?m.jsx(xX,{children:m.jsx(eL,{children:m.jsx(Yj,{sx:{alignItems:"center",justifyContent:"center",height:"200px",color:"text.secondary"},children:"Loading explorer..."})})}):m.jsx(She,{...e,explorerComponents:t,QueryBuilder:r,resourceUri:e.resourceUri})}function PE(e,t=!0){const{modelPath:n,environmentName:r,packageName:o,versionId:a}=to(e),{apiClients:s}=Pr();return io({queryKey:["package",r,o,n,a],queryFn:async()=>(await s.models.getModel(r,o,n,a)).data,enabled:t})}function b5({data:e,onChange:t,existingQuery:n,initialSelectedSourceIndex:r=0,onSourceChange:o,resourceUri:a,givens:s,onGivensChange:l,startingGivens:c}){const[f,u]=un.useState(r);un.useEffect(()=>{u(r)},[r]);const{data:h,isError:y,isLoading:v,error:S}=PE(a,!e),{environmentName:x,packageName:w,modelPath:b,versionId:k}=to(a),E=e||h,O=un.useMemo(()=>E?.givens??[],[E]),$=Qk({specs:O,loaded:!!E,params:s,onGivensChange:l,startingValues:c,documentKey:a,autorun:!0,environmentName:x??"",packageName:w??"",modelPath:b,versionId:k,documentName:b}),A=C.useMemo(()=>Yg($.applied,$.declaredTypes),[$.applied,$.declaredTypes]),I=C.useMemo(()=>vhe(O,$.applied),[O,$.applied]);if(v&&!e)return m.jsx(ha,{text:"Fetching Model..."});if(y&&!e)return console.log("error",S),m.jsx(Ta,{error:S,context:`ModelExplorer > ${b}`});if(!E)return m.jsx(ha,{text:"Loading..."});const j=(E?.sourceInfos||[]).map((W,U)=>{try{return JSON.parse(W)?.name||`Source ${U+1}`}catch{return`Source ${U+1}`}}),_=j[f]||"";return m.jsxs(vX,{variant:"outlined",children:[m.jsx(bX,{children:m.jsx(cr,{sx:{flexDirection:"row"},children:m.jsx(ghe,{size:"small",id:"size-small-standard",disablePortal:!0,options:j,value:_,onChange:(W,U)=>{if(!U)return;const T=j.indexOf(U);T>=0&&(u(T),o?.(T))},renderInput:W=>m.jsx(hr,{...W}),style:{width:350,marginTop:"3px",marginLeft:"6px",marginBottom:"8px"}})})}),m.jsx(EE,{...$.panel}),m.jsx(XI,{children:m.jsxs(cr,{spacing:2,component:"section",children:[Array.isArray(E.sourceInfos)&&E.sourceInfos.length>0&&m.jsx(xhe,{sourceAndPaths:E.sourceInfos.map(W=>({sourceInfo:JSON.parse(W),modelPath:b})),selectedSourceIndex:f,existingQuery:n,onQueryChange:t,resourceUri:a,givens:A,gate:I}),m.jsx(_t,{height:"5px"})]})})]})}function AE({open:e,onClose:t,resourceUri:n,data:r,title:o="Data Sources",hasValidImport:a=!0,existingQuery:s,initialSelectedSourceIndex:l,onChange:c,onSourceChange:f,givens:u,onGivensChange:h,startingGivens:y}){return m.jsxs(dp,{open:e,onClose:t,fullScreen:!0,children:[m.jsxs(pp,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[o,m.jsx(Jr,{onClick:t,sx:{color:"text.secondary"},children:m.jsx(gp,{})})]}),m.jsx(fp,{children:a?m.jsx(b5,{resourceUri:n,data:r,existingQuery:s,initialSelectedSourceIndex:l,onChange:c,onSourceChange:f,givens:u,onGivensChange:h,startingGivens:y}):m.jsx("div",{children:"No valid import statement found in cell"})})]})}const x5=200;function Che(e){const t=npe(e.rawValue);if(t!==void 0)return`run: ${e.source} -> { drill: ${e.view}.${e.field} = ${t}; select: *; limit: ${x5} }`}function DE(e){const t=CJ(e);if(!(!t||t.refinement!==void 0||!xb(t.source)||!xb(t.view)))return{source:t.source,view:t.view}}const khe=e=>DE(e)?.source;function Ehe({request:e,environmentName:t,packageName:n,versionId:r,modelPath:o,givens:a,onClose:s,onDone:l}){const{theme:c}=Ts(),f=e?Che(e):void 0;return m.jsxs(dp,{open:e!==void 0,onClose:s,maxWidth:"lg",fullWidth:!0,children:[m.jsxs(pp,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",pb:.5},children:[m.jsxs(_t,{children:[e?m.jsxs(m.Fragment,{children:["Rows where"," ",m.jsx(_t,{component:"code",sx:{fontSize:"0.9em"},children:e.field})," ","is ",e.label]}):"Rows",m.jsx(It,{component:"div",variant:"caption",sx:{color:c.tileTitle,mt:.25},children:e?`The first ${x5} rows of ${e.source} behind this value, with the tile's own filters and the controls applied.`:""})]}),m.jsx(Jr,{onClick:s,"aria-label":"Close",size:"small",sx:{color:"text.secondary",ml:1},children:m.jsx(gp,{fontSize:"small"})})]}),m.jsxs(fp,{dividers:!0,sx:{p:0,minHeight:240},children:[f===void 0&&e&&m.jsx(It,{variant:"body2",sx:{p:2},children:"This value cannot be written as a filter, so its rows cannot be fetched."}),f!==void 0&&m.jsx(The,{query:f,environmentName:t,packageName:n,...r===void 0?{}:{versionId:r},modelPath:o,givens:a,...l?{onDone:l}:{}})]}),m.jsxs(HN,{sx:{px:3,py:1.5},children:[f!==void 0&&m.jsx(It,{variant:"caption",sx:{mr:"auto",color:c.tileTitle,fontFamily:"ui-monospace, monospace",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:f,children:f}),m.jsx(eo,{onClick:s,children:"Close"})]})]})}function The({query:e,environmentName:t,packageName:n,versionId:r,modelPath:o,givens:a,onDone:s}){const l=$E({environmentName:t,packageName:n,modelPath:o,...r===void 0?{}:{versionId:r},query:e,givens:a}),{isSuccess:c,isError:f}=l,u=C.useRef(void 0);return C.useEffect(()=>{u.current=HA()},[e]),C.useEffect(()=>{u.current===void 0||!c&&!f||(s?.(c,HA()-u.current),u.current=void 0)},[c,f,s]),m.jsx(_t,{sx:{p:1},children:m.jsx(RE,{state:l,context:e})})}function Mhe({tile:e,environmentName:t,packageName:n,versionId:r,modelPath:o,givens:a,onClose:s}){const l=B0({environmentName:t,packageName:n,modelPath:o,...r===void 0?{}:{versionId:r}}),{data:c}=PE(l,e!==void 0),f=C.useMemo(()=>{const h=khe(e);if(!c||h===void 0)return 0;const y=(c.sourceInfos??[]).findIndex(v=>{try{return JSON.parse(v)?.name===h}catch{return!1}});return y<0?0:y},[c,e]),u=C.useMemo(()=>{if(e===void 0)return;const h=DE(e),y=h?{definition:{kind:"arrow",source:{kind:"source_reference",name:h.source},view:{kind:"view_reference",name:h.view}}}:`run: ${e}`;return{query:`run: ${e}`,malloyQuery:y,malloyResult:void 0}},[e]);return e===void 0||!c?null:m.jsx(AE,{open:!0,onClose:s,resourceUri:l,data:c,title:`Explore: ${e}`,existingQuery:u,initialSelectedSourceIndex:f,startingGivens:a})}const Rhe=240;function S5({manifest:e,environmentName:t,packageName:n,versionId:r,documentName:o,givens:a,onGivensChange:s,onNavigate:l,height:c,maxResultSize:f,onEvent:u,chrome:h="card"}){const y=C.useMemo(()=>e.givens??[],[e]),v=Qk({specs:y,loaded:!0,startingValues:e.startingGivens,params:a,onGivensChange:s,documentKey:`${t}/${n}/${r??""}/${o}`,autorun:e.autorun!==!1,environmentName:t,packageName:n,modelPath:e.path,versionId:r,documentName:o}),{applied:S,declaredTypes:x,canSelf:w,onSelf:b}=v,k=C.useMemo(()=>{const D=new Set((e.tiles??[]).flatMap(Q=>Q.givenNames??[])),K=Object.entries(a??{}).filter(([Q])=>D.has(Q)&&!x.has(Q));return K.length===0?S:new Map([...K,...S])},[e,a,x,S]),[E,O]=C.useState(void 0),[$,A]=C.useState(void 0),I=C.useCallback(D=>{const K=DE(D.context);K!==void 0&&O({...K,field:D.field,rawValue:D.rawValue,label:D.label})},[]),j=C.useMemo(()=>Yg(k,x),[k,x]),_=C.useMemo(()=>Kk(S,x),[S,x]),{drill:W,drillMenu:U}=v5({onNavigate:l,onSelf:b,canSelf:w,selfLabel:"Filter this dashboard",onRows:I}),T=C.useCallback(D=>({canDrill:W.canDrill,onClick:K=>W.onClick({...K,context:D})}),[W]);if(e.error)return m.jsxs(cr,{spacing:2,children:[m.jsx(tD,{manifest:e}),m.jsx(ws,{severity:"error",children:e.error})]});const L=e.path,F=e.tiles??[],H=e.dashboardColumns??ine;return m.jsxs(cr,{spacing:2,children:[h==="card"&&m.jsx(tD,{manifest:e}),m.jsx(_t,{sx:{position:"sticky",top:0,zIndex:2,bgcolor:"background.default"},children:m.jsx(EE,{...v.panel,layout:"bar"})}),L===void 0?m.jsx(ws,{severity:"error",children:"This dashboard has no model path, so there is nothing to run."}):e.query!==void 0?m.jsx(GA,{environmentName:t,packageName:n,versionId:r,modelPath:L,queryName:e.query,givens:S,declaredTypes:x,height:c,maxResultSize:f,drill:W,chrome:h}):F.length>0?m.jsx(cne,{tiles:F,columns:H,minTilePx:Rhe,keyOf:(D,K)=>`${K}:${D.kind==="text"?`text:${D.name}`:D.query}`,renderTile:D=>D.kind==="text"||D.query===void 0?m.jsx(Ohe,{markdown:D.markdown??"",chrome:h}):m.jsx(GA,{environmentName:t,packageName:n,versionId:r,modelPath:L,tile:D.query,label:D.label,subtitle:D.subtitle,borderless:D.borderless,givens:k,declaredTypes:x,givenNames:D.givenNames,height:c??Wfe,maxResultSize:f,drill:T(D.query),chrome:h,ignoredFilters:dpe(D.givenNames,y),onExplore:()=>{A(D.query),u?.({type:"dashboard.explored",tile:D.query??""})}})}):m.jsx(ws,{severity:"warning",children:"This dashboard names neither a query nor any tiles."}),U,L!==void 0&&m.jsxs(m.Fragment,{children:[m.jsx(Ehe,{request:E,environmentName:t,packageName:n,...r===void 0?{}:{versionId:r},modelPath:L,givens:j,onClose:()=>O(void 0),onDone:(D,K)=>{E&&u?.({type:"dashboard.rows_shown",source:E.source,view:E.view,field:E.field,ok:D,durationMs:K})}}),m.jsx(Mhe,{tile:$,environmentName:t,packageName:n,...r===void 0?{}:{versionId:r},modelPath:L,givens:_,onClose:()=>A(void 0)})]})]})}function Ohe({markdown:e,chrome:t}){return m.jsx(f5,{chrome:t,children:m.jsx(rp,{variant:"document",children:e})})}function tD({manifest:e}){return m.jsx(w5,{title:e.title??e.name,...e.description?{description:e.description}:{}})}function w5({title:e,description:t}){return m.jsxs(_t,{children:[m.jsx(It,{variant:"h5",sx:{fontWeight:600},children:e}),t&&m.jsx(rp,{variant:"caption",children:t})]})}function ibe({resourceUri:e,dashboard:t,givens:n,onGivensChange:r,onNavigate:o,height:a,maxResultSize:s,onEvent:l,chrome:c}){const f=to(e),{apiClients:u}=Pr(),h=f.environmentName??"",y=f.packageName??"",v=f.versionId,S=!!f.environmentName&&!!f.packageName,{data:x,isSuccess:w,isError:b,error:k}=io({queryKey:["dashboard",h,y,v,t],queryFn:()=>u.dashboards.getDashboard(h,y,t,v),enabled:S}),E=x?.data;return S?b?m.jsx(Ta,{context:`${h} > ${y} > ${t}`,error:k}):!w||!E?m.jsx(ha,{text:"Loading dashboard…"}):m.jsx(S5,{manifest:E,environmentName:h,packageName:y,versionId:v,documentName:t,givens:n,onGivensChange:r,onNavigate:o,height:a,maxResultSize:s,onEvent:l,chrome:c}):m.jsxs(ws,{severity:"error",children:["A dashboard resource URI must name an environment and a package. Received: ",e]})}const C5=er(m.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"})),$he="publisher:resize";function Phe(e){return typeof e=="object"&&e!==null&&e.type===$he&&typeof e.height=="number"}function k5(e){return e.replace(/\/api\/v0\/?$/,"")}function Ahe({server:e,environmentName:t,packageName:n,path:r}){const o=r.startsWith("public/")?r.slice(7):r;return`${k5(e)}/environments/${encodeURIComponent(t)}/packages/${encodeURIComponent(n)}/`+o}function Dhe(e){try{const{environmentName:t,packageName:n,modelPath:r}=to(e);return!t||!n||!r?null:{environmentName:t,packageName:n,dataAppPath:r}}catch{return null}}function sbe({resourceUri:e}){const{server:t,apiClients:n}=Pr(),r=Dhe(e),o=r?.environmentName??"",a=r?.packageName??"",s=r?.dataAppPath??"",l=C.useMemo(()=>Ahe({server:t,environmentName:o,packageName:a,path:s}),[t,o,a,s]),c=io({queryKey:["data-apps",o,a],queryFn:()=>n.dataApps.listDataApps(o,a),enabled:!!r}).data?.data?.find(S=>S.path===s),f=c?.title??s,u=c?.fit==="viewport",h=C.useRef(null),[y,v]=C.useState(120);return C.useEffect(()=>{if(u)return;function S(x){Phe(x.data)&&x.source===h.current?.contentWindow&&x.data.height>0&&v(Math.ceil(x.data.height))}return window.addEventListener("message",S),()=>window.removeEventListener("message",S)},[u]),r?m.jsxs(_t,{sx:{p:3,...u?{height:"100%",display:"flex",flexDirection:"column"}:{maxWidth:1200,mx:"auto"}},children:[m.jsxs(cr,{direction:"row",alignItems:"baseline",spacing:1,sx:{mb:1,flexShrink:0},children:[m.jsx(It,{variant:"h6",sx:{fontWeight:600,letterSpacing:"-0.025em"},children:f}),m.jsx(It,{variant:"caption",color:"text.secondary",sx:{fontFamily:hi},children:s}),m.jsx(_t,{sx:{flex:1}}),m.jsx(xi,{title:"Open standalone in new tab",children:m.jsx(Jr,{size:"small",href:l,target:"_blank",rel:"noopener noreferrer","aria-label":"Open standalone in new tab",sx:{color:"text.secondary"},children:m.jsx(C5,{fontSize:"small"})})})]}),m.jsx(_t,{sx:{border:"1px solid",borderColor:"divider",borderRadius:1.5,overflow:"hidden",backgroundColor:"background.paper",...u?{flex:1,minHeight:0}:{}},children:m.jsx("iframe",{ref:h,src:l,title:f,sandbox:"allow-scripts allow-same-origin allow-forms",style:{display:"block",width:"100%",height:u?"100%":y,border:0}})})]}):m.jsxs(_t,{sx:{p:3,maxWidth:1200,mx:"auto"},children:[m.jsx(It,{variant:"h6",sx:{fontWeight:600},children:"Can't open data app"}),m.jsxs(It,{variant:"body2",color:"text.secondary",sx:{mt:1},children:["This data app link is missing an environment, package, or path:",m.jsx(_t,{component:"span",sx:{fontFamily:hi,ml:1},children:e})]})]})}function nl({title:e,count:t,description:n,action:r,children:o}){const a=C.useId();return m.jsxs(_t,{component:"section","aria-labelledby":a,sx:{mb:4},children:[m.jsxs(cr,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{mb:n?0:1,minHeight:40},children:[m.jsxs(cr,{direction:"row",alignItems:"baseline",spacing:1,children:[m.jsx(It,{id:a,variant:"h6",sx:{fontWeight:600,letterSpacing:"-0.025em",lineHeight:1.2},children:e}),t!==void 0&&m.jsxs(It,{variant:"caption",color:"text.secondary",children:["(",t,")"]})]}),r]}),n&&m.jsx(It,{variant:"body2",color:"text.secondary",sx:{mb:1.5},children:n}),m.jsx(_t,{children:o})]})}function jhe({resourceUri:e}){const{environmentName:t}=to(e),{apiClients:n}=Pr(),[r,o]=C.useState(!1),a=90,{data:s,isSuccess:l,isError:c,error:f}=io({queryKey:["about",t],queryFn:()=>n.environments.getEnvironment(t,!1)}),u=s?.data?.readme||"",h=u.split(/\s+/),y=h.length>a,v=h.slice(0,a).join(" ");return m.jsxs(m.Fragment,{children:[!l&&!c&&m.jsx(ha,{text:"Fetching About..."}),l&&u&&m.jsxs(nl,{title:"Readme",children:[m.jsx(rp,{variant:"caption",children:r||!y?u:v}),y&&m.jsx(_t,{sx:{mt:1},children:m.jsx(qg,{label:r?"Read less":"Read more",onClick:()=>o(!r)})})]}),c&&m.jsx(Ta,{error:f,context:`${t} > About`})]})}function Nhe(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:a}=e,s=Zk();C.useEffect(()=>{if(!o)return;function w(b){b.defaultPrevented||b.key==="Escape"&&r?.(b,"escapeKeyDown")}return document.addEventListener("keydown",w),()=>{document.removeEventListener("keydown",w)}},[o,r]);const l=Ut((w,b)=>{r?.(w,b)}),c=Ut(w=>{!r||w==null||s.start(w,()=>{l(null,"timeout")})});C.useEffect(()=>(o&&c(t),s.clear),[o,t,c,s]);const f=w=>{r?.(w,"clickaway")},u=s.clear,h=C.useCallback(()=>{t!=null&&c(a??t*.5)},[t,a,c]),y=w=>b=>{const k=w.onBlur;k?.(b),h()},v=w=>b=>{const k=w.onFocus;k?.(b),u()},S=w=>b=>{const k=w.onMouseEnter;k?.(b),u()},x=w=>b=>{const k=w.onMouseLeave;k?.(b),h()};return C.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",h),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",u)}},[n,o,h,u]),{getRootProps:(w={})=>{const b={...Tb(e),...Tb(w)};return{role:"presentation",...w,...b,onBlur:y(b),onFocus:v(b),onMouseEnter:S(b),onMouseLeave:x(b)}},onClickAway:f}}function nD(e){return e.substring(2).toLowerCase()}function Ihe(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Lhe(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,s=C.useRef(!1),l=C.useRef(null),c=C.useRef(!1),f=C.useRef(!1);C.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const u=mr(Dp(t),l),h=Ut(S=>{const x=f.current;f.current=!1;const w=Io(l.current);if(!c.current||!l.current||"clientX"in S&&Ihe(S,w))return;if(s.current){s.current=!1;return}let b;S.composedPath?b=S.composedPath().includes(l.current):b=!w.documentElement.contains(S.target)||l.current.contains(S.target),!b&&(n||!x)&&o(S)}),y=S=>x=>{f.current=!0;const w=t.props[S];w&&w(x)},v={ref:u};return a!==!1&&(v[a]=y(a)),C.useEffect(()=>{if(a!==!1){const S=nD(a),x=Io(l.current),w=()=>{s.current=!0};return x.addEventListener(S,h),x.addEventListener("touchmove",w),()=>{x.removeEventListener(S,h),x.removeEventListener("touchmove",w)}}},[h,a]),r!==!1&&(v[r]=y(r)),C.useEffect(()=>{if(r!==!1){const S=nD(r),x=Io(l.current);return x.addEventListener(S,h),()=>{x.removeEventListener(S,h)}}},[h,r]),C.cloneElement(t,v)}function zhe(e){return cn("MuiSnackbarContent",e)}tn("MuiSnackbarContent",["root","message","action"]);const Fhe=e=>{const{classes:t}=e;return sn({root:["root"],action:["action"],message:["message"]},zhe,t)},_he=Qe(Cd,{name:"MuiSnackbarContent",slot:"Root"})(Wn(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(Iw(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:Iw(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),Bhe=Qe("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),Uhe=Qe("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Vhe=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiSnackbarContent"}),{action:r,className:o,message:a,role:s="alert",...l}=n,c=n,f=Fhe(c);return m.jsxs(_he,{role:s,elevation:6,className:Lt(f.root,o),ownerState:c,ref:t,...l,children:[m.jsx(Bhe,{className:f.message,ownerState:c,children:a}),r?m.jsx(Uhe,{className:f.action,ownerState:c,children:r}):null]})});function Hhe(e){return cn("MuiSnackbar",e)}tn("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Whe=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${St(n.vertical)}${St(n.horizontal)}`]};return sn(r,Hhe,t)},qhe=Qe("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${St(n.anchorOrigin.vertical)}${St(n.anchorOrigin.horizontal)}`]]}})(Wn(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),Yhe=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiSnackbar"}),r=Sd(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:f,className:u,ClickAwayListenerProps:h,ContentProps:y,disableWindowBlurListener:v=!1,message:S,onBlur:x,onClose:w,onFocus:b,onMouseEnter:k,onMouseLeave:E,open:O,resumeHideDuration:$,slots:A={},slotProps:I={},TransitionComponent:j,transitionDuration:_=o,TransitionProps:{onEnter:W,onExited:U,...T}={},...L}=n,F={...n,anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:v,TransitionComponent:j,transitionDuration:_},H=Whe(F),{getRootProps:D,onClickAway:K}=Nhe({...F}),[Q,ee]=C.useState(!0),X=Se=>{ee(!0),U&&U(Se)},te=(Se,ce)=>{ee(!1),W&&W(Se,ce)},ae={slots:{transition:j,...A},slotProps:{content:y,clickAwayListener:h,transition:T,...I}},[ue,he]=lr("root",{ref:t,className:[H.root,u],elementType:qhe,getSlotProps:D,externalForwardedProps:{...ae,...L},ownerState:F}),[ie,{ownerState:le,...se}]=lr("clickAwayListener",{elementType:Lhe,externalForwardedProps:ae,getSlotProps:Se=>({onClickAway:(...ce)=>{const Ee=ce[0];Se.onClickAway?.(...ce),!Ee?.defaultMuiPrevented&&K(...ce)}}),ownerState:F}),[pe,ne]=lr("content",{elementType:Vhe,shouldForwardComponentProp:!0,externalForwardedProps:ae,additionalProps:{message:S,action:a},ownerState:F}),[me,xe]=lr("transition",{elementType:mg,externalForwardedProps:ae,getSlotProps:Se=>({onEnter:(...ce)=>{Se.onEnter?.(...ce),te(...ce)},onExited:(...ce)=>{Se.onExited?.(...ce),X(...ce)}}),additionalProps:{appear:!0,in:O,timeout:_,direction:s==="top"?"down":"up"},ownerState:F});return!O&&Q?null:m.jsx(ie,{...se,...A.clickAwayListener&&{ownerState:le},children:m.jsx(ue,{...he,children:m.jsx(me,{...xe,children:f||m.jsx(pe,{...ne})})})})});let lC;function Ghe(e){lC=e}function rD(e){if(lC)try{lC(e)}catch{}}function _l(e,t,n){return(async r=>{const o=Date.now();try{const a=await n(r);return rD({type:"console.mutation",resource:e,action:t,ok:!0,durationMs:Date.now()-o}),a}catch(a){throw rD({type:"console.mutation",resource:e,action:t,ok:!1,durationMs:Date.now()-o,reason:a instanceof Error?a.message:"An unknown error occurred"}),a}})}function jp({mutationFn:e,success:t,invalidates:n,closeDialog:r,resource:o,action:a}){const s=xd(),[l,c]=C.useState(""),f=tl({mutationFn:_l(o,a,e),onSuccess(){r();for(const u of n)s.invalidateQueries({queryKey:u});c(t)},onError(u){c(u instanceof Error?u.message:"An unknown error occurred")}});return{mutate:f.mutate,isPending:f.isPending,notice:m.jsx(Yhe,{open:l!=="",autoHideDuration:6e3,onClose:()=>c(""),message:l})}}const E5="https://docs.malloydata.dev/documentation",oD=`${E5}/user_guides/publishing`,Ov="https://github.com/malloydata/publisher/blob/main/docs",Ac={docsHome:`${E5}/`,publishing:`${oD}/publishing`,mcpAgents:`${oD}/mcp_agents`,surfaces:`${Ov}/choosing-a-surface.md`,givens:`${Ov}/givens.md`,materialization:`${Ov}/materialization.md`,connections:`${Ov}/connections.md`};function Khe({resourceUri:e}){const[t,n]=C.useState(!1),{apiClients:r}=Pr(),{environmentName:o}=to(e),a=jp({mutationFn(l){return r.packages.createPackage(o,{name:l.name,description:l.description,location:l.location})},success:"Package created",invalidates:[["packages",o]],closeDialog:()=>n(!1),resource:"package",action:"create"}),s=l=>{l.preventDefault();const c=new FormData(l.currentTarget),f=c.get("name")?.toString(),u=c.get("description")?.toString(),h=c.get("location")?.toString();a.mutate({name:f,description:u,location:h})};return m.jsxs(m.Fragment,{children:[m.jsx(_0,{label:"Package",onClick:()=>n(!0)}),m.jsx(ta,{open:t,onClose:()=>n(!1),title:"New package",description:m.jsxs(m.Fragment,{children:["A package is a directory of Malloy models and their data. Give its location as a GitHub, S3 or GCS URL, or an absolute path the server can read; see the"," ",m.jsx(_t,{component:"a",href:Ac.publishing,target:"_blank",rel:"noopener noreferrer",sx:{color:"text.primary"},children:"package format"}),"."]}),actions:m.jsxs(m.Fragment,{children:[m.jsx(eo,{disabled:a.isPending,onClick:()=>n(!1),children:"Cancel"}),m.jsx(eo,{type:"submit",form:"package-form",variant:"contained",loading:a.isPending,children:"Create package"})]}),children:m.jsx("form",{onSubmit:s,id:"package-form",children:m.jsxs(cr,{sx:{gap:2},children:[m.jsx(wa,{autoFocus:!0,required:!0,id:"name",name:"name",label:"Name",type:"text",fullWidth:!0,size:"small",InputLabelProps:{shrink:!0}}),m.jsx(wa,{id:"description",name:"description",label:"Description",multiline:!0,rows:3,fullWidth:!0,size:"small",InputLabelProps:{shrink:!0}}),m.jsx(wa,{id:"location",name:"location",label:"Location",type:"text",placeholder:"e.g. s3://my-bucket/my-package.zip",fullWidth:!0,size:"small",InputLabelProps:{shrink:!0}})]})})}),a.notice]})}const Qhe=er(m.jsx("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}));function tx({icon:e,tint:t,label:n,mono:r,description:o,rightLabel:a,trailingAction:s,onClick:l,ariaLabel:c}){const f=!!l;return m.jsxs(_t,{onClick:l,onKeyDown:f?u=>{l&&(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),l(u))}:void 0,role:f?"button":void 0,tabIndex:f?0:void 0,"aria-label":c,sx:u=>({display:"flex",alignItems:"center",gap:1.5,py:1,px:1,mx:-1,cursor:f?"pointer":"default",borderRadius:1.5,transition:"background-color 0.1s","&:hover":f?{backgroundColor:u.palette.mode==="dark"?"rgba(255, 255, 255, 0.08)":"grey.100"}:void 0,"&:focus-visible":f?{outline:"2px solid",outlineColor:"primary.main",outlineOffset:2}:void 0}),children:[m.jsx(_t,{sx:{width:32,height:32,borderRadius:1,bgcolor:t,color:"#FFFFFF",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:e}),m.jsxs(_t,{sx:{flex:1,minWidth:0,display:"flex",alignItems:"baseline",gap:1.5},children:[m.jsx(It,{variant:"body2",sx:{...r?{fontFamily:hi}:{},flexShrink:0,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n}),o&&m.jsx(It,{variant:"body2",color:"text.secondary",sx:{minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:o})]}),a&&m.jsx(It,{variant:"caption",color:"text.secondary",sx:{flexShrink:0},children:a}),s&&m.jsx(_t,{sx:{flexShrink:0,display:"flex",alignItems:"center"},children:s})]})}const T5=er(m.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"})),Xhe=tn("MuiBox",["root"]),Zhe=OL(),La=HC({themeId:Ap,defaultTheme:Zhe,defaultClassName:Xhe.root,generateClassName:mL.generate}),nx=XC({createStyledComponent:Qe("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>qn({props:e,name:"MuiStack"})}),aD=tn("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function Jhe(e){return cn("MuiListItemIcon",e)}const iD=tn("MuiListItemIcon",["root","alignItemsFlexStart"]),eme=e=>{const{alignItems:t,classes:n}=e;return sn({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Jhe,n)},tme=Qe("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Wn(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),jE=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiListItemIcon"}),{className:r,...o}=n,a=C.useContext(Ul),s={...n,alignItems:a.alignItems},l=eme(s);return m.jsx(tme,{className:Lt(l.root,r),ownerState:s,ref:t,...o})});function nme(e){return cn("MuiListItemText",e)}const Yf=tn("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),rme=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e;return sn({root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},nme,t)},ome=Qe("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Yf.primary}`]:t.primary},{[`& .${Yf.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${eA.root}:where(& .${Yf.primary})`]:{display:"block"},[`.${eA.root}:where(& .${Yf.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),NE=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiListItemText"}),{children:r,className:o,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:f,secondaryTypographyProps:u,slots:h={},slotProps:y={},...v}=n,{dense:S}=C.useContext(Ul);let x=l??r,w=f;const b={...n,disableTypography:a,inset:s,primary:!!x,secondary:!!w,dense:S},k=rme(b),E={slots:h,slotProps:{primary:c,secondary:u,...y}},[O,$]=lr("root",{className:Lt(k.root,o),elementType:ome,externalForwardedProps:{...E,...v},ownerState:b,ref:t}),[A,I]=lr("primary",{className:k.primary,elementType:br,externalForwardedProps:E,ownerState:b}),[j,_]=lr("secondary",{className:k.secondary,elementType:br,externalForwardedProps:E,ownerState:b});return x!=null&&x.type!==br&&!a&&(x=m.jsx(A,{variant:S?"body2":"body1",component:I?.variant?void 0:"span",...I,children:x})),w!=null&&w.type!==br&&!a&&(w=m.jsx(j,{variant:"body2",color:"textSecondary",..._,children:w})),m.jsxs(O,{...$,children:[x,w]})});function ame(e){return cn("MuiMenuItem",e)}const pm=tn("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),ime=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},sme=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:s}=e,l=sn({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},ame,s);return{...s,...l}},lme=Qe(hd,{shouldForwardProp:e=>Ya(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:ime})(Wn(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${pm.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${pm.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${pm.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${pm.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${pm.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${aD.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${aD.inset}`]:{marginLeft:52},[`& .${Yf.root}`]:{marginTop:0,marginBottom:0},[`& .${Yf.inset}`]:{paddingLeft:36},[`& .${iD.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${iD.root} svg`]:{fontSize:"1.25rem"}}}]}))),Zo=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:f="menuitem",tabIndex:u,className:h,...y}=n,v=C.useContext(Ul),S=C.useMemo(()=>({dense:a||v.dense||!1,disableGutters:l}),[v.dense,a,l]),x=C.useRef(null);Lo(()=>{r&&x.current&&x.current.focus()},[r]);const w={...n,dense:S.dense,divider:s,disableGutters:l},b=sme(n),k=mr(x,t);let E;return n.disabled||(E=u!==void 0?u:-1),m.jsx(Ul.Provider,{value:S,children:m.jsx(lme,{ref:k,role:f,tabIndex:E,component:o,focusVisibleClassName:Lt(b.focusVisible,c),className:Lt(b.root,h),...y,ownerState:w,classes:b})})}),Bl={postgres:[{label:"Host",name:"host",type:"text",required:!1},{label:"Port",name:"port",type:"number",required:!1},{label:"Database Name",name:"databaseName",type:"text",required:!1},{label:"User Name",name:"userName",type:"text",required:!1},{label:"Password",name:"password",type:"password",required:!1},{label:"Connection String",name:"connectionString",type:"text",required:!1}],bigquery:[{label:"Project ID",name:"defaultProjectId",type:"text",required:!1},{label:"Billing Project ID",name:"billingProjectId",type:"text",required:!1},{label:"Location",name:"location",type:"text",required:!1},{label:"Service Account Key JSON",name:"serviceAccountKeyJson",type:"text",required:!0},{label:"Maximum Bytes Billed",name:"maximumBytesBilled",type:"text",required:!1},{label:"Query Timeout Milliseconds",name:"queryTimeoutMilliseconds",type:"text",required:!1}],snowflake:[{label:"Account",name:"account",type:"text",required:!0},{label:"Username",name:"username",type:"text",required:!0},{label:"Password",name:"password",type:"password",required:!1},{label:"Role",name:"role",type:"text",required:!1},{label:"Warehouse",name:"warehouse",type:"text",required:!0},{label:"Database",name:"database",type:"text",required:!1},{label:"Schema",name:"schema",type:"text",required:!1},{label:"Response Timeout Milliseconds",name:"responseTimeoutMilliseconds",type:"text",required:!1},{label:"Private Key",name:"privateKey",type:"password",required:!1},{label:"Private Key Passphrase",name:"privateKeyPass",type:"password",required:!1}],trino:[{label:"Server",name:"server",type:"text",required:!0},{label:"Port",name:"port",type:"number",required:!1},{label:"Catalog",name:"catalog",type:"text",required:!1},{label:"Schema",name:"schema",type:"text",required:!1},{label:"User",name:"user",type:"text",required:!0},{label:"Password",name:"password",type:"password",required:!1},{label:"Peaka Key",name:"peakaKey",type:"password",required:!1}],databricks:[{label:"Host",name:"host",type:"text",required:!0},{label:"HTTP Path",name:"path",type:"text",required:!0},{label:"Access Token",name:"token",type:"password",required:!1},{label:"OAuth Client ID",name:"oauthClientId",type:"text",required:!1},{label:"OAuth Client Secret",name:"oauthClientSecret",type:"password",required:!1},{label:"Default Catalog",name:"defaultCatalog",type:"text",required:!1},{label:"Default Schema",name:"defaultSchema",type:"text",required:!1}],mysql:[{label:"Host",name:"host",type:"text",required:!0},{label:"Port",name:"port",type:"number",required:!0},{label:"User",name:"user",type:"text",required:!0},{label:"Password",name:"password",type:"password",required:!0},{label:"Database",name:"database",type:"text",required:!0}],duckdb:[],motherduck:[{label:"Access Token",name:"accessToken",type:"text",required:!0},{label:"Database",name:"database",type:"text",required:!1}],ducklake:[],publisher:[]},jm={postgres:"postgresConnection",bigquery:"bigqueryConnection",snowflake:"snowflakeConnection",trino:"trinoConnection",databricks:"databricksConnection",mysql:"mysqlConnection",duckdb:"duckdbConnection",motherduck:"motherduckConnection",ducklake:"ducklakeConnection",publisher:"publisherConnection"},M5=Object.values(O$).filter(e=>e!==O$.Publisher),cC={postgres:"postgresConnection",bigquery:"bigqueryConnection",snowflake:"snowflakeConnection",gcs:"gcsConnection",s3:"s3Connection",azure:"azureConnection"},bg=[{label:"Credential Provider",name:"provider",type:"text",required:!1,selectOptions:[{label:"Access key pair",value:"config"},{label:"Host credential chain",value:"credential_chain"}]},{label:"Access Key ID",name:"accessKeyId",type:"text",required:!1,visibleWhen:{field:"provider",value:"config"}},{label:"Secret Access Key",name:"secretAccessKey",type:"password",required:!1,visibleWhen:{field:"provider",value:"config"}},{label:"Credential Chain",name:"chain",type:"text",required:!1,visibleWhen:{field:"provider",value:"credential_chain"}},{label:"Region",name:"region",type:"text",required:!1},{label:"Endpoint",name:"endpoint",type:"text",required:!1},{label:"Session Token",name:"sessionToken",type:"password",required:!1,visibleWhen:{field:"provider",value:"config"}}],xg=[{label:"Key ID",name:"keyId",type:"text",required:!0},{label:"Secret",name:"secret",type:"password",required:!0}],cme=[{label:"Auth Type",name:"authType",type:"text",required:!0,selectOptions:[{label:"SAS Token",value:"sas_token"},{label:"Service Principal (SPN)",value:"service_principal"}]},{label:"SAS URL (e.g. https://account.blob.core.windows.net/container/file.parquet?sp=r&st=...)",name:"sasUrl",type:"text",required:!1,visibleWhen:{field:"authType",value:"sas_token"}},{label:"Tenant ID",name:"tenantId",type:"text",required:!1,visibleWhen:{field:"authType",value:"service_principal"}},{label:"Client ID",name:"clientId",type:"text",required:!1,visibleWhen:{field:"authType",value:"service_principal"}},{label:"Client Secret",name:"clientSecret",type:"password",required:!1,visibleWhen:{field:"authType",value:"service_principal"}},{label:"Account Name",name:"accountName",type:"text",required:!1,visibleWhen:{field:"authType",value:"service_principal"}},{label:"File URL (e.g. abfss://container/path/file.parquet)",name:"fileUrl",type:"text",required:!1,visibleWhen:{field:"authType",value:"service_principal"}}];function Ib(e){return e==="postgres"||e==="bigquery"||e==="snowflake"?Bl[e]||[]:e==="s3"?bg:e==="gcs"?xg:e==="azure"?cme:[]}function ume({onSubmit:e,isSubmitting:t}){const[n,r]=C.useState(!1),[o,a]=C.useState("postgres"),[s,l]=C.useState([]),[c,f]=C.useState("postgres"),[u,h]=C.useState("s3"),[y,v]=C.useState("config"),S=()=>{r(!0)},x=()=>{r(!1),l([]),a("postgres"),f("postgres"),h("s3"),v("config")},w=async O=>{O.preventDefault();const $=new FormData(O.currentTarget),A=$.get("name")?.toString(),I=$.get("type")?.toString(),j=Bl[I];if(!A)throw new Error("Name is required");if(!I)throw new Error("Type is required");let _;if(I==="ducklake"){const W={};if(c==="postgres"){const L=Bl.postgres,F={};if(L.forEach(H=>{const D=$.get(`ducklake_pg_${H.name}`)?.toString();D&&(F[H.name]=D)}),Object.keys(F).length===0)throw new Error("DuckLake requires catalog connection");W.postgresConnection=F}const U=$.get("ducklake_bucketUrl")?.toString();if(!U)throw new Error("DuckLake requires a bucket URL");const T={bucketUrl:U};if(u==="s3"){const L={};if(bg.forEach(F=>{const H=$.get(`ducklake_s3_${F.name}`)?.toString();H&&(L[F.name]=H)}),L.provider==="credential_chain")delete L.accessKeyId,delete L.secretAccessKey,delete L.sessionToken;else{if(delete L.chain,!L.accessKeyId)throw new Error("S3 Access Key ID is required");if(!L.secretAccessKey)throw new Error("S3 Secret Access Key is required")}Object.keys(L).length>0&&(T.s3Connection=L)}else if(u==="gcs"){const L={};if(xg.forEach(F=>{const H=$.get(`ducklake_gcs_${F.name}`)?.toString();H&&(L[F.name]=H)}),!L.keyId)throw new Error("GCS Key ID is required");if(!L.secret)throw new Error("GCS Secret is required");Object.keys(L).length>0&&(T.gcsConnection=L)}_={name:A,type:I,ducklakeConnection:{catalog:W,storage:T}}}else if(I==="duckdb"){if(s.length===0)throw new Error("DuckDB connection must have at least one attached database");const W=s.map((U,T)=>{const L=U.dbType,F=$.get(`attachedDb_${T}_name`)?.toString();if(!F)throw new Error(`Attached database at index ${T} must have a name`);const H={name:F,type:L},D=Ib(L);if(D&&D.length>0){const K={};if(D.forEach(ee=>{const X=$.get(`attachedDb_${T}_${ee.name}`)?.toString();X&&(K[ee.name]=X)}),L==="s3"){if(K.provider==="credential_chain")delete K.accessKeyId,delete K.secretAccessKey,delete K.sessionToken;else if(delete K.chain,!K.accessKeyId||!K.secretAccessKey)throw new Error(`Attached database "${F}" requires an S3 Access Key ID and Secret Access Key, or Credential Provider set to the host credential chain`)}const Q=cC[L];Q&&(H[Q]=K)}return H});_={name:A,type:I,duckdbConnection:{attachedDatabases:W}}}else{const W={};if(j.forEach(U=>{const T=$.get(U.name)?.toString();T&&(W[U.name]=T)}),I==="postgres"){if(!W.connectionString?.trim()){const U=["host","port","databaseName","userName","password"];for(const T of U)if(!W[T])throw new Error(`${j.find(L=>L.name===T)?.label||T} is required`)}}else if(I==="bigquery"){if(!W.serviceAccountKeyJson)throw new Error("Service Account Key JSON is required")}else if(I==="snowflake"){if(!W.account)throw new Error("Account is required");if(!W.username)throw new Error("Username is required");if(!W.warehouse)throw new Error("Warehouse is required");if(!W.password&&!W.privateKey)throw new Error("Either password or private key is required")}else if(I==="trino"){if(!W.server)throw new Error("Server is required");if(!W.user)throw new Error("User is required");if(W.server.trim().startsWith("https://")&&!W.password&&!W.peakaKey)throw new Error("Password is required for HTTPS connections (or use Peaka Key)")}else if(I==="mysql"){const U=["host","port","database","user","password"];for(const T of U)if(!W[T])throw new Error(`${j.find(L=>L.name===T)?.label||T} is required`)}else if(I==="motherduck"){if(!W.accessToken)throw new Error("Access Token is required")}else if(I==="databricks"){if(!W.host)throw new Error("Host is required");if(!W.path)throw new Error("HTTP Path is required");const U=W.oauthClientId&&W.oauthClientSecret;if(!W.token&&!U)throw new Error("Either Access Token or OAuth Client ID + Secret is required")}_={name:A,type:I,[jm[I]]:W}}await e(_),x()},b=()=>{l([...s,{name:"",dbType:"postgres"}])},k=O=>{l(s.filter(($,A)=>A!==O))},E=(O,$)=>{const A=[...s];A[O]={...A[O],dbType:$},l(A)};return m.jsxs(un.Fragment,{children:[m.jsx(_0,{label:"Connection",onClick:S}),m.jsx(ta,{open:n,onClose:x,title:"New connection",description:"Add a connection so packages in this environment can query your database with Malloy.",actions:m.jsxs(m.Fragment,{children:[m.jsx(yo,{disabled:t,onClick:x,children:"Cancel"}),m.jsx(yo,{type:"submit",form:"connection-form",variant:"contained",loading:t,children:"Create connection"})]}),children:m.jsx("form",{onSubmit:w,id:"connection-form",children:m.jsxs(nx,{sx:{gap:2},children:[m.jsx(hr,{autoFocus:!0,required:!0,id:"name",name:"name",label:"Name",type:"text",fullWidth:!0,size:"small"}),m.jsx(hr,{id:"type",name:"type",label:"Connection Type",fullWidth:!0,size:"small",value:o,select:!0,onChange:O=>a(O.target.value),children:M5.map(O=>m.jsx(Zo,{value:O,children:O},O))}),o==="ducklake"?m.jsxs(La,{sx:{mt:2},children:[m.jsxs(La,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[m.jsx(br,{variant:"subtitle2",sx:{mb:2},fontWeight:500,children:"Catalog"}),m.jsx(hr,{id:"ducklake_catalogType",label:"Catalog Type",fullWidth:!0,size:"small",value:c,select:!0,onChange:O=>f(O.target.value),children:m.jsx(Zo,{value:"postgres",children:"PostgreSQL"})}),c==="postgres"&&m.jsx(m.Fragment,{children:Bl.postgres.map(O=>m.jsx(hr,{id:`ducklake_pg_${O.name}`,name:`ducklake_pg_${O.name}`,label:O.label,type:O.type,fullWidth:!0,size:"small"},`pg_${O.name}`))})]}),m.jsxs(La,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[m.jsx(br,{variant:"subtitle2",sx:{mb:2},fontWeight:500,children:"Storage"}),m.jsxs(hr,{id:"ducklake_storageType",label:"Storage Type",fullWidth:!0,size:"small",value:u,select:!0,onChange:O=>h(O.target.value),children:[m.jsx(Zo,{value:"s3",children:"S3"}),m.jsx(Zo,{value:"gcs",children:"GCS"})]}),m.jsx(hr,{required:!0,id:"ducklake_bucketUrl",name:"ducklake_bucketUrl",label:u==="s3"?"Bucket URL (e.g. s3://my-bucket/path)":"Bucket URL (e.g. gs://my-bucket/path)",type:"text",fullWidth:!0,size:"small"}),u==="s3"&&m.jsxs(m.Fragment,{children:[m.jsx(br,{variant:"caption",sx:{mt:2,mb:1,display:"block"},color:"text.secondary",children:"S3 Credentials"}),bg.filter(O=>O.visibleWhen?y===O.visibleWhen.value:!0).map(O=>m.jsx(hr,{id:`ducklake_s3_${O.name}`,name:`ducklake_s3_${O.name}`,label:O.label,type:O.selectOptions?void 0:O.type,fullWidth:!0,size:"small",required:O.required,select:!!O.selectOptions,defaultValue:O.selectOptions?y:void 0,onChange:O.name==="provider"?$=>v($.target.value):void 0,placeholder:O.name==="region"?"us-east-1":void 0,children:O.selectOptions?.map($=>m.jsx(Zo,{value:$.value,children:$.label},$.value))},`s3_${O.name}`))]}),u==="gcs"&&m.jsxs(m.Fragment,{children:[m.jsx(br,{variant:"caption",sx:{mt:2,mb:1,display:"block"},color:"text.secondary",children:"GCS Credentials"}),xg.map(O=>m.jsx(hr,{id:`ducklake_gcs_${O.name}`,name:`ducklake_gcs_${O.name}`,label:O.label,type:O.type,fullWidth:!0,size:"small",required:O.required},`gcs_${O.name}`))]})]})]}):o==="duckdb"?m.jsxs(La,{sx:{mt:2},children:[m.jsxs(La,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[m.jsx(br,{variant:"subtitle1",fontWeight:500,children:"Attached Databases"}),m.jsx(qg,{label:"Database",icon:m.jsx(qk,{}),onClick:b,ariaLabel:"Add database"})]}),s.length===0&&m.jsx(br,{variant:"body2",color:"text.secondary",sx:{mb:2},children:'DuckDB connections require at least one attached database. Click "Add Database" to get started.'}),s.map((O,$)=>{const A=Ib(O.dbType);return m.jsxs(La,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[m.jsxs(La,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[m.jsxs(br,{variant:"subtitle2",children:["Database ",$+1]}),m.jsx(nu,{onClick:()=>k($),size:"small",color:"error",children:m.jsx(T5,{fontSize:"small"})})]}),m.jsx(hr,{required:!0,id:`attachedDb_${$}_name`,name:`attachedDb_${$}_name`,label:"Database Name",type:"text",fullWidth:!0,size:"small",defaultValue:O.name}),m.jsx(hr,{id:`attachedDb_${$}_type`,name:`attachedDb_${$}_type`,label:"Database Type",fullWidth:!0,size:"small",value:O.dbType,select:!0,onChange:I=>E($,I.target.value),children:Object.values(rL).map(I=>m.jsx(Zo,{value:I,children:I},I))}),A.filter(I=>I.visibleWhen?(O[I.visibleWhen.field]||A.find(j=>j.name===I.visibleWhen?.field)?.selectOptions?.[0]?.value)===I.visibleWhen.value:!0).map(I=>m.jsx(hr,{id:`attachedDb_${$}_${I.name}`,name:`attachedDb_${$}_${I.name}`,label:I.label,type:I.selectOptions?void 0:I.type,fullWidth:!0,size:"small",required:I.required,select:!!I.selectOptions,defaultValue:I.selectOptions?.[0]?.value,onChange:I.selectOptions?j=>{const _=[...s];_[$]={..._[$],[I.name]:j.target.value},l(_)}:void 0,children:I.selectOptions?.map(j=>m.jsx(Zo,{value:j.value,children:j.label},j.value))},I.name))]},$)})]}):Bl[o].map(O=>m.jsx(hr,{id:O.name,name:O.name,label:O.label,type:O.type,fullWidth:!0,size:"small",required:O.required},O.name))]})})})]})}function dme({connection:e,onCloseDialog:t,isMutating:n,onDelete:r}){const[o,a]=C.useState(!1),s=()=>{a(!0)},l=()=>{a(!1),t()};return m.jsxs(un.Fragment,{children:[m.jsxs(Zo,{"aria-label":`Delete connection ${e?.name??""}`.trim(),onClick:c=>{c.stopPropagation(),s()},sx:{color:"error.main"},children:[m.jsx(jE,{sx:{color:"inherit"},children:m.jsx(M0,{fontSize:"small"})}),m.jsx(NE,{children:"Delete"})]}),m.jsx(ta,{open:o,onClose:l,title:"Delete connection",actions:m.jsxs(m.Fragment,{children:[m.jsx(yo,{onClick:l,children:"Cancel"}),m.jsx(yo,{variant:"contained",color:"error",autoFocus:!0,onClick:()=>r(),loading:n,children:"Delete connection"})]}),children:m.jsxs(br,{variant:"body2",children:["Delete ",m.jsx("strong",{children:e.name}),"? Packages that query through it stop working, and this cannot be undone."]})})]})}const sD=new Set(["password","connectionString","privateKey","privateKeyPass","serviceAccountKeyJson","token","oauthClientSecret","accessToken","peakaKey","secret","secretAccessKey","sessionToken","clientSecret","sasUrl"]);function lD(e){const t=e.duckdbConnection?.attachedDatabases;return!t||t.length===0?[]:t.map(n=>({name:n.name||"",dbType:n.type||"postgres"}))}function cD(e){const t=e.ducklakeConnection;return t&&t.storage?.gcsConnection?"gcs":"s3"}function fme({connection:e,onSubmit:t,isSubmitting:n,onCloseDialog:r}){const[o,a]=C.useState(!1),[s,l]=C.useState(e.type),c=un.useMemo(()=>new Set(e.withheldFields??[]),[e.withheldFields]),[f,u]=C.useState(()=>lD(e)),[h,y]=C.useState("postgres"),[v,S]=C.useState(()=>cD(e)),[x,w]=C.useState(()=>e.ducklakeConnection?.storage?.s3Connection?.provider??"config"),b=()=>{u(lD(e)),l(e.type),w(e.ducklakeConnection?.storage?.s3Connection?.provider??"config"),y("postgres"),S(cD(e)),a(!0)},k=()=>{a(!1),r?.()},E=async _=>{_.preventDefault();const W=new FormData(_.currentTarget),U=W.get("name")?.toString(),T=W.get("type")?.toString(),L=Bl[T];if(!U)throw new Error("Name is required");if(!T)throw new Error("Type is required");let F;if(T==="ducklake"){const H={};if(h==="postgres"){const Q=Bl.postgres,ee={};if(Q.forEach(X=>{const te=W.get(`ducklake_pg_${X.name}`)?.toString();te&&(ee[X.name]=te)}),Object.keys(ee).length===0)throw new Error("DuckLake requires catalog connection");H.postgresConnection=ee}const D=W.get("ducklake_bucketUrl")?.toString();if(!D)throw new Error("DuckLake requires a bucket URL");const K={bucketUrl:D};if(v==="s3"){const Q={};bg.forEach(X=>{const te=W.get(`ducklake_s3_${X.name}`)?.toString();te&&(Q[X.name]=te)});const ee=e.ducklakeConnection?.storage?.s3Connection;if(ee&&(!Q.provider&&ee.provider&&(Q.provider=ee.provider),!Q.chain&&ee.chain&&(Q.chain=ee.chain),!Q.accessKeyId&&ee.accessKeyId&&(Q.accessKeyId=ee.accessKeyId)),Q.provider==="credential_chain")delete Q.accessKeyId,delete Q.secretAccessKey,delete Q.sessionToken;else if(delete Q.chain,!Q.accessKeyId)throw new Error("S3 Access Key ID is required");Object.keys(Q).length>0&&(K.s3Connection=Q)}else if(v==="gcs"){const Q={};xg.forEach(X=>{const te=W.get(`ducklake_gcs_${X.name}`)?.toString();te&&(Q[X.name]=te)});const ee=e.ducklakeConnection?.storage?.gcsConnection;if(ee&&!Q.keyId&&ee.keyId&&(Q.keyId=ee.keyId),!Q.keyId)throw new Error("GCS Key ID is required");Object.keys(Q).length>0&&(K.gcsConnection=Q)}F={name:U,type:T,ducklakeConnection:{catalog:H,storage:K}}}else if(T==="duckdb"){if(f.length===0)throw new Error("DuckDB connection must have at least one attached database");const H=f.map((D,K)=>{const Q=D.dbType,ee=W.get(`attachedDb_${K}_name`)?.toString();if(!ee)throw new Error(`Attached database at index ${K} must have a name`);const X={name:ee,type:Q},te=Ib(Q);if(te&&te.length>0){const ae={};if(te.forEach(he=>{const ie=W.get(`attachedDb_${K}_${he.name}`)?.toString();ie&&(ae[he.name]=ie)}),Q==="s3"){if(ae.provider==="credential_chain")delete ae.accessKeyId,delete ae.secretAccessKey,delete ae.sessionToken;else if(delete ae.chain,!ae.accessKeyId||!ae.secretAccessKey)throw new Error(`Attached database "${ee}" requires an S3 Access Key ID and Secret Access Key, or Credential Provider set to the host credential chain`)}const ue=cC[Q];ue&&(X[ue]=ae)}return X});F={name:U,type:T,duckdbConnection:{attachedDatabases:H}}}else{const H=e[jm[T]]||{},D={};if(L.forEach(K=>{const Q=W.get(K.name)?.toString(),ee=H[K.name];Q?D[K.name]=Q:sD.has(K.name)||(Q!==void 0?D[K.name]=Q:ee&&(D[K.name]=ee))}),T==="postgres"){const K=["host","port","databaseName","userName"],Q=c.has("postgresConnection.connectionString");if(!(D.connectionString?.trim()||Q)){const ee=K;for(const X of ee)if(!D[X])throw new Error(`${L.find(te=>te.name===X)?.label||X} is required`)}}else if(T==="snowflake"){if(!D.account)throw new Error("Account is required");if(!D.username)throw new Error("Username is required");if(!D.warehouse)throw new Error("Warehouse is required")}else if(T==="trino"){if(!D.server)throw new Error("Server is required");if(!D.user)throw new Error("User is required")}else if(T==="mysql"){const K=["host","port","database","user"];for(const Q of K)if(!D[Q])throw new Error(`${L.find(ee=>ee.name===Q)?.label||Q} is required`)}else if(T==="databricks"){if(!D.host)throw new Error("Host is required");if(!D.path)throw new Error("HTTP Path is required")}F={name:U,type:T,[jm[T]]:D}}await t(F),k()},O=()=>{u([...f,{name:"",dbType:"postgres"}])},$=_=>{u(f.filter((W,U)=>U!==_))},A=(_,W)=>{const U=[...f];U[_]={...U[_],dbType:W},u(U)},I=(_,W)=>{const U=e.duckdbConnection?.attachedDatabases;if(!U||!U[_])return"";const T=U[_],L=cC[T.type||""];return L&&T[L]?T[L][W]??"":""},j=_=>{const W=e.ducklakeConnection;if(!W)return"";if(_.startsWith("pg_")){const U=_.replace("pg_","");return W.catalog?.postgresConnection?.[U]??""}if(_==="bucketUrl")return W.storage?.bucketUrl??"";if(_.startsWith("s3_")){const U=_.replace("s3_","");return W.storage?.s3Connection?.[U]??""}if(_.startsWith("gcs_")){const U=_.replace("gcs_","");return W.storage?.gcsConnection?.[U]??""}return""};return m.jsxs(un.Fragment,{children:[m.jsxs(Zo,{"aria-label":`Edit connection ${e?.name??""}`.trim(),onClick:_=>{_.preventDefault(),_.stopPropagation(),b()},children:[m.jsx(jE,{children:m.jsx(zk,{fontSize:"small"})}),m.jsx(NE,{children:"Edit"})]}),m.jsx(ta,{open:o,onClose:k,title:"Edit connection",description:"Change how packages in this environment reach your database.",actions:m.jsxs(m.Fragment,{children:[m.jsx(yo,{disabled:n,onClick:k,children:"Cancel"}),m.jsx(yo,{type:"submit",form:"connection-form",variant:"contained",loading:n,children:"Save changes"})]}),children:m.jsx("form",{onSubmit:E,id:"connection-form",children:m.jsxs(nx,{sx:{gap:2},children:[m.jsx(hr,{autoFocus:!0,required:!0,id:"name",name:"name",label:"Name",type:"text",fullWidth:!0,size:"small",defaultValue:e.name}),m.jsx(hr,{id:"type",name:"type",label:"Connection Type",fullWidth:!0,size:"small",value:s,select:!0,onChange:_=>l(_.target.value),children:M5.map(_=>m.jsx(Zo,{value:_,children:_},_))}),s==="ducklake"?m.jsxs(La,{sx:{mt:2},children:[m.jsxs(La,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[m.jsx(br,{variant:"subtitle2",sx:{mb:2},fontWeight:500,children:"Catalog"}),m.jsx(hr,{id:"ducklake_catalogType",label:"Catalog Type",fullWidth:!0,size:"small",value:h,select:!0,onChange:_=>y(_.target.value),children:m.jsx(Zo,{value:"postgres",children:"PostgreSQL"})}),h==="postgres"&&m.jsx(m.Fragment,{children:Bl.postgres.map(_=>m.jsx(hr,{id:`ducklake_pg_${_.name}`,name:`ducklake_pg_${_.name}`,label:_.label,type:_.type,fullWidth:!0,size:"small",defaultValue:j(`pg_${_.name}`)},`pg_${_.name}`))})]}),m.jsxs(La,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[m.jsx(br,{variant:"subtitle2",sx:{mb:2},fontWeight:500,children:"Storage"}),m.jsxs(hr,{id:"ducklake_storageType",label:"Storage Type",fullWidth:!0,size:"small",value:v,select:!0,onChange:_=>S(_.target.value),children:[m.jsx(Zo,{value:"s3",children:"S3"}),m.jsx(Zo,{value:"gcs",children:"GCS"})]}),m.jsx(hr,{required:!0,id:"ducklake_bucketUrl",name:"ducklake_bucketUrl",label:v==="s3"?"Bucket URL (e.g. s3://my-bucket/path)":"Bucket URL (e.g. gs://my-bucket/path)",type:"text",fullWidth:!0,size:"small",defaultValue:j("bucketUrl")}),v==="s3"&&m.jsxs(m.Fragment,{children:[m.jsx(br,{variant:"caption",sx:{mt:2,mb:1,display:"block"},color:"text.secondary",children:"S3 Credentials"}),bg.filter(_=>_.visibleWhen?x===_.visibleWhen.value:!0).map(_=>m.jsx(hr,{id:`ducklake_s3_${_.name}`,name:`ducklake_s3_${_.name}`,label:_.label,type:_.selectOptions?void 0:_.type,fullWidth:!0,size:"small",required:_.required&&_.name!=="secretAccessKey",select:!!_.selectOptions,defaultValue:_.selectOptions?x:j(`s3_${_.name}`),onChange:_.name==="provider"?W=>w(W.target.value):void 0,placeholder:_.name==="region"?"us-east-1":_.name==="secretAccessKey"&&c.has("ducklakeConnection.storage.s3Connection.secretAccessKey")?"Leave empty to keep existing":void 0,children:_.selectOptions?.map(W=>m.jsx(Zo,{value:W.value,children:W.label},W.value))},`s3_${_.name}`))]}),v==="gcs"&&m.jsxs(m.Fragment,{children:[m.jsx(br,{variant:"caption",sx:{mt:2,mb:1,display:"block"},color:"text.secondary",children:"GCS Credentials"}),xg.map(_=>m.jsx(hr,{id:`ducklake_gcs_${_.name}`,name:`ducklake_gcs_${_.name}`,label:_.label,type:_.type,fullWidth:!0,size:"small",required:_.required&&_.name!=="secret",defaultValue:j(`gcs_${_.name}`),placeholder:_.name==="secret"&&c.has("ducklakeConnection.storage.gcsConnection.secret")?"Leave empty to keep existing":void 0},`gcs_${_.name}`))]})]})]}):s==="duckdb"?m.jsxs(La,{sx:{mt:2},children:[m.jsxs(La,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[m.jsx(br,{variant:"subtitle1",fontWeight:500,children:"Attached Databases"}),m.jsx(qg,{label:"Database",icon:m.jsx(qk,{}),onClick:O,ariaLabel:"Add database"})]}),f.length===0&&m.jsx(br,{variant:"body2",color:"text.secondary",sx:{mb:2},children:'DuckDB connections require at least one attached database. Click "Add Database" to get started.'}),f.map((_,W)=>{const U=Ib(_.dbType);return m.jsxs(La,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[m.jsxs(La,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[m.jsxs(br,{variant:"subtitle2",children:["Database ",W+1]}),m.jsx(nu,{"aria-label":`Remove attached database ${W+1}`,onClick:()=>$(W),size:"small",color:"error",children:m.jsx(T5,{fontSize:"small"})})]}),m.jsx(hr,{required:!0,id:`attachedDb_${W}_name`,name:`attachedDb_${W}_name`,label:"Database Name",type:"text",fullWidth:!0,size:"small",defaultValue:_.name}),m.jsx(hr,{id:`attachedDb_${W}_type`,name:`attachedDb_${W}_type`,label:"Database Type",fullWidth:!0,size:"small",value:_.dbType,select:!0,onChange:T=>A(W,T.target.value),children:Object.values(rL).map(T=>m.jsx(Zo,{value:T,children:T},T))}),U.filter(T=>T.visibleWhen?(_[T.visibleWhen.field]||I(W,T.visibleWhen.field)||U.find(L=>L.name===T.visibleWhen?.field)?.selectOptions?.[0]?.value)===T.visibleWhen.value:!0).map(T=>m.jsx(hr,{id:`attachedDb_${W}_${T.name}`,name:`attachedDb_${W}_${T.name}`,label:T.label,type:T.selectOptions?void 0:T.type,fullWidth:!0,size:"small",required:T.required,select:!!T.selectOptions,defaultValue:I(W,T.name)||T.selectOptions?.[0]?.value,onChange:T.selectOptions?L=>{const F=[...f];F[W]={...F[W],[T.name]:L.target.value},u(F)}:void 0,children:T.selectOptions?.map(L=>m.jsx(Zo,{value:L.value,children:L.label},L.value))},T.name))]},W)})]}):Bl[s].map(_=>{const W=e?.[jm[s]??""]?.[_.name??""]??"",U=_.type==="password"||sD.has(_.name),T=c.has(`${jm[s]??""}.${_.name}`);return m.jsx(hr,{id:_.name,name:_.name,label:_.label,type:_.type,fullWidth:!0,size:"small",required:_.required&&!U&&!W,defaultValue:W,placeholder:T?"Leave empty to keep existing":void 0,helperText:U?T?"Stored value is not shown. Leave empty to keep it.":"No value stored.":void 0},_.name)})]})})})]})}function uD(e,t){return!e||e.type!=="duckdb"?!1:(e.duckdbConnection?.attachedDatabases||[]).some(n=>n.type==="azure"&&n.name===t)}function pme(e){return e.startsWith("gs://")||e.startsWith("s3://")||e.startsWith("https://")||e.startsWith("abfss://")||e.startsWith("az://")}function hme({connectionName:e,resourceUri:t,schema:n,connection:r}){const{apiClients:o}=Pr(),{environmentName:a}=to(t),[s,l]=un.useState(null),[c,f]=un.useState(n||null),[u,h]=un.useState(!1),{data:y,isError:v,isLoading:S,error:x}=io({queryKey:["schemas",a,e],queryFn:()=>o.connections.listSchemas(a,e)}),w=y?.data||[];return m.jsxs(Vf,{container:!0,spacing:1,children:[!n&&m.jsx(Vf,{size:{xs:12,md:4},children:m.jsxs(Wa,{sx:{p:1,m:0},children:[m.jsxs(_t,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:0},children:[m.jsx(It,{variant:"overline",fontWeight:"bold",children:"Table Paths"}),m.jsx(pk,{control:m.jsx(JN,{checked:u,onChange:b=>h(b.target.checked)}),label:"Hidden Schemas"})]}),m.jsx(qc,{sx:{mt:"2px"}}),m.jsxs(_t,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[S&&m.jsx(ha,{text:"Loading schemas..."}),v&&m.jsx(Ta,{error:x,context:`${a} > ${e} > Schemas`}),!S&&!v&&w.length===0&&m.jsx(It,{variant:"body2",children:"No Schemas"}),!S&&!v&&w.length>0&&m.jsx(gk,{dense:!0,disablePadding:!0,children:w.map(b=>{const k=b.name;return b.isHidden&&!u?null:m.jsx(WN,{selected:c===k,onClick:()=>{f(k),l(null)},children:m.jsx(eu,{primary:k})},k)})})]})]})}),m.jsx(Vf,{size:{xs:12,md:n?6:4},children:c&&m.jsx(Wa,{sx:{p:1,m:0},children:m.jsx(yme,{connectionName:e,schemaName:c,onTableSelect:b=>{l(b)},resourceUri:t,connection:r})})}),m.jsx(Vf,{size:{xs:12,md:n?6:4},children:c&&s&&m.jsx(mme,{environmentName:a,connectionName:e,schemaName:c,tableResource:s})})]})}function mme({environmentName:e,connectionName:t,schemaName:n,tableResource:r}){const{apiClients:o}=Pr(),{data:a,isLoading:s,isError:l,error:c}=io({queryKey:["connectionTableDetail",e,t,n,r],queryFn:()=>o.connections.getTable(e,t,n,r),enabled:!!n&&!!r}),f={resource:a?.data?.resource??r,columns:a?.data?.columns??[]};return m.jsxs(Wa,{sx:{p:1,m:0},children:[l&&m.jsx(Ta,{error:c,context:`${e} > ${t} > ${n} > ${r}`}),!l&&m.jsx(gme,{table:f,loading:s})]})}function gme({table:e,loading:t}){return t?m.jsx(ha,{text:"Loading columns..."}):m.jsxs(m.Fragment,{children:[m.jsxs(It,{variant:"overline",fontWeight:"bold",sx:{display:"block",wordBreak:"break-all"},children:[e.resource.includes("://")||/\.(parquet|csv|json|tsv|ndjson)$/i.test(e.resource)?"File":"Table",": ",e.resource]}),m.jsx(qc,{}),m.jsx(_t,{sx:{mt:"10px",maxHeight:"600px",overflowY:"auto"},children:m.jsx(xG,{children:m.jsxs(Ng,{size:"small",sx:{"& .MuiTableCell-root":{padding:"10px"}},children:[m.jsx(Lg,{children:m.jsxs(sl,{children:[m.jsx(Xn,{children:"NAME"}),m.jsx(Xn,{children:"TYPE"})]})}),m.jsx(Ig,{children:e.columns?.sort((n,r)=>n.name.localeCompare(r.name))?.map(n=>m.jsxs(sl,{children:[m.jsx(Xn,{children:n.name}),m.jsx(Xn,{children:n.type})]},n.name))})]})})})]})}function yme({connectionName:e,schemaName:t,onTableSelect:n,resourceUri:r,connection:o}){const{environmentName:a}=to(r),{apiClients:s}=Pr(),[l,c]=C.useState(""),{data:f,isSuccess:u,isError:h,error:y,isLoading:v}=io({queryKey:["tablesInSchema",a,e,t],queryFn:()=>s.connections.listTables(a,e,t)}),S=uD(o,t),x=b=>S?b:b.split(".").pop()||b,w=u&&f?.data?f.data.filter(b=>x(b.resource).toLowerCase().includes(l.toLowerCase())).sort((b,k)=>x(b.resource).localeCompare(x(k.resource))):[];return m.jsxs(m.Fragment,{children:[m.jsx(It,{variant:"overline",fontWeight:"bold",children:pme(t)||uD(o,t)?`Files in ${t}`:`Tables in ${t}`}),m.jsx(qc,{}),m.jsx(_t,{sx:{mt:1,mb:1},children:m.jsx(wa,{size:"small",fullWidth:!0,placeholder:"Search tables...",value:l,onChange:b=>c(b.target.value),variant:"outlined"})}),m.jsx(qc,{}),m.jsxs(_t,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[v&&m.jsx(ha,{text:"Fetching Tables..."}),h&&m.jsx(Ta,{error:y,context:`${a} > ${e} > ${t}`}),u&&w.length===0&&m.jsx(It,{variant:"body2",children:"No Tables"}),u&&f?.data&&f.data.length>0&&m.jsx(gk,{dense:!0,disablePadding:!0,children:w.map(b=>{let k=x(b.resource);return!S&&b.resource.includes("://")&&(k=b.resource.split("/").pop()||b.resource),m.jsx(WN,{onClick:()=>n(b.resource),children:m.jsx(eu,{primary:k,secondary:b.columns.length>0?`${b.columns.length} columns`:void 0})},b.resource)})})]})]})}const vme={bigquery:"BigQuery",snowflake:"Snowflake",postgres:"PostgreSQL",mysql:"MySQL",trino:"Trino",databricks:"Databricks",duckdb:"DuckDB",ducklake:"DuckLake",s3:"S3",gcs:"GCS",azure:"Azure"};function bme(e){return e?vme[e]??e:""}function xme({resourceUri:e}){const{apiClients:t,mutable:n}=Pr(),r=xd(),{environmentName:o}=to(e),[a,s]=C.useState(""),[l,c]=C.useState(null),f=B0({environmentName:o,connectionName:l}),{data:u,isSuccess:h,isError:y,error:v}=io({queryKey:["connections",o],queryFn:()=>t.connections.listConnections(o)}),S=tl({mutationFn:_l("connection","create",E=>t.environments.updateEnvironment(o,{name:o,connections:[...u.data,E]})),onSuccess(){s("Connection added successfully"),r.invalidateQueries({queryKey:["connections",o]})},onError(E){s(E.message)}}),x=tl({mutationFn:_l("connection","update",E=>t.environments.updateEnvironment(o,{name:o,connections:u.data.map(O=>O.name===E.name?E:O)})),onSuccess(E,O){s(`Connection ${O.name} updated successfully`),r.invalidateQueries({queryKey:["connections",o]})},onError(E){s(E.message)}}),w=tl({mutationFn:_l("connection","delete",E=>{if(!E.name)throw new Error("Cannot delete a connection with no name");return t.connections.deleteConnection(o,E.name)}),onSuccess(E,O){s(`Connection ${O.name} deleted successfully`),r.invalidateQueries({queryKey:["connections",o]})},onError(E){s(E.message)}}),b=h?[...u.data].sort((E,O)=>(E.name??"").localeCompare(O.name??"")):[],k=S.isPending||x.isPending||w.isPending;return m.jsxs(nl,{title:"Connections",...h?{count:b.length}:{},description:"Database connections available to packages in this environment",...n&&h?{action:m.jsx(ume,{onSubmit:E=>S.mutateAsync(E),isSubmitting:S.isPending})}:{},children:[!h&&!y&&m.jsx(It,{variant:"body2",color:"text.secondary",children:"Fetching Connections..."}),y&&m.jsx(Ta,{error:v,context:`${o} > Connections`}),h&&b.length===0&&m.jsx(It,{variant:"body2",color:"text.secondary",children:"No connections yet."}),h&&b.length>0&&m.jsx(cr,{children:b.map(E=>m.jsx(Sme,{connection:E,mutable:n,isMutating:k,onOpenExplorer:()=>c(E.name??null),onEdit:O=>x.mutateAsync(O),onDelete:O=>w.mutateAsync(O)},E.name))}),m.jsx(v0,{open:a!=="",autoHideDuration:6e3,onClose:()=>s(""),message:a}),m.jsx(ta,{open:l!==null,onClose:()=>c(null),maxWidth:"lg",title:`Connection explorer: ${l??""}`,showClose:!0,children:l&&m.jsx(hme,{resourceUri:f,connectionName:l,connection:u?.data?.find(E=>E.name===l)})})]})}function Sme({connection:e,mutable:t,isMutating:n,onOpenExplorer:r,onEdit:o,onDelete:a}){const[s,l]=C.useState(null),c=!!s,f=h=>{h.stopPropagation(),l(h.currentTarget)},u=()=>l(null);return m.jsx(tx,{icon:m.jsx(Qhe,{sx:{fontSize:18}}),tint:Dk.connection,label:e.name??"",ariaLabel:e.name??"",description:bme(e.type),onClick:r,...t?{trailingAction:m.jsxs(m.Fragment,{children:[m.jsx(Jr,{size:"small",onClick:f,"aria-label":`Connection actions for ${e.name??""}`.trim(),children:m.jsx(R0,{fontSize:"small"})}),m.jsxs(tu,{anchorEl:s,open:c,onClose:u,onClick:h=>h.stopPropagation(),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[m.jsx(fme,{connection:e,onSubmit:o,isSubmitting:n,onCloseDialog:u}),m.jsx(dme,{connection:e,onCloseDialog:u,isMutating:n,onDelete:()=>a(e)})]})]})}:{}})}const wme=er([m.jsx("path",{d:"M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2m-1 18H5V9h14zm1-13H4V4h16z"},"0"),m.jsx("path",{d:"M9 12h6v2H9z"},"1")]);function Cme({resourceUri:e,onCloseDialog:t}){const[n,r]=C.useState(!1),{apiClients:o}=Pr(),a=()=>{r(!0)},s=()=>{r(!1),t()},{environmentName:l,packageName:c}=to(e),f=jp({mutationFn:()=>o.packages.deletePackage(l,c),success:"Package deleted",invalidates:[["packages",l]],closeDialog:s,resource:"package",action:"delete"});return m.jsxs(un.Fragment,{children:[m.jsxs(ea,{onClick:a,children:[m.jsx(Rp,{children:m.jsx(M0,{fontSize:"small"})}),m.jsx(eu,{children:"Delete"})]}),m.jsx(ta,{open:n,onClose:s,title:"Delete package",actions:m.jsxs(m.Fragment,{children:[m.jsx(yo,{onClick:s,children:"Cancel"}),m.jsx(yo,{variant:"contained",color:"error",autoFocus:!0,onClick:()=>f.mutate(),loading:f.isPending,children:"Delete package"})]}),children:m.jsxs(br,{variant:"body2",children:["Delete ",m.jsx("strong",{children:c}),"? The package stops being served and this cannot be undone."]})}),f.notice]})}function kme({package:e,resourceUri:t,onCloseDialog:n}){const[r,o]=C.useState(!1),{apiClients:a}=Pr(),s=()=>{o(!0)},l=()=>{o(!1),n()},{packageName:c,environmentName:f}=to(t),u=jp({mutationFn(y){return a.packages.updatePackage(f,c,{name:c,description:y.description})},success:"Package updated",invalidates:[["packages",f]],closeDialog:l,resource:"package",action:"update"}),h=y=>{y.preventDefault();const v=new FormData(y.currentTarget).get("description")?.toString();u.mutate({description:v})};return m.jsxs(un.Fragment,{children:[m.jsxs(ea,{onClick:s,children:[m.jsx(Rp,{children:m.jsx(zk,{fontSize:"small"})}),m.jsx(eu,{children:"Edit"})]}),m.jsx(ta,{open:r,onClose:l,title:"Edit package",description:`What ${e.name} is, for the people who open it.`,actions:m.jsxs(m.Fragment,{children:[m.jsx(yo,{disabled:u.isPending,onClick:l,children:"Cancel"}),m.jsx(yo,{type:"submit",form:"package-form",variant:"contained",loading:u.isPending,children:"Save changes"})]}),children:m.jsx("form",{onSubmit:h,id:"package-form",children:m.jsxs(cr,{sx:{gap:2},children:[m.jsx(hr,{autoFocus:!0,required:!0,id:"name",name:"name",label:"Name",disabled:!0,type:"text",fullWidth:!0,size:"small",defaultValue:e.name,InputLabelProps:{shrink:!0}}),m.jsx(hr,{id:"description",name:"description",label:"Description",multiline:!0,fullWidth:!0,rows:4,size:"small",defaultValue:e.description,InputLabelProps:{shrink:!0}})]})})}),u.notice]})}function Eme({onSelectPackage:e,resourceUri:t}){const{apiClients:n}=Pr(),{environmentName:r}=to(t),{data:o,isSuccess:a,isError:s,error:l}=io({queryKey:["packages",r],queryFn:()=>n.packages.listPackages(r)});if(s)return m.jsx(Ta,{error:l,context:`${r} > Packages`});if(!a)return m.jsx(ha,{text:"Fetching Packages..."});const c=[...o.data].sort((f,u)=>f.name.localeCompare(u.name));return m.jsx(cr,{children:c.map(f=>{const u=B0({environmentName:r,packageName:f.name});return m.jsx(Tme,{pkg:f,packageResourceUri:u,onSelectPackage:e},f.name)})})}function Tme({pkg:e,packageResourceUri:t,onSelectPackage:n}){const{mutable:r}=Pr(),[o,a]=C.useState(null),s=!!o,l=f=>{f.stopPropagation(),a(f.currentTarget)},c=()=>a(null);return m.jsx(tx,{icon:m.jsx(wme,{sx:{fontSize:18}}),tint:Dk.package,label:e.name,ariaLabel:e.name,...e.description?{description:e.description}:{},onClick:f=>n(e.name,f),...r?{trailingAction:m.jsxs(m.Fragment,{children:[m.jsx(Jr,{size:"small",onClick:l,"aria-label":`Package actions for ${e.name}`,children:m.jsx(R0,{fontSize:"small"})}),m.jsxs(tu,{anchorEl:o,open:s,onClose:c,onClick:f=>f.stopPropagation(),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[m.jsx(kme,{package:e,resourceUri:t,onCloseDialog:c}),m.jsx(Cme,{resourceUri:t,onCloseDialog:c})]})]})}:{}})}function lbe({onSelectPackage:e,resourceUri:t}){const{apiClients:n,mutable:r}=Pr(),{environmentName:o}=to(t),a=io({queryKey:["packages",o],queryFn:()=>n.packages.listPackages(o)});return C.useEffect(()=>{window.scrollTo({top:0,behavior:"auto"})},[]),m.jsxs(dk,{maxWidth:!1,sx:{maxWidth:1024,mx:"auto",px:3,py:6},children:[m.jsxs(_t,{sx:{mb:4},children:[m.jsx(_t,{children:m.jsx(g5,{label:"Publisher",onClick:s=>e("/",s)})}),m.jsx(It,{variant:"h4",component:"h1",sx:{fontWeight:600,letterSpacing:"-0.025em",mb:.5},children:o}),m.jsx(It,{variant:"body2",color:"text.secondary",children:"Manage packages and database connections in this environment. Open a package to explore its models and notebooks."})]}),m.jsx(nl,{title:"Packages",...a.isSuccess?{count:a.data.data.length}:{},description:"Published packages available for use in this environment",...r?{action:m.jsx(Khe,{resourceUri:t})}:{},children:m.jsx(Eme,{onSelectPackage:e,resourceUri:t})}),m.jsx(xme,{resourceUri:t}),m.jsx(jhe,{resourceUri:t})]})}$r.extend(Yk);const Mme=er(m.jsx("path",{d:"m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"})),R5=e=>{if(!e)return"Explore semantic models, run queries, and build dashboards";const t=e.replace(/^#+\s+/gm,"").replace(/\*\*(.*?)\*\*/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/`([^`]+)`/g,"$1").trim(),n=t.split(/\n\s*\n/)[1]||t;if(n.length<=120)return n;const r=n.substring(0,120).split(" ");return r.pop(),r.join(" ")+"..."},O5=(e,t)=>{const n=(e.readme||void 0)?.split(`
449
+ `)??[];return n.length===0&&(n.push(`# ${e.name}`),n.push("")),(e.readme?.length??0)>0&&t?n.splice(2,1,t):t&&n.push(t),n.join(`
450
+ `)};function dD(){const[e,t]=C.useState(!1),{apiClients:n}=Pr(),r=()=>{t(!0)},o=()=>{t(!1)},a=jp({mutationFn(l){return n.environments.createEnvironment({name:l.name,readme:O5({name:l.name,readme:""},l.description)})},success:"Environment created",invalidates:[["environments"]],closeDialog:o,resource:"environment",action:"create"}),s=async l=>{l.preventDefault();const c=new FormData(l.currentTarget),f=c.get("name")?.toString(),u=c.get("description")?.toString();if(!f)throw new Error("Name is required");a.mutate({name:f,description:u})};return m.jsxs(un.Fragment,{children:[m.jsx(_0,{label:"Environment",onClick:r}),m.jsx(ta,{open:e,onClose:o,title:"New environment",description:"An environment holds packages and the connections they query through.",actions:m.jsxs(m.Fragment,{children:[m.jsx(yo,{disabled:a.isPending,onClick:o,children:"Cancel"}),m.jsx(yo,{type:"submit",form:"environment-form",variant:"contained",loading:a.isPending,children:"Create environment"})]}),children:m.jsx("form",{onSubmit:s,id:"environment-form",children:m.jsxs(nx,{sx:{gap:2},children:[m.jsx(hr,{autoFocus:!0,required:!0,id:"name",name:"name",label:"Name",type:"text",fullWidth:!0,size:"small",InputLabelProps:{shrink:!0}}),m.jsx(hr,{id:"description",name:"description",label:"Description",placeholder:"Explore semantic models, run queries, and build dashboards",type:"text",fullWidth:!0,size:"small",InputLabelProps:{shrink:!0}})]})})}),a.notice]})}function Rme({environment:e,onCloseDialog:t}){const[n,r]=C.useState(!1),{apiClients:o}=Pr(),a=()=>{r(!0)},s=()=>{r(!1),t()},l=jp({mutationFn:()=>o.environments.deleteEnvironment(e.name),success:"Environment deleted",invalidates:[["environments"]],closeDialog:s,resource:"environment",action:"delete"});return m.jsxs(un.Fragment,{children:[m.jsxs(ea,{onClick:a,children:[m.jsx(Rp,{children:m.jsx(M0,{fontSize:"small"})}),m.jsx(eu,{children:"Delete"})]}),m.jsx(ta,{open:n,onClose:s,title:"Delete environment",actions:m.jsxs(m.Fragment,{children:[m.jsx(yo,{onClick:s,children:"Cancel"}),m.jsx(yo,{variant:"contained",color:"error",autoFocus:!0,onClick:()=>l.mutate(),loading:l.isPending,children:"Delete environment"})]}),children:m.jsxs(br,{variant:"body2",children:["Delete ",m.jsx("strong",{children:e.name}),"? Its packages stop being served and this cannot be undone."]})}),l.notice]})}function Ome({environment:e,onCloseDialog:t}){const[n,r]=C.useState(!1),{apiClients:o}=Pr(),a=()=>{r(!0)},s=()=>{r(!1),t()},l=jp({mutationFn(f){return o.environments.updateEnvironment(e.name,{name:e.name,readme:O5({name:e.name,readme:e.readme},f.description)})},success:"Environment updated",invalidates:[["environments"]],closeDialog:s,resource:"environment",action:"update"}),c=f=>{f.preventDefault();const u=new FormData(f.currentTarget).get("description")?.toString();l.mutate({description:u})};return m.jsxs(un.Fragment,{children:[m.jsxs(ea,{onClick:a,children:[m.jsx(Rp,{children:m.jsx(zk,{fontSize:"small"})}),m.jsx(eu,{children:"Edit"})]}),m.jsx(ta,{open:n,onClose:s,title:"Edit environment",description:"What this environment is, for the people who open it.",actions:m.jsxs(m.Fragment,{children:[m.jsx(yo,{disabled:l.isPending,onClick:s,children:"Cancel"}),m.jsx(yo,{type:"submit",form:"environment-form",variant:"contained",loading:l.isPending,children:"Save changes"})]}),children:m.jsx("form",{onSubmit:c,id:"environment-form",children:m.jsxs(nx,{sx:{gap:2},children:[m.jsx(hr,{autoFocus:!0,required:!0,id:"name",name:"name",label:"Name",disabled:!0,type:"text",fullWidth:!0,size:"small",defaultValue:e.name,InputLabelProps:{shrink:!0}}),m.jsx(hr,{id:"description",name:"description",label:"Description",type:"text",fullWidth:!0,size:"small",defaultValue:R5(e.readme),InputLabelProps:{shrink:!0}})]})})}),l.notice]})}const $me=[{title:"Model",body:"An agent writes what the data means in Malloy — sources, joins, measures — from a warehouse or a file, and validates each edit without a restart.",href:Ac.publishing},{title:"Analyze",body:"Claude, Cursor, Codex or an agent you build asks over MCP; applications and BI tools use REST. Every question runs against the model, never the raw tables.",href:Ac.mcpAgents},{title:"Surface",body:"Dashboards declared in Malloy, notebooks, and no-build HTML data apps, all shipped inside the package, plus this Console for browsing them.",href:Ac.surfaces},{title:"Govern",body:"Runtime parameters, row-level filters and per-source gates are declared in the model, so every surface reads the same rules rather than writing its own.",href:Ac.givens},{title:"Optimize",body:"One annotation materializes an expensive source into a table, and another rolls a measure up to a coarser grain, rebuilt on demand or on a schedule.",href:Ac.materialization},{title:"Run anywhere",body:"DuckDB is built in for CSV, Parquet, JSON and Excel; BigQuery, Snowflake, Postgres, Databricks, MotherDuck and more connect by configuration.",href:Ac.connections}];function Pme({href:e,children:t}){return m.jsx(_t,{component:"a",href:e,target:"_blank",rel:"noopener noreferrer",sx:{color:"text.primary",textDecoration:"underline"},children:t})}function cbe({onClickEnvironment:e}){const{apiClients:t,mutable:n}=Pr(),{data:r,isSuccess:o,isError:a,error:s}=io({queryKey:["environments"],queryFn:()=>t.environments.listEnvironments()});if(a)return m.jsx(Ta,{error:s,context:"Environments List"});if(!o)return m.jsx(ha,{text:"Loading environments..."});const l=r.data??[];return m.jsxs(dk,{maxWidth:"md",sx:{py:6},children:[m.jsxs(_t,{sx:{mb:5},children:[m.jsx(It,{variant:"h3",component:"h1",sx:{fontWeight:500,letterSpacing:"-0.025em",mb:1},children:"Publisher"}),m.jsx(It,{variant:"body1",color:"text.secondary",sx:{mb:3},children:"The analytics engine for Malloy."}),m.jsx(It,{variant:"body2",color:"text.secondary",sx:{maxWidth:720,lineHeight:1.6},children:"One data model, served over MCP and REST to AI agents, applications and BI tools. Write down what your data means — the sources, the joins, the measures, who may see what — and every surface asks the same model, so the same question returns the same numbers tomorrow."})]}),m.jsx(Vf,{container:!0,spacing:4,sx:{mb:5},children:$me.map(c=>m.jsx(Vf,{size:{xs:12,sm:6},children:m.jsxs(cr,{spacing:1,children:[m.jsx(It,{variant:"body2",component:"a",href:c.href,target:"_blank",rel:"noopener noreferrer",sx:{fontWeight:500,color:"text.primary",textDecoration:"none","&:hover":{textDecoration:"underline"}},children:c.title}),m.jsx(It,{variant:"body2",color:"text.secondary",sx:{lineHeight:1.6},children:c.body})]})},c.title))}),m.jsx(qc,{sx:{my:4}}),l.length>0?m.jsx(nl,{title:"Environments",count:l.length,description:"Published environments available on this server",...n?{action:m.jsx(dD,{})}:{},children:m.jsx(cr,{children:l.map(c=>m.jsx(Ame,{environment:c,...e?{onClickEnvironment:e}:{}},c.name))})}):m.jsxs(_t,{sx:{mb:4},children:[m.jsx(It,{variant:"h5",sx:{fontWeight:500,letterSpacing:"-0.025em",mb:1},children:"Get started"}),m.jsx(It,{variant:"body2",color:"text.secondary",sx:{mb:3,maxWidth:600},children:"Create your first Malloy environment to start exploring semantic models and building data experiences."}),n?m.jsx(dD,{}):m.jsx(eo,{variant:"contained",color:"primary",href:Ac.publishing,target:"_blank",rel:"noopener noreferrer",children:"Learn how to create models"})]}),m.jsx(qc,{sx:{my:4}}),m.jsxs(It,{variant:"body2",color:"text.secondary",sx:{maxWidth:720,lineHeight:1.6,mt:2},children:["Join the"," ",m.jsx(Pme,{href:"https://join.slack.com/t/malloy-community/shared_invite/zt-1kgfwgi5g-CrsdaRqs81QY67QW0~t_uw",children:"Malloy Slack community"})," ","to ask questions, share ideas, and contribute."]})]})}function Ame({environment:e,onClickEnvironment:t}){const{mutable:n}=Pr(),[r,o]=C.useState(null),a=!!r,s=R5(e.readme),l=f=>{f.stopPropagation(),o(f.currentTarget)},c=()=>o(null);return m.jsx(tx,{icon:m.jsx(Mme,{sx:{fontSize:18}}),tint:Dk.environment,label:e.name??"",ariaLabel:e.name??"",...s?{description:s}:{},...e.name&&t?{onClick:f=>t(`/${e.name}/`,f)}:{},...n?{trailingAction:m.jsxs(m.Fragment,{children:[m.jsx(Jr,{size:"small",onClick:l,"aria-label":`Environment actions for ${e.name}`,children:m.jsx(R0,{fontSize:"small"})}),m.jsxs(tu,{anchorEl:r,open:a,onClose:c,onClick:f=>f.stopPropagation(),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[m.jsx(Ome,{environment:e,onCloseDialog:c}),m.jsx(Rme,{environment:e,onCloseDialog:c})]})]})}:{}})}var Af={},si={},hm={},Df={},fD={},pD;function Dme(){return pD||(pD=1,Object.defineProperty(fD,"__esModule",{value:!0})),fD}var mm={},gm={},hD;function Ed(){if(hD)return gm;hD=1,Object.defineProperty(gm,"__esModule",{value:!0}),gm.CronField=void 0;let e=class $5{#e=!1;#t=!1;#n=!1;#o=[];options={rawValue:""};static get min(){throw new Error("min must be overridden")}static get max(){throw new Error("max must be overridden")}static get chars(){return Object.freeze([])}static get validChars(){return/^[?,*\dH/-]+$|^.*H\(\d+-\d+\)\/\d+.*$|^.*H\(\d+-\d+\).*$|^.*H\/\d+.*$/}static get constraints(){return{min:this.min,max:this.max,chars:this.chars,validChars:this.validChars}}constructor(n,r={rawValue:""}){if(!Array.isArray(n))throw new Error(`${this.constructor.name} Validation error, values is not an array`);if(!(n.length>0))throw new Error(`${this.constructor.name} Validation error, values contains no values`);this.options={...r,rawValue:r.rawValue??""},this.#o=n.sort($5.sorter),this.#n=this.options.wildcard!==void 0?this.options.wildcard:this.#r(),this.#e=this.options.rawValue.includes("L")||n.includes("L"),this.#t=this.options.rawValue.includes("?")||n.includes("?")}get min(){return this.constructor.min}get max(){return this.constructor.max}get chars(){return this.constructor.chars}get hasLastChar(){return this.#e}get hasQuestionMarkChar(){return this.#t}get isWildcard(){return this.#n}get values(){return this.#o}static sorter(n,r){const o=typeof n=="number",a=typeof r=="number";return o&&a?n-r:!o&&!a?n.localeCompare(r):o?-1:1}static findNearestValueInList(n,r,o){if(o){for(let a=n.length-1;a>=0;a--)if(n[a]<r)return n[a];return null}for(let a=0;a<n.length;a++)if(n[a]>r)return n[a];return null}findNearestValue(n,r){return this.constructor.findNearestValueInList(this.values,n,r)}serialize(){return{wildcard:this.#n,values:this.#o}}validate(){let n;const r=this.chars.length>0?` or chars ${this.chars.join("")}`:"",o=l=>c=>new RegExp(`^\\d{0,2}${c}$`).test(l),a=l=>(n=l,typeof l=="number"?l>=this.min&&l<=this.max:this.chars.some(o(l)));if(!this.#o.every(a))throw new Error(`${this.constructor.name} Validation error, got value ${n} expected range ${this.min}-${this.max}${r}`);const s=this.#o.find((l,c)=>this.#o.indexOf(l)!==c);if(s)throw new Error(`${this.constructor.name} Validation error, duplicate values found: ${s}`)}#r(){return this.options.rawValue.length>0?["*","?"].includes(this.options.rawValue):Array.from({length:this.max-this.min+1},(n,r)=>r+this.min).every(n=>this.#o.includes(n))}};return gm.CronField=e,gm}var mD;function jme(){if(mD)return mm;mD=1,Object.defineProperty(mm,"__esModule",{value:!0}),mm.CronDayOfMonth=void 0;const e=Ed(),t=1,n=31,r=Object.freeze(["L"]);let o=class extends e.CronField{static get min(){return t}static get max(){return n}static get chars(){return r}static get validChars(){return/^[?,*\dLH/-]+$|^.*H\(\d+-\d+\)\/\d+.*$|^.*H\(\d+-\d+\).*$|^.*H\/\d+.*$/}constructor(a,s){super(a,s),this.validate()}get values(){return super.values}};return mm.CronDayOfMonth=o,mm}var ym={},gD;function Nme(){if(gD)return ym;gD=1,Object.defineProperty(ym,"__esModule",{value:!0}),ym.CronDayOfWeek=void 0;const e=Ed(),t=0,n=7,r=Object.freeze(["L"]);let o=class extends e.CronField{static get min(){return t}static get max(){return n}static get chars(){return r}static get validChars(){return/^[?,*\dLH#/-]+$|^.*H\(\d+-\d+\)\/\d+.*$|^.*H\(\d+-\d+\).*$|^.*H\/\d+.*$/}constructor(a,s){super(a,s),this.validate()}get values(){return super.values}get nthDay(){return this.options.nthDayOfWeek??0}};return ym.CronDayOfWeek=o,ym}var vm={},yD;function Ime(){if(yD)return vm;yD=1,Object.defineProperty(vm,"__esModule",{value:!0}),vm.CronHour=void 0;const e=Ed(),t=0,n=23,r=Object.freeze([]);let o=class extends e.CronField{static get min(){return t}static get max(){return n}static get chars(){return r}constructor(a,s){super(a,s),this.validate()}get values(){return super.values}};return vm.CronHour=o,vm}var bm={},vD;function Lme(){if(vD)return bm;vD=1,Object.defineProperty(bm,"__esModule",{value:!0}),bm.CronMinute=void 0;const e=Ed(),t=0,n=59,r=Object.freeze([]);let o=class extends e.CronField{static get min(){return t}static get max(){return n}static get chars(){return r}constructor(a,s){super(a,s),this.validate()}get values(){return super.values}};return bm.CronMinute=o,bm}var xm={},bD={},Na={},xD;function zme(){if(xD)return Na;xD=1,Object.defineProperty(Na,"__esModule",{value:!0});class e extends Error{}class t extends e{constructor(R){super(`Invalid DateTime: ${R.toMessage()}`)}}class n extends e{constructor(R){super(`Invalid Interval: ${R.toMessage()}`)}}class r extends e{constructor(R){super(`Invalid Duration: ${R.toMessage()}`)}}class o extends e{}class a extends e{constructor(R){super(`Invalid unit ${R}`)}}class s extends e{}class l extends e{constructor(){super("Zone is an abstract class")}}const c="numeric",f="short",u="long",h={year:c,month:c,day:c},y={year:c,month:f,day:c},v={year:c,month:f,day:c,weekday:f},S={year:c,month:u,day:c},x={year:c,month:u,day:c,weekday:u},w={hour:c,minute:c},b={hour:c,minute:c,second:c},k={hour:c,minute:c,second:c,timeZoneName:f},E={hour:c,minute:c,second:c,timeZoneName:u},O={hour:c,minute:c,hourCycle:"h23"},$={hour:c,minute:c,second:c,hourCycle:"h23"},A={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:f},I={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:u},j={year:c,month:c,day:c,hour:c,minute:c},_={year:c,month:c,day:c,hour:c,minute:c,second:c},W={year:c,month:f,day:c,hour:c,minute:c},U={year:c,month:f,day:c,hour:c,minute:c,second:c},T={year:c,month:f,day:c,weekday:f,hour:c,minute:c},L={year:c,month:u,day:c,hour:c,minute:c,timeZoneName:f},F={year:c,month:u,day:c,hour:c,minute:c,second:c,timeZoneName:f},H={year:c,month:u,day:c,weekday:u,hour:c,minute:c,timeZoneName:u},D={year:c,month:u,day:c,weekday:u,hour:c,minute:c,second:c,timeZoneName:u};class K{get type(){throw new l}get name(){throw new l}get ianaName(){return this.name}get isUniversal(){throw new l}offsetName(R,z){throw new l}formatOffset(R,z){throw new l}offset(R){throw new l}equals(R){throw new l}get isValid(){throw new l}}let Q=null;class ee extends K{static get instance(){return Q===null&&(Q=new ee),Q}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(R,{format:z,locale:Y}){return ou(R,z,Y)}formatOffset(R,z){return Ps(this.offset(R),z)}offset(R){return-new Date(R).getTimezoneOffset()}equals(R){return R.type==="system"}get isValid(){return!0}}const X=new Map;function te(V){let R=X.get(V);return R===void 0&&(R=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:V,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),X.set(V,R)),R}const ae={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function ue(V,R){const z=V.format(R).replace(/\u200E/g,""),Y=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(z),[,J,be,Pe,_e,We,Rt,vn]=Y;return[Pe,J,be,_e,We,Rt,vn]}function he(V,R){const z=V.formatToParts(R),Y=[];for(let J=0;J<z.length;J++){const{type:be,value:Pe}=z[J],_e=ae[be];be==="era"?Y[_e]=Pe:Ue(_e)||(Y[_e]=parseInt(Pe,10))}return Y}const ie=new Map;class le extends K{static create(R){let z=ie.get(R);return z===void 0&&ie.set(R,z=new le(R)),z}static resetCache(){ie.clear(),X.clear()}static isValidSpecifier(R){return this.isValidZone(R)}static isValidZone(R){if(!R)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:R}).format(),!0}catch{return!1}}constructor(R){super(),this.zoneName=R,this.valid=le.isValidZone(R)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(R,{format:z,locale:Y}){return ou(R,z,Y,this.name)}formatOffset(R,z){return Ps(this.offset(R),z)}offset(R){if(!this.valid)return NaN;const z=new Date(R);if(isNaN(z))return NaN;const Y=te(this.name);let[J,be,Pe,_e,We,Rt,vn]=Y.formatToParts?he(Y,z):ue(Y,z);_e==="BC"&&(J=-Math.abs(J)+1);const Nn=Ga({year:J,month:be,day:Pe,hour:We===24?0:We,minute:Rt,second:vn,millisecond:0});let dr=+z;const Sn=dr%1e3;return dr-=Sn>=0?Sn:1e3+Sn,(Nn-dr)/(60*1e3)}equals(R){return R.type==="iana"&&R.name===this.name}get isValid(){return this.valid}}let se={};function pe(V,R={}){const z=JSON.stringify([V,R]);let Y=se[z];return Y||(Y=new Intl.ListFormat(V,R),se[z]=Y),Y}const ne=new Map;function me(V,R={}){const z=JSON.stringify([V,R]);let Y=ne.get(z);return Y===void 0&&(Y=new Intl.DateTimeFormat(V,R),ne.set(z,Y)),Y}const xe=new Map;function Se(V,R={}){const z=JSON.stringify([V,R]);let Y=xe.get(z);return Y===void 0&&(Y=new Intl.NumberFormat(V,R),xe.set(z,Y)),Y}const ce=new Map;function Ee(V,R={}){const{base:z,...Y}=R,J=JSON.stringify([V,Y]);let be=ce.get(J);return be===void 0&&(be=new Intl.RelativeTimeFormat(V,R),ce.set(J,be)),be}let Ge=null;function Te(){return Ge||(Ge=new Intl.DateTimeFormat().resolvedOptions().locale,Ge)}const je=new Map;function oe(V){let R=je.get(V);return R===void 0&&(R=new Intl.DateTimeFormat(V).resolvedOptions(),je.set(V,R)),R}const lt=new Map;function Ie(V){let R=lt.get(V);if(!R){const z=new Intl.Locale(V);R="getWeekInfo"in z?z.getWeekInfo():z.weekInfo,"minimalDays"in R||(R={...qe,...R}),lt.set(V,R)}return R}function et(V){const R=V.indexOf("-x-");R!==-1&&(V=V.substring(0,R));const z=V.indexOf("-u-");if(z===-1)return[V];{let Y,J;try{Y=me(V).resolvedOptions(),J=V}catch{const _e=V.substring(0,z);Y=me(_e).resolvedOptions(),J=_e}const{numberingSystem:be,calendar:Pe}=Y;return[J,be,Pe]}}function mt(V,R,z){return(z||R)&&(V.includes("-u-")||(V+="-u"),z&&(V+=`-ca-${z}`),R&&(V+=`-nu-${R}`)),V}function Wt(V){const R=[];for(let z=1;z<=12;z++){const Y=yn.utc(2009,z,1);R.push(V(Y))}return R}function zt(V){const R=[];for(let z=1;z<=7;z++){const Y=yn.utc(2016,11,13+z);R.push(V(Y))}return R}function tt(V,R,z,Y){const J=V.listingMode();return J==="error"?null:J==="en"?z(R):Y(R)}function Je(V){return V.numberingSystem&&V.numberingSystem!=="latn"?!1:V.numberingSystem==="latn"||!V.locale||V.locale.startsWith("en")||oe(V.locale).numberingSystem==="latn"}class ct{constructor(R,z,Y){this.padTo=Y.padTo||0,this.floor=Y.floor||!1;const{padTo:J,floor:be,...Pe}=Y;if(!z||Object.keys(Pe).length>0){const _e={useGrouping:!1,...Y};Y.padTo>0&&(_e.minimumIntegerDigits=Y.padTo),this.inf=Se(R,_e)}}format(R){if(this.inf){const z=this.floor?Math.floor(R):R;return this.inf.format(z)}else{const z=this.floor?Math.floor(R):is(R,3);return Xt(z,this.padTo)}}}class Le{constructor(R,z,Y){this.opts=Y,this.originalZone=void 0;let J;if(this.opts.timeZone)this.dt=R;else if(R.zone.type==="fixed"){const Pe=-1*(R.offset/60),_e=Pe>=0?`Etc/GMT+${Pe}`:`Etc/GMT${Pe}`;R.offset!==0&&le.create(_e).valid?(J=_e,this.dt=R):(J="UTC",this.dt=R.offset===0?R:R.setZone("UTC").plus({minutes:R.offset}),this.originalZone=R.zone)}else R.zone.type==="system"?this.dt=R:R.zone.type==="iana"?(this.dt=R,J=R.zone.name):(J="UTC",this.dt=R.setZone("UTC").plus({minutes:R.offset}),this.originalZone=R.zone);const be={...this.opts};be.timeZone=be.timeZone||J,this.dtf=me(z,be)}format(){return this.originalZone?this.formatToParts().map(({value:R})=>R).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const R=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?R.map(z=>{if(z.type==="timeZoneName"){const Y=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...z,value:Y}}else return z}):R}resolvedOptions(){return this.dtf.resolvedOptions()}}class ge{constructor(R,z,Y){this.opts={style:"long",...Y},!z&&Re()&&(this.rtf=Ee(R,Y))}format(R,z){return this.rtf?this.rtf.format(R,z):tc(z,R,this.opts.numeric,this.opts.style!=="long")}formatToParts(R,z){return this.rtf?this.rtf.formatToParts(R,z):[]}}const qe={firstDay:1,minimalDays:4,weekend:[6,7]};class De{static fromOpts(R){return De.create(R.locale,R.numberingSystem,R.outputCalendar,R.weekSettings,R.defaultToEN)}static create(R,z,Y,J,be=!1){const Pe=R||on.defaultLocale,_e=Pe||(be?"en-US":Te()),We=z||on.defaultNumberingSystem,Rt=Y||on.defaultOutputCalendar,vn=Zt(J)||on.defaultWeekSettings;return new De(_e,We,Rt,vn,Pe)}static resetCache(){Ge=null,ne.clear(),xe.clear(),ce.clear(),je.clear(),lt.clear()}static fromObject({locale:R,numberingSystem:z,outputCalendar:Y,weekSettings:J}={}){return De.create(R,z,Y,J)}constructor(R,z,Y,J,be){const[Pe,_e,We]=et(R);this.locale=Pe,this.numberingSystem=z||_e||null,this.outputCalendar=Y||We||null,this.weekSettings=J,this.intl=mt(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=be,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Je(this)),this.fastNumbersCached}listingMode(){const R=this.isEnglish(),z=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return R&&z?"en":"intl"}clone(R){return!R||Object.getOwnPropertyNames(R).length===0?this:De.create(R.locale||this.specifiedLocale,R.numberingSystem||this.numberingSystem,R.outputCalendar||this.outputCalendar,Zt(R.weekSettings)||this.weekSettings,R.defaultToEN||!1)}redefaultToEN(R={}){return this.clone({...R,defaultToEN:!0})}redefaultToSystem(R={}){return this.clone({...R,defaultToEN:!1})}months(R,z=!1){return tt(this,R,gl,()=>{const Y=this.intl==="ja"||this.intl.startsWith("ja-");z&=!Y;const J=z?{month:R,day:"numeric"}:{month:R},be=z?"format":"standalone";if(!this.monthsCache[be][R]){const Pe=Y?_e=>this.dtFormatter(_e,J).format():_e=>this.extract(_e,J,"month");this.monthsCache[be][R]=Wt(Pe)}return this.monthsCache[be][R]})}weekdays(R,z=!1){return tt(this,R,cs,()=>{const Y=z?{weekday:R,year:"numeric",month:"long",day:"numeric"}:{weekday:R},J=z?"format":"standalone";return this.weekdaysCache[J][R]||(this.weekdaysCache[J][R]=zt(be=>this.extract(be,Y,"weekday"))),this.weekdaysCache[J][R]})}meridiems(){return tt(this,void 0,()=>iu,()=>{if(!this.meridiemCache){const R={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[yn.utc(2016,11,13,9),yn.utc(2016,11,13,19)].map(z=>this.extract(z,R,"dayperiod"))}return this.meridiemCache})}eras(R){return tt(this,R,Ra,()=>{const z={era:R};return this.eraCache[R]||(this.eraCache[R]=[yn.utc(-40,1,1),yn.utc(2017,1,1)].map(Y=>this.extract(Y,z,"era"))),this.eraCache[R]})}extract(R,z,Y){const J=this.dtFormatter(R,z),be=J.formatToParts(),Pe=be.find(_e=>_e.type.toLowerCase()===Y);return Pe?Pe.value:null}numberFormatter(R={}){return new ct(this.intl,R.forceSimple||this.fastNumbers,R)}dtFormatter(R,z={}){return new Le(R,this.intl,z)}relFormatter(R={}){return new ge(this.intl,this.isEnglish(),R)}listFormatter(R={}){return pe(this.intl,R)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||oe(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:it()?Ie(this.locale):qe}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(R){return this.locale===R.locale&&this.numberingSystem===R.numberingSystem&&this.outputCalendar===R.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let wt=null;class Ct extends K{static get utcInstance(){return wt===null&&(wt=new Ct(0)),wt}static instance(R){return R===0?Ct.utcInstance:new Ct(R)}static parseSpecifier(R){if(R){const z=R.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(z)return new Ct(hl(z[1],z[2]))}return null}constructor(R){super(),this.fixed=R}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Ps(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Ps(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(R,z){return Ps(this.fixed,z)}get isUniversal(){return!0}offset(){return this.fixed}equals(R){return R.type==="fixed"&&R.fixed===this.fixed}get isValid(){return!0}}class yt extends K{constructor(R){super(),this.zoneName=R}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function st(V,R){if(Ue(V)||V===null)return R;if(V instanceof K)return V;if(nn(V)){const z=V.toLowerCase();return z==="default"?R:z==="local"||z==="system"?ee.instance:z==="utc"||z==="gmt"?Ct.utcInstance:Ct.parseSpecifier(z)||le.create(V)}else return Ot(V)?Ct.instance(V):typeof V=="object"&&"offset"in V&&typeof V.offset=="function"?V:new yt(V)}const jt={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},qt={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},mn=jt.hanidec.replace(/[\[|\]]/g,"").split("");function $n(V){let R=parseInt(V,10);if(isNaN(R)){R="";for(let z=0;z<V.length;z++){const Y=V.charCodeAt(z);if(V[z].search(jt.hanidec)!==-1)R+=mn.indexOf(V[z]);else for(const J in qt){const[be,Pe]=qt[J];Y>=be&&Y<=Pe&&(R+=Y-be)}}return parseInt(R,10)}else return R}const _n=new Map;function Un(){_n.clear()}function Jt({numberingSystem:V},R=""){const z=V||"latn";let Y=_n.get(z);Y===void 0&&(Y=new Map,_n.set(z,Y));let J=Y.get(R);return J===void 0&&(J=new RegExp(`${jt[z]}${R}`),Y.set(R,J)),J}let Dn=()=>Date.now(),Ce="system",Vn=null,Mn=null,en=null,$t=60,Fr,Fn=null;class on{static get now(){return Dn}static set now(R){Dn=R}static set defaultZone(R){Ce=R}static get defaultZone(){return st(Ce,ee.instance)}static get defaultLocale(){return Vn}static set defaultLocale(R){Vn=R}static get defaultNumberingSystem(){return Mn}static set defaultNumberingSystem(R){Mn=R}static get defaultOutputCalendar(){return en}static set defaultOutputCalendar(R){en=R}static get defaultWeekSettings(){return Fn}static set defaultWeekSettings(R){Fn=Zt(R)}static get twoDigitCutoffYear(){return $t}static set twoDigitCutoffYear(R){$t=R%100}static get throwOnInvalid(){return Fr}static set throwOnInvalid(R){Fr=R}static resetCaches(){De.resetCache(),le.resetCache(),yn.resetCache(),Un()}}class Ln{constructor(R,z){this.reason=R,this.explanation=z}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const ye=[0,31,59,90,120,151,181,212,243,273,304,334],Me=[0,31,60,91,121,152,182,213,244,274,305,335];function ze(V,R){return new Ln("unit out of range",`you specified ${R} (of type ${typeof R}) as a ${V}, which is invalid`)}function Ve(V,R,z){const Y=new Date(Date.UTC(V,R-1,z));V<100&&V>=0&&Y.setUTCFullYear(Y.getUTCFullYear()-1900);const J=Y.getUTCDay();return J===0?7:J}function rt(V,R,z){return z+(na(V)?Me:ye)[R-1]}function kt(V,R){const z=na(V)?Me:ye,Y=z.findIndex(be=>be<R),J=R-z[Y];return{month:Y+1,day:J}}function bt(V,R){return(V-R+7)%7+1}function Et(V,R=4,z=1){const{year:Y,month:J,day:be}=V,Pe=rt(Y,J,be),_e=bt(Ve(Y,J,be),z);let We=Math.floor((Pe-_e+14-R)/7),Rt;return We<1?(Rt=Y-1,We=ss(Rt,R,z)):We>ss(Y,R,z)?(Rt=Y+1,We=1):Rt=Y,{weekYear:Rt,weekNumber:We,weekday:_e,...ml(V)}}function Pt(V,R=4,z=1){const{weekYear:Y,weekNumber:J,weekday:be}=V,Pe=bt(Ve(Y,1,R),z),_e=ur(Y);let We=J*7+be-Pe-7+R,Rt;We<1?(Rt=Y-1,We+=ur(Rt)):We>_e?(Rt=Y+1,We-=ur(Y)):Rt=Y;const{month:vn,day:Nn}=kt(Rt,We);return{year:Rt,month:vn,day:Nn,...ml(V)}}function Kt(V){const{year:R,month:z,day:Y}=V,J=rt(R,z,Y);return{year:R,ordinal:J,...ml(V)}}function At(V){const{year:R,ordinal:z}=V,{month:Y,day:J}=kt(R,z);return{year:R,month:Y,day:J,...ml(V)}}function Ft(V,R){if(!Ue(V.localWeekday)||!Ue(V.localWeekNumber)||!Ue(V.localWeekYear)){if(!Ue(V.weekday)||!Ue(V.weekNumber)||!Ue(V.weekYear))throw new o("Cannot mix locale-based week fields with ISO-based week fields");return Ue(V.localWeekday)||(V.weekday=V.localWeekday),Ue(V.localWeekNumber)||(V.weekNumber=V.localWeekNumber),Ue(V.localWeekYear)||(V.weekYear=V.localWeekYear),delete V.localWeekday,delete V.localWeekNumber,delete V.localWeekYear,{minDaysInFirstWeek:R.getMinDaysInFirstWeek(),startOfWeek:R.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function de(V,R=4,z=1){const Y=Yt(V.weekYear),J=bn(V.weekNumber,1,ss(V.weekYear,R,z)),be=bn(V.weekday,1,7);return Y?J?be?!1:ze("weekday",V.weekday):ze("week",V.weekNumber):ze("weekYear",V.weekYear)}function fe(V){const R=Yt(V.year),z=bn(V.ordinal,1,ur(V.year));return R?z?!1:ze("ordinal",V.ordinal):ze("year",V.year)}function Fe(V){const R=Yt(V.year),z=bn(V.month,1,12),Y=bn(V.day,1,_r(V.year,V.month));return R?z?Y?!1:ze("day",V.day):ze("month",V.month):ze("year",V.year)}function ft(V){const{hour:R,minute:z,second:Y,millisecond:J}=V,be=bn(R,0,23)||R===24&&z===0&&Y===0&&J===0,Pe=bn(z,0,59),_e=bn(Y,0,59),We=bn(J,0,999);return be?Pe?_e?We?!1:ze("millisecond",J):ze("second",Y):ze("minute",z):ze("hour",R)}function Ue(V){return typeof V>"u"}function Ot(V){return typeof V=="number"}function Yt(V){return typeof V=="number"&&V%1===0}function nn(V){return typeof V=="string"}function ve(V){return Object.prototype.toString.call(V)==="[object Date]"}function Re(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function it(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function xt(V){return Array.isArray(V)?V:[V]}function Tt(V,R,z){if(V.length!==0)return V.reduce((Y,J)=>{const be=[R(J),J];return Y&&z(Y[0],be[0])===Y[0]?Y:be},null)[1]}function Mt(V,R){return R.reduce((z,Y)=>(z[Y]=V[Y],z),{})}function Dt(V,R){return Object.prototype.hasOwnProperty.call(V,R)}function Zt(V){if(V==null)return null;if(typeof V!="object")throw new s("Week settings must be an object");if(!bn(V.firstDay,1,7)||!bn(V.minimalDays,1,7)||!Array.isArray(V.weekend)||V.weekend.some(R=>!bn(R,1,7)))throw new s("Invalid week settings");return{firstDay:V.firstDay,minimalDays:V.minimalDays,weekend:Array.from(V.weekend)}}function bn(V,R,z){return Yt(V)&&V>=R&&V<=z}function nr(V,R){return V-R*Math.floor(V/R)}function Xt(V,R=2){const z=V<0;let Y;return z?Y="-"+(""+-V).padStart(R,"0"):Y=(""+V).padStart(R,"0"),Y}function Ar(V){if(!(Ue(V)||V===null||V===""))return parseInt(V,10)}function so(V){if(!(Ue(V)||V===null||V===""))return parseFloat(V)}function To(V){if(!(Ue(V)||V===null||V==="")){const R=parseFloat("0."+V)*1e3;return Math.floor(R)}}function is(V,R,z="round"){const Y=10**R;switch(z){case"expand":return V>0?Math.ceil(V*Y)/Y:Math.floor(V*Y)/Y;case"trunc":return Math.trunc(V*Y)/Y;case"round":return Math.round(V*Y)/Y;case"floor":return Math.floor(V*Y)/Y;case"ceil":return Math.ceil(V*Y)/Y;default:throw new RangeError(`Value rounding ${z} is out of range`)}}function na(V){return V%4===0&&(V%100!==0||V%400===0)}function ur(V){return na(V)?366:365}function _r(V,R){const z=nr(R-1,12)+1,Y=V+(R-z)/12;return z===2?na(Y)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][z-1]}function Ga(V){let R=Date.UTC(V.year,V.month-1,V.day,V.hour,V.minute,V.second,V.millisecond);return V.year<100&&V.year>=0&&(R=new Date(R),R.setUTCFullYear(V.year,V.month-1,V.day)),+R}function pl(V,R,z){return-bt(Ve(V,1,R),z)+R-1}function ss(V,R=4,z=1){const Y=pl(V,R,z),J=pl(V+1,R,z);return(ur(V)-Y+J)/7}function Ti(V){return V>99?V:V>on.twoDigitCutoffYear?1900+V:2e3+V}function ou(V,R,z,Y=null){const J=new Date(V),be={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};Y&&(be.timeZone=Y);const Pe={timeZoneName:R,...be},_e=new Intl.DateTimeFormat(z,Pe).formatToParts(J).find(We=>We.type.toLowerCase()==="timezonename");return _e?_e.value:null}function hl(V,R){let z=parseInt(V,10);Number.isNaN(z)&&(z=0);const Y=parseInt(R,10)||0,J=z<0||Object.is(z,-0)?-Y:Y;return z*60+J}function ls(V){const R=Number(V);if(typeof V=="boolean"||V===""||!Number.isFinite(R))throw new s(`Invalid unit value ${V}`);return R}function Zl(V,R){const z={};for(const Y in V)if(Dt(V,Y)){const J=V[Y];if(J==null)continue;z[R(Y)]=ls(J)}return z}function Ps(V,R){const z=Math.trunc(Math.abs(V/60)),Y=Math.trunc(Math.abs(V%60)),J=V>=0?"+":"-";switch(R){case"short":return`${J}${Xt(z,2)}:${Xt(Y,2)}`;case"narrow":return`${J}${z}${Y>0?`:${Y}`:""}`;case"techie":return`${J}${Xt(z,2)}${Xt(Y,2)}`;default:throw new RangeError(`Value format ${R} is out of range for property format`)}}function ml(V){return Mt(V,["hour","minute","second","millisecond"])}const au=["January","February","March","April","May","June","July","August","September","October","November","December"],Td=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Np=["J","F","M","A","M","J","J","A","S","O","N","D"];function gl(V){switch(V){case"narrow":return[...Np];case"short":return[...Td];case"long":return[...au];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Jl=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ec=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],As=["M","T","W","T","F","S","S"];function cs(V){switch(V){case"narrow":return[...As];case"short":return[...ec];case"long":return[...Jl];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const iu=["AM","PM"],su=["Before Christ","Anno Domini"],Md=["BC","AD"],yl=["B","A"];function Ra(V){switch(V){case"narrow":return[...yl];case"short":return[...Md];case"long":return[...su];default:return null}}function lu(V){return iu[V.hour<12?0:1]}function vl(V,R){return cs(R)[V.weekday-1]}function Mi(V,R){return gl(R)[V.month-1]}function cu(V,R){return Ra(R)[V.year<0?0:1]}function tc(V,R,z="always",Y=!1){const J={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},be=["hours","minutes","seconds"].indexOf(V)===-1;if(z==="auto"&&be){const Nn=V==="days";switch(R){case 1:return Nn?"tomorrow":`next ${J[V][0]}`;case-1:return Nn?"yesterday":`last ${J[V][0]}`;case 0:return Nn?"today":`this ${J[V][0]}`}}const Pe=Object.is(R,-0)||R<0,_e=Math.abs(R),We=_e===1,Rt=J[V],vn=Y?We?Rt[1]:Rt[2]||Rt[1]:We?J[V][0]:V;return Pe?`${_e} ${vn} ago`:`in ${_e} ${vn}`}function uu(V,R){let z="";for(const Y of V)Y.literal?z+=Y.val:z+=R(Y.val);return z}const nc={D:h,DD:y,DDD:S,DDDD:x,t:w,tt:b,ttt:k,tttt:E,T:O,TT:$,TTT:A,TTTT:I,f:j,ff:W,fff:L,ffff:H,F:_,FF:U,FFF:F,FFFF:D};class no{static create(R,z={}){return new no(R,z)}static parseFormat(R){let z=null,Y="",J=!1;const be=[];for(let Pe=0;Pe<R.length;Pe++){const _e=R.charAt(Pe);_e==="'"?((Y.length>0||J)&&be.push({literal:J||/^\s+$/.test(Y),val:Y===""?"'":Y}),z=null,Y="",J=!J):J||_e===z?Y+=_e:(Y.length>0&&be.push({literal:/^\s+$/.test(Y),val:Y}),Y=_e,z=_e)}return Y.length>0&&be.push({literal:J||/^\s+$/.test(Y),val:Y}),be}static macroTokenToFormatOpts(R){return nc[R]}constructor(R,z){this.opts=z,this.loc=R,this.systemLoc=null}formatWithSystemDefault(R,z){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(R,{...this.opts,...z}).format()}dtFormatter(R,z={}){return this.loc.dtFormatter(R,{...this.opts,...z})}formatDateTime(R,z){return this.dtFormatter(R,z).format()}formatDateTimeParts(R,z){return this.dtFormatter(R,z).formatToParts()}formatInterval(R,z){return this.dtFormatter(R.start,z).dtf.formatRange(R.start.toJSDate(),R.end.toJSDate())}resolvedOptions(R,z){return this.dtFormatter(R,z).resolvedOptions()}num(R,z=0,Y=void 0){if(this.opts.forceSimple)return Xt(R,z);const J={...this.opts};return z>0&&(J.padTo=z),Y&&(J.signDisplay=Y),this.loc.numberFormatter(J).format(R)}formatDateTimeFromString(R,z){const Y=this.loc.listingMode()==="en",J=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",be=(Sn,Kr)=>this.loc.extract(R,Sn,Kr),Pe=Sn=>R.isOffsetFixed&&R.offset===0&&Sn.allowZ?"Z":R.isValid?R.zone.formatOffset(R.ts,Sn.format):"",_e=()=>Y?lu(R):be({hour:"numeric",hourCycle:"h12"},"dayperiod"),We=(Sn,Kr)=>Y?Mi(R,Sn):be(Kr?{month:Sn}:{month:Sn,day:"numeric"},"month"),Rt=(Sn,Kr)=>Y?vl(R,Sn):be(Kr?{weekday:Sn}:{weekday:Sn,month:"long",day:"numeric"},"weekday"),vn=Sn=>{const Kr=no.macroTokenToFormatOpts(Sn);return Kr?this.formatWithSystemDefault(R,Kr):Sn},Nn=Sn=>Y?cu(R,Sn):be({era:Sn},"era"),dr=Sn=>{switch(Sn){case"S":return this.num(R.millisecond);case"u":case"SSS":return this.num(R.millisecond,3);case"s":return this.num(R.second);case"ss":return this.num(R.second,2);case"uu":return this.num(Math.floor(R.millisecond/10),2);case"uuu":return this.num(Math.floor(R.millisecond/100));case"m":return this.num(R.minute);case"mm":return this.num(R.minute,2);case"h":return this.num(R.hour%12===0?12:R.hour%12);case"hh":return this.num(R.hour%12===0?12:R.hour%12,2);case"H":return this.num(R.hour);case"HH":return this.num(R.hour,2);case"Z":return Pe({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return Pe({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return Pe({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return R.zone.offsetName(R.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return R.zone.offsetName(R.ts,{format:"long",locale:this.loc.locale});case"z":return R.zoneName;case"a":return _e();case"d":return J?be({day:"numeric"},"day"):this.num(R.day);case"dd":return J?be({day:"2-digit"},"day"):this.num(R.day,2);case"c":return this.num(R.weekday);case"ccc":return Rt("short",!0);case"cccc":return Rt("long",!0);case"ccccc":return Rt("narrow",!0);case"E":return this.num(R.weekday);case"EEE":return Rt("short",!1);case"EEEE":return Rt("long",!1);case"EEEEE":return Rt("narrow",!1);case"L":return J?be({month:"numeric",day:"numeric"},"month"):this.num(R.month);case"LL":return J?be({month:"2-digit",day:"numeric"},"month"):this.num(R.month,2);case"LLL":return We("short",!0);case"LLLL":return We("long",!0);case"LLLLL":return We("narrow",!0);case"M":return J?be({month:"numeric"},"month"):this.num(R.month);case"MM":return J?be({month:"2-digit"},"month"):this.num(R.month,2);case"MMM":return We("short",!1);case"MMMM":return We("long",!1);case"MMMMM":return We("narrow",!1);case"y":return J?be({year:"numeric"},"year"):this.num(R.year);case"yy":return J?be({year:"2-digit"},"year"):this.num(R.year.toString().slice(-2),2);case"yyyy":return J?be({year:"numeric"},"year"):this.num(R.year,4);case"yyyyyy":return J?be({year:"numeric"},"year"):this.num(R.year,6);case"G":return Nn("short");case"GG":return Nn("long");case"GGGGG":return Nn("narrow");case"kk":return this.num(R.weekYear.toString().slice(-2),2);case"kkkk":return this.num(R.weekYear,4);case"W":return this.num(R.weekNumber);case"WW":return this.num(R.weekNumber,2);case"n":return this.num(R.localWeekNumber);case"nn":return this.num(R.localWeekNumber,2);case"ii":return this.num(R.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(R.localWeekYear,4);case"o":return this.num(R.ordinal);case"ooo":return this.num(R.ordinal,3);case"q":return this.num(R.quarter);case"qq":return this.num(R.quarter,2);case"X":return this.num(Math.floor(R.ts/1e3));case"x":return this.num(R.ts);default:return vn(Sn)}};return uu(no.parseFormat(z),dr)}formatDurationFromString(R,z){const Y=this.opts.signMode==="negativeLargestOnly"?-1:1,J=vn=>{switch(vn[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},be=(vn,Nn)=>dr=>{const Sn=J(dr);if(Sn){const Kr=Nn.isNegativeDuration&&Sn!==Nn.largestUnit?Y:1;let Fo;return this.opts.signMode==="negativeLargestOnly"&&Sn!==Nn.largestUnit?Fo="never":this.opts.signMode==="all"?Fo="always":Fo="auto",this.num(vn.get(Sn)*Kr,dr.length,Fo)}else return dr},Pe=no.parseFormat(z),_e=Pe.reduce((vn,{literal:Nn,val:dr})=>Nn?vn:vn.concat(dr),[]),We=R.shiftTo(..._e.map(J).filter(vn=>vn)),Rt={isNegativeDuration:We<0,largestUnit:Object.keys(We.values)[0]};return uu(Pe,be(We,Rt))}}const du=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function N(...V){const R=V.reduce((z,Y)=>z+Y.source,"");return RegExp(`^${R}$`)}function xo(...V){return R=>V.reduce(([z,Y,J],be)=>{const[Pe,_e,We]=be(R,J);return[{...z,...Pe},_e||Y,We]},[{},null,1]).slice(0,2)}function ro(V,...R){if(V==null)return[null,null];for(const[z,Y]of R){const J=z.exec(V);if(J)return Y(J)}return[null,null]}function Ka(...V){return(R,z)=>{const Y={};let J;for(J=0;J<V.length;J++)Y[V[J]]=Ar(R[z+J]);return[Y,null,z+J]}}const Oe=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,us=`(?:${Oe.source}?(?:\\[(${du.source})\\])?)?`,jn=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,zo=RegExp(`${jn.source}${us}`),Ds=RegExp(`(?:[Tt]${zo.source})?`),fu=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Rd=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Od=/(\d{4})-?(\d{3})/,Ze=Ka("weekYear","weekNumber","weekDay"),pu=Ka("year","ordinal"),hu=/(\d{4})-(\d\d)-(\d\d)/,rc=RegExp(`${jn.source} ?(?:${Oe.source}|(${du.source}))?`),$d=RegExp(`(?: ${rc.source})?`);function js(V,R,z){const Y=V[R];return Ue(Y)?z:Ar(Y)}function bl(V,R){return[{year:js(V,R),month:js(V,R+1,1),day:js(V,R+2,1)},null,R+3]}function ds(V,R){return[{hours:js(V,R,0),minutes:js(V,R+1,0),seconds:js(V,R+2,0),milliseconds:To(V[R+3])},null,R+4]}function Ns(V,R){const z=!V[R]&&!V[R+1],Y=hl(V[R+1],V[R+2]),J=z?null:Ct.instance(Y);return[{},J,R+3]}function ra(V,R){const z=V[R]?le.create(V[R]):null;return[{},z,R+1]}const Ip=RegExp(`^T?${jn.source}$`),Lp=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function xl(V){const[R,z,Y,J,be,Pe,_e,We,Rt]=V,vn=R[0]==="-",Nn=We&&We[0]==="-",dr=(Sn,Kr=!1)=>Sn!==void 0&&(Kr||Sn&&vn)?-Sn:Sn;return[{years:dr(so(z)),months:dr(so(Y)),weeks:dr(so(J)),days:dr(so(be)),hours:dr(so(Pe)),minutes:dr(so(_e)),seconds:dr(so(We),We==="-0"),milliseconds:dr(To(Rt),Nn)}]}const Pd={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function mu(V,R,z,Y,J,be,Pe){const _e={year:R.length===2?Ti(Ar(R)):Ar(R),month:Td.indexOf(z)+1,day:Ar(Y),hour:Ar(J),minute:Ar(be)};return Pe&&(_e.second=Ar(Pe)),V&&(_e.weekday=V.length>3?Jl.indexOf(V)+1:ec.indexOf(V)+1),_e}const zp=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Ad(V){const[,R,z,Y,J,be,Pe,_e,We,Rt,vn,Nn]=V,dr=mu(R,J,Y,z,be,Pe,_e);let Sn;return We?Sn=Pd[We]:Rt?Sn=0:Sn=hl(vn,Nn),[dr,new Ct(Sn)]}function Fp(V){return V.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Dd=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,gu=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,_p=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function oc(V){const[,R,z,Y,J,be,Pe,_e]=V;return[mu(R,J,Y,z,be,Pe,_e),Ct.utcInstance]}function Bp(V){const[,R,z,Y,J,be,Pe,_e]=V;return[mu(R,_e,z,Y,J,be,Pe),Ct.utcInstance]}const Up=N(fu,Ds),Vp=N(Rd,Ds),Hp=N(Od,Ds),yu=N(zo),Is=xo(bl,ds,Ns,ra),Wp=xo(Ze,ds,Ns,ra),jd=xo(pu,ds,Ns,ra),Nd=xo(ds,Ns,ra);function Id(V){return ro(V,[Up,Is],[Vp,Wp],[Hp,jd],[yu,Nd])}function Ld(V){return ro(Fp(V),[zp,Ad])}function zd(V){return ro(V,[Dd,oc],[gu,oc],[_p,Bp])}function Ls(V){return ro(V,[Lp,xl])}const qp=xo(ds);function Yp(V){return ro(V,[Ip,qp])}const Gp=N(hu,$d),Fd=N(rc),_d=xo(ds,Ns,ra);function Sl(V){return ro(V,[Gp,Is],[Fd,_d])}const rr="Invalid Duration",fs={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Gr={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...fs},B=146097/400,G=146097/4800,q={years:{quarters:4,months:12,weeks:B/7,days:B,hours:B*24,minutes:B*24*60,seconds:B*24*60*60,milliseconds:B*24*60*60*1e3},quarters:{months:3,weeks:B/28,days:B/4,hours:B*24/4,minutes:B*24*60/4,seconds:B*24*60*60/4,milliseconds:B*24*60*60*1e3/4},months:{weeks:G/7,days:G,hours:G*24,minutes:G*24*60,seconds:G*24*60*60,milliseconds:G*24*60*60*1e3},...fs},ke=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Qt=ke.slice(0).reverse();function Ht(V,R,z=!1){const Y={values:z?R.values:{...V.values,...R.values||{}},loc:V.loc.clone(R.loc),conversionAccuracy:R.conversionAccuracy||V.conversionAccuracy,matrix:R.matrix||V.matrix};return new Gt(Y)}function Rn(V,R){var z;let Y=(z=R.milliseconds)!=null?z:0;for(const J of Qt.slice(1))R[J]&&(Y+=R[J]*V[J].milliseconds);return Y}function Yn(V,R){const z=Rn(V,R)<0?-1:1;ke.reduceRight((Y,J)=>{if(Ue(R[J]))return Y;if(Y){const be=R[Y]*z,Pe=V[J][Y],_e=Math.floor(be/Pe);R[J]+=_e*z,R[Y]-=_e*Pe*z}return J},null),ke.reduce((Y,J)=>{if(Ue(R[J]))return Y;if(Y){const be=R[Y]%1;R[Y]-=be,R[J]+=be*V[Y][J]}return J},null)}function Gn(V){const R={};for(const[z,Y]of Object.entries(V))Y!==0&&(R[z]=Y);return R}class Gt{constructor(R){const z=R.conversionAccuracy==="longterm"||!1;let Y=z?q:Gr;R.matrix&&(Y=R.matrix),this.values=R.values,this.loc=R.loc||De.create(),this.conversionAccuracy=z?"longterm":"casual",this.invalid=R.invalid||null,this.matrix=Y,this.isLuxonDuration=!0}static fromMillis(R,z){return Gt.fromObject({milliseconds:R},z)}static fromObject(R,z={}){if(R==null||typeof R!="object")throw new s(`Duration.fromObject: argument expected to be an object, got ${R===null?"null":typeof R}`);return new Gt({values:Zl(R,Gt.normalizeUnit),loc:De.fromObject(z),conversionAccuracy:z.conversionAccuracy,matrix:z.matrix})}static fromDurationLike(R){if(Ot(R))return Gt.fromMillis(R);if(Gt.isDuration(R))return R;if(typeof R=="object")return Gt.fromObject(R);throw new s(`Unknown duration argument ${R} of type ${typeof R}`)}static fromISO(R,z){const[Y]=Ls(R);return Y?Gt.fromObject(Y,z):Gt.invalid("unparsable",`the input "${R}" can't be parsed as ISO 8601`)}static fromISOTime(R,z){const[Y]=Yp(R);return Y?Gt.fromObject(Y,z):Gt.invalid("unparsable",`the input "${R}" can't be parsed as ISO 8601`)}static invalid(R,z=null){if(!R)throw new s("need to specify a reason the Duration is invalid");const Y=R instanceof Ln?R:new Ln(R,z);if(on.throwOnInvalid)throw new r(Y);return new Gt({invalid:Y})}static normalizeUnit(R){const z={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[R&&R.toLowerCase()];if(!z)throw new a(R);return z}static isDuration(R){return R&&R.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(R,z={}){const Y={...z,floor:z.round!==!1&&z.floor!==!1};return this.isValid?no.create(this.loc,Y).formatDurationFromString(this,R):rr}toHuman(R={}){if(!this.isValid)return rr;const z=R.showZeros!==!1,Y=ke.map(J=>{const be=this.values[J];return Ue(be)||be===0&&!z?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...R,unit:J.slice(0,-1)}).format(be)}).filter(J=>J);return this.loc.listFormatter({type:"conjunction",style:R.listStyle||"narrow",...R}).format(Y)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let R="P";return this.years!==0&&(R+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(R+=this.months+this.quarters*3+"M"),this.weeks!==0&&(R+=this.weeks+"W"),this.days!==0&&(R+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(R+="T"),this.hours!==0&&(R+=this.hours+"H"),this.minutes!==0&&(R+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(R+=is(this.seconds+this.milliseconds/1e3,3)+"S"),R==="P"&&(R+="T0S"),R}toISOTime(R={}){if(!this.isValid)return null;const z=this.toMillis();return z<0||z>=864e5?null:(R={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...R,includeOffset:!1},yn.fromMillis(z,{zone:"UTC"}).toISOTime(R))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Rn(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(R){if(!this.isValid)return this;const z=Gt.fromDurationLike(R),Y={};for(const J of ke)(Dt(z.values,J)||Dt(this.values,J))&&(Y[J]=z.get(J)+this.get(J));return Ht(this,{values:Y},!0)}minus(R){if(!this.isValid)return this;const z=Gt.fromDurationLike(R);return this.plus(z.negate())}mapUnits(R){if(!this.isValid)return this;const z={};for(const Y of Object.keys(this.values))z[Y]=ls(R(this.values[Y],Y));return Ht(this,{values:z},!0)}get(R){return this[Gt.normalizeUnit(R)]}set(R){if(!this.isValid)return this;const z={...this.values,...Zl(R,Gt.normalizeUnit)};return Ht(this,{values:z})}reconfigure({locale:R,numberingSystem:z,conversionAccuracy:Y,matrix:J}={}){const be={loc:this.loc.clone({locale:R,numberingSystem:z}),matrix:J,conversionAccuracy:Y};return Ht(this,be)}as(R){return this.isValid?this.shiftTo(R).get(R):NaN}normalize(){if(!this.isValid)return this;const R=this.toObject();return Yn(this.matrix,R),Ht(this,{values:R},!0)}rescale(){if(!this.isValid)return this;const R=Gn(this.normalize().shiftToAll().toObject());return Ht(this,{values:R},!0)}shiftTo(...R){if(!this.isValid)return this;if(R.length===0)return this;R=R.map(Pe=>Gt.normalizeUnit(Pe));const z={},Y={},J=this.toObject();let be;for(const Pe of ke)if(R.indexOf(Pe)>=0){be=Pe;let _e=0;for(const Rt in Y)_e+=this.matrix[Rt][Pe]*Y[Rt],Y[Rt]=0;Ot(J[Pe])&&(_e+=J[Pe]);const We=Math.trunc(_e);z[Pe]=We,Y[Pe]=(_e*1e3-We*1e3)/1e3}else Ot(J[Pe])&&(Y[Pe]=J[Pe]);for(const Pe in Y)Y[Pe]!==0&&(z[be]+=Pe===be?Y[Pe]:Y[Pe]/this.matrix[be][Pe]);return Yn(this.matrix,z),Ht(this,{values:z},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const R={};for(const z of Object.keys(this.values))R[z]=this.values[z]===0?0:-this.values[z];return Ht(this,{values:R},!0)}removeZeros(){if(!this.isValid)return this;const R=Gn(this.values);return Ht(this,{values:R},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(R){if(!this.isValid||!R.isValid||!this.loc.equals(R.loc))return!1;function z(Y,J){return Y===void 0||Y===0?J===void 0||J===0:Y===J}for(const Y of ke)if(!z(this.values[Y],R.values[Y]))return!1;return!0}}const wr="Invalid Interval";function Cr(V,R){return!V||!V.isValid?ln.invalid("missing or invalid start"):!R||!R.isValid?ln.invalid("missing or invalid end"):R<V?ln.invalid("end before start",`The end of an interval must be after its start, but you had start=${V.toISO()} and end=${R.toISO()}`):null}class ln{constructor(R){this.s=R.start,this.e=R.end,this.invalid=R.invalid||null,this.isLuxonInterval=!0}static invalid(R,z=null){if(!R)throw new s("need to specify a reason the Interval is invalid");const Y=R instanceof Ln?R:new Ln(R,z);if(on.throwOnInvalid)throw new n(Y);return new ln({invalid:Y})}static fromDateTimes(R,z){const Y=ti(R),J=ti(z);return Cr(Y,J)??new ln({start:Y,end:J})}static after(R,z){const Y=Gt.fromDurationLike(z),J=ti(R);return ln.fromDateTimes(J,J.plus(Y))}static before(R,z){const Y=Gt.fromDurationLike(z),J=ti(R);return ln.fromDateTimes(J.minus(Y),J)}static fromISO(R,z){const[Y,J]=(R||"").split("/",2);if(Y&&J){let be,Pe;try{be=yn.fromISO(Y,z),Pe=be.isValid}catch{Pe=!1}let _e,We;try{_e=yn.fromISO(J,z),We=_e.isValid}catch{We=!1}if(Pe&&We)return ln.fromDateTimes(be,_e);if(Pe){const Rt=Gt.fromISO(J,z);if(Rt.isValid)return ln.after(be,Rt)}else if(We){const Rt=Gt.fromISO(Y,z);if(Rt.isValid)return ln.before(_e,Rt)}}return ln.invalid("unparsable",`the input "${R}" can't be parsed as ISO 8601`)}static isInterval(R){return R&&R.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(R="milliseconds"){return this.isValid?this.toDuration(R).get(R):NaN}count(R="milliseconds",z){if(!this.isValid)return NaN;const Y=this.start.startOf(R,z);let J;return z!=null&&z.useLocaleWeeks?J=this.end.reconfigure({locale:Y.locale}):J=this.end,J=J.startOf(R,z),Math.floor(J.diff(Y,R).get(R))+(J.valueOf()!==this.end.valueOf())}hasSame(R){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,R):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(R){return this.isValid?this.s>R:!1}isBefore(R){return this.isValid?this.e<=R:!1}contains(R){return this.isValid?this.s<=R&&this.e>R:!1}set({start:R,end:z}={}){return this.isValid?ln.fromDateTimes(R||this.s,z||this.e):this}splitAt(...R){if(!this.isValid)return[];const z=R.map(ti).filter(Pe=>this.contains(Pe)).sort((Pe,_e)=>Pe.toMillis()-_e.toMillis()),Y=[];let{s:J}=this,be=0;for(;J<this.e;){const Pe=z[be]||this.e,_e=+Pe>+this.e?this.e:Pe;Y.push(ln.fromDateTimes(J,_e)),J=_e,be+=1}return Y}splitBy(R){const z=Gt.fromDurationLike(R);if(!this.isValid||!z.isValid||z.as("milliseconds")===0)return[];let{s:Y}=this,J=1,be;const Pe=[];for(;Y<this.e;){const _e=this.start.plus(z.mapUnits(We=>We*J));be=+_e>+this.e?this.e:_e,Pe.push(ln.fromDateTimes(Y,be)),Y=be,J+=1}return Pe}divideEqually(R){return this.isValid?this.splitBy(this.length()/R).slice(0,R):[]}overlaps(R){return this.e>R.s&&this.s<R.e}abutsStart(R){return this.isValid?+this.e==+R.s:!1}abutsEnd(R){return this.isValid?+R.e==+this.s:!1}engulfs(R){return this.isValid?this.s<=R.s&&this.e>=R.e:!1}equals(R){return!this.isValid||!R.isValid?!1:this.s.equals(R.s)&&this.e.equals(R.e)}intersection(R){if(!this.isValid)return this;const z=this.s>R.s?this.s:R.s,Y=this.e<R.e?this.e:R.e;return z>=Y?null:ln.fromDateTimes(z,Y)}union(R){if(!this.isValid)return this;const z=this.s<R.s?this.s:R.s,Y=this.e>R.e?this.e:R.e;return ln.fromDateTimes(z,Y)}static merge(R){const[z,Y]=R.sort((J,be)=>J.s-be.s).reduce(([J,be],Pe)=>be?be.overlaps(Pe)||be.abutsStart(Pe)?[J,be.union(Pe)]:[J.concat([be]),Pe]:[J,Pe],[[],null]);return Y&&z.push(Y),z}static xor(R){let z=null,Y=0;const J=[],be=R.map(We=>[{time:We.s,type:"s"},{time:We.e,type:"e"}]),Pe=Array.prototype.concat(...be),_e=Pe.sort((We,Rt)=>We.time-Rt.time);for(const We of _e)Y+=We.type==="s"?1:-1,Y===1?z=We.time:(z&&+z!=+We.time&&J.push(ln.fromDateTimes(z,We.time)),z=null);return ln.merge(J)}difference(...R){return ln.xor([this].concat(R)).map(z=>this.intersection(z)).filter(z=>z&&!z.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:wr}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(R=h,z={}){return this.isValid?no.create(this.s.loc.clone(z),R).formatInterval(this):wr}toISO(R){return this.isValid?`${this.s.toISO(R)}/${this.e.toISO(R)}`:wr}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:wr}toISOTime(R){return this.isValid?`${this.s.toISOTime(R)}/${this.e.toISOTime(R)}`:wr}toFormat(R,{separator:z=" – "}={}){return this.isValid?`${this.s.toFormat(R)}${z}${this.e.toFormat(R)}`:wr}toDuration(R,z){return this.isValid?this.e.diff(this.s,R,z):Gt.invalid(this.invalidReason)}mapEndpoints(R){return ln.fromDateTimes(R(this.s),R(this.e))}}class gr{static hasDST(R=on.defaultZone){const z=yn.now().setZone(R).set({month:12});return!R.isUniversal&&z.offset!==z.set({month:6}).offset}static isValidIANAZone(R){return le.isValidZone(R)}static normalizeZone(R){return st(R,on.defaultZone)}static getStartOfWeek({locale:R=null,locObj:z=null}={}){return(z||De.create(R)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:R=null,locObj:z=null}={}){return(z||De.create(R)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:R=null,locObj:z=null}={}){return(z||De.create(R)).getWeekendDays().slice()}static months(R="long",{locale:z=null,numberingSystem:Y=null,locObj:J=null,outputCalendar:be="gregory"}={}){return(J||De.create(z,Y,be)).months(R)}static monthsFormat(R="long",{locale:z=null,numberingSystem:Y=null,locObj:J=null,outputCalendar:be="gregory"}={}){return(J||De.create(z,Y,be)).months(R,!0)}static weekdays(R="long",{locale:z=null,numberingSystem:Y=null,locObj:J=null}={}){return(J||De.create(z,Y,null)).weekdays(R)}static weekdaysFormat(R="long",{locale:z=null,numberingSystem:Y=null,locObj:J=null}={}){return(J||De.create(z,Y,null)).weekdays(R,!0)}static meridiems({locale:R=null}={}){return De.create(R).meridiems()}static eras(R="short",{locale:z=null}={}){return De.create(z,null,"gregory").eras(R)}static features(){return{relative:Re(),localeWeek:it()}}}function Ur(V,R){const z=J=>J.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),Y=z(R)-z(V);return Math.floor(Gt.fromMillis(Y).as("days"))}function Hr(V,R,z){const Y=[["years",(We,Rt)=>Rt.year-We.year],["quarters",(We,Rt)=>Rt.quarter-We.quarter+(Rt.year-We.year)*4],["months",(We,Rt)=>Rt.month-We.month+(Rt.year-We.year)*12],["weeks",(We,Rt)=>{const vn=Ur(We,Rt);return(vn-vn%7)/7}],["days",Ur]],J={},be=V;let Pe,_e;for(const[We,Rt]of Y)z.indexOf(We)>=0&&(Pe=We,J[We]=Rt(V,R),_e=be.plus(J),_e>R?(J[We]--,V=be.plus(J),V>R&&(_e=V,J[We]--,V=be.plus(J))):V=_e);return[V,J,_e,Pe]}function Qa(V,R,z,Y){let[J,be,Pe,_e]=Hr(V,R,z);const We=R-J,Rt=z.filter(Nn=>["hours","minutes","seconds","milliseconds"].indexOf(Nn)>=0);Rt.length===0&&(Pe<R&&(Pe=J.plus({[_e]:1})),Pe!==J&&(be[_e]=(be[_e]||0)+We/(Pe-J)));const vn=Gt.fromObject(be,Y);return Rt.length>0?Gt.fromMillis(We,Y).shiftTo(...Rt).plus(vn):vn}const ma="missing Intl.DateTimeFormat.formatToParts support";function zn(V,R=z=>z){return{regex:V,deser:([z])=>R($n(z))}}const wl="[  ]",ga=new RegExp(wl,"g");function ps(V){return V.replace(/\./g,"\\.?").replace(ga,wl)}function oa(V){return V.replace(/\./g,"").replace(ga," ").toLowerCase()}function oo(V,R){return V===null?null:{regex:RegExp(V.map(ps).join("|")),deser:([z])=>V.findIndex(Y=>oa(z)===oa(Y))+R}}function Cl(V,R){return{regex:V,deser:([,z,Y])=>hl(z,Y),groups:R}}function So(V){return{regex:V,deser:([R])=>R}}function ac(V){return V.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Kp(V,R){const z=Jt(R),Y=Jt(R,"{2}"),J=Jt(R,"{3}"),be=Jt(R,"{4}"),Pe=Jt(R,"{6}"),_e=Jt(R,"{1,2}"),We=Jt(R,"{1,3}"),Rt=Jt(R,"{1,6}"),vn=Jt(R,"{1,9}"),Nn=Jt(R,"{2,4}"),dr=Jt(R,"{4,6}"),Sn=Fo=>({regex:RegExp(ac(Fo.val)),deser:([Oa])=>Oa,literal:!0}),Kr=(Fo=>{if(V.literal)return Sn(Fo);switch(Fo.val){case"G":return oo(R.eras("short"),0);case"GG":return oo(R.eras("long"),0);case"y":return zn(Rt);case"yy":return zn(Nn,Ti);case"yyyy":return zn(be);case"yyyyy":return zn(dr);case"yyyyyy":return zn(Pe);case"M":return zn(_e);case"MM":return zn(Y);case"MMM":return oo(R.months("short",!0),1);case"MMMM":return oo(R.months("long",!0),1);case"L":return zn(_e);case"LL":return zn(Y);case"LLL":return oo(R.months("short",!1),1);case"LLLL":return oo(R.months("long",!1),1);case"d":return zn(_e);case"dd":return zn(Y);case"o":return zn(We);case"ooo":return zn(J);case"HH":return zn(Y);case"H":return zn(_e);case"hh":return zn(Y);case"h":return zn(_e);case"mm":return zn(Y);case"m":return zn(_e);case"q":return zn(_e);case"qq":return zn(Y);case"s":return zn(_e);case"ss":return zn(Y);case"S":return zn(We);case"SSS":return zn(J);case"u":return So(vn);case"uu":return So(_e);case"uuu":return zn(z);case"a":return oo(R.meridiems(),0);case"kkkk":return zn(be);case"kk":return zn(Nn,Ti);case"W":return zn(_e);case"WW":return zn(Y);case"E":case"c":return zn(z);case"EEE":return oo(R.weekdays("short",!1),1);case"EEEE":return oo(R.weekdays("long",!1),1);case"ccc":return oo(R.weekdays("short",!0),1);case"cccc":return oo(R.weekdays("long",!0),1);case"Z":case"ZZ":return Cl(new RegExp(`([+-]${_e.source})(?::(${Y.source}))?`),2);case"ZZZ":return Cl(new RegExp(`([+-]${_e.source})(${Y.source})?`),2);case"z":return So(/[a-z_+-/]{1,256}?/i);case" ":return So(/[^\S\n\r]/);default:return Sn(Fo)}})(V)||{invalidReason:ma};return Kr.token=V,Kr}const Jg={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function kl(V,R,z){const{type:Y,value:J}=V;if(Y==="literal"){const We=/^\s+$/.test(J);return{literal:!We,val:We?" ":J}}const be=R[Y];let Pe=Y;Y==="hour"&&(R.hour12!=null?Pe=R.hour12?"hour12":"hour24":R.hourCycle!=null?R.hourCycle==="h11"||R.hourCycle==="h12"?Pe="hour12":Pe="hour24":Pe=z.hour12?"hour12":"hour24");let _e=Jg[Pe];if(typeof _e=="object"&&(_e=_e[be]),_e)return{literal:!1,val:_e}}function ey(V){return[`^${V.map(R=>R.regex).reduce((R,z)=>`${R}(${z.source})`,"")}$`,V]}function ty(V,R,z){const Y=V.match(R);if(Y){const J={};let be=1;for(const Pe in z)if(Dt(z,Pe)){const _e=z[Pe],We=_e.groups?_e.groups+1:1;!_e.literal&&_e.token&&(J[_e.token.val[0]]=_e.deser(Y.slice(be,be+We))),be+=We}return[Y,J]}else return[Y,{}]}function ny(V){const R=J=>{switch(J){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let z=null,Y;return Ue(V.z)||(z=le.create(V.z)),Ue(V.Z)||(z||(z=new Ct(V.Z)),Y=V.Z),Ue(V.q)||(V.M=(V.q-1)*3+1),Ue(V.h)||(V.h<12&&V.a===1?V.h+=12:V.h===12&&V.a===0&&(V.h=0)),V.G===0&&V.y&&(V.y=-V.y),Ue(V.u)||(V.S=To(V.u)),[Object.keys(V).reduce((J,be)=>{const Pe=R(be);return Pe&&(J[Pe]=V[be]),J},{}),z,Y]}let Qp=null;function rx(){return Qp||(Qp=yn.fromMillis(1555555555555)),Qp}function ox(V,R){if(V.literal)return V;const z=no.macroTokenToFormatOpts(V.val),Y=Jp(z,R);return Y==null||Y.includes(void 0)?V:Y}function Xp(V,R){return Array.prototype.concat(...V.map(z=>ox(z,R)))}class Zp{constructor(R,z){if(this.locale=R,this.format=z,this.tokens=Xp(no.parseFormat(z),R),this.units=this.tokens.map(Y=>Kp(Y,R)),this.disqualifyingUnit=this.units.find(Y=>Y.invalidReason),!this.disqualifyingUnit){const[Y,J]=ey(this.units);this.regex=RegExp(Y,"i"),this.handlers=J}}explainFromTokens(R){if(this.isValid){const[z,Y]=ty(R,this.regex,this.handlers),[J,be,Pe]=Y?ny(Y):[null,null,void 0];if(Dt(Y,"a")&&Dt(Y,"H"))throw new o("Can't include meridiem when specifying 24-hour format");return{input:R,tokens:this.tokens,regex:this.regex,rawMatches:z,matches:Y,result:J,zone:be,specificOffset:Pe}}else return{input:R,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function Bd(V,R,z){return new Zp(V,z).explainFromTokens(R)}function Xa(V,R,z){const{result:Y,zone:J,specificOffset:be,invalidReason:Pe}=Bd(V,R,z);return[Y,J,be,Pe]}function Jp(V,R){if(!V)return null;const z=no.create(R,V).dtFormatter(rx()),Y=z.formatToParts(),J=z.resolvedOptions();return Y.map(be=>kl(be,V,J))}const aa="Invalid DateTime",ya=864e13;function Ri(V){return new Ln("unsupported zone",`the zone "${V.name}" is not supported`)}function vu(V){return V.weekData===null&&(V.weekData=Et(V.c)),V.weekData}function ic(V){return V.localWeekData===null&&(V.localWeekData=Et(V.c,V.loc.getMinDaysInFirstWeek(),V.loc.getStartOfWeek())),V.localWeekData}function Oi(V,R){const z={ts:V.ts,zone:V.zone,c:V.c,o:V.o,loc:V.loc,invalid:V.invalid};return new yn({...z,...R,old:z})}function Ud(V,R,z){let Y=V-R*60*1e3;const J=z.offset(Y);if(R===J)return[Y,R];Y-=(J-R)*60*1e3;const be=z.offset(Y);return J===be?[Y,J]:[V-Math.min(J,be)*60*1e3,Math.max(J,be)]}function hs(V,R){V+=R*60*1e3;const z=new Date(V);return{year:z.getUTCFullYear(),month:z.getUTCMonth()+1,day:z.getUTCDate(),hour:z.getUTCHours(),minute:z.getUTCMinutes(),second:z.getUTCSeconds(),millisecond:z.getUTCMilliseconds()}}function bu(V,R,z){return Ud(Ga(V),R,z)}function xu(V,R){const z=V.o,Y=V.c.year+Math.trunc(R.years),J=V.c.month+Math.trunc(R.months)+Math.trunc(R.quarters)*3,be={...V.c,year:Y,month:J,day:Math.min(V.c.day,_r(Y,J))+Math.trunc(R.days)+Math.trunc(R.weeks)*7},Pe=Gt.fromObject({years:R.years-Math.trunc(R.years),quarters:R.quarters-Math.trunc(R.quarters),months:R.months-Math.trunc(R.months),weeks:R.weeks-Math.trunc(R.weeks),days:R.days-Math.trunc(R.days),hours:R.hours,minutes:R.minutes,seconds:R.seconds,milliseconds:R.milliseconds}).as("milliseconds"),_e=Ga(be);let[We,Rt]=Ud(_e,z,V.zone);return Pe!==0&&(We+=Pe,Rt=V.zone.offset(We)),{ts:We,o:Rt}}function Za(V,R,z,Y,J,be){const{setZone:Pe,zone:_e}=z;if(V&&Object.keys(V).length!==0||R){const We=R||_e,Rt=yn.fromObject(V,{...z,zone:We,specificOffset:be});return Pe?Rt:Rt.setZone(_e)}else return yn.invalid(new Ln("unparsable",`the input "${J}" can't be parsed as ${Y}`))}function Vd(V,R,z=!0){return V.isValid?no.create(De.create("en-US"),{allowZ:z,forceSimple:!0}).formatDateTimeFromString(V,R):null}function qo(V,R,z){const Y=V.c.year>9999||V.c.year<0;let J="";if(Y&&V.c.year>=0&&(J+="+"),J+=Xt(V.c.year,Y?6:4),z==="year")return J;if(R){if(J+="-",J+=Xt(V.c.month),z==="month")return J;J+="-"}else if(J+=Xt(V.c.month),z==="month")return J;return J+=Xt(V.c.day),J}function Hd(V,R,z,Y,J,be,Pe){let _e=!z||V.c.millisecond!==0||V.c.second!==0,We="";switch(Pe){case"day":case"month":case"year":break;default:if(We+=Xt(V.c.hour),Pe==="hour")break;if(R){if(We+=":",We+=Xt(V.c.minute),Pe==="minute")break;_e&&(We+=":",We+=Xt(V.c.second))}else{if(We+=Xt(V.c.minute),Pe==="minute")break;_e&&(We+=Xt(V.c.second))}if(Pe==="second")break;_e&&(!Y||V.c.millisecond!==0)&&(We+=".",We+=Xt(V.c.millisecond,3))}return J&&(V.isOffsetFixed&&V.offset===0&&!be?We+="Z":V.o<0?(We+="-",We+=Xt(Math.trunc(-V.o/60)),We+=":",We+=Xt(Math.trunc(-V.o%60))):(We+="+",We+=Xt(Math.trunc(V.o/60)),We+=":",We+=Xt(Math.trunc(V.o%60)))),be&&(We+="["+V.zone.ianaName+"]"),We}const $i={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},ry={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Wd={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Pi=["year","month","day","hour","minute","second","millisecond"],eh=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],th=["year","ordinal","hour","minute","second","millisecond"];function ms(V){const R={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[V.toLowerCase()];if(!R)throw new a(V);return R}function El(V){switch(V.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return ms(V)}}function qd(V){if(Ja===void 0&&(Ja=on.now()),V.type!=="iana")return V.offset(Ja);const R=V.name;let z=ei.get(R);return z===void 0&&(z=V.offset(Ja),ei.set(R,z)),z}function Su(V,R){const z=st(R.zone,on.defaultZone);if(!z.isValid)return yn.invalid(Ri(z));const Y=De.fromObject(R);let J,be;if(Ue(V.year))J=on.now();else{for(const We of Pi)Ue(V[We])&&(V[We]=$i[We]);const Pe=Fe(V)||ft(V);if(Pe)return yn.invalid(Pe);const _e=qd(z);[J,be]=bu(V,_e,z)}return new yn({ts:J,zone:z,loc:Y,o:be})}function va(V,R,z){const Y=Ue(z.round)?!0:z.round,J=Ue(z.rounding)?"trunc":z.rounding,be=(_e,We)=>(_e=is(_e,Y||z.calendary?0:2,z.calendary?"round":J),R.loc.clone(z).relFormatter(z).format(_e,We)),Pe=_e=>z.calendary?R.hasSame(V,_e)?0:R.startOf(_e).diff(V.startOf(_e),_e).get(_e):R.diff(V,_e).get(_e);if(z.unit)return be(Pe(z.unit),z.unit);for(const _e of z.units){const We=Pe(_e);if(Math.abs(We)>=1)return be(We,_e)}return be(V>R?-0:0,z.units[z.units.length-1])}function ba(V){let R={},z;return V.length>0&&typeof V[V.length-1]=="object"?(R=V[V.length-1],z=Array.from(V).slice(0,V.length-1)):z=Array.from(V),[R,z]}let Ja;const ei=new Map;class yn{constructor(R){const z=R.zone||on.defaultZone;let Y=R.invalid||(Number.isNaN(R.ts)?new Ln("invalid input"):null)||(z.isValid?null:Ri(z));this.ts=Ue(R.ts)?on.now():R.ts;let J=null,be=null;if(!Y)if(R.old&&R.old.ts===this.ts&&R.old.zone.equals(z))[J,be]=[R.old.c,R.old.o];else{const Pe=Ot(R.o)&&!R.old?R.o:z.offset(this.ts);J=hs(this.ts,Pe),Y=Number.isNaN(J.year)?new Ln("invalid input"):null,J=Y?null:J,be=Y?null:Pe}this._zone=z,this.loc=R.loc||De.create(),this.invalid=Y,this.weekData=null,this.localWeekData=null,this.c=J,this.o=be,this.isLuxonDateTime=!0}static now(){return new yn({})}static local(){const[R,z]=ba(arguments),[Y,J,be,Pe,_e,We,Rt]=z;return Su({year:Y,month:J,day:be,hour:Pe,minute:_e,second:We,millisecond:Rt},R)}static utc(){const[R,z]=ba(arguments),[Y,J,be,Pe,_e,We,Rt]=z;return R.zone=Ct.utcInstance,Su({year:Y,month:J,day:be,hour:Pe,minute:_e,second:We,millisecond:Rt},R)}static fromJSDate(R,z={}){const Y=ve(R)?R.valueOf():NaN;if(Number.isNaN(Y))return yn.invalid("invalid input");const J=st(z.zone,on.defaultZone);return J.isValid?new yn({ts:Y,zone:J,loc:De.fromObject(z)}):yn.invalid(Ri(J))}static fromMillis(R,z={}){if(Ot(R))return R<-ya||R>ya?yn.invalid("Timestamp out of range"):new yn({ts:R,zone:st(z.zone,on.defaultZone),loc:De.fromObject(z)});throw new s(`fromMillis requires a numerical input, but received a ${typeof R} with value ${R}`)}static fromSeconds(R,z={}){if(Ot(R))return new yn({ts:R*1e3,zone:st(z.zone,on.defaultZone),loc:De.fromObject(z)});throw new s("fromSeconds requires a numerical input")}static fromObject(R,z={}){R=R||{};const Y=st(z.zone,on.defaultZone);if(!Y.isValid)return yn.invalid(Ri(Y));const J=De.fromObject(z),be=Zl(R,El),{minDaysInFirstWeek:Pe,startOfWeek:_e}=Ft(be,J),We=on.now(),Rt=Ue(z.specificOffset)?Y.offset(We):z.specificOffset,vn=!Ue(be.ordinal),Nn=!Ue(be.year),dr=!Ue(be.month)||!Ue(be.day),Sn=Nn||dr,Kr=be.weekYear||be.weekNumber;if((Sn||vn)&&Kr)throw new o("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(dr&&vn)throw new o("Can't mix ordinal dates with month/day");const Fo=Kr||be.weekday&&!Sn;let Oa,$a,Pa=hs(We,Rt);Fo?(Oa=eh,$a=ry,Pa=Et(Pa,Pe,_e)):vn?(Oa=th,$a=Wd,Pa=Kt(Pa)):(Oa=Pi,$a=$i);let Ai=!1;for(const zs of Oa){const ay=be[zs];Ue(ay)?Ai?be[zs]=$a[zs]:be[zs]=Pa[zs]:Ai=!0}const nh=Fo?de(be,Pe,_e):vn?fe(be):Fe(be),Yd=nh||ft(be);if(Yd)return yn.invalid(Yd);const wu=Fo?Pt(be,Pe,_e):vn?At(be):be,[Gd,Tl]=bu(wu,Rt,Y),lo=new yn({ts:Gd,zone:Y,o:Tl,loc:J});return be.weekday&&Sn&&R.weekday!==lo.weekday?yn.invalid("mismatched weekday",`you can't specify both a weekday of ${be.weekday} and a date of ${lo.toISO()}`):lo.isValid?lo:yn.invalid(lo.invalid)}static fromISO(R,z={}){const[Y,J]=Id(R);return Za(Y,J,z,"ISO 8601",R)}static fromRFC2822(R,z={}){const[Y,J]=Ld(R);return Za(Y,J,z,"RFC 2822",R)}static fromHTTP(R,z={}){const[Y,J]=zd(R);return Za(Y,J,z,"HTTP",z)}static fromFormat(R,z,Y={}){if(Ue(R)||Ue(z))throw new s("fromFormat requires an input string and a format");const{locale:J=null,numberingSystem:be=null}=Y,Pe=De.fromOpts({locale:J,numberingSystem:be,defaultToEN:!0}),[_e,We,Rt,vn]=Xa(Pe,R,z);return vn?yn.invalid(vn):Za(_e,We,Y,`format ${z}`,R,Rt)}static fromString(R,z,Y={}){return yn.fromFormat(R,z,Y)}static fromSQL(R,z={}){const[Y,J]=Sl(R);return Za(Y,J,z,"SQL",R)}static invalid(R,z=null){if(!R)throw new s("need to specify a reason the DateTime is invalid");const Y=R instanceof Ln?R:new Ln(R,z);if(on.throwOnInvalid)throw new t(Y);return new yn({invalid:Y})}static isDateTime(R){return R&&R.isLuxonDateTime||!1}static parseFormatForOpts(R,z={}){const Y=Jp(R,De.fromObject(z));return Y?Y.map(J=>J?J.val:null).join(""):null}static expandFormat(R,z={}){return Xp(no.parseFormat(R),De.fromObject(z)).map(Y=>Y.val).join("")}static resetCache(){Ja=void 0,ei.clear()}get(R){return this[R]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?vu(this).weekYear:NaN}get weekNumber(){return this.isValid?vu(this).weekNumber:NaN}get weekday(){return this.isValid?vu(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?ic(this).weekday:NaN}get localWeekNumber(){return this.isValid?ic(this).weekNumber:NaN}get localWeekYear(){return this.isValid?ic(this).weekYear:NaN}get ordinal(){return this.isValid?Kt(this.c).ordinal:NaN}get monthShort(){return this.isValid?gr.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?gr.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?gr.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?gr.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const R=864e5,z=6e4,Y=Ga(this.c),J=this.zone.offset(Y-R),be=this.zone.offset(Y+R),Pe=this.zone.offset(Y-J*z),_e=this.zone.offset(Y-be*z);if(Pe===_e)return[this];const We=Y-Pe*z,Rt=Y-_e*z,vn=hs(We,Pe),Nn=hs(Rt,_e);return vn.hour===Nn.hour&&vn.minute===Nn.minute&&vn.second===Nn.second&&vn.millisecond===Nn.millisecond?[Oi(this,{ts:We}),Oi(this,{ts:Rt})]:[this]}get isInLeapYear(){return na(this.year)}get daysInMonth(){return _r(this.year,this.month)}get daysInYear(){return this.isValid?ur(this.year):NaN}get weeksInWeekYear(){return this.isValid?ss(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?ss(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(R={}){const{locale:z,numberingSystem:Y,calendar:J}=no.create(this.loc.clone(R),R).resolvedOptions(this);return{locale:z,numberingSystem:Y,outputCalendar:J}}toUTC(R=0,z={}){return this.setZone(Ct.instance(R),z)}toLocal(){return this.setZone(on.defaultZone)}setZone(R,{keepLocalTime:z=!1,keepCalendarTime:Y=!1}={}){if(R=st(R,on.defaultZone),R.equals(this.zone))return this;if(R.isValid){let J=this.ts;if(z||Y){const be=R.offset(this.ts),Pe=this.toObject();[J]=bu(Pe,be,R)}return Oi(this,{ts:J,zone:R})}else return yn.invalid(Ri(R))}reconfigure({locale:R,numberingSystem:z,outputCalendar:Y}={}){const J=this.loc.clone({locale:R,numberingSystem:z,outputCalendar:Y});return Oi(this,{loc:J})}setLocale(R){return this.reconfigure({locale:R})}set(R){if(!this.isValid)return this;const z=Zl(R,El),{minDaysInFirstWeek:Y,startOfWeek:J}=Ft(z,this.loc),be=!Ue(z.weekYear)||!Ue(z.weekNumber)||!Ue(z.weekday),Pe=!Ue(z.ordinal),_e=!Ue(z.year),We=!Ue(z.month)||!Ue(z.day),Rt=_e||We,vn=z.weekYear||z.weekNumber;if((Rt||Pe)&&vn)throw new o("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(We&&Pe)throw new o("Can't mix ordinal dates with month/day");let Nn;be?Nn=Pt({...Et(this.c,Y,J),...z},Y,J):Ue(z.ordinal)?(Nn={...this.toObject(),...z},Ue(z.day)&&(Nn.day=Math.min(_r(Nn.year,Nn.month),Nn.day))):Nn=At({...Kt(this.c),...z});const[dr,Sn]=bu(Nn,this.o,this.zone);return Oi(this,{ts:dr,o:Sn})}plus(R){if(!this.isValid)return this;const z=Gt.fromDurationLike(R);return Oi(this,xu(this,z))}minus(R){if(!this.isValid)return this;const z=Gt.fromDurationLike(R).negate();return Oi(this,xu(this,z))}startOf(R,{useLocaleWeeks:z=!1}={}){if(!this.isValid)return this;const Y={},J=Gt.normalizeUnit(R);switch(J){case"years":Y.month=1;case"quarters":case"months":Y.day=1;case"weeks":case"days":Y.hour=0;case"hours":Y.minute=0;case"minutes":Y.second=0;case"seconds":Y.millisecond=0;break}if(J==="weeks")if(z){const be=this.loc.getStartOfWeek(),{weekday:Pe}=this;Pe<be&&(Y.weekNumber=this.weekNumber-1),Y.weekday=be}else Y.weekday=1;if(J==="quarters"){const be=Math.ceil(this.month/3);Y.month=(be-1)*3+1}return this.set(Y)}endOf(R,z){return this.isValid?this.plus({[R]:1}).startOf(R,z).minus(1):this}toFormat(R,z={}){return this.isValid?no.create(this.loc.redefaultToEN(z)).formatDateTimeFromString(this,R):aa}toLocaleString(R=h,z={}){return this.isValid?no.create(this.loc.clone(z),R).formatDateTime(this):aa}toLocaleParts(R={}){return this.isValid?no.create(this.loc.clone(R),R).formatDateTimeParts(this):[]}toISO({format:R="extended",suppressSeconds:z=!1,suppressMilliseconds:Y=!1,includeOffset:J=!0,extendedZone:be=!1,precision:Pe="milliseconds"}={}){if(!this.isValid)return null;Pe=ms(Pe);const _e=R==="extended";let We=qo(this,_e,Pe);return Pi.indexOf(Pe)>=3&&(We+="T"),We+=Hd(this,_e,z,Y,J,be,Pe),We}toISODate({format:R="extended",precision:z="day"}={}){return this.isValid?qo(this,R==="extended",ms(z)):null}toISOWeekDate(){return Vd(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:R=!1,suppressSeconds:z=!1,includeOffset:Y=!0,includePrefix:J=!1,extendedZone:be=!1,format:Pe="extended",precision:_e="milliseconds"}={}){return this.isValid?(_e=ms(_e),(J&&Pi.indexOf(_e)>=3?"T":"")+Hd(this,Pe==="extended",z,R,Y,be,_e)):null}toRFC2822(){return Vd(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Vd(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?qo(this,!0):null}toSQLTime({includeOffset:R=!0,includeZone:z=!1,includeOffsetSpace:Y=!0}={}){let J="HH:mm:ss.SSS";return(z||R)&&(Y&&(J+=" "),z?J+="z":R&&(J+="ZZ")),Vd(this,J,!0)}toSQL(R={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(R)}`:null}toString(){return this.isValid?this.toISO():aa}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(R={}){if(!this.isValid)return{};const z={...this.c};return R.includeConfig&&(z.outputCalendar=this.outputCalendar,z.numberingSystem=this.loc.numberingSystem,z.locale=this.loc.locale),z}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(R,z="milliseconds",Y={}){if(!this.isValid||!R.isValid)return Gt.invalid("created by diffing an invalid DateTime");const J={locale:this.locale,numberingSystem:this.numberingSystem,...Y},be=xt(z).map(Gt.normalizeUnit),Pe=R.valueOf()>this.valueOf(),_e=Pe?this:R,We=Pe?R:this,Rt=Qa(_e,We,be,J);return Pe?Rt.negate():Rt}diffNow(R="milliseconds",z={}){return this.diff(yn.now(),R,z)}until(R){return this.isValid?ln.fromDateTimes(this,R):this}hasSame(R,z,Y){if(!this.isValid)return!1;const J=R.valueOf(),be=this.setZone(R.zone,{keepLocalTime:!0});return be.startOf(z,Y)<=J&&J<=be.endOf(z,Y)}equals(R){return this.isValid&&R.isValid&&this.valueOf()===R.valueOf()&&this.zone.equals(R.zone)&&this.loc.equals(R.loc)}toRelative(R={}){if(!this.isValid)return null;const z=R.base||yn.fromObject({},{zone:this.zone}),Y=R.padding?this<z?-R.padding:R.padding:0;let J=["years","months","days","hours","minutes","seconds"],be=R.unit;return Array.isArray(R.unit)&&(J=R.unit,be=void 0),va(z,this.plus(Y),{...R,numeric:"always",units:J,unit:be})}toRelativeCalendar(R={}){return this.isValid?va(R.base||yn.fromObject({},{zone:this.zone}),this,{...R,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...R){if(!R.every(yn.isDateTime))throw new s("min requires all arguments be DateTimes");return Tt(R,z=>z.valueOf(),Math.min)}static max(...R){if(!R.every(yn.isDateTime))throw new s("max requires all arguments be DateTimes");return Tt(R,z=>z.valueOf(),Math.max)}static fromFormatExplain(R,z,Y={}){const{locale:J=null,numberingSystem:be=null}=Y,Pe=De.fromOpts({locale:J,numberingSystem:be,defaultToEN:!0});return Bd(Pe,R,z)}static fromStringExplain(R,z,Y={}){return yn.fromFormatExplain(R,z,Y)}static buildFormatParser(R,z={}){const{locale:Y=null,numberingSystem:J=null}=z,be=De.fromOpts({locale:Y,numberingSystem:J,defaultToEN:!0});return new Zp(be,R)}static fromFormatParser(R,z,Y={}){if(Ue(R)||Ue(z))throw new s("fromFormatParser requires an input string and a format parser");const{locale:J=null,numberingSystem:be=null}=Y,Pe=De.fromOpts({locale:J,numberingSystem:be,defaultToEN:!0});if(!Pe.equals(z.locale))throw new s(`fromFormatParser called with a locale of ${Pe}, but the format parser was created for ${z.locale}`);const{result:_e,zone:We,specificOffset:Rt,invalidReason:vn}=z.explainFromTokens(R);return vn?yn.invalid(vn):Za(_e,We,Y,`format ${z.format}`,R,Rt)}static get DATE_SHORT(){return h}static get DATE_MED(){return y}static get DATE_MED_WITH_WEEKDAY(){return v}static get DATE_FULL(){return S}static get DATE_HUGE(){return x}static get TIME_SIMPLE(){return w}static get TIME_WITH_SECONDS(){return b}static get TIME_WITH_SHORT_OFFSET(){return k}static get TIME_WITH_LONG_OFFSET(){return E}static get TIME_24_SIMPLE(){return O}static get TIME_24_WITH_SECONDS(){return $}static get TIME_24_WITH_SHORT_OFFSET(){return A}static get TIME_24_WITH_LONG_OFFSET(){return I}static get DATETIME_SHORT(){return j}static get DATETIME_SHORT_WITH_SECONDS(){return _}static get DATETIME_MED(){return W}static get DATETIME_MED_WITH_SECONDS(){return U}static get DATETIME_MED_WITH_WEEKDAY(){return T}static get DATETIME_FULL(){return L}static get DATETIME_FULL_WITH_SECONDS(){return F}static get DATETIME_HUGE(){return H}static get DATETIME_HUGE_WITH_SECONDS(){return D}}function ti(V){if(yn.isDateTime(V))return V;if(V&&V.valueOf&&Ot(V.valueOf()))return yn.fromJSDate(V);if(V&&typeof V=="object")return yn.fromObject(V);throw new s(`Unknown datetime argument: ${V}, of type ${typeof V}`)}const oy="3.7.2";return Na.DateTime=yn,Na.Duration=Gt,Na.FixedOffsetZone=Ct,Na.IANAZone=le,Na.Info=gr,Na.Interval=ln,Na.InvalidZone=yt,Na.Settings=on,Na.SystemZone=ee,Na.VERSION=oy,Na.Zone=K,Na}var SD;function IE(){return SD||(SD=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CronDate=e.DAYS_IN_MONTH=e.DateMathOp=e.TimeUnit=void 0;const t=zme();var n;(function(a){a.Second="Second",a.Minute="Minute",a.Hour="Hour",a.Day="Day",a.Month="Month",a.Year="Year"})(n||(e.TimeUnit=n={}));var r;(function(a){a.Add="Add",a.Subtract="Subtract"})(r||(e.DateMathOp=r={})),e.DAYS_IN_MONTH=Object.freeze([31,29,31,30,31,30,31,31,30,31,30,31]);class o{#e;#t=null;#n=null;constructor(s,l){const c={zone:l};if(s?s instanceof o?(this.#e=s.#e,this.#t=s.#t,this.#n=s.#n):s instanceof Date?this.#e=t.DateTime.fromJSDate(s,c):typeof s=="number"?this.#e=t.DateTime.fromMillis(s,c):(this.#e=t.DateTime.fromISO(s,c),this.#e.isValid||(this.#e=t.DateTime.fromRFC2822(s,c)),this.#e.isValid||(this.#e=t.DateTime.fromSQL(s,c)),this.#e.isValid||(this.#e=t.DateTime.fromFormat(s,"EEE, d MMM yyyy HH:mm:ss",c))):this.#e=t.DateTime.local(),!this.#e.isValid)throw new Error(`CronDate: unhandled timestamp: ${s}`);l&&l!==this.#e.zoneName&&(this.#e=this.#e.setZone(l))}static#o(s){return s%4===0&&s%100!==0||s%400===0}get dstStart(){return this.#t}set dstStart(s){this.#t=s}get dstEnd(){return this.#n}set dstEnd(s){this.#n=s}addYear(){this.#e=this.#e.plus({years:1})}addMonth(){this.#e=this.#e.plus({months:1}).startOf("month")}addDay(){this.#e=this.#e.plus({days:1}).startOf("day")}addHour(){this.#e=this.#e.plus({hours:1}).startOf("hour")}addMinute(){this.#e=this.#e.plus({minutes:1}).startOf("minute")}addSecond(){this.#e=this.#e.plus({seconds:1})}subtractYear(){this.#e=this.#e.minus({years:1})}subtractMonth(){this.#e=this.#e.minus({months:1}).endOf("month").startOf("second")}subtractDay(){this.#e=this.#e.minus({days:1}).endOf("day").startOf("second")}subtractHour(){this.#e=this.#e.minus({hours:1}).endOf("hour").startOf("second")}subtractMinute(){this.#e=this.#e.minus({minutes:1}).endOf("minute").startOf("second")}subtractSecond(){this.#e=this.#e.minus({seconds:1})}addUnit(s){switch(s){case n.Year:return this.addYear();case n.Month:return this.addMonth();case n.Day:return this.addDay();case n.Hour:return this.addHour();case n.Minute:return this.addMinute();case n.Second:return this.addSecond()}}subtractUnit(s){switch(s){case n.Year:return this.subtractYear();case n.Month:return this.subtractMonth();case n.Day:return this.subtractDay();case n.Hour:return this.subtractHour();case n.Minute:return this.subtractMinute();case n.Second:return this.subtractSecond()}}invokeDateOperation(s,l){if(s===r.Add){this.addUnit(l);return}if(s===r.Subtract){this.subtractUnit(l);return}throw new Error(`Invalid verb: ${s}`)}getDate(){return this.#e.day}getFullYear(){return this.#e.year}getDay(){const s=this.#e.weekday;return s===7?0:s}getMonth(){return this.#e.month-1}getHours(){return this.#e.hour}getMinutes(){return this.#e.minute}getSeconds(){return this.#e.second}getMilliseconds(){return this.#e.millisecond}getUTCOffset(){return this.#e.offset}setStartOfDay(){this.#e=this.#e.startOf("day")}setEndOfDay(){this.#e=this.#e.endOf("day")}getTime(){return this.#e.valueOf()}getUTCDate(){return this.#r().day}getUTCFullYear(){return this.#r().year}getUTCDay(){const s=this.#r().weekday;return s===7?0:s}getUTCMonth(){return this.#r().month-1}getUTCHours(){return this.#r().hour}getUTCMinutes(){return this.#r().minute}getUTCSeconds(){return this.#r().second}toISOString(){return this.#e.toUTC().toISO()}toJSON(){return this.#e.toJSON()}setDate(s){this.#e=this.#e.set({day:s})}setFullYear(s){this.#e=this.#e.set({year:s})}setDay(s){this.#e=this.#e.set({weekday:s})}setMonth(s){this.#e=this.#e.set({month:s+1})}setHours(s){this.#e=this.#e.set({hour:s})}setMinutes(s){this.#e=this.#e.set({minute:s})}setSeconds(s){this.#e=this.#e.set({second:s})}setMilliseconds(s){this.#e=this.#e.set({millisecond:s})}toString(){return this.toDate().toString()}toDate(){return this.#e.toJSDate()}isLastDayOfMonth(){const{day:s,month:l}=this.#e;if(l===2){const c=o.#o(this.#e.year);return s===e.DAYS_IN_MONTH[l-1]-(c?0:1)}return s===e.DAYS_IN_MONTH[l-1]}isLastWeekdayOfMonth(){const{day:s,month:l}=this.#e;let c;return l===2?c=e.DAYS_IN_MONTH[l-1]-(o.#o(this.#e.year)?0:1):c=e.DAYS_IN_MONTH[l-1],s>c-7}applyDateOperation(s,l,c){if(l===n.Month||l===n.Day){this.invokeDateOperation(s,l);return}const f=this.getHours();this.invokeDateOperation(s,l);const u=this.getHours(),h=u-f;h===2?c!==24&&(this.dstStart=f+1):h===0&&this.getMinutes()===0&&this.getSeconds()===0&&c!==24&&(this.dstEnd=u)}#r(){return this.#e.toUTC()}}e.CronDate=o,e.default=o})(bD)),bD}var wD;function Fme(){if(wD)return xm;wD=1,Object.defineProperty(xm,"__esModule",{value:!0}),xm.CronMonth=void 0;const e=IE(),t=Ed(),n=1,r=12,o=Object.freeze([]);let a=class extends t.CronField{static get min(){return n}static get max(){return r}static get chars(){return o}static get daysInMonth(){return e.DAYS_IN_MONTH}constructor(s,l){super(s,l),this.validate()}get values(){return super.values}};return xm.CronMonth=a,xm}var Sm={},CD;function _me(){if(CD)return Sm;CD=1,Object.defineProperty(Sm,"__esModule",{value:!0}),Sm.CronSecond=void 0;const e=Ed(),t=0,n=59,r=Object.freeze([]);let o=class extends e.CronField{static get min(){return t}static get max(){return n}static get chars(){return r}constructor(a,s){super(a,s),this.validate()}get values(){return super.values}};return Sm.CronSecond=o,Sm}var kD;function LE(){return kD||(kD=1,(function(e){var t=Df&&Df.__createBinding||(Object.create?(function(r,o,a,s){s===void 0&&(s=a);var l=Object.getOwnPropertyDescriptor(o,a);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(r,s,l)}):(function(r,o,a,s){s===void 0&&(s=a),r[s]=o[a]})),n=Df&&Df.__exportStar||function(r,o){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&t(o,r,a)};Object.defineProperty(e,"__esModule",{value:!0}),n(Dme(),e),n(jme(),e),n(Nme(),e),n(Ed(),e),n(Ime(),e),n(Lme(),e),n(Fme(),e),n(_me(),e)})(Df)),Df}var ED;function P5(){if(ED)return hm;ED=1,Object.defineProperty(hm,"__esModule",{value:!0}),hm.CronFieldCollection=void 0;const e=LE();let t=class Nm{#e;#t;#n;#o;#r;#a;static from(r,o){return new Nm({second:this.resolveField(e.CronSecond,r.second,o.second),minute:this.resolveField(e.CronMinute,r.minute,o.minute),hour:this.resolveField(e.CronHour,r.hour,o.hour),dayOfMonth:this.resolveField(e.CronDayOfMonth,r.dayOfMonth,o.dayOfMonth),month:this.resolveField(e.CronMonth,r.month,o.month),dayOfWeek:this.resolveField(e.CronDayOfWeek,r.dayOfWeek,o.dayOfWeek)})}static resolveField(r,o,a){return a?a instanceof e.CronField?a:new r(a):o}constructor({second:r,minute:o,hour:a,dayOfMonth:s,month:l,dayOfWeek:c}){if(!r)throw new Error("Validation error, Field second is missing");if(!o)throw new Error("Validation error, Field minute is missing");if(!a)throw new Error("Validation error, Field hour is missing");if(!s)throw new Error("Validation error, Field dayOfMonth is missing");if(!l)throw new Error("Validation error, Field month is missing");if(!c)throw new Error("Validation error, Field dayOfWeek is missing");if(l.values.length===1&&!s.hasLastChar&&c.isWildcard&&!(parseInt(s.values[0],10)<=e.CronMonth.daysInMonth[l.values[0]-1]))throw new Error("Invalid explicit day of month definition");this.#e=r,this.#t=o,this.#n=a,this.#r=l,this.#a=c,this.#o=s}get second(){return this.#e}get minute(){return this.#t}get hour(){return this.#n}get dayOfMonth(){return this.#o}get month(){return this.#r}get dayOfWeek(){return this.#a}static compactField(r){if(r.length===0)return[];const o=[];let a;return r.forEach((s,l,c)=>{if(a===void 0){a={start:s,count:1};return}const f=c[l-1]||a.start,u=c[l+1];if(s==="L"||s==="W"){o.push(a),o.push({start:s,count:1}),a=void 0;return}if(a.step===void 0&&u!==void 0){const h=s-f,y=u-s;if(h<=y){a={...a,count:2,end:s,step:h};return}a.step=1}s-(a.end??0)===a.step?(a.count++,a.end=s):(a.count===1?o.push({start:a.start,count:1}):a.count===2?(o.push({start:a.start,count:1}),o.push({start:a.end??f,count:1})):o.push(a),a={start:s,count:1})}),a&&o.push(a),o}static#s(r,o,a){const s=o.step;return s?s===1&&o.start===r.min&&o.end&&o.end>=a?r.hasQuestionMarkChar?"?":"*":s!==1&&o.start===r.min&&o.end&&o.end>=a-s+1?`*/${s}`:null:null}static#i(r,o){const a=r.step;if(a===1)return`${r.start}-${r.end}`;const s=r.start===0?r.count-1:r.count;if(!a)throw new Error("Unexpected range step");if(!r.end)throw new Error("Unexpected range end");if(a*s>r.end){const l=(f,u)=>{if(typeof r.start!="number")throw new Error("Unexpected range start");return u%a===0?r.start+u:null};if(typeof r.start!="number")throw new Error("Unexpected range start");const c={length:r.end-r.start+1};return Array.from(c,l).filter(f=>f!==null).join(",")}return r.end===o-a+1?`${r.start}/${a}`:`${r.start}-${r.end}/${a}`}stringifyField(r){let o=r.max,a=r.values;if(r instanceof e.CronDayOfWeek){o=6;const l=this.#a.values;a=l[l.length-1]===7?l.slice(0,-1):l}r instanceof e.CronDayOfMonth&&(o=this.#r.values.length===1?e.CronMonth.daysInMonth[this.#r.values[0]-1]:r.max);const s=Nm.compactField(a);if(s.length===1){const l=Nm.#s(r,s[0],o);if(l)return l}return s.map(l=>{const c=l.count===1?l.start.toString():Nm.#i(l,o);return r instanceof e.CronDayOfWeek&&r.nthDay>0?`${c}#${r.nthDay}`:c}).join(",")}stringify(r=!1){const o=[];return r&&o.push(this.stringifyField(this.#e)),o.push(this.stringifyField(this.#t),this.stringifyField(this.#n),this.stringifyField(this.#o),this.stringifyField(this.#r),this.stringifyField(this.#a)),o.join(" ")}serialize(){return{second:this.#e.serialize(),minute:this.#t.serialize(),hour:this.#n.serialize(),dayOfMonth:this.#o.serialize(),month:this.#r.serialize(),dayOfWeek:this.#a.serialize()}}};return hm.CronFieldCollection=t,hm}var TD={},MD;function A5(){return MD||(MD=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CronExpression=e.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE=e.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE=void 0;const t=IE();e.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE="Out of the time span range",e.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE="Invalid expression, loop limit exceeded";const n=1e4;class r{#e;#t;#n;#o;#r;#a;#s=null;#i=!1;constructor(a,s){this.#e=s,this.#t=s.tz,this.#o=s.startDate?new t.CronDate(s.startDate,this.#t):null,this.#r=s.endDate?new t.CronDate(s.endDate,this.#t):null;let l=s.currentDate??s.startDate;if(l){const c=new t.CronDate(l,this.#t);this.#o&&c.getTime()<this.#o.getTime()?l=this.#o:this.#r&&c.getTime()>this.#r.getTime()&&(l=this.#r)}this.#n=new t.CronDate(l,this.#t),this.#a=a}get fields(){return this.#a}static fieldsToExpression(a,s){return new r(a,s||{})}static#c(a,s){return s.some(l=>l===a)}#l(a,s){return a[s?a.length-1:0]}#d(a){const s=`${a.getFullYear()}-${a.getMonth()+1}-${a.getDate()}`;if(this.#s===s)return this.#i;const l=new t.CronDate(a);l.setStartOfDay();const c=new t.CronDate(a);return c.setEndOfDay(),this.#s=s,this.#i=l.getUTCOffset()!==c.getUTCOffset(),this.#i}#u(a,s,l){const c=this.#a.second.values,f=a.getSeconds(),u=this.#a.second.findNearestValue(f,l);if(u!==null){a.setSeconds(u);return}a.applyDateOperation(s,t.TimeUnit.Minute,this.#a.hour.values.length),a.setSeconds(this.#l(c,l))}#p(a,s,l){const c=this.#a.minute.values,f=this.#a.second.values,u=a.getMinutes(),h=this.#a.minute.findNearestValue(u,l);if(h!==null){a.setMinutes(h),a.setSeconds(this.#l(f,l));return}a.applyDateOperation(s,t.TimeUnit.Hour,this.#a.hour.values.length),a.setMinutes(this.#l(c,l)),a.setSeconds(this.#l(f,l))}static#f(a,s){const l=s.isLastWeekdayOfMonth();return a.some(c=>{const f=parseInt(c.toString().charAt(0),10)%7;if(Number.isNaN(f))throw new Error(`Invalid last weekday of the month expression: ${c}`);return s.getDay()===f&&l})}next(){return this.#h()}prev(){return this.#h(!0)}hasNext(){const a=this.#n;try{return this.#h(),!0}catch{return!1}finally{this.#n=a}}hasPrev(){const a=this.#n;try{return this.#h(!0),!0}catch{return!1}finally{this.#n=a}}take(a){const s=[];if(a>=0)for(let l=0;l<a;l++)try{s.push(this.next())}catch{return s}else for(let l=0;l>a;l--)try{s.push(this.prev())}catch{return s}return s}reset(a){this.#n=new t.CronDate(a||this.#e.currentDate,this.#t)}stringify(a=!1){return this.#a.stringify(a)}includesDate(a){const{second:s,minute:l,hour:c,month:f}=this.#a,u=new t.CronDate(a,this.#t);return!(!s.values.includes(u.getSeconds())||!l.values.includes(u.getMinutes())||!c.values.includes(u.getHours())||!f.values.includes(u.getMonth()+1)||!this.#m(u)||this.#a.dayOfWeek.nthDay>0&&Math.ceil(u.getDate()/7)!==this.#a.dayOfWeek.nthDay)}toString(){return this.#e.expression||this.stringify(!0)}#m(a){const s=this.#a.dayOfMonth.isWildcard,l=!s,c=this.#a.dayOfWeek.isWildcard,f=!c,u=r.#c(a.getDate(),this.#a.dayOfMonth.values)||this.#a.dayOfMonth.hasLastChar&&a.isLastDayOfMonth(),h=r.#c(a.getDay(),this.#a.dayOfWeek.values)||this.#a.dayOfWeek.hasLastChar&&r.#f(this.#a.dayOfWeek.values,a);return!!(l&&f&&(u||h)||u&&!f||s&&!c&&h)}#g(a,s,l){const c=this.#a.hour.values,f=c,u=a.getHours(),h=r.#c(u,c),y=a.dstEnd===u;if(a.dstStart!==null&&a.dstStart===u-1&&r.#c(a.dstStart,c))return!0;if(y&&!l)return a.dstEnd=null,a.applyDateOperation(t.DateMathOp.Add,t.TimeUnit.Hour,f.length),!1;if(h)return!0;a.dstStart=null;const v=this.#a.hour.findNearestValue(u,l);if(v===null)return a.applyDateOperation(s,t.TimeUnit.Day,f.length),!1;if(this.#d(a)){const S=l?u-v:v-u;for(let x=0;x<S&&(a.applyDateOperation(s,t.TimeUnit.Hour,f.length),!(!l&&a.getHours()>=v||l&&a.getHours()<=v));x++);}else a.setHours(v);return a.setMinutes(this.#l(this.#a.minute.values,l)),a.setSeconds(this.#l(this.#a.second.values,l)),!1}#y(a){if(!this.#o&&!this.#r)return;const s=a.getTime();if(this.#o&&s<this.#o.getTime())throw new Error(e.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE);if(this.#r&&s>this.#r.getTime())throw new Error(e.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE)}#h(a=!1){const s=a?t.DateMathOp.Subtract:t.DateMathOp.Add,l=new t.CronDate(this.#n),c=l.getTime();let f=0;for(;++f<n;){if(this.#y(l),!this.#m(l)){l.applyDateOperation(s,t.TimeUnit.Day,this.#a.hour.values.length);continue}if(!(this.#a.dayOfWeek.nthDay<=0||Math.ceil(l.getDate()/7)===this.#a.dayOfWeek.nthDay)){l.applyDateOperation(s,t.TimeUnit.Day,this.#a.hour.values.length);continue}if(!r.#c(l.getMonth()+1,this.#a.month.values)){l.applyDateOperation(s,t.TimeUnit.Month,this.#a.hour.values.length);continue}if(this.#g(l,s,a)){if(!r.#c(l.getMinutes(),this.#a.minute.values)){this.#p(l,s,a);continue}if(!r.#c(l.getSeconds(),this.#a.second.values)){this.#u(l,s,a);continue}if(c===l.getTime()){(s==="Add"||l.getMilliseconds()===0)&&l.applyDateOperation(s,t.TimeUnit.Second,this.#a.hour.values.length);continue}break}}if(f>n)throw new Error(e.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE);return l.getMilliseconds()!==0&&l.setMilliseconds(0),this.#n=l,l}[Symbol.iterator](){return{next:()=>{try{return{value:this.#h(),done:!1}}catch{return{value:void 0,done:!0}}}}}}e.CronExpression=r,e.default=r})(TD)),TD}var $v={},RD;function Bme(){if(RD)return $v;RD=1,Object.defineProperty($v,"__esModule",{value:!0}),$v.seededRandom=n;function e(r){let o=2166136261;for(let a=0;a<r.length;a++)o^=r.charCodeAt(a),o=Math.imul(o,16777619);return()=>o>>>0}function t(r){return()=>{let o=r+=1831565813;return o=Math.imul(o^o>>>15,o|1),o^=o+Math.imul(o^o>>>7,o|61),((o^o>>>14)>>>0)/4294967296}}function n(r){const o=r?e(r)():Math.floor(Math.random()*1e10);return t(o)}return $v}var OD;function uC(){if(OD)return si;OD=1,Object.defineProperty(si,"__esModule",{value:!0}),si.CronExpressionParser=si.DayOfWeek=si.Months=si.CronUnit=si.PredefinedExpressions=void 0;const e=P5(),t=A5(),n=Bme(),r=LE();var o;(function(f){f["@yearly"]="0 0 0 1 1 *",f["@annually"]="0 0 0 1 1 *",f["@monthly"]="0 0 0 1 * *",f["@weekly"]="0 0 0 * * 0",f["@daily"]="0 0 0 * * *",f["@hourly"]="0 0 * * * *",f["@minutely"]="0 * * * * *",f["@secondly"]="* * * * * *",f["@weekdays"]="0 0 0 * * 1-5",f["@weekends"]="0 0 0 * * 0,6"})(o||(si.PredefinedExpressions=o={}));var a;(function(f){f.Second="Second",f.Minute="Minute",f.Hour="Hour",f.DayOfMonth="DayOfMonth",f.Month="Month",f.DayOfWeek="DayOfWeek"})(a||(si.CronUnit=a={}));var s;(function(f){f[f.jan=1]="jan",f[f.feb=2]="feb",f[f.mar=3]="mar",f[f.apr=4]="apr",f[f.may=5]="may",f[f.jun=6]="jun",f[f.jul=7]="jul",f[f.aug=8]="aug",f[f.sep=9]="sep",f[f.oct=10]="oct",f[f.nov=11]="nov",f[f.dec=12]="dec"})(s||(si.Months=s={}));var l;(function(f){f[f.sun=0]="sun",f[f.mon=1]="mon",f[f.tue=2]="tue",f[f.wed=3]="wed",f[f.thu=4]="thu",f[f.fri=5]="fri",f[f.sat=6]="sat"})(l||(si.DayOfWeek=l={}));let c=class li{static parse(u,h={}){const{strict:y=!1,hashSeed:v}=h,S=(0,n.seededRandom)(v);u=o[u]||u;const x=li.#e(u,y);if(!(x.dayOfMonth==="*"||x.dayOfWeek==="*"||!y))throw new Error("Cannot use both dayOfMonth and dayOfWeek together in strict mode!");const w=li.#t(a.Second,x.second,r.CronSecond.constraints,S),b=li.#t(a.Minute,x.minute,r.CronMinute.constraints,S),k=li.#t(a.Hour,x.hour,r.CronHour.constraints,S),E=li.#t(a.Month,x.month,r.CronMonth.constraints,S),O=li.#t(a.DayOfMonth,x.dayOfMonth,r.CronDayOfMonth.constraints,S),{dayOfWeek:$,nthDayOfWeek:A}=li.#d(x.dayOfWeek),I=li.#t(a.DayOfWeek,$,r.CronDayOfWeek.constraints,S),j=new e.CronFieldCollection({second:new r.CronSecond(w,{rawValue:x.second}),minute:new r.CronMinute(b,{rawValue:x.minute}),hour:new r.CronHour(k,{rawValue:x.hour}),dayOfMonth:new r.CronDayOfMonth(O,{rawValue:x.dayOfMonth}),month:new r.CronMonth(E,{rawValue:x.month}),dayOfWeek:new r.CronDayOfWeek(I,{rawValue:x.dayOfWeek,nthDayOfWeek:A})});return new t.CronExpression(j,{...h,expression:u})}static#e(u,h){if(h&&!u.length)throw new Error("Invalid cron expression");u=u||"0 * * * * *";const y=u.trim().split(/\s+/);if(h&&y.length<6)throw new Error("Invalid cron expression, expected 6 fields");if(y.length>6)throw new Error("Invalid cron expression, too many fields");const v=["*","*","*","*","*","0"];y.length<v.length&&y.unshift(...v.slice(y.length));const[S,x,w,b,k,E]=y;return{second:S,minute:x,hour:w,dayOfMonth:b,month:k,dayOfWeek:E}}static#t(u,h,y,v){if((u===a.Month||u===a.DayOfWeek)&&(h=h.replace(/[a-z]{3}/gi,S=>{S=S.toLowerCase();const x=s[S]||l[S];if(x===void 0)throw new Error(`Validation error, cannot resolve alias "${S}"`);return x.toString()})),!y.validChars.test(h))throw new Error(`Invalid characters, got value: ${h}`);return h=this.#n(h,y),h=this.#o(h,y,v),this.#r(u,h,y)}static#n(u,h){return u.replace(/[*?]/g,h.min+"-"+h.max)}static#o(u,h,y){const v=y();return u.replace(/H(?:\((\d+)-(\d+)\))?(?:\/(\d+))?/g,(S,x,w,b)=>{if(x&&w&&b){const k=parseInt(x,10),E=parseInt(w,10),O=parseInt(b,10);if(k>E)throw new Error(`Invalid range: ${k}-${E}, min > max`);if(O<=0)throw new Error(`Invalid step: ${O}, must be positive`);const $=Math.max(k,h.min),A=Math.floor(v*O),I=[];for(let j=Math.floor($/O)*O+A;j<=E;j+=O)j>=$&&I.push(j);return I.join(",")}else if(x&&w){const k=parseInt(x,10),E=parseInt(w,10);if(k>E)throw new Error(`Invalid range: ${k}-${E}, min > max`);return String(Math.floor(v*(E-k+1))+k)}else if(b){const k=parseInt(b,10);if(k<=0)throw new Error(`Invalid step: ${k}, must be positive`);const E=Math.floor(v*k),O=[];for(let $=Math.floor(h.min/k)*k+E;$<=h.max;$+=k)$>=h.min&&O.push($);return O.join(",")}else return String(Math.floor(v*(h.max-h.min+1)+h.min))})}static#r(u,h,y){const v=[];function S(x,w){if(Array.isArray(x))v.push(...x);else if(li.#u(w,x))v.push(x);else{const b=parseInt(x.toString(),10);if(!(b>=w.min&&b<=w.max))throw new Error(`Constraint error, got value ${x} expected range ${w.min}-${w.max}`);v.push(u===a.DayOfWeek?b%7:x)}}return h.split(",").forEach(x=>{if(!(x.length>0))throw new Error("Invalid list value format");S(li.#a(u,x,y),y)}),v}static#a(u,h,y){const v=h.split("/");if(v.length>2)throw new Error(`Invalid repeat: ${h}`);return v.length===2?(v[0].includes("-")||(v[0]=`${v[0]}-${y.max}`),li.#l(u,v[0],parseInt(v[1],10),y)):li.#l(u,h,1,y)}static#s(u,h,y){if(!(!isNaN(u)&&!isNaN(h)&&u>=y.min&&h<=y.max))throw new Error(`Constraint error, got range ${u}-${h} expected range ${y.min}-${y.max}`);if(u>h)throw new Error(`Invalid range: ${u}-${h}, min(${u}) > max(${h})`)}static#i(u){if(!(!isNaN(u)&&u>0))throw new Error(`Constraint error, cannot repeat at every ${u} time.`)}static#c(u,h,y,v){const S=[];u===a.DayOfWeek&&y%7===0&&S.push(0);for(let x=h;x<=y;x+=v)S.indexOf(x)===-1&&S.push(x);return S}static#l(u,h,y,v){const S=h.split("-");if(S.length<=1)return isNaN(+h)?h:+h;const[x,w]=S.map(b=>parseInt(b,10));return this.#s(x,w,v),this.#i(y),this.#c(u,x,w,y)}static#d(u){const h=u.split("#");if(h.length<=1)return{dayOfWeek:h[0]};const y=+h[h.length-1],v=u.match(/([,-/])/);if(v!==null)throw new Error(`Constraint error, invalid dayOfWeek \`#\` and \`${v?.[0]}\` special characters are incompatible`);if(!(h.length<=2&&!isNaN(y)&&y>=1&&y<=5))throw new Error("Constraint error, invalid dayOfWeek occurrence number (#)");return{dayOfWeek:h[0],nthDayOfWeek:y}}static#u(u,h){return u.chars.some(y=>h.toString().includes(y))}};return si.CronExpressionParser=c,si}var xs={};const Ume={},Vme=Object.freeze(Object.defineProperty({__proto__:null,default:Ume},Symbol.toStringTag,{value:"Module"})),$D=NJ(Vme);var PD;function Hme(){if(PD)return xs;PD=1;var e=xs&&xs.__createBinding||(Object.create?(function(a,s,l,c){c===void 0&&(c=l);var f=Object.getOwnPropertyDescriptor(s,l);(!f||("get"in f?!s.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return s[l]}}),Object.defineProperty(a,c,f)}):(function(a,s,l,c){c===void 0&&(c=l),a[c]=s[l]})),t=xs&&xs.__setModuleDefault||(Object.create?(function(a,s){Object.defineProperty(a,"default",{enumerable:!0,value:s})}):function(a,s){a.default=s}),n=xs&&xs.__importStar||(function(){var a=function(s){return a=Object.getOwnPropertyNames||function(l){var c=[];for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(c[c.length]=f);return c},a(s)};return function(s){if(s&&s.__esModule)return s;var l={};if(s!=null)for(var c=a(s),f=0;f<c.length;f++)c[f]!=="default"&&e(l,s,c[f]);return t(l,s),l}})();Object.defineProperty(xs,"__esModule",{value:!0}),xs.CronFileParser=void 0;const r=uC();let o=class tb{static async parseFile(s){const{readFile:l}=await Promise.resolve().then(()=>n($D)),c=await l(s,"utf8");return tb.#e(c)}static parseFileSync(s){const{readFileSync:l}=$D,c=l(s,"utf8");return tb.#e(c)}static#e(s){const l=s.split(`
451
+ `),c={variables:{},expressions:[],errors:{}};for(const f of l){const u=f.trim();if(u.length===0||u.startsWith("#"))continue;const h=u.match(/^(.*)=(.*)$/);if(h){const[,y,v]=h;c.variables[y]=v.replace(/["']/g,"");continue}try{const y=tb.#t(u);c.expressions.push(y.interval)}catch(y){c.errors[u]=y}}return c}static#t(s){const l=s.split(" ");return{interval:r.CronExpressionParser.parse(l.slice(0,5).join(" ")),command:l.slice(5,l.length)}}};return xs.CronFileParser=o,xs}var AD;function Wme(){return AD||(AD=1,(function(e){var t=Af&&Af.__createBinding||(Object.create?(function(f,u,h,y){y===void 0&&(y=h);var v=Object.getOwnPropertyDescriptor(u,h);(!v||("get"in v?!u.__esModule:v.writable||v.configurable))&&(v={enumerable:!0,get:function(){return u[h]}}),Object.defineProperty(f,y,v)}):(function(f,u,h,y){y===void 0&&(y=h),f[y]=u[h]})),n=Af&&Af.__exportStar||function(f,u){for(var h in f)h!=="default"&&!Object.prototype.hasOwnProperty.call(u,h)&&t(u,f,h)};Object.defineProperty(e,"__esModule",{value:!0}),e.CronFileParser=e.CronExpressionParser=e.CronExpression=e.CronFieldCollection=e.CronDate=void 0;const r=uC();var o=IE();Object.defineProperty(e,"CronDate",{enumerable:!0,get:function(){return o.CronDate}});var a=P5();Object.defineProperty(e,"CronFieldCollection",{enumerable:!0,get:function(){return a.CronFieldCollection}});var s=A5();Object.defineProperty(e,"CronExpression",{enumerable:!0,get:function(){return s.CronExpression}});var l=uC();Object.defineProperty(e,"CronExpressionParser",{enumerable:!0,get:function(){return l.CronExpressionParser}});var c=Hme();Object.defineProperty(e,"CronFileParser",{enumerable:!0,get:function(){return c.CronFileParser}}),n(LE(),e),e.default=r.CronExpressionParser})(Af)),Af}var qme=Wme(),DD={exports:{}},jD;function Yme(){return jD||(jD=1,(function(e,t){(function(n,r){e.exports=r()})(globalThis,()=>(()=>{var n={949:((s,l,c)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.CronParser=void 0;var f=c(515),u=(function(){function h(y,v,S){v===void 0&&(v=!0),S===void 0&&(S=!1),this.expression=y,this.dayOfWeekStartIndexZero=v,this.monthStartIndexZero=S}return h.prototype.parse=function(){var y,v,S=(y=this.expression)!==null&&y!==void 0?y:"";if(S==="@reboot")return v=["@reboot","","","","","",""],v;if(S.startsWith("@")){var x=this.parseSpecial(this.expression);v=this.extractParts(x)}else v=this.extractParts(this.expression);return this.normalize(v),this.validate(v),v},h.prototype.parseSpecial=function(y){var v={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *","@reboot":"@reboot"},S=v[y];if(!S)throw new Error("Unknown special expression.");return S},h.prototype.extractParts=function(y){if(!this.expression)throw new Error("cron expression is empty");for(var v=y.trim().split(/[ ]+/),S=0;S<v.length;S++)if(v[S].includes(",")){var x=v[S].split(",").map(function(b){return b.trim()}).filter(function(b){return b!==""}).map(function(b){return isNaN(Number(b))?b:Number(b)}).filter(function(b){return b!==null&&b!==""});x.length===0&&x.push("*"),x.sort(function(b,k){return b!==null&&k!==null?b-k:0}),v[S]=x.map(function(b){return b!==null?b.toString():""}).join(",")}if(v.length<5)throw new Error("Expression has only ".concat(v.length," part").concat(v.length==1?"":"s",". At least 5 parts are required."));if(v.length==5)v.unshift(""),v.push("");else if(v.length==6){var w=/\d{4}$/.test(v[5])||v[4]=="?"||v[2]=="?";w?v.unshift(""):v.push("")}else if(v.length>7)throw new Error("Expression has ".concat(v.length," parts; too many!"));return v},h.prototype.normalize=function(y){var v=this;if(y[3]=y[3].replace("?","*"),y[5]=y[5].replace("?","*"),y[2]=y[2].replace("?","*"),y[0].indexOf("0/")==0&&(y[0]=y[0].replace("0/","*/")),y[1].indexOf("0/")==0&&(y[1]=y[1].replace("0/","*/")),y[2].indexOf("0/")==0&&(y[2]=y[2].replace("0/","*/")),y[3].indexOf("1/")==0&&(y[3]=y[3].replace("1/","*/")),y[4].indexOf("1/")==0&&(y[4]=y[4].replace("1/","*/")),y[6].indexOf("1/")==0&&(y[6]=y[6].replace("1/","*/")),y[5]=y[5].replace(/(^\d)|([^#/\s]\d)/g,function($){var A=$.replace(/\D/,""),I=A;return v.dayOfWeekStartIndexZero?A=="7"&&(I="0"):I=(parseInt(A)-1).toString(),$.replace(A,I)}),y[5]=="L"&&(y[5]="6"),y[3]=="?"&&(y[3]="*"),y[3].indexOf("W")>-1&&(y[3].indexOf(",")>-1||y[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var S={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var x in S)y[5]=y[5].replace(new RegExp(x,"gi"),S[x].toString());y[4]=y[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function($){var A=$.replace(/\D/,""),I=A;return v.monthStartIndexZero&&(I=(parseInt(A)+1).toString()),$.replace(A,I)});var w={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var b in w)y[4]=y[4].replace(new RegExp(b,"gi"),w[b].toString());y[0]=="0"&&(y[0]=""),!/\*|\-|\,|\//.test(y[2])&&(/\*|\//.test(y[1])||/\*|\//.test(y[0]))&&(y[2]+="-".concat(y[2]));for(var k=0;k<y.length;k++)if(y[k].indexOf(",")!=-1&&(y[k]=y[k].split(",").filter(function($){return $!==""}).join(",")||"*"),y[k]=="*/1"&&(y[k]="*"),y[k].indexOf("/")>-1&&!/^\*|\-|\,/.test(y[k])){var E=null;switch(k){case 4:E="12";break;case 5:E="6";break;case 6:E="9999";break;default:E=null;break}if(E!==null){var O=y[k].split("/");y[k]="".concat(O[0],"-").concat(E,"/").concat(O[1])}}},h.prototype.validate=function(y){var v="0-9,\\-*/";this.validateOnlyExpectedCharactersFound(y[0],v),this.validateOnlyExpectedCharactersFound(y[1],v),this.validateOnlyExpectedCharactersFound(y[2],v),this.validateOnlyExpectedCharactersFound(y[3],"0-9,\\-*/LW"),this.validateOnlyExpectedCharactersFound(y[4],v),this.validateOnlyExpectedCharactersFound(y[5],"0-9,\\-*/L#"),this.validateOnlyExpectedCharactersFound(y[6],v),this.validateAnyRanges(y)},h.prototype.validateAnyRanges=function(y){f.default.secondRange(y[0]),f.default.minuteRange(y[1]),f.default.hourRange(y[2]),f.default.dayOfMonthRange(y[3]),f.default.monthRange(y[4],this.monthStartIndexZero),f.default.dayOfWeekRange(y[5],this.dayOfWeekStartIndexZero)},h.prototype.validateOnlyExpectedCharactersFound=function(y,v){var S=y.match(new RegExp("[^".concat(v,"]+"),"gi"));if(S&&S.length)throw new Error("Expression contains invalid values: '".concat(S.toString(),"'"))},h})();l.CronParser=u}),333:((s,l,c)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.ExpressionDescriptor=void 0;var f=c(823),u=c(949),h=(function(){function y(v,S){if(this.expression=v,this.options=S,this.expressionParts=new Array(5),!this.options.locale&&y.defaultLocale&&(this.options.locale=y.defaultLocale),!y.locales[this.options.locale]){var x=Object.keys(y.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(x,"'.")),this.options.locale=x}this.i18n=y.locales[this.options.locale],S.use24HourTimeFormat===void 0&&(S.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return y.toString=function(v,S){var x=S===void 0?{}:S,w=x.throwExceptionOnParseError,b=w===void 0?!0:w,k=x.verbose,E=k===void 0?!1:k,O=x.dayOfWeekStartIndexZero,$=O===void 0?!0:O,A=x.monthStartIndexZero,I=A===void 0?!1:A,j=x.use24HourTimeFormat,_=x.locale,W=_===void 0?null:_,U={throwExceptionOnParseError:b,verbose:E,dayOfWeekStartIndexZero:$,monthStartIndexZero:I,use24HourTimeFormat:j,locale:W};U.tzOffset&&console.warn("'tzOffset' option has been deprecated and is no longer supported.");var T=new y(v,U);return T.getFullDescription()},y.initialize=function(v,S){S===void 0&&(S="en"),y.specialCharacters=["/","-",",","*"],y.defaultLocale=S,v.load(y.locales)},y.prototype.getFullDescription=function(){var v,S,x="";try{var w=new u.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);if(this.expressionParts=w.parse(),this.expressionParts[0]==="@reboot")return((S=(v=this.i18n).atReboot)===null||S===void 0?void 0:S.call(v))||"Run once, at startup";var b=this.getTimeOfDayDescription(),k=this.getDayOfMonthDescription(),E=this.getMonthDescription(),O=this.getDayOfWeekDescription(),$=this.getYearDescription();x+=b+k+O+E+$,x=this.transformVerbosity(x,!!this.options.verbose),x=x.charAt(0).toLocaleUpperCase()+x.substr(1)}catch(A){if(!this.options.throwExceptionOnParseError)x=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(A)}return x},y.prototype.getTimeOfDayDescription=function(){var v=this.expressionParts[0],S=this.expressionParts[1],x=this.expressionParts[2],w="";if(!f.StringUtilities.containsAny(S,y.specialCharacters)&&!f.StringUtilities.containsAny(x,y.specialCharacters)&&!f.StringUtilities.containsAny(v,y.specialCharacters))w+=this.i18n.atSpace()+this.formatTime(x,S,v);else if(!v&&S.indexOf("-")>-1&&!(S.indexOf(",")>-1)&&!(S.indexOf("/")>-1)&&!f.StringUtilities.containsAny(x,y.specialCharacters)){var b=S.split("-");w+=f.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(x,b[0],""),this.formatTime(x,b[1],""))}else if(!v&&x.indexOf(",")>-1&&x.indexOf("-")==-1&&x.indexOf("/")==-1&&!f.StringUtilities.containsAny(S,y.specialCharacters)){var k=x.split(",");w+=this.i18n.at();for(var E=0;E<k.length;E++)w+=" ",w+=this.formatTime(k[E],S,""),E<k.length-2&&(w+=","),E==k.length-2&&(w+=this.i18n.spaceAnd())}else{var O=this.getSecondsDescription(),$=this.getMinutesDescription(),A=this.getHoursDescription();if(w+=O,w&&$&&(w+=", "),w+=$,$===A)return w;w&&A&&(w+=", "),w+=A}return w},y.prototype.getSecondsDescription=function(){var v=this,S=this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(x){return x},function(x){return f.StringUtilities.format(v.i18n.everyX0Seconds(x),x)},function(x){return v.i18n.secondsX0ThroughX1PastTheMinute()},function(x){return x=="0"?"":parseInt(x)<20?v.i18n.atX0SecondsPastTheMinute(x):v.i18n.atX0SecondsPastTheMinuteGt20()||v.i18n.atX0SecondsPastTheMinute(x)});return S},y.prototype.getMinutesDescription=function(){var v=this,S=this.expressionParts[0],x=this.expressionParts[2],w=this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(b){return b},function(b){return f.StringUtilities.format(v.i18n.everyX0Minutes(b),b)},function(b){return v.i18n.minutesX0ThroughX1PastTheHour()},function(b){try{return b=="0"&&x.indexOf("/")==-1&&S==""?v.i18n.everyHour():parseInt(b)<20?v.i18n.atX0MinutesPastTheHour(b):v.i18n.atX0MinutesPastTheHourGt20()||v.i18n.atX0MinutesPastTheHour(b)}catch{return v.i18n.atX0MinutesPastTheHour(b)}});return w},y.prototype.getHoursDescription=function(){var v=this,S=this.expressionParts[2],x=0,w=[];S.split("/")[0].split(",").forEach(function(E){var O=E.split("-");O.length===2&&w.push({value:O[1],index:x+1}),x+=O.length});var b=0,k=this.getSegmentDescription(S,this.i18n.everyHour(),function(E){var O=w.find(function(A){return A.value===E&&A.index===b}),$=O&&v.expressionParts[1]!=="0";return b++,$?v.formatTime(E,"59",""):v.formatTime(E,"0","")},function(E){return f.StringUtilities.format(v.i18n.everyX0Hours(E),E)},function(E){return v.i18n.betweenX0AndX1()},function(E){return v.i18n.atX0()});return k},y.prototype.getDayOfWeekDescription=function(){var v=this,S=this.i18n.daysOfTheWeek(),x=null;return this.expressionParts[5]=="*"?x="":x=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(w,b){var k=w;w.indexOf("#")>-1?k=w.substring(0,w.indexOf("#")):w.indexOf("L")>-1&&(k=k.replace("L",""));var E=parseInt(k),O=v.i18n.daysOfTheWeekInCase?v.i18n.daysOfTheWeekInCase(b)[E]:S[E];if(w.indexOf("#")>-1){var $=null,A=w.substring(w.indexOf("#")+1),I=w.substring(0,w.indexOf("#"));switch(A){case"1":$=v.i18n.first(I);break;case"2":$=v.i18n.second(I);break;case"3":$=v.i18n.third(I);break;case"4":$=v.i18n.fourth(I);break;case"5":$=v.i18n.fifth(I);break}O=$+" "+O}return O},function(w){return parseInt(w)==1?"":f.StringUtilities.format(v.i18n.commaEveryX0DaysOfTheWeek(w),w)},function(w){var b=w.substring(0,w.indexOf("-")),k=v.expressionParts[3]!="*";return k?v.i18n.commaAndX0ThroughX1(b):v.i18n.commaX0ThroughX1(b)},function(w){var b=null;if(w.indexOf("#")>-1){var k=w.substring(w.indexOf("#")+1),E=w.substring(0,w.indexOf("#"));b=v.i18n.commaOnThe(k,E).trim()+v.i18n.spaceX0OfTheMonth()}else if(w.indexOf("L")>-1)b=v.i18n.commaOnTheLastX0OfTheMonth(w.replace("L",""));else{var O=v.expressionParts[3]!="*";b=O?v.i18n.commaAndOnX0():v.i18n.commaOnlyOnX0(w)}return b}),x},y.prototype.getMonthDescription=function(){var v=this,S=this.i18n.monthsOfTheYear(),x=this.getSegmentDescription(this.expressionParts[4],"",function(w,b){return b&&v.i18n.monthsOfTheYearInCase?v.i18n.monthsOfTheYearInCase(b)[parseInt(w)-1]:S[parseInt(w)-1]},function(w){return parseInt(w)==1?"":f.StringUtilities.format(v.i18n.commaEveryX0Months(w),w)},function(w){return v.i18n.commaMonthX0ThroughMonthX1()||v.i18n.commaX0ThroughX1()},function(w){return v.i18n.commaOnlyInMonthX0?v.i18n.commaOnlyInMonthX0():v.i18n.commaOnlyInX0()});return x},y.prototype.getDayOfMonthDescription=function(){var v=this,S=null,x=this.expressionParts[3];switch(x){case"L":S=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":S=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var w=x.match(/(\d{1,2}W)|(W\d{1,2})/);if(w){var b=parseInt(w[0].replace("W","")),k=b==1?this.i18n.firstWeekday():f.StringUtilities.format(this.i18n.weekdayNearestDayX0(),b.toString());S=f.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),k);break}else{var E=x.match(/L-(\d{1,2})/);if(E){var O=E[1];S=f.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(O),O);break}else{if(x=="*"&&this.expressionParts[5]!="*")return"";S=this.getSegmentDescription(x,this.i18n.commaEveryDay(),function($){return $=="L"?v.i18n.lastDay():v.i18n.dayX0?f.StringUtilities.format(v.i18n.dayX0(),$):$},function($){return $=="1"?v.i18n.commaEveryDay():v.i18n.commaEveryX0Days($)},function($){return v.i18n.commaBetweenDayX0AndX1OfTheMonth($)},function($){return v.i18n.commaOnDayX0OfTheMonth($)})}break}}return S},y.prototype.getYearDescription=function(){var v=this,S=this.getSegmentDescription(this.expressionParts[6],"",function(x){return/^\d+$/.test(x)?new Date(parseInt(x),1).getFullYear().toString():x},function(x){return f.StringUtilities.format(v.i18n.commaEveryX0Years(x),x)},function(x){return v.i18n.commaYearX0ThroughYearX1()||v.i18n.commaX0ThroughX1()},function(x){return v.i18n.commaOnlyInYearX0?v.i18n.commaOnlyInYearX0():v.i18n.commaOnlyInX0()});return S},y.prototype.getSegmentDescription=function(v,S,x,w,b,k){var E=null,O=v.indexOf("/")>-1,$=v.indexOf("-")>-1,A=v.indexOf(",")>-1;if(!v)E="";else if(v==="*")E=S;else if(!O&&!$&&!A)E=f.StringUtilities.format(k(v),x(v));else if(A){for(var I=v.split(","),j="",_=0;_<I.length;_++)if(_>0&&I.length>2&&(j+=",",_<I.length-1&&(j+=" ")),_>0&&I.length>1&&(_==I.length-1||I.length==2)&&(j+="".concat(this.i18n.spaceAnd()," ")),I[_].indexOf("/")>-1||I[_].indexOf("-")>-1){var W=I[_].indexOf("-")>-1&&I[_].indexOf("/")==-1,U=this.getSegmentDescription(I[_],S,x,w,W?this.i18n.commaX0ThroughX1:b,k);W&&(U=U.replace(", ","")),j+=U}else O?j+=this.getSegmentDescription(I[_],S,x,w,b,k):j+=x(I[_]);O?E=j:E=f.StringUtilities.format(k(v),j)}else if(O){var I=v.split("/");if(E=f.StringUtilities.format(w(I[1]),I[1]),I[0].indexOf("-")>-1){var T=this.generateRangeSegmentDescription(I[0],b,x);T.indexOf(", ")!=0&&(E+=", "),E+=T}else if(I[0].indexOf("*")==-1){var L=f.StringUtilities.format(k(I[0]),x(I[0]));L=L.replace(", ",""),E+=f.StringUtilities.format(this.i18n.commaStartingX0(),L)}}else $&&(E=this.generateRangeSegmentDescription(v,b,x));return E},y.prototype.generateRangeSegmentDescription=function(v,S,x){var w="",b=v.split("-"),k=x(b[0],1),E=x(b[1],2),O=S(v);return w+=f.StringUtilities.format(O,k,E),w},y.prototype.formatTime=function(v,S,x){var w=0,b=0,k=parseInt(v)+w,E=parseInt(S)+b;E>=60?(E-=60,k+=1):E<0&&(E+=60,k-=1),k>=24?k=k-24:k<0&&(k=24+k);var O="",$=!1;this.options.use24HourTimeFormat||($=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),O=$?"".concat(this.getPeriod(k)," "):" ".concat(this.getPeriod(k)),k>12&&(k-=12),k===0&&(k=12));var A="";return x&&(A=":".concat(("00"+x).substring(x.length))),"".concat($?O:"").concat(("00"+k.toString()).substring(k.toString().length),":").concat(("00"+E.toString()).substring(E.toString().length)).concat(A).concat($?"":O)},y.prototype.transformVerbosity=function(v,S){if(!S&&(v=v.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),v=v.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),v=v.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),v=v.replace(/\, ?$/,""),this.i18n.conciseVerbosityReplacements))for(var x=0,w=Object.entries(this.i18n.conciseVerbosityReplacements());x<w.length;x++){var b=w[x],k=b[0],E=b[1];v=v.replace(new RegExp(k,"g"),E)}return v},y.prototype.getPeriod=function(v){return v>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},y.locales={},y})();l.ExpressionDescriptor=h}),747:((s,l,c)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.enLocaleLoader=void 0;var f=c(486),u=(function(){function h(){}return h.prototype.load=function(y){y.en=new f.en},h})();l.enLocaleLoader=u}),486:((s,l)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.en=void 0;var c=(function(){function f(){}return f.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},f.prototype.atX0MinutesPastTheHourGt20=function(){return null},f.prototype.commaMonthX0ThroughMonthX1=function(){return null},f.prototype.commaYearX0ThroughYearX1=function(){return null},f.prototype.use24HourTimeFormatByDefault=function(){return!1},f.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occurred when generating the expression description. Check the cron expression syntax."},f.prototype.everyMinute=function(){return"every minute"},f.prototype.everyHour=function(){return"every hour"},f.prototype.atSpace=function(){return"At "},f.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},f.prototype.at=function(){return"At"},f.prototype.spaceAnd=function(){return" and"},f.prototype.everySecond=function(){return"every second"},f.prototype.everyX0Seconds=function(){return"every %s seconds"},f.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},f.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},f.prototype.everyX0Minutes=function(){return"every %s minutes"},f.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},f.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},f.prototype.everyX0Hours=function(){return"every %s hours"},f.prototype.betweenX0AndX1=function(){return"between %s and %s"},f.prototype.atX0=function(){return"at %s"},f.prototype.commaEveryDay=function(){return", every day"},f.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},f.prototype.commaX0ThroughX1=function(){return", %s through %s"},f.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},f.prototype.first=function(){return"first"},f.prototype.second=function(){return"second"},f.prototype.third=function(){return"third"},f.prototype.fourth=function(){return"fourth"},f.prototype.fifth=function(){return"fifth"},f.prototype.commaOnThe=function(){return", on the "},f.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},f.prototype.lastDay=function(){return"the last day"},f.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},f.prototype.commaOnlyOnX0=function(){return", only on %s"},f.prototype.commaAndOnX0=function(){return", and on %s"},f.prototype.commaEveryX0Months=function(){return", every %s months"},f.prototype.commaOnlyInX0=function(){return", only in %s"},f.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},f.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},f.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},f.prototype.firstWeekday=function(){return"first weekday"},f.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},f.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},f.prototype.commaEveryX0Days=function(){return", every %s days"},f.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},f.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},f.prototype.commaEveryHour=function(){return", every hour"},f.prototype.commaEveryX0Years=function(){return", every %s years"},f.prototype.commaStartingX0=function(){return", starting %s"},f.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},f.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},f.prototype.atReboot=function(){return"Run once, at startup"},f})();l.en=c}),515:((s,l)=>{Object.defineProperty(l,"__esModule",{value:!0});function c(u,h){if(!u)throw new Error(h)}var f=(function(){function u(){}return u.secondRange=function(h){for(var y=h.split(","),v=0;v<y.length;v++)if(!isNaN(parseInt(y[v],10))){var S=parseInt(y[v],10);c(S>=0&&S<=59,"seconds part must be >= 0 and <= 59")}},u.minuteRange=function(h){for(var y=h.split(","),v=0;v<y.length;v++)if(!isNaN(parseInt(y[v],10))){var S=parseInt(y[v],10);c(S>=0&&S<=59,"minutes part must be >= 0 and <= 59")}},u.hourRange=function(h){for(var y=h.split(","),v=0;v<y.length;v++)if(!isNaN(parseInt(y[v],10))){var S=parseInt(y[v],10);c(S>=0&&S<=23,"hours part must be >= 0 and <= 23")}},u.dayOfMonthRange=function(h){for(var y=h.split(","),v=0;v<y.length;v++)if(!isNaN(parseInt(y[v],10))){var S=parseInt(y[v],10);c(S>=1&&S<=31,"DOM part must be >= 1 and <= 31")}},u.monthRange=function(h,y){for(var v=h.split(","),S=0;S<v.length;S++)if(!isNaN(parseInt(v[S],10))){var x=parseInt(v[S],10);c(x>=1&&x<=12,y?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},u.dayOfWeekRange=function(h,y){for(var v=h.split(","),S=0;S<v.length;S++)if(!isNaN(parseInt(v[S],10))){var x=parseInt(v[S],10);c(x>=0&&x<=6,y?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},u})();l.default=f}),823:((s,l)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.StringUtilities=void 0;var c=(function(){function f(){}return f.format=function(u){for(var h=[],y=1;y<arguments.length;y++)h[y-1]=arguments[y];return u.replace(/%s/g,function(v){return h.shift()})},f.containsAny=function(u,h){return h.some(function(y){return u.indexOf(y)>-1})},f})();l.StringUtilities=c})},r={};function o(s){var l=r[s];if(l!==void 0)return l.exports;var c=r[s]={exports:{}};return n[s](c,c.exports,o),c.exports}var a={};return(()=>{var s=a;Object.defineProperty(s,"__esModule",{value:!0}),s.toString=void 0;var l=o(333),c=o(747);l.ExpressionDescriptor.initialize(new c.enLocaleLoader),s.default=l.ExpressionDescriptor;var f=l.ExpressionDescriptor.toString;s.toString=f})(),a})())})(DD)),DD.exports}var Gme=Yme();const Kme=Ql(Gme),Qme=new Set(["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC","SUN","MON","TUE","WED","THU","FRI","SAT"]);function Xme(e){for(const t of e.trim().split(/\s+/)){if(/[#?]/.test(t))return!1;for(const n of t.split(/[,\-/]/))if(!(n===""||n==="*")&&/[A-Za-z]/.test(n)&&!Qme.has(n.toUpperCase()))return!1}return!0}function D5(e){const t=(e??"").trim();if(t.split(/\s+/).filter(Boolean).length!==5)return{valid:!1,description:"",nextRun:null,error:"Expected a 5-field UNIX cron: minute hour day-of-month month day-of-week."};if(!Xme(t))return{valid:!1,description:"",nextRun:null,error:"Unsupported cron syntax: L, W, #, and ? extensions are not allowed (plain 5-field UNIX cron only)."};try{const n=Kme.toString(t,{use24HourTimeFormat:!0,verbose:!1}),r=qme.CronExpressionParser.parse(t,{tz:"UTC"}).next().toDate();return{valid:!0,description:n,nextRun:r}}catch(n){return{valid:!1,description:"",nextRun:null,error:n instanceof Error?n.message:"Invalid cron expression."}}}function j5(e){return e?e.toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",timeZone:"UTC",hour12:!1})+" UTC":"—"}function Zme({onSubmit:e,isSubmitting:t,disabled:n,disabledReason:r}){const[o,a]=C.useState(!1),[s,l]=C.useState(!1),c=()=>a(!1),f=async()=>{try{await e({forceRefresh:s}),a(!1)}catch{}},u=m.jsx("span",{children:m.jsx(_0,{label:"Materialization",onClick:()=>a(!0),disabled:n})});return m.jsxs(m.Fragment,{children:[n&&r?m.jsx(xi,{title:r,children:u}):u,m.jsx(ta,{open:o,onClose:c,title:"New materialization",description:"Compile the package, build a table for every persist source, and load them so queries serve from the tables.",actions:m.jsxs(m.Fragment,{children:[m.jsx(eo,{onClick:c,children:"Cancel"}),m.jsx(eo,{variant:"contained",loading:t,onClick:f,children:"Materialize"})]}),children:m.jsx(jq,{children:m.jsx(pk,{control:m.jsx(JN,{checked:s,onChange:h=>l(h.target.checked)}),label:"Force refresh (rebuild even if unchanged)"})})})]})}function nb({children:e}){return m.jsx(It,{variant:"caption",component:"h6",sx:{display:"block",textTransform:"uppercase",letterSpacing:"0.06em",fontWeight:600,color:"text.secondary",mb:1},children:e})}function Lb(e){return e===Sa.Pending||e===Sa.ManifestRowsReady}function Jme(e){return e===Sa.ManifestFileReady||e===Sa.Failed||e===Sa.Cancelled}function N5(e){switch(e){case Sa.ManifestFileReady:return"Done";case Sa.Failed:return"Failed";case Sa.Cancelled:return"Cancelled";case Sa.Pending:case Sa.ManifestRowsReady:return"Pending";default:return"Unknown"}}function dC(e){switch(e){case Sa.ManifestRowsReady:return"info";case Sa.ManifestFileReady:return"success";case Sa.Failed:return"error";case Sa.Cancelled:return"warning";case Sa.Pending:default:return"default"}}function ege(e){const t=Object.values(zE(e).refusedSources??{}).map(r=>({name:r.name,message:r.message})),n=Object.values(e.manifest?.failures??{}).filter(r=>r.refused).map(r=>({name:r.sourceName??r.sourceEntityId,message:r.reason}));return[...t,...n].sort((r,o)=>r.name.localeCompare(o.name))}function I5(e,t){const n=[`${e.sourcesBuilt??0} built`,`${e.sourcesReused??0} reused`];return e.sourcesRefused&&n.push(`${e.sourcesRefused} refused`),n.join(t)}function zE(e){return e.metadata??{}}function tge(e){return e.trigger==="SCHEDULER"?"Scheduled":"Manual"}function L5(e,t){if(!e)return"-";const n=new Date(e).getTime(),r=t?new Date(t).getTime():Date.now(),o=Math.max(0,r-n);if(o<1e3)return`${o}ms`;const a=Math.round(o/1e3);if(a<60)return`${a}s`;const s=Math.floor(a/60),l=a%60;if(s<60)return`${s}m ${l}s`;const c=Math.floor(s/60),f=s%60;return`${c}h ${f}m`}function fC(e){if(!e)return"—";const t=new Date(e);return Number.isNaN(t.getTime())?"—":t.toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit"})}function nge(e){if(!e)return"-";const t=new Date(e).getTime(),n=Math.round((Date.now()-t)/1e3);if(n<60)return"just now";const r=Math.floor(n/60);if(r<60)return`${r}m ago`;const o=Math.floor(r/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function rge({entries:e,builtAt:t}){const n=Object.entries(e??{});return m.jsxs(_t,{children:[m.jsxs(cr,{direction:"row",alignItems:"baseline",justifyContent:"space-between",children:[m.jsx(nb,{children:"Build manifest"}),t&&m.jsxs(It,{variant:"caption",color:"text.secondary",children:["Built ",fC(t)]})]}),n.length===0?m.jsx(It,{variant:"body2",color:"text.secondary",sx:{fontStyle:"italic"},children:"No materialized tables yet."}):m.jsxs(Ng,{size:"small",children:[m.jsx(Lg,{children:m.jsxs(sl,{children:[m.jsx(Xn,{children:"Source"}),m.jsx(Xn,{children:"Table name"}),m.jsx(Xn,{children:"Connection"}),m.jsx(Xn,{children:"Realization"}),m.jsx(Xn,{align:"right",children:"Rows"})]})}),m.jsx(Ig,{children:n.map(([r,o])=>m.jsxs(sl,{children:[m.jsx(Xn,{sx:{fontFamily:hi},children:o.sourceName??r}),m.jsx(Xn,{sx:{fontFamily:hi},children:o.physicalTableName??"-"}),m.jsx(Xn,{sx:{fontFamily:hi},children:o.connectionName??"-"}),m.jsx(Xn,{children:o.realization??"-"}),m.jsx(Xn,{align:"right",children:o.rowCount??"-"})]},r))})]})]})}function z5({meta:e}){const t=e.trigger==="SCHEDULER";return m.jsx(xi,{title:t?"Fired by the materialization schedule":"Triggered manually",children:m.jsx(It,{variant:"body2",color:"text.secondary",children:tge(e)})})}function oge({materialization:e,buildPlan:t,onClose:n}){const r=e?zE(e):{},o=e?ege(e):[],a=Object.values(t?.sources??{});return m.jsx(dp,{open:e!==null,onClose:n,maxWidth:"md",fullWidth:!0,"aria-labelledby":"materialization-detail-title",children:e&&m.jsxs(m.Fragment,{children:[m.jsxs(pp,{sx:{pr:6,pb:1.5},id:"materialization-detail-title",children:[m.jsxs(cr,{direction:"row",alignItems:"center",spacing:1,sx:{mb:.75},children:[m.jsx(NN,{size:"small",label:N5(e.status),color:dC(e.status),variant:Lb(e.status)?"filled":"outlined"}),m.jsx(z5,{meta:r})]}),m.jsx(It,{variant:"subtitle1",sx:{fontWeight:600},children:e.packageName??"Materialization"}),m.jsx(It,{variant:"caption",color:"text.secondary",sx:{fontFamily:hi,wordBreak:"break-all"},children:e.id}),m.jsx(Jr,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8},children:m.jsx(gp,{fontSize:"small"})})]}),m.jsxs(fp,{dividers:!0,children:[m.jsxs(_t,{sx:{bgcolor:"action.hover",borderRadius:2,p:2,mb:3,display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(140px, 1fr))",gap:2},children:[m.jsx(wm,{label:"Started",value:fC(e.startedAt??e.createdAt)}),m.jsx(wm,{label:"Completed",value:fC(e.completedAt)}),m.jsx(wm,{label:"Duration",value:L5(e.startedAt,e.completedAt)}),m.jsx(wm,{label:"Sources",value:I5(r," · ")}),m.jsx(wm,{label:"Force refresh",value:r.forceRefresh?"Yes":"No"})]}),e.error&&m.jsxs(_t,{sx:{borderRadius:2,p:2,mb:3,border:"1px solid",borderColor:"error.main"},children:[m.jsx(nb,{children:m.jsx(_t,{component:"span",sx:{color:"error.main"},children:"Error"})}),m.jsx(It,{variant:"body2",sx:{fontFamily:hi,whiteSpace:"pre-wrap"},children:e.error})]}),o.length>0&&m.jsxs(_t,{sx:{borderRadius:2,p:2,mb:3,border:"1px solid",borderColor:"warning.main"},children:[m.jsx(nb,{children:m.jsx(_t,{component:"span",sx:{color:"warning.main"},children:"Refused sources"})}),m.jsx(It,{variant:"body2",color:"text.secondary",sx:{mb:1},children:"Not built, because materializing them would be unsafe. They serve live until the model changes."}),o.map(s=>m.jsxs(_t,{sx:{mt:1},children:[m.jsx(It,{variant:"body2",sx:{fontFamily:hi},children:s.name}),m.jsx(It,{variant:"body2",color:"text.secondary",sx:{whiteSpace:"pre-wrap"},children:s.message})]},s.name))]}),m.jsxs(_t,{sx:{mb:3},children:[m.jsx(nb,{children:"Build plan"}),a.length===0?m.jsx(It,{variant:"body2",color:"text.secondary",sx:{fontStyle:"italic"},children:"This package has no persist sources."}):m.jsxs(Ng,{size:"small",children:[m.jsx(Lg,{children:m.jsxs(sl,{children:[m.jsx(Xn,{children:"Source"}),m.jsx(Xn,{children:"Connection"}),m.jsx(Xn,{children:"Dialect"}),m.jsx(Xn,{align:"right",children:"Columns"}),m.jsx(Xn,{children:"Source Entity ID"})]})}),m.jsx(Ig,{children:a.map(s=>m.jsxs(sl,{children:[m.jsx(Xn,{sx:{fontFamily:hi},children:s.name}),m.jsx(Xn,{sx:{fontFamily:hi},children:s.connectionName}),m.jsx(Xn,{children:s.dialect??"-"}),m.jsx(Xn,{align:"right",children:s.columns?.length??0}),m.jsx(Xn,{sx:{fontFamily:hi,fontSize:"0.75rem",wordBreak:"break-all",maxWidth:220},children:s.sourceEntityId})]},s.sourceID))})]})]}),m.jsx(rge,{entries:e.manifest?.entries,builtAt:e.manifest?.builtAt})]})]})})}function wm({label:e,value:t}){return m.jsxs(_t,{children:[m.jsx(It,{variant:"caption",color:"text.secondary",display:"block",children:e}),m.jsx(It,{variant:"body2",children:t})]})}const age=er(m.jsx("path",{d:"M6 6h12v12H6z"}));function ige(e){return cn("PrivateSwitchBase",e)}tn("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const sge=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${St(o)}`],input:["input"]};return sn(a,ige,t)},lge=Qe(hd,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),cge=Qe("input",{name:"MuiSwitchBase",shouldForwardProp:Ya})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),uge=C.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:f,id:u,inputProps:h,inputRef:y,name:v,onBlur:S,onChange:x,onFocus:w,readOnly:b,required:k=!1,tabIndex:E,type:O,value:$,slots:A={},slotProps:I={},...j}=e,[_,W]=vi({controlled:r,default:!!a,name:"SwitchBase",state:"checked"}),U=Ei(),T=he=>{w&&w(he),U&&U.onFocus&&U.onFocus(he)},L=he=>{S&&S(he),U&&U.onBlur&&U.onBlur(he)},F=he=>{if(he.nativeEvent.defaultPrevented)return;const ie=he.target.checked;W(ie),x&&x(he,ie)};let H=s;U&&typeof H>"u"&&(H=U.disabled);const D=O==="checkbox"||O==="radio",K={...e,checked:_,disabled:H,disableFocusRipple:l,edge:c},Q=sge(K),ee={slots:A,slotProps:{input:h,...I}},[X,te]=lr("root",{ref:t,elementType:lge,className:Q.root,shouldForwardComponentProp:!0,externalForwardedProps:{...ee,component:"span",...j},getSlotProps:he=>({...he,onFocus:ie=>{he.onFocus?.(ie),T(ie)},onBlur:ie=>{he.onBlur?.(ie),L(ie)}}),ownerState:K,additionalProps:{centerRipple:!0,focusRipple:!l,disabled:H,role:void 0,tabIndex:null}}),[ae,ue]=lr("input",{ref:y,elementType:cge,className:Q.input,externalForwardedProps:ee,getSlotProps:he=>({...he,onChange:ie=>{he.onChange?.(ie),F(ie)}}),ownerState:K,additionalProps:{autoFocus:n,checked:r,defaultChecked:a,disabled:H,id:D?u:void 0,name:v,readOnly:b,required:k,tabIndex:E,type:O,...O==="checkbox"&&$===void 0?{}:{value:$}}});return m.jsxs(X,{...te,children:[m.jsx(ae,{...ue}),_?o:f]})}),dge=er(m.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),fge=er(m.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),pge=er(m.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function hge(e){return cn("MuiCheckbox",e)}const zS=tn("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),mge=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${St(r)}`,`size${St(o)}`]},s=sn(a,hge,t);return{...t,...s}},gge=Qe(uge,{shouldForwardProp:e=>Ya(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${St(n.size)}`],n.color!=="default"&&t[`color${St(n.color)}`]]}})(Wn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Ca()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Ca()).map(([t])=>({props:{color:t},style:{[`&.${zS.checked}, &.${zS.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${zS.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),yge=m.jsx(fge,{}),vge=m.jsx(dge,{}),bge=m.jsx(pge,{}),xge=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiCheckbox"}),{checkedIcon:r=yge,color:o="primary",icon:a=vge,indeterminate:s=!1,indeterminateIcon:l=bge,inputProps:c,size:f="medium",disableRipple:u=!1,className:h,slots:y={},slotProps:v={},...S}=n,x=s?l:a,w=s?l:r,b={...n,disableRipple:u,color:o,indeterminate:s,size:f},k=mge(b),E=v.input??c,[O,$]=lr("root",{ref:t,elementType:gge,className:Lt(k.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:v,...S},ownerState:b,additionalProps:{type:"checkbox",icon:C.cloneElement(x,{fontSize:x.props.fontSize??f}),checkedIcon:C.cloneElement(w,{fontSize:w.props.fontSize??f}),disableRipple:u,slots:y,slotProps:{input:DL(typeof E=="function"?E(b):E,{"data-indeterminate":s})}}});return m.jsx(O,{...$,classes:k})});function Sge(e){return cn("MuiFormControlLabel",e)}const Im=tn("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),wge=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e,s={root:["root",n&&"disabled",`labelPlacement${St(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return sn(s,Sge,t)},Cge=Qe("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Im.label}`]:t.label},t.root,t[`labelPlacement${St(n.labelPlacement)}`]]}})(Wn(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Im.disabled}`]:{cursor:"default"},[`& .${Im.label}`]:{[`&.${Im.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),kge=Qe("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Wn(({theme:e})=>({[`&.${Im.error}`]:{color:(e.vars||e).palette.error.main}}))),Ege=C.forwardRef(function(e,t){const n=qn({props:e,name:"MuiFormControlLabel"}),{checked:r,className:o,componentsProps:a={},control:s,disabled:l,disableTypography:c,inputRef:f,label:u,labelPlacement:h="end",name:y,onChange:v,required:S,slots:x={},slotProps:w={},value:b,...k}=n,E=Ei(),O=l??s.props.disabled??E?.disabled,$=S??s.props.required,A={disabled:O,required:$};["checked","name","onChange","value","inputRef"].forEach(F=>{typeof s.props[F]>"u"&&typeof n[F]<"u"&&(A[F]=n[F])});const I=kd({props:n,muiFormControl:E,states:["error"]}),j={...n,disabled:O,labelPlacement:h,required:$,error:I.error},_=wge(j),W={slots:x,slotProps:{...a,...w}},[U,T]=lr("typography",{elementType:br,externalForwardedProps:W,ownerState:j});let L=u;return L!=null&&L.type!==br&&!c&&(L=m.jsx(U,{component:"span",...T,className:Lt(_.label,T?.className),children:L})),m.jsxs(Cge,{className:Lt(_.root,o),ownerState:j,ref:t,...k,children:[C.cloneElement(s,A),$?m.jsxs("div",{children:[L,m.jsxs(kge,{ownerState:j,"aria-hidden":!0,className:_.asterisk,children:[" ","*"]})]}):L]})});function Tge({materialization:e,onCloseDialog:t,isMutating:n,onDelete:r}){const[o,a]=C.useState(!1),[s,l]=C.useState(!1),c=()=>a(!0),f=()=>{a(!1),l(!1),t()};return m.jsxs(un.Fragment,{children:[m.jsxs(Zo,{"aria-label":`Delete materialization ${e?.id??""}`.trim(),onClick:u=>{u.stopPropagation(),c()},sx:{color:"error.main"},children:[m.jsx(jE,{sx:{color:"inherit"},children:m.jsx(M0,{fontSize:"small"})}),m.jsx(NE,{children:"Delete"})]}),m.jsxs(ta,{open:o,onClose:f,title:"Delete materialization",actions:m.jsxs(m.Fragment,{children:[m.jsx(yo,{onClick:f,children:"Cancel"}),m.jsx(yo,{variant:"contained",color:"error",autoFocus:!0,onClick:()=>r(s),loading:n,children:"Delete run"})]}),children:[m.jsx(br,{variant:"body2",children:"Delete this run's record? This cannot be undone."}),m.jsx(Ege,{control:m.jsx(xge,{checked:s,onChange:u=>l(u.target.checked)}),label:"Also drop the materialized tables this run produced"})]})]})}function Mge({materializations:e,mutable:t,isMutating:n,onStop:r,onDelete:o,onViewDetails:a}){return e.length===0?m.jsx(It,{variant:"body2",color:"text.secondary",sx:{py:1,fontStyle:"italic"},children:"No materializations yet."}):m.jsxs(Ng,{size:"small",sx:{"& td, & th":{borderColor:"divider"},"& td:first-of-type, & th:first-of-type":{pl:0},"& td:last-of-type, & th:last-of-type":{pr:0},"& th":{color:"text.secondary",fontWeight:600}},children:[m.jsx(Lg,{children:m.jsxs(sl,{children:[m.jsx(Xn,{children:"Status"}),m.jsx(Xn,{children:"Trigger"}),m.jsx(Xn,{children:"Started"}),m.jsx(Xn,{children:"Duration"}),m.jsx(Xn,{children:"Sources"}),m.jsx(Xn,{align:"right",children:"Actions"})]})}),m.jsx(Ig,{children:e.map(s=>m.jsx(Rge,{materialization:s,mutable:t,isMutating:n,onStop:r,onDelete:o,onViewDetails:a},s.id))})]})}function Rge({materialization:e,mutable:t,isMutating:n,onStop:r,onDelete:o,onViewDetails:a}){const[s,l]=C.useState(null),c=!!s,f=()=>l(null),u=zE(e),h=u.sourcesBuilt!==void 0||u.sourcesReused!==void 0?I5(u,", "):"-",y=Lb(e.status),v=Jme(e.status),S=e.error??void 0,x=t&&(y||v);return m.jsxs(sl,{hover:!0,sx:{cursor:"pointer","&:focus-visible":{outline:"2px solid",outlineColor:"primary.main",outlineOffset:"-2px"}},onClick:()=>a(e),onKeyDown:w=>{(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),a(e))},role:"button",tabIndex:0,"aria-label":`View materialization ${e.id??""} details`.trim(),children:[m.jsx(Xn,{children:m.jsxs(_t,{sx:{display:"flex",alignItems:"center",gap:.5},children:[m.jsx(It,{variant:"body2",sx:{fontWeight:500,color:dC(e.status)==="default"?"text.primary":`${dC(e.status)}.main`},children:N5(e.status)}),S&&m.jsx(xi,{title:S,children:m.jsx(u5,{fontSize:"small",color:"error"})})]})}),m.jsx(Xn,{children:m.jsx(z5,{meta:u})}),m.jsx(Xn,{children:nge(e.startedAt??e.createdAt)}),m.jsx(Xn,{children:L5(e.startedAt,e.completedAt)}),m.jsx(Xn,{children:h}),m.jsx(Xn,{align:"right",onClick:w=>w.stopPropagation(),children:x&&m.jsxs(m.Fragment,{children:[m.jsx(Jr,{size:"small","aria-label":`Materialization actions for ${e.id??""}`.trim(),onClick:w=>l(w.currentTarget),children:m.jsx(R0,{fontSize:"small"})}),m.jsxs(tu,{anchorEl:s,open:c,onClose:f,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[t&&y&&m.jsxs(ea,{"aria-label":`Stop materialization ${e.id??""}`.trim(),disabled:n,onClick:()=>{f(),r(e)},children:[m.jsx(Rp,{children:m.jsx(age,{fontSize:"small"})}),m.jsx(eu,{children:"Stop"})]}),t&&v&&m.jsx(Tge,{materialization:e,isMutating:n,onCloseDialog:f,onDelete:w=>o(e,w)})]})]})})]})}const Oge=er(m.jsx("path",{d:"m11.99 18.54-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27zm0-11.47L17.74 9 12 13.47 6.26 9z"})),$ge={package:"Materialized artifacts are shared across versions",version:"Materialized artifacts are per published version"};function Pge({scope:e,disabled:t,disabledReason:n,isSubmitting:r,onChange:o}){const[a,s]=C.useState(null),l=async c=>{s(null),c!==e&&await o(c).catch(()=>{})};return m.jsxs(m.Fragment,{children:[m.jsx(qg,{label:"Scope",icon:m.jsx(Oge,{}),onClick:c=>s(c.currentTarget),disabled:t||r,...n?{disabledReason:n}:{},ariaHasPopup:"menu",ariaLabel:`Scope: ${e}`}),m.jsx(tu,{anchorEl:a,open:!!a,onClose:()=>s(null),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:["package","version"].map(c=>m.jsxs(ea,{selected:c===e,onClick:()=>void l(c),children:[m.jsx(Rp,{sx:{minWidth:32},children:c===e&&m.jsx(hpe,{fontSize:"small"})}),m.jsx(eu,{primary:c,secondary:$ge[c]})]},c))})]})}const Age=er([m.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),m.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")]),ND="0 6 * * *";function Dge({currentSchedule:e,isSubmitting:t,disabled:n,disabledReason:r,onSubmit:o}){const[a,s]=C.useState(!1),[l,c]=C.useState(e??ND),f=()=>{c(e??ND),s(!0)},u=()=>s(!1),h=D5(l),y=async v=>{try{await o(v),s(!1)}catch{}};return m.jsxs(m.Fragment,{children:[m.jsx(qg,{label:"Schedule",icon:m.jsx(Age,{}),onClick:f,disabled:n,...r?{disabledReason:r}:{},ariaHasPopup:"dialog",ariaLabel:e?"Edit schedule":"Set schedule"}),m.jsxs(ta,{open:a,onClose:u,title:e?"Edit schedule":"Set schedule",description:"The publisher rebuilds this package's materializations on this cadence: a 5-field UNIX cron, in UTC. In a hosted deployment the change takes effect on your next publish.",actions:m.jsxs(m.Fragment,{children:[e&&m.jsx(eo,{color:"error",loading:t,onClick:()=>y(null),sx:{mr:"auto"},children:"Clear schedule"}),m.jsx(eo,{onClick:u,children:"Cancel"}),m.jsx(eo,{variant:"contained",loading:t,disabled:!h.valid,onClick:()=>y(l.trim()),children:"Save schedule"})]}),children:[m.jsx(wa,{autoFocus:!0,fullWidth:!0,size:"small",label:"Cron expression",value:l,onChange:v=>c(v.target.value),error:l.trim()!==""&&!h.valid,helperText:h.valid?`${h.description} · next run ${j5(h.nextRun)}`:h.error,slotProps:{htmlInput:{style:{fontFamily:hi}}}}),m.jsxs(ws,{severity:"info",children:["A schedule runs only on version-scoped packages, so saving one sets ",m.jsx("code",{children:"scope: version"})," for this package."]})]})]})}const jge=3e3;function Nge({resourceUri:e}){const{apiClients:t,mutable:n}=Pr(),r=xd(),{environmentName:o,packageName:a}=to(e),[s,l]=C.useState(""),[c,f]=C.useState(null);if(!a)throw new Error("Materializations requires a package in the resource URI");const u=io({queryKey:["materializations",o,a],queryFn:()=>t.materializations.listMaterializations(o,a),refetchInterval:L=>(L.state.data?.data??[]).some(F=>Lb(F.status))?jge:!1}),h=io({queryKey:["package",o,a],queryFn:()=>t.packages.getPackage(o,a)}),y=()=>r.invalidateQueries({queryKey:["materializations",o,a]}),v=tl({mutationFn:_l("materialization","create",L=>t.materializations.createMaterialization(o,a,{forceRefresh:L.forceRefresh})),onSuccess(){l("Materialization requested"),y()},onError(L){l(L.message),y()}}),S=tl({mutationFn:_l("materialization","update",L=>t.materializations.materializationAction(o,a,L.id,UX.Stop)),onSuccess(){l("Materialization stopped"),y()},onError(L){l(L.message)}}),x=tl({mutationFn:_l("materialization","delete",({materialization:L,dropTables:F})=>t.materializations.deleteMaterialization(o,a,L.id,F)),onSuccess(){l("Materialization deleted"),y()},onError(L){l(L.message)}}),w=h.data?.data,b=tl({mutationFn:_l("schedule","update",L=>t.packages.updatePackage(o,a,{name:a,description:w?.description,...L?{scope:mv.Version}:{},materialization:{schedule:L}})),onSuccess(L,F){l(F?"Schedule updated":"Schedule cleared"),r.invalidateQueries({queryKey:["package",o,a]})},onError(L){l(L.message)}}),k=tl({mutationFn:_l("scope","update",L=>t.packages.updatePackage(o,a,{name:a,description:w?.description,scope:L})),onSuccess(){l("Scope updated"),r.invalidateQueries({queryKey:["package",o,a]})},onError(L){l(L.message)}}),E=u.data?.data??[],O=E.find(L=>L.id===c)??null,$=E.some(L=>Lb(L.status)),A=v.isPending||S.isPending||x.isPending,I=w?.materialization?.schedule??null,j=w?.scope===mv.Version?"version":"package",_=!!w?.manifestLocation,W=!!w?.materialization?.freshness,U=I?D5(I):null,T=_?"Control-plane managed: refresh is driven by the control plane, not the built-in scheduler.":[U?U.valid?`${U.description} (${I}), next run ${j5(U.nextRun)}`:`Unrecognized cron expression (${I})`:W?"Refreshed by a freshness policy; a cron schedule does not apply":"On demand only, no schedule set",`scope: ${j}`].join(" · ");return m.jsxs(m.Fragment,{children:[m.jsxs(nl,{title:"Materializations",count:u.isSuccess?E.length:void 0,action:n&&m.jsxs(cr,{direction:"row",spacing:1,alignItems:"center",children:[!_&&m.jsx(Pge,{scope:j,disabled:!!I,disabledReason:"A schedule requires version scope. Clear the schedule to change it.",isSubmitting:k.isPending,onChange:L=>k.mutateAsync(L==="version"?mv.Version:mv.Package)}),!_&&m.jsx(Dge,{currentSchedule:I,isSubmitting:b.isPending,disabled:W,disabledReason:"This package declares a freshness policy; a schedule and freshness are mutually exclusive.",onSubmit:L=>b.mutateAsync(L)}),m.jsx(Zme,{onSubmit:L=>v.mutateAsync(L),isSubmitting:v.isPending,disabled:$,disabledReason:"A materialization is already pending or running for this package."})]}),children:[h.isSuccess&&m.jsx(It,{variant:"body2",color:"text.secondary",sx:{mb:1.5},children:T}),u.isError&&m.jsx(Ta,{error:u.error,context:`${o} > ${a} > Materializations`}),!u.isSuccess&&!u.isError&&m.jsx(ha,{text:"Loading materializations..."}),u.isSuccess&&m.jsx(Mge,{materializations:E,mutable:n,isMutating:A,onStop:L=>S.mutate(L),onDelete:(L,F)=>x.mutate({materialization:L,dropTables:F}),onViewDetails:L=>f(L.id??null)})]}),m.jsx(oge,{materialization:O,buildPlan:h.data?.data?.buildPlan??null,onClose:()=>f(null)}),m.jsx(v0,{open:s!=="",autoHideDuration:6e3,onClose:()=>l(""),message:s})]})}const F5=er(m.jsx("path",{d:"M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5m-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4zm-3-4h8v2H8z"})),zb=er(m.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"})),Ige=er(m.jsx("path",{d:"M8 5v14l11-7z"})),FS={scopeName:"source.malloy",patterns:[{include:"#malloy-language"}],repository:{"malloy-language":{patterns:[{include:"#sql-string"},{include:"#comments"},{include:"#tags"},{include:"#strings"},{include:"#numbers"},{include:"#keywords"},{include:"#properties"},{include:"#functions"},{include:"#datetimes"},{include:"#identifiers-quoted"},{include:"#types"},{include:"#constants"},{include:"#timeframes"},{include:"#identifiers-unquoted"}]},"malloy-matched":{begin:"{",end:"}",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"malloy-in-sql":{begin:"%{",name:"source.malloy-in-sql",end:"}%?",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"sql-string":{patterns:[{begin:'(\\b[A-Za-z_][A-Za-z_0-9]*)(\\s*\\.\\s*)(sql)(\\s*\\(\\s*)(""")',end:'"""',beginCaptures:{1:{name:"variable.other"},3:{name:"keyword.control.sql"},5:{name:"punctuation.sql-block.open"}},endCaptures:{0:{name:"punctuation.sql-block.close"}},name:"source.sql",patterns:[{include:"#malloy-in-sql"},{include:"source.sql"}]}]},functions:{patterns:[{match:"(?i)\\b(count)(\\s*\\()(distinct)",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.function.modifier"}}},{match:"(?i)\\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE|UNGROUPED)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(!)(timestamp|number|string|boolean|date)?(\\s*\\()",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.type"}}}]},datetimes:{patterns:[{match:"(?i)@[0-9]{4}-[0-9]{2}-[0-9]{2}[ T][0-9]{2}:[0-9]{2}((:[0-9]{2})(([\\.,][0-9]+)(\\[[A-Za-z_/]+\\])?)?)?",name:"constant.numeric.timestamp"},{match:"(?i)@[0-9]{4}(-Q[1-4]|-[0-9]{2}(-[0-9]{2}(-WK)?)?)?",name:"constant.numeric.date"}]},"identifiers-quoted":{patterns:[{match:"`[^`]*`",name:"variable.other.quoted"}]},"identifiers-unquoted":{patterns:[{match:"(?i)\\b[A-Za-z_][A-Za-z_0-9]*\\b",name:"variable.other"}]},timeframes:{patterns:[{match:"(?i)\\b((year|quarter|month|week|day|hour|minute|second)s?)\\b",name:"keyword.other.timeframe"},{match:"(?i)\\b(day_of_year|day_of_month)\\b",name:"keyword.other.timeframe"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]},tags:{patterns:[{match:"##\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:'#"',end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{match:"#\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:"#\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"##\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"#",end:"\\n",beginCaptures:{0:{name:"string.quoted"}},name:"string.quoted"}],repository:{"tag-values":{name:"support.type.property-name.json",match:'(-)?((?:[^\\s=#]+)|(?:"[^#]+"))(?:\\s*(=)\\s*((?:[^\\s=#]+)|(?:"[^#]+")))?',captures:{1:{name:"keyword.control.negate"},2:{name:"support.type.property-name.json"},3:{name:"keyword.operator.comparison.ts"},4:{name:"string.quoted"}}}}},strings:{patterns:[{begin:"'",end:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.single",patterns:[{include:"#escapes"}]},{begin:'"',end:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.double",patterns:[{include:"#escapes"}]},{begin:'"""',end:'"""',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.triple"},{begin:"(?i)[r|/]'",end:"'",name:"string.regexp",patterns:[{include:"#regex-escapes"}]}],repository:{escapes:{name:"constant.character.escape",match:"\\\\(u[A-Fa-f0-9]{4}|.)",captures:{0:{name:"constant.character.escape"}}},"regex-escapes":{name:"constant.character.escape",match:"\\\\.",captures:{0:{name:"constant.character.escape"}}}}},numbers:{match:"(?i)(\\b((0|[1-9][0-9]*)(E[+-]?[0-9]+|\\.[0-9]*)?)|\\.[0-9]+)",name:"constant.numeric"},constants:{patterns:[{match:"(?i)\\bnull\\b",name:"constant.language.null"},{match:"(?i)\\btrue\\b",name:"constant.language.true"},{match:"(?i)\\bfalse\\b",name:"constant.language.false"}]},types:{patterns:[{match:"(?i)\\bstring\\b",name:"entity.name.type.string"},{match:"(?i)\\bnumber\\b",name:"entity.name.type.number"},{match:"(?i)\\bdate\\b",name:"entity.name.type.date"},{match:"(?i)\\btimestamp\\b",name:"entity.name.type.timestamp"},{match:"(?i)\\bboolean\\b",name:"entity.name.type.boolean"}]},properties:{patterns:[{match:"(?i)\\baccept\\b",name:"keyword.control.accept"},{match:"(?i)\\bselect\\b",name:"keyword.control.select"},{match:"(?i)\\bconnection\\b",name:"keyword.control.connection"},{match:"(?i)\\brun\\b",name:"keyword.control.run"},{match:"(?i)\\bextend\\b",name:"keyword.control.extend"},{match:"(?i)\\brefine\\b",name:"keyword.control.refine"},{match:"(?i)\\baggregate\\b",name:"keyword.control.aggregate"},{match:"(?i)\\bsample\\b",name:"keyword.control.sample"},{match:"(?i)\\bcalculate\\b",name:"keyword.control.calculate"},{match:"(?i)\\btimezone\\b",name:"keyword.control.timezone"},{match:"(?i)\\bdimension\\b",name:"keyword.control.dimension"},{match:"(?i)\\bexcept\\b",name:"keyword.control.except"},{match:"(?i)\\bsource\\b",name:"keyword.control.source"},{match:"(?i)\\bgroup_by\\b",name:"keyword.control.group_by"},{match:"(?i)\\bhaving\\b",name:"keyword.control.having"},{match:"(?i)\\bindex\\b",name:"keyword.control.index"},{match:"(?i)\\bjoin_one\\b",name:"keyword.control.join_one"},{match:"(?i)\\bwith\\b",name:"keyword.control.with"},{match:"(?i)\\bjoin_many\\b",name:"keyword.control.join_many"},{match:"(?i)\\bjoin_cross\\b",name:"keyword.control.join_cross"},{match:"(?i)\\blimit\\b",name:"keyword.control.limit"},{match:"(?i)\\bmeasure\\b",name:"keyword.control.measure"},{match:"(?i)\\bnest\\b",name:"keyword.control.nest"},{match:"(?i)\\border_by\\b",name:"keyword.control.order_by"},{match:"(?i)\\bpartition_by\\b",name:"keyword.control.partition_by"},{match:"(?i)\\bprimary_key\\b",name:"keyword.control.primary_key"},{match:"(?i)\\bproject\\b",name:"keyword.control.project"},{match:"(?i)\\bquery\\b",name:"keyword.control.query"},{match:"(?i)\\brename\\b",name:"keyword.control.rename"},{match:"(?i)\\btop\\b",name:"keyword.control.top"},{match:"(?i)\\bview\\b",name:"keyword.control.view"},{match:"(?i)\\bwhere\\b",name:"keyword.control.where"},{match:"(?i)\\bdeclare\\b",name:"keyword.control.declare"}]},keywords:{patterns:[{match:"(?i)\\bis\\b",name:"keyword.control.is"},{match:"(?i)\\bon\\b",name:"keyword.control.on"},{match:"(?i)\\bnot\\b",name:"keyword.other.not"},{match:"(?i)\\bor\\b",name:"keyword.other.or"},{match:"(?i)\\bdesc\\b",name:"keyword.control.desc"},{match:"(?i)\\bby\\b",name:"keyword.control.by"},{match:"(?i)\\band\\b",name:"keyword.other.and"},{match:"(?i)\\basc\\b",name:"keyword.control.asc"},{match:"(?i)\\bfor\\b",name:"keyword.other.for"},{match:"(?i)\\belse\\b",name:"keyword.other.else"},{match:"(?i)\\bto\\b",name:"keyword.other.to"},{match:"(?i)\\bwhen\\b",name:"keyword.other.when"},{match:"(?i)\\bpick\\b",name:"keyword.other.pick"},{match:"(?i)\\bimport\\b",name:"keyword.control.import"}]}}},Lge={...FS,patterns:[...FS.patterns,{include:"#docvar"}],repository:{...FS.repository,docvar:{patterns:[{match:"\\<\\<[^(\\>\\>)]*\\>\\>",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"markup.italic.markdown"}]}}},zge={name:"Malloy SQL",scopeName:"source.malloy-sql",patterns:[{include:"#malloysql-sql"}],repository:{"malloysql-sql":{beginCaptures:{0:{name:"entity.other.attribute.malloy-sql"},1:{name:"entity.other.attribute.malloy-sql"},3:{name:"comment.line.double-slash"}},name:"meta.embedded.block.malloysql.sql",patterns:[{include:"#comments"},{begin:"%{",end:"}%",beginCaptures:{0:{name:"punctuation.definition.malloy-sql"}},endCaptures:{0:{name:"punctuation.definition.malloy-sql"}},name:"meta.embedded.block.malloy",patterns:[{include:"source.malloy"}]},{include:"source.sql"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]}}},Fge="github-light",_ge="github-dark";let _S;function Bge(){return _S||(_S=(async()=>{const[{createHighlighterCore:e},{createOnigurumaEngine:t},{default:n},{default:r},{default:o},{default:a},{default:s}]=await Promise.all([$o(()=>import("./core-B8oMW4sm.es-hOkwvru5.js"),__vite__mapDeps([7,8])),$o(()=>import("./engine-oniguruma-C4vnmooL.es-jdkXmgTr.js"),[]),$o(()=>import("./sql-DCkt643-.es-COK4E0Yg.js"),[]),$o(()=>import("./json-71t8ZF9g.es-BQoSv7ci.js"),[]),$o(()=>import("./typescript-buWNZFwO.es-Dj6nwHGl.js"),[]),$o(()=>import("./github-light-JYsPkUQd.es-DAi9KRSo.js"),[]),$o(()=>import("./github-dark-DenFmJkN.es-DHJKELXO.js"),[])]);return e({engine:t($o(()=>import("./wasm-DQxwEHae.es-CG6Dc4jp.js"),[])),themes:[a,s],langs:[n,r,o,{name:"malloy",scopeName:"source.malloy",embeddedLangs:["sql"],...Lge},{name:"malloysql",scopeName:"source.malloy-sql",embeddedLangs:["sql"],...zge}]})})()),_S}async function pC(e,t,n="light"){return(await Bge()).codeToHtml(e,{lang:t,theme:n==="dark"?_ge:Fge})}function _5({open:e,onClose:t,result:n,title:r="Results",renderLogs:o,drill:a}){return m.jsx(ta,{open:e,onClose:t,title:r,maxWidth:!1,showClose:!0,children:m.jsx(_t,{sx:{height:"70vh",overflow:"auto"},children:m.jsx(ME,{result:n,maxHeight:Gfe,maxResultSize:1e6,renderLogs:o,drill:a})})})}function Uge({queryName:e,annotations:t,resourceUri:n,runOnDemand:r=!1,maxResultSize:o=0}){const[a,s]=un.useState(),[l,c]=un.useState(!1),[f,u]=un.useState(!1),{packageName:h,environmentName:y,versionId:v,modelPath:S}=to(n),x=!r||f,w=$E({environmentName:y,packageName:h,modelPath:S,versionId:v,queryName:e},{enabled:x}),b=w.data,{mode:k}=Ts();return C.useEffect(()=>{if(t&&t.length>0){const E=t.map(O=>`// ${O}`).join(`
452
+ `);pC(E,"typescript",k).then(O=>{s(O)})}},[t,k]),m.jsxs(_t,{children:[a&&m.jsx(_t,{sx:{marginBottom:"16px"},children:m.jsx(It,{fontSize:"12px",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:m.jsx("div",{className:"content",dangerouslySetInnerHTML:{__html:a}})})}),m.jsxs(_t,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"},children:[m.jsx(It,{variant:"body2",sx:{fontSize:"15px",fontWeight:600,color:"text.primary",px:2,py:1,bgcolor:"action.hover",borderRadius:1.5,border:1,borderColor:"divider"},children:e}),m.jsx(op,{"aria-label":"Expand results",onClick:()=>c(!0),children:m.jsx(zb,{})})]}),m.jsxs(_f,{sx:{position:"relative"},children:[r&&!f&&m.jsxs(_t,{sx:{padding:"40px 20px",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",gap:"16px"},children:[m.jsx(It,{variant:"body2",color:"text.secondary",children:"Click Run to execute the query"}),m.jsx(eo,{variant:"contained",startIcon:m.jsx(Ige,{}),onClick:()=>u(!0),children:"Run Query"})]}),x&&m.jsx(RE,{state:w,context:e,maxHeight:Yfe,maxResultSize:o})]}),m.jsx(_5,{open:l,onClose:()=>c(!1),result:b?.data?.result||"",renderLogs:b?.data?.renderLogs,title:`Query: ${e}`})]})}function ube({onChange:e,resourceUri:t,runOnDemand:n=!1,maxResultSize:r=0,givens:o,onGivensChange:a}){const{modelPath:s}=to(t),{data:l,isError:c,isLoading:f,error:u}=PE(t),[h,y]=un.useState(!1),[v,S]=un.useState(),[x,w]=un.useState(0),[b,k]=C.useState(""),[E,O]=un.useState({}),$=o??E,A=a??(T=>O(T)),I=l?.modelDef,j=un.useMemo(()=>{if(!I)return!1;try{const T=JSON.parse(I);return Array.isArray(T.imports)&&T.imports.length>0}catch{return!1}},[I]);if(f)return m.jsx(ha,{text:"Fetching Model..."});if(c)return console.log("error",u),m.jsx(Ta,{error:u,context:`Model > ${s}`});const _=T=>{S(T),e&&e(T)},W=T=>{w(T)},U=()=>{const T=window.location.href;navigator.clipboard.writeText(T).then(()=>k("URL copied to clipboard!")).catch(()=>k("Failed to copy URL"))};return m.jsxs(m.Fragment,{children:[m.jsxs(_t,{sx:{position:"relative",maxWidth:"1200px",margin:"0 auto",paddingTop:"24px"},children:[Array.isArray(l?.sourceInfos)&&l.sourceInfos.length>0&&m.jsxs(cr,{spacing:2,component:"section",children:[m.jsxs(_t,{sx:{padding:"0 0 16px 0",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[m.jsx(It,{variant:"h1",sx:{fontSize:"28px",fontWeight:"600",color:"#1a1a1a",marginBottom:"8px",marginTop:"0",paddingLeft:"0"},children:"Sources"}),m.jsx(xi,{title:"Click to copy link",children:m.jsx(F5,{sx:{fontSize:"24px",color:"text.secondary",cursor:"pointer"},onClick:U})})]}),m.jsx(b5,{data:l,onChange:_,onSourceChange:W,existingQuery:v,initialSelectedSourceIndex:x,resourceUri:t,givens:$,onGivensChange:A}),m.jsx(op,{"aria-label":"Expand results",sx:{position:"absolute",top:"90px",right:"4px",zIndex:2},onClick:()=>y(!0),children:m.jsx(zb,{})})]}),l?.queries?.length>0&&m.jsxs(cr,{spacing:2,component:"section",sx:{marginTop:"24px"},children:[m.jsx(_t,{sx:{padding:"0 0 16px 0"},children:m.jsx(It,{variant:"h2",sx:{fontSize:"24px",fontWeight:"600",color:"#1a1a1a",marginBottom:"0",marginTop:"8px",paddingLeft:"0"},children:"Named Queries"})}),l.queries.map(T=>m.jsx(Uge,{queryName:T.name,annotations:T.annotations,resourceUri:t,runOnDemand:n,maxResultSize:r},T.name))]}),(!Array.isArray(l?.sourceInfos)||l.sourceInfos.length===0)&&!(l?.queries&&l.queries.length>0)&&m.jsxs(_t,{sx:{textAlign:"center",py:6},children:[m.jsx(It,{variant:"body1",sx:{color:"text.secondary",marginBottom:"8px"},children:"This model exposes no sources or queries."}),j&&m.jsxs(It,{variant:"body2",color:"text.secondary",children:["It imports other files but re-exports nothing. Add"," ",m.jsxs("code",{children:["export ","{ source_name }"]})," to surface imported sources here."]})]}),m.jsx(AE,{open:h,onClose:()=>y(!1),resourceUri:t,data:l,title:`Model: ${s.split("/").pop()}`,existingQuery:v,initialSelectedSourceIndex:x,onChange:_,onSourceChange:W,givens:$,onGivensChange:A})]}),m.jsx(v0,{open:b!=="",autoHideDuration:6e3,onClose:()=>k(""),message:b})]})}function Vge({ready:e,lastRunKey:t,pendingKey:n,runKey:r,documentKey:o}){if(!e)return{cancelPending:n!==void 0,dispatch:"none"};const a=n!==void 0&&n!==r;if(t===r)return{cancelPending:a,dispatch:"none"};if(n===r)return{cancelPending:a,dispatch:"none"};const s=t===null||!t.startsWith(`${o}|`);return{cancelPending:a,dispatch:s?"now":"settle"}}function Hge(e){return C.useMemo(()=>{if(!e?.sources?.length)return[];const t=new Map;for(const n of e.sources)if(n.givens?.length)for(const r of n.givens)r.name&&!t.has(r.name)&&t.set(r.name,r);return Array.from(t.values())},[e])}const Wge=400;function qge(e){return e.kind?e.kind==="query":e.type==="code"}const B5=e=>e.proseLines!==void 0;function FE({text:e,proseLines:t}){return(e??"").split(`
453
+ `).filter((n,r)=>!t?.some(([o,a])=>r>=o&&r<=a))}function Yge(e){if(B5(e)||e.caption!==void 0)return e.caption;const t=[];for(const n of FE(e)){const r=n.trim();if(!r.startsWith("//")){if(!r.startsWith("#"))break;r.startsWith('#"')&&t.push(r.slice(2).trim())}}return t.length>0?t.join(" "):void 0}function Gge(e){return B5(e)?FE(e).join(`
454
+ `):e.text.split(`
455
+ `).filter(t=>!t.trimStart().startsWith("##")).join(`
456
+ `)}function Kge(e){const t=e.codeLine!==void 0?(e.text.split(`
457
+ `)[e.codeLine]??"").trim():FE(e).map(o=>o.trim()).find(o=>o&&!o.startsWith("#")&&!o.startsWith("//"))??"",n=/^(source|query|given|type):?\s+([A-Za-z_]\w*)/.exec(t);if(n)return`${n[1]}: ${n[2]}`;const r=/^(import|export)\b/.exec(t);return r?r[1]:t}const Qge=er(m.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),Xge=er(m.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),Zge=er(m.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"})),Jge=er(m.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}));function eye(e){const{environmentName:t,packageName:n}=to(e.resourceUri);if(!t||!n)throw new Error("Environment and Package name must be provided for query embedding.");return JSON.stringify({...e})}function tye({cell:e,hideCodeCellIcon:t,hideEmbeddingIcon:n,resourceUri:r,showCopyLink:o,maxResultSize:a,isExecuting:s,pendingRerun:l,onNavigate:c,onDrillSelf:f,canDrillSelf:u,onDrillNavigate:h,givens:y,givenSpecs:v}){const[S,x]=un.useState(!1),[w,b]=un.useState(!1),[k,E]=un.useState(!1),[O,$]=un.useState(),[A,I]=un.useState(),[j,_]=un.useState(!1),[W,U]=C.useState(!1),T=C.useId(),[L,F]=C.useState(""),{environmentName:H,packageName:D,modelPath:K}=to(r),Q={environmentName:H,packageName:D,sourcePath:K,onNavigate:c},{drill:ee,drillMenu:X}=v5({onNavigate:h,onSelf:f,canSelf:u,selfLabel:"Filter this notebook"}),te=/import\s*\{([^}]+)\}\s*from\s*['"`][^'"`]+['"`]/,ae=/import\s*(?:\{[^}]*\}\s*from\s*)?['"`]([^'"`]+)['"`]/,ue=!!e.text&&(te.test(e.text)||ae.test(e.text)),he=()=>{if(!e.newSources||e.newSources.length===0)return 0;let Se=[],ce="";if(e.text){const Ee=e.text.match(te);Ee&&(Se=Ee[1].split(",").map(Te=>Te.trim()));const Ge=e.text.match(ae);Ge&&(ce=Ge[1].trim())}for(let Ee=0;Ee<e.newSources.length;Ee++)try{const Ge=JSON.parse(e.newSources[Ee]);if(Se.length>0&&Se.includes(Ge.name)||ce&&ce===Ge.path)return Ee}catch{continue}return 0},ie=un.useMemo(()=>e.newSources&&e.newSources.length>0?{sourceInfos:e.newSources,resource:r,givens:v}:void 0,[e.newSources,r,v]),le=eye({query:e.text,resourceUri:r}),{mode:se}=Ts();C.useEffect(()=>{e.type==="code"&&pC(Gge(e),"malloy",se).then(Se=>{$(Se)})},[e,se]),C.useEffect(()=>{pC(le,"typescript",se).then(Se=>{I(Se)})},[le,se]);const pe=e.kind==="query"?Yge(e):void 0,ne=e.markdown?m.jsx(rp,{variant:"document",links:Q,children:e.markdown}):null,me=()=>{const Se=window.location.href;navigator.clipboard.writeText(Se).then(()=>F("URL copied to clipboard!")).catch(()=>F("Failed to copy URL"))},xe=m.jsxs(dp,{open:S,onClose:()=>x(!1),maxWidth:"lg",fullWidth:!0,children:[m.jsxs(pp,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Malloy Code",m.jsx(Jr,{onClick:()=>x(!1),sx:{color:"text.secondary"},children:m.jsx(gp,{})})]}),m.jsx(fp,{children:m.jsx(_t,{sx:Se=>({border:`1px solid ${Se.palette.divider}`,borderRadius:"8px",padding:"16px",fontFamily:"monospace",fontSize:"14px",lineHeight:"1.5",overflow:"auto",maxHeight:"70vh",backgroundColor:Se.palette.background.paper,color:Se.palette.text.primary}),children:m.jsx("pre",{className:"code-display",style:{margin:0},dangerouslySetInnerHTML:{__html:O}})})})]});return e.type==="markdown"&&m.jsx(_t,{children:m.jsxs(_t,{children:[o?m.jsxs(cr,{direction:"row",alignItems:"flex-start",justifyContent:"space-between",children:[m.jsx(rp,{variant:"document",links:Q,children:e.text}),m.jsx(xi,{title:"Click to copy link",children:m.jsx(F5,{sx:{fontSize:"24px",color:"text.secondary",cursor:"pointer",marginTop:"26px"},onClick:me})})]}):m.jsx(rp,{variant:"document",links:Q,children:e.text}),m.jsx(v0,{open:L!=="",autoHideDuration:6e3,onClose:()=>F(""),message:L})]})})||e.kind==="definition"&&m.jsxs(_t,{children:[ne,m.jsxs(_t,{component:"button",type:"button","aria-expanded":W,"aria-controls":T,onClick:()=>U(Se=>!Se),sx:{display:"flex",alignItems:"center",gap:"4px",p:0,border:0,background:"none",cursor:"pointer",fontFamily:"monospace",fontSize:"13px",color:"text.secondary"},children:[W?m.jsx(Xge,{fontSize:"small"}):m.jsx(Qge,{fontSize:"small"}),Kge(e)]}),W&&m.jsx(_f,{id:T,sx:{mt:1,padding:"12px 24px"},children:m.jsx("pre",{className:"code-display",style:{margin:0,overflow:"auto"},dangerouslySetInnerHTML:{__html:O??""}})})]})||e.type==="code"&&m.jsxs(_t,{children:[ne,pe&&m.jsx(It,{variant:"body2",sx:{color:"text.secondary",mb:1},children:pe}),(!t||!n&&e.result||e.newSources&&e.newSources.length>0)&&m.jsx(cr,{sx:{flexDirection:"column",gap:"8px",marginBottom:"2px"},children:e.newSources&&e.newSources.length>0&&m.jsx(_f,{sx:{position:"relative",padding:"0"},children:m.jsxs(_t,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingLeft:"24px",paddingRight:"8px"},children:[O&&m.jsx("span",{dangerouslySetInnerHTML:{__html:O},style:{fontFamily:"monospace",fontSize:"14px",flex:1,marginRight:"8px"}}),ue&&m.jsx(op,{"aria-label":"Data sources",sx:{flexShrink:0},onClick:()=>_(!0),children:m.jsx(zb,{})})]})})}),m.jsx(AE,{open:j,onClose:()=>_(!1),title:"Data Sources",hasValidImport:ue,resourceUri:r,data:ie,initialSelectedSourceIndex:he(),startingGivens:y}),xe,m.jsxs(dp,{open:w,onClose:()=>b(!1),maxWidth:"lg",fullWidth:!0,children:[m.jsxs(pp,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Embeddable Code",m.jsx(Jr,{onClick:()=>b(!1),sx:{color:"text.secondary"},children:m.jsx(gp,{})})]}),m.jsx(fp,{children:m.jsxs(cr,{sx:{flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start"},children:[m.jsx(It,{component:"div",sx:{fontSize:"12px",fontFamily:"monospace","& .line":{textWrap:"wrap"},flex:1},dangerouslySetInnerHTML:{__html:A}}),m.jsx(xi,{title:"Copy Embeddable Code",children:m.jsx(Jr,{sx:{width:"24px",height:"24px",marginLeft:"8px",color:"text.secondary"},onClick:()=>{navigator.clipboard.writeText(le)},children:m.jsx(Jge,{})})})]})})]}),m.jsx(_5,{open:k,onClose:()=>E(!1),result:e.result||"",title:"Results",drill:ee}),s&&!e.result&&!e.error&&!ue&&!(e.newSources&&e.newSources.length>0)&&m.jsx(_f,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:200},children:m.jsx(Ag,{size:32})}),!e.result&&e.error&&m.jsxs(_f,{sx:{p:2},children:[m.jsx(It,{variant:"body2",sx:{color:"error.main"},children:"This cell could not be run."}),m.jsx(It,{variant:"body2",component:"pre",sx:{color:"text.secondary",whiteSpace:"pre-wrap",m:0,mt:1},children:e.error})]}),e.result&&l&&m.jsx(d7,{"aria-label":"a re-run is pending",sx:{mb:1,height:2,borderRadius:1}}),e.result&&m.jsxs(_f,{sx:{position:"relative"},children:[m.jsx(_t,{sx:{paddingTop:"24px"},children:m.jsx(ME,{result:e.result,maxHeight:qfe,maxResultSize:a,drill:ee})}),X,m.jsxs(cr,{sx:{position:"absolute",top:"-12px",right:"8px",flexDirection:"row",gap:"8px",alignItems:"center",zIndex:2},children:[!t&&m.jsx(op,{"aria-label":"Malloy code",onClick:Se=>{Se.stopPropagation(),x(!0)},children:m.jsx(Zge,{})}),m.jsx(op,{"aria-label":"Expand results",onClick:()=>E(!0),children:m.jsx(zb,{})})]})]})]})}const nye=4;function rye(e){const t=e?.response?.data?.message;return typeof t=="string"&&t!==""?t:e instanceof Error&&e.message!==""?e.message:"The server did not say why."}function U5(e){const{apiClients:t}=Pr(),{environmentName:n,packageName:r,versionId:o,modelPath:a}=to(e);return io({queryKey:[e],queryFn:async()=>(await t.notebooks.getNotebook(n,r,a,o)).data})}function oye(e){const{data:t}=U5(e.resourceUri);if(t?.dashboard){const{environmentName:n,packageName:r,versionId:o,modelPath:a}=to(e.resourceUri),{title:s,description:l}=t.dashboard;return m.jsx(ZI,{children:m.jsxs(JI,{children:[(s||l)&&m.jsx(_t,{sx:{mb:2},children:m.jsx(w5,{title:s??"",...l?{description:l}:{}})}),m.jsx(S5,{manifest:t.dashboard,environmentName:n,packageName:r,versionId:o,documentName:a,givens:e.givens,onGivensChange:e.onGivensChange,onNavigate:e.onDrillNavigate,maxResultSize:e.maxResultSize,chrome:"none"})]})})}return m.jsx(aye,{...e})}function aye({resourceUri:e,maxResultSize:t=0,givens:n,onGivensChange:r,onNavigate:o,onDrillNavigate:a}){const{apiClients:s}=Pr(),{environmentName:l,packageName:c,versionId:f,modelPath:u}=to(e),{data:h,isSuccess:y,isError:v,error:S}=U5(e),[x,w]=C.useState([]),[b,k]=C.useState(!1),[E,O]=C.useState(!1),$=C.useRef(void 0),[A,I]=C.useState(null),j=Hge(h),_=h?.autorun!==!1,W=Qk({specs:j,loaded:y,startingValues:h?.startingGivens,params:n,onGivensChange:r,documentKey:e,autorun:_,environmentName:l,packageName:c,modelPath:u,versionId:f,documentName:u}),{applied:U,declaredTypes:T,canSelf:L,onSelf:F}=W,H=C.useCallback(se=>{const pe=Yg(se,T);return Object.keys(pe).length>0?JSON.stringify(pe):void 0},[T]),D=C.useMemo(()=>Kk(U,T),[U,T]),K=C.useRef(0),Q=C.useRef(null),ee=C.useRef(null),X=C.useRef(void 0);C.useEffect(()=>()=>{Q.current?.abort(),ee.current=null,clearTimeout(X.current?.timer),X.current=void 0},[]);const te=C.useCallback(async(se=new Map)=>{if(!y||!h?.notebookCells)return;const pe=++K.current;Q.current?.abort();const ne=new AbortController;Q.current=ne,w(h.notebookCells.map(xe=>({...xe}))),k(!0),I(null);const me=H(se);try{const xe=[];for(let ce=0;ce<h.notebookCells.length;ce++){const Ee=h.notebookCells[ce];if(!qge(Ee))continue;const Ge=ce,Te=async()=>{try{const je=await s.notebooks.executeNotebookCell(l,c,u,Ge,f,void 0,void 0,me,{signal:ne.signal});if(K.current!==pe)return;const oe=je.data,lt=oe.result,Ie=Ee.newSources||oe.newSources;w(et=>{const mt=[...et];return mt[Ge]||(mt[Ge]={...Ee}),mt[Ge]={...mt[Ge],result:lt,newSources:Ie},mt})}catch(je){if(ne.signal.aborted||K.current!==pe)return;console.error(`Error executing cell ${Ge}:`,je);const oe=rye(je);w(lt=>{const Ie=[...lt];return Ie[Ge]||(Ie[Ge]={...Ee}),Ie[Ge]={...Ie[Ge],error:oe},Ie})}};xe.push(Te)}const Se=[];for(const ce of xe){const Ee=ce().then(()=>{Se.splice(Se.indexOf(Ee),1)});Se.push(Ee),Se.length>=nye&&await Promise.race(Se)}await Promise.all(Se)}catch(xe){if(ne.signal.aborted||K.current!==pe)return;console.error("Error executing notebook cells:",xe),I(xe)}finally{K.current===pe&&(k(!1),Q.current=null)}},[y,h,H,l,c,u,f,s.notebooks]),ae=C.useRef(0),ue=C.useRef(void 0);ue.current!==h&&(ue.current=h,ae.current+=1);const he=ae.current;C.useEffect(()=>{const se=`${e}|${he}`,pe=`${se}|${H(U)??""}`;$.current!==void 0&&$.current!==se&&(Q.current?.abort(),Q.current=null),$.current=se;const ne=Vge({ready:y&&!!h?.notebookCells,lastRunKey:ee.current,pendingKey:X.current?.key,runKey:pe,documentKey:se});if(ne.cancelPending&&(clearTimeout(X.current?.timer),X.current=void 0,O(!1)),ne.dispatch==="none")return;const me=()=>{X.current=void 0,O(!1),ee.current=pe,te(U)};if(ne.dispatch==="now"){me();return}O(!0),X.current={key:pe,timer:setTimeout(me,Wge)}},[y,h,he,e,U,H,te]);const ie=x.length>0?x:h?.notebookCells||[],le=h?.format==="malloy"?ie.findIndex(se=>se.type==="markdown"):0;return m.jsx(ZI,{children:m.jsx(JI,{children:m.jsxs(cr,{spacing:3,component:"section",children:[m.jsx(EE,{...W.panel}),!y&&!v&&m.jsx(ha,{text:"Fetching Notebook..."}),y&&ie.map((se,pe)=>m.jsx(tye,{cell:se,showCopyLink:pe===le,resourceUri:e,maxResultSize:t,isExecuting:b,givens:D,givenSpecs:j,pendingRerun:E,onNavigate:o,onDrillNavigate:a,onDrillSelf:j.length>0?F:void 0,canDrillSelf:L},pe)),v&&S.status===404&&m.jsxs(It,{variant:"body2",sx:{color:"text.secondary"},children:[m.jsx("code",{children:`${l} > ${c} > ${u}`})," ","not found."]}),v&&S.status!==404&&m.jsx(Ta,{error:S,context:`${l} > ${c} > ${u}`}),A&&m.jsx(Ta,{error:{message:A.message,status:500,name:"ExecutionError"},context:"Notebook Execution"})]})})})}const iye=er(m.jsx("path",{d:"m7 10 5 5 5-5z"})),sye=er(m.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"})),Pv={dashboard:"Dashboard",notebook:"Notebook"};function lye({open:e,kind:t,allowKindChange:n=!0,environmentName:r,packageName:o,versionId:a,models:s,modelsLoading:l=!1,modelsError:c,onRetryModels:f,target:u,savedAs:h,onClose:y,onCreated:v,onEvent:S}){const[x,w]=C.useState(t),[b,k]=C.useState(""),[E,O]=C.useState(""),[$,A]=C.useState(""),[I,j]=C.useState(!1),[_,W]=C.useState(!1),[U,T]=C.useState(!1),[L,F]=C.useState(void 0),H=c!=null,{choices:D,isLoading:K,isSuccess:Q,failed:ee,retry:X,canRetry:te}=Dpe({environmentName:r,packageName:o,...a!==void 0?{versionId:a}:{},models:s,enabled:e&&s.length>0}),ae=C.useMemo(()=>D.get(b)??[],[D,b]),ue=ae.find(Te=>`${Te.source}::${Te.view}`===E);C.useEffect(()=>{e&&w(t)},[e,t]),C.useEffect(()=>{if(!e)return;const Te=[...D.keys()];b===""&&Te.length>0&&k(Te[0])},[e,D,b]),C.useEffect(()=>{!e||ae.length===0||E!==""||O(`${ae[0].source}::${ae[0].view}`)},[e,ae,E]),C.useEffect(()=>{!e||I||ue===void 0||A(ue.view.replace(/_/g," "))},[e,I,ue]),C.useEffect(()=>{e||(k(""),O(""),A(""),j(!1),W(!1),F(void 0))},[e]);const he=C.useMemo(()=>{if($.trim()!=="")for(let Te=1;Te<=Nb;Te++){const je=iC(x,$,Te);if(!u.existing?.includes(je))return je}},[x,$,u]),ie=(ue===void 0?void 0:OE(x,{title:$,modelPath:b,source:ue.source,view:ue.view}))??($.trim()!==""&&he===void 0?"No free file name for this title; choose another.":void 0),le=ie!==void 0&&(_||$.trim()!==""),se=l||K,pe=D.size===0&&(H||ee.length>0),ne=se?"Loading model views":pe?"Couldn't read the model views to start from":D.size===0?"No model view to start from yet":ue===void 0?"Pick a view to start from":void 0,me=Pv[x].toLowerCase(),xe=U?`Creating ${me}…`:`Create ${me}`,Se=x==="dashboard"?"First tile":"First query",ce=E!==""&&ue===void 0&&ae.length>0,Ee=async()=>{if(!(ne!==void 0||ue===void 0||U)){if(ie!==void 0){W(!0);return}T(!0),F(void 0);try{const Te=await $pe({kind:x,document:{title:$,modelPath:b,source:ue.source,view:ue.view},target:u,...S?{onEvent:S}:{}});v(Te)}catch(Te){const je=Te.response?.data?.message;F(je??(Te instanceof Error?Te.message:String(Te)))}finally{T(!1)}}},Ge=Te=>m.jsx(eo,{color:"inherit",size:"small",onClick:Te,children:"Retry"});return m.jsx(ta,{open:e,onClose:U?()=>{}:y,title:`New ${me}`,description:x==="dashboard"?"A dashboard is a Malloy file in the package. Pick what its first tile shows; the rest is the builder.":"A notebook is a Malloy file in the package that mixes text and queries. Pick what its first query runs; the rest is the builder.",actions:m.jsxs(m.Fragment,{children:[m.jsx(eo,{onClick:y,disabled:U,children:"Cancel"}),m.jsx(xi,{title:U?"":ne??"",children:m.jsx("span",{children:m.jsx(eo,{variant:"contained",disabled:U||ne!==void 0,"aria-label":!U&&ne!==void 0?`${xe}: ${ne}`:xe,onClick:()=>void Ee(),children:xe})})})]}),children:m.jsxs(cr,{sx:{gap:2,pt:1},children:[H?m.jsx(ws,{severity:"error",action:f&&hL(c)?Ge(f):void 0,children:"Couldn't read this package's models, so no view is listed to start from."}):s.length===0?!l&&m.jsxs(ws,{severity:"info",children:["This package has no models yet. Add a .malloy file that declares a source with a view, then create a ",me," from it."]}):ee.length>0?m.jsxs(ws,{severity:"warning",action:te?Ge(X):void 0,children:["Couldn't read ",ee.join(", "),", so"," ",ee.length===1?"its":"their"," views aren't listed."]}):Q&&D.size===0&&m.jsxs(ws,{severity:"info",children:["A ",me," starts from a view of a source, and no model in this package declares one yet. Add a view to a source in a model file and this list fills in."]}),n&&m.jsx(wa,{select:!0,size:"small",label:"Type",value:x,disabled:U,onChange:Te=>w(Te.target.value),inputProps:{"aria-label":"Type"},children:Object.keys(Pv).map(Te=>m.jsx(ea,{value:Te,children:Pv[Te]},Te))}),m.jsx(wa,{select:!0,size:"small",label:"Model",value:D.has(b)?b:"",disabled:D.size===0||U,onChange:Te=>{k(Te.target.value),O("")},inputProps:{"aria-label":"Model"},helperText:se?"Reading the package's models…":D.size===1?"The only model with a view to start from.":"Models with a view to start from.",children:[...D.keys()].map(Te=>m.jsx(ea,{value:Te,children:Te},Te))}),m.jsx(wa,{select:!0,size:"small",label:Se,value:ue?E:"",disabled:ae.length===0||U,onChange:Te=>O(Te.target.value),inputProps:{"aria-label":Se},error:ce,helperText:ce?"The view you picked is no longer in this model; pick another.":ae.length===1?"The only view this model offers; more are added in the builder.":"A view of a source; more are added in the builder.",children:ae.map(Te=>m.jsxs(ea,{value:`${Te.source}::${Te.view}`,children:[Te.source," → ",Te.view]},`${Te.source}::${Te.view}`))}),m.jsx(wa,{size:"small",label:"Title",value:$,disabled:U,onChange:Te=>{j(!0),A(Te.target.value)},inputProps:{"aria-label":`${Pv[x]} title`},error:le,helperText:le?ie:he?u.route==="package"?`Written as ${he}, and opened in the builder.`:h??`Saved as a new ${me} in the host's store, and opened in the builder.`:"Names the file too."}),L&&m.jsx(ws,{severity:"error",children:L})]})})}const cye={dashboard:Wr.blue,report:Wr.violet,model:Wr.cyan,dataApp:Wr.pink,data:Wr.lime,materialization:Wr.amber};function uye({type:e,size:t=18,sx:n,...r}){return m.jsx(kb,{...r,viewBox:"0 0 24 24",sx:{width:t,height:t,fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",...n},children:dye[e]()})}const dye={report:fye,model:pye,data:hye,materialization:mye,dataApp:yye,dashboard:gye};function fye(){return m.jsxs(m.Fragment,{children:[m.jsx("path",{d:"M14 3 H6 a2 2 0 0 0 -2 2 v14 a2 2 0 0 0 2 2 h12 a2 2 0 0 0 2 -2 V9 z"}),m.jsx("path",{d:"M14 3 v4 a2 2 0 0 0 2 2 h4"}),m.jsx("path",{d:"M8 17 v-3"}),m.jsx("path",{d:"M12 17 v-6"}),m.jsx("path",{d:"M16 17 v-4"})]})}function pye(){return m.jsxs(m.Fragment,{children:[m.jsx("path",{d:"M12 3 L4 7 v10 l8 4 l8 -4 V7 z"}),m.jsx("path",{d:"M4 7 l8 4 l8 -4"}),m.jsx("path",{d:"M12 11 v10"})]})}function hye(){return m.jsxs(m.Fragment,{children:[m.jsx("rect",{x:"3.5",y:"3.5",width:"17",height:"17",rx:"2"}),m.jsx("path",{d:"M3.5 9.5 H20.5"}),m.jsx("path",{d:"M9.5 3.5 V20.5"})]})}function mye(){return m.jsxs(m.Fragment,{children:[m.jsx("path",{d:"M12 3 L21 7.5 L12 12 L3 7.5 Z"}),m.jsx("path",{d:"M3 12 L12 16.5 L21 12"}),m.jsx("path",{d:"M3 16.5 L12 21 L21 16.5"})]})}function gye(){return m.jsxs(m.Fragment,{children:[m.jsx("rect",{x:"3.5",y:"3.5",width:"17",height:"17",rx:"2"}),m.jsx("path",{d:"M3.5 9.5 H20.5"}),m.jsx("path",{d:"M12 9.5 V20.5"}),m.jsx("path",{d:"M12 15 H20.5"})]})}function yye(){return m.jsxs(m.Fragment,{children:[m.jsx("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),m.jsx("path",{d:"M3.5 9.5 H20.5"}),m.jsx("path",{d:"M7 13.5 H17"}),m.jsx("path",{d:"M7 16.5 H13"})]})}const vye=/^(?:dashboards|notebooks)\/([^/]+)\.malloy$/,hC=e=>vye.exec(e??"")?.[1],BS=(e,t,n,r)=>`/${e}/${t}/${n}s/${encodeURIComponent(r)}`;function bye({kind:e,slug:t,dashboards:n,notebooks:r}){const o=()=>{const s=n.find(l=>l.name===t&&l.path);return s?.path?{kind:"dashboard",path:s.path}:void 0},a=()=>{const s=r.find(l=>hC(l.path)===t);return s?.path?{kind:"notebook",path:s.path}:void 0};return e==="dashboard"?o()??a():a()??o()}const xye="README.malloynb",Sye=e=>e?.toLowerCase()==="notebooks/readme.malloy",ID=(e,t,n)=>`${e}/${t}/${n}s/`;function dbe({onClickPackageFile:e,resourceUri:t}){const{apiClients:n,server:r,mutable:o}=Pr(),a=xd(),s=e??(ne=>{window.location.href=ne}),{environmentName:l,packageName:c,versionId:f}=to(t),[u,h]=C.useState(null),[y,v]=C.useState(void 0),[S,x]=C.useState(null),w=Wpe(),b=Npe()?.documentStorage,[k,E]=C.useState([]),[O,$]=C.useState({state:b?"pending":"ready"}),A=C.useCallback(async()=>{if(!b)return;let ne;try{ne=await b.listWorkspaces(!1)}catch{$({state:"failed"});return}$({state:"ready",chosen:gpe(ne)});const me=[];for(const xe of ne.filter(Se=>Se.writeable))for(const Se of["dashboard","notebook"])for(const ce of await b.listDocuments(xe,Se))ce.path.startsWith(ID(l,c,Se))&&me.push({locator:ce,where:xe.description});E(me)},[b,l,c]);C.useEffect(()=>{A()},[A]);const I=ne=>ne.path.slice(ID(l,c,ne.type).length).replace(/\.malloy$/,""),j=io({queryKey:["package",l,c,f],queryFn:()=>n.packages.getPackage(l,c,f,!1)}),_=io({queryKey:["notebooks",l,c,f],queryFn:async()=>{try{return await n.notebooks.listNotebooks(l,c,f)}catch(ne){const me=ne?.response?.status;if(me===404||me===void 0)return{data:[]};throw ne}}}),W=io({queryKey:["models",l,c,f],queryFn:()=>n.models.listModels(l,c,f)}),U=io({queryKey:["databases",l,c,f],queryFn:()=>n.databases.listDatabases(l,c,f)}),T=io({queryKey:["data-apps",l,c],queryFn:async()=>{try{return await n.dataApps.listDataApps(l,c)}catch(ne){const me=ne?.response?.status;if(me===404||me===void 0)return{data:[]};throw ne}}}).data?.data??[],L=io({queryKey:["dashboards",l,c,f],queryFn:async()=>{try{return await n.dashboards.listDashboards(l,c,f)}catch(ne){const me=ne?.response?.status;if(me===404||me===void 0)return{data:[]};throw ne}}}),F=L.data?.data??[],H=(_.data?.data??[]).slice().sort((ne,me)=>(ne.path??"").localeCompare(me.path??"")),D=Cye(F,H),K=new Set(F.map(ne=>ne.path).filter(ne=>ne!==void 0)),Q=(W.data?.data??[]).slice().filter(ne=>!K.has(ne.path)).sort((ne,me)=>ne.path.localeCompare(me.path)),ee=(U.data?.data??[]).slice().sort((ne,me)=>ne.path.localeCompare(me.path)),X=O.state==="ready"?Ope({authoritative:O.chosen?.authoritative===!0,mutable:o,canStore:O.chosen?.writeable===!0,...f===void 0?{}:{versionId:f}}):void 0,te=[L,_,W].every(ne=>ne.isSuccess||ne.isError),ae=X!==void 0&&te,ue=ae&&!w,he=C.useMemo(()=>{if(!ae)return;const ne=[...(L.data?.data??[]).flatMap(me=>me.path?[me.path]:[]),...(_.data?.data??[]).flatMap(me=>me.path?[me.path]:[]),...(W.data?.data??[]).flatMap(me=>me.path?[me.path]:[])];if(X==="storage"&&b&&O.state==="ready")return O.chosen?{route:X,storage:b,workspace:O.chosen,environmentName:l,packageName:c,existing:ne}:void 0;if(X==="package")return{route:X,existing:ne,write:async(me,xe)=>{await n.models.updateModelSource(l,c,me,{source:xe})}}},[ae,X,b,O,l,c,n,L.data,_.data,W.data]),ie=j.data?.data?.description??"",le=(H.find(ne=>ne.path===xye)??H.find(ne=>Sye(ne.path)))?.path,se=B0({environmentName:l,packageName:c,versionId:f,modelPath:le}),pe=!_.isSuccess&&!_.isError||!L.isSuccess&&!L.isError;return j.isError?m.jsx(Ta,{error:j.error,context:`${l} > ${c}`}):m.jsxs(dk,{maxWidth:!1,sx:{maxWidth:1024,mx:"auto",px:3,py:6},children:[m.jsxs(_t,{sx:{mb:4},children:[m.jsx(g5,{label:l,onClick:ne=>s(`/${l}/`,ne)}),m.jsx(It,{variant:"h4",component:"h1",sx:{fontWeight:600,letterSpacing:"-0.025em",mb:.5},children:c}),ie&&m.jsx(It,{variant:"body2",color:"text.secondary",children:ie})]}),pe&&m.jsx(ha,{text:"Loading package..."}),m.jsx(tu,{anchorEl:S,open:S!==null,onClose:()=>x(null),children:["dashboard","notebook"].map(ne=>m.jsx(ea,{onClick:()=>{x(null),v(ne)},children:ne==="dashboard"?"Dashboard":"Notebook"},ne))}),he&&m.jsx(lye,{open:y!==void 0,kind:y??"dashboard",environmentName:l,packageName:c,...f!==void 0?{versionId:f}:{},models:Q.map(ne=>ne.path).filter(ne=>typeof ne=="string"&&ne.endsWith(".malloy")&&!ne.startsWith("dashboards/")&&!ne.startsWith("notebooks/")),modelsLoading:W.isPending,...W.isError?{modelsError:W.error}:{},onRetryModels:()=>void W.refetch(),target:he,onClose:()=>v(void 0),onCreated:ne=>{v(void 0);for(const me of["dashboards","notebooks","models"])a.invalidateQueries({queryKey:[me]});s(`${BS(l,c,ne.kind,ne.slug)}/edit`)}}),!pe&&m.jsxs(m.Fragment,{children:[(L.isError||_.isError)&&m.jsx(_t,{sx:{mb:4},children:m.jsx(ws,{severity:"warning",children:"Could not list some artifacts, so any this package has are missing from this page."})}),(D.length>0||ae)&&m.jsxs(nl,{title:"Artifacts",count:D.length,...ue?{action:m.jsx(eo,{variant:"outlined",size:"small",endIcon:m.jsx(iye,{}),"aria-haspopup":"menu","aria-label":"New",onClick:ne=>x(ne.currentTarget),children:"New"})}:{},children:[D.length===0&&m.jsx(US,{label:"No artifacts yet",...ue?{action:{label:"New artifact",onClick:ne=>x(ne.currentTarget)}}:{}}),D.map(ne=>m.jsx(Cm,{type:ne.kind==="dashboard"?"dashboard":"report",label:ne.label,...ne.secondary===void 0?{}:{description:ne.secondary},rightLabel:wye[ne.kind],onClick:me=>s(ne.slug===void 0?`/${l}/${c}/${ne.path}`:BS(l,c,ne.kind,ne.slug),me)},`${ne.kind}:${ne.path}`))]}),k.length>0&&m.jsx(nl,{title:"Drafts",count:k.length,children:k.map(({locator:ne,where:me})=>m.jsx(Cm,{type:ne.type==="dashboard"?"dashboard":"report",label:I(ne),rightLabel:me,onClick:xe=>s(`${BS(l,c,ne.type,I(ne))}/edit`,xe),trailingAction:m.jsx(xi,{title:"Delete this draft",children:m.jsx(Jr,{size:"small","aria-label":`Delete draft ${I(ne)}`,onClick:xe=>{xe.stopPropagation(),b?.deleteDocument(ne).then(A)},children:m.jsx(sye,{fontSize:"small"})})})},`${ne.type}:${ne.path}`))}),T.length>0&&m.jsx(nl,{title:"Data Apps",count:T.length,children:T.map(ne=>{const me=!!ne.title&&ne.title!==ne.path,xe=`${k5(r)}${ne.resource}`;return m.jsx(Cm,{type:"dataApp",label:me?ne.title:ne.path,rightLabel:me?ne.path:void 0,onClick:Se=>{e?e(`/${l}/${c}/data-apps/${ne.path}`,Se):Se&&(Se.metaKey||Se.ctrlKey)?window.open(xe,"_blank"):window.location.href=xe},trailingAction:m.jsx(xi,{title:"Open standalone in new tab",children:m.jsx(Jr,{size:"small",href:xe,target:"_blank",rel:"noopener noreferrer","aria-label":"Open standalone in new tab",onClick:Se=>Se.stopPropagation(),sx:{color:"text.secondary"},children:m.jsx(C5,{fontSize:"small"})})})},ne.path)})}),m.jsxs(nl,{title:"Semantic Models",count:Q.length,children:[Q.map(ne=>m.jsx(Cm,{type:"model",label:ne.path,onClick:me=>s(`/${l}/${c}/${ne.path}`,me)},ne.path)),Q.length===0&&m.jsx(US,{label:"No models"})]}),m.jsxs(nl,{title:"Package Data",count:ee.length,children:[ee.map(ne=>m.jsx(Cm,{type:"data",label:ne.path,rightLabel:ne.info?kye(ne.info.rowCount):"Unreadable",onClick:()=>h(ne)},ne.path)),ee.length===0&&m.jsx(US,{label:"No data files"})]}),m.jsx(Nge,{resourceUri:t}),le&&m.jsx(_t,{sx:{mt:6},children:m.jsx(oye,{resourceUri:se,onNavigate:s})})]}),m.jsxs(ta,{open:u!==null,onClose:()=>h(null),title:u?.path??"Columns",showClose:!0,children:[u?.error&&m.jsx(It,{variant:"body2",color:"error",children:u.error}),u?.info?.columns&&m.jsxs(Ng,{size:"small",children:[m.jsx(Lg,{children:m.jsxs(sl,{children:[m.jsx(Xn,{children:"Column"}),m.jsx(Xn,{children:"Type"})]})}),m.jsx(Ig,{children:u.info.columns.map(ne=>m.jsxs(sl,{children:[m.jsx(Xn,{component:"th",scope:"row",children:ne.name}),m.jsx(Xn,{children:ne.type})]},ne.name))})]})]})]})}function Cm({type:e,label:t,description:n,rightLabel:r,onClick:o,trailingAction:a}){return m.jsx(tx,{icon:m.jsx(uye,{type:e}),tint:cye[e],label:t,mono:!0,...n===void 0?{}:{description:n},...r===void 0?{}:{rightLabel:r},...o===void 0?{}:{onClick:o},...a===void 0?{}:{trailingAction:a}})}const wye={dashboard:"Dashboard",notebook:"Notebook"};function Cye(e,t){const n=[...e.map(o=>({kind:"dashboard",path:o.path??"",slug:o.name??hC(o.path),title:o.title})),...t.map(o=>({kind:"notebook",path:o.path??"",slug:hC(o.path),title:o.title}))],r=new Map;for(const o of n)o.slug!==void 0&&r.set(o.slug,(r.get(o.slug)??0)+1);return n.map(({title:o,...a})=>{const s=!!o&&o!==a.slug&&o!==a.path,l=a.slug!==void 0&&(r.get(a.slug)??0)>1;return{...a,label:s?o:a.slug??a.path,secondary:(a.slug===void 0?s:l)?a.path:void 0}}).sort((o,a)=>o.label.localeCompare(a.label)||o.path.localeCompare(a.path))}function US({label:e,action:t}){return m.jsxs(cr,{direction:"row",sx:{alignItems:"center",gap:1,py:1},children:[m.jsx(It,{variant:"body2",color:"text.secondary",sx:{fontStyle:"italic"},children:e}),t&&m.jsx(eo,{size:"small",onClick:t.onClick,children:t.label})]})}function kye(e){return e>=1e9?`${(e/1e9).toFixed(1)} B rows`:e>=1e6?`${(e/1e6).toFixed(1)} M rows`:e>=1e3?`${(e/1e3).toFixed(1)} K rows`:`${e} rows`}function fbe(e,t,n,r,o){const{apiClients:a}=Pr(),s=io({queryKey:["dashboards",e,t,o],queryFn:()=>a.dashboards.listDashboards(e,t,o)}),l=io({queryKey:["notebooks",e,t,o],queryFn:()=>a.notebooks.listNotebooks(e,t,o)}),c=[s,l].every(f=>f.isSuccess||f.isError);return{settled:c,location:c?bye({kind:n,slug:r,dashboards:s.data?.data??[],notebooks:l.data?.data??[]}):void 0}}const mC={name:"Local",description:"Stored in this browser only",writeable:!0},gC="publisher:document:";class Eye{async listWorkspaces(t){return[mC]}async listDocuments(t,n){if(t.name!==mC.name)return[];const r=[];for(let o=0;o<localStorage.length;o++){const a=localStorage.key(o),s=a===null?void 0:Tye(a);s&&(n===void 0||s.type===n)&&r.push(s)}return r}async getDocument(t){const n=localStorage.getItem(km(t));if(n===null)throw LD(t);return n}async saveDocument(t,n){localStorage.setItem(km(t),n)}async deleteDocument(t){const n=km(t);if(localStorage.getItem(n)===null)throw LD(t);localStorage.removeItem(n)}async moveDocument(t,n){const r=await this.getDocument(t);localStorage.setItem(km(n),r),localStorage.removeItem(km(t))}}function km(e){return`${gC}${e.type}:${e.path}`}function Tye(e){if(!e.startsWith(gC))return;const t=e.slice(gC.length),n=t.indexOf(":");if(n<=0)return;const r=t.slice(0,n);if(!(r!=="dashboard"&&r!=="notebook"))return{workspace:mC.name,type:r,path:t.slice(n+1)}}function LD(e){return new h5(`No ${e.type} at ${e.workspace}/${e.path}`)}const zD="[publisher.dashboard]",FD="[publisher.notebook]",_D="[publisher.console]";function pbe(e){return t=>{const n=t.type.endsWith("_refused")||t.type==="dashboard.rows_shown"&&!t.ok,r={...e,...t,at:new Date().toISOString()};n?console.warn(zD,r):console.info(zD,r)}}function hbe(e){return t=>{const n={...e,...t,at:new Date().toISOString()};t.type.endsWith("_refused")?console.warn(FD,n):console.info(FD,n)}}function Mye(e){const t={...e,at:new Date().toISOString()};e.ok?console.info(_D,t):console.warn(_D,t)}const Oo={white:"#FFFFFF",offWhite:"#F8FAFC",grey:{light:"#E2E8F0",mid:"#64748B"},black:"#0F172A",semantic:{success:{main:Wr.emerald,light:"#D1FAE5",dark:"#047857"},warning:{main:Wr.amber,light:"#FEF3C7",dark:"#92400E"},error:{main:Wr.red,light:"#FEE2E2",dark:"#B91C1C"},info:{main:Wr.blue,light:"#DBEAFE",dark:"#1D4ED8"}}},mbe='"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace',Av='"Inter", "Helvetica Neue", "Arial", sans-serif',Xo={50:Oo.offWhite,100:"#F1F5F9",200:Oo.grey.light,300:"#CBD5E1",400:"#94A3B8",500:Oo.grey.mid,600:"#475569",700:"#334155",800:"#1E293B",900:Oo.black},gbe={headerHeight:56},VS="0 1px 3px rgba(0, 0, 0, 0.1)",Rye="#0f172a",Oye="#1e293b",$ye="#f1f5f9",Pye="#cbd5e1",Aye="#334155",V5=(e="light")=>{const t=e==="dark",n=t?Rye:Oo.white,r=t?Oye:Oo.white,o=t?$ye:Oo.black,a=t?Pye:Oo.grey.mid,s=t?Aye:Oo.grey.light,l=t?"#60a5fa":Wr.blue,c=t?"#93c5fd":"#1d4ed8",f=t?"#0f172a":"#ffffff";return l0({cssVariables:{nativeColor:!0},palette:{mode:e,primary:{main:l,light:Oo.grey.light,dark:c,contrastText:f},secondary:{main:Oo.grey.mid,light:Oo.grey.light,dark:Oo.black},grey:Xo,success:Oo.semantic.success,warning:Oo.semantic.warning,error:Oo.semantic.error,info:Oo.semantic.info,background:{default:n,paper:r},text:{primary:o,secondary:a},divider:s},typography:{fontFamily:Av,h1:{fontWeight:500,letterSpacing:"-0.025em"},h2:{fontWeight:500,letterSpacing:"-0.025em"},h3:{fontWeight:500,letterSpacing:"-0.025em"},h4:{fontWeight:500,letterSpacing:"-0.025em"},h5:{fontWeight:500,letterSpacing:"-0.025em"},h6:{fontWeight:500,letterSpacing:"-0.025em"},subtitle1:{fontWeight:500,letterSpacing:"-0.025em"},subtitle2:{fontWeight:500,letterSpacing:"-0.025em"},body1:{letterSpacing:"-0.025em"},body2:{letterSpacing:"-0.025em"},button:{fontWeight:500,letterSpacing:"-0.025em",textTransform:"none"}},shape:{borderRadius:4},components:{MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0}},MuiCssBaseline:{styleOverrides:{"*":{scrollbarWidth:"thin",scrollbarColor:t?"#475569 #1e293b":`${Xo[300]} ${Xo[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:t?"#1e293b":Xo[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:t?"#475569":Xo[300],borderRadius:"4px","&:hover":{background:t?"#64748b":Xo[400]}},"&::-webkit-scrollbar-corner":{background:t?"#1e293b":Xo[100]}},"div[data-radix-popper-content-wrapper]":{zIndex:"1300 !important"}}},MuiButton:{styleOverrides:{root:{borderRadius:20,textTransform:"none",fontWeight:500,boxShadow:"none","&:hover":{boxShadow:VS}},contained:{"&:hover":{boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"},"&.Mui-disabled":{backgroundColor:t?"rgba(255, 255, 255, 0.06)":Xo[200],color:t?"#64748b":Xo[500]}},outlined:{color:o,borderColor:t?"#475569":Xo[300],"&:hover":{borderColor:t?"#64748b":Xo[400],backgroundColor:t?"rgba(255, 255, 255, 0.06)":"rgba(0, 0, 0, 0.04)"}}}},MuiCard:{styleOverrides:{root:{borderRadius:4,boxShadow:VS,border:"1px solid",borderColor:s,backgroundColor:r}}},MuiChip:{styleOverrides:{root:{borderRadius:4,fontWeight:500}}},MuiTextField:{styleOverrides:{root:{"& .MuiOutlinedInput-root":{borderRadius:4},"& .MuiInputLabel-outlined":{backgroundColor:r,paddingLeft:4,paddingRight:4,"&.MuiInputLabel-shrink":{transform:"translate(14px, -9px) scale(0.75)"}}}}},MuiPaper:{styleOverrides:{root:{backgroundImage:"none"}}},MuiDialog:{styleOverrides:{paper:{borderRadius:4,backgroundColor:r,boxShadow:"0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 10px 10px -5px rgba(0, 0, 0, 0.04)"}}},MuiSelect:{styleOverrides:{select:{fontFamily:Av,fontSize:"0.875rem",color:o}}},MuiInputLabel:{styleOverrides:{root:{"&.MuiInputLabel-outlined":{backgroundColor:r,paddingLeft:4,paddingRight:4}}}},MuiOutlinedInput:{styleOverrides:{notchedOutline:{border:"none"},root:{border:`1px solid ${t?Xo[600]:Xo[300]}`,borderRadius:8,transition:"border-color 120ms ease-in",backgroundColor:r,"&:hover":{borderColor:t?"#64748b":Xo[400]},"&.Mui-focused":{borderColor:t?Xo[400]:Xo[500],outline:"none"}}}},MuiMenuItem:{styleOverrides:{root:{fontFamily:Av,fontSize:"0.875rem"}}},MuiInputBase:{styleOverrides:{root:{fontFamily:Av}}},MuiMenu:{styleOverrides:{paper:{borderRadius:4,boxShadow:"0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -2px rgba(0, 0, 0, 0.05)",border:`1px solid ${s}`,backgroundColor:r,color:o}}},MuiBreadcrumbs:{styleOverrides:{root:{"& .MuiBreadcrumbs-separator":{margin:"0 6px",color:Xo[400]}}}},MuiDivider:{styleOverrides:{root:{borderColor:s}},defaultProps:{sx:{my:1}}},MuiListItemButton:{styleOverrides:{root:{borderRadius:28,margin:"2px 8px",padding:"8px 16px","&:hover":{backgroundColor:t?"rgba(255, 255, 255, 0.08)":Oo.offWhite},"&.Mui-selected":{backgroundColor:t?"rgba(255, 255, 255, 0.12)":Oo.offWhite,color:o,"& .MuiListItemIcon-root":{color:o},"& .MuiListItemText-primary":{color:o},"&:hover":{backgroundColor:t?"rgba(255, 255, 255, 0.16)":Oo.grey.light}}}}},MuiAppBar:{styleOverrides:{root:{backgroundColor:r,color:o,boxShadow:VS}}}}})};V5("light");function Dye({children:e}){const{mode:t}=Ts(),n=C.useMemo(()=>V5(t),[t]);return m.jsxs(IV,{theme:n,children:[m.jsx(N9,{}),e]})}const jye=C.lazy(()=>$o(()=>import("./HomePage-Cpu2zMy-.js"),[])),Nye=C.lazy(()=>$o(()=>import("./MainPage-C7ySrclP.js"),__vite__mapDeps([9,10]))),Iye=C.lazy(()=>$o(()=>import("./ModelPage-D8r_J-N9.js"),[])),Lye=C.lazy(()=>$o(()=>import("./PackagePage-CcVFBhnT.js"),[])),zye=C.lazy(()=>$o(()=>import("./EnvironmentPage-B-t_QP32.js"),[])),Fye=C.lazy(()=>$o(()=>import("./RouteError-mgOkv7XK.js"),[])),_ye=C.lazy(()=>$o(()=>import("./ThemeEditorPage-CIPDs2w9.js"),__vite__mapDeps([11,10,12]))),Bye=(e="/",t=new Eye,n)=>(Ghe(Mye),M_([{path:e,element:m.jsx(aZ,{children:m.jsx(jpe,{documentStorage:t,children:m.jsx(Dye,{children:m.jsx(C.Suspense,{fallback:m.jsx(ha,{}),children:m.jsx(Nye,{headerProps:n})})})})}),errorElement:m.jsx(Fye,{}),children:[{index:!0,element:m.jsx(jye,{})},{path:"settings/theme",element:m.jsx(_ye,{})},{path:"settings",element:m.jsx(t_,{to:"/settings/theme",replace:!0})},{path:":environmentName",element:m.jsx(zye,{})},{path:":environmentName/:packageName",element:m.jsx(Lye,{})},{path:":environmentName/:packageName/*",element:m.jsx(Iye,{})}]}])),Uye=Bye("/");p4.createRoot(document.getElementById("root")).render(m.jsx(C.StrictMode,{children:m.jsx(__,{router:Uye})}));export{g5 as $,Ts as A,ad as B,xi as C,cbe as D,Eg as E,ns as F,Hye as G,_t as H,Jr as I,NN as J,bI as K,gk as L,UN as M,Ac as N,Pr as O,Wa as P,WN as Q,Rp as R,ow as S,It as T,eu as U,AG as V,gbe as W,qye as X,ha as Y,abe as Z,Wpe as _,rn as a,Mpe as a$,qg as a0,oye as a1,B0 as a2,$o as a3,Wye as a4,_ve as a5,pbe as a6,hbe as a7,rbe as a8,cr as a9,eo as aA,Lc as aB,Wb as aC,rd as aD,ki as aE,AJ as aF,Vye as aG,BD as aH,CX as aI,d5 as aJ,Vve as aK,Gve as aL,Kve as aM,Hve as aN,qve as aO,Hfe as aP,Wve as aQ,ine as aR,zve as aS,cne as aT,YA as aU,qk as aV,tbe as aW,HA as aX,Npe as aY,io as aZ,gpe as a_,Bve as aa,un as ab,ibe as ac,fbe as ad,sbe as ae,ube as af,Ahe as ag,mbe as ah,y7 as ai,dbe as aj,lbe as ak,V3 as al,dk as am,t2 as an,wa as ao,N7 as ap,tL as aq,R$ as ar,ea as as,xd as at,sK as au,ws as av,o9 as aw,l9 as ax,v0 as ay,ta as az,pn as b,kpe as b0,Zve as b1,Qve as b2,Jve as b3,nbe as b4,ebe as b5,Xve as b6,Ta as b7,qc as b8,hpe as b9,p5 as bA,$ve as bB,npe as bC,Pve as bD,E0 as bE,Lve as bF,xJ as bG,Ove as bH,Fve as bI,H$ as bJ,Ive as bK,xb as bL,Nb as bM,$pe as bN,Ope as bO,Epe as bP,iC as bQ,wpe as bR,OE as bS,Rpe as bT,xpe as bU,Tpe as bV,Dpe as bW,og as bX,zr as bY,uk as ba,rp as bb,Jv as bc,f5 as bd,lpe as be,R9 as bf,jL as bg,pk as bh,JN as bi,Ug as bj,ype as bk,Qk as bl,GA as bm,Wfe as bn,dpe as bo,EE as bp,Rve as bq,Nve as br,bJ as bs,Ave as bt,Dve as bu,jve as bv,CJ as bw,er as bx,_W as by,Yve as bz,qa as c,Gs as d,ew as e,Nt as f,dn as g,fn as h,Xc as i,m as j,dl as k,bo as l,obe as m,vd as n,Hl as o,mN as p,xN as q,C as r,at as s,ub as t,hn as u,Pg as v,gN as w,An as x,nt as y,Ma as z};