@malloy-publisher/app 0.0.123 → 0.0.124

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-D3aW1y6T.es-CRu3QO-y.js","assets/html-PSPajZka.es-BayZgXUb.js","assets/javascript-fa8UlHZE.es-ySlJ1b_l.js","assets/css-D1aVdRIU.es-BPhBrDlE.js","assets/angular-ts-Jud40GrY.es-ZQeME4ih.js","assets/scss-B_hSZppj.es-BurBaP11.js","assets/apl-pE3PRTDr.es-CQSepgku.js","assets/xml-Ch1q_kJp.es-af2B2Zxm.js","assets/java-B7odJ7Ap.es-xI-RfyKK.js","assets/json-71t8ZF9g.es-BQoSv7ci.js","assets/astro-Be6fybGX.es-fPsVT2Pm.js","assets/typescript-buWNZFwO.es-Dj6nwHGl.js","assets/postcss-BZ3MNRIJ.es-B3ZDOciz.js","assets/blade-DmXp5Zcz.es-D3zQbxlG.js","assets/sql-DCkt643-.es-COK4E0Yg.js","assets/bsl-NPX_d-bb.es-CKrxbqO6.js","assets/sdbl-BBamrXFL.es-BLhTXw86.js","assets/cairo-17kO8-kb.es-N2Uzg40c.js","assets/python-xYxLFJY-.es-DhUJRlN_.js","assets/cobol-BzcJm6ie.es-BWBq31KV.js","assets/coffee-q2iaxUnQ.es-B85jwlP6.js","assets/cpp-CPQtoCcU.es-D1V2BO11.js","assets/regexp-GiFkbxS-.es-DWJ3fJO_.js","assets/glsl-BYTq1Tfl.es-ELtdM8O0.js","assets/c-DASdrs7p.es-C3t2pwGQ.js","assets/crystal-BY_Cg265.es-H3j-N6XT.js","assets/shellscript-Dn0-btNd.es-atvbtKCR.js","assets/edge-DI6_BHKG.es-CysQ3joS.js","assets/html-derivative-Brb3b4aI.es-BOeRDW72.js","assets/elixir-ic9y5jcd.es-BhdVfZIc.js","assets/elm-DxnUqUaW.es-BM2_y8XT.js","assets/erb-Cbj2YePa.es-DRu4t7o3.js","assets/ruby-cs7BSa_9.es-CPbNUT0O.js","assets/haml-4TJ757dz.es-DgP9dPqU.js","assets/graphql-g3nHRc0M.es-DSxiSR3X.js","assets/jsx-Bkesy5tT.es-BAng5TT0.js","assets/tsx-DiGsgWT8.es-B6W0miNI.js","assets/lua-DeXVjwzF.es-Dr4fCD2G.js","assets/yaml-Bbg74JKr.es-CVw76BM1.js","assets/fortran-fixed-form-DECY15PY.es-DU-ZL2d9.js","assets/fortran-free-form-CNDsBFUj.es-DKXYxT9g.js","assets/fsharp-D2ZqviWP.es-BxlBxsP5.js","assets/markdown-B6guhLWd.es-UIAJJxZW.js","assets/gdresource-RIsK8sku.es-B20oF6eU.js","assets/gdshader-BGJEsM2Z.es-SKMF96pI.js","assets/gdscript-D7aheHm-.es-DfxzS6Rs.js","assets/git-commit-BRJ1E4Bx.es-BbGpbqw6.js","assets/diff-XmNrvgM1.es-BgYniUM_.js","assets/git-rebase-C3X7aMpn.es-BtbFLN_-.js","assets/glimmer-js-C4MQf3Na.es-BEVrinj1.js","assets/glimmer-ts-CoYpqZrZ.es-BREYyOZ9.js","assets/hack-wPAsyujS.es-BZgRSYeF.js","assets/handlebars-7GDLw__F.es-9gasINI1.js","assets/http-CWBcr-Ch.es-BydQIEc3.js","assets/hxml-DLduiIv3.es-KtyOMmRZ.js","assets/haxe-CZZ33vZw.es-C5wWYbrZ.js","assets/imba-BEYqRZzB.es-CMdLgtbc.js","assets/jinja-DKLHYjK0.es-Bc5vrI9a.js","assets/jison-CzPfUIvM.es-FIbl5Mke.js","assets/julia-B_r6juN7.es-UTBdB3hN.js","assets/r-F-9I-ITZ.es-CwjWoCRV.js","assets/latex-GxBxlqbc.es-BIcleNUg.js","assets/tex-B0y3cEZp.es-sNFHINbC.js","assets/liquid-BxBkR-z5.es-BPU8qCnT.js","assets/marko-DwPYPpB3.es-DWcUhJ8-.js","assets/less-DQA4v-Nm.es-BfCpw3nA.js","assets/mdc-X4YjkufV.es-CkjSLJEI.js","assets/nginx-ChI-VqNT.es-DWZcbbz-.js","assets/nim-BiJA-5u7.es-znXiz4wV.js","assets/perl-CkXYjL3t.es-BGcPZ9HO.js","assets/php-q40Yjh5d.es-BkXnuPYP.js","assets/pug-Br4hpvIv.es-DSNbVJpq.js","assets/qml-D5gi21kK.es-DPPvKkcg.js","assets/razor-Bt_t1YJb.es-CZnAzo4o.js","assets/csharp-CYWRhZ2R.es-D9R-vmeu.js","assets/rst-BmKw97ch.es-CR4pK9fb.js","assets/cmake-Dr-A3iJx.es-DbXoA79R.js","assets/sas-DgvHx4mL.es-CucEgNpN.js","assets/shaderlab-U9mqcu_f.es-BbQCwWDD.js","assets/hlsl-3-lv4gi7.es-ifBTmRxC.js","assets/shellsession-LvXGClmj.es-BA33EWkN.js","assets/soy-C0yEn39K.es-BwliuvcW.js","assets/sparql-CuZaxpno.es-DA2vjzn9.js","assets/turtle-BJ2wmjPc.es-BMR_PYu6.js","assets/stata-Dv81f34z.es-CMwo8ydZ.js","assets/svelte-SoJd35Jr.es-CClskEeK.js","assets/templ-C7he2afp.es-DoaZGgQ7.js","assets/go-BErP6iv1.es-B1SYOhNW.js","assets/ts-tags-C5-4VQhf.es-BAFqzONk.js","assets/twig-OmkATFdv.es-Bjz-OhEW.js","assets/vue-DCwwWMGI.es-Ctq8hiPI.js","assets/vue-html-sRE_Ny23.es-By6muIb_.js","assets/xsl-DyL8yqXw.es-DIeMqyL3.js","assets/index-DiPnMvhX.js","assets/index-2wN22fP5.js","assets/index.umd-DaPh4mA_.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-D3aW1y6T.es-CRu3QO-y.js","assets/html-PSPajZka.es-BayZgXUb.js","assets/javascript-fa8UlHZE.es-ySlJ1b_l.js","assets/css-D1aVdRIU.es-BPhBrDlE.js","assets/angular-ts-Jud40GrY.es-ZQeME4ih.js","assets/scss-B_hSZppj.es-BurBaP11.js","assets/apl-pE3PRTDr.es-CQSepgku.js","assets/xml-Ch1q_kJp.es-af2B2Zxm.js","assets/java-B7odJ7Ap.es-xI-RfyKK.js","assets/json-71t8ZF9g.es-BQoSv7ci.js","assets/astro-Be6fybGX.es-fPsVT2Pm.js","assets/typescript-buWNZFwO.es-Dj6nwHGl.js","assets/postcss-BZ3MNRIJ.es-B3ZDOciz.js","assets/blade-DmXp5Zcz.es-D3zQbxlG.js","assets/sql-DCkt643-.es-COK4E0Yg.js","assets/bsl-NPX_d-bb.es-CKrxbqO6.js","assets/sdbl-BBamrXFL.es-BLhTXw86.js","assets/cairo-17kO8-kb.es-N2Uzg40c.js","assets/python-xYxLFJY-.es-DhUJRlN_.js","assets/cobol-BzcJm6ie.es-BWBq31KV.js","assets/coffee-q2iaxUnQ.es-B85jwlP6.js","assets/cpp-CPQtoCcU.es-D1V2BO11.js","assets/regexp-GiFkbxS-.es-DWJ3fJO_.js","assets/glsl-BYTq1Tfl.es-ELtdM8O0.js","assets/c-DASdrs7p.es-C3t2pwGQ.js","assets/crystal-BY_Cg265.es-H3j-N6XT.js","assets/shellscript-Dn0-btNd.es-atvbtKCR.js","assets/edge-DI6_BHKG.es-CysQ3joS.js","assets/html-derivative-Brb3b4aI.es-BOeRDW72.js","assets/elixir-ic9y5jcd.es-BhdVfZIc.js","assets/elm-DxnUqUaW.es-BM2_y8XT.js","assets/erb-Cbj2YePa.es-DRu4t7o3.js","assets/ruby-cs7BSa_9.es-CPbNUT0O.js","assets/haml-4TJ757dz.es-DgP9dPqU.js","assets/graphql-g3nHRc0M.es-DSxiSR3X.js","assets/jsx-Bkesy5tT.es-BAng5TT0.js","assets/tsx-DiGsgWT8.es-B6W0miNI.js","assets/lua-DeXVjwzF.es-Dr4fCD2G.js","assets/yaml-Bbg74JKr.es-CVw76BM1.js","assets/fortran-fixed-form-DECY15PY.es-DU-ZL2d9.js","assets/fortran-free-form-CNDsBFUj.es-DKXYxT9g.js","assets/fsharp-D2ZqviWP.es-BxlBxsP5.js","assets/markdown-B6guhLWd.es-UIAJJxZW.js","assets/gdresource-RIsK8sku.es-B20oF6eU.js","assets/gdshader-BGJEsM2Z.es-SKMF96pI.js","assets/gdscript-D7aheHm-.es-DfxzS6Rs.js","assets/git-commit-BRJ1E4Bx.es-BbGpbqw6.js","assets/diff-XmNrvgM1.es-BgYniUM_.js","assets/git-rebase-C3X7aMpn.es-BtbFLN_-.js","assets/glimmer-js-C4MQf3Na.es-BEVrinj1.js","assets/glimmer-ts-CoYpqZrZ.es-BREYyOZ9.js","assets/hack-wPAsyujS.es-BZgRSYeF.js","assets/handlebars-7GDLw__F.es-9gasINI1.js","assets/http-CWBcr-Ch.es-BydQIEc3.js","assets/hxml-DLduiIv3.es-KtyOMmRZ.js","assets/haxe-CZZ33vZw.es-C5wWYbrZ.js","assets/imba-BEYqRZzB.es-CMdLgtbc.js","assets/jinja-DKLHYjK0.es-Bc5vrI9a.js","assets/jison-CzPfUIvM.es-FIbl5Mke.js","assets/julia-B_r6juN7.es-UTBdB3hN.js","assets/r-F-9I-ITZ.es-CwjWoCRV.js","assets/latex-GxBxlqbc.es-BIcleNUg.js","assets/tex-B0y3cEZp.es-sNFHINbC.js","assets/liquid-BxBkR-z5.es-BPU8qCnT.js","assets/marko-DwPYPpB3.es-DWcUhJ8-.js","assets/less-DQA4v-Nm.es-BfCpw3nA.js","assets/mdc-X4YjkufV.es-CkjSLJEI.js","assets/nginx-ChI-VqNT.es-DWZcbbz-.js","assets/nim-BiJA-5u7.es-znXiz4wV.js","assets/perl-CkXYjL3t.es-BGcPZ9HO.js","assets/php-q40Yjh5d.es-BkXnuPYP.js","assets/pug-Br4hpvIv.es-DSNbVJpq.js","assets/qml-D5gi21kK.es-DPPvKkcg.js","assets/razor-Bt_t1YJb.es-CZnAzo4o.js","assets/csharp-CYWRhZ2R.es-D9R-vmeu.js","assets/rst-BmKw97ch.es-CR4pK9fb.js","assets/cmake-Dr-A3iJx.es-DbXoA79R.js","assets/sas-DgvHx4mL.es-CucEgNpN.js","assets/shaderlab-U9mqcu_f.es-BbQCwWDD.js","assets/hlsl-3-lv4gi7.es-ifBTmRxC.js","assets/shellsession-LvXGClmj.es-BA33EWkN.js","assets/soy-C0yEn39K.es-BwliuvcW.js","assets/sparql-CuZaxpno.es-DA2vjzn9.js","assets/turtle-BJ2wmjPc.es-BMR_PYu6.js","assets/stata-Dv81f34z.es-CMwo8ydZ.js","assets/svelte-SoJd35Jr.es-CClskEeK.js","assets/templ-C7he2afp.es-DoaZGgQ7.js","assets/go-BErP6iv1.es-B1SYOhNW.js","assets/ts-tags-C5-4VQhf.es-BAFqzONk.js","assets/twig-OmkATFdv.es-Bjz-OhEW.js","assets/vue-DCwwWMGI.es-Ctq8hiPI.js","assets/vue-html-sRE_Ny23.es-By6muIb_.js","assets/xsl-DyL8yqXw.es-DIeMqyL3.js","assets/index-BWXd8Ctd.js","assets/index-5F3gtdSl.js","assets/index.umd-PbB35uhR.js"])))=>i.map(i=>d[i]);
2
2
  function K9(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(r,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();var n_e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function q3(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r_e(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var qE={exports:{}},fp={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.js
@@ -359,7 +359,7 @@ export default theme;`}function eN(e){return typeof e=="number"?`${(e*100).toFix
359
359
  animation: ${YT} 1.4s ease-in-out infinite;
360
360
  `:null,zce=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,a={root:["root",n,`color${Qe(r)}`],svg:["svg"],circle:["circle",`circle${Qe(n)}`,o&&"circleDisableShrink"]};return Qt(a,jce,t)},$ce=ze("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Qe(n.color)}`]]}})(fn(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Bce||{animation:`${WT} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Ao()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Hce=ze("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),Vce=ze("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Qe(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(fn(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:Uce||{animation:`${YT} 1.4s ease-in-out infinite`}}]}))),F6=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:a=!1,size:i=40,style:l,thickness:u=3.6,value:d=0,variant:p="indeterminate",...h}=n,y={...n,color:o,disableShrink:a,size:i,thickness:u,value:d,variant:p},g=zce(y),b={},x={},T={};if(p==="determinate"){const E=2*Math.PI*((dl-u)/2);b.strokeDasharray=E.toFixed(3),T["aria-valuenow"]=Math.round(d),b.strokeDashoffset=`${((100-d)/100*E).toFixed(3)}px`,x.transform="rotate(-90deg)"}return v.jsx($ce,{className:St(g.root,r),style:{width:i,height:i,...x,...l},ownerState:y,ref:t,role:"progressbar",...T,...h,children:v.jsx(Hce,{className:g.svg,ownerState:y,viewBox:`${dl/2} ${dl/2} ${dl} ${dl}`,children:v.jsx(Vce,{className:g.circle,style:b,ownerState:y,cx:dl,cy:dl,r:(dl-u)/2,fill:"none",strokeWidth:u})})})});function Gce(e){return Xt("MuiIconButton",e)}const UN=Ht("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),qce=e=>{const{classes:t,disabled:n,color:r,edge:o,size:a,loading:i}=e,l={root:["root",i&&"loading",n&&"disabled",r!=="default"&&`color${Qe(r)}`,o&&`edge${Qe(o)}`,`size${Qe(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Qt(l,Gce,t)},Wce=ze(zd,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${Qe(n.color)}`],n.edge&&t[`edge${Qe(n.edge)}`],t[`size${Qe(n.size)}`]]}})(fn(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),fn(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Ao()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Ao()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${UN.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${UN.loading}`]:{color:"transparent"}}))),Yce=ze("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),$d=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:a,color:i="default",disabled:l=!1,disableFocusRipple:u=!1,size:d="medium",id:p,loading:h=null,loadingIndicator:y,...g}=n,b=rf(p),x=y??v.jsx(F6,{"aria-labelledby":b,color:"inherit",size:16}),T={...n,edge:r,color:i,disabled:l,disableFocusRipple:u,loading:h,loadingIndicator:x,size:d},E=qce(T);return v.jsxs(Wce,{id:h?b:p,className:St(E.root,a),centerRipple:!0,focusRipple:!u,disabled:l||h,ref:t,...g,ownerState:T,children:[typeof h=="boolean"&&v.jsx("span",{className:E.loadingWrapper,style:{display:"contents"},children:v.jsx(Yce,{className:E.loadingIndicator,ownerState:T,children:h&&x})}),o]})}),Kce=Nn(v.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function Qce(e){return Xt("MuiChip",e)}const cn=Ht("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]);function vn(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:i,shouldForwardComponentProp:l=!1,...u}=t,{component:d,slots:p={[e]:void 0},slotProps:h={[e]:void 0},...y}=a,g=p[e]||r,b=wi(h[e],o),{props:{component:x,...T},internalRef:E}=O6({className:n,...u,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:b}),A=sr(E,b?.ref,t.ref),C=e==="root"?x||d:x,D=I6(g,{...e==="root"&&!d&&!p[e]&&i,...e!=="root"&&!p[e]&&i,...T,...C&&!l&&{as:C},...C&&l&&{component:C},ref:A},o);return[g,D]}const Xce=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:i,clickable:l,variant:u}=e,d={root:["root",u,n&&"disabled",`size${Qe(r)}`,`color${Qe(o)}`,l&&"clickable",l&&`clickableColor${Qe(o)}`,i&&"deletable",i&&`deletableColor${Qe(o)}`,`${u}${Qe(o)}`],label:["label",`label${Qe(r)}`],avatar:["avatar",`avatar${Qe(r)}`,`avatarColor${Qe(o)}`],icon:["icon",`icon${Qe(r)}`,`iconColor${Qe(a)}`],deleteIcon:["deleteIcon",`deleteIcon${Qe(r)}`,`deleteIconColor${Qe(o)}`,`deleteIcon${Qe(u)}Color${Qe(o)}`]};return Qt(d,Qce,t)},Zce=ze("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:i,size:l,variant:u}=n;return[{[`& .${cn.avatar}`]:t.avatar},{[`& .${cn.avatar}`]:t[`avatar${Qe(l)}`]},{[`& .${cn.avatar}`]:t[`avatarColor${Qe(r)}`]},{[`& .${cn.icon}`]:t.icon},{[`& .${cn.icon}`]:t[`icon${Qe(l)}`]},{[`& .${cn.icon}`]:t[`iconColor${Qe(o)}`]},{[`& .${cn.deleteIcon}`]:t.deleteIcon},{[`& .${cn.deleteIcon}`]:t[`deleteIcon${Qe(l)}`]},{[`& .${cn.deleteIcon}`]:t[`deleteIconColor${Qe(r)}`]},{[`& .${cn.deleteIcon}`]:t[`deleteIcon${Qe(u)}Color${Qe(r)}`]},t.root,t[`size${Qe(l)}`],t[`color${Qe(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${Qe(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${Qe(r)}`],t[u],t[`${u}${Qe(r)}`]]}})(fn(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${cn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${cn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${cn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${cn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${cn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${cn.icon}`]:{marginLeft:5,marginRight:-6},[`& .${cn.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${cn.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${cn.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Ao(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${cn.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${cn.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${cn.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${cn.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(Ao(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${cn.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${cn.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Ao(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${cn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${cn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${cn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${cn.avatar}`]:{marginLeft:4},[`& .${cn.avatarSmall}`]:{marginLeft:2},[`& .${cn.icon}`]:{marginLeft:4},[`& .${cn.iconSmall}`]:{marginLeft:2},[`& .${cn.deleteIcon}`]:{marginRight:5},[`& .${cn.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Ao()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${cn.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${cn.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${cn.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),Jce=ze("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Qe(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function zN(e){return e.key==="Backspace"||e.key==="Delete"}const eue=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiChip"}),{avatar:r,className:o,clickable:a,color:i="default",component:l,deleteIcon:u,disabled:d=!1,icon:p,label:h,onClick:y,onDelete:g,onKeyDown:b,onKeyUp:x,size:T="medium",variant:E="filled",tabIndex:A,skipFocusWhenDisabled:C=!1,slots:D={},slotProps:I={},...O}=n,F=_.useRef(null),H=sr(F,t),z=ae=>{ae.stopPropagation(),g&&g(ae)},P=ae=>{ae.currentTarget===ae.target&&zN(ae)&&ae.preventDefault(),b&&b(ae)},$=ae=>{ae.currentTarget===ae.target&&g&&zN(ae)&&g(ae),x&&x(ae)},k=a!==!1&&y?!0:a,M=k||g?zd:l||"div",B={...n,component:M,disabled:d,size:T,color:i,iconColor:_.isValidElement(p)&&p.props.color||i,onDelete:!!g,clickable:k,variant:E},V=Xce(B),j=M===zd?{component:l||"div",focusVisibleClassName:V.focusVisible,...g&&{disableRipple:!0}}:{};let q=null;g&&(q=u&&_.isValidElement(u)?_.cloneElement(u,{className:St(u.props.className,V.deleteIcon),onClick:z}):v.jsx(Kce,{className:V.deleteIcon,onClick:z}));let Q=null;r&&_.isValidElement(r)&&(Q=_.cloneElement(r,{className:St(V.avatar,r.props.className)}));let te=null;p&&_.isValidElement(p)&&(te=_.cloneElement(p,{className:St(V.icon,p.props.className)}));const N={slots:D,slotProps:I},[Y,K]=vn("root",{elementType:Zce,externalForwardedProps:{...N,...O},ownerState:B,shouldForwardComponentProp:!0,ref:H,className:St(V.root,o),additionalProps:{disabled:k&&d?!0:void 0,tabIndex:C&&d?-1:A,...j},getSlotProps:ae=>({...ae,onClick:J=>{ae.onClick?.(J),y?.(J)},onKeyDown:J=>{ae.onKeyDown?.(J),P(J)},onKeyUp:J=>{ae.onKeyUp?.(J),$(J)}})}),[L,ee]=vn("label",{elementType:Jce,externalForwardedProps:N,ownerState:B,className:V.label});return v.jsxs(Y,{as:M,...K,children:[Q||te,v.jsx(L,{...ee,children:h}),q]})});function Ty(e){return parseInt(e,10)||0}const tue={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function nue(e){for(const t in e)return!1;return!0}function $N(e){return nue(e)||e.outerHeightStyle===0&&!e.overflowing}const rue=_.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:a,value:i,...l}=e,{current:u}=_.useRef(i!=null),d=_.useRef(null),p=sr(t,d),h=_.useRef(null),y=_.useRef(null),g=_.useCallback(()=>{const A=d.current,C=y.current;if(!A||!C)return;const D=ws(A).getComputedStyle(A);if(D.width==="0px")return{outerHeightStyle:0,overflowing:!1};C.style.width=D.width,C.value=A.value||e.placeholder||"x",C.value.slice(-1)===`
361
361
  `&&(C.value+=" ");const I=D.boxSizing,O=Ty(D.paddingBottom)+Ty(D.paddingTop),F=Ty(D.borderBottomWidth)+Ty(D.borderTopWidth),H=C.scrollHeight;C.value="x";const z=C.scrollHeight;let P=H;o&&(P=Math.max(Number(o)*z,P)),r&&(P=Math.min(Number(r)*z,P)),P=Math.max(P,z);const $=P+(I==="border-box"?O+F:0),k=Math.abs(P-H)<=1;return{outerHeightStyle:$,overflowing:k}},[r,o,e.placeholder]),b=Mr(()=>{const A=d.current,C=g();if(!A||!C||$N(C))return!1;const D=C.outerHeightStyle;return h.current!=null&&h.current!==D}),x=_.useCallback(()=>{const A=d.current,C=g();if(!A||!C||$N(C))return;const D=C.outerHeightStyle;h.current!==D&&(h.current=D,A.style.height=`${D}px`),A.style.overflow=C.overflowing?"hidden":""},[g]),T=_.useRef(-1);$i(()=>{const A=DM(x),C=d?.current;if(!C)return;const D=ws(C);D.addEventListener("resize",A);let I;return typeof ResizeObserver<"u"&&(I=new ResizeObserver(()=>{b()&&(I.unobserve(C),cancelAnimationFrame(T.current),x(),T.current=requestAnimationFrame(()=>{I.observe(C)}))}),I.observe(C)),()=>{A.clear(),cancelAnimationFrame(T.current),D.removeEventListener("resize",A),I&&I.disconnect()}},[g,x,b]),$i(()=>{x()});const E=A=>{u||x();const C=A.target,D=C.value.length,I=C.value.endsWith(`
362
- `),O=C.selectionStart===D;I&&O&&C.setSelectionRange(D,D),n&&n(A)};return v.jsxs(_.Fragment,{children:[v.jsx("textarea",{value:i,onChange:E,ref:p,rows:o,style:a,...l}),v.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:y,tabIndex:-1,style:{...tue.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function df({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const l_=_.createContext(void 0);function ou(){return _.useContext(l_)}function HN(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ib(e,t=!1){return e&&(HN(e.value)&&e.value!==""||t&&HN(e.defaultValue)&&e.defaultValue!=="")}function oue(e){return e.startAdornment}function aue(e){return Xt("MuiInputBase",e)}const la=Ht("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var VN;const _v=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Qe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},kv=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},iue=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:u,hiddenLabel:d,multiline:p,readOnly:h,size:y,startAdornment:g,type:b}=e,x={root:["root",`color${Qe(n)}`,r&&"disabled",o&&"error",u&&"fullWidth",i&&"focused",l&&"formControl",y&&y!=="medium"&&`size${Qe(y)}`,p&&"multiline",g&&"adornedStart",a&&"adornedEnd",d&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",p&&"inputMultiline",y==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",g&&"inputAdornedStart",a&&"inputAdornedEnd",h&&"readOnly"]};return Qt(x,aue,t)},wv=ze("div",{name:"MuiInputBase",slot:"Root",overridesResolver:_v})(fn(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${la.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Rv=ze("input",{name:"MuiInputBase",slot:"Input",overridesResolver:kv})(fn(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${la.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${la.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),GN=Toe({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),c_=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:o,autoFocus:a,className:i,color:l,components:u={},componentsProps:d={},defaultValue:p,disabled:h,disableInjectingGlobalStyles:y,endAdornment:g,error:b,fullWidth:x=!1,id:T,inputComponent:E="input",inputProps:A={},inputRef:C,margin:D,maxRows:I,minRows:O,multiline:F=!1,name:H,onBlur:z,onChange:P,onClick:$,onFocus:k,onKeyDown:M,onKeyUp:B,placeholder:V,readOnly:j,renderSuffix:q,rows:Q,size:te,slotProps:N={},slots:Y={},startAdornment:K,type:L="text",value:ee,...ae}=n,J=A.value!=null?A.value:ee,{current:me}=_.useRef(J!=null),ce=_.useRef(),Ae=_.useCallback(ot=>{},[]),Se=sr(ce,C,A.ref,Ae),[Te,He]=_.useState(!1),Oe=ou(),we=df({props:n,muiFormControl:Oe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});we.focused=Oe?Oe.focused:Te,_.useEffect(()=>{!Oe&&h&&Te&&(He(!1),z&&z())},[Oe,h,Te,z]);const Ct=Oe&&Oe.onFilled,pt=Oe&&Oe.onEmpty,Ve=_.useCallback(ot=>{ib(ot)?Ct&&Ct():pt&&pt()},[Ct,pt]);$i(()=>{me&&Ve({value:J})},[J,Ve,me]);const Ye=ot=>{k&&k(ot),A.onFocus&&A.onFocus(ot),Oe&&Oe.onFocus?Oe.onFocus(ot):He(!0)},ut=ot=>{z&&z(ot),A.onBlur&&A.onBlur(ot),Oe&&Oe.onBlur?Oe.onBlur(ot):He(!1)},Be=(ot,...it)=>{if(!me){const Wt=ot.target||ce.current;if(Wt==null)throw new Error(_s(1));Ve({value:Wt.value})}A.onChange&&A.onChange(ot,...it),P&&P(ot,...it)};_.useEffect(()=>{Ve(ce.current)},[]);const Me=ot=>{ce.current&&ot.currentTarget===ot.target&&ce.current.focus(),$&&$(ot)};let Fe=E,Pt=A;F&&Fe==="input"&&(Q?Pt={type:void 0,minRows:Q,maxRows:Q,...Pt}:Pt={type:void 0,maxRows:I,minRows:O,...Pt},Fe=rue);const tn=ot=>{Ve(ot.animationName==="mui-auto-fill-cancel"?ce.current:{value:"x"})};_.useEffect(()=>{Oe&&Oe.setAdornedStart(!!K)},[Oe,K]);const xt={...n,color:we.color||"primary",disabled:we.disabled,endAdornment:g,error:we.error,focused:we.focused,formControl:Oe,fullWidth:x,hiddenLabel:we.hiddenLabel,multiline:F,size:we.size,startAdornment:K,type:L},ue=iue(xt),ge=Y.root||u.Root||wv,Ge=N.root||d.root||{},rt=Y.input||u.Input||Rv;return Pt={...Pt,...N.input??d.input},v.jsxs(_.Fragment,{children:[!y&&typeof GN=="function"&&(VN||(VN=v.jsx(GN,{}))),v.jsxs(ge,{...Ge,ref:t,onClick:Me,...ae,...!rb(ge)&&{ownerState:{...xt,...Ge.ownerState}},className:St(ue.root,Ge.className,i,j&&"MuiInputBase-readOnly"),children:[K,v.jsx(l_.Provider,{value:null,children:v.jsx(rt,{"aria-invalid":we.error,"aria-describedby":r,autoComplete:o,autoFocus:a,defaultValue:p,disabled:we.disabled,id:T,onAnimationStart:tn,name:H,placeholder:V,readOnly:j,required:we.required,rows:Q,value:J,onKeyDown:M,onKeyUp:B,type:L,...Pt,...!rb(rt)&&{as:Fe,ownerState:{...xt,...Pt.ownerState}},ref:Se,className:St(ue.input,Pt.className,j&&"MuiInputBase-readOnly"),onBlur:ut,onChange:Be,onFocus:Ye})}),g,q?q({...we,startAdornment:K}):null]})]})});function sue(e){return Xt("MuiInput",e)}const bl={...la,...Ht("MuiInput",["root","underline","input"])};function lue(e){return Xt("MuiOutlinedInput",e)}const Ra={...la,...Ht("MuiOutlinedInput",["root","notchedOutline","input"])};function cue(e){return Xt("MuiFilledInput",e)}const ca={...la,...Ht("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},uue=Nn(v.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),j6=Nn(v.jsx("path",{d:"M7 10l5 5 5-5z"}));function due(e){return Xt("MuiAutocomplete",e)}const Zt=Ht("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var qN,WN;const fue=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:a,hasClearIcon:i,hasPopupIcon:l,inputFocused:u,popupOpen:d,size:p}=e,h={root:["root",r&&"expanded",o&&"focused",a&&"fullWidth",i&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",u&&"inputFocused"],tag:["tag",`tagSize${Qe(p)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",d&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Qt(h,due,t)},pue=ze("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:a,inputFocused:i,size:l}=n;return[{[`& .${Zt.tag}`]:t.tag},{[`& .${Zt.tag}`]:t[`tagSize${Qe(l)}`]},{[`& .${Zt.inputRoot}`]:t.inputRoot},{[`& .${Zt.input}`]:t.input},{[`& .${Zt.input}`]:i&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${Zt.focused} .${Zt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Zt.clearIndicator}`]:{visibility:"visible"}},[`& .${Zt.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Zt.inputRoot}`]:{[`.${Zt.hasPopupIcon}&, .${Zt.hasClearIcon}&`]:{paddingRight:30},[`.${Zt.hasPopupIcon}.${Zt.hasClearIcon}&`]:{paddingRight:56},[`& .${Zt.input}`]:{width:0,minWidth:30}},[`& .${bl.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${bl.root}.${la.sizeSmall}`]:{[`& .${bl.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ra.root}`]:{padding:9,[`.${Zt.hasPopupIcon}&, .${Zt.hasClearIcon}&`]:{paddingRight:39},[`.${Zt.hasPopupIcon}.${Zt.hasClearIcon}&`]:{paddingRight:65},[`& .${Zt.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Zt.endAdornment}`]:{right:9}},[`& .${Ra.root}.${la.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Zt.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${ca.root}`]:{paddingTop:19,paddingLeft:8,[`.${Zt.hasPopupIcon}&, .${Zt.hasClearIcon}&`]:{paddingRight:39},[`.${Zt.hasPopupIcon}.${Zt.hasClearIcon}&`]:{paddingRight:65},[`& .${ca.input}`]:{padding:"7px 4px"},[`& .${Zt.endAdornment}`]:{right:9}},[`& .${ca.root}.${la.sizeSmall}`]:{paddingBottom:1,[`& .${ca.input}`]:{padding:"2.5px 4px"}},[`& .${la.hiddenLabel}`]:{paddingTop:8},[`& .${ca.root}.${la.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Zt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${ca.root}.${la.hiddenLabel}.${la.sizeSmall}`]:{[`& .${Zt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Zt.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Zt.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Zt.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Zt.inputRoot}`]:{flexWrap:"wrap"}}}]}),hue=ze("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),mue=ze($d,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),gue=ze($d,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),yue=ze(P6,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Zt.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(fn(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),bue=ze(uf,{name:"MuiAutocomplete",slot:"Paper"})(fn(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),vue=ze("div",{name:"MuiAutocomplete",slot:"Loading"})(fn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),Eue=ze("div",{name:"MuiAutocomplete",slot:"NoOptions"})(fn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),xue=ze("ul",{name:"MuiAutocomplete",slot:"Listbox"})(fn(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Zt.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Zt.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Zt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Zt.focused}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Zt.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),Sue=ze(HT,{name:"MuiAutocomplete",slot:"GroupLabel"})(fn(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),Tue=ze("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${Zt.option}`]:{paddingLeft:24}}),Cue=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiAutocomplete"}),{autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:i=!1,ChipProps:l,className:u,clearIcon:d=qN||(qN=v.jsx(uue,{fontSize:"small"})),clearOnBlur:p=!n.freeSolo,clearOnEscape:h=!1,clearText:y="Clear",closeText:g="Close",componentsProps:b,defaultValue:x=n.multiple?[]:null,disableClearable:T=!1,disableCloseOnSelect:E=!1,disabled:A=!1,disabledItemsFocusable:C=!1,disableListWrap:D=!1,disablePortal:I=!1,filterOptions:O,filterSelectedOptions:F=!1,forcePopupIcon:H="auto",freeSolo:z=!1,fullWidth:P=!1,getLimitTagsText:$=zt=>`+${zt}`,getOptionDisabled:k,getOptionKey:M,getOptionLabel:B,isOptionEqualToValue:V,groupBy:j,handleHomeEndKeys:q=!n.freeSolo,id:Q,includeInputInList:te=!1,inputValue:N,limitTags:Y=-1,ListboxComponent:K,ListboxProps:L,loading:ee=!1,loadingText:ae="Loading…",multiple:J=!1,noOptionsText:me="No options",onChange:ce,onClose:Ae,onHighlightChange:Se,onInputChange:Te,onOpen:He,open:Oe,openOnFocus:we=!1,openText:Ct="Open",options:pt,PaperComponent:Ve,PopperComponent:Ye,popupIcon:ut=WN||(WN=v.jsx(j6,{})),readOnly:Be=!1,renderGroup:Me,renderInput:Fe,renderOption:Pt,renderTags:tn,renderValue:xt,selectOnFocus:ue=!n.freeSolo,size:ge="medium",slots:Ge={},slotProps:rt={},value:ot,...it}=n,{getRootProps:Wt,getInputProps:Jt,getInputLabelProps:et,getPopupIndicatorProps:_e,getClearProps:Ce,getItemProps:ht,getListboxProps:mt,getOptionProps:Yn,value:Jn,dirty:Ar,expanded:Un,id:er,popupOpen:ar,focused:yn,focusedItem:pr,anchorEl:Tt,setAnchorEl:re,inputValue:le,groupedOptions:he}=Gse({...n,componentName:"Autocomplete"}),Ne=!T&&!A&&Ar&&!Be,Ue=(!z||H===!0)&&H!==!1,{onMouseDown:ft}=Jt(),{ref:bt,...gt}=mt(),vt=B||(zt=>zt.label??zt),lt={...n,disablePortal:I,expanded:Un,focused:yn,fullWidth:P,getOptionLabel:vt,hasClearIcon:Ne,hasPopupIcon:Ue,inputFocused:pr===-1,popupOpen:ar,size:ge},at=fue(lt),ct={slots:{paper:Ve,popper:Ye,...Ge},slotProps:{chip:l,listbox:L,...b,...rt}},[$t,pn]=vn("listbox",{elementType:xue,externalForwardedProps:ct,ownerState:lt,className:at.listbox,additionalProps:gt,ref:bt}),[zn,$n]=vn("paper",{elementType:uf,externalForwardedProps:ct,ownerState:lt,className:at.paper}),[Mt,ye]=vn("popper",{elementType:P6,externalForwardedProps:ct,ownerState:lt,className:at.popper,additionalProps:{disablePortal:I,style:{width:Tt?Tt.clientWidth:null},role:"presentation",anchorEl:Tt,open:ar}});let Ee;const nt=zt=>({className:at.tag,disabled:A,...ht(zt)});if(J?Jn.length>0&&(tn?Ee=tn(Jn,nt,lt):xt?Ee=xt(Jn,nt,lt):Ee=Jn.map((zt,Gr)=>{const{key:It,...tr}=nt({index:Gr});return v.jsx(eue,{label:vt(zt),size:ge,...tr,...ct.slotProps.chip},It)})):xt&&Jn!=null&&(Ee=xt(Jn,nt,lt)),Y>-1&&Array.isArray(Ee)){const zt=Ee.length-Y;!yn&&zt>0&&(Ee=Ee.splice(0,Y),Ee.push(v.jsx("span",{className:at.tag,children:$(zt)},Ee.length)))}const At=Me||(zt=>v.jsxs("li",{children:[v.jsx(Sue,{className:at.groupLabel,ownerState:lt,component:"div",children:zt.group}),v.jsx(Tue,{className:at.groupUl,ownerState:lt,children:zt.children})]},zt.key)),wt=Pt||((zt,Gr)=>{const{key:It,...tr}=zt;return v.jsx("li",{...tr,children:vt(Gr)},It)}),bn=(zt,Gr)=>{const It=Yn({option:zt,index:Gr});return wt({...It,className:at.option},zt,{selected:It["aria-selected"],index:Gr,inputValue:le},lt)},Kn=ct.slotProps.clearIndicator,io=ct.slotProps.popupIndicator;return v.jsxs(_.Fragment,{children:[v.jsx(pue,{ref:t,className:St(at.root,u),ownerState:lt,...Wt(it),children:Fe({id:er,disabled:A,fullWidth:!0,size:ge==="small"?"small":void 0,InputLabelProps:et(),InputProps:{ref:re,className:at.inputRoot,startAdornment:Ee,onMouseDown:zt=>{zt.target===zt.currentTarget&&ft(zt)},...(Ne||Ue)&&{endAdornment:v.jsxs(hue,{className:at.endAdornment,ownerState:lt,children:[Ne?v.jsx(mue,{...Ce(),"aria-label":y,title:y,ownerState:lt,...Kn,className:St(at.clearIndicator,Kn?.className),children:d}):null,Ue?v.jsx(gue,{..._e(),disabled:A,"aria-label":ar?g:Ct,title:ar?g:Ct,ownerState:lt,...io,className:St(at.popupIndicator,io?.className),children:ut}):null]})}},inputProps:{className:at.input,disabled:A,readOnly:Be,...Jt()}})}),Tt?v.jsx(yue,{as:Mt,...ye,children:v.jsxs(bue,{as:zn,...$n,children:[ee&&he.length===0?v.jsx(vue,{className:at.loading,ownerState:lt,children:ae}):null,he.length===0&&!z&&!ee?v.jsx(Eue,{className:at.noOptions,ownerState:lt,role:"presentation",onMouseDown:zt=>{zt.preventDefault()},children:me}):null,he.length>0?v.jsx($t,{as:K,...pn,children:he.map((zt,Gr)=>j?At({key:zt.key,group:zt.group,children:zt.options.map((It,tr)=>bn(It,zt.index+tr))}):bn(zt,Gr))}):null]})}):null]})}),Aue=e=>{const{classes:t,disableUnderline:n}=e,r=Qt({root:["root",!n&&"underline"],input:["input"]},sue,t);return{...t,...r}},_ue=ze(wv,{shouldForwardProp:e=>Ro(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[..._v(e,t),!n.disableUnderline&&t.underline]}})(fn(({theme:e})=>{let t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${bl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${bl.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${bl.disabled}, .${bl.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${bl.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ao()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),kue=ze(Rv,{name:"MuiInput",slot:"Input",overridesResolver:kv})({}),u_=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiInput"}),{disableUnderline:r=!1,components:o={},componentsProps:a,fullWidth:i=!1,inputComponent:l="input",multiline:u=!1,slotProps:d,slots:p={},type:h="text",...y}=n,g=Aue(n),b={root:{ownerState:{disableUnderline:r}}},x=d??a?mo(d??a,b):b,T=p.root??o.Root??_ue,E=p.input??o.Input??kue;return v.jsx(c_,{slots:{root:T,input:E},slotProps:x,fullWidth:i,inputComponent:l,multiline:u,ref:t,type:h,...y,classes:g})});u_.muiName="Input";const wue=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:a,hiddenLabel:i,multiline:l}=e,u={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${Qe(a)}`,i&&"hiddenLabel",l&&"multiline"],input:["input"]},d=Qt(u,cue,t);return{...t,...d}},Rue=ze(wv,{shouldForwardProp:e=>Ro(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[..._v(e,t),!n.disableUnderline&&t.underline]}})(fn(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${ca.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${ca.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:i})=>!i.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ca.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ca.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ca.disabled}, .${ca.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ca.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ao()).map(([i])=>({props:{disableUnderline:!1,color:i},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[i]?.main}`}}})),{props:({ownerState:i})=>i.startAdornment,style:{paddingLeft:12}},{props:({ownerState:i})=>i.endAdornment,style:{paddingRight:12}},{props:({ownerState:i})=>i.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:i,size:l})=>i.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel&&i.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),Due=ze(Rv,{name:"MuiFilledInput",slot:"Input",overridesResolver:kv})(fn(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),d_=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:o={},componentsProps:a,fullWidth:i=!1,hiddenLabel:l,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:h={},type:y="text",...g}=n,b={...n,disableUnderline:r,fullWidth:i,inputComponent:u,multiline:d,type:y},x=wue(n),T={root:{ownerState:b},input:{ownerState:b}},E=p??a?mo(T,p??a):T,A=h.root??o.Root??Rue,C=h.input??o.Input??Due;return v.jsx(c_,{slots:{root:A,input:C},slotProps:E,fullWidth:i,inputComponent:u,multiline:d,ref:t,type:y,...g,classes:x})});d_.muiName="Input";var YN;const Iue=ze("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Ro})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Oue=ze("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Ro})(fn(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Nue(e){const{children:t,classes:n,className:r,label:o,notched:a,...i}=e,l=o!=null&&o!=="",u={...e,notched:a,withLabel:l};return v.jsx(Iue,{"aria-hidden":!0,className:r,ownerState:u,...i,children:v.jsx(Oue,{ownerState:u,children:l?v.jsx("span",{children:o}):YN||(YN=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const Pue=e=>{const{classes:t}=e,n=Qt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},lue,t);return{...t,...n}},Lue=ze(wv,{shouldForwardProp:e=>Ro(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:_v})(fn(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ra.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ra.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ra.focused} .${Ra.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Ao()).map(([n])=>({props:{color:n},style:{[`&.${Ra.focused} .${Ra.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Ra.error} .${Ra.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ra.disabled} .${Ra.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),Mue=ze(Nue,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(fn(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),Fue=ze(Rv,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:kv})(fn(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),f_=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiOutlinedInput"}),{components:r={},fullWidth:o=!1,inputComponent:a="input",label:i,multiline:l=!1,notched:u,slots:d={},slotProps:p={},type:h="text",...y}=n,g=Pue(n),b=ou(),x=df({props:n,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),T={...n,color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:b,fullWidth:o,hiddenLabel:x.hiddenLabel,multiline:l,size:x.size,type:h},E=d.root??r.Root??Lue,A=d.input??r.Input??Fue,[C,D]=vn("notchedOutline",{elementType:Mue,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:T,externalForwardedProps:{slots:d,slotProps:p},additionalProps:{label:i!=null&&i!==""&&x.required?v.jsxs(_.Fragment,{children:[i," ","*"]}):i}});return v.jsx(c_,{slots:{root:E,input:A},slotProps:p,renderSuffix:I=>v.jsx(C,{...D,notched:typeof u<"u"?u:!!(I.startAdornment||I.filled||I.focused)}),fullWidth:o,inputComponent:a,multiline:l,ref:t,type:h,...y,classes:{...g,notchedOutline:null}})});f_.muiName="Input";function jue(e){return Xt("MuiFormLabel",e)}const mh=Ht("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Bue=e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:i,required:l}=e,u={root:["root",`color${Qe(n)}`,o&&"disabled",a&&"error",i&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]};return Qt(u,jue,t)},Uue=ze("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(fn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Ao()).map(([t])=>({props:{color:t},style:{[`&.${mh.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${mh.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${mh.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),zue=ze("span",{name:"MuiFormLabel",slot:"Asterisk"})(fn(({theme:e})=>({[`&.${mh.error}`]:{color:(e.vars||e).palette.error.main}}))),$ue=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiFormLabel"}),{children:r,className:o,color:a,component:i="label",disabled:l,error:u,filled:d,focused:p,required:h,...y}=n,g=ou(),b=df({props:n,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),x={...n,color:b.color||"primary",component:i,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required},T=Bue(x);return v.jsxs(Uue,{as:i,ownerState:x,className:St(T.root,o),ref:t,...y,children:[r,b.required&&v.jsxs(zue,{ownerState:x,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]})});function Hue(e){return Xt("MuiInputLabel",e)}Ht("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Vue=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:i,required:l}=e,u={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&r!=="medium"&&`size${Qe(r)}`,i],asterisk:[l&&"asterisk"]},d=Qt(u,Hue,t);return{...t,...d}},Gue=ze($ue,{shouldForwardProp:e=>Ro(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${mh.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(fn(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),que=_.forwardRef(function(e,t){const n=on({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,margin:o,shrink:a,variant:i,className:l,...u}=n,d=ou();let p=a;typeof p>"u"&&d&&(p=d.filled||d.focused||d.adornedStart);const h=df({props:n,muiFormControl:d,states:["size","variant","required","focused"]}),y={...n,disableAnimation:r,formControl:d,shrink:p,size:h.size,variant:h.variant,required:h.required,focused:h.focused},g=Vue(y);return v.jsx(Gue,{"data-shrink":p,ref:t,className:St(g.root,l),...u,ownerState:y,classes:g})});function Wue(e){return Xt("MuiFormControl",e)}Ht("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Yue=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Qe(n)}`,r&&"fullWidth"]};return Qt(o,Wue,t)},Kue=ze("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${Qe(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Que=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiFormControl"}),{children:r,className:o,color:a="primary",component:i="div",disabled:l=!1,error:u=!1,focused:d,fullWidth:p=!1,hiddenLabel:h=!1,margin:y="none",required:g=!1,size:b="medium",variant:x="outlined",...T}=n,E={...n,color:a,component:i,disabled:l,error:u,fullWidth:p,hiddenLabel:h,margin:y,required:g,size:b,variant:x},A=Yue(E),[C,D]=_.useState(()=>{let B=!1;return r&&_.Children.forEach(r,V=>{if(!jx(V,["Input","Select"]))return;const j=jx(V,["Select"])?V.props.input:V;j&&oue(j.props)&&(B=!0)}),B}),[I,O]=_.useState(()=>{let B=!1;return r&&_.Children.forEach(r,V=>{jx(V,["Input","Select"])&&(ib(V.props,!0)||ib(V.props.inputProps,!0))&&(B=!0)}),B}),[F,H]=_.useState(!1);l&&F&&H(!1);const z=d!==void 0&&!l?d:F;let P;_.useRef(!1);const $=_.useCallback(()=>{O(!0)},[]),k=_.useCallback(()=>{O(!1)},[]),M=_.useMemo(()=>({adornedStart:C,setAdornedStart:D,color:a,disabled:l,error:u,filled:I,focused:z,fullWidth:p,hiddenLabel:h,size:b,onBlur:()=>{H(!1)},onFocus:()=>{H(!0)},onEmpty:k,onFilled:$,registerEffect:P,required:g,variant:x}),[C,a,l,u,I,z,p,h,P,k,$,g,b,x]);return v.jsx(l_.Provider,{value:M,children:v.jsx(Kue,{as:i,ownerState:E,className:St(A.root,o),ref:t,...T,children:r})})});function Xue(e){return Xt("MuiFormHelperText",e)}const KN=Ht("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var QN;const Zue=e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:i,focused:l,required:u}=e,d={root:["root",o&&"disabled",a&&"error",r&&`size${Qe(r)}`,n&&"contained",l&&"focused",i&&"filled",u&&"required"]};return Qt(d,Xue,t)},Jue=ze("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Qe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(fn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${KN.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${KN.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),ede=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiFormHelperText"}),{children:r,className:o,component:a="p",disabled:i,error:l,filled:u,focused:d,margin:p,required:h,variant:y,...g}=n,b=ou(),x=df({props:n,muiFormControl:b,states:["variant","size","disabled","error","filled","focused","required"]}),T={...n,component:a,contained:x.variant==="filled"||x.variant==="outlined",variant:x.variant,size:x.size,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required};delete T.ownerState;const E=Zue(T);return v.jsx(Jue,{as:a,className:St(E.root,o),ref:t,...g,ownerState:T,children:r===" "?QN||(QN=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):r})}),KT=_.createContext({});function tde(e){return Xt("MuiList",e)}Ht("MuiList",["root","padding","dense","subheader"]);const nde=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Qt({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},tde,t)},rde=ze("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),ode=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiList"}),{children:r,className:o,component:a="ul",dense:i=!1,disablePadding:l=!1,subheader:u,...d}=n,p=_.useMemo(()=>({dense:i}),[i]),h={...n,component:a,dense:i,disablePadding:l},y=nde(h);return v.jsx(KT.Provider,{value:p,children:v.jsxs(rde,{as:a,className:St(y.root,o),ref:t,ownerState:h,...d,children:[u,r]})})});function B6(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Yx(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function XN(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function U6(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Np(e,t,n,r,o,a){let i=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const u=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!U6(l,a)||u)l=o(e,l,n);else return l.focus(),!0}return!1}const ade=_.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:a,className:i,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:d,variant:p="selectedMenu",...h}=e,y=_.useRef(null),g=_.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});$i(()=>{r&&y.current.focus()},[r]),_.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(A,{direction:C})=>{const D=!y.current.style.width;if(A.clientHeight<y.current.clientHeight&&D){const I=`${B6(ws(A))}px`;y.current.style[C==="rtl"?"paddingLeft":"paddingRight"]=I,y.current.style.width=`calc(100% + ${I})`}return y.current}}),[]);const b=A=>{const C=y.current,D=A.key;if(A.ctrlKey||A.metaKey||A.altKey){d&&d(A);return}const I=oo(C).activeElement;if(D==="ArrowDown")A.preventDefault(),Np(C,I,u,l,Yx);else if(D==="ArrowUp")A.preventDefault(),Np(C,I,u,l,XN);else if(D==="Home")A.preventDefault(),Np(C,null,u,l,Yx);else if(D==="End")A.preventDefault(),Np(C,null,u,l,XN);else if(D.length===1){const O=g.current,F=D.toLowerCase(),H=performance.now();O.keys.length>0&&(H-O.lastTime>500?(O.keys=[],O.repeating=!0,O.previousKeyMatched=!0):O.repeating&&F!==O.keys[0]&&(O.repeating=!1)),O.lastTime=H,O.keys.push(F);const z=I&&!O.repeating&&U6(I,O);O.previousKeyMatched&&(z||Np(C,I,!1,l,Yx,O))?A.preventDefault():O.previousKeyMatched=!1}d&&d(A)},x=sr(y,t);let T=-1;_.Children.forEach(a,(A,C)=>{if(!_.isValidElement(A)){T===C&&(T+=1,T>=a.length&&(T=-1));return}A.props.disabled||(p==="selectedMenu"&&A.props.selected||T===-1)&&(T=C),T===C&&(A.props.disabled||A.props.muiSkipListHighlight||A.type.muiSkipListHighlight)&&(T+=1,T>=a.length&&(T=-1))});const E=_.Children.map(a,(A,C)=>{if(C===T){const D={};return o&&(D.autoFocus=!0),A.props.tabIndex===void 0&&p==="selectedMenu"&&(D.tabIndex=0),_.cloneElement(A,D)}return A});return v.jsx(ode,{role:"menu",ref:x,className:i,onKeyDown:b,tabIndex:r?0:-1,...h,children:E})}),z6=e=>e.scrollTop;function Hd(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function QT(e){return`scale(${e}, ${e**2})`}const ide={entering:{opacity:1,transform:QT(1)},entered:{opacity:1,transform:"none"}},Kx=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),sb=_.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:a,in:i,onEnter:l,onEntered:u,onEntering:d,onExit:p,onExited:h,onExiting:y,style:g,timeout:b="auto",TransitionComponent:x=di,...T}=e,E=Av(),A=_.useRef(),C=of(),D=_.useRef(null),I=sr(D,cf(o),t),O=M=>B=>{if(M){const V=D.current;B===void 0?M(V):M(V,B)}},F=O(d),H=O((M,B)=>{z6(M);const{duration:V,delay:j,easing:q}=Hd({style:g,timeout:b,easing:a},{mode:"enter"});let Q;b==="auto"?(Q=C.transitions.getAutoHeightDuration(M.clientHeight),A.current=Q):Q=V,M.style.transition=[C.transitions.create("opacity",{duration:Q,delay:j}),C.transitions.create("transform",{duration:Kx?Q:Q*.666,delay:j,easing:q})].join(","),l&&l(M,B)}),z=O(u),P=O(y),$=O(M=>{const{duration:B,delay:V,easing:j}=Hd({style:g,timeout:b,easing:a},{mode:"exit"});let q;b==="auto"?(q=C.transitions.getAutoHeightDuration(M.clientHeight),A.current=q):q=B,M.style.transition=[C.transitions.create("opacity",{duration:q,delay:V}),C.transitions.create("transform",{duration:Kx?q:q*.666,delay:Kx?V:V||q*.333,easing:j})].join(","),M.style.opacity=0,M.style.transform=QT(.75),p&&p(M)}),k=O(h);return v.jsx(x,{appear:r,in:i,nodeRef:D,onEnter:H,onEntered:z,onEntering:F,onExit:$,onExited:k,onExiting:P,addEndListener:M=>{b==="auto"&&E.start(A.current||0,M),n&&n(D.current,M)},timeout:b==="auto"?null:b,...T,children:(M,{ownerState:B,...V})=>_.cloneElement(o,{style:{opacity:0,transform:QT(.75),visibility:M==="exited"&&!i?"hidden":void 0,...ide[M],...g,...o.props.style},ref:I,...V})})});sb&&(sb.muiSupportAuto=!0);function sde(e){const t=oo(e);return t.body===e?ws(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function gh(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ZN(e){return parseInt(ws(e).getComputedStyle(e).paddingRight,10)||0}function lde(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return t||n}function JN(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,i=>{const l=!a.includes(i),u=!lde(i);l&&u&&gh(i,o)})}function Qx(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function cde(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(sde(r)){const a=B6(ws(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${ZN(r)+a}px`;const i=oo(r).querySelectorAll(".mui-fixed");[].forEach.call(i,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${ZN(l)+a}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=oo(r).body;else{const a=r.parentElement,i=ws(r);o=a?.nodeName==="HTML"&&i.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:a,property:i})=>{o?a.style.setProperty(i,o):a.style.removeProperty(i)})}}function ude(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class dde{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&gh(t.modalRef,!1);const o=ude(n);JN(n,t.mount,t.modalRef,o,!0);const a=Qx(this.containers,i=>i.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Qx(this.containers,a=>a.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=cde(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Qx(this.containers,i=>i.modals.includes(t)),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&gh(t.modalRef,n),JN(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&gh(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const fde=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function pde(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function hde(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function mde(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||hde(e))}function gde(e){const t=[],n=[];return Array.from(e.querySelectorAll(fde)).forEach((r,o)=>{const a=pde(r);a===-1||!mde(r)||(a===0?t.push(r):n.push({documentOrder:o,tabIndex:a,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function yde(){return!0}function bde(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=gde,isEnabled:i=yde,open:l}=e,u=_.useRef(!1),d=_.useRef(null),p=_.useRef(null),h=_.useRef(null),y=_.useRef(null),g=_.useRef(!1),b=_.useRef(null),x=sr(cf(t),b),T=_.useRef(null);_.useEffect(()=>{!l||!b.current||(g.current=!n)},[n,l]),_.useEffect(()=>{if(!l||!b.current)return;const C=oo(b.current);return b.current.contains(C.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),g.current&&b.current.focus()),()=>{o||(h.current&&h.current.focus&&(u.current=!0,h.current.focus()),h.current=null)}},[l]),_.useEffect(()=>{if(!l||!b.current)return;const C=oo(b.current),D=F=>{T.current=F,!(r||!i()||F.key!=="Tab")&&C.activeElement===b.current&&F.shiftKey&&(u.current=!0,p.current&&p.current.focus())},I=()=>{const F=b.current;if(F===null)return;if(!C.hasFocus()||!i()||u.current){u.current=!1;return}if(F.contains(C.activeElement)||r&&C.activeElement!==d.current&&C.activeElement!==p.current)return;if(C.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!g.current)return;let H=[];if((C.activeElement===d.current||C.activeElement===p.current)&&(H=a(b.current)),H.length>0){const z=!!(T.current?.shiftKey&&T.current?.key==="Tab"),P=H[0],$=H[H.length-1];typeof P!="string"&&typeof $!="string"&&(z?$.focus():P.focus())}else F.focus()};C.addEventListener("focusin",I),C.addEventListener("keydown",D,!0);const O=setInterval(()=>{C.activeElement&&C.activeElement.tagName==="BODY"&&I()},50);return()=>{clearInterval(O),C.removeEventListener("focusin",I),C.removeEventListener("keydown",D,!0)}},[n,r,o,i,l,a]);const E=C=>{h.current===null&&(h.current=C.relatedTarget),g.current=!0,y.current=C.target;const D=t.props.onFocus;D&&D(C)},A=C=>{h.current===null&&(h.current=C.relatedTarget),g.current=!0};return v.jsxs(_.Fragment,{children:[v.jsx("div",{tabIndex:l?0:-1,onFocus:A,ref:d,"data-testid":"sentinelStart"}),_.cloneElement(t,{ref:x,onFocus:E}),v.jsx("div",{tabIndex:l?0:-1,onFocus:A,ref:p,"data-testid":"sentinelEnd"})]})}const vde={entering:{opacity:1},entered:{opacity:1}},XT=_.forwardRef(function(e,t){const n=of(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:i,easing:l,in:u,onEnter:d,onEntered:p,onEntering:h,onExit:y,onExited:g,onExiting:b,style:x,timeout:T=r,TransitionComponent:E=di,...A}=e,C=_.useRef(null),D=sr(C,cf(i),t),I=k=>M=>{if(k){const B=C.current;M===void 0?k(B):k(B,M)}},O=I(h),F=I((k,M)=>{z6(k);const B=Hd({style:x,timeout:T,easing:l},{mode:"enter"});k.style.webkitTransition=n.transitions.create("opacity",B),k.style.transition=n.transitions.create("opacity",B),d&&d(k,M)}),H=I(p),z=I(b),P=I(k=>{const M=Hd({style:x,timeout:T,easing:l},{mode:"exit"});k.style.webkitTransition=n.transitions.create("opacity",M),k.style.transition=n.transitions.create("opacity",M),y&&y(k)}),$=I(g);return v.jsx(E,{appear:a,in:u,nodeRef:C,onEnter:F,onEntered:H,onEntering:O,onExit:P,onExited:$,onExiting:z,addEndListener:k=>{o&&o(C.current,k)},timeout:T,...A,children:(k,{ownerState:M,...B})=>_.cloneElement(i,{style:{opacity:0,visibility:k==="exited"&&!u?"hidden":void 0,...vde[k],...x,...i.props.style},ref:D,...B})})});function Ede(e){return Xt("MuiBackdrop",e)}Ht("MuiBackdrop",["root","invisible"]);const xde=e=>{const{classes:t,invisible:n}=e;return Qt({root:["root",n&&"invisible"]},Ede,t)},Sde=ze("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),$6=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiBackdrop"}),{children:r,className:o,component:a="div",invisible:i=!1,open:l,components:u={},componentsProps:d={},slotProps:p={},slots:h={},TransitionComponent:y,transitionDuration:g,...b}=n,x={...n,component:a,invisible:i},T=xde(x),E={transition:y,root:u.Root,...h},A={...d,...p},C={component:a,slots:E,slotProps:A},[D,I]=vn("root",{elementType:Sde,externalForwardedProps:C,className:St(T.root,o),ownerState:x}),[O,F]=vn("transition",{elementType:XT,externalForwardedProps:C,ownerState:x});return v.jsx(O,{in:l,timeout:g,...b,...F,children:v.jsx(D,{"aria-hidden":!0,...I,classes:T,ref:t,children:r})})});function Tde(e){return typeof e=="function"?e():e}function Cde(e){return e?e.props.hasOwnProperty("in"):!1}const eP=()=>{},Cy=new dde;function Ade(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:i,children:l,onClose:u,open:d,rootRef:p}=e,h=_.useRef({}),y=_.useRef(null),g=_.useRef(null),b=sr(g,p),[x,T]=_.useState(!d),E=Cde(l);let A=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(A=!1);const C=()=>oo(y.current),D=()=>(h.current.modalRef=g.current,h.current.mount=y.current,h.current),I=()=>{Cy.mount(D(),{disableScrollLock:r}),g.current&&(g.current.scrollTop=0)},O=Mr(()=>{const k=Tde(t)||C().body;Cy.add(D(),k),g.current&&I()}),F=()=>Cy.isTopModal(D()),H=Mr(k=>{y.current=k,k&&(d&&F()?I():g.current&&gh(g.current,A))}),z=_.useCallback(()=>{Cy.remove(D(),A)},[A]);_.useEffect(()=>()=>{z()},[z]),_.useEffect(()=>{d?O():(!E||!o)&&z()},[d,z,E,o,O]);const P=k=>M=>{k.onKeyDown?.(M),!(M.key!=="Escape"||M.which===229||!F())&&(n||(M.stopPropagation(),u&&u(M,"escapeKeyDown")))},$=k=>M=>{k.onClick?.(M),M.target===M.currentTarget&&u&&u(M,"backdropClick")};return{getRootProps:(k={})=>{const M=xo(e);delete M.onTransitionEnter,delete M.onTransitionExited;const B={...M,...k};return{role:"presentation",...B,onKeyDown:P(B),ref:b}},getBackdropProps:(k={})=>{const M=k;return{"aria-hidden":!0,...M,onClick:$(M),open:d}},getTransitionProps:()=>{const k=()=>{T(!1),a&&a()},M=()=>{T(!0),i&&i(),o&&z()};return{onEnter:RO(k,l?.props.onEnter??eP),onExited:RO(M,l?.props.onExited??eP)}},rootRef:b,portalRef:H,isTopModal:F,exited:x,hasTransition:E}}function _de(e){return Xt("MuiModal",e)}Ht("MuiModal",["root","hidden","backdrop"]);const kde=e=>{const{open:t,exited:n,classes:r}=e;return Qt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},_de,r)},wde=ze("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(fn(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),Rde=ze($6,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),H6=_.forwardRef(function(e,t){const n=on({name:"MuiModal",props:e}),{BackdropComponent:r=Rde,BackdropProps:o,classes:a,className:i,closeAfterTransition:l=!1,children:u,container:d,component:p,components:h={},componentsProps:y={},disableAutoFocus:g=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:x=!1,disablePortal:T=!1,disableRestoreFocus:E=!1,disableScrollLock:A=!1,hideBackdrop:C=!1,keepMounted:D=!1,onClose:I,onTransitionEnter:O,onTransitionExited:F,open:H,slotProps:z={},slots:P={},theme:$,...k}=n,M={...n,closeAfterTransition:l,disableAutoFocus:g,disableEnforceFocus:b,disableEscapeKeyDown:x,disablePortal:T,disableRestoreFocus:E,disableScrollLock:A,hideBackdrop:C,keepMounted:D},{getRootProps:B,getBackdropProps:V,getTransitionProps:j,portalRef:q,isTopModal:Q,exited:te,hasTransition:N}=Ade({...M,rootRef:t}),Y={...M,exited:te},K=kde(Y),L={};if(u.props.tabIndex===void 0&&(L.tabIndex="-1"),N){const{onEnter:Ae,onExited:Se}=j();L.onEnter=Ae,L.onExited=Se}const ee={slots:{root:h.Root,backdrop:h.Backdrop,...P},slotProps:{...y,...z}},[ae,J]=vn("root",{ref:t,elementType:wde,externalForwardedProps:{...ee,...k,component:p},getSlotProps:B,ownerState:Y,className:St(i,K?.root,!Y.open&&Y.exited&&K?.hidden)}),[me,ce]=vn("backdrop",{ref:o?.ref,elementType:r,externalForwardedProps:ee,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:Ae=>V({...Ae,onClick:Se=>{Ae?.onClick&&Ae.onClick(Se)}}),className:St(o?.className,K?.backdrop),ownerState:Y});return!D&&!H&&(!N||te)?null:v.jsx(N6,{ref:q,container:d,disablePortal:T,children:v.jsxs(ae,{...J,children:[!C&&r?v.jsx(me,{...ce}):null,v.jsx(bde,{disableEnforceFocus:b,disableAutoFocus:g,disableRestoreFocus:E,isEnabled:Q,open:H,children:_.cloneElement(u,L)})]})})});function Dde(e){return Xt("MuiPopover",e)}Ht("MuiPopover",["root","paper"]);function tP(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function nP(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function rP(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Ay(e){return typeof e=="function"?e():e}const Ide=e=>{const{classes:t}=e;return Qt({root:["root"],paper:["paper"]},Dde,t)},Ode=ze(H6,{name:"MuiPopover",slot:"Root"})({}),V6=ze(uf,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Nde=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:i,anchorReference:l="anchorEl",children:u,className:d,container:p,elevation:h=8,marginThreshold:y=16,open:g,PaperProps:b={},slots:x={},slotProps:T={},transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:A,transitionDuration:C="auto",TransitionProps:D={},disableScrollLock:I=!1,...O}=n,F=_.useRef(),H={...n,anchorOrigin:a,anchorReference:l,elevation:h,marginThreshold:y,transformOrigin:E,TransitionComponent:A,transitionDuration:C,TransitionProps:D},z=Ide(H),P=_.useCallback(()=>{if(l==="anchorPosition")return i;const Ae=Ay(o),Se=(Ae&&Ae.nodeType===1?Ae:oo(F.current).body).getBoundingClientRect();return{top:Se.top+tP(Se,a.vertical),left:Se.left+nP(Se,a.horizontal)}},[o,a.horizontal,a.vertical,i,l]),$=_.useCallback(Ae=>({vertical:tP(Ae,E.vertical),horizontal:nP(Ae,E.horizontal)}),[E.horizontal,E.vertical]),k=_.useCallback(Ae=>{const Se={width:Ae.offsetWidth,height:Ae.offsetHeight},Te=$(Se);if(l==="none")return{top:null,left:null,transformOrigin:rP(Te)};const He=P();let Oe=He.top-Te.vertical,we=He.left-Te.horizontal;const Ct=Oe+Se.height,pt=we+Se.width,Ve=ws(Ay(o)),Ye=Ve.innerHeight-y,ut=Ve.innerWidth-y;if(y!==null&&Oe<y){const Be=Oe-y;Oe-=Be,Te.vertical+=Be}else if(y!==null&&Ct>Ye){const Be=Ct-Ye;Oe-=Be,Te.vertical+=Be}if(y!==null&&we<y){const Be=we-y;we-=Be,Te.horizontal+=Be}else if(pt>ut){const Be=pt-ut;we-=Be,Te.horizontal+=Be}return{top:`${Math.round(Oe)}px`,left:`${Math.round(we)}px`,transformOrigin:rP(Te)}},[o,l,P,$,y]),[M,B]=_.useState(g),V=_.useCallback(()=>{const Ae=F.current;if(!Ae)return;const Se=k(Ae);Se.top!==null&&Ae.style.setProperty("top",Se.top),Se.left!==null&&(Ae.style.left=Se.left),Ae.style.transformOrigin=Se.transformOrigin,B(!0)},[k]);_.useEffect(()=>(I&&window.addEventListener("scroll",V),()=>window.removeEventListener("scroll",V)),[o,I,V]);const j=()=>{V()},q=()=>{B(!1)};_.useEffect(()=>{g&&V()}),_.useImperativeHandle(r,()=>g?{updatePosition:()=>{V()}}:null,[g,V]),_.useEffect(()=>{if(!g)return;const Ae=DM(()=>{V()}),Se=ws(Ay(o));return Se.addEventListener("resize",Ae),()=>{Ae.clear(),Se.removeEventListener("resize",Ae)}},[o,g,V]);let Q=C;const te={slots:{transition:A,...x},slotProps:{transition:D,paper:b,...T}},[N,Y]=vn("transition",{elementType:sb,externalForwardedProps:te,ownerState:H,getSlotProps:Ae=>({...Ae,onEntering:(Se,Te)=>{Ae.onEntering?.(Se,Te),j()},onExited:Se=>{Ae.onExited?.(Se),q()}}),additionalProps:{appear:!0,in:g}});C==="auto"&&!N.muiSupportAuto&&(Q=void 0);const K=p||(o?oo(Ay(o)).body:void 0),[L,{slots:ee,slotProps:ae,...J}]=vn("root",{ref:t,elementType:Ode,externalForwardedProps:{...te,...O},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:x.backdrop},slotProps:{backdrop:IM(typeof T.backdrop=="function"?T.backdrop(H):T.backdrop,{invisible:!0})},container:K,open:g},ownerState:H,className:St(z.root,d)}),[me,ce]=vn("paper",{ref:F,className:z.paper,elementType:V6,externalForwardedProps:te,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:M?void 0:{opacity:0}},ownerState:H});return v.jsx(L,{...J,...!rb(L)&&{slots:ee,slotProps:ae,disableScrollLock:I},children:v.jsx(N,{...Y,timeout:Q,children:v.jsx(me,{...ce,children:u})})})});function Pde(e){return Xt("MuiMenu",e)}Ht("MuiMenu",["root","paper","list"]);const Lde={vertical:"top",horizontal:"right"},Mde={vertical:"top",horizontal:"left"},Fde=e=>{const{classes:t}=e;return Qt({root:["root"],paper:["paper"],list:["list"]},Pde,t)},jde=ze(Nde,{shouldForwardProp:e=>Ro(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),Bde=ze(V6,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Ude=ze(ade,{name:"MuiMenu",slot:"List"})({outline:0}),zde=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiMenu"}),{autoFocus:r=!0,children:o,className:a,disableAutoFocusItem:i=!1,MenuListProps:l={},onClose:u,open:d,PaperProps:p={},PopoverClasses:h,transitionDuration:y="auto",TransitionProps:{onEntering:g,...b}={},variant:x="selectedMenu",slots:T={},slotProps:E={},...A}=n,C=BA(),D={...n,autoFocus:r,disableAutoFocusItem:i,MenuListProps:l,onEntering:g,PaperProps:p,transitionDuration:y,TransitionProps:b,variant:x},I=Fde(D),O=r&&!i&&d,F=_.useRef(null),H=(Q,te)=>{F.current&&F.current.adjustStyleForScrollbar(Q,{direction:C?"rtl":"ltr"}),g&&g(Q,te)},z=Q=>{Q.key==="Tab"&&(Q.preventDefault(),u&&u(Q,"tabKeyDown"))};let P=-1;_.Children.map(o,(Q,te)=>{_.isValidElement(Q)&&(Q.props.disabled||(x==="selectedMenu"&&Q.props.selected||P===-1)&&(P=te))});const $={slots:T,slotProps:{list:l,transition:b,paper:p,...E}},k=Es({elementType:T.root,externalSlotProps:E.root,ownerState:D,className:[I.root,a]}),[M,B]=vn("paper",{className:I.paper,elementType:Bde,externalForwardedProps:$,shouldForwardComponentProp:!0,ownerState:D}),[V,j]=vn("list",{className:St(I.list,l.className),elementType:Ude,shouldForwardComponentProp:!0,externalForwardedProps:$,getSlotProps:Q=>({...Q,onKeyDown:te=>{z(te),Q.onKeyDown?.(te)}}),ownerState:D}),q=typeof $.slotProps.transition=="function"?$.slotProps.transition(D):$.slotProps.transition;return v.jsx(jde,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Lde:Mde,slots:{root:T.root,paper:M,backdrop:T.backdrop,...T.transition&&{transition:T.transition}},slotProps:{root:k,paper:B,backdrop:typeof E.backdrop=="function"?E.backdrop(D):E.backdrop,transition:{...q,onEntering:(...Q)=>{H(...Q),q?.onEntering?.(...Q)}}},open:d,ref:t,transitionDuration:y,ownerState:D,...A,classes:h,children:v.jsx(V,{actions:F,autoFocus:r&&(P===-1||i),autoFocusItem:O,variant:x,...j,children:o})})});function $de(e){return Xt("MuiNativeSelect",e)}const p_=Ht("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Hde=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,l={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Qe(n)}`,a&&"iconOpen",r&&"disabled"]};return Qt(l,$de,t)},G6=ze("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${p_.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),Vde=ze(G6,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ro,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${p_.multiple}`]:t.multiple}]}})({}),q6=ze("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${p_.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),Gde=ze(q6,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Qe(n.variant)}`],n.open&&t.iconOpen]}})({}),qde=_.forwardRef(function(e,t){const{className:n,disabled:r,error:o,IconComponent:a,inputRef:i,variant:l="standard",...u}=e,d={...e,disabled:r,variant:l,error:o},p=Hde(d);return v.jsxs(_.Fragment,{children:[v.jsx(Vde,{ownerState:d,className:St(p.select,n),disabled:r,ref:i||t,...u}),e.multiple?null:v.jsx(Gde,{as:a,ownerState:d,className:p.icon})]})});function W6(e){return Xt("MuiSelect",e)}const Pp=Ht("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var oP;const Wde=ze(G6,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Pp.select}`]:t.select},{[`&.${Pp.select}`]:t[n.variant]},{[`&.${Pp.error}`]:t.error},{[`&.${Pp.multiple}`]:t.multiple}]}})({[`&.${Pp.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Yde=ze(q6,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Qe(n.variant)}`],n.open&&t.iconOpen]}})({}),Kde=ze("input",{shouldForwardProp:e=>RM(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function aP(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Qde(e){return e==null||typeof e=="string"&&!e.trim()}const Xde=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,l={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Qe(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Qt(l,W6,t)},Zde=_.forwardRef(function(e,t){const{"aria-describedby":n,"aria-label":r,autoFocus:o,autoWidth:a,children:i,className:l,defaultOpen:u,defaultValue:d,disabled:p,displayEmpty:h,error:y=!1,IconComponent:g,inputRef:b,labelId:x,MenuProps:T={},multiple:E,name:A,onBlur:C,onChange:D,onClose:I,onFocus:O,onOpen:F,open:H,readOnly:z,renderValue:P,required:$,SelectDisplayProps:k={},tabIndex:M,type:B,value:V,variant:j="standard",...q}=e,[Q,te]=xd({controlled:V,default:d,name:"Select"}),[N,Y]=xd({controlled:H,default:u,name:"Select"}),K=_.useRef(null),L=_.useRef(null),[ee,ae]=_.useState(null),{current:J}=_.useRef(H!=null),[me,ce]=_.useState(),Ae=sr(t,b),Se=_.useCallback(et=>{L.current=et,et&&ae(et)},[]),Te=ee?.parentNode;_.useImperativeHandle(Ae,()=>({focus:()=>{L.current.focus()},node:K.current,value:Q}),[Q]),_.useEffect(()=>{u&&N&&ee&&!J&&(ce(a?null:Te.clientWidth),L.current.focus())},[ee,a]),_.useEffect(()=>{o&&L.current.focus()},[o]),_.useEffect(()=>{if(!x)return;const et=oo(L.current).getElementById(x);if(et){const _e=()=>{getSelection().isCollapsed&&L.current.focus()};return et.addEventListener("click",_e),()=>{et.removeEventListener("click",_e)}}},[x]);const He=(et,_e)=>{et?F&&F(_e):I&&I(_e),J||(ce(a?null:Te.clientWidth),Y(et))},Oe=et=>{et.button===0&&(et.preventDefault(),L.current.focus(),He(!0,et))},we=et=>{He(!1,et)},Ct=_.Children.toArray(i),pt=et=>{const _e=Ct.find(Ce=>Ce.props.value===et.target.value);_e!==void 0&&(te(_e.props.value),D&&D(et,_e))},Ve=et=>_e=>{let Ce;if(_e.currentTarget.hasAttribute("tabindex")){if(E){Ce=Array.isArray(Q)?Q.slice():[];const ht=Q.indexOf(et.props.value);ht===-1?Ce.push(et.props.value):Ce.splice(ht,1)}else Ce=et.props.value;if(et.props.onClick&&et.props.onClick(_e),Q!==Ce&&(te(Ce),D)){const ht=_e.nativeEvent||_e,mt=new ht.constructor(ht.type,ht);Object.defineProperty(mt,"target",{writable:!0,value:{value:Ce,name:A}}),D(mt,et)}E||He(!1,_e)}},Ye=et=>{z||[" ","ArrowUp","ArrowDown","Enter"].includes(et.key)&&(et.preventDefault(),He(!0,et))},ut=ee!==null&&N,Be=et=>{!ut&&C&&(Object.defineProperty(et,"target",{writable:!0,value:{value:Q,name:A}}),C(et))};delete q["aria-invalid"];let Me,Fe;const Pt=[];let tn=!1;(ib({value:Q})||h)&&(P?Me=P(Q):tn=!0);const xt=Ct.map(et=>{if(!_.isValidElement(et))return null;let _e;if(E){if(!Array.isArray(Q))throw new Error(_s(2));_e=Q.some(Ce=>aP(Ce,et.props.value)),_e&&tn&&Pt.push(et.props.children)}else _e=aP(Q,et.props.value),_e&&tn&&(Fe=et.props.children);return _.cloneElement(et,{"aria-selected":_e?"true":"false",onClick:Ve(et),onKeyUp:Ce=>{Ce.key===" "&&Ce.preventDefault(),et.props.onKeyUp&&et.props.onKeyUp(Ce)},role:"option",selected:_e,value:void 0,"data-value":et.props.value})});tn&&(E?Pt.length===0?Me=null:Me=Pt.reduce((et,_e,Ce)=>(et.push(_e),Ce<Pt.length-1&&et.push(", "),et),[]):Me=Fe);let ue=me;!a&&J&&ee&&(ue=Te.clientWidth);let ge;typeof M<"u"?ge=M:ge=p?null:0;const Ge=k.id||(A?`mui-component-select-${A}`:void 0),rt={...e,variant:j,value:Q,open:ut,error:y},ot=Xde(rt),it={...T.PaperProps,...typeof T.slotProps?.paper=="function"?T.slotProps.paper(rt):T.slotProps?.paper},Wt={...T.MenuListProps,...typeof T.slotProps?.list=="function"?T.slotProps.list(rt):T.slotProps?.list},Jt=rf();return v.jsxs(_.Fragment,{children:[v.jsx(Wde,{as:"div",ref:Se,tabIndex:ge,role:"combobox","aria-controls":ut?Jt:void 0,"aria-disabled":p?"true":void 0,"aria-expanded":ut?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[x,Ge].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":$?"true":void 0,"aria-invalid":y?"true":void 0,onKeyDown:Ye,onMouseDown:p||z?null:Oe,onBlur:Be,onFocus:O,...k,ownerState:rt,className:St(k.className,ot.select,l),id:Ge,children:Qde(Me)?oP||(oP=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Me}),v.jsx(Kde,{"aria-invalid":y,value:Array.isArray(Q)?Q.join(","):Q,name:A,ref:K,"aria-hidden":!0,onChange:pt,tabIndex:-1,disabled:p,className:ot.nativeInput,autoFocus:o,required:$,...q,ownerState:rt}),v.jsx(Yde,{as:g,className:ot.icon,ownerState:rt}),v.jsx(zde,{id:`menu-${A||""}`,anchorEl:Te,open:ut,onClose:we,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...T,slotProps:{...T.slotProps,list:{"aria-labelledby":x,role:"listbox","aria-multiselectable":E?"true":void 0,disableListWrap:!0,id:Jt,...Wt},paper:{...it,style:{minWidth:ue,...it!=null?it.style:null}}},children:xt})]})}),Jde=e=>{const{classes:t}=e,n=Qt({root:["root"]},W6,t);return{...t,...n}},h_={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Ro(e)&&e!=="variant"},efe=ze(u_,h_)(""),tfe=ze(f_,h_)(""),nfe=ze(d_,h_)(""),Y6=_.forwardRef(function(e,t){const n=on({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:a={},className:i,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:d=j6,id:p,input:h,inputProps:y,label:g,labelId:b,MenuProps:x,multiple:T=!1,native:E=!1,onClose:A,onOpen:C,open:D,renderValue:I,SelectDisplayProps:O,variant:F="outlined",...H}=n,z=E?qde:Zde,P=ou(),$=df({props:n,muiFormControl:P,states:["variant","error"]}),k=$.variant||F,M={...n,variant:k,classes:a},B=Jde(M),{root:V,...j}=B,q=h||{standard:v.jsx(efe,{ownerState:M}),outlined:v.jsx(tfe,{label:g,ownerState:M}),filled:v.jsx(nfe,{ownerState:M})}[k],Q=sr(t,cf(q));return v.jsx(_.Fragment,{children:_.cloneElement(q,{inputComponent:z,inputProps:{children:o,error:$.error,IconComponent:d,variant:k,type:void 0,multiple:T,...E?{id:p}:{autoWidth:r,defaultOpen:l,displayEmpty:u,labelId:b,MenuProps:x,onClose:A,onOpen:C,open:D,renderValue:I,SelectDisplayProps:{id:p,...O}},...y,classes:y?mo(j,y.classes):j,...h?h.props.inputProps:{}},...(T&&E||u)&&k==="outlined"?{notched:!0}:{},ref:Q,className:St(q.props.className,i,B.root),...!h&&{variant:k},...H})})});Y6.muiName="Select";function rfe(e){return Xt("MuiTextField",e)}Ht("MuiTextField",["root"]);const ofe={standard:u_,filled:d_,outlined:f_},afe=e=>{const{classes:t}=e;return Qt({root:["root"]},rfe,t)},ife=ze(Que,{name:"MuiTextField",slot:"Root"})({}),go=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:o=!1,children:a,className:i,color:l="primary",defaultValue:u,disabled:d=!1,error:p=!1,FormHelperTextProps:h,fullWidth:y=!1,helperText:g,id:b,InputLabelProps:x,inputProps:T,InputProps:E,inputRef:A,label:C,maxRows:D,minRows:I,multiline:O=!1,name:F,onBlur:H,onChange:z,onFocus:P,placeholder:$,required:k=!1,rows:M,select:B=!1,SelectProps:V,slots:j={},slotProps:q={},type:Q,value:te,variant:N="outlined",...Y}=n,K={...n,autoFocus:o,color:l,disabled:d,error:p,fullWidth:y,multiline:O,required:k,select:B,variant:N},L=afe(K),ee=rf(b),ae=g&&ee?`${ee}-helper-text`:void 0,J=C&&ee?`${ee}-label`:void 0,me=ofe[N],ce={slots:j,slotProps:{input:E,inputLabel:x,htmlInput:T,formHelperText:h,select:V,...q}},Ae={},Se=ce.slotProps.inputLabel;N==="outlined"&&(Se&&typeof Se.shrink<"u"&&(Ae.notched=Se.shrink),Ae.label=C),B&&((!V||!V.native)&&(Ae.id=void 0),Ae["aria-describedby"]=void 0);const[Te,He]=vn("root",{elementType:ife,shouldForwardComponentProp:!0,externalForwardedProps:{...ce,...Y},ownerState:K,className:St(L.root,i),ref:t,additionalProps:{disabled:d,error:p,fullWidth:y,required:k,color:l,variant:N}}),[Oe,we]=vn("input",{elementType:me,externalForwardedProps:ce,additionalProps:Ae,ownerState:K}),[Ct,pt]=vn("inputLabel",{elementType:que,externalForwardedProps:ce,ownerState:K}),[Ve,Ye]=vn("htmlInput",{elementType:"input",externalForwardedProps:ce,ownerState:K}),[ut,Be]=vn("formHelperText",{elementType:ede,externalForwardedProps:ce,ownerState:K}),[Me,Fe]=vn("select",{elementType:Y6,externalForwardedProps:ce,ownerState:K}),Pt=v.jsx(Oe,{"aria-describedby":ae,autoComplete:r,autoFocus:o,defaultValue:u,fullWidth:y,multiline:O,name:F,rows:M,maxRows:D,minRows:I,type:Q,value:te,id:ee,inputRef:A,onBlur:H,onChange:z,onFocus:P,placeholder:$,inputProps:Ye,slots:{input:j.htmlInput?Ve:void 0},...we});return v.jsxs(Te,{...He,children:[C!=null&&C!==""&&v.jsx(Ct,{htmlFor:ee,id:J,...pt,children:C}),B?v.jsx(Me,{"aria-describedby":ae,id:ee,labelId:J,value:te,input:Pt,...Fe,children:a}):Pt,g&&v.jsx(ut,{id:ae,...Be,children:g})]})});function K6({sourceAndPaths:e,selectedSourceIndex:t,existingQuery:n,onQueryChange:r,onSourceChange:o,resourceUri:a}){return We.useEffect(()=>{o&&o(t)},[t,o]),v.jsx(XA,{children:v.jsxs(DV,{spacing:2,component:"section",children:[v.jsx(lfe,{sourceAndPath:e[t],existingQuery:n,onChange:i=>{r&&r(i)},resourceUri:a}),v.jsx(xH,{height:"5px"})]})})}function o0(){return{query:void 0,malloyQuery:void 0,malloyResult:void 0}}function sfe({sourceAndPath:e,onChange:t,existingQuery:n,explorerComponents:r,QueryBuilder:o,resourceUri:a}){const[i,l]=We.useState(n||o0()),[u,d]=We.useState(void 0);We.useEffect(()=>{n&&l(n)},[n]);const[p,h]=We.useState([]),{MalloyExplorerProvider:y,QueryPanel:g,ResizableCollapsiblePanel:b,ResultPanel:x,SourcePanel:T}=r;We.useEffect(()=>{t&&t(i)},[t,i]);const{projectName:E,packageName:A,versionId:C}=gr(a),{apiClients:D}=Zn(),I=Fi({mutationFn:()=>{const z=typeof i?.malloyQuery=="string"?i.malloyQuery:new o.ASTQuery({source:e.sourceInfo,query:i?.malloyQuery}).toMalloy();return d({executionState:"running",query:i?.malloyQuery,queryResolutionStartMillis:Date.now(),onCancel:I.reset,response:{result:{}}}),l({...i,query:z}),D.models.executeQueryModel(E,A,e.modelPath,{query:z,sourceName:void 0,queryName:void 0,versionId:C})},onSuccess:z=>{if(z){const P=JSON.parse(z.data.result);l({...i,malloyResult:P}),d($=>$?{...$,executionState:"finished",response:{result:P}}:void 0)}}}),[O,F]=We.useState(e.sourceInfo.name);We.useEffect(()=>{O!==e.sourceInfo.name&&(F(e.sourceInfo.name),l(o0()),d(void 0))},[e,O]);const H=We.useCallback(z=>{l({...i,malloyQuery:z,malloyResult:void 0})},[i]);return O!==e.sourceInfo.name?v.jsx("div",{children:"Loading..."}):v.jsx(x6,{sx:{border:"1px solid #e0e0e0",borderRadius:"8px",overflow:"hidden"},children:v.jsx(y,{source:e.sourceInfo,query:i?.malloyQuery,topValues:[],onFocusedNestViewPathChange:h,focusedNestViewPath:p,onQueryChange:H,children:v.jsxs("div",{style:{display:"flex",height:"100%",overflowY:"auto"},children:[v.jsx(b,{isInitiallyExpanded:!0,initialWidth:180,minWidth:180,icon:"database",title:e.sourceInfo.name,children:v.jsx(T,{onRefresh:()=>l(o0())})}),v.jsx(b,{isInitiallyExpanded:!0,initialWidth:280,minWidth:280,icon:"filterSliders",title:"Query",children:v.jsx(g,{runQuery:()=>{console.log(`running query with: ${i?.malloyQuery}`);try{I.mutate()}catch(z){console.error("Error running query:",z)}}})}),v.jsx(x,{source:e.sourceInfo,draftQuery:i?.malloyQuery,setDraftQuery:z=>l({...i,malloyQuery:z}),submittedQuery:u,options:{showRawQuery:!0}})]})})},e.sourceInfo.name)}function lfe(e){const[t,n]=_.useState(null),[r,o]=_.useState(null),[a,i]=_.useState(!0);return _.useEffect(()=>{let l=!0;return Promise.all([X(()=>import("./index-DiPnMvhX.js"),__vite__mapDeps([93,94,95])),X(()=>import("./index-2wN22fP5.js").then(u=>u.i),[])]).then(([u,d])=>{l&&(n(u),o(d),i(!1))}).catch(u=>{console.error("Failed to load Malloy components:",u),l&&i(!1)}),()=>{l=!1}},[]),a||!t||!r?v.jsx(Fse,{children:v.jsx(x6,{children:v.jsx("div",{style:{alignItems:"center",justifyContent:"center",height:"200px",color:"#666"},children:"Loading explorer..."})})}):v.jsx(sfe,{...e,explorerComponents:t,QueryBuilder:r,resourceUri:e.resourceUri})}function Q6(e,t=!0){const{modelPath:n,projectName:r,packageName:o,versionId:a}=gr(e),{apiClients:i}=Zn();return Qo({queryKey:["package",r,o,n,a],queryFn:async()=>(await i.models.getModel(r,o,n,a)).data,enabled:t})}function X6({data:e,onChange:t,existingQuery:n,initialSelectedSourceIndex:r=0,onSourceChange:o,resourceUri:a}){const[i,l]=We.useState(r);We.useEffect(()=>{l(r)},[r]);const{data:u,isError:d,isLoading:p,error:h}=Q6(a,!e),{modelPath:y}=gr(a),g=e||u;if(p&&!e)return v.jsx(Wo,{text:"Fetching Model..."});if(d&&!e)return console.log("error",h),v.jsx(Ko,{error:h,context:`ModelExplorer > ${y}`});if(!g)return v.jsx(Wo,{text:"Loading..."});const b=(g?.sourceInfos||[]).map((T,E)=>{try{return JSON.parse(T)?.name||`Source ${E+1}`}catch{return`Source ${E+1}`}}),x=b[i]||"";return v.jsxs(tb,{variant:"outlined",children:[v.jsx(E6,{children:v.jsx(Zr,{sx:{flexDirection:"row"},children:v.jsx(Cue,{size:"small",id:"size-small-standard",disablePortal:!0,options:b,value:x,onChange:(T,E)=>{if(!E)return;const A=b.indexOf(E);A>=0&&(l(A),o?.(A))},renderInput:T=>v.jsx(go,{...T}),style:{width:350,marginTop:"3px",marginLeft:"6px",marginBottom:"8px"}})})}),v.jsx(XA,{children:v.jsxs(Zr,{spacing:2,component:"section",children:[Array.isArray(g.sourceInfos)&&g.sourceInfos.length>0&&v.jsx(K6,{sourceAndPaths:g.sourceInfos.map(T=>({sourceInfo:JSON.parse(T),modelPath:y})),selectedSourceIndex:i,existingQuery:n,onQueryChange:t,resourceUri:a}),v.jsx(Rt,{height:"5px"})]})})]})}function Z6({open:e,onClose:t,resourceUri:n,data:r,title:o="Data Sources",hasValidImport:a=!0,existingQuery:i,initialSelectedSourceIndex:l,onChange:u,onSourceChange:d}){return v.jsxs(Pl,{open:e,onClose:t,maxWidth:!1,fullWidth:!0,sx:{"& .MuiDialog-paper":{width:"95vw",height:"95vh",maxWidth:"none"}},children:[v.jsxs(Ml,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[o,v.jsx(ir,{onClick:t,sx:{color:"#666666"},children:v.jsx(Bl,{})})]}),v.jsx(Ll,{children:a?v.jsx(X6,{resourceUri:n,data:r,existingQuery:i,initialSelectedSourceIndex:l,onChange:u,onSourceChange:d}):v.jsx("div",{children:"No valid import statement found in cell"})})]})}function L_e({onChange:e,resourceUri:t}){const{modelPath:n}=gr(t),{data:r,isError:o,isLoading:a,error:i}=Q6(t),[l,u]=We.useState(!1),[d,p]=We.useState(),[h,y]=We.useState(0),[g,b]=_.useState("");if(a)return v.jsx(Wo,{text:"Fetching Model..."});if(o)return console.log("error",i),v.jsx(Ko,{error:i,context:`Model > ${n}`});const x=A=>{p(A),e&&e(A)},T=A=>{y(A)},E=()=>{const A=window.location.href;navigator.clipboard.writeText(A).then(()=>b("URL copied to clipboard!")).catch(()=>b("Failed to copy URL"))};return v.jsxs(v.Fragment,{children:[v.jsxs(Rt,{sx:{position:"relative",maxWidth:"1200px",margin:"0 auto",paddingTop:"24px"},children:[Array.isArray(r?.sourceInfos)&&r.sourceInfos.length>0&&v.jsxs(Zr,{spacing:2,component:"section",children:[v.jsxs(Rt,{sx:{padding:"0 0 16px 0",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[v.jsx(st,{variant:"h1",sx:{fontSize:"28px",fontWeight:"600",color:"#1a1a1a",marginBottom:"8px",marginTop:"0",paddingLeft:"0"},children:"Sources"}),v.jsx(Fo,{title:"Click to copy link",children:v.jsx(zA,{sx:{fontSize:"24px",color:"#666666",cursor:"pointer"},onClick:E})})]}),v.jsx(X6,{data:r,onChange:x,onSourceChange:T,existingQuery:d,initialSelectedSourceIndex:h,resourceUri:t}),v.jsx(ir,{sx:{position:"absolute",top:"90px",right:"4px",backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px",zIndex:2},onClick:()=>u(!0),children:v.jsx(Fo,{title:"Expanded view",children:v.jsx(Roe,{sx:{fontSize:"18px",color:"#666666",marginBottom:"5px"}})})})]}),r?.queries?.length>0&&v.jsxs(Zr,{spacing:2,component:"section",sx:{marginTop:"24px"},children:[v.jsx(Rt,{sx:{padding:"0 0 16px 0"},children:v.jsx(st,{variant:"h2",sx:{fontSize:"24px",fontWeight:"600",color:"#1a1a1a",marginBottom:"0",marginTop:"8px",paddingLeft:"0"},children:"Named Queries"})}),r.queries.map(A=>v.jsx(Bse,{queryName:A.name,annotations:A.annotations,resourceUri:t},A.name))]}),v.jsx(Z6,{open:l,onClose:()=>u(!1),resourceUri:t,data:r,title:`Model: ${n.split("/").pop()}`,existingQuery:d,initialSelectedSourceIndex:h,onChange:x,onSourceChange:T})]}),v.jsx(Ds,{open:g!=="",autoHideDuration:6e3,onClose:()=>b(""),message:g})]})}const J6=Nn(v.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"})),cfe=Nn(v.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"}));_.lazy(()=>Promise.resolve().then(()=>H7));function ufe(e){const{projectName:t,packageName:n}=gr(e.resourceUri);if(!t||!n)throw new Error("Project and Package name must be provided for query embedding.");return JSON.stringify({...e})}function dfe({cell:e,hideCodeCellIcon:t,hideEmbeddingIcon:n,resourceUri:r,index:o}){const[a,i]=We.useState(!1),[l,u]=We.useState(!1),[d,p]=We.useState(!1),[h,y]=We.useState(),[g,b]=We.useState(),[x,T]=We.useState(!1),[E,A]=_.useState(""),C=/import\s*\{([^}]+)\}\s*from\s*['"`][^'"`]+['"`]/,D=/import\s*(?:\{[^}]*\}\s*from\s*)?['"`]([^'"`]+)['"`]/,I=!!e.text&&(C.test(e.text)||D.test(e.text)),O=()=>{if(!e.newSources||e.newSources.length===0)return 0;let P=[],$="";if(e.text){const k=e.text.match(C);k&&(P=k[1].split(",").map(B=>B.trim()));const M=e.text.match(D);M&&($=M[1].trim())}for(let k=0;k<e.newSources.length;k++)try{const M=JSON.parse(e.newSources[k]);if(P.length>0&&P.includes(M.name)||$&&$===M.path)return k}catch{continue}return 0},F=e.newSources&&e.newSources.length>0?{sourceInfos:e.newSources,resource:r}:void 0,H=ufe({query:e.text,resourceUri:r});_.useEffect(()=>{e.type==="code"&&eb(e.text,"malloy").then(P=>{y(P)})},[e]),_.useEffect(()=>{eb(H,"typescript").then(P=>{b(P)})},[H]);const z=()=>{const P=window.location.href;navigator.clipboard.writeText(P).then(()=>A("URL copied to clipboard!")).catch(()=>A("Failed to copy URL"))};return e.type==="markdown"&&v.jsx(jT,{children:v.jsxs(Rt,{sx:{"& h1, & h2, & h3, & h4, & h5, & h6":{fontWeight:"600",color:"#1a1a1a",marginBottom:"8px",marginTop:"16px"},"& h1":{fontSize:"28px"},"& h2":{fontSize:"24px"},"& h3":{fontSize:"20px"},"& p":{color:"#333333",lineHeight:"1.7",marginBottom:"8px",fontSize:"16px"},"& ul, & ol":{color:"#333333",lineHeight:"1.7",marginBottom:"8px",fontSize:"16px"},"& li":{marginBottom:"4px"}},children:[o===0?v.jsxs(Zr,{direction:"row",alignItems:"flex-start",justifyContent:"space-between",children:[v.jsx(L0,{children:e.text}),v.jsx(Fo,{title:"Click to copy link",children:v.jsx(zA,{sx:{fontSize:"24px",color:"#666666",cursor:"pointer",marginTop:"26px"},onClick:z})})]}):v.jsx(L0,{children:e.text}),v.jsx(Ds,{open:E!=="",autoHideDuration:6e3,onClose:()=>A(""),message:E})]})})||e.type==="code"&&v.jsxs(jT,{children:[(!t||!n&&e.result||e.newSources&&e.newSources.length>0)&&v.jsx(Zr,{sx:{flexDirection:"column",gap:"8px",marginBottom:"16px"},children:e.newSources&&e.newSources.length>0&&I&&v.jsx(BT,{sx:{position:"relative",padding:"0"},children:v.jsxs(Rt,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingLeft:"24px",paddingRight:"8px"},children:[h&&v.jsx("span",{dangerouslySetInnerHTML:{__html:e.text.length>50&&h?`${h.substring(0,50)}...`:h},style:{fontFamily:"monospace",fontSize:"14px",flex:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginRight:"8px"}}),v.jsx(ir,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px",flexShrink:0},onClick:()=>T(!0),children:v.jsx(Qh,{sx:{fontSize:"18px",color:"#666666"}})})]})})}),v.jsx(Z6,{open:x,onClose:()=>T(!1),title:"Data Sources",hasValidImport:I,resourceUri:r,data:F,initialSelectedSourceIndex:O()}),v.jsxs(Pl,{open:a,onClose:()=>i(!1),maxWidth:"lg",fullWidth:!0,children:[v.jsxs(Ml,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Malloy Code",v.jsx(ir,{onClick:()=>i(!1),sx:{color:"#666666"},children:v.jsx(Bl,{})})]}),v.jsx(Ll,{children:v.jsx(Rt,{sx:{border:"1px solid #e0e0e0",borderRadius:"8px",padding:"16px",fontFamily:"monospace",fontSize:"14px",lineHeight:"1.5",overflow:"auto",maxHeight:"70vh",backgroundColor:"#ffffff"},children:v.jsx("pre",{className:"code-display",style:{margin:0},dangerouslySetInnerHTML:{__html:h}})})})]}),v.jsxs(Pl,{open:l,onClose:()=>u(!1),maxWidth:"lg",fullWidth:!0,children:[v.jsxs(Ml,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Embeddable Code",v.jsx(ir,{onClick:()=>u(!1),sx:{color:"#666666"},children:v.jsx(Bl,{})})]}),v.jsx(Ll,{children:v.jsxs(Zr,{sx:{flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start"},children:[v.jsx(st,{component:"div",sx:{fontSize:"12px",fontFamily:"monospace","& .line":{textWrap:"wrap"},flex:1},dangerouslySetInnerHTML:{__html:g}}),v.jsx(Fo,{title:"Copy Embeddable Code",children:v.jsx(ir,{sx:{width:"24px",height:"24px",marginLeft:"8px",color:"#666666"},onClick:()=>{navigator.clipboard.writeText(H)},children:v.jsx(cfe,{})})})]})})]}),v.jsx(v6,{open:d,onClose:()=>p(!1),result:e.result||"",title:"Results"}),e.result&&v.jsxs(BT,{sx:{position:"relative"},children:[v.jsx(Rt,{sx:{paddingTop:"24px"},children:v.jsx(Tv,{result:e.result,minHeight:300,maxHeight:1e3})}),v.jsx(Rt,{sx:{position:"absolute",bottom:0,left:0,right:0,height:"40px",background:"linear-gradient(transparent, rgba(255, 255, 255, 0.9))",pointerEvents:"none",zIndex:1}}),v.jsxs(Zr,{sx:{position:"absolute",top:"8px",right:"8px",flexDirection:"row",gap:"8px",alignItems:"center",zIndex:2},children:[!t&&v.jsx(ir,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px"},onClick:P=>{P.stopPropagation(),i(!0)},children:v.jsx(J6,{sx:{fontSize:"18px",color:"#666666"}})}),v.jsx(ir,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px"},onClick:()=>p(!0),children:v.jsx(Qh,{sx:{fontSize:"18px",color:"#666666"}})})]})]})]})}function ffe({resourceUri:e}){const{apiClients:t}=Zn(),{projectName:n,packageName:r,versionId:o,modelPath:a}=gr(e),{data:i,isSuccess:l,isError:u,error:d}=Qo({queryKey:[e],queryFn:async()=>(await t.notebooks.getNotebook(n,r,a,o)).data});return v.jsx(Lse,{children:v.jsx(Mse,{children:v.jsxs(Zr,{spacing:3,component:"section",children:[!l&&!u&&v.jsx(Wo,{text:"Fetching Notebook..."}),l&&i.notebookCells?.map((p,h)=>v.jsx(dfe,{cell:p,index:h,resourceUri:e},h)),u&&d.status===404&&v.jsxs(st,{variant:"body2",sx:{color:"#666666"},children:[v.jsx("code",{children:`${n} > ${r} > ${a}`})," ","not found."]}),u&&d.status!==404&&v.jsx(Ko,{error:d,context:`${n} > ${r} > ${a}`})]})})})}const pfe=Nn(v.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),ed=YC({createStyledComponent:ze("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>on({props:e,name:"MuiStack"})});class yh{constructor(t,n){this.workbookData=n,this.workbookStorage=t,this.workbookData?this.isSaved=!0:(this.workbookData={models:[],cells:[],workbookPath:void 0},this.isSaved=!1)}isSaved;workbookStorage;getWorkbookData(){return this.workbookData}getWorkbookPath(){return this.workbookData.workbookPath}async renameWorkbook(t){if(this.workbookData.workbookPath.path!==t)try{await this.workbookStorage.moveWorkbook(this.workbookData.workbookPath,{path:t,workspace:this.workbookData.workbookPath.workspace})}catch{}return this.workbookData.workbookPath.path=t,this.isSaved=!1,await this.saveWorkbook()}getCells(){return this.workbookData.cells}deleteCell(t){return this.workbookData.cells=[...this.workbookData.cells.slice(0,t),...this.workbookData.cells.slice(t+1)],this.isSaved=!1,this}insertCell(t,n){return this.workbookData.cells=[...this.workbookData.cells.slice(0,t),n,...this.workbookData.cells.slice(t)],this.isSaved=!1,this}setCell(t,n){return this.workbookData.cells[t]=n,this.isSaved=!1,this}setModels(t){return this.workbookData.models=t,this.isSaved=!1,this}getModels(){return this.workbookData.models}updateWorkbookData(t){return this.workbookData=t,this.isSaved=!1,this}async saveWorkbook(){if(!this.isSaved){if(!this.workbookData.workbookPath)throw new Error("Workbook path is not set");await this.workbookStorage.saveWorkbook(this.workbookData.workbookPath,JSON.stringify(this.workbookData)),this.isSaved=!0}return new yh(this.workbookStorage,this.workbookData)}toMalloyWorkbook(){return this.workbookData.cells.map(t=>t.isMarkdown?`>>>markdown
362
+ `),O=C.selectionStart===D;I&&O&&C.setSelectionRange(D,D),n&&n(A)};return v.jsxs(_.Fragment,{children:[v.jsx("textarea",{value:i,onChange:E,ref:p,rows:o,style:a,...l}),v.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:y,tabIndex:-1,style:{...tue.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function df({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const l_=_.createContext(void 0);function ou(){return _.useContext(l_)}function HN(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ib(e,t=!1){return e&&(HN(e.value)&&e.value!==""||t&&HN(e.defaultValue)&&e.defaultValue!=="")}function oue(e){return e.startAdornment}function aue(e){return Xt("MuiInputBase",e)}const la=Ht("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var VN;const _v=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Qe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},kv=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},iue=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:u,hiddenLabel:d,multiline:p,readOnly:h,size:y,startAdornment:g,type:b}=e,x={root:["root",`color${Qe(n)}`,r&&"disabled",o&&"error",u&&"fullWidth",i&&"focused",l&&"formControl",y&&y!=="medium"&&`size${Qe(y)}`,p&&"multiline",g&&"adornedStart",a&&"adornedEnd",d&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",p&&"inputMultiline",y==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",g&&"inputAdornedStart",a&&"inputAdornedEnd",h&&"readOnly"]};return Qt(x,aue,t)},wv=ze("div",{name:"MuiInputBase",slot:"Root",overridesResolver:_v})(fn(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${la.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Rv=ze("input",{name:"MuiInputBase",slot:"Input",overridesResolver:kv})(fn(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${la.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${la.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),GN=Toe({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),c_=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:o,autoFocus:a,className:i,color:l,components:u={},componentsProps:d={},defaultValue:p,disabled:h,disableInjectingGlobalStyles:y,endAdornment:g,error:b,fullWidth:x=!1,id:T,inputComponent:E="input",inputProps:A={},inputRef:C,margin:D,maxRows:I,minRows:O,multiline:F=!1,name:H,onBlur:z,onChange:P,onClick:$,onFocus:k,onKeyDown:M,onKeyUp:B,placeholder:V,readOnly:j,renderSuffix:q,rows:Q,size:te,slotProps:N={},slots:Y={},startAdornment:K,type:L="text",value:ee,...ae}=n,J=A.value!=null?A.value:ee,{current:me}=_.useRef(J!=null),ce=_.useRef(),Ae=_.useCallback(ot=>{},[]),Se=sr(ce,C,A.ref,Ae),[Te,He]=_.useState(!1),Oe=ou(),we=df({props:n,muiFormControl:Oe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});we.focused=Oe?Oe.focused:Te,_.useEffect(()=>{!Oe&&h&&Te&&(He(!1),z&&z())},[Oe,h,Te,z]);const Ct=Oe&&Oe.onFilled,pt=Oe&&Oe.onEmpty,Ve=_.useCallback(ot=>{ib(ot)?Ct&&Ct():pt&&pt()},[Ct,pt]);$i(()=>{me&&Ve({value:J})},[J,Ve,me]);const Ye=ot=>{k&&k(ot),A.onFocus&&A.onFocus(ot),Oe&&Oe.onFocus?Oe.onFocus(ot):He(!0)},ut=ot=>{z&&z(ot),A.onBlur&&A.onBlur(ot),Oe&&Oe.onBlur?Oe.onBlur(ot):He(!1)},Be=(ot,...it)=>{if(!me){const Wt=ot.target||ce.current;if(Wt==null)throw new Error(_s(1));Ve({value:Wt.value})}A.onChange&&A.onChange(ot,...it),P&&P(ot,...it)};_.useEffect(()=>{Ve(ce.current)},[]);const Me=ot=>{ce.current&&ot.currentTarget===ot.target&&ce.current.focus(),$&&$(ot)};let Fe=E,Pt=A;F&&Fe==="input"&&(Q?Pt={type:void 0,minRows:Q,maxRows:Q,...Pt}:Pt={type:void 0,maxRows:I,minRows:O,...Pt},Fe=rue);const tn=ot=>{Ve(ot.animationName==="mui-auto-fill-cancel"?ce.current:{value:"x"})};_.useEffect(()=>{Oe&&Oe.setAdornedStart(!!K)},[Oe,K]);const xt={...n,color:we.color||"primary",disabled:we.disabled,endAdornment:g,error:we.error,focused:we.focused,formControl:Oe,fullWidth:x,hiddenLabel:we.hiddenLabel,multiline:F,size:we.size,startAdornment:K,type:L},ue=iue(xt),ge=Y.root||u.Root||wv,Ge=N.root||d.root||{},rt=Y.input||u.Input||Rv;return Pt={...Pt,...N.input??d.input},v.jsxs(_.Fragment,{children:[!y&&typeof GN=="function"&&(VN||(VN=v.jsx(GN,{}))),v.jsxs(ge,{...Ge,ref:t,onClick:Me,...ae,...!rb(ge)&&{ownerState:{...xt,...Ge.ownerState}},className:St(ue.root,Ge.className,i,j&&"MuiInputBase-readOnly"),children:[K,v.jsx(l_.Provider,{value:null,children:v.jsx(rt,{"aria-invalid":we.error,"aria-describedby":r,autoComplete:o,autoFocus:a,defaultValue:p,disabled:we.disabled,id:T,onAnimationStart:tn,name:H,placeholder:V,readOnly:j,required:we.required,rows:Q,value:J,onKeyDown:M,onKeyUp:B,type:L,...Pt,...!rb(rt)&&{as:Fe,ownerState:{...xt,...Pt.ownerState}},ref:Se,className:St(ue.input,Pt.className,j&&"MuiInputBase-readOnly"),onBlur:ut,onChange:Be,onFocus:Ye})}),g,q?q({...we,startAdornment:K}):null]})]})});function sue(e){return Xt("MuiInput",e)}const bl={...la,...Ht("MuiInput",["root","underline","input"])};function lue(e){return Xt("MuiOutlinedInput",e)}const Ra={...la,...Ht("MuiOutlinedInput",["root","notchedOutline","input"])};function cue(e){return Xt("MuiFilledInput",e)}const ca={...la,...Ht("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},uue=Nn(v.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),j6=Nn(v.jsx("path",{d:"M7 10l5 5 5-5z"}));function due(e){return Xt("MuiAutocomplete",e)}const Zt=Ht("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var qN,WN;const fue=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:a,hasClearIcon:i,hasPopupIcon:l,inputFocused:u,popupOpen:d,size:p}=e,h={root:["root",r&&"expanded",o&&"focused",a&&"fullWidth",i&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",u&&"inputFocused"],tag:["tag",`tagSize${Qe(p)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",d&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Qt(h,due,t)},pue=ze("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:a,inputFocused:i,size:l}=n;return[{[`& .${Zt.tag}`]:t.tag},{[`& .${Zt.tag}`]:t[`tagSize${Qe(l)}`]},{[`& .${Zt.inputRoot}`]:t.inputRoot},{[`& .${Zt.input}`]:t.input},{[`& .${Zt.input}`]:i&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${Zt.focused} .${Zt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Zt.clearIndicator}`]:{visibility:"visible"}},[`& .${Zt.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Zt.inputRoot}`]:{[`.${Zt.hasPopupIcon}&, .${Zt.hasClearIcon}&`]:{paddingRight:30},[`.${Zt.hasPopupIcon}.${Zt.hasClearIcon}&`]:{paddingRight:56},[`& .${Zt.input}`]:{width:0,minWidth:30}},[`& .${bl.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${bl.root}.${la.sizeSmall}`]:{[`& .${bl.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ra.root}`]:{padding:9,[`.${Zt.hasPopupIcon}&, .${Zt.hasClearIcon}&`]:{paddingRight:39},[`.${Zt.hasPopupIcon}.${Zt.hasClearIcon}&`]:{paddingRight:65},[`& .${Zt.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Zt.endAdornment}`]:{right:9}},[`& .${Ra.root}.${la.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Zt.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${ca.root}`]:{paddingTop:19,paddingLeft:8,[`.${Zt.hasPopupIcon}&, .${Zt.hasClearIcon}&`]:{paddingRight:39},[`.${Zt.hasPopupIcon}.${Zt.hasClearIcon}&`]:{paddingRight:65},[`& .${ca.input}`]:{padding:"7px 4px"},[`& .${Zt.endAdornment}`]:{right:9}},[`& .${ca.root}.${la.sizeSmall}`]:{paddingBottom:1,[`& .${ca.input}`]:{padding:"2.5px 4px"}},[`& .${la.hiddenLabel}`]:{paddingTop:8},[`& .${ca.root}.${la.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Zt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${ca.root}.${la.hiddenLabel}.${la.sizeSmall}`]:{[`& .${Zt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Zt.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Zt.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Zt.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Zt.inputRoot}`]:{flexWrap:"wrap"}}}]}),hue=ze("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),mue=ze($d,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),gue=ze($d,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),yue=ze(P6,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Zt.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(fn(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),bue=ze(uf,{name:"MuiAutocomplete",slot:"Paper"})(fn(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),vue=ze("div",{name:"MuiAutocomplete",slot:"Loading"})(fn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),Eue=ze("div",{name:"MuiAutocomplete",slot:"NoOptions"})(fn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),xue=ze("ul",{name:"MuiAutocomplete",slot:"Listbox"})(fn(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Zt.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Zt.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Zt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Zt.focused}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Zt.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),Sue=ze(HT,{name:"MuiAutocomplete",slot:"GroupLabel"})(fn(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),Tue=ze("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${Zt.option}`]:{paddingLeft:24}}),Cue=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiAutocomplete"}),{autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:i=!1,ChipProps:l,className:u,clearIcon:d=qN||(qN=v.jsx(uue,{fontSize:"small"})),clearOnBlur:p=!n.freeSolo,clearOnEscape:h=!1,clearText:y="Clear",closeText:g="Close",componentsProps:b,defaultValue:x=n.multiple?[]:null,disableClearable:T=!1,disableCloseOnSelect:E=!1,disabled:A=!1,disabledItemsFocusable:C=!1,disableListWrap:D=!1,disablePortal:I=!1,filterOptions:O,filterSelectedOptions:F=!1,forcePopupIcon:H="auto",freeSolo:z=!1,fullWidth:P=!1,getLimitTagsText:$=zt=>`+${zt}`,getOptionDisabled:k,getOptionKey:M,getOptionLabel:B,isOptionEqualToValue:V,groupBy:j,handleHomeEndKeys:q=!n.freeSolo,id:Q,includeInputInList:te=!1,inputValue:N,limitTags:Y=-1,ListboxComponent:K,ListboxProps:L,loading:ee=!1,loadingText:ae="Loading…",multiple:J=!1,noOptionsText:me="No options",onChange:ce,onClose:Ae,onHighlightChange:Se,onInputChange:Te,onOpen:He,open:Oe,openOnFocus:we=!1,openText:Ct="Open",options:pt,PaperComponent:Ve,PopperComponent:Ye,popupIcon:ut=WN||(WN=v.jsx(j6,{})),readOnly:Be=!1,renderGroup:Me,renderInput:Fe,renderOption:Pt,renderTags:tn,renderValue:xt,selectOnFocus:ue=!n.freeSolo,size:ge="medium",slots:Ge={},slotProps:rt={},value:ot,...it}=n,{getRootProps:Wt,getInputProps:Jt,getInputLabelProps:et,getPopupIndicatorProps:_e,getClearProps:Ce,getItemProps:ht,getListboxProps:mt,getOptionProps:Yn,value:Jn,dirty:Ar,expanded:Un,id:er,popupOpen:ar,focused:yn,focusedItem:pr,anchorEl:Tt,setAnchorEl:re,inputValue:le,groupedOptions:he}=Gse({...n,componentName:"Autocomplete"}),Ne=!T&&!A&&Ar&&!Be,Ue=(!z||H===!0)&&H!==!1,{onMouseDown:ft}=Jt(),{ref:bt,...gt}=mt(),vt=B||(zt=>zt.label??zt),lt={...n,disablePortal:I,expanded:Un,focused:yn,fullWidth:P,getOptionLabel:vt,hasClearIcon:Ne,hasPopupIcon:Ue,inputFocused:pr===-1,popupOpen:ar,size:ge},at=fue(lt),ct={slots:{paper:Ve,popper:Ye,...Ge},slotProps:{chip:l,listbox:L,...b,...rt}},[$t,pn]=vn("listbox",{elementType:xue,externalForwardedProps:ct,ownerState:lt,className:at.listbox,additionalProps:gt,ref:bt}),[zn,$n]=vn("paper",{elementType:uf,externalForwardedProps:ct,ownerState:lt,className:at.paper}),[Mt,ye]=vn("popper",{elementType:P6,externalForwardedProps:ct,ownerState:lt,className:at.popper,additionalProps:{disablePortal:I,style:{width:Tt?Tt.clientWidth:null},role:"presentation",anchorEl:Tt,open:ar}});let Ee;const nt=zt=>({className:at.tag,disabled:A,...ht(zt)});if(J?Jn.length>0&&(tn?Ee=tn(Jn,nt,lt):xt?Ee=xt(Jn,nt,lt):Ee=Jn.map((zt,Gr)=>{const{key:It,...tr}=nt({index:Gr});return v.jsx(eue,{label:vt(zt),size:ge,...tr,...ct.slotProps.chip},It)})):xt&&Jn!=null&&(Ee=xt(Jn,nt,lt)),Y>-1&&Array.isArray(Ee)){const zt=Ee.length-Y;!yn&&zt>0&&(Ee=Ee.splice(0,Y),Ee.push(v.jsx("span",{className:at.tag,children:$(zt)},Ee.length)))}const At=Me||(zt=>v.jsxs("li",{children:[v.jsx(Sue,{className:at.groupLabel,ownerState:lt,component:"div",children:zt.group}),v.jsx(Tue,{className:at.groupUl,ownerState:lt,children:zt.children})]},zt.key)),wt=Pt||((zt,Gr)=>{const{key:It,...tr}=zt;return v.jsx("li",{...tr,children:vt(Gr)},It)}),bn=(zt,Gr)=>{const It=Yn({option:zt,index:Gr});return wt({...It,className:at.option},zt,{selected:It["aria-selected"],index:Gr,inputValue:le},lt)},Kn=ct.slotProps.clearIndicator,io=ct.slotProps.popupIndicator;return v.jsxs(_.Fragment,{children:[v.jsx(pue,{ref:t,className:St(at.root,u),ownerState:lt,...Wt(it),children:Fe({id:er,disabled:A,fullWidth:!0,size:ge==="small"?"small":void 0,InputLabelProps:et(),InputProps:{ref:re,className:at.inputRoot,startAdornment:Ee,onMouseDown:zt=>{zt.target===zt.currentTarget&&ft(zt)},...(Ne||Ue)&&{endAdornment:v.jsxs(hue,{className:at.endAdornment,ownerState:lt,children:[Ne?v.jsx(mue,{...Ce(),"aria-label":y,title:y,ownerState:lt,...Kn,className:St(at.clearIndicator,Kn?.className),children:d}):null,Ue?v.jsx(gue,{..._e(),disabled:A,"aria-label":ar?g:Ct,title:ar?g:Ct,ownerState:lt,...io,className:St(at.popupIndicator,io?.className),children:ut}):null]})}},inputProps:{className:at.input,disabled:A,readOnly:Be,...Jt()}})}),Tt?v.jsx(yue,{as:Mt,...ye,children:v.jsxs(bue,{as:zn,...$n,children:[ee&&he.length===0?v.jsx(vue,{className:at.loading,ownerState:lt,children:ae}):null,he.length===0&&!z&&!ee?v.jsx(Eue,{className:at.noOptions,ownerState:lt,role:"presentation",onMouseDown:zt=>{zt.preventDefault()},children:me}):null,he.length>0?v.jsx($t,{as:K,...pn,children:he.map((zt,Gr)=>j?At({key:zt.key,group:zt.group,children:zt.options.map((It,tr)=>bn(It,zt.index+tr))}):bn(zt,Gr))}):null]})}):null]})}),Aue=e=>{const{classes:t,disableUnderline:n}=e,r=Qt({root:["root",!n&&"underline"],input:["input"]},sue,t);return{...t,...r}},_ue=ze(wv,{shouldForwardProp:e=>Ro(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[..._v(e,t),!n.disableUnderline&&t.underline]}})(fn(({theme:e})=>{let t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${bl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${bl.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${bl.disabled}, .${bl.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${bl.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ao()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),kue=ze(Rv,{name:"MuiInput",slot:"Input",overridesResolver:kv})({}),u_=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiInput"}),{disableUnderline:r=!1,components:o={},componentsProps:a,fullWidth:i=!1,inputComponent:l="input",multiline:u=!1,slotProps:d,slots:p={},type:h="text",...y}=n,g=Aue(n),b={root:{ownerState:{disableUnderline:r}}},x=d??a?mo(d??a,b):b,T=p.root??o.Root??_ue,E=p.input??o.Input??kue;return v.jsx(c_,{slots:{root:T,input:E},slotProps:x,fullWidth:i,inputComponent:l,multiline:u,ref:t,type:h,...y,classes:g})});u_.muiName="Input";const wue=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:a,hiddenLabel:i,multiline:l}=e,u={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${Qe(a)}`,i&&"hiddenLabel",l&&"multiline"],input:["input"]},d=Qt(u,cue,t);return{...t,...d}},Rue=ze(wv,{shouldForwardProp:e=>Ro(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[..._v(e,t),!n.disableUnderline&&t.underline]}})(fn(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${ca.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${ca.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:i})=>!i.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ca.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ca.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ca.disabled}, .${ca.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ca.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ao()).map(([i])=>({props:{disableUnderline:!1,color:i},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[i]?.main}`}}})),{props:({ownerState:i})=>i.startAdornment,style:{paddingLeft:12}},{props:({ownerState:i})=>i.endAdornment,style:{paddingRight:12}},{props:({ownerState:i})=>i.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:i,size:l})=>i.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel&&i.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),Due=ze(Rv,{name:"MuiFilledInput",slot:"Input",overridesResolver:kv})(fn(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),d_=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:o={},componentsProps:a,fullWidth:i=!1,hiddenLabel:l,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:h={},type:y="text",...g}=n,b={...n,disableUnderline:r,fullWidth:i,inputComponent:u,multiline:d,type:y},x=wue(n),T={root:{ownerState:b},input:{ownerState:b}},E=p??a?mo(T,p??a):T,A=h.root??o.Root??Rue,C=h.input??o.Input??Due;return v.jsx(c_,{slots:{root:A,input:C},slotProps:E,fullWidth:i,inputComponent:u,multiline:d,ref:t,type:y,...g,classes:x})});d_.muiName="Input";var YN;const Iue=ze("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Ro})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Oue=ze("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Ro})(fn(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Nue(e){const{children:t,classes:n,className:r,label:o,notched:a,...i}=e,l=o!=null&&o!=="",u={...e,notched:a,withLabel:l};return v.jsx(Iue,{"aria-hidden":!0,className:r,ownerState:u,...i,children:v.jsx(Oue,{ownerState:u,children:l?v.jsx("span",{children:o}):YN||(YN=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const Pue=e=>{const{classes:t}=e,n=Qt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},lue,t);return{...t,...n}},Lue=ze(wv,{shouldForwardProp:e=>Ro(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:_v})(fn(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ra.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ra.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ra.focused} .${Ra.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Ao()).map(([n])=>({props:{color:n},style:{[`&.${Ra.focused} .${Ra.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Ra.error} .${Ra.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ra.disabled} .${Ra.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),Mue=ze(Nue,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(fn(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),Fue=ze(Rv,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:kv})(fn(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),f_=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiOutlinedInput"}),{components:r={},fullWidth:o=!1,inputComponent:a="input",label:i,multiline:l=!1,notched:u,slots:d={},slotProps:p={},type:h="text",...y}=n,g=Pue(n),b=ou(),x=df({props:n,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),T={...n,color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:b,fullWidth:o,hiddenLabel:x.hiddenLabel,multiline:l,size:x.size,type:h},E=d.root??r.Root??Lue,A=d.input??r.Input??Fue,[C,D]=vn("notchedOutline",{elementType:Mue,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:T,externalForwardedProps:{slots:d,slotProps:p},additionalProps:{label:i!=null&&i!==""&&x.required?v.jsxs(_.Fragment,{children:[i," ","*"]}):i}});return v.jsx(c_,{slots:{root:E,input:A},slotProps:p,renderSuffix:I=>v.jsx(C,{...D,notched:typeof u<"u"?u:!!(I.startAdornment||I.filled||I.focused)}),fullWidth:o,inputComponent:a,multiline:l,ref:t,type:h,...y,classes:{...g,notchedOutline:null}})});f_.muiName="Input";function jue(e){return Xt("MuiFormLabel",e)}const mh=Ht("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Bue=e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:i,required:l}=e,u={root:["root",`color${Qe(n)}`,o&&"disabled",a&&"error",i&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]};return Qt(u,jue,t)},Uue=ze("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(fn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Ao()).map(([t])=>({props:{color:t},style:{[`&.${mh.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${mh.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${mh.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),zue=ze("span",{name:"MuiFormLabel",slot:"Asterisk"})(fn(({theme:e})=>({[`&.${mh.error}`]:{color:(e.vars||e).palette.error.main}}))),$ue=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiFormLabel"}),{children:r,className:o,color:a,component:i="label",disabled:l,error:u,filled:d,focused:p,required:h,...y}=n,g=ou(),b=df({props:n,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),x={...n,color:b.color||"primary",component:i,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required},T=Bue(x);return v.jsxs(Uue,{as:i,ownerState:x,className:St(T.root,o),ref:t,...y,children:[r,b.required&&v.jsxs(zue,{ownerState:x,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]})});function Hue(e){return Xt("MuiInputLabel",e)}Ht("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Vue=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:i,required:l}=e,u={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&r!=="medium"&&`size${Qe(r)}`,i],asterisk:[l&&"asterisk"]},d=Qt(u,Hue,t);return{...t,...d}},Gue=ze($ue,{shouldForwardProp:e=>Ro(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${mh.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(fn(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),que=_.forwardRef(function(e,t){const n=on({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,margin:o,shrink:a,variant:i,className:l,...u}=n,d=ou();let p=a;typeof p>"u"&&d&&(p=d.filled||d.focused||d.adornedStart);const h=df({props:n,muiFormControl:d,states:["size","variant","required","focused"]}),y={...n,disableAnimation:r,formControl:d,shrink:p,size:h.size,variant:h.variant,required:h.required,focused:h.focused},g=Vue(y);return v.jsx(Gue,{"data-shrink":p,ref:t,className:St(g.root,l),...u,ownerState:y,classes:g})});function Wue(e){return Xt("MuiFormControl",e)}Ht("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Yue=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Qe(n)}`,r&&"fullWidth"]};return Qt(o,Wue,t)},Kue=ze("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${Qe(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Que=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiFormControl"}),{children:r,className:o,color:a="primary",component:i="div",disabled:l=!1,error:u=!1,focused:d,fullWidth:p=!1,hiddenLabel:h=!1,margin:y="none",required:g=!1,size:b="medium",variant:x="outlined",...T}=n,E={...n,color:a,component:i,disabled:l,error:u,fullWidth:p,hiddenLabel:h,margin:y,required:g,size:b,variant:x},A=Yue(E),[C,D]=_.useState(()=>{let B=!1;return r&&_.Children.forEach(r,V=>{if(!jx(V,["Input","Select"]))return;const j=jx(V,["Select"])?V.props.input:V;j&&oue(j.props)&&(B=!0)}),B}),[I,O]=_.useState(()=>{let B=!1;return r&&_.Children.forEach(r,V=>{jx(V,["Input","Select"])&&(ib(V.props,!0)||ib(V.props.inputProps,!0))&&(B=!0)}),B}),[F,H]=_.useState(!1);l&&F&&H(!1);const z=d!==void 0&&!l?d:F;let P;_.useRef(!1);const $=_.useCallback(()=>{O(!0)},[]),k=_.useCallback(()=>{O(!1)},[]),M=_.useMemo(()=>({adornedStart:C,setAdornedStart:D,color:a,disabled:l,error:u,filled:I,focused:z,fullWidth:p,hiddenLabel:h,size:b,onBlur:()=>{H(!1)},onFocus:()=>{H(!0)},onEmpty:k,onFilled:$,registerEffect:P,required:g,variant:x}),[C,a,l,u,I,z,p,h,P,k,$,g,b,x]);return v.jsx(l_.Provider,{value:M,children:v.jsx(Kue,{as:i,ownerState:E,className:St(A.root,o),ref:t,...T,children:r})})});function Xue(e){return Xt("MuiFormHelperText",e)}const KN=Ht("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var QN;const Zue=e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:i,focused:l,required:u}=e,d={root:["root",o&&"disabled",a&&"error",r&&`size${Qe(r)}`,n&&"contained",l&&"focused",i&&"filled",u&&"required"]};return Qt(d,Xue,t)},Jue=ze("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Qe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(fn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${KN.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${KN.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),ede=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiFormHelperText"}),{children:r,className:o,component:a="p",disabled:i,error:l,filled:u,focused:d,margin:p,required:h,variant:y,...g}=n,b=ou(),x=df({props:n,muiFormControl:b,states:["variant","size","disabled","error","filled","focused","required"]}),T={...n,component:a,contained:x.variant==="filled"||x.variant==="outlined",variant:x.variant,size:x.size,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required};delete T.ownerState;const E=Zue(T);return v.jsx(Jue,{as:a,className:St(E.root,o),ref:t,...g,ownerState:T,children:r===" "?QN||(QN=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):r})}),KT=_.createContext({});function tde(e){return Xt("MuiList",e)}Ht("MuiList",["root","padding","dense","subheader"]);const nde=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Qt({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},tde,t)},rde=ze("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),ode=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiList"}),{children:r,className:o,component:a="ul",dense:i=!1,disablePadding:l=!1,subheader:u,...d}=n,p=_.useMemo(()=>({dense:i}),[i]),h={...n,component:a,dense:i,disablePadding:l},y=nde(h);return v.jsx(KT.Provider,{value:p,children:v.jsxs(rde,{as:a,className:St(y.root,o),ref:t,ownerState:h,...d,children:[u,r]})})});function B6(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Yx(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function XN(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function U6(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Np(e,t,n,r,o,a){let i=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const u=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!U6(l,a)||u)l=o(e,l,n);else return l.focus(),!0}return!1}const ade=_.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:a,className:i,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:d,variant:p="selectedMenu",...h}=e,y=_.useRef(null),g=_.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});$i(()=>{r&&y.current.focus()},[r]),_.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(A,{direction:C})=>{const D=!y.current.style.width;if(A.clientHeight<y.current.clientHeight&&D){const I=`${B6(ws(A))}px`;y.current.style[C==="rtl"?"paddingLeft":"paddingRight"]=I,y.current.style.width=`calc(100% + ${I})`}return y.current}}),[]);const b=A=>{const C=y.current,D=A.key;if(A.ctrlKey||A.metaKey||A.altKey){d&&d(A);return}const I=oo(C).activeElement;if(D==="ArrowDown")A.preventDefault(),Np(C,I,u,l,Yx);else if(D==="ArrowUp")A.preventDefault(),Np(C,I,u,l,XN);else if(D==="Home")A.preventDefault(),Np(C,null,u,l,Yx);else if(D==="End")A.preventDefault(),Np(C,null,u,l,XN);else if(D.length===1){const O=g.current,F=D.toLowerCase(),H=performance.now();O.keys.length>0&&(H-O.lastTime>500?(O.keys=[],O.repeating=!0,O.previousKeyMatched=!0):O.repeating&&F!==O.keys[0]&&(O.repeating=!1)),O.lastTime=H,O.keys.push(F);const z=I&&!O.repeating&&U6(I,O);O.previousKeyMatched&&(z||Np(C,I,!1,l,Yx,O))?A.preventDefault():O.previousKeyMatched=!1}d&&d(A)},x=sr(y,t);let T=-1;_.Children.forEach(a,(A,C)=>{if(!_.isValidElement(A)){T===C&&(T+=1,T>=a.length&&(T=-1));return}A.props.disabled||(p==="selectedMenu"&&A.props.selected||T===-1)&&(T=C),T===C&&(A.props.disabled||A.props.muiSkipListHighlight||A.type.muiSkipListHighlight)&&(T+=1,T>=a.length&&(T=-1))});const E=_.Children.map(a,(A,C)=>{if(C===T){const D={};return o&&(D.autoFocus=!0),A.props.tabIndex===void 0&&p==="selectedMenu"&&(D.tabIndex=0),_.cloneElement(A,D)}return A});return v.jsx(ode,{role:"menu",ref:x,className:i,onKeyDown:b,tabIndex:r?0:-1,...h,children:E})}),z6=e=>e.scrollTop;function Hd(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function QT(e){return`scale(${e}, ${e**2})`}const ide={entering:{opacity:1,transform:QT(1)},entered:{opacity:1,transform:"none"}},Kx=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),sb=_.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:a,in:i,onEnter:l,onEntered:u,onEntering:d,onExit:p,onExited:h,onExiting:y,style:g,timeout:b="auto",TransitionComponent:x=di,...T}=e,E=Av(),A=_.useRef(),C=of(),D=_.useRef(null),I=sr(D,cf(o),t),O=M=>B=>{if(M){const V=D.current;B===void 0?M(V):M(V,B)}},F=O(d),H=O((M,B)=>{z6(M);const{duration:V,delay:j,easing:q}=Hd({style:g,timeout:b,easing:a},{mode:"enter"});let Q;b==="auto"?(Q=C.transitions.getAutoHeightDuration(M.clientHeight),A.current=Q):Q=V,M.style.transition=[C.transitions.create("opacity",{duration:Q,delay:j}),C.transitions.create("transform",{duration:Kx?Q:Q*.666,delay:j,easing:q})].join(","),l&&l(M,B)}),z=O(u),P=O(y),$=O(M=>{const{duration:B,delay:V,easing:j}=Hd({style:g,timeout:b,easing:a},{mode:"exit"});let q;b==="auto"?(q=C.transitions.getAutoHeightDuration(M.clientHeight),A.current=q):q=B,M.style.transition=[C.transitions.create("opacity",{duration:q,delay:V}),C.transitions.create("transform",{duration:Kx?q:q*.666,delay:Kx?V:V||q*.333,easing:j})].join(","),M.style.opacity=0,M.style.transform=QT(.75),p&&p(M)}),k=O(h);return v.jsx(x,{appear:r,in:i,nodeRef:D,onEnter:H,onEntered:z,onEntering:F,onExit:$,onExited:k,onExiting:P,addEndListener:M=>{b==="auto"&&E.start(A.current||0,M),n&&n(D.current,M)},timeout:b==="auto"?null:b,...T,children:(M,{ownerState:B,...V})=>_.cloneElement(o,{style:{opacity:0,transform:QT(.75),visibility:M==="exited"&&!i?"hidden":void 0,...ide[M],...g,...o.props.style},ref:I,...V})})});sb&&(sb.muiSupportAuto=!0);function sde(e){const t=oo(e);return t.body===e?ws(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function gh(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ZN(e){return parseInt(ws(e).getComputedStyle(e).paddingRight,10)||0}function lde(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return t||n}function JN(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,i=>{const l=!a.includes(i),u=!lde(i);l&&u&&gh(i,o)})}function Qx(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function cde(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(sde(r)){const a=B6(ws(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${ZN(r)+a}px`;const i=oo(r).querySelectorAll(".mui-fixed");[].forEach.call(i,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${ZN(l)+a}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=oo(r).body;else{const a=r.parentElement,i=ws(r);o=a?.nodeName==="HTML"&&i.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:a,property:i})=>{o?a.style.setProperty(i,o):a.style.removeProperty(i)})}}function ude(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class dde{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&gh(t.modalRef,!1);const o=ude(n);JN(n,t.mount,t.modalRef,o,!0);const a=Qx(this.containers,i=>i.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Qx(this.containers,a=>a.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=cde(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Qx(this.containers,i=>i.modals.includes(t)),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&gh(t.modalRef,n),JN(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&gh(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const fde=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function pde(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function hde(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function mde(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||hde(e))}function gde(e){const t=[],n=[];return Array.from(e.querySelectorAll(fde)).forEach((r,o)=>{const a=pde(r);a===-1||!mde(r)||(a===0?t.push(r):n.push({documentOrder:o,tabIndex:a,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function yde(){return!0}function bde(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=gde,isEnabled:i=yde,open:l}=e,u=_.useRef(!1),d=_.useRef(null),p=_.useRef(null),h=_.useRef(null),y=_.useRef(null),g=_.useRef(!1),b=_.useRef(null),x=sr(cf(t),b),T=_.useRef(null);_.useEffect(()=>{!l||!b.current||(g.current=!n)},[n,l]),_.useEffect(()=>{if(!l||!b.current)return;const C=oo(b.current);return b.current.contains(C.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),g.current&&b.current.focus()),()=>{o||(h.current&&h.current.focus&&(u.current=!0,h.current.focus()),h.current=null)}},[l]),_.useEffect(()=>{if(!l||!b.current)return;const C=oo(b.current),D=F=>{T.current=F,!(r||!i()||F.key!=="Tab")&&C.activeElement===b.current&&F.shiftKey&&(u.current=!0,p.current&&p.current.focus())},I=()=>{const F=b.current;if(F===null)return;if(!C.hasFocus()||!i()||u.current){u.current=!1;return}if(F.contains(C.activeElement)||r&&C.activeElement!==d.current&&C.activeElement!==p.current)return;if(C.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!g.current)return;let H=[];if((C.activeElement===d.current||C.activeElement===p.current)&&(H=a(b.current)),H.length>0){const z=!!(T.current?.shiftKey&&T.current?.key==="Tab"),P=H[0],$=H[H.length-1];typeof P!="string"&&typeof $!="string"&&(z?$.focus():P.focus())}else F.focus()};C.addEventListener("focusin",I),C.addEventListener("keydown",D,!0);const O=setInterval(()=>{C.activeElement&&C.activeElement.tagName==="BODY"&&I()},50);return()=>{clearInterval(O),C.removeEventListener("focusin",I),C.removeEventListener("keydown",D,!0)}},[n,r,o,i,l,a]);const E=C=>{h.current===null&&(h.current=C.relatedTarget),g.current=!0,y.current=C.target;const D=t.props.onFocus;D&&D(C)},A=C=>{h.current===null&&(h.current=C.relatedTarget),g.current=!0};return v.jsxs(_.Fragment,{children:[v.jsx("div",{tabIndex:l?0:-1,onFocus:A,ref:d,"data-testid":"sentinelStart"}),_.cloneElement(t,{ref:x,onFocus:E}),v.jsx("div",{tabIndex:l?0:-1,onFocus:A,ref:p,"data-testid":"sentinelEnd"})]})}const vde={entering:{opacity:1},entered:{opacity:1}},XT=_.forwardRef(function(e,t){const n=of(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:i,easing:l,in:u,onEnter:d,onEntered:p,onEntering:h,onExit:y,onExited:g,onExiting:b,style:x,timeout:T=r,TransitionComponent:E=di,...A}=e,C=_.useRef(null),D=sr(C,cf(i),t),I=k=>M=>{if(k){const B=C.current;M===void 0?k(B):k(B,M)}},O=I(h),F=I((k,M)=>{z6(k);const B=Hd({style:x,timeout:T,easing:l},{mode:"enter"});k.style.webkitTransition=n.transitions.create("opacity",B),k.style.transition=n.transitions.create("opacity",B),d&&d(k,M)}),H=I(p),z=I(b),P=I(k=>{const M=Hd({style:x,timeout:T,easing:l},{mode:"exit"});k.style.webkitTransition=n.transitions.create("opacity",M),k.style.transition=n.transitions.create("opacity",M),y&&y(k)}),$=I(g);return v.jsx(E,{appear:a,in:u,nodeRef:C,onEnter:F,onEntered:H,onEntering:O,onExit:P,onExited:$,onExiting:z,addEndListener:k=>{o&&o(C.current,k)},timeout:T,...A,children:(k,{ownerState:M,...B})=>_.cloneElement(i,{style:{opacity:0,visibility:k==="exited"&&!u?"hidden":void 0,...vde[k],...x,...i.props.style},ref:D,...B})})});function Ede(e){return Xt("MuiBackdrop",e)}Ht("MuiBackdrop",["root","invisible"]);const xde=e=>{const{classes:t,invisible:n}=e;return Qt({root:["root",n&&"invisible"]},Ede,t)},Sde=ze("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),$6=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiBackdrop"}),{children:r,className:o,component:a="div",invisible:i=!1,open:l,components:u={},componentsProps:d={},slotProps:p={},slots:h={},TransitionComponent:y,transitionDuration:g,...b}=n,x={...n,component:a,invisible:i},T=xde(x),E={transition:y,root:u.Root,...h},A={...d,...p},C={component:a,slots:E,slotProps:A},[D,I]=vn("root",{elementType:Sde,externalForwardedProps:C,className:St(T.root,o),ownerState:x}),[O,F]=vn("transition",{elementType:XT,externalForwardedProps:C,ownerState:x});return v.jsx(O,{in:l,timeout:g,...b,...F,children:v.jsx(D,{"aria-hidden":!0,...I,classes:T,ref:t,children:r})})});function Tde(e){return typeof e=="function"?e():e}function Cde(e){return e?e.props.hasOwnProperty("in"):!1}const eP=()=>{},Cy=new dde;function Ade(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:i,children:l,onClose:u,open:d,rootRef:p}=e,h=_.useRef({}),y=_.useRef(null),g=_.useRef(null),b=sr(g,p),[x,T]=_.useState(!d),E=Cde(l);let A=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(A=!1);const C=()=>oo(y.current),D=()=>(h.current.modalRef=g.current,h.current.mount=y.current,h.current),I=()=>{Cy.mount(D(),{disableScrollLock:r}),g.current&&(g.current.scrollTop=0)},O=Mr(()=>{const k=Tde(t)||C().body;Cy.add(D(),k),g.current&&I()}),F=()=>Cy.isTopModal(D()),H=Mr(k=>{y.current=k,k&&(d&&F()?I():g.current&&gh(g.current,A))}),z=_.useCallback(()=>{Cy.remove(D(),A)},[A]);_.useEffect(()=>()=>{z()},[z]),_.useEffect(()=>{d?O():(!E||!o)&&z()},[d,z,E,o,O]);const P=k=>M=>{k.onKeyDown?.(M),!(M.key!=="Escape"||M.which===229||!F())&&(n||(M.stopPropagation(),u&&u(M,"escapeKeyDown")))},$=k=>M=>{k.onClick?.(M),M.target===M.currentTarget&&u&&u(M,"backdropClick")};return{getRootProps:(k={})=>{const M=xo(e);delete M.onTransitionEnter,delete M.onTransitionExited;const B={...M,...k};return{role:"presentation",...B,onKeyDown:P(B),ref:b}},getBackdropProps:(k={})=>{const M=k;return{"aria-hidden":!0,...M,onClick:$(M),open:d}},getTransitionProps:()=>{const k=()=>{T(!1),a&&a()},M=()=>{T(!0),i&&i(),o&&z()};return{onEnter:RO(k,l?.props.onEnter??eP),onExited:RO(M,l?.props.onExited??eP)}},rootRef:b,portalRef:H,isTopModal:F,exited:x,hasTransition:E}}function _de(e){return Xt("MuiModal",e)}Ht("MuiModal",["root","hidden","backdrop"]);const kde=e=>{const{open:t,exited:n,classes:r}=e;return Qt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},_de,r)},wde=ze("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(fn(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),Rde=ze($6,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),H6=_.forwardRef(function(e,t){const n=on({name:"MuiModal",props:e}),{BackdropComponent:r=Rde,BackdropProps:o,classes:a,className:i,closeAfterTransition:l=!1,children:u,container:d,component:p,components:h={},componentsProps:y={},disableAutoFocus:g=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:x=!1,disablePortal:T=!1,disableRestoreFocus:E=!1,disableScrollLock:A=!1,hideBackdrop:C=!1,keepMounted:D=!1,onClose:I,onTransitionEnter:O,onTransitionExited:F,open:H,slotProps:z={},slots:P={},theme:$,...k}=n,M={...n,closeAfterTransition:l,disableAutoFocus:g,disableEnforceFocus:b,disableEscapeKeyDown:x,disablePortal:T,disableRestoreFocus:E,disableScrollLock:A,hideBackdrop:C,keepMounted:D},{getRootProps:B,getBackdropProps:V,getTransitionProps:j,portalRef:q,isTopModal:Q,exited:te,hasTransition:N}=Ade({...M,rootRef:t}),Y={...M,exited:te},K=kde(Y),L={};if(u.props.tabIndex===void 0&&(L.tabIndex="-1"),N){const{onEnter:Ae,onExited:Se}=j();L.onEnter=Ae,L.onExited=Se}const ee={slots:{root:h.Root,backdrop:h.Backdrop,...P},slotProps:{...y,...z}},[ae,J]=vn("root",{ref:t,elementType:wde,externalForwardedProps:{...ee,...k,component:p},getSlotProps:B,ownerState:Y,className:St(i,K?.root,!Y.open&&Y.exited&&K?.hidden)}),[me,ce]=vn("backdrop",{ref:o?.ref,elementType:r,externalForwardedProps:ee,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:Ae=>V({...Ae,onClick:Se=>{Ae?.onClick&&Ae.onClick(Se)}}),className:St(o?.className,K?.backdrop),ownerState:Y});return!D&&!H&&(!N||te)?null:v.jsx(N6,{ref:q,container:d,disablePortal:T,children:v.jsxs(ae,{...J,children:[!C&&r?v.jsx(me,{...ce}):null,v.jsx(bde,{disableEnforceFocus:b,disableAutoFocus:g,disableRestoreFocus:E,isEnabled:Q,open:H,children:_.cloneElement(u,L)})]})})});function Dde(e){return Xt("MuiPopover",e)}Ht("MuiPopover",["root","paper"]);function tP(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function nP(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function rP(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Ay(e){return typeof e=="function"?e():e}const Ide=e=>{const{classes:t}=e;return Qt({root:["root"],paper:["paper"]},Dde,t)},Ode=ze(H6,{name:"MuiPopover",slot:"Root"})({}),V6=ze(uf,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Nde=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:i,anchorReference:l="anchorEl",children:u,className:d,container:p,elevation:h=8,marginThreshold:y=16,open:g,PaperProps:b={},slots:x={},slotProps:T={},transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:A,transitionDuration:C="auto",TransitionProps:D={},disableScrollLock:I=!1,...O}=n,F=_.useRef(),H={...n,anchorOrigin:a,anchorReference:l,elevation:h,marginThreshold:y,transformOrigin:E,TransitionComponent:A,transitionDuration:C,TransitionProps:D},z=Ide(H),P=_.useCallback(()=>{if(l==="anchorPosition")return i;const Ae=Ay(o),Se=(Ae&&Ae.nodeType===1?Ae:oo(F.current).body).getBoundingClientRect();return{top:Se.top+tP(Se,a.vertical),left:Se.left+nP(Se,a.horizontal)}},[o,a.horizontal,a.vertical,i,l]),$=_.useCallback(Ae=>({vertical:tP(Ae,E.vertical),horizontal:nP(Ae,E.horizontal)}),[E.horizontal,E.vertical]),k=_.useCallback(Ae=>{const Se={width:Ae.offsetWidth,height:Ae.offsetHeight},Te=$(Se);if(l==="none")return{top:null,left:null,transformOrigin:rP(Te)};const He=P();let Oe=He.top-Te.vertical,we=He.left-Te.horizontal;const Ct=Oe+Se.height,pt=we+Se.width,Ve=ws(Ay(o)),Ye=Ve.innerHeight-y,ut=Ve.innerWidth-y;if(y!==null&&Oe<y){const Be=Oe-y;Oe-=Be,Te.vertical+=Be}else if(y!==null&&Ct>Ye){const Be=Ct-Ye;Oe-=Be,Te.vertical+=Be}if(y!==null&&we<y){const Be=we-y;we-=Be,Te.horizontal+=Be}else if(pt>ut){const Be=pt-ut;we-=Be,Te.horizontal+=Be}return{top:`${Math.round(Oe)}px`,left:`${Math.round(we)}px`,transformOrigin:rP(Te)}},[o,l,P,$,y]),[M,B]=_.useState(g),V=_.useCallback(()=>{const Ae=F.current;if(!Ae)return;const Se=k(Ae);Se.top!==null&&Ae.style.setProperty("top",Se.top),Se.left!==null&&(Ae.style.left=Se.left),Ae.style.transformOrigin=Se.transformOrigin,B(!0)},[k]);_.useEffect(()=>(I&&window.addEventListener("scroll",V),()=>window.removeEventListener("scroll",V)),[o,I,V]);const j=()=>{V()},q=()=>{B(!1)};_.useEffect(()=>{g&&V()}),_.useImperativeHandle(r,()=>g?{updatePosition:()=>{V()}}:null,[g,V]),_.useEffect(()=>{if(!g)return;const Ae=DM(()=>{V()}),Se=ws(Ay(o));return Se.addEventListener("resize",Ae),()=>{Ae.clear(),Se.removeEventListener("resize",Ae)}},[o,g,V]);let Q=C;const te={slots:{transition:A,...x},slotProps:{transition:D,paper:b,...T}},[N,Y]=vn("transition",{elementType:sb,externalForwardedProps:te,ownerState:H,getSlotProps:Ae=>({...Ae,onEntering:(Se,Te)=>{Ae.onEntering?.(Se,Te),j()},onExited:Se=>{Ae.onExited?.(Se),q()}}),additionalProps:{appear:!0,in:g}});C==="auto"&&!N.muiSupportAuto&&(Q=void 0);const K=p||(o?oo(Ay(o)).body:void 0),[L,{slots:ee,slotProps:ae,...J}]=vn("root",{ref:t,elementType:Ode,externalForwardedProps:{...te,...O},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:x.backdrop},slotProps:{backdrop:IM(typeof T.backdrop=="function"?T.backdrop(H):T.backdrop,{invisible:!0})},container:K,open:g},ownerState:H,className:St(z.root,d)}),[me,ce]=vn("paper",{ref:F,className:z.paper,elementType:V6,externalForwardedProps:te,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:M?void 0:{opacity:0}},ownerState:H});return v.jsx(L,{...J,...!rb(L)&&{slots:ee,slotProps:ae,disableScrollLock:I},children:v.jsx(N,{...Y,timeout:Q,children:v.jsx(me,{...ce,children:u})})})});function Pde(e){return Xt("MuiMenu",e)}Ht("MuiMenu",["root","paper","list"]);const Lde={vertical:"top",horizontal:"right"},Mde={vertical:"top",horizontal:"left"},Fde=e=>{const{classes:t}=e;return Qt({root:["root"],paper:["paper"],list:["list"]},Pde,t)},jde=ze(Nde,{shouldForwardProp:e=>Ro(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),Bde=ze(V6,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Ude=ze(ade,{name:"MuiMenu",slot:"List"})({outline:0}),zde=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiMenu"}),{autoFocus:r=!0,children:o,className:a,disableAutoFocusItem:i=!1,MenuListProps:l={},onClose:u,open:d,PaperProps:p={},PopoverClasses:h,transitionDuration:y="auto",TransitionProps:{onEntering:g,...b}={},variant:x="selectedMenu",slots:T={},slotProps:E={},...A}=n,C=BA(),D={...n,autoFocus:r,disableAutoFocusItem:i,MenuListProps:l,onEntering:g,PaperProps:p,transitionDuration:y,TransitionProps:b,variant:x},I=Fde(D),O=r&&!i&&d,F=_.useRef(null),H=(Q,te)=>{F.current&&F.current.adjustStyleForScrollbar(Q,{direction:C?"rtl":"ltr"}),g&&g(Q,te)},z=Q=>{Q.key==="Tab"&&(Q.preventDefault(),u&&u(Q,"tabKeyDown"))};let P=-1;_.Children.map(o,(Q,te)=>{_.isValidElement(Q)&&(Q.props.disabled||(x==="selectedMenu"&&Q.props.selected||P===-1)&&(P=te))});const $={slots:T,slotProps:{list:l,transition:b,paper:p,...E}},k=Es({elementType:T.root,externalSlotProps:E.root,ownerState:D,className:[I.root,a]}),[M,B]=vn("paper",{className:I.paper,elementType:Bde,externalForwardedProps:$,shouldForwardComponentProp:!0,ownerState:D}),[V,j]=vn("list",{className:St(I.list,l.className),elementType:Ude,shouldForwardComponentProp:!0,externalForwardedProps:$,getSlotProps:Q=>({...Q,onKeyDown:te=>{z(te),Q.onKeyDown?.(te)}}),ownerState:D}),q=typeof $.slotProps.transition=="function"?$.slotProps.transition(D):$.slotProps.transition;return v.jsx(jde,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Lde:Mde,slots:{root:T.root,paper:M,backdrop:T.backdrop,...T.transition&&{transition:T.transition}},slotProps:{root:k,paper:B,backdrop:typeof E.backdrop=="function"?E.backdrop(D):E.backdrop,transition:{...q,onEntering:(...Q)=>{H(...Q),q?.onEntering?.(...Q)}}},open:d,ref:t,transitionDuration:y,ownerState:D,...A,classes:h,children:v.jsx(V,{actions:F,autoFocus:r&&(P===-1||i),autoFocusItem:O,variant:x,...j,children:o})})});function $de(e){return Xt("MuiNativeSelect",e)}const p_=Ht("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Hde=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,l={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Qe(n)}`,a&&"iconOpen",r&&"disabled"]};return Qt(l,$de,t)},G6=ze("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${p_.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),Vde=ze(G6,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ro,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${p_.multiple}`]:t.multiple}]}})({}),q6=ze("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${p_.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),Gde=ze(q6,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Qe(n.variant)}`],n.open&&t.iconOpen]}})({}),qde=_.forwardRef(function(e,t){const{className:n,disabled:r,error:o,IconComponent:a,inputRef:i,variant:l="standard",...u}=e,d={...e,disabled:r,variant:l,error:o},p=Hde(d);return v.jsxs(_.Fragment,{children:[v.jsx(Vde,{ownerState:d,className:St(p.select,n),disabled:r,ref:i||t,...u}),e.multiple?null:v.jsx(Gde,{as:a,ownerState:d,className:p.icon})]})});function W6(e){return Xt("MuiSelect",e)}const Pp=Ht("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var oP;const Wde=ze(G6,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Pp.select}`]:t.select},{[`&.${Pp.select}`]:t[n.variant]},{[`&.${Pp.error}`]:t.error},{[`&.${Pp.multiple}`]:t.multiple}]}})({[`&.${Pp.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Yde=ze(q6,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Qe(n.variant)}`],n.open&&t.iconOpen]}})({}),Kde=ze("input",{shouldForwardProp:e=>RM(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function aP(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Qde(e){return e==null||typeof e=="string"&&!e.trim()}const Xde=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,l={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Qe(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Qt(l,W6,t)},Zde=_.forwardRef(function(e,t){const{"aria-describedby":n,"aria-label":r,autoFocus:o,autoWidth:a,children:i,className:l,defaultOpen:u,defaultValue:d,disabled:p,displayEmpty:h,error:y=!1,IconComponent:g,inputRef:b,labelId:x,MenuProps:T={},multiple:E,name:A,onBlur:C,onChange:D,onClose:I,onFocus:O,onOpen:F,open:H,readOnly:z,renderValue:P,required:$,SelectDisplayProps:k={},tabIndex:M,type:B,value:V,variant:j="standard",...q}=e,[Q,te]=xd({controlled:V,default:d,name:"Select"}),[N,Y]=xd({controlled:H,default:u,name:"Select"}),K=_.useRef(null),L=_.useRef(null),[ee,ae]=_.useState(null),{current:J}=_.useRef(H!=null),[me,ce]=_.useState(),Ae=sr(t,b),Se=_.useCallback(et=>{L.current=et,et&&ae(et)},[]),Te=ee?.parentNode;_.useImperativeHandle(Ae,()=>({focus:()=>{L.current.focus()},node:K.current,value:Q}),[Q]),_.useEffect(()=>{u&&N&&ee&&!J&&(ce(a?null:Te.clientWidth),L.current.focus())},[ee,a]),_.useEffect(()=>{o&&L.current.focus()},[o]),_.useEffect(()=>{if(!x)return;const et=oo(L.current).getElementById(x);if(et){const _e=()=>{getSelection().isCollapsed&&L.current.focus()};return et.addEventListener("click",_e),()=>{et.removeEventListener("click",_e)}}},[x]);const He=(et,_e)=>{et?F&&F(_e):I&&I(_e),J||(ce(a?null:Te.clientWidth),Y(et))},Oe=et=>{et.button===0&&(et.preventDefault(),L.current.focus(),He(!0,et))},we=et=>{He(!1,et)},Ct=_.Children.toArray(i),pt=et=>{const _e=Ct.find(Ce=>Ce.props.value===et.target.value);_e!==void 0&&(te(_e.props.value),D&&D(et,_e))},Ve=et=>_e=>{let Ce;if(_e.currentTarget.hasAttribute("tabindex")){if(E){Ce=Array.isArray(Q)?Q.slice():[];const ht=Q.indexOf(et.props.value);ht===-1?Ce.push(et.props.value):Ce.splice(ht,1)}else Ce=et.props.value;if(et.props.onClick&&et.props.onClick(_e),Q!==Ce&&(te(Ce),D)){const ht=_e.nativeEvent||_e,mt=new ht.constructor(ht.type,ht);Object.defineProperty(mt,"target",{writable:!0,value:{value:Ce,name:A}}),D(mt,et)}E||He(!1,_e)}},Ye=et=>{z||[" ","ArrowUp","ArrowDown","Enter"].includes(et.key)&&(et.preventDefault(),He(!0,et))},ut=ee!==null&&N,Be=et=>{!ut&&C&&(Object.defineProperty(et,"target",{writable:!0,value:{value:Q,name:A}}),C(et))};delete q["aria-invalid"];let Me,Fe;const Pt=[];let tn=!1;(ib({value:Q})||h)&&(P?Me=P(Q):tn=!0);const xt=Ct.map(et=>{if(!_.isValidElement(et))return null;let _e;if(E){if(!Array.isArray(Q))throw new Error(_s(2));_e=Q.some(Ce=>aP(Ce,et.props.value)),_e&&tn&&Pt.push(et.props.children)}else _e=aP(Q,et.props.value),_e&&tn&&(Fe=et.props.children);return _.cloneElement(et,{"aria-selected":_e?"true":"false",onClick:Ve(et),onKeyUp:Ce=>{Ce.key===" "&&Ce.preventDefault(),et.props.onKeyUp&&et.props.onKeyUp(Ce)},role:"option",selected:_e,value:void 0,"data-value":et.props.value})});tn&&(E?Pt.length===0?Me=null:Me=Pt.reduce((et,_e,Ce)=>(et.push(_e),Ce<Pt.length-1&&et.push(", "),et),[]):Me=Fe);let ue=me;!a&&J&&ee&&(ue=Te.clientWidth);let ge;typeof M<"u"?ge=M:ge=p?null:0;const Ge=k.id||(A?`mui-component-select-${A}`:void 0),rt={...e,variant:j,value:Q,open:ut,error:y},ot=Xde(rt),it={...T.PaperProps,...typeof T.slotProps?.paper=="function"?T.slotProps.paper(rt):T.slotProps?.paper},Wt={...T.MenuListProps,...typeof T.slotProps?.list=="function"?T.slotProps.list(rt):T.slotProps?.list},Jt=rf();return v.jsxs(_.Fragment,{children:[v.jsx(Wde,{as:"div",ref:Se,tabIndex:ge,role:"combobox","aria-controls":ut?Jt:void 0,"aria-disabled":p?"true":void 0,"aria-expanded":ut?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[x,Ge].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":$?"true":void 0,"aria-invalid":y?"true":void 0,onKeyDown:Ye,onMouseDown:p||z?null:Oe,onBlur:Be,onFocus:O,...k,ownerState:rt,className:St(k.className,ot.select,l),id:Ge,children:Qde(Me)?oP||(oP=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Me}),v.jsx(Kde,{"aria-invalid":y,value:Array.isArray(Q)?Q.join(","):Q,name:A,ref:K,"aria-hidden":!0,onChange:pt,tabIndex:-1,disabled:p,className:ot.nativeInput,autoFocus:o,required:$,...q,ownerState:rt}),v.jsx(Yde,{as:g,className:ot.icon,ownerState:rt}),v.jsx(zde,{id:`menu-${A||""}`,anchorEl:Te,open:ut,onClose:we,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...T,slotProps:{...T.slotProps,list:{"aria-labelledby":x,role:"listbox","aria-multiselectable":E?"true":void 0,disableListWrap:!0,id:Jt,...Wt},paper:{...it,style:{minWidth:ue,...it!=null?it.style:null}}},children:xt})]})}),Jde=e=>{const{classes:t}=e,n=Qt({root:["root"]},W6,t);return{...t,...n}},h_={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Ro(e)&&e!=="variant"},efe=ze(u_,h_)(""),tfe=ze(f_,h_)(""),nfe=ze(d_,h_)(""),Y6=_.forwardRef(function(e,t){const n=on({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:a={},className:i,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:d=j6,id:p,input:h,inputProps:y,label:g,labelId:b,MenuProps:x,multiple:T=!1,native:E=!1,onClose:A,onOpen:C,open:D,renderValue:I,SelectDisplayProps:O,variant:F="outlined",...H}=n,z=E?qde:Zde,P=ou(),$=df({props:n,muiFormControl:P,states:["variant","error"]}),k=$.variant||F,M={...n,variant:k,classes:a},B=Jde(M),{root:V,...j}=B,q=h||{standard:v.jsx(efe,{ownerState:M}),outlined:v.jsx(tfe,{label:g,ownerState:M}),filled:v.jsx(nfe,{ownerState:M})}[k],Q=sr(t,cf(q));return v.jsx(_.Fragment,{children:_.cloneElement(q,{inputComponent:z,inputProps:{children:o,error:$.error,IconComponent:d,variant:k,type:void 0,multiple:T,...E?{id:p}:{autoWidth:r,defaultOpen:l,displayEmpty:u,labelId:b,MenuProps:x,onClose:A,onOpen:C,open:D,renderValue:I,SelectDisplayProps:{id:p,...O}},...y,classes:y?mo(j,y.classes):j,...h?h.props.inputProps:{}},...(T&&E||u)&&k==="outlined"?{notched:!0}:{},ref:Q,className:St(q.props.className,i,B.root),...!h&&{variant:k},...H})})});Y6.muiName="Select";function rfe(e){return Xt("MuiTextField",e)}Ht("MuiTextField",["root"]);const ofe={standard:u_,filled:d_,outlined:f_},afe=e=>{const{classes:t}=e;return Qt({root:["root"]},rfe,t)},ife=ze(Que,{name:"MuiTextField",slot:"Root"})({}),go=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:o=!1,children:a,className:i,color:l="primary",defaultValue:u,disabled:d=!1,error:p=!1,FormHelperTextProps:h,fullWidth:y=!1,helperText:g,id:b,InputLabelProps:x,inputProps:T,InputProps:E,inputRef:A,label:C,maxRows:D,minRows:I,multiline:O=!1,name:F,onBlur:H,onChange:z,onFocus:P,placeholder:$,required:k=!1,rows:M,select:B=!1,SelectProps:V,slots:j={},slotProps:q={},type:Q,value:te,variant:N="outlined",...Y}=n,K={...n,autoFocus:o,color:l,disabled:d,error:p,fullWidth:y,multiline:O,required:k,select:B,variant:N},L=afe(K),ee=rf(b),ae=g&&ee?`${ee}-helper-text`:void 0,J=C&&ee?`${ee}-label`:void 0,me=ofe[N],ce={slots:j,slotProps:{input:E,inputLabel:x,htmlInput:T,formHelperText:h,select:V,...q}},Ae={},Se=ce.slotProps.inputLabel;N==="outlined"&&(Se&&typeof Se.shrink<"u"&&(Ae.notched=Se.shrink),Ae.label=C),B&&((!V||!V.native)&&(Ae.id=void 0),Ae["aria-describedby"]=void 0);const[Te,He]=vn("root",{elementType:ife,shouldForwardComponentProp:!0,externalForwardedProps:{...ce,...Y},ownerState:K,className:St(L.root,i),ref:t,additionalProps:{disabled:d,error:p,fullWidth:y,required:k,color:l,variant:N}}),[Oe,we]=vn("input",{elementType:me,externalForwardedProps:ce,additionalProps:Ae,ownerState:K}),[Ct,pt]=vn("inputLabel",{elementType:que,externalForwardedProps:ce,ownerState:K}),[Ve,Ye]=vn("htmlInput",{elementType:"input",externalForwardedProps:ce,ownerState:K}),[ut,Be]=vn("formHelperText",{elementType:ede,externalForwardedProps:ce,ownerState:K}),[Me,Fe]=vn("select",{elementType:Y6,externalForwardedProps:ce,ownerState:K}),Pt=v.jsx(Oe,{"aria-describedby":ae,autoComplete:r,autoFocus:o,defaultValue:u,fullWidth:y,multiline:O,name:F,rows:M,maxRows:D,minRows:I,type:Q,value:te,id:ee,inputRef:A,onBlur:H,onChange:z,onFocus:P,placeholder:$,inputProps:Ye,slots:{input:j.htmlInput?Ve:void 0},...we});return v.jsxs(Te,{...He,children:[C!=null&&C!==""&&v.jsx(Ct,{htmlFor:ee,id:J,...pt,children:C}),B?v.jsx(Me,{"aria-describedby":ae,id:ee,labelId:J,value:te,input:Pt,...Fe,children:a}):Pt,g&&v.jsx(ut,{id:ae,...Be,children:g})]})});function K6({sourceAndPaths:e,selectedSourceIndex:t,existingQuery:n,onQueryChange:r,onSourceChange:o,resourceUri:a}){return We.useEffect(()=>{o&&o(t)},[t,o]),v.jsx(XA,{children:v.jsxs(DV,{spacing:2,component:"section",children:[v.jsx(lfe,{sourceAndPath:e[t],existingQuery:n,onChange:i=>{r&&r(i)},resourceUri:a}),v.jsx(xH,{height:"5px"})]})})}function o0(){return{query:void 0,malloyQuery:void 0,malloyResult:void 0}}function sfe({sourceAndPath:e,onChange:t,existingQuery:n,explorerComponents:r,QueryBuilder:o,resourceUri:a}){const[i,l]=We.useState(n||o0()),[u,d]=We.useState(void 0);We.useEffect(()=>{n&&l(n)},[n]);const[p,h]=We.useState([]),{MalloyExplorerProvider:y,QueryPanel:g,ResizableCollapsiblePanel:b,ResultPanel:x,SourcePanel:T}=r;We.useEffect(()=>{t&&t(i)},[t,i]);const{projectName:E,packageName:A,versionId:C}=gr(a),{apiClients:D}=Zn(),I=Fi({mutationFn:()=>{const z=typeof i?.malloyQuery=="string"?i.malloyQuery:new o.ASTQuery({source:e.sourceInfo,query:i?.malloyQuery}).toMalloy();return d({executionState:"running",query:i?.malloyQuery,queryResolutionStartMillis:Date.now(),onCancel:I.reset,response:{result:{}}}),l({...i,query:z}),D.models.executeQueryModel(E,A,e.modelPath,{query:z,sourceName:void 0,queryName:void 0,versionId:C})},onSuccess:z=>{if(z){const P=JSON.parse(z.data.result);l({...i,malloyResult:P}),d($=>$?{...$,executionState:"finished",response:{result:P}}:void 0)}}}),[O,F]=We.useState(e.sourceInfo.name);We.useEffect(()=>{O!==e.sourceInfo.name&&(F(e.sourceInfo.name),l(o0()),d(void 0))},[e,O]);const H=We.useCallback(z=>{l({...i,malloyQuery:z,malloyResult:void 0})},[i]);return O!==e.sourceInfo.name?v.jsx("div",{children:"Loading..."}):v.jsx(x6,{sx:{border:"1px solid #e0e0e0",borderRadius:"8px",overflow:"hidden"},children:v.jsx(y,{source:e.sourceInfo,query:i?.malloyQuery,topValues:[],onFocusedNestViewPathChange:h,focusedNestViewPath:p,onQueryChange:H,children:v.jsxs("div",{style:{display:"flex",height:"100%",overflowY:"auto"},children:[v.jsx(b,{isInitiallyExpanded:!0,initialWidth:180,minWidth:180,icon:"database",title:e.sourceInfo.name,children:v.jsx(T,{onRefresh:()=>l(o0())})}),v.jsx(b,{isInitiallyExpanded:!0,initialWidth:280,minWidth:280,icon:"filterSliders",title:"Query",children:v.jsx(g,{runQuery:()=>{console.log(`running query with: ${i?.malloyQuery}`);try{I.mutate()}catch(z){console.error("Error running query:",z)}}})}),v.jsx(x,{source:e.sourceInfo,draftQuery:i?.malloyQuery,setDraftQuery:z=>l({...i,malloyQuery:z}),submittedQuery:u,options:{showRawQuery:!0}})]})})},e.sourceInfo.name)}function lfe(e){const[t,n]=_.useState(null),[r,o]=_.useState(null),[a,i]=_.useState(!0);return _.useEffect(()=>{let l=!0;return Promise.all([X(()=>import("./index-BWXd8Ctd.js"),__vite__mapDeps([93,94,95])),X(()=>import("./index-5F3gtdSl.js").then(u=>u.i),[])]).then(([u,d])=>{l&&(n(u),o(d),i(!1))}).catch(u=>{console.error("Failed to load Malloy components:",u),l&&i(!1)}),()=>{l=!1}},[]),a||!t||!r?v.jsx(Fse,{children:v.jsx(x6,{children:v.jsx("div",{style:{alignItems:"center",justifyContent:"center",height:"200px",color:"#666"},children:"Loading explorer..."})})}):v.jsx(sfe,{...e,explorerComponents:t,QueryBuilder:r,resourceUri:e.resourceUri})}function Q6(e,t=!0){const{modelPath:n,projectName:r,packageName:o,versionId:a}=gr(e),{apiClients:i}=Zn();return Qo({queryKey:["package",r,o,n,a],queryFn:async()=>(await i.models.getModel(r,o,n,a)).data,enabled:t})}function X6({data:e,onChange:t,existingQuery:n,initialSelectedSourceIndex:r=0,onSourceChange:o,resourceUri:a}){const[i,l]=We.useState(r);We.useEffect(()=>{l(r)},[r]);const{data:u,isError:d,isLoading:p,error:h}=Q6(a,!e),{modelPath:y}=gr(a),g=e||u;if(p&&!e)return v.jsx(Wo,{text:"Fetching Model..."});if(d&&!e)return console.log("error",h),v.jsx(Ko,{error:h,context:`ModelExplorer > ${y}`});if(!g)return v.jsx(Wo,{text:"Loading..."});const b=(g?.sourceInfos||[]).map((T,E)=>{try{return JSON.parse(T)?.name||`Source ${E+1}`}catch{return`Source ${E+1}`}}),x=b[i]||"";return v.jsxs(tb,{variant:"outlined",children:[v.jsx(E6,{children:v.jsx(Zr,{sx:{flexDirection:"row"},children:v.jsx(Cue,{size:"small",id:"size-small-standard",disablePortal:!0,options:b,value:x,onChange:(T,E)=>{if(!E)return;const A=b.indexOf(E);A>=0&&(l(A),o?.(A))},renderInput:T=>v.jsx(go,{...T}),style:{width:350,marginTop:"3px",marginLeft:"6px",marginBottom:"8px"}})})}),v.jsx(XA,{children:v.jsxs(Zr,{spacing:2,component:"section",children:[Array.isArray(g.sourceInfos)&&g.sourceInfos.length>0&&v.jsx(K6,{sourceAndPaths:g.sourceInfos.map(T=>({sourceInfo:JSON.parse(T),modelPath:y})),selectedSourceIndex:i,existingQuery:n,onQueryChange:t,resourceUri:a}),v.jsx(Rt,{height:"5px"})]})})]})}function Z6({open:e,onClose:t,resourceUri:n,data:r,title:o="Data Sources",hasValidImport:a=!0,existingQuery:i,initialSelectedSourceIndex:l,onChange:u,onSourceChange:d}){return v.jsxs(Pl,{open:e,onClose:t,fullScreen:!0,children:[v.jsxs(Ml,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[o,v.jsx(ir,{onClick:t,sx:{color:"#666666"},children:v.jsx(Bl,{})})]}),v.jsx(Ll,{children:a?v.jsx(X6,{resourceUri:n,data:r,existingQuery:i,initialSelectedSourceIndex:l,onChange:u,onSourceChange:d}):v.jsx("div",{children:"No valid import statement found in cell"})})]})}function L_e({onChange:e,resourceUri:t}){const{modelPath:n}=gr(t),{data:r,isError:o,isLoading:a,error:i}=Q6(t),[l,u]=We.useState(!1),[d,p]=We.useState(),[h,y]=We.useState(0),[g,b]=_.useState("");if(a)return v.jsx(Wo,{text:"Fetching Model..."});if(o)return console.log("error",i),v.jsx(Ko,{error:i,context:`Model > ${n}`});const x=A=>{p(A),e&&e(A)},T=A=>{y(A)},E=()=>{const A=window.location.href;navigator.clipboard.writeText(A).then(()=>b("URL copied to clipboard!")).catch(()=>b("Failed to copy URL"))};return v.jsxs(v.Fragment,{children:[v.jsxs(Rt,{sx:{position:"relative",maxWidth:"1200px",margin:"0 auto",paddingTop:"24px"},children:[Array.isArray(r?.sourceInfos)&&r.sourceInfos.length>0&&v.jsxs(Zr,{spacing:2,component:"section",children:[v.jsxs(Rt,{sx:{padding:"0 0 16px 0",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[v.jsx(st,{variant:"h1",sx:{fontSize:"28px",fontWeight:"600",color:"#1a1a1a",marginBottom:"8px",marginTop:"0",paddingLeft:"0"},children:"Sources"}),v.jsx(Fo,{title:"Click to copy link",children:v.jsx(zA,{sx:{fontSize:"24px",color:"#666666",cursor:"pointer"},onClick:E})})]}),v.jsx(X6,{data:r,onChange:x,onSourceChange:T,existingQuery:d,initialSelectedSourceIndex:h,resourceUri:t}),v.jsx(ir,{sx:{position:"absolute",top:"90px",right:"4px",backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px",zIndex:2},onClick:()=>u(!0),children:v.jsx(Fo,{title:"Expanded view",children:v.jsx(Roe,{sx:{fontSize:"18px",color:"#666666",marginBottom:"5px"}})})})]}),r?.queries?.length>0&&v.jsxs(Zr,{spacing:2,component:"section",sx:{marginTop:"24px"},children:[v.jsx(Rt,{sx:{padding:"0 0 16px 0"},children:v.jsx(st,{variant:"h2",sx:{fontSize:"24px",fontWeight:"600",color:"#1a1a1a",marginBottom:"0",marginTop:"8px",paddingLeft:"0"},children:"Named Queries"})}),r.queries.map(A=>v.jsx(Bse,{queryName:A.name,annotations:A.annotations,resourceUri:t},A.name))]}),v.jsx(Z6,{open:l,onClose:()=>u(!1),resourceUri:t,data:r,title:`Model: ${n.split("/").pop()}`,existingQuery:d,initialSelectedSourceIndex:h,onChange:x,onSourceChange:T})]}),v.jsx(Ds,{open:g!=="",autoHideDuration:6e3,onClose:()=>b(""),message:g})]})}const J6=Nn(v.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"})),cfe=Nn(v.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"}));_.lazy(()=>Promise.resolve().then(()=>H7));function ufe(e){const{projectName:t,packageName:n}=gr(e.resourceUri);if(!t||!n)throw new Error("Project and Package name must be provided for query embedding.");return JSON.stringify({...e})}function dfe({cell:e,hideCodeCellIcon:t,hideEmbeddingIcon:n,resourceUri:r,index:o}){const[a,i]=We.useState(!1),[l,u]=We.useState(!1),[d,p]=We.useState(!1),[h,y]=We.useState(),[g,b]=We.useState(),[x,T]=We.useState(!1),[E,A]=_.useState(""),C=/import\s*\{([^}]+)\}\s*from\s*['"`][^'"`]+['"`]/,D=/import\s*(?:\{[^}]*\}\s*from\s*)?['"`]([^'"`]+)['"`]/,I=!!e.text&&(C.test(e.text)||D.test(e.text)),O=()=>{if(!e.newSources||e.newSources.length===0)return 0;let P=[],$="";if(e.text){const k=e.text.match(C);k&&(P=k[1].split(",").map(B=>B.trim()));const M=e.text.match(D);M&&($=M[1].trim())}for(let k=0;k<e.newSources.length;k++)try{const M=JSON.parse(e.newSources[k]);if(P.length>0&&P.includes(M.name)||$&&$===M.path)return k}catch{continue}return 0},F=e.newSources&&e.newSources.length>0?{sourceInfos:e.newSources,resource:r}:void 0,H=ufe({query:e.text,resourceUri:r});_.useEffect(()=>{e.type==="code"&&eb(e.text,"malloy").then(P=>{y(P)})},[e]),_.useEffect(()=>{eb(H,"typescript").then(P=>{b(P)})},[H]);const z=()=>{const P=window.location.href;navigator.clipboard.writeText(P).then(()=>A("URL copied to clipboard!")).catch(()=>A("Failed to copy URL"))};return e.type==="markdown"&&v.jsx(jT,{children:v.jsxs(Rt,{sx:{"& h1, & h2, & h3, & h4, & h5, & h6":{fontWeight:"600",color:"#1a1a1a",marginBottom:"8px",marginTop:"16px"},"& h1":{fontSize:"28px"},"& h2":{fontSize:"24px"},"& h3":{fontSize:"20px"},"& p":{color:"#333333",lineHeight:"1.7",marginBottom:"8px",fontSize:"16px"},"& ul, & ol":{color:"#333333",lineHeight:"1.7",marginBottom:"8px",fontSize:"16px"},"& li":{marginBottom:"4px"}},children:[o===0?v.jsxs(Zr,{direction:"row",alignItems:"flex-start",justifyContent:"space-between",children:[v.jsx(L0,{children:e.text}),v.jsx(Fo,{title:"Click to copy link",children:v.jsx(zA,{sx:{fontSize:"24px",color:"#666666",cursor:"pointer",marginTop:"26px"},onClick:z})})]}):v.jsx(L0,{children:e.text}),v.jsx(Ds,{open:E!=="",autoHideDuration:6e3,onClose:()=>A(""),message:E})]})})||e.type==="code"&&v.jsxs(jT,{children:[(!t||!n&&e.result||e.newSources&&e.newSources.length>0)&&v.jsx(Zr,{sx:{flexDirection:"column",gap:"8px",marginBottom:"16px"},children:e.newSources&&e.newSources.length>0&&I&&v.jsx(BT,{sx:{position:"relative",padding:"0"},children:v.jsxs(Rt,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingLeft:"24px",paddingRight:"8px"},children:[h&&v.jsx("span",{dangerouslySetInnerHTML:{__html:e.text.length>50&&h?`${h.substring(0,50)}...`:h},style:{fontFamily:"monospace",fontSize:"14px",flex:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginRight:"8px"}}),v.jsx(ir,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px",flexShrink:0},onClick:()=>T(!0),children:v.jsx(Qh,{sx:{fontSize:"18px",color:"#666666"}})})]})})}),v.jsx(Z6,{open:x,onClose:()=>T(!1),title:"Data Sources",hasValidImport:I,resourceUri:r,data:F,initialSelectedSourceIndex:O()}),v.jsxs(Pl,{open:a,onClose:()=>i(!1),maxWidth:"lg",fullWidth:!0,children:[v.jsxs(Ml,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Malloy Code",v.jsx(ir,{onClick:()=>i(!1),sx:{color:"#666666"},children:v.jsx(Bl,{})})]}),v.jsx(Ll,{children:v.jsx(Rt,{sx:{border:"1px solid #e0e0e0",borderRadius:"8px",padding:"16px",fontFamily:"monospace",fontSize:"14px",lineHeight:"1.5",overflow:"auto",maxHeight:"70vh",backgroundColor:"#ffffff"},children:v.jsx("pre",{className:"code-display",style:{margin:0},dangerouslySetInnerHTML:{__html:h}})})})]}),v.jsxs(Pl,{open:l,onClose:()=>u(!1),maxWidth:"lg",fullWidth:!0,children:[v.jsxs(Ml,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Embeddable Code",v.jsx(ir,{onClick:()=>u(!1),sx:{color:"#666666"},children:v.jsx(Bl,{})})]}),v.jsx(Ll,{children:v.jsxs(Zr,{sx:{flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start"},children:[v.jsx(st,{component:"div",sx:{fontSize:"12px",fontFamily:"monospace","& .line":{textWrap:"wrap"},flex:1},dangerouslySetInnerHTML:{__html:g}}),v.jsx(Fo,{title:"Copy Embeddable Code",children:v.jsx(ir,{sx:{width:"24px",height:"24px",marginLeft:"8px",color:"#666666"},onClick:()=>{navigator.clipboard.writeText(H)},children:v.jsx(cfe,{})})})]})})]}),v.jsx(v6,{open:d,onClose:()=>p(!1),result:e.result||"",title:"Results"}),e.result&&v.jsxs(BT,{sx:{position:"relative"},children:[v.jsx(Rt,{sx:{paddingTop:"24px"},children:v.jsx(Tv,{result:e.result,minHeight:300,maxHeight:1e3})}),v.jsx(Rt,{sx:{position:"absolute",bottom:0,left:0,right:0,height:"40px",background:"linear-gradient(transparent, rgba(255, 255, 255, 0.9))",pointerEvents:"none",zIndex:1}}),v.jsxs(Zr,{sx:{position:"absolute",top:"8px",right:"8px",flexDirection:"row",gap:"8px",alignItems:"center",zIndex:2},children:[!t&&v.jsx(ir,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px"},onClick:P=>{P.stopPropagation(),i(!0)},children:v.jsx(J6,{sx:{fontSize:"18px",color:"#666666"}})}),v.jsx(ir,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px"},onClick:()=>p(!0),children:v.jsx(Qh,{sx:{fontSize:"18px",color:"#666666"}})})]})]})]})}function ffe({resourceUri:e}){const{apiClients:t}=Zn(),{projectName:n,packageName:r,versionId:o,modelPath:a}=gr(e),{data:i,isSuccess:l,isError:u,error:d}=Qo({queryKey:[e],queryFn:async()=>(await t.notebooks.getNotebook(n,r,a,o)).data});return v.jsx(Lse,{children:v.jsx(Mse,{children:v.jsxs(Zr,{spacing:3,component:"section",children:[!l&&!u&&v.jsx(Wo,{text:"Fetching Notebook..."}),l&&i.notebookCells?.map((p,h)=>v.jsx(dfe,{cell:p,index:h,resourceUri:e},h)),u&&d.status===404&&v.jsxs(st,{variant:"body2",sx:{color:"#666666"},children:[v.jsx("code",{children:`${n} > ${r} > ${a}`})," ","not found."]}),u&&d.status!==404&&v.jsx(Ko,{error:d,context:`${n} > ${r} > ${a}`})]})})})}const pfe=Nn(v.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),ed=YC({createStyledComponent:ze("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>on({props:e,name:"MuiStack"})});class yh{constructor(t,n){this.workbookData=n,this.workbookStorage=t,this.workbookData?this.isSaved=!0:(this.workbookData={models:[],cells:[],workbookPath:void 0},this.isSaved=!1)}isSaved;workbookStorage;getWorkbookData(){return this.workbookData}getWorkbookPath(){return this.workbookData.workbookPath}async renameWorkbook(t){if(this.workbookData.workbookPath.path!==t)try{await this.workbookStorage.moveWorkbook(this.workbookData.workbookPath,{path:t,workspace:this.workbookData.workbookPath.workspace})}catch{}return this.workbookData.workbookPath.path=t,this.isSaved=!1,await this.saveWorkbook()}getCells(){return this.workbookData.cells}deleteCell(t){return this.workbookData.cells=[...this.workbookData.cells.slice(0,t),...this.workbookData.cells.slice(t+1)],this.isSaved=!1,this}insertCell(t,n){return this.workbookData.cells=[...this.workbookData.cells.slice(0,t),n,...this.workbookData.cells.slice(t)],this.isSaved=!1,this}setCell(t,n){return this.workbookData.cells[t]=n,this.isSaved=!1,this}setModels(t){return this.workbookData.models=t,this.isSaved=!1,this}getModels(){return this.workbookData.models}updateWorkbookData(t){return this.workbookData=t,this.isSaved=!1,this}async saveWorkbook(){if(!this.isSaved){if(!this.workbookData.workbookPath)throw new Error("Workbook path is not set");await this.workbookStorage.saveWorkbook(this.workbookData.workbookPath,JSON.stringify(this.workbookData)),this.isSaved=!0}return new yh(this.workbookStorage,this.workbookData)}toMalloyWorkbook(){return this.workbookData.cells.map(t=>t.isMarkdown?`>>>markdown
363
363
  `+t.value:`>>>malloy
364
364
  import {${t.sourceName}}" from '${t.modelPath}'"
365
365
  `+t.value+`
@@ -442,4 +442,4 @@ import {${t.sourceName}}" from '${t.modelPath}'"
442
442
  `));const g=n?n(d):d.label;if(g==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(d)].join(`
443
443
  `));o[y]={id:y,label:g,parentId:h,idAttribute:void 0,expandable:!!d.children?.length,disabled:t?t(d):!1,depth:p},a[y]=d;const b=h??dd;i[b]||(i[b]=[]),i[b].push(y),d.children?.forEach(x=>l(x,p+1,y))};e.forEach(d=>l(d,0,null));const u={};return Object.keys(i).forEach(d=>{u[d]=MCe(i[d])}),{itemMetaMap:o,itemMap:a,itemOrderedChildrenIds:i,itemChildrenIndexes:u}},Vm=({instance:e,params:t,state:n,setState:r,experimentalFeatures:o})=>{const a=_.useCallback(T=>n.items.itemMetaMap[T],[n.items.itemMetaMap]),i=_.useCallback(T=>n.items.itemMap[T],[n.items.itemMap]),l=_.useCallback(()=>{const T=E=>{const A=n.items.itemMap[E],C=po(A,FCe),D=n.items.itemOrderedChildrenIds[E];return D&&(C.children=D.map(T)),C};return n.items.itemOrderedChildrenIds[dd].map(T)},[n.items.itemMap,n.items.itemOrderedChildrenIds]),u=_.useCallback(T=>{if(T==null)return!1;let E=e.getItemMeta(T);if(!E)return!1;if(E.disabled)return!0;for(;E.parentId!=null;)if(E=e.getItemMeta(E.parentId),E.disabled)return!0;return!1},[e]),d=_.useCallback(T=>{const E=e.getItemMeta(T).parentId??dd;return n.items.itemChildrenIndexes[E][T]},[e,n.items.itemChildrenIndexes]),p=_.useCallback(T=>n.items.itemOrderedChildrenIds[T??dd]??[],[n.items.itemOrderedChildrenIds]),h=T=>{const E=e.getItemMeta(T);return E==null?null:document.getElementById(V_({treeId:n.id.treeId,itemId:T,id:E.idAttribute}))},y=T=>t.disabledItemsFocusable?!0:!e.isItemDisabled(T),g=_.useRef(!1),b=_.useCallback(()=>{g.current=!0},[]),x=_.useCallback(()=>g.current,[]);return _.useEffect(()=>{e.areItemUpdatesPrevented()||r(T=>{const E=P7({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel});return Object.values(T.items.itemMetaMap).forEach(A=>{E.itemMetaMap[A.id]||LCe(e,"removeItem",{id:A.id})}),$e({},T,{items:E})})},[e,r,t.items,t.isItemDisabled,t.getItemId,t.getItemLabel]),{getRootProps:()=>({style:{"--TreeView-itemChildrenIndentation":typeof t.itemChildrenIndentation=="number"?`${t.itemChildrenIndentation}px`:t.itemChildrenIndentation}}),publicAPI:{getItem:i,getItemDOMElement:h,getItemTree:l,getItemOrderedChildrenIds:p},instance:{getItemMeta:a,getItem:i,getItemTree:l,getItemsToRender:()=>{const T=E=>{const A=n.items.itemMetaMap[E];return{label:A.label,itemId:A.id,id:A.idAttribute,children:n.items.itemOrderedChildrenIds[E]?.map(T)}};return n.items.itemOrderedChildrenIds[dd].map(T)},getItemIndex:d,getItemDOMElement:h,getItemOrderedChildrenIds:p,isItemDisabled:u,isItemNavigable:y,preventItemUpdates:b,areItemUpdatesPrevented:x},contextValue:{items:{onItemClick:t.onItemClick,disabledItemsFocusable:t.disabledItemsFocusable,indentationAtItemLevel:o.indentationAtItemLevel??!1}}}};Vm.getInitialState=e=>({items:P7({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})});Vm.getDefaultizedParams=({params:e})=>$e({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px"});Vm.wrapRoot=({children:e,instance:t})=>v.jsx(H_.Provider,{value:n=>t.getItemMeta(n)?.depth??0,children:e});Vm.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0,onItemClick:!0,itemChildrenIndentation:!0};const zv=({instance:e,params:t,models:n})=>{const r=_.useMemo(()=>{const h=new Map;return n.expandedItems.value.forEach(y=>{h.set(y,!0)}),h},[n.expandedItems.value]),o=(h,y)=>{t.onExpandedItemsChange?.(h,y),n.expandedItems.setControlledValue(y)},a=_.useCallback(h=>r.has(h),[r]),i=_.useCallback(h=>!!e.getItemMeta(h)?.expandable,[e]),l=Mr((h,y)=>{const g=e.isItemExpanded(y);e.setItemExpansion(h,y,!g)}),u=Mr((h,y,g)=>{if(e.isItemExpanded(y)===g)return;let b;g?b=[y].concat(n.expandedItems.value):b=n.expandedItems.value.filter(x=>x!==y),t.onItemExpansionToggle&&t.onItemExpansionToggle(h,y,g),o(h,b)}),d=(h,y)=>{const g=e.getItemMeta(y),b=e.getItemOrderedChildrenIds(g.parentId).filter(T=>e.isItemExpandable(T)&&!e.isItemExpanded(T)),x=n.expandedItems.value.concat(b);b.length>0&&(t.onItemExpansionToggle&&b.forEach(T=>{t.onItemExpansionToggle(h,T,!0)}),o(h,x))},p=_.useMemo(()=>t.expansionTrigger?t.expansionTrigger:e.isTreeViewEditable?"iconContainer":"content",[t.expansionTrigger,e.isTreeViewEditable]);return{publicAPI:{setItemExpansion:u},instance:{isItemExpanded:a,isItemExpandable:i,setItemExpansion:u,toggleItemExpansion:l,expandAllSiblings:d},contextValue:{expansion:{expansionTrigger:p}}}};zv.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const jCe=[];zv.getDefaultizedParams=({params:e})=>$e({},e,{defaultExpandedItems:e.defaultExpandedItems??jCe});zv.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};const p0=e=>Array.isArray(e)?e:e!=null?[e]:[],AS=e=>{const t={};return e.forEach(n=>{t[n]=!0}),t},$v=({instance:e,params:t,models:n})=>{const r=_.useRef(null),o=_.useRef({}),a=_.useMemo(()=>{const p=new Map;return Array.isArray(n.selectedItems.value)?n.selectedItems.value.forEach(h=>{p.set(h,!0)}):n.selectedItems.value!=null&&p.set(n.selectedItems.value,!0),p},[n.selectedItems.value]),i=(p,h)=>{if(t.onItemSelectionToggle)if(t.multiSelect){const y=h.filter(b=>!e.isItemSelected(b)),g=n.selectedItems.value.filter(b=>!h.includes(b));y.forEach(b=>{t.onItemSelectionToggle(p,b,!0)}),g.forEach(b=>{t.onItemSelectionToggle(p,b,!1)})}else h!==n.selectedItems.value&&(n.selectedItems.value!=null&&t.onItemSelectionToggle(p,n.selectedItems.value,!1),h!=null&&t.onItemSelectionToggle(p,h,!0));t.onSelectedItemsChange&&t.onSelectedItemsChange(p,h),n.selectedItems.setControlledValue(h)},l=p=>a.has(p),u=({event:p,itemId:h,keepExistingSelection:y=!1,shouldBeSelected:g})=>{if(t.disableSelection)return;let b;if(y){const x=p0(n.selectedItems.value),T=e.isItemSelected(h);T&&(g===!1||g==null)?b=x.filter(E=>E!==h):!T&&(g===!0||g==null)?b=[h].concat(x):b=x}else g===!1||g==null&&e.isItemSelected(h)?b=t.multiSelect?[]:null:b=t.multiSelect?[h]:h;i(p,b),r.current=h,o.current={}},d=(p,[h,y])=>{if(t.disableSelection||!t.multiSelect)return;let g=p0(n.selectedItems.value).slice();Object.keys(o.current).length>0&&(g=g.filter(E=>!o.current[E]));const b=AS(g),x=JTe(e,h,y),T=x.filter(E=>!b[E]);g=g.concat(T),i(p,g),o.current=AS(x)};return{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),publicAPI:{selectItem:u},instance:{isItemSelected:l,selectItem:u,selectAllNavigableItems:p=>{if(t.disableSelection||!t.multiSelect)return;const h=eCe(e);i(p,h),o.current=AS(h)},expandSelectionRange:(p,h)=>{if(r.current!=null){const[y,g]=k7(e,h,r.current);d(p,[y,g])}},selectRangeFromStartToItem:(p,h)=>{d(p,[lm(e),h])},selectRangeFromItemToEnd:(p,h)=>{d(p,[h,_7(e)])},selectItemFromArrowNavigation:(p,h,y)=>{if(t.disableSelection||!t.multiSelect)return;let g=p0(n.selectedItems.value).slice();Object.keys(o.current).length===0?(g.push(y),o.current={[h]:!0,[y]:!0}):(o.current[h]||(o.current={}),o.current[y]?(g=g.filter(b=>b!==h),delete o.current[h]):(g.push(y),o.current[y]=!0)),i(p,g)}},contextValue:{selection:{multiSelect:t.multiSelect,checkboxSelection:t.checkboxSelection,disableSelection:t.disableSelection}}}};$v.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const BCe=[];$v.getDefaultizedParams=({params:e})=>$e({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?BCe:null)});$v.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};const $3=1e3;class UCe{constructor(t=$3){this.timeouts=new Map,this.cleanupTimeout=$3,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}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 zCe{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 $Ce{}function HCe(e){let t=0;return function(n,r,o){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new zCe:new UCe);const[a]=_.useState(new $Ce),i=_.useRef(null),l=_.useRef(void 0);l.current=o;const u=_.useRef(null);if(!i.current&&l.current){const d=(p,h)=>{h.defaultMuiPrevented||l.current?.(p,h)};i.current=n.$$subscribeEvent(r,d),t+=1,u.current={cleanupToken:t},e.registry.register(a,()=>{i.current?.(),i.current=null,u.current=null},u.current)}else!l.current&&i.current&&(i.current(),i.current=null,u.current&&(e.registry.unregister(u.current),u.current=null));_.useEffect(()=>{if(!i.current&&l.current){const d=(p,h)=>{h.defaultMuiPrevented||l.current?.(p,h)};i.current=n.$$subscribeEvent(r,d)}return u.current&&e.registry&&(e.registry.unregister(u.current),u.current=null),()=>{i.current?.(),i.current=null}},[n,r])}}const VCe={registry:null},GCe=HCe(VCe),L7=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?L7(t.shadowRoot):t:null},qCe=(e,t)=>{let n=p0(t).find(r=>{if(!e.isItemNavigable(r))return!1;const o=e.getItemMeta(r);return o&&(o.parentId==null||e.isItemExpanded(o.parentId))});return n==null&&(n=lm(e)),n},W_=({instance:e,params:t,state:n,setState:r,models:o,rootRef:a})=>{const i=qCe(e,o.selectedItems.value),l=Mr(T=>{const E=typeof T=="function"?T(n.focusedItemId):T;n.focusedItemId!==E&&r(A=>$e({},A,{focusedItemId:E}))}),u=_.useCallback(()=>!!a.current&&a.current.contains(L7(oo(a.current))),[a]),d=_.useCallback(T=>n.focusedItemId===T&&u(),[n.focusedItemId,u]),p=T=>{const E=e.getItemMeta(T);return E&&(E.parentId==null||e.isItemExpanded(E.parentId))},h=(T,E)=>{const A=e.getItemDOMElement(E);A&&A.focus(),l(E),t.onItemFocus&&t.onItemFocus(T,E)},y=Mr((T,E)=>{p(E)&&h(T,E)}),g=Mr(()=>{if(n.focusedItemId!=null){if(e.getItemMeta(n.focusedItemId)){const T=e.getItemDOMElement(n.focusedItemId);T&&T.blur()}l(null)}}),b=T=>T===i;GCe(e,"removeItem",({id:T})=>{n.focusedItemId===T&&h(null,i)});const x=T=>E=>{T.onFocus?.(E),!E.defaultMuiPrevented&&E.target===E.currentTarget&&h(E,i)};return{getRootProps:T=>({onFocus:x(T)}),publicAPI:{focusItem:y},instance:{isItemFocused:d,canItemBeTabbed:b,focusItem:y,removeFocusedItem:g}}};W_.getInitialState=()=>({focusedItemId:null});W_.params={onItemFocus:!0};function WCe(e){return!!e&&e.length===1&&!!e.match(/\S/)}const M7=({instance:e,params:t,state:n})=>{const r=BA(),o=_.useRef({}),a=Mr(d=>{o.current=d(o.current)});_.useEffect(()=>{if(e.areItemUpdatesPrevented())return;const d={},p=h=>{d[h.id]=h.label.substring(0,1).toLowerCase()};Object.values(n.items.itemMetaMap).forEach(p),o.current=d},[n.items.itemMetaMap,t.getItemId,e]);const i=(d,p)=>{const h=p.toLowerCase(),y=T=>{const E=f0(e,T);return E===null?lm(e):E};let g=null,b=y(d);const x={};for(;g==null&&!x[b];)o.current[b]===h?g=b:(x[b]=!0,b=y(b));return g},l=d=>!t.disableSelection&&!e.isItemDisabled(d),u=d=>!e.isItemDisabled(d)&&e.isItemExpandable(d);return{instance:{updateFirstCharMap:a,handleItemKeyDown:(d,p)=>{if(d.defaultMuiPrevented||d.altKey||cm(d.target,d.currentTarget))return;const h=d.ctrlKey||d.metaKey,y=d.key;switch(!0){case(y===" "&&l(p)):{d.preventDefault(),t.multiSelect&&d.shiftKey?e.expandSelectionRange(d,p):e.selectItem({event:d,itemId:p,keepExistingSelection:t.multiSelect,shouldBeSelected:t.multiSelect?void 0:!0});break}case y==="Enter":{jc(e,$a)&&e.isItemEditable(p)&&!e.isItemBeingEdited(p)?e.setEditedItemId(p):u(p)?(e.toggleItemExpansion(d,p),d.preventDefault()):l(p)&&(t.multiSelect?(d.preventDefault(),e.selectItem({event:d,itemId:p,keepExistingSelection:!0})):e.isItemSelected(p)||(e.selectItem({event:d,itemId:p}),d.preventDefault()));break}case y==="ArrowDown":{const g=f0(e,p);g&&(d.preventDefault(),e.focusItem(d,g),t.multiSelect&&d.shiftKey&&l(g)&&e.selectItemFromArrowNavigation(d,p,g));break}case y==="ArrowUp":{const g=A7(e,p);g&&(d.preventDefault(),e.focusItem(d,g),t.multiSelect&&d.shiftKey&&l(g)&&e.selectItemFromArrowNavigation(d,p,g));break}case(y==="ArrowRight"&&!r||y==="ArrowLeft"&&r):{if(h)return;if(e.isItemExpanded(p)){const g=f0(e,p);g&&(e.focusItem(d,g),d.preventDefault())}else u(p)&&(e.toggleItemExpansion(d,p),d.preventDefault());break}case(y==="ArrowLeft"&&!r||y==="ArrowRight"&&r):{if(h)return;if(u(p)&&e.isItemExpanded(p))e.toggleItemExpansion(d,p),d.preventDefault();else{const g=e.getItemMeta(p).parentId;g&&(e.focusItem(d,g),d.preventDefault())}break}case y==="Home":{l(p)&&t.multiSelect&&h&&d.shiftKey?e.selectRangeFromStartToItem(d,p):e.focusItem(d,lm(e)),d.preventDefault();break}case y==="End":{l(p)&&t.multiSelect&&h&&d.shiftKey?e.selectRangeFromItemToEnd(d,p):e.focusItem(d,_7(e)),d.preventDefault();break}case y==="*":{e.expandAllSiblings(d,p),d.preventDefault();break}case(String.fromCharCode(d.keyCode)==="A"&&h&&t.multiSelect&&!t.disableSelection):{e.selectAllNavigableItems(d),d.preventDefault();break}case(!h&&!d.shiftKey&&WCe(y)):{const g=i(p,y);g!=null&&(e.focusItem(d,g),d.preventDefault());break}}}}}};M7.params={};const F7=({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}}}});F7.params={};const YCe=[Vm,zv,$v,W_,M7,F7,$a],KCe=["ownerState"];function QCe({slots:e,slotProps:t,label:n,id:r,itemId:o,itemsToRender:a}){const i=e?.item??bCe,l=Es({elementType:i,externalSlotProps:t?.item,additionalProps:{itemId:o,id:r,label:n},ownerState:{itemId:o,label:n}}),u=po(l,KCe),d=_.useMemo(()=>a?v.jsx(j7,{itemsToRender:a,slots:e,slotProps:t}):null,[a,e,t]);return v.jsx(i,$e({},u,{children:d}))}function j7(e){const{itemsToRender:t,slots:n,slotProps:r}=e;return v.jsx(_.Fragment,{children:t.map(o=>v.jsx(QCe,{slots:n,slotProps:r,label:o.label,id:o.id,itemId:o.itemId,itemsToRender:o.children},o.itemId))})}const XCe=x7(),ZCe=e=>{const{classes:t}=e;return Qt({root:["root"]},ACe,t)},JCe=ze("ul",{name:"MuiRichTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),eAe=_.forwardRef(function(e,t){const n=XCe({props:e,name:"MuiRichTreeView"}),{getRootProps:r,contextValue:o,instance:a}=PCe({plugins:YCe,rootRef:t,props:n}),{slots:i,slotProps:l}=n,u=ZCe(n),d=i?.root??JCe,p=Es({elementType:d,externalSlotProps:l?.root,className:u.root,getSlotProps:r,ownerState:n});return v.jsx(QTe,{value:o,children:v.jsx(d,$e({},p,{children:v.jsx(j7,{slots:i,slotProps:l,itemsToRender:a.getItemsToRender()})}))})}),tAe=Nn(v.jsx("path",{d:"m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"})),nAe=Nn([v.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},"0"),v.jsx("path",{d:"M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},"1")]),rAe=Nn(v.jsx("path",{d:"M19 15v4H5v-4zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 18.5c-.82 0-1.5-.67-1.5-1.5s.68-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M19 5v4H5V5zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 8.5c-.82 0-1.5-.67-1.5-1.5S6.18 5.5 7 5.5s1.5.68 1.5 1.5S7.83 8.5 7 8.5"})),oAe=Nn(v.jsx("path",{d:"M15 4v2h3v12h-3v2h5V4zM4 20h5v-2H6V6h3V4H4z"}));function B7({items:e,defaultExpandedItems:t,onClickTreeNode:n}){return v.jsx(eAe,{items:cAe(e,n),defaultExpandedItems:t,slots:{item:lAe}})}const aAe=tne(sm);function iAe(e){const t=zte({to:{opacity:e.in?1:0,transform:`translate3d(0,${e.in?0:20}px,0)`}});return v.jsx(aAe,{style:t,...e})}function sAe({item:e,...t}){const n=v.jsxs(TCe,{...t,sx:{display:"flex",alignItems:"center",color:e.error?"error.main":"grey.600"},children:[e.fileType==="directory"&&v.jsx(tAe,{})||e.fileType==="notebook"&&v.jsx(nAe,{})||e.fileType==="model"&&v.jsx(oAe,{})||e.fileType=="database"&&v.jsx(rAe,{})||v.jsx(g7,{}),v.jsx(st,{variant:"body2",sx:{marginLeft:"5px"},color:e.error?"error.main":e.link?"primary.main":"grey.600",children:e.label})]});return e.error?v.jsx(Fo,{title:e.error,placement:"right",children:n}):n}const lAe=_.forwardRef(function(e,t){const{id:n,itemId:r,label:o,children:a,disabled:i,...l}=e,{getRootProps:u,getContentProps:d,getLabelProps:p,getIconContainerProps:h,getGroupTransitionProps:y,status:g,publicAPI:b}=rCe({id:n,itemId:r,children:a,label:o,disabled:i,rootRef:t}),x=b.getItem(r);return g.selected=!1,g.focused=!1,v.jsx(G_,{itemId:r,children:v.jsxs(xCe,{...u(l),children:[v.jsxs(SCe,{...d(),...x.link&&{onClick:T=>x.link(T)},sx:{pointerEvents:!x.selectable&&"none"},children:[v.jsx(CCe,{...h(),children:v.jsx(vCe,{status:g})}),v.jsx(sAe,{...p({item:x})})]}),a&&v.jsx(iAe,{...y()})]})})});function cAe(e,t){const n=new Map;return e.map(r=>{let o=n;const a=r.path.split("/");a.forEach((i,l)=>{l===a.length-1?o.set(i,r):(o.has(i)||o.set(i,new Map),o=o.get(i))})}),U7(n,"",t)}function U7(e,t,n){const r=[];return e.forEach((o,a)=>{const i=a.endsWith(".malloy")&&"model"||a.endsWith(".malloynb")&&"notebook"||a.endsWith(".parquet")&&"database"||"unknown";if(i!=="unknown"){const l=o;r.push({id:t+a,label:a,fileType:i,link:i==="model"||i==="notebook"?u=>n(t+a,u):void 0,selectable:i==="model"||i==="notebook",error:"error"in l?l.error:void 0})}else{const l=t+a+"/";r.push({id:l,label:a,fileType:"directory",selectable:!0,link:void 0,children:U7(o,l,n)})}}),r}const uAe=["notebooks/","models/"];function dAe({onClickModelFile:e,resourceUri:t}){const{projectName:n,packageName:r,versionId:o}=gr(t),{apiClients:a}=Zn(),{data:i,isError:l,error:u,isSuccess:d}=Qo({queryKey:["models",n,r,o],queryFn:()=>a.models.listModels(n,r,o)});return v.jsx(Vl,{children:v.jsxs(Gl,{children:[v.jsx(ru,{children:"Semantic Models"}),v.jsxs(Rt,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!d&&!l&&v.jsx(Wo,{text:"Fetching Models..."}),l&&v.jsx(Ko,{error:u,context:`${n} > ${r} > Models`}),d&&i.data.length>0&&v.jsx(B7,{items:i.data.sort((p,h)=>p.path.localeCompare(h.path)),onClickTreeNode:e,defaultExpandedItems:uAe}),d&&i.data.length===0&&v.jsx(st,{variant:"body2",children:"No models found"})]})]})})}const fAe=["notebooks/"];function pAe({onClickNotebookFile:e,resourceUri:t}){const{apiClients:n}=Zn(),{projectName:r,packageName:o,versionId:a}=gr(t),{data:i,isError:l,error:u,isSuccess:d}=Qo({queryKey:["notebooks",r,o,a],queryFn:()=>n.notebooks.listNotebooks(r,o,a)});return v.jsx(Vl,{children:v.jsxs(Gl,{children:[v.jsx(ru,{children:"Notebooks"}),v.jsxs(Rt,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!d&&!l&&v.jsx(Wo,{text:"Fetching Notebooks..."}),l&&v.jsx(Ko,{error:u,context:`${r} > ${o} > Notebooks`}),d&&i.data.length>0&&v.jsx(B7,{items:i.data.sort((p,h)=>p.path.localeCompare(h.path)),defaultExpandedItems:fAe,onClickTreeNode:e}),d&&i.data.length===0&&v.jsx(st,{variant:"body2",children:"No notebooks found"})]})]})})}const hAe="README.malloynb";function F_e({onClickPackageFile:e,resourceUri:t}){e||(e=r=>{window.location.href=r});const n=$A({...gr(t),modelPath:hAe});return v.jsx(v.Fragment,{children:v.jsxs(Cr,{container:!0,spacing:3,columns:12,children:[v.jsx(Cr,{size:{xs:12,md:4},children:v.jsx(MSe,{resourceUri:t})}),v.jsx(Cr,{size:{xs:12,md:4},children:v.jsx(pAe,{onClickNotebookFile:e,resourceUri:t})}),v.jsx(Cr,{size:{xs:12,md:4},children:v.jsx(dAe,{onClickModelFile:e,resourceUri:t})}),v.jsx(Cr,{size:{xs:12,md:6},children:v.jsx(kTe,{resourceUri:t})}),v.jsx(Cr,{size:{xs:12,md:6},children:v.jsx(_Te,{resourceUri:t})}),v.jsx(Cr,{size:{xs:12,md:12},children:v.jsx(Vl,{children:v.jsxs(Gl,{children:[v.jsx(ru,{children:"README"}),v.jsx(Rt,{sx:{mt:1},children:v.jsx(ffe,{resourceUri:n})})]})})})]})})}function mAe({resourceUri:e}){const{projectName:t}=gr(e),{apiClients:n}=Zn(),[r,o]=_.useState(!1),a=90,{data:i,isSuccess:l,isError:u,error:d}=Qo({queryKey:["about",t],queryFn:()=>n.projects.getProject(t,!1)}),p=i?.data?.readme||"",h=p.split(/\s+/),y=h.length>a,g=h.slice(0,a).join(" ");return v.jsxs(v.Fragment,{children:[!l&&!u&&v.jsx(Wo,{text:"Fetching About..."}),l&&p&&v.jsx(Vl,{children:v.jsxs(Gl,{children:[v.jsx(ru,{children:"Readme"}),v.jsxs(Rt,{sx:{mt:1,fontSize:"0.875rem",lineHeight:1.6},children:[v.jsx(L0,{options:{overrides:{h1:{component:"p",props:{style:{fontSize:"inherit",fontWeight:"italic"}}},h2:{component:"p",props:{style:{fontSize:"inherit",fontWeight:"italic"}}},h3:{component:"p",props:{style:{fontSize:"inherit",fontWeight:"italic"}}}}},children:r||!y?p:g}),y&&v.jsxs(Rt,{sx:{mt:1},children:[" ",v.jsx(ti,{variant:"text",size:"small",onClick:()=>o(!r),children:r?"Read less":"Read more"})]})]})]})}),u&&v.jsx(Ko,{error:d,context:`${t} > About`})]})}function gAe({resourceUri:e}){const[t,n]=_.useState(!1),{apiClients:r}=Zn(),o=Is(),[a,i]=_.useState(""),l=()=>{n(!0)},u=()=>{n(!1)},{projectName:d}=gr(e),p=Fi({async mutationFn(y){return r.packages.createPackage(d,{name:y.name,description:y.description,location:y.location})},onSuccess(){u(),i("Package created successfully"),o.invalidateQueries({queryKey:["packages",d]})},onError(y){i(y instanceof Error?y.message:"An unknown error occurred")}}),h=y=>{y.preventDefault();const g=new FormData(y.currentTarget),b=g.get("name")?.toString(),x=g.get("description")?.toString(),T=g.get("location")?.toString();p.mutate({name:b,description:x,location:T})};return v.jsxs(We.Fragment,{children:[v.jsx(jr,{onClick:l,variant:"contained",color:"primary",startIcon:v.jsx(CJ,{}),sx:{color:"white"},children:"Add Package"}),v.jsxs(Ps,{open:t,onClose:u,children:[v.jsx(Fs,{children:"Create New Package"}),v.jsxs(Ms,{children:[v.jsxs(vf,{children:["Create a new malloy package to start exploring your data.",v.jsx("br",{}),v.jsx("br",{}),"The location can be a GitHub/S3/GCP URL containing a package (Zipped or unzipped), or an absolute path to a directory that the publisher server has access to.",v.jsx("br",{}),v.jsx("br",{}),"Make sure to conform the"," ",v.jsx("a",{href:"https://github.com/malloydata/publisher/blob/main/README.md#architecture-overview",target:"_blank",rel:"noopener noreferrer",children:"Malloy Package Format"}),"."]}),v.jsxs("form",{onSubmit:h,id:"package-form",children:[v.jsx(go,{autoFocus:!0,required:!0,margin:"dense",id:"name",name:"name",label:"Package Name",type:"text",fullWidth:!0,variant:"standard"}),v.jsx(go,{id:"description",name:"description",label:"Description",multiline:!0,fullWidth:!0,rows:4,variant:"standard"}),v.jsx(go,{id:"location",name:"location",label:"Location",type:"text",placeholder:"E.g. s3://my-bucket/my-package.zip",fullWidth:!0,variant:"standard"})]})]}),v.jsxs(Ls,{children:[v.jsx(jr,{disabled:p.isPending,onClick:u,children:"Cancel"}),v.jsx(jr,{type:"submit",form:"package-form",loading:p.isPending,children:"Save Changes"})]})]}),v.jsx(Ds,{open:a!=="",autoHideDuration:6e3,onClose:()=>i(""),message:a})]})}function yAe({resourceUri:e,onCloseDialog:t}){const[n,r]=_.useState(!1),{apiClients:o}=Zn(),a=Is(),[i,l]=_.useState(""),u=()=>{r(!0)},d=()=>{r(!1),t()},{projectName:p,packageName:h}=gr(e),y=Fi({mutationFn:()=>o.packages.deletePackage(p,h),onSuccess(){d(),a.invalidateQueries({queryKey:["packages"]}),l("Package deleted successfully")},onError(g){l(g instanceof Error?g.message:"An unknown error occurred")}});return v.jsxs(We.Fragment,{children:[v.jsxs(Fl,{onClick:u,children:[v.jsx(Ub,{children:v.jsx(mA,{fontSize:"small"})}),v.jsx(xs,{children:"Delete"})]}),v.jsxs(Ps,{onClose:d,"aria-labelledby":"customized-dialog-title",open:n,children:[v.jsx(Fs,{sx:{m:0,p:2},id:"customized-dialog-title",children:"Delete Package"}),v.jsx($d,{"aria-label":"close",onClick:d,sx:g=>({position:"absolute",right:8,top:8,color:g.palette.grey[500]}),children:v.jsx(Bl,{})}),v.jsx(Ms,{dividers:!0,children:v.jsxs(Hm,{gutterBottom:!0,children:['Are you sure you want to delete "',h,'"? This action cannot be undone.']})}),v.jsxs(Ls,{children:[v.jsx(jr,{variant:"outlined",onClick:d,style:{borderColor:"#14b3cb",color:"#14b3cb"},children:"Cancel"}),v.jsx(jr,{variant:"contained",autoFocus:!0,onClick:()=>y.mutate(),color:"error",loading:y.isPending,children:"Delete"})]}),v.jsx(Ds,{open:i!=="",autoHideDuration:6e3,onClose:()=>l(""),message:i})]})]})}function bAe({package:e,resourceUri:t,onCloseDialog:n}){const[r,o]=_.useState(!1),{apiClients:a}=Zn(),i=Is(),[l,u]=_.useState(""),d=()=>{o(!0)},p=()=>{o(!1),n()},{packageName:h,projectName:y}=gr(t),g=Fi({async mutationFn(x){return a.packages.updatePackage(y,h,{name:h,description:x.description})},onSuccess(){p(),u("Package updated successfully"),i.invalidateQueries({queryKey:["packages",y]})},onError(x){u(x instanceof Error?x.message:"An unknown error occurred")}}),b=x=>{x.preventDefault();const T=new FormData(x.currentTarget).get("description")?.toString();g.mutate({description:T})};return v.jsxs(We.Fragment,{children:[v.jsxs(Fl,{onClick:d,children:[v.jsx(Ub,{children:v.jsx(gA,{fontSize:"small"})}),v.jsx(xs,{children:"Edit"})]}),v.jsxs(Ps,{open:r,onClose:p,children:[v.jsx(Fs,{children:"Edit Package"}),v.jsxs(Ms,{children:[v.jsxs(vf,{children:['Update the details for "',e.name,'".']}),v.jsxs("form",{onSubmit:b,id:"package-form",children:[v.jsx(go,{autoFocus:!0,required:!0,margin:"dense",id:"name",name:"name",label:"Package Name",disabled:!0,type:"text",fullWidth:!0,variant:"standard",defaultValue:e.name}),v.jsx(go,{id:"description",name:"description",label:"Description",multiline:!0,fullWidth:!0,rows:4,defaultValue:e.description,variant:"standard"})]})]}),v.jsxs(Ls,{children:[v.jsx(jr,{disabled:g.isPending,onClick:p,children:"Cancel"}),v.jsx(jr,{type:"submit",form:"package-form",loading:g.isPending,children:"Save Changes"})]})]}),v.jsx(Ds,{open:l!=="",autoHideDuration:6e3,onClose:()=>u(""),message:l})]})}const vAe=({package:e,resourceUri:t})=>{const{mutable:n}=Zn(),[r,o]=_.useState(null),a=!!r,i=u=>{o(u.currentTarget)},l=()=>{o(null)};return v.jsx(v.Fragment,{children:n&&v.jsxs(v.Fragment,{children:[v.jsx(ir,{onClick:u=>{u.stopPropagation(),i(u)},"aria-controls":a?"package-menu":void 0,"aria-haspopup":"true","aria-expanded":a?"true":void 0,children:v.jsx(_4,{fontSize:"small"})}),v.jsxs(zb,{id:"package-menu","aria-haspopup":"true","aria-expanded":a?"true":void 0,open:a,anchorEl:r,onClose:l,disableRestoreFocus:!0,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"},onClick:u=>{u.stopPropagation()},children:[v.jsx(bAe,{package:e,resourceUri:t,onCloseDialog:l}),v.jsx(yAe,{resourceUri:t,onCloseDialog:l})]})]})})};function EAe({onSelectPackage:e,resourceUri:t}){const{apiClients:n}=Zn(),{projectName:r}=gr(t),{data:o,isSuccess:a,isError:i,error:l}=Qo({queryKey:["packages",r],queryFn:()=>n.packages.listPackages(r)});return v.jsxs(v.Fragment,{children:[!a&&!i&&v.jsx(Wo,{text:"Fetching Packages..."}),a&&v.jsx(Cr,{container:!0,spacing:3,columns:12,children:o.data.sort((u,d)=>u.name.localeCompare(d.name)).map(u=>{const d=$A({projectName:r,packageName:u.name});return v.jsx(Cr,{size:{xs:12,sm:12,md:12,lg:4},children:v.jsx(Vl,{sx:{cursor:"pointer",transition:"all 0.2s ease-in-out",paddingTop:"8px","&:hover":{boxShadow:"0 2px 6px rgba(0, 0, 0, 0.08)",transform:"translateY(-1px)"}},onClick:p=>{e(u.name,p)},children:v.jsxs(Gl,{children:[v.jsxs(Rt,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{marginBottom:"8px"},children:[v.jsx(st,{variant:"overline",sx:{fontSize:"12px",fontWeight:"600",color:"primary.main",textTransform:"uppercase",letterSpacing:"0.5px"},children:u.name}),v.jsx(vAe,{package:u,resourceUri:d})]}),v.jsx(As,{sx:{mb:2}}),v.jsx(Rt,{sx:{maxHeight:"120px",overflowY:"auto",mt:2},children:v.jsx(st,{variant:"body2",children:u.description})})]})})},u.name)})}),i&&v.jsx(Ko,{error:l,context:`${r} > Packages`})]})}function j_e({onSelectPackage:e,resourceUri:t}){const{mutable:n}=Zn(),{projectName:r}=gr(t);return v.jsx(v.Fragment,{children:v.jsxs(jse,{children:[v.jsxs(Rt,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2,children:[v.jsxs(st,{variant:"h6",children:[r," packages"]}),n&&v.jsx(gAe,{resourceUri:t})]}),v.jsxs(Cr,{container:!0,spacing:3,columns:12,children:[v.jsx(Cr,{size:{xs:12,md:12},children:v.jsx(EAe,{onSelectPackage:e,resourceUri:t})}),v.jsx(Cr,{size:{xs:12,md:12},children:v.jsx(mAe,{resourceUri:t})})]})]})})}const xAe=Nn(v.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M8 17c-.55 0-1-.45-1-1v-3c0-.55.45-1 1-1s1 .45 1 1v3c0 .55-.45 1-1 1m4 0c-.55 0-1-.45-1-1v-1c0-.55.45-1 1-1s1 .45 1 1v1c0 .55-.45 1-1 1m0-5c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m4 5c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v8c0 .55-.45 1-1 1"})),SAe=Nn(v.jsx("path",{d:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42s1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1"})),H3=Nn(v.jsx("path",{d:"m19.46 8 .79-1.75L22 5.46c.39-.18.39-.73 0-.91l-1.75-.79L19.46 2c-.18-.39-.73-.39-.91 0l-.79 1.75-1.76.79c-.39.18-.39.73 0 .91l1.75.79.79 1.76c.18.39.74.39.92 0M11.5 9.5 9.91 6c-.35-.78-1.47-.78-1.82 0L6.5 9.5 3 11.09c-.78.36-.78 1.47 0 1.82l3.5 1.59L8.09 18c.36.78 1.47.78 1.82 0l1.59-3.5 3.5-1.59c.78-.36.78-1.47 0-1.82zm7.04 6.5-.79 1.75-1.75.79c-.39.18-.39.73 0 .91l1.75.79.79 1.76c.18.39.73.39.91 0l.79-1.75 1.76-.79c.39-.18.39-.73 0-.91l-1.75-.79-.79-1.76c-.18-.39-.74-.39-.92 0"})),TAe=Nn(v.jsx("path",{d:"M8.7 15.9 4.8 12l3.9-3.9c.39-.39.39-1.01 0-1.4a.984.984 0 0 0-1.4 0l-4.59 4.59c-.39.39-.39 1.02 0 1.41l4.59 4.6c.39.39 1.01.39 1.4 0s.39-1.01 0-1.4m6.6 0 3.9-3.9-3.9-3.9a.984.984 0 0 1 0-1.4c.39-.39 1.01-.39 1.4 0l4.59 4.59c.39.39.39 1.02 0 1.41l-4.59 4.6c-.39.39-1.01.39-1.4 0a.984.984 0 0 1 0-1.4"})),CAe=Nn(v.jsx("path",{d:"M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1 1.1-.49 1.1-1.1-.49-1.1-1.1-1.1M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m2.19 12.19L6 18l3.81-8.19L18 6z"})),AAe=Nn([v.jsx("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43"},"0"),v.jsx("path",{d:"M13.21 3c-3.84-.11-7 2.87-7.19 6.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v2c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-3.68c2.44-1.16 4.1-3.68 4-6.58-.14-3.62-3.18-6.63-6.79-6.74M16 10c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39"},"1")]),V3=Nn(v.jsx("path",{d:"M4 20h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2m0-3h2v2H4zM2 6c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2m4 1H4V5h2zm-2 7h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2m0-3h2v2H4z"})),z7=e=>{if(!e)return"Explore semantic models, run queries, and build dashboards";const t=e.replace(/^#+\s+/gm,"").replace(/\*\*(.*?)\*\*/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/`([^`]+)`/g,"$1").trim(),n=t.split(/\n\s*\n/)[1]||t;if(n.length<=120)return n;const r=n.substring(0,120).split(" ");return r.pop(),r.join(" ")+"..."},$7=(e,t)=>{const n=(e.readme||void 0)?.split(`
444
444
  `)??[];return n.length===0&&(n.push(`# ${e.name}`),n.push("")),(e.readme?.length??0)>0&&t?n.splice(2,1,t):t&&n.push(t),n.join(`
445
- `)};function _Ae(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:a}=e,i=Av();_.useEffect(()=>{if(!o)return;function T(E){E.defaultPrevented||E.key==="Escape"&&r?.(E,"escapeKeyDown")}return document.addEventListener("keydown",T),()=>{document.removeEventListener("keydown",T)}},[o,r]);const l=Mr((T,E)=>{r?.(T,E)}),u=Mr(T=>{!r||T==null||i.start(T,()=>{l(null,"timeout")})});_.useEffect(()=>(o&&u(t),i.clear),[o,t,u,i]);const d=T=>{r?.(T,"clickaway")},p=i.clear,h=_.useCallback(()=>{t!=null&&u(a??t*.5)},[t,a,u]),y=T=>E=>{const A=T.onBlur;A?.(E),h()},g=T=>E=>{const A=T.onFocus;A?.(E),p()},b=T=>E=>{const A=T.onMouseEnter;A?.(E),p()},x=T=>E=>{const A=T.onMouseLeave;A?.(E),h()};return _.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",h),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",p)}},[n,o,h,p]),{getRootProps:(T={})=>{const E={...xo(e),...xo(T)};return{role:"presentation",...T,...E,onBlur:y(E),onFocus:g(E),onMouseEnter:b(E),onMouseLeave:x(E)}},onClickAway:d}}function G3(e){return e.substring(2).toLowerCase()}function kAe(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function wAe(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,i=_.useRef(!1),l=_.useRef(null),u=_.useRef(!1),d=_.useRef(!1);_.useEffect(()=>(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const p=sr(cf(t),l),h=Mr(b=>{const x=d.current;d.current=!1;const T=oo(l.current);if(!u.current||!l.current||"clientX"in b&&kAe(b,T))return;if(i.current){i.current=!1;return}let E;b.composedPath?E=b.composedPath().includes(l.current):E=!T.documentElement.contains(b.target)||l.current.contains(b.target),!E&&(n||!x)&&o(b)}),y=b=>x=>{d.current=!0;const T=t.props[b];T&&T(x)},g={ref:p};return a!==!1&&(g[a]=y(a)),_.useEffect(()=>{if(a!==!1){const b=G3(a),x=oo(l.current),T=()=>{i.current=!0};return x.addEventListener(b,h),x.addEventListener("touchmove",T),()=>{x.removeEventListener(b,h),x.removeEventListener("touchmove",T)}}},[h,a]),r!==!1&&(g[r]=y(r)),_.useEffect(()=>{if(r!==!1){const b=G3(r),x=oo(l.current);return x.addEventListener(b,h),()=>{x.removeEventListener(b,h)}}},[h,r]),_.cloneElement(t,g)}function RAe(e){return Xt("MuiSnackbarContent",e)}Ht("MuiSnackbarContent",["root","message","action"]);const DAe=e=>{const{classes:t}=e;return Qt({root:["root"],action:["action"],message:["message"]},RAe,t)},IAe=ze(uf,{name:"MuiSnackbarContent",slot:"Root"})(fn(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(ET(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:ET(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),OAe=ze("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),NAe=ze("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),PAe=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiSnackbarContent"}),{action:r,className:o,message:a,role:i="alert",...l}=n,u=n,d=DAe(u);return v.jsxs(IAe,{role:i,elevation:6,className:St(d.root,o),ownerState:u,ref:t,...l,children:[v.jsx(OAe,{className:d.message,ownerState:u,children:a}),r?v.jsx(NAe,{className:d.action,ownerState:u,children:r}):null]})});function LAe(e){return Xt("MuiSnackbar",e)}Ht("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const MAe=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Qe(n.vertical)}${Qe(n.horizontal)}`]};return Qt(r,LAe,t)},FAe=ze("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Qe(n.anchorOrigin.vertical)}${Qe(n.anchorOrigin.horizontal)}`]]}})(fn(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),jAe=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiSnackbar"}),r=of(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:i,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:u=null,children:d,className:p,ClickAwayListenerProps:h,ContentProps:y,disableWindowBlurListener:g=!1,message:b,onBlur:x,onClose:T,onFocus:E,onMouseEnter:A,onMouseLeave:C,open:D,resumeHideDuration:I,slots:O={},slotProps:F={},TransitionComponent:H,transitionDuration:z=o,TransitionProps:{onEnter:P,onExited:$,...k}={},...M}=n,B={...n,anchorOrigin:{vertical:i,horizontal:l},autoHideDuration:u,disableWindowBlurListener:g,TransitionComponent:H,transitionDuration:z},V=MAe(B),{getRootProps:j,onClickAway:q}=_Ae({...B}),[Q,te]=_.useState(!0),N=He=>{te(!0),$&&$(He)},Y=(He,Oe)=>{te(!1),P&&P(He,Oe)},K={slots:{transition:H,...O},slotProps:{content:y,clickAwayListener:h,transition:k,...F}},[L,ee]=vn("root",{ref:t,className:[V.root,p],elementType:FAe,getSlotProps:j,externalForwardedProps:{...K,...M},ownerState:B}),[ae,{ownerState:J,...me}]=vn("clickAwayListener",{elementType:wAe,externalForwardedProps:K,getSlotProps:He=>({onClickAway:(...Oe)=>{const we=Oe[0];He.onClickAway?.(...Oe),!we?.defaultMuiPrevented&&q(...Oe)}}),ownerState:B}),[ce,Ae]=vn("content",{elementType:PAe,shouldForwardComponentProp:!0,externalForwardedProps:K,additionalProps:{message:b,action:a},ownerState:B}),[Se,Te]=vn("transition",{elementType:sb,externalForwardedProps:K,getSlotProps:He=>({onEnter:(...Oe)=>{He.onEnter?.(...Oe),Y(...Oe)},onExited:(...Oe)=>{He.onExited?.(...Oe),N(...Oe)}}),additionalProps:{appear:!0,in:D,timeout:z,direction:i==="top"?"down":"up"},ownerState:B});return!D&&Q?null:v.jsx(ae,{...me,...O.clickAwayListener&&{ownerState:J},children:v.jsx(L,{...ee,children:v.jsx(Se,{...Te,children:d||v.jsx(ce,{...Ae})})})})});function BAe(){const[e,t]=_.useState(!1),{apiClients:n}=Zn(),[r,o]=_.useState(""),a=()=>{t(!0)},i=()=>{t(!1)},l=Is(),u=Fi({async mutationFn(p){return n.projects.createProject({name:p.name,readme:$7({name:p.name,readme:""},p.description)})},onSuccess(){i(),l.invalidateQueries({queryKey:["projects"]}),o("Project created successfully")},onError(p){o(p instanceof Error?p.message:"An unknown error occurred")}}),d=async p=>{p.preventDefault();const h=new FormData(p.currentTarget),y=h.get("name")?.toString(),g=h.get("description")?.toString();if(!y)throw new Error("Name is required");u.mutate({name:y,description:g})};return v.jsxs(We.Fragment,{children:[v.jsx(jr,{variant:"contained",onClick:a,startIcon:v.jsx(AJ,{}),sx:{mt:2,color:"white"},children:"Create New Project"}),v.jsxs(Ps,{open:e,onClose:i,children:[v.jsx(Fs,{children:"Create New Project"}),v.jsxs(Ms,{children:[v.jsx(vf,{children:"Add a new project to start exploring semantic models and analyzing data."}),v.jsxs("form",{onSubmit:d,id:"project-form",children:[v.jsx(go,{autoFocus:!0,required:!0,margin:"dense",id:"name",name:"name",label:"Project Name",type:"text",fullWidth:!0,variant:"standard"}),v.jsx(go,{margin:"dense",id:"description",name:"description",label:"Project Description",placeholder:"Explore semantic models, run queries, and build dashboards",type:"text",fullWidth:!0,variant:"standard"})]})]}),v.jsxs(Ls,{children:[v.jsx(jr,{disabled:u.isPending,onClick:i,children:"Cancel"}),v.jsx(jr,{type:"submit",form:"project-form",loading:u.isPending,children:"Create Project"})]})]}),v.jsx(jAe,{open:r!=="",autoHideDuration:6e3,onClose:()=>o(""),message:r})]})}function UAe({project:e,onCloseDialog:t}){const[n,r]=_.useState(!1),{apiClients:o}=Zn(),a=Is(),[i,l]=_.useState(""),u=()=>{r(!0)},d=()=>{r(!1),t()},p=Fi({mutationFn:()=>o.projects.deleteProject(e.name),onSuccess(){d(),a.invalidateQueries({queryKey:["projects"]}),l("Project deleted successfully")},onError(h){l(h instanceof Error?h.message:"An unknown error occurred")}});return v.jsxs(We.Fragment,{children:[v.jsxs(Fl,{onClick:u,children:[v.jsx(Ub,{children:v.jsx(mA,{fontSize:"small"})}),v.jsx(xs,{children:"Delete"})]}),v.jsxs(Ps,{onClose:d,"aria-labelledby":"customized-dialog-title",open:n,children:[v.jsx(Fs,{sx:{m:0,p:2},id:"customized-dialog-title",children:"Delete Project"}),v.jsx($d,{"aria-label":"close",onClick:d,sx:h=>({position:"absolute",right:8,top:8,color:h.palette.grey[500]}),children:v.jsx(Bl,{})}),v.jsx(Ms,{dividers:!0,children:v.jsxs(Hm,{gutterBottom:!0,children:['Are you sure you want to delete "',e.name,'"? This action cannot be undone.']})}),v.jsxs(Ls,{children:[v.jsx(jr,{variant:"outlined",onClick:d,style:{borderColor:"#14b3cb",color:"#14b3cb"},children:"Cancel"}),v.jsx(jr,{loading:p.isPending,variant:"contained",autoFocus:!0,onClick:()=>p.mutate(),color:"error",children:"Delete"})]}),v.jsx(Ds,{open:i!=="",autoHideDuration:6e3,onClose:()=>l(""),message:i})]})]})}function zAe({project:e,onCloseDialog:t}){const[n,r]=_.useState(!1),{apiClients:o}=Zn(),a=Is(),[i,l]=_.useState(""),u=()=>{r(!0)},d=()=>{r(!1),t()},p=Fi({async mutationFn(y){return o.projects.updateProject(e.name,{name:e.name,readme:$7({name:e.name,readme:e.readme},y.description)})},onSuccess(){d(),a.invalidateQueries({queryKey:["projects"]}),l("Project updated successfully")},onError(y){l(y instanceof Error?y.message:"An unknown error occurred")}}),h=y=>{y.preventDefault();const g=new FormData(y.currentTarget).get("description")?.toString();p.mutate({description:g})};return v.jsxs(We.Fragment,{children:[v.jsxs(Fl,{onClick:u,children:[v.jsx(Ub,{children:v.jsx(gA,{fontSize:"small"})}),v.jsx(xs,{children:"Edit"})]}),v.jsxs(Ps,{open:n,onClose:d,children:[v.jsx(Fs,{children:"Edit Project"}),v.jsxs(Ms,{children:[v.jsx(vf,{children:"Add a new project to start exploring semantic models and analyzing data."}),v.jsxs("form",{onSubmit:h,id:"project-form",children:[v.jsx(go,{autoFocus:!0,required:!0,margin:"dense",id:"name",name:"name",label:"Project Name",disabled:!0,type:"text",fullWidth:!0,variant:"standard",defaultValue:e.name}),v.jsx(go,{margin:"dense",id:"description",name:"description",label:"Project Description",type:"text",fullWidth:!0,variant:"standard",defaultValue:z7(e.readme)})]})]}),v.jsxs(Ls,{children:[v.jsx(jr,{disabled:p.isPending,onClick:d,children:"Cancel"}),v.jsx(jr,{type:"submit",form:"project-form",loading:p.isPending,children:"Save Changes"})]})]}),v.jsx(Ds,{open:i!=="",autoHideDuration:6e3,onClose:()=>l(""),message:i})]})}function B_e({onClickProject:e}){const{apiClients:t,mutable:n}=Zn(),{data:r,isSuccess:o,isError:a,error:i}=Qo({queryKey:["projects"],queryFn:()=>t.projects.listProjects()});return a?v.jsx(Ko,{error:i,context:"Projects List"}):o?v.jsxs(gY,{maxWidth:"lg",sx:{py:4},children:[v.jsxs(Rt,{sx:{textAlign:"center",mb:6},children:[v.jsxs(Zr,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(H3,{sx:{fontSize:32,color:"primary.main"}}),v.jsx(st,{variant:"h3",component:"h1",fontWeight:700,children:"Publisher"})]}),v.jsx(st,{variant:"h5",color:"text.secondary",sx:{mb:3,maxWidth:600,mx:"auto"},children:"The open-source semantic model server for the Malloy data language"}),v.jsx(st,{variant:"body1",color:"text.secondary",sx:{maxWidth:800,mx:"auto"},children:"Define semantic models once — and use them everywhere. Publisher serves Malloy models through clean APIs, enabling consistent, interpretable, and AI-ready data access for tools, applications, and agents."})]}),v.jsxs(Cr,{container:!0,spacing:3,sx:{mb:6},children:[v.jsx(Cr,{size:{xs:12,md:4},children:v.jsx(gd,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#ad-hoc-data-analysis","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:v.jsxs(yd,{sx:{p:3},children:[v.jsxs(Zr,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(xAe,{sx:{color:"info.main",fontSize:28}}),v.jsx(st,{variant:"h6",fontWeight:600,children:"Ad Hoc Analysis"})]}),v.jsx(st,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Use Explorer, a visual query builder that allows analysts to browse semantic sources, build queries, and run nested logic — all without writing code."}),v.jsx(Gy,{label:"No-code",size:"small",color:"primary",variant:"outlined"})]})})}),v.jsx(Cr,{size:{xs:12,md:4},children:v.jsx(gd,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#notebook-based-dashboards","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:v.jsxs(yd,{sx:{p:3},children:[v.jsxs(Zr,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(TAe,{sx:{color:"warning.main",fontSize:28}}),v.jsx(st,{variant:"h6",fontWeight:600,children:"Notebook Dashboards"})]}),v.jsx(st,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Create shareable, code-first dashboards using Malloy notebooks. Include text, charts, and reusable views — all versioned alongside your models."}),v.jsx(Gy,{label:"Versioned",size:"small",color:"warning",variant:"outlined"})]})})}),v.jsx(Cr,{size:{xs:12,md:4},children:v.jsx(gd,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#mcp-based-ai-data-agents","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:v.jsxs(yd,{sx:{p:3},children:[v.jsxs(Zr,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(AAe,{sx:{color:"success.main",fontSize:28}}),v.jsx(st,{variant:"h6",fontWeight:600,children:"AI Data Agents"})]}),v.jsx(st,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Expose your semantic models via the Model Context Protocol (MCP), enabling AI agents to discover sources and ask well-formed questions."}),v.jsx(Gy,{label:"AI-Ready",size:"small",color:"success",variant:"outlined"})]})})})]}),v.jsx(As,{sx:{my:4}}),r.data.length>0?v.jsxs(v.Fragment,{children:[v.jsxs(Rt,{sx:{textAlign:"center",mb:4},children:[v.jsxs(Zr,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(V3,{sx:{color:"primary.main",fontSize:24}}),v.jsx(st,{variant:"h4",fontWeight:600,children:"Select a Project"})]}),v.jsx(st,{variant:"body1",color:"text.secondary",children:"Choose a project to explore its semantic models and start analyzing your data"}),n&&v.jsx(BAe,{})]}),v.jsx(Cr,{container:!0,spacing:3,justifyContent:"center",children:r.data.map(l=>v.jsx(Cr,{size:{xs:12,sm:6,md:4},children:v.jsx($Ae,{project:l,onClickProject:e})},l.name))})]}):v.jsxs(Rt,{sx:{textAlign:"center",mb:4},children:[v.jsxs(Zr,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(V3,{sx:{color:"primary.main",fontSize:24}}),v.jsx(st,{variant:"h4",fontWeight:600,children:"Get Started"})]}),v.jsx(st,{variant:"body1",color:"text.secondary",sx:{mb:3},children:"No projects found. Create your first Malloy project to start exploring semantic models and building data experiences."}),v.jsx(ti,{variant:"contained",size:"large",color:"primary",startIcon:v.jsx(H3,{}),href:"https://github.com/malloydata/publisher/blob/main/README.md#server-configuration",target:"_blank",rel:"noopener noreferrer",children:"Learn How to Create Models"})]}),v.jsx(Rt,{sx:{textAlign:"center",mt:6,pt:4,borderTop:1,borderColor:"divider"},children:v.jsxs(st,{variant:"body2",color:"text.secondary",children:["Publisher is built on fully open infrastructure and designed for the AI era. Join the"," ",v.jsx("a",{href:"https://join.slack.com/t/malloy-community/shared_invite/zt-1kgfwgi5g-CrsdaRqs81QY67QW0~t_uw",target:"_blank",rel:"noopener noreferrer",style:{color:"primary.main",textDecoration:"underline"},children:"Malloy Slack community"})," ","to ask questions, share ideas, and contribute to the future of data modeling."]})})]}):v.jsx(Wo,{text:"Loading projects..."})}function $Ae({project:e,onClickProject:t}){const{mutable:n}=Zn(),[r,o]=_.useState(null),a=!!r,i=u=>{o(u.currentTarget)},l=()=>{o(null)};return v.jsx("div",{children:v.jsxs(gd,{variant:"outlined",sx:{height:"100%",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2,borderColor:"primary.main"}},children:[n&&v.jsxs(v.Fragment,{children:[v.jsx(ir,{"aria-controls":a?"project-menu":void 0,"aria-haspopup":"true","aria-expanded":a?"true":void 0,onClick:i,sx:{position:"absolute",top:8,right:8},children:v.jsx(_4,{fontSize:"small"})}),v.jsxs(zb,{id:"project-menu","aria-haspopup":"true","aria-expanded":a?"true":void 0,open:a,anchorEl:r,onClose:l,disableRestoreFocus:!0,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"},children:[v.jsx(zAe,{project:e,onCloseDialog:l}),v.jsx(UAe,{project:e,onCloseDialog:l})]})]}),v.jsxs(yd,{sx:{p:3,textAlign:"center"},children:[v.jsx(CAe,{sx:{fontSize:48,color:"primary.main",mb:2}}),v.jsx(st,{variant:"h6",fontWeight:600,gutterBottom:!0,children:e.name}),v.jsx(st,{variant:"body2",color:"text.secondary",sx:{mb:2,minHeight:"60px"},children:z7(e.readme)}),v.jsx(ti,{variant:"contained",color:"secondary",endIcon:v.jsx(SAe,{}),fullWidth:!0,onClick:u=>t(`/${e.name}/`,u),children:"Open Project"})]})]})})}const HAe=async e=>{if(typeof window>"u")throw new Error("MalloyRenderer can only be used in browser environment");const{MalloyRenderer:t}=await X(async()=>{const{MalloyRenderer:n}=await import("./index.umd-DaPh4mA_.js").then(r=>r.i);return{MalloyRenderer:n}},[]);return new t({onClick:e,onError:n=>{console.error("Error rendering visualization:",typeof n,n)}}).createViz()};function VAe({result:e,height:t,isFillElement:n,onSizeChange:r,onDrill:o}){const a=_.useRef(null),[i,l]=_.useState(!1);return _.useLayoutEffect(()=>{if(!a.current||!e)return;let u=!0;const d=a.current;for(;d.firstChild;)d.removeChild(d.firstChild);return HAe(o).then(p=>{if(!u)return;const h=new MutationObserver(y=>{for(const g of y)if(g.type==="childList"&&g.addedNodes.length>0&&Array.from(g.addedNodes).some(b=>b.nodeType===Node.ELEMENT_NODE)){h.disconnect(),setTimeout(()=>{u&&l(!0)},50);break}});h.observe(d,{childList:!0,subtree:!0,characterData:!0});try{p.setResult(JSON.parse(e)),p.render(d)}catch(y){console.error("Error rendering visualization:",y),h.disconnect(),u&&l(!0)}}).catch(p=>{console.error("Failed to create renderer:",p),u&&l(!0)}),()=>{u=!1}},[e,o]),_.useEffect(()=>{if(!a.current||!i)return;const u=a.current,d=()=>{if(u){const y=u.offsetHeight;y>0?r&&r(y):n&&u.firstChild&&(u.firstChild.offsetHeight==0?n(!0):n(!1))}},p=setTimeout(d,100);let h=null;return h=new MutationObserver(d),h.observe(u,{childList:!0,subtree:!0,attributes:!0}),()=>{clearTimeout(p),h?.disconnect()}},[r,e,n,i]),v.jsx("div",{ref:a,style:{width:"100%",height:t?`${t}px`:"100%"}})}function GAe(e){return typeof window>"u"?v.jsx("div",{style:{width:"100%",height:e.height?`${e.height}px`:"100%",display:"flex",alignItems:"center",justifyContent:"center",color:"#666"},children:"Loading..."}):v.jsx(_.Suspense,{fallback:v.jsx("div",{style:{width:"100%",height:e.height?`${e.height}px`:"100%",display:"flex",alignItems:"center",justifyContent:"center",color:"#666"},children:"Loading visualization..."}),children:v.jsx(VAe,{...e})})}const H7=Object.freeze(Object.defineProperty({__proto__:null,default:GAe},Symbol.toStringTag,{value:"Module"}));kt.defaults.baseURL="IfYouAreSeeingThis_baseURL_IsNotSet";const dr={primary:{main:"#14b3cb",light:"#22d3ee",dark:"#0e7490",50:"#ecfeff",100:"#cffafe",500:"#14b3cb",600:"#0891b2",700:"#0e7490"},secondary:{main:"#fbbb04",light:"#fde047",dark:"#eab308",50:"#fefce8",100:"#fef3c7",500:"#fbbb04",600:"#eab308",700:"#ca8a04"},grey:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},success:{main:"#059669",light:"#10b981",dark:"#047857"},warning:{main:"#d97706",light:"#f59e0b",dark:"#b45309"},error:{main:"#dc2626",light:"#ef4444",dark:"#b91c1c"},info:{main:"#0891b2",light:"#06b6d4",dark:"#0e7490"}},qAe=Mb({palette:{mode:"light",primary:dr.primary,secondary:dr.secondary,grey:dr.grey,success:dr.success,warning:dr.warning,error:dr.error,info:dr.info,background:{default:"#ffffff",paper:"#ffffff"},text:{primary:dr.grey[900],secondary:dr.grey[600]},divider:dr.grey[200]},typography:{fontFamily:'"Inter", "Roboto", "Helvetica", "Arial", sans-serif',h1:{fontWeight:700,letterSpacing:"-0.025em"},h2:{fontWeight:700,letterSpacing:"-0.025em"},h3:{fontWeight:600,letterSpacing:"-0.025em"},h4:{fontWeight:600,letterSpacing:"-0.025em"},h5:{fontWeight:600,letterSpacing:"-0.025em"},h6:{fontWeight:600,letterSpacing:"-0.025em"},subtitle1:{fontWeight:500,letterSpacing:"-0.025em"},subtitle2:{fontWeight:500,letterSpacing:"-0.025em"},body1:{letterSpacing:"-0.025em"},body2:{letterSpacing:"-0.025em"},button:{fontWeight:500,letterSpacing:"-0.025em",textTransform:"none"}},shape:{borderRadius:4},components:{MuiCssBaseline:{styleOverrides:{body:{scrollbarWidth:"thin",scrollbarColor:`${dr.grey[300]} ${dr.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:dr.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:dr.grey[300],borderRadius:"4px","&:hover":{background:dr.grey[400]}},"&::-webkit-scrollbar-corner":{background:dr.grey[100]}},"*":{scrollbarWidth:"thin",scrollbarColor:`${dr.grey[300]} ${dr.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:dr.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:dr.grey[300],borderRadius:"4px","&:hover":{background:dr.grey[400]}},"&::-webkit-scrollbar-corner":{background:dr.grey[100]}},"div[data-radix-popper-content-wrapper]":{zIndex:"1300 !important"}}},MuiButton:{styleOverrides:{root:{borderRadius:4,textTransform:"none",fontWeight:500,boxShadow:"none","&:hover":{boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)"}},contained:{"&:hover":{boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}}}},MuiCard:{styleOverrides:{root:{borderRadius:4,boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)",border:"1px solid",borderColor:"rgba(0, 0, 0, 0.05)"}}},MuiChip:{styleOverrides:{root:{borderRadius:4,fontWeight:500}}},MuiTextField:{styleOverrides:{root:{"& .MuiOutlinedInput-root":{borderRadius:4}}}},MuiDialog:{styleOverrides:{paper:{borderRadius:4,boxShadow:"0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 10px 10px -5px rgba(0, 0, 0, 0.04)"}}},MuiMenu:{styleOverrides:{paper:{borderRadius:4,boxShadow:"0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -2px rgba(0, 0, 0, 0.05)",border:"1px solid rgba(0, 0, 0, 0.05)"}}},MuiBreadcrumbs:{styleOverrides:{root:{"& .MuiBreadcrumbs-separator":{margin:"0 6px",color:dr.grey[400]}}}},MuiDivider:{styleOverrides:{root:{margin:"4px 0",borderColor:dr.grey[200]}},defaultProps:{sx:{my:1}}}}}),WAe=_.lazy(()=>X(()=>import("./HomePage-DXKA9tWd.js"),[])),YAe=_.lazy(()=>X(()=>import("./MainPage-BdYxYmkS.js"),[])),KAe=_.lazy(()=>X(()=>import("./ModelPage-mQttYUXZ.js"),[])),QAe=_.lazy(()=>X(()=>import("./PackagePage-8dgNIkwK.js"),[])),XAe=_.lazy(()=>X(()=>import("./ProjectPage-D3lTBcOF.js"),[])),ZAe=_.lazy(()=>X(()=>import("./RouteError-B1FrgvdL.js"),[])),JAe=_.lazy(()=>X(()=>import("./WorkbookPage-uhPZOv8J.js"),[])),e_e=(e="/",t,n)=>rz([{path:e,element:v.jsx(TJ,{children:v.jsx(RSe,{workbookStorage:t,children:v.jsxs(dG,{theme:qAe,children:[v.jsx(xY,{}),v.jsx(YAe,{headerProps:n})]})})}),errorElement:v.jsx(ZAe,{}),children:[{path:"",element:v.jsx(WAe,{})},{path:":projectName",element:v.jsx(XAe,{})},{path:":projectName/:packageName",element:v.jsx(QAe,{})},{path:":projectName/:packageName/*",element:v.jsx(KAe,{})},{path:":projectName/:packageName/workbook/:workspace/:workbookPath",element:v.jsx(JAe,{})}]}]),t_e=e_e("/",new LSe,void 0);oB.createRoot(document.getElementById("root")).render(v.jsx(_.StrictMode,{children:v.jsx(mz,{router:t_e})}));export{gY as A,$c as B,Gy as C,$A as D,L_e as E,ffe as F,j_e as G,_U as H,ir as I,M_e as J,r_e as K,We as L,zb as M,vl as N,a_e as O,B_e as P,pm as Q,h0 as R,Zr as S,st as T,n_e as U,q3 as V,F_e as _,Bi as a,Ft as b,Bt as c,jt as d,dt as e,Je as f,RH as g,Ut as h,kl as i,v as j,Oi as k,$l as l,xn as m,LS as n,CL as o,Pi as p,NSe as q,_ as r,Ke as s,o_e as t,jC as u,Rt as v,f5 as w,zl as x,Fl as y,ti as z};
445
+ `)};function _Ae(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:a}=e,i=Av();_.useEffect(()=>{if(!o)return;function T(E){E.defaultPrevented||E.key==="Escape"&&r?.(E,"escapeKeyDown")}return document.addEventListener("keydown",T),()=>{document.removeEventListener("keydown",T)}},[o,r]);const l=Mr((T,E)=>{r?.(T,E)}),u=Mr(T=>{!r||T==null||i.start(T,()=>{l(null,"timeout")})});_.useEffect(()=>(o&&u(t),i.clear),[o,t,u,i]);const d=T=>{r?.(T,"clickaway")},p=i.clear,h=_.useCallback(()=>{t!=null&&u(a??t*.5)},[t,a,u]),y=T=>E=>{const A=T.onBlur;A?.(E),h()},g=T=>E=>{const A=T.onFocus;A?.(E),p()},b=T=>E=>{const A=T.onMouseEnter;A?.(E),p()},x=T=>E=>{const A=T.onMouseLeave;A?.(E),h()};return _.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",h),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",p)}},[n,o,h,p]),{getRootProps:(T={})=>{const E={...xo(e),...xo(T)};return{role:"presentation",...T,...E,onBlur:y(E),onFocus:g(E),onMouseEnter:b(E),onMouseLeave:x(E)}},onClickAway:d}}function G3(e){return e.substring(2).toLowerCase()}function kAe(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function wAe(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,i=_.useRef(!1),l=_.useRef(null),u=_.useRef(!1),d=_.useRef(!1);_.useEffect(()=>(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const p=sr(cf(t),l),h=Mr(b=>{const x=d.current;d.current=!1;const T=oo(l.current);if(!u.current||!l.current||"clientX"in b&&kAe(b,T))return;if(i.current){i.current=!1;return}let E;b.composedPath?E=b.composedPath().includes(l.current):E=!T.documentElement.contains(b.target)||l.current.contains(b.target),!E&&(n||!x)&&o(b)}),y=b=>x=>{d.current=!0;const T=t.props[b];T&&T(x)},g={ref:p};return a!==!1&&(g[a]=y(a)),_.useEffect(()=>{if(a!==!1){const b=G3(a),x=oo(l.current),T=()=>{i.current=!0};return x.addEventListener(b,h),x.addEventListener("touchmove",T),()=>{x.removeEventListener(b,h),x.removeEventListener("touchmove",T)}}},[h,a]),r!==!1&&(g[r]=y(r)),_.useEffect(()=>{if(r!==!1){const b=G3(r),x=oo(l.current);return x.addEventListener(b,h),()=>{x.removeEventListener(b,h)}}},[h,r]),_.cloneElement(t,g)}function RAe(e){return Xt("MuiSnackbarContent",e)}Ht("MuiSnackbarContent",["root","message","action"]);const DAe=e=>{const{classes:t}=e;return Qt({root:["root"],action:["action"],message:["message"]},RAe,t)},IAe=ze(uf,{name:"MuiSnackbarContent",slot:"Root"})(fn(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(ET(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:ET(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),OAe=ze("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),NAe=ze("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),PAe=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiSnackbarContent"}),{action:r,className:o,message:a,role:i="alert",...l}=n,u=n,d=DAe(u);return v.jsxs(IAe,{role:i,elevation:6,className:St(d.root,o),ownerState:u,ref:t,...l,children:[v.jsx(OAe,{className:d.message,ownerState:u,children:a}),r?v.jsx(NAe,{className:d.action,ownerState:u,children:r}):null]})});function LAe(e){return Xt("MuiSnackbar",e)}Ht("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const MAe=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Qe(n.vertical)}${Qe(n.horizontal)}`]};return Qt(r,LAe,t)},FAe=ze("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Qe(n.anchorOrigin.vertical)}${Qe(n.anchorOrigin.horizontal)}`]]}})(fn(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),jAe=_.forwardRef(function(e,t){const n=on({props:e,name:"MuiSnackbar"}),r=of(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:i,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:u=null,children:d,className:p,ClickAwayListenerProps:h,ContentProps:y,disableWindowBlurListener:g=!1,message:b,onBlur:x,onClose:T,onFocus:E,onMouseEnter:A,onMouseLeave:C,open:D,resumeHideDuration:I,slots:O={},slotProps:F={},TransitionComponent:H,transitionDuration:z=o,TransitionProps:{onEnter:P,onExited:$,...k}={},...M}=n,B={...n,anchorOrigin:{vertical:i,horizontal:l},autoHideDuration:u,disableWindowBlurListener:g,TransitionComponent:H,transitionDuration:z},V=MAe(B),{getRootProps:j,onClickAway:q}=_Ae({...B}),[Q,te]=_.useState(!0),N=He=>{te(!0),$&&$(He)},Y=(He,Oe)=>{te(!1),P&&P(He,Oe)},K={slots:{transition:H,...O},slotProps:{content:y,clickAwayListener:h,transition:k,...F}},[L,ee]=vn("root",{ref:t,className:[V.root,p],elementType:FAe,getSlotProps:j,externalForwardedProps:{...K,...M},ownerState:B}),[ae,{ownerState:J,...me}]=vn("clickAwayListener",{elementType:wAe,externalForwardedProps:K,getSlotProps:He=>({onClickAway:(...Oe)=>{const we=Oe[0];He.onClickAway?.(...Oe),!we?.defaultMuiPrevented&&q(...Oe)}}),ownerState:B}),[ce,Ae]=vn("content",{elementType:PAe,shouldForwardComponentProp:!0,externalForwardedProps:K,additionalProps:{message:b,action:a},ownerState:B}),[Se,Te]=vn("transition",{elementType:sb,externalForwardedProps:K,getSlotProps:He=>({onEnter:(...Oe)=>{He.onEnter?.(...Oe),Y(...Oe)},onExited:(...Oe)=>{He.onExited?.(...Oe),N(...Oe)}}),additionalProps:{appear:!0,in:D,timeout:z,direction:i==="top"?"down":"up"},ownerState:B});return!D&&Q?null:v.jsx(ae,{...me,...O.clickAwayListener&&{ownerState:J},children:v.jsx(L,{...ee,children:v.jsx(Se,{...Te,children:d||v.jsx(ce,{...Ae})})})})});function BAe(){const[e,t]=_.useState(!1),{apiClients:n}=Zn(),[r,o]=_.useState(""),a=()=>{t(!0)},i=()=>{t(!1)},l=Is(),u=Fi({async mutationFn(p){return n.projects.createProject({name:p.name,readme:$7({name:p.name,readme:""},p.description)})},onSuccess(){i(),l.invalidateQueries({queryKey:["projects"]}),o("Project created successfully")},onError(p){o(p instanceof Error?p.message:"An unknown error occurred")}}),d=async p=>{p.preventDefault();const h=new FormData(p.currentTarget),y=h.get("name")?.toString(),g=h.get("description")?.toString();if(!y)throw new Error("Name is required");u.mutate({name:y,description:g})};return v.jsxs(We.Fragment,{children:[v.jsx(jr,{variant:"contained",onClick:a,startIcon:v.jsx(AJ,{}),sx:{mt:2,color:"white"},children:"Create New Project"}),v.jsxs(Ps,{open:e,onClose:i,children:[v.jsx(Fs,{children:"Create New Project"}),v.jsxs(Ms,{children:[v.jsx(vf,{children:"Add a new project to start exploring semantic models and analyzing data."}),v.jsxs("form",{onSubmit:d,id:"project-form",children:[v.jsx(go,{autoFocus:!0,required:!0,margin:"dense",id:"name",name:"name",label:"Project Name",type:"text",fullWidth:!0,variant:"standard"}),v.jsx(go,{margin:"dense",id:"description",name:"description",label:"Project Description",placeholder:"Explore semantic models, run queries, and build dashboards",type:"text",fullWidth:!0,variant:"standard"})]})]}),v.jsxs(Ls,{children:[v.jsx(jr,{disabled:u.isPending,onClick:i,children:"Cancel"}),v.jsx(jr,{type:"submit",form:"project-form",loading:u.isPending,children:"Create Project"})]})]}),v.jsx(jAe,{open:r!=="",autoHideDuration:6e3,onClose:()=>o(""),message:r})]})}function UAe({project:e,onCloseDialog:t}){const[n,r]=_.useState(!1),{apiClients:o}=Zn(),a=Is(),[i,l]=_.useState(""),u=()=>{r(!0)},d=()=>{r(!1),t()},p=Fi({mutationFn:()=>o.projects.deleteProject(e.name),onSuccess(){d(),a.invalidateQueries({queryKey:["projects"]}),l("Project deleted successfully")},onError(h){l(h instanceof Error?h.message:"An unknown error occurred")}});return v.jsxs(We.Fragment,{children:[v.jsxs(Fl,{onClick:u,children:[v.jsx(Ub,{children:v.jsx(mA,{fontSize:"small"})}),v.jsx(xs,{children:"Delete"})]}),v.jsxs(Ps,{onClose:d,"aria-labelledby":"customized-dialog-title",open:n,children:[v.jsx(Fs,{sx:{m:0,p:2},id:"customized-dialog-title",children:"Delete Project"}),v.jsx($d,{"aria-label":"close",onClick:d,sx:h=>({position:"absolute",right:8,top:8,color:h.palette.grey[500]}),children:v.jsx(Bl,{})}),v.jsx(Ms,{dividers:!0,children:v.jsxs(Hm,{gutterBottom:!0,children:['Are you sure you want to delete "',e.name,'"? This action cannot be undone.']})}),v.jsxs(Ls,{children:[v.jsx(jr,{variant:"outlined",onClick:d,style:{borderColor:"#14b3cb",color:"#14b3cb"},children:"Cancel"}),v.jsx(jr,{loading:p.isPending,variant:"contained",autoFocus:!0,onClick:()=>p.mutate(),color:"error",children:"Delete"})]}),v.jsx(Ds,{open:i!=="",autoHideDuration:6e3,onClose:()=>l(""),message:i})]})]})}function zAe({project:e,onCloseDialog:t}){const[n,r]=_.useState(!1),{apiClients:o}=Zn(),a=Is(),[i,l]=_.useState(""),u=()=>{r(!0)},d=()=>{r(!1),t()},p=Fi({async mutationFn(y){return o.projects.updateProject(e.name,{name:e.name,readme:$7({name:e.name,readme:e.readme},y.description)})},onSuccess(){d(),a.invalidateQueries({queryKey:["projects"]}),l("Project updated successfully")},onError(y){l(y instanceof Error?y.message:"An unknown error occurred")}}),h=y=>{y.preventDefault();const g=new FormData(y.currentTarget).get("description")?.toString();p.mutate({description:g})};return v.jsxs(We.Fragment,{children:[v.jsxs(Fl,{onClick:u,children:[v.jsx(Ub,{children:v.jsx(gA,{fontSize:"small"})}),v.jsx(xs,{children:"Edit"})]}),v.jsxs(Ps,{open:n,onClose:d,children:[v.jsx(Fs,{children:"Edit Project"}),v.jsxs(Ms,{children:[v.jsx(vf,{children:"Add a new project to start exploring semantic models and analyzing data."}),v.jsxs("form",{onSubmit:h,id:"project-form",children:[v.jsx(go,{autoFocus:!0,required:!0,margin:"dense",id:"name",name:"name",label:"Project Name",disabled:!0,type:"text",fullWidth:!0,variant:"standard",defaultValue:e.name}),v.jsx(go,{margin:"dense",id:"description",name:"description",label:"Project Description",type:"text",fullWidth:!0,variant:"standard",defaultValue:z7(e.readme)})]})]}),v.jsxs(Ls,{children:[v.jsx(jr,{disabled:p.isPending,onClick:d,children:"Cancel"}),v.jsx(jr,{type:"submit",form:"project-form",loading:p.isPending,children:"Save Changes"})]})]}),v.jsx(Ds,{open:i!=="",autoHideDuration:6e3,onClose:()=>l(""),message:i})]})}function B_e({onClickProject:e}){const{apiClients:t,mutable:n}=Zn(),{data:r,isSuccess:o,isError:a,error:i}=Qo({queryKey:["projects"],queryFn:()=>t.projects.listProjects()});return a?v.jsx(Ko,{error:i,context:"Projects List"}):o?v.jsxs(gY,{maxWidth:"lg",sx:{py:4},children:[v.jsxs(Rt,{sx:{textAlign:"center",mb:6},children:[v.jsxs(Zr,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(H3,{sx:{fontSize:32,color:"primary.main"}}),v.jsx(st,{variant:"h3",component:"h1",fontWeight:700,children:"Publisher"})]}),v.jsx(st,{variant:"h5",color:"text.secondary",sx:{mb:3,maxWidth:600,mx:"auto"},children:"The open-source semantic model server for the Malloy data language"}),v.jsx(st,{variant:"body1",color:"text.secondary",sx:{maxWidth:800,mx:"auto"},children:"Define semantic models once — and use them everywhere. Publisher serves Malloy models through clean APIs, enabling consistent, interpretable, and AI-ready data access for tools, applications, and agents."})]}),v.jsxs(Cr,{container:!0,spacing:3,sx:{mb:6},children:[v.jsx(Cr,{size:{xs:12,md:4},children:v.jsx(gd,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#ad-hoc-data-analysis","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:v.jsxs(yd,{sx:{p:3},children:[v.jsxs(Zr,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(xAe,{sx:{color:"info.main",fontSize:28}}),v.jsx(st,{variant:"h6",fontWeight:600,children:"Ad Hoc Analysis"})]}),v.jsx(st,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Use Explorer, a visual query builder that allows analysts to browse semantic sources, build queries, and run nested logic — all without writing code."}),v.jsx(Gy,{label:"No-code",size:"small",color:"primary",variant:"outlined"})]})})}),v.jsx(Cr,{size:{xs:12,md:4},children:v.jsx(gd,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#notebook-based-dashboards","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:v.jsxs(yd,{sx:{p:3},children:[v.jsxs(Zr,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(TAe,{sx:{color:"warning.main",fontSize:28}}),v.jsx(st,{variant:"h6",fontWeight:600,children:"Notebook Dashboards"})]}),v.jsx(st,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Create shareable, code-first dashboards using Malloy notebooks. Include text, charts, and reusable views — all versioned alongside your models."}),v.jsx(Gy,{label:"Versioned",size:"small",color:"warning",variant:"outlined"})]})})}),v.jsx(Cr,{size:{xs:12,md:4},children:v.jsx(gd,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#mcp-based-ai-data-agents","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:v.jsxs(yd,{sx:{p:3},children:[v.jsxs(Zr,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(AAe,{sx:{color:"success.main",fontSize:28}}),v.jsx(st,{variant:"h6",fontWeight:600,children:"AI Data Agents"})]}),v.jsx(st,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Expose your semantic models via the Model Context Protocol (MCP), enabling AI agents to discover sources and ask well-formed questions."}),v.jsx(Gy,{label:"AI-Ready",size:"small",color:"success",variant:"outlined"})]})})})]}),v.jsx(As,{sx:{my:4}}),r.data.length>0?v.jsxs(v.Fragment,{children:[v.jsxs(Rt,{sx:{textAlign:"center",mb:4},children:[v.jsxs(Zr,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(V3,{sx:{color:"primary.main",fontSize:24}}),v.jsx(st,{variant:"h4",fontWeight:600,children:"Select a Project"})]}),v.jsx(st,{variant:"body1",color:"text.secondary",children:"Choose a project to explore its semantic models and start analyzing your data"}),n&&v.jsx(BAe,{})]}),v.jsx(Cr,{container:!0,spacing:3,justifyContent:"center",children:r.data.map(l=>v.jsx(Cr,{size:{xs:12,sm:6,md:4},children:v.jsx($Ae,{project:l,onClickProject:e})},l.name))})]}):v.jsxs(Rt,{sx:{textAlign:"center",mb:4},children:[v.jsxs(Zr,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(V3,{sx:{color:"primary.main",fontSize:24}}),v.jsx(st,{variant:"h4",fontWeight:600,children:"Get Started"})]}),v.jsx(st,{variant:"body1",color:"text.secondary",sx:{mb:3},children:"No projects found. Create your first Malloy project to start exploring semantic models and building data experiences."}),v.jsx(ti,{variant:"contained",size:"large",color:"primary",startIcon:v.jsx(H3,{}),href:"https://github.com/malloydata/publisher/blob/main/README.md#server-configuration",target:"_blank",rel:"noopener noreferrer",children:"Learn How to Create Models"})]}),v.jsx(Rt,{sx:{textAlign:"center",mt:6,pt:4,borderTop:1,borderColor:"divider"},children:v.jsxs(st,{variant:"body2",color:"text.secondary",children:["Publisher is built on fully open infrastructure and designed for the AI era. Join the"," ",v.jsx("a",{href:"https://join.slack.com/t/malloy-community/shared_invite/zt-1kgfwgi5g-CrsdaRqs81QY67QW0~t_uw",target:"_blank",rel:"noopener noreferrer",style:{color:"primary.main",textDecoration:"underline"},children:"Malloy Slack community"})," ","to ask questions, share ideas, and contribute to the future of data modeling."]})})]}):v.jsx(Wo,{text:"Loading projects..."})}function $Ae({project:e,onClickProject:t}){const{mutable:n}=Zn(),[r,o]=_.useState(null),a=!!r,i=u=>{o(u.currentTarget)},l=()=>{o(null)};return v.jsx("div",{children:v.jsxs(gd,{variant:"outlined",sx:{height:"100%",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2,borderColor:"primary.main"}},children:[n&&v.jsxs(v.Fragment,{children:[v.jsx(ir,{"aria-controls":a?"project-menu":void 0,"aria-haspopup":"true","aria-expanded":a?"true":void 0,onClick:i,sx:{position:"absolute",top:8,right:8},children:v.jsx(_4,{fontSize:"small"})}),v.jsxs(zb,{id:"project-menu","aria-haspopup":"true","aria-expanded":a?"true":void 0,open:a,anchorEl:r,onClose:l,disableRestoreFocus:!0,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"},children:[v.jsx(zAe,{project:e,onCloseDialog:l}),v.jsx(UAe,{project:e,onCloseDialog:l})]})]}),v.jsxs(yd,{sx:{p:3,textAlign:"center"},children:[v.jsx(CAe,{sx:{fontSize:48,color:"primary.main",mb:2}}),v.jsx(st,{variant:"h6",fontWeight:600,gutterBottom:!0,children:e.name}),v.jsx(st,{variant:"body2",color:"text.secondary",sx:{mb:2,minHeight:"60px"},children:z7(e.readme)}),v.jsx(ti,{variant:"contained",color:"secondary",endIcon:v.jsx(SAe,{}),fullWidth:!0,onClick:u=>t(`/${e.name}/`,u),children:"Open Project"})]})]})})}const HAe=async e=>{if(typeof window>"u")throw new Error("MalloyRenderer can only be used in browser environment");const{MalloyRenderer:t}=await X(async()=>{const{MalloyRenderer:n}=await import("./index.umd-PbB35uhR.js").then(r=>r.i);return{MalloyRenderer:n}},[]);return new t({onClick:e,onError:n=>{console.error("Error rendering visualization:",typeof n,n)}}).createViz()};function VAe({result:e,height:t,isFillElement:n,onSizeChange:r,onDrill:o}){const a=_.useRef(null),[i,l]=_.useState(!1);return _.useLayoutEffect(()=>{if(!a.current||!e)return;let u=!0;const d=a.current;for(;d.firstChild;)d.removeChild(d.firstChild);return HAe(o).then(p=>{if(!u)return;const h=new MutationObserver(y=>{for(const g of y)if(g.type==="childList"&&g.addedNodes.length>0&&Array.from(g.addedNodes).some(b=>b.nodeType===Node.ELEMENT_NODE)){h.disconnect(),setTimeout(()=>{u&&l(!0)},50);break}});h.observe(d,{childList:!0,subtree:!0,characterData:!0});try{p.setResult(JSON.parse(e)),p.render(d)}catch(y){console.error("Error rendering visualization:",y),h.disconnect(),u&&l(!0)}}).catch(p=>{console.error("Failed to create renderer:",p),u&&l(!0)}),()=>{u=!1}},[e,o]),_.useEffect(()=>{if(!a.current||!i)return;const u=a.current,d=()=>{if(u){const y=u.offsetHeight;y>0?r&&r(y):n&&u.firstChild&&(u.firstChild.offsetHeight==0?n(!0):n(!1))}},p=setTimeout(d,100);let h=null;return h=new MutationObserver(d),h.observe(u,{childList:!0,subtree:!0,attributes:!0}),()=>{clearTimeout(p),h?.disconnect()}},[r,e,n,i]),v.jsx("div",{ref:a,style:{width:"100%",height:t?`${t}px`:"100%"}})}function GAe(e){return typeof window>"u"?v.jsx("div",{style:{width:"100%",height:e.height?`${e.height}px`:"100%",display:"flex",alignItems:"center",justifyContent:"center",color:"#666"},children:"Loading..."}):v.jsx(_.Suspense,{fallback:v.jsx("div",{style:{width:"100%",height:e.height?`${e.height}px`:"100%",display:"flex",alignItems:"center",justifyContent:"center",color:"#666"},children:"Loading visualization..."}),children:v.jsx(VAe,{...e})})}const H7=Object.freeze(Object.defineProperty({__proto__:null,default:GAe},Symbol.toStringTag,{value:"Module"}));kt.defaults.baseURL="IfYouAreSeeingThis_baseURL_IsNotSet";const dr={primary:{main:"#14b3cb",light:"#22d3ee",dark:"#0e7490",50:"#ecfeff",100:"#cffafe",500:"#14b3cb",600:"#0891b2",700:"#0e7490"},secondary:{main:"#fbbb04",light:"#fde047",dark:"#eab308",50:"#fefce8",100:"#fef3c7",500:"#fbbb04",600:"#eab308",700:"#ca8a04"},grey:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},success:{main:"#059669",light:"#10b981",dark:"#047857"},warning:{main:"#d97706",light:"#f59e0b",dark:"#b45309"},error:{main:"#dc2626",light:"#ef4444",dark:"#b91c1c"},info:{main:"#0891b2",light:"#06b6d4",dark:"#0e7490"}},qAe=Mb({palette:{mode:"light",primary:dr.primary,secondary:dr.secondary,grey:dr.grey,success:dr.success,warning:dr.warning,error:dr.error,info:dr.info,background:{default:"#ffffff",paper:"#ffffff"},text:{primary:dr.grey[900],secondary:dr.grey[600]},divider:dr.grey[200]},typography:{fontFamily:'"Inter", "Roboto", "Helvetica", "Arial", sans-serif',h1:{fontWeight:700,letterSpacing:"-0.025em"},h2:{fontWeight:700,letterSpacing:"-0.025em"},h3:{fontWeight:600,letterSpacing:"-0.025em"},h4:{fontWeight:600,letterSpacing:"-0.025em"},h5:{fontWeight:600,letterSpacing:"-0.025em"},h6:{fontWeight:600,letterSpacing:"-0.025em"},subtitle1:{fontWeight:500,letterSpacing:"-0.025em"},subtitle2:{fontWeight:500,letterSpacing:"-0.025em"},body1:{letterSpacing:"-0.025em"},body2:{letterSpacing:"-0.025em"},button:{fontWeight:500,letterSpacing:"-0.025em",textTransform:"none"}},shape:{borderRadius:4},components:{MuiCssBaseline:{styleOverrides:{body:{scrollbarWidth:"thin",scrollbarColor:`${dr.grey[300]} ${dr.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:dr.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:dr.grey[300],borderRadius:"4px","&:hover":{background:dr.grey[400]}},"&::-webkit-scrollbar-corner":{background:dr.grey[100]}},"*":{scrollbarWidth:"thin",scrollbarColor:`${dr.grey[300]} ${dr.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:dr.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:dr.grey[300],borderRadius:"4px","&:hover":{background:dr.grey[400]}},"&::-webkit-scrollbar-corner":{background:dr.grey[100]}},"div[data-radix-popper-content-wrapper]":{zIndex:"1300 !important"}}},MuiButton:{styleOverrides:{root:{borderRadius:4,textTransform:"none",fontWeight:500,boxShadow:"none","&:hover":{boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)"}},contained:{"&:hover":{boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}}}},MuiCard:{styleOverrides:{root:{borderRadius:4,boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)",border:"1px solid",borderColor:"rgba(0, 0, 0, 0.05)"}}},MuiChip:{styleOverrides:{root:{borderRadius:4,fontWeight:500}}},MuiTextField:{styleOverrides:{root:{"& .MuiOutlinedInput-root":{borderRadius:4}}}},MuiDialog:{styleOverrides:{paper:{borderRadius:4,boxShadow:"0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 10px 10px -5px rgba(0, 0, 0, 0.04)"}}},MuiMenu:{styleOverrides:{paper:{borderRadius:4,boxShadow:"0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -2px rgba(0, 0, 0, 0.05)",border:"1px solid rgba(0, 0, 0, 0.05)"}}},MuiBreadcrumbs:{styleOverrides:{root:{"& .MuiBreadcrumbs-separator":{margin:"0 6px",color:dr.grey[400]}}}},MuiDivider:{styleOverrides:{root:{margin:"4px 0",borderColor:dr.grey[200]}},defaultProps:{sx:{my:1}}}}}),WAe=_.lazy(()=>X(()=>import("./HomePage-zgjLbpTO.js"),[])),YAe=_.lazy(()=>X(()=>import("./MainPage-BD2RiQ6H.js"),[])),KAe=_.lazy(()=>X(()=>import("./ModelPage-BqzWWLvj.js"),[])),QAe=_.lazy(()=>X(()=>import("./PackagePage-C-JViRAf.js"),[])),XAe=_.lazy(()=>X(()=>import("./ProjectPage-CLlZgxV2.js"),[])),ZAe=_.lazy(()=>X(()=>import("./RouteError-Bf0xYlO6.js"),[])),JAe=_.lazy(()=>X(()=>import("./WorkbookPage-C7AyEw5d.js"),[])),e_e=(e="/",t,n)=>rz([{path:e,element:v.jsx(TJ,{children:v.jsx(RSe,{workbookStorage:t,children:v.jsxs(dG,{theme:qAe,children:[v.jsx(xY,{}),v.jsx(YAe,{headerProps:n})]})})}),errorElement:v.jsx(ZAe,{}),children:[{path:"",element:v.jsx(WAe,{})},{path:":projectName",element:v.jsx(XAe,{})},{path:":projectName/:packageName",element:v.jsx(QAe,{})},{path:":projectName/:packageName/*",element:v.jsx(KAe,{})},{path:":projectName/:packageName/workbook/:workspace/:workbookPath",element:v.jsx(JAe,{})}]}]),t_e=e_e("/",new LSe,void 0);oB.createRoot(document.getElementById("root")).render(v.jsx(_.StrictMode,{children:v.jsx(mz,{router:t_e})}));export{gY as A,$c as B,Gy as C,$A as D,L_e as E,ffe as F,j_e as G,_U as H,ir as I,M_e as J,r_e as K,We as L,zb as M,vl as N,a_e as O,B_e as P,pm as Q,h0 as R,Zr as S,st as T,n_e as U,q3 as V,F_e as _,Bi as a,Ft as b,Bt as c,jt as d,dt as e,Je as f,RH as g,Ut as h,kl as i,v as j,Oi as k,$l as l,xn as m,LS as n,CL as o,Pi as p,NSe as q,_ as r,Ke as s,o_e as t,jC as u,Rt as v,f5 as w,zl as x,Fl as y,ti as z};