import{r as l}from"./index-NdkWRN8K.js";import{j as a}from"./jsx-runtime-CnH95YSl.js";import{c as h,ad as R,b as p,V as M,W as j,_ as B,s as P,d as w,f as k,aH as A,aI as z,O as F,aJ as N}from"./OdysseyThemeProvider-Bh0Bu-2o.js";const v=(e,o)=>p({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},o&&!e.vars&&{colorScheme:e.palette.mode}),S=e=>p({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),W=(e,o=!1)=>{var t;const n={};o&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([i,c])=>{var d;n[e.getColorSchemeSelector(i).replace(/\s*&/,"")]={colorScheme:(d=c.palette)==null?void 0:d.mode}});let s=p({html:v(e,o),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:p({margin:0},S(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n);const r=(t=e.components)==null||(t=t.MuiCssBaseline)==null?void 0:t.styleOverrides;return r&&(s=[s,r]),s};function I(e){const o=h({props:e,name:"MuiCssBaseline"}),{children:t,enableColorScheme:n=!1}=o;return a.jsxs(l.Fragment,{children:[a.jsx(R,{styles:s=>W(s,n)}),t]})}function _(e){return M("MuiScopedCssBaseline",e)}j("MuiScopedCssBaseline",["root"]);const T=["className","component","enableColorScheme"],U=e=>{const{classes:o}=e;return k({root:["root"]},_,o)},q=P("div",{name:"MuiScopedCssBaseline",slot:"Root",overridesResolver:(e,o)=>o.root})(({theme:e,ownerState:o})=>{const t={};return o.enableColorScheme&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([n,s])=>{var r;t[`&${e.getColorSchemeSelector(n).replace(/\s*&/,"")}`]={colorScheme:(r=s.palette)==null?void 0:r.mode}}),p({},v(e,o.enableColorScheme),S(e),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:e.typography.fontWeightBold}},t)}),$=l.forwardRef(function(o,t){const n=h({props:o,name:"MuiScopedCssBaseline"}),{className:s,component:r="div"}=n,i=B(n,T),c=p({},n,{component:r}),d=U(c);return a.jsx(q,p({as:r,className:w(d.root,s),ref:t,ownerState:c},i))}),H=e=>a.jsx(I,{...e});/*!
 * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.
 * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
 *
 * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *
 * See the License for the specific language governing permissions and limitations under the License.
 */const D="app-root",G="style-root",L=()=>{const e=document.createElement("div"),o=document.createElement("div");return e.style.setProperty("height","inherit"),e.setAttribute("id",D),o.setAttribute("id",G),o.setAttribute("nonce",window.cspNonce),{appRootElement:e,stylesRootElement:o}};/*!
 * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.
 * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
 *
 * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *
 * See the License for the specific language governing permissions and limitations under the License.
 */const V=`
  :host {
    all: initial;
    contain: content;
  }
`,J=({nonce:e,stylesRootElement:o})=>{const t=document.createElement("style");t.setAttribute("nonce",e),t.innerHTML=V,o.appendChild(t)};/*!
 * Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.
 * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
 *
 * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *
 * See the License for the specific language governing permissions and limitations under the License.
 */const K=(e,o=window.cspNonce)=>{const t=e.attachShadow({mode:"open"}),{appRootElement:n,stylesRootElement:s}=L();return t.appendChild(n),t.appendChild(s),J({nonce:o,stylesRootElement:s}),{emotionRootElement:s,shadowRootElement:n}};/*!
 * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.
 * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
 *
 * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *
 * See the License for the specific language governing permissions and limitations under the License.
 */const C=l.createContext({}),ae=()=>l.useContext(C),Q=({children:e,hasShadowDom:o,overlayParentElement:t})=>{const{overlayEmotionRootElement:n,overlayParentElement:s,overlayShadowRootElement:r}=l.useMemo(()=>{const c=t||document.createElement("div");if(o){const{emotionRootElement:d,shadowRootElement:m}=K(c);return{overlayEmotionRootElement:d,overlayParentElement:c,overlayShadowRootElement:m}}return{overlayEmotionRootElement:void 0,overlayParentElement:c,overlayShadowRootElement:void 0}},[o,t]);l.useEffect(()=>(s&&document.body.append(s),()=>{s.remove()}),[s]);const i=l.useMemo(()=>({overlayEmotionRootElement:n,overlayShadowRootElement:r}),[n,r]);return a.jsx(C.Provider,{value:i,children:e})},b=l.memo(Q);b.displayName="FullScreenOverlayProvider";const X=()=>Math.random().toString(36).replace(/[\d.]/g,"");/*!
 * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.
 * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
 *
 * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *
 * See the License for the specific language governing permissions and limitations under the License.
 */const Y=e=>l.useMemo(()=>X(),[]);/*!
 * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.
 * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
 *
 * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *
 * See the License for the specific language governing permissions and limitations under the License.
 */const Z=({children:e,emotionRoot:o,emotionRootElement:t,nonce:n,stylisPlugins:s})=>{const r=Y(),i=l.useMemo(()=>A({...(t||o)&&{container:t||o},key:r,nonce:n??globalThis.cspNonce,prepend:!0,speedy:!0,...s&&{stylisPlugins:s}}),[o,t,n,s,r]);return a.jsx(z,{value:i,children:e})},f=l.memo(Z);f.displayName="OdysseyCacheProvider";const ee={height:"inherit"},oe=({children:e,contrastMode:o,designTokensOverride:t,emotionRoot:n,emotionRootElement:s,hasCssBaseline:r,hasScopedCssBaseline:i=!0,hasWrapperElement:c,languageCode:d,nonce:m,overlayParentElement:g,shadowDomElement:u,shadowRootElement:y,stylisPlugins:E,themeOverride:x,translationOverrides:O})=>a.jsx(f,{emotionRootElement:s||n,nonce:m,stylisPlugins:E,children:a.jsx(F,{contrastMode:o,designTokensOverride:t,hasWrapperElement:c,shadowRootElement:y??u,themeOverride:x,children:a.jsx(N,{languageCode:d,translationOverrides:O,children:a.jsxs(b,{hasShadowDom:!!(y||u),overlayParentElement:g,children:[r&&a.jsx(H,{}),i?a.jsx($,{sx:ee,children:e}):e]})})})}),te=l.memo(oe);te.displayName="OdysseyProvider";export{H as C,te as M,$ as S,I as a,L as c,J as e,ae as u};
