@chillicream/nitro-embedded 30.0.0 → 30.0.1
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.
- package/assets/{context-providers.a6cbd8ae.-xn453sc.js → context-providers.32393d3f.4lja1-Yv.js} +7 -5
- package/assets/{editor.worker.a6cbd8ae.DKTbkej7.js → editor.worker.32393d3f.BtBOsr77.js} +1 -1
- package/assets/{graphql-engine-scheduler.a6cbd8ae.CRCZH9eT.js → graphql-engine-scheduler.32393d3f.BKOKUF1h.js} +1 -1
- package/assets/{graphql-indexer-scheduler.a6cbd8ae.Bvw8ykb0.js → graphql-indexer-scheduler.32393d3f.ClPGWCSG.js} +1 -1
- package/assets/{graphql.worker.a6cbd8ae.DrQju_5S.js → graphql.worker.32393d3f.DCbruaJI.js} +1 -1
- package/assets/{index.a6cbd8ae.DH9clVIb.js → index.32393d3f.C6Jm2J7w.js} +1 -1
- package/assets/{json.worker.a6cbd8ae.BAHwolUd.js → json.worker.32393d3f.8ac-t4iI.js} +1 -1
- package/assets/{jsonMode.a6cbd8ae.D9G33m7j.js → jsonMode.32393d3f.Da25eQ7o.js} +1 -1
- package/assets/{main.a6cbd8ae.nI2HRy2W.js → main.32393d3f.Cjljin1C.js} +7 -7
- package/assets/{monaco.a6cbd8ae.yVFOAV5a.css → monaco.32393d3f.CDcGk4NI.css} +1 -1
- package/assets/{monaco.a6cbd8ae.DRTmByXd.js → monaco.32393d3f.CRafqNYy.js} +2 -2
- package/assets/{monaco.a6cbd8ae.Cx26j2kT.css → monaco.32393d3f.C_iiYC8A.css} +1 -1
- package/assets/{session-scheduler.a6cbd8ae.Cs3Lp-R6.js → session-scheduler.32393d3f.l7O1I_X6.js} +1 -1
- package/assets/{yaml.a6cbd8ae.BrAx0Nnq.js → yaml.32393d3f.CV00odnb.js} +1 -1
- package/assets/{yaml.worker.a6cbd8ae.BOVYkCVk.js → yaml.worker.32393d3f.B4fVFlVP.js} +1 -1
- package/index.html +4 -4
- package/package.json +1 -1
- package/service-worker.js +1 -1
- /package/assets/{FiraCode-Medium.a6cbd8ae.-YTCSZkP.woff2 → FiraCode-Medium.32393d3f.-YTCSZkP.woff2} +0 -0
- /package/assets/{codicon.a6cbd8ae.Hscy-R9e.ttf → codicon.32393d3f.Hscy-R9e.ttf} +0 -0
- /package/assets/{context-providers.a6cbd8ae.3HkX5s82.css → context-providers.32393d3f.3HkX5s82.css} +0 -0
- /package/assets/{main.a6cbd8ae.O2wwCX4n.css → main.32393d3f.O2wwCX4n.css} +0 -0
- /package/assets/{monaco.a6cbd8ae.DPHEUpPG.js → monaco.32393d3f.B9m8JSsx.js} +0 -0
- /package/assets/{monaco.a6cbd8ae.v2QsmtMC.js → monaco.32393d3f.BAXraPs4.js} +0 -0
- /package/assets/{monaco.a6cbd8ae.CX283ebn.js → monaco.32393d3f.DLGK8xR9.js} +0 -0
- /package/assets/{monaco.a6cbd8ae.EZduqCri.js → monaco.32393d3f.FxNpxLqs.js} +0 -0
- /package/assets/{monaco.a6cbd8ae.B_bsp91k.js → monaco.32393d3f.GGEmU9pB.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./context-providers.
|
|
2
|
-
import{B as Buffer$1,p as process$1,l as languages,a as Buffer,U as Uri,e as editor,_ as __vitePreload}from"./monaco.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./context-providers.32393d3f.4lja1-Yv.js","./monaco.32393d3f.CRafqNYy.js","./monaco.32393d3f.C_iiYC8A.css","./context-providers.32393d3f.3HkX5s82.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{B as Buffer$1,p as process$1,l as languages,a as Buffer,U as Uri,e as editor,_ as __vitePreload}from"./monaco.32393d3f.CRafqNYy.js";function _mergeNamespaces(on,In){for(var Rn=0;Rn<In.length;Rn++){const Mn=In[Rn];if(typeof Mn!="string"&&!Array.isArray(Mn)){for(const Ln in Mn)if(Ln!=="default"&&!(Ln in on)){const Hn=Object.getOwnPropertyDescriptor(Mn,Ln);Hn&&Object.defineProperty(on,Ln,Hn.get?Hn:{enumerable:!0,get:()=>Mn[Ln]})}}}return Object.freeze(Object.defineProperty(on,Symbol.toStringTag,{value:"Module"}))}(function(){const In=document.createElement("link").relList;if(In&&In.supports&&In.supports("modulepreload"))return;for(const Ln of document.querySelectorAll('link[rel="modulepreload"]'))Mn(Ln);new MutationObserver(Ln=>{for(const Hn of Ln)if(Hn.type==="childList")for(const jn of Hn.addedNodes)jn.tagName==="LINK"&&jn.rel==="modulepreload"&&Mn(jn)}).observe(document,{childList:!0,subtree:!0});function Rn(Ln){const Hn={};return Ln.integrity&&(Hn.integrity=Ln.integrity),Ln.referrerPolicy&&(Hn.referrerPolicy=Ln.referrerPolicy),Ln.crossOrigin==="use-credentials"?Hn.credentials="include":Ln.crossOrigin==="anonymous"?Hn.credentials="omit":Hn.credentials="same-origin",Hn}function Mn(Ln){if(Ln.ep)return;Ln.ep=!0;const Hn=Rn(Ln);fetch(Ln.href,Hn)}})();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(on){return on&&on.__esModule&&Object.prototype.hasOwnProperty.call(on,"default")?on.default:on}function getAugmentedNamespace(on){if(Object.prototype.hasOwnProperty.call(on,"__esModule"))return on;var In=on.default;if(typeof In=="function"){var Rn=function Mn(){var Ln=!1;try{Ln=this instanceof Mn}catch{}return Ln?Reflect.construct(In,arguments,this.constructor):In.apply(this,arguments)};Rn.prototype=In.prototype}else Rn={};return Object.defineProperty(Rn,"__esModule",{value:!0}),Object.keys(on).forEach(function(Mn){var Ln=Object.getOwnPropertyDescriptor(on,Mn);Object.defineProperty(Rn,Mn,Ln.get?Ln:{enumerable:!0,get:function(){return on[Mn]}})}),Rn}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react.production.min.js
|
|
5
5
|
*
|
|
@@ -4267,7 +4267,7 @@ Error generating stack: `+Oo.message+`
|
|
|
4267
4267
|
0px 3px 4px 0px ${THEME_COLORS.base.shadow},
|
|
4268
4268
|
0px 1px 8px 0px ${THEME_COLORS.base.shadow}`}),paperWidthLg:({theme:on})=>({flexBasis:"90%",width:"90%",height:"90%",maxWidth:on.spacing(1140),minHeight:on.spacing(300),maxHeight:on.spacing(980)}),paperWidthMd:({theme:on})=>({flexBasis:"90%",width:"90%",height:"90%",maxWidth:on.spacing(600),minHeight:on.spacing(300),maxHeight:on.spacing(500)}),paperWidthSm:({theme:on})=>({width:"initial",height:"initial",maxWidth:on.spacing(450),minHeight:on.spacing(100),maxHeight:on.spacing(400)})}},MuiDialogActions:{styleOverrides:{root:({theme:on})=>({display:"flex",flex:`0 0 ${on.spacing(60)}`,flexDirection:"row",alignItems:"center",overflow:"hidden",padding:on.spacing(0,20)})}},MuiDialogContent:{styleOverrides:{root:({theme:on})=>({flex:"1 1 auto",flexDirection:"column",overflow:"hidden",padding:on.spacing(0,20),fontWeight:"normal",color:THEME_COLORS.base.subtitle,"&.no-padding":{padding:0},"& > p":{margin:on.spacing(6,0,18)}})}},MuiDialogTitle:{styleOverrides:{root:({theme:on})=>({display:"flex",flex:"1 1 auto",flexDirection:"row",padding:0,fontSize:on.typography.h3.fontSize,fontWeight:500,color:THEME_COLORS.base.heading})}},MuiDivider:{styleOverrides:{root:({theme:on})=>({borderBottomWidth:on.spacing(1),borderColor:THEME_COLORS.base.separator})}},MuiFab:{defaultProps:{size:"small"}},MuiFilledInput:{defaultProps:{margin:"dense"}},MuiFormControl:{defaultProps:{margin:"dense"},styleOverrides:{root:({theme:on})=>({display:"flex",flexDirection:"column",gap:on.spacing(4),margin:0,"& > .MuiFormLabel-root":{fontSize:on.typography.body1.fontSize,lineHeight:on.typography.body1.lineHeight,fontWeight:500,color:THEME_COLORS.components.labelText}})}},MuiFormHelperText:{defaultProps:{margin:"dense"},styleOverrides:{root:{margin:"0 !important",color:THEME_COLORS.components.helperText,"&.Mui-disabled":{color:THEME_COLORS.components.helperText}}}},MuiFormControlLabel:{styleOverrides:{root:({theme:on})=>({display:"flex",alignItems:"center",justifyContent:"space-between",gap:on.spacing(16),margin:0}),label:({theme:on})=>({fontWeight:on.typography.fontWeightMedium,color:THEME_COLORS.components.labelText,"&.Mui-disabled":{color:THEME_COLORS.components.labelText}})}},MuiFormLabel:{styleOverrides:{root:({theme:on})=>({display:"flex",alignItems:"center",gap:on.spacing(8),margin:"0 !important","&.Mui-focused":{color:on.palette.text.primary}})}},MuiGrid:{styleOverrides:{root:{margin:0}}},MuiIconButton:{defaultProps:{color:"secondary",disableRipple:!0,size:"small"},styleOverrides:{root:({theme:on})=>({borderRadius:on.spacing(4),padding:0,transition:"background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease","&.spin > .icon":{animation:`${FULL_ROTATION} 1.2s 0.3s linear infinite`}}),colorSecondary:({theme:on})=>({border:`${on.spacing(1)} solid
|
|
4269
4269
|
${THEME_COLORS.components.buttonIconBorder}`,color:THEME_COLORS.components.buttonIconText,backgroundColor:THEME_COLORS.components.buttonIcon,"&.active":{borderColor:THEME_COLORS.components.toggleButtonActive,color:THEME_COLORS.components.toggleButtonActiveText,backgroundColor:THEME_COLORS.components.toggleButtonActive,"& > .icon":{fill:THEME_COLORS.components.toggleButtonActiveText},"&:hover, &:focus, &.menu-open":{borderColor:THEME_COLORS.components.toggleButton,color:THEME_COLORS.components.toggleButtonText,backgroundColor:THEME_COLORS.components.toggleButton,"& > .icon":{fill:THEME_COLORS.components.toggleButtonText}}},"&:disabled":{pointerEvents:"none",cursor:"default",opacity:.5,"&:hover":{backgroundColor:"initial"}},"&:hover, &:focus, &.menu-open":{borderColor:THEME_COLORS.components.buttonIconHoverBorder,color:THEME_COLORS.components.buttonIconHoverText,backgroundColor:THEME_COLORS.components.buttonIconHover,"& > .icon":{fill:THEME_COLORS.components.buttonIconHoverText}},"& > .icon":{fill:THEME_COLORS.components.buttonIconText}}),colorInherit:({theme:on})=>({border:`${on.spacing(1)} solid
|
|
4270
|
-
${THEME_COLORS.components.buttonIconBorder}`,color:THEME_COLORS.components.buttonIconText,backgroundColor:THEME_COLORS.components.buttonIcon,"&:disabled":{pointerEvents:"none",cursor:"default",opacity:.5,"&:hover":{backgroundColor:"initial"}},"& > .icon":{fill:THEME_COLORS.components.buttonIconText}}),sizeSmall:({theme:on})=>({width:on.spacing(30),height:on.spacing(30)})}},MuiInputAdornment:{styleOverrides:{root:({theme:on})=>({flexShrink:0,justifyContent:"center",margin:0,"&.MuiInputAdornment-sizeSmall":{minWidth:on.spacing(28),minHeight:on.spacing(28),"&.MuiInputAdornment-positionStart":{marginRight:on.spacing(-6)}}})}},MuiInputBase:{defaultProps:{margin:"dense"},styleOverrides:{root:({theme:on})=>({borderRadius:on.spacing(4),height:on.spacing(30),fontSize:on.typography.body1.fontSize,lineHeight:on.typography.body1.lineHeight,backgroundColor:THEME_COLORS.components.field,color:THEME_COLORS.components.fieldText,transition:"background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease","&.MuiInputBase-multiline":{height:"auto"},"&.Mui-disabled, &.Mui-disabled:hover":{backgroundColor:THEME_COLORS.components.fieldDisabled,color:THEME_COLORS.components.fieldDisabledText,"& .MuiInputBase-input::placeholder":{color:THEME_COLORS.components.fieldDisabledPlaceholder}},"&.Mui-focused, &:hover":{backgroundColor:THEME_COLORS.components.fieldHover,color:THEME_COLORS.components.fieldHoverText,"& .MuiInputBase-input::placeholder":{color:THEME_COLORS.components.fieldHoverPlaceholder}},"&.Mui-error":{color:THEME_COLORS.states.failure}}),adornedStart:{"& .icon":{fill:THEME_COLORS.components.fieldText},"&:Mui-disabled .icon":{fill:THEME_COLORS.components.fieldDisabled},"&.Mui-error .icon":{fill:THEME_COLORS.states.failure}},adornedEnd:{"& .icon":{fill:THEME_COLORS.components.fieldText},"&:Mui-disabled .icon":{fill:THEME_COLORS.components.fieldDisabled},"&.Mui-error .icon":{fill:THEME_COLORS.states.failure}},input:({theme:on})=>({height:on.spacing(16),padding:on.spacing(6,8),"&::placeholder":{opacity:1,color:THEME_COLORS.components.fieldPlaceholder,transition:"color 0.2s ease"},"&:autofill":{transitionProperty:"background-color, color",transitionDelay:"86400s"}})}},MuiInputLabel:{defaultProps:{margin:"dense",shrink:!0},styleOverrides:{root:({theme:on})=>({position:"relative",transform:"none",fontSize:on.typography.body1.fontSize,fontWeight:on.typography.fontWeightMedium,color:THEME_COLORS.components.labelText,"&.Mui-focused":{color:THEME_COLORS.components.labelText},"&.Mui-error":{color:THEME_COLORS.states.failure}})}},MuiLinearProgress:{styleOverrides:{root:({theme:on})=>({height:on.spacing(2),"&.impact > .MuiLinearProgress-barColorPrimary":{backgroundColor:THEME_COLORS.chart.impact},"&.impact.MuiLinearProgress-colorPrimary":{backgroundColor:THEME_COLORS.chart.impactBackground}}),barColorPrimary:{backgroundColor:THEME_COLORS.base.spinner},colorPrimary:{backgroundColor:THEME_COLORS.base.separator}}},MuiLink:{styleOverrides:{root:({theme:on})=>({textDecoration:"underline",whiteSpace:"nowrap","& > .icon":{flex:`0 0 ${on.spacing(14)}`,width:on.spacing(14),height:on.spacing(14)},"&:hover":{textDecoration:"none"},"&.MuiTypography-root":{display:"inline-flex",gap:on.spacing(4),alignItems:"center",cursor:"pointer",color:THEME_COLORS.components.linkText+" !important",textDecorationColor:THEME_COLORS.components.linkText+" !important","& > .icon.link":{fill:THEME_COLORS.components.linkText}},"&.MuiTypography-root:hover":{color:THEME_COLORS.components.linkHoverText+" !important",textDecorationColor:THEME_COLORS.components.linkHoverText+" !important","& > .icon.link":{fill:THEME_COLORS.components.linkHoverText}}}),button:{"&.MuiTypography-root, .MuiPaper-root &.MuiTypography-root":{cursor:"pointer",color:THEME_COLORS.components.linkText,textDecorationColor:THEME_COLORS.components.linkText,"& > .icon.link":{fill:THEME_COLORS.components.linkText}},"&.MuiTypography-root:hover":{color:THEME_COLORS.components.linkHoverText,textDecorationColor:THEME_COLORS.components.linkHoverText,"& > .icon.link":{fill:THEME_COLORS.components.linkHoverText}}}}},MuiList:{defaultProps:{dense:!0},styleOverrides:{root:({theme:on})=>({overflow:"visible",padding:on.spacing(0,8),"& .MuiList-root":{padding:on.spacing(0)}})}},MuiListSubheader:{defaultProps:{disableSticky:!0},styleOverrides:{root:({theme:on})=>({padding:on.spacing(4,12),fontSize:on.typography.body2.fontSize,fontWeight:600,lineHeight:on.typography.body2.lineHeight,color:THEME_COLORS.base.textAlt,backgroundColor:"unset"})}},MuiListItemButton:{styleOverrides:{root:({theme:on})=>({display:"flex",alignItems:"center",gap:on.spacing(8),borderRadius:on.spacing(4),height:on.spacing(32),padding:on.spacing(3,12),overflow:"visible",fontSize:on.typography.body1.fontSize,lineHeight:on.typography.body1.lineHeight,backgroundColor:THEME_COLORS.base.tab,"&:hover":{backgroundColor:THEME_COLORS.base.tabHover,"& > .MuiListItemIcon-root > .icon":{fill:THEME_COLORS.base.tabHoverText},"& > .MuiListItemText-root > .MuiListItemText-primary":{color:THEME_COLORS.base.tabHoverText}},"&.Mui-selected":{position:"relative",backgroundColor:THEME_COLORS.base.tabActiveHover,"&:hover":{backgroundColor:THEME_COLORS.base.tabActiveHover,"&::before":{backgroundColor:THEME_COLORS.base.tabActiveHoverBorder},"& > .MuiListItemIcon-root > .icon":{fill:THEME_COLORS.base.tabActiveHoverText},"& > .MuiListItemText-root > .MuiListItemText-primary":{color:THEME_COLORS.base.tabActiveHoverText}},"&::before":{position:"absolute",top:on.spacing(2),bottom:on.spacing(2),left:on.spacing(-8),width:on.spacing(4),pointerEvents:"none",content:'""',borderRadius:on.spacing(2),backgroundColor:THEME_COLORS.base.tabActiveBorder},"& > .MuiListItemIcon-root > .icon":{fill:THEME_COLORS.base.tabActiveText},"& > .MuiListItemText-root > .MuiListItemText-primary":{color:THEME_COLORS.base.tabActiveText}},"& > .MuiListItemIcon-root > .icon":{fill:THEME_COLORS.base.tabText},"& > .MuiListItemText-root > .MuiListItemText-primary":{color:THEME_COLORS.base.tabText}})}},MuiListItemIcon:{styleOverrides:{root:({theme:on})=>({"&.MuiListItemIcon-root":{display:"flex",alignItems:"center",justifyContent:"center",minWidth:on.spacing(16)}})}},MuiListItemText:{styleOverrides:{root:({theme:on})=>({"&.child-selected > .MuiListItemText-primary":{fontWeight:500},"& .MuiListItemText-primary":{display:"flex",flex:"1 1 auto",flexDirection:"row",alignItems:"center",gap:on.spacing(7),fontSize:on.typography.body1.fontSize,fontWeight:on.typography.body1.fontWeight,lineHeight:on.typography.body1.lineHeight}})}},MuiListItemSecondaryAction:{styleOverrides:{root:({theme:on})=>({"& .MuiTypography-body2":{fontSize:on.typography.body1.fontSize,lineHeight:on.typography.body1.lineHeight}})}},MuiMenu:{defaultProps:{MenuListProps:{disablePadding:!0},transitionDuration:0,slotProps:{paper:{elevation:1}}},styleOverrides:{root:{pointerEvents:"none"},list:({theme:on})=>({minWidth:on.spacing(180),padding:on.spacing(4)}),paper:({theme:on})=>({padding:0,pointerEvents:"auto",color:THEME_COLORS.base.text,backgroundColor:THEME_COLORS.components.menu,border:`${on.spacing(1)} solid ${THEME_COLORS.components.menuBorder}`})}},MuiMenuItem:{defaultProps:{disableRipple:!0,disableTouchRipple:!0},styleOverrides:{root:({theme:on})=>({height:on.spacing(24),minHeight:"auto",boxSizing:"content-box",borderRadius:on.spacing(4),padding:on.spacing(3,12),fontSize:on.typography.body1.fontSize,fontWeight:on.typography.body1.fontWeight,lineHeight:on.typography.body1.lineHeight,color:THEME_COLORS.components.menuItemText,backgroundColor:THEME_COLORS.components.menuItem,"&:hover, &:focus":{backgroundColor:THEME_COLORS.components.menuItemHover},"&.Mui-focusVisible":{color:THEME_COLORS.components.menuItemHoverText,backgroundColor:THEME_COLORS.components.menuItemHover},"&.Mui-selected, &.Mui-selected:hover":{color:THEME_COLORS.components.menuItemHoverText,backgroundColor:THEME_COLORS.components.menuItemHover},"+.MuiDivider-root":{marginTop:on.spacing(4),marginBottom:on.spacing(4),borderBottomWidth:on.spacing(1),borderColor:THEME_COLORS.components.menuSeparator},"& .MuiListItemSecondaryAction-root":{right:on.spacing(12)},"& > .MuiListItemIcon-root":{marginRight:on.spacing(6),minWidth:on.spacing(16)}})}},MuiMultiSectionDigitalClockSection:{styleOverrides:{root:({theme:on})=>({fontSize:on.typography.body1.fontSize,fontWeight:on.typography.body1.fontWeight,lineHeight:on.typography.body1.lineHeight,padding:on.spacing(4)}),item:({theme:on})=>({margin:"0 !important",width:"initial",height:on.spacing(24),padding:on.spacing(3,12),"&:not(.Mui-selected):hover, &:not(.Mui-selected):focus":{backgroundColor:THEME_COLORS.components.menuItemHover,color:THEME_COLORS.components.menuItemHoverText},"&.Mui-selected":{backgroundColor:THEME_COLORS.components.buttonPrimary,color:THEME_COLORS.components.buttonPrimaryText},"&.Mui-selected:hover, &.Mui-selected:focus":{backgroundColor:THEME_COLORS.components.buttonPrimaryHover,color:THEME_COLORS.components.buttonPrimaryHoverText}})}},MuiOutlinedInput:{defaultProps:{margin:"dense"},styleOverrides:{root:({theme:on})=>({"&.Mui-disabled .MuiOutlinedInput-notchedOutline, &.Mui-disabled:hover .MuiOutlinedInput-notchedOutline":{borderColor:THEME_COLORS.components.fieldDisabledBorder},"&.Mui-focused .MuiOutlinedInput-notchedOutline, &:hover .MuiOutlinedInput-notchedOutline":{borderWidth:on.spacing(1),borderColor:THEME_COLORS.components.fieldHoverBorder},"&.Mui-error .MuiOutlinedInput-notchedOutline, &.Mui-error:hover .MuiOutlinedInput-notchedOutline, &.Mui-error.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:THEME_COLORS.states.failure}}),input:({theme:on})=>({height:on.spacing(16),padding:on.spacing(6,8)}),multiline:({theme:on})=>({padding:on.spacing(6,8),"& .MuiOutlinedInput-input":{padding:0,height:"auto",overflow:"auto !important","&::-webkit-scrollbar":{display:"block"}}}),notchedOutline:{top:0,borderColor:THEME_COLORS.components.fieldBorder,"& > legend":{display:"none"}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0}}},MuiPagination:{defaultProps:{shape:"rounded"}},MuiPaginationItem:{defaultProps:{size:"small"},styleOverrides:{root:({theme:on})=>({minWidth:on.spacing(30),height:on.spacing(30)}),text:({theme:on})=>({borderStyle:"solid",borderWidth:on.spacing(1),borderColor:"transparent",color:THEME_COLORS.components.buttonText,backgroundColor:"transparent","&:focus, &:focus.Mui-selected":{borderColor:THEME_COLORS.components.buttonHoverBorder,color:THEME_COLORS.components.buttonHoverText,backgroundColor:THEME_COLORS.components.buttonHover},"&:hover, &.Mui-selected":{borderColor:THEME_COLORS.components.buttonHoverBorder,color:THEME_COLORS.components.buttonHoverText,backgroundColor:THEME_COLORS.components.buttonHover},"&:disabled":{borderColor:"transparent",color:THEME_COLORS.components.buttonDisabledText,backgroundColor:"transparent"}})}},MuiPaper:{styleOverrides:{root:({theme:on})=>({"&.Menu":{padding:on.spacing(4,0),color:THEME_COLORS.base.text,backgroundColor:THEME_COLORS.components.menu,border:`${on.spacing(1)} solid ${THEME_COLORS.components.menuBorder}`},"&.MuiPaper-rounded":{borderRadius:on.spacing(4)}})}},MuiPickerPopper:{styleOverrides:{root:({theme:on})=>({padding:on.spacing(4),overflow:"visible"}),paper:({theme:on})=>({color:THEME_COLORS.base.text,backgroundColor:THEME_COLORS.components.menu,border:`${on.spacing(1)} solid ${THEME_COLORS.components.menuBorder}`,margin:`-${on.spacing(3)} -${on.spacing(4)}`})}},MuiPickersArrowSwitcher:{styleOverrides:{button:{color:THEME_COLORS.components.buttonText,"&.Mui-disabled":{color:THEME_COLORS.components.buttonDisabledText}},spacer:({theme:on})=>({width:on.spacing(24)})}},MuiPickersCalendarHeader:{styleOverrides:{root:({theme:on})=>({margin:on.spacing(8,16,4,24),padding:0}),labelContainer:({theme:on})=>({fontSize:on.typography.h6.fontSize,fontWeight:on.typography.h6.fontWeight,lineHeight:on.typography.h6.lineHeight})}},MuiPickersLayout:{styleOverrides:{root:({theme:on})=>({"& .MuiChip-sizeMedium":{height:on.spacing(28),fontSize:"1.083rem"}})}},MuiPickersTextField:{styleOverrides:{root:{"& > .MuiPickersInputBase-root":{padding:0}}}},MuiPopper:{defaultProps:{transition:!1},styleOverrides:{root:{overflow:"visible !important"}}},MuiSkeleton:{styleOverrides:{root:{backgroundColor:THEME_COLORS.base.text}}},MuiStepContent:{styleOverrides:{root:({theme:on})=>({marginLeft:on.spacing(15),paddingLeft:on.spacing(23)})}},MuiStepConnector:{styleOverrides:{root:({theme:on})=>({marginLeft:on.spacing(15)})}},MuiStepLabel:{styleOverrides:{iconContainer:({theme:on})=>({"& > .MuiStepIcon-root":{width:on.spacing(30),height:on.spacing(30),color:THEME_COLORS.states.none,fill:THEME_COLORS.states.none},"& > .MuiStepIcon-root > .MuiStepIcon-text":{fill:THEME_COLORS.states.noneText}}),label:{fontSize:"1.25rem",fontWeight:500,lineHeight:"1.5",color:THEME_COLORS.base.heading,"&.Mui-active":{color:THEME_COLORS.base.heading},"&.Mui-disabled":{color:THEME_COLORS.base.heading}}}},MuiSwitch:{defaultProps:{size:"small"}},MuiTab:{defaultProps:{disableRipple:!0},styleOverrides:{root:({theme:on})=>({borderTopLeftRadius:0,borderTopRightRadius:0,paddingTop:0,paddingRight:on.spacing(2),paddingBottom:0,paddingLeft:on.spacing(2),minWidth:"initial",minHeight:on.spacing(30),fontWeight:"500",textTransform:"none","& > .label":{borderRadius:on.spacing(4),padding:on.spacing(4,6),color:THEME_COLORS.base.tabText,backgroundColor:THEME_COLORS.base.tab,transition:"background-color 0.2s ease, color 0.2s ease",".MuiBadge-dot":{top:0,right:on.spacing(-2)}},"&:hover > .label":{color:THEME_COLORS.base.tabHoverText,backgroundColor:THEME_COLORS.base.tabHover},"&.Mui-selected > .label":{color:THEME_COLORS.base.tabActiveText,backgroundColor:THEME_COLORS.base.tabActive},"&.Mui-selected:hover > .label":{color:THEME_COLORS.base.tabActiveText,backgroundColor:THEME_COLORS.base.tabActiveHover}})}},MuiTable:{defaultProps:{size:"small"},styleOverrides:{root:{borderCollapse:"separate"}}},MuiTableRow:{styleOverrides:{root:{"&.MuiTableRow-hover:hover":{backgroundColor:THEME_COLORS.base.itemHover}}}},MuiTableCell:{defaultProps:{size:"medium"},styleOverrides:{root:({theme:on})=>({color:THEME_COLORS.base.text,fontSize:on.typography.body1.fontSize,lineHeight:on.typography.body1.lineHeight,borderTop:`${on.spacing(1)} solid ${THEME_COLORS.base.border}`,borderBottomWidth:0}),sizeMedium:({theme:on})=>({height:on.spacing(36),padding:on.spacing(0,8)}),head:{border:0},footer:({theme:on})=>({borderBottom:`${on.spacing(1)} solid ${THEME_COLORS.components.menuBorder}`})}},MuiTabs:{defaultProps:{TabIndicatorProps:{style:{transition:"none"}}},styleOverrides:{root:({theme:on})=>({minHeight:on.spacing(36),"& .MuiTabs-flexContainer":{overflow:"unset"},"& .MuiTabs-indicator":{borderRadius:on.spacing(3,3,0,0),height:on.spacing(3),backgroundColor:THEME_COLORS.base.tabActiveBorder},"& .MuiTabs-indicator:hover":{backgroundColor:THEME_COLORS.base.tabActiveHoverBorder},"& button":{minHeight:on.spacing(36),fontSize:on.typography.body1.fontSize}})}},MuiTextField:{defaultProps:{margin:"dense"},styleOverrides:{root:{margin:0}}},MuiToggleButton:{defaultProps:{disableRipple:!0},styleOverrides:{root:({theme:on})=>({border:`${on.spacing(1)} solid ${THEME_COLORS.components.toggleButtonBorder}`,borderRadius:on.spacing(4),backgroundColor:THEME_COLORS.components.toggleButton,height:on.spacing(30),"& > .icon":{fill:THEME_COLORS.components.toggleButtonText},"&:hover":{backgroundColor:THEME_COLORS.components.toggleButtonHover,"& > .icon":{fill:THEME_COLORS.components.toggleButtonHoverText}},"&.Mui-selected":{backgroundColor:THEME_COLORS.components.toggleButtonActive,"& > .icon":{fill:THEME_COLORS.components.toggleButtonActiveText}},"&.Mui-selected:hover":{backgroundColor:THEME_COLORS.components.toggleButtonActive,"& > .icon":{fill:THEME_COLORS.components.toggleButtonActiveText}}})}},MuiToggleButtonGroup:{styleOverrides:{root:({theme:on})=>({borderRadius:on.spacing(4),backgroundColor:"transparent",flex:"0 0 auto","& .MuiToggleButtonGroup-grouped:not(:first-of-type)":{marginLeft:0,borderLeft:0}})}},MuiTooltip:{defaultProps:{disableInteractive:!0},styleOverrides:{tooltip:({theme:on})=>({border:`${on.spacing(1)} solid ${THEME_COLORS.components.tooltipBorder}`,backgroundColor:THEME_COLORS.components.tooltip,boxShadow:`0 ${on.spacing(1)} ${on.spacing(4)} 0 ${THEME_COLORS.base.shadow}`,color:THEME_COLORS.components.tooltipText,[`.${tooltipClasses.popper}[data-popper-placement*="left"] &`]:{marginRight:on.spacing(4)},[`.${tooltipClasses.popper}[data-popper-placement*="right"] &`]:{marginLeft:on.spacing(4)},[`.${tooltipClasses.popper}[data-popper-placement*="top"] &`]:{marginBottom:on.spacing(4)},[`.${tooltipClasses.popper}[data-popper-placement*="bottom"] &`]:{marginTop:on.spacing(4)}})}},MuiToolbar:{defaultProps:{variant:"dense"},styleOverrides:{root:({theme:on})=>({width:"100%",height:on.spacing(36),minHeight:on.spacing(36),paddingLeft:0,paddingRight:0,"@media (min-width: 600px)":{paddingLeft:0,paddingRight:0}})}},MuiTypography:{defaultProps:{variant:"body1"},styleOverrides:{root:{"&.ellipsis":{overflow:"hidden",textAlign:"start",textOverflow:"ellipsis",whiteSpace:"nowrap"}},h1:{"&.MuiTypography-root.MuiTypography-h1":{color:THEME_COLORS.base.heading}},h2:{"&.MuiTypography-root.MuiTypography-h2":{color:THEME_COLORS.base.heading}},h3:{"&.MuiTypography-root.MuiTypography-h3":{color:THEME_COLORS.base.heading}},h4:{"&.MuiTypography-root.MuiTypography-h4":{color:THEME_COLORS.base.heading}},h5:{"&.MuiTypography-root.MuiTypography-h5":{color:THEME_COLORS.base.heading}},h6:{"&.MuiTypography-root.MuiTypography-h6":{color:THEME_COLORS.base.heading}},subtitle1:{"&.MuiTypography-root.MuiTypography-subtitle1":{color:THEME_COLORS.base.textAlt}},subtitle2:{"&.MuiTypography-root.MuiTypography-subtitle2":{color:THEME_COLORS.base.textAlt}},body1:{"&.MuiTypography-root.MuiTypography-body1":{color:THEME_COLORS.base.text}},body2:{"&.MuiTypography-root.MuiTypography-body2":{color:THEME_COLORS.base.text}}}}}});function createNamedContext(on,In){const Rn=reactExports.createContext(on);return Rn.displayName=In,Rn}const COMPONENTS_CONTAINER_ID="components",ROOT_CONTAINER_ID="root",APP_LICENSE="ChilliCream License 1.0",APP_LICENSE_URL="https://chillicream.com/licensing/chillicream-license",APP_NAME="Nitro",APP_VERSION$1="30.0.0",APP_SCHEME="chillicream-nitro",APP_SIGNIN_PATH="signin-redirect",APP_GRAPHQL_CLIENT_ID="Q2xpZW50Cmc5ZjAwOTFmNTY5NmQ0NTZkOWUwZDQ0ZDMzYjJhZDJlOA==",COMPANY_NAME="ChilliCream, Inc.",COMPANY_URL="https://chillicream.com",cloudUriPattern=new RegExp("^https?:\\/\\/.*?\\.(bananacakepop\\.com|chillicream\\.com|chillicream\\.cloud)","i"),IS_RUNNING_IN_CLOUD=cloudUriPattern?.test(self.origin)??!1,IS_RUNNING_IN_ELECTRON=navigator.userAgent.indexOf("Electron")>=0,APP_TYPE=IS_RUNNING_IN_CLOUD?"cloud":IS_RUNNING_IN_ELECTRON?"app":"middleware",APP_AGENT=`${APP_NAME}/${APP_VERSION$1} (${APP_TYPE})`,OS_NAME=getOsName(),IS_MAC_LIKE=isMacLike();function getOsName(){return navigator.userAgent.indexOf("Win")>=0?"Windows":navigator.userAgent.indexOf("Mac")>=0?"macOS":navigator.userAgent.indexOf("X11")>=0||navigator.userAgent.indexOf("Linux")>=0?"Linux":"Unknown"}function isMacLike(){const on=navigator.userAgent.toLowerCase();return on.includes("mac os")||on.includes("ipad")}const CONTEXT_NOT_INITIALIZED="Context not initialized",HEADER_ACCEPT="Accept",HEADER_ACCEPT_ENCODING="Accept-Encoding",HEADER_AUTHORIZATION="Authorization",HEADER_CONTENT_TYPE="Content-Type",HEADER_FUSION_OPERATION_PLAN="Fusion-Operation-Plan",HEADER_ORIGIN="Origin",HEADER_SET_COOKIE="Set-Cookie",HEADER_USER_AGENT="User-Agent",HTTP_SCHEME_PATTERN=/^https?:\/\//i,HTTP_SECURE_SCHEME_PATTERN=/^https:\/\//i,WS_SCHEME_PATTERN=/^wss?:\/\//i,INTERPOLATION_PATTERN=/({{\s*[a-z0-9_\-|.:+#$!?;,]+\s*}})/gi,INTERPOLATION_VARIABLE_NAME_PATTERN=/{{\s*([a-z0-9_\-|.:+#$!?;,]+)\s*}}/gi,INTERPOLATION_EXPRESSION_PATTERN=/({{)(\s*)([a-z0-9_\-|.:+#$!?;,]+)(\s*)(}})/gi,FUSION_OPERATION_PLAN_HEADER_NAME_PATTERN=/fusion-operation-plan/i,STARTS_WITH_INTERPOLATION_PATTERN=/^{{/i,VALID_NAME_PATTERN=/^[a-z0-9]{1}[_\-&+.:#!/\\()[\]{}a-z0-9\s]{0,63}$/i,TWENTY_FIVE_MILLISECONDS=25,FIFTY_MILLISECONDS=50,ONE_HUNDRED_MILLISECONDS=100,TWO_HUNDRED_MILLISECONDS=200,TWO_HUNDRED_FIFTY_MILLISECONDS=250,THREE_HUNDRED_MILLISECONDS=300,FIVE_HUNDRED_MILLISECONDS=500,ONE_SECOND$1=1e3,TWO_SECONDS=2e3,FIVE_SECONDS=5e3,TEN_SECONDS=1e4,THIRTY_SECONDS=3e4,ONE_MINUTE$1=6e4,TWO_MINUTES=12e4,FIVE_MINUTES=3e5,SIX_HOURS=216e5,PERSONAL_ORGANIZATION_ID="personal",PERSONAL_WORKSPACE_TENANT="personal";function getDuration(on){return on?on>0&&on<1?"~1 ms":on>0&&on<ONE_SECOND$1?on+" ms":on>=ONE_SECOND$1&&on<=ONE_MINUTE$1?Math.round(on/ONE_SECOND$1)+" sec":Math.round(on/ONE_MINUTE$1)+" min":"N/A"}function round$5(on,In){const Rn=Math.pow(10,In);return Math.round(on*Rn)/Rn}function getSize$2(on){return on?on<1e3?on+" B":on>=1e3&&on<1e6?round$5(on/1e3,1)+" KB":on>=1e6&&on<1e9?round$5(on/1e6,1)+" MB":round$5(on/1e9,1)+" GB":"N/A"}const ABORT_ERROR_NAME="AbortError",ABORT_ERROR=new DOMException("Action cancelled",ABORT_ERROR_NAME),TIMEOUT_ABORT_ERROR_MESSAGE="Action timed out",TIMEOUT_ABORT_ERROR=new DOMException(TIMEOUT_ABORT_ERROR_MESSAGE,ABORT_ERROR_NAME);class TimeoutAbortSignal{#e;#t;#r;constructor(In,Rn){this.#e=In,this.#t=Rn}get aborted(){return this.#e.aborted}get cancelled(){return this.#t()}get onabort(){return this.#e.onabort}get reason(){return this.#e.reason}dispatchEvent(In){return this.#e.dispatchEvent(In)}throwIfAborted(){this.#e.throwIfAborted()}toAbortSignal(){return this.#e}toPromise(){if(this.#r)return this.#r;const In=this;let Rn=!1;return this.#r=new Promise((Mn,Ln)=>{if(In.aborted){Rn=!0,Ln(TIMEOUT_ABORT_ERROR);return}if(In.cancelled){Rn=!0,Mn();return}function Hn(){In.removeEventListener("abort",Hn),In.removeEventListener("cancelled",jn),Rn||(Rn=!0,Ln(TIMEOUT_ABORT_ERROR))}function jn(){In.removeEventListener("abort",Hn),In.removeEventListener("cancelled",jn),Rn||(Rn=!0,Mn())}In.addEventListener("abort",Hn),In.addEventListener("cancelled",jn)}),this.#r}addEventListener(In,Rn,Mn){this.#e.addEventListener(In,Rn,Mn)}removeEventListener(In,Rn,Mn){this.#e.removeEventListener(In,Rn,Mn)}}class TimeoutAbortController{_controller=new AbortController;_signal=new TimeoutAbortSignal(this._controller.signal,()=>this._cancelled);_cancelled=!1;_timeoutHandle;constructor(In){this._timeoutHandle=self.setTimeout(()=>{this.abort(TIMEOUT_ABORT_ERROR_MESSAGE)},In)}get signal(){return this._signal}abort(In){this._controller.abort(In)}cancel(){this._cancelled=!0,self.clearTimeout(this._timeoutHandle),this._signal.dispatchEvent(new Event("cancelled"))}}function isAbortError(on){return on instanceof DOMException&&on.name===ABORT_ERROR_NAME}function isTimeoutAbortError(on){return isAbortError(on)&&on.message===TIMEOUT_ABORT_ERROR_MESSAGE}function linkAbortSignals(on,In){const Rn=new AbortController;if(on.aborted||In.aborted)Rn.abort(on.reason??In.reason);else{let Mn=function(Hn){return()=>{Rn.signal.aborted||Rn.abort(Hn.reason)}},Ln=function(){Rn.signal.removeEventListener("abort",Ln),on.removeEventListener("abort",Mn(on)),In.removeEventListener("abort",Mn(In))};Rn.signal.addEventListener("abort",Ln),on.addEventListener("abort",Mn(on)),In.addEventListener("abort",Mn(In))}return Rn.signal}function createAbortScope(on,In,Rn){return Rn?Rn.aborted?Promise.reject(ABORT_ERROR):(Rn.addEventListener("abort",on),In().finally(()=>{Rn.removeEventListener("abort",on)})):In()}function distinct(on){return on.filter((In,Rn,Mn)=>Mn.indexOf(In)===Rn)}function equals(on,In){let Rn=on.length;if(Rn!==In.length)return!1;for(;Rn--;)if(on[Rn]!==In[Rn])return!1;return!0}class LinkedListImplementation{stack;constructor(In){this.stack=In?[...In]:[]}append(In){return this.stack.indexOf(In)===-1&&this.stack.push(In),this}find(In){const Rn=this.stack.indexOf(In);return Rn!==-1?this.stack[Rn]:null}getFirst(){return this.stack[0]||null}setFirst(In){const Rn=this.stack.indexOf(In);return Rn!==0&&In&&(Rn===-1?this.stack.splice(0,0,In):this.stack.splice(0,0,this.stack.splice(Rn,1).pop())),this}getLast(){return this.stack.length>0?this.stack[this.stack.length-1]:null}setLast(In){const Rn=this.stack.indexOf(In),Mn=this.stack.length-1;return(Rn===-1||Rn!==Mn)&&In&&(Rn===-1?this.stack.push(In):this.stack.push(this.stack.splice(Rn,1).pop())),this}count(){return this.stack.length}remove(...In){return In.forEach(Rn=>{const Mn=this.stack.indexOf(Rn);Mn!==-1&&this.stack.splice(Mn,1)}),this}update(In,Rn){const Mn=this.stack.indexOf(In);return Mn!==-1&&this.stack.splice(Mn,1,Rn),this}toArray(){return[].concat(this.stack)}}function createLinkedList(on){return new LinkedListImplementation(on)}function encodeBase64$1(on,In){return Buffer$1.from(on,In).toString("base64")}function decodeBase64(on,In){return Buffer$1.from(on,"base64").toString(In)}function beautifyEndpoint(on,In){if(on?.length){let Rn=on?.trim().replace(HTTP_SCHEME_PATTERN,"");const Mn=Rn.indexOf("/");return Mn===-1?Rn:Rn.substring(0,Mn)}return In??""}var inherits_browser={exports:{}},hasRequiredInherits_browser;function requireInherits_browser(){return hasRequiredInherits_browser||(hasRequiredInherits_browser=1,typeof Object.create=="function"?inherits_browser.exports=function(In,Rn){Rn&&(In.super_=Rn,In.prototype=Object.create(Rn.prototype,{constructor:{value:In,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(In,Rn){if(Rn){In.super_=Rn;var Mn=function(){};Mn.prototype=Rn.prototype,In.prototype=new Mn,In.prototype.constructor=In}}),inherits_browser.exports}var safeBuffer$1={exports:{}},dist$2={},hasRequiredDist;function requireDist(){return hasRequiredDist||(hasRequiredDist=1,function(on){Object.defineProperties(on,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var In={},Rn={};Rn.byteLength=vi,Rn.toByteArray=mi,Rn.fromByteArray=Ei;for(var Mn=[],Ln=[],Hn=typeof Uint8Array<"u"?Uint8Array:Array,jn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wn=0,Yn=jn.length;Wn<Yn;++Wn)Mn[Wn]=jn[Wn],Ln[jn.charCodeAt(Wn)]=Wn;Ln[45]=62,Ln[95]=63;function hi(xi){var Ti=xi.length;if(Ti%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Ai=xi.indexOf("=");Ai===-1&&(Ai=Ti);var Mi=Ai===Ti?0:4-Ai%4;return[Ai,Mi]}function vi(xi){var Ti=hi(xi),Ai=Ti[0],Mi=Ti[1];return(Ai+Mi)*3/4-Mi}function gi(xi,Ti,Ai){return(Ti+Ai)*3/4-Ai}function mi(xi){var Ti,Ai=hi(xi),Mi=Ai[0],Ni=Ai[1],Bi=new Hn(gi(xi,Mi,Ni)),Hi=0,Ui=Ni>0?Mi-4:Mi,Wi;for(Wi=0;Wi<Ui;Wi+=4)Ti=Ln[xi.charCodeAt(Wi)]<<18|Ln[xi.charCodeAt(Wi+1)]<<12|Ln[xi.charCodeAt(Wi+2)]<<6|Ln[xi.charCodeAt(Wi+3)],Bi[Hi++]=Ti>>16&255,Bi[Hi++]=Ti>>8&255,Bi[Hi++]=Ti&255;return Ni===2&&(Ti=Ln[xi.charCodeAt(Wi)]<<2|Ln[xi.charCodeAt(Wi+1)]>>4,Bi[Hi++]=Ti&255),Ni===1&&(Ti=Ln[xi.charCodeAt(Wi)]<<10|Ln[xi.charCodeAt(Wi+1)]<<4|Ln[xi.charCodeAt(Wi+2)]>>2,Bi[Hi++]=Ti>>8&255,Bi[Hi++]=Ti&255),Bi}function yi(xi){return Mn[xi>>18&63]+Mn[xi>>12&63]+Mn[xi>>6&63]+Mn[xi&63]}function bi(xi,Ti,Ai){for(var Mi,Ni=[],Bi=Ti;Bi<Ai;Bi+=3)Mi=(xi[Bi]<<16&16711680)+(xi[Bi+1]<<8&65280)+(xi[Bi+2]&255),Ni.push(yi(Mi));return Ni.join("")}function Ei(xi){for(var Ti,Ai=xi.length,Mi=Ai%3,Ni=[],Bi=16383,Hi=0,Ui=Ai-Mi;Hi<Ui;Hi+=Bi)Ni.push(bi(xi,Hi,Hi+Bi>Ui?Ui:Hi+Bi));return Mi===1?(Ti=xi[Ai-1],Ni.push(Mn[Ti>>2]+Mn[Ti<<4&63]+"==")):Mi===2&&(Ti=(xi[Ai-2]<<8)+xi[Ai-1],Ni.push(Mn[Ti>>10]+Mn[Ti>>4&63]+Mn[Ti<<2&63]+"=")),Ni.join("")}var _i={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */_i.read=function(xi,Ti,Ai,Mi,Ni){var Bi,Hi,Ui=Ni*8-Mi-1,Wi=(1<<Ui)-1,ji=Wi>>1,Oi=-7,Li=Ai?Ni-1:0,Ci=Ai?-1:1,Ri=xi[Ti+Li];for(Li+=Ci,Bi=Ri&(1<<-Oi)-1,Ri>>=-Oi,Oi+=Ui;Oi>0;Bi=Bi*256+xi[Ti+Li],Li+=Ci,Oi-=8);for(Hi=Bi&(1<<-Oi)-1,Bi>>=-Oi,Oi+=Mi;Oi>0;Hi=Hi*256+xi[Ti+Li],Li+=Ci,Oi-=8);if(Bi===0)Bi=1-ji;else{if(Bi===Wi)return Hi?NaN:(Ri?-1:1)*(1/0);Hi=Hi+Math.pow(2,Mi),Bi=Bi-ji}return(Ri?-1:1)*Hi*Math.pow(2,Bi-Mi)},_i.write=function(xi,Ti,Ai,Mi,Ni,Bi){var Hi,Ui,Wi,ji=Bi*8-Ni-1,Oi=(1<<ji)-1,Li=Oi>>1,Ci=Ni===23?Math.pow(2,-24)-Math.pow(2,-77):0,Ri=Mi?0:Bi-1,ki=Mi?1:-1,Vi=Ti<0||Ti===0&&1/Ti<0?1:0;for(Ti=Math.abs(Ti),isNaN(Ti)||Ti===1/0?(Ui=isNaN(Ti)?1:0,Hi=Oi):(Hi=Math.floor(Math.log(Ti)/Math.LN2),Ti*(Wi=Math.pow(2,-Hi))<1&&(Hi--,Wi*=2),Hi+Li>=1?Ti+=Ci/Wi:Ti+=Ci*Math.pow(2,1-Li),Ti*Wi>=2&&(Hi++,Wi/=2),Hi+Li>=Oi?(Ui=0,Hi=Oi):Hi+Li>=1?(Ui=(Ti*Wi-1)*Math.pow(2,Ni),Hi=Hi+Li):(Ui=Ti*Math.pow(2,Li-1)*Math.pow(2,Ni),Hi=0));Ni>=8;xi[Ai+Ri]=Ui&255,Ri+=ki,Ui/=256,Ni-=8);for(Hi=Hi<<Ni|Ui,ji+=Ni;ji>0;xi[Ai+Ri]=Hi&255,Ri+=ki,Hi/=256,ji-=8);xi[Ai+Ri-ki]|=Vi*128};/*!
|
|
4270
|
+
${THEME_COLORS.components.buttonIconBorder}`,color:THEME_COLORS.components.buttonIconText,backgroundColor:THEME_COLORS.components.buttonIcon,"&:disabled":{pointerEvents:"none",cursor:"default",opacity:.5,"&:hover":{backgroundColor:"initial"}},"& > .icon":{fill:THEME_COLORS.components.buttonIconText}}),sizeSmall:({theme:on})=>({width:on.spacing(30),height:on.spacing(30)})}},MuiInputAdornment:{styleOverrides:{root:({theme:on})=>({flexShrink:0,justifyContent:"center",margin:0,"&.MuiInputAdornment-sizeSmall":{minWidth:on.spacing(28),minHeight:on.spacing(28),"&.MuiInputAdornment-positionStart":{marginRight:on.spacing(-6)}}})}},MuiInputBase:{defaultProps:{margin:"dense"},styleOverrides:{root:({theme:on})=>({borderRadius:on.spacing(4),height:on.spacing(30),fontSize:on.typography.body1.fontSize,lineHeight:on.typography.body1.lineHeight,backgroundColor:THEME_COLORS.components.field,color:THEME_COLORS.components.fieldText,transition:"background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease","&.MuiInputBase-multiline":{height:"auto"},"&.Mui-disabled, &.Mui-disabled:hover":{backgroundColor:THEME_COLORS.components.fieldDisabled,color:THEME_COLORS.components.fieldDisabledText,"& .MuiInputBase-input::placeholder":{color:THEME_COLORS.components.fieldDisabledPlaceholder}},"&.Mui-focused, &:hover":{backgroundColor:THEME_COLORS.components.fieldHover,color:THEME_COLORS.components.fieldHoverText,"& .MuiInputBase-input::placeholder":{color:THEME_COLORS.components.fieldHoverPlaceholder}},"&.Mui-error":{color:THEME_COLORS.states.failure}}),adornedStart:{"& .icon":{fill:THEME_COLORS.components.fieldText},"&:Mui-disabled .icon":{fill:THEME_COLORS.components.fieldDisabled},"&.Mui-error .icon":{fill:THEME_COLORS.states.failure}},adornedEnd:{"& .icon":{fill:THEME_COLORS.components.fieldText},"&:Mui-disabled .icon":{fill:THEME_COLORS.components.fieldDisabled},"&.Mui-error .icon":{fill:THEME_COLORS.states.failure}},input:({theme:on})=>({height:on.spacing(16),padding:on.spacing(6,8),"&::placeholder":{opacity:1,color:THEME_COLORS.components.fieldPlaceholder,transition:"color 0.2s ease"},"&:autofill":{transitionProperty:"background-color, color",transitionDelay:"86400s"}})}},MuiInputLabel:{defaultProps:{margin:"dense",shrink:!0},styleOverrides:{root:({theme:on})=>({position:"relative",transform:"none",fontSize:on.typography.body1.fontSize,fontWeight:on.typography.fontWeightMedium,color:THEME_COLORS.components.labelText,"&.Mui-focused":{color:THEME_COLORS.components.labelText},"&.Mui-error":{color:THEME_COLORS.states.failure}})}},MuiLinearProgress:{styleOverrides:{root:({theme:on})=>({height:on.spacing(2),"&.impact > .MuiLinearProgress-barColorPrimary":{backgroundColor:THEME_COLORS.chart.impact},"&.impact.MuiLinearProgress-colorPrimary":{backgroundColor:THEME_COLORS.chart.impactBackground}}),barColorPrimary:{backgroundColor:THEME_COLORS.base.spinner},colorPrimary:{backgroundColor:THEME_COLORS.base.separator}}},MuiLink:{styleOverrides:{root:({theme:on})=>({textDecoration:"underline",whiteSpace:"nowrap","& > .icon":{flex:`0 0 ${on.spacing(14)}`,width:on.spacing(14),height:on.spacing(14)},"&:hover":{textDecoration:"none"},"&.MuiTypography-root":{display:"inline-flex",gap:on.spacing(4),alignItems:"center",cursor:"pointer",color:THEME_COLORS.components.linkText+" !important",textDecorationColor:THEME_COLORS.components.linkText+" !important","& > .icon.link":{fill:THEME_COLORS.components.linkText}},"&.MuiTypography-root:hover":{color:THEME_COLORS.components.linkHoverText+" !important",textDecorationColor:THEME_COLORS.components.linkHoverText+" !important","& > .icon.link":{fill:THEME_COLORS.components.linkHoverText}}}),button:{"&.MuiTypography-root, .MuiPaper-root &.MuiTypography-root":{cursor:"pointer",color:THEME_COLORS.components.linkText,textDecorationColor:THEME_COLORS.components.linkText,"& > .icon.link":{fill:THEME_COLORS.components.linkText}},"&.MuiTypography-root:hover":{color:THEME_COLORS.components.linkHoverText,textDecorationColor:THEME_COLORS.components.linkHoverText,"& > .icon.link":{fill:THEME_COLORS.components.linkHoverText}}}}},MuiList:{defaultProps:{dense:!0},styleOverrides:{root:({theme:on})=>({overflow:"visible",padding:on.spacing(0,8),"& .MuiList-root":{padding:on.spacing(0)}})}},MuiListSubheader:{defaultProps:{disableSticky:!0},styleOverrides:{root:({theme:on})=>({padding:on.spacing(4,12),fontSize:on.typography.body2.fontSize,fontWeight:600,lineHeight:on.typography.body2.lineHeight,color:THEME_COLORS.base.textAlt,backgroundColor:"unset"})}},MuiListItemButton:{styleOverrides:{root:({theme:on})=>({display:"flex",alignItems:"center",gap:on.spacing(8),borderRadius:on.spacing(4),height:on.spacing(32),padding:on.spacing(3,12),overflow:"visible",fontSize:on.typography.body1.fontSize,lineHeight:on.typography.body1.lineHeight,backgroundColor:THEME_COLORS.base.tab,"&:hover":{backgroundColor:THEME_COLORS.base.tabHover,"& > .MuiListItemIcon-root > .icon":{fill:THEME_COLORS.base.tabHoverText},"& > .MuiListItemText-root > .MuiListItemText-primary":{color:THEME_COLORS.base.tabHoverText}},"&.Mui-selected":{position:"relative",backgroundColor:THEME_COLORS.base.tabActiveHover,"&:hover":{backgroundColor:THEME_COLORS.base.tabActiveHover,"&::before":{backgroundColor:THEME_COLORS.base.tabActiveHoverBorder},"& > .MuiListItemIcon-root > .icon":{fill:THEME_COLORS.base.tabActiveHoverText},"& > .MuiListItemText-root > .MuiListItemText-primary":{color:THEME_COLORS.base.tabActiveHoverText}},"&::before":{position:"absolute",top:on.spacing(2),bottom:on.spacing(2),left:on.spacing(-8),width:on.spacing(4),pointerEvents:"none",content:'""',borderRadius:on.spacing(2),backgroundColor:THEME_COLORS.base.tabActiveBorder},"& > .MuiListItemIcon-root > .icon":{fill:THEME_COLORS.base.tabActiveText},"& > .MuiListItemText-root > .MuiListItemText-primary":{color:THEME_COLORS.base.tabActiveText}},"& > .MuiListItemIcon-root > .icon":{fill:THEME_COLORS.base.tabText},"& > .MuiListItemText-root > .MuiListItemText-primary":{color:THEME_COLORS.base.tabText}})}},MuiListItemIcon:{styleOverrides:{root:({theme:on})=>({"&.MuiListItemIcon-root":{display:"flex",alignItems:"center",justifyContent:"center",minWidth:on.spacing(16)}})}},MuiListItemText:{styleOverrides:{root:({theme:on})=>({"&.child-selected > .MuiListItemText-primary":{fontWeight:500},"& .MuiListItemText-primary":{display:"flex",flex:"1 1 auto",flexDirection:"row",alignItems:"center",gap:on.spacing(7),fontSize:on.typography.body1.fontSize,fontWeight:on.typography.body1.fontWeight,lineHeight:on.typography.body1.lineHeight}})}},MuiListItemSecondaryAction:{styleOverrides:{root:({theme:on})=>({"& .MuiTypography-body2":{fontSize:on.typography.body1.fontSize,lineHeight:on.typography.body1.lineHeight}})}},MuiMenu:{defaultProps:{MenuListProps:{disablePadding:!0},transitionDuration:0,slotProps:{paper:{elevation:1}}},styleOverrides:{root:{pointerEvents:"none"},list:({theme:on})=>({minWidth:on.spacing(180),padding:on.spacing(4)}),paper:({theme:on})=>({padding:0,pointerEvents:"auto",color:THEME_COLORS.base.text,backgroundColor:THEME_COLORS.components.menu,border:`${on.spacing(1)} solid ${THEME_COLORS.components.menuBorder}`})}},MuiMenuItem:{defaultProps:{disableRipple:!0,disableTouchRipple:!0},styleOverrides:{root:({theme:on})=>({height:on.spacing(24),minHeight:"auto",boxSizing:"content-box",borderRadius:on.spacing(4),padding:on.spacing(3,12),fontSize:on.typography.body1.fontSize,fontWeight:on.typography.body1.fontWeight,lineHeight:on.typography.body1.lineHeight,color:THEME_COLORS.components.menuItemText,backgroundColor:THEME_COLORS.components.menuItem,"&:hover, &:focus":{backgroundColor:THEME_COLORS.components.menuItemHover},"&.Mui-focusVisible":{color:THEME_COLORS.components.menuItemHoverText,backgroundColor:THEME_COLORS.components.menuItemHover},"&.Mui-selected, &.Mui-selected:hover":{color:THEME_COLORS.components.menuItemHoverText,backgroundColor:THEME_COLORS.components.menuItemHover},"+.MuiDivider-root":{marginTop:on.spacing(4),marginBottom:on.spacing(4),borderBottomWidth:on.spacing(1),borderColor:THEME_COLORS.components.menuSeparator},"& .MuiListItemSecondaryAction-root":{right:on.spacing(12)},"& > .MuiListItemIcon-root":{marginRight:on.spacing(6),minWidth:on.spacing(16)}})}},MuiMultiSectionDigitalClockSection:{styleOverrides:{root:({theme:on})=>({fontSize:on.typography.body1.fontSize,fontWeight:on.typography.body1.fontWeight,lineHeight:on.typography.body1.lineHeight,padding:on.spacing(4)}),item:({theme:on})=>({margin:"0 !important",width:"initial",height:on.spacing(24),padding:on.spacing(3,12),"&:not(.Mui-selected):hover, &:not(.Mui-selected):focus":{backgroundColor:THEME_COLORS.components.menuItemHover,color:THEME_COLORS.components.menuItemHoverText},"&.Mui-selected":{backgroundColor:THEME_COLORS.components.buttonPrimary,color:THEME_COLORS.components.buttonPrimaryText},"&.Mui-selected:hover, &.Mui-selected:focus":{backgroundColor:THEME_COLORS.components.buttonPrimaryHover,color:THEME_COLORS.components.buttonPrimaryHoverText}})}},MuiOutlinedInput:{defaultProps:{margin:"dense"},styleOverrides:{root:({theme:on})=>({"&.Mui-disabled .MuiOutlinedInput-notchedOutline, &.Mui-disabled:hover .MuiOutlinedInput-notchedOutline":{borderColor:THEME_COLORS.components.fieldDisabledBorder},"&.Mui-focused .MuiOutlinedInput-notchedOutline, &:hover .MuiOutlinedInput-notchedOutline":{borderWidth:on.spacing(1),borderColor:THEME_COLORS.components.fieldHoverBorder},"&.Mui-error .MuiOutlinedInput-notchedOutline, &.Mui-error:hover .MuiOutlinedInput-notchedOutline, &.Mui-error.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:THEME_COLORS.states.failure}}),input:({theme:on})=>({height:on.spacing(16),padding:on.spacing(6,8)}),multiline:({theme:on})=>({padding:on.spacing(6,8),"& .MuiOutlinedInput-input":{padding:0,height:"auto",overflow:"auto !important","&::-webkit-scrollbar":{display:"block"}}}),notchedOutline:{top:0,borderColor:THEME_COLORS.components.fieldBorder,"& > legend":{display:"none"}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0}}},MuiPagination:{defaultProps:{shape:"rounded"}},MuiPaginationItem:{defaultProps:{size:"small"},styleOverrides:{root:({theme:on})=>({minWidth:on.spacing(30),height:on.spacing(30)}),text:({theme:on})=>({borderStyle:"solid",borderWidth:on.spacing(1),borderColor:"transparent",color:THEME_COLORS.components.buttonText,backgroundColor:"transparent","&:focus, &:focus.Mui-selected":{borderColor:THEME_COLORS.components.buttonHoverBorder,color:THEME_COLORS.components.buttonHoverText,backgroundColor:THEME_COLORS.components.buttonHover},"&:hover, &.Mui-selected":{borderColor:THEME_COLORS.components.buttonHoverBorder,color:THEME_COLORS.components.buttonHoverText,backgroundColor:THEME_COLORS.components.buttonHover},"&:disabled":{borderColor:"transparent",color:THEME_COLORS.components.buttonDisabledText,backgroundColor:"transparent"}})}},MuiPaper:{styleOverrides:{root:({theme:on})=>({"&.Menu":{padding:on.spacing(4,0),color:THEME_COLORS.base.text,backgroundColor:THEME_COLORS.components.menu,border:`${on.spacing(1)} solid ${THEME_COLORS.components.menuBorder}`},"&.MuiPaper-rounded":{borderRadius:on.spacing(4)}})}},MuiPickerPopper:{styleOverrides:{root:({theme:on})=>({padding:on.spacing(4),overflow:"visible"}),paper:({theme:on})=>({color:THEME_COLORS.base.text,backgroundColor:THEME_COLORS.components.menu,border:`${on.spacing(1)} solid ${THEME_COLORS.components.menuBorder}`,margin:`-${on.spacing(3)} -${on.spacing(4)}`})}},MuiPickersArrowSwitcher:{styleOverrides:{button:{color:THEME_COLORS.components.buttonText,"&.Mui-disabled":{color:THEME_COLORS.components.buttonDisabledText}},spacer:({theme:on})=>({width:on.spacing(24)})}},MuiPickersCalendarHeader:{styleOverrides:{root:({theme:on})=>({margin:on.spacing(8,16,4,24),padding:0}),labelContainer:({theme:on})=>({fontSize:on.typography.h6.fontSize,fontWeight:on.typography.h6.fontWeight,lineHeight:on.typography.h6.lineHeight})}},MuiPickersLayout:{styleOverrides:{root:({theme:on})=>({"& .MuiChip-sizeMedium":{height:on.spacing(28),fontSize:"1.083rem"}})}},MuiPickersTextField:{styleOverrides:{root:{"& > .MuiPickersInputBase-root":{padding:0}}}},MuiPopper:{defaultProps:{transition:!1},styleOverrides:{root:{overflow:"visible !important"}}},MuiSkeleton:{styleOverrides:{root:{backgroundColor:THEME_COLORS.base.text}}},MuiStepContent:{styleOverrides:{root:({theme:on})=>({marginLeft:on.spacing(15),paddingLeft:on.spacing(23)})}},MuiStepConnector:{styleOverrides:{root:({theme:on})=>({marginLeft:on.spacing(15)})}},MuiStepLabel:{styleOverrides:{iconContainer:({theme:on})=>({"& > .MuiStepIcon-root":{width:on.spacing(30),height:on.spacing(30),color:THEME_COLORS.states.none,fill:THEME_COLORS.states.none},"& > .MuiStepIcon-root > .MuiStepIcon-text":{fill:THEME_COLORS.states.noneText}}),label:{fontSize:"1.25rem",fontWeight:500,lineHeight:"1.5",color:THEME_COLORS.base.heading,"&.Mui-active":{color:THEME_COLORS.base.heading},"&.Mui-disabled":{color:THEME_COLORS.base.heading}}}},MuiSwitch:{defaultProps:{size:"small"}},MuiTab:{defaultProps:{disableRipple:!0},styleOverrides:{root:({theme:on})=>({borderTopLeftRadius:0,borderTopRightRadius:0,paddingTop:0,paddingRight:on.spacing(2),paddingBottom:0,paddingLeft:on.spacing(2),minWidth:"initial",minHeight:on.spacing(30),fontWeight:"500",textTransform:"none","& > .label":{borderRadius:on.spacing(4),padding:on.spacing(4,6),color:THEME_COLORS.base.tabText,backgroundColor:THEME_COLORS.base.tab,transition:"background-color 0.2s ease, color 0.2s ease",".MuiBadge-dot":{top:0,right:on.spacing(-2)}},"&:hover > .label":{color:THEME_COLORS.base.tabHoverText,backgroundColor:THEME_COLORS.base.tabHover},"&.Mui-selected > .label":{color:THEME_COLORS.base.tabActiveText,backgroundColor:THEME_COLORS.base.tabActive},"&.Mui-selected:hover > .label":{color:THEME_COLORS.base.tabActiveText,backgroundColor:THEME_COLORS.base.tabActiveHover}})}},MuiTable:{defaultProps:{size:"small"},styleOverrides:{root:{borderCollapse:"separate"}}},MuiTableRow:{styleOverrides:{root:{"&.MuiTableRow-hover:hover":{backgroundColor:THEME_COLORS.base.itemHover}}}},MuiTableCell:{defaultProps:{size:"medium"},styleOverrides:{root:({theme:on})=>({color:THEME_COLORS.base.text,fontSize:on.typography.body1.fontSize,lineHeight:on.typography.body1.lineHeight,borderTop:`${on.spacing(1)} solid ${THEME_COLORS.base.border}`,borderBottomWidth:0}),sizeMedium:({theme:on})=>({height:on.spacing(36),padding:on.spacing(0,8)}),head:{border:0},footer:({theme:on})=>({borderBottom:`${on.spacing(1)} solid ${THEME_COLORS.components.menuBorder}`})}},MuiTabs:{defaultProps:{TabIndicatorProps:{style:{transition:"none"}}},styleOverrides:{root:({theme:on})=>({minHeight:on.spacing(36),"& .MuiTabs-flexContainer":{overflow:"unset"},"& .MuiTabs-indicator":{borderRadius:on.spacing(3,3,0,0),height:on.spacing(3),backgroundColor:THEME_COLORS.base.tabActiveBorder},"& .MuiTabs-indicator:hover":{backgroundColor:THEME_COLORS.base.tabActiveHoverBorder},"& button":{minHeight:on.spacing(36),fontSize:on.typography.body1.fontSize}})}},MuiTextField:{defaultProps:{margin:"dense"},styleOverrides:{root:{margin:0}}},MuiToggleButton:{defaultProps:{disableRipple:!0},styleOverrides:{root:({theme:on})=>({border:`${on.spacing(1)} solid ${THEME_COLORS.components.toggleButtonBorder}`,borderRadius:on.spacing(4),backgroundColor:THEME_COLORS.components.toggleButton,height:on.spacing(30),"& > .icon":{fill:THEME_COLORS.components.toggleButtonText},"&:hover":{backgroundColor:THEME_COLORS.components.toggleButtonHover,"& > .icon":{fill:THEME_COLORS.components.toggleButtonHoverText}},"&.Mui-selected":{backgroundColor:THEME_COLORS.components.toggleButtonActive,"& > .icon":{fill:THEME_COLORS.components.toggleButtonActiveText}},"&.Mui-selected:hover":{backgroundColor:THEME_COLORS.components.toggleButtonActive,"& > .icon":{fill:THEME_COLORS.components.toggleButtonActiveText}}})}},MuiToggleButtonGroup:{styleOverrides:{root:({theme:on})=>({borderRadius:on.spacing(4),backgroundColor:"transparent",flex:"0 0 auto","& .MuiToggleButtonGroup-grouped:not(:first-of-type)":{marginLeft:0,borderLeft:0}})}},MuiTooltip:{defaultProps:{disableInteractive:!0},styleOverrides:{tooltip:({theme:on})=>({border:`${on.spacing(1)} solid ${THEME_COLORS.components.tooltipBorder}`,backgroundColor:THEME_COLORS.components.tooltip,boxShadow:`0 ${on.spacing(1)} ${on.spacing(4)} 0 ${THEME_COLORS.base.shadow}`,color:THEME_COLORS.components.tooltipText,[`.${tooltipClasses.popper}[data-popper-placement*="left"] &`]:{marginRight:on.spacing(4)},[`.${tooltipClasses.popper}[data-popper-placement*="right"] &`]:{marginLeft:on.spacing(4)},[`.${tooltipClasses.popper}[data-popper-placement*="top"] &`]:{marginBottom:on.spacing(4)},[`.${tooltipClasses.popper}[data-popper-placement*="bottom"] &`]:{marginTop:on.spacing(4)}})}},MuiToolbar:{defaultProps:{variant:"dense"},styleOverrides:{root:({theme:on})=>({width:"100%",height:on.spacing(36),minHeight:on.spacing(36),paddingLeft:0,paddingRight:0,"@media (min-width: 600px)":{paddingLeft:0,paddingRight:0}})}},MuiTypography:{defaultProps:{variant:"body1"},styleOverrides:{root:{"&.ellipsis":{overflow:"hidden",textAlign:"start",textOverflow:"ellipsis",whiteSpace:"nowrap"}},h1:{"&.MuiTypography-root.MuiTypography-h1":{color:THEME_COLORS.base.heading}},h2:{"&.MuiTypography-root.MuiTypography-h2":{color:THEME_COLORS.base.heading}},h3:{"&.MuiTypography-root.MuiTypography-h3":{color:THEME_COLORS.base.heading}},h4:{"&.MuiTypography-root.MuiTypography-h4":{color:THEME_COLORS.base.heading}},h5:{"&.MuiTypography-root.MuiTypography-h5":{color:THEME_COLORS.base.heading}},h6:{"&.MuiTypography-root.MuiTypography-h6":{color:THEME_COLORS.base.heading}},subtitle1:{"&.MuiTypography-root.MuiTypography-subtitle1":{color:THEME_COLORS.base.textAlt}},subtitle2:{"&.MuiTypography-root.MuiTypography-subtitle2":{color:THEME_COLORS.base.textAlt}},body1:{"&.MuiTypography-root.MuiTypography-body1":{color:THEME_COLORS.base.text}},body2:{"&.MuiTypography-root.MuiTypography-body2":{color:THEME_COLORS.base.text}}}}}});function createNamedContext(on,In){const Rn=reactExports.createContext(on);return Rn.displayName=In,Rn}const COMPONENTS_CONTAINER_ID="components",ROOT_CONTAINER_ID="root",APP_LICENSE="ChilliCream License 1.0",APP_LICENSE_URL="https://chillicream.com/licensing/chillicream-license",APP_NAME="Nitro",APP_VERSION$1="30.0.1",APP_SCHEME="chillicream-nitro",APP_SIGNIN_PATH="signin-redirect",APP_GRAPHQL_CLIENT_ID="Q2xpZW50Cmc5ZjAwOTFmNTY5NmQ0NTZkOWUwZDQ0ZDMzYjJhZDJlOA==",COMPANY_NAME="ChilliCream, Inc.",COMPANY_URL="https://chillicream.com",cloudUriPattern=new RegExp("^https?:\\/\\/.*?\\.(bananacakepop\\.com|chillicream\\.com|chillicream\\.cloud)","i"),IS_RUNNING_IN_CLOUD=cloudUriPattern?.test(self.origin)??!1,IS_RUNNING_IN_ELECTRON=navigator.userAgent.indexOf("Electron")>=0,APP_TYPE=IS_RUNNING_IN_CLOUD?"cloud":IS_RUNNING_IN_ELECTRON?"app":"middleware",APP_AGENT=`${APP_NAME}/${APP_VERSION$1} (${APP_TYPE})`,OS_NAME=getOsName(),IS_MAC_LIKE=isMacLike();function getOsName(){return navigator.userAgent.indexOf("Win")>=0?"Windows":navigator.userAgent.indexOf("Mac")>=0?"macOS":navigator.userAgent.indexOf("X11")>=0||navigator.userAgent.indexOf("Linux")>=0?"Linux":"Unknown"}function isMacLike(){const on=navigator.userAgent.toLowerCase();return on.includes("mac os")||on.includes("ipad")}const CONTEXT_NOT_INITIALIZED="Context not initialized",HEADER_ACCEPT="Accept",HEADER_ACCEPT_ENCODING="Accept-Encoding",HEADER_AUTHORIZATION="Authorization",HEADER_CONTENT_TYPE="Content-Type",HEADER_FUSION_OPERATION_PLAN="Fusion-Operation-Plan",HEADER_ORIGIN="Origin",HEADER_SET_COOKIE="Set-Cookie",HEADER_USER_AGENT="User-Agent",HTTP_SCHEME_PATTERN=/^https?:\/\//i,HTTP_SECURE_SCHEME_PATTERN=/^https:\/\//i,WS_SCHEME_PATTERN=/^wss?:\/\//i,INTERPOLATION_PATTERN=/({{\s*[a-z0-9_\-|.:+#$!?;,]+\s*}})/gi,INTERPOLATION_VARIABLE_NAME_PATTERN=/{{\s*([a-z0-9_\-|.:+#$!?;,]+)\s*}}/gi,INTERPOLATION_EXPRESSION_PATTERN=/({{)(\s*)([a-z0-9_\-|.:+#$!?;,]+)(\s*)(}})/gi,FUSION_OPERATION_PLAN_HEADER_NAME_PATTERN=/fusion-operation-plan/i,STARTS_WITH_INTERPOLATION_PATTERN=/^{{/i,VALID_NAME_PATTERN=/^[a-z0-9]{1}[_\-&+.:#!/\\()[\]{}a-z0-9\s]{0,63}$/i,TWENTY_FIVE_MILLISECONDS=25,FIFTY_MILLISECONDS=50,ONE_HUNDRED_MILLISECONDS=100,TWO_HUNDRED_MILLISECONDS=200,TWO_HUNDRED_FIFTY_MILLISECONDS=250,THREE_HUNDRED_MILLISECONDS=300,FIVE_HUNDRED_MILLISECONDS=500,ONE_SECOND$1=1e3,TWO_SECONDS=2e3,FIVE_SECONDS=5e3,TEN_SECONDS=1e4,THIRTY_SECONDS=3e4,ONE_MINUTE$1=6e4,TWO_MINUTES=12e4,FIVE_MINUTES=3e5,SIX_HOURS=216e5,PERSONAL_ORGANIZATION_ID="personal",PERSONAL_WORKSPACE_TENANT="personal";function getDuration(on){return on?on>0&&on<1?"~1 ms":on>0&&on<ONE_SECOND$1?on+" ms":on>=ONE_SECOND$1&&on<=ONE_MINUTE$1?Math.round(on/ONE_SECOND$1)+" sec":Math.round(on/ONE_MINUTE$1)+" min":"N/A"}function round$5(on,In){const Rn=Math.pow(10,In);return Math.round(on*Rn)/Rn}function getSize$2(on){return on?on<1e3?on+" B":on>=1e3&&on<1e6?round$5(on/1e3,1)+" KB":on>=1e6&&on<1e9?round$5(on/1e6,1)+" MB":round$5(on/1e9,1)+" GB":"N/A"}const ABORT_ERROR_NAME="AbortError",ABORT_ERROR=new DOMException("Action cancelled",ABORT_ERROR_NAME),TIMEOUT_ABORT_ERROR_MESSAGE="Action timed out",TIMEOUT_ABORT_ERROR=new DOMException(TIMEOUT_ABORT_ERROR_MESSAGE,ABORT_ERROR_NAME);class TimeoutAbortSignal{#e;#t;#r;constructor(In,Rn){this.#e=In,this.#t=Rn}get aborted(){return this.#e.aborted}get cancelled(){return this.#t()}get onabort(){return this.#e.onabort}get reason(){return this.#e.reason}dispatchEvent(In){return this.#e.dispatchEvent(In)}throwIfAborted(){this.#e.throwIfAborted()}toAbortSignal(){return this.#e}toPromise(){if(this.#r)return this.#r;const In=this;let Rn=!1;return this.#r=new Promise((Mn,Ln)=>{if(In.aborted){Rn=!0,Ln(TIMEOUT_ABORT_ERROR);return}if(In.cancelled){Rn=!0,Mn();return}function Hn(){In.removeEventListener("abort",Hn),In.removeEventListener("cancelled",jn),Rn||(Rn=!0,Ln(TIMEOUT_ABORT_ERROR))}function jn(){In.removeEventListener("abort",Hn),In.removeEventListener("cancelled",jn),Rn||(Rn=!0,Mn())}In.addEventListener("abort",Hn),In.addEventListener("cancelled",jn)}),this.#r}addEventListener(In,Rn,Mn){this.#e.addEventListener(In,Rn,Mn)}removeEventListener(In,Rn,Mn){this.#e.removeEventListener(In,Rn,Mn)}}class TimeoutAbortController{_controller=new AbortController;_signal=new TimeoutAbortSignal(this._controller.signal,()=>this._cancelled);_cancelled=!1;_timeoutHandle;constructor(In){this._timeoutHandle=self.setTimeout(()=>{this.abort(TIMEOUT_ABORT_ERROR_MESSAGE)},In)}get signal(){return this._signal}abort(In){this._controller.abort(In)}cancel(){this._cancelled=!0,self.clearTimeout(this._timeoutHandle),this._signal.dispatchEvent(new Event("cancelled"))}}function isAbortError(on){return on instanceof DOMException&&on.name===ABORT_ERROR_NAME}function isTimeoutAbortError(on){return isAbortError(on)&&on.message===TIMEOUT_ABORT_ERROR_MESSAGE}function linkAbortSignals(on,In){const Rn=new AbortController;if(on.aborted||In.aborted)Rn.abort(on.reason??In.reason);else{let Mn=function(Hn){return()=>{Rn.signal.aborted||Rn.abort(Hn.reason)}},Ln=function(){Rn.signal.removeEventListener("abort",Ln),on.removeEventListener("abort",Mn(on)),In.removeEventListener("abort",Mn(In))};Rn.signal.addEventListener("abort",Ln),on.addEventListener("abort",Mn(on)),In.addEventListener("abort",Mn(In))}return Rn.signal}function createAbortScope(on,In,Rn){return Rn?Rn.aborted?Promise.reject(ABORT_ERROR):(Rn.addEventListener("abort",on),In().finally(()=>{Rn.removeEventListener("abort",on)})):In()}function distinct(on){return on.filter((In,Rn,Mn)=>Mn.indexOf(In)===Rn)}function equals(on,In){let Rn=on.length;if(Rn!==In.length)return!1;for(;Rn--;)if(on[Rn]!==In[Rn])return!1;return!0}class LinkedListImplementation{stack;constructor(In){this.stack=In?[...In]:[]}append(In){return this.stack.indexOf(In)===-1&&this.stack.push(In),this}find(In){const Rn=this.stack.indexOf(In);return Rn!==-1?this.stack[Rn]:null}getFirst(){return this.stack[0]||null}setFirst(In){const Rn=this.stack.indexOf(In);return Rn!==0&&In&&(Rn===-1?this.stack.splice(0,0,In):this.stack.splice(0,0,this.stack.splice(Rn,1).pop())),this}getLast(){return this.stack.length>0?this.stack[this.stack.length-1]:null}setLast(In){const Rn=this.stack.indexOf(In),Mn=this.stack.length-1;return(Rn===-1||Rn!==Mn)&&In&&(Rn===-1?this.stack.push(In):this.stack.push(this.stack.splice(Rn,1).pop())),this}count(){return this.stack.length}remove(...In){return In.forEach(Rn=>{const Mn=this.stack.indexOf(Rn);Mn!==-1&&this.stack.splice(Mn,1)}),this}update(In,Rn){const Mn=this.stack.indexOf(In);return Mn!==-1&&this.stack.splice(Mn,1,Rn),this}toArray(){return[].concat(this.stack)}}function createLinkedList(on){return new LinkedListImplementation(on)}function encodeBase64$1(on,In){return Buffer$1.from(on,In).toString("base64")}function decodeBase64(on,In){return Buffer$1.from(on,"base64").toString(In)}function beautifyEndpoint(on,In){if(on?.length){let Rn=on?.trim().replace(HTTP_SCHEME_PATTERN,"");const Mn=Rn.indexOf("/");return Mn===-1?Rn:Rn.substring(0,Mn)}return In??""}var inherits_browser={exports:{}},hasRequiredInherits_browser;function requireInherits_browser(){return hasRequiredInherits_browser||(hasRequiredInherits_browser=1,typeof Object.create=="function"?inherits_browser.exports=function(In,Rn){Rn&&(In.super_=Rn,In.prototype=Object.create(Rn.prototype,{constructor:{value:In,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(In,Rn){if(Rn){In.super_=Rn;var Mn=function(){};Mn.prototype=Rn.prototype,In.prototype=new Mn,In.prototype.constructor=In}}),inherits_browser.exports}var safeBuffer$1={exports:{}},dist$2={},hasRequiredDist;function requireDist(){return hasRequiredDist||(hasRequiredDist=1,function(on){Object.defineProperties(on,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var In={},Rn={};Rn.byteLength=vi,Rn.toByteArray=mi,Rn.fromByteArray=Ei;for(var Mn=[],Ln=[],Hn=typeof Uint8Array<"u"?Uint8Array:Array,jn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wn=0,Yn=jn.length;Wn<Yn;++Wn)Mn[Wn]=jn[Wn],Ln[jn.charCodeAt(Wn)]=Wn;Ln[45]=62,Ln[95]=63;function hi(xi){var Ti=xi.length;if(Ti%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Ai=xi.indexOf("=");Ai===-1&&(Ai=Ti);var Mi=Ai===Ti?0:4-Ai%4;return[Ai,Mi]}function vi(xi){var Ti=hi(xi),Ai=Ti[0],Mi=Ti[1];return(Ai+Mi)*3/4-Mi}function gi(xi,Ti,Ai){return(Ti+Ai)*3/4-Ai}function mi(xi){var Ti,Ai=hi(xi),Mi=Ai[0],Ni=Ai[1],Bi=new Hn(gi(xi,Mi,Ni)),Hi=0,Ui=Ni>0?Mi-4:Mi,Wi;for(Wi=0;Wi<Ui;Wi+=4)Ti=Ln[xi.charCodeAt(Wi)]<<18|Ln[xi.charCodeAt(Wi+1)]<<12|Ln[xi.charCodeAt(Wi+2)]<<6|Ln[xi.charCodeAt(Wi+3)],Bi[Hi++]=Ti>>16&255,Bi[Hi++]=Ti>>8&255,Bi[Hi++]=Ti&255;return Ni===2&&(Ti=Ln[xi.charCodeAt(Wi)]<<2|Ln[xi.charCodeAt(Wi+1)]>>4,Bi[Hi++]=Ti&255),Ni===1&&(Ti=Ln[xi.charCodeAt(Wi)]<<10|Ln[xi.charCodeAt(Wi+1)]<<4|Ln[xi.charCodeAt(Wi+2)]>>2,Bi[Hi++]=Ti>>8&255,Bi[Hi++]=Ti&255),Bi}function yi(xi){return Mn[xi>>18&63]+Mn[xi>>12&63]+Mn[xi>>6&63]+Mn[xi&63]}function bi(xi,Ti,Ai){for(var Mi,Ni=[],Bi=Ti;Bi<Ai;Bi+=3)Mi=(xi[Bi]<<16&16711680)+(xi[Bi+1]<<8&65280)+(xi[Bi+2]&255),Ni.push(yi(Mi));return Ni.join("")}function Ei(xi){for(var Ti,Ai=xi.length,Mi=Ai%3,Ni=[],Bi=16383,Hi=0,Ui=Ai-Mi;Hi<Ui;Hi+=Bi)Ni.push(bi(xi,Hi,Hi+Bi>Ui?Ui:Hi+Bi));return Mi===1?(Ti=xi[Ai-1],Ni.push(Mn[Ti>>2]+Mn[Ti<<4&63]+"==")):Mi===2&&(Ti=(xi[Ai-2]<<8)+xi[Ai-1],Ni.push(Mn[Ti>>10]+Mn[Ti>>4&63]+Mn[Ti<<2&63]+"=")),Ni.join("")}var _i={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */_i.read=function(xi,Ti,Ai,Mi,Ni){var Bi,Hi,Ui=Ni*8-Mi-1,Wi=(1<<Ui)-1,ji=Wi>>1,Oi=-7,Li=Ai?Ni-1:0,Ci=Ai?-1:1,Ri=xi[Ti+Li];for(Li+=Ci,Bi=Ri&(1<<-Oi)-1,Ri>>=-Oi,Oi+=Ui;Oi>0;Bi=Bi*256+xi[Ti+Li],Li+=Ci,Oi-=8);for(Hi=Bi&(1<<-Oi)-1,Bi>>=-Oi,Oi+=Mi;Oi>0;Hi=Hi*256+xi[Ti+Li],Li+=Ci,Oi-=8);if(Bi===0)Bi=1-ji;else{if(Bi===Wi)return Hi?NaN:(Ri?-1:1)*(1/0);Hi=Hi+Math.pow(2,Mi),Bi=Bi-ji}return(Ri?-1:1)*Hi*Math.pow(2,Bi-Mi)},_i.write=function(xi,Ti,Ai,Mi,Ni,Bi){var Hi,Ui,Wi,ji=Bi*8-Ni-1,Oi=(1<<ji)-1,Li=Oi>>1,Ci=Ni===23?Math.pow(2,-24)-Math.pow(2,-77):0,Ri=Mi?0:Bi-1,ki=Mi?1:-1,Vi=Ti<0||Ti===0&&1/Ti<0?1:0;for(Ti=Math.abs(Ti),isNaN(Ti)||Ti===1/0?(Ui=isNaN(Ti)?1:0,Hi=Oi):(Hi=Math.floor(Math.log(Ti)/Math.LN2),Ti*(Wi=Math.pow(2,-Hi))<1&&(Hi--,Wi*=2),Hi+Li>=1?Ti+=Ci/Wi:Ti+=Ci*Math.pow(2,1-Li),Ti*Wi>=2&&(Hi++,Wi/=2),Hi+Li>=Oi?(Ui=0,Hi=Oi):Hi+Li>=1?(Ui=(Ti*Wi-1)*Math.pow(2,Ni),Hi=Hi+Li):(Ui=Ti*Math.pow(2,Li-1)*Math.pow(2,Ni),Hi=0));Ni>=8;xi[Ai+Ri]=Ui&255,Ri+=ki,Ui/=256,Ni-=8);for(Hi=Hi<<Ni|Ui,ji+=Ni;ji>0;xi[Ai+Ri]=Hi&255,Ri+=ki,Hi/=256,ji-=8);xi[Ai+Ri-ki]|=Vi*128};/*!
|
|
4271
4271
|
* The buffer module from node.js, for the browser.
|
|
4272
4272
|
*
|
|
4273
4273
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
@@ -4760,7 +4760,7 @@ ${In.join(`
|
|
|
4760
4760
|
}
|
|
4761
4761
|
}
|
|
4762
4762
|
}
|
|
4763
|
-
`,_gql_doc={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"IntrospectionQuery"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__type"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"StringValue",value:"__Type",block:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fields"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:137,source:{name:"GraphQL request",locationOffset:{line:1,column:1},body:_gql_source}}};print(_gql_doc$3);print(_gql_doc$2);print(_gql_doc$1);print(_gql_doc);const SERVER_NOT_REACHABLE="Server Not Reachable";function isServerNotReachableError(on){return isDictionary(on)&&"message"in on&&on.message===SERVER_NOT_REACHABLE}class SchedulerClientBase extends MessageObserver{constructor(In){super(),this.createWorker=In}#e;#t;#r=!0;#n;#i=0;getContext(){if(!this.#e){const In=this.createWorker(),Rn={sendMessage:Mn=>In.postMessage(Mn)};In.onmessage=({data:Mn})=>{this.handleMessage(Rn,Mn)},this.#t=In,this.#e=Rn,this.#n=this.registerReceiveMessageHandler("scheduler-status-updated",({payload:{idling:Mn,lastUpdated:Ln}})=>{this.#r=Mn,this.#i=Ln}),this.checkIfIdle(),this.initializeWorker()}return this.#e}checkIfIdle(){const In=()=>{if(this.#t&&this.#r&&document.hidden&&now()-this.#i>TWO_MINUTES){this.stopWorker();return}this.checkIfIdle()};window.setTimeout(In,THIRTY_SECONDS)}initializeWorker(){this.sendMessage(new Message(INITIALIZE_WORKER_MESSAGE_TYPE,{appNamespace:window.appNamespace}))}stopWorker(){this.#t?.terminate(),this.#n?.(),this.#n=void 0,this.#t=void 0,this.#e=void 0}cancelTask(In){this.sendMessage(new Message(CANCEL_TASK_MESSAGE_TYPE,{taskId:In}))}}const DOCUMENT_ANALYSIS_MESSAGE_TYPE="analyze-document",DOCUMENT_OPERATIONS_ANALYSIS_MESSAGE_TYPE="analyze-document-operations",FILES_UPDATED_MESSAGE_TYPE="files-updated",VARIABLE_JSON_SCHEMA_UPDATED_MESSAGE_TYPE="variable-json-schema-updated";var backo2,hasRequiredBacko2;function requireBacko2(){if(hasRequiredBacko2)return backo2;hasRequiredBacko2=1,backo2=on;function on(In){In=In||{},this.ms=In.min||100,this.max=In.max||1e4,this.factor=In.factor||2,this.jitter=In.jitter>0&&In.jitter<=1?In.jitter:0,this.attempts=0}return on.prototype.duration=function(){var In=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var Rn=Math.random(),Mn=Math.floor(Rn*this.jitter*In);In=(Math.floor(Rn*10)&1)==0?In-Mn:In+Mn}return Math.min(In,this.max)|0},on.prototype.reset=function(){this.attempts=0},on.prototype.setMin=function(In){this.ms=In},on.prototype.setMax=function(In){this.max=In},on.prototype.setJitter=function(In){this.jitter=In},backo2}requireBacko2();var eventemitter3={exports:{}},hasRequiredEventemitter3;function requireEventemitter3(){return hasRequiredEventemitter3||(hasRequiredEventemitter3=1,function(on){var In=Object.prototype.hasOwnProperty,Rn="~";function Mn(){}Object.create&&(Mn.prototype=Object.create(null),new Mn().__proto__||(Rn=!1));function Ln(Yn,hi,vi){this.fn=Yn,this.context=hi,this.once=vi||!1}function Hn(Yn,hi,vi,gi,mi){if(typeof vi!="function")throw new TypeError("The listener must be a function");var yi=new Ln(vi,gi||Yn,mi),bi=Rn?Rn+hi:hi;return Yn._events[bi]?Yn._events[bi].fn?Yn._events[bi]=[Yn._events[bi],yi]:Yn._events[bi].push(yi):(Yn._events[bi]=yi,Yn._eventsCount++),Yn}function jn(Yn,hi){--Yn._eventsCount===0?Yn._events=new Mn:delete Yn._events[hi]}function Wn(){this._events=new Mn,this._eventsCount=0}Wn.prototype.eventNames=function(){var hi=[],vi,gi;if(this._eventsCount===0)return hi;for(gi in vi=this._events)In.call(vi,gi)&&hi.push(Rn?gi.slice(1):gi);return Object.getOwnPropertySymbols?hi.concat(Object.getOwnPropertySymbols(vi)):hi},Wn.prototype.listeners=function(hi){var vi=Rn?Rn+hi:hi,gi=this._events[vi];if(!gi)return[];if(gi.fn)return[gi.fn];for(var mi=0,yi=gi.length,bi=new Array(yi);mi<yi;mi++)bi[mi]=gi[mi].fn;return bi},Wn.prototype.listenerCount=function(hi){var vi=Rn?Rn+hi:hi,gi=this._events[vi];return gi?gi.fn?1:gi.length:0},Wn.prototype.emit=function(hi,vi,gi,mi,yi,bi){var Ei=Rn?Rn+hi:hi;if(!this._events[Ei])return!1;var _i=this._events[Ei],Si=arguments.length,xi,Ti;if(_i.fn){switch(_i.once&&this.removeListener(hi,_i.fn,void 0,!0),Si){case 1:return _i.fn.call(_i.context),!0;case 2:return _i.fn.call(_i.context,vi),!0;case 3:return _i.fn.call(_i.context,vi,gi),!0;case 4:return _i.fn.call(_i.context,vi,gi,mi),!0;case 5:return _i.fn.call(_i.context,vi,gi,mi,yi),!0;case 6:return _i.fn.call(_i.context,vi,gi,mi,yi,bi),!0}for(Ti=1,xi=new Array(Si-1);Ti<Si;Ti++)xi[Ti-1]=arguments[Ti];_i.fn.apply(_i.context,xi)}else{var Ai=_i.length,Mi;for(Ti=0;Ti<Ai;Ti++)switch(_i[Ti].once&&this.removeListener(hi,_i[Ti].fn,void 0,!0),Si){case 1:_i[Ti].fn.call(_i[Ti].context);break;case 2:_i[Ti].fn.call(_i[Ti].context,vi);break;case 3:_i[Ti].fn.call(_i[Ti].context,vi,gi);break;case 4:_i[Ti].fn.call(_i[Ti].context,vi,gi,mi);break;default:if(!xi)for(Mi=1,xi=new Array(Si-1);Mi<Si;Mi++)xi[Mi-1]=arguments[Mi];_i[Ti].fn.apply(_i[Ti].context,xi)}}return!0},Wn.prototype.on=function(hi,vi,gi){return Hn(this,hi,vi,gi,!1)},Wn.prototype.once=function(hi,vi,gi){return Hn(this,hi,vi,gi,!0)},Wn.prototype.removeListener=function(hi,vi,gi,mi){var yi=Rn?Rn+hi:hi;if(!this._events[yi])return this;if(!vi)return jn(this,yi),this;var bi=this._events[yi];if(bi.fn)bi.fn===vi&&(!mi||bi.once)&&(!gi||bi.context===gi)&&jn(this,yi);else{for(var Ei=0,_i=[],Si=bi.length;Ei<Si;Ei++)(bi[Ei].fn!==vi||mi&&!bi[Ei].once||gi&&bi[Ei].context!==gi)&&_i.push(bi[Ei]);_i.length?this._events[yi]=_i.length===1?_i[0]:_i:jn(this,yi)}return this},Wn.prototype.removeAllListeners=function(hi){var vi;return hi?(vi=Rn?Rn+hi:hi,this._events[vi]&&jn(this,vi)):(this._events=new Mn,this._eventsCount=0),this},Wn.prototype.off=Wn.prototype.removeListener,Wn.prototype.addListener=Wn.prototype.on,Wn.prefixed=Rn,Wn.EventEmitter=Wn,on.exports=Wn}(eventemitter3)),eventemitter3.exports}requireEventemitter3();var defaults={},hasRequiredDefaults;function requireDefaults(){if(hasRequiredDefaults)return defaults;hasRequiredDefaults=1,Object.defineProperty(defaults,"__esModule",{value:!0}),defaults.WS_TIMEOUT=defaults.MIN_WS_TIMEOUT=void 0;var on=1e3;defaults.MIN_WS_TIMEOUT=on;var In=3e4;return defaults.WS_TIMEOUT=In,defaults}requireDefaults();var messageTypes={},hasRequiredMessageTypes;function requireMessageTypes(){if(hasRequiredMessageTypes)return messageTypes;hasRequiredMessageTypes=1,Object.defineProperty(messageTypes,"__esModule",{value:!0});var on=function(){function In(){throw new Error("Static Class")}return In.GQL_CONNECTION_INIT="connection_init",In.GQL_CONNECTION_ACK="connection_ack",In.GQL_CONNECTION_ERROR="connection_error",In.GQL_CONNECTION_KEEP_ALIVE="ka",In.GQL_CONNECTION_TERMINATE="connection_terminate",In.GQL_START="start",In.GQL_DATA="data",In.GQL_ERROR="error",In.GQL_COMPLETE="complete",In.GQL_STOP="stop",In.SUBSCRIPTION_START="subscription_start",In.SUBSCRIPTION_DATA="subscription_data",In.SUBSCRIPTION_SUCCESS="subscription_success",In.SUBSCRIPTION_FAIL="subscription_fail",In.SUBSCRIPTION_END="subscription_end",In.INIT="init",In.INIT_SUCCESS="init_success",In.INIT_FAIL="init_fail",In.KEEP_ALIVE="keepalive",In}();return messageTypes.default=on,messageTypes}requireMessageTypes();var protocol={},hasRequiredProtocol;function requireProtocol(){if(hasRequiredProtocol)return protocol;hasRequiredProtocol=1,Object.defineProperty(protocol,"__esModule",{value:!0}),protocol.GRAPHQL_SUBSCRIPTIONS=protocol.GRAPHQL_WS=void 0;var on="graphql-ws";protocol.GRAPHQL_WS=on;var In="graphql-subscriptions";return protocol.GRAPHQL_SUBSCRIPTIONS=In,protocol}requireProtocol();var isObject$1={},hasRequiredIsObject;function requireIsObject(){if(hasRequiredIsObject)return isObject$1;hasRequiredIsObject=1,Object.defineProperty(isObject$1,"__esModule",{value:!0});function on(In){return In!==null&&typeof In=="object"}return isObject$1.default=on,isObject$1}requireIsObject();var isString$1={},hasRequiredIsString;function requireIsString(){if(hasRequiredIsString)return isString$1;hasRequiredIsString=1,Object.defineProperty(isString$1,"__esModule",{value:!0});function on(In){return typeof In=="string"}return isString$1.default=on,isString$1}requireIsString();function symbolObservablePonyfill(on){var In,Rn=on.Symbol;return typeof Rn=="function"?Rn.observable?In=Rn.observable:(In=Rn("observable"),Rn.observable=In):In="@@observable",In}var root;typeof self<"u"?root=self:typeof window<"u"?root=window:typeof global$1<"u"?root=global$1:typeof module<"u"?root=module:root=Function("return this")();symbolObservablePonyfill(root);const _global=typeof global$1<"u"?global$1:typeof window<"u"?window:{};_global.WebSocket||_global.MozWebSocket;const EXECUTE_OPERATION_REQUEST_MESSAGE_TYPE="execute-operation",DEFAULT_SCHEMA_INFO={endpoint:"",exists:!1,hash:"",indexed:!1,hasMutationType:!1,hasSubscriptionType:!1,hasUploadType:!1},CANCEL_OPERATION_REQUEST_MESSAGE_TYPE="cancel-request",SCHEMA_API_FETCHER_MESSAGE_TYPE="fetch-api-schema",FETCH_SCHEMA_DIRECTIVE="fetch-directive",FETCH_SCHEMA_DIRECTIVES="fetch-directives",SCHEMA_FETCHER_CACHED_MESSAGE_TYPE="get-cached-schema",SCHEMA_FETCHER_MESSAGE_TYPE="fetch-schema",FETCH_SCHEMA_FIELD_TYPE="fetch-field",FETCH_SCHEMA_FIELD_TYPES="fetch-fields",FETCH_SCHEMA_FIELDS_AND_TYPES="fetch-fields-and-types",FETCH_SCHEMA_REFERENCE="fetch-schema-reference",FETCH_SCHEMA_ROOT_TYPES="fetch-schema-root-types",FETCH_SCHEMA_TYPE="fetch-type",FETCH_SCHEMA_TYPES="fetch-types";class GraphQLEngineSchedulerClient extends SchedulerClientBase{analyzeDocument(In,Rn){return this.sendAndReceiveMessage(new Message(DOCUMENT_ANALYSIS_MESSAGE_TYPE,{documentId:In}),!1,Rn)}analyzeDocumentOperations(In,Rn){return this.sendAndReceiveMessage(new Message(DOCUMENT_OPERATIONS_ANALYSIS_MESSAGE_TYPE,{documentId:In}),!1,Rn)}cancelRequest(In){this.sendMessage(new Message(CANCEL_OPERATION_REQUEST_MESSAGE_TYPE,{documentId:In}))}executeOperation(In,Rn,Mn,Ln){this.sendMessage(new Message(EXECUTE_OPERATION_REQUEST_MESSAGE_TYPE,{documentId:In,workspaceId:Rn,environmentId:Mn,operationIndex:Ln}))}filesUpdated(In){this.sendMessage(new Message(FILES_UPDATED_MESSAGE_TYPE,{documentId:In}))}fetchSchema(In,Rn,Mn){return this.sendAndReceiveMessage(new Message(SCHEMA_FETCHER_MESSAGE_TYPE,{documentId:In,environmentId:Rn}),!1,Mn)}fetchApiSchema(In,Rn,Mn){return this.sendAndReceiveMessage(new Message(SCHEMA_API_FETCHER_MESSAGE_TYPE,{apiId:In,stageId:Rn}),!1,Mn)}getCachedSchema(In,Rn){return this.sendAndReceiveMessage(new Message(SCHEMA_FETCHER_CACHED_MESSAGE_TYPE,{documentId:In,environmentId:Rn}))}getDirective(In,Rn){return this.sendAndReceiveMessage(new Message(FETCH_SCHEMA_DIRECTIVE,{schemaEndpoint:In,coordinate:Rn}))}getDirectives(In){return this.sendAndReceiveMessage(new Message(FETCH_SCHEMA_DIRECTIVES,{schemaEndpoint:In}))}getField(In,Rn){return this.sendAndReceiveMessage(new Message(FETCH_SCHEMA_FIELD_TYPE,{schemaEndpoint:In,coordinate:Rn}))}getFields(In,Rn,Mn){return this.sendAndReceiveMessage(new Message(FETCH_SCHEMA_FIELD_TYPES,{schemaEndpoint:In,typeName:Rn,options:Mn}))}getFieldsAndTypes(In,Rn,Mn){return this.sendAndReceiveMessage(new Message(FETCH_SCHEMA_FIELDS_AND_TYPES,{schemaEndpoint:In,coordinate:Rn,options:Mn}))}getRootTypes(In,Rn){return this.sendAndReceiveMessage(new Message(FETCH_SCHEMA_ROOT_TYPES,{schemaEndpoint:In,filter:Rn}))}getSchemaReference(In,Rn,Mn){return this.sendAndReceiveMessage(new Message(FETCH_SCHEMA_REFERENCE,{schemaEndpoint:In,typeCategory:Rn,filter:Mn}))}getType(In,Rn){return this.sendAndReceiveMessage(new Message(FETCH_SCHEMA_TYPE,{schemaEndpoint:In,typeName:Rn}))}getTypes(In,Rn){return this.sendAndReceiveMessage(new Message(FETCH_SCHEMA_TYPES,{schemaEndpoint:In,filter:Rn}))}onReceiveOperationRequestStatus(In){return this.registerReceiveMessageHandler(OPERATION_REQUEST_STATUS_MESSAGE_TYPE,({payload:Rn})=>In(Rn))}onReceiveHistoryEntry(In){return this.registerReceiveMessageHandler(HISTORY_ENTRY_MESSAGE_TYPE,({payload:Rn})=>{In(Rn)})}onReceiveLogEntry(In){return this.registerReceiveMessageHandler(LOG_ENTRY_MESSAGE_TYPE,({payload:Rn})=>{In(Rn)})}onReceiveResult(In){return this.registerReceiveMessageHandler(OPERATION_RESULT_MESSAGE_TYPE,({payload:{documentId:Rn,result:Mn}})=>{In(Rn,Mn)})}onReceiveResultMessage(In){return this.registerReceiveMessageHandler(OPERATION_RESULT_EVENT_MESSAGE_TYPE,({payload:{documentId:Rn,resultId:Mn,event:Ln}})=>{In(Rn,Mn,Ln)})}onReceiveResultPatch(In){return this.registerReceiveMessageHandler(OPERATION_RESULT_PATCH_MESSAGE_TYPE,({payload:{documentId:Rn,resultId:Mn,patch:Ln}})=>{In(Rn,Mn,Ln)})}onReceiveVariableBatchingResult(In){return this.registerReceiveMessageHandler(OPERATION_VARIABLE_BATCHING_RESULT_MESSAGE_TYPE,({payload:{documentId:Rn,resultId:Mn,result:Ln}})=>{In(Rn,Mn,Ln)})}onVariableJsonSchemaUpdated(In){return this.registerReceiveMessageHandler(VARIABLE_JSON_SCHEMA_UPDATED_MESSAGE_TYPE,({payload:{documentId:Rn,variableJsonSchemaHash:Mn}})=>{In(Rn,Mn)})}}const INDEX_SCHEMA_MESSAGE_TYPE="index-schema",SCHEMA_INDEXED_MESSAGE_TYPE="schema-indexed";class GraphQLIndexerSchedulerClient extends SchedulerClientBase{indexSchema(In,Rn,Mn){this.sendMessage(new Message(INDEX_SCHEMA_MESSAGE_TYPE,{schemaEndpoint:In,schemaHash:Rn,schemaUpdatedAt:Mn}))}onSchemaIndexed(In){return this.registerReceiveMessageHandler(SCHEMA_INDEXED_MESSAGE_TYPE,({payload:Rn})=>{In(Rn)})}}function WorkerWrapper$6(on){return new Worker(""+new URL("graphql-engine-scheduler.a6cbd8ae.CRCZH9eT.js",import.meta.url).href,{type:"module",name:on?.name})}function WorkerWrapper$5(on){return new Worker(""+new URL("graphql-indexer-scheduler.a6cbd8ae.Bvw8ykb0.js",import.meta.url).href,{type:"module",name:on?.name})}function WorkerWrapper$4(on){return new Worker(""+new URL("session-scheduler.a6cbd8ae.Cs3Lp-R6.js",import.meta.url).href,{type:"module",name:on?.name})}const CREATE_USER_ACCOUNT_MESSAGE_TYPE="create-user-account";function createCreateUserAccountMessage(){return new Message(CREATE_USER_ACCOUNT_MESSAGE_TYPE,{})}const CREATE_WORKSPACE_TASK_TYPE="create-workspace-task";function createCreateWorkspaceMessage(on,In){return new Message(CREATE_WORKSPACE_TASK_TYPE,{userSession:on,workspaceName:In})}const DELETE_API_TASK_TYPE="delete-api-task";function createDeleteApiMessage(on){return new Message(DELETE_API_TASK_TYPE,{apiId:on})}const ORGANIZATION_INFO_FETCHER_MESSAGE_TYPE="fetch-organization-info";function createOrganizationInfoMessage(){return new Message(ORGANIZATION_INFO_FETCHER_MESSAGE_TYPE,void 0)}const SETTINGS_FETCHER_MESSAGE_TYPE="fetch-settings";function createFetchSettingsMessage(){return new Message(SETTINGS_FETCHER_MESSAGE_TYPE,void 0)}const FETCH_WORKSPACES_TASK_TYPE="fetch-workspaces-task-type";function createFetchWorkspacesMessage(on){return new Message(FETCH_WORKSPACES_TASK_TYPE,{userSession:on})}const PERSIST_THEME_SETTINGS_MESSAGE_TYPE="persist-theme-settings";function createPersistThemeSettingsMessage(on){return new Message(PERSIST_THEME_SETTINGS_MESSAGE_TYPE,on)}const REFRESH_TOKEN_MESSAGE_TYPE="refresh-token";function createRefreshTokenMessage(on){return new Message(REFRESH_TOKEN_MESSAGE_TYPE,{tenantInfo:on})}const UPDATE_FEATURE_FLAGS_MESSAGE_TYPE="update-feature-flags";function createUpdateFeatureFlagsMessage(on){return new Message(UPDATE_FEATURE_FLAGS_MESSAGE_TYPE,{featureFlags:on})}const USER_ACCOUNT_FETCHER_MESSAGE_TYPE="fetch-user-account";function createUserAccountMessage(){return new Message(USER_ACCOUNT_FETCHER_MESSAGE_TYPE,void 0)}const WORKSPACE_SYNCHRONIZATION_MESSAGE_TYPE="synchronize-workspace",WORKSPACE_SYNCHRONIZATION_PROGRESS_MESSAGE_TYPE="synchronize-workspace-progress";function createSynchronizeWorkspaceMessage(on,In){return new Message(WORKSPACE_SYNCHRONIZATION_MESSAGE_TYPE,{workspaceId:on,version:In})}const UPDATE_PREFERENCES_MESSAGE_TYPE="update-preferences";function createUpdatePreferencesMessage(on){return new Message(UPDATE_PREFERENCES_MESSAGE_TYPE,{preferences:on})}class SessionSchedulerClient extends SchedulerClientBase{fetchOrganizationInfo(In){return this.sendAndReceiveMessage(createOrganizationInfoMessage(),!1,In)}fetchUserAccount(In){return this.sendAndReceiveMessage(createUserAccountMessage(),!1,In)}createUserAccount(In){return this.sendAndReceiveMessage(createCreateUserAccountMessage(),!1,In)}refreshToken(In,Rn){return this.sendAndReceiveMessage(createRefreshTokenMessage(In),!1,Rn)}fetchSettings(In){return this.sendAndReceiveMessage(createFetchSettingsMessage(),!1,In)}persistThemeSettings(In){this.sendMessage(createPersistThemeSettingsMessage(In))}fetchWorkspaces(In,Rn){return this.sendAndReceiveMessage(createFetchWorkspacesMessage(In),!1,Rn)}createWorkspace(In,Rn,Mn){return this.sendAndReceiveMessage(createCreateWorkspaceMessage(In,Rn),!1,Mn)}synchronizeWorkspace(In,Rn,Mn){return this.sendAndReceiveMessage(createSynchronizeWorkspaceMessage(In,Rn),!1,Mn)}updateFeatureFlags(In,Rn){return this.sendAndReceiveMessage(createUpdateFeatureFlagsMessage(In),!1,Rn)}updatePreferences(In,Rn){return this.sendAndReceiveMessage(createUpdatePreferencesMessage(In),!1,Rn)}deleteApi(In,Rn){return this.sendAndReceiveMessage(createDeleteApiMessage(In),!1,Rn)}onReceiveLogEntry(In){return this.registerReceiveMessageHandler(LOG_ENTRY_MESSAGE_TYPE,({payload:Rn})=>In(Rn))}onReceiveUserSessionExpired(In){return this.registerReceiveMessageHandler(USER_SESSION_EXPIRED_MESSAGE_TYPE,()=>In())}onReceiveWorkspaceSynchronizationProgress(In){return this.registerReceiveMessageHandler(WORKSPACE_SYNCHRONIZATION_PROGRESS_MESSAGE_TYPE,({payload:Rn})=>In(Rn))}}const graphQLEngineSchedulerClient=new GraphQLEngineSchedulerClient(()=>new WorkerWrapper$6({name:"graphql-engine"})),graphQLIndexerSchedulerClient=new GraphQLIndexerSchedulerClient(()=>new WorkerWrapper$5({name:"graphql-indexer"})),sessionSchedulerClient=new SessionSchedulerClient(()=>new WorkerWrapper$4({name:"session"}));class ServiceProvider{#e=new Map;#t;#r=null;constructor(In,Rn){this.#t=new Map(In.map(([Mn,Ln,Hn])=>[Mn,{create:Ln,dependencies:Hn}])),this.#r=Rn??null}get parent(){return this.#r}getService(In){let Rn=this,Mn=this.#e.get(In)??null;if(Mn)return Mn;const Ln=this.#t.get(In);if(!Ln){for(;!Mn&&(Rn=Rn.parent);)Mn=Rn.getService(In);return Mn}if(Mn=Ln.create(Rn)??null,Mn&&(this.#e.set(In,Mn),Ln.dependencies))for(const Hn of Ln.dependencies)this.getService(Hn);return Mn}getRequiredService(In){const Rn=this.getService(In);if(!Rn)throw new Error(`Service "${In}" not found!`);return Rn}[Symbol.dispose](){this.#e.forEach(In=>{isDisposable(In)&&In[Symbol.dispose]()}),this.#e.clear()}}function ServiceDependencyProvider({children:on,services:In}){const Rn=useServiceProvider(),Mn=useRefWithInitializer(()=>new ServiceProvider(In,Rn));return reactExports.useEffect(()=>()=>Mn.current[Symbol.dispose](),[Mn]),jsx$1(ServiceProviderContext.Provider,{value:Mn.current,children:on})}const ServiceProviderContext=createNamedContext(null,ServiceProvider.name);function useServiceProvider(){return reactExports.useContext(ServiceProviderContext)}function useRequiredService(on){const In=useServiceProvider();if(!In)throw new Error("Provider undefined!");return In.getRequiredService(on)}var ItemChangeAction=(on=>(on.LOAD="load",on.LOAD_DEPENDENCY="load-dependency",on.UNLOAD="unload",on.UPDATE="update",on.SAVE="save",on))(ItemChangeAction||{});const ALL_LISTENER_NAME$1="all";class ItemStore{#e=new LifecycleCache({lru:!1});#t=new Map;#r;#n=new Map;constructor(){this.#r=[registerReceiveMessage(ACTIVATED_WORKSPACE_MESSAGE,({workspaceId:In})=>{this.#e.forEach(Rn=>{Rn.workspaceId!==In&&this.unloadItem(Rn.id)})}),registerReceiveMessage(DELETED_ITEMS_MESSAGE,({deletedItems:In})=>{In.forEach(({id:Rn})=>this.unloadItem(Rn))}),registerReceiveMessage(RENAMED_ITEM_MESSAGE,({itemId:In,itemKind:Rn})=>this.reload(In,Rn)),registerReceiveMessage(MOVED_ITEMS_MESSAGE,({movedItems:In})=>In.forEach(({id:Rn,kind:Mn})=>this.reload(Rn,Mn))),sessionSchedulerClient.onReceiveWorkspaceSynchronizationProgress(({changes:In})=>In.forEach(async Rn=>{switch(Rn.kind){case"delete":this.unloadItem(Rn.id);break;case"update":await this.reload(Rn.id,Rn.itemKind);break}}))]}async createApi(In,Rn,Mn,Ln){const Hn=await createApiItem(In,Rn,Mn,null,null,Ln);return this.#e.set(In,Hn,{permanent:!0}),this.triggerListeners(In,"load",Hn),Hn}async createNewApi(In,Rn,Mn){const Ln=await createNewApiItem(In,Rn,Mn);return this.#e.set(In,Ln,{permanent:!0}),this.triggerListeners(In,"load",Ln),Ln}async createApiDocument(In,Rn,Mn,Ln,Hn){const jn=await createApiDocumentItem(In,Rn,Mn,Ln,null,null,Hn);return await this.setDocument(In,jn,"load"),jn}async createBasicDocument(In,Rn,Mn,Ln,Hn){const jn=await createBasicDocumentItem(In,Rn,Mn,null,null,Ln,Hn);return await this.setDocument(In,jn,"load"),jn}async createNewDocument(In,Rn,Mn,Ln){const Hn=await createNewDocumentItem(In,Rn,Mn,Ln);return await this.setDocument(In,Hn,"load"),Hn}async createEnvironment(In,Rn,Mn){const Ln=await createEnvironmentItem(In,Rn,null,null,Mn);return this.#e.set(In,Ln,{permanent:!0}),this.triggerListeners(In,"load",Ln),Ln}async createNewEnvironment(In,Rn,Mn){const Ln=await createNewEnvironmentItem(In,Rn,Mn);return this.#e.set(In,Ln,{permanent:!0}),this.triggerListeners(In,"load",Ln),Ln}async duplicateApi(In,Rn,Mn){const Ln=await duplicateApiItem(In,Rn,Mn);return Ln&&(this.#e.set(Rn,Ln,{permanent:!0}),this.triggerListeners(Rn,"load",Ln)),Ln}async duplicateDocument(In,Rn,Mn){const Ln=await duplicateDocumentItem(In,Rn,Mn);return Ln&&await this.setDocument(Rn,Ln,"load"),Ln}async duplicateEnvironment(In,Rn,Mn){const Ln=await duplicateEnvironmentItem(In,Rn,Mn);return Ln&&(this.#e.set(Rn,Ln,{permanent:!0}),this.triggerListeners(Rn,"load",Ln)),Ln}get(In){return this.#e.get(In)}async getApi(In){const Rn=this.#e.get(In);return isApiItem(Rn)?(this.#e.isPermanent(In)||(this.#e.set(In,Rn,{permanent:!0}),this.triggerListeners(In,"load",Rn)),Rn):await this.reloadApi(In,!0)}async getNewApi(In){const Rn=this.#e.get(In);if(isNewApiItem(Rn))return this.#e.isPermanent(In)||(this.#e.set(In,Rn,{permanent:!0}),this.triggerListeners(In,"load",Rn)),Rn;const[Mn,Ln]=this.loadItem(In,()=>this.getNewApi(In));if(Mn)return await Ln;const Hn=await Ln;return Hn&&(this.#e.set(In,Hn,{permanent:!0}),this.triggerListeners(In,"load",Hn)),Hn}async getDocument(In){const Rn=this.#e.get(In);return isDocumentItem(Rn)?Rn:await this.reloadDocument(In)}async getEnvironment(In){const Rn=this.#e.get(In);return isEnvironmentItem(Rn)?Rn:await this.reloadEnvironment(In)}async saveApi(In,Rn){const Mn=this.#e.get(In);if(isApiItem(Mn))try{const Ln=await saveApiItem(In,Rn);return this.#e.set(In,Ln,{permanent:!0}),this.triggerListeners(In,"save",Ln),Ln}catch{return}}async saveNewApi(In,Rn,Mn,Ln,Hn){const jn=this.#e.get(In);if(isNewApiItem(jn))try{const Wn=await saveNewApiItem(In,Rn,Mn,Ln,Hn);return this.#e.set(In,Wn,{permanent:!0}),this.triggerListeners(In,"save",Wn),Wn}catch{return}}async saveDocument(In){const Rn=this.#e.get(In);if(isDocumentItem(Rn))try{const Mn=await saveDocumentItem(In);return await this.setDocument(In,Mn,"save"),Mn}catch{return}}async saveNewDocument(In,Rn,Mn,Ln){const Hn=this.#e.get(In);if(isDocumentItem(Hn))try{const jn=await saveNewDocumentItem(In,Rn,Mn,Ln);return await this.setDocument(In,jn,"save"),jn}catch{return}}async saveEnvironment(In){const Rn=this.#e.get(In);if(isEnvironmentItem(Rn))try{const Mn=await saveEnvironmentItem(In);return this.#e.set(In,Mn,{permanent:!0}),this.triggerListeners(In,"save",Mn),Mn}catch{return}}async saveNewEnvironment(In,Rn,Mn){const Ln=this.#e.get(In);if(isNewEnvironmentItem(Ln))try{const Hn=await saveNewEnvironmentItem(In,Rn,Mn);return this.#e.set(In,Hn,{permanent:!0}),this.triggerListeners(In,"save",Hn),Hn}catch{return}}subscribe(In,Rn){let Mn=this.#n.get(In);return Mn||(Mn=new Set,this.#n.set(In,Mn)),Mn.has(Rn)||Mn.add(Rn),()=>{Mn.delete(Rn),Mn.size===0&&this.#n.delete(In)}}subscribeAll(In){return this.subscribe(ALL_LISTENER_NAME$1,In)}unloadItem(In){const Rn=this.#e.get(In);if(Rn){const Mn=this.#e.isPermanent(In);return this.#e.delete(In),Mn&&this.triggerListeners(In,"unload",Rn),!0}return!1}updateDocumentContentBody(In,Rn){return this.updateDocumentContent(In,Mn=>updateDocumentContentBody(Mn,Rn))}updateDocumentContentVariables(In,Rn){return this.updateDocumentContent(In,Mn=>updateDocumentContentVariables(Mn,Rn))}[Symbol.dispose](){this.#e[Symbol.dispose](),this.#r.forEach(In=>In())}loadItem(In,Rn){if(this.#t.has(In))return[!0,this.#t.get(In)];const Mn=Rn().then(Ln=>(this.#t.delete(In),Ln));return this.#t.set(In,Mn),[!1,Mn]}async reload(In,Rn){switch(Rn){case"api":await this.reloadApi(In,!1);break;case"api-document":case"document":await this.reloadDocument(In);break;case"environment":await this.reloadEnvironment(In);break}}async reloadApi(In,Rn){const[Mn,Ln]=this.loadItem(In,()=>getApiItem(In));if(Mn)return await Ln;const Hn=await Ln;if(Hn){const jn=Rn||this.#e.isPermanent(In);this.#e.set(In,Hn,{permanent:jn}),jn?this.triggerListeners(In,"load",Hn):this.triggerListeners(In,"load-dependency",Hn)}return Hn}async reloadDocument(In){const[Rn,Mn]=this.loadItem(In,()=>getDocumentItemAndContent(In));if(Rn)return await Mn;const Ln=await Mn;return Ln&&await this.setDocument(In,Ln,"load"),Ln}async reloadEnvironment(In){const[Rn,Mn]=this.loadItem(In,()=>getEnvironmentItemAndVariables(In));if(Rn)return await Mn;const Ln=await Mn;return Ln&&(this.#e.set(In,Ln,{permanent:!0}),this.triggerListeners(In,"load",Ln)),Ln}async setDocument(In,Rn,Mn){if(isApiDocumentItem(Rn)){if(this.#e.set(In,Rn,{permanent:!0,references:[Rn.apiId]}),this.#e.has(Rn.apiId)){this.triggerListeners(In,Mn,Rn);return}const[Ln,Hn]=this.loadItem(Rn.apiId,()=>getApiItem(Rn.apiId));if(Ln){await Hn,this.triggerListeners(In,Mn,Rn);return}const jn=await Hn;jn&&(this.#e.set(jn.id,jn,{permanent:!1}),this.triggerListeners(jn.id,"load-dependency",jn)),this.triggerListeners(In,Mn,Rn)}else this.#e.set(In,Rn,{permanent:!0}),this.triggerListeners(In,Mn,Rn)}async updateDocumentContent(In,Rn){const Mn=this.#e.get(In);if(!isDocumentItem(Mn))return;const Ln=await Rn(In);return Ln&&(this.#e.update(In,Ln),this.triggerListeners(In,"update",Ln)),Ln}triggerListeners(In,Rn,Mn){requestAnimationFrame(()=>{const Ln=this.#n.get(ALL_LISTENER_NAME$1);Ln&&Ln.forEach(jn=>jn(Rn,Mn));const Hn=this.#n.get(In);Hn&&Hn.forEach(jn=>jn(Rn,Mn))})}}function useItemStore(){return useRequiredService(ItemStore.name)}function applyObjectChanges(on,In){const Rn={...In};for(const Mn of Object.keys(on)){const Ln=In[Mn],Hn=on[Mn];typeof Ln=="object"&&Ln!==null&&typeof Hn=="object"&&Hn!==null&&!Array.isArray(Ln)&&!Array.isArray(Hn)?Rn[Mn]=applyObjectChanges(Hn,Ln):Rn[Mn]=Hn}return Rn}const ALL_LISTENER_NAME="all";class TabViewStateStore{#e=new SimpleCache({lru:!1});#t;#r=new Map;constructor(){this.#t=[registerReceiveMessage(DELETED_ITEMS_MESSAGE,({deletedItems:In})=>In.forEach(({id:Rn})=>this.delete(Rn))),registerReceiveMessage(DOCUMENT_ANALYZED_MESSAGE,({documentId:In,operations:Rn})=>{const Mn=this.#e.get(In);if(!(!Mn||!Mn.graphqlDocument)){if(Rn.length===0){this.update(In,{graphqlDocument:{activeOperation:void 0}});return}(Mn.graphqlDocument.activeOperation===void 0||Mn.graphqlDocument.activeOperation>=Rn.length)&&this.update(In,{graphqlDocument:{activeOperation:0}})}}),sessionSchedulerClient.onReceiveWorkspaceSynchronizationProgress(({changes:In})=>In.forEach(async Rn=>{switch(Rn.kind){case"delete":await this.delete(Rn.id);break}}))]}create(In){this.#e.set(In.id,In),this.triggerListeners(In.id,"create",In),setTabViewState(In)}createApi(In,Rn,Mn){this.create({id:In,workspaceId:Rn,api:{...Mn?.api,activeViewId:Mn?.api?.activeViewId??DEFAULT_TAB_VIEW_STATE_VALUES.api.activeViewId,activeSchemaChangelogViewId:Mn?.api?.activeSchemaChangelogViewId??DEFAULT_TAB_VIEW_STATE_VALUES.api.activeSchemaChangelogViewId,activeMonitoringViewId:Mn?.api?.activeMonitoringViewId??DEFAULT_TAB_VIEW_STATE_VALUES.api.activeMonitoringViewId,metricsDateTimeRange:Mn?.api?.metricsDateTimeRange??DEFAULT_TAB_VIEW_STATE_VALUES.api.metricsDateTimeRange},detailInfo:Mn?.detailInfo?{...Mn?.detailInfo}:void 0,schema:{...Mn?.schema,activeSchemaViewId:Mn?.schema?.activeSchemaViewId??DEFAULT_TAB_VIEW_STATE_VALUES.schema.activeSchemaViewId,activeSchemaReferenceViewId:Mn?.schema?.activeSchemaReferenceViewId??DEFAULT_TAB_VIEW_STATE_VALUES.schema.activeSchemaReferenceViewId,hideDeprecatedItemsInSchemaReference:Mn?.schema?.hideDeprecatedItemsInSchemaReference??DEFAULT_TAB_VIEW_STATE_VALUES.schema.hideDeprecatedItemsInSchemaReference}})}createGraphqlDocument(In,Rn,Mn){this.create({id:In,workspaceId:Rn,api:{...Mn?.api,metricsDateTimeRange:Mn?.api?.metricsDateTimeRange??DEFAULT_TAB_VIEW_STATE_VALUES.api.metricsDateTimeRange},graphqlDocument:{...Mn?.graphqlDocument,activeViewId:Mn?.graphqlDocument?.activeViewId??DEFAULT_TAB_VIEW_STATE_VALUES.graphqlDocument.activeViewId,activeOperationCompanionViewId:Mn?.graphqlDocument?.activeOperationCompanionViewId??DEFAULT_TAB_VIEW_STATE_VALUES.graphqlDocument.activeOperationCompanionViewId,activeOperationsSettingsViewId:Mn?.graphqlDocument?.activeOperationsSettingsViewId??DEFAULT_TAB_VIEW_STATE_VALUES.graphqlDocument.activeOperationsSettingsViewId,activeResponseViewId:Mn?.graphqlDocument?.activeResponseViewId??DEFAULT_TAB_VIEW_STATE_VALUES.graphqlDocument.activeResponseViewId,isOperationCompanionCollapsed:Mn?.graphqlDocument?.isOperationCompanionCollapsed??DEFAULT_TAB_VIEW_STATE_VALUES.graphqlDocument.isOperationCompanionCollapsed,isOperationsSettingsPaneCollapsed:Mn?.graphqlDocument?.isOperationsSettingsPaneCollapsed??DEFAULT_TAB_VIEW_STATE_VALUES.graphqlDocument.isOperationsSettingsPaneCollapsed,isResponseEntriesPaneCollapsed:Mn?.graphqlDocument?.isResponseEntriesPaneCollapsed??DEFAULT_TAB_VIEW_STATE_VALUES.graphqlDocument.isResponseEntriesPaneCollapsed,operationsSettingsPaneHeight:Mn?.graphqlDocument?.operationsSettingsPaneHeight??DEFAULT_TAB_VIEW_STATE_VALUES.graphqlDocument.operationsSettingsPaneHeight,responseEntriesPaneHeight:Mn?.graphqlDocument?.responseEntriesPaneHeight??DEFAULT_TAB_VIEW_STATE_VALUES.graphqlDocument.responseEntriesPaneHeight,focusedElement:Mn?.graphqlDocument?.focusedElement??DEFAULT_TAB_VIEW_STATE_VALUES.graphqlDocument.focusedElement,showIntrospectionFieldsInOperationBuilder:Mn?.graphqlDocument?.showIntrospectionFieldsInOperationBuilder??DEFAULT_TAB_VIEW_STATE_VALUES.graphqlDocument.showIntrospectionFieldsInOperationBuilder},detailInfo:Mn?.detailInfo?{...Mn?.detailInfo}:void 0,schema:{...Mn?.schema,activeSchemaViewId:Mn?.schema?.activeSchemaViewId??DEFAULT_TAB_VIEW_STATE_VALUES.schema.activeSchemaViewId,activeSchemaReferenceViewId:Mn?.schema?.activeSchemaReferenceViewId??DEFAULT_TAB_VIEW_STATE_VALUES.schema.activeSchemaReferenceViewId,hideDeprecatedItemsInSchemaReference:Mn?.schema?.hideDeprecatedItemsInSchemaReference??DEFAULT_TAB_VIEW_STATE_VALUES.schema.hideDeprecatedItemsInSchemaReference}})}async delete(In){const Rn=this.#e.get(In);return Rn?(await deleteTabViewState(In),this.#e.delete(In),this.triggerListeners(In,"delete",Rn),!0):!1}get(In){return this.#e.get(In)}async load(In){this.#e.forEach(Mn=>{this.#e.delete(Mn.id),this.triggerListeners(Mn.id,"unload",Mn)});const Rn=await loadAllTabViewState(In);if(Rn)for(const Mn of Rn)this.#e.set(Mn.id,Mn),this.triggerListeners(Mn.id,"load",Mn)}subscribe(In,Rn){let Mn=this.#r.get(In);return Mn||(Mn=new Set,this.#r.set(In,Mn)),Mn.has(Rn)||Mn.add(Rn),()=>{Mn.delete(Rn),Mn.size===0&&this.#r.delete(In)}}subscribeAll(In){return this.subscribe(ALL_LISTENER_NAME,In)}update(In,Rn){let Mn=this.#e.get(In);if(!Mn)return;typeof Rn=="function"&&(Rn=Rn(Mn));const Ln=createHash(JSON.stringify(Mn));Mn=applyObjectChanges(Rn,Mn);const Hn=createHash(JSON.stringify(Mn));Ln!==Hn&&(this.#e.set(In,Mn),this.triggerListeners(In,"update",Mn),setTabViewState(Mn))}[Symbol.dispose](){this.#e[Symbol.dispose](),this.#t.forEach(In=>In())}triggerListeners(In,Rn,Mn){requestAnimationFrame(()=>{const Ln=this.#r.get(ALL_LISTENER_NAME);Ln&&Ln.forEach(jn=>jn(Rn,Mn));const Hn=this.#r.get(In);Hn&&Hn.forEach(jn=>jn(Rn,Mn))})}}function useTabViewStateStore(){return useRequiredService(TabViewStateStore.name)}class SchemaErrorCache extends SimpleCache{constructor(){super({lru:!0})}[Symbol.dispose](){super[Symbol.dispose]()}}function useSchemaErrorCache(){return useRequiredService(SchemaErrorCache.name)}const INITIAL_STATE$5={activeId:null,activeChildId:null,entries:[],followNewest:!0,stats:{all:0,errors:0,infos:0,warnings:0}};function LogProvider({children:on}){const In=useSubject(INITIAL_STATE$5);return useOnWorkspaceSwitchResetState(In.current),jsx$1(ActivateLogEntryProvider,{state$:In.current,children:jsx$1(AppendLogEntryProvider,{state$:In.current,children:jsx$1(AppendSchedulerLogEntryProvider,{state$:In.current,children:jsx$1(ClearLogProvider,{state$:In.current,children:jsx$1(CollapseLogScopeProvider,{state$:In.current,children:jsx$1(DeactivateLogEntryProvider,{state$:In.current,children:jsx$1(ExpandLogScopeProvider,{state$:In.current,children:jsx$1(UpdateFollowNewestProvider,{state$:In.current,children:jsx$1(LogStateContext.Provider,{value:In.current,children:on})})})})})})})})})}function useOnReceiveLogEntry$1(on){reactExports.useEffect(()=>graphQLEngineSchedulerClient.onReceiveLogEntry(on),[on])}function useOnWorkspaceSwitchResetState(on){reactExports.useEffect(()=>registerReceiveMessage(ACTIVATED_WORKSPACE_MESSAGE,()=>{on.next(INITIAL_STATE$5)}),[on])}const ActivateLogEntryContext=createNamedContext(noop$2,"ActivateLogEntry");function useActivateLogEntry(){return reactExports.useContext(ActivateLogEntryContext)}function ActivateLogEntryProvider({children:on,state$:In}){const Rn=reactExports.useCallback((Mn,Ln,Hn)=>{const jn=In.value();(jn.activeId!==Mn||jn.activeChildId!==Ln)&&jn.entries.some(({id:Wn})=>Wn===Mn)&&(In.next({...jn,entries:jn.entries.map(Wn=>Wn.id===Mn&&Wn.kind==="scope"?{...Wn,expanded:!0}:Wn),activeId:Mn,activeChildId:Ln??null,followNewest:Hn===void 0?jn.followNewest:Hn}),Mn&&sendMessage({kind:LOG_ENTRY_ACTIVATED_MESSAGE,logEntryId:Mn}))},[In]);return jsx$1(ActivateLogEntryContext.Provider,{value:Rn,children:on})}const AppendLogEntryContext=createNamedContext(async()=>"","AppendLogEntry");function useAppendLogEntry(){return reactExports.useContext(AppendLogEntryContext)}function AppendLogEntryProvider({children:on,state$:In}){const Rn=reactExports.useCallback(async(Mn,Ln,Hn,jn)=>{const Wn=await getItemDetails(Mn),Yn=createId();return appendLogEntry(In,{id:Yn,item:Wn,kind:"basic",level:Ln,message:Hn,timestamp:now(),details:jn}),Yn},[In]);return jsx$1(AppendLogEntryContext.Provider,{value:Rn,children:on})}const AppendSchedulerLogEntryContext=createNamedContext(noop$2,"AppendSchedulerLogEntry");function useAppendSchedulerLogEntry(){return reactExports.useContext(AppendSchedulerLogEntryContext)}function AppendSchedulerLogEntryProvider({children:on,state$:In}){const Rn=useSchemaErrorCache(),Mn=reactExports.useCallback(async Ln=>{const{kind:Hn}=Ln,jn=await getItemDetails(Ln.itemId);switch(Hn){case BASIC_LOG_ENTRY_KIND:appendLogEntry(In,{id:Ln.requestId??createId(),item:jn,kind:"basic",level:Ln.level,timestamp:now(),message:Ln.message,details:Ln.details});break;case HTTP_REQUEST_LOG_ENTRY_KIND:appendLogEntry(In,{id:Ln.requestId,scopeId:Ln.scopeId,item:jn,kind:"http-request",name:Ln.name,level:Ln.level,status:"pending",started:Ln.started,request:{uri:Ln.requestUri,method:Ln.method,headers:Ln.headers,body:Ln.body,cache:Ln.cache,credentials:Ln.credentials,referrerPolicy:Ln.referrerPolicy}});break;case HTTP_RESPONSE_LOG_ENTRY_KIND:updateLogEntry(In,Ln.requestId,vi=>({...vi,response:{body:"",headers:Ln.headers,chunks:0,contentLength:0,statusCode:Ln.statusCode,statusText:Ln.statusText}}));break;case HTTP_RESPONSE_BODY_CHUNK_LOG_ENTRY_KIND:updateLogEntry(In,Ln.requestId,vi=>({...vi,response:{...vi.response,body:vi.response.body+Ln.chunk,chunks:Ln.chunkIndex+1}}));break;case HTTP_RESPONSE_CANCELLED_LOG_ENTRY_KIND:updateLogEntry(In,Ln.requestId,vi=>({...vi,level:LogLevel.warning,status:"cancelled",stopped:Ln.stopped,duration:diff$1(vi.started,Ln.stopped),response:{...vi.response,contentLength:Ln.contentLength,error:Ln.error}}));break;case HTTP_RESPONSE_FAILED_LOG_ENTRY_KIND:{if(updateLogEntry(In,Ln.requestId,vi=>({...vi,level:LogLevel.error,status:"failed",stopped:Ln.stopped,duration:diff$1(vi.started,Ln.stopped),response:{...vi.response,contentLength:Ln.contentLength,error:Ln.error}})),Ln.requestKind===RequestKind.GRAPHQL_INTROSPECTION||Ln.requestKind===RequestKind.GRAPHQL_SDL_FETCH){const vi=Rn.get(Ln.itemId);if(Ln.scopeId!==vi?.scopeId||!Ln.scopeId&&!vi?.scopeId){const gi=In.value().entries.find(({id:mi})=>mi===Ln.requestId);gi?.kind==="http-request"&&Rn.set(Ln.itemId,gi)}}break}case HTTP_RESPONSE_FINISHED_LOG_ENTRY_KIND:{if(updateLogEntry(In,Ln.requestId,vi=>({...vi,status:"succeeded",stopped:Ln.stopped,duration:diff$1(vi.started,Ln.stopped),response:{...vi.response,contentLength:Ln.contentLength}})),Ln.requestKind===RequestKind.GRAPHQL_INTROSPECTION||Ln.requestKind===RequestKind.GRAPHQL_SDL_FETCH||Ln.requestKind===RequestKind.GRAPHQL_SDL_PROBE){const vi=Rn.get(Ln.itemId);vi&&(vi.scopeId!==Ln.scopeId||!vi.scopeId&&!Ln.scopeId)&&Rn.delete(Ln.itemId)}break}case SCOPE_BEGIN_LOG_ENTRY_KIND:appendLogEntry(In,{id:Ln.scopeId,item:jn,kind:"scope",name:Ln.name,level:Ln.level,started:Ln.started,details:Ln.details?{...Ln.details,status:"pending"}:{status:"pending"}});break;case SCOPE_END_LOG_ENTRY_KIND:const Wn=In.value().entries.filter(vi=>vi.kind==="http-request"&&vi.scopeId===Ln.scopeId),Yn=Wn.length?Wn[Wn.length-1]:null,hi=Wn.length?Wn.find(vi=>vi.status==="cancelled"||vi.status==="failed")??Yn:null;updateLogEntry(In,Ln.scopeId,vi=>({...vi,stopped:Ln.stopped,duration:diff$1(vi.started,Ln.stopped),level:hi?.level??vi.level,details:{...vi.details,cache:Yn?.request.cache,contentLength:Wn.reduce((gi,mi)=>gi+(mi.response?.contentLength??0),0),credentials:Yn?.request.credentials,method:Yn?.request.method,referrerPolicy:Yn?.request.referrerPolicy,requestHeaders:Yn?.request.headers,responseHeaders:Yn?.response?.headers,status:hi?.status??"succeeded",statusCode:hi?.response?.statusCode,statusText:hi?.response?.statusText}}));break;case SUBSCRIPTION_REQUEST_STARTED_LOG_ENTRY_KIND:appendLogEntry(In,{id:Ln.requestId,item:jn,kind:"subscription-request",level:Ln.level,status:"pending",started:Ln.started,uri:Ln.requestUri,protocol:Ln.protocol,connectionParams:Ln.connectionParams,contentLength:0,messages:0,data:""});break;case SUBSCRIPTION_REQUEST_PROTOCOL_LOG_ENTRY_KIND:updateLogEntry(In,Ln.requestId,vi=>({...vi,protocol:Ln.protocol}));break;case SUBSCRIPTION_REQUEST_MESSAGE_LOG_ENTRY_KIND:updateLogEntry(In,Ln.requestId,vi=>{const gi=vi.data+Ln.data+`
|
|
4763
|
+
`,_gql_doc={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"IntrospectionQuery"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__type"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"StringValue",value:"__Type",block:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fields"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:137,source:{name:"GraphQL request",locationOffset:{line:1,column:1},body:_gql_source}}};print(_gql_doc$3);print(_gql_doc$2);print(_gql_doc$1);print(_gql_doc);const SERVER_NOT_REACHABLE="Server Not Reachable";function isServerNotReachableError(on){return isDictionary(on)&&"message"in on&&on.message===SERVER_NOT_REACHABLE}class SchedulerClientBase extends MessageObserver{constructor(In){super(),this.createWorker=In}#e;#t;#r=!0;#n;#i=0;getContext(){if(!this.#e){const In=this.createWorker(),Rn={sendMessage:Mn=>In.postMessage(Mn)};In.onmessage=({data:Mn})=>{this.handleMessage(Rn,Mn)},this.#t=In,this.#e=Rn,this.#n=this.registerReceiveMessageHandler("scheduler-status-updated",({payload:{idling:Mn,lastUpdated:Ln}})=>{this.#r=Mn,this.#i=Ln}),this.checkIfIdle(),this.initializeWorker()}return this.#e}checkIfIdle(){const In=()=>{if(this.#t&&this.#r&&document.hidden&&now()-this.#i>TWO_MINUTES){this.stopWorker();return}this.checkIfIdle()};window.setTimeout(In,THIRTY_SECONDS)}initializeWorker(){this.sendMessage(new Message(INITIALIZE_WORKER_MESSAGE_TYPE,{appNamespace:window.appNamespace}))}stopWorker(){this.#t?.terminate(),this.#n?.(),this.#n=void 0,this.#t=void 0,this.#e=void 0}cancelTask(In){this.sendMessage(new Message(CANCEL_TASK_MESSAGE_TYPE,{taskId:In}))}}const DOCUMENT_ANALYSIS_MESSAGE_TYPE="analyze-document",DOCUMENT_OPERATIONS_ANALYSIS_MESSAGE_TYPE="analyze-document-operations",FILES_UPDATED_MESSAGE_TYPE="files-updated",VARIABLE_JSON_SCHEMA_UPDATED_MESSAGE_TYPE="variable-json-schema-updated";var backo2,hasRequiredBacko2;function requireBacko2(){if(hasRequiredBacko2)return backo2;hasRequiredBacko2=1,backo2=on;function on(In){In=In||{},this.ms=In.min||100,this.max=In.max||1e4,this.factor=In.factor||2,this.jitter=In.jitter>0&&In.jitter<=1?In.jitter:0,this.attempts=0}return on.prototype.duration=function(){var In=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var Rn=Math.random(),Mn=Math.floor(Rn*this.jitter*In);In=(Math.floor(Rn*10)&1)==0?In-Mn:In+Mn}return Math.min(In,this.max)|0},on.prototype.reset=function(){this.attempts=0},on.prototype.setMin=function(In){this.ms=In},on.prototype.setMax=function(In){this.max=In},on.prototype.setJitter=function(In){this.jitter=In},backo2}requireBacko2();var eventemitter3={exports:{}},hasRequiredEventemitter3;function requireEventemitter3(){return hasRequiredEventemitter3||(hasRequiredEventemitter3=1,function(on){var In=Object.prototype.hasOwnProperty,Rn="~";function Mn(){}Object.create&&(Mn.prototype=Object.create(null),new Mn().__proto__||(Rn=!1));function Ln(Yn,hi,vi){this.fn=Yn,this.context=hi,this.once=vi||!1}function Hn(Yn,hi,vi,gi,mi){if(typeof vi!="function")throw new TypeError("The listener must be a function");var yi=new Ln(vi,gi||Yn,mi),bi=Rn?Rn+hi:hi;return Yn._events[bi]?Yn._events[bi].fn?Yn._events[bi]=[Yn._events[bi],yi]:Yn._events[bi].push(yi):(Yn._events[bi]=yi,Yn._eventsCount++),Yn}function jn(Yn,hi){--Yn._eventsCount===0?Yn._events=new Mn:delete Yn._events[hi]}function Wn(){this._events=new Mn,this._eventsCount=0}Wn.prototype.eventNames=function(){var hi=[],vi,gi;if(this._eventsCount===0)return hi;for(gi in vi=this._events)In.call(vi,gi)&&hi.push(Rn?gi.slice(1):gi);return Object.getOwnPropertySymbols?hi.concat(Object.getOwnPropertySymbols(vi)):hi},Wn.prototype.listeners=function(hi){var vi=Rn?Rn+hi:hi,gi=this._events[vi];if(!gi)return[];if(gi.fn)return[gi.fn];for(var mi=0,yi=gi.length,bi=new Array(yi);mi<yi;mi++)bi[mi]=gi[mi].fn;return bi},Wn.prototype.listenerCount=function(hi){var vi=Rn?Rn+hi:hi,gi=this._events[vi];return gi?gi.fn?1:gi.length:0},Wn.prototype.emit=function(hi,vi,gi,mi,yi,bi){var Ei=Rn?Rn+hi:hi;if(!this._events[Ei])return!1;var _i=this._events[Ei],Si=arguments.length,xi,Ti;if(_i.fn){switch(_i.once&&this.removeListener(hi,_i.fn,void 0,!0),Si){case 1:return _i.fn.call(_i.context),!0;case 2:return _i.fn.call(_i.context,vi),!0;case 3:return _i.fn.call(_i.context,vi,gi),!0;case 4:return _i.fn.call(_i.context,vi,gi,mi),!0;case 5:return _i.fn.call(_i.context,vi,gi,mi,yi),!0;case 6:return _i.fn.call(_i.context,vi,gi,mi,yi,bi),!0}for(Ti=1,xi=new Array(Si-1);Ti<Si;Ti++)xi[Ti-1]=arguments[Ti];_i.fn.apply(_i.context,xi)}else{var Ai=_i.length,Mi;for(Ti=0;Ti<Ai;Ti++)switch(_i[Ti].once&&this.removeListener(hi,_i[Ti].fn,void 0,!0),Si){case 1:_i[Ti].fn.call(_i[Ti].context);break;case 2:_i[Ti].fn.call(_i[Ti].context,vi);break;case 3:_i[Ti].fn.call(_i[Ti].context,vi,gi);break;case 4:_i[Ti].fn.call(_i[Ti].context,vi,gi,mi);break;default:if(!xi)for(Mi=1,xi=new Array(Si-1);Mi<Si;Mi++)xi[Mi-1]=arguments[Mi];_i[Ti].fn.apply(_i[Ti].context,xi)}}return!0},Wn.prototype.on=function(hi,vi,gi){return Hn(this,hi,vi,gi,!1)},Wn.prototype.once=function(hi,vi,gi){return Hn(this,hi,vi,gi,!0)},Wn.prototype.removeListener=function(hi,vi,gi,mi){var yi=Rn?Rn+hi:hi;if(!this._events[yi])return this;if(!vi)return jn(this,yi),this;var bi=this._events[yi];if(bi.fn)bi.fn===vi&&(!mi||bi.once)&&(!gi||bi.context===gi)&&jn(this,yi);else{for(var Ei=0,_i=[],Si=bi.length;Ei<Si;Ei++)(bi[Ei].fn!==vi||mi&&!bi[Ei].once||gi&&bi[Ei].context!==gi)&&_i.push(bi[Ei]);_i.length?this._events[yi]=_i.length===1?_i[0]:_i:jn(this,yi)}return this},Wn.prototype.removeAllListeners=function(hi){var vi;return hi?(vi=Rn?Rn+hi:hi,this._events[vi]&&jn(this,vi)):(this._events=new Mn,this._eventsCount=0),this},Wn.prototype.off=Wn.prototype.removeListener,Wn.prototype.addListener=Wn.prototype.on,Wn.prefixed=Rn,Wn.EventEmitter=Wn,on.exports=Wn}(eventemitter3)),eventemitter3.exports}requireEventemitter3();var defaults={},hasRequiredDefaults;function requireDefaults(){if(hasRequiredDefaults)return defaults;hasRequiredDefaults=1,Object.defineProperty(defaults,"__esModule",{value:!0}),defaults.WS_TIMEOUT=defaults.MIN_WS_TIMEOUT=void 0;var on=1e3;defaults.MIN_WS_TIMEOUT=on;var In=3e4;return defaults.WS_TIMEOUT=In,defaults}requireDefaults();var messageTypes={},hasRequiredMessageTypes;function requireMessageTypes(){if(hasRequiredMessageTypes)return messageTypes;hasRequiredMessageTypes=1,Object.defineProperty(messageTypes,"__esModule",{value:!0});var on=function(){function In(){throw new Error("Static Class")}return In.GQL_CONNECTION_INIT="connection_init",In.GQL_CONNECTION_ACK="connection_ack",In.GQL_CONNECTION_ERROR="connection_error",In.GQL_CONNECTION_KEEP_ALIVE="ka",In.GQL_CONNECTION_TERMINATE="connection_terminate",In.GQL_START="start",In.GQL_DATA="data",In.GQL_ERROR="error",In.GQL_COMPLETE="complete",In.GQL_STOP="stop",In.SUBSCRIPTION_START="subscription_start",In.SUBSCRIPTION_DATA="subscription_data",In.SUBSCRIPTION_SUCCESS="subscription_success",In.SUBSCRIPTION_FAIL="subscription_fail",In.SUBSCRIPTION_END="subscription_end",In.INIT="init",In.INIT_SUCCESS="init_success",In.INIT_FAIL="init_fail",In.KEEP_ALIVE="keepalive",In}();return messageTypes.default=on,messageTypes}requireMessageTypes();var protocol={},hasRequiredProtocol;function requireProtocol(){if(hasRequiredProtocol)return protocol;hasRequiredProtocol=1,Object.defineProperty(protocol,"__esModule",{value:!0}),protocol.GRAPHQL_SUBSCRIPTIONS=protocol.GRAPHQL_WS=void 0;var on="graphql-ws";protocol.GRAPHQL_WS=on;var In="graphql-subscriptions";return protocol.GRAPHQL_SUBSCRIPTIONS=In,protocol}requireProtocol();var isObject$1={},hasRequiredIsObject;function requireIsObject(){if(hasRequiredIsObject)return isObject$1;hasRequiredIsObject=1,Object.defineProperty(isObject$1,"__esModule",{value:!0});function on(In){return In!==null&&typeof In=="object"}return isObject$1.default=on,isObject$1}requireIsObject();var isString$1={},hasRequiredIsString;function requireIsString(){if(hasRequiredIsString)return isString$1;hasRequiredIsString=1,Object.defineProperty(isString$1,"__esModule",{value:!0});function on(In){return typeof In=="string"}return isString$1.default=on,isString$1}requireIsString();function symbolObservablePonyfill(on){var In,Rn=on.Symbol;return typeof Rn=="function"?Rn.observable?In=Rn.observable:(In=Rn("observable"),Rn.observable=In):In="@@observable",In}var root;typeof self<"u"?root=self:typeof window<"u"?root=window:typeof global$1<"u"?root=global$1:typeof module<"u"?root=module:root=Function("return this")();symbolObservablePonyfill(root);const _global=typeof global$1<"u"?global$1:typeof window<"u"?window:{};_global.WebSocket||_global.MozWebSocket;const EXECUTE_OPERATION_REQUEST_MESSAGE_TYPE="execute-operation",DEFAULT_SCHEMA_INFO={endpoint:"",exists:!1,hash:"",indexed:!1,hasMutationType:!1,hasSubscriptionType:!1,hasUploadType:!1},CANCEL_OPERATION_REQUEST_MESSAGE_TYPE="cancel-request",SCHEMA_API_FETCHER_MESSAGE_TYPE="fetch-api-schema",FETCH_SCHEMA_DIRECTIVE="fetch-directive",FETCH_SCHEMA_DIRECTIVES="fetch-directives",SCHEMA_FETCHER_CACHED_MESSAGE_TYPE="get-cached-schema",SCHEMA_FETCHER_MESSAGE_TYPE="fetch-schema",FETCH_SCHEMA_FIELD_TYPE="fetch-field",FETCH_SCHEMA_FIELD_TYPES="fetch-fields",FETCH_SCHEMA_FIELDS_AND_TYPES="fetch-fields-and-types",FETCH_SCHEMA_REFERENCE="fetch-schema-reference",FETCH_SCHEMA_ROOT_TYPES="fetch-schema-root-types",FETCH_SCHEMA_TYPE="fetch-type",FETCH_SCHEMA_TYPES="fetch-types";class GraphQLEngineSchedulerClient extends SchedulerClientBase{analyzeDocument(In,Rn){return this.sendAndReceiveMessage(new Message(DOCUMENT_ANALYSIS_MESSAGE_TYPE,{documentId:In}),!1,Rn)}analyzeDocumentOperations(In,Rn){return this.sendAndReceiveMessage(new Message(DOCUMENT_OPERATIONS_ANALYSIS_MESSAGE_TYPE,{documentId:In}),!1,Rn)}cancelRequest(In){this.sendMessage(new Message(CANCEL_OPERATION_REQUEST_MESSAGE_TYPE,{documentId:In}))}executeOperation(In,Rn,Mn,Ln){this.sendMessage(new Message(EXECUTE_OPERATION_REQUEST_MESSAGE_TYPE,{documentId:In,workspaceId:Rn,environmentId:Mn,operationIndex:Ln}))}filesUpdated(In){this.sendMessage(new Message(FILES_UPDATED_MESSAGE_TYPE,{documentId:In}))}fetchSchema(In,Rn,Mn){return this.sendAndReceiveMessage(new Message(SCHEMA_FETCHER_MESSAGE_TYPE,{documentId:In,environmentId:Rn}),!1,Mn)}fetchApiSchema(In,Rn,Mn){return this.sendAndReceiveMessage(new Message(SCHEMA_API_FETCHER_MESSAGE_TYPE,{apiId:In,stageId:Rn}),!1,Mn)}getCachedSchema(In,Rn){return this.sendAndReceiveMessage(new Message(SCHEMA_FETCHER_CACHED_MESSAGE_TYPE,{documentId:In,environmentId:Rn}))}getDirective(In,Rn){return this.sendAndReceiveMessage(new Message(FETCH_SCHEMA_DIRECTIVE,{schemaEndpoint:In,coordinate:Rn}))}getDirectives(In){return this.sendAndReceiveMessage(new Message(FETCH_SCHEMA_DIRECTIVES,{schemaEndpoint:In}))}getField(In,Rn){return this.sendAndReceiveMessage(new Message(FETCH_SCHEMA_FIELD_TYPE,{schemaEndpoint:In,coordinate:Rn}))}getFields(In,Rn,Mn){return this.sendAndReceiveMessage(new Message(FETCH_SCHEMA_FIELD_TYPES,{schemaEndpoint:In,typeName:Rn,options:Mn}))}getFieldsAndTypes(In,Rn,Mn){return this.sendAndReceiveMessage(new Message(FETCH_SCHEMA_FIELDS_AND_TYPES,{schemaEndpoint:In,coordinate:Rn,options:Mn}))}getRootTypes(In,Rn){return this.sendAndReceiveMessage(new Message(FETCH_SCHEMA_ROOT_TYPES,{schemaEndpoint:In,filter:Rn}))}getSchemaReference(In,Rn,Mn){return this.sendAndReceiveMessage(new Message(FETCH_SCHEMA_REFERENCE,{schemaEndpoint:In,typeCategory:Rn,filter:Mn}))}getType(In,Rn){return this.sendAndReceiveMessage(new Message(FETCH_SCHEMA_TYPE,{schemaEndpoint:In,typeName:Rn}))}getTypes(In,Rn){return this.sendAndReceiveMessage(new Message(FETCH_SCHEMA_TYPES,{schemaEndpoint:In,filter:Rn}))}onReceiveOperationRequestStatus(In){return this.registerReceiveMessageHandler(OPERATION_REQUEST_STATUS_MESSAGE_TYPE,({payload:Rn})=>In(Rn))}onReceiveHistoryEntry(In){return this.registerReceiveMessageHandler(HISTORY_ENTRY_MESSAGE_TYPE,({payload:Rn})=>{In(Rn)})}onReceiveLogEntry(In){return this.registerReceiveMessageHandler(LOG_ENTRY_MESSAGE_TYPE,({payload:Rn})=>{In(Rn)})}onReceiveResult(In){return this.registerReceiveMessageHandler(OPERATION_RESULT_MESSAGE_TYPE,({payload:{documentId:Rn,result:Mn}})=>{In(Rn,Mn)})}onReceiveResultMessage(In){return this.registerReceiveMessageHandler(OPERATION_RESULT_EVENT_MESSAGE_TYPE,({payload:{documentId:Rn,resultId:Mn,event:Ln}})=>{In(Rn,Mn,Ln)})}onReceiveResultPatch(In){return this.registerReceiveMessageHandler(OPERATION_RESULT_PATCH_MESSAGE_TYPE,({payload:{documentId:Rn,resultId:Mn,patch:Ln}})=>{In(Rn,Mn,Ln)})}onReceiveVariableBatchingResult(In){return this.registerReceiveMessageHandler(OPERATION_VARIABLE_BATCHING_RESULT_MESSAGE_TYPE,({payload:{documentId:Rn,resultId:Mn,result:Ln}})=>{In(Rn,Mn,Ln)})}onVariableJsonSchemaUpdated(In){return this.registerReceiveMessageHandler(VARIABLE_JSON_SCHEMA_UPDATED_MESSAGE_TYPE,({payload:{documentId:Rn,variableJsonSchemaHash:Mn}})=>{In(Rn,Mn)})}}const INDEX_SCHEMA_MESSAGE_TYPE="index-schema",SCHEMA_INDEXED_MESSAGE_TYPE="schema-indexed";class GraphQLIndexerSchedulerClient extends SchedulerClientBase{indexSchema(In,Rn,Mn){this.sendMessage(new Message(INDEX_SCHEMA_MESSAGE_TYPE,{schemaEndpoint:In,schemaHash:Rn,schemaUpdatedAt:Mn}))}onSchemaIndexed(In){return this.registerReceiveMessageHandler(SCHEMA_INDEXED_MESSAGE_TYPE,({payload:Rn})=>{In(Rn)})}}function WorkerWrapper$6(on){return new Worker(""+new URL("graphql-engine-scheduler.32393d3f.BKOKUF1h.js",import.meta.url).href,{type:"module",name:on?.name})}function WorkerWrapper$5(on){return new Worker(""+new URL("graphql-indexer-scheduler.32393d3f.ClPGWCSG.js",import.meta.url).href,{type:"module",name:on?.name})}function WorkerWrapper$4(on){return new Worker(""+new URL("session-scheduler.32393d3f.l7O1I_X6.js",import.meta.url).href,{type:"module",name:on?.name})}const CREATE_USER_ACCOUNT_MESSAGE_TYPE="create-user-account";function createCreateUserAccountMessage(){return new Message(CREATE_USER_ACCOUNT_MESSAGE_TYPE,{})}const CREATE_WORKSPACE_TASK_TYPE="create-workspace-task";function createCreateWorkspaceMessage(on,In){return new Message(CREATE_WORKSPACE_TASK_TYPE,{userSession:on,workspaceName:In})}const DELETE_API_TASK_TYPE="delete-api-task";function createDeleteApiMessage(on){return new Message(DELETE_API_TASK_TYPE,{apiId:on})}const ORGANIZATION_INFO_FETCHER_MESSAGE_TYPE="fetch-organization-info";function createOrganizationInfoMessage(){return new Message(ORGANIZATION_INFO_FETCHER_MESSAGE_TYPE,void 0)}const SETTINGS_FETCHER_MESSAGE_TYPE="fetch-settings";function createFetchSettingsMessage(){return new Message(SETTINGS_FETCHER_MESSAGE_TYPE,void 0)}const FETCH_WORKSPACES_TASK_TYPE="fetch-workspaces-task-type";function createFetchWorkspacesMessage(on){return new Message(FETCH_WORKSPACES_TASK_TYPE,{userSession:on})}const PERSIST_THEME_SETTINGS_MESSAGE_TYPE="persist-theme-settings";function createPersistThemeSettingsMessage(on){return new Message(PERSIST_THEME_SETTINGS_MESSAGE_TYPE,on)}const REFRESH_TOKEN_MESSAGE_TYPE="refresh-token";function createRefreshTokenMessage(on){return new Message(REFRESH_TOKEN_MESSAGE_TYPE,{tenantInfo:on})}const UPDATE_FEATURE_FLAGS_MESSAGE_TYPE="update-feature-flags";function createUpdateFeatureFlagsMessage(on){return new Message(UPDATE_FEATURE_FLAGS_MESSAGE_TYPE,{featureFlags:on})}const USER_ACCOUNT_FETCHER_MESSAGE_TYPE="fetch-user-account";function createUserAccountMessage(){return new Message(USER_ACCOUNT_FETCHER_MESSAGE_TYPE,void 0)}const WORKSPACE_SYNCHRONIZATION_MESSAGE_TYPE="synchronize-workspace",WORKSPACE_SYNCHRONIZATION_PROGRESS_MESSAGE_TYPE="synchronize-workspace-progress";function createSynchronizeWorkspaceMessage(on,In){return new Message(WORKSPACE_SYNCHRONIZATION_MESSAGE_TYPE,{workspaceId:on,version:In})}const UPDATE_PREFERENCES_MESSAGE_TYPE="update-preferences";function createUpdatePreferencesMessage(on){return new Message(UPDATE_PREFERENCES_MESSAGE_TYPE,{preferences:on})}class SessionSchedulerClient extends SchedulerClientBase{fetchOrganizationInfo(In){return this.sendAndReceiveMessage(createOrganizationInfoMessage(),!1,In)}fetchUserAccount(In){return this.sendAndReceiveMessage(createUserAccountMessage(),!1,In)}createUserAccount(In){return this.sendAndReceiveMessage(createCreateUserAccountMessage(),!1,In)}refreshToken(In,Rn){return this.sendAndReceiveMessage(createRefreshTokenMessage(In),!1,Rn)}fetchSettings(In){return this.sendAndReceiveMessage(createFetchSettingsMessage(),!1,In)}persistThemeSettings(In){this.sendMessage(createPersistThemeSettingsMessage(In))}fetchWorkspaces(In,Rn){return this.sendAndReceiveMessage(createFetchWorkspacesMessage(In),!1,Rn)}createWorkspace(In,Rn,Mn){return this.sendAndReceiveMessage(createCreateWorkspaceMessage(In,Rn),!1,Mn)}synchronizeWorkspace(In,Rn,Mn){return this.sendAndReceiveMessage(createSynchronizeWorkspaceMessage(In,Rn),!1,Mn)}updateFeatureFlags(In,Rn){return this.sendAndReceiveMessage(createUpdateFeatureFlagsMessage(In),!1,Rn)}updatePreferences(In,Rn){return this.sendAndReceiveMessage(createUpdatePreferencesMessage(In),!1,Rn)}deleteApi(In,Rn){return this.sendAndReceiveMessage(createDeleteApiMessage(In),!1,Rn)}onReceiveLogEntry(In){return this.registerReceiveMessageHandler(LOG_ENTRY_MESSAGE_TYPE,({payload:Rn})=>In(Rn))}onReceiveUserSessionExpired(In){return this.registerReceiveMessageHandler(USER_SESSION_EXPIRED_MESSAGE_TYPE,()=>In())}onReceiveWorkspaceSynchronizationProgress(In){return this.registerReceiveMessageHandler(WORKSPACE_SYNCHRONIZATION_PROGRESS_MESSAGE_TYPE,({payload:Rn})=>In(Rn))}}const graphQLEngineSchedulerClient=new GraphQLEngineSchedulerClient(()=>new WorkerWrapper$6({name:"graphql-engine"})),graphQLIndexerSchedulerClient=new GraphQLIndexerSchedulerClient(()=>new WorkerWrapper$5({name:"graphql-indexer"})),sessionSchedulerClient=new SessionSchedulerClient(()=>new WorkerWrapper$4({name:"session"}));class ServiceProvider{#e=new Map;#t;#r=null;constructor(In,Rn){this.#t=new Map(In.map(([Mn,Ln,Hn])=>[Mn,{create:Ln,dependencies:Hn}])),this.#r=Rn??null}get parent(){return this.#r}getService(In){let Rn=this,Mn=this.#e.get(In)??null;if(Mn)return Mn;const Ln=this.#t.get(In);if(!Ln){for(;!Mn&&(Rn=Rn.parent);)Mn=Rn.getService(In);return Mn}if(Mn=Ln.create(Rn)??null,Mn&&(this.#e.set(In,Mn),Ln.dependencies))for(const Hn of Ln.dependencies)this.getService(Hn);return Mn}getRequiredService(In){const Rn=this.getService(In);if(!Rn)throw new Error(`Service "${In}" not found!`);return Rn}[Symbol.dispose](){this.#e.forEach(In=>{isDisposable(In)&&In[Symbol.dispose]()}),this.#e.clear()}}function ServiceDependencyProvider({children:on,services:In}){const Rn=useServiceProvider(),Mn=useRefWithInitializer(()=>new ServiceProvider(In,Rn));return reactExports.useEffect(()=>()=>Mn.current[Symbol.dispose](),[Mn]),jsx$1(ServiceProviderContext.Provider,{value:Mn.current,children:on})}const ServiceProviderContext=createNamedContext(null,ServiceProvider.name);function useServiceProvider(){return reactExports.useContext(ServiceProviderContext)}function useRequiredService(on){const In=useServiceProvider();if(!In)throw new Error("Provider undefined!");return In.getRequiredService(on)}var ItemChangeAction=(on=>(on.LOAD="load",on.LOAD_DEPENDENCY="load-dependency",on.UNLOAD="unload",on.UPDATE="update",on.SAVE="save",on))(ItemChangeAction||{});const ALL_LISTENER_NAME$1="all";class ItemStore{#e=new LifecycleCache({lru:!1});#t=new Map;#r;#n=new Map;constructor(){this.#r=[registerReceiveMessage(ACTIVATED_WORKSPACE_MESSAGE,({workspaceId:In})=>{this.#e.forEach(Rn=>{Rn.workspaceId!==In&&this.unloadItem(Rn.id)})}),registerReceiveMessage(DELETED_ITEMS_MESSAGE,({deletedItems:In})=>{In.forEach(({id:Rn})=>this.unloadItem(Rn))}),registerReceiveMessage(RENAMED_ITEM_MESSAGE,({itemId:In,itemKind:Rn})=>this.reload(In,Rn)),registerReceiveMessage(MOVED_ITEMS_MESSAGE,({movedItems:In})=>In.forEach(({id:Rn,kind:Mn})=>this.reload(Rn,Mn))),sessionSchedulerClient.onReceiveWorkspaceSynchronizationProgress(({changes:In})=>In.forEach(async Rn=>{switch(Rn.kind){case"delete":this.unloadItem(Rn.id);break;case"update":await this.reload(Rn.id,Rn.itemKind);break}}))]}async createApi(In,Rn,Mn,Ln){const Hn=await createApiItem(In,Rn,Mn,null,null,Ln);return this.#e.set(In,Hn,{permanent:!0}),this.triggerListeners(In,"load",Hn),Hn}async createNewApi(In,Rn,Mn){const Ln=await createNewApiItem(In,Rn,Mn);return this.#e.set(In,Ln,{permanent:!0}),this.triggerListeners(In,"load",Ln),Ln}async createApiDocument(In,Rn,Mn,Ln,Hn){const jn=await createApiDocumentItem(In,Rn,Mn,Ln,null,null,Hn);return await this.setDocument(In,jn,"load"),jn}async createBasicDocument(In,Rn,Mn,Ln,Hn){const jn=await createBasicDocumentItem(In,Rn,Mn,null,null,Ln,Hn);return await this.setDocument(In,jn,"load"),jn}async createNewDocument(In,Rn,Mn,Ln){const Hn=await createNewDocumentItem(In,Rn,Mn,Ln);return await this.setDocument(In,Hn,"load"),Hn}async createEnvironment(In,Rn,Mn){const Ln=await createEnvironmentItem(In,Rn,null,null,Mn);return this.#e.set(In,Ln,{permanent:!0}),this.triggerListeners(In,"load",Ln),Ln}async createNewEnvironment(In,Rn,Mn){const Ln=await createNewEnvironmentItem(In,Rn,Mn);return this.#e.set(In,Ln,{permanent:!0}),this.triggerListeners(In,"load",Ln),Ln}async duplicateApi(In,Rn,Mn){const Ln=await duplicateApiItem(In,Rn,Mn);return Ln&&(this.#e.set(Rn,Ln,{permanent:!0}),this.triggerListeners(Rn,"load",Ln)),Ln}async duplicateDocument(In,Rn,Mn){const Ln=await duplicateDocumentItem(In,Rn,Mn);return Ln&&await this.setDocument(Rn,Ln,"load"),Ln}async duplicateEnvironment(In,Rn,Mn){const Ln=await duplicateEnvironmentItem(In,Rn,Mn);return Ln&&(this.#e.set(Rn,Ln,{permanent:!0}),this.triggerListeners(Rn,"load",Ln)),Ln}get(In){return this.#e.get(In)}async getApi(In){const Rn=this.#e.get(In);return isApiItem(Rn)?(this.#e.isPermanent(In)||(this.#e.set(In,Rn,{permanent:!0}),this.triggerListeners(In,"load",Rn)),Rn):await this.reloadApi(In,!0)}async getNewApi(In){const Rn=this.#e.get(In);if(isNewApiItem(Rn))return this.#e.isPermanent(In)||(this.#e.set(In,Rn,{permanent:!0}),this.triggerListeners(In,"load",Rn)),Rn;const[Mn,Ln]=this.loadItem(In,()=>this.getNewApi(In));if(Mn)return await Ln;const Hn=await Ln;return Hn&&(this.#e.set(In,Hn,{permanent:!0}),this.triggerListeners(In,"load",Hn)),Hn}async getDocument(In){const Rn=this.#e.get(In);return isDocumentItem(Rn)?Rn:await this.reloadDocument(In)}async getEnvironment(In){const Rn=this.#e.get(In);return isEnvironmentItem(Rn)?Rn:await this.reloadEnvironment(In)}async saveApi(In,Rn){const Mn=this.#e.get(In);if(isApiItem(Mn))try{const Ln=await saveApiItem(In,Rn);return this.#e.set(In,Ln,{permanent:!0}),this.triggerListeners(In,"save",Ln),Ln}catch{return}}async saveNewApi(In,Rn,Mn,Ln,Hn){const jn=this.#e.get(In);if(isNewApiItem(jn))try{const Wn=await saveNewApiItem(In,Rn,Mn,Ln,Hn);return this.#e.set(In,Wn,{permanent:!0}),this.triggerListeners(In,"save",Wn),Wn}catch{return}}async saveDocument(In){const Rn=this.#e.get(In);if(isDocumentItem(Rn))try{const Mn=await saveDocumentItem(In);return await this.setDocument(In,Mn,"save"),Mn}catch{return}}async saveNewDocument(In,Rn,Mn,Ln){const Hn=this.#e.get(In);if(isDocumentItem(Hn))try{const jn=await saveNewDocumentItem(In,Rn,Mn,Ln);return await this.setDocument(In,jn,"save"),jn}catch{return}}async saveEnvironment(In){const Rn=this.#e.get(In);if(isEnvironmentItem(Rn))try{const Mn=await saveEnvironmentItem(In);return this.#e.set(In,Mn,{permanent:!0}),this.triggerListeners(In,"save",Mn),Mn}catch{return}}async saveNewEnvironment(In,Rn,Mn){const Ln=this.#e.get(In);if(isNewEnvironmentItem(Ln))try{const Hn=await saveNewEnvironmentItem(In,Rn,Mn);return this.#e.set(In,Hn,{permanent:!0}),this.triggerListeners(In,"save",Hn),Hn}catch{return}}subscribe(In,Rn){let Mn=this.#n.get(In);return Mn||(Mn=new Set,this.#n.set(In,Mn)),Mn.has(Rn)||Mn.add(Rn),()=>{Mn.delete(Rn),Mn.size===0&&this.#n.delete(In)}}subscribeAll(In){return this.subscribe(ALL_LISTENER_NAME$1,In)}unloadItem(In){const Rn=this.#e.get(In);if(Rn){const Mn=this.#e.isPermanent(In);return this.#e.delete(In),Mn&&this.triggerListeners(In,"unload",Rn),!0}return!1}updateDocumentContentBody(In,Rn){return this.updateDocumentContent(In,Mn=>updateDocumentContentBody(Mn,Rn))}updateDocumentContentVariables(In,Rn){return this.updateDocumentContent(In,Mn=>updateDocumentContentVariables(Mn,Rn))}[Symbol.dispose](){this.#e[Symbol.dispose](),this.#r.forEach(In=>In())}loadItem(In,Rn){if(this.#t.has(In))return[!0,this.#t.get(In)];const Mn=Rn().then(Ln=>(this.#t.delete(In),Ln));return this.#t.set(In,Mn),[!1,Mn]}async reload(In,Rn){switch(Rn){case"api":await this.reloadApi(In,!1);break;case"api-document":case"document":await this.reloadDocument(In);break;case"environment":await this.reloadEnvironment(In);break}}async reloadApi(In,Rn){const[Mn,Ln]=this.loadItem(In,()=>getApiItem(In));if(Mn)return await Ln;const Hn=await Ln;if(Hn){const jn=Rn||this.#e.isPermanent(In);this.#e.set(In,Hn,{permanent:jn}),jn?this.triggerListeners(In,"load",Hn):this.triggerListeners(In,"load-dependency",Hn)}return Hn}async reloadDocument(In){const[Rn,Mn]=this.loadItem(In,()=>getDocumentItemAndContent(In));if(Rn)return await Mn;const Ln=await Mn;return Ln&&await this.setDocument(In,Ln,"load"),Ln}async reloadEnvironment(In){const[Rn,Mn]=this.loadItem(In,()=>getEnvironmentItemAndVariables(In));if(Rn)return await Mn;const Ln=await Mn;return Ln&&(this.#e.set(In,Ln,{permanent:!0}),this.triggerListeners(In,"load",Ln)),Ln}async setDocument(In,Rn,Mn){if(isApiDocumentItem(Rn)){if(this.#e.set(In,Rn,{permanent:!0,references:[Rn.apiId]}),this.#e.has(Rn.apiId)){this.triggerListeners(In,Mn,Rn);return}const[Ln,Hn]=this.loadItem(Rn.apiId,()=>getApiItem(Rn.apiId));if(Ln){await Hn,this.triggerListeners(In,Mn,Rn);return}const jn=await Hn;jn&&(this.#e.set(jn.id,jn,{permanent:!1}),this.triggerListeners(jn.id,"load-dependency",jn)),this.triggerListeners(In,Mn,Rn)}else this.#e.set(In,Rn,{permanent:!0}),this.triggerListeners(In,Mn,Rn)}async updateDocumentContent(In,Rn){const Mn=this.#e.get(In);if(!isDocumentItem(Mn))return;const Ln=await Rn(In);return Ln&&(this.#e.update(In,Ln),this.triggerListeners(In,"update",Ln)),Ln}triggerListeners(In,Rn,Mn){requestAnimationFrame(()=>{const Ln=this.#n.get(ALL_LISTENER_NAME$1);Ln&&Ln.forEach(jn=>jn(Rn,Mn));const Hn=this.#n.get(In);Hn&&Hn.forEach(jn=>jn(Rn,Mn))})}}function useItemStore(){return useRequiredService(ItemStore.name)}function applyObjectChanges(on,In){const Rn={...In};for(const Mn of Object.keys(on)){const Ln=In[Mn],Hn=on[Mn];typeof Ln=="object"&&Ln!==null&&typeof Hn=="object"&&Hn!==null&&!Array.isArray(Ln)&&!Array.isArray(Hn)?Rn[Mn]=applyObjectChanges(Hn,Ln):Rn[Mn]=Hn}return Rn}const ALL_LISTENER_NAME="all";class TabViewStateStore{#e=new SimpleCache({lru:!1});#t;#r=new Map;constructor(){this.#t=[registerReceiveMessage(DELETED_ITEMS_MESSAGE,({deletedItems:In})=>In.forEach(({id:Rn})=>this.delete(Rn))),registerReceiveMessage(DOCUMENT_ANALYZED_MESSAGE,({documentId:In,operations:Rn})=>{const Mn=this.#e.get(In);if(!(!Mn||!Mn.graphqlDocument)){if(Rn.length===0){this.update(In,{graphqlDocument:{activeOperation:void 0}});return}(Mn.graphqlDocument.activeOperation===void 0||Mn.graphqlDocument.activeOperation>=Rn.length)&&this.update(In,{graphqlDocument:{activeOperation:0}})}}),sessionSchedulerClient.onReceiveWorkspaceSynchronizationProgress(({changes:In})=>In.forEach(async Rn=>{switch(Rn.kind){case"delete":await this.delete(Rn.id);break}}))]}create(In){this.#e.set(In.id,In),this.triggerListeners(In.id,"create",In),setTabViewState(In)}createApi(In,Rn,Mn){this.create({id:In,workspaceId:Rn,api:{...Mn?.api,activeViewId:Mn?.api?.activeViewId??DEFAULT_TAB_VIEW_STATE_VALUES.api.activeViewId,activeSchemaChangelogViewId:Mn?.api?.activeSchemaChangelogViewId??DEFAULT_TAB_VIEW_STATE_VALUES.api.activeSchemaChangelogViewId,activeMonitoringViewId:Mn?.api?.activeMonitoringViewId??DEFAULT_TAB_VIEW_STATE_VALUES.api.activeMonitoringViewId,metricsDateTimeRange:Mn?.api?.metricsDateTimeRange??DEFAULT_TAB_VIEW_STATE_VALUES.api.metricsDateTimeRange},detailInfo:Mn?.detailInfo?{...Mn?.detailInfo}:void 0,schema:{...Mn?.schema,activeSchemaViewId:Mn?.schema?.activeSchemaViewId??DEFAULT_TAB_VIEW_STATE_VALUES.schema.activeSchemaViewId,activeSchemaReferenceViewId:Mn?.schema?.activeSchemaReferenceViewId??DEFAULT_TAB_VIEW_STATE_VALUES.schema.activeSchemaReferenceViewId,hideDeprecatedItemsInSchemaReference:Mn?.schema?.hideDeprecatedItemsInSchemaReference??DEFAULT_TAB_VIEW_STATE_VALUES.schema.hideDeprecatedItemsInSchemaReference}})}createGraphqlDocument(In,Rn,Mn){this.create({id:In,workspaceId:Rn,api:{...Mn?.api,metricsDateTimeRange:Mn?.api?.metricsDateTimeRange??DEFAULT_TAB_VIEW_STATE_VALUES.api.metricsDateTimeRange},graphqlDocument:{...Mn?.graphqlDocument,activeViewId:Mn?.graphqlDocument?.activeViewId??DEFAULT_TAB_VIEW_STATE_VALUES.graphqlDocument.activeViewId,activeOperationCompanionViewId:Mn?.graphqlDocument?.activeOperationCompanionViewId??DEFAULT_TAB_VIEW_STATE_VALUES.graphqlDocument.activeOperationCompanionViewId,activeOperationsSettingsViewId:Mn?.graphqlDocument?.activeOperationsSettingsViewId??DEFAULT_TAB_VIEW_STATE_VALUES.graphqlDocument.activeOperationsSettingsViewId,activeResponseViewId:Mn?.graphqlDocument?.activeResponseViewId??DEFAULT_TAB_VIEW_STATE_VALUES.graphqlDocument.activeResponseViewId,isOperationCompanionCollapsed:Mn?.graphqlDocument?.isOperationCompanionCollapsed??DEFAULT_TAB_VIEW_STATE_VALUES.graphqlDocument.isOperationCompanionCollapsed,isOperationsSettingsPaneCollapsed:Mn?.graphqlDocument?.isOperationsSettingsPaneCollapsed??DEFAULT_TAB_VIEW_STATE_VALUES.graphqlDocument.isOperationsSettingsPaneCollapsed,isResponseEntriesPaneCollapsed:Mn?.graphqlDocument?.isResponseEntriesPaneCollapsed??DEFAULT_TAB_VIEW_STATE_VALUES.graphqlDocument.isResponseEntriesPaneCollapsed,operationsSettingsPaneHeight:Mn?.graphqlDocument?.operationsSettingsPaneHeight??DEFAULT_TAB_VIEW_STATE_VALUES.graphqlDocument.operationsSettingsPaneHeight,responseEntriesPaneHeight:Mn?.graphqlDocument?.responseEntriesPaneHeight??DEFAULT_TAB_VIEW_STATE_VALUES.graphqlDocument.responseEntriesPaneHeight,focusedElement:Mn?.graphqlDocument?.focusedElement??DEFAULT_TAB_VIEW_STATE_VALUES.graphqlDocument.focusedElement,showIntrospectionFieldsInOperationBuilder:Mn?.graphqlDocument?.showIntrospectionFieldsInOperationBuilder??DEFAULT_TAB_VIEW_STATE_VALUES.graphqlDocument.showIntrospectionFieldsInOperationBuilder},detailInfo:Mn?.detailInfo?{...Mn?.detailInfo}:void 0,schema:{...Mn?.schema,activeSchemaViewId:Mn?.schema?.activeSchemaViewId??DEFAULT_TAB_VIEW_STATE_VALUES.schema.activeSchemaViewId,activeSchemaReferenceViewId:Mn?.schema?.activeSchemaReferenceViewId??DEFAULT_TAB_VIEW_STATE_VALUES.schema.activeSchemaReferenceViewId,hideDeprecatedItemsInSchemaReference:Mn?.schema?.hideDeprecatedItemsInSchemaReference??DEFAULT_TAB_VIEW_STATE_VALUES.schema.hideDeprecatedItemsInSchemaReference}})}async delete(In){const Rn=this.#e.get(In);return Rn?(await deleteTabViewState(In),this.#e.delete(In),this.triggerListeners(In,"delete",Rn),!0):!1}get(In){return this.#e.get(In)}async load(In){this.#e.forEach(Mn=>{this.#e.delete(Mn.id),this.triggerListeners(Mn.id,"unload",Mn)});const Rn=await loadAllTabViewState(In);if(Rn)for(const Mn of Rn)this.#e.set(Mn.id,Mn),this.triggerListeners(Mn.id,"load",Mn)}subscribe(In,Rn){let Mn=this.#r.get(In);return Mn||(Mn=new Set,this.#r.set(In,Mn)),Mn.has(Rn)||Mn.add(Rn),()=>{Mn.delete(Rn),Mn.size===0&&this.#r.delete(In)}}subscribeAll(In){return this.subscribe(ALL_LISTENER_NAME,In)}update(In,Rn){let Mn=this.#e.get(In);if(!Mn)return;typeof Rn=="function"&&(Rn=Rn(Mn));const Ln=createHash(JSON.stringify(Mn));Mn=applyObjectChanges(Rn,Mn);const Hn=createHash(JSON.stringify(Mn));Ln!==Hn&&(this.#e.set(In,Mn),this.triggerListeners(In,"update",Mn),setTabViewState(Mn))}[Symbol.dispose](){this.#e[Symbol.dispose](),this.#t.forEach(In=>In())}triggerListeners(In,Rn,Mn){requestAnimationFrame(()=>{const Ln=this.#r.get(ALL_LISTENER_NAME);Ln&&Ln.forEach(jn=>jn(Rn,Mn));const Hn=this.#r.get(In);Hn&&Hn.forEach(jn=>jn(Rn,Mn))})}}function useTabViewStateStore(){return useRequiredService(TabViewStateStore.name)}class SchemaErrorCache extends SimpleCache{constructor(){super({lru:!0})}[Symbol.dispose](){super[Symbol.dispose]()}}function useSchemaErrorCache(){return useRequiredService(SchemaErrorCache.name)}const INITIAL_STATE$5={activeId:null,activeChildId:null,entries:[],followNewest:!0,stats:{all:0,errors:0,infos:0,warnings:0}};function LogProvider({children:on}){const In=useSubject(INITIAL_STATE$5);return useOnWorkspaceSwitchResetState(In.current),jsx$1(ActivateLogEntryProvider,{state$:In.current,children:jsx$1(AppendLogEntryProvider,{state$:In.current,children:jsx$1(AppendSchedulerLogEntryProvider,{state$:In.current,children:jsx$1(ClearLogProvider,{state$:In.current,children:jsx$1(CollapseLogScopeProvider,{state$:In.current,children:jsx$1(DeactivateLogEntryProvider,{state$:In.current,children:jsx$1(ExpandLogScopeProvider,{state$:In.current,children:jsx$1(UpdateFollowNewestProvider,{state$:In.current,children:jsx$1(LogStateContext.Provider,{value:In.current,children:on})})})})})})})})})}function useOnReceiveLogEntry$1(on){reactExports.useEffect(()=>graphQLEngineSchedulerClient.onReceiveLogEntry(on),[on])}function useOnWorkspaceSwitchResetState(on){reactExports.useEffect(()=>registerReceiveMessage(ACTIVATED_WORKSPACE_MESSAGE,()=>{on.next(INITIAL_STATE$5)}),[on])}const ActivateLogEntryContext=createNamedContext(noop$2,"ActivateLogEntry");function useActivateLogEntry(){return reactExports.useContext(ActivateLogEntryContext)}function ActivateLogEntryProvider({children:on,state$:In}){const Rn=reactExports.useCallback((Mn,Ln,Hn)=>{const jn=In.value();(jn.activeId!==Mn||jn.activeChildId!==Ln)&&jn.entries.some(({id:Wn})=>Wn===Mn)&&(In.next({...jn,entries:jn.entries.map(Wn=>Wn.id===Mn&&Wn.kind==="scope"?{...Wn,expanded:!0}:Wn),activeId:Mn,activeChildId:Ln??null,followNewest:Hn===void 0?jn.followNewest:Hn}),Mn&&sendMessage({kind:LOG_ENTRY_ACTIVATED_MESSAGE,logEntryId:Mn}))},[In]);return jsx$1(ActivateLogEntryContext.Provider,{value:Rn,children:on})}const AppendLogEntryContext=createNamedContext(async()=>"","AppendLogEntry");function useAppendLogEntry(){return reactExports.useContext(AppendLogEntryContext)}function AppendLogEntryProvider({children:on,state$:In}){const Rn=reactExports.useCallback(async(Mn,Ln,Hn,jn)=>{const Wn=await getItemDetails(Mn),Yn=createId();return appendLogEntry(In,{id:Yn,item:Wn,kind:"basic",level:Ln,message:Hn,timestamp:now(),details:jn}),Yn},[In]);return jsx$1(AppendLogEntryContext.Provider,{value:Rn,children:on})}const AppendSchedulerLogEntryContext=createNamedContext(noop$2,"AppendSchedulerLogEntry");function useAppendSchedulerLogEntry(){return reactExports.useContext(AppendSchedulerLogEntryContext)}function AppendSchedulerLogEntryProvider({children:on,state$:In}){const Rn=useSchemaErrorCache(),Mn=reactExports.useCallback(async Ln=>{const{kind:Hn}=Ln,jn=await getItemDetails(Ln.itemId);switch(Hn){case BASIC_LOG_ENTRY_KIND:appendLogEntry(In,{id:Ln.requestId??createId(),item:jn,kind:"basic",level:Ln.level,timestamp:now(),message:Ln.message,details:Ln.details});break;case HTTP_REQUEST_LOG_ENTRY_KIND:appendLogEntry(In,{id:Ln.requestId,scopeId:Ln.scopeId,item:jn,kind:"http-request",name:Ln.name,level:Ln.level,status:"pending",started:Ln.started,request:{uri:Ln.requestUri,method:Ln.method,headers:Ln.headers,body:Ln.body,cache:Ln.cache,credentials:Ln.credentials,referrerPolicy:Ln.referrerPolicy}});break;case HTTP_RESPONSE_LOG_ENTRY_KIND:updateLogEntry(In,Ln.requestId,vi=>({...vi,response:{body:"",headers:Ln.headers,chunks:0,contentLength:0,statusCode:Ln.statusCode,statusText:Ln.statusText}}));break;case HTTP_RESPONSE_BODY_CHUNK_LOG_ENTRY_KIND:updateLogEntry(In,Ln.requestId,vi=>({...vi,response:{...vi.response,body:vi.response.body+Ln.chunk,chunks:Ln.chunkIndex+1}}));break;case HTTP_RESPONSE_CANCELLED_LOG_ENTRY_KIND:updateLogEntry(In,Ln.requestId,vi=>({...vi,level:LogLevel.warning,status:"cancelled",stopped:Ln.stopped,duration:diff$1(vi.started,Ln.stopped),response:{...vi.response,contentLength:Ln.contentLength,error:Ln.error}}));break;case HTTP_RESPONSE_FAILED_LOG_ENTRY_KIND:{if(updateLogEntry(In,Ln.requestId,vi=>({...vi,level:LogLevel.error,status:"failed",stopped:Ln.stopped,duration:diff$1(vi.started,Ln.stopped),response:{...vi.response,contentLength:Ln.contentLength,error:Ln.error}})),Ln.requestKind===RequestKind.GRAPHQL_INTROSPECTION||Ln.requestKind===RequestKind.GRAPHQL_SDL_FETCH){const vi=Rn.get(Ln.itemId);if(Ln.scopeId!==vi?.scopeId||!Ln.scopeId&&!vi?.scopeId){const gi=In.value().entries.find(({id:mi})=>mi===Ln.requestId);gi?.kind==="http-request"&&Rn.set(Ln.itemId,gi)}}break}case HTTP_RESPONSE_FINISHED_LOG_ENTRY_KIND:{if(updateLogEntry(In,Ln.requestId,vi=>({...vi,status:"succeeded",stopped:Ln.stopped,duration:diff$1(vi.started,Ln.stopped),response:{...vi.response,contentLength:Ln.contentLength}})),Ln.requestKind===RequestKind.GRAPHQL_INTROSPECTION||Ln.requestKind===RequestKind.GRAPHQL_SDL_FETCH||Ln.requestKind===RequestKind.GRAPHQL_SDL_PROBE){const vi=Rn.get(Ln.itemId);vi&&(vi.scopeId!==Ln.scopeId||!vi.scopeId&&!Ln.scopeId)&&Rn.delete(Ln.itemId)}break}case SCOPE_BEGIN_LOG_ENTRY_KIND:appendLogEntry(In,{id:Ln.scopeId,item:jn,kind:"scope",name:Ln.name,level:Ln.level,started:Ln.started,details:Ln.details?{...Ln.details,status:"pending"}:{status:"pending"}});break;case SCOPE_END_LOG_ENTRY_KIND:const Wn=In.value().entries.filter(vi=>vi.kind==="http-request"&&vi.scopeId===Ln.scopeId),Yn=Wn.length?Wn[Wn.length-1]:null,hi=Wn.length?Wn.find(vi=>vi.status==="cancelled"||vi.status==="failed")??Yn:null;updateLogEntry(In,Ln.scopeId,vi=>({...vi,stopped:Ln.stopped,duration:diff$1(vi.started,Ln.stopped),level:hi?.level??vi.level,details:{...vi.details,cache:Yn?.request.cache,contentLength:Wn.reduce((gi,mi)=>gi+(mi.response?.contentLength??0),0),credentials:Yn?.request.credentials,method:Yn?.request.method,referrerPolicy:Yn?.request.referrerPolicy,requestHeaders:Yn?.request.headers,responseHeaders:Yn?.response?.headers,status:hi?.status??"succeeded",statusCode:hi?.response?.statusCode,statusText:hi?.response?.statusText}}));break;case SUBSCRIPTION_REQUEST_STARTED_LOG_ENTRY_KIND:appendLogEntry(In,{id:Ln.requestId,item:jn,kind:"subscription-request",level:Ln.level,status:"pending",started:Ln.started,uri:Ln.requestUri,protocol:Ln.protocol,connectionParams:Ln.connectionParams,contentLength:0,messages:0,data:""});break;case SUBSCRIPTION_REQUEST_PROTOCOL_LOG_ENTRY_KIND:updateLogEntry(In,Ln.requestId,vi=>({...vi,protocol:Ln.protocol}));break;case SUBSCRIPTION_REQUEST_MESSAGE_LOG_ENTRY_KIND:updateLogEntry(In,Ln.requestId,vi=>{const gi=vi.data+Ln.data+`
|
|
4764
4764
|
`;return{...vi,messages:vi.messages+1,contentLength:gi.length,data:gi}});break;case SUBSCRIPTION_REQUEST_STOPPED_LOG_ENTRY_KIND:updateLogEntry(In,Ln.requestId,vi=>({...vi,level:Ln.reason==="failed"?LogLevel.error:LogLevel.info,status:Ln.reason,error:Ln.error,stopped:Ln.stopped,duration:diff$1(vi.started,Ln.stopped)}));break}},[Rn,In]);return useOnReceiveLogEntry$1(Mn),jsx$1(AppendSchedulerLogEntryContext.Provider,{value:Mn,children:on})}const ClearLogContext=createNamedContext(noop$2,"ClearLog");function useClearLog(){return reactExports.useContext(ClearLogContext)}function ClearLogProvider({children:on,state$:In}){const Rn=reactExports.useCallback(()=>{In.next(INITIAL_STATE$5)},[In]);return jsx$1(ClearLogContext.Provider,{value:Rn,children:on})}const CollapseLogScopeContext=createNamedContext(noop$2,"CollapseLogScope");function useCollapseLogScope(){return reactExports.useContext(CollapseLogScopeContext)}function CollapseLogScopeProvider({children:on,state$:In}){const Rn=reactExports.useCallback(Mn=>{In.value().entries.some(Ln=>Ln.id===Mn&&Ln.kind==="scope"&&Ln.expanded)&&In.next(Ln=>({...Ln,activeChildId:Ln.activeId===Mn?null:Ln.activeChildId,followNewest:!1,entries:Ln.entries.map(Hn=>Hn.id===Mn?{...Hn,expanded:!1}:Hn)}))},[In]);return jsx$1(CollapseLogScopeContext.Provider,{value:Rn,children:on})}const DeactivateLogEntryContext=createNamedContext(noop$2,"DeactivateLogEntry");function useDeactivateLogEntry(){return reactExports.useContext(DeactivateLogEntryContext)}function DeactivateLogEntryProvider({children:on,state$:In}){const Rn=reactExports.useCallback(()=>{In.next(Mn=>({...Mn,activeId:null}))},[In]);return jsx$1(DeactivateLogEntryContext.Provider,{value:Rn,children:on})}const ExpandLogScopeContext=createNamedContext(noop$2,"ExpandLogScope");function useExpandLogScope(){return reactExports.useContext(ExpandLogScopeContext)}function ExpandLogScopeProvider({children:on,state$:In}){const Rn=reactExports.useCallback(Mn=>{In.value().entries.some(Ln=>Ln.id===Mn&&Ln.kind==="scope"&&!Ln.expanded)&&In.next(Ln=>({...Ln,followNewest:!1,entries:Ln.entries.map(Hn=>Hn.id===Mn?{...Hn,expanded:!0}:Hn)}))},[In]);return jsx$1(ExpandLogScopeContext.Provider,{value:Rn,children:on})}const UpdateFollowNewestContext=createNamedContext(noop$2,"UpdateFollowNewest");function useUpdateFollowNewest(){return reactExports.useContext(UpdateFollowNewestContext)}function UpdateFollowNewestProvider({children:on,state$:In}){const Rn=reactExports.useCallback(Mn=>{const Ln=In.value();Ln.followNewest!==Mn&&In.next({...Ln,followNewest:Mn})},[In]);return jsx$1(UpdateFollowNewestContext.Provider,{value:Rn,children:on})}const LogStateContext=createNamedContext(null,"LogState");function LogSelector(on){const In={activeId:on.activeId,activeChildId:on.activeChildId,entries:on.entries.filter(Rn=>!(Rn.kind==="http-request"&&Rn.scopeId)).reduce((Rn,Mn)=>{const{id:Ln,kind:Hn,item:jn,level:Wn}=Mn;switch(Hn){case"basic":Rn.push({id:Ln,kind:Hn,item:jn,level:Wn,message:Mn.message,timestamp:Mn.timestamp});break;case"http-request":Rn.push(mapToHttpRequestLogListEntry(Mn));break;case"scope":Rn.push({id:Ln,kind:Hn,item:jn,level:Wn,name:Mn.name,started:Mn.started,duration:Mn.duration,details:Mn.details,expanded:!!Mn.expanded});const Yn=on.entries.filter(vi=>vi.kind==="http-request"&&vi.scopeId===Ln),hi=Yn[Yn.length-1];if(Yn.length&&Mn.expanded)for(const vi of Yn)Rn.push(mapToHttpRequestLogListEntry(vi,vi===hi));break;case"subscription-request":Rn.push({id:Ln,kind:Hn,item:jn,level:Wn,uri:Mn.uri,contentLength:Mn.stopped?Mn.contentLength:0,started:Mn.started,status:Mn.status,duration:Mn.duration,protocol:Mn.protocol});break;default:throw new Error("Unknown kind")}return Rn},[]),followNewest:on.followNewest,hash:""};return{...In,hash:createHash(JSON.stringify(In))}}function mapToHttpRequestLogListEntry(on,In){return{id:on.id,kind:on.kind,scopeId:on.scopeId,item:on.item,level:on.level,uri:on.request.uri,method:on.request.method,name:on.name,contentLength:on.stopped?on.response?.contentLength??0:0,started:on.started,status:on.status,statusCode:on.response?.statusCode,duration:on.duration,lastChild:In}}function useLog(){return useSelector(LogStateContext,LogSelector,(on,In)=>on.hash===In.hash)}function ActiveLogEntrySelector(on){const In=on.activeChildId||on.activeId;if(In)return on.entries.find(({id:Rn})=>Rn===In)}function useActiveLogEntry(){return useSelector(LogStateContext,ActiveLogEntrySelector)}function ActiveLogEntryIdSelector(on){return on.activeId}function useActiveLogEntryId(){return useSelector(LogStateContext,ActiveLogEntryIdSelector)}function HasLogEntrySelector(on){return In=>!!In?.entries.some(({id:Rn})=>Rn===on)}function useHasLogEntry(on){return useSelector(LogStateContext,HasLogEntrySelector(on))}function HasLogEntriesSelector(on){return!!on?.entries.length}function useHasLogEntries(){return useSelector(LogStateContext,HasLogEntriesSelector)}function LogStatsSelector(on){return on.stats}function useLogStats(){return useSelector(LogStateContext,LogStatsSelector)}async function appendLogEntry(on,In){on.next(Rn=>({...Rn,entries:[...Rn.entries,In],stats:{all:Rn.stats.all+1,errors:In.level===LogLevel.error?Rn.stats.errors+1:Rn.stats.errors,infos:In.level===LogLevel.info?Rn.stats.infos+1:Rn.stats.infos,warnings:In.level===LogLevel.warning?Rn.stats.warnings+1:Rn.stats.warnings}}))}function updateLogEntry(on,In,Rn){on.next(Mn=>{const Ln=Mn.entries.map(Hn=>Hn.id===In?Rn(Hn):Hn);return{...Mn,entries:Ln,stats:{...Mn.stats,errors:Ln.filter(({level:Hn})=>Hn===LogLevel.error).length,infos:Ln.filter(({level:Hn})=>Hn===LogLevel.info).length,warnings:Ln.filter(({level:Hn})=>Hn===LogLevel.warning).length}}})}async function getItemDetails(on){if(!on)return null;const In=await getItemNameAndKind(on);if(In){const[Rn,Mn]=In;return{id:on,name:Rn,kind:Mn}}return{id:on,name:"N/A"}}function NetworkProvider({children:on}){const In=reactExports.useRef(null),Rn=useSubject(window.navigator.onLine);return reactExports.useEffect(()=>{async function Mn(){try{const jn=await fetch("https://api.chillicream.cloud/status",{method:"GET",cache:"no-store",signal:AbortSignal.timeout(5e3)});Rn.current.next(jn.ok)}catch{Rn.current.next(!1)}}window.navigator.onLine?(Mn(),In.current=window.setInterval(Mn,THIRTY_SECONDS)):Rn.current.next(!1);function Ln(){Mn(),In.current&&clearInterval(In.current),In.current=window.setInterval(Mn,THIRTY_SECONDS)}function Hn(){Rn.current.next(!1),In.current&&(clearInterval(In.current),In.current=null)}return window.addEventListener("offline",Hn),window.addEventListener("online",Ln),()=>{window.removeEventListener("offline",Hn),window.removeEventListener("online",Ln),In.current&&(clearInterval(In.current),In.current=null)}},[Rn]),jsx$1(IsOnlineContext.Provider,{value:Rn.current,children:on})}const IsOnlineContext=createNamedContext(null,"IsOnline");function IsOnlineSelector(on){return on}function useIsOnline(){return useSelector(IsOnlineContext,IsOnlineSelector)}function useIsOnlineObservable(){return useObservable(IsOnlineContext)}const DEFAULT_PRESET={useBrowserUrlAsEndpoint:!1},LOAD_PRESET=!(IS_RUNNING_IN_CLOUD||IS_RUNNING_IN_ELECTRON);function PresetProvider({children:on}){const In=useInitialize$7();return In?jsx$1(PresetContext.Provider,{value:In,children:on}):null}function useInitialize$7(){const on=useForceUpdate(),In=reactExports.useRef(null);return LOAD_PRESET||(In.current=DEFAULT_PRESET),reactExports.useEffect(()=>{In.current||getPreset().then(Rn=>{In.current=Rn,on()})},[on]),In.current}async function getPreset(){const on=await fetchPreset("nitro-config.json");return on||(await fetchPreset("bcp-config.json")??DEFAULT_PRESET)}async function fetchPreset(on){const{origin:In}=window.location,Rn=extractAppUrlPath(window.location);try{return await(await fetch(resolveUrl$1(`${In}${Rn}`,on))).json()}catch{return null}}const PresetContext=createNamedContext(DEFAULT_PRESET,"Preset");function usePreset(){return reactExports.useContext(PresetContext)}function useIsBoundToOrganization(){return!!usePreset().organization}const INITIAL_STATE$4={signInState:"init",synchronizing:!1,sessions:[]};function SessionProvider({children:on}){const In=useInitialize$6();return useOnReceiveLogEntry(),In?jsx$1(HandleSignInCallbackProvider,{state$:In,children:jsx$1(UpsertSessionProvider,{state$:In,children:jsx$1(ActivateSessionProvider,{state$:In,children:jsx$1(SignInProvider,{state$:In,children:jsx$1(SignOutProvider,{state$:In,children:jsx$1(SignOutAllProvider,{state$:In,children:jsx$1(CreateUserAccountProvider,{children:jsx$1(SignOutOfCurrentSessionProvider,{state$:In,children:jsx$1(SignInActiveSessionProvider,{state$:In,children:jsx$1(SessionStateContext.Provider,{value:In,children:on})})})})})})})})})}):null}function useInitialize$6(){const on=reactExports.useRef(null),In=useForceUpdate();return reactExports.useEffect(()=>{if(!on.current){let Rn=function(Mn){on.current=createSubject(refreshSignInState(Mn)),In()};createLoadAppSessionAction().then(Rn,()=>Rn(INITIAL_STATE$4))}},[In]),useExpiredSessionNotification(on.current),useRefreshToken(on.current),useActivatedWorkspace(on.current),on.current}async function createLoadAppSessionAction(on){const In=await getAppSession(on);return In?{synchronizing:!1,signInState:"sign-in",sessions:In.userSessions,activeSession:In.activeSession}:INITIAL_STATE$4}function useOnReceiveLogEntry(){const on=useAppendSchedulerLogEntry();reactExports.useEffect(()=>sessionSchedulerClient.onReceiveLogEntry(on),[on])}function useExpiredSessionNotification(on){const In=reactExports.useRef(()=>{});reactExports.useEffect(()=>{if(on){let Rn=function(Hn){if(Hn.activeSession===Ln)return;Mn?.abort();const jn=new AbortController;Mn=jn,Ln=Hn.activeSession,In.current=()=>{isSigninRedirect(window.location)||triggerUserSessionExpiredNotification(jn.signal)}},Mn,Ln;return Rn(on.value()),on.subscribe(Rn)}},[on]),reactExports.useEffect(()=>sessionSchedulerClient.onReceiveUserSessionExpired(In.current),[]),reactExports.useEffect(()=>{function Rn(Mn){Mn.activeSession?.requiresSignIn&&In.current()}if(on)return Rn(on.value()),on.subscribe(Rn)},[on])}function useRefreshToken(on){const In=useCombine(on??createSubject(INITIAL_STATE$4),useIsOnlineObservable()),Rn=useUpsertSessionAction(on);reactExports.useEffect(()=>{let Mn;function Ln([Hn,jn]){if(jn&&Hn.activeSession&&!Hn.activeSession.requiresSignIn){Mn=new AbortController;const Wn=async()=>{if(!Hn.activeSession)return;const vi=await sessionSchedulerClient.refreshToken(Hn.activeSession,Mn?.signal);await Rn(vi)},Yn=msUntilSessionExpired(Hn.activeSession),hi=window.setTimeout(Wn,Yn>0?Yn:0);Mn.signal.addEventListener("abort",()=>window.clearTimeout(hi))}else Mn&&(Mn.abort(),Mn=void 0)}return Ln(In.value()),In.subscribe(Ln)},[In,Rn])}function useActivatedWorkspace(on){reactExports.useEffect(()=>registerReceiveMessage(ACTIVATED_WORKSPACE_MESSAGE,async({session:In,workspaceId:Rn})=>{if(!on)return;const Mn=on.value(),{activeSession:Ln}=Mn;if(Ln?.id===In.id&&Ln.activeWorkspaceId!==Rn){const Hn={...Ln,activeWorkspaceId:Rn||void 0};await replaceUserSession(Hn),on.next(jn=>({...jn,activeSession:Hn}))}}),[on])}function HandleSignInCallbackProvider({children:on,state$:In}){const Rn=useHandleSignInCallback(In);return IS_RUNNING_IN_ELECTRON?jsx$1(HandleElectronSignInCallbackProvider,{state$:In,handleSignInCallback:Rn,children:on}):jsx$1(HandleWebSignInCallbackProvider,{handleSignInCallback:Rn,children:on})}function HandleElectronSignInCallbackProvider({children:on,state$:In,handleSignInCallback:Rn}){return useElectronSignInListener(In,Rn),jsx$1(Fragment,{children:on})}function HandleWebSignInCallbackProvider({children:on,handleSignInCallback:In}){return reactExports.useEffect(()=>{!IS_RUNNING_IN_ELECTRON&&isSigninRedirect(window.location)&&In(window.location.href)},[In]),jsx$1(Fragment,{children:on})}function useHandleSignInCallback(on){const In=useSignOut(),Rn=useUpsertSessionAction(on),Mn=useActivateSessionAction(on);return reactExports.useCallback(async(Ln,Hn)=>{const jn=new AbortController,Wn=Hn?linkAbortSignals(jn.signal,Hn):jn.signal;let Yn,hi=!1;try{Wn.addEventListener("abort",()=>{hi||triggerSignInCancelledNotification()}),on.next(Oi=>({...Oi,signInState:"sign-in"})),triggerSignInNotification(jn);const vi=parseCodeFromUrl(Ln),gi=parseIssuerFromUrl(Ln),{codeVerifier:mi,redirectUrl:yi}=await getAndValidateAuthenticationState(),{refreshToken:bi,idToken:Ei,accessToken:_i,expiresAt:Si}=await getAndValidateToken(gi,vi,yi,mi,Wn),{tenant:xi,sub:Ti,email:Ai,login:Mi,apiUrl:Ni}=parseAccessToken(_i),Bi=await getUserSession({sub:Ti,tenant:xi,issuer:gi});Yn=Bi?{id:Bi.id,issuer:gi,tenant:xi,sub:Ti,accessToken:_i,refreshToken:bi,idToken:Ei,expiresAt:Si*ONE_SECOND$1,email:Ai,login:Mi,requiresSignIn:!1,hasUserAccount:!0,organization:Bi?Bi.organization:{displayName:"",id:""},activeWorkspaceId:Bi.activeWorkspaceId,billingUrl:Bi.billingUrl,manageTenantUrl:Bi.manageTenantUrl,apiUrl:Ni}:{id:nanoid(),issuer:gi,tenant:xi,sub:Ti,accessToken:_i,refreshToken:bi,idToken:Ei,expiresAt:Si*ONE_SECOND$1,email:Ai,login:Mi,requiresSignIn:!1,hasUserAccount:!1,organization:{displayName:"",id:""},billingUrl:null,manageTenantUrl:null,apiUrl:Ni},await setCurrentTenant({tenant:xi,sub:Ti,login:Mi,issuer:gi,apiUrl:Ni}),await Rn(Yn),triggerLoadAccountNotification();const Hi=await fetchUserAccount(Wn);if(Wn.aborted)return;const Ui=await fetchOrganizationInfo(Wn);if(Wn.aborted)return;const Wi=Hi!=="user-not-found",ji={...Yn,hasUserAccount:Wi,organization:Ui,billingUrl:Wi?Hi.billingUrl:null,manageTenantUrl:Wi?Hi.manageTenantUrl:null};await Rn(ji),await Mn(ji),hi=!0,triggerSingInCompleteNotification(),sendMessage({kind:SIGNED_IN_MESSAGE})}catch{Yn&&await In(Yn),triggerSignInFailedNotification()}finally{clearSignInPathFromUrl(),on.next(vi=>refreshSignInState({...vi,electron:void 0})),await deleteAuthenticationState()}},[on,Mn,In,Rn])}function clearSignInPathFromUrl(){const on=new URL(window.location.href);on.pathname=on.pathname.replace(APP_SIGNIN_PATH,""),window.history.pushState("","",`${on.origin}${on.pathname}`)}function useElectronSignInListener(on,In){reactExports.useEffect(()=>{if(IS_RUNNING_IN_ELECTRON){let Rn=function(Yn){const hi=window.messageChannel;if(!hi){triggerSignInFailedNotification();return}Hn=new AbortController,triggerSignInNotification(Hn),Hn.signal.addEventListener("abort",jn);function vi(mi){In(mi,Hn?.signal).then(()=>Hn=void 0).finally(jn)}const gi=hi.onRedirectUrlReceiver(vi);hi.triggerSignIn(Yn),jn=()=>{Hn?.abort(),gi()}},Mn=function(Yn){Ln.electron!==Yn.electron&&(Ln=Yn,Yn.electron&&Rn(Yn.electron.signInUrl))},Ln=on.value(),Hn,jn;const Wn=on.subscribe(Mn);return()=>{Wn(),jn()}}},[on,In])}function useIsUserSignedIn(){const on=useSignInState();return on==="signed-in"||on==="session-expired"}function UserNameSelector(on){return on.activeSession?.email??""}function useUserName(){return useSelector(SessionStateContext,UserNameSelector)}const ActivateSessionContext=createNamedContext(asyncNoop,"ActivateSession");function useActivateSessionAction(on){return reactExports.useCallback(async In=>{if(await setCurrentTenant(In?{tenant:In.tenant,sub:In.sub,login:In.login,issuer:In.issuer,apiUrl:In.apiUrl}:void 0),In){const Rn="accessToken"in In?In:await getUserSession(In);on.next(Mn=>refreshSignInState({...Mn,activeSession:Rn}))}else on.next(Rn=>refreshSignInState({...Rn,activeSession:void 0}))},[on])}function ActivateSessionProvider({children:on,state$:In}){const Rn=useActivateSessionAction(In);return jsx$1(ActivateSessionContext.Provider,{value:Rn,children:on})}function useActivateSession(){return reactExports.useContext(ActivateSessionContext)}const SignOutContext=createNamedContext(asyncNoop,"SignOut");function SignOutProvider({children:on,state$:In}){const Rn=useActivateSession(),Mn=reactExports.useCallback(async Ln=>{await signOutFromIssuers([Ln],In.value().activeSession===Ln);const Hn=await getUserSessions();Hn.length?(In.next(jn=>({...jn,sessions:Hn})),await Rn(Hn[0])):In.next({sessions:Hn,signInState:"signed-out",synchronizing:!1})},[In,Rn]);return jsx$1(SignOutContext.Provider,{value:Mn,children:on})}function useSignOut(){const on=reactExports.useContext(SignOutContext);return In=>triggerSignOutNotification(on(In))}const UpsertSessionContext=createNamedContext(asyncNoop,"UpsertSession");function useUpsertSession(){return reactExports.useContext(UpsertSessionContext)}function useUpsertSessionAction(on){return reactExports.useCallback(async In=>{if(on){await replaceUserSession(In);const Rn=await getUserSessions();on.next(Mn=>({...Mn,activeSession:areTenantsEqual(Mn.activeSession,In)?In:Mn.activeSession,sessions:Rn}))}},[on])}function UpsertSessionProvider({children:on,state$:In}){return jsx$1(UpsertSessionContext.Provider,{value:useUpsertSessionAction(In),children:on})}const CreateUserAccountContext=createNamedContext(asyncNoop,"CreateUserAccount");function useCreateUserAccount(){return reactExports.useContext(CreateUserAccountContext)}function CreateUserAccountProvider({children:on}){const In=useUpsertSession(),Rn=reactExports.useCallback(async(Mn,Ln)=>{try{triggerCreateAccountNotification();const Hn=await sessionSchedulerClient.createUserAccount(Ln),jn=await getUserSession(Mn);!jn||(Hn.errors?.length??0)>0?triggerSignInFailedNotification():await In({...jn,hasUserAccount:!0})}catch{triggerSignInFailedNotification()}},[In]);return jsx$1(CreateUserAccountContext.Provider,{value:Rn,children:on})}const SignOutOfCurrentSessionContext=createNamedContext(asyncNoop,"SignOutOfCurrentSession");function useSignOutOfCurrentSession(){return reactExports.useContext(SignOutOfCurrentSessionContext)}function SignOutOfCurrentSessionProvider({children:on,state$:In}){const Rn=useSignOut(),Mn=reactExports.useCallback(async()=>{const Ln=In.value()?.activeSession;Ln&&await Rn(Ln)},[In,Rn]);return jsx$1(SignOutOfCurrentSessionContext.Provider,{value:Mn,children:on})}const SignInContext=createNamedContext(asyncNoop,"SignIn");function useSignIn(){return reactExports.useContext(SignInContext)}function SignInProvider({children:on,state$:In}){const Rn=usePreset(),Mn=useAppendLogEntry(),Ln=reactExports.useCallback(async(Hn,jn)=>{let{codeVerifier:Wn,codeChallenge:Yn}=generateCodeVerifier(PKCE_CHALLENGE_S256);const hi=getRedirectUrl(),vi=Hn?.issuer??jn??Rn.organization?.serverUrl??Rn.instanceUrl??"https://identity.chillicream.com",gi=Hn?`tenant:${Hn.tenant}`:!Rn.organization?.serverUrl&&Rn.organization?.name?`tenant:${Rn.organization.name}`:"",mi=buildAuthorizeUrl({authorizationUrl:`${vi}/connect/authorize`,clientId:"3c9f56bd-0e2c-4358-9bf5-ff3a0efa9bf5",redirectUrl:hi,scope:"openid offline_access documents:read documents:write workspace:manage",pkceMethod:PKCE_CHALLENGE_S256,codeChallenge:Yn,acrValues:gi,loginHint:Hn?`${Hn.sub}:${Hn.login}`:""});await setAuthenticationState({codeVerifier:Wn,codeChallenge:Yn,redirectUrl:hi}),IS_RUNNING_IN_ELECTRON?In.next(yi=>({...yi,signInState:"sign-in",electron:{signInUrl:mi}})):redirect(mi)},[In,Rn?.instanceUrl,Rn?.organization]);return reactExports.useEffect(()=>registerReceiveMessage(RENEW_SESSION_MESSAGE,()=>{Mn(null,LogLevel.info,"Renew user session"),Ln(In.value()?.activeSession)}),[In,Mn,Ln]),jsx$1(SignInContext.Provider,{value:Ln,children:on})}const SignInActiveSessionContext=createNamedContext(asyncNoop,"SignInActiveSession");function SignInActiveSessionProvider({children:on,state$:In}){const Rn=useSignIn(),Mn=reactExports.useCallback(async()=>{await Rn(In.value()?.activeSession)},[Rn,In]);return jsx$1(SignInActiveSessionContext.Provider,{value:Mn,children:on})}function useSignInActiveSession(){return reactExports.useContext(SignInActiveSessionContext)}const SessionStateContext=createNamedContext(null,"SessionState");function ActiveSessionSelector(on){return on.activeSession}function useActiveSession(){return useSelector(SessionStateContext,ActiveSessionSelector)}function useActiveSessionObservable(){return useSelectionObservable(reactExports.useContext(SessionStateContext),ActiveSessionSelector,void 0)}function SignInStateSelector(on){return on.signInState}function useSignInState(){return useSelector(SessionStateContext,SignInStateSelector)}function useSignInStateObservable(){return useSelectionObservable(reactExports.useContext(SessionStateContext),SignInStateSelector,INITIAL_STATE$4.signInState)}function SessionsSelector(on){return on.sessions}function useSessions(){return useSelector(SessionStateContext,SessionsSelector)}function IsUserAccountMissingSelector(on){return on.activeSession?.hasUserAccount===!1}function useIsUserAccountMissing(){return useSelector(SessionStateContext,IsUserAccountMissingSelector)}const SignOutAllContext=createNamedContext(asyncNoop,"SignOutAll");function SignOutAllProvider({children:on,state$:In}){const Rn=reactExports.useCallback(()=>{const Mn=In.value().sessions;return triggerSignOutNotification(signOutFromIssuers(Mn,!0).then(()=>{In.next({sessions:[],signInState:"signed-out",synchronizing:!1})}))},[In]);return jsx$1(SignOutAllContext.Provider,{value:Rn,children:on})}function useSignOutAll(){return reactExports.useContext(SignOutAllContext)}async function signOutFromIssuers(on,In){await Promise.all(on.map(async({idToken:Rn,issuer:Mn})=>{try{await fetch(`${Mn}/connect/endsession?id_token_hint${Rn?`=${Rn}`:""}`)}finally{}})),await purgeByTenants(on),In&&sendMessage({kind:SIGNED_OUT_MESSAGE})}function refreshSignInState(on){return{...on,signInState:on.activeSession?.hasUserAccount?"signed-in":"signed-out"}}function parseCodeFromUrl(on){const In=parseCodeResponse(new URL(on));if(!In.code)throw new Error("no code");return In.code}function parseIssuerFromUrl(on){const In=new URL(on),Rn=In.searchParams.get("iss");if(Rn)return removeTrailingSlash(Rn);if(In.hash?.length>0)return parseIssuerFromUrl("http://temp/"+In.hash.substring(1));throw new Error("Could not get issuer from callback url")}async function getAndValidateAuthenticationState(){const on=await getAuthenticationState();if(!on?.codeVerifier||!on.codeChallenge||!on.redirectUrl)throw new Error("illegal auth state");return on}async function getAndValidateToken(on,In,Rn,Mn,Ln){const Hn=await getToken$1({accessTokenUrl:`${on}/connect/token`,clientId:"3c9f56bd-0e2c-4358-9bf5-ff3a0efa9bf5",credentialsInBody:!1,redirectUrl:Rn,code:In,codeVerifier:Mn},Ln),{refreshToken:jn,identityToken:Wn,accessToken:Yn,expiresAt:hi}=Hn;if(!jn||!Wn||!Yn||!hi)throw new Error("illegal auth state");return{refreshToken:jn,idToken:Wn,accessToken:Yn,expiresAt:hi}}function parseAccessToken(on){const In=parseJwt(on)??{},{tenant:Rn,sub:Mn,email:Ln,login:Hn,api_url:jn}=In,Wn=Yn=>Yn instanceof String||typeof Yn=="string";if(!Wn(Rn)||!Wn(Mn)||!Wn(Ln)||!Wn(Hn)||!Wn(jn))throw new Error("Could not parse access token");return{tenant:Rn,sub:Mn,email:Ln,login:Hn,apiUrl:`https://${jn}`}}async function fetchOrganizationInfo(on){const In=await sessionSchedulerClient.fetchOrganizationInfo(on);switch(In.kind){case"error":throw new Error(In.error);case"personal":return{displayName:"Personal Account",id:PERSONAL_ORGANIZATION_ID};case"organization":{const{displayName:Rn,id:Mn}=In;if(!Rn||!Mn)throw new Error("Could not parse the organization info response");return{displayName:Rn,id:Mn}}default:throw new Error("Illegal state")}}async function fetchUserAccount(on){const In=await sessionSchedulerClient.fetchUserAccount(on);switch(In.kind){case"error":throw new Error(In.error);case"user-not-found":return"user-not-found";case"user":const{id:Rn,username:Mn,billingUrl:Ln,manageTenantUrl:Hn}=In;if(!Mn||!Rn)throw new Error("Could not parse the user response");return{id:Rn,username:Mn,billingUrl:Ln,manageTenantUrl:Hn};default:throw new Error("Illegal state")}}function getRedirectUrl(){return IS_RUNNING_IN_ELECTRON?`${APP_SCHEME}://${APP_SIGNIN_PATH}`:appendUrlSegment(window.location.href,APP_SIGNIN_PATH).toString()}function redirect(on){IS_RUNNING_IN_ELECTRON?window.open(on):window.location.replace(on)}function isSigninRedirect({hash:on,pathname:In}){return on.startsWith(`#/${APP_SIGNIN_PATH}`)||In.endsWith(`/${APP_SIGNIN_PATH}`)}const DEFAULT_WORKSPACE_NAME="Default",DEFAULT_STATE={workspaces:[],activeWorkspace:void 0,synchronizing:!1,synchronizationResult:null,loading:!1};function WorkspaceProvider({children:on}){const In=reactExports.useRef(null),[Rn,Mn]=useInitialize$5();return Rn?jsx$1(ActivateWorkspaceProvider,{state$:Rn,activeSession$:Mn,children:jsx$1(CancelSynchronizeWorkspaceProvider,{abortControllerRef:In,children:jsx$1(SynchronizeWorkspaceProvider,{state$:Rn,abortControllerRef:In,children:jsx$1(WorkspaceStateContext.Provider,{value:Rn,children:on})})})}):null}function useInitialize$5(){const on=useForceUpdate(),In=useActiveSessionObservable(),Rn=reactExports.useRef(null);return reactExports.useEffect(()=>{let Mn;async function Ln(Hn){if(Rn.current)areTenantsEqual(Mn,Hn)&&Mn?.hasUserAccount===Hn?.hasUserAccount||(Mn=Hn,Hn&&Hn.hasUserAccount?(Rn.current.next(jn=>({...jn,loading:!0})),await loadInitialState(Hn,Rn.current)):Rn.current.next(DEFAULT_STATE));else if(Mn=Hn,Hn&&Hn.hasUserAccount){Rn.current=createSubject({...DEFAULT_STATE,loading:!0});try{await loadInitialState(Hn,Rn.current)}finally{on()}}else Rn.current=createSubject(DEFAULT_STATE),on()}return Ln(In.value()),In.subscribe(Ln)},[In,on]),usePersistState$1(Rn.current),[Rn.current,In]}function usePersistState$1(on){reactExports.useEffect(()=>{if(on){const In=on.value().activeWorkspace;return on.subscribe(async Rn=>{Rn.activeWorkspace&&Rn.activeWorkspace!==In&&await upsertWorkspace(Rn.activeWorkspace)})}},[on])}async function loadInitialState(on,In,Rn){try{const Mn=await loadWorkspaces(on,In);let Ln;try{Ln=await refreshWorkspaces(on,In,Rn),Ln.length||(triggerPrepareWorkspaceNotification(),await sessionSchedulerClient.createWorkspace(on,DEFAULT_WORKSPACE_NAME),Ln=await loadWorkspaces(on,In))}catch{Ln=Mn}Ln.length?triggerWorkspacePrepared():triggerWorkspacePreparationFailed()}catch{In.next(DEFAULT_STATE)}}async function loadWorkspaces(on,In){const Rn=await getWorkspacesByTenant(on);let Mn=on.activeWorkspaceId?Rn.find(({id:Ln})=>Ln===on.activeWorkspaceId):void 0;return!Mn&&Rn.length&&(Mn=Rn[0]),sendMessage({kind:ACTIVATED_WORKSPACE_MESSAGE,session:on,workspaceId:Mn?.id??null}),In.next(Ln=>({...Ln,activeWorkspace:Mn,workspaces:Rn,loading:!Rn.length})),Rn}async function refreshWorkspaces(on,In,Rn){return await sessionSchedulerClient.fetchWorkspaces(on,Rn),loadWorkspaces(on,In)}const ActivateWorkspaceContext=createNamedContext(noop$2,"ActivateWorkspace");function ActivateWorkspaceProvider({children:on,state$:In,activeSession$:Rn}){const Mn=reactExports.useCallback(Ln=>{const Hn=In.value(),jn=Rn.value();if(!jn||Hn.activeWorkspace?.id===Ln)return;const Wn=Hn.workspaces.find(({id:Yn})=>Yn===Ln);Wn&&(sendMessage({kind:ACTIVATED_WORKSPACE_MESSAGE,session:jn,workspaceId:Wn.id}),In.next(Yn=>({...Yn,activeWorkspace:Wn})))},[Rn,In]);return jsx$1(ActivateWorkspaceContext.Provider,{value:Mn,children:on})}function useActivateWorkspace(){return reactExports.useContext(ActivateWorkspaceContext)}const CancelSynchronizeWorkspaceContext=createNamedContext(noop$2,"CancelSynchronizeWorkspace");function CancelSynchronizeWorkspaceProvider({children:on,abortControllerRef:In}){const Rn=reactExports.useCallback(()=>{In.current?.abort()},[In]);return jsx$1(CancelSynchronizeWorkspaceContext.Provider,{value:Rn,children:on})}const SynchronizeWorkspaceContext=createNamedContext(asyncNoop,"SynchronizeWorkspace");function SynchronizeWorkspaceProvider({children:on,state$:In,abortControllerRef:Rn}){const Mn=useIsOnline(),Ln=reactExports.useRef(Mn),Hn=useDatabaseVersion(),jn=useAppendLogEntry();Ln.current=Mn;const Wn=reactExports.useCallback(async()=>{const Yn=In.value().activeWorkspace;if(!Yn||Rn.current||!Ln.current)return;Rn.current=new AbortController,In.next(gi=>({...gi,synchronizing:!0}));const vi=Yn.dbVersion!==Hn?void 0:Yn.version;try{const gi=await synchronizeWorkspace(jn,Yn.id,vi,Rn.current.signal);if(gi){const mi=yi=>yi&&yi.id===Yn.id?{...yi,version:gi.version,hasChanges:gi.hasChanges,dbVersion:Hn}:yi;In.next(yi=>{const bi=mi(yi.activeWorkspace);return{...yi,activeWorkspace:bi,workspaces:yi.workspaces.map(Ei=>Ei.id===bi?.id?bi:Ei),synchronizing:!1,synchronizationResult:gi}})}else In.next(mi=>mi.synchronizing?{...mi,synchronizing:!1}:mi)}catch{In.next(gi=>gi.synchronizing?{...gi,synchronizing:!1}:gi)}finally{Rn.current=null}},[Rn,Hn,In,jn]);return useTriggerSynchronizationOnWorkspaceSwitch(Wn,In),useSynchronizeWorkspaceEveryMinute(Wn,Mn),jsx$1(SynchronizeWorkspaceContext.Provider,{value:Wn,children:on})}async function synchronizeWorkspace(on,In,Rn,Mn){try{const Ln=await sessionSchedulerClient.synchronizeWorkspace(In,Rn,Mn);if(Ln.kind==="aborted")return null;switch(Ln.version&&Ln.version!==Rn&&sendMessage({kind:WORKSPACE_SYNCHRONIZED_MESSAGE,workspaceId:In,version:Ln.version}),Ln.kind){case"cancelled":return on(null,LogLevel.info,"Workspace synchronization has been cancelled."),{workspaceId:Ln.workspaceId,version:Ln.version,hasChanges:Ln.hasChanges};case"failed":return on(null,LogLevel.info,"Workspace synchronization has been failed."),null;case"success":return{workspaceId:Ln.workspaceId,version:Ln.version,hasChanges:Ln.hasChanges}}}catch{return on(null,LogLevel.info,"Workspace synchronization has been failed."),null}}function useSynchronizeWorkspaceEveryMinute(on,In){const Mn=useActiveSession()?.requiresSignIn;reactExports.useEffect(()=>{if(In){let Ln=!1;const Hn=()=>window.setTimeout(async()=>{Mn||await on(),Ln||(jn=Hn())},ONE_MINUTE$1);let jn=Hn();return()=>{Ln=!0,window.clearTimeout(jn)}}},[In,on,Mn])}function useTriggerSynchronizationOnWorkspaceSwitch(on,In){reactExports.useEffect(()=>{let Rn;function Mn(Ln){Ln.activeWorkspace?.id!==Rn&&(Rn=Ln.activeWorkspace?.id,Ln.activeWorkspace&&!Ln.synchronizing&&on())}return Mn(In.value()),In.subscribe(Mn)},[on,In])}function useSynchronizeWorkspace(){const on=reactExports.useContext(SynchronizeWorkspaceContext);return()=>void on()}const WorkspaceStateContext=createNamedContext(null,"WorkspaceStateContext");function useWorkspaceStateSubject(){return reactExports.useContext(WorkspaceStateContext)}function ActiveWorkspaceSelector(on){return on.activeWorkspace??null}function useActiveWorkspace(){return useSelector(WorkspaceStateContext,ActiveWorkspaceSelector)}function useActiveWorkspaceObservable(){return useSelectionObservable(reactExports.useContext(WorkspaceStateContext),ActiveWorkspaceSelector,null)}function WorkspacesSelector(on){return on.workspaces}function useWorkspaces(){return useSelector(WorkspaceStateContext,WorkspacesSelector)}function WorkspaceIdSelector(on){return on.activeWorkspace?.id??null}function useWorkspaceId(){return useSelector(WorkspaceStateContext,WorkspaceIdSelector)}function useWorkspaceIdObservable(){return useSelectionObservable(reactExports.useContext(WorkspaceStateContext),WorkspaceIdSelector,null)}function WorkspaceNameSelector(on){return on.activeWorkspace?.name??null}function useWorkspaceNameObservable(){return useSelectionObservable(reactExports.useContext(WorkspaceStateContext),WorkspaceNameSelector,null)}function WorkspaceSynchronizingSelector(on){return on.synchronizing}function useWorkspaceSynchronizing(){return useSelector(WorkspaceStateContext,WorkspaceSynchronizingSelector)}function IsOrganizationalWorkspace(on){return on.activeWorkspace?on.activeWorkspace.tenant!==PERSONAL_WORKSPACE_TENANT:!1}function useIsOrganizationalWorkspace(){return useSelector(WorkspaceStateContext,IsOrganizationalWorkspace)}function useReloadWorkspaces(){const on=reactExports.useContext(WorkspaceStateContext),In=useActiveSession();return reactExports.useCallback(async()=>{!on||!In||await refreshWorkspaces(In,on)},[on,In])}const INITIAL_STATE$3={activeEnvironment:null,environments:[],loading:!1};function EnvironmentProvider({children:on}){const In=useWorkspaceIdObservable(),Rn=useInitialize$4(In);return Rn?jsx$1(CreateEnvironmentProvider,{state$:Rn,workspaceId$:In,children:jsx$1(DeleteEnvironmentProvider,{state$:Rn,workspaceId$:In,children:jsx$1(RenameEnvironmentProvider,{state$:Rn,workspaceId$:In,children:jsx$1(EnvironmentStateContext.Provider,{value:Rn,children:on})})})}):null}function useInitialize$4(on){const In=useForceUpdate(),Rn=useCombine(on,useActiveEnvironmentIdObservable()),Mn=reactExports.useRef(null);return reactExports.useEffect(()=>{let Ln=null,Hn=null;async function jn(hi,vi){async function gi(mi,yi){if(mi.next({...INITIAL_STATE$3,loading:!!yi}),!!yi)try{const bi=await getEnvironmentItems(yi);mi.next({activeEnvironment:bi.find(({id:Ei})=>Ei===vi)??null,environments:sortEnvironments(bi),loading:!1})}catch{mi.next(INITIAL_STATE$3)}}if(Mn.current)Ln!==hi?await gi(Mn.current,hi):Hn!==vi&&Mn.current.next(mi=>({...mi,activeEnvironment:mi.environments.find(({id:yi})=>yi===vi)??null}));else{Mn.current=createSubject(INITIAL_STATE$3);try{await gi(Mn.current,hi)}finally{In()}}Ln=hi,Hn=vi}const[Wn,Yn]=Rn.value();return jn(Wn,Yn),Rn.subscribe(([hi,vi])=>jn(hi,vi))},[Rn,In]),useCleanupRemovedEnvironments(Mn.current),useReloadEnvironments(Mn.current),Mn.current}function useCleanupRemovedEnvironments(on){const In=useActivateEnvironment();reactExports.useEffect(()=>{if(on)return registerReceiveMessage(DELETED_ITEMS_MESSAGE,({deletedItems:Rn})=>{const Mn=Rn.filter(({kind:Hn})=>isEnvironmentItemKind(Hn)).map(({id:Hn})=>Hn),Ln=on.value().activeEnvironment?.id;Ln&&Mn.includes(Ln)&&In(null),on.next(Hn=>Mn.length?{...Hn,environments:Hn.environments.filter(({id:jn})=>!Mn.includes(jn))}:Hn)})},[on,In])}function useReloadEnvironments(on){const In=useActivateEnvironment();reactExports.useEffect(()=>{if(on)return registerReceiveMessage(WORKSPACE_SYNCHRONIZED_MESSAGE,async({workspaceId:Rn})=>{const Mn=await getEnvironmentItems(Rn),Ln=on.value().activeEnvironment?.id;Ln&&!Mn.some(({id:jn})=>jn===Ln)&&In(null);let{activeEnvironment:Hn}=on.value();Hn&&(Hn=await getEnvironmentItem(Hn.id)??null),on.next(jn=>({...jn,activeEnvironment:Hn,environments:sortEnvironments(Mn)}))})},[on,In])}function sortEnvironments(on){return on.sort((In,Rn)=>In.name.localeCompare(Rn.name,"en",{sensitivity:"base"}))}const EnvironmentStateContext=createNamedContext(null,"EnvironmentState");function useActivateEnvironment(){return useSubjectNext(useWorkspaceStateSubject(),updateActiveEnvironmentId)}function updateActiveEnvironmentId(on,In){const{activeWorkspace:Rn}=on;return!Rn||ActiveEnvironmentIdSelector(on)===In?on:{...on,activeWorkspace:{...Rn,appState:{...Rn.appState,activeEnvironmentId:In}}}}const CreateEnvironmentContext=createNamedContext(asyncNoop,"CreateEnvironment");function CreateEnvironmentProvider({children:on,state$:In,workspaceId$:Rn}){const Mn=reactExports.useCallback(async(Ln,Hn)=>{const jn=Rn.value();jn&&(await createEnvironmentItem(Ln,jn,null,null,Hn),In.next(Wn=>({...Wn,environments:sortEnvironments([...Wn.environments,{id:Ln,name:Hn}])})))},[In,Rn]);return jsx$1(CreateEnvironmentContext.Provider,{value:Mn,children:on})}const DeleteEnvironmentContext=createNamedContext(asyncNoop,"CreateEnvironment");function useDeleteEnvironment(){return reactExports.useContext(DeleteEnvironmentContext)}function DeleteEnvironmentProvider({children:on,state$:In,workspaceId$:Rn}){const Mn=useActivateEnvironment(),Ln=useSynchronizeWorkspace(),Hn=reactExports.useCallback(async jn=>{const Wn=Rn.value();if(Wn){const Yn=In.value().activeEnvironment?.id===jn;Yn&&Mn(null);const hi=await deleteItem(jn);In.next(vi=>({...vi,environments:vi.environments.filter(gi=>gi.id!==jn),activeEnvironment:Yn?null:vi.activeEnvironment})),sendMessage({kind:DELETED_ITEMS_MESSAGE,workspaceId:Wn,deletedItems:hi}),Ln()}},[In,Rn,Mn,Ln]);return jsx$1(DeleteEnvironmentContext.Provider,{value:Hn,children:on})}const RenameEnvironmentContext=createNamedContext(asyncNoop,"CreateEnvironment");function useRenameEnvironment(){return reactExports.useContext(RenameEnvironmentContext)}function RenameEnvironmentProvider({children:on,state$:In,workspaceId$:Rn}){const Mn=useSynchronizeWorkspace(),Ln=reactExports.useCallback(async(Hn,jn)=>{const Wn=Rn.value();if(Wn){let Yn=In.value().activeEnvironment;Yn?.id===Hn&&(Yn={id:Hn,name:jn});const hi=await renameItem(Hn,jn);hi&&(In.next(vi=>({...vi,environments:sortEnvironments(vi.environments.map(gi=>gi.id===Hn?{id:Hn,name:jn}:gi)),activeEnvironment:Yn})),sendMessage({kind:RENAMED_ITEM_MESSAGE,workspaceId:Wn,itemId:Hn,itemKind:hi.kind,itemName:jn}),Mn())}},[In,Rn,Mn]);return jsx$1(RenameEnvironmentContext.Provider,{value:Ln,children:on})}function ActiveEnvironmentSelector(on){return on.activeEnvironment}function useActiveEnvironment(){return useSelector(EnvironmentStateContext,ActiveEnvironmentSelector)}function ActiveEnvironmentIdSelector(on){return on.activeWorkspace?.appState?.activeEnvironmentId||null}function useActiveEnvironmentId(){return useObservableSelector(useWorkspaceStateSubject(),ActiveEnvironmentIdSelector)}function useActiveEnvironmentIdObservable(){return useSelectionObservable(useWorkspaceStateSubject(),ActiveEnvironmentIdSelector,null)}function EnvironmentsSelector(on){return on.environments}function useEnvironments(){return useSelector(EnvironmentStateContext,EnvironmentsSelector)}function useFetchToken(){const on=useActiveEnvironmentId(),[In,Rn]=reactExports.useState(!1),[Mn,Ln]=reactExports.useState(),Hn=reactExports.useRef(),jn=reactExports.useCallback(()=>{Hn.current?.abort(),Hn.current=void 0,Rn(!1)},[Rn]),Wn=reactExports.useCallback(async Yn=>{if(In)return;const hi=new AbortController;Hn.current=hi;try{Rn(!0),Ln(void 0);const vi=await getResolvedVariables(on);return await authorizeAndGetToken(interpolateOAuth2Authentication(Yn,vi)??Yn,hi.signal)}catch(vi){Ln(vi);return}finally{Rn(!1),hi.abort()}},[on,In,Ln,Rn]);return reactExports.useEffect(()=>jn,[jn]),{error:Mn,cancel:jn,fetchToken:Wn,loading:In}}const INITIAL_STATE$2={refs:{},cache:{}};function ConnectionSettingsProvider({children:on}){const In=useInitialize$3();return jsx$1(UpdateConnectionSettingsProvider,{state$:In.current,children:jsx$1(ConnectionSettingsStateContext.Provider,{value:In.current,children:on})})}function useInitialize$3(){const on=useRefWithInitializer(()=>createSubject(INITIAL_STATE$2)),In=useItemStore(),Rn=useSetCacheItem(on.current);return useConnectionSettingsUpdated(on.current),reactExports.useEffect(()=>In.subscribeAll(async(Mn,Ln)=>{if(!(!isApiItem(Ln)&&!isDocumentItem(Ln)))switch(Mn){case ItemChangeAction.LOAD:{const Hn=isApiDocumentItem(Ln)?Ln.apiId:Ln.id,jn=on.current.value().refs[Ln.id],Wn=on.current.value();if(isApiItem(Ln)&&isApiAlreadyCached(Wn,Hn)){on.current.next(hi=>removeUnreferencedCacheItem({...hi,refs:{...hi.refs,[Ln.id]:Hn}},jn));break}const Yn=(await getConnectionSettings(Hn))?.http??DEFAULT_HTTP_CONNECTION;Rn(Hn,jn,Ln.id,Yn)}break;case ItemChangeAction.UNLOAD:{const Hn=on.current.value().refs[Ln.id];if(!Hn)return;on.current.next(jn=>removeCacheItemAndKey(jn,Hn,Ln.id))}break}}),[on,In,Rn]),on}function useConnectionSettingsUpdated(on){reactExports.useEffect(()=>registerReceiveMessage(CONNECTION_SETTINGS_UPDATED_MESSAGE,({documentId:In,connectionSettings:Rn})=>{const Mn=on.value().refs[In];Mn&&on.next(Ln=>({...Ln,cache:{...Ln.cache,[Mn]:{...Ln.cache[Mn],data:Rn.http}}}))}),[on])}const ConnectionSettingsStateContext=createNamedContext(null,"ConnectionSettingsState");function ConnectionSettingsSelector(on){return reactExports.useCallback(In=>{const Rn=In.refs[on]??"";return{apiOrDocumentId:Rn,httpConnection:In.cache[Rn]?.data??DEFAULT_HTTP_CONNECTION}},[on])}function useConnectionSettings(on){return useSelector(ConnectionSettingsStateContext,ConnectionSettingsSelector(on))}function AuthorizationHeaderValueSelector(on){return In=>ConnectionSettingsSelector(on)(In).httpConnection.authentication?.headerValue??null}function useAuthorizationHeaderValue(on){return useSelector(ConnectionSettingsStateContext,AuthorizationHeaderValueSelector(on))}function HttpHeadersSelector(on){return In=>ConnectionSettingsSelector(on)(In).httpConnection.headers??null}function useHttpHeaders(on){return useSelector(ConnectionSettingsStateContext,HttpHeadersSelector(on))}function HttpSchemaEndpointSelector(on){return In=>{const Rn=ConnectionSettingsSelector(on)(In).httpConnection;return Rn.sdlEndpoint||Rn.endpoint}}function useHttpSchemaEndpoint(on){return useSelector(ConnectionSettingsStateContext,HttpSchemaEndpointSelector(on))}function useHttpSchemaEndpointObservable(on){return useSelectionObservable(reactExports.useContext(ConnectionSettingsStateContext),In=>{const Rn=In.refs[on]??"",Mn=In.cache[Rn]?.data??DEFAULT_HTTP_CONNECTION;return Mn.sdlEndpoint||Mn.endpoint},"")}function BeautifiedHttpEndpointSelector(on){return In=>beautifyEndpoint(ConnectionSettingsSelector(on)(In).httpConnection.endpoint)}function useBeautifiedHttpEndpoint(on){return useSelector(ConnectionSettingsStateContext,BeautifiedHttpEndpointSelector(on))}function QueryPlanEnabledSelector(on){return In=>ConnectionSettingsSelector(on)(In).httpConnection.headers?.some(({name:Rn,value:Mn,enabled:Ln})=>FUSION_OPERATION_PLAN_HEADER_NAME_PATTERN.test(Rn)&&Mn.trim()==="1"&&Ln)??!1}function useQueryPlanEnabled(on){return useSelector(ConnectionSettingsStateContext,QueryPlanEnabledSelector(on))}const UpdateConnectionSettingsContext=createNamedContext(asyncNoop,"UpdateConnectionSettings");function UpdateConnectionSettingsProvider({children:on,state$:In}){const Rn=reactExports.useCallback(async function(Ln,Hn,jn){const Wn=await updateHttpConnectionSettings(Ln,Hn,jn);Wn&&In.next(Yn=>Yn.cache[Wn.itemId]?{...Yn,cache:{...Yn.cache,[Wn.itemId]:{...Yn.cache[Wn.itemId],data:Wn.http}}}:Yn)},[In]);return jsx$1(UpdateConnectionSettingsContext.Provider,{value:Rn,children:on})}function useUpdateConnectionSettings(){return reactExports.useContext(UpdateConnectionSettingsContext)}function useEnableQueryPlan(on){const In=useUpdateConnectionSettings(),Rn=useHttpHeaders(on);return reactExports.useCallback(Mn=>{if(!Rn)return In(on,{headers:[{name:HEADER_FUSION_OPERATION_PLAN,value:"1",enabled:!0}]},Mn);const Ln=Rn.findLastIndex(({name:Hn})=>FUSION_OPERATION_PLAN_HEADER_NAME_PATTERN.test(Hn));return In(on,{headers:Ln!==-1?Rn.map((Hn,jn)=>jn===Ln?{name:HEADER_FUSION_OPERATION_PLAN,value:"1",enabled:!0}:Hn):[...Rn,{name:HEADER_FUSION_OPERATION_PLAN,value:"1",enabled:!0}]})},[on,Rn,In])}function useSetCacheItem(on){return reactExports.useCallback((In,Rn,Mn,Ln)=>{const Hn={apiOrDocumentId:In,data:Ln};on.next(jn=>removeUnreferencedCacheItem({...jn,refs:{...jn.refs,[Mn]:In},cache:{...jn.cache,[In]:Hn}},Rn))},[on])}function isApiAlreadyCached(on,In){return Object.values(on.refs).some(Rn=>Rn===In)}function removeCacheItemAndKey(on,In,Rn){const Mn=Object.values(on.refs).filter(jn=>jn===In).length,Ln=Object.entries(on.cache).filter(([jn])=>!(jn===In&&!Mn)),Hn=Object.entries(on.refs).filter(([jn])=>jn!==Rn);return{...on,refs:Object.fromEntries(Hn),cache:Object.fromEntries(Ln)}}function removeUnreferencedCacheItem(on,In){const Rn=Object.values(on.refs).filter(Ln=>Ln===In).length,Mn=Object.entries(on.cache).filter(([Ln])=>!(Ln===In&&!Rn));return{...on,cache:Object.fromEntries(Mn)}}const modalSubject$=createSubject(void 0),modalApi={get current(){return modalSubject$.observable},show(on){modalSubject$.next(on)},hide(on,In){const Rn=modalSubject$.value();Rn?.id===on&&(modalSubject$.next(void 0),In!==void 0&&Rn.onDone?.(In))}};function isEqual(on,In){return on?.item?.id===In?.item?.id}function useActiveModal(on){const In=reactExports.useCallback(Rn=>{if(Rn&&(!on||on&&Rn.id===on))return{item:Rn,hide(Mn){modalApi.hide(Rn.id,Mn)}}},[on]);return useSyncStore(modalApi.current,In,{useRequestAnimationFrame:!1,isEqual})}const ButtonGroup=styled("div")(({theme:on})=>css`
|
|
4765
4765
|
display: flex;
|
|
4766
4766
|
flex: 0 0 auto;
|
|
@@ -5003,7 +5003,7 @@ ${In.join(`
|
|
|
5003
5003
|
`),Text$1=styled("span")`
|
|
5004
5004
|
flex-wrap: nowrap;
|
|
5005
5005
|
color: ${THEME_COLORS.base.text};
|
|
5006
|
-
`,StyledSwitch=styled(Switch)(({theme:on})=>({width:30,height:18,padding:0,display:"flex","&:active":{"& .MuiSwitch-thumb":{width:15},"& .MuiSwitch-switchBase.Mui-checked":{transform:"translateX(9px)"}},"& .Mui-disabled":{opacity:"0.5 !important","& + .MuiSwitch-track":{opacity:"0.5 !important"}},"& .MuiSwitch-switchBase":{padding:2,color:THEME_COLORS.components.toggleThumb,transition:"color 0.2s ease","& + .MuiSwitch-track":{borderColor:THEME_COLORS.components.toggleTrackBorder,backgroundColor:THEME_COLORS.components.toggleTrack,transition:"background-color 0.2s ease, border-color 0.2s ease"},"&.Mui-checked":{transform:"translateX(12px)",color:THEME_COLORS.components.toggleThumbActive,"& + .MuiSwitch-track":{opacity:1,borderColor:THEME_COLORS.components.toggleTrackActiveBorder,backgroundColor:THEME_COLORS.components.toggleTrackActive}}},"& .MuiSwitch-switchBase:hover":{color:THEME_COLORS.components.toggleThumbHover,"& + .MuiSwitch-track":{borderColor:THEME_COLORS.components.toggleTrackHoverBorder,backgroundColor:THEME_COLORS.components.toggleTrackHover},"&.Mui-checked":{color:THEME_COLORS.components.toggleThumbActiveHover,"& + .MuiSwitch-track":{borderColor:THEME_COLORS.components.toggleTrackActiveHoverBorder,backgroundColor:THEME_COLORS.components.toggleTrackActiveHover}}},"& .MuiSwitch-thumb":{boxShadow:"0 2px 4px 0 rgb(0 35 11 / 20%)",margin:1,width:12,height:12,borderRadius:6,transition:on.transitions.create(["width"],{duration:200})},"& .MuiSwitch-track":{borderRadius:18/2,opacity:1,boxSizing:"border-box",borderStyle:"solid",borderWidth:1}})),defaultOptions={grantType:GRANT_TYPE_AUTHORIZATION_CODE,activeFlowKind:GRANT_TYPE_AUTHORIZATION_CODE,authorizationUrl:"",accessTokenUrl:"",credentialsInBody:!1,clientId:"",clientSecret:"",redirectUrl:"",scope:"",state:"",audience:"",resource:"",responseType:RESPONSE_TYPE_TOKEN,usePkce:!0,pkceMethod:PKCE_CHALLENGE_S256,origin:"",username:"",password:"",prefix:""},OAuth2AuthForm=reactExports.memo(function on({options:In=defaultOptions,onChange:Rn}){const{error:Mn,cancel:Ln,fetchToken:Hn,loading:jn}=useFetchToken();return jsxs(Fragment,{children:[jsx$1(GrantTypeInput,{options:In,onChange:Rn}),jsx$1(GroupInput,{flows:[GRANT_TYPE_AUTHORIZATION_CODE,GRANT_TYPE_IMPLICIT],id:"authorizationUrl",type:"text",placeholder:"https://authorization-server.com/oauth2/authorize",options:In,onChange:Rn,label:"Authorization URL"}),jsx$1(GroupInput,{flows:[GRANT_TYPE_PASSWORD],id:"username",type:"text",placeholder:"",options:In,onChange:Rn,label:"Username"}),jsx$1(GroupInput,{flows:[GRANT_TYPE_PASSWORD],id:"password",type:"password",placeholder:"",options:In,onChange:Rn,label:"Password"}),jsx$1(GroupInput,{flows:[GRANT_TYPE_AUTHORIZATION_CODE,GRANT_TYPE_CLIENT_CREDENTIALS,GRANT_TYPE_PASSWORD],id:"accessTokenUrl",type:"text",placeholder:"https://authorization-server.com/oauth2/token",options:In,onChange:Rn,label:"Access Token URL"}),jsx$1(GroupInput,{flows:[GRANT_TYPE_AUTHORIZATION_CODE,GRANT_TYPE_CLIENT_CREDENTIALS,GRANT_TYPE_IMPLICIT,GRANT_TYPE_PASSWORD],id:"clientId",type:"text",options:In,onChange:Rn,label:"Client ID"}),jsx$1(GroupInput,{flows:[GRANT_TYPE_AUTHORIZATION_CODE,GRANT_TYPE_CLIENT_CREDENTIALS,GRANT_TYPE_PASSWORD],id:"clientSecret",type:"password",options:In,onChange:Rn,label:"Client Secret"}),jsx$1(UsePkceInput,{flows:[GRANT_TYPE_AUTHORIZATION_CODE],options:In,onChange:Rn}),jsx$1(CodeChallengeMethodInput,{flows:[GRANT_TYPE_AUTHORIZATION_CODE],options:In,onChange:Rn}),jsx$1(GroupInput,{flows:[GRANT_TYPE_AUTHORIZATION_CODE,GRANT_TYPE_IMPLICIT],id:"redirectUrl",type:"text",options:In,onChange:Rn,label:"Redirect URL"}),jsx$1(RedirectUrlInfoMessage,{redirectUrl:In.redirectUrl}),jsx$1(ResponseTypeInput,{flows:[GRANT_TYPE_IMPLICIT],options:In,onChange:Rn}),jsx$1(GroupInput,{flows:[GRANT_TYPE_AUTHORIZATION_CODE,GRANT_TYPE_IMPLICIT,GRANT_TYPE_CLIENT_CREDENTIALS,GRANT_TYPE_PASSWORD],id:"scope",type:"text",options:In,onChange:Rn,label:"Scope"}),jsx$1(GroupInput,{flows:[GRANT_TYPE_AUTHORIZATION_CODE,GRANT_TYPE_IMPLICIT],id:"state",type:"text",options:In,onChange:Rn,label:"State"}),jsx$1(CredentialsInBodyInput,{flows:[GRANT_TYPE_AUTHORIZATION_CODE,GRANT_TYPE_CLIENT_CREDENTIALS,GRANT_TYPE_PASSWORD],options:In,onChange:Rn}),jsx$1(GroupInput,{flows:[GRANT_TYPE_AUTHORIZATION_CODE,GRANT_TYPE_IMPLICIT,GRANT_TYPE_CLIENT_CREDENTIALS,GRANT_TYPE_PASSWORD],id:"prefix",type:"text",options:In,onChange:Rn,label:"Header Prefix"}),jsx$1(GroupInput,{flows:[GRANT_TYPE_AUTHORIZATION_CODE,GRANT_TYPE_IMPLICIT,GRANT_TYPE_CLIENT_CREDENTIALS,GRANT_TYPE_PASSWORD],id:"audience",type:"text",options:In,onChange:Rn,label:"Audience"}),jsx$1(GroupInput,{flows:[GRANT_TYPE_AUTHORIZATION_CODE,GRANT_TYPE_CLIENT_CREDENTIALS],id:"resource",type:"text",options:In,onChange:Rn,label:"Resource"}),jsx$1(GroupInput,{flows:[GRANT_TYPE_AUTHORIZATION_CODE],id:"origin",type:"text",options:In,onChange:Rn,label:"Origin"}),jsx$1(TokenDetails,{options:In,onChange:Rn}),jsxs(Group,{children:[jsx$1(ClearTokenButton,{options:In,onChange:Rn}),jsx$1(RefreshTokenButton,{options:In,onChange:Rn,cancel:Ln,fetchToken:Hn,loading:jn}),jsx$1(FetchTokenButton,{options:In,onChange:Rn,cancel:Ln,fetchToken:Hn,loading:jn}),jsx$1(ChangeSessionButton,{options:In,onChange:Rn})]}),Mn&&jsx$1(Alert,{severity:"warning",title:"Error",children:Mn.message??"Ops, something went wrong!"})]})}),FetchTokenButton=({cancel:on,fetchToken:In,loading:Rn,options:Mn,onChange:Ln})=>jsx$1(ButtonWithDescription,{description:"Fetch token",onClick:Rn?hi=>{hi.preventDefault(),hi.stopPropagation(),on()}:async hi=>{hi.preventDefault(),hi.stopPropagation();const vi=await In(Mn);vi&&Ln({oAuth2Options:{...Mn,token:vi}})},children:Rn?jsxs(Fragment,{children:[jsx$1(Spinner$1,{colorSelector:hi=>hi.components.buttonText}),"Cancel"]}):jsx$1(Fragment,{children:"Fetch"})}),GrantTypeInput=({onChange:on,options:In})=>jsxs(Group,{children:[jsx$1(Label,{htmlFor:"grant-type",children:"Grant Type"}),jsxs(Select,{id:"grant-type",onChange:Mn=>{let Ln=GRANT_TYPE_AUTHORIZATION_CODE,Hn=GRANT_TYPE_AUTHORIZATION_CODE;switch(Mn.target.value??""){case GRANT_TYPE_IMPLICIT:Ln=GRANT_TYPE_IMPLICIT,Hn=GRANT_TYPE_IMPLICIT;break;case GRANT_TYPE_CLIENT_CREDENTIALS:Ln=GRANT_TYPE_CLIENT_CREDENTIALS,Hn=GRANT_TYPE_CLIENT_CREDENTIALS;break;case GRANT_TYPE_PASSWORD:Ln=GRANT_TYPE_PASSWORD,Hn=GRANT_TYPE_PASSWORD;break}on({oAuth2Options:{...In,grantType:Hn,activeFlowKind:Ln}})},value:In.activeFlowKind,children:[jsx$1("option",{value:GRANT_TYPE_AUTHORIZATION_CODE,children:"Authorization Code"}),jsx$1("option",{value:GRANT_TYPE_IMPLICIT,children:"Implicit"}),jsx$1("option",{value:GRANT_TYPE_CLIENT_CREDENTIALS,children:"Client Credentials"}),jsx$1("option",{value:GRANT_TYPE_PASSWORD,children:"Resource Owner Password Credentials"})]})]}),GroupInput=({flows:on,label:In,id:Rn,onChange:Mn,options:Ln,...Hn})=>{const jn=useIsFlowActive(Ln.activeFlowKind,on),Wn=Yn=>{Mn({oAuth2Options:{...Ln,[Rn]:Yn.target.value??""}})};return jn?jsxs(Group,{children:[jsx$1(Label,{htmlFor:String(Rn),children:In}),jsx$1(InterpolationInput,{id:String(Rn),value:Ln[Rn],onChange:Wn,...Hn})]}):null},UsePkceInput=({onChange:on,options:In,flows:Rn})=>{const Mn=useIsFlowActive(In.activeFlowKind,Rn),Ln=Hn=>{on({oAuth2Options:{...In,usePkce:Hn}})};return Mn?jsx$1(Group,{children:jsxs(Label,{children:[jsx$1(LabelDescription,{children:"Use PKCE"}),jsx$1(Toggle,{checked:In.usePkce,offText:"No",onText:"Yes",onChange:Ln})]})}):null},CodeChallengeMethodInput=({onChange:on,options:In,flows:Rn})=>{const Mn=useIsFlowActive(In.activeFlowKind,Rn),Ln=Hn=>{const jn=Hn.target.value===PKCE_CHALLENGE_PLAIN?PKCE_CHALLENGE_PLAIN:PKCE_CHALLENGE_S256;on({oAuth2Options:{...In,pkceMethod:jn}})};return Mn&&In.usePkce?jsxs(Group,{children:[jsx$1(Label,{htmlFor:"pkce-method-code-challenge",children:"Code Challenge Method"}),jsxs(Select,{id:"pkce-method-code-challenge",value:In.pkceMethod,onChange:Ln,children:[jsx$1("option",{value:PKCE_CHALLENGE_S256,children:"SHA-256"}),jsx$1("option",{value:PKCE_CHALLENGE_PLAIN,children:"Plain"})]})]}):null},CredentialsInBodyInput=({onChange:on,options:In,flows:Rn})=>useIsFlowActive(In.activeFlowKind,Rn)?jsxs(Group,{children:[jsx$1(Label,{htmlFor:"pkce-method-credentials",children:"Credentials"}),jsxs(Select,{id:"pkce-method-credentials",onChange:Hn=>{const jn=Hn.target.value==="body";on({oAuth2Options:{...In,credentialsInBody:jn}})},value:In.credentialsInBody?"body":"header",children:[jsx$1("option",{value:"header",children:"As Basic Auth Header (default)"}),jsx$1("option",{value:"body",children:"In Request Body"})]})]}):null,TokenDetails=({options:on})=>on.token?jsxs(Fragment,{children:[jsxs(Group,{children:[jsx$1(Label,{htmlFor:"id_token",children:"Id Token"}),jsx$1(Input,{id:"id_token",disabled:!0,value:on.token.identityToken??""})]}),jsxs(Group,{children:[jsx$1(Label,{htmlFor:"access_token",children:"Access Token"}),jsx$1(Input,{id:"access_token",disabled:!0,value:on.token.accessToken??""})]}),jsxs(Group,{children:[jsx$1(Label,{htmlFor:"refresh_token",children:"Refresh Token"}),jsx$1(Input,{id:"refresh_token",disabled:!0,value:on.token.refreshToken??""})]})]}):null;function ClearTokenButton({options:on,onChange:In}){return on.token?jsx$1(ButtonWithDescription,{description:"Clear tokens",onClick:()=>{In({oAuth2Options:{...on,token:void 0}})},children:"Clear"}):null}function ChangeSessionButton({options:on,onChange:In}){if(!IS_RUNNING_IN_ELECTRON||on.activeFlowKind!==GRANT_TYPE_AUTHORIZATION_CODE&&on.activeFlowKind!==GRANT_TYPE_IMPLICIT)return null;const Rn=Mn=>{Mn.preventDefault(),Mn.stopPropagation(),In({oAuth2Options:{...on,sessionId:nanoid()}})};return jsx$1(ButtonWithDescription,{description:"Reset session on identity server",tooltip:`The browser persist your authentication session on ${on.authorizationUrl??"your identity server."}, so that you do not have to sign in every time. If you want to log in with a different user, you should reset your session by pressing the button on the right.`,onClick:Rn,children:"Reset"})}const RefreshTokenButton=({cancel:on,fetchToken:In,loading:Rn,options:Mn,onChange:Ln})=>{const Hn=hi=>{hi.preventDefault(),hi.stopPropagation(),on()},jn=async hi=>{hi.preventDefault(),hi.stopPropagation();const vi=await In({...Mn,grantType:GRANT_TYPE_REFRESH});vi&&Ln({oAuth2Options:{...Mn,token:vi}})};return Mn?.token?.refreshToken?jsx$1(ButtonWithDescription,{description:"Refresh token",onClick:Rn?Hn:jn,children:Rn?jsxs(Fragment,{children:[jsx$1(Spinner$1,{colorSelector:hi=>hi.components.buttonText}),"Cancel"]}):jsx$1(Fragment,{children:"Refresh"})}):null},ResponseTypeInput=({flows:on,onChange:In,options:Rn})=>useIsFlowActive(Rn.activeFlowKind,on)?jsxs(Group,{children:[jsx$1(Label,{htmlFor:"response-type",children:"Response Type"}),jsxs(Select,{id:"response-type",onChange:Hn=>{let jn=RESPONSE_TYPE_TOKEN;switch(Hn.target.value??""){case RESPONSE_TYPE_ID_TOKEN:jn=RESPONSE_TYPE_ID_TOKEN;break;case RESPONSE_TYPE_ID_TOKEN_TOKEN:jn=RESPONSE_TYPE_ID_TOKEN_TOKEN;break}In({oAuth2Options:{...Rn,responseType:jn}})},value:Rn.responseType,children:[jsx$1("option",{value:RESPONSE_TYPE_TOKEN,children:"Access Token"}),jsx$1("option",{value:RESPONSE_TYPE_ID_TOKEN,children:"ID Token"}),jsx$1("option",{value:RESPONSE_TYPE_ID_TOKEN_TOKEN,children:"ID and Access Token"})]})]}):null;function useIsFlowActive(on,In){return reactExports.useMemo(()=>!!In.find(Rn=>Rn===on),[In,on])}function ButtonWithDescription({children:on,description:In,tooltip:Rn,...Mn}){return jsxs(Label,{children:[jsxs(LabelDescription,{children:[In,Rn&&jsx$1(Tooltip,{title:Rn,placement:"top-start",children:jsx$1("span",{children:jsx$1(InfoIcon,{})})})]}),Rn?jsx$1(TooltipButton,{tooltip:Rn,...Mn,children:on}):jsx$1(Button,{...Mn,children:on})]})}function RedirectUrlInfoMessage({redirectUrl:on}){if(!on||IS_RUNNING_IN_ELECTRON)return null;const In=tryParseUrl(on);return In&&isSigninRedirect(In)?jsx$1(Alert,{severity:"error",children:jsxs("p",{children:["The provided URL ",jsx$1("code",{children:on})," cannot be used as it is internally utilized by Nitro for authentication. Please ensure you select a different URL to avoid conflicts with the internal authentication mechanism."]})}):on.startsWith(window.location.href)?null:jsx$1(Alert,{severity:"warning",children:jsxs("p",{children:["The current redirect URL is set to ",jsx$1("code",{children:on}),". Once the authentication process is complete, your browser will be directed to this URL. However, please note that Nitro cannot access this domain, as it is hosted on ",jsx$1("code",{children:window.location.href}),". If you face any problems while fetching the token, make sure to use a redirect URL that begins with ",jsx$1("code",{children:window.location.href}),"."]})})}const AuthFlow=({authentication:on,onChange:In})=>{switch(on.activeAuthenticationKind){case BASIC_AUTHENTICATION_FLOW:return jsx$1(BasicAuthForm,{options:on.basicOptions,onChange:In});case BEARER_TOKEN_AUTHENTICATION_FLOW:return jsx$1(BearerAuthForm,{options:on.bearerOptions,onChange:In});case OAUTH_2_AUTHENTICATION_FLOW:return jsx$1(OAuth2AuthForm,{options:on.oAuth2Options,onChange:In});default:return null}},defaultAuthenticationFlow={activeAuthenticationKind:NO_AUTH_AUTHENTICATION_FLOW},AuthSettings=reactExports.memo(function on({authentication:In=defaultAuthenticationFlow,onChange:Rn}){const[Mn,Ln]=reactExports.useState(In),Hn=Wn=>{let Yn={...Mn,...Wn};const hi=createAuthHeaderValue(Yn);Yn={...Yn,headerValue:hi},Ln(Yn),Rn(Yn)},jn=Wn=>{Hn({activeAuthenticationKind:Wn.target.value})};return reactExports.useEffect(()=>{Ln(In)},[In]),jsxs(Fragment,{children:[jsxs(Group,{children:[jsx$1(Label,{htmlFor:"auth-flow",children:"Type"}),jsx$1(Select,{id:"auth-flow",value:Mn.activeAuthenticationKind,onChange:jn,children:ALL_AUTH_FLOWS.map(({kind:Wn,text:Yn})=>jsx$1("option",{value:Wn,children:Yn},Wn))})]}),jsx$1(AuthFlow,{authentication:Mn,onChange:Hn})]})});function tryParseJsonString(on){if(on===void 0)return on;try{return JSON.parse(on)}catch{return on}}function getSubscriptionTransport(on){switch(on){case AUTO_SUBSCRIPTION_PROTOCOL:return"AUTO";case GRAPHQL_SSE_SUBSCRIPTION_PROTOCOL:return"SSE";case APOLLO_SUBSCRIPTION_PROTOCOL:case GRAPHQL_WS_SUBSCRIPTION_PROTOCOL:return"WS";default:throw new Error("Unknown subscription protocol")}}const DEFAULT_SETTINGS={id:"-",apiUrl:"-",sub:"-",featureFlags:[],preferences:{},theme:DEFAULT_THEME_SETTINGS};function SettingsProvider({children:on}){const In=useInitialize$2();return In?jsx$1(AddFeatureFlagProvider,{settings$:In,children:jsx$1(RemoveFeatureFlagProvider,{settings$:In,children:jsx$1(SetPreferenceProvider,{settings$:In,children:jsx$1(UpdateThemeSettingsProvider,{settings$:In,children:jsx$1(SettingsContext.Provider,{value:In,children:on})})})})}):null}function useInitialize$2(){const on=useActiveSessionObservable(),In=reactExports.useRef(void 0),Rn=useForceUpdate();return reactExports.useEffect(()=>{function Mn(Yn){In.current?(In.current.next(Yn),sendMessage({kind:THEME_SETTINGS_CHANGED_MESSAGE,themeSettings:Yn.theme})):(In.current=createSubject(Yn),sendMessage({kind:THEME_SETTINGS_CHANGED_MESSAGE,themeSettings:Yn.theme}),Rn())}let Ln;async function Hn(Yn){let hi=DEFAULT_SETTINGS;Ln&&(Ln.abort(),Ln=void 0),Yn&&(Ln=new AbortController,hi=await getSettingsBySession(Yn,Ln.signal),Ln=void 0),Mn(hi)}let jn=on.value(),Wn=on.subscribe(Yn=>{jn!==Yn&&(jn=Yn,Hn(Yn))});return Hn(jn),()=>{Wn(),Ln?.abort()}},[on,Rn]),In.current}async function getSettingsBySession(on,In){const{apiUrl:Rn,sub:Mn}=on;let Ln,Hn;try{if(Ln=await getSettings(Mn,Rn),Hn=await fetchSettings(Ln?.id,Mn,Rn,In),Hn)return await upsertSettings(Hn),Hn}catch{}return Hn??Ln??DEFAULT_SETTINGS}async function fetchSettings(on,In,Rn,Mn){const Ln=await sessionSchedulerClient.fetchSettings(Mn);if(Ln.kind==="error")return;let{preferences:Hn,settings:{featureFlags:jn,theme:{usePreferredOsAppearance:Wn,darkThemeName:Yn,lightThemeName:hi,themeName:vi}}}=Ln;return Yn??=DEFAULT_THEME_SETTINGS.darkThemeName,hi??=DEFAULT_THEME_SETTINGS.lightThemeName,vi??=DEFAULT_THEME_SETTINGS.themeName,{id:on??nanoid(),apiUrl:Rn,sub:In,featureFlags:jn,preferences:Hn,theme:{usePreferredOsAppearance:Wn,darkThemeName:Yn,lightThemeName:hi,themeName:vi}}}function useTriggerFeatureFlagsUpdatedFailed(){const on=useActivateLogEntry(),In=useAppendLogEntry();return reactExports.useCallback(async Rn=>{const Mn=await In(null,LogLevel.error,"Feature Flags Not Pushed",Rn.length===1?Rn[0]:Rn);let Ln;function Hn(){on(Mn,void 0,!1),Ln()}const{dismiss:jn}=triggerErrorNotification("Feature Flags Not Pushed",jsxs(Fragment,{children:[jsx$1(ToastContentParagraph,{children:"We were not able to store the latest Feature Flag update on the server. Click on Details to find out more."}),jsx$1(ToastFooter,{children:jsx$1(Button,{color:"primary",onClick:Hn,children:"Details"})})]}));Ln=jn},[on,In])}function useTriggerPreferenceUpdatedFailed(){const on=useActivateLogEntry(),In=useAppendLogEntry();return reactExports.useCallback(async Rn=>{const Mn=await In(null,LogLevel.error,"Preference Not Pushed",Rn.length===1?Rn[0]:Rn);let Ln;function Hn(){on(Mn,void 0,!1),Ln()}const{dismiss:jn}=triggerErrorNotification("Preference Not Pushed",jsxs(Fragment,{children:[jsx$1(ToastContentParagraph,{children:"We were not able to store the latest Preference update on the server. Click on Details to find out more."}),jsx$1(ToastFooter,{children:jsx$1(Button,{color:"primary",onClick:Hn,children:"Details"})})]}));Ln=jn},[on,In])}const SettingsContext=createNamedContext(null,"Settings");function PreferencesSelector(on){return on.preferences??{}}function usePreferences(){return useSelector(SettingsContext,PreferencesSelector)}function usePreferencesObservable(){return useSelectionObservable(reactExports.useContext(SettingsContext),PreferencesSelector,{})}function ThemeSettingsSelector(on){return on.theme}function useThemeSettings(){return useSelector(SettingsContext,ThemeSettingsSelector)}const AddFeatureFlagContext=createNamedContext(noop$2,"AddFeatureFlag");function AddFeatureFlagProvider({children:on,settings$:In}){const Rn=useActiveSession(),Mn=useTriggerFeatureFlagsUpdatedFailed(),Ln=reactExports.useCallback(async Hn=>{if(!Rn)return;const{apiUrl:jn,sub:Wn}=Rn,Yn=await getSettings(Wn,jn);if(Yn?.featureFlags?.includes(Hn))return;const hi=Yn?.featureFlags?[...Yn.featureFlags,Hn]:[Hn],vi=Yn?{...Yn,featureFlags:hi}:{...DEFAULT_SETTINGS,id:nanoid(),featureFlags:hi};In.next(vi);const[gi]=await Promise.all([sessionSchedulerClient.updateFeatureFlags(hi),upsertSettings(vi)]);gi.success||Mn(gi.errorMessages)},[Rn,In,Mn]);return jsx$1(AddFeatureFlagContext.Provider,{value:Ln,children:on})}const RemoveFeatureFlagContext=createNamedContext(noop$2,"RemoveFeatureFlag");function RemoveFeatureFlagProvider({children:on,settings$:In}){const Rn=useActiveSession(),Mn=useTriggerFeatureFlagsUpdatedFailed(),Ln=reactExports.useCallback(async Hn=>{if(!Rn)return;const{apiUrl:jn,sub:Wn}=Rn,Yn=await getSettings(Wn,jn);if(!Yn?.featureFlags?.includes(Hn))return;const hi=Yn.featureFlags.filter(mi=>mi!==Hn),vi={...Yn,featureFlags:hi};In.next(vi);const[gi]=await Promise.all([sessionSchedulerClient.updateFeatureFlags(hi),upsertSettings(vi)]);gi.success||Mn(gi.errorMessages)},[Rn,In,Mn]);return jsx$1(RemoveFeatureFlagContext.Provider,{value:Ln,children:on})}const SetPreferenceContext=createNamedContext(noop$2,"SetPreference");function SetPreferenceProvider({children:on,settings$:In}){const Rn=useActiveSession(),Mn=useTriggerPreferenceUpdatedFailed(),Ln=reactExports.useCallback(async(Hn,jn)=>{if(!Rn)return;const{apiUrl:Wn,sub:Yn}=Rn,hi=await getSettings(Yn,Wn);if(hi?.preferences?.[Hn]===jn)return;const vi=hi?.preferences?{...hi.preferences,[Hn]:jn}:{[Hn]:jn},gi=hi?{...hi,preferences:vi}:{...DEFAULT_SETTINGS,id:nanoid(),preferences:vi};In.next(gi);const[mi]=await Promise.all([sessionSchedulerClient.updatePreferences(vi),upsertSettings(gi)]);mi.success||Mn(mi.errorMessages)},[Rn,In,Mn]);return jsx$1(SetPreferenceContext.Provider,{value:Ln,children:on})}function useSetPreference(){return reactExports.useContext(SetPreferenceContext)}const UpdateThemeSettingsContext=createNamedContext(noop$2,"UpdateThemeSettings");function UpdateThemeSettingsProvider({children:on,settings$:In}){const Rn=useActiveSession(),Mn=reactExports.useCallback(async Ln=>{if(!Rn)return;const{apiUrl:Hn,sub:jn}=Rn,Wn=await getSettings(jn,Hn),Yn=Wn?{...Wn,theme:Ln}:{...DEFAULT_SETTINGS,id:nanoid(),theme:Ln};In.next(Yn),sessionSchedulerClient.persistThemeSettings(Ln),sendMessage({kind:THEME_SETTINGS_CHANGED_MESSAGE,themeSettings:Yn.theme}),await upsertSettings(Yn)},[Rn,In]);return jsx$1(UpdateThemeSettingsContext.Provider,{value:Mn,children:on})}function useUpdateThemeSettings(){return reactExports.useContext(UpdateThemeSettingsContext)}const FiraCodeMedium=""+new URL("FiraCode-Medium.a6cbd8ae.-YTCSZkP.woff2",import.meta.url).href,BREAD_CRUMB_SIZE=20,HEADER_AND_CONTROL_SIZE=36;function Section({$sectionName:on,...In}){return jsx$1(SectionElement,{...In,role:"section","data-section-name":on})}const SectionElement=styled("div")(({theme:on,$fixedSize:In,$flex:Rn="auto",$flexDirection:Mn,$separator:Ln,$spacing:Hn})=>css`
|
|
5006
|
+
`,StyledSwitch=styled(Switch)(({theme:on})=>({width:30,height:18,padding:0,display:"flex","&:active":{"& .MuiSwitch-thumb":{width:15},"& .MuiSwitch-switchBase.Mui-checked":{transform:"translateX(9px)"}},"& .Mui-disabled":{opacity:"0.5 !important","& + .MuiSwitch-track":{opacity:"0.5 !important"}},"& .MuiSwitch-switchBase":{padding:2,color:THEME_COLORS.components.toggleThumb,transition:"color 0.2s ease","& + .MuiSwitch-track":{borderColor:THEME_COLORS.components.toggleTrackBorder,backgroundColor:THEME_COLORS.components.toggleTrack,transition:"background-color 0.2s ease, border-color 0.2s ease"},"&.Mui-checked":{transform:"translateX(12px)",color:THEME_COLORS.components.toggleThumbActive,"& + .MuiSwitch-track":{opacity:1,borderColor:THEME_COLORS.components.toggleTrackActiveBorder,backgroundColor:THEME_COLORS.components.toggleTrackActive}}},"& .MuiSwitch-switchBase:hover":{color:THEME_COLORS.components.toggleThumbHover,"& + .MuiSwitch-track":{borderColor:THEME_COLORS.components.toggleTrackHoverBorder,backgroundColor:THEME_COLORS.components.toggleTrackHover},"&.Mui-checked":{color:THEME_COLORS.components.toggleThumbActiveHover,"& + .MuiSwitch-track":{borderColor:THEME_COLORS.components.toggleTrackActiveHoverBorder,backgroundColor:THEME_COLORS.components.toggleTrackActiveHover}}},"& .MuiSwitch-thumb":{boxShadow:"0 2px 4px 0 rgb(0 35 11 / 20%)",margin:1,width:12,height:12,borderRadius:6,transition:on.transitions.create(["width"],{duration:200})},"& .MuiSwitch-track":{borderRadius:18/2,opacity:1,boxSizing:"border-box",borderStyle:"solid",borderWidth:1}})),defaultOptions={grantType:GRANT_TYPE_AUTHORIZATION_CODE,activeFlowKind:GRANT_TYPE_AUTHORIZATION_CODE,authorizationUrl:"",accessTokenUrl:"",credentialsInBody:!1,clientId:"",clientSecret:"",redirectUrl:"",scope:"",state:"",audience:"",resource:"",responseType:RESPONSE_TYPE_TOKEN,usePkce:!0,pkceMethod:PKCE_CHALLENGE_S256,origin:"",username:"",password:"",prefix:""},OAuth2AuthForm=reactExports.memo(function on({options:In=defaultOptions,onChange:Rn}){const{error:Mn,cancel:Ln,fetchToken:Hn,loading:jn}=useFetchToken();return jsxs(Fragment,{children:[jsx$1(GrantTypeInput,{options:In,onChange:Rn}),jsx$1(GroupInput,{flows:[GRANT_TYPE_AUTHORIZATION_CODE,GRANT_TYPE_IMPLICIT],id:"authorizationUrl",type:"text",placeholder:"https://authorization-server.com/oauth2/authorize",options:In,onChange:Rn,label:"Authorization URL"}),jsx$1(GroupInput,{flows:[GRANT_TYPE_PASSWORD],id:"username",type:"text",placeholder:"",options:In,onChange:Rn,label:"Username"}),jsx$1(GroupInput,{flows:[GRANT_TYPE_PASSWORD],id:"password",type:"password",placeholder:"",options:In,onChange:Rn,label:"Password"}),jsx$1(GroupInput,{flows:[GRANT_TYPE_AUTHORIZATION_CODE,GRANT_TYPE_CLIENT_CREDENTIALS,GRANT_TYPE_PASSWORD],id:"accessTokenUrl",type:"text",placeholder:"https://authorization-server.com/oauth2/token",options:In,onChange:Rn,label:"Access Token URL"}),jsx$1(GroupInput,{flows:[GRANT_TYPE_AUTHORIZATION_CODE,GRANT_TYPE_CLIENT_CREDENTIALS,GRANT_TYPE_IMPLICIT,GRANT_TYPE_PASSWORD],id:"clientId",type:"text",options:In,onChange:Rn,label:"Client ID"}),jsx$1(GroupInput,{flows:[GRANT_TYPE_AUTHORIZATION_CODE,GRANT_TYPE_CLIENT_CREDENTIALS,GRANT_TYPE_PASSWORD],id:"clientSecret",type:"password",options:In,onChange:Rn,label:"Client Secret"}),jsx$1(UsePkceInput,{flows:[GRANT_TYPE_AUTHORIZATION_CODE],options:In,onChange:Rn}),jsx$1(CodeChallengeMethodInput,{flows:[GRANT_TYPE_AUTHORIZATION_CODE],options:In,onChange:Rn}),jsx$1(GroupInput,{flows:[GRANT_TYPE_AUTHORIZATION_CODE,GRANT_TYPE_IMPLICIT],id:"redirectUrl",type:"text",options:In,onChange:Rn,label:"Redirect URL"}),jsx$1(RedirectUrlInfoMessage,{redirectUrl:In.redirectUrl}),jsx$1(ResponseTypeInput,{flows:[GRANT_TYPE_IMPLICIT],options:In,onChange:Rn}),jsx$1(GroupInput,{flows:[GRANT_TYPE_AUTHORIZATION_CODE,GRANT_TYPE_IMPLICIT,GRANT_TYPE_CLIENT_CREDENTIALS,GRANT_TYPE_PASSWORD],id:"scope",type:"text",options:In,onChange:Rn,label:"Scope"}),jsx$1(GroupInput,{flows:[GRANT_TYPE_AUTHORIZATION_CODE,GRANT_TYPE_IMPLICIT],id:"state",type:"text",options:In,onChange:Rn,label:"State"}),jsx$1(CredentialsInBodyInput,{flows:[GRANT_TYPE_AUTHORIZATION_CODE,GRANT_TYPE_CLIENT_CREDENTIALS,GRANT_TYPE_PASSWORD],options:In,onChange:Rn}),jsx$1(GroupInput,{flows:[GRANT_TYPE_AUTHORIZATION_CODE,GRANT_TYPE_IMPLICIT,GRANT_TYPE_CLIENT_CREDENTIALS,GRANT_TYPE_PASSWORD],id:"prefix",type:"text",options:In,onChange:Rn,label:"Header Prefix"}),jsx$1(GroupInput,{flows:[GRANT_TYPE_AUTHORIZATION_CODE,GRANT_TYPE_IMPLICIT,GRANT_TYPE_CLIENT_CREDENTIALS,GRANT_TYPE_PASSWORD],id:"audience",type:"text",options:In,onChange:Rn,label:"Audience"}),jsx$1(GroupInput,{flows:[GRANT_TYPE_AUTHORIZATION_CODE,GRANT_TYPE_CLIENT_CREDENTIALS],id:"resource",type:"text",options:In,onChange:Rn,label:"Resource"}),jsx$1(GroupInput,{flows:[GRANT_TYPE_AUTHORIZATION_CODE],id:"origin",type:"text",options:In,onChange:Rn,label:"Origin"}),jsx$1(TokenDetails,{options:In,onChange:Rn}),jsxs(Group,{children:[jsx$1(ClearTokenButton,{options:In,onChange:Rn}),jsx$1(RefreshTokenButton,{options:In,onChange:Rn,cancel:Ln,fetchToken:Hn,loading:jn}),jsx$1(FetchTokenButton,{options:In,onChange:Rn,cancel:Ln,fetchToken:Hn,loading:jn}),jsx$1(ChangeSessionButton,{options:In,onChange:Rn})]}),Mn&&jsx$1(Alert,{severity:"warning",title:"Error",children:Mn.message??"Ops, something went wrong!"})]})}),FetchTokenButton=({cancel:on,fetchToken:In,loading:Rn,options:Mn,onChange:Ln})=>jsx$1(ButtonWithDescription,{description:"Fetch token",onClick:Rn?hi=>{hi.preventDefault(),hi.stopPropagation(),on()}:async hi=>{hi.preventDefault(),hi.stopPropagation();const vi=await In(Mn);vi&&Ln({oAuth2Options:{...Mn,token:vi}})},children:Rn?jsxs(Fragment,{children:[jsx$1(Spinner$1,{colorSelector:hi=>hi.components.buttonText}),"Cancel"]}):jsx$1(Fragment,{children:"Fetch"})}),GrantTypeInput=({onChange:on,options:In})=>jsxs(Group,{children:[jsx$1(Label,{htmlFor:"grant-type",children:"Grant Type"}),jsxs(Select,{id:"grant-type",onChange:Mn=>{let Ln=GRANT_TYPE_AUTHORIZATION_CODE,Hn=GRANT_TYPE_AUTHORIZATION_CODE;switch(Mn.target.value??""){case GRANT_TYPE_IMPLICIT:Ln=GRANT_TYPE_IMPLICIT,Hn=GRANT_TYPE_IMPLICIT;break;case GRANT_TYPE_CLIENT_CREDENTIALS:Ln=GRANT_TYPE_CLIENT_CREDENTIALS,Hn=GRANT_TYPE_CLIENT_CREDENTIALS;break;case GRANT_TYPE_PASSWORD:Ln=GRANT_TYPE_PASSWORD,Hn=GRANT_TYPE_PASSWORD;break}on({oAuth2Options:{...In,grantType:Hn,activeFlowKind:Ln}})},value:In.activeFlowKind,children:[jsx$1("option",{value:GRANT_TYPE_AUTHORIZATION_CODE,children:"Authorization Code"}),jsx$1("option",{value:GRANT_TYPE_IMPLICIT,children:"Implicit"}),jsx$1("option",{value:GRANT_TYPE_CLIENT_CREDENTIALS,children:"Client Credentials"}),jsx$1("option",{value:GRANT_TYPE_PASSWORD,children:"Resource Owner Password Credentials"})]})]}),GroupInput=({flows:on,label:In,id:Rn,onChange:Mn,options:Ln,...Hn})=>{const jn=useIsFlowActive(Ln.activeFlowKind,on),Wn=Yn=>{Mn({oAuth2Options:{...Ln,[Rn]:Yn.target.value??""}})};return jn?jsxs(Group,{children:[jsx$1(Label,{htmlFor:String(Rn),children:In}),jsx$1(InterpolationInput,{id:String(Rn),value:Ln[Rn],onChange:Wn,...Hn})]}):null},UsePkceInput=({onChange:on,options:In,flows:Rn})=>{const Mn=useIsFlowActive(In.activeFlowKind,Rn),Ln=Hn=>{on({oAuth2Options:{...In,usePkce:Hn}})};return Mn?jsx$1(Group,{children:jsxs(Label,{children:[jsx$1(LabelDescription,{children:"Use PKCE"}),jsx$1(Toggle,{checked:In.usePkce,offText:"No",onText:"Yes",onChange:Ln})]})}):null},CodeChallengeMethodInput=({onChange:on,options:In,flows:Rn})=>{const Mn=useIsFlowActive(In.activeFlowKind,Rn),Ln=Hn=>{const jn=Hn.target.value===PKCE_CHALLENGE_PLAIN?PKCE_CHALLENGE_PLAIN:PKCE_CHALLENGE_S256;on({oAuth2Options:{...In,pkceMethod:jn}})};return Mn&&In.usePkce?jsxs(Group,{children:[jsx$1(Label,{htmlFor:"pkce-method-code-challenge",children:"Code Challenge Method"}),jsxs(Select,{id:"pkce-method-code-challenge",value:In.pkceMethod,onChange:Ln,children:[jsx$1("option",{value:PKCE_CHALLENGE_S256,children:"SHA-256"}),jsx$1("option",{value:PKCE_CHALLENGE_PLAIN,children:"Plain"})]})]}):null},CredentialsInBodyInput=({onChange:on,options:In,flows:Rn})=>useIsFlowActive(In.activeFlowKind,Rn)?jsxs(Group,{children:[jsx$1(Label,{htmlFor:"pkce-method-credentials",children:"Credentials"}),jsxs(Select,{id:"pkce-method-credentials",onChange:Hn=>{const jn=Hn.target.value==="body";on({oAuth2Options:{...In,credentialsInBody:jn}})},value:In.credentialsInBody?"body":"header",children:[jsx$1("option",{value:"header",children:"As Basic Auth Header (default)"}),jsx$1("option",{value:"body",children:"In Request Body"})]})]}):null,TokenDetails=({options:on})=>on.token?jsxs(Fragment,{children:[jsxs(Group,{children:[jsx$1(Label,{htmlFor:"id_token",children:"Id Token"}),jsx$1(Input,{id:"id_token",disabled:!0,value:on.token.identityToken??""})]}),jsxs(Group,{children:[jsx$1(Label,{htmlFor:"access_token",children:"Access Token"}),jsx$1(Input,{id:"access_token",disabled:!0,value:on.token.accessToken??""})]}),jsxs(Group,{children:[jsx$1(Label,{htmlFor:"refresh_token",children:"Refresh Token"}),jsx$1(Input,{id:"refresh_token",disabled:!0,value:on.token.refreshToken??""})]})]}):null;function ClearTokenButton({options:on,onChange:In}){return on.token?jsx$1(ButtonWithDescription,{description:"Clear tokens",onClick:()=>{In({oAuth2Options:{...on,token:void 0}})},children:"Clear"}):null}function ChangeSessionButton({options:on,onChange:In}){if(!IS_RUNNING_IN_ELECTRON||on.activeFlowKind!==GRANT_TYPE_AUTHORIZATION_CODE&&on.activeFlowKind!==GRANT_TYPE_IMPLICIT)return null;const Rn=Mn=>{Mn.preventDefault(),Mn.stopPropagation(),In({oAuth2Options:{...on,sessionId:nanoid()}})};return jsx$1(ButtonWithDescription,{description:"Reset session on identity server",tooltip:`The browser persist your authentication session on ${on.authorizationUrl??"your identity server."}, so that you do not have to sign in every time. If you want to log in with a different user, you should reset your session by pressing the button on the right.`,onClick:Rn,children:"Reset"})}const RefreshTokenButton=({cancel:on,fetchToken:In,loading:Rn,options:Mn,onChange:Ln})=>{const Hn=hi=>{hi.preventDefault(),hi.stopPropagation(),on()},jn=async hi=>{hi.preventDefault(),hi.stopPropagation();const vi=await In({...Mn,grantType:GRANT_TYPE_REFRESH});vi&&Ln({oAuth2Options:{...Mn,token:vi}})};return Mn?.token?.refreshToken?jsx$1(ButtonWithDescription,{description:"Refresh token",onClick:Rn?Hn:jn,children:Rn?jsxs(Fragment,{children:[jsx$1(Spinner$1,{colorSelector:hi=>hi.components.buttonText}),"Cancel"]}):jsx$1(Fragment,{children:"Refresh"})}):null},ResponseTypeInput=({flows:on,onChange:In,options:Rn})=>useIsFlowActive(Rn.activeFlowKind,on)?jsxs(Group,{children:[jsx$1(Label,{htmlFor:"response-type",children:"Response Type"}),jsxs(Select,{id:"response-type",onChange:Hn=>{let jn=RESPONSE_TYPE_TOKEN;switch(Hn.target.value??""){case RESPONSE_TYPE_ID_TOKEN:jn=RESPONSE_TYPE_ID_TOKEN;break;case RESPONSE_TYPE_ID_TOKEN_TOKEN:jn=RESPONSE_TYPE_ID_TOKEN_TOKEN;break}In({oAuth2Options:{...Rn,responseType:jn}})},value:Rn.responseType,children:[jsx$1("option",{value:RESPONSE_TYPE_TOKEN,children:"Access Token"}),jsx$1("option",{value:RESPONSE_TYPE_ID_TOKEN,children:"ID Token"}),jsx$1("option",{value:RESPONSE_TYPE_ID_TOKEN_TOKEN,children:"ID and Access Token"})]})]}):null;function useIsFlowActive(on,In){return reactExports.useMemo(()=>!!In.find(Rn=>Rn===on),[In,on])}function ButtonWithDescription({children:on,description:In,tooltip:Rn,...Mn}){return jsxs(Label,{children:[jsxs(LabelDescription,{children:[In,Rn&&jsx$1(Tooltip,{title:Rn,placement:"top-start",children:jsx$1("span",{children:jsx$1(InfoIcon,{})})})]}),Rn?jsx$1(TooltipButton,{tooltip:Rn,...Mn,children:on}):jsx$1(Button,{...Mn,children:on})]})}function RedirectUrlInfoMessage({redirectUrl:on}){if(!on||IS_RUNNING_IN_ELECTRON)return null;const In=tryParseUrl(on);return In&&isSigninRedirect(In)?jsx$1(Alert,{severity:"error",children:jsxs("p",{children:["The provided URL ",jsx$1("code",{children:on})," cannot be used as it is internally utilized by Nitro for authentication. Please ensure you select a different URL to avoid conflicts with the internal authentication mechanism."]})}):on.startsWith(window.location.href)?null:jsx$1(Alert,{severity:"warning",children:jsxs("p",{children:["The current redirect URL is set to ",jsx$1("code",{children:on}),". Once the authentication process is complete, your browser will be directed to this URL. However, please note that Nitro cannot access this domain, as it is hosted on ",jsx$1("code",{children:window.location.href}),". If you face any problems while fetching the token, make sure to use a redirect URL that begins with ",jsx$1("code",{children:window.location.href}),"."]})})}const AuthFlow=({authentication:on,onChange:In})=>{switch(on.activeAuthenticationKind){case BASIC_AUTHENTICATION_FLOW:return jsx$1(BasicAuthForm,{options:on.basicOptions,onChange:In});case BEARER_TOKEN_AUTHENTICATION_FLOW:return jsx$1(BearerAuthForm,{options:on.bearerOptions,onChange:In});case OAUTH_2_AUTHENTICATION_FLOW:return jsx$1(OAuth2AuthForm,{options:on.oAuth2Options,onChange:In});default:return null}},defaultAuthenticationFlow={activeAuthenticationKind:NO_AUTH_AUTHENTICATION_FLOW},AuthSettings=reactExports.memo(function on({authentication:In=defaultAuthenticationFlow,onChange:Rn}){const[Mn,Ln]=reactExports.useState(In),Hn=Wn=>{let Yn={...Mn,...Wn};const hi=createAuthHeaderValue(Yn);Yn={...Yn,headerValue:hi},Ln(Yn),Rn(Yn)},jn=Wn=>{Hn({activeAuthenticationKind:Wn.target.value})};return reactExports.useEffect(()=>{Ln(In)},[In]),jsxs(Fragment,{children:[jsxs(Group,{children:[jsx$1(Label,{htmlFor:"auth-flow",children:"Type"}),jsx$1(Select,{id:"auth-flow",value:Mn.activeAuthenticationKind,onChange:jn,children:ALL_AUTH_FLOWS.map(({kind:Wn,text:Yn})=>jsx$1("option",{value:Wn,children:Yn},Wn))})]}),jsx$1(AuthFlow,{authentication:Mn,onChange:Hn})]})});function tryParseJsonString(on){if(on===void 0)return on;try{return JSON.parse(on)}catch{return on}}function getSubscriptionTransport(on){switch(on){case AUTO_SUBSCRIPTION_PROTOCOL:return"AUTO";case GRAPHQL_SSE_SUBSCRIPTION_PROTOCOL:return"SSE";case APOLLO_SUBSCRIPTION_PROTOCOL:case GRAPHQL_WS_SUBSCRIPTION_PROTOCOL:return"WS";default:throw new Error("Unknown subscription protocol")}}const DEFAULT_SETTINGS={id:"-",apiUrl:"-",sub:"-",featureFlags:[],preferences:{},theme:DEFAULT_THEME_SETTINGS};function SettingsProvider({children:on}){const In=useInitialize$2();return In?jsx$1(AddFeatureFlagProvider,{settings$:In,children:jsx$1(RemoveFeatureFlagProvider,{settings$:In,children:jsx$1(SetPreferenceProvider,{settings$:In,children:jsx$1(UpdateThemeSettingsProvider,{settings$:In,children:jsx$1(SettingsContext.Provider,{value:In,children:on})})})})}):null}function useInitialize$2(){const on=useActiveSessionObservable(),In=reactExports.useRef(void 0),Rn=useForceUpdate();return reactExports.useEffect(()=>{function Mn(Yn){In.current?(In.current.next(Yn),sendMessage({kind:THEME_SETTINGS_CHANGED_MESSAGE,themeSettings:Yn.theme})):(In.current=createSubject(Yn),sendMessage({kind:THEME_SETTINGS_CHANGED_MESSAGE,themeSettings:Yn.theme}),Rn())}let Ln;async function Hn(Yn){let hi=DEFAULT_SETTINGS;Ln&&(Ln.abort(),Ln=void 0),Yn&&(Ln=new AbortController,hi=await getSettingsBySession(Yn,Ln.signal),Ln=void 0),Mn(hi)}let jn=on.value(),Wn=on.subscribe(Yn=>{jn!==Yn&&(jn=Yn,Hn(Yn))});return Hn(jn),()=>{Wn(),Ln?.abort()}},[on,Rn]),In.current}async function getSettingsBySession(on,In){const{apiUrl:Rn,sub:Mn}=on;let Ln,Hn;try{if(Ln=await getSettings(Mn,Rn),Hn=await fetchSettings(Ln?.id,Mn,Rn,In),Hn)return await upsertSettings(Hn),Hn}catch{}return Hn??Ln??DEFAULT_SETTINGS}async function fetchSettings(on,In,Rn,Mn){const Ln=await sessionSchedulerClient.fetchSettings(Mn);if(Ln.kind==="error")return;let{preferences:Hn,settings:{featureFlags:jn,theme:{usePreferredOsAppearance:Wn,darkThemeName:Yn,lightThemeName:hi,themeName:vi}}}=Ln;return Yn??=DEFAULT_THEME_SETTINGS.darkThemeName,hi??=DEFAULT_THEME_SETTINGS.lightThemeName,vi??=DEFAULT_THEME_SETTINGS.themeName,{id:on??nanoid(),apiUrl:Rn,sub:In,featureFlags:jn,preferences:Hn,theme:{usePreferredOsAppearance:Wn,darkThemeName:Yn,lightThemeName:hi,themeName:vi}}}function useTriggerFeatureFlagsUpdatedFailed(){const on=useActivateLogEntry(),In=useAppendLogEntry();return reactExports.useCallback(async Rn=>{const Mn=await In(null,LogLevel.error,"Feature Flags Not Pushed",Rn.length===1?Rn[0]:Rn);let Ln;function Hn(){on(Mn,void 0,!1),Ln()}const{dismiss:jn}=triggerErrorNotification("Feature Flags Not Pushed",jsxs(Fragment,{children:[jsx$1(ToastContentParagraph,{children:"We were not able to store the latest Feature Flag update on the server. Click on Details to find out more."}),jsx$1(ToastFooter,{children:jsx$1(Button,{color:"primary",onClick:Hn,children:"Details"})})]}));Ln=jn},[on,In])}function useTriggerPreferenceUpdatedFailed(){const on=useActivateLogEntry(),In=useAppendLogEntry();return reactExports.useCallback(async Rn=>{const Mn=await In(null,LogLevel.error,"Preference Not Pushed",Rn.length===1?Rn[0]:Rn);let Ln;function Hn(){on(Mn,void 0,!1),Ln()}const{dismiss:jn}=triggerErrorNotification("Preference Not Pushed",jsxs(Fragment,{children:[jsx$1(ToastContentParagraph,{children:"We were not able to store the latest Preference update on the server. Click on Details to find out more."}),jsx$1(ToastFooter,{children:jsx$1(Button,{color:"primary",onClick:Hn,children:"Details"})})]}));Ln=jn},[on,In])}const SettingsContext=createNamedContext(null,"Settings");function PreferencesSelector(on){return on.preferences??{}}function usePreferences(){return useSelector(SettingsContext,PreferencesSelector)}function usePreferencesObservable(){return useSelectionObservable(reactExports.useContext(SettingsContext),PreferencesSelector,{})}function ThemeSettingsSelector(on){return on.theme}function useThemeSettings(){return useSelector(SettingsContext,ThemeSettingsSelector)}const AddFeatureFlagContext=createNamedContext(noop$2,"AddFeatureFlag");function AddFeatureFlagProvider({children:on,settings$:In}){const Rn=useActiveSession(),Mn=useTriggerFeatureFlagsUpdatedFailed(),Ln=reactExports.useCallback(async Hn=>{if(!Rn)return;const{apiUrl:jn,sub:Wn}=Rn,Yn=await getSettings(Wn,jn);if(Yn?.featureFlags?.includes(Hn))return;const hi=Yn?.featureFlags?[...Yn.featureFlags,Hn]:[Hn],vi=Yn?{...Yn,featureFlags:hi}:{...DEFAULT_SETTINGS,id:nanoid(),featureFlags:hi};In.next(vi);const[gi]=await Promise.all([sessionSchedulerClient.updateFeatureFlags(hi),upsertSettings(vi)]);gi.success||Mn(gi.errorMessages)},[Rn,In,Mn]);return jsx$1(AddFeatureFlagContext.Provider,{value:Ln,children:on})}const RemoveFeatureFlagContext=createNamedContext(noop$2,"RemoveFeatureFlag");function RemoveFeatureFlagProvider({children:on,settings$:In}){const Rn=useActiveSession(),Mn=useTriggerFeatureFlagsUpdatedFailed(),Ln=reactExports.useCallback(async Hn=>{if(!Rn)return;const{apiUrl:jn,sub:Wn}=Rn,Yn=await getSettings(Wn,jn);if(!Yn?.featureFlags?.includes(Hn))return;const hi=Yn.featureFlags.filter(mi=>mi!==Hn),vi={...Yn,featureFlags:hi};In.next(vi);const[gi]=await Promise.all([sessionSchedulerClient.updateFeatureFlags(hi),upsertSettings(vi)]);gi.success||Mn(gi.errorMessages)},[Rn,In,Mn]);return jsx$1(RemoveFeatureFlagContext.Provider,{value:Ln,children:on})}const SetPreferenceContext=createNamedContext(noop$2,"SetPreference");function SetPreferenceProvider({children:on,settings$:In}){const Rn=useActiveSession(),Mn=useTriggerPreferenceUpdatedFailed(),Ln=reactExports.useCallback(async(Hn,jn)=>{if(!Rn)return;const{apiUrl:Wn,sub:Yn}=Rn,hi=await getSettings(Yn,Wn);if(hi?.preferences?.[Hn]===jn)return;const vi=hi?.preferences?{...hi.preferences,[Hn]:jn}:{[Hn]:jn},gi=hi?{...hi,preferences:vi}:{...DEFAULT_SETTINGS,id:nanoid(),preferences:vi};In.next(gi);const[mi]=await Promise.all([sessionSchedulerClient.updatePreferences(vi),upsertSettings(gi)]);mi.success||Mn(mi.errorMessages)},[Rn,In,Mn]);return jsx$1(SetPreferenceContext.Provider,{value:Ln,children:on})}function useSetPreference(){return reactExports.useContext(SetPreferenceContext)}const UpdateThemeSettingsContext=createNamedContext(noop$2,"UpdateThemeSettings");function UpdateThemeSettingsProvider({children:on,settings$:In}){const Rn=useActiveSession(),Mn=reactExports.useCallback(async Ln=>{if(!Rn)return;const{apiUrl:Hn,sub:jn}=Rn,Wn=await getSettings(jn,Hn),Yn=Wn?{...Wn,theme:Ln}:{...DEFAULT_SETTINGS,id:nanoid(),theme:Ln};In.next(Yn),sessionSchedulerClient.persistThemeSettings(Ln),sendMessage({kind:THEME_SETTINGS_CHANGED_MESSAGE,themeSettings:Yn.theme}),await upsertSettings(Yn)},[Rn,In]);return jsx$1(UpdateThemeSettingsContext.Provider,{value:Mn,children:on})}function useUpdateThemeSettings(){return reactExports.useContext(UpdateThemeSettingsContext)}const FiraCodeMedium=""+new URL("FiraCode-Medium.32393d3f.-YTCSZkP.woff2",import.meta.url).href,BREAD_CRUMB_SIZE=20,HEADER_AND_CONTROL_SIZE=36;function Section({$sectionName:on,...In}){return jsx$1(SectionElement,{...In,role:"section","data-section-name":on})}const SectionElement=styled("div")(({theme:on,$fixedSize:In,$flex:Rn="auto",$flexDirection:Mn,$separator:Ln,$spacing:Hn})=>css`
|
|
5007
5007
|
display: flex;
|
|
5008
5008
|
flex: ${In?`0 0 ${on.spacing(In)}`:Rn};
|
|
5009
5009
|
overflow: hidden;
|
|
@@ -5177,7 +5177,7 @@ ${In.join(`
|
|
|
5177
5177
|
color: ${THEME_COLORS.states.success};
|
|
5178
5178
|
`;default:return css`
|
|
5179
5179
|
color: ${THEME_COLORS.base.heading};
|
|
5180
|
-
`}}function WorkerWrapper$3(on){return new Worker(""+new URL("graphql.worker.
|
|
5180
|
+
`}}function WorkerWrapper$3(on){return new Worker(""+new URL("graphql.worker.32393d3f.DCbruaJI.js",import.meta.url).href,{type:"module",name:on?.name})}function WorkerWrapper$2(on){return new Worker(""+new URL("editor.worker.32393d3f.BtBOsr77.js",import.meta.url).href,{type:"module",name:on?.name})}function WorkerWrapper$1(on){return new Worker(""+new URL("json.worker.32393d3f.8ac-t4iI.js",import.meta.url).href,{type:"module",name:on?.name})}function WorkerWrapper(on){return new Worker(""+new URL("yaml.worker.32393d3f.B4fVFlVP.js",import.meta.url).href,{type:"module",name:on?.name})}let initialized=!1;(function(){initialized||(self.MonacoEnvironment={getWorker:function(on,In){switch(In){case"json":return new WorkerWrapper$1({name:"json-worker"});case"yaml":return new WorkerWrapper({name:"yaml-worker"});case"graphql":return new WorkerWrapper$3({name:"graphql-worker"});default:return new WorkerWrapper$2({name:"editor-worker"})}}},initialized=!0)})();const ALIAS=Symbol.for("yaml.alias"),DOC=Symbol.for("yaml.document"),MAP=Symbol.for("yaml.map"),PAIR=Symbol.for("yaml.pair"),SCALAR$1=Symbol.for("yaml.scalar"),SEQ=Symbol.for("yaml.seq"),NODE_TYPE=Symbol.for("yaml.node.type"),isAlias=on=>!!on&&typeof on=="object"&&on[NODE_TYPE]===ALIAS,isDocument=on=>!!on&&typeof on=="object"&&on[NODE_TYPE]===DOC,isMap=on=>!!on&&typeof on=="object"&&on[NODE_TYPE]===MAP,isPair=on=>!!on&&typeof on=="object"&&on[NODE_TYPE]===PAIR,isScalar$1=on=>!!on&&typeof on=="object"&&on[NODE_TYPE]===SCALAR$1,isSeq=on=>!!on&&typeof on=="object"&&on[NODE_TYPE]===SEQ;function isCollection$1(on){if(on&&typeof on=="object")switch(on[NODE_TYPE]){case MAP:case SEQ:return!0}return!1}function isNode(on){if(on&&typeof on=="object")switch(on[NODE_TYPE]){case ALIAS:case MAP:case SCALAR$1:case SEQ:return!0}return!1}const hasAnchor=on=>(isScalar$1(on)||isCollection$1(on))&&!!on.anchor,BREAK$1=Symbol("break visit"),SKIP$1=Symbol("skip children"),REMOVE$1=Symbol("remove node");function visit$1(on,In){const Rn=initVisitor(In);isDocument(on)?visit_(null,on.contents,Rn,Object.freeze([on]))===REMOVE$1&&(on.contents=null):visit_(null,on,Rn,Object.freeze([]))}visit$1.BREAK=BREAK$1;visit$1.SKIP=SKIP$1;visit$1.REMOVE=REMOVE$1;function visit_(on,In,Rn,Mn){const Ln=callVisitor(on,In,Rn,Mn);if(isNode(Ln)||isPair(Ln))return replaceNode(on,Mn,Ln),visit_(on,Ln,Rn,Mn);if(typeof Ln!="symbol"){if(isCollection$1(In)){Mn=Object.freeze(Mn.concat(In));for(let Hn=0;Hn<In.items.length;++Hn){const jn=visit_(Hn,In.items[Hn],Rn,Mn);if(typeof jn=="number")Hn=jn-1;else{if(jn===BREAK$1)return BREAK$1;jn===REMOVE$1&&(In.items.splice(Hn,1),Hn-=1)}}}else if(isPair(In)){Mn=Object.freeze(Mn.concat(In));const Hn=visit_("key",In.key,Rn,Mn);if(Hn===BREAK$1)return BREAK$1;Hn===REMOVE$1&&(In.key=null);const jn=visit_("value",In.value,Rn,Mn);if(jn===BREAK$1)return BREAK$1;jn===REMOVE$1&&(In.value=null)}}return Ln}async function visitAsync(on,In){const Rn=initVisitor(In);isDocument(on)?await visitAsync_(null,on.contents,Rn,Object.freeze([on]))===REMOVE$1&&(on.contents=null):await visitAsync_(null,on,Rn,Object.freeze([]))}visitAsync.BREAK=BREAK$1;visitAsync.SKIP=SKIP$1;visitAsync.REMOVE=REMOVE$1;async function visitAsync_(on,In,Rn,Mn){const Ln=await callVisitor(on,In,Rn,Mn);if(isNode(Ln)||isPair(Ln))return replaceNode(on,Mn,Ln),visitAsync_(on,Ln,Rn,Mn);if(typeof Ln!="symbol"){if(isCollection$1(In)){Mn=Object.freeze(Mn.concat(In));for(let Hn=0;Hn<In.items.length;++Hn){const jn=await visitAsync_(Hn,In.items[Hn],Rn,Mn);if(typeof jn=="number")Hn=jn-1;else{if(jn===BREAK$1)return BREAK$1;jn===REMOVE$1&&(In.items.splice(Hn,1),Hn-=1)}}}else if(isPair(In)){Mn=Object.freeze(Mn.concat(In));const Hn=await visitAsync_("key",In.key,Rn,Mn);if(Hn===BREAK$1)return BREAK$1;Hn===REMOVE$1&&(In.key=null);const jn=await visitAsync_("value",In.value,Rn,Mn);if(jn===BREAK$1)return BREAK$1;jn===REMOVE$1&&(In.value=null)}}return Ln}function initVisitor(on){return typeof on=="object"&&(on.Collection||on.Node||on.Value)?Object.assign({Alias:on.Node,Map:on.Node,Scalar:on.Node,Seq:on.Node},on.Value&&{Map:on.Value,Scalar:on.Value,Seq:on.Value},on.Collection&&{Map:on.Collection,Seq:on.Collection},on):on}function callVisitor(on,In,Rn,Mn){if(typeof Rn=="function")return Rn(on,In,Mn);if(isMap(In))return Rn.Map?.(on,In,Mn);if(isSeq(In))return Rn.Seq?.(on,In,Mn);if(isPair(In))return Rn.Pair?.(on,In,Mn);if(isScalar$1(In))return Rn.Scalar?.(on,In,Mn);if(isAlias(In))return Rn.Alias?.(on,In,Mn)}function replaceNode(on,In,Rn){const Mn=In[In.length-1];if(isCollection$1(Mn))Mn.items[on]=Rn;else if(isPair(Mn))on==="key"?Mn.key=Rn:Mn.value=Rn;else if(isDocument(Mn))Mn.contents=Rn;else{const Ln=isAlias(Mn)?"alias":"scalar";throw new Error(`Cannot replace node with ${Ln} parent`)}}const escapeChars={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},escapeTagName=on=>on.replace(/[!,[\]{}]/g,In=>escapeChars[In]);class Directives{constructor(In,Rn){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Directives.defaultYaml,In),this.tags=Object.assign({},Directives.defaultTags,Rn)}clone(){const In=new Directives(this.yaml,this.tags);return In.docStart=this.docStart,In}atDocument(){const In=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Directives.defaultTags);break}return In}add(In,Rn){this.atNextDocument&&(this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Directives.defaultTags),this.atNextDocument=!1);const Mn=In.trim().split(/[ \t]+/),Ln=Mn.shift();switch(Ln){case"%TAG":{if(Mn.length!==2&&(Rn(0,"%TAG directive should contain exactly two parts"),Mn.length<2))return!1;const[Hn,jn]=Mn;return this.tags[Hn]=jn,!0}case"%YAML":{if(this.yaml.explicit=!0,Mn.length!==1)return Rn(0,"%YAML directive should contain exactly one part"),!1;const[Hn]=Mn;if(Hn==="1.1"||Hn==="1.2")return this.yaml.version=Hn,!0;{const jn=/^\d+\.\d+$/.test(Hn);return Rn(6,`Unsupported YAML version ${Hn}`,jn),!1}}default:return Rn(0,`Unknown directive ${Ln}`,!0),!1}}tagName(In,Rn){if(In==="!")return"!";if(In[0]!=="!")return Rn(`Not a valid tag: ${In}`),null;if(In[1]==="<"){const jn=In.slice(2,-1);return jn==="!"||jn==="!!"?(Rn(`Verbatim tags aren't resolved, so ${In} is invalid.`),null):(In[In.length-1]!==">"&&Rn("Verbatim tags must end with a >"),jn)}const[,Mn,Ln]=In.match(/^(.*!)([^!]*)$/s);Ln||Rn(`The ${In} tag has no suffix`);const Hn=this.tags[Mn];if(Hn)try{return Hn+decodeURIComponent(Ln)}catch(jn){return Rn(String(jn)),null}return Mn==="!"?In:(Rn(`Could not resolve tag: ${In}`),null)}tagString(In){for(const[Rn,Mn]of Object.entries(this.tags))if(In.startsWith(Mn))return Rn+escapeTagName(In.substring(Mn.length));return In[0]==="!"?In:`!<${In}>`}toString(In){const Rn=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],Mn=Object.entries(this.tags);let Ln;if(In&&Mn.length>0&&isNode(In.contents)){const Hn={};visit$1(In.contents,(jn,Wn)=>{isNode(Wn)&&Wn.tag&&(Hn[Wn.tag]=!0)}),Ln=Object.keys(Hn)}else Ln=[];for(const[Hn,jn]of Mn)Hn==="!!"&&jn==="tag:yaml.org,2002:"||(!In||Ln.some(Wn=>Wn.startsWith(jn)))&&Rn.push(`%TAG ${Hn} ${jn}`);return Rn.join(`
|
|
5181
5181
|
`)}}Directives.defaultYaml={explicit:!1,version:"1.2"};Directives.defaultTags={"!!":"tag:yaml.org,2002:"};function anchorIsValid(on){if(/[\x00-\x19\s,[\]{}]/.test(on)){const Rn=`Anchor must not contain whitespace or control characters: ${JSON.stringify(on)}`;throw new Error(Rn)}return!0}function anchorNames(on){const In=new Set;return visit$1(on,{Value(Rn,Mn){Mn.anchor&&In.add(Mn.anchor)}}),In}function findNewAnchor(on,In){for(let Rn=1;;++Rn){const Mn=`${on}${Rn}`;if(!In.has(Mn))return Mn}}function createNodeAnchors(on,In){const Rn=[],Mn=new Map;let Ln=null;return{onAnchor:Hn=>{Rn.push(Hn),Ln||(Ln=anchorNames(on));const jn=findNewAnchor(In,Ln);return Ln.add(jn),jn},setAnchors:()=>{for(const Hn of Rn){const jn=Mn.get(Hn);if(typeof jn=="object"&&jn.anchor&&(isScalar$1(jn.node)||isCollection$1(jn.node)))jn.node.anchor=jn.anchor;else{const Wn=new Error("Failed to resolve repeated object (this should not happen)");throw Wn.source=Hn,Wn}}},sourceObjects:Mn}}function applyReviver(on,In,Rn,Mn){if(Mn&&typeof Mn=="object")if(Array.isArray(Mn))for(let Ln=0,Hn=Mn.length;Ln<Hn;++Ln){const jn=Mn[Ln],Wn=applyReviver(on,Mn,String(Ln),jn);Wn===void 0?delete Mn[Ln]:Wn!==jn&&(Mn[Ln]=Wn)}else if(Mn instanceof Map)for(const Ln of Array.from(Mn.keys())){const Hn=Mn.get(Ln),jn=applyReviver(on,Mn,Ln,Hn);jn===void 0?Mn.delete(Ln):jn!==Hn&&Mn.set(Ln,jn)}else if(Mn instanceof Set)for(const Ln of Array.from(Mn)){const Hn=applyReviver(on,Mn,Ln,Ln);Hn===void 0?Mn.delete(Ln):Hn!==Ln&&(Mn.delete(Ln),Mn.add(Hn))}else for(const[Ln,Hn]of Object.entries(Mn)){const jn=applyReviver(on,Mn,Ln,Hn);jn===void 0?delete Mn[Ln]:jn!==Hn&&(Mn[Ln]=jn)}return on.call(In,Rn,Mn)}function toJS(on,In,Rn){if(Array.isArray(on))return on.map((Mn,Ln)=>toJS(Mn,String(Ln),Rn));if(on&&typeof on.toJSON=="function"){if(!Rn||!hasAnchor(on))return on.toJSON(In,Rn);const Mn={aliasCount:0,count:1,res:void 0};Rn.anchors.set(on,Mn),Rn.onCreate=Hn=>{Mn.res=Hn,delete Rn.onCreate};const Ln=on.toJSON(In,Rn);return Rn.onCreate&&Rn.onCreate(Ln),Ln}return typeof on=="bigint"&&!Rn?.keep?Number(on):on}class NodeBase{constructor(In){Object.defineProperty(this,NODE_TYPE,{value:In})}clone(){const In=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(In.range=this.range.slice()),In}toJS(In,{mapAsMap:Rn,maxAliasCount:Mn,onAnchor:Ln,reviver:Hn}={}){if(!isDocument(In))throw new TypeError("A document argument is required");const jn={anchors:new Map,doc:In,keep:!0,mapAsMap:Rn===!0,mapKeyWarned:!1,maxAliasCount:typeof Mn=="number"?Mn:100},Wn=toJS(this,"",jn);if(typeof Ln=="function")for(const{count:Yn,res:hi}of jn.anchors.values())Ln(hi,Yn);return typeof Hn=="function"?applyReviver(Hn,{"":Wn},"",Wn):Wn}}class Alias extends NodeBase{constructor(In){super(ALIAS),this.source=In,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(In){let Rn;return visit$1(In,{Node:(Mn,Ln)=>{if(Ln===this)return visit$1.BREAK;Ln.anchor===this.source&&(Rn=Ln)}}),Rn}toJSON(In,Rn){if(!Rn)return{source:this.source};const{anchors:Mn,doc:Ln,maxAliasCount:Hn}=Rn,jn=this.resolve(Ln);if(!jn){const Yn=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(Yn)}let Wn=Mn.get(jn);if(Wn||(toJS(jn,null,Rn),Wn=Mn.get(jn)),!Wn||Wn.res===void 0){const Yn="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(Yn)}if(Hn>=0&&(Wn.count+=1,Wn.aliasCount===0&&(Wn.aliasCount=getAliasCount(Ln,jn,Mn)),Wn.count*Wn.aliasCount>Hn)){const Yn="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(Yn)}return Wn.res}toString(In,Rn,Mn){const Ln=`*${this.source}`;if(In){if(anchorIsValid(this.source),In.options.verifyAliasOrder&&!In.anchors.has(this.source)){const Hn=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(Hn)}if(In.implicitKey)return`${Ln} `}return Ln}}function getAliasCount(on,In,Rn){if(isAlias(In)){const Mn=In.resolve(on),Ln=Rn&&Mn&&Rn.get(Mn);return Ln?Ln.count*Ln.aliasCount:0}else if(isCollection$1(In)){let Mn=0;for(const Ln of In.items){const Hn=getAliasCount(on,Ln,Rn);Hn>Mn&&(Mn=Hn)}return Mn}else if(isPair(In)){const Mn=getAliasCount(on,In.key,Rn),Ln=getAliasCount(on,In.value,Rn);return Math.max(Mn,Ln)}return 1}const isScalarValue=on=>!on||typeof on!="function"&&typeof on!="object";class Scalar extends NodeBase{constructor(In){super(SCALAR$1),this.value=In}toJSON(In,Rn){return Rn?.keep?this.value:toJS(this.value,In,Rn)}toString(){return String(this.value)}}Scalar.BLOCK_FOLDED="BLOCK_FOLDED";Scalar.BLOCK_LITERAL="BLOCK_LITERAL";Scalar.PLAIN="PLAIN";Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE";Scalar.QUOTE_SINGLE="QUOTE_SINGLE";const defaultTagPrefix="tag:yaml.org,2002:";function findTagObject(on,In,Rn){if(In){const Mn=Rn.filter(Hn=>Hn.tag===In),Ln=Mn.find(Hn=>!Hn.format)??Mn[0];if(!Ln)throw new Error(`Tag ${In} not found`);return Ln}return Rn.find(Mn=>Mn.identify?.(on)&&!Mn.format)}function createNode(on,In,Rn){if(isDocument(on)&&(on=on.contents),isNode(on))return on;if(isPair(on)){const gi=Rn.schema[MAP].createNode?.(Rn.schema,null,Rn);return gi.items.push(on),gi}(on instanceof String||on instanceof Number||on instanceof Boolean||typeof BigInt<"u"&&on instanceof BigInt)&&(on=on.valueOf());const{aliasDuplicateObjects:Mn,onAnchor:Ln,onTagObj:Hn,schema:jn,sourceObjects:Wn}=Rn;let Yn;if(Mn&&on&&typeof on=="object"){if(Yn=Wn.get(on),Yn)return Yn.anchor||(Yn.anchor=Ln(on)),new Alias(Yn.anchor);Yn={anchor:null,node:null},Wn.set(on,Yn)}In?.startsWith("!!")&&(In=defaultTagPrefix+In.slice(2));let hi=findTagObject(on,In,jn.tags);if(!hi){if(on&&typeof on.toJSON=="function"&&(on=on.toJSON()),!on||typeof on!="object"){const gi=new Scalar(on);return Yn&&(Yn.node=gi),gi}hi=on instanceof Map?jn[MAP]:Symbol.iterator in Object(on)?jn[SEQ]:jn[MAP]}Hn&&(Hn(hi),delete Rn.onTagObj);const vi=hi?.createNode?hi.createNode(Rn.schema,on,Rn):typeof hi?.nodeClass?.from=="function"?hi.nodeClass.from(Rn.schema,on,Rn):new Scalar(on);return In?vi.tag=In:hi.default||(vi.tag=hi.tag),Yn&&(Yn.node=vi),vi}function collectionFromPath(on,In,Rn){let Mn=Rn;for(let Ln=In.length-1;Ln>=0;--Ln){const Hn=In[Ln];if(typeof Hn=="number"&&Number.isInteger(Hn)&&Hn>=0){const jn=[];jn[Hn]=Mn,Mn=jn}else Mn=new Map([[Hn,Mn]])}return createNode(Mn,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:on,sourceObjects:new Map})}const isEmptyPath=on=>on==null||typeof on=="object"&&!!on[Symbol.iterator]().next().done;class Collection extends NodeBase{constructor(In,Rn){super(In),Object.defineProperty(this,"schema",{value:Rn,configurable:!0,enumerable:!1,writable:!0})}clone(In){const Rn=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return In&&(Rn.schema=In),Rn.items=Rn.items.map(Mn=>isNode(Mn)||isPair(Mn)?Mn.clone(In):Mn),this.range&&(Rn.range=this.range.slice()),Rn}addIn(In,Rn){if(isEmptyPath(In))this.add(Rn);else{const[Mn,...Ln]=In,Hn=this.get(Mn,!0);if(isCollection$1(Hn))Hn.addIn(Ln,Rn);else if(Hn===void 0&&this.schema)this.set(Mn,collectionFromPath(this.schema,Ln,Rn));else throw new Error(`Expected YAML collection at ${Mn}. Remaining path: ${Ln}`)}}deleteIn(In){const[Rn,...Mn]=In;if(Mn.length===0)return this.delete(Rn);const Ln=this.get(Rn,!0);if(isCollection$1(Ln))return Ln.deleteIn(Mn);throw new Error(`Expected YAML collection at ${Rn}. Remaining path: ${Mn}`)}getIn(In,Rn){const[Mn,...Ln]=In,Hn=this.get(Mn,!0);return Ln.length===0?!Rn&&isScalar$1(Hn)?Hn.value:Hn:isCollection$1(Hn)?Hn.getIn(Ln,Rn):void 0}hasAllNullValues(In){return this.items.every(Rn=>{if(!isPair(Rn))return!1;const Mn=Rn.value;return Mn==null||In&&isScalar$1(Mn)&&Mn.value==null&&!Mn.commentBefore&&!Mn.comment&&!Mn.tag})}hasIn(In){const[Rn,...Mn]=In;if(Mn.length===0)return this.has(Rn);const Ln=this.get(Rn,!0);return isCollection$1(Ln)?Ln.hasIn(Mn):!1}setIn(In,Rn){const[Mn,...Ln]=In;if(Ln.length===0)this.set(Mn,Rn);else{const Hn=this.get(Mn,!0);if(isCollection$1(Hn))Hn.setIn(Ln,Rn);else if(Hn===void 0&&this.schema)this.set(Mn,collectionFromPath(this.schema,Ln,Rn));else throw new Error(`Expected YAML collection at ${Mn}. Remaining path: ${Ln}`)}}}const stringifyComment=on=>on.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(on,In){return/^\n+$/.test(on)?on.substring(1):In?on.replace(/^(?! *$)/gm,In):on}const lineComment=(on,In,Rn)=>on.endsWith(`
|
|
5182
5182
|
`)?indentComment(Rn,In):Rn.includes(`
|
|
5183
5183
|
`)?`
|
|
@@ -5630,4 +5630,4 @@ ${Rn.comment}`:Rn.comment}this.doc.range[2]=Rn.offset;break}default:this.errors.
|
|
|
5630
5630
|
bottom: 0;
|
|
5631
5631
|
left: 0;
|
|
5632
5632
|
margin: auto;
|
|
5633
|
-
`,Providers=reactExports.lazy(()=>__vitePreload(()=>import("./context-providers.a6cbd8ae.-xn453sc.js").then(on=>on.y),__vite__mapDeps([0,1,2,3]),import.meta.url));function Shell(){return window.appNamespace=IS_RUNNING_IN_CLOUD||IS_RUNNING_IN_ELECTRON?"":createAppNamespace(),jsx$1(ThemeProvider,{children:jsx$1(AppLoader,{children:jsx$1(reactExports.Suspense,{children:jsx$1(Providers,{})})})})}function createAppNamespace(){return createHash(extractAppUrlPath(window.location)).slice(0,8)}var client={},hasRequiredClient;function requireClient(){if(hasRequiredClient)return client;hasRequiredClient=1;var on=requireReactDom();return client.createRoot=on.createRoot,client.hydrateRoot=on.hydrateRoot,client}var clientExports=requireClient();clientExports.createRoot(document.getElementById(ROOT_CONTAINER_ID)).render(jsx$1(Shell,{}));export{useFormControl as $,useSlot as A,styled as B,memoTheme as C,getTransitionProps as D,ButtonGroupContext as E,ButtonGroupButtonContext as F,capitalize as G,createSimplePaletteValueFilter as H,ButtonBase as I,Typography as J,typographyClasses as K,createSvgIcon as L,mergeSlotProps$1 as M,rootShouldForwardProp as N,getReactElementRef as O,Paper as P,useEventCallback as Q,React$1 as R,SwitchBase as S,THEME_ID as T,ownerDocument$1 as U,debounce$2 as V,ownerWindow as W,reflow as X,useRtl as Y,Modal$1 as Z,_inheritsLoose as _,useTheme$3 as a,useSubject as a$,formControlState as a0,FormControlContext as a1,css as a2,keyframes as a3,getPath as a4,alpha as a5,isFocusVisible as a6,ListContext as a7,ListItemSecondaryAction as a8,isHostComponent as a9,Button as aA,DialogActions as aB,Chip as aC,List$2 as aD,Dialog$1 as aE,dialogClasses as aF,DialogContent as aG,Divider as aH,getDateRangePickerDayUtilityClass as aI,dateRangePickerDayClasses as aJ,getDateRangeCalendarUtilityClass as aK,dateRangeCalendarClasses as aL,isFunction$2 as aM,setValue as aN,HEADER_SET_COOKIE as aO,HEADER_AUTHORIZATION as aP,encodeBase64$1 as aQ,HEADER_CONTENT_TYPE as aR,HEADER_USER_AGENT as aS,HEADER_ACCEPT_ENCODING as aT,isURL as aU,gu as aV,fr$1 as aW,formatLongDate as aX,formatShortTime as aY,nanoid as aZ,getEntityByKey as a_,getListItemIconUtilityClass as aa,getListItemTextUtilityClass as ab,listItemTextClasses as ac,useControlled as ad,SvgIcon as ae,IconButton as af,KeyboardArrowRight as ag,KeyboardArrowLeft as ah,useId as ai,InputBase as aj,MenuItem$1 as ak,Toolbar$1 as al,Select$1 as am,useSlotProps as an,MenuList as ao,shouldForwardProp as ap,InputLabel as aq,FormHelperText as ar,FormControl as as,TextField as at,resolveComponentProps as au,Fade as av,TransitionGroup as aw,Grow as ax,FocusTrap$1 as ay,Popper as az,reactExports as b,getOperationsResponseEditor as b$,useForceUpdate as b0,jsx$1 as b1,useComponentsContainer as b2,Menu as b3,MenuItem as b4,toast as b5,TEN_SECONDS as b6,ToastMessage as b7,jsxs as b8,Fragment as b9,RelativeDateTimeRange as bA,useRequiredService as bB,isStructuralItem as bC,getItemPathItems as bD,sendMessage as bE,ANALYZE_DOCUMENT_MESSAGE as bF,graphQLEngineSchedulerClient as bG,DOCUMENT_ANALYZED_MESSAGE as bH,registerReceiveMessage as bI,SCHEMA_INDEXED_MESSAGE as bJ,ItemStore as bK,TabViewStateStore as bL,SchemaErrorCache as bM,ServiceDependencyProvider as bN,EditorContainer as bO,useRefWithInitializer as bP,COMMON_MODEL_OPTIONS as bQ,usePreferencesObservable as bR,COMMON_EDITOR_OPTIONS as bS,editorRegistry as bT,useEditorResizeObserverById as bU,useDebouncedCallback as bV,injectMonacoContextMenuStyle as bW,useFocusedElementObservable as bX,VARIABLES_EDITOR_FOCUS_ID as bY,getOperationsVariablesEditor as bZ,RESPONSE_EDITOR_FOCUS_ID as b_,ITEM_KIND_FOLDER as ba,ITEM_KIND_FILE as bb,ITEM_KIND_BASIC_DOCUMENT as bc,ITEM_KIND_API_DOCUMENT as bd,ITEM_KIND_API as be,ToastContentParagraph as bf,ToastContentList as bg,ToastContentListItem as bh,relayRuntimeExports as bi,relayEnvironment as bj,ASTNodeKind as bk,OperationDocumentKeys as bl,printBlockString as bm,printString as bn,useObservableValue as bo,useItemStore as bp,isApiItem as bq,useObservableValueWithSelector as br,isApiDocumentItem as bs,isStructuralDocumentItem as bt,SimpleCache as bu,ItemChangeAction as bv,isDocumentItem as bw,ApiKind as bx,createHash as by,applyObjectChanges as bz,createStyled as c,RENAMED_ITEM_MESSAGE as c$,OPERATIONS_EDITOR_FOCUS_ID as c0,getOperationsEditor as c1,WORKSPACE_SYNCHRONIZED_MESSAGE as c2,useAppendLogEntry as c3,useResolvedEnvironmentVariables as c4,getConnectionSettings as c5,updateHttpConnectionSettings as c6,CONNECTION_SETTINGS_UPDATED_MESSAGE as c7,isAbortError as c8,LogLevel as c9,useTabViewStateStore as cA,useActiveEnvironmentIdObservable as cB,useWorkspaceIdObservable as cC,createHistoricalDocumentItem as cD,OPERATION_REQUEST_SUCCEEDED_KIND as cE,OPERATION_REQUEST_STARTED_KIND as cF,OPERATION_REQUEST_FAILED_KIND as cG,OPERATION_REQUEST_CANCELLED_KIND as cH,useActivatePreviewTab as cI,SUBSCRIPTION_REQUEST_STOPPED_LOG_ENTRY_KIND as cJ,diff$1 as cK,SUBSCRIPTION_REQUEST_MESSAGE_LOG_ENTRY_KIND as cL,SUBSCRIPTION_REQUEST_STARTED_LOG_ENTRY_KIND as cM,HEADER_FUSION_OPERATION_PLAN as cN,HTTP_RESPONSE_FINISHED_LOG_ENTRY_KIND as cO,HTTP_RESPONSE_FAILED_LOG_ENTRY_KIND as cP,HTTP_RESPONSE_CANCELLED_LOG_ENTRY_KIND as cQ,HTTP_RESPONSE_LOG_ENTRY_KIND as cR,HTTP_REQUEST_LOG_ENTRY_KIND as cS,createId as cT,ACTIVATED_WORKSPACE_MESSAGE as cU,useCurrentValue as cV,deleteVariableJsonSchema as cW,unregisterEditorSchemas as cX,TWENTY_FIVE_MILLISECONDS as cY,DELETED_ITEMS_MESSAGE as cZ,MOVED_ITEMS_MESSAGE as c_,OAUTH_2_AUTHENTICATION_FLOW as ca,interpolateAuthentication as cb,ONE_SECOND$1 as cc,now as cd,createAuthHeaderValue as ce,authorizeAndGetToken as cf,createNamedContext as cg,createSubject as ch,isBasicDocumentItem as ci,useActiveApiStageObservable as cj,useActivateApiStage as ck,noop$2 as cl,useSelector as cm,CONTEXT_NOT_INITIALIZED as cn,global$1 as co,useSelectionObservable as cp,IS_MAC_LIKE as cq,THEME_COLORS as cr,ChevronDownIcon as cs,ChevronRightIcon as ct,OperationType as cu,getLocation as cv,getInnerType as cw,createSchemaMemberCoordinate as cx,parseExecutableDocument as cy,SCHEMA_UPDATED_MESSAGE as cz,useEnhancedEffect as d,useSignOutOfCurrentSession as d$,createModelUri as d0,getVariableJsonSchema as d1,registerEditorSchemas as d2,useActiveTabIdObservable as d3,useIsOnlineObservable as d4,SIGNED_IN_MESSAGE as d5,SIGNED_OUT_MESSAGE as d6,OAUTH_MESSAGE as d7,isSigninRedirect as d8,isOAuth2RedirectUrl as d9,OS_NAME as dA,dayjs as dB,requireDayjs_min as dC,useActiveModal as dD,createFileItems as dE,validateStructuralItemName as dF,equals as dG,RemoteDialog as dH,MediaFileIcon as dI,TooltipIconButton as dJ,CloseIcon as dK,Input as dL,useOpenDialog as dM,useIsOrganizationalWorkspace as dN,Alert as dO,Box as dP,ApiCollectionIcon as dQ,ApiServiceIcon as dR,ApiGatewayIcon as dS,AddIcon as dT,useSynchronizeWorkspace as dU,useUpdateTabViewState as dV,ExternalLinkIcon as dW,useSignIn as dX,Group as dY,Label as dZ,Form as d_,AppEssentialsLoaded as da,CircleCheckIcon as db,requireReact as dc,requireRelayRuntime as dd,requireBrowser as de,requireAreEqual as df,requireWarning as dg,graphQLIndexerSchedulerClient as dh,IS_RUNNING_IN_ELECTRON as di,FIVE_MINUTES as dj,getShell as dk,LOG_ENTRY_ACTIVATED_MESSAGE as dl,setShell as dm,FIFTY_MILLISECONDS as dn,RefreshIcon as dp,formatFullDateTime as dq,WarningIcon as dr,FailureIcon as ds,SuccessIcon as dt,usePreset as du,SIX_HOURS as dv,getTelemetry as dw,setTelemetry as dx,APP_VERSION$1 as dy,APP_TYPE as dz,extendSxProp$1 as e,ToastFooter as e$,useCreateUserAccount as e0,useActiveSession as e1,triggerCancelAccountCreationNotification as e2,triggerCreateAccountNotification as e3,DialogContentTitle as e4,useSignOutAll as e5,DialogContentSubtitle as e6,FooterSection as e7,useIsOnline as e8,OnlineIcon as e9,useActivateEnvironment as eA,useEnvironments as eB,EnvironmentIcon as eC,SPIN_ANIMATION as eD,wellKnownShortcuts as eE,useResizeObserver as eF,reactDomExports as eG,useWorkspaceStateSubject as eH,useWorkspaceId as eI,useActivateNode as eJ,createFolderItem as eK,useSubjectNext as eL,renameItem as eM,isBranchItemKind as eN,deleteItem as eO,moveItem as eP,useObservableSelector as eQ,createDocumentId as eR,createFolderId as eS,createApiId as eT,useForwardedRef as eU,SearchIcon as eV,TaskFailedError as eW,MigrationFailedError as eX,sessionSchedulerClient as eY,containsApi as eZ,useActivateLogEntry as e_,OfflineIcon as ea,useUserName as eb,AccountIcon as ec,useMenu as ed,useSessions as ee,useActivateSession as ef,useIsBoundToOrganization as eg,OrganizationIcon as eh,CheckIcon as ei,LinkIcon as ej,useActiveWorkspace as ek,useActivateWorkspace as el,useWorkspaces as em,useWorkspaceSynchronizing as en,PERSONAL_WORKSPACE_TENANT as eo,WorkspaceIcon as ep,SyncIcon as eq,useLogStats as er,useShortcut as es,createTooltipTitleWithShortcut as et,InfoIcon as eu,useOpenSettingsTab as ev,ShortcutsIcon as ew,HelpIcon as ex,Tooltip as ey,useActiveEnvironment as ez,clsx$1 as f,ErrorBoundary as f$,getChildrenByFilter as f0,isNameTaken as f1,getAllBranchItems as f2,Select as f3,useSignInState as f4,useOpenConnectionSettingsDialog as f5,isFileItemKind as f6,isFolderItemKind as f7,useDuplicateApi as f8,useDuplicateDocument as f9,ApiCollectionFolderOpenedIcon as fA,ApiServiceFolderOpenedIcon as fB,ApiGatewayFolderOpenedIcon as fC,ApiCollectionFolderIcon as fD,ApiServiceFolderIcon as fE,ApiGatewayFolderIcon as fF,useDeleteEnvironment as fG,getEnvironmentItems as fH,validateEnvironmentItemName as fI,ITEM_KIND_ENVIRONMENT as fJ,createEnvironmentId as fK,useDuplicateEnvironment as fL,useOpenAndSaveNewEnvironmentTab as fM,useRenameEnvironment as fN,NewEnvironmentIcon as fO,useCloseAllHistoryTabs as fP,clearHistoryItems as fQ,getHistoryItemDayGroupKeys as fR,getHistoryItemsByDay as fS,ClearIcon as fT,NoHistoryAvailableContent as fU,HistoryIcon as fV,CalendarIcon as fW,CancellationIcon as fX,AsideSection as fY,THREE_HUNDRED_MILLISECONDS as fZ,CircularProgress as f_,isApiItemKind as fa,useIsUserSignedIn as fb,useActiveNodeIdObservable as fc,useOpenAndSaveNewApiTab as fd,useOpenAndSaveNewDocumentTab as fe,useOpenTab as ff,useOpenTabAsPreview as fg,useSaveAndCloseNewTab as fh,useSaveNewTab as fi,useSignInActiveSession as fj,AsideHeaderSection as fk,SectionHeading as fl,SectionHeaderSpace as fm,ButtonGroup as fn,CollapseAllIcon as fo,AsideControlSection as fp,SigningInContent as fq,AsideContentSection as fr,ExplorerIcon as fs,EmptyContent as ft,FolderOpenedIcon as fu,NewFolderIcon as fv,FolderIcon as fw,NewDocumentIcon as fx,DocumentIcon as fy,NewApiIcon as fz,getDefaultExportFromCjs as g,JsonIcon as g$,ConsoleSection as g0,useActiveTabNameObservable as g1,APP_NAME as g2,useWorkspaceNameObservable as g3,SVGIcon as g4,SidebarSection as g5,useIsUserAccountMissing as g6,SettingsIcon as g7,useActiveApiMetricsDateTimeRange as g8,useHttpSchemaEndpointObservable as g9,ColumnHeader as gA,ColumnSeparator as gB,ColumnContent as gC,Section as gD,menuItemClasses as gE,TooltipButton as gF,ListSubheader as gG,DateTimeRangeFactory as gH,isRelativeDateTimeRange as gI,useUpdateApiMetricsDateTimeRange as gJ,SectionBreadcrumb as gK,ColumnHeaderInfo as gL,useMoreBreadcrumbs as gM,BreadcrumbItemSize as gN,formatShortDateTime as gO,formatDurationNumber as gP,useActiveMonitoringViewId as gQ,useActivateMonitoringViewId as gR,NoMetricsAvailableContent as gS,convertEpochToISOString as gT,FONT_FAMILY_CODE as gU,FONT_WEIGHT_CODE as gV,FONT_SIZE_CODE_IN_PIXEL as gW,LINE_HEIGHT_CODE_IN_PIXEL as gX,formatRelativeTime as gY,HttpIcon as gZ,HttpClientRequestIcon as g_,useSchemaErrorCache as ga,useInterpolateValue as gb,DEFAULT_SCHEMA_INFO as gc,useActiveApiKindObservable as gd,useSyncStore as ge,BreadcrumbItem as gf,ScrollbarNext as gg,BreadcrumbsList as gh,useOpenSchemaErrorDialog as gi,isServerNotReachableError as gj,SchemaErrorDialog as gk,PULSE_SHORT_ANIMATION as gl,useActiveTabIdOrThrow as gm,useInitialSchemaSdlEditorViewState as gn,disableCertainDefaultShortcuts as go,SchemaLoadingContent as gp,useActiveTabId as gq,TWO_HUNDRED_FIFTY_MILLISECONDS as gr,ReactDOM as gs,F as gt,useThemeNameObservable as gu,useGetComputedThemeValue as gv,init$1 as gw,FONT_SIZE_IN_PIXEL as gx,FONT_FAMILY as gy,formatCompactNumber as gz,composeClasses as h,useCurrentIsEnumValuesInfoCollapsed as h$,GraphQLIcon as h0,DatabaseIcon as h1,formatPercentNumber as h2,clamp$1 as h3,getApiItemByRemoteId as h4,useLazyRef as h5,useOnMount as h6,inputBaseClasses as h7,lighten as h8,darken as h9,EnumTypeIcon as hA,isScalar$2 as hB,isEnum as hC,FieldTypeIcon as hD,EnumValueTypeIcon as hE,DirectiveIcon as hF,ArgumentTypeIcon as hG,ShowSecretIcon as hH,HideSecretIcon as hI,useHideDeprecatedItemsInSchemaReference as hJ,useShowInaccessibleItemsInSchemaReference as hK,RelayTypeIcon as hL,useCurrentIsSdlPreviewInfoCollapsed as hM,useActiveApiKind as hN,parseSchemaCoordinate as hO,createSchemaDirectiveCoordinate as hP,FilterIcon as hQ,ArrowUpIcon as hR,ArrowDownIcon as hS,NoStageSelectedContent as hT,NoCoordinateSelectedContent as hU,ColumnControls as hV,SchemaIndexingContent as hW,SchemaUnavailableContent as hX,ColumnBreadcrumbs as hY,Column as hZ,useCurrentIsArgumentTypeInfoCollapsed as h_,Switch as ha,Badge as hb,Autocomplete as hc,Tabs as hd,Tab as he,iconButtonClasses as hf,FlyoutSection as hg,OperationPreviewEditor as hh,TWO_SECONDS as hi,CopyIcon as hj,ChevronUpIcon as hk,useMoreTabs as hl,PlainTextEditor as hm,NoLogsAvailableContent as hn,Spinner$1 as ho,formatDecimalNumber as hp,StageUnavailableContent as hq,useActiveApiStage as hr,useActivateApiOperation as hs,useForceRender as ht,renderMarkdown as hu,ObjectTypeIcon as hv,UnionTypeIcon as hw,ScalarTypeIcon as hx,InterfaceTypeIcon as hy,InputObjectTypeIcon as hz,isMuiElement as i,beautifyEndpoint as i$,useCurrentIsFieldArgumentsInfoCollapsed as i0,useCurrentIsFieldReturnTypeInfoCollapsed as i1,NoDetailsAvailableContent as i2,useActiveSchemaReferenceViewId as i3,useActiveSchemaViewId as i4,DownloadIcon as i5,ColumnHeaderInfoDescValuePair as i6,ColumnHeaderInfoValue as i7,ColumnHeaderInfoDesc as i8,ListViewIcon as i9,useActivateApiDeploymentId as iA,TagIcon as iB,useActiveApiDeploymentId as iC,distinct as iD,useActivateApiResolver as iE,OperationsIcon as iF,ResolversIcon as iG,useActivateApiTransaction as iH,useActiveApiOperation as iI,useActiveApiResolver as iJ,useActiveApiTransaction as iK,NeutralIcon as iL,DecreaseIcon as iM,IncreaseIcon as iN,sentiment as iO,direction as iP,useActiveApiSchemaChangelogId as iQ,useActivateApiSchemaChangelogViewId as iR,LogIcon as iS,DiffIcon as iT,useActivateApiSchemaChangelogId as iU,YAML as iV,useActiveApiKindDraft as iW,useActiveApiViewId as iX,useActiveTabRemoteId as iY,useInterpolatedValue as iZ,useHttpSchemaEndpoint as i_,ColumnViewIcon as ia,getAllFolderItems as ib,useOpenNewDocumentTabFromCurl as ic,useDiscardAndCloseTab as id,useRevertAndCloseTab as ie,useSaveAndCloseTab as ig,useSaveTab as ih,useIsActiveTabNewOrHistory as ii,useConnectionSettings as ij,useSignInStateObservable as ik,useChangeApiKind as il,ClientUnavailableContent as im,NoClientVersionAvailableContent as io,NoChangesIcon as ip,useActivateApiClientId as iq,AutoLoadMoreButton as ir,QuestionIcon as is,useActiveApiClientId as it,getHttpOptions as iu,LoadMoreButton as iv,useActiveApiSchemaChangelogViewId as iw,CancelIcon as ix,VerifiedIcon as iy,QueuedIcon as iz,jsxRuntimeExports as j,YamlIcon as j$,ColumnHeaderInfoIcon as j0,SecureIcon as j1,UnsecureIcon as j2,ColumnHeaderInfoSingleValue as j3,HTTP_SECURE_SCHEME_PATTERN as j4,useActivateApiViewId as j5,EditIcon as j6,MainBreadcrumbsSection as j7,MainControlSection as j8,MainContentSection as j9,useInitialVariablesEditorViewState as jA,useIsOperationsSettingsPaneCollapsedObservable as jB,useInitialOperationsSettingsPaneHeight as jC,useInitialResponseEditorViewState as jD,stringifyValue as jE,NoResponsesYetContent as jF,ListLineEndActiveIcon as jG,ListLineEndIcon as jH,ListLineMiddleActiveIcon as jI,ListLineMiddleIcon as jJ,MessageIcon as jK,formatLongTime as jL,getDuration as jM,ListNoChildrenActiveIcon as jN,ListNoChildrenIcon as jO,GoToLogEntryButton as jP,useIsResponseEntriesPaneCollapsed as jQ,JsonEditor as jR,useOpenNewDocumentTab as jS,useQueryPlanEnabled as jT,QueryPlanIcon as jU,useEnableQueryPlan as jV,useCurrentOperationPlanPositions as jW,useCurrentOperationPlanViewport as jX,useActiveResponseViewId as jY,useActiveResponseViewFormat as jZ,getSize$2 as j_,useShowIntrospectionFieldsInOperationBuilderObservable as ja,createNameNode as jb,createTokenWithValue as jc,TokenKind as jd,ONE_HUNDRED_MILLISECONDS as je,IntrospectionFieldIcon as jf,useCurrentIsTypePossibleTypesInfoCollapsed as jg,useCurrentIsTypeImplementsInfoCollapsed as jh,useCurrentIsSelectionPathInfoCollapsed as ji,PathDownIcon as jj,useUpdateConnectionSettings as jk,useAuthorizationHeaderValue as jl,useHttpHeaders as jm,HttpHeaders as jn,TWO_HUNDRED_MILLISECONDS as jo,CompletionItemKind$1 as jp,THIRTY_SECONDS as jq,TWO_MINUTES as jr,useInitialOperationsEditorViewState as js,useIsOperationsSettingsPaneCollapsed as jt,useActiveOperationsSettingsViewId as ju,FoldUpIcon as jv,FoldDownIcon as jw,useActiveOperation as jx,FormatIcon as jy,StartIcon as jz,generateUtilityClass as k,useTabIds as k$,useIsResponseEntriesPaneCollapsedObservable as k0,useInitialResponseEntriesPaneHeight as k1,useActiveOperationCompanionViewId as k2,useIsOperationSidebarCollapsed as k3,useActivateOperationCompanionView as k4,useActiveViewId as k5,KeyIcon as k6,VerticalDragHandleIcon as k7,createVariableId as k8,UncontrolledToggle as k9,Toggle as kA,LightModeIcon as kB,DarkModeIcon as kC,usePreferences as kD,useSetPreference as kE,FormLabel as kF,useActiveSettingsViewId as kG,PreferencesIcon as kH,AppearanceIcon as kI,OrganizationsIcon as kJ,useActiveSettingsIsBillingSectionCollapsed as kK,DEFAULT_TAB_VIEW_STATE_VALUES as kL,MembersIcon as kM,IdentityCardIcon as kN,AuditLogIcon as kO,useOpenNewApiTab as kP,useOpenNewEnvironmentTab as kQ,useBeautifiedHttpEndpoint as kR,useTab as kS,isApiTab as kT,HasChangesIcon as kU,isDocumentTab as kV,isEnvironmentTab as kW,isUserSettingsTab as kX,useGetTabById as kY,useCopyDocumentToClipboard as kZ,useDuplicateTab as k_,useInitialVariableCollectionState as ka,useUpdateEnvironmentVariables as kb,getVariableCollection as kc,CreditCardIcon as kd,useActiveSettingsGroupId as ke,ArrowLeftIcon as kf,useActiveSettingsMemberId as kg,MoreActionsIcon as kh,useSignOut as ki,triggerErrorNotification as kj,useReloadWorkspaces as kk,upsertWorkspace as kl,validateName$1 as km,deleteWorkspace as kn,useActiveWorkspaceObservable as ko,getItemNameByRemoteId as kp,useDatabaseVersion as kq,getDatabaseName as kr,COMPANY_URL as ks,COMPANY_NAME as kt,APP_LICENSE as ku,APP_LICENSE_URL as kv,useThemeSettings as kw,useUpdateThemeSettings as kx,GROUPED_THEMES as ky,LabelDescription as kz,createTheme$1 as l,usePreviewTabId as l0,useHasActiveTabChanges as l1,useTabIdKindPairs as l2,useActivateTab as l3,SaveIcon as l4,useMoveTab as l5,SETTINGS_TAB_KIND as l6,ENVIRONMENT_TAB_KIND as l7,DOCUMENT_TAB_KIND as l8,API_TAB_KIND as l9,useUpdateFollowNewest as lA,getSubscriptionTransport as lB,useCollapseLogScope as lC,useExpandLogScope as lD,RunningIcon as lE,GoToItemIcon as lF,ITEM_KIND_NEW_ENVIRONMENT as lG,ITEM_KIND_HISTORICAL_DOCUMENT as lH,ITEM_KIND_NEW_DOCUMENT as lI,ITEM_KIND_NEW_API as lJ,useDeactivateLogEntry as lK,tryParseJsonString as lL,useActiveLogEntry as lM,useHasLogEntries as lN,useClearLog as lO,ConsoleControlSection as lP,ConsoleContentSection as lQ,useActiveLogEntryId as lR,useCurrentActiveTabKind as la,useActiveEnvironmentId as lb,MainHeaderSection as lc,VariableCollectionProvider as ld,MainSection as le,EmptyMainSection as lf,ConnectionSettingsDialog as lg,GlobalStyles as lh,Bounce as li,ToastContainer as lj,modalApi as lk,isMigrationFailedError as ll,deleteDatabase as lm,TextArea as ln,APP_AGENT as lo,LogProvider as lp,NetworkProvider as lq,DataMigrationProvider as lr,PresetProvider as ls,SessionProvider as lt,SettingsProvider as lu,WorkspaceProvider as lv,EnvironmentProvider as lw,TabProvider as lx,ConnectionSettingsProvider as ly,useLog as lz,defaultTheme$1 as m,forceReflow as n,_objectWithoutPropertiesLoose$1 as o,React as p,Transition as q,resolveProps$1 as r,_extends$1 as s,generateUtilityClasses as t,useTheme$2 as u,useDefaultProps as v,duration as w,useTheme as x,useTimeout as y,useForkRef$1 as z};
|
|
5633
|
+
`,Providers=reactExports.lazy(()=>__vitePreload(()=>import("./context-providers.32393d3f.4lja1-Yv.js").then(on=>on.y),__vite__mapDeps([0,1,2,3]),import.meta.url));function Shell(){return window.appNamespace=IS_RUNNING_IN_CLOUD||IS_RUNNING_IN_ELECTRON?"":createAppNamespace(),jsx$1(ThemeProvider,{children:jsx$1(AppLoader,{children:jsx$1(reactExports.Suspense,{children:jsx$1(Providers,{})})})})}function createAppNamespace(){return createHash(extractAppUrlPath(window.location)).slice(0,8)}var client={},hasRequiredClient;function requireClient(){if(hasRequiredClient)return client;hasRequiredClient=1;var on=requireReactDom();return client.createRoot=on.createRoot,client.hydrateRoot=on.hydrateRoot,client}var clientExports=requireClient();clientExports.createRoot(document.getElementById(ROOT_CONTAINER_ID)).render(jsx$1(Shell,{}));export{useFormControl as $,useSlot as A,styled as B,memoTheme as C,getTransitionProps as D,ButtonGroupContext as E,ButtonGroupButtonContext as F,capitalize as G,createSimplePaletteValueFilter as H,ButtonBase as I,Typography as J,typographyClasses as K,createSvgIcon as L,mergeSlotProps$1 as M,rootShouldForwardProp as N,getReactElementRef as O,Paper as P,useEventCallback as Q,React$1 as R,SwitchBase as S,THEME_ID as T,ownerDocument$1 as U,debounce$2 as V,ownerWindow as W,reflow as X,useRtl as Y,Modal$1 as Z,_inheritsLoose as _,useTheme$3 as a,useSubject as a$,formControlState as a0,FormControlContext as a1,css as a2,keyframes as a3,getPath as a4,alpha as a5,isFocusVisible as a6,ListContext as a7,ListItemSecondaryAction as a8,isHostComponent as a9,Button as aA,DialogActions as aB,Chip as aC,List$2 as aD,Dialog$1 as aE,dialogClasses as aF,DialogContent as aG,Divider as aH,getDateRangePickerDayUtilityClass as aI,dateRangePickerDayClasses as aJ,getDateRangeCalendarUtilityClass as aK,dateRangeCalendarClasses as aL,isFunction$2 as aM,setValue as aN,HEADER_SET_COOKIE as aO,HEADER_AUTHORIZATION as aP,encodeBase64$1 as aQ,HEADER_CONTENT_TYPE as aR,HEADER_USER_AGENT as aS,HEADER_ACCEPT_ENCODING as aT,isURL as aU,gu as aV,fr$1 as aW,formatLongDate as aX,formatShortTime as aY,nanoid as aZ,getEntityByKey as a_,getListItemIconUtilityClass as aa,getListItemTextUtilityClass as ab,listItemTextClasses as ac,useControlled as ad,SvgIcon as ae,IconButton as af,KeyboardArrowRight as ag,KeyboardArrowLeft as ah,useId as ai,InputBase as aj,MenuItem$1 as ak,Toolbar$1 as al,Select$1 as am,useSlotProps as an,MenuList as ao,shouldForwardProp as ap,InputLabel as aq,FormHelperText as ar,FormControl as as,TextField as at,resolveComponentProps as au,Fade as av,TransitionGroup as aw,Grow as ax,FocusTrap$1 as ay,Popper as az,reactExports as b,getOperationsResponseEditor as b$,useForceUpdate as b0,jsx$1 as b1,useComponentsContainer as b2,Menu as b3,MenuItem as b4,toast as b5,TEN_SECONDS as b6,ToastMessage as b7,jsxs as b8,Fragment as b9,RelativeDateTimeRange as bA,useRequiredService as bB,isStructuralItem as bC,getItemPathItems as bD,sendMessage as bE,ANALYZE_DOCUMENT_MESSAGE as bF,graphQLEngineSchedulerClient as bG,DOCUMENT_ANALYZED_MESSAGE as bH,registerReceiveMessage as bI,SCHEMA_INDEXED_MESSAGE as bJ,ItemStore as bK,TabViewStateStore as bL,SchemaErrorCache as bM,ServiceDependencyProvider as bN,EditorContainer as bO,useRefWithInitializer as bP,COMMON_MODEL_OPTIONS as bQ,usePreferencesObservable as bR,COMMON_EDITOR_OPTIONS as bS,editorRegistry as bT,useEditorResizeObserverById as bU,useDebouncedCallback as bV,injectMonacoContextMenuStyle as bW,useFocusedElementObservable as bX,VARIABLES_EDITOR_FOCUS_ID as bY,getOperationsVariablesEditor as bZ,RESPONSE_EDITOR_FOCUS_ID as b_,ITEM_KIND_FOLDER as ba,ITEM_KIND_FILE as bb,ITEM_KIND_BASIC_DOCUMENT as bc,ITEM_KIND_API_DOCUMENT as bd,ITEM_KIND_API as be,ToastContentParagraph as bf,ToastContentList as bg,ToastContentListItem as bh,relayRuntimeExports as bi,relayEnvironment as bj,ASTNodeKind as bk,OperationDocumentKeys as bl,printBlockString as bm,printString as bn,useObservableValue as bo,useItemStore as bp,isApiItem as bq,useObservableValueWithSelector as br,isApiDocumentItem as bs,isStructuralDocumentItem as bt,SimpleCache as bu,ItemChangeAction as bv,isDocumentItem as bw,ApiKind as bx,createHash as by,applyObjectChanges as bz,createStyled as c,RENAMED_ITEM_MESSAGE as c$,OPERATIONS_EDITOR_FOCUS_ID as c0,getOperationsEditor as c1,WORKSPACE_SYNCHRONIZED_MESSAGE as c2,useAppendLogEntry as c3,useResolvedEnvironmentVariables as c4,getConnectionSettings as c5,updateHttpConnectionSettings as c6,CONNECTION_SETTINGS_UPDATED_MESSAGE as c7,isAbortError as c8,LogLevel as c9,useTabViewStateStore as cA,useActiveEnvironmentIdObservable as cB,useWorkspaceIdObservable as cC,createHistoricalDocumentItem as cD,OPERATION_REQUEST_SUCCEEDED_KIND as cE,OPERATION_REQUEST_STARTED_KIND as cF,OPERATION_REQUEST_FAILED_KIND as cG,OPERATION_REQUEST_CANCELLED_KIND as cH,useActivatePreviewTab as cI,SUBSCRIPTION_REQUEST_STOPPED_LOG_ENTRY_KIND as cJ,diff$1 as cK,SUBSCRIPTION_REQUEST_MESSAGE_LOG_ENTRY_KIND as cL,SUBSCRIPTION_REQUEST_STARTED_LOG_ENTRY_KIND as cM,HEADER_FUSION_OPERATION_PLAN as cN,HTTP_RESPONSE_FINISHED_LOG_ENTRY_KIND as cO,HTTP_RESPONSE_FAILED_LOG_ENTRY_KIND as cP,HTTP_RESPONSE_CANCELLED_LOG_ENTRY_KIND as cQ,HTTP_RESPONSE_LOG_ENTRY_KIND as cR,HTTP_REQUEST_LOG_ENTRY_KIND as cS,createId as cT,ACTIVATED_WORKSPACE_MESSAGE as cU,useCurrentValue as cV,deleteVariableJsonSchema as cW,unregisterEditorSchemas as cX,TWENTY_FIVE_MILLISECONDS as cY,DELETED_ITEMS_MESSAGE as cZ,MOVED_ITEMS_MESSAGE as c_,OAUTH_2_AUTHENTICATION_FLOW as ca,interpolateAuthentication as cb,ONE_SECOND$1 as cc,now as cd,createAuthHeaderValue as ce,authorizeAndGetToken as cf,createNamedContext as cg,createSubject as ch,isBasicDocumentItem as ci,useActiveApiStageObservable as cj,useActivateApiStage as ck,noop$2 as cl,useSelector as cm,CONTEXT_NOT_INITIALIZED as cn,global$1 as co,useSelectionObservable as cp,IS_MAC_LIKE as cq,THEME_COLORS as cr,ChevronDownIcon as cs,ChevronRightIcon as ct,OperationType as cu,getLocation as cv,getInnerType as cw,createSchemaMemberCoordinate as cx,parseExecutableDocument as cy,SCHEMA_UPDATED_MESSAGE as cz,useEnhancedEffect as d,useSignOutOfCurrentSession as d$,createModelUri as d0,getVariableJsonSchema as d1,registerEditorSchemas as d2,useActiveTabIdObservable as d3,useIsOnlineObservable as d4,SIGNED_IN_MESSAGE as d5,SIGNED_OUT_MESSAGE as d6,OAUTH_MESSAGE as d7,isSigninRedirect as d8,isOAuth2RedirectUrl as d9,OS_NAME as dA,dayjs as dB,requireDayjs_min as dC,useActiveModal as dD,createFileItems as dE,validateStructuralItemName as dF,equals as dG,RemoteDialog as dH,MediaFileIcon as dI,TooltipIconButton as dJ,CloseIcon as dK,Input as dL,useOpenDialog as dM,useIsOrganizationalWorkspace as dN,Alert as dO,Box as dP,ApiCollectionIcon as dQ,ApiServiceIcon as dR,ApiGatewayIcon as dS,AddIcon as dT,useSynchronizeWorkspace as dU,useUpdateTabViewState as dV,ExternalLinkIcon as dW,useSignIn as dX,Group as dY,Label as dZ,Form as d_,AppEssentialsLoaded as da,CircleCheckIcon as db,requireReact as dc,requireRelayRuntime as dd,requireBrowser as de,requireAreEqual as df,requireWarning as dg,graphQLIndexerSchedulerClient as dh,IS_RUNNING_IN_ELECTRON as di,FIVE_MINUTES as dj,getShell as dk,LOG_ENTRY_ACTIVATED_MESSAGE as dl,setShell as dm,FIFTY_MILLISECONDS as dn,RefreshIcon as dp,formatFullDateTime as dq,WarningIcon as dr,FailureIcon as ds,SuccessIcon as dt,usePreset as du,SIX_HOURS as dv,getTelemetry as dw,setTelemetry as dx,APP_VERSION$1 as dy,APP_TYPE as dz,extendSxProp$1 as e,ToastFooter as e$,useCreateUserAccount as e0,useActiveSession as e1,triggerCancelAccountCreationNotification as e2,triggerCreateAccountNotification as e3,DialogContentTitle as e4,useSignOutAll as e5,DialogContentSubtitle as e6,FooterSection as e7,useIsOnline as e8,OnlineIcon as e9,useActivateEnvironment as eA,useEnvironments as eB,EnvironmentIcon as eC,SPIN_ANIMATION as eD,wellKnownShortcuts as eE,useResizeObserver as eF,reactDomExports as eG,useWorkspaceStateSubject as eH,useWorkspaceId as eI,useActivateNode as eJ,createFolderItem as eK,useSubjectNext as eL,renameItem as eM,isBranchItemKind as eN,deleteItem as eO,moveItem as eP,useObservableSelector as eQ,createDocumentId as eR,createFolderId as eS,createApiId as eT,useForwardedRef as eU,SearchIcon as eV,TaskFailedError as eW,MigrationFailedError as eX,sessionSchedulerClient as eY,containsApi as eZ,useActivateLogEntry as e_,OfflineIcon as ea,useUserName as eb,AccountIcon as ec,useMenu as ed,useSessions as ee,useActivateSession as ef,useIsBoundToOrganization as eg,OrganizationIcon as eh,CheckIcon as ei,LinkIcon as ej,useActiveWorkspace as ek,useActivateWorkspace as el,useWorkspaces as em,useWorkspaceSynchronizing as en,PERSONAL_WORKSPACE_TENANT as eo,WorkspaceIcon as ep,SyncIcon as eq,useLogStats as er,useShortcut as es,createTooltipTitleWithShortcut as et,InfoIcon as eu,useOpenSettingsTab as ev,ShortcutsIcon as ew,HelpIcon as ex,Tooltip as ey,useActiveEnvironment as ez,clsx$1 as f,ErrorBoundary as f$,getChildrenByFilter as f0,isNameTaken as f1,getAllBranchItems as f2,Select as f3,useSignInState as f4,useOpenConnectionSettingsDialog as f5,isFileItemKind as f6,isFolderItemKind as f7,useDuplicateApi as f8,useDuplicateDocument as f9,ApiCollectionFolderOpenedIcon as fA,ApiServiceFolderOpenedIcon as fB,ApiGatewayFolderOpenedIcon as fC,ApiCollectionFolderIcon as fD,ApiServiceFolderIcon as fE,ApiGatewayFolderIcon as fF,useDeleteEnvironment as fG,getEnvironmentItems as fH,validateEnvironmentItemName as fI,ITEM_KIND_ENVIRONMENT as fJ,createEnvironmentId as fK,useDuplicateEnvironment as fL,useOpenAndSaveNewEnvironmentTab as fM,useRenameEnvironment as fN,NewEnvironmentIcon as fO,useCloseAllHistoryTabs as fP,clearHistoryItems as fQ,getHistoryItemDayGroupKeys as fR,getHistoryItemsByDay as fS,ClearIcon as fT,NoHistoryAvailableContent as fU,HistoryIcon as fV,CalendarIcon as fW,CancellationIcon as fX,AsideSection as fY,THREE_HUNDRED_MILLISECONDS as fZ,CircularProgress as f_,isApiItemKind as fa,useIsUserSignedIn as fb,useActiveNodeIdObservable as fc,useOpenAndSaveNewApiTab as fd,useOpenAndSaveNewDocumentTab as fe,useOpenTab as ff,useOpenTabAsPreview as fg,useSaveAndCloseNewTab as fh,useSaveNewTab as fi,useSignInActiveSession as fj,AsideHeaderSection as fk,SectionHeading as fl,SectionHeaderSpace as fm,ButtonGroup as fn,CollapseAllIcon as fo,AsideControlSection as fp,SigningInContent as fq,AsideContentSection as fr,ExplorerIcon as fs,EmptyContent as ft,FolderOpenedIcon as fu,NewFolderIcon as fv,FolderIcon as fw,NewDocumentIcon as fx,DocumentIcon as fy,NewApiIcon as fz,getDefaultExportFromCjs as g,JsonIcon as g$,ConsoleSection as g0,useActiveTabNameObservable as g1,APP_NAME as g2,useWorkspaceNameObservable as g3,SVGIcon as g4,SidebarSection as g5,useIsUserAccountMissing as g6,SettingsIcon as g7,useActiveApiMetricsDateTimeRange as g8,useHttpSchemaEndpointObservable as g9,ColumnHeader as gA,ColumnSeparator as gB,ColumnContent as gC,Section as gD,menuItemClasses as gE,TooltipButton as gF,ListSubheader as gG,DateTimeRangeFactory as gH,isRelativeDateTimeRange as gI,useUpdateApiMetricsDateTimeRange as gJ,SectionBreadcrumb as gK,ColumnHeaderInfo as gL,useMoreBreadcrumbs as gM,BreadcrumbItemSize as gN,formatShortDateTime as gO,formatDurationNumber as gP,useActiveMonitoringViewId as gQ,useActivateMonitoringViewId as gR,NoMetricsAvailableContent as gS,convertEpochToISOString as gT,FONT_FAMILY_CODE as gU,FONT_WEIGHT_CODE as gV,FONT_SIZE_CODE_IN_PIXEL as gW,LINE_HEIGHT_CODE_IN_PIXEL as gX,formatRelativeTime as gY,HttpIcon as gZ,HttpClientRequestIcon as g_,useSchemaErrorCache as ga,useInterpolateValue as gb,DEFAULT_SCHEMA_INFO as gc,useActiveApiKindObservable as gd,useSyncStore as ge,BreadcrumbItem as gf,ScrollbarNext as gg,BreadcrumbsList as gh,useOpenSchemaErrorDialog as gi,isServerNotReachableError as gj,SchemaErrorDialog as gk,PULSE_SHORT_ANIMATION as gl,useActiveTabIdOrThrow as gm,useInitialSchemaSdlEditorViewState as gn,disableCertainDefaultShortcuts as go,SchemaLoadingContent as gp,useActiveTabId as gq,TWO_HUNDRED_FIFTY_MILLISECONDS as gr,ReactDOM as gs,F as gt,useThemeNameObservable as gu,useGetComputedThemeValue as gv,init$1 as gw,FONT_SIZE_IN_PIXEL as gx,FONT_FAMILY as gy,formatCompactNumber as gz,composeClasses as h,useCurrentIsEnumValuesInfoCollapsed as h$,GraphQLIcon as h0,DatabaseIcon as h1,formatPercentNumber as h2,clamp$1 as h3,getApiItemByRemoteId as h4,useLazyRef as h5,useOnMount as h6,inputBaseClasses as h7,lighten as h8,darken as h9,EnumTypeIcon as hA,isScalar$2 as hB,isEnum as hC,FieldTypeIcon as hD,EnumValueTypeIcon as hE,DirectiveIcon as hF,ArgumentTypeIcon as hG,ShowSecretIcon as hH,HideSecretIcon as hI,useHideDeprecatedItemsInSchemaReference as hJ,useShowInaccessibleItemsInSchemaReference as hK,RelayTypeIcon as hL,useCurrentIsSdlPreviewInfoCollapsed as hM,useActiveApiKind as hN,parseSchemaCoordinate as hO,createSchemaDirectiveCoordinate as hP,FilterIcon as hQ,ArrowUpIcon as hR,ArrowDownIcon as hS,NoStageSelectedContent as hT,NoCoordinateSelectedContent as hU,ColumnControls as hV,SchemaIndexingContent as hW,SchemaUnavailableContent as hX,ColumnBreadcrumbs as hY,Column as hZ,useCurrentIsArgumentTypeInfoCollapsed as h_,Switch as ha,Badge as hb,Autocomplete as hc,Tabs as hd,Tab as he,iconButtonClasses as hf,FlyoutSection as hg,OperationPreviewEditor as hh,TWO_SECONDS as hi,CopyIcon as hj,ChevronUpIcon as hk,useMoreTabs as hl,PlainTextEditor as hm,NoLogsAvailableContent as hn,Spinner$1 as ho,formatDecimalNumber as hp,StageUnavailableContent as hq,useActiveApiStage as hr,useActivateApiOperation as hs,useForceRender as ht,renderMarkdown as hu,ObjectTypeIcon as hv,UnionTypeIcon as hw,ScalarTypeIcon as hx,InterfaceTypeIcon as hy,InputObjectTypeIcon as hz,isMuiElement as i,beautifyEndpoint as i$,useCurrentIsFieldArgumentsInfoCollapsed as i0,useCurrentIsFieldReturnTypeInfoCollapsed as i1,NoDetailsAvailableContent as i2,useActiveSchemaReferenceViewId as i3,useActiveSchemaViewId as i4,DownloadIcon as i5,ColumnHeaderInfoDescValuePair as i6,ColumnHeaderInfoValue as i7,ColumnHeaderInfoDesc as i8,ListViewIcon as i9,useActivateApiDeploymentId as iA,TagIcon as iB,useActiveApiDeploymentId as iC,distinct as iD,useActivateApiResolver as iE,OperationsIcon as iF,ResolversIcon as iG,useActivateApiTransaction as iH,useActiveApiOperation as iI,useActiveApiResolver as iJ,useActiveApiTransaction as iK,NeutralIcon as iL,DecreaseIcon as iM,IncreaseIcon as iN,sentiment as iO,direction as iP,useActiveApiSchemaChangelogId as iQ,useActivateApiSchemaChangelogViewId as iR,LogIcon as iS,DiffIcon as iT,useActivateApiSchemaChangelogId as iU,YAML as iV,useActiveApiKindDraft as iW,useActiveApiViewId as iX,useActiveTabRemoteId as iY,useInterpolatedValue as iZ,useHttpSchemaEndpoint as i_,ColumnViewIcon as ia,getAllFolderItems as ib,useOpenNewDocumentTabFromCurl as ic,useDiscardAndCloseTab as id,useRevertAndCloseTab as ie,useSaveAndCloseTab as ig,useSaveTab as ih,useIsActiveTabNewOrHistory as ii,useConnectionSettings as ij,useSignInStateObservable as ik,useChangeApiKind as il,ClientUnavailableContent as im,NoClientVersionAvailableContent as io,NoChangesIcon as ip,useActivateApiClientId as iq,AutoLoadMoreButton as ir,QuestionIcon as is,useActiveApiClientId as it,getHttpOptions as iu,LoadMoreButton as iv,useActiveApiSchemaChangelogViewId as iw,CancelIcon as ix,VerifiedIcon as iy,QueuedIcon as iz,jsxRuntimeExports as j,YamlIcon as j$,ColumnHeaderInfoIcon as j0,SecureIcon as j1,UnsecureIcon as j2,ColumnHeaderInfoSingleValue as j3,HTTP_SECURE_SCHEME_PATTERN as j4,useActivateApiViewId as j5,EditIcon as j6,MainBreadcrumbsSection as j7,MainControlSection as j8,MainContentSection as j9,useInitialVariablesEditorViewState as jA,useIsOperationsSettingsPaneCollapsedObservable as jB,useInitialOperationsSettingsPaneHeight as jC,useInitialResponseEditorViewState as jD,stringifyValue as jE,NoResponsesYetContent as jF,ListLineEndActiveIcon as jG,ListLineEndIcon as jH,ListLineMiddleActiveIcon as jI,ListLineMiddleIcon as jJ,MessageIcon as jK,formatLongTime as jL,getDuration as jM,ListNoChildrenActiveIcon as jN,ListNoChildrenIcon as jO,GoToLogEntryButton as jP,useIsResponseEntriesPaneCollapsed as jQ,JsonEditor as jR,useOpenNewDocumentTab as jS,useQueryPlanEnabled as jT,QueryPlanIcon as jU,useEnableQueryPlan as jV,useCurrentOperationPlanPositions as jW,useCurrentOperationPlanViewport as jX,useActiveResponseViewId as jY,useActiveResponseViewFormat as jZ,getSize$2 as j_,useShowIntrospectionFieldsInOperationBuilderObservable as ja,createNameNode as jb,createTokenWithValue as jc,TokenKind as jd,ONE_HUNDRED_MILLISECONDS as je,IntrospectionFieldIcon as jf,useCurrentIsTypePossibleTypesInfoCollapsed as jg,useCurrentIsTypeImplementsInfoCollapsed as jh,useCurrentIsSelectionPathInfoCollapsed as ji,PathDownIcon as jj,useUpdateConnectionSettings as jk,useAuthorizationHeaderValue as jl,useHttpHeaders as jm,HttpHeaders as jn,TWO_HUNDRED_MILLISECONDS as jo,CompletionItemKind$1 as jp,THIRTY_SECONDS as jq,TWO_MINUTES as jr,useInitialOperationsEditorViewState as js,useIsOperationsSettingsPaneCollapsed as jt,useActiveOperationsSettingsViewId as ju,FoldUpIcon as jv,FoldDownIcon as jw,useActiveOperation as jx,FormatIcon as jy,StartIcon as jz,generateUtilityClass as k,useTabIds as k$,useIsResponseEntriesPaneCollapsedObservable as k0,useInitialResponseEntriesPaneHeight as k1,useActiveOperationCompanionViewId as k2,useIsOperationSidebarCollapsed as k3,useActivateOperationCompanionView as k4,useActiveViewId as k5,KeyIcon as k6,VerticalDragHandleIcon as k7,createVariableId as k8,UncontrolledToggle as k9,Toggle as kA,LightModeIcon as kB,DarkModeIcon as kC,usePreferences as kD,useSetPreference as kE,FormLabel as kF,useActiveSettingsViewId as kG,PreferencesIcon as kH,AppearanceIcon as kI,OrganizationsIcon as kJ,useActiveSettingsIsBillingSectionCollapsed as kK,DEFAULT_TAB_VIEW_STATE_VALUES as kL,MembersIcon as kM,IdentityCardIcon as kN,AuditLogIcon as kO,useOpenNewApiTab as kP,useOpenNewEnvironmentTab as kQ,useBeautifiedHttpEndpoint as kR,useTab as kS,isApiTab as kT,HasChangesIcon as kU,isDocumentTab as kV,isEnvironmentTab as kW,isUserSettingsTab as kX,useGetTabById as kY,useCopyDocumentToClipboard as kZ,useDuplicateTab as k_,useInitialVariableCollectionState as ka,useUpdateEnvironmentVariables as kb,getVariableCollection as kc,CreditCardIcon as kd,useActiveSettingsGroupId as ke,ArrowLeftIcon as kf,useActiveSettingsMemberId as kg,MoreActionsIcon as kh,useSignOut as ki,triggerErrorNotification as kj,useReloadWorkspaces as kk,upsertWorkspace as kl,validateName$1 as km,deleteWorkspace as kn,useActiveWorkspaceObservable as ko,getItemNameByRemoteId as kp,useDatabaseVersion as kq,getDatabaseName as kr,COMPANY_URL as ks,COMPANY_NAME as kt,APP_LICENSE as ku,APP_LICENSE_URL as kv,useThemeSettings as kw,useUpdateThemeSettings as kx,GROUPED_THEMES as ky,LabelDescription as kz,createTheme$1 as l,usePreviewTabId as l0,useHasActiveTabChanges as l1,useTabIdKindPairs as l2,useActivateTab as l3,SaveIcon as l4,useMoveTab as l5,SETTINGS_TAB_KIND as l6,ENVIRONMENT_TAB_KIND as l7,DOCUMENT_TAB_KIND as l8,API_TAB_KIND as l9,useUpdateFollowNewest as lA,getSubscriptionTransport as lB,useCollapseLogScope as lC,useExpandLogScope as lD,RunningIcon as lE,GoToItemIcon as lF,ITEM_KIND_NEW_ENVIRONMENT as lG,ITEM_KIND_HISTORICAL_DOCUMENT as lH,ITEM_KIND_NEW_DOCUMENT as lI,ITEM_KIND_NEW_API as lJ,useDeactivateLogEntry as lK,tryParseJsonString as lL,useActiveLogEntry as lM,useHasLogEntries as lN,useClearLog as lO,ConsoleControlSection as lP,ConsoleContentSection as lQ,useActiveLogEntryId as lR,useCurrentActiveTabKind as la,useActiveEnvironmentId as lb,MainHeaderSection as lc,VariableCollectionProvider as ld,MainSection as le,EmptyMainSection as lf,ConnectionSettingsDialog as lg,GlobalStyles as lh,Bounce as li,ToastContainer as lj,modalApi as lk,isMigrationFailedError as ll,deleteDatabase as lm,TextArea as ln,APP_AGENT as lo,LogProvider as lp,NetworkProvider as lq,DataMigrationProvider as lr,PresetProvider as ls,SessionProvider as lt,SettingsProvider as lu,WorkspaceProvider as lv,EnvironmentProvider as lw,TabProvider as lx,ConnectionSettingsProvider as ly,useLog as lz,defaultTheme$1 as m,forceReflow as n,_objectWithoutPropertiesLoose$1 as o,React as p,Transition as q,resolveProps$1 as r,_extends$1 as s,generateUtilityClasses as t,useTheme$2 as u,useDefaultProps as v,duration as w,useTheme as x,useTimeout as y,useForkRef$1 as z};
|