diff --git a/rust/demo-app/move/Move.lock b/rust/demo-app/move/Move.lock index 9b528cfd..ef7990dd 100644 --- a/rust/demo-app/move/Move.lock +++ b/rust/demo-app/move/Move.lock @@ -30,7 +30,7 @@ dependencies = [ ] [move.toolchain-version] -compiler-version = "1.25.0" +compiler-version = "1.25.1" edition = "2024.beta" flavor = "sui" @@ -43,12 +43,12 @@ test = 12 [env.localnet_proxy] chain-id = "7833bc59" -original-published-id = "0x4178069a36d1ac6de64b931c2d11c1ad66fdf1b6982d5a5ce4c3b5b13396237b" -latest-published-id = "0x4178069a36d1ac6de64b931c2d11c1ad66fdf1b6982d5a5ce4c3b5b13396237b" +original-published-id = "0x99e8b6cb8e1cd31e841ef7054de48ff86d47ccda4f278b58f37346ed84f6f6ec" +latest-published-id = "0x99e8b6cb8e1cd31e841ef7054de48ff86d47ccda4f278b58f37346ed84f6f6ec" published-version = "1" [env.testnet_proxy] chain-id = "4c78adac" -original-published-id = "0x915398a0991635914fbe730133da9015618976fe546db7c69cb94251c9ae6719" -latest-published-id = "0x915398a0991635914fbe730133da9015618976fe546db7c69cb94251c9ae6719" +original-published-id = "0x8f54aa36806fd4081713a75056d3a89a58f8c8977ca8e0a12b32ae587c55c7a9" +latest-published-id = "0x8f54aa36806fd4081713a75056d3a89a58f8c8977ca8e0a12b32ae587c55c7a9" published-version = "1" diff --git a/typescript/vscode-extension/webview-ui/build/assets/index.js b/typescript/vscode-extension/webview-ui/build/assets/index.js index 2c2d39c5..8396cab9 100644 --- a/typescript/vscode-extension/webview-ui/build/assets/index.js +++ b/typescript/vscode-extension/webview-ui/build/assets/index.js @@ -1,4 +1,4 @@ -var Q1=Object.defineProperty;var X1=(e,t,n)=>t in e?Q1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var we=(e,t,n)=>(X1(e,typeof t!="symbol"?t+"":t,n),n);function Y1(e,t){for(var n=0;nr[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Df(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Jn(e){if(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 i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Iv={exports:{}},Xa={},Ev={exports:{}},Z={};/** +var K1=Object.defineProperty;var J1=(e,t,n)=>t in e?K1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var we=(e,t,n)=>(J1(e,typeof t!="symbol"?t+"":t,n),n);function Z1(e,t){for(var n=0;nr[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Mf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Jn(e){if(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 i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Ev={exports:{}},Xa={},Rv={exports:{}},Z={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var Q1=Object.defineProperty;var X1=(e,t,n)=>t in e?Q1(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Vs=Symbol.for("react.element"),K1=Symbol.for("react.portal"),J1=Symbol.for("react.fragment"),Z1=Symbol.for("react.strict_mode"),ew=Symbol.for("react.profiler"),tw=Symbol.for("react.provider"),nw=Symbol.for("react.context"),rw=Symbol.for("react.forward_ref"),iw=Symbol.for("react.suspense"),ow=Symbol.for("react.memo"),sw=Symbol.for("react.lazy"),Op=Symbol.iterator;function lw(e){return e===null||typeof e!="object"?null:(e=Op&&e[Op]||e["@@iterator"],typeof e=="function"?e:null)}var Rv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Pv=Object.assign,Ov={};function po(e,t,n){this.props=e,this.context=t,this.refs=Ov,this.updater=n||Rv}po.prototype.isReactComponent={};po.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};po.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function _v(){}_v.prototype=po.prototype;function Mf(e,t,n){this.props=e,this.context=t,this.refs=Ov,this.updater=n||Rv}var Lf=Mf.prototype=new _v;Lf.constructor=Mf;Pv(Lf,po.prototype);Lf.isPureReactComponent=!0;var _p=Array.isArray,Av=Object.prototype.hasOwnProperty,Nf={current:null},Dv={key:!0,ref:!0,__self:!0,__source:!0};function Mv(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Av.call(t,r)&&!Dv.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1t in e?Q1(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var fw=x,hw=Symbol.for("react.element"),pw=Symbol.for("react.fragment"),mw=Object.prototype.hasOwnProperty,gw=fw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,vw={key:!0,ref:!0,__self:!0,__source:!0};function Nv(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)mw.call(t,r)&&!vw.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:hw,type:e,key:o,ref:s,props:i,_owner:gw.current}}Xa.Fragment=pw;Xa.jsx=Nv;Xa.jsxs=Nv;Iv.exports=Xa;var k=Iv.exports,yd={},Fv={exports:{}},Ht={},jv={exports:{}},zv={};/** + */var mw=x,gw=Symbol.for("react.element"),vw=Symbol.for("react.fragment"),yw=Object.prototype.hasOwnProperty,bw=mw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,xw={key:!0,ref:!0,__self:!0,__source:!0};function Fv(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)yw.call(t,r)&&!xw.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:gw,type:e,key:o,ref:s,props:i,_owner:bw.current}}Xa.Fragment=vw;Xa.jsx=Fv;Xa.jsxs=Fv;Ev.exports=Xa;var k=Ev.exports,bd={},jv={exports:{}},Ht={},zv={exports:{}},Bv={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var Q1=Object.defineProperty;var X1=(e,t,n)=>t in e?Q1(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(_,M){var H=_.length;_.push(M);e:for(;0>>1,ae=_[re];if(0>>1;rei(et,H))Ui(xe,et)?(_[re]=xe,_[U]=H,re=U):(_[re]=et,_[Ie]=H,re=Ie);else if(Ui(xe,H))_[re]=xe,_[U]=H,re=U;else break e}}return M}function i(_,M){var H=_.sortIndex-M.sortIndex;return H!==0?H:_.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],c=[],d=1,u=null,f=3,v=!1,g=!1,m=!1,b=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(_){for(var M=n(c);M!==null;){if(M.callback===null)r(c);else if(M.startTime<=_)r(c),M.sortIndex=M.expirationTime,t(a,M);else break;M=n(c)}}function w(_){if(m=!1,y(_),!g)if(n(a)!==null)g=!0,q(C);else{var M=n(c);M!==null&&W(w,M.startTime-_)}}function C(_,M){g=!1,m&&(m=!1,p(R),R=-1),v=!0;var H=f;try{for(y(M),u=n(a);u!==null&&(!(u.expirationTime>M)||_&&!P());){var re=u.callback;if(typeof re=="function"){u.callback=null,f=u.priorityLevel;var ae=re(u.expirationTime<=M);M=e.unstable_now(),typeof ae=="function"?u.callback=ae:u===n(a)&&r(a),y(M)}else r(a);u=n(a)}if(u!==null)var Dt=!0;else{var Ie=n(c);Ie!==null&&W(w,Ie.startTime-M),Dt=!1}return Dt}finally{u=null,f=H,v=!1}}var $=!1,T=null,R=-1,B=5,D=-1;function P(){return!(e.unstable_now()-D_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(_){switch(f){case 1:case 2:case 3:var M=3;break;default:M=f}var H=f;f=M;try{return _()}finally{f=H}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,M){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var H=f;f=_;try{return M()}finally{f=H}},e.unstable_scheduleCallback=function(_,M,H){var re=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0re?(_.sortIndex=H,t(c,_),n(a)===null&&_===n(c)&&(m?(p(R),R=-1):m=!0,W(w,H-re))):(_.sortIndex=ae,t(a,_),g||v||(g=!0,q(C))),_},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(_){var M=f;return function(){var H=f;f=M;try{return _.apply(this,arguments)}finally{f=H}}}})(zv);jv.exports=zv;var yw=jv.exports;/** + */(function(e){function t(_,M){var H=_.length;_.push(M);e:for(;0>>1,ae=_[re];if(0>>1;rei(et,H))Ui(xe,et)?(_[re]=xe,_[U]=H,re=U):(_[re]=et,_[Ie]=H,re=Ie);else if(Ui(xe,H))_[re]=xe,_[U]=H,re=U;else break e}}return M}function i(_,M){var H=_.sortIndex-M.sortIndex;return H!==0?H:_.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],c=[],d=1,u=null,f=3,v=!1,g=!1,m=!1,b=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(_){for(var M=n(c);M!==null;){if(M.callback===null)r(c);else if(M.startTime<=_)r(c),M.sortIndex=M.expirationTime,t(a,M);else break;M=n(c)}}function w(_){if(m=!1,y(_),!g)if(n(a)!==null)g=!0,q(C);else{var M=n(c);M!==null&&W(w,M.startTime-_)}}function C(_,M){g=!1,m&&(m=!1,p(P),P=-1),v=!0;var H=f;try{for(y(M),u=n(a);u!==null&&(!(u.expirationTime>M)||_&&!O());){var re=u.callback;if(typeof re=="function"){u.callback=null,f=u.priorityLevel;var ae=re(u.expirationTime<=M);M=e.unstable_now(),typeof ae=="function"?u.callback=ae:u===n(a)&&r(a),y(M)}else r(a);u=n(a)}if(u!==null)var Dt=!0;else{var Ie=n(c);Ie!==null&&W(w,Ie.startTime-M),Dt=!1}return Dt}finally{u=null,f=H,v=!1}}var $=!1,I=null,P=-1,L=5,D=-1;function O(){return!(e.unstable_now()-D_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(_){switch(f){case 1:case 2:case 3:var M=3;break;default:M=f}var H=f;f=M;try{return _()}finally{f=H}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,M){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var H=f;f=_;try{return M()}finally{f=H}},e.unstable_scheduleCallback=function(_,M,H){var re=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0re?(_.sortIndex=H,t(c,_),n(a)===null&&_===n(c)&&(m?(p(P),P=-1):m=!0,W(w,H-re))):(_.sortIndex=ae,t(a,_),g||v||(g=!0,q(C))),_},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(_){var M=f;return function(){var H=f;f=M;try{return _.apply(this,arguments)}finally{f=H}}}})(Bv);zv.exports=Bv;var ww=zv.exports;/** * @license React * react-dom.production.min.js * @@ -30,21 +30,21 @@ var Q1=Object.defineProperty;var X1=(e,t,n)=>t in e?Q1(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var bw=x,Vt=yw;function A(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bd=Object.prototype.hasOwnProperty,xw=/^[: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]*$/,Dp={},Mp={};function ww(e){return bd.call(Mp,e)?!0:bd.call(Dp,e)?!1:xw.test(e)?Mp[e]=!0:(Dp[e]=!0,!1)}function kw(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Cw(e,t,n,r){if(t===null||typeof t>"u"||kw(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function wt(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Je={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Je[e]=new wt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Je[t]=new wt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Je[e]=new wt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Je[e]=new wt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Je[e]=new wt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Je[e]=new wt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Je[e]=new wt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Je[e]=new wt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Je[e]=new wt(e,5,!1,e.toLowerCase(),null,!1,!1)});var jf=/[\-:]([a-z])/g;function zf(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(jf,zf);Je[t]=new wt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(jf,zf);Je[t]=new wt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(jf,zf);Je[t]=new wt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Je[e]=new wt(e,1,!1,e.toLowerCase(),null,!1,!1)});Je.xlinkHref=new wt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Je[e]=new wt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Bf(e,t,n,r){var i=Je.hasOwnProperty(t)?Je[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xd=Object.prototype.hasOwnProperty,Cw=/^[: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]*$/,Mp={},Lp={};function Sw(e){return xd.call(Lp,e)?!0:xd.call(Mp,e)?!1:Cw.test(e)?Lp[e]=!0:(Mp[e]=!0,!1)}function $w(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Tw(e,t,n,r){if(t===null||typeof t>"u"||$w(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function wt(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Je={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Je[e]=new wt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Je[t]=new wt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Je[e]=new wt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Je[e]=new wt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Je[e]=new wt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Je[e]=new wt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Je[e]=new wt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Je[e]=new wt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Je[e]=new wt(e,5,!1,e.toLowerCase(),null,!1,!1)});var zf=/[\-:]([a-z])/g;function Bf(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(zf,Bf);Je[t]=new wt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(zf,Bf);Je[t]=new wt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(zf,Bf);Je[t]=new wt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Je[e]=new wt(e,1,!1,e.toLowerCase(),null,!1,!1)});Je.xlinkHref=new wt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Je[e]=new wt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Vf(e,t,n,r){var i=Je.hasOwnProperty(t)?Je[t]:null;(i!==null?i.type!==0:r||!(2l||i[s]!==o[l]){var a=` -`+i[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{bu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?qo(e):""}function Sw(e){switch(e.tag){case 5:return qo(e.type);case 16:return qo("Lazy");case 13:return qo("Suspense");case 19:return qo("SuspenseList");case 0:case 2:case 15:return e=xu(e.type,!1),e;case 11:return e=xu(e.type.render,!1),e;case 1:return e=xu(e.type,!0),e;default:return""}}function Cd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $i:return"Fragment";case Si:return"Portal";case xd:return"Profiler";case Vf:return"StrictMode";case wd:return"Suspense";case kd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Hv:return(e.displayName||"Context")+".Consumer";case Vv:return(e._context.displayName||"Context")+".Provider";case Hf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Uf:return t=e.displayName||null,t!==null?t:Cd(e.type)||"Memo";case cr:t=e._payload,e=e._init;try{return Cd(e(t))}catch{}}return null}function $w(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Cd(t);case 8:return t===Vf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Tr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Wv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Tw(e){var t=Wv(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function fl(e){e._valueTracker||(e._valueTracker=Tw(e))}function Gv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Wv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function aa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Sd(e,t){var n=t.checked;return $e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Np(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Tr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function qv(e,t){t=t.checked,t!=null&&Bf(e,"checked",t,!1)}function $d(e,t){qv(e,t);var n=Tr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Td(e,t.type,n):t.hasOwnProperty("defaultValue")&&Td(e,t.type,Tr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Fp(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Td(e,t,n){(t!=="number"||aa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Qo=Array.isArray;function Fi(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=hl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ms(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Jo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Iw=["Webkit","ms","Moz","O"];Object.keys(Jo).forEach(function(e){Iw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Jo[t]=Jo[e]})});function Kv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Jo.hasOwnProperty(e)&&Jo[e]?(""+t).trim():t+"px"}function Jv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Kv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Ew=$e({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Rd(e,t){if(t){if(Ew[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function Pd(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Od=null;function Wf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _d=null,ji=null,zi=null;function Bp(e){if(e=Ws(e)){if(typeof _d!="function")throw Error(A(280));var t=e.stateNode;t&&(t=ec(t),_d(e.stateNode,e.type,t))}}function Zv(e){ji?zi?zi.push(e):zi=[e]:ji=e}function ey(){if(ji){var e=ji,t=zi;if(zi=ji=null,Bp(e),t)for(e=0;e>>=0,e===0?32:31-(jw(e)/zw|0)|0}var pl=64,ml=4194304;function Xo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function fa(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=Xo(l):(o&=s,o!==0&&(r=Xo(o)))}else s=n&~i,s!==0?r=Xo(s):o!==0&&(r=Xo(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Hs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-mn(t),e[t]=n}function Uw(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=es),Yp=" ",Kp=!1;function xy(e,t){switch(e){case"keyup":return yk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wy(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ti=!1;function xk(e,t){switch(e){case"compositionend":return wy(t);case"keypress":return t.which!==32?null:(Kp=!0,Yp);case"textInput":return e=t.data,e===Yp&&Kp?null:e;default:return null}}function wk(e,t){if(Ti)return e==="compositionend"||!Zf&&xy(e,t)?(e=yy(),Hl=Yf=pr=null,Ti=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=tm(n)}}function $y(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$y(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ty(){for(var e=window,t=aa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=aa(e.document)}return t}function eh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Pk(e){var t=Ty(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&$y(n.ownerDocument.documentElement,n)){if(r!==null&&eh(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=nm(n,o);var s=nm(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ii=null,Fd=null,ns=null,jd=!1;function rm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;jd||Ii==null||Ii!==aa(r)||(r=Ii,"selectionStart"in r&&eh(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ns&&ws(ns,r)||(ns=r,r=ma(Fd,"onSelect"),0Pi||(e.current=Wd[Pi],Wd[Pi]=null,Pi--)}function fe(e,t){Pi++,Wd[Pi]=e.current,e.current=t}var Ir={},lt=Ar(Ir),Tt=Ar(!1),Zr=Ir;function eo(e,t){var n=e.type.contextTypes;if(!n)return Ir;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function It(e){return e=e.childContextTypes,e!=null}function va(){me(Tt),me(lt)}function um(e,t,n){if(lt.current!==Ir)throw Error(A(168));fe(lt,t),fe(Tt,n)}function My(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(A(108,$w(e)||"Unknown",i));return $e({},n,r)}function ya(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ir,Zr=lt.current,fe(lt,e),fe(Tt,Tt.current),!0}function dm(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=My(e,t,Zr),r.__reactInternalMemoizedMergedChildContext=e,me(Tt),me(lt),fe(lt,e)):me(Tt),fe(Tt,n)}var jn=null,tc=!1,Du=!1;function Ly(e){jn===null?jn=[e]:jn.push(e)}function Vk(e){tc=!0,Ly(e)}function Dr(){if(!Du&&jn!==null){Du=!0;var e=0,t=ce;try{var n=jn;for(ce=1;e>=s,i-=s,Vn=1<<32-mn(t)+i|n<R?(B=T,T=null):B=T.sibling;var D=f(p,T,y[R],w);if(D===null){T===null&&(T=B);break}e&&T&&D.alternate===null&&t(p,T),h=o(D,h,R),$===null?C=D:$.sibling=D,$=D,T=B}if(R===y.length)return n(p,T),ve&&jr(p,R),C;if(T===null){for(;RR?(B=T,T=null):B=T.sibling;var P=f(p,T,D.value,w);if(P===null){T===null&&(T=B);break}e&&T&&P.alternate===null&&t(p,T),h=o(P,h,R),$===null?C=P:$.sibling=P,$=P,T=B}if(D.done)return n(p,T),ve&&jr(p,R),C;if(T===null){for(;!D.done;R++,D=y.next())D=u(p,D.value,w),D!==null&&(h=o(D,h,R),$===null?C=D:$.sibling=D,$=D);return ve&&jr(p,R),C}for(T=r(p,T);!D.done;R++,D=y.next())D=v(T,p,R,D.value,w),D!==null&&(e&&D.alternate!==null&&T.delete(D.key===null?R:D.key),h=o(D,h,R),$===null?C=D:$.sibling=D,$=D);return e&&T.forEach(function(O){return t(p,O)}),ve&&jr(p,R),C}function b(p,h,y,w){if(typeof y=="object"&&y!==null&&y.type===$i&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case dl:e:{for(var C=y.key,$=h;$!==null;){if($.key===C){if(C=y.type,C===$i){if($.tag===7){n(p,$.sibling),h=i($,y.props.children),h.return=p,p=h;break e}}else if($.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===cr&&pm(C)===$.type){n(p,$.sibling),h=i($,y.props),h.ref=No(p,$,y),h.return=p,p=h;break e}n(p,$);break}else t(p,$);$=$.sibling}y.type===$i?(h=Yr(y.props.children,p.mode,w,y.key),h.return=p,p=h):(w=Kl(y.type,y.key,y.props,null,p.mode,w),w.ref=No(p,h,y),w.return=p,p=w)}return s(p);case Si:e:{for($=y.key;h!==null;){if(h.key===$)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){n(p,h.sibling),h=i(h,y.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=Vu(y,p.mode,w),h.return=p,p=h}return s(p);case cr:return $=y._init,b(p,h,$(y._payload),w)}if(Qo(y))return g(p,h,y,w);if(_o(y))return m(p,h,y,w);kl(p,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,h!==null&&h.tag===6?(n(p,h.sibling),h=i(h,y),h.return=p,p=h):(n(p,h),h=Bu(y,p.mode,w),h.return=p,p=h),s(p)):n(p,h)}return b}var no=zy(!0),By=zy(!1),wa=Ar(null),ka=null,Ai=null,ih=null;function oh(){ih=Ai=ka=null}function sh(e){var t=wa.current;me(wa),e._currentValue=t}function Qd(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Vi(e,t){ka=e,ih=Ai=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&($t=!0),e.firstContext=null)}function nn(e){var t=e._currentValue;if(ih!==e)if(e={context:e,memoizedValue:t,next:null},Ai===null){if(ka===null)throw Error(A(308));Ai=e,ka.dependencies={lanes:0,firstContext:e}}else Ai=Ai.next=e;return t}var Wr=null;function lh(e){Wr===null?Wr=[e]:Wr.push(e)}function Vy(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,lh(t)):(n.next=i.next,i.next=n),t.interleaved=n,Xn(e,r)}function Xn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ur=!1;function ah(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Hy(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Wn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function wr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ne&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Xn(e,n)}return i=r.interleaved,i===null?(t.next=t,lh(r)):(t.next=i.next,i.next=t),r.interleaved=t,Xn(e,n)}function Wl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qf(e,n)}}function mm(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ca(e,t,n,r){var i=e.updateQueue;ur=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,c=a.next;a.next=null,s===null?o=c:s.next=c,s=a;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==s&&(l===null?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=a))}if(o!==null){var u=i.baseState;s=0,d=c=a=null,l=o;do{var f=l.lane,v=l.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:v,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var g=e,m=l;switch(f=t,v=n,m.tag){case 1:if(g=m.payload,typeof g=="function"){u=g.call(v,u,f);break e}u=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=m.payload,f=typeof g=="function"?g.call(v,u,f):g,f==null)break e;u=$e({},u,f);break e;case 2:ur=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[l]:f.push(l))}else v={eventTime:v,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=v,a=u):d=d.next=v,s|=f;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;f=l,l=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(d===null&&(a=u),i.baseState=a,i.firstBaseUpdate=c,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);ni|=s,e.lanes=s,e.memoizedState=u}}function gm(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Lu.transition;Lu.transition={};try{e(!1),t()}finally{ce=n,Lu.transition=r}}function s0(){return rn().memoizedState}function Gk(e,t,n){var r=Cr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},l0(e))a0(t,n);else if(n=Vy(e,t,n,r),n!==null){var i=gt();gn(n,e,r,i),c0(n,t,r)}}function qk(e,t,n){var r=Cr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(l0(e))a0(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,vn(l,s)){var a=t.interleaved;a===null?(i.next=i,lh(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Vy(e,t,i,r),n!==null&&(i=gt(),gn(n,e,r,i),c0(n,t,r))}}function l0(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function a0(e,t){rs=$a=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function c0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qf(e,n)}}var Ta={readContext:nn,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useInsertionEffect:tt,useLayoutEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useMutableSource:tt,useSyncExternalStore:tt,useId:tt,unstable_isNewReconciler:!1},Qk={readContext:nn,useCallback:function(e,t){return Sn().memoizedState=[e,t===void 0?null:t],e},useContext:nn,useEffect:ym,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ql(4194308,4,t0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ql(4194308,4,e,t)},useInsertionEffect:function(e,t){return ql(4,2,e,t)},useMemo:function(e,t){var n=Sn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Sn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Gk.bind(null,Se,e),[r.memoizedState,e]},useRef:function(e){var t=Sn();return e={current:e},t.memoizedState=e},useState:vm,useDebugValue:gh,useDeferredValue:function(e){return Sn().memoizedState=e},useTransition:function(){var e=vm(!1),t=e[0];return e=Wk.bind(null,e[1]),Sn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Se,i=Sn();if(ve){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),Ue===null)throw Error(A(349));ti&30||qy(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,ym(Xy.bind(null,r,o,e),[e]),r.flags|=2048,Rs(9,Qy.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Sn(),t=Ue.identifierPrefix;if(ve){var n=Hn,r=Vn;n=(r&~(1<<32-mn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Is++,0")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{xu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Qo(e):""}function Iw(e){switch(e.tag){case 5:return Qo(e.type);case 16:return Qo("Lazy");case 13:return Qo("Suspense");case 19:return Qo("SuspenseList");case 0:case 2:case 15:return e=wu(e.type,!1),e;case 11:return e=wu(e.type.render,!1),e;case 1:return e=wu(e.type,!0),e;default:return""}}function Sd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $i:return"Fragment";case Si:return"Portal";case wd:return"Profiler";case Hf:return"StrictMode";case kd:return"Suspense";case Cd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Uv:return(e.displayName||"Context")+".Consumer";case Hv:return(e._context.displayName||"Context")+".Provider";case Uf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Wf:return t=e.displayName||null,t!==null?t:Sd(e.type)||"Memo";case cr:t=e._payload,e=e._init;try{return Sd(e(t))}catch{}}return null}function Ew(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Sd(t);case 8:return t===Hf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Tr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Gv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Rw(e){var t=Gv(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function fl(e){e._valueTracker||(e._valueTracker=Rw(e))}function qv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Gv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function aa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function $d(e,t){var n=t.checked;return $e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Fp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Tr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Qv(e,t){t=t.checked,t!=null&&Vf(e,"checked",t,!1)}function Td(e,t){Qv(e,t);var n=Tr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Id(e,t.type,n):t.hasOwnProperty("defaultValue")&&Id(e,t.type,Tr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function jp(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Id(e,t,n){(t!=="number"||aa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Xo=Array.isArray;function Fi(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=hl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ms(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Zo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Pw=["Webkit","ms","Moz","O"];Object.keys(Zo).forEach(function(e){Pw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zo[t]=Zo[e]})});function Jv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Zo.hasOwnProperty(e)&&Zo[e]?(""+t).trim():t+"px"}function Zv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Jv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Ow=$e({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Pd(e,t){if(t){if(Ow[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function Od(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _d=null;function Gf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ad=null,ji=null,zi=null;function Vp(e){if(e=Ws(e)){if(typeof Ad!="function")throw Error(A(280));var t=e.stateNode;t&&(t=ec(t),Ad(e.stateNode,e.type,t))}}function ey(e){ji?zi?zi.push(e):zi=[e]:ji=e}function ty(){if(ji){var e=ji,t=zi;if(zi=ji=null,Vp(e),t)for(e=0;e>>=0,e===0?32:31-(Vw(e)/Hw|0)|0}var pl=64,ml=4194304;function Yo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function fa(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=Yo(l):(o&=s,o!==0&&(r=Yo(o)))}else s=n&~i,s!==0?r=Yo(s):o!==0&&(r=Yo(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Hs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-mn(t),e[t]=n}function qw(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ts),Kp=" ",Jp=!1;function wy(e,t){switch(e){case"keyup":return wk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ky(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ti=!1;function Ck(e,t){switch(e){case"compositionend":return ky(t);case"keypress":return t.which!==32?null:(Jp=!0,Kp);case"textInput":return e=t.data,e===Kp&&Jp?null:e;default:return null}}function Sk(e,t){if(Ti)return e==="compositionend"||!eh&&wy(e,t)?(e=by(),Hl=Kf=pr=null,Ti=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=nm(n)}}function Ty(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ty(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Iy(){for(var e=window,t=aa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=aa(e.document)}return t}function th(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Ak(e){var t=Iy(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ty(n.ownerDocument.documentElement,n)){if(r!==null&&th(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=rm(n,o);var s=rm(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ii=null,jd=null,rs=null,zd=!1;function im(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zd||Ii==null||Ii!==aa(r)||(r=Ii,"selectionStart"in r&&th(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),rs&&ws(rs,r)||(rs=r,r=ma(jd,"onSelect"),0Pi||(e.current=Gd[Pi],Gd[Pi]=null,Pi--)}function fe(e,t){Pi++,Gd[Pi]=e.current,e.current=t}var Ir={},st=Ar(Ir),Tt=Ar(!1),Zr=Ir;function to(e,t){var n=e.type.contextTypes;if(!n)return Ir;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function It(e){return e=e.childContextTypes,e!=null}function va(){me(Tt),me(st)}function dm(e,t,n){if(st.current!==Ir)throw Error(A(168));fe(st,t),fe(Tt,n)}function Ly(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(A(108,Ew(e)||"Unknown",i));return $e({},n,r)}function ya(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ir,Zr=st.current,fe(st,e),fe(Tt,Tt.current),!0}function fm(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=Ly(e,t,Zr),r.__reactInternalMemoizedMergedChildContext=e,me(Tt),me(st),fe(st,e)):me(Tt),fe(Tt,n)}var jn=null,tc=!1,Mu=!1;function Ny(e){jn===null?jn=[e]:jn.push(e)}function Wk(e){tc=!0,Ny(e)}function Dr(){if(!Mu&&jn!==null){Mu=!0;var e=0,t=ce;try{var n=jn;for(ce=1;e>=s,i-=s,Vn=1<<32-mn(t)+i|n<P?(L=I,I=null):L=I.sibling;var D=f(p,I,y[P],w);if(D===null){I===null&&(I=L);break}e&&I&&D.alternate===null&&t(p,I),h=o(D,h,P),$===null?C=D:$.sibling=D,$=D,I=L}if(P===y.length)return n(p,I),ve&&jr(p,P),C;if(I===null){for(;PP?(L=I,I=null):L=I.sibling;var O=f(p,I,D.value,w);if(O===null){I===null&&(I=L);break}e&&I&&O.alternate===null&&t(p,I),h=o(O,h,P),$===null?C=O:$.sibling=O,$=O,I=L}if(D.done)return n(p,I),ve&&jr(p,P),C;if(I===null){for(;!D.done;P++,D=y.next())D=u(p,D.value,w),D!==null&&(h=o(D,h,P),$===null?C=D:$.sibling=D,$=D);return ve&&jr(p,P),C}for(I=r(p,I);!D.done;P++,D=y.next())D=v(I,p,P,D.value,w),D!==null&&(e&&D.alternate!==null&&I.delete(D.key===null?P:D.key),h=o(D,h,P),$===null?C=D:$.sibling=D,$=D);return e&&I.forEach(function(R){return t(p,R)}),ve&&jr(p,P),C}function b(p,h,y,w){if(typeof y=="object"&&y!==null&&y.type===$i&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case dl:e:{for(var C=y.key,$=h;$!==null;){if($.key===C){if(C=y.type,C===$i){if($.tag===7){n(p,$.sibling),h=i($,y.props.children),h.return=p,p=h;break e}}else if($.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===cr&&mm(C)===$.type){n(p,$.sibling),h=i($,y.props),h.ref=Fo(p,$,y),h.return=p,p=h;break e}n(p,$);break}else t(p,$);$=$.sibling}y.type===$i?(h=Yr(y.props.children,p.mode,w,y.key),h.return=p,p=h):(w=Kl(y.type,y.key,y.props,null,p.mode,w),w.ref=Fo(p,h,y),w.return=p,p=w)}return s(p);case Si:e:{for($=y.key;h!==null;){if(h.key===$)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){n(p,h.sibling),h=i(h,y.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=Hu(y,p.mode,w),h.return=p,p=h}return s(p);case cr:return $=y._init,b(p,h,$(y._payload),w)}if(Xo(y))return g(p,h,y,w);if(Ao(y))return m(p,h,y,w);kl(p,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,h!==null&&h.tag===6?(n(p,h.sibling),h=i(h,y),h.return=p,p=h):(n(p,h),h=Vu(y,p.mode,w),h.return=p,p=h),s(p)):n(p,h)}return b}var ro=By(!0),Vy=By(!1),wa=Ar(null),ka=null,Ai=null,oh=null;function sh(){oh=Ai=ka=null}function lh(e){var t=wa.current;me(wa),e._currentValue=t}function Xd(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Vi(e,t){ka=e,oh=Ai=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&($t=!0),e.firstContext=null)}function nn(e){var t=e._currentValue;if(oh!==e)if(e={context:e,memoizedValue:t,next:null},Ai===null){if(ka===null)throw Error(A(308));Ai=e,ka.dependencies={lanes:0,firstContext:e}}else Ai=Ai.next=e;return t}var Wr=null;function ah(e){Wr===null?Wr=[e]:Wr.push(e)}function Hy(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,ah(t)):(n.next=i.next,i.next=n),t.interleaved=n,Xn(e,r)}function Xn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ur=!1;function ch(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Uy(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Wn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function wr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ne&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Xn(e,n)}return i=r.interleaved,i===null?(t.next=t,ah(r)):(t.next=i.next,i.next=t),r.interleaved=t,Xn(e,n)}function Wl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qf(e,n)}}function gm(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ca(e,t,n,r){var i=e.updateQueue;ur=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,c=a.next;a.next=null,s===null?o=c:s.next=c,s=a;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==s&&(l===null?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=a))}if(o!==null){var u=i.baseState;s=0,d=c=a=null,l=o;do{var f=l.lane,v=l.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:v,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var g=e,m=l;switch(f=t,v=n,m.tag){case 1:if(g=m.payload,typeof g=="function"){u=g.call(v,u,f);break e}u=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=m.payload,f=typeof g=="function"?g.call(v,u,f):g,f==null)break e;u=$e({},u,f);break e;case 2:ur=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[l]:f.push(l))}else v={eventTime:v,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=v,a=u):d=d.next=v,s|=f;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;f=l,l=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(d===null&&(a=u),i.baseState=a,i.firstBaseUpdate=c,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);ni|=s,e.lanes=s,e.memoizedState=u}}function vm(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Nu.transition;Nu.transition={};try{e(!1),t()}finally{ce=n,Nu.transition=r}}function l0(){return rn().memoizedState}function Xk(e,t,n){var r=Cr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},a0(e))c0(t,n);else if(n=Hy(e,t,n,r),n!==null){var i=gt();gn(n,e,r,i),u0(n,t,r)}}function Yk(e,t,n){var r=Cr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(a0(e))c0(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,vn(l,s)){var a=t.interleaved;a===null?(i.next=i,ah(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Hy(e,t,i,r),n!==null&&(i=gt(),gn(n,e,r,i),u0(n,t,r))}}function a0(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function c0(e,t){is=$a=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function u0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qf(e,n)}}var Ta={readContext:nn,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useInsertionEffect:tt,useLayoutEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useMutableSource:tt,useSyncExternalStore:tt,useId:tt,unstable_isNewReconciler:!1},Kk={readContext:nn,useCallback:function(e,t){return Sn().memoizedState=[e,t===void 0?null:t],e},useContext:nn,useEffect:bm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ql(4194308,4,n0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ql(4194308,4,e,t)},useInsertionEffect:function(e,t){return ql(4,2,e,t)},useMemo:function(e,t){var n=Sn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Sn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Xk.bind(null,Se,e),[r.memoizedState,e]},useRef:function(e){var t=Sn();return e={current:e},t.memoizedState=e},useState:ym,useDebugValue:vh,useDeferredValue:function(e){return Sn().memoizedState=e},useTransition:function(){var e=ym(!1),t=e[0];return e=Qk.bind(null,e[1]),Sn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Se,i=Sn();if(ve){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),Ue===null)throw Error(A(349));ti&30||Qy(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,bm(Yy.bind(null,r,o,e),[e]),r.flags|=2048,Rs(9,Xy.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Sn(),t=Ue.identifierPrefix;if(ve){var n=Hn,r=Vn;n=(r&~(1<<32-mn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Is++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[En]=t,e[Ss]=r,b0(e,t,!1,!1),t.stateNode=e;e:{switch(s=Pd(n,r),n){case"dialog":pe("cancel",e),pe("close",e),i=r;break;case"iframe":case"object":case"embed":pe("load",e),i=r;break;case"video":case"audio":for(i=0;ioo&&(t.flags|=128,r=!0,Fo(o,!1),t.lanes=4194304)}else{if(!r)if(e=Sa(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Fo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!ve)return nt(t),null}else 2*_e()-o.renderingStartTime>oo&&n!==1073741824&&(t.flags|=128,r=!0,Fo(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=_e(),t.sibling=null,n=Ce.current,fe(Ce,r?n&1|2:n&1),t):(nt(t),null);case 22:case 23:return kh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Mt&1073741824&&(nt(t),t.subtreeFlags&6&&(t.flags|=8192)):nt(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function nC(e,t){switch(nh(t),t.tag){case 1:return It(t.type)&&va(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ro(),me(Tt),me(lt),dh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return uh(t),null;case 13:if(me(Ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));to()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(Ce),null;case 4:return ro(),null;case 10:return sh(t.type._context),null;case 22:case 23:return kh(),null;case 24:return null;default:return null}}var Sl=!1,it=!1,rC=typeof WeakSet=="function"?WeakSet:Set,N=null;function Di(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Pe(e,t,r)}else n.current=null}function rf(e,t,n){try{n()}catch(r){Pe(e,t,r)}}var Rm=!1;function iC(e,t){if(zd=ha,e=Ty(),eh(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,c=0,d=0,u=e,f=null;t:for(;;){for(var v;u!==n||i!==0&&u.nodeType!==3||(l=s+i),u!==o||r!==0&&u.nodeType!==3||(a=s+r),u.nodeType===3&&(s+=u.nodeValue.length),(v=u.firstChild)!==null;)f=u,u=v;for(;;){if(u===e)break t;if(f===n&&++c===i&&(l=s),f===o&&++d===r&&(a=s),(v=u.nextSibling)!==null)break;u=f,f=u.parentNode}u=v}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Bd={focusedElem:e,selectionRange:n},ha=!1,N=t;N!==null;)if(t=N,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,N=e;else for(;N!==null;){t=N;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var m=g.memoizedProps,b=g.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?m:dn(t.type,m),b);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(w){Pe(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,N=e;break}N=t.return}return g=Rm,Rm=!1,g}function is(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&rf(t,n,o)}i=i.next}while(i!==r)}}function ic(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function of(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function k0(e){var t=e.alternate;t!==null&&(e.alternate=null,k0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[En],delete t[Ss],delete t[Ud],delete t[zk],delete t[Bk])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function C0(e){return e.tag===5||e.tag===3||e.tag===4}function Pm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||C0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function sf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ga));else if(r!==4&&(e=e.child,e!==null))for(sf(e,t,n),e=e.sibling;e!==null;)sf(e,t,n),e=e.sibling}function lf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(lf(e,t,n),e=e.sibling;e!==null;)lf(e,t,n),e=e.sibling}var Xe=null,fn=!1;function rr(e,t,n){for(n=n.child;n!==null;)S0(e,t,n),n=n.sibling}function S0(e,t,n){if(Pn&&typeof Pn.onCommitFiberUnmount=="function")try{Pn.onCommitFiberUnmount(Ya,n)}catch{}switch(n.tag){case 5:it||Di(n,t);case 6:var r=Xe,i=fn;Xe=null,rr(e,t,n),Xe=r,fn=i,Xe!==null&&(fn?(e=Xe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Xe.removeChild(n.stateNode));break;case 18:Xe!==null&&(fn?(e=Xe,n=n.stateNode,e.nodeType===8?Au(e.parentNode,n):e.nodeType===1&&Au(e,n),bs(e)):Au(Xe,n.stateNode));break;case 4:r=Xe,i=fn,Xe=n.stateNode.containerInfo,fn=!0,rr(e,t,n),Xe=r,fn=i;break;case 0:case 11:case 14:case 15:if(!it&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&rf(n,t,s),i=i.next}while(i!==r)}rr(e,t,n);break;case 1:if(!it&&(Di(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Pe(n,t,l)}rr(e,t,n);break;case 21:rr(e,t,n);break;case 22:n.mode&1?(it=(r=it)||n.memoizedState!==null,rr(e,t,n),it=r):rr(e,t,n);break;default:rr(e,t,n)}}function Om(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new rC),t.forEach(function(r){var i=hC.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function un(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=_e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*sC(r/1960))-r,10e?16:e,mr===null)var r=!1;else{if(e=mr,mr=null,Ra=0,ne&6)throw Error(A(331));var i=ne;for(ne|=4,N=e.current;N!==null;){var o=N,s=o.child;if(N.flags&16){var l=o.deletions;if(l!==null){for(var a=0;a_e()-xh?Xr(e,0):bh|=n),Et(e,t)}function _0(e,t){t===0&&(e.mode&1?(t=ml,ml<<=1,!(ml&130023424)&&(ml=4194304)):t=1);var n=gt();e=Xn(e,t),e!==null&&(Hs(e,t,n),Et(e,n))}function fC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_0(e,n)}function hC(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(A(314))}r!==null&&r.delete(t),_0(e,n)}var A0;A0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Tt.current)$t=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return $t=!1,eC(e,t,n);$t=!!(e.flags&131072)}else $t=!1,ve&&t.flags&1048576&&Ny(t,xa,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ql(e,t),e=t.pendingProps;var i=eo(t,lt.current);Vi(t,n),i=hh(null,t,r,e,i,n);var o=ph();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,It(r)?(o=!0,ya(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ah(t),i.updater=rc,t.stateNode=i,i._reactInternals=t,Yd(t,r,e,n),t=Zd(null,t,r,!0,o,n)):(t.tag=0,ve&&o&&th(t),pt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ql(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=mC(r),e=dn(r,e),i){case 0:t=Jd(null,t,r,e,n);break e;case 1:t=Tm(null,t,r,e,n);break e;case 11:t=Sm(null,t,r,e,n);break e;case 14:t=$m(null,t,r,dn(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dn(r,i),Jd(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dn(r,i),Tm(e,t,r,i,n);case 3:e:{if(g0(t),e===null)throw Error(A(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Hy(e,t),Ca(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=io(Error(A(423)),t),t=Im(e,t,r,n,i);break e}else if(r!==i){i=io(Error(A(424)),t),t=Im(e,t,r,n,i);break e}else for(Nt=xr(t.stateNode.containerInfo.firstChild),jt=t,ve=!0,hn=null,n=By(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(to(),r===i){t=Yn(e,t,n);break e}pt(e,t,r,n)}t=t.child}return t;case 5:return Uy(t),e===null&&qd(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Vd(r,i)?s=null:o!==null&&Vd(r,o)&&(t.flags|=32),m0(e,t),pt(e,t,s,n),t.child;case 6:return e===null&&qd(t),null;case 13:return v0(e,t,n);case 4:return ch(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=no(t,null,r,n):pt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dn(r,i),Sm(e,t,r,i,n);case 7:return pt(e,t,t.pendingProps,n),t.child;case 8:return pt(e,t,t.pendingProps.children,n),t.child;case 12:return pt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,fe(wa,r._currentValue),r._currentValue=s,o!==null)if(vn(o.value,s)){if(o.children===i.children&&!Tt.current){t=Yn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=Wn(-1,n&-n),a.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?a.next=a:(a.next=d.next,d.next=a),c.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Qd(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(A(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Qd(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}pt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Vi(t,n),i=nn(i),r=r(i),t.flags|=1,pt(e,t,r,n),t.child;case 14:return r=t.type,i=dn(r,t.pendingProps),i=dn(r.type,i),$m(e,t,r,i,n);case 15:return h0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dn(r,i),Ql(e,t),t.tag=1,It(r)?(e=!0,ya(t)):e=!1,Vi(t,n),u0(t,r,i),Yd(t,r,i,n),Zd(null,t,r,!0,e,n);case 19:return y0(e,t,n);case 22:return p0(e,t,n)}throw Error(A(156,t.tag))};function D0(e,t){return ly(e,t)}function pC(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Zt(e,t,n,r){return new pC(e,t,n,r)}function Sh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mC(e){if(typeof e=="function")return Sh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Hf)return 11;if(e===Uf)return 14}return 2}function Sr(e,t){var n=e.alternate;return n===null?(n=Zt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Kl(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Sh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case $i:return Yr(n.children,i,o,t);case Vf:s=8,i|=8;break;case xd:return e=Zt(12,n,t,i|2),e.elementType=xd,e.lanes=o,e;case wd:return e=Zt(13,n,t,i),e.elementType=wd,e.lanes=o,e;case kd:return e=Zt(19,n,t,i),e.elementType=kd,e.lanes=o,e;case Uv:return sc(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Vv:s=10;break e;case Hv:s=9;break e;case Hf:s=11;break e;case Uf:s=14;break e;case cr:s=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=Zt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Yr(e,t,n,r){return e=Zt(7,e,r,t),e.lanes=n,e}function sc(e,t,n,r){return e=Zt(22,e,r,t),e.elementType=Uv,e.lanes=n,e.stateNode={isHidden:!1},e}function Bu(e,t,n){return e=Zt(6,e,null,t),e.lanes=n,e}function Vu(e,t,n){return t=Zt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function gC(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ku(0),this.expirationTimes=ku(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ku(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function $h(e,t,n,r,i,o,s,l,a){return e=new gC(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Zt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(o),e}function vC(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(F0)}catch(e){console.error(e)}}F0(),Fv.exports=Ht;var dc=Fv.exports;const Il=Df(dc);var jm=dc;yd.createRoot=jm.createRoot,yd.hydrateRoot=jm.hydrateRoot;const j0=x.createContext({message:null,setMessage:e=>{}}),kC=({children:e})=>{const[t,n]=x.useState(null);return k.jsx(j0.Provider,{value:{message:t,setMessage:n},children:e})},z0=()=>x.useContext(j0),Os={black:"#000",white:"#fff"},vi={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},$n={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},yi={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},bi={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},xi={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},zo={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},CC={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 ii(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)continue;n[r]=e[r]}return n}function B0(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var $C=/^((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|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|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)-.*))$/,TC=B0(function(e){return $C.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function IC(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ye(vo,--Pt):0,so--,Le===10&&(so=1,hc--),Le}function zt(){return Le=Pt2||As(Le)>3?"":" "}function zC(e,t){for(;--t&&zt()&&!(Le<48||Le>102||Le>57&&Le<65||Le>70&&Le<97););return qs(e,Jl()+(t<6&&_n()==32&&zt()==32))}function hf(e){for(;zt();)switch(Le){case e:return Pt;case 34:case 39:e!==34&&e!==39&&hf(Le);break;case 40:e===41&&hf(e);break;case 92:zt();break}return Pt}function BC(e,t){for(;zt()&&e+Le!==57;)if(e+Le===84&&_n()===47)break;return"/*"+qs(t,Pt-1)+"*"+fc(e===47?e:zt())}function VC(e){for(;!As(_n());)zt();return qs(e,Pt)}function HC(e){return q0(ea("",null,null,null,[""],e=G0(e),0,[0],e))}function ea(e,t,n,r,i,o,s,l,a){for(var c=0,d=0,u=s,f=0,v=0,g=0,m=1,b=1,p=1,h=0,y="",w=i,C=o,$=r,T=y;b;)switch(g=h,h=zt()){case 40:if(g!=108&&Ye(T,u-1)==58){ff(T+=oe(Zl(h),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:T+=Zl(h);break;case 9:case 10:case 13:case 32:T+=jC(g);break;case 92:T+=zC(Jl()-1,7);continue;case 47:switch(_n()){case 42:case 47:El(UC(BC(zt(),Jl()),t,n),a);break;default:T+="/"}break;case 123*m:l[c++]=Tn(T)*p;case 125*m:case 59:case 0:switch(h){case 0:case 125:b=0;case 59+d:p==-1&&(T=oe(T,/\f/g,"")),v>0&&Tn(T)-u&&El(v>32?Bm(T+";",r,n,u-1):Bm(oe(T," ","")+";",r,n,u-2),a);break;case 59:T+=";";default:if(El($=zm(T,t,n,c,d,i,l,y,w=[],C=[],u),o),h===123)if(d===0)ea(T,t,$,$,w,o,u,l,C);else switch(f===99&&Ye(T,3)===110?100:f){case 100:case 108:case 109:case 115:ea(e,$,$,r&&El(zm(e,$,$,0,0,i,l,y,i,w=[],u),C),i,C,u,l,r?w:C);break;default:ea(T,$,$,$,[""],C,0,l,C)}}c=d=v=0,m=p=1,y=T="",u=s;break;case 58:u=1+Tn(T),v=g;default:if(m<1){if(h==123)--m;else if(h==125&&m++==0&&FC()==125)continue}switch(T+=fc(h),h*m){case 38:p=d>0?1:(T+="\f",-1);break;case 44:l[c++]=(Tn(T)-1)*p,p=1;break;case 64:_n()===45&&(T+=Zl(zt())),f=_n(),d=u=Tn(y=T+=VC(Jl())),h++;break;case 45:g===45&&Tn(T)==2&&(m=0)}}return o}function zm(e,t,n,r,i,o,s,l,a,c,d){for(var u=i-1,f=i===0?o:[""],v=Oh(f),g=0,m=0,b=0;g0?f[p]+" "+h:oe(h,/&\f/g,f[p])))&&(a[b++]=y);return pc(e,t,n,i===0?Rh:l,a,c,d)}function UC(e,t,n){return pc(e,t,n,V0,fc(NC()),_s(e,2,-2),0)}function Bm(e,t,n,r){return pc(e,t,n,Ph,_s(e,0,r),_s(e,r+1,-1),r)}function Ui(e,t){for(var n="",r=Oh(e),i=0;i6)switch(Ye(e,t+1)){case 109:if(Ye(e,t+4)!==45)break;case 102:return oe(e,/(.+:)(.+)-([^]+)/,"$1"+ie+"$2-$3$1"+_a+(Ye(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ff(e,"stretch")?Q0(oe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ye(e,t+1)!==115)break;case 6444:switch(Ye(e,Tn(e)-3-(~ff(e,"!important")&&10))){case 107:return oe(e,":",":"+ie)+e;case 101:return oe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ie+(Ye(e,14)===45?"inline-":"")+"box$3$1"+ie+"$2$3$1"+rt+"$2box$3")+e}break;case 5936:switch(Ye(e,t+11)){case 114:return ie+e+rt+oe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ie+e+rt+oe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ie+e+rt+oe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ie+e+rt+e+e}return e}var ZC=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Ph:t.return=Q0(t.value,t.length);break;case H0:return Ui([Bo(t,{value:oe(t.value,"@","@"+ie)})],i);case Rh:if(t.length)return LC(t.props,function(o){switch(MC(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ui([Bo(t,{props:[oe(o,/:(read-\w+)/,":"+_a+"$1")]})],i);case"::placeholder":return Ui([Bo(t,{props:[oe(o,/:(plac\w+)/,":"+ie+"input-$1")]}),Bo(t,{props:[oe(o,/:(plac\w+)/,":"+_a+"$1")]}),Bo(t,{props:[oe(o,/:(plac\w+)/,rt+"input-$1")]})],i)}return""})}},eS=[ZC],X0=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(m){var b=m.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||eS,o={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var b=m.getAttribute("data-emotion").split(" "),p=1;p<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[En]=t,e[Ss]=r,x0(e,t,!1,!1),t.stateNode=e;e:{switch(s=Od(n,r),n){case"dialog":pe("cancel",e),pe("close",e),i=r;break;case"iframe":case"object":case"embed":pe("load",e),i=r;break;case"video":case"audio":for(i=0;iso&&(t.flags|=128,r=!0,jo(o,!1),t.lanes=4194304)}else{if(!r)if(e=Sa(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),jo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!ve)return nt(t),null}else 2*_e()-o.renderingStartTime>so&&n!==1073741824&&(t.flags|=128,r=!0,jo(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=_e(),t.sibling=null,n=Ce.current,fe(Ce,r?n&1|2:n&1),t):(nt(t),null);case 22:case 23:return Ch(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Mt&1073741824&&(nt(t),t.subtreeFlags&6&&(t.flags|=8192)):nt(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function oC(e,t){switch(rh(t),t.tag){case 1:return It(t.type)&&va(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return io(),me(Tt),me(st),fh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return dh(t),null;case 13:if(me(Ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));no()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(Ce),null;case 4:return io(),null;case 10:return lh(t.type._context),null;case 22:case 23:return Ch(),null;case 24:return null;default:return null}}var Sl=!1,it=!1,sC=typeof WeakSet=="function"?WeakSet:Set,j=null;function Di(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Pe(e,t,r)}else n.current=null}function of(e,t,n){try{n()}catch(r){Pe(e,t,r)}}var Pm=!1;function lC(e,t){if(Bd=ha,e=Iy(),th(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,c=0,d=0,u=e,f=null;t:for(;;){for(var v;u!==n||i!==0&&u.nodeType!==3||(l=s+i),u!==o||r!==0&&u.nodeType!==3||(a=s+r),u.nodeType===3&&(s+=u.nodeValue.length),(v=u.firstChild)!==null;)f=u,u=v;for(;;){if(u===e)break t;if(f===n&&++c===i&&(l=s),f===o&&++d===r&&(a=s),(v=u.nextSibling)!==null)break;u=f,f=u.parentNode}u=v}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vd={focusedElem:e,selectionRange:n},ha=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var m=g.memoizedProps,b=g.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?m:dn(t.type,m),b);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(w){Pe(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return g=Pm,Pm=!1,g}function os(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&of(t,n,o)}i=i.next}while(i!==r)}}function ic(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function sf(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function C0(e){var t=e.alternate;t!==null&&(e.alternate=null,C0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[En],delete t[Ss],delete t[Wd],delete t[Hk],delete t[Uk])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function S0(e){return e.tag===5||e.tag===3||e.tag===4}function Om(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||S0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function lf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ga));else if(r!==4&&(e=e.child,e!==null))for(lf(e,t,n),e=e.sibling;e!==null;)lf(e,t,n),e=e.sibling}function af(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(af(e,t,n),e=e.sibling;e!==null;)af(e,t,n),e=e.sibling}var Xe=null,fn=!1;function rr(e,t,n){for(n=n.child;n!==null;)$0(e,t,n),n=n.sibling}function $0(e,t,n){if(Pn&&typeof Pn.onCommitFiberUnmount=="function")try{Pn.onCommitFiberUnmount(Ya,n)}catch{}switch(n.tag){case 5:it||Di(n,t);case 6:var r=Xe,i=fn;Xe=null,rr(e,t,n),Xe=r,fn=i,Xe!==null&&(fn?(e=Xe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Xe.removeChild(n.stateNode));break;case 18:Xe!==null&&(fn?(e=Xe,n=n.stateNode,e.nodeType===8?Du(e.parentNode,n):e.nodeType===1&&Du(e,n),bs(e)):Du(Xe,n.stateNode));break;case 4:r=Xe,i=fn,Xe=n.stateNode.containerInfo,fn=!0,rr(e,t,n),Xe=r,fn=i;break;case 0:case 11:case 14:case 15:if(!it&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&of(n,t,s),i=i.next}while(i!==r)}rr(e,t,n);break;case 1:if(!it&&(Di(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Pe(n,t,l)}rr(e,t,n);break;case 21:rr(e,t,n);break;case 22:n.mode&1?(it=(r=it)||n.memoizedState!==null,rr(e,t,n),it=r):rr(e,t,n);break;default:rr(e,t,n)}}function _m(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new sC),t.forEach(function(r){var i=gC.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function un(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=_e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*cC(r/1960))-r,10e?16:e,mr===null)var r=!1;else{if(e=mr,mr=null,Ra=0,ne&6)throw Error(A(331));var i=ne;for(ne|=4,j=e.current;j!==null;){var o=j,s=o.child;if(j.flags&16){var l=o.deletions;if(l!==null){for(var a=0;a_e()-wh?Xr(e,0):xh|=n),Et(e,t)}function A0(e,t){t===0&&(e.mode&1?(t=ml,ml<<=1,!(ml&130023424)&&(ml=4194304)):t=1);var n=gt();e=Xn(e,t),e!==null&&(Hs(e,t,n),Et(e,n))}function mC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),A0(e,n)}function gC(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(A(314))}r!==null&&r.delete(t),A0(e,n)}var D0;D0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Tt.current)$t=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return $t=!1,rC(e,t,n);$t=!!(e.flags&131072)}else $t=!1,ve&&t.flags&1048576&&Fy(t,xa,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ql(e,t),e=t.pendingProps;var i=to(t,st.current);Vi(t,n),i=ph(null,t,r,e,i,n);var o=mh();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,It(r)?(o=!0,ya(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ch(t),i.updater=rc,t.stateNode=i,i._reactInternals=t,Kd(t,r,e,n),t=ef(null,t,r,!0,o,n)):(t.tag=0,ve&&o&&nh(t),ht(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ql(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=yC(r),e=dn(r,e),i){case 0:t=Zd(null,t,r,e,n);break e;case 1:t=Im(null,t,r,e,n);break e;case 11:t=$m(null,t,r,e,n);break e;case 14:t=Tm(null,t,r,dn(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dn(r,i),Zd(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dn(r,i),Im(e,t,r,i,n);case 3:e:{if(v0(t),e===null)throw Error(A(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Uy(e,t),Ca(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=oo(Error(A(423)),t),t=Em(e,t,r,n,i);break e}else if(r!==i){i=oo(Error(A(424)),t),t=Em(e,t,r,n,i);break e}else for(Nt=xr(t.stateNode.containerInfo.firstChild),jt=t,ve=!0,hn=null,n=Vy(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(no(),r===i){t=Yn(e,t,n);break e}ht(e,t,r,n)}t=t.child}return t;case 5:return Wy(t),e===null&&Qd(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Hd(r,i)?s=null:o!==null&&Hd(r,o)&&(t.flags|=32),g0(e,t),ht(e,t,s,n),t.child;case 6:return e===null&&Qd(t),null;case 13:return y0(e,t,n);case 4:return uh(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ro(t,null,r,n):ht(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dn(r,i),$m(e,t,r,i,n);case 7:return ht(e,t,t.pendingProps,n),t.child;case 8:return ht(e,t,t.pendingProps.children,n),t.child;case 12:return ht(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,fe(wa,r._currentValue),r._currentValue=s,o!==null)if(vn(o.value,s)){if(o.children===i.children&&!Tt.current){t=Yn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=Wn(-1,n&-n),a.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?a.next=a:(a.next=d.next,d.next=a),c.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Xd(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(A(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Xd(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}ht(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Vi(t,n),i=nn(i),r=r(i),t.flags|=1,ht(e,t,r,n),t.child;case 14:return r=t.type,i=dn(r,t.pendingProps),i=dn(r.type,i),Tm(e,t,r,i,n);case 15:return p0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dn(r,i),Ql(e,t),t.tag=1,It(r)?(e=!0,ya(t)):e=!1,Vi(t,n),d0(t,r,i),Kd(t,r,i,n),ef(null,t,r,!0,e,n);case 19:return b0(e,t,n);case 22:return m0(e,t,n)}throw Error(A(156,t.tag))};function M0(e,t){return ay(e,t)}function vC(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Zt(e,t,n,r){return new vC(e,t,n,r)}function $h(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yC(e){if(typeof e=="function")return $h(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Uf)return 11;if(e===Wf)return 14}return 2}function Sr(e,t){var n=e.alternate;return n===null?(n=Zt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Kl(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")$h(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case $i:return Yr(n.children,i,o,t);case Hf:s=8,i|=8;break;case wd:return e=Zt(12,n,t,i|2),e.elementType=wd,e.lanes=o,e;case kd:return e=Zt(13,n,t,i),e.elementType=kd,e.lanes=o,e;case Cd:return e=Zt(19,n,t,i),e.elementType=Cd,e.lanes=o,e;case Wv:return sc(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Hv:s=10;break e;case Uv:s=9;break e;case Uf:s=11;break e;case Wf:s=14;break e;case cr:s=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=Zt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Yr(e,t,n,r){return e=Zt(7,e,r,t),e.lanes=n,e}function sc(e,t,n,r){return e=Zt(22,e,r,t),e.elementType=Wv,e.lanes=n,e.stateNode={isHidden:!1},e}function Vu(e,t,n){return e=Zt(6,e,null,t),e.lanes=n,e}function Hu(e,t,n){return t=Zt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function bC(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Cu(0),this.expirationTimes=Cu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cu(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Th(e,t,n,r,i,o,s,l,a){return e=new bC(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Zt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ch(o),e}function xC(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(j0)}catch(e){console.error(e)}}j0(),jv.exports=Ht;var dc=jv.exports;const Il=Mf(dc);var zm=dc;bd.createRoot=zm.createRoot,bd.hydrateRoot=zm.hydrateRoot;const z0=x.createContext({message:null,setMessage:e=>{}}),$C=({children:e})=>{const[t,n]=x.useState(null);return k.jsx(z0.Provider,{value:{message:t,setMessage:n},children:e})},B0=()=>x.useContext(z0),Os={black:"#000",white:"#fff"},vi={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},$n={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},yi={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},bi={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},xi={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Bo={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},TC={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 ii(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)continue;n[r]=e[r]}return n}function V0(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var EC=/^((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|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|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)-.*))$/,RC=V0(function(e){return EC.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function PC(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ye(yo,--Pt):0,lo--,Le===10&&(lo=1,hc--),Le}function zt(){return Le=Pt2||As(Le)>3?"":" "}function HC(e,t){for(;--t&&zt()&&!(Le<48||Le>102||Le>57&&Le<65||Le>70&&Le<97););return qs(e,Jl()+(t<6&&_n()==32&&zt()==32))}function pf(e){for(;zt();)switch(Le){case e:return Pt;case 34:case 39:e!==34&&e!==39&&pf(Le);break;case 40:e===41&&pf(e);break;case 92:zt();break}return Pt}function UC(e,t){for(;zt()&&e+Le!==57;)if(e+Le===84&&_n()===47)break;return"/*"+qs(t,Pt-1)+"*"+fc(e===47?e:zt())}function WC(e){for(;!As(_n());)zt();return qs(e,Pt)}function GC(e){return Q0(ea("",null,null,null,[""],e=q0(e),0,[0],e))}function ea(e,t,n,r,i,o,s,l,a){for(var c=0,d=0,u=s,f=0,v=0,g=0,m=1,b=1,p=1,h=0,y="",w=i,C=o,$=r,I=y;b;)switch(g=h,h=zt()){case 40:if(g!=108&&Ye(I,u-1)==58){hf(I+=oe(Zl(h),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:I+=Zl(h);break;case 9:case 10:case 13:case 32:I+=VC(g);break;case 92:I+=HC(Jl()-1,7);continue;case 47:switch(_n()){case 42:case 47:El(qC(UC(zt(),Jl()),t,n),a);break;default:I+="/"}break;case 123*m:l[c++]=Tn(I)*p;case 125*m:case 59:case 0:switch(h){case 0:case 125:b=0;case 59+d:p==-1&&(I=oe(I,/\f/g,"")),v>0&&Tn(I)-u&&El(v>32?Vm(I+";",r,n,u-1):Vm(oe(I," ","")+";",r,n,u-2),a);break;case 59:I+=";";default:if(El($=Bm(I,t,n,c,d,i,l,y,w=[],C=[],u),o),h===123)if(d===0)ea(I,t,$,$,w,o,u,l,C);else switch(f===99&&Ye(I,3)===110?100:f){case 100:case 108:case 109:case 115:ea(e,$,$,r&&El(Bm(e,$,$,0,0,i,l,y,i,w=[],u),C),i,C,u,l,r?w:C);break;default:ea(I,$,$,$,[""],C,0,l,C)}}c=d=v=0,m=p=1,y=I="",u=s;break;case 58:u=1+Tn(I),v=g;default:if(m<1){if(h==123)--m;else if(h==125&&m++==0&&BC()==125)continue}switch(I+=fc(h),h*m){case 38:p=d>0?1:(I+="\f",-1);break;case 44:l[c++]=(Tn(I)-1)*p,p=1;break;case 64:_n()===45&&(I+=Zl(zt())),f=_n(),d=u=Tn(y=I+=WC(Jl())),h++;break;case 45:g===45&&Tn(I)==2&&(m=0)}}return o}function Bm(e,t,n,r,i,o,s,l,a,c,d){for(var u=i-1,f=i===0?o:[""],v=_h(f),g=0,m=0,b=0;g0?f[p]+" "+h:oe(h,/&\f/g,f[p])))&&(a[b++]=y);return pc(e,t,n,i===0?Ph:l,a,c,d)}function qC(e,t,n){return pc(e,t,n,H0,fc(zC()),_s(e,2,-2),0)}function Vm(e,t,n,r){return pc(e,t,n,Oh,_s(e,0,r),_s(e,r+1,-1),r)}function Ui(e,t){for(var n="",r=_h(e),i=0;i6)switch(Ye(e,t+1)){case 109:if(Ye(e,t+4)!==45)break;case 102:return oe(e,/(.+:)(.+)-([^]+)/,"$1"+ie+"$2-$3$1"+_a+(Ye(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~hf(e,"stretch")?X0(oe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ye(e,t+1)!==115)break;case 6444:switch(Ye(e,Tn(e)-3-(~hf(e,"!important")&&10))){case 107:return oe(e,":",":"+ie)+e;case 101:return oe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ie+(Ye(e,14)===45?"inline-":"")+"box$3$1"+ie+"$2$3$1"+rt+"$2box$3")+e}break;case 5936:switch(Ye(e,t+11)){case 114:return ie+e+rt+oe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ie+e+rt+oe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ie+e+rt+oe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ie+e+rt+e+e}return e}var nS=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Oh:t.return=X0(t.value,t.length);break;case U0:return Ui([Vo(t,{value:oe(t.value,"@","@"+ie)})],i);case Ph:if(t.length)return jC(t.props,function(o){switch(FC(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ui([Vo(t,{props:[oe(o,/:(read-\w+)/,":"+_a+"$1")]})],i);case"::placeholder":return Ui([Vo(t,{props:[oe(o,/:(plac\w+)/,":"+ie+"input-$1")]}),Vo(t,{props:[oe(o,/:(plac\w+)/,":"+_a+"$1")]}),Vo(t,{props:[oe(o,/:(plac\w+)/,rt+"input-$1")]})],i)}return""})}},rS=[nS],Y0=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(m){var b=m.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||rS,o={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var b=m.getAttribute("data-emotion").split(" "),p=1;p=4;++r,i-=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(i){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 fS={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,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},hS=/[A-Z]|^ms/g,pS=/_EMO_([^_]+?)_([^]*?)_EMO_/g,nb=function(t){return t.charCodeAt(1)===45},Hm=function(t){return t!=null&&typeof t!="boolean"},Hu=B0(function(e){return nb(e)?e:e.replace(hS,"-$&").toLowerCase()}),Um=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(pS,function(r,i,o){return In={name:i,styles:o,next:In},i})}return fS[t]!==1&&!nb(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ds(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return In={name:n.name,styles:n.styles,next:In},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)In={name:r.name,styles:r.styles,next:In},r=r.next;var i=n.styles+";";return i}return mS(e,t,n)}case"function":{if(e!==void 0){var o=In,s=n(e);return In=o,Ds(e,t,s)}break}}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function mS(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?xS:wS},Xm=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},kS=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return eb(n,r,i),vS(function(){return tb(n,r,i)}),null},CS=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var l=Xm(t,n,r),a=l||Qm(i),c=!a("as");return function(){var d=arguments,u=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&u.push("label:"+o+";"),d[0]==null||d[0].raw===void 0)u.push.apply(u,d);else{u.push(d[0][0]);for(var f=d.length,v=1;vt(OS(i)?n:i):t;return k.jsx(bS,{styles:r})}function db(e,t){return pf(e,t)}const _S=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},AS=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:ub,StyledEngineProvider:PS,ThemeContext:Qs,css:$c,default:db,internal_processStyles:_S,keyframes:yo},Symbol.toStringTag,{value:"Module"}));function hr(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 fb(e){if(!hr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=fb(e[n])}),t}function An(e,t,n={clone:!0}){const r=n.clone?I({},e):e;return hr(e)&&hr(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(hr(t[i])&&i in e&&hr(e[i])?r[i]=An(e[i],t[i],n):n.clone?r[i]=hr(t[i])?fb(t[i]):t[i]:r[i]=t[i])}),r}const DS=Object.freeze(Object.defineProperty({__proto__:null,default:An,isPlainObject:hr},Symbol.toStringTag,{value:"Module"})),MS=["values","unit","step"],LS=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)=>I({},n,{[r.key]:r.val}),{})};function hb(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=K(e,MS),o=LS(t),s=Object.keys(o);function l(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function a(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function c(f,v){const g=s.indexOf(v);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:v)-r/100}${n})`}function d(f){return s.indexOf(f)+1`@media (min-width:${Lh[e]}px)`};function Kn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||Km;return t.reduce((s,l,a)=>(s[o.up(o.keys[a])]=n(t[a]),s),{})}if(typeof t=="object"){const o=r.breakpoints||Km;return Object.keys(t).reduce((s,l)=>{if(Object.keys(o.values||Lh).indexOf(l)!==-1){const a=o.up(l);s[a]=n(t[l],l)}else{const a=l;s[a]=t[a]}return s},{})}return n(t)}function FS(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function jS(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function X(e){if(typeof e!="string")throw new Error(ii(7));return e.charAt(0).toUpperCase()+e.slice(1)}const zS=Object.freeze(Object.defineProperty({__proto__:null,default:X},Symbol.toStringTag,{value:"Module"}));function lo(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function Aa(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=lo(e,n)||r,t&&(i=t(i,r,e)),i}function De(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=s=>{if(s[t]==null)return null;const l=s[t],a=s.theme,c=lo(a,r)||{};return Kn(s,l,u=>{let f=Aa(c,i,u);return u===f&&typeof u=="string"&&(f=Aa(c,i,`${t}${u==="default"?"":X(u)}`,u)),n===!1?f:{[n]:f}})};return o.propTypes={},o.filterProps=[t],o}function BS(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const VS={m:"margin",p:"padding"},HS={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Jm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},US=BS(e=>{if(e.length>2)if(Jm[e])e=Jm[e];else return[e];const[t,n]=e.split(""),r=VS[t],i=HS[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),Nh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Fh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Nh,...Fh];function Xs(e,t,n,r){var i;const o=(i=lo(e,t,!1))!=null?i:n;return typeof o=="number"?s=>typeof s=="string"?s:o*s:Array.isArray(o)?s=>typeof s=="string"?s:o[s]:typeof o=="function"?o:()=>{}}function pb(e){return Xs(e,"spacing",8)}function Ys(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function WS(e,t){return n=>e.reduce((r,i)=>(r[i]=Ys(t,n),r),{})}function GS(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=US(n),o=WS(i,r),s=e[n];return Kn(e,s,o)}function mb(e,t){const n=pb(e.theme);return Object.keys(e).map(r=>GS(e,t,r,n)).reduce(ls,{})}function Ee(e){return mb(e,Nh)}Ee.propTypes={};Ee.filterProps=Nh;function Re(e){return mb(e,Fh)}Re.propTypes={};Re.filterProps=Fh;function qS(e=8){if(e.mui)return e;const t=pb({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Tc(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?ls(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Kt(e){return typeof e!="number"?e:`${e}px solid`}function ln(e,t){return De({prop:e,themeKey:"borders",transform:t})}const QS=ln("border",Kt),XS=ln("borderTop",Kt),YS=ln("borderRight",Kt),KS=ln("borderBottom",Kt),JS=ln("borderLeft",Kt),ZS=ln("borderColor"),e$=ln("borderTopColor"),t$=ln("borderRightColor"),n$=ln("borderBottomColor"),r$=ln("borderLeftColor"),i$=ln("outline",Kt),o$=ln("outlineColor"),Ic=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Xs(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ys(t,r)});return Kn(e,e.borderRadius,n)}return null};Ic.propTypes={};Ic.filterProps=["borderRadius"];Tc(QS,XS,YS,KS,JS,ZS,e$,t$,n$,r$,Ic,i$,o$);const Ec=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Xs(e.theme,"spacing",8),n=r=>({gap:Ys(t,r)});return Kn(e,e.gap,n)}return null};Ec.propTypes={};Ec.filterProps=["gap"];const Rc=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Xs(e.theme,"spacing",8),n=r=>({columnGap:Ys(t,r)});return Kn(e,e.columnGap,n)}return null};Rc.propTypes={};Rc.filterProps=["columnGap"];const Pc=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Xs(e.theme,"spacing",8),n=r=>({rowGap:Ys(t,r)});return Kn(e,e.rowGap,n)}return null};Pc.propTypes={};Pc.filterProps=["rowGap"];const s$=De({prop:"gridColumn"}),l$=De({prop:"gridRow"}),a$=De({prop:"gridAutoFlow"}),c$=De({prop:"gridAutoColumns"}),u$=De({prop:"gridAutoRows"}),d$=De({prop:"gridTemplateColumns"}),f$=De({prop:"gridTemplateRows"}),h$=De({prop:"gridTemplateAreas"}),p$=De({prop:"gridArea"});Tc(Ec,Rc,Pc,s$,l$,a$,c$,u$,d$,f$,h$,p$);function Wi(e,t){return t==="grey"?t:e}const m$=De({prop:"color",themeKey:"palette",transform:Wi}),g$=De({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Wi}),v$=De({prop:"backgroundColor",themeKey:"palette",transform:Wi});Tc(m$,g$,v$);function Lt(e){return e<=1&&e!==0?`${e*100}%`:e}const y$=De({prop:"width",transform:Lt}),jh=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const o=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Lh[n];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Lt(n)}};return Kn(e,e.maxWidth,t)}return null};jh.filterProps=["maxWidth"];const b$=De({prop:"minWidth",transform:Lt}),x$=De({prop:"height",transform:Lt}),w$=De({prop:"maxHeight",transform:Lt}),k$=De({prop:"minHeight",transform:Lt});De({prop:"size",cssProperty:"width",transform:Lt});De({prop:"size",cssProperty:"height",transform:Lt});const C$=De({prop:"boxSizing"});Tc(y$,jh,b$,x$,w$,k$,C$);const Ks={border:{themeKey:"borders",transform:Kt},borderTop:{themeKey:"borders",transform:Kt},borderRight:{themeKey:"borders",transform:Kt},borderBottom:{themeKey:"borders",transform:Kt},borderLeft:{themeKey:"borders",transform:Kt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Kt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ic},color:{themeKey:"palette",transform:Wi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Wi},backgroundColor:{themeKey:"palette",transform:Wi},p:{style:Re},pt:{style:Re},pr:{style:Re},pb:{style:Re},pl:{style:Re},px:{style:Re},py:{style:Re},padding:{style:Re},paddingTop:{style:Re},paddingRight:{style:Re},paddingBottom:{style:Re},paddingLeft:{style:Re},paddingX:{style:Re},paddingY:{style:Re},paddingInline:{style:Re},paddingInlineStart:{style:Re},paddingInlineEnd:{style:Re},paddingBlock:{style:Re},paddingBlockStart:{style:Re},paddingBlockEnd:{style:Re},m:{style:Ee},mt:{style:Ee},mr:{style:Ee},mb:{style:Ee},ml:{style:Ee},mx:{style:Ee},my:{style:Ee},margin:{style:Ee},marginTop:{style:Ee},marginRight:{style:Ee},marginBottom:{style:Ee},marginLeft:{style:Ee},marginX:{style:Ee},marginY:{style:Ee},marginInline:{style:Ee},marginInlineStart:{style:Ee},marginInlineEnd:{style:Ee},marginBlock:{style:Ee},marginBlockStart:{style:Ee},marginBlockEnd:{style:Ee},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:Ec},rowGap:{style:Pc},columnGap:{style:Rc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Lt},maxWidth:{style:jh},minWidth:{transform:Lt},height:{transform:Lt},maxHeight:{transform:Lt},minHeight:{transform:Lt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function S$(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function $$(e,t){return typeof e=="function"?e(t):e}function gb(){function e(n,r,i,o){const s={[n]:r,theme:i},l=o[n];if(!l)return{[n]:r};const{cssProperty:a=n,themeKey:c,transform:d,style:u}=l;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const f=lo(i,c)||{};return u?u(s):Kn(s,r,g=>{let m=Aa(f,d,g);return g===m&&typeof g=="string"&&(m=Aa(f,d,`${n}${g==="default"?"":X(g)}`,g)),a===!1?m:{[a]:m}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const s=(r=o.unstable_sxConfig)!=null?r:Ks;function l(a){let c=a;if(typeof a=="function")c=a(o);else if(typeof a!="object")return a;if(!c)return null;const d=FS(o.breakpoints),u=Object.keys(d);let f=d;return Object.keys(c).forEach(v=>{const g=$$(c[v],o);if(g!=null)if(typeof g=="object")if(s[v])f=ls(f,e(v,g,o,s));else{const m=Kn({theme:o},g,b=>({[v]:b}));S$(m,g)?f[v]=t({sx:g,theme:o}):f=ls(f,m)}else f=ls(f,e(v,g,o,s))}),jS(u,f)}return Array.isArray(i)?i.map(l):l(i)}return t}const Js=gb();Js.filterProps=["sx"];function vb(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const T$=["breakpoints","palette","spacing","shape"];function Oc(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,s=K(e,T$),l=hb(n),a=qS(i);let c=An({breakpoints:l,direction:"ltr",components:{},palette:I({mode:"light"},r),spacing:a,shape:I({},NS,o)},s);return c.applyStyles=vb,c=t.reduce((d,u)=>An(d,u),c),c.unstable_sxConfig=I({},Ks,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(u){return Js({sx:u,theme:this})},c}const I$=Object.freeze(Object.defineProperty({__proto__:null,default:Oc,private_createBreakpoints:hb,unstable_applyStyles:vb},Symbol.toStringTag,{value:"Module"}));function E$(e){return Object.keys(e).length===0}function yb(e=null){const t=x.useContext(Qs);return!t||E$(t)?e:t}const R$=Oc();function _c(e=R$){return yb(e)}function P$({styles:e,themeId:t,defaultTheme:n={}}){const r=_c(n),i=typeof e=="function"?e(t&&r[t]||r):e;return k.jsx(ub,{styles:i})}const O$=["sx"],_$=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Ks;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function zh(e){const{sx:t}=e,n=K(e,O$),{systemProps:r,otherProps:i}=_$(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...s)=>{const l=t(...s);return hr(l)?I({},r,l):r}:o=I({},r,t),I({},i,{sx:o})}const A$=Object.freeze(Object.defineProperty({__proto__:null,default:Js,extendSxProp:zh,unstable_createStyleFunctionSx:gb,unstable_defaultSxConfig:Ks},Symbol.toStringTag,{value:"Module"})),Zm=e=>e,D$=()=>{let e=Zm;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Zm}}},Bh=D$();function bb(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;tl!=="theme"&&l!=="sx"&&l!=="as"})(Js);return x.forwardRef(function(a,c){const d=_c(n),u=zh(a),{className:f,component:v="div"}=u,g=K(u,M$);return k.jsx(o,I({as:v,ref:c,className:le(f,i?i(r):r),theme:t&&d[t]||d},g))})}const xb={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 Ge(e,t,n="Mui"){const r=xb[t];return r?`${n}-${r}`:`${Bh.generate(e)}-${t}`}function ze(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Ge(e,i,n)}),r}var wb={exports:{}},de={};/** + */var We=typeof Symbol=="function"&&Symbol.for,Ah=We?Symbol.for("react.element"):60103,Dh=We?Symbol.for("react.portal"):60106,mc=We?Symbol.for("react.fragment"):60107,gc=We?Symbol.for("react.strict_mode"):60108,vc=We?Symbol.for("react.profiler"):60114,yc=We?Symbol.for("react.provider"):60109,bc=We?Symbol.for("react.context"):60110,Mh=We?Symbol.for("react.async_mode"):60111,xc=We?Symbol.for("react.concurrent_mode"):60111,wc=We?Symbol.for("react.forward_ref"):60112,kc=We?Symbol.for("react.suspense"):60113,iS=We?Symbol.for("react.suspense_list"):60120,Cc=We?Symbol.for("react.memo"):60115,Sc=We?Symbol.for("react.lazy"):60116,oS=We?Symbol.for("react.block"):60121,sS=We?Symbol.for("react.fundamental"):60117,lS=We?Symbol.for("react.responder"):60118,aS=We?Symbol.for("react.scope"):60119;function Wt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ah:switch(e=e.type,e){case Mh:case xc:case mc:case vc:case gc:case kc:return e;default:switch(e=e&&e.$$typeof,e){case bc:case wc:case Sc:case Cc:case yc:return e;default:return t}}case Dh:return t}}}function J0(e){return Wt(e)===xc}ue.AsyncMode=Mh;ue.ConcurrentMode=xc;ue.ContextConsumer=bc;ue.ContextProvider=yc;ue.Element=Ah;ue.ForwardRef=wc;ue.Fragment=mc;ue.Lazy=Sc;ue.Memo=Cc;ue.Portal=Dh;ue.Profiler=vc;ue.StrictMode=gc;ue.Suspense=kc;ue.isAsyncMode=function(e){return J0(e)||Wt(e)===Mh};ue.isConcurrentMode=J0;ue.isContextConsumer=function(e){return Wt(e)===bc};ue.isContextProvider=function(e){return Wt(e)===yc};ue.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ah};ue.isForwardRef=function(e){return Wt(e)===wc};ue.isFragment=function(e){return Wt(e)===mc};ue.isLazy=function(e){return Wt(e)===Sc};ue.isMemo=function(e){return Wt(e)===Cc};ue.isPortal=function(e){return Wt(e)===Dh};ue.isProfiler=function(e){return Wt(e)===vc};ue.isStrictMode=function(e){return Wt(e)===gc};ue.isSuspense=function(e){return Wt(e)===kc};ue.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===mc||e===xc||e===vc||e===gc||e===kc||e===iS||typeof e=="object"&&e!==null&&(e.$$typeof===Sc||e.$$typeof===Cc||e.$$typeof===yc||e.$$typeof===bc||e.$$typeof===wc||e.$$typeof===sS||e.$$typeof===lS||e.$$typeof===aS||e.$$typeof===oS)};ue.typeOf=Wt;K0.exports=ue;var cS=K0.exports,Z0=cS,uS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},dS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},eb={};eb[Z0.ForwardRef]=uS;eb[Z0.Memo]=dS;var fS=!0;function hS(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var tb=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||fS===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},nb=function(t,n,r){tb(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function pS(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=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(i){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 mS={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,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},gS=/[A-Z]|^ms/g,vS=/_EMO_([^_]+?)_([^]*?)_EMO_/g,rb=function(t){return t.charCodeAt(1)===45},Um=function(t){return t!=null&&typeof t!="boolean"},Uu=V0(function(e){return rb(e)?e:e.replace(gS,"-$&").toLowerCase()}),Wm=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(vS,function(r,i,o){return In={name:i,styles:o,next:In},i})}return mS[t]!==1&&!rb(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ds(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return In={name:n.name,styles:n.styles,next:In},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)In={name:r.name,styles:r.styles,next:In},r=r.next;var i=n.styles+";";return i}return yS(e,t,n)}case"function":{if(e!==void 0){var o=In,s=n(e);return In=o,Ds(e,t,s)}break}}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function yS(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?CS:SS},Ym=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},$S=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return tb(n,r,i),xS(function(){return nb(n,r,i)}),null},TS=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var l=Ym(t,n,r),a=l||Xm(i),c=!a("as");return function(){var d=arguments,u=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&u.push("label:"+o+";"),d[0]==null||d[0].raw===void 0)u.push.apply(u,d);else{u.push(d[0][0]);for(var f=d.length,v=1;vt(DS(i)?n:i):t;return k.jsx(kS,{styles:r})}function fb(e,t){return mf(e,t)}const MS=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},LS=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:db,StyledEngineProvider:AS,ThemeContext:Qs,css:$c,default:fb,internal_processStyles:MS,keyframes:bo},Symbol.toStringTag,{value:"Module"}));function hr(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 hb(e){if(!hr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=hb(e[n])}),t}function An(e,t,n={clone:!0}){const r=n.clone?T({},e):e;return hr(e)&&hr(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(hr(t[i])&&i in e&&hr(e[i])?r[i]=An(e[i],t[i],n):n.clone?r[i]=hr(t[i])?hb(t[i]):t[i]:r[i]=t[i])}),r}const NS=Object.freeze(Object.defineProperty({__proto__:null,default:An,isPlainObject:hr},Symbol.toStringTag,{value:"Module"})),FS=["values","unit","step"],jS=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)=>T({},n,{[r.key]:r.val}),{})};function pb(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=K(e,FS),o=jS(t),s=Object.keys(o);function l(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function a(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function c(f,v){const g=s.indexOf(v);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:v)-r/100}${n})`}function d(f){return s.indexOf(f)+1`@media (min-width:${Nh[e]}px)`};function Kn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||Jm;return t.reduce((s,l,a)=>(s[o.up(o.keys[a])]=n(t[a]),s),{})}if(typeof t=="object"){const o=r.breakpoints||Jm;return Object.keys(t).reduce((s,l)=>{if(Object.keys(o.values||Nh).indexOf(l)!==-1){const a=o.up(l);s[a]=n(t[l],l)}else{const a=l;s[a]=t[a]}return s},{})}return n(t)}function BS(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function VS(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function X(e){if(typeof e!="string")throw new Error(ii(7));return e.charAt(0).toUpperCase()+e.slice(1)}const HS=Object.freeze(Object.defineProperty({__proto__:null,default:X},Symbol.toStringTag,{value:"Module"}));function ao(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function Aa(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=ao(e,n)||r,t&&(i=t(i,r,e)),i}function De(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=s=>{if(s[t]==null)return null;const l=s[t],a=s.theme,c=ao(a,r)||{};return Kn(s,l,u=>{let f=Aa(c,i,u);return u===f&&typeof u=="string"&&(f=Aa(c,i,`${t}${u==="default"?"":X(u)}`,u)),n===!1?f:{[n]:f}})};return o.propTypes={},o.filterProps=[t],o}function US(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const WS={m:"margin",p:"padding"},GS={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Zm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},qS=US(e=>{if(e.length>2)if(Zm[e])e=Zm[e];else return[e];const[t,n]=e.split(""),r=WS[t],i=GS[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),Fh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],jh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Fh,...jh];function Xs(e,t,n,r){var i;const o=(i=ao(e,t,!1))!=null?i:n;return typeof o=="number"?s=>typeof s=="string"?s:o*s:Array.isArray(o)?s=>typeof s=="string"?s:o[s]:typeof o=="function"?o:()=>{}}function mb(e){return Xs(e,"spacing",8)}function Ys(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function QS(e,t){return n=>e.reduce((r,i)=>(r[i]=Ys(t,n),r),{})}function XS(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=qS(n),o=QS(i,r),s=e[n];return Kn(e,s,o)}function gb(e,t){const n=mb(e.theme);return Object.keys(e).map(r=>XS(e,t,r,n)).reduce(as,{})}function Ee(e){return gb(e,Fh)}Ee.propTypes={};Ee.filterProps=Fh;function Re(e){return gb(e,jh)}Re.propTypes={};Re.filterProps=jh;function YS(e=8){if(e.mui)return e;const t=mb({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Tc(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?as(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Kt(e){return typeof e!="number"?e:`${e}px solid`}function ln(e,t){return De({prop:e,themeKey:"borders",transform:t})}const KS=ln("border",Kt),JS=ln("borderTop",Kt),ZS=ln("borderRight",Kt),e$=ln("borderBottom",Kt),t$=ln("borderLeft",Kt),n$=ln("borderColor"),r$=ln("borderTopColor"),i$=ln("borderRightColor"),o$=ln("borderBottomColor"),s$=ln("borderLeftColor"),l$=ln("outline",Kt),a$=ln("outlineColor"),Ic=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Xs(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ys(t,r)});return Kn(e,e.borderRadius,n)}return null};Ic.propTypes={};Ic.filterProps=["borderRadius"];Tc(KS,JS,ZS,e$,t$,n$,r$,i$,o$,s$,Ic,l$,a$);const Ec=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Xs(e.theme,"spacing",8),n=r=>({gap:Ys(t,r)});return Kn(e,e.gap,n)}return null};Ec.propTypes={};Ec.filterProps=["gap"];const Rc=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Xs(e.theme,"spacing",8),n=r=>({columnGap:Ys(t,r)});return Kn(e,e.columnGap,n)}return null};Rc.propTypes={};Rc.filterProps=["columnGap"];const Pc=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Xs(e.theme,"spacing",8),n=r=>({rowGap:Ys(t,r)});return Kn(e,e.rowGap,n)}return null};Pc.propTypes={};Pc.filterProps=["rowGap"];const c$=De({prop:"gridColumn"}),u$=De({prop:"gridRow"}),d$=De({prop:"gridAutoFlow"}),f$=De({prop:"gridAutoColumns"}),h$=De({prop:"gridAutoRows"}),p$=De({prop:"gridTemplateColumns"}),m$=De({prop:"gridTemplateRows"}),g$=De({prop:"gridTemplateAreas"}),v$=De({prop:"gridArea"});Tc(Ec,Rc,Pc,c$,u$,d$,f$,h$,p$,m$,g$,v$);function Wi(e,t){return t==="grey"?t:e}const y$=De({prop:"color",themeKey:"palette",transform:Wi}),b$=De({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Wi}),x$=De({prop:"backgroundColor",themeKey:"palette",transform:Wi});Tc(y$,b$,x$);function Lt(e){return e<=1&&e!==0?`${e*100}%`:e}const w$=De({prop:"width",transform:Lt}),zh=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const o=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Nh[n];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Lt(n)}};return Kn(e,e.maxWidth,t)}return null};zh.filterProps=["maxWidth"];const k$=De({prop:"minWidth",transform:Lt}),C$=De({prop:"height",transform:Lt}),S$=De({prop:"maxHeight",transform:Lt}),$$=De({prop:"minHeight",transform:Lt});De({prop:"size",cssProperty:"width",transform:Lt});De({prop:"size",cssProperty:"height",transform:Lt});const T$=De({prop:"boxSizing"});Tc(w$,zh,k$,C$,S$,$$,T$);const Ks={border:{themeKey:"borders",transform:Kt},borderTop:{themeKey:"borders",transform:Kt},borderRight:{themeKey:"borders",transform:Kt},borderBottom:{themeKey:"borders",transform:Kt},borderLeft:{themeKey:"borders",transform:Kt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Kt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ic},color:{themeKey:"palette",transform:Wi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Wi},backgroundColor:{themeKey:"palette",transform:Wi},p:{style:Re},pt:{style:Re},pr:{style:Re},pb:{style:Re},pl:{style:Re},px:{style:Re},py:{style:Re},padding:{style:Re},paddingTop:{style:Re},paddingRight:{style:Re},paddingBottom:{style:Re},paddingLeft:{style:Re},paddingX:{style:Re},paddingY:{style:Re},paddingInline:{style:Re},paddingInlineStart:{style:Re},paddingInlineEnd:{style:Re},paddingBlock:{style:Re},paddingBlockStart:{style:Re},paddingBlockEnd:{style:Re},m:{style:Ee},mt:{style:Ee},mr:{style:Ee},mb:{style:Ee},ml:{style:Ee},mx:{style:Ee},my:{style:Ee},margin:{style:Ee},marginTop:{style:Ee},marginRight:{style:Ee},marginBottom:{style:Ee},marginLeft:{style:Ee},marginX:{style:Ee},marginY:{style:Ee},marginInline:{style:Ee},marginInlineStart:{style:Ee},marginInlineEnd:{style:Ee},marginBlock:{style:Ee},marginBlockStart:{style:Ee},marginBlockEnd:{style:Ee},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:Ec},rowGap:{style:Pc},columnGap:{style:Rc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Lt},maxWidth:{style:zh},minWidth:{transform:Lt},height:{transform:Lt},maxHeight:{transform:Lt},minHeight:{transform:Lt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function I$(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function E$(e,t){return typeof e=="function"?e(t):e}function vb(){function e(n,r,i,o){const s={[n]:r,theme:i},l=o[n];if(!l)return{[n]:r};const{cssProperty:a=n,themeKey:c,transform:d,style:u}=l;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const f=ao(i,c)||{};return u?u(s):Kn(s,r,g=>{let m=Aa(f,d,g);return g===m&&typeof g=="string"&&(m=Aa(f,d,`${n}${g==="default"?"":X(g)}`,g)),a===!1?m:{[a]:m}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const s=(r=o.unstable_sxConfig)!=null?r:Ks;function l(a){let c=a;if(typeof a=="function")c=a(o);else if(typeof a!="object")return a;if(!c)return null;const d=BS(o.breakpoints),u=Object.keys(d);let f=d;return Object.keys(c).forEach(v=>{const g=E$(c[v],o);if(g!=null)if(typeof g=="object")if(s[v])f=as(f,e(v,g,o,s));else{const m=Kn({theme:o},g,b=>({[v]:b}));I$(m,g)?f[v]=t({sx:g,theme:o}):f=as(f,m)}else f=as(f,e(v,g,o,s))}),VS(u,f)}return Array.isArray(i)?i.map(l):l(i)}return t}const Js=vb();Js.filterProps=["sx"];function yb(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const R$=["breakpoints","palette","spacing","shape"];function Oc(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,s=K(e,R$),l=pb(n),a=YS(i);let c=An({breakpoints:l,direction:"ltr",components:{},palette:T({mode:"light"},r),spacing:a,shape:T({},zS,o)},s);return c.applyStyles=yb,c=t.reduce((d,u)=>An(d,u),c),c.unstable_sxConfig=T({},Ks,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(u){return Js({sx:u,theme:this})},c}const P$=Object.freeze(Object.defineProperty({__proto__:null,default:Oc,private_createBreakpoints:pb,unstable_applyStyles:yb},Symbol.toStringTag,{value:"Module"}));function O$(e){return Object.keys(e).length===0}function bb(e=null){const t=x.useContext(Qs);return!t||O$(t)?e:t}const _$=Oc();function _c(e=_$){return bb(e)}function A$({styles:e,themeId:t,defaultTheme:n={}}){const r=_c(n),i=typeof e=="function"?e(t&&r[t]||r):e;return k.jsx(db,{styles:i})}const D$=["sx"],M$=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Ks;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function Bh(e){const{sx:t}=e,n=K(e,D$),{systemProps:r,otherProps:i}=M$(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...s)=>{const l=t(...s);return hr(l)?T({},r,l):r}:o=T({},r,t),T({},i,{sx:o})}const L$=Object.freeze(Object.defineProperty({__proto__:null,default:Js,extendSxProp:Bh,unstable_createStyleFunctionSx:vb,unstable_defaultSxConfig:Ks},Symbol.toStringTag,{value:"Module"})),eg=e=>e,N$=()=>{let e=eg;return{configure(t){e=t},generate(t){return e(t)},reset(){e=eg}}},Vh=N$();function xb(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;tl!=="theme"&&l!=="sx"&&l!=="as"})(Js);return x.forwardRef(function(a,c){const d=_c(n),u=Bh(a),{className:f,component:v="div"}=u,g=K(u,F$);return k.jsx(o,T({as:v,ref:c,className:le(f,i?i(r):r),theme:t&&d[t]||d},g))})}const wb={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 Ge(e,t,n="Mui"){const r=wb[t];return r?`${n}-${r}`:`${Vh.generate(e)}-${t}`}function ze(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Ge(e,i,n)}),r}var kb={exports:{}},de={};/** * @license React * react-is.production.min.js * @@ -52,7 +52,7 @@ Error generating stack: `+o.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Vh=Symbol.for("react.element"),Hh=Symbol.for("react.portal"),Ac=Symbol.for("react.fragment"),Dc=Symbol.for("react.strict_mode"),Mc=Symbol.for("react.profiler"),Lc=Symbol.for("react.provider"),Nc=Symbol.for("react.context"),N$=Symbol.for("react.server_context"),Fc=Symbol.for("react.forward_ref"),jc=Symbol.for("react.suspense"),zc=Symbol.for("react.suspense_list"),Bc=Symbol.for("react.memo"),Vc=Symbol.for("react.lazy"),F$=Symbol.for("react.offscreen"),kb;kb=Symbol.for("react.module.reference");function an(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Vh:switch(e=e.type,e){case Ac:case Mc:case Dc:case jc:case zc:return e;default:switch(e=e&&e.$$typeof,e){case N$:case Nc:case Fc:case Vc:case Bc:case Lc:return e;default:return t}}case Hh:return t}}}de.ContextConsumer=Nc;de.ContextProvider=Lc;de.Element=Vh;de.ForwardRef=Fc;de.Fragment=Ac;de.Lazy=Vc;de.Memo=Bc;de.Portal=Hh;de.Profiler=Mc;de.StrictMode=Dc;de.Suspense=jc;de.SuspenseList=zc;de.isAsyncMode=function(){return!1};de.isConcurrentMode=function(){return!1};de.isContextConsumer=function(e){return an(e)===Nc};de.isContextProvider=function(e){return an(e)===Lc};de.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vh};de.isForwardRef=function(e){return an(e)===Fc};de.isFragment=function(e){return an(e)===Ac};de.isLazy=function(e){return an(e)===Vc};de.isMemo=function(e){return an(e)===Bc};de.isPortal=function(e){return an(e)===Hh};de.isProfiler=function(e){return an(e)===Mc};de.isStrictMode=function(e){return an(e)===Dc};de.isSuspense=function(e){return an(e)===jc};de.isSuspenseList=function(e){return an(e)===zc};de.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ac||e===Mc||e===Dc||e===jc||e===zc||e===F$||typeof e=="object"&&e!==null&&(e.$$typeof===Vc||e.$$typeof===Bc||e.$$typeof===Lc||e.$$typeof===Nc||e.$$typeof===Fc||e.$$typeof===kb||e.getModuleId!==void 0)};de.typeOf=an;wb.exports=de;var eg=wb.exports;const j$=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Cb(e){const t=`${e}`.match(j$);return t&&t[1]||""}function Sb(e,t=""){return e.displayName||e.name||Cb(e)||t}function tg(e,t,n){const r=Sb(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function z$(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Sb(e,"Component");if(typeof e=="object")switch(e.$$typeof){case eg.ForwardRef:return tg(e,e.render,"ForwardRef");case eg.Memo:return tg(e,e.type,"memo");default:return}}}const B$=Object.freeze(Object.defineProperty({__proto__:null,default:z$,getFunctionName:Cb},Symbol.toStringTag,{value:"Module"}));function V$(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}Oc();function $b(e,t){const n=I({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=I({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=I({},o),Object.keys(i).forEach(s=>{n[r][s]=$b(i[s],o[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function H$(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:$b(t.components[n].defaultProps,r)}function U$({props:e,name:t,defaultTheme:n,themeId:r}){let i=_c(n);return r&&(i=i[r]||i),H$({theme:i,name:t,props:e})}const Ms=typeof window<"u"?x.useLayoutEffect:x.useEffect;function Tb(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const W$=Object.freeze(Object.defineProperty({__proto__:null,default:Tb},Symbol.toStringTag,{value:"Module"}));function G$(e,t=0,n=1){return Tb(e,t,n)}function q$(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,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Ib(e){if(e.type)return e;if(e.charAt(0)==="#")return Ib(q$(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(ii(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(ii(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function Q$(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function gr(e,t){return e=Ib(e),t=G$(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Q$(e)}function X$(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function Y$(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function K$(e,t){return()=>null}function J$(e,t){var n,r;return x.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Gi(e){return e&&e.ownerDocument||document}function Z$(e){return Gi(e).defaultView||window}function eT(e,t){return()=>null}function Da(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let ng=0;function tT(e){const[t,n]=x.useState(e),r=e||t;return x.useEffect(()=>{t==null&&(ng+=1,n(`mui-${ng}`))},[t]),r}const rg=vd.useId;function Eb(e){if(rg!==void 0){const t=rg();return e??t}return tT(e)}function nT(e,t,n,r,i){return null}function Rb({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=x.useRef(e!==void 0),[o,s]=x.useState(t),l=i?e:o,a=x.useCallback(c=>{i||s(c)},[]);return[l,a]}function Ft(e){const t=x.useRef(e);return Ms(()=>{t.current=e}),x.useRef((...n)=>(0,t.current)(...n)).current}function Ot(...e){return x.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Da(n,t)})},e)}const ig={};function rT(e,t){const n=x.useRef(ig);return n.current===ig&&(n.current=e(t)),n}const iT=[];function oT(e){x.useEffect(e,iT)}class Hc{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Hc}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Pb(){const e=rT(Hc.create).current;return oT(e.disposeEffect),e}let Uc=!0,gf=!1;const sT=new Hc,lT={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function aT(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&lT[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function cT(e){e.metaKey||e.altKey||e.ctrlKey||(Uc=!0)}function Wu(){Uc=!1}function uT(){this.visibilityState==="hidden"&&gf&&(Uc=!0)}function dT(e){e.addEventListener("keydown",cT,!0),e.addEventListener("mousedown",Wu,!0),e.addEventListener("pointerdown",Wu,!0),e.addEventListener("touchstart",Wu,!0),e.addEventListener("visibilitychange",uT,!0)}function fT(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Uc||aT(t)}function Uh(){const e=x.useCallback(i=>{i!=null&&dT(i.ownerDocument)},[]),t=x.useRef(!1);function n(){return t.current?(gf=!0,sT.start(100,()=>{gf=!1}),t.current=!1,!0):!1}function r(i){return fT(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}const Ob=e=>{const t=x.useRef({});return x.useEffect(()=>{t.current=e}),t.current};function qe(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,s)=>{if(s){const l=t(s);l!==""&&o.push(l),n&&n[s]&&o.push(n[s])}return o},[]).join(" ")}),r}const _b=x.createContext(null);function Ab(){return x.useContext(_b)}const hT=typeof Symbol=="function"&&Symbol.for,pT=hT?Symbol.for("mui.nested"):"__THEME_NESTED__";function mT(e,t){return typeof t=="function"?t(e):I({},e,t)}function gT(e){const{children:t,theme:n}=e,r=Ab(),i=x.useMemo(()=>{const o=r===null?n:mT(r,n);return o!=null&&(o[pT]=r!==null),o},[n,r]);return k.jsx(_b.Provider,{value:i,children:t})}const vT=["value"],yT=x.createContext();function bT(e){let{value:t}=e,n=K(e,vT);return k.jsx(yT.Provider,I({value:t??!0},n))}const og={};function sg(e,t,n,r=!1){return x.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const o=n(i),s=e?I({},t,{[e]:o}):o;return r?()=>s:s}return e?I({},t,{[e]:n}):I({},t,n)},[e,t,n,r])}function xT(e){const{children:t,theme:n,themeId:r}=e,i=yb(og),o=Ab()||og,s=sg(r,i,n),l=sg(r,o,n,!0),a=s.direction==="rtl";return k.jsx(gT,{theme:l,children:k.jsx(Qs.Provider,{value:s,children:k.jsx(bT,{value:a,children:t})})})}function wT(e,t){return I({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Me={},Db={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Db);var Wh=Db.exports;const kT=Jn(SC),CT=Jn(W$);var Mb=Wh;Object.defineProperty(Me,"__esModule",{value:!0});var si=Me.alpha=jb;Me.blend=DT;Me.colorChannel=void 0;var Gh=Me.darken=Xh;Me.decomposeColor=on;Me.emphasize=zb;var ST=Me.getContrastRatio=RT;Me.getLuminance=Ma;Me.hexToRgb=Lb;Me.hslToRgb=Fb;var qh=Me.lighten=Yh;Me.private_safeAlpha=PT;Me.private_safeColorChannel=void 0;Me.private_safeDarken=OT;Me.private_safeEmphasize=AT;Me.private_safeLighten=_T;Me.recomposeColor=bo;Me.rgbToHex=ET;var lg=Mb(kT),$T=Mb(CT);function Qh(e,t=0,n=1){return(0,$T.default)(e,t,n)}function Lb(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,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function TT(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function on(e){if(e.type)return e;if(e.charAt(0)==="#")return on(Lb(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,lg.default)(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error((0,lg.default)(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}const Nb=e=>{const t=on(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Me.colorChannel=Nb;const IT=(e,t)=>{try{return Nb(e)}catch{return e}};Me.private_safeColorChannel=IT;function bo(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function ET(e){if(e.indexOf("#")===0)return e;const{values:t}=on(e);return`#${t.map((n,r)=>TT(r===3?Math.round(255*n):n)).join("")}`}function Fb(e){e=on(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),s=(c,d=(c+n/30)%12)=>i-o*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const a=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",a.push(t[3])),bo({type:l,values:a})}function Ma(e){e=on(e);let t=e.type==="hsl"||e.type==="hsla"?on(Fb(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 RT(e,t){const n=Ma(e),r=Ma(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function jb(e,t){return e=on(e),t=Qh(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,bo(e)}function PT(e,t,n){try{return jb(e,t)}catch{return e}}function Xh(e,t){if(e=on(e),t=Qh(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return bo(e)}function OT(e,t,n){try{return Xh(e,t)}catch{return e}}function Yh(e,t){if(e=on(e),t=Qh(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return bo(e)}function _T(e,t,n){try{return Yh(e,t)}catch{return e}}function zb(e,t=.15){return Ma(e)>.5?Xh(e,t):Yh(e,t)}function AT(e,t,n){try{return zb(e,t)}catch{return e}}function DT(e,t,n,r=1){const i=(a,c)=>Math.round((a**(1/r)*(1-n)+c**(1/r)*n)**r),o=on(e),s=on(t),l=[i(o.values[0],s.values[0]),i(o.values[1],s.values[1]),i(o.values[2],s.values[2])];return bo({type:"rgb",values:l})}const MT=["mode","contrastThreshold","tonalOffset"],ag={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:Os.white,default:Os.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}},Gu={text:{primary:Os.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:Os.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function cg(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=qh(e.main,i):t==="dark"&&(e.dark=Gh(e.main,o)))}function LT(e="light"){return e==="dark"?{main:yi[200],light:yi[50],dark:yi[400]}:{main:yi[700],light:yi[400],dark:yi[800]}}function NT(e="light"){return e==="dark"?{main:$n[200],light:$n[50],dark:$n[400]}:{main:$n[500],light:$n[300],dark:$n[700]}}function FT(e="light"){return e==="dark"?{main:vi[500],light:vi[300],dark:vi[700]}:{main:vi[700],light:vi[400],dark:vi[800]}}function jT(e="light"){return e==="dark"?{main:bi[400],light:bi[300],dark:bi[700]}:{main:bi[700],light:bi[500],dark:bi[900]}}function zT(e="light"){return e==="dark"?{main:xi[400],light:xi[300],dark:xi[700]}:{main:xi[800],light:xi[500],dark:xi[900]}}function BT(e="light"){return e==="dark"?{main:zo[400],light:zo[300],dark:zo[700]}:{main:"#ed6c02",light:zo[500],dark:zo[900]}}function VT(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=K(e,MT),o=e.primary||LT(t),s=e.secondary||NT(t),l=e.error||FT(t),a=e.info||jT(t),c=e.success||zT(t),d=e.warning||BT(t);function u(m){return ST(m,Gu.text.primary)>=n?Gu.text.primary:ag.text.primary}const f=({color:m,name:b,mainShade:p=500,lightShade:h=300,darkShade:y=700})=>{if(m=I({},m),!m.main&&m[p]&&(m.main=m[p]),!m.hasOwnProperty("main"))throw new Error(ii(11,b?` (${b})`:"",p));if(typeof m.main!="string")throw new Error(ii(12,b?` (${b})`:"",JSON.stringify(m.main)));return cg(m,"light",h,r),cg(m,"dark",y,r),m.contrastText||(m.contrastText=u(m.main)),m},v={dark:Gu,light:ag};return An(I({common:I({},Os),mode:t,primary:f({color:o,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:a,name:"info"}),success:f({color:c,name:"success"}),grey:CC,contrastThreshold:n,getContrastText:u,augmentColor:f,tonalOffset:r},v[t]),i)}const HT=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function UT(e){return Math.round(e*1e5)/1e5}const ug={textTransform:"uppercase"},dg='"Roboto", "Helvetica", "Arial", sans-serif';function WT(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=dg,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:l=500,fontWeightBold:a=700,htmlFontSize:c=16,allVariants:d,pxToRem:u}=n,f=K(n,HT),v=i/14,g=u||(p=>`${p/c*v}rem`),m=(p,h,y,w,C)=>I({fontFamily:r,fontWeight:p,fontSize:g(h),lineHeight:y},r===dg?{letterSpacing:`${UT(w/h)}em`}:{},C,d),b={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(s,48,1.167,0),h4:m(s,34,1.235,.25),h5:m(s,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(s,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(s,16,1.5,.15),body2:m(s,14,1.43,.15),button:m(l,14,1.75,.4,ug),caption:m(s,12,1.66,.4),overline:m(s,12,2.66,1,ug),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return An(I({htmlFontSize:c,pxToRem:g,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:l,fontWeightBold:a},b),f,{clone:!1})}const GT=.2,qT=.14,QT=.12;function ge(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${GT})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${qT})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${QT})`].join(",")}const XT=["none",ge(0,2,1,-1,0,1,1,0,0,1,3,0),ge(0,3,1,-2,0,2,2,0,0,1,5,0),ge(0,3,3,-2,0,3,4,0,0,1,8,0),ge(0,2,4,-1,0,4,5,0,0,1,10,0),ge(0,3,5,-1,0,5,8,0,0,1,14,0),ge(0,3,5,-1,0,6,10,0,0,1,18,0),ge(0,4,5,-2,0,7,10,1,0,2,16,1),ge(0,5,5,-3,0,8,10,1,0,3,14,2),ge(0,5,6,-3,0,9,12,1,0,3,16,2),ge(0,6,6,-3,0,10,14,1,0,4,18,3),ge(0,6,7,-4,0,11,15,1,0,4,20,3),ge(0,7,8,-4,0,12,17,2,0,5,22,4),ge(0,7,8,-4,0,13,19,2,0,5,24,4),ge(0,7,9,-4,0,14,21,2,0,5,26,4),ge(0,8,9,-5,0,15,22,2,0,6,28,5),ge(0,8,10,-5,0,16,24,2,0,6,30,5),ge(0,8,11,-5,0,17,26,2,0,6,32,5),ge(0,9,11,-5,0,18,28,2,0,7,34,6),ge(0,9,12,-6,0,19,29,2,0,7,36,6),ge(0,10,13,-6,0,20,31,3,0,8,38,7),ge(0,10,13,-6,0,21,33,3,0,8,40,7),ge(0,10,14,-6,0,22,35,3,0,8,42,7),ge(0,11,14,-7,0,23,36,3,0,9,44,8),ge(0,11,15,-7,0,24,38,3,0,9,46,8)],YT=["duration","easing","delay"],KT={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)"},Bb={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function fg(e){return`${Math.round(e)}ms`}function JT(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function ZT(e){const t=I({},KT,e.easing),n=I({},Bb,e.duration);return I({getAutoHeightDuration:JT,create:(i=["all"],o={})=>{const{duration:s=n.standard,easing:l=t.easeInOut,delay:a=0}=o;return K(o,YT),(Array.isArray(i)?i:[i]).map(c=>`${c} ${typeof s=="string"?s:fg(s)} ${l} ${typeof a=="string"?a:fg(a)}`).join(",")}},e,{easing:t,duration:n})}const eI={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},tI=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Kh(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,s=K(e,tI);if(e.vars)throw new Error(ii(18));const l=VT(r),a=Oc(e);let c=An(a,{mixins:wT(a.breakpoints,n),palette:l,shadows:XT.slice(),typography:WT(l,o),transitions:ZT(i),zIndex:I({},eI)});return c=An(c,s),c=t.reduce((d,u)=>An(d,u),c),c.unstable_sxConfig=I({},Ks,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(u){return Js({sx:u,theme:this})},c}const Wc=Kh();function Gc(){const e=_c(Wc);return e[oi]||e}function Ze({props:e,name:t}){return U$({props:e,name:t,defaultTheme:Wc,themeId:oi})}var Zs={},qu={exports:{}},hg;function nI(){return hg||(hg=1,function(e){function t(n,r){if(n==null)return{};var i={};for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)){if(r.indexOf(o)>=0)continue;i[o]=n[o]}return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(qu)),qu.exports}const rI=Jn(AS),iI=Jn(DS),oI=Jn(zS),sI=Jn(B$),lI=Jn(I$),aI=Jn(A$);var xo=Wh;Object.defineProperty(Zs,"__esModule",{value:!0});var cI=Zs.default=kI;Zs.shouldForwardProp=ta;Zs.systemDefaultTheme=void 0;var qt=xo(sb()),vf=xo(nI()),pg=gI(rI),uI=iI;xo(oI);xo(sI);var dI=xo(lI),fI=xo(aI);const hI=["ownerState"],pI=["variants"],mI=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Vb(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Vb=function(r){return r?n:t})(e)}function gI(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Vb(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function vI(e){return Object.keys(e).length===0}function yI(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ta(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const bI=Zs.systemDefaultTheme=(0,dI.default)(),xI=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Rl({defaultTheme:e,theme:t,themeId:n}){return vI(t)?e:t[n]||t}function wI(e){return e?(t,n)=>n[e]:null}function na(e,t){let{ownerState:n}=t,r=(0,vf.default)(t,hI);const i=typeof e=="function"?e((0,qt.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(o=>na(o,(0,qt.default)({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:o=[]}=i;let l=(0,vf.default)(i,pI);return o.forEach(a=>{let c=!0;typeof a.props=="function"?c=a.props((0,qt.default)({ownerState:n},r,n)):Object.keys(a.props).forEach(d=>{(n==null?void 0:n[d])!==a.props[d]&&r[d]!==a.props[d]&&(c=!1)}),c&&(Array.isArray(l)||(l=[l]),l.push(typeof a.style=="function"?a.style((0,qt.default)({ownerState:n},r,n)):a.style))}),l}return i}function kI(e={}){const{themeId:t,defaultTheme:n=bI,rootShouldForwardProp:r=ta,slotShouldForwardProp:i=ta}=e,o=s=>(0,fI.default)((0,qt.default)({},s,{theme:Rl((0,qt.default)({},s,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(s,l={})=>{(0,pg.internal_processStyles)(s,C=>C.filter($=>!($!=null&&$.__mui_systemSx)));const{name:a,slot:c,skipVariantsResolver:d,skipSx:u,overridesResolver:f=wI(xI(c))}=l,v=(0,vf.default)(l,mI),g=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,m=u||!1;let b,p=ta;c==="Root"||c==="root"?p=r:c?p=i:yI(s)&&(p=void 0);const h=(0,pg.default)(s,(0,qt.default)({shouldForwardProp:p,label:b},v)),y=C=>typeof C=="function"&&C.__emotion_real!==C||(0,uI.isPlainObject)(C)?$=>na(C,(0,qt.default)({},$,{theme:Rl({theme:$.theme,defaultTheme:n,themeId:t})})):C,w=(C,...$)=>{let T=y(C);const R=$?$.map(y):[];a&&f&&R.push(P=>{const O=Rl((0,qt.default)({},P,{defaultTheme:n,themeId:t}));if(!O.components||!O.components[a]||!O.components[a].styleOverrides)return null;const j=O.components[a].styleOverrides,z={};return Object.entries(j).forEach(([V,q])=>{z[V]=na(q,(0,qt.default)({},P,{theme:O}))}),f(P,z)}),a&&!g&&R.push(P=>{var O;const j=Rl((0,qt.default)({},P,{defaultTheme:n,themeId:t})),z=j==null||(O=j.components)==null||(O=O[a])==null?void 0:O.variants;return na({variants:z},(0,qt.default)({},P,{theme:j}))}),m||R.push(o);const B=R.length-$.length;if(Array.isArray(C)&&B>0){const P=new Array(B).fill("");T=[...C,...P],T.raw=[...C.raw,...P]}const D=h(T,...R);return s.muiName&&(D.muiName=s.muiName),D};return h.withConfig&&(w.withConfig=h.withConfig),w}}function CI(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Hb=e=>CI(e)&&e!=="classes",ee=cI({themeId:oi,defaultTheme:Wc,rootShouldForwardProp:Hb}),SI=["theme"];function $I(e){let{theme:t}=e,n=K(e,SI);const r=t[oi];return k.jsx(xT,I({},n,{themeId:r?oi:void 0,theme:r||t}))}function TI(e){return Ge("MuiSvgIcon",e)}ze("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const II=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],EI=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${X(t)}`,`fontSize${X(n)}`]};return qe(i,TI,r)},RI=ee("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${X(n.color)}`],t[`fontSize${X(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,s,l,a,c,d,u,f,v,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((l=e.typography)==null||(a=l.pxToRem)==null?void 0:a.call(l,24))||"1.5rem",large:((c=e.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:(u=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?u:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),yf=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:s="inherit",component:l="svg",fontSize:a="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:u,viewBox:f="0 0 24 24"}=r,v=K(r,II),g=x.isValidElement(i)&&i.type==="svg",m=I({},r,{color:s,component:l,fontSize:a,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:f,hasSvgAsChild:g}),b={};d||(b.viewBox=f);const p=EI(m);return k.jsxs(RI,I({as:l,className:le(p.root,o),focusable:"false",color:c,"aria-hidden":u?void 0:!0,role:u?"img":void 0,ref:n},b,v,g&&i.props,{ownerState:m,children:[g?i.props.children:i,u?k.jsx("title",{children:u}):null]}))});yf.muiName="SvgIcon";function Jh(e,t){function n(r,i){return k.jsx(yf,I({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=yf.muiName,x.memo(x.forwardRef(n))}const PI={configure:e=>{Bh.configure(e)}},OI=Object.freeze(Object.defineProperty({__proto__:null,capitalize:X,createChainedFunction:X$,createSvgIcon:Jh,debounce:Y$,deprecatedPropType:K$,isMuiElement:J$,ownerDocument:Gi,ownerWindow:Z$,requirePropFactory:eT,setRef:Da,unstable_ClassNameGenerator:PI,unstable_useEnhancedEffect:Ms,unstable_useId:Eb,unsupportedProp:nT,useControlled:Rb,useEventCallback:Ft,useForkRef:Ot,useIsFocusVisible:Uh},Symbol.toStringTag,{value:"Module"}));function Ub(e){return Ze}function bf(e,t){return bf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},bf(e,t)}function Wb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,bf(e,t)}const mg={disabled:!1},La=St.createContext(null);var _I=function(t){return t.scrollTop},Ko="unmounted",Br="exited",Vr="entering",ki="entered",xf="exiting",Ln=function(e){Wb(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var s=i,l=s&&!s.isMounting?r.enter:r.appear,a;return o.appearStatus=null,r.in?l?(a=Br,o.appearStatus=Vr):a=ki:r.unmountOnExit||r.mountOnEnter?a=Ko:a=Br,o.state={status:a},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var s=i.in;return s&&o.status===Ko?{status:Br}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Vr&&s!==ki&&(o=Vr):(s===Vr||s===ki)&&(o=xf)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,s,l;return o=s=l=i,i!=null&&typeof i!="number"&&(o=i.exit,s=i.enter,l=i.appear!==void 0?i.appear:s),{exit:o,enter:s,appear:l}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Vr){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Il.findDOMNode(this);s&&_I(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Br&&this.setState({status:Ko})},n.performEnter=function(i){var o=this,s=this.props.enter,l=this.context?this.context.isMounting:i,a=this.props.nodeRef?[l]:[Il.findDOMNode(this),l],c=a[0],d=a[1],u=this.getTimeouts(),f=l?u.appear:u.enter;if(!i&&!s||mg.disabled){this.safeSetState({status:ki},function(){o.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:Vr},function(){o.props.onEntering(c,d),o.onTransitionEnd(f,function(){o.safeSetState({status:ki},function(){o.props.onEntered(c,d)})})})},n.performExit=function(){var i=this,o=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:Il.findDOMNode(this);if(!o||mg.disabled){this.safeSetState({status:Br},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:xf},function(){i.props.onExiting(l),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Br},function(){i.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,o.nextCallback=null,i(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:Il.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=a[0],d=a[1];this.props.addEndListener(c,d)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Ko)return null;var o=this.props,s=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 l=K(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return St.createElement(La.Provider,{value:null},typeof s=="function"?s(i,l):St.cloneElement(St.Children.only(s),l))},t}(St.Component);Ln.contextType=La;Ln.propTypes={};function wi(){}Ln.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:wi,onEntering:wi,onEntered:wi,onExit:wi,onExiting:wi,onExited:wi};Ln.UNMOUNTED=Ko;Ln.EXITED=Br;Ln.ENTERING=Vr;Ln.ENTERED=ki;Ln.EXITING=xf;function AI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zh(e,t){var n=function(o){return t&&x.isValidElement(o)?t(o):o},r=Object.create(null);return e&&x.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function DI(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var s,l={};for(var a in t){if(r[a])for(s=0;se.scrollTop;function Na(e,t){var n,r;const{timeout:i,easing:o,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:s.transitionDelay}}function zI(e){return Ge("MuiCollapse",e)}ze("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const BI=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],VI=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return qe(r,zI,n)},HI=ee("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>I({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&I({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),UI=ee("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>I({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),WI=ee("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>I({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),tp=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiCollapse"}),{addEndListener:i,children:o,className:s,collapsedSize:l="0px",component:a,easing:c,in:d,onEnter:u,onEntered:f,onEntering:v,onExit:g,onExited:m,onExiting:b,orientation:p="vertical",style:h,timeout:y=Bb.standard,TransitionComponent:w=Ln}=r,C=K(r,BI),$=I({},r,{orientation:p,collapsedSize:l}),T=VI($),R=Gc(),B=Pb(),D=x.useRef(null),P=x.useRef(),O=typeof l=="number"?`${l}px`:l,j=p==="horizontal",z=j?"width":"height",V=x.useRef(null),q=Ot(n,V),W=U=>xe=>{if(U){const ft=V.current;xe===void 0?U(ft):U(ft,xe)}},_=()=>D.current?D.current[j?"clientWidth":"clientHeight"]:0,M=W((U,xe)=>{D.current&&j&&(D.current.style.position="absolute"),U.style[z]=O,u&&u(U,xe)}),H=W((U,xe)=>{const ft=_();D.current&&j&&(D.current.style.position="");const{duration:Qe,easing:kn}=Na({style:h,timeout:y,easing:c},{mode:"enter"});if(y==="auto"){const mi=R.transitions.getAutoHeightDuration(ft);U.style.transitionDuration=`${mi}ms`,P.current=mi}else U.style.transitionDuration=typeof Qe=="string"?Qe:`${Qe}ms`;U.style[z]=`${ft}px`,U.style.transitionTimingFunction=kn,v&&v(U,xe)}),re=W((U,xe)=>{U.style[z]="auto",f&&f(U,xe)}),ae=W(U=>{U.style[z]=`${_()}px`,g&&g(U)}),Dt=W(m),Ie=W(U=>{const xe=_(),{duration:ft,easing:Qe}=Na({style:h,timeout:y,easing:c},{mode:"exit"});if(y==="auto"){const kn=R.transitions.getAutoHeightDuration(xe);U.style.transitionDuration=`${kn}ms`,P.current=kn}else U.style.transitionDuration=typeof ft=="string"?ft:`${ft}ms`;U.style[z]=O,U.style.transitionTimingFunction=Qe,b&&b(U)}),et=U=>{y==="auto"&&B.start(P.current||0,U),i&&i(V.current,U)};return k.jsx(w,I({in:d,onEnter:M,onEntered:re,onEntering:H,onExit:ae,onExited:Dt,onExiting:Ie,addEndListener:et,nodeRef:V,timeout:y==="auto"?null:y},C,{children:(U,xe)=>k.jsx(HI,I({as:a,className:le(T.root,s,{entered:T.entered,exited:!d&&O==="0px"&&T.hidden}[U]),style:I({[j?"minWidth":"minHeight"]:O},h),ref:q},xe,{ownerState:I({},$,{state:U}),children:k.jsx(UI,{ownerState:I({},$,{state:U}),className:T.wrapper,ref:D,children:k.jsx(WI,{ownerState:I({},$,{state:U}),className:T.wrapperInner,children:o})})}))}))});tp.muiSupportAuto=!0;function GI(e){return typeof e=="string"}function qI(e,t,n){return e===void 0||GI(e)?t:I({},t,{ownerState:I({},t.ownerState,n)})}const QI={disableDefaultClasses:!1},XI=x.createContext(QI);function YI(e){const{disableDefaultClasses:t}=x.useContext(XI);return n=>t?"":e(n)}function ar(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 zn(e,t,n){return typeof e=="function"?e(t,n):e}function gg(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 KI(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const v=le(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),g=I({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),m=I({},n,i,r);return v.length>0&&(m.className=v),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:void 0}}const s=ar(I({},i,r)),l=gg(r),a=gg(i),c=t(s),d=le(c==null?void 0:c.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),u=I({},c==null?void 0:c.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),f=I({},c,n,a,l);return d.length>0&&(f.className=d),Object.keys(u).length>0&&(f.style=u),{props:f,internalRef:c.ref}}const JI=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Rn(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,s=K(e,JI),l=o?{}:zn(r,i),{props:a,internalRef:c}=KI(I({},s,{externalSlotProps:l})),d=Ot(c,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return qI(n,I({},a,{ref:d}),i)}function ZI(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:s,in:l,onExited:a,timeout:c}=e,[d,u]=x.useState(!1),f=le(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:s,height:s,top:-(s/2)+o,left:-(s/2)+i},g=le(n.child,d&&n.childLeaving,r&&n.childPulsate);return!l&&!d&&u(!0),x.useEffect(()=>{if(!l&&a!=null){const m=setTimeout(a,c);return()=>{clearTimeout(m)}}},[a,l,c]),k.jsx("span",{className:f,style:v,children:k.jsx("span",{className:g})})}const Qt=ze("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),eE=["center","classes","className"];let qc=e=>e,vg,yg,bg,xg;const wf=550,tE=80,nE=yo(vg||(vg=qc` + */var Hh=Symbol.for("react.element"),Uh=Symbol.for("react.portal"),Ac=Symbol.for("react.fragment"),Dc=Symbol.for("react.strict_mode"),Mc=Symbol.for("react.profiler"),Lc=Symbol.for("react.provider"),Nc=Symbol.for("react.context"),z$=Symbol.for("react.server_context"),Fc=Symbol.for("react.forward_ref"),jc=Symbol.for("react.suspense"),zc=Symbol.for("react.suspense_list"),Bc=Symbol.for("react.memo"),Vc=Symbol.for("react.lazy"),B$=Symbol.for("react.offscreen"),Cb;Cb=Symbol.for("react.module.reference");function an(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Hh:switch(e=e.type,e){case Ac:case Mc:case Dc:case jc:case zc:return e;default:switch(e=e&&e.$$typeof,e){case z$:case Nc:case Fc:case Vc:case Bc:case Lc:return e;default:return t}}case Uh:return t}}}de.ContextConsumer=Nc;de.ContextProvider=Lc;de.Element=Hh;de.ForwardRef=Fc;de.Fragment=Ac;de.Lazy=Vc;de.Memo=Bc;de.Portal=Uh;de.Profiler=Mc;de.StrictMode=Dc;de.Suspense=jc;de.SuspenseList=zc;de.isAsyncMode=function(){return!1};de.isConcurrentMode=function(){return!1};de.isContextConsumer=function(e){return an(e)===Nc};de.isContextProvider=function(e){return an(e)===Lc};de.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Hh};de.isForwardRef=function(e){return an(e)===Fc};de.isFragment=function(e){return an(e)===Ac};de.isLazy=function(e){return an(e)===Vc};de.isMemo=function(e){return an(e)===Bc};de.isPortal=function(e){return an(e)===Uh};de.isProfiler=function(e){return an(e)===Mc};de.isStrictMode=function(e){return an(e)===Dc};de.isSuspense=function(e){return an(e)===jc};de.isSuspenseList=function(e){return an(e)===zc};de.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ac||e===Mc||e===Dc||e===jc||e===zc||e===B$||typeof e=="object"&&e!==null&&(e.$$typeof===Vc||e.$$typeof===Bc||e.$$typeof===Lc||e.$$typeof===Nc||e.$$typeof===Fc||e.$$typeof===Cb||e.getModuleId!==void 0)};de.typeOf=an;kb.exports=de;var tg=kb.exports;const V$=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Sb(e){const t=`${e}`.match(V$);return t&&t[1]||""}function $b(e,t=""){return e.displayName||e.name||Sb(e)||t}function ng(e,t,n){const r=$b(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function H$(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return $b(e,"Component");if(typeof e=="object")switch(e.$$typeof){case tg.ForwardRef:return ng(e,e.render,"ForwardRef");case tg.Memo:return ng(e,e.type,"memo");default:return}}}const U$=Object.freeze(Object.defineProperty({__proto__:null,default:H$,getFunctionName:Sb},Symbol.toStringTag,{value:"Module"}));function W$(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}Oc();function Tb(e,t){const n=T({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=T({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=T({},o),Object.keys(i).forEach(s=>{n[r][s]=Tb(i[s],o[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function G$(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Tb(t.components[n].defaultProps,r)}function q$({props:e,name:t,defaultTheme:n,themeId:r}){let i=_c(n);return r&&(i=i[r]||i),G$({theme:i,name:t,props:e})}const Ms=typeof window<"u"?x.useLayoutEffect:x.useEffect;function Ib(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const Q$=Object.freeze(Object.defineProperty({__proto__:null,default:Ib},Symbol.toStringTag,{value:"Module"}));function X$(e,t=0,n=1){return Ib(e,t,n)}function Y$(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,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Eb(e){if(e.type)return e;if(e.charAt(0)==="#")return Eb(Y$(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(ii(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(ii(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function K$(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function gr(e,t){return e=Eb(e),t=X$(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,K$(e)}function J$(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function Z$(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function eT(e,t){return()=>null}function tT(e,t){var n,r;return x.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Gi(e){return e&&e.ownerDocument||document}function nT(e){return Gi(e).defaultView||window}function rT(e,t){return()=>null}function Da(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let rg=0;function iT(e){const[t,n]=x.useState(e),r=e||t;return x.useEffect(()=>{t==null&&(rg+=1,n(`mui-${rg}`))},[t]),r}const ig=yd.useId;function Rb(e){if(ig!==void 0){const t=ig();return e??t}return iT(e)}function oT(e,t,n,r,i){return null}function Pb({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=x.useRef(e!==void 0),[o,s]=x.useState(t),l=i?e:o,a=x.useCallback(c=>{i||s(c)},[]);return[l,a]}function Ft(e){const t=x.useRef(e);return Ms(()=>{t.current=e}),x.useRef((...n)=>(0,t.current)(...n)).current}function Ot(...e){return x.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Da(n,t)})},e)}const og={};function sT(e,t){const n=x.useRef(og);return n.current===og&&(n.current=e(t)),n}const lT=[];function aT(e){x.useEffect(e,lT)}class Hc{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Hc}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Ob(){const e=sT(Hc.create).current;return aT(e.disposeEffect),e}let Uc=!0,vf=!1;const cT=new Hc,uT={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function dT(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&uT[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function fT(e){e.metaKey||e.altKey||e.ctrlKey||(Uc=!0)}function Gu(){Uc=!1}function hT(){this.visibilityState==="hidden"&&vf&&(Uc=!0)}function pT(e){e.addEventListener("keydown",fT,!0),e.addEventListener("mousedown",Gu,!0),e.addEventListener("pointerdown",Gu,!0),e.addEventListener("touchstart",Gu,!0),e.addEventListener("visibilitychange",hT,!0)}function mT(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Uc||dT(t)}function Wh(){const e=x.useCallback(i=>{i!=null&&pT(i.ownerDocument)},[]),t=x.useRef(!1);function n(){return t.current?(vf=!0,cT.start(100,()=>{vf=!1}),t.current=!1,!0):!1}function r(i){return mT(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}const _b=e=>{const t=x.useRef({});return x.useEffect(()=>{t.current=e}),t.current};function qe(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,s)=>{if(s){const l=t(s);l!==""&&o.push(l),n&&n[s]&&o.push(n[s])}return o},[]).join(" ")}),r}const Ab=x.createContext(null);function Db(){return x.useContext(Ab)}const gT=typeof Symbol=="function"&&Symbol.for,vT=gT?Symbol.for("mui.nested"):"__THEME_NESTED__";function yT(e,t){return typeof t=="function"?t(e):T({},e,t)}function bT(e){const{children:t,theme:n}=e,r=Db(),i=x.useMemo(()=>{const o=r===null?n:yT(r,n);return o!=null&&(o[vT]=r!==null),o},[n,r]);return k.jsx(Ab.Provider,{value:i,children:t})}const xT=["value"],wT=x.createContext();function kT(e){let{value:t}=e,n=K(e,xT);return k.jsx(wT.Provider,T({value:t??!0},n))}const sg={};function lg(e,t,n,r=!1){return x.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const o=n(i),s=e?T({},t,{[e]:o}):o;return r?()=>s:s}return e?T({},t,{[e]:n}):T({},t,n)},[e,t,n,r])}function CT(e){const{children:t,theme:n,themeId:r}=e,i=bb(sg),o=Db()||sg,s=lg(r,i,n),l=lg(r,o,n,!0),a=s.direction==="rtl";return k.jsx(bT,{theme:l,children:k.jsx(Qs.Provider,{value:s,children:k.jsx(kT,{value:a,children:t})})})}function ST(e,t){return T({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Me={},Mb={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Mb);var Wc=Mb.exports;const $T=Jn(IC),TT=Jn(Q$);var Lb=Wc;Object.defineProperty(Me,"__esModule",{value:!0});var si=Me.alpha=zb;Me.blend=NT;Me.colorChannel=void 0;var Gh=Me.darken=Xh;Me.decomposeColor=on;Me.emphasize=Bb;var IT=Me.getContrastRatio=_T;Me.getLuminance=Ma;Me.hexToRgb=Nb;Me.hslToRgb=jb;var qh=Me.lighten=Yh;Me.private_safeAlpha=AT;Me.private_safeColorChannel=void 0;Me.private_safeDarken=DT;Me.private_safeEmphasize=LT;Me.private_safeLighten=MT;Me.recomposeColor=xo;Me.rgbToHex=OT;var ag=Lb($T),ET=Lb(TT);function Qh(e,t=0,n=1){return(0,ET.default)(e,t,n)}function Nb(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,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function RT(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function on(e){if(e.type)return e;if(e.charAt(0)==="#")return on(Nb(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,ag.default)(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error((0,ag.default)(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}const Fb=e=>{const t=on(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Me.colorChannel=Fb;const PT=(e,t)=>{try{return Fb(e)}catch{return e}};Me.private_safeColorChannel=PT;function xo(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function OT(e){if(e.indexOf("#")===0)return e;const{values:t}=on(e);return`#${t.map((n,r)=>RT(r===3?Math.round(255*n):n)).join("")}`}function jb(e){e=on(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),s=(c,d=(c+n/30)%12)=>i-o*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const a=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",a.push(t[3])),xo({type:l,values:a})}function Ma(e){e=on(e);let t=e.type==="hsl"||e.type==="hsla"?on(jb(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 _T(e,t){const n=Ma(e),r=Ma(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function zb(e,t){return e=on(e),t=Qh(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,xo(e)}function AT(e,t,n){try{return zb(e,t)}catch{return e}}function Xh(e,t){if(e=on(e),t=Qh(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return xo(e)}function DT(e,t,n){try{return Xh(e,t)}catch{return e}}function Yh(e,t){if(e=on(e),t=Qh(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return xo(e)}function MT(e,t,n){try{return Yh(e,t)}catch{return e}}function Bb(e,t=.15){return Ma(e)>.5?Xh(e,t):Yh(e,t)}function LT(e,t,n){try{return Bb(e,t)}catch{return e}}function NT(e,t,n,r=1){const i=(a,c)=>Math.round((a**(1/r)*(1-n)+c**(1/r)*n)**r),o=on(e),s=on(t),l=[i(o.values[0],s.values[0]),i(o.values[1],s.values[1]),i(o.values[2],s.values[2])];return xo({type:"rgb",values:l})}const FT=["mode","contrastThreshold","tonalOffset"],cg={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:Os.white,default:Os.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}},qu={text:{primary:Os.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:Os.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function ug(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=qh(e.main,i):t==="dark"&&(e.dark=Gh(e.main,o)))}function jT(e="light"){return e==="dark"?{main:yi[200],light:yi[50],dark:yi[400]}:{main:yi[700],light:yi[400],dark:yi[800]}}function zT(e="light"){return e==="dark"?{main:$n[200],light:$n[50],dark:$n[400]}:{main:$n[500],light:$n[300],dark:$n[700]}}function BT(e="light"){return e==="dark"?{main:vi[500],light:vi[300],dark:vi[700]}:{main:vi[700],light:vi[400],dark:vi[800]}}function VT(e="light"){return e==="dark"?{main:bi[400],light:bi[300],dark:bi[700]}:{main:bi[700],light:bi[500],dark:bi[900]}}function HT(e="light"){return e==="dark"?{main:xi[400],light:xi[300],dark:xi[700]}:{main:xi[800],light:xi[500],dark:xi[900]}}function UT(e="light"){return e==="dark"?{main:Bo[400],light:Bo[300],dark:Bo[700]}:{main:"#ed6c02",light:Bo[500],dark:Bo[900]}}function WT(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=K(e,FT),o=e.primary||jT(t),s=e.secondary||zT(t),l=e.error||BT(t),a=e.info||VT(t),c=e.success||HT(t),d=e.warning||UT(t);function u(m){return IT(m,qu.text.primary)>=n?qu.text.primary:cg.text.primary}const f=({color:m,name:b,mainShade:p=500,lightShade:h=300,darkShade:y=700})=>{if(m=T({},m),!m.main&&m[p]&&(m.main=m[p]),!m.hasOwnProperty("main"))throw new Error(ii(11,b?` (${b})`:"",p));if(typeof m.main!="string")throw new Error(ii(12,b?` (${b})`:"",JSON.stringify(m.main)));return ug(m,"light",h,r),ug(m,"dark",y,r),m.contrastText||(m.contrastText=u(m.main)),m},v={dark:qu,light:cg};return An(T({common:T({},Os),mode:t,primary:f({color:o,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:a,name:"info"}),success:f({color:c,name:"success"}),grey:TC,contrastThreshold:n,getContrastText:u,augmentColor:f,tonalOffset:r},v[t]),i)}const GT=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function qT(e){return Math.round(e*1e5)/1e5}const dg={textTransform:"uppercase"},fg='"Roboto", "Helvetica", "Arial", sans-serif';function QT(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=fg,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:l=500,fontWeightBold:a=700,htmlFontSize:c=16,allVariants:d,pxToRem:u}=n,f=K(n,GT),v=i/14,g=u||(p=>`${p/c*v}rem`),m=(p,h,y,w,C)=>T({fontFamily:r,fontWeight:p,fontSize:g(h),lineHeight:y},r===fg?{letterSpacing:`${qT(w/h)}em`}:{},C,d),b={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(s,48,1.167,0),h4:m(s,34,1.235,.25),h5:m(s,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(s,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(s,16,1.5,.15),body2:m(s,14,1.43,.15),button:m(l,14,1.75,.4,dg),caption:m(s,12,1.66,.4),overline:m(s,12,2.66,1,dg),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return An(T({htmlFontSize:c,pxToRem:g,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:l,fontWeightBold:a},b),f,{clone:!1})}const XT=.2,YT=.14,KT=.12;function ge(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${XT})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${YT})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${KT})`].join(",")}const JT=["none",ge(0,2,1,-1,0,1,1,0,0,1,3,0),ge(0,3,1,-2,0,2,2,0,0,1,5,0),ge(0,3,3,-2,0,3,4,0,0,1,8,0),ge(0,2,4,-1,0,4,5,0,0,1,10,0),ge(0,3,5,-1,0,5,8,0,0,1,14,0),ge(0,3,5,-1,0,6,10,0,0,1,18,0),ge(0,4,5,-2,0,7,10,1,0,2,16,1),ge(0,5,5,-3,0,8,10,1,0,3,14,2),ge(0,5,6,-3,0,9,12,1,0,3,16,2),ge(0,6,6,-3,0,10,14,1,0,4,18,3),ge(0,6,7,-4,0,11,15,1,0,4,20,3),ge(0,7,8,-4,0,12,17,2,0,5,22,4),ge(0,7,8,-4,0,13,19,2,0,5,24,4),ge(0,7,9,-4,0,14,21,2,0,5,26,4),ge(0,8,9,-5,0,15,22,2,0,6,28,5),ge(0,8,10,-5,0,16,24,2,0,6,30,5),ge(0,8,11,-5,0,17,26,2,0,6,32,5),ge(0,9,11,-5,0,18,28,2,0,7,34,6),ge(0,9,12,-6,0,19,29,2,0,7,36,6),ge(0,10,13,-6,0,20,31,3,0,8,38,7),ge(0,10,13,-6,0,21,33,3,0,8,40,7),ge(0,10,14,-6,0,22,35,3,0,8,42,7),ge(0,11,14,-7,0,23,36,3,0,9,44,8),ge(0,11,15,-7,0,24,38,3,0,9,46,8)],ZT=["duration","easing","delay"],eI={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)"},Vb={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function hg(e){return`${Math.round(e)}ms`}function tI(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function nI(e){const t=T({},eI,e.easing),n=T({},Vb,e.duration);return T({getAutoHeightDuration:tI,create:(i=["all"],o={})=>{const{duration:s=n.standard,easing:l=t.easeInOut,delay:a=0}=o;return K(o,ZT),(Array.isArray(i)?i:[i]).map(c=>`${c} ${typeof s=="string"?s:hg(s)} ${l} ${typeof a=="string"?a:hg(a)}`).join(",")}},e,{easing:t,duration:n})}const rI={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},iI=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Kh(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,s=K(e,iI);if(e.vars)throw new Error(ii(18));const l=WT(r),a=Oc(e);let c=An(a,{mixins:ST(a.breakpoints,n),palette:l,shadows:JT.slice(),typography:QT(l,o),transitions:nI(i),zIndex:T({},rI)});return c=An(c,s),c=t.reduce((d,u)=>An(d,u),c),c.unstable_sxConfig=T({},Ks,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(u){return Js({sx:u,theme:this})},c}const Gc=Kh();function qc(){const e=_c(Gc);return e[oi]||e}function Ze({props:e,name:t}){return q$({props:e,name:t,defaultTheme:Gc,themeId:oi})}var Zs={},Qu={exports:{}},pg;function oI(){return pg||(pg=1,function(e){function t(n,r){if(n==null)return{};var i={};for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)){if(r.indexOf(o)>=0)continue;i[o]=n[o]}return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Qu)),Qu.exports}const sI=Jn(LS),lI=Jn(NS),aI=Jn(HS),cI=Jn(U$),uI=Jn(P$),dI=Jn(L$);var wo=Wc;Object.defineProperty(Zs,"__esModule",{value:!0});var fI=Zs.default=$I;Zs.shouldForwardProp=ta;Zs.systemDefaultTheme=void 0;var qt=wo(lb()),yf=wo(oI()),mg=bI(sI),hI=lI;wo(aI);wo(cI);var pI=wo(uI),mI=wo(dI);const gI=["ownerState"],vI=["variants"],yI=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Hb(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Hb=function(r){return r?n:t})(e)}function bI(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Hb(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function xI(e){return Object.keys(e).length===0}function wI(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ta(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const kI=Zs.systemDefaultTheme=(0,pI.default)(),CI=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Rl({defaultTheme:e,theme:t,themeId:n}){return xI(t)?e:t[n]||t}function SI(e){return e?(t,n)=>n[e]:null}function na(e,t){let{ownerState:n}=t,r=(0,yf.default)(t,gI);const i=typeof e=="function"?e((0,qt.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(o=>na(o,(0,qt.default)({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:o=[]}=i;let l=(0,yf.default)(i,vI);return o.forEach(a=>{let c=!0;typeof a.props=="function"?c=a.props((0,qt.default)({ownerState:n},r,n)):Object.keys(a.props).forEach(d=>{(n==null?void 0:n[d])!==a.props[d]&&r[d]!==a.props[d]&&(c=!1)}),c&&(Array.isArray(l)||(l=[l]),l.push(typeof a.style=="function"?a.style((0,qt.default)({ownerState:n},r,n)):a.style))}),l}return i}function $I(e={}){const{themeId:t,defaultTheme:n=kI,rootShouldForwardProp:r=ta,slotShouldForwardProp:i=ta}=e,o=s=>(0,mI.default)((0,qt.default)({},s,{theme:Rl((0,qt.default)({},s,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(s,l={})=>{(0,mg.internal_processStyles)(s,C=>C.filter($=>!($!=null&&$.__mui_systemSx)));const{name:a,slot:c,skipVariantsResolver:d,skipSx:u,overridesResolver:f=SI(CI(c))}=l,v=(0,yf.default)(l,yI),g=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,m=u||!1;let b,p=ta;c==="Root"||c==="root"?p=r:c?p=i:wI(s)&&(p=void 0);const h=(0,mg.default)(s,(0,qt.default)({shouldForwardProp:p,label:b},v)),y=C=>typeof C=="function"&&C.__emotion_real!==C||(0,hI.isPlainObject)(C)?$=>na(C,(0,qt.default)({},$,{theme:Rl({theme:$.theme,defaultTheme:n,themeId:t})})):C,w=(C,...$)=>{let I=y(C);const P=$?$.map(y):[];a&&f&&P.push(O=>{const R=Rl((0,qt.default)({},O,{defaultTheme:n,themeId:t}));if(!R.components||!R.components[a]||!R.components[a].styleOverrides)return null;const F=R.components[a].styleOverrides,B={};return Object.entries(F).forEach(([V,q])=>{B[V]=na(q,(0,qt.default)({},O,{theme:R}))}),f(O,B)}),a&&!g&&P.push(O=>{var R;const F=Rl((0,qt.default)({},O,{defaultTheme:n,themeId:t})),B=F==null||(R=F.components)==null||(R=R[a])==null?void 0:R.variants;return na({variants:B},(0,qt.default)({},O,{theme:F}))}),m||P.push(o);const L=P.length-$.length;if(Array.isArray(C)&&L>0){const O=new Array(L).fill("");I=[...C,...O],I.raw=[...C.raw,...O]}const D=h(I,...P);return s.muiName&&(D.muiName=s.muiName),D};return h.withConfig&&(w.withConfig=h.withConfig),w}}function TI(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ub=e=>TI(e)&&e!=="classes",ee=fI({themeId:oi,defaultTheme:Gc,rootShouldForwardProp:Ub}),II=["theme"];function EI(e){let{theme:t}=e,n=K(e,II);const r=t[oi];return k.jsx(CT,T({},n,{themeId:r?oi:void 0,theme:r||t}))}function RI(e){return Ge("MuiSvgIcon",e)}ze("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const PI=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],OI=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${X(t)}`,`fontSize${X(n)}`]};return qe(i,RI,r)},_I=ee("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${X(n.color)}`],t[`fontSize${X(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,s,l,a,c,d,u,f,v,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((l=e.typography)==null||(a=l.pxToRem)==null?void 0:a.call(l,24))||"1.5rem",large:((c=e.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:(u=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?u:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),bf=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:s="inherit",component:l="svg",fontSize:a="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:u,viewBox:f="0 0 24 24"}=r,v=K(r,PI),g=x.isValidElement(i)&&i.type==="svg",m=T({},r,{color:s,component:l,fontSize:a,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:f,hasSvgAsChild:g}),b={};d||(b.viewBox=f);const p=OI(m);return k.jsxs(_I,T({as:l,className:le(p.root,o),focusable:"false",color:c,"aria-hidden":u?void 0:!0,role:u?"img":void 0,ref:n},b,v,g&&i.props,{ownerState:m,children:[g?i.props.children:i,u?k.jsx("title",{children:u}):null]}))});bf.muiName="SvgIcon";function Jh(e,t){function n(r,i){return k.jsx(bf,T({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=bf.muiName,x.memo(x.forwardRef(n))}const AI={configure:e=>{Vh.configure(e)}},DI=Object.freeze(Object.defineProperty({__proto__:null,capitalize:X,createChainedFunction:J$,createSvgIcon:Jh,debounce:Z$,deprecatedPropType:eT,isMuiElement:tT,ownerDocument:Gi,ownerWindow:nT,requirePropFactory:rT,setRef:Da,unstable_ClassNameGenerator:AI,unstable_useEnhancedEffect:Ms,unstable_useId:Rb,unsupportedProp:oT,useControlled:Pb,useEventCallback:Ft,useForkRef:Ot,useIsFocusVisible:Wh},Symbol.toStringTag,{value:"Module"}));function Wb(e){return Ze}function xf(e,t){return xf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},xf(e,t)}function Gb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,xf(e,t)}const gg={disabled:!1},La=St.createContext(null);var MI=function(t){return t.scrollTop},Jo="unmounted",Br="exited",Vr="entering",ki="entered",wf="exiting",Ln=function(e){Gb(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var s=i,l=s&&!s.isMounting?r.enter:r.appear,a;return o.appearStatus=null,r.in?l?(a=Br,o.appearStatus=Vr):a=ki:r.unmountOnExit||r.mountOnEnter?a=Jo:a=Br,o.state={status:a},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var s=i.in;return s&&o.status===Jo?{status:Br}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Vr&&s!==ki&&(o=Vr):(s===Vr||s===ki)&&(o=wf)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,s,l;return o=s=l=i,i!=null&&typeof i!="number"&&(o=i.exit,s=i.enter,l=i.appear!==void 0?i.appear:s),{exit:o,enter:s,appear:l}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Vr){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Il.findDOMNode(this);s&&MI(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Br&&this.setState({status:Jo})},n.performEnter=function(i){var o=this,s=this.props.enter,l=this.context?this.context.isMounting:i,a=this.props.nodeRef?[l]:[Il.findDOMNode(this),l],c=a[0],d=a[1],u=this.getTimeouts(),f=l?u.appear:u.enter;if(!i&&!s||gg.disabled){this.safeSetState({status:ki},function(){o.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:Vr},function(){o.props.onEntering(c,d),o.onTransitionEnd(f,function(){o.safeSetState({status:ki},function(){o.props.onEntered(c,d)})})})},n.performExit=function(){var i=this,o=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:Il.findDOMNode(this);if(!o||gg.disabled){this.safeSetState({status:Br},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:wf},function(){i.props.onExiting(l),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Br},function(){i.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,o.nextCallback=null,i(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:Il.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=a[0],d=a[1];this.props.addEndListener(c,d)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Jo)return null;var o=this.props,s=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 l=K(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return St.createElement(La.Provider,{value:null},typeof s=="function"?s(i,l):St.cloneElement(St.Children.only(s),l))},t}(St.Component);Ln.contextType=La;Ln.propTypes={};function wi(){}Ln.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:wi,onEntering:wi,onEntered:wi,onExit:wi,onExiting:wi,onExited:wi};Ln.UNMOUNTED=Jo;Ln.EXITED=Br;Ln.ENTERING=Vr;Ln.ENTERED=ki;Ln.EXITING=wf;function LI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zh(e,t){var n=function(o){return t&&x.isValidElement(o)?t(o):o},r=Object.create(null);return e&&x.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function NI(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var s,l={};for(var a in t){if(r[a])for(s=0;se.scrollTop;function Na(e,t){var n,r;const{timeout:i,easing:o,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:s.transitionDelay}}function HI(e){return Ge("MuiCollapse",e)}ze("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const UI=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],WI=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return qe(r,HI,n)},GI=ee("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>T({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&T({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),qI=ee("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>T({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),QI=ee("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>T({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),tp=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiCollapse"}),{addEndListener:i,children:o,className:s,collapsedSize:l="0px",component:a,easing:c,in:d,onEnter:u,onEntered:f,onEntering:v,onExit:g,onExited:m,onExiting:b,orientation:p="vertical",style:h,timeout:y=Vb.standard,TransitionComponent:w=Ln}=r,C=K(r,UI),$=T({},r,{orientation:p,collapsedSize:l}),I=WI($),P=qc(),L=Ob(),D=x.useRef(null),O=x.useRef(),R=typeof l=="number"?`${l}px`:l,F=p==="horizontal",B=F?"width":"height",V=x.useRef(null),q=Ot(n,V),W=U=>xe=>{if(U){const dt=V.current;xe===void 0?U(dt):U(dt,xe)}},_=()=>D.current?D.current[F?"clientWidth":"clientHeight"]:0,M=W((U,xe)=>{D.current&&F&&(D.current.style.position="absolute"),U.style[B]=R,u&&u(U,xe)}),H=W((U,xe)=>{const dt=_();D.current&&F&&(D.current.style.position="");const{duration:Qe,easing:kn}=Na({style:h,timeout:y,easing:c},{mode:"enter"});if(y==="auto"){const mi=P.transitions.getAutoHeightDuration(dt);U.style.transitionDuration=`${mi}ms`,O.current=mi}else U.style.transitionDuration=typeof Qe=="string"?Qe:`${Qe}ms`;U.style[B]=`${dt}px`,U.style.transitionTimingFunction=kn,v&&v(U,xe)}),re=W((U,xe)=>{U.style[B]="auto",f&&f(U,xe)}),ae=W(U=>{U.style[B]=`${_()}px`,g&&g(U)}),Dt=W(m),Ie=W(U=>{const xe=_(),{duration:dt,easing:Qe}=Na({style:h,timeout:y,easing:c},{mode:"exit"});if(y==="auto"){const kn=P.transitions.getAutoHeightDuration(xe);U.style.transitionDuration=`${kn}ms`,O.current=kn}else U.style.transitionDuration=typeof dt=="string"?dt:`${dt}ms`;U.style[B]=R,U.style.transitionTimingFunction=Qe,b&&b(U)}),et=U=>{y==="auto"&&L.start(O.current||0,U),i&&i(V.current,U)};return k.jsx(w,T({in:d,onEnter:M,onEntered:re,onEntering:H,onExit:ae,onExited:Dt,onExiting:Ie,addEndListener:et,nodeRef:V,timeout:y==="auto"?null:y},C,{children:(U,xe)=>k.jsx(GI,T({as:a,className:le(I.root,s,{entered:I.entered,exited:!d&&R==="0px"&&I.hidden}[U]),style:T({[F?"minWidth":"minHeight"]:R},h),ref:q},xe,{ownerState:T({},$,{state:U}),children:k.jsx(qI,{ownerState:T({},$,{state:U}),className:I.wrapper,ref:D,children:k.jsx(QI,{ownerState:T({},$,{state:U}),className:I.wrapperInner,children:o})})}))}))});tp.muiSupportAuto=!0;function XI(e){return typeof e=="string"}function YI(e,t,n){return e===void 0||XI(e)?t:T({},t,{ownerState:T({},t.ownerState,n)})}const KI={disableDefaultClasses:!1},JI=x.createContext(KI);function ZI(e){const{disableDefaultClasses:t}=x.useContext(JI);return n=>t?"":e(n)}function ar(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 zn(e,t,n){return typeof e=="function"?e(t,n):e}function vg(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 eE(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const v=le(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),g=T({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),m=T({},n,i,r);return v.length>0&&(m.className=v),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:void 0}}const s=ar(T({},i,r)),l=vg(r),a=vg(i),c=t(s),d=le(c==null?void 0:c.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),u=T({},c==null?void 0:c.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),f=T({},c,n,a,l);return d.length>0&&(f.className=d),Object.keys(u).length>0&&(f.style=u),{props:f,internalRef:c.ref}}const tE=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Rn(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,s=K(e,tE),l=o?{}:zn(r,i),{props:a,internalRef:c}=eE(T({},s,{externalSlotProps:l})),d=Ot(c,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return YI(n,T({},a,{ref:d}),i)}function nE(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:s,in:l,onExited:a,timeout:c}=e,[d,u]=x.useState(!1),f=le(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:s,height:s,top:-(s/2)+o,left:-(s/2)+i},g=le(n.child,d&&n.childLeaving,r&&n.childPulsate);return!l&&!d&&u(!0),x.useEffect(()=>{if(!l&&a!=null){const m=setTimeout(a,c);return()=>{clearTimeout(m)}}},[a,l,c]),k.jsx("span",{className:f,style:v,children:k.jsx("span",{className:g})})}const Qt=ze("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),rE=["center","classes","className"];let Qc=e=>e,yg,bg,xg,wg;const kf=550,iE=80,oE=bo(yg||(yg=Qc` 0% { transform: scale(0); opacity: 0.1; @@ -62,7 +62,7 @@ Error generating stack: `+o.message+` transform: scale(1); opacity: 0.3; } -`)),rE=yo(yg||(yg=qc` +`)),sE=bo(bg||(bg=Qc` 0% { opacity: 1; } @@ -70,7 +70,7 @@ Error generating stack: `+o.message+` 100% { opacity: 0; } -`)),iE=yo(bg||(bg=qc` +`)),lE=bo(xg||(xg=Qc` 0% { transform: scale(1); } @@ -82,7 +82,7 @@ Error generating stack: `+o.message+` 100% { transform: scale(1); } -`)),oE=ee("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),sE=ee(ZI,{name:"MuiTouchRipple",slot:"Ripple"})(xg||(xg=qc` +`)),aE=ee("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),cE=ee(nE,{name:"MuiTouchRipple",slot:"Ripple"})(wg||(wg=Qc` opacity: 0; position: absolute; @@ -125,7 +125,7 @@ Error generating stack: `+o.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),Qt.rippleVisible,nE,wf,({theme:e})=>e.transitions.easing.easeInOut,Qt.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Qt.child,Qt.childLeaving,rE,wf,({theme:e})=>e.transitions.easing.easeInOut,Qt.childPulsate,iE,({theme:e})=>e.transitions.easing.easeInOut),lE=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:s}=r,l=K(r,eE),[a,c]=x.useState([]),d=x.useRef(0),u=x.useRef(null);x.useEffect(()=>{u.current&&(u.current(),u.current=null)},[a]);const f=x.useRef(!1),v=Pb(),g=x.useRef(null),m=x.useRef(null),b=x.useCallback(w=>{const{pulsate:C,rippleX:$,rippleY:T,rippleSize:R,cb:B}=w;c(D=>[...D,k.jsx(sE,{classes:{ripple:le(o.ripple,Qt.ripple),rippleVisible:le(o.rippleVisible,Qt.rippleVisible),ripplePulsate:le(o.ripplePulsate,Qt.ripplePulsate),child:le(o.child,Qt.child),childLeaving:le(o.childLeaving,Qt.childLeaving),childPulsate:le(o.childPulsate,Qt.childPulsate)},timeout:wf,pulsate:C,rippleX:$,rippleY:T,rippleSize:R},d.current)]),d.current+=1,u.current=B},[o]),p=x.useCallback((w={},C={},$=()=>{})=>{const{pulsate:T=!1,center:R=i||C.pulsate,fakeElement:B=!1}=C;if((w==null?void 0:w.type)==="mousedown"&&f.current){f.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(f.current=!0);const D=B?null:m.current,P=D?D.getBoundingClientRect():{width:0,height:0,left:0,top:0};let O,j,z;if(R||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)O=Math.round(P.width/2),j=Math.round(P.height/2);else{const{clientX:V,clientY:q}=w.touches&&w.touches.length>0?w.touches[0]:w;O=Math.round(V-P.left),j=Math.round(q-P.top)}if(R)z=Math.sqrt((2*P.width**2+P.height**2)/3),z%2===0&&(z+=1);else{const V=Math.max(Math.abs((D?D.clientWidth:0)-O),O)*2+2,q=Math.max(Math.abs((D?D.clientHeight:0)-j),j)*2+2;z=Math.sqrt(V**2+q**2)}w!=null&&w.touches?g.current===null&&(g.current=()=>{b({pulsate:T,rippleX:O,rippleY:j,rippleSize:z,cb:$})},v.start(tE,()=>{g.current&&(g.current(),g.current=null)})):b({pulsate:T,rippleX:O,rippleY:j,rippleSize:z,cb:$})},[i,b,v]),h=x.useCallback(()=>{p({},{pulsate:!0})},[p]),y=x.useCallback((w,C)=>{if(v.clear(),(w==null?void 0:w.type)==="touchend"&&g.current){g.current(),g.current=null,v.start(0,()=>{y(w,C)});return}g.current=null,c($=>$.length>0?$.slice(1):$),u.current=C},[v]);return x.useImperativeHandle(n,()=>({pulsate:h,start:p,stop:y}),[h,p,y]),k.jsx(oE,I({className:le(Qt.root,o.root,s),ref:m},l,{children:k.jsx(ep,{component:null,exit:!0,children:a})}))});function aE(e){return Ge("MuiButtonBase",e)}const cE=ze("MuiButtonBase",["root","disabled","focusVisible"]),uE=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],dE=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,s=qe({root:["root",t&&"disabled",n&&"focusVisible"]},aE,i);return n&&r&&(s.root+=` ${r}`),s},fE=ee("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.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"},[`&.${cE.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),hE=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:s,className:l,component:a="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:u=!1,focusRipple:f=!1,LinkComponent:v="a",onBlur:g,onClick:m,onContextMenu:b,onDragLeave:p,onFocus:h,onFocusVisible:y,onKeyDown:w,onKeyUp:C,onMouseDown:$,onMouseLeave:T,onMouseUp:R,onTouchEnd:B,onTouchMove:D,onTouchStart:P,tabIndex:O=0,TouchRippleProps:j,touchRippleRef:z,type:V}=r,q=K(r,uE),W=x.useRef(null),_=x.useRef(null),M=Ot(_,z),{isFocusVisibleRef:H,onFocus:re,onBlur:ae,ref:Dt}=Uh(),[Ie,et]=x.useState(!1);c&&Ie&&et(!1),x.useImperativeHandle(i,()=>({focusVisible:()=>{et(!0),W.current.focus()}}),[]);const[U,xe]=x.useState(!1);x.useEffect(()=>{xe(!0)},[]);const ft=U&&!d&&!c;x.useEffect(()=>{Ie&&f&&!d&&U&&_.current.pulsate()},[d,f,Ie,U]);function Qe(Q,Rp,q1=u){return Ft(Pp=>(Rp&&Rp(Pp),!q1&&_.current&&_.current[Q](Pp),!0))}const kn=Qe("start",$),mi=Qe("stop",b),uu=Qe("stop",p),du=Qe("stop",R),Po=Qe("stop",Q=>{Ie&&Q.preventDefault(),T&&T(Q)}),fu=Qe("start",P),hu=Qe("stop",B),pu=Qe("stop",D),mu=Qe("stop",Q=>{ae(Q),H.current===!1&&et(!1),g&&g(Q)},!1),gu=Ft(Q=>{W.current||(W.current=Q.currentTarget),re(Q),H.current===!0&&(et(!0),y&&y(Q)),h&&h(Q)}),he=()=>{const Q=W.current;return a&&a!=="button"&&!(Q.tagName==="A"&&Q.href)},al=x.useRef(!1),H1=Ft(Q=>{f&&!al.current&&Ie&&_.current&&Q.key===" "&&(al.current=!0,_.current.stop(Q,()=>{_.current.start(Q)})),Q.target===Q.currentTarget&&he()&&Q.key===" "&&Q.preventDefault(),w&&w(Q),Q.target===Q.currentTarget&&he()&&Q.key==="Enter"&&!c&&(Q.preventDefault(),m&&m(Q))}),U1=Ft(Q=>{f&&Q.key===" "&&_.current&&Ie&&!Q.defaultPrevented&&(al.current=!1,_.current.stop(Q,()=>{_.current.pulsate(Q)})),C&&C(Q),m&&Q.target===Q.currentTarget&&he()&&Q.key===" "&&!Q.defaultPrevented&&m(Q)});let cl=a;cl==="button"&&(q.href||q.to)&&(cl=v);const Oo={};cl==="button"?(Oo.type=V===void 0?"button":V,Oo.disabled=c):(!q.href&&!q.to&&(Oo.role="button"),c&&(Oo["aria-disabled"]=c));const W1=Ot(n,Dt,W),Ep=I({},r,{centerRipple:o,component:a,disabled:c,disableRipple:d,disableTouchRipple:u,focusRipple:f,tabIndex:O,focusVisible:Ie}),G1=dE(Ep);return k.jsxs(fE,I({as:cl,className:le(G1.root,l),ownerState:Ep,onBlur:mu,onClick:m,onContextMenu:mi,onFocus:gu,onKeyDown:H1,onKeyUp:U1,onMouseDown:kn,onMouseLeave:Po,onMouseUp:du,onDragLeave:uu,onTouchEnd:hu,onTouchMove:pu,onTouchStart:fu,ref:W1,tabIndex:c?-1:O,type:V},Oo,q,{children:[s,ft?k.jsx(lE,I({ref:M,center:o},j)):null]}))});function pE(e){return Ge("MuiTypography",e)}ze("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const mE=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],gE=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:s}=e,l={root:["root",o,e.align!=="inherit"&&`align${X(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return qe(l,pE,s)},vE=ee("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${X(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>I({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),wg={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},yE={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},bE=e=>yE[e]||e,en=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTypography"}),i=bE(r.color),o=zh(I({},r,{color:i})),{align:s="inherit",className:l,component:a,gutterBottom:c=!1,noWrap:d=!1,paragraph:u=!1,variant:f="body1",variantMapping:v=wg}=o,g=K(o,mE),m=I({},o,{align:s,color:i,className:l,component:a,gutterBottom:c,noWrap:d,paragraph:u,variant:f,variantMapping:v}),b=a||(u?"p":v[f]||wg[f])||"span",p=gE(m);return k.jsx(vE,I({as:b,ref:n,ownerState:m,className:le(p.root,l)},g))});function xE(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:i=!1}=e,o=Ob({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!i&&(s=!0);const{badgeContent:l,max:a=r}=s?o:e,c=l&&Number(l)>a?`${a}+`:l;return{badgeContent:l,invisible:s,max:a,displayValue:c}}const Gb="base";function wE(e){return`${Gb}--${e}`}function kE(e,t){return`${Gb}-${e}-${t}`}function qb(e,t){const n=xb[t];return n?wE(n):kE(e,t)}function CE(e,t){const n={};return t.forEach(r=>{n[r]=qb(e,r)}),n}function kg(e){return e.substring(2).toLowerCase()}function SE(e,t){return t.documentElement.clientWidth(setTimeout(()=>{a.current=!0},0),()=>{a.current=!1}),[]);const d=Ot(t.ref,l),u=Ft(g=>{const m=c.current;c.current=!1;const b=Gi(l.current);if(!a.current||!l.current||"clientX"in g&&SE(g,b))return;if(s.current){s.current=!1;return}let p;g.composedPath?p=g.composedPath().indexOf(l.current)>-1:p=!b.documentElement.contains(g.target)||l.current.contains(g.target),!p&&(n||!m)&&i(g)}),f=g=>m=>{c.current=!0;const b=t.props[g];b&&b(m)},v={ref:d};return o!==!1&&(v[o]=f(o)),x.useEffect(()=>{if(o!==!1){const g=kg(o),m=Gi(l.current),b=()=>{s.current=!0};return m.addEventListener(g,u),m.addEventListener("touchmove",b),()=>{m.removeEventListener(g,u),m.removeEventListener("touchmove",b)}}},[u,o]),r!==!1&&(v[r]=f(r)),x.useEffect(()=>{if(r!==!1){const g=kg(r),m=Gi(l.current);return m.addEventListener(g,u),()=>{m.removeEventListener(g,u)}}},[u,r]),k.jsx(x.Fragment,{children:x.cloneElement(t,v)})}const Fa=Math.min,Kr=Math.max,ja=Math.round,Pl=Math.floor,Er=e=>({x:e,y:e}),TE={left:"right",right:"left",bottom:"top",top:"bottom"},IE={start:"end",end:"start"};function Cg(e,t,n){return Kr(e,Fa(t,n))}function Qc(e,t){return typeof e=="function"?e(t):e}function li(e){return e.split("-")[0]}function Xc(e){return e.split("-")[1]}function Qb(e){return e==="x"?"y":"x"}function Xb(e){return e==="y"?"height":"width"}function Yc(e){return["top","bottom"].includes(li(e))?"y":"x"}function Yb(e){return Qb(Yc(e))}function EE(e,t,n){n===void 0&&(n=!1);const r=Xc(e),i=Yb(e),o=Xb(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=za(s)),[s,za(s)]}function RE(e){const t=za(e);return[kf(e),t,kf(t)]}function kf(e){return e.replace(/start|end/g,t=>IE[t])}function PE(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}function OE(e,t,n,r){const i=Xc(e);let o=PE(li(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(kf)))),o}function za(e){return e.replace(/left|right|bottom|top/g,t=>TE[t])}function _E(e){return{top:0,right:0,bottom:0,left:0,...e}}function AE(e){return typeof e!="number"?_E(e):{top:e,right:e,bottom:e,left:e}}function Ba(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Sg(e,t,n){let{reference:r,floating:i}=e;const o=Yc(t),s=Yb(t),l=Xb(s),a=li(t),c=o==="y",d=r.x+r.width/2-i.width/2,u=r.y+r.height/2-i.height/2,f=r[l]/2-i[l]/2;let v;switch(a){case"top":v={x:d,y:r.y-i.height};break;case"bottom":v={x:d,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:u};break;case"left":v={x:r.x-i.width,y:u};break;default:v={x:r.x,y:r.y}}switch(Xc(t)){case"start":v[s]-=f*(n&&c?-1:1);break;case"end":v[s]+=f*(n&&c?-1:1);break}return v}const DE=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,l=o.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:u}=Sg(c,r,a),f=r,v={},g=0;for(let m=0;mO<=0)){var B,D;const O=(((B=o.flip)==null?void 0:B.index)||0)+1,j=C[O];if(j)return{data:{index:O,overflows:R},reset:{placement:j}};let z=(D=R.filter(V=>V.overflows[0]<=0).sort((V,q)=>V.overflows[1]-q.overflows[1])[0])==null?void 0:D.placement;if(!z)switch(v){case"bestFit":{var P;const V=(P=R.map(q=>[q.placement,q.overflows.filter(W=>W>0).reduce((W,_)=>W+_,0)]).sort((q,W)=>q[1]-W[1])[0])==null?void 0:P[0];V&&(z=V);break}case"initialPlacement":z=l;break}if(i!==z)return{reset:{placement:z}}}return{}}}};async function LE(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=li(n),l=Xc(n),a=Yc(n)==="y",c=["left","top"].includes(s)?-1:1,d=o&&a?-1:1,u=Qc(t,e);let{mainAxis:f,crossAxis:v,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return l&&typeof g=="number"&&(v=l==="end"?g*-1:g),a?{x:v*d,y:f*c}:{x:f*c,y:v*d}}const NE=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:l}=t,a=await LE(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:s}}}}},FE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:l={fn:b=>{let{x:p,y:h}=b;return{x:p,y:h}}},...a}=Qc(e,t),c={x:n,y:r},d=await Kb(t,a),u=Yc(li(i)),f=Qb(u);let v=c[f],g=c[u];if(o){const b=f==="y"?"top":"left",p=f==="y"?"bottom":"right",h=v+d[b],y=v-d[p];v=Cg(h,v,y)}if(s){const b=u==="y"?"top":"left",p=u==="y"?"bottom":"right",h=g+d[b],y=g-d[p];g=Cg(h,g,y)}const m=l.fn({...t,[f]:v,[u]:g});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function wo(e){return Jb(e)?(e.nodeName||"").toLowerCase():"#document"}function Bt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function er(e){var t;return(t=(Jb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Jb(e){return e instanceof Node||e instanceof Bt(e).Node}function Dn(e){return e instanceof Element||e instanceof Bt(e).Element}function Mn(e){return e instanceof HTMLElement||e instanceof Bt(e).HTMLElement}function $g(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Bt(e).ShadowRoot}function el(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=yn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function jE(e){return["table","td","th"].includes(wo(e))}function np(e){const t=rp(),n=yn(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function zE(e){let t=Rr(e);for(;Mn(t)&&!ao(t);){if(np(t))return t;t=Rr(t)}return null}function rp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ao(e){return["html","body","#document"].includes(wo(e))}function yn(e){return Bt(e).getComputedStyle(e)}function Kc(e){return Dn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Rr(e){if(wo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$g(e)&&e.host||er(e);return $g(t)?t.host:t}function Zb(e){const t=Rr(e);return ao(t)?e.ownerDocument?e.ownerDocument.body:e.body:Mn(t)&&el(t)?t:Zb(t)}function Ls(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Zb(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=Bt(i);return o?t.concat(s,s.visualViewport||[],el(i)?i:[],s.frameElement&&n?Ls(s.frameElement):[]):t.concat(i,Ls(i,[],n))}function ex(e){const t=yn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Mn(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,l=ja(n)!==o||ja(r)!==s;return l&&(n=o,r=s),{width:n,height:r,$:l}}function ip(e){return Dn(e)?e:e.contextElement}function qi(e){const t=ip(e);if(!Mn(t))return Er(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=ex(t);let s=(o?ja(n.width):n.width)/r,l=(o?ja(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const BE=Er(0);function tx(e){const t=Bt(e);return!rp()||!t.visualViewport?BE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function VE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Bt(e)?!1:t}function ai(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=ip(e);let s=Er(1);t&&(r?Dn(r)&&(s=qi(r)):s=qi(e));const l=VE(o,n,r)?tx(o):Er(0);let a=(i.left+l.x)/s.x,c=(i.top+l.y)/s.y,d=i.width/s.x,u=i.height/s.y;if(o){const f=Bt(o),v=r&&Dn(r)?Bt(r):r;let g=f,m=g.frameElement;for(;m&&r&&v!==g;){const b=qi(m),p=m.getBoundingClientRect(),h=yn(m),y=p.left+(m.clientLeft+parseFloat(h.paddingLeft))*b.x,w=p.top+(m.clientTop+parseFloat(h.paddingTop))*b.y;a*=b.x,c*=b.y,d*=b.x,u*=b.y,a+=y,c+=w,g=Bt(m),m=g.frameElement}}return Ba({width:d,height:u,x:a,y:c})}const HE=[":popover-open",":modal"];function op(e){return HE.some(t=>{try{return e.matches(t)}catch{return!1}})}function UE(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=er(r),l=t?op(t.floating):!1;if(r===s||l&&o)return n;let a={scrollLeft:0,scrollTop:0},c=Er(1);const d=Er(0),u=Mn(r);if((u||!u&&!o)&&((wo(r)!=="body"||el(s))&&(a=Kc(r)),Mn(r))){const f=ai(r);c=qi(r),d.x=f.x+r.clientLeft,d.y=f.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+d.x,y:n.y*c.y-a.scrollTop*c.y+d.y}}function WE(e){return Array.from(e.getClientRects())}function nx(e){return ai(er(e)).left+Kc(e).scrollLeft}function GE(e){const t=er(e),n=Kc(e),r=e.ownerDocument.body,i=Kr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Kr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+nx(e);const l=-n.scrollTop;return yn(r).direction==="rtl"&&(s+=Kr(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:l}}function qE(e,t){const n=Bt(e),r=er(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,l=0,a=0;if(i){o=i.width,s=i.height;const c=rp();(!c||c&&t==="fixed")&&(l=i.offsetLeft,a=i.offsetTop)}return{width:o,height:s,x:l,y:a}}function QE(e,t){const n=ai(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Mn(e)?qi(e):Er(1),s=e.clientWidth*o.x,l=e.clientHeight*o.y,a=i*o.x,c=r*o.y;return{width:s,height:l,x:a,y:c}}function Tg(e,t,n){let r;if(t==="viewport")r=qE(e,n);else if(t==="document")r=GE(er(e));else if(Dn(t))r=QE(t,n);else{const i=tx(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return Ba(r)}function rx(e,t){const n=Rr(e);return n===t||!Dn(n)||ao(n)?!1:yn(n).position==="fixed"||rx(n,t)}function XE(e,t){const n=t.get(e);if(n)return n;let r=Ls(e,[],!1).filter(l=>Dn(l)&&wo(l)!=="body"),i=null;const o=yn(e).position==="fixed";let s=o?Rr(e):e;for(;Dn(s)&&!ao(s);){const l=yn(s),a=np(s);!a&&l.position==="fixed"&&(i=null),(o?!a&&!i:!a&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||el(s)&&!a&&rx(e,s))?r=r.filter(d=>d!==s):i=l,s=Rr(s)}return t.set(e,r),r}function YE(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?op(t)?[]:XE(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((c,d)=>{const u=Tg(t,d,i);return c.top=Kr(u.top,c.top),c.right=Fa(u.right,c.right),c.bottom=Fa(u.bottom,c.bottom),c.left=Kr(u.left,c.left),c},Tg(t,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function KE(e){const{width:t,height:n}=ex(e);return{width:t,height:n}}function JE(e,t,n){const r=Mn(t),i=er(t),o=n==="fixed",s=ai(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const a=Er(0);if(r||!r&&!o)if((wo(t)!=="body"||el(i))&&(l=Kc(t)),r){const u=ai(t,!0,o,t);a.x=u.x+t.clientLeft,a.y=u.y+t.clientTop}else i&&(a.x=nx(i));const c=s.left+l.scrollLeft-a.x,d=s.top+l.scrollTop-a.y;return{x:c,y:d,width:s.width,height:s.height}}function Qu(e){return yn(e).position==="static"}function Ig(e,t){return!Mn(e)||yn(e).position==="fixed"?null:t?t(e):e.offsetParent}function ix(e,t){const n=Bt(e);if(op(e))return n;if(!Mn(e)){let i=Rr(e);for(;i&&!ao(i);){if(Dn(i)&&!Qu(i))return i;i=Rr(i)}return n}let r=Ig(e,t);for(;r&&jE(r)&&Qu(r);)r=Ig(r,t);return r&&ao(r)&&Qu(r)&&!np(r)?n:r||zE(e)||n}const ZE=async function(e){const t=this.getOffsetParent||ix,n=this.getDimensions,r=await n(e.floating);return{reference:JE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function eR(e){return yn(e).direction==="rtl"}const tR={convertOffsetParentRelativeRectToViewportRelativeRect:UE,getDocumentElement:er,getClippingRect:YE,getOffsetParent:ix,getElementRects:ZE,getClientRects:WE,getDimensions:KE,getScale:qi,isElement:Dn,isRTL:eR};function nR(e,t){let n=null,r;const i=er(e);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),o();const{left:c,top:d,width:u,height:f}=e.getBoundingClientRect();if(l||t(),!u||!f)return;const v=Pl(d),g=Pl(i.clientWidth-(c+u)),m=Pl(i.clientHeight-(d+f)),b=Pl(c),h={rootMargin:-v+"px "+-g+"px "+-m+"px "+-b+"px",threshold:Kr(0,Fa(1,a))||1};let y=!0;function w(C){const $=C[0].intersectionRatio;if($!==a){if(!y)return s();$?s(!1,$):r=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(w,{...h,root:i.ownerDocument})}catch{n=new IntersectionObserver(w,h)}n.observe(e)}return s(!0),o}function Eg(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,c=ip(e),d=i||o?[...c?Ls(c):[],...Ls(t)]:[];d.forEach(p=>{i&&p.addEventListener("scroll",n,{passive:!0}),o&&p.addEventListener("resize",n)});const u=c&&l?nR(c,n):null;let f=-1,v=null;s&&(v=new ResizeObserver(p=>{let[h]=p;h&&h.target===c&&v&&(v.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var y;(y=v)==null||y.observe(t)})),n()}),c&&!a&&v.observe(c),v.observe(t));let g,m=a?ai(e):null;a&&b();function b(){const p=ai(e);m&&(p.x!==m.x||p.y!==m.y||p.width!==m.width||p.height!==m.height)&&n(),m=p,g=requestAnimationFrame(b)}return n(),()=>{var p;d.forEach(h=>{i&&h.removeEventListener("scroll",n),o&&h.removeEventListener("resize",n)}),u==null||u(),(p=v)==null||p.disconnect(),v=null,a&&cancelAnimationFrame(g)}}const Rg=NE,rR=FE,iR=ME,oR=(e,t,n)=>{const r=new Map,i={platform:tR,...n},o={...i.platform,_c:r};return DE(e,t,{...i,platform:o})};var ra=typeof document<"u"?x.useLayoutEffect:x.useEffect;function Va(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Va(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Va(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function ox(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Pg(e,t){const n=ox(e);return Math.round(t*n)/n}function Og(e){const t=x.useRef(e);return ra(()=>{t.current=e}),t}function sR(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:l=!0,whileElementsMounted:a,open:c}=e,[d,u]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,v]=x.useState(r);Va(f,r)||v(r);const[g,m]=x.useState(null),[b,p]=x.useState(null),h=x.useCallback(W=>{W!==$.current&&($.current=W,m(W))},[]),y=x.useCallback(W=>{W!==T.current&&(T.current=W,p(W))},[]),w=o||g,C=s||b,$=x.useRef(null),T=x.useRef(null),R=x.useRef(d),B=a!=null,D=Og(a),P=Og(i),O=x.useCallback(()=>{if(!$.current||!T.current)return;const W={placement:t,strategy:n,middleware:f};P.current&&(W.platform=P.current),oR($.current,T.current,W).then(_=>{const M={..._,isPositioned:!0};j.current&&!Va(R.current,M)&&(R.current=M,dc.flushSync(()=>{u(M)}))})},[f,t,n,P]);ra(()=>{c===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,u(W=>({...W,isPositioned:!1})))},[c]);const j=x.useRef(!1);ra(()=>(j.current=!0,()=>{j.current=!1}),[]),ra(()=>{if(w&&($.current=w),C&&(T.current=C),w&&C){if(D.current)return D.current(w,C,O);O()}},[w,C,O,D,B]);const z=x.useMemo(()=>({reference:$,floating:T,setReference:h,setFloating:y}),[h,y]),V=x.useMemo(()=>({reference:w,floating:C}),[w,C]),q=x.useMemo(()=>{const W={position:n,left:0,top:0};if(!V.floating)return W;const _=Pg(V.floating,d.x),M=Pg(V.floating,d.y);return l?{...W,transform:"translate("+_+"px, "+M+"px)",...ox(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:_,top:M}},[n,l,V.floating,d.x,d.y]);return x.useMemo(()=>({...d,update:O,refs:z,elements:V,floatingStyles:q}),[d,O,z,V,q])}function lR(e){return typeof e=="function"?e():e}const aR=x.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[s,l]=x.useState(null),a=Ot(x.isValidElement(r)?r.ref:null,n);if(Ms(()=>{o||l(lR(i)||document.body)},[i,o]),Ms(()=>{if(s&&!o)return Da(n,s),()=>{Da(n,null)}},[n,s,o]),o){if(x.isValidElement(r)){const c={ref:a};return x.cloneElement(r,c)}return k.jsx(x.Fragment,{children:r})}return k.jsx(x.Fragment,{children:s&&dc.createPortal(r,s)})}),sx="Popup";function cR(e){return qb(sx,e)}CE(sx,["root","open"]);const uR=x.createContext(null);function dR(e){const[t,n]=x.useState(!0),r=x.useRef(!1),i=x.useRef(0),[o,s]=x.useState(!1),l=x.useRef(e);x.useEffect(()=>{!e&&i.current>0&&l.current!==e&&(r.current=!0,n(!1)),l.current=e},[e]);const a=x.useCallback(()=>{r.current=!1,n(!0)},[]),c=x.useCallback(()=>(i.current+=1,s(!0),()=>{i.current-=1,i.current===0&&s(!1)}),[]);let d;return o?e?d=!1:d=!r.current&&t:d=!e,{contextValue:x.useMemo(()=>({requestedEnter:e,onExited:a,registerTransition:c,hasExited:d}),[a,e,c,d]),hasExited:d}}const fR=x.createContext(null),hR=["anchor","children","container","disablePortal","keepMounted","middleware","offset","open","placement","slotProps","slots","strategy"];function pR(e){const{open:t}=e;return qe({root:["root",t&&"open"]},YI(cR))}function mR(e){return typeof e=="function"?e():e}const gR=x.forwardRef(function(t,n){var r;const{anchor:i,children:o,container:s,disablePortal:l=!1,keepMounted:a=!1,middleware:c,offset:d=0,open:u=!1,placement:f="bottom",slotProps:v={},slots:g={},strategy:m="absolute"}=t,b=K(t,hR),{refs:p,elements:h,floatingStyles:y,update:w,placement:C}=sR({elements:{reference:mR(i)},open:u,middleware:c??[Rg(d??0),iR(),rR()],placement:f,strategy:m,whileElementsMounted:a?void 0:Eg}),$=Ot(p.setFloating,n);Ms(()=>{if(a&&u&&h.reference&&h.floating)return Eg(h.reference,h.floating,w)},[a,u,h,w]);const T=I({},t,{disablePortal:l,keepMounted:a,offset:Rg,open:u,placement:f,finalPlacement:C,strategy:m}),{contextValue:R,hasExited:B}=dR(u),D=a&&B?"hidden":void 0,P=pR(T),O=(r=g==null?void 0:g.root)!=null?r:"div",j=Rn({elementType:O,externalSlotProps:v.root,externalForwardedProps:b,ownerState:T,className:P.root,additionalProps:{ref:$,role:"tooltip",style:I({},y,{visibility:D})}}),z=x.useMemo(()=>({placement:C}),[C]);return a||!B?k.jsx(aR,{disablePortal:l,container:s,children:k.jsx(fR.Provider,{value:z,children:k.jsx(uR.Provider,{value:R,children:k.jsx(O,I({},j,{children:o}))})})}):null}),vR=x.createContext(void 0);function yR(){return x.useContext(vR)}function bR(e){return k.jsx(P$,I({},e,{defaultTheme:Wc,themeId:oi}))}const xR=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],wR={entering:{opacity:1},entered:{opacity:1}},kR=x.forwardRef(function(t,n){const r=Gc(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,easing:a,in:c,onEnter:d,onEntered:u,onEntering:f,onExit:v,onExited:g,onExiting:m,style:b,timeout:p=i,TransitionComponent:h=Ln}=t,y=K(t,xR),w=x.useRef(null),C=Ot(w,l.ref,n),$=z=>V=>{if(z){const q=w.current;V===void 0?z(q):z(q,V)}},T=$(f),R=$((z,V)=>{jI(z);const q=Na({style:b,timeout:p,easing:a},{mode:"enter"});z.style.webkitTransition=r.transitions.create("opacity",q),z.style.transition=r.transitions.create("opacity",q),d&&d(z,V)}),B=$(u),D=$(m),P=$(z=>{const V=Na({style:b,timeout:p,easing:a},{mode:"exit"});z.style.webkitTransition=r.transitions.create("opacity",V),z.style.transition=r.transitions.create("opacity",V),v&&v(z)}),O=$(g),j=z=>{o&&o(w.current,z)};return k.jsx(h,I({appear:s,in:c,nodeRef:w,onEnter:R,onEntered:B,onEntering:T,onExit:P,onExited:O,onExiting:D,addEndListener:j,timeout:p},y,{children:(z,V)=>x.cloneElement(l,I({style:I({opacity:0,visibility:z==="exited"&&!c?"hidden":void 0},wR[z],b,l.props.style),ref:C},V))}))});function CR(e){return Ge("MuiBadge",e)}const ir=ze("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),SR=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Xu=10,Yu=4,$R=Ub(),TR=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:i,variant:o,classes:s={}}=e,l={root:["root"],badge:["badge",o,r&&"invisible",`anchorOrigin${X(n.vertical)}${X(n.horizontal)}`,`anchorOrigin${X(n.vertical)}${X(n.horizontal)}${X(i)}`,`overlap${X(i)}`,t!=="default"&&`color${X(t)}`]};return qe(l,CR,s)},IR=ee("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),ER=ee("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${X(n.anchorOrigin.vertical)}${X(n.anchorOrigin.horizontal)}${X(n.overlap)}`],n.color!=="default"&&t[`color${X(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Xu*2,lineHeight:1,padding:"0 6px",height:Xu*2,borderRadius:Xu,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,i;return((r=e.vars)!=null?r:e).palette[n].main&&((i=e.vars)!=null?i:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Yu,height:Yu*2,minWidth:Yu*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ir.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ir.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ir.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ir.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ir.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ir.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ir.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ir.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),RR=x.forwardRef(function(t,n){var r,i,o,s,l,a;const c=$R({props:t,name:"MuiBadge"}),{anchorOrigin:d={vertical:"top",horizontal:"right"},className:u,component:f,components:v={},componentsProps:g={},children:m,overlap:b="rectangular",color:p="default",invisible:h=!1,max:y=99,badgeContent:w,slots:C,slotProps:$,showZero:T=!1,variant:R="standard"}=c,B=K(c,SR),{badgeContent:D,invisible:P,max:O,displayValue:j}=xE({max:y,invisible:h,badgeContent:w,showZero:T}),z=Ob({anchorOrigin:d,color:p,overlap:b,variant:R,badgeContent:w}),V=P||D==null&&R!=="dot",{color:q=p,overlap:W=b,anchorOrigin:_=d,variant:M=R}=V?z:c,H=M!=="dot"?j:void 0,re=I({},c,{badgeContent:D,invisible:V,max:O,displayValue:H,showZero:T,anchorOrigin:_,color:q,overlap:W,variant:M}),ae=TR(re),Dt=(r=(i=C==null?void 0:C.root)!=null?i:v.Root)!=null?r:IR,Ie=(o=(s=C==null?void 0:C.badge)!=null?s:v.Badge)!=null?o:ER,et=(l=$==null?void 0:$.root)!=null?l:g.root,U=(a=$==null?void 0:$.badge)!=null?a:g.badge,xe=Rn({elementType:Dt,externalSlotProps:et,externalForwardedProps:B,additionalProps:{ref:n,as:f},ownerState:re,className:le(et==null?void 0:et.className,ae.root,u)}),ft=Rn({elementType:Ie,externalSlotProps:U,ownerState:re,className:le(ae.badge,U==null?void 0:U.className)});return k.jsxs(Dt,I({},xe,{children:[m,k.jsx(Ie,I({},ft,{children:H}))]}))}),PR=ze("MuiBox",["root"]),OR=Kh(),ot=L$({themeId:oi,defaultTheme:OR,defaultClassName:PR.root,generateClassName:Bh.generate});function _R(e){return Ge("PrivateSwitchBase",e)}ze("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const AR=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],DR=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${X(i)}`],input:["input"]};return qe(o,_R,t)},MR=ee(hE)(({ownerState:e})=>I({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),LR=ee("input",{shouldForwardProp:Hb})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),NR=x.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:o,className:s,defaultChecked:l,disabled:a,disableFocusRipple:c=!1,edge:d=!1,icon:u,id:f,inputProps:v,inputRef:g,name:m,onBlur:b,onChange:p,onFocus:h,readOnly:y,required:w=!1,tabIndex:C,type:$,value:T}=t,R=K(t,AR),[B,D]=Rb({controlled:i,default:!!l,name:"SwitchBase",state:"checked"}),P=yR(),O=M=>{h&&h(M),P&&P.onFocus&&P.onFocus(M)},j=M=>{b&&b(M),P&&P.onBlur&&P.onBlur(M)},z=M=>{if(M.nativeEvent.defaultPrevented)return;const H=M.target.checked;D(H),p&&p(M,H)};let V=a;P&&typeof V>"u"&&(V=P.disabled);const q=$==="checkbox"||$==="radio",W=I({},t,{checked:B,disabled:V,disableFocusRipple:c,edge:d}),_=DR(W);return k.jsxs(MR,I({component:"span",className:le(_.root,s),centerRipple:!0,focusRipple:!c,disabled:V,tabIndex:null,role:void 0,onFocus:O,onBlur:j,ownerState:W,ref:n},R,{children:[k.jsx(LR,I({autoFocus:r,checked:i,defaultChecked:l,className:_.input,disabled:V,id:q?f:void 0,name:m,onChange:z,readOnly:y,ref:g,required:w,ownerState:W,tabIndex:C,type:$},$==="checkbox"&&T===void 0?{}:{value:T},v)),B?o:u]}))});function FR(e){return Ge("MuiCircularProgress",e)}ze("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const jR=["className","color","disableShrink","size","style","thickness","value","variant"];let Jc=e=>e,_g,Ag,Dg,Mg;const or=44,zR=yo(_g||(_g=Jc` +`),Qt.rippleVisible,oE,kf,({theme:e})=>e.transitions.easing.easeInOut,Qt.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Qt.child,Qt.childLeaving,sE,kf,({theme:e})=>e.transitions.easing.easeInOut,Qt.childPulsate,lE,({theme:e})=>e.transitions.easing.easeInOut),uE=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:s}=r,l=K(r,rE),[a,c]=x.useState([]),d=x.useRef(0),u=x.useRef(null);x.useEffect(()=>{u.current&&(u.current(),u.current=null)},[a]);const f=x.useRef(!1),v=Ob(),g=x.useRef(null),m=x.useRef(null),b=x.useCallback(w=>{const{pulsate:C,rippleX:$,rippleY:I,rippleSize:P,cb:L}=w;c(D=>[...D,k.jsx(cE,{classes:{ripple:le(o.ripple,Qt.ripple),rippleVisible:le(o.rippleVisible,Qt.rippleVisible),ripplePulsate:le(o.ripplePulsate,Qt.ripplePulsate),child:le(o.child,Qt.child),childLeaving:le(o.childLeaving,Qt.childLeaving),childPulsate:le(o.childPulsate,Qt.childPulsate)},timeout:kf,pulsate:C,rippleX:$,rippleY:I,rippleSize:P},d.current)]),d.current+=1,u.current=L},[o]),p=x.useCallback((w={},C={},$=()=>{})=>{const{pulsate:I=!1,center:P=i||C.pulsate,fakeElement:L=!1}=C;if((w==null?void 0:w.type)==="mousedown"&&f.current){f.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(f.current=!0);const D=L?null:m.current,O=D?D.getBoundingClientRect():{width:0,height:0,left:0,top:0};let R,F,B;if(P||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)R=Math.round(O.width/2),F=Math.round(O.height/2);else{const{clientX:V,clientY:q}=w.touches&&w.touches.length>0?w.touches[0]:w;R=Math.round(V-O.left),F=Math.round(q-O.top)}if(P)B=Math.sqrt((2*O.width**2+O.height**2)/3),B%2===0&&(B+=1);else{const V=Math.max(Math.abs((D?D.clientWidth:0)-R),R)*2+2,q=Math.max(Math.abs((D?D.clientHeight:0)-F),F)*2+2;B=Math.sqrt(V**2+q**2)}w!=null&&w.touches?g.current===null&&(g.current=()=>{b({pulsate:I,rippleX:R,rippleY:F,rippleSize:B,cb:$})},v.start(iE,()=>{g.current&&(g.current(),g.current=null)})):b({pulsate:I,rippleX:R,rippleY:F,rippleSize:B,cb:$})},[i,b,v]),h=x.useCallback(()=>{p({},{pulsate:!0})},[p]),y=x.useCallback((w,C)=>{if(v.clear(),(w==null?void 0:w.type)==="touchend"&&g.current){g.current(),g.current=null,v.start(0,()=>{y(w,C)});return}g.current=null,c($=>$.length>0?$.slice(1):$),u.current=C},[v]);return x.useImperativeHandle(n,()=>({pulsate:h,start:p,stop:y}),[h,p,y]),k.jsx(aE,T({className:le(Qt.root,o.root,s),ref:m},l,{children:k.jsx(ep,{component:null,exit:!0,children:a})}))});function dE(e){return Ge("MuiButtonBase",e)}const fE=ze("MuiButtonBase",["root","disabled","focusVisible"]),hE=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],pE=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,s=qe({root:["root",t&&"disabled",n&&"focusVisible"]},dE,i);return n&&r&&(s.root+=` ${r}`),s},mE=ee("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.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"},[`&.${fE.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),gE=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:s,className:l,component:a="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:u=!1,focusRipple:f=!1,LinkComponent:v="a",onBlur:g,onClick:m,onContextMenu:b,onDragLeave:p,onFocus:h,onFocusVisible:y,onKeyDown:w,onKeyUp:C,onMouseDown:$,onMouseLeave:I,onMouseUp:P,onTouchEnd:L,onTouchMove:D,onTouchStart:O,tabIndex:R=0,TouchRippleProps:F,touchRippleRef:B,type:V}=r,q=K(r,hE),W=x.useRef(null),_=x.useRef(null),M=Ot(_,B),{isFocusVisibleRef:H,onFocus:re,onBlur:ae,ref:Dt}=Wh(),[Ie,et]=x.useState(!1);c&&Ie&&et(!1),x.useImperativeHandle(i,()=>({focusVisible:()=>{et(!0),W.current.focus()}}),[]);const[U,xe]=x.useState(!1);x.useEffect(()=>{xe(!0)},[]);const dt=U&&!d&&!c;x.useEffect(()=>{Ie&&f&&!d&&U&&_.current.pulsate()},[d,f,Ie,U]);function Qe(Q,Pp,Y1=u){return Ft(Op=>(Pp&&Pp(Op),!Y1&&_.current&&_.current[Q](Op),!0))}const kn=Qe("start",$),mi=Qe("stop",b),du=Qe("stop",p),fu=Qe("stop",P),Oo=Qe("stop",Q=>{Ie&&Q.preventDefault(),I&&I(Q)}),hu=Qe("start",O),pu=Qe("stop",L),mu=Qe("stop",D),gu=Qe("stop",Q=>{ae(Q),H.current===!1&&et(!1),g&&g(Q)},!1),vu=Ft(Q=>{W.current||(W.current=Q.currentTarget),re(Q),H.current===!0&&(et(!0),y&&y(Q)),h&&h(Q)}),he=()=>{const Q=W.current;return a&&a!=="button"&&!(Q.tagName==="A"&&Q.href)},al=x.useRef(!1),G1=Ft(Q=>{f&&!al.current&&Ie&&_.current&&Q.key===" "&&(al.current=!0,_.current.stop(Q,()=>{_.current.start(Q)})),Q.target===Q.currentTarget&&he()&&Q.key===" "&&Q.preventDefault(),w&&w(Q),Q.target===Q.currentTarget&&he()&&Q.key==="Enter"&&!c&&(Q.preventDefault(),m&&m(Q))}),q1=Ft(Q=>{f&&Q.key===" "&&_.current&&Ie&&!Q.defaultPrevented&&(al.current=!1,_.current.stop(Q,()=>{_.current.pulsate(Q)})),C&&C(Q),m&&Q.target===Q.currentTarget&&he()&&Q.key===" "&&!Q.defaultPrevented&&m(Q)});let cl=a;cl==="button"&&(q.href||q.to)&&(cl=v);const _o={};cl==="button"?(_o.type=V===void 0?"button":V,_o.disabled=c):(!q.href&&!q.to&&(_o.role="button"),c&&(_o["aria-disabled"]=c));const Q1=Ot(n,Dt,W),Rp=T({},r,{centerRipple:o,component:a,disabled:c,disableRipple:d,disableTouchRipple:u,focusRipple:f,tabIndex:R,focusVisible:Ie}),X1=pE(Rp);return k.jsxs(mE,T({as:cl,className:le(X1.root,l),ownerState:Rp,onBlur:gu,onClick:m,onContextMenu:mi,onFocus:vu,onKeyDown:G1,onKeyUp:q1,onMouseDown:kn,onMouseLeave:Oo,onMouseUp:fu,onDragLeave:du,onTouchEnd:pu,onTouchMove:mu,onTouchStart:hu,ref:Q1,tabIndex:c?-1:R,type:V},_o,q,{children:[s,dt?k.jsx(uE,T({ref:M,center:o},F)):null]}))});function vE(e){return Ge("MuiTypography",e)}ze("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const yE=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],bE=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:s}=e,l={root:["root",o,e.align!=="inherit"&&`align${X(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return qe(l,vE,s)},xE=ee("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${X(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>T({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),kg={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},wE={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},kE=e=>wE[e]||e,en=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTypography"}),i=kE(r.color),o=Bh(T({},r,{color:i})),{align:s="inherit",className:l,component:a,gutterBottom:c=!1,noWrap:d=!1,paragraph:u=!1,variant:f="body1",variantMapping:v=kg}=o,g=K(o,yE),m=T({},o,{align:s,color:i,className:l,component:a,gutterBottom:c,noWrap:d,paragraph:u,variant:f,variantMapping:v}),b=a||(u?"p":v[f]||kg[f])||"span",p=bE(m);return k.jsx(xE,T({as:b,ref:n,ownerState:m,className:le(p.root,l)},g))});function CE(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:i=!1}=e,o=_b({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!i&&(s=!0);const{badgeContent:l,max:a=r}=s?o:e,c=l&&Number(l)>a?`${a}+`:l;return{badgeContent:l,invisible:s,max:a,displayValue:c}}const qb="base";function SE(e){return`${qb}--${e}`}function $E(e,t){return`${qb}-${e}-${t}`}function Qb(e,t){const n=wb[t];return n?SE(n):$E(e,t)}function TE(e,t){const n={};return t.forEach(r=>{n[r]=Qb(e,r)}),n}function Cg(e){return e.substring(2).toLowerCase()}function IE(e,t){return t.documentElement.clientWidth(setTimeout(()=>{a.current=!0},0),()=>{a.current=!1}),[]);const d=Ot(t.ref,l),u=Ft(g=>{const m=c.current;c.current=!1;const b=Gi(l.current);if(!a.current||!l.current||"clientX"in g&&IE(g,b))return;if(s.current){s.current=!1;return}let p;g.composedPath?p=g.composedPath().indexOf(l.current)>-1:p=!b.documentElement.contains(g.target)||l.current.contains(g.target),!p&&(n||!m)&&i(g)}),f=g=>m=>{c.current=!0;const b=t.props[g];b&&b(m)},v={ref:d};return o!==!1&&(v[o]=f(o)),x.useEffect(()=>{if(o!==!1){const g=Cg(o),m=Gi(l.current),b=()=>{s.current=!0};return m.addEventListener(g,u),m.addEventListener("touchmove",b),()=>{m.removeEventListener(g,u),m.removeEventListener("touchmove",b)}}},[u,o]),r!==!1&&(v[r]=f(r)),x.useEffect(()=>{if(r!==!1){const g=Cg(r),m=Gi(l.current);return m.addEventListener(g,u),()=>{m.removeEventListener(g,u)}}},[u,r]),k.jsx(x.Fragment,{children:x.cloneElement(t,v)})}const Fa=Math.min,Kr=Math.max,ja=Math.round,Pl=Math.floor,Er=e=>({x:e,y:e}),RE={left:"right",right:"left",bottom:"top",top:"bottom"},PE={start:"end",end:"start"};function Sg(e,t,n){return Kr(e,Fa(t,n))}function Xc(e,t){return typeof e=="function"?e(t):e}function li(e){return e.split("-")[0]}function Yc(e){return e.split("-")[1]}function Xb(e){return e==="x"?"y":"x"}function Yb(e){return e==="y"?"height":"width"}function Kc(e){return["top","bottom"].includes(li(e))?"y":"x"}function Kb(e){return Xb(Kc(e))}function OE(e,t,n){n===void 0&&(n=!1);const r=Yc(e),i=Kb(e),o=Yb(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=za(s)),[s,za(s)]}function _E(e){const t=za(e);return[Cf(e),t,Cf(t)]}function Cf(e){return e.replace(/start|end/g,t=>PE[t])}function AE(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}function DE(e,t,n,r){const i=Yc(e);let o=AE(li(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(Cf)))),o}function za(e){return e.replace(/left|right|bottom|top/g,t=>RE[t])}function ME(e){return{top:0,right:0,bottom:0,left:0,...e}}function LE(e){return typeof e!="number"?ME(e):{top:e,right:e,bottom:e,left:e}}function Ba(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function $g(e,t,n){let{reference:r,floating:i}=e;const o=Kc(t),s=Kb(t),l=Yb(s),a=li(t),c=o==="y",d=r.x+r.width/2-i.width/2,u=r.y+r.height/2-i.height/2,f=r[l]/2-i[l]/2;let v;switch(a){case"top":v={x:d,y:r.y-i.height};break;case"bottom":v={x:d,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:u};break;case"left":v={x:r.x-i.width,y:u};break;default:v={x:r.x,y:r.y}}switch(Yc(t)){case"start":v[s]-=f*(n&&c?-1:1);break;case"end":v[s]+=f*(n&&c?-1:1);break}return v}const NE=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,l=o.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:u}=$g(c,r,a),f=r,v={},g=0;for(let m=0;mR<=0)){var L,D;const R=(((L=o.flip)==null?void 0:L.index)||0)+1,F=C[R];if(F)return{data:{index:R,overflows:P},reset:{placement:F}};let B=(D=P.filter(V=>V.overflows[0]<=0).sort((V,q)=>V.overflows[1]-q.overflows[1])[0])==null?void 0:D.placement;if(!B)switch(v){case"bestFit":{var O;const V=(O=P.map(q=>[q.placement,q.overflows.filter(W=>W>0).reduce((W,_)=>W+_,0)]).sort((q,W)=>q[1]-W[1])[0])==null?void 0:O[0];V&&(B=V);break}case"initialPlacement":B=l;break}if(i!==B)return{reset:{placement:B}}}return{}}}};async function jE(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=li(n),l=Yc(n),a=Kc(n)==="y",c=["left","top"].includes(s)?-1:1,d=o&&a?-1:1,u=Xc(t,e);let{mainAxis:f,crossAxis:v,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return l&&typeof g=="number"&&(v=l==="end"?g*-1:g),a?{x:v*d,y:f*c}:{x:f*c,y:v*d}}const zE=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:l}=t,a=await jE(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:s}}}}},BE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:l={fn:b=>{let{x:p,y:h}=b;return{x:p,y:h}}},...a}=Xc(e,t),c={x:n,y:r},d=await Jb(t,a),u=Kc(li(i)),f=Xb(u);let v=c[f],g=c[u];if(o){const b=f==="y"?"top":"left",p=f==="y"?"bottom":"right",h=v+d[b],y=v-d[p];v=Sg(h,v,y)}if(s){const b=u==="y"?"top":"left",p=u==="y"?"bottom":"right",h=g+d[b],y=g-d[p];g=Sg(h,g,y)}const m=l.fn({...t,[f]:v,[u]:g});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function ko(e){return Zb(e)?(e.nodeName||"").toLowerCase():"#document"}function Bt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function er(e){var t;return(t=(Zb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Zb(e){return e instanceof Node||e instanceof Bt(e).Node}function Dn(e){return e instanceof Element||e instanceof Bt(e).Element}function Mn(e){return e instanceof HTMLElement||e instanceof Bt(e).HTMLElement}function Tg(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Bt(e).ShadowRoot}function el(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=yn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function VE(e){return["table","td","th"].includes(ko(e))}function np(e){const t=rp(),n=yn(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function HE(e){let t=Rr(e);for(;Mn(t)&&!co(t);){if(np(t))return t;t=Rr(t)}return null}function rp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function co(e){return["html","body","#document"].includes(ko(e))}function yn(e){return Bt(e).getComputedStyle(e)}function Jc(e){return Dn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Rr(e){if(ko(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Tg(e)&&e.host||er(e);return Tg(t)?t.host:t}function ex(e){const t=Rr(e);return co(t)?e.ownerDocument?e.ownerDocument.body:e.body:Mn(t)&&el(t)?t:ex(t)}function Ls(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=ex(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=Bt(i);return o?t.concat(s,s.visualViewport||[],el(i)?i:[],s.frameElement&&n?Ls(s.frameElement):[]):t.concat(i,Ls(i,[],n))}function tx(e){const t=yn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Mn(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,l=ja(n)!==o||ja(r)!==s;return l&&(n=o,r=s),{width:n,height:r,$:l}}function ip(e){return Dn(e)?e:e.contextElement}function qi(e){const t=ip(e);if(!Mn(t))return Er(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=tx(t);let s=(o?ja(n.width):n.width)/r,l=(o?ja(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const UE=Er(0);function nx(e){const t=Bt(e);return!rp()||!t.visualViewport?UE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function WE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Bt(e)?!1:t}function ai(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=ip(e);let s=Er(1);t&&(r?Dn(r)&&(s=qi(r)):s=qi(e));const l=WE(o,n,r)?nx(o):Er(0);let a=(i.left+l.x)/s.x,c=(i.top+l.y)/s.y,d=i.width/s.x,u=i.height/s.y;if(o){const f=Bt(o),v=r&&Dn(r)?Bt(r):r;let g=f,m=g.frameElement;for(;m&&r&&v!==g;){const b=qi(m),p=m.getBoundingClientRect(),h=yn(m),y=p.left+(m.clientLeft+parseFloat(h.paddingLeft))*b.x,w=p.top+(m.clientTop+parseFloat(h.paddingTop))*b.y;a*=b.x,c*=b.y,d*=b.x,u*=b.y,a+=y,c+=w,g=Bt(m),m=g.frameElement}}return Ba({width:d,height:u,x:a,y:c})}const GE=[":popover-open",":modal"];function op(e){return GE.some(t=>{try{return e.matches(t)}catch{return!1}})}function qE(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=er(r),l=t?op(t.floating):!1;if(r===s||l&&o)return n;let a={scrollLeft:0,scrollTop:0},c=Er(1);const d=Er(0),u=Mn(r);if((u||!u&&!o)&&((ko(r)!=="body"||el(s))&&(a=Jc(r)),Mn(r))){const f=ai(r);c=qi(r),d.x=f.x+r.clientLeft,d.y=f.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+d.x,y:n.y*c.y-a.scrollTop*c.y+d.y}}function QE(e){return Array.from(e.getClientRects())}function rx(e){return ai(er(e)).left+Jc(e).scrollLeft}function XE(e){const t=er(e),n=Jc(e),r=e.ownerDocument.body,i=Kr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Kr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+rx(e);const l=-n.scrollTop;return yn(r).direction==="rtl"&&(s+=Kr(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:l}}function YE(e,t){const n=Bt(e),r=er(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,l=0,a=0;if(i){o=i.width,s=i.height;const c=rp();(!c||c&&t==="fixed")&&(l=i.offsetLeft,a=i.offsetTop)}return{width:o,height:s,x:l,y:a}}function KE(e,t){const n=ai(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Mn(e)?qi(e):Er(1),s=e.clientWidth*o.x,l=e.clientHeight*o.y,a=i*o.x,c=r*o.y;return{width:s,height:l,x:a,y:c}}function Ig(e,t,n){let r;if(t==="viewport")r=YE(e,n);else if(t==="document")r=XE(er(e));else if(Dn(t))r=KE(t,n);else{const i=nx(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return Ba(r)}function ix(e,t){const n=Rr(e);return n===t||!Dn(n)||co(n)?!1:yn(n).position==="fixed"||ix(n,t)}function JE(e,t){const n=t.get(e);if(n)return n;let r=Ls(e,[],!1).filter(l=>Dn(l)&&ko(l)!=="body"),i=null;const o=yn(e).position==="fixed";let s=o?Rr(e):e;for(;Dn(s)&&!co(s);){const l=yn(s),a=np(s);!a&&l.position==="fixed"&&(i=null),(o?!a&&!i:!a&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||el(s)&&!a&&ix(e,s))?r=r.filter(d=>d!==s):i=l,s=Rr(s)}return t.set(e,r),r}function ZE(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?op(t)?[]:JE(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((c,d)=>{const u=Ig(t,d,i);return c.top=Kr(u.top,c.top),c.right=Fa(u.right,c.right),c.bottom=Fa(u.bottom,c.bottom),c.left=Kr(u.left,c.left),c},Ig(t,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function eR(e){const{width:t,height:n}=tx(e);return{width:t,height:n}}function tR(e,t,n){const r=Mn(t),i=er(t),o=n==="fixed",s=ai(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const a=Er(0);if(r||!r&&!o)if((ko(t)!=="body"||el(i))&&(l=Jc(t)),r){const u=ai(t,!0,o,t);a.x=u.x+t.clientLeft,a.y=u.y+t.clientTop}else i&&(a.x=rx(i));const c=s.left+l.scrollLeft-a.x,d=s.top+l.scrollTop-a.y;return{x:c,y:d,width:s.width,height:s.height}}function Xu(e){return yn(e).position==="static"}function Eg(e,t){return!Mn(e)||yn(e).position==="fixed"?null:t?t(e):e.offsetParent}function ox(e,t){const n=Bt(e);if(op(e))return n;if(!Mn(e)){let i=Rr(e);for(;i&&!co(i);){if(Dn(i)&&!Xu(i))return i;i=Rr(i)}return n}let r=Eg(e,t);for(;r&&VE(r)&&Xu(r);)r=Eg(r,t);return r&&co(r)&&Xu(r)&&!np(r)?n:r||HE(e)||n}const nR=async function(e){const t=this.getOffsetParent||ox,n=this.getDimensions,r=await n(e.floating);return{reference:tR(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function rR(e){return yn(e).direction==="rtl"}const iR={convertOffsetParentRelativeRectToViewportRelativeRect:qE,getDocumentElement:er,getClippingRect:ZE,getOffsetParent:ox,getElementRects:nR,getClientRects:QE,getDimensions:eR,getScale:qi,isElement:Dn,isRTL:rR};function oR(e,t){let n=null,r;const i=er(e);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),o();const{left:c,top:d,width:u,height:f}=e.getBoundingClientRect();if(l||t(),!u||!f)return;const v=Pl(d),g=Pl(i.clientWidth-(c+u)),m=Pl(i.clientHeight-(d+f)),b=Pl(c),h={rootMargin:-v+"px "+-g+"px "+-m+"px "+-b+"px",threshold:Kr(0,Fa(1,a))||1};let y=!0;function w(C){const $=C[0].intersectionRatio;if($!==a){if(!y)return s();$?s(!1,$):r=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(w,{...h,root:i.ownerDocument})}catch{n=new IntersectionObserver(w,h)}n.observe(e)}return s(!0),o}function Rg(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,c=ip(e),d=i||o?[...c?Ls(c):[],...Ls(t)]:[];d.forEach(p=>{i&&p.addEventListener("scroll",n,{passive:!0}),o&&p.addEventListener("resize",n)});const u=c&&l?oR(c,n):null;let f=-1,v=null;s&&(v=new ResizeObserver(p=>{let[h]=p;h&&h.target===c&&v&&(v.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var y;(y=v)==null||y.observe(t)})),n()}),c&&!a&&v.observe(c),v.observe(t));let g,m=a?ai(e):null;a&&b();function b(){const p=ai(e);m&&(p.x!==m.x||p.y!==m.y||p.width!==m.width||p.height!==m.height)&&n(),m=p,g=requestAnimationFrame(b)}return n(),()=>{var p;d.forEach(h=>{i&&h.removeEventListener("scroll",n),o&&h.removeEventListener("resize",n)}),u==null||u(),(p=v)==null||p.disconnect(),v=null,a&&cancelAnimationFrame(g)}}const Pg=zE,sR=BE,lR=FE,aR=(e,t,n)=>{const r=new Map,i={platform:iR,...n},o={...i.platform,_c:r};return NE(e,t,{...i,platform:o})};var ra=typeof document<"u"?x.useLayoutEffect:x.useEffect;function Va(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Va(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Va(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function sx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Og(e,t){const n=sx(e);return Math.round(t*n)/n}function _g(e){const t=x.useRef(e);return ra(()=>{t.current=e}),t}function cR(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:l=!0,whileElementsMounted:a,open:c}=e,[d,u]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,v]=x.useState(r);Va(f,r)||v(r);const[g,m]=x.useState(null),[b,p]=x.useState(null),h=x.useCallback(W=>{W!==$.current&&($.current=W,m(W))},[]),y=x.useCallback(W=>{W!==I.current&&(I.current=W,p(W))},[]),w=o||g,C=s||b,$=x.useRef(null),I=x.useRef(null),P=x.useRef(d),L=a!=null,D=_g(a),O=_g(i),R=x.useCallback(()=>{if(!$.current||!I.current)return;const W={placement:t,strategy:n,middleware:f};O.current&&(W.platform=O.current),aR($.current,I.current,W).then(_=>{const M={..._,isPositioned:!0};F.current&&!Va(P.current,M)&&(P.current=M,dc.flushSync(()=>{u(M)}))})},[f,t,n,O]);ra(()=>{c===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,u(W=>({...W,isPositioned:!1})))},[c]);const F=x.useRef(!1);ra(()=>(F.current=!0,()=>{F.current=!1}),[]),ra(()=>{if(w&&($.current=w),C&&(I.current=C),w&&C){if(D.current)return D.current(w,C,R);R()}},[w,C,R,D,L]);const B=x.useMemo(()=>({reference:$,floating:I,setReference:h,setFloating:y}),[h,y]),V=x.useMemo(()=>({reference:w,floating:C}),[w,C]),q=x.useMemo(()=>{const W={position:n,left:0,top:0};if(!V.floating)return W;const _=Og(V.floating,d.x),M=Og(V.floating,d.y);return l?{...W,transform:"translate("+_+"px, "+M+"px)",...sx(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:_,top:M}},[n,l,V.floating,d.x,d.y]);return x.useMemo(()=>({...d,update:R,refs:B,elements:V,floatingStyles:q}),[d,R,B,V,q])}function uR(e){return typeof e=="function"?e():e}const dR=x.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[s,l]=x.useState(null),a=Ot(x.isValidElement(r)?r.ref:null,n);if(Ms(()=>{o||l(uR(i)||document.body)},[i,o]),Ms(()=>{if(s&&!o)return Da(n,s),()=>{Da(n,null)}},[n,s,o]),o){if(x.isValidElement(r)){const c={ref:a};return x.cloneElement(r,c)}return k.jsx(x.Fragment,{children:r})}return k.jsx(x.Fragment,{children:s&&dc.createPortal(r,s)})}),lx="Popup";function fR(e){return Qb(lx,e)}TE(lx,["root","open"]);const hR=x.createContext(null);function pR(e){const[t,n]=x.useState(!0),r=x.useRef(!1),i=x.useRef(0),[o,s]=x.useState(!1),l=x.useRef(e);x.useEffect(()=>{!e&&i.current>0&&l.current!==e&&(r.current=!0,n(!1)),l.current=e},[e]);const a=x.useCallback(()=>{r.current=!1,n(!0)},[]),c=x.useCallback(()=>(i.current+=1,s(!0),()=>{i.current-=1,i.current===0&&s(!1)}),[]);let d;return o?e?d=!1:d=!r.current&&t:d=!e,{contextValue:x.useMemo(()=>({requestedEnter:e,onExited:a,registerTransition:c,hasExited:d}),[a,e,c,d]),hasExited:d}}const mR=x.createContext(null),gR=["anchor","children","container","disablePortal","keepMounted","middleware","offset","open","placement","slotProps","slots","strategy"];function vR(e){const{open:t}=e;return qe({root:["root",t&&"open"]},ZI(fR))}function yR(e){return typeof e=="function"?e():e}const bR=x.forwardRef(function(t,n){var r;const{anchor:i,children:o,container:s,disablePortal:l=!1,keepMounted:a=!1,middleware:c,offset:d=0,open:u=!1,placement:f="bottom",slotProps:v={},slots:g={},strategy:m="absolute"}=t,b=K(t,gR),{refs:p,elements:h,floatingStyles:y,update:w,placement:C}=cR({elements:{reference:yR(i)},open:u,middleware:c??[Pg(d??0),lR(),sR()],placement:f,strategy:m,whileElementsMounted:a?void 0:Rg}),$=Ot(p.setFloating,n);Ms(()=>{if(a&&u&&h.reference&&h.floating)return Rg(h.reference,h.floating,w)},[a,u,h,w]);const I=T({},t,{disablePortal:l,keepMounted:a,offset:Pg,open:u,placement:f,finalPlacement:C,strategy:m}),{contextValue:P,hasExited:L}=pR(u),D=a&&L?"hidden":void 0,O=vR(I),R=(r=g==null?void 0:g.root)!=null?r:"div",F=Rn({elementType:R,externalSlotProps:v.root,externalForwardedProps:b,ownerState:I,className:O.root,additionalProps:{ref:$,role:"tooltip",style:T({},y,{visibility:D})}}),B=x.useMemo(()=>({placement:C}),[C]);return a||!L?k.jsx(dR,{disablePortal:l,container:s,children:k.jsx(mR.Provider,{value:B,children:k.jsx(hR.Provider,{value:P,children:k.jsx(R,T({},F,{children:o}))})})}):null}),xR=x.createContext(void 0);function wR(){return x.useContext(xR)}function kR(e){return k.jsx(A$,T({},e,{defaultTheme:Gc,themeId:oi}))}const CR=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],SR={entering:{opacity:1},entered:{opacity:1}},$R=x.forwardRef(function(t,n){const r=qc(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,easing:a,in:c,onEnter:d,onEntered:u,onEntering:f,onExit:v,onExited:g,onExiting:m,style:b,timeout:p=i,TransitionComponent:h=Ln}=t,y=K(t,CR),w=x.useRef(null),C=Ot(w,l.ref,n),$=B=>V=>{if(B){const q=w.current;V===void 0?B(q):B(q,V)}},I=$(f),P=$((B,V)=>{VI(B);const q=Na({style:b,timeout:p,easing:a},{mode:"enter"});B.style.webkitTransition=r.transitions.create("opacity",q),B.style.transition=r.transitions.create("opacity",q),d&&d(B,V)}),L=$(u),D=$(m),O=$(B=>{const V=Na({style:b,timeout:p,easing:a},{mode:"exit"});B.style.webkitTransition=r.transitions.create("opacity",V),B.style.transition=r.transitions.create("opacity",V),v&&v(B)}),R=$(g),F=B=>{o&&o(w.current,B)};return k.jsx(h,T({appear:s,in:c,nodeRef:w,onEnter:P,onEntered:L,onEntering:I,onExit:O,onExited:R,onExiting:D,addEndListener:F,timeout:p},y,{children:(B,V)=>x.cloneElement(l,T({style:T({opacity:0,visibility:B==="exited"&&!c?"hidden":void 0},SR[B],b,l.props.style),ref:C},V))}))});function TR(e){return Ge("MuiBadge",e)}const ir=ze("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),IR=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Yu=10,Ku=4,ER=Wb(),RR=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:i,variant:o,classes:s={}}=e,l={root:["root"],badge:["badge",o,r&&"invisible",`anchorOrigin${X(n.vertical)}${X(n.horizontal)}`,`anchorOrigin${X(n.vertical)}${X(n.horizontal)}${X(i)}`,`overlap${X(i)}`,t!=="default"&&`color${X(t)}`]};return qe(l,TR,s)},PR=ee("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),OR=ee("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${X(n.anchorOrigin.vertical)}${X(n.anchorOrigin.horizontal)}${X(n.overlap)}`],n.color!=="default"&&t[`color${X(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Yu*2,lineHeight:1,padding:"0 6px",height:Yu*2,borderRadius:Yu,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,i;return((r=e.vars)!=null?r:e).palette[n].main&&((i=e.vars)!=null?i:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Ku,height:Ku*2,minWidth:Ku*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ir.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ir.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ir.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ir.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ir.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ir.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ir.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ir.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),_R=x.forwardRef(function(t,n){var r,i,o,s,l,a;const c=ER({props:t,name:"MuiBadge"}),{anchorOrigin:d={vertical:"top",horizontal:"right"},className:u,component:f,components:v={},componentsProps:g={},children:m,overlap:b="rectangular",color:p="default",invisible:h=!1,max:y=99,badgeContent:w,slots:C,slotProps:$,showZero:I=!1,variant:P="standard"}=c,L=K(c,IR),{badgeContent:D,invisible:O,max:R,displayValue:F}=CE({max:y,invisible:h,badgeContent:w,showZero:I}),B=_b({anchorOrigin:d,color:p,overlap:b,variant:P,badgeContent:w}),V=O||D==null&&P!=="dot",{color:q=p,overlap:W=b,anchorOrigin:_=d,variant:M=P}=V?B:c,H=M!=="dot"?F:void 0,re=T({},c,{badgeContent:D,invisible:V,max:R,displayValue:H,showZero:I,anchorOrigin:_,color:q,overlap:W,variant:M}),ae=RR(re),Dt=(r=(i=C==null?void 0:C.root)!=null?i:v.Root)!=null?r:PR,Ie=(o=(s=C==null?void 0:C.badge)!=null?s:v.Badge)!=null?o:OR,et=(l=$==null?void 0:$.root)!=null?l:g.root,U=(a=$==null?void 0:$.badge)!=null?a:g.badge,xe=Rn({elementType:Dt,externalSlotProps:et,externalForwardedProps:L,additionalProps:{ref:n,as:f},ownerState:re,className:le(et==null?void 0:et.className,ae.root,u)}),dt=Rn({elementType:Ie,externalSlotProps:U,ownerState:re,className:le(ae.badge,U==null?void 0:U.className)});return k.jsxs(Dt,T({},xe,{children:[m,k.jsx(Ie,T({},dt,{children:H}))]}))}),AR=ze("MuiBox",["root"]),DR=Kh(),mt=j$({themeId:oi,defaultTheme:DR,defaultClassName:AR.root,generateClassName:Vh.generate});function MR(e){return Ge("PrivateSwitchBase",e)}ze("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const LR=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],NR=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${X(i)}`],input:["input"]};return qe(o,MR,t)},FR=ee(gE)(({ownerState:e})=>T({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),jR=ee("input",{shouldForwardProp:Ub})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),zR=x.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:o,className:s,defaultChecked:l,disabled:a,disableFocusRipple:c=!1,edge:d=!1,icon:u,id:f,inputProps:v,inputRef:g,name:m,onBlur:b,onChange:p,onFocus:h,readOnly:y,required:w=!1,tabIndex:C,type:$,value:I}=t,P=K(t,LR),[L,D]=Pb({controlled:i,default:!!l,name:"SwitchBase",state:"checked"}),O=wR(),R=M=>{h&&h(M),O&&O.onFocus&&O.onFocus(M)},F=M=>{b&&b(M),O&&O.onBlur&&O.onBlur(M)},B=M=>{if(M.nativeEvent.defaultPrevented)return;const H=M.target.checked;D(H),p&&p(M,H)};let V=a;O&&typeof V>"u"&&(V=O.disabled);const q=$==="checkbox"||$==="radio",W=T({},t,{checked:L,disabled:V,disableFocusRipple:c,edge:d}),_=NR(W);return k.jsxs(FR,T({component:"span",className:le(_.root,s),centerRipple:!0,focusRipple:!c,disabled:V,tabIndex:null,role:void 0,onFocus:R,onBlur:F,ownerState:W,ref:n},P,{children:[k.jsx(jR,T({autoFocus:r,checked:i,defaultChecked:l,className:_.input,disabled:V,id:q?f:void 0,name:m,onChange:B,readOnly:y,ref:g,required:w,ownerState:W,tabIndex:C,type:$},$==="checkbox"&&I===void 0?{}:{value:I},v)),L?o:u]}))});function BR(e){return Ge("MuiCircularProgress",e)}ze("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const VR=["className","color","disableShrink","size","style","thickness","value","variant"];let Zc=e=>e,Ag,Dg,Mg,Lg;const or=44,HR=bo(Ag||(Ag=Zc` 0% { transform: rotate(0deg); } @@ -133,7 +133,7 @@ Error generating stack: `+o.message+` 100% { transform: rotate(360deg); } -`)),BR=yo(Ag||(Ag=Jc` +`)),UR=bo(Dg||(Dg=Zc` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -148,12 +148,12 @@ Error generating stack: `+o.message+` stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),VR=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${X(r)}`],svg:["svg"],circle:["circle",`circle${X(n)}`,i&&"circleDisableShrink"]};return qe(o,FR,t)},HR=ee("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${X(n.color)}`]]}})(({ownerState:e,theme:t})=>I({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&$c(Dg||(Dg=Jc` +`)),WR=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${X(r)}`],svg:["svg"],circle:["circle",`circle${X(n)}`,i&&"circleDisableShrink"]};return qe(o,BR,t)},GR=ee("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${X(n.color)}`]]}})(({ownerState:e,theme:t})=>T({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&$c(Mg||(Mg=Zc` animation: ${0} 1.4s linear infinite; - `),zR)),UR=ee("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),WR=ee("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${X(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>I({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&$c(Mg||(Mg=Jc` + `),HR)),qR=ee("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),QR=ee("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${X(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>T({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&$c(Lg||(Lg=Zc` animation: ${0} 1.4s ease-in-out infinite; - `),BR)),Ha=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:s=!1,size:l=40,style:a,thickness:c=3.6,value:d=0,variant:u="indeterminate"}=r,f=K(r,jR),v=I({},r,{color:o,disableShrink:s,size:l,thickness:c,value:d,variant:u}),g=VR(v),m={},b={},p={};if(u==="determinate"){const h=2*Math.PI*((or-c)/2);m.strokeDasharray=h.toFixed(3),p["aria-valuenow"]=Math.round(d),m.strokeDashoffset=`${((100-d)/100*h).toFixed(3)}px`,b.transform="rotate(-90deg)"}return k.jsx(HR,I({className:le(g.root,i),style:I({width:l,height:l},b,a),ownerState:v,ref:n,role:"progressbar"},p,f,{children:k.jsx(UR,{className:g.svg,ownerState:v,viewBox:`${or/2} ${or/2} ${or} ${or}`,children:k.jsx(WR,{className:g.circle,style:m,ownerState:v,cx:or,cy:or,r:(or-c)/2,fill:"none",strokeWidth:c})})}))}),GR=(e,t)=>I({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),qR=e=>I({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}}),QR=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,l])=>{var a;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(a=l.palette)==null?void 0:a.mode}});let i=I({html:GR(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:I({margin:0},qR(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const o=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return o&&(i=[i,o]),i};function XR(e){const t=Ze({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return k.jsxs(x.Fragment,{children:[k.jsx(bR,{styles:i=>QR(i,r)}),n]})}function YR(e){return Ge("MuiLink",e)}const KR=ze("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),lx={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},JR=e=>lx[e]||e,ZR=({theme:e,ownerState:t})=>{const n=JR(t.color),r=lo(e,`palette.${n}`,!1)||t.color,i=lo(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:si(r,.4)},eP=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],tP=e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root",`underline${X(i)}`,n==="button"&&"button",r&&"focusVisible"]};return qe(o,YR,t)},nP=ee(en,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${X(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>I({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&I({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:ZR({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{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"},[`&.${KR.focusVisible}`]:{outline:"auto"}})),as=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiLink"}),{className:i,color:o="primary",component:s="a",onBlur:l,onFocus:a,TypographyClasses:c,underline:d="always",variant:u="inherit",sx:f}=r,v=K(r,eP),{isFocusVisibleRef:g,onBlur:m,onFocus:b,ref:p}=Uh(),[h,y]=x.useState(!1),w=Ot(n,p),C=B=>{m(B),g.current===!1&&y(!1),l&&l(B)},$=B=>{b(B),g.current===!0&&y(!0),a&&a(B)},T=I({},r,{color:o,component:s,focusVisible:h,underline:d,variant:u}),R=tP(T);return k.jsx(nP,I({color:o,className:le(R.root,i),classes:c,component:s,onBlur:C,onFocus:$,ref:w,ownerState:T,variant:u,sx:[...Object.keys(lx).includes(o)?[]:[{color:o}],...Array.isArray(f)?f:[f]]},v))});function rP(e){return Ge("MuiSwitch",e)}const ht=ze("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),iP=["className","color","edge","size","sx"],oP=Ub(),sP=e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:s}=e,l={root:["root",n&&`edge${X(n)}`,`size${X(r)}`],switchBase:["switchBase",`color${X(i)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},a=qe(l,rP,t);return I({},t,a)},lP=ee("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${X(n.edge)}`],t[`size${X(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,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,[`& .${ht.thumb}`]:{width:16,height:16},[`& .${ht.switchBase}`]:{padding:4,[`&.${ht.checked}`]:{transform:"translateX(16px)"}}}}]}),aP=ee(NR,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${ht.input}`]:t.input},n.color!=="default"&&t[`color${X(n.color)}`]]}})(({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}),[`&.${ht.checked}`]:{transform:"translateX(20px)"},[`&.${ht.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${ht.checked} + .${ht.track}`]:{opacity:.5},[`&.${ht.disabled} + .${ht.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${ht.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:si(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${ht.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:si(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ht.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?qh(e.palette[t].main,.62):Gh(e.palette[t].main,.55)}`}},[`&.${ht.checked} + .${ht.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),cP=ee("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({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}`})),uP=ee("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),dP=x.forwardRef(function(t,n){const r=oP({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:s=!1,size:l="medium",sx:a}=r,c=K(r,iP),d=I({},r,{color:o,edge:s,size:l}),u=sP(d),f=k.jsx(uP,{className:u.thumb,ownerState:d});return k.jsxs(lP,{className:le(u.root,i),sx:a,ownerState:d,children:[k.jsx(aP,I({type:"checkbox",icon:f,checkedIcon:f,ref:n,ownerState:d},c,{classes:I({},u,{root:u.switchBase})})),k.jsx(cP,{className:u.track,ownerState:d})]})}),ax=x.createContext();function fP(e){return Ge("MuiTable",e)}ze("MuiTable",["root","stickyHeader"]);const hP=["className","component","padding","size","stickyHeader"],pP=e=>{const{classes:t,stickyHeader:n}=e;return qe({root:["root",n&&"stickyHeader"]},fP,t)},mP=ee("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>I({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":I({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),Lg="table",gP=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTable"}),{className:i,component:o=Lg,padding:s="normal",size:l="medium",stickyHeader:a=!1}=r,c=K(r,hP),d=I({},r,{component:o,padding:s,size:l,stickyHeader:a}),u=pP(d),f=x.useMemo(()=>({padding:s,size:l,stickyHeader:a}),[s,l,a]);return k.jsx(ax.Provider,{value:f,children:k.jsx(mP,I({as:o,role:o===Lg?null:"table",ref:n,className:le(u.root,i),ownerState:d},c))})}),Zc=x.createContext();function vP(e){return Ge("MuiTableBody",e)}ze("MuiTableBody",["root"]);const yP=["className","component"],bP=e=>{const{classes:t}=e;return qe({root:["root"]},vP,t)},xP=ee("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),wP={variant:"body"},Ng="tbody",kP=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTableBody"}),{className:i,component:o=Ng}=r,s=K(r,yP),l=I({},r,{component:o}),a=bP(l);return k.jsx(Zc.Provider,{value:wP,children:k.jsx(xP,I({className:le(a.root,i),as:o,ref:n,role:o===Ng?null:"rowgroup",ownerState:l},s))})});function CP(e){return Ge("MuiTableCell",e)}const SP=ze("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),$P=["align","className","component","padding","scope","size","sortDirection","variant"],TP=e=>{const{classes:t,variant:n,align:r,padding:i,size:o,stickyHeader:s}=e,l={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${X(r)}`,i!=="normal"&&`padding${X(i)}`,`size${X(o)}`]};return qe(l,CP,t)},IP=ee("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${X(n.size)}`],n.padding!=="normal"&&t[`padding${X(n.padding)}`],n.align!=="inherit"&&t[`align${X(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>I({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?qh(si(e.palette.divider,1),.88):Gh(si(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${SP.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),sr=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTableCell"}),{align:i="inherit",className:o,component:s,padding:l,scope:a,size:c,sortDirection:d,variant:u}=r,f=K(r,$P),v=x.useContext(ax),g=x.useContext(Zc),m=g&&g.variant==="head";let b;s?b=s:b=m?"th":"td";let p=a;b==="td"?p=void 0:!p&&m&&(p="col");const h=u||g&&g.variant,y=I({},r,{align:i,component:b,padding:l||(v&&v.padding?v.padding:"normal"),size:c||(v&&v.size?v.size:"medium"),sortDirection:d,stickyHeader:h==="head"&&v&&v.stickyHeader,variant:h}),w=TP(y);let C=null;return d&&(C=d==="asc"?"ascending":"descending"),k.jsx(IP,I({as:b,ref:n,className:le(w.root,o),"aria-sort":C,scope:p,ownerState:y},f))});function EP(e){return Ge("MuiTableContainer",e)}ze("MuiTableContainer",["root"]);const RP=["className","component"],PP=e=>{const{classes:t}=e;return qe({root:["root"]},EP,t)},OP=ee("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),_P=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTableContainer"}),{className:i,component:o="div"}=r,s=K(r,RP),l=I({},r,{component:o}),a=PP(l);return k.jsx(OP,I({ref:n,as:o,className:le(a.root,i),ownerState:l},s))});function AP(e){return Ge("MuiTableHead",e)}ze("MuiTableHead",["root"]);const DP=["className","component"],MP=e=>{const{classes:t}=e;return qe({root:["root"]},AP,t)},LP=ee("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),NP={variant:"head"},Fg="thead",FP=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTableHead"}),{className:i,component:o=Fg}=r,s=K(r,DP),l=I({},r,{component:o}),a=MP(l);return k.jsx(Zc.Provider,{value:NP,children:k.jsx(LP,I({as:o,className:le(a.root,i),ref:n,role:o===Fg?null:"rowgroup",ownerState:l},s))})});function jP(e){return Ge("MuiTableRow",e)}const jg=ze("MuiTableRow",["root","selected","hover","head","footer"]),zP=["className","component","hover","selected"],BP=e=>{const{classes:t,selected:n,hover:r,head:i,footer:o}=e;return qe({root:["root",n&&"selected",r&&"hover",i&&"head",o&&"footer"]},jP,t)},VP=ee("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${jg.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${jg.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:si(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:si(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),zg="tr",Bg=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTableRow"}),{className:i,component:o=zg,hover:s=!1,selected:l=!1}=r,a=K(r,zP),c=x.useContext(Zc),d=I({},r,{component:o,hover:s,selected:l,head:c&&c.variant==="head",footer:c&&c.variant==="footer"}),u=BP(d);return k.jsx(VP,I({as:o,ref:n,className:le(u.root,i),role:o===zg?null:"row",ownerState:d},a))}),HP=e=>{try{return getComputedStyle(document.documentElement).getPropertyValue(e).trim()||$n[500]}catch(t){return console.error(`Error getting CSS variable ${e}: ${t}`),$n[500]}},Ol=e=>{let t=e.replace(/\./g,"-").toLowerCase();t.startsWith("--vscode-")||(t="--vscode-"+t);const n=HP(`${t}`);return k.jsxs(ot,{display:"flex",alignItems:"center",gap:1,children:[k.jsxs("div",{children:[t,": ",JSON.stringify(n)]}),k.jsx(ot,{sx:{width:"10px",height:"10px",backgroundColor:n,border:"1px solid #000"}})]})},UP=()=>k.jsxs(k.Fragment,{children:["Note: Not implemented yet.",k.jsx("br",{})," Will show events from your last published module(s).",Ol("editor-foreground"),Ol("editor-background"),Ol("badge-background"),Ol("badge-foreground")]});class sp{constructor(){this.method="",this.methodUuid="",this.dataUuid="",this.json=null}getMethod(){return this.method}getMethodUuid(){return this.methodUuid}getDataUuid(){return this.dataUuid}getJson(){return this.json}update(t){const n=t.header.method,r=t.header.methodUuid,i=t.header.dataUuid;return this.method!==""&&n!==this.method?(console.error(`Trying to update [${this.json.method}] using a JSON from [${n}]`),!1):this.json===null||this.methodUuid!==r||i>this.dataUuid?(this.method=n,this.methodUuid=r,this.dataUuid=i,this.json=t,this.deltaDetected(),!0):!1}deltaDetected(){}}class WP extends sp{isWorkdirStatusUpdateNeeded(t){return this.isUpdateNeeded(t,"getWorkdirStatus")}isWorkdirPackagesUpdateNeeded(t){return this.isUpdateNeeded(t,"getWorkdirPackages")}isUpdateNeeded(t,n){try{const r=t===null||t.getJson()===null||t.getMethod()===""||t.getMethodUuid()===""||t.getDataUuid()==="";for(const i of this.getJson().versions)if(i.method===n){const o=i.methodUuid,s=i.dataUuid;if(r||t.getMethodUuid()!==o||t.getDataUuid()0?this.suiClientVersionShort=this.suiClientVersion.split("-")[0]:this.suiClientVersionShort="",this.isLoaded=!0}catch(t){console.error(`Problem with SuibaseJsonWorkdirStatus loading: ${JSON.stringify(t)}`)}}}class qP extends sp{constructor(){super(),this.isLoaded=!1}deltaDetected(){super.deltaDetected(),this.isLoaded=!0}}const Gn=["mainnet","testnet","devnet","localnet"],Cf=["Mainnet","Testnet","Devnet","Localnet"],Sf="suibase.dashboard",QP="suibase.console",$f="suibase.explorer",Ua="0",Ku="2",cx="P",ux="x",lp=`${ux}-${Ua}-help`,dx="[TREE_ID_INSERT_ADDR]",Vg="Suibase not installed",Hg="Suibase scripts not on $PATH",Ug="Git not installed";class XP{constructor(){we(this,"vsCodeApi");typeof acquireVsCodeApi=="function"&&(this.vsCodeApi=acquireVsCodeApi())}postMessage(t){this.vsCodeApi?this.vsCodeApi.postMessage(t):console.log(t)}getState(){if(this.vsCodeApi)return this.vsCodeApi.getState();{const t=localStorage.getItem("vscodeState");return t?JSON.parse(t):void 0}}setState(t){return this.vsCodeApi?this.vsCodeApi.setState(t):(localStorage.setItem("vscodeState",JSON.stringify(t)),t)}}const Qi=new XP;class tl{constructor(t,n){this.name=t,this.sender=n}}class fx extends tl{constructor(t,n,r){super("WorkdirCommand",t),this.workdirIdx=n,this.command=r}}class YP extends tl{constructor(t){super("InitView",t)}}class KP extends tl{constructor(t,n,r,i){super("RequestWorkdirStatus",t),this.workdirIdx=n,this.methodUuid=r,this.dataUuid=i}}class JP extends tl{constructor(t,n,r,i){super("RequestWorkdirPackages",t),this.workdirIdx=n,this.methodUuid=r,this.dataUuid=i}}class ZP extends tl{constructor(){super("OpenDiagnosticPanel","")}}class eO{constructor(t,n){we(this,"label");we(this,"workdir");we(this,"workdirIdx");we(this,"versions");we(this,"workdirStatus");we(this,"workdirPackages");this.label=t.charAt(0).toUpperCase()+t.slice(1),this.workdir=t,this.workdirIdx=n,this.versions=new WP,this.workdirStatus=new GP,this.workdirPackages=new qP}}class tO{constructor(){we(this,"_activeWorkdir");we(this,"_activeWorkdirIdx");we(this,"_activeLoaded");we(this,"_setupIssue");this._activeWorkdir="",this._activeWorkdirIdx=0,this._activeLoaded=!1,this._setupIssue=""}get activeWorkdir(){return this._activeWorkdir}get activeWorkdirIdx(){return this._activeWorkdirIdx}get activeLoaded(){return this._activeLoaded}get setupIssue(){return this._setupIssue}set activeWorkdir(t){const n=Gn.indexOf(t);if(n<0){console.error(`Invalid workdir: ${t}`);return}this._activeWorkdirIdx=n,this._activeWorkdir=t,this._activeLoaded=!0}set activeWorkdirIdx(t){if(t<0||t>=Gn.length){console.error(`Invalid workdirIdx: ${t}`);return}this._activeWorkdir=Gn[t],this._activeWorkdirIdx=t,this._activeLoaded=!0}set setupIssue(t){this._setupIssue=t}}const hx=(e,t)=>{const n=(t==null?void 0:t.trackStatus)||!1,r=(t==null?void 0:t.trackPackages)||!1,{message:i}=z0(),o=x.useRef(new tO),[s]=x.useState(Gn.map((v,g)=>new eO(v,g))),[l,a]=x.useState(!1),[c,d]=x.useState(!1),[u,f]=x.useState(!1);return x.useEffect(()=>{let v=o.current.activeLoaded===!1;if(!v){for(let g=0;g{try{if(i&&i.name){let v=!1,g=!1,m=!1;switch(i.name){case"UpdateVersions":{let b=!1;if(i.setupIssue){const p=i.setupIssue;p!==o.current.setupIssue&&(o.current.setupIssue=p,v=!0),p!==""&&(b=!0)}if(b===!1&&o.current.setupIssue!==""&&(o.current.setupIssue="",v=!0),b===!1&&i.json){const p=s[i.workdirIdx];if(p.versions.update(i.json)){if(v=!0,n){const[y,w,C]=p.versions.isWorkdirStatusUpdateNeeded(p.workdirStatus);y&&Qi.postMessage(new KP(e,i.workdirIdx,w,C))}if(r){const[y,w,C]=p.versions.isWorkdirPackagesUpdateNeeded(p.workdirPackages);y&&Qi.postMessage(new JP(e,i.workdirIdx,w,C))}}o.current.activeWorkdir!==i.json.asuiSelection&&(o.current.activeWorkdir=i.json.asuiSelection,v=!0)}break}case"UpdateWorkdirStatus":{n&&s[i.workdirIdx].workdirStatus.update(i.json)&&(g=!0);break}case"UpdateWorkdirPackages":{r&&s[i.workdirIdx].workdirPackages.update(i.json)&&(m=!0);break}default:console.log("Received an unknown command",i)}v&&a(b=>!b),g&&d(b=>!b),m&&f(b=>!b)}}catch(v){console.error("An error occurred in useCommonController:",v)}},[i,s,e]),{commonTrigger:l,statusTrigger:c,packagesTrigger:u,common:o,workdirs:s}},Pr=function(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof self<"u")return self;if(typeof window<"u")return window;try{return new Function("return this")()}catch{return{}}}();Pr.trustedTypes===void 0&&(Pr.trustedTypes={createPolicy:(e,t)=>t});const px={configurable:!1,enumerable:!1,writable:!1};Pr.FAST===void 0&&Reflect.defineProperty(Pr,"FAST",Object.assign({value:Object.create(null)},px));const Ns=Pr.FAST;if(Ns.getById===void 0){const e=Object.create(null);Reflect.defineProperty(Ns,"getById",Object.assign({value(t,n){let r=e[t];return r===void 0&&(r=n?e[t]=n():null),r}},px))}const Jr=Object.freeze([]);function mx(){const e=new WeakMap;return function(t){let n=e.get(t);if(n===void 0){let r=Reflect.getPrototypeOf(t);for(;n===void 0&&r!==null;)n=e.get(r),r=Reflect.getPrototypeOf(r);n=n===void 0?[]:n.slice(0),e.set(t,n)}return n}}const Ju=Pr.FAST.getById(1,()=>{const e=[],t=[];function n(){if(t.length)throw t.shift()}function r(s){try{s.call()}catch(l){t.push(l),setTimeout(n,0)}}function i(){let l=0;for(;l1024){for(let a=0,c=e.length-l;ae});let Zu=gx;const cs=`fast-${Math.random().toString(36).substring(2,8)}`,vx=`${cs}{`,ap=`}${cs}`,J=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(e){if(Zu!==gx)throw new Error("The HTML policy can only be set once.");Zu=e},createHTML(e){return Zu.createHTML(e)},isMarker(e){return e&&e.nodeType===8&&e.data.startsWith(cs)},extractDirectiveIndexFromMarker(e){return parseInt(e.data.replace(`${cs}:`,""))},createInterpolationPlaceholder(e){return`${vx}${e}${ap}`},createCustomAttributePlaceholder(e,t){return`${e}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder(e){return``},queueUpdate:Ju.enqueue,processUpdates:Ju.process,nextUpdate(){return new Promise(Ju.enqueue)},setAttribute(e,t,n){n==null?e.removeAttribute(t):e.setAttribute(t,n)},setBooleanAttribute(e,t,n){n?e.setAttribute(t,""):e.removeAttribute(t)},removeChildNodes(e){for(let t=e.firstChild;t!==null;t=e.firstChild)e.removeChild(t)},createTemplateWalker(e){return document.createTreeWalker(e,133,null,!1)}});class Wa{constructor(t,n){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=n}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){const n=this.spillover;if(n===void 0){if(this.has(t))return;if(this.sub1===void 0){this.sub1=t;return}if(this.sub2===void 0){this.sub2=t;return}this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else n.indexOf(t)===-1&&n.push(t)}unsubscribe(t){const n=this.spillover;if(n===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const r=n.indexOf(t);r!==-1&&n.splice(r,1)}}notify(t){const n=this.spillover,r=this.source;if(n===void 0){const i=this.sub1,o=this.sub2;i!==void 0&&i.handleChange(r,t),o!==void 0&&o.handleChange(r,t)}else for(let i=0,o=n.length;i{const e=/(:|&&|\|\||if)/,t=new WeakMap,n=J.queueUpdate;let r,i=c=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function o(c){let d=c.$fastController||t.get(c);return d===void 0&&(Array.isArray(c)?d=i(c):t.set(c,d=new yx(c))),d}const s=mx();class l{constructor(d){this.name=d,this.field=`_${d}`,this.callback=`${d}Changed`}getValue(d){return r!==void 0&&r.watch(d,this.name),d[this.field]}setValue(d,u){const f=this.field,v=d[f];if(v!==u){d[f]=u;const g=d[this.callback];typeof g=="function"&&g.call(d,v,u),o(d).notify(this.name)}}}class a extends Wa{constructor(d,u,f=!1){super(d,u),this.binding=d,this.isVolatileBinding=f,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(d,u){this.needsRefresh&&this.last!==null&&this.disconnect();const f=r;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const v=this.binding(d,u);return r=f,v}disconnect(){if(this.last!==null){let d=this.first;for(;d!==void 0;)d.notifier.unsubscribe(this,d.propertyName),d=d.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(d,u){const f=this.last,v=o(d),g=f===null?this.first:{};if(g.propertySource=d,g.propertyName=u,g.notifier=v,v.subscribe(this,u),f!==null){if(!this.needsRefresh){let m;r=void 0,m=f.propertySource[f.propertyName],r=this,d===m&&(this.needsRefresh=!0)}f.next=g}this.last=g}handleChange(){this.needsQueue&&(this.needsQueue=!1,n(this))}call(){this.last!==null&&(this.needsQueue=!0,this.notify(this))}records(){let d=this.first;return{next:()=>{const u=d;return u===void 0?{value:void 0,done:!0}:(d=d.next,{value:u,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(c){i=c},getNotifier:o,track(c,d){r!==void 0&&r.watch(c,d)},trackVolatile(){r!==void 0&&(r.needsRefresh=!0)},notify(c,d){o(c).notify(d)},defineProperty(c,d){typeof d=="string"&&(d=new l(d)),s(c).push(d),Reflect.defineProperty(c,d.name,{enumerable:!0,get:function(){return d.getValue(this)},set:function(u){d.setValue(this,u)}})},getAccessors:s,binding(c,d,u=this.isVolatileBinding(c)){return new a(c,d,u)},isVolatileBinding(c){return e.test(c.toString())}})});function F(e,t){Y.defineProperty(e,t)}function nO(e,t,n){return Object.assign({},n,{get:function(){return Y.trackVolatile(),n.get.apply(this)}})}const Wg=Ns.getById(3,()=>{let e=null;return{get(){return e},set(t){e=t}}});class Fs{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return Wg.get()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(t){Wg.set(t)}}Y.defineProperty(Fs.prototype,"index");Y.defineProperty(Fs.prototype,"length");const us=Object.seal(new Fs);class eu{constructor(){this.targetIndex=0}}class bx extends eu{constructor(){super(...arguments),this.createPlaceholder=J.createInterpolationPlaceholder}}class cp extends eu{constructor(t,n,r){super(),this.name=t,this.behavior=n,this.options=r}createPlaceholder(t){return J.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}}function rO(e,t){this.source=e,this.context=t,this.bindingObserver===null&&(this.bindingObserver=Y.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(e,t))}function iO(e,t){this.source=e,this.context=t,this.target.addEventListener(this.targetName,this)}function oO(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function sO(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const e=this.target.$fastView;e!==void 0&&e.isComposed&&(e.unbind(),e.needsBindOnly=!0)}function lO(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function aO(e){J.setAttribute(this.target,this.targetName,e)}function cO(e){J.setBooleanAttribute(this.target,this.targetName,e)}function uO(e){if(e==null&&(e=""),e.create){this.target.textContent="";let t=this.target.$fastView;t===void 0?t=e.create():this.target.$fastTemplate!==e&&(t.isComposed&&(t.remove(),t.unbind()),t=e.create()),t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(this.source,this.context)):(t.isComposed=!0,t.bind(this.source,this.context),t.insertBefore(this.target),this.target.$fastView=t,this.target.$fastTemplate=e)}else{const t=this.target.$fastView;t!==void 0&&t.isComposed&&(t.isComposed=!1,t.remove(),t.needsBindOnly?t.needsBindOnly=!1:t.unbind()),this.target.textContent=e}}function dO(e){this.target[this.targetName]=e}function fO(e){const t=this.classVersions||Object.create(null),n=this.target;let r=this.version||0;if(e!=null&&e.length){const i=e.split(/\s+/);for(let o=0,s=i.length;oJ.createHTML(n(r,i))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=cO;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=iO,this.unbind=lO;break;default:this.cleanedTargetName=t,t==="class"&&(this.updateTarget=fO);break}}targetAtContent(){this.updateTarget=uO,this.unbind=sO}createBehavior(t){return new hO(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class hO{constructor(t,n,r,i,o,s,l){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=n,this.isBindingVolatile=r,this.bind=i,this.unbind=o,this.updateTarget=s,this.targetName=l}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){Fs.setEvent(t);const n=this.binding(this.source,this.context);Fs.setEvent(null),n!==!0&&t.preventDefault()}}let ed=null;class dp{addFactory(t){t.targetIndex=this.targetIndex,this.behaviorFactories.push(t)}captureContentBinding(t){t.targetAtContent(),this.addFactory(t)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){ed=this}static borrow(t){const n=ed||new dp;return n.directives=t,n.reset(),ed=null,n}}function pO(e){if(e.length===1)return e[0];let t;const n=e.length,r=e.map(s=>typeof s=="string"?()=>s:(t=s.targetName||t,s.binding)),i=(s,l)=>{let a="";for(let c=0;cl),c.targetName=s.name):c=pO(a),c!==null&&(t.removeAttributeNode(s),i--,o--,e.addFactory(c))}}function gO(e,t,n){const r=xx(e,t.textContent);if(r!==null){let i=t;for(let o=0,s=r.length;o0}const n=this.fragment.cloneNode(!0),r=this.viewBehaviorFactories,i=new Array(this.behaviorCount),o=J.createTemplateWalker(n);let s=0,l=this.targetOffset,a=o.nextNode();for(let c=r.length;s=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function se(e,...t){const n=[];let r="";for(let i=0,o=e.length-1;ia}if(typeof l=="function"&&(l=new up(l)),l instanceof bx){const a=yO.exec(s);a!==null&&(l.targetName=a[2])}l instanceof eu?(r+=l.createPlaceholder(n.length),n.push(l)):r+=l}return r+=e[e.length-1],new qg(r,n)}class Rt{constructor(){this.targets=new WeakSet}addStylesTo(t){this.targets.add(t)}removeStylesFrom(t){this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=this.behaviors===null?t:this.behaviors.concat(t),this}}Rt.create=(()=>{if(J.supportsAdoptedStyleSheets){const e=new Map;return t=>new bO(t,e)}return e=>new kO(e)})();function fp(e){return e.map(t=>t instanceof Rt?fp(t.styles):[t]).reduce((t,n)=>t.concat(n),[])}function kx(e){return e.map(t=>t instanceof Rt?t.behaviors:null).reduce((t,n)=>n===null?t:(t===null&&(t=[]),t.concat(n)),null)}const Cx=Symbol("prependToAdoptedStyleSheets");function Sx(e){const t=[],n=[];return e.forEach(r=>(r[Cx]?t:n).push(r)),{prepend:t,append:n}}let $x=(e,t)=>{const{prepend:n,append:r}=Sx(t);e.adoptedStyleSheets=[...n,...e.adoptedStyleSheets,...r]},Tx=(e,t)=>{e.adoptedStyleSheets=e.adoptedStyleSheets.filter(n=>t.indexOf(n)===-1)};if(J.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),$x=(e,t)=>{const{prepend:n,append:r}=Sx(t);e.adoptedStyleSheets.splice(0,0,...n),e.adoptedStyleSheets.push(...r)},Tx=(e,t)=>{for(const n of t){const r=e.adoptedStyleSheets.indexOf(n);r!==-1&&e.adoptedStyleSheets.splice(r,1)}}}catch{}class bO extends Rt{constructor(t,n){super(),this.styles=t,this.styleSheetCache=n,this._styleSheets=void 0,this.behaviors=kx(t)}get styleSheets(){if(this._styleSheets===void 0){const t=this.styles,n=this.styleSheetCache;this._styleSheets=fp(t).map(r=>{if(r instanceof CSSStyleSheet)return r;let i=n.get(r);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(r),n.set(r,i)),i})}return this._styleSheets}addStylesTo(t){$x(t,this.styleSheets),super.addStylesTo(t)}removeStylesFrom(t){Tx(t,this.styleSheets),super.removeStylesFrom(t)}}let xO=0;function wO(){return`fast-style-class-${++xO}`}class kO extends Rt{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=kx(t),this.styleSheets=fp(t),this.styleClass=wO()}addStylesTo(t){const n=this.styleSheets,r=this.styleClass;t=this.normalizeTarget(t);for(let i=0;i{r.add(t);const i=t[this.fieldName];switch(n){case"reflect":const o=this.converter;J.setAttribute(t,this.attribute,o!==void 0?o.toView(i):i);break;case"boolean":J.setBooleanAttribute(t,this.attribute,i);break}r.delete(t)})}static collect(t,...n){const r=[];n.push(Ga.locate(t));for(let i=0,o=n.length;i1&&(n.property=o),Ga.locate(i.constructor).push(n)}if(arguments.length>1){n={},r(e,t);return}return n=e===void 0?{}:e,r}const Qg={mode:"open"},Xg={},Tf=Ns.getById(4,()=>{const e=new Map;return Object.freeze({register(t){return e.has(t.type)?!1:(e.set(t.type,t),!0)},getByType(t){return e.get(t)}})});class nl{constructor(t,n=t.definition){typeof n=="string"&&(n={name:n}),this.type=t,this.name=n.name,this.template=n.template;const r=qa.collect(t,n.attributes),i=new Array(r.length),o={},s={};for(let l=0,a=r.length;l0){const o=this.boundObservables=Object.create(null);for(let s=0,l=i.length;s0||n>0;){if(t===0){i.push(If),n--;continue}if(n===0){i.push(Ef),t--;continue}const o=e[t-1][n-1],s=e[t-1][n],l=e[t][n-1];let a;s=0){e.splice(l,1),l--,s-=a.addedCount-a.removed.length,i.addedCount+=a.addedCount-c;const d=i.removed.length+a.removed.length-c;if(!i.addedCount&&!d)o=!0;else{let u=a.removed;if(i.indexa.index+a.addedCount){const f=i.removed.slice(a.index+a.addedCount-i.index);Kg.apply(u,f)}i.removed=u,a.indexr?n=r-e.addedCount:n<0&&(n=r+e.removed.length+n-e.addedCount),n<0&&(n=0),e.index=n,e}class AO extends Wa{constructor(t){super(t),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(t,"$fastController",{value:this,enumerable:!1})}subscribe(t){this.flush(),super.subscribe(t)}addSplice(t){this.splices===void 0?this.splices=[t]:this.splices.push(t),this.needsQueue&&(this.needsQueue=!1,J.queueUpdate(this))}reset(t){this.oldCollection=t,this.needsQueue&&(this.needsQueue=!1,J.queueUpdate(this))}flush(){const t=this.splices,n=this.oldCollection;if(t===void 0&&n===void 0)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const r=n===void 0?_O(this.source,t):_x(this.source,0,this.source.length,n,0,n.length);this.notify(r)}}function DO(){if(Jg)return;Jg=!0,Y.setArrayObserverFactory(a=>new AO(a));const e=Array.prototype;if(e.$fastPatch)return;Reflect.defineProperty(e,"$fastPatch",{value:1,enumerable:!1});const t=e.pop,n=e.push,r=e.reverse,i=e.shift,o=e.sort,s=e.splice,l=e.unshift;e.pop=function(){const a=this.length>0,c=t.apply(this,arguments),d=this.$fastController;return d!==void 0&&a&&d.addSplice(pn(this.length,[c],0)),c},e.push=function(){const a=n.apply(this,arguments),c=this.$fastController;return c!==void 0&&c.addSplice(rd(pn(this.length-arguments.length,[],arguments.length),this)),a},e.reverse=function(){let a;const c=this.$fastController;c!==void 0&&(c.flush(),a=this.slice());const d=r.apply(this,arguments);return c!==void 0&&c.reset(a),d},e.shift=function(){const a=this.length>0,c=i.apply(this,arguments),d=this.$fastController;return d!==void 0&&a&&d.addSplice(pn(0,[c],0)),c},e.sort=function(){let a;const c=this.$fastController;c!==void 0&&(c.flush(),a=this.slice());const d=o.apply(this,arguments);return c!==void 0&&c.reset(a),d},e.splice=function(){const a=s.apply(this,arguments),c=this.$fastController;return c!==void 0&&c.addSplice(rd(pn(+arguments[0],a,arguments.length>2?arguments.length-2:0),this)),a},e.unshift=function(){const a=l.apply(this,arguments),c=this.$fastController;return c!==void 0&&c.addSplice(rd(pn(0,[],arguments.length),this)),a}}class MO{constructor(t,n){this.target=t,this.propertyName=n}bind(t){t[this.propertyName]=this.target}unbind(){}}function yt(e){return new cp("fast-ref",MO,e)}const Ax=e=>typeof e=="function",LO=()=>null;function Zg(e){return e===void 0?LO:Ax(e)?e:()=>e}function pp(e,t,n){const r=Ax(e)?e:()=>e,i=Zg(t),o=Zg(n);return(s,l)=>r(s,l)?i(s,l):o(s,l)}function NO(e,t,n,r){e.bind(t[n],r)}function FO(e,t,n,r){const i=Object.create(r);i.index=n,i.length=t.length,e.bind(t[n],i)}class jO{constructor(t,n,r,i,o,s){this.location=t,this.itemsBinding=n,this.templateBinding=i,this.options=s,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=NO,this.itemsBindingObserver=Y.binding(n,this,r),this.templateBindingObserver=Y.binding(i,this,o),s.positioning&&(this.bindView=FO)}bind(t,n){this.source=t,this.originalContext=n,this.childContext=Object.create(n),this.childContext.parent=t,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(t,this.originalContext),this.template=this.templateBindingObserver.observe(t,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,this.itemsObserver!==null&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(t,n){t===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):t===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(n)}observeItems(t=!1){if(!this.items){this.items=Jr;return}const n=this.itemsObserver,r=this.itemsObserver=Y.getNotifier(this.items),i=n!==r;i&&n!==null&&n.unsubscribe(this),(i||t)&&r.subscribe(this)}updateViews(t){const n=this.childContext,r=this.views,i=this.bindView,o=this.items,s=this.template,l=this.options.recycle,a=[];let c=0,d=0;for(let u=0,f=t.length;u0?(m<=y&&h.length>0?($=h[m],m++):($=a[c],c++),d--):$=s.create(),r.splice(b,0,$),i($,o,b,n),$.insertBefore(C)}h[m]&&a.push(...h.slice(m))}for(let u=c,f=a.length;ur.name===n),this.source=t,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(Jr),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let t=this.getNodes();return this.options.filter!==void 0&&(t=t.filter(this.options.filter)),t}updateTarget(t){this.source[this.options.property]=t}}class zO extends Mx{constructor(t,n){super(t,n)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function sn(e){return typeof e=="string"&&(e={property:e}),new cp("fast-slotted",zO,e)}class BO extends Mx{constructor(t,n){super(t,n),this.observer=null,n.childList=!0}observe(){this.observer===null&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}function Lx(e){return typeof e=="string"&&(e={property:e}),new cp("fast-children",BO,e)}class ko{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const Co=(e,t)=>se` + `),UR)),Ha=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:s=!1,size:l=40,style:a,thickness:c=3.6,value:d=0,variant:u="indeterminate"}=r,f=K(r,VR),v=T({},r,{color:o,disableShrink:s,size:l,thickness:c,value:d,variant:u}),g=WR(v),m={},b={},p={};if(u==="determinate"){const h=2*Math.PI*((or-c)/2);m.strokeDasharray=h.toFixed(3),p["aria-valuenow"]=Math.round(d),m.strokeDashoffset=`${((100-d)/100*h).toFixed(3)}px`,b.transform="rotate(-90deg)"}return k.jsx(GR,T({className:le(g.root,i),style:T({width:l,height:l},b,a),ownerState:v,ref:n,role:"progressbar"},p,f,{children:k.jsx(qR,{className:g.svg,ownerState:v,viewBox:`${or/2} ${or/2} ${or} ${or}`,children:k.jsx(QR,{className:g.circle,style:m,ownerState:v,cx:or,cy:or,r:(or-c)/2,fill:"none",strokeWidth:c})})}))}),XR=(e,t)=>T({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),YR=e=>T({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}}),KR=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,l])=>{var a;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(a=l.palette)==null?void 0:a.mode}});let i=T({html:XR(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:T({margin:0},YR(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const o=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return o&&(i=[i,o]),i};function JR(e){const t=Ze({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return k.jsxs(x.Fragment,{children:[k.jsx(kR,{styles:i=>KR(i,r)}),n]})}function ZR(e){return Ge("MuiLink",e)}const eP=ze("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),ax={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},tP=e=>ax[e]||e,nP=({theme:e,ownerState:t})=>{const n=tP(t.color),r=ao(e,`palette.${n}`,!1)||t.color,i=ao(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:si(r,.4)},rP=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],iP=e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root",`underline${X(i)}`,n==="button"&&"button",r&&"focusVisible"]};return qe(o,ZR,t)},oP=ee(en,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${X(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>T({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&T({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:nP({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{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"},[`&.${eP.focusVisible}`]:{outline:"auto"}})),Qi=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiLink"}),{className:i,color:o="primary",component:s="a",onBlur:l,onFocus:a,TypographyClasses:c,underline:d="always",variant:u="inherit",sx:f}=r,v=K(r,rP),{isFocusVisibleRef:g,onBlur:m,onFocus:b,ref:p}=Wh(),[h,y]=x.useState(!1),w=Ot(n,p),C=L=>{m(L),g.current===!1&&y(!1),l&&l(L)},$=L=>{b(L),g.current===!0&&y(!0),a&&a(L)},I=T({},r,{color:o,component:s,focusVisible:h,underline:d,variant:u}),P=iP(I);return k.jsx(oP,T({color:o,className:le(P.root,i),classes:c,component:s,onBlur:C,onFocus:$,ref:w,ownerState:I,variant:u,sx:[...Object.keys(ax).includes(o)?[]:[{color:o}],...Array.isArray(f)?f:[f]]},v))});function sP(e){return Ge("MuiSwitch",e)}const ft=ze("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),lP=["className","color","edge","size","sx"],aP=Wb(),cP=e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:s}=e,l={root:["root",n&&`edge${X(n)}`,`size${X(r)}`],switchBase:["switchBase",`color${X(i)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},a=qe(l,sP,t);return T({},t,a)},uP=ee("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${X(n.edge)}`],t[`size${X(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,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,[`& .${ft.thumb}`]:{width:16,height:16},[`& .${ft.switchBase}`]:{padding:4,[`&.${ft.checked}`]:{transform:"translateX(16px)"}}}}]}),dP=ee(zR,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${ft.input}`]:t.input},n.color!=="default"&&t[`color${X(n.color)}`]]}})(({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}),[`&.${ft.checked}`]:{transform:"translateX(20px)"},[`&.${ft.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${ft.checked} + .${ft.track}`]:{opacity:.5},[`&.${ft.disabled} + .${ft.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${ft.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:si(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${ft.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:si(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ft.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?qh(e.palette[t].main,.62):Gh(e.palette[t].main,.55)}`}},[`&.${ft.checked} + .${ft.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),fP=ee("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({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}`})),hP=ee("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),pP=x.forwardRef(function(t,n){const r=aP({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:s=!1,size:l="medium",sx:a}=r,c=K(r,lP),d=T({},r,{color:o,edge:s,size:l}),u=cP(d),f=k.jsx(hP,{className:u.thumb,ownerState:d});return k.jsxs(uP,{className:le(u.root,i),sx:a,ownerState:d,children:[k.jsx(dP,T({type:"checkbox",icon:f,checkedIcon:f,ref:n,ownerState:d},c,{classes:T({},u,{root:u.switchBase})})),k.jsx(fP,{className:u.track,ownerState:d})]})}),cx=x.createContext();function mP(e){return Ge("MuiTable",e)}ze("MuiTable",["root","stickyHeader"]);const gP=["className","component","padding","size","stickyHeader"],vP=e=>{const{classes:t,stickyHeader:n}=e;return qe({root:["root",n&&"stickyHeader"]},mP,t)},yP=ee("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":T({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),Ng="table",bP=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTable"}),{className:i,component:o=Ng,padding:s="normal",size:l="medium",stickyHeader:a=!1}=r,c=K(r,gP),d=T({},r,{component:o,padding:s,size:l,stickyHeader:a}),u=vP(d),f=x.useMemo(()=>({padding:s,size:l,stickyHeader:a}),[s,l,a]);return k.jsx(cx.Provider,{value:f,children:k.jsx(yP,T({as:o,role:o===Ng?null:"table",ref:n,className:le(u.root,i),ownerState:d},c))})}),eu=x.createContext();function xP(e){return Ge("MuiTableBody",e)}ze("MuiTableBody",["root"]);const wP=["className","component"],kP=e=>{const{classes:t}=e;return qe({root:["root"]},xP,t)},CP=ee("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),SP={variant:"body"},Fg="tbody",$P=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTableBody"}),{className:i,component:o=Fg}=r,s=K(r,wP),l=T({},r,{component:o}),a=kP(l);return k.jsx(eu.Provider,{value:SP,children:k.jsx(CP,T({className:le(a.root,i),as:o,ref:n,role:o===Fg?null:"rowgroup",ownerState:l},s))})});function TP(e){return Ge("MuiTableCell",e)}const IP=ze("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),EP=["align","className","component","padding","scope","size","sortDirection","variant"],RP=e=>{const{classes:t,variant:n,align:r,padding:i,size:o,stickyHeader:s}=e,l={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${X(r)}`,i!=="normal"&&`padding${X(i)}`,`size${X(o)}`]};return qe(l,TP,t)},PP=ee("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${X(n.size)}`],n.padding!=="normal"&&t[`padding${X(n.padding)}`],n.align!=="inherit"&&t[`align${X(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?qh(si(e.palette.divider,1),.88):Gh(si(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${IP.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),sr=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTableCell"}),{align:i="inherit",className:o,component:s,padding:l,scope:a,size:c,sortDirection:d,variant:u}=r,f=K(r,EP),v=x.useContext(cx),g=x.useContext(eu),m=g&&g.variant==="head";let b;s?b=s:b=m?"th":"td";let p=a;b==="td"?p=void 0:!p&&m&&(p="col");const h=u||g&&g.variant,y=T({},r,{align:i,component:b,padding:l||(v&&v.padding?v.padding:"normal"),size:c||(v&&v.size?v.size:"medium"),sortDirection:d,stickyHeader:h==="head"&&v&&v.stickyHeader,variant:h}),w=RP(y);let C=null;return d&&(C=d==="asc"?"ascending":"descending"),k.jsx(PP,T({as:b,ref:n,className:le(w.root,o),"aria-sort":C,scope:p,ownerState:y},f))});function OP(e){return Ge("MuiTableContainer",e)}ze("MuiTableContainer",["root"]);const _P=["className","component"],AP=e=>{const{classes:t}=e;return qe({root:["root"]},OP,t)},DP=ee("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),MP=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTableContainer"}),{className:i,component:o="div"}=r,s=K(r,_P),l=T({},r,{component:o}),a=AP(l);return k.jsx(DP,T({ref:n,as:o,className:le(a.root,i),ownerState:l},s))});function LP(e){return Ge("MuiTableHead",e)}ze("MuiTableHead",["root"]);const NP=["className","component"],FP=e=>{const{classes:t}=e;return qe({root:["root"]},LP,t)},jP=ee("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),zP={variant:"head"},jg="thead",BP=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTableHead"}),{className:i,component:o=jg}=r,s=K(r,NP),l=T({},r,{component:o}),a=FP(l);return k.jsx(eu.Provider,{value:zP,children:k.jsx(jP,T({as:o,className:le(a.root,i),ref:n,role:o===jg?null:"rowgroup",ownerState:l},s))})});function VP(e){return Ge("MuiTableRow",e)}const zg=ze("MuiTableRow",["root","selected","hover","head","footer"]),HP=["className","component","hover","selected"],UP=e=>{const{classes:t,selected:n,hover:r,head:i,footer:o}=e;return qe({root:["root",n&&"selected",r&&"hover",i&&"head",o&&"footer"]},VP,t)},WP=ee("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${zg.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${zg.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:si(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:si(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),Bg="tr",Vg=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTableRow"}),{className:i,component:o=Bg,hover:s=!1,selected:l=!1}=r,a=K(r,HP),c=x.useContext(eu),d=T({},r,{component:o,hover:s,selected:l,head:c&&c.variant==="head",footer:c&&c.variant==="footer"}),u=UP(d);return k.jsx(WP,T({as:o,ref:n,className:le(u.root,i),role:o===Bg?null:"row",ownerState:d},a))}),GP=e=>{try{return getComputedStyle(document.documentElement).getPropertyValue(e).trim()||$n[500]}catch(t){return console.error(`Error getting CSS variable ${e}: ${t}`),$n[500]}},Ol=e=>{let t=e.replace(/\./g,"-").toLowerCase();t.startsWith("--vscode-")||(t="--vscode-"+t);const n=GP(`${t}`);return k.jsxs(mt,{display:"flex",alignItems:"center",gap:1,children:[k.jsxs("div",{children:[t,": ",JSON.stringify(n)]}),k.jsx(mt,{sx:{width:"10px",height:"10px",backgroundColor:n,border:"1px solid #000"}})]})},qP=()=>k.jsxs(k.Fragment,{children:["Note: Not implemented yet.",k.jsx("br",{})," Will show events from your last published module(s).",Ol("editor-foreground"),Ol("editor-background"),Ol("badge-background"),Ol("badge-foreground")]});class sp{constructor(){this.method="",this.methodUuid="",this.dataUuid="",this.json=null}getMethod(){return this.method}getMethodUuid(){return this.methodUuid}getDataUuid(){return this.dataUuid}getJson(){return this.json}update(t){const n=t.header.method,r=t.header.methodUuid,i=t.header.dataUuid;return this.method!==""&&n!==this.method?(console.error(`Trying to update [${this.json.method}] using a JSON from [${n}]`),!1):this.json===null||this.methodUuid!==r||i>this.dataUuid?(this.method=n,this.methodUuid=r,this.dataUuid=i,this.json=t,this.deltaDetected(),!0):!1}deltaDetected(){}}class QP extends sp{isWorkdirStatusUpdateNeeded(t){return this.isUpdateNeeded(t,"getWorkdirStatus")}isWorkdirPackagesUpdateNeeded(t){return this.isUpdateNeeded(t,"getWorkdirPackages")}isUpdateNeeded(t,n){try{const r=t===null||t.getJson()===null||t.getMethod()===""||t.getMethodUuid()===""||t.getDataUuid()==="";for(const i of this.getJson().versions)if(i.method===n){const o=i.methodUuid,s=i.dataUuid;if(r||t.getMethodUuid()!==o||t.getDataUuid()0?this.suiClientVersionShort=this.suiClientVersion.split("-")[0]:this.suiClientVersionShort="",this.isLoaded=!0}catch(t){console.error(`Problem with SuibaseJsonWorkdirStatus loading: ${JSON.stringify(t)}`)}}}class YP extends sp{constructor(){super(),this.isLoaded=!1}deltaDetected(){super.deltaDetected(),this.isLoaded=!0}}const Gn=["mainnet","testnet","devnet","localnet"],Sf=["Mainnet","Testnet","Devnet","Localnet"],$f="suibase.dashboard",KP="suibase.console",Tf="suibase.explorer",Ua="0",Ju="2",ux="P",dx="x",lp=`${dx}-${Ua}-help`,fx="[TREE_ID_INSERT_ADDR]",Hg="Suibase not installed",Ug="Suibase scripts not on $PATH",Wg="Git not installed";class JP{constructor(){we(this,"vsCodeApi");typeof acquireVsCodeApi=="function"&&(this.vsCodeApi=acquireVsCodeApi())}postMessage(t){this.vsCodeApi?this.vsCodeApi.postMessage(t):console.log(t)}getState(){if(this.vsCodeApi)return this.vsCodeApi.getState();{const t=localStorage.getItem("vscodeState");return t?JSON.parse(t):void 0}}setState(t){return this.vsCodeApi?this.vsCodeApi.setState(t):(localStorage.setItem("vscodeState",JSON.stringify(t)),t)}}const Xi=new JP;class tl{constructor(t,n){this.name=t,this.sender=n}}class hx extends tl{constructor(t,n,r){super("WorkdirCommand",t),this.workdirIdx=n,this.command=r}}class ZP extends tl{constructor(t){super("InitView",t)}}class eO extends tl{constructor(t,n,r,i){super("RequestWorkdirStatus",t),this.workdirIdx=n,this.methodUuid=r,this.dataUuid=i}}class tO extends tl{constructor(t,n,r,i){super("RequestWorkdirPackages",t),this.workdirIdx=n,this.methodUuid=r,this.dataUuid=i}}class nO extends tl{constructor(){super("OpenDiagnosticPanel","")}}class rO{constructor(t,n){we(this,"label");we(this,"workdir");we(this,"workdirIdx");we(this,"versions");we(this,"workdirStatus");we(this,"workdirPackages");this.label=t.charAt(0).toUpperCase()+t.slice(1),this.workdir=t,this.workdirIdx=n,this.versions=new QP,this.workdirStatus=new XP,this.workdirPackages=new YP}}class iO{constructor(){we(this,"_activeWorkdir");we(this,"_activeWorkdirIdx");we(this,"_activeLoaded");we(this,"_setupIssue");this._activeWorkdir="",this._activeWorkdirIdx=0,this._activeLoaded=!1,this._setupIssue=""}get activeWorkdir(){return this._activeWorkdir}get activeWorkdirIdx(){return this._activeWorkdirIdx}get activeLoaded(){return this._activeLoaded}get setupIssue(){return this._setupIssue}set activeWorkdir(t){const n=Gn.indexOf(t);if(n<0){console.error(`Invalid workdir: ${t}`);return}this._activeWorkdirIdx=n,this._activeWorkdir=t,this._activeLoaded=!0}set activeWorkdirIdx(t){if(t<0||t>=Gn.length){console.error(`Invalid workdirIdx: ${t}`);return}this._activeWorkdir=Gn[t],this._activeWorkdirIdx=t,this._activeLoaded=!0}set setupIssue(t){this._setupIssue=t}}const px=(e,t)=>{const n=(t==null?void 0:t.trackStatus)||!1,r=(t==null?void 0:t.trackPackages)||!1,{message:i}=B0(),o=x.useRef(new iO),[s]=x.useState(Gn.map((v,g)=>new rO(v,g))),[l,a]=x.useState(!1),[c,d]=x.useState(!1),[u,f]=x.useState(!1);return x.useEffect(()=>{let v=o.current.activeLoaded===!1;if(!v){for(let g=0;g{try{if(i&&i.name){let v=!1,g=!1,m=!1;switch(i.name){case"UpdateVersions":{let b=!1;if(i.setupIssue){const p=i.setupIssue;p!==o.current.setupIssue&&(o.current.setupIssue=p,v=!0),p!==""&&(b=!0)}if(b===!1&&o.current.setupIssue!==""&&(o.current.setupIssue="",v=!0),b===!1&&i.json){const p=s[i.workdirIdx];if(p.versions.update(i.json)){if(v=!0,n){const[y,w,C]=p.versions.isWorkdirStatusUpdateNeeded(p.workdirStatus);y&&Xi.postMessage(new eO(e,i.workdirIdx,w,C))}if(r){const[y,w,C]=p.versions.isWorkdirPackagesUpdateNeeded(p.workdirPackages);y&&Xi.postMessage(new tO(e,i.workdirIdx,w,C))}}o.current.activeWorkdir!==i.json.asuiSelection&&(o.current.activeWorkdir=i.json.asuiSelection,v=!0)}break}case"UpdateWorkdirStatus":{n&&s[i.workdirIdx].workdirStatus.update(i.json)&&(g=!0);break}case"UpdateWorkdirPackages":{r&&s[i.workdirIdx].workdirPackages.update(i.json)&&(m=!0);break}default:console.log("Received an unknown command",i)}v&&a(b=>!b),g&&d(b=>!b),m&&f(b=>!b)}}catch(v){console.error("An error occurred in useCommonController:",v)}},[i,s,e]),{commonTrigger:l,statusTrigger:c,packagesTrigger:u,common:o,workdirs:s}},Pr=function(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof self<"u")return self;if(typeof window<"u")return window;try{return new Function("return this")()}catch{return{}}}();Pr.trustedTypes===void 0&&(Pr.trustedTypes={createPolicy:(e,t)=>t});const mx={configurable:!1,enumerable:!1,writable:!1};Pr.FAST===void 0&&Reflect.defineProperty(Pr,"FAST",Object.assign({value:Object.create(null)},mx));const Ns=Pr.FAST;if(Ns.getById===void 0){const e=Object.create(null);Reflect.defineProperty(Ns,"getById",Object.assign({value(t,n){let r=e[t];return r===void 0&&(r=n?e[t]=n():null),r}},mx))}const Jr=Object.freeze([]);function gx(){const e=new WeakMap;return function(t){let n=e.get(t);if(n===void 0){let r=Reflect.getPrototypeOf(t);for(;n===void 0&&r!==null;)n=e.get(r),r=Reflect.getPrototypeOf(r);n=n===void 0?[]:n.slice(0),e.set(t,n)}return n}}const Zu=Pr.FAST.getById(1,()=>{const e=[],t=[];function n(){if(t.length)throw t.shift()}function r(s){try{s.call()}catch(l){t.push(l),setTimeout(n,0)}}function i(){let l=0;for(;l1024){for(let a=0,c=e.length-l;ae});let ed=vx;const cs=`fast-${Math.random().toString(36).substring(2,8)}`,yx=`${cs}{`,ap=`}${cs}`,J=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(e){if(ed!==vx)throw new Error("The HTML policy can only be set once.");ed=e},createHTML(e){return ed.createHTML(e)},isMarker(e){return e&&e.nodeType===8&&e.data.startsWith(cs)},extractDirectiveIndexFromMarker(e){return parseInt(e.data.replace(`${cs}:`,""))},createInterpolationPlaceholder(e){return`${yx}${e}${ap}`},createCustomAttributePlaceholder(e,t){return`${e}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder(e){return``},queueUpdate:Zu.enqueue,processUpdates:Zu.process,nextUpdate(){return new Promise(Zu.enqueue)},setAttribute(e,t,n){n==null?e.removeAttribute(t):e.setAttribute(t,n)},setBooleanAttribute(e,t,n){n?e.setAttribute(t,""):e.removeAttribute(t)},removeChildNodes(e){for(let t=e.firstChild;t!==null;t=e.firstChild)e.removeChild(t)},createTemplateWalker(e){return document.createTreeWalker(e,133,null,!1)}});class Wa{constructor(t,n){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=n}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){const n=this.spillover;if(n===void 0){if(this.has(t))return;if(this.sub1===void 0){this.sub1=t;return}if(this.sub2===void 0){this.sub2=t;return}this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else n.indexOf(t)===-1&&n.push(t)}unsubscribe(t){const n=this.spillover;if(n===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const r=n.indexOf(t);r!==-1&&n.splice(r,1)}}notify(t){const n=this.spillover,r=this.source;if(n===void 0){const i=this.sub1,o=this.sub2;i!==void 0&&i.handleChange(r,t),o!==void 0&&o.handleChange(r,t)}else for(let i=0,o=n.length;i{const e=/(:|&&|\|\||if)/,t=new WeakMap,n=J.queueUpdate;let r,i=c=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function o(c){let d=c.$fastController||t.get(c);return d===void 0&&(Array.isArray(c)?d=i(c):t.set(c,d=new bx(c))),d}const s=gx();class l{constructor(d){this.name=d,this.field=`_${d}`,this.callback=`${d}Changed`}getValue(d){return r!==void 0&&r.watch(d,this.name),d[this.field]}setValue(d,u){const f=this.field,v=d[f];if(v!==u){d[f]=u;const g=d[this.callback];typeof g=="function"&&g.call(d,v,u),o(d).notify(this.name)}}}class a extends Wa{constructor(d,u,f=!1){super(d,u),this.binding=d,this.isVolatileBinding=f,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(d,u){this.needsRefresh&&this.last!==null&&this.disconnect();const f=r;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const v=this.binding(d,u);return r=f,v}disconnect(){if(this.last!==null){let d=this.first;for(;d!==void 0;)d.notifier.unsubscribe(this,d.propertyName),d=d.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(d,u){const f=this.last,v=o(d),g=f===null?this.first:{};if(g.propertySource=d,g.propertyName=u,g.notifier=v,v.subscribe(this,u),f!==null){if(!this.needsRefresh){let m;r=void 0,m=f.propertySource[f.propertyName],r=this,d===m&&(this.needsRefresh=!0)}f.next=g}this.last=g}handleChange(){this.needsQueue&&(this.needsQueue=!1,n(this))}call(){this.last!==null&&(this.needsQueue=!0,this.notify(this))}records(){let d=this.first;return{next:()=>{const u=d;return u===void 0?{value:void 0,done:!0}:(d=d.next,{value:u,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(c){i=c},getNotifier:o,track(c,d){r!==void 0&&r.watch(c,d)},trackVolatile(){r!==void 0&&(r.needsRefresh=!0)},notify(c,d){o(c).notify(d)},defineProperty(c,d){typeof d=="string"&&(d=new l(d)),s(c).push(d),Reflect.defineProperty(c,d.name,{enumerable:!0,get:function(){return d.getValue(this)},set:function(u){d.setValue(this,u)}})},getAccessors:s,binding(c,d,u=this.isVolatileBinding(c)){return new a(c,d,u)},isVolatileBinding(c){return e.test(c.toString())}})});function z(e,t){Y.defineProperty(e,t)}function oO(e,t,n){return Object.assign({},n,{get:function(){return Y.trackVolatile(),n.get.apply(this)}})}const Gg=Ns.getById(3,()=>{let e=null;return{get(){return e},set(t){e=t}}});class Fs{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return Gg.get()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(t){Gg.set(t)}}Y.defineProperty(Fs.prototype,"index");Y.defineProperty(Fs.prototype,"length");const us=Object.seal(new Fs);class tu{constructor(){this.targetIndex=0}}class xx extends tu{constructor(){super(...arguments),this.createPlaceholder=J.createInterpolationPlaceholder}}class cp extends tu{constructor(t,n,r){super(),this.name=t,this.behavior=n,this.options=r}createPlaceholder(t){return J.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}}function sO(e,t){this.source=e,this.context=t,this.bindingObserver===null&&(this.bindingObserver=Y.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(e,t))}function lO(e,t){this.source=e,this.context=t,this.target.addEventListener(this.targetName,this)}function aO(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function cO(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const e=this.target.$fastView;e!==void 0&&e.isComposed&&(e.unbind(),e.needsBindOnly=!0)}function uO(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function dO(e){J.setAttribute(this.target,this.targetName,e)}function fO(e){J.setBooleanAttribute(this.target,this.targetName,e)}function hO(e){if(e==null&&(e=""),e.create){this.target.textContent="";let t=this.target.$fastView;t===void 0?t=e.create():this.target.$fastTemplate!==e&&(t.isComposed&&(t.remove(),t.unbind()),t=e.create()),t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(this.source,this.context)):(t.isComposed=!0,t.bind(this.source,this.context),t.insertBefore(this.target),this.target.$fastView=t,this.target.$fastTemplate=e)}else{const t=this.target.$fastView;t!==void 0&&t.isComposed&&(t.isComposed=!1,t.remove(),t.needsBindOnly?t.needsBindOnly=!1:t.unbind()),this.target.textContent=e}}function pO(e){this.target[this.targetName]=e}function mO(e){const t=this.classVersions||Object.create(null),n=this.target;let r=this.version||0;if(e!=null&&e.length){const i=e.split(/\s+/);for(let o=0,s=i.length;oJ.createHTML(n(r,i))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=fO;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=lO,this.unbind=uO;break;default:this.cleanedTargetName=t,t==="class"&&(this.updateTarget=mO);break}}targetAtContent(){this.updateTarget=hO,this.unbind=cO}createBehavior(t){return new gO(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class gO{constructor(t,n,r,i,o,s,l){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=n,this.isBindingVolatile=r,this.bind=i,this.unbind=o,this.updateTarget=s,this.targetName=l}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){Fs.setEvent(t);const n=this.binding(this.source,this.context);Fs.setEvent(null),n!==!0&&t.preventDefault()}}let td=null;class dp{addFactory(t){t.targetIndex=this.targetIndex,this.behaviorFactories.push(t)}captureContentBinding(t){t.targetAtContent(),this.addFactory(t)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){td=this}static borrow(t){const n=td||new dp;return n.directives=t,n.reset(),td=null,n}}function vO(e){if(e.length===1)return e[0];let t;const n=e.length,r=e.map(s=>typeof s=="string"?()=>s:(t=s.targetName||t,s.binding)),i=(s,l)=>{let a="";for(let c=0;cl),c.targetName=s.name):c=vO(a),c!==null&&(t.removeAttributeNode(s),i--,o--,e.addFactory(c))}}function bO(e,t,n){const r=wx(e,t.textContent);if(r!==null){let i=t;for(let o=0,s=r.length;o0}const n=this.fragment.cloneNode(!0),r=this.viewBehaviorFactories,i=new Array(this.behaviorCount),o=J.createTemplateWalker(n);let s=0,l=this.targetOffset,a=o.nextNode();for(let c=r.length;s=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function se(e,...t){const n=[];let r="";for(let i=0,o=e.length-1;ia}if(typeof l=="function"&&(l=new up(l)),l instanceof xx){const a=wO.exec(s);a!==null&&(l.targetName=a[2])}l instanceof tu?(r+=l.createPlaceholder(n.length),n.push(l)):r+=l}return r+=e[e.length-1],new Qg(r,n)}class Rt{constructor(){this.targets=new WeakSet}addStylesTo(t){this.targets.add(t)}removeStylesFrom(t){this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=this.behaviors===null?t:this.behaviors.concat(t),this}}Rt.create=(()=>{if(J.supportsAdoptedStyleSheets){const e=new Map;return t=>new kO(t,e)}return e=>new $O(e)})();function fp(e){return e.map(t=>t instanceof Rt?fp(t.styles):[t]).reduce((t,n)=>t.concat(n),[])}function Cx(e){return e.map(t=>t instanceof Rt?t.behaviors:null).reduce((t,n)=>n===null?t:(t===null&&(t=[]),t.concat(n)),null)}const Sx=Symbol("prependToAdoptedStyleSheets");function $x(e){const t=[],n=[];return e.forEach(r=>(r[Sx]?t:n).push(r)),{prepend:t,append:n}}let Tx=(e,t)=>{const{prepend:n,append:r}=$x(t);e.adoptedStyleSheets=[...n,...e.adoptedStyleSheets,...r]},Ix=(e,t)=>{e.adoptedStyleSheets=e.adoptedStyleSheets.filter(n=>t.indexOf(n)===-1)};if(J.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Tx=(e,t)=>{const{prepend:n,append:r}=$x(t);e.adoptedStyleSheets.splice(0,0,...n),e.adoptedStyleSheets.push(...r)},Ix=(e,t)=>{for(const n of t){const r=e.adoptedStyleSheets.indexOf(n);r!==-1&&e.adoptedStyleSheets.splice(r,1)}}}catch{}class kO extends Rt{constructor(t,n){super(),this.styles=t,this.styleSheetCache=n,this._styleSheets=void 0,this.behaviors=Cx(t)}get styleSheets(){if(this._styleSheets===void 0){const t=this.styles,n=this.styleSheetCache;this._styleSheets=fp(t).map(r=>{if(r instanceof CSSStyleSheet)return r;let i=n.get(r);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(r),n.set(r,i)),i})}return this._styleSheets}addStylesTo(t){Tx(t,this.styleSheets),super.addStylesTo(t)}removeStylesFrom(t){Ix(t,this.styleSheets),super.removeStylesFrom(t)}}let CO=0;function SO(){return`fast-style-class-${++CO}`}class $O extends Rt{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=Cx(t),this.styleSheets=fp(t),this.styleClass=SO()}addStylesTo(t){const n=this.styleSheets,r=this.styleClass;t=this.normalizeTarget(t);for(let i=0;i{r.add(t);const i=t[this.fieldName];switch(n){case"reflect":const o=this.converter;J.setAttribute(t,this.attribute,o!==void 0?o.toView(i):i);break;case"boolean":J.setBooleanAttribute(t,this.attribute,i);break}r.delete(t)})}static collect(t,...n){const r=[];n.push(Ga.locate(t));for(let i=0,o=n.length;i1&&(n.property=o),Ga.locate(i.constructor).push(n)}if(arguments.length>1){n={},r(e,t);return}return n=e===void 0?{}:e,r}const Xg={mode:"open"},Yg={},If=Ns.getById(4,()=>{const e=new Map;return Object.freeze({register(t){return e.has(t.type)?!1:(e.set(t.type,t),!0)},getByType(t){return e.get(t)}})});class nl{constructor(t,n=t.definition){typeof n=="string"&&(n={name:n}),this.type=t,this.name=n.name,this.template=n.template;const r=qa.collect(t,n.attributes),i=new Array(r.length),o={},s={};for(let l=0,a=r.length;l0){const o=this.boundObservables=Object.create(null);for(let s=0,l=i.length;s0||n>0;){if(t===0){i.push(Ef),n--;continue}if(n===0){i.push(Rf),t--;continue}const o=e[t-1][n-1],s=e[t-1][n],l=e[t][n-1];let a;s=0){e.splice(l,1),l--,s-=a.addedCount-a.removed.length,i.addedCount+=a.addedCount-c;const d=i.removed.length+a.removed.length-c;if(!i.addedCount&&!d)o=!0;else{let u=a.removed;if(i.indexa.index+a.addedCount){const f=i.removed.slice(a.index+a.addedCount-i.index);Jg.apply(u,f)}i.removed=u,a.indexr?n=r-e.addedCount:n<0&&(n=r+e.removed.length+n-e.addedCount),n<0&&(n=0),e.index=n,e}class LO extends Wa{constructor(t){super(t),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(t,"$fastController",{value:this,enumerable:!1})}subscribe(t){this.flush(),super.subscribe(t)}addSplice(t){this.splices===void 0?this.splices=[t]:this.splices.push(t),this.needsQueue&&(this.needsQueue=!1,J.queueUpdate(this))}reset(t){this.oldCollection=t,this.needsQueue&&(this.needsQueue=!1,J.queueUpdate(this))}flush(){const t=this.splices,n=this.oldCollection;if(t===void 0&&n===void 0)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const r=n===void 0?MO(this.source,t):Ax(this.source,0,this.source.length,n,0,n.length);this.notify(r)}}function NO(){if(Zg)return;Zg=!0,Y.setArrayObserverFactory(a=>new LO(a));const e=Array.prototype;if(e.$fastPatch)return;Reflect.defineProperty(e,"$fastPatch",{value:1,enumerable:!1});const t=e.pop,n=e.push,r=e.reverse,i=e.shift,o=e.sort,s=e.splice,l=e.unshift;e.pop=function(){const a=this.length>0,c=t.apply(this,arguments),d=this.$fastController;return d!==void 0&&a&&d.addSplice(pn(this.length,[c],0)),c},e.push=function(){const a=n.apply(this,arguments),c=this.$fastController;return c!==void 0&&c.addSplice(id(pn(this.length-arguments.length,[],arguments.length),this)),a},e.reverse=function(){let a;const c=this.$fastController;c!==void 0&&(c.flush(),a=this.slice());const d=r.apply(this,arguments);return c!==void 0&&c.reset(a),d},e.shift=function(){const a=this.length>0,c=i.apply(this,arguments),d=this.$fastController;return d!==void 0&&a&&d.addSplice(pn(0,[c],0)),c},e.sort=function(){let a;const c=this.$fastController;c!==void 0&&(c.flush(),a=this.slice());const d=o.apply(this,arguments);return c!==void 0&&c.reset(a),d},e.splice=function(){const a=s.apply(this,arguments),c=this.$fastController;return c!==void 0&&c.addSplice(id(pn(+arguments[0],a,arguments.length>2?arguments.length-2:0),this)),a},e.unshift=function(){const a=l.apply(this,arguments),c=this.$fastController;return c!==void 0&&c.addSplice(id(pn(0,[],arguments.length),this)),a}}class FO{constructor(t,n){this.target=t,this.propertyName=n}bind(t){t[this.propertyName]=this.target}unbind(){}}function yt(e){return new cp("fast-ref",FO,e)}const Dx=e=>typeof e=="function",jO=()=>null;function ev(e){return e===void 0?jO:Dx(e)?e:()=>e}function pp(e,t,n){const r=Dx(e)?e:()=>e,i=ev(t),o=ev(n);return(s,l)=>r(s,l)?i(s,l):o(s,l)}function zO(e,t,n,r){e.bind(t[n],r)}function BO(e,t,n,r){const i=Object.create(r);i.index=n,i.length=t.length,e.bind(t[n],i)}class VO{constructor(t,n,r,i,o,s){this.location=t,this.itemsBinding=n,this.templateBinding=i,this.options=s,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=zO,this.itemsBindingObserver=Y.binding(n,this,r),this.templateBindingObserver=Y.binding(i,this,o),s.positioning&&(this.bindView=BO)}bind(t,n){this.source=t,this.originalContext=n,this.childContext=Object.create(n),this.childContext.parent=t,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(t,this.originalContext),this.template=this.templateBindingObserver.observe(t,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,this.itemsObserver!==null&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(t,n){t===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):t===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(n)}observeItems(t=!1){if(!this.items){this.items=Jr;return}const n=this.itemsObserver,r=this.itemsObserver=Y.getNotifier(this.items),i=n!==r;i&&n!==null&&n.unsubscribe(this),(i||t)&&r.subscribe(this)}updateViews(t){const n=this.childContext,r=this.views,i=this.bindView,o=this.items,s=this.template,l=this.options.recycle,a=[];let c=0,d=0;for(let u=0,f=t.length;u0?(m<=y&&h.length>0?($=h[m],m++):($=a[c],c++),d--):$=s.create(),r.splice(b,0,$),i($,o,b,n),$.insertBefore(C)}h[m]&&a.push(...h.slice(m))}for(let u=c,f=a.length;ur.name===n),this.source=t,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(Jr),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let t=this.getNodes();return this.options.filter!==void 0&&(t=t.filter(this.options.filter)),t}updateTarget(t){this.source[this.options.property]=t}}class HO extends Lx{constructor(t,n){super(t,n)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function sn(e){return typeof e=="string"&&(e={property:e}),new cp("fast-slotted",HO,e)}class UO extends Lx{constructor(t,n){super(t,n),this.observer=null,n.childList=!0}observe(){this.observer===null&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}function Nx(e){return typeof e=="string"&&(e={property:e}),new cp("fast-children",UO,e)}class Co{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const So=(e,t)=>se` -`,So=(e,t)=>se` +`,$o=(e,t)=>se` =0;l--)(s=e[l])&&(o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}const id=new Map;"metadata"in Reflect||(Reflect.metadata=function(e,t){return function(n){Reflect.defineMetadata(e,t,n)}},Reflect.defineMetadata=function(e,t,n){let r=id.get(n);r===void 0&&id.set(n,r=new Map),r.set(e,t)},Reflect.getOwnMetadata=function(e,t){const n=id.get(t);if(n!==void 0)return n.get(e)});class VO{constructor(t,n){this.container=t,this.key=n}instance(t){return this.registerResolver(0,t)}singleton(t){return this.registerResolver(1,t)}transient(t){return this.registerResolver(2,t)}callback(t){return this.registerResolver(3,t)}cachedCallback(t){return this.registerResolver(3,Fx(t))}aliasTo(t){return this.registerResolver(5,t)}registerResolver(t,n){const{container:r,key:i}=this;return this.container=this.key=void 0,r.registerResolver(i,new Jt(i,t,n))}}function Vo(e){const t=e.slice(),n=Object.keys(e),r=n.length;let i;for(let o=0;onull,responsibleForOwnerRequests:!1,defaultResolver:HO.singleton})}),ev=new Map;function tv(e){return t=>Reflect.getOwnMetadata(e,t)}let nv=null;const ke=Object.freeze({createContainer(e){return new ds(null,Object.assign({},od.default,e))},findResponsibleContainer(e){const t=e.$$container$$;return t&&t.responsibleForOwnerRequests?t:ke.findParentContainer(e)},findParentContainer(e){const t=new CustomEvent(Nx,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return e.dispatchEvent(t),t.detail.container||ke.getOrCreateDOMContainer()},getOrCreateDOMContainer(e,t){return e?e.$$container$$||new ds(e,Object.assign({},od.default,t,{parentLocator:ke.findParentContainer})):nv||(nv=new ds(null,Object.assign({},od.default,t,{parentLocator:()=>null})))},getDesignParamtypes:tv("design:paramtypes"),getAnnotationParamtypes:tv("di:paramtypes"),getOrCreateAnnotationParamTypes(e){let t=this.getAnnotationParamtypes(e);return t===void 0&&Reflect.defineMetadata("di:paramtypes",t=[],e),t},getDependencies(e){let t=ev.get(e);if(t===void 0){const n=e.inject;if(n===void 0){const r=ke.getDesignParamtypes(e),i=ke.getAnnotationParamtypes(e);if(r===void 0)if(i===void 0){const o=Object.getPrototypeOf(e);typeof o=="function"&&o!==Function.prototype?t=Vo(ke.getDependencies(o)):t=[]}else t=Vo(i);else if(i===void 0)t=Vo(r);else{t=Vo(r);let o=i.length,s;for(let c=0;c{const d=ke.findResponsibleContainer(this).get(n),u=this[i];d!==u&&(this[i]=o,l.notify(t))};l.subscribe({handleChange:a},"isConnected")}return o}})},createInterface(e,t){const n=typeof e=="function"?e:t,r=typeof e=="string"?e:e&&"friendlyName"in e&&e.friendlyName||sv,i=typeof e=="string"?!1:e&&"respectConnection"in e&&e.respectConnection||!1,o=function(s,l,a){if(s==null||new.target!==void 0)throw new Error(`No registration for interface: '${o.friendlyName}'`);if(l)ke.defineProperty(s,l,o,i);else{const c=ke.getOrCreateAnnotationParamTypes(s);c[a]=o}};return o.$isInterface=!0,o.friendlyName=r??"(anonymous)",n!=null&&(o.register=function(s,l){return n(new VO(s,l??o))}),o.toString=function(){return`InterfaceSymbol<${o.friendlyName}>`},o},inject(...e){return function(t,n,r){if(typeof r=="number"){const i=ke.getOrCreateAnnotationParamTypes(t),o=e[0];o!==void 0&&(i[r]=o)}else if(n)ke.defineProperty(t,n,e[0]);else{const i=r?ke.getOrCreateAnnotationParamTypes(r.value):ke.getOrCreateAnnotationParamTypes(t);let o;for(let s=0;s{r.composedPath()[0]!==this.owner&&(r.detail.container=this,r.stopImmediatePropagation())})}get parent(){return this._parent===void 0&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return this.parent===null?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(t,...n){return this.context=t,this.register(...n),this.context=null,this}register(...t){if(++this.registerDepth===100)throw new Error("Unable to autoregister dependency");let n,r,i,o,s;const l=this.context;for(let a=0,c=t.length;athis}))}jitRegister(t,n){if(typeof t!="function")throw new Error(`Attempted to jitRegister something that is not a constructor: '${t}'. Did you forget to register this dependency?`);if(KO.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(ia(t)){const r=t.register(n);if(!(r instanceof Object)||r.resolve==null){const i=n.resolvers.get(t);if(i!=null)return i;throw new Error("A valid resolver was not returned from the static register method")}return r}else{if(t.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${t.friendlyName}`);{const r=this.config.defaultResolver(t,n);return n.resolvers.set(t,r),r}}}}const ld=new WeakMap;function Fx(e){return function(t,n,r){if(ld.has(r))return ld.get(r);const i=e(t,n,r);return ld.set(r,i),i}}const js=Object.freeze({instance(e,t){return new Jt(e,0,t)},singleton(e,t){return new Jt(e,1,t)},transient(e,t){return new Jt(e,2,t)},callback(e,t){return new Jt(e,3,t)},cachedCallback(e,t){return new Jt(e,3,Fx(t))},aliasTo(e,t){return new Jt(t,5,e)}});function _l(e){if(e==null)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function ov(e,t,n){if(e instanceof Jt&&e.strategy===4){const r=e.state;let i=r.length;const o=new Array(i);for(;i--;)o[i]=r[i].resolve(t,n);return o}return[e.resolve(t,n)]}const sv="(anonymous)";function lv(e){return typeof e=="object"&&e!==null||typeof e=="function"}const JO=function(){const e=new WeakMap;let t=!1,n="",r=0;return function(i){return t=e.get(i),t===void 0&&(n=i.toString(),r=n.length,t=r>=29&&r<=100&&n.charCodeAt(r-1)===125&&n.charCodeAt(r-2)<=32&&n.charCodeAt(r-3)===93&&n.charCodeAt(r-4)===101&&n.charCodeAt(r-5)===100&&n.charCodeAt(r-6)===111&&n.charCodeAt(r-7)===99&&n.charCodeAt(r-8)===32&&n.charCodeAt(r-9)===101&&n.charCodeAt(r-10)===118&&n.charCodeAt(r-11)===105&&n.charCodeAt(r-12)===116&&n.charCodeAt(r-13)===97&&n.charCodeAt(r-14)===110&&n.charCodeAt(r-15)===88,e.set(i,t)),t}}(),Al={};function jx(e){switch(typeof e){case"number":return e>=0&&(e|0)===e;case"string":{const t=Al[e];if(t!==void 0)return t;const n=e.length;if(n===0)return Al[e]=!1;let r=0;for(let i=0;i1||r<48||r>57)return Al[e]=!1;return Al[e]=!0}default:return!1}}function av(e){return`${e.toLowerCase()}:presentation`}const Dl=new Map,zx=Object.freeze({define(e,t,n){const r=av(e);Dl.get(r)===void 0?Dl.set(r,t):Dl.set(r,!1),n.register(js.instance(r,t))},forTag(e,t){const n=av(e),r=Dl.get(n);return r===!1?ke.findResponsibleContainer(t).get(n):r||null}});class ZO{constructor(t,n){this.template=t||null,this.styles=n===void 0?null:Array.isArray(n)?Rt.create(n):n instanceof Rt?n:Rt.create([n])}applyTo(t){const n=t.$fastController;n.template===null&&(n.template=this.template),n.styles===null&&(n.styles=this.styles)}}class ye extends tu{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return this._presentation===void 0&&(this._presentation=zx.forTag(this.tagName,this)),this._presentation}templateChanged(){this.template!==void 0&&(this.$fastController.template=this.template)}stylesChanged(){this.styles!==void 0&&(this.$fastController.styles=this.styles)}connectedCallback(){this.$presentation!==null&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(t){return(n={})=>new Bx(this===ye?class extends ye{}:this,t,n)}}S([F],ye.prototype,"template",void 0);S([F],ye.prototype,"styles",void 0);function Ho(e,t,n){return typeof e=="function"?e(t,n):e}class Bx{constructor(t,n,r){this.type=t,this.elementDefinition=n,this.overrideDefinition=r,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(t,n){const r=this.definition,i=this.overrideDefinition,s=`${r.prefix||n.elementPrefix}-${r.baseName}`;n.tryDefineElement({name:s,type:this.type,baseClass:this.elementDefinition.baseClass,callback:l=>{const a=new ZO(Ho(r.template,l,r),Ho(r.styles,l,r));l.definePresentation(a);let c=Ho(r.shadowOptions,l,r);l.shadowRootMode&&(c?i.shadowOptions||(c.mode=l.shadowRootMode):c!==null&&(c={mode:l.shadowRootMode})),l.defineElement({elementOptions:Ho(r.elementOptions,l,r),shadowOptions:c,attributes:Ho(r.attributes,l,r)})}})}}function At(e,...t){const n=Ga.locate(e);t.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(o=>{o!=="constructor"&&Object.defineProperty(e.prototype,o,Object.getOwnPropertyDescriptor(r.prototype,o))}),Ga.locate(r).forEach(o=>n.push(o))})}const gp={horizontal:"horizontal",vertical:"vertical"};function e2(e,t){let n=e.length;for(;n--;)if(t(e[n],n,e))return n;return-1}function t2(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function n2(...e){return e.every(t=>t instanceof HTMLElement)}function r2(){const e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}let Fr;function i2(){if(typeof Fr=="boolean")return Fr;if(!t2())return Fr=!1,Fr;const e=document.createElement("style"),t=r2();t!==null&&e.setAttribute("nonce",t),document.head.appendChild(e);try{e.sheet.insertRule("foo:focus-visible {color:inherit}",0),Fr=!0}catch{Fr=!1}finally{document.head.removeChild(e)}return Fr}const cv="focus",uv="focusin",co="focusout",uo="keydown";var dv;(function(e){e[e.alt=18]="alt",e[e.arrowDown=40]="arrowDown",e[e.arrowLeft=37]="arrowLeft",e[e.arrowRight=39]="arrowRight",e[e.arrowUp=38]="arrowUp",e[e.back=8]="back",e[e.backSlash=220]="backSlash",e[e.break=19]="break",e[e.capsLock=20]="capsLock",e[e.closeBracket=221]="closeBracket",e[e.colon=186]="colon",e[e.colon2=59]="colon2",e[e.comma=188]="comma",e[e.ctrl=17]="ctrl",e[e.delete=46]="delete",e[e.end=35]="end",e[e.enter=13]="enter",e[e.equals=187]="equals",e[e.equals2=61]="equals2",e[e.equals3=107]="equals3",e[e.escape=27]="escape",e[e.forwardSlash=191]="forwardSlash",e[e.function1=112]="function1",e[e.function10=121]="function10",e[e.function11=122]="function11",e[e.function12=123]="function12",e[e.function2=113]="function2",e[e.function3=114]="function3",e[e.function4=115]="function4",e[e.function5=116]="function5",e[e.function6=117]="function6",e[e.function7=118]="function7",e[e.function8=119]="function8",e[e.function9=120]="function9",e[e.home=36]="home",e[e.insert=45]="insert",e[e.menu=93]="menu",e[e.minus=189]="minus",e[e.minus2=109]="minus2",e[e.numLock=144]="numLock",e[e.numPad0=96]="numPad0",e[e.numPad1=97]="numPad1",e[e.numPad2=98]="numPad2",e[e.numPad3=99]="numPad3",e[e.numPad4=100]="numPad4",e[e.numPad5=101]="numPad5",e[e.numPad6=102]="numPad6",e[e.numPad7=103]="numPad7",e[e.numPad8=104]="numPad8",e[e.numPad9=105]="numPad9",e[e.numPadDivide=111]="numPadDivide",e[e.numPadDot=110]="numPadDot",e[e.numPadMinus=109]="numPadMinus",e[e.numPadMultiply=106]="numPadMultiply",e[e.numPadPlus=107]="numPadPlus",e[e.openBracket=219]="openBracket",e[e.pageDown=34]="pageDown",e[e.pageUp=33]="pageUp",e[e.period=190]="period",e[e.print=44]="print",e[e.quote=222]="quote",e[e.scrollLock=145]="scrollLock",e[e.shift=16]="shift",e[e.space=32]="space",e[e.tab=9]="tab",e[e.tilde=192]="tilde",e[e.windowsLeft=91]="windowsLeft",e[e.windowsOpera=219]="windowsOpera",e[e.windowsRight=92]="windowsRight"})(dv||(dv={}));const di="ArrowDown",zs="ArrowLeft",Bs="ArrowRight",fi="ArrowUp",rl="Enter",nu="Escape",$o="Home",To="End",o2="F2",s2="PageDown",l2="PageUp",il=" ",vp="Tab",a2={ArrowDown:di,ArrowLeft:zs,ArrowRight:Bs,ArrowUp:fi};var fo;(function(e){e.ltr="ltr",e.rtl="rtl"})(fo||(fo={}));function c2(e,t,n){return Math.min(Math.max(n,e),t)}function Ml(e,t,n=0){return[t,n]=[t,n].sort((r,i)=>r-i),t<=e&&ese` +***************************************************************************** */function S(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}const od=new Map;"metadata"in Reflect||(Reflect.metadata=function(e,t){return function(n){Reflect.defineMetadata(e,t,n)}},Reflect.defineMetadata=function(e,t,n){let r=od.get(n);r===void 0&&od.set(n,r=new Map),r.set(e,t)},Reflect.getOwnMetadata=function(e,t){const n=od.get(t);if(n!==void 0)return n.get(e)});class WO{constructor(t,n){this.container=t,this.key=n}instance(t){return this.registerResolver(0,t)}singleton(t){return this.registerResolver(1,t)}transient(t){return this.registerResolver(2,t)}callback(t){return this.registerResolver(3,t)}cachedCallback(t){return this.registerResolver(3,jx(t))}aliasTo(t){return this.registerResolver(5,t)}registerResolver(t,n){const{container:r,key:i}=this;return this.container=this.key=void 0,r.registerResolver(i,new Jt(i,t,n))}}function Ho(e){const t=e.slice(),n=Object.keys(e),r=n.length;let i;for(let o=0;onull,responsibleForOwnerRequests:!1,defaultResolver:GO.singleton})}),tv=new Map;function nv(e){return t=>Reflect.getOwnMetadata(e,t)}let rv=null;const ke=Object.freeze({createContainer(e){return new ds(null,Object.assign({},sd.default,e))},findResponsibleContainer(e){const t=e.$$container$$;return t&&t.responsibleForOwnerRequests?t:ke.findParentContainer(e)},findParentContainer(e){const t=new CustomEvent(Fx,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return e.dispatchEvent(t),t.detail.container||ke.getOrCreateDOMContainer()},getOrCreateDOMContainer(e,t){return e?e.$$container$$||new ds(e,Object.assign({},sd.default,t,{parentLocator:ke.findParentContainer})):rv||(rv=new ds(null,Object.assign({},sd.default,t,{parentLocator:()=>null})))},getDesignParamtypes:nv("design:paramtypes"),getAnnotationParamtypes:nv("di:paramtypes"),getOrCreateAnnotationParamTypes(e){let t=this.getAnnotationParamtypes(e);return t===void 0&&Reflect.defineMetadata("di:paramtypes",t=[],e),t},getDependencies(e){let t=tv.get(e);if(t===void 0){const n=e.inject;if(n===void 0){const r=ke.getDesignParamtypes(e),i=ke.getAnnotationParamtypes(e);if(r===void 0)if(i===void 0){const o=Object.getPrototypeOf(e);typeof o=="function"&&o!==Function.prototype?t=Ho(ke.getDependencies(o)):t=[]}else t=Ho(i);else if(i===void 0)t=Ho(r);else{t=Ho(r);let o=i.length,s;for(let c=0;c{const d=ke.findResponsibleContainer(this).get(n),u=this[i];d!==u&&(this[i]=o,l.notify(t))};l.subscribe({handleChange:a},"isConnected")}return o}})},createInterface(e,t){const n=typeof e=="function"?e:t,r=typeof e=="string"?e:e&&"friendlyName"in e&&e.friendlyName||lv,i=typeof e=="string"?!1:e&&"respectConnection"in e&&e.respectConnection||!1,o=function(s,l,a){if(s==null||new.target!==void 0)throw new Error(`No registration for interface: '${o.friendlyName}'`);if(l)ke.defineProperty(s,l,o,i);else{const c=ke.getOrCreateAnnotationParamTypes(s);c[a]=o}};return o.$isInterface=!0,o.friendlyName=r??"(anonymous)",n!=null&&(o.register=function(s,l){return n(new WO(s,l??o))}),o.toString=function(){return`InterfaceSymbol<${o.friendlyName}>`},o},inject(...e){return function(t,n,r){if(typeof r=="number"){const i=ke.getOrCreateAnnotationParamTypes(t),o=e[0];o!==void 0&&(i[r]=o)}else if(n)ke.defineProperty(t,n,e[0]);else{const i=r?ke.getOrCreateAnnotationParamTypes(r.value):ke.getOrCreateAnnotationParamTypes(t);let o;for(let s=0;s{r.composedPath()[0]!==this.owner&&(r.detail.container=this,r.stopImmediatePropagation())})}get parent(){return this._parent===void 0&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return this.parent===null?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(t,...n){return this.context=t,this.register(...n),this.context=null,this}register(...t){if(++this.registerDepth===100)throw new Error("Unable to autoregister dependency");let n,r,i,o,s;const l=this.context;for(let a=0,c=t.length;athis}))}jitRegister(t,n){if(typeof t!="function")throw new Error(`Attempted to jitRegister something that is not a constructor: '${t}'. Did you forget to register this dependency?`);if(e2.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(ia(t)){const r=t.register(n);if(!(r instanceof Object)||r.resolve==null){const i=n.resolvers.get(t);if(i!=null)return i;throw new Error("A valid resolver was not returned from the static register method")}return r}else{if(t.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${t.friendlyName}`);{const r=this.config.defaultResolver(t,n);return n.resolvers.set(t,r),r}}}}const ad=new WeakMap;function jx(e){return function(t,n,r){if(ad.has(r))return ad.get(r);const i=e(t,n,r);return ad.set(r,i),i}}const js=Object.freeze({instance(e,t){return new Jt(e,0,t)},singleton(e,t){return new Jt(e,1,t)},transient(e,t){return new Jt(e,2,t)},callback(e,t){return new Jt(e,3,t)},cachedCallback(e,t){return new Jt(e,3,jx(t))},aliasTo(e,t){return new Jt(t,5,e)}});function _l(e){if(e==null)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function sv(e,t,n){if(e instanceof Jt&&e.strategy===4){const r=e.state;let i=r.length;const o=new Array(i);for(;i--;)o[i]=r[i].resolve(t,n);return o}return[e.resolve(t,n)]}const lv="(anonymous)";function av(e){return typeof e=="object"&&e!==null||typeof e=="function"}const t2=function(){const e=new WeakMap;let t=!1,n="",r=0;return function(i){return t=e.get(i),t===void 0&&(n=i.toString(),r=n.length,t=r>=29&&r<=100&&n.charCodeAt(r-1)===125&&n.charCodeAt(r-2)<=32&&n.charCodeAt(r-3)===93&&n.charCodeAt(r-4)===101&&n.charCodeAt(r-5)===100&&n.charCodeAt(r-6)===111&&n.charCodeAt(r-7)===99&&n.charCodeAt(r-8)===32&&n.charCodeAt(r-9)===101&&n.charCodeAt(r-10)===118&&n.charCodeAt(r-11)===105&&n.charCodeAt(r-12)===116&&n.charCodeAt(r-13)===97&&n.charCodeAt(r-14)===110&&n.charCodeAt(r-15)===88,e.set(i,t)),t}}(),Al={};function zx(e){switch(typeof e){case"number":return e>=0&&(e|0)===e;case"string":{const t=Al[e];if(t!==void 0)return t;const n=e.length;if(n===0)return Al[e]=!1;let r=0;for(let i=0;i1||r<48||r>57)return Al[e]=!1;return Al[e]=!0}default:return!1}}function cv(e){return`${e.toLowerCase()}:presentation`}const Dl=new Map,Bx=Object.freeze({define(e,t,n){const r=cv(e);Dl.get(r)===void 0?Dl.set(r,t):Dl.set(r,!1),n.register(js.instance(r,t))},forTag(e,t){const n=cv(e),r=Dl.get(n);return r===!1?ke.findResponsibleContainer(t).get(n):r||null}});class n2{constructor(t,n){this.template=t||null,this.styles=n===void 0?null:Array.isArray(n)?Rt.create(n):n instanceof Rt?n:Rt.create([n])}applyTo(t){const n=t.$fastController;n.template===null&&(n.template=this.template),n.styles===null&&(n.styles=this.styles)}}class ye extends nu{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return this._presentation===void 0&&(this._presentation=Bx.forTag(this.tagName,this)),this._presentation}templateChanged(){this.template!==void 0&&(this.$fastController.template=this.template)}stylesChanged(){this.styles!==void 0&&(this.$fastController.styles=this.styles)}connectedCallback(){this.$presentation!==null&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(t){return(n={})=>new Vx(this===ye?class extends ye{}:this,t,n)}}S([z],ye.prototype,"template",void 0);S([z],ye.prototype,"styles",void 0);function Uo(e,t,n){return typeof e=="function"?e(t,n):e}class Vx{constructor(t,n,r){this.type=t,this.elementDefinition=n,this.overrideDefinition=r,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(t,n){const r=this.definition,i=this.overrideDefinition,s=`${r.prefix||n.elementPrefix}-${r.baseName}`;n.tryDefineElement({name:s,type:this.type,baseClass:this.elementDefinition.baseClass,callback:l=>{const a=new n2(Uo(r.template,l,r),Uo(r.styles,l,r));l.definePresentation(a);let c=Uo(r.shadowOptions,l,r);l.shadowRootMode&&(c?i.shadowOptions||(c.mode=l.shadowRootMode):c!==null&&(c={mode:l.shadowRootMode})),l.defineElement({elementOptions:Uo(r.elementOptions,l,r),shadowOptions:c,attributes:Uo(r.attributes,l,r)})}})}}function At(e,...t){const n=Ga.locate(e);t.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(o=>{o!=="constructor"&&Object.defineProperty(e.prototype,o,Object.getOwnPropertyDescriptor(r.prototype,o))}),Ga.locate(r).forEach(o=>n.push(o))})}const gp={horizontal:"horizontal",vertical:"vertical"};function r2(e,t){let n=e.length;for(;n--;)if(t(e[n],n,e))return n;return-1}function i2(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function o2(...e){return e.every(t=>t instanceof HTMLElement)}function s2(){const e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}let Fr;function l2(){if(typeof Fr=="boolean")return Fr;if(!i2())return Fr=!1,Fr;const e=document.createElement("style"),t=s2();t!==null&&e.setAttribute("nonce",t),document.head.appendChild(e);try{e.sheet.insertRule("foo:focus-visible {color:inherit}",0),Fr=!0}catch{Fr=!1}finally{document.head.removeChild(e)}return Fr}const uv="focus",dv="focusin",uo="focusout",fo="keydown";var fv;(function(e){e[e.alt=18]="alt",e[e.arrowDown=40]="arrowDown",e[e.arrowLeft=37]="arrowLeft",e[e.arrowRight=39]="arrowRight",e[e.arrowUp=38]="arrowUp",e[e.back=8]="back",e[e.backSlash=220]="backSlash",e[e.break=19]="break",e[e.capsLock=20]="capsLock",e[e.closeBracket=221]="closeBracket",e[e.colon=186]="colon",e[e.colon2=59]="colon2",e[e.comma=188]="comma",e[e.ctrl=17]="ctrl",e[e.delete=46]="delete",e[e.end=35]="end",e[e.enter=13]="enter",e[e.equals=187]="equals",e[e.equals2=61]="equals2",e[e.equals3=107]="equals3",e[e.escape=27]="escape",e[e.forwardSlash=191]="forwardSlash",e[e.function1=112]="function1",e[e.function10=121]="function10",e[e.function11=122]="function11",e[e.function12=123]="function12",e[e.function2=113]="function2",e[e.function3=114]="function3",e[e.function4=115]="function4",e[e.function5=116]="function5",e[e.function6=117]="function6",e[e.function7=118]="function7",e[e.function8=119]="function8",e[e.function9=120]="function9",e[e.home=36]="home",e[e.insert=45]="insert",e[e.menu=93]="menu",e[e.minus=189]="minus",e[e.minus2=109]="minus2",e[e.numLock=144]="numLock",e[e.numPad0=96]="numPad0",e[e.numPad1=97]="numPad1",e[e.numPad2=98]="numPad2",e[e.numPad3=99]="numPad3",e[e.numPad4=100]="numPad4",e[e.numPad5=101]="numPad5",e[e.numPad6=102]="numPad6",e[e.numPad7=103]="numPad7",e[e.numPad8=104]="numPad8",e[e.numPad9=105]="numPad9",e[e.numPadDivide=111]="numPadDivide",e[e.numPadDot=110]="numPadDot",e[e.numPadMinus=109]="numPadMinus",e[e.numPadMultiply=106]="numPadMultiply",e[e.numPadPlus=107]="numPadPlus",e[e.openBracket=219]="openBracket",e[e.pageDown=34]="pageDown",e[e.pageUp=33]="pageUp",e[e.period=190]="period",e[e.print=44]="print",e[e.quote=222]="quote",e[e.scrollLock=145]="scrollLock",e[e.shift=16]="shift",e[e.space=32]="space",e[e.tab=9]="tab",e[e.tilde=192]="tilde",e[e.windowsLeft=91]="windowsLeft",e[e.windowsOpera=219]="windowsOpera",e[e.windowsRight=92]="windowsRight"})(fv||(fv={}));const di="ArrowDown",zs="ArrowLeft",Bs="ArrowRight",fi="ArrowUp",rl="Enter",ru="Escape",To="Home",Io="End",a2="F2",c2="PageDown",u2="PageUp",il=" ",vp="Tab",d2={ArrowDown:di,ArrowLeft:zs,ArrowRight:Bs,ArrowUp:fi};var ho;(function(e){e.ltr="ltr",e.rtl="rtl"})(ho||(ho={}));function f2(e,t,n){return Math.min(Math.max(n,e),t)}function Ml(e,t,n=0){return[t,n]=[t,n].sort((r,i)=>r-i),t<=e&&ese` - ${So(e,t)} + ${$o(e,t)} - ${Co(e,t)} + ${So(e,t)} -`;class be{}S([E({attribute:"aria-atomic"})],be.prototype,"ariaAtomic",void 0);S([E({attribute:"aria-busy"})],be.prototype,"ariaBusy",void 0);S([E({attribute:"aria-controls"})],be.prototype,"ariaControls",void 0);S([E({attribute:"aria-current"})],be.prototype,"ariaCurrent",void 0);S([E({attribute:"aria-describedby"})],be.prototype,"ariaDescribedby",void 0);S([E({attribute:"aria-details"})],be.prototype,"ariaDetails",void 0);S([E({attribute:"aria-disabled"})],be.prototype,"ariaDisabled",void 0);S([E({attribute:"aria-errormessage"})],be.prototype,"ariaErrormessage",void 0);S([E({attribute:"aria-flowto"})],be.prototype,"ariaFlowto",void 0);S([E({attribute:"aria-haspopup"})],be.prototype,"ariaHaspopup",void 0);S([E({attribute:"aria-hidden"})],be.prototype,"ariaHidden",void 0);S([E({attribute:"aria-invalid"})],be.prototype,"ariaInvalid",void 0);S([E({attribute:"aria-keyshortcuts"})],be.prototype,"ariaKeyshortcuts",void 0);S([E({attribute:"aria-label"})],be.prototype,"ariaLabel",void 0);S([E({attribute:"aria-labelledby"})],be.prototype,"ariaLabelledby",void 0);S([E({attribute:"aria-live"})],be.prototype,"ariaLive",void 0);S([E({attribute:"aria-owns"})],be.prototype,"ariaOwns",void 0);S([E({attribute:"aria-relevant"})],be.prototype,"ariaRelevant",void 0);S([E({attribute:"aria-roledescription"})],be.prototype,"ariaRoledescription",void 0);class xn extends ye{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((t=this.$fastController.definition.shadowOptions)===null||t===void 0)&&t.delegatesFocus)&&(this.focus=()=>{var n;(n=this.control)===null||n===void 0||n.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}}S([E],xn.prototype,"download",void 0);S([E],xn.prototype,"href",void 0);S([E],xn.prototype,"hreflang",void 0);S([E],xn.prototype,"ping",void 0);S([E],xn.prototype,"referrerpolicy",void 0);S([E],xn.prototype,"rel",void 0);S([E],xn.prototype,"target",void 0);S([E],xn.prototype,"type",void 0);S([F],xn.prototype,"defaultSlottedContent",void 0);class yp{}S([E({attribute:"aria-expanded"})],yp.prototype,"ariaExpanded",void 0);At(yp,be);At(xn,ko,yp);const f2=e=>{const t=e.closest("[dir]");return t!==null&&t.dir==="rtl"?fo.rtl:fo.ltr},Vx=(e,t)=>se` +`;class be{}S([E({attribute:"aria-atomic"})],be.prototype,"ariaAtomic",void 0);S([E({attribute:"aria-busy"})],be.prototype,"ariaBusy",void 0);S([E({attribute:"aria-controls"})],be.prototype,"ariaControls",void 0);S([E({attribute:"aria-current"})],be.prototype,"ariaCurrent",void 0);S([E({attribute:"aria-describedby"})],be.prototype,"ariaDescribedby",void 0);S([E({attribute:"aria-details"})],be.prototype,"ariaDetails",void 0);S([E({attribute:"aria-disabled"})],be.prototype,"ariaDisabled",void 0);S([E({attribute:"aria-errormessage"})],be.prototype,"ariaErrormessage",void 0);S([E({attribute:"aria-flowto"})],be.prototype,"ariaFlowto",void 0);S([E({attribute:"aria-haspopup"})],be.prototype,"ariaHaspopup",void 0);S([E({attribute:"aria-hidden"})],be.prototype,"ariaHidden",void 0);S([E({attribute:"aria-invalid"})],be.prototype,"ariaInvalid",void 0);S([E({attribute:"aria-keyshortcuts"})],be.prototype,"ariaKeyshortcuts",void 0);S([E({attribute:"aria-label"})],be.prototype,"ariaLabel",void 0);S([E({attribute:"aria-labelledby"})],be.prototype,"ariaLabelledby",void 0);S([E({attribute:"aria-live"})],be.prototype,"ariaLive",void 0);S([E({attribute:"aria-owns"})],be.prototype,"ariaOwns",void 0);S([E({attribute:"aria-relevant"})],be.prototype,"ariaRelevant",void 0);S([E({attribute:"aria-roledescription"})],be.prototype,"ariaRoledescription",void 0);class xn extends ye{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((t=this.$fastController.definition.shadowOptions)===null||t===void 0)&&t.delegatesFocus)&&(this.focus=()=>{var n;(n=this.control)===null||n===void 0||n.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}}S([E],xn.prototype,"download",void 0);S([E],xn.prototype,"href",void 0);S([E],xn.prototype,"hreflang",void 0);S([E],xn.prototype,"ping",void 0);S([E],xn.prototype,"referrerpolicy",void 0);S([E],xn.prototype,"rel",void 0);S([E],xn.prototype,"target",void 0);S([E],xn.prototype,"type",void 0);S([z],xn.prototype,"defaultSlottedContent",void 0);class yp{}S([E({attribute:"aria-expanded"})],yp.prototype,"ariaExpanded",void 0);At(yp,be);At(xn,Co,yp);const m2=e=>{const t=e.closest("[dir]");return t!==null&&t.dir==="rtl"?ho.rtl:ho.ltr},Hx=(e,t)=>se` -`;let ol=class extends ye{constructor(){super(...arguments),this.generateBadgeStyle=()=>{if(!this.fill&&!this.color)return;const t=`background-color: var(--badge-fill-${this.fill});`,n=`color: var(--badge-color-${this.color});`;return this.fill&&!this.color?t:this.color&&!this.fill?n:`${n} ${t}`}}};S([E({attribute:"fill"})],ol.prototype,"fill",void 0);S([E({attribute:"color"})],ol.prototype,"color",void 0);S([E({mode:"boolean"})],ol.prototype,"circular",void 0);const h2=(e,t)=>se` +`;let ol=class extends ye{constructor(){super(...arguments),this.generateBadgeStyle=()=>{if(!this.fill&&!this.color)return;const t=`background-color: var(--badge-fill-${this.fill});`,n=`color: var(--badge-color-${this.color});`;return this.fill&&!this.color?t:this.color&&!this.fill?n:`${n} ${t}`}}};S([E({attribute:"fill"})],ol.prototype,"fill",void 0);S([E({attribute:"color"})],ol.prototype,"color",void 0);S([E({mode:"boolean"})],ol.prototype,"circular",void 0);const g2=(e,t)=>se` -`,fv="form-associated-proxy",hv="ElementInternals",pv=hv in window&&"setFormValue"in window[hv].prototype,mv=new WeakMap;function sl(e){const t=class extends e{constructor(...n){super(...n),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return pv}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const n=this.proxy.labels,r=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),i=n?r.concat(Array.from(n)):r;return Object.freeze(i)}else return Jr}valueChanged(n,r){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(n,r){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(n,r){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),J.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(n,r){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(n,r){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),J.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!pv)return null;let n=mv.get(this);return n||(n=this.attachInternals(),mv.set(this,n)),n}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){super.disconnectedCallback(),this.proxyEventsToBlock.forEach(n=>this.proxy.removeEventListener(n,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(n,r,i){this.elementInternals?this.elementInternals.setValidity(n,r,i):typeof r=="string"&&this.proxy.setCustomValidity(r)}formDisabledCallback(n){this.disabled=n}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var n;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(r=>this.proxy.addEventListener(r,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",fv),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",fv)),(n=this.shadowRoot)===null||n===void 0||n.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var n;this.removeChild(this.proxy),(n=this.shadowRoot)===null||n===void 0||n.removeChild(this.proxySlot)}validate(n){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,n)}setFormValue(n,r){this.elementInternals&&this.elementInternals.setFormValue(n,r||n)}_keypressHandler(n){switch(n.key){case rl:if(this.form instanceof HTMLFormElement){const r=this.form.querySelector("[type=submit]");r==null||r.click()}break}}stopPropagation(n){n.stopPropagation()}};return E({mode:"boolean"})(t.prototype,"disabled"),E({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),E({attribute:"current-value"})(t.prototype,"currentValue"),E(t.prototype,"name"),E({mode:"boolean"})(t.prototype,"required"),F(t.prototype,"value"),t}function Hx(e){class t extends sl(e){}class n extends t{constructor(...i){super(i),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(i,o){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),i!==void 0&&this.$emit("change"),this.validate()}currentCheckedChanged(i,o){this.checked=this.currentChecked}updateForm(){const i=this.checked?this.value:null;this.setFormValue(i,i)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return E({attribute:"checked",mode:"boolean"})(n.prototype,"checkedAttribute"),E({attribute:"current-checked",converter:Ix})(n.prototype,"currentChecked"),F(n.prototype,"defaultChecked"),F(n.prototype,"checked"),n}class p2 extends ye{}class m2 extends sl(p2){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let wn=class extends m2{constructor(){super(...arguments),this.handleClick=t=>{var n;this.disabled&&((n=this.defaultSlottedContent)===null||n===void 0?void 0:n.length)<=1&&t.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;const t=this.proxy.isConnected;t||this.attachProxy(),typeof this.form.requestSubmit=="function"?this.form.requestSubmit(this.proxy):this.proxy.click(),t||this.detachProxy()},this.handleFormReset=()=>{var t;(t=this.form)===null||t===void 0||t.reset()},this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((t=this.$fastController.definition.shadowOptions)===null||t===void 0)&&t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(t,n){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),n==="submit"&&this.addEventListener("click",this.handleSubmission),t==="submit"&&this.removeEventListener("click",this.handleSubmission),n==="reset"&&this.addEventListener("click",this.handleFormReset),t==="reset"&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var t;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const n=Array.from((t=this.control)===null||t===void 0?void 0:t.children);n&&n.forEach(r=>{r.addEventListener("click",this.handleClick)})}disconnectedCallback(){var t;super.disconnectedCallback();const n=Array.from((t=this.control)===null||t===void 0?void 0:t.children);n&&n.forEach(r=>{r.removeEventListener("click",this.handleClick)})}};S([E({mode:"boolean"})],wn.prototype,"autofocus",void 0);S([E({attribute:"form"})],wn.prototype,"formId",void 0);S([E],wn.prototype,"formaction",void 0);S([E],wn.prototype,"formenctype",void 0);S([E],wn.prototype,"formmethod",void 0);S([E({mode:"boolean"})],wn.prototype,"formnovalidate",void 0);S([E],wn.prototype,"formtarget",void 0);S([E],wn.prototype,"type",void 0);S([F],wn.prototype,"defaultSlottedContent",void 0);class ru{}S([E({attribute:"aria-expanded"})],ru.prototype,"ariaExpanded",void 0);S([E({attribute:"aria-pressed"})],ru.prototype,"ariaPressed",void 0);At(ru,be);At(wn,ko,ru);const Ll={none:"none",default:"default",sticky:"sticky"},lr={default:"default",columnHeader:"columnheader",rowHeader:"rowheader"},fs={default:"default",header:"header",stickyHeader:"sticky-header"};let ct=class extends ye{constructor(){super(...arguments),this.rowType=fs.default,this.rowData=null,this.columnDefinitions=null,this.isActiveRow=!1,this.cellsRepeatBehavior=null,this.cellsPlaceholder=null,this.focusColumnIndex=0,this.refocusOnLoad=!1,this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns}}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowStyle()}rowTypeChanged(){this.$fastController.isConnected&&this.updateItemTemplate()}rowDataChanged(){if(this.rowData!==null&&this.isActiveRow){this.refocusOnLoad=!0;return}}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback(),this.cellsRepeatBehavior===null&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new Dx(t=>t.columnDefinitions,t=>t.activeCellItemTemplate,{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener(co,this.handleFocusout),this.addEventListener(uo,this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener(co,this.handleFocusout),this.removeEventListener(uo,this.handleKeydown)}handleFocusout(t){this.contains(t.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}handleCellFocus(t){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(t.target),this.$emit("row-focused",this)}handleKeydown(t){if(t.defaultPrevented)return;let n=0;switch(t.key){case zs:n=Math.max(0,this.focusColumnIndex-1),this.cellElements[n].focus(),t.preventDefault();break;case Bs:n=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[n].focus(),t.preventDefault();break;case $o:t.ctrlKey||(this.cellElements[0].focus(),t.preventDefault());break;case To:t.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),t.preventDefault());break}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===fs.default&&this.cellItemTemplate!==void 0?this.cellItemTemplate:this.rowType===fs.default&&this.cellItemTemplate===void 0?this.defaultCellItemTemplate:this.headerCellItemTemplate!==void 0?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}};S([E({attribute:"grid-template-columns"})],ct.prototype,"gridTemplateColumns",void 0);S([E({attribute:"row-type"})],ct.prototype,"rowType",void 0);S([F],ct.prototype,"rowData",void 0);S([F],ct.prototype,"columnDefinitions",void 0);S([F],ct.prototype,"cellItemTemplate",void 0);S([F],ct.prototype,"headerCellItemTemplate",void 0);S([F],ct.prototype,"rowIndex",void 0);S([F],ct.prototype,"isActiveRow",void 0);S([F],ct.prototype,"activeCellItemTemplate",void 0);S([F],ct.prototype,"defaultCellItemTemplate",void 0);S([F],ct.prototype,"defaultHeaderCellItemTemplate",void 0);S([F],ct.prototype,"cellElements",void 0);function g2(e){const t=e.tagFor(ct);return se` +`,hv="form-associated-proxy",pv="ElementInternals",mv=pv in window&&"setFormValue"in window[pv].prototype,gv=new WeakMap;function sl(e){const t=class extends e{constructor(...n){super(...n),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return mv}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const n=this.proxy.labels,r=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),i=n?r.concat(Array.from(n)):r;return Object.freeze(i)}else return Jr}valueChanged(n,r){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(n,r){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(n,r){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),J.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(n,r){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(n,r){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),J.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!mv)return null;let n=gv.get(this);return n||(n=this.attachInternals(),gv.set(this,n)),n}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){super.disconnectedCallback(),this.proxyEventsToBlock.forEach(n=>this.proxy.removeEventListener(n,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(n,r,i){this.elementInternals?this.elementInternals.setValidity(n,r,i):typeof r=="string"&&this.proxy.setCustomValidity(r)}formDisabledCallback(n){this.disabled=n}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var n;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(r=>this.proxy.addEventListener(r,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",hv),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",hv)),(n=this.shadowRoot)===null||n===void 0||n.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var n;this.removeChild(this.proxy),(n=this.shadowRoot)===null||n===void 0||n.removeChild(this.proxySlot)}validate(n){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,n)}setFormValue(n,r){this.elementInternals&&this.elementInternals.setFormValue(n,r||n)}_keypressHandler(n){switch(n.key){case rl:if(this.form instanceof HTMLFormElement){const r=this.form.querySelector("[type=submit]");r==null||r.click()}break}}stopPropagation(n){n.stopPropagation()}};return E({mode:"boolean"})(t.prototype,"disabled"),E({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),E({attribute:"current-value"})(t.prototype,"currentValue"),E(t.prototype,"name"),E({mode:"boolean"})(t.prototype,"required"),z(t.prototype,"value"),t}function Ux(e){class t extends sl(e){}class n extends t{constructor(...i){super(i),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(i,o){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),i!==void 0&&this.$emit("change"),this.validate()}currentCheckedChanged(i,o){this.checked=this.currentChecked}updateForm(){const i=this.checked?this.value:null;this.setFormValue(i,i)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return E({attribute:"checked",mode:"boolean"})(n.prototype,"checkedAttribute"),E({attribute:"current-checked",converter:Ex})(n.prototype,"currentChecked"),z(n.prototype,"defaultChecked"),z(n.prototype,"checked"),n}class v2 extends ye{}class y2 extends sl(v2){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let wn=class extends y2{constructor(){super(...arguments),this.handleClick=t=>{var n;this.disabled&&((n=this.defaultSlottedContent)===null||n===void 0?void 0:n.length)<=1&&t.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;const t=this.proxy.isConnected;t||this.attachProxy(),typeof this.form.requestSubmit=="function"?this.form.requestSubmit(this.proxy):this.proxy.click(),t||this.detachProxy()},this.handleFormReset=()=>{var t;(t=this.form)===null||t===void 0||t.reset()},this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((t=this.$fastController.definition.shadowOptions)===null||t===void 0)&&t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(t,n){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),n==="submit"&&this.addEventListener("click",this.handleSubmission),t==="submit"&&this.removeEventListener("click",this.handleSubmission),n==="reset"&&this.addEventListener("click",this.handleFormReset),t==="reset"&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var t;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const n=Array.from((t=this.control)===null||t===void 0?void 0:t.children);n&&n.forEach(r=>{r.addEventListener("click",this.handleClick)})}disconnectedCallback(){var t;super.disconnectedCallback();const n=Array.from((t=this.control)===null||t===void 0?void 0:t.children);n&&n.forEach(r=>{r.removeEventListener("click",this.handleClick)})}};S([E({mode:"boolean"})],wn.prototype,"autofocus",void 0);S([E({attribute:"form"})],wn.prototype,"formId",void 0);S([E],wn.prototype,"formaction",void 0);S([E],wn.prototype,"formenctype",void 0);S([E],wn.prototype,"formmethod",void 0);S([E({mode:"boolean"})],wn.prototype,"formnovalidate",void 0);S([E],wn.prototype,"formtarget",void 0);S([E],wn.prototype,"type",void 0);S([z],wn.prototype,"defaultSlottedContent",void 0);class iu{}S([E({attribute:"aria-expanded"})],iu.prototype,"ariaExpanded",void 0);S([E({attribute:"aria-pressed"})],iu.prototype,"ariaPressed",void 0);At(iu,be);At(wn,Co,iu);const Ll={none:"none",default:"default",sticky:"sticky"},lr={default:"default",columnHeader:"columnheader",rowHeader:"rowheader"},fs={default:"default",header:"header",stickyHeader:"sticky-header"};let at=class extends ye{constructor(){super(...arguments),this.rowType=fs.default,this.rowData=null,this.columnDefinitions=null,this.isActiveRow=!1,this.cellsRepeatBehavior=null,this.cellsPlaceholder=null,this.focusColumnIndex=0,this.refocusOnLoad=!1,this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns}}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowStyle()}rowTypeChanged(){this.$fastController.isConnected&&this.updateItemTemplate()}rowDataChanged(){if(this.rowData!==null&&this.isActiveRow){this.refocusOnLoad=!0;return}}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback(),this.cellsRepeatBehavior===null&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new Mx(t=>t.columnDefinitions,t=>t.activeCellItemTemplate,{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener(uo,this.handleFocusout),this.addEventListener(fo,this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener(uo,this.handleFocusout),this.removeEventListener(fo,this.handleKeydown)}handleFocusout(t){this.contains(t.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}handleCellFocus(t){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(t.target),this.$emit("row-focused",this)}handleKeydown(t){if(t.defaultPrevented)return;let n=0;switch(t.key){case zs:n=Math.max(0,this.focusColumnIndex-1),this.cellElements[n].focus(),t.preventDefault();break;case Bs:n=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[n].focus(),t.preventDefault();break;case To:t.ctrlKey||(this.cellElements[0].focus(),t.preventDefault());break;case Io:t.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),t.preventDefault());break}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===fs.default&&this.cellItemTemplate!==void 0?this.cellItemTemplate:this.rowType===fs.default&&this.cellItemTemplate===void 0?this.defaultCellItemTemplate:this.headerCellItemTemplate!==void 0?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}};S([E({attribute:"grid-template-columns"})],at.prototype,"gridTemplateColumns",void 0);S([E({attribute:"row-type"})],at.prototype,"rowType",void 0);S([z],at.prototype,"rowData",void 0);S([z],at.prototype,"columnDefinitions",void 0);S([z],at.prototype,"cellItemTemplate",void 0);S([z],at.prototype,"headerCellItemTemplate",void 0);S([z],at.prototype,"rowIndex",void 0);S([z],at.prototype,"isActiveRow",void 0);S([z],at.prototype,"activeCellItemTemplate",void 0);S([z],at.prototype,"defaultCellItemTemplate",void 0);S([z],at.prototype,"defaultHeaderCellItemTemplate",void 0);S([z],at.prototype,"cellElements",void 0);function b2(e){const t=e.tagFor(at);return se` <${t} :rowData="${n=>n}" :cellItemTemplate="${(n,r)=>r.parent.cellItemTemplate}" :headerCellItemTemplate="${(n,r)=>r.parent.headerCellItemTemplate}" > -`}const v2=(e,t)=>{const n=g2(e),r=e.tagFor(ct);return se` +`}const x2=(e,t)=>{const n=b2(e),r=e.tagFor(at);return se` - `};let ut=class Rf extends ye{constructor(){super(),this.noTabbing=!1,this.generateHeader=Ll.default,this.rowsData=[],this.columnDefinitions=null,this.focusRowIndex=0,this.focusColumnIndex=0,this.rowsPlaceholder=null,this.generatedHeader=null,this.isUpdatingFocus=!1,this.pendingFocusUpdate=!1,this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!0,this.generatedGridTemplateColumns="",this.focusOnCell=(t,n,r)=>{if(this.rowElements.length===0){this.focusRowIndex=0,this.focusColumnIndex=0;return}const i=Math.max(0,Math.min(this.rowElements.length-1,t)),s=this.rowElements[i].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),l=Math.max(0,Math.min(s.length-1,n)),a=s[l];r&&this.scrollHeight!==this.clientHeight&&(i0||i>this.focusRowIndex&&this.scrollTop{t&&t.length&&(t.forEach(r=>{r.addedNodes.forEach(i=>{i.nodeType===1&&i.getAttribute("role")==="row"&&(i.columnDefinitions=this.columnDefinitions)})}),this.queueRowIndexUpdate())},this.queueRowIndexUpdate=()=>{this.rowindexUpdateQueued||(this.rowindexUpdateQueued=!0,J.queueUpdate(this.updateRowIndexes))},this.updateRowIndexes=()=>{let t=this.gridTemplateColumns;if(t===void 0){if(this.generatedGridTemplateColumns===""&&this.rowElements.length>0){const n=this.rowElements[0];this.generatedGridTemplateColumns=new Array(n.cellElements.length).fill("1fr").join(" ")}t=this.generatedGridTemplateColumns}this.rowElements.forEach((n,r)=>{const i=n;i.rowIndex=r,i.gridTemplateColumns=t,this.columnDefinitionsStale&&(i.columnDefinitions=this.columnDefinitions)}),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1}}static generateTemplateColumns(t){let n="";return t.forEach(r=>{n=`${n}${n===""?"":" "}1fr`}),n}noTabbingChanged(){this.$fastController.isConnected&&(this.noTabbing?this.setAttribute("tabIndex","-1"):this.setAttribute("tabIndex",this.contains(document.activeElement)||this===document.activeElement?"-1":"0"))}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowIndexes()}rowsDataChanged(){this.columnDefinitions===null&&this.rowsData.length>0&&(this.columnDefinitions=Rf.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}columnDefinitionsChanged(){if(this.columnDefinitions===null){this.generatedGridTemplateColumns="";return}this.generatedGridTemplateColumns=Rf.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())}headerCellItemTemplateChanged(){this.$fastController.isConnected&&this.generatedHeader!==null&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}focusRowIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}focusColumnIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}connectedCallback(){super.connectedCallback(),this.rowItemTemplate===void 0&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new Dx(t=>t.rowsData,t=>t.rowItemTemplate,{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener(cv,this.handleFocus),this.addEventListener(uo,this.handleKeydown),this.addEventListener(co,this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.noTabbing&&this.setAttribute("tabindex","-1"),J.queueUpdate(this.queueRowIndexUpdate)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener(cv,this.handleFocus),this.removeEventListener(uo,this.handleKeydown),this.removeEventListener(co,this.handleFocusOut),this.observer.disconnect(),this.rowsPlaceholder=null,this.generatedHeader=null}handleRowFocus(t){this.isUpdatingFocus=!0;const n=t.target;this.focusRowIndex=this.rowElements.indexOf(n),this.focusColumnIndex=n.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}handleFocus(t){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}handleFocusOut(t){(t.relatedTarget===null||!this.contains(t.relatedTarget))&&this.setAttribute("tabIndex",this.noTabbing?"-1":"0")}handleKeydown(t){if(t.defaultPrevented)return;let n;const r=this.rowElements.length-1,i=this.offsetHeight+this.scrollTop,o=this.rowElements[r];switch(t.key){case fi:t.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case di:t.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case l2:if(t.preventDefault(),this.rowElements.length===0){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex===0){this.focusOnCell(0,this.focusColumnIndex,!1);return}for(n=this.focusRowIndex-1,n;n>=0;n--){const s=this.rowElements[n];if(s.offsetTop=r||o.offsetTop+o.offsetHeight<=i){this.focusOnCell(r,this.focusColumnIndex,!1);return}for(n=this.focusRowIndex+1,n;n<=r;n++){const s=this.rowElements[n];if(s.offsetTop+s.offsetHeight>i){let l=0;this.generateHeader===Ll.sticky&&this.generatedHeader!==null&&(l=this.generatedHeader.clientHeight),this.scrollTop=s.offsetTop-l;break}}this.focusOnCell(n,this.focusColumnIndex,!1);break;case $o:t.ctrlKey&&(t.preventDefault(),this.focusOnCell(0,0,!0));break;case To:t.ctrlKey&&this.columnDefinitions!==null&&(t.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0));break}}queueFocusUpdate(){this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)||this.pendingFocusUpdate===!1&&(this.pendingFocusUpdate=!0,J.queueUpdate(()=>this.updateFocus()))}updateFocus(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}toggleGeneratedHeader(){if(this.generatedHeader!==null&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),this.generateHeader!==Ll.none&&this.rowsData.length>0){const t=document.createElement(this.rowElementTag);this.generatedHeader=t,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===Ll.sticky?fs.stickyHeader:fs.header,(this.firstChild!==null||this.rowsPlaceholder!==null)&&this.insertBefore(t,this.firstChild!==null?this.firstChild:this.rowsPlaceholder);return}}};ut.generateColumns=e=>Object.getOwnPropertyNames(e).map((t,n)=>({columnDataKey:t,gridColumn:`${n}`}));S([E({attribute:"no-tabbing",mode:"boolean"})],ut.prototype,"noTabbing",void 0);S([E({attribute:"generate-header"})],ut.prototype,"generateHeader",void 0);S([E({attribute:"grid-template-columns"})],ut.prototype,"gridTemplateColumns",void 0);S([F],ut.prototype,"rowsData",void 0);S([F],ut.prototype,"columnDefinitions",void 0);S([F],ut.prototype,"rowItemTemplate",void 0);S([F],ut.prototype,"cellItemTemplate",void 0);S([F],ut.prototype,"headerCellItemTemplate",void 0);S([F],ut.prototype,"focusRowIndex",void 0);S([F],ut.prototype,"focusColumnIndex",void 0);S([F],ut.prototype,"defaultRowItemTemplate",void 0);S([F],ut.prototype,"rowElementTag",void 0);S([F],ut.prototype,"rowElements",void 0);const y2=se` + `};let ct=class Pf extends ye{constructor(){super(),this.noTabbing=!1,this.generateHeader=Ll.default,this.rowsData=[],this.columnDefinitions=null,this.focusRowIndex=0,this.focusColumnIndex=0,this.rowsPlaceholder=null,this.generatedHeader=null,this.isUpdatingFocus=!1,this.pendingFocusUpdate=!1,this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!0,this.generatedGridTemplateColumns="",this.focusOnCell=(t,n,r)=>{if(this.rowElements.length===0){this.focusRowIndex=0,this.focusColumnIndex=0;return}const i=Math.max(0,Math.min(this.rowElements.length-1,t)),s=this.rowElements[i].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),l=Math.max(0,Math.min(s.length-1,n)),a=s[l];r&&this.scrollHeight!==this.clientHeight&&(i0||i>this.focusRowIndex&&this.scrollTop{t&&t.length&&(t.forEach(r=>{r.addedNodes.forEach(i=>{i.nodeType===1&&i.getAttribute("role")==="row"&&(i.columnDefinitions=this.columnDefinitions)})}),this.queueRowIndexUpdate())},this.queueRowIndexUpdate=()=>{this.rowindexUpdateQueued||(this.rowindexUpdateQueued=!0,J.queueUpdate(this.updateRowIndexes))},this.updateRowIndexes=()=>{let t=this.gridTemplateColumns;if(t===void 0){if(this.generatedGridTemplateColumns===""&&this.rowElements.length>0){const n=this.rowElements[0];this.generatedGridTemplateColumns=new Array(n.cellElements.length).fill("1fr").join(" ")}t=this.generatedGridTemplateColumns}this.rowElements.forEach((n,r)=>{const i=n;i.rowIndex=r,i.gridTemplateColumns=t,this.columnDefinitionsStale&&(i.columnDefinitions=this.columnDefinitions)}),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1}}static generateTemplateColumns(t){let n="";return t.forEach(r=>{n=`${n}${n===""?"":" "}1fr`}),n}noTabbingChanged(){this.$fastController.isConnected&&(this.noTabbing?this.setAttribute("tabIndex","-1"):this.setAttribute("tabIndex",this.contains(document.activeElement)||this===document.activeElement?"-1":"0"))}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowIndexes()}rowsDataChanged(){this.columnDefinitions===null&&this.rowsData.length>0&&(this.columnDefinitions=Pf.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}columnDefinitionsChanged(){if(this.columnDefinitions===null){this.generatedGridTemplateColumns="";return}this.generatedGridTemplateColumns=Pf.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())}headerCellItemTemplateChanged(){this.$fastController.isConnected&&this.generatedHeader!==null&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}focusRowIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}focusColumnIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}connectedCallback(){super.connectedCallback(),this.rowItemTemplate===void 0&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new Mx(t=>t.rowsData,t=>t.rowItemTemplate,{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener(uv,this.handleFocus),this.addEventListener(fo,this.handleKeydown),this.addEventListener(uo,this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.noTabbing&&this.setAttribute("tabindex","-1"),J.queueUpdate(this.queueRowIndexUpdate)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener(uv,this.handleFocus),this.removeEventListener(fo,this.handleKeydown),this.removeEventListener(uo,this.handleFocusOut),this.observer.disconnect(),this.rowsPlaceholder=null,this.generatedHeader=null}handleRowFocus(t){this.isUpdatingFocus=!0;const n=t.target;this.focusRowIndex=this.rowElements.indexOf(n),this.focusColumnIndex=n.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}handleFocus(t){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}handleFocusOut(t){(t.relatedTarget===null||!this.contains(t.relatedTarget))&&this.setAttribute("tabIndex",this.noTabbing?"-1":"0")}handleKeydown(t){if(t.defaultPrevented)return;let n;const r=this.rowElements.length-1,i=this.offsetHeight+this.scrollTop,o=this.rowElements[r];switch(t.key){case fi:t.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case di:t.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case u2:if(t.preventDefault(),this.rowElements.length===0){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex===0){this.focusOnCell(0,this.focusColumnIndex,!1);return}for(n=this.focusRowIndex-1,n;n>=0;n--){const s=this.rowElements[n];if(s.offsetTop=r||o.offsetTop+o.offsetHeight<=i){this.focusOnCell(r,this.focusColumnIndex,!1);return}for(n=this.focusRowIndex+1,n;n<=r;n++){const s=this.rowElements[n];if(s.offsetTop+s.offsetHeight>i){let l=0;this.generateHeader===Ll.sticky&&this.generatedHeader!==null&&(l=this.generatedHeader.clientHeight),this.scrollTop=s.offsetTop-l;break}}this.focusOnCell(n,this.focusColumnIndex,!1);break;case To:t.ctrlKey&&(t.preventDefault(),this.focusOnCell(0,0,!0));break;case Io:t.ctrlKey&&this.columnDefinitions!==null&&(t.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0));break}}queueFocusUpdate(){this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)||this.pendingFocusUpdate===!1&&(this.pendingFocusUpdate=!0,J.queueUpdate(()=>this.updateFocus()))}updateFocus(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}toggleGeneratedHeader(){if(this.generatedHeader!==null&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),this.generateHeader!==Ll.none&&this.rowsData.length>0){const t=document.createElement(this.rowElementTag);this.generatedHeader=t,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===Ll.sticky?fs.stickyHeader:fs.header,(this.firstChild!==null||this.rowsPlaceholder!==null)&&this.insertBefore(t,this.firstChild!==null?this.firstChild:this.rowsPlaceholder);return}}};ct.generateColumns=e=>Object.getOwnPropertyNames(e).map((t,n)=>({columnDataKey:t,gridColumn:`${n}`}));S([E({attribute:"no-tabbing",mode:"boolean"})],ct.prototype,"noTabbing",void 0);S([E({attribute:"generate-header"})],ct.prototype,"generateHeader",void 0);S([E({attribute:"grid-template-columns"})],ct.prototype,"gridTemplateColumns",void 0);S([z],ct.prototype,"rowsData",void 0);S([z],ct.prototype,"columnDefinitions",void 0);S([z],ct.prototype,"rowItemTemplate",void 0);S([z],ct.prototype,"cellItemTemplate",void 0);S([z],ct.prototype,"headerCellItemTemplate",void 0);S([z],ct.prototype,"focusRowIndex",void 0);S([z],ct.prototype,"focusColumnIndex",void 0);S([z],ct.prototype,"defaultRowItemTemplate",void 0);S([z],ct.prototype,"rowElementTag",void 0);S([z],ct.prototype,"rowElements",void 0);const w2=se` -`,b2=se` +`,k2=se` -`;let Mr=class extends ye{constructor(){super(...arguments),this.cellType=lr.default,this.rowData=null,this.columnDefinition=null,this.isActiveCell=!1,this.customCellView=null,this.updateCellStyle=()=>{this.style.gridColumn=this.gridColumn}}cellTypeChanged(){this.$fastController.isConnected&&this.updateCellView()}gridColumnChanged(){this.$fastController.isConnected&&this.updateCellStyle()}columnDefinitionChanged(t,n){this.$fastController.isConnected&&this.updateCellView()}connectedCallback(){var t;super.connectedCallback(),this.addEventListener(uv,this.handleFocusin),this.addEventListener(co,this.handleFocusout),this.addEventListener(uo,this.handleKeydown),this.style.gridColumn=`${((t=this.columnDefinition)===null||t===void 0?void 0:t.gridColumn)===void 0?0:this.columnDefinition.gridColumn}`,this.updateCellView(),this.updateCellStyle()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(uv,this.handleFocusin),this.removeEventListener(co,this.handleFocusout),this.removeEventListener(uo,this.handleKeydown),this.disconnectCellView()}handleFocusin(t){if(!this.isActiveCell){switch(this.isActiveCell=!0,this.cellType){case lr.columnHeader:if(this.columnDefinition!==null&&this.columnDefinition.headerCellInternalFocusQueue!==!0&&typeof this.columnDefinition.headerCellFocusTargetCallback=="function"){const n=this.columnDefinition.headerCellFocusTargetCallback(this);n!==null&&n.focus()}break;default:if(this.columnDefinition!==null&&this.columnDefinition.cellInternalFocusQueue!==!0&&typeof this.columnDefinition.cellFocusTargetCallback=="function"){const n=this.columnDefinition.cellFocusTargetCallback(this);n!==null&&n.focus()}break}this.$emit("cell-focused",this)}}handleFocusout(t){this!==document.activeElement&&!this.contains(document.activeElement)&&(this.isActiveCell=!1)}handleKeydown(t){if(!(t.defaultPrevented||this.columnDefinition===null||this.cellType===lr.default&&this.columnDefinition.cellInternalFocusQueue!==!0||this.cellType===lr.columnHeader&&this.columnDefinition.headerCellInternalFocusQueue!==!0))switch(t.key){case rl:case o2:if(this.contains(document.activeElement)&&document.activeElement!==this)return;switch(this.cellType){case lr.columnHeader:if(this.columnDefinition.headerCellFocusTargetCallback!==void 0){const n=this.columnDefinition.headerCellFocusTargetCallback(this);n!==null&&n.focus(),t.preventDefault()}break;default:if(this.columnDefinition.cellFocusTargetCallback!==void 0){const n=this.columnDefinition.cellFocusTargetCallback(this);n!==null&&n.focus(),t.preventDefault()}break}break;case nu:this.contains(document.activeElement)&&document.activeElement!==this&&(this.focus(),t.preventDefault());break}}updateCellView(){if(this.disconnectCellView(),this.columnDefinition!==null)switch(this.cellType){case lr.columnHeader:this.columnDefinition.headerCellTemplate!==void 0?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=b2.render(this,this);break;case void 0:case lr.rowHeader:case lr.default:this.columnDefinition.cellTemplate!==void 0?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=y2.render(this,this);break}}disconnectCellView(){this.customCellView!==null&&(this.customCellView.dispose(),this.customCellView=null)}};S([E({attribute:"cell-type"})],Mr.prototype,"cellType",void 0);S([E({attribute:"grid-column"})],Mr.prototype,"gridColumn",void 0);S([F],Mr.prototype,"rowData",void 0);S([F],Mr.prototype,"columnDefinition",void 0);function x2(e){const t=e.tagFor(Mr);return se` +`;let Mr=class extends ye{constructor(){super(...arguments),this.cellType=lr.default,this.rowData=null,this.columnDefinition=null,this.isActiveCell=!1,this.customCellView=null,this.updateCellStyle=()=>{this.style.gridColumn=this.gridColumn}}cellTypeChanged(){this.$fastController.isConnected&&this.updateCellView()}gridColumnChanged(){this.$fastController.isConnected&&this.updateCellStyle()}columnDefinitionChanged(t,n){this.$fastController.isConnected&&this.updateCellView()}connectedCallback(){var t;super.connectedCallback(),this.addEventListener(dv,this.handleFocusin),this.addEventListener(uo,this.handleFocusout),this.addEventListener(fo,this.handleKeydown),this.style.gridColumn=`${((t=this.columnDefinition)===null||t===void 0?void 0:t.gridColumn)===void 0?0:this.columnDefinition.gridColumn}`,this.updateCellView(),this.updateCellStyle()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(dv,this.handleFocusin),this.removeEventListener(uo,this.handleFocusout),this.removeEventListener(fo,this.handleKeydown),this.disconnectCellView()}handleFocusin(t){if(!this.isActiveCell){switch(this.isActiveCell=!0,this.cellType){case lr.columnHeader:if(this.columnDefinition!==null&&this.columnDefinition.headerCellInternalFocusQueue!==!0&&typeof this.columnDefinition.headerCellFocusTargetCallback=="function"){const n=this.columnDefinition.headerCellFocusTargetCallback(this);n!==null&&n.focus()}break;default:if(this.columnDefinition!==null&&this.columnDefinition.cellInternalFocusQueue!==!0&&typeof this.columnDefinition.cellFocusTargetCallback=="function"){const n=this.columnDefinition.cellFocusTargetCallback(this);n!==null&&n.focus()}break}this.$emit("cell-focused",this)}}handleFocusout(t){this!==document.activeElement&&!this.contains(document.activeElement)&&(this.isActiveCell=!1)}handleKeydown(t){if(!(t.defaultPrevented||this.columnDefinition===null||this.cellType===lr.default&&this.columnDefinition.cellInternalFocusQueue!==!0||this.cellType===lr.columnHeader&&this.columnDefinition.headerCellInternalFocusQueue!==!0))switch(t.key){case rl:case a2:if(this.contains(document.activeElement)&&document.activeElement!==this)return;switch(this.cellType){case lr.columnHeader:if(this.columnDefinition.headerCellFocusTargetCallback!==void 0){const n=this.columnDefinition.headerCellFocusTargetCallback(this);n!==null&&n.focus(),t.preventDefault()}break;default:if(this.columnDefinition.cellFocusTargetCallback!==void 0){const n=this.columnDefinition.cellFocusTargetCallback(this);n!==null&&n.focus(),t.preventDefault()}break}break;case ru:this.contains(document.activeElement)&&document.activeElement!==this&&(this.focus(),t.preventDefault());break}}updateCellView(){if(this.disconnectCellView(),this.columnDefinition!==null)switch(this.cellType){case lr.columnHeader:this.columnDefinition.headerCellTemplate!==void 0?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=k2.render(this,this);break;case void 0:case lr.rowHeader:case lr.default:this.columnDefinition.cellTemplate!==void 0?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=w2.render(this,this);break}}disconnectCellView(){this.customCellView!==null&&(this.customCellView.dispose(),this.customCellView=null)}};S([E({attribute:"cell-type"})],Mr.prototype,"cellType",void 0);S([E({attribute:"grid-column"})],Mr.prototype,"gridColumn",void 0);S([z],Mr.prototype,"rowData",void 0);S([z],Mr.prototype,"columnDefinition",void 0);function C2(e){const t=e.tagFor(Mr);return se` <${t} cell-type="${n=>n.isRowHeader?"rowheader":void 0}" grid-column="${(n,r)=>r.index+1}" :rowData="${(n,r)=>r.parent.rowData}" :columnDefinition="${n=>n}" > -`}function w2(e){const t=e.tagFor(Mr);return se` +`}function S2(e){const t=e.tagFor(Mr);return se` <${t} cell-type="columnheader" grid-column="${(n,r)=>r.index+1}" :columnDefinition="${n=>n}" > -`}const k2=(e,t)=>{const n=x2(e),r=w2(e);return se` +`}const $2=(e,t)=>{const n=C2(e),r=S2(e);return se` - `},C2=(e,t)=>se` + `},T2=(e,t)=>se` - `,S2=(e,t)=>se` + `,I2=(e,t)=>se` -`;class $2 extends ye{}class T2 extends Hx($2){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let iu=class extends T2{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=t=>{if(!this.readOnly)switch(t.key){case il:this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked;break}},this.clickHandler=t=>{!this.disabled&&!this.readOnly&&(this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}};S([E({attribute:"readonly",mode:"boolean"})],iu.prototype,"readOnly",void 0);S([F],iu.prototype,"defaultSlottedNodes",void 0);S([F],iu.prototype,"indeterminate",void 0);function Ux(e){return n2(e)&&(e.getAttribute("role")==="option"||e instanceof HTMLOptionElement)}class tr extends ye{constructor(t,n,r,i){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,t&&(this.textContent=t),n&&(this.initialValue=n),r&&(this.defaultSelected=r),i&&(this.selected=i),this.proxy=new Option(`${this.textContent}`,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}checkedChanged(t,n){if(typeof n=="boolean"){this.ariaChecked=n?"true":"false";return}this.ariaChecked=null}contentChanged(t,n){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(t,n){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}initialValueChanged(t,n){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){var t;return(t=this.value)!==null&&t!==void 0?t:this.text}get text(){var t,n;return(n=(t=this.textContent)===null||t===void 0?void 0:t.replace(/\s+/g," ").trim())!==null&&n!==void 0?n:""}set value(t){const n=`${t??""}`;this._value=n,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=n),Y.notify(this,"value")}get value(){var t;return Y.track(this,"value"),(t=this._value)!==null&&t!==void 0?t:this.text}get form(){return this.proxy?this.proxy.form:null}}S([F],tr.prototype,"checked",void 0);S([F],tr.prototype,"content",void 0);S([F],tr.prototype,"defaultSelected",void 0);S([E({mode:"boolean"})],tr.prototype,"disabled",void 0);S([E({attribute:"selected",mode:"boolean"})],tr.prototype,"selectedAttribute",void 0);S([F],tr.prototype,"selected",void 0);S([E({attribute:"value",mode:"fromView"})],tr.prototype,"initialValue",void 0);class Io{}S([F],Io.prototype,"ariaChecked",void 0);S([F],Io.prototype,"ariaPosInSet",void 0);S([F],Io.prototype,"ariaSelected",void 0);S([F],Io.prototype,"ariaSetSize",void 0);At(Io,be);At(tr,ko,Io);class vt extends ye{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var t;return(t=this.selectedOptions[0])!==null&&t!==void 0?t:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every(t=>t.disabled)}get length(){var t,n;return(n=(t=this.options)===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0}get options(){return Y.track(this,"options"),this._options}set options(t){this._options=t,Y.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(t){this.typeaheadExpired=t}clickHandler(t){const n=t.target.closest("option,[role=option]");if(n&&!n.disabled)return this.selectedIndex=this.options.indexOf(n),!0}focusAndScrollOptionIntoView(t=this.firstSelectedOption){this.contains(document.activeElement)&&t!==null&&(t.focus(),requestAnimationFrame(()=>{t.scrollIntoView({block:"nearest"})}))}focusinHandler(t){!this.shouldSkipFocus&&t.target===t.currentTarget&&(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){const t=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),n=new RegExp(`^${t}`,"gi");return this.options.filter(r=>r.text.trim().match(n))}getSelectableIndex(t=this.selectedIndex,n){const r=t>n?-1:t!s&&!l.disabled&&a!s&&!l.disabled&&a>i?l:s,o);break}}return this.options.indexOf(o)}handleChange(t,n){switch(n){case"selected":{vt.slottedOptionFilter(t)&&(this.selectedIndex=this.options.indexOf(t)),this.setSelectedOptions();break}}}handleTypeAhead(t){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout(()=>this.typeaheadExpired=!0,vt.TYPE_AHEAD_TIMEOUT_MS),!(t.length>1)&&(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${t}`)}keydownHandler(t){if(this.disabled)return!0;this.shouldSkipFocus=!1;const n=t.key;switch(n){case $o:{t.shiftKey||(t.preventDefault(),this.selectFirstOption());break}case di:{t.shiftKey||(t.preventDefault(),this.selectNextOption());break}case fi:{t.shiftKey||(t.preventDefault(),this.selectPreviousOption());break}case To:{t.preventDefault(),this.selectLastOption();break}case vp:return this.focusAndScrollOptionIntoView(),!0;case rl:case nu:return!0;case il:if(this.typeaheadExpired)return!0;default:return n.length===1&&this.handleTypeAhead(`${n}`),!0}}mousedownHandler(t){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(t,n){this.ariaMultiSelectable=n?"true":null}selectedIndexChanged(t,n){var r;if(!this.hasSelectableOptions){this.selectedIndex=-1;return}if(!((r=this.options[this.selectedIndex])===null||r===void 0)&&r.disabled&&typeof t=="number"){const i=this.getSelectableIndex(t,n),o=i>-1?i:t;this.selectedIndex=o,n===o&&this.selectedIndexChanged(n,o);return}this.setSelectedOptions()}selectedOptionsChanged(t,n){var r;const i=n.filter(vt.slottedOptionFilter);(r=this.options)===null||r===void 0||r.forEach(o=>{const s=Y.getNotifier(o);s.unsubscribe(this,"selected"),o.selected=i.includes(o),s.subscribe(this,"selected")})}selectFirstOption(){var t,n;this.disabled||(this.selectedIndex=(n=(t=this.options)===null||t===void 0?void 0:t.findIndex(r=>!r.disabled))!==null&&n!==void 0?n:-1)}selectLastOption(){this.disabled||(this.selectedIndex=e2(this.options,t=>!t.disabled))}selectNextOption(){!this.disabled&&this.selectedIndex0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var t,n;this.selectedIndex=(n=(t=this.options)===null||t===void 0?void 0:t.findIndex(r=>r.defaultSelected))!==null&&n!==void 0?n:-1}setSelectedOptions(){var t,n,r;!((t=this.options)===null||t===void 0)&&t.length&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=(r=(n=this.firstSelectedOption)===null||n===void 0?void 0:n.id)!==null&&r!==void 0?r:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(t,n){this.options=n.reduce((i,o)=>(Ux(o)&&i.push(o),i),[]);const r=`${this.options.length}`;this.options.forEach((i,o)=>{i.id||(i.id=Qa("option-")),i.ariaPosInSet=`${o+1}`,i.ariaSetSize=r}),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(t,n){if(this.$fastController.isConnected){const r=this.getTypeaheadMatches();if(r.length){const i=this.options.indexOf(r[0]);i>-1&&(this.selectedIndex=i)}this.typeaheadExpired=!1}}}vt.slottedOptionFilter=e=>Ux(e)&&!e.hidden;vt.TYPE_AHEAD_TIMEOUT_MS=1e3;S([E({mode:"boolean"})],vt.prototype,"disabled",void 0);S([F],vt.prototype,"selectedIndex",void 0);S([F],vt.prototype,"selectedOptions",void 0);S([F],vt.prototype,"slottedOptions",void 0);S([F],vt.prototype,"typeaheadBuffer",void 0);class hi{}S([F],hi.prototype,"ariaActiveDescendant",void 0);S([F],hi.prototype,"ariaDisabled",void 0);S([F],hi.prototype,"ariaExpanded",void 0);S([F],hi.prototype,"ariaMultiSelectable",void 0);At(hi,be);At(vt,hi);const ad={above:"above",below:"below"};function Pf(e){const t=e.parentElement;if(t)return t;{const n=e.getRootNode();if(n.host instanceof HTMLElement)return n.host}return null}function I2(e,t){let n=t;for(;n!==null;){if(n===e)return!0;n=Pf(n)}return!1}const Un=document.createElement("div");function E2(e){return e instanceof tu}class bp{setProperty(t,n){J.queueUpdate(()=>this.target.setProperty(t,n))}removeProperty(t){J.queueUpdate(()=>this.target.removeProperty(t))}}class R2 extends bp{constructor(t){super();const n=new CSSStyleSheet;n[Cx]=!0,this.target=n.cssRules[n.insertRule(":host{}")].style,t.$fastController.addStyles(Rt.create([n]))}}class P2 extends bp{constructor(){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}}class O2 extends bp{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:t}=this.style;if(t){const n=t.insertRule(":root{}",t.cssRules.length);this.target=t.cssRules[n].style}}}class Wx{constructor(t){this.store=new Map,this.target=null;const n=t.$fastController;this.style=document.createElement("style"),n.addStyles(this.style),Y.getNotifier(n).subscribe(this,"isConnected"),this.handleChange(n,"isConnected")}targetChanged(){if(this.target!==null)for(const[t,n]of this.store.entries())this.target.setProperty(t,n)}setProperty(t,n){this.store.set(t,n),J.queueUpdate(()=>{this.target!==null&&this.target.setProperty(t,n)})}removeProperty(t){this.store.delete(t),J.queueUpdate(()=>{this.target!==null&&this.target.removeProperty(t)})}handleChange(t,n){const{sheet:r}=this.style;if(r){const i=r.insertRule(":host{}",r.cssRules.length);this.target=r.cssRules[i].style}else this.target=null}}S([F],Wx.prototype,"target",void 0);class _2{constructor(t){this.target=t.style}setProperty(t,n){J.queueUpdate(()=>this.target.setProperty(t,n))}removeProperty(t){J.queueUpdate(()=>this.target.removeProperty(t))}}class Ve{setProperty(t,n){Ve.properties[t]=n;for(const r of Ve.roots.values())Li.getOrCreate(Ve.normalizeRoot(r)).setProperty(t,n)}removeProperty(t){delete Ve.properties[t];for(const n of Ve.roots.values())Li.getOrCreate(Ve.normalizeRoot(n)).removeProperty(t)}static registerRoot(t){const{roots:n}=Ve;if(!n.has(t)){n.add(t);const r=Li.getOrCreate(this.normalizeRoot(t));for(const i in Ve.properties)r.setProperty(i,Ve.properties[i])}}static unregisterRoot(t){const{roots:n}=Ve;if(n.has(t)){n.delete(t);const r=Li.getOrCreate(Ve.normalizeRoot(t));for(const i in Ve.properties)r.removeProperty(i)}}static normalizeRoot(t){return t===Un?document:t}}Ve.roots=new Set;Ve.properties={};const cd=new WeakMap,A2=J.supportsAdoptedStyleSheets?R2:Wx,Li=Object.freeze({getOrCreate(e){if(cd.has(e))return cd.get(e);let t;return e===Un?t=new Ve:e instanceof Document?t=J.supportsAdoptedStyleSheets?new P2:new O2:E2(e)?t=new A2(e):t=new _2(e),cd.set(e,t),t}});class mt extends Rx{constructor(t){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=t.name,t.cssCustomPropertyName!==null&&(this.cssCustomProperty=`--${t.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=mt.uniqueId(),mt.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(t){return new mt({name:typeof t=="string"?t:t.name,cssCustomPropertyName:typeof t=="string"?t:t.cssCustomPropertyName===void 0?t.name:t.cssCustomPropertyName})}static isCSSDesignToken(t){return typeof t.cssCustomProperty=="string"}static isDerivedDesignTokenValue(t){return typeof t=="function"}static getTokenById(t){return mt.tokensById.get(t)}getOrCreateSubscriberSet(t=this){return this.subscribers.get(t)||this.subscribers.set(t,new Set)&&this.subscribers.get(t)}createCSS(){return this.cssVar||""}getValueFor(t){const n=Oe.getOrCreate(t).get(this);if(n!==void 0)return n;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${t} or an ancestor of ${t}.`)}setValueFor(t,n){return this._appliedTo.add(t),n instanceof mt&&(n=this.alias(n)),Oe.getOrCreate(t).set(this,n),this}deleteValueFor(t){return this._appliedTo.delete(t),Oe.existsFor(t)&&Oe.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(Un,t),this}subscribe(t,n){const r=this.getOrCreateSubscriberSet(n);n&&!Oe.existsFor(n)&&Oe.getOrCreate(n),r.has(t)||r.add(t)}unsubscribe(t,n){const r=this.subscribers.get(n||this);r&&r.has(t)&&r.delete(t)}notify(t){const n=Object.freeze({token:this,target:t});this.subscribers.has(this)&&this.subscribers.get(this).forEach(r=>r.handleChange(n)),this.subscribers.has(t)&&this.subscribers.get(t).forEach(r=>r.handleChange(n))}alias(t){return n=>t.getValueFor(n)}}mt.uniqueId=(()=>{let e=0;return()=>(e++,e.toString(16))})();mt.tokensById=new Map;class D2{startReflection(t,n){t.subscribe(this,n),this.handleChange({token:t,target:n})}stopReflection(t,n){t.unsubscribe(this,n),this.remove(t,n)}handleChange(t){const{token:n,target:r}=t;this.add(n,r)}add(t,n){Li.getOrCreate(n).setProperty(t.cssCustomProperty,this.resolveCSSValue(Oe.getOrCreate(n).get(t)))}remove(t,n){Li.getOrCreate(n).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&typeof t.createCSS=="function"?t.createCSS():t}}class M2{constructor(t,n,r){this.source=t,this.token=n,this.node=r,this.dependencies=new Set,this.observer=Y.binding(t,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,us))}}class L2{constructor(){this.values=new Map}set(t,n){this.values.get(t)!==n&&(this.values.set(t,n),Y.getNotifier(this).notify(t.id))}get(t){return Y.track(this,t.id),this.values.get(t)}delete(t){this.values.delete(t)}all(){return this.values.entries()}}const Uo=new WeakMap,Wo=new WeakMap;class Oe{constructor(t){this.target=t,this.store=new L2,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(n,r)=>{const i=mt.getTokenById(r);i&&(i.notify(this.target),this.updateCSSTokenReflection(n,i))}},Uo.set(t,this),Y.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof tu?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}static getOrCreate(t){return Uo.get(t)||new Oe(t)}static existsFor(t){return Uo.has(t)}static findParent(t){if(Un!==t.target){let n=Pf(t.target);for(;n!==null;){if(Uo.has(n))return Uo.get(n);n=Pf(n)}return Oe.getOrCreate(Un)}return null}static findClosestAssignedNode(t,n){let r=n;do{if(r.has(t))return r;r=r.parent?r.parent:r.target!==Un?Oe.getOrCreate(Un):null}while(r!==null);return null}get parent(){return Wo.get(this)||null}updateCSSTokenReflection(t,n){if(mt.isCSSDesignToken(n)){const r=this.parent,i=this.isReflecting(n);if(r){const o=r.get(n),s=t.get(n);o!==s&&!i?this.reflectToCSS(n):o===s&&i&&this.stopReflectToCSS(n)}else i||this.reflectToCSS(n)}}has(t){return this.assignedValues.has(t)}get(t){const n=this.store.get(t);if(n!==void 0)return n;const r=this.getRaw(t);if(r!==void 0)return this.hydrate(t,r),this.get(t)}getRaw(t){var n;return this.assignedValues.has(t)?this.assignedValues.get(t):(n=Oe.findClosestAssignedNode(t,this))===null||n===void 0?void 0:n.getRaw(t)}set(t,n){mt.isDerivedDesignTokenValue(this.assignedValues.get(t))&&this.tearDownBindingObserver(t),this.assignedValues.set(t,n),mt.isDerivedDesignTokenValue(n)?this.setupBindingObserver(t,n):this.store.set(t,n)}delete(t){this.assignedValues.delete(t),this.tearDownBindingObserver(t);const n=this.getRaw(t);n?this.hydrate(t,n):this.store.delete(t)}bind(){const t=Oe.findParent(this);t&&t.appendChild(this);for(const n of this.assignedValues.keys())n.notify(this.target)}unbind(){this.parent&&Wo.get(this).removeChild(this)}appendChild(t){t.parent&&Wo.get(t).removeChild(t);const n=this.children.filter(r=>t.contains(r));Wo.set(t,this),this.children.push(t),n.forEach(r=>t.appendChild(r)),Y.getNotifier(this.store).subscribe(t);for(const[r,i]of this.store.all())t.hydrate(r,this.bindingObservers.has(r)?this.getRaw(r):i)}removeChild(t){const n=this.children.indexOf(t);return n!==-1&&this.children.splice(n,1),Y.getNotifier(this.store).unsubscribe(t),t.parent===this?Wo.delete(t):!1}contains(t){return I2(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),Oe.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),Oe.cssCustomPropertyReflector.stopReflection(t,this.target))}isReflecting(t){return this.reflecting.has(t)}handleChange(t,n){const r=mt.getTokenById(n);r&&(this.hydrate(r,this.getRaw(r)),this.updateCSSTokenReflection(this.store,r))}hydrate(t,n){if(!this.has(t)){const r=this.bindingObservers.get(t);mt.isDerivedDesignTokenValue(n)?r?r.source!==n&&(this.tearDownBindingObserver(t),this.setupBindingObserver(t,n)):this.setupBindingObserver(t,n):(r&&this.tearDownBindingObserver(t),this.store.set(t,n))}}setupBindingObserver(t,n){const r=new M2(n,t,this);return this.bindingObservers.set(t,r),r}tearDownBindingObserver(t){return this.bindingObservers.has(t)?(this.bindingObservers.get(t).disconnect(),this.bindingObservers.delete(t),!0):!1}}Oe.cssCustomPropertyReflector=new D2;S([F],Oe.prototype,"children",void 0);function N2(e){return mt.from(e)}const Gx=Object.freeze({create:N2,notifyConnection(e){return!e.isConnected||!Oe.existsFor(e)?!1:(Oe.getOrCreate(e).bind(),!0)},notifyDisconnection(e){return e.isConnected||!Oe.existsFor(e)?!1:(Oe.getOrCreate(e).unbind(),!0)},registerRoot(e=Un){Ve.registerRoot(e)},unregisterRoot(e=Un){Ve.unregisterRoot(e)}}),ud=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),dd=new Map,oa=new Map;let Xi=null;const Go=ke.createInterface(e=>e.cachedCallback(t=>(Xi===null&&(Xi=new Qx(null,t)),Xi))),qx=Object.freeze({tagFor(e){return oa.get(e)},responsibleFor(e){const t=e.$$designSystem$$;return t||ke.findResponsibleContainer(e).get(Go)},getOrCreate(e){if(!e)return Xi===null&&(Xi=ke.getOrCreateDOMContainer().get(Go)),Xi;const t=e.$$designSystem$$;if(t)return t;const n=ke.getOrCreateDOMContainer(e);if(n.has(Go,!1))return n.get(Go);{const r=new Qx(e,n);return n.register(js.instance(Go,r)),r}}});function F2(e,t,n){return typeof e=="string"?{name:e,type:t,callback:n}:e}class Qx{constructor(t,n){this.owner=t,this.container=n,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>ud.definitionCallbackOnly,t!==null&&(t.$$designSystem$$=this)}withPrefix(t){return this.prefix=t,this}withShadowRootMode(t){return this.shadowRootMode=t,this}withElementDisambiguation(t){return this.disambiguate=t,this}withDesignTokenRoot(t){return this.designTokenRoot=t,this}register(...t){const n=this.container,r=[],i=this.disambiguate,o=this.shadowRootMode,s={elementPrefix:this.prefix,tryDefineElement(l,a,c){const d=F2(l,a,c),{name:u,callback:f,baseClass:v}=d;let{type:g}=d,m=u,b=dd.get(m),p=!0;for(;b;){const h=i(m,g,b);switch(h){case ud.ignoreDuplicate:return;case ud.definitionCallbackOnly:p=!1,b=void 0;break;default:m=h,b=dd.get(m);break}}p&&((oa.has(g)||g===ye)&&(g=class extends g{}),dd.set(m,g),oa.set(g,m),v&&oa.set(v,m)),r.push(new j2(n,m,g,o,f,p))}};this.designTokensInitialized||(this.designTokensInitialized=!0,this.designTokenRoot!==null&&Gx.registerRoot(this.designTokenRoot)),n.registerWithContext(s,...t);for(const l of r)l.callback(l),l.willDefine&&l.definition!==null&&l.definition.define();return this}}class j2{constructor(t,n,r,i,o,s){this.container=t,this.name=n,this.type=r,this.shadowRootMode=i,this.callback=o,this.willDefine=s,this.definition=null}definePresentation(t){zx.define(this.name,t,this.container)}defineElement(t){this.definition=new nl(this.type,Object.assign(Object.assign({},t),{name:this.name}))}tagFor(t){return qx.tagFor(t)}}const z2=(e,t)=>se` +`;class E2 extends ye{}class R2 extends Ux(E2){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let ou=class extends R2{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=t=>{if(!this.readOnly)switch(t.key){case il:this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked;break}},this.clickHandler=t=>{!this.disabled&&!this.readOnly&&(this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}};S([E({attribute:"readonly",mode:"boolean"})],ou.prototype,"readOnly",void 0);S([z],ou.prototype,"defaultSlottedNodes",void 0);S([z],ou.prototype,"indeterminate",void 0);function Wx(e){return o2(e)&&(e.getAttribute("role")==="option"||e instanceof HTMLOptionElement)}class tr extends ye{constructor(t,n,r,i){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,t&&(this.textContent=t),n&&(this.initialValue=n),r&&(this.defaultSelected=r),i&&(this.selected=i),this.proxy=new Option(`${this.textContent}`,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}checkedChanged(t,n){if(typeof n=="boolean"){this.ariaChecked=n?"true":"false";return}this.ariaChecked=null}contentChanged(t,n){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(t,n){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}initialValueChanged(t,n){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){var t;return(t=this.value)!==null&&t!==void 0?t:this.text}get text(){var t,n;return(n=(t=this.textContent)===null||t===void 0?void 0:t.replace(/\s+/g," ").trim())!==null&&n!==void 0?n:""}set value(t){const n=`${t??""}`;this._value=n,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=n),Y.notify(this,"value")}get value(){var t;return Y.track(this,"value"),(t=this._value)!==null&&t!==void 0?t:this.text}get form(){return this.proxy?this.proxy.form:null}}S([z],tr.prototype,"checked",void 0);S([z],tr.prototype,"content",void 0);S([z],tr.prototype,"defaultSelected",void 0);S([E({mode:"boolean"})],tr.prototype,"disabled",void 0);S([E({attribute:"selected",mode:"boolean"})],tr.prototype,"selectedAttribute",void 0);S([z],tr.prototype,"selected",void 0);S([E({attribute:"value",mode:"fromView"})],tr.prototype,"initialValue",void 0);class Eo{}S([z],Eo.prototype,"ariaChecked",void 0);S([z],Eo.prototype,"ariaPosInSet",void 0);S([z],Eo.prototype,"ariaSelected",void 0);S([z],Eo.prototype,"ariaSetSize",void 0);At(Eo,be);At(tr,Co,Eo);class vt extends ye{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var t;return(t=this.selectedOptions[0])!==null&&t!==void 0?t:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every(t=>t.disabled)}get length(){var t,n;return(n=(t=this.options)===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0}get options(){return Y.track(this,"options"),this._options}set options(t){this._options=t,Y.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(t){this.typeaheadExpired=t}clickHandler(t){const n=t.target.closest("option,[role=option]");if(n&&!n.disabled)return this.selectedIndex=this.options.indexOf(n),!0}focusAndScrollOptionIntoView(t=this.firstSelectedOption){this.contains(document.activeElement)&&t!==null&&(t.focus(),requestAnimationFrame(()=>{t.scrollIntoView({block:"nearest"})}))}focusinHandler(t){!this.shouldSkipFocus&&t.target===t.currentTarget&&(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){const t=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),n=new RegExp(`^${t}`,"gi");return this.options.filter(r=>r.text.trim().match(n))}getSelectableIndex(t=this.selectedIndex,n){const r=t>n?-1:t!s&&!l.disabled&&a!s&&!l.disabled&&a>i?l:s,o);break}}return this.options.indexOf(o)}handleChange(t,n){switch(n){case"selected":{vt.slottedOptionFilter(t)&&(this.selectedIndex=this.options.indexOf(t)),this.setSelectedOptions();break}}}handleTypeAhead(t){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout(()=>this.typeaheadExpired=!0,vt.TYPE_AHEAD_TIMEOUT_MS),!(t.length>1)&&(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${t}`)}keydownHandler(t){if(this.disabled)return!0;this.shouldSkipFocus=!1;const n=t.key;switch(n){case To:{t.shiftKey||(t.preventDefault(),this.selectFirstOption());break}case di:{t.shiftKey||(t.preventDefault(),this.selectNextOption());break}case fi:{t.shiftKey||(t.preventDefault(),this.selectPreviousOption());break}case Io:{t.preventDefault(),this.selectLastOption();break}case vp:return this.focusAndScrollOptionIntoView(),!0;case rl:case ru:return!0;case il:if(this.typeaheadExpired)return!0;default:return n.length===1&&this.handleTypeAhead(`${n}`),!0}}mousedownHandler(t){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(t,n){this.ariaMultiSelectable=n?"true":null}selectedIndexChanged(t,n){var r;if(!this.hasSelectableOptions){this.selectedIndex=-1;return}if(!((r=this.options[this.selectedIndex])===null||r===void 0)&&r.disabled&&typeof t=="number"){const i=this.getSelectableIndex(t,n),o=i>-1?i:t;this.selectedIndex=o,n===o&&this.selectedIndexChanged(n,o);return}this.setSelectedOptions()}selectedOptionsChanged(t,n){var r;const i=n.filter(vt.slottedOptionFilter);(r=this.options)===null||r===void 0||r.forEach(o=>{const s=Y.getNotifier(o);s.unsubscribe(this,"selected"),o.selected=i.includes(o),s.subscribe(this,"selected")})}selectFirstOption(){var t,n;this.disabled||(this.selectedIndex=(n=(t=this.options)===null||t===void 0?void 0:t.findIndex(r=>!r.disabled))!==null&&n!==void 0?n:-1)}selectLastOption(){this.disabled||(this.selectedIndex=r2(this.options,t=>!t.disabled))}selectNextOption(){!this.disabled&&this.selectedIndex0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var t,n;this.selectedIndex=(n=(t=this.options)===null||t===void 0?void 0:t.findIndex(r=>r.defaultSelected))!==null&&n!==void 0?n:-1}setSelectedOptions(){var t,n,r;!((t=this.options)===null||t===void 0)&&t.length&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=(r=(n=this.firstSelectedOption)===null||n===void 0?void 0:n.id)!==null&&r!==void 0?r:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(t,n){this.options=n.reduce((i,o)=>(Wx(o)&&i.push(o),i),[]);const r=`${this.options.length}`;this.options.forEach((i,o)=>{i.id||(i.id=Qa("option-")),i.ariaPosInSet=`${o+1}`,i.ariaSetSize=r}),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(t,n){if(this.$fastController.isConnected){const r=this.getTypeaheadMatches();if(r.length){const i=this.options.indexOf(r[0]);i>-1&&(this.selectedIndex=i)}this.typeaheadExpired=!1}}}vt.slottedOptionFilter=e=>Wx(e)&&!e.hidden;vt.TYPE_AHEAD_TIMEOUT_MS=1e3;S([E({mode:"boolean"})],vt.prototype,"disabled",void 0);S([z],vt.prototype,"selectedIndex",void 0);S([z],vt.prototype,"selectedOptions",void 0);S([z],vt.prototype,"slottedOptions",void 0);S([z],vt.prototype,"typeaheadBuffer",void 0);class hi{}S([z],hi.prototype,"ariaActiveDescendant",void 0);S([z],hi.prototype,"ariaDisabled",void 0);S([z],hi.prototype,"ariaExpanded",void 0);S([z],hi.prototype,"ariaMultiSelectable",void 0);At(hi,be);At(vt,hi);const cd={above:"above",below:"below"};function Of(e){const t=e.parentElement;if(t)return t;{const n=e.getRootNode();if(n.host instanceof HTMLElement)return n.host}return null}function P2(e,t){let n=t;for(;n!==null;){if(n===e)return!0;n=Of(n)}return!1}const Un=document.createElement("div");function O2(e){return e instanceof nu}class bp{setProperty(t,n){J.queueUpdate(()=>this.target.setProperty(t,n))}removeProperty(t){J.queueUpdate(()=>this.target.removeProperty(t))}}class _2 extends bp{constructor(t){super();const n=new CSSStyleSheet;n[Sx]=!0,this.target=n.cssRules[n.insertRule(":host{}")].style,t.$fastController.addStyles(Rt.create([n]))}}class A2 extends bp{constructor(){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}}class D2 extends bp{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:t}=this.style;if(t){const n=t.insertRule(":root{}",t.cssRules.length);this.target=t.cssRules[n].style}}}class Gx{constructor(t){this.store=new Map,this.target=null;const n=t.$fastController;this.style=document.createElement("style"),n.addStyles(this.style),Y.getNotifier(n).subscribe(this,"isConnected"),this.handleChange(n,"isConnected")}targetChanged(){if(this.target!==null)for(const[t,n]of this.store.entries())this.target.setProperty(t,n)}setProperty(t,n){this.store.set(t,n),J.queueUpdate(()=>{this.target!==null&&this.target.setProperty(t,n)})}removeProperty(t){this.store.delete(t),J.queueUpdate(()=>{this.target!==null&&this.target.removeProperty(t)})}handleChange(t,n){const{sheet:r}=this.style;if(r){const i=r.insertRule(":host{}",r.cssRules.length);this.target=r.cssRules[i].style}else this.target=null}}S([z],Gx.prototype,"target",void 0);class M2{constructor(t){this.target=t.style}setProperty(t,n){J.queueUpdate(()=>this.target.setProperty(t,n))}removeProperty(t){J.queueUpdate(()=>this.target.removeProperty(t))}}class Ve{setProperty(t,n){Ve.properties[t]=n;for(const r of Ve.roots.values())Li.getOrCreate(Ve.normalizeRoot(r)).setProperty(t,n)}removeProperty(t){delete Ve.properties[t];for(const n of Ve.roots.values())Li.getOrCreate(Ve.normalizeRoot(n)).removeProperty(t)}static registerRoot(t){const{roots:n}=Ve;if(!n.has(t)){n.add(t);const r=Li.getOrCreate(this.normalizeRoot(t));for(const i in Ve.properties)r.setProperty(i,Ve.properties[i])}}static unregisterRoot(t){const{roots:n}=Ve;if(n.has(t)){n.delete(t);const r=Li.getOrCreate(Ve.normalizeRoot(t));for(const i in Ve.properties)r.removeProperty(i)}}static normalizeRoot(t){return t===Un?document:t}}Ve.roots=new Set;Ve.properties={};const ud=new WeakMap,L2=J.supportsAdoptedStyleSheets?_2:Gx,Li=Object.freeze({getOrCreate(e){if(ud.has(e))return ud.get(e);let t;return e===Un?t=new Ve:e instanceof Document?t=J.supportsAdoptedStyleSheets?new A2:new D2:O2(e)?t=new L2(e):t=new M2(e),ud.set(e,t),t}});class pt extends Px{constructor(t){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=t.name,t.cssCustomPropertyName!==null&&(this.cssCustomProperty=`--${t.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=pt.uniqueId(),pt.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(t){return new pt({name:typeof t=="string"?t:t.name,cssCustomPropertyName:typeof t=="string"?t:t.cssCustomPropertyName===void 0?t.name:t.cssCustomPropertyName})}static isCSSDesignToken(t){return typeof t.cssCustomProperty=="string"}static isDerivedDesignTokenValue(t){return typeof t=="function"}static getTokenById(t){return pt.tokensById.get(t)}getOrCreateSubscriberSet(t=this){return this.subscribers.get(t)||this.subscribers.set(t,new Set)&&this.subscribers.get(t)}createCSS(){return this.cssVar||""}getValueFor(t){const n=Oe.getOrCreate(t).get(this);if(n!==void 0)return n;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${t} or an ancestor of ${t}.`)}setValueFor(t,n){return this._appliedTo.add(t),n instanceof pt&&(n=this.alias(n)),Oe.getOrCreate(t).set(this,n),this}deleteValueFor(t){return this._appliedTo.delete(t),Oe.existsFor(t)&&Oe.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(Un,t),this}subscribe(t,n){const r=this.getOrCreateSubscriberSet(n);n&&!Oe.existsFor(n)&&Oe.getOrCreate(n),r.has(t)||r.add(t)}unsubscribe(t,n){const r=this.subscribers.get(n||this);r&&r.has(t)&&r.delete(t)}notify(t){const n=Object.freeze({token:this,target:t});this.subscribers.has(this)&&this.subscribers.get(this).forEach(r=>r.handleChange(n)),this.subscribers.has(t)&&this.subscribers.get(t).forEach(r=>r.handleChange(n))}alias(t){return n=>t.getValueFor(n)}}pt.uniqueId=(()=>{let e=0;return()=>(e++,e.toString(16))})();pt.tokensById=new Map;class N2{startReflection(t,n){t.subscribe(this,n),this.handleChange({token:t,target:n})}stopReflection(t,n){t.unsubscribe(this,n),this.remove(t,n)}handleChange(t){const{token:n,target:r}=t;this.add(n,r)}add(t,n){Li.getOrCreate(n).setProperty(t.cssCustomProperty,this.resolveCSSValue(Oe.getOrCreate(n).get(t)))}remove(t,n){Li.getOrCreate(n).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&typeof t.createCSS=="function"?t.createCSS():t}}class F2{constructor(t,n,r){this.source=t,this.token=n,this.node=r,this.dependencies=new Set,this.observer=Y.binding(t,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,us))}}class j2{constructor(){this.values=new Map}set(t,n){this.values.get(t)!==n&&(this.values.set(t,n),Y.getNotifier(this).notify(t.id))}get(t){return Y.track(this,t.id),this.values.get(t)}delete(t){this.values.delete(t)}all(){return this.values.entries()}}const Wo=new WeakMap,Go=new WeakMap;class Oe{constructor(t){this.target=t,this.store=new j2,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(n,r)=>{const i=pt.getTokenById(r);i&&(i.notify(this.target),this.updateCSSTokenReflection(n,i))}},Wo.set(t,this),Y.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof nu?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}static getOrCreate(t){return Wo.get(t)||new Oe(t)}static existsFor(t){return Wo.has(t)}static findParent(t){if(Un!==t.target){let n=Of(t.target);for(;n!==null;){if(Wo.has(n))return Wo.get(n);n=Of(n)}return Oe.getOrCreate(Un)}return null}static findClosestAssignedNode(t,n){let r=n;do{if(r.has(t))return r;r=r.parent?r.parent:r.target!==Un?Oe.getOrCreate(Un):null}while(r!==null);return null}get parent(){return Go.get(this)||null}updateCSSTokenReflection(t,n){if(pt.isCSSDesignToken(n)){const r=this.parent,i=this.isReflecting(n);if(r){const o=r.get(n),s=t.get(n);o!==s&&!i?this.reflectToCSS(n):o===s&&i&&this.stopReflectToCSS(n)}else i||this.reflectToCSS(n)}}has(t){return this.assignedValues.has(t)}get(t){const n=this.store.get(t);if(n!==void 0)return n;const r=this.getRaw(t);if(r!==void 0)return this.hydrate(t,r),this.get(t)}getRaw(t){var n;return this.assignedValues.has(t)?this.assignedValues.get(t):(n=Oe.findClosestAssignedNode(t,this))===null||n===void 0?void 0:n.getRaw(t)}set(t,n){pt.isDerivedDesignTokenValue(this.assignedValues.get(t))&&this.tearDownBindingObserver(t),this.assignedValues.set(t,n),pt.isDerivedDesignTokenValue(n)?this.setupBindingObserver(t,n):this.store.set(t,n)}delete(t){this.assignedValues.delete(t),this.tearDownBindingObserver(t);const n=this.getRaw(t);n?this.hydrate(t,n):this.store.delete(t)}bind(){const t=Oe.findParent(this);t&&t.appendChild(this);for(const n of this.assignedValues.keys())n.notify(this.target)}unbind(){this.parent&&Go.get(this).removeChild(this)}appendChild(t){t.parent&&Go.get(t).removeChild(t);const n=this.children.filter(r=>t.contains(r));Go.set(t,this),this.children.push(t),n.forEach(r=>t.appendChild(r)),Y.getNotifier(this.store).subscribe(t);for(const[r,i]of this.store.all())t.hydrate(r,this.bindingObservers.has(r)?this.getRaw(r):i)}removeChild(t){const n=this.children.indexOf(t);return n!==-1&&this.children.splice(n,1),Y.getNotifier(this.store).unsubscribe(t),t.parent===this?Go.delete(t):!1}contains(t){return P2(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),Oe.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),Oe.cssCustomPropertyReflector.stopReflection(t,this.target))}isReflecting(t){return this.reflecting.has(t)}handleChange(t,n){const r=pt.getTokenById(n);r&&(this.hydrate(r,this.getRaw(r)),this.updateCSSTokenReflection(this.store,r))}hydrate(t,n){if(!this.has(t)){const r=this.bindingObservers.get(t);pt.isDerivedDesignTokenValue(n)?r?r.source!==n&&(this.tearDownBindingObserver(t),this.setupBindingObserver(t,n)):this.setupBindingObserver(t,n):(r&&this.tearDownBindingObserver(t),this.store.set(t,n))}}setupBindingObserver(t,n){const r=new F2(n,t,this);return this.bindingObservers.set(t,r),r}tearDownBindingObserver(t){return this.bindingObservers.has(t)?(this.bindingObservers.get(t).disconnect(),this.bindingObservers.delete(t),!0):!1}}Oe.cssCustomPropertyReflector=new N2;S([z],Oe.prototype,"children",void 0);function z2(e){return pt.from(e)}const qx=Object.freeze({create:z2,notifyConnection(e){return!e.isConnected||!Oe.existsFor(e)?!1:(Oe.getOrCreate(e).bind(),!0)},notifyDisconnection(e){return e.isConnected||!Oe.existsFor(e)?!1:(Oe.getOrCreate(e).unbind(),!0)},registerRoot(e=Un){Ve.registerRoot(e)},unregisterRoot(e=Un){Ve.unregisterRoot(e)}}),dd=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),fd=new Map,oa=new Map;let Yi=null;const qo=ke.createInterface(e=>e.cachedCallback(t=>(Yi===null&&(Yi=new Xx(null,t)),Yi))),Qx=Object.freeze({tagFor(e){return oa.get(e)},responsibleFor(e){const t=e.$$designSystem$$;return t||ke.findResponsibleContainer(e).get(qo)},getOrCreate(e){if(!e)return Yi===null&&(Yi=ke.getOrCreateDOMContainer().get(qo)),Yi;const t=e.$$designSystem$$;if(t)return t;const n=ke.getOrCreateDOMContainer(e);if(n.has(qo,!1))return n.get(qo);{const r=new Xx(e,n);return n.register(js.instance(qo,r)),r}}});function B2(e,t,n){return typeof e=="string"?{name:e,type:t,callback:n}:e}class Xx{constructor(t,n){this.owner=t,this.container=n,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>dd.definitionCallbackOnly,t!==null&&(t.$$designSystem$$=this)}withPrefix(t){return this.prefix=t,this}withShadowRootMode(t){return this.shadowRootMode=t,this}withElementDisambiguation(t){return this.disambiguate=t,this}withDesignTokenRoot(t){return this.designTokenRoot=t,this}register(...t){const n=this.container,r=[],i=this.disambiguate,o=this.shadowRootMode,s={elementPrefix:this.prefix,tryDefineElement(l,a,c){const d=B2(l,a,c),{name:u,callback:f,baseClass:v}=d;let{type:g}=d,m=u,b=fd.get(m),p=!0;for(;b;){const h=i(m,g,b);switch(h){case dd.ignoreDuplicate:return;case dd.definitionCallbackOnly:p=!1,b=void 0;break;default:m=h,b=fd.get(m);break}}p&&((oa.has(g)||g===ye)&&(g=class extends g{}),fd.set(m,g),oa.set(g,m),v&&oa.set(v,m)),r.push(new V2(n,m,g,o,f,p))}};this.designTokensInitialized||(this.designTokensInitialized=!0,this.designTokenRoot!==null&&qx.registerRoot(this.designTokenRoot)),n.registerWithContext(s,...t);for(const l of r)l.callback(l),l.willDefine&&l.definition!==null&&l.definition.define();return this}}class V2{constructor(t,n,r,i,o,s){this.container=t,this.name=n,this.type=r,this.shadowRootMode=i,this.callback=o,this.willDefine=s,this.definition=null}definePresentation(t){Bx.define(this.name,t,this.container)}defineElement(t){this.definition=new nl(this.type,Object.assign(Object.assign({},t),{name:this.name}))}tagFor(t){return Qx.tagFor(t)}}const H2=(e,t)=>se` -`,B2={separator:"separator",presentation:"presentation"};let xp=class extends ye{constructor(){super(...arguments),this.role=B2.separator,this.orientation=gp.horizontal}};S([E],xp.prototype,"role",void 0);S([E],xp.prototype,"orientation",void 0);const V2=(e,t)=>se` +`,U2={separator:"separator",presentation:"presentation"};let xp=class extends ye{constructor(){super(...arguments),this.role=U2.separator,this.orientation=gp.horizontal}};S([E],xp.prototype,"role",void 0);S([E],xp.prototype,"orientation",void 0);const W2=(e,t)=>se` -`;class ou extends vt{constructor(){super(...arguments),this.activeIndex=-1,this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){var t;return(t=this.options)===null||t===void 0?void 0:t.filter(n=>n.checked)}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(t,n){var r,i;this.ariaActiveDescendant=(i=(r=this.options[n])===null||r===void 0?void 0:r.id)!==null&&i!==void 0?i:"",this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple)return;const t=this.activeOption;t&&(t.checked=!0)}checkFirstOption(t=!1){t?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach((n,r)=>{n.checked=Ml(r,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(t=!1){t?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((n,r)=>{n.checked=Ml(r,this.rangeStartIndex,this.options.length)})):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.focusoutHandler)}disconnectedCallback(){this.removeEventListener("focusout",this.focusoutHandler),super.disconnectedCallback()}checkNextOption(t=!1){t?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((n,r)=>{n.checked=Ml(r,this.rangeStartIndex,this.activeIndex+1)})):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex{n.checked=Ml(r,this.activeIndex,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}clickHandler(t){var n;if(!this.multiple)return super.clickHandler(t);const r=(n=t.target)===null||n===void 0?void 0:n.closest("[role=option]");if(!(!r||r.disabled))return this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(r),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}focusinHandler(t){if(!this.multiple)return super.focusinHandler(t);!this.shouldSkipFocus&&t.target===t.currentTarget&&(this.uncheckAllOptions(),this.activeIndex===-1&&(this.activeIndex=this.firstSelectedOptionIndex!==-1?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}focusoutHandler(t){this.multiple&&this.uncheckAllOptions()}keydownHandler(t){if(!this.multiple)return super.keydownHandler(t);if(this.disabled)return!0;const{key:n,shiftKey:r}=t;switch(this.shouldSkipFocus=!1,n){case $o:{this.checkFirstOption(r);return}case di:{this.checkNextOption(r);return}case fi:{this.checkPreviousOption(r);return}case To:{this.checkLastOption(r);return}case vp:return this.focusAndScrollOptionIntoView(),!0;case nu:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case il:if(t.preventDefault(),this.typeAheadExpired){this.toggleSelectedForAllCheckedOptions();return}default:return n.length===1&&this.handleTypeAhead(`${n}`),!0}}mousedownHandler(t){if(t.offsetX>=0&&t.offsetX<=this.scrollWidth)return super.mousedownHandler(t)}multipleChanged(t,n){var r;this.ariaMultiSelectable=n?"true":null,(r=this.options)===null||r===void 0||r.forEach(i=>{i.checked=n?!1:void 0}),this.setSelectedOptions()}setSelectedOptions(){if(!this.multiple){super.setSelectedOptions();return}this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter(t=>t.selected),this.focusAndScrollOptionIntoView())}sizeChanged(t,n){var r;const i=Math.max(0,parseInt((r=n==null?void 0:n.toFixed())!==null&&r!==void 0?r:"",10));i!==n&&J.queueUpdate(()=>{this.size=i})}toggleSelectedForAllCheckedOptions(){const t=this.checkedOptions.filter(r=>!r.disabled),n=!t.every(r=>r.selected);t.forEach(r=>r.selected=n),this.selectedIndex=this.options.indexOf(t[t.length-1]),this.setSelectedOptions()}typeaheadBufferChanged(t,n){if(!this.multiple){super.typeaheadBufferChanged(t,n);return}if(this.$fastController.isConnected){const r=this.getTypeaheadMatches(),i=this.options.indexOf(r[0]);i>-1&&(this.activeIndex=i,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}uncheckAllOptions(t=!1){this.options.forEach(n=>n.checked=this.multiple?!1:void 0),t||(this.rangeStartIndex=-1)}}S([F],ou.prototype,"activeIndex",void 0);S([E({mode:"boolean"})],ou.prototype,"multiple",void 0);S([E({converter:bn})],ou.prototype,"size",void 0);class H2 extends ye{}class U2 extends sl(H2){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const W2={email:"email",password:"password",tel:"tel",text:"text",url:"url"};let Gt=class extends U2{constructor(){super(...arguments),this.type=W2.text}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&J.queueUpdate(()=>{this.focus()})}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}};S([E({attribute:"readonly",mode:"boolean"})],Gt.prototype,"readOnly",void 0);S([E({mode:"boolean"})],Gt.prototype,"autofocus",void 0);S([E],Gt.prototype,"placeholder",void 0);S([E],Gt.prototype,"type",void 0);S([E],Gt.prototype,"list",void 0);S([E({converter:bn})],Gt.prototype,"maxlength",void 0);S([E({converter:bn})],Gt.prototype,"minlength",void 0);S([E],Gt.prototype,"pattern",void 0);S([E({converter:bn})],Gt.prototype,"size",void 0);S([E({mode:"boolean"})],Gt.prototype,"spellcheck",void 0);S([F],Gt.prototype,"defaultSlottedNodes",void 0);class wp{}At(wp,be);At(Gt,ko,wp);const gv=44,G2=(e,t)=>se` +`;class su extends vt{constructor(){super(...arguments),this.activeIndex=-1,this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){var t;return(t=this.options)===null||t===void 0?void 0:t.filter(n=>n.checked)}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(t,n){var r,i;this.ariaActiveDescendant=(i=(r=this.options[n])===null||r===void 0?void 0:r.id)!==null&&i!==void 0?i:"",this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple)return;const t=this.activeOption;t&&(t.checked=!0)}checkFirstOption(t=!1){t?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach((n,r)=>{n.checked=Ml(r,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(t=!1){t?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((n,r)=>{n.checked=Ml(r,this.rangeStartIndex,this.options.length)})):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.focusoutHandler)}disconnectedCallback(){this.removeEventListener("focusout",this.focusoutHandler),super.disconnectedCallback()}checkNextOption(t=!1){t?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((n,r)=>{n.checked=Ml(r,this.rangeStartIndex,this.activeIndex+1)})):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex{n.checked=Ml(r,this.activeIndex,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}clickHandler(t){var n;if(!this.multiple)return super.clickHandler(t);const r=(n=t.target)===null||n===void 0?void 0:n.closest("[role=option]");if(!(!r||r.disabled))return this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(r),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}focusinHandler(t){if(!this.multiple)return super.focusinHandler(t);!this.shouldSkipFocus&&t.target===t.currentTarget&&(this.uncheckAllOptions(),this.activeIndex===-1&&(this.activeIndex=this.firstSelectedOptionIndex!==-1?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}focusoutHandler(t){this.multiple&&this.uncheckAllOptions()}keydownHandler(t){if(!this.multiple)return super.keydownHandler(t);if(this.disabled)return!0;const{key:n,shiftKey:r}=t;switch(this.shouldSkipFocus=!1,n){case To:{this.checkFirstOption(r);return}case di:{this.checkNextOption(r);return}case fi:{this.checkPreviousOption(r);return}case Io:{this.checkLastOption(r);return}case vp:return this.focusAndScrollOptionIntoView(),!0;case ru:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case il:if(t.preventDefault(),this.typeAheadExpired){this.toggleSelectedForAllCheckedOptions();return}default:return n.length===1&&this.handleTypeAhead(`${n}`),!0}}mousedownHandler(t){if(t.offsetX>=0&&t.offsetX<=this.scrollWidth)return super.mousedownHandler(t)}multipleChanged(t,n){var r;this.ariaMultiSelectable=n?"true":null,(r=this.options)===null||r===void 0||r.forEach(i=>{i.checked=n?!1:void 0}),this.setSelectedOptions()}setSelectedOptions(){if(!this.multiple){super.setSelectedOptions();return}this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter(t=>t.selected),this.focusAndScrollOptionIntoView())}sizeChanged(t,n){var r;const i=Math.max(0,parseInt((r=n==null?void 0:n.toFixed())!==null&&r!==void 0?r:"",10));i!==n&&J.queueUpdate(()=>{this.size=i})}toggleSelectedForAllCheckedOptions(){const t=this.checkedOptions.filter(r=>!r.disabled),n=!t.every(r=>r.selected);t.forEach(r=>r.selected=n),this.selectedIndex=this.options.indexOf(t[t.length-1]),this.setSelectedOptions()}typeaheadBufferChanged(t,n){if(!this.multiple){super.typeaheadBufferChanged(t,n);return}if(this.$fastController.isConnected){const r=this.getTypeaheadMatches(),i=this.options.indexOf(r[0]);i>-1&&(this.activeIndex=i,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}uncheckAllOptions(t=!1){this.options.forEach(n=>n.checked=this.multiple?!1:void 0),t||(this.rangeStartIndex=-1)}}S([z],su.prototype,"activeIndex",void 0);S([E({mode:"boolean"})],su.prototype,"multiple",void 0);S([E({converter:bn})],su.prototype,"size",void 0);class G2 extends ye{}class q2 extends sl(G2){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const Q2={email:"email",password:"password",tel:"tel",text:"text",url:"url"};let Gt=class extends q2{constructor(){super(...arguments),this.type=Q2.text}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&J.queueUpdate(()=>{this.focus()})}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}};S([E({attribute:"readonly",mode:"boolean"})],Gt.prototype,"readOnly",void 0);S([E({mode:"boolean"})],Gt.prototype,"autofocus",void 0);S([E],Gt.prototype,"placeholder",void 0);S([E],Gt.prototype,"type",void 0);S([E],Gt.prototype,"list",void 0);S([E({converter:bn})],Gt.prototype,"maxlength",void 0);S([E({converter:bn})],Gt.prototype,"minlength",void 0);S([E],Gt.prototype,"pattern",void 0);S([E({converter:bn})],Gt.prototype,"size",void 0);S([E({mode:"boolean"})],Gt.prototype,"spellcheck",void 0);S([z],Gt.prototype,"defaultSlottedNodes",void 0);class wp{}At(wp,be);At(Gt,Co,wp);const vv=44,X2=(e,t)=>se` -`;class Eo extends ye{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){const t=typeof this.min=="number"?this.min:0,n=typeof this.max=="number"?this.max:100,r=typeof this.value=="number"?this.value:0,i=n-t;this.percentComplete=i===0?0:Math.fround((r-t)/i*100)}}S([E({converter:bn})],Eo.prototype,"value",void 0);S([E({converter:bn})],Eo.prototype,"min",void 0);S([E({converter:bn})],Eo.prototype,"max",void 0);S([E({mode:"boolean"})],Eo.prototype,"paused",void 0);S([F],Eo.prototype,"percentComplete",void 0);const q2=(e,t)=>se` +`;class Ro extends ye{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){const t=typeof this.min=="number"?this.min:0,n=typeof this.max=="number"?this.max:100,r=typeof this.value=="number"?this.value:0,i=n-t;this.percentComplete=i===0?0:Math.fround((r-t)/i*100)}}S([E({converter:bn})],Ro.prototype,"value",void 0);S([E({converter:bn})],Ro.prototype,"min",void 0);S([E({converter:bn})],Ro.prototype,"max",void 0);S([E({mode:"boolean"})],Ro.prototype,"paused",void 0);S([z],Ro.prototype,"percentComplete",void 0);const Y2=(e,t)=>se` -`;let Lr=class extends ye{constructor(){super(...arguments),this.orientation=gp.horizontal,this.radioChangeHandler=t=>{const n=t.target;n.checked&&(this.slottedRadioButtons.forEach(r=>{r!==n&&(r.checked=!1,this.isInsideFoundationToolbar||r.setAttribute("tabindex","-1"))}),this.selectedRadio=n,this.value=n.value,n.setAttribute("tabindex","0"),this.focusedRadio=n),t.stopPropagation()},this.moveToRadioByIndex=(t,n)=>{const r=t[n];this.isInsideToolbar||(r.setAttribute("tabindex","0"),r.readOnly?this.slottedRadioButtons.forEach(i=>{i!==r&&i.setAttribute("tabindex","-1")}):(r.checked=!0,this.selectedRadio=r)),this.focusedRadio=r,r.focus()},this.moveRightOffGroup=()=>{var t;(t=this.nextElementSibling)===null||t===void 0||t.focus()},this.moveLeftOffGroup=()=>{var t;(t=this.previousElementSibling)===null||t===void 0||t.focus()},this.focusOutHandler=t=>{const n=this.slottedRadioButtons,r=t.target,i=r!==null?n.indexOf(r):0,o=this.focusedRadio?n.indexOf(this.focusedRadio):-1;return(o===0&&i===o||o===n.length-1&&o===i)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),n.forEach(s=>{s!==this.selectedRadio&&s.setAttribute("tabindex","-1")}))):(this.focusedRadio=n[0],this.focusedRadio.setAttribute("tabindex","0"),n.forEach(s=>{s!==this.focusedRadio&&s.setAttribute("tabindex","-1")}))),!0},this.clickHandler=t=>{const n=t.target;if(n){const r=this.slottedRadioButtons;n.checked||r.indexOf(n)===0?(n.setAttribute("tabindex","0"),this.selectedRadio=n):(n.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=n}t.preventDefault()},this.shouldMoveOffGroupToTheRight=(t,n,r)=>t===n.length&&this.isInsideToolbar&&r===Bs,this.shouldMoveOffGroupToTheLeft=(t,n)=>(this.focusedRadio?t.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&n===zs,this.checkFocusedRadio=()=>{this.focusedRadio!==null&&!this.focusedRadio.readOnly&&!this.focusedRadio.checked&&(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=t=>{const n=this.slottedRadioButtons;let r=0;if(r=this.focusedRadio?n.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(r,n,t.key)){this.moveRightOffGroup();return}else r===n.length&&(r=0);for(;r1;)if(n[r].disabled){if(this.focusedRadio&&r===n.indexOf(this.focusedRadio))break;if(r+1>=n.length){if(this.isInsideToolbar)break;r=0}else r+=1}else{this.moveToRadioByIndex(n,r);break}},this.moveLeft=t=>{const n=this.slottedRadioButtons;let r=0;if(r=this.focusedRadio?n.indexOf(this.focusedRadio)-1:0,r=r<0?n.length-1:r,this.shouldMoveOffGroupToTheLeft(n,t.key)){this.moveLeftOffGroup();return}for(;r>=0&&n.length>1;)if(n[r].disabled){if(this.focusedRadio&&r===n.indexOf(this.focusedRadio))break;r-1<0?r=n.length-1:r-=1}else{this.moveToRadioByIndex(n,r);break}},this.keydownHandler=t=>{const n=t.key;if(n in a2&&this.isInsideFoundationToolbar)return!0;switch(n){case rl:{this.checkFocusedRadio();break}case Bs:case di:{this.direction===fo.ltr?this.moveRight(t):this.moveLeft(t);break}case zs:case fi:{this.direction===fo.ltr?this.moveLeft(t):this.moveRight(t);break}default:return!0}}}readOnlyChanged(){this.slottedRadioButtons!==void 0&&this.slottedRadioButtons.forEach(t=>{this.readOnly?t.readOnly=!0:t.readOnly=!1})}disabledChanged(){this.slottedRadioButtons!==void 0&&this.slottedRadioButtons.forEach(t=>{this.disabled?t.disabled=!0:t.disabled=!1})}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.value===this.value&&(t.checked=!0,this.selectedRadio=t)}),this.$emit("change")}slottedRadioButtonsChanged(t,n){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var t;return(t=this.parentToolbar)!==null&&t!==void 0?t:!1}get isInsideFoundationToolbar(){var t;return!!(!((t=this.parentToolbar)===null||t===void 0)&&t.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=f2(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(t=>{t.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const t=this.slottedRadioButtons.filter(i=>i.hasAttribute("checked")),n=t?t.length:0;if(n>1){const i=t[n-1];i.checked=!0}let r=!1;if(this.slottedRadioButtons.forEach(i=>{this.name!==void 0&&i.setAttribute("name",this.name),this.disabled&&(i.disabled=!0),this.readOnly&&(i.readOnly=!0),this.value&&this.value===i.value?(this.selectedRadio=i,this.focusedRadio=i,i.checked=!0,i.setAttribute("tabindex","0"),r=!0):(this.isInsideFoundationToolbar||i.setAttribute("tabindex","-1"),i.checked=!1),i.addEventListener("change",this.radioChangeHandler)}),this.value===void 0&&this.slottedRadioButtons.length>0){const i=this.slottedRadioButtons.filter(s=>s.hasAttribute("checked")),o=i!==null?i.length:0;if(o>0&&!r){const s=i[o-1];s.checked=!0,this.focusedRadio=s,s.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}};S([E({attribute:"readonly",mode:"boolean"})],Lr.prototype,"readOnly",void 0);S([E({attribute:"disabled",mode:"boolean"})],Lr.prototype,"disabled",void 0);S([E],Lr.prototype,"name",void 0);S([E],Lr.prototype,"value",void 0);S([E],Lr.prototype,"orientation",void 0);S([F],Lr.prototype,"childItems",void 0);S([F],Lr.prototype,"slottedRadioButtons",void 0);const Q2=(e,t)=>se` +`;let Lr=class extends ye{constructor(){super(...arguments),this.orientation=gp.horizontal,this.radioChangeHandler=t=>{const n=t.target;n.checked&&(this.slottedRadioButtons.forEach(r=>{r!==n&&(r.checked=!1,this.isInsideFoundationToolbar||r.setAttribute("tabindex","-1"))}),this.selectedRadio=n,this.value=n.value,n.setAttribute("tabindex","0"),this.focusedRadio=n),t.stopPropagation()},this.moveToRadioByIndex=(t,n)=>{const r=t[n];this.isInsideToolbar||(r.setAttribute("tabindex","0"),r.readOnly?this.slottedRadioButtons.forEach(i=>{i!==r&&i.setAttribute("tabindex","-1")}):(r.checked=!0,this.selectedRadio=r)),this.focusedRadio=r,r.focus()},this.moveRightOffGroup=()=>{var t;(t=this.nextElementSibling)===null||t===void 0||t.focus()},this.moveLeftOffGroup=()=>{var t;(t=this.previousElementSibling)===null||t===void 0||t.focus()},this.focusOutHandler=t=>{const n=this.slottedRadioButtons,r=t.target,i=r!==null?n.indexOf(r):0,o=this.focusedRadio?n.indexOf(this.focusedRadio):-1;return(o===0&&i===o||o===n.length-1&&o===i)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),n.forEach(s=>{s!==this.selectedRadio&&s.setAttribute("tabindex","-1")}))):(this.focusedRadio=n[0],this.focusedRadio.setAttribute("tabindex","0"),n.forEach(s=>{s!==this.focusedRadio&&s.setAttribute("tabindex","-1")}))),!0},this.clickHandler=t=>{const n=t.target;if(n){const r=this.slottedRadioButtons;n.checked||r.indexOf(n)===0?(n.setAttribute("tabindex","0"),this.selectedRadio=n):(n.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=n}t.preventDefault()},this.shouldMoveOffGroupToTheRight=(t,n,r)=>t===n.length&&this.isInsideToolbar&&r===Bs,this.shouldMoveOffGroupToTheLeft=(t,n)=>(this.focusedRadio?t.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&n===zs,this.checkFocusedRadio=()=>{this.focusedRadio!==null&&!this.focusedRadio.readOnly&&!this.focusedRadio.checked&&(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=t=>{const n=this.slottedRadioButtons;let r=0;if(r=this.focusedRadio?n.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(r,n,t.key)){this.moveRightOffGroup();return}else r===n.length&&(r=0);for(;r1;)if(n[r].disabled){if(this.focusedRadio&&r===n.indexOf(this.focusedRadio))break;if(r+1>=n.length){if(this.isInsideToolbar)break;r=0}else r+=1}else{this.moveToRadioByIndex(n,r);break}},this.moveLeft=t=>{const n=this.slottedRadioButtons;let r=0;if(r=this.focusedRadio?n.indexOf(this.focusedRadio)-1:0,r=r<0?n.length-1:r,this.shouldMoveOffGroupToTheLeft(n,t.key)){this.moveLeftOffGroup();return}for(;r>=0&&n.length>1;)if(n[r].disabled){if(this.focusedRadio&&r===n.indexOf(this.focusedRadio))break;r-1<0?r=n.length-1:r-=1}else{this.moveToRadioByIndex(n,r);break}},this.keydownHandler=t=>{const n=t.key;if(n in d2&&this.isInsideFoundationToolbar)return!0;switch(n){case rl:{this.checkFocusedRadio();break}case Bs:case di:{this.direction===ho.ltr?this.moveRight(t):this.moveLeft(t);break}case zs:case fi:{this.direction===ho.ltr?this.moveLeft(t):this.moveRight(t);break}default:return!0}}}readOnlyChanged(){this.slottedRadioButtons!==void 0&&this.slottedRadioButtons.forEach(t=>{this.readOnly?t.readOnly=!0:t.readOnly=!1})}disabledChanged(){this.slottedRadioButtons!==void 0&&this.slottedRadioButtons.forEach(t=>{this.disabled?t.disabled=!0:t.disabled=!1})}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.value===this.value&&(t.checked=!0,this.selectedRadio=t)}),this.$emit("change")}slottedRadioButtonsChanged(t,n){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var t;return(t=this.parentToolbar)!==null&&t!==void 0?t:!1}get isInsideFoundationToolbar(){var t;return!!(!((t=this.parentToolbar)===null||t===void 0)&&t.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=m2(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(t=>{t.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const t=this.slottedRadioButtons.filter(i=>i.hasAttribute("checked")),n=t?t.length:0;if(n>1){const i=t[n-1];i.checked=!0}let r=!1;if(this.slottedRadioButtons.forEach(i=>{this.name!==void 0&&i.setAttribute("name",this.name),this.disabled&&(i.disabled=!0),this.readOnly&&(i.readOnly=!0),this.value&&this.value===i.value?(this.selectedRadio=i,this.focusedRadio=i,i.checked=!0,i.setAttribute("tabindex","0"),r=!0):(this.isInsideFoundationToolbar||i.setAttribute("tabindex","-1"),i.checked=!1),i.addEventListener("change",this.radioChangeHandler)}),this.value===void 0&&this.slottedRadioButtons.length>0){const i=this.slottedRadioButtons.filter(s=>s.hasAttribute("checked")),o=i!==null?i.length:0;if(o>0&&!r){const s=i[o-1];s.checked=!0,this.focusedRadio=s,s.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}};S([E({attribute:"readonly",mode:"boolean"})],Lr.prototype,"readOnly",void 0);S([E({attribute:"disabled",mode:"boolean"})],Lr.prototype,"disabled",void 0);S([E],Lr.prototype,"name",void 0);S([E],Lr.prototype,"value",void 0);S([E],Lr.prototype,"orientation",void 0);S([z],Lr.prototype,"childItems",void 0);S([z],Lr.prototype,"slottedRadioButtons",void 0);const K2=(e,t)=>se` -`;class X2 extends ye{}class Y2 extends Hx(X2){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let su=class extends Y2{constructor(){super(),this.initialValue="on",this.keypressHandler=t=>{switch(t.key){case il:!this.checked&&!this.readOnly&&(this.checked=!0);return}return!0},this.proxy.setAttribute("type","radio")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}defaultCheckedChanged(){var t;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=(t=this.defaultChecked)!==null&&t!==void 0?t:!1,this.dirtyChecked=!1))}connectedCallback(){var t,n;super.connectedCallback(),this.validate(),((t=this.parentElement)===null||t===void 0?void 0:t.getAttribute("role"))!=="radiogroup"&&this.getAttribute("tabindex")===null&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=(n=this.defaultChecked)!==null&&n!==void 0?n:!1,this.dirtyChecked=!1))}isInsideRadioGroup(){return this.closest("[role=radiogroup]")!==null}clickHandler(t){!this.disabled&&!this.readOnly&&!this.checked&&(this.checked=!0)}};S([E({attribute:"readonly",mode:"boolean"})],su.prototype,"readOnly",void 0);S([F],su.prototype,"name",void 0);S([F],su.prototype,"defaultSlottedNodes",void 0);function K2(e,t,n){return e.nodeType!==Node.TEXT_NODE?!0:typeof e.nodeValue=="string"&&!!e.nodeValue.trim().length}class J2 extends ou{}class Z2 extends sl(J2){constructor(){super(...arguments),this.proxy=document.createElement("select")}}class Nr extends Z2{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=Qa("listbox-"),this.maxHeight=0}openChanged(t,n){if(this.collapsible){if(this.open){this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,J.queueUpdate(()=>this.focus());return}this.ariaControls="",this.ariaExpanded="false"}}get collapsible(){return!(this.multiple||typeof this.size=="number")}get value(){return Y.track(this,"value"),this._value}set value(t){var n,r,i,o,s,l,a;const c=`${this._value}`;if(!((n=this._options)===null||n===void 0)&&n.length){const d=this._options.findIndex(v=>v.value===t),u=(i=(r=this._options[this.selectedIndex])===null||r===void 0?void 0:r.value)!==null&&i!==void 0?i:null,f=(s=(o=this._options[d])===null||o===void 0?void 0:o.value)!==null&&s!==void 0?s:null;(d===-1||u!==f)&&(t="",this.selectedIndex=d),t=(a=(l=this.firstSelectedOption)===null||l===void 0?void 0:l.value)!==null&&a!==void 0?a:t}c!==t&&(this._value=t,super.valueChanged(c,t),Y.notify(this,"value"),this.updateDisplayValue())}updateValue(t){var n,r;this.$fastController.isConnected&&(this.value=(r=(n=this.firstSelectedOption)===null||n===void 0?void 0:n.value)!==null&&r!==void 0?r:""),t&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(t,n){super.selectedIndexChanged(t,n),this.updateValue()}positionChanged(t,n){this.positionAttribute=n,this.setPositioning()}setPositioning(){const t=this.getBoundingClientRect(),r=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>r?ad.above:ad.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===ad.above?~~t.top:~~r}get displayValue(){var t,n;return Y.track(this,"displayValue"),(n=(t=this.firstSelectedOption)===null||t===void 0?void 0:t.text)!==null&&n!==void 0?n:""}disabledChanged(t,n){super.disabledChanged&&super.disabledChanged(t,n),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),this.selectedIndex===-1&&(this.selectedIndex=0)}clickHandler(t){if(!this.disabled){if(this.open){const n=t.target.closest("option,[role=option]");if(n&&n.disabled)return}return super.clickHandler(t),this.open=this.collapsible&&!this.open,!this.open&&this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0),!0}}focusoutHandler(t){var n;if(super.focusoutHandler(t),!this.open)return!0;const r=t.relatedTarget;if(this.isSameNode(r)){this.focus();return}!((n=this.options)===null||n===void 0)&&n.includes(r)||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}handleChange(t,n){super.handleChange(t,n),n==="value"&&this.updateValue()}slottedOptionsChanged(t,n){this.options.forEach(r=>{Y.getNotifier(r).unsubscribe(this,"value")}),super.slottedOptionsChanged(t,n),this.options.forEach(r=>{Y.getNotifier(r).subscribe(this,"value")}),this.setProxyOptions(),this.updateValue()}mousedownHandler(t){var n;return t.offsetX>=0&&t.offsetX<=((n=this.listbox)===null||n===void 0?void 0:n.scrollWidth)?super.mousedownHandler(t):this.collapsible}multipleChanged(t,n){super.multipleChanged(t,n),this.proxy&&(this.proxy.multiple=n)}selectedOptionsChanged(t,n){var r;super.selectedOptionsChanged(t,n),(r=this.options)===null||r===void 0||r.forEach((i,o)=>{var s;const l=(s=this.proxy)===null||s===void 0?void 0:s.options.item(o);l&&(l.selected=i.selected)})}setDefaultSelectedOption(){var t;const n=(t=this.options)!==null&&t!==void 0?t:Array.from(this.children).filter(vt.slottedOptionFilter),r=n==null?void 0:n.findIndex(i=>i.hasAttribute("selected")||i.selected||i.value===this.value);if(r!==-1){this.selectedIndex=r;return}this.selectedIndex=0}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach(t=>{const n=t.proxy||(t instanceof HTMLOptionElement?t.cloneNode():null);n&&this.proxy.options.add(n)}))}keydownHandler(t){super.keydownHandler(t);const n=t.key||t.key.charCodeAt(0);switch(n){case il:{t.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break}case $o:case To:{t.preventDefault();break}case rl:{t.preventDefault(),this.open=!this.open;break}case nu:{this.collapsible&&this.open&&(t.preventDefault(),this.open=!1);break}case vp:return this.collapsible&&this.open&&(t.preventDefault(),this.open=!1),!0}return!this.open&&this.indexWhenOpened!==this.selectedIndex&&(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!(n===di||n===fi)}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.addEventListener("contentchange",this.updateDisplayValue)}disconnectedCallback(){this.removeEventListener("contentchange",this.updateDisplayValue),super.disconnectedCallback()}sizeChanged(t,n){super.sizeChanged(t,n),this.proxy&&(this.proxy.size=n)}updateDisplayValue(){this.collapsible&&Y.notify(this,"displayValue")}}S([E({attribute:"open",mode:"boolean"})],Nr.prototype,"open",void 0);S([nO],Nr.prototype,"collapsible",null);S([F],Nr.prototype,"control",void 0);S([E({attribute:"position"})],Nr.prototype,"positionAttribute",void 0);S([F],Nr.prototype,"position",void 0);S([F],Nr.prototype,"maxHeight",void 0);class kp{}S([F],kp.prototype,"ariaControls",void 0);At(kp,hi);At(Nr,ko,kp);const e_=(e,t)=>se` +`;class J2 extends ye{}class Z2 extends Ux(J2){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let lu=class extends Z2{constructor(){super(),this.initialValue="on",this.keypressHandler=t=>{switch(t.key){case il:!this.checked&&!this.readOnly&&(this.checked=!0);return}return!0},this.proxy.setAttribute("type","radio")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}defaultCheckedChanged(){var t;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=(t=this.defaultChecked)!==null&&t!==void 0?t:!1,this.dirtyChecked=!1))}connectedCallback(){var t,n;super.connectedCallback(),this.validate(),((t=this.parentElement)===null||t===void 0?void 0:t.getAttribute("role"))!=="radiogroup"&&this.getAttribute("tabindex")===null&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=(n=this.defaultChecked)!==null&&n!==void 0?n:!1,this.dirtyChecked=!1))}isInsideRadioGroup(){return this.closest("[role=radiogroup]")!==null}clickHandler(t){!this.disabled&&!this.readOnly&&!this.checked&&(this.checked=!0)}};S([E({attribute:"readonly",mode:"boolean"})],lu.prototype,"readOnly",void 0);S([z],lu.prototype,"name",void 0);S([z],lu.prototype,"defaultSlottedNodes",void 0);function e_(e,t,n){return e.nodeType!==Node.TEXT_NODE?!0:typeof e.nodeValue=="string"&&!!e.nodeValue.trim().length}class t_ extends su{}class n_ extends sl(t_){constructor(){super(...arguments),this.proxy=document.createElement("select")}}class Nr extends n_{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=Qa("listbox-"),this.maxHeight=0}openChanged(t,n){if(this.collapsible){if(this.open){this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,J.queueUpdate(()=>this.focus());return}this.ariaControls="",this.ariaExpanded="false"}}get collapsible(){return!(this.multiple||typeof this.size=="number")}get value(){return Y.track(this,"value"),this._value}set value(t){var n,r,i,o,s,l,a;const c=`${this._value}`;if(!((n=this._options)===null||n===void 0)&&n.length){const d=this._options.findIndex(v=>v.value===t),u=(i=(r=this._options[this.selectedIndex])===null||r===void 0?void 0:r.value)!==null&&i!==void 0?i:null,f=(s=(o=this._options[d])===null||o===void 0?void 0:o.value)!==null&&s!==void 0?s:null;(d===-1||u!==f)&&(t="",this.selectedIndex=d),t=(a=(l=this.firstSelectedOption)===null||l===void 0?void 0:l.value)!==null&&a!==void 0?a:t}c!==t&&(this._value=t,super.valueChanged(c,t),Y.notify(this,"value"),this.updateDisplayValue())}updateValue(t){var n,r;this.$fastController.isConnected&&(this.value=(r=(n=this.firstSelectedOption)===null||n===void 0?void 0:n.value)!==null&&r!==void 0?r:""),t&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(t,n){super.selectedIndexChanged(t,n),this.updateValue()}positionChanged(t,n){this.positionAttribute=n,this.setPositioning()}setPositioning(){const t=this.getBoundingClientRect(),r=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>r?cd.above:cd.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===cd.above?~~t.top:~~r}get displayValue(){var t,n;return Y.track(this,"displayValue"),(n=(t=this.firstSelectedOption)===null||t===void 0?void 0:t.text)!==null&&n!==void 0?n:""}disabledChanged(t,n){super.disabledChanged&&super.disabledChanged(t,n),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),this.selectedIndex===-1&&(this.selectedIndex=0)}clickHandler(t){if(!this.disabled){if(this.open){const n=t.target.closest("option,[role=option]");if(n&&n.disabled)return}return super.clickHandler(t),this.open=this.collapsible&&!this.open,!this.open&&this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0),!0}}focusoutHandler(t){var n;if(super.focusoutHandler(t),!this.open)return!0;const r=t.relatedTarget;if(this.isSameNode(r)){this.focus();return}!((n=this.options)===null||n===void 0)&&n.includes(r)||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}handleChange(t,n){super.handleChange(t,n),n==="value"&&this.updateValue()}slottedOptionsChanged(t,n){this.options.forEach(r=>{Y.getNotifier(r).unsubscribe(this,"value")}),super.slottedOptionsChanged(t,n),this.options.forEach(r=>{Y.getNotifier(r).subscribe(this,"value")}),this.setProxyOptions(),this.updateValue()}mousedownHandler(t){var n;return t.offsetX>=0&&t.offsetX<=((n=this.listbox)===null||n===void 0?void 0:n.scrollWidth)?super.mousedownHandler(t):this.collapsible}multipleChanged(t,n){super.multipleChanged(t,n),this.proxy&&(this.proxy.multiple=n)}selectedOptionsChanged(t,n){var r;super.selectedOptionsChanged(t,n),(r=this.options)===null||r===void 0||r.forEach((i,o)=>{var s;const l=(s=this.proxy)===null||s===void 0?void 0:s.options.item(o);l&&(l.selected=i.selected)})}setDefaultSelectedOption(){var t;const n=(t=this.options)!==null&&t!==void 0?t:Array.from(this.children).filter(vt.slottedOptionFilter),r=n==null?void 0:n.findIndex(i=>i.hasAttribute("selected")||i.selected||i.value===this.value);if(r!==-1){this.selectedIndex=r;return}this.selectedIndex=0}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach(t=>{const n=t.proxy||(t instanceof HTMLOptionElement?t.cloneNode():null);n&&this.proxy.options.add(n)}))}keydownHandler(t){super.keydownHandler(t);const n=t.key||t.key.charCodeAt(0);switch(n){case il:{t.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break}case To:case Io:{t.preventDefault();break}case rl:{t.preventDefault(),this.open=!this.open;break}case ru:{this.collapsible&&this.open&&(t.preventDefault(),this.open=!1);break}case vp:return this.collapsible&&this.open&&(t.preventDefault(),this.open=!1),!0}return!this.open&&this.indexWhenOpened!==this.selectedIndex&&(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!(n===di||n===fi)}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.addEventListener("contentchange",this.updateDisplayValue)}disconnectedCallback(){this.removeEventListener("contentchange",this.updateDisplayValue),super.disconnectedCallback()}sizeChanged(t,n){super.sizeChanged(t,n),this.proxy&&(this.proxy.size=n)}updateDisplayValue(){this.collapsible&&Y.notify(this,"displayValue")}}S([E({attribute:"open",mode:"boolean"})],Nr.prototype,"open",void 0);S([oO],Nr.prototype,"collapsible",null);S([z],Nr.prototype,"control",void 0);S([E({attribute:"position"})],Nr.prototype,"positionAttribute",void 0);S([z],Nr.prototype,"position",void 0);S([z],Nr.prototype,"maxHeight",void 0);class kp{}S([z],kp.prototype,"ariaControls",void 0);At(kp,hi);At(Nr,Co,kp);const r_=(e,t)=>se` -`,t_=(e,t)=>se` +`,i_=(e,t)=>se` -`;class n_ extends ye{}const r_=(e,t)=>se` +`;class o_ extends ye{}const s_=(e,t)=>se` -`;class Xx extends ye{}S([E({mode:"boolean"})],Xx.prototype,"disabled",void 0);const i_=(e,t)=>se` +`;class Yx extends ye{}S([E({mode:"boolean"})],Yx.prototype,"disabled",void 0);const l_=(e,t)=>se` -`,Of={vertical:"vertical",horizontal:"horizontal"};class nr extends ye{constructor(){super(...arguments),this.orientation=Of.horizontal,this.activeindicator=!0,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>t.getAttribute("aria-disabled")==="true",this.isHiddenElement=t=>t.hasAttribute("hidden"),this.isFocusableElement=t=>!this.isDisabledElement(t)&&!this.isHiddenElement(t),this.setTabs=()=>{const t="gridColumn",n="gridRow",r=this.isHorizontal()?t:n;this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach((i,o)=>{if(i.slot==="tab"){const s=this.activeTabIndex===o&&this.isFocusableElement(i);this.activeindicator&&this.isFocusableElement(i)&&(this.showActiveIndicator=!0);const l=this.tabIds[o],a=this.tabpanelIds[o];i.setAttribute("id",l),i.setAttribute("aria-selected",s?"true":"false"),i.setAttribute("aria-controls",a),i.addEventListener("click",this.handleTabClick),i.addEventListener("keydown",this.handleTabKeyDown),i.setAttribute("tabindex",s?"0":"-1"),s&&(this.activetab=i,this.activeid=l)}i.style[t]="",i.style[n]="",i.style[r]=`${o+1}`,this.isHorizontal()?i.classList.remove("vertical"):i.classList.add("vertical")})},this.setTabPanels=()=>{this.tabpanels.forEach((t,n)=>{const r=this.tabIds[n],i=this.tabpanelIds[n];t.setAttribute("id",i),t.setAttribute("aria-labelledby",r),this.activeTabIndex!==n?t.setAttribute("hidden",""):t.removeAttribute("hidden")})},this.handleTabClick=t=>{const n=t.currentTarget;n.nodeType===1&&this.isFocusableElement(n)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(n),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case zs:t.preventDefault(),this.adjustBackward(t);break;case Bs:t.preventDefault(),this.adjustForward(t);break}else switch(t.key){case fi:t.preventDefault(),this.adjustBackward(t);break;case di:t.preventDefault(),this.adjustForward(t);break}switch(t.key){case $o:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case To:t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}},this.adjustForward=t=>{const n=this.tabs;let r=0;for(r=this.activetab?n.indexOf(this.activetab)+1:1,r===n.length&&(r=0);r1;)if(this.isFocusableElement(n[r])){this.moveToTabByIndex(n,r);break}else{if(this.activetab&&r===n.indexOf(this.activetab))break;r+1>=n.length?r=0:r+=1}},this.adjustBackward=t=>{const n=this.tabs;let r=0;for(r=this.activetab?n.indexOf(this.activetab)-1:0,r=r<0?n.length-1:r;r>=0&&n.length>1;)if(this.isFocusableElement(n[r])){this.moveToTabByIndex(n,r);break}else r-1<0?r=n.length-1:r-=1},this.moveToTabByIndex=(t,n)=>{const r=t[n];this.activetab=r,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=n,r.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(t,n){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(r=>r.id===t),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map(t=>{var n;return(n=t.getAttribute("id"))!==null&&n!==void 0?n:`tab-${Qa()}`})}getTabPanelIds(){return this.tabpanels.map(t=>{var n;return(n=t.getAttribute("id"))!==null&&n!==void 0?n:`panel-${Qa()}`})}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Of.horizontal}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;const t=this.isHorizontal()?"gridColumn":"gridRow",n=this.isHorizontal()?"translateX":"translateY",r=this.isHorizontal()?"offsetLeft":"offsetTop",i=this.activeIndicatorRef[r];this.activeIndicatorRef.style[t]=`${this.activeTabIndex+1}`;const o=this.activeIndicatorRef[r];this.activeIndicatorRef.style[t]=`${this.prevActiveTabIndex+1}`;const s=o-i;this.activeIndicatorRef.style.transform=`${n}(${s}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",()=>{this.ticking=!1,this.activeIndicatorRef.style[t]=`${this.activeTabIndex+1}`,this.activeIndicatorRef.style.transform=`${n}(0px)`,this.activeIndicatorRef.classList.remove("activeIndicatorTransition")})}adjust(t){const n=this.tabs.filter(s=>this.isFocusableElement(s)),r=n.indexOf(this.activetab),i=c2(0,n.length-1,r+t),o=this.tabs.indexOf(n[i]);o>-1&&this.moveToTabByIndex(this.tabs,o)}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}S([E],nr.prototype,"orientation",void 0);S([E],nr.prototype,"activeid",void 0);S([F],nr.prototype,"tabs",void 0);S([F],nr.prototype,"tabpanels",void 0);S([E({mode:"boolean"})],nr.prototype,"activeindicator",void 0);S([F],nr.prototype,"activeIndicatorRef",void 0);S([F],nr.prototype,"showActiveIndicator",void 0);At(nr,ko);class o_ extends ye{}class s_ extends sl(o_){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}const Yx={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};let kt=class extends s_{constructor(){super(...arguments),this.resize=Yx.none,this.cols=20,this.handleTextInput=()=>{this.value=this.control.value}}readOnlyChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}autofocusChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}listChanged(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}maxlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}minlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}spellcheckChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}select(){this.control.select(),this.$emit("select")}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}};S([E({mode:"boolean"})],kt.prototype,"readOnly",void 0);S([E],kt.prototype,"resize",void 0);S([E({mode:"boolean"})],kt.prototype,"autofocus",void 0);S([E({attribute:"form"})],kt.prototype,"formId",void 0);S([E],kt.prototype,"list",void 0);S([E({converter:bn})],kt.prototype,"maxlength",void 0);S([E({converter:bn})],kt.prototype,"minlength",void 0);S([E],kt.prototype,"name",void 0);S([E],kt.prototype,"placeholder",void 0);S([E({converter:bn,mode:"fromView"})],kt.prototype,"cols",void 0);S([E({converter:bn,mode:"fromView"})],kt.prototype,"rows",void 0);S([E({mode:"boolean"})],kt.prototype,"spellcheck",void 0);S([F],kt.prototype,"defaultSlottedNodes",void 0);At(kt,wp);const l_=(e,t)=>se` +`,_f={vertical:"vertical",horizontal:"horizontal"};class nr extends ye{constructor(){super(...arguments),this.orientation=_f.horizontal,this.activeindicator=!0,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>t.getAttribute("aria-disabled")==="true",this.isHiddenElement=t=>t.hasAttribute("hidden"),this.isFocusableElement=t=>!this.isDisabledElement(t)&&!this.isHiddenElement(t),this.setTabs=()=>{const t="gridColumn",n="gridRow",r=this.isHorizontal()?t:n;this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach((i,o)=>{if(i.slot==="tab"){const s=this.activeTabIndex===o&&this.isFocusableElement(i);this.activeindicator&&this.isFocusableElement(i)&&(this.showActiveIndicator=!0);const l=this.tabIds[o],a=this.tabpanelIds[o];i.setAttribute("id",l),i.setAttribute("aria-selected",s?"true":"false"),i.setAttribute("aria-controls",a),i.addEventListener("click",this.handleTabClick),i.addEventListener("keydown",this.handleTabKeyDown),i.setAttribute("tabindex",s?"0":"-1"),s&&(this.activetab=i,this.activeid=l)}i.style[t]="",i.style[n]="",i.style[r]=`${o+1}`,this.isHorizontal()?i.classList.remove("vertical"):i.classList.add("vertical")})},this.setTabPanels=()=>{this.tabpanels.forEach((t,n)=>{const r=this.tabIds[n],i=this.tabpanelIds[n];t.setAttribute("id",i),t.setAttribute("aria-labelledby",r),this.activeTabIndex!==n?t.setAttribute("hidden",""):t.removeAttribute("hidden")})},this.handleTabClick=t=>{const n=t.currentTarget;n.nodeType===1&&this.isFocusableElement(n)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(n),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case zs:t.preventDefault(),this.adjustBackward(t);break;case Bs:t.preventDefault(),this.adjustForward(t);break}else switch(t.key){case fi:t.preventDefault(),this.adjustBackward(t);break;case di:t.preventDefault(),this.adjustForward(t);break}switch(t.key){case To:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case Io:t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}},this.adjustForward=t=>{const n=this.tabs;let r=0;for(r=this.activetab?n.indexOf(this.activetab)+1:1,r===n.length&&(r=0);r1;)if(this.isFocusableElement(n[r])){this.moveToTabByIndex(n,r);break}else{if(this.activetab&&r===n.indexOf(this.activetab))break;r+1>=n.length?r=0:r+=1}},this.adjustBackward=t=>{const n=this.tabs;let r=0;for(r=this.activetab?n.indexOf(this.activetab)-1:0,r=r<0?n.length-1:r;r>=0&&n.length>1;)if(this.isFocusableElement(n[r])){this.moveToTabByIndex(n,r);break}else r-1<0?r=n.length-1:r-=1},this.moveToTabByIndex=(t,n)=>{const r=t[n];this.activetab=r,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=n,r.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(t,n){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(r=>r.id===t),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map(t=>{var n;return(n=t.getAttribute("id"))!==null&&n!==void 0?n:`tab-${Qa()}`})}getTabPanelIds(){return this.tabpanels.map(t=>{var n;return(n=t.getAttribute("id"))!==null&&n!==void 0?n:`panel-${Qa()}`})}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===_f.horizontal}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;const t=this.isHorizontal()?"gridColumn":"gridRow",n=this.isHorizontal()?"translateX":"translateY",r=this.isHorizontal()?"offsetLeft":"offsetTop",i=this.activeIndicatorRef[r];this.activeIndicatorRef.style[t]=`${this.activeTabIndex+1}`;const o=this.activeIndicatorRef[r];this.activeIndicatorRef.style[t]=`${this.prevActiveTabIndex+1}`;const s=o-i;this.activeIndicatorRef.style.transform=`${n}(${s}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",()=>{this.ticking=!1,this.activeIndicatorRef.style[t]=`${this.activeTabIndex+1}`,this.activeIndicatorRef.style.transform=`${n}(0px)`,this.activeIndicatorRef.classList.remove("activeIndicatorTransition")})}adjust(t){const n=this.tabs.filter(s=>this.isFocusableElement(s)),r=n.indexOf(this.activetab),i=f2(0,n.length-1,r+t),o=this.tabs.indexOf(n[i]);o>-1&&this.moveToTabByIndex(this.tabs,o)}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}S([E],nr.prototype,"orientation",void 0);S([E],nr.prototype,"activeid",void 0);S([z],nr.prototype,"tabs",void 0);S([z],nr.prototype,"tabpanels",void 0);S([E({mode:"boolean"})],nr.prototype,"activeindicator",void 0);S([z],nr.prototype,"activeIndicatorRef",void 0);S([z],nr.prototype,"showActiveIndicator",void 0);At(nr,Co);class a_ extends ye{}class c_ extends sl(a_){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}const Kx={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};let kt=class extends c_{constructor(){super(...arguments),this.resize=Kx.none,this.cols=20,this.handleTextInput=()=>{this.value=this.control.value}}readOnlyChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}autofocusChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}listChanged(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}maxlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}minlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}spellcheckChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}select(){this.control.select(),this.$emit("select")}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}};S([E({mode:"boolean"})],kt.prototype,"readOnly",void 0);S([E],kt.prototype,"resize",void 0);S([E({mode:"boolean"})],kt.prototype,"autofocus",void 0);S([E({attribute:"form"})],kt.prototype,"formId",void 0);S([E],kt.prototype,"list",void 0);S([E({converter:bn})],kt.prototype,"maxlength",void 0);S([E({converter:bn})],kt.prototype,"minlength",void 0);S([E],kt.prototype,"name",void 0);S([E],kt.prototype,"placeholder",void 0);S([E({converter:bn,mode:"fromView"})],kt.prototype,"cols",void 0);S([E({converter:bn,mode:"fromView"})],kt.prototype,"rows",void 0);S([E({mode:"boolean"})],kt.prototype,"spellcheck",void 0);S([z],kt.prototype,"defaultSlottedNodes",void 0);At(kt,wp);const u_=(e,t)=>se` -`,a_=(e,t)=>se` +`,d_=(e,t)=>se` -`,Or="not-allowed",c_=":host([hidden]){display:none}";function dt(e){return`${c_}:host{display:${e}}`}const at=i2()?"focus-visible":"focus",u_=new Set(["children","localName","ref","style","className"]),d_=Object.freeze(Object.create(null)),vv="_default",Nl=new Map;function f_(e,t){typeof e=="function"?e(t):e.current=t}function Kx(e,t){if(!t.name){const n=nl.forType(e);if(n)t.name=n.name;else throw new Error("React wrappers must wrap a FASTElement or be configured with a name.")}return t.name}function _f(e){return e.events||(e.events={})}function yv(e,t,n){return u_.has(n)?(console.warn(`${Kx(e,t)} contains property ${n} which is a React reserved property. It will be used by React and not set on the element.`),!1):!0}function h_(e,t){if(!t.keys)if(t.properties)t.keys=new Set(t.properties.concat(Object.keys(_f(t))));else{const n=new Set(Object.keys(_f(t))),r=Y.getAccessors(e.prototype);if(r.length>0)for(const i of r)yv(e,t,i.name)&&n.add(i.name);else for(const i in e.prototype)!(i in HTMLElement.prototype)&&yv(e,t,i)&&n.add(i);t.keys=n}return t.keys}function p_(e,t){let n=[];const r={register(o,...s){n.forEach(l=>l.register(o,...s)),n=[]}};function i(o,s={}){var l,a;o instanceof Bx&&(t?t.register(o):n.push(o),o=o.type);const c=Nl.get(o);if(c){const f=c.get((l=s.name)!==null&&l!==void 0?l:vv);if(f)return f}class d extends e.Component{constructor(){super(...arguments),this._element=null}_updateElement(v){const g=this._element;if(g===null)return;const m=this.props,b=v||d_,p=_f(s);for(const h in this._elementProps){const y=m[h],w=p[h];if(w===void 0)g[h]=y;else{const C=b[h];if(y===C)continue;C!==void 0&&g.removeEventListener(w,C),y!==void 0&&g.addEventListener(w,y)}}}componentDidMount(){this._updateElement()}componentDidUpdate(v){this._updateElement(v)}render(){const v=this.props.__forwardedRef;(this._ref===void 0||this._userRef!==v)&&(this._ref=h=>{this._element===null&&(this._element=h),v!==null&&f_(v,h),this._userRef=v});const g={ref:this._ref},m=this._elementProps={},b=h_(o,s),p=this.props;for(const h in p){const y=p[h];b.has(h)?m[h]=y:g[h==="className"?"class":h]=y}return e.createElement(Kx(o,s),g)}}const u=e.forwardRef((f,v)=>e.createElement(d,Object.assign(Object.assign({},f),{__forwardedRef:v}),f==null?void 0:f.children));return Nl.has(o)||Nl.set(o,new Map),Nl.get(o).set((a=s.name)!==null&&a!==void 0?a:vv,u),u}return{wrap:i,registry:r}}function Jx(e){return qx.getOrCreate(e).withPrefix("vscode")}function m_(e){window.addEventListener("load",()=>{new MutationObserver(()=>{bv(e)}).observe(document.body,{attributes:!0,attributeFilter:["class"]}),bv(e)})}function bv(e){const t=getComputedStyle(document.body),n=document.querySelector("body");if(n){const r=n.getAttribute("data-vscode-theme-kind");for(const[i,o]of e){let s=t.getPropertyValue(i).toString();if(r==="vscode-high-contrast")s.length===0&&o.name.includes("background")&&(s="transparent"),o.name==="button-icon-hover-background"&&(s="transparent");else if(r==="vscode-high-contrast-light"){if(s.length===0&&o.name.includes("background"))switch(o.name){case"button-primary-hover-background":s="#0F4A85";break;case"button-secondary-hover-background":s="transparent";break;case"button-icon-hover-background":s="transparent";break}}else o.name==="contrast-active-border"&&(s="transparent");o.setValueFor(n,s)}}}const xv=new Map;let wv=!1;function L(e,t){const n=Gx.create(e);if(t){if(t.includes("--fake-vscode-token")){const r="id"+Math.random().toString(16).slice(2);t=`${t}-${r}`}xv.set(t,n)}return wv||(m_(xv),wv=!0),n}const g_=L("background","--vscode-editor-background").withDefault("#1e1e1e"),te=L("border-width").withDefault(1),Zx=L("contrast-active-border","--vscode-contrastActiveBorder").withDefault("#f38518");L("contrast-border","--vscode-contrastBorder").withDefault("#6fc3df");const ll=L("corner-radius").withDefault(0),Yi=L("corner-radius-round").withDefault(2),G=L("design-unit").withDefault(4),pi=L("disabled-opacity").withDefault(.4),Ae=L("focus-border","--vscode-focusBorder").withDefault("#007fd4"),cn=L("font-family","--vscode-font-family").withDefault("-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol");L("font-weight","--vscode-font-weight").withDefault("400");const st=L("foreground","--vscode-foreground").withDefault("#cccccc"),sa=L("input-height").withDefault("26"),Cp=L("input-min-width").withDefault("100px"),bt=L("type-ramp-base-font-size","--vscode-font-size").withDefault("13px"),_t=L("type-ramp-base-line-height").withDefault("normal"),e1=L("type-ramp-minus1-font-size").withDefault("11px"),t1=L("type-ramp-minus1-line-height").withDefault("16px");L("type-ramp-minus2-font-size").withDefault("9px");L("type-ramp-minus2-line-height").withDefault("16px");L("type-ramp-plus1-font-size").withDefault("16px");L("type-ramp-plus1-line-height").withDefault("24px");const v_=L("scrollbarWidth").withDefault("10px"),y_=L("scrollbarHeight").withDefault("10px"),b_=L("scrollbar-slider-background","--vscode-scrollbarSlider-background").withDefault("#79797966"),x_=L("scrollbar-slider-hover-background","--vscode-scrollbarSlider-hoverBackground").withDefault("#646464b3"),w_=L("scrollbar-slider-active-background","--vscode-scrollbarSlider-activeBackground").withDefault("#bfbfbf66"),n1=L("badge-background","--vscode-badge-background").withDefault("#4d4d4d"),r1=L("badge-foreground","--vscode-badge-foreground").withDefault("#ffffff"),Sp=L("button-border","--vscode-button-border").withDefault("transparent"),kv=L("button-icon-background").withDefault("transparent"),k_=L("button-icon-corner-radius").withDefault("5px"),C_=L("button-icon-outline-offset").withDefault(0),Cv=L("button-icon-hover-background","--fake-vscode-token").withDefault("rgba(90, 93, 94, 0.31)"),S_=L("button-icon-padding").withDefault("3px"),Ki=L("button-primary-background","--vscode-button-background").withDefault("#0e639c"),i1=L("button-primary-foreground","--vscode-button-foreground").withDefault("#ffffff"),o1=L("button-primary-hover-background","--vscode-button-hoverBackground").withDefault("#1177bb"),fd=L("button-secondary-background","--vscode-button-secondaryBackground").withDefault("#3a3d41"),$_=L("button-secondary-foreground","--vscode-button-secondaryForeground").withDefault("#ffffff"),T_=L("button-secondary-hover-background","--vscode-button-secondaryHoverBackground").withDefault("#45494e"),I_=L("button-padding-horizontal").withDefault("11px"),E_=L("button-padding-vertical").withDefault("4px"),Bn=L("checkbox-background","--vscode-checkbox-background").withDefault("#3c3c3c"),Ni=L("checkbox-border","--vscode-checkbox-border").withDefault("#3c3c3c"),R_=L("checkbox-corner-radius").withDefault(3);L("checkbox-foreground","--vscode-checkbox-foreground").withDefault("#f0f0f0");const Hr=L("list-active-selection-background","--vscode-list-activeSelectionBackground").withDefault("#094771"),Ji=L("list-active-selection-foreground","--vscode-list-activeSelectionForeground").withDefault("#ffffff"),P_=L("list-hover-background","--vscode-list-hoverBackground").withDefault("#2a2d2e"),O_=L("divider-background","--vscode-settings-dropdownListBorder").withDefault("#454545"),Fl=L("dropdown-background","--vscode-dropdown-background").withDefault("#3c3c3c"),$r=L("dropdown-border","--vscode-dropdown-border").withDefault("#3c3c3c");L("dropdown-foreground","--vscode-dropdown-foreground").withDefault("#f0f0f0");const __=L("dropdown-list-max-height").withDefault("200px"),Qr=L("input-background","--vscode-input-background").withDefault("#3c3c3c"),s1=L("input-foreground","--vscode-input-foreground").withDefault("#cccccc");L("input-placeholder-foreground","--vscode-input-placeholderForeground").withDefault("#cccccc");const Sv=L("link-active-foreground","--vscode-textLink-activeForeground").withDefault("#3794ff"),A_=L("link-foreground","--vscode-textLink-foreground").withDefault("#3794ff"),D_=L("progress-background","--vscode-progressBar-background").withDefault("#0e70c0"),M_=L("panel-tab-active-border","--vscode-panelTitle-activeBorder").withDefault("#e7e7e7"),Ci=L("panel-tab-active-foreground","--vscode-panelTitle-activeForeground").withDefault("#e7e7e7"),L_=L("panel-tab-foreground","--vscode-panelTitle-inactiveForeground").withDefault("#e7e7e799");L("panel-view-background","--vscode-panel-background").withDefault("#1e1e1e");L("panel-view-border","--vscode-panel-border").withDefault("#80808059");const N_=L("tag-corner-radius").withDefault("2px"),F_=(e,t)=>Te` - ${dt("inline-block")} :host { +`,Or="not-allowed",f_=":host([hidden]){display:none}";function ut(e){return`${f_}:host{display:${e}}`}const lt=l2()?"focus-visible":"focus",h_=new Set(["children","localName","ref","style","className"]),p_=Object.freeze(Object.create(null)),yv="_default",Nl=new Map;function m_(e,t){typeof e=="function"?e(t):e.current=t}function Jx(e,t){if(!t.name){const n=nl.forType(e);if(n)t.name=n.name;else throw new Error("React wrappers must wrap a FASTElement or be configured with a name.")}return t.name}function Af(e){return e.events||(e.events={})}function bv(e,t,n){return h_.has(n)?(console.warn(`${Jx(e,t)} contains property ${n} which is a React reserved property. It will be used by React and not set on the element.`),!1):!0}function g_(e,t){if(!t.keys)if(t.properties)t.keys=new Set(t.properties.concat(Object.keys(Af(t))));else{const n=new Set(Object.keys(Af(t))),r=Y.getAccessors(e.prototype);if(r.length>0)for(const i of r)bv(e,t,i.name)&&n.add(i.name);else for(const i in e.prototype)!(i in HTMLElement.prototype)&&bv(e,t,i)&&n.add(i);t.keys=n}return t.keys}function v_(e,t){let n=[];const r={register(o,...s){n.forEach(l=>l.register(o,...s)),n=[]}};function i(o,s={}){var l,a;o instanceof Vx&&(t?t.register(o):n.push(o),o=o.type);const c=Nl.get(o);if(c){const f=c.get((l=s.name)!==null&&l!==void 0?l:yv);if(f)return f}class d extends e.Component{constructor(){super(...arguments),this._element=null}_updateElement(v){const g=this._element;if(g===null)return;const m=this.props,b=v||p_,p=Af(s);for(const h in this._elementProps){const y=m[h],w=p[h];if(w===void 0)g[h]=y;else{const C=b[h];if(y===C)continue;C!==void 0&&g.removeEventListener(w,C),y!==void 0&&g.addEventListener(w,y)}}}componentDidMount(){this._updateElement()}componentDidUpdate(v){this._updateElement(v)}render(){const v=this.props.__forwardedRef;(this._ref===void 0||this._userRef!==v)&&(this._ref=h=>{this._element===null&&(this._element=h),v!==null&&m_(v,h),this._userRef=v});const g={ref:this._ref},m=this._elementProps={},b=g_(o,s),p=this.props;for(const h in p){const y=p[h];b.has(h)?m[h]=y:g[h==="className"?"class":h]=y}return e.createElement(Jx(o,s),g)}}const u=e.forwardRef((f,v)=>e.createElement(d,Object.assign(Object.assign({},f),{__forwardedRef:v}),f==null?void 0:f.children));return Nl.has(o)||Nl.set(o,new Map),Nl.get(o).set((a=s.name)!==null&&a!==void 0?a:yv,u),u}return{wrap:i,registry:r}}function Zx(e){return Qx.getOrCreate(e).withPrefix("vscode")}function y_(e){window.addEventListener("load",()=>{new MutationObserver(()=>{xv(e)}).observe(document.body,{attributes:!0,attributeFilter:["class"]}),xv(e)})}function xv(e){const t=getComputedStyle(document.body),n=document.querySelector("body");if(n){const r=n.getAttribute("data-vscode-theme-kind");for(const[i,o]of e){let s=t.getPropertyValue(i).toString();if(r==="vscode-high-contrast")s.length===0&&o.name.includes("background")&&(s="transparent"),o.name==="button-icon-hover-background"&&(s="transparent");else if(r==="vscode-high-contrast-light"){if(s.length===0&&o.name.includes("background"))switch(o.name){case"button-primary-hover-background":s="#0F4A85";break;case"button-secondary-hover-background":s="transparent";break;case"button-icon-hover-background":s="transparent";break}}else o.name==="contrast-active-border"&&(s="transparent");o.setValueFor(n,s)}}}const wv=new Map;let kv=!1;function N(e,t){const n=qx.create(e);if(t){if(t.includes("--fake-vscode-token")){const r="id"+Math.random().toString(16).slice(2);t=`${t}-${r}`}wv.set(t,n)}return kv||(y_(wv),kv=!0),n}const b_=N("background","--vscode-editor-background").withDefault("#1e1e1e"),te=N("border-width").withDefault(1),e1=N("contrast-active-border","--vscode-contrastActiveBorder").withDefault("#f38518");N("contrast-border","--vscode-contrastBorder").withDefault("#6fc3df");const ll=N("corner-radius").withDefault(0),Ki=N("corner-radius-round").withDefault(2),G=N("design-unit").withDefault(4),pi=N("disabled-opacity").withDefault(.4),Ae=N("focus-border","--vscode-focusBorder").withDefault("#007fd4"),cn=N("font-family","--vscode-font-family").withDefault("-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol");N("font-weight","--vscode-font-weight").withDefault("400");const ot=N("foreground","--vscode-foreground").withDefault("#cccccc"),sa=N("input-height").withDefault("26"),Cp=N("input-min-width").withDefault("100px"),bt=N("type-ramp-base-font-size","--vscode-font-size").withDefault("13px"),_t=N("type-ramp-base-line-height").withDefault("normal"),t1=N("type-ramp-minus1-font-size").withDefault("11px"),n1=N("type-ramp-minus1-line-height").withDefault("16px");N("type-ramp-minus2-font-size").withDefault("9px");N("type-ramp-minus2-line-height").withDefault("16px");N("type-ramp-plus1-font-size").withDefault("16px");N("type-ramp-plus1-line-height").withDefault("24px");const x_=N("scrollbarWidth").withDefault("10px"),w_=N("scrollbarHeight").withDefault("10px"),k_=N("scrollbar-slider-background","--vscode-scrollbarSlider-background").withDefault("#79797966"),C_=N("scrollbar-slider-hover-background","--vscode-scrollbarSlider-hoverBackground").withDefault("#646464b3"),S_=N("scrollbar-slider-active-background","--vscode-scrollbarSlider-activeBackground").withDefault("#bfbfbf66"),r1=N("badge-background","--vscode-badge-background").withDefault("#4d4d4d"),i1=N("badge-foreground","--vscode-badge-foreground").withDefault("#ffffff"),Sp=N("button-border","--vscode-button-border").withDefault("transparent"),Cv=N("button-icon-background").withDefault("transparent"),$_=N("button-icon-corner-radius").withDefault("5px"),T_=N("button-icon-outline-offset").withDefault(0),Sv=N("button-icon-hover-background","--fake-vscode-token").withDefault("rgba(90, 93, 94, 0.31)"),I_=N("button-icon-padding").withDefault("3px"),Ji=N("button-primary-background","--vscode-button-background").withDefault("#0e639c"),o1=N("button-primary-foreground","--vscode-button-foreground").withDefault("#ffffff"),s1=N("button-primary-hover-background","--vscode-button-hoverBackground").withDefault("#1177bb"),hd=N("button-secondary-background","--vscode-button-secondaryBackground").withDefault("#3a3d41"),E_=N("button-secondary-foreground","--vscode-button-secondaryForeground").withDefault("#ffffff"),R_=N("button-secondary-hover-background","--vscode-button-secondaryHoverBackground").withDefault("#45494e"),P_=N("button-padding-horizontal").withDefault("11px"),O_=N("button-padding-vertical").withDefault("4px"),Bn=N("checkbox-background","--vscode-checkbox-background").withDefault("#3c3c3c"),Ni=N("checkbox-border","--vscode-checkbox-border").withDefault("#3c3c3c"),__=N("checkbox-corner-radius").withDefault(3);N("checkbox-foreground","--vscode-checkbox-foreground").withDefault("#f0f0f0");const Hr=N("list-active-selection-background","--vscode-list-activeSelectionBackground").withDefault("#094771"),Zi=N("list-active-selection-foreground","--vscode-list-activeSelectionForeground").withDefault("#ffffff"),A_=N("list-hover-background","--vscode-list-hoverBackground").withDefault("#2a2d2e"),D_=N("divider-background","--vscode-settings-dropdownListBorder").withDefault("#454545"),Fl=N("dropdown-background","--vscode-dropdown-background").withDefault("#3c3c3c"),$r=N("dropdown-border","--vscode-dropdown-border").withDefault("#3c3c3c");N("dropdown-foreground","--vscode-dropdown-foreground").withDefault("#f0f0f0");const M_=N("dropdown-list-max-height").withDefault("200px"),Qr=N("input-background","--vscode-input-background").withDefault("#3c3c3c"),l1=N("input-foreground","--vscode-input-foreground").withDefault("#cccccc");N("input-placeholder-foreground","--vscode-input-placeholderForeground").withDefault("#cccccc");const $v=N("link-active-foreground","--vscode-textLink-activeForeground").withDefault("#3794ff"),L_=N("link-foreground","--vscode-textLink-foreground").withDefault("#3794ff"),N_=N("progress-background","--vscode-progressBar-background").withDefault("#0e70c0"),F_=N("panel-tab-active-border","--vscode-panelTitle-activeBorder").withDefault("#e7e7e7"),Ci=N("panel-tab-active-foreground","--vscode-panelTitle-activeForeground").withDefault("#e7e7e7"),j_=N("panel-tab-foreground","--vscode-panelTitle-inactiveForeground").withDefault("#e7e7e799");N("panel-view-background","--vscode-panel-background").withDefault("#1e1e1e");N("panel-view-border","--vscode-panel-border").withDefault("#80808059");const z_=N("tag-corner-radius").withDefault("2px"),B_=(e,t)=>Te` + ${ut("inline-block")} :host { box-sizing: border-box; font-family: ${cn}; - font-size: ${e1}; - line-height: ${t1}; + font-size: ${t1}; + line-height: ${n1}; text-align: center; } .control { align-items: center; - background-color: ${n1}; + background-color: ${r1}; border: calc(${te} * 1px) solid ${Sp}; border-radius: 11px; box-sizing: border-box; - color: ${r1}; + color: ${i1}; display: flex; height: calc(${G} * 4px); justify-content: center; @@ -694,15 +694,15 @@ PERFORMANCE OF THIS SOFTWARE. min-height: calc(${G} * 4px + 2px); padding: 3px 6px; } -`;class j_ extends ol{connectedCallback(){super.connectedCallback(),this.circular||(this.circular=!0)}}const l1=j_.compose({baseName:"badge",template:Vx,styles:F_});function z_(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}const B_=Te` - ${dt("inline-flex")} :host { +`;class V_ extends ol{connectedCallback(){super.connectedCallback(),this.circular||(this.circular=!0)}}const a1=V_.compose({baseName:"badge",template:Hx,styles:B_});function H_(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}const U_=Te` + ${ut("inline-flex")} :host { outline: none; font-family: ${cn}; font-size: ${bt}; line-height: ${_t}; - color: ${i1}; - background: ${Ki}; - border-radius: calc(${Yi} * 1px); + color: ${o1}; + background: ${Ji}; + border-radius: calc(${Ki} * 1px); fill: currentColor; cursor: pointer; } @@ -714,7 +714,7 @@ PERFORMANCE OF THIS SOFTWARE. display: inline-flex; justify-content: center; align-items: center; - padding: ${E_} ${I_}; + padding: ${O_} ${P_}; white-space: wrap; outline: none; text-decoration: none; @@ -726,12 +726,12 @@ PERFORMANCE OF THIS SOFTWARE. font-family: inherit; } :host(:hover) { - background: ${o1}; + background: ${s1}; } :host(:active) { - background: ${Ki}; + background: ${Ji}; } - .control:${at} { + .control:${lt} { outline: calc(${te} * 1px) solid ${Ae}; outline-offset: calc(${te} * 2px); } @@ -740,7 +740,7 @@ PERFORMANCE OF THIS SOFTWARE. } :host([disabled]) { opacity: ${pi}; - background: ${Ki}; + background: ${Ji}; cursor: ${Or}; } .content { @@ -757,74 +757,74 @@ PERFORMANCE OF THIS SOFTWARE. .start { margin-inline-end: 8px; } -`,V_=Te` +`,W_=Te` :host([appearance='primary']) { - background: ${Ki}; - color: ${i1}; + background: ${Ji}; + color: ${o1}; } :host([appearance='primary']:hover) { - background: ${o1}; + background: ${s1}; } :host([appearance='primary']:active) .control:active { - background: ${Ki}; + background: ${Ji}; } - :host([appearance='primary']) .control:${at} { + :host([appearance='primary']) .control:${lt} { outline: calc(${te} * 1px) solid ${Ae}; outline-offset: calc(${te} * 2px); } :host([appearance='primary'][disabled]) { - background: ${Ki}; + background: ${Ji}; } -`,H_=Te` +`,G_=Te` :host([appearance='secondary']) { - background: ${fd}; - color: ${$_}; + background: ${hd}; + color: ${E_}; } :host([appearance='secondary']:hover) { - background: ${T_}; + background: ${R_}; } :host([appearance='secondary']:active) .control:active { - background: ${fd}; + background: ${hd}; } - :host([appearance='secondary']) .control:${at} { + :host([appearance='secondary']) .control:${lt} { outline: calc(${te} * 1px) solid ${Ae}; outline-offset: calc(${te} * 2px); } :host([appearance='secondary'][disabled]) { - background: ${fd}; + background: ${hd}; } -`,U_=Te` +`,q_=Te` :host([appearance='icon']) { - background: ${kv}; - border-radius: ${k_}; - color: ${st}; + background: ${Cv}; + border-radius: ${$_}; + color: ${ot}; } :host([appearance='icon']:hover) { - background: ${Cv}; - outline: 1px dotted ${Zx}; + background: ${Sv}; + outline: 1px dotted ${e1}; outline-offset: -1px; } :host([appearance='icon']) .control { - padding: ${S_}; + padding: ${I_}; border: none; } :host([appearance='icon']:active) .control:active { - background: ${Cv}; + background: ${Sv}; } - :host([appearance='icon']) .control:${at} { + :host([appearance='icon']) .control:${lt} { outline: calc(${te} * 1px) solid ${Ae}; - outline-offset: ${C_}; + outline-offset: ${T_}; } :host([appearance='icon'][disabled]) { - background: ${kv}; + background: ${Cv}; } -`,W_=(e,t)=>Te` - ${B_} - ${V_} - ${H_} +`,Q_=(e,t)=>Te` ${U_} -`;class a1 extends wn{connectedCallback(){if(super.connectedCallback(),!this.appearance){const t=this.getAttribute("appearance");this.appearance=t}}attributeChangedCallback(t,n,r){t==="appearance"&&r==="icon"&&(this.getAttribute("aria-label")||(this.ariaLabel="Icon Button")),t==="aria-label"&&(this.ariaLabel=r),t==="disabled"&&(this.disabled=r!==null)}}z_([E],a1.prototype,"appearance",void 0);const c1=a1.compose({baseName:"button",template:h2,styles:W_,shadowOptions:{delegatesFocus:!0}}),G_=(e,t)=>Te` - ${dt("inline-flex")} :host { + ${W_} + ${G_} + ${q_} +`;class c1 extends wn{connectedCallback(){if(super.connectedCallback(),!this.appearance){const t=this.getAttribute("appearance");this.appearance=t}}attributeChangedCallback(t,n,r){t==="appearance"&&r==="icon"&&(this.getAttribute("aria-label")||(this.ariaLabel="Icon Button")),t==="aria-label"&&(this.ariaLabel=r),t==="disabled"&&(this.disabled=r!==null)}}H_([E],c1.prototype,"appearance",void 0);const u1=c1.compose({baseName:"button",template:g2,styles:Q_,shadowOptions:{delegatesFocus:!0}}),X_=(e,t)=>Te` + ${ut("inline-flex")} :host { align-items: center; outline: none; margin: calc(${G} * 1px) 0; @@ -837,7 +837,7 @@ PERFORMANCE OF THIS SOFTWARE. width: calc(${G} * 4px + 2px); height: calc(${G} * 4px + 2px); box-sizing: border-box; - border-radius: calc(${R_} * 1px); + border-radius: calc(${__} * 1px); border: calc(${te} * 1px) solid ${Ni}; background: ${Bn}; outline: none; @@ -845,7 +845,7 @@ PERFORMANCE OF THIS SOFTWARE. } .label { font-family: ${cn}; - color: ${st}; + color: ${ot}; padding-inline-start: calc(${G} * 2px + 2px); margin-inline-end: calc(${G} * 2px + 2px); cursor: pointer; @@ -858,13 +858,13 @@ PERFORMANCE OF THIS SOFTWARE. width: 100%; height: 100%; display: block; - fill: ${st}; + fill: ${ot}; opacity: 0; pointer-events: none; } .indeterminate-indicator { border-radius: 2px; - background: ${st}; + background: ${ot}; position: absolute; top: 50%; left: 50%; @@ -881,7 +881,7 @@ PERFORMANCE OF THIS SOFTWARE. background: ${Bn}; border-color: ${Ae}; } - :host(:${at}) .control { + :host(:${lt}) .control { border: calc(${te} * 1px) solid ${Ae}; } :host(.disabled) .label, @@ -897,7 +897,7 @@ PERFORMANCE OF THIS SOFTWARE. :host(.disabled) { opacity: ${pi}; } -`;class q_ extends iu{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Checkbox")}}const u1=q_.compose({baseName:"checkbox",template:S2,styles:G_,checkedIndicator:` +`;class Y_ extends ou{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Checkbox")}}const d1=Y_.compose({baseName:"checkbox",template:I2,styles:X_,checkedIndicator:` `,indeterminateIndicator:`
- `}),Q_=(e,t)=>Te` + `}),K_=(e,t)=>Te` :host { display: flex; position: relative; flex-direction: column; width: 100%; } -`,X_=(e,t)=>Te` +`,J_=(e,t)=>Te` :host { display: grid; padding: calc((${G} / 4) * 1px) 0; @@ -933,19 +933,19 @@ PERFORMANCE OF THIS SOFTWARE. :host(.header) { } :host(.sticky-header) { - background: ${g_}; + background: ${b_}; position: sticky; top: 0; } :host(:hover) { - background: ${P_}; - outline: 1px dotted ${Zx}; + background: ${A_}; + outline: 1px dotted ${e1}; outline-offset: -1px; } -`,Y_=(e,t)=>Te` +`,Z_=(e,t)=>Te` :host { padding: calc(${G} * 1px) calc(${G} * 3px); - color: ${st}; + color: ${ot}; opacity: 1; box-sizing: border-box; font-family: ${cn}; @@ -960,34 +960,34 @@ PERFORMANCE OF THIS SOFTWARE. :host(.column-header) { font-weight: 600; } - :host(:${at}), + :host(:${lt}), :host(:focus), :host(:active) { background: ${Hr}; border: solid calc(${te} * 1px) ${Ae}; - color: ${Ji}; + color: ${Zi}; outline: none; } - :host(:${at}) ::slotted(*), + :host(:${lt}) ::slotted(*), :host(:focus) ::slotted(*), :host(:active) ::slotted(*) { - color: ${Ji} !important; + color: ${Zi} !important; } -`;class K_ extends ut{connectedCallback(){super.connectedCallback(),this.getAttribute("aria-label")||this.setAttribute("aria-label","Data Grid")}}const d1=K_.compose({baseName:"data-grid",baseClass:ut,template:v2,styles:Q_});class J_ extends ct{}const f1=J_.compose({baseName:"data-grid-row",baseClass:ct,template:k2,styles:X_});class Z_ extends Mr{}const h1=Z_.compose({baseName:"data-grid-cell",baseClass:Mr,template:C2,styles:Y_}),eA=(e,t)=>Te` - ${dt("block")} :host { +`;class eA extends ct{connectedCallback(){super.connectedCallback(),this.getAttribute("aria-label")||this.setAttribute("aria-label","Data Grid")}}const f1=eA.compose({baseName:"data-grid",baseClass:ct,template:x2,styles:K_});class tA extends at{}const h1=tA.compose({baseName:"data-grid-row",baseClass:at,template:$2,styles:J_});class nA extends Mr{}const p1=nA.compose({baseName:"data-grid-cell",baseClass:Mr,template:T2,styles:Z_}),rA=(e,t)=>Te` + ${ut("block")} :host { border: none; - border-top: calc(${te} * 1px) solid ${O_}; + border-top: calc(${te} * 1px) solid ${D_}; box-sizing: content-box; height: 0; margin: calc(${G} * 1px) 0; width: 100%; } -`;class tA extends xp{}const p1=tA.compose({baseName:"divider",template:z2,styles:eA}),nA=(e,t)=>Te` - ${dt("inline-flex")} :host { +`;class iA extends xp{}const m1=iA.compose({baseName:"divider",template:H2,styles:rA}),oA=(e,t)=>Te` + ${ut("inline-flex")} :host { background: ${Fl}; - border-radius: calc(${Yi} * 1px); + border-radius: calc(${Ki} * 1px); box-sizing: border-box; - color: ${st}; + color: ${ot}; contain: contents; font-family: ${cn}; height: calc(${sa} * 1px); @@ -1001,7 +1001,7 @@ PERFORMANCE OF THIS SOFTWARE. align-items: center; box-sizing: border-box; border: calc(${te} * 1px) solid ${$r}; - border-radius: calc(${Yi} * 1px); + border-radius: calc(${Ki} * 1px); cursor: pointer; display: flex; font-family: inherit; @@ -1014,12 +1014,12 @@ PERFORMANCE OF THIS SOFTWARE. .listbox { background: ${Fl}; border: calc(${te} * 1px) solid ${Ae}; - border-radius: calc(${Yi} * 1px); + border-radius: calc(${Ki} * 1px); box-sizing: border-box; display: inline-flex; flex-direction: column; left: 0; - max-height: ${__}; + max-height: ${M_}; padding: 0; overflow-y: auto; position: absolute; @@ -1029,17 +1029,17 @@ PERFORMANCE OF THIS SOFTWARE. .listbox[hidden] { display: none; } - :host(:${at}) .control { + :host(:${lt}) .control { border-color: ${Ae}; } :host(:not([disabled]):hover) { background: ${Fl}; border-color: ${$r}; } - :host(:${at}) ::slotted([aria-selected="true"][role="option"]:not([disabled])) { + :host(:${lt}) ::slotted([aria-selected="true"][role="option"]:not([disabled])) { background: ${Hr}; border: calc(${te} * 1px) solid transparent; - color: ${Ji}; + color: ${Zi}; } :host([disabled]) { cursor: ${Or}; @@ -1051,7 +1051,7 @@ PERFORMANCE OF THIS SOFTWARE. } :host([disabled]:hover) { background: ${Fl}; - color: ${st}; + color: ${ot}; fill: currentcolor; } :host(:not([disabled])) .control:active { @@ -1116,7 +1116,7 @@ PERFORMANCE OF THIS SOFTWARE. ::slotted(option) { flex: 0 0 auto; } -`;class rA extends Nr{}const m1=rA.compose({baseName:"dropdown",template:e_,styles:nA,indicator:` +`;class sA extends Nr{}const g1=sA.compose({baseName:"dropdown",template:r_,styles:oA,indicator:` - `}),iA=(e,t)=>Te` - ${dt("inline-flex")} :host { + `}),lA=(e,t)=>Te` + ${ut("inline-flex")} :host { background: transparent; box-sizing: border-box; - color: ${A_}; + color: ${L_}; cursor: pointer; fill: currentcolor; font-family: ${cn}; @@ -1163,26 +1163,26 @@ PERFORMANCE OF THIS SOFTWARE. border: 0; } :host(:hover) { - color: ${Sv}; + color: ${$v}; } :host(:hover) .content { text-decoration: underline; } :host(:active) { background: transparent; - color: ${Sv}; + color: ${$v}; } - :host(:${at}) .control, + :host(:${lt}) .control, :host(:focus) .control { border: calc(${te} * 1px) solid ${Ae}; } -`;class oA extends xn{}const g1=oA.compose({baseName:"link",template:d2,styles:iA,shadowOptions:{delegatesFocus:!0}}),sA=(e,t)=>Te` - ${dt("inline-flex")} :host { +`;class aA extends xn{}const v1=aA.compose({baseName:"link",template:p2,styles:lA,shadowOptions:{delegatesFocus:!0}}),cA=(e,t)=>Te` + ${ut("inline-flex")} :host { font-family: var(--body-font); border-radius: ${ll}; border: calc(${te} * 1px) solid transparent; box-sizing: border-box; - color: ${st}; + color: ${ot}; cursor: pointer; fill: currentcolor; font-size: ${bt}; @@ -1195,28 +1195,28 @@ PERFORMANCE OF THIS SOFTWARE. user-select: none; white-space: nowrap; } - :host(:${at}) { + :host(:${lt}) { border-color: ${Ae}; background: ${Hr}; - color: ${st}; + color: ${ot}; } :host([aria-selected='true']) { background: ${Hr}; border: calc(${te} * 1px) solid transparent; - color: ${Ji}; + color: ${Zi}; } :host(:active) { background: ${Hr}; - color: ${Ji}; + color: ${Zi}; } :host(:not([aria-selected='true']):hover) { background: ${Hr}; border: calc(${te} * 1px) solid transparent; - color: ${Ji}; + color: ${Zi}; } :host(:not([aria-selected='true']):active) { background: ${Hr}; - color: ${st}; + color: ${ot}; } :host([disabled]) { cursor: ${Or}; @@ -1231,13 +1231,13 @@ PERFORMANCE OF THIS SOFTWARE. overflow: hidden; text-overflow: ellipsis; } -`;let lA=class extends tr{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Option")}};const v1=lA.compose({baseName:"option",template:V2,styles:sA}),aA=(e,t)=>Te` - ${dt("grid")} :host { +`;let uA=class extends tr{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Option")}};const y1=uA.compose({baseName:"option",template:W2,styles:cA}),dA=(e,t)=>Te` + ${ut("grid")} :host { box-sizing: border-box; font-family: ${cn}; font-size: ${bt}; line-height: ${_t}; - color: ${st}; + color: ${ot}; grid-template-columns: auto 1fr auto; grid-template-rows: auto 1fr; overflow-x: auto; @@ -1276,15 +1276,15 @@ PERFORMANCE OF THIS SOFTWARE. grid-column-end: 4; position: relative; } -`,cA=(e,t)=>Te` - ${dt("inline-flex")} :host { +`,fA=(e,t)=>Te` + ${ut("inline-flex")} :host { box-sizing: border-box; font-family: ${cn}; font-size: ${bt}; line-height: ${_t}; height: calc(${G} * 7px); padding: calc(${G} * 1px) 0; - color: ${L_}; + color: ${j_}; fill: currentcolor; border-radius: calc(${ll} * 1px); border: solid calc(${te} * 1px) transparent; @@ -1316,9 +1316,9 @@ PERFORMANCE OF THIS SOFTWARE. color: ${Ci}; fill: currentcolor; } - :host(:${at}) { + :host(:${lt}) { outline: none; - border: solid calc(${te} * 1px) ${M_}; + border: solid calc(${te} * 1px) ${F_}; } :host(:focus) { outline: none; @@ -1326,8 +1326,8 @@ PERFORMANCE OF THIS SOFTWARE. ::slotted(vscode-badge) { margin-inline-start: calc(${G} * 2px); } -`,uA=(e,t)=>Te` - ${dt("flex")} :host { +`,hA=(e,t)=>Te` + ${ut("flex")} :host { color: inherit; background-color: transparent; border: solid calc(${te} * 1px) transparent; @@ -1336,8 +1336,8 @@ PERFORMANCE OF THIS SOFTWARE. line-height: ${_t}; padding: 10px calc((${G} + 2) * 1px); } -`;class dA extends nr{connectedCallback(){super.connectedCallback(),this.orientation&&(this.orientation=Of.horizontal),this.getAttribute("aria-label")||this.setAttribute("aria-label","Panels")}}const y1=dA.compose({baseName:"panels",template:i_,styles:aA});class fA extends Xx{connectedCallback(){super.connectedCallback(),this.disabled&&(this.disabled=!1),this.textContent&&this.setAttribute("aria-label",this.textContent)}}const b1=fA.compose({baseName:"panel-tab",template:r_,styles:cA});class hA extends n_{}const x1=hA.compose({baseName:"panel-view",template:t_,styles:uA}),pA=(e,t)=>Te` - ${dt("flex")} :host { +`;class pA extends nr{connectedCallback(){super.connectedCallback(),this.orientation&&(this.orientation=_f.horizontal),this.getAttribute("aria-label")||this.setAttribute("aria-label","Panels")}}const b1=pA.compose({baseName:"panels",template:l_,styles:dA});class mA extends Yx{connectedCallback(){super.connectedCallback(),this.disabled&&(this.disabled=!1),this.textContent&&this.setAttribute("aria-label",this.textContent)}}const x1=mA.compose({baseName:"panel-tab",template:s_,styles:fA});class gA extends o_{}const w1=gA.compose({baseName:"panel-view",template:i_,styles:hA}),vA=(e,t)=>Te` + ${ut("flex")} :host { align-items: center; outline: none; height: calc(${G} * 7px); @@ -1355,7 +1355,7 @@ PERFORMANCE OF THIS SOFTWARE. } .indeterminate-indicator-1 { fill: none; - stroke: ${D_}; + stroke: ${N_}; stroke-width: calc(${G} / 2 * 1px); stroke-linecap: square; transform-origin: 50% 50%; @@ -1377,7 +1377,7 @@ PERFORMANCE OF THIS SOFTWARE. transform: rotate(1080deg); } } -`;class mA extends Eo{connectedCallback(){super.connectedCallback(),this.paused&&(this.paused=!1),this.setAttribute("aria-label","Loading"),this.setAttribute("aria-live","assertive"),this.setAttribute("role","alert")}attributeChangedCallback(t,n,r){t==="value"&&this.removeAttribute("value")}}const w1=mA.compose({baseName:"progress-ring",template:G2,styles:pA,indeterminateIndicator:` +`;class yA extends Ro{connectedCallback(){super.connectedCallback(),this.paused&&(this.paused=!1),this.setAttribute("aria-label","Loading"),this.setAttribute("aria-live","assertive"),this.setAttribute("role","alert")}attributeChangedCallback(t,n,r){t==="value"&&this.removeAttribute("value")}}const k1=yA.compose({baseName:"progress-ring",template:X2,styles:vA,indeterminateIndicator:` - `}),gA=(e,t)=>Te` - ${dt("flex")} :host { + `}),bA=(e,t)=>Te` + ${ut("flex")} :host { align-items: flex-start; margin: calc(${G} * 1px) 0; flex-direction: column; @@ -1411,12 +1411,12 @@ PERFORMANCE OF THIS SOFTWARE. flex-direction: row; } ::slotted([slot='label']) { - color: ${st}; + color: ${ot}; font-size: ${bt}; margin: calc(${G} * 1px) 0; } -`;class vA extends Lr{connectedCallback(){super.connectedCallback();const t=this.querySelector("label");if(t){const n="radio-group-"+Math.random().toString(16).slice(2);t.setAttribute("id",n),this.setAttribute("aria-labelledby",n)}}}const k1=vA.compose({baseName:"radio-group",template:q2,styles:gA}),yA=(e,t)=>Te` - ${dt("inline-flex")} :host { +`;class xA extends Lr{connectedCallback(){super.connectedCallback();const t=this.querySelector("label");if(t){const n="radio-group-"+Math.random().toString(16).slice(2);t.setAttribute("id",n),this.setAttribute("aria-labelledby",n)}}}const C1=xA.compose({baseName:"radio-group",template:Y2,styles:bA}),wA=(e,t)=>Te` + ${ut("inline-flex")} :host { align-items: center; flex-direction: row; font-size: ${bt}; @@ -1439,7 +1439,7 @@ PERFORMANCE OF THIS SOFTWARE. width: calc(${G} * 4px); } .label { - color: ${st}; + color: ${ot}; cursor: pointer; font-family: ${cn}; margin-inline-end: calc(${G} * 2px + 2px); @@ -1454,7 +1454,7 @@ PERFORMANCE OF THIS SOFTWARE. flex-shrink: 0; } .checked-indicator { - background: ${st}; + background: ${ot}; border-radius: 999px; display: inline-block; inset: calc(${G} * 1px); @@ -1470,7 +1470,7 @@ PERFORMANCE OF THIS SOFTWARE. background: ${Bn}; border-color: ${Ae}; } - :host(:${at}) .control { + :host(:${lt}) .control { border: calc(${te} * 1px) solid ${Ae}; } :host([aria-checked='true']) .control { @@ -1485,7 +1485,7 @@ PERFORMANCE OF THIS SOFTWARE. background: ${Bn}; border: calc(${te} * 1px) solid ${Ae}; } - :host([aria-checked="true"]:${at}:not([disabled])) .control { + :host([aria-checked="true"]:${lt}:not([disabled])) .control { border: calc(${te} * 1px) solid ${Ae}; } :host([disabled]) .label, @@ -1500,25 +1500,25 @@ PERFORMANCE OF THIS SOFTWARE. :host([disabled]) { opacity: ${pi}; } -`;class bA extends su{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Radio")}}const C1=bA.compose({baseName:"radio",template:Q2,styles:yA,checkedIndicator:` +`;class kA extends lu{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Radio")}}const S1=kA.compose({baseName:"radio",template:K2,styles:wA,checkedIndicator:`
- `}),xA=(e,t)=>Te` - ${dt("inline-block")} :host { + `}),CA=(e,t)=>Te` + ${ut("inline-block")} :host { box-sizing: border-box; font-family: ${cn}; - font-size: ${e1}; - line-height: ${t1}; + font-size: ${t1}; + line-height: ${n1}; } .control { - background-color: ${n1}; + background-color: ${r1}; border: calc(${te} * 1px) solid ${Sp}; - border-radius: ${N_}; - color: ${r1}; + border-radius: ${z_}; + color: ${i1}; padding: calc(${G} * 0.5px) calc(${G} * 1px); text-transform: uppercase; } -`;class wA extends ol{connectedCallback(){super.connectedCallback(),this.circular&&(this.circular=!1)}}const S1=wA.compose({baseName:"tag",template:Vx,styles:xA}),kA=(e,t)=>Te` - ${dt("inline-block")} :host { +`;class SA extends ol{connectedCallback(){super.connectedCallback(),this.circular&&(this.circular=!1)}}const $1=SA.compose({baseName:"tag",template:Hx,styles:CA}),$A=(e,t)=>Te` + ${ut("inline-block")} :host { font-family: ${cn}; outline: none; user-select: none; @@ -1526,9 +1526,9 @@ PERFORMANCE OF THIS SOFTWARE. .control { box-sizing: border-box; position: relative; - color: ${s1}; + color: ${l1}; background: ${Qr}; - border-radius: calc(${Yi} * 1px); + border-radius: calc(${Ki} * 1px); border: calc(${te} * 1px) solid ${$r}; font: inherit; font-size: ${bt}; @@ -1547,26 +1547,26 @@ PERFORMANCE OF THIS SOFTWARE. border-color: ${Ae}; } .control:hover, - .control:${at}, + .control:${lt}, .control:disabled, .control:active { outline: none; } .control::-webkit-scrollbar { - width: ${v_}; - height: ${y_}; + width: ${x_}; + height: ${w_}; } .control::-webkit-scrollbar-corner { background: ${Qr}; } .control::-webkit-scrollbar-thumb { - background: ${b_}; + background: ${k_}; } .control::-webkit-scrollbar-thumb:hover { - background: ${x_}; + background: ${C_}; } .control::-webkit-scrollbar-thumb:active { - background: ${w_}; + background: ${S_}; } :host(:focus-within:not([disabled])) .control { border-color: ${Ae}; @@ -1582,7 +1582,7 @@ PERFORMANCE OF THIS SOFTWARE. } .label { display: block; - color: ${st}; + color: ${ot}; cursor: pointer; font-size: ${bt}; line-height: ${_t}; @@ -1604,8 +1604,8 @@ PERFORMANCE OF THIS SOFTWARE. :host([disabled]) .control { border-color: ${$r}; } -`;class CA extends kt{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text area")}}const $1=CA.compose({baseName:"text-area",template:l_,styles:kA,shadowOptions:{delegatesFocus:!0}}),SA=(e,t)=>Te` - ${dt("inline-block")} :host { +`;class TA extends kt{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text area")}}const T1=TA.compose({baseName:"text-area",template:u_,styles:$A,shadowOptions:{delegatesFocus:!0}}),IA=(e,t)=>Te` + ${ut("inline-block")} :host { font-family: ${cn}; outline: none; user-select: none; @@ -1615,9 +1615,9 @@ PERFORMANCE OF THIS SOFTWARE. position: relative; display: flex; flex-direction: row; - color: ${s1}; + color: ${l1}; background: ${Qr}; - border-radius: calc(${Yi} * 1px); + border-radius: calc(${Ki} * 1px); border: calc(${te} * 1px) solid ${$r}; height: calc(${sa} * 1px); min-width: ${Cp}; @@ -1638,14 +1638,14 @@ PERFORMANCE OF THIS SOFTWARE. line-height: ${_t}; } .control:hover, - .control:${at}, + .control:${lt}, .control:disabled, .control:active { outline: none; } .label { display: block; - color: ${st}; + color: ${ot}; cursor: pointer; font-size: ${bt}; line-height: ${_t}; @@ -1695,8 +1695,8 @@ PERFORMANCE OF THIS SOFTWARE. :host([disabled]) .control { border-color: ${$r}; } -`;class $A extends Gt{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text field")}}const T1=$A.compose({baseName:"text-field",template:a_,styles:SA,shadowOptions:{delegatesFocus:!0}}),TA={vsCodeBadge:l1,vsCodeButton:c1,vsCodeCheckbox:u1,vsCodeDataGrid:d1,vsCodeDataGridCell:h1,vsCodeDataGridRow:f1,vsCodeDivider:p1,vsCodeDropdown:m1,vsCodeLink:g1,vsCodeOption:v1,vsCodePanels:y1,vsCodePanelTab:b1,vsCodePanelView:x1,vsCodeProgressRing:w1,vsCodeRadioGroup:k1,vsCodeRadio:C1,vsCodeTag:S1,vsCodeTextArea:$1,vsCodeTextField:T1,register(e,...t){if(e)for(const n in this)n!=="register"&&this[n]().register(e,...t)}},{wrap:Be}=p_(St,Jx());Be(l1(),{name:"vscode-badge"});Be(c1(),{name:"vscode-button"});Be(u1(),{name:"vscode-checkbox",events:{onChange:"change"}});Be(d1(),{name:"vscode-data-grid"});Be(h1(),{name:"vscode-data-grid-cell"});Be(f1(),{name:"vscode-data-grid-row"});Be(p1(),{name:"vscode-divider"});const IA=Be(m1(),{name:"vscode-dropdown",events:{onChange:"change"}});Be(g1(),{name:"vscode-link"});const EA=Be(v1(),{name:"vscode-option"});Be(y1(),{name:"vscode-panels",events:{onChange:"change"}});Be(b1(),{name:"vscode-panel-tab"});Be(x1(),{name:"vscode-panel-view"});Be(w1(),{name:"vscode-progress-ring"});Be(C1(),{name:"vscode-radio",events:{onChange:"change"}});Be(k1(),{name:"vscode-radio-group",events:{onChange:"change"}});Be(S1(),{name:"vscode-tag"});Be($1(),{name:"vscode-text-area",events:{onChange:"change",onInput:"input"}});Be(T1(),{name:"vscode-text-field",events:{onChange:"change",onInput:"input"}});function RA(e){return Ge("MuiRichTreeView",e)}ze("MuiRichTreeView",["root"]);const PA=(e,t)=>{const n=x.useRef({}),[r,i]=x.useState(()=>{const s={};return e.forEach(l=>{l.models&&Object.entries(l.models).forEach(([a,c])=>{n.current[a]={isControlled:t[a]!==void 0,getDefaultValue:c.getDefaultValue},s[a]=c.getDefaultValue(t)})}),s});return Object.fromEntries(Object.entries(n.current).map(([s,l])=>{const a=t[s]??r[s];return[s,{value:a,setControlledValue:c=>{l.isControlled||i(d=>I({},d,{[s]:c}))}}]}))};class OA{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let i=this.events[t];i||(i={highPriority:new Map,regular:new Map},this.events[t]=i),r.isFirst?i.highPriority.set(n,!0):i.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const i=Array.from(r.highPriority.keys()),o=Array.from(r.regular.keys());for(let s=i.length-1;s>=0;s-=1){const l=i[s];r.highPriority.has(l)&&l.apply(this,n)}for(let s=0;se.isPropagationStopped!==void 0,I1=()=>{const[e]=x.useState(()=>new OA),t=x.useCallback((...r)=>{const[i,o,s={}]=r;s.defaultMuiPrevented=!1,!(_A(s)&&s.isPropagationStopped())&&e.emit(i,o,s)},[e]),n=x.useCallback((r,i)=>(e.on(r,i),()=>{e.removeListener(r,i)}),[e]);return{instance:{$$publishEvent:t,$$subscribeEvent:n}}};I1.params={};const AA=[I1];function DA(e){const t=x.useRef({});return e?(e.current==null&&(e.current={}),e.current):t.current}const MA=e=>{const t=[...AA,...e.plugins],n=t.reduce((p,h)=>h.getDefaultizedParams?h.getDefaultizedParams(p):p,e),r=PA(t,n),o=x.useRef({}).current,s=DA(e.apiRef),l=x.useRef(null),a=Ot(l,e.rootRef),[c,d]=x.useState(()=>{const p={};return t.forEach(h=>{h.getInitialState&&Object.assign(p,h.getInitialState(n))}),p}),u=[],f={publicAPI:s,instance:o,rootRef:l},v=p=>{const h=p({instance:o,params:n,slots:n.slots,slotProps:n.slotProps,state:c,setState:d,rootRef:l,models:r});h.getRootProps&&u.push(h.getRootProps),h.publicAPI&&Object.assign(s,h.publicAPI),h.instance&&Object.assign(o,h.instance),h.contextValue&&Object.assign(f,h.contextValue)};t.forEach(v),f.runItemPlugins=p=>{let h=null,y=null;return t.forEach(w=>{if(!w.itemPlugin)return;const C=w.itemPlugin({props:p,rootRef:h,contentRef:y});C!=null&&C.rootRef&&(h=C.rootRef),C!=null&&C.contentRef&&(y=C.contentRef)}),{contentRef:y,rootRef:h}};const g=t.map(p=>p.wrapItem).filter(p=>!!p);f.wrapItem=({itemId:p,children:h})=>{let y=h;return g.forEach(w=>{y=w({itemId:p,children:y})}),y};const m=t.map(p=>p.wrapRoot).filter(p=>!!p);return f.wrapRoot=({children:p})=>{let h=p;return m.forEach(y=>{h=y({children:h})}),h},{getRootProps:(p={})=>{const h=I({role:"tree"},p,{ref:a});return u.forEach(y=>{Object.assign(h,y(p))}),h},rootRef:a,contextValue:f,instance:o}},E1=x.createContext(null);function LA(e){const{value:t,children:n}=e;return k.jsx(E1.Provider,{value:t,children:t.wrapRoot({children:n})})}const R1=({params:e})=>{const t=Eb(e.id),n=x.useCallback((r,i)=>i??`${t}-${r}`,[t]);return{getRootProps:()=>({id:t}),instance:{getTreeItemIdAttribute:n}}};R1.params={id:!0};const NA=(e,t,n)=>{e.$$publishEvent(t,n)},hs="__TREE_VIEW_ROOT_PARENT_ID__",FA=e=>{const t={};return e.forEach((n,r)=>{t[n]=r}),t},P1=({items:e,isItemDisabled:t,getItemLabel:n,getItemId:r})=>{const i={},o={},s={[hs]:[]},l=(c,d)=>{var g,m;const u=r?r(c):c.id;if(u==null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(c)].join(` +`;class EA extends Gt{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text field")}}const I1=EA.compose({baseName:"text-field",template:d_,styles:IA,shadowOptions:{delegatesFocus:!0}}),RA={vsCodeBadge:a1,vsCodeButton:u1,vsCodeCheckbox:d1,vsCodeDataGrid:f1,vsCodeDataGridCell:p1,vsCodeDataGridRow:h1,vsCodeDivider:m1,vsCodeDropdown:g1,vsCodeLink:v1,vsCodeOption:y1,vsCodePanels:b1,vsCodePanelTab:x1,vsCodePanelView:w1,vsCodeProgressRing:k1,vsCodeRadioGroup:C1,vsCodeRadio:S1,vsCodeTag:$1,vsCodeTextArea:T1,vsCodeTextField:I1,register(e,...t){if(e)for(const n in this)n!=="register"&&this[n]().register(e,...t)}},{wrap:Be}=v_(St,Zx());Be(a1(),{name:"vscode-badge"});Be(u1(),{name:"vscode-button"});Be(d1(),{name:"vscode-checkbox",events:{onChange:"change"}});Be(f1(),{name:"vscode-data-grid"});Be(p1(),{name:"vscode-data-grid-cell"});Be(h1(),{name:"vscode-data-grid-row"});Be(m1(),{name:"vscode-divider"});const PA=Be(g1(),{name:"vscode-dropdown",events:{onChange:"change"}});Be(v1(),{name:"vscode-link"});const OA=Be(y1(),{name:"vscode-option"});Be(b1(),{name:"vscode-panels",events:{onChange:"change"}});Be(x1(),{name:"vscode-panel-tab"});Be(w1(),{name:"vscode-panel-view"});Be(k1(),{name:"vscode-progress-ring"});Be(S1(),{name:"vscode-radio",events:{onChange:"change"}});Be(C1(),{name:"vscode-radio-group",events:{onChange:"change"}});Be($1(),{name:"vscode-tag"});Be(T1(),{name:"vscode-text-area",events:{onChange:"change",onInput:"input"}});Be(I1(),{name:"vscode-text-field",events:{onChange:"change",onInput:"input"}});function _A(e){return Ge("MuiRichTreeView",e)}ze("MuiRichTreeView",["root"]);const AA=(e,t)=>{const n=x.useRef({}),[r,i]=x.useState(()=>{const s={};return e.forEach(l=>{l.models&&Object.entries(l.models).forEach(([a,c])=>{n.current[a]={isControlled:t[a]!==void 0,getDefaultValue:c.getDefaultValue},s[a]=c.getDefaultValue(t)})}),s});return Object.fromEntries(Object.entries(n.current).map(([s,l])=>{const a=t[s]??r[s];return[s,{value:a,setControlledValue:c=>{l.isControlled||i(d=>T({},d,{[s]:c}))}}]}))};class DA{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let i=this.events[t];i||(i={highPriority:new Map,regular:new Map},this.events[t]=i),r.isFirst?i.highPriority.set(n,!0):i.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const i=Array.from(r.highPriority.keys()),o=Array.from(r.regular.keys());for(let s=i.length-1;s>=0;s-=1){const l=i[s];r.highPriority.has(l)&&l.apply(this,n)}for(let s=0;se.isPropagationStopped!==void 0,E1=()=>{const[e]=x.useState(()=>new DA),t=x.useCallback((...r)=>{const[i,o,s={}]=r;s.defaultMuiPrevented=!1,!(MA(s)&&s.isPropagationStopped())&&e.emit(i,o,s)},[e]),n=x.useCallback((r,i)=>(e.on(r,i),()=>{e.removeListener(r,i)}),[e]);return{instance:{$$publishEvent:t,$$subscribeEvent:n}}};E1.params={};const LA=[E1];function NA(e){const t=x.useRef({});return e?(e.current==null&&(e.current={}),e.current):t.current}const FA=e=>{const t=[...LA,...e.plugins],n=t.reduce((p,h)=>h.getDefaultizedParams?h.getDefaultizedParams(p):p,e),r=AA(t,n),o=x.useRef({}).current,s=NA(e.apiRef),l=x.useRef(null),a=Ot(l,e.rootRef),[c,d]=x.useState(()=>{const p={};return t.forEach(h=>{h.getInitialState&&Object.assign(p,h.getInitialState(n))}),p}),u=[],f={publicAPI:s,instance:o,rootRef:l},v=p=>{const h=p({instance:o,params:n,slots:n.slots,slotProps:n.slotProps,state:c,setState:d,rootRef:l,models:r});h.getRootProps&&u.push(h.getRootProps),h.publicAPI&&Object.assign(s,h.publicAPI),h.instance&&Object.assign(o,h.instance),h.contextValue&&Object.assign(f,h.contextValue)};t.forEach(v),f.runItemPlugins=p=>{let h=null,y=null;return t.forEach(w=>{if(!w.itemPlugin)return;const C=w.itemPlugin({props:p,rootRef:h,contentRef:y});C!=null&&C.rootRef&&(h=C.rootRef),C!=null&&C.contentRef&&(y=C.contentRef)}),{contentRef:y,rootRef:h}};const g=t.map(p=>p.wrapItem).filter(p=>!!p);f.wrapItem=({itemId:p,children:h})=>{let y=h;return g.forEach(w=>{y=w({itemId:p,children:y})}),y};const m=t.map(p=>p.wrapRoot).filter(p=>!!p);return f.wrapRoot=({children:p})=>{let h=p;return m.forEach(y=>{h=y({children:h})}),h},{getRootProps:(p={})=>{const h=T({role:"tree"},p,{ref:a});return u.forEach(y=>{Object.assign(h,y(p))}),h},rootRef:a,contextValue:f,instance:o}},R1=x.createContext(null);function jA(e){const{value:t,children:n}=e;return k.jsx(R1.Provider,{value:t,children:t.wrapRoot({children:n})})}const P1=({params:e})=>{const t=Rb(e.id),n=x.useCallback((r,i)=>i??`${t}-${r}`,[t]);return{getRootProps:()=>({id:t}),instance:{getTreeItemIdAttribute:n}}};P1.params={id:!0};const zA=(e,t,n)=>{e.$$publishEvent(t,n)},hs="__TREE_VIEW_ROOT_PARENT_ID__",BA=e=>{const t={};return e.forEach((n,r)=>{t[n]=r}),t},O1=({items:e,isItemDisabled:t,getItemLabel:n,getItemId:r})=>{const i={},o={},s={[hs]:[]},l=(c,d)=>{var g,m;const u=r?r(c):c.id;if(u==null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(c)].join(` `));if(i[u]!=null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Two items were provided with the same id in the \`items\` prop: "${u}"`].join(` `));const f=n?n(c):c.label;if(f==null)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.","An item was provided without label in the `items` prop:",JSON.stringify(c)].join(` -`));i[u]={id:u,label:f,parentId:d,idAttribute:void 0,expandable:!!((g=c.children)!=null&&g.length),disabled:t?t(c):!1},o[u]=c,s[u]=[];const v=d??hs;s[v]||(s[v]=[]),s[v].push(u),(m=c.children)==null||m.forEach(b=>l(b,u))};e.forEach(c=>l(c,null));const a={};return Object.keys(s).forEach(c=>{a[c]=FA(s[c])}),{itemMetaMap:i,itemMap:o,itemOrderedChildrenIds:s,itemChildrenIndexes:a}},lu=({instance:e,params:t,state:n,setState:r})=>{const i=x.useCallback(g=>n.items.itemMetaMap[g],[n.items.itemMetaMap]),o=x.useCallback(g=>n.items.itemMap[g],[n.items.itemMap]),s=x.useCallback(g=>{if(g==null)return!1;let m=e.getItemMeta(g);if(!m)return!1;if(m.disabled)return!0;for(;m.parentId!=null;)if(m=e.getItemMeta(m.parentId),m.disabled)return!0;return!1},[e]),l=x.useCallback(g=>{const m=e.getItemMeta(g).parentId??hs;return n.items.itemChildrenIndexes[m][g]},[e,n.items.itemChildrenIndexes]),a=x.useCallback(g=>n.items.itemOrderedChildrenIds[g??hs]??[],[n.items.itemOrderedChildrenIds]),c=g=>t.disabledItemsFocusable?!0:!e.isItemDisabled(g),d=x.useRef(!1),u=x.useCallback(()=>{d.current=!0},[]),f=x.useCallback(()=>d.current,[]);return x.useEffect(()=>{e.areItemUpdatesPrevented()||r(g=>{const m=P1({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel});return Object.values(g.items.itemMetaMap).forEach(b=>{m.itemMetaMap[b.id]||NA(e,"removeItem",{id:b.id})}),I({},g,{items:m})})},[e,r,t.items,t.isItemDisabled,t.getItemId,t.getItemLabel]),{publicAPI:{getItem:o},instance:{getItemMeta:i,getItem:o,getItemsToRender:()=>{const g=m=>{const b=n.items.itemMetaMap[m];return{label:b.label,itemId:b.id,id:b.idAttribute,children:n.items.itemOrderedChildrenIds[m].map(g)}};return n.items.itemOrderedChildrenIds[hs].map(g)},getItemIndex:l,getItemOrderedChildrenIds:a,isItemDisabled:s,isItemNavigable:c,preventItemUpdates:u,areItemUpdatesPrevented:f},contextValue:{disabledItemsFocusable:t.disabledItemsFocusable}}};lu.getInitialState=e=>({items:P1({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})});lu.getDefaultizedParams=e=>I({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1});lu.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0};const au=({instance:e,params:t,models:n})=>{const r=x.useMemo(()=>{const d=new Map;return n.expandedItems.value.forEach(u=>{d.set(u,!0)}),d},[n.expandedItems.value]),i=(d,u)=>{var f;(f=t.onExpandedItemsChange)==null||f.call(t,d,u),n.expandedItems.setControlledValue(u)},o=x.useCallback(d=>r.has(d),[r]),s=x.useCallback(d=>{var u;return!!((u=e.getItemMeta(d))!=null&&u.expandable)},[e]),l=Ft((d,u)=>{const f=e.isItemExpanded(u);e.setItemExpansion(d,u,!f)}),a=Ft((d,u,f)=>{if(e.isItemExpanded(u)===f)return;let g;f?g=[u].concat(n.expandedItems.value):g=n.expandedItems.value.filter(m=>m!==u),t.onItemExpansionToggle&&t.onItemExpansionToggle(d,u,f),i(d,g)});return{publicAPI:{setItemExpansion:a},instance:{isItemExpanded:o,isItemExpandable:s,setItemExpansion:a,toggleItemExpansion:l,expandAllSiblings:(d,u)=>{const f=e.getItemMeta(u),g=e.getItemOrderedChildrenIds(f.parentId).filter(b=>e.isItemExpandable(b)&&!e.isItemExpanded(b)),m=n.expandedItems.value.concat(g);g.length>0&&(t.onItemExpansionToggle&&g.forEach(b=>{t.onItemExpansionToggle(d,b,!0)}),i(d,m))}}}};au.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const jA=[];au.getDefaultizedParams=e=>I({},e,{defaultExpandedItems:e.defaultExpandedItems??jA});au.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0};const O1=(e,t)=>{let n=t.length-1;for(;n>=0&&!e.isItemNavigable(t[n]);)n-=1;if(n!==-1)return t[n]},zA=(e,t)=>{const n=e.getItemMeta(t),r=e.getItemOrderedChildrenIds(n.parentId),i=e.getItemIndex(t);if(i===0)return n.parentId;let o=r[i-1],s=O1(e,e.getItemOrderedChildrenIds(o));for(;e.isItemExpanded(o)&&s!=null;)o=s,s=e.getItemOrderedChildrenIds(o).find(e.isItemNavigable);return o},la=(e,t)=>{if(e.isItemExpanded(t)){const r=e.getItemOrderedChildrenIds(t).find(e.isItemNavigable);if(r!=null)return r}let n=e.getItemMeta(t);for(;n!=null;){const r=e.getItemOrderedChildrenIds(n.parentId),i=e.getItemIndex(n.id);if(i{let t=null;for(;t==null||e.isItemExpanded(t);){const n=e.getItemOrderedChildrenIds(t),r=O1(e,n);if(r==null)return t;t=r}return t},ho=e=>e.getItemOrderedChildrenIds(null).find(e.isItemNavigable),A1=(e,t,n)=>{if(t===n)return[t,n];const r=e.getItemMeta(t),i=e.getItemMeta(n);if(r.parentId===i.id||i.parentId===r.id)return i.parentId===r.id?[r.id,i.id]:[i.id,r.id];const o=[r.id],s=[i.id];let l=r.parentId,a=i.parentId,c=s.indexOf(l)!==-1,d=o.indexOf(a)!==-1,u=!0,f=!0;for(;!d&&!c;)u&&(o.push(l),c=s.indexOf(l)!==-1,u=l!==null,!c&&u&&(l=e.getItemMeta(l).parentId)),f&&!c&&(s.push(a),d=o.indexOf(a)!==-1,f=a!==null,!d&&f&&(a=e.getItemMeta(a).parentId));const v=c?l:a,g=e.getItemOrderedChildrenIds(v),m=o[o.indexOf(v)-1],b=s[s.indexOf(v)-1];return g.indexOf(m){const r=a=>{if(e.isItemExpandable(a)&&e.isItemExpanded(a))return e.getItemOrderedChildrenIds(a)[0];let c=e.getItemMeta(a);for(;c!=null;){const d=e.getItemOrderedChildrenIds(c.parentId),u=e.getItemIndex(c.id);if(u{let t=ho(e);const n=[];for(;t!=null;)n.push(t),t=la(e,t);return n},hd=e=>Array.isArray(e)?e:e!=null?[e]:[],pd=e=>{const t={};return e.forEach(n=>{t[n]=!0}),t},cu=({instance:e,params:t,models:n})=>{const r=x.useRef(null),i=x.useRef({}),o=x.useMemo(()=>{const m=new Map;return Array.isArray(n.selectedItems.value)?n.selectedItems.value.forEach(b=>{m.set(b,!0)}):n.selectedItems.value!=null&&m.set(n.selectedItems.value,!0),m},[n.selectedItems.value]),s=(m,b)=>{if(t.onItemSelectionToggle)if(t.multiSelect){const p=b.filter(y=>!e.isItemSelected(y)),h=n.selectedItems.value.filter(y=>!b.includes(y));p.forEach(y=>{t.onItemSelectionToggle(m,y,!0)}),h.forEach(y=>{t.onItemSelectionToggle(m,y,!1)})}else b!==n.selectedItems.value&&(n.selectedItems.value!=null&&t.onItemSelectionToggle(m,n.selectedItems.value,!1),b!=null&&t.onItemSelectionToggle(m,b,!0));t.onSelectedItemsChange&&t.onSelectedItemsChange(m,b),n.selectedItems.setControlledValue(b)},l=m=>o.has(m),a=(m,b,p=!1)=>{if(t.disableSelection)return;let h;if(p){const y=hd(n.selectedItems.value);e.isItemSelected(b)?h=y.filter(w=>w!==b):h=[b].concat(y)}else h=t.multiSelect?[b]:b;s(m,h),r.current=b,i.current={}},c=(m,[b,p])=>{if(t.disableSelection||!t.multiSelect)return;let h=hd(n.selectedItems.value).slice();Object.keys(i.current).length>0&&(h=h.filter($=>!i.current[$]));const y=pd(h),w=BA(e,b,p),C=w.filter($=>!y[$]);h=h.concat(C),s(m,h),i.current=pd(w)};return{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),instance:{isItemSelected:l,selectItem:a,selectAllNavigableItems:m=>{if(t.disableSelection||!t.multiSelect)return;const b=VA(e);s(m,b),i.current=pd(b)},expandSelectionRange:(m,b)=>{if(r.current!=null){const[p,h]=A1(e,b,r.current);c(m,[p,h])}},selectRangeFromStartToItem:(m,b)=>{c(m,[ho(e),b])},selectRangeFromItemToEnd:(m,b)=>{c(m,[b,_1(e)])},selectItemFromArrowNavigation:(m,b,p)=>{if(t.disableSelection||!t.multiSelect)return;let h=hd(n.selectedItems.value).slice();Object.keys(i.current).length===0?(h.push(p),i.current={[b]:!0,[p]:!0}):(i.current[b]||(i.current={}),i.current[p]?(h=h.filter(y=>y!==b),delete i.current[b]):(h.push(p),i.current[p]=!0)),s(m,h)}},contextValue:{selection:{multiSelect:t.multiSelect}}}};cu.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const HA=[];cu.getDefaultizedParams=e=>I({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?HA:null)});cu.params={disableSelection:!0,multiSelect:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};const $v=1e3;class UA{constructor(t=$v){this.timeouts=new Map,this.cleanupTimeout=$v,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const i=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,i)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class WA{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}class GA{}function qA(e){let t=0;return function(r,i,o){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new WA:new UA);const[s]=x.useState(new GA),l=x.useRef(null),a=x.useRef();a.current=o;const c=x.useRef(null);if(!l.current&&a.current){const d=(u,f)=>{var v;f.defaultMuiPrevented||(v=a.current)==null||v.call(a,u,f)};l.current=r.$$subscribeEvent(i,d),t+=1,c.current={cleanupToken:t},e.registry.register(s,()=>{var u;(u=l.current)==null||u.call(l),l.current=null,c.current=null},c.current)}else!a.current&&l.current&&(l.current(),l.current=null,c.current&&(e.registry.unregister(c.current),c.current=null));x.useEffect(()=>{if(!l.current&&a.current){const d=(u,f)=>{var v;f.defaultMuiPrevented||(v=a.current)==null||v.call(a,u,f)};l.current=r.$$subscribeEvent(i,d)}return c.current&&e.registry&&(e.registry.unregister(c.current),c.current=null),()=>{var d;(d=l.current)==null||d.call(l),l.current=null}},[r,i])}}const QA={registry:null},XA=qA(QA),D1=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?D1(t.shadowRoot):t:null},YA=(e,t)=>{const n=i=>{const o=e.getItemMeta(i);return o&&(o.parentId==null||e.isItemExpanded(o.parentId))};let r;return Array.isArray(t)?r=t.find(n):t!=null&&n(t)&&(r=t),r==null&&(r=ho(e)),r},$p=({instance:e,params:t,state:n,setState:r,models:i,rootRef:o})=>{const s=YA(e,i.selectedItems.value),l=Ft(p=>{const h=typeof p=="function"?p(n.focusedItemId):p;n.focusedItemId!==h&&r(y=>I({},y,{focusedItemId:h}))}),a=x.useCallback(()=>!!o.current&&o.current.contains(D1(Gi(o.current))),[o]),c=x.useCallback(p=>n.focusedItemId===p&&a(),[n.focusedItemId,a]),d=p=>{const h=e.getItemMeta(p);return h&&(h.parentId==null||e.isItemExpanded(h.parentId))},u=(p,h)=>{const y=e.getItemMeta(h),w=document.getElementById(e.getTreeItemIdAttribute(h,y.idAttribute));w&&w.focus(),l(h),t.onItemFocus&&t.onItemFocus(p,h)},f=Ft((p,h)=>{d(h)&&u(p,h)}),v=Ft(p=>{let h;Array.isArray(i.selectedItems.value)?h=i.selectedItems.value.find(d):i.selectedItems.value!=null&&d(i.selectedItems.value)&&(h=i.selectedItems.value),h==null&&(h=ho(e)),u(p,h)}),g=Ft(()=>{if(n.focusedItemId==null)return;const p=e.getItemMeta(n.focusedItemId);if(p){const h=document.getElementById(e.getTreeItemIdAttribute(n.focusedItemId,p.idAttribute));h&&h.blur()}l(null)}),m=p=>p===s;XA(e,"removeItem",({id:p})=>{n.focusedItemId===p&&e.focusDefaultItem(null)});const b=p=>h=>{var y;(y=p.onFocus)==null||y.call(p,h),!h.defaultMuiPrevented&&h.target===h.currentTarget&&e.focusDefaultItem(h)};return{getRootProps:p=>({onFocus:b(p)}),publicAPI:{focusItem:f},instance:{isItemFocused:c,canItemBeTabbed:m,focusItem:f,focusDefaultItem:v,removeFocusedItem:g}}};$p.getInitialState=()=>({focusedItemId:null});$p.params={onItemFocus:!0};function KA(e){return!!e&&e.length===1&&!!e.match(/\S/)}const M1=({instance:e,params:t,state:n})=>{const i=Gc().direction==="rtl",o=x.useRef({}),s=Ft(u=>{o.current=u(o.current)});x.useEffect(()=>{if(e.areItemUpdatesPrevented())return;const u={},f=v=>{u[v.id]=v.label.substring(0,1).toLowerCase()};Object.values(n.items.itemMetaMap).forEach(f),o.current=u},[n.items.itemMetaMap,t.getItemId,e]);const l=(u,f)=>{const v=f.toLowerCase(),g=h=>{const y=la(e,h);return y===null?ho(e):y};let m=null,b=g(u);const p={};for(;m==null&&!p[b];)o.current[b]===v?m=b:(p[b]=!0,b=g(b));return m},a=u=>!t.disableSelection&&!e.isItemDisabled(u),c=u=>!e.isItemDisabled(u)&&e.isItemExpandable(u);return{instance:{updateFirstCharMap:s,handleItemKeyDown:(u,f)=>{if(u.defaultMuiPrevented||u.altKey||u.currentTarget!==u.target)return;const v=u.ctrlKey||u.metaKey,g=u.key;switch(!0){case(g===" "&&a(f)):{u.preventDefault(),t.multiSelect&&u.shiftKey?e.expandSelectionRange(u,f):t.multiSelect?e.selectItem(u,f,!0):e.selectItem(u,f);break}case g==="Enter":{c(f)?(e.toggleItemExpansion(u,f),u.preventDefault()):a(f)&&(t.multiSelect?(u.preventDefault(),e.selectItem(u,f,!0)):e.isItemSelected(f)||(e.selectItem(u,f),u.preventDefault()));break}case g==="ArrowDown":{const m=la(e,f);m&&(u.preventDefault(),e.focusItem(u,m),t.multiSelect&&u.shiftKey&&a(m)&&e.selectItemFromArrowNavigation(u,f,m));break}case g==="ArrowUp":{const m=zA(e,f);m&&(u.preventDefault(),e.focusItem(u,m),t.multiSelect&&u.shiftKey&&a(m)&&e.selectItemFromArrowNavigation(u,f,m));break}case(g==="ArrowRight"&&!i||g==="ArrowLeft"&&i):{if(e.isItemExpanded(f)){const m=la(e,f);m&&(e.focusItem(u,m),u.preventDefault())}else c(f)&&(e.toggleItemExpansion(u,f),u.preventDefault());break}case(g==="ArrowLeft"&&!i||g==="ArrowRight"&&i):{if(c(f)&&e.isItemExpanded(f))e.toggleItemExpansion(u,f),u.preventDefault();else{const m=e.getItemMeta(f).parentId;m&&(e.focusItem(u,m),u.preventDefault())}break}case g==="Home":{a(f)&&t.multiSelect&&v&&u.shiftKey?e.selectRangeFromStartToItem(u,f):e.focusItem(u,ho(e)),u.preventDefault();break}case g==="End":{a(f)&&t.multiSelect&&v&&u.shiftKey?e.selectRangeFromItemToEnd(u,f):e.focusItem(u,_1(e)),u.preventDefault();break}case g==="*":{e.expandAllSiblings(u,f),u.preventDefault();break}case(g==="a"&&v&&t.multiSelect&&!t.disableSelection):{e.selectAllNavigableItems(u),u.preventDefault();break}case(!v&&!u.shiftKey&&KA(g)):{const m=l(f,g);m!=null&&(e.focusItem(u,m),u.preventDefault());break}}}}}};M1.params={};const L1=({slots:e,slotProps:t})=>({contextValue:{icons:{slots:{collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,endIcon:e.endIcon},slotProps:{collapseIcon:t.collapseIcon,expandIcon:t.expandIcon,endIcon:t.endIcon}}}});L1.params={};const JA=[R1,lu,au,cu,$p,M1,L1],Ro=()=>{const e=x.useContext(E1);if(e==null)throw new Error(["MUI X: Could not find the Tree View context.","It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join(` -`));return e};function ZA(e){const{instance:t,selection:{multiSelect:n}}=Ro(),r=t.isItemExpandable(e),i=t.isItemExpanded(e),o=t.isItemFocused(e),s=t.isItemSelected(e),l=t.isItemDisabled(e);return{disabled:l,expanded:i,selected:s,focused:o,handleExpansion:u=>{if(!l){o||t.focusItem(u,e);const f=n&&(u.shiftKey||u.ctrlKey||u.metaKey);r&&!(f&&t.isItemExpanded(e))&&t.toggleItemExpansion(u,e)}},handleSelection:u=>{l||(o||t.focusItem(u,e),n&&(u.shiftKey||u.ctrlKey||u.metaKey)?u.shiftKey?t.expandSelectionRange(u,e):t.selectItem(u,e,!0):t.selectItem(u,e))},preventSelection:u=>{(u.shiftKey||u.ctrlKey||u.metaKey||l)&&u.preventDefault()}}}const eD=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown"],N1=x.forwardRef(function(t,n){const{classes:r,className:i,displayIcon:o,expansionIcon:s,icon:l,label:a,itemId:c,onClick:d,onMouseDown:u}=t,f=K(t,eD),{disabled:v,expanded:g,selected:m,focused:b,handleExpansion:p,handleSelection:h,preventSelection:y}=ZA(c),w=l||s||o,C=T=>{y(T),u&&u(T)},$=T=>{p(T),h(T),d&&d(T)};return k.jsxs("div",I({},f,{className:le(i,r.root,g&&r.expanded,m&&r.selected,b&&r.focused,v&&r.disabled),onClick:$,onMouseDown:C,ref:n,children:[k.jsx("div",{className:r.iconContainer,children:w}),k.jsx("div",{className:r.label,children:a})]}))});function tD(e){return Ge("MuiTreeItem",e)}const Nn=ze("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label"]),F1=Jh(k.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"TreeViewExpandIcon"),j1=Jh(k.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"TreeViewCollapseIcon");function Tp(e){const{children:t,itemId:n}=e,{wrapItem:r}=Ro();return r({children:t,itemId:n})}Tp.propTypes={children:Ym.node,itemId:Ym.string.isRequired};const nD=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],rD=["ownerState"],iD=["ownerState"],oD=["ownerState"],sD=e=>{const{classes:t}=e;return qe({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],label:["label"],groupTransition:["groupTransition"]},tD,t)},lD=ee("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),aD=ee(N1,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${Nn.iconContainer}`]:t.iconContainer},t.label&&{[`& .${Nn.label}`]:t.label}]})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Nn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${Nn.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Nn.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gr(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Nn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${Nn.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${Nn.label}`]:I({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1)})),cD=ee(tp,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition})({margin:0,padding:0,paddingLeft:12}),uD=x.forwardRef(function(t,n){const{icons:r,runItemPlugins:i,selection:{multiSelect:o},disabledItemsFocusable:s,instance:l}=Ro(),a=Ze({props:t,name:"MuiTreeItem"}),{children:c,className:d,slots:u,slotProps:f,ContentComponent:v=N1,ContentProps:g,itemId:m,id:b,label:p,onClick:h,onMouseDown:y,onBlur:w,onKeyDown:C}=a,$=K(a,nD),{contentRef:T,rootRef:R}=i(a),B=Ot(n,R),D=Ot(g==null?void 0:g.ref,T),P={expandIcon:(u==null?void 0:u.expandIcon)??r.slots.expandIcon??F1,collapseIcon:(u==null?void 0:u.collapseIcon)??r.slots.collapseIcon??j1,endIcon:(u==null?void 0:u.endIcon)??r.slots.endIcon,icon:u==null?void 0:u.icon,groupTransition:u==null?void 0:u.groupTransition},O=he=>Array.isArray(he)?he.length>0&&he.some(O):!!he,j=O(c),z=l.isItemExpanded(m),V=l.isItemFocused(m),q=l.isItemSelected(m),W=l.isItemDisabled(m),_=I({},a,{expanded:z,focused:V,selected:q,disabled:W}),M=sD(_),H=P.groupTransition??void 0,re=Rn({elementType:H,ownerState:{},externalSlotProps:f==null?void 0:f.groupTransition,additionalProps:{unmountOnExit:!0,in:z,component:"ul",role:"group"},className:M.groupTransition}),ae=z?P.collapseIcon:P.expandIcon,Dt=Rn({elementType:ae,ownerState:{},externalSlotProps:he=>z?I({},zn(r.slotProps.collapseIcon,he),zn(f==null?void 0:f.collapseIcon,he)):I({},zn(r.slotProps.expandIcon,he),zn(f==null?void 0:f.expandIcon,he))}),Ie=K(Dt,rD),et=j&&ae?k.jsx(ae,I({},Ie)):null,U=j?void 0:P.endIcon,xe=Rn({elementType:U,ownerState:{},externalSlotProps:he=>j?{}:I({},zn(r.slotProps.endIcon,he),zn(f==null?void 0:f.endIcon,he))}),ft=K(xe,iD),Qe=U?k.jsx(U,I({},ft)):null,kn=P.icon,mi=Rn({elementType:kn,ownerState:{},externalSlotProps:f==null?void 0:f.icon}),uu=K(mi,oD),du=kn?k.jsx(kn,I({},uu)):null;let Po;o?Po=q:q&&(Po=!0);function fu(he){!V&&(!W||s)&&he.currentTarget===he.target&&l.focusItem(he,m)}function hu(he){w==null||w(he),l.removeFocusedItem()}const pu=he=>{C==null||C(he),l.handleItemKeyDown(he,m)},mu=l.getTreeItemIdAttribute(m,b),gu=l.canItemBeTabbed(m)?0:-1;return k.jsx(Tp,{itemId:m,children:k.jsxs(lD,I({className:le(M.root,d),role:"treeitem","aria-expanded":j?z:void 0,"aria-selected":Po,"aria-disabled":W||void 0,id:mu,tabIndex:gu},$,{ownerState:_,onFocus:fu,onBlur:hu,onKeyDown:pu,ref:B,children:[k.jsx(aD,I({as:v,classes:{root:M.content,expanded:M.expanded,selected:M.selected,focused:M.focused,disabled:M.disabled,iconContainer:M.iconContainer,label:M.label},label:p,itemId:m,onClick:h,onMouseDown:y,icon:du,expansionIcon:et,displayIcon:Qe,ownerState:_},g,{ref:D})),c&&k.jsx(cD,I({as:H},re,{children:c}))]}))})}),dD=["slots","slotProps","apiRef"],fD=e=>{let{props:{slots:t,slotProps:n,apiRef:r},plugins:i,rootRef:o}=e,s=K(e.props,dD);const l={};i.forEach(d=>{Object.assign(l,d.params)});const a={plugins:i,rootRef:o,slots:t??{},slotProps:n??{},apiRef:r},c={};return Object.keys(s).forEach(d=>{const u=s[d];l[d]?a[d]=u:c[d]=u}),{pluginParams:a,slots:t,slotProps:n,otherProps:c}},hD=e=>{const{classes:t}=e;return qe({root:["root"]},RA,t)},pD=ee("ul",{name:"MuiRichTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"});function mD({slots:e,slotProps:t,label:n,id:r,itemId:i,children:o}){const s=(e==null?void 0:e.item)??uD,l=Rn({elementType:s,externalSlotProps:t==null?void 0:t.item,additionalProps:{itemId:i,id:r,label:n},ownerState:{itemId:i,label:n}});return k.jsx(s,I({},l,{children:o}))}const gD=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiRichTreeView"}),{pluginParams:i,slots:o,slotProps:s,otherProps:l}=fD({props:r,plugins:JA,rootRef:n}),{getRootProps:a,contextValue:c,instance:d}=MA(i),u=hD(r),f=(o==null?void 0:o.root)??pD,v=Rn({elementType:f,externalSlotProps:s==null?void 0:s.root,externalForwardedProps:l,className:u.root,getSlotProps:a,ownerState:r}),g=d.getItemsToRender(),m=({label:b,itemId:p,id:h,children:y})=>k.jsx(mD,{slots:o,slotProps:s,label:b,id:h,itemId:p,children:y==null?void 0:y.map(m)},p);return k.jsx(LA,{value:c,children:k.jsx(f,I({},v,{children:g.map(m)}))})}),vD=({itemId:e,children:t})=>{const{instance:n,selection:{multiSelect:r}}=Ro(),i={expandable:!!(Array.isArray(t)?t.length:t),expanded:n.isItemExpanded(e),focused:n.isItemFocused(e),selected:n.isItemSelected(e),disabled:n.isItemDisabled(e)};return{interactions:{handleExpansion:a=>{if(i.disabled)return;i.focused||n.focusItem(a,e);const c=r&&(a.shiftKey||a.ctrlKey||a.metaKey);i.expandable&&!(c&&n.isItemExpanded(e))&&n.toggleItemExpansion(a,e)},handleSelection:a=>{if(i.disabled)return;i.focused||n.focusItem(a,e),r&&(a.shiftKey||a.ctrlKey||a.metaKey)?a.shiftKey?n.expandSelectionRange(a,e):n.selectItem(a,e,!0):n.selectItem(a,e)}},status:i}},yD=e=>{const{runItemPlugins:t,selection:{multiSelect:n},disabledItemsFocusable:r,instance:i,publicAPI:o}=Ro(),{id:s,itemId:l,label:a,children:c,rootRef:d}=e,{rootRef:u,contentRef:f}=t(e),{interactions:v,status:g}=vD({itemId:l,children:c}),m=i.getTreeItemIdAttribute(l,s),b=Ot(d,u),p=P=>O=>{var z;if((z=P.onFocus)==null||z.call(P,O),O.defaultMuiPrevented)return;const j=!g.disabled||r;!g.focused&&j&&O.currentTarget===O.target&&i.focusItem(O,l)},h=P=>O=>{var j;(j=P.onBlur)==null||j.call(P,O),!O.defaultMuiPrevented&&i.removeFocusedItem()},y=P=>O=>{var j;(j=P.onKeyDown)==null||j.call(P,O),!O.defaultMuiPrevented&&i.handleItemKeyDown(O,l)},w=P=>O=>{var j;(j=P.onClick)==null||j.call(P,O),!O.defaultMuiPrevented&&(v.handleExpansion(O),v.handleSelection(O))},C=P=>O=>{var j;(j=P.onMouseDown)==null||j.call(P,O),!O.defaultMuiPrevented&&(O.shiftKey||O.ctrlKey||O.metaKey||g.disabled)&&O.preventDefault()};return{getRootProps:(P={})=>{const O=I({},ar(e),ar(P));let j;return n?j=g.selected:g.selected&&(j=!0),I({},O,{ref:b,role:"treeitem",tabIndex:i.canItemBeTabbed(l)?0:-1,id:m,"aria-expanded":g.expandable?g.expanded:void 0,"aria-selected":j,"aria-disabled":g.disabled||void 0},P,{onFocus:p(O),onBlur:h(O),onKeyDown:y(O)})},getContentProps:(P={})=>{const O=ar(P);return I({},O,P,{ref:f,onClick:w(O),onMouseDown:C(O),status:g})},getGroupTransitionProps:(P={})=>{const O=ar(P);return I({},O,{unmountOnExit:!0,component:"ul",role:"group",in:g.expanded,children:c},P)},getIconContainerProps:(P={})=>{const O=ar(P);return I({},O,P)},getLabelProps:(P={})=>{const O=I({},ar(e),ar(P));return I({},O,{children:a},P)},rootRef:b,status:g,publicAPI:o}};function bD(e){const{slots:t,slotProps:n,status:r}=e,i=Ro(),o=I({},i.icons.slots,{expandIcon:i.icons.slots.expandIcon??F1,collapseIcon:i.icons.slots.collapseIcon??j1}),s=i.icons.slotProps;let l;t!=null&&t.icon?l="icon":r.expandable?r.expanded?l="collapseIcon":l="expandIcon":l="endIcon";const a=(t==null?void 0:t[l])??o[l],c=Rn({elementType:a,externalSlotProps:d=>I({},zn(s[l],d),zn(n==null?void 0:n[l],d)),ownerState:{}});return a?k.jsx(a,I({},c)):null}const xD=ee("li",{name:"MuiTreeItem2",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),wD=ee("div",{name:"MuiTreeItem2",slot:"Content",overridesResolver:(e,t)=>t.content,shouldForwardProp:e=>V$(e)&&e!=="status"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`& .${Nn.groupTransition}`]:{margin:0,padding:0,paddingLeft:12},variants:[{props:({status:t})=>t.disabled,style:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"}},{props:({status:t})=>t.focused,style:{backgroundColor:(e.vars||e).palette.action.focus}},{props:({status:t})=>t.selected,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gr(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},{props:({status:t})=>t.selected&&t.focused,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}]}));ee("div",{name:"MuiTreeItem2",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>I({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1));const kD=ee("div",{name:"MuiTreeItem2",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}}),CD=ee(tp,{name:"MuiTreeItem2",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition})({margin:0,padding:0,paddingLeft:12});var Ip={},md={};const SD=Jn(OI);var Tv;function $D(){return Tv||(Tv=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=SD}(md)),md}var TD=Wh;Object.defineProperty(Ip,"__esModule",{value:!0});var z1=Ip.default=void 0,ID=TD($D()),ED=k;z1=Ip.default=(0,ID.default)((0,ED.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"}),"ContentCopyOutlined");const RD=({text:e,message:t})=>{const n=Gc(),[r,i]=St.useState(null),[o,s]=x.useState(!1),l=c=>{navigator.clipboard.writeText(e),i(r?null:c.currentTarget),s(!0),setTimeout(()=>{s(!1)},1e3)},a=()=>{s(!1)};return t||(t=`Copied ${e}`),k.jsxs(k.Fragment,{children:[k.jsx(ot,{className:"icon",onClick:l,children:k.jsx(z1,{sx:{fontSize:"14px"}})}),k.jsx(gR,{id:"placement-popper",open:o,anchor:r,placement:"top-start",offset:4,children:k.jsx($E,{onClickAway:a,children:k.jsx(kR,{in:o,timeout:500,children:k.jsx(ot,{role:"presentation",sx:{padding:"2px",color:n.palette.secondary.contrastText,backgroundColor:n.palette.secondary.main,borderRadius:"2px"},children:t})})})})]})},PD=ee(wD)(({})=>({padding:0}));function OD(e){return e=e.trim(),e=e.replace(/^0x/,""),"0x"+(e.length>5?e.slice(0,2)+"~"+e.slice(-3):e)}const _D=e=>String(e).split("0x").map((r,i)=>k.jsxs(x.Fragment,{children:[i>0&&k.jsx("span",{style:{fontSize:"9px",filter:"brightness(50%)",fontWeight:"lighter"},children:"0x"}),r]},i)),AD=x.forwardRef(function(t,n){const{workdir:r,id:i,itemId:o,disabled:s,children:l,...a}=t;let{label:c}=t,[d,u]=x.useState(!1),f=!1,v=!1,g="(empty)",m;const b=o.charAt(0);if(b.length>0){if(b>="0"&&b<="9")f=!0;else if(b===ux)v=!0,o===lp&&(g=`To get started, do '${r} publish' in a terminal`);else if(b===cx){const D=o.split("-").pop();if(c&&D){const P=OD(D);c=c.toString().replace(dx,P),m=D}}}const{getRootProps:p,getContentProps:h,getIconContainerProps:y,getLabelProps:w,getGroupTransitionProps:C,status:$}=yD({id:i,itemId:o,children:l,label:c,disabled:s,rootRef:n});let T={padding:0,whiteSpace:"nowrap",fontSize:"13px",textOverflow:"ellipsis",overflow:"hidden"};f?(T.fontSize="11px",T.textTransform="uppercase",T.fontWeight="bold"):v?T.whiteSpace="normal":(T.letterSpacing=0,T.fontFamily="monospace");const R=()=>k.jsx(k.Fragment,{children:m&&k.jsx(ot,{width:20,children:k.jsx(RD,{text:m,message:"Copied!"})})}),B=()=>k.jsxs(ot,{display:"flex",overflow:"hidden",justifyContent:"space-between",width:"100%",onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[k.jsx(ot,{flexGrow:1,overflow:"hidden",children:k.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:k.jsx("span",{style:T,...w(),children:_D(c)})})}),d&&R()]});return k.jsx(Tp,{itemId:o,children:k.jsxs(xD,{...p(a),children:[k.jsxs(PD,{...h(),children:[k.jsx(kD,{...y(),children:k.jsx(bD,{status:$})}),v?k.jsx(en,{variant:"caption",sx:T,...w(),children:g}):B()]}),l&&k.jsx(CD,{...C()})]})})});function DD({items:e,workdir:t}){return k.jsx(gD,{"aria-label":"icon expansion",sx:{position:"relative"},defaultExpandedItems:["3"],items:e,slots:{item:n=>k.jsx(AD,{...n,workdir:t})}})}const B1=[{id:Ua,label:"Recent Packages",children:[{id:lp,label:""}]}];class Af{constructor(t,n){we(this,"workdir");we(this,"workdirIdx");we(this,"methodUuid");we(this,"dataUuid");we(this,"tree");this.workdir=t,this.workdirIdx=n,this.methodUuid="",this.dataUuid="",this.tree=B1}}function MD(e,t){if(!t.isLoaded)return e.tree==B1?e:new Af(e.workdir,e.workdirIdx);if(e.methodUuid===t.getMethodUuid()&&e.dataUuid===t.getDataUuid())return e;let n=new Af(e.workdir,e.workdirIdx);n.methodUuid=t.getMethodUuid(),n.dataUuid=t.getDataUuid(),n.tree=[];let r=t.getJson();if(!r)return console.log("Missing json in workdir_json: "+JSON.stringify(t)),e;if(!r.moveConfigs)return console.log("Missing moveConfigs in workdir_json: "+JSON.stringify(t)),e;const i=r.moveConfigs;let o=[],s=[];for(let l in i){const a=i[l];if(a.latestPackage!=null){let c=`${Ua}-${l}`,d=gd(c,a.latestPackage);d&&o.push(d),c=`${Ku}-${l}`,d=gd(c,a.latestPackage),d&&s.push(d)}if(a.olderPackages!=null)for(let c of a.olderPackages){const d=`${Ku}-${l}`,u=gd(d,c);u&&s.push(u)}}return o.length==0&&(o=[{id:lp,label:""}]),n.tree.push({id:Ua,label:"Recent Packages",children:o}),n.tree.push({id:Ku,label:"All Packages",children:s}),n}function gd(e,t){const n=t.packageName;if(!n){console.log("Missing packageName in package json: "+JSON.stringify(t));return}const r=t.packageId;if(!r){console.log("Missing packageId in package json: "+JSON.stringify(t));return}const i=`${dx}::${n}`;return{id:`${cx}-${e}-${r}`,label:i}}function LD({workdir:e,workdirIdx:t,packagesTrigger:n,packagesJson:r}){const[i,o]=x.useState(new Af(e,t));return x.useEffect(()=>{try{const s=MD(i,r);s!==i&&o(s)}catch(s){console.error(`Error updating ExplorerTreeView: ${s}`)}},[e,t,n,r]),k.jsx(k.Fragment,{children:k.jsx(DD,{items:i.tree,workdir:e})})}function V1(e){let t=e.issue,n="";const r=t.match(/,homedir=(.*)/);return r&&(n=r[1],t=t.replace(/,homedir=(.*)/,"")),t==Vg?k.jsxs(en,{variant:"body2",children:[Vg,k.jsx("br",{}),"Check ",k.jsx(as,{href:"https://suibase.io/how-to/install",children:"https://suibase.io/how-to/install"})]}):t==Ug?k.jsxs(en,{variant:"body2",children:[Ug,k.jsx("br",{}),"Please install Sui prerequisites",k.jsx("br",{}),"Check ",k.jsx(as,{href:"https://docs.sui.io/guides/developer/getting-started/sui-install",children:"https://docs.sui.io"})]}):t==Hg?k.jsxs(en,{variant:"body2",children:[Hg,k.jsx("br",{}),"Initialize your shell to have ",n,"/.local/bin added to the $PATH.",k.jsx("br",{}),"Check ",k.jsx(as,{href:"https://suibase.io/how-to/install",children:"https://suibase.io/how-to/install"})]}):k.jsx(en,{variant:"body2",children:t})}const ND=()=>{const{common:e,workdirs:t,statusTrigger:n,commonTrigger:r,packagesTrigger:i}=hx($f,{trackStatus:!0,trackPackages:!0}),[o,s]=x.useState(""),[l,a]=x.useState(e.current.activeWorkdir),[c,d]=x.useState(!1),u=p=>{const h=p.target.value;if(h!==e.current.activeWorkdir){s(h),a(h);const y=Gn.indexOf(h);y!==-1&&Qi.postMessage(new fx($f,y,"set-active"))}else s(""),a(e.current.activeWorkdir)};x.useEffect(()=>(o!==""?o===e.current.activeWorkdir&&(s(""),a(e.current.activeWorkdir)):l!==e.current.activeWorkdir&&a(e.current.activeWorkdir),()=>{}),[o,l,e.current.activeWorkdir,r]),x.useEffect(()=>{let p=!0;for(let h=0;hk.jsx(ot,{flexDirection:"column",justifyContent:"center",width:"100%",paddingLeft:1,paddingTop:1,children:e.current.activeLoaded?k.jsxs(k.Fragment,{children:[k.jsx(IA,{value:l,onChange:u,children:Gn.map((p,h)=>{const y=t[h],w=p===l,C=!w&&y.workdirStatus.status==="DISABLED";return k.jsx(EA,{value:p,selected:w,disabled:C,children:Cf[h]},p)})}),o&&k.jsx(Ha,{size:15,style:{marginLeft:"3px"}})]}):k.jsx(Ha,{size:15})}),v=()=>k.jsx(ot,{display:"flex",justifyContent:"center",width:"100%",paddingTop:1,children:k.jsxs(en,{variant:"caption",sx:{alignContent:"center",fontSize:"9px"},children:["Need help? Try the ",k.jsx(as,{color:"inherit",href:"https://suibase.io/community/",target:"_blank",rel:"noopener noreferrer",children:"sui community"})]})}),g=()=>k.jsx(ot,{width:"100%",paddingTop:1,children:e.current.activeLoaded&&k.jsx(LD,{packagesTrigger:i,packagesJson:t[e.current.activeWorkdirIdx].workdirPackages,workdir:e.current.activeWorkdir,workdirIdx:e.current.activeWorkdirIdx})}),m=()=>k.jsx(ot,{display:"flex",justifyContent:"center",width:"100%",paddingTop:1,children:k.jsxs(en,{variant:"body2",children:["There is no workdir enabled. Do 'testnet start' command in a terminal or try the ",k.jsx(as,{component:"button",variant:"body2",onClick:()=>{Qi.postMessage(new ZP)},children:"dashboard"}),"."]})}),b=!e.current.setupIssue&&!c;return k.jsxs(k.Fragment,{children:[e.current.setupIssue&&k.jsx(V1,{issue:e.current.setupIssue}),!e.current.setupIssue&&c&&m(),b&&f(),v(),b&&g()]})},FD=ee(dP)(({theme:e})=>({width:28,height:16,padding:0,display:"flex","&:active":{"& .MuiSwitch-thumb":{width:15},"& .MuiSwitch-switchBase.Mui-checked":{transform:"translateX(9px)"}},"& .MuiSwitch-switchBase":{padding:2,"&.Mui-checked":{transform:"translateX(12px)",color:"#fff","& + .MuiSwitch-track":{opacity:1,backgroundColor:e.palette.mode==="dark"?"#177ddc":"#1890ff"}}},"& .MuiSwitch-thumb":{boxShadow:"0 2px 4px 0 rgb(0 35 11 / 20%)",width:12,height:12,borderRadius:6,transition:e.transitions.create(["width"],{duration:200})},"& .MuiSwitch-track":{borderRadius:16/2,opacity:1,backgroundColor:"rgba(255,255,255,.35)",boxSizing:"border-box"}}));class jD{constructor(){we(this,"showSpinner");we(this,"spinnerForSwitch");we(this,"requestedChange");we(this,"switchState");we(this,"switchSkeleton");we(this,"spinnerForUpdate");this.showSpinner=!1,this.spinnerForSwitch=!1,this.spinnerForUpdate=!1,this.requestedChange=void 0,this.switchState=!1,this.switchSkeleton=!0}}const zD=()=>{const{commonTrigger:e,statusTrigger:t,common:n,workdirs:r}=hx(Sf,{trackStatus:!0}),i={inputProps:{"aria-label":"workdir on/off"}},[o,s]=x.useState(!1),[l,a]=x.useState(Gn.map(()=>new jD)),c=(f,v)=>{a(g=>g.map((m,b)=>b===f?{...m,...v}:m))},d=f=>{switch(f.workdirStatus.status){case"DEGRADED":case"OK":return!0;default:return!1}},u=(f,v)=>{const g=r[f],m=d(g);if(v!==m){c(f,{requestedChange:v,switchState:v,spinnerForSwitch:!0});const b=v?"start":"stop";Qi.postMessage(new fx(Sf,f,b))}else c(f,{requestedChange:void 0,switchState:m,spinnerForSwitch:!1})};return x.useEffect(()=>(l.forEach((f,v)=>{const g=r[v],m=d(g);f.requestedChange!==void 0?f.requestedChange===m?c(v,{requestedChange:void 0,switchState:m,spinnerForSwitch:!1}):f.spinnerForSwitch||c(v,{spinnerForSwitch:!0}):f.switchState!==m&&c(v,{switchState:m,spinnerForSwitch:!1});const b=f.spinnerForSwitch||f.spinnerForUpdate;f.showSpinner!==b&&c(v,{showSpinner:b})}),()=>{}),[e,t,r,l]),x.useEffect(()=>{let f=!0;for(let v=0;v{const g=r[v],m=o||!g.workdirStatus.isLoaded||v!==n.current.activeWorkdirIdx;return k.jsxs(Bg,{sx:{p:0,m:0,"&:last-child td, &:last-child th":{border:0}},children:[k.jsx(sr,{sx:{width:115,maxWidth:115,pt:"6px",pb:"6px",pl:0,pr:0,m:0},children:k.jsxs(ot,{display:"flex",alignItems:"center",flexWrap:"nowrap",children:[k.jsx(ot,{width:"10px",display:"flex",justifyContent:"left",alignItems:"center",children:f.showSpinner&&k.jsx(Ha,{size:9})}),k.jsx(ot,{width:"50px",display:"flex",justifyContent:"center",alignItems:"center",children:k.jsx(FD,{...i,size:"small",disabled:f.showSpinner,checked:f.switchState,onChange:b=>u(v,b.target.checked)})}),k.jsx(ot,{width:"50px",display:"flex",justifyContent:"left",alignItems:"center",children:k.jsx(RR,{variant:"dot",color:"info",anchorOrigin:{vertical:"top",horizontal:"left"},invisible:m,children:k.jsx(en,{variant:"body2",sx:{pl:"2px"},children:Cf[v]})})})]})}),k.jsx(sr,{align:"center",sx:{width:105,maxWidth:105,p:0,m:0},children:k.jsx(en,{variant:"subtitle2",children:g.workdirStatus.status})}),k.jsx(sr,{align:"center",sx:{width:65,maxWidth:65,p:0,m:0},children:k.jsx(en,{variant:"body2",children:g.workdirStatus.isLoaded&&g.workdirStatus.suiClientVersionShort})}),k.jsx(sr,{})]},Cf[v])})})]})})]}):k.jsx(Ha,{size:15})]})},jl=e=>{try{return getComputedStyle(document.documentElement).getPropertyValue(e).trim()||$n[500]}catch(t){return console.error(`Error getting CSS variable ${e}: ${t}`),$n[500]}},BD=e=>{const[t,n]=x.useState(getComputedStyle(document.documentElement).getPropertyValue(e));return x.useEffect(()=>{const r=setInterval(()=>{const i=getComputedStyle(document.documentElement).getPropertyValue(e);i!==t&&n(i)},1e3);return()=>clearInterval(r)},[t,e]),t};function VD(){const{setMessage:e}=z0(),t=BD("--vscode-editor-foreground"),n=St.useMemo(()=>Kh({components:{MuiCssBaseline:{styleOverrides:{body:{padding:0}}}},palette:{background:{default:jl("--vscode-editor-background")},text:{primary:jl("--vscode-editor-foreground")},primary:{main:jl("--vscode-editor-foreground")},secondary:{main:jl("--vscode-editor-foreground")}}}),[t]);x.useEffect(()=>{const i=o=>{o.data&&e(o.data)};return window.addEventListener("message",i),()=>window.removeEventListener("message",i)},[e]);let r;switch(globalThis.suibase_view_key){case Sf:r=k.jsx(zD,{});break;case QP:r=k.jsx(UP,{});break;case $f:r=k.jsx(ND,{});break;default:r=null}return k.jsx(k.Fragment,{children:k.jsxs($I,{theme:n,children:[k.jsx(XR,{}),k.jsx("main",{children:r})]})})}Jx().register(TA);yd.createRoot(document.getElementById("root")).render(k.jsxs(k.Fragment,{children:[k.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),k.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com"}),k.jsx("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap"}),k.jsx(St.StrictMode,{children:k.jsx(kC,{children:k.jsx(VD,{})})})]})); +`));i[u]={id:u,label:f,parentId:d,idAttribute:void 0,expandable:!!((g=c.children)!=null&&g.length),disabled:t?t(c):!1},o[u]=c,s[u]=[];const v=d??hs;s[v]||(s[v]=[]),s[v].push(u),(m=c.children)==null||m.forEach(b=>l(b,u))};e.forEach(c=>l(c,null));const a={};return Object.keys(s).forEach(c=>{a[c]=BA(s[c])}),{itemMetaMap:i,itemMap:o,itemOrderedChildrenIds:s,itemChildrenIndexes:a}},au=({instance:e,params:t,state:n,setState:r})=>{const i=x.useCallback(g=>n.items.itemMetaMap[g],[n.items.itemMetaMap]),o=x.useCallback(g=>n.items.itemMap[g],[n.items.itemMap]),s=x.useCallback(g=>{if(g==null)return!1;let m=e.getItemMeta(g);if(!m)return!1;if(m.disabled)return!0;for(;m.parentId!=null;)if(m=e.getItemMeta(m.parentId),m.disabled)return!0;return!1},[e]),l=x.useCallback(g=>{const m=e.getItemMeta(g).parentId??hs;return n.items.itemChildrenIndexes[m][g]},[e,n.items.itemChildrenIndexes]),a=x.useCallback(g=>n.items.itemOrderedChildrenIds[g??hs]??[],[n.items.itemOrderedChildrenIds]),c=g=>t.disabledItemsFocusable?!0:!e.isItemDisabled(g),d=x.useRef(!1),u=x.useCallback(()=>{d.current=!0},[]),f=x.useCallback(()=>d.current,[]);return x.useEffect(()=>{e.areItemUpdatesPrevented()||r(g=>{const m=O1({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel});return Object.values(g.items.itemMetaMap).forEach(b=>{m.itemMetaMap[b.id]||zA(e,"removeItem",{id:b.id})}),T({},g,{items:m})})},[e,r,t.items,t.isItemDisabled,t.getItemId,t.getItemLabel]),{publicAPI:{getItem:o},instance:{getItemMeta:i,getItem:o,getItemsToRender:()=>{const g=m=>{const b=n.items.itemMetaMap[m];return{label:b.label,itemId:b.id,id:b.idAttribute,children:n.items.itemOrderedChildrenIds[m].map(g)}};return n.items.itemOrderedChildrenIds[hs].map(g)},getItemIndex:l,getItemOrderedChildrenIds:a,isItemDisabled:s,isItemNavigable:c,preventItemUpdates:u,areItemUpdatesPrevented:f},contextValue:{disabledItemsFocusable:t.disabledItemsFocusable}}};au.getInitialState=e=>({items:O1({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})});au.getDefaultizedParams=e=>T({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1});au.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0};const cu=({instance:e,params:t,models:n})=>{const r=x.useMemo(()=>{const d=new Map;return n.expandedItems.value.forEach(u=>{d.set(u,!0)}),d},[n.expandedItems.value]),i=(d,u)=>{var f;(f=t.onExpandedItemsChange)==null||f.call(t,d,u),n.expandedItems.setControlledValue(u)},o=x.useCallback(d=>r.has(d),[r]),s=x.useCallback(d=>{var u;return!!((u=e.getItemMeta(d))!=null&&u.expandable)},[e]),l=Ft((d,u)=>{const f=e.isItemExpanded(u);e.setItemExpansion(d,u,!f)}),a=Ft((d,u,f)=>{if(e.isItemExpanded(u)===f)return;let g;f?g=[u].concat(n.expandedItems.value):g=n.expandedItems.value.filter(m=>m!==u),t.onItemExpansionToggle&&t.onItemExpansionToggle(d,u,f),i(d,g)});return{publicAPI:{setItemExpansion:a},instance:{isItemExpanded:o,isItemExpandable:s,setItemExpansion:a,toggleItemExpansion:l,expandAllSiblings:(d,u)=>{const f=e.getItemMeta(u),g=e.getItemOrderedChildrenIds(f.parentId).filter(b=>e.isItemExpandable(b)&&!e.isItemExpanded(b)),m=n.expandedItems.value.concat(g);g.length>0&&(t.onItemExpansionToggle&&g.forEach(b=>{t.onItemExpansionToggle(d,b,!0)}),i(d,m))}}}};cu.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const VA=[];cu.getDefaultizedParams=e=>T({},e,{defaultExpandedItems:e.defaultExpandedItems??VA});cu.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0};const _1=(e,t)=>{let n=t.length-1;for(;n>=0&&!e.isItemNavigable(t[n]);)n-=1;if(n!==-1)return t[n]},HA=(e,t)=>{const n=e.getItemMeta(t),r=e.getItemOrderedChildrenIds(n.parentId),i=e.getItemIndex(t);if(i===0)return n.parentId;let o=r[i-1],s=_1(e,e.getItemOrderedChildrenIds(o));for(;e.isItemExpanded(o)&&s!=null;)o=s,s=e.getItemOrderedChildrenIds(o).find(e.isItemNavigable);return o},la=(e,t)=>{if(e.isItemExpanded(t)){const r=e.getItemOrderedChildrenIds(t).find(e.isItemNavigable);if(r!=null)return r}let n=e.getItemMeta(t);for(;n!=null;){const r=e.getItemOrderedChildrenIds(n.parentId),i=e.getItemIndex(n.id);if(i{let t=null;for(;t==null||e.isItemExpanded(t);){const n=e.getItemOrderedChildrenIds(t),r=_1(e,n);if(r==null)return t;t=r}return t},po=e=>e.getItemOrderedChildrenIds(null).find(e.isItemNavigable),D1=(e,t,n)=>{if(t===n)return[t,n];const r=e.getItemMeta(t),i=e.getItemMeta(n);if(r.parentId===i.id||i.parentId===r.id)return i.parentId===r.id?[r.id,i.id]:[i.id,r.id];const o=[r.id],s=[i.id];let l=r.parentId,a=i.parentId,c=s.indexOf(l)!==-1,d=o.indexOf(a)!==-1,u=!0,f=!0;for(;!d&&!c;)u&&(o.push(l),c=s.indexOf(l)!==-1,u=l!==null,!c&&u&&(l=e.getItemMeta(l).parentId)),f&&!c&&(s.push(a),d=o.indexOf(a)!==-1,f=a!==null,!d&&f&&(a=e.getItemMeta(a).parentId));const v=c?l:a,g=e.getItemOrderedChildrenIds(v),m=o[o.indexOf(v)-1],b=s[s.indexOf(v)-1];return g.indexOf(m){const r=a=>{if(e.isItemExpandable(a)&&e.isItemExpanded(a))return e.getItemOrderedChildrenIds(a)[0];let c=e.getItemMeta(a);for(;c!=null;){const d=e.getItemOrderedChildrenIds(c.parentId),u=e.getItemIndex(c.id);if(u{let t=po(e);const n=[];for(;t!=null;)n.push(t),t=la(e,t);return n},pd=e=>Array.isArray(e)?e:e!=null?[e]:[],md=e=>{const t={};return e.forEach(n=>{t[n]=!0}),t},uu=({instance:e,params:t,models:n})=>{const r=x.useRef(null),i=x.useRef({}),o=x.useMemo(()=>{const m=new Map;return Array.isArray(n.selectedItems.value)?n.selectedItems.value.forEach(b=>{m.set(b,!0)}):n.selectedItems.value!=null&&m.set(n.selectedItems.value,!0),m},[n.selectedItems.value]),s=(m,b)=>{if(t.onItemSelectionToggle)if(t.multiSelect){const p=b.filter(y=>!e.isItemSelected(y)),h=n.selectedItems.value.filter(y=>!b.includes(y));p.forEach(y=>{t.onItemSelectionToggle(m,y,!0)}),h.forEach(y=>{t.onItemSelectionToggle(m,y,!1)})}else b!==n.selectedItems.value&&(n.selectedItems.value!=null&&t.onItemSelectionToggle(m,n.selectedItems.value,!1),b!=null&&t.onItemSelectionToggle(m,b,!0));t.onSelectedItemsChange&&t.onSelectedItemsChange(m,b),n.selectedItems.setControlledValue(b)},l=m=>o.has(m),a=(m,b,p=!1)=>{if(t.disableSelection)return;let h;if(p){const y=pd(n.selectedItems.value);e.isItemSelected(b)?h=y.filter(w=>w!==b):h=[b].concat(y)}else h=t.multiSelect?[b]:b;s(m,h),r.current=b,i.current={}},c=(m,[b,p])=>{if(t.disableSelection||!t.multiSelect)return;let h=pd(n.selectedItems.value).slice();Object.keys(i.current).length>0&&(h=h.filter($=>!i.current[$]));const y=md(h),w=UA(e,b,p),C=w.filter($=>!y[$]);h=h.concat(C),s(m,h),i.current=md(w)};return{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),instance:{isItemSelected:l,selectItem:a,selectAllNavigableItems:m=>{if(t.disableSelection||!t.multiSelect)return;const b=WA(e);s(m,b),i.current=md(b)},expandSelectionRange:(m,b)=>{if(r.current!=null){const[p,h]=D1(e,b,r.current);c(m,[p,h])}},selectRangeFromStartToItem:(m,b)=>{c(m,[po(e),b])},selectRangeFromItemToEnd:(m,b)=>{c(m,[b,A1(e)])},selectItemFromArrowNavigation:(m,b,p)=>{if(t.disableSelection||!t.multiSelect)return;let h=pd(n.selectedItems.value).slice();Object.keys(i.current).length===0?(h.push(p),i.current={[b]:!0,[p]:!0}):(i.current[b]||(i.current={}),i.current[p]?(h=h.filter(y=>y!==b),delete i.current[b]):(h.push(p),i.current[p]=!0)),s(m,h)}},contextValue:{selection:{multiSelect:t.multiSelect}}}};uu.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const GA=[];uu.getDefaultizedParams=e=>T({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?GA:null)});uu.params={disableSelection:!0,multiSelect:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};const Tv=1e3;class qA{constructor(t=Tv){this.timeouts=new Map,this.cleanupTimeout=Tv,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const i=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,i)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class QA{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}class XA{}function YA(e){let t=0;return function(r,i,o){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new QA:new qA);const[s]=x.useState(new XA),l=x.useRef(null),a=x.useRef();a.current=o;const c=x.useRef(null);if(!l.current&&a.current){const d=(u,f)=>{var v;f.defaultMuiPrevented||(v=a.current)==null||v.call(a,u,f)};l.current=r.$$subscribeEvent(i,d),t+=1,c.current={cleanupToken:t},e.registry.register(s,()=>{var u;(u=l.current)==null||u.call(l),l.current=null,c.current=null},c.current)}else!a.current&&l.current&&(l.current(),l.current=null,c.current&&(e.registry.unregister(c.current),c.current=null));x.useEffect(()=>{if(!l.current&&a.current){const d=(u,f)=>{var v;f.defaultMuiPrevented||(v=a.current)==null||v.call(a,u,f)};l.current=r.$$subscribeEvent(i,d)}return c.current&&e.registry&&(e.registry.unregister(c.current),c.current=null),()=>{var d;(d=l.current)==null||d.call(l),l.current=null}},[r,i])}}const KA={registry:null},JA=YA(KA),M1=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?M1(t.shadowRoot):t:null},ZA=(e,t)=>{const n=i=>{const o=e.getItemMeta(i);return o&&(o.parentId==null||e.isItemExpanded(o.parentId))};let r;return Array.isArray(t)?r=t.find(n):t!=null&&n(t)&&(r=t),r==null&&(r=po(e)),r},$p=({instance:e,params:t,state:n,setState:r,models:i,rootRef:o})=>{const s=ZA(e,i.selectedItems.value),l=Ft(p=>{const h=typeof p=="function"?p(n.focusedItemId):p;n.focusedItemId!==h&&r(y=>T({},y,{focusedItemId:h}))}),a=x.useCallback(()=>!!o.current&&o.current.contains(M1(Gi(o.current))),[o]),c=x.useCallback(p=>n.focusedItemId===p&&a(),[n.focusedItemId,a]),d=p=>{const h=e.getItemMeta(p);return h&&(h.parentId==null||e.isItemExpanded(h.parentId))},u=(p,h)=>{const y=e.getItemMeta(h),w=document.getElementById(e.getTreeItemIdAttribute(h,y.idAttribute));w&&w.focus(),l(h),t.onItemFocus&&t.onItemFocus(p,h)},f=Ft((p,h)=>{d(h)&&u(p,h)}),v=Ft(p=>{let h;Array.isArray(i.selectedItems.value)?h=i.selectedItems.value.find(d):i.selectedItems.value!=null&&d(i.selectedItems.value)&&(h=i.selectedItems.value),h==null&&(h=po(e)),u(p,h)}),g=Ft(()=>{if(n.focusedItemId==null)return;const p=e.getItemMeta(n.focusedItemId);if(p){const h=document.getElementById(e.getTreeItemIdAttribute(n.focusedItemId,p.idAttribute));h&&h.blur()}l(null)}),m=p=>p===s;JA(e,"removeItem",({id:p})=>{n.focusedItemId===p&&e.focusDefaultItem(null)});const b=p=>h=>{var y;(y=p.onFocus)==null||y.call(p,h),!h.defaultMuiPrevented&&h.target===h.currentTarget&&e.focusDefaultItem(h)};return{getRootProps:p=>({onFocus:b(p)}),publicAPI:{focusItem:f},instance:{isItemFocused:c,canItemBeTabbed:m,focusItem:f,focusDefaultItem:v,removeFocusedItem:g}}};$p.getInitialState=()=>({focusedItemId:null});$p.params={onItemFocus:!0};function eD(e){return!!e&&e.length===1&&!!e.match(/\S/)}const L1=({instance:e,params:t,state:n})=>{const i=qc().direction==="rtl",o=x.useRef({}),s=Ft(u=>{o.current=u(o.current)});x.useEffect(()=>{if(e.areItemUpdatesPrevented())return;const u={},f=v=>{u[v.id]=v.label.substring(0,1).toLowerCase()};Object.values(n.items.itemMetaMap).forEach(f),o.current=u},[n.items.itemMetaMap,t.getItemId,e]);const l=(u,f)=>{const v=f.toLowerCase(),g=h=>{const y=la(e,h);return y===null?po(e):y};let m=null,b=g(u);const p={};for(;m==null&&!p[b];)o.current[b]===v?m=b:(p[b]=!0,b=g(b));return m},a=u=>!t.disableSelection&&!e.isItemDisabled(u),c=u=>!e.isItemDisabled(u)&&e.isItemExpandable(u);return{instance:{updateFirstCharMap:s,handleItemKeyDown:(u,f)=>{if(u.defaultMuiPrevented||u.altKey||u.currentTarget!==u.target)return;const v=u.ctrlKey||u.metaKey,g=u.key;switch(!0){case(g===" "&&a(f)):{u.preventDefault(),t.multiSelect&&u.shiftKey?e.expandSelectionRange(u,f):t.multiSelect?e.selectItem(u,f,!0):e.selectItem(u,f);break}case g==="Enter":{c(f)?(e.toggleItemExpansion(u,f),u.preventDefault()):a(f)&&(t.multiSelect?(u.preventDefault(),e.selectItem(u,f,!0)):e.isItemSelected(f)||(e.selectItem(u,f),u.preventDefault()));break}case g==="ArrowDown":{const m=la(e,f);m&&(u.preventDefault(),e.focusItem(u,m),t.multiSelect&&u.shiftKey&&a(m)&&e.selectItemFromArrowNavigation(u,f,m));break}case g==="ArrowUp":{const m=HA(e,f);m&&(u.preventDefault(),e.focusItem(u,m),t.multiSelect&&u.shiftKey&&a(m)&&e.selectItemFromArrowNavigation(u,f,m));break}case(g==="ArrowRight"&&!i||g==="ArrowLeft"&&i):{if(e.isItemExpanded(f)){const m=la(e,f);m&&(e.focusItem(u,m),u.preventDefault())}else c(f)&&(e.toggleItemExpansion(u,f),u.preventDefault());break}case(g==="ArrowLeft"&&!i||g==="ArrowRight"&&i):{if(c(f)&&e.isItemExpanded(f))e.toggleItemExpansion(u,f),u.preventDefault();else{const m=e.getItemMeta(f).parentId;m&&(e.focusItem(u,m),u.preventDefault())}break}case g==="Home":{a(f)&&t.multiSelect&&v&&u.shiftKey?e.selectRangeFromStartToItem(u,f):e.focusItem(u,po(e)),u.preventDefault();break}case g==="End":{a(f)&&t.multiSelect&&v&&u.shiftKey?e.selectRangeFromItemToEnd(u,f):e.focusItem(u,A1(e)),u.preventDefault();break}case g==="*":{e.expandAllSiblings(u,f),u.preventDefault();break}case(g==="a"&&v&&t.multiSelect&&!t.disableSelection):{e.selectAllNavigableItems(u),u.preventDefault();break}case(!v&&!u.shiftKey&&eD(g)):{const m=l(f,g);m!=null&&(e.focusItem(u,m),u.preventDefault());break}}}}}};L1.params={};const N1=({slots:e,slotProps:t})=>({contextValue:{icons:{slots:{collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,endIcon:e.endIcon},slotProps:{collapseIcon:t.collapseIcon,expandIcon:t.expandIcon,endIcon:t.endIcon}}}});N1.params={};const tD=[P1,au,cu,uu,$p,L1,N1],Po=()=>{const e=x.useContext(R1);if(e==null)throw new Error(["MUI X: Could not find the Tree View context.","It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join(` +`));return e};function nD(e){const{instance:t,selection:{multiSelect:n}}=Po(),r=t.isItemExpandable(e),i=t.isItemExpanded(e),o=t.isItemFocused(e),s=t.isItemSelected(e),l=t.isItemDisabled(e);return{disabled:l,expanded:i,selected:s,focused:o,handleExpansion:u=>{if(!l){o||t.focusItem(u,e);const f=n&&(u.shiftKey||u.ctrlKey||u.metaKey);r&&!(f&&t.isItemExpanded(e))&&t.toggleItemExpansion(u,e)}},handleSelection:u=>{l||(o||t.focusItem(u,e),n&&(u.shiftKey||u.ctrlKey||u.metaKey)?u.shiftKey?t.expandSelectionRange(u,e):t.selectItem(u,e,!0):t.selectItem(u,e))},preventSelection:u=>{(u.shiftKey||u.ctrlKey||u.metaKey||l)&&u.preventDefault()}}}const rD=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown"],F1=x.forwardRef(function(t,n){const{classes:r,className:i,displayIcon:o,expansionIcon:s,icon:l,label:a,itemId:c,onClick:d,onMouseDown:u}=t,f=K(t,rD),{disabled:v,expanded:g,selected:m,focused:b,handleExpansion:p,handleSelection:h,preventSelection:y}=nD(c),w=l||s||o,C=I=>{y(I),u&&u(I)},$=I=>{p(I),h(I),d&&d(I)};return k.jsxs("div",T({},f,{className:le(i,r.root,g&&r.expanded,m&&r.selected,b&&r.focused,v&&r.disabled),onClick:$,onMouseDown:C,ref:n,children:[k.jsx("div",{className:r.iconContainer,children:w}),k.jsx("div",{className:r.label,children:a})]}))});function iD(e){return Ge("MuiTreeItem",e)}const Nn=ze("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label"]),j1=Jh(k.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"TreeViewExpandIcon"),z1=Jh(k.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"TreeViewCollapseIcon");function Tp(e){const{children:t,itemId:n}=e,{wrapItem:r}=Po();return r({children:t,itemId:n})}Tp.propTypes={children:Km.node,itemId:Km.string.isRequired};const oD=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],sD=["ownerState"],lD=["ownerState"],aD=["ownerState"],cD=e=>{const{classes:t}=e;return qe({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],label:["label"],groupTransition:["groupTransition"]},iD,t)},uD=ee("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),dD=ee(F1,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${Nn.iconContainer}`]:t.iconContainer},t.label&&{[`& .${Nn.label}`]:t.label}]})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Nn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${Nn.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Nn.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gr(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Nn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${Nn.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${Nn.label}`]:T({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1)})),fD=ee(tp,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition})({margin:0,padding:0,paddingLeft:12}),hD=x.forwardRef(function(t,n){const{icons:r,runItemPlugins:i,selection:{multiSelect:o},disabledItemsFocusable:s,instance:l}=Po(),a=Ze({props:t,name:"MuiTreeItem"}),{children:c,className:d,slots:u,slotProps:f,ContentComponent:v=F1,ContentProps:g,itemId:m,id:b,label:p,onClick:h,onMouseDown:y,onBlur:w,onKeyDown:C}=a,$=K(a,oD),{contentRef:I,rootRef:P}=i(a),L=Ot(n,P),D=Ot(g==null?void 0:g.ref,I),O={expandIcon:(u==null?void 0:u.expandIcon)??r.slots.expandIcon??j1,collapseIcon:(u==null?void 0:u.collapseIcon)??r.slots.collapseIcon??z1,endIcon:(u==null?void 0:u.endIcon)??r.slots.endIcon,icon:u==null?void 0:u.icon,groupTransition:u==null?void 0:u.groupTransition},R=he=>Array.isArray(he)?he.length>0&&he.some(R):!!he,F=R(c),B=l.isItemExpanded(m),V=l.isItemFocused(m),q=l.isItemSelected(m),W=l.isItemDisabled(m),_=T({},a,{expanded:B,focused:V,selected:q,disabled:W}),M=cD(_),H=O.groupTransition??void 0,re=Rn({elementType:H,ownerState:{},externalSlotProps:f==null?void 0:f.groupTransition,additionalProps:{unmountOnExit:!0,in:B,component:"ul",role:"group"},className:M.groupTransition}),ae=B?O.collapseIcon:O.expandIcon,Dt=Rn({elementType:ae,ownerState:{},externalSlotProps:he=>B?T({},zn(r.slotProps.collapseIcon,he),zn(f==null?void 0:f.collapseIcon,he)):T({},zn(r.slotProps.expandIcon,he),zn(f==null?void 0:f.expandIcon,he))}),Ie=K(Dt,sD),et=F&&ae?k.jsx(ae,T({},Ie)):null,U=F?void 0:O.endIcon,xe=Rn({elementType:U,ownerState:{},externalSlotProps:he=>F?{}:T({},zn(r.slotProps.endIcon,he),zn(f==null?void 0:f.endIcon,he))}),dt=K(xe,lD),Qe=U?k.jsx(U,T({},dt)):null,kn=O.icon,mi=Rn({elementType:kn,ownerState:{},externalSlotProps:f==null?void 0:f.icon}),du=K(mi,aD),fu=kn?k.jsx(kn,T({},du)):null;let Oo;o?Oo=q:q&&(Oo=!0);function hu(he){!V&&(!W||s)&&he.currentTarget===he.target&&l.focusItem(he,m)}function pu(he){w==null||w(he),l.removeFocusedItem()}const mu=he=>{C==null||C(he),l.handleItemKeyDown(he,m)},gu=l.getTreeItemIdAttribute(m,b),vu=l.canItemBeTabbed(m)?0:-1;return k.jsx(Tp,{itemId:m,children:k.jsxs(uD,T({className:le(M.root,d),role:"treeitem","aria-expanded":F?B:void 0,"aria-selected":Oo,"aria-disabled":W||void 0,id:gu,tabIndex:vu},$,{ownerState:_,onFocus:hu,onBlur:pu,onKeyDown:mu,ref:L,children:[k.jsx(dD,T({as:v,classes:{root:M.content,expanded:M.expanded,selected:M.selected,focused:M.focused,disabled:M.disabled,iconContainer:M.iconContainer,label:M.label},label:p,itemId:m,onClick:h,onMouseDown:y,icon:fu,expansionIcon:et,displayIcon:Qe,ownerState:_},g,{ref:D})),c&&k.jsx(fD,T({as:H},re,{children:c}))]}))})}),pD=["slots","slotProps","apiRef"],mD=e=>{let{props:{slots:t,slotProps:n,apiRef:r},plugins:i,rootRef:o}=e,s=K(e.props,pD);const l={};i.forEach(d=>{Object.assign(l,d.params)});const a={plugins:i,rootRef:o,slots:t??{},slotProps:n??{},apiRef:r},c={};return Object.keys(s).forEach(d=>{const u=s[d];l[d]?a[d]=u:c[d]=u}),{pluginParams:a,slots:t,slotProps:n,otherProps:c}},gD=e=>{const{classes:t}=e;return qe({root:["root"]},_A,t)},vD=ee("ul",{name:"MuiRichTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"});function yD({slots:e,slotProps:t,label:n,id:r,itemId:i,children:o}){const s=(e==null?void 0:e.item)??hD,l=Rn({elementType:s,externalSlotProps:t==null?void 0:t.item,additionalProps:{itemId:i,id:r,label:n},ownerState:{itemId:i,label:n}});return k.jsx(s,T({},l,{children:o}))}const bD=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiRichTreeView"}),{pluginParams:i,slots:o,slotProps:s,otherProps:l}=mD({props:r,plugins:tD,rootRef:n}),{getRootProps:a,contextValue:c,instance:d}=FA(i),u=gD(r),f=(o==null?void 0:o.root)??vD,v=Rn({elementType:f,externalSlotProps:s==null?void 0:s.root,externalForwardedProps:l,className:u.root,getSlotProps:a,ownerState:r}),g=d.getItemsToRender(),m=({label:b,itemId:p,id:h,children:y})=>k.jsx(yD,{slots:o,slotProps:s,label:b,id:h,itemId:p,children:y==null?void 0:y.map(m)},p);return k.jsx(jA,{value:c,children:k.jsx(f,T({},v,{children:g.map(m)}))})}),xD=({itemId:e,children:t})=>{const{instance:n,selection:{multiSelect:r}}=Po(),i={expandable:!!(Array.isArray(t)?t.length:t),expanded:n.isItemExpanded(e),focused:n.isItemFocused(e),selected:n.isItemSelected(e),disabled:n.isItemDisabled(e)};return{interactions:{handleExpansion:a=>{if(i.disabled)return;i.focused||n.focusItem(a,e);const c=r&&(a.shiftKey||a.ctrlKey||a.metaKey);i.expandable&&!(c&&n.isItemExpanded(e))&&n.toggleItemExpansion(a,e)},handleSelection:a=>{if(i.disabled)return;i.focused||n.focusItem(a,e),r&&(a.shiftKey||a.ctrlKey||a.metaKey)?a.shiftKey?n.expandSelectionRange(a,e):n.selectItem(a,e,!0):n.selectItem(a,e)}},status:i}},wD=e=>{const{runItemPlugins:t,selection:{multiSelect:n},disabledItemsFocusable:r,instance:i,publicAPI:o}=Po(),{id:s,itemId:l,label:a,children:c,rootRef:d}=e,{rootRef:u,contentRef:f}=t(e),{interactions:v,status:g}=xD({itemId:l,children:c}),m=i.getTreeItemIdAttribute(l,s),b=Ot(d,u),p=O=>R=>{var B;if((B=O.onFocus)==null||B.call(O,R),R.defaultMuiPrevented)return;const F=!g.disabled||r;!g.focused&&F&&R.currentTarget===R.target&&i.focusItem(R,l)},h=O=>R=>{var F;(F=O.onBlur)==null||F.call(O,R),!R.defaultMuiPrevented&&i.removeFocusedItem()},y=O=>R=>{var F;(F=O.onKeyDown)==null||F.call(O,R),!R.defaultMuiPrevented&&i.handleItemKeyDown(R,l)},w=O=>R=>{var F;(F=O.onClick)==null||F.call(O,R),!R.defaultMuiPrevented&&(v.handleExpansion(R),v.handleSelection(R))},C=O=>R=>{var F;(F=O.onMouseDown)==null||F.call(O,R),!R.defaultMuiPrevented&&(R.shiftKey||R.ctrlKey||R.metaKey||g.disabled)&&R.preventDefault()};return{getRootProps:(O={})=>{const R=T({},ar(e),ar(O));let F;return n?F=g.selected:g.selected&&(F=!0),T({},R,{ref:b,role:"treeitem",tabIndex:i.canItemBeTabbed(l)?0:-1,id:m,"aria-expanded":g.expandable?g.expanded:void 0,"aria-selected":F,"aria-disabled":g.disabled||void 0},O,{onFocus:p(R),onBlur:h(R),onKeyDown:y(R)})},getContentProps:(O={})=>{const R=ar(O);return T({},R,O,{ref:f,onClick:w(R),onMouseDown:C(R),status:g})},getGroupTransitionProps:(O={})=>{const R=ar(O);return T({},R,{unmountOnExit:!0,component:"ul",role:"group",in:g.expanded,children:c},O)},getIconContainerProps:(O={})=>{const R=ar(O);return T({},R,O)},getLabelProps:(O={})=>{const R=T({},ar(e),ar(O));return T({},R,{children:a},O)},rootRef:b,status:g,publicAPI:o}};function kD(e){const{slots:t,slotProps:n,status:r}=e,i=Po(),o=T({},i.icons.slots,{expandIcon:i.icons.slots.expandIcon??j1,collapseIcon:i.icons.slots.collapseIcon??z1}),s=i.icons.slotProps;let l;t!=null&&t.icon?l="icon":r.expandable?r.expanded?l="collapseIcon":l="expandIcon":l="endIcon";const a=(t==null?void 0:t[l])??o[l],c=Rn({elementType:a,externalSlotProps:d=>T({},zn(s[l],d),zn(n==null?void 0:n[l],d)),ownerState:{}});return a?k.jsx(a,T({},c)):null}const CD=ee("li",{name:"MuiTreeItem2",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),SD=ee("div",{name:"MuiTreeItem2",slot:"Content",overridesResolver:(e,t)=>t.content,shouldForwardProp:e=>W$(e)&&e!=="status"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`& .${Nn.groupTransition}`]:{margin:0,padding:0,paddingLeft:12},variants:[{props:({status:t})=>t.disabled,style:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"}},{props:({status:t})=>t.focused,style:{backgroundColor:(e.vars||e).palette.action.focus}},{props:({status:t})=>t.selected,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gr(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},{props:({status:t})=>t.selected&&t.focused,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}]}));ee("div",{name:"MuiTreeItem2",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>T({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1));const $D=ee("div",{name:"MuiTreeItem2",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}}),TD=ee(tp,{name:"MuiTreeItem2",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition})({margin:0,padding:0,paddingLeft:12});var Ip={},gd={};const ID=Jn(DI);var Iv;function B1(){return Iv||(Iv=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=ID}(gd)),gd}var ED=Wc;Object.defineProperty(Ip,"__esModule",{value:!0});var V1=Ip.default=void 0,RD=ED(B1()),PD=k;V1=Ip.default=(0,RD.default)((0,PD.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"}),"ContentCopyOutlined");const OD=({text:e,message:t})=>{const n=qc(),[r,i]=St.useState(null),[o,s]=x.useState(!1),l=c=>{navigator.clipboard.writeText(e),i(r?null:c.currentTarget),s(!0),setTimeout(()=>{s(!1)},1e3)},a=()=>{s(!1)};return t||(t=`Copied ${e}`),k.jsxs(k.Fragment,{children:[k.jsx(mt,{className:"icon",onClick:l,sx:{width:"20px",display:"flex",alignItems:"center",justifyContent:"center"},children:k.jsx(V1,{sx:{height:"16px"}})}),k.jsx(bR,{id:"placement-popper",open:o,anchor:r,placement:"top-start",offset:4,children:k.jsx(EE,{onClickAway:a,children:k.jsx($R,{in:o,timeout:500,children:k.jsx(mt,{role:"presentation",sx:{padding:"2px",color:n.palette.secondary.contrastText,backgroundColor:n.palette.secondary.main,borderRadius:"2px"},children:t})})})})]})};var Ep={},_D=Wc;Object.defineProperty(Ep,"__esModule",{value:!0});var H1=Ep.default=void 0,AD=_D(B1()),DD=k;H1=Ep.default=(0,AD.default)((0,DD.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"}),"OpenInNew");const MD=({network:e,type:t,id:n})=>{const r=`https://${e}.suivision.xyz/${t}/${n}`;return k.jsx(Qi,{className:"icon",color:"inherit",href:r,target:"_blank",rel:"noopener noreferrer",sx:{width:"20px",display:"flex",alignItems:"center",justifyContent:"center"},children:k.jsx(H1,{sx:{height:"16px"}})})},LD=ee(SD)(({})=>({padding:0}));function ND(e){return e=e.trim(),e=e.replace(/^0x/,""),"0x"+(e.length>5?e.slice(0,2)+"~"+e.slice(-3):e)}const FD=e=>{const n=String(e).split(/(0x|~|::)/),r={fontSize:"9px",fontWeight:"lighter"},i={...r,verticalAlign:"middle",marginRight:"-1px",marginLeft:"-1px"};return n.map((o,s)=>{const l=o==="0x",a=o==="~",c=o==="::",d=!l&&!a&&!c;return k.jsxs(x.Fragment,{children:[l&&k.jsx("span",{style:r,children:"0x"}),a&&k.jsx("span",{style:r,children:"…"}),c&&k.jsxs(k.Fragment,{children:[k.jsx("span",{style:i,children:":"}),k.jsx("span",{style:i,children:":"})]}),d&&o]},s)})},jD=x.forwardRef(function(t,n){const{workdir:r,id:i,itemId:o,disabled:s,children:l,...a}=t;let{label:c}=t,[d,u]=x.useState(!1),f=!1,v=!1,g="(empty)",m,b,p;const h=o.charAt(0);if(h.length>0){if(h>="0"&&h<="9")f=!0;else if(h===dx)v=!0,o===lp&&(g=`To get started, do '${r} publish' in a terminal`);else if(h===ux){const R=o.split("-").pop();if(c&&R){const F=ND(R);c=c.toString().replace(fx,F),m=R,r!="localnet"&&(p="0x"+R,b="package")}}}const{getRootProps:y,getContentProps:w,getIconContainerProps:C,getLabelProps:$,getGroupTransitionProps:I,status:P}=wD({id:i,itemId:o,children:l,label:c,disabled:s,rootRef:n});let L={padding:0,whiteSpace:"nowrap",fontSize:"13px",textOverflow:"ellipsis",overflow:"hidden"};f?(L.fontSize="11px",L.textTransform="uppercase",L.fontWeight="bold"):v?L.whiteSpace="normal":(L.letterSpacing=0,L.fontFamily="monospace");const D=()=>k.jsxs(k.Fragment,{children:[m&&k.jsx(OD,{text:m,message:"Copied"}),p&&b&&k.jsx(MD,{network:r,type:b,id:p})]}),O=()=>k.jsxs(mt,{display:"flex",overflow:"hidden",justifyContent:"space-between",width:"100%",onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[k.jsx(mt,{flexGrow:1,overflow:"hidden",children:k.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:k.jsx("span",{style:L,...$(),children:FD(c)})})}),d&&D()]});return k.jsx(Tp,{itemId:o,children:k.jsxs(CD,{...y(a),children:[k.jsxs(LD,{...w(),children:[k.jsx($D,{...C(),children:k.jsx(kD,{status:P})}),v?k.jsx(en,{variant:"caption",sx:L,...$(),children:g}):O()]}),l&&k.jsx(TD,{...I()})]})})});function zD({items:e,workdir:t}){return k.jsx(bD,{"aria-label":"icon expansion",sx:{position:"relative"},defaultExpandedItems:["3"],items:e,slots:{item:n=>k.jsx(jD,{...n,workdir:t})}})}const U1=[{id:Ua,label:"Recent Packages",children:[{id:lp,label:""}]}];class Df{constructor(t,n){we(this,"workdir");we(this,"workdirIdx");we(this,"methodUuid");we(this,"dataUuid");we(this,"tree");this.workdir=t,this.workdirIdx=n,this.methodUuid="",this.dataUuid="",this.tree=U1}}function BD(e,t){if(!t.isLoaded)return e.tree==U1?e:new Df(e.workdir,e.workdirIdx);if(e.methodUuid===t.getMethodUuid()&&e.dataUuid===t.getDataUuid())return e;let n=new Df(e.workdir,e.workdirIdx);n.methodUuid=t.getMethodUuid(),n.dataUuid=t.getDataUuid(),n.tree=[];let r=t.getJson();if(!r)return console.log("Missing json in workdir_json: "+JSON.stringify(t)),e;if(!r.moveConfigs)return console.log("Missing moveConfigs in workdir_json: "+JSON.stringify(t)),e;const i=r.moveConfigs;let o=[],s=[];for(let l in i){const a=i[l];if(a.latestPackage!=null){let c=`${Ua}-${l}`,d=vd(c,a.latestPackage);d&&o.push(d),c=`${Ju}-${l}`,d=vd(c,a.latestPackage),d&&s.push(d)}if(a.olderPackages!=null)for(let c of a.olderPackages){const d=`${Ju}-${l}`,u=vd(d,c);u&&s.push(u)}}return o.length==0&&(o=[{id:lp,label:""}]),n.tree.push({id:Ua,label:"Recent Packages",children:o}),n.tree.push({id:Ju,label:"All Packages",children:s}),n}function vd(e,t){const n=t.packageName;if(!n){console.log("Missing packageName in package json: "+JSON.stringify(t));return}const r=t.packageId;if(!r){console.log("Missing packageId in package json: "+JSON.stringify(t));return}const i=`${fx}::${n}`;return{id:`${ux}-${e}-${r}`,label:i}}function VD({workdir:e,workdirIdx:t,packagesTrigger:n,packagesJson:r}){const[i,o]=x.useState(new Df(e,t));return x.useEffect(()=>{try{const s=BD(i,r);s!==i&&o(s)}catch(s){console.error(`Error updating ExplorerTreeView: ${s}`)}},[e,t,n,r]),k.jsx(k.Fragment,{children:k.jsx(zD,{items:i.tree,workdir:e})})}function W1(e){let t=e.issue,n="";const r=t.match(/,homedir=(.*)/);return r&&(n=r[1],t=t.replace(/,homedir=(.*)/,"")),t==Hg?k.jsxs(en,{variant:"body2",children:[Hg,k.jsx("br",{}),"Check ",k.jsx(Qi,{href:"https://suibase.io/how-to/install",children:"https://suibase.io/how-to/install"})]}):t==Wg?k.jsxs(en,{variant:"body2",children:[Wg,k.jsx("br",{}),"Please install Sui prerequisites",k.jsx("br",{}),"Check ",k.jsx(Qi,{href:"https://docs.sui.io/guides/developer/getting-started/sui-install",children:"https://docs.sui.io"})]}):t==Ug?k.jsxs(en,{variant:"body2",children:[Ug,k.jsx("br",{}),"Initialize your shell to have ",n,"/.local/bin added to the $PATH.",k.jsx("br",{}),"Check ",k.jsx(Qi,{href:"https://suibase.io/how-to/install",children:"https://suibase.io/how-to/install"})]}):k.jsx(en,{variant:"body2",children:t})}const HD=()=>{const{common:e,workdirs:t,statusTrigger:n,commonTrigger:r,packagesTrigger:i}=px(Tf,{trackStatus:!0,trackPackages:!0}),[o,s]=x.useState(""),[l,a]=x.useState(e.current.activeWorkdir),[c,d]=x.useState(!1),u=p=>{const h=p.target.value;if(h!==e.current.activeWorkdir){s(h),a(h);const y=Gn.indexOf(h);y!==-1&&Xi.postMessage(new hx(Tf,y,"set-active"))}else s(""),a(e.current.activeWorkdir)};x.useEffect(()=>(o!==""?o===e.current.activeWorkdir&&(s(""),a(e.current.activeWorkdir)):l!==e.current.activeWorkdir&&a(e.current.activeWorkdir),()=>{}),[o,l,e.current.activeWorkdir,r]),x.useEffect(()=>{let p=!0;for(let h=0;hk.jsx(mt,{flexDirection:"column",justifyContent:"center",width:"100%",paddingLeft:1,paddingTop:1,children:e.current.activeLoaded?k.jsxs(k.Fragment,{children:[k.jsx(PA,{value:l,onChange:u,children:Gn.map((p,h)=>{const y=t[h],w=p===l,C=!w&&y.workdirStatus.status==="DISABLED";return k.jsx(OA,{value:p,selected:w,disabled:C,children:Sf[h]},p)})}),o&&k.jsx(Ha,{size:15,style:{marginLeft:"3px"}})]}):k.jsx(Ha,{size:15})}),v=()=>k.jsx(mt,{display:"flex",justifyContent:"center",width:"100%",paddingTop:1,children:k.jsxs(en,{variant:"caption",sx:{alignContent:"center",fontSize:"9px"},children:["Need help? Try the ",k.jsx(Qi,{color:"inherit",href:"https://suibase.io/community/",target:"_blank",rel:"noopener noreferrer",children:"sui community"})]})}),g=()=>k.jsx(mt,{width:"100%",paddingTop:1,children:e.current.activeLoaded&&k.jsx(VD,{packagesTrigger:i,packagesJson:t[e.current.activeWorkdirIdx].workdirPackages,workdir:e.current.activeWorkdir,workdirIdx:e.current.activeWorkdirIdx})}),m=()=>k.jsx(mt,{display:"flex",justifyContent:"center",width:"100%",paddingTop:1,children:k.jsxs(en,{variant:"body2",children:["There is no workdir enabled. Do 'testnet start' command in a terminal or try the ",k.jsx(Qi,{component:"button",variant:"body2",onClick:()=>{Xi.postMessage(new nO)},children:"dashboard"}),"."]})}),b=!e.current.setupIssue&&!c;return k.jsxs(k.Fragment,{children:[e.current.setupIssue&&k.jsx(W1,{issue:e.current.setupIssue}),!e.current.setupIssue&&c&&m(),b&&f(),v(),b&&g()]})},UD=ee(pP)(({theme:e})=>({width:28,height:16,padding:0,display:"flex","&:active":{"& .MuiSwitch-thumb":{width:15},"& .MuiSwitch-switchBase.Mui-checked":{transform:"translateX(9px)"}},"& .MuiSwitch-switchBase":{padding:2,"&.Mui-checked":{transform:"translateX(12px)",color:"#fff","& + .MuiSwitch-track":{opacity:1,backgroundColor:e.palette.mode==="dark"?"#177ddc":"#1890ff"}}},"& .MuiSwitch-thumb":{boxShadow:"0 2px 4px 0 rgb(0 35 11 / 20%)",width:12,height:12,borderRadius:6,transition:e.transitions.create(["width"],{duration:200})},"& .MuiSwitch-track":{borderRadius:16/2,opacity:1,backgroundColor:"rgba(255,255,255,.35)",boxSizing:"border-box"}}));class WD{constructor(){we(this,"showSpinner");we(this,"spinnerForSwitch");we(this,"requestedChange");we(this,"switchState");we(this,"switchSkeleton");we(this,"spinnerForUpdate");this.showSpinner=!1,this.spinnerForSwitch=!1,this.spinnerForUpdate=!1,this.requestedChange=void 0,this.switchState=!1,this.switchSkeleton=!0}}const GD=()=>{const{commonTrigger:e,statusTrigger:t,common:n,workdirs:r}=px($f,{trackStatus:!0}),i={inputProps:{"aria-label":"workdir on/off"}},[o,s]=x.useState(!1),[l,a]=x.useState(Gn.map(()=>new WD)),c=(f,v)=>{a(g=>g.map((m,b)=>b===f?{...m,...v}:m))},d=f=>{switch(f.workdirStatus.status){case"DEGRADED":case"OK":return!0;default:return!1}},u=(f,v)=>{const g=r[f],m=d(g);if(v!==m){c(f,{requestedChange:v,switchState:v,spinnerForSwitch:!0});const b=v?"start":"stop";Xi.postMessage(new hx($f,f,b))}else c(f,{requestedChange:void 0,switchState:m,spinnerForSwitch:!1})};return x.useEffect(()=>(l.forEach((f,v)=>{const g=r[v],m=d(g);f.requestedChange!==void 0?f.requestedChange===m?c(v,{requestedChange:void 0,switchState:m,spinnerForSwitch:!1}):f.spinnerForSwitch||c(v,{spinnerForSwitch:!0}):f.switchState!==m&&c(v,{switchState:m,spinnerForSwitch:!1});const b=f.spinnerForSwitch||f.spinnerForUpdate;f.showSpinner!==b&&c(v,{showSpinner:b})}),()=>{}),[e,t,r,l]),x.useEffect(()=>{let f=!0;for(let v=0;v{const g=r[v],m=o||!g.workdirStatus.isLoaded||v!==n.current.activeWorkdirIdx;return k.jsxs(Vg,{sx:{p:0,m:0,"&:last-child td, &:last-child th":{border:0}},children:[k.jsx(sr,{sx:{width:115,maxWidth:115,pt:"6px",pb:"6px",pl:0,pr:0,m:0},children:k.jsxs(mt,{display:"flex",alignItems:"center",flexWrap:"nowrap",children:[k.jsx(mt,{width:"10px",display:"flex",justifyContent:"left",alignItems:"center",children:f.showSpinner&&k.jsx(Ha,{size:9})}),k.jsx(mt,{width:"50px",display:"flex",justifyContent:"center",alignItems:"center",children:k.jsx(UD,{...i,size:"small",disabled:f.showSpinner,checked:f.switchState,onChange:b=>u(v,b.target.checked)})}),k.jsx(mt,{width:"50px",display:"flex",justifyContent:"left",alignItems:"center",children:k.jsx(_R,{variant:"dot",color:"info",anchorOrigin:{vertical:"top",horizontal:"left"},invisible:m,children:k.jsx(en,{variant:"body2",sx:{pl:"2px"},children:Sf[v]})})})]})}),k.jsx(sr,{align:"center",sx:{width:105,maxWidth:105,p:0,m:0},children:k.jsx(en,{variant:"subtitle2",children:g.workdirStatus.status})}),k.jsx(sr,{align:"center",sx:{width:65,maxWidth:65,p:0,m:0},children:k.jsx(en,{variant:"body2",children:g.workdirStatus.isLoaded&&g.workdirStatus.suiClientVersionShort})}),k.jsx(sr,{})]},Sf[v])})})]})})]}):k.jsx(Ha,{size:15})]})},jl=e=>{try{return getComputedStyle(document.documentElement).getPropertyValue(e).trim()||$n[500]}catch(t){return console.error(`Error getting CSS variable ${e}: ${t}`),$n[500]}},qD=e=>{const[t,n]=x.useState(getComputedStyle(document.documentElement).getPropertyValue(e));return x.useEffect(()=>{const r=setInterval(()=>{const i=getComputedStyle(document.documentElement).getPropertyValue(e);i!==t&&n(i)},1e3);return()=>clearInterval(r)},[t,e]),t};function QD(){const{setMessage:e}=B0(),t=qD("--vscode-editor-foreground"),n=St.useMemo(()=>Kh({components:{MuiCssBaseline:{styleOverrides:{body:{padding:0}}}},palette:{background:{default:jl("--vscode-editor-background")},text:{primary:jl("--vscode-editor-foreground")},primary:{main:jl("--vscode-editor-foreground")},secondary:{main:jl("--vscode-editor-foreground")}}}),[t]);x.useEffect(()=>{const i=o=>{o.data&&e(o.data)};return window.addEventListener("message",i),()=>window.removeEventListener("message",i)},[e]);let r;switch(globalThis.suibase_view_key){case $f:r=k.jsx(GD,{});break;case KP:r=k.jsx(qP,{});break;case Tf:r=k.jsx(HD,{});break;default:r=null}return k.jsx(k.Fragment,{children:k.jsxs(EI,{theme:n,children:[k.jsx(JR,{}),k.jsx("main",{children:r})]})})}Zx().register(RA);bd.createRoot(document.getElementById("root")).render(k.jsxs(k.Fragment,{children:[k.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),k.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com"}),k.jsx("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap"}),k.jsx(St.StrictMode,{children:k.jsx($C,{children:k.jsx(QD,{})})})]})); diff --git a/typescript/vscode-extension/webview-ui/src/components/CopyToClipboardButton.tsx b/typescript/vscode-extension/webview-ui/src/components/CopyToClipboardButton.tsx index 0651bb97..f44af819 100644 --- a/typescript/vscode-extension/webview-ui/src/components/CopyToClipboardButton.tsx +++ b/typescript/vscode-extension/webview-ui/src/components/CopyToClipboardButton.tsx @@ -30,14 +30,16 @@ const CopyToClipboardButton = ({text,message}: CopyToClipboardButtonProps) => { setOpen(false) }; - // Default message to "{text} copied!" if message not specified. + // Default message to "{text} copied" if message not specified. if (!message) { message = `Copied ${text}` } return ( <> - + + + ({ padding: 0, @@ -34,7 +33,7 @@ function shortAddr( addr: string ): string { addr = addr.replace(/^0x/, ""); // Given a string, take the first two character of addr, append a "~" and then append the last 3 character of addr. - // Example: "1234567890" => "12~890" + // Example: "1234567890" => "0x12~890" return "0x" + (addr.length > 5 ? addr.slice(0,2) + "~" + addr.slice(-3) : addr); } @@ -49,14 +48,25 @@ interface CustomTreeItemProps // Intended as the last minor styling "touch-up" done prior to rendering. const labelInnerStyling = (label: React.ReactNode) => { const str = String(label); - const parts = str.split('0x'); - - return parts.map((part, i) => ( - - {i > 0 && 0x} - {part} - - )); + const parts = str.split(/(0x|~|::)/); + + const lightStyle = {fontSize: "9px", fontWeight: 'lighter'}; + const colonStyle = {...lightStyle, verticalAlign: 'middle', marginRight: '-1px', marginLeft: '-1px'}; + + return parts.map((part, i) => { + const is0x = part === '0x'; + const isEllipsis = part === '~'; + const isColon = part === '::'; + const isRest = !is0x && !isEllipsis && !isColon; + return ( + + {is0x && 0x} + {isEllipsis && } + {isColon && <>::} + {isRest && part} + + ); + }); }; const CustomTreeItem = React.forwardRef(function CustomTreeItem( @@ -74,6 +84,8 @@ const CustomTreeItem = React.forwardRef(function CustomTreeItem( let is_empty_folder = false; let empty_folder_label = '(empty)'; let to_clipboard: string | undefined = undefined; + let to_browser_type: string | undefined = undefined; + let to_browser_id: string | undefined = undefined; const first_char = itemId.charAt(0); if (first_char.length > 0) { if (first_char >= '0' && first_char <= '9') { @@ -91,6 +103,10 @@ const CustomTreeItem = React.forwardRef(function CustomTreeItem( const shortPackageId = shortAddr(packageId); label = label.toString().replace(TREE_ID_INSERT_ADDR, shortPackageId); to_clipboard = packageId; + if (workdir != "localnet") { + to_browser_id = "0x" + packageId; + to_browser_type = "package"; + } } } } @@ -123,9 +139,10 @@ const CustomTreeItem = React.forwardRef(function CustomTreeItem( return ( <> {to_clipboard && ( - - - + + )} + {to_browser_id && to_browser_type && ( + )} ); diff --git a/typescript/vscode-extension/webview-ui/src/components/ToBrowserButton.tsx b/typescript/vscode-extension/webview-ui/src/components/ToBrowserButton.tsx new file mode 100644 index 00000000..62d57f4c --- /dev/null +++ b/typescript/vscode-extension/webview-ui/src/components/ToBrowserButton.tsx @@ -0,0 +1,21 @@ +import { Link} from '@mui/material'; + +import OpenInNewIcon from '@mui/icons-material/OpenInNew'; + +interface ToBrowserButtonProps { + network: string; // e.g. "testnet" + type: string; // e.g. "package" + id: string; // e.g. a package ID in hexadecimal. +} + +const ToBrowserButton = ({network,type,id}: ToBrowserButtonProps) => { + const url = `https://${network}.suivision.xyz/${type}/${id}`; + + return ( + + + + ); +} + +export default ToBrowserButton \ No newline at end of file