From 0bb954a782d2279e4eebd5a8127fb542797a9041 Mon Sep 17 00:00:00 2001 From: yuyin-zhang <106600353+yuyin-zhang@users.noreply.github.com> Date: Tue, 30 Sep 2025 00:52:54 +1000 Subject: [PATCH 1/9] fix: ui issues --- .../{chat-FgsII50J.js => chat-Dy7b1kF1.js} | 4 +- .../{index-DUqwdQtq.js => index-CVJoPuDa.js} | 4 +- .../{join-lEjOASt5.js => join-DO7fVZkU.js} | 2 +- .../dist/assets/main-layout-CE1joJ3-.js | 401 ++++++++++++++++++ .../dist/assets/main-layout-CMeEP11X.js | 396 ----------------- .../{setup-CIsUOWdt.js => setup-Cv5m9b5b.js} | 4 +- src/frontend/dist/index.html | 2 +- .../src/components/common/drawer-layout.tsx | 94 +++- .../src/components/inputs/chat-input.tsx | 25 +- .../src/components/inputs/chat-messages.tsx | 165 +++++-- src/frontend/src/pages/setup.tsx | 17 +- 11 files changed, 667 insertions(+), 447 deletions(-) rename src/frontend/dist/assets/{chat-FgsII50J.js => chat-Dy7b1kF1.js} (51%) rename src/frontend/dist/assets/{index-DUqwdQtq.js => index-CVJoPuDa.js} (99%) rename src/frontend/dist/assets/{join-lEjOASt5.js => join-DO7fVZkU.js} (94%) create mode 100644 src/frontend/dist/assets/main-layout-CE1joJ3-.js delete mode 100644 src/frontend/dist/assets/main-layout-CMeEP11X.js rename src/frontend/dist/assets/{setup-CIsUOWdt.js => setup-Cv5m9b5b.js} (88%) diff --git a/src/frontend/dist/assets/chat-FgsII50J.js b/src/frontend/dist/assets/chat-Dy7b1kF1.js similarity index 51% rename from src/frontend/dist/assets/chat-FgsII50J.js rename to src/frontend/dist/assets/chat-Dy7b1kF1.js index a76de9fd..9d311104 100644 --- a/src/frontend/dist/assets/chat-FgsII50J.js +++ b/src/frontend/dist/assets/chat-Dy7b1kF1.js @@ -1,4 +1,4 @@ -import{a as A,g as N,r as x,u as H,j as a,s as T,c as U,b as z,d as W,m as V,h as Te,q as ze,v as Le,w as I,i as ee,n as Me,x as Re,l as je,S as ne,p as le}from"./index-DUqwdQtq.js";import{i as Z,b as qe,c as ie,F as $e,u as te,f as re,O as Ae,d as Ne,e as He,S as Ue,D as We,g as Ee,C as De}from"./main-layout-CMeEP11X.js";function Be(e){return A("MuiFormControl",e)}N("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Oe=e=>{const{classes:t,margin:r,fullWidth:o}=e,s={root:["root",r!=="none"&&`margin${z(r)}`,o&&"fullWidth"]};return W(s,Be,t)},_e=T("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${z(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ke=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormControl"}),{children:s,className:l,color:i="primary",component:p="div",disabled:n=!1,error:d=!1,focused:m,fullWidth:h=!1,hiddenLabel:b=!1,margin:g="none",required:f=!1,size:u="medium",variant:c="outlined",...C}=o,w={...o,color:i,component:p,disabled:n,error:d,fullWidth:h,hiddenLabel:b,margin:g,required:f,size:u,variant:c},G=Oe(w),[y,J]=x.useState(()=>{let F=!1;return s&&x.Children.forEach(s,v=>{if(!Z(v,["Input","Select"]))return;const j=Z(v,["Select"])?v.props.input:v;j&&qe(j.props)&&(F=!0)}),F}),[E,L]=x.useState(()=>{let F=!1;return s&&x.Children.forEach(s,v=>{Z(v,["Input","Select"])&&(ie(v.props,!0)||ie(v.props.inputProps,!0))&&(F=!0)}),F}),[D,M]=x.useState(!1);n&&D&&M(!1);const B=m!==void 0&&!n?m:D;let O;x.useRef(!1);const _=x.useCallback(()=>{L(!0)},[]),R=x.useCallback(()=>{L(!1)},[]),Q=x.useMemo(()=>({adornedStart:y,setAdornedStart:J,color:i,disabled:n,error:d,filled:E,focused:B,fullWidth:h,hiddenLabel:b,size:u,onBlur:()=>{M(!1)},onFocus:()=>{M(!0)},onEmpty:R,onFilled:_,registerEffect:O,required:f,variant:c}),[y,i,n,d,E,B,h,b,O,R,_,f,u,c]);return a.jsx($e.Provider,{value:Q,children:a.jsx(_e,{as:p,ownerState:w,className:U(G.root,l),ref:r,...C,children:s})})});function Ve(e){return A("MuiFormHelperText",e)}const de=N("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ce;const Ge=e=>{const{classes:t,contained:r,size:o,disabled:s,error:l,filled:i,focused:p,required:n}=e,d={root:["root",s&&"disabled",l&&"error",o&&`size${z(o)}`,r&&"contained",p&&"focused",i&&"filled",n&&"required"]};return W(d,Ve,t)},Je=T("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${z(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${de.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${de.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Qe=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormHelperText"}),{children:s,className:l,component:i="p",disabled:p,error:n,filled:d,focused:m,margin:h,required:b,variant:g,...f}=o,u=te(),c=re({props:o,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),C={...o,component:i,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required};delete C.ownerState;const w=Ge(C);return a.jsx(Je,{as:i,className:U(w.root,l),ref:r,...f,ownerState:C,children:s===" "?ce||(ce=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):s})});function Xe(e){return A("MuiFormLabel",e)}const $=N("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ye=e=>{const{classes:t,color:r,focused:o,disabled:s,error:l,filled:i,required:p}=e,n={root:["root",`color${z(r)}`,s&&"disabled",l&&"error",i&&"filled",o&&"focused",p&&"required"],asterisk:["asterisk",l&&"error"]};return W(n,Xe,t)},Ze=T("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Te()).map(([t])=>({props:{color:t},style:{[`&.${$.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${$.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),et=T("span",{name:"MuiFormLabel",slot:"Asterisk"})(V(({theme:e})=>({[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}))),tt=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormLabel"}),{children:s,className:l,color:i,component:p="label",disabled:n,error:d,filled:m,focused:h,required:b,...g}=o,f=te(),u=re({props:o,muiFormControl:f,states:["color","required","focused","disabled","error","filled"]}),c={...o,color:u.color||"primary",component:p,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required},C=Ye(c);return a.jsxs(Ze,{as:p,ownerState:c,className:U(C.root,l),ref:r,...g,children:[s,u.required&&a.jsxs(et,{ownerState:c,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]})});function rt(e){return A("MuiInputLabel",e)}N("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ot=e=>{const{classes:t,formControl:r,size:o,shrink:s,disableAnimation:l,variant:i,required:p}=e,n={root:["root",r&&"formControl",!l&&"animated",s&&"shrink",o&&o!=="medium"&&`size${z(o)}`,i],asterisk:[p&&"asterisk"]},d=W(n,rt,t);return{...t,...d}},st=T(tt,{shouldForwardProp:e=>ze(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${$.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(V(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:o})=>t==="filled"&&r.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),at=x.forwardRef(function(t,r){const o=H({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,margin:l,shrink:i,variant:p,className:n,...d}=o,m=te();let h=i;typeof h>"u"&&m&&(h=m.filled||m.focused||m.adornedStart);const b=re({props:o,muiFormControl:m,states:["size","variant","required","focused"]}),g={...o,disableAnimation:s,formControl:m,shrink:h,size:b.size,variant:b.variant,required:b.required,focused:b.focused},f=ot(g);return a.jsx(st,{"data-shrink":h,ref:r,className:U(f.root,n),...d,ownerState:g,classes:f})});function nt(e){return A("MuiTextField",e)}N("MuiTextField",["root"]);const lt={standard:He,filled:Ne,outlined:Ae},it=e=>{const{classes:t}=e;return W({root:["root"]},nt,t)},dt=T(Ke,{name:"MuiTextField",slot:"Root"})({}),ct=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiTextField"}),{autoComplete:s,autoFocus:l=!1,children:i,className:p,color:n="primary",defaultValue:d,disabled:m=!1,error:h=!1,FormHelperTextProps:b,fullWidth:g=!1,helperText:f,id:u,InputLabelProps:c,inputProps:C,InputProps:w,inputRef:G,label:y,maxRows:J,minRows:E,multiline:L=!1,name:D,onBlur:M,onChange:B,onFocus:O,placeholder:_,required:R=!1,rows:Q,select:F=!1,SelectProps:v,slots:j={},slotProps:pe={},type:ue,value:oe,variant:K="outlined",...me}=o,S={...o,autoFocus:l,color:n,disabled:m,error:h,fullWidth:g,multiline:L,required:R,select:F,variant:K},fe=it(S),k=Le(u),X=f&&k?`${k}-helper-text`:void 0,se=y&&k?`${k}-label`:void 0,xe=lt[K],P={slots:j,slotProps:{input:w,inputLabel:c,htmlInput:C,formHelperText:b,select:v,...pe}},q={},Y=P.slotProps.inputLabel;K==="outlined"&&(Y&&typeof Y.shrink<"u"&&(q.notched=Y.shrink),q.label=y),F&&((!v||!v.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const[he,be]=I("root",{elementType:dt,shouldForwardComponentProp:!0,externalForwardedProps:{...P,...me},ownerState:S,className:U(fe.root,p),ref:r,additionalProps:{disabled:m,error:h,fullWidth:g,required:R,color:n,variant:K}}),[ve,ge]=I("input",{elementType:xe,externalForwardedProps:P,additionalProps:q,ownerState:S}),[Ce,Fe]=I("inputLabel",{elementType:at,externalForwardedProps:P,ownerState:S}),[ye,Se]=I("htmlInput",{elementType:"input",externalForwardedProps:P,ownerState:S}),[ke,Pe]=I("formHelperText",{elementType:Qe,externalForwardedProps:P,ownerState:S}),[we,Ie]=I("select",{elementType:Ue,externalForwardedProps:P,ownerState:S}),ae=a.jsx(ve,{"aria-describedby":X,autoComplete:s,autoFocus:l,defaultValue:d,fullWidth:g,multiline:L,name:D,rows:Q,maxRows:J,minRows:E,type:ue,value:oe,id:k,inputRef:G,onBlur:M,onChange:B,onFocus:O,placeholder:_,inputProps:Se,slots:{input:j.htmlInput?ye:void 0},...ge});return a.jsxs(he,{...be,children:[y!=null&&y!==""&&a.jsx(Ce,{htmlFor:k,id:se,...Fe,children:y}),F?a.jsx(we,{"aria-describedby":X,id:k,labelId:se,value:oe,input:ae,...Ie,children:i}):ae,f&&a.jsx(ke,{id:X,...Pe,children:f})]})});/** +import{a as A,g as N,r as x,u as H,j as a,s as T,c as W,b as z,d as U,m as V,h as Te,q as ze,v as Le,w as I,i as ee,n as Me,x as Re,l as je,S as ne,p as le}from"./index-CVJoPuDa.js";import{i as Z,b as qe,c as ie,F as $e,u as te,f as re,O as Ae,d as Ne,e as He,S as We,D as Ue,g as Ee,C as De}from"./main-layout-CE1joJ3-.js";function Oe(e){return A("MuiFormControl",e)}N("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Be=e=>{const{classes:t,margin:r,fullWidth:o}=e,s={root:["root",r!=="none"&&`margin${z(r)}`,o&&"fullWidth"]};return U(s,Oe,t)},_e=T("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${z(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ke=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormControl"}),{children:s,className:l,color:i="primary",component:u="div",disabled:n=!1,error:d=!1,focused:c,fullWidth:b=!1,hiddenLabel:h=!1,margin:g="none",required:f=!1,size:m="medium",variant:p="outlined",...y}=o,P={...o,color:i,component:u,disabled:n,error:d,fullWidth:b,hiddenLabel:h,margin:g,required:f,size:m,variant:p},G=Be(P),[F,J]=x.useState(()=>{let C=!1;return s&&x.Children.forEach(s,v=>{if(!Z(v,["Input","Select"]))return;const j=Z(v,["Select"])?v.props.input:v;j&&qe(j.props)&&(C=!0)}),C}),[E,L]=x.useState(()=>{let C=!1;return s&&x.Children.forEach(s,v=>{Z(v,["Input","Select"])&&(ie(v.props,!0)||ie(v.props.inputProps,!0))&&(C=!0)}),C}),[D,M]=x.useState(!1);n&&D&&M(!1);const O=c!==void 0&&!n?c:D;let B;x.useRef(!1);const _=x.useCallback(()=>{L(!0)},[]),R=x.useCallback(()=>{L(!1)},[]),Q=x.useMemo(()=>({adornedStart:F,setAdornedStart:J,color:i,disabled:n,error:d,filled:E,focused:O,fullWidth:b,hiddenLabel:h,size:m,onBlur:()=>{M(!1)},onFocus:()=>{M(!0)},onEmpty:R,onFilled:_,registerEffect:B,required:f,variant:p}),[F,i,n,d,E,O,b,h,B,R,_,f,m,p]);return a.jsx($e.Provider,{value:Q,children:a.jsx(_e,{as:u,ownerState:P,className:W(G.root,l),ref:r,...y,children:s})})});function Ve(e){return A("MuiFormHelperText",e)}const de=N("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ce;const Ge=e=>{const{classes:t,contained:r,size:o,disabled:s,error:l,filled:i,focused:u,required:n}=e,d={root:["root",s&&"disabled",l&&"error",o&&`size${z(o)}`,r&&"contained",u&&"focused",i&&"filled",n&&"required"]};return U(d,Ve,t)},Je=T("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${z(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${de.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${de.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Qe=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormHelperText"}),{children:s,className:l,component:i="p",disabled:u,error:n,filled:d,focused:c,margin:b,required:h,variant:g,...f}=o,m=te(),p=re({props:o,muiFormControl:m,states:["variant","size","disabled","error","filled","focused","required"]}),y={...o,component:i,contained:p.variant==="filled"||p.variant==="outlined",variant:p.variant,size:p.size,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required};delete y.ownerState;const P=Ge(y);return a.jsx(Je,{as:i,className:W(P.root,l),ref:r,...f,ownerState:y,children:s===" "?ce||(ce=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):s})});function Xe(e){return A("MuiFormLabel",e)}const $=N("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ye=e=>{const{classes:t,color:r,focused:o,disabled:s,error:l,filled:i,required:u}=e,n={root:["root",`color${z(r)}`,s&&"disabled",l&&"error",i&&"filled",o&&"focused",u&&"required"],asterisk:["asterisk",l&&"error"]};return U(n,Xe,t)},Ze=T("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Te()).map(([t])=>({props:{color:t},style:{[`&.${$.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${$.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),et=T("span",{name:"MuiFormLabel",slot:"Asterisk"})(V(({theme:e})=>({[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}))),tt=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormLabel"}),{children:s,className:l,color:i,component:u="label",disabled:n,error:d,filled:c,focused:b,required:h,...g}=o,f=te(),m=re({props:o,muiFormControl:f,states:["color","required","focused","disabled","error","filled"]}),p={...o,color:m.color||"primary",component:u,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required},y=Ye(p);return a.jsxs(Ze,{as:u,ownerState:p,className:W(y.root,l),ref:r,...g,children:[s,m.required&&a.jsxs(et,{ownerState:p,"aria-hidden":!0,className:y.asterisk,children:[" ","*"]})]})});function rt(e){return A("MuiInputLabel",e)}N("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ot=e=>{const{classes:t,formControl:r,size:o,shrink:s,disableAnimation:l,variant:i,required:u}=e,n={root:["root",r&&"formControl",!l&&"animated",s&&"shrink",o&&o!=="medium"&&`size${z(o)}`,i],asterisk:[u&&"asterisk"]},d=U(n,rt,t);return{...t,...d}},st=T(tt,{shouldForwardProp:e=>ze(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${$.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(V(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:o})=>t==="filled"&&r.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),at=x.forwardRef(function(t,r){const o=H({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,margin:l,shrink:i,variant:u,className:n,...d}=o,c=te();let b=i;typeof b>"u"&&c&&(b=c.filled||c.focused||c.adornedStart);const h=re({props:o,muiFormControl:c,states:["size","variant","required","focused"]}),g={...o,disableAnimation:s,formControl:c,shrink:b,size:h.size,variant:h.variant,required:h.required,focused:h.focused},f=ot(g);return a.jsx(st,{"data-shrink":b,ref:r,className:W(f.root,n),...d,ownerState:g,classes:f})});function nt(e){return A("MuiTextField",e)}N("MuiTextField",["root"]);const lt={standard:He,filled:Ne,outlined:Ae},it=e=>{const{classes:t}=e;return U({root:["root"]},nt,t)},dt=T(Ke,{name:"MuiTextField",slot:"Root"})({}),ct=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiTextField"}),{autoComplete:s,autoFocus:l=!1,children:i,className:u,color:n="primary",defaultValue:d,disabled:c=!1,error:b=!1,FormHelperTextProps:h,fullWidth:g=!1,helperText:f,id:m,InputLabelProps:p,inputProps:y,InputProps:P,inputRef:G,label:F,maxRows:J,minRows:E,multiline:L=!1,name:D,onBlur:M,onChange:O,onFocus:B,placeholder:_,required:R=!1,rows:Q,select:C=!1,SelectProps:v,slots:j={},slotProps:pe={},type:ue,value:oe,variant:K="outlined",...me}=o,S={...o,autoFocus:l,color:n,disabled:c,error:b,fullWidth:g,multiline:L,required:R,select:C,variant:K},fe=it(S),k=Le(m),X=f&&k?`${k}-helper-text`:void 0,se=F&&k?`${k}-label`:void 0,xe=lt[K],w={slots:j,slotProps:{input:P,inputLabel:p,htmlInput:y,formHelperText:h,select:v,...pe}},q={},Y=w.slotProps.inputLabel;K==="outlined"&&(Y&&typeof Y.shrink<"u"&&(q.notched=Y.shrink),q.label=F),C&&((!v||!v.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const[be,he]=I("root",{elementType:dt,shouldForwardComponentProp:!0,externalForwardedProps:{...w,...me},ownerState:S,className:W(fe.root,u),ref:r,additionalProps:{disabled:c,error:b,fullWidth:g,required:R,color:n,variant:K}}),[ve,ge]=I("input",{elementType:xe,externalForwardedProps:w,additionalProps:q,ownerState:S}),[ye,Ce]=I("inputLabel",{elementType:at,externalForwardedProps:w,ownerState:S}),[Fe,Se]=I("htmlInput",{elementType:"input",externalForwardedProps:w,ownerState:S}),[ke,we]=I("formHelperText",{elementType:Qe,externalForwardedProps:w,ownerState:S}),[Pe,Ie]=I("select",{elementType:We,externalForwardedProps:w,ownerState:S}),ae=a.jsx(ve,{"aria-describedby":X,autoComplete:s,autoFocus:l,defaultValue:d,fullWidth:g,multiline:L,name:D,rows:Q,maxRows:J,minRows:E,type:ue,value:oe,id:k,inputRef:G,onBlur:M,onChange:O,onFocus:B,placeholder:_,inputProps:Se,slots:{input:j.htmlInput?Fe:void 0},...ge});return a.jsxs(be,{...he,children:[F!=null&&F!==""&&a.jsx(ye,{htmlFor:k,id:se,...Ce,children:F}),C?a.jsx(Pe,{"aria-describedby":X,id:k,labelId:se,value:oe,input:ae,...Ie,children:i}):ae,f&&a.jsx(ke,{id:X,...we,children:f})]})});/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. @@ -13,4 +13,4 @@ import{a as A,g as N,r as x,u as H,j as a,s as T,c as U,b as z,d as W,m as V,h a * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const xt=[["path",{d:"M19 2h-14a3 3 0 0 0 -3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3 -3v-14a3 3 0 0 0 -3 -3z",key:"svg-0"}]],ht=ee("filled","square-filled","SquareFilled",xt),bt=()=>{const[{modelName:e,clusterInfo:{status:t}}]=Me(),[{input:r,status:o},{setInput:s,generate:l,stop:i,clear:p}]=Re(),n=je(d=>{d.key==="Enter"&&!d.shiftKey&&(d.preventDefault(),l())});return a.jsx(ne,{"data-status":o,children:a.jsx(ct,{value:r,onChange:d=>s(d.target.value),multiline:!0,maxRows:4,placeholder:"Ask anything...",fullWidth:!0,onKeyDown:n,slotProps:{input:{sx:{flexDirection:"column"},endAdornment:a.jsxs(ne,{direction:"row",sx:{alignSelf:"flex-end",alignItems:"center",gap:2},children:[a.jsx(le,{variant:"text",sx:{color:"text.secondary"},startIcon:a.jsx(ut,{}),disabled:o==="opened"||o==="generating",onClick:p,children:"Clear"}),a.jsx(le,{size:"small",color:"primary",disabled:t!=="available",loading:o==="opened",onClick:()=>{o==="opened"?i():o==="closed"&&l()},children:o==="opened"?a.jsx(We,{size:"medium"}):o==="generating"?a.jsx(ht,{size:"1.25rem"}):a.jsx(ft,{size:"1.25rem"})})]})}}})})};function Ct(){return a.jsxs(Ee,{children:[a.jsx(De,{}),a.jsx(bt,{})]})}export{Ct as default}; + */const xt=[["path",{d:"M19 2h-14a3 3 0 0 0 -3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3 -3v-14a3 3 0 0 0 -3 -3z",key:"svg-0"}]],bt=ee("filled","square-filled","SquareFilled",xt),ht=()=>{const[{modelName:e,clusterInfo:{status:t}}]=Me(),[{input:r,status:o},{setInput:s,generate:l,stop:i,clear:u}]=Re(),n=je(d=>{if(d.key==="Enter"&&!d.shiftKey){d.preventDefault();const c=l();typeof c<"u"&&c!==null&&typeof c.then=="function"?c.then(()=>s("")):s("")}});return a.jsx(ne,{"data-status":o,children:a.jsx(ct,{value:r,onChange:d=>s(d.target.value),multiline:!0,maxRows:4,placeholder:"Ask anything...",fullWidth:!0,onKeyDown:n,slotProps:{input:{sx:{border:"1px solid",borderColor:"grey.300",borderRadius:2,boxShadow:"2px 2px 4px rgba(0,0,0,0.05)",flexDirection:"column","& textarea":{scrollbarWidth:"none",msOverflowStyle:"none","&::-webkit-scrollbar":{display:"none"}}},endAdornment:a.jsxs(ne,{direction:"row",sx:{alignSelf:"flex-end",alignItems:"center",gap:2},children:[a.jsx(le,{variant:"text",sx:{color:"text.secondary"},startIcon:a.jsx(ut,{}),disabled:o==="opened"||o==="generating",onClick:u,children:"Clear"}),a.jsx(le,{size:"small",color:"primary",disabled:t!=="available",loading:o==="opened",onClick:()=>{o==="opened"?i():o==="closed"&&(l(),s(""))},children:o==="opened"?a.jsx(Ue,{size:"medium"}):o==="generating"?a.jsx(bt,{size:"1.25rem"}):a.jsx(ft,{size:"1.25rem"})})]})}}})})};function yt(){return a.jsxs(Ee,{children:[a.jsx(De,{}),a.jsx(ht,{})]})}export{yt as default}; diff --git a/src/frontend/dist/assets/index-DUqwdQtq.js b/src/frontend/dist/assets/index-CVJoPuDa.js similarity index 99% rename from src/frontend/dist/assets/index-DUqwdQtq.js rename to src/frontend/dist/assets/index-CVJoPuDa.js index b64aa920..538874b0 100644 --- a/src/frontend/dist/assets/index-DUqwdQtq.js +++ b/src/frontend/dist/assets/index-CVJoPuDa.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/setup-CIsUOWdt.js","assets/main-layout-CMeEP11X.js","assets/main-layout-DVneG3Rq.css","assets/join-lEjOASt5.js","assets/chat-FgsII50J.js"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/setup-Cv5m9b5b.js","assets/main-layout-CE1joJ3-.js","assets/main-layout-DVneG3Rq.css","assets/join-DO7fVZkU.js","assets/chat-Dy7b1kF1.js"])))=>i.map(i=>d[i]); function MS(n,r){for(var l=0;lo[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function l(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=l(s);fetch(s.href,c)}})();function Na(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Tf={exports:{}},yl={};/** * @license React * react-jsx-runtime.production.js @@ -315,4 +315,4 @@ export default theme;`}function P0(n){return typeof n=="number"?`${(n*100).toFix 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},kO=function(){return Oe.createElement(us,null,Oe.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12A10,10 0 0,0 12,2Z`}))},$O={default:void 0,success:Oe.createElement(DO,null),warning:Oe.createElement(_O,null),error:Oe.createElement(zO,null),info:Oe.createElement(kO,null)},cr={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:$O,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:n1,transitionDuration:{enter:225,exit:195}},NO=function(r,l){var o=function(c){return typeof c=="number"||c===null};return o(r)?r:o(l)?l:cr.autoHideDuration},BO=function(r,l){var o=function(c,d){return d.some(function(h){return typeof c===h})};return o(r,["string","number"])?r:o(r,["object"])?Ve({},cr.transitionDuration,{},o(l,["object"])&&l,{},r):o(l,["string","number"])?l:o(l,["object"])?Ve({},cr.transitionDuration,{},l):cr.transitionDuration},LO=function(r,l){return function(o,s){return s===void 0&&(s=!1),s?Ve({},cr[o],{},l[o],{},r[o]):o==="autoHideDuration"?NO(r.autoHideDuration,l.autoHideDuration):o==="transitionDuration"?BO(r.transitionDuration,l.transitionDuration):r[o]||l[o]||cr[o]}};function Zl(n){return Object.entries(n).reduce(function(r,l){var o,s=l[0],c=l[1];return Ve({},r,(o={},o[s]=ih(c),o))},{})}var mi={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(r){return"notistack-MuiContent-"+r}},Ay=Zl({root:{height:0},entered:{height:"auto"}}),Gf="0px",Pf=175,a1=C.forwardRef(function(n,r){var l=n.children,o=n.in,s=n.onExited,c=C.useRef(null),d=C.useRef(null),h=Cd(r,d),p=function(){return c.current?c.current.clientHeight:0},m=function(T){T.style.height=Gf},y=function(T){var M=p(),D=qu({timeout:Pf,mode:"enter"}),_=D.duration,$=D.easing;T.style.transitionDuration=typeof _=="string"?_:_+"ms",T.style.height=M+"px",T.style.transitionTimingFunction=$||""},v=function(T){T.style.height="auto"},x=function(T){T.style.height=p()+"px"},O=function(T){e1(T);var M=qu({timeout:Pf,mode:"exit"}),D=M.duration,_=M.easing;T.style.transitionDuration=typeof D=="string"?D:D+"ms",T.style.height=Gf,T.style.transitionTimingFunction=_||""};return C.createElement(oh,{in:o,unmountOnExit:!0,onEnter:m,onEntered:v,onEntering:y,onExit:x,onExited:s,onExiting:O,nodeRef:d,timeout:Pf},function(E,T){return C.createElement("div",Object.assign({ref:h,className:mr(Ay.root,E==="entered"&&Ay.entered),style:Ve({pointerEvents:"all",overflow:"hidden",minHeight:Gf,transition:si("height")},E==="entered"&&{overflow:"visible"},{},E==="exited"&&!o&&{visibility:"hidden"})},T),C.createElement("div",{ref:c,className:mi.CollapseWrapper,style:{display:"flex",width:"100%"}},l))})});a1.displayName="Collapse";var Oy={right:"left",left:"right",bottom:"up",top:"down"},jO=function(r){return r.horizontal!=="center"?Oy[r.horizontal]:Oy[r.vertical]},UO=function(r){return"anchorOrigin"+lh(r)},HO=function(r){r===void 0&&(r={});var l={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(r).filter(function(o){return!l[o]}).reduce(function(o,s){var c;return Ve({},o,(c={},c[s]=r[s],c))},{})},YO=function(){};function Dl(n,r){return n.reduce(function(l,o){return o==null?l:function(){for(var c=arguments.length,d=new Array(c),h=0;h-1,$=M.snacks.findIndex(D)>-1;if(_||$)return M}return s.handleDisplaySnack(Ve({},M,{queue:[].concat(M.queue,[T])}))}),O},s.handleDisplaySnack=function(c){var d=c.snacks;return d.length>=s.maxSnack?s.handleDismissOldest(c):s.processQueue(c)},s.processQueue=function(c){var d=c.queue,h=c.snacks;return d.length>0?Ve({},c,{snacks:[].concat(h,[d[0]]),queue:d.slice(1,d.length)}):c},s.handleDismissOldest=function(c){if(c.snacks.some(function(y){return!y.open||y.requestClose}))return c;var d=!1,h=!1,p=c.snacks.reduce(function(y,v){return y+(v.open&&v.persist?1:0)},0);p===s.maxSnack&&(h=!0);var m=c.snacks.map(function(y){return!d&&(!y.persist||h)?(d=!0,y.entered?(y.onClose&&y.onClose(null,"maxsnack",y.id),s.props.onClose&&s.props.onClose(null,"maxsnack",y.id),Ve({},y,{open:!1})):Ve({},y,{requestClose:!0})):Ve({},y)});return Ve({},c,{snacks:m})},s.handleEnteredSnack=function(c,d,h){if(!gu(h))throw new Error("handleEnteredSnack Cannot be called with undefined key");s.setState(function(p){var m=p.snacks;return{snacks:m.map(function(y){return y.id===h?Ve({},y,{entered:!0}):Ve({},y)})}})},s.handleCloseSnack=function(c,d,h){s.props.onClose&&s.props.onClose(c,d,h);var p=h===void 0;s.setState(function(m){var y=m.snacks,v=m.queue;return{snacks:y.map(function(x){return!p&&x.id!==h?Ve({},x):x.entered?Ve({},x,{open:!1}):Ve({},x,{requestClose:!0})}),queue:v.filter(function(x){return x.id!==h})}})},s.closeSnackbar=function(c){var d=s.state.snacks.find(function(h){return h.id===c});gu(c)&&d&&d.onClose&&d.onClose(null,"instructed",c),s.handleCloseSnack(null,"instructed",c)},s.handleExitedSnack=function(c,d){if(!gu(d))throw new Error("handleExitedSnack Cannot be called with undefined key");s.setState(function(h){var p=s.processQueue(Ve({},h,{snacks:h.snacks.filter(function(m){return m.id!==d})}));return p.queue.length===0?p:s.handleDismissOldest(p)})},s.enqueueSnackbar,s.closeSnackbar,s.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:s.enqueueSnackbar.bind(Sy(s)),closeSnackbar:s.closeSnackbar.bind(Sy(s))}},s}var l=r.prototype;return l.render=function(){var s=this,c=this.state.contextValue,d=this.props,h=d.domRoot,p=d.children,m=d.dense,y=m===void 0?!1:m,v=d.Components,x=v===void 0?{}:v,O=d.classes,E=this.state.snacks.reduce(function(M,D){var _,$=lh(D.anchorOrigin),B=M[$]||[];return Ve({},M,(_={},_[$]=[].concat(B,[D]),_))},{}),T=Object.keys(E).map(function(M){var D=E[M],_=D[0];return Oe.createElement(QO,{key:M,dense:y,anchorOrigin:_.anchorOrigin,classes:O},D.map(function($){return Oe.createElement(XO,{key:$.id,snack:$,classes:O,Component:x[$.variant],onClose:s.handleCloseSnack,onEnter:s.props.onEnter,onExit:s.props.onExit,onExited:Dl([s.handleExitedSnack,s.props.onExited],$.id),onEntered:Dl([s.handleEnteredSnack,s.props.onEntered],$.id)})}))});return Oe.createElement(Fv.Provider,{value:c},p,h?Wy.createPortal(T,h):T)},Wv(r,[{key:"maxSnack",get:function(){return this.props.maxSnack||cr.maxSnack}}]),r})(C.Component),IO=(function(){return C.useContext(Fv)});function WO(n){return ct("MuiTitleIcon",n)}rt("MuiTitleIcon",["root","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning"]);const JO=n=>{const{classes:r,variant:l,color:o}=n,s={root:["root",l&&`variant${ge(l)}`,o&&`color${ge(o)}`],outlineOuter:["outlineOuter"],outlineInner:["outlineInner"]};return gn(s,WO,r)},FO=["inherit","primary","secondary","error","info","success","warning"],ew=Me("div",{name:"MuiTitleIcon",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:{color:l,variant:o}}=n;return[r.root,l&&r[`color${ge(l)}`],o&&r[`variant${ge(o)}`]]}})(({theme:n})=>{const{palette:r}=n;return{position:"relative",width:"2.25rem",height:"2.25rem",display:"inline-flex",justifyContent:"center",alignItems:"center",color:"inherit",backgroundColor:"transparent",border:"none",outline:"none",fontSize:"1.25rem",[`& .${p5.root}, & .tabler-icon, & svg`]:{width:"1em",height:"1em"},variants:[...FO.map(l=>({props:{color:l},style:{color:l==="inherit"?"inherit":l==="default"?r.text.primary:r[l].main}}))]}}),tw=Me("div",{name:"MuiTitleIcon",slot:"OutlineOuter"})(()=>({boxSizing:"border-box",width:"2.25rem",height:"2.25rem",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",opacity:.1,borderWidth:"1.667px",borderStyle:"solid",borderColor:"currentcolor",variants:[{props:{variant:"circle"},style:{borderRadius:"50%"}},{props:{variant:"square"},style:{borderRadius:"0.38rem"}}]})),nw=Me("div",{name:"MuiTitleIcon",slot:"OutlineInner"})(()=>({boxSizing:"border-box",width:"1.75rem",height:"1.75rem",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",opacity:.3,borderWidth:"1.667px",borderStyle:"solid",borderColor:"currentcolor",variants:[{props:{variant:"circle"},style:{borderRadius:"50%"}},{props:{variant:"square"},style:{borderRadius:"0.25em"}}]})),Xw=C.forwardRef(function(r,l){const o=Lv({props:r,name:"MuiTitleIcon"}),{children:s,classes:c,variant:d="circle",color:h="default",className:p,...m}=o,y={...o,variant:d,color:h},v=JO(y);return W.jsxs(ew,{ref:l,className:Ze(v.root,p),ownerState:y,role:"img",...m,children:[W.jsx(tw,{className:v.outlineOuter,ownerState:y}),W.jsx(nw,{className:v.outlineInner,ownerState:y}),s]})}),aw=Me("div",{name:"MuiTitleIconForm",slot:"Root"})(({theme:n})=>{const{palette:r}=n;return{flex:"none",width:"3rem",height:"3rem",aspectRatio:"1 / 1",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"0.375rem",backgroundColor:r.grey[250],overflow:"hidden"}}),rw=Me("div",{name:"MuiTitleIconForm",slot:"Image"})(({theme:n})=>{const{palette:r}=n;return{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",background:"url(/assets/common/form-half-one.png) center / cover no-repeat",mixBlendMode:"multiply"}}),Zw=()=>W.jsx(aw,{children:W.jsx(rw,{})}),iw=Me("div")(({theme:n})=>{const{palette:r}=n;return{display:"flex",flexFlow:"row nowrap",alignItems:"center",justifyContent:"flex-start",gap:"0.75rem",paddingBlockStart:"0.75rem",color:r.grey[700]}}),lw=Me("div")(({theme:n})=>{const{palette:r}=n;return{position:"absolute",bottom:0,left:"-1rem",right:"-1rem"}}),ow=150,uw=n=>{const{severity:r,autoHideDuration:l=0}=n,[o,s]=C.useState(0);return C.useEffect(()=>{if(l<=0)return;const c=l/100;let d,h;const p=()=>d=requestAnimationFrame(m=>{h||(h=m);const y=Math.min(100,Math.ceil((m+ow-h)/c));s(y),y<100&&p()});return p(),()=>{d&&cancelAnimationFrame(d)}},[l]),W.jsx(lw,{children:W.jsx(M5,{variant:"determinate",color:r,value:o})})},sw=C.forwardRef((n,r)=>{const{autoHideDuration:l,variant:o,title:s,children:c,onClose:d,action:h,dismissLabel:p="Dismiss",onDismiss:m,...y}=n;let v=s,x=c;!v&&x&&(v=x,x=void 0);const O=m&&W.jsx(u5,{variant:"text",color:"inherit",onClick:m,children:p}),E=(!!h||!!O)&&W.jsxs(W.Fragment,{children:[O,h]})||void 0;return o==="notification"?W.jsxs(F0,{...y,variant:o,onClose:d,ref:r,children:[!!v&&W.jsx(ty,{children:v}),x,E&&W.jsx(iw,{children:E}),l&&l>0&&W.jsx(uw,{...n})]}):W.jsxs(F0,{...y,variant:o,onClose:d,action:E,ref:r,children:[!!v&&W.jsx(ty,{children:v}),x]})}),Al=C.forwardRef((n,r)=>{const{id:l,variant:o,title:s,message:c,action:d,notification:h=!0,closable:p=h,dismissAble:m,persist:y,autoHideDuration:v,hideIconVariant:x,className:O,style:E}=n,{closeSnackbar:T}=IO(),M=o==="default"?"info":o,D=typeof d=="function"?d(l):d,_=p&&(()=>T(l))||void 0,$=m&&(()=>T(l))||void 0,B=v||void 0;return W.jsx(sw,{variant:h&&"notification"||"outlined",severity:M,icon:x?!1:void 0,onClose:_,onDismiss:$,action:D,title:s,autoHideDuration:B,ref:r,className:O,style:E,children:c})}),cw={default:Al,info:Al,success:Al,warning:Al,error:Al},o1=({children:n})=>W.jsx(KO,{anchorOrigin:{vertical:"bottom",horizontal:"right"},maxSnack:5,autoHideDuration:5e3,Components:cw,style:{width:"21.25rem"},children:n}),fw=n=>{const{palette:r,overlays:l}=n;return{defaultProps:{variant:"outlined"},styleOverrides:{root:{variants:[{props:({ownerState:o})=>!o.square,style:{borderRadius:"0.75rem"}},{props:{variant:"outlined"},style:{border:`1px solid ${r.divider}`}},{props:{variant:"overlay"},style:{border:`1px solid ${r.divider}`,boxShadow:l.shadowMiddle}}]}}}},dw=n=>{const{spacing:r}=n;return{defaultProps:{slotProps:{paper:{variant:"overlay"},backdrop:{invisible:!0}}},styleOverrides:{root:{[`& .${gd.root}`]:{marginBlock:r(1.5)}},paper:{padding:r(1)}}}},hw=n=>{const{spacing:r}=n;return{defaultProps:{},styleOverrides:{}}},mw=n=>{const{palette:r,spacing:l}=n;return{defaultProps:{},styleOverrides:{root:{padding:l(1),gap:l(.75),"&:hover":{backgroundColor:r.grey[200]},[`& + .${gd.root}`]:{margin:0,marginBlock:l(1.5)},[`& .${gd.inset}`]:{margin:0,marginInline:`${la.small}rem`},[`& .${A5.root}`]:{minWidth:`${la.small}rem`}}}}},pw=Object.freeze(Object.defineProperty({__proto__:null,MuiAlert:cO,MuiAlertTitle:sO,MuiBackdrop:fO,MuiButton:hA,MuiButtonBase:mA,MuiButtonGroup:pA,MuiChip:GA,MuiCssBaseline:fA,MuiDialog:gO,MuiDialogActions:dO,MuiDialogContent:mO,MuiDialogContentText:pO,MuiDialogTitle:hO,MuiDivider:PA,MuiFormControl:yA,MuiFormHelperText:bA,MuiFormLabel:vA,MuiIconButton:gA,MuiInputAdornment:xA,MuiInputBase:TA,MuiInputLabel:SA,MuiLinearProgress:yO,MuiList:XA,MuiListItem:ZA,MuiListItemAvatar:WA,MuiListItemButton:QA,MuiListItemIcon:KA,MuiListItemText:IA,MuiMenu:dw,MuiMenuItem:mw,MuiMenuList:hw,MuiOutlinedInput:EA,MuiPaper:fw,MuiSelect:LA,MuiSlider:HA,MuiSnackbar:bO,MuiSnackbarContent:vO,MuiTable:FA,MuiTableBody:tO,MuiTableCell:aO,MuiTableContainer:JA,MuiTableFooter:rO,MuiTableHead:eO,MuiTablePagination:iO,MuiTablePaginationActions:lO,MuiTableRow:nO,MuiTableSortLabel:oO,MuiTextField:MA,MuiToggleButton:YA,MuiToggleButtonGroup:qA,MuiTypography:uO,SnackbarProvider:o1},Symbol.toStringTag,{value:"Module"})),Ll=Jd({palette:iA,typography:lA,spacing:n=>`${n*8/Qv}rem`,overlays:oA});Ll.components=Ll.components||{};Object.entries(pw).forEach(([n,r])=>{n.startsWith("Mui")&&typeof r=="function"&&(Ll.components[n]=r(Ll))});const gw=({children:n})=>W.jsx(BE,{theme:{[Tn]:Ll},children:W.jsx(o1,{children:W.jsx(_5,{dateAdapter:aA,localeText:{okButtonLabel:"Apply"},children:n})})}),yw="modulepreload",vw=function(n){return"/"+n},zy={},uh=function(r,l,o){let s=Promise.resolve();if(l&&l.length>0){let p=function(m){return Promise.all(m.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),h=d?.nonce||d?.getAttribute("nonce");s=p(l.map(m=>{if(m=vw(m),m in zy)return;zy[m]=!0;const y=m.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${v}`))return;const x=document.createElement("link");if(x.rel=y?"stylesheet":yw,y||(x.as="script"),x.crossOrigin="",x.href=m,h&&x.setAttribute("nonce",h),document.head.appendChild(x),y)return new Promise((O,E)=>{x.addEventListener("load",O),x.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${m}`)))})}))}function c(d){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=d,window.dispatchEvent(h),!h.defaultPrevented)throw d}return s.then(d=>{for(const h of d||[])h.status==="rejected"&&c(h.reason);return r().catch(c)})},bw=n=>r=>{const{url:l,method:o="GET",afterFetch:s=$=>$}=n,{debugName:c,onStatusChange:d,onMessage:h,onError:p}=r,m=new TextDecoder;let y,v;const x=(...$)=>{console.log(`%c http-stream.ts ${o} ${l} ${c??""}`,"color: white; background: darkcyan; padding: 2px 4px; border-radius: 2px;",...$)},O=$=>{x("onStatusChange",$);try{d?.($)}catch(B){x("onStatusChange Error",B)}},E=$=>{try{h?.($)}catch(B){x("onMessage Error",B)}},T=async()=>{try{v&&(await v.cancel(),v=void 0)}catch($){x("reader cancel error",$)}};return Object.freeze({send:($={})=>{const{headers:B,body:z,data:L}=$;O("connecting"),x("send",L),y=new AbortController;let q;const X=L?.type==="queue_info"?0:5e3;X>0&&(q=setTimeout(()=>{x(`fetch timeout: triggering abort after ${X}ms`);try{y?.abort()}catch(K){x("abort error during timeout",K)}O("error"),p?.(new Error("The request timed out. Please try again later."))},X)),fetch(l,{headers:{"Content-Type":"application/json",...B},method:o,body:L&&JSON.stringify(L)||z,signal:y.signal}).then(async K=>{if(q&&(clearTimeout(q),q=void 0),K.status!==200||K.headers.get("content-type")!=="application/x-ndjson"){x("fetch status error or content-type error",K),O("error");return}if(v=K.body?.getReader(),!v){x("getReader error",K),O("error");return}O("connected");let F="";for(;;){const{done:S,value:re}=await v.read();if(S){await T(),O("disconnected");break}const G=m.decode(re);F+=G;const Z=F.split(` `);F=Z.pop()||"",Z.forEach(w=>{try{const H=s(JSON.parse(w));E(H)}catch(H){x("Parse Message Error",H)}})}}).catch(async K=>{q&&(clearTimeout(q),q=void 0),await T(),x("fetch error",K),O("error"),p?.(K)}).finally(async()=>{q&&(clearTimeout(q),q=void 0),await T(),y=void 0})},abort:()=>{try{y?.abort(),y=void 0}catch($){x("abort error",$)}v?.cancel(),v=void 0,O("disconnected")}})},ss="",Sw=async()=>{const r=await(await fetch(`${ss}/model/list`,{method:"GET"})).json();if(r.type!=="model_list")throw new Error(`Invalid message type: ${r.type}.`);return r.data},xw=async n=>{const l=await(await fetch(`${ss}/scheduler/init`,{method:"POST",body:JSON.stringify(n)})).json();if(l.type!=="scheduler_init")throw new Error(`Invalid message type: ${l.type}.`);return l.data},Cw=bw({url:`${ss}/cluster/status`,method:"GET"}),ky=n=>{const r=C.useRef(void 0);return r.current||(r.current={value:typeof n=="function"?n():n}),r.current.value},Tw=n=>{const r=C.useRef(void 0);return r.current||(r.current={callback:n}),r.current.callback},Bu=n=>{const r=C.useRef(void 0);return r.current=n,Tw(((...o)=>r.current?.(...o)))},Ew="/assets/qwen-JvO50h5P.png",$y=(...n)=>{console.log("%c cluster.tsx ","color: white; background: darkcyan;",...n)},u1=C.createContext(void 0),{Provider:Mw}=u1,Aw=({children:n})=>{const[r,l]=C.useState("local"),[o,s]=C.useState(1),[c,d]=C.useState(""),[h,p]=C.useState([]);C.useEffect(()=>{Sw().then(M=>{p(M.map(D=>({name:D,displayName:D,logoUrl:Ew})))})},[]),C.useEffect(()=>{h.length&&d(h[0].name)},[h]);const[m,y]=C.useState(()=>({id:"",status:"idle",nodeJoinCommand:{},initNodesNumber:4})),[v,x]=C.useState(()=>[]);C.useMemo(()=>{const D=Cw({onMessage:_=>{if(_.type==="cluster_status"){const{data:{status:$,init_nodes_num:B,model_name:z,node_join_command:L,node_list:q}}=_;y(J=>{const X={...J,status:$,initNodesNumber:B||0,modelName:z||"",nodeJoinCommand:L||{}};return JSON.stringify(X)!==JSON.stringify(J)?($y("setClusterInfo",X),X):J}),x(J=>{let X=q.map(({node_id:S,status:re,gpu_name:G,gpu_memory:Z})=>({id:S,status:re,gpuName:G,gpuMemory:Z}));const K=J.filter(S=>X.some(re=>re.id===S.id)),F=J.filter(S=>!X.some(re=>re.id===S.id)).map(S=>({...S,status:"failed"}));return JSON.stringify(X)===JSON.stringify(K)&&(X=[...X,...F]),JSON.stringify(X)!==JSON.stringify(J)?($y("setNodeInfoList",X),X):J})}}});return D.send(),D},[]);const O=Bu(async()=>{if(o<1)throw new Error("initNodesNumber must be greater than 0");if(!c)throw new Error("modelName is required");await xw({model_name:c,init_nodes_num:o,is_local_network:r==="local"})}),E=C.useMemo(()=>({setNetworkType:l,setInitNodesNumber:s,setModelName:d,init:O}),[]),T=C.useMemo(()=>[{networkType:r,initNodesNumber:o,modelName:c,modelInfoList:h,clusterInfo:m,nodeInfoList:v},E],[r,o,c,h,m,v,E]);return W.jsx(Mw,{value:T,children:n})},s1=()=>{const n=C.useContext(u1);if(!n)throw new Error("useCluster must be used within a ClusterProvider");return n},Ow=(...n)=>{},ww=({children:n})=>{const[{modelName:r,clusterInfo:{status:l}}]=s1(),[o,s]=C.useState(""),[c,d]=C.useState("closed"),[h,p]=C.useState([]),m=ky(()=>Rw({onOpen:()=>d("opened"),onClose:()=>d("closed"),onError:T=>d("error"),onMessage:T=>{const{data:{id:M,object:D,model:_,created:$,choices:B,usage:z}}=T;D==="chat.completion.chunk"&&B?.length>0&&(B[0].delta.content&&d("generating"),p(L=>{let q=L;return B.forEach(({delta:{role:J,content:X}={}})=>{if(typeof X!="string")return;J=J||"assistant";let K=q[q.length-1];if(K&&K.role===J){if(K.content+X===K.content)return;K={...K,content:K.content+X},q=[...q.slice(0,-1),K]}else K={id:M,role:J,content:X,createdAt:$},q=[...q,K];Ow("onMessage","update last message",K.content)}),q}))}})),y=Bu(T=>{if(l!=="available"||c==="opened"||c==="generating"||!r)return;let M=h;if(T){const D=h.findIndex($=>$.id===T.id),_=h[D];if(!_)return;M=M.slice(0,D+(_.role==="user"?1:0))}else{const D=o.trim();if(!D)return;s("");const _=performance.now();M=[...M,{id:_.toString(),role:"user",content:D,createdAt:_}]}p(M),m.connect(r,M)}),v=Bu(()=>{c==="opened"&&m.disconnect()}),x=Bu(()=>{v(),c!=="opened"&&p([])}),O=ky({setInput:s,generate:y,stop:v,clear:x}),E=C.useMemo(()=>[{input:o,status:c,messages:h},O],[o,c,h,O]);return W.jsx(c1.Provider,{value:E,children:n})},c1=C.createContext(void 0),Qw=()=>{const n=C.useContext(c1);if(!n)throw new Error("useChat must be used within a ChatProvider");return n},Rw=n=>{const{onOpen:r,onClose:l,onError:o,onMessage:s}=n,c=new TextDecoder;let d,h;return{connect:(y,v)=>{h=new AbortController,fetch(`${ss}/v1/chat/completions`,{method:"POST",body:JSON.stringify({stream:!0,model:y,messages:v,max_tokens:2048,sampling_params:{top_k:3}}),signal:h.signal}).then(async x=>{const O=x.status,E=x.headers.get("Content-Type");if(O!==200){o?.(new Error(`[SSE] Failed to connect: ${O}`));return}if(!E?.includes("text/event-stream")){o?.(new Error(`[SSE] Invalid content type: ${E}`));return}if(d=x.body?.getReader(),!d){o?.(new Error("[SSE] Failed to get reader"));return}r?.();let T="";const M=D=>{const _={event:"message",data:void 0};D.forEach($=>{const B=$.indexOf(":");if(B<=0)return;const z=$.slice(0,B).trim(),L=$.slice(B+1).trim();if(!L.startsWith(":")){switch(z){case"event":_.event=L;break;case"id":_.id=L;break;case"data":try{const q=JSON.parse(L),J=X=>{X&&(Array.isArray(X)?X.forEach((K,F)=>{K===null?X[F]=void 0:J(K)}):typeof X=="object"&&Object.keys(X).forEach(K=>{X[K]===null?delete X[K]:J(X[K])}))};J(q),_.data=q}catch{_.data=L}break}_.data!==void 0&&s?.(_)}})};for(;;){const{done:D,value:_}=await d.read();if(D){l?.();return}const $=c.decode(_);T+=$;const B=T.split(` -`);T=B.pop()||"",M(B)}}).catch(x=>{if(x instanceof Error&&x.name==="AbortError"){l?.();return}o?.(x)})},disconnect:()=>{d?.cancel(),d=void 0,h?.abort("stop"),h=void 0,l?.()}}},Dw=C.lazy(()=>uh(()=>import("./setup-CIsUOWdt.js"),__vite__mapDeps([0,1,2]))),_w=C.lazy(()=>uh(()=>import("./join-lEjOASt5.js"),__vite__mapDeps([3,1,2]))),zw=C.lazy(()=>uh(()=>import("./chat-FgsII50J.js"),__vite__mapDeps([4,1,2]))),If=(...n)=>{console.log("%c router.tsx ","color: white; background: purple;",...n)},kw=()=>{const n=wd(),[{clusterInfo:{status:r}}]=s1();return C.useEffect(()=>{switch(If("cluster status",r),r){case"idle":case"waiting":If("no need to navigate");break;default:If("navigate to /chat"),n("/chat");break}},[n,r]),c2([{path:"/",element:W.jsx(T2,{to:"/setup",replace:!0})},{path:"/setup",element:W.jsx(C.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(Dw,{})})},{path:"/join",element:W.jsx(C.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(_w,{})})},{path:"/chat",element:W.jsx(C.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(zw,{})})},{path:"*",element:W.jsx("div",{children:"404 - Page Not Found"})}])},$w=Me("div")(({theme:n})=>{const{palette:r,typography:l}=n;return{...l.body2,color:r.text.primary,backgroundColor:r.background.default,width:"100%",height:"100%",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center"}}),Nw=()=>W.jsx($w,{children:W.jsx(Aw,{children:W.jsx(ww,{children:W.jsx(kw,{})})})});$S.createRoot(document.getElementById("root")).render(W.jsx(C.StrictMode,{children:W.jsx(Z2,{children:W.jsxs(gw,{children:[W.jsx(h5,{}),W.jsx(Nw,{})]})})}));export{Tn as $,F0 as A,Vv as B,Gd as C,vv as D,Hv as E,Oe as F,Z0 as G,aM as H,Pv as I,iM as J,nM as K,Ky as L,Pd as M,Wy as N,wu as O,Uv as P,tM as Q,Bw as R,O5 as S,KM as T,FM as U,jw as V,fr as W,Gl as X,_E as Y,iT as Z,qE as _,ct as a,Jd as a0,rM as a1,qv as a2,Hw as a3,m5 as a4,Yw as a5,Lt as a6,WE as a7,qw as a8,Lw as a9,AT as aa,A5 as ab,gd as ac,Uw as ad,ar as ae,zE as af,bi as ag,La as ah,Vw as ai,w5 as aj,Gw as ak,ry as al,Zw as am,Xw as an,_A as ao,my as ap,kA as aq,NA as ar,Na as as,ge as b,Ze as c,gn as d,Bl as e,Pw as f,rt as g,en as h,Pl as i,W as j,sd as k,Bu as l,Gt as m,s1 as n,wd as o,u5 as p,jv as q,C as r,Me as s,R5 as t,tn as u,Qd as v,ii as w,Qw as x,nC as y,hr as z}; +`);T=B.pop()||"",M(B)}}).catch(x=>{if(x instanceof Error&&x.name==="AbortError"){l?.();return}o?.(x)})},disconnect:()=>{d?.cancel(),d=void 0,h?.abort("stop"),h=void 0,l?.()}}},Dw=C.lazy(()=>uh(()=>import("./setup-Cv5m9b5b.js"),__vite__mapDeps([0,1,2]))),_w=C.lazy(()=>uh(()=>import("./join-DO7fVZkU.js"),__vite__mapDeps([3,1,2]))),zw=C.lazy(()=>uh(()=>import("./chat-Dy7b1kF1.js"),__vite__mapDeps([4,1,2]))),If=(...n)=>{console.log("%c router.tsx ","color: white; background: purple;",...n)},kw=()=>{const n=wd(),[{clusterInfo:{status:r}}]=s1();return C.useEffect(()=>{switch(If("cluster status",r),r){case"idle":case"waiting":If("no need to navigate");break;default:If("navigate to /chat"),n("/chat");break}},[n,r]),c2([{path:"/",element:W.jsx(T2,{to:"/setup",replace:!0})},{path:"/setup",element:W.jsx(C.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(Dw,{})})},{path:"/join",element:W.jsx(C.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(_w,{})})},{path:"/chat",element:W.jsx(C.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(zw,{})})},{path:"*",element:W.jsx("div",{children:"404 - Page Not Found"})}])},$w=Me("div")(({theme:n})=>{const{palette:r,typography:l}=n;return{...l.body2,color:r.text.primary,backgroundColor:r.background.default,width:"100%",height:"100%",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center"}}),Nw=()=>W.jsx($w,{children:W.jsx(Aw,{children:W.jsx(ww,{children:W.jsx(kw,{})})})});$S.createRoot(document.getElementById("root")).render(W.jsx(C.StrictMode,{children:W.jsx(Z2,{children:W.jsxs(gw,{children:[W.jsx(h5,{}),W.jsx(Nw,{})]})})}));export{iT as $,F0 as A,Vv as B,Gd as C,vv as D,Hv as E,Oe as F,Z0 as G,aM as H,Pv as I,iM as J,nM as K,Ky as L,Pd as M,Wy as N,AT as O,wu as P,Uv as Q,Bw as R,O5 as S,KM as T,tM as U,FM as V,jw as W,fr as X,Gl as Y,_E as Z,qE as _,ct as a,Tn as a0,Jd as a1,rM as a2,qv as a3,Hw as a4,m5 as a5,Yw as a6,Lt as a7,WE as a8,qw as a9,Lw as aa,A5 as ab,gd as ac,Uw as ad,ar as ae,zE as af,bi as ag,La as ah,th as ai,I0 as aj,Vw as ak,w5 as al,Gw as am,ry as an,Zw as ao,Xw as ap,_A as aq,my as ar,kA as as,NA as at,Na as au,ge as b,Ze as c,gn as d,Bl as e,Pw as f,rt as g,en as h,Pl as i,W as j,sd as k,Bu as l,Gt as m,s1 as n,wd as o,u5 as p,jv as q,C as r,Me as s,R5 as t,tn as u,Qd as v,ii as w,Qw as x,nC as y,hr as z}; diff --git a/src/frontend/dist/assets/join-lEjOASt5.js b/src/frontend/dist/assets/join-DO7fVZkU.js similarity index 94% rename from src/frontend/dist/assets/join-lEjOASt5.js rename to src/frontend/dist/assets/join-DO7fVZkU.js index 28e3f623..2e9b59fc 100644 --- a/src/frontend/dist/assets/join-lEjOASt5.js +++ b/src/frontend/dist/assets/join-DO7fVZkU.js @@ -1,4 +1,4 @@ -import{i as l,n as c,r as u,j as e,T as r,s as h,A as a,p,L as m,S as x}from"./index-DUqwdQtq.js";import{M as y,J as f,N as j}from"./main-layout-CMeEP11X.js";/** +import{i as l,n as c,r as u,j as e,T as r,s as h,A as a,p,L as m,S as x}from"./index-CVJoPuDa.js";import{M as y,J as f,N as j}from"./main-layout-CE1joJ3-.js";/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. diff --git a/src/frontend/dist/assets/main-layout-CE1joJ3-.js b/src/frontend/dist/assets/main-layout-CE1joJ3-.js new file mode 100644 index 00000000..5afb508d --- /dev/null +++ b/src/frontend/dist/assets/main-layout-CE1joJ3-.js @@ -0,0 +1,401 @@ +import{y as m6,z as g6,r as _,C as b6,D as y6,j as R,c as je,_ as v6,R as us,E as T6,F as ls,G as Bf,H as x6,J as E6,k as Vt,K as S6,M as ar,N as w6,a as mt,g as at,d as Ye,O as Wl,u as Xe,s as le,P as Aa,Q as A6,U as Ca,m as St,V as ka,b as Et,W as C6,X as Ff,Y as k6,Z as Va,w as xt,$ as I6,a0 as N6,a1 as M6,a2 as R6,a3 as po,v as Yl,a4 as D6,a5 as P6,T as Ge,q as Wn,a6 as L6,a7 as Gl,h as Xl,a8 as ra,a9 as O6,aa as Dc,B as _6,ab as Pc,ac as Lc,ad as B6,ae as Ln,af as F6,ag as Hf,ah as zf,ai as H6,aj as Oc,ak as z6,al as U6,am as V6,an as _c,i as In,ao as j6,ap as Bc,aq as q6,ar as Fc,as as Ls,I as Kr,at as Uf,p as Vf,n as ja,S as Qe,l as $s,au as jf,x as qf}from"./index-CVJoPuDa.js";function $6(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,a=m6("div",{shouldForwardProp:o=>o!=="theme"&&o!=="sx"&&o!=="as"})(g6);return _.forwardRef(function(u,l){const c=b6(n),{className:d,component:p="div",...f}=y6(u);return R.jsx(a,{as:p,ref:l,className:je(d,i?i(r):r),theme:t&&c[t]||c,...f})})}function W6(e,t){return _.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function Y6(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function G6(e){return parseFloat(e)}function Hc(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function $f(e,t=166){let n;function r(...i){const a=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function fn(e){return e&&e.ownerDocument||document}function sr(e){return fn(e).defaultView||window}function zc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function ju(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:a}=_.useRef(t!==void 0),[s,o]=_.useState(n),u=a?t:s,l=_.useCallback(c=>{a||o(c)},[]);return[u,l]}function X6(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function K6(e,t){if(!e)return t;function n(s,o){const u={};return Object.keys(o).forEach(l=>{X6(l,o[l])&&typeof s[l]=="function"&&(u[l]=(...c)=>{s[l](...c),o[l](...c)})}),u}if(typeof e=="function"||typeof t=="function")return s=>{const o=typeof t=="function"?t(s):t,u=typeof e=="function"?e({...s,...o}):e,l=je(s?.className,o?.className,u?.className),c=n(u,o);return{...o,...u,...c,...!!l&&{className:l},...o?.style&&u?.style&&{style:{...o.style,...u.style}},...o?.sx&&u?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,i=n(e,r),a=je(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const Uc={disabled:!1};var Q6=function(t){return t.scrollTop},ia="unmounted",Ur="exited",Vr="entering",li="entered",qu="exiting",Yn=(function(e){v6(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=i,o=s&&!s.isMounting?r.enter:r.appear,u;return a.appearStatus=null,r.in?o?(u=Ur,a.appearStatus=Vr):u=li:r.unmountOnExit||r.mountOnEnter?u=ia:u=Ur,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===ia?{status:Ur}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Vr&&s!==li&&(a=Vr):(s===Vr||s===li)&&(a=qu)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,s,o;return a=s=o=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,o=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:o}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Vr){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:us.findDOMNode(this);s&&Q6(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ur&&this.setState({status:ia})},n.performEnter=function(i){var a=this,s=this.props.enter,o=this.context?this.context.isMounting:i,u=this.props.nodeRef?[o]:[us.findDOMNode(this),o],l=u[0],c=u[1],d=this.getTimeouts(),p=o?d.appear:d.enter;if(!i&&!s||Uc.disabled){this.safeSetState({status:li},function(){a.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:Vr},function(){a.props.onEntering(l,c),a.onTransitionEnd(p,function(){a.safeSetState({status:li},function(){a.props.onEntered(l,c)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:us.findDOMNode(this);if(!a||Uc.disabled){this.safeSetState({status:Ur},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:qu},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Ur},function(){i.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,a.nextCallback=null,i(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:us.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===ia)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var o=T6(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ls.createElement(Bf.Provider,{value:null},typeof s=="function"?s(i,o):ls.cloneElement(ls.Children.only(s),o))},t})(ls.Component);Yn.contextType=Bf;Yn.propTypes={};function ai(){}Yn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ai,onEntering:ai,onEntered:ai,onExit:ai,onExiting:ai,onExited:ai};Yn.UNMOUNTED=ia;Yn.EXITED=Ur;Yn.ENTERING=Vr;Yn.ENTERED=li;Yn.EXITING=qu;const Wf=e=>e.scrollTop;function Ws(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}var nn="top",wn="bottom",An="right",rn="left",Kl="auto",qa=[nn,wn,An,rn],Ei="start",Ia="end",Z6="clippingParents",Yf="viewport",qi="popper",J6="reference",Vc=qa.reduce(function(e,t){return e.concat([t+"-"+Ei,t+"-"+Ia])},[]),Gf=[].concat(qa,[Kl]).reduce(function(e,t){return e.concat([t,t+"-"+Ei,t+"-"+Ia])},[]),eg="beforeRead",tg="read",ng="afterRead",rg="beforeMain",ig="main",ag="afterMain",sg="beforeWrite",og="write",ug="afterWrite",lg=[eg,tg,ng,rg,ig,ag,sg,og,ug];function $n(e){return e?(e.nodeName||"").toLowerCase():null}function pn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Qr(e){var t=pn(e).Element;return e instanceof t||e instanceof Element}function xn(e){var t=pn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ql(e){if(typeof ShadowRoot>"u")return!1;var t=pn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function cg(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!xn(a)||!$n(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(s){var o=i[s];o===!1?a.removeAttribute(s):a.setAttribute(s,o===!0?"":o)}))})}function dg(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),o=s.reduce(function(u,l){return u[l]="",u},{});!xn(i)||!$n(i)||(Object.assign(i.style,o),Object.keys(a).forEach(function(u){i.removeAttribute(u)}))})}}const hg={name:"applyStyles",enabled:!0,phase:"write",fn:cg,effect:dg,requires:["computeStyles"]};function Un(e){return e.split("-")[0]}var Wr=Math.max,Ys=Math.min,Si=Math.round;function $u(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Xf(){return!/^((?!chrome|android).)*safari/i.test($u())}function wi(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&xn(e)&&(i=e.offsetWidth>0&&Si(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Si(r.height)/e.offsetHeight||1);var s=Qr(e)?pn(e):window,o=s.visualViewport,u=!Xf()&&n,l=(r.left+(u&&o?o.offsetLeft:0))/i,c=(r.top+(u&&o?o.offsetTop:0))/a,d=r.width/i,p=r.height/a;return{width:d,height:p,top:c,right:l+d,bottom:c+p,left:l,x:l,y:c}}function Zl(e){var t=wi(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Kf(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ql(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function or(e){return pn(e).getComputedStyle(e)}function fg(e){return["table","td","th"].indexOf($n(e))>=0}function Rr(e){return((Qr(e)?e.ownerDocument:e.document)||window.document).documentElement}function mo(e){return $n(e)==="html"?e:e.assignedSlot||e.parentNode||(Ql(e)?e.host:null)||Rr(e)}function jc(e){return!xn(e)||or(e).position==="fixed"?null:e.offsetParent}function pg(e){var t=/firefox/i.test($u()),n=/Trident/i.test($u());if(n&&xn(e)){var r=or(e);if(r.position==="fixed")return null}var i=mo(e);for(Ql(i)&&(i=i.host);xn(i)&&["html","body"].indexOf($n(i))<0;){var a=or(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function $a(e){for(var t=pn(e),n=jc(e);n&&fg(n)&&or(n).position==="static";)n=jc(n);return n&&($n(n)==="html"||$n(n)==="body"&&or(n).position==="static")?t:n||pg(e)||t}function Jl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ua(e,t,n){return Wr(e,Ys(t,n))}function mg(e,t,n){var r=ua(e,t,n);return r>n?n:r}function Qf(){return{top:0,right:0,bottom:0,left:0}}function Zf(e){return Object.assign({},Qf(),e)}function Jf(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var gg=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Zf(typeof t!="number"?t:Jf(t,qa))};function bg(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,o=Un(n.placement),u=Jl(o),l=[rn,An].indexOf(o)>=0,c=l?"height":"width";if(!(!a||!s)){var d=gg(i.padding,n),p=Zl(a),f=u==="y"?nn:rn,b=u==="y"?wn:An,T=n.rects.reference[c]+n.rects.reference[u]-s[u]-n.rects.popper[c],S=s[u]-n.rects.reference[u],y=$a(a),w=y?u==="y"?y.clientHeight||0:y.clientWidth||0:0,x=T/2-S/2,k=d[f],M=w-p[c]-d[b],C=w/2-p[c]/2+x,H=ua(k,C,M),z=u;n.modifiersData[r]=(t={},t[z]=H,t.centerOffset=H-C,t)}}function yg(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Kf(t.elements.popper,i)&&(t.elements.arrow=i))}const vg={name:"arrow",enabled:!0,phase:"main",fn:bg,effect:yg,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ai(e){return e.split("-")[1]}var Tg={top:"auto",right:"auto",bottom:"auto",left:"auto"};function xg(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Si(n*i)/i||0,y:Si(r*i)/i||0}}function qc(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,o=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=s.x,f=p===void 0?0:p,b=s.y,T=b===void 0?0:b,S=typeof c=="function"?c({x:f,y:T}):{x:f,y:T};f=S.x,T=S.y;var y=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),x=rn,k=nn,M=window;if(l){var C=$a(n),H="clientHeight",z="clientWidth";if(C===pn(n)&&(C=Rr(n),or(C).position!=="static"&&o==="absolute"&&(H="scrollHeight",z="scrollWidth")),C=C,i===nn||(i===rn||i===An)&&a===Ia){k=wn;var V=d&&C===M&&M.visualViewport?M.visualViewport.height:C[H];T-=V-r.height,T*=u?1:-1}if(i===rn||(i===nn||i===wn)&&a===Ia){x=An;var P=d&&C===M&&M.visualViewport?M.visualViewport.width:C[z];f-=P-r.width,f*=u?1:-1}}var $=Object.assign({position:o},l&&Tg),W=c===!0?xg({x:f,y:T},pn(n)):{x:f,y:T};if(f=W.x,T=W.y,u){var G;return Object.assign({},$,(G={},G[k]=w?"0":"",G[x]=y?"0":"",G.transform=(M.devicePixelRatio||1)<=1?"translate("+f+"px, "+T+"px)":"translate3d("+f+"px, "+T+"px, 0)",G))}return Object.assign({},$,(t={},t[k]=w?T+"px":"",t[x]=y?f+"px":"",t.transform="",t))}function Eg(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,o=n.roundOffsets,u=o===void 0?!0:o,l={placement:Un(t.placement),variation:Ai(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,qc(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,qc(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Sg={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Eg,data:{}};var cs={passive:!0};function wg(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,s=r.resize,o=s===void 0?!0:s,u=pn(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(c){c.addEventListener("scroll",n.update,cs)}),o&&u.addEventListener("resize",n.update,cs),function(){a&&l.forEach(function(c){c.removeEventListener("scroll",n.update,cs)}),o&&u.removeEventListener("resize",n.update,cs)}}const Ag={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wg,data:{}};var Cg={left:"right",right:"left",bottom:"top",top:"bottom"};function Os(e){return e.replace(/left|right|bottom|top/g,function(t){return Cg[t]})}var kg={start:"end",end:"start"};function $c(e){return e.replace(/start|end/g,function(t){return kg[t]})}function e0(e){var t=pn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function t0(e){return wi(Rr(e)).left+e0(e).scrollLeft}function Ig(e,t){var n=pn(e),r=Rr(e),i=n.visualViewport,a=r.clientWidth,s=r.clientHeight,o=0,u=0;if(i){a=i.width,s=i.height;var l=Xf();(l||!l&&t==="fixed")&&(o=i.offsetLeft,u=i.offsetTop)}return{width:a,height:s,x:o+t0(e),y:u}}function Ng(e){var t,n=Rr(e),r=e0(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Wr(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Wr(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-r.scrollLeft+t0(e),u=-r.scrollTop;return or(i||n).direction==="rtl"&&(o+=Wr(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:o,y:u}}function n0(e){var t=or(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function ep(e){return["html","body","#document"].indexOf($n(e))>=0?e.ownerDocument.body:xn(e)&&n0(e)?e:ep(mo(e))}function la(e,t){var n;t===void 0&&(t=[]);var r=ep(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=pn(r),s=i?[a].concat(a.visualViewport||[],n0(r)?r:[]):r,o=t.concat(s);return i?o:o.concat(la(mo(s)))}function Wu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Mg(e,t){var n=wi(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Wc(e,t,n){return t===Yf?Wu(Ig(e,n)):Qr(t)?Mg(t,n):Wu(Ng(Rr(e)))}function Rg(e){var t=la(mo(e)),n=["absolute","fixed"].indexOf(or(e).position)>=0,r=n&&xn(e)?$a(e):e;return Qr(r)?t.filter(function(i){return Qr(i)&&Kf(i,r)&&$n(i)!=="body"}):[]}function Dg(e,t,n,r){var i=t==="clippingParents"?Rg(e):[].concat(t),a=[].concat(i,[n]),s=a[0],o=a.reduce(function(u,l){var c=Wc(e,l,r);return u.top=Wr(c.top,u.top),u.right=Ys(c.right,u.right),u.bottom=Ys(c.bottom,u.bottom),u.left=Wr(c.left,u.left),u},Wc(e,s,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function tp(e){var t=e.reference,n=e.element,r=e.placement,i=r?Un(r):null,a=r?Ai(r):null,s=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,u;switch(i){case nn:u={x:s,y:t.y-n.height};break;case wn:u={x:s,y:t.y+t.height};break;case An:u={x:t.x+t.width,y:o};break;case rn:u={x:t.x-n.width,y:o};break;default:u={x:t.x,y:t.y}}var l=i?Jl(i):null;if(l!=null){var c=l==="y"?"height":"width";switch(a){case Ei:u[l]=u[l]-(t[c]/2-n[c]/2);break;case Ia:u[l]=u[l]+(t[c]/2-n[c]/2);break}}return u}function Na(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,o=n.boundary,u=o===void 0?Z6:o,l=n.rootBoundary,c=l===void 0?Yf:l,d=n.elementContext,p=d===void 0?qi:d,f=n.altBoundary,b=f===void 0?!1:f,T=n.padding,S=T===void 0?0:T,y=Zf(typeof S!="number"?S:Jf(S,qa)),w=p===qi?J6:qi,x=e.rects.popper,k=e.elements[b?w:p],M=Dg(Qr(k)?k:k.contextElement||Rr(e.elements.popper),u,c,s),C=wi(e.elements.reference),H=tp({reference:C,element:x,placement:i}),z=Wu(Object.assign({},x,H)),V=p===qi?z:C,P={top:M.top-V.top+y.top,bottom:V.bottom-M.bottom+y.bottom,left:M.left-V.left+y.left,right:V.right-M.right+y.right},$=e.modifiersData.offset;if(p===qi&&$){var W=$[i];Object.keys(P).forEach(function(G){var q=[An,wn].indexOf(G)>=0?1:-1,Y=[nn,wn].indexOf(G)>=0?"y":"x";P[G]+=W[Y]*q})}return P}function Pg(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,s=n.padding,o=n.flipVariations,u=n.allowedAutoPlacements,l=u===void 0?Gf:u,c=Ai(r),d=c?o?Vc:Vc.filter(function(b){return Ai(b)===c}):qa,p=d.filter(function(b){return l.indexOf(b)>=0});p.length===0&&(p=d);var f=p.reduce(function(b,T){return b[T]=Na(e,{placement:T,boundary:i,rootBoundary:a,padding:s})[Un(T)],b},{});return Object.keys(f).sort(function(b,T){return f[b]-f[T]})}function Lg(e){if(Un(e)===Kl)return[];var t=Os(e);return[$c(e),t,$c(t)]}function Og(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!0:s,u=n.fallbackPlacements,l=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,b=f===void 0?!0:f,T=n.allowedAutoPlacements,S=t.options.placement,y=Un(S),w=y===S,x=u||(w||!b?[Os(S)]:Lg(S)),k=[S].concat(x).reduce(function(xe,Ie){return xe.concat(Un(Ie)===Kl?Pg(t,{placement:Ie,boundary:c,rootBoundary:d,padding:l,flipVariations:b,allowedAutoPlacements:T}):Ie)},[]),M=t.rects.reference,C=t.rects.popper,H=new Map,z=!0,V=k[0],P=0;P=0,Y=q?"width":"height",Q=Na(t,{placement:$,boundary:c,rootBoundary:d,altBoundary:p,padding:l}),ee=q?G?An:rn:G?wn:nn;M[Y]>C[Y]&&(ee=Os(ee));var de=Os(ee),oe=[];if(a&&oe.push(Q[W]<=0),o&&oe.push(Q[ee]<=0,Q[de]<=0),oe.every(function(xe){return xe})){V=$,z=!1;break}H.set($,oe)}if(z)for(var N=b?3:1,Ce=function(Ie){var Be=k.find(function(Ve){var _e=H.get(Ve);if(_e)return _e.slice(0,Ie).every(function(qe){return qe})});if(Be)return V=Be,"break"},ve=N;ve>0;ve--){var B=Ce(ve);if(B==="break")break}t.placement!==V&&(t.modifiersData[r]._skip=!0,t.placement=V,t.reset=!0)}}const _g={name:"flip",enabled:!0,phase:"main",fn:Og,requiresIfExists:["offset"],data:{_skip:!1}};function Yc(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Gc(e){return[nn,An,wn,rn].some(function(t){return e[t]>=0})}function Bg(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,s=Na(t,{elementContext:"reference"}),o=Na(t,{altBoundary:!0}),u=Yc(s,r),l=Yc(o,i,a),c=Gc(u),d=Gc(l);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const Fg={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Bg};function Hg(e,t,n){var r=Un(e),i=[rn,nn].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],o=a[1];return s=s||0,o=(o||0)*i,[rn,An].indexOf(r)>=0?{x:o,y:s}:{x:s,y:o}}function zg(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,s=Gf.reduce(function(c,d){return c[d]=Hg(d,t.rects,a),c},{}),o=s[t.placement],u=o.x,l=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=s}const Ug={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:zg};function Vg(e){var t=e.state,n=e.name;t.modifiersData[n]=tp({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const jg={name:"popperOffsets",enabled:!0,phase:"read",fn:Vg,data:{}};function qg(e){return e==="x"?"y":"x"}function $g(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!1:s,u=n.boundary,l=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,f=p===void 0?!0:p,b=n.tetherOffset,T=b===void 0?0:b,S=Na(t,{boundary:u,rootBoundary:l,padding:d,altBoundary:c}),y=Un(t.placement),w=Ai(t.placement),x=!w,k=Jl(y),M=qg(k),C=t.modifiersData.popperOffsets,H=t.rects.reference,z=t.rects.popper,V=typeof T=="function"?T(Object.assign({},t.rects,{placement:t.placement})):T,P=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(C){if(a){var G,q=k==="y"?nn:rn,Y=k==="y"?wn:An,Q=k==="y"?"height":"width",ee=C[k],de=ee+S[q],oe=ee-S[Y],N=f?-z[Q]/2:0,Ce=w===Ei?H[Q]:z[Q],ve=w===Ei?-z[Q]:-H[Q],B=t.elements.arrow,xe=f&&B?Zl(B):{width:0,height:0},Ie=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Qf(),Be=Ie[q],Ve=Ie[Y],_e=ua(0,H[Q],xe[Q]),qe=x?H[Q]/2-N-_e-Be-P.mainAxis:Ce-_e-Be-P.mainAxis,Te=x?-H[Q]/2+N+_e+Ve+P.mainAxis:ve+_e+Ve+P.mainAxis,De=t.elements.arrow&&$a(t.elements.arrow),Ne=De?k==="y"?De.clientTop||0:De.clientLeft||0:0,Ke=(G=$?.[k])!=null?G:0,Me=ee+qe-Ke-Ne,$e=ee+Te-Ke,wt=ua(f?Ys(de,Me):de,ee,f?Wr(oe,$e):oe);C[k]=wt,W[k]=wt-ee}if(o){var dt,st=k==="x"?nn:rn,Nt=k==="x"?wn:An,ot=C[M],it=M==="y"?"height":"width",Ht=ot+S[st],Kt=ot-S[Nt],gt=[nn,rn].indexOf(y)!==-1,on=(dt=$?.[M])!=null?dt:0,K=gt?Ht:ot-H[it]-z[it]-on+P.altAxis,ie=gt?ot+H[it]+z[it]-on-P.altAxis:Kt,me=f&>?mg(K,ot,ie):ua(f?K:Ht,ot,f?ie:Kt);C[M]=me,W[M]=me-ot}t.modifiersData[r]=W}}const Wg={name:"preventOverflow",enabled:!0,phase:"main",fn:$g,requiresIfExists:["offset"]};function Yg(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Gg(e){return e===pn(e)||!xn(e)?e0(e):Yg(e)}function Xg(e){var t=e.getBoundingClientRect(),n=Si(t.width)/e.offsetWidth||1,r=Si(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Kg(e,t,n){n===void 0&&(n=!1);var r=xn(t),i=xn(t)&&Xg(t),a=Rr(t),s=wi(e,i,n),o={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(($n(t)!=="body"||n0(a))&&(o=Gg(t)),xn(t)?(u=wi(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=t0(a))),{x:s.left+o.scrollLeft-u.x,y:s.top+o.scrollTop-u.y,width:s.width,height:s.height}}function Qg(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(o){if(!n.has(o)){var u=t.get(o);u&&i(u)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function Zg(e){var t=Qg(e);return lg.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Jg(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function e5(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Xc={placement:"bottom",modifiers:[],strategy:"absolute"};function Kc(){for(var e=arguments.length,t=new Array(e),n=0;n=19?e?.props?.ref||null:e?.ref||null}function i5(e){return typeof e=="function"?e():e}const rp=_.forwardRef(function(t,n){const{children:r,container:i,disablePortal:a=!1}=t,[s,o]=_.useState(null),u=Vt(_.isValidElement(r)?Ri(r):null,n);if(ar(()=>{a||o(i5(i)||document.body)},[i,a]),ar(()=>{if(s&&!a)return zc(n,s),()=>{zc(n,null)}},[n,s,a]),a){if(_.isValidElement(r)){const l={ref:u};return _.cloneElement(r,l)}return r}return s&&w6.createPortal(r,s)});function a5(e){return mt("MuiPopper",e)}at("MuiPopper",["root"]);function s5(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Yu(e){return typeof e=="function"?e():e}function o5(e){return e.nodeType!==void 0}const u5=e=>{const{classes:t}=e;return Ye({root:["root"]},a5,t)},l5={},c5=_.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:a,disablePortal:s,modifiers:o,open:u,placement:l,popperOptions:c,popperRef:d,slotProps:p={},slots:f={},TransitionProps:b,ownerState:T,...S}=t,y=_.useRef(null),w=Vt(y,n),x=_.useRef(null),k=Vt(x,d),M=_.useRef(k);ar(()=>{M.current=k},[k]),_.useImperativeHandle(d,()=>x.current,[]);const C=s5(l,a),[H,z]=_.useState(C),[V,P]=_.useState(Yu(r));_.useEffect(()=>{x.current&&x.current.forceUpdate()}),_.useEffect(()=>{r&&P(Yu(r))},[r]),ar(()=>{if(!V||!u)return;const Y=de=>{z(de.placement)};let Q=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:de})=>{Y(de)}}];o!=null&&(Q=Q.concat(o)),c&&c.modifiers!=null&&(Q=Q.concat(c.modifiers));const ee=r5(V,y.current,{placement:C,...c,modifiers:Q});return M.current(ee),()=>{ee.destroy(),M.current(null)}},[V,s,o,u,c,C]);const $={placement:H};b!==null&&($.TransitionProps=b);const W=u5(t),G=f.root??"div",q=np({elementType:G,externalSlotProps:p.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:W.root});return R.jsx(G,{...q,children:typeof i=="function"?i($):i})}),d5=_.forwardRef(function(t,n){const{anchorEl:r,children:i,container:a,direction:s="ltr",disablePortal:o=!1,keepMounted:u=!1,modifiers:l,open:c,placement:d="bottom",popperOptions:p=l5,popperRef:f,style:b,transition:T=!1,slotProps:S={},slots:y={},...w}=t,[x,k]=_.useState(!0),M=()=>{k(!1)},C=()=>{k(!0)};if(!u&&!c&&(!T||x))return null;let H;if(a)H=a;else if(r){const P=Yu(r);H=P&&o5(P)?fn(P).body:fn(null).body}const z=!c&&u&&(!T||x)?"none":void 0,V=T?{in:c,onEnter:M,onExited:C}:void 0;return R.jsx(rp,{disablePortal:o,container:H,children:R.jsx(c5,{anchorEl:r,direction:s,disablePortal:o,modifiers:l,ref:n,open:T?!x:c,placement:d,popperOptions:p,popperRef:f,slotProps:S,slots:y,...w,style:{position:"fixed",top:0,left:0,display:z,...b},TransitionProps:V,children:i})})}),h5=le(d5,{name:"MuiPopper",slot:"Root"})({}),ip=_.forwardRef(function(t,n){const r=Wl(),i=Xe({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:o,componentsProps:u,container:l,disablePortal:c,keepMounted:d,modifiers:p,open:f,placement:b,popperOptions:T,popperRef:S,transition:y,slots:w,slotProps:x,...k}=i,M=w?.root??o?.Root,C={anchorEl:a,container:l,disablePortal:c,keepMounted:d,modifiers:p,open:f,placement:b,popperOptions:T,popperRef:S,transition:y,...k};return R.jsx(h5,{as:s,direction:r?"rtl":"ltr",slots:{root:M},slotProps:x??u,...C,ref:n})});function ds(e){return parseInt(e,10)||0}const f5={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function p5(e){for(const t in e)return!1;return!0}function Qc(e){return p5(e)||e.outerHeightStyle===0&&!e.overflowing}const m5=_.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:a=1,style:s,value:o,...u}=t,{current:l}=_.useRef(o!=null),c=_.useRef(null),d=Vt(n,c),p=_.useRef(null),f=_.useRef(null),b=_.useCallback(()=>{const x=c.current,k=f.current;if(!x||!k)return;const C=sr(x).getComputedStyle(x);if(C.width==="0px")return{outerHeightStyle:0,overflowing:!1};k.style.width=C.width,k.value=x.value||t.placeholder||"x",k.value.slice(-1)===` +`&&(k.value+=" ");const H=C.boxSizing,z=ds(C.paddingBottom)+ds(C.paddingTop),V=ds(C.borderBottomWidth)+ds(C.borderTopWidth),P=k.scrollHeight;k.value="x";const $=k.scrollHeight;let W=P;a&&(W=Math.max(Number(a)*$,W)),i&&(W=Math.min(Number(i)*$,W)),W=Math.max(W,$);const G=W+(H==="border-box"?z+V:0),q=Math.abs(W-P)<=1;return{outerHeightStyle:G,overflowing:q}},[i,a,t.placeholder]),T=Aa(()=>{const x=c.current,k=b();if(!x||!k||Qc(k))return!1;const M=k.outerHeightStyle;return p.current!=null&&p.current!==M}),S=_.useCallback(()=>{const x=c.current,k=b();if(!x||!k||Qc(k))return;const M=k.outerHeightStyle;p.current!==M&&(p.current=M,x.style.height=`${M}px`),x.style.overflow=k.overflowing?"hidden":""},[b]),y=_.useRef(-1);ar(()=>{const x=$f(S),k=c?.current;if(!k)return;const M=sr(k);M.addEventListener("resize",x);let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(()=>{T()&&(C.unobserve(k),cancelAnimationFrame(y.current),S(),y.current=requestAnimationFrame(()=>{C.observe(k)}))}),C.observe(k)),()=>{x.clear(),cancelAnimationFrame(y.current),M.removeEventListener("resize",x),C&&C.disconnect()}},[b,S,T]),ar(()=>{S()});const w=x=>{l||S();const k=x.target,M=k.value.length,C=k.value.endsWith(` +`),H=k.selectionStart===M;C&&H&&k.setSelectionRange(M,M),r&&r(x)};return R.jsxs(_.Fragment,{children:[R.jsx("textarea",{value:o,onChange:w,ref:d,rows:a,style:s,...u}),R.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:{...f5.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function r0({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const ap=_.createContext(void 0);function i0(){return _.useContext(ap)}function Zc(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function sp(e,t=!1){return e&&(Zc(e.value)&&e.value!==""||t&&Zc(e.defaultValue)&&e.defaultValue!=="")}function xL(e){return e.startAdornment}var Jc;const go=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Et(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},bo=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},g5=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:s,formControl:o,fullWidth:u,hiddenLabel:l,multiline:c,readOnly:d,size:p,startAdornment:f,type:b}=e,T={root:["root",`color${Et(n)}`,r&&"disabled",i&&"error",u&&"fullWidth",s&&"focused",o&&"formControl",p&&p!=="medium"&&`size${Et(p)}`,c&&"multiline",f&&"adornedStart",a&&"adornedEnd",l&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return Ye(T,C6,t)},yo=le("div",{name:"MuiInputBase",slot:"Root",overridesResolver:go})(St(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ka.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),vo=le("input",{name:"MuiInputBase",slot:"Input",overridesResolver:bo})(St(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ka.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${ka.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),ed=A6({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),a0=_.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:o,color:u,components:l={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:b,error:T,fullWidth:S=!1,id:y,inputComponent:w="input",inputProps:x={},inputRef:k,margin:M,maxRows:C,minRows:H,multiline:z=!1,name:V,onBlur:P,onChange:$,onClick:W,onFocus:G,onKeyDown:q,onKeyUp:Y,placeholder:Q,readOnly:ee,renderSuffix:de,rows:oe,size:N,slotProps:Ce={},slots:ve={},startAdornment:B,type:xe="text",value:Ie,...Be}=r,Ve=x.value!=null?x.value:Ie,{current:_e}=_.useRef(Ve!=null),qe=_.useRef(),Te=_.useCallback(Se=>{},[]),De=Vt(qe,k,x.ref,Te),[Ne,Ke]=_.useState(!1),Me=i0(),$e=r0({props:r,muiFormControl:Me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});$e.focused=Me?Me.focused:Ne,_.useEffect(()=>{!Me&&p&&Ne&&(Ke(!1),P&&P())},[Me,p,Ne,P]);const wt=Me&&Me.onFilled,dt=Me&&Me.onEmpty,st=_.useCallback(Se=>{sp(Se)?wt&&wt():dt&&dt()},[wt,dt]);ar(()=>{_e&&st({value:Ve})},[Ve,st,_e]);const Nt=Se=>{G&&G(Se),x.onFocus&&x.onFocus(Se),Me&&Me.onFocus?Me.onFocus(Se):Ke(!0)},ot=Se=>{P&&P(Se),x.onBlur&&x.onBlur(Se),Me&&Me.onBlur?Me.onBlur(Se):Ke(!1)},it=(Se,...Mt)=>{if(!_e){const bt=Se.target||qe.current;if(bt==null)throw new Error(Ff(1));st({value:bt.value})}x.onChange&&x.onChange(Se,...Mt),$&&$(Se,...Mt)};_.useEffect(()=>{st(qe.current)},[]);const Ht=Se=>{qe.current&&Se.currentTarget===Se.target&&qe.current.focus(),W&&W(Se)};let Kt=w,gt=x;z&&Kt==="input"&&(oe?gt={type:void 0,minRows:oe,maxRows:oe,...gt}:gt={type:void 0,maxRows:C,minRows:H,...gt},Kt=m5);const on=Se=>{st(Se.animationName==="mui-auto-fill-cancel"?qe.current:{value:"x"})};_.useEffect(()=>{Me&&Me.setAdornedStart(!!B)},[Me,B]);const K={...r,color:$e.color||"primary",disabled:$e.disabled,endAdornment:b,error:$e.error,focused:$e.focused,formControl:Me,fullWidth:S,hiddenLabel:$e.hiddenLabel,multiline:z,size:$e.size,startAdornment:B,type:xe},ie=g5(K),me=ve.root||l.Root||yo,Ee=Ce.root||c.root||{},Pe=ve.input||l.Input||vo;return gt={...gt,...Ce.input??c.input},R.jsxs(_.Fragment,{children:[!f&&typeof ed=="function"&&(Jc||(Jc=R.jsx(ed,{}))),R.jsxs(me,{...Ee,ref:n,onClick:Ht,...Be,...!Ca(me)&&{ownerState:{...K,...Ee.ownerState}},className:je(ie.root,Ee.className,o,ee&&"MuiInputBase-readOnly"),children:[B,R.jsx(ap.Provider,{value:null,children:R.jsx(Pe,{"aria-invalid":$e.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:d,disabled:$e.disabled,id:y,onAnimationStart:on,name:V,placeholder:Q,readOnly:ee,required:$e.required,rows:oe,value:Ve,onKeyDown:q,onKeyUp:Y,type:xe,...gt,...!Ca(Pe)&&{as:Kt,ownerState:{...K,...gt.ownerState}},ref:De,className:je(ie.input,gt.className,ee&&"MuiInputBase-readOnly"),onBlur:ot,onChange:it,onFocus:Nt})}),b,de?de({...$e,startAdornment:B}):null]})]})});function b5(e){return mt("MuiInput",e)}const $i={...ka,...at("MuiInput",["root","underline","input"])};function y5(e){return mt("MuiFilledInput",e)}const Or={...ka,...at("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},v5=k6(R.jsx("path",{d:"M7 10l5 5 5-5z"})),T5={entering:{opacity:1},entered:{opacity:1}},Gu=_.forwardRef(function(t,n){const r=Va(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:o,easing:u,in:l,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:b,onExiting:T,style:S,timeout:y=i,TransitionComponent:w=Yn,...x}=t,k=_.useRef(null),M=Vt(k,Ri(o),n),C=q=>Y=>{if(q){const Q=k.current;Y===void 0?q(Q):q(Q,Y)}},H=C(p),z=C((q,Y)=>{Wf(q);const Q=Ws({style:S,timeout:y,easing:u},{mode:"enter"});q.style.webkitTransition=r.transitions.create("opacity",Q),q.style.transition=r.transitions.create("opacity",Q),c&&c(q,Y)}),V=C(d),P=C(T),$=C(q=>{const Y=Ws({style:S,timeout:y,easing:u},{mode:"exit"});q.style.webkitTransition=r.transitions.create("opacity",Y),q.style.transition=r.transitions.create("opacity",Y),f&&f(q)}),W=C(b),G=q=>{a&&a(k.current,q)};return R.jsx(w,{appear:s,in:l,nodeRef:k,onEnter:z,onEntered:V,onEntering:H,onExit:$,onExited:W,onExiting:P,addEndListener:G,timeout:y,...x,children:(q,{ownerState:Y,...Q})=>_.cloneElement(o,{style:{opacity:0,visibility:q==="exited"&&!l?"hidden":void 0,...T5[q],...S,...o.props.style},ref:M,...Q})})});function x5(e){return mt("MuiBackdrop",e)}at("MuiBackdrop",["root","invisible"]);const E5=e=>{const{classes:t,invisible:n}=e;return Ye({root:["root",n&&"invisible"]},x5,t)},S5=le("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),op=_.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiBackdrop"}),{children:i,className:a,component:s="div",invisible:o=!1,open:u,components:l={},componentsProps:c={},slotProps:d={},slots:p={},TransitionComponent:f,transitionDuration:b,...T}=r,S={...r,component:s,invisible:o},y=E5(S),w={transition:f,root:l.Root,...p},x={...c,...d},k={component:s,slots:w,slotProps:x},[M,C]=xt("root",{elementType:S5,externalForwardedProps:k,className:je(y.root,a),ownerState:S}),[H,z]=xt("transition",{elementType:Gu,externalForwardedProps:k,ownerState:S});return R.jsx(H,{in:u,timeout:b,...T,...z,children:R.jsx(M,{"aria-hidden":!0,...C,classes:y,ref:n,children:i})})}),w5=at("MuiBox",["root"]),A5=M6(),Ar=$6({themeId:N6,defaultTheme:A5,defaultClassName:w5.root,generateClassName:I6.generate});function up(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function C5(e){const t=fn(e);return t.body===e?sr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ca(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function td(e){return parseInt(sr(e).getComputedStyle(e).paddingRight,10)||0}function k5(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function nd(e,t,n,r,i){const a=[t,n,...r];[].forEach.call(e.children,s=>{const o=!a.includes(s),u=!k5(s);o&&u&&ca(s,i)})}function Uo(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function I5(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(C5(r)){const s=up(sr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${td(r)+s}px`;const o=fn(r).querySelectorAll(".mui-fixed");[].forEach.call(o,u=>{n.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${td(u)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=fn(r).body;else{const s=r.parentElement,o=sr(r);a=s?.nodeName==="HTML"&&o.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:o})=>{a?s.style.setProperty(o,a):s.style.removeProperty(o)})}}function N5(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class M5{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&ca(t.modalRef,!1);const i=N5(n);nd(n,t.mount,t.modalRef,i,!0);const a=Uo(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=Uo(this.containers,a=>a.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=I5(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=Uo(this.containers,s=>s.modals.includes(t)),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&ca(t.modalRef,n),nd(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&ca(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const R5=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function D5(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function P5(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function L5(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||P5(e))}function O5(e){const t=[],n=[];return Array.from(e.querySelectorAll(R5)).forEach((r,i)=>{const a=D5(r);a===-1||!L5(r)||(a===0?t.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function _5(){return!0}function B5(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=O5,isEnabled:s=_5,open:o}=e,u=_.useRef(!1),l=_.useRef(null),c=_.useRef(null),d=_.useRef(null),p=_.useRef(null),f=_.useRef(!1),b=_.useRef(null),T=Vt(Ri(t),b),S=_.useRef(null);_.useEffect(()=>{!o||!b.current||(f.current=!n)},[n,o]),_.useEffect(()=>{if(!o||!b.current)return;const x=fn(b.current);return b.current.contains(x.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),f.current&&b.current.focus()),()=>{i||(d.current&&d.current.focus&&(u.current=!0,d.current.focus()),d.current=null)}},[o]),_.useEffect(()=>{if(!o||!b.current)return;const x=fn(b.current),k=H=>{S.current=H,!(r||!s()||H.key!=="Tab")&&x.activeElement===b.current&&H.shiftKey&&(u.current=!0,c.current&&c.current.focus())},M=()=>{const H=b.current;if(H===null)return;if(!x.hasFocus()||!s()||u.current){u.current=!1;return}if(H.contains(x.activeElement)||r&&x.activeElement!==l.current&&x.activeElement!==c.current)return;if(x.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!f.current)return;let z=[];if((x.activeElement===l.current||x.activeElement===c.current)&&(z=a(b.current)),z.length>0){const V=!!(S.current?.shiftKey&&S.current?.key==="Tab"),P=z[0],$=z[z.length-1];typeof P!="string"&&typeof $!="string"&&(V?$.focus():P.focus())}else H.focus()};x.addEventListener("focusin",M),x.addEventListener("keydown",k,!0);const C=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&M()},50);return()=>{clearInterval(C),x.removeEventListener("focusin",M),x.removeEventListener("keydown",k,!0)}},[n,r,i,s,o,a]);const y=x=>{d.current===null&&(d.current=x.relatedTarget),f.current=!0,p.current=x.target;const k=t.props.onFocus;k&&k(x)},w=x=>{d.current===null&&(d.current=x.relatedTarget),f.current=!0};return R.jsxs(_.Fragment,{children:[R.jsx("div",{tabIndex:o?0:-1,onFocus:w,ref:l,"data-testid":"sentinelStart"}),_.cloneElement(t,{ref:T,onFocus:y}),R.jsx("div",{tabIndex:o?0:-1,onFocus:w,ref:c,"data-testid":"sentinelEnd"})]})}function F5(e){return typeof e=="function"?e():e}function H5(e){return e?e.props.hasOwnProperty("in"):!1}const rd=()=>{},hs=new M5;function z5(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:o,onClose:u,open:l,rootRef:c}=e,d=_.useRef({}),p=_.useRef(null),f=_.useRef(null),b=Vt(f,c),[T,S]=_.useState(!l),y=H5(o);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const x=()=>fn(p.current),k=()=>(d.current.modalRef=f.current,d.current.mount=p.current,d.current),M=()=>{hs.mount(k(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},C=Aa(()=>{const Y=F5(t)||x().body;hs.add(k(),Y),f.current&&M()}),H=()=>hs.isTopModal(k()),z=Aa(Y=>{p.current=Y,Y&&(l&&H()?M():f.current&&ca(f.current,w))}),V=_.useCallback(()=>{hs.remove(k(),w)},[w]);_.useEffect(()=>()=>{V()},[V]),_.useEffect(()=>{l?C():(!y||!i)&&V()},[l,V,y,i,C]);const P=Y=>Q=>{Y.onKeyDown?.(Q),!(Q.key!=="Escape"||Q.which===229||!H())&&(n||(Q.stopPropagation(),u&&u(Q,"escapeKeyDown")))},$=Y=>Q=>{Y.onClick?.(Q),Q.target===Q.currentTarget&&u&&u(Q,"backdropClick")};return{getRootProps:(Y={})=>{const Q=R6(e);delete Q.onTransitionEnter,delete Q.onTransitionExited;const ee={...Q,...Y};return{role:"presentation",...ee,onKeyDown:P(ee),ref:b}},getBackdropProps:(Y={})=>{const Q=Y;return{"aria-hidden":!0,...Q,onClick:$(Q),open:l}},getTransitionProps:()=>{const Y=()=>{S(!1),a&&a()},Q=()=>{S(!0),s&&s(),i&&V()};return{onEnter:Hc(Y,o?.props.onEnter??rd),onExited:Hc(Q,o?.props.onExited??rd)}},rootRef:b,portalRef:z,isTopModal:H,exited:T,hasTransition:y}}function U5(e){return mt("MuiModal",e)}at("MuiModal",["root","hidden","backdrop"]);const V5=e=>{const{open:t,exited:n,classes:r}=e;return Ye({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},U5,r)},j5=le("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(St(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),q5=le(op,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),lp=_.forwardRef(function(t,n){const r=Xe({name:"MuiModal",props:t}),{BackdropComponent:i=q5,BackdropProps:a,classes:s,className:o,closeAfterTransition:u=!1,children:l,container:c,component:d,components:p={},componentsProps:f={},disableAutoFocus:b=!1,disableEnforceFocus:T=!1,disableEscapeKeyDown:S=!1,disablePortal:y=!1,disableRestoreFocus:w=!1,disableScrollLock:x=!1,hideBackdrop:k=!1,keepMounted:M=!1,onClose:C,onTransitionEnter:H,onTransitionExited:z,open:V,slotProps:P={},slots:$={},theme:W,...G}=r,q={...r,closeAfterTransition:u,disableAutoFocus:b,disableEnforceFocus:T,disableEscapeKeyDown:S,disablePortal:y,disableRestoreFocus:w,disableScrollLock:x,hideBackdrop:k,keepMounted:M},{getRootProps:Y,getBackdropProps:Q,getTransitionProps:ee,portalRef:de,isTopModal:oe,exited:N,hasTransition:Ce}=z5({...q,rootRef:n}),ve={...q,exited:N},B=V5(ve),xe={};if(l.props.tabIndex===void 0&&(xe.tabIndex="-1"),Ce){const{onEnter:Te,onExited:De}=ee();xe.onEnter=Te,xe.onExited=De}const Ie={slots:{root:p.Root,backdrop:p.Backdrop,...$},slotProps:{...f,...P}},[Be,Ve]=xt("root",{ref:n,elementType:j5,externalForwardedProps:{...Ie,...G,component:d},getSlotProps:Y,ownerState:ve,className:je(o,B?.root,!ve.open&&ve.exited&&B?.hidden)}),[_e,qe]=xt("backdrop",{ref:a?.ref,elementType:i,externalForwardedProps:Ie,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:Te=>Q({...Te,onClick:De=>{Te?.onClick&&Te.onClick(De)}}),className:je(a?.className,B?.backdrop),ownerState:ve});return!M&&!V&&(!Ce||N)?null:R.jsx(rp,{ref:de,container:c,disablePortal:y,children:R.jsxs(Be,{...Ve,children:[!k&&i?R.jsx(_e,{...qe}):null,R.jsx(B5,{disableEnforceFocus:T,disableAutoFocus:b,disableRestoreFocus:w,isEnabled:oe,open:V,children:_.cloneElement(l,xe)})]})})});function $5(e){return mt("MuiDialog",e)}const Vo=at("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),cp=_.createContext({}),W5=le(op,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Y5=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${Et(n)}`],paper:["paper",`paperScroll${Et(n)}`,`paperWidth${Et(String(r))}`,i&&"paperFullWidth",a&&"paperFullScreen"]};return Ye(s,$5,t)},G5=le(lp,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),X5=le("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Et(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),K5=le(po,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Et(n.scroll)}`],t[`paperWidth${Et(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(St(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Vo.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Vo.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Vo.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Q5=_.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiDialog"}),i=Va(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":o,"aria-modal":u=!0,BackdropComponent:l,BackdropProps:c,children:d,className:p,disableEscapeKeyDown:f=!1,fullScreen:b=!1,fullWidth:T=!1,maxWidth:S="sm",onClick:y,onClose:w,open:x,PaperComponent:k=po,PaperProps:M={},scroll:C="paper",slots:H={},slotProps:z={},TransitionComponent:V=Gu,transitionDuration:P=a,TransitionProps:$,...W}=r,G={...r,disableEscapeKeyDown:f,fullScreen:b,fullWidth:T,maxWidth:S,scroll:C},q=Y5(G),Y=_.useRef(),Q=Ke=>{Y.current=Ke.target===Ke.currentTarget},ee=Ke=>{y&&y(Ke),Y.current&&(Y.current=null,w&&w(Ke,"backdropClick"))},de=Yl(o),oe=_.useMemo(()=>({titleId:de}),[de]),N={transition:V,...H},Ce={transition:$,paper:M,backdrop:c,...z},ve={slots:N,slotProps:Ce},[B,xe]=xt("root",{elementType:G5,shouldForwardComponentProp:!0,externalForwardedProps:ve,ownerState:G,className:je(q.root,p),ref:n}),[Ie,Be]=xt("backdrop",{elementType:W5,shouldForwardComponentProp:!0,externalForwardedProps:ve,ownerState:G}),[Ve,_e]=xt("paper",{elementType:K5,shouldForwardComponentProp:!0,externalForwardedProps:ve,ownerState:G,className:je(q.paper,M.className)}),[qe,Te]=xt("container",{elementType:X5,externalForwardedProps:ve,ownerState:G,className:q.container}),[De,Ne]=xt("transition",{elementType:Gu,externalForwardedProps:ve,ownerState:G,additionalProps:{appear:!0,in:x,timeout:P,role:"presentation"}});return R.jsx(B,{closeAfterTransition:!0,slots:{backdrop:Ie},slotProps:{backdrop:{transitionDuration:P,as:l,...Be}},disableEscapeKeyDown:f,onClose:w,open:x,onClick:ee,...xe,...W,children:R.jsx(De,{...Ne,children:R.jsx(qe,{onMouseDown:Q,...Te,children:R.jsx(Ve,{as:k,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":de,"aria-modal":u,..._e,children:R.jsx(cp.Provider,{value:oe,children:d})})})})})});function Z5(e){return mt("MuiDialogActions",e)}at("MuiDialogActions",["root","spacing"]);const J5=e=>{const{classes:t,disableSpacing:n}=e;return Ye({root:["root",!n&&"spacing"]},Z5,t)},e7=le("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),t7=_.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:a=!1,...s}=r,o={...r,disableSpacing:a},u=J5(o);return R.jsx(e7,{className:je(u.root,i),ownerState:o,ref:n,...s})}),n7=e=>{const{classes:t,dividers:n}=e;return Ye({root:["root",n&&"dividers"]},D6,t)},r7=le("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(St(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${P6.root} + &`]:{paddingTop:0}}}]}))),i7=_.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiDialogContent"}),{className:i,dividers:a=!1,...s}=r,o={...r,dividers:a},u=n7(o);return R.jsx(r7,{className:je(u.root,i),ownerState:o,ref:n,...s})});function a7(e){return mt("MuiDialogContentText",e)}at("MuiDialogContentText",["root"]);const s7=e=>{const{classes:t}=e,r=Ye({root:["root"]},a7,t);return{...t,...r}},o7=le(Ge,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),u7=_.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiDialogContentText"}),{children:i,className:a,...s}=r,o=s7(s);return R.jsx(o7,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:s,className:je(o.root,a),...r,classes:o})}),l7=e=>{const{classes:t}=e;return Ye({root:["root"]},L6,t)},c7=le(Ge,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),d7=_.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiDialogTitle"}),{className:i,id:a,...s}=r,o=r,u=l7(o),{titleId:l=a}=_.useContext(cp);return R.jsx(c7,{component:"h2",className:je(u.root,i),ownerState:o,ref:n,variant:"h6",id:a??l,...s})}),h7=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:s,multiline:o}=e,u={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",a==="small"&&`size${Et(a)}`,s&&"hiddenLabel",o&&"multiline"],input:["input"]},l=Ye(u,y5,t);return{...t,...l}},f7=le(yo,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...go(e,t),!n.disableUnderline&&t.underline]}})(St(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Or.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Or.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Or.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Or.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Or.disabled}, .${Or.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Or.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Xl()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:o})=>s.multiline&&o==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),p7=le(vo,{name:"MuiFilledInput",slot:"Input",overridesResolver:bo})(St(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),dp=_.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:a={},componentsProps:s,fullWidth:o=!1,hiddenLabel:u,inputComponent:l="input",multiline:c=!1,slotProps:d,slots:p={},type:f="text",...b}=r,T={...r,disableUnderline:i,fullWidth:o,inputComponent:l,multiline:c,type:f},S=h7(r),y={root:{ownerState:T},input:{ownerState:T}},w=d??s?Gl(y,d??s):y,x=p.root??a.Root??f7,k=p.input??a.Input??p7;return R.jsx(a0,{slots:{root:x,input:k},slotProps:w,fullWidth:o,inputComponent:l,multiline:c,ref:n,type:f,...b,classes:S})});dp.muiName="Input";function Xu(e){return`scale(${e}, ${e**2})`}const m7={entering:{opacity:1,transform:Xu(1)},entered:{opacity:1,transform:"none"}},jo=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Gs=_.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:a,easing:s,in:o,onEnter:u,onEntered:l,onEntering:c,onExit:d,onExited:p,onExiting:f,style:b,timeout:T="auto",TransitionComponent:S=Yn,...y}=t,w=ra(),x=_.useRef(),k=Va(),M=_.useRef(null),C=Vt(M,Ri(a),n),H=Y=>Q=>{if(Y){const ee=M.current;Q===void 0?Y(ee):Y(ee,Q)}},z=H(c),V=H((Y,Q)=>{Wf(Y);const{duration:ee,delay:de,easing:oe}=Ws({style:b,timeout:T,easing:s},{mode:"enter"});let N;T==="auto"?(N=k.transitions.getAutoHeightDuration(Y.clientHeight),x.current=N):N=ee,Y.style.transition=[k.transitions.create("opacity",{duration:N,delay:de}),k.transitions.create("transform",{duration:jo?N:N*.666,delay:de,easing:oe})].join(","),u&&u(Y,Q)}),P=H(l),$=H(f),W=H(Y=>{const{duration:Q,delay:ee,easing:de}=Ws({style:b,timeout:T,easing:s},{mode:"exit"});let oe;T==="auto"?(oe=k.transitions.getAutoHeightDuration(Y.clientHeight),x.current=oe):oe=Q,Y.style.transition=[k.transitions.create("opacity",{duration:oe,delay:ee}),k.transitions.create("transform",{duration:jo?oe:oe*.666,delay:jo?ee:ee||oe*.333,easing:de})].join(","),Y.style.opacity=0,Y.style.transform=Xu(.75),d&&d(Y)}),G=H(p),q=Y=>{T==="auto"&&w.start(x.current||0,Y),r&&r(M.current,Y)};return R.jsx(S,{appear:i,in:o,nodeRef:M,onEnter:V,onEntered:P,onEntering:z,onExit:W,onExited:G,onExiting:$,addEndListener:q,timeout:T==="auto"?null:T,...y,children:(Y,{ownerState:Q,...ee})=>_.cloneElement(a,{style:{opacity:0,transform:Xu(.75),visibility:Y==="exited"&&!o?"hidden":void 0,...m7[Y],...b,...a.props.style},ref:C,...ee})})});Gs&&(Gs.muiSupportAuto=!0);const g7=e=>{const{classes:t,disableUnderline:n}=e,i=Ye({root:["root",!n&&"underline"],input:["input"]},b5,t);return{...t,...i}},b7=le(yo,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...go(e,t),!n.disableUnderline&&t.underline]}})(St(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${$i.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$i.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${$i.disabled}, .${$i.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${$i.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Xl()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),y7=le(vo,{name:"MuiInput",slot:"Input",overridesResolver:bo})({}),hp=_.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:a={},componentsProps:s,fullWidth:o=!1,inputComponent:u="input",multiline:l=!1,slotProps:c,slots:d={},type:p="text",...f}=r,b=g7(r),S={root:{ownerState:{disableUnderline:i}}},y=c??s?Gl(c??s,S):S,w=d.root??a.Root??b7,x=d.input??a.Input??y7;return R.jsx(a0,{slots:{root:w,input:x},slotProps:y,fullWidth:o,inputComponent:u,multiline:l,ref:n,type:p,...f,classes:b})});hp.muiName="Input";const nr=_.createContext({});function v7(e){return mt("MuiList",e)}at("MuiList",["root","padding","dense","subheader"]);const T7=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Ye({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},v7,t)},x7=le("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),fp=_.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiList"}),{children:i,className:a,component:s="ul",dense:o=!1,disablePadding:u=!1,subheader:l,...c}=r,d=_.useMemo(()=>({dense:o}),[o]),p={...r,component:s,dense:o,disablePadding:u},f=T7(p);return R.jsx(nr.Provider,{value:d,children:R.jsxs(x7,{as:s,className:je(f.root,a),ref:n,ownerState:p,...c,children:[l,i]})})});function E7(e){return mt("MuiListItem",e)}at("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const S7=at("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function w7(e){return mt("MuiListItemSecondaryAction",e)}at("MuiListItemSecondaryAction",["root","disableGutters"]);const A7=e=>{const{disableGutters:t,classes:n}=e;return Ye({root:["root",t&&"disableGutters"]},w7,n)},C7=le("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),pp=_.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiListItemSecondaryAction"}),{className:i,...a}=r,s=_.useContext(nr),o={...r,disableGutters:s.disableGutters},u=A7(o);return R.jsx(C7,{className:je(u.root,i),ownerState:o,ref:n,...a})});pp.muiName="ListItemSecondaryAction";const k7=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},I7=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:i,disablePadding:a,divider:s,hasSecondaryAction:o}=e;return Ye({root:["root",r&&"dense",!i&&"gutters",!a&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",o&&"secondaryAction"],container:["container"]},E7,n)},N7=le("div",{name:"MuiListItem",slot:"Root",overridesResolver:k7})(St(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${S7.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),M7=le("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),R7=_.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiListItem"}),{alignItems:i="center",children:a,className:s,component:o,components:u={},componentsProps:l={},ContainerComponent:c="li",ContainerProps:{className:d,...p}={},dense:f=!1,disableGutters:b=!1,disablePadding:T=!1,divider:S=!1,secondaryAction:y,slotProps:w={},slots:x={},...k}=r,M=_.useContext(nr),C=_.useMemo(()=>({dense:f||M.dense||!1,alignItems:i,disableGutters:b}),[i,M.dense,f,b]),H=_.useRef(null),z=_.Children.toArray(a),V=z.length&&W6(z[z.length-1],["ListItemSecondaryAction"]),P={...r,alignItems:i,dense:C.dense,disableGutters:b,disablePadding:T,divider:S,hasSecondaryAction:V},$=I7(P),W=Vt(H,n),G=x.root||u.Root||N7,q=w.root||l.root||{},Y={className:je($.root,q.className,s),...k};let Q=o||"li";return V?(Q=!Y.component&&!o?"div":Q,c==="li"&&(Q==="li"?Q="div":Y.component==="li"&&(Y.component="div")),R.jsx(nr.Provider,{value:C,children:R.jsxs(M7,{as:c,className:je($.container,d),ref:W,ownerState:P,...p,children:[R.jsx(G,{...q,...!Ca(G)&&{as:Q,ownerState:{...P,...q.ownerState}},...Y,children:z}),z.pop()]})})):R.jsx(nr.Provider,{value:C,children:R.jsxs(G,{...q,as:Q,ref:W,...!Ca(G)&&{ownerState:{...P,...q.ownerState}},...Y,children:[z,y&&R.jsx(pp,{children:y})]})})}),D7=e=>{const{alignItems:t,classes:n}=e;return Ye({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},O6,n)},P7=le("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(St(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),L7=_.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiListItemIcon"}),{className:i,...a}=r,s=_.useContext(nr),o={...r,alignItems:s.alignItems},u=D7(o);return R.jsx(P7,{className:je(u.root,i),ownerState:o,ref:n,...a})});function O7(e){return mt("MuiListItemText",e)}const di=at("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),_7=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return Ye({root:["root",n&&"inset",a&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},O7,t)},B7=le("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${di.primary}`]:t.primary},{[`& .${di.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Dc.root}:where(& .${di.primary})`]:{display:"block"},[`.${Dc.root}:where(& .${di.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),F7=_.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiListItemText"}),{children:i,className:a,disableTypography:s=!1,inset:o=!1,primary:u,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:d,slots:p={},slotProps:f={},...b}=r,{dense:T}=_.useContext(nr);let S=u??i,y=c;const w={...r,disableTypography:s,inset:o,primary:!!S,secondary:!!y,dense:T},x=_7(w),k={slots:p,slotProps:{primary:l,secondary:d,...f}},[M,C]=xt("root",{className:je(x.root,a),elementType:B7,externalForwardedProps:{...k,...b},ownerState:w,ref:n}),[H,z]=xt("primary",{className:x.primary,elementType:Ge,externalForwardedProps:k,ownerState:w}),[V,P]=xt("secondary",{className:x.secondary,elementType:Ge,externalForwardedProps:k,ownerState:w});return S!=null&&S.type!==Ge&&!s&&(S=R.jsx(H,{variant:T?"body2":"body1",component:z?.variant?void 0:"span",...z,children:S})),y!=null&&y.type!==Ge&&!s&&(y=R.jsx(V,{variant:"body2",color:"textSecondary",...P,children:y})),R.jsxs(M,{...C,children:[S,y]})});function qo(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function id(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function mp(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Wi(e,t,n,r,i,a){let s=!1,o=i(e,t,t?n:!1);for(;o;){if(o===e.firstChild){if(s)return!1;s=!0}const u=r?!1:o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||!mp(o,a)||u)o=i(e,o,n);else return o.focus(),!0}return!1}const H7=_.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:a=!1,children:s,className:o,disabledItemsFocusable:u=!1,disableListWrap:l=!1,onKeyDown:c,variant:d="selectedMenu",...p}=t,f=_.useRef(null),b=_.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ar(()=>{i&&f.current.focus()},[i]),_.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,{direction:k})=>{const M=!f.current.style.width;if(x.clientHeight{const k=f.current,M=x.key;if(x.ctrlKey||x.metaKey||x.altKey){c&&c(x);return}const H=fn(k).activeElement;if(M==="ArrowDown")x.preventDefault(),Wi(k,H,l,u,qo);else if(M==="ArrowUp")x.preventDefault(),Wi(k,H,l,u,id);else if(M==="Home")x.preventDefault(),Wi(k,null,l,u,qo);else if(M==="End")x.preventDefault(),Wi(k,null,l,u,id);else if(M.length===1){const z=b.current,V=M.toLowerCase(),P=performance.now();z.keys.length>0&&(P-z.lastTime>500?(z.keys=[],z.repeating=!0,z.previousKeyMatched=!0):z.repeating&&V!==z.keys[0]&&(z.repeating=!1)),z.lastTime=P,z.keys.push(V);const $=H&&!z.repeating&&mp(H,z);z.previousKeyMatched&&($||Wi(k,H,!1,u,qo,z))?x.preventDefault():z.previousKeyMatched=!1}c&&c(x)},S=Vt(f,n);let y=-1;_.Children.forEach(s,(x,k)=>{if(!_.isValidElement(x)){y===k&&(y+=1,y>=s.length&&(y=-1));return}x.props.disabled||(d==="selectedMenu"&&x.props.selected||y===-1)&&(y=k),y===k&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(y+=1,y>=s.length&&(y=-1))});const w=_.Children.map(s,(x,k)=>{if(k===y){const M={};return a&&(M.autoFocus=!0),x.props.tabIndex===void 0&&d==="selectedMenu"&&(M.tabIndex=0),_.cloneElement(x,M)}return x});return R.jsx(fp,{role:"menu",ref:S,className:o,onKeyDown:T,tabIndex:i?0:-1,...p,children:w})});function z7(e){return mt("MuiPopover",e)}at("MuiPopover",["root","paper"]);function ad(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function sd(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function od(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function fs(e){return typeof e=="function"?e():e}const U7=e=>{const{classes:t}=e;return Ye({root:["root"],paper:["paper"]},z7,t)},V7=le(lp,{name:"MuiPopover",slot:"Root"})({}),gp=le(po,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),j7=_.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiPopover"}),{action:i,anchorEl:a,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:o,anchorReference:u="anchorEl",children:l,className:c,container:d,elevation:p=8,marginThreshold:f=16,open:b,PaperProps:T={},slots:S={},slotProps:y={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:x,transitionDuration:k="auto",TransitionProps:M={},disableScrollLock:C=!1,...H}=r,z=_.useRef(),V={...r,anchorOrigin:s,anchorReference:u,elevation:p,marginThreshold:f,transformOrigin:w,TransitionComponent:x,transitionDuration:k,TransitionProps:M},P=U7(V),$=_.useCallback(()=>{if(u==="anchorPosition")return o;const Te=fs(a),Ne=(Te&&Te.nodeType===1?Te:fn(z.current).body).getBoundingClientRect();return{top:Ne.top+ad(Ne,s.vertical),left:Ne.left+sd(Ne,s.horizontal)}},[a,s.horizontal,s.vertical,o,u]),W=_.useCallback(Te=>({vertical:ad(Te,w.vertical),horizontal:sd(Te,w.horizontal)}),[w.horizontal,w.vertical]),G=_.useCallback(Te=>{const De={width:Te.offsetWidth,height:Te.offsetHeight},Ne=W(De);if(u==="none")return{top:null,left:null,transformOrigin:od(Ne)};const Ke=$();let Me=Ke.top-Ne.vertical,$e=Ke.left-Ne.horizontal;const wt=Me+De.height,dt=$e+De.width,st=sr(fs(a)),Nt=st.innerHeight-f,ot=st.innerWidth-f;if(f!==null&&MeNt){const it=wt-Nt;Me-=it,Ne.vertical+=it}if(f!==null&&$eot){const it=dt-ot;$e-=it,Ne.horizontal+=it}return{top:`${Math.round(Me)}px`,left:`${Math.round($e)}px`,transformOrigin:od(Ne)}},[a,u,$,W,f]),[q,Y]=_.useState(b),Q=_.useCallback(()=>{const Te=z.current;if(!Te)return;const De=G(Te);De.top!==null&&Te.style.setProperty("top",De.top),De.left!==null&&(Te.style.left=De.left),Te.style.transformOrigin=De.transformOrigin,Y(!0)},[G]);_.useEffect(()=>(C&&window.addEventListener("scroll",Q),()=>window.removeEventListener("scroll",Q)),[a,C,Q]);const ee=()=>{Q()},de=()=>{Y(!1)};_.useEffect(()=>{b&&Q()}),_.useImperativeHandle(i,()=>b?{updatePosition:()=>{Q()}}:null,[b,Q]),_.useEffect(()=>{if(!b)return;const Te=$f(()=>{Q()}),De=sr(fs(a));return De.addEventListener("resize",Te),()=>{Te.clear(),De.removeEventListener("resize",Te)}},[a,b,Q]);let oe=k;const N={slots:{transition:x,...S},slotProps:{transition:M,paper:T,...y}},[Ce,ve]=xt("transition",{elementType:Gs,externalForwardedProps:N,ownerState:V,getSlotProps:Te=>({...Te,onEntering:(De,Ne)=>{Te.onEntering?.(De,Ne),ee()},onExited:De=>{Te.onExited?.(De),de()}}),additionalProps:{appear:!0,in:b}});k==="auto"&&!Ce.muiSupportAuto&&(oe=void 0);const B=d||(a?fn(fs(a)).body:void 0),[xe,{slots:Ie,slotProps:Be,...Ve}]=xt("root",{ref:n,elementType:V7,externalForwardedProps:{...N,...H},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:S.backdrop},slotProps:{backdrop:K6(typeof y.backdrop=="function"?y.backdrop(V):y.backdrop,{invisible:!0})},container:B,open:b},ownerState:V,className:je(P.root,c)}),[_e,qe]=xt("paper",{ref:z,className:P.paper,elementType:gp,externalForwardedProps:N,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:q?void 0:{opacity:0}},ownerState:V});return R.jsx(xe,{...Ve,...!Ca(xe)&&{slots:Ie,slotProps:Be,disableScrollLock:C},children:R.jsx(Ce,{...ve,timeout:oe,children:R.jsx(_e,{...qe,children:l})})})});function q7(e){return mt("MuiMenu",e)}at("MuiMenu",["root","paper","list"]);const $7={vertical:"top",horizontal:"right"},W7={vertical:"top",horizontal:"left"},Y7=e=>{const{classes:t}=e;return Ye({root:["root"],paper:["paper"],list:["list"]},q7,t)},G7=le(j7,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),X7=le(gp,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),K7=le(H7,{name:"MuiMenu",slot:"List"})({outline:0}),Q7=_.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:o=!1,MenuListProps:u={},onClose:l,open:c,PaperProps:d={},PopoverClasses:p,transitionDuration:f="auto",TransitionProps:{onEntering:b,...T}={},variant:S="selectedMenu",slots:y={},slotProps:w={},...x}=r,k=Wl(),M={...r,autoFocus:i,disableAutoFocusItem:o,MenuListProps:u,onEntering:b,PaperProps:d,transitionDuration:f,TransitionProps:T,variant:S},C=Y7(M),H=i&&!o&&c,z=_.useRef(null),V=(oe,N)=>{z.current&&z.current.adjustStyleForScrollbar(oe,{direction:k?"rtl":"ltr"}),b&&b(oe,N)},P=oe=>{oe.key==="Tab"&&(oe.preventDefault(),l&&l(oe,"tabKeyDown"))};let $=-1;_.Children.map(a,(oe,N)=>{_.isValidElement(oe)&&(oe.props.disabled||(S==="selectedMenu"&&oe.props.selected||$===-1)&&($=N))});const W={slots:y,slotProps:{list:u,transition:T,paper:d,...w}},G=np({elementType:y.root,externalSlotProps:w.root,ownerState:M,className:[C.root,s]}),[q,Y]=xt("paper",{className:C.paper,elementType:X7,externalForwardedProps:W,shouldForwardComponentProp:!0,ownerState:M}),[Q,ee]=xt("list",{className:je(C.list,u.className),elementType:K7,shouldForwardComponentProp:!0,externalForwardedProps:W,getSlotProps:oe=>({...oe,onKeyDown:N=>{P(N),oe.onKeyDown?.(N)}}),ownerState:M}),de=typeof W.slotProps.transition=="function"?W.slotProps.transition(M):W.slotProps.transition;return R.jsx(G7,{onClose:l,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?$7:W7,slots:{root:y.root,paper:q,backdrop:y.backdrop,...y.transition&&{transition:y.transition}},slotProps:{root:G,paper:Y,backdrop:typeof w.backdrop=="function"?w.backdrop(M):w.backdrop,transition:{...de,onEntering:(...oe)=>{V(...oe),de?.onEntering?.(...oe)}}},open:c,ref:n,transitionDuration:f,ownerState:M,...x,classes:p,children:R.jsx(Q,{actions:z,autoFocus:i&&($===-1||o),autoFocusItem:H,variant:S,...ee,children:a})})});function Z7(e){return mt("MuiMenuItem",e)}const Yi=at("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),J7=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},eb=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:s}=e,u=Ye({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},Z7,s);return{...s,...u}},tb=le(_6,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:J7})(St(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Yi.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Yi.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Yi.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Yi.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Yi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Lc.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Lc.inset}`]:{marginLeft:52},[`& .${di.root}`]:{marginTop:0,marginBottom:0},[`& .${di.inset}`]:{paddingLeft:36},[`& .${Pc.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Pc.root} svg`]:{fontSize:"1.25rem"}}}]}))),nb=_.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:s=!1,divider:o=!1,disableGutters:u=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:d,className:p,...f}=r,b=_.useContext(nr),T=_.useMemo(()=>({dense:s||b.dense||!1,disableGutters:u}),[b.dense,s,u]),S=_.useRef(null);ar(()=>{i&&S.current&&S.current.focus()},[i]);const y={...r,dense:T.dense,divider:o,disableGutters:u},w=eb(r),x=Vt(S,n);let k;return r.disabled||(k=d!==void 0?d:-1),R.jsx(nr.Provider,{value:T,children:R.jsx(tb,{ref:x,role:c,tabIndex:k,component:a,focusVisibleClassName:je(w.focusVisible,l),className:je(w.root,p),...f,ownerState:y,classes:w})})});function rb(e){return mt("MuiNativeSelect",e)}const s0=at("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ib=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${Et(n)}`,a&&"iconOpen",r&&"disabled"]};return Ye(o,rb,t)},bp=le("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${s0.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),ab=le(bp,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Wn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${s0.multiple}`]:t.multiple}]}})({}),yp=le("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${s0.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),sb=le(yp,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Et(n.variant)}`],n.open&&t.iconOpen]}})({}),ob=_.forwardRef(function(t,n){const{className:r,disabled:i,error:a,IconComponent:s,inputRef:o,variant:u="standard",...l}=t,c={...t,disabled:i,variant:u,error:a},d=ib(c);return R.jsxs(_.Fragment,{children:[R.jsx(ab,{ownerState:c,className:je(d.select,r),disabled:i,ref:o||n,...l}),t.multiple?null:R.jsx(sb,{as:s,ownerState:c,className:d.icon})]})});var ud;const ub=le("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Wn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),lb=le("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Wn})(St(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function cb(e){const{children:t,classes:n,className:r,label:i,notched:a,...s}=e,o=i!=null&&i!=="",u={...e,notched:a,withLabel:o};return R.jsx(ub,{"aria-hidden":!0,className:r,ownerState:u,...s,children:R.jsx(lb,{ownerState:u,children:o?R.jsx("span",{children:i}):ud||(ud=R.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const db=e=>{const{classes:t}=e,r=Ye({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},B6,t);return{...t,...r}},hb=le(yo,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:go})(St(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ln.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ln.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ln.focused} .${Ln.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Xl()).map(([n])=>({props:{color:n},style:{[`&.${Ln.focused} .${Ln.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Ln.error} .${Ln.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ln.disabled} .${Ln.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),fb=le(cb,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(St(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),pb=le(vo,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:bo})(St(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),vp=_.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:s="input",label:o,multiline:u=!1,notched:l,slots:c={},slotProps:d={},type:p="text",...f}=r,b=db(r),T=i0(),S=r0({props:r,muiFormControl:T,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),y={...r,color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:T,fullWidth:a,hiddenLabel:S.hiddenLabel,multiline:u,size:S.size,type:p},w=c.root??i.Root??hb,x=c.input??i.Input??pb,[k,M]=xt("notchedOutline",{elementType:fb,className:b.notchedOutline,shouldForwardComponentProp:!0,ownerState:y,externalForwardedProps:{slots:c,slotProps:d},additionalProps:{label:o!=null&&o!==""&&S.required?R.jsxs(_.Fragment,{children:[o," ","*"]}):o}});return R.jsx(a0,{slots:{root:w,input:x},slotProps:d,renderSuffix:C=>R.jsx(k,{...M,notched:typeof l<"u"?l:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:a,inputComponent:s,multiline:u,ref:n,type:p,...f,classes:{...b,notchedOutline:null}})});vp.muiName="Input";function Tp(e){return mt("MuiSelect",e)}const Gi=at("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var ld;const mb=le(bp,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Gi.select}`]:t.select},{[`&.${Gi.select}`]:t[n.variant]},{[`&.${Gi.error}`]:t.error},{[`&.${Gi.multiple}`]:t.multiple}]}})({[`&.${Gi.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),gb=le(yp,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Et(n.variant)}`],n.open&&t.iconOpen]}})({}),bb=le("input",{shouldForwardProp:e=>F6(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function cd(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function yb(e){return e==null||typeof e=="string"&&!e.trim()}const vb=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${Et(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ye(o,Tp,t)},Tb=_.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":i,autoFocus:a,autoWidth:s,children:o,className:u,defaultOpen:l,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:b,inputRef:T,labelId:S,MenuProps:y={},multiple:w,name:x,onBlur:k,onChange:M,onClose:C,onFocus:H,onOpen:z,open:V,readOnly:P,renderValue:$,required:W,SelectDisplayProps:G={},tabIndex:q,type:Y,value:Q,variant:ee="standard",...de}=t,[oe,N]=ju({controlled:Q,default:c,name:"Select"}),[Ce,ve]=ju({controlled:V,default:l,name:"Select"}),B=_.useRef(null),xe=_.useRef(null),[Ie,Be]=_.useState(null),{current:Ve}=_.useRef(V!=null),[_e,qe]=_.useState(),Te=Vt(n,T),De=_.useCallback(pe=>{xe.current=pe,pe&&Be(pe)},[]),Ne=Ie?.parentNode;_.useImperativeHandle(Te,()=>({focus:()=>{xe.current.focus()},node:B.current,value:oe}),[oe]),_.useEffect(()=>{l&&Ce&&Ie&&!Ve&&(qe(s?null:Ne.clientWidth),xe.current.focus())},[Ie,s]),_.useEffect(()=>{a&&xe.current.focus()},[a]),_.useEffect(()=>{if(!S)return;const pe=fn(xe.current).getElementById(S);if(pe){const ke=()=>{getSelection().isCollapsed&&xe.current.focus()};return pe.addEventListener("click",ke),()=>{pe.removeEventListener("click",ke)}}},[S]);const Ke=(pe,ke)=>{pe?z&&z(ke):C&&C(ke),Ve||(qe(s?null:Ne.clientWidth),ve(pe))},Me=pe=>{pe.button===0&&(pe.preventDefault(),xe.current.focus(),Ke(!0,pe))},$e=pe=>{Ke(!1,pe)},wt=_.Children.toArray(o),dt=pe=>{const ke=wt.find(et=>et.props.value===pe.target.value);ke!==void 0&&(N(ke.props.value),M&&M(pe,ke))},st=pe=>ke=>{let et;if(ke.currentTarget.hasAttribute("tabindex")){if(w){et=Array.isArray(oe)?oe.slice():[];const At=oe.indexOf(pe.props.value);At===-1?et.push(pe.props.value):et.splice(At,1)}else et=pe.props.value;if(pe.props.onClick&&pe.props.onClick(ke),oe!==et&&(N(et),M)){const At=ke.nativeEvent||ke,os=new At.constructor(At.type,At);Object.defineProperty(os,"target",{writable:!0,value:{value:et,name:x}}),M(os,pe)}w||Ke(!1,ke)}},Nt=pe=>{P||[" ","ArrowUp","ArrowDown","Enter"].includes(pe.key)&&(pe.preventDefault(),Ke(!0,pe))},ot=Ie!==null&&Ce,it=pe=>{!ot&&k&&(Object.defineProperty(pe,"target",{writable:!0,value:{value:oe,name:x}}),k(pe))};delete de["aria-invalid"];let Ht,Kt;const gt=[];let on=!1;(sp({value:oe})||p)&&($?Ht=$(oe):on=!0);const K=wt.map(pe=>{if(!_.isValidElement(pe))return null;let ke;if(w){if(!Array.isArray(oe))throw new Error(Ff(2));ke=oe.some(et=>cd(et,pe.props.value)),ke&&on&>.push(pe.props.children)}else ke=cd(oe,pe.props.value),ke&&on&&(Kt=pe.props.children);return _.cloneElement(pe,{"aria-selected":ke?"true":"false",onClick:st(pe),onKeyUp:et=>{et.key===" "&&et.preventDefault(),pe.props.onKeyUp&&pe.props.onKeyUp(et)},role:"option",selected:ke,value:void 0,"data-value":pe.props.value})});on&&(w?gt.length===0?Ht=null:Ht=gt.reduce((pe,ke,et)=>(pe.push(ke),et{const{classes:t}=e,r=Ye({root:["root"]},Tp,t);return{...t,...r}},o0={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Wn(e)&&e!=="variant"},Eb=le(hp,o0)(""),Sb=le(vp,o0)(""),wb=le(dp,o0)(""),xp=_.forwardRef(function(t,n){const r=Xe({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:s={},className:o,defaultOpen:u=!1,displayEmpty:l=!1,IconComponent:c=v5,id:d,input:p,inputProps:f,label:b,labelId:T,MenuProps:S,multiple:y=!1,native:w=!1,onClose:x,onOpen:k,open:M,renderValue:C,SelectDisplayProps:H,variant:z="outlined",...V}=r,P=w?ob:Tb,$=i0(),W=r0({props:r,muiFormControl:$,states:["variant","error"]}),G=W.variant||z,q={...r,variant:G,classes:s},Y=xb(q),{root:Q,...ee}=Y,de=p||{standard:R.jsx(Eb,{ownerState:q}),outlined:R.jsx(Sb,{label:b,ownerState:q}),filled:R.jsx(wb,{ownerState:q})}[G],oe=Vt(n,Ri(de));return R.jsx(_.Fragment,{children:_.cloneElement(de,{inputComponent:P,inputProps:{children:a,error:W.error,IconComponent:c,variant:G,type:void 0,multiple:y,...w?{id:d}:{autoWidth:i,defaultOpen:u,displayEmpty:l,labelId:T,MenuProps:S,onClose:x,onOpen:k,open:M,renderValue:C,SelectDisplayProps:{id:d,...H}},...f,classes:f?Gl(ee,f.classes):ee,...p?p.props.inputProps:{}},...(y&&w||l)&&G==="outlined"?{notched:!0}:{},ref:oe,className:je(de.props.className,o,Y.root),...!p&&{variant:G},...V})})});xp.muiName="Select";function Ab(e){return mt("MuiSkeleton",e)}at("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Cb=e=>{const{classes:t,variant:n,animation:r,hasChildren:i,width:a,height:s}=e;return Ye({root:["root",n,r,i&&"withChildren",i&&!a&&"fitContent",i&&!s&&"heightAuto"]},Ab,t)},Ku=zf` + 0% { + opacity: 1; + } + + 50% { + opacity: 0.4; + } + + 100% { + opacity: 1; + } +`,Qu=zf` + 0% { + transform: translateX(-100%); + } + + 50% { + /* +0.5s of delay between each loop */ + transform: translateX(100%); + } + + 100% { + transform: translateX(100%); + } +`,kb=typeof Ku!="string"?Hf` + animation: ${Ku} 2s ease-in-out 0.5s infinite; + `:null,Ib=typeof Qu!="string"?Hf` + &::after { + animation: ${Qu} 2s linear 0.5s infinite; + } + `:null,Nb=le("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(St(({theme:e})=>{const t=Y6(e.shape.borderRadius)||"px",n=G6(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:r})=>r.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:r})=>r.hasChildren&&!r.width,style:{maxWidth:"fit-content"}},{props:({ownerState:r})=>r.hasChildren&&!r.height,style:{height:"auto"}},{props:{animation:"pulse"},style:kb||{animation:`${Ku} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient( + 90deg, + transparent, + ${(e.vars||e).palette.action.hover}, + transparent + )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:Ib||{"&::after":{animation:`${Qu} 2s linear 0.5s infinite`}}}]}})),dd=_.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiSkeleton"}),{animation:i="pulse",className:a,component:s="span",height:o,style:u,variant:l="text",width:c,...d}=r,p={...r,animation:i,component:s,variant:l,hasChildren:!!d.children},f=Cb(p);return R.jsx(Nb,{as:s,ref:n,className:je(f.root,a),ownerState:p,...d,style:{width:c,height:o,...u}})});function Mb(e){return mt("MuiTooltip",e)}const vt=at("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function Rb(e){return Math.round(e*1e5)/1e5}const Db=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${Et(a.split("-")[0])}`],arrow:["arrow"]};return Ye(s,Mb,t)},Pb=le(ip,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(St(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${vt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${vt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${vt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${vt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${vt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${vt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${vt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${vt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),Lb=le("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Et(n.placement.split("-")[0])}`]]}})(St(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${vt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${vt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${vt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${vt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Rb(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${vt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${vt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${vt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${vt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${vt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${vt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${vt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${vt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${vt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${vt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Ob=le("span",{name:"MuiTooltip",slot:"Arrow"})(St(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let ps=!1;const hd=new H6;let Xi={x:0,y:0};function ms(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Xs=_.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:a,classes:s,components:o={},componentsProps:u={},describeChild:l=!1,disableFocusListener:c=!1,disableHoverListener:d=!1,disableInteractive:p=!1,disableTouchListener:f=!1,enterDelay:b=100,enterNextDelay:T=0,enterTouchDelay:S=700,followCursor:y=!1,id:w,leaveDelay:x=0,leaveTouchDelay:k=1500,onClose:M,onOpen:C,open:H,placement:z="bottom",PopperComponent:V,PopperProps:P={},slotProps:$={},slots:W={},title:G,TransitionComponent:q,TransitionProps:Y,...Q}=r,ee=_.isValidElement(a)?a:R.jsx("span",{children:a}),de=Va(),oe=Wl(),[N,Ce]=_.useState(),[ve,B]=_.useState(null),xe=_.useRef(!1),Ie=p||y,Be=ra(),Ve=ra(),_e=ra(),qe=ra(),[Te,De]=ju({controlled:H,default:!1,name:"Tooltip",state:"open"});let Ne=Te;const Ke=Yl(w),Me=_.useRef(),$e=Aa(()=>{Me.current!==void 0&&(document.body.style.WebkitUserSelect=Me.current,Me.current=void 0),qe.clear()});_.useEffect(()=>$e,[$e]);const wt=Fe=>{hd.clear(),ps=!0,De(!0),C&&!Ne&&C(Fe)},dt=Aa(Fe=>{hd.start(800+x,()=>{ps=!1}),De(!1),M&&Ne&&M(Fe),Be.start(de.transitions.duration.shortest,()=>{xe.current=!1})}),st=Fe=>{xe.current&&Fe.type!=="touchstart"||(N&&N.removeAttribute("title"),Ve.clear(),_e.clear(),b||ps&&T?Ve.start(ps?T:b,()=>{wt(Fe)}):wt(Fe))},Nt=Fe=>{Ve.clear(),_e.start(x,()=>{dt(Fe)})},[,ot]=_.useState(!1),it=Fe=>{Oc(Fe.target)||(ot(!1),Nt(Fe))},Ht=Fe=>{N||Ce(Fe.currentTarget),Oc(Fe.target)&&(ot(!0),st(Fe))},Kt=Fe=>{xe.current=!0;const mr=ee.props;mr.onTouchStart&&mr.onTouchStart(Fe)},gt=Fe=>{Kt(Fe),_e.clear(),Be.clear(),$e(),Me.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",qe.start(S,()=>{document.body.style.WebkitUserSelect=Me.current,st(Fe)})},on=Fe=>{ee.props.onTouchEnd&&ee.props.onTouchEnd(Fe),$e(),_e.start(k,()=>{dt(Fe)})};_.useEffect(()=>{if(!Ne)return;function Fe(mr){mr.key==="Escape"&&dt(mr)}return document.addEventListener("keydown",Fe),()=>{document.removeEventListener("keydown",Fe)}},[dt,Ne]);const K=Vt(Ri(ee),Ce,n);!G&&G!==0&&(Ne=!1);const ie=_.useRef(),me=Fe=>{const mr=ee.props;mr.onMouseMove&&mr.onMouseMove(Fe),Xi={x:Fe.clientX,y:Fe.clientY},ie.current&&ie.current.update()},Ee={},Pe=typeof G=="string";l?(Ee.title=!Ne&&Pe&&!d?G:null,Ee["aria-describedby"]=Ne?Ke:null):(Ee["aria-label"]=Pe?G:null,Ee["aria-labelledby"]=Ne&&!Pe?Ke:null);const Se={...Ee,...Q,...ee.props,className:je(Q.className,ee.props.className),onTouchStart:Kt,ref:K,...y?{onMouseMove:me}:{}},Mt={};f||(Se.onTouchStart=gt,Se.onTouchEnd=on),d||(Se.onMouseOver=ms(st,Se.onMouseOver),Se.onMouseLeave=ms(Nt,Se.onMouseLeave),Ie||(Mt.onMouseOver=st,Mt.onMouseLeave=Nt)),c||(Se.onFocus=ms(Ht,Se.onFocus),Se.onBlur=ms(it,Se.onBlur),Ie||(Mt.onFocus=Ht,Mt.onBlur=it));const bt={...r,isRtl:oe,arrow:i,disableInteractive:Ie,placement:z,PopperComponentProp:V,touch:xe.current},Qt=typeof $.popper=="function"?$.popper(bt):$.popper,pe=_.useMemo(()=>{let Fe=[{name:"arrow",enabled:!!ve,options:{element:ve,padding:4}}];return P.popperOptions?.modifiers&&(Fe=Fe.concat(P.popperOptions.modifiers)),Qt?.popperOptions?.modifiers&&(Fe=Fe.concat(Qt.popperOptions.modifiers)),{...P.popperOptions,...Qt?.popperOptions,modifiers:Fe}},[ve,P.popperOptions,Qt?.popperOptions]),ke=Db(bt),et=typeof $.transition=="function"?$.transition(bt):$.transition,At={slots:{popper:o.Popper,transition:o.Transition??q,tooltip:o.Tooltip,arrow:o.Arrow,...W},slotProps:{arrow:$.arrow??u.arrow,popper:{...P,...Qt??u.popper},tooltip:$.tooltip??u.tooltip,transition:{...Y,...et??u.transition}}},[os,u6]=xt("popper",{elementType:Pb,externalForwardedProps:At,ownerState:bt,className:je(ke.popper,P?.className)}),[l6,c6]=xt("transition",{elementType:Gs,externalForwardedProps:At,ownerState:bt}),[d6,h6]=xt("tooltip",{elementType:Lb,className:ke.tooltip,externalForwardedProps:At,ownerState:bt}),[f6,p6]=xt("arrow",{elementType:Ob,className:ke.arrow,externalForwardedProps:At,ownerState:bt,ref:B});return R.jsxs(_.Fragment,{children:[_.cloneElement(ee,Se),R.jsx(os,{as:V??ip,placement:z,anchorEl:y?{getBoundingClientRect:()=>({top:Xi.y,left:Xi.x,right:Xi.x,bottom:Xi.y,width:0,height:0})}:N,popperRef:ie,open:N?Ne:!1,id:Ke,transition:!0,...Mt,...u6,popperOptions:pe,children:({TransitionProps:Fe})=>R.jsx(l6,{timeout:de.transitions.duration.shorter,...Fe,...c6,children:R.jsxs(d6,{...h6,children:[G,i?R.jsx(f6,{...p6}):null]})})})]})}),Ep=_.createContext();function _b(e){return mt("MuiTable",e)}at("MuiTable",["root","stickyHeader"]);const Bb=e=>{const{classes:t,stickyHeader:n}=e;return Ye({root:["root",n&&"stickyHeader"]},_b,t)},Fb=le("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(St(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),fd="table",Hb=_.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiTable"}),{className:i,component:a=fd,padding:s="normal",size:o="medium",stickyHeader:u=!1,...l}=r,c={...r,component:a,padding:s,size:o,stickyHeader:u},d=Bb(c),p=_.useMemo(()=>({padding:s,size:o,stickyHeader:u}),[s,o,u]);return R.jsx(Ep.Provider,{value:p,children:R.jsx(Fb,{as:a,role:a===fd?null:"table",ref:n,className:je(d.root,i),ownerState:c,...l})})}),To=_.createContext();function zb(e){return mt("MuiTableBody",e)}at("MuiTableBody",["root"]);const Ub=e=>{const{classes:t}=e;return Ye({root:["root"]},zb,t)},Vb=le("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),jb={variant:"body"},pd="tbody",qb=_.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiTableBody"}),{className:i,component:a=pd,...s}=r,o={...r,component:a},u=Ub(o);return R.jsx(To.Provider,{value:jb,children:R.jsx(Vb,{className:je(u.root,i),as:a,ref:n,role:a===pd?null:"rowgroup",ownerState:o,...s})})}),$b=e=>{const{classes:t,variant:n,align:r,padding:i,size:a,stickyHeader:s}=e,o={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${Et(r)}`,i!=="normal"&&`padding${Et(i)}`,`size${Et(a)}`]};return Ye(o,z6,t)},Wb=le("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Et(n.size)}`],n.padding!=="normal"&&t[`padding${Et(n.padding)}`],n.align!=="inherit"&&t[`align${Et(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(St(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${U6.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),md=_.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:s,padding:o,scope:u,size:l,sortDirection:c,variant:d,...p}=r,f=_.useContext(Ep),b=_.useContext(To),T=b&&b.variant==="head";let S;s?S=s:S=T?"th":"td";let y=u;S==="td"?y=void 0:!y&&T&&(y="col");const w=d||b&&b.variant,x={...r,align:i,component:S,padding:o||(f&&f.padding?f.padding:"normal"),size:l||(f&&f.size?f.size:"medium"),sortDirection:c,stickyHeader:w==="head"&&f&&f.stickyHeader,variant:w},k=$b(x);let M=null;return c&&(M=c==="asc"?"ascending":"descending"),R.jsx(Wb,{as:S,ref:n,className:je(k.root,a),"aria-sort":M,scope:y,ownerState:x,...p})});function Yb(e){return mt("MuiTableContainer",e)}at("MuiTableContainer",["root"]);const Gb=e=>{const{classes:t}=e;return Ye({root:["root"]},Yb,t)},Xb=le("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),Kb=_.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiTableContainer"}),{className:i,component:a="div",...s}=r,o={...r,component:a},u=Gb(o);return R.jsx(Xb,{ref:n,as:a,className:je(u.root,i),ownerState:o,...s})});function Qb(e){return mt("MuiTableHead",e)}at("MuiTableHead",["root"]);const Zb=e=>{const{classes:t}=e;return Ye({root:["root"]},Qb,t)},Jb=le("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),e8={variant:"head"},gd="thead",t8=_.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiTableHead"}),{className:i,component:a=gd,...s}=r,o={...r,component:a},u=Zb(o);return R.jsx(To.Provider,{value:e8,children:R.jsx(Jb,{as:a,className:je(u.root,i),ref:n,role:a===gd?null:"rowgroup",ownerState:o,...s})})}),n8=e=>{const{classes:t,selected:n,hover:r,head:i,footer:a}=e;return Ye({root:["root",n&&"selected",r&&"hover",i&&"head",a&&"footer"]},V6,t)},r8=le("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(St(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${_c.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${_c.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),bd="tr",i8=_.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiTableRow"}),{className:i,component:a=bd,hover:s=!1,selected:o=!1,...u}=r,l=_.useContext(To),c={...r,component:a,hover:s,selected:o,head:l&&l.variant==="head",footer:l&&l.variant==="footer"},d=n8(c);return R.jsx(r8,{as:a,ref:n,className:je(d.root,i),role:a===bd?null:"row",ownerState:c,...u})});/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const a8=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 13l-6 6",key:"svg-1"}],["path",{d:"M6 13l6 6",key:"svg-2"}]],s8=In("outline","arrow-down","ArrowDown",a8);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const o8=[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]],u8=In("outline","check","Check",o8);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const l8=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M9 12h6",key:"svg-1"}],["path",{d:"M12 9v6",key:"svg-2"}]],c8=In("outline","circle-plus","CirclePlus",l8);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const d8=[["path",{d:"M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z",key:"svg-1"}],["path",{d:"M4.012 16.737a2 2 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1",key:"svg-2"}],["path",{d:"M11 14l2 2l4 -4",key:"svg-3"}]],Sp=In("outline","copy-check","CopyCheck",d8);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const h8=[["path",{d:"M7 7m0 2.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z",key:"svg-0"}],["path",{d:"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1",key:"svg-1"}]],wp=In("outline","copy","Copy",h8);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const f8=[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M9 4v16",key:"svg-1"}],["path",{d:"M15 10l-2 2l2 2",key:"svg-2"}]],p8=In("outline","layout-sidebar-left-collapse","LayoutSidebarLeftCollapse",f8);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const m8=[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M9 4v16",key:"svg-1"}],["path",{d:"M14 10l2 2l-2 2",key:"svg-2"}]],g8=In("outline","layout-sidebar-left-expand","LayoutSidebarLeftExpand",m8);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const b8=[["path",{d:"M12 6l0 -3",key:"svg-0"}],["path",{d:"M16.25 7.75l2.15 -2.15",key:"svg-1"}],["path",{d:"M18 12l3 0",key:"svg-2"}],["path",{d:"M16.25 16.25l2.15 2.15",key:"svg-3"}],["path",{d:"M12 18l0 3",key:"svg-4"}],["path",{d:"M7.75 16.25l-2.15 2.15",key:"svg-5"}],["path",{d:"M6 12l-3 0",key:"svg-6"}],["path",{d:"M7.75 7.75l-2.15 -2.15",key:"svg-7"}]],y8=In("outline","loader","Loader",b8);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const v8=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]],T8=In("outline","plus","Plus",v8);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const x8=[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}]],E8=In("outline","refresh","Refresh",x8);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const S8=[["path",{d:"M10 19a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z",key:"svg-0"}],["path",{d:"M18 5a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z",key:"svg-1"}],["path",{d:"M10 5a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z",key:"svg-2"}],["path",{d:"M6 12a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z",key:"svg-3"}],["path",{d:"M18 19a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z",key:"svg-4"}],["path",{d:"M14 12a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z",key:"svg-5"}],["path",{d:"M22 12a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z",key:"svg-6"}],["path",{d:"M6 12h4",key:"svg-7"}],["path",{d:"M14 12h4",key:"svg-8"}],["path",{d:"M15 7l-2 3",key:"svg-9"}],["path",{d:"M9 7l2 3",key:"svg-10"}],["path",{d:"M11 14l-2 3",key:"svg-11"}],["path",{d:"M13 14l2 3",key:"svg-12"}]],w8=In("outline","topology-star-3","TopologyStar3",S8);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const A8=[["path",{d:"M7 3.34a10 10 0 1 1 -4.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 4.995 -8.336z",key:"svg-0"}]],C8=In("filled","circle-filled","CircleFilled",A8),k8={primary:Ls,secondary:Ls,info:Ls,error:Fc,warning:Fc,success:q6},I8=e=>{const{open:t,onClose:n=()=>{},titleId:r,title:i,contentId:a,content:s,color:o="primary",titleIconColor:u="warning",titleIcon:l=!0,cancelLabel:c,onCancel:d=()=>{},confirmLabel:p,onConfirm:f=()=>{},submitLabel:b,onSubmitValid:T,onSubmitInvalid:S,handleSubmit:y,secondaryAction:w,...x}=e,k=k8[o],[M,C]=_.useState(!1),H=W=>!(W===!1||typeof W=="object"&&W.closeDialog===!1),z=W=>async(...G)=>{if(!M)try{const q=W(...G);if(q instanceof Promise){C(!0);const Y=await q;C(!1),H(Y)&&n()}else H(q)&&n()}catch(q){C(!1),console.error("Error in dialog action:",q)}};let V;const P=[];c&&P.push({key:"cancel",children:c,color:"secondary",onClick:z(d),loading:M}),p&&P.push({key:"confirm",children:p,color:o,onClick:z(f),loading:M}),b&&(P.push({key:"submit",children:b,type:"submit",loading:M}),y&&T&&(V={onSubmit:W=>{W.preventDefault(),W.stopPropagation(),!M&&(C(!0),y(async(...G)=>{try{const q=await T(...G);C(!1),H(q)&&n()}catch(q){C(!1),console.error("Error in form submission:",q)}},async(...G)=>{try{await S?.(...G)}catch(q){console.error("Error in form validation:",q)}finally{C(!1)}})())}}));const $=()=>{M||n()};return R.jsxs(Q5,{open:t,onClose:$,"aria-labelledby":r,"aria-describedby":a,...x,component:V&&"form"||void 0,...V,children:[R.jsxs(d7,{id:!k&&r||void 0,children:[l==="form"&&R.jsx(j6,{})||l===!0&&R.jsx(Bc,{variant:"circle",color:u,children:R.jsx(k,{})})||R.jsx(Bc,{variant:"circle",color:u,children:l})||void 0,!l&&i,R.jsx(Kr,{size:"small",onClick:$,children:R.jsx(Uf,{size:"1.25rem"})})]}),R.jsxs(i7,{children:[l&&R.jsx(Ge,{variant:"subtitle1",id:r,children:i}),R.jsx(u7,{id:a,children:s})]}),P.length>0&&R.jsxs(t7,{children:[R.jsx(Ar,{mr:"auto",children:w}),P.map(W=>_.createElement(Vf,{...W,key:W.key,...P.length===1&&{fullWidth:!0}}))]})]})},$o=(e,t)=>{const[n,r]=_.useState(!1),i=R.jsx(I8,{...e,open:n,onClose:()=>{r(!1),e.onClose?.()}}),a=_.useMemo(()=>({open:()=>r(!0),close:()=>r(!1)}),[]);return[i,a]},N8=()=>R.jsxs("svg",{width:"100",height:"21",viewBox:"0 0 100 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[R.jsx("path",{d:"M25.9027 21C24.2555 21 22.9819 20.6707 22.082 20.012C21.1821 19.3687 20.6482 18.4344 20.4805 17.209H23.7064C23.9352 18.1586 24.6825 18.6335 25.9485 18.6335C26.8789 18.6335 27.5576 18.4037 27.9847 17.9442C28.4118 17.5 28.6253 16.8184 28.6253 15.8993V14.0383C28.3203 14.5897 27.8779 15.0339 27.2984 15.3709C26.7188 15.6926 26.0324 15.8534 25.2393 15.8534C24.2478 15.8534 23.3556 15.6313 22.5624 15.1871C21.7693 14.7276 21.1439 14.0536 20.6864 13.1652C20.2288 12.2768 20 11.2046 20 9.94858C20 8.69256 20.2288 7.62035 20.6864 6.73195C21.1439 5.82823 21.7693 5.15427 22.5624 4.71007C23.3556 4.25055 24.2478 4.02079 25.2393 4.02079C25.9866 4.02079 26.6654 4.18928 27.2755 4.52626C27.8856 4.86324 28.3355 5.29978 28.6253 5.83589V4.36543H31.7826V15.7845C31.7826 17.3928 31.3021 18.6641 30.3412 19.5985C29.3803 20.5328 27.9008 21 25.9027 21ZM25.9256 13.4409C26.7493 13.4409 27.4127 13.1116 27.9161 12.453C28.4194 11.7943 28.6711 10.9519 28.6711 9.9256C28.6711 8.89934 28.4194 8.06455 27.9161 7.42123C27.4127 6.76258 26.7493 6.43326 25.9256 6.43326C25.041 6.43326 24.3699 6.73961 23.9123 7.3523C23.4547 7.96499 23.2259 8.82276 23.2259 9.9256C23.2259 11.0284 23.4547 11.8939 23.9123 12.5219C24.3699 13.1346 25.041 13.4409 25.9256 13.4409Z",fill:"black"}),R.jsx("path",{d:"M33.39 16.1751V4.36543H36.4787V6.91575C36.8905 5.81291 37.4091 5.03939 38.0344 4.59519C38.6598 4.15098 39.5368 3.95952 40.6655 4.02079V6.98468C40.3299 6.95405 40.0783 6.93873 39.9105 6.93873C39.4682 6.93873 39.0487 7 38.6522 7.12254C37.2489 7.59737 36.5473 9.01422 36.5473 11.3731V16.1751H33.39Z",fill:"black"}),R.jsx("path",{d:"M44.1585 16.4967C42.9382 16.4967 41.9316 16.1751 41.1384 15.5317C40.3606 14.8884 39.9716 14 39.9716 12.8665C39.9716 11.9628 40.2157 11.2659 40.7037 10.7757C41.2071 10.2702 41.7714 9.9256 42.3968 9.74179C43.0374 9.55799 43.7619 9.41247 44.5703 9.30525L45.5312 9.19037C46.3396 9.09847 46.9192 8.96061 47.27 8.7768C47.636 8.57768 47.8191 8.20241 47.8191 7.65098C47.8191 7.19147 47.6589 6.83917 47.3386 6.59409C47.0183 6.34902 46.5607 6.22648 45.9659 6.22648C45.3863 6.22648 44.9135 6.34902 44.5474 6.59409C44.1966 6.82385 43.9754 7.14551 43.8839 7.55908H40.4978C40.7266 6.44092 41.3138 5.57549 42.2595 4.9628C43.2204 4.33479 44.4788 4.02079 46.0345 4.02079C49.2986 4.02079 50.9306 5.26149 50.9306 7.74289V13.326C50.9306 14.2451 51.0602 15.1947 51.3195 16.1751H48.208C48.086 15.6083 48.0021 15.1105 47.9563 14.6816C47.6055 15.233 47.1022 15.6772 46.4463 16.0142C45.7905 16.3359 45.0278 16.4967 44.1585 16.4967ZM45.1422 14.1532C45.9354 14.1532 46.576 13.8928 47.0641 13.372C47.5674 12.8512 47.8191 12.1849 47.8191 11.3731V10.2013C47.6055 10.4617 47.3386 10.6608 47.0183 10.7987C46.7133 10.9365 46.2709 11.0514 45.6913 11.1433C44.8372 11.2965 44.2195 11.4803 43.8381 11.6947C43.4568 11.8939 43.2662 12.2538 43.2662 12.7746C43.2662 13.2035 43.4416 13.5405 43.7924 13.7856C44.1432 14.0306 44.5932 14.1532 45.1422 14.1532Z",fill:"black"}),R.jsx("path",{d:"M63.6153 0.0919039V16.1751H60.458V14.7965C60.1682 15.3173 59.7183 15.7385 59.1082 16.0602C58.4981 16.3665 57.7964 16.5197 57.0033 16.5197C56.0119 16.5197 55.112 16.267 54.3036 15.7615C53.5105 15.256 52.8775 14.5361 52.4047 13.6018C51.9471 12.6521 51.7183 11.5416 51.7183 10.2702C51.7183 8.99891 51.9471 7.89606 52.4047 6.96171C52.8775 6.01203 53.5105 5.28446 54.3036 4.77899C55.112 4.27352 56.0119 4.02079 57.0033 4.02079C57.7812 4.02079 58.4752 4.18928 59.0853 4.52626C59.7106 4.84792 60.1682 5.2768 60.458 5.81291V0.0919039H63.6153ZM57.6897 14.0383C58.5438 14.0383 59.2226 13.686 59.7259 12.9814C60.2445 12.2768 60.5038 11.3731 60.5038 10.2702C60.5038 9.1674 60.2445 8.26368 59.7259 7.55908C59.2226 6.85449 58.5438 6.50219 57.6897 6.50219C56.7898 6.50219 56.1034 6.83917 55.6306 7.51313C55.173 8.17177 54.9442 9.09081 54.9442 10.2702C54.9442 11.4497 55.173 12.3764 55.6306 13.0503C56.1034 13.709 56.7898 14.0383 57.6897 14.0383Z",fill:"black"}),R.jsx("path",{d:"M68.4939 3.10175H64.9476V0H68.4939V3.10175ZM68.2879 16.1751H65.1764V4.36543H68.2879V16.1751Z",fill:"black"}),R.jsx("path",{d:"M75.1212 14.0842C76.2194 14.0842 76.9515 13.7396 77.3176 13.0503H80.6121C80.2766 14.1225 79.6207 14.9726 78.6446 15.6007C77.6836 16.2133 76.4939 16.5197 75.0755 16.5197C73.7942 16.5197 72.6808 16.2593 71.7351 15.7385C70.8047 15.2177 70.0879 14.4902 69.5845 13.5558C69.0812 12.6061 68.8295 11.5186 68.8295 10.2932C68.8295 9.09847 69.1041 8.02626 69.6532 7.07659C70.2023 6.1116 70.9344 5.36105 71.8495 4.82495C72.7799 4.28884 73.7942 4.02079 74.8924 4.02079C76.0821 4.02079 77.1269 4.30416 78.0268 4.8709C78.942 5.42232 79.6589 6.24179 80.1774 7.32932C80.696 8.40153 80.9629 9.69584 80.9782 11.2123H72.0555C72.1165 12.0853 72.4291 12.7823 72.9935 13.3031C73.5731 13.8239 74.2823 14.0842 75.1212 14.0842ZM75.0068 6.45624C74.2594 6.45624 73.6112 6.70131 73.0621 7.19147C72.5283 7.68162 72.2003 8.29431 72.0783 9.02954H77.8438C77.7065 8.24836 77.3938 7.62801 76.9058 7.16849C76.4177 6.69365 75.7847 6.45624 75.0068 6.45624Z",fill:"black"}),R.jsx("path",{d:"M81.5786 16.1751V4.36543H84.6444V5.85886C84.9647 5.35339 85.407 4.92451 85.9713 4.57221C86.5357 4.2046 87.2449 4.02079 88.0991 4.02079C89.304 4.02079 90.2421 4.39606 90.9132 5.14661C91.5995 5.89716 91.9427 6.95405 91.9427 8.31729V16.1751H88.7854V8.54705C88.7854 7.21444 88.2135 6.54814 87.0695 6.54814C86.4289 6.54814 85.8798 6.80853 85.4222 7.32932C84.9647 7.83479 84.7359 8.593 84.7359 9.60394V16.1751H81.5786Z",fill:"black"}),R.jsx("path",{d:"M98.1011 16.2899C96.9876 16.2899 96.0801 16.0066 95.3785 15.4398C94.6921 14.8731 94.3489 13.9311 94.3489 12.6138V6.7779H92.3356V4.36543H94.3489V0.873086H97.4147V4.36543H99.7712V6.7779H97.4147V12.0853C97.4147 12.698 97.5291 13.1575 97.7579 13.4639C98.0019 13.7549 98.3985 13.9004 98.9476 13.9004C99.2374 13.9004 99.5882 13.8545 100 13.7626V16.0372C99.5272 16.2057 98.8942 16.2899 98.1011 16.2899Z",fill:"black"}),R.jsx("path",{d:"M3 13H0V16H3V13Z",fill:"black"}),R.jsx("path",{d:"M18 0V2.85011L8.94745 16H6V13.1499L15.0521 0H18Z",fill:"black"})]}),yd=()=>R.jsxs("svg",{width:"26",height:"28",viewBox:"0 0 26 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[R.jsx("path",{d:"M7 19H4V22H7V19Z",fill:"black"}),R.jsx("path",{d:"M22 6V8.85011L12.9475 22H10V19.1499L19.0521 6H22Z",fill:"black"})]}),M8=le(xp)(({theme:e})=>{const{spacing:t}=e;return{height:"4rem"}}),R8=le(nb)(({theme:e})=>{const{spacing:t}=e;return{height:"3.25rem",gap:"0.5rem"}}),D8=le("img")(({theme:e})=>{const{palette:t}=e;return{width:"2.25rem",height:"2.25rem",borderRadius:"0.5rem",border:`1px solid ${t.divider}`,objectFit:"cover"}}),P8=le("span")(({theme:e})=>{const{palette:t,typography:n}=e;return{...n.subtitle2,fontWeight:n.fontWeightLight,color:t.text.primary}}),L8=le("span")(({theme:e})=>{const{palette:t,typography:n}=e;return{...n.body2,fontWeight:n.fontWeightLight,color:t.text.secondary}}),vd=(e,t)=>R.jsxs(R8,{value:e.name,children:[R.jsx(D8,{src:e.logoUrl}),R.jsxs(Qe,{gap:.25,children:[R.jsx(P8,{children:e.displayName}),R.jsx(L8,{children:e.name})]})]},e.name),EL=()=>{const[{modelName:e,modelInfoList:t},{setModelName:n}]=ja();return R.jsx(M8,{value:e,onChange:r=>n(String(r.target.value)),renderValue:r=>{const i=t.find(a=>a.name===r);return i&&vd(i)||void 0},children:t.map(r=>vd(r,r.name===e))})},O8={"linux/mac":"Linux/MacOS",windows:"Windows"},_8=le("div")(({theme:e})=>{const{palette:t,spacing:n}=e;return{display:"flex",flexFlow:"row nowrap",justifyContent:"space-between",alignItems:"center",paddingInline:n(2),paddingBlock:n(1.5),gap:n(1),overflow:"hidden",borderRadius:"0.7rem",backgroundColor:t.background.area}}),Td=()=>{const[{clusterInfo:{nodeJoinCommand:e}}]=ja(),[t,n]=_.useState();_.useEffect(()=>{if(t){const i=setTimeout(()=>{n(void 0)},2e3);return()=>clearTimeout(i)}},[t]);const r=$s(async i=>{await navigator.clipboard.writeText(e[i]),n(i)});return R.jsx(Qe,{gap:1,children:Object.entries(e).map(([i,a])=>R.jsxs(Qe,{gap:1,children:[R.jsxs(Ge,{variant:"subtitle2",children:["For ",O8[i]||i,":"]}),R.jsxs(_8,{children:[R.jsx(Ge,{sx:{flex:1,lineHeight:"1.125rem",whiteSpace:"wrap"},variant:"pre",children:a}),R.jsx(Kr,{sx:{flex:"none",fontSize:"1.5rem"},size:"em",onClick:()=>r(i),children:t===i&&R.jsx(Sp,{})||R.jsx(wp,{})})]})]},i))})};function u0(e,t){e.indexOf(t)===-1&&e.push(t)}function l0(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const ur=(e,t,n)=>n>t?t:n{};const lr={},Ap=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Cp(e){return typeof e=="object"&&e!==null}const kp=e=>/^0[^.\s]+$/u.test(e);function d0(e){let t;return()=>(t===void 0&&(t=e()),t)}const En=e=>e,B8=(e,t)=>n=>t(e(n)),Wa=(...e)=>e.reduce(B8),Ma=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class h0{constructor(){this.subscriptions=[]}add(t){return u0(this.subscriptions,t),()=>l0(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;ae*1e3,jn=e=>e/1e3;function Ip(e,t){return t?e*(1e3/t):0}const Np=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,F8=1e-7,H8=12;function z8(e,t,n,r,i){let a,s,o=0;do s=t+(n-t)/2,a=Np(s,r,i)-e,a>0?n=s:t=s;while(Math.abs(a)>F8&&++oz8(a,0,1,e,n);return a=>a===0||a===1?a:Np(i(a),t,r)}const Mp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Rp=e=>t=>1-e(1-t),Dp=Ya(.33,1.53,.69,.99),f0=Rp(Dp),Pp=Mp(f0),Lp=e=>(e*=2)<1?.5*f0(e):.5*(2-Math.pow(2,-10*(e-1))),p0=e=>1-Math.sin(Math.acos(e)),Op=Rp(p0),_p=Mp(p0),U8=Ya(.42,0,1,1),V8=Ya(0,0,.58,1),Bp=Ya(.42,0,.58,1),j8=e=>Array.isArray(e)&&typeof e[0]!="number",Fp=e=>Array.isArray(e)&&typeof e[0]=="number",q8={linear:En,easeIn:U8,easeInOut:Bp,easeOut:V8,circIn:p0,circInOut:_p,circOut:Op,backIn:f0,backInOut:Pp,backOut:Dp,anticipate:Lp},$8=e=>typeof e=="string",xd=e=>{if(Fp(e)){c0(e.length===4);const[t,n,r,i]=e;return Ya(t,n,r,i)}else if($8(e))return q8[e];return e},Hp=_.createContext({}),zp=_.createContext({strict:!1}),Up=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),xo=_.createContext({});function Eo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ra(e){return typeof e=="string"||Array.isArray(e)}const m0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],g0=["initial",...m0];function So(e){return Eo(e.animate)||g0.some(t=>Ra(e[t]))}function Vp(e){return!!(So(e)||e.variants)}function W8(e,t){if(So(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ra(n)?n:void 0,animate:Ra(r)?r:void 0}}return e.inherit!==!1?t:{}}function Y8(e){const{initial:t,animate:n}=W8(e,_.useContext(xo));return _.useMemo(()=>({initial:t,animate:n}),[Ed(t),Ed(n)])}function Ed(e){return Array.isArray(e)?e.join(" "):e}const gs=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function G8(e,t){let n=new Set,r=new Set,i=!1,a=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function u(c){s.has(c)&&(l.schedule(c),e()),c(o)}const l={schedule:(c,d=!1,p=!1)=>{const b=p&&i?n:r;return d&&s.add(c),b.has(c)||b.add(c),c},cancel:c=>{r.delete(c),s.delete(c)},process:c=>{if(o=c,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(u),n.clear(),i=!1,a&&(a=!1,l.process(c))}};return l}const X8=40;function jp(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=gs.reduce((x,k)=>(x[k]=G8(a),x),{}),{setup:o,read:u,resolveKeyframes:l,preUpdate:c,update:d,preRender:p,render:f,postRender:b}=s,T=()=>{const x=lr.useManualTiming?i.timestamp:performance.now();n=!1,lr.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,X8),1)),i.timestamp=x,i.isProcessing=!0,o.process(i),u.process(i),l.process(i),c.process(i),d.process(i),p.process(i),f.process(i),b.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(T))},S=()=>{n=!0,r=!0,i.isProcessing||e(T)};return{schedule:gs.reduce((x,k)=>{const M=s[k];return x[k]=(C,H=!1,z=!1)=>(n||S(),M.schedule(C,H,z)),x},{}),cancel:x=>{for(let k=0;k(_s===void 0&&tn.set(Ft.isProcessing||lr.useManualTiming?Ft.timestamp:performance.now()),_s),set:e=>{_s=e,queueMicrotask(K8)}},qp=e=>t=>typeof t=="string"&&t.startsWith(e),b0=qp("--"),Q8=qp("var(--"),y0=e=>Q8(e)?Z8.test(e.split("/*")[0].trim()):!1,Z8=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Di={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Da={...Di,transform:e=>ur(0,1,e)},bs={...Di,default:1},da=e=>Math.round(e*1e5)/1e5,v0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function J8(e){return e==null}const ey=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,T0=(e,t)=>n=>!!(typeof n=="string"&&ey.test(n)&&n.startsWith(e)||t&&!J8(n)&&Object.prototype.hasOwnProperty.call(n,t)),$p=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,s,o]=r.match(v0);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},ty=e=>ur(0,255,e),Yo={...Di,transform:e=>Math.round(ty(e))},qr={test:T0("rgb","red"),parse:$p("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Yo.transform(e)+", "+Yo.transform(t)+", "+Yo.transform(n)+", "+da(Da.transform(r))+")"};function ny(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Zu={test:T0("#"),parse:ny,transform:qr.transform},Ga=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),vr=Ga("deg"),qn=Ga("%"),Ae=Ga("px"),ry=Ga("vh"),iy=Ga("vw"),Sd={...qn,parse:e=>qn.parse(e)/100,transform:e=>qn.transform(e*100)},hi={test:T0("hsl","hue"),parse:$p("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+qn.transform(da(t))+", "+qn.transform(da(n))+", "+da(Da.transform(r))+")"},Pt={test:e=>qr.test(e)||Zu.test(e)||hi.test(e),parse:e=>qr.test(e)?qr.parse(e):hi.test(e)?hi.parse(e):Zu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?qr.transform(e):hi.transform(e),getAnimatableNone:e=>{const t=Pt.parse(e);return t.alpha=0,Pt.transform(t)}},ay=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function sy(e){return isNaN(e)&&typeof e=="string"&&(e.match(v0)?.length||0)+(e.match(ay)?.length||0)>0}const Wp="number",Yp="color",oy="var",uy="var(",wd="${}",ly=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Pa(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const o=t.replace(ly,u=>(Pt.test(u)?(r.color.push(a),i.push(Yp),n.push(Pt.parse(u))):u.startsWith(uy)?(r.var.push(a),i.push(oy),n.push(u)):(r.number.push(a),i.push(Wp),n.push(parseFloat(u))),++a,wd)).split(wd);return{values:n,split:o,indexes:r,types:i}}function Gp(e){return Pa(e).values}function Xp(e){const{split:t,types:n}=Pa(e),r=t.length;return i=>{let a="";for(let s=0;stypeof e=="number"?0:Pt.test(e)?Pt.getAnimatableNone(e):e;function dy(e){const t=Gp(e);return Xp(e)(t.map(cy))}const kr={test:sy,parse:Gp,createTransformer:Xp,getAnimatableNone:dy};function Go(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hy({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,s=0;if(!t)i=a=s=n;else{const o=n<.5?n*(1+t):n+t-n*t,u=2*n-o;i=Go(u,o,e+1/3),a=Go(u,o,e),s=Go(u,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}function Ks(e,t){return n=>n>0?t:e}const pt=(e,t,n)=>e+(t-e)*n,Xo=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},fy=[Zu,qr,hi],py=e=>fy.find(t=>t.test(e));function Ad(e){const t=py(e);if(!t)return!1;let n=t.parse(e);return t===hi&&(n=hy(n)),n}const Cd=(e,t)=>{const n=Ad(e),r=Ad(t);if(!n||!r)return Ks(e,t);const i={...n};return a=>(i.red=Xo(n.red,r.red,a),i.green=Xo(n.green,r.green,a),i.blue=Xo(n.blue,r.blue,a),i.alpha=pt(n.alpha,r.alpha,a),qr.transform(i))},Ju=new Set(["none","hidden"]);function my(e,t){return Ju.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function gy(e,t){return n=>pt(e,t,n)}function x0(e){return typeof e=="number"?gy:typeof e=="string"?y0(e)?Ks:Pt.test(e)?Cd:vy:Array.isArray(e)?Kp:typeof e=="object"?Pt.test(e)?Cd:by:Ks}function Kp(e,t){const n=[...e],r=n.length,i=e.map((a,s)=>x0(a)(a,t[s]));return a=>{for(let s=0;s{for(const a in r)n[a]=r[a](i);return n}}function yy(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i{const n=kr.createTransformer(t),r=Pa(e),i=Pa(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ju.has(e)&&!i.values.length||Ju.has(t)&&!r.values.length?my(e,t):Wa(Kp(yy(r,i),i.values),n):Ks(e,t)};function Qp(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?pt(e,t,n):x0(e)(e,t)}const Ty=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>lt.update(t,n),stop:()=>Cr(t),now:()=>Ft.isProcessing?Ft.timestamp:tn.now()}},Zp=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a=Qs?1/0:t}function xy(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(E0(r),Qs);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:jn(i)}}const Ey=5;function Jp(e,t,n){const r=Math.max(t-Ey,0);return Ip(n-e(r),t-r)}const Tt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Ko=.001;function Sy({duration:e=Tt.duration,bounce:t=Tt.bounce,velocity:n=Tt.velocity,mass:r=Tt.mass}){let i,a,s=1-t;s=ur(Tt.minDamping,Tt.maxDamping,s),e=ur(Tt.minDuration,Tt.maxDuration,jn(e)),s<1?(i=l=>{const c=l*s,d=c*e,p=c-n,f=el(l,s),b=Math.exp(-d);return Ko-p/f*b},a=l=>{const d=l*s*e,p=d*n+n,f=Math.pow(s,2)*Math.pow(l,2)*e,b=Math.exp(-d),T=el(Math.pow(l,2),s);return(-i(l)+Ko>0?-1:1)*((p-f)*b)/T}):(i=l=>{const c=Math.exp(-l*e),d=(l-n)*e+1;return-Ko+c*d},a=l=>{const c=Math.exp(-l*e),d=(n-l)*(e*e);return c*d});const o=5/e,u=Ay(i,a,o);if(e=Vn(e),isNaN(u))return{stiffness:Tt.stiffness,damping:Tt.damping,duration:e};{const l=Math.pow(u,2)*r;return{stiffness:l,damping:s*2*Math.sqrt(r*l),duration:e}}}const wy=12;function Ay(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function Iy(e){let t={velocity:Tt.velocity,stiffness:Tt.stiffness,damping:Tt.damping,mass:Tt.mass,isResolvedFromDuration:!1,...e};if(!kd(e,ky)&&kd(e,Cy))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*ur(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Tt.mass,stiffness:i,damping:a}}else{const n=Sy(e);t={...t,...n,mass:Tt.mass},t.isResolvedFromDuration=!0}return t}function Zs(e=Tt.visualDuration,t=Tt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],o={done:!1,value:a},{stiffness:u,damping:l,mass:c,duration:d,velocity:p,isResolvedFromDuration:f}=Iy({...n,velocity:-jn(n.velocity||0)}),b=p||0,T=l/(2*Math.sqrt(u*c)),S=s-a,y=jn(Math.sqrt(u/c)),w=Math.abs(S)<5;r||(r=w?Tt.restSpeed.granular:Tt.restSpeed.default),i||(i=w?Tt.restDelta.granular:Tt.restDelta.default);let x;if(T<1){const M=el(y,T);x=C=>{const H=Math.exp(-T*y*C);return s-H*((b+T*y*S)/M*Math.sin(M*C)+S*Math.cos(M*C))}}else if(T===1)x=M=>s-Math.exp(-y*M)*(S+(b+y*S)*M);else{const M=y*Math.sqrt(T*T-1);x=C=>{const H=Math.exp(-T*y*C),z=Math.min(M*C,300);return s-H*((b+T*y*S)*Math.sinh(z)+M*S*Math.cosh(z))/M}}const k={calculatedDuration:f&&d||null,next:M=>{const C=x(M);if(f)o.done=M>=d;else{let H=M===0?b:0;T<1&&(H=M===0?Vn(b):Jp(x,M,C));const z=Math.abs(H)<=r,V=Math.abs(s-C)<=i;o.done=z&&V}return o.value=o.done?s:C,o},toString:()=>{const M=Math.min(E0(k),Qs),C=Zp(H=>k.next(M*H).value,M,30);return M+"ms "+C},toTransition:()=>{}};return k}Zs.applyToOptions=e=>{const t=xy(e,100,Zs);return e.ease=t.ease,e.duration=Vn(t.duration),e.type="keyframes",e};function tl({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:u,restDelta:l=.5,restSpeed:c}){const d=e[0],p={done:!1,value:d},f=z=>o!==void 0&&zu,b=z=>o===void 0?u:u===void 0||Math.abs(o-z)-T*Math.exp(-z/r),x=z=>y+w(z),k=z=>{const V=w(z),P=x(z);p.done=Math.abs(V)<=l,p.value=p.done?y:P};let M,C;const H=z=>{f(p.value)&&(M=z,C=Zs({keyframes:[p.value,b(p.value)],velocity:Jp(x,z,p.value),damping:i,stiffness:a,restDelta:l,restSpeed:c}))};return H(0),{calculatedDuration:null,next:z=>{let V=!1;return!C&&M===void 0&&(V=!0,k(z),H(z)),M!==void 0&&z>=M?C.next(z-M):(!V&&k(z),p)}}}function Ny(e,t,n){const r=[],i=n||lr.mix||Qp,a=e.length-1;for(let s=0;st[0];if(a===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=Ny(t,r,i),u=o.length,l=c=>{if(s&&c1)for(;dl(ur(e[0],e[a-1],c)):l}function Ry(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ma(0,t,r);e.push(pt(n,1,i))}}function Dy(e){const t=[0];return Ry(t,e.length-1),t}function Py(e,t){return e.map(n=>n*t)}function Ly(e,t){return e.map(()=>t||Bp).splice(0,e.length-1)}function ha({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=j8(r)?r.map(xd):xd(r),a={done:!1,value:t[0]},s=Py(n&&n.length===t.length?n:Dy(t),e),o=My(s,t,{ease:Array.isArray(i)?i:Ly(t,i)});return{calculatedDuration:e,next:u=>(a.value=o(u),a.done=u>=e,a)}}const Oy=e=>e!==null;function S0(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(Oy),o=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!o||r===void 0?a[o]:r}const _y={decay:tl,inertia:tl,tween:ha,keyframes:ha,spring:Zs};function em(e){typeof e.type=="string"&&(e.type=_y[e.type])}class w0{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const By=e=>e/100;class A0 extends w0{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==tn.now()&&this.tick(tn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;em(t);const{type:n=ha,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=t;let{keyframes:o}=t;const u=n||ha;u!==ha&&typeof o[0]!="number"&&(this.mixKeyframes=Wa(By,Qp(o[0],o[1])),o=[0,100]);const l=u({...t,keyframes:o});a==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...o].reverse(),velocity:-s})),l.calculatedDuration===null&&(l.calculatedDuration=E0(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=l}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:l=0,keyframes:c,repeat:d,repeatType:p,repeatDelay:f,type:b,onUpdate:T,finalKeyframe:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const y=this.currentTime-l*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?y<0:y>i;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let x=this.currentTime,k=r;if(d){const z=Math.min(this.currentTime,i)/o;let V=Math.floor(z),P=z%1;!P&&z>=1&&(P=1),P===1&&V--,V=Math.min(V,d+1),!!(V%2)&&(p==="reverse"?(P=1-P,f&&(P-=f/o)):p==="mirror"&&(k=s)),x=ur(0,1,P)*o}const M=w?{done:!1,value:c[0]}:k.next(x);a&&(M.value=a(M.value));let{done:C}=M;!w&&u!==null&&(C=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const H=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return H&&b!==tl&&(M.value=S0(c,this.options,S,this.speed)),T&&T(M.value),H&&this.finish(),M}then(t,n){return this.finished.then(t,n)}get duration(){return jn(this.calculatedDuration)}get time(){return jn(this.currentTime)}set time(t){t=Vn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(tn.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=jn(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Ty,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(tn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function Fy(e){for(let t=1;te*180/Math.PI,nl=e=>{const t=$r(Math.atan2(e[1],e[0]));return rl(t)},Hy={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:nl,rotateZ:nl,skewX:e=>$r(Math.atan(e[1])),skewY:e=>$r(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},rl=e=>(e=e%360,e<0&&(e+=360),e),Id=nl,Nd=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Md=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),zy={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Nd,scaleY:Md,scale:e=>(Nd(e)+Md(e))/2,rotateX:e=>rl($r(Math.atan2(e[6],e[5]))),rotateY:e=>rl($r(Math.atan2(-e[2],e[0]))),rotateZ:Id,rotate:Id,skewX:e=>$r(Math.atan(e[4])),skewY:e=>$r(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function il(e){return e.includes("scale")?1:0}function al(e,t){if(!e||e==="none")return il(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=zy,i=n;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Hy,i=o}if(!i)return il(t);const a=r[t],s=i[1].split(",").map(Vy);return typeof a=="function"?a(s):s[a]}const Uy=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return al(n,t)};function Vy(e){return parseFloat(e.trim())}const Pi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Li=new Set(Pi),Rd=e=>e===Di||e===Ae,jy=new Set(["x","y","z"]),qy=Pi.filter(e=>!jy.has(e));function $y(e){const t=[];return qy.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Yr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>al(t,"x"),y:(e,{transform:t})=>al(t,"y")};Yr.translateX=Yr.x;Yr.translateY=Yr.y;const Gr=new Set;let sl=!1,ol=!1,ul=!1;function tm(){if(ol){const e=Array.from(Gr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=$y(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,s])=>{r.getValue(a)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ol=!1,sl=!1,Gr.forEach(e=>e.complete(ul)),Gr.clear()}function nm(){Gr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ol=!0)})}function Wy(){ul=!0,nm(),tm(),ul=!1}class C0{constructor(t,n,r,i,a,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Gr.add(this),sl||(sl=!0,lt.read(nm),lt.resolveKeyframes(tm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const a=i?.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const o=r.readValue(n,s);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=s),i&&a===void 0&&i.set(t[0])}Fy(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Gr.delete(this)}cancel(){this.state==="scheduled"&&(Gr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Yy=e=>e.startsWith("--");function Gy(e,t,n){Yy(t)?e.style.setProperty(t,n):e.style[t]=n}const Xy=d0(()=>window.ScrollTimeline!==void 0),Ky={};function Qy(e,t){const n=d0(e);return()=>Ky[t]??n()}const rm=Qy(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),aa=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Dd={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:aa([0,.65,.55,1]),circOut:aa([.55,0,1,.45]),backIn:aa([.31,.01,.66,-.59]),backOut:aa([.33,1.53,.69,.99])};function im(e,t){if(e)return typeof e=="function"?rm()?Zp(e,t):"ease-out":Fp(e)?aa(e):Array.isArray(e)?e.map(n=>im(n,t)||Dd.easeOut):Dd[e]}function Zy(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:o="easeOut",times:u}={},l=void 0){const c={[t]:n};u&&(c.offset=u);const d=im(o,i);Array.isArray(d)&&(c.easing=d);const p={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};return l&&(p.pseudoElement=l),e.animate(c,p)}function am(e){return typeof e=="function"&&"applyToOptions"in e}function Jy({type:e,...t}){return am(e)&&rm()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class e9 extends w0{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:o,onComplete:u}=t;this.isPseudoElement=!!a,this.allowFlatten=s,this.options=t,c0(typeof t.type!="string");const l=Jy(t);this.animation=Zy(n,r,i,l,a),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const c=S0(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(c):Gy(n,r,c),this.animation.cancel()}u?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return jn(Number(t))}get time(){return jn(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Vn(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Xy()?(this.animation.timeline=t,En):n(this)}}const sm={anticipate:Lp,backInOut:Pp,circInOut:_p};function t9(e){return e in sm}function n9(e){typeof e.ease=="string"&&t9(e.ease)&&(e.ease=sm[e.ease])}const Pd=10;class r9 extends e9{constructor(t){n9(t),em(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const o=new A0({...s,autoplay:!1}),u=Vn(this.finishedTime??this.time);n.setWithVelocity(o.sample(u-Pd).value,o.sample(u).value,Pd),o.stop()}}const Ld=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(kr.test(e)||e==="0")&&!e.startsWith("url("));function i9(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function u9(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:l}=t.owner.getProps();return o9()&&n&&s9.has(n)&&(n!=="transform"||!l)&&!u&&!r&&i!=="mirror"&&a!==0&&s!=="inertia"}const l9=40;class c9 extends w0{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",keyframes:o,name:u,motionValue:l,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tn.now();const p={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:s,name:u,motionValue:l,element:c,...d},f=c?.KeyframeResolver||C0;this.keyframeResolver=new f(o,(b,T,S)=>this.onKeyframesResolved(b,T,p,!S),u,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:a,type:s,velocity:o,delay:u,isHandoff:l,onUpdate:c}=r;this.resolvedAt=tn.now(),a9(t,a,s,o)||((lr.instantAnimations||!u)&&c?.(S0(t,r,n)),t[0]=t[t.length-1],ll(r),r.repeat=0);const p={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>l9?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},f=!l&&u9(p)?new r9({...p,element:p.motionValue.owner.current}):new A0(p);f.finished.then(()=>this.notifyFinished()).catch(En),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Wy()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const d9=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function h9(e){const t=d9.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function om(e,t,n=1){const[r,i]=h9(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const s=a.trim();return Ap(s)?parseFloat(s):s}return y0(i)?om(i,t,n+1):i}function k0(e,t){return e?.[t]??e?.default??e}const um=new Set(["width","height","top","left","right","bottom",...Pi]),f9={test:e=>e==="auto",parse:e=>e},lm=e=>t=>t.test(e),cm=[Di,Ae,qn,vr,iy,ry,f9],Od=e=>cm.find(lm(e));function p9(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||kp(e):!0}const m9=new Set(["brightness","contrast","saturate","opacity"]);function g9(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(v0)||[];if(!r)return e;const i=n.replace(r,"");let a=m9.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const b9=/\b([a-z-]*)\(.*?\)/gu,cl={...kr,getAnimatableNone:e=>{const t=e.match(b9);return t?t.map(g9).join(" "):e}},_d={...Di,transform:Math.round},y9={rotate:vr,rotateX:vr,rotateY:vr,rotateZ:vr,scale:bs,scaleX:bs,scaleY:bs,scaleZ:bs,skew:vr,skewX:vr,skewY:vr,distance:Ae,translateX:Ae,translateY:Ae,translateZ:Ae,x:Ae,y:Ae,z:Ae,perspective:Ae,transformPerspective:Ae,opacity:Da,originX:Sd,originY:Sd,originZ:Ae},I0={borderWidth:Ae,borderTopWidth:Ae,borderRightWidth:Ae,borderBottomWidth:Ae,borderLeftWidth:Ae,borderRadius:Ae,radius:Ae,borderTopLeftRadius:Ae,borderTopRightRadius:Ae,borderBottomRightRadius:Ae,borderBottomLeftRadius:Ae,width:Ae,maxWidth:Ae,height:Ae,maxHeight:Ae,top:Ae,right:Ae,bottom:Ae,left:Ae,padding:Ae,paddingTop:Ae,paddingRight:Ae,paddingBottom:Ae,paddingLeft:Ae,margin:Ae,marginTop:Ae,marginRight:Ae,marginBottom:Ae,marginLeft:Ae,backgroundPositionX:Ae,backgroundPositionY:Ae,...y9,zIndex:_d,fillOpacity:Da,strokeOpacity:Da,numOctaves:_d},v9={...I0,color:Pt,backgroundColor:Pt,outlineColor:Pt,fill:Pt,stroke:Pt,borderColor:Pt,borderTopColor:Pt,borderRightColor:Pt,borderBottomColor:Pt,borderLeftColor:Pt,filter:cl,WebkitFilter:cl},dm=e=>v9[e];function hm(e,t){let n=dm(e);return n!==cl&&(n=kr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const T9=new Set(["auto","none","0"]);function x9(e,t,n){let r=0,i;for(;r{t.getValue(o).set(u)}),this.resolveNoneKeyframes()}}function S9(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const fm=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function w9(e){return Cp(e)&&"offsetHeight"in e}const Bd=30,A9=e=>!isNaN(parseFloat(e));class C9{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const i=tn.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=tn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=A9(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new h0);const r=this.events[t].add(n);return t==="change"?()=>{r(),lt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=tn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Bd)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Bd);return Ip(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ci(e,t){return new C9(e,t)}const{schedule:N0}=jp(queueMicrotask,!1),Mn={x:!1,y:!1};function pm(){return Mn.x||Mn.y}function k9(e){return e==="x"||e==="y"?Mn[e]?null:(Mn[e]=!0,()=>{Mn[e]=!1}):Mn.x||Mn.y?null:(Mn.x=Mn.y=!0,()=>{Mn.x=Mn.y=!1})}function mm(e,t){const n=S9(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Fd(e){return!(e.pointerType==="touch"||pm())}function I9(e,t,n={}){const[r,i,a]=mm(e,n),s=o=>{if(!Fd(o))return;const{target:u}=o,l=t(u,o);if(typeof l!="function"||!u)return;const c=d=>{Fd(d)&&(l(d),u.removeEventListener("pointerleave",c))};u.addEventListener("pointerleave",c,i)};return r.forEach(o=>{o.addEventListener("pointerenter",s,i)}),a}const gm=(e,t)=>t?e===t?!0:gm(e,t.parentElement):!1,M0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,N9=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function M9(e){return N9.has(e.tagName)||e.tabIndex!==-1}const Bs=new WeakSet;function Hd(e){return t=>{t.key==="Enter"&&e(t)}}function Qo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const R9=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Hd(()=>{if(Bs.has(n))return;Qo(n,"down");const i=Hd(()=>{Qo(n,"up")}),a=()=>Qo(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function zd(e){return M0(e)&&!pm()}function D9(e,t,n={}){const[r,i,a]=mm(e,n),s=o=>{const u=o.currentTarget;if(!zd(o))return;Bs.add(u);const l=t(u,o),c=(f,b)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",p),Bs.has(u)&&Bs.delete(u),zd(f)&&typeof l=="function"&&l(f,{success:b})},d=f=>{c(f,u===window||u===document||n.useGlobalTarget||gm(u,f.target))},p=f=>{c(f,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",p,i)};return r.forEach(o=>{(n.useGlobalTarget?window:o).addEventListener("pointerdown",s,i),w9(o)&&(o.addEventListener("focus",l=>R9(l,i)),!M9(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),a}function bm(e){return Cp(e)&&"ownerSVGElement"in e}function P9(e){return bm(e)&&e.tagName==="svg"}const zt=e=>!!(e&&e.getVelocity),L9=[...cm,Pt,kr],O9=e=>L9.find(lm(e)),La={};function _9(e){for(const t in e)La[t]=e[t],b0(t)&&(La[t].isCSSVariable=!0)}function ym(e,{layout:t,layoutId:n}){return Li.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!La[e]||e==="opacity")}const B9={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},F9=Pi.length;function H9(e,t,n){let r="",i=!0;for(let a=0;a({style:{},transform:{},transformOrigin:{},vars:{}});function vm(e,t,n){for(const r in t)!zt(t[r])&&!ym(r,n)&&(e[r]=t[r])}function z9({transformTemplate:e},t){return _.useMemo(()=>{const n=D0();return R0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function U9(e,t){const n=e.style||{},r={};return vm(r,n,e),Object.assign(r,z9(e,t)),r}function V9(e,t){const n={},r=U9(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const j9={offset:"stroke-dashoffset",array:"stroke-dasharray"},q9={offset:"strokeDashoffset",array:"strokeDasharray"};function $9(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?j9:q9;e[a.offset]=Ae.transform(-r);const s=Ae.transform(t),o=Ae.transform(n);e[a.array]=`${s} ${o}`}function Tm(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...o},u,l,c){if(R0(e,o,l),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:p}=e;d.transform&&(p.transform=d.transform,delete d.transform),(p.transform||d.transformOrigin)&&(p.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),p.transform&&(p.transformBox=c?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&$9(d,i,a,s,!1)}const xm=()=>({...D0(),attrs:{}}),Em=e=>typeof e=="string"&&e.toLowerCase()==="svg";function W9(e,t,n,r){const i=_.useMemo(()=>{const a=xm();return Tm(a,t,Em(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};vm(a,e.style,e),i.style={...a,...i.style}}return i}const Y9=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Js(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Y9.has(e)}let Sm=e=>!Js(e);function G9(e){typeof e=="function"&&(Sm=t=>t.startsWith("on")?!Js(t):e(t))}try{G9(require("@emotion/is-prop-valid").default)}catch{}function X9(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Sm(i)||n===!0&&Js(i)||!t&&!Js(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const K9=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function P0(e){return typeof e!="string"||e.includes("-")?!1:!!(K9.indexOf(e)>-1||/[A-Z]/u.test(e))}function Q9(e,t,n,{latestValues:r},i,a=!1){const o=(P0(e)?W9:V9)(t,r,i,e),u=X9(t,typeof e=="string",a),l=e!==_.Fragment?{...u,...o,ref:n}:{},{children:c}=t,d=_.useMemo(()=>zt(c)?c.get():c,[c]);return _.createElement(e,{...l,children:d})}const L0=_.createContext(null);function Ud(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function O0(e,t,n,r){if(typeof t=="function"){const[i,a]=Ud(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=Ud(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function Z9(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}function Fs(e){return zt(e)?e.get():e}function J9({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:ev(n,r,i,e),renderState:t()}}function ev(e,t,n,r){const i={},a=r(e,{});for(const p in a)i[p]=Fs(a[p]);let{initial:s,animate:o}=e;const u=So(e),l=Vp(e);t&&l&&!u&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?o:s;if(d&&typeof d!="boolean"&&!Eo(d)){const p=Array.isArray(d)?d:[d];for(let f=0;f(t,n)=>{const r=_.useContext(xo),i=_.useContext(L0),a=()=>J9(e,t,r,i);return n?a():Z9(a)};function _0(e,t,n){const{style:r}=e,i={};for(const a in r)(zt(r[a])||t.style&&zt(t.style[a])||ym(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(i[a]=r[a]);return i}const tv=wm({scrapeMotionValuesFromProps:_0,createRenderState:D0});function Am(e,t,n){const r=_0(e,t,n);for(const i in e)if(zt(e[i])||zt(t[i])){const a=Pi.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const nv=wm({scrapeMotionValuesFromProps:Am,createRenderState:xm}),B0=typeof window<"u",Vd={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ki={};for(const e in Vd)ki[e]={isEnabled:t=>Vd[e].some(n=>!!t[n])};function rv(e){for(const t in e)ki[t]={...ki[t],...e[t]}}const iv=Symbol.for("motionComponentSymbol");function fi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function av(e,t,n){const r=_.useRef(null);return _.useCallback(i=>{const a=r.current;r.current=i,i!==a&&(i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount())),n&&(typeof n=="function"?n(i):fi(n)&&(n.current=i))},[t,n])}const F0=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),sv="framerAppearId",Cm="data-"+F0(sv),km=_.createContext({}),ov=B0?_.useLayoutEffect:_.useEffect;function uv(e,t,n,r,i){const{visualElement:a}=_.useContext(xo),s=_.useContext(zp),o=_.useContext(L0),u=_.useContext(Up).reducedMotion,l=_.useRef(null);r=r||s.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:a,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:u}));const c=l.current,d=_.useContext(km);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&lv(l.current,n,i,d);const p=_.useRef(!1);_.useInsertionEffect(()=>{c&&p.current&&c.update(n,o)});const f=n[Cm],b=_.useRef(!!f&&!window.MotionHandoffIsComplete?.(f)&&window.MotionHasOptimisedAnimation?.(f));return ov(()=>{c&&(p.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),b.current&&c.animationState&&c.animationState.animateChanges())}),_.useEffect(()=>{c&&(!b.current&&c.animationState&&c.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(f)}),b.current=!1),c.enteringChildren=void 0)}),c}function lv(e,t,n,r){const{layoutId:i,layout:a,drag:s,dragConstraints:o,layoutScroll:u,layoutRoot:l,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Im(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||o&&fi(o),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:u,layoutRoot:l})}function Im(e){if(e)return e.options.allowProjection!==!1?e.projection:Im(e.parent)}function cv(e,{forwardMotionProps:t=!1}={},n,r){n&&rv(n);const i=P0(e)?nv:tv;function a(o,u){let l;const c={..._.useContext(Up),...o,layoutId:dv(o)},{isStatic:d}=c,p=Y8(o),f=i(o,d);if(!d&&B0){hv();const b=fv(c);l=b.MeasureLayout,p.visualElement=uv(e,f,c,r,b.ProjectionNode)}return R.jsxs(xo.Provider,{value:p,children:[l&&p.visualElement?R.jsx(l,{visualElement:p.visualElement,...c}):null,Q9(e,o,av(f,p.visualElement,u),f,d,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=_.forwardRef(a);return s[iv]=e,s}function dv({layoutId:e}){const t=_.useContext(Hp).id;return t&&e!==void 0?t+"-"+e:e}function hv(e,t){_.useContext(zp).strict}function fv(e){const{drag:t,layout:n}=ki;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Nm({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function pv({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function mv(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Zo(e){return e===void 0||e===1}function dl({scale:e,scaleX:t,scaleY:n}){return!Zo(e)||!Zo(t)||!Zo(n)}function jr(e){return dl(e)||Mm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Mm(e){return jd(e.x)||jd(e.y)}function jd(e){return e&&e!=="0%"}function eo(e,t,n){const r=e-n,i=t*r;return n+i}function qd(e,t,n,r,i){return i!==void 0&&(e=eo(e,i,r)),eo(e,n,r)+t}function hl(e,t=0,n=1,r,i){e.min=qd(e.min,t,n,r,i),e.max=qd(e.max,t,n,r,i)}function Rm(e,{x:t,y:n}){hl(e.x,t.translate,t.scale,t.originPoint),hl(e.y,n.translate,n.scale,n.originPoint)}const $d=.999999999999,Wd=1.0000000000001;function gv(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,s;for(let o=0;o$d&&(t.x=1),t.y$d&&(t.y=1)}function pi(e,t){e.min=e.min+t,e.max=e.max+t}function Yd(e,t,n,r,i=.5){const a=pt(e.min,e.max,i);hl(e,t,n,a,r)}function mi(e,t){Yd(e.x,t.x,t.scaleX,t.scale,t.originX),Yd(e.y,t.y,t.scaleY,t.scale,t.originY)}function Dm(e,t){return Nm(mv(e.getBoundingClientRect(),t))}function bv(e,t,n){const r=Dm(e,n),{scroll:i}=t;return i&&(pi(r.x,i.offset.x),pi(r.y,i.offset.y)),r}const Gd=()=>({translate:0,scale:1,origin:0,originPoint:0}),gi=()=>({x:Gd(),y:Gd()}),Xd=()=>({min:0,max:0}),Ct=()=>({x:Xd(),y:Xd()}),fl={current:null},Pm={current:!1};function yv(){if(Pm.current=!0,!!B0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>fl.current=e.matches;e.addEventListener("change",t),t()}else fl.current=!1}const vv=new WeakMap;function Tv(e,t,n){for(const r in t){const i=t[r],a=n[r];if(zt(i))e.addValue(r,i);else if(zt(a))e.addValue(r,Ci(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,Ci(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Kd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class xv{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=C0,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=tn.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),Pm.current||yv(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:fl.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Cr(this.notifyUpdate),Cr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Li.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&<.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ki){const n=ki[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ct()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ci(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Ap(r)||kp(r))?r=parseFloat(r):!O9(r)&&kr.test(n)&&(r=hm(t,n)),this.setBaseTarget(t,zt(r)?r.get():r)),zt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const a=O0(this.props,n,this.presenceContext?.custom);a&&(r=a[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!zt(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new h0),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){N0.render(this.render)}}class Lm extends xv{constructor(){super(...arguments),this.KeyframeResolver=E9}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;zt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Om(e,{style:t,vars:n},r,i){const a=e.style;let s;for(s in t)a[s]=t[s];i?.applyProjectionStyles(a,r);for(s in n)a.setProperty(s,n[s])}function Ev(e){return window.getComputedStyle(e)}class Sv extends Lm{constructor(){super(...arguments),this.type="html",this.renderInstance=Om}readValueFromInstance(t,n){if(Li.has(n))return this.projection?.isProjecting?il(n):Uy(t,n);{const r=Ev(t),i=(b0(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Dm(t,n)}build(t,n,r){R0(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return _0(t,n,r)}}const _m=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function wv(e,t,n,r){Om(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(_m.has(i)?i:F0(i),t.attrs[i])}class Av extends Lm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ct}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Li.has(n)){const r=dm(n);return r&&r.default||0}return n=_m.has(n)?n:F0(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Am(t,n,r)}build(t,n,r){Tm(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){wv(t,n,r,i)}mount(t){this.isSVGTag=Em(t.tagName),super.mount(t)}}const Cv=(e,t)=>P0(e)?new Av(t):new Sv(t,{allowProjection:e!==_.Fragment});function yi(e,t,n){const r=e.getProps();return O0(r,t,n!==void 0?n:r.custom,e)}const pl=e=>Array.isArray(e);function kv(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ci(n))}function Iv(e){return pl(e)?e[e.length-1]||0:e}function Nv(e,t){const n=yi(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const s in a){const o=Iv(a[s]);kv(e,s,o)}}function Mv(e){return!!(zt(e)&&e.add)}function ml(e,t){const n=e.getValue("willChange");if(Mv(n))return n.add(t);if(!n&&lr.WillChange){const r=new lr.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Bm(e){return e.props[Cm]}const Rv=e=>e!==null;function Dv(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Rv),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[a]}const Pv={type:"spring",stiffness:500,damping:25,restSpeed:10},Lv=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ov={type:"keyframes",duration:.8},_v={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Bv=(e,{keyframes:t})=>t.length>2?Ov:Li.has(e)?e.startsWith("scale")?Lv(t[1]):Pv:_v;function Fv({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:o,from:u,elapsed:l,...c}){return!!Object.keys(c).length}const H0=(e,t,n,r={},i,a)=>s=>{const o=k0(r,e)||{},u=o.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Vn(u);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-l,onUpdate:p=>{t.set(p),o.onUpdate&&o.onUpdate(p)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:a?void 0:i};Fv(o)||Object.assign(c,Bv(e,c)),c.duration&&(c.duration=Vn(c.duration)),c.repeatDelay&&(c.repeatDelay=Vn(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(ll(c),c.delay===0&&(d=!0)),(lr.instantAnimations||lr.skipAnimations)&&(d=!0,ll(c),c.delay=0),c.allowFlatten=!o.type&&!o.ease,d&&!a&&t.get()!==void 0){const p=Dv(c.keyframes,o);if(p!==void 0){lt.update(()=>{c.onUpdate(p),c.onComplete()});return}}return o.isSync?new A0(c):new c9(c)};function Hv({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Fm(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...o}=t;r&&(a=r);const u=[],l=i&&e.animationState&&e.animationState.getState()[i];for(const c in o){const d=e.getValue(c,e.latestValues[c]??null),p=o[c];if(p===void 0||l&&Hv(l,c))continue;const f={delay:n,...k0(a||{},c)},b=d.get();if(b!==void 0&&!d.isAnimating&&!Array.isArray(p)&&p===b&&!f.velocity)continue;let T=!1;if(window.MotionHandoffAnimation){const y=Bm(e);if(y){const w=window.MotionHandoffAnimation(y,c,lt);w!==null&&(f.startTime=w,T=!0)}}ml(e,c),d.start(H0(c,d,p,e.shouldReduceMotion&&um.has(c)?{type:!1}:f,e,T));const S=d.animation;S&&u.push(S)}return s&&Promise.all(u).then(()=>{lt.update(()=>{s&&Nv(e,s)})}),u}function Hm(e,t,n,r=0,i=1){const a=Array.from(e).sort((l,c)=>l.sortNodePosition(c)).indexOf(t),s=e.size,o=(s-1)*r;return typeof n=="function"?n(a,s):i===1?a*r:o-a*r}function gl(e,t,n={}){const r=yi(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(Fm(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:c,staggerDirection:d}=i;return zv(e,t,u,l,c,d,n)}:()=>Promise.resolve(),{when:o}=i;if(o){const[u,l]=o==="beforeChildren"?[a,s]:[s,a];return u().then(()=>l())}else return Promise.all([a(),s(n.delay)])}function zv(e,t,n=0,r=0,i=0,a=1,s){const o=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),o.push(gl(u,t,{...s,delay:n+(typeof r=="function"?0:r)+Hm(e.variantChildren,u,r,i,a)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(o)}function Uv(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>gl(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=gl(e,t,n);else{const i=typeof t=="function"?yi(e,t,n.custom):t;r=Promise.all(Fm(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function zm(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rPromise.all(t.map(({animation:n,options:r})=>Uv(e,n,r)))}function Wv(e){let t=$v(e),n=Qd(),r=!0;const i=u=>(l,c)=>{const d=yi(e,c,u==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:p,transitionEnd:f,...b}=d;l={...l,...b,...f}}return l};function a(u){t=u(e)}function s(u){const{props:l}=e,c=Um(e.parent)||{},d=[],p=new Set;let f={},b=1/0;for(let S=0;Sb&&k,V=!1;const P=Array.isArray(x)?x:[x];let $=P.reduce(i(y),{});M===!1&&($={});const{prevResolvedValues:W={}}=w,G={...W,...$},q=ee=>{z=!0,p.has(ee)&&(V=!0,p.delete(ee)),w.needsAnimating[ee]=!0;const de=e.getValue(ee);de&&(de.liveStyle=!1)};for(const ee in G){const de=$[ee],oe=W[ee];if(f.hasOwnProperty(ee))continue;let N=!1;pl(de)&&pl(oe)?N=!zm(de,oe):N=de!==oe,N?de!=null?q(ee):p.add(ee):de!==void 0&&p.has(ee)?q(ee):w.protectedKeys[ee]=!0}w.prevProp=x,w.prevResolvedValues=$,w.isActive&&(f={...f,...$}),r&&e.blockInitialAnimation&&(z=!1);const Y=C&&H;z&&(!Y||V)&&d.push(...P.map(ee=>{const de={type:y};if(typeof ee=="string"&&r&&!Y&&e.manuallyAnimateOnMount&&e.parent){const{parent:oe}=e,N=yi(oe,ee);if(oe.enteringChildren&&N){const{delayChildren:Ce}=N.transition||{};de.delay=Hm(oe.enteringChildren,e,Ce)}}return{animation:ee,options:de}}))}if(p.size){const S={};if(typeof l.initial!="boolean"){const y=yi(e,Array.isArray(l.initial)?l.initial[0]:l.initial);y&&y.transition&&(S.transition=y.transition)}p.forEach(y=>{const w=e.getBaseTarget(y),x=e.getValue(y);x&&(x.liveStyle=!0),S[y]=w??null}),d.push({animation:S})}let T=!!d.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(T=!1),r=!1,T?t(d):Promise.resolve()}function o(u,l){if(n[u].isActive===l)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(u,l)),n[u].isActive=l;const c=s(u);for(const d in n)n[d].protectedKeys={};return c}return{animateChanges:s,setActive:o,setAnimateFunction:a,getState:()=>n,reset:()=>{n=Qd(),r=!0}}}function Yv(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!zm(t,e):!1}function _r(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Qd(){return{animate:_r(!0),whileInView:_r(),whileHover:_r(),whileTap:_r(),whileDrag:_r(),whileFocus:_r(),exit:_r()}}class Dr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Gv extends Dr{constructor(t){super(t),t.animationState||(t.animationState=Wv(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Eo(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Xv=0;class Kv extends Dr{constructor(){super(...arguments),this.id=Xv++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Qv={animation:{Feature:Gv},exit:{Feature:Kv}};function Oa(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Xa(e){return{point:{x:e.pageX,y:e.pageY}}}const Zv=e=>t=>M0(t)&&e(t,Xa(t));function fa(e,t,n,r){return Oa(e,t,Zv(n),r)}const Vm=1e-4,Jv=1-Vm,eT=1+Vm,jm=.01,tT=0-jm,nT=0+jm;function Yt(e){return e.max-e.min}function rT(e,t,n){return Math.abs(e-t)<=n}function Zd(e,t,n,r=.5){e.origin=r,e.originPoint=pt(t.min,t.max,e.origin),e.scale=Yt(n)/Yt(t),e.translate=pt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Jv&&e.scale<=eT||isNaN(e.scale))&&(e.scale=1),(e.translate>=tT&&e.translate<=nT||isNaN(e.translate))&&(e.translate=0)}function pa(e,t,n,r){Zd(e.x,t.x,n.x,r?r.originX:void 0),Zd(e.y,t.y,n.y,r?r.originY:void 0)}function Jd(e,t,n){e.min=n.min+t.min,e.max=e.min+Yt(t)}function iT(e,t,n){Jd(e.x,t.x,n.x),Jd(e.y,t.y,n.y)}function eh(e,t,n){e.min=t.min-n.min,e.max=e.min+Yt(t)}function ma(e,t,n){eh(e.x,t.x,n.x),eh(e.y,t.y,n.y)}function bn(e){return[e("x"),e("y")]}const qm=({current:e})=>e?e.ownerDocument.defaultView:null,th=(e,t)=>Math.abs(e-t);function aT(e,t){const n=th(e.x,t.x),r=th(e.y,t.y);return Math.sqrt(n**2+r**2)}class $m{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=eu(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,b=aT(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!f&&!b)return;const{point:T}=p,{timestamp:S}=Ft;this.history.push({...T,timestamp:S});const{onStart:y,onMove:w}=this.handlers;f||(y&&y(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,p)},this.handlePointerMove=(p,f)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=Jo(f,this.transformPagePoint),lt.update(this.updatePoint,!0)},this.handlePointerUp=(p,f)=>{this.end();const{onEnd:b,onSessionEnd:T,resumeAnimation:S}=this.handlers;if(this.dragSnapToOrigin&&S&&S(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=eu(p.type==="pointercancel"?this.lastMoveEventInfo:Jo(f,this.transformPagePoint),this.history);this.startEvent&&b&&b(p,y),T&&T(p,y)},!M0(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const o=Xa(t),u=Jo(o,this.transformPagePoint),{point:l}=u,{timestamp:c}=Ft;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,eu(u,this.history)),this.removeListeners=Wa(fa(this.contextWindow,"pointermove",this.handlePointerMove),fa(this.contextWindow,"pointerup",this.handlePointerUp),fa(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Cr(this.updatePoint)}}function Jo(e,t){return t?{point:t(e.point)}:e}function nh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function eu({point:e},t){return{point:e,delta:nh(e,Wm(t)),offset:nh(e,sT(t)),velocity:oT(t,.1)}}function sT(e){return e[0]}function Wm(e){return e[e.length-1]}function oT(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Wm(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Vn(t)));)n--;if(!r)return{x:0,y:0};const a=jn(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const s={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function uT(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?pt(n,e,r.max):Math.min(e,n)),e}function rh(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function lT(e,{top:t,left:n,bottom:r,right:i}){return{x:rh(e.x,n,i),y:rh(e.y,t,r)}}function ih(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Ma(t.min,t.max-r,e.min):r>i&&(n=Ma(e.min,e.max-i,t.min)),ur(0,1,n)}function hT(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const bl=.35;function fT(e=bl){return e===!1?e=0:e===!0&&(e=bl),{x:ah(e,"left","right"),y:ah(e,"top","bottom")}}function ah(e,t,n){return{min:sh(e,t),max:sh(e,n)}}function sh(e,t){return typeof e=="number"?e:e[t]||0}const pT=new WeakMap;class mT{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ct(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=d=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Xa(d).point)},s=(d,p)=>{const{drag:f,dragPropagation:b,onDragStart:T}=this.getProps();if(f&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=k9(f),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=p,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),bn(y=>{let w=this.getAxisMotionValue(y).get()||0;if(qn.test(w)){const{projection:x}=this.visualElement;if(x&&x.layout){const k=x.layout.layoutBox[y];k&&(w=Yt(k)*(parseFloat(w)/100))}}this.originPoint[y]=w}),T&<.postRender(()=>T(d,p)),ml(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},o=(d,p)=>{this.latestPointerEvent=d,this.latestPanInfo=p;const{dragPropagation:f,dragDirectionLock:b,onDirectionLock:T,onDrag:S}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:y}=p;if(b&&this.currentDirection===null){this.currentDirection=gT(y),this.currentDirection!==null&&T&&T(this.currentDirection);return}this.updateAxis("x",p.point,y),this.updateAxis("y",p.point,y),this.visualElement.render(),S&&S(d,p)},u=(d,p)=>{this.latestPointerEvent=d,this.latestPanInfo=p,this.stop(d,p),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>bn(d=>this.getAnimationState(d)==="paused"&&this.getAxisMotionValue(d).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new $m(t,{onSessionStart:a,onStart:s,onMove:o,onSessionEnd:u,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:qm(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&<.postRender(()=>o(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!ys(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=uT(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&fi(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=lT(r.layoutBox,t):this.constraints=!1,this.elastic=fT(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&bn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=hT(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!fi(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=bv(r,i.root,this.visualElement.getTransformPagePoint());let s=cT(i.layout.layoutBox,a);if(n){const o=n(pv(s));this.hasMutatedConstraints=!!o,o&&(s=Nm(o))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),u=this.constraints||{},l=bn(c=>{if(!ys(c,n,this.currentDirection))return;let d=u&&u[c]||{};s&&(d={min:0,max:0});const p=i?200:1e6,f=i?40:1e7,b={type:"inertia",velocity:r?t[c]:0,bounceStiffness:p,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...a,...d};return this.startAxisValueAnimation(c,b)});return Promise.all(l).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ml(this.visualElement,t),r.start(H0(t,r,0,n,this.visualElement,!1))}stopAnimation(){bn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){bn(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){bn(n=>{const{drag:r}=this.getProps();if(!ys(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:o}=i.layout.layoutBox[n];a.set(t[n]-pt(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!fi(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};bn(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const u=o.get();i[s]=dT({min:u,max:u},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),bn(s=>{if(!ys(s,t,null))return;const o=this.getAxisMotionValue(s),{min:u,max:l}=this.constraints[s];o.set(pt(u,l,i[s]))})}addListeners(){if(!this.visualElement.current)return;pT.set(this.visualElement,this);const t=this.visualElement.current,n=fa(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();fi(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),lt.read(r);const s=Oa(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(bn(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=u[c].translate,d.set(d.get()+u[c].translate))}),this.visualElement.render())}));return()=>{s(),n(),a(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:s=bl,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:s,dragMomentum:o}}}function ys(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function gT(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class bT extends Dr{constructor(t){super(t),this.removeGroupControls=En,this.removeListeners=En,this.controls=new mT(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||En}unmount(){this.removeGroupControls(),this.removeListeners()}}const oh=e=>(t,n)=>{e&<.postRender(()=>e(t,n))};class yT extends Dr{constructor(){super(...arguments),this.removePointerDownListener=En}onPointerDown(t){this.session=new $m(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:qm(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:oh(t),onStart:oh(n),onMove:r,onEnd:(a,s)=>{delete this.session,i&<.postRender(()=>i(a,s))}}}mount(){this.removePointerDownListener=fa(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function vT(e=!0){const t=_.useContext(L0);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=_.useId();_.useEffect(()=>{if(e)return i(a)},[e]);const s=_.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,s]:[!0]}const Hs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function uh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ki={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ae.test(e))e=parseFloat(e);else return e;const n=uh(e,t.target.x),r=uh(e,t.target.y);return`${n}% ${r}%`}},TT={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=kr.parse(e);if(i.length>5)return r;const a=kr.createTransformer(e),s=typeof i[0]!="number"?1:0,o=n.x.scale*t.x,u=n.y.scale*t.y;i[0+s]/=o,i[1+s]/=u;const l=pt(o,u,.5);return typeof i[2+s]=="number"&&(i[2+s]/=l),typeof i[3+s]=="number"&&(i[3+s]/=l),a(i)}};let tu=!1;class xT extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;_9(ET),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),tu&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Hs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:s}=r;return s&&(s.isPresent=a,tu=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==a?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||lt.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),N0.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;tu=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Ym(e){const[t,n]=vT(),r=_.useContext(Hp);return R.jsx(xT,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(km),isPresent:t,safeToRemove:n})}const ET={borderRadius:{...Ki,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ki,borderTopRightRadius:Ki,borderBottomLeftRadius:Ki,borderBottomRightRadius:Ki,boxShadow:TT};function ST(e,t,n){const r=zt(e)?e:Ci(e);return r.start(H0("",r,t,n)),r.animation}const wT=(e,t)=>e.depth-t.depth;class AT{constructor(){this.children=[],this.isDirty=!1}add(t){u0(this.children,t),this.isDirty=!0}remove(t){l0(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(wT),this.isDirty=!1,this.children.forEach(t)}}function CT(e,t){const n=tn.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(Cr(r),e(a-t))};return lt.setup(r,!0),()=>Cr(r)}const Gm=["TopLeft","TopRight","BottomLeft","BottomRight"],kT=Gm.length,lh=e=>typeof e=="string"?parseFloat(e):e,ch=e=>typeof e=="number"||Ae.test(e);function IT(e,t,n,r,i,a){i?(e.opacity=pt(0,n.opacity??1,NT(r)),e.opacityExit=pt(t.opacity??1,0,MT(r))):a&&(e.opacity=pt(t.opacity??1,n.opacity??1,r));for(let s=0;srt?1:n(Ma(e,t,r))}function hh(e,t){e.min=t.min,e.max=t.max}function gn(e,t){hh(e.x,t.x),hh(e.y,t.y)}function fh(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function ph(e,t,n,r,i){return e-=t,e=eo(e,1/n,r),i!==void 0&&(e=eo(e,1/i,r)),e}function RT(e,t=0,n=1,r=.5,i,a=e,s=e){if(qn.test(t)&&(t=parseFloat(t),t=pt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=pt(a.min,a.max,r);e===a&&(o-=t),e.min=ph(e.min,t,n,o,i),e.max=ph(e.max,t,n,o,i)}function mh(e,t,[n,r,i],a,s){RT(e,t[n],t[r],t[i],t.scale,a,s)}const DT=["x","scaleX","originX"],PT=["y","scaleY","originY"];function gh(e,t,n,r){mh(e.x,t,DT,n?n.x:void 0,r?r.x:void 0),mh(e.y,t,PT,n?n.y:void 0,r?r.y:void 0)}function bh(e){return e.translate===0&&e.scale===1}function Km(e){return bh(e.x)&&bh(e.y)}function yh(e,t){return e.min===t.min&&e.max===t.max}function LT(e,t){return yh(e.x,t.x)&&yh(e.y,t.y)}function vh(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Qm(e,t){return vh(e.x,t.x)&&vh(e.y,t.y)}function Th(e){return Yt(e.x)/Yt(e.y)}function xh(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class OT{constructor(){this.members=[]}add(t){u0(this.members,t),t.scheduleRender()}remove(t){if(l0(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function _T(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,s=n?.z||0;if((i||a||s)&&(r=`translate3d(${i}px, ${a}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:c,rotateX:d,rotateY:p,skewX:f,skewY:b}=n;l&&(r=`perspective(${l}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),p&&(r+=`rotateY(${p}deg) `),f&&(r+=`skewX(${f}deg) `),b&&(r+=`skewY(${b}deg) `)}const o=e.x.scale*t.x,u=e.y.scale*t.y;return(o!==1||u!==1)&&(r+=`scale(${o}, ${u})`),r||"none"}const nu=["","X","Y","Z"],BT=1e3;let FT=0;function ru(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Zm(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Bm(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",lt,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Zm(r)}function Jm({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},o=t?.()){this.id=FT++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(UT),this.nodes.forEach($T),this.nodes.forEach(WT),this.nodes.forEach(VT)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let u=0;uthis.root.updateBlockedByResize=!1;lt.read(()=>{d=window.innerWidth}),e(s,()=>{const f=window.innerWidth;f!==d&&(d=f,this.root.updateBlockedByResize=!0,c&&c(),c=CT(p,250),Hs.hasAnimatedSinceResize&&(Hs.hasAnimatedSinceResize=!1,this.nodes.forEach(wh)))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&l&&(o||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:p,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||l.getDefaultTransition()||QT,{onLayoutAnimationStart:T,onLayoutAnimationComplete:S}=l.getProps(),y=!this.targetLayout||!Qm(this.targetLayout,f),w=!d&&p;if(this.options.layoutRoot||this.resumeFrom||w||d&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...k0(b,"layout"),onPlay:T,onComplete:S};(l.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(c,w)}else d||wh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Cr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(YT),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Zm(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Yt(this.snapshot.measuredBox.x)&&!Yt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u{const M=k/1e3;Ah(d.x,s.x,M),Ah(d.y,s.y,M),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ma(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),XT(this.relativeTarget,this.relativeTargetOrigin,p,M),x&<(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Ct()),gn(x,this.relativeTarget)),T&&(this.animationValues=c,IT(c,l,this.latestValues,M,w,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Cr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=lt.update(()=>{Hs.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ci(0)),this.currentAnimation=ST(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(BT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:u,layout:l,latestValues:c}=s;if(!(!o||!u||!l)){if(this!==s&&this.layout&&l&&e2(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||Ct();const d=Yt(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+d;const p=Yt(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+p}gn(o,u),mi(o,c),pa(this.projectionDeltaWithTransform,this.layoutCorrected,o,c)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new OT),this.sharedNodes.get(s).add(o);const l=o.options.initialPromotionConfig;o.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:u}=s;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(o=!0),!o)return;const l={};u.z&&ru("z",s,l,this.animationValues);for(let c=0;cs.currentAnimation?.stop()),this.root.nodes.forEach(Eh),this.root.sharedNodes.clear()}}}function HT(e){e.updateLayout()}function zT(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i==="size"?bn(c=>{const d=a?t.measuredBox[c]:t.layoutBox[c],p=Yt(d);d.min=n[c].min,d.max=d.min+p}):e2(i,t.layoutBox,n)&&bn(c=>{const d=a?t.measuredBox[c]:t.layoutBox[c],p=Yt(n[c]);d.max=d.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+p)});const s=gi();pa(s,n,t.layoutBox);const o=gi();a?pa(o,e.applyTransform(r,!0),t.measuredBox):pa(o,n,t.layoutBox);const u=!Km(s);let l=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:d,layout:p}=c;if(d&&p){const f=Ct();ma(f,t.layoutBox,d.layoutBox);const b=Ct();ma(b,n,p.layoutBox),Qm(f,b)||(l=!0),c.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=f,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:o,layoutDelta:s,hasLayoutChanged:u,hasRelativeLayoutChanged:l})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function UT(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function VT(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function jT(e){e.clearSnapshot()}function Eh(e){e.clearMeasurements()}function Sh(e){e.isLayoutDirty=!1}function qT(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function wh(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function $T(e){e.resolveTargetDelta()}function WT(e){e.calcProjection()}function YT(e){e.resetSkewAndRotation()}function GT(e){e.removeLeadSnapshot()}function Ah(e,t,n){e.translate=pt(t.translate,0,n),e.scale=pt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ch(e,t,n,r){e.min=pt(t.min,n.min,r),e.max=pt(t.max,n.max,r)}function XT(e,t,n,r){Ch(e.x,t.x,n.x,r),Ch(e.y,t.y,n.y,r)}function KT(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const QT={duration:.45,ease:[.4,0,.1,1]},kh=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ih=kh("applewebkit/")&&!kh("chrome/")?Math.round:En;function Nh(e){e.min=Ih(e.min),e.max=Ih(e.max)}function ZT(e){Nh(e.x),Nh(e.y)}function e2(e,t,n){return e==="position"||e==="preserve-aspect"&&!rT(Th(t),Th(n),.2)}function JT(e){return e!==e.root&&e.scroll?.wasRoot}const ex=Jm({attachResizeListener:(e,t)=>Oa(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),iu={current:void 0},t2=Jm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!iu.current){const e=new ex({});e.mount(window),e.setOptions({layoutScroll:!0}),iu.current=e}return iu.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),tx={pan:{Feature:yT},drag:{Feature:bT,ProjectionNode:t2,MeasureLayout:Ym}};function Mh(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&<.postRender(()=>a(t,Xa(t)))}class nx extends Dr{mount(){const{current:t}=this.node;t&&(this.unmount=I9(t,(n,r)=>(Mh(this.node,r,"Start"),i=>Mh(this.node,i,"End"))))}unmount(){}}class rx extends Dr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Wa(Oa(this.node.current,"focus",()=>this.onFocus()),Oa(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Rh(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&<.postRender(()=>a(t,Xa(t)))}class ix extends Dr{mount(){const{current:t}=this.node;t&&(this.unmount=D9(t,(n,r)=>(Rh(this.node,r,"Start"),(i,{success:a})=>Rh(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const yl=new WeakMap,au=new WeakMap,ax=e=>{const t=yl.get(e.target);t&&t(e)},sx=e=>{e.forEach(ax)};function ox({root:e,...t}){const n=e||document;au.has(n)||au.set(n,{});const r=au.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(sx,{root:e,...t})),r[i]}function ux(e,t,n){const r=ox(t);return yl.set(e,n),r.observe(e),()=>{yl.delete(e),r.unobserve(e)}}const lx={some:0,all:1};class cx extends Dr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:lx[i]},o=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,a&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),p=l?c:d;p&&p(u)};return ux(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(dx(t,n))&&this.startObserver()}unmount(){}}function dx({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const hx={inView:{Feature:cx},tap:{Feature:ix},focus:{Feature:rx},hover:{Feature:nx}},fx={layout:{ProjectionNode:t2,MeasureLayout:Ym}},px={...Qv,...hx,...tx,...fx};function mx(e,t){return cv(e,t,px,Cv)}const z0=mx("div"),gx=le(Qe)(({theme:e})=>{const{spacing:t}=e;return{position:"relative",flex:1,gap:t(1.5),overflow:"hidden"}}),bx=le(fp)(({theme:e,variant:t})=>{const{spacing:n}=e;return{gap:n(t==="list"?1.5:5.5),overflowY:"auto"}}),yx=le(R7)(({theme:e})=>{const{spacing:t}=e;return{flex:"none",padding:t(2),overflow:"hidden"}}),vx=le(L7)(({theme:e})=>({fontSize:"1.5rem",width:"2.75rem",height:"2.75rem",borderRadius:"50%",display:"inline-flex",alignItems:"center",justifyContent:"center"})),Tx=le(z0)(({theme:e,variant:t})=>({fontSize:t==="list"?"1.5rem":"1em",width:"1em",height:"1em",display:"inline-flex",alignItems:"center",justifyContent:"center",transformOrigin:"center"})),xx={waiting:"info",available:"success",failed:"error"},Ex=()=>R.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",children:R.jsx("path",{d:"M20.0235 2.88477H6.92829C6.49415 2.88477 6.0778 3.05722 5.77082 3.3642C5.46384 3.67118 5.29138 4.08754 5.29138 4.52167V22.5276C5.29138 22.9618 5.46384 23.3781 5.77082 23.6851C6.0778 23.9921 6.49415 24.1645 6.92829 24.1645H20.0235C20.4577 24.1645 20.874 23.9921 21.181 23.6851C21.488 23.3781 21.6604 22.9618 21.6604 22.5276V4.52167C21.6604 4.08754 21.488 3.67118 21.181 3.3642C20.874 3.05722 20.4577 2.88477 20.0235 2.88477ZM13.4759 20.0723C13.2331 20.0723 12.9957 20.0003 12.7938 19.8654C12.592 19.7305 12.4346 19.5387 12.3417 19.3144C12.2488 19.0901 12.2244 18.8432 12.2718 18.6051C12.3192 18.3669 12.4361 18.1482 12.6078 17.9765C12.7795 17.8048 12.9983 17.6879 13.2364 17.6405C13.4745 17.5931 13.7214 17.6174 13.9457 17.7104C14.17 17.8033 14.3618 17.9606 14.4967 18.1625C14.6316 18.3644 14.7036 18.6018 14.7036 18.8446C14.7036 19.1702 14.5742 19.4825 14.344 19.7127C14.1138 19.9429 13.8015 20.0723 13.4759 20.0723ZM16.7497 11.8877H10.2021C9.98503 11.8877 9.77685 11.8015 9.62336 11.648C9.46987 11.4945 9.38364 11.2864 9.38364 11.0693C9.38364 10.8522 9.46987 10.644 9.62336 10.4906C9.77685 10.3371 9.98503 10.2508 10.2021 10.2508H16.7497C16.9668 10.2508 17.175 10.3371 17.3285 10.4906C17.4819 10.644 17.5682 10.8522 17.5682 11.0693C17.5682 11.2864 17.4819 11.4945 17.3285 11.648C17.175 11.8015 16.9668 11.8877 16.7497 11.8877ZM16.7497 8.61393H10.2021C9.98503 8.61393 9.77685 8.5277 9.62336 8.37421C9.46987 8.22072 9.38364 8.01255 9.38364 7.79548C9.38364 7.57841 9.46987 7.37024 9.62336 7.21675C9.77685 7.06326 9.98503 6.97703 10.2021 6.97703H16.7497C16.9668 6.97703 17.175 7.06326 17.3285 7.21675C17.4819 7.37024 17.5682 7.57841 17.5682 7.79548C17.5682 8.01255 17.4819 8.22072 17.3285 8.37421C17.175 8.5277 16.9668 8.61393 16.7497 8.61393Z",fill:"currentColor"})}),Sx={waiting:y8,available:u8,failed:Uf},Dh=({variant:e,node:t})=>{const{id:n,status:r,gpuName:i,gpuMemory:a}=t||{status:"waiting"},{palette:s}=Va(),{main:o,lighter:u}=r==="waiting"?{main:s.grey[800],lighter:s.grey[250]}:s[xx[r]],l=r==="failed"?.2:void 0,c=Sx[r];return R.jsxs(yx,{component:e==="list"?po:Ar,variant:"outlined",sx:{opacity:l,padding:e==="menu"?0:void 0,backgroundColor:"transparent"},children:[R.jsx(vx,{sx:{color:s.grey[800],backgroundColor:s.grey[250]},children:R.jsx(Ex,{})}),R.jsxs(F7,{children:[t&&R.jsxs(Ge,{variant:"body1",children:[i," ",a,"GB"]})||R.jsx(dd,{width:"8rem",height:"1.25rem"}),t&&R.jsx(Ge,{variant:"body1",color:"text.disabled",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:n&&n.substring(0,4)+"..."+n.substring(n.length-4)})||R.jsx(dd,{width:"14rem",height:"1.25rem"})]}),t&&R.jsxs(Tx,{sx:{color:o},...r==="waiting"&&{animate:{rotate:360},transition:{repeat:1/0,ease:"linear",duration:2}},variant:e,children:[e==="list"&&R.jsx(c,{}),e==="menu"&&R.jsx(C8,{})]})]})},vs=({variant:e="list"})=>{const[{clusterInfo:{initNodesNumber:t},nodeInfoList:n}]=ja(),{length:r}=n;return R.jsxs(gx,{children:[e==="menu"&&R.jsx(Ar,{sx:{position:"absolute",top:"1.375rem",bottom:"1.375rem",left:"1.375rem",borderLeft:"2px dashed",borderColor:"divider"}}),R.jsxs(bx,{variant:e,children:[n.map(i=>R.jsx(Dh,{variant:e,node:i},i.id)),t>r&&Array.from({length:t-r}).map((i,a)=>R.jsx(Dh,{variant:e},a))]})]})},wx={small:1,medium:1.25,large:2.25},Ax=le(z0)(({theme:e,size:t})=>{const n=`${wx[t]}rem`;return{position:"relative",width:n,height:n,display:"inline-flex",flexFlow:"row nowrap",justifyContent:"center",alignItems:"center"}}),su=le(z0)(({theme:e})=>({flex:1,aspectRatio:1,borderRadius:"50%",backgroundColor:"currentColor"})),ou={pulse:{scale:[0,.6,0,0],keyTimes:[0,.3,.6,1],transition:{duration:2,repeat:1/0,ease:"linear"}}},Cx={staggerChildren:.25,staggerDirection:1},kx=_.forwardRef(({size:e="medium"},t)=>R.jsxs(Ax,{ref:t,size:e,animate:"pulse",transition:Cx,children:[R.jsx(su,{variants:ou},1),R.jsx(su,{variants:ou},2),R.jsx(su,{variants:ou},3)]}));function Ph(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function n2(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Ix=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Nx=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Mx={};function Lh(e,t){return(Mx.jsx?Nx:Ix).test(e)}const Rx=/[ \t\n\f\r]/g;function Dx(e){return typeof e=="object"?e.type==="text"?Oh(e.value):!1:Oh(e)}function Oh(e){return e.replace(Rx,"")===""}let Ka=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Ka.prototype.normal={};Ka.prototype.property={};Ka.prototype.space=void 0;function r2(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Ka(n,r,t)}function _a(e){return e.toLowerCase()}let an=class{constructor(t,n){this.attribute=n,this.property=t}};an.prototype.attribute="";an.prototype.booleanish=!1;an.prototype.boolean=!1;an.prototype.commaOrSpaceSeparated=!1;an.prototype.commaSeparated=!1;an.prototype.defined=!1;an.prototype.mustUseProperty=!1;an.prototype.number=!1;an.prototype.overloadedBoolean=!1;an.prototype.property="";an.prototype.spaceSeparated=!1;an.prototype.space=void 0;let Px=0;const Le=ei(),Rt=ei(),vl=ei(),ae=ei(),tt=ei(),vi=ei(),un=ei();function ei(){return 2**++Px}const Tl=Object.freeze(Object.defineProperty({__proto__:null,boolean:Le,booleanish:Rt,commaOrSpaceSeparated:un,commaSeparated:vi,number:ae,overloadedBoolean:vl,spaceSeparated:tt},Symbol.toStringTag,{value:"Module"})),uu=Object.keys(Tl);let U0=class extends an{constructor(t,n,r,i){let a=-1;if(super(t,n),_h(this,"space",i),typeof r=="number")for(;++a4&&n.slice(0,4)==="data"&&Fx.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Bh,zx);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Bh.test(a)){let s=a.replace(Bx,Hx);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=U0}return new i(r,t)}function Hx(e){return"-"+e.toLowerCase()}function zx(e){return e.charAt(1).toUpperCase()}const wo=r2([i2,Lx,o2,u2,l2],"html"),_i=r2([i2,Ox,o2,u2,l2],"svg");function Fh(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function c2(e){return e.join(" ").trim()}var si={},lu,Hh;function Ux(){if(Hh)return lu;Hh=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,u=` +`,l="/",c="*",d="",p="comment",f="declaration";lu=function(T,S){if(typeof T!="string")throw new TypeError("First argument must be a string");if(!T)return[];S=S||{};var y=1,w=1;function x(G){var q=G.match(t);q&&(y+=q.length);var Y=G.lastIndexOf(u);w=~Y?G.length-Y:w+G.length}function k(){var G={line:y,column:w};return function(q){return q.position=new M(G),z(),q}}function M(G){this.start=G,this.end={line:y,column:w},this.source=S.source}M.prototype.content=T;function C(G){var q=new Error(S.source+":"+y+":"+w+": "+G);if(q.reason=G,q.filename=S.source,q.line=y,q.column=w,q.source=T,!S.silent)throw q}function H(G){var q=G.exec(T);if(q){var Y=q[0];return x(Y),T=T.slice(Y.length),q}}function z(){H(n)}function V(G){var q;for(G=G||[];q=P();)q!==!1&&G.push(q);return G}function P(){var G=k();if(!(l!=T.charAt(0)||c!=T.charAt(1))){for(var q=2;d!=T.charAt(q)&&(c!=T.charAt(q)||l!=T.charAt(q+1));)++q;if(q+=2,d===T.charAt(q-1))return C("End of comment missing");var Y=T.slice(2,q-2);return w+=2,x(Y),T=T.slice(q),w+=2,G({type:p,comment:Y})}}function $(){var G=k(),q=H(r);if(q){if(P(),!H(i))return C("property missing ':'");var Y=H(a),Q=G({type:f,property:b(q[0].replace(e,d)),value:Y?b(Y[0].replace(e,d)):d});return H(s),Q}}function W(){var G=[];V(G);for(var q;q=$();)q!==!1&&(G.push(q),V(G));return G}return z(),W()};function b(T){return T?T.replace(o,d):d}return lu}var zh;function Vx(){if(zh)return si;zh=1;var e=si&&si.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(si,"__esModule",{value:!0}),si.default=n;var t=e(Ux());function n(r,i){var a=null;if(!r||typeof r!="string")return a;var s=(0,t.default)(r),o=typeof i=="function";return s.forEach(function(u){if(u.type==="declaration"){var l=u.property,c=u.value;o?i(l,c,u):c&&(a=a||{},a[l]=c)}}),a}return si}var Qi={},Uh;function jx(){if(Uh)return Qi;Uh=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(l){return!l||n.test(l)||e.test(l)},s=function(l,c){return c.toUpperCase()},o=function(l,c){return"".concat(c,"-")},u=function(l,c){return c===void 0&&(c={}),a(l)?l:(l=l.toLowerCase(),c.reactCompat?l=l.replace(i,o):l=l.replace(r,o),l.replace(t,s))};return Qi.camelCase=u,Qi}var Zi,Vh;function qx(){if(Vh)return Zi;Vh=1;var e=Zi&&Zi.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(Vx()),n=jx();function r(i,a){var s={};return!i||typeof i!="string"||(0,t.default)(i,function(o,u){o&&u&&(s[(0,n.camelCase)(o,a)]=u)}),s}return r.default=r,Zi=r,Zi}var $x=qx();const Wx=jf($x),Ao=d2("end"),Gn=d2("start");function d2(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function h2(e){const t=Gn(e),n=Ao(e);if(t&&n)return{start:t,end:n}}function ga(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?jh(e.position):"start"in e||"end"in e?jh(e):"line"in e||"column"in e?xl(e):""}function xl(e){return qh(e&&e.line)+":"+qh(e&&e.column)}function jh(e){return xl(e&&e.start)+"-"+xl(e&&e.end)}function qh(e){return e&&typeof e=="number"?e:1}class jt extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?a.ruleId=r:(a.source=r.slice(0,u),a.ruleId=r.slice(u+1))}if(!a.place&&a.ancestors&&a.ancestors){const u=a.ancestors[a.ancestors.length-1];u&&(a.place=u.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=ga(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}jt.prototype.file="";jt.prototype.name="";jt.prototype.reason="";jt.prototype.message="";jt.prototype.stack="";jt.prototype.column=void 0;jt.prototype.line=void 0;jt.prototype.ancestors=void 0;jt.prototype.cause=void 0;jt.prototype.fatal=void 0;jt.prototype.place=void 0;jt.prototype.ruleId=void 0;jt.prototype.source=void 0;const j0={}.hasOwnProperty,Yx=new Map,Gx=/[A-Z]/g,Xx=new Set(["table","tbody","thead","tfoot","tr"]),Kx=new Set(["td","th"]),f2="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Qx(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=aE(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=iE(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?_i:wo,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=p2(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function p2(e,t,n){if(t.type==="element")return Zx(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Jx(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return tE(e,t,n);if(t.type==="mdxjsEsm")return eE(e,t);if(t.type==="root")return nE(e,t,n);if(t.type==="text")return rE(e,t)}function Zx(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=_i,e.schema=i),e.ancestors.push(t);const a=g2(e,t.tagName,!1),s=sE(e,t);let o=$0(e,t);return Xx.has(t.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!Dx(u):!0})),m2(e,s,a,t),q0(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function Jx(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Ba(e,t.position)}function eE(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ba(e,t.position)}function tE(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=_i,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:g2(e,t.name,!0),s=oE(e,t),o=$0(e,t);return m2(e,s,a,t),q0(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function nE(e,t,n){const r={};return q0(r,$0(e,t)),e.create(t,e.Fragment,r,n)}function rE(e,t){return t.value}function m2(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function q0(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function iE(e,t,n){return r;function r(i,a,s,o){const l=Array.isArray(s.children)?n:t;return o?l(a,s,o):l(a,s)}}function aE(e,t){return n;function n(r,i,a,s){const o=Array.isArray(a.children),u=Gn(r);return t(i,a,s,o,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function sE(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&j0.call(t.properties,i)){const a=uE(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&Kx.has(t.tagName)?r=o:n[s]=o}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function oE(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Ba(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else Ba(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function $0(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Yx;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a0?(hn(e,e.length,0,t),e):t}const Yh={}.hasOwnProperty;function y2(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Dn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Wt=Pr(/[A-Za-z]/),Ut=Pr(/[\dA-Za-z]/),bE=Pr(/[#-'*+\--9=?A-Z^-~]/);function to(e){return e!==null&&(e<32||e===127)}const El=Pr(/\d/),yE=Pr(/[\dA-Fa-f]/),vE=Pr(/[!-/:-@[-`{-~]/);function fe(e){return e!==null&&e<-2}function Ze(e){return e!==null&&(e<0||e===32)}function Ue(e){return e===-2||e===-1||e===32}const Co=Pr(new RegExp("\\p{P}|\\p{S}","u")),Zr=Pr(/\s/);function Pr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Bi(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const o=e.charCodeAt(n+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ze(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(u){return Ue(u)?(e.enter(n),o(u)):t(u)}function o(u){return Ue(u)&&a++s))return;const H=t.events.length;let z=H,V,P;for(;z--;)if(t.events[z][0]==="exit"&&t.events[z][1].type==="chunkFlow"){if(V){P=t.events[z][1].end;break}V=!0}for(y(r),C=H;Cx;){const M=n[k];t.containerState=M[1],M[0].exit.call(t,e)}n.length=x}function w(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function wE(e,t,n){return ze(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ii(e){if(e===null||Ze(e)||Zr(e))return 1;if(Co(e))return 2}function ko(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},p={...e[n][1].start};Xh(d,-u),Xh(p,u),s={type:u>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},o={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},a={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=yn(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=yn(l,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),l=yn(l,ko(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=yn(l,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,l=yn(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,hn(e,r-1,n-r+3,l),n=r+l.length-c-2;break}}for(n=-1;++n0&&Ue(C)?ze(e,w,"linePrefix",a+1)(C):w(C)}function w(C){return C===null||fe(C)?e.check(Kh,T,k)(C):(e.enter("codeFlowValue"),x(C))}function x(C){return C===null||fe(C)?(e.exit("codeFlowValue"),w(C)):(e.consume(C),x)}function k(C){return e.exit("codeFenced"),t(C)}function M(C,H,z){let V=0;return P;function P(Y){return C.enter("lineEnding"),C.consume(Y),C.exit("lineEnding"),$}function $(Y){return C.enter("codeFencedFence"),Ue(Y)?ze(C,W,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):W(Y)}function W(Y){return Y===o?(C.enter("codeFencedFenceSequence"),G(Y)):z(Y)}function G(Y){return Y===o?(V++,C.consume(Y),G):V>=s?(C.exit("codeFencedFenceSequence"),Ue(Y)?ze(C,q,"whitespace")(Y):q(Y)):z(Y)}function q(Y){return Y===null||fe(Y)?(C.exit("codeFencedFence"),H(Y)):z(Y)}}}function _E(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const du={name:"codeIndented",tokenize:FE},BE={partial:!0,tokenize:HE};function FE(e,t,n){const r=this;return i;function i(l){return e.enter("codeIndented"),ze(e,a,"linePrefix",5)(l)}function a(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(l):n(l)}function s(l){return l===null?u(l):fe(l)?e.attempt(BE,s,u)(l):(e.enter("codeFlowValue"),o(l))}function o(l){return l===null||fe(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),o)}function u(l){return e.exit("codeIndented"),t(l)}}function HE(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):fe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):ze(e,a,"linePrefix",5)(s)}function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):fe(s)?i(s):n(s)}}const zE={name:"codeText",previous:VE,resolve:UE,tokenize:jE};function UE(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ji(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ji(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ji(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function w2(e,t,n,r,i,a,s,o,u){const l=u||Number.POSITIVE_INFINITY;let c=0;return d;function d(y){return y===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(y),e.exit(a),p):y===null||y===32||y===41||to(y)?n(y):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),T(y))}function p(y){return y===62?(e.enter(a),e.consume(y),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),f(y))}function f(y){return y===62?(e.exit("chunkString"),e.exit(o),p(y)):y===null||y===60||fe(y)?n(y):(e.consume(y),y===92?b:f)}function b(y){return y===60||y===62||y===92?(e.consume(y),f):f(y)}function T(y){return!c&&(y===null||y===41||Ze(y))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(y)):c999||f===null||f===91||f===93&&!u||f===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(f):f===93?(e.exit(a),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):fe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===null||f===91||f===93||fe(f)||o++>999?(e.exit("chunkString"),c(f)):(e.consume(f),u||(u=!Ue(f)),f===92?p:d)}function p(f){return f===91||f===92||f===93?(e.consume(f),o++,d):d(f)}}function C2(e,t,n,r,i,a){let s;return o;function o(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),s=p===40?41:p,u):n(p)}function u(p){return p===s?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(a),l(p))}function l(p){return p===s?(e.exit(a),u(s)):p===null?n(p):fe(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),ze(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===s||p===null||fe(p)?(e.exit("chunkString"),l(p)):(e.consume(p),p===92?d:c)}function d(p){return p===s||p===92?(e.consume(p),c):c(p)}}function ba(e,t){let n;return r;function r(i){return fe(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Ue(i)?ze(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const QE={name:"definition",tokenize:JE},ZE={partial:!0,tokenize:eS};function JE(e,t,n){const r=this;let i;return a;function a(f){return e.enter("definition"),s(f)}function s(f){return A2.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function o(f){return i=Dn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),u):n(f)}function u(f){return Ze(f)?ba(e,l)(f):l(f)}function l(f){return w2(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function c(f){return e.attempt(ZE,d,d)(f)}function d(f){return Ue(f)?ze(e,p,"whitespace")(f):p(f)}function p(f){return f===null||fe(f)?(e.exit("definition"),r.parser.defined.push(i),t(f)):n(f)}}function eS(e,t,n){return r;function r(o){return Ze(o)?ba(e,i)(o):n(o)}function i(o){return C2(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return Ue(o)?ze(e,s,"whitespace")(o):s(o)}function s(o){return o===null||fe(o)?t(o):n(o)}}const tS={name:"hardBreakEscape",tokenize:nS};function nS(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return fe(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const rS={name:"headingAtx",resolve:iS,tokenize:aS};function iS(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},hn(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function aS(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||Ze(c)?(e.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),u(c)):c===null||fe(c)?(e.exit("atxHeading"),t(c)):Ue(c)?ze(e,o,"whitespace")(c):(e.enter("atxHeadingText"),l(c))}function u(c){return c===35?(e.consume(c),u):(e.exit("atxHeadingSequence"),o(c))}function l(c){return c===null||c===35||Ze(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),l)}}const sS=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Zh=["pre","script","style","textarea"],oS={concrete:!0,name:"htmlFlow",resolveTo:cS,tokenize:dS},uS={partial:!0,tokenize:fS},lS={partial:!0,tokenize:hS};function cS(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function dS(e,t,n){const r=this;let i,a,s,o,u;return l;function l(B){return c(B)}function c(B){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(B),d}function d(B){return B===33?(e.consume(B),p):B===47?(e.consume(B),a=!0,T):B===63?(e.consume(B),i=3,r.interrupt?t:N):Wt(B)?(e.consume(B),s=String.fromCharCode(B),S):n(B)}function p(B){return B===45?(e.consume(B),i=2,f):B===91?(e.consume(B),i=5,o=0,b):Wt(B)?(e.consume(B),i=4,r.interrupt?t:N):n(B)}function f(B){return B===45?(e.consume(B),r.interrupt?t:N):n(B)}function b(B){const xe="CDATA[";return B===xe.charCodeAt(o++)?(e.consume(B),o===xe.length?r.interrupt?t:W:b):n(B)}function T(B){return Wt(B)?(e.consume(B),s=String.fromCharCode(B),S):n(B)}function S(B){if(B===null||B===47||B===62||Ze(B)){const xe=B===47,Ie=s.toLowerCase();return!xe&&!a&&Zh.includes(Ie)?(i=1,r.interrupt?t(B):W(B)):sS.includes(s.toLowerCase())?(i=6,xe?(e.consume(B),y):r.interrupt?t(B):W(B)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(B):a?w(B):x(B))}return B===45||Ut(B)?(e.consume(B),s+=String.fromCharCode(B),S):n(B)}function y(B){return B===62?(e.consume(B),r.interrupt?t:W):n(B)}function w(B){return Ue(B)?(e.consume(B),w):P(B)}function x(B){return B===47?(e.consume(B),P):B===58||B===95||Wt(B)?(e.consume(B),k):Ue(B)?(e.consume(B),x):P(B)}function k(B){return B===45||B===46||B===58||B===95||Ut(B)?(e.consume(B),k):M(B)}function M(B){return B===61?(e.consume(B),C):Ue(B)?(e.consume(B),M):x(B)}function C(B){return B===null||B===60||B===61||B===62||B===96?n(B):B===34||B===39?(e.consume(B),u=B,H):Ue(B)?(e.consume(B),C):z(B)}function H(B){return B===u?(e.consume(B),u=null,V):B===null||fe(B)?n(B):(e.consume(B),H)}function z(B){return B===null||B===34||B===39||B===47||B===60||B===61||B===62||B===96||Ze(B)?M(B):(e.consume(B),z)}function V(B){return B===47||B===62||Ue(B)?x(B):n(B)}function P(B){return B===62?(e.consume(B),$):n(B)}function $(B){return B===null||fe(B)?W(B):Ue(B)?(e.consume(B),$):n(B)}function W(B){return B===45&&i===2?(e.consume(B),Q):B===60&&i===1?(e.consume(B),ee):B===62&&i===4?(e.consume(B),Ce):B===63&&i===3?(e.consume(B),N):B===93&&i===5?(e.consume(B),oe):fe(B)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(uS,ve,G)(B)):B===null||fe(B)?(e.exit("htmlFlowData"),G(B)):(e.consume(B),W)}function G(B){return e.check(lS,q,ve)(B)}function q(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),Y}function Y(B){return B===null||fe(B)?G(B):(e.enter("htmlFlowData"),W(B))}function Q(B){return B===45?(e.consume(B),N):W(B)}function ee(B){return B===47?(e.consume(B),s="",de):W(B)}function de(B){if(B===62){const xe=s.toLowerCase();return Zh.includes(xe)?(e.consume(B),Ce):W(B)}return Wt(B)&&s.length<8?(e.consume(B),s+=String.fromCharCode(B),de):W(B)}function oe(B){return B===93?(e.consume(B),N):W(B)}function N(B){return B===62?(e.consume(B),Ce):B===45&&i===2?(e.consume(B),N):W(B)}function Ce(B){return B===null||fe(B)?(e.exit("htmlFlowData"),ve(B)):(e.consume(B),Ce)}function ve(B){return e.exit("htmlFlow"),t(B)}}function hS(e,t,n){const r=this;return i;function i(s){return fe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function fS(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Qa,t,n)}}const pS={name:"htmlText",tokenize:mS};function mS(e,t,n){const r=this;let i,a,s;return o;function o(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),u}function u(N){return N===33?(e.consume(N),l):N===47?(e.consume(N),M):N===63?(e.consume(N),x):Wt(N)?(e.consume(N),z):n(N)}function l(N){return N===45?(e.consume(N),c):N===91?(e.consume(N),a=0,b):Wt(N)?(e.consume(N),w):n(N)}function c(N){return N===45?(e.consume(N),f):n(N)}function d(N){return N===null?n(N):N===45?(e.consume(N),p):fe(N)?(s=d,ee(N)):(e.consume(N),d)}function p(N){return N===45?(e.consume(N),f):d(N)}function f(N){return N===62?Q(N):N===45?p(N):d(N)}function b(N){const Ce="CDATA[";return N===Ce.charCodeAt(a++)?(e.consume(N),a===Ce.length?T:b):n(N)}function T(N){return N===null?n(N):N===93?(e.consume(N),S):fe(N)?(s=T,ee(N)):(e.consume(N),T)}function S(N){return N===93?(e.consume(N),y):T(N)}function y(N){return N===62?Q(N):N===93?(e.consume(N),y):T(N)}function w(N){return N===null||N===62?Q(N):fe(N)?(s=w,ee(N)):(e.consume(N),w)}function x(N){return N===null?n(N):N===63?(e.consume(N),k):fe(N)?(s=x,ee(N)):(e.consume(N),x)}function k(N){return N===62?Q(N):x(N)}function M(N){return Wt(N)?(e.consume(N),C):n(N)}function C(N){return N===45||Ut(N)?(e.consume(N),C):H(N)}function H(N){return fe(N)?(s=H,ee(N)):Ue(N)?(e.consume(N),H):Q(N)}function z(N){return N===45||Ut(N)?(e.consume(N),z):N===47||N===62||Ze(N)?V(N):n(N)}function V(N){return N===47?(e.consume(N),Q):N===58||N===95||Wt(N)?(e.consume(N),P):fe(N)?(s=V,ee(N)):Ue(N)?(e.consume(N),V):Q(N)}function P(N){return N===45||N===46||N===58||N===95||Ut(N)?(e.consume(N),P):$(N)}function $(N){return N===61?(e.consume(N),W):fe(N)?(s=$,ee(N)):Ue(N)?(e.consume(N),$):V(N)}function W(N){return N===null||N===60||N===61||N===62||N===96?n(N):N===34||N===39?(e.consume(N),i=N,G):fe(N)?(s=W,ee(N)):Ue(N)?(e.consume(N),W):(e.consume(N),q)}function G(N){return N===i?(e.consume(N),i=void 0,Y):N===null?n(N):fe(N)?(s=G,ee(N)):(e.consume(N),G)}function q(N){return N===null||N===34||N===39||N===60||N===61||N===96?n(N):N===47||N===62||Ze(N)?V(N):(e.consume(N),q)}function Y(N){return N===47||N===62||Ze(N)?V(N):n(N)}function Q(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):n(N)}function ee(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),de}function de(N){return Ue(N)?ze(e,oe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):oe(N)}function oe(N){return e.enter("htmlTextData"),s(N)}}const G0={name:"labelEnd",resolveAll:vS,resolveTo:TS,tokenize:xS},gS={tokenize:ES},bS={tokenize:SS},yS={tokenize:wS};function vS(e){let t=-1;const n=[];for(;++t=3&&(l===null||fe(l))?(e.exit("thematicBreak"),t(l)):n(l)}function u(l){return l===i?(e.consume(l),r++,u):(e.exit("thematicBreakSequence"),Ue(l)?ze(e,o,"whitespace")(l):o(l))}}const Jt={continuation:{tokenize:LS},exit:_S,name:"list",tokenize:PS},RS={partial:!0,tokenize:BS},DS={partial:!0,tokenize:OS};function PS(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(f){const b=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:El(f)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(zs,n,l)(f):l(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(f)}return n(f)}function u(f){return El(f)&&++s<10?(e.consume(f),u):(!r.interrupt||s<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),l(f)):n(f)}function l(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(Qa,r.interrupt?n:c,e.attempt(RS,p,d))}function c(f){return r.containerState.initialBlankLine=!0,a++,p(f)}function d(f){return Ue(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),p):n(f)}function p(f){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function LS(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Qa,i,a);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ze(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!Ue(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(DS,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,ze(e,e.attempt(Jt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function OS(e,t,n){const r=this;return ze(e,i,"listItemIndent",r.containerState.size+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function _S(e){e.exit(this.containerState.type)}function BS(e,t,n){const r=this;return ze(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=r.events[r.events.length-1];return!Ue(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Jh={name:"setextUnderline",resolveTo:FS,tokenize:HS};function FS(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function HS(e,t,n){const r=this;let i;return a;function a(l){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=l,s(l)):n(l)}function s(l){return e.enter("setextHeadingLineSequence"),o(l)}function o(l){return l===i?(e.consume(l),o):(e.exit("setextHeadingLineSequence"),Ue(l)?ze(e,u,"lineSuffix")(l):u(l))}function u(l){return l===null||fe(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const zS={tokenize:US};function US(e){const t=this,n=e.attempt(Qa,r,e.attempt(this.parser.constructs.flowInitial,i,ze(e,e.attempt(this.parser.constructs.flow,i,e.attempt(WE,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const VS={resolveAll:I2()},jS=k2("string"),qS=k2("text");function k2(e){return{resolveAll:I2(e==="text"?$S:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,o);return s;function s(c){return l(c)?a(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),u}function u(c){return l(c)?(n.exit("data"),a(c)):(n.consume(c),u)}function l(c){if(c===null)return!0;const d=i[c];let p=-1;if(d)for(;++p-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function iw(e,t){let n=-1;const r=[];let i;for(;++n0){const Se=me.tokenStack[me.tokenStack.length-1];(Se[1]||t1).call(me,void 0,Se[0])}for(ie.position={start:gr(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:gr(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},Pe=-1;++Pe1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,u);const l={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,l),e.applyData(t,l)}function xw(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ew(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function R2(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function Sw(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return R2(e,t);const i={src:Bi(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function ww(e,t){const n={src:Bi(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Aw(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Cw(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return R2(e,t);const i={href:Bi(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function kw(e,t){const n={href:Bi(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Iw(e,t,n){const r=e.all(t),i=n?Nw(n):D2(t),a={},s=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o1}function Mw(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Gn(t.children[1]),u=Ao(t.children[t.children.length-1]);o&&u&&(s.position={start:o,end:u}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Ow(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length;let u=-1;const l=[];for(;++u0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(i1(t.slice(i),i>0,!1)),a.join("")}function i1(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===n1||a===r1;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===n1||a===r1;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Fw(e,t){const n={type:"text",value:Bw(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Hw(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const zw={blockquote:mw,break:gw,code:bw,delete:yw,emphasis:vw,footnoteReference:Tw,heading:xw,html:Ew,imageReference:Sw,image:ww,inlineCode:Aw,linkReference:Cw,link:kw,listItem:Iw,list:Mw,paragraph:Rw,root:Dw,strong:Pw,table:Lw,tableCell:_w,tableRow:Ow,text:Fw,thematicBreak:Hw,toml:Ts,yaml:Ts,definition:Ts,footnoteDefinition:Ts};function Ts(){}const P2=-1,Io=0,ya=1,no=2,X0=3,K0=4,Q0=5,Z0=6,L2=7,O2=8,a1=typeof self=="object"?self:globalThis,Uw=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case Io:case P2:return n(s,i);case ya:{const o=n([],i);for(const u of s)o.push(r(u));return o}case no:{const o=n({},i);for(const[u,l]of s)o[r(u)]=r(l);return o}case X0:return n(new Date(s),i);case K0:{const{source:o,flags:u}=s;return n(new RegExp(o,u),i)}case Q0:{const o=n(new Map,i);for(const[u,l]of s)o.set(r(u),r(l));return o}case Z0:{const o=n(new Set,i);for(const u of s)o.add(r(u));return o}case L2:{const{name:o,message:u}=s;return n(new a1[o](u),i)}case O2:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return n(new DataView(o),s)}}return n(new a1[a](s),i)};return r},s1=e=>Uw(new Map,e)(0),oi="",{toString:Vw}={},{keys:jw}=Object,ea=e=>{const t=typeof e;if(t!=="object"||!e)return[Io,t];const n=Vw.call(e).slice(8,-1);switch(n){case"Array":return[ya,oi];case"Object":return[no,oi];case"Date":return[X0,oi];case"RegExp":return[K0,oi];case"Map":return[Q0,oi];case"Set":return[Z0,oi];case"DataView":return[ya,n]}return n.includes("Array")?[ya,n]:n.includes("Error")?[L2,n]:[no,n]},xs=([e,t])=>e===Io&&(t==="function"||t==="symbol"),qw=(e,t,n,r)=>{const i=(s,o)=>{const u=r.push(s)-1;return n.set(o,u),u},a=s=>{if(n.has(s))return n.get(s);let[o,u]=ea(s);switch(o){case Io:{let c=s;switch(u){case"bigint":o=O2,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);c=null;break;case"undefined":return i([P2],s)}return i([o,c],s)}case ya:{if(u){let p=s;return u==="DataView"?p=new Uint8Array(s.buffer):u==="ArrayBuffer"&&(p=new Uint8Array(s)),i([u,[...p]],s)}const c=[],d=i([o,c],s);for(const p of s)c.push(a(p));return d}case no:{if(u)switch(u){case"BigInt":return i([u,s.toString()],s);case"Boolean":case"Number":case"String":return i([u,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const c=[],d=i([o,c],s);for(const p of jw(s))(e||!xs(ea(s[p])))&&c.push([a(p),a(s[p])]);return d}case X0:return i([o,s.toISOString()],s);case K0:{const{source:c,flags:d}=s;return i([o,{source:c,flags:d}],s)}case Q0:{const c=[],d=i([o,c],s);for(const[p,f]of s)(e||!(xs(ea(p))||xs(ea(f))))&&c.push([a(p),a(f)]);return d}case Z0:{const c=[],d=i([o,c],s);for(const p of s)(e||!xs(ea(p)))&&c.push(a(p));return d}}const{message:l}=s;return i([o,{name:u,message:l}],s)};return a},o1=(e,{json:t,lossy:n}={})=>{const r=[];return qw(!(t||n),!!t,new Map,r)(e),r},Jr=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?s1(o1(e,t)):structuredClone(e):(e,t)=>s1(o1(e,t));function $w(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Ww(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Yw(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||$w,r=e.options.footnoteBackLabel||Ww,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let u=-1;for(;++u0&&b.push({type:"text",value:" "});let w=typeof n=="string"?n:n(u,f);typeof w=="string"&&(w={type:"text",value:w}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,f),className:["data-footnote-backref"]},children:Array.isArray(w)?w:[w]})}const S=c[c.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const w=S.children[S.children.length-1];w&&w.type==="text"?w.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(...b)}else c.push(...b);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(l,y),o.push(y)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Jr(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` +`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:` +`}]}}const Za=(function(e){if(e==null)return Qw;if(typeof e=="function")return No(e);if(typeof e=="object")return Array.isArray(e)?Gw(e):Xw(e);if(typeof e=="string")return Kw(e);throw new Error("Expected function, string, or object as test")});function Gw(e){const t=[];let n=-1;for(;++n":""))+")"})}return p;function p(){let f=_2,b,T,S;if((!t||a(u,l,c[c.length-1]||void 0))&&(f=eA(n(u,c)),f[0]===wl))return f;if("children"in u&&u.children){const y=u;if(y.children&&f[0]!==B2)for(T=(r?y.children.length:-1)+s,S=c.concat(y);T>-1&&T0&&n.push({type:"text",value:` +`}),n}function u1(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function l1(e,t){const n=nA(e,t),r=n.one(e,void 0),i=Yw(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` +`},i),a}function oA(e,t){return e&&"run"in e?async function(n,r){const i=l1(n,{file:r,...t});await e.run(i,r)}:function(n,r){return l1(n,{file:r,...e||t})}}function c1(e){if(e)throw e}var fu,d1;function uA(){if(d1)return fu;d1=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(l){return typeof Array.isArray=="function"?Array.isArray(l):t.call(l)==="[object Array]"},a=function(l){if(!l||t.call(l)!=="[object Object]")return!1;var c=e.call(l,"constructor"),d=l.constructor&&l.constructor.prototype&&e.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!c&&!d)return!1;var p;for(p in l);return typeof p>"u"||e.call(l,p)},s=function(l,c){n&&c.name==="__proto__"?n(l,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):l[c.name]=c.newValue},o=function(l,c){if(c==="__proto__")if(e.call(l,c)){if(r)return r(l,c).value}else return;return l[c]};return fu=function u(){var l,c,d,p,f,b,T=arguments[0],S=1,y=arguments.length,w=!1;for(typeof T=="boolean"&&(w=T,T=arguments[1]||{},S=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});Ss.length;let u;o&&s.push(i);try{u=e.apply(this,s)}catch(l){const c=l;if(o&&n)throw c;return i(c)}o||(u&&u.then&&typeof u.then=="function"?u.then(a,i):u instanceof Error?i(u):a(u))}function i(s,...o){n||(n=!0,t(s,...o))}function a(s){i(null,s)}}const On={basename:hA,dirname:fA,extname:pA,join:mA,sep:"/"};function hA(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ja(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function fA(e){if(Ja(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function pA(e){Ja(e);let t=e.length,n=-1,r=0,i=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function mA(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function bA(e,t){let n="",r=0,i=-1,a=0,s=-1,o,u;for(;++s<=e.length;){if(s2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=s,a=0;continue}}else if(n.length>0){n="",r=0,i=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return n}function Ja(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const yA={cwd:vA};function vA(){return"/"}function kl(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function TA(e){if(typeof e=="string")e=new URL(e);else if(!kl(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return xA(e)}function xA(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[f,...b]=c;const T=r[p][1];Cl(T)&&Cl(f)&&(f=pu(!0,T,f)),r[p]=[l,f,...b]}}}}const AA=new ec().freeze();function yu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function vu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Tu(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function f1(e){if(!Cl(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function p1(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Es(e){return CA(e)?e:new F2(e)}function CA(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function kA(e){return typeof e=="string"||IA(e)}function IA(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const NA="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",m1=[],g1={allowDangerousHtml:!0},MA=/^(https?|ircs?|mailto|xmpp)$/i,RA=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function DA(e){const t=PA(e),n=LA(e);return OA(t.runSync(t.parse(n),n),e)}function PA(e){const t=e.rehypePlugins||m1,n=e.remarkPlugins||m1,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...g1}:g1;return AA().use(pw).use(n).use(oA,r).use(t)}function LA(e){const t=e.children||"",n=new F2;return typeof t=="string"&&(n.value=t),n}function OA(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,u=t.urlTransform||_A;for(const c of RA)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+NA+c.id,void 0);return Mo(e,l),Qx(e,{Fragment:R.Fragment,components:i,ignoreInvalidStyle:!0,jsx:R.jsx,jsxs:R.jsxs,passKeys:!0,passNode:!0});function l(c,d,p){if(c.type==="raw"&&p&&typeof d=="number")return s?p.children.splice(d,1):p.children[d]={type:"text",value:c.value},d;if(c.type==="element"){let f;for(f in cu)if(Object.hasOwn(cu,f)&&Object.hasOwn(c.properties,f)){const b=c.properties[f],T=cu[f];(T===null||T.includes(c.tagName))&&(c.properties[f]=u(String(b||""),f,c))}}if(c.type==="element"){let f=n?!n.includes(c.tagName):a?a.includes(c.tagName):!1;if(!f&&r&&typeof d=="number"&&(f=!r(c,d,p)),f&&p&&typeof d=="number")return o&&c.children?p.children.splice(d,1,...c.children):p.children.splice(d,1),d}}}function _A(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||MA.test(e.slice(0,t))?e:""}function b1(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function BA(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function FA(e,t,n){const i=Za((n||{}).ignore||[]),a=HA(t);let s=-1;for(;++s0?{type:"text",value:C}:void 0),C===!1?p.lastIndex=k+1:(b!==k&&w.push({type:"text",value:l.value.slice(b,k)}),Array.isArray(C)?w.push(...C):C&&w.push(C),b=k+x[0].length,y=!0),!p.global)break;x=p.exec(l.value)}return y?(b?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=b1(e,"(");let a=b1(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function H2(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Zr(n)||Co(n))&&(!t||n!==47)}z2.peek=uC;function eC(){this.buffer()}function tC(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function nC(){this.buffer()}function rC(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function iC(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Dn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function aC(e){this.exit(e)}function sC(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Dn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function oC(e){this.exit(e)}function uC(){return"["}function z2(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),o(),s(),a+=i.move("]"),a}function lC(){return{enter:{gfmFootnoteCallString:eC,gfmFootnoteCall:tC,gfmFootnoteDefinitionLabelString:nC,gfmFootnoteDefinition:rC},exit:{gfmFootnoteCallString:iC,gfmFootnoteCall:aC,gfmFootnoteDefinitionLabelString:sC,gfmFootnoteDefinition:oC}}}function cC(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:z2},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,s){const o=a.createTracker(s);let u=o.move("[^");const l=a.enter("footnoteDefinition"),c=a.enter("label");return u+=o.move(a.safe(a.associationId(r),{before:u,after:"]"})),c(),u+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),u+=o.move((t?` +`:" ")+a.indentLines(a.containerFlow(r,o.current()),t?U2:dC))),l(),u}}function dC(e,t,n){return t===0?e:U2(e,t,n)}function U2(e,t,n){return(n?"":" ")+e}const hC=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];V2.peek=bC;function fC(){return{canContainEols:["delete"],enter:{strikethrough:mC},exit:{strikethrough:gC}}}function pC(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:hC}],handlers:{delete:V2}}}function mC(e){this.enter({type:"delete",children:[]},e)}function gC(e){this.exit(e)}function V2(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function bC(){return"~"}function yC(e){return e.length}function vC(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||yC,a=[],s=[],o=[],u=[];let l=0,c=-1;for(;++cl&&(l=e[c].length);++yu[y])&&(u[y]=x)}T.push(w)}s[c]=T,o[c]=S}let d=-1;if(typeof r=="object"&&"length"in r)for(;++du[d]&&(u[d]=w),f[d]=w),p[d]=x}s.splice(1,0,p),o.splice(1,0,f),c=-1;const b=[];for(;++c "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),EC);return i(),s}function EC(e,t,n){return">"+(n?"":" ")+e}function SC(e,t){return T1(e,t.inConstruct,!0)&&!T1(e,t.notInConstruct,!1)}function T1(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++rs&&(s=a):a=1,i=r+t.length,r=n.indexOf(t,i);return s}function wC(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function AC(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function CC(e,t,n,r){const i=AC(n),a=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(wC(e,n)){const d=n.enter("codeIndented"),p=n.indentLines(a,kC);return d(),p}const o=n.createTracker(r),u=i.repeat(Math.max(q2(a,i)+1,3)),l=n.enter("codeFenced");let c=o.move(u);if(e.lang){const d=n.enter(`codeFencedLang${s}`);c+=o.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...o.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${s}`);c+=o.move(" "),c+=o.move(n.safe(e.meta,{before:c,after:` +`,encode:["`"],...o.current()})),d()}return c+=o.move(` +`),a&&(c+=o.move(a+` +`)),c+=o.move(u),l(),c}function kC(e,t,n){return(n?"":" ")+e}function tc(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function IC(e,t,n,r){const i=tc(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let o=n.enter("label");const u=n.createTracker(r);let l=u.move("[");return l+=u.move(n.safe(n.associationId(e),{before:l,after:"]",...u.current()})),l+=u.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),l+=u.move("<"),l+=u.move(n.safe(e.url,{before:l,after:">",...u.current()})),l+=u.move(">")):(o=n.enter("destinationRaw"),l+=u.move(n.safe(e.url,{before:l,after:e.title?" ":` +`,...u.current()}))),o(),e.title&&(o=n.enter(`title${a}`),l+=u.move(" "+i),l+=u.move(n.safe(e.title,{before:l,after:i,...u.current()})),l+=u.move(i),o()),s(),l}function NC(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Fa(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ro(e,t,n){const r=Ii(e),i=Ii(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}$2.peek=MC;function $2(e,t,n,r){const i=NC(n),a=n.enter("emphasis"),s=n.createTracker(r),o=s.move(i);let u=s.move(n.containerPhrasing(e,{after:i,before:o,...s.current()}));const l=u.charCodeAt(0),c=ro(r.before.charCodeAt(r.before.length-1),l,i);c.inside&&(u=Fa(l)+u.slice(1));const d=u.charCodeAt(u.length-1),p=ro(r.after.charCodeAt(0),d,i);p.inside&&(u=u.slice(0,-1)+Fa(d));const f=s.move(i);return a(),n.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},o+u+f}function MC(e,t,n){return n.options.emphasis||"*"}function RC(e,t){let n=!1;return Mo(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,wl}),!!((!e.depth||e.depth<3)&&W0(e)&&(t.options.setext||n))}function DC(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(RC(e,n)){const c=n.enter("headingSetext"),d=n.enter("phrasing"),p=n.containerPhrasing(e,{...a.current(),before:` +`,after:` +`});return d(),c(),p+` +`+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(` +`))+1))}const s="#".repeat(i),o=n.enter("headingAtx"),u=n.enter("phrasing");a.move(s+" ");let l=n.containerPhrasing(e,{before:"# ",after:` +`,...a.current()});return/^[\t ]/.test(l)&&(l=Fa(l.charCodeAt(0))+l.slice(1)),l=l?s+" "+l:s,n.options.closeAtx&&(l+=" "+s),u(),o(),l}W2.peek=PC;function W2(e){return e.value||""}function PC(){return"<"}Y2.peek=LC;function Y2(e,t,n,r){const i=tc(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=n.enter("label");const u=n.createTracker(r);let l=u.move("![");return l+=u.move(n.safe(e.alt,{before:l,after:"]",...u.current()})),l+=u.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),l+=u.move("<"),l+=u.move(n.safe(e.url,{before:l,after:">",...u.current()})),l+=u.move(">")):(o=n.enter("destinationRaw"),l+=u.move(n.safe(e.url,{before:l,after:e.title?" ":")",...u.current()}))),o(),e.title&&(o=n.enter(`title${a}`),l+=u.move(" "+i),l+=u.move(n.safe(e.title,{before:l,after:i,...u.current()})),l+=u.move(i),o()),l+=u.move(")"),s(),l}function LC(){return"!"}G2.peek=OC;function G2(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(r);let u=o.move("![");const l=n.safe(e.alt,{before:u,after:"]",...o.current()});u+=o.move(l+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:u,after:"]",...o.current()});return s(),n.stack=c,a(),i==="full"||!l||l!==d?u+=o.move(d+"]"):i==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function OC(){return"!"}X2.peek=_C;function X2(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a\u007F]/.test(e.url))}Q2.peek=BC;function Q2(e,t,n,r){const i=tc(n),a=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,u;if(K2(e,n)){const c=n.stack;n.stack=[],o=n.enter("autolink");let d=s.move("<");return d+=s.move(n.containerPhrasing(e,{before:d,after:">",...s.current()})),d+=s.move(">"),o(),n.stack=c,d}o=n.enter("link"),u=n.enter("label");let l=s.move("[");return l+=s.move(n.containerPhrasing(e,{before:l,after:"](",...s.current()})),l+=s.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),l+=s.move("<"),l+=s.move(n.safe(e.url,{before:l,after:">",...s.current()})),l+=s.move(">")):(u=n.enter("destinationRaw"),l+=s.move(n.safe(e.url,{before:l,after:e.title?" ":")",...s.current()}))),u(),e.title&&(u=n.enter(`title${a}`),l+=s.move(" "+i),l+=s.move(n.safe(e.title,{before:l,after:i,...s.current()})),l+=s.move(i),u()),l+=s.move(")"),o(),l}function BC(e,t,n){return K2(e,n)?"<":"["}Z2.peek=FC;function Z2(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(r);let u=o.move("[");const l=n.containerPhrasing(e,{before:u,after:"]",...o.current()});u+=o.move(l+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:u,after:"]",...o.current()});return s(),n.stack=c,a(),i==="full"||!l||l!==d?u+=o.move(d+"]"):i==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function FC(){return"["}function nc(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function HC(e){const t=nc(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function zC(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function J2(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function UC(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?zC(n):nc(n);const o=e.ordered?s==="."?")":".":HC(n);let u=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),J2(n)===s&&c){let d=-1;for(;++d-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(r);o.move(a+" ".repeat(s-a.length)),o.shift(s);const u=n.enter("listItem"),l=n.indentLines(n.containerFlow(e,o.current()),c);return u(),l;function c(d,p,f){return p?(f?"":" ".repeat(s))+d:(f?a:a+" ".repeat(s-a.length))+d}}function qC(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),i(),s}const $C=Za(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function WC(e,t,n,r){return(e.children.some(function(s){return $C(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function YC(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}e4.peek=GC;function e4(e,t,n,r){const i=YC(n),a=n.enter("strong"),s=n.createTracker(r),o=s.move(i+i);let u=s.move(n.containerPhrasing(e,{after:i,before:o,...s.current()}));const l=u.charCodeAt(0),c=ro(r.before.charCodeAt(r.before.length-1),l,i);c.inside&&(u=Fa(l)+u.slice(1));const d=u.charCodeAt(u.length-1),p=ro(r.after.charCodeAt(0),d,i);p.inside&&(u=u.slice(0,-1)+Fa(d));const f=s.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},o+u+f}function GC(e,t,n){return n.options.strong||"*"}function XC(e,t,n,r){return n.safe(e.value,r)}function KC(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function QC(e,t,n){const r=(J2(n)+(n.options.ruleSpaces?" ":"")).repeat(KC(n));return n.options.ruleSpaces?r.slice(0,-1):r}const t4={blockquote:xC,break:x1,code:CC,definition:IC,emphasis:$2,hardBreak:x1,heading:DC,html:W2,image:Y2,imageReference:G2,inlineCode:X2,link:Q2,linkReference:Z2,list:UC,listItem:jC,paragraph:qC,root:WC,strong:e4,text:XC,thematicBreak:QC};function ZC(){return{enter:{table:JC,tableData:E1,tableHeader:E1,tableRow:tk},exit:{codeText:nk,table:ek,tableData:wu,tableHeader:wu,tableRow:wu}}}function JC(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function ek(e){this.exit(e),this.data.inTable=void 0}function tk(e){this.enter({type:"tableRow",children:[]},e)}function wu(e){this.exit(e)}function E1(e){this.enter({type:"tableCell",children:[]},e)}function nk(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,rk));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function rk(e,t){return t==="|"?t:e}function ik(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` +`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:s,tableCell:u,tableRow:o}};function s(f,b,T,S){return l(c(f,T,S),f.align)}function o(f,b,T,S){const y=d(f,T,S),w=l([y]);return w.slice(0,w.indexOf(` +`))}function u(f,b,T,S){const y=T.enter("tableCell"),w=T.enter("phrasing"),x=T.containerPhrasing(f,{...S,before:a,after:a});return w(),y(),x}function l(f,b){return vC(f,{align:b,alignDelimiters:r,padding:n,stringLength:i})}function c(f,b,T){const S=f.children;let y=-1;const w=[],x=b.enter("table");for(;++y0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Ek={tokenize:Mk,partial:!0};function Sk(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:kk,continuation:{tokenize:Ik},exit:Nk}},text:{91:{name:"gfmFootnoteCall",tokenize:Ck},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:wk,resolveTo:Ak}}}}function wk(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){s=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return o;function o(u){if(!s||!s._balanced)return n(u);const l=Dn(r.sliceSerialize({start:s.end,end:r.now()}));return l.codePointAt(0)!==94||!a.includes(l.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function Ak(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function Ck(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return o;function o(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),u}function u(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(d){if(a>999||d===93&&!s||d===null||d===91||Ze(d))return n(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(Dn(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Ze(d)||(s=!0),a++,e.consume(d),d===92?c:l}function c(d){return d===91||d===92||d===93?(e.consume(d),a++,l):l(d)}}function kk(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,o;return u;function u(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(b)}function c(b){if(s>999||b===93&&!o||b===null||b===91||Ze(b))return n(b);if(b===93){e.exit("chunkString");const T=e.exit("gfmFootnoteDefinitionLabelString");return a=Dn(r.sliceSerialize(T)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return Ze(b)||(o=!0),s++,e.consume(b),b===92?d:c}function d(b){return b===91||b===92||b===93?(e.consume(b),s++,c):c(b)}function p(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(a)||i.push(a),ze(e,f,"gfmFootnoteDefinitionWhitespace")):n(b)}function f(b){return t(b)}}function Ik(e,t,n){return e.check(Qa,t,e.attempt(Ek,t,n))}function Nk(e){e.exit("gfmFootnoteDefinition")}function Mk(e,t,n){const r=this;return ze(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function Rk(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,o){let u=-1;for(;++u1?u(b):(s.consume(b),d++,f);if(d<2&&!n)return u(b);const S=s.exit("strikethroughSequenceTemporary"),y=Ii(b);return S._open=!y||y===2&&!!T,S._close=!T||T===2&&!!y,o(b)}}}class Dk{constructor(){this.map=[]}add(t,n,r){Pk(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const a of i)t.push(a);i=r.pop()}this.map.length=0}}function Pk(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const q=r.events[$][1].type;if(q==="lineEnding"||q==="linePrefix")$--;else break}const W=$>-1?r.events[$][1].type:null,G=W==="tableHead"||W==="tableRow"?C:u;return G===C&&r.parser.lazy[r.now().line]?n(P):G(P)}function u(P){return e.enter("tableHead"),e.enter("tableRow"),l(P)}function l(P){return P===124||(s=!0,a+=1),c(P)}function c(P){return P===null?n(P):fe(P)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),f):n(P):Ue(P)?ze(e,c,"whitespace")(P):(a+=1,s&&(s=!1,i+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),d(P)))}function d(P){return P===null||P===124||Ze(P)?(e.exit("data"),c(P)):(e.consume(P),P===92?p:d)}function p(P){return P===92||P===124?(e.consume(P),d):d(P)}function f(P){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(P):(e.enter("tableDelimiterRow"),s=!1,Ue(P)?ze(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):b(P))}function b(P){return P===45||P===58?S(P):P===124?(s=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),T):M(P)}function T(P){return Ue(P)?ze(e,S,"whitespace")(P):S(P)}function S(P){return P===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),y):P===45?(a+=1,y(P)):P===null||fe(P)?k(P):M(P)}function y(P){return P===45?(e.enter("tableDelimiterFiller"),w(P)):M(P)}function w(P){return P===45?(e.consume(P),w):P===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(P))}function x(P){return Ue(P)?ze(e,k,"whitespace")(P):k(P)}function k(P){return P===124?b(P):P===null||fe(P)?!s||i!==a?M(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(P)):M(P)}function M(P){return n(P)}function C(P){return e.enter("tableRow"),H(P)}function H(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),H):P===null||fe(P)?(e.exit("tableRow"),t(P)):Ue(P)?ze(e,H,"whitespace")(P):(e.enter("data"),z(P))}function z(P){return P===null||P===124||Ze(P)?(e.exit("data"),H(P)):(e.consume(P),P===92?V:z)}function V(P){return P===92||P===124?(e.consume(P),z):z(P)}}function Bk(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,u=0,l,c,d;const p=new Dk;for(;++nn[2]+1){const b=n[2]+1,T=n[3]-n[2]-1;e.add(b,T,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(a.end=Object.assign({},ci(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function w1(e,t,n,r,i){const a=[],s=ci(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function ci(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Fk={name:"tasklistCheck",tokenize:zk};function Hk(){return{text:{91:Fk}}}function zk(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return Ze(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),s):n(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(u)}function o(u){return fe(u)?t(u):Ue(u)?e.check({tokenize:Uk},t,n)(u):n(u)}}function Uk(e,t,n){return ze(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Vk(e){return y2([fk(),Sk(),Rk(e),Ok(),Hk()])}const jk={};function A1(e){const t=this,n=e||jk,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Vk(n)),a.push(lk()),s.push(ck(n))}function qk(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:o,mathText:s,mathTextData:o}};function e(u){const l={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[l]}},u)}function t(){this.buffer()}function n(){const u=this.resume(),l=this.stack[this.stack.length-1];l.type,l.meta=u}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(u){const l=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c=this.stack[this.stack.length-1];c.type,this.exit(u),c.value=l;const d=c.data.hChildren[0];d.type,d.tagName,d.children.push({type:"text",value:l}),this.data.mathFlowInside=void 0}function a(u){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},u),this.buffer()}function s(u){const l=this.resume(),c=this.stack[this.stack.length-1];c.type,this.exit(u),c.value=l,c.data.hChildren.push({type:"text",value:l})}function o(u){this.config.enter.data.call(this,u),this.config.exit.data.call(this,u)}}function $k(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` +`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(a,s,o,u){const l=a.value||"",c=o.createTracker(u),d="$".repeat(Math.max(q2(l,"$")+1,2)),p=o.enter("mathFlow");let f=c.move(d);if(a.meta){const b=o.enter("mathFlowMeta");f+=c.move(o.safe(a.meta,{after:` +`,before:f,encode:["$"],...c.current()})),b()}return f+=c.move(` +`),l&&(f+=c.move(l+` +`)),f+=c.move(d),p(),f}function r(a,s,o){let u=a.value||"",l=1;for(t||l++;new RegExp("(^|[^$])"+"\\$".repeat(l)+"([^$]|$)").test(u);)l++;const c="$".repeat(l);/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^\$|\$$/.test(u))&&(u=" "+u+" ");let d=-1;for(;++d15?l="…"+o.slice(i-15,i):l=o.slice(0,i);var c;a+15":">","<":"<",'"':""","'":"'"},iI=/[&><"']/g;function aI(e){return String(e).replace(iI,t=>rI[t])}var c4=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},sI=function(t){var n=c4(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},oI=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},uI=function(t){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"},ge={contains:Jk,deflt:eI,escape:aI,hyphenate:nI,getBaseElem:c4,isCharacterBox:sI,protocolFromUrl:uI},Us={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function lI(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class ic{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in Us)if(Us.hasOwnProperty(n)){var r=Us[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:lI(r)}}reportNonstrict(t,n,r){var i=this.strict;if(typeof i=="function"&&(i=i(t,n,r)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new re("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var i=this.strict;if(typeof i=="function")try{i=i(t,n,r)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var n=ge.protocolFromUrl(t.url);if(n==null)return!1;t.protocol=n}var r=typeof this.trust=="function"?this.trust(t):this.trust;return!!r}}class br{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return _n[cI[this.id]]}sub(){return _n[dI[this.id]]}fracNum(){return _n[hI[this.id]]}fracDen(){return _n[fI[this.id]]}cramp(){return _n[pI[this.id]]}text(){return _n[mI[this.id]]}isTight(){return this.size>=2}}var ac=0,io=1,Ti=2,rr=3,Ha=4,Tn=5,Ni=6,Gt=7,_n=[new br(ac,0,!1),new br(io,0,!0),new br(Ti,1,!1),new br(rr,1,!0),new br(Ha,2,!1),new br(Tn,2,!0),new br(Ni,3,!1),new br(Gt,3,!0)],cI=[Ha,Tn,Ha,Tn,Ni,Gt,Ni,Gt],dI=[Tn,Tn,Tn,Tn,Gt,Gt,Gt,Gt],hI=[Ti,rr,Ha,Tn,Ni,Gt,Ni,Gt],fI=[rr,rr,Tn,Tn,Gt,Gt,Gt,Gt],pI=[io,io,rr,rr,Tn,Tn,Gt,Gt],mI=[ac,io,Ti,rr,Ti,rr,Ti,rr],ye={DISPLAY:_n[ac],TEXT:_n[Ti],SCRIPT:_n[Ha],SCRIPTSCRIPT:_n[Ni]},Nl=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function gI(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}var Vs=[];Nl.forEach(e=>e.blocks.forEach(t=>Vs.push(...t)));function d4(e){for(var t=0;t=Vs[t]&&e<=Vs[t+1])return!0;return!1}var ui=80,bI=function(t,n){return"M95,"+(622+t+n)+` +c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 +c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 +c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 +s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 +c69,-144,104.5,-217.7,106.5,-221 +l`+t/2.075+" -"+t+` +c5.3,-9.3,12,-14,20,-14 +H400000v`+(40+t)+`H845.2724 +s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 +c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z +M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},yI=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119 +c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 +c340,-704.7,510.7,-1060.3,512,-1067 +l`+t/2.084+" -"+t+` +c4.7,-7.3,11,-11,19,-11 +H40000v`+(40+t)+`H1012.3 +s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 +c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 +s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 +c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z +M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},vI=function(t,n){return"M983 "+(10+t+n)+` +l`+t/3.13+" -"+t+` +c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+` +H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 +s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 +c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 +c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 +c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 +c53.7,-170.3,84.5,-266.8,92.5,-289.5z +M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},TI=function(t,n){return"M424,"+(2398+t+n)+` +c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 +c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 +s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 +s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 +l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000 +v`+(40+t)+`H1014.6 +s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 +c-2,6,-10,9,-24,9 +c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+n+` +h400000v`+(40+t)+"h-400000z"},xI=function(t,n){return"M473,"+(2713+t+n)+` +c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+` +c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7 +s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 +c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 +c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 +s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, +606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},EI=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},SI=function(t,n,r){var i=r-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+` +H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 +h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 +c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 +219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},wI=function(t,n,r){n=1e3*n;var i="";switch(t){case"sqrtMain":i=bI(n,ui);break;case"sqrtSize1":i=yI(n,ui);break;case"sqrtSize2":i=vI(n,ui);break;case"sqrtSize3":i=TI(n,ui);break;case"sqrtSize4":i=xI(n,ui);break;case"sqrtTall":i=SI(n,ui,r)}return i},AI=function(t,n){switch(t){case"⎜":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"∣":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"∥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"⎟":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"⎢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"⎥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"⎪":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"⏐":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"‖":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},k1={doubleleftarrow:`M262 157 +l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 + 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 + 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 +c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 + 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 +-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 +-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z +m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l +-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 + 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 +-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 +-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 +-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 +c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 +-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 + 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 +-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 +c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 + 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 + 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 + l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 +-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 + 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 + 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 + 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 +-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 +H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 + 435 0h399565z`,leftgroupunder:`M400000 262 +H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 + 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 +-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 +-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 +-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 + 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 +-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 +-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z +m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 + 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 + 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 +-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 + 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 +-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 +v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 +-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 +-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 + 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z +M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z +M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 +-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 +c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 + 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z +M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 +c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 +-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 + 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 + 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 +c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 + 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 + 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 +-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 +-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z +m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 +60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 +-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z +m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 +c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 +-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z +m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 +85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 +-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z +m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 +c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 +-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 + 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 + 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 +-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 +-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 + 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l +-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 +s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 +c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 + 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 +-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 + 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 + 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 +-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 +-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 + 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 +-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 + 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z +m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 + 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 +-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 +-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 + 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 + 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 +-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z +m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 + 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 +-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 + 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z +M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 + 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 +-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 +-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 + 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 +-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 +-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 +-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 + 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 +c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 + 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 + 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 +-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 + 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 +-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 + 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 + 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 +-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 +-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 + 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 +c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 + 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 +-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 + 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 + 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 + -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 +-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 + 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 + 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 + -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 +3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 +10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 +-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 +-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 +H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 +c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 +c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, +-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 +c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 +c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 +s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 +121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 +s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 +c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z +M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 +-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 +13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 +-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 +-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 +-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 +151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 +c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 +c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 +c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 +c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z +M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 +c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, +-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 +c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z +M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 +c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, +1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, +-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z +M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 +c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, +-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 +c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},CI=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84 +H403z M403 1759 V0 H319 V1759 v`+n+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z +M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+" v585 h43z";case"doublevert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+` v585 h43z +M367 15 v585 v`+n+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+n+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+n+` v1715 h263 v84 H319z +MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+n+` v1799 H0 v-84 H319z +MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v602 h84z +M403 1759 V0 H319 V1759 v`+n+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v602 h84z +M347 1759 V0 h-84 V1759 v`+n+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 +c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, +-36,557 l0,`+(n+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, +949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 +c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, +-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 +l0,-`+(n+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, +-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, +63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 +c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(n+9)+` +c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 +c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 +c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 +c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 +l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};let es=class{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return ge.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),n=0;nn.toText();return this.children.map(t).join("")}};var Fn={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},ws={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},I1={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function kI(e,t){Fn[e]=t}function sc(e,t,n){if(!Fn[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=Fn[t][r];if(!i&&e[0]in I1&&(r=I1[e[0]].charCodeAt(0),i=Fn[t][r]),!i&&n==="text"&&d4(r)&&(i=Fn[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Au={};function II(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Au[t]){var n=Au[t]={cssEmPerMu:ws.quad[t]/18};for(var r in ws)ws.hasOwnProperty(r)&&(n[r]=ws[r][t])}return Au[t]}var NI=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],N1=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],M1=function(t,n){return n.size<2?t:NI[t-1][n.size-1]};class er{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||er.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=N1[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new er(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:M1(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:N1[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=M1(er.BASESIZE,t);return this.size===n&&this.textSize===er.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==er.BASESIZE?["sizing","reset-size"+this.size,"size"+er.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=II(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}er.BASESIZE=6;var Ml={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},MI={ex:!0,em:!0,mu:!0},h4=function(t){return typeof t!="string"&&(t=t.unit),t in Ml||t in MI||t==="ex"},ft=function(t,n){var r;if(t.unit in Ml)r=Ml[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var i;if(n.style.isTight()?i=n.havingStyle(n.style.text()):i=n,t.unit==="ex")r=i.fontMetrics().xHeight;else if(t.unit==="em")r=i.fontMetrics().quad;else throw new re("Invalid unit: '"+t.unit+"'");i!==n&&(r*=i.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},ue=function(t){return+t.toFixed(4)+"em"},Ir=function(t){return t.filter(n=>n).join(" ")},f4=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var i=n.getColor();i&&(this.style.color=i)}},p4=function(t){var n=document.createElement(t);n.className=Ir(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&n.setAttribute(i,this.attributes[i]);for(var a=0;a/=\x00-\x1f]/,m4=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+ge.escape(Ir(this.classes))+'"');var r="";for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=ge.hyphenate(i)+":"+this.style[i]+";");r&&(n+=' style="'+ge.escape(r)+'"');for(var a in this.attributes)if(this.attributes.hasOwnProperty(a)){if(RI.test(a))throw new re("Invalid attribute name '"+a+"'");n+=" "+a+'="'+ge.escape(this.attributes[a])+'"'}n+=">";for(var s=0;s",n};class ts{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,f4.call(this,t,r,i),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return ge.contains(this.classes,t)}toNode(){return p4.call(this,"span")}toMarkup(){return m4.call(this,"span")}}class oc{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,f4.call(this,n,i),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return ge.contains(this.classes,t)}toNode(){return p4.call(this,"a")}toMarkup(){return m4.call(this,"a")}}class DI{constructor(t,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.style=r}hasClass(t){return ge.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t=''+ge.escape(this.alt)+'0&&(n=document.createElement("span"),n.style.marginRight=ue(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=Ir(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=ge.hyphenate(i)+":"+this.style[i]+";");r&&(t=!0,n+=' style="'+ge.escape(r)+'"');var a=ge.escape(this.text);return t?(n+=">",n+=a,n+="",n):a}}class cr{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var i=0;i':''}}class Rl{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t=" but got "+String(e)+".")}var OI={bin:1,close:1,inner:1,open:1,punct:1,rel:1},_I={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},rt={math:{},text:{}};function m(e,t,n,r,i,a){rt[e][i]={font:t,group:n,replace:r},a&&r&&(rt[e][r]=rt[e][i])}var g="math",Z="text",v="main",D="ams",ct="accent-token",he="bin",Xt="close",Fi="inner",be="mathord",Lt="op-token",mn="open",Ro="punct",L="rel",pr="spacing",F="textord";m(g,v,L,"≡","\\equiv",!0);m(g,v,L,"≺","\\prec",!0);m(g,v,L,"≻","\\succ",!0);m(g,v,L,"∼","\\sim",!0);m(g,v,L,"⊥","\\perp");m(g,v,L,"⪯","\\preceq",!0);m(g,v,L,"⪰","\\succeq",!0);m(g,v,L,"≃","\\simeq",!0);m(g,v,L,"∣","\\mid",!0);m(g,v,L,"≪","\\ll",!0);m(g,v,L,"≫","\\gg",!0);m(g,v,L,"≍","\\asymp",!0);m(g,v,L,"∥","\\parallel");m(g,v,L,"⋈","\\bowtie",!0);m(g,v,L,"⌣","\\smile",!0);m(g,v,L,"⊑","\\sqsubseteq",!0);m(g,v,L,"⊒","\\sqsupseteq",!0);m(g,v,L,"≐","\\doteq",!0);m(g,v,L,"⌢","\\frown",!0);m(g,v,L,"∋","\\ni",!0);m(g,v,L,"∝","\\propto",!0);m(g,v,L,"⊢","\\vdash",!0);m(g,v,L,"⊣","\\dashv",!0);m(g,v,L,"∋","\\owns");m(g,v,Ro,".","\\ldotp");m(g,v,Ro,"⋅","\\cdotp");m(g,v,F,"#","\\#");m(Z,v,F,"#","\\#");m(g,v,F,"&","\\&");m(Z,v,F,"&","\\&");m(g,v,F,"ℵ","\\aleph",!0);m(g,v,F,"∀","\\forall",!0);m(g,v,F,"ℏ","\\hbar",!0);m(g,v,F,"∃","\\exists",!0);m(g,v,F,"∇","\\nabla",!0);m(g,v,F,"♭","\\flat",!0);m(g,v,F,"ℓ","\\ell",!0);m(g,v,F,"♮","\\natural",!0);m(g,v,F,"♣","\\clubsuit",!0);m(g,v,F,"℘","\\wp",!0);m(g,v,F,"♯","\\sharp",!0);m(g,v,F,"♢","\\diamondsuit",!0);m(g,v,F,"ℜ","\\Re",!0);m(g,v,F,"♡","\\heartsuit",!0);m(g,v,F,"ℑ","\\Im",!0);m(g,v,F,"♠","\\spadesuit",!0);m(g,v,F,"§","\\S",!0);m(Z,v,F,"§","\\S");m(g,v,F,"¶","\\P",!0);m(Z,v,F,"¶","\\P");m(g,v,F,"†","\\dag");m(Z,v,F,"†","\\dag");m(Z,v,F,"†","\\textdagger");m(g,v,F,"‡","\\ddag");m(Z,v,F,"‡","\\ddag");m(Z,v,F,"‡","\\textdaggerdbl");m(g,v,Xt,"⎱","\\rmoustache",!0);m(g,v,mn,"⎰","\\lmoustache",!0);m(g,v,Xt,"⟯","\\rgroup",!0);m(g,v,mn,"⟮","\\lgroup",!0);m(g,v,he,"∓","\\mp",!0);m(g,v,he,"⊖","\\ominus",!0);m(g,v,he,"⊎","\\uplus",!0);m(g,v,he,"⊓","\\sqcap",!0);m(g,v,he,"∗","\\ast");m(g,v,he,"⊔","\\sqcup",!0);m(g,v,he,"◯","\\bigcirc",!0);m(g,v,he,"∙","\\bullet",!0);m(g,v,he,"‡","\\ddagger");m(g,v,he,"≀","\\wr",!0);m(g,v,he,"⨿","\\amalg");m(g,v,he,"&","\\And");m(g,v,L,"⟵","\\longleftarrow",!0);m(g,v,L,"⇐","\\Leftarrow",!0);m(g,v,L,"⟸","\\Longleftarrow",!0);m(g,v,L,"⟶","\\longrightarrow",!0);m(g,v,L,"⇒","\\Rightarrow",!0);m(g,v,L,"⟹","\\Longrightarrow",!0);m(g,v,L,"↔","\\leftrightarrow",!0);m(g,v,L,"⟷","\\longleftrightarrow",!0);m(g,v,L,"⇔","\\Leftrightarrow",!0);m(g,v,L,"⟺","\\Longleftrightarrow",!0);m(g,v,L,"↦","\\mapsto",!0);m(g,v,L,"⟼","\\longmapsto",!0);m(g,v,L,"↗","\\nearrow",!0);m(g,v,L,"↩","\\hookleftarrow",!0);m(g,v,L,"↪","\\hookrightarrow",!0);m(g,v,L,"↘","\\searrow",!0);m(g,v,L,"↼","\\leftharpoonup",!0);m(g,v,L,"⇀","\\rightharpoonup",!0);m(g,v,L,"↙","\\swarrow",!0);m(g,v,L,"↽","\\leftharpoondown",!0);m(g,v,L,"⇁","\\rightharpoondown",!0);m(g,v,L,"↖","\\nwarrow",!0);m(g,v,L,"⇌","\\rightleftharpoons",!0);m(g,D,L,"≮","\\nless",!0);m(g,D,L,"","\\@nleqslant");m(g,D,L,"","\\@nleqq");m(g,D,L,"⪇","\\lneq",!0);m(g,D,L,"≨","\\lneqq",!0);m(g,D,L,"","\\@lvertneqq");m(g,D,L,"⋦","\\lnsim",!0);m(g,D,L,"⪉","\\lnapprox",!0);m(g,D,L,"⊀","\\nprec",!0);m(g,D,L,"⋠","\\npreceq",!0);m(g,D,L,"⋨","\\precnsim",!0);m(g,D,L,"⪹","\\precnapprox",!0);m(g,D,L,"≁","\\nsim",!0);m(g,D,L,"","\\@nshortmid");m(g,D,L,"∤","\\nmid",!0);m(g,D,L,"⊬","\\nvdash",!0);m(g,D,L,"⊭","\\nvDash",!0);m(g,D,L,"⋪","\\ntriangleleft");m(g,D,L,"⋬","\\ntrianglelefteq",!0);m(g,D,L,"⊊","\\subsetneq",!0);m(g,D,L,"","\\@varsubsetneq");m(g,D,L,"⫋","\\subsetneqq",!0);m(g,D,L,"","\\@varsubsetneqq");m(g,D,L,"≯","\\ngtr",!0);m(g,D,L,"","\\@ngeqslant");m(g,D,L,"","\\@ngeqq");m(g,D,L,"⪈","\\gneq",!0);m(g,D,L,"≩","\\gneqq",!0);m(g,D,L,"","\\@gvertneqq");m(g,D,L,"⋧","\\gnsim",!0);m(g,D,L,"⪊","\\gnapprox",!0);m(g,D,L,"⊁","\\nsucc",!0);m(g,D,L,"⋡","\\nsucceq",!0);m(g,D,L,"⋩","\\succnsim",!0);m(g,D,L,"⪺","\\succnapprox",!0);m(g,D,L,"≆","\\ncong",!0);m(g,D,L,"","\\@nshortparallel");m(g,D,L,"∦","\\nparallel",!0);m(g,D,L,"⊯","\\nVDash",!0);m(g,D,L,"⋫","\\ntriangleright");m(g,D,L,"⋭","\\ntrianglerighteq",!0);m(g,D,L,"","\\@nsupseteqq");m(g,D,L,"⊋","\\supsetneq",!0);m(g,D,L,"","\\@varsupsetneq");m(g,D,L,"⫌","\\supsetneqq",!0);m(g,D,L,"","\\@varsupsetneqq");m(g,D,L,"⊮","\\nVdash",!0);m(g,D,L,"⪵","\\precneqq",!0);m(g,D,L,"⪶","\\succneqq",!0);m(g,D,L,"","\\@nsubseteqq");m(g,D,he,"⊴","\\unlhd");m(g,D,he,"⊵","\\unrhd");m(g,D,L,"↚","\\nleftarrow",!0);m(g,D,L,"↛","\\nrightarrow",!0);m(g,D,L,"⇍","\\nLeftarrow",!0);m(g,D,L,"⇏","\\nRightarrow",!0);m(g,D,L,"↮","\\nleftrightarrow",!0);m(g,D,L,"⇎","\\nLeftrightarrow",!0);m(g,D,L,"△","\\vartriangle");m(g,D,F,"ℏ","\\hslash");m(g,D,F,"▽","\\triangledown");m(g,D,F,"◊","\\lozenge");m(g,D,F,"Ⓢ","\\circledS");m(g,D,F,"®","\\circledR");m(Z,D,F,"®","\\circledR");m(g,D,F,"∡","\\measuredangle",!0);m(g,D,F,"∄","\\nexists");m(g,D,F,"℧","\\mho");m(g,D,F,"Ⅎ","\\Finv",!0);m(g,D,F,"⅁","\\Game",!0);m(g,D,F,"‵","\\backprime");m(g,D,F,"▲","\\blacktriangle");m(g,D,F,"▼","\\blacktriangledown");m(g,D,F,"■","\\blacksquare");m(g,D,F,"⧫","\\blacklozenge");m(g,D,F,"★","\\bigstar");m(g,D,F,"∢","\\sphericalangle",!0);m(g,D,F,"∁","\\complement",!0);m(g,D,F,"ð","\\eth",!0);m(Z,v,F,"ð","ð");m(g,D,F,"╱","\\diagup");m(g,D,F,"╲","\\diagdown");m(g,D,F,"□","\\square");m(g,D,F,"□","\\Box");m(g,D,F,"◊","\\Diamond");m(g,D,F,"¥","\\yen",!0);m(Z,D,F,"¥","\\yen",!0);m(g,D,F,"✓","\\checkmark",!0);m(Z,D,F,"✓","\\checkmark");m(g,D,F,"ℶ","\\beth",!0);m(g,D,F,"ℸ","\\daleth",!0);m(g,D,F,"ℷ","\\gimel",!0);m(g,D,F,"ϝ","\\digamma",!0);m(g,D,F,"ϰ","\\varkappa");m(g,D,mn,"┌","\\@ulcorner",!0);m(g,D,Xt,"┐","\\@urcorner",!0);m(g,D,mn,"└","\\@llcorner",!0);m(g,D,Xt,"┘","\\@lrcorner",!0);m(g,D,L,"≦","\\leqq",!0);m(g,D,L,"⩽","\\leqslant",!0);m(g,D,L,"⪕","\\eqslantless",!0);m(g,D,L,"≲","\\lesssim",!0);m(g,D,L,"⪅","\\lessapprox",!0);m(g,D,L,"≊","\\approxeq",!0);m(g,D,he,"⋖","\\lessdot");m(g,D,L,"⋘","\\lll",!0);m(g,D,L,"≶","\\lessgtr",!0);m(g,D,L,"⋚","\\lesseqgtr",!0);m(g,D,L,"⪋","\\lesseqqgtr",!0);m(g,D,L,"≑","\\doteqdot");m(g,D,L,"≓","\\risingdotseq",!0);m(g,D,L,"≒","\\fallingdotseq",!0);m(g,D,L,"∽","\\backsim",!0);m(g,D,L,"⋍","\\backsimeq",!0);m(g,D,L,"⫅","\\subseteqq",!0);m(g,D,L,"⋐","\\Subset",!0);m(g,D,L,"⊏","\\sqsubset",!0);m(g,D,L,"≼","\\preccurlyeq",!0);m(g,D,L,"⋞","\\curlyeqprec",!0);m(g,D,L,"≾","\\precsim",!0);m(g,D,L,"⪷","\\precapprox",!0);m(g,D,L,"⊲","\\vartriangleleft");m(g,D,L,"⊴","\\trianglelefteq");m(g,D,L,"⊨","\\vDash",!0);m(g,D,L,"⊪","\\Vvdash",!0);m(g,D,L,"⌣","\\smallsmile");m(g,D,L,"⌢","\\smallfrown");m(g,D,L,"≏","\\bumpeq",!0);m(g,D,L,"≎","\\Bumpeq",!0);m(g,D,L,"≧","\\geqq",!0);m(g,D,L,"⩾","\\geqslant",!0);m(g,D,L,"⪖","\\eqslantgtr",!0);m(g,D,L,"≳","\\gtrsim",!0);m(g,D,L,"⪆","\\gtrapprox",!0);m(g,D,he,"⋗","\\gtrdot");m(g,D,L,"⋙","\\ggg",!0);m(g,D,L,"≷","\\gtrless",!0);m(g,D,L,"⋛","\\gtreqless",!0);m(g,D,L,"⪌","\\gtreqqless",!0);m(g,D,L,"≖","\\eqcirc",!0);m(g,D,L,"≗","\\circeq",!0);m(g,D,L,"≜","\\triangleq",!0);m(g,D,L,"∼","\\thicksim");m(g,D,L,"≈","\\thickapprox");m(g,D,L,"⫆","\\supseteqq",!0);m(g,D,L,"⋑","\\Supset",!0);m(g,D,L,"⊐","\\sqsupset",!0);m(g,D,L,"≽","\\succcurlyeq",!0);m(g,D,L,"⋟","\\curlyeqsucc",!0);m(g,D,L,"≿","\\succsim",!0);m(g,D,L,"⪸","\\succapprox",!0);m(g,D,L,"⊳","\\vartriangleright");m(g,D,L,"⊵","\\trianglerighteq");m(g,D,L,"⊩","\\Vdash",!0);m(g,D,L,"∣","\\shortmid");m(g,D,L,"∥","\\shortparallel");m(g,D,L,"≬","\\between",!0);m(g,D,L,"⋔","\\pitchfork",!0);m(g,D,L,"∝","\\varpropto");m(g,D,L,"◀","\\blacktriangleleft");m(g,D,L,"∴","\\therefore",!0);m(g,D,L,"∍","\\backepsilon");m(g,D,L,"▶","\\blacktriangleright");m(g,D,L,"∵","\\because",!0);m(g,D,L,"⋘","\\llless");m(g,D,L,"⋙","\\gggtr");m(g,D,he,"⊲","\\lhd");m(g,D,he,"⊳","\\rhd");m(g,D,L,"≂","\\eqsim",!0);m(g,v,L,"⋈","\\Join");m(g,D,L,"≑","\\Doteq",!0);m(g,D,he,"∔","\\dotplus",!0);m(g,D,he,"∖","\\smallsetminus");m(g,D,he,"⋒","\\Cap",!0);m(g,D,he,"⋓","\\Cup",!0);m(g,D,he,"⩞","\\doublebarwedge",!0);m(g,D,he,"⊟","\\boxminus",!0);m(g,D,he,"⊞","\\boxplus",!0);m(g,D,he,"⋇","\\divideontimes",!0);m(g,D,he,"⋉","\\ltimes",!0);m(g,D,he,"⋊","\\rtimes",!0);m(g,D,he,"⋋","\\leftthreetimes",!0);m(g,D,he,"⋌","\\rightthreetimes",!0);m(g,D,he,"⋏","\\curlywedge",!0);m(g,D,he,"⋎","\\curlyvee",!0);m(g,D,he,"⊝","\\circleddash",!0);m(g,D,he,"⊛","\\circledast",!0);m(g,D,he,"⋅","\\centerdot");m(g,D,he,"⊺","\\intercal",!0);m(g,D,he,"⋒","\\doublecap");m(g,D,he,"⋓","\\doublecup");m(g,D,he,"⊠","\\boxtimes",!0);m(g,D,L,"⇢","\\dashrightarrow",!0);m(g,D,L,"⇠","\\dashleftarrow",!0);m(g,D,L,"⇇","\\leftleftarrows",!0);m(g,D,L,"⇆","\\leftrightarrows",!0);m(g,D,L,"⇚","\\Lleftarrow",!0);m(g,D,L,"↞","\\twoheadleftarrow",!0);m(g,D,L,"↢","\\leftarrowtail",!0);m(g,D,L,"↫","\\looparrowleft",!0);m(g,D,L,"⇋","\\leftrightharpoons",!0);m(g,D,L,"↶","\\curvearrowleft",!0);m(g,D,L,"↺","\\circlearrowleft",!0);m(g,D,L,"↰","\\Lsh",!0);m(g,D,L,"⇈","\\upuparrows",!0);m(g,D,L,"↿","\\upharpoonleft",!0);m(g,D,L,"⇃","\\downharpoonleft",!0);m(g,v,L,"⊶","\\origof",!0);m(g,v,L,"⊷","\\imageof",!0);m(g,D,L,"⊸","\\multimap",!0);m(g,D,L,"↭","\\leftrightsquigarrow",!0);m(g,D,L,"⇉","\\rightrightarrows",!0);m(g,D,L,"⇄","\\rightleftarrows",!0);m(g,D,L,"↠","\\twoheadrightarrow",!0);m(g,D,L,"↣","\\rightarrowtail",!0);m(g,D,L,"↬","\\looparrowright",!0);m(g,D,L,"↷","\\curvearrowright",!0);m(g,D,L,"↻","\\circlearrowright",!0);m(g,D,L,"↱","\\Rsh",!0);m(g,D,L,"⇊","\\downdownarrows",!0);m(g,D,L,"↾","\\upharpoonright",!0);m(g,D,L,"⇂","\\downharpoonright",!0);m(g,D,L,"⇝","\\rightsquigarrow",!0);m(g,D,L,"⇝","\\leadsto");m(g,D,L,"⇛","\\Rrightarrow",!0);m(g,D,L,"↾","\\restriction");m(g,v,F,"‘","`");m(g,v,F,"$","\\$");m(Z,v,F,"$","\\$");m(Z,v,F,"$","\\textdollar");m(g,v,F,"%","\\%");m(Z,v,F,"%","\\%");m(g,v,F,"_","\\_");m(Z,v,F,"_","\\_");m(Z,v,F,"_","\\textunderscore");m(g,v,F,"∠","\\angle",!0);m(g,v,F,"∞","\\infty",!0);m(g,v,F,"′","\\prime");m(g,v,F,"△","\\triangle");m(g,v,F,"Γ","\\Gamma",!0);m(g,v,F,"Δ","\\Delta",!0);m(g,v,F,"Θ","\\Theta",!0);m(g,v,F,"Λ","\\Lambda",!0);m(g,v,F,"Ξ","\\Xi",!0);m(g,v,F,"Π","\\Pi",!0);m(g,v,F,"Σ","\\Sigma",!0);m(g,v,F,"Υ","\\Upsilon",!0);m(g,v,F,"Φ","\\Phi",!0);m(g,v,F,"Ψ","\\Psi",!0);m(g,v,F,"Ω","\\Omega",!0);m(g,v,F,"A","Α");m(g,v,F,"B","Β");m(g,v,F,"E","Ε");m(g,v,F,"Z","Ζ");m(g,v,F,"H","Η");m(g,v,F,"I","Ι");m(g,v,F,"K","Κ");m(g,v,F,"M","Μ");m(g,v,F,"N","Ν");m(g,v,F,"O","Ο");m(g,v,F,"P","Ρ");m(g,v,F,"T","Τ");m(g,v,F,"X","Χ");m(g,v,F,"¬","\\neg",!0);m(g,v,F,"¬","\\lnot");m(g,v,F,"⊤","\\top");m(g,v,F,"⊥","\\bot");m(g,v,F,"∅","\\emptyset");m(g,D,F,"∅","\\varnothing");m(g,v,be,"α","\\alpha",!0);m(g,v,be,"β","\\beta",!0);m(g,v,be,"γ","\\gamma",!0);m(g,v,be,"δ","\\delta",!0);m(g,v,be,"ϵ","\\epsilon",!0);m(g,v,be,"ζ","\\zeta",!0);m(g,v,be,"η","\\eta",!0);m(g,v,be,"θ","\\theta",!0);m(g,v,be,"ι","\\iota",!0);m(g,v,be,"κ","\\kappa",!0);m(g,v,be,"λ","\\lambda",!0);m(g,v,be,"μ","\\mu",!0);m(g,v,be,"ν","\\nu",!0);m(g,v,be,"ξ","\\xi",!0);m(g,v,be,"ο","\\omicron",!0);m(g,v,be,"π","\\pi",!0);m(g,v,be,"ρ","\\rho",!0);m(g,v,be,"σ","\\sigma",!0);m(g,v,be,"τ","\\tau",!0);m(g,v,be,"υ","\\upsilon",!0);m(g,v,be,"ϕ","\\phi",!0);m(g,v,be,"χ","\\chi",!0);m(g,v,be,"ψ","\\psi",!0);m(g,v,be,"ω","\\omega",!0);m(g,v,be,"ε","\\varepsilon",!0);m(g,v,be,"ϑ","\\vartheta",!0);m(g,v,be,"ϖ","\\varpi",!0);m(g,v,be,"ϱ","\\varrho",!0);m(g,v,be,"ς","\\varsigma",!0);m(g,v,be,"φ","\\varphi",!0);m(g,v,he,"∗","*",!0);m(g,v,he,"+","+");m(g,v,he,"−","-",!0);m(g,v,he,"⋅","\\cdot",!0);m(g,v,he,"∘","\\circ",!0);m(g,v,he,"÷","\\div",!0);m(g,v,he,"±","\\pm",!0);m(g,v,he,"×","\\times",!0);m(g,v,he,"∩","\\cap",!0);m(g,v,he,"∪","\\cup",!0);m(g,v,he,"∖","\\setminus",!0);m(g,v,he,"∧","\\land");m(g,v,he,"∨","\\lor");m(g,v,he,"∧","\\wedge",!0);m(g,v,he,"∨","\\vee",!0);m(g,v,F,"√","\\surd");m(g,v,mn,"⟨","\\langle",!0);m(g,v,mn,"∣","\\lvert");m(g,v,mn,"∥","\\lVert");m(g,v,Xt,"?","?");m(g,v,Xt,"!","!");m(g,v,Xt,"⟩","\\rangle",!0);m(g,v,Xt,"∣","\\rvert");m(g,v,Xt,"∥","\\rVert");m(g,v,L,"=","=");m(g,v,L,":",":");m(g,v,L,"≈","\\approx",!0);m(g,v,L,"≅","\\cong",!0);m(g,v,L,"≥","\\ge");m(g,v,L,"≥","\\geq",!0);m(g,v,L,"←","\\gets");m(g,v,L,">","\\gt",!0);m(g,v,L,"∈","\\in",!0);m(g,v,L,"","\\@not");m(g,v,L,"⊂","\\subset",!0);m(g,v,L,"⊃","\\supset",!0);m(g,v,L,"⊆","\\subseteq",!0);m(g,v,L,"⊇","\\supseteq",!0);m(g,D,L,"⊈","\\nsubseteq",!0);m(g,D,L,"⊉","\\nsupseteq",!0);m(g,v,L,"⊨","\\models");m(g,v,L,"←","\\leftarrow",!0);m(g,v,L,"≤","\\le");m(g,v,L,"≤","\\leq",!0);m(g,v,L,"<","\\lt",!0);m(g,v,L,"→","\\rightarrow",!0);m(g,v,L,"→","\\to");m(g,D,L,"≱","\\ngeq",!0);m(g,D,L,"≰","\\nleq",!0);m(g,v,pr," ","\\ ");m(g,v,pr," ","\\space");m(g,v,pr," ","\\nobreakspace");m(Z,v,pr," ","\\ ");m(Z,v,pr," "," ");m(Z,v,pr," ","\\space");m(Z,v,pr," ","\\nobreakspace");m(g,v,pr,null,"\\nobreak");m(g,v,pr,null,"\\allowbreak");m(g,v,Ro,",",",");m(g,v,Ro,";",";");m(g,D,he,"⊼","\\barwedge",!0);m(g,D,he,"⊻","\\veebar",!0);m(g,v,he,"⊙","\\odot",!0);m(g,v,he,"⊕","\\oplus",!0);m(g,v,he,"⊗","\\otimes",!0);m(g,v,F,"∂","\\partial",!0);m(g,v,he,"⊘","\\oslash",!0);m(g,D,he,"⊚","\\circledcirc",!0);m(g,D,he,"⊡","\\boxdot",!0);m(g,v,he,"△","\\bigtriangleup");m(g,v,he,"▽","\\bigtriangledown");m(g,v,he,"†","\\dagger");m(g,v,he,"⋄","\\diamond");m(g,v,he,"⋆","\\star");m(g,v,he,"◃","\\triangleleft");m(g,v,he,"▹","\\triangleright");m(g,v,mn,"{","\\{");m(Z,v,F,"{","\\{");m(Z,v,F,"{","\\textbraceleft");m(g,v,Xt,"}","\\}");m(Z,v,F,"}","\\}");m(Z,v,F,"}","\\textbraceright");m(g,v,mn,"{","\\lbrace");m(g,v,Xt,"}","\\rbrace");m(g,v,mn,"[","\\lbrack",!0);m(Z,v,F,"[","\\lbrack",!0);m(g,v,Xt,"]","\\rbrack",!0);m(Z,v,F,"]","\\rbrack",!0);m(g,v,mn,"(","\\lparen",!0);m(g,v,Xt,")","\\rparen",!0);m(Z,v,F,"<","\\textless",!0);m(Z,v,F,">","\\textgreater",!0);m(g,v,mn,"⌊","\\lfloor",!0);m(g,v,Xt,"⌋","\\rfloor",!0);m(g,v,mn,"⌈","\\lceil",!0);m(g,v,Xt,"⌉","\\rceil",!0);m(g,v,F,"\\","\\backslash");m(g,v,F,"∣","|");m(g,v,F,"∣","\\vert");m(Z,v,F,"|","\\textbar",!0);m(g,v,F,"∥","\\|");m(g,v,F,"∥","\\Vert");m(Z,v,F,"∥","\\textbardbl");m(Z,v,F,"~","\\textasciitilde");m(Z,v,F,"\\","\\textbackslash");m(Z,v,F,"^","\\textasciicircum");m(g,v,L,"↑","\\uparrow",!0);m(g,v,L,"⇑","\\Uparrow",!0);m(g,v,L,"↓","\\downarrow",!0);m(g,v,L,"⇓","\\Downarrow",!0);m(g,v,L,"↕","\\updownarrow",!0);m(g,v,L,"⇕","\\Updownarrow",!0);m(g,v,Lt,"∐","\\coprod");m(g,v,Lt,"⋁","\\bigvee");m(g,v,Lt,"⋀","\\bigwedge");m(g,v,Lt,"⨄","\\biguplus");m(g,v,Lt,"⋂","\\bigcap");m(g,v,Lt,"⋃","\\bigcup");m(g,v,Lt,"∫","\\int");m(g,v,Lt,"∫","\\intop");m(g,v,Lt,"∬","\\iint");m(g,v,Lt,"∭","\\iiint");m(g,v,Lt,"∏","\\prod");m(g,v,Lt,"∑","\\sum");m(g,v,Lt,"⨂","\\bigotimes");m(g,v,Lt,"⨁","\\bigoplus");m(g,v,Lt,"⨀","\\bigodot");m(g,v,Lt,"∮","\\oint");m(g,v,Lt,"∯","\\oiint");m(g,v,Lt,"∰","\\oiiint");m(g,v,Lt,"⨆","\\bigsqcup");m(g,v,Lt,"∫","\\smallint");m(Z,v,Fi,"…","\\textellipsis");m(g,v,Fi,"…","\\mathellipsis");m(Z,v,Fi,"…","\\ldots",!0);m(g,v,Fi,"…","\\ldots",!0);m(g,v,Fi,"⋯","\\@cdots",!0);m(g,v,Fi,"⋱","\\ddots",!0);m(g,v,F,"⋮","\\varvdots");m(Z,v,F,"⋮","\\varvdots");m(g,v,ct,"ˊ","\\acute");m(g,v,ct,"ˋ","\\grave");m(g,v,ct,"¨","\\ddot");m(g,v,ct,"~","\\tilde");m(g,v,ct,"ˉ","\\bar");m(g,v,ct,"˘","\\breve");m(g,v,ct,"ˇ","\\check");m(g,v,ct,"^","\\hat");m(g,v,ct,"⃗","\\vec");m(g,v,ct,"˙","\\dot");m(g,v,ct,"˚","\\mathring");m(g,v,be,"","\\@imath");m(g,v,be,"","\\@jmath");m(g,v,F,"ı","ı");m(g,v,F,"ȷ","ȷ");m(Z,v,F,"ı","\\i",!0);m(Z,v,F,"ȷ","\\j",!0);m(Z,v,F,"ß","\\ss",!0);m(Z,v,F,"æ","\\ae",!0);m(Z,v,F,"œ","\\oe",!0);m(Z,v,F,"ø","\\o",!0);m(Z,v,F,"Æ","\\AE",!0);m(Z,v,F,"Œ","\\OE",!0);m(Z,v,F,"Ø","\\O",!0);m(Z,v,ct,"ˊ","\\'");m(Z,v,ct,"ˋ","\\`");m(Z,v,ct,"ˆ","\\^");m(Z,v,ct,"˜","\\~");m(Z,v,ct,"ˉ","\\=");m(Z,v,ct,"˘","\\u");m(Z,v,ct,"˙","\\.");m(Z,v,ct,"¸","\\c");m(Z,v,ct,"˚","\\r");m(Z,v,ct,"ˇ","\\v");m(Z,v,ct,"¨",'\\"');m(Z,v,ct,"˝","\\H");m(Z,v,ct,"◯","\\textcircled");var g4={"--":!0,"---":!0,"``":!0,"''":!0};m(Z,v,F,"–","--",!0);m(Z,v,F,"–","\\textendash");m(Z,v,F,"—","---",!0);m(Z,v,F,"—","\\textemdash");m(Z,v,F,"‘","`",!0);m(Z,v,F,"‘","\\textquoteleft");m(Z,v,F,"’","'",!0);m(Z,v,F,"’","\\textquoteright");m(Z,v,F,"“","``",!0);m(Z,v,F,"“","\\textquotedblleft");m(Z,v,F,"”","''",!0);m(Z,v,F,"”","\\textquotedblright");m(g,v,F,"°","\\degree",!0);m(Z,v,F,"°","\\degree");m(Z,v,F,"°","\\textdegree",!0);m(g,v,F,"£","\\pounds");m(g,v,F,"£","\\mathsterling",!0);m(Z,v,F,"£","\\pounds");m(Z,v,F,"£","\\textsterling",!0);m(g,D,F,"✠","\\maltese");m(Z,D,F,"✠","\\maltese");var D1='0123456789/@."';for(var Cu=0;Cu0)return Rn(a,l,i,n,s.concat(c));if(u){var d,p;if(u==="boldsymbol"){var f=HI(a,i,n,s,r);d=f.fontName,p=[f.fontClass]}else o?(d=v4[u].fontName,p=[u]):(d=Is(u,n.fontWeight,n.fontShape),p=[u,n.fontWeight,n.fontShape]);if(Do(a,d,i).metrics)return Rn(a,d,i,n,s.concat(p));if(g4.hasOwnProperty(a)&&d.slice(0,10)==="Typewriter"){for(var b=[],T=0;T{if(Ir(e.classes)!==Ir(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},VI=e=>{for(var t=0;tn&&(n=s.height),s.depth>r&&(r=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=i},en=function(t,n,r,i){var a=new ts(t,n,r,i);return uc(a),a},b4=(e,t,n,r)=>new ts(e,t,n,r),jI=function(t,n,r){var i=en([t],[],n);return i.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),i.style.borderBottomWidth=ue(i.height),i.maxFontSize=1,i},qI=function(t,n,r,i){var a=new oc(t,n,r,i);return uc(a),a},y4=function(t){var n=new es(t);return uc(n),n},$I=function(t,n){return t instanceof es?en([],[t],n):t},WI=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],i=-n[0].shift-n[0].elem.depth,a=i,s=1;s{var n=en(["mspace"],[],t),r=ft(e,t);return n.style.marginRight=ue(r),n},Is=function(t,n,r){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return n==="textbf"&&r==="textit"?a="BoldItalic":n==="textbf"?a="Bold":n==="textit"?a="Italic":a="Regular",i+"-"+a},v4={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},T4={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},XI=function(t,n){var[r,i,a]=T4[t],s=new Nr(r),o=new cr([s],{width:ue(i),height:ue(a),style:"width:"+ue(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),u=b4(["overlay"],[o],n);return u.height=a,u.style.height=ue(a),u.style.width=ue(i),u},j={fontMap:v4,makeSymbol:Rn,mathsym:FI,makeSpan:en,makeSvgSpan:b4,makeLineSpan:jI,makeAnchor:qI,makeFragment:y4,wrapFragment:$I,makeVList:YI,makeOrd:zI,makeGlue:GI,staticSvg:XI,svgData:T4,tryCombineChars:VI},ht={number:3,unit:"mu"},Hr={number:4,unit:"mu"},Jn={number:5,unit:"mu"},KI={mord:{mop:ht,mbin:Hr,mrel:Jn,minner:ht},mop:{mord:ht,mop:ht,mrel:Jn,minner:ht},mbin:{mord:Hr,mop:Hr,mopen:Hr,minner:Hr},mrel:{mord:Jn,mop:Jn,mopen:Jn,minner:Jn},mopen:{},mclose:{mop:ht,mbin:Hr,mrel:Jn,minner:ht},mpunct:{mord:ht,mop:ht,mrel:Jn,mopen:ht,mclose:ht,mpunct:ht,minner:ht},minner:{mord:ht,mop:ht,mbin:Hr,mrel:Jn,mopen:ht,mpunct:ht,minner:ht}},QI={mord:{mop:ht},mop:{mord:ht,mop:ht},mbin:{},mrel:{},mopen:{},mclose:{mop:ht},mpunct:{},minner:{mop:ht}},x4={},so={},oo={};function ce(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},u=0;u{var S=T.classes[0],y=b.classes[0];S==="mbin"&&ge.contains(JI,y)?T.classes[0]="mord":y==="mbin"&&ge.contains(ZI,S)&&(b.classes[0]="mord")},{node:d},p,f),B1(a,(b,T)=>{var S=Pl(T),y=Pl(b),w=S&&y?b.hasClass("mtight")?QI[S][y]:KI[S][y]:null;if(w)return j.makeGlue(w,l)},{node:d},p,f),a},B1=function e(t,n,r,i,a){i&&t.push(i);for(var s=0;sp=>{t.splice(d+1,0,p),s++})(s)}i&&t.pop()},E4=function(t){return t instanceof es||t instanceof oc||t instanceof ts&&t.hasClass("enclosing")?t:null},nN=function e(t,n){var r=E4(t);if(r){var i=r.children;if(i.length){if(n==="right")return e(i[i.length-1],"right");if(n==="left")return e(i[0],"left")}}return t},Pl=function(t,n){return t?(n&&(t=nN(t,n)),tN[t.classes[0]]||null):null},za=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return dr(n.concat(r))},We=function(t,n,r){if(!t)return dr();if(so[t.type]){var i=so[t.type](t,n);if(r&&n.size!==r.size){i=dr(n.sizingClasses(r),[i],n);var a=n.sizeMultiplier/r.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new re("Got group of unknown type: '"+t.type+"'")};function Ns(e,t){var n=dr(["base"],e,t),r=dr(["strut"]);return r.style.height=ue(n.height+n.depth),n.depth&&(r.style.verticalAlign=ue(-n.depth)),n.children.unshift(r),n}function Ll(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=Ot(e,t,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var a=[],s=[],o=0;o0&&(a.push(Ns(s,t)),s=[]),a.push(r[o]));s.length>0&&a.push(Ns(s,t));var l;n?(l=Ns(Ot(n,t,!0)),l.classes=["tag"],a.push(l)):i&&a.push(i);var c=dr(["katex-html"],a);if(c.setAttribute("aria-hidden","true"),l){var d=l.children[0];d.style.height=ue(c.height+c.depth),c.depth&&(d.style.verticalAlign=ue(-c.depth))}return c}function S4(e){return new es(e)}class dn{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=Ir(this.classes));for(var r=0;r0&&(t+=' class ="'+ge.escape(Ir(this.classes))+'"'),t+=">";for(var r=0;r",t}toText(){return this.children.map(t=>t.toText()).join("")}}class Hn{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return ge.escape(this.toText())}toText(){return this.text}}class rN{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",ue(this.width)),t}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var ne={MathNode:dn,TextNode:Hn,SpaceNode:rN,newDocumentFragment:S4},kn=function(t,n,r){return rt[n][t]&&rt[n][t].replace&&t.charCodeAt(0)!==55349&&!(g4.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=rt[n][t].replace),new ne.TextNode(t)},lc=function(t){return t.length===1?t[0]:new ne.MathNode("mrow",t)},cc=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var i=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathsfit")return"sans-serif-italic";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var a=t.text;if(ge.contains(["\\imath","\\jmath"],a))return null;rt[i][a]&&rt[i][a].replace&&(a=rt[i][a].replace);var s=j.fontMap[r].fontName;return sc(a,s,i)?j.fontMap[r].variant:null};function Mu(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Hn&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var n=e.children[0];return n instanceof Hn&&n.text===","}else return!1}var sn=function(t,n,r){if(t.length===1){var i=Je(t[0],n);return r&&i instanceof dn&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o=1&&(s.type==="mn"||Mu(s))){var l=u.children[0];l instanceof dn&&l.type==="mn"&&(l.children=[...s.children,...l.children],a.pop())}else if(s.type==="mi"&&s.children.length===1){var c=s.children[0];if(c instanceof Hn&&c.text==="̸"&&(u.type==="mo"||u.type==="mi"||u.type==="mn")){var d=u.children[0];d instanceof Hn&&d.text.length>0&&(d.text=d.text.slice(0,1)+"̸"+d.text.slice(1),a.pop())}}}a.push(u),s=u}return a},Mr=function(t,n,r){return lc(sn(t,n,r))},Je=function(t,n){if(!t)return new ne.MathNode("mrow");if(oo[t.type]){var r=oo[t.type](t,n);return r}else throw new re("Got group of unknown type: '"+t.type+"'")};function F1(e,t,n,r,i){var a=sn(e,n),s;a.length===1&&a[0]instanceof dn&&ge.contains(["mrow","mtable"],a[0].type)?s=a[0]:s=new ne.MathNode("mrow",a);var o=new ne.MathNode("annotation",[new ne.TextNode(t)]);o.setAttribute("encoding","application/x-tex");var u=new ne.MathNode("semantics",[s,o]),l=new ne.MathNode("math",[u]);l.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&l.setAttribute("display","block");var c=i?"katex":"katex-mathml";return j.makeSpan([c],[l])}var w4=function(t){return new er({style:t.displayMode?ye.DISPLAY:ye.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},A4=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=j.makeSpan(r,[t])}return t},iN=function(t,n,r){var i=w4(r),a;if(r.output==="mathml")return F1(t,n,i,r.displayMode,!0);if(r.output==="html"){var s=Ll(t,i);a=j.makeSpan(["katex"],[s])}else{var o=F1(t,n,i,r.displayMode,!1),u=Ll(t,i);a=j.makeSpan(["katex"],[o,u])}return A4(a,r)},aN=function(t,n,r){var i=w4(r),a=Ll(t,i),s=j.makeSpan(["katex"],[a]);return A4(s,r)},sN={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},oN=function(t){var n=new ne.MathNode("mo",[new ne.TextNode(sN[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},uN={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},lN=function(t){return t.type==="ordgroup"?t.body.length:1},cN=function(t,n){function r(){var o=4e5,u=t.label.slice(1);if(ge.contains(["widehat","widecheck","widetilde","utilde"],u)){var l=t,c=lN(l.base),d,p,f;if(c>5)u==="widehat"||u==="widecheck"?(d=420,o=2364,f=.42,p=u+"4"):(d=312,o=2340,f=.34,p="tilde4");else{var b=[1,1,2,2,3,3][c];u==="widehat"||u==="widecheck"?(o=[0,1062,2364,2364,2364][b],d=[0,239,300,360,420][b],f=[0,.24,.3,.3,.36,.42][b],p=u+b):(o=[0,600,1033,2339,2340][b],d=[0,260,286,306,312][b],f=[0,.26,.286,.3,.306,.34][b],p="tilde"+b)}var T=new Nr(p),S=new cr([T],{width:"100%",height:ue(f),viewBox:"0 0 "+o+" "+d,preserveAspectRatio:"none"});return{span:j.makeSvgSpan([],[S],n),minWidth:0,height:f}}else{var y=[],w=uN[u],[x,k,M]=w,C=M/1e3,H=x.length,z,V;if(H===1){var P=w[3];z=["hide-tail"],V=[P]}else if(H===2)z=["halfarrow-left","halfarrow-right"],V=["xMinYMin","xMaxYMin"];else if(H===3)z=["brace-left","brace-center","brace-right"],V=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+H+" children.");for(var $=0;$0&&(i.style.minWidth=ue(a)),i},dN=function(t,n,r,i,a){var s,o=t.height+t.depth+r+i;if(/fbox|color|angl/.test(n)){if(s=j.makeSpan(["stretchy",n],[],a),n==="fbox"){var u=a.color&&a.getColor();u&&(s.style.borderColor=u)}}else{var l=[];/^[bx]cancel$/.test(n)&&l.push(new Rl({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&l.push(new Rl({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new cr(l,{width:"100%",height:ue(o)});s=j.makeSvgSpan([],[c],a)}return s.height=o,s.style.height=ue(o),s},hr={encloseSpan:dN,mathMLnode:oN,svgSpan:cN};function Oe(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function dc(e){var t=Po(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Po(e){return e&&(e.type==="atom"||_I.hasOwnProperty(e.type))?e:null}var hc=(e,t)=>{var n,r,i;e&&e.type==="supsub"?(r=Oe(e.base,"accent"),n=r.base,e.base=n,i=LI(We(e,t)),e.base=r):(r=Oe(e,"accent"),n=r.base);var a=We(n,t.havingCrampedStyle()),s=r.isShifty&&ge.isCharacterBox(n),o=0;if(s){var u=ge.getBaseElem(n),l=We(u,t.havingCrampedStyle());o=R1(l).skew}var c=r.label==="\\c",d=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),p;if(r.isStretchy)p=hr.svgSpan(r,t),p=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:p,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+ue(2*o)+")",marginLeft:ue(2*o)}:void 0}]},t);else{var f,b;r.label==="\\vec"?(f=j.staticSvg("vec",t),b=j.svgData.vec[1]):(f=j.makeOrd({mode:r.mode,text:r.label},t,"textord"),f=R1(f),f.italic=0,b=f.width,c&&(d+=f.depth)),p=j.makeSpan(["accent-body"],[f]);var T=r.label==="\\textcircled";T&&(p.classes.push("accent-full"),d=a.height);var S=o;T||(S-=b/2),p.style.left=ue(S),r.label==="\\textcircled"&&(p.style.top=".2em"),p=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-d},{type:"elem",elem:p}]},t)}var y=j.makeSpan(["mord","accent"],[p],t);return i?(i.children[0]=y,i.height=Math.max(y.height,i.height),i.classes[0]="mord",i):y},C4=(e,t)=>{var n=e.isStretchy?hr.mathMLnode(e.label):new ne.MathNode("mo",[kn(e.label,e.mode)]),r=new ne.MathNode("mover",[Je(e.base,t),n]);return r.setAttribute("accent","true"),r},hN=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));ce({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=uo(t[0]),r=!hN.test(e.funcName),i=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:hc,mathmlBuilder:C4});ce({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:hc,mathmlBuilder:C4});ce({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=We(e.base,t),r=hr.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,a=j.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return j.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var n=hr.mathMLnode(e.label),r=new ne.MathNode("munder",[Je(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var Ms=e=>{var t=new ne.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ce({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=j.wrapFragment(We(e.body,r,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;e.below&&(r=t.havingStyle(n.sub()),s=j.wrapFragment(We(e.below,r,t),t),s.classes.push(a+"-arrow-pad"));var o=hr.svgSpan(e,t),u=-t.fontMetrics().axisHeight+.5*o.height,l=-t.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(l-=i.depth);var c;if(s){var d=-t.fontMetrics().axisHeight+s.height+.5*o.height+.111;c=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:o,shift:u},{type:"elem",elem:s,shift:d}]},t)}else c=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:o,shift:u}]},t);return c.children[0].children[0].children[1].classes.push("svg-align"),j.makeSpan(["mrel","x-arrow"],[c],t)},mathmlBuilder(e,t){var n=hr.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var i=Ms(Je(e.body,t));if(e.below){var a=Ms(Je(e.below,t));r=new ne.MathNode("munderover",[n,a,i])}else r=new ne.MathNode("mover",[n,i])}else if(e.below){var s=Ms(Je(e.below,t));r=new ne.MathNode("munder",[n,s])}else r=Ms(),r=new ne.MathNode("mover",[n,r]);return r}});var fN=j.makeSpan;function k4(e,t){var n=Ot(e.body,t,!0);return fN([e.mclass],n,t)}function I4(e,t){var n,r=sn(e.body,t);return e.mclass==="minner"?n=new ne.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new ne.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new ne.MathNode("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}ce({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:It(i),isCharacterBox:ge.isCharacterBox(i)}},htmlBuilder:k4,mathmlBuilder:I4});var Lo=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};ce({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:Lo(t[0]),body:It(t[1]),isCharacterBox:ge.isCharacterBox(t[1])}}});ce({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],s;r!=="\\stackrel"?s=Lo(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:It(i)},u={type:"supsub",mode:a.mode,base:o,sup:r==="\\underset"?null:a,sub:r==="\\underset"?a:null};return{type:"mclass",mode:n.mode,mclass:s,body:[u],isCharacterBox:ge.isCharacterBox(u)}},htmlBuilder:k4,mathmlBuilder:I4});ce({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:Lo(t[0]),body:It(t[0])}},htmlBuilder(e,t){var n=Ot(e.body,t,!0),r=j.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=sn(e.body,t),r=new ne.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var pN={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},H1=()=>({type:"styling",body:[],mode:"math",style:"display"}),z1=e=>e.type==="textord"&&e.text==="@",mN=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function gN(e,t,n){var r=pN[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=n.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:r,mode:"math",family:"rel"},s=n.callFunction("\\Big",[a],[]),o=n.callFunction("\\\\cdright",[t[1]],[]),u={type:"ordgroup",mode:"math",body:[i,s,o]};return n.callFunction("\\\\cdparent",[u],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var l={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[l],[])}default:return{type:"textord",text:" ",mode:"math"}}}function bN(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new re("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],i=[r],a=0;a-1))if("<>AV".indexOf(l)>-1)for(var d=0;d<2;d++){for(var p=!0,f=u+1;fAV=|." after @',s[u]);var b=gN(l,c,e),T={type:"styling",body:[b],mode:"math",style:"display"};r.push(T),o=H1()}a%2===0?r.push(o):r.shift(),r=[],i.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var S=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:S,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}ce({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=j.wrapFragment(We(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=ue(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new ne.MathNode("mrow",[Je(e.label,t)]);return n=new ne.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new ne.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});ce({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=j.wrapFragment(We(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new ne.MathNode("mrow",[Je(e.fragment,t)])}});ce({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=Oe(t[0],"ordgroup"),i=r.body,a="",s=0;s=1114111)throw new re("\\@char with invalid code point "+a);return u<=65535?l=String.fromCharCode(u):(u-=65536,l=String.fromCharCode((u>>10)+55296,(u&1023)+56320)),{type:"textord",mode:n.mode,text:l}}});var N4=(e,t)=>{var n=Ot(e.body,t.withColor(e.color),!1);return j.makeFragment(n)},M4=(e,t)=>{var n=sn(e.body,t.withColor(e.color)),r=new ne.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};ce({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=Oe(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:It(i)}},htmlBuilder:N4,mathmlBuilder:M4});ce({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=Oe(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:N4,mathmlBuilder:M4});ce({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:a,size:i&&Oe(i,"size").value}},htmlBuilder(e,t){var n=j.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=ue(ft(e.size,t)))),n},mathmlBuilder(e,t){var n=new ne.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",ue(ft(e.size,t)))),n}});var Ol={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},R4=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new re("Expected a control sequence",e);return t},yN=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},D4=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i==null&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};ce({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(Ol[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=Ol[r.text]),Oe(t.parseFunction(),"internal");throw new re("Invalid token after macro prefix",r)}});ce({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new re("Expected a control sequence",r);for(var a=0,s,o=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),o[a].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new re('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==a+1)throw new re('Argument number "'+r.text+'" out of order');a++,o.push([])}else{if(r.text==="EOF")throw new re("Expected a macro definition");o[a].push(r.text)}var{tokens:u}=t.gullet.consumeArg();return s&&u.unshift(s),(n==="\\edef"||n==="\\xdef")&&(u=t.gullet.expandTokens(u),u.reverse()),t.gullet.macros.set(i,{tokens:u,numArgs:a,delimiters:o},n===Ol[n]),{type:"internal",mode:t.mode}}});ce({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=R4(t.gullet.popToken());t.gullet.consumeSpaces();var i=yN(t);return D4(t,r,i,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});ce({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=R4(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return D4(t,r,a,n==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var sa=function(t,n,r){var i=rt.math[t]&&rt.math[t].replace,a=sc(i||t,n,r);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return a},fc=function(t,n,r,i){var a=r.havingBaseStyle(n),s=j.makeSpan(i.concat(a.sizingClasses(r)),[t],r),o=a.sizeMultiplier/r.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},P4=function(t,n,r){var i=n.havingBaseStyle(r),a=(1-n.sizeMultiplier/i.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=ue(a),t.height-=a,t.depth+=a},vN=function(t,n,r,i,a,s){var o=j.makeSymbol(t,"Main-Regular",a,i),u=fc(o,n,i,s);return r&&P4(u,i,n),u},TN=function(t,n,r,i){return j.makeSymbol(t,"Size"+n+"-Regular",r,i)},L4=function(t,n,r,i,a,s){var o=TN(t,n,a,i),u=fc(j.makeSpan(["delimsizing","size"+n],[o],i),ye.TEXT,i,s);return r&&P4(u,i,ye.TEXT),u},Ru=function(t,n,r){var i;n==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=j.makeSpan(["delimsizinginner",i],[j.makeSpan([],[j.makeSymbol(t,n,r)])]);return{type:"elem",elem:a}},Du=function(t,n,r){var i=Fn["Size4-Regular"][t.charCodeAt(0)]?Fn["Size4-Regular"][t.charCodeAt(0)][4]:Fn["Size1-Regular"][t.charCodeAt(0)][4],a=new Nr("inner",AI(t,Math.round(1e3*n))),s=new cr([a],{width:ue(i),height:ue(n),style:"width:"+ue(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),o=j.makeSvgSpan([],[s],r);return o.height=n,o.style.height=ue(n),o.style.width=ue(i),{type:"elem",elem:o}},_l=.008,Rs={type:"kern",size:-1*_l},xN=["|","\\lvert","\\rvert","\\vert"],EN=["\\|","\\lVert","\\rVert","\\Vert"],O4=function(t,n,r,i,a,s){var o,u,l,c,d="",p=0;o=l=c=t,u=null;var f="Size1-Regular";t==="\\uparrow"?l=c="⏐":t==="\\Uparrow"?l=c="‖":t==="\\downarrow"?o=l="⏐":t==="\\Downarrow"?o=l="‖":t==="\\updownarrow"?(o="\\uparrow",l="⏐",c="\\downarrow"):t==="\\Updownarrow"?(o="\\Uparrow",l="‖",c="\\Downarrow"):ge.contains(xN,t)?(l="∣",d="vert",p=333):ge.contains(EN,t)?(l="∥",d="doublevert",p=556):t==="["||t==="\\lbrack"?(o="⎡",l="⎢",c="⎣",f="Size4-Regular",d="lbrack",p=667):t==="]"||t==="\\rbrack"?(o="⎤",l="⎥",c="⎦",f="Size4-Regular",d="rbrack",p=667):t==="\\lfloor"||t==="⌊"?(l=o="⎢",c="⎣",f="Size4-Regular",d="lfloor",p=667):t==="\\lceil"||t==="⌈"?(o="⎡",l=c="⎢",f="Size4-Regular",d="lceil",p=667):t==="\\rfloor"||t==="⌋"?(l=o="⎥",c="⎦",f="Size4-Regular",d="rfloor",p=667):t==="\\rceil"||t==="⌉"?(o="⎤",l=c="⎥",f="Size4-Regular",d="rceil",p=667):t==="("||t==="\\lparen"?(o="⎛",l="⎜",c="⎝",f="Size4-Regular",d="lparen",p=875):t===")"||t==="\\rparen"?(o="⎞",l="⎟",c="⎠",f="Size4-Regular",d="rparen",p=875):t==="\\{"||t==="\\lbrace"?(o="⎧",u="⎨",c="⎩",l="⎪",f="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(o="⎫",u="⎬",c="⎭",l="⎪",f="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(o="⎧",c="⎩",l="⎪",f="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(o="⎫",c="⎭",l="⎪",f="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(o="⎧",c="⎭",l="⎪",f="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(o="⎫",c="⎩",l="⎪",f="Size4-Regular");var b=sa(o,f,a),T=b.height+b.depth,S=sa(l,f,a),y=S.height+S.depth,w=sa(c,f,a),x=w.height+w.depth,k=0,M=1;if(u!==null){var C=sa(u,f,a);k=C.height+C.depth,M=2}var H=T+x+k,z=Math.max(0,Math.ceil((n-H)/(M*y))),V=H+z*M*y,P=i.fontMetrics().axisHeight;r&&(P*=i.sizeMultiplier);var $=V/2-P,W=[];if(d.length>0){var G=V-T-x,q=Math.round(V*1e3),Y=CI(d,Math.round(G*1e3)),Q=new Nr(d,Y),ee=(p/1e3).toFixed(3)+"em",de=(q/1e3).toFixed(3)+"em",oe=new cr([Q],{width:ee,height:de,viewBox:"0 0 "+p+" "+q}),N=j.makeSvgSpan([],[oe],i);N.height=q/1e3,N.style.width=ee,N.style.height=de,W.push({type:"elem",elem:N})}else{if(W.push(Ru(c,f,a)),W.push(Rs),u===null){var Ce=V-T-x+2*_l;W.push(Du(l,Ce,i))}else{var ve=(V-T-x-k)/2+2*_l;W.push(Du(l,ve,i)),W.push(Rs),W.push(Ru(u,f,a)),W.push(Rs),W.push(Du(l,ve,i))}W.push(Rs),W.push(Ru(o,f,a))}var B=i.havingBaseStyle(ye.TEXT),xe=j.makeVList({positionType:"bottom",positionData:$,children:W},B);return fc(j.makeSpan(["delimsizing","mult"],[xe],B),ye.TEXT,i,s)},Pu=80,Lu=.08,Ou=function(t,n,r,i,a){var s=wI(t,i,r),o=new Nr(t,s),u=new cr([o],{width:"400em",height:ue(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return j.makeSvgSpan(["hide-tail"],[u],a)},SN=function(t,n){var r=n.havingBaseSizing(),i=H4("\\surd",t*r.sizeMultiplier,F4,r),a=r.sizeMultiplier,s=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),o,u=0,l=0,c=0,d;return i.type==="small"?(c=1e3+1e3*s+Pu,t<1?a=1:t<1.4&&(a=.7),u=(1+s+Lu)/a,l=(1+s)/a,o=Ou("sqrtMain",u,c,s,n),o.style.minWidth="0.853em",d=.833/a):i.type==="large"?(c=(1e3+Pu)*va[i.size],l=(va[i.size]+s)/a,u=(va[i.size]+s+Lu)/a,o=Ou("sqrtSize"+i.size,u,c,s,n),o.style.minWidth="1.02em",d=1/a):(u=t+s+Lu,l=t+s,c=Math.floor(1e3*t+s)+Pu,o=Ou("sqrtTall",u,c,s,n),o.style.minWidth="0.742em",d=1.056),o.height=l,o.style.height=ue(u),{span:o,advanceWidth:d,ruleWidth:(n.fontMetrics().sqrtRuleThickness+s)*a}},_4=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],wN=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],B4=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],va=[0,1.2,1.8,2.4,3],AN=function(t,n,r,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),ge.contains(_4,t)||ge.contains(B4,t))return L4(t,n,!1,r,i,a);if(ge.contains(wN,t))return O4(t,va[n],!1,r,i,a);throw new re("Illegal delimiter: '"+t+"'")},CN=[{type:"small",style:ye.SCRIPTSCRIPT},{type:"small",style:ye.SCRIPT},{type:"small",style:ye.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],kN=[{type:"small",style:ye.SCRIPTSCRIPT},{type:"small",style:ye.SCRIPT},{type:"small",style:ye.TEXT},{type:"stack"}],F4=[{type:"small",style:ye.SCRIPTSCRIPT},{type:"small",style:ye.SCRIPT},{type:"small",style:ye.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],IN=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},H4=function(t,n,r,i){for(var a=Math.min(2,3-i.style.size),s=a;sn)return r[s]}return r[r.length-1]},z4=function(t,n,r,i,a,s){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var o;ge.contains(B4,t)?o=CN:ge.contains(_4,t)?o=F4:o=kN;var u=H4(t,n,o,i);return u.type==="small"?vN(t,u.style,r,i,a,s):u.type==="large"?L4(t,u.size,r,i,a,s):O4(t,n,r,i,a,s)},NN=function(t,n,r,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,u=901,l=5/i.fontMetrics().ptPerEm,c=Math.max(n-o,r+o),d=Math.max(c/500*u,2*c-l);return z4(t,d,!0,i,a,s)},ir={sqrtImage:SN,sizedDelim:AN,sizeToMaxHeight:va,customSizedDelim:z4,leftRightDelim:NN},U1={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},MN=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Oo(e,t){var n=Po(e);if(n&&ge.contains(MN,n.text))return n;throw n?new re("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new re("Invalid delimiter type '"+e.type+"'",e)}ce({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=Oo(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:U1[e.funcName].size,mclass:U1[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?j.makeSpan([e.mclass]):ir.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(kn(e.delim,e.mode));var n=new ne.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=ue(ir.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function V1(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ce({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new re("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Oo(t[0],e).text,color:n}}});ce({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Oo(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=Oe(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{V1(e);for(var n=Ot(e.body,t,!0,["mopen","mclose"]),r=0,i=0,a=!1,s=0;s{V1(e);var n=sn(e.body,t);if(e.left!=="."){var r=new ne.MathNode("mo",[kn(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var i=new ne.MathNode("mo",[kn(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return lc(n)}});ce({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Oo(t[0],e);if(!e.parser.leftrightDepth)throw new re("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=za(t,[]);else{n=ir.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?kn("|","text"):kn(e.delim,e.mode),r=new ne.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var pc=(e,t)=>{var n=j.wrapFragment(We(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,s=0,o=ge.isCharacterBox(e.body);if(r==="sout")a=j.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,s=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var u=ft({number:.6,unit:"pt"},t),l=ft({number:.35,unit:"ex"},t),c=t.havingBaseSizing();i=i/c.sizeMultiplier;var d=n.height+n.depth+u+l;n.style.paddingLeft=ue(d/2+u);var p=Math.floor(1e3*d*i),f=EI(p),b=new cr([new Nr("phase",f)],{width:"400em",height:ue(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});a=j.makeSvgSpan(["hide-tail"],[b],t),a.style.height=ue(d),s=n.depth+u+l}else{/cancel/.test(r)?o||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var T=0,S=0,y=0;/box/.test(r)?(y=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),T=t.fontMetrics().fboxsep+(r==="colorbox"?0:y),S=T):r==="angl"?(y=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),T=4*y,S=Math.max(0,.25-n.depth)):(T=o?.2:0,S=T),a=hr.encloseSpan(n,r,T,S,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle="solid",a.style.borderWidth=ue(y)):r==="angl"&&y!==.049&&(a.style.borderTopWidth=ue(y),a.style.borderRightWidth=ue(y)),s=n.depth+S,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var w;if(e.backgroundColor)w=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:n,shift:0}]},t);else{var x=/cancel|phase/.test(r)?["svg-align"]:[];w=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:x}]},t)}return/cancel/.test(r)&&(w.height=n.height,w.depth=n.depth),/cancel/.test(r)&&!o?j.makeSpan(["mord","cancel-lap"],[w],t):j.makeSpan(["mord"],[w],t)},mc=(e,t)=>{var n=0,r=new ne.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Je(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};ce({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=Oe(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:pc,mathmlBuilder:mc});ce({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=Oe(t[0],"color-token").color,s=Oe(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:pc,mathmlBuilder:mc});ce({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});ce({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:pc,mathmlBuilder:mc});ce({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var U4={};function Kn(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},u=0;u{var t=e.parser.settings;if(!t.displayMode)throw new re("{"+e.envName+"} can be used only in display mode.")};function gc(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function Lr(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:u,singleRow:l,emptySingleRow:c,maxNumCols:d,leqno:p}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var f=e.gullet.expandMacroAsText("\\arraystretch");if(f==null)s=1;else if(s=parseFloat(f),!s||s<0)throw new re("Invalid \\arraystretch: "+f)}e.gullet.beginGroup();var b=[],T=[b],S=[],y=[],w=u!=null?[]:void 0;function x(){u&&e.gullet.macros.set("\\@eqnsw","1",!0)}function k(){w&&(e.gullet.macros.get("\\df@tag")?(w.push(e.subparse([new Sn("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):w.push(!!u&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(x(),y.push(j1(e));;){var M=e.parseExpression(!1,l?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),M={type:"ordgroup",mode:e.mode,body:M},n&&(M={type:"styling",mode:e.mode,style:n,body:[M]}),b.push(M);var C=e.fetch().text;if(C==="&"){if(d&&b.length===d){if(l||o)throw new re("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(C==="\\end"){k(),b.length===1&&M.type==="styling"&&M.body[0].body.length===0&&(T.length>1||!c)&&T.pop(),y.length0&&(x+=.25),l.push({pos:x,isDashed:st[Nt]})}for(k(s[0]),r=0;r0&&($+=w,H<$&&(H=$),$=0)),t.addJot&&(H+=T),z.height=C,z.depth=H,x+=C,z.pos=x,x+=H+$,u[r]=z,k(s[r+1])}var W=x/2+n.fontMetrics().axisHeight,G=t.cols||[],q=[],Y,Q,ee=[];if(t.tags&&t.tags.some(st=>st))for(r=0;r=o)){var Ve=void 0;(i>0||t.hskipBeforeAndAfter)&&(Ve=ge.deflt(ve.pregap,p),Ve!==0&&(Y=j.makeSpan(["arraycolsep"],[]),Y.style.width=ue(Ve),q.push(Y)));var _e=[];for(r=0;r0){for(var Ne=j.makeLineSpan("hline",n,c),Ke=j.makeLineSpan("hdashline",n,c),Me=[{type:"elem",elem:u,shift:0}];l.length>0;){var $e=l.pop(),wt=$e.pos-W;$e.isDashed?Me.push({type:"elem",elem:Ke,shift:wt}):Me.push({type:"elem",elem:Ne,shift:wt})}u=j.makeVList({positionType:"individualShift",children:Me},n)}if(ee.length===0)return j.makeSpan(["mord"],[u],n);var dt=j.makeVList({positionType:"individualShift",children:ee},n);return dt=j.makeSpan(["tag"],[dt],n),j.makeFragment([u,dt])},RN={c:"center ",l:"left ",r:"right "},Zn=function(t,n){for(var r=[],i=new ne.MathNode("mtd",[],["mtr-glue"]),a=new ne.MathNode("mtd",[],["mml-eqn-num"]),s=0;s0){var b=t.cols,T="",S=!1,y=0,w=b.length;b[0].type==="separator"&&(p+="top ",y=1),b[b.length-1].type==="separator"&&(p+="bottom ",w-=1);for(var x=y;x0?"left ":"",p+=z[z.length-1].length>0?"right ":"";for(var V=1;V-1?"alignat":"align",a=t.envName==="split",s=Lr(t.parser,{cols:r,addJot:!0,autoTag:a?void 0:gc(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),o,u=0,l={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var c="",d=0;d0&&f&&(S=1),r[b]={type:"align",align:T,pregap:S,postgap:0}}return s.colSeparationType=f?"align":"alignat",s};Kn({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=Po(t[0]),r=n?[t[0]]:Oe(t[0],"ordgroup").body,i=r.map(function(s){var o=dc(s),u=o.text;if("lcr".indexOf(u)!==-1)return{type:"align",align:u};if(u==="|")return{type:"separator",separator:"|"};if(u===":")return{type:"separator",separator:":"};throw new re("Unknown column alignment: "+u,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Lr(e.parser,a,bc(e.envName))},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,"lcr".indexOf(n)===-1)throw new re("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var a=Lr(e.parser,r,bc(e.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=Lr(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=Po(t[0]),r=n?[t[0]]:Oe(t[0],"ordgroup").body,i=r.map(function(s){var o=dc(s),u=o.text;if("lc".indexOf(u)!==-1)return{type:"align",align:u};throw new re("Unknown column alignment: "+u,s)});if(i.length>1)throw new re("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=Lr(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new re("{subarray} can contain only one column");return a},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=Lr(e.parser,t,bc(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:j4,htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){ge.contains(["gather","gather*"],e.envName)&&_o(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:gc(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Lr(e.parser,t,"display")},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:j4,htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){_o(e);var t={autoTag:gc(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Lr(e.parser,t,"display")},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["CD"],props:{numArgs:0},handler(e){return _o(e),bN(e.parser)},htmlBuilder:Qn,mathmlBuilder:Zn});E("\\nonumber","\\gdef\\@eqnsw{0}");E("\\notag","\\nonumber");ce({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new re(e.funcName+" valid only within array environment")}});var q1=U4;ce({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!=="ordgroup")throw new re("Invalid environment name",i);for(var a="",s=0;s{var n=e.font,r=t.withFont(n);return We(e.body,r)},$4=(e,t)=>{var n=e.font,r=t.withFont(n);return Je(e.body,r)},$1={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};ce({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=uo(t[0]),a=r;return a in $1&&(a=$1[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:q4,mathmlBuilder:$4});ce({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],i=ge.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:Lo(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});ce({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,s=n.parseExpression(!0,i),o="math"+r.slice(1);return{type:"font",mode:a,font:o,body:{type:"ordgroup",mode:n.mode,body:s}}},htmlBuilder:q4,mathmlBuilder:$4});var W4=(e,t)=>{var n=t;return e==="display"?n=n.id>=ye.SCRIPT.id?n.text():ye.DISPLAY:e==="text"&&n.size===ye.DISPLAY.size?n=ye.TEXT:e==="script"?n=ye.SCRIPT:e==="scriptscript"&&(n=ye.SCRIPTSCRIPT),n},yc=(e,t)=>{var n=W4(e.size,t.style),r=n.fracNum(),i=n.fracDen(),a;a=t.havingStyle(r);var s=We(e.numer,a,t);if(e.continued){var o=8.5/t.fontMetrics().ptPerEm,u=3.5/t.fontMetrics().ptPerEm;s.height=s.height0?b=3*p:b=7*p,T=t.fontMetrics().denom1):(d>0?(f=t.fontMetrics().num2,b=p):(f=t.fontMetrics().num3,b=3*p),T=t.fontMetrics().denom2);var S;if(c){var w=t.fontMetrics().axisHeight;f-s.depth-(w+.5*d){var n=new ne.MathNode("mfrac",[Je(e.numer,t),Je(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=ft(e.barSize,t);n.setAttribute("linethickness",ue(r))}var i=W4(e.size,t.style);if(i.size!==t.style.size){n=new ne.MathNode("mstyle",[n]);var a=i.size===ye.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",a),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var s=[];if(e.leftDelim!=null){var o=new ne.MathNode("mo",[new ne.TextNode(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),s.push(o)}if(s.push(n),e.rightDelim!=null){var u=new ne.MathNode("mo",[new ne.TextNode(e.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),s.push(u)}return lc(s)}return n};ce({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],s,o=null,u=null,l="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",u=")";break;case"\\\\bracefrac":s=!1,o="\\{",u="\\}";break;case"\\\\brackfrac":s=!1,o="[",u="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":l="display";break;case"\\tfrac":case"\\tbinom":l="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:s,leftDelim:o,rightDelim:u,size:l,barSize:null}},htmlBuilder:yc,mathmlBuilder:vc});ce({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});ce({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:r}}});var W1=["display","text","script","scriptscript"],Y1=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};ce({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=uo(t[0]),s=a.type==="atom"&&a.family==="open"?Y1(a.text):null,o=uo(t[1]),u=o.type==="atom"&&o.family==="close"?Y1(o.text):null,l=Oe(t[2],"size"),c,d=null;l.isBlank?c=!0:(d=l.value,c=d.number>0);var p="auto",f=t[3];if(f.type==="ordgroup"){if(f.body.length>0){var b=Oe(f.body[0],"textord");p=W1[Number(b.text)]}}else f=Oe(f,"textord"),p=W1[Number(f.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:c,barSize:d,leftDelim:s,rightDelim:u,size:p}},htmlBuilder:yc,mathmlBuilder:vc});ce({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:Oe(t[0],"size").value,token:i}}});ce({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=oI(Oe(t[1],"infix").size),s=t[2],o=a.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:yc,mathmlBuilder:vc});var Y4=(e,t)=>{var n=t.style,r,i;e.type==="supsub"?(r=e.sup?We(e.sup,t.havingStyle(n.sup()),t):We(e.sub,t.havingStyle(n.sub()),t),i=Oe(e.base,"horizBrace")):i=Oe(e,"horizBrace");var a=We(i.base,t.havingBaseStyle(ye.DISPLAY)),s=hr.svgSpan(i,t),o;if(i.isOver?(o=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t),o.children[0].children[0].children[1].classes.push("svg-align")):(o=j.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t),o.children[0].children[0].children[0].classes.push("svg-align")),r){var u=j.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t);i.isOver?o=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:r}]},t):o=j.makeVList({positionType:"bottom",positionData:u.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:u}]},t)}return j.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t)},DN=(e,t)=>{var n=hr.mathMLnode(e.label);return new ne.MathNode(e.isOver?"mover":"munder",[Je(e.base,t),n])};ce({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:Y4,mathmlBuilder:DN});ce({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=Oe(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:It(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=Ot(e.body,t,!1);return j.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=Mr(e.body,t);return n instanceof dn||(n=new dn("mrow",[n])),n.setAttribute("href",e.href),n}});ce({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=Oe(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:n,funcName:r,token:i}=e,a=Oe(t[0],"raw").string,s=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,u={};switch(r){case"\\htmlClass":u.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":u.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":u.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var l=a.split(","),c=0;c{var n=Ot(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=j.makeSpan(r,n,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>Mr(e.body,t)});ce({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:It(t[0]),mathml:It(t[1])}},htmlBuilder:(e,t)=>{var n=Ot(e.html,t,!1);return j.makeFragment(n)},mathmlBuilder:(e,t)=>Mr(e.mathml,t)});var _u=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new re("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!h4(r))throw new re("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};ce({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(n[0])for(var u=Oe(n[0],"raw").string,l=u.split(","),c=0;c{var n=ft(e.height,t),r=0;e.totalheight.number>0&&(r=ft(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=ft(e.width,t));var a={height:ue(n+r)};i>0&&(a.width=ue(i)),r>0&&(a.verticalAlign=ue(-r));var s=new DI(e.src,e.alt,a);return s.height=n,s.depth=r,s},mathmlBuilder:(e,t)=>{var n=new ne.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=ft(e.height,t),i=0;if(e.totalheight.number>0&&(i=ft(e.totalheight,t)-r,n.setAttribute("valign",ue(-i))),n.setAttribute("height",ue(r+i)),e.width.number>0){var a=ft(e.width,t);n.setAttribute("width",ue(a))}return n.setAttribute("src",e.src),n}});ce({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=Oe(t[0],"size");if(n.settings.strict){var a=r[1]==="m",s=i.value.unit==="mu";a?(s||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):s&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return j.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=ft(e.dimension,t);return new ne.SpaceNode(n)}});ce({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=j.makeSpan([],[We(e.body,t)]),n=j.makeSpan(["inner"],[n],t)):n=j.makeSpan(["inner"],[We(e.body,t)]);var r=j.makeSpan(["fix"],[]),i=j.makeSpan([e.alignment],[n,r],t),a=j.makeSpan(["strut"]);return a.style.height=ue(i.height+i.depth),i.depth&&(a.style.verticalAlign=ue(-i.depth)),i.children.unshift(a),i=j.makeSpan(["thinbox"],[i],t),j.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var n=new ne.MathNode("mpadded",[Je(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});ce({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode("math");var a=n==="\\("?"\\)":"$",s=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:s}}});ce({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new re("Mismatched "+e.funcName)}});var G1=(e,t)=>{switch(t.style.size){case ye.DISPLAY.size:return e.display;case ye.TEXT.size:return e.text;case ye.SCRIPT.size:return e.script;case ye.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ce({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:It(t[0]),text:It(t[1]),script:It(t[2]),scriptscript:It(t[3])}},htmlBuilder:(e,t)=>{var n=G1(e,t),r=Ot(n,t,!1);return j.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=G1(e,t);return Mr(n,t)}});var G4=(e,t,n,r,i,a,s)=>{e=j.makeSpan([],[e]);var o=n&&ge.isCharacterBox(n),u,l;if(t){var c=We(t,r.havingStyle(i.sup()),r);l={elem:c,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-c.depth)}}if(n){var d=We(n,r.havingStyle(i.sub()),r);u={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var p;if(l&&u){var f=r.fontMetrics().bigOpSpacing5+u.elem.height+u.elem.depth+u.kern+e.depth+s;p=j.makeVList({positionType:"bottom",positionData:f,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:ue(-a)},{type:"kern",size:u.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:ue(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(u){var b=e.height-s;p=j.makeVList({positionType:"top",positionData:b,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:ue(-a)},{type:"kern",size:u.kern},{type:"elem",elem:e}]},r)}else if(l){var T=e.depth+s;p=j.makeVList({positionType:"bottom",positionData:T,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:ue(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var S=[p];if(u&&a!==0&&!o){var y=j.makeSpan(["mspace"],[],r);y.style.marginRight=ue(a),S.unshift(y)}return j.makeSpan(["mop","op-limits"],S,r)},X4=["\\smallint"],Hi=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=Oe(e.base,"op"),i=!0):a=Oe(e,"op");var s=t.style,o=!1;s.size===ye.DISPLAY.size&&a.symbol&&!ge.contains(X4,a.name)&&(o=!0);var u;if(a.symbol){var l=o?"Size2-Regular":"Size1-Regular",c="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(c=a.name.slice(1),a.name=c==="oiint"?"\\iint":"\\iiint"),u=j.makeSymbol(a.name,l,"math",t,["mop","op-symbol",o?"large-op":"small-op"]),c.length>0){var d=u.italic,p=j.staticSvg(c+"Size"+(o?"2":"1"),t);u=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:0},{type:"elem",elem:p,shift:o?.08:0}]},t),a.name="\\"+c,u.classes.unshift("mop"),u.italic=d}}else if(a.body){var f=Ot(a.body,t,!0);f.length===1&&f[0]instanceof Cn?(u=f[0],u.classes[0]="mop"):u=j.makeSpan(["mop"],f,t)}else{for(var b=[],T=1;T{var n;if(e.symbol)n=new dn("mo",[kn(e.name,e.mode)]),ge.contains(X4,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new dn("mo",sn(e.body,t));else{n=new dn("mi",[new Hn(e.name.slice(1))]);var r=new dn("mo",[kn("⁡","text")]);e.parentIsSupSub?n=new dn("mrow",[n,r]):n=S4([n,r])}return n},PN={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ce({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=PN[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Hi,mathmlBuilder:ns});ce({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:It(r)}},htmlBuilder:Hi,mathmlBuilder:ns});var LN={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ce({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Hi,mathmlBuilder:ns});ce({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Hi,mathmlBuilder:ns});ce({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=LN[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Hi,mathmlBuilder:ns});var K4=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=Oe(e.base,"operatorname"),i=!0):a=Oe(e,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(d=>{var p=d.text;return typeof p=="string"?{type:"textord",mode:d.mode,text:p}:d}),u=Ot(o,t.withFont("mathrm"),!0),l=0;l{for(var n=sn(e.body,t.withFont("mathrm")),r=!0,i=0;ic.toText()).join("");n=[new ne.TextNode(o)]}var u=new ne.MathNode("mi",n);u.setAttribute("mathvariant","normal");var l=new ne.MathNode("mo",[kn("⁡","text")]);return e.parentIsSupSub?new ne.MathNode("mrow",[u,l]):ne.newDocumentFragment([u,l])};ce({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"operatorname",mode:n.mode,body:It(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:K4,mathmlBuilder:ON});E("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");ti({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?j.makeFragment(Ot(e.body,t,!1)):j.makeSpan(["mord"],Ot(e.body,t,!0),t)},mathmlBuilder(e,t){return Mr(e.body,t,!0)}});ce({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=We(e.body,t.havingCrampedStyle()),r=j.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},t);return j.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){var n=new ne.MathNode("mo",[new ne.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new ne.MathNode("mover",[Je(e.body,t),n]);return r.setAttribute("accent","true"),r}});ce({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:It(r)}},htmlBuilder:(e,t)=>{var n=Ot(e.body,t.withPhantom(),!1);return j.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=sn(e.body,t);return new ne.MathNode("mphantom",n)}});ce({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=j.makeSpan([],[We(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r{var n=sn(It(e.body),t),r=new ne.MathNode("mphantom",n),i=new ne.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});ce({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=j.makeSpan(["inner"],[We(e.body,t.withPhantom())]),r=j.makeSpan(["fix"],[]);return j.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=sn(It(e.body),t),r=new ne.MathNode("mphantom",n),i=new ne.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});ce({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=Oe(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=We(e.body,t),r=ft(e.dy,t);return j.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new ne.MathNode("mpadded",[Je(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});ce({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});ce({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,i=n[0],a=Oe(t[0],"size"),s=Oe(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&Oe(i,"size").value,width:a.value,height:s.value}},htmlBuilder(e,t){var n=j.makeSpan(["mord","rule"],[],t),r=ft(e.width,t),i=ft(e.height,t),a=e.shift?ft(e.shift,t):0;return n.style.borderRightWidth=ue(r),n.style.borderTopWidth=ue(i),n.style.bottom=ue(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=ft(e.width,t),r=ft(e.height,t),i=e.shift?ft(e.shift,t):0,a=t.color&&t.getColor()||"black",s=new ne.MathNode("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",ue(n)),s.setAttribute("height",ue(r));var o=new ne.MathNode("mpadded",[s]);return i>=0?o.setAttribute("height",ue(i)):(o.setAttribute("height",ue(i)),o.setAttribute("depth",ue(-i))),o.setAttribute("voffset",ue(i)),o}});function Q4(e,t,n){for(var r=Ot(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a{var n=t.havingSize(e.size);return Q4(e.body,n,t)};ce({type:"sizing",names:X1,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:X1.indexOf(r)+1,body:a}},htmlBuilder:_N,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=sn(e.body,n),i=new ne.MathNode("mstyle",r);return i.setAttribute("mathsize",ue(n.sizeMultiplier)),i}});ce({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,s=n[0]&&Oe(n[0],"ordgroup");if(s)for(var o="",u=0;u{var n=j.makeSpan([],[We(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r{var n=new ne.MathNode("mpadded",[Je(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});ce({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=We(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=j.wrapFragment(n,t);var r=t.fontMetrics(),i=r.defaultRuleThickness,a=i;t.style.idn.height+n.depth+s&&(s=(s+d-n.height-n.depth)/2);var p=u.height-n.height-s-l;n.style.paddingLeft=ue(c);var f=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+p)},{type:"elem",elem:u},{type:"kern",size:l}]},t);if(e.index){var b=t.havingStyle(ye.SCRIPTSCRIPT),T=We(e.index,b,t),S=.6*(f.height-f.depth),y=j.makeVList({positionType:"shift",positionData:-S,children:[{type:"elem",elem:T}]},t),w=j.makeSpan(["root"],[y]);return j.makeSpan(["mord","sqrt"],[w,f],t)}else return j.makeSpan(["mord","sqrt"],[f],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new ne.MathNode("mroot",[Je(n,t),Je(r,t)]):new ne.MathNode("msqrt",[Je(n,t)])}});var K1={display:ye.DISPLAY,text:ye.TEXT,script:ye.SCRIPT,scriptscript:ye.SCRIPTSCRIPT};ce({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),s=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(e,t){var n=K1[e.style],r=t.havingStyle(n).withFont("");return Q4(e.body,r,t)},mathmlBuilder(e,t){var n=K1[e.style],r=t.havingStyle(n),i=sn(e.body,r),a=new ne.MathNode("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var BN=function(t,n){var r=t.base;if(r)if(r.type==="op"){var i=r.limits&&(n.style.size===ye.DISPLAY.size||r.alwaysHandleSupSub);return i?Hi:null}else if(r.type==="operatorname"){var a=r.alwaysHandleSupSub&&(n.style.size===ye.DISPLAY.size||r.limits);return a?K4:null}else{if(r.type==="accent")return ge.isCharacterBox(r.base)?hc:null;if(r.type==="horizBrace"){var s=!t.sub;return s===r.isOver?Y4:null}else return null}else return null};ti({type:"supsub",htmlBuilder(e,t){var n=BN(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,s=We(r,t),o,u,l=t.fontMetrics(),c=0,d=0,p=r&&ge.isCharacterBox(r);if(i){var f=t.havingStyle(t.style.sup());o=We(i,f,t),p||(c=s.height-f.fontMetrics().supDrop*f.sizeMultiplier/t.sizeMultiplier)}if(a){var b=t.havingStyle(t.style.sub());u=We(a,b,t),p||(d=s.depth+b.fontMetrics().subDrop*b.sizeMultiplier/t.sizeMultiplier)}var T;t.style===ye.DISPLAY?T=l.sup1:t.style.cramped?T=l.sup3:T=l.sup2;var S=t.sizeMultiplier,y=ue(.5/l.ptPerEm/S),w=null;if(u){var x=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(s instanceof Cn||x)&&(w=ue(-s.italic))}var k;if(o&&u){c=Math.max(c,T,o.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var M=l.defaultRuleThickness,C=4*M;if(c-o.depth-(u.height-d)0&&(c+=H,d-=H)}var z=[{type:"elem",elem:u,shift:d,marginRight:y,marginLeft:w},{type:"elem",elem:o,shift:-c,marginRight:y}];k=j.makeVList({positionType:"individualShift",children:z},t)}else if(u){d=Math.max(d,l.sub1,u.height-.8*l.xHeight);var V=[{type:"elem",elem:u,marginLeft:w,marginRight:y}];k=j.makeVList({positionType:"shift",positionData:d,children:V},t)}else if(o)c=Math.max(c,T,o.depth+.25*l.xHeight),k=j.makeVList({positionType:"shift",positionData:-c,children:[{type:"elem",elem:o,marginRight:y}]},t);else throw new Error("supsub must have either sup or sub.");var P=Pl(s,"right")||"mord";return j.makeSpan([P],[s,j.makeSpan(["msupsub"],[k])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[Je(e.base,t)];e.sub&&a.push(Je(e.sub,t)),e.sup&&a.push(Je(e.sup,t));var s;if(n)s=r?"mover":"munder";else if(e.sub)if(e.sup){var l=e.base;l&&l.type==="op"&&l.limits&&t.style===ye.DISPLAY||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(t.style===ye.DISPLAY||l.limits)?s="munderover":s="msubsup"}else{var u=e.base;u&&u.type==="op"&&u.limits&&(t.style===ye.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||t.style===ye.DISPLAY)?s="munder":s="msub"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===ye.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===ye.DISPLAY)?s="mover":s="msup"}return new ne.MathNode(s,a)}});ti({type:"atom",htmlBuilder(e,t){return j.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new ne.MathNode("mo",[kn(e.text,e.mode)]);if(e.family==="bin"){var r=cc(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var Z4={mi:"italic",mn:"normal",mtext:"normal"};ti({type:"mathord",htmlBuilder(e,t){return j.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new ne.MathNode("mi",[kn(e.text,e.mode,t)]),r=cc(e,t)||"italic";return r!==Z4[n.type]&&n.setAttribute("mathvariant",r),n}});ti({type:"textord",htmlBuilder(e,t){return j.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=kn(e.text,e.mode,t),r=cc(e,t)||"normal",i;return e.mode==="text"?i=new ne.MathNode("mtext",[n]):/[0-9]/.test(e.text)?i=new ne.MathNode("mn",[n]):e.text==="\\prime"?i=new ne.MathNode("mo",[n]):i=new ne.MathNode("mi",[n]),r!==Z4[i.type]&&i.setAttribute("mathvariant",r),i}});var Bu={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Fu={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ti({type:"spacing",htmlBuilder(e,t){if(Fu.hasOwnProperty(e.text)){var n=Fu[e.text].className||"";if(e.mode==="text"){var r=j.makeOrd(e,t,"textord");return r.classes.push(n),r}else return j.makeSpan(["mspace",n],[j.mathsym(e.text,e.mode,t)],t)}else{if(Bu.hasOwnProperty(e.text))return j.makeSpan(["mspace",Bu[e.text]],[],t);throw new re('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(Fu.hasOwnProperty(e.text))n=new ne.MathNode("mtext",[new ne.TextNode(" ")]);else{if(Bu.hasOwnProperty(e.text))return new ne.MathNode("mspace");throw new re('Unknown type of space "'+e.text+'"')}return n}});var Q1=()=>{var e=new ne.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};ti({type:"tag",mathmlBuilder(e,t){var n=new ne.MathNode("mtable",[new ne.MathNode("mtr",[Q1(),new ne.MathNode("mtd",[Mr(e.body,t)]),Q1(),new ne.MathNode("mtd",[Mr(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var Z1={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},J1={"\\textbf":"textbf","\\textmd":"textmd"},FN={"\\textit":"textit","\\textup":"textup"},ef=(e,t)=>{var n=e.font;if(n){if(Z1[n])return t.withTextFontFamily(Z1[n]);if(J1[n])return t.withTextFontWeight(J1[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(FN[n])};ce({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"text",mode:n.mode,body:It(i),font:r}},htmlBuilder(e,t){var n=ef(e,t),r=Ot(e.body,n,!0);return j.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=ef(e,t);return Mr(e.body,n)}});ce({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=We(e.body,t),r=j.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=j.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return j.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){var n=new ne.MathNode("mo",[new ne.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new ne.MathNode("munder",[Je(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});ce({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=We(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return j.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new ne.MathNode("mpadded",[Je(e.body,t)],["vcenter"])}});ce({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new re("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=tf(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?"␣":" "),Sr=x4,J4=`[ \r + ]`,HN="\\\\[a-zA-Z@]+",zN="\\\\[^\uD800-\uDFFF]",UN="("+HN+")"+J4+"*",VN=`\\\\( +|[ \r ]+ +?)[ \r ]*`,Bl="[̀-ͯ]",jN=new RegExp(Bl+"+$"),qN="("+J4+"+)|"+(VN+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(Bl+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Bl+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+UN)+("|"+zN+")");class nf{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(qN,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new Sn("EOF",new cn(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new re("Unexpected character: '"+t[n]+"'",new Sn(t[n],new cn(this,n,n+1)));var i=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(` +`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new Sn(i,new cn(this,n,this.tokenRegex.lastIndex))}}class $N{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new re("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,r){if(r===void 0&&(r=!1),r){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var WN=V4;E("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});E("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});E("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});E("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});E("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});E("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");E("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var rf={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};E("\\char",function(e){var t=e.popToken(),n,r="";if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new re("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=rf[t.text],r==null||r>=n)throw new re("Invalid base-"+n+" digit "+t.text);for(var i;(i=rf[e.future().text])!=null&&i{var i=e.consumeArg().tokens;if(i.length!==1)throw new re("\\newcommand's first argument must be a macro name");var a=i[0].text,s=e.isDefined(a);if(s&&!t)throw new re("\\newcommand{"+a+"} attempting to redefine "+(a+"; use \\renewcommand"));if(!s&&!n)throw new re("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var o=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var u="",l=e.expandNextToken();l.text!=="]"&&l.text!=="EOF";)u+=l.text,l=e.expandNextToken();if(!u.match(/^\s*[0-9]+\s*$/))throw new re("Invalid number of arguments: "+u);o=parseInt(u),i=e.consumeArg().tokens}return s&&r||e.macros.set(a,{tokens:i,numArgs:o}),""};E("\\newcommand",e=>Tc(e,!1,!0,!1));E("\\renewcommand",e=>Tc(e,!0,!1,!1));E("\\providecommand",e=>Tc(e,!0,!0,!0));E("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});E("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});E("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Sr[n],rt.math[n],rt.text[n]),""});E("\\bgroup","{");E("\\egroup","}");E("~","\\nobreakspace");E("\\lq","`");E("\\rq","'");E("\\aa","\\r a");E("\\AA","\\r A");E("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");E("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");E("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");E("ℬ","\\mathscr{B}");E("ℰ","\\mathscr{E}");E("ℱ","\\mathscr{F}");E("ℋ","\\mathscr{H}");E("ℐ","\\mathscr{I}");E("ℒ","\\mathscr{L}");E("ℳ","\\mathscr{M}");E("ℛ","\\mathscr{R}");E("ℭ","\\mathfrak{C}");E("ℌ","\\mathfrak{H}");E("ℨ","\\mathfrak{Z}");E("\\Bbbk","\\Bbb{k}");E("·","\\cdotp");E("\\llap","\\mathllap{\\textrm{#1}}");E("\\rlap","\\mathrlap{\\textrm{#1}}");E("\\clap","\\mathclap{\\textrm{#1}}");E("\\mathstrut","\\vphantom{(}");E("\\underbar","\\underline{\\text{#1}}");E("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');E("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");E("\\ne","\\neq");E("≠","\\neq");E("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");E("∉","\\notin");E("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");E("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");E("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");E("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");E("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");E("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");E("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");E("⟂","\\perp");E("‼","\\mathclose{!\\mkern-0.8mu!}");E("∌","\\notni");E("⌜","\\ulcorner");E("⌝","\\urcorner");E("⌞","\\llcorner");E("⌟","\\lrcorner");E("©","\\copyright");E("®","\\textregistered");E("️","\\textregistered");E("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');E("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');E("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');E("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');E("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");E("⋮","\\vdots");E("\\varGamma","\\mathit{\\Gamma}");E("\\varDelta","\\mathit{\\Delta}");E("\\varTheta","\\mathit{\\Theta}");E("\\varLambda","\\mathit{\\Lambda}");E("\\varXi","\\mathit{\\Xi}");E("\\varPi","\\mathit{\\Pi}");E("\\varSigma","\\mathit{\\Sigma}");E("\\varUpsilon","\\mathit{\\Upsilon}");E("\\varPhi","\\mathit{\\Phi}");E("\\varPsi","\\mathit{\\Psi}");E("\\varOmega","\\mathit{\\Omega}");E("\\substack","\\begin{subarray}{c}#1\\end{subarray}");E("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");E("\\boxed","\\fbox{$\\displaystyle{#1}$}");E("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");E("\\implies","\\DOTSB\\;\\Longrightarrow\\;");E("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");E("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");E("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var af={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};E("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in af?t=af[n]:(n.slice(0,4)==="\\not"||n in rt.math&&ge.contains(["bin","rel"],rt.math[n].group))&&(t="\\dotsb"),t});var xc={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};E("\\dotso",function(e){var t=e.future().text;return t in xc?"\\ldots\\,":"\\ldots"});E("\\dotsc",function(e){var t=e.future().text;return t in xc&&t!==","?"\\ldots\\,":"\\ldots"});E("\\cdots",function(e){var t=e.future().text;return t in xc?"\\@cdots\\,":"\\@cdots"});E("\\dotsb","\\cdots");E("\\dotsm","\\cdots");E("\\dotsi","\\!\\cdots");E("\\dotsx","\\ldots\\,");E("\\DOTSI","\\relax");E("\\DOTSB","\\relax");E("\\DOTSX","\\relax");E("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");E("\\,","\\tmspace+{3mu}{.1667em}");E("\\thinspace","\\,");E("\\>","\\mskip{4mu}");E("\\:","\\tmspace+{4mu}{.2222em}");E("\\medspace","\\:");E("\\;","\\tmspace+{5mu}{.2777em}");E("\\thickspace","\\;");E("\\!","\\tmspace-{3mu}{.1667em}");E("\\negthinspace","\\!");E("\\negmedspace","\\tmspace-{4mu}{.2222em}");E("\\negthickspace","\\tmspace-{5mu}{.277em}");E("\\enspace","\\kern.5em ");E("\\enskip","\\hskip.5em\\relax");E("\\quad","\\hskip1em\\relax");E("\\qquad","\\hskip2em\\relax");E("\\tag","\\@ifstar\\tag@literal\\tag@paren");E("\\tag@paren","\\tag@literal{({#1})}");E("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new re("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});E("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");E("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");E("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");E("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");E("\\newline","\\\\\\relax");E("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var e3=ue(Fn["Main-Regular"][84][1]-.7*Fn["Main-Regular"][65][1]);E("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+e3+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");E("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+e3+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");E("\\hspace","\\@ifstar\\@hspacer\\@hspace");E("\\@hspace","\\hskip #1\\relax");E("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");E("\\ordinarycolon",":");E("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");E("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');E("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');E("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');E("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');E("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');E("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');E("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');E("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');E("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');E("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');E("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');E("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');E("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');E("∷","\\dblcolon");E("∹","\\eqcolon");E("≔","\\coloneqq");E("≕","\\eqqcolon");E("⩴","\\Coloneqq");E("\\ratio","\\vcentcolon");E("\\coloncolon","\\dblcolon");E("\\colonequals","\\coloneqq");E("\\coloncolonequals","\\Coloneqq");E("\\equalscolon","\\eqqcolon");E("\\equalscoloncolon","\\Eqqcolon");E("\\colonminus","\\coloneq");E("\\coloncolonminus","\\Coloneq");E("\\minuscolon","\\eqcolon");E("\\minuscoloncolon","\\Eqcolon");E("\\coloncolonapprox","\\Colonapprox");E("\\coloncolonsim","\\Colonsim");E("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");E("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");E("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");E("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");E("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");E("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");E("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");E("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");E("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");E("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");E("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");E("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");E("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");E("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");E("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");E("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");E("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");E("\\nleqq","\\html@mathml{\\@nleqq}{≰}");E("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");E("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");E("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");E("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");E("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");E("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");E("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");E("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");E("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");E("\\imath","\\html@mathml{\\@imath}{ı}");E("\\jmath","\\html@mathml{\\@jmath}{ȷ}");E("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");E("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");E("⟦","\\llbracket");E("⟧","\\rrbracket");E("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");E("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");E("⦃","\\lBrace");E("⦄","\\rBrace");E("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");E("⦵","\\minuso");E("\\darr","\\downarrow");E("\\dArr","\\Downarrow");E("\\Darr","\\Downarrow");E("\\lang","\\langle");E("\\rang","\\rangle");E("\\uarr","\\uparrow");E("\\uArr","\\Uparrow");E("\\Uarr","\\Uparrow");E("\\N","\\mathbb{N}");E("\\R","\\mathbb{R}");E("\\Z","\\mathbb{Z}");E("\\alef","\\aleph");E("\\alefsym","\\aleph");E("\\Alpha","\\mathrm{A}");E("\\Beta","\\mathrm{B}");E("\\bull","\\bullet");E("\\Chi","\\mathrm{X}");E("\\clubs","\\clubsuit");E("\\cnums","\\mathbb{C}");E("\\Complex","\\mathbb{C}");E("\\Dagger","\\ddagger");E("\\diamonds","\\diamondsuit");E("\\empty","\\emptyset");E("\\Epsilon","\\mathrm{E}");E("\\Eta","\\mathrm{H}");E("\\exist","\\exists");E("\\harr","\\leftrightarrow");E("\\hArr","\\Leftrightarrow");E("\\Harr","\\Leftrightarrow");E("\\hearts","\\heartsuit");E("\\image","\\Im");E("\\infin","\\infty");E("\\Iota","\\mathrm{I}");E("\\isin","\\in");E("\\Kappa","\\mathrm{K}");E("\\larr","\\leftarrow");E("\\lArr","\\Leftarrow");E("\\Larr","\\Leftarrow");E("\\lrarr","\\leftrightarrow");E("\\lrArr","\\Leftrightarrow");E("\\Lrarr","\\Leftrightarrow");E("\\Mu","\\mathrm{M}");E("\\natnums","\\mathbb{N}");E("\\Nu","\\mathrm{N}");E("\\Omicron","\\mathrm{O}");E("\\plusmn","\\pm");E("\\rarr","\\rightarrow");E("\\rArr","\\Rightarrow");E("\\Rarr","\\Rightarrow");E("\\real","\\Re");E("\\reals","\\mathbb{R}");E("\\Reals","\\mathbb{R}");E("\\Rho","\\mathrm{P}");E("\\sdot","\\cdot");E("\\sect","\\S");E("\\spades","\\spadesuit");E("\\sub","\\subset");E("\\sube","\\subseteq");E("\\supe","\\supseteq");E("\\Tau","\\mathrm{T}");E("\\thetasym","\\vartheta");E("\\weierp","\\wp");E("\\Zeta","\\mathrm{Z}");E("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");E("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");E("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");E("\\bra","\\mathinner{\\langle{#1}|}");E("\\ket","\\mathinner{|{#1}\\rangle}");E("\\braket","\\mathinner{\\langle{#1}\\rangle}");E("\\Bra","\\left\\langle#1\\right|");E("\\Ket","\\left|#1\\right\\rangle");var t3=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,s=t.macros.get("|"),o=t.macros.get("\\|");t.macros.beginGroup();var u=d=>p=>{e&&(p.macros.set("|",s),i.length&&p.macros.set("\\|",o));var f=d;if(!d&&i.length){var b=p.future();b.text==="|"&&(p.popToken(),f=!0)}return{tokens:f?i:r,numArgs:0}};t.macros.set("|",u(!1)),i.length&&t.macros.set("\\|",u(!0));var l=t.consumeArg().tokens,c=t.expandTokens([...a,...l,...n]);return t.macros.endGroup(),{tokens:c.reverse(),numArgs:0}};E("\\bra@ket",t3(!1));E("\\bra@set",t3(!0));E("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");E("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");E("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");E("\\angln","{\\angl n}");E("\\blue","\\textcolor{##6495ed}{#1}");E("\\orange","\\textcolor{##ffa500}{#1}");E("\\pink","\\textcolor{##ff00af}{#1}");E("\\red","\\textcolor{##df0030}{#1}");E("\\green","\\textcolor{##28ae7b}{#1}");E("\\gray","\\textcolor{gray}{#1}");E("\\purple","\\textcolor{##9d38bd}{#1}");E("\\blueA","\\textcolor{##ccfaff}{#1}");E("\\blueB","\\textcolor{##80f6ff}{#1}");E("\\blueC","\\textcolor{##63d9ea}{#1}");E("\\blueD","\\textcolor{##11accd}{#1}");E("\\blueE","\\textcolor{##0c7f99}{#1}");E("\\tealA","\\textcolor{##94fff5}{#1}");E("\\tealB","\\textcolor{##26edd5}{#1}");E("\\tealC","\\textcolor{##01d1c1}{#1}");E("\\tealD","\\textcolor{##01a995}{#1}");E("\\tealE","\\textcolor{##208170}{#1}");E("\\greenA","\\textcolor{##b6ffb0}{#1}");E("\\greenB","\\textcolor{##8af281}{#1}");E("\\greenC","\\textcolor{##74cf70}{#1}");E("\\greenD","\\textcolor{##1fab54}{#1}");E("\\greenE","\\textcolor{##0d923f}{#1}");E("\\goldA","\\textcolor{##ffd0a9}{#1}");E("\\goldB","\\textcolor{##ffbb71}{#1}");E("\\goldC","\\textcolor{##ff9c39}{#1}");E("\\goldD","\\textcolor{##e07d10}{#1}");E("\\goldE","\\textcolor{##a75a05}{#1}");E("\\redA","\\textcolor{##fca9a9}{#1}");E("\\redB","\\textcolor{##ff8482}{#1}");E("\\redC","\\textcolor{##f9685d}{#1}");E("\\redD","\\textcolor{##e84d39}{#1}");E("\\redE","\\textcolor{##bc2612}{#1}");E("\\maroonA","\\textcolor{##ffbde0}{#1}");E("\\maroonB","\\textcolor{##ff92c6}{#1}");E("\\maroonC","\\textcolor{##ed5fa6}{#1}");E("\\maroonD","\\textcolor{##ca337c}{#1}");E("\\maroonE","\\textcolor{##9e034e}{#1}");E("\\purpleA","\\textcolor{##ddd7ff}{#1}");E("\\purpleB","\\textcolor{##c6b9fc}{#1}");E("\\purpleC","\\textcolor{##aa87ff}{#1}");E("\\purpleD","\\textcolor{##7854ab}{#1}");E("\\purpleE","\\textcolor{##543b78}{#1}");E("\\mintA","\\textcolor{##f5f9e8}{#1}");E("\\mintB","\\textcolor{##edf2df}{#1}");E("\\mintC","\\textcolor{##e0e5cc}{#1}");E("\\grayA","\\textcolor{##f6f7f7}{#1}");E("\\grayB","\\textcolor{##f0f1f2}{#1}");E("\\grayC","\\textcolor{##e3e5e6}{#1}");E("\\grayD","\\textcolor{##d6d8da}{#1}");E("\\grayE","\\textcolor{##babec2}{#1}");E("\\grayF","\\textcolor{##888d93}{#1}");E("\\grayG","\\textcolor{##626569}{#1}");E("\\grayH","\\textcolor{##3b3e40}{#1}");E("\\grayI","\\textcolor{##21242c}{#1}");E("\\kaBlue","\\textcolor{##314453}{#1}");E("\\kaGreen","\\textcolor{##71B307}{#1}");var n3={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class YN{constructor(t,n,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new $N(WN,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new nf(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,r,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:i,end:r}=this.consumeArg(["]"])}else({tokens:i,start:n,end:r}=this.consumeArg());return this.pushToken(new Sn("EOF",r.loc)),this.pushTokens(i),n.range(r,"")}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var i=this.future(),a,s=0,o=0;do{if(a=this.popToken(),n.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new re("Extra }",a)}else if(a.text==="EOF")throw new re("Unexpected end of input in a macro argument, expected '"+(t&&r?t[o]:"}")+"'",a);if(t&&r)if((s===0||s===1&&t[o]==="{")&&a.text===t[o]){if(++o,o===t.length){n.splice(-o,o);break}}else o=0}while(s!==0||r);return i.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:i,end:a}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new re("The length of delimiters doesn't match the number of args!");for(var r=n[0],i=0;ithis.settings.maxExpand)throw new re("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var n=this.popToken(),r=n.text,i=n.noexpand?null:this._getExpansion(r);if(i==null||t&&i.unexpandable){if(t&&i==null&&r[0]==="\\"&&!this.isDefined(r))throw new re("Undefined control sequence: "+r);return this.pushToken(n),!1}this.countExpansion(1);var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var o=a.length-1;o>=0;--o){var u=a[o];if(u.text==="#"){if(o===0)throw new re("Incomplete placeholder at end of macro body",u);if(u=a[--o],u.text==="#")a.splice(o+1,1);else if(/^[1-9]$/.test(u.text))a.splice(o,2,...s[+u.text-1]);else throw new re("Not a valid argument number",u)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Sn(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),n.push(i)}return this.countExpansion(n.length),n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];if(r!=null&&r!==13)return}var i=typeof n=="function"?n(this):n;if(typeof i=="string"){var a=0;if(i.indexOf("#")!==-1)for(var s=i.replace(/##/g,"");s.indexOf("#"+(a+1))!==-1;)++a;for(var o=new nf(i,this.settings),u=[],l=o.lex();l.text!=="EOF";)u.push(l),l=o.lex();u.reverse();var c={tokens:u,numArgs:a};return c}return i}isDefined(t){return this.macros.has(t)||Sr.hasOwnProperty(t)||rt.math.hasOwnProperty(t)||rt.text.hasOwnProperty(t)||n3.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:Sr.hasOwnProperty(t)&&!Sr[t].primitive}}var sf=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Ds=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Hu={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},of={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let r3=class i3{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new YN(t,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new re("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new Sn("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(i3.endOfExpression.indexOf(i.text)!==-1||n&&i.text===n||t&&Sr[i.text]&&Sr[i.text].infix)break;var a=this.parseAtom(n);if(a){if(a.type==="internal")continue}else break;r.push(a)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,i=0;i=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var o=rt[this.mode][n].group,u=cn.range(t),l;if(OI.hasOwnProperty(o)){var c=o;l={type:"atom",mode:this.mode,family:c,loc:u,text:n}}else l={type:o,mode:this.mode,loc:u,text:n};s=l}else if(n.charCodeAt(0)>=128)this.settings.strict&&(d4(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),s={type:"textord",mode:"text",loc:cn.range(t),text:n};else return null;if(this.consume(),a)for(var d=0;dl&&(l=c):c&&(l!==void 0&&l>-1&&u.push(` +`.repeat(l)||" "),l=-1,u.push(c))}return u.join("")}function f3(e,t,n){return e.type==="element"?xM(e,t,n):e.type==="text"?n.whitespace==="normal"?p3(e,n):EM(e):[]}function xM(e,t,n){const r=m3(e,n),i=e.children||[];let a=-1,s=[];if(vM(e))return s;let o,u;for(Hl(e)||bf(e)&&ff(t,e,bf)?u=` +`:yM(e)?(o=2,u=2):h3(e)&&(o=1,u=1);++a-1&&a<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const u=yf(t,n[s-1]);o=u===-1?t.length+1:u+1,n[s]=o}if(o>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a};s++}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length1?n[a.line-2]:0)+a.column-1;if(s4&&n.slice(0,4)==="data"&&HM.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(xf,jM);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!xf.test(a)){let s=a.replace(zM,VM);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Cc}return new i(r,t)}function VM(e){return"-"+e.toLowerCase()}function jM(e){return e.charAt(1).toUpperCase()}const qM=y3([x3,T3,w3,A3,BM],"html"),C3=y3([x3,T3,w3,A3,FM],"svg"),$M={},WM={}.hasOwnProperty,k3=j2("type",{handlers:{root:GM,element:JM,text:QM,comment:ZM,doctype:KM}});function YM(e,t){const r=(t||$M).space;return k3(e,r==="svg"?C3:qM)}function GM(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=kc(e.children,n,t),Ui(e,n),n}function XM(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=kc(e.children,n,t),Ui(e,n),n}function KM(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Ui(e,t),t}function QM(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Ui(e,t),t}function ZM(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Ui(e,t),t}function JM(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=C3);const i=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&WM.call(e.properties,a)){const u=eR(r,a,e.properties[a]);u&&i.push(u)}}const s=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:zn[s],childNodes:[],parentNode:null};return o.childNodes=kc(e.children,o,r),Ui(e,o),e.tagName==="template"&&e.content&&(o.content=XM(e.content,r)),o}function eR(e,t,n){const r=UM(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?n2(n):c2(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=i.name.indexOf(":");a<0?i.prefix="":(i.name=i.name.slice(a+1),i.prefix=r.attribute.slice(0,a)),i.namespace=zn[r.space]}return i}function kc(e,t,n){let r=-1;const i=[];if(e)for(;++r=55296&&e<=57343}function rR(e){return e>=56320&&e<=57343}function iR(e,t){return(e-55296)*1024+9216+t}function N3(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function M3(e){return e>=64976&&e<=65007||nR.has(e)}var X;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(X||(X={}));const aR=65536;class sR{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=aR,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:i,offset:a}=this,s=i+n,o=a+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(rR(n))return this.pos++,this._addGap(),iR(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,A.EOF;return this._err(X.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,A.EOF;const r=this.html.charCodeAt(n);return r===A.CARRIAGE_RETURN?A.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,A.EOF;let t=this.html.charCodeAt(this.pos);return t===A.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,A.LINE_FEED):t===A.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,I3(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===A.LINE_FEED||t===A.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){N3(t)?this._err(X.controlCharacterInInputStream):M3(t)&&this._err(X.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const oR=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),uR=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function lR(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=uR.get(e))!==null&&t!==void 0?t:e}var Bt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Bt||(Bt={}));const cR=32;var wr;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(wr||(wr={}));function Vl(e){return e>=Bt.ZERO&&e<=Bt.NINE}function dR(e){return e>=Bt.UPPER_A&&e<=Bt.UPPER_F||e>=Bt.LOWER_A&&e<=Bt.LOWER_F}function hR(e){return e>=Bt.UPPER_A&&e<=Bt.UPPER_Z||e>=Bt.LOWER_A&&e<=Bt.LOWER_Z||Vl(e)}function fR(e){return e===Bt.EQUALS||hR(e)}var _t;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(_t||(_t={}));var tr;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(tr||(tr={}));class pR{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=_t.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=tr.Strict}startEntity(t){this.decodeMode=t,this.state=_t.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case _t.EntityStart:return t.charCodeAt(n)===Bt.NUM?(this.state=_t.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=_t.NamedEntity,this.stateNamedEntity(t,n));case _t.NumericStart:return this.stateNumericStart(t,n);case _t.NumericDecimal:return this.stateNumericDecimal(t,n);case _t.NumericHex:return this.stateNumericHex(t,n);case _t.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|cR)===Bt.LOWER_X?(this.state=_t.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=_t.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const a=r-n;this.result=this.result*Math.pow(i,a)+Number.parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,a!==0){if(s===Bt.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==tr.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&wr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~wr.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case _t.NamedEntity:return this.result!==0&&(this.decodeMode!==tr.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case _t.NumericDecimal:return this.emitNumericEntity(0,2);case _t.NumericHex:return this.emitNumericEntity(0,3);case _t.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case _t.EntityStart:return 0}}}function mR(e,t,n,r){const i=(t&wr.BRANCH_LENGTH)>>7,a=t&wr.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const u=r-a;return u<0||u>=i?-1:e[n+u]-1}let s=n,o=s+i-1;for(;s<=o;){const u=s+o>>>1,l=e[u];if(lr)o=u-1;else return e[u+i]}return-1}var J;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(J||(J={}));var Xr;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Xr||(Xr={}));var vn;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(vn||(vn={}));var U;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(U||(U={}));var h;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(h||(h={}));const gR=new Map([[U.A,h.A],[U.ADDRESS,h.ADDRESS],[U.ANNOTATION_XML,h.ANNOTATION_XML],[U.APPLET,h.APPLET],[U.AREA,h.AREA],[U.ARTICLE,h.ARTICLE],[U.ASIDE,h.ASIDE],[U.B,h.B],[U.BASE,h.BASE],[U.BASEFONT,h.BASEFONT],[U.BGSOUND,h.BGSOUND],[U.BIG,h.BIG],[U.BLOCKQUOTE,h.BLOCKQUOTE],[U.BODY,h.BODY],[U.BR,h.BR],[U.BUTTON,h.BUTTON],[U.CAPTION,h.CAPTION],[U.CENTER,h.CENTER],[U.CODE,h.CODE],[U.COL,h.COL],[U.COLGROUP,h.COLGROUP],[U.DD,h.DD],[U.DESC,h.DESC],[U.DETAILS,h.DETAILS],[U.DIALOG,h.DIALOG],[U.DIR,h.DIR],[U.DIV,h.DIV],[U.DL,h.DL],[U.DT,h.DT],[U.EM,h.EM],[U.EMBED,h.EMBED],[U.FIELDSET,h.FIELDSET],[U.FIGCAPTION,h.FIGCAPTION],[U.FIGURE,h.FIGURE],[U.FONT,h.FONT],[U.FOOTER,h.FOOTER],[U.FOREIGN_OBJECT,h.FOREIGN_OBJECT],[U.FORM,h.FORM],[U.FRAME,h.FRAME],[U.FRAMESET,h.FRAMESET],[U.H1,h.H1],[U.H2,h.H2],[U.H3,h.H3],[U.H4,h.H4],[U.H5,h.H5],[U.H6,h.H6],[U.HEAD,h.HEAD],[U.HEADER,h.HEADER],[U.HGROUP,h.HGROUP],[U.HR,h.HR],[U.HTML,h.HTML],[U.I,h.I],[U.IMG,h.IMG],[U.IMAGE,h.IMAGE],[U.INPUT,h.INPUT],[U.IFRAME,h.IFRAME],[U.KEYGEN,h.KEYGEN],[U.LABEL,h.LABEL],[U.LI,h.LI],[U.LINK,h.LINK],[U.LISTING,h.LISTING],[U.MAIN,h.MAIN],[U.MALIGNMARK,h.MALIGNMARK],[U.MARQUEE,h.MARQUEE],[U.MATH,h.MATH],[U.MENU,h.MENU],[U.META,h.META],[U.MGLYPH,h.MGLYPH],[U.MI,h.MI],[U.MO,h.MO],[U.MN,h.MN],[U.MS,h.MS],[U.MTEXT,h.MTEXT],[U.NAV,h.NAV],[U.NOBR,h.NOBR],[U.NOFRAMES,h.NOFRAMES],[U.NOEMBED,h.NOEMBED],[U.NOSCRIPT,h.NOSCRIPT],[U.OBJECT,h.OBJECT],[U.OL,h.OL],[U.OPTGROUP,h.OPTGROUP],[U.OPTION,h.OPTION],[U.P,h.P],[U.PARAM,h.PARAM],[U.PLAINTEXT,h.PLAINTEXT],[U.PRE,h.PRE],[U.RB,h.RB],[U.RP,h.RP],[U.RT,h.RT],[U.RTC,h.RTC],[U.RUBY,h.RUBY],[U.S,h.S],[U.SCRIPT,h.SCRIPT],[U.SEARCH,h.SEARCH],[U.SECTION,h.SECTION],[U.SELECT,h.SELECT],[U.SOURCE,h.SOURCE],[U.SMALL,h.SMALL],[U.SPAN,h.SPAN],[U.STRIKE,h.STRIKE],[U.STRONG,h.STRONG],[U.STYLE,h.STYLE],[U.SUB,h.SUB],[U.SUMMARY,h.SUMMARY],[U.SUP,h.SUP],[U.TABLE,h.TABLE],[U.TBODY,h.TBODY],[U.TEMPLATE,h.TEMPLATE],[U.TEXTAREA,h.TEXTAREA],[U.TFOOT,h.TFOOT],[U.TD,h.TD],[U.TH,h.TH],[U.THEAD,h.THEAD],[U.TITLE,h.TITLE],[U.TR,h.TR],[U.TRACK,h.TRACK],[U.TT,h.TT],[U.U,h.U],[U.UL,h.UL],[U.SVG,h.SVG],[U.VAR,h.VAR],[U.WBR,h.WBR],[U.XMP,h.XMP]]);function Vi(e){var t;return(t=gR.get(e))!==null&&t!==void 0?t:h.UNKNOWN}const te=h,bR={[J.HTML]:new Set([te.ADDRESS,te.APPLET,te.AREA,te.ARTICLE,te.ASIDE,te.BASE,te.BASEFONT,te.BGSOUND,te.BLOCKQUOTE,te.BODY,te.BR,te.BUTTON,te.CAPTION,te.CENTER,te.COL,te.COLGROUP,te.DD,te.DETAILS,te.DIR,te.DIV,te.DL,te.DT,te.EMBED,te.FIELDSET,te.FIGCAPTION,te.FIGURE,te.FOOTER,te.FORM,te.FRAME,te.FRAMESET,te.H1,te.H2,te.H3,te.H4,te.H5,te.H6,te.HEAD,te.HEADER,te.HGROUP,te.HR,te.HTML,te.IFRAME,te.IMG,te.INPUT,te.LI,te.LINK,te.LISTING,te.MAIN,te.MARQUEE,te.MENU,te.META,te.NAV,te.NOEMBED,te.NOFRAMES,te.NOSCRIPT,te.OBJECT,te.OL,te.P,te.PARAM,te.PLAINTEXT,te.PRE,te.SCRIPT,te.SECTION,te.SELECT,te.SOURCE,te.STYLE,te.SUMMARY,te.TABLE,te.TBODY,te.TD,te.TEMPLATE,te.TEXTAREA,te.TFOOT,te.TH,te.THEAD,te.TITLE,te.TR,te.TRACK,te.UL,te.WBR,te.XMP]),[J.MATHML]:new Set([te.MI,te.MO,te.MN,te.MS,te.MTEXT,te.ANNOTATION_XML]),[J.SVG]:new Set([te.TITLE,te.FOREIGN_OBJECT,te.DESC]),[J.XLINK]:new Set,[J.XML]:new Set,[J.XMLNS]:new Set},jl=new Set([te.H1,te.H2,te.H3,te.H4,te.H5,te.H6]);U.STYLE,U.SCRIPT,U.XMP,U.IFRAME,U.NOEMBED,U.NOFRAMES,U.PLAINTEXT;var I;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(I||(I={}));const kt={DATA:I.DATA,RCDATA:I.RCDATA,RAWTEXT:I.RAWTEXT,SCRIPT_DATA:I.SCRIPT_DATA,PLAINTEXT:I.PLAINTEXT,CDATA_SECTION:I.CDATA_SECTION};function yR(e){return e>=A.DIGIT_0&&e<=A.DIGIT_9}function oa(e){return e>=A.LATIN_CAPITAL_A&&e<=A.LATIN_CAPITAL_Z}function vR(e){return e>=A.LATIN_SMALL_A&&e<=A.LATIN_SMALL_Z}function Tr(e){return vR(e)||oa(e)}function Ef(e){return Tr(e)||yR(e)}function Ps(e){return e+32}function D3(e){return e===A.SPACE||e===A.LINE_FEED||e===A.TABULATION||e===A.FORM_FEED}function Sf(e){return D3(e)||e===A.SOLIDUS||e===A.GREATER_THAN_SIGN}function TR(e){return e===A.NULL?X.nullCharacterReference:e>1114111?X.characterReferenceOutsideUnicodeRange:I3(e)?X.surrogateCharacterReference:M3(e)?X.noncharacterCharacterReference:N3(e)||e===A.CARRIAGE_RETURN?X.controlCharacterReference:null}class xR{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=I.DATA,this.returnState=I.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new sR(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new pR(oR,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(X.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(X.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=TR(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n0&&this._err(X.endTagWithAttributes),t.selfClosing&&this._err(X.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case He.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case He.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case He.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:He.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=D3(t)?He.WHITESPACE_CHARACTER:t===A.NULL?He.NULL_CHARACTER:He.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(He.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=I.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?tr.Attribute:tr.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===I.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===I.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===I.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case I.DATA:{this._stateData(t);break}case I.RCDATA:{this._stateRcdata(t);break}case I.RAWTEXT:{this._stateRawtext(t);break}case I.SCRIPT_DATA:{this._stateScriptData(t);break}case I.PLAINTEXT:{this._statePlaintext(t);break}case I.TAG_OPEN:{this._stateTagOpen(t);break}case I.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case I.TAG_NAME:{this._stateTagName(t);break}case I.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case I.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case I.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case I.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case I.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case I.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case I.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case I.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case I.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case I.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case I.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case I.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case I.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case I.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case I.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case I.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case I.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case I.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case I.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case I.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case I.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case I.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case I.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case I.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case I.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case I.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case I.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case I.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case I.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case I.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case I.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case I.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case I.BOGUS_COMMENT:{this._stateBogusComment(t);break}case I.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case I.COMMENT_START:{this._stateCommentStart(t);break}case I.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case I.COMMENT:{this._stateComment(t);break}case I.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case I.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case I.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case I.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case I.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case I.COMMENT_END:{this._stateCommentEnd(t);break}case I.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case I.DOCTYPE:{this._stateDoctype(t);break}case I.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case I.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case I.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case I.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case I.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case I.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case I.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case I.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case I.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case I.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case I.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case I.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case I.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case I.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case I.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case I.CDATA_SECTION:{this._stateCdataSection(t);break}case I.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case I.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case I.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case I.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case A.LESS_THAN_SIGN:{this.state=I.TAG_OPEN;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err(X.unexpectedNullCharacter),this._emitCodePoint(t);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case A.AMPERSAND:{this._startCharacterReference();break}case A.LESS_THAN_SIGN:{this.state=I.RCDATA_LESS_THAN_SIGN;break}case A.NULL:{this._err(X.unexpectedNullCharacter),this._emitChars(ut);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case A.LESS_THAN_SIGN:{this.state=I.RAWTEXT_LESS_THAN_SIGN;break}case A.NULL:{this._err(X.unexpectedNullCharacter),this._emitChars(ut);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case A.LESS_THAN_SIGN:{this.state=I.SCRIPT_DATA_LESS_THAN_SIGN;break}case A.NULL:{this._err(X.unexpectedNullCharacter),this._emitChars(ut);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case A.NULL:{this._err(X.unexpectedNullCharacter),this._emitChars(ut);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Tr(t))this._createStartTagToken(),this.state=I.TAG_NAME,this._stateTagName(t);else switch(t){case A.EXCLAMATION_MARK:{this.state=I.MARKUP_DECLARATION_OPEN;break}case A.SOLIDUS:{this.state=I.END_TAG_OPEN;break}case A.QUESTION_MARK:{this._err(X.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=I.BOGUS_COMMENT,this._stateBogusComment(t);break}case A.EOF:{this._err(X.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(X.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=I.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Tr(t))this._createEndTagToken(),this.state=I.TAG_NAME,this._stateTagName(t);else switch(t){case A.GREATER_THAN_SIGN:{this._err(X.missingEndTagName),this.state=I.DATA;break}case A.EOF:{this._err(X.eofBeforeTagName),this._emitChars("");break}case A.NULL:{this._err(X.unexpectedNullCharacter),this.state=I.SCRIPT_DATA_ESCAPED,this._emitChars(ut);break}case A.EOF:{this._err(X.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=I.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===A.SOLIDUS?this.state=I.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Tr(t)?(this._emitChars("<"),this.state=I.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=I.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Tr(t)?(this.state=I.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("");break}case A.NULL:{this._err(X.unexpectedNullCharacter),this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ut);break}case A.EOF:{this._err(X.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===A.SOLIDUS?(this.state=I.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Zt.SCRIPT,!1)&&Sf(this.preprocessor.peek(Zt.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==J.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(CR,J.HTML)}clearBackToTableBodyContext(){this.clearBackTo(AR,J.HTML)}clearBackToTableRowContext(){this.clearBackTo(wR,J.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===h.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===h.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case J.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case J.SVG:{if(Cf.has(i))return!1;break}case J.MATHML:{if(Af.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,lo)}hasInListItemScope(t){return this.hasInDynamicScope(t,ER)}hasInButtonScope(t){return this.hasInDynamicScope(t,SR)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case J.HTML:{if(jl.has(n))return!0;if(lo.has(n))return!1;break}case J.SVG:{if(Cf.has(n))return!1;break}case J.MATHML:{if(Af.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===J.HTML)switch(this.tagIDs[n]){case t:return!0;case h.TABLE:case h.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===J.HTML)switch(this.tagIDs[t]){case h.TBODY:case h.THEAD:case h.TFOOT:return!0;case h.TABLE:case h.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===J.HTML)switch(this.tagIDs[n]){case t:return!0;case h.OPTION:case h.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&P3.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&wf.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&wf.has(this.currentTagId);)this.pop()}}const Uu=3;var Bn;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Bn||(Bn={}));const kf={type:Bn.Marker};class NR{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o[s.name,s.value]));let a=0;for(let s=0;si.get(u.name)===u.value)&&(a+=1,a>=Uu&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(kf)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Bn.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Bn.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(kf);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Bn.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Bn.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Bn.Element&&n.element===t)}}const xr={createDocument(){return{nodeName:"#document",mode:vn.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};xr.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(xr.isTextNode(n)){n.value+=t;return}}xr.appendChild(e,xr.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&xr.isTextNode(r)?r.value+=t:xr.insertBefore(e,xr.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function OR(e){return e.name===L3&&e.publicId===null&&(e.systemId===null||e.systemId===MR)}function _R(e){if(e.name!==L3)return vn.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===RR)return vn.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),PR.has(n))return vn.QUIRKS;let r=t===null?DR:O3;if(If(n,r))return vn.QUIRKS;if(r=t===null?_3:LR,If(n,r))return vn.LIMITED_QUIRKS}return vn.NO_QUIRKS}const Nf={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},BR="definitionurl",FR="definitionURL",HR=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),zR=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:J.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:J.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:J.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:J.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:J.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:J.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:J.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:J.XML}],["xml:space",{prefix:"xml",name:"space",namespace:J.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:J.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:J.XMLNS}]]),UR=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),VR=new Set([h.B,h.BIG,h.BLOCKQUOTE,h.BODY,h.BR,h.CENTER,h.CODE,h.DD,h.DIV,h.DL,h.DT,h.EM,h.EMBED,h.H1,h.H2,h.H3,h.H4,h.H5,h.H6,h.HEAD,h.HR,h.I,h.IMG,h.LI,h.LISTING,h.MENU,h.META,h.NOBR,h.OL,h.P,h.PRE,h.RUBY,h.S,h.SMALL,h.SPAN,h.STRONG,h.STRIKE,h.SUB,h.SUP,h.TABLE,h.TT,h.U,h.UL,h.VAR]);function jR(e){const t=e.tagID;return t===h.FONT&&e.attrs.some(({name:r})=>r===Xr.COLOR||r===Xr.SIZE||r===Xr.FACE)||VR.has(t)}function B3(e){for(let t=0;t0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===J.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,J.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=O.TEXT}switchToPlaintextParsing(){this.insertionMode=O.TEXT,this.originalInsertionMode=O.IN_BODY,this.tokenizer.state=kt.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===U.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==J.HTML))switch(this.fragmentContextID){case h.TITLE:case h.TEXTAREA:{this.tokenizer.state=kt.RCDATA;break}case h.STYLE:case h.XMP:case h.IFRAME:case h.NOEMBED:case h.NOFRAMES:case h.NOSCRIPT:{this.tokenizer.state=kt.RAWTEXT;break}case h.SCRIPT:{this.tokenizer.state=kt.SCRIPT_DATA;break}case h.PLAINTEXT:{this.tokenizer.state=kt.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,J.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,J.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(U.HTML,J.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,h.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),a=r?i.lastIndexOf(r):i.length,s=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:u,endCol:l,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:u,endCol:l,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),a=n.type===He.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===h.SVG&&this.treeAdapter.getTagName(n)===U.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===J.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===h.MGLYPH||t.tagID===h.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,J.HTML)}_processToken(t){switch(t.type){case He.CHARACTER:{this.onCharacter(t);break}case He.NULL_CHARACTER:{this.onNullCharacter(t);break}case He.COMMENT:{this.onComment(t);break}case He.DOCTYPE:{this.onDoctype(t);break}case He.START_TAG:{this._processStartTag(t);break}case He.END_TAG:{this.onEndTag(t);break}case He.EOF:{this.onEof(t);break}case He.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return YR(t,i,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===Bn.Marker||this.openElements.contains(i.element)),r=n===-1?t-1:n-1;for(let i=r;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=O.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(h.P),this.openElements.popUntilTagNamePopped(h.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case h.TR:{this.insertionMode=O.IN_ROW;return}case h.TBODY:case h.THEAD:case h.TFOOT:{this.insertionMode=O.IN_TABLE_BODY;return}case h.CAPTION:{this.insertionMode=O.IN_CAPTION;return}case h.COLGROUP:{this.insertionMode=O.IN_COLUMN_GROUP;return}case h.TABLE:{this.insertionMode=O.IN_TABLE;return}case h.BODY:{this.insertionMode=O.IN_BODY;return}case h.FRAMESET:{this.insertionMode=O.IN_FRAMESET;return}case h.SELECT:{this._resetInsertionModeForSelect(t);return}case h.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case h.HTML:{this.insertionMode=this.headElement?O.AFTER_HEAD:O.BEFORE_HEAD;return}case h.TD:case h.TH:{if(t>0){this.insertionMode=O.IN_CELL;return}break}case h.HEAD:{if(t>0){this.insertionMode=O.IN_HEAD;return}break}}this.insertionMode=O.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===h.TEMPLATE)break;if(r===h.TABLE){this.insertionMode=O.IN_SELECT_IN_TABLE;return}}this.insertionMode=O.IN_SELECT}_isElementCausesFosterParenting(t){return H3.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case h.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===J.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case h.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return bR[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){kP(this,t);return}switch(this.insertionMode){case O.INITIAL:{ta(this,t);break}case O.BEFORE_HTML:{Ta(this,t);break}case O.BEFORE_HEAD:{xa(this,t);break}case O.IN_HEAD:{Ea(this,t);break}case O.IN_HEAD_NO_SCRIPT:{Sa(this,t);break}case O.AFTER_HEAD:{wa(this,t);break}case O.IN_BODY:case O.IN_CAPTION:case O.IN_CELL:case O.IN_TEMPLATE:{U3(this,t);break}case O.TEXT:case O.IN_SELECT:case O.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case O.IN_TABLE:case O.IN_TABLE_BODY:case O.IN_ROW:{Vu(this,t);break}case O.IN_TABLE_TEXT:{Y3(this,t);break}case O.IN_COLUMN_GROUP:{co(this,t);break}case O.AFTER_BODY:{ho(this,t);break}case O.AFTER_AFTER_BODY:{qs(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){CP(this,t);return}switch(this.insertionMode){case O.INITIAL:{ta(this,t);break}case O.BEFORE_HTML:{Ta(this,t);break}case O.BEFORE_HEAD:{xa(this,t);break}case O.IN_HEAD:{Ea(this,t);break}case O.IN_HEAD_NO_SCRIPT:{Sa(this,t);break}case O.AFTER_HEAD:{wa(this,t);break}case O.TEXT:{this._insertCharacters(t);break}case O.IN_TABLE:case O.IN_TABLE_BODY:case O.IN_ROW:{Vu(this,t);break}case O.IN_COLUMN_GROUP:{co(this,t);break}case O.AFTER_BODY:{ho(this,t);break}case O.AFTER_AFTER_BODY:{qs(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){ql(this,t);return}switch(this.insertionMode){case O.INITIAL:case O.BEFORE_HTML:case O.BEFORE_HEAD:case O.IN_HEAD:case O.IN_HEAD_NO_SCRIPT:case O.AFTER_HEAD:case O.IN_BODY:case O.IN_TABLE:case O.IN_CAPTION:case O.IN_COLUMN_GROUP:case O.IN_TABLE_BODY:case O.IN_ROW:case O.IN_CELL:case O.IN_SELECT:case O.IN_SELECT_IN_TABLE:case O.IN_TEMPLATE:case O.IN_FRAMESET:case O.AFTER_FRAMESET:{ql(this,t);break}case O.IN_TABLE_TEXT:{na(this,t);break}case O.AFTER_BODY:{iD(this,t);break}case O.AFTER_AFTER_BODY:case O.AFTER_AFTER_FRAMESET:{aD(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case O.INITIAL:{sD(this,t);break}case O.BEFORE_HEAD:case O.IN_HEAD:case O.IN_HEAD_NO_SCRIPT:case O.AFTER_HEAD:{this._err(t,X.misplacedDoctype);break}case O.IN_TABLE_TEXT:{na(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,X.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?IP(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case O.INITIAL:{ta(this,t);break}case O.BEFORE_HTML:{oD(this,t);break}case O.BEFORE_HEAD:{lD(this,t);break}case O.IN_HEAD:{Pn(this,t);break}case O.IN_HEAD_NO_SCRIPT:{hD(this,t);break}case O.AFTER_HEAD:{pD(this,t);break}case O.IN_BODY:{qt(this,t);break}case O.IN_TABLE:{Mi(this,t);break}case O.IN_TABLE_TEXT:{na(this,t);break}case O.IN_CAPTION:{cP(this,t);break}case O.IN_COLUMN_GROUP:{Rc(this,t);break}case O.IN_TABLE_BODY:{Ho(this,t);break}case O.IN_ROW:{zo(this,t);break}case O.IN_CELL:{fP(this,t);break}case O.IN_SELECT:{K3(this,t);break}case O.IN_SELECT_IN_TABLE:{mP(this,t);break}case O.IN_TEMPLATE:{bP(this,t);break}case O.AFTER_BODY:{vP(this,t);break}case O.IN_FRAMESET:{TP(this,t);break}case O.AFTER_FRAMESET:{EP(this,t);break}case O.AFTER_AFTER_BODY:{wP(this,t);break}case O.AFTER_AFTER_FRAMESET:{AP(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?NP(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case O.INITIAL:{ta(this,t);break}case O.BEFORE_HTML:{uD(this,t);break}case O.BEFORE_HEAD:{cD(this,t);break}case O.IN_HEAD:{dD(this,t);break}case O.IN_HEAD_NO_SCRIPT:{fD(this,t);break}case O.AFTER_HEAD:{mD(this,t);break}case O.IN_BODY:{Fo(this,t);break}case O.TEXT:{eP(this,t);break}case O.IN_TABLE:{Ua(this,t);break}case O.IN_TABLE_TEXT:{na(this,t);break}case O.IN_CAPTION:{dP(this,t);break}case O.IN_COLUMN_GROUP:{hP(this,t);break}case O.IN_TABLE_BODY:{$l(this,t);break}case O.IN_ROW:{X3(this,t);break}case O.IN_CELL:{pP(this,t);break}case O.IN_SELECT:{Q3(this,t);break}case O.IN_SELECT_IN_TABLE:{gP(this,t);break}case O.IN_TEMPLATE:{yP(this,t);break}case O.AFTER_BODY:{J3(this,t);break}case O.IN_FRAMESET:{xP(this,t);break}case O.AFTER_FRAMESET:{SP(this,t);break}case O.AFTER_AFTER_BODY:{qs(this,t);break}}}onEof(t){switch(this.insertionMode){case O.INITIAL:{ta(this,t);break}case O.BEFORE_HTML:{Ta(this,t);break}case O.BEFORE_HEAD:{xa(this,t);break}case O.IN_HEAD:{Ea(this,t);break}case O.IN_HEAD_NO_SCRIPT:{Sa(this,t);break}case O.AFTER_HEAD:{wa(this,t);break}case O.IN_BODY:case O.IN_TABLE:case O.IN_CAPTION:case O.IN_COLUMN_GROUP:case O.IN_TABLE_BODY:case O.IN_ROW:case O.IN_CELL:case O.IN_SELECT:case O.IN_SELECT_IN_TABLE:{$3(this,t);break}case O.TEXT:{tP(this,t);break}case O.IN_TABLE_TEXT:{na(this,t);break}case O.IN_TEMPLATE:{Z3(this,t);break}case O.AFTER_BODY:case O.IN_FRAMESET:case O.AFTER_FRAMESET:case O.AFTER_AFTER_BODY:case O.AFTER_AFTER_FRAMESET:{Mc(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===A.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case O.IN_HEAD:case O.IN_HEAD_NO_SCRIPT:case O.AFTER_HEAD:case O.TEXT:case O.IN_COLUMN_GROUP:case O.IN_SELECT:case O.IN_SELECT_IN_TABLE:case O.IN_FRAMESET:case O.AFTER_FRAMESET:{this._insertCharacters(t);break}case O.IN_BODY:case O.IN_CAPTION:case O.IN_CELL:case O.IN_TEMPLATE:case O.AFTER_BODY:case O.AFTER_AFTER_BODY:case O.AFTER_AFTER_FRAMESET:{z3(this,t);break}case O.IN_TABLE:case O.IN_TABLE_BODY:case O.IN_ROW:{Vu(this,t);break}case O.IN_TABLE_TEXT:{W3(this,t);break}}}}function ZR(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):q3(e,t),n}function JR(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function eD(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),u=o&&a>=KR;!o||u?(u&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=tD(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function tD(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function nD(e,t,n){const r=e.treeAdapter.getTagName(t),i=Vi(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===h.TEMPLATE&&a===J.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function rD(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function Nc(e,t){for(let n=0;n=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function sD(e,t){e._setDocumentType(t);const n=t.forceQuirks?vn.QUIRKS:_R(t);OR(t)||e._err(t,X.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=O.BEFORE_HTML}function ta(e,t){e._err(t,X.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,vn.QUIRKS),e.insertionMode=O.BEFORE_HTML,e._processToken(t)}function oD(e,t){t.tagID===h.HTML?(e._insertElement(t,J.HTML),e.insertionMode=O.BEFORE_HEAD):Ta(e,t)}function uD(e,t){const n=t.tagID;(n===h.HTML||n===h.HEAD||n===h.BODY||n===h.BR)&&Ta(e,t)}function Ta(e,t){e._insertFakeRootElement(),e.insertionMode=O.BEFORE_HEAD,e._processToken(t)}function lD(e,t){switch(t.tagID){case h.HTML:{qt(e,t);break}case h.HEAD:{e._insertElement(t,J.HTML),e.headElement=e.openElements.current,e.insertionMode=O.IN_HEAD;break}default:xa(e,t)}}function cD(e,t){const n=t.tagID;n===h.HEAD||n===h.BODY||n===h.HTML||n===h.BR?xa(e,t):e._err(t,X.endTagWithoutMatchingOpenElement)}function xa(e,t){e._insertFakeElement(U.HEAD,h.HEAD),e.headElement=e.openElements.current,e.insertionMode=O.IN_HEAD,e._processToken(t)}function Pn(e,t){switch(t.tagID){case h.HTML:{qt(e,t);break}case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:{e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break}case h.TITLE:{e._switchToTextParsing(t,kt.RCDATA);break}case h.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,kt.RAWTEXT):(e._insertElement(t,J.HTML),e.insertionMode=O.IN_HEAD_NO_SCRIPT);break}case h.NOFRAMES:case h.STYLE:{e._switchToTextParsing(t,kt.RAWTEXT);break}case h.SCRIPT:{e._switchToTextParsing(t,kt.SCRIPT_DATA);break}case h.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=O.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(O.IN_TEMPLATE);break}case h.HEAD:{e._err(t,X.misplacedStartTagForHeadElement);break}default:Ea(e,t)}}function dD(e,t){switch(t.tagID){case h.HEAD:{e.openElements.pop(),e.insertionMode=O.AFTER_HEAD;break}case h.BODY:case h.BR:case h.HTML:{Ea(e,t);break}case h.TEMPLATE:{ii(e,t);break}default:e._err(t,X.endTagWithoutMatchingOpenElement)}}function ii(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==h.TEMPLATE&&e._err(t,X.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,X.endTagWithoutMatchingOpenElement)}function Ea(e,t){e.openElements.pop(),e.insertionMode=O.AFTER_HEAD,e._processToken(t)}function hD(e,t){switch(t.tagID){case h.HTML:{qt(e,t);break}case h.BASEFONT:case h.BGSOUND:case h.HEAD:case h.LINK:case h.META:case h.NOFRAMES:case h.STYLE:{Pn(e,t);break}case h.NOSCRIPT:{e._err(t,X.nestedNoscriptInHead);break}default:Sa(e,t)}}function fD(e,t){switch(t.tagID){case h.NOSCRIPT:{e.openElements.pop(),e.insertionMode=O.IN_HEAD;break}case h.BR:{Sa(e,t);break}default:e._err(t,X.endTagWithoutMatchingOpenElement)}}function Sa(e,t){const n=t.type===He.EOF?X.openElementsLeftAfterEof:X.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=O.IN_HEAD,e._processToken(t)}function pD(e,t){switch(t.tagID){case h.HTML:{qt(e,t);break}case h.BODY:{e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=O.IN_BODY;break}case h.FRAMESET:{e._insertElement(t,J.HTML),e.insertionMode=O.IN_FRAMESET;break}case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:case h.NOFRAMES:case h.SCRIPT:case h.STYLE:case h.TEMPLATE:case h.TITLE:{e._err(t,X.abandonedHeadElementChild),e.openElements.push(e.headElement,h.HEAD),Pn(e,t),e.openElements.remove(e.headElement);break}case h.HEAD:{e._err(t,X.misplacedStartTagForHeadElement);break}default:wa(e,t)}}function mD(e,t){switch(t.tagID){case h.BODY:case h.HTML:case h.BR:{wa(e,t);break}case h.TEMPLATE:{ii(e,t);break}default:e._err(t,X.endTagWithoutMatchingOpenElement)}}function wa(e,t){e._insertFakeElement(U.BODY,h.BODY),e.insertionMode=O.IN_BODY,Bo(e,t)}function Bo(e,t){switch(t.type){case He.CHARACTER:{U3(e,t);break}case He.WHITESPACE_CHARACTER:{z3(e,t);break}case He.COMMENT:{ql(e,t);break}case He.START_TAG:{qt(e,t);break}case He.END_TAG:{Fo(e,t);break}case He.EOF:{$3(e,t);break}}}function z3(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function U3(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function gD(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function bD(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function yD(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,J.HTML),e.insertionMode=O.IN_FRAMESET)}function vD(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,J.HTML)}function TD(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&jl.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,J.HTML)}function xD(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function ED(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,J.HTML),n||(e.formElement=e.openElements.current))}function SD(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===h.LI&&i===h.LI||(n===h.DD||n===h.DT)&&(i===h.DD||i===h.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==h.ADDRESS&&i!==h.DIV&&i!==h.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,J.HTML)}function wD(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.tokenizer.state=kt.PLAINTEXT}function AD(e,t){e.openElements.hasInScope(h.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.framesetOk=!1}function CD(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(U.A);n&&(Nc(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function kD(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ID(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(h.NOBR)&&(Nc(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ND(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function MD(e,t){e.treeAdapter.getDocumentMode(e.document)!==vn.QUIRKS&&e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=O.IN_TABLE}function V3(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function j3(e){const t=R3(e,Xr.TYPE);return t!=null&&t.toLowerCase()===GR}function RD(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),j3(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function DD(e,t){e._appendElement(t,J.HTML),t.ackSelfClosing=!0}function PD(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function LD(e,t){t.tagName=U.IMG,t.tagID=h.IMG,V3(e,t)}function OD(e,t){e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.tokenizer.state=kt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=O.TEXT}function _D(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,kt.RAWTEXT)}function BD(e,t){e.framesetOk=!1,e._switchToTextParsing(t,kt.RAWTEXT)}function Df(e,t){e._switchToTextParsing(t,kt.RAWTEXT)}function FD(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===O.IN_TABLE||e.insertionMode===O.IN_CAPTION||e.insertionMode===O.IN_TABLE_BODY||e.insertionMode===O.IN_ROW||e.insertionMode===O.IN_CELL?O.IN_SELECT_IN_TABLE:O.IN_SELECT}function HD(e,t){e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function zD(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,J.HTML)}function UD(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(h.RTC),e._insertElement(t,J.HTML)}function VD(e,t){e._reconstructActiveFormattingElements(),B3(t),Ic(t),t.selfClosing?e._appendElement(t,J.MATHML):e._insertElement(t,J.MATHML),t.ackSelfClosing=!0}function jD(e,t){e._reconstructActiveFormattingElements(),F3(t),Ic(t),t.selfClosing?e._appendElement(t,J.SVG):e._insertElement(t,J.SVG),t.ackSelfClosing=!0}function Pf(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function qt(e,t){switch(t.tagID){case h.I:case h.S:case h.B:case h.U:case h.EM:case h.TT:case h.BIG:case h.CODE:case h.FONT:case h.SMALL:case h.STRIKE:case h.STRONG:{kD(e,t);break}case h.A:{CD(e,t);break}case h.H1:case h.H2:case h.H3:case h.H4:case h.H5:case h.H6:{TD(e,t);break}case h.P:case h.DL:case h.OL:case h.UL:case h.DIV:case h.DIR:case h.NAV:case h.MAIN:case h.MENU:case h.ASIDE:case h.CENTER:case h.FIGURE:case h.FOOTER:case h.HEADER:case h.HGROUP:case h.DIALOG:case h.DETAILS:case h.ADDRESS:case h.ARTICLE:case h.SEARCH:case h.SECTION:case h.SUMMARY:case h.FIELDSET:case h.BLOCKQUOTE:case h.FIGCAPTION:{vD(e,t);break}case h.LI:case h.DD:case h.DT:{SD(e,t);break}case h.BR:case h.IMG:case h.WBR:case h.AREA:case h.EMBED:case h.KEYGEN:{V3(e,t);break}case h.HR:{PD(e,t);break}case h.RB:case h.RTC:{zD(e,t);break}case h.RT:case h.RP:{UD(e,t);break}case h.PRE:case h.LISTING:{xD(e,t);break}case h.XMP:{_D(e,t);break}case h.SVG:{jD(e,t);break}case h.HTML:{gD(e,t);break}case h.BASE:case h.LINK:case h.META:case h.STYLE:case h.TITLE:case h.SCRIPT:case h.BGSOUND:case h.BASEFONT:case h.TEMPLATE:{Pn(e,t);break}case h.BODY:{bD(e,t);break}case h.FORM:{ED(e,t);break}case h.NOBR:{ID(e,t);break}case h.MATH:{VD(e,t);break}case h.TABLE:{MD(e,t);break}case h.INPUT:{RD(e,t);break}case h.PARAM:case h.TRACK:case h.SOURCE:{DD(e,t);break}case h.IMAGE:{LD(e,t);break}case h.BUTTON:{AD(e,t);break}case h.APPLET:case h.OBJECT:case h.MARQUEE:{ND(e,t);break}case h.IFRAME:{BD(e,t);break}case h.SELECT:{FD(e,t);break}case h.OPTION:case h.OPTGROUP:{HD(e,t);break}case h.NOEMBED:case h.NOFRAMES:{Df(e,t);break}case h.FRAMESET:{yD(e,t);break}case h.TEXTAREA:{OD(e,t);break}case h.NOSCRIPT:{e.options.scriptingEnabled?Df(e,t):Pf(e,t);break}case h.PLAINTEXT:{wD(e,t);break}case h.COL:case h.TH:case h.TD:case h.TR:case h.HEAD:case h.FRAME:case h.TBODY:case h.TFOOT:case h.THEAD:case h.CAPTION:case h.COLGROUP:break;default:Pf(e,t)}}function qD(e,t){if(e.openElements.hasInScope(h.BODY)&&(e.insertionMode=O.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function $D(e,t){e.openElements.hasInScope(h.BODY)&&(e.insertionMode=O.AFTER_BODY,J3(e,t))}function WD(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function YD(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(h.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(h.FORM):n&&e.openElements.remove(n))}function GD(e){e.openElements.hasInButtonScope(h.P)||e._insertFakeElement(U.P,h.P),e._closePElement()}function XD(e){e.openElements.hasInListItemScope(h.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(h.LI),e.openElements.popUntilTagNamePopped(h.LI))}function KD(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function QD(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function ZD(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function JD(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(U.BR,h.BR),e.openElements.pop(),e.framesetOk=!1}function q3(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==h.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function Fo(e,t){switch(t.tagID){case h.A:case h.B:case h.I:case h.S:case h.U:case h.EM:case h.TT:case h.BIG:case h.CODE:case h.FONT:case h.NOBR:case h.SMALL:case h.STRIKE:case h.STRONG:{Nc(e,t);break}case h.P:{GD(e);break}case h.DL:case h.UL:case h.OL:case h.DIR:case h.DIV:case h.NAV:case h.PRE:case h.MAIN:case h.MENU:case h.ASIDE:case h.BUTTON:case h.CENTER:case h.FIGURE:case h.FOOTER:case h.HEADER:case h.HGROUP:case h.DIALOG:case h.ADDRESS:case h.ARTICLE:case h.DETAILS:case h.SEARCH:case h.SECTION:case h.SUMMARY:case h.LISTING:case h.FIELDSET:case h.BLOCKQUOTE:case h.FIGCAPTION:{WD(e,t);break}case h.LI:{XD(e);break}case h.DD:case h.DT:{KD(e,t);break}case h.H1:case h.H2:case h.H3:case h.H4:case h.H5:case h.H6:{QD(e);break}case h.BR:{JD(e);break}case h.BODY:{qD(e,t);break}case h.HTML:{$D(e,t);break}case h.FORM:{YD(e);break}case h.APPLET:case h.OBJECT:case h.MARQUEE:{ZD(e,t);break}case h.TEMPLATE:{ii(e,t);break}default:q3(e,t)}}function $3(e,t){e.tmplInsertionModeStack.length>0?Z3(e,t):Mc(e,t)}function eP(e,t){var n;t.tagID===h.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function tP(e,t){e._err(t,X.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Vu(e,t){if(e.openElements.currentTagId!==void 0&&H3.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=O.IN_TABLE_TEXT,t.type){case He.CHARACTER:{Y3(e,t);break}case He.WHITESPACE_CHARACTER:{W3(e,t);break}}else is(e,t)}function nP(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,J.HTML),e.insertionMode=O.IN_CAPTION}function rP(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=O.IN_COLUMN_GROUP}function iP(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(U.COLGROUP,h.COLGROUP),e.insertionMode=O.IN_COLUMN_GROUP,Rc(e,t)}function aP(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=O.IN_TABLE_BODY}function sP(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(U.TBODY,h.TBODY),e.insertionMode=O.IN_TABLE_BODY,Ho(e,t)}function oP(e,t){e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function uP(e,t){j3(t)?e._appendElement(t,J.HTML):is(e,t),t.ackSelfClosing=!0}function lP(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,J.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Mi(e,t){switch(t.tagID){case h.TD:case h.TH:case h.TR:{sP(e,t);break}case h.STYLE:case h.SCRIPT:case h.TEMPLATE:{Pn(e,t);break}case h.COL:{iP(e,t);break}case h.FORM:{lP(e,t);break}case h.TABLE:{oP(e,t);break}case h.TBODY:case h.TFOOT:case h.THEAD:{aP(e,t);break}case h.INPUT:{uP(e,t);break}case h.CAPTION:{nP(e,t);break}case h.COLGROUP:{rP(e,t);break}default:is(e,t)}}function Ua(e,t){switch(t.tagID){case h.TABLE:{e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode());break}case h.TEMPLATE:{ii(e,t);break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:case h.TBODY:case h.TD:case h.TFOOT:case h.TH:case h.THEAD:case h.TR:break;default:is(e,t)}}function is(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Bo(e,t),e.fosterParentingEnabled=n}function W3(e,t){e.pendingCharacterTokens.push(t)}function Y3(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function na(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===h.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===h.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===h.OPTGROUP&&e.openElements.pop();break}case h.OPTION:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop();break}case h.SELECT:{e.openElements.hasInSelectScope(h.SELECT)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode());break}case h.TEMPLATE:{ii(e,t);break}}}function mP(e,t){const n=t.tagID;n===h.CAPTION||n===h.TABLE||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR||n===h.TD||n===h.TH?(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),e._processStartTag(t)):K3(e,t)}function gP(e,t){const n=t.tagID;n===h.CAPTION||n===h.TABLE||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR||n===h.TD||n===h.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Q3(e,t)}function bP(e,t){switch(t.tagID){case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:case h.NOFRAMES:case h.SCRIPT:case h.STYLE:case h.TEMPLATE:case h.TITLE:{Pn(e,t);break}case h.CAPTION:case h.COLGROUP:case h.TBODY:case h.TFOOT:case h.THEAD:{e.tmplInsertionModeStack[0]=O.IN_TABLE,e.insertionMode=O.IN_TABLE,Mi(e,t);break}case h.COL:{e.tmplInsertionModeStack[0]=O.IN_COLUMN_GROUP,e.insertionMode=O.IN_COLUMN_GROUP,Rc(e,t);break}case h.TR:{e.tmplInsertionModeStack[0]=O.IN_TABLE_BODY,e.insertionMode=O.IN_TABLE_BODY,Ho(e,t);break}case h.TD:case h.TH:{e.tmplInsertionModeStack[0]=O.IN_ROW,e.insertionMode=O.IN_ROW,zo(e,t);break}default:e.tmplInsertionModeStack[0]=O.IN_BODY,e.insertionMode=O.IN_BODY,qt(e,t)}}function yP(e,t){t.tagID===h.TEMPLATE&&ii(e,t)}function Z3(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Mc(e,t)}function vP(e,t){t.tagID===h.HTML?qt(e,t):ho(e,t)}function J3(e,t){var n;if(t.tagID===h.HTML){if(e.fragmentContext||(e.insertionMode=O.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===h.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else ho(e,t)}function ho(e,t){e.insertionMode=O.IN_BODY,Bo(e,t)}function TP(e,t){switch(t.tagID){case h.HTML:{qt(e,t);break}case h.FRAMESET:{e._insertElement(t,J.HTML);break}case h.FRAME:{e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break}case h.NOFRAMES:{Pn(e,t);break}}}function xP(e,t){t.tagID===h.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==h.FRAMESET&&(e.insertionMode=O.AFTER_FRAMESET))}function EP(e,t){switch(t.tagID){case h.HTML:{qt(e,t);break}case h.NOFRAMES:{Pn(e,t);break}}}function SP(e,t){t.tagID===h.HTML&&(e.insertionMode=O.AFTER_AFTER_FRAMESET)}function wP(e,t){t.tagID===h.HTML?qt(e,t):qs(e,t)}function qs(e,t){e.insertionMode=O.IN_BODY,Bo(e,t)}function AP(e,t){switch(t.tagID){case h.HTML:{qt(e,t);break}case h.NOFRAMES:{Pn(e,t);break}}}function CP(e,t){t.chars=ut,e._insertCharacters(t)}function kP(e,t){e._insertCharacters(t),e.framesetOk=!1}function e6(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==J.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function IP(e,t){if(jR(t))e6(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===J.MATHML?B3(t):r===J.SVG&&(qR(t),F3(t)),Ic(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function NP(e,t){if(t.tagID===h.P||t.tagID===h.BR){e6(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===J.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}U.AREA,U.BASE,U.BASEFONT,U.BGSOUND,U.BR,U.COL,U.EMBED,U.FRAME,U.HR,U.IMG,U.INPUT,U.KEYGEN,U.LINK,U.META,U.PARAM,U.SOURCE,U.TRACK,U.WBR;const MP=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,RP=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Lf={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function t6(e,t){const n=UP(e),r=j2("type",{handlers:{root:DP,element:PP,text:LP,comment:r6,doctype:OP,raw:BP},unknown:FP}),i={parser:n?new Rf(Lf):Rf.getFragmentParser(void 0,Lf),handle(o){r(o,i)},stitches:!1,options:t||{}};r(e,i),ji(i,Gn());const a=n?i.parser.document:i.parser.getFragment(),s=DM(a,{file:i.options.file});return i.stitches&&Mo(s,"comment",function(o,u,l){const c=o;if(c.value.stitch&&l&&u!==void 0){const d=l.children;return d[u]=c.value.stitch,u}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function n6(e,t){let n=-1;if(e)for(;++n4&&(t.parser.tokenizer.state=0);const n={type:He.CHARACTER,chars:e.value,location:as(e)};ji(t,Gn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function OP(e,t){const n={type:He.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:as(e)};ji(t,Gn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function _P(e,t){t.stitches=!0;const n=VP(e);if("children"in e&&"children"in n){const r=t6({type:"root",children:e.children},t.options);n.children=r.children}r6({type:"comment",value:{stitch:n}},t)}function r6(e,t){const n=e.value,r={type:He.COMMENT,data:n,location:as(e)};ji(t,Gn(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function BP(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,i6(t,Gn(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(MP,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function FP(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))_P(n,t);else{let r="";throw RP.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function ji(e,t){i6(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=kt.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function i6(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function HP(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===kt.PLAINTEXT)return;ji(t,Gn(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:zn.html;i===zn.html&&n==="svg"&&(i=zn.svg);const a=YM({...e,children:[]},{space:i===zn.svg?"svg":"html"}),s={type:He.START_TAG,tagName:n,tagID:Vi(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:as(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function zP(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&tR.includes(n)||t.parser.tokenizer.state===kt.PLAINTEXT)return;ji(t,Ao(e));const r={type:He.END_TAG,tagName:n,tagID:Vi(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:as(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===kt.RCDATA||t.parser.tokenizer.state===kt.RAWTEXT||t.parser.tokenizer.state===kt.SCRIPT_DATA)&&(t.parser.tokenizer.state=kt.DATA)}function UP(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function as(e){const t=Gn(e)||{line:void 0,column:void 0,offset:void 0},n=Ao(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function VP(e){return"children"in e?Jr({...e,children:[]}):Jr(e)}function jP(e){return function(t,n){return t6(t,{...e,file:n})}}const zr=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],fo={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...zr,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...zr],h2:[["className","sr-only"]],img:[...zr,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...zr,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...zr],table:[...zr],ul:[...zr,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},Er={}.hasOwnProperty;function qP(e,t){let n={type:"root",children:[]};const r={schema:t?{...fo,...t}:fo,stack:[]},i=a6(r,e);return i&&(Array.isArray(i)?i.length===1?n=i[0]:n.children=i:n=i),n}function a6(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return $P(e,n);case"doctype":return WP(e,n);case"element":return YP(e,n);case"root":return GP(e,n);case"text":return XP(e,n)}}}function $P(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",r=n.indexOf("-->"),a={type:"comment",value:r<0?n:n.slice(0,r)};return ss(a,t),a}}function WP(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return ss(n,t),n}}function YP(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const r=s6(e,t.children),i=KP(e,t.properties);e.stack.pop();let a=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&Er.call(e.schema.ancestors,n))){const o=e.schema.ancestors[n];let u=-1;for(a=!1;++u1){let i=!1,a=0;for(;++a-1&&a>u||s>-1&&a>s||o>-1&&a>o)return!0;let l=-1;for(;++l4&&t.slice(0,4).toLowerCase()==="data")return n}function JP(e){return function(t){return qP(t,e)}}const eL=le("article",{name:"MuiMarkdownRenderer",slot:"Root"})(({theme:e})=>{const{palette:t,spacing:n,typography:r}=e,i={"& pre":{overflowX:"auto"}};return{...r.body1,overflowWrap:"break-word",maxWidth:"100%",display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"stretch",gap:n(1),...i,"& think":{color:t.text.disabled},"& ul, & ol":{margin:0}}}),tL=e=>e.replace(//,` + +`).replace(/<\/think>/,` + + + +`),nL=e=>e.replace(/\\\[/g,"$$").replace(/\\\]/g,"$$").replace(/\\\(/g,"$").replace(/\\\)/g,"$"),rL={h1:e=>R.jsx(Ge,{...e,variant:"h1"}),h2:e=>R.jsx(Ge,{...e,variant:"h2"}),h3:e=>R.jsx(Ge,{...e,variant:"h3"}),h4:e=>R.jsx(Ge,{...e,variant:"h4"}),h5:e=>R.jsx(Ge,{...e,variant:"h5"}),h6:e=>R.jsx(Ge,{...e,variant:"h6"}),p:e=>R.jsx(Ge,{...e,variant:"body1"}),caption:e=>R.jsx(Ge,{...e,variant:"caption"}),table:e=>R.jsx(Kb,{children:R.jsx(Hb,{...e})}),thead:t8,tbody:qb,tr:i8,th:md,td:md},iL=["script","iframe","style","form","input","textarea"],aL={...fo,tagNames:(fo.tagNames||[]).filter(e=>!iL.includes(e))},sL=({content:e})=>(e=tL(e),e=nL(e),R.jsx(eL,{children:R.jsx(DA,{remarkPlugins:[A1,lf],rehypePlugins:[NM,jP,[A1,lf,JP,aL]],components:rL,children:e})})),IL=()=>{const[{status:e,messages:t}]=qf(),n=_.useRef(null),r=_.useRef(null),[i,a]=_.useState(!0);_.useEffect(()=>{r.current?.scrollIntoView({behavior:"smooth"})},[t]);const s=$s(o=>{const{current:u}=n;u&&a(u.scrollHeight-u.scrollTop-u.clientHeight<10)});return R.jsxs(Qe,{ref:n,sx:{flex:1,overflowX:"hidden",overflowY:"auto",gap:4,"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none",msOverflowStyle:"none"},onScroll:s,children:[t.map((o,u)=>R.jsx(oL,{message:o,isLast:u===t.length-1},o.id)),e==="opened"&&R.jsx(kx,{size:"large"}),R.jsx(Ar,{ref:r,sx:{width:"100%",height:0}}),!i&&R.jsx(Kr,{onClick:()=>r.current?.scrollIntoView({behavior:"smooth"}),size:"small",sx:{position:"sticky",bottom:0,alignSelf:"flex-end",mr:1.5,width:28,height:28,bgcolor:"white",border:"1px solid",borderColor:"grey.300","&:hover":{bgcolor:"grey.100"}},"aria-label":"Scroll to bottom",children:R.jsx(s8,{})})]})},oL=_.memo(({message:e,isLast:t})=>{const{role:n,content:r}=e,[{status:i},{generate:a}]=qf(),[s,o]=_.useState(!1);_.useEffect(()=>{const S=setTimeout(()=>o(!1),2e3);return()=>clearTimeout(S)},[s]);const u=$s(()=>{navigator.clipboard.writeText(r),o(!0)}),l=$s(()=>{a(e)}),c=n==="user"?"flex-end":"flex-start",d=n==="user"?R.jsx(Ge,{variant:"body1",sx:{px:2,py:1.5,borderRadius:"0.5rem",backgroundColor:"background.default"},children:r}):R.jsx(sL,{content:r}),p=!t||i==="closed",f=n==="user"||n==="assistant"&&p,b=n==="assistant"&&p,T=n==="user"?{"&:hover .actions-user":{opacity:1,pointerEvents:"auto"}}:{};return R.jsx(Qe,{direction:"row",sx:{width:"100%",justifyContent:c},children:R.jsxs(Qe,{sx:{maxWidth:"100%",gap:1,...T},children:[d,(f||b)&&R.jsxs(Qe,{direction:"row",className:n==="user"?"actions-user":void 0,sx:{justifyContent:c,color:"grey.600",gap:.5,...n==="user"?{opacity:0,pointerEvents:"none",transition:"opacity .15s ease"}:{}},children:[f&&R.jsx(Xs,{title:s?"Copied!":"Copy",slotProps:{tooltip:{sx:{bgcolor:"primary.main",borderRadius:1}},popper:{modifiers:[{name:"offset",options:{offset:[0,-8]}}]}},children:R.jsx(Kr,{onClick:u,size:"small",sx:{width:24,height:24,borderRadius:"8px","&:hover":{bgcolor:"action.hover"}},children:s?R.jsx(Sp,{}):R.jsx(wp,{})})}),b&&R.jsx(Xs,{title:"Regenerate",slotProps:{tooltip:{sx:{bgcolor:"primary.main",borderRadius:1}},popper:{modifiers:[{name:"offset",options:{offset:[0,-8]}}]}},children:R.jsx(Kr,{onClick:l,size:"small",sx:{width:24,height:24,borderRadius:"8px","&:hover":{bgcolor:"action.hover"}},children:R.jsx(E8,{})})})]},"actions")]})})}),uL=le(Qe)(({theme:e})=>{const{spacing:t}=e;return{width:"100%",height:"100%",justifyContent:"flex-start",alignItems:"stretch",overflow:"hidden"}}),lL=le(Qe)(({theme:e})=>{const{palette:t,spacing:n}=e;return{height:"100%",paddingBlock:n(3),paddingInline:n(2),gap:n(3),overflow:"hidden",transition:"width 0.3s ease-in-out",backgroundColor:t.grey[200]}}),cL=le(Qe)(({theme:e})=>{const{spacing:t}=e;return{width:"100%",height:"4rem",flex:"none",paddingBlock:t(2),paddingInline:t(4),overflow:"hidden"}}),dL=le(Qe)(({theme:e})=>{const{palette:t,spacing:n}=e;return{flex:1,alignItems:"center",overflow:"hidden",backgroundColor:t.grey[100]}}),hL=le(Qe)(({theme:e})=>{const{spacing:t}=e;return{width:"48.75rem",maxWidth:"100%",height:"100%",gap:t(2),padding:t(4),overflow:"hidden"}}),NL=({children:e})=>{const[{modelName:t,clusterInfo:{status:n}}]=ja(),[r,{open:i}]=$o({color:"primary",titleIcon:R.jsx(Ls,{}),title:"Reconnect your nodes",content:R.jsxs(Qe,{sx:{gap:7},children:[R.jsxs(Qe,{sx:{gap:1},children:[R.jsx(Ge,{variant:"body1",children:"Run join command on your new Node"}),R.jsx(Td,{})]}),R.jsxs(Qe,{sx:{gap:1},children:[R.jsx(Ge,{variant:"body1",children:"Check your live node status"}),R.jsx(Ge,{variant:"body2",color:"text.disabled",children:"After you successfully start the server on the nodes, you should see them show up on the below dashboard."}),R.jsx(vs,{})]})]}),confirmLabel:"Finish"});_.useEffect(()=>{n==="waiting"&&i()},[n,i]);const[a,{open:s}]=$o({color:"primary",title:"",content:R.jsxs(R.Fragment,{children:[R.jsx(Ge,{variant:"body1",children:"Cluster rebalancing"}),R.jsx(Ge,{variant:"body2",color:"text.disabled",children:"We have noticed one of your nodes has been disconnected. We are now rebalancing your inference requests onto working nodes. Please wait a few seconds for the cluster to rebalance itself."}),R.jsx(vs,{variant:"menu"})]}),confirmLabel:"Finish"});_.useEffect(()=>{n==="rebalancing"&&s()},[n,s]);const[o,u]=_.useState(!0),[l,{open:c}]=$o({color:"primary",titleIcon:R.jsx(c8,{}),title:"Add Nodes",content:R.jsxs(Qe,{sx:{gap:7},children:[R.jsxs(Qe,{sx:{gap:1},children:[R.jsx(Ge,{variant:"body1",children:"Run join command on your new Node"}),R.jsx(Td,{})]}),R.jsxs(Qe,{sx:{gap:1},children:[R.jsx(Ge,{variant:"body1",children:"Check your live node status"}),R.jsx(Ge,{variant:"body2",color:"text.disabled",children:"After you successfully start the server on the nodes, you should see them show up on the below dashboard."}),R.jsx(vs,{})]})]}),confirmLabel:"Finish"});return R.jsxs(uL,{direction:"row",children:[R.jsxs(lL,{sx:{width:o?"21.875rem":"3.5rem"},children:[R.jsx(Qe,{direction:"row",sx:{justifyContent:"flex-end",alignItems:"center",gap:2},children:o?R.jsxs(R.Fragment,{children:[R.jsx(yd,{}),R.jsx(Ar,{sx:{flex:1}}),R.jsx(Xs,{title:"Collapse Sidebar",placement:"right",slotProps:{tooltip:{sx:{bgcolor:"primary.main",color:"common.white"}}},children:R.jsx(Kr,{size:"em",sx:{fontSize:"1.5rem",borderRadius:"8px","&:hover":{bgcolor:"action.hover"}},onClick:()=>u(d=>!d),children:R.jsx(p8,{})})})]}):R.jsx(R.Fragment,{children:R.jsxs(Ar,{sx:{position:"relative",width:28,height:28,display:"flex",alignItems:"center",justifyContent:"center","&:hover .logo":{opacity:0},"&:hover .toggle":{opacity:1,pointerEvents:"auto",transform:"scale(1)"}},children:[R.jsx(Ar,{className:"logo",sx:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity .15s ease",opacity:1},children:R.jsx(yd,{})}),R.jsx(Xs,{title:"Expand Sidebar",placement:"right",slotProps:{tooltip:{sx:{bgcolor:"primary.main",color:"common.white"}}},children:R.jsx(Kr,{className:"toggle",size:"em",sx:{position:"absolute",opacity:0,pointerEvents:"none",fontSize:"1.5rem",transition:"opacity .15s ease, transform .15s ease","&:hover":{bgcolor:"action.hover"}},"aria-label":"Expand Sidebar",onClick:()=>u(d=>!d),children:R.jsx(g8,{})})})]})})}),o&&R.jsxs(Qe,{sx:{gap:4},children:[R.jsxs(Qe,{direction:"row",sx:{gap:1,color:"text.disabled"},children:[R.jsx(w8,{size:"1.25rem"}),R.jsx(Ge,{variant:"body1",sx:{fontWeight:"bolder",textTransform:"uppercase"},children:"Cluster topology"})]}),R.jsx(vs,{variant:"menu"}),R.jsx(Vf,{color:"info",startIcon:R.jsx(T8,{}),onClick:c,children:"Add Nodes"})]})]}),R.jsxs(dL,{children:[R.jsx(cL,{direction:"row",children:R.jsx(Ge,{variant:"h2",fontWeight:500,children:t})}),R.jsx(hL,{children:e})]}),l,r,a]})},fL=le(Qe)(({theme:e})=>{const{palette:t,spacing:n}=e;return{width:"100%",height:"100%",display:"flex",alignItems:"center",gap:n(3),padding:n(3),overflow:"hidden",backgroundColor:t.grey[100]}}),pL=le(Qe)(({theme:e})=>{const{spacing:t}=e;return{width:"100%",flex:"none",justifyContent:"flex-start",alignItems:"center",gap:t(1)}}),mL=le(Ar)(({theme:e})=>{const{spacing:t}=e;return{position:"relative",flex:"1",width:"100%",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",overflowY:"hidden"}}),gL=le(Qe)(({theme:e})=>{const{spacing:t}=e;return{width:"30rem",height:"100%",gap:t(7),overflow:"hidden"}}),bL=le(Qe)(({theme:e})=>{const{spacing:t}=e;return{width:"calc((100% - 30rem) / 2 - 4rem)",height:"100%",overflow:"auto",position:"absolute",top:0,left:"2rem",alignItems:"flex-end",gap:t(2)}}),yL=le(Qe)(({theme:e})=>{const{spacing:t}=e;return{width:"calc((100% - 30rem) / 2 - 4rem)",height:"100%",overflow:"auto",position:"absolute",top:0,right:"2rem",alignItems:"flex-start",gap:t(2)}}),ML=({children:e,contentStart:t,contentEnd:n=R.jsx(vL,{})})=>R.jsxs(fL,{children:[R.jsx(pL,{direction:"row",children:R.jsx(N8,{})}),R.jsxs(mL,{children:[R.jsx(gL,{children:e}),t&&R.jsx(bL,{children:t})||void 0,n&&R.jsx(yL,{children:n})||void 0]})]}),vL=()=>{const[{initNodesNumber:e,networkType:t,modelName:n,clusterInfo:r}]=ja();return null};export{IL as C,kx as D,ap as F,T8 as I,Td as J,ML as M,vs as N,vp as O,xp as S,EL as a,xL as b,sp as c,dp as d,hp as e,r0 as f,NL as g,W6 as i,i0 as u}; diff --git a/src/frontend/dist/assets/main-layout-CMeEP11X.js b/src/frontend/dist/assets/main-layout-CMeEP11X.js deleted file mode 100644 index 40ae45d3..00000000 --- a/src/frontend/dist/assets/main-layout-CMeEP11X.js +++ /dev/null @@ -1,396 +0,0 @@ -import{y as W4,z as Y4,r as O,C as G4,D as K4,j as D,c as Be,_ as X4,R as Ma,E as Q4,F as Ra,G as D1,H as Z4,J as J4,k as rn,K as e3,M as Lr,N as t3,O as au,s as ue,u as Xe,P as n3,Q as Ji,m as vt,U as ea,b as Tt,d as je,V as r3,W as _1,g as ut,a as pt,X as i3,Y as Ns,w as At,Z as a3,$ as s3,a0 as o3,a1 as u3,a2 as Ms,v as L1,a3 as l3,a4 as c3,T as Ue,q as _n,a5 as d3,a6 as sl,h as ol,a7 as h3,a8 as f3,a9 as H0,aa as m3,B as p3,ab as z0,ac as U0,ad as g3,ae as Sn,af as b3,ag as P1,ah as O1,ai as y3,aj as T3,ak as E3,al as V0,i as En,am as x3,an as j0,ao as v3,ap as q0,aq as Ja,I as ul,ar as B1,p as ls,n as fa,S as Ye,l as cs,as as F1,x as H1}from"./index-DUqwdQtq.js";function S3(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,a=W4("div",{shouldForwardProp:o=>o!=="theme"&&o!=="sx"&&o!=="as"})(Y4);return O.forwardRef(function(u,l){const c=G4(n),{className:d,component:m="div",...p}=K4(u);return D.jsx(a,{as:m,ref:l,className:Be(d,i?i(r):r),theme:t&&c[t]||c,...p})})}function A3(e,t){return O.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function C3(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function w3(e){return parseFloat(e)}function $0(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function z1(e,t=166){let n;function r(...i){const a=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function Tn(e){return e&&e.ownerDocument||document}function Wn(e){return Tn(e).defaultView||window}function W0(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Y0(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:a}=O.useRef(t!==void 0),[s,o]=O.useState(n),u=a?t:s,l=O.useCallback(c=>{a||o(c)},[]);return[u,l]}function k3(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function I3(e,t){if(!e)return t;function n(s,o){const u={};return Object.keys(o).forEach(l=>{k3(l,o[l])&&typeof s[l]=="function"&&(u[l]=(...c)=>{s[l](...c),o[l](...c)})}),u}if(typeof e=="function"||typeof t=="function")return s=>{const o=typeof t=="function"?t(s):t,u=typeof e=="function"?e({...s,...o}):e,l=Be(s?.className,o?.className,u?.className),c=n(u,o);return{...o,...u,...c,...!!l&&{className:l},...o?.style&&u?.style&&{style:{...o.style,...u.style}},...o?.sx&&u?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,i=n(e,r),a=Be(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const G0={disabled:!1};var N3=function(t){return t.scrollTop},Li="unmounted",wr="exited",kr="entering",Wr="entered",su="exiting",Ln=(function(e){X4(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=i,o=s&&!s.isMounting?r.enter:r.appear,u;return a.appearStatus=null,r.in?o?(u=wr,a.appearStatus=kr):u=Wr:r.unmountOnExit||r.mountOnEnter?u=Li:u=wr,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===Li?{status:wr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==kr&&s!==Wr&&(a=kr):(s===kr||s===Wr)&&(a=su)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,s,o;return a=s=o=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,o=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:o}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===kr){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ma.findDOMNode(this);s&&N3(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===wr&&this.setState({status:Li})},n.performEnter=function(i){var a=this,s=this.props.enter,o=this.context?this.context.isMounting:i,u=this.props.nodeRef?[o]:[Ma.findDOMNode(this),o],l=u[0],c=u[1],d=this.getTimeouts(),m=o?d.appear:d.enter;if(!i&&!s||G0.disabled){this.safeSetState({status:Wr},function(){a.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:kr},function(){a.props.onEntering(l,c),a.onTransitionEnd(m,function(){a.safeSetState({status:Wr},function(){a.props.onEntered(l,c)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:Ma.findDOMNode(this);if(!a||G0.disabled){this.safeSetState({status:wr},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:su},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:wr},function(){i.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,a.nextCallback=null,i(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:Ma.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Li)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var o=Q4(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ra.createElement(D1.Provider,{value:null},typeof s=="function"?s(i,o):Ra.cloneElement(Ra.Children.only(s),o))},t})(Ra.Component);Ln.contextType=D1;Ln.propTypes={};function Vr(){}Ln.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vr,onEntering:Vr,onEntered:Vr,onExit:Vr,onExiting:Vr,onExited:Vr};Ln.UNMOUNTED=Li;Ln.EXITED=wr;Ln.ENTERING=kr;Ln.ENTERED=Wr;Ln.EXITING=su;const U1=e=>e.scrollTop;function ds(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}function M3(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,s=i?{}:Z4(n,r),{props:o,internalRef:u}=J4({...a,externalSlotProps:s}),l=rn(u,s?.ref,e.additionalProps?.ref);return e3(t,{...o,ref:l},r)}function ma(e){return parseInt(O.version,10)>=19?e?.props?.ref||null:e?.ref||null}function R3(e){return typeof e=="function"?e():e}const D3=O.forwardRef(function(t,n){const{children:r,container:i,disablePortal:a=!1}=t,[s,o]=O.useState(null),u=rn(O.isValidElement(r)?ma(r):null,n);if(Lr(()=>{a||o(R3(i)||document.body)},[i,a]),Lr(()=>{if(s&&!a)return W0(n,s),()=>{W0(n,null)}},[n,s,a]),a){if(O.isValidElement(r)){const l={ref:u};return O.cloneElement(r,l)}return r}return s&&t3.createPortal(r,s)});function Da(e){return parseInt(e,10)||0}const _3={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function L3(e){for(const t in e)return!1;return!0}function K0(e){return L3(e)||e.outerHeightStyle===0&&!e.overflowing}const P3=O.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:a=1,style:s,value:o,...u}=t,{current:l}=O.useRef(o!=null),c=O.useRef(null),d=rn(n,c),m=O.useRef(null),p=O.useRef(null),b=O.useCallback(()=>{const v=c.current,L=p.current;if(!v||!L)return;const k=Wn(v).getComputedStyle(v);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};L.style.width=k.width,L.value=v.value||t.placeholder||"x",L.value.slice(-1)===` -`&&(L.value+=" ");const V=k.boxSizing,U=Da(k.paddingBottom)+Da(k.paddingTop),q=Da(k.borderBottomWidth)+Da(k.borderTopWidth),B=L.scrollHeight;L.value="x";const K=L.scrollHeight;let Y=B;a&&(Y=Math.max(Number(a)*K,Y)),i&&(Y=Math.min(Number(i)*K,Y)),Y=Math.max(Y,K);const X=Y+(V==="border-box"?U+q:0),j=Math.abs(Y-B)<=1;return{outerHeightStyle:X,overflowing:j}},[i,a,t.placeholder]),E=au(()=>{const v=c.current,L=b();if(!v||!L||K0(L))return!1;const P=L.outerHeightStyle;return m.current!=null&&m.current!==P}),C=O.useCallback(()=>{const v=c.current,L=b();if(!v||!L||K0(L))return;const P=L.outerHeightStyle;m.current!==P&&(m.current=P,v.style.height=`${P}px`),v.style.overflow=L.overflowing?"hidden":""},[b]),T=O.useRef(-1);Lr(()=>{const v=z1(C),L=c?.current;if(!L)return;const P=Wn(L);P.addEventListener("resize",v);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(()=>{E()&&(k.unobserve(L),cancelAnimationFrame(T.current),C(),T.current=requestAnimationFrame(()=>{k.observe(L)}))}),k.observe(L)),()=>{v.clear(),cancelAnimationFrame(T.current),P.removeEventListener("resize",v),k&&k.disconnect()}},[b,C,E]),Lr(()=>{C()});const S=v=>{l||C();const L=v.target,P=L.value.length,k=L.value.endsWith(` -`),V=L.selectionStart===P;k&&V&&L.setSelectionRange(P,P),r&&r(v)};return D.jsxs(O.Fragment,{children:[D.jsx("textarea",{value:o,onChange:S,ref:d,rows:a,style:s,...u}),D.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:{..._3.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function ll({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const V1=O.createContext(void 0);function cl(){return O.useContext(V1)}function X0(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function j1(e,t=!1){return e&&(X0(e.value)&&e.value!==""||t&&X0(e.defaultValue)&&e.defaultValue!=="")}function LR(e){return e.startAdornment}var Q0;const Rs=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Tt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Ds=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},O3=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:s,formControl:o,fullWidth:u,hiddenLabel:l,multiline:c,readOnly:d,size:m,startAdornment:p,type:b}=e,E={root:["root",`color${Tt(n)}`,r&&"disabled",i&&"error",u&&"fullWidth",s&&"focused",o&&"formControl",m&&m!=="medium"&&`size${Tt(m)}`,c&&"multiline",p&&"adornedStart",a&&"adornedEnd",l&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",c&&"inputMultiline",m==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",p&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return je(E,r3,t)},_s=ue("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Rs})(vt(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ea.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Ls=ue("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ds})(vt(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ea.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${ea.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Z0=n3({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),dl=O.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:o,color:u,components:l={},componentsProps:c={},defaultValue:d,disabled:m,disableInjectingGlobalStyles:p,endAdornment:b,error:E,fullWidth:C=!1,id:T,inputComponent:S="input",inputProps:v={},inputRef:L,margin:P,maxRows:k,minRows:V,multiline:U=!1,name:q,onBlur:B,onChange:K,onClick:Y,onFocus:X,onKeyDown:j,onKeyUp:W,placeholder:ne,readOnly:le,renderSuffix:fe,rows:oe,size:I,slotProps:De={},slots:Ae={},startAdornment:_,type:_e="text",value:Ve,...He}=r,qe=v.value!=null?v.value:Ve,{current:$e}=O.useRef(qe!=null),We=O.useRef(),xe=O.useCallback(Le=>{},[]),Pe=rn(We,L,v.ref,xe),[ze,dt]=O.useState(!1),Oe=cl(),Qe=ll({props:r,muiFormControl:Oe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Qe.focused=Oe?Oe.focused:ze,O.useEffect(()=>{!Oe&&m&&ze&&(dt(!1),B&&B())},[Oe,m,ze,B]);const Pt=Oe&&Oe.onFilled,Ot=Oe&&Oe.onEmpty,wt=O.useCallback(Le=>{j1(Le)?Pt&&Pt():Ot&&Ot()},[Pt,Ot]);Lr(()=>{$e&&wt({value:qe})},[qe,wt,$e]);const Vt=Le=>{X&&X(Le),v.onFocus&&v.onFocus(Le),Oe&&Oe.onFocus?Oe.onFocus(Le):dt(!0)},Qt=Le=>{B&&B(Le),v.onBlur&&v.onBlur(Le),Oe&&Oe.onBlur?Oe.onBlur(Le):dt(!1)},kt=(Le,...jt)=>{if(!$e){const qt=Le.target||We.current;if(qt==null)throw new Error(_1(1));wt({value:qt.value})}v.onChange&&v.onChange(Le,...jt),K&&K(Le,...jt)};O.useEffect(()=>{wt(We.current)},[]);const vn=Le=>{We.current&&Le.currentTarget===Le.target&&We.current.focus(),Y&&Y(Le)};let er=S,Nt=v;U&&er==="input"&&(oe?Nt={type:void 0,minRows:oe,maxRows:oe,...Nt}:Nt={type:void 0,maxRows:k,minRows:V,...Nt},er=P3);const tr=Le=>{wt(Le.animationName==="mui-auto-fill-cancel"?We.current:{value:"x"})};O.useEffect(()=>{Oe&&Oe.setAdornedStart(!!_)},[Oe,_]);const G={...r,color:Qe.color||"primary",disabled:Qe.disabled,endAdornment:b,error:Qe.error,focused:Qe.focused,formControl:Oe,fullWidth:C,hiddenLabel:Qe.hiddenLabel,multiline:U,size:Qe.size,startAdornment:_,type:_e},ae=O3(G),ye=Ae.root||l.Root||_s,ve=De.root||c.root||{},Me=Ae.input||l.Input||Ls;return Nt={...Nt,...De.input??c.input},D.jsxs(O.Fragment,{children:[!p&&typeof Z0=="function"&&(Q0||(Q0=D.jsx(Z0,{}))),D.jsxs(ye,{...ve,ref:n,onClick:vn,...He,...!Ji(ye)&&{ownerState:{...G,...ve.ownerState}},className:Be(ae.root,ve.className,o,le&&"MuiInputBase-readOnly"),children:[_,D.jsx(V1.Provider,{value:null,children:D.jsx(Me,{"aria-invalid":Qe.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:d,disabled:Qe.disabled,id:T,onAnimationStart:tr,name:q,placeholder:ne,readOnly:le,required:Qe.required,rows:oe,value:qe,onKeyDown:j,onKeyUp:W,type:_e,...Nt,...!Ji(Me)&&{as:er,ownerState:{...G,...Nt.ownerState}},ref:Pe,className:Be(ae.input,Nt.className,le&&"MuiInputBase-readOnly"),onBlur:Qt,onChange:kt,onFocus:Vt})}),b,fe?fe({...Qe,startAdornment:_}):null]})]})});function B3(e){return pt("MuiInput",e)}const Si={...ea,...ut("MuiInput",["root","underline","input"])};function F3(e){return pt("MuiFilledInput",e)}const Er={...ea,...ut("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},H3=i3(D.jsx("path",{d:"M7 10l5 5 5-5z"})),z3={entering:{opacity:1},entered:{opacity:1}},ou=O.forwardRef(function(t,n){const r=Ns(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:o,easing:u,in:l,onEnter:c,onEntered:d,onEntering:m,onExit:p,onExited:b,onExiting:E,style:C,timeout:T=i,TransitionComponent:S=Ln,...v}=t,L=O.useRef(null),P=rn(L,ma(o),n),k=j=>W=>{if(j){const ne=L.current;W===void 0?j(ne):j(ne,W)}},V=k(m),U=k((j,W)=>{U1(j);const ne=ds({style:C,timeout:T,easing:u},{mode:"enter"});j.style.webkitTransition=r.transitions.create("opacity",ne),j.style.transition=r.transitions.create("opacity",ne),c&&c(j,W)}),q=k(d),B=k(E),K=k(j=>{const W=ds({style:C,timeout:T,easing:u},{mode:"exit"});j.style.webkitTransition=r.transitions.create("opacity",W),j.style.transition=r.transitions.create("opacity",W),p&&p(j)}),Y=k(b),X=j=>{a&&a(L.current,j)};return D.jsx(S,{appear:s,in:l,nodeRef:L,onEnter:U,onEntered:q,onEntering:V,onExit:K,onExited:Y,onExiting:B,addEndListener:X,timeout:T,...v,children:(j,{ownerState:W,...ne})=>O.cloneElement(o,{style:{opacity:0,visibility:j==="exited"&&!l?"hidden":void 0,...z3[j],...C,...o.props.style},ref:P,...ne})})});function U3(e){return pt("MuiBackdrop",e)}ut("MuiBackdrop",["root","invisible"]);const V3=e=>{const{classes:t,invisible:n}=e;return je({root:["root",n&&"invisible"]},U3,t)},j3=ue("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),q1=O.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiBackdrop"}),{children:i,className:a,component:s="div",invisible:o=!1,open:u,components:l={},componentsProps:c={},slotProps:d={},slots:m={},TransitionComponent:p,transitionDuration:b,...E}=r,C={...r,component:s,invisible:o},T=V3(C),S={transition:p,root:l.Root,...m},v={...c,...d},L={component:s,slots:S,slotProps:v},[P,k]=At("root",{elementType:j3,externalForwardedProps:L,className:Be(T.root,a),ownerState:C}),[V,U]=At("transition",{elementType:ou,externalForwardedProps:L,ownerState:C});return D.jsx(V,{in:u,timeout:b,...E,...U,children:D.jsx(P,{"aria-hidden":!0,...k,classes:T,ref:n,children:i})})}),q3=ut("MuiBox",["root"]),$3=o3(),ci=S3({themeId:s3,defaultTheme:$3,defaultClassName:q3.root,generateClassName:a3.generate});function $1(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function W3(e){const t=Tn(e);return t.body===e?Wn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Fi(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function J0(e){return parseInt(Wn(e).getComputedStyle(e).paddingRight,10)||0}function Y3(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function ec(e,t,n,r,i){const a=[t,n,...r];[].forEach.call(e.children,s=>{const o=!a.includes(s),u=!Y3(s);o&&u&&Fi(s,i)})}function no(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function G3(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(W3(r)){const s=$1(Wn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${J0(r)+s}px`;const o=Tn(r).querySelectorAll(".mui-fixed");[].forEach.call(o,u=>{n.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${J0(u)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=Tn(r).body;else{const s=r.parentElement,o=Wn(r);a=s?.nodeName==="HTML"&&o.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:o})=>{a?s.style.setProperty(o,a):s.style.removeProperty(o)})}}function K3(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class X3{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Fi(t.modalRef,!1);const i=K3(n);ec(n,t.mount,t.modalRef,i,!0);const a=no(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=no(this.containers,a=>a.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=G3(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=no(this.containers,s=>s.modals.includes(t)),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Fi(t.modalRef,n),ec(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&Fi(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Q3=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Z3(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function J3(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function e6(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||J3(e))}function t6(e){const t=[],n=[];return Array.from(e.querySelectorAll(Q3)).forEach((r,i)=>{const a=Z3(r);a===-1||!e6(r)||(a===0?t.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function n6(){return!0}function r6(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=t6,isEnabled:s=n6,open:o}=e,u=O.useRef(!1),l=O.useRef(null),c=O.useRef(null),d=O.useRef(null),m=O.useRef(null),p=O.useRef(!1),b=O.useRef(null),E=rn(ma(t),b),C=O.useRef(null);O.useEffect(()=>{!o||!b.current||(p.current=!n)},[n,o]),O.useEffect(()=>{if(!o||!b.current)return;const v=Tn(b.current);return b.current.contains(v.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),p.current&&b.current.focus()),()=>{i||(d.current&&d.current.focus&&(u.current=!0,d.current.focus()),d.current=null)}},[o]),O.useEffect(()=>{if(!o||!b.current)return;const v=Tn(b.current),L=V=>{C.current=V,!(r||!s()||V.key!=="Tab")&&v.activeElement===b.current&&V.shiftKey&&(u.current=!0,c.current&&c.current.focus())},P=()=>{const V=b.current;if(V===null)return;if(!v.hasFocus()||!s()||u.current){u.current=!1;return}if(V.contains(v.activeElement)||r&&v.activeElement!==l.current&&v.activeElement!==c.current)return;if(v.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!p.current)return;let U=[];if((v.activeElement===l.current||v.activeElement===c.current)&&(U=a(b.current)),U.length>0){const q=!!(C.current?.shiftKey&&C.current?.key==="Tab"),B=U[0],K=U[U.length-1];typeof B!="string"&&typeof K!="string"&&(q?K.focus():B.focus())}else V.focus()};v.addEventListener("focusin",P),v.addEventListener("keydown",L,!0);const k=setInterval(()=>{v.activeElement&&v.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(k),v.removeEventListener("focusin",P),v.removeEventListener("keydown",L,!0)}},[n,r,i,s,o,a]);const T=v=>{d.current===null&&(d.current=v.relatedTarget),p.current=!0,m.current=v.target;const L=t.props.onFocus;L&&L(v)},S=v=>{d.current===null&&(d.current=v.relatedTarget),p.current=!0};return D.jsxs(O.Fragment,{children:[D.jsx("div",{tabIndex:o?0:-1,onFocus:S,ref:l,"data-testid":"sentinelStart"}),O.cloneElement(t,{ref:E,onFocus:T}),D.jsx("div",{tabIndex:o?0:-1,onFocus:S,ref:c,"data-testid":"sentinelEnd"})]})}function i6(e){return typeof e=="function"?e():e}function a6(e){return e?e.props.hasOwnProperty("in"):!1}const tc=()=>{},_a=new X3;function s6(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:o,onClose:u,open:l,rootRef:c}=e,d=O.useRef({}),m=O.useRef(null),p=O.useRef(null),b=rn(p,c),[E,C]=O.useState(!l),T=a6(o);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const v=()=>Tn(m.current),L=()=>(d.current.modalRef=p.current,d.current.mount=m.current,d.current),P=()=>{_a.mount(L(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},k=au(()=>{const W=i6(t)||v().body;_a.add(L(),W),p.current&&P()}),V=()=>_a.isTopModal(L()),U=au(W=>{m.current=W,W&&(l&&V()?P():p.current&&Fi(p.current,S))}),q=O.useCallback(()=>{_a.remove(L(),S)},[S]);O.useEffect(()=>()=>{q()},[q]),O.useEffect(()=>{l?k():(!T||!i)&&q()},[l,q,T,i,k]);const B=W=>ne=>{W.onKeyDown?.(ne),!(ne.key!=="Escape"||ne.which===229||!V())&&(n||(ne.stopPropagation(),u&&u(ne,"escapeKeyDown")))},K=W=>ne=>{W.onClick?.(ne),ne.target===ne.currentTarget&&u&&u(ne,"backdropClick")};return{getRootProps:(W={})=>{const ne=u3(e);delete ne.onTransitionEnter,delete ne.onTransitionExited;const le={...ne,...W};return{role:"presentation",...le,onKeyDown:B(le),ref:b}},getBackdropProps:(W={})=>{const ne=W;return{"aria-hidden":!0,...ne,onClick:K(ne),open:l}},getTransitionProps:()=>{const W=()=>{C(!1),a&&a()},ne=()=>{C(!0),s&&s(),i&&q()};return{onEnter:$0(W,o?.props.onEnter??tc),onExited:$0(ne,o?.props.onExited??tc)}},rootRef:b,portalRef:U,isTopModal:V,exited:E,hasTransition:T}}function o6(e){return pt("MuiModal",e)}ut("MuiModal",["root","hidden","backdrop"]);const u6=e=>{const{open:t,exited:n,classes:r}=e;return je({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},o6,r)},l6=ue("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(vt(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),c6=ue(q1,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),W1=O.forwardRef(function(t,n){const r=Xe({name:"MuiModal",props:t}),{BackdropComponent:i=c6,BackdropProps:a,classes:s,className:o,closeAfterTransition:u=!1,children:l,container:c,component:d,components:m={},componentsProps:p={},disableAutoFocus:b=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:C=!1,disablePortal:T=!1,disableRestoreFocus:S=!1,disableScrollLock:v=!1,hideBackdrop:L=!1,keepMounted:P=!1,onClose:k,onTransitionEnter:V,onTransitionExited:U,open:q,slotProps:B={},slots:K={},theme:Y,...X}=r,j={...r,closeAfterTransition:u,disableAutoFocus:b,disableEnforceFocus:E,disableEscapeKeyDown:C,disablePortal:T,disableRestoreFocus:S,disableScrollLock:v,hideBackdrop:L,keepMounted:P},{getRootProps:W,getBackdropProps:ne,getTransitionProps:le,portalRef:fe,isTopModal:oe,exited:I,hasTransition:De}=s6({...j,rootRef:n}),Ae={...j,exited:I},_=u6(Ae),_e={};if(l.props.tabIndex===void 0&&(_e.tabIndex="-1"),De){const{onEnter:xe,onExited:Pe}=le();_e.onEnter=xe,_e.onExited=Pe}const Ve={slots:{root:m.Root,backdrop:m.Backdrop,...K},slotProps:{...p,...B}},[He,qe]=At("root",{ref:n,elementType:l6,externalForwardedProps:{...Ve,...X,component:d},getSlotProps:W,ownerState:Ae,className:Be(o,_?.root,!Ae.open&&Ae.exited&&_?.hidden)}),[$e,We]=At("backdrop",{ref:a?.ref,elementType:i,externalForwardedProps:Ve,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:xe=>ne({...xe,onClick:Pe=>{xe?.onClick&&xe.onClick(Pe)}}),className:Be(a?.className,_?.backdrop),ownerState:Ae});return!P&&!q&&(!De||I)?null:D.jsx(D3,{ref:fe,container:c,disablePortal:T,children:D.jsxs(He,{...qe,children:[!L&&i?D.jsx($e,{...We}):null,D.jsx(r6,{disableEnforceFocus:E,disableAutoFocus:b,disableRestoreFocus:S,isEnabled:oe,open:q,children:O.cloneElement(l,_e)})]})})});function d6(e){return pt("MuiDialog",e)}const ro=ut("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Y1=O.createContext({}),h6=ue(q1,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),f6=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${Tt(n)}`],paper:["paper",`paperScroll${Tt(n)}`,`paperWidth${Tt(String(r))}`,i&&"paperFullWidth",a&&"paperFullScreen"]};return je(s,d6,t)},m6=ue(W1,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),p6=ue("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Tt(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),g6=ue(Ms,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Tt(n.scroll)}`],t[`paperWidth${Tt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(vt(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${ro.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${ro.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${ro.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),b6=O.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiDialog"}),i=Ns(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":o,"aria-modal":u=!0,BackdropComponent:l,BackdropProps:c,children:d,className:m,disableEscapeKeyDown:p=!1,fullScreen:b=!1,fullWidth:E=!1,maxWidth:C="sm",onClick:T,onClose:S,open:v,PaperComponent:L=Ms,PaperProps:P={},scroll:k="paper",slots:V={},slotProps:U={},TransitionComponent:q=ou,transitionDuration:B=a,TransitionProps:K,...Y}=r,X={...r,disableEscapeKeyDown:p,fullScreen:b,fullWidth:E,maxWidth:C,scroll:k},j=f6(X),W=O.useRef(),ne=dt=>{W.current=dt.target===dt.currentTarget},le=dt=>{T&&T(dt),W.current&&(W.current=null,S&&S(dt,"backdropClick"))},fe=L1(o),oe=O.useMemo(()=>({titleId:fe}),[fe]),I={transition:q,...V},De={transition:K,paper:P,backdrop:c,...U},Ae={slots:I,slotProps:De},[_,_e]=At("root",{elementType:m6,shouldForwardComponentProp:!0,externalForwardedProps:Ae,ownerState:X,className:Be(j.root,m),ref:n}),[Ve,He]=At("backdrop",{elementType:h6,shouldForwardComponentProp:!0,externalForwardedProps:Ae,ownerState:X}),[qe,$e]=At("paper",{elementType:g6,shouldForwardComponentProp:!0,externalForwardedProps:Ae,ownerState:X,className:Be(j.paper,P.className)}),[We,xe]=At("container",{elementType:p6,externalForwardedProps:Ae,ownerState:X,className:j.container}),[Pe,ze]=At("transition",{elementType:ou,externalForwardedProps:Ae,ownerState:X,additionalProps:{appear:!0,in:v,timeout:B,role:"presentation"}});return D.jsx(_,{closeAfterTransition:!0,slots:{backdrop:Ve},slotProps:{backdrop:{transitionDuration:B,as:l,...He}},disableEscapeKeyDown:p,onClose:S,open:v,onClick:le,..._e,...Y,children:D.jsx(Pe,{...ze,children:D.jsx(We,{onMouseDown:ne,...xe,children:D.jsx(qe,{as:L,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":fe,"aria-modal":u,...$e,children:D.jsx(Y1.Provider,{value:oe,children:d})})})})})});function y6(e){return pt("MuiDialogActions",e)}ut("MuiDialogActions",["root","spacing"]);const T6=e=>{const{classes:t,disableSpacing:n}=e;return je({root:["root",!n&&"spacing"]},y6,t)},E6=ue("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),x6=O.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:a=!1,...s}=r,o={...r,disableSpacing:a},u=T6(o);return D.jsx(E6,{className:Be(u.root,i),ownerState:o,ref:n,...s})}),v6=e=>{const{classes:t,dividers:n}=e;return je({root:["root",n&&"dividers"]},l3,t)},S6=ue("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(vt(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${c3.root} + &`]:{paddingTop:0}}}]}))),A6=O.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiDialogContent"}),{className:i,dividers:a=!1,...s}=r,o={...r,dividers:a},u=v6(o);return D.jsx(S6,{className:Be(u.root,i),ownerState:o,ref:n,...s})});function C6(e){return pt("MuiDialogContentText",e)}ut("MuiDialogContentText",["root"]);const w6=e=>{const{classes:t}=e,r=je({root:["root"]},C6,t);return{...t,...r}},k6=ue(Ue,{shouldForwardProp:e=>_n(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),I6=O.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiDialogContentText"}),{children:i,className:a,...s}=r,o=w6(s);return D.jsx(k6,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:s,className:Be(o.root,a),...r,classes:o})}),N6=e=>{const{classes:t}=e;return je({root:["root"]},d3,t)},M6=ue(Ue,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),R6=O.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiDialogTitle"}),{className:i,id:a,...s}=r,o=r,u=N6(o),{titleId:l=a}=O.useContext(Y1);return D.jsx(M6,{component:"h2",className:Be(u.root,i),ownerState:o,ref:n,variant:"h6",id:a??l,...s})}),D6=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:s,multiline:o}=e,u={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",a==="small"&&`size${Tt(a)}`,s&&"hiddenLabel",o&&"multiline"],input:["input"]},l=je(u,F3,t);return{...t,...l}},_6=ue(_s,{shouldForwardProp:e=>_n(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Rs(e,t),!n.disableUnderline&&t.underline]}})(vt(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Er.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Er.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Er.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Er.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Er.disabled}, .${Er.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Er.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ol()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:o})=>s.multiline&&o==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),L6=ue(Ls,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ds})(vt(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),G1=O.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:a={},componentsProps:s,fullWidth:o=!1,hiddenLabel:u,inputComponent:l="input",multiline:c=!1,slotProps:d,slots:m={},type:p="text",...b}=r,E={...r,disableUnderline:i,fullWidth:o,inputComponent:l,multiline:c,type:p},C=D6(r),T={root:{ownerState:E},input:{ownerState:E}},S=d??s?sl(T,d??s):T,v=m.root??a.Root??_6,L=m.input??a.Input??L6;return D.jsx(dl,{slots:{root:v,input:L},slotProps:S,fullWidth:o,inputComponent:l,multiline:c,ref:n,type:p,...b,classes:C})});G1.muiName="Input";function uu(e){return`scale(${e}, ${e**2})`}const P6={entering:{opacity:1,transform:uu(1)},entered:{opacity:1,transform:"none"}},io=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),lu=O.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:a,easing:s,in:o,onEnter:u,onEntered:l,onEntering:c,onExit:d,onExited:m,onExiting:p,style:b,timeout:E="auto",TransitionComponent:C=Ln,...T}=t,S=h3(),v=O.useRef(),L=Ns(),P=O.useRef(null),k=rn(P,ma(a),n),V=W=>ne=>{if(W){const le=P.current;ne===void 0?W(le):W(le,ne)}},U=V(c),q=V((W,ne)=>{U1(W);const{duration:le,delay:fe,easing:oe}=ds({style:b,timeout:E,easing:s},{mode:"enter"});let I;E==="auto"?(I=L.transitions.getAutoHeightDuration(W.clientHeight),v.current=I):I=le,W.style.transition=[L.transitions.create("opacity",{duration:I,delay:fe}),L.transitions.create("transform",{duration:io?I:I*.666,delay:fe,easing:oe})].join(","),u&&u(W,ne)}),B=V(l),K=V(p),Y=V(W=>{const{duration:ne,delay:le,easing:fe}=ds({style:b,timeout:E,easing:s},{mode:"exit"});let oe;E==="auto"?(oe=L.transitions.getAutoHeightDuration(W.clientHeight),v.current=oe):oe=ne,W.style.transition=[L.transitions.create("opacity",{duration:oe,delay:le}),L.transitions.create("transform",{duration:io?oe:oe*.666,delay:io?le:le||oe*.333,easing:fe})].join(","),W.style.opacity=0,W.style.transform=uu(.75),d&&d(W)}),X=V(m),j=W=>{E==="auto"&&S.start(v.current||0,W),r&&r(P.current,W)};return D.jsx(C,{appear:i,in:o,nodeRef:P,onEnter:q,onEntered:B,onEntering:U,onExit:Y,onExited:X,onExiting:K,addEndListener:j,timeout:E==="auto"?null:E,...T,children:(W,{ownerState:ne,...le})=>O.cloneElement(a,{style:{opacity:0,transform:uu(.75),visibility:W==="exited"&&!o?"hidden":void 0,...P6[W],...b,...a.props.style},ref:k,...le})})});lu&&(lu.muiSupportAuto=!0);const O6=e=>{const{classes:t,disableUnderline:n}=e,i=je({root:["root",!n&&"underline"],input:["input"]},B3,t);return{...t,...i}},B6=ue(_s,{shouldForwardProp:e=>_n(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Rs(e,t),!n.disableUnderline&&t.underline]}})(vt(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Si.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Si.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Si.disabled}, .${Si.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Si.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ol()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),F6=ue(Ls,{name:"MuiInput",slot:"Input",overridesResolver:Ds})({}),K1=O.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:a={},componentsProps:s,fullWidth:o=!1,inputComponent:u="input",multiline:l=!1,slotProps:c,slots:d={},type:m="text",...p}=r,b=O6(r),C={root:{ownerState:{disableUnderline:i}}},T=c??s?sl(c??s,C):C,S=d.root??a.Root??B6,v=d.input??a.Input??F6;return D.jsx(dl,{slots:{root:S,input:v},slotProps:T,fullWidth:o,inputComponent:u,multiline:l,ref:n,type:m,...p,classes:b})});K1.muiName="Input";const jn=O.createContext({});function H6(e){return pt("MuiList",e)}ut("MuiList",["root","padding","dense","subheader"]);const z6=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return je({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},H6,t)},U6=ue("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),X1=O.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiList"}),{children:i,className:a,component:s="ul",dense:o=!1,disablePadding:u=!1,subheader:l,...c}=r,d=O.useMemo(()=>({dense:o}),[o]),m={...r,component:s,dense:o,disablePadding:u},p=z6(m);return D.jsx(jn.Provider,{value:d,children:D.jsxs(U6,{as:s,className:Be(p.root,a),ref:n,ownerState:m,...c,children:[l,i]})})});function V6(e){return pt("MuiListItem",e)}ut("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const j6=ut("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function q6(e){return pt("MuiListItemSecondaryAction",e)}ut("MuiListItemSecondaryAction",["root","disableGutters"]);const $6=e=>{const{disableGutters:t,classes:n}=e;return je({root:["root",t&&"disableGutters"]},q6,n)},W6=ue("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Q1=O.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiListItemSecondaryAction"}),{className:i,...a}=r,s=O.useContext(jn),o={...r,disableGutters:s.disableGutters},u=$6(o);return D.jsx(W6,{className:Be(u.root,i),ownerState:o,ref:n,...a})});Q1.muiName="ListItemSecondaryAction";const Y6=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},G6=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:i,disablePadding:a,divider:s,hasSecondaryAction:o}=e;return je({root:["root",r&&"dense",!i&&"gutters",!a&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",o&&"secondaryAction"],container:["container"]},V6,n)},K6=ue("div",{name:"MuiListItem",slot:"Root",overridesResolver:Y6})(vt(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${j6.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),X6=ue("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Q6=O.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiListItem"}),{alignItems:i="center",children:a,className:s,component:o,components:u={},componentsProps:l={},ContainerComponent:c="li",ContainerProps:{className:d,...m}={},dense:p=!1,disableGutters:b=!1,disablePadding:E=!1,divider:C=!1,secondaryAction:T,slotProps:S={},slots:v={},...L}=r,P=O.useContext(jn),k=O.useMemo(()=>({dense:p||P.dense||!1,alignItems:i,disableGutters:b}),[i,P.dense,p,b]),V=O.useRef(null),U=O.Children.toArray(a),q=U.length&&A3(U[U.length-1],["ListItemSecondaryAction"]),B={...r,alignItems:i,dense:k.dense,disableGutters:b,disablePadding:E,divider:C,hasSecondaryAction:q},K=G6(B),Y=rn(V,n),X=v.root||u.Root||K6,j=S.root||l.root||{},W={className:Be(K.root,j.className,s),...L};let ne=o||"li";return q?(ne=!W.component&&!o?"div":ne,c==="li"&&(ne==="li"?ne="div":W.component==="li"&&(W.component="div")),D.jsx(jn.Provider,{value:k,children:D.jsxs(X6,{as:c,className:Be(K.container,d),ref:Y,ownerState:B,...m,children:[D.jsx(X,{...j,...!Ji(X)&&{as:ne,ownerState:{...B,...j.ownerState}},...W,children:U}),U.pop()]})})):D.jsx(jn.Provider,{value:k,children:D.jsxs(X,{...j,as:ne,ref:Y,...!Ji(X)&&{ownerState:{...B,...j.ownerState}},...W,children:[U,T&&D.jsx(Q1,{children:T})]})})}),Z6=e=>{const{alignItems:t,classes:n}=e;return je({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},f3,n)},J6=ue("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(vt(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),eg=O.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiListItemIcon"}),{className:i,...a}=r,s=O.useContext(jn),o={...r,alignItems:s.alignItems},u=Z6(o);return D.jsx(J6,{className:Be(u.root,i),ownerState:o,ref:n,...a})});function tg(e){return pt("MuiListItemText",e)}const Gr=ut("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ng=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return je({root:["root",n&&"inset",a&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},tg,t)},rg=ue("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Gr.primary}`]:t.primary},{[`& .${Gr.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${H0.root}:where(& .${Gr.primary})`]:{display:"block"},[`.${H0.root}:where(& .${Gr.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),ig=O.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiListItemText"}),{children:i,className:a,disableTypography:s=!1,inset:o=!1,primary:u,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:d,slots:m={},slotProps:p={},...b}=r,{dense:E}=O.useContext(jn);let C=u??i,T=c;const S={...r,disableTypography:s,inset:o,primary:!!C,secondary:!!T,dense:E},v=ng(S),L={slots:m,slotProps:{primary:l,secondary:d,...p}},[P,k]=At("root",{className:Be(v.root,a),elementType:rg,externalForwardedProps:{...L,...b},ownerState:S,ref:n}),[V,U]=At("primary",{className:v.primary,elementType:Ue,externalForwardedProps:L,ownerState:S}),[q,B]=At("secondary",{className:v.secondary,elementType:Ue,externalForwardedProps:L,ownerState:S});return C!=null&&C.type!==Ue&&!s&&(C=D.jsx(V,{variant:E?"body2":"body1",component:U?.variant?void 0:"span",...U,children:C})),T!=null&&T.type!==Ue&&!s&&(T=D.jsx(q,{variant:"body2",color:"textSecondary",...B,children:T})),D.jsxs(P,{...k,children:[C,T]})});function ao(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function nc(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Z1(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Ai(e,t,n,r,i,a){let s=!1,o=i(e,t,t?n:!1);for(;o;){if(o===e.firstChild){if(s)return!1;s=!0}const u=r?!1:o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||!Z1(o,a)||u)o=i(e,o,n);else return o.focus(),!0}return!1}const ag=O.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:a=!1,children:s,className:o,disabledItemsFocusable:u=!1,disableListWrap:l=!1,onKeyDown:c,variant:d="selectedMenu",...m}=t,p=O.useRef(null),b=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Lr(()=>{i&&p.current.focus()},[i]),O.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(v,{direction:L})=>{const P=!p.current.style.width;if(v.clientHeight{const L=p.current,P=v.key;if(v.ctrlKey||v.metaKey||v.altKey){c&&c(v);return}const V=Tn(L).activeElement;if(P==="ArrowDown")v.preventDefault(),Ai(L,V,l,u,ao);else if(P==="ArrowUp")v.preventDefault(),Ai(L,V,l,u,nc);else if(P==="Home")v.preventDefault(),Ai(L,null,l,u,ao);else if(P==="End")v.preventDefault(),Ai(L,null,l,u,nc);else if(P.length===1){const U=b.current,q=P.toLowerCase(),B=performance.now();U.keys.length>0&&(B-U.lastTime>500?(U.keys=[],U.repeating=!0,U.previousKeyMatched=!0):U.repeating&&q!==U.keys[0]&&(U.repeating=!1)),U.lastTime=B,U.keys.push(q);const K=V&&!U.repeating&&Z1(V,U);U.previousKeyMatched&&(K||Ai(L,V,!1,u,ao,U))?v.preventDefault():U.previousKeyMatched=!1}c&&c(v)},C=rn(p,n);let T=-1;O.Children.forEach(s,(v,L)=>{if(!O.isValidElement(v)){T===L&&(T+=1,T>=s.length&&(T=-1));return}v.props.disabled||(d==="selectedMenu"&&v.props.selected||T===-1)&&(T=L),T===L&&(v.props.disabled||v.props.muiSkipListHighlight||v.type.muiSkipListHighlight)&&(T+=1,T>=s.length&&(T=-1))});const S=O.Children.map(s,(v,L)=>{if(L===T){const P={};return a&&(P.autoFocus=!0),v.props.tabIndex===void 0&&d==="selectedMenu"&&(P.tabIndex=0),O.cloneElement(v,P)}return v});return D.jsx(X1,{role:"menu",ref:C,className:o,onKeyDown:E,tabIndex:i?0:-1,...m,children:S})});function sg(e){return pt("MuiPopover",e)}ut("MuiPopover",["root","paper"]);function rc(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function ic(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function ac(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function La(e){return typeof e=="function"?e():e}const og=e=>{const{classes:t}=e;return je({root:["root"],paper:["paper"]},sg,t)},ug=ue(W1,{name:"MuiPopover",slot:"Root"})({}),J1=ue(Ms,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),lg=O.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiPopover"}),{action:i,anchorEl:a,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:o,anchorReference:u="anchorEl",children:l,className:c,container:d,elevation:m=8,marginThreshold:p=16,open:b,PaperProps:E={},slots:C={},slotProps:T={},transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:v,transitionDuration:L="auto",TransitionProps:P={},disableScrollLock:k=!1,...V}=r,U=O.useRef(),q={...r,anchorOrigin:s,anchorReference:u,elevation:m,marginThreshold:p,transformOrigin:S,TransitionComponent:v,transitionDuration:L,TransitionProps:P},B=og(q),K=O.useCallback(()=>{if(u==="anchorPosition")return o;const xe=La(a),ze=(xe&&xe.nodeType===1?xe:Tn(U.current).body).getBoundingClientRect();return{top:ze.top+rc(ze,s.vertical),left:ze.left+ic(ze,s.horizontal)}},[a,s.horizontal,s.vertical,o,u]),Y=O.useCallback(xe=>({vertical:rc(xe,S.vertical),horizontal:ic(xe,S.horizontal)}),[S.horizontal,S.vertical]),X=O.useCallback(xe=>{const Pe={width:xe.offsetWidth,height:xe.offsetHeight},ze=Y(Pe);if(u==="none")return{top:null,left:null,transformOrigin:ac(ze)};const dt=K();let Oe=dt.top-ze.vertical,Qe=dt.left-ze.horizontal;const Pt=Oe+Pe.height,Ot=Qe+Pe.width,wt=Wn(La(a)),Vt=wt.innerHeight-p,Qt=wt.innerWidth-p;if(p!==null&&OeVt){const kt=Pt-Vt;Oe-=kt,ze.vertical+=kt}if(p!==null&&QeQt){const kt=Ot-Qt;Qe-=kt,ze.horizontal+=kt}return{top:`${Math.round(Oe)}px`,left:`${Math.round(Qe)}px`,transformOrigin:ac(ze)}},[a,u,K,Y,p]),[j,W]=O.useState(b),ne=O.useCallback(()=>{const xe=U.current;if(!xe)return;const Pe=X(xe);Pe.top!==null&&xe.style.setProperty("top",Pe.top),Pe.left!==null&&(xe.style.left=Pe.left),xe.style.transformOrigin=Pe.transformOrigin,W(!0)},[X]);O.useEffect(()=>(k&&window.addEventListener("scroll",ne),()=>window.removeEventListener("scroll",ne)),[a,k,ne]);const le=()=>{ne()},fe=()=>{W(!1)};O.useEffect(()=>{b&&ne()}),O.useImperativeHandle(i,()=>b?{updatePosition:()=>{ne()}}:null,[b,ne]),O.useEffect(()=>{if(!b)return;const xe=z1(()=>{ne()}),Pe=Wn(La(a));return Pe.addEventListener("resize",xe),()=>{xe.clear(),Pe.removeEventListener("resize",xe)}},[a,b,ne]);let oe=L;const I={slots:{transition:v,...C},slotProps:{transition:P,paper:E,...T}},[De,Ae]=At("transition",{elementType:lu,externalForwardedProps:I,ownerState:q,getSlotProps:xe=>({...xe,onEntering:(Pe,ze)=>{xe.onEntering?.(Pe,ze),le()},onExited:Pe=>{xe.onExited?.(Pe),fe()}}),additionalProps:{appear:!0,in:b}});L==="auto"&&!De.muiSupportAuto&&(oe=void 0);const _=d||(a?Tn(La(a)).body:void 0),[_e,{slots:Ve,slotProps:He,...qe}]=At("root",{ref:n,elementType:ug,externalForwardedProps:{...I,...V},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:C.backdrop},slotProps:{backdrop:I3(typeof T.backdrop=="function"?T.backdrop(q):T.backdrop,{invisible:!0})},container:_,open:b},ownerState:q,className:Be(B.root,c)}),[$e,We]=At("paper",{ref:U,className:B.paper,elementType:J1,externalForwardedProps:I,shouldForwardComponentProp:!0,additionalProps:{elevation:m,style:j?void 0:{opacity:0}},ownerState:q});return D.jsx(_e,{...qe,...!Ji(_e)&&{slots:Ve,slotProps:He,disableScrollLock:k},children:D.jsx(De,{...Ae,timeout:oe,children:D.jsx($e,{...We,children:l})})})});function cg(e){return pt("MuiMenu",e)}ut("MuiMenu",["root","paper","list"]);const dg={vertical:"top",horizontal:"right"},hg={vertical:"top",horizontal:"left"},fg=e=>{const{classes:t}=e;return je({root:["root"],paper:["paper"],list:["list"]},cg,t)},mg=ue(lg,{shouldForwardProp:e=>_n(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),pg=ue(J1,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),gg=ue(ag,{name:"MuiMenu",slot:"List"})({outline:0}),bg=O.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:o=!1,MenuListProps:u={},onClose:l,open:c,PaperProps:d={},PopoverClasses:m,transitionDuration:p="auto",TransitionProps:{onEntering:b,...E}={},variant:C="selectedMenu",slots:T={},slotProps:S={},...v}=r,L=m3(),P={...r,autoFocus:i,disableAutoFocusItem:o,MenuListProps:u,onEntering:b,PaperProps:d,transitionDuration:p,TransitionProps:E,variant:C},k=fg(P),V=i&&!o&&c,U=O.useRef(null),q=(oe,I)=>{U.current&&U.current.adjustStyleForScrollbar(oe,{direction:L?"rtl":"ltr"}),b&&b(oe,I)},B=oe=>{oe.key==="Tab"&&(oe.preventDefault(),l&&l(oe,"tabKeyDown"))};let K=-1;O.Children.map(a,(oe,I)=>{O.isValidElement(oe)&&(oe.props.disabled||(C==="selectedMenu"&&oe.props.selected||K===-1)&&(K=I))});const Y={slots:T,slotProps:{list:u,transition:E,paper:d,...S}},X=M3({elementType:T.root,externalSlotProps:S.root,ownerState:P,className:[k.root,s]}),[j,W]=At("paper",{className:k.paper,elementType:pg,externalForwardedProps:Y,shouldForwardComponentProp:!0,ownerState:P}),[ne,le]=At("list",{className:Be(k.list,u.className),elementType:gg,shouldForwardComponentProp:!0,externalForwardedProps:Y,getSlotProps:oe=>({...oe,onKeyDown:I=>{B(I),oe.onKeyDown?.(I)}}),ownerState:P}),fe=typeof Y.slotProps.transition=="function"?Y.slotProps.transition(P):Y.slotProps.transition;return D.jsx(mg,{onClose:l,anchorOrigin:{vertical:"bottom",horizontal:L?"right":"left"},transformOrigin:L?dg:hg,slots:{root:T.root,paper:j,backdrop:T.backdrop,...T.transition&&{transition:T.transition}},slotProps:{root:X,paper:W,backdrop:typeof S.backdrop=="function"?S.backdrop(P):S.backdrop,transition:{...fe,onEntering:(...oe)=>{q(...oe),fe?.onEntering?.(...oe)}}},open:c,ref:n,transitionDuration:p,ownerState:P,...v,classes:m,children:D.jsx(ne,{actions:U,autoFocus:i&&(K===-1||o),autoFocusItem:V,variant:C,...le,children:a})})});function yg(e){return pt("MuiMenuItem",e)}const Ci=ut("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Tg=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Eg=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:s}=e,u=je({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},yg,s);return{...s,...u}},xg=ue(p3,{shouldForwardProp:e=>_n(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Tg})(vt(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ci.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Ci.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Ci.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Ci.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ci.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${U0.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${U0.inset}`]:{marginLeft:52},[`& .${Gr.root}`]:{marginTop:0,marginBottom:0},[`& .${Gr.inset}`]:{paddingLeft:36},[`& .${z0.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${z0.root} svg`]:{fontSize:"1.25rem"}}}]}))),vg=O.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:s=!1,divider:o=!1,disableGutters:u=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:d,className:m,...p}=r,b=O.useContext(jn),E=O.useMemo(()=>({dense:s||b.dense||!1,disableGutters:u}),[b.dense,s,u]),C=O.useRef(null);Lr(()=>{i&&C.current&&C.current.focus()},[i]);const T={...r,dense:E.dense,divider:o,disableGutters:u},S=Eg(r),v=rn(C,n);let L;return r.disabled||(L=d!==void 0?d:-1),D.jsx(jn.Provider,{value:E,children:D.jsx(xg,{ref:v,role:c,tabIndex:L,component:a,focusVisibleClassName:Be(S.focusVisible,l),className:Be(S.root,m),...p,ownerState:T,classes:S})})});function Sg(e){return pt("MuiNativeSelect",e)}const hl=ut("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Ag=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${Tt(n)}`,a&&"iconOpen",r&&"disabled"]};return je(o,Sg,t)},ef=ue("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${hl.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),Cg=ue(ef,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:_n,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${hl.multiple}`]:t.multiple}]}})({}),tf=ue("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${hl.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),wg=ue(tf,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Tt(n.variant)}`],n.open&&t.iconOpen]}})({}),kg=O.forwardRef(function(t,n){const{className:r,disabled:i,error:a,IconComponent:s,inputRef:o,variant:u="standard",...l}=t,c={...t,disabled:i,variant:u,error:a},d=Ag(c);return D.jsxs(O.Fragment,{children:[D.jsx(Cg,{ownerState:c,className:Be(d.select,r),disabled:i,ref:o||n,...l}),t.multiple?null:D.jsx(wg,{as:s,ownerState:c,className:d.icon})]})});var sc;const Ig=ue("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:_n})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Ng=ue("legend",{name:"MuiNotchedOutlined",shouldForwardProp:_n})(vt(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Mg(e){const{children:t,classes:n,className:r,label:i,notched:a,...s}=e,o=i!=null&&i!=="",u={...e,notched:a,withLabel:o};return D.jsx(Ig,{"aria-hidden":!0,className:r,ownerState:u,...s,children:D.jsx(Ng,{ownerState:u,children:o?D.jsx("span",{children:i}):sc||(sc=D.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const Rg=e=>{const{classes:t}=e,r=je({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},g3,t);return{...t,...r}},Dg=ue(_s,{shouldForwardProp:e=>_n(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Rs})(vt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Sn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Sn.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Sn.focused} .${Sn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(ol()).map(([n])=>({props:{color:n},style:{[`&.${Sn.focused} .${Sn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Sn.error} .${Sn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Sn.disabled} .${Sn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),_g=ue(Mg,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(vt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),Lg=ue(Ls,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ds})(vt(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),nf=O.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:s="input",label:o,multiline:u=!1,notched:l,slots:c={},slotProps:d={},type:m="text",...p}=r,b=Rg(r),E=cl(),C=ll({props:r,muiFormControl:E,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),T={...r,color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:E,fullWidth:a,hiddenLabel:C.hiddenLabel,multiline:u,size:C.size,type:m},S=c.root??i.Root??Dg,v=c.input??i.Input??Lg,[L,P]=At("notchedOutline",{elementType:_g,className:b.notchedOutline,shouldForwardComponentProp:!0,ownerState:T,externalForwardedProps:{slots:c,slotProps:d},additionalProps:{label:o!=null&&o!==""&&C.required?D.jsxs(O.Fragment,{children:[o," ","*"]}):o}});return D.jsx(dl,{slots:{root:S,input:v},slotProps:d,renderSuffix:k=>D.jsx(L,{...P,notched:typeof l<"u"?l:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:a,inputComponent:s,multiline:u,ref:n,type:m,...p,classes:{...b,notchedOutline:null}})});nf.muiName="Input";function rf(e){return pt("MuiSelect",e)}const wi=ut("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var oc;const Pg=ue(ef,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${wi.select}`]:t.select},{[`&.${wi.select}`]:t[n.variant]},{[`&.${wi.error}`]:t.error},{[`&.${wi.multiple}`]:t.multiple}]}})({[`&.${wi.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Og=ue(tf,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Tt(n.variant)}`],n.open&&t.iconOpen]}})({}),Bg=ue("input",{shouldForwardProp:e=>b3(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function uc(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Fg(e){return e==null||typeof e=="string"&&!e.trim()}const Hg=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${Tt(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return je(o,rf,t)},zg=O.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":i,autoFocus:a,autoWidth:s,children:o,className:u,defaultOpen:l,defaultValue:c,disabled:d,displayEmpty:m,error:p=!1,IconComponent:b,inputRef:E,labelId:C,MenuProps:T={},multiple:S,name:v,onBlur:L,onChange:P,onClose:k,onFocus:V,onOpen:U,open:q,readOnly:B,renderValue:K,required:Y,SelectDisplayProps:X={},tabIndex:j,type:W,value:ne,variant:le="standard",...fe}=t,[oe,I]=Y0({controlled:ne,default:c,name:"Select"}),[De,Ae]=Y0({controlled:q,default:l,name:"Select"}),_=O.useRef(null),_e=O.useRef(null),[Ve,He]=O.useState(null),{current:qe}=O.useRef(q!=null),[$e,We]=O.useState(),xe=rn(n,E),Pe=O.useCallback(me=>{_e.current=me,me&&He(me)},[]),ze=Ve?.parentNode;O.useImperativeHandle(xe,()=>({focus:()=>{_e.current.focus()},node:_.current,value:oe}),[oe]),O.useEffect(()=>{l&&De&&Ve&&!qe&&(We(s?null:ze.clientWidth),_e.current.focus())},[Ve,s]),O.useEffect(()=>{a&&_e.current.focus()},[a]),O.useEffect(()=>{if(!C)return;const me=Tn(_e.current).getElementById(C);if(me){const ke=()=>{getSelection().isCollapsed&&_e.current.focus()};return me.addEventListener("click",ke),()=>{me.removeEventListener("click",ke)}}},[C]);const dt=(me,ke)=>{me?U&&U(ke):k&&k(ke),qe||(We(s?null:ze.clientWidth),Ae(me))},Oe=me=>{me.button===0&&(me.preventDefault(),_e.current.focus(),dt(!0,me))},Qe=me=>{dt(!1,me)},Pt=O.Children.toArray(o),Ot=me=>{const ke=Pt.find(tt=>tt.props.value===me.target.value);ke!==void 0&&(I(ke.props.value),P&&P(me,ke))},wt=me=>ke=>{let tt;if(ke.currentTarget.hasAttribute("tabindex")){if(S){tt=Array.isArray(oe)?oe.slice():[];const Mt=oe.indexOf(me.props.value);Mt===-1?tt.push(me.props.value):tt.splice(Mt,1)}else tt=me.props.value;if(me.props.onClick&&me.props.onClick(ke),oe!==tt&&(I(tt),P)){const Mt=ke.nativeEvent||ke,F0=new Mt.constructor(Mt.type,Mt);Object.defineProperty(F0,"target",{writable:!0,value:{value:tt,name:v}}),P(F0,me)}S||dt(!1,ke)}},Vt=me=>{B||[" ","ArrowUp","ArrowDown","Enter"].includes(me.key)&&(me.preventDefault(),dt(!0,me))},Qt=Ve!==null&&De,kt=me=>{!Qt&&L&&(Object.defineProperty(me,"target",{writable:!0,value:{value:oe,name:v}}),L(me))};delete fe["aria-invalid"];let vn,er;const Nt=[];let tr=!1;(j1({value:oe})||m)&&(K?vn=K(oe):tr=!0);const G=Pt.map(me=>{if(!O.isValidElement(me))return null;let ke;if(S){if(!Array.isArray(oe))throw new Error(_1(2));ke=oe.some(tt=>uc(tt,me.props.value)),ke&&tr&&Nt.push(me.props.children)}else ke=uc(oe,me.props.value),ke&&tr&&(er=me.props.children);return O.cloneElement(me,{"aria-selected":ke?"true":"false",onClick:wt(me),onKeyUp:tt=>{tt.key===" "&&tt.preventDefault(),me.props.onKeyUp&&me.props.onKeyUp(tt)},role:"option",selected:ke,value:void 0,"data-value":me.props.value})});tr&&(S?Nt.length===0?vn=null:vn=Nt.reduce((me,ke,tt)=>(me.push(ke),tt{const{classes:t}=e,r=je({root:["root"]},rf,t);return{...t,...r}},fl={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>_n(e)&&e!=="variant"},Vg=ue(K1,fl)(""),jg=ue(nf,fl)(""),qg=ue(G1,fl)(""),af=O.forwardRef(function(t,n){const r=Xe({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:s={},className:o,defaultOpen:u=!1,displayEmpty:l=!1,IconComponent:c=H3,id:d,input:m,inputProps:p,label:b,labelId:E,MenuProps:C,multiple:T=!1,native:S=!1,onClose:v,onOpen:L,open:P,renderValue:k,SelectDisplayProps:V,variant:U="outlined",...q}=r,B=S?kg:zg,K=cl(),Y=ll({props:r,muiFormControl:K,states:["variant","error"]}),X=Y.variant||U,j={...r,variant:X,classes:s},W=Ug(j),{root:ne,...le}=W,fe=m||{standard:D.jsx(Vg,{ownerState:j}),outlined:D.jsx(jg,{label:b,ownerState:j}),filled:D.jsx(qg,{ownerState:j})}[X],oe=rn(n,ma(fe));return D.jsx(O.Fragment,{children:O.cloneElement(fe,{inputComponent:B,inputProps:{children:a,error:Y.error,IconComponent:c,variant:X,type:void 0,multiple:T,...S?{id:d}:{autoWidth:i,defaultOpen:u,displayEmpty:l,labelId:E,MenuProps:C,onClose:v,onOpen:L,open:P,renderValue:k,SelectDisplayProps:{id:d,...V}},...p,classes:p?sl(le,p.classes):le,...m?m.props.inputProps:{}},...(T&&S||l)&&X==="outlined"?{notched:!0}:{},ref:oe,className:Be(fe.props.className,o,W.root),...!m&&{variant:X},...q})})});af.muiName="Select";function $g(e){return pt("MuiSkeleton",e)}ut("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Wg=e=>{const{classes:t,variant:n,animation:r,hasChildren:i,width:a,height:s}=e;return je({root:["root",n,r,i&&"withChildren",i&&!a&&"fitContent",i&&!s&&"heightAuto"]},$g,t)},cu=O1` - 0% { - opacity: 1; - } - - 50% { - opacity: 0.4; - } - - 100% { - opacity: 1; - } -`,du=O1` - 0% { - transform: translateX(-100%); - } - - 50% { - /* +0.5s of delay between each loop */ - transform: translateX(100%); - } - - 100% { - transform: translateX(100%); - } -`,Yg=typeof cu!="string"?P1` - animation: ${cu} 2s ease-in-out 0.5s infinite; - `:null,Gg=typeof du!="string"?P1` - &::after { - animation: ${du} 2s linear 0.5s infinite; - } - `:null,Kg=ue("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(vt(({theme:e})=>{const t=C3(e.shape.borderRadius)||"px",n=w3(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:r})=>r.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:r})=>r.hasChildren&&!r.width,style:{maxWidth:"fit-content"}},{props:({ownerState:r})=>r.hasChildren&&!r.height,style:{height:"auto"}},{props:{animation:"pulse"},style:Yg||{animation:`${cu} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient( - 90deg, - transparent, - ${(e.vars||e).palette.action.hover}, - transparent - )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:Gg||{"&::after":{animation:`${du} 2s linear 0.5s infinite`}}}]}})),lc=O.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiSkeleton"}),{animation:i="pulse",className:a,component:s="span",height:o,style:u,variant:l="text",width:c,...d}=r,m={...r,animation:i,component:s,variant:l,hasChildren:!!d.children},p=Wg(m);return D.jsx(Kg,{as:s,ref:n,className:Be(p.root,a),ownerState:m,...d,style:{width:c,height:o,...u}})}),sf=O.createContext();function Xg(e){return pt("MuiTable",e)}ut("MuiTable",["root","stickyHeader"]);const Qg=e=>{const{classes:t,stickyHeader:n}=e;return je({root:["root",n&&"stickyHeader"]},Xg,t)},Zg=ue("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(vt(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),cc="table",Jg=O.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiTable"}),{className:i,component:a=cc,padding:s="normal",size:o="medium",stickyHeader:u=!1,...l}=r,c={...r,component:a,padding:s,size:o,stickyHeader:u},d=Qg(c),m=O.useMemo(()=>({padding:s,size:o,stickyHeader:u}),[s,o,u]);return D.jsx(sf.Provider,{value:m,children:D.jsx(Zg,{as:a,role:a===cc?null:"table",ref:n,className:Be(d.root,i),ownerState:c,...l})})}),Ps=O.createContext();function e5(e){return pt("MuiTableBody",e)}ut("MuiTableBody",["root"]);const t5=e=>{const{classes:t}=e;return je({root:["root"]},e5,t)},n5=ue("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),r5={variant:"body"},dc="tbody",i5=O.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiTableBody"}),{className:i,component:a=dc,...s}=r,o={...r,component:a},u=t5(o);return D.jsx(Ps.Provider,{value:r5,children:D.jsx(n5,{className:Be(u.root,i),as:a,ref:n,role:a===dc?null:"rowgroup",ownerState:o,...s})})}),a5=e=>{const{classes:t,variant:n,align:r,padding:i,size:a,stickyHeader:s}=e,o={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${Tt(r)}`,i!=="normal"&&`padding${Tt(i)}`,`size${Tt(a)}`]};return je(o,y3,t)},s5=ue("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Tt(n.size)}`],n.padding!=="normal"&&t[`padding${Tt(n.padding)}`],n.align!=="inherit"&&t[`align${Tt(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(vt(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${T3.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),hc=O.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:s,padding:o,scope:u,size:l,sortDirection:c,variant:d,...m}=r,p=O.useContext(sf),b=O.useContext(Ps),E=b&&b.variant==="head";let C;s?C=s:C=E?"th":"td";let T=u;C==="td"?T=void 0:!T&&E&&(T="col");const S=d||b&&b.variant,v={...r,align:i,component:C,padding:o||(p&&p.padding?p.padding:"normal"),size:l||(p&&p.size?p.size:"medium"),sortDirection:c,stickyHeader:S==="head"&&p&&p.stickyHeader,variant:S},L=a5(v);let P=null;return c&&(P=c==="asc"?"ascending":"descending"),D.jsx(s5,{as:C,ref:n,className:Be(L.root,a),"aria-sort":P,scope:T,ownerState:v,...m})});function o5(e){return pt("MuiTableContainer",e)}ut("MuiTableContainer",["root"]);const u5=e=>{const{classes:t}=e;return je({root:["root"]},o5,t)},l5=ue("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),c5=O.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiTableContainer"}),{className:i,component:a="div",...s}=r,o={...r,component:a},u=u5(o);return D.jsx(l5,{ref:n,as:a,className:Be(u.root,i),ownerState:o,...s})});function d5(e){return pt("MuiTableHead",e)}ut("MuiTableHead",["root"]);const h5=e=>{const{classes:t}=e;return je({root:["root"]},d5,t)},f5=ue("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),m5={variant:"head"},fc="thead",p5=O.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiTableHead"}),{className:i,component:a=fc,...s}=r,o={...r,component:a},u=h5(o);return D.jsx(Ps.Provider,{value:m5,children:D.jsx(f5,{as:a,className:Be(u.root,i),ref:n,role:a===fc?null:"rowgroup",ownerState:o,...s})})}),g5=e=>{const{classes:t,selected:n,hover:r,head:i,footer:a}=e;return je({root:["root",n&&"selected",r&&"hover",i&&"head",a&&"footer"]},E3,t)},b5=ue("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(vt(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${V0.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${V0.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),mc="tr",y5=O.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiTableRow"}),{className:i,component:a=mc,hover:s=!1,selected:o=!1,...u}=r,l=O.useContext(Ps),c={...r,component:a,hover:s,selected:o,head:l&&l.variant==="head",footer:l&&l.variant==="footer"},d=g5(c);return D.jsx(b5,{as:a,ref:n,className:Be(d.root,i),role:a===mc?null:"row",ownerState:c,...u})});/** - * @license @tabler/icons-react v3.35.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const T5=[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]],E5=En("outline","check","Check",T5);/** - * @license @tabler/icons-react v3.35.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const x5=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M9 12h6",key:"svg-1"}],["path",{d:"M12 9v6",key:"svg-2"}]],v5=En("outline","circle-plus","CirclePlus",x5);/** - * @license @tabler/icons-react v3.35.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const S5=[["path",{d:"M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z",key:"svg-1"}],["path",{d:"M4.012 16.737a2 2 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1",key:"svg-2"}],["path",{d:"M11 14l2 2l4 -4",key:"svg-3"}]],of=En("outline","copy-check","CopyCheck",S5);/** - * @license @tabler/icons-react v3.35.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const A5=[["path",{d:"M7 7m0 2.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z",key:"svg-0"}],["path",{d:"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1",key:"svg-1"}]],uf=En("outline","copy","Copy",A5);/** - * @license @tabler/icons-react v3.35.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const C5=[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M9 4v16",key:"svg-1"}],["path",{d:"M15 10l-2 2l2 2",key:"svg-2"}]],w5=En("outline","layout-sidebar-left-collapse","LayoutSidebarLeftCollapse",C5);/** - * @license @tabler/icons-react v3.35.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const k5=[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M9 4v16",key:"svg-1"}],["path",{d:"M14 10l2 2l-2 2",key:"svg-2"}]],I5=En("outline","layout-sidebar-left-expand","LayoutSidebarLeftExpand",k5);/** - * @license @tabler/icons-react v3.35.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const N5=[["path",{d:"M12 6l0 -3",key:"svg-0"}],["path",{d:"M16.25 7.75l2.15 -2.15",key:"svg-1"}],["path",{d:"M18 12l3 0",key:"svg-2"}],["path",{d:"M16.25 16.25l2.15 2.15",key:"svg-3"}],["path",{d:"M12 18l0 3",key:"svg-4"}],["path",{d:"M7.75 16.25l-2.15 2.15",key:"svg-5"}],["path",{d:"M6 12l-3 0",key:"svg-6"}],["path",{d:"M7.75 7.75l-2.15 -2.15",key:"svg-7"}]],M5=En("outline","loader","Loader",N5);/** - * @license @tabler/icons-react v3.35.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const R5=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]],D5=En("outline","plus","Plus",R5);/** - * @license @tabler/icons-react v3.35.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const _5=[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}]],L5=En("outline","refresh","Refresh",_5);/** - * @license @tabler/icons-react v3.35.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const P5=[["path",{d:"M10 19a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z",key:"svg-0"}],["path",{d:"M18 5a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z",key:"svg-1"}],["path",{d:"M10 5a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z",key:"svg-2"}],["path",{d:"M6 12a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z",key:"svg-3"}],["path",{d:"M18 19a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z",key:"svg-4"}],["path",{d:"M14 12a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z",key:"svg-5"}],["path",{d:"M22 12a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z",key:"svg-6"}],["path",{d:"M6 12h4",key:"svg-7"}],["path",{d:"M14 12h4",key:"svg-8"}],["path",{d:"M15 7l-2 3",key:"svg-9"}],["path",{d:"M9 7l2 3",key:"svg-10"}],["path",{d:"M11 14l-2 3",key:"svg-11"}],["path",{d:"M13 14l2 3",key:"svg-12"}]],O5=En("outline","topology-star-3","TopologyStar3",P5);/** - * @license @tabler/icons-react v3.35.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const B5=[["path",{d:"M7 3.34a10 10 0 1 1 -4.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 4.995 -8.336z",key:"svg-0"}]],F5=En("filled","circle-filled","CircleFilled",B5),H5={primary:Ja,secondary:Ja,info:Ja,error:q0,warning:q0,success:v3},z5=e=>{const{open:t,onClose:n=()=>{},titleId:r,title:i,contentId:a,content:s,color:o="primary",titleIconColor:u="warning",titleIcon:l=!0,cancelLabel:c,onCancel:d=()=>{},confirmLabel:m,onConfirm:p=()=>{},submitLabel:b,onSubmitValid:E,onSubmitInvalid:C,handleSubmit:T,secondaryAction:S,...v}=e,L=H5[o],[P,k]=O.useState(!1),V=Y=>!(Y===!1||typeof Y=="object"&&Y.closeDialog===!1),U=Y=>async(...X)=>{if(!P)try{const j=Y(...X);if(j instanceof Promise){k(!0);const W=await j;k(!1),V(W)&&n()}else V(j)&&n()}catch(j){k(!1),console.error("Error in dialog action:",j)}};let q;const B=[];c&&B.push({key:"cancel",children:c,color:"secondary",onClick:U(d),loading:P}),m&&B.push({key:"confirm",children:m,color:o,onClick:U(p),loading:P}),b&&(B.push({key:"submit",children:b,type:"submit",loading:P}),T&&E&&(q={onSubmit:Y=>{Y.preventDefault(),Y.stopPropagation(),!P&&(k(!0),T(async(...X)=>{try{const j=await E(...X);k(!1),V(j)&&n()}catch(j){k(!1),console.error("Error in form submission:",j)}},async(...X)=>{try{await C?.(...X)}catch(j){console.error("Error in form validation:",j)}finally{k(!1)}})())}}));const K=()=>{P||n()};return D.jsxs(b6,{open:t,onClose:K,"aria-labelledby":r,"aria-describedby":a,...v,component:q&&"form"||void 0,...q,children:[D.jsxs(R6,{id:!L&&r||void 0,children:[l==="form"&&D.jsx(x3,{})||l===!0&&D.jsx(j0,{variant:"circle",color:u,children:D.jsx(L,{})})||D.jsx(j0,{variant:"circle",color:u,children:l})||void 0,!l&&i,D.jsx(ul,{size:"small",onClick:K,children:D.jsx(B1,{size:"1.25rem"})})]}),D.jsxs(A6,{children:[l&&D.jsx(Ue,{variant:"subtitle1",id:r,children:i}),D.jsx(I6,{id:a,children:s})]}),B.length>0&&D.jsxs(x6,{children:[D.jsx(ci,{mr:"auto",children:S}),B.map(Y=>O.createElement(ls,{...Y,key:Y.key,...B.length===1&&{fullWidth:!0}}))]})]})},so=(e,t)=>{const[n,r]=O.useState(!1),i=D.jsx(z5,{...e,open:n,onClose:()=>{r(!1),e.onClose?.()}}),a=O.useMemo(()=>({open:()=>r(!0),close:()=>r(!1)}),[]);return[i,a]},U5=()=>D.jsxs("svg",{width:"100",height:"21",viewBox:"0 0 100 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[D.jsx("path",{d:"M25.9027 21C24.2555 21 22.9819 20.6707 22.082 20.012C21.1821 19.3687 20.6482 18.4344 20.4805 17.209H23.7064C23.9352 18.1586 24.6825 18.6335 25.9485 18.6335C26.8789 18.6335 27.5576 18.4037 27.9847 17.9442C28.4118 17.5 28.6253 16.8184 28.6253 15.8993V14.0383C28.3203 14.5897 27.8779 15.0339 27.2984 15.3709C26.7188 15.6926 26.0324 15.8534 25.2393 15.8534C24.2478 15.8534 23.3556 15.6313 22.5624 15.1871C21.7693 14.7276 21.1439 14.0536 20.6864 13.1652C20.2288 12.2768 20 11.2046 20 9.94858C20 8.69256 20.2288 7.62035 20.6864 6.73195C21.1439 5.82823 21.7693 5.15427 22.5624 4.71007C23.3556 4.25055 24.2478 4.02079 25.2393 4.02079C25.9866 4.02079 26.6654 4.18928 27.2755 4.52626C27.8856 4.86324 28.3355 5.29978 28.6253 5.83589V4.36543H31.7826V15.7845C31.7826 17.3928 31.3021 18.6641 30.3412 19.5985C29.3803 20.5328 27.9008 21 25.9027 21ZM25.9256 13.4409C26.7493 13.4409 27.4127 13.1116 27.9161 12.453C28.4194 11.7943 28.6711 10.9519 28.6711 9.9256C28.6711 8.89934 28.4194 8.06455 27.9161 7.42123C27.4127 6.76258 26.7493 6.43326 25.9256 6.43326C25.041 6.43326 24.3699 6.73961 23.9123 7.3523C23.4547 7.96499 23.2259 8.82276 23.2259 9.9256C23.2259 11.0284 23.4547 11.8939 23.9123 12.5219C24.3699 13.1346 25.041 13.4409 25.9256 13.4409Z",fill:"black"}),D.jsx("path",{d:"M33.39 16.1751V4.36543H36.4787V6.91575C36.8905 5.81291 37.4091 5.03939 38.0344 4.59519C38.6598 4.15098 39.5368 3.95952 40.6655 4.02079V6.98468C40.3299 6.95405 40.0783 6.93873 39.9105 6.93873C39.4682 6.93873 39.0487 7 38.6522 7.12254C37.2489 7.59737 36.5473 9.01422 36.5473 11.3731V16.1751H33.39Z",fill:"black"}),D.jsx("path",{d:"M44.1585 16.4967C42.9382 16.4967 41.9316 16.1751 41.1384 15.5317C40.3606 14.8884 39.9716 14 39.9716 12.8665C39.9716 11.9628 40.2157 11.2659 40.7037 10.7757C41.2071 10.2702 41.7714 9.9256 42.3968 9.74179C43.0374 9.55799 43.7619 9.41247 44.5703 9.30525L45.5312 9.19037C46.3396 9.09847 46.9192 8.96061 47.27 8.7768C47.636 8.57768 47.8191 8.20241 47.8191 7.65098C47.8191 7.19147 47.6589 6.83917 47.3386 6.59409C47.0183 6.34902 46.5607 6.22648 45.9659 6.22648C45.3863 6.22648 44.9135 6.34902 44.5474 6.59409C44.1966 6.82385 43.9754 7.14551 43.8839 7.55908H40.4978C40.7266 6.44092 41.3138 5.57549 42.2595 4.9628C43.2204 4.33479 44.4788 4.02079 46.0345 4.02079C49.2986 4.02079 50.9306 5.26149 50.9306 7.74289V13.326C50.9306 14.2451 51.0602 15.1947 51.3195 16.1751H48.208C48.086 15.6083 48.0021 15.1105 47.9563 14.6816C47.6055 15.233 47.1022 15.6772 46.4463 16.0142C45.7905 16.3359 45.0278 16.4967 44.1585 16.4967ZM45.1422 14.1532C45.9354 14.1532 46.576 13.8928 47.0641 13.372C47.5674 12.8512 47.8191 12.1849 47.8191 11.3731V10.2013C47.6055 10.4617 47.3386 10.6608 47.0183 10.7987C46.7133 10.9365 46.2709 11.0514 45.6913 11.1433C44.8372 11.2965 44.2195 11.4803 43.8381 11.6947C43.4568 11.8939 43.2662 12.2538 43.2662 12.7746C43.2662 13.2035 43.4416 13.5405 43.7924 13.7856C44.1432 14.0306 44.5932 14.1532 45.1422 14.1532Z",fill:"black"}),D.jsx("path",{d:"M63.6153 0.0919039V16.1751H60.458V14.7965C60.1682 15.3173 59.7183 15.7385 59.1082 16.0602C58.4981 16.3665 57.7964 16.5197 57.0033 16.5197C56.0119 16.5197 55.112 16.267 54.3036 15.7615C53.5105 15.256 52.8775 14.5361 52.4047 13.6018C51.9471 12.6521 51.7183 11.5416 51.7183 10.2702C51.7183 8.99891 51.9471 7.89606 52.4047 6.96171C52.8775 6.01203 53.5105 5.28446 54.3036 4.77899C55.112 4.27352 56.0119 4.02079 57.0033 4.02079C57.7812 4.02079 58.4752 4.18928 59.0853 4.52626C59.7106 4.84792 60.1682 5.2768 60.458 5.81291V0.0919039H63.6153ZM57.6897 14.0383C58.5438 14.0383 59.2226 13.686 59.7259 12.9814C60.2445 12.2768 60.5038 11.3731 60.5038 10.2702C60.5038 9.1674 60.2445 8.26368 59.7259 7.55908C59.2226 6.85449 58.5438 6.50219 57.6897 6.50219C56.7898 6.50219 56.1034 6.83917 55.6306 7.51313C55.173 8.17177 54.9442 9.09081 54.9442 10.2702C54.9442 11.4497 55.173 12.3764 55.6306 13.0503C56.1034 13.709 56.7898 14.0383 57.6897 14.0383Z",fill:"black"}),D.jsx("path",{d:"M68.4939 3.10175H64.9476V0H68.4939V3.10175ZM68.2879 16.1751H65.1764V4.36543H68.2879V16.1751Z",fill:"black"}),D.jsx("path",{d:"M75.1212 14.0842C76.2194 14.0842 76.9515 13.7396 77.3176 13.0503H80.6121C80.2766 14.1225 79.6207 14.9726 78.6446 15.6007C77.6836 16.2133 76.4939 16.5197 75.0755 16.5197C73.7942 16.5197 72.6808 16.2593 71.7351 15.7385C70.8047 15.2177 70.0879 14.4902 69.5845 13.5558C69.0812 12.6061 68.8295 11.5186 68.8295 10.2932C68.8295 9.09847 69.1041 8.02626 69.6532 7.07659C70.2023 6.1116 70.9344 5.36105 71.8495 4.82495C72.7799 4.28884 73.7942 4.02079 74.8924 4.02079C76.0821 4.02079 77.1269 4.30416 78.0268 4.8709C78.942 5.42232 79.6589 6.24179 80.1774 7.32932C80.696 8.40153 80.9629 9.69584 80.9782 11.2123H72.0555C72.1165 12.0853 72.4291 12.7823 72.9935 13.3031C73.5731 13.8239 74.2823 14.0842 75.1212 14.0842ZM75.0068 6.45624C74.2594 6.45624 73.6112 6.70131 73.0621 7.19147C72.5283 7.68162 72.2003 8.29431 72.0783 9.02954H77.8438C77.7065 8.24836 77.3938 7.62801 76.9058 7.16849C76.4177 6.69365 75.7847 6.45624 75.0068 6.45624Z",fill:"black"}),D.jsx("path",{d:"M81.5786 16.1751V4.36543H84.6444V5.85886C84.9647 5.35339 85.407 4.92451 85.9713 4.57221C86.5357 4.2046 87.2449 4.02079 88.0991 4.02079C89.304 4.02079 90.2421 4.39606 90.9132 5.14661C91.5995 5.89716 91.9427 6.95405 91.9427 8.31729V16.1751H88.7854V8.54705C88.7854 7.21444 88.2135 6.54814 87.0695 6.54814C86.4289 6.54814 85.8798 6.80853 85.4222 7.32932C84.9647 7.83479 84.7359 8.593 84.7359 9.60394V16.1751H81.5786Z",fill:"black"}),D.jsx("path",{d:"M98.1011 16.2899C96.9876 16.2899 96.0801 16.0066 95.3785 15.4398C94.6921 14.8731 94.3489 13.9311 94.3489 12.6138V6.7779H92.3356V4.36543H94.3489V0.873086H97.4147V4.36543H99.7712V6.7779H97.4147V12.0853C97.4147 12.698 97.5291 13.1575 97.7579 13.4639C98.0019 13.7549 98.3985 13.9004 98.9476 13.9004C99.2374 13.9004 99.5882 13.8545 100 13.7626V16.0372C99.5272 16.2057 98.8942 16.2899 98.1011 16.2899Z",fill:"black"}),D.jsx("path",{d:"M3 13H0V16H3V13Z",fill:"black"}),D.jsx("path",{d:"M18 0V2.85011L8.94745 16H6V13.1499L15.0521 0H18Z",fill:"black"})]}),V5=()=>D.jsxs("svg",{width:"26",height:"28",viewBox:"0 0 26 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[D.jsx("path",{d:"M7 19H4V22H7V19Z",fill:"black"}),D.jsx("path",{d:"M22 6V8.85011L12.9475 22H10V19.1499L19.0521 6H22Z",fill:"black"})]}),j5=ue(af)(({theme:e})=>{const{spacing:t}=e;return{height:"4rem"}}),q5=ue(vg)(({theme:e})=>{const{spacing:t}=e;return{height:"3.25rem",gap:"0.5rem"}}),$5=ue("img")(({theme:e})=>{const{palette:t}=e;return{width:"2.25rem",height:"2.25rem",borderRadius:"0.5rem",border:`1px solid ${t.divider}`,objectFit:"cover"}}),W5=ue("span")(({theme:e})=>{const{palette:t,typography:n}=e;return{...n.subtitle2,fontWeight:n.fontWeightLight,color:t.text.primary}}),Y5=ue("span")(({theme:e})=>{const{palette:t,typography:n}=e;return{...n.body2,fontWeight:n.fontWeightLight,color:t.text.secondary}}),pc=(e,t)=>D.jsxs(q5,{value:e.name,children:[D.jsx($5,{src:e.logoUrl}),D.jsxs(Ye,{gap:.25,children:[D.jsx(W5,{children:e.displayName}),D.jsx(Y5,{children:e.name})]})]},e.name),PR=()=>{const[{modelName:e,modelInfoList:t},{setModelName:n}]=fa();return D.jsx(j5,{value:e,onChange:r=>n(String(r.target.value)),renderValue:r=>{const i=t.find(a=>a.name===r);return i&&pc(i)||void 0},children:t.map(r=>pc(r,r.name===e))})},G5={"linux/mac":"Linux/MacOS",windows:"Windows"},K5=ue("div")(({theme:e})=>{const{palette:t,spacing:n}=e;return{display:"flex",flexFlow:"row nowrap",justifyContent:"space-between",alignItems:"center",paddingInline:n(2),paddingBlock:n(1.5),gap:n(1),overflow:"hidden",borderRadius:"0.7rem",backgroundColor:t.background.area}}),gc=()=>{const[{clusterInfo:{nodeJoinCommand:e}}]=fa(),[t,n]=O.useState();O.useEffect(()=>{if(t){const i=setTimeout(()=>{n(void 0)},2e3);return()=>clearTimeout(i)}},[t]);const r=cs(async i=>{await navigator.clipboard.writeText(e[i]),n(i)});return D.jsx(Ye,{gap:1,children:Object.entries(e).map(([i,a])=>D.jsxs(Ye,{gap:1,children:[D.jsxs(Ue,{variant:"subtitle2",children:["For ",G5[i]||i,":"]}),D.jsxs(K5,{children:[D.jsx(Ue,{sx:{flex:1,lineHeight:"1.125rem",whiteSpace:"wrap"},variant:"pre",children:a}),D.jsx(ul,{sx:{flex:"none",fontSize:"1.5rem"},size:"em",onClick:()=>r(i),children:t===i&&D.jsx(of,{})||D.jsx(uf,{})})]})]},i))})};function ml(e,t){e.indexOf(t)===-1&&e.push(t)}function pl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Yn=(e,t,n)=>n>t?t:n{};const Gn={},lf=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function cf(e){return typeof e=="object"&&e!==null}const df=e=>/^0[^.\s]+$/u.test(e);function bl(e){let t;return()=>(t===void 0&&(t=e()),t)}const dn=e=>e,X5=(e,t)=>n=>t(e(n)),pa=(...e)=>e.reduce(X5),ta=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class yl{constructor(){this.subscriptions=[]}add(t){return ml(this.subscriptions,t),()=>pl(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;ae*1e3,Rn=e=>e/1e3;function hf(e,t){return t?e*(1e3/t):0}const ff=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Q5=1e-7,Z5=12;function J5(e,t,n,r,i){let a,s,o=0;do s=t+(n-t)/2,a=ff(s,r,i)-e,a>0?n=s:t=s;while(Math.abs(a)>Q5&&++oJ5(a,0,1,e,n);return a=>a===0||a===1?a:ff(i(a),t,r)}const mf=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,pf=e=>t=>1-e(1-t),gf=ga(.33,1.53,.69,.99),Tl=pf(gf),bf=mf(Tl),yf=e=>(e*=2)<1?.5*Tl(e):.5*(2-Math.pow(2,-10*(e-1))),El=e=>1-Math.sin(Math.acos(e)),Tf=pf(El),Ef=mf(El),e7=ga(.42,0,1,1),t7=ga(0,0,.58,1),xf=ga(.42,0,.58,1),n7=e=>Array.isArray(e)&&typeof e[0]!="number",vf=e=>Array.isArray(e)&&typeof e[0]=="number",r7={linear:dn,easeIn:e7,easeInOut:xf,easeOut:t7,circIn:El,circInOut:Ef,circOut:Tf,backIn:Tl,backInOut:bf,backOut:gf,anticipate:yf},i7=e=>typeof e=="string",bc=e=>{if(vf(e)){gl(e.length===4);const[t,n,r,i]=e;return ga(t,n,r,i)}else if(i7(e))return r7[e];return e},Sf=O.createContext({}),Af=O.createContext({strict:!1}),Cf=O.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Os=O.createContext({});function Bs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function na(e){return typeof e=="string"||Array.isArray(e)}const xl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],vl=["initial",...xl];function Fs(e){return Bs(e.animate)||vl.some(t=>na(e[t]))}function wf(e){return!!(Fs(e)||e.variants)}function a7(e,t){if(Fs(e)){const{initial:n,animate:r}=e;return{initial:n===!1||na(n)?n:void 0,animate:na(r)?r:void 0}}return e.inherit!==!1?t:{}}function s7(e){const{initial:t,animate:n}=a7(e,O.useContext(Os));return O.useMemo(()=>({initial:t,animate:n}),[yc(t),yc(n)])}function yc(e){return Array.isArray(e)?e.join(" "):e}const Pa=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function o7(e,t){let n=new Set,r=new Set,i=!1,a=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function u(c){s.has(c)&&(l.schedule(c),e()),c(o)}const l={schedule:(c,d=!1,m=!1)=>{const b=m&&i?n:r;return d&&s.add(c),b.has(c)||b.add(c),c},cancel:c=>{r.delete(c),s.delete(c)},process:c=>{if(o=c,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(u),n.clear(),i=!1,a&&(a=!1,l.process(c))}};return l}const u7=40;function kf(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=Pa.reduce((v,L)=>(v[L]=o7(a),v),{}),{setup:o,read:u,resolveKeyframes:l,preUpdate:c,update:d,preRender:m,render:p,postRender:b}=s,E=()=>{const v=Gn.useManualTiming?i.timestamp:performance.now();n=!1,Gn.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(v-i.timestamp,u7),1)),i.timestamp=v,i.isProcessing=!0,o.process(i),u.process(i),l.process(i),c.process(i),d.process(i),m.process(i),p.process(i),b.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(E))},C=()=>{n=!0,r=!0,i.isProcessing||e(E)};return{schedule:Pa.reduce((v,L)=>{const P=s[L];return v[L]=(k,V=!1,U=!1)=>(n||C(),P.schedule(k,V,U)),v},{}),cancel:v=>{for(let L=0;L(es===void 0&&Gt.set(It.isProcessing||Gn.useManualTiming?It.timestamp:performance.now()),es),set:e=>{es=e,queueMicrotask(l7)}},If=e=>t=>typeof t=="string"&&t.startsWith(e),Sl=If("--"),c7=If("var(--"),Al=e=>c7(e)?d7.test(e.split("/*")[0].trim()):!1,d7=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,di={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ra={...di,transform:e=>Yn(0,1,e)},Oa={...di,default:1},Hi=e=>Math.round(e*1e5)/1e5,Cl=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function h7(e){return e==null}const f7=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,wl=(e,t)=>n=>!!(typeof n=="string"&&f7.test(n)&&n.startsWith(e)||t&&!h7(n)&&Object.prototype.hasOwnProperty.call(n,t)),Nf=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,s,o]=r.match(Cl);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},m7=e=>Yn(0,255,e),uo={...di,transform:e=>Math.round(m7(e))},Nr={test:wl("rgb","red"),parse:Nf("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+uo.transform(e)+", "+uo.transform(t)+", "+uo.transform(n)+", "+Hi(ra.transform(r))+")"};function p7(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const hu={test:wl("#"),parse:p7,transform:Nr.transform},ba=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),sr=ba("deg"),Dn=ba("%"),Ee=ba("px"),g7=ba("vh"),b7=ba("vw"),Tc={...Dn,parse:e=>Dn.parse(e)/100,transform:e=>Dn.transform(e*100)},Kr={test:wl("hsl","hue"),parse:Nf("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Dn.transform(Hi(t))+", "+Dn.transform(Hi(n))+", "+Hi(ra.transform(r))+")"},yt={test:e=>Nr.test(e)||hu.test(e)||Kr.test(e),parse:e=>Nr.test(e)?Nr.parse(e):Kr.test(e)?Kr.parse(e):hu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Nr.transform(e):Kr.transform(e),getAnimatableNone:e=>{const t=yt.parse(e);return t.alpha=0,yt.transform(t)}},y7=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function T7(e){return isNaN(e)&&typeof e=="string"&&(e.match(Cl)?.length||0)+(e.match(y7)?.length||0)>0}const Mf="number",Rf="color",E7="var",x7="var(",Ec="${}",v7=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ia(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const o=t.replace(v7,u=>(yt.test(u)?(r.color.push(a),i.push(Rf),n.push(yt.parse(u))):u.startsWith(x7)?(r.var.push(a),i.push(E7),n.push(u)):(r.number.push(a),i.push(Mf),n.push(parseFloat(u))),++a,Ec)).split(Ec);return{values:n,split:o,indexes:r,types:i}}function Df(e){return ia(e).values}function _f(e){const{split:t,types:n}=ia(e),r=t.length;return i=>{let a="";for(let s=0;stypeof e=="number"?0:yt.test(e)?yt.getAnimatableNone(e):e;function A7(e){const t=Df(e);return _f(e)(t.map(S7))}const fr={test:T7,parse:Df,createTransformer:_f,getAnimatableNone:A7};function lo(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function C7({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,s=0;if(!t)i=a=s=n;else{const o=n<.5?n*(1+t):n+t-n*t,u=2*n-o;i=lo(u,o,e+1/3),a=lo(u,o,e),s=lo(u,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}function hs(e,t){return n=>n>0?t:e}const ot=(e,t,n)=>e+(t-e)*n,co=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},w7=[hu,Nr,Kr],k7=e=>w7.find(t=>t.test(e));function xc(e){const t=k7(e);if(!t)return!1;let n=t.parse(e);return t===Kr&&(n=C7(n)),n}const vc=(e,t)=>{const n=xc(e),r=xc(t);if(!n||!r)return hs(e,t);const i={...n};return a=>(i.red=co(n.red,r.red,a),i.green=co(n.green,r.green,a),i.blue=co(n.blue,r.blue,a),i.alpha=ot(n.alpha,r.alpha,a),Nr.transform(i))},fu=new Set(["none","hidden"]);function I7(e,t){return fu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function N7(e,t){return n=>ot(e,t,n)}function kl(e){return typeof e=="number"?N7:typeof e=="string"?Al(e)?hs:yt.test(e)?vc:D7:Array.isArray(e)?Lf:typeof e=="object"?yt.test(e)?vc:M7:hs}function Lf(e,t){const n=[...e],r=n.length,i=e.map((a,s)=>kl(a)(a,t[s]));return a=>{for(let s=0;s{for(const a in r)n[a]=r[a](i);return n}}function R7(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i{const n=fr.createTransformer(t),r=ia(e),i=ia(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?fu.has(e)&&!i.values.length||fu.has(t)&&!r.values.length?I7(e,t):pa(Lf(R7(r,i),i.values),n):hs(e,t)};function Pf(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ot(e,t,n):kl(e)(e,t)}const _7=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>rt.update(t,n),stop:()=>hr(t),now:()=>It.isProcessing?It.timestamp:Gt.now()}},Of=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a=fs?1/0:t}function L7(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Il(r),fs);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:Rn(i)}}const P7=5;function Bf(e,t,n){const r=Math.max(t-P7,0);return hf(n-e(r),t-r)}const ct={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ho=.001;function O7({duration:e=ct.duration,bounce:t=ct.bounce,velocity:n=ct.velocity,mass:r=ct.mass}){let i,a,s=1-t;s=Yn(ct.minDamping,ct.maxDamping,s),e=Yn(ct.minDuration,ct.maxDuration,Rn(e)),s<1?(i=l=>{const c=l*s,d=c*e,m=c-n,p=mu(l,s),b=Math.exp(-d);return ho-m/p*b},a=l=>{const d=l*s*e,m=d*n+n,p=Math.pow(s,2)*Math.pow(l,2)*e,b=Math.exp(-d),E=mu(Math.pow(l,2),s);return(-i(l)+ho>0?-1:1)*((m-p)*b)/E}):(i=l=>{const c=Math.exp(-l*e),d=(l-n)*e+1;return-ho+c*d},a=l=>{const c=Math.exp(-l*e),d=(n-l)*(e*e);return c*d});const o=5/e,u=F7(i,a,o);if(e=Mn(e),isNaN(u))return{stiffness:ct.stiffness,damping:ct.damping,duration:e};{const l=Math.pow(u,2)*r;return{stiffness:l,damping:s*2*Math.sqrt(r*l),duration:e}}}const B7=12;function F7(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function U7(e){let t={velocity:ct.velocity,stiffness:ct.stiffness,damping:ct.damping,mass:ct.mass,isResolvedFromDuration:!1,...e};if(!Sc(e,z7)&&Sc(e,H7))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Yn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:ct.mass,stiffness:i,damping:a}}else{const n=O7(e);t={...t,...n,mass:ct.mass},t.isResolvedFromDuration=!0}return t}function ms(e=ct.visualDuration,t=ct.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],o={done:!1,value:a},{stiffness:u,damping:l,mass:c,duration:d,velocity:m,isResolvedFromDuration:p}=U7({...n,velocity:-Rn(n.velocity||0)}),b=m||0,E=l/(2*Math.sqrt(u*c)),C=s-a,T=Rn(Math.sqrt(u/c)),S=Math.abs(C)<5;r||(r=S?ct.restSpeed.granular:ct.restSpeed.default),i||(i=S?ct.restDelta.granular:ct.restDelta.default);let v;if(E<1){const P=mu(T,E);v=k=>{const V=Math.exp(-E*T*k);return s-V*((b+E*T*C)/P*Math.sin(P*k)+C*Math.cos(P*k))}}else if(E===1)v=P=>s-Math.exp(-T*P)*(C+(b+T*C)*P);else{const P=T*Math.sqrt(E*E-1);v=k=>{const V=Math.exp(-E*T*k),U=Math.min(P*k,300);return s-V*((b+E*T*C)*Math.sinh(U)+P*C*Math.cosh(U))/P}}const L={calculatedDuration:p&&d||null,next:P=>{const k=v(P);if(p)o.done=P>=d;else{let V=P===0?b:0;E<1&&(V=P===0?Mn(b):Bf(v,P,k));const U=Math.abs(V)<=r,q=Math.abs(s-k)<=i;o.done=U&&q}return o.value=o.done?s:k,o},toString:()=>{const P=Math.min(Il(L),fs),k=Of(V=>L.next(P*V).value,P,30);return P+"ms "+k},toTransition:()=>{}};return L}ms.applyToOptions=e=>{const t=L7(e,100,ms);return e.ease=t.ease,e.duration=Mn(t.duration),e.type="keyframes",e};function pu({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:u,restDelta:l=.5,restSpeed:c}){const d=e[0],m={done:!1,value:d},p=U=>o!==void 0&&Uu,b=U=>o===void 0?u:u===void 0||Math.abs(o-U)-E*Math.exp(-U/r),v=U=>T+S(U),L=U=>{const q=S(U),B=v(U);m.done=Math.abs(q)<=l,m.value=m.done?T:B};let P,k;const V=U=>{p(m.value)&&(P=U,k=ms({keyframes:[m.value,b(m.value)],velocity:Bf(v,U,m.value),damping:i,stiffness:a,restDelta:l,restSpeed:c}))};return V(0),{calculatedDuration:null,next:U=>{let q=!1;return!k&&P===void 0&&(q=!0,L(U),V(U)),P!==void 0&&U>=P?k.next(U-P):(!q&&L(U),m)}}}function V7(e,t,n){const r=[],i=n||Gn.mix||Pf,a=e.length-1;for(let s=0;st[0];if(a===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=V7(t,r,i),u=o.length,l=c=>{if(s&&c1)for(;dl(Yn(e[0],e[a-1],c)):l}function q7(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=ta(0,t,r);e.push(ot(n,1,i))}}function $7(e){const t=[0];return q7(t,e.length-1),t}function W7(e,t){return e.map(n=>n*t)}function Y7(e,t){return e.map(()=>t||xf).splice(0,e.length-1)}function zi({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=n7(r)?r.map(bc):bc(r),a={done:!1,value:t[0]},s=W7(n&&n.length===t.length?n:$7(t),e),o=j7(s,t,{ease:Array.isArray(i)?i:Y7(t,i)});return{calculatedDuration:e,next:u=>(a.value=o(u),a.done=u>=e,a)}}const G7=e=>e!==null;function Nl(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(G7),o=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!o||r===void 0?a[o]:r}const K7={decay:pu,inertia:pu,tween:zi,keyframes:zi,spring:ms};function Ff(e){typeof e.type=="string"&&(e.type=K7[e.type])}class Ml{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const X7=e=>e/100;class Rl extends Ml{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==Gt.now()&&this.tick(Gt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Ff(t);const{type:n=zi,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=t;let{keyframes:o}=t;const u=n||zi;u!==zi&&typeof o[0]!="number"&&(this.mixKeyframes=pa(X7,Pf(o[0],o[1])),o=[0,100]);const l=u({...t,keyframes:o});a==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...o].reverse(),velocity:-s})),l.calculatedDuration===null&&(l.calculatedDuration=Il(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=l}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:l=0,keyframes:c,repeat:d,repeatType:m,repeatDelay:p,type:b,onUpdate:E,finalKeyframe:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const T=this.currentTime-l*(this.playbackSpeed>=0?1:-1),S=this.playbackSpeed>=0?T<0:T>i;this.currentTime=Math.max(T,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,L=r;if(d){const U=Math.min(this.currentTime,i)/o;let q=Math.floor(U),B=U%1;!B&&U>=1&&(B=1),B===1&&q--,q=Math.min(q,d+1),!!(q%2)&&(m==="reverse"?(B=1-B,p&&(B-=p/o)):m==="mirror"&&(L=s)),v=Yn(0,1,B)*o}const P=S?{done:!1,value:c[0]}:L.next(v);a&&(P.value=a(P.value));let{done:k}=P;!S&&u!==null&&(k=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return V&&b!==pu&&(P.value=Nl(c,this.options,C,this.speed)),E&&E(P.value),V&&this.finish(),P}then(t,n){return this.finished.then(t,n)}get duration(){return Rn(this.calculatedDuration)}get time(){return Rn(this.currentTime)}set time(t){t=Mn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Gt.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Rn(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=_7,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Gt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function Q7(e){for(let t=1;te*180/Math.PI,gu=e=>{const t=Mr(Math.atan2(e[1],e[0]));return bu(t)},Z7={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:gu,rotateZ:gu,skewX:e=>Mr(Math.atan(e[1])),skewY:e=>Mr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},bu=e=>(e=e%360,e<0&&(e+=360),e),Ac=gu,Cc=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),wc=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),J7={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Cc,scaleY:wc,scale:e=>(Cc(e)+wc(e))/2,rotateX:e=>bu(Mr(Math.atan2(e[6],e[5]))),rotateY:e=>bu(Mr(Math.atan2(-e[2],e[0]))),rotateZ:Ac,rotate:Ac,skewX:e=>Mr(Math.atan(e[4])),skewY:e=>Mr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function yu(e){return e.includes("scale")?1:0}function Tu(e,t){if(!e||e==="none")return yu(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=J7,i=n;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Z7,i=o}if(!i)return yu(t);const a=r[t],s=i[1].split(",").map(t8);return typeof a=="function"?a(s):s[a]}const e8=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Tu(n,t)};function t8(e){return parseFloat(e.trim())}const hi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],fi=new Set(hi),kc=e=>e===di||e===Ee,n8=new Set(["x","y","z"]),r8=hi.filter(e=>!n8.has(e));function i8(e){const t=[];return r8.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Rr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Tu(t,"x"),y:(e,{transform:t})=>Tu(t,"y")};Rr.translateX=Rr.x;Rr.translateY=Rr.y;const Dr=new Set;let Eu=!1,xu=!1,vu=!1;function Hf(){if(xu){const e=Array.from(Dr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=i8(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,s])=>{r.getValue(a)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}xu=!1,Eu=!1,Dr.forEach(e=>e.complete(vu)),Dr.clear()}function zf(){Dr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(xu=!0)})}function a8(){vu=!0,zf(),Hf(),vu=!1}class Dl{constructor(t,n,r,i,a,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Dr.add(this),Eu||(Eu=!0,rt.read(zf),rt.resolveKeyframes(Hf))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const a=i?.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const o=r.readValue(n,s);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=s),i&&a===void 0&&i.set(t[0])}Q7(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Dr.delete(this)}cancel(){this.state==="scheduled"&&(Dr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const s8=e=>e.startsWith("--");function o8(e,t,n){s8(t)?e.style.setProperty(t,n):e.style[t]=n}const u8=bl(()=>window.ScrollTimeline!==void 0),l8={};function c8(e,t){const n=bl(e);return()=>l8[t]??n()}const Uf=c8(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Pi=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ic={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Pi([0,.65,.55,1]),circOut:Pi([.55,0,1,.45]),backIn:Pi([.31,.01,.66,-.59]),backOut:Pi([.33,1.53,.69,.99])};function Vf(e,t){if(e)return typeof e=="function"?Uf()?Of(e,t):"ease-out":vf(e)?Pi(e):Array.isArray(e)?e.map(n=>Vf(n,t)||Ic.easeOut):Ic[e]}function d8(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:o="easeOut",times:u}={},l=void 0){const c={[t]:n};u&&(c.offset=u);const d=Vf(o,i);Array.isArray(d)&&(c.easing=d);const m={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};return l&&(m.pseudoElement=l),e.animate(c,m)}function jf(e){return typeof e=="function"&&"applyToOptions"in e}function h8({type:e,...t}){return jf(e)&&Uf()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class f8 extends Ml{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:o,onComplete:u}=t;this.isPseudoElement=!!a,this.allowFlatten=s,this.options=t,gl(typeof t.type!="string");const l=h8(t);this.animation=d8(n,r,i,l,a),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const c=Nl(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(c):o8(n,r,c),this.animation.cancel()}u?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Rn(Number(t))}get time(){return Rn(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Mn(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&u8()?(this.animation.timeline=t,dn):n(this)}}const qf={anticipate:yf,backInOut:bf,circInOut:Ef};function m8(e){return e in qf}function p8(e){typeof e.ease=="string"&&m8(e.ease)&&(e.ease=qf[e.ease])}const Nc=10;class g8 extends f8{constructor(t){p8(t),Ff(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const o=new Rl({...s,autoplay:!1}),u=Mn(this.finishedTime??this.time);n.setWithVelocity(o.sample(u-Nc).value,o.sample(u).value,Nc),o.stop()}}const Mc=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(fr.test(e)||e==="0")&&!e.startsWith("url("));function b8(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function x8(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:l}=t.owner.getProps();return E8()&&n&&T8.has(n)&&(n!=="transform"||!l)&&!u&&!r&&i!=="mirror"&&a!==0&&s!=="inertia"}const v8=40;class S8 extends Ml{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",keyframes:o,name:u,motionValue:l,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Gt.now();const m={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:s,name:u,motionValue:l,element:c,...d},p=c?.KeyframeResolver||Dl;this.keyframeResolver=new p(o,(b,E,C)=>this.onKeyframesResolved(b,E,m,!C),u,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:a,type:s,velocity:o,delay:u,isHandoff:l,onUpdate:c}=r;this.resolvedAt=Gt.now(),y8(t,a,s,o)||((Gn.instantAnimations||!u)&&c?.(Nl(t,r,n)),t[0]=t[t.length-1],Su(r),r.repeat=0);const m={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>v8?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!l&&x8(m)?new g8({...m,element:m.motionValue.owner.current}):new Rl(m);p.finished.then(()=>this.notifyFinished()).catch(dn),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),a8()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const A8=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function C8(e){const t=A8.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function $f(e,t,n=1){const[r,i]=C8(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const s=a.trim();return lf(s)?parseFloat(s):s}return Al(i)?$f(i,t,n+1):i}function _l(e,t){return e?.[t]??e?.default??e}const Wf=new Set(["width","height","top","left","right","bottom",...hi]),w8={test:e=>e==="auto",parse:e=>e},Yf=e=>t=>t.test(e),Gf=[di,Ee,Dn,sr,b7,g7,w8],Rc=e=>Gf.find(Yf(e));function k8(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||df(e):!0}const I8=new Set(["brightness","contrast","saturate","opacity"]);function N8(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Cl)||[];if(!r)return e;const i=n.replace(r,"");let a=I8.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const M8=/\b([a-z-]*)\(.*?\)/gu,Au={...fr,getAnimatableNone:e=>{const t=e.match(M8);return t?t.map(N8).join(" "):e}},Dc={...di,transform:Math.round},R8={rotate:sr,rotateX:sr,rotateY:sr,rotateZ:sr,scale:Oa,scaleX:Oa,scaleY:Oa,scaleZ:Oa,skew:sr,skewX:sr,skewY:sr,distance:Ee,translateX:Ee,translateY:Ee,translateZ:Ee,x:Ee,y:Ee,z:Ee,perspective:Ee,transformPerspective:Ee,opacity:ra,originX:Tc,originY:Tc,originZ:Ee},Ll={borderWidth:Ee,borderTopWidth:Ee,borderRightWidth:Ee,borderBottomWidth:Ee,borderLeftWidth:Ee,borderRadius:Ee,radius:Ee,borderTopLeftRadius:Ee,borderTopRightRadius:Ee,borderBottomRightRadius:Ee,borderBottomLeftRadius:Ee,width:Ee,maxWidth:Ee,height:Ee,maxHeight:Ee,top:Ee,right:Ee,bottom:Ee,left:Ee,padding:Ee,paddingTop:Ee,paddingRight:Ee,paddingBottom:Ee,paddingLeft:Ee,margin:Ee,marginTop:Ee,marginRight:Ee,marginBottom:Ee,marginLeft:Ee,backgroundPositionX:Ee,backgroundPositionY:Ee,...R8,zIndex:Dc,fillOpacity:ra,strokeOpacity:ra,numOctaves:Dc},D8={...Ll,color:yt,backgroundColor:yt,outlineColor:yt,fill:yt,stroke:yt,borderColor:yt,borderTopColor:yt,borderRightColor:yt,borderBottomColor:yt,borderLeftColor:yt,filter:Au,WebkitFilter:Au},Kf=e=>D8[e];function Xf(e,t){let n=Kf(e);return n!==Au&&(n=fr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const _8=new Set(["auto","none","0"]);function L8(e,t,n){let r=0,i;for(;r{t.getValue(o).set(u)}),this.resolveNoneKeyframes()}}function O8(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const Qf=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function B8(e){return cf(e)&&"offsetHeight"in e}const _c=30,F8=e=>!isNaN(parseFloat(e));class H8{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const i=Gt.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Gt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=F8(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new yl);const r=this.events[t].add(n);return t==="change"?()=>{r(),rt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Gt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>_c)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,_c);return hf(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ai(e,t){return new H8(e,t)}const{schedule:Pl}=kf(queueMicrotask,!1),gn={x:!1,y:!1};function Zf(){return gn.x||gn.y}function z8(e){return e==="x"||e==="y"?gn[e]?null:(gn[e]=!0,()=>{gn[e]=!1}):gn.x||gn.y?null:(gn.x=gn.y=!0,()=>{gn.x=gn.y=!1})}function Jf(e,t){const n=O8(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Lc(e){return!(e.pointerType==="touch"||Zf())}function U8(e,t,n={}){const[r,i,a]=Jf(e,n),s=o=>{if(!Lc(o))return;const{target:u}=o,l=t(u,o);if(typeof l!="function"||!u)return;const c=d=>{Lc(d)&&(l(d),u.removeEventListener("pointerleave",c))};u.addEventListener("pointerleave",c,i)};return r.forEach(o=>{o.addEventListener("pointerenter",s,i)}),a}const em=(e,t)=>t?e===t?!0:em(e,t.parentElement):!1,Ol=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,V8=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function j8(e){return V8.has(e.tagName)||e.tabIndex!==-1}const ts=new WeakSet;function Pc(e){return t=>{t.key==="Enter"&&e(t)}}function fo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const q8=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Pc(()=>{if(ts.has(n))return;fo(n,"down");const i=Pc(()=>{fo(n,"up")}),a=()=>fo(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Oc(e){return Ol(e)&&!Zf()}function $8(e,t,n={}){const[r,i,a]=Jf(e,n),s=o=>{const u=o.currentTarget;if(!Oc(o))return;ts.add(u);const l=t(u,o),c=(p,b)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",m),ts.has(u)&&ts.delete(u),Oc(p)&&typeof l=="function"&&l(p,{success:b})},d=p=>{c(p,u===window||u===document||n.useGlobalTarget||em(u,p.target))},m=p=>{c(p,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",m,i)};return r.forEach(o=>{(n.useGlobalTarget?window:o).addEventListener("pointerdown",s,i),B8(o)&&(o.addEventListener("focus",l=>q8(l,i)),!j8(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),a}function tm(e){return cf(e)&&"ownerSVGElement"in e}function W8(e){return tm(e)&&e.tagName==="svg"}const Rt=e=>!!(e&&e.getVelocity),Y8=[...Gf,yt,fr],G8=e=>Y8.find(Yf(e)),aa={};function K8(e){for(const t in e)aa[t]=e[t],Sl(t)&&(aa[t].isCSSVariable=!0)}function nm(e,{layout:t,layoutId:n}){return fi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!aa[e]||e==="opacity")}const X8={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Q8=hi.length;function Z8(e,t,n){let r="",i=!0;for(let a=0;a({style:{},transform:{},transformOrigin:{},vars:{}});function rm(e,t,n){for(const r in t)!Rt(t[r])&&!nm(r,n)&&(e[r]=t[r])}function J8({transformTemplate:e},t){return O.useMemo(()=>{const n=Fl();return Bl(n,t,e),Object.assign({},n.vars,n.style)},[t])}function eb(e,t){const n=e.style||{},r={};return rm(r,n,e),Object.assign(r,J8(e,t)),r}function tb(e,t){const n={},r=eb(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const nb={offset:"stroke-dashoffset",array:"stroke-dasharray"},rb={offset:"strokeDashoffset",array:"strokeDasharray"};function ib(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?nb:rb;e[a.offset]=Ee.transform(-r);const s=Ee.transform(t),o=Ee.transform(n);e[a.array]=`${s} ${o}`}function im(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...o},u,l,c){if(Bl(e,o,l),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:m}=e;d.transform&&(m.transform=d.transform,delete d.transform),(m.transform||d.transformOrigin)&&(m.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),m.transform&&(m.transformBox=c?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&ib(d,i,a,s,!1)}const am=()=>({...Fl(),attrs:{}}),sm=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ab(e,t,n,r){const i=O.useMemo(()=>{const a=am();return im(a,t,sm(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};rm(a,e.style,e),i.style={...a,...i.style}}return i}const sb=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ps(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||sb.has(e)}let om=e=>!ps(e);function ob(e){typeof e=="function"&&(om=t=>t.startsWith("on")?!ps(t):e(t))}try{ob(require("@emotion/is-prop-valid").default)}catch{}function ub(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(om(i)||n===!0&&ps(i)||!t&&!ps(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const lb=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Hl(e){return typeof e!="string"||e.includes("-")?!1:!!(lb.indexOf(e)>-1||/[A-Z]/u.test(e))}function cb(e,t,n,{latestValues:r},i,a=!1){const o=(Hl(e)?ab:tb)(t,r,i,e),u=ub(t,typeof e=="string",a),l=e!==O.Fragment?{...u,...o,ref:n}:{},{children:c}=t,d=O.useMemo(()=>Rt(c)?c.get():c,[c]);return O.createElement(e,{...l,children:d})}const zl=O.createContext(null);function Bc(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ul(e,t,n,r){if(typeof t=="function"){const[i,a]=Bc(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=Bc(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function db(e){const t=O.useRef(null);return t.current===null&&(t.current=e()),t.current}function ns(e){return Rt(e)?e.get():e}function hb({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:fb(n,r,i,e),renderState:t()}}function fb(e,t,n,r){const i={},a=r(e,{});for(const m in a)i[m]=ns(a[m]);let{initial:s,animate:o}=e;const u=Fs(e),l=wf(e);t&&l&&!u&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?o:s;if(d&&typeof d!="boolean"&&!Bs(d)){const m=Array.isArray(d)?d:[d];for(let p=0;p(t,n)=>{const r=O.useContext(Os),i=O.useContext(zl),a=()=>hb(e,t,r,i);return n?a():db(a)};function Vl(e,t,n){const{style:r}=e,i={};for(const a in r)(Rt(r[a])||t.style&&Rt(t.style[a])||nm(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(i[a]=r[a]);return i}const mb=um({scrapeMotionValuesFromProps:Vl,createRenderState:Fl});function lm(e,t,n){const r=Vl(e,t,n);for(const i in e)if(Rt(e[i])||Rt(t[i])){const a=hi.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const pb=um({scrapeMotionValuesFromProps:lm,createRenderState:am}),jl=typeof window<"u",Fc={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},si={};for(const e in Fc)si[e]={isEnabled:t=>Fc[e].some(n=>!!t[n])};function gb(e){for(const t in e)si[t]={...si[t],...e[t]}}const bb=Symbol.for("motionComponentSymbol");function Xr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function yb(e,t,n){const r=O.useRef(null);return O.useCallback(i=>{const a=r.current;r.current=i,i!==a&&(i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount())),n&&(typeof n=="function"?n(i):Xr(n)&&(n.current=i))},[t,n])}const ql=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Tb="framerAppearId",cm="data-"+ql(Tb),dm=O.createContext({}),Eb=jl?O.useLayoutEffect:O.useEffect;function xb(e,t,n,r,i){const{visualElement:a}=O.useContext(Os),s=O.useContext(Af),o=O.useContext(zl),u=O.useContext(Cf).reducedMotion,l=O.useRef(null);r=r||s.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:a,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:u}));const c=l.current,d=O.useContext(dm);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&vb(l.current,n,i,d);const m=O.useRef(!1);O.useInsertionEffect(()=>{c&&m.current&&c.update(n,o)});const p=n[cm],b=O.useRef(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return Eb(()=>{c&&(m.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),b.current&&c.animationState&&c.animationState.animateChanges())}),O.useEffect(()=>{c&&(!b.current&&c.animationState&&c.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),b.current=!1),c.enteringChildren=void 0)}),c}function vb(e,t,n,r){const{layoutId:i,layout:a,drag:s,dragConstraints:o,layoutScroll:u,layoutRoot:l,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:hm(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||o&&Xr(o),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:u,layoutRoot:l})}function hm(e){if(e)return e.options.allowProjection!==!1?e.projection:hm(e.parent)}function Sb(e,{forwardMotionProps:t=!1}={},n,r){n&&gb(n);const i=Hl(e)?pb:mb;function a(o,u){let l;const c={...O.useContext(Cf),...o,layoutId:Ab(o)},{isStatic:d}=c,m=s7(o),p=i(o,d);if(!d&&jl){Cb();const b=wb(c);l=b.MeasureLayout,m.visualElement=xb(e,p,c,r,b.ProjectionNode)}return D.jsxs(Os.Provider,{value:m,children:[l&&m.visualElement?D.jsx(l,{visualElement:m.visualElement,...c}):null,cb(e,o,yb(p,m.visualElement,u),p,d,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=O.forwardRef(a);return s[bb]=e,s}function Ab({layoutId:e}){const t=O.useContext(Sf).id;return t&&e!==void 0?t+"-"+e:e}function Cb(e,t){O.useContext(Af).strict}function wb(e){const{drag:t,layout:n}=si;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function fm({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function kb({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Ib(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function mo(e){return e===void 0||e===1}function Cu({scale:e,scaleX:t,scaleY:n}){return!mo(e)||!mo(t)||!mo(n)}function Ir(e){return Cu(e)||mm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function mm(e){return Hc(e.x)||Hc(e.y)}function Hc(e){return e&&e!=="0%"}function gs(e,t,n){const r=e-n,i=t*r;return n+i}function zc(e,t,n,r,i){return i!==void 0&&(e=gs(e,i,r)),gs(e,n,r)+t}function wu(e,t=0,n=1,r,i){e.min=zc(e.min,t,n,r,i),e.max=zc(e.max,t,n,r,i)}function pm(e,{x:t,y:n}){wu(e.x,t.translate,t.scale,t.originPoint),wu(e.y,n.translate,n.scale,n.originPoint)}const Uc=.999999999999,Vc=1.0000000000001;function Nb(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,s;for(let o=0;oUc&&(t.x=1),t.yUc&&(t.y=1)}function Qr(e,t){e.min=e.min+t,e.max=e.max+t}function jc(e,t,n,r,i=.5){const a=ot(e.min,e.max,i);wu(e,t,n,a,r)}function Zr(e,t){jc(e.x,t.x,t.scaleX,t.scale,t.originX),jc(e.y,t.y,t.scaleY,t.scale,t.originY)}function gm(e,t){return fm(Ib(e.getBoundingClientRect(),t))}function Mb(e,t,n){const r=gm(e,n),{scroll:i}=t;return i&&(Qr(r.x,i.offset.x),Qr(r.y,i.offset.y)),r}const qc=()=>({translate:0,scale:1,origin:0,originPoint:0}),Jr=()=>({x:qc(),y:qc()}),$c=()=>({min:0,max:0}),ht=()=>({x:$c(),y:$c()}),ku={current:null},bm={current:!1};function Rb(){if(bm.current=!0,!!jl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ku.current=e.matches;e.addEventListener("change",t),t()}else ku.current=!1}const Db=new WeakMap;function _b(e,t,n){for(const r in t){const i=t[r],a=n[r];if(Rt(i))e.addValue(r,i);else if(Rt(a))e.addValue(r,ai(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,ai(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Wc=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Lb{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Dl,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=Gt.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),bm.current||Rb(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ku.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),hr(this.notifyUpdate),hr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=fi.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&rt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in si){const n=si[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ht()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=ai(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(lf(r)||df(r))?r=parseFloat(r):!G8(r)&&fr.test(n)&&(r=Xf(t,n)),this.setBaseTarget(t,Rt(r)?r.get():r)),Rt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const a=Ul(this.props,n,this.presenceContext?.custom);a&&(r=a[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Rt(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new yl),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Pl.render(this.render)}}class ym extends Lb{constructor(){super(...arguments),this.KeyframeResolver=P8}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Rt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Tm(e,{style:t,vars:n},r,i){const a=e.style;let s;for(s in t)a[s]=t[s];i?.applyProjectionStyles(a,r);for(s in n)a.setProperty(s,n[s])}function Pb(e){return window.getComputedStyle(e)}class Ob extends ym{constructor(){super(...arguments),this.type="html",this.renderInstance=Tm}readValueFromInstance(t,n){if(fi.has(n))return this.projection?.isProjecting?yu(n):e8(t,n);{const r=Pb(t),i=(Sl(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return gm(t,n)}build(t,n,r){Bl(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Vl(t,n,r)}}const Em=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Bb(e,t,n,r){Tm(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Em.has(i)?i:ql(i),t.attrs[i])}class Fb extends ym{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ht}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(fi.has(n)){const r=Kf(n);return r&&r.default||0}return n=Em.has(n)?n:ql(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return lm(t,n,r)}build(t,n,r){im(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){Bb(t,n,r,i)}mount(t){this.isSVGTag=sm(t.tagName),super.mount(t)}}const Hb=(e,t)=>Hl(e)?new Fb(t):new Ob(t,{allowProjection:e!==O.Fragment});function ti(e,t,n){const r=e.getProps();return Ul(r,t,n!==void 0?n:r.custom,e)}const Iu=e=>Array.isArray(e);function zb(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ai(n))}function Ub(e){return Iu(e)?e[e.length-1]||0:e}function Vb(e,t){const n=ti(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const s in a){const o=Ub(a[s]);zb(e,s,o)}}function jb(e){return!!(Rt(e)&&e.add)}function Nu(e,t){const n=e.getValue("willChange");if(jb(n))return n.add(t);if(!n&&Gn.WillChange){const r=new Gn.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function xm(e){return e.props[cm]}const qb=e=>e!==null;function $b(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(qb),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[a]}const Wb={type:"spring",stiffness:500,damping:25,restSpeed:10},Yb=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Gb={type:"keyframes",duration:.8},Kb={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Xb=(e,{keyframes:t})=>t.length>2?Gb:fi.has(e)?e.startsWith("scale")?Yb(t[1]):Wb:Kb;function Qb({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:o,from:u,elapsed:l,...c}){return!!Object.keys(c).length}const $l=(e,t,n,r={},i,a)=>s=>{const o=_l(r,e)||{},u=o.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Mn(u);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-l,onUpdate:m=>{t.set(m),o.onUpdate&&o.onUpdate(m)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:a?void 0:i};Qb(o)||Object.assign(c,Xb(e,c)),c.duration&&(c.duration=Mn(c.duration)),c.repeatDelay&&(c.repeatDelay=Mn(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Su(c),c.delay===0&&(d=!0)),(Gn.instantAnimations||Gn.skipAnimations)&&(d=!0,Su(c),c.delay=0),c.allowFlatten=!o.type&&!o.ease,d&&!a&&t.get()!==void 0){const m=$b(c.keyframes,o);if(m!==void 0){rt.update(()=>{c.onUpdate(m),c.onComplete()});return}}return o.isSync?new Rl(c):new S8(c)};function Zb({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function vm(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...o}=t;r&&(a=r);const u=[],l=i&&e.animationState&&e.animationState.getState()[i];for(const c in o){const d=e.getValue(c,e.latestValues[c]??null),m=o[c];if(m===void 0||l&&Zb(l,c))continue;const p={delay:n,..._l(a||{},c)},b=d.get();if(b!==void 0&&!d.isAnimating&&!Array.isArray(m)&&m===b&&!p.velocity)continue;let E=!1;if(window.MotionHandoffAnimation){const T=xm(e);if(T){const S=window.MotionHandoffAnimation(T,c,rt);S!==null&&(p.startTime=S,E=!0)}}Nu(e,c),d.start($l(c,d,m,e.shouldReduceMotion&&Wf.has(c)?{type:!1}:p,e,E));const C=d.animation;C&&u.push(C)}return s&&Promise.all(u).then(()=>{rt.update(()=>{s&&Vb(e,s)})}),u}function Sm(e,t,n,r=0,i=1){const a=Array.from(e).sort((l,c)=>l.sortNodePosition(c)).indexOf(t),s=e.size,o=(s-1)*r;return typeof n=="function"?n(a,s):i===1?a*r:o-a*r}function Mu(e,t,n={}){const r=ti(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(vm(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:c,staggerDirection:d}=i;return Jb(e,t,u,l,c,d,n)}:()=>Promise.resolve(),{when:o}=i;if(o){const[u,l]=o==="beforeChildren"?[a,s]:[s,a];return u().then(()=>l())}else return Promise.all([a(),s(n.delay)])}function Jb(e,t,n=0,r=0,i=0,a=1,s){const o=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),o.push(Mu(u,t,{...s,delay:n+(typeof r=="function"?0:r)+Sm(e.variantChildren,u,r,i,a)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(o)}function e9(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>Mu(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=Mu(e,t,n);else{const i=typeof t=="function"?ti(e,t,n.custom):t;r=Promise.all(vm(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Am(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rPromise.all(t.map(({animation:n,options:r})=>e9(e,n,r)))}function a9(e){let t=i9(e),n=Yc(),r=!0;const i=u=>(l,c)=>{const d=ti(e,c,u==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:m,transitionEnd:p,...b}=d;l={...l,...b,...p}}return l};function a(u){t=u(e)}function s(u){const{props:l}=e,c=Cm(e.parent)||{},d=[],m=new Set;let p={},b=1/0;for(let C=0;Cb&&L,q=!1;const B=Array.isArray(v)?v:[v];let K=B.reduce(i(T),{});P===!1&&(K={});const{prevResolvedValues:Y={}}=S,X={...Y,...K},j=le=>{U=!0,m.has(le)&&(q=!0,m.delete(le)),S.needsAnimating[le]=!0;const fe=e.getValue(le);fe&&(fe.liveStyle=!1)};for(const le in X){const fe=K[le],oe=Y[le];if(p.hasOwnProperty(le))continue;let I=!1;Iu(fe)&&Iu(oe)?I=!Am(fe,oe):I=fe!==oe,I?fe!=null?j(le):m.add(le):fe!==void 0&&m.has(le)?j(le):S.protectedKeys[le]=!0}S.prevProp=v,S.prevResolvedValues=K,S.isActive&&(p={...p,...K}),r&&e.blockInitialAnimation&&(U=!1);const W=k&&V;U&&(!W||q)&&d.push(...B.map(le=>{const fe={type:T};if(typeof le=="string"&&r&&!W&&e.manuallyAnimateOnMount&&e.parent){const{parent:oe}=e,I=ti(oe,le);if(oe.enteringChildren&&I){const{delayChildren:De}=I.transition||{};fe.delay=Sm(oe.enteringChildren,e,De)}}return{animation:le,options:fe}}))}if(m.size){const C={};if(typeof l.initial!="boolean"){const T=ti(e,Array.isArray(l.initial)?l.initial[0]:l.initial);T&&T.transition&&(C.transition=T.transition)}m.forEach(T=>{const S=e.getBaseTarget(T),v=e.getValue(T);v&&(v.liveStyle=!0),C[T]=S??null}),d.push({animation:C})}let E=!!d.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(E=!1),r=!1,E?t(d):Promise.resolve()}function o(u,l){if(n[u].isActive===l)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(u,l)),n[u].isActive=l;const c=s(u);for(const d in n)n[d].protectedKeys={};return c}return{animateChanges:s,setActive:o,setAnimateFunction:a,getState:()=>n,reset:()=>{n=Yc(),r=!0}}}function s9(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Am(t,e):!1}function xr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Yc(){return{animate:xr(!0),whileInView:xr(),whileHover:xr(),whileTap:xr(),whileDrag:xr(),whileFocus:xr(),exit:xr()}}class br{constructor(t){this.isMounted=!1,this.node=t}update(){}}class o9 extends br{constructor(t){super(t),t.animationState||(t.animationState=a9(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Bs(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let u9=0;class l9 extends br{constructor(){super(...arguments),this.id=u9++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const c9={animation:{Feature:o9},exit:{Feature:l9}};function sa(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ya(e){return{point:{x:e.pageX,y:e.pageY}}}const d9=e=>t=>Ol(t)&&e(t,ya(t));function Ui(e,t,n,r){return sa(e,t,d9(n),r)}const wm=1e-4,h9=1-wm,f9=1+wm,km=.01,m9=0-km,p9=0+km;function Ht(e){return e.max-e.min}function g9(e,t,n){return Math.abs(e-t)<=n}function Gc(e,t,n,r=.5){e.origin=r,e.originPoint=ot(t.min,t.max,e.origin),e.scale=Ht(n)/Ht(t),e.translate=ot(n.min,n.max,e.origin)-e.originPoint,(e.scale>=h9&&e.scale<=f9||isNaN(e.scale))&&(e.scale=1),(e.translate>=m9&&e.translate<=p9||isNaN(e.translate))&&(e.translate=0)}function Vi(e,t,n,r){Gc(e.x,t.x,n.x,r?r.originX:void 0),Gc(e.y,t.y,n.y,r?r.originY:void 0)}function Kc(e,t,n){e.min=n.min+t.min,e.max=e.min+Ht(t)}function b9(e,t,n){Kc(e.x,t.x,n.x),Kc(e.y,t.y,n.y)}function Xc(e,t,n){e.min=t.min-n.min,e.max=e.min+Ht(t)}function ji(e,t,n){Xc(e.x,t.x,n.x),Xc(e.y,t.y,n.y)}function on(e){return[e("x"),e("y")]}const Im=({current:e})=>e?e.ownerDocument.defaultView:null,Qc=(e,t)=>Math.abs(e-t);function y9(e,t){const n=Qc(e.x,t.x),r=Qc(e.y,t.y);return Math.sqrt(n**2+r**2)}class Nm{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=go(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,b=y9(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!b)return;const{point:E}=m,{timestamp:C}=It;this.history.push({...E,timestamp:C});const{onStart:T,onMove:S}=this.handlers;p||(T&&T(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=po(p,this.transformPagePoint),rt.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:b,onSessionEnd:E,resumeAnimation:C}=this.handlers;if(this.dragSnapToOrigin&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=go(m.type==="pointercancel"?this.lastMoveEventInfo:po(p,this.transformPagePoint),this.history);this.startEvent&&b&&b(m,T),E&&E(m,T)},!Ol(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const o=ya(t),u=po(o,this.transformPagePoint),{point:l}=u,{timestamp:c}=It;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,go(u,this.history)),this.removeListeners=pa(Ui(this.contextWindow,"pointermove",this.handlePointerMove),Ui(this.contextWindow,"pointerup",this.handlePointerUp),Ui(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),hr(this.updatePoint)}}function po(e,t){return t?{point:t(e.point)}:e}function Zc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function go({point:e},t){return{point:e,delta:Zc(e,Mm(t)),offset:Zc(e,T9(t)),velocity:E9(t,.1)}}function T9(e){return e[0]}function Mm(e){return e[e.length-1]}function E9(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Mm(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Mn(t)));)n--;if(!r)return{x:0,y:0};const a=Rn(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const s={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function x9(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ot(n,e,r.max):Math.min(e,n)),e}function Jc(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function v9(e,{top:t,left:n,bottom:r,right:i}){return{x:Jc(e.x,n,i),y:Jc(e.y,t,r)}}function ed(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=ta(t.min,t.max-r,e.min):r>i&&(n=ta(e.min,e.max-i,t.min)),Yn(0,1,n)}function C9(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Ru=.35;function w9(e=Ru){return e===!1?e=0:e===!0&&(e=Ru),{x:td(e,"left","right"),y:td(e,"top","bottom")}}function td(e,t,n){return{min:nd(e,t),max:nd(e,n)}}function nd(e,t){return typeof e=="number"?e:e[t]||0}const k9=new WeakMap;class I9{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ht(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=d=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ya(d).point)},s=(d,m)=>{const{drag:p,dragPropagation:b,onDragStart:E}=this.getProps();if(p&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=z8(p),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=m,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),on(T=>{let S=this.getAxisMotionValue(T).get()||0;if(Dn.test(S)){const{projection:v}=this.visualElement;if(v&&v.layout){const L=v.layout.layoutBox[T];L&&(S=Ht(L)*(parseFloat(S)/100))}}this.originPoint[T]=S}),E&&rt.postRender(()=>E(d,m)),Nu(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},o=(d,m)=>{this.latestPointerEvent=d,this.latestPanInfo=m;const{dragPropagation:p,dragDirectionLock:b,onDirectionLock:E,onDrag:C}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:T}=m;if(b&&this.currentDirection===null){this.currentDirection=N9(T),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",m.point,T),this.updateAxis("y",m.point,T),this.visualElement.render(),C&&C(d,m)},u=(d,m)=>{this.latestPointerEvent=d,this.latestPanInfo=m,this.stop(d,m),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>on(d=>this.getAnimationState(d)==="paused"&&this.getAxisMotionValue(d).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Nm(t,{onSessionStart:a,onStart:s,onMove:o,onSessionEnd:u,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:Im(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&&rt.postRender(()=>o(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Ba(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=x9(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&Xr(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=v9(r.layoutBox,t):this.constraints=!1,this.elastic=w9(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&on(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=C9(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Xr(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=Mb(r,i.root,this.visualElement.getTransformPagePoint());let s=S9(i.layout.layoutBox,a);if(n){const o=n(kb(s));this.hasMutatedConstraints=!!o,o&&(s=fm(o))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),u=this.constraints||{},l=on(c=>{if(!Ba(c,n,this.currentDirection))return;let d=u&&u[c]||{};s&&(d={min:0,max:0});const m=i?200:1e6,p=i?40:1e7,b={type:"inertia",velocity:r?t[c]:0,bounceStiffness:m,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...a,...d};return this.startAxisValueAnimation(c,b)});return Promise.all(l).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Nu(this.visualElement,t),r.start($l(t,r,0,n,this.visualElement,!1))}stopAnimation(){on(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){on(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){on(n=>{const{drag:r}=this.getProps();if(!Ba(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:o}=i.layout.layoutBox[n];a.set(t[n]-ot(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Xr(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};on(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const u=o.get();i[s]=A9({min:u,max:u},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),on(s=>{if(!Ba(s,t,null))return;const o=this.getAxisMotionValue(s),{min:u,max:l}=this.constraints[s];o.set(ot(u,l,i[s]))})}addListeners(){if(!this.visualElement.current)return;k9.set(this.visualElement,this);const t=this.visualElement.current,n=Ui(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Xr(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),rt.read(r);const s=sa(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(on(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=u[c].translate,d.set(d.get()+u[c].translate))}),this.visualElement.render())}));return()=>{s(),n(),a(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:s=Ru,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:s,dragMomentum:o}}}function Ba(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function N9(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class M9 extends br{constructor(t){super(t),this.removeGroupControls=dn,this.removeListeners=dn,this.controls=new I9(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||dn}unmount(){this.removeGroupControls(),this.removeListeners()}}const rd=e=>(t,n)=>{e&&rt.postRender(()=>e(t,n))};class R9 extends br{constructor(){super(...arguments),this.removePointerDownListener=dn}onPointerDown(t){this.session=new Nm(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Im(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:rd(t),onStart:rd(n),onMove:r,onEnd:(a,s)=>{delete this.session,i&&rt.postRender(()=>i(a,s))}}}mount(){this.removePointerDownListener=Ui(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function D9(e=!0){const t=O.useContext(zl);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=O.useId();O.useEffect(()=>{if(e)return i(a)},[e]);const s=O.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,s]:[!0]}const rs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function id(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ki={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ee.test(e))e=parseFloat(e);else return e;const n=id(e,t.target.x),r=id(e,t.target.y);return`${n}% ${r}%`}},_9={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=fr.parse(e);if(i.length>5)return r;const a=fr.createTransformer(e),s=typeof i[0]!="number"?1:0,o=n.x.scale*t.x,u=n.y.scale*t.y;i[0+s]/=o,i[1+s]/=u;const l=ot(o,u,.5);return typeof i[2+s]=="number"&&(i[2+s]/=l),typeof i[3+s]=="number"&&(i[3+s]/=l),a(i)}};let bo=!1;class L9 extends O.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;K8(P9),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),bo&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),rs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:s}=r;return s&&(s.isPresent=a,bo=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==a?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||rt.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Pl.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;bo=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Rm(e){const[t,n]=D9(),r=O.useContext(Sf);return D.jsx(L9,{...e,layoutGroup:r,switchLayoutGroup:O.useContext(dm),isPresent:t,safeToRemove:n})}const P9={borderRadius:{...ki,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ki,borderTopRightRadius:ki,borderBottomLeftRadius:ki,borderBottomRightRadius:ki,boxShadow:_9};function O9(e,t,n){const r=Rt(e)?e:ai(e);return r.start($l("",r,t,n)),r.animation}const B9=(e,t)=>e.depth-t.depth;class F9{constructor(){this.children=[],this.isDirty=!1}add(t){ml(this.children,t),this.isDirty=!0}remove(t){pl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(B9),this.isDirty=!1,this.children.forEach(t)}}function H9(e,t){const n=Gt.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(hr(r),e(a-t))};return rt.setup(r,!0),()=>hr(r)}const Dm=["TopLeft","TopRight","BottomLeft","BottomRight"],z9=Dm.length,ad=e=>typeof e=="string"?parseFloat(e):e,sd=e=>typeof e=="number"||Ee.test(e);function U9(e,t,n,r,i,a){i?(e.opacity=ot(0,n.opacity??1,V9(r)),e.opacityExit=ot(t.opacity??1,0,j9(r))):a&&(e.opacity=ot(t.opacity??1,n.opacity??1,r));for(let s=0;srt?1:n(ta(e,t,r))}function ud(e,t){e.min=t.min,e.max=t.max}function sn(e,t){ud(e.x,t.x),ud(e.y,t.y)}function ld(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function cd(e,t,n,r,i){return e-=t,e=gs(e,1/n,r),i!==void 0&&(e=gs(e,1/i,r)),e}function q9(e,t=0,n=1,r=.5,i,a=e,s=e){if(Dn.test(t)&&(t=parseFloat(t),t=ot(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=ot(a.min,a.max,r);e===a&&(o-=t),e.min=cd(e.min,t,n,o,i),e.max=cd(e.max,t,n,o,i)}function dd(e,t,[n,r,i],a,s){q9(e,t[n],t[r],t[i],t.scale,a,s)}const $9=["x","scaleX","originX"],W9=["y","scaleY","originY"];function hd(e,t,n,r){dd(e.x,t,$9,n?n.x:void 0,r?r.x:void 0),dd(e.y,t,W9,n?n.y:void 0,r?r.y:void 0)}function fd(e){return e.translate===0&&e.scale===1}function Lm(e){return fd(e.x)&&fd(e.y)}function md(e,t){return e.min===t.min&&e.max===t.max}function Y9(e,t){return md(e.x,t.x)&&md(e.y,t.y)}function pd(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Pm(e,t){return pd(e.x,t.x)&&pd(e.y,t.y)}function gd(e){return Ht(e.x)/Ht(e.y)}function bd(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class G9{constructor(){this.members=[]}add(t){ml(this.members,t),t.scheduleRender()}remove(t){if(pl(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function K9(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,s=n?.z||0;if((i||a||s)&&(r=`translate3d(${i}px, ${a}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:c,rotateX:d,rotateY:m,skewX:p,skewY:b}=n;l&&(r=`perspective(${l}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),m&&(r+=`rotateY(${m}deg) `),p&&(r+=`skewX(${p}deg) `),b&&(r+=`skewY(${b}deg) `)}const o=e.x.scale*t.x,u=e.y.scale*t.y;return(o!==1||u!==1)&&(r+=`scale(${o}, ${u})`),r||"none"}const yo=["","X","Y","Z"],X9=1e3;let Q9=0;function To(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Om(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=xm(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",rt,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Om(r)}function Bm({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},o=t?.()){this.id=Q9++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(ey),this.nodes.forEach(iy),this.nodes.forEach(ay),this.nodes.forEach(ty)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let u=0;uthis.root.updateBlockedByResize=!1;rt.read(()=>{d=window.innerWidth}),e(s,()=>{const p=window.innerWidth;p!==d&&(d=p,this.root.updateBlockedByResize=!0,c&&c(),c=H9(m,250),rs.hasAnimatedSinceResize&&(rs.hasAnimatedSinceResize=!1,this.nodes.forEach(Ed)))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&l&&(o||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:m,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||l.getDefaultTransition()||cy,{onLayoutAnimationStart:E,onLayoutAnimationComplete:C}=l.getProps(),T=!this.targetLayout||!Pm(this.targetLayout,p),S=!d&&m;if(this.options.layoutRoot||this.resumeFrom||S||d&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={..._l(b,"layout"),onPlay:E,onComplete:C};(l.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(c,S)}else d||Ed(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),hr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(sy),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Om(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ht(this.snapshot.measuredBox.x)&&!Ht(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u{const P=L/1e3;xd(d.x,s.x,P),xd(d.y,s.y,P),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ji(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),uy(this.relativeTarget,this.relativeTargetOrigin,m,P),v&&Y9(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=ht()),sn(v,this.relativeTarget)),E&&(this.animationValues=c,U9(c,l,this.latestValues,P,S,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(hr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=rt.update(()=>{rs.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ai(0)),this.currentAnimation=O9(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(X9),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:u,layout:l,latestValues:c}=s;if(!(!o||!u||!l)){if(this!==s&&this.layout&&l&&Fm(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||ht();const d=Ht(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+d;const m=Ht(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+m}sn(o,u),Zr(o,c),Vi(this.projectionDeltaWithTransform,this.layoutCorrected,o,c)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new G9),this.sharedNodes.get(s).add(o);const l=o.options.initialPromotionConfig;o.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:u}=s;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(o=!0),!o)return;const l={};u.z&&To("z",s,l,this.animationValues);for(let c=0;cs.currentAnimation?.stop()),this.root.nodes.forEach(yd),this.root.sharedNodes.clear()}}}function Z9(e){e.updateLayout()}function J9(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i==="size"?on(c=>{const d=a?t.measuredBox[c]:t.layoutBox[c],m=Ht(d);d.min=n[c].min,d.max=d.min+m}):Fm(i,t.layoutBox,n)&&on(c=>{const d=a?t.measuredBox[c]:t.layoutBox[c],m=Ht(n[c]);d.max=d.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+m)});const s=Jr();Vi(s,n,t.layoutBox);const o=Jr();a?Vi(o,e.applyTransform(r,!0),t.measuredBox):Vi(o,n,t.layoutBox);const u=!Lm(s);let l=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:d,layout:m}=c;if(d&&m){const p=ht();ji(p,t.layoutBox,d.layoutBox);const b=ht();ji(b,n,m.layoutBox),Pm(p,b)||(l=!0),c.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=p,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:o,layoutDelta:s,hasLayoutChanged:u,hasRelativeLayoutChanged:l})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function ey(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function ty(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ny(e){e.clearSnapshot()}function yd(e){e.clearMeasurements()}function Td(e){e.isLayoutDirty=!1}function ry(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ed(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function iy(e){e.resolveTargetDelta()}function ay(e){e.calcProjection()}function sy(e){e.resetSkewAndRotation()}function oy(e){e.removeLeadSnapshot()}function xd(e,t,n){e.translate=ot(t.translate,0,n),e.scale=ot(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function vd(e,t,n,r){e.min=ot(t.min,n.min,r),e.max=ot(t.max,n.max,r)}function uy(e,t,n,r){vd(e.x,t.x,n.x,r),vd(e.y,t.y,n.y,r)}function ly(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const cy={duration:.45,ease:[.4,0,.1,1]},Sd=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ad=Sd("applewebkit/")&&!Sd("chrome/")?Math.round:dn;function Cd(e){e.min=Ad(e.min),e.max=Ad(e.max)}function dy(e){Cd(e.x),Cd(e.y)}function Fm(e,t,n){return e==="position"||e==="preserve-aspect"&&!g9(gd(t),gd(n),.2)}function hy(e){return e!==e.root&&e.scroll?.wasRoot}const fy=Bm({attachResizeListener:(e,t)=>sa(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Eo={current:void 0},Hm=Bm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Eo.current){const e=new fy({});e.mount(window),e.setOptions({layoutScroll:!0}),Eo.current=e}return Eo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),my={pan:{Feature:R9},drag:{Feature:M9,ProjectionNode:Hm,MeasureLayout:Rm}};function wd(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&rt.postRender(()=>a(t,ya(t)))}class py extends br{mount(){const{current:t}=this.node;t&&(this.unmount=U8(t,(n,r)=>(wd(this.node,r,"Start"),i=>wd(this.node,i,"End"))))}unmount(){}}class gy extends br{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=pa(sa(this.node.current,"focus",()=>this.onFocus()),sa(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function kd(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&rt.postRender(()=>a(t,ya(t)))}class by extends br{mount(){const{current:t}=this.node;t&&(this.unmount=$8(t,(n,r)=>(kd(this.node,r,"Start"),(i,{success:a})=>kd(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Du=new WeakMap,xo=new WeakMap,yy=e=>{const t=Du.get(e.target);t&&t(e)},Ty=e=>{e.forEach(yy)};function Ey({root:e,...t}){const n=e||document;xo.has(n)||xo.set(n,{});const r=xo.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Ty,{root:e,...t})),r[i]}function xy(e,t,n){const r=Ey(t);return Du.set(e,n),r.observe(e),()=>{Du.delete(e),r.unobserve(e)}}const vy={some:0,all:1};class Sy extends br{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:vy[i]},o=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,a&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),m=l?c:d;m&&m(u)};return xy(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Ay(t,n))&&this.startObserver()}unmount(){}}function Ay({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Cy={inView:{Feature:Sy},tap:{Feature:by},focus:{Feature:gy},hover:{Feature:py}},wy={layout:{ProjectionNode:Hm,MeasureLayout:Rm}},ky={...c9,...Cy,...my,...wy};function Iy(e,t){return Sb(e,t,ky,Hb)}const Wl=Iy("div"),Ny=ue(Ye)(({theme:e})=>{const{spacing:t}=e;return{position:"relative",flex:1,gap:t(1.5),overflow:"hidden"}}),My=ue(X1)(({theme:e,variant:t})=>{const{spacing:n}=e;return{gap:n(t==="list"?1.5:5.5),overflowY:"auto"}}),Ry=ue(Q6)(({theme:e})=>{const{spacing:t}=e;return{flex:"none",padding:t(2),overflow:"hidden"}}),Dy=ue(eg)(({theme:e})=>({fontSize:"1.5rem",width:"2.75rem",height:"2.75rem",borderRadius:"50%",display:"inline-flex",alignItems:"center",justifyContent:"center"})),_y=ue(Wl)(({theme:e,variant:t})=>({fontSize:t==="list"?"1.5rem":"1em",width:"1em",height:"1em",display:"inline-flex",alignItems:"center",justifyContent:"center",transformOrigin:"center"})),Ly={waiting:"info",available:"success",failed:"error"},Py=()=>D.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",children:D.jsx("path",{d:"M20.0235 2.88477H6.92829C6.49415 2.88477 6.0778 3.05722 5.77082 3.3642C5.46384 3.67118 5.29138 4.08754 5.29138 4.52167V22.5276C5.29138 22.9618 5.46384 23.3781 5.77082 23.6851C6.0778 23.9921 6.49415 24.1645 6.92829 24.1645H20.0235C20.4577 24.1645 20.874 23.9921 21.181 23.6851C21.488 23.3781 21.6604 22.9618 21.6604 22.5276V4.52167C21.6604 4.08754 21.488 3.67118 21.181 3.3642C20.874 3.05722 20.4577 2.88477 20.0235 2.88477ZM13.4759 20.0723C13.2331 20.0723 12.9957 20.0003 12.7938 19.8654C12.592 19.7305 12.4346 19.5387 12.3417 19.3144C12.2488 19.0901 12.2244 18.8432 12.2718 18.6051C12.3192 18.3669 12.4361 18.1482 12.6078 17.9765C12.7795 17.8048 12.9983 17.6879 13.2364 17.6405C13.4745 17.5931 13.7214 17.6174 13.9457 17.7104C14.17 17.8033 14.3618 17.9606 14.4967 18.1625C14.6316 18.3644 14.7036 18.6018 14.7036 18.8446C14.7036 19.1702 14.5742 19.4825 14.344 19.7127C14.1138 19.9429 13.8015 20.0723 13.4759 20.0723ZM16.7497 11.8877H10.2021C9.98503 11.8877 9.77685 11.8015 9.62336 11.648C9.46987 11.4945 9.38364 11.2864 9.38364 11.0693C9.38364 10.8522 9.46987 10.644 9.62336 10.4906C9.77685 10.3371 9.98503 10.2508 10.2021 10.2508H16.7497C16.9668 10.2508 17.175 10.3371 17.3285 10.4906C17.4819 10.644 17.5682 10.8522 17.5682 11.0693C17.5682 11.2864 17.4819 11.4945 17.3285 11.648C17.175 11.8015 16.9668 11.8877 16.7497 11.8877ZM16.7497 8.61393H10.2021C9.98503 8.61393 9.77685 8.5277 9.62336 8.37421C9.46987 8.22072 9.38364 8.01255 9.38364 7.79548C9.38364 7.57841 9.46987 7.37024 9.62336 7.21675C9.77685 7.06326 9.98503 6.97703 10.2021 6.97703H16.7497C16.9668 6.97703 17.175 7.06326 17.3285 7.21675C17.4819 7.37024 17.5682 7.57841 17.5682 7.79548C17.5682 8.01255 17.4819 8.22072 17.3285 8.37421C17.175 8.5277 16.9668 8.61393 16.7497 8.61393Z",fill:"currentColor"})}),Oy={waiting:M5,available:E5,failed:B1},Id=({variant:e,node:t})=>{const{id:n,status:r,gpuName:i,gpuMemory:a}=t||{status:"waiting"},{palette:s}=Ns(),{main:o,lighter:u}=r==="waiting"?{main:s.grey[800],lighter:s.grey[250]}:s[Ly[r]],l=r==="failed"?.2:void 0,c=Oy[r];return D.jsxs(Ry,{component:e==="list"?Ms:ci,variant:"outlined",sx:{opacity:l,padding:e==="menu"?0:void 0,backgroundColor:"transparent"},children:[D.jsx(Dy,{sx:{color:s.grey[800],backgroundColor:s.grey[250]},children:D.jsx(Py,{})}),D.jsxs(ig,{children:[t&&D.jsxs(Ue,{variant:"body1",children:[i," ",a,"GB"]})||D.jsx(lc,{width:"8rem",height:"1.25rem"}),t&&D.jsx(Ue,{variant:"body1",color:"text.disabled",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:n&&n.substring(0,4)+"..."+n.substring(n.length-4)})||D.jsx(lc,{width:"14rem",height:"1.25rem"})]}),t&&D.jsxs(_y,{sx:{color:o},...r==="waiting"&&{animate:{rotate:360},transition:{repeat:1/0,ease:"linear",duration:2}},variant:e,children:[e==="list"&&D.jsx(c,{}),e==="menu"&&D.jsx(F5,{})]})]})},Fa=({variant:e="list"})=>{const[{clusterInfo:{initNodesNumber:t},nodeInfoList:n}]=fa(),{length:r}=n;return D.jsxs(Ny,{children:[e==="menu"&&D.jsx(ci,{sx:{position:"absolute",top:"1.375rem",bottom:"1.375rem",left:"1.375rem",borderLeft:"2px dashed",borderColor:"divider"}}),D.jsxs(My,{variant:e,children:[n.map(i=>D.jsx(Id,{variant:e,node:i},i.id)),t>r&&Array.from({length:t-r}).map((i,a)=>D.jsx(Id,{variant:e},a))]})]})},By={small:1,medium:1.25,large:2.25},Fy=ue(Wl)(({theme:e,size:t})=>{const n=`${By[t]}rem`;return{position:"relative",width:n,height:n,display:"inline-flex",flexFlow:"row nowrap",justifyContent:"center",alignItems:"center"}}),vo=ue(Wl)(({theme:e})=>({flex:1,aspectRatio:1,borderRadius:"50%",backgroundColor:"currentColor"})),So={pulse:{scale:[0,.6,0,0],keyTimes:[0,.3,.6,1],transition:{duration:2,repeat:1/0,ease:"linear"}}},Hy={staggerChildren:.25,staggerDirection:1},zy=O.forwardRef(({size:e="medium"},t)=>D.jsxs(Fy,{ref:t,size:e,animate:"pulse",transition:Hy,children:[D.jsx(vo,{variants:So},1),D.jsx(vo,{variants:So},2),D.jsx(vo,{variants:So},3)]}));function Nd(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function zm(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Uy=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Vy=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,jy={};function Md(e,t){return(jy.jsx?Vy:Uy).test(e)}const qy=/[ \t\n\f\r]/g;function $y(e){return typeof e=="object"?e.type==="text"?Rd(e.value):!1:Rd(e)}function Rd(e){return e.replace(qy,"")===""}let Ta=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Ta.prototype.normal={};Ta.prototype.property={};Ta.prototype.space=void 0;function Um(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Ta(n,r,t)}function oa(e){return e.toLowerCase()}let Kt=class{constructor(t,n){this.attribute=n,this.property=t}};Kt.prototype.attribute="";Kt.prototype.booleanish=!1;Kt.prototype.boolean=!1;Kt.prototype.commaOrSpaceSeparated=!1;Kt.prototype.commaSeparated=!1;Kt.prototype.defined=!1;Kt.prototype.mustUseProperty=!1;Kt.prototype.number=!1;Kt.prototype.overloadedBoolean=!1;Kt.prototype.property="";Kt.prototype.spaceSeparated=!1;Kt.prototype.space=void 0;let Wy=0;const Ce=Br(),gt=Br(),_u=Br(),re=Br(),Ze=Br(),ni=Br(),Zt=Br();function Br(){return 2**++Wy}const Lu=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ce,booleanish:gt,commaOrSpaceSeparated:Zt,commaSeparated:ni,number:re,overloadedBoolean:_u,spaceSeparated:Ze},Symbol.toStringTag,{value:"Module"})),Ao=Object.keys(Lu);let Yl=class extends Kt{constructor(t,n,r,i){let a=-1;if(super(t,n),Dd(this,"space",i),typeof r=="number")for(;++a4&&n.slice(0,4)==="data"&&Qy.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(_d,Jy);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!_d.test(a)){let s=a.replace(Xy,Zy);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Yl}return new i(r,t)}function Zy(e){return"-"+e.toLowerCase()}function Jy(e){return e.charAt(1).toUpperCase()}const Hs=Um([Vm,Yy,$m,Wm,Ym],"html"),pi=Um([Vm,Gy,$m,Wm,Ym],"svg");function Ld(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Gm(e){return e.join(" ").trim()}var jr={},Co,Pd;function eT(){if(Pd)return Co;Pd=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,u=` -`,l="/",c="*",d="",m="comment",p="declaration";Co=function(E,C){if(typeof E!="string")throw new TypeError("First argument must be a string");if(!E)return[];C=C||{};var T=1,S=1;function v(X){var j=X.match(t);j&&(T+=j.length);var W=X.lastIndexOf(u);S=~W?X.length-W:S+X.length}function L(){var X={line:T,column:S};return function(j){return j.position=new P(X),U(),j}}function P(X){this.start=X,this.end={line:T,column:S},this.source=C.source}P.prototype.content=E;function k(X){var j=new Error(C.source+":"+T+":"+S+": "+X);if(j.reason=X,j.filename=C.source,j.line=T,j.column=S,j.source=E,!C.silent)throw j}function V(X){var j=X.exec(E);if(j){var W=j[0];return v(W),E=E.slice(W.length),j}}function U(){V(n)}function q(X){var j;for(X=X||[];j=B();)j!==!1&&X.push(j);return X}function B(){var X=L();if(!(l!=E.charAt(0)||c!=E.charAt(1))){for(var j=2;d!=E.charAt(j)&&(c!=E.charAt(j)||l!=E.charAt(j+1));)++j;if(j+=2,d===E.charAt(j-1))return k("End of comment missing");var W=E.slice(2,j-2);return S+=2,v(W),E=E.slice(j),S+=2,X({type:m,comment:W})}}function K(){var X=L(),j=V(r);if(j){if(B(),!V(i))return k("property missing ':'");var W=V(a),ne=X({type:p,property:b(j[0].replace(e,d)),value:W?b(W[0].replace(e,d)):d});return V(s),ne}}function Y(){var X=[];q(X);for(var j;j=K();)j!==!1&&(X.push(j),q(X));return X}return U(),Y()};function b(E){return E?E.replace(o,d):d}return Co}var Od;function tT(){if(Od)return jr;Od=1;var e=jr&&jr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(jr,"__esModule",{value:!0}),jr.default=n;var t=e(eT());function n(r,i){var a=null;if(!r||typeof r!="string")return a;var s=(0,t.default)(r),o=typeof i=="function";return s.forEach(function(u){if(u.type==="declaration"){var l=u.property,c=u.value;o?i(l,c,u):c&&(a=a||{},a[l]=c)}}),a}return jr}var Ii={},Bd;function nT(){if(Bd)return Ii;Bd=1,Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(l){return!l||n.test(l)||e.test(l)},s=function(l,c){return c.toUpperCase()},o=function(l,c){return"".concat(c,"-")},u=function(l,c){return c===void 0&&(c={}),a(l)?l:(l=l.toLowerCase(),c.reactCompat?l=l.replace(i,o):l=l.replace(r,o),l.replace(t,s))};return Ii.camelCase=u,Ii}var Ni,Fd;function rT(){if(Fd)return Ni;Fd=1;var e=Ni&&Ni.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(tT()),n=nT();function r(i,a){var s={};return!i||typeof i!="string"||(0,t.default)(i,function(o,u){o&&u&&(s[(0,n.camelCase)(o,a)]=u)}),s}return r.default=r,Ni=r,Ni}var iT=rT();const aT=F1(iT),zs=Km("end"),Pn=Km("start");function Km(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Xm(e){const t=Pn(e),n=zs(e);if(t&&n)return{start:t,end:n}}function qi(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Hd(e.position):"start"in e||"end"in e?Hd(e):"line"in e||"column"in e?Pu(e):""}function Pu(e){return zd(e&&e.line)+":"+zd(e&&e.column)}function Hd(e){return Pu(e&&e.start)+"-"+Pu(e&&e.end)}function zd(e){return e&&typeof e=="number"?e:1}class _t extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?a.ruleId=r:(a.source=r.slice(0,u),a.ruleId=r.slice(u+1))}if(!a.place&&a.ancestors&&a.ancestors){const u=a.ancestors[a.ancestors.length-1];u&&(a.place=u.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=qi(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}_t.prototype.file="";_t.prototype.name="";_t.prototype.reason="";_t.prototype.message="";_t.prototype.stack="";_t.prototype.column=void 0;_t.prototype.line=void 0;_t.prototype.ancestors=void 0;_t.prototype.cause=void 0;_t.prototype.fatal=void 0;_t.prototype.place=void 0;_t.prototype.ruleId=void 0;_t.prototype.source=void 0;const Kl={}.hasOwnProperty,sT=new Map,oT=/[A-Z]/g,uT=new Set(["table","tbody","thead","tfoot","tr"]),lT=new Set(["td","th"]),Qm="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function cT(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=yT(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=bT(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?pi:Hs,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Zm(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Zm(e,t,n){if(t.type==="element")return dT(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return hT(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return mT(e,t,n);if(t.type==="mdxjsEsm")return fT(e,t);if(t.type==="root")return pT(e,t,n);if(t.type==="text")return gT(e,t)}function dT(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=pi,e.schema=i),e.ancestors.push(t);const a=ep(e,t.tagName,!1),s=TT(e,t);let o=Ql(e,t);return uT.has(t.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!$y(u):!0})),Jm(e,s,a,t),Xl(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function hT(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}ua(e,t.position)}function fT(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ua(e,t.position)}function mT(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=pi,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:ep(e,t.name,!0),s=ET(e,t),o=Ql(e,t);return Jm(e,s,a,t),Xl(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function pT(e,t,n){const r={};return Xl(r,Ql(e,t)),e.create(t,e.Fragment,r,n)}function gT(e,t){return t.value}function Jm(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Xl(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function bT(e,t,n){return r;function r(i,a,s,o){const l=Array.isArray(s.children)?n:t;return o?l(a,s,o):l(a,s)}}function yT(e,t){return n;function n(r,i,a,s){const o=Array.isArray(a.children),u=Pn(r);return t(i,a,s,o,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function TT(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Kl.call(t.properties,i)){const a=xT(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&lT.has(t.tagName)?r=o:n[s]=o}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function ET(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else ua(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else ua(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function Ql(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:sT;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a0?(nn(e,e.length,0,t),e):t}const jd={}.hasOwnProperty;function np(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function yn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ft=yr(/[A-Za-z]/),Dt=yr(/[\dA-Za-z]/),MT=yr(/[#-'*+\--9=?A-Z^-~]/);function bs(e){return e!==null&&(e<32||e===127)}const Ou=yr(/\d/),RT=yr(/[\dA-Fa-f]/),DT=yr(/[!-/:-@[-`{-~]/);function he(e){return e!==null&&e<-2}function Ge(e){return e!==null&&(e<0||e===32)}function Re(e){return e===-2||e===-1||e===32}const Us=yr(new RegExp("\\p{P}|\\p{S}","u")),Pr=yr(/\s/);function yr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function gi(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const o=e.charCodeAt(n+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Ne(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(u){return Re(u)?(e.enter(n),o(u)):t(u)}function o(u){return Re(u)&&a++s))return;const V=t.events.length;let U=V,q,B;for(;U--;)if(t.events[U][0]==="exit"&&t.events[U][1].type==="chunkFlow"){if(q){B=t.events[U][1].end;break}q=!0}for(T(r),k=V;kv;){const P=n[L];t.containerState=P[1],P[0].exit.call(t,e)}n.length=v}function S(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function BT(e,t,n){return Ne(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function oi(e){if(e===null||Ge(e)||Pr(e))return 1;if(Us(e))return 2}function Vs(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},m={...e[n][1].start};$d(d,-u),$d(m,u),s={type:u>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},o={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:m},a={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=un(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=un(l,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),l=un(l,Vs(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=un(l,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,l=un(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,nn(e,r-1,n-r+3,l),n=r+l.length-c-2;break}}for(n=-1;++n0&&Re(k)?Ne(e,S,"linePrefix",a+1)(k):S(k)}function S(k){return k===null||he(k)?e.check(Wd,E,L)(k):(e.enter("codeFlowValue"),v(k))}function v(k){return k===null||he(k)?(e.exit("codeFlowValue"),S(k)):(e.consume(k),v)}function L(k){return e.exit("codeFenced"),t(k)}function P(k,V,U){let q=0;return B;function B(W){return k.enter("lineEnding"),k.consume(W),k.exit("lineEnding"),K}function K(W){return k.enter("codeFencedFence"),Re(W)?Ne(k,Y,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):Y(W)}function Y(W){return W===o?(k.enter("codeFencedFenceSequence"),X(W)):U(W)}function X(W){return W===o?(q++,k.consume(W),X):q>=s?(k.exit("codeFencedFenceSequence"),Re(W)?Ne(k,j,"whitespace")(W):j(W)):U(W)}function j(W){return W===null||he(W)?(k.exit("codeFencedFence"),V(W)):U(W)}}}function KT(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const ko={name:"codeIndented",tokenize:QT},XT={partial:!0,tokenize:ZT};function QT(e,t,n){const r=this;return i;function i(l){return e.enter("codeIndented"),Ne(e,a,"linePrefix",5)(l)}function a(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(l):n(l)}function s(l){return l===null?u(l):he(l)?e.attempt(XT,s,u)(l):(e.enter("codeFlowValue"),o(l))}function o(l){return l===null||he(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),o)}function u(l){return e.exit("codeIndented"),t(l)}}function ZT(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):he(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):Ne(e,a,"linePrefix",5)(s)}function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):he(s)?i(s):n(s)}}const JT={name:"codeText",previous:tE,resolve:eE,tokenize:nE};function eE(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Mi(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Mi(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Mi(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function up(e,t,n,r,i,a,s,o,u){const l=u||Number.POSITIVE_INFINITY;let c=0;return d;function d(T){return T===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(T),e.exit(a),m):T===null||T===32||T===41||bs(T)?n(T):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),E(T))}function m(T){return T===62?(e.enter(a),e.consume(T),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),p(T))}function p(T){return T===62?(e.exit("chunkString"),e.exit(o),m(T)):T===null||T===60||he(T)?n(T):(e.consume(T),T===92?b:p)}function b(T){return T===60||T===62||T===92?(e.consume(T),p):p(T)}function E(T){return!c&&(T===null||T===41||Ge(T))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(T)):c999||p===null||p===91||p===93&&!u||p===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(a),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):he(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||he(p)||o++>999?(e.exit("chunkString"),c(p)):(e.consume(p),u||(u=!Re(p)),p===92?m:d)}function m(p){return p===91||p===92||p===93?(e.consume(p),o++,d):d(p)}}function cp(e,t,n,r,i,a){let s;return o;function o(m){return m===34||m===39||m===40?(e.enter(r),e.enter(i),e.consume(m),e.exit(i),s=m===40?41:m,u):n(m)}function u(m){return m===s?(e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):(e.enter(a),l(m))}function l(m){return m===s?(e.exit(a),u(s)):m===null?n(m):he(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Ne(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(m))}function c(m){return m===s||m===null||he(m)?(e.exit("chunkString"),l(m)):(e.consume(m),m===92?d:c)}function d(m){return m===s||m===92?(e.consume(m),c):c(m)}}function $i(e,t){let n;return r;function r(i){return he(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Re(i)?Ne(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const cE={name:"definition",tokenize:hE},dE={partial:!0,tokenize:fE};function hE(e,t,n){const r=this;let i;return a;function a(p){return e.enter("definition"),s(p)}function s(p){return lp.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function o(p){return i=yn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),u):n(p)}function u(p){return Ge(p)?$i(e,l)(p):l(p)}function l(p){return up(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(dE,d,d)(p)}function d(p){return Re(p)?Ne(e,m,"whitespace")(p):m(p)}function m(p){return p===null||he(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function fE(e,t,n){return r;function r(o){return Ge(o)?$i(e,i)(o):n(o)}function i(o){return cp(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return Re(o)?Ne(e,s,"whitespace")(o):s(o)}function s(o){return o===null||he(o)?t(o):n(o)}}const mE={name:"hardBreakEscape",tokenize:pE};function pE(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return he(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const gE={name:"headingAtx",resolve:bE,tokenize:yE};function bE(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},nn(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function yE(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||Ge(c)?(e.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),u(c)):c===null||he(c)?(e.exit("atxHeading"),t(c)):Re(c)?Ne(e,o,"whitespace")(c):(e.enter("atxHeadingText"),l(c))}function u(c){return c===35?(e.consume(c),u):(e.exit("atxHeadingSequence"),o(c))}function l(c){return c===null||c===35||Ge(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),l)}}const TE=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Gd=["pre","script","style","textarea"],EE={concrete:!0,name:"htmlFlow",resolveTo:SE,tokenize:AE},xE={partial:!0,tokenize:wE},vE={partial:!0,tokenize:CE};function SE(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function AE(e,t,n){const r=this;let i,a,s,o,u;return l;function l(_){return c(_)}function c(_){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(_),d}function d(_){return _===33?(e.consume(_),m):_===47?(e.consume(_),a=!0,E):_===63?(e.consume(_),i=3,r.interrupt?t:I):Ft(_)?(e.consume(_),s=String.fromCharCode(_),C):n(_)}function m(_){return _===45?(e.consume(_),i=2,p):_===91?(e.consume(_),i=5,o=0,b):Ft(_)?(e.consume(_),i=4,r.interrupt?t:I):n(_)}function p(_){return _===45?(e.consume(_),r.interrupt?t:I):n(_)}function b(_){const _e="CDATA[";return _===_e.charCodeAt(o++)?(e.consume(_),o===_e.length?r.interrupt?t:Y:b):n(_)}function E(_){return Ft(_)?(e.consume(_),s=String.fromCharCode(_),C):n(_)}function C(_){if(_===null||_===47||_===62||Ge(_)){const _e=_===47,Ve=s.toLowerCase();return!_e&&!a&&Gd.includes(Ve)?(i=1,r.interrupt?t(_):Y(_)):TE.includes(s.toLowerCase())?(i=6,_e?(e.consume(_),T):r.interrupt?t(_):Y(_)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(_):a?S(_):v(_))}return _===45||Dt(_)?(e.consume(_),s+=String.fromCharCode(_),C):n(_)}function T(_){return _===62?(e.consume(_),r.interrupt?t:Y):n(_)}function S(_){return Re(_)?(e.consume(_),S):B(_)}function v(_){return _===47?(e.consume(_),B):_===58||_===95||Ft(_)?(e.consume(_),L):Re(_)?(e.consume(_),v):B(_)}function L(_){return _===45||_===46||_===58||_===95||Dt(_)?(e.consume(_),L):P(_)}function P(_){return _===61?(e.consume(_),k):Re(_)?(e.consume(_),P):v(_)}function k(_){return _===null||_===60||_===61||_===62||_===96?n(_):_===34||_===39?(e.consume(_),u=_,V):Re(_)?(e.consume(_),k):U(_)}function V(_){return _===u?(e.consume(_),u=null,q):_===null||he(_)?n(_):(e.consume(_),V)}function U(_){return _===null||_===34||_===39||_===47||_===60||_===61||_===62||_===96||Ge(_)?P(_):(e.consume(_),U)}function q(_){return _===47||_===62||Re(_)?v(_):n(_)}function B(_){return _===62?(e.consume(_),K):n(_)}function K(_){return _===null||he(_)?Y(_):Re(_)?(e.consume(_),K):n(_)}function Y(_){return _===45&&i===2?(e.consume(_),ne):_===60&&i===1?(e.consume(_),le):_===62&&i===4?(e.consume(_),De):_===63&&i===3?(e.consume(_),I):_===93&&i===5?(e.consume(_),oe):he(_)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(xE,Ae,X)(_)):_===null||he(_)?(e.exit("htmlFlowData"),X(_)):(e.consume(_),Y)}function X(_){return e.check(vE,j,Ae)(_)}function j(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),W}function W(_){return _===null||he(_)?X(_):(e.enter("htmlFlowData"),Y(_))}function ne(_){return _===45?(e.consume(_),I):Y(_)}function le(_){return _===47?(e.consume(_),s="",fe):Y(_)}function fe(_){if(_===62){const _e=s.toLowerCase();return Gd.includes(_e)?(e.consume(_),De):Y(_)}return Ft(_)&&s.length<8?(e.consume(_),s+=String.fromCharCode(_),fe):Y(_)}function oe(_){return _===93?(e.consume(_),I):Y(_)}function I(_){return _===62?(e.consume(_),De):_===45&&i===2?(e.consume(_),I):Y(_)}function De(_){return _===null||he(_)?(e.exit("htmlFlowData"),Ae(_)):(e.consume(_),De)}function Ae(_){return e.exit("htmlFlow"),t(_)}}function CE(e,t,n){const r=this;return i;function i(s){return he(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function wE(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ea,t,n)}}const kE={name:"htmlText",tokenize:IE};function IE(e,t,n){const r=this;let i,a,s;return o;function o(I){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(I),u}function u(I){return I===33?(e.consume(I),l):I===47?(e.consume(I),P):I===63?(e.consume(I),v):Ft(I)?(e.consume(I),U):n(I)}function l(I){return I===45?(e.consume(I),c):I===91?(e.consume(I),a=0,b):Ft(I)?(e.consume(I),S):n(I)}function c(I){return I===45?(e.consume(I),p):n(I)}function d(I){return I===null?n(I):I===45?(e.consume(I),m):he(I)?(s=d,le(I)):(e.consume(I),d)}function m(I){return I===45?(e.consume(I),p):d(I)}function p(I){return I===62?ne(I):I===45?m(I):d(I)}function b(I){const De="CDATA[";return I===De.charCodeAt(a++)?(e.consume(I),a===De.length?E:b):n(I)}function E(I){return I===null?n(I):I===93?(e.consume(I),C):he(I)?(s=E,le(I)):(e.consume(I),E)}function C(I){return I===93?(e.consume(I),T):E(I)}function T(I){return I===62?ne(I):I===93?(e.consume(I),T):E(I)}function S(I){return I===null||I===62?ne(I):he(I)?(s=S,le(I)):(e.consume(I),S)}function v(I){return I===null?n(I):I===63?(e.consume(I),L):he(I)?(s=v,le(I)):(e.consume(I),v)}function L(I){return I===62?ne(I):v(I)}function P(I){return Ft(I)?(e.consume(I),k):n(I)}function k(I){return I===45||Dt(I)?(e.consume(I),k):V(I)}function V(I){return he(I)?(s=V,le(I)):Re(I)?(e.consume(I),V):ne(I)}function U(I){return I===45||Dt(I)?(e.consume(I),U):I===47||I===62||Ge(I)?q(I):n(I)}function q(I){return I===47?(e.consume(I),ne):I===58||I===95||Ft(I)?(e.consume(I),B):he(I)?(s=q,le(I)):Re(I)?(e.consume(I),q):ne(I)}function B(I){return I===45||I===46||I===58||I===95||Dt(I)?(e.consume(I),B):K(I)}function K(I){return I===61?(e.consume(I),Y):he(I)?(s=K,le(I)):Re(I)?(e.consume(I),K):q(I)}function Y(I){return I===null||I===60||I===61||I===62||I===96?n(I):I===34||I===39?(e.consume(I),i=I,X):he(I)?(s=Y,le(I)):Re(I)?(e.consume(I),Y):(e.consume(I),j)}function X(I){return I===i?(e.consume(I),i=void 0,W):I===null?n(I):he(I)?(s=X,le(I)):(e.consume(I),X)}function j(I){return I===null||I===34||I===39||I===60||I===61||I===96?n(I):I===47||I===62||Ge(I)?q(I):(e.consume(I),j)}function W(I){return I===47||I===62||Ge(I)?q(I):n(I)}function ne(I){return I===62?(e.consume(I),e.exit("htmlTextData"),e.exit("htmlText"),t):n(I)}function le(I){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),fe}function fe(I){return Re(I)?Ne(e,oe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):oe(I)}function oe(I){return e.enter("htmlTextData"),s(I)}}const e0={name:"labelEnd",resolveAll:DE,resolveTo:_E,tokenize:LE},NE={tokenize:PE},ME={tokenize:OE},RE={tokenize:BE};function DE(e){let t=-1;const n=[];for(;++t=3&&(l===null||he(l))?(e.exit("thematicBreak"),t(l)):n(l)}function u(l){return l===i?(e.consume(l),r++,u):(e.exit("thematicBreakSequence"),Re(l)?Ne(e,o,"whitespace")(l):o(l))}}const Wt={continuation:{tokenize:YE},exit:KE,name:"list",tokenize:WE},qE={partial:!0,tokenize:XE},$E={partial:!0,tokenize:GE};function WE(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(p){const b=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Ou(p)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(is,n,l)(p):l(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(p)}return n(p)}function u(p){return Ou(p)&&++s<10?(e.consume(p),u):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),l(p)):n(p)}function l(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Ea,r.interrupt?n:c,e.attempt(qE,m,d))}function c(p){return r.containerState.initialBlankLine=!0,a++,m(p)}function d(p){return Re(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),m):n(p)}function m(p){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function YE(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ea,i,a);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ne(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!Re(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt($E,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ne(e,e.attempt(Wt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function GE(e,t,n){const r=this;return Ne(e,i,"listItemIndent",r.containerState.size+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function KE(e){e.exit(this.containerState.type)}function XE(e,t,n){const r=this;return Ne(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=r.events[r.events.length-1];return!Re(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Kd={name:"setextUnderline",resolveTo:QE,tokenize:ZE};function QE(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function ZE(e,t,n){const r=this;let i;return a;function a(l){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=l,s(l)):n(l)}function s(l){return e.enter("setextHeadingLineSequence"),o(l)}function o(l){return l===i?(e.consume(l),o):(e.exit("setextHeadingLineSequence"),Re(l)?Ne(e,u,"lineSuffix")(l):u(l))}function u(l){return l===null||he(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const JE={tokenize:ex};function ex(e){const t=this,n=e.attempt(Ea,r,e.attempt(this.parser.constructs.flowInitial,i,Ne(e,e.attempt(this.parser.constructs.flow,i,e.attempt(aE,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const tx={resolveAll:hp()},nx=dp("string"),rx=dp("text");function dp(e){return{resolveAll:hp(e==="text"?ix:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,o);return s;function s(c){return l(c)?a(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),u}function u(c){return l(c)?(n.exit("data"),a(c)):(n.consume(c),u)}function l(c){if(c===null)return!0;const d=i[c];let m=-1;if(d)for(;++m-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function bx(e,t){let n=-1;const r=[];let i;for(;++n0){const Le=ye.tokenStack[ye.tokenStack.length-1];(Le[1]||Qd).call(ye,void 0,Le[0])}for(ae.position={start:rr(G.length>0?G[0][1].start:{line:1,column:1,offset:0}),end:rr(G.length>0?G[G.length-2][1].end:{line:1,column:1,offset:0})},Me=-1;++Me1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,u);const l={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,l),e.applyData(t,l)}function Lx(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Px(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function pp(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function Ox(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return pp(e,t);const i={src:gi(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Bx(e,t){const n={src:gi(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Fx(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Hx(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return pp(e,t);const i={href:gi(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function zx(e,t){const n={href:gi(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ux(e,t,n){const r=e.all(t),i=n?Vx(n):gp(t),a={},s=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o1}function jx(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Pn(t.children[1]),u=zs(t.children[t.children.length-1]);o&&u&&(s.position={start:o,end:u}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Gx(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length;let u=-1;const l=[];for(;++u0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(eh(t.slice(i),i>0,!1)),a.join("")}function eh(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===Zd||a===Jd;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===Zd||a===Jd;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Qx(e,t){const n={type:"text",value:Xx(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Zx(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Jx={blockquote:Ix,break:Nx,code:Mx,delete:Rx,emphasis:Dx,footnoteReference:_x,heading:Lx,html:Px,imageReference:Ox,image:Bx,inlineCode:Fx,linkReference:Hx,link:zx,listItem:Ux,list:jx,paragraph:qx,root:$x,strong:Wx,table:Yx,tableCell:Kx,tableRow:Gx,text:Qx,thematicBreak:Zx,toml:Ha,yaml:Ha,definition:Ha,footnoteDefinition:Ha};function Ha(){}const bp=-1,js=0,Wi=1,ys=2,t0=3,n0=4,r0=5,i0=6,yp=7,Tp=8,th=typeof self=="object"?self:globalThis,ev=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case js:case bp:return n(s,i);case Wi:{const o=n([],i);for(const u of s)o.push(r(u));return o}case ys:{const o=n({},i);for(const[u,l]of s)o[r(u)]=r(l);return o}case t0:return n(new Date(s),i);case n0:{const{source:o,flags:u}=s;return n(new RegExp(o,u),i)}case r0:{const o=n(new Map,i);for(const[u,l]of s)o.set(r(u),r(l));return o}case i0:{const o=n(new Set,i);for(const u of s)o.add(r(u));return o}case yp:{const{name:o,message:u}=s;return n(new th[o](u),i)}case Tp:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return n(new DataView(o),s)}}return n(new th[a](s),i)};return r},nh=e=>ev(new Map,e)(0),qr="",{toString:tv}={},{keys:nv}=Object,Ri=e=>{const t=typeof e;if(t!=="object"||!e)return[js,t];const n=tv.call(e).slice(8,-1);switch(n){case"Array":return[Wi,qr];case"Object":return[ys,qr];case"Date":return[t0,qr];case"RegExp":return[n0,qr];case"Map":return[r0,qr];case"Set":return[i0,qr];case"DataView":return[Wi,n]}return n.includes("Array")?[Wi,n]:n.includes("Error")?[yp,n]:[ys,n]},za=([e,t])=>e===js&&(t==="function"||t==="symbol"),rv=(e,t,n,r)=>{const i=(s,o)=>{const u=r.push(s)-1;return n.set(o,u),u},a=s=>{if(n.has(s))return n.get(s);let[o,u]=Ri(s);switch(o){case js:{let c=s;switch(u){case"bigint":o=Tp,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);c=null;break;case"undefined":return i([bp],s)}return i([o,c],s)}case Wi:{if(u){let m=s;return u==="DataView"?m=new Uint8Array(s.buffer):u==="ArrayBuffer"&&(m=new Uint8Array(s)),i([u,[...m]],s)}const c=[],d=i([o,c],s);for(const m of s)c.push(a(m));return d}case ys:{if(u)switch(u){case"BigInt":return i([u,s.toString()],s);case"Boolean":case"Number":case"String":return i([u,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const c=[],d=i([o,c],s);for(const m of nv(s))(e||!za(Ri(s[m])))&&c.push([a(m),a(s[m])]);return d}case t0:return i([o,s.toISOString()],s);case n0:{const{source:c,flags:d}=s;return i([o,{source:c,flags:d}],s)}case r0:{const c=[],d=i([o,c],s);for(const[m,p]of s)(e||!(za(Ri(m))||za(Ri(p))))&&c.push([a(m),a(p)]);return d}case i0:{const c=[],d=i([o,c],s);for(const m of s)(e||!za(Ri(m)))&&c.push(a(m));return d}}const{message:l}=s;return i([o,{name:u,message:l}],s)};return a},rh=(e,{json:t,lossy:n}={})=>{const r=[];return rv(!(t||n),!!t,new Map,r)(e),r},Or=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?nh(rh(e,t)):structuredClone(e):(e,t)=>nh(rh(e,t));function iv(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function av(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function sv(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||iv,r=e.options.footnoteBackLabel||av,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let u=-1;for(;++u0&&b.push({type:"text",value:" "});let S=typeof n=="string"?n:n(u,p);typeof S=="string"&&(S={type:"text",value:S}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+m+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,p),className:["data-footnote-backref"]},children:Array.isArray(S)?S:[S]})}const C=c[c.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const S=C.children[C.children.length-1];S&&S.type==="text"?S.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...b)}else c.push(...b);const T={type:"element",tagName:"li",properties:{id:t+"fn-"+m},children:e.wrap(c,!0)};e.patch(l,T),o.push(T)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Or(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` -`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:` -`}]}}const xa=(function(e){if(e==null)return cv;if(typeof e=="function")return qs(e);if(typeof e=="object")return Array.isArray(e)?ov(e):uv(e);if(typeof e=="string")return lv(e);throw new Error("Expected function, string, or object as test")});function ov(e){const t=[];let n=-1;for(;++n":""))+")"})}return m;function m(){let p=Ep,b,E,C;if((!t||a(u,l,c[c.length-1]||void 0))&&(p=fv(n(u,c)),p[0]===Fu))return p;if("children"in u&&u.children){const T=u;if(T.children&&p[0]!==xp)for(E=(r?T.children.length:-1)+s,C=c.concat(T);E>-1&&E0&&n.push({type:"text",value:` -`}),n}function ih(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function ah(e,t){const n=pv(e,t),r=n.one(e,void 0),i=sv(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` -`},i),a}function Ev(e,t){return e&&"run"in e?async function(n,r){const i=ah(n,{file:r,...t});await e.run(i,r)}:function(n,r){return ah(n,{file:r,...e||t})}}function sh(e){if(e)throw e}var No,oh;function xv(){if(oh)return No;oh=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(l){return typeof Array.isArray=="function"?Array.isArray(l):t.call(l)==="[object Array]"},a=function(l){if(!l||t.call(l)!=="[object Object]")return!1;var c=e.call(l,"constructor"),d=l.constructor&&l.constructor.prototype&&e.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!c&&!d)return!1;var m;for(m in l);return typeof m>"u"||e.call(l,m)},s=function(l,c){n&&c.name==="__proto__"?n(l,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):l[c.name]=c.newValue},o=function(l,c){if(c==="__proto__")if(e.call(l,c)){if(r)return r(l,c).value}else return;return l[c]};return No=function u(){var l,c,d,m,p,b,E=arguments[0],C=1,T=arguments.length,S=!1;for(typeof E=="boolean"&&(S=E,E=arguments[1]||{},C=2),(E==null||typeof E!="object"&&typeof E!="function")&&(E={});Cs.length;let u;o&&s.push(i);try{u=e.apply(this,s)}catch(l){const c=l;if(o&&n)throw c;return i(c)}o||(u&&u.then&&typeof u.then=="function"?u.then(a,i):u instanceof Error?i(u):a(u))}function i(s,...o){n||(n=!0,t(s,...o))}function a(s){i(null,s)}}const An={basename:Cv,dirname:wv,extname:kv,join:Iv,sep:"/"};function Cv(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');va(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function wv(e){if(va(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function kv(e){va(e);let t=e.length,n=-1,r=0,i=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Iv(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Mv(e,t){let n="",r=0,i=-1,a=0,s=-1,o,u;for(;++s<=e.length;){if(s2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=s,a=0;continue}}else if(n.length>0){n="",r=0,i=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return n}function va(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Rv={cwd:Dv};function Dv(){return"/"}function Uu(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function _v(e){if(typeof e=="string")e=new URL(e);else if(!Uu(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Lv(e)}function Lv(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[p,...b]=c;const E=r[m][1];zu(E)&&zu(p)&&(p=Mo(!0,E,p)),r[m]=[l,p,...b]}}}}const Fv=new s0().freeze();function Lo(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Po(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Oo(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function lh(e){if(!zu(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ch(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ua(e){return Hv(e)?e:new vp(e)}function Hv(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function zv(e){return typeof e=="string"||Uv(e)}function Uv(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Vv="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",dh=[],hh={allowDangerousHtml:!0},jv=/^(https?|ircs?|mailto|xmpp)$/i,qv=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function $v(e){const t=Wv(e),n=Yv(e);return Gv(t.runSync(t.parse(n),n),e)}function Wv(e){const t=e.rehypePlugins||dh,n=e.remarkPlugins||dh,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...hh}:hh;return Fv().use(kx).use(n).use(Ev,r).use(t)}function Yv(e){const t=e.children||"",n=new vp;return typeof t=="string"&&(n.value=t),n}function Gv(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,u=t.urlTransform||Kv;for(const c of qv)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+Vv+c.id,void 0);return $s(e,l),cT(e,{Fragment:D.Fragment,components:i,ignoreInvalidStyle:!0,jsx:D.jsx,jsxs:D.jsxs,passKeys:!0,passNode:!0});function l(c,d,m){if(c.type==="raw"&&m&&typeof d=="number")return s?m.children.splice(d,1):m.children[d]={type:"text",value:c.value},d;if(c.type==="element"){let p;for(p in wo)if(Object.hasOwn(wo,p)&&Object.hasOwn(c.properties,p)){const b=c.properties[p],E=wo[p];(E===null||E.includes(c.tagName))&&(c.properties[p]=u(String(b||""),p,c))}}if(c.type==="element"){let p=n?!n.includes(c.tagName):a?a.includes(c.tagName):!1;if(!p&&r&&typeof d=="number"&&(p=!r(c,d,m)),p&&m&&typeof d=="number")return o&&c.children?m.children.splice(d,1,...c.children):m.children.splice(d,1),d}}}function Kv(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||jv.test(e.slice(0,t))?e:""}function fh(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Xv(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Qv(e,t,n){const i=xa((n||{}).ignore||[]),a=Zv(t);let s=-1;for(;++s0?{type:"text",value:k}:void 0),k===!1?m.lastIndex=L+1:(b!==L&&S.push({type:"text",value:l.value.slice(b,L)}),Array.isArray(k)?S.push(...k):k&&S.push(k),b=L+v[0].length,T=!0),!m.global)break;v=m.exec(l.value)}return T?(b?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=fh(e,"(");let a=fh(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function Sp(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Pr(n)||Us(n))&&(!t||n!==47)}Ap.peek=xS;function fS(){this.buffer()}function mS(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function pS(){this.buffer()}function gS(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function bS(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=yn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function yS(e){this.exit(e)}function TS(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=yn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ES(e){this.exit(e)}function xS(){return"["}function Ap(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),o(),s(),a+=i.move("]"),a}function vS(){return{enter:{gfmFootnoteCallString:fS,gfmFootnoteCall:mS,gfmFootnoteDefinitionLabelString:pS,gfmFootnoteDefinition:gS},exit:{gfmFootnoteCallString:bS,gfmFootnoteCall:yS,gfmFootnoteDefinitionLabelString:TS,gfmFootnoteDefinition:ES}}}function SS(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Ap},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,s){const o=a.createTracker(s);let u=o.move("[^");const l=a.enter("footnoteDefinition"),c=a.enter("label");return u+=o.move(a.safe(a.associationId(r),{before:u,after:"]"})),c(),u+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),u+=o.move((t?` -`:" ")+a.indentLines(a.containerFlow(r,o.current()),t?Cp:AS))),l(),u}}function AS(e,t,n){return t===0?e:Cp(e,t,n)}function Cp(e,t,n){return(n?"":" ")+e}const CS=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];wp.peek=MS;function wS(){return{canContainEols:["delete"],enter:{strikethrough:IS},exit:{strikethrough:NS}}}function kS(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:CS}],handlers:{delete:wp}}}function IS(e){this.enter({type:"delete",children:[]},e)}function NS(e){this.exit(e)}function wp(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function MS(){return"~"}function RS(e){return e.length}function DS(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||RS,a=[],s=[],o=[],u=[];let l=0,c=-1;for(;++cl&&(l=e[c].length);++Tu[T])&&(u[T]=v)}E.push(S)}s[c]=E,o[c]=C}let d=-1;if(typeof r=="object"&&"length"in r)for(;++du[d]&&(u[d]=S),p[d]=S),m[d]=v}s.splice(1,0,m),o.splice(1,0,p),c=-1;const b=[];for(;++c "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),PS);return i(),s}function PS(e,t,n){return">"+(n?"":" ")+e}function OS(e,t){return gh(e,t.inConstruct,!0)&&!gh(e,t.notInConstruct,!1)}function gh(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++rs&&(s=a):a=1,i=r+t.length,r=n.indexOf(t,i);return s}function BS(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function FS(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function HS(e,t,n,r){const i=FS(n),a=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(BS(e,n)){const d=n.enter("codeIndented"),m=n.indentLines(a,zS);return d(),m}const o=n.createTracker(r),u=i.repeat(Math.max(Ip(a,i)+1,3)),l=n.enter("codeFenced");let c=o.move(u);if(e.lang){const d=n.enter(`codeFencedLang${s}`);c+=o.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...o.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${s}`);c+=o.move(" "),c+=o.move(n.safe(e.meta,{before:c,after:` -`,encode:["`"],...o.current()})),d()}return c+=o.move(` -`),a&&(c+=o.move(a+` -`)),c+=o.move(u),l(),c}function zS(e,t,n){return(n?"":" ")+e}function o0(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function US(e,t,n,r){const i=o0(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let o=n.enter("label");const u=n.createTracker(r);let l=u.move("[");return l+=u.move(n.safe(n.associationId(e),{before:l,after:"]",...u.current()})),l+=u.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),l+=u.move("<"),l+=u.move(n.safe(e.url,{before:l,after:">",...u.current()})),l+=u.move(">")):(o=n.enter("destinationRaw"),l+=u.move(n.safe(e.url,{before:l,after:e.title?" ":` -`,...u.current()}))),o(),e.title&&(o=n.enter(`title${a}`),l+=u.move(" "+i),l+=u.move(n.safe(e.title,{before:l,after:i,...u.current()})),l+=u.move(i),o()),s(),l}function VS(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function la(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ts(e,t,n){const r=oi(e),i=oi(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Np.peek=jS;function Np(e,t,n,r){const i=VS(n),a=n.enter("emphasis"),s=n.createTracker(r),o=s.move(i);let u=s.move(n.containerPhrasing(e,{after:i,before:o,...s.current()}));const l=u.charCodeAt(0),c=Ts(r.before.charCodeAt(r.before.length-1),l,i);c.inside&&(u=la(l)+u.slice(1));const d=u.charCodeAt(u.length-1),m=Ts(r.after.charCodeAt(0),d,i);m.inside&&(u=u.slice(0,-1)+la(d));const p=s.move(i);return a(),n.attentionEncodeSurroundingInfo={after:m.outside,before:c.outside},o+u+p}function jS(e,t,n){return n.options.emphasis||"*"}function qS(e,t){let n=!1;return $s(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Fu}),!!((!e.depth||e.depth<3)&&Zl(e)&&(t.options.setext||n))}function $S(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(qS(e,n)){const c=n.enter("headingSetext"),d=n.enter("phrasing"),m=n.containerPhrasing(e,{...a.current(),before:` -`,after:` -`});return d(),c(),m+` -`+(i===1?"=":"-").repeat(m.length-(Math.max(m.lastIndexOf("\r"),m.lastIndexOf(` -`))+1))}const s="#".repeat(i),o=n.enter("headingAtx"),u=n.enter("phrasing");a.move(s+" ");let l=n.containerPhrasing(e,{before:"# ",after:` -`,...a.current()});return/^[\t ]/.test(l)&&(l=la(l.charCodeAt(0))+l.slice(1)),l=l?s+" "+l:s,n.options.closeAtx&&(l+=" "+s),u(),o(),l}Mp.peek=WS;function Mp(e){return e.value||""}function WS(){return"<"}Rp.peek=YS;function Rp(e,t,n,r){const i=o0(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=n.enter("label");const u=n.createTracker(r);let l=u.move("![");return l+=u.move(n.safe(e.alt,{before:l,after:"]",...u.current()})),l+=u.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),l+=u.move("<"),l+=u.move(n.safe(e.url,{before:l,after:">",...u.current()})),l+=u.move(">")):(o=n.enter("destinationRaw"),l+=u.move(n.safe(e.url,{before:l,after:e.title?" ":")",...u.current()}))),o(),e.title&&(o=n.enter(`title${a}`),l+=u.move(" "+i),l+=u.move(n.safe(e.title,{before:l,after:i,...u.current()})),l+=u.move(i),o()),l+=u.move(")"),s(),l}function YS(){return"!"}Dp.peek=GS;function Dp(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(r);let u=o.move("![");const l=n.safe(e.alt,{before:u,after:"]",...o.current()});u+=o.move(l+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:u,after:"]",...o.current()});return s(),n.stack=c,a(),i==="full"||!l||l!==d?u+=o.move(d+"]"):i==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function GS(){return"!"}_p.peek=KS;function _p(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a\u007F]/.test(e.url))}Pp.peek=XS;function Pp(e,t,n,r){const i=o0(n),a=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,u;if(Lp(e,n)){const c=n.stack;n.stack=[],o=n.enter("autolink");let d=s.move("<");return d+=s.move(n.containerPhrasing(e,{before:d,after:">",...s.current()})),d+=s.move(">"),o(),n.stack=c,d}o=n.enter("link"),u=n.enter("label");let l=s.move("[");return l+=s.move(n.containerPhrasing(e,{before:l,after:"](",...s.current()})),l+=s.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),l+=s.move("<"),l+=s.move(n.safe(e.url,{before:l,after:">",...s.current()})),l+=s.move(">")):(u=n.enter("destinationRaw"),l+=s.move(n.safe(e.url,{before:l,after:e.title?" ":")",...s.current()}))),u(),e.title&&(u=n.enter(`title${a}`),l+=s.move(" "+i),l+=s.move(n.safe(e.title,{before:l,after:i,...s.current()})),l+=s.move(i),u()),l+=s.move(")"),o(),l}function XS(e,t,n){return Lp(e,n)?"<":"["}Op.peek=QS;function Op(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(r);let u=o.move("[");const l=n.containerPhrasing(e,{before:u,after:"]",...o.current()});u+=o.move(l+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:u,after:"]",...o.current()});return s(),n.stack=c,a(),i==="full"||!l||l!==d?u+=o.move(d+"]"):i==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function QS(){return"["}function u0(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function ZS(e){const t=u0(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function JS(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Bp(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function eA(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?JS(n):u0(n);const o=e.ordered?s==="."?")":".":ZS(n);let u=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),Bp(n)===s&&c){let d=-1;for(;++d-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(r);o.move(a+" ".repeat(s-a.length)),o.shift(s);const u=n.enter("listItem"),l=n.indentLines(n.containerFlow(e,o.current()),c);return u(),l;function c(d,m,p){return m?(p?"":" ".repeat(s))+d:(p?a:a+" ".repeat(s-a.length))+d}}function rA(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),i(),s}const iA=xa(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function aA(e,t,n,r){return(e.children.some(function(s){return iA(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function sA(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Fp.peek=oA;function Fp(e,t,n,r){const i=sA(n),a=n.enter("strong"),s=n.createTracker(r),o=s.move(i+i);let u=s.move(n.containerPhrasing(e,{after:i,before:o,...s.current()}));const l=u.charCodeAt(0),c=Ts(r.before.charCodeAt(r.before.length-1),l,i);c.inside&&(u=la(l)+u.slice(1));const d=u.charCodeAt(u.length-1),m=Ts(r.after.charCodeAt(0),d,i);m.inside&&(u=u.slice(0,-1)+la(d));const p=s.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:m.outside,before:c.outside},o+u+p}function oA(e,t,n){return n.options.strong||"*"}function uA(e,t,n,r){return n.safe(e.value,r)}function lA(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function cA(e,t,n){const r=(Bp(n)+(n.options.ruleSpaces?" ":"")).repeat(lA(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Hp={blockquote:LS,break:bh,code:HS,definition:US,emphasis:Np,hardBreak:bh,heading:$S,html:Mp,image:Rp,imageReference:Dp,inlineCode:_p,link:Pp,linkReference:Op,list:eA,listItem:nA,paragraph:rA,root:aA,strong:Fp,text:uA,thematicBreak:cA};function dA(){return{enter:{table:hA,tableData:yh,tableHeader:yh,tableRow:mA},exit:{codeText:pA,table:fA,tableData:zo,tableHeader:zo,tableRow:zo}}}function hA(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function fA(e){this.exit(e),this.data.inTable=void 0}function mA(e){this.enter({type:"tableRow",children:[]},e)}function zo(e){this.exit(e)}function yh(e){this.enter({type:"tableCell",children:[]},e)}function pA(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,gA));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function gA(e,t){return t==="|"?t:e}function bA(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` -`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:m,table:s,tableCell:u,tableRow:o}};function s(p,b,E,C){return l(c(p,E,C),p.align)}function o(p,b,E,C){const T=d(p,E,C),S=l([T]);return S.slice(0,S.indexOf(` -`))}function u(p,b,E,C){const T=E.enter("tableCell"),S=E.enter("phrasing"),v=E.containerPhrasing(p,{...C,before:a,after:a});return S(),T(),v}function l(p,b){return DS(p,{align:b,alignDelimiters:r,padding:n,stringLength:i})}function c(p,b,E){const C=p.children;let T=-1;const S=[],v=b.enter("table");for(;++T0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const PA={tokenize:jA,partial:!0};function OA(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:zA,continuation:{tokenize:UA},exit:VA}},text:{91:{name:"gfmFootnoteCall",tokenize:HA},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:BA,resolveTo:FA}}}}function BA(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){s=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return o;function o(u){if(!s||!s._balanced)return n(u);const l=yn(r.sliceSerialize({start:s.end,end:r.now()}));return l.codePointAt(0)!==94||!a.includes(l.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function FA(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function HA(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return o;function o(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),u}function u(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(d){if(a>999||d===93&&!s||d===null||d===91||Ge(d))return n(d);if(d===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return i.includes(yn(r.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Ge(d)||(s=!0),a++,e.consume(d),d===92?c:l}function c(d){return d===91||d===92||d===93?(e.consume(d),a++,l):l(d)}}function zA(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,o;return u;function u(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(b)}function c(b){if(s>999||b===93&&!o||b===null||b===91||Ge(b))return n(b);if(b===93){e.exit("chunkString");const E=e.exit("gfmFootnoteDefinitionLabelString");return a=yn(r.sliceSerialize(E)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return Ge(b)||(o=!0),s++,e.consume(b),b===92?d:c}function d(b){return b===91||b===92||b===93?(e.consume(b),s++,c):c(b)}function m(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(a)||i.push(a),Ne(e,p,"gfmFootnoteDefinitionWhitespace")):n(b)}function p(b){return t(b)}}function UA(e,t,n){return e.check(Ea,t,e.attempt(PA,t,n))}function VA(e){e.exit("gfmFootnoteDefinition")}function jA(e,t,n){const r=this;return Ne(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function qA(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,o){let u=-1;for(;++u1?u(b):(s.consume(b),d++,p);if(d<2&&!n)return u(b);const C=s.exit("strikethroughSequenceTemporary"),T=oi(b);return C._open=!T||T===2&&!!E,C._close=!E||E===2&&!!T,o(b)}}}class $A{constructor(){this.map=[]}add(t,n,r){WA(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const a of i)t.push(a);i=r.pop()}this.map.length=0}}function WA(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const j=r.events[K][1].type;if(j==="lineEnding"||j==="linePrefix")K--;else break}const Y=K>-1?r.events[K][1].type:null,X=Y==="tableHead"||Y==="tableRow"?k:u;return X===k&&r.parser.lazy[r.now().line]?n(B):X(B)}function u(B){return e.enter("tableHead"),e.enter("tableRow"),l(B)}function l(B){return B===124||(s=!0,a+=1),c(B)}function c(B){return B===null?n(B):he(B)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),p):n(B):Re(B)?Ne(e,c,"whitespace")(B):(a+=1,s&&(s=!1,i+=1),B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),d(B)))}function d(B){return B===null||B===124||Ge(B)?(e.exit("data"),c(B)):(e.consume(B),B===92?m:d)}function m(B){return B===92||B===124?(e.consume(B),d):d(B)}function p(B){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(B):(e.enter("tableDelimiterRow"),s=!1,Re(B)?Ne(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):b(B))}function b(B){return B===45||B===58?C(B):B===124?(s=!0,e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),E):P(B)}function E(B){return Re(B)?Ne(e,C,"whitespace")(B):C(B)}function C(B){return B===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),T):B===45?(a+=1,T(B)):B===null||he(B)?L(B):P(B)}function T(B){return B===45?(e.enter("tableDelimiterFiller"),S(B)):P(B)}function S(B){return B===45?(e.consume(B),S):B===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(B))}function v(B){return Re(B)?Ne(e,L,"whitespace")(B):L(B)}function L(B){return B===124?b(B):B===null||he(B)?!s||i!==a?P(B):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(B)):P(B)}function P(B){return n(B)}function k(B){return e.enter("tableRow"),V(B)}function V(B){return B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),V):B===null||he(B)?(e.exit("tableRow"),t(B)):Re(B)?Ne(e,V,"whitespace")(B):(e.enter("data"),U(B))}function U(B){return B===null||B===124||Ge(B)?(e.exit("data"),V(B)):(e.consume(B),B===92?q:U)}function q(B){return B===92||B===124?(e.consume(B),U):U(B)}}function XA(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,u=0,l,c,d;const m=new $A;for(;++nn[2]+1){const b=n[2]+1,E=n[3]-n[2]-1;e.add(b,E,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(a.end=Object.assign({},Yr(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Eh(e,t,n,r,i){const a=[],s=Yr(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function Yr(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const QA={name:"tasklistCheck",tokenize:JA};function ZA(){return{text:{91:QA}}}function JA(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return Ge(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),s):n(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(u)}function o(u){return he(u)?t(u):Re(u)?e.check({tokenize:eC},t,n)(u):n(u)}}function eC(e,t,n){return Ne(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function tC(e){return np([wA(),OA(),qA(e),GA(),ZA()])}const nC={};function xh(e){const t=this,n=e||nC,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(tC(n)),a.push(vA()),s.push(SA(n))}function rC(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:o,mathText:s,mathTextData:o}};function e(u){const l={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[l]}},u)}function t(){this.buffer()}function n(){const u=this.resume(),l=this.stack[this.stack.length-1];l.type,l.meta=u}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(u){const l=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c=this.stack[this.stack.length-1];c.type,this.exit(u),c.value=l;const d=c.data.hChildren[0];d.type,d.tagName,d.children.push({type:"text",value:l}),this.data.mathFlowInside=void 0}function a(u){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},u),this.buffer()}function s(u){const l=this.resume(),c=this.stack[this.stack.length-1];c.type,this.exit(u),c.value=l,c.data.hChildren.push({type:"text",value:l})}function o(u){this.config.enter.data.call(this,u),this.config.exit.data.call(this,u)}}function iC(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` -`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(a,s,o,u){const l=a.value||"",c=o.createTracker(u),d="$".repeat(Math.max(Ip(l,"$")+1,2)),m=o.enter("mathFlow");let p=c.move(d);if(a.meta){const b=o.enter("mathFlowMeta");p+=c.move(o.safe(a.meta,{after:` -`,before:p,encode:["$"],...c.current()})),b()}return p+=c.move(` -`),l&&(p+=c.move(l+` -`)),p+=c.move(d),m(),p}function r(a,s,o){let u=a.value||"",l=1;for(t||l++;new RegExp("(^|[^$])"+"\\$".repeat(l)+"([^$]|$)").test(u);)l++;const c="$".repeat(l);/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^\$|\$$/.test(u))&&(u=" "+u+" ");let d=-1;for(;++d15?l="…"+o.slice(i-15,i):l=o.slice(0,i);var c;a+15":">","<":"<",'"':""","'":"'"},bC=/[&><"']/g;function yC(e){return String(e).replace(bC,t=>gC[t])}var Gp=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},TC=function(t){var n=Gp(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},EC=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},xC=function(t){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"},pe={contains:hC,deflt:fC,escape:yC,hyphenate:pC,getBaseElem:Gp,isCharacterBox:TC,protocolFromUrl:xC},as={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function vC(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class c0{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in as)if(as.hasOwnProperty(n)){var r=as[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:vC(r)}}reportNonstrict(t,n,r){var i=this.strict;if(typeof i=="function"&&(i=i(t,n,r)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new te("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var i=this.strict;if(typeof i=="function")try{i=i(t,n,r)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var n=pe.protocolFromUrl(t.url);if(n==null)return!1;t.protocol=n}var r=typeof this.trust=="function"?this.trust(t):this.trust;return!!r}}class ir{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return Cn[SC[this.id]]}sub(){return Cn[AC[this.id]]}fracNum(){return Cn[CC[this.id]]}fracDen(){return Cn[wC[this.id]]}cramp(){return Cn[kC[this.id]]}text(){return Cn[IC[this.id]]}isTight(){return this.size>=2}}var d0=0,Es=1,ri=2,qn=3,ca=4,cn=5,ui=6,zt=7,Cn=[new ir(d0,0,!1),new ir(Es,0,!0),new ir(ri,1,!1),new ir(qn,1,!0),new ir(ca,2,!1),new ir(cn,2,!0),new ir(ui,3,!1),new ir(zt,3,!0)],SC=[ca,cn,ca,cn,ui,zt,ui,zt],AC=[cn,cn,cn,cn,zt,zt,zt,zt],CC=[ri,qn,ca,cn,ui,zt,ui,zt],wC=[qn,qn,cn,cn,zt,zt,zt,zt],kC=[Es,Es,qn,qn,cn,cn,zt,zt],IC=[d0,Es,ri,qn,ri,qn,ri,qn],be={DISPLAY:Cn[d0],TEXT:Cn[ri],SCRIPT:Cn[ca],SCRIPTSCRIPT:Cn[ui]},ju=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function NC(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}var ss=[];ju.forEach(e=>e.blocks.forEach(t=>ss.push(...t)));function Kp(e){for(var t=0;t=ss[t]&&e<=ss[t+1])return!0;return!1}var $r=80,MC=function(t,n){return"M95,"+(622+t+n)+` -c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 -c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 -c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 -s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 -c69,-144,104.5,-217.7,106.5,-221 -l`+t/2.075+" -"+t+` -c5.3,-9.3,12,-14,20,-14 -H400000v`+(40+t)+`H845.2724 -s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 -c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z -M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},RC=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119 -c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 -c340,-704.7,510.7,-1060.3,512,-1067 -l`+t/2.084+" -"+t+` -c4.7,-7.3,11,-11,19,-11 -H40000v`+(40+t)+`H1012.3 -s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 -c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 -s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 -c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z -M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},DC=function(t,n){return"M983 "+(10+t+n)+` -l`+t/3.13+" -"+t+` -c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+` -H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 -s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 -c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 -c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 -c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 -c53.7,-170.3,84.5,-266.8,92.5,-289.5z -M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},_C=function(t,n){return"M424,"+(2398+t+n)+` -c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 -c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 -s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 -s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 -l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000 -v`+(40+t)+`H1014.6 -s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 -c-2,6,-10,9,-24,9 -c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+n+` -h400000v`+(40+t)+"h-400000z"},LC=function(t,n){return"M473,"+(2713+t+n)+` -c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+` -c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7 -s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 -c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 -c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 -s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, -606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},PC=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},OC=function(t,n,r){var i=r-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+` -H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 -h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 -c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 -219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},BC=function(t,n,r){n=1e3*n;var i="";switch(t){case"sqrtMain":i=MC(n,$r);break;case"sqrtSize1":i=RC(n,$r);break;case"sqrtSize2":i=DC(n,$r);break;case"sqrtSize3":i=_C(n,$r);break;case"sqrtSize4":i=LC(n,$r);break;case"sqrtTall":i=OC(n,$r,r)}return i},FC=function(t,n){switch(t){case"⎜":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"∣":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"∥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"⎟":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"⎢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"⎥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"⎪":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"⏐":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"‖":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},Sh={doubleleftarrow:`M262 157 -l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 - 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 - 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 -c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 - 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 --86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 --2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z -m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l --10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 - 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 --33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 --17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 --13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 -c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 --107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 - 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 --5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 -c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 - 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 - 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 - l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 --45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 - 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 - 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 - 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 --331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 -H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 - 435 0h399565z`,leftgroupunder:`M400000 262 -H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 - 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 --3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 --18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 --196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 - 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 --4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 --10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z -m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 - 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 - 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 --152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 - 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 --2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 -v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 --83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 --68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 - 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z -M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z -M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 --.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 -c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 - 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z -M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 -c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 --53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 - 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 - 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 -c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 - 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 - 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 --5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 --320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z -m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 -60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 --451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z -m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 -c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 --480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z -m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 -85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 --707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z -m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 -c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 --16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 - 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 - 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 --40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 --12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 - 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l --6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 -s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 -c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 - 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 --174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 - 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 - 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 --3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 --10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 - 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 --18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 - 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z -m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 - 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 --7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 --27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 - 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 - 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 --64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z -m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 - 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 --13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 - 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z -M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 - 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 --52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 --167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 - 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 --70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 --40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 --37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 - 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 -c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 - 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 - 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 --19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 - 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 --2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 - 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 - 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 --68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 --8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 - 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 -c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 - 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 --11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 - 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 - 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 - -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 --11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 - 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 - 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 - -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 -3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 -10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 --1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 --7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 -H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 -c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 -c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 --11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 --11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 --11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, --5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, --11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, --11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, --11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 -c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 -c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 -s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 -121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 -s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 -c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z -M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 --27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 -13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 --84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 --119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 --12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 -151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 -c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 -c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 -c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 -c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z -M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 -c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, --231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 -c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z -M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 -c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, -1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, --152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z -M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 -c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, --231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 -c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z -M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},HC=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84 -H403z M403 1759 V0 H319 V1759 v`+n+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z -M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15 -c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 -c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+" v585 h43z";case"doublevert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15 -c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 -c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+` v585 h43z -M367 15 v585 v`+n+` v585 c2.667,10,9.667,15,21,15 -c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 -c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+n+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+n+` v1715 h263 v84 H319z -MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+n+` v1799 H0 v-84 H319z -MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v602 h84z -M403 1759 V0 H319 V1759 v`+n+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v602 h84z -M347 1759 V0 h-84 V1759 v`+n+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 -c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, --36,557 l0,`+(n+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, -949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 -c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, --544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 -l0,-`+(n+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, --210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, -63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 -c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(n+9)+` -c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 -c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 -c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 -c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 -l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, --470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};let Sa=class{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return pe.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),n=0;nn.toText();return this.children.map(t).join("")}};var kn={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},ja={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Ah={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function zC(e,t){kn[e]=t}function h0(e,t,n){if(!kn[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=kn[t][r];if(!i&&e[0]in Ah&&(r=Ah[e[0]].charCodeAt(0),i=kn[t][r]),!i&&n==="text"&&Kp(r)&&(i=kn[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Uo={};function UC(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Uo[t]){var n=Uo[t]={cssEmPerMu:ja.quad[t]/18};for(var r in ja)ja.hasOwnProperty(r)&&(n[r]=ja[r][t])}return Uo[t]}var VC=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Ch=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],wh=function(t,n){return n.size<2?t:VC[t-1][n.size-1]};class Un{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||Un.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Ch[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new Un(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:wh(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Ch[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=wh(Un.BASESIZE,t);return this.size===n&&this.textSize===Un.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Un.BASESIZE?["sizing","reset-size"+this.size,"size"+Un.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=UC(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Un.BASESIZE=6;var qu={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},jC={ex:!0,em:!0,mu:!0},Xp=function(t){return typeof t!="string"&&(t=t.unit),t in qu||t in jC||t==="ex"},st=function(t,n){var r;if(t.unit in qu)r=qu[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var i;if(n.style.isTight()?i=n.havingStyle(n.style.text()):i=n,t.unit==="ex")r=i.fontMetrics().xHeight;else if(t.unit==="em")r=i.fontMetrics().quad;else throw new te("Invalid unit: '"+t.unit+"'");i!==n&&(r*=i.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},se=function(t){return+t.toFixed(4)+"em"},mr=function(t){return t.filter(n=>n).join(" ")},Qp=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var i=n.getColor();i&&(this.style.color=i)}},Zp=function(t){var n=document.createElement(t);n.className=mr(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&n.setAttribute(i,this.attributes[i]);for(var a=0;a/=\x00-\x1f]/,Jp=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+pe.escape(mr(this.classes))+'"');var r="";for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=pe.hyphenate(i)+":"+this.style[i]+";");r&&(n+=' style="'+pe.escape(r)+'"');for(var a in this.attributes)if(this.attributes.hasOwnProperty(a)){if(qC.test(a))throw new te("Invalid attribute name '"+a+"'");n+=" "+a+'="'+pe.escape(this.attributes[a])+'"'}n+=">";for(var s=0;s",n};class Aa{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Qp.call(this,t,r,i),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return pe.contains(this.classes,t)}toNode(){return Zp.call(this,"span")}toMarkup(){return Jp.call(this,"span")}}class f0{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Qp.call(this,n,i),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return pe.contains(this.classes,t)}toNode(){return Zp.call(this,"a")}toMarkup(){return Jp.call(this,"a")}}class $C{constructor(t,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.style=r}hasClass(t){return pe.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t=''+pe.escape(this.alt)+'0&&(n=document.createElement("span"),n.style.marginRight=se(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=mr(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=pe.hyphenate(i)+":"+this.style[i]+";");r&&(t=!0,n+=' style="'+pe.escape(r)+'"');var a=pe.escape(this.text);return t?(n+=">",n+=a,n+="",n):a}}class Kn{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var i=0;i':''}}class $u{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t=" but got "+String(e)+".")}var GC={bin:1,close:1,inner:1,open:1,punct:1,rel:1},KC={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},et={math:{},text:{}};function f(e,t,n,r,i,a){et[e][i]={font:t,group:n,replace:r},a&&r&&(et[e][r]=et[e][i])}var g="math",Q="text",y="main",N="ams",it="accent-token",de="bin",Ut="close",bi="inner",ge="mathord",Et="op-token",an="open",Ws="punct",M="rel",Jn="spacing",F="textord";f(g,y,M,"≡","\\equiv",!0);f(g,y,M,"≺","\\prec",!0);f(g,y,M,"≻","\\succ",!0);f(g,y,M,"∼","\\sim",!0);f(g,y,M,"⊥","\\perp");f(g,y,M,"⪯","\\preceq",!0);f(g,y,M,"⪰","\\succeq",!0);f(g,y,M,"≃","\\simeq",!0);f(g,y,M,"∣","\\mid",!0);f(g,y,M,"≪","\\ll",!0);f(g,y,M,"≫","\\gg",!0);f(g,y,M,"≍","\\asymp",!0);f(g,y,M,"∥","\\parallel");f(g,y,M,"⋈","\\bowtie",!0);f(g,y,M,"⌣","\\smile",!0);f(g,y,M,"⊑","\\sqsubseteq",!0);f(g,y,M,"⊒","\\sqsupseteq",!0);f(g,y,M,"≐","\\doteq",!0);f(g,y,M,"⌢","\\frown",!0);f(g,y,M,"∋","\\ni",!0);f(g,y,M,"∝","\\propto",!0);f(g,y,M,"⊢","\\vdash",!0);f(g,y,M,"⊣","\\dashv",!0);f(g,y,M,"∋","\\owns");f(g,y,Ws,".","\\ldotp");f(g,y,Ws,"⋅","\\cdotp");f(g,y,F,"#","\\#");f(Q,y,F,"#","\\#");f(g,y,F,"&","\\&");f(Q,y,F,"&","\\&");f(g,y,F,"ℵ","\\aleph",!0);f(g,y,F,"∀","\\forall",!0);f(g,y,F,"ℏ","\\hbar",!0);f(g,y,F,"∃","\\exists",!0);f(g,y,F,"∇","\\nabla",!0);f(g,y,F,"♭","\\flat",!0);f(g,y,F,"ℓ","\\ell",!0);f(g,y,F,"♮","\\natural",!0);f(g,y,F,"♣","\\clubsuit",!0);f(g,y,F,"℘","\\wp",!0);f(g,y,F,"♯","\\sharp",!0);f(g,y,F,"♢","\\diamondsuit",!0);f(g,y,F,"ℜ","\\Re",!0);f(g,y,F,"♡","\\heartsuit",!0);f(g,y,F,"ℑ","\\Im",!0);f(g,y,F,"♠","\\spadesuit",!0);f(g,y,F,"§","\\S",!0);f(Q,y,F,"§","\\S");f(g,y,F,"¶","\\P",!0);f(Q,y,F,"¶","\\P");f(g,y,F,"†","\\dag");f(Q,y,F,"†","\\dag");f(Q,y,F,"†","\\textdagger");f(g,y,F,"‡","\\ddag");f(Q,y,F,"‡","\\ddag");f(Q,y,F,"‡","\\textdaggerdbl");f(g,y,Ut,"⎱","\\rmoustache",!0);f(g,y,an,"⎰","\\lmoustache",!0);f(g,y,Ut,"⟯","\\rgroup",!0);f(g,y,an,"⟮","\\lgroup",!0);f(g,y,de,"∓","\\mp",!0);f(g,y,de,"⊖","\\ominus",!0);f(g,y,de,"⊎","\\uplus",!0);f(g,y,de,"⊓","\\sqcap",!0);f(g,y,de,"∗","\\ast");f(g,y,de,"⊔","\\sqcup",!0);f(g,y,de,"◯","\\bigcirc",!0);f(g,y,de,"∙","\\bullet",!0);f(g,y,de,"‡","\\ddagger");f(g,y,de,"≀","\\wr",!0);f(g,y,de,"⨿","\\amalg");f(g,y,de,"&","\\And");f(g,y,M,"⟵","\\longleftarrow",!0);f(g,y,M,"⇐","\\Leftarrow",!0);f(g,y,M,"⟸","\\Longleftarrow",!0);f(g,y,M,"⟶","\\longrightarrow",!0);f(g,y,M,"⇒","\\Rightarrow",!0);f(g,y,M,"⟹","\\Longrightarrow",!0);f(g,y,M,"↔","\\leftrightarrow",!0);f(g,y,M,"⟷","\\longleftrightarrow",!0);f(g,y,M,"⇔","\\Leftrightarrow",!0);f(g,y,M,"⟺","\\Longleftrightarrow",!0);f(g,y,M,"↦","\\mapsto",!0);f(g,y,M,"⟼","\\longmapsto",!0);f(g,y,M,"↗","\\nearrow",!0);f(g,y,M,"↩","\\hookleftarrow",!0);f(g,y,M,"↪","\\hookrightarrow",!0);f(g,y,M,"↘","\\searrow",!0);f(g,y,M,"↼","\\leftharpoonup",!0);f(g,y,M,"⇀","\\rightharpoonup",!0);f(g,y,M,"↙","\\swarrow",!0);f(g,y,M,"↽","\\leftharpoondown",!0);f(g,y,M,"⇁","\\rightharpoondown",!0);f(g,y,M,"↖","\\nwarrow",!0);f(g,y,M,"⇌","\\rightleftharpoons",!0);f(g,N,M,"≮","\\nless",!0);f(g,N,M,"","\\@nleqslant");f(g,N,M,"","\\@nleqq");f(g,N,M,"⪇","\\lneq",!0);f(g,N,M,"≨","\\lneqq",!0);f(g,N,M,"","\\@lvertneqq");f(g,N,M,"⋦","\\lnsim",!0);f(g,N,M,"⪉","\\lnapprox",!0);f(g,N,M,"⊀","\\nprec",!0);f(g,N,M,"⋠","\\npreceq",!0);f(g,N,M,"⋨","\\precnsim",!0);f(g,N,M,"⪹","\\precnapprox",!0);f(g,N,M,"≁","\\nsim",!0);f(g,N,M,"","\\@nshortmid");f(g,N,M,"∤","\\nmid",!0);f(g,N,M,"⊬","\\nvdash",!0);f(g,N,M,"⊭","\\nvDash",!0);f(g,N,M,"⋪","\\ntriangleleft");f(g,N,M,"⋬","\\ntrianglelefteq",!0);f(g,N,M,"⊊","\\subsetneq",!0);f(g,N,M,"","\\@varsubsetneq");f(g,N,M,"⫋","\\subsetneqq",!0);f(g,N,M,"","\\@varsubsetneqq");f(g,N,M,"≯","\\ngtr",!0);f(g,N,M,"","\\@ngeqslant");f(g,N,M,"","\\@ngeqq");f(g,N,M,"⪈","\\gneq",!0);f(g,N,M,"≩","\\gneqq",!0);f(g,N,M,"","\\@gvertneqq");f(g,N,M,"⋧","\\gnsim",!0);f(g,N,M,"⪊","\\gnapprox",!0);f(g,N,M,"⊁","\\nsucc",!0);f(g,N,M,"⋡","\\nsucceq",!0);f(g,N,M,"⋩","\\succnsim",!0);f(g,N,M,"⪺","\\succnapprox",!0);f(g,N,M,"≆","\\ncong",!0);f(g,N,M,"","\\@nshortparallel");f(g,N,M,"∦","\\nparallel",!0);f(g,N,M,"⊯","\\nVDash",!0);f(g,N,M,"⋫","\\ntriangleright");f(g,N,M,"⋭","\\ntrianglerighteq",!0);f(g,N,M,"","\\@nsupseteqq");f(g,N,M,"⊋","\\supsetneq",!0);f(g,N,M,"","\\@varsupsetneq");f(g,N,M,"⫌","\\supsetneqq",!0);f(g,N,M,"","\\@varsupsetneqq");f(g,N,M,"⊮","\\nVdash",!0);f(g,N,M,"⪵","\\precneqq",!0);f(g,N,M,"⪶","\\succneqq",!0);f(g,N,M,"","\\@nsubseteqq");f(g,N,de,"⊴","\\unlhd");f(g,N,de,"⊵","\\unrhd");f(g,N,M,"↚","\\nleftarrow",!0);f(g,N,M,"↛","\\nrightarrow",!0);f(g,N,M,"⇍","\\nLeftarrow",!0);f(g,N,M,"⇏","\\nRightarrow",!0);f(g,N,M,"↮","\\nleftrightarrow",!0);f(g,N,M,"⇎","\\nLeftrightarrow",!0);f(g,N,M,"△","\\vartriangle");f(g,N,F,"ℏ","\\hslash");f(g,N,F,"▽","\\triangledown");f(g,N,F,"◊","\\lozenge");f(g,N,F,"Ⓢ","\\circledS");f(g,N,F,"®","\\circledR");f(Q,N,F,"®","\\circledR");f(g,N,F,"∡","\\measuredangle",!0);f(g,N,F,"∄","\\nexists");f(g,N,F,"℧","\\mho");f(g,N,F,"Ⅎ","\\Finv",!0);f(g,N,F,"⅁","\\Game",!0);f(g,N,F,"‵","\\backprime");f(g,N,F,"▲","\\blacktriangle");f(g,N,F,"▼","\\blacktriangledown");f(g,N,F,"■","\\blacksquare");f(g,N,F,"⧫","\\blacklozenge");f(g,N,F,"★","\\bigstar");f(g,N,F,"∢","\\sphericalangle",!0);f(g,N,F,"∁","\\complement",!0);f(g,N,F,"ð","\\eth",!0);f(Q,y,F,"ð","ð");f(g,N,F,"╱","\\diagup");f(g,N,F,"╲","\\diagdown");f(g,N,F,"□","\\square");f(g,N,F,"□","\\Box");f(g,N,F,"◊","\\Diamond");f(g,N,F,"¥","\\yen",!0);f(Q,N,F,"¥","\\yen",!0);f(g,N,F,"✓","\\checkmark",!0);f(Q,N,F,"✓","\\checkmark");f(g,N,F,"ℶ","\\beth",!0);f(g,N,F,"ℸ","\\daleth",!0);f(g,N,F,"ℷ","\\gimel",!0);f(g,N,F,"ϝ","\\digamma",!0);f(g,N,F,"ϰ","\\varkappa");f(g,N,an,"┌","\\@ulcorner",!0);f(g,N,Ut,"┐","\\@urcorner",!0);f(g,N,an,"└","\\@llcorner",!0);f(g,N,Ut,"┘","\\@lrcorner",!0);f(g,N,M,"≦","\\leqq",!0);f(g,N,M,"⩽","\\leqslant",!0);f(g,N,M,"⪕","\\eqslantless",!0);f(g,N,M,"≲","\\lesssim",!0);f(g,N,M,"⪅","\\lessapprox",!0);f(g,N,M,"≊","\\approxeq",!0);f(g,N,de,"⋖","\\lessdot");f(g,N,M,"⋘","\\lll",!0);f(g,N,M,"≶","\\lessgtr",!0);f(g,N,M,"⋚","\\lesseqgtr",!0);f(g,N,M,"⪋","\\lesseqqgtr",!0);f(g,N,M,"≑","\\doteqdot");f(g,N,M,"≓","\\risingdotseq",!0);f(g,N,M,"≒","\\fallingdotseq",!0);f(g,N,M,"∽","\\backsim",!0);f(g,N,M,"⋍","\\backsimeq",!0);f(g,N,M,"⫅","\\subseteqq",!0);f(g,N,M,"⋐","\\Subset",!0);f(g,N,M,"⊏","\\sqsubset",!0);f(g,N,M,"≼","\\preccurlyeq",!0);f(g,N,M,"⋞","\\curlyeqprec",!0);f(g,N,M,"≾","\\precsim",!0);f(g,N,M,"⪷","\\precapprox",!0);f(g,N,M,"⊲","\\vartriangleleft");f(g,N,M,"⊴","\\trianglelefteq");f(g,N,M,"⊨","\\vDash",!0);f(g,N,M,"⊪","\\Vvdash",!0);f(g,N,M,"⌣","\\smallsmile");f(g,N,M,"⌢","\\smallfrown");f(g,N,M,"≏","\\bumpeq",!0);f(g,N,M,"≎","\\Bumpeq",!0);f(g,N,M,"≧","\\geqq",!0);f(g,N,M,"⩾","\\geqslant",!0);f(g,N,M,"⪖","\\eqslantgtr",!0);f(g,N,M,"≳","\\gtrsim",!0);f(g,N,M,"⪆","\\gtrapprox",!0);f(g,N,de,"⋗","\\gtrdot");f(g,N,M,"⋙","\\ggg",!0);f(g,N,M,"≷","\\gtrless",!0);f(g,N,M,"⋛","\\gtreqless",!0);f(g,N,M,"⪌","\\gtreqqless",!0);f(g,N,M,"≖","\\eqcirc",!0);f(g,N,M,"≗","\\circeq",!0);f(g,N,M,"≜","\\triangleq",!0);f(g,N,M,"∼","\\thicksim");f(g,N,M,"≈","\\thickapprox");f(g,N,M,"⫆","\\supseteqq",!0);f(g,N,M,"⋑","\\Supset",!0);f(g,N,M,"⊐","\\sqsupset",!0);f(g,N,M,"≽","\\succcurlyeq",!0);f(g,N,M,"⋟","\\curlyeqsucc",!0);f(g,N,M,"≿","\\succsim",!0);f(g,N,M,"⪸","\\succapprox",!0);f(g,N,M,"⊳","\\vartriangleright");f(g,N,M,"⊵","\\trianglerighteq");f(g,N,M,"⊩","\\Vdash",!0);f(g,N,M,"∣","\\shortmid");f(g,N,M,"∥","\\shortparallel");f(g,N,M,"≬","\\between",!0);f(g,N,M,"⋔","\\pitchfork",!0);f(g,N,M,"∝","\\varpropto");f(g,N,M,"◀","\\blacktriangleleft");f(g,N,M,"∴","\\therefore",!0);f(g,N,M,"∍","\\backepsilon");f(g,N,M,"▶","\\blacktriangleright");f(g,N,M,"∵","\\because",!0);f(g,N,M,"⋘","\\llless");f(g,N,M,"⋙","\\gggtr");f(g,N,de,"⊲","\\lhd");f(g,N,de,"⊳","\\rhd");f(g,N,M,"≂","\\eqsim",!0);f(g,y,M,"⋈","\\Join");f(g,N,M,"≑","\\Doteq",!0);f(g,N,de,"∔","\\dotplus",!0);f(g,N,de,"∖","\\smallsetminus");f(g,N,de,"⋒","\\Cap",!0);f(g,N,de,"⋓","\\Cup",!0);f(g,N,de,"⩞","\\doublebarwedge",!0);f(g,N,de,"⊟","\\boxminus",!0);f(g,N,de,"⊞","\\boxplus",!0);f(g,N,de,"⋇","\\divideontimes",!0);f(g,N,de,"⋉","\\ltimes",!0);f(g,N,de,"⋊","\\rtimes",!0);f(g,N,de,"⋋","\\leftthreetimes",!0);f(g,N,de,"⋌","\\rightthreetimes",!0);f(g,N,de,"⋏","\\curlywedge",!0);f(g,N,de,"⋎","\\curlyvee",!0);f(g,N,de,"⊝","\\circleddash",!0);f(g,N,de,"⊛","\\circledast",!0);f(g,N,de,"⋅","\\centerdot");f(g,N,de,"⊺","\\intercal",!0);f(g,N,de,"⋒","\\doublecap");f(g,N,de,"⋓","\\doublecup");f(g,N,de,"⊠","\\boxtimes",!0);f(g,N,M,"⇢","\\dashrightarrow",!0);f(g,N,M,"⇠","\\dashleftarrow",!0);f(g,N,M,"⇇","\\leftleftarrows",!0);f(g,N,M,"⇆","\\leftrightarrows",!0);f(g,N,M,"⇚","\\Lleftarrow",!0);f(g,N,M,"↞","\\twoheadleftarrow",!0);f(g,N,M,"↢","\\leftarrowtail",!0);f(g,N,M,"↫","\\looparrowleft",!0);f(g,N,M,"⇋","\\leftrightharpoons",!0);f(g,N,M,"↶","\\curvearrowleft",!0);f(g,N,M,"↺","\\circlearrowleft",!0);f(g,N,M,"↰","\\Lsh",!0);f(g,N,M,"⇈","\\upuparrows",!0);f(g,N,M,"↿","\\upharpoonleft",!0);f(g,N,M,"⇃","\\downharpoonleft",!0);f(g,y,M,"⊶","\\origof",!0);f(g,y,M,"⊷","\\imageof",!0);f(g,N,M,"⊸","\\multimap",!0);f(g,N,M,"↭","\\leftrightsquigarrow",!0);f(g,N,M,"⇉","\\rightrightarrows",!0);f(g,N,M,"⇄","\\rightleftarrows",!0);f(g,N,M,"↠","\\twoheadrightarrow",!0);f(g,N,M,"↣","\\rightarrowtail",!0);f(g,N,M,"↬","\\looparrowright",!0);f(g,N,M,"↷","\\curvearrowright",!0);f(g,N,M,"↻","\\circlearrowright",!0);f(g,N,M,"↱","\\Rsh",!0);f(g,N,M,"⇊","\\downdownarrows",!0);f(g,N,M,"↾","\\upharpoonright",!0);f(g,N,M,"⇂","\\downharpoonright",!0);f(g,N,M,"⇝","\\rightsquigarrow",!0);f(g,N,M,"⇝","\\leadsto");f(g,N,M,"⇛","\\Rrightarrow",!0);f(g,N,M,"↾","\\restriction");f(g,y,F,"‘","`");f(g,y,F,"$","\\$");f(Q,y,F,"$","\\$");f(Q,y,F,"$","\\textdollar");f(g,y,F,"%","\\%");f(Q,y,F,"%","\\%");f(g,y,F,"_","\\_");f(Q,y,F,"_","\\_");f(Q,y,F,"_","\\textunderscore");f(g,y,F,"∠","\\angle",!0);f(g,y,F,"∞","\\infty",!0);f(g,y,F,"′","\\prime");f(g,y,F,"△","\\triangle");f(g,y,F,"Γ","\\Gamma",!0);f(g,y,F,"Δ","\\Delta",!0);f(g,y,F,"Θ","\\Theta",!0);f(g,y,F,"Λ","\\Lambda",!0);f(g,y,F,"Ξ","\\Xi",!0);f(g,y,F,"Π","\\Pi",!0);f(g,y,F,"Σ","\\Sigma",!0);f(g,y,F,"Υ","\\Upsilon",!0);f(g,y,F,"Φ","\\Phi",!0);f(g,y,F,"Ψ","\\Psi",!0);f(g,y,F,"Ω","\\Omega",!0);f(g,y,F,"A","Α");f(g,y,F,"B","Β");f(g,y,F,"E","Ε");f(g,y,F,"Z","Ζ");f(g,y,F,"H","Η");f(g,y,F,"I","Ι");f(g,y,F,"K","Κ");f(g,y,F,"M","Μ");f(g,y,F,"N","Ν");f(g,y,F,"O","Ο");f(g,y,F,"P","Ρ");f(g,y,F,"T","Τ");f(g,y,F,"X","Χ");f(g,y,F,"¬","\\neg",!0);f(g,y,F,"¬","\\lnot");f(g,y,F,"⊤","\\top");f(g,y,F,"⊥","\\bot");f(g,y,F,"∅","\\emptyset");f(g,N,F,"∅","\\varnothing");f(g,y,ge,"α","\\alpha",!0);f(g,y,ge,"β","\\beta",!0);f(g,y,ge,"γ","\\gamma",!0);f(g,y,ge,"δ","\\delta",!0);f(g,y,ge,"ϵ","\\epsilon",!0);f(g,y,ge,"ζ","\\zeta",!0);f(g,y,ge,"η","\\eta",!0);f(g,y,ge,"θ","\\theta",!0);f(g,y,ge,"ι","\\iota",!0);f(g,y,ge,"κ","\\kappa",!0);f(g,y,ge,"λ","\\lambda",!0);f(g,y,ge,"μ","\\mu",!0);f(g,y,ge,"ν","\\nu",!0);f(g,y,ge,"ξ","\\xi",!0);f(g,y,ge,"ο","\\omicron",!0);f(g,y,ge,"π","\\pi",!0);f(g,y,ge,"ρ","\\rho",!0);f(g,y,ge,"σ","\\sigma",!0);f(g,y,ge,"τ","\\tau",!0);f(g,y,ge,"υ","\\upsilon",!0);f(g,y,ge,"ϕ","\\phi",!0);f(g,y,ge,"χ","\\chi",!0);f(g,y,ge,"ψ","\\psi",!0);f(g,y,ge,"ω","\\omega",!0);f(g,y,ge,"ε","\\varepsilon",!0);f(g,y,ge,"ϑ","\\vartheta",!0);f(g,y,ge,"ϖ","\\varpi",!0);f(g,y,ge,"ϱ","\\varrho",!0);f(g,y,ge,"ς","\\varsigma",!0);f(g,y,ge,"φ","\\varphi",!0);f(g,y,de,"∗","*",!0);f(g,y,de,"+","+");f(g,y,de,"−","-",!0);f(g,y,de,"⋅","\\cdot",!0);f(g,y,de,"∘","\\circ",!0);f(g,y,de,"÷","\\div",!0);f(g,y,de,"±","\\pm",!0);f(g,y,de,"×","\\times",!0);f(g,y,de,"∩","\\cap",!0);f(g,y,de,"∪","\\cup",!0);f(g,y,de,"∖","\\setminus",!0);f(g,y,de,"∧","\\land");f(g,y,de,"∨","\\lor");f(g,y,de,"∧","\\wedge",!0);f(g,y,de,"∨","\\vee",!0);f(g,y,F,"√","\\surd");f(g,y,an,"⟨","\\langle",!0);f(g,y,an,"∣","\\lvert");f(g,y,an,"∥","\\lVert");f(g,y,Ut,"?","?");f(g,y,Ut,"!","!");f(g,y,Ut,"⟩","\\rangle",!0);f(g,y,Ut,"∣","\\rvert");f(g,y,Ut,"∥","\\rVert");f(g,y,M,"=","=");f(g,y,M,":",":");f(g,y,M,"≈","\\approx",!0);f(g,y,M,"≅","\\cong",!0);f(g,y,M,"≥","\\ge");f(g,y,M,"≥","\\geq",!0);f(g,y,M,"←","\\gets");f(g,y,M,">","\\gt",!0);f(g,y,M,"∈","\\in",!0);f(g,y,M,"","\\@not");f(g,y,M,"⊂","\\subset",!0);f(g,y,M,"⊃","\\supset",!0);f(g,y,M,"⊆","\\subseteq",!0);f(g,y,M,"⊇","\\supseteq",!0);f(g,N,M,"⊈","\\nsubseteq",!0);f(g,N,M,"⊉","\\nsupseteq",!0);f(g,y,M,"⊨","\\models");f(g,y,M,"←","\\leftarrow",!0);f(g,y,M,"≤","\\le");f(g,y,M,"≤","\\leq",!0);f(g,y,M,"<","\\lt",!0);f(g,y,M,"→","\\rightarrow",!0);f(g,y,M,"→","\\to");f(g,N,M,"≱","\\ngeq",!0);f(g,N,M,"≰","\\nleq",!0);f(g,y,Jn," ","\\ ");f(g,y,Jn," ","\\space");f(g,y,Jn," ","\\nobreakspace");f(Q,y,Jn," ","\\ ");f(Q,y,Jn," "," ");f(Q,y,Jn," ","\\space");f(Q,y,Jn," ","\\nobreakspace");f(g,y,Jn,null,"\\nobreak");f(g,y,Jn,null,"\\allowbreak");f(g,y,Ws,",",",");f(g,y,Ws,";",";");f(g,N,de,"⊼","\\barwedge",!0);f(g,N,de,"⊻","\\veebar",!0);f(g,y,de,"⊙","\\odot",!0);f(g,y,de,"⊕","\\oplus",!0);f(g,y,de,"⊗","\\otimes",!0);f(g,y,F,"∂","\\partial",!0);f(g,y,de,"⊘","\\oslash",!0);f(g,N,de,"⊚","\\circledcirc",!0);f(g,N,de,"⊡","\\boxdot",!0);f(g,y,de,"△","\\bigtriangleup");f(g,y,de,"▽","\\bigtriangledown");f(g,y,de,"†","\\dagger");f(g,y,de,"⋄","\\diamond");f(g,y,de,"⋆","\\star");f(g,y,de,"◃","\\triangleleft");f(g,y,de,"▹","\\triangleright");f(g,y,an,"{","\\{");f(Q,y,F,"{","\\{");f(Q,y,F,"{","\\textbraceleft");f(g,y,Ut,"}","\\}");f(Q,y,F,"}","\\}");f(Q,y,F,"}","\\textbraceright");f(g,y,an,"{","\\lbrace");f(g,y,Ut,"}","\\rbrace");f(g,y,an,"[","\\lbrack",!0);f(Q,y,F,"[","\\lbrack",!0);f(g,y,Ut,"]","\\rbrack",!0);f(Q,y,F,"]","\\rbrack",!0);f(g,y,an,"(","\\lparen",!0);f(g,y,Ut,")","\\rparen",!0);f(Q,y,F,"<","\\textless",!0);f(Q,y,F,">","\\textgreater",!0);f(g,y,an,"⌊","\\lfloor",!0);f(g,y,Ut,"⌋","\\rfloor",!0);f(g,y,an,"⌈","\\lceil",!0);f(g,y,Ut,"⌉","\\rceil",!0);f(g,y,F,"\\","\\backslash");f(g,y,F,"∣","|");f(g,y,F,"∣","\\vert");f(Q,y,F,"|","\\textbar",!0);f(g,y,F,"∥","\\|");f(g,y,F,"∥","\\Vert");f(Q,y,F,"∥","\\textbardbl");f(Q,y,F,"~","\\textasciitilde");f(Q,y,F,"\\","\\textbackslash");f(Q,y,F,"^","\\textasciicircum");f(g,y,M,"↑","\\uparrow",!0);f(g,y,M,"⇑","\\Uparrow",!0);f(g,y,M,"↓","\\downarrow",!0);f(g,y,M,"⇓","\\Downarrow",!0);f(g,y,M,"↕","\\updownarrow",!0);f(g,y,M,"⇕","\\Updownarrow",!0);f(g,y,Et,"∐","\\coprod");f(g,y,Et,"⋁","\\bigvee");f(g,y,Et,"⋀","\\bigwedge");f(g,y,Et,"⨄","\\biguplus");f(g,y,Et,"⋂","\\bigcap");f(g,y,Et,"⋃","\\bigcup");f(g,y,Et,"∫","\\int");f(g,y,Et,"∫","\\intop");f(g,y,Et,"∬","\\iint");f(g,y,Et,"∭","\\iiint");f(g,y,Et,"∏","\\prod");f(g,y,Et,"∑","\\sum");f(g,y,Et,"⨂","\\bigotimes");f(g,y,Et,"⨁","\\bigoplus");f(g,y,Et,"⨀","\\bigodot");f(g,y,Et,"∮","\\oint");f(g,y,Et,"∯","\\oiint");f(g,y,Et,"∰","\\oiiint");f(g,y,Et,"⨆","\\bigsqcup");f(g,y,Et,"∫","\\smallint");f(Q,y,bi,"…","\\textellipsis");f(g,y,bi,"…","\\mathellipsis");f(Q,y,bi,"…","\\ldots",!0);f(g,y,bi,"…","\\ldots",!0);f(g,y,bi,"⋯","\\@cdots",!0);f(g,y,bi,"⋱","\\ddots",!0);f(g,y,F,"⋮","\\varvdots");f(Q,y,F,"⋮","\\varvdots");f(g,y,it,"ˊ","\\acute");f(g,y,it,"ˋ","\\grave");f(g,y,it,"¨","\\ddot");f(g,y,it,"~","\\tilde");f(g,y,it,"ˉ","\\bar");f(g,y,it,"˘","\\breve");f(g,y,it,"ˇ","\\check");f(g,y,it,"^","\\hat");f(g,y,it,"⃗","\\vec");f(g,y,it,"˙","\\dot");f(g,y,it,"˚","\\mathring");f(g,y,ge,"","\\@imath");f(g,y,ge,"","\\@jmath");f(g,y,F,"ı","ı");f(g,y,F,"ȷ","ȷ");f(Q,y,F,"ı","\\i",!0);f(Q,y,F,"ȷ","\\j",!0);f(Q,y,F,"ß","\\ss",!0);f(Q,y,F,"æ","\\ae",!0);f(Q,y,F,"œ","\\oe",!0);f(Q,y,F,"ø","\\o",!0);f(Q,y,F,"Æ","\\AE",!0);f(Q,y,F,"Œ","\\OE",!0);f(Q,y,F,"Ø","\\O",!0);f(Q,y,it,"ˊ","\\'");f(Q,y,it,"ˋ","\\`");f(Q,y,it,"ˆ","\\^");f(Q,y,it,"˜","\\~");f(Q,y,it,"ˉ","\\=");f(Q,y,it,"˘","\\u");f(Q,y,it,"˙","\\.");f(Q,y,it,"¸","\\c");f(Q,y,it,"˚","\\r");f(Q,y,it,"ˇ","\\v");f(Q,y,it,"¨",'\\"');f(Q,y,it,"˝","\\H");f(Q,y,it,"◯","\\textcircled");var e2={"--":!0,"---":!0,"``":!0,"''":!0};f(Q,y,F,"–","--",!0);f(Q,y,F,"–","\\textendash");f(Q,y,F,"—","---",!0);f(Q,y,F,"—","\\textemdash");f(Q,y,F,"‘","`",!0);f(Q,y,F,"‘","\\textquoteleft");f(Q,y,F,"’","'",!0);f(Q,y,F,"’","\\textquoteright");f(Q,y,F,"“","``",!0);f(Q,y,F,"“","\\textquotedblleft");f(Q,y,F,"”","''",!0);f(Q,y,F,"”","\\textquotedblright");f(g,y,F,"°","\\degree",!0);f(Q,y,F,"°","\\degree");f(Q,y,F,"°","\\textdegree",!0);f(g,y,F,"£","\\pounds");f(g,y,F,"£","\\mathsterling",!0);f(Q,y,F,"£","\\pounds");f(Q,y,F,"£","\\textsterling",!0);f(g,N,F,"✠","\\maltese");f(Q,N,F,"✠","\\maltese");var Ih='0123456789/@."';for(var Vo=0;Vo0)return bn(a,l,i,n,s.concat(c));if(u){var d,m;if(u==="boldsymbol"){var p=ZC(a,i,n,s,r);d=p.fontName,m=[p.fontClass]}else o?(d=r2[u].fontName,m=[u]):(d=Ya(u,n.fontWeight,n.fontShape),m=[u,n.fontWeight,n.fontShape]);if(Ys(a,d,i).metrics)return bn(a,d,i,n,s.concat(m));if(e2.hasOwnProperty(a)&&d.slice(0,10)==="Typewriter"){for(var b=[],E=0;E{if(mr(e.classes)!==mr(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},tw=e=>{for(var t=0;tn&&(n=s.height),s.depth>r&&(r=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=i},Yt=function(t,n,r,i){var a=new Aa(t,n,r,i);return m0(a),a},t2=(e,t,n,r)=>new Aa(e,t,n,r),nw=function(t,n,r){var i=Yt([t],[],n);return i.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),i.style.borderBottomWidth=se(i.height),i.maxFontSize=1,i},rw=function(t,n,r,i){var a=new f0(t,n,r,i);return m0(a),a},n2=function(t){var n=new Sa(t);return m0(n),n},iw=function(t,n){return t instanceof Sa?Yt([],[t],n):t},aw=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],i=-n[0].shift-n[0].elem.depth,a=i,s=1;s{var n=Yt(["mspace"],[],t),r=st(e,t);return n.style.marginRight=se(r),n},Ya=function(t,n,r){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return n==="textbf"&&r==="textit"?a="BoldItalic":n==="textbf"?a="Bold":n==="textit"?a="Italic":a="Regular",i+"-"+a},r2={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},i2={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},uw=function(t,n){var[r,i,a]=i2[t],s=new pr(r),o=new Kn([s],{width:se(i),height:se(a),style:"width:"+se(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),u=t2(["overlay"],[o],n);return u.height=a,u.style.height=se(a),u.style.width=se(i),u},z={fontMap:r2,makeSymbol:bn,mathsym:QC,makeSpan:Yt,makeSvgSpan:t2,makeLineSpan:nw,makeAnchor:rw,makeFragment:n2,wrapFragment:iw,makeVList:sw,makeOrd:JC,makeGlue:ow,staticSvg:uw,svgData:i2,tryCombineChars:tw},at={number:3,unit:"mu"},Ar={number:4,unit:"mu"},zn={number:5,unit:"mu"},lw={mord:{mop:at,mbin:Ar,mrel:zn,minner:at},mop:{mord:at,mop:at,mrel:zn,minner:at},mbin:{mord:Ar,mop:Ar,mopen:Ar,minner:Ar},mrel:{mord:zn,mop:zn,mopen:zn,minner:zn},mopen:{},mclose:{mop:at,mbin:Ar,mrel:zn,minner:at},mpunct:{mord:at,mop:at,mrel:zn,mopen:at,mclose:at,mpunct:at,minner:at},minner:{mord:at,mop:at,mbin:Ar,mrel:zn,mopen:at,mpunct:at,minner:at}},cw={mord:{mop:at},mop:{mord:at,mop:at},mbin:{},mrel:{},mopen:{},mclose:{mop:at},mpunct:{},minner:{mop:at}},a2={},vs={},Ss={};function ce(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},u=0;u{var C=E.classes[0],T=b.classes[0];C==="mbin"&&pe.contains(hw,T)?E.classes[0]="mord":T==="mbin"&&pe.contains(dw,C)&&(b.classes[0]="mord")},{node:d},m,p),_h(a,(b,E)=>{var C=Yu(E),T=Yu(b),S=C&&T?b.hasClass("mtight")?cw[C][T]:lw[C][T]:null;if(S)return z.makeGlue(S,l)},{node:d},m,p),a},_h=function e(t,n,r,i,a){i&&t.push(i);for(var s=0;sm=>{t.splice(d+1,0,m),s++})(s)}i&&t.pop()},s2=function(t){return t instanceof Sa||t instanceof f0||t instanceof Aa&&t.hasClass("enclosing")?t:null},pw=function e(t,n){var r=s2(t);if(r){var i=r.children;if(i.length){if(n==="right")return e(i[i.length-1],"right");if(n==="left")return e(i[0],"left")}}return t},Yu=function(t,n){return t?(n&&(t=pw(t,n)),mw[t.classes[0]]||null):null},da=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return Xn(n.concat(r))},Fe=function(t,n,r){if(!t)return Xn();if(vs[t.type]){var i=vs[t.type](t,n);if(r&&n.size!==r.size){i=Xn(n.sizingClasses(r),[i],n);var a=n.sizeMultiplier/r.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new te("Got group of unknown type: '"+t.type+"'")};function Ga(e,t){var n=Xn(["base"],e,t),r=Xn(["strut"]);return r.style.height=se(n.height+n.depth),n.depth&&(r.style.verticalAlign=se(-n.depth)),n.children.unshift(r),n}function Gu(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=xt(e,t,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var a=[],s=[],o=0;o0&&(a.push(Ga(s,t)),s=[]),a.push(r[o]));s.length>0&&a.push(Ga(s,t));var l;n?(l=Ga(xt(n,t,!0)),l.classes=["tag"],a.push(l)):i&&a.push(i);var c=Xn(["katex-html"],a);if(c.setAttribute("aria-hidden","true"),l){var d=l.children[0];d.style.height=se(c.height+c.depth),c.depth&&(d.style.verticalAlign=se(-c.depth))}return c}function o2(e){return new Sa(e)}class tn{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=mr(this.classes));for(var r=0;r0&&(t+=' class ="'+pe.escape(mr(this.classes))+'"'),t+=">";for(var r=0;r",t}toText(){return this.children.map(t=>t.toText()).join("")}}class In{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return pe.escape(this.toText())}toText(){return this.text}}class gw{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",se(this.width)),t}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var ee={MathNode:tn,TextNode:In,SpaceNode:gw,newDocumentFragment:o2},mn=function(t,n,r){return et[n][t]&&et[n][t].replace&&t.charCodeAt(0)!==55349&&!(e2.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=et[n][t].replace),new ee.TextNode(t)},p0=function(t){return t.length===1?t[0]:new ee.MathNode("mrow",t)},g0=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var i=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathsfit")return"sans-serif-italic";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var a=t.text;if(pe.contains(["\\imath","\\jmath"],a))return null;et[i][a]&&et[i][a].replace&&(a=et[i][a].replace);var s=z.fontMap[r].fontName;return h0(a,s,i)?z.fontMap[r].variant:null};function Wo(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof In&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var n=e.children[0];return n instanceof In&&n.text===","}else return!1}var Xt=function(t,n,r){if(t.length===1){var i=Ke(t[0],n);return r&&i instanceof tn&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o=1&&(s.type==="mn"||Wo(s))){var l=u.children[0];l instanceof tn&&l.type==="mn"&&(l.children=[...s.children,...l.children],a.pop())}else if(s.type==="mi"&&s.children.length===1){var c=s.children[0];if(c instanceof In&&c.text==="̸"&&(u.type==="mo"||u.type==="mi"||u.type==="mn")){var d=u.children[0];d instanceof In&&d.text.length>0&&(d.text=d.text.slice(0,1)+"̸"+d.text.slice(1),a.pop())}}}a.push(u),s=u}return a},gr=function(t,n,r){return p0(Xt(t,n,r))},Ke=function(t,n){if(!t)return new ee.MathNode("mrow");if(Ss[t.type]){var r=Ss[t.type](t,n);return r}else throw new te("Got group of unknown type: '"+t.type+"'")};function Lh(e,t,n,r,i){var a=Xt(e,n),s;a.length===1&&a[0]instanceof tn&&pe.contains(["mrow","mtable"],a[0].type)?s=a[0]:s=new ee.MathNode("mrow",a);var o=new ee.MathNode("annotation",[new ee.TextNode(t)]);o.setAttribute("encoding","application/x-tex");var u=new ee.MathNode("semantics",[s,o]),l=new ee.MathNode("math",[u]);l.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&l.setAttribute("display","block");var c=i?"katex":"katex-mathml";return z.makeSpan([c],[l])}var u2=function(t){return new Un({style:t.displayMode?be.DISPLAY:be.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},l2=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=z.makeSpan(r,[t])}return t},bw=function(t,n,r){var i=u2(r),a;if(r.output==="mathml")return Lh(t,n,i,r.displayMode,!0);if(r.output==="html"){var s=Gu(t,i);a=z.makeSpan(["katex"],[s])}else{var o=Lh(t,n,i,r.displayMode,!1),u=Gu(t,i);a=z.makeSpan(["katex"],[o,u])}return l2(a,r)},yw=function(t,n,r){var i=u2(r),a=Gu(t,i),s=z.makeSpan(["katex"],[a]);return l2(s,r)},Tw={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},Ew=function(t){var n=new ee.MathNode("mo",[new ee.TextNode(Tw[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},xw={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},vw=function(t){return t.type==="ordgroup"?t.body.length:1},Sw=function(t,n){function r(){var o=4e5,u=t.label.slice(1);if(pe.contains(["widehat","widecheck","widetilde","utilde"],u)){var l=t,c=vw(l.base),d,m,p;if(c>5)u==="widehat"||u==="widecheck"?(d=420,o=2364,p=.42,m=u+"4"):(d=312,o=2340,p=.34,m="tilde4");else{var b=[1,1,2,2,3,3][c];u==="widehat"||u==="widecheck"?(o=[0,1062,2364,2364,2364][b],d=[0,239,300,360,420][b],p=[0,.24,.3,.3,.36,.42][b],m=u+b):(o=[0,600,1033,2339,2340][b],d=[0,260,286,306,312][b],p=[0,.26,.286,.3,.306,.34][b],m="tilde"+b)}var E=new pr(m),C=new Kn([E],{width:"100%",height:se(p),viewBox:"0 0 "+o+" "+d,preserveAspectRatio:"none"});return{span:z.makeSvgSpan([],[C],n),minWidth:0,height:p}}else{var T=[],S=xw[u],[v,L,P]=S,k=P/1e3,V=v.length,U,q;if(V===1){var B=S[3];U=["hide-tail"],q=[B]}else if(V===2)U=["halfarrow-left","halfarrow-right"],q=["xMinYMin","xMaxYMin"];else if(V===3)U=["brace-left","brace-center","brace-right"],q=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support - `+V+" children.");for(var K=0;K0&&(i.style.minWidth=se(a)),i},Aw=function(t,n,r,i,a){var s,o=t.height+t.depth+r+i;if(/fbox|color|angl/.test(n)){if(s=z.makeSpan(["stretchy",n],[],a),n==="fbox"){var u=a.color&&a.getColor();u&&(s.style.borderColor=u)}}else{var l=[];/^[bx]cancel$/.test(n)&&l.push(new $u({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&l.push(new $u({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new Kn(l,{width:"100%",height:se(o)});s=z.makeSvgSpan([],[c],a)}return s.height=o,s.style.height=se(o),s},Qn={encloseSpan:Aw,mathMLnode:Ew,svgSpan:Sw};function we(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function b0(e){var t=Gs(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Gs(e){return e&&(e.type==="atom"||KC.hasOwnProperty(e.type))?e:null}var y0=(e,t)=>{var n,r,i;e&&e.type==="supsub"?(r=we(e.base,"accent"),n=r.base,e.base=n,i=YC(Fe(e,t)),e.base=r):(r=we(e,"accent"),n=r.base);var a=Fe(n,t.havingCrampedStyle()),s=r.isShifty&&pe.isCharacterBox(n),o=0;if(s){var u=pe.getBaseElem(n),l=Fe(u,t.havingCrampedStyle());o=kh(l).skew}var c=r.label==="\\c",d=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),m;if(r.isStretchy)m=Qn.svgSpan(r,t),m=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:m,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+se(2*o)+")",marginLeft:se(2*o)}:void 0}]},t);else{var p,b;r.label==="\\vec"?(p=z.staticSvg("vec",t),b=z.svgData.vec[1]):(p=z.makeOrd({mode:r.mode,text:r.label},t,"textord"),p=kh(p),p.italic=0,b=p.width,c&&(d+=p.depth)),m=z.makeSpan(["accent-body"],[p]);var E=r.label==="\\textcircled";E&&(m.classes.push("accent-full"),d=a.height);var C=o;E||(C-=b/2),m.style.left=se(C),r.label==="\\textcircled"&&(m.style.top=".2em"),m=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-d},{type:"elem",elem:m}]},t)}var T=z.makeSpan(["mord","accent"],[m],t);return i?(i.children[0]=T,i.height=Math.max(T.height,i.height),i.classes[0]="mord",i):T},c2=(e,t)=>{var n=e.isStretchy?Qn.mathMLnode(e.label):new ee.MathNode("mo",[mn(e.label,e.mode)]),r=new ee.MathNode("mover",[Ke(e.base,t),n]);return r.setAttribute("accent","true"),r},Cw=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));ce({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=As(t[0]),r=!Cw.test(e.funcName),i=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:y0,mathmlBuilder:c2});ce({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:y0,mathmlBuilder:c2});ce({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=Fe(e.base,t),r=Qn.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,a=z.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return z.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var n=Qn.mathMLnode(e.label),r=new ee.MathNode("munder",[Ke(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var Ka=e=>{var t=new ee.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ce({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=z.wrapFragment(Fe(e.body,r,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;e.below&&(r=t.havingStyle(n.sub()),s=z.wrapFragment(Fe(e.below,r,t),t),s.classes.push(a+"-arrow-pad"));var o=Qn.svgSpan(e,t),u=-t.fontMetrics().axisHeight+.5*o.height,l=-t.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(l-=i.depth);var c;if(s){var d=-t.fontMetrics().axisHeight+s.height+.5*o.height+.111;c=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:o,shift:u},{type:"elem",elem:s,shift:d}]},t)}else c=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:o,shift:u}]},t);return c.children[0].children[0].children[1].classes.push("svg-align"),z.makeSpan(["mrel","x-arrow"],[c],t)},mathmlBuilder(e,t){var n=Qn.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var i=Ka(Ke(e.body,t));if(e.below){var a=Ka(Ke(e.below,t));r=new ee.MathNode("munderover",[n,a,i])}else r=new ee.MathNode("mover",[n,i])}else if(e.below){var s=Ka(Ke(e.below,t));r=new ee.MathNode("munder",[n,s])}else r=Ka(),r=new ee.MathNode("mover",[n,r]);return r}});var ww=z.makeSpan;function d2(e,t){var n=xt(e.body,t,!0);return ww([e.mclass],n,t)}function h2(e,t){var n,r=Xt(e.body,t);return e.mclass==="minner"?n=new ee.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new ee.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new ee.MathNode("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}ce({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:mt(i),isCharacterBox:pe.isCharacterBox(i)}},htmlBuilder:d2,mathmlBuilder:h2});var Ks=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};ce({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:Ks(t[0]),body:mt(t[1]),isCharacterBox:pe.isCharacterBox(t[1])}}});ce({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],s;r!=="\\stackrel"?s=Ks(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:mt(i)},u={type:"supsub",mode:a.mode,base:o,sup:r==="\\underset"?null:a,sub:r==="\\underset"?a:null};return{type:"mclass",mode:n.mode,mclass:s,body:[u],isCharacterBox:pe.isCharacterBox(u)}},htmlBuilder:d2,mathmlBuilder:h2});ce({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:Ks(t[0]),body:mt(t[0])}},htmlBuilder(e,t){var n=xt(e.body,t,!0),r=z.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=Xt(e.body,t),r=new ee.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var kw={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Ph=()=>({type:"styling",body:[],mode:"math",style:"display"}),Oh=e=>e.type==="textord"&&e.text==="@",Iw=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function Nw(e,t,n){var r=kw[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=n.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:r,mode:"math",family:"rel"},s=n.callFunction("\\Big",[a],[]),o=n.callFunction("\\\\cdright",[t[1]],[]),u={type:"ordgroup",mode:"math",body:[i,s,o]};return n.callFunction("\\\\cdparent",[u],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var l={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[l],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Mw(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new te("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],i=[r],a=0;a-1))if("<>AV".indexOf(l)>-1)for(var d=0;d<2;d++){for(var m=!0,p=u+1;pAV=|." after @',s[u]);var b=Nw(l,c,e),E={type:"styling",body:[b],mode:"math",style:"display"};r.push(E),o=Ph()}a%2===0?r.push(o):r.shift(),r=[],i.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var C=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:C,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}ce({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=z.wrapFragment(Fe(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=se(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new ee.MathNode("mrow",[Ke(e.label,t)]);return n=new ee.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new ee.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});ce({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=z.wrapFragment(Fe(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new ee.MathNode("mrow",[Ke(e.fragment,t)])}});ce({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=we(t[0],"ordgroup"),i=r.body,a="",s=0;s=1114111)throw new te("\\@char with invalid code point "+a);return u<=65535?l=String.fromCharCode(u):(u-=65536,l=String.fromCharCode((u>>10)+55296,(u&1023)+56320)),{type:"textord",mode:n.mode,text:l}}});var f2=(e,t)=>{var n=xt(e.body,t.withColor(e.color),!1);return z.makeFragment(n)},m2=(e,t)=>{var n=Xt(e.body,t.withColor(e.color)),r=new ee.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};ce({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=we(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:mt(i)}},htmlBuilder:f2,mathmlBuilder:m2});ce({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=we(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:f2,mathmlBuilder:m2});ce({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:a,size:i&&we(i,"size").value}},htmlBuilder(e,t){var n=z.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=se(st(e.size,t)))),n},mathmlBuilder(e,t){var n=new ee.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",se(st(e.size,t)))),n}});var Ku={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},p2=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new te("Expected a control sequence",e);return t},Rw=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},g2=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i==null&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};ce({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(Ku[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=Ku[r.text]),we(t.parseFunction(),"internal");throw new te("Invalid token after macro prefix",r)}});ce({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new te("Expected a control sequence",r);for(var a=0,s,o=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),o[a].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new te('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==a+1)throw new te('Argument number "'+r.text+'" out of order');a++,o.push([])}else{if(r.text==="EOF")throw new te("Expected a macro definition");o[a].push(r.text)}var{tokens:u}=t.gullet.consumeArg();return s&&u.unshift(s),(n==="\\edef"||n==="\\xdef")&&(u=t.gullet.expandTokens(u),u.reverse()),t.gullet.macros.set(i,{tokens:u,numArgs:a,delimiters:o},n===Ku[n]),{type:"internal",mode:t.mode}}});ce({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=p2(t.gullet.popToken());t.gullet.consumeSpaces();var i=Rw(t);return g2(t,r,i,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});ce({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=p2(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return g2(t,r,a,n==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var Oi=function(t,n,r){var i=et.math[t]&&et.math[t].replace,a=h0(i||t,n,r);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return a},T0=function(t,n,r,i){var a=r.havingBaseStyle(n),s=z.makeSpan(i.concat(a.sizingClasses(r)),[t],r),o=a.sizeMultiplier/r.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},b2=function(t,n,r){var i=n.havingBaseStyle(r),a=(1-n.sizeMultiplier/i.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=se(a),t.height-=a,t.depth+=a},Dw=function(t,n,r,i,a,s){var o=z.makeSymbol(t,"Main-Regular",a,i),u=T0(o,n,i,s);return r&&b2(u,i,n),u},_w=function(t,n,r,i){return z.makeSymbol(t,"Size"+n+"-Regular",r,i)},y2=function(t,n,r,i,a,s){var o=_w(t,n,a,i),u=T0(z.makeSpan(["delimsizing","size"+n],[o],i),be.TEXT,i,s);return r&&b2(u,i,be.TEXT),u},Yo=function(t,n,r){var i;n==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=z.makeSpan(["delimsizinginner",i],[z.makeSpan([],[z.makeSymbol(t,n,r)])]);return{type:"elem",elem:a}},Go=function(t,n,r){var i=kn["Size4-Regular"][t.charCodeAt(0)]?kn["Size4-Regular"][t.charCodeAt(0)][4]:kn["Size1-Regular"][t.charCodeAt(0)][4],a=new pr("inner",FC(t,Math.round(1e3*n))),s=new Kn([a],{width:se(i),height:se(n),style:"width:"+se(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),o=z.makeSvgSpan([],[s],r);return o.height=n,o.style.height=se(n),o.style.width=se(i),{type:"elem",elem:o}},Xu=.008,Xa={type:"kern",size:-1*Xu},Lw=["|","\\lvert","\\rvert","\\vert"],Pw=["\\|","\\lVert","\\rVert","\\Vert"],T2=function(t,n,r,i,a,s){var o,u,l,c,d="",m=0;o=l=c=t,u=null;var p="Size1-Regular";t==="\\uparrow"?l=c="⏐":t==="\\Uparrow"?l=c="‖":t==="\\downarrow"?o=l="⏐":t==="\\Downarrow"?o=l="‖":t==="\\updownarrow"?(o="\\uparrow",l="⏐",c="\\downarrow"):t==="\\Updownarrow"?(o="\\Uparrow",l="‖",c="\\Downarrow"):pe.contains(Lw,t)?(l="∣",d="vert",m=333):pe.contains(Pw,t)?(l="∥",d="doublevert",m=556):t==="["||t==="\\lbrack"?(o="⎡",l="⎢",c="⎣",p="Size4-Regular",d="lbrack",m=667):t==="]"||t==="\\rbrack"?(o="⎤",l="⎥",c="⎦",p="Size4-Regular",d="rbrack",m=667):t==="\\lfloor"||t==="⌊"?(l=o="⎢",c="⎣",p="Size4-Regular",d="lfloor",m=667):t==="\\lceil"||t==="⌈"?(o="⎡",l=c="⎢",p="Size4-Regular",d="lceil",m=667):t==="\\rfloor"||t==="⌋"?(l=o="⎥",c="⎦",p="Size4-Regular",d="rfloor",m=667):t==="\\rceil"||t==="⌉"?(o="⎤",l=c="⎥",p="Size4-Regular",d="rceil",m=667):t==="("||t==="\\lparen"?(o="⎛",l="⎜",c="⎝",p="Size4-Regular",d="lparen",m=875):t===")"||t==="\\rparen"?(o="⎞",l="⎟",c="⎠",p="Size4-Regular",d="rparen",m=875):t==="\\{"||t==="\\lbrace"?(o="⎧",u="⎨",c="⎩",l="⎪",p="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(o="⎫",u="⎬",c="⎭",l="⎪",p="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(o="⎧",c="⎩",l="⎪",p="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(o="⎫",c="⎭",l="⎪",p="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(o="⎧",c="⎭",l="⎪",p="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(o="⎫",c="⎩",l="⎪",p="Size4-Regular");var b=Oi(o,p,a),E=b.height+b.depth,C=Oi(l,p,a),T=C.height+C.depth,S=Oi(c,p,a),v=S.height+S.depth,L=0,P=1;if(u!==null){var k=Oi(u,p,a);L=k.height+k.depth,P=2}var V=E+v+L,U=Math.max(0,Math.ceil((n-V)/(P*T))),q=V+U*P*T,B=i.fontMetrics().axisHeight;r&&(B*=i.sizeMultiplier);var K=q/2-B,Y=[];if(d.length>0){var X=q-E-v,j=Math.round(q*1e3),W=HC(d,Math.round(X*1e3)),ne=new pr(d,W),le=(m/1e3).toFixed(3)+"em",fe=(j/1e3).toFixed(3)+"em",oe=new Kn([ne],{width:le,height:fe,viewBox:"0 0 "+m+" "+j}),I=z.makeSvgSpan([],[oe],i);I.height=j/1e3,I.style.width=le,I.style.height=fe,Y.push({type:"elem",elem:I})}else{if(Y.push(Yo(c,p,a)),Y.push(Xa),u===null){var De=q-E-v+2*Xu;Y.push(Go(l,De,i))}else{var Ae=(q-E-v-L)/2+2*Xu;Y.push(Go(l,Ae,i)),Y.push(Xa),Y.push(Yo(u,p,a)),Y.push(Xa),Y.push(Go(l,Ae,i))}Y.push(Xa),Y.push(Yo(o,p,a))}var _=i.havingBaseStyle(be.TEXT),_e=z.makeVList({positionType:"bottom",positionData:K,children:Y},_);return T0(z.makeSpan(["delimsizing","mult"],[_e],_),be.TEXT,i,s)},Ko=80,Xo=.08,Qo=function(t,n,r,i,a){var s=BC(t,i,r),o=new pr(t,s),u=new Kn([o],{width:"400em",height:se(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return z.makeSvgSpan(["hide-tail"],[u],a)},Ow=function(t,n){var r=n.havingBaseSizing(),i=S2("\\surd",t*r.sizeMultiplier,v2,r),a=r.sizeMultiplier,s=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),o,u=0,l=0,c=0,d;return i.type==="small"?(c=1e3+1e3*s+Ko,t<1?a=1:t<1.4&&(a=.7),u=(1+s+Xo)/a,l=(1+s)/a,o=Qo("sqrtMain",u,c,s,n),o.style.minWidth="0.853em",d=.833/a):i.type==="large"?(c=(1e3+Ko)*Yi[i.size],l=(Yi[i.size]+s)/a,u=(Yi[i.size]+s+Xo)/a,o=Qo("sqrtSize"+i.size,u,c,s,n),o.style.minWidth="1.02em",d=1/a):(u=t+s+Xo,l=t+s,c=Math.floor(1e3*t+s)+Ko,o=Qo("sqrtTall",u,c,s,n),o.style.minWidth="0.742em",d=1.056),o.height=l,o.style.height=se(u),{span:o,advanceWidth:d,ruleWidth:(n.fontMetrics().sqrtRuleThickness+s)*a}},E2=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Bw=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],x2=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Yi=[0,1.2,1.8,2.4,3],Fw=function(t,n,r,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),pe.contains(E2,t)||pe.contains(x2,t))return y2(t,n,!1,r,i,a);if(pe.contains(Bw,t))return T2(t,Yi[n],!1,r,i,a);throw new te("Illegal delimiter: '"+t+"'")},Hw=[{type:"small",style:be.SCRIPTSCRIPT},{type:"small",style:be.SCRIPT},{type:"small",style:be.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],zw=[{type:"small",style:be.SCRIPTSCRIPT},{type:"small",style:be.SCRIPT},{type:"small",style:be.TEXT},{type:"stack"}],v2=[{type:"small",style:be.SCRIPTSCRIPT},{type:"small",style:be.SCRIPT},{type:"small",style:be.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Uw=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},S2=function(t,n,r,i){for(var a=Math.min(2,3-i.style.size),s=a;sn)return r[s]}return r[r.length-1]},A2=function(t,n,r,i,a,s){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var o;pe.contains(x2,t)?o=Hw:pe.contains(E2,t)?o=v2:o=zw;var u=S2(t,n,o,i);return u.type==="small"?Dw(t,u.style,r,i,a,s):u.type==="large"?y2(t,u.size,r,i,a,s):T2(t,n,r,i,a,s)},Vw=function(t,n,r,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,u=901,l=5/i.fontMetrics().ptPerEm,c=Math.max(n-o,r+o),d=Math.max(c/500*u,2*c-l);return A2(t,d,!0,i,a,s)},$n={sqrtImage:Ow,sizedDelim:Fw,sizeToMaxHeight:Yi,customSizedDelim:A2,leftRightDelim:Vw},Bh={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},jw=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Xs(e,t){var n=Gs(e);if(n&&pe.contains(jw,n.text))return n;throw n?new te("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new te("Invalid delimiter type '"+e.type+"'",e)}ce({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=Xs(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Bh[e.funcName].size,mclass:Bh[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?z.makeSpan([e.mclass]):$n.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(mn(e.delim,e.mode));var n=new ee.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=se($n.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function Fh(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ce({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new te("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Xs(t[0],e).text,color:n}}});ce({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Xs(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=we(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{Fh(e);for(var n=xt(e.body,t,!0,["mopen","mclose"]),r=0,i=0,a=!1,s=0;s{Fh(e);var n=Xt(e.body,t);if(e.left!=="."){var r=new ee.MathNode("mo",[mn(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var i=new ee.MathNode("mo",[mn(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return p0(n)}});ce({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Xs(t[0],e);if(!e.parser.leftrightDepth)throw new te("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=da(t,[]);else{n=$n.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?mn("|","text"):mn(e.delim,e.mode),r=new ee.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var E0=(e,t)=>{var n=z.wrapFragment(Fe(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,s=0,o=pe.isCharacterBox(e.body);if(r==="sout")a=z.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,s=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var u=st({number:.6,unit:"pt"},t),l=st({number:.35,unit:"ex"},t),c=t.havingBaseSizing();i=i/c.sizeMultiplier;var d=n.height+n.depth+u+l;n.style.paddingLeft=se(d/2+u);var m=Math.floor(1e3*d*i),p=PC(m),b=new Kn([new pr("phase",p)],{width:"400em",height:se(m/1e3),viewBox:"0 0 400000 "+m,preserveAspectRatio:"xMinYMin slice"});a=z.makeSvgSpan(["hide-tail"],[b],t),a.style.height=se(d),s=n.depth+u+l}else{/cancel/.test(r)?o||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var E=0,C=0,T=0;/box/.test(r)?(T=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),E=t.fontMetrics().fboxsep+(r==="colorbox"?0:T),C=E):r==="angl"?(T=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),E=4*T,C=Math.max(0,.25-n.depth)):(E=o?.2:0,C=E),a=Qn.encloseSpan(n,r,E,C,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle="solid",a.style.borderWidth=se(T)):r==="angl"&&T!==.049&&(a.style.borderTopWidth=se(T),a.style.borderRightWidth=se(T)),s=n.depth+C,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var S;if(e.backgroundColor)S=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:n,shift:0}]},t);else{var v=/cancel|phase/.test(r)?["svg-align"]:[];S=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:v}]},t)}return/cancel/.test(r)&&(S.height=n.height,S.depth=n.depth),/cancel/.test(r)&&!o?z.makeSpan(["mord","cancel-lap"],[S],t):z.makeSpan(["mord"],[S],t)},x0=(e,t)=>{var n=0,r=new ee.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Ke(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};ce({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=we(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:E0,mathmlBuilder:x0});ce({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=we(t[0],"color-token").color,s=we(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:E0,mathmlBuilder:x0});ce({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});ce({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:E0,mathmlBuilder:x0});ce({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var C2={};function Bn(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},u=0;u{var t=e.parser.settings;if(!t.displayMode)throw new te("{"+e.envName+"} can be used only in display mode.")};function v0(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function Tr(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:u,singleRow:l,emptySingleRow:c,maxNumCols:d,leqno:m}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var p=e.gullet.expandMacroAsText("\\arraystretch");if(p==null)s=1;else if(s=parseFloat(p),!s||s<0)throw new te("Invalid \\arraystretch: "+p)}e.gullet.beginGroup();var b=[],E=[b],C=[],T=[],S=u!=null?[]:void 0;function v(){u&&e.gullet.macros.set("\\@eqnsw","1",!0)}function L(){S&&(e.gullet.macros.get("\\df@tag")?(S.push(e.subparse([new hn("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):S.push(!!u&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(v(),T.push(Hh(e));;){var P=e.parseExpression(!1,l?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),P={type:"ordgroup",mode:e.mode,body:P},n&&(P={type:"styling",mode:e.mode,style:n,body:[P]}),b.push(P);var k=e.fetch().text;if(k==="&"){if(d&&b.length===d){if(l||o)throw new te("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(k==="\\end"){L(),b.length===1&&P.type==="styling"&&P.body[0].body.length===0&&(E.length>1||!c)&&E.pop(),T.length0&&(v+=.25),l.push({pos:v,isDashed:wt[Vt]})}for(L(s[0]),r=0;r0&&(K+=S,Vwt))for(r=0;r=o)){var qe=void 0;(i>0||t.hskipBeforeAndAfter)&&(qe=pe.deflt(Ae.pregap,m),qe!==0&&(W=z.makeSpan(["arraycolsep"],[]),W.style.width=se(qe),j.push(W)));var $e=[];for(r=0;r0){for(var ze=z.makeLineSpan("hline",n,c),dt=z.makeLineSpan("hdashline",n,c),Oe=[{type:"elem",elem:u,shift:0}];l.length>0;){var Qe=l.pop(),Pt=Qe.pos-Y;Qe.isDashed?Oe.push({type:"elem",elem:dt,shift:Pt}):Oe.push({type:"elem",elem:ze,shift:Pt})}u=z.makeVList({positionType:"individualShift",children:Oe},n)}if(le.length===0)return z.makeSpan(["mord"],[u],n);var Ot=z.makeVList({positionType:"individualShift",children:le},n);return Ot=z.makeSpan(["tag"],[Ot],n),z.makeFragment([u,Ot])},qw={c:"center ",l:"left ",r:"right "},Hn=function(t,n){for(var r=[],i=new ee.MathNode("mtd",[],["mtr-glue"]),a=new ee.MathNode("mtd",[],["mml-eqn-num"]),s=0;s0){var b=t.cols,E="",C=!1,T=0,S=b.length;b[0].type==="separator"&&(m+="top ",T=1),b[b.length-1].type==="separator"&&(m+="bottom ",S-=1);for(var v=T;v0?"left ":"",m+=U[U.length-1].length>0?"right ":"";for(var q=1;q-1?"alignat":"align",a=t.envName==="split",s=Tr(t.parser,{cols:r,addJot:!0,autoTag:a?void 0:v0(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),o,u=0,l={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var c="",d=0;d0&&p&&(C=1),r[b]={type:"align",align:E,pregap:C,postgap:0}}return s.colSeparationType=p?"align":"alignat",s};Bn({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=Gs(t[0]),r=n?[t[0]]:we(t[0],"ordgroup").body,i=r.map(function(s){var o=b0(s),u=o.text;if("lcr".indexOf(u)!==-1)return{type:"align",align:u};if(u==="|")return{type:"separator",separator:"|"};if(u===":")return{type:"separator",separator:":"};throw new te("Unknown column alignment: "+u,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Tr(e.parser,a,S0(e.envName))},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,"lcr".indexOf(n)===-1)throw new te("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var a=Tr(e.parser,r,S0(e.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=Tr(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=Gs(t[0]),r=n?[t[0]]:we(t[0],"ordgroup").body,i=r.map(function(s){var o=b0(s),u=o.text;if("lc".indexOf(u)!==-1)return{type:"align",align:u};throw new te("Unknown column alignment: "+u,s)});if(i.length>1)throw new te("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=Tr(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new te("{subarray} can contain only one column");return a},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=Tr(e.parser,t,S0(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:k2,htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){pe.contains(["gather","gather*"],e.envName)&&Qs(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:v0(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Tr(e.parser,t,"display")},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:k2,htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Qs(e);var t={autoTag:v0(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Tr(e.parser,t,"display")},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["CD"],props:{numArgs:0},handler(e){return Qs(e),Mw(e.parser)},htmlBuilder:Fn,mathmlBuilder:Hn});x("\\nonumber","\\gdef\\@eqnsw{0}");x("\\notag","\\nonumber");ce({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new te(e.funcName+" valid only within array environment")}});var zh=C2;ce({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!=="ordgroup")throw new te("Invalid environment name",i);for(var a="",s=0;s{var n=e.font,r=t.withFont(n);return Fe(e.body,r)},N2=(e,t)=>{var n=e.font,r=t.withFont(n);return Ke(e.body,r)},Uh={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};ce({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=As(t[0]),a=r;return a in Uh&&(a=Uh[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:I2,mathmlBuilder:N2});ce({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],i=pe.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:Ks(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});ce({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,s=n.parseExpression(!0,i),o="math"+r.slice(1);return{type:"font",mode:a,font:o,body:{type:"ordgroup",mode:n.mode,body:s}}},htmlBuilder:I2,mathmlBuilder:N2});var M2=(e,t)=>{var n=t;return e==="display"?n=n.id>=be.SCRIPT.id?n.text():be.DISPLAY:e==="text"&&n.size===be.DISPLAY.size?n=be.TEXT:e==="script"?n=be.SCRIPT:e==="scriptscript"&&(n=be.SCRIPTSCRIPT),n},A0=(e,t)=>{var n=M2(e.size,t.style),r=n.fracNum(),i=n.fracDen(),a;a=t.havingStyle(r);var s=Fe(e.numer,a,t);if(e.continued){var o=8.5/t.fontMetrics().ptPerEm,u=3.5/t.fontMetrics().ptPerEm;s.height=s.height0?b=3*m:b=7*m,E=t.fontMetrics().denom1):(d>0?(p=t.fontMetrics().num2,b=m):(p=t.fontMetrics().num3,b=3*m),E=t.fontMetrics().denom2);var C;if(c){var S=t.fontMetrics().axisHeight;p-s.depth-(S+.5*d){var n=new ee.MathNode("mfrac",[Ke(e.numer,t),Ke(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=st(e.barSize,t);n.setAttribute("linethickness",se(r))}var i=M2(e.size,t.style);if(i.size!==t.style.size){n=new ee.MathNode("mstyle",[n]);var a=i.size===be.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",a),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var s=[];if(e.leftDelim!=null){var o=new ee.MathNode("mo",[new ee.TextNode(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),s.push(o)}if(s.push(n),e.rightDelim!=null){var u=new ee.MathNode("mo",[new ee.TextNode(e.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),s.push(u)}return p0(s)}return n};ce({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],s,o=null,u=null,l="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",u=")";break;case"\\\\bracefrac":s=!1,o="\\{",u="\\}";break;case"\\\\brackfrac":s=!1,o="[",u="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":l="display";break;case"\\tfrac":case"\\tbinom":l="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:s,leftDelim:o,rightDelim:u,size:l,barSize:null}},htmlBuilder:A0,mathmlBuilder:C0});ce({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});ce({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:r}}});var Vh=["display","text","script","scriptscript"],jh=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};ce({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=As(t[0]),s=a.type==="atom"&&a.family==="open"?jh(a.text):null,o=As(t[1]),u=o.type==="atom"&&o.family==="close"?jh(o.text):null,l=we(t[2],"size"),c,d=null;l.isBlank?c=!0:(d=l.value,c=d.number>0);var m="auto",p=t[3];if(p.type==="ordgroup"){if(p.body.length>0){var b=we(p.body[0],"textord");m=Vh[Number(b.text)]}}else p=we(p,"textord"),m=Vh[Number(p.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:c,barSize:d,leftDelim:s,rightDelim:u,size:m}},htmlBuilder:A0,mathmlBuilder:C0});ce({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:we(t[0],"size").value,token:i}}});ce({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=EC(we(t[1],"infix").size),s=t[2],o=a.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:A0,mathmlBuilder:C0});var R2=(e,t)=>{var n=t.style,r,i;e.type==="supsub"?(r=e.sup?Fe(e.sup,t.havingStyle(n.sup()),t):Fe(e.sub,t.havingStyle(n.sub()),t),i=we(e.base,"horizBrace")):i=we(e,"horizBrace");var a=Fe(i.base,t.havingBaseStyle(be.DISPLAY)),s=Qn.svgSpan(i,t),o;if(i.isOver?(o=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t),o.children[0].children[0].children[1].classes.push("svg-align")):(o=z.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t),o.children[0].children[0].children[0].classes.push("svg-align")),r){var u=z.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t);i.isOver?o=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:r}]},t):o=z.makeVList({positionType:"bottom",positionData:u.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:u}]},t)}return z.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t)},$w=(e,t)=>{var n=Qn.mathMLnode(e.label);return new ee.MathNode(e.isOver?"mover":"munder",[Ke(e.base,t),n])};ce({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:R2,mathmlBuilder:$w});ce({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=we(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:mt(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=xt(e.body,t,!1);return z.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=gr(e.body,t);return n instanceof tn||(n=new tn("mrow",[n])),n.setAttribute("href",e.href),n}});ce({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=we(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:n,funcName:r,token:i}=e,a=we(t[0],"raw").string,s=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,u={};switch(r){case"\\htmlClass":u.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":u.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":u.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var l=a.split(","),c=0;c{var n=xt(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=z.makeSpan(r,n,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>gr(e.body,t)});ce({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:mt(t[0]),mathml:mt(t[1])}},htmlBuilder:(e,t)=>{var n=xt(e.html,t,!1);return z.makeFragment(n)},mathmlBuilder:(e,t)=>gr(e.mathml,t)});var Zo=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new te("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!Xp(r))throw new te("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};ce({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(n[0])for(var u=we(n[0],"raw").string,l=u.split(","),c=0;c{var n=st(e.height,t),r=0;e.totalheight.number>0&&(r=st(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=st(e.width,t));var a={height:se(n+r)};i>0&&(a.width=se(i)),r>0&&(a.verticalAlign=se(-r));var s=new $C(e.src,e.alt,a);return s.height=n,s.depth=r,s},mathmlBuilder:(e,t)=>{var n=new ee.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=st(e.height,t),i=0;if(e.totalheight.number>0&&(i=st(e.totalheight,t)-r,n.setAttribute("valign",se(-i))),n.setAttribute("height",se(r+i)),e.width.number>0){var a=st(e.width,t);n.setAttribute("width",se(a))}return n.setAttribute("src",e.src),n}});ce({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=we(t[0],"size");if(n.settings.strict){var a=r[1]==="m",s=i.value.unit==="mu";a?(s||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):s&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return z.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=st(e.dimension,t);return new ee.SpaceNode(n)}});ce({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=z.makeSpan([],[Fe(e.body,t)]),n=z.makeSpan(["inner"],[n],t)):n=z.makeSpan(["inner"],[Fe(e.body,t)]);var r=z.makeSpan(["fix"],[]),i=z.makeSpan([e.alignment],[n,r],t),a=z.makeSpan(["strut"]);return a.style.height=se(i.height+i.depth),i.depth&&(a.style.verticalAlign=se(-i.depth)),i.children.unshift(a),i=z.makeSpan(["thinbox"],[i],t),z.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var n=new ee.MathNode("mpadded",[Ke(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});ce({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode("math");var a=n==="\\("?"\\)":"$",s=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:s}}});ce({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new te("Mismatched "+e.funcName)}});var qh=(e,t)=>{switch(t.style.size){case be.DISPLAY.size:return e.display;case be.TEXT.size:return e.text;case be.SCRIPT.size:return e.script;case be.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ce({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:mt(t[0]),text:mt(t[1]),script:mt(t[2]),scriptscript:mt(t[3])}},htmlBuilder:(e,t)=>{var n=qh(e,t),r=xt(n,t,!1);return z.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=qh(e,t);return gr(n,t)}});var D2=(e,t,n,r,i,a,s)=>{e=z.makeSpan([],[e]);var o=n&&pe.isCharacterBox(n),u,l;if(t){var c=Fe(t,r.havingStyle(i.sup()),r);l={elem:c,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-c.depth)}}if(n){var d=Fe(n,r.havingStyle(i.sub()),r);u={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var m;if(l&&u){var p=r.fontMetrics().bigOpSpacing5+u.elem.height+u.elem.depth+u.kern+e.depth+s;m=z.makeVList({positionType:"bottom",positionData:p,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:se(-a)},{type:"kern",size:u.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:se(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(u){var b=e.height-s;m=z.makeVList({positionType:"top",positionData:b,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:se(-a)},{type:"kern",size:u.kern},{type:"elem",elem:e}]},r)}else if(l){var E=e.depth+s;m=z.makeVList({positionType:"bottom",positionData:E,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:se(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var C=[m];if(u&&a!==0&&!o){var T=z.makeSpan(["mspace"],[],r);T.style.marginRight=se(a),C.unshift(T)}return z.makeSpan(["mop","op-limits"],C,r)},_2=["\\smallint"],yi=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=we(e.base,"op"),i=!0):a=we(e,"op");var s=t.style,o=!1;s.size===be.DISPLAY.size&&a.symbol&&!pe.contains(_2,a.name)&&(o=!0);var u;if(a.symbol){var l=o?"Size2-Regular":"Size1-Regular",c="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(c=a.name.slice(1),a.name=c==="oiint"?"\\iint":"\\iiint"),u=z.makeSymbol(a.name,l,"math",t,["mop","op-symbol",o?"large-op":"small-op"]),c.length>0){var d=u.italic,m=z.staticSvg(c+"Size"+(o?"2":"1"),t);u=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:0},{type:"elem",elem:m,shift:o?.08:0}]},t),a.name="\\"+c,u.classes.unshift("mop"),u.italic=d}}else if(a.body){var p=xt(a.body,t,!0);p.length===1&&p[0]instanceof fn?(u=p[0],u.classes[0]="mop"):u=z.makeSpan(["mop"],p,t)}else{for(var b=[],E=1;E{var n;if(e.symbol)n=new tn("mo",[mn(e.name,e.mode)]),pe.contains(_2,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new tn("mo",Xt(e.body,t));else{n=new tn("mi",[new In(e.name.slice(1))]);var r=new tn("mo",[mn("⁡","text")]);e.parentIsSupSub?n=new tn("mrow",[n,r]):n=o2([n,r])}return n},Ww={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ce({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=Ww[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:yi,mathmlBuilder:Ca});ce({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:mt(r)}},htmlBuilder:yi,mathmlBuilder:Ca});var Yw={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ce({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:yi,mathmlBuilder:Ca});ce({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:yi,mathmlBuilder:Ca});ce({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=Yw[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:yi,mathmlBuilder:Ca});var L2=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=we(e.base,"operatorname"),i=!0):a=we(e,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(d=>{var m=d.text;return typeof m=="string"?{type:"textord",mode:d.mode,text:m}:d}),u=xt(o,t.withFont("mathrm"),!0),l=0;l{for(var n=Xt(e.body,t.withFont("mathrm")),r=!0,i=0;ic.toText()).join("");n=[new ee.TextNode(o)]}var u=new ee.MathNode("mi",n);u.setAttribute("mathvariant","normal");var l=new ee.MathNode("mo",[mn("⁡","text")]);return e.parentIsSupSub?new ee.MathNode("mrow",[u,l]):ee.newDocumentFragment([u,l])};ce({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"operatorname",mode:n.mode,body:mt(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:L2,mathmlBuilder:Gw});x("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Fr({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?z.makeFragment(xt(e.body,t,!1)):z.makeSpan(["mord"],xt(e.body,t,!0),t)},mathmlBuilder(e,t){return gr(e.body,t,!0)}});ce({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=Fe(e.body,t.havingCrampedStyle()),r=z.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},t);return z.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){var n=new ee.MathNode("mo",[new ee.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new ee.MathNode("mover",[Ke(e.body,t),n]);return r.setAttribute("accent","true"),r}});ce({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:mt(r)}},htmlBuilder:(e,t)=>{var n=xt(e.body,t.withPhantom(),!1);return z.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=Xt(e.body,t);return new ee.MathNode("mphantom",n)}});ce({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=z.makeSpan([],[Fe(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r{var n=Xt(mt(e.body),t),r=new ee.MathNode("mphantom",n),i=new ee.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});ce({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=z.makeSpan(["inner"],[Fe(e.body,t.withPhantom())]),r=z.makeSpan(["fix"],[]);return z.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=Xt(mt(e.body),t),r=new ee.MathNode("mphantom",n),i=new ee.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});ce({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=we(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Fe(e.body,t),r=st(e.dy,t);return z.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new ee.MathNode("mpadded",[Ke(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});ce({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});ce({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,i=n[0],a=we(t[0],"size"),s=we(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&we(i,"size").value,width:a.value,height:s.value}},htmlBuilder(e,t){var n=z.makeSpan(["mord","rule"],[],t),r=st(e.width,t),i=st(e.height,t),a=e.shift?st(e.shift,t):0;return n.style.borderRightWidth=se(r),n.style.borderTopWidth=se(i),n.style.bottom=se(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=st(e.width,t),r=st(e.height,t),i=e.shift?st(e.shift,t):0,a=t.color&&t.getColor()||"black",s=new ee.MathNode("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",se(n)),s.setAttribute("height",se(r));var o=new ee.MathNode("mpadded",[s]);return i>=0?o.setAttribute("height",se(i)):(o.setAttribute("height",se(i)),o.setAttribute("depth",se(-i))),o.setAttribute("voffset",se(i)),o}});function P2(e,t,n){for(var r=xt(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a{var n=t.havingSize(e.size);return P2(e.body,n,t)};ce({type:"sizing",names:$h,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:$h.indexOf(r)+1,body:a}},htmlBuilder:Kw,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=Xt(e.body,n),i=new ee.MathNode("mstyle",r);return i.setAttribute("mathsize",se(n.sizeMultiplier)),i}});ce({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,s=n[0]&&we(n[0],"ordgroup");if(s)for(var o="",u=0;u{var n=z.makeSpan([],[Fe(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r{var n=new ee.MathNode("mpadded",[Ke(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});ce({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=Fe(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=z.wrapFragment(n,t);var r=t.fontMetrics(),i=r.defaultRuleThickness,a=i;t.style.idn.height+n.depth+s&&(s=(s+d-n.height-n.depth)/2);var m=u.height-n.height-s-l;n.style.paddingLeft=se(c);var p=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+m)},{type:"elem",elem:u},{type:"kern",size:l}]},t);if(e.index){var b=t.havingStyle(be.SCRIPTSCRIPT),E=Fe(e.index,b,t),C=.6*(p.height-p.depth),T=z.makeVList({positionType:"shift",positionData:-C,children:[{type:"elem",elem:E}]},t),S=z.makeSpan(["root"],[T]);return z.makeSpan(["mord","sqrt"],[S,p],t)}else return z.makeSpan(["mord","sqrt"],[p],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new ee.MathNode("mroot",[Ke(n,t),Ke(r,t)]):new ee.MathNode("msqrt",[Ke(n,t)])}});var Wh={display:be.DISPLAY,text:be.TEXT,script:be.SCRIPT,scriptscript:be.SCRIPTSCRIPT};ce({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),s=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(e,t){var n=Wh[e.style],r=t.havingStyle(n).withFont("");return P2(e.body,r,t)},mathmlBuilder(e,t){var n=Wh[e.style],r=t.havingStyle(n),i=Xt(e.body,r),a=new ee.MathNode("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var Xw=function(t,n){var r=t.base;if(r)if(r.type==="op"){var i=r.limits&&(n.style.size===be.DISPLAY.size||r.alwaysHandleSupSub);return i?yi:null}else if(r.type==="operatorname"){var a=r.alwaysHandleSupSub&&(n.style.size===be.DISPLAY.size||r.limits);return a?L2:null}else{if(r.type==="accent")return pe.isCharacterBox(r.base)?y0:null;if(r.type==="horizBrace"){var s=!t.sub;return s===r.isOver?R2:null}else return null}else return null};Fr({type:"supsub",htmlBuilder(e,t){var n=Xw(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,s=Fe(r,t),o,u,l=t.fontMetrics(),c=0,d=0,m=r&&pe.isCharacterBox(r);if(i){var p=t.havingStyle(t.style.sup());o=Fe(i,p,t),m||(c=s.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var b=t.havingStyle(t.style.sub());u=Fe(a,b,t),m||(d=s.depth+b.fontMetrics().subDrop*b.sizeMultiplier/t.sizeMultiplier)}var E;t.style===be.DISPLAY?E=l.sup1:t.style.cramped?E=l.sup3:E=l.sup2;var C=t.sizeMultiplier,T=se(.5/l.ptPerEm/C),S=null;if(u){var v=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(s instanceof fn||v)&&(S=se(-s.italic))}var L;if(o&&u){c=Math.max(c,E,o.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var P=l.defaultRuleThickness,k=4*P;if(c-o.depth-(u.height-d)0&&(c+=V,d-=V)}var U=[{type:"elem",elem:u,shift:d,marginRight:T,marginLeft:S},{type:"elem",elem:o,shift:-c,marginRight:T}];L=z.makeVList({positionType:"individualShift",children:U},t)}else if(u){d=Math.max(d,l.sub1,u.height-.8*l.xHeight);var q=[{type:"elem",elem:u,marginLeft:S,marginRight:T}];L=z.makeVList({positionType:"shift",positionData:d,children:q},t)}else if(o)c=Math.max(c,E,o.depth+.25*l.xHeight),L=z.makeVList({positionType:"shift",positionData:-c,children:[{type:"elem",elem:o,marginRight:T}]},t);else throw new Error("supsub must have either sup or sub.");var B=Yu(s,"right")||"mord";return z.makeSpan([B],[s,z.makeSpan(["msupsub"],[L])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[Ke(e.base,t)];e.sub&&a.push(Ke(e.sub,t)),e.sup&&a.push(Ke(e.sup,t));var s;if(n)s=r?"mover":"munder";else if(e.sub)if(e.sup){var l=e.base;l&&l.type==="op"&&l.limits&&t.style===be.DISPLAY||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(t.style===be.DISPLAY||l.limits)?s="munderover":s="msubsup"}else{var u=e.base;u&&u.type==="op"&&u.limits&&(t.style===be.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||t.style===be.DISPLAY)?s="munder":s="msub"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===be.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===be.DISPLAY)?s="mover":s="msup"}return new ee.MathNode(s,a)}});Fr({type:"atom",htmlBuilder(e,t){return z.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new ee.MathNode("mo",[mn(e.text,e.mode)]);if(e.family==="bin"){var r=g0(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var O2={mi:"italic",mn:"normal",mtext:"normal"};Fr({type:"mathord",htmlBuilder(e,t){return z.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new ee.MathNode("mi",[mn(e.text,e.mode,t)]),r=g0(e,t)||"italic";return r!==O2[n.type]&&n.setAttribute("mathvariant",r),n}});Fr({type:"textord",htmlBuilder(e,t){return z.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=mn(e.text,e.mode,t),r=g0(e,t)||"normal",i;return e.mode==="text"?i=new ee.MathNode("mtext",[n]):/[0-9]/.test(e.text)?i=new ee.MathNode("mn",[n]):e.text==="\\prime"?i=new ee.MathNode("mo",[n]):i=new ee.MathNode("mi",[n]),r!==O2[i.type]&&i.setAttribute("mathvariant",r),i}});var Jo={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},eu={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Fr({type:"spacing",htmlBuilder(e,t){if(eu.hasOwnProperty(e.text)){var n=eu[e.text].className||"";if(e.mode==="text"){var r=z.makeOrd(e,t,"textord");return r.classes.push(n),r}else return z.makeSpan(["mspace",n],[z.mathsym(e.text,e.mode,t)],t)}else{if(Jo.hasOwnProperty(e.text))return z.makeSpan(["mspace",Jo[e.text]],[],t);throw new te('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(eu.hasOwnProperty(e.text))n=new ee.MathNode("mtext",[new ee.TextNode(" ")]);else{if(Jo.hasOwnProperty(e.text))return new ee.MathNode("mspace");throw new te('Unknown type of space "'+e.text+'"')}return n}});var Yh=()=>{var e=new ee.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};Fr({type:"tag",mathmlBuilder(e,t){var n=new ee.MathNode("mtable",[new ee.MathNode("mtr",[Yh(),new ee.MathNode("mtd",[gr(e.body,t)]),Yh(),new ee.MathNode("mtd",[gr(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var Gh={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Kh={"\\textbf":"textbf","\\textmd":"textmd"},Qw={"\\textit":"textit","\\textup":"textup"},Xh=(e,t)=>{var n=e.font;if(n){if(Gh[n])return t.withTextFontFamily(Gh[n]);if(Kh[n])return t.withTextFontWeight(Kh[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(Qw[n])};ce({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"text",mode:n.mode,body:mt(i),font:r}},htmlBuilder(e,t){var n=Xh(e,t),r=xt(e.body,n,!0);return z.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=Xh(e,t);return gr(e.body,n)}});ce({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Fe(e.body,t),r=z.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=z.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return z.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){var n=new ee.MathNode("mo",[new ee.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new ee.MathNode("munder",[Ke(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});ce({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Fe(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return z.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new ee.MathNode("mpadded",[Ke(e.body,t)],["vcenter"])}});ce({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new te("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=Qh(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?"␣":" "),cr=a2,B2=`[ \r - ]`,Zw="\\\\[a-zA-Z@]+",Jw="\\\\[^\uD800-\uDFFF]",ek="("+Zw+")"+B2+"*",tk=`\\\\( -|[ \r ]+ -?)[ \r ]*`,Qu="[̀-ͯ]",nk=new RegExp(Qu+"+$"),rk="("+B2+"+)|"+(tk+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(Qu+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Qu+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+ek)+("|"+Jw+")");class Zh{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(rk,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new hn("EOF",new en(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new te("Unexpected character: '"+t[n]+"'",new hn(t[n],new en(this,n,n+1)));var i=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(` -`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new hn(i,new en(this,n,this.tokenRegex.lastIndex))}}class ik{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new te("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,r){if(r===void 0&&(r=!1),r){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var ak=w2;x("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});x("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});x("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});x("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});x("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});x("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");x("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Jh={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};x("\\char",function(e){var t=e.popToken(),n,r="";if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new te("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=Jh[t.text],r==null||r>=n)throw new te("Invalid base-"+n+" digit "+t.text);for(var i;(i=Jh[e.future().text])!=null&&i{var i=e.consumeArg().tokens;if(i.length!==1)throw new te("\\newcommand's first argument must be a macro name");var a=i[0].text,s=e.isDefined(a);if(s&&!t)throw new te("\\newcommand{"+a+"} attempting to redefine "+(a+"; use \\renewcommand"));if(!s&&!n)throw new te("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var o=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var u="",l=e.expandNextToken();l.text!=="]"&&l.text!=="EOF";)u+=l.text,l=e.expandNextToken();if(!u.match(/^\s*[0-9]+\s*$/))throw new te("Invalid number of arguments: "+u);o=parseInt(u),i=e.consumeArg().tokens}return s&&r||e.macros.set(a,{tokens:i,numArgs:o}),""};x("\\newcommand",e=>w0(e,!1,!0,!1));x("\\renewcommand",e=>w0(e,!0,!1,!1));x("\\providecommand",e=>w0(e,!0,!0,!0));x("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});x("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});x("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),cr[n],et.math[n],et.text[n]),""});x("\\bgroup","{");x("\\egroup","}");x("~","\\nobreakspace");x("\\lq","`");x("\\rq","'");x("\\aa","\\r a");x("\\AA","\\r A");x("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");x("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");x("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");x("ℬ","\\mathscr{B}");x("ℰ","\\mathscr{E}");x("ℱ","\\mathscr{F}");x("ℋ","\\mathscr{H}");x("ℐ","\\mathscr{I}");x("ℒ","\\mathscr{L}");x("ℳ","\\mathscr{M}");x("ℛ","\\mathscr{R}");x("ℭ","\\mathfrak{C}");x("ℌ","\\mathfrak{H}");x("ℨ","\\mathfrak{Z}");x("\\Bbbk","\\Bbb{k}");x("·","\\cdotp");x("\\llap","\\mathllap{\\textrm{#1}}");x("\\rlap","\\mathrlap{\\textrm{#1}}");x("\\clap","\\mathclap{\\textrm{#1}}");x("\\mathstrut","\\vphantom{(}");x("\\underbar","\\underline{\\text{#1}}");x("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');x("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");x("\\ne","\\neq");x("≠","\\neq");x("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");x("∉","\\notin");x("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");x("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");x("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");x("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");x("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");x("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");x("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");x("⟂","\\perp");x("‼","\\mathclose{!\\mkern-0.8mu!}");x("∌","\\notni");x("⌜","\\ulcorner");x("⌝","\\urcorner");x("⌞","\\llcorner");x("⌟","\\lrcorner");x("©","\\copyright");x("®","\\textregistered");x("️","\\textregistered");x("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');x("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');x("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');x("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');x("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");x("⋮","\\vdots");x("\\varGamma","\\mathit{\\Gamma}");x("\\varDelta","\\mathit{\\Delta}");x("\\varTheta","\\mathit{\\Theta}");x("\\varLambda","\\mathit{\\Lambda}");x("\\varXi","\\mathit{\\Xi}");x("\\varPi","\\mathit{\\Pi}");x("\\varSigma","\\mathit{\\Sigma}");x("\\varUpsilon","\\mathit{\\Upsilon}");x("\\varPhi","\\mathit{\\Phi}");x("\\varPsi","\\mathit{\\Psi}");x("\\varOmega","\\mathit{\\Omega}");x("\\substack","\\begin{subarray}{c}#1\\end{subarray}");x("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");x("\\boxed","\\fbox{$\\displaystyle{#1}$}");x("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");x("\\implies","\\DOTSB\\;\\Longrightarrow\\;");x("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");x("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");x("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var e1={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};x("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in e1?t=e1[n]:(n.slice(0,4)==="\\not"||n in et.math&&pe.contains(["bin","rel"],et.math[n].group))&&(t="\\dotsb"),t});var k0={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};x("\\dotso",function(e){var t=e.future().text;return t in k0?"\\ldots\\,":"\\ldots"});x("\\dotsc",function(e){var t=e.future().text;return t in k0&&t!==","?"\\ldots\\,":"\\ldots"});x("\\cdots",function(e){var t=e.future().text;return t in k0?"\\@cdots\\,":"\\@cdots"});x("\\dotsb","\\cdots");x("\\dotsm","\\cdots");x("\\dotsi","\\!\\cdots");x("\\dotsx","\\ldots\\,");x("\\DOTSI","\\relax");x("\\DOTSB","\\relax");x("\\DOTSX","\\relax");x("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");x("\\,","\\tmspace+{3mu}{.1667em}");x("\\thinspace","\\,");x("\\>","\\mskip{4mu}");x("\\:","\\tmspace+{4mu}{.2222em}");x("\\medspace","\\:");x("\\;","\\tmspace+{5mu}{.2777em}");x("\\thickspace","\\;");x("\\!","\\tmspace-{3mu}{.1667em}");x("\\negthinspace","\\!");x("\\negmedspace","\\tmspace-{4mu}{.2222em}");x("\\negthickspace","\\tmspace-{5mu}{.277em}");x("\\enspace","\\kern.5em ");x("\\enskip","\\hskip.5em\\relax");x("\\quad","\\hskip1em\\relax");x("\\qquad","\\hskip2em\\relax");x("\\tag","\\@ifstar\\tag@literal\\tag@paren");x("\\tag@paren","\\tag@literal{({#1})}");x("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new te("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});x("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");x("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");x("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");x("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");x("\\newline","\\\\\\relax");x("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var F2=se(kn["Main-Regular"][84][1]-.7*kn["Main-Regular"][65][1]);x("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+F2+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");x("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+F2+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");x("\\hspace","\\@ifstar\\@hspacer\\@hspace");x("\\@hspace","\\hskip #1\\relax");x("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");x("\\ordinarycolon",":");x("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");x("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');x("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');x("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');x("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');x("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');x("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');x("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');x("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');x("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');x("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');x("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');x("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');x("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');x("∷","\\dblcolon");x("∹","\\eqcolon");x("≔","\\coloneqq");x("≕","\\eqqcolon");x("⩴","\\Coloneqq");x("\\ratio","\\vcentcolon");x("\\coloncolon","\\dblcolon");x("\\colonequals","\\coloneqq");x("\\coloncolonequals","\\Coloneqq");x("\\equalscolon","\\eqqcolon");x("\\equalscoloncolon","\\Eqqcolon");x("\\colonminus","\\coloneq");x("\\coloncolonminus","\\Coloneq");x("\\minuscolon","\\eqcolon");x("\\minuscoloncolon","\\Eqcolon");x("\\coloncolonapprox","\\Colonapprox");x("\\coloncolonsim","\\Colonsim");x("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");x("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");x("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");x("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");x("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");x("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");x("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");x("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");x("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");x("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");x("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");x("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");x("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");x("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");x("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");x("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");x("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");x("\\nleqq","\\html@mathml{\\@nleqq}{≰}");x("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");x("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");x("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");x("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");x("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");x("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");x("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");x("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");x("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");x("\\imath","\\html@mathml{\\@imath}{ı}");x("\\jmath","\\html@mathml{\\@jmath}{ȷ}");x("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");x("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");x("⟦","\\llbracket");x("⟧","\\rrbracket");x("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");x("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");x("⦃","\\lBrace");x("⦄","\\rBrace");x("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");x("⦵","\\minuso");x("\\darr","\\downarrow");x("\\dArr","\\Downarrow");x("\\Darr","\\Downarrow");x("\\lang","\\langle");x("\\rang","\\rangle");x("\\uarr","\\uparrow");x("\\uArr","\\Uparrow");x("\\Uarr","\\Uparrow");x("\\N","\\mathbb{N}");x("\\R","\\mathbb{R}");x("\\Z","\\mathbb{Z}");x("\\alef","\\aleph");x("\\alefsym","\\aleph");x("\\Alpha","\\mathrm{A}");x("\\Beta","\\mathrm{B}");x("\\bull","\\bullet");x("\\Chi","\\mathrm{X}");x("\\clubs","\\clubsuit");x("\\cnums","\\mathbb{C}");x("\\Complex","\\mathbb{C}");x("\\Dagger","\\ddagger");x("\\diamonds","\\diamondsuit");x("\\empty","\\emptyset");x("\\Epsilon","\\mathrm{E}");x("\\Eta","\\mathrm{H}");x("\\exist","\\exists");x("\\harr","\\leftrightarrow");x("\\hArr","\\Leftrightarrow");x("\\Harr","\\Leftrightarrow");x("\\hearts","\\heartsuit");x("\\image","\\Im");x("\\infin","\\infty");x("\\Iota","\\mathrm{I}");x("\\isin","\\in");x("\\Kappa","\\mathrm{K}");x("\\larr","\\leftarrow");x("\\lArr","\\Leftarrow");x("\\Larr","\\Leftarrow");x("\\lrarr","\\leftrightarrow");x("\\lrArr","\\Leftrightarrow");x("\\Lrarr","\\Leftrightarrow");x("\\Mu","\\mathrm{M}");x("\\natnums","\\mathbb{N}");x("\\Nu","\\mathrm{N}");x("\\Omicron","\\mathrm{O}");x("\\plusmn","\\pm");x("\\rarr","\\rightarrow");x("\\rArr","\\Rightarrow");x("\\Rarr","\\Rightarrow");x("\\real","\\Re");x("\\reals","\\mathbb{R}");x("\\Reals","\\mathbb{R}");x("\\Rho","\\mathrm{P}");x("\\sdot","\\cdot");x("\\sect","\\S");x("\\spades","\\spadesuit");x("\\sub","\\subset");x("\\sube","\\subseteq");x("\\supe","\\supseteq");x("\\Tau","\\mathrm{T}");x("\\thetasym","\\vartheta");x("\\weierp","\\wp");x("\\Zeta","\\mathrm{Z}");x("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");x("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");x("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");x("\\bra","\\mathinner{\\langle{#1}|}");x("\\ket","\\mathinner{|{#1}\\rangle}");x("\\braket","\\mathinner{\\langle{#1}\\rangle}");x("\\Bra","\\left\\langle#1\\right|");x("\\Ket","\\left|#1\\right\\rangle");var H2=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,s=t.macros.get("|"),o=t.macros.get("\\|");t.macros.beginGroup();var u=d=>m=>{e&&(m.macros.set("|",s),i.length&&m.macros.set("\\|",o));var p=d;if(!d&&i.length){var b=m.future();b.text==="|"&&(m.popToken(),p=!0)}return{tokens:p?i:r,numArgs:0}};t.macros.set("|",u(!1)),i.length&&t.macros.set("\\|",u(!0));var l=t.consumeArg().tokens,c=t.expandTokens([...a,...l,...n]);return t.macros.endGroup(),{tokens:c.reverse(),numArgs:0}};x("\\bra@ket",H2(!1));x("\\bra@set",H2(!0));x("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");x("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");x("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");x("\\angln","{\\angl n}");x("\\blue","\\textcolor{##6495ed}{#1}");x("\\orange","\\textcolor{##ffa500}{#1}");x("\\pink","\\textcolor{##ff00af}{#1}");x("\\red","\\textcolor{##df0030}{#1}");x("\\green","\\textcolor{##28ae7b}{#1}");x("\\gray","\\textcolor{gray}{#1}");x("\\purple","\\textcolor{##9d38bd}{#1}");x("\\blueA","\\textcolor{##ccfaff}{#1}");x("\\blueB","\\textcolor{##80f6ff}{#1}");x("\\blueC","\\textcolor{##63d9ea}{#1}");x("\\blueD","\\textcolor{##11accd}{#1}");x("\\blueE","\\textcolor{##0c7f99}{#1}");x("\\tealA","\\textcolor{##94fff5}{#1}");x("\\tealB","\\textcolor{##26edd5}{#1}");x("\\tealC","\\textcolor{##01d1c1}{#1}");x("\\tealD","\\textcolor{##01a995}{#1}");x("\\tealE","\\textcolor{##208170}{#1}");x("\\greenA","\\textcolor{##b6ffb0}{#1}");x("\\greenB","\\textcolor{##8af281}{#1}");x("\\greenC","\\textcolor{##74cf70}{#1}");x("\\greenD","\\textcolor{##1fab54}{#1}");x("\\greenE","\\textcolor{##0d923f}{#1}");x("\\goldA","\\textcolor{##ffd0a9}{#1}");x("\\goldB","\\textcolor{##ffbb71}{#1}");x("\\goldC","\\textcolor{##ff9c39}{#1}");x("\\goldD","\\textcolor{##e07d10}{#1}");x("\\goldE","\\textcolor{##a75a05}{#1}");x("\\redA","\\textcolor{##fca9a9}{#1}");x("\\redB","\\textcolor{##ff8482}{#1}");x("\\redC","\\textcolor{##f9685d}{#1}");x("\\redD","\\textcolor{##e84d39}{#1}");x("\\redE","\\textcolor{##bc2612}{#1}");x("\\maroonA","\\textcolor{##ffbde0}{#1}");x("\\maroonB","\\textcolor{##ff92c6}{#1}");x("\\maroonC","\\textcolor{##ed5fa6}{#1}");x("\\maroonD","\\textcolor{##ca337c}{#1}");x("\\maroonE","\\textcolor{##9e034e}{#1}");x("\\purpleA","\\textcolor{##ddd7ff}{#1}");x("\\purpleB","\\textcolor{##c6b9fc}{#1}");x("\\purpleC","\\textcolor{##aa87ff}{#1}");x("\\purpleD","\\textcolor{##7854ab}{#1}");x("\\purpleE","\\textcolor{##543b78}{#1}");x("\\mintA","\\textcolor{##f5f9e8}{#1}");x("\\mintB","\\textcolor{##edf2df}{#1}");x("\\mintC","\\textcolor{##e0e5cc}{#1}");x("\\grayA","\\textcolor{##f6f7f7}{#1}");x("\\grayB","\\textcolor{##f0f1f2}{#1}");x("\\grayC","\\textcolor{##e3e5e6}{#1}");x("\\grayD","\\textcolor{##d6d8da}{#1}");x("\\grayE","\\textcolor{##babec2}{#1}");x("\\grayF","\\textcolor{##888d93}{#1}");x("\\grayG","\\textcolor{##626569}{#1}");x("\\grayH","\\textcolor{##3b3e40}{#1}");x("\\grayI","\\textcolor{##21242c}{#1}");x("\\kaBlue","\\textcolor{##314453}{#1}");x("\\kaGreen","\\textcolor{##71B307}{#1}");var z2={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class sk{constructor(t,n,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new ik(ak,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new Zh(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,r,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:i,end:r}=this.consumeArg(["]"])}else({tokens:i,start:n,end:r}=this.consumeArg());return this.pushToken(new hn("EOF",r.loc)),this.pushTokens(i),n.range(r,"")}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var i=this.future(),a,s=0,o=0;do{if(a=this.popToken(),n.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new te("Extra }",a)}else if(a.text==="EOF")throw new te("Unexpected end of input in a macro argument, expected '"+(t&&r?t[o]:"}")+"'",a);if(t&&r)if((s===0||s===1&&t[o]==="{")&&a.text===t[o]){if(++o,o===t.length){n.splice(-o,o);break}}else o=0}while(s!==0||r);return i.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:i,end:a}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new te("The length of delimiters doesn't match the number of args!");for(var r=n[0],i=0;ithis.settings.maxExpand)throw new te("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var n=this.popToken(),r=n.text,i=n.noexpand?null:this._getExpansion(r);if(i==null||t&&i.unexpandable){if(t&&i==null&&r[0]==="\\"&&!this.isDefined(r))throw new te("Undefined control sequence: "+r);return this.pushToken(n),!1}this.countExpansion(1);var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var o=a.length-1;o>=0;--o){var u=a[o];if(u.text==="#"){if(o===0)throw new te("Incomplete placeholder at end of macro body",u);if(u=a[--o],u.text==="#")a.splice(o+1,1);else if(/^[1-9]$/.test(u.text))a.splice(o,2,...s[+u.text-1]);else throw new te("Not a valid argument number",u)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new hn(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),n.push(i)}return this.countExpansion(n.length),n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];if(r!=null&&r!==13)return}var i=typeof n=="function"?n(this):n;if(typeof i=="string"){var a=0;if(i.indexOf("#")!==-1)for(var s=i.replace(/##/g,"");s.indexOf("#"+(a+1))!==-1;)++a;for(var o=new Zh(i,this.settings),u=[],l=o.lex();l.text!=="EOF";)u.push(l),l=o.lex();u.reverse();var c={tokens:u,numArgs:a};return c}return i}isDefined(t){return this.macros.has(t)||cr.hasOwnProperty(t)||et.math.hasOwnProperty(t)||et.text.hasOwnProperty(t)||z2.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:cr.hasOwnProperty(t)&&!cr[t].primitive}}var t1=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Qa=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),tu={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},n1={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let U2=class V2{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new sk(t,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new te("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new hn("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(V2.endOfExpression.indexOf(i.text)!==-1||n&&i.text===n||t&&cr[i.text]&&cr[i.text].infix)break;var a=this.parseAtom(n);if(a){if(a.type==="internal")continue}else break;r.push(a)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,i=0;i=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var o=et[this.mode][n].group,u=en.range(t),l;if(GC.hasOwnProperty(o)){var c=o;l={type:"atom",mode:this.mode,family:c,loc:u,text:n}}else l={type:o,mode:this.mode,loc:u,text:n};s=l}else if(n.charCodeAt(0)>=128)this.settings.strict&&(Kp(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),s={type:"textord",mode:"text",loc:en.range(t),text:n};else return null;if(this.consume(),a)for(var d=0;dl&&(l=c):c&&(l!==void 0&&l>-1&&u.push(` -`.repeat(l)||" "),l=-1,u.push(c))}return u.join("")}function Q2(e,t,n){return e.type==="element"?Lk(e,t,n):e.type==="text"?n.whitespace==="normal"?Z2(e,n):Pk(e):[]}function Lk(e,t,n){const r=J2(e,n),i=e.children||[];let a=-1,s=[];if(Dk(e))return s;let o,u;for(Ju(e)||h1(e)&&u1(t,e,h1)?u=` -`:Rk(e)?(o=2,u=2):X2(e)&&(o=1,u=1);++a-1&&a<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const u=f1(t,n[s-1]);o=u===-1?t.length+1:u+1,n[s]=o}if(o>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a};s++}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length1?n[a.line-2]:0)+a.column-1;if(s4&&n.slice(0,4)==="data"&&Zk.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(g1,nI);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!g1.test(a)){let s=a.replace(Jk,tI);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=D0}return new i(r,t)}function tI(e){return"-"+e.toLowerCase()}function nI(e){return e.charAt(1).toUpperCase()}const rI=n4([a4,i4,u4,l4,Xk],"html"),c4=n4([a4,i4,u4,l4,Qk],"svg"),iI={},aI={}.hasOwnProperty,d4=kp("type",{handlers:{root:oI,element:hI,text:cI,comment:dI,doctype:lI}});function sI(e,t){const r=(t||iI).space;return d4(e,r==="svg"?c4:rI)}function oI(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=_0(e.children,n,t),Ei(e,n),n}function uI(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=_0(e.children,n,t),Ei(e,n),n}function lI(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Ei(e,t),t}function cI(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Ei(e,t),t}function dI(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Ei(e,t),t}function hI(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=c4);const i=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&aI.call(e.properties,a)){const u=fI(r,a,e.properties[a]);u&&i.push(u)}}const s=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:Nn[s],childNodes:[],parentNode:null};return o.childNodes=_0(e.children,o,r),Ei(e,o),e.tagName==="template"&&e.content&&(o.content=uI(e.content,r)),o}function fI(e,t,n){const r=eI(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?zm(n):Gm(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=i.name.indexOf(":");a<0?i.prefix="":(i.name=i.name.slice(a+1),i.prefix=r.attribute.slice(0,a)),i.namespace=Nn[r.space]}return i}function _0(e,t,n){let r=-1;const i=[];if(e)for(;++r=55296&&e<=57343}function gI(e){return e>=56320&&e<=57343}function bI(e,t){return(e-55296)*1024+9216+t}function f4(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function m4(e){return e>=64976&&e<=65007||pI.has(e)}var $;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})($||($={}));const yI=65536;class TI{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=yI,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:i,offset:a}=this,s=i+n,o=a+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(gI(n))return this.pos++,this._addGap(),bI(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,A.EOF;return this._err($.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,A.EOF;const r=this.html.charCodeAt(n);return r===A.CARRIAGE_RETURN?A.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,A.EOF;let t=this.html.charCodeAt(this.pos);return t===A.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,A.LINE_FEED):t===A.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,h4(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===A.LINE_FEED||t===A.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){f4(t)?this._err($.controlCharacterInInputStream):m4(t)&&this._err($.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const EI=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),xI=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function vI(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=xI.get(e))!==null&&t!==void 0?t:e}var Ct;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Ct||(Ct={}));const SI=32;var dr;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(dr||(dr={}));function nl(e){return e>=Ct.ZERO&&e<=Ct.NINE}function AI(e){return e>=Ct.UPPER_A&&e<=Ct.UPPER_F||e>=Ct.LOWER_A&&e<=Ct.LOWER_F}function CI(e){return e>=Ct.UPPER_A&&e<=Ct.UPPER_Z||e>=Ct.LOWER_A&&e<=Ct.LOWER_Z||nl(e)}function wI(e){return e===Ct.EQUALS||CI(e)}var St;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(St||(St={}));var Vn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Vn||(Vn={}));class kI{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=St.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Vn.Strict}startEntity(t){this.decodeMode=t,this.state=St.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case St.EntityStart:return t.charCodeAt(n)===Ct.NUM?(this.state=St.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=St.NamedEntity,this.stateNamedEntity(t,n));case St.NumericStart:return this.stateNumericStart(t,n);case St.NumericDecimal:return this.stateNumericDecimal(t,n);case St.NumericHex:return this.stateNumericHex(t,n);case St.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|SI)===Ct.LOWER_X?(this.state=St.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=St.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const a=r-n;this.result=this.result*Math.pow(i,a)+Number.parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,a!==0){if(s===Ct.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Vn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&dr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~dr.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case St.NamedEntity:return this.result!==0&&(this.decodeMode!==Vn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case St.NumericDecimal:return this.emitNumericEntity(0,2);case St.NumericHex:return this.emitNumericEntity(0,3);case St.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case St.EntityStart:return 0}}}function II(e,t,n,r){const i=(t&dr.BRANCH_LENGTH)>>7,a=t&dr.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const u=r-a;return u<0||u>=i?-1:e[n+u]-1}let s=n,o=s+i-1;for(;s<=o;){const u=s+o>>>1,l=e[u];if(lr)o=u-1;else return e[u+i]}return-1}var Z;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Z||(Z={}));var _r;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(_r||(_r={}));var ln;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(ln||(ln={}));var H;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(H||(H={}));var h;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(h||(h={}));const NI=new Map([[H.A,h.A],[H.ADDRESS,h.ADDRESS],[H.ANNOTATION_XML,h.ANNOTATION_XML],[H.APPLET,h.APPLET],[H.AREA,h.AREA],[H.ARTICLE,h.ARTICLE],[H.ASIDE,h.ASIDE],[H.B,h.B],[H.BASE,h.BASE],[H.BASEFONT,h.BASEFONT],[H.BGSOUND,h.BGSOUND],[H.BIG,h.BIG],[H.BLOCKQUOTE,h.BLOCKQUOTE],[H.BODY,h.BODY],[H.BR,h.BR],[H.BUTTON,h.BUTTON],[H.CAPTION,h.CAPTION],[H.CENTER,h.CENTER],[H.CODE,h.CODE],[H.COL,h.COL],[H.COLGROUP,h.COLGROUP],[H.DD,h.DD],[H.DESC,h.DESC],[H.DETAILS,h.DETAILS],[H.DIALOG,h.DIALOG],[H.DIR,h.DIR],[H.DIV,h.DIV],[H.DL,h.DL],[H.DT,h.DT],[H.EM,h.EM],[H.EMBED,h.EMBED],[H.FIELDSET,h.FIELDSET],[H.FIGCAPTION,h.FIGCAPTION],[H.FIGURE,h.FIGURE],[H.FONT,h.FONT],[H.FOOTER,h.FOOTER],[H.FOREIGN_OBJECT,h.FOREIGN_OBJECT],[H.FORM,h.FORM],[H.FRAME,h.FRAME],[H.FRAMESET,h.FRAMESET],[H.H1,h.H1],[H.H2,h.H2],[H.H3,h.H3],[H.H4,h.H4],[H.H5,h.H5],[H.H6,h.H6],[H.HEAD,h.HEAD],[H.HEADER,h.HEADER],[H.HGROUP,h.HGROUP],[H.HR,h.HR],[H.HTML,h.HTML],[H.I,h.I],[H.IMG,h.IMG],[H.IMAGE,h.IMAGE],[H.INPUT,h.INPUT],[H.IFRAME,h.IFRAME],[H.KEYGEN,h.KEYGEN],[H.LABEL,h.LABEL],[H.LI,h.LI],[H.LINK,h.LINK],[H.LISTING,h.LISTING],[H.MAIN,h.MAIN],[H.MALIGNMARK,h.MALIGNMARK],[H.MARQUEE,h.MARQUEE],[H.MATH,h.MATH],[H.MENU,h.MENU],[H.META,h.META],[H.MGLYPH,h.MGLYPH],[H.MI,h.MI],[H.MO,h.MO],[H.MN,h.MN],[H.MS,h.MS],[H.MTEXT,h.MTEXT],[H.NAV,h.NAV],[H.NOBR,h.NOBR],[H.NOFRAMES,h.NOFRAMES],[H.NOEMBED,h.NOEMBED],[H.NOSCRIPT,h.NOSCRIPT],[H.OBJECT,h.OBJECT],[H.OL,h.OL],[H.OPTGROUP,h.OPTGROUP],[H.OPTION,h.OPTION],[H.P,h.P],[H.PARAM,h.PARAM],[H.PLAINTEXT,h.PLAINTEXT],[H.PRE,h.PRE],[H.RB,h.RB],[H.RP,h.RP],[H.RT,h.RT],[H.RTC,h.RTC],[H.RUBY,h.RUBY],[H.S,h.S],[H.SCRIPT,h.SCRIPT],[H.SEARCH,h.SEARCH],[H.SECTION,h.SECTION],[H.SELECT,h.SELECT],[H.SOURCE,h.SOURCE],[H.SMALL,h.SMALL],[H.SPAN,h.SPAN],[H.STRIKE,h.STRIKE],[H.STRONG,h.STRONG],[H.STYLE,h.STYLE],[H.SUB,h.SUB],[H.SUMMARY,h.SUMMARY],[H.SUP,h.SUP],[H.TABLE,h.TABLE],[H.TBODY,h.TBODY],[H.TEMPLATE,h.TEMPLATE],[H.TEXTAREA,h.TEXTAREA],[H.TFOOT,h.TFOOT],[H.TD,h.TD],[H.TH,h.TH],[H.THEAD,h.THEAD],[H.TITLE,h.TITLE],[H.TR,h.TR],[H.TRACK,h.TRACK],[H.TT,h.TT],[H.U,h.U],[H.UL,h.UL],[H.SVG,h.SVG],[H.VAR,h.VAR],[H.WBR,h.WBR],[H.XMP,h.XMP]]);function xi(e){var t;return(t=NI.get(e))!==null&&t!==void 0?t:h.UNKNOWN}const J=h,MI={[Z.HTML]:new Set([J.ADDRESS,J.APPLET,J.AREA,J.ARTICLE,J.ASIDE,J.BASE,J.BASEFONT,J.BGSOUND,J.BLOCKQUOTE,J.BODY,J.BR,J.BUTTON,J.CAPTION,J.CENTER,J.COL,J.COLGROUP,J.DD,J.DETAILS,J.DIR,J.DIV,J.DL,J.DT,J.EMBED,J.FIELDSET,J.FIGCAPTION,J.FIGURE,J.FOOTER,J.FORM,J.FRAME,J.FRAMESET,J.H1,J.H2,J.H3,J.H4,J.H5,J.H6,J.HEAD,J.HEADER,J.HGROUP,J.HR,J.HTML,J.IFRAME,J.IMG,J.INPUT,J.LI,J.LINK,J.LISTING,J.MAIN,J.MARQUEE,J.MENU,J.META,J.NAV,J.NOEMBED,J.NOFRAMES,J.NOSCRIPT,J.OBJECT,J.OL,J.P,J.PARAM,J.PLAINTEXT,J.PRE,J.SCRIPT,J.SECTION,J.SELECT,J.SOURCE,J.STYLE,J.SUMMARY,J.TABLE,J.TBODY,J.TD,J.TEMPLATE,J.TEXTAREA,J.TFOOT,J.TH,J.THEAD,J.TITLE,J.TR,J.TRACK,J.UL,J.WBR,J.XMP]),[Z.MATHML]:new Set([J.MI,J.MO,J.MN,J.MS,J.MTEXT,J.ANNOTATION_XML]),[Z.SVG]:new Set([J.TITLE,J.FOREIGN_OBJECT,J.DESC]),[Z.XLINK]:new Set,[Z.XML]:new Set,[Z.XMLNS]:new Set},rl=new Set([J.H1,J.H2,J.H3,J.H4,J.H5,J.H6]);H.STYLE,H.SCRIPT,H.XMP,H.IFRAME,H.NOEMBED,H.NOFRAMES,H.PLAINTEXT;var w;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(w||(w={}));const ft={DATA:w.DATA,RCDATA:w.RCDATA,RAWTEXT:w.RAWTEXT,SCRIPT_DATA:w.SCRIPT_DATA,PLAINTEXT:w.PLAINTEXT,CDATA_SECTION:w.CDATA_SECTION};function RI(e){return e>=A.DIGIT_0&&e<=A.DIGIT_9}function Bi(e){return e>=A.LATIN_CAPITAL_A&&e<=A.LATIN_CAPITAL_Z}function DI(e){return e>=A.LATIN_SMALL_A&&e<=A.LATIN_SMALL_Z}function or(e){return DI(e)||Bi(e)}function b1(e){return or(e)||RI(e)}function Za(e){return e+32}function g4(e){return e===A.SPACE||e===A.LINE_FEED||e===A.TABULATION||e===A.FORM_FEED}function y1(e){return g4(e)||e===A.SOLIDUS||e===A.GREATER_THAN_SIGN}function _I(e){return e===A.NULL?$.nullCharacterReference:e>1114111?$.characterReferenceOutsideUnicodeRange:h4(e)?$.surrogateCharacterReference:m4(e)?$.noncharacterCharacterReference:f4(e)||e===A.CARRIAGE_RETURN?$.controlCharacterReference:null}class LI{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=w.DATA,this.returnState=w.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new TI(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new kI(EI,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err($.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err($.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=_I(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n0&&this._err($.endTagWithAttributes),t.selfClosing&&this._err($.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Ie.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Ie.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Ie.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Ie.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=g4(t)?Ie.WHITESPACE_CHARACTER:t===A.NULL?Ie.NULL_CHARACTER:Ie.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Ie.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=w.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Vn.Attribute:Vn.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===w.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===w.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===w.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case w.DATA:{this._stateData(t);break}case w.RCDATA:{this._stateRcdata(t);break}case w.RAWTEXT:{this._stateRawtext(t);break}case w.SCRIPT_DATA:{this._stateScriptData(t);break}case w.PLAINTEXT:{this._statePlaintext(t);break}case w.TAG_OPEN:{this._stateTagOpen(t);break}case w.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case w.TAG_NAME:{this._stateTagName(t);break}case w.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case w.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case w.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case w.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case w.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case w.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case w.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case w.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case w.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case w.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case w.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case w.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case w.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case w.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case w.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case w.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case w.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case w.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case w.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case w.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case w.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case w.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case w.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case w.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case w.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case w.BOGUS_COMMENT:{this._stateBogusComment(t);break}case w.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case w.COMMENT_START:{this._stateCommentStart(t);break}case w.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case w.COMMENT:{this._stateComment(t);break}case w.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case w.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case w.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case w.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case w.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case w.COMMENT_END:{this._stateCommentEnd(t);break}case w.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case w.DOCTYPE:{this._stateDoctype(t);break}case w.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case w.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case w.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case w.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case w.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case w.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case w.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case w.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case w.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case w.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case w.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case w.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case w.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case w.CDATA_SECTION:{this._stateCdataSection(t);break}case w.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case w.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case w.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case w.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case A.LESS_THAN_SIGN:{this.state=w.TAG_OPEN;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err($.unexpectedNullCharacter),this._emitCodePoint(t);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case A.AMPERSAND:{this._startCharacterReference();break}case A.LESS_THAN_SIGN:{this.state=w.RCDATA_LESS_THAN_SIGN;break}case A.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(nt);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case A.LESS_THAN_SIGN:{this.state=w.RAWTEXT_LESS_THAN_SIGN;break}case A.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(nt);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case A.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_LESS_THAN_SIGN;break}case A.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(nt);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case A.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(nt);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(or(t))this._createStartTagToken(),this.state=w.TAG_NAME,this._stateTagName(t);else switch(t){case A.EXCLAMATION_MARK:{this.state=w.MARKUP_DECLARATION_OPEN;break}case A.SOLIDUS:{this.state=w.END_TAG_OPEN;break}case A.QUESTION_MARK:{this._err($.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=w.BOGUS_COMMENT,this._stateBogusComment(t);break}case A.EOF:{this._err($.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err($.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=w.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(or(t))this._createEndTagToken(),this.state=w.TAG_NAME,this._stateTagName(t);else switch(t){case A.GREATER_THAN_SIGN:{this._err($.missingEndTagName),this.state=w.DATA;break}case A.EOF:{this._err($.eofBeforeTagName),this._emitChars("");break}case A.NULL:{this._err($.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_ESCAPED,this._emitChars(nt);break}case A.EOF:{this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===A.SOLIDUS?this.state=w.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:or(t)?(this._emitChars("<"),this.state=w.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=w.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){or(t)?(this.state=w.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("");break}case A.NULL:{this._err($.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(nt);break}case A.EOF:{this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===A.SOLIDUS?(this.state=w.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith($t.SCRIPT,!1)&&y1(this.preprocessor.peek($t.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<$t.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=w.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.SOLIDUS:case A.GREATER_THAN_SIGN:case A.EOF:{this.state=w.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case A.EQUALS_SIGN:{this._err($.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=w.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=w.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:case A.SOLIDUS:case A.GREATER_THAN_SIGN:case A.EOF:{this._leaveAttrName(),this.state=w.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case A.EQUALS_SIGN:{this._leaveAttrName(),this.state=w.BEFORE_ATTRIBUTE_VALUE;break}case A.QUOTATION_MARK:case A.APOSTROPHE:case A.LESS_THAN_SIGN:{this._err($.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case A.NULL:{this._err($.unexpectedNullCharacter),this.currentAttr.name+=nt;break}default:this.currentAttr.name+=String.fromCodePoint(Bi(t)?Za(t):t)}}_stateAfterAttributeName(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.SOLIDUS:{this.state=w.SELF_CLOSING_START_TAG;break}case A.EQUALS_SIGN:{this.state=w.BEFORE_ATTRIBUTE_VALUE;break}case A.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentTagToken();break}case A.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=w.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{this.state=w.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this.state=w.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err($.missingAttributeValue),this.state=w.DATA,this.emitCurrentTagToken();break}default:this.state=w.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case A.QUOTATION_MARK:{this.state=w.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err($.unexpectedNullCharacter),this.currentAttr.value+=nt;break}case A.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case A.APOSTROPHE:{this.state=w.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err($.unexpectedNullCharacter),this.currentAttr.value+=nt;break}case A.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this._leaveAttrValue(),this.state=w.BEFORE_ATTRIBUTE_NAME;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=w.DATA,this.emitCurrentTagToken();break}case A.NULL:{this._err($.unexpectedNullCharacter),this.currentAttr.value+=nt;break}case A.QUOTATION_MARK:case A.APOSTROPHE:case A.LESS_THAN_SIGN:case A.EQUALS_SIGN:case A.GRAVE_ACCENT:{this._err($.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case A.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this._leaveAttrValue(),this.state=w.BEFORE_ATTRIBUTE_NAME;break}case A.SOLIDUS:{this._leaveAttrValue(),this.state=w.SELF_CLOSING_START_TAG;break}case A.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=w.DATA,this.emitCurrentTagToken();break}case A.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this._err($.missingWhitespaceBetweenAttributes),this.state=w.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case A.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=w.DATA,this.emitCurrentTagToken();break}case A.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this._err($.unexpectedSolidusInTag),this.state=w.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case A.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentComment(n);break}case A.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case A.NULL:{this._err($.unexpectedNullCharacter),n.data+=nt;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch($t.DASH_DASH,!0)?(this._createCommentToken($t.DASH_DASH.length+1),this.state=w.COMMENT_START):this._consumeSequenceIfMatch($t.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation($t.DOCTYPE.length+1),this.state=w.DOCTYPE):this._consumeSequenceIfMatch($t.CDATA_START,!0)?this.inForeignNode?this.state=w.CDATA_SECTION:(this._err($.cdataInHtmlContent),this._createCommentToken($t.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=w.BOGUS_COMMENT):this._ensureHibernation()||(this._err($.incorrectlyOpenedComment),this._createCommentToken(2),this.state=w.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case A.HYPHEN_MINUS:{this.state=w.COMMENT_START_DASH;break}case A.GREATER_THAN_SIGN:{this._err($.abruptClosingOfEmptyComment),this.state=w.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=w.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case A.HYPHEN_MINUS:{this.state=w.COMMENT_END;break}case A.GREATER_THAN_SIGN:{this._err($.abruptClosingOfEmptyComment),this.state=w.DATA,this.emitCurrentComment(n);break}case A.EOF:{this._err($.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=w.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case A.HYPHEN_MINUS:{this.state=w.COMMENT_END_DASH;break}case A.LESS_THAN_SIGN:{n.data+="<",this.state=w.COMMENT_LESS_THAN_SIGN;break}case A.NULL:{this._err($.unexpectedNullCharacter),n.data+=nt;break}case A.EOF:{this._err($.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case A.EXCLAMATION_MARK:{n.data+="!",this.state=w.COMMENT_LESS_THAN_SIGN_BANG;break}case A.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=w.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===A.HYPHEN_MINUS?this.state=w.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=w.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===A.HYPHEN_MINUS?this.state=w.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=w.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==A.GREATER_THAN_SIGN&&t!==A.EOF&&this._err($.nestedComment),this.state=w.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case A.HYPHEN_MINUS:{this.state=w.COMMENT_END;break}case A.EOF:{this._err($.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=w.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case A.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentComment(n);break}case A.EXCLAMATION_MARK:{this.state=w.COMMENT_END_BANG;break}case A.HYPHEN_MINUS:{n.data+="-";break}case A.EOF:{this._err($.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=w.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case A.HYPHEN_MINUS:{n.data+="--!",this.state=w.COMMENT_END_DASH;break}case A.GREATER_THAN_SIGN:{this._err($.incorrectlyClosedComment),this.state=w.DATA,this.emitCurrentComment(n);break}case A.EOF:{this._err($.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=w.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_NAME;break}case A.GREATER_THAN_SIGN:{this.state=w.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case A.EOF:{this._err($.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err($.missingWhitespaceBeforeDoctypeName),this.state=w.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Bi(t))this._createDoctypeToken(String.fromCharCode(Za(t))),this.state=w.DOCTYPE_NAME;else switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.NULL:{this._err($.unexpectedNullCharacter),this._createDoctypeToken(nt),this.state=w.DOCTYPE_NAME;break}case A.GREATER_THAN_SIGN:{this._err($.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=w.DATA;break}case A.EOF:{this._err($.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=w.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=w.AFTER_DOCTYPE_NAME;break}case A.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(n);break}case A.NULL:{this._err($.unexpectedNullCharacter),n.name+=nt;break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Bi(t)?Za(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(n);break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch($t.PUBLIC,!1)?this.state=w.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch($t.SYSTEM,!1)?this.state=w.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err($.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.QUOTATION_MARK:{this._err($.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err($.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err($.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(n);break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{n.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{n.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err($.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(n);break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case A.QUOTATION_MARK:{this.state=w.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.NULL:{this._err($.unexpectedNullCharacter),n.publicId+=nt;break}case A.GREATER_THAN_SIGN:{this._err($.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=w.DATA;break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case A.APOSTROPHE:{this.state=w.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.NULL:{this._err($.unexpectedNullCharacter),n.publicId+=nt;break}case A.GREATER_THAN_SIGN:{this._err($.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=w.DATA;break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=w.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case A.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(n);break}case A.QUOTATION_MARK:{this._err($.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err($.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=w.DATA;break}case A.QUOTATION_MARK:{n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.QUOTATION_MARK:{this._err($.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err($.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err($.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(n);break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err($.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(n);break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case A.QUOTATION_MARK:{this.state=w.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.NULL:{this._err($.unexpectedNullCharacter),n.systemId+=nt;break}case A.GREATER_THAN_SIGN:{this._err($.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=w.DATA;break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case A.APOSTROPHE:{this.state=w.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.NULL:{this._err($.unexpectedNullCharacter),n.systemId+=nt;break}case A.GREATER_THAN_SIGN:{this._err($.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=w.DATA;break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=w.DATA;break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err($.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=w.DATA;break}case A.NULL:{this._err($.unexpectedNullCharacter);break}case A.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case A.RIGHT_SQUARE_BRACKET:{this.state=w.CDATA_SECTION_BRACKET;break}case A.EOF:{this._err($.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===A.RIGHT_SQUARE_BRACKET?this.state=w.CDATA_SECTION_END:(this._emitChars("]"),this.state=w.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case A.GREATER_THAN_SIGN:{this.state=w.DATA;break}case A.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=w.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(A.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&b1(this.preprocessor.peek(1))?w.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){b1(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===A.SEMICOLON&&this._err($.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const b4=new Set([h.DD,h.DT,h.LI,h.OPTGROUP,h.OPTION,h.P,h.RB,h.RP,h.RT,h.RTC]),T1=new Set([...b4,h.CAPTION,h.COLGROUP,h.TBODY,h.TD,h.TFOOT,h.TH,h.THEAD,h.TR]),Cs=new Set([h.APPLET,h.CAPTION,h.HTML,h.MARQUEE,h.OBJECT,h.TABLE,h.TD,h.TEMPLATE,h.TH]),PI=new Set([...Cs,h.OL,h.UL]),OI=new Set([...Cs,h.BUTTON]),E1=new Set([h.ANNOTATION_XML,h.MI,h.MN,h.MO,h.MS,h.MTEXT]),x1=new Set([h.DESC,h.FOREIGN_OBJECT,h.TITLE]),BI=new Set([h.TR,h.TEMPLATE,h.HTML]),FI=new Set([h.TBODY,h.TFOOT,h.THEAD,h.TEMPLATE,h.HTML]),HI=new Set([h.TABLE,h.TEMPLATE,h.HTML]),zI=new Set([h.TD,h.TH]);class UI{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=h.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===h.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Z.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==Z.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(HI,Z.HTML)}clearBackToTableBodyContext(){this.clearBackTo(FI,Z.HTML)}clearBackToTableRowContext(){this.clearBackTo(BI,Z.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===h.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===h.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case Z.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case Z.SVG:{if(x1.has(i))return!1;break}case Z.MATHML:{if(E1.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Cs)}hasInListItemScope(t){return this.hasInDynamicScope(t,PI)}hasInButtonScope(t){return this.hasInDynamicScope(t,OI)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case Z.HTML:{if(rl.has(n))return!0;if(Cs.has(n))return!1;break}case Z.SVG:{if(x1.has(n))return!1;break}case Z.MATHML:{if(E1.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Z.HTML)switch(this.tagIDs[n]){case t:return!0;case h.TABLE:case h.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Z.HTML)switch(this.tagIDs[t]){case h.TBODY:case h.THEAD:case h.TFOOT:return!0;case h.TABLE:case h.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Z.HTML)switch(this.tagIDs[n]){case t:return!0;case h.OPTION:case h.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&b4.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&T1.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&T1.has(this.currentTagId);)this.pop()}}const ru=3;var wn;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(wn||(wn={}));const v1={type:wn.Marker};class VI{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o[s.name,s.value]));let a=0;for(let s=0;si.get(u.name)===u.value)&&(a+=1,a>=ru&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(v1)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:wn.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:wn.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(v1);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===wn.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===wn.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===wn.Element&&n.element===t)}}const ur={createDocument(){return{nodeName:"#document",mode:ln.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};ur.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(ur.isTextNode(n)){n.value+=t;return}}ur.appendChild(e,ur.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&ur.isTextNode(r)?r.value+=t:ur.insertBefore(e,ur.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function GI(e){return e.name===y4&&e.publicId===null&&(e.systemId===null||e.systemId===jI)}function KI(e){if(e.name!==y4)return ln.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===qI)return ln.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),WI.has(n))return ln.QUIRKS;let r=t===null?$I:T4;if(S1(n,r))return ln.QUIRKS;if(r=t===null?E4:YI,S1(n,r))return ln.LIMITED_QUIRKS}return ln.NO_QUIRKS}const A1={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},XI="definitionurl",QI="definitionURL",ZI=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),JI=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Z.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Z.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Z.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Z.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Z.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Z.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Z.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Z.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Z.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Z.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Z.XMLNS}]]),eN=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),tN=new Set([h.B,h.BIG,h.BLOCKQUOTE,h.BODY,h.BR,h.CENTER,h.CODE,h.DD,h.DIV,h.DL,h.DT,h.EM,h.EMBED,h.H1,h.H2,h.H3,h.H4,h.H5,h.H6,h.HEAD,h.HR,h.I,h.IMG,h.LI,h.LISTING,h.MENU,h.META,h.NOBR,h.OL,h.P,h.PRE,h.RUBY,h.S,h.SMALL,h.SPAN,h.STRONG,h.STRIKE,h.SUB,h.SUP,h.TABLE,h.TT,h.U,h.UL,h.VAR]);function nN(e){const t=e.tagID;return t===h.FONT&&e.attrs.some(({name:r})=>r===_r.COLOR||r===_r.SIZE||r===_r.FACE)||tN.has(t)}function x4(e){for(let t=0;t0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===Z.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,Z.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=R.TEXT}switchToPlaintextParsing(){this.insertionMode=R.TEXT,this.originalInsertionMode=R.IN_BODY,this.tokenizer.state=ft.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===H.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Z.HTML))switch(this.fragmentContextID){case h.TITLE:case h.TEXTAREA:{this.tokenizer.state=ft.RCDATA;break}case h.STYLE:case h.XMP:case h.IFRAME:case h.NOEMBED:case h.NOFRAMES:case h.NOSCRIPT:{this.tokenizer.state=ft.RAWTEXT;break}case h.SCRIPT:{this.tokenizer.state=ft.SCRIPT_DATA;break}case h.PLAINTEXT:{this.tokenizer.state=ft.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,Z.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Z.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(H.HTML,Z.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,h.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),a=r?i.lastIndexOf(r):i.length,s=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:u,endCol:l,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:u,endCol:l,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),a=n.type===Ie.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===h.SVG&&this.treeAdapter.getTagName(n)===H.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Z.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===h.MGLYPH||t.tagID===h.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,Z.HTML)}_processToken(t){switch(t.type){case Ie.CHARACTER:{this.onCharacter(t);break}case Ie.NULL_CHARACTER:{this.onNullCharacter(t);break}case Ie.COMMENT:{this.onComment(t);break}case Ie.DOCTYPE:{this.onDoctype(t);break}case Ie.START_TAG:{this._processStartTag(t);break}case Ie.END_TAG:{this.onEndTag(t);break}case Ie.EOF:{this.onEof(t);break}case Ie.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return sN(t,i,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===wn.Marker||this.openElements.contains(i.element)),r=n===-1?t-1:n-1;for(let i=r;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=R.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(h.P),this.openElements.popUntilTagNamePopped(h.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case h.TR:{this.insertionMode=R.IN_ROW;return}case h.TBODY:case h.THEAD:case h.TFOOT:{this.insertionMode=R.IN_TABLE_BODY;return}case h.CAPTION:{this.insertionMode=R.IN_CAPTION;return}case h.COLGROUP:{this.insertionMode=R.IN_COLUMN_GROUP;return}case h.TABLE:{this.insertionMode=R.IN_TABLE;return}case h.BODY:{this.insertionMode=R.IN_BODY;return}case h.FRAMESET:{this.insertionMode=R.IN_FRAMESET;return}case h.SELECT:{this._resetInsertionModeForSelect(t);return}case h.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case h.HTML:{this.insertionMode=this.headElement?R.AFTER_HEAD:R.BEFORE_HEAD;return}case h.TD:case h.TH:{if(t>0){this.insertionMode=R.IN_CELL;return}break}case h.HEAD:{if(t>0){this.insertionMode=R.IN_HEAD;return}break}}this.insertionMode=R.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===h.TEMPLATE)break;if(r===h.TABLE){this.insertionMode=R.IN_SELECT_IN_TABLE;return}}this.insertionMode=R.IN_SELECT}_isElementCausesFosterParenting(t){return S4.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case h.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Z.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case h.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return MI[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){zM(this,t);return}switch(this.insertionMode){case R.INITIAL:{Di(this,t);break}case R.BEFORE_HTML:{Gi(this,t);break}case R.BEFORE_HEAD:{Ki(this,t);break}case R.IN_HEAD:{Xi(this,t);break}case R.IN_HEAD_NO_SCRIPT:{Qi(this,t);break}case R.AFTER_HEAD:{Zi(this,t);break}case R.IN_BODY:case R.IN_CAPTION:case R.IN_CELL:case R.IN_TEMPLATE:{C4(this,t);break}case R.TEXT:case R.IN_SELECT:case R.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case R.IN_TABLE:case R.IN_TABLE_BODY:case R.IN_ROW:{iu(this,t);break}case R.IN_TABLE_TEXT:{R4(this,t);break}case R.IN_COLUMN_GROUP:{ws(this,t);break}case R.AFTER_BODY:{ks(this,t);break}case R.AFTER_AFTER_BODY:{us(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){HM(this,t);return}switch(this.insertionMode){case R.INITIAL:{Di(this,t);break}case R.BEFORE_HTML:{Gi(this,t);break}case R.BEFORE_HEAD:{Ki(this,t);break}case R.IN_HEAD:{Xi(this,t);break}case R.IN_HEAD_NO_SCRIPT:{Qi(this,t);break}case R.AFTER_HEAD:{Zi(this,t);break}case R.TEXT:{this._insertCharacters(t);break}case R.IN_TABLE:case R.IN_TABLE_BODY:case R.IN_ROW:{iu(this,t);break}case R.IN_COLUMN_GROUP:{ws(this,t);break}case R.AFTER_BODY:{ks(this,t);break}case R.AFTER_AFTER_BODY:{us(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){il(this,t);return}switch(this.insertionMode){case R.INITIAL:case R.BEFORE_HTML:case R.BEFORE_HEAD:case R.IN_HEAD:case R.IN_HEAD_NO_SCRIPT:case R.AFTER_HEAD:case R.IN_BODY:case R.IN_TABLE:case R.IN_CAPTION:case R.IN_COLUMN_GROUP:case R.IN_TABLE_BODY:case R.IN_ROW:case R.IN_CELL:case R.IN_SELECT:case R.IN_SELECT_IN_TABLE:case R.IN_TEMPLATE:case R.IN_FRAMESET:case R.AFTER_FRAMESET:{il(this,t);break}case R.IN_TABLE_TEXT:{_i(this,t);break}case R.AFTER_BODY:{bN(this,t);break}case R.AFTER_AFTER_BODY:case R.AFTER_AFTER_FRAMESET:{yN(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case R.INITIAL:{TN(this,t);break}case R.BEFORE_HEAD:case R.IN_HEAD:case R.IN_HEAD_NO_SCRIPT:case R.AFTER_HEAD:{this._err(t,$.misplacedDoctype);break}case R.IN_TABLE_TEXT:{_i(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,$.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?UM(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case R.INITIAL:{Di(this,t);break}case R.BEFORE_HTML:{EN(this,t);break}case R.BEFORE_HEAD:{vN(this,t);break}case R.IN_HEAD:{xn(this,t);break}case R.IN_HEAD_NO_SCRIPT:{CN(this,t);break}case R.AFTER_HEAD:{kN(this,t);break}case R.IN_BODY:{Lt(this,t);break}case R.IN_TABLE:{li(this,t);break}case R.IN_TABLE_TEXT:{_i(this,t);break}case R.IN_CAPTION:{SM(this,t);break}case R.IN_COLUMN_GROUP:{B0(this,t);break}case R.IN_TABLE_BODY:{eo(this,t);break}case R.IN_ROW:{to(this,t);break}case R.IN_CELL:{wM(this,t);break}case R.IN_SELECT:{L4(this,t);break}case R.IN_SELECT_IN_TABLE:{IM(this,t);break}case R.IN_TEMPLATE:{MM(this,t);break}case R.AFTER_BODY:{DM(this,t);break}case R.IN_FRAMESET:{_M(this,t);break}case R.AFTER_FRAMESET:{PM(this,t);break}case R.AFTER_AFTER_BODY:{BM(this,t);break}case R.AFTER_AFTER_FRAMESET:{FM(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?VM(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case R.INITIAL:{Di(this,t);break}case R.BEFORE_HTML:{xN(this,t);break}case R.BEFORE_HEAD:{SN(this,t);break}case R.IN_HEAD:{AN(this,t);break}case R.IN_HEAD_NO_SCRIPT:{wN(this,t);break}case R.AFTER_HEAD:{IN(this,t);break}case R.IN_BODY:{Js(this,t);break}case R.TEXT:{fM(this,t);break}case R.IN_TABLE:{ha(this,t);break}case R.IN_TABLE_TEXT:{_i(this,t);break}case R.IN_CAPTION:{AM(this,t);break}case R.IN_COLUMN_GROUP:{CM(this,t);break}case R.IN_TABLE_BODY:{al(this,t);break}case R.IN_ROW:{_4(this,t);break}case R.IN_CELL:{kM(this,t);break}case R.IN_SELECT:{P4(this,t);break}case R.IN_SELECT_IN_TABLE:{NM(this,t);break}case R.IN_TEMPLATE:{RM(this,t);break}case R.AFTER_BODY:{B4(this,t);break}case R.IN_FRAMESET:{LM(this,t);break}case R.AFTER_FRAMESET:{OM(this,t);break}case R.AFTER_AFTER_BODY:{us(this,t);break}}}onEof(t){switch(this.insertionMode){case R.INITIAL:{Di(this,t);break}case R.BEFORE_HTML:{Gi(this,t);break}case R.BEFORE_HEAD:{Ki(this,t);break}case R.IN_HEAD:{Xi(this,t);break}case R.IN_HEAD_NO_SCRIPT:{Qi(this,t);break}case R.AFTER_HEAD:{Zi(this,t);break}case R.IN_BODY:case R.IN_TABLE:case R.IN_CAPTION:case R.IN_COLUMN_GROUP:case R.IN_TABLE_BODY:case R.IN_ROW:case R.IN_CELL:case R.IN_SELECT:case R.IN_SELECT_IN_TABLE:{N4(this,t);break}case R.TEXT:{mM(this,t);break}case R.IN_TABLE_TEXT:{_i(this,t);break}case R.IN_TEMPLATE:{O4(this,t);break}case R.AFTER_BODY:case R.IN_FRAMESET:case R.AFTER_FRAMESET:case R.AFTER_AFTER_BODY:case R.AFTER_AFTER_FRAMESET:{O0(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===A.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case R.IN_HEAD:case R.IN_HEAD_NO_SCRIPT:case R.AFTER_HEAD:case R.TEXT:case R.IN_COLUMN_GROUP:case R.IN_SELECT:case R.IN_SELECT_IN_TABLE:case R.IN_FRAMESET:case R.AFTER_FRAMESET:{this._insertCharacters(t);break}case R.IN_BODY:case R.IN_CAPTION:case R.IN_CELL:case R.IN_TEMPLATE:case R.AFTER_BODY:case R.AFTER_AFTER_BODY:case R.AFTER_AFTER_FRAMESET:{A4(this,t);break}case R.IN_TABLE:case R.IN_TABLE_BODY:case R.IN_ROW:{iu(this,t);break}case R.IN_TABLE_TEXT:{M4(this,t);break}}}}function dN(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):I4(e,t),n}function hN(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function fN(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),u=o&&a>=lN;!o||u?(u&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=mN(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function mN(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function pN(e,t,n){const r=e.treeAdapter.getTagName(t),i=xi(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===h.TEMPLATE&&a===Z.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function gN(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function P0(e,t){for(let n=0;n=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function TN(e,t){e._setDocumentType(t);const n=t.forceQuirks?ln.QUIRKS:KI(t);GI(t)||e._err(t,$.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=R.BEFORE_HTML}function Di(e,t){e._err(t,$.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ln.QUIRKS),e.insertionMode=R.BEFORE_HTML,e._processToken(t)}function EN(e,t){t.tagID===h.HTML?(e._insertElement(t,Z.HTML),e.insertionMode=R.BEFORE_HEAD):Gi(e,t)}function xN(e,t){const n=t.tagID;(n===h.HTML||n===h.HEAD||n===h.BODY||n===h.BR)&&Gi(e,t)}function Gi(e,t){e._insertFakeRootElement(),e.insertionMode=R.BEFORE_HEAD,e._processToken(t)}function vN(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.HEAD:{e._insertElement(t,Z.HTML),e.headElement=e.openElements.current,e.insertionMode=R.IN_HEAD;break}default:Ki(e,t)}}function SN(e,t){const n=t.tagID;n===h.HEAD||n===h.BODY||n===h.HTML||n===h.BR?Ki(e,t):e._err(t,$.endTagWithoutMatchingOpenElement)}function Ki(e,t){e._insertFakeElement(H.HEAD,h.HEAD),e.headElement=e.openElements.current,e.insertionMode=R.IN_HEAD,e._processToken(t)}function xn(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:{e._appendElement(t,Z.HTML),t.ackSelfClosing=!0;break}case h.TITLE:{e._switchToTextParsing(t,ft.RCDATA);break}case h.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,ft.RAWTEXT):(e._insertElement(t,Z.HTML),e.insertionMode=R.IN_HEAD_NO_SCRIPT);break}case h.NOFRAMES:case h.STYLE:{e._switchToTextParsing(t,ft.RAWTEXT);break}case h.SCRIPT:{e._switchToTextParsing(t,ft.SCRIPT_DATA);break}case h.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=R.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(R.IN_TEMPLATE);break}case h.HEAD:{e._err(t,$.misplacedStartTagForHeadElement);break}default:Xi(e,t)}}function AN(e,t){switch(t.tagID){case h.HEAD:{e.openElements.pop(),e.insertionMode=R.AFTER_HEAD;break}case h.BODY:case h.BR:case h.HTML:{Xi(e,t);break}case h.TEMPLATE:{Ur(e,t);break}default:e._err(t,$.endTagWithoutMatchingOpenElement)}}function Ur(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==h.TEMPLATE&&e._err(t,$.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,$.endTagWithoutMatchingOpenElement)}function Xi(e,t){e.openElements.pop(),e.insertionMode=R.AFTER_HEAD,e._processToken(t)}function CN(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.BASEFONT:case h.BGSOUND:case h.HEAD:case h.LINK:case h.META:case h.NOFRAMES:case h.STYLE:{xn(e,t);break}case h.NOSCRIPT:{e._err(t,$.nestedNoscriptInHead);break}default:Qi(e,t)}}function wN(e,t){switch(t.tagID){case h.NOSCRIPT:{e.openElements.pop(),e.insertionMode=R.IN_HEAD;break}case h.BR:{Qi(e,t);break}default:e._err(t,$.endTagWithoutMatchingOpenElement)}}function Qi(e,t){const n=t.type===Ie.EOF?$.openElementsLeftAfterEof:$.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=R.IN_HEAD,e._processToken(t)}function kN(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.BODY:{e._insertElement(t,Z.HTML),e.framesetOk=!1,e.insertionMode=R.IN_BODY;break}case h.FRAMESET:{e._insertElement(t,Z.HTML),e.insertionMode=R.IN_FRAMESET;break}case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:case h.NOFRAMES:case h.SCRIPT:case h.STYLE:case h.TEMPLATE:case h.TITLE:{e._err(t,$.abandonedHeadElementChild),e.openElements.push(e.headElement,h.HEAD),xn(e,t),e.openElements.remove(e.headElement);break}case h.HEAD:{e._err(t,$.misplacedStartTagForHeadElement);break}default:Zi(e,t)}}function IN(e,t){switch(t.tagID){case h.BODY:case h.HTML:case h.BR:{Zi(e,t);break}case h.TEMPLATE:{Ur(e,t);break}default:e._err(t,$.endTagWithoutMatchingOpenElement)}}function Zi(e,t){e._insertFakeElement(H.BODY,h.BODY),e.insertionMode=R.IN_BODY,Zs(e,t)}function Zs(e,t){switch(t.type){case Ie.CHARACTER:{C4(e,t);break}case Ie.WHITESPACE_CHARACTER:{A4(e,t);break}case Ie.COMMENT:{il(e,t);break}case Ie.START_TAG:{Lt(e,t);break}case Ie.END_TAG:{Js(e,t);break}case Ie.EOF:{N4(e,t);break}}}function A4(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function C4(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function NN(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function MN(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function RN(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Z.HTML),e.insertionMode=R.IN_FRAMESET)}function DN(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,Z.HTML)}function _N(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&rl.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Z.HTML)}function LN(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,Z.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function PN(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,Z.HTML),n||(e.formElement=e.openElements.current))}function ON(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===h.LI&&i===h.LI||(n===h.DD||n===h.DT)&&(i===h.DD||i===h.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==h.ADDRESS&&i!==h.DIV&&i!==h.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,Z.HTML)}function BN(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,Z.HTML),e.tokenizer.state=ft.PLAINTEXT}function FN(e,t){e.openElements.hasInScope(h.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.framesetOk=!1}function HN(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(H.A);n&&(P0(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function zN(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function UN(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(h.NOBR)&&(P0(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Z.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function VN(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function jN(e,t){e.treeAdapter.getDocumentMode(e.document)!==ln.QUIRKS&&e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,Z.HTML),e.framesetOk=!1,e.insertionMode=R.IN_TABLE}function w4(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Z.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function k4(e){const t=p4(e,_r.TYPE);return t!=null&&t.toLowerCase()===oN}function qN(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Z.HTML),k4(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function $N(e,t){e._appendElement(t,Z.HTML),t.ackSelfClosing=!0}function WN(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._appendElement(t,Z.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function YN(e,t){t.tagName=H.IMG,t.tagID=h.IMG,w4(e,t)}function GN(e,t){e._insertElement(t,Z.HTML),e.skipNextNewLine=!0,e.tokenizer.state=ft.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=R.TEXT}function KN(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,ft.RAWTEXT)}function XN(e,t){e.framesetOk=!1,e._switchToTextParsing(t,ft.RAWTEXT)}function k1(e,t){e._switchToTextParsing(t,ft.RAWTEXT)}function QN(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===R.IN_TABLE||e.insertionMode===R.IN_CAPTION||e.insertionMode===R.IN_TABLE_BODY||e.insertionMode===R.IN_ROW||e.insertionMode===R.IN_CELL?R.IN_SELECT_IN_TABLE:R.IN_SELECT}function ZN(e,t){e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML)}function JN(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Z.HTML)}function eM(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(h.RTC),e._insertElement(t,Z.HTML)}function tM(e,t){e._reconstructActiveFormattingElements(),x4(t),L0(t),t.selfClosing?e._appendElement(t,Z.MATHML):e._insertElement(t,Z.MATHML),t.ackSelfClosing=!0}function nM(e,t){e._reconstructActiveFormattingElements(),v4(t),L0(t),t.selfClosing?e._appendElement(t,Z.SVG):e._insertElement(t,Z.SVG),t.ackSelfClosing=!0}function I1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML)}function Lt(e,t){switch(t.tagID){case h.I:case h.S:case h.B:case h.U:case h.EM:case h.TT:case h.BIG:case h.CODE:case h.FONT:case h.SMALL:case h.STRIKE:case h.STRONG:{zN(e,t);break}case h.A:{HN(e,t);break}case h.H1:case h.H2:case h.H3:case h.H4:case h.H5:case h.H6:{_N(e,t);break}case h.P:case h.DL:case h.OL:case h.UL:case h.DIV:case h.DIR:case h.NAV:case h.MAIN:case h.MENU:case h.ASIDE:case h.CENTER:case h.FIGURE:case h.FOOTER:case h.HEADER:case h.HGROUP:case h.DIALOG:case h.DETAILS:case h.ADDRESS:case h.ARTICLE:case h.SEARCH:case h.SECTION:case h.SUMMARY:case h.FIELDSET:case h.BLOCKQUOTE:case h.FIGCAPTION:{DN(e,t);break}case h.LI:case h.DD:case h.DT:{ON(e,t);break}case h.BR:case h.IMG:case h.WBR:case h.AREA:case h.EMBED:case h.KEYGEN:{w4(e,t);break}case h.HR:{WN(e,t);break}case h.RB:case h.RTC:{JN(e,t);break}case h.RT:case h.RP:{eM(e,t);break}case h.PRE:case h.LISTING:{LN(e,t);break}case h.XMP:{KN(e,t);break}case h.SVG:{nM(e,t);break}case h.HTML:{NN(e,t);break}case h.BASE:case h.LINK:case h.META:case h.STYLE:case h.TITLE:case h.SCRIPT:case h.BGSOUND:case h.BASEFONT:case h.TEMPLATE:{xn(e,t);break}case h.BODY:{MN(e,t);break}case h.FORM:{PN(e,t);break}case h.NOBR:{UN(e,t);break}case h.MATH:{tM(e,t);break}case h.TABLE:{jN(e,t);break}case h.INPUT:{qN(e,t);break}case h.PARAM:case h.TRACK:case h.SOURCE:{$N(e,t);break}case h.IMAGE:{YN(e,t);break}case h.BUTTON:{FN(e,t);break}case h.APPLET:case h.OBJECT:case h.MARQUEE:{VN(e,t);break}case h.IFRAME:{XN(e,t);break}case h.SELECT:{QN(e,t);break}case h.OPTION:case h.OPTGROUP:{ZN(e,t);break}case h.NOEMBED:case h.NOFRAMES:{k1(e,t);break}case h.FRAMESET:{RN(e,t);break}case h.TEXTAREA:{GN(e,t);break}case h.NOSCRIPT:{e.options.scriptingEnabled?k1(e,t):I1(e,t);break}case h.PLAINTEXT:{BN(e,t);break}case h.COL:case h.TH:case h.TD:case h.TR:case h.HEAD:case h.FRAME:case h.TBODY:case h.TFOOT:case h.THEAD:case h.CAPTION:case h.COLGROUP:break;default:I1(e,t)}}function rM(e,t){if(e.openElements.hasInScope(h.BODY)&&(e.insertionMode=R.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function iM(e,t){e.openElements.hasInScope(h.BODY)&&(e.insertionMode=R.AFTER_BODY,B4(e,t))}function aM(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function sM(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(h.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(h.FORM):n&&e.openElements.remove(n))}function oM(e){e.openElements.hasInButtonScope(h.P)||e._insertFakeElement(H.P,h.P),e._closePElement()}function uM(e){e.openElements.hasInListItemScope(h.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(h.LI),e.openElements.popUntilTagNamePopped(h.LI))}function lM(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function cM(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function dM(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function hM(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(H.BR,h.BR),e.openElements.pop(),e.framesetOk=!1}function I4(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==h.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function Js(e,t){switch(t.tagID){case h.A:case h.B:case h.I:case h.S:case h.U:case h.EM:case h.TT:case h.BIG:case h.CODE:case h.FONT:case h.NOBR:case h.SMALL:case h.STRIKE:case h.STRONG:{P0(e,t);break}case h.P:{oM(e);break}case h.DL:case h.UL:case h.OL:case h.DIR:case h.DIV:case h.NAV:case h.PRE:case h.MAIN:case h.MENU:case h.ASIDE:case h.BUTTON:case h.CENTER:case h.FIGURE:case h.FOOTER:case h.HEADER:case h.HGROUP:case h.DIALOG:case h.ADDRESS:case h.ARTICLE:case h.DETAILS:case h.SEARCH:case h.SECTION:case h.SUMMARY:case h.LISTING:case h.FIELDSET:case h.BLOCKQUOTE:case h.FIGCAPTION:{aM(e,t);break}case h.LI:{uM(e);break}case h.DD:case h.DT:{lM(e,t);break}case h.H1:case h.H2:case h.H3:case h.H4:case h.H5:case h.H6:{cM(e);break}case h.BR:{hM(e);break}case h.BODY:{rM(e,t);break}case h.HTML:{iM(e,t);break}case h.FORM:{sM(e);break}case h.APPLET:case h.OBJECT:case h.MARQUEE:{dM(e,t);break}case h.TEMPLATE:{Ur(e,t);break}default:I4(e,t)}}function N4(e,t){e.tmplInsertionModeStack.length>0?O4(e,t):O0(e,t)}function fM(e,t){var n;t.tagID===h.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function mM(e,t){e._err(t,$.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function iu(e,t){if(e.openElements.currentTagId!==void 0&&S4.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=R.IN_TABLE_TEXT,t.type){case Ie.CHARACTER:{R4(e,t);break}case Ie.WHITESPACE_CHARACTER:{M4(e,t);break}}else ka(e,t)}function pM(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Z.HTML),e.insertionMode=R.IN_CAPTION}function gM(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Z.HTML),e.insertionMode=R.IN_COLUMN_GROUP}function bM(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(H.COLGROUP,h.COLGROUP),e.insertionMode=R.IN_COLUMN_GROUP,B0(e,t)}function yM(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Z.HTML),e.insertionMode=R.IN_TABLE_BODY}function TM(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(H.TBODY,h.TBODY),e.insertionMode=R.IN_TABLE_BODY,eo(e,t)}function EM(e,t){e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function xM(e,t){k4(t)?e._appendElement(t,Z.HTML):ka(e,t),t.ackSelfClosing=!0}function vM(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Z.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function li(e,t){switch(t.tagID){case h.TD:case h.TH:case h.TR:{TM(e,t);break}case h.STYLE:case h.SCRIPT:case h.TEMPLATE:{xn(e,t);break}case h.COL:{bM(e,t);break}case h.FORM:{vM(e,t);break}case h.TABLE:{EM(e,t);break}case h.TBODY:case h.TFOOT:case h.THEAD:{yM(e,t);break}case h.INPUT:{xM(e,t);break}case h.CAPTION:{pM(e,t);break}case h.COLGROUP:{gM(e,t);break}default:ka(e,t)}}function ha(e,t){switch(t.tagID){case h.TABLE:{e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode());break}case h.TEMPLATE:{Ur(e,t);break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:case h.TBODY:case h.TD:case h.TFOOT:case h.TH:case h.THEAD:case h.TR:break;default:ka(e,t)}}function ka(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Zs(e,t),e.fosterParentingEnabled=n}function M4(e,t){e.pendingCharacterTokens.push(t)}function R4(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function _i(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===h.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===h.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===h.OPTGROUP&&e.openElements.pop();break}case h.OPTION:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop();break}case h.SELECT:{e.openElements.hasInSelectScope(h.SELECT)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode());break}case h.TEMPLATE:{Ur(e,t);break}}}function IM(e,t){const n=t.tagID;n===h.CAPTION||n===h.TABLE||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR||n===h.TD||n===h.TH?(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),e._processStartTag(t)):L4(e,t)}function NM(e,t){const n=t.tagID;n===h.CAPTION||n===h.TABLE||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR||n===h.TD||n===h.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),e.onEndTag(t)):P4(e,t)}function MM(e,t){switch(t.tagID){case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:case h.NOFRAMES:case h.SCRIPT:case h.STYLE:case h.TEMPLATE:case h.TITLE:{xn(e,t);break}case h.CAPTION:case h.COLGROUP:case h.TBODY:case h.TFOOT:case h.THEAD:{e.tmplInsertionModeStack[0]=R.IN_TABLE,e.insertionMode=R.IN_TABLE,li(e,t);break}case h.COL:{e.tmplInsertionModeStack[0]=R.IN_COLUMN_GROUP,e.insertionMode=R.IN_COLUMN_GROUP,B0(e,t);break}case h.TR:{e.tmplInsertionModeStack[0]=R.IN_TABLE_BODY,e.insertionMode=R.IN_TABLE_BODY,eo(e,t);break}case h.TD:case h.TH:{e.tmplInsertionModeStack[0]=R.IN_ROW,e.insertionMode=R.IN_ROW,to(e,t);break}default:e.tmplInsertionModeStack[0]=R.IN_BODY,e.insertionMode=R.IN_BODY,Lt(e,t)}}function RM(e,t){t.tagID===h.TEMPLATE&&Ur(e,t)}function O4(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):O0(e,t)}function DM(e,t){t.tagID===h.HTML?Lt(e,t):ks(e,t)}function B4(e,t){var n;if(t.tagID===h.HTML){if(e.fragmentContext||(e.insertionMode=R.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===h.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else ks(e,t)}function ks(e,t){e.insertionMode=R.IN_BODY,Zs(e,t)}function _M(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.FRAMESET:{e._insertElement(t,Z.HTML);break}case h.FRAME:{e._appendElement(t,Z.HTML),t.ackSelfClosing=!0;break}case h.NOFRAMES:{xn(e,t);break}}}function LM(e,t){t.tagID===h.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==h.FRAMESET&&(e.insertionMode=R.AFTER_FRAMESET))}function PM(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.NOFRAMES:{xn(e,t);break}}}function OM(e,t){t.tagID===h.HTML&&(e.insertionMode=R.AFTER_AFTER_FRAMESET)}function BM(e,t){t.tagID===h.HTML?Lt(e,t):us(e,t)}function us(e,t){e.insertionMode=R.IN_BODY,Zs(e,t)}function FM(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.NOFRAMES:{xn(e,t);break}}}function HM(e,t){t.chars=nt,e._insertCharacters(t)}function zM(e,t){e._insertCharacters(t),e.framesetOk=!1}function F4(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Z.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function UM(e,t){if(nN(t))F4(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Z.MATHML?x4(t):r===Z.SVG&&(rN(t),v4(t)),L0(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function VM(e,t){if(t.tagID===h.P||t.tagID===h.BR){F4(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Z.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}H.AREA,H.BASE,H.BASEFONT,H.BGSOUND,H.BR,H.COL,H.EMBED,H.FRAME,H.HR,H.IMG,H.INPUT,H.KEYGEN,H.LINK,H.META,H.PARAM,H.SOURCE,H.TRACK,H.WBR;const jM=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,qM=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),N1={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function H4(e,t){const n=eR(e),r=kp("type",{handlers:{root:$M,element:WM,text:YM,comment:U4,doctype:GM,raw:XM},unknown:QM}),i={parser:n?new w1(N1):w1.getFragmentParser(void 0,N1),handle(o){r(o,i)},stitches:!1,options:t||{}};r(e,i),vi(i,Pn());const a=n?i.parser.document:i.parser.getFragment(),s=$k(a,{file:i.options.file});return i.stitches&&$s(s,"comment",function(o,u,l){const c=o;if(c.value.stitch&&l&&u!==void 0){const d=l.children;return d[u]=c.value.stitch,u}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function z4(e,t){let n=-1;if(e)for(;++n4&&(t.parser.tokenizer.state=0);const n={type:Ie.CHARACTER,chars:e.value,location:Ia(e)};vi(t,Pn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function GM(e,t){const n={type:Ie.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Ia(e)};vi(t,Pn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function KM(e,t){t.stitches=!0;const n=tR(e);if("children"in e&&"children"in n){const r=H4({type:"root",children:e.children},t.options);n.children=r.children}U4({type:"comment",value:{stitch:n}},t)}function U4(e,t){const n=e.value,r={type:Ie.COMMENT,data:n,location:Ia(e)};vi(t,Pn(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function XM(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,V4(t,Pn(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(jM,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function QM(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))KM(n,t);else{let r="";throw qM.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function vi(e,t){V4(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=ft.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function V4(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function ZM(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===ft.PLAINTEXT)return;vi(t,Pn(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:Nn.html;i===Nn.html&&n==="svg"&&(i=Nn.svg);const a=sI({...e,children:[]},{space:i===Nn.svg?"svg":"html"}),s={type:Ie.START_TAG,tagName:n,tagID:xi(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:Ia(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function JM(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&mI.includes(n)||t.parser.tokenizer.state===ft.PLAINTEXT)return;vi(t,zs(e));const r={type:Ie.END_TAG,tagName:n,tagID:xi(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Ia(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===ft.RCDATA||t.parser.tokenizer.state===ft.RAWTEXT||t.parser.tokenizer.state===ft.SCRIPT_DATA)&&(t.parser.tokenizer.state=ft.DATA)}function eR(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Ia(e){const t=Pn(e)||{line:void 0,column:void 0,offset:void 0},n=zs(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function tR(e){return"children"in e?Or({...e,children:[]}):Or(e)}function nR(e){return function(t,n){return H4(t,{...e,file:n})}}const Cr=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Is={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Cr,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Cr],h2:[["className","sr-only"]],img:[...Cr,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Cr,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Cr],table:[...Cr],ul:[...Cr,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},lr={}.hasOwnProperty;function rR(e,t){let n={type:"root",children:[]};const r={schema:t?{...Is,...t}:Is,stack:[]},i=j4(r,e);return i&&(Array.isArray(i)?i.length===1?n=i[0]:n.children=i:n=i),n}function j4(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return iR(e,n);case"doctype":return aR(e,n);case"element":return sR(e,n);case"root":return oR(e,n);case"text":return uR(e,n)}}}function iR(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",r=n.indexOf("-->"),a={type:"comment",value:r<0?n:n.slice(0,r)};return Na(a,t),a}}function aR(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return Na(n,t),n}}function sR(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const r=q4(e,t.children),i=lR(e,t.properties);e.stack.pop();let a=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&lr.call(e.schema.ancestors,n))){const o=e.schema.ancestors[n];let u=-1;for(a=!1;++u1){let i=!1,a=0;for(;++a-1&&a>u||s>-1&&a>s||o>-1&&a>o)return!0;let l=-1;for(;++l4&&t.slice(0,4).toLowerCase()==="data")return n}function hR(e){return function(t){return rR(t,e)}}const fR=ue("article",{name:"MuiMarkdownRenderer",slot:"Root"})(({theme:e})=>{const{palette:t,spacing:n,typography:r}=e,i={"& pre":{overflowX:"auto"}};return{...r.body1,overflowWrap:"break-word",maxWidth:"100%",display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"stretch",gap:n(1),...i,"& think":{color:t.text.disabled},"& ul, & ol":{margin:0}}}),mR=e=>e.replace(//,` - -`).replace(/<\/think>/,` - - - -`),pR=e=>e.replace(/\\\[/g,"$$").replace(/\\\]/g,"$$").replace(/\\\(/g,"$").replace(/\\\)/g,"$"),gR={h1:e=>D.jsx(Ue,{...e,variant:"h1"}),h2:e=>D.jsx(Ue,{...e,variant:"h2"}),h3:e=>D.jsx(Ue,{...e,variant:"h3"}),h4:e=>D.jsx(Ue,{...e,variant:"h4"}),h5:e=>D.jsx(Ue,{...e,variant:"h5"}),h6:e=>D.jsx(Ue,{...e,variant:"h6"}),p:e=>D.jsx(Ue,{...e,variant:"body1"}),caption:e=>D.jsx(Ue,{...e,variant:"caption"}),table:e=>D.jsx(c5,{children:D.jsx(Jg,{...e})}),thead:p5,tbody:i5,tr:y5,th:hc,td:hc},bR=["script","iframe","style","form","input","textarea"],yR={...Is,tagNames:(Is.tagNames||[]).filter(e=>!bR.includes(e))},TR=({content:e})=>(e=mR(e),e=pR(e),D.jsx(fR,{children:D.jsx($v,{remarkPlugins:[xh,i1],rehypePlugins:[Vk,nR,[xh,i1,hR,yR]],components:gR,children:e})})),UR=()=>{const[{status:e,messages:t}]=H1(),n=O.useRef(null),r=O.useRef(null),[i,a]=O.useState(!0);O.useEffect(()=>{r.current?.scrollIntoView({behavior:"smooth"})},[t]);const s=cs(o=>{const{current:u}=n;u&&a(u.scrollHeight-u.scrollTop-u.clientHeight<10)});return D.jsxs(Ye,{ref:n,sx:{flex:1,overflowX:"hidden",overflowY:"auto",gap:4},onScroll:s,children:[t.map(o=>D.jsx(ER,{message:o},o.id)),e==="opened"&&D.jsx(zy,{size:"large"}),D.jsx(ci,{ref:r,sx:{width:"100%",height:0}})]})},ER=O.memo(({message:e})=>{const{role:t,content:n}=e,[{status:r},{generate:i}]=H1(),[a,s]=O.useState(!1);O.useEffect(()=>{const d=setTimeout(()=>{s(!1)},2e3);return()=>clearTimeout(d)},[a]);const o=cs(()=>{navigator.clipboard.writeText(n),s(!0)}),u=cs(()=>{i(e)}),l=t==="user"?"flex-end":"flex-start",c=t==="user"?D.jsx(Ue,{variant:"body1",sx:{px:2,py:1.5,borderRadius:"0.5rem",backgroundColor:"background.default"},children:n}):D.jsx(TR,{content:n});return D.jsx(Ye,{direction:"row",sx:{width:"100%",justifyContent:l},children:D.jsxs(Ye,{sx:{maxWidth:"100%",gap:1},children:[c,D.jsxs(Ye,{direction:"row",sx:{justifyContent:l,gap:2,color:"grey.600"},children:[D.jsx(ls,{variant:"text",startIcon:a?D.jsx(of,{}):D.jsx(uf,{}),onClick:o,children:"Copy"}),t==="assistant"&&D.jsx(ls,{variant:"text",startIcon:D.jsx(L5,{}),onClick:u,children:"Regenerate"})]},"actions")]})})}),xR=ue(Ye)(({theme:e})=>{const{spacing:t}=e;return{width:"100%",height:"100%",justifyContent:"flex-start",alignItems:"stretch",overflow:"hidden"}}),vR=ue(Ye)(({theme:e})=>{const{palette:t,spacing:n}=e;return{height:"100%",paddingBlock:n(3),paddingInline:n(2),gap:n(3),overflow:"hidden",transition:"width 0.3s ease-in-out",backgroundColor:t.grey[200]}}),SR=ue(Ye)(({theme:e})=>{const{spacing:t}=e;return{width:"100%",height:"4rem",flex:"none",paddingBlock:t(2),paddingInline:t(4),overflow:"hidden"}}),AR=ue(Ye)(({theme:e})=>{const{palette:t,spacing:n}=e;return{flex:1,alignItems:"center",overflow:"hidden",backgroundColor:t.grey[100]}}),CR=ue(Ye)(({theme:e})=>{const{spacing:t}=e;return{width:"48.75rem",maxWidth:"100%",height:"100%",gap:t(4),padding:t(4),overflow:"hidden"}}),VR=({children:e})=>{const[{modelName:t,clusterInfo:{status:n}}]=fa(),[r,{open:i}]=so({color:"primary",titleIcon:D.jsx(Ja,{}),title:"Reconnect your nodes",content:D.jsxs(Ye,{sx:{gap:7},children:[D.jsxs(Ye,{sx:{gap:1},children:[D.jsx(Ue,{variant:"body1",children:"Run join command on your new Node"}),D.jsx(gc,{})]}),D.jsxs(Ye,{sx:{gap:1},children:[D.jsx(Ue,{variant:"body1",children:"Check your live node status"}),D.jsx(Ue,{variant:"body2",color:"text.disabled",children:"After you successfully start the server on the nodes, you should see them show up on the below dashboard."}),D.jsx(Fa,{})]})]}),confirmLabel:"Finish"});O.useEffect(()=>{n==="waiting"&&i()},[n,i]);const[a,{open:s}]=so({color:"primary",title:"",content:D.jsxs(D.Fragment,{children:[D.jsx(Ue,{variant:"body1",children:"Cluster rebalancing"}),D.jsx(Ue,{variant:"body2",color:"text.disabled",children:"We have noticed one of your nodes has been disconnected. We are now rebalancing your inference requests onto working nodes. Please wait a few seconds for the cluster to rebalance itself."}),D.jsx(Fa,{variant:"menu"})]}),confirmLabel:"Finish"});O.useEffect(()=>{n==="rebalancing"&&s()},[n,s]);const[o,u]=O.useState(!0),[l,{open:c}]=so({color:"primary",titleIcon:D.jsx(v5,{}),title:"Add Nodes",content:D.jsxs(Ye,{sx:{gap:7},children:[D.jsxs(Ye,{sx:{gap:1},children:[D.jsx(Ue,{variant:"body1",children:"Run join command on your new Node"}),D.jsx(gc,{})]}),D.jsxs(Ye,{sx:{gap:1},children:[D.jsx(Ue,{variant:"body1",children:"Check your live node status"}),D.jsx(Ue,{variant:"body2",color:"text.disabled",children:"After you successfully start the server on the nodes, you should see them show up on the below dashboard."}),D.jsx(Fa,{})]})]}),confirmLabel:"Finish"});return D.jsxs(xR,{direction:"row",children:[D.jsxs(vR,{sx:{width:o?"21.875rem":"3.5rem"},children:[D.jsxs(Ye,{direction:"row",sx:{justifyContent:"flex-end",alignItems:"center",gap:2},children:[o&&D.jsx(V5,{}),D.jsx(ci,{sx:{flex:1}}),D.jsx(ul,{size:"em",sx:{fontSize:"1.5rem"},onClick:()=>u(d=>!d),children:o?D.jsx(w5,{}):D.jsx(I5,{})})]}),o&&D.jsxs(Ye,{sx:{gap:4},children:[D.jsxs(Ye,{direction:"row",sx:{gap:1,color:"text.disabled"},children:[D.jsx(O5,{size:"1.25rem"}),D.jsx(Ue,{variant:"body1",sx:{fontWeight:"bolder",textTransform:"uppercase"},children:"Cluster topology"})]}),D.jsx(Fa,{variant:"menu"}),D.jsx(ls,{color:"info",startIcon:D.jsx(D5,{}),onClick:c,children:"Add Nodes"})]})]}),D.jsxs(AR,{children:[D.jsx(SR,{direction:"row",children:D.jsx(Ue,{variant:"h2",fontWeight:500,children:t})}),D.jsx(CR,{children:e})]}),l,r,a]})},wR=ue(Ye)(({theme:e})=>{const{palette:t,spacing:n}=e;return{width:"100%",height:"100%",display:"flex",alignItems:"center",gap:n(3),padding:n(3),overflow:"hidden",backgroundColor:t.grey[100]}}),kR=ue(Ye)(({theme:e})=>{const{spacing:t}=e;return{width:"100%",flex:"none",justifyContent:"flex-start",alignItems:"center",gap:t(1)}}),IR=ue(ci)(({theme:e})=>{const{spacing:t}=e;return{position:"relative",flex:"1",width:"100%",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",overflowY:"hidden"}}),NR=ue(Ye)(({theme:e})=>{const{spacing:t}=e;return{width:"30rem",height:"100%",gap:t(7),overflow:"hidden"}}),MR=ue(Ye)(({theme:e})=>{const{spacing:t}=e;return{width:"calc((100% - 30rem) / 2 - 4rem)",height:"100%",overflow:"auto",position:"absolute",top:0,left:"2rem",alignItems:"flex-end",gap:t(2)}}),RR=ue(Ye)(({theme:e})=>{const{spacing:t}=e;return{width:"calc((100% - 30rem) / 2 - 4rem)",height:"100%",overflow:"auto",position:"absolute",top:0,right:"2rem",alignItems:"flex-start",gap:t(2)}}),jR=({children:e,contentStart:t,contentEnd:n=D.jsx(DR,{})})=>D.jsxs(wR,{children:[D.jsx(kR,{direction:"row",children:D.jsx(U5,{})}),D.jsxs(IR,{children:[D.jsx(NR,{children:e}),t&&D.jsx(MR,{children:t})||void 0,n&&D.jsx(RR,{children:n})||void 0]})]}),DR=()=>{const[{initNodesNumber:e,networkType:t,modelName:n,clusterInfo:r}]=fa();return null};export{UR as C,zy as D,V1 as F,D5 as I,gc as J,jR as M,Fa as N,nf as O,af as S,PR as a,LR as b,j1 as c,G1 as d,K1 as e,ll as f,VR as g,A3 as i,cl as u}; diff --git a/src/frontend/dist/assets/setup-CIsUOWdt.js b/src/frontend/dist/assets/setup-Cv5m9b5b.js similarity index 88% rename from src/frontend/dist/assets/setup-CIsUOWdt.js rename to src/frontend/dist/assets/setup-Cv5m9b5b.js index 365a4ca8..71bd035a 100644 --- a/src/frontend/dist/assets/setup-CIsUOWdt.js +++ b/src/frontend/dist/assets/setup-Cv5m9b5b.js @@ -1,6 +1,6 @@ -import{r as v,g as _,a as V,u as A,j as o,s as M,c as E,T as y,b as R,d as O,m as W,e as q,f as J,B as K,t as j,h as Q,i as Z,k as tt,l as k,I as G,n as et,o as ot,p as nt,S as rt}from"./index-DUqwdQtq.js";import{u as st,F as at,O as it,I as lt,M as dt,a as ut}from"./main-layout-CMeEP11X.js";function ct(t){return v.Children.toArray(t).filter(e=>v.isValidElement(e))}function pt(t){return V("MuiInputAdornment",t)}const F=_("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var U;const gt=(t,e)=>{const{ownerState:r}=t;return[e.root,e[`position${R(r.position)}`],r.disablePointerEvents===!0&&e.disablePointerEvents,e[r.variant]]},vt=t=>{const{classes:e,disablePointerEvents:r,hiddenLabel:u,position:a,size:c,variant:f}=t,l={root:["root",r&&"disablePointerEvents",a&&`position${R(a)}`,f,u&&"hiddenLabel",c&&`size${R(c)}`]};return O(l,pt,e)},ft=M("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:gt})(W(({theme:t})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${F.positionStart}&:not(.${F.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),X=v.forwardRef(function(e,r){const u=A({props:e,name:"MuiInputAdornment"}),{children:a,className:c,component:f="div",disablePointerEvents:l=!1,disableTypography:b=!1,position:x,variant:n,...g}=u,i=st()||{};let d=n;n&&i.variant,i&&!d&&(d=i.variant);const m={...u,hiddenLabel:i.hiddenLabel,size:i.size,disablePointerEvents:l,position:x,variant:d},C=vt(m);return o.jsx(at.Provider,{value:null,children:o.jsx(ft,{as:f,ownerState:m,className:E(C.root,c),ref:r,...g,children:typeof a=="string"&&!b?o.jsx(y,{color:"textSecondary",children:a}):o.jsxs(v.Fragment,{children:[x==="start"?U||(U=o.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,a]})})})}),H=v.createContext({}),Y=v.createContext(void 0);function xt(t,e){return e===void 0||t===void 0?!1:Array.isArray(e)?e.includes(t):t===e}const bt=t=>{const{classes:e,fullWidth:r,selected:u,disabled:a,size:c,color:f}=t,l={root:["root",u&&"selected",a&&"disabled",r&&"fullWidth",`size${R(c)}`,f]};return O(l,J,e)},ht=M(K,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`size${R(r.size)}`]]}})(W(({theme:t})=>({...t.typography.button,borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active,[`&.${j.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${j.selected}`]:{color:(t.vars||t).palette.text.primary,backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity)}}}}},...Object.entries(t.palette).filter(Q()).map(([e])=>({props:{color:e},style:{[`&.${j.selected}`]:{color:(t.vars||t).palette[e].main,backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:t.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:t.typography.pxToRem(15)}}]}))),D=v.forwardRef(function(e,r){const{value:u,...a}=v.useContext(H),c=v.useContext(Y),f=q({...a,selected:xt(e.value,u)},e),l=A({props:f,name:"MuiToggleButton"}),{children:b,className:x,color:n="standard",disabled:g=!1,disableFocusRipple:i=!1,fullWidth:d=!1,onChange:m,onClick:C,selected:B,size:N="medium",value:T,...z}=l,w={...l,color:n,disabled:g,disableFocusRipple:i,fullWidth:d,size:N},L=bt(w),P=p=>{C&&(C(p,T),p.defaultPrevented)||m&&m(p,T)},h=c||"";return o.jsx(ht,{className:E(a.className,L.root,x,h),disabled:g,focusRipple:!i,ref:r,onClick:P,onChange:m,value:T,ownerState:w,"aria-pressed":B,...z,children:b})});function mt(t){return V("MuiToggleButtonGroup",t)}const s=_("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),Bt=t=>{const{classes:e,orientation:r,fullWidth:u,disabled:a}=t,c={root:["root",r,u&&"fullWidth"],grouped:["grouped",`grouped${R(r)}`,a&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return O(c,mt,e)},yt=M("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${s.grouped}`]:e.grouped},{[`& .${s.grouped}`]:e[`grouped${R(r.orientation)}`]},{[`& .${s.firstButton}`]:e.firstButton},{[`& .${s.lastButton}`]:e.lastButton},{[`& .${s.middleButton}`]:e.middleButton},e.root,r.orientation==="vertical"&&e.vertical,r.fullWidth&&e.fullWidth]}})(W(({theme:t})=>({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${s.grouped}`]:{[`&.${s.selected} + .${s.grouped}.${s.selected}`]:{borderTop:0,marginTop:0}},[`& .${s.firstButton},& .${s.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${s.lastButton},& .${s.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${s.lastButton}.${j.disabled},& .${s.middleButton}.${j.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${s.grouped}`]:{[`&.${s.selected} + .${s.grouped}.${s.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${s.firstButton},& .${s.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${s.lastButton},& .${s.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${s.lastButton}.${j.disabled},& .${s.middleButton}.${j.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),Ct=v.forwardRef(function(e,r){const u=A({props:e,name:"MuiToggleButtonGroup"}),{children:a,className:c,color:f="standard",disabled:l=!1,exclusive:b=!1,fullWidth:x=!1,onChange:n,orientation:g="horizontal",size:i="medium",value:d,...m}=u,C={...u,disabled:l,fullWidth:x,orientation:g,size:i},B=Bt(C),N=v.useCallback((h,p)=>{if(!n)return;const S=d&&d.indexOf(p);let I;d&&S>=0?(I=d.slice(),I.splice(S,1)):I=d?d.concat(p):[p],n(h,I)},[n,d]),T=v.useCallback((h,p)=>{n&&n(h,d===p?null:p)},[n,d]),z=v.useMemo(()=>({className:B.grouped,onChange:b?T:N,value:d,size:i,fullWidth:x,color:f,disabled:l}),[B.grouped,b,T,N,d,i,x,f,l]),w=ct(a),L=w.length,P=h=>{const p=h===0,S=h===L-1;return p&&S?"":p?B.firstButton:S?B.lastButton:B.middleButton};return o.jsx(yt,{role:"group",className:E(B.root,c),ref:r,ownerState:C,...m,children:o.jsx(H.Provider,{value:z,children:w.map((h,p)=>o.jsx(Y.Provider,{value:P(p),children:h},p))})})});/** +import{r as v,g as _,a as V,u as A,j as o,s as M,c as E,T as y,b as R,d as O,m as W,e as q,f as J,B as K,t as j,h as Q,i as Z,k as tt,l as k,I as G,n as et,o as ot,p as nt,S as rt}from"./index-CVJoPuDa.js";import{u as st,F as at,O as it,I as lt,M as dt,a as ut}from"./main-layout-CE1joJ3-.js";function ct(t){return v.Children.toArray(t).filter(e=>v.isValidElement(e))}function pt(t){return V("MuiInputAdornment",t)}const F=_("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var U;const gt=(t,e)=>{const{ownerState:r}=t;return[e.root,e[`position${R(r.position)}`],r.disablePointerEvents===!0&&e.disablePointerEvents,e[r.variant]]},vt=t=>{const{classes:e,disablePointerEvents:r,hiddenLabel:u,position:a,size:c,variant:f}=t,l={root:["root",r&&"disablePointerEvents",a&&`position${R(a)}`,f,u&&"hiddenLabel",c&&`size${R(c)}`]};return O(l,pt,e)},ft=M("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:gt})(W(({theme:t})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${F.positionStart}&:not(.${F.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),X=v.forwardRef(function(e,r){const u=A({props:e,name:"MuiInputAdornment"}),{children:a,className:c,component:f="div",disablePointerEvents:l=!1,disableTypography:b=!1,position:x,variant:n,...g}=u,i=st()||{};let d=n;n&&i.variant,i&&!d&&(d=i.variant);const m={...u,hiddenLabel:i.hiddenLabel,size:i.size,disablePointerEvents:l,position:x,variant:d},C=vt(m);return o.jsx(at.Provider,{value:null,children:o.jsx(ft,{as:f,ownerState:m,className:E(C.root,c),ref:r,...g,children:typeof a=="string"&&!b?o.jsx(y,{color:"textSecondary",children:a}):o.jsxs(v.Fragment,{children:[x==="start"?U||(U=o.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,a]})})})}),H=v.createContext({}),Y=v.createContext(void 0);function xt(t,e){return e===void 0||t===void 0?!1:Array.isArray(e)?e.includes(t):t===e}const bt=t=>{const{classes:e,fullWidth:r,selected:u,disabled:a,size:c,color:f}=t,l={root:["root",u&&"selected",a&&"disabled",r&&"fullWidth",`size${R(c)}`,f]};return O(l,J,e)},ht=M(K,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`size${R(r.size)}`]]}})(W(({theme:t})=>({...t.typography.button,borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active,[`&.${j.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${j.selected}`]:{color:(t.vars||t).palette.text.primary,backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity)}}}}},...Object.entries(t.palette).filter(Q()).map(([e])=>({props:{color:e},style:{[`&.${j.selected}`]:{color:(t.vars||t).palette[e].main,backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:t.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:t.typography.pxToRem(15)}}]}))),D=v.forwardRef(function(e,r){const{value:u,...a}=v.useContext(H),c=v.useContext(Y),f=q({...a,selected:xt(e.value,u)},e),l=A({props:f,name:"MuiToggleButton"}),{children:b,className:x,color:n="standard",disabled:g=!1,disableFocusRipple:i=!1,fullWidth:d=!1,onChange:m,onClick:C,selected:B,size:N="medium",value:T,...z}=l,w={...l,color:n,disabled:g,disableFocusRipple:i,fullWidth:d,size:N},L=bt(w),P=p=>{C&&(C(p,T),p.defaultPrevented)||m&&m(p,T)},h=c||"";return o.jsx(ht,{className:E(a.className,L.root,x,h),disabled:g,focusRipple:!i,ref:r,onClick:P,onChange:m,value:T,ownerState:w,"aria-pressed":B,...z,children:b})});function mt(t){return V("MuiToggleButtonGroup",t)}const s=_("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),Bt=t=>{const{classes:e,orientation:r,fullWidth:u,disabled:a}=t,c={root:["root",r,u&&"fullWidth"],grouped:["grouped",`grouped${R(r)}`,a&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return O(c,mt,e)},yt=M("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${s.grouped}`]:e.grouped},{[`& .${s.grouped}`]:e[`grouped${R(r.orientation)}`]},{[`& .${s.firstButton}`]:e.firstButton},{[`& .${s.lastButton}`]:e.lastButton},{[`& .${s.middleButton}`]:e.middleButton},e.root,r.orientation==="vertical"&&e.vertical,r.fullWidth&&e.fullWidth]}})(W(({theme:t})=>({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${s.grouped}`]:{[`&.${s.selected} + .${s.grouped}.${s.selected}`]:{borderTop:0,marginTop:0}},[`& .${s.firstButton},& .${s.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${s.lastButton},& .${s.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${s.lastButton}.${j.disabled},& .${s.middleButton}.${j.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${s.grouped}`]:{[`&.${s.selected} + .${s.grouped}.${s.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${s.firstButton},& .${s.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${s.lastButton},& .${s.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${s.lastButton}.${j.disabled},& .${s.middleButton}.${j.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),Ct=v.forwardRef(function(e,r){const u=A({props:e,name:"MuiToggleButtonGroup"}),{children:a,className:c,color:f="standard",disabled:l=!1,exclusive:b=!1,fullWidth:x=!1,onChange:n,orientation:g="horizontal",size:i="medium",value:d,...m}=u,C={...u,disabled:l,fullWidth:x,orientation:g,size:i},B=Bt(C),N=v.useCallback((h,p)=>{if(!n)return;const S=d&&d.indexOf(p);let I;d&&S>=0?(I=d.slice(),I.splice(S,1)):I=d?d.concat(p):[p],n(h,I)},[n,d]),T=v.useCallback((h,p)=>{n&&n(h,d===p?null:p)},[n,d]),z=v.useMemo(()=>({className:B.grouped,onChange:b?T:N,value:d,size:i,fullWidth:x,color:f,disabled:l}),[B.grouped,b,T,N,d,i,x,f,l]),w=ct(a),L=w.length,P=h=>{const p=h===0,S=h===L-1;return p&&S?"":p?B.firstButton:S?B.lastButton:B.middleButton};return o.jsx(yt,{role:"group",className:E(B.root,c),ref:r,ownerState:C,...m,children:o.jsx(H.Provider,{value:z,children:w.map((h,p)=>o.jsx(Y.Provider,{value:P(p),children:h},p))})})});/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const $t=[["path",{d:"M5 12l14 0",key:"svg-0"}]],jt=Z("outline","minus","Minus",$t),Rt=({inputRef:t,slotProps:e,onChange:r,...u})=>{const a=v.useRef(null),c=tt(a,t),f=k(n=>{n.target.value=`${Math.max(0,parseInt(n.target.value)||0)}`,r?.(n)}),l=k(n=>{if(r){const g={target:{value:n.toString()},currentTarget:{value:n.toString()},type:"change",bubbles:!0,cancelable:!0,preventDefault:()=>{},stopPropagation:()=>{}};r(g)}}),b=k(()=>{const{current:n}=a;if(!n)return;const g=Number(n.value),i=Math.max(0,g-1);n.value=i.toString(),l(i)}),x=k(()=>{const{current:n}=a;if(!n)return;const g=Number(n.value),i=Math.max(0,g+1);n.value=i.toString(),l(i)});return o.jsx(it,{...u,type:"number",inputRef:c,onChange:f,startAdornment:o.jsx(X,{position:"start",children:o.jsx(G,{onClick:b,children:o.jsx(jt,{})})}),endAdornment:o.jsx(X,{position:"end",children:o.jsx(G,{onClick:x,children:o.jsx(lt,{})})}),slotProps:{input:{step:1,sx:{textAlign:"center",...e?.input?.sx},min:0,...e?.input},...e}})},$=M(rt)(({theme:t})=>{const{spacing:e}=t;return{overflowY:"auto"}});function St(){const[{networkType:t,initNodesNumber:e,modelName:r,modelInfoList:u},{setNetworkType:a,setInitNodesNumber:c,setModelName:f,init:l}]=et(),b=ot(),x=k(async()=>{await l(),await b("/join")});return o.jsxs(dt,{children:[o.jsx(y,{variant:"h1",children:"Build Your Own AI Cluster"}),o.jsxs($,{gap:2.5,children:[o.jsxs($,{gap:.5,children:[o.jsx(y,{variant:"body1",children:"Step 1 - Specify the initial number of worker nodes to join"}),o.jsx(y,{variant:"body2",color:"text.secondary",fontWeight:"regular",children:"XXX Explainations here"})]}),o.jsxs($,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:2,children:[o.jsx(y,{color:"text.secondary",children:"Node Number"}),o.jsx(Rt,{sx:{width:"10rem"},value:e,onChange:n=>c(Number(n.target.value))})]}),o.jsxs($,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:2,children:[o.jsx(y,{color:"text.secondary",children:"Are you nodes within the same local network?"}),o.jsxs(Ct,{sx:{width:"10rem"},exclusive:!0,value:t,onChange:(n,g)=>g&&a(g),children:[o.jsx(D,{value:"local",children:"Local"}),o.jsx(D,{value:"remote",children:"Remote"})]})]})]}),o.jsxs($,{gap:2.5,children:[o.jsxs($,{gap:.5,children:[o.jsx(y,{variant:"body1",children:"Step 2 - Select the model you would like to host"}),o.jsx(y,{variant:"body2",color:"text.secondary",fontWeight:"regular",children:"XXX Explainations here"})]}),o.jsx(ut,{})]}),o.jsx($,{direction:"row",justifyContent:"flex-end",alignItems:"center",gap:2,children:o.jsx(nt,{onClick:x,children:"Continue"})})]})}export{St as default}; + */const $t=[["path",{d:"M5 12l14 0",key:"svg-0"}]],jt=Z("outline","minus","Minus",$t),Rt=({inputRef:t,slotProps:e,onChange:r,...u})=>{const a=v.useRef(null),c=tt(a,t),f=k(n=>{n.target.value=`${Math.max(0,parseInt(n.target.value)||0)}`,r?.(n)}),l=k(n=>{if(r){const g={target:{value:n.toString()},currentTarget:{value:n.toString()},type:"change",bubbles:!0,cancelable:!0,preventDefault:()=>{},stopPropagation:()=>{}};r(g)}}),b=k(()=>{const{current:n}=a;if(!n)return;const g=Number(n.value),i=Math.max(0,g-1);n.value=i.toString(),l(i)}),x=k(()=>{const{current:n}=a;if(!n)return;const g=Number(n.value),i=Math.max(0,g+1);n.value=i.toString(),l(i)});return o.jsx(it,{...u,type:"number",inputRef:c,onChange:f,startAdornment:o.jsx(X,{position:"start",children:o.jsx(G,{onClick:b,children:o.jsx(jt,{})})}),endAdornment:o.jsx(X,{position:"end",children:o.jsx(G,{onClick:x,children:o.jsx(lt,{})})}),slotProps:{input:{step:1,sx:{textAlign:"center",...e?.input?.sx},min:0,...e?.input},...e}})},$=M(rt)(({theme:t})=>{const{spacing:e}=t;return{overflowY:"auto"}});function St(){const[{networkType:t,initNodesNumber:e,modelName:r,modelInfoList:u},{setNetworkType:a,setInitNodesNumber:c,setModelName:f,init:l}]=et(),b=ot(),x=k(async()=>{await l(),await b("/join")});return o.jsxs(dt,{children:[o.jsx(y,{variant:"h1",children:"Build Your Own AI Cluster"}),o.jsxs($,{gap:2.5,children:[o.jsxs($,{gap:.5,children:[o.jsx(y,{variant:"body1",children:"Step 1 - Specify the initial number of worker nodes to join"}),o.jsx(y,{variant:"body2",color:"text.secondary",fontWeight:"regular",children:"XXX Explainations here"})]}),o.jsxs($,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:2,children:[o.jsx(y,{color:"text.secondary",children:"Node Number"}),o.jsx(Rt,{sx:{width:"10rem",boxShadow:"none",bgcolor:"transparent"},slotProps:{root:{sx:{bgcolor:"transparent","&:hover":{bgcolor:"transparent"},"&:focus-within":{bgcolor:"transparent"}}},input:{sx:{bgcolor:"transparent !important","&:focus":{outline:"none"}}}},value:e,onChange:n=>c(Number(n.target.value))})]}),o.jsxs($,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:2,children:[o.jsx(y,{color:"text.secondary",children:"Are you nodes within the same local network?"}),o.jsxs(Ct,{sx:{width:"10rem"},exclusive:!0,value:t,onChange:(n,g)=>g&&a(g),children:[o.jsx(D,{value:"local",children:"Local"}),o.jsx(D,{value:"remote",children:"Remote"})]})]})]}),o.jsxs($,{gap:2.5,children:[o.jsxs($,{gap:.5,children:[o.jsx(y,{variant:"body1",children:"Step 2 - Select the model you would like to host"}),o.jsx(y,{variant:"body2",color:"text.secondary",fontWeight:"regular",children:"XXX Explainations here"})]}),o.jsx(ut,{})]}),o.jsx($,{direction:"row",justifyContent:"flex-end",alignItems:"center",gap:2,children:o.jsx(nt,{onClick:x,children:"Continue"})})]})}export{St as default}; diff --git a/src/frontend/dist/index.html b/src/frontend/dist/index.html index cba9b903..8a513b72 100644 --- a/src/frontend/dist/index.html +++ b/src/frontend/dist/index.html @@ -5,7 +5,7 @@ Parallax Open Source - + diff --git a/src/frontend/src/components/common/drawer-layout.tsx b/src/frontend/src/components/common/drawer-layout.tsx index a0678650..bf53271f 100644 --- a/src/frontend/src/components/common/drawer-layout.tsx +++ b/src/frontend/src/components/common/drawer-layout.tsx @@ -1,5 +1,5 @@ import { useEffect, useState, type FC, type PropsWithChildren } from 'react'; -import { Box, Button, IconButton, Stack, styled, Typography } from '@mui/material'; +import { Box, Button, IconButton, Stack, styled, Tooltip, Typography } from '@mui/material'; import { useCluster } from '../../services'; import { useAlertDialog } from '../mui'; import { IconBrandGradient } from '../brand'; @@ -67,7 +67,7 @@ const DrawerLayoutContent = styled(Stack)(({ theme }) => { width: '48.75rem', maxWidth: '100%', height: '100%', - gap: spacing(4), + gap: spacing(2), padding: spacing(4), overflow: 'hidden', }; @@ -160,17 +160,85 @@ export const DrawerLayout: FC = ({ children }) => { - {sidebarExpanded && } - - setMenuOpen((prev) => !prev)} - > - {sidebarExpanded ? - - : } - + {sidebarExpanded ? + <> + + + + setMenuOpen((prev) => !prev)} + > + + + + + : <> + + + + + + + setMenuOpen((prev) => !prev)} + > + + + + + + } {sidebarExpanded && ( diff --git a/src/frontend/src/components/inputs/chat-input.tsx b/src/frontend/src/components/inputs/chat-input.tsx index 086982b3..31b39ffb 100644 --- a/src/frontend/src/components/inputs/chat-input.tsx +++ b/src/frontend/src/components/inputs/chat-input.tsx @@ -23,7 +23,14 @@ export const ChatInput: FC = () => { const onKeyDown = useRefCallback((e) => { if (e.key === 'Enter' && !e.shiftKey) { e.preventDefault(); - generate(); + const ret = generate(); + // eslint-disable-next-line @typescript-eslint/no-explicit-any + if (typeof ret !== 'undefined' && ret !== null && typeof (ret as any).then === 'function') { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (ret as Promise).then(() => setInput('')); + } else { + setInput(''); + } } }); @@ -42,7 +49,20 @@ export const ChatInput: FC = () => { onKeyDown={onKeyDown} slotProps={{ input: { - sx: { flexDirection: 'column' }, + sx: { + border: '1px solid', + borderColor: 'grey.300', + borderRadius: 2, + boxShadow: '2px 2px 4px rgba(0,0,0,0.05)', + flexDirection: 'column', + '& textarea': { + scrollbarWidth: 'none', // Firefox + msOverflowStyle: 'none', // IE, Edge + '&::-webkit-scrollbar': { + display: 'none', // Chrome, Safari + }, + }, + }, endAdornment: ( - {role === 'assistant' && ( - - )} - + {showCopy && ( + + + {copied ? : } + + + )} + + {showRegen && ( + + + + + + )} + + )} ); diff --git a/src/frontend/src/pages/setup.tsx b/src/frontend/src/pages/setup.tsx index 09c2dab7..71d2a86c 100644 --- a/src/frontend/src/pages/setup.tsx +++ b/src/frontend/src/pages/setup.tsx @@ -57,7 +57,22 @@ export default function PageSetup() { Node Number 也透明 + '&:focus': { outline: 'none' }, + }, + }, + }} value={initNodesNumber} onChange={(e) => setInitNodesNumber(Number(e.target.value))} /> From af2ac5ee11ffd8964f496140c9c184bdc2f182c2 Mon Sep 17 00:00:00 2001 From: yuyin-zhang <106600353+yuyin-zhang@users.noreply.github.com> Date: Tue, 30 Sep 2025 01:00:15 +1000 Subject: [PATCH 2/9] fix: icon size --- src/frontend/src/components/inputs/node-list.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontend/src/components/inputs/node-list.tsx b/src/frontend/src/components/inputs/node-list.tsx index 5408d494..033654ca 100644 --- a/src/frontend/src/components/inputs/node-list.tsx +++ b/src/frontend/src/components/inputs/node-list.tsx @@ -123,6 +123,7 @@ const Node: FC<{ variant: NodeListVariant; node?: NodeInfo }> = ({ variant, node sx={{ color: palette.grey[800], backgroundColor: palette.grey[250], + fontSize: '1.42rem', }} > From 2f4a37c3e8199ddab7c7b03f0bd64a27986ad896 Mon Sep 17 00:00:00 2001 From: yuyin-zhang <106600353+yuyin-zhang@users.noreply.github.com> Date: Tue, 30 Sep 2025 03:02:57 +1000 Subject: [PATCH 3/9] fix: ui issues --- .../{chat-Dy7b1kF1.js => chat-CCbYFHrx.js} | 4 +- .../{index-CVJoPuDa.js => index-v4ef5gIt.js} | 26 ++-- .../{join-DO7fVZkU.js => join-B_6EnepF.js} | 2 +- ...ut-CE1joJ3-.js => main-layout-BAzhIrTg.js} | 116 ++++++++-------- .../{setup-Cv5m9b5b.js => setup-D6yQPS_R.js} | 4 +- src/frontend/dist/index.html | 2 +- .../src/components/common/drawer-layout.tsx | 57 ++++++-- .../src/components/common/network-left.svg | 1 + .../src/components/inputs/chat-input.tsx | 4 +- .../src/components/inputs/chat-markdown.tsx | 1 + .../src/components/inputs/chat-messages.tsx | 127 ++++++++++-------- .../src/components/inputs/node-list.tsx | 36 ++--- src/frontend/src/pages/setup.tsx | 4 +- 13 files changed, 219 insertions(+), 165 deletions(-) rename src/frontend/dist/assets/{chat-Dy7b1kF1.js => chat-CCbYFHrx.js} (75%) rename src/frontend/dist/assets/{index-CVJoPuDa.js => index-v4ef5gIt.js} (98%) rename src/frontend/dist/assets/{join-DO7fVZkU.js => join-B_6EnepF.js} (94%) rename src/frontend/dist/assets/{main-layout-CE1joJ3-.js => main-layout-BAzhIrTg.js} (68%) rename src/frontend/dist/assets/{setup-Cv5m9b5b.js => setup-D6yQPS_R.js} (90%) create mode 100644 src/frontend/src/components/common/network-left.svg diff --git a/src/frontend/dist/assets/chat-Dy7b1kF1.js b/src/frontend/dist/assets/chat-CCbYFHrx.js similarity index 75% rename from src/frontend/dist/assets/chat-Dy7b1kF1.js rename to src/frontend/dist/assets/chat-CCbYFHrx.js index 9d311104..21e6456e 100644 --- a/src/frontend/dist/assets/chat-Dy7b1kF1.js +++ b/src/frontend/dist/assets/chat-CCbYFHrx.js @@ -1,4 +1,4 @@ -import{a as A,g as N,r as x,u as H,j as a,s as T,c as W,b as z,d as U,m as V,h as Te,q as ze,v as Le,w as I,i as ee,n as Me,x as Re,l as je,S as ne,p as le}from"./index-CVJoPuDa.js";import{i as Z,b as qe,c as ie,F as $e,u as te,f as re,O as Ae,d as Ne,e as He,S as We,D as Ue,g as Ee,C as De}from"./main-layout-CE1joJ3-.js";function Oe(e){return A("MuiFormControl",e)}N("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Be=e=>{const{classes:t,margin:r,fullWidth:o}=e,s={root:["root",r!=="none"&&`margin${z(r)}`,o&&"fullWidth"]};return U(s,Oe,t)},_e=T("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${z(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ke=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormControl"}),{children:s,className:l,color:i="primary",component:u="div",disabled:n=!1,error:d=!1,focused:c,fullWidth:b=!1,hiddenLabel:h=!1,margin:g="none",required:f=!1,size:m="medium",variant:p="outlined",...y}=o,P={...o,color:i,component:u,disabled:n,error:d,fullWidth:b,hiddenLabel:h,margin:g,required:f,size:m,variant:p},G=Be(P),[F,J]=x.useState(()=>{let C=!1;return s&&x.Children.forEach(s,v=>{if(!Z(v,["Input","Select"]))return;const j=Z(v,["Select"])?v.props.input:v;j&&qe(j.props)&&(C=!0)}),C}),[E,L]=x.useState(()=>{let C=!1;return s&&x.Children.forEach(s,v=>{Z(v,["Input","Select"])&&(ie(v.props,!0)||ie(v.props.inputProps,!0))&&(C=!0)}),C}),[D,M]=x.useState(!1);n&&D&&M(!1);const O=c!==void 0&&!n?c:D;let B;x.useRef(!1);const _=x.useCallback(()=>{L(!0)},[]),R=x.useCallback(()=>{L(!1)},[]),Q=x.useMemo(()=>({adornedStart:F,setAdornedStart:J,color:i,disabled:n,error:d,filled:E,focused:O,fullWidth:b,hiddenLabel:h,size:m,onBlur:()=>{M(!1)},onFocus:()=>{M(!0)},onEmpty:R,onFilled:_,registerEffect:B,required:f,variant:p}),[F,i,n,d,E,O,b,h,B,R,_,f,m,p]);return a.jsx($e.Provider,{value:Q,children:a.jsx(_e,{as:u,ownerState:P,className:W(G.root,l),ref:r,...y,children:s})})});function Ve(e){return A("MuiFormHelperText",e)}const de=N("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ce;const Ge=e=>{const{classes:t,contained:r,size:o,disabled:s,error:l,filled:i,focused:u,required:n}=e,d={root:["root",s&&"disabled",l&&"error",o&&`size${z(o)}`,r&&"contained",u&&"focused",i&&"filled",n&&"required"]};return U(d,Ve,t)},Je=T("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${z(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${de.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${de.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Qe=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormHelperText"}),{children:s,className:l,component:i="p",disabled:u,error:n,filled:d,focused:c,margin:b,required:h,variant:g,...f}=o,m=te(),p=re({props:o,muiFormControl:m,states:["variant","size","disabled","error","filled","focused","required"]}),y={...o,component:i,contained:p.variant==="filled"||p.variant==="outlined",variant:p.variant,size:p.size,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required};delete y.ownerState;const P=Ge(y);return a.jsx(Je,{as:i,className:W(P.root,l),ref:r,...f,ownerState:y,children:s===" "?ce||(ce=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):s})});function Xe(e){return A("MuiFormLabel",e)}const $=N("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ye=e=>{const{classes:t,color:r,focused:o,disabled:s,error:l,filled:i,required:u}=e,n={root:["root",`color${z(r)}`,s&&"disabled",l&&"error",i&&"filled",o&&"focused",u&&"required"],asterisk:["asterisk",l&&"error"]};return U(n,Xe,t)},Ze=T("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Te()).map(([t])=>({props:{color:t},style:{[`&.${$.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${$.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),et=T("span",{name:"MuiFormLabel",slot:"Asterisk"})(V(({theme:e})=>({[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}))),tt=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormLabel"}),{children:s,className:l,color:i,component:u="label",disabled:n,error:d,filled:c,focused:b,required:h,...g}=o,f=te(),m=re({props:o,muiFormControl:f,states:["color","required","focused","disabled","error","filled"]}),p={...o,color:m.color||"primary",component:u,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required},y=Ye(p);return a.jsxs(Ze,{as:u,ownerState:p,className:W(y.root,l),ref:r,...g,children:[s,m.required&&a.jsxs(et,{ownerState:p,"aria-hidden":!0,className:y.asterisk,children:[" ","*"]})]})});function rt(e){return A("MuiInputLabel",e)}N("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ot=e=>{const{classes:t,formControl:r,size:o,shrink:s,disableAnimation:l,variant:i,required:u}=e,n={root:["root",r&&"formControl",!l&&"animated",s&&"shrink",o&&o!=="medium"&&`size${z(o)}`,i],asterisk:[u&&"asterisk"]},d=U(n,rt,t);return{...t,...d}},st=T(tt,{shouldForwardProp:e=>ze(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${$.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(V(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:o})=>t==="filled"&&r.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),at=x.forwardRef(function(t,r){const o=H({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,margin:l,shrink:i,variant:u,className:n,...d}=o,c=te();let b=i;typeof b>"u"&&c&&(b=c.filled||c.focused||c.adornedStart);const h=re({props:o,muiFormControl:c,states:["size","variant","required","focused"]}),g={...o,disableAnimation:s,formControl:c,shrink:b,size:h.size,variant:h.variant,required:h.required,focused:h.focused},f=ot(g);return a.jsx(st,{"data-shrink":b,ref:r,className:W(f.root,n),...d,ownerState:g,classes:f})});function nt(e){return A("MuiTextField",e)}N("MuiTextField",["root"]);const lt={standard:He,filled:Ne,outlined:Ae},it=e=>{const{classes:t}=e;return U({root:["root"]},nt,t)},dt=T(Ke,{name:"MuiTextField",slot:"Root"})({}),ct=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiTextField"}),{autoComplete:s,autoFocus:l=!1,children:i,className:u,color:n="primary",defaultValue:d,disabled:c=!1,error:b=!1,FormHelperTextProps:h,fullWidth:g=!1,helperText:f,id:m,InputLabelProps:p,inputProps:y,InputProps:P,inputRef:G,label:F,maxRows:J,minRows:E,multiline:L=!1,name:D,onBlur:M,onChange:O,onFocus:B,placeholder:_,required:R=!1,rows:Q,select:C=!1,SelectProps:v,slots:j={},slotProps:pe={},type:ue,value:oe,variant:K="outlined",...me}=o,S={...o,autoFocus:l,color:n,disabled:c,error:b,fullWidth:g,multiline:L,required:R,select:C,variant:K},fe=it(S),k=Le(m),X=f&&k?`${k}-helper-text`:void 0,se=F&&k?`${k}-label`:void 0,xe=lt[K],w={slots:j,slotProps:{input:P,inputLabel:p,htmlInput:y,formHelperText:h,select:v,...pe}},q={},Y=w.slotProps.inputLabel;K==="outlined"&&(Y&&typeof Y.shrink<"u"&&(q.notched=Y.shrink),q.label=F),C&&((!v||!v.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const[be,he]=I("root",{elementType:dt,shouldForwardComponentProp:!0,externalForwardedProps:{...w,...me},ownerState:S,className:W(fe.root,u),ref:r,additionalProps:{disabled:c,error:b,fullWidth:g,required:R,color:n,variant:K}}),[ve,ge]=I("input",{elementType:xe,externalForwardedProps:w,additionalProps:q,ownerState:S}),[ye,Ce]=I("inputLabel",{elementType:at,externalForwardedProps:w,ownerState:S}),[Fe,Se]=I("htmlInput",{elementType:"input",externalForwardedProps:w,ownerState:S}),[ke,we]=I("formHelperText",{elementType:Qe,externalForwardedProps:w,ownerState:S}),[Pe,Ie]=I("select",{elementType:We,externalForwardedProps:w,ownerState:S}),ae=a.jsx(ve,{"aria-describedby":X,autoComplete:s,autoFocus:l,defaultValue:d,fullWidth:g,multiline:L,name:D,rows:Q,maxRows:J,minRows:E,type:ue,value:oe,id:k,inputRef:G,onBlur:M,onChange:O,onFocus:B,placeholder:_,inputProps:Se,slots:{input:j.htmlInput?Fe:void 0},...ge});return a.jsxs(be,{...he,children:[F!=null&&F!==""&&a.jsx(ye,{htmlFor:k,id:se,...Ce,children:F}),C?a.jsx(Pe,{"aria-describedby":X,id:k,labelId:se,value:oe,input:ae,...Ie,children:i}):ae,f&&a.jsx(ke,{id:X,...we,children:f})]})});/** +import{a as A,g as N,r as x,u as H,j as n,s as T,c as W,b as z,d as U,m as V,h as Te,q as ze,v as Le,w as I,i as ee,n as Me,x as Re,l as je,S as ae,p as le}from"./index-v4ef5gIt.js";import{i as Z,b as qe,c as ie,F as $e,u as te,f as re,O as Ae,d as Ne,e as He,S as We,D as Ue,g as Ee,C as De}from"./main-layout-BAzhIrTg.js";function Oe(e){return A("MuiFormControl",e)}N("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Be=e=>{const{classes:t,margin:r,fullWidth:o}=e,s={root:["root",r!=="none"&&`margin${z(r)}`,o&&"fullWidth"]};return U(s,Oe,t)},_e=T("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${z(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ke=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormControl"}),{children:s,className:l,color:i="primary",component:u="div",disabled:a=!1,error:d=!1,focused:c,fullWidth:b=!1,hiddenLabel:h=!1,margin:g="none",required:f=!1,size:m="medium",variant:p="outlined",...y}=o,P={...o,color:i,component:u,disabled:a,error:d,fullWidth:b,hiddenLabel:h,margin:g,required:f,size:m,variant:p},G=Be(P),[F,J]=x.useState(()=>{let C=!1;return s&&x.Children.forEach(s,v=>{if(!Z(v,["Input","Select"]))return;const j=Z(v,["Select"])?v.props.input:v;j&&qe(j.props)&&(C=!0)}),C}),[E,L]=x.useState(()=>{let C=!1;return s&&x.Children.forEach(s,v=>{Z(v,["Input","Select"])&&(ie(v.props,!0)||ie(v.props.inputProps,!0))&&(C=!0)}),C}),[D,M]=x.useState(!1);a&&D&&M(!1);const O=c!==void 0&&!a?c:D;let B;x.useRef(!1);const _=x.useCallback(()=>{L(!0)},[]),R=x.useCallback(()=>{L(!1)},[]),Q=x.useMemo(()=>({adornedStart:F,setAdornedStart:J,color:i,disabled:a,error:d,filled:E,focused:O,fullWidth:b,hiddenLabel:h,size:m,onBlur:()=>{M(!1)},onFocus:()=>{M(!0)},onEmpty:R,onFilled:_,registerEffect:B,required:f,variant:p}),[F,i,a,d,E,O,b,h,B,R,_,f,m,p]);return n.jsx($e.Provider,{value:Q,children:n.jsx(_e,{as:u,ownerState:P,className:W(G.root,l),ref:r,...y,children:s})})});function Ve(e){return A("MuiFormHelperText",e)}const de=N("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ce;const Ge=e=>{const{classes:t,contained:r,size:o,disabled:s,error:l,filled:i,focused:u,required:a}=e,d={root:["root",s&&"disabled",l&&"error",o&&`size${z(o)}`,r&&"contained",u&&"focused",i&&"filled",a&&"required"]};return U(d,Ve,t)},Je=T("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${z(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${de.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${de.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Qe=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormHelperText"}),{children:s,className:l,component:i="p",disabled:u,error:a,filled:d,focused:c,margin:b,required:h,variant:g,...f}=o,m=te(),p=re({props:o,muiFormControl:m,states:["variant","size","disabled","error","filled","focused","required"]}),y={...o,component:i,contained:p.variant==="filled"||p.variant==="outlined",variant:p.variant,size:p.size,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required};delete y.ownerState;const P=Ge(y);return n.jsx(Je,{as:i,className:W(P.root,l),ref:r,...f,ownerState:y,children:s===" "?ce||(ce=n.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):s})});function Xe(e){return A("MuiFormLabel",e)}const $=N("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ye=e=>{const{classes:t,color:r,focused:o,disabled:s,error:l,filled:i,required:u}=e,a={root:["root",`color${z(r)}`,s&&"disabled",l&&"error",i&&"filled",o&&"focused",u&&"required"],asterisk:["asterisk",l&&"error"]};return U(a,Xe,t)},Ze=T("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Te()).map(([t])=>({props:{color:t},style:{[`&.${$.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${$.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),et=T("span",{name:"MuiFormLabel",slot:"Asterisk"})(V(({theme:e})=>({[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}))),tt=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormLabel"}),{children:s,className:l,color:i,component:u="label",disabled:a,error:d,filled:c,focused:b,required:h,...g}=o,f=te(),m=re({props:o,muiFormControl:f,states:["color","required","focused","disabled","error","filled"]}),p={...o,color:m.color||"primary",component:u,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required},y=Ye(p);return n.jsxs(Ze,{as:u,ownerState:p,className:W(y.root,l),ref:r,...g,children:[s,m.required&&n.jsxs(et,{ownerState:p,"aria-hidden":!0,className:y.asterisk,children:[" ","*"]})]})});function rt(e){return A("MuiInputLabel",e)}N("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ot=e=>{const{classes:t,formControl:r,size:o,shrink:s,disableAnimation:l,variant:i,required:u}=e,a={root:["root",r&&"formControl",!l&&"animated",s&&"shrink",o&&o!=="medium"&&`size${z(o)}`,i],asterisk:[u&&"asterisk"]},d=U(a,rt,t);return{...t,...d}},st=T(tt,{shouldForwardProp:e=>ze(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${$.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(V(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:o})=>t==="filled"&&r.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),nt=x.forwardRef(function(t,r){const o=H({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,margin:l,shrink:i,variant:u,className:a,...d}=o,c=te();let b=i;typeof b>"u"&&c&&(b=c.filled||c.focused||c.adornedStart);const h=re({props:o,muiFormControl:c,states:["size","variant","required","focused"]}),g={...o,disableAnimation:s,formControl:c,shrink:b,size:h.size,variant:h.variant,required:h.required,focused:h.focused},f=ot(g);return n.jsx(st,{"data-shrink":b,ref:r,className:W(f.root,a),...d,ownerState:g,classes:f})});function at(e){return A("MuiTextField",e)}N("MuiTextField",["root"]);const lt={standard:He,filled:Ne,outlined:Ae},it=e=>{const{classes:t}=e;return U({root:["root"]},at,t)},dt=T(Ke,{name:"MuiTextField",slot:"Root"})({}),ct=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiTextField"}),{autoComplete:s,autoFocus:l=!1,children:i,className:u,color:a="primary",defaultValue:d,disabled:c=!1,error:b=!1,FormHelperTextProps:h,fullWidth:g=!1,helperText:f,id:m,InputLabelProps:p,inputProps:y,InputProps:P,inputRef:G,label:F,maxRows:J,minRows:E,multiline:L=!1,name:D,onBlur:M,onChange:O,onFocus:B,placeholder:_,required:R=!1,rows:Q,select:C=!1,SelectProps:v,slots:j={},slotProps:pe={},type:ue,value:oe,variant:K="outlined",...me}=o,S={...o,autoFocus:l,color:a,disabled:c,error:b,fullWidth:g,multiline:L,required:R,select:C,variant:K},fe=it(S),k=Le(m),X=f&&k?`${k}-helper-text`:void 0,se=F&&k?`${k}-label`:void 0,xe=lt[K],w={slots:j,slotProps:{input:P,inputLabel:p,htmlInput:y,formHelperText:h,select:v,...pe}},q={},Y=w.slotProps.inputLabel;K==="outlined"&&(Y&&typeof Y.shrink<"u"&&(q.notched=Y.shrink),q.label=F),C&&((!v||!v.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const[be,he]=I("root",{elementType:dt,shouldForwardComponentProp:!0,externalForwardedProps:{...w,...me},ownerState:S,className:W(fe.root,u),ref:r,additionalProps:{disabled:c,error:b,fullWidth:g,required:R,color:a,variant:K}}),[ve,ge]=I("input",{elementType:xe,externalForwardedProps:w,additionalProps:q,ownerState:S}),[ye,Ce]=I("inputLabel",{elementType:nt,externalForwardedProps:w,ownerState:S}),[Fe,Se]=I("htmlInput",{elementType:"input",externalForwardedProps:w,ownerState:S}),[ke,we]=I("formHelperText",{elementType:Qe,externalForwardedProps:w,ownerState:S}),[Pe,Ie]=I("select",{elementType:We,externalForwardedProps:w,ownerState:S}),ne=n.jsx(ve,{"aria-describedby":X,autoComplete:s,autoFocus:l,defaultValue:d,fullWidth:g,multiline:L,name:D,rows:Q,maxRows:J,minRows:E,type:ue,value:oe,id:k,inputRef:G,onBlur:M,onChange:O,onFocus:B,placeholder:_,inputProps:Se,slots:{input:j.htmlInput?Fe:void 0},...ge});return n.jsxs(be,{...he,children:[F!=null&&F!==""&&n.jsx(ye,{htmlFor:k,id:se,...Ce,children:F}),C?n.jsx(Pe,{"aria-describedby":X,id:k,labelId:se,value:oe,input:ne,...Ie,children:i}):ne,f&&n.jsx(ke,{id:X,...we,children:f})]})});/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. @@ -13,4 +13,4 @@ import{a as A,g as N,r as x,u as H,j as a,s as T,c as W,b as z,d as U,m as V,h a * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const xt=[["path",{d:"M19 2h-14a3 3 0 0 0 -3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3 -3v-14a3 3 0 0 0 -3 -3z",key:"svg-0"}]],bt=ee("filled","square-filled","SquareFilled",xt),ht=()=>{const[{modelName:e,clusterInfo:{status:t}}]=Me(),[{input:r,status:o},{setInput:s,generate:l,stop:i,clear:u}]=Re(),n=je(d=>{if(d.key==="Enter"&&!d.shiftKey){d.preventDefault();const c=l();typeof c<"u"&&c!==null&&typeof c.then=="function"?c.then(()=>s("")):s("")}});return a.jsx(ne,{"data-status":o,children:a.jsx(ct,{value:r,onChange:d=>s(d.target.value),multiline:!0,maxRows:4,placeholder:"Ask anything...",fullWidth:!0,onKeyDown:n,slotProps:{input:{sx:{border:"1px solid",borderColor:"grey.300",borderRadius:2,boxShadow:"2px 2px 4px rgba(0,0,0,0.05)",flexDirection:"column","& textarea":{scrollbarWidth:"none",msOverflowStyle:"none","&::-webkit-scrollbar":{display:"none"}}},endAdornment:a.jsxs(ne,{direction:"row",sx:{alignSelf:"flex-end",alignItems:"center",gap:2},children:[a.jsx(le,{variant:"text",sx:{color:"text.secondary"},startIcon:a.jsx(ut,{}),disabled:o==="opened"||o==="generating",onClick:u,children:"Clear"}),a.jsx(le,{size:"small",color:"primary",disabled:t!=="available",loading:o==="opened",onClick:()=>{o==="opened"?i():o==="closed"&&(l(),s(""))},children:o==="opened"?a.jsx(Ue,{size:"medium"}):o==="generating"?a.jsx(bt,{size:"1.25rem"}):a.jsx(ft,{size:"1.25rem"})})]})}}})})};function yt(){return a.jsxs(Ee,{children:[a.jsx(De,{}),a.jsx(ht,{})]})}export{yt as default}; + */const xt=[["path",{d:"M19 2h-14a3 3 0 0 0 -3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3 -3v-14a3 3 0 0 0 -3 -3z",key:"svg-0"}]],bt=ee("filled","square-filled","SquareFilled",xt),ht=()=>{const[{modelName:e,clusterInfo:{status:t}}]=Me(),[{input:r,status:o},{setInput:s,generate:l,stop:i,clear:u}]=Re(),a=je(d=>{if(d.key==="Enter"&&!d.shiftKey){d.preventDefault();const c=l();typeof c<"u"&&c!==null&&typeof c.then=="function"?c.then(()=>s("")):s("")}});return n.jsx(ae,{"data-status":o,children:n.jsx(ct,{value:r,onChange:d=>s(d.target.value),multiline:!0,maxRows:4,placeholder:"Ask anything",fullWidth:!0,onKeyDown:a,slotProps:{input:{sx:{border:"1px solid",borderColor:"grey.300",borderRadius:2,fontSize:"0.95rem",boxShadow:"2px 2px 4px rgba(0,0,0,0.05)",flexDirection:"column","& textarea":{fontSize:"0.95rem",scrollbarWidth:"none",msOverflowStyle:"none","&::-webkit-scrollbar":{display:"none"}}},endAdornment:n.jsxs(ae,{direction:"row",sx:{alignSelf:"flex-end",alignItems:"center",gap:2},children:[n.jsx(le,{variant:"text",sx:{color:"text.secondary"},startIcon:n.jsx(ut,{}),disabled:o==="opened"||o==="generating",onClick:u,children:"Clear"}),n.jsx(le,{size:"small",color:"primary",disabled:t!=="available",loading:o==="opened",onClick:()=>{o==="opened"?i():o==="closed"&&(l(),s(""))},children:o==="opened"?n.jsx(Ue,{size:"medium"}):o==="generating"?n.jsx(bt,{size:"1.25rem"}):n.jsx(ft,{size:"1.25rem"})})]})}}})})};function yt(){return n.jsxs(Ee,{children:[n.jsx(De,{}),n.jsx(ht,{})]})}export{yt as default}; diff --git a/src/frontend/dist/assets/index-CVJoPuDa.js b/src/frontend/dist/assets/index-v4ef5gIt.js similarity index 98% rename from src/frontend/dist/assets/index-CVJoPuDa.js rename to src/frontend/dist/assets/index-v4ef5gIt.js index 538874b0..b26a981d 100644 --- a/src/frontend/dist/assets/index-CVJoPuDa.js +++ b/src/frontend/dist/assets/index-v4ef5gIt.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/setup-Cv5m9b5b.js","assets/main-layout-CE1joJ3-.js","assets/main-layout-DVneG3Rq.css","assets/join-DO7fVZkU.js","assets/chat-Dy7b1kF1.js"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/setup-D6yQPS_R.js","assets/main-layout-BAzhIrTg.js","assets/main-layout-DVneG3Rq.css","assets/join-B_6EnepF.js","assets/chat-CCbYFHrx.js"])))=>i.map(i=>d[i]); function MS(n,r){for(var l=0;lo[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function l(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=l(s);fetch(s.href,c)}})();function Na(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Tf={exports:{}},yl={};/** * @license React * react-jsx-runtime.production.js @@ -39,14 +39,14 @@ function MS(n,r){for(var l=0;lA||(e.current=le[A],le[A]=null,A--)}function ie(e,t){A++,le[A]=e.current,e.current=t}var oe=Y(null),fe=Y(null),se=Y(null),we=Y(null);function Se(e,t){switch(ie(se,t),ie(fe,e),ie(oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ag(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ag(t),e=Og(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ae(oe),ie(oe,e)}function Qe(){ae(oe),ae(fe),ae(se)}function Xe(e){e.memoizedState!==null&&ie(we,e);var t=oe.current,a=Og(t,e.type);t!==a&&(ie(fe,e),ie(oe,a))}function it(e){fe.current===e&&(ae(oe),ae(fe)),we.current===e&&(ae(we),dl._currentValue=Q)}var vt=Object.prototype.hasOwnProperty,Mt=n.unstable_scheduleCallback,$t=n.unstable_cancelCallback,yn=n.unstable_shouldYield,Un=n.unstable_requestPaint,Fe=n.unstable_now,Nt=n.unstable_getCurrentPriorityLevel,ft=n.unstable_ImmediatePriority,vn=n.unstable_UserBlockingPriority,An=n.unstable_NormalPriority,pe=n.unstable_LowPriority,Ql=n.unstable_IdlePriority,Kl=n.log,Il=n.unstable_setDisableYieldValue,bt=null,Te=null;function lt(e){if(typeof Kl=="function"&&Il(e),Te&&typeof Te.setStrictMode=="function")try{Te.setStrictMode(bt,e)}catch{}}var Ke=Math.clz32?Math.clz32:f1,Si=Math.log,cs=Math.LN2;function f1(e){return e>>>=0,e===0?32:31-(Si(e)/cs|0)|0}var Wl=256,Jl=4194304;function ja(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Fl(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var u=0,f=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var b=i&134217727;return b!==0?(i=b&~f,i!==0?u=ja(i):(g&=b,g!==0?u=ja(g):a||(a=b&~e,a!==0&&(u=ja(a))))):(b=i&~f,b!==0?u=ja(b):g!==0?u=ja(g):a||(a=i&~e,a!==0&&(u=ja(a)))),u===0?0:t!==0&&t!==u&&(t&f)===0&&(f=u&-u,a=t&-t,f>=a||f===32&&(a&4194048)!==0)?t:u}function xi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function d1(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function sh(){var e=Wl;return Wl<<=1,(Wl&4194048)===0&&(Wl=256),e}function ch(){var e=Jl;return Jl<<=1,(Jl&62914560)===0&&(Jl=4194304),e}function fs(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Ci(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function h1(e,t,a,i,u,f){var g=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var b=e.entanglements,R=e.expirationTimes,U=e.hiddenUpdates;for(a=g&~a;0A||(e.current=le[A],le[A]=null,A--)}function ie(e,t){A++,le[A]=e.current,e.current=t}var oe=Y(null),fe=Y(null),se=Y(null),we=Y(null);function Se(e,t){switch(ie(se,t),ie(fe,e),ie(oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ag(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ag(t),e=Og(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ae(oe),ie(oe,e)}function Qe(){ae(oe),ae(fe),ae(se)}function Xe(e){e.memoizedState!==null&&ie(we,e);var t=oe.current,a=Og(t,e.type);t!==a&&(ie(fe,e),ie(oe,a))}function lt(e){fe.current===e&&(ae(oe),ae(fe)),we.current===e&&(ae(we),dl._currentValue=Q)}var vt=Object.prototype.hasOwnProperty,Mt=n.unstable_scheduleCallback,$t=n.unstable_cancelCallback,yn=n.unstable_shouldYield,Un=n.unstable_requestPaint,Fe=n.unstable_now,Nt=n.unstable_getCurrentPriorityLevel,ft=n.unstable_ImmediatePriority,vn=n.unstable_UserBlockingPriority,An=n.unstable_NormalPriority,pe=n.unstable_LowPriority,Ql=n.unstable_IdlePriority,Kl=n.log,Il=n.unstable_setDisableYieldValue,bt=null,Te=null;function ot(e){if(typeof Kl=="function"&&Il(e),Te&&typeof Te.setStrictMode=="function")try{Te.setStrictMode(bt,e)}catch{}}var Ke=Math.clz32?Math.clz32:f1,Si=Math.log,cs=Math.LN2;function f1(e){return e>>>=0,e===0?32:31-(Si(e)/cs|0)|0}var Wl=256,Jl=4194304;function ja(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Fl(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var u=0,f=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var b=i&134217727;return b!==0?(i=b&~f,i!==0?u=ja(i):(g&=b,g!==0?u=ja(g):a||(a=b&~e,a!==0&&(u=ja(a))))):(b=i&~f,b!==0?u=ja(b):g!==0?u=ja(g):a||(a=i&~e,a!==0&&(u=ja(a)))),u===0?0:t!==0&&t!==u&&(t&f)===0&&(f=u&-u,a=t&-t,f>=a||f===32&&(a&4194048)!==0)?t:u}function xi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function d1(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function sh(){var e=Wl;return Wl<<=1,(Wl&4194048)===0&&(Wl=256),e}function ch(){var e=Jl;return Jl<<=1,(Jl&62914560)===0&&(Jl=4194304),e}function fs(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Ci(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function h1(e,t,a,i,u,f){var g=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var b=e.entanglements,R=e.expirationTimes,U=e.hiddenUpdates;for(a=g&~a;0)":-1u||R[i]!==U[u]){var ee=` `+R[i].replace(" at new "," at ");return e.displayName&&ee.includes("")&&(ee=ee.replace("",e.displayName)),ee}while(1<=i&&0<=u);break}}}finally{ys=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Sr(a):""}function b1(e){switch(e.tag){case 26:case 27:case 5:return Sr(e.type);case 16:return Sr("Lazy");case 13:return Sr("Suspense");case 19:return Sr("SuspenseList");case 0:case 15:return vs(e.type,!1);case 11:return vs(e.type.render,!1);case 1:return vs(e.type,!0);case 31:return Sr("Activity");default:return""}}function Sh(e){try{var t="";do t+=b1(e),e=e.return;while(e);return t}catch(a){return` Error generating stack: `+a.message+` -`+a.stack}}function nn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function S1(e){var t=xh(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var u=a.get,f=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(g){i=""+g,f.call(this,g)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return i},setValue:function(g){i=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function no(e){e._valueTracker||(e._valueTracker=S1(e))}function Ch(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=xh(e)?e.checked?"true":"false":e.value),e=i,e!==a?(t.setValue(e),!0):!1}function ao(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var x1=/[\n"\\]/g;function an(e){return e.replace(x1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function bs(e,t,a,i,u,f,g,b){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+nn(t)):e.value!==""+nn(t)&&(e.value=""+nn(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?Ss(e,g,nn(t)):a!=null?Ss(e,g,nn(a)):i!=null&&e.removeAttribute("value"),u==null&&f!=null&&(e.defaultChecked=!!f),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+nn(b):e.removeAttribute("name")}function Th(e,t,a,i,u,f,g,b){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||t!=null))return;a=a!=null?""+nn(a):"",t=t!=null?""+nn(t):a,b||t===e.value||(e.value=t),e.defaultValue=t}i=i??u,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=b?e.checked:!!i,e.defaultChecked=!!i,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g)}function Ss(e,t,a){t==="number"&&ao(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function xr(e,t,a,i){if(e=e.options,t){t={};for(var u=0;u"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ms=!1;if(Yn)try{var Ai={};Object.defineProperty(Ai,"passive",{get:function(){Ms=!0}}),window.addEventListener("test",Ai,Ai),window.removeEventListener("test",Ai,Ai)}catch{Ms=!1}var sa=null,As=null,io=null;function Dh(){if(io)return io;var e,t=As,a=t.length,i,u="value"in sa?sa.value:sa.textContent,f=u.length;for(e=0;e=Ri),Bh=" ",Lh=!1;function jh(e,t){switch(e){case"keyup":return K1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Uh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Mr=!1;function W1(e,t){switch(e){case"compositionend":return Uh(t);case"keypress":return t.which!==32?null:(Lh=!0,Bh);case"textInput":return e=t.data,e===Bh&&Lh?null:e;default:return null}}function J1(e,t){if(Mr)return e==="compositionend"||!_s&&jh(e,t)?(e=Dh(),io=As=sa=null,Mr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:a,offset:t-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Zh(a)}}function Kh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Kh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ih(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ao(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=ao(e.document)}return t}function $s(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var lb=Yn&&"documentMode"in document&&11>=document.documentMode,Ar=null,Ns=null,ki=null,Bs=!1;function Wh(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Bs||Ar==null||Ar!==ao(i)||(i=Ar,"selectionStart"in i&&$s(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),ki&&zi(ki,i)||(ki=i,i=Io(Ns,"onSelect"),0>=g,u-=g,Vn=1<<32-Ke(t)+u|a<f?f:8;var g=w.T,b={};w.T=b,xc(e,!1,t,a);try{var R=u(),U=w.S;if(U!==null&&U(b,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var ee=pb(R,i);Qi(e,t,ee,It(e))}else Qi(e,t,i,It(e))}catch(ne){Qi(e,t,{then:function(){},status:"rejected",reason:ne},It())}finally{H.p=f,w.T=g}}function Sb(){}function bc(e,t,a,i){if(e.tag!==5)throw Error(o(476));var u=Jm(e).queue;Wm(e,u,t,Q,a===null?Sb:function(){return Fm(e),a(i)})}function Jm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zn,lastRenderedState:Q},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Fm(e){var t=Jm(e).next.queue;Qi(e,t,{},It())}function Sc(){return _t(dl)}function ep(){return ht().memoizedState}function tp(){return ht().memoizedState}function xb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=It();e=da(a);var i=ha(t,e,a);i!==null&&(Wt(i,t,a),qi(i,t,a)),t={cache:Is()},e.payload=t;return}t=t.return}}function Cb(e,t,a){var i=It();a={lane:i,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Do(e)?ap(t,a):(a=Hs(e,t,a,i),a!==null&&(Wt(a,e,i),rp(a,t,i)))}function np(e,t,a){var i=It();Qi(e,t,a,i)}function Qi(e,t,a,i){var u={lane:i,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Do(e))ap(t,u);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var g=t.lastRenderedState,b=f(g,a);if(u.hasEagerState=!0,u.eagerState=b,Pt(b,g))return ho(e,t,u,0),Pe===null&&fo(),!1}catch{}finally{}if(a=Hs(e,t,u,i),a!==null)return Wt(a,e,i),rp(a,t,i),!0}return!1}function xc(e,t,a,i){if(i={lane:2,revertLane:Fc(),action:i,hasEagerState:!1,eagerState:null,next:null},Do(e)){if(t)throw Error(o(479))}else t=Hs(e,a,i,2),t!==null&&Wt(t,e,2)}function Do(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function ap(e,t){Br=Eo=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function rp(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,dh(e,a)}}var _o={readContext:_t,use:Ao,useCallback:ot,useContext:ot,useEffect:ot,useImperativeHandle:ot,useLayoutEffect:ot,useInsertionEffect:ot,useMemo:ot,useReducer:ot,useRef:ot,useState:ot,useDebugValue:ot,useDeferredValue:ot,useTransition:ot,useSyncExternalStore:ot,useId:ot,useHostTransitionStatus:ot,useFormState:ot,useActionState:ot,useOptimistic:ot,useMemoCache:ot,useCacheRefresh:ot},ip={readContext:_t,use:Ao,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:_t,useEffect:qm,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ro(4194308,4,Xm.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ro(4194308,4,e,t)},useInsertionEffect:function(e,t){Ro(4,2,e,t)},useMemo:function(e,t){var a=Ht();t=t===void 0?null:t;var i=e();if(Wa){lt(!0);try{e()}finally{lt(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=Ht();if(a!==void 0){var u=a(t);if(Wa){lt(!0);try{a(t)}finally{lt(!1)}}}else u=t;return i.memoizedState=i.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},i.queue=e,e=e.dispatch=Cb.bind(null,ve,e),[i.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:function(e){e=pc(e);var t=e.queue,a=np.bind(null,ve,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:yc,useDeferredValue:function(e,t){var a=Ht();return vc(a,e,t)},useTransition:function(){var e=pc(!1);return e=Wm.bind(null,ve,e.queue,!0,!1),Ht().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=ve,u=Ht();if(De){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),Pe===null)throw Error(o(349));(Ee&124)!==0||Am(i,t,a)}u.memoizedState=a;var f={value:a,getSnapshot:t};return u.queue=f,qm(wm.bind(null,i,f,e),[e]),i.flags|=2048,jr(9,wo(),Om.bind(null,i,f,a,t),null),a},useId:function(){var e=Ht(),t=Pe.identifierPrefix;if(De){var a=Gn,i=Vn;a=(i&~(1<<32-Ke(i)-1)).toString(32)+a,t="«"+t+"R"+a,a=Mo++,0he?(Tt=ce,ce=null):Tt=ce.sibling;var Re=V(N,ce,j[he],te);if(Re===null){ce===null&&(ce=Tt);break}e&&ce&&Re.alternate===null&&t(N,ce),k=f(Re,k,he),be===null?ue=Re:be.sibling=Re,be=Re,ce=Tt}if(he===j.length)return a(N,ce),De&&Pa(N,he),ue;if(ce===null){for(;hehe?(Tt=ce,ce=null):Tt=ce.sibling;var Da=V(N,ce,Re.value,te);if(Da===null){ce===null&&(ce=Tt);break}e&&ce&&Da.alternate===null&&t(N,ce),k=f(Da,k,he),be===null?ue=Da:be.sibling=Da,be=Da,ce=Tt}if(Re.done)return a(N,ce),De&&Pa(N,he),ue;if(ce===null){for(;!Re.done;he++,Re=j.next())Re=ne(N,Re.value,te),Re!==null&&(k=f(Re,k,he),be===null?ue=Re:be.sibling=Re,be=Re);return De&&Pa(N,he),ue}for(ce=i(ce);!Re.done;he++,Re=j.next())Re=P(ce,N,he,Re.value,te),Re!==null&&(e&&Re.alternate!==null&&ce.delete(Re.key===null?he:Re.key),k=f(Re,k,he),be===null?ue=Re:be.sibling=Re,be=Re);return e&&ce.forEach(function(ES){return t(N,ES)}),De&&Pa(N,he),ue}function Ye(N,k,j,te){if(typeof j=="object"&&j!==null&&j.type===E&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case x:e:{for(var ue=j.key;k!==null;){if(k.key===ue){if(ue=j.type,ue===E){if(k.tag===7){a(N,k.sibling),te=u(k,j.props.children),te.return=N,N=te;break e}}else if(k.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===J&&op(ue)===k.type){a(N,k.sibling),te=u(k,j.props),Ii(te,j),te.return=N,N=te;break e}a(N,k);break}else t(N,k);k=k.sibling}j.type===E?(te=Va(j.props.children,N.mode,te,j.key),te.return=N,N=te):(te=po(j.type,j.key,j.props,null,N.mode,te),Ii(te,j),te.return=N,N=te)}return g(N);case O:e:{for(ue=j.key;k!==null;){if(k.key===ue)if(k.tag===4&&k.stateNode.containerInfo===j.containerInfo&&k.stateNode.implementation===j.implementation){a(N,k.sibling),te=u(k,j.children||[]),te.return=N,N=te;break e}else{a(N,k);break}else t(N,k);k=k.sibling}te=Vs(j,N.mode,te),te.return=N,N=te}return g(N);case J:return ue=j._init,j=ue(j._payload),Ye(N,k,j,te)}if(Z(j))return me(N,k,j,te);if(S(j)){if(ue=S(j),typeof ue!="function")throw Error(o(150));return j=ue.call(j),de(N,k,j,te)}if(typeof j.then=="function")return Ye(N,k,zo(j),te);if(j.$$typeof===$)return Ye(N,k,bo(N,j),te);ko(N,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,k!==null&&k.tag===6?(a(N,k.sibling),te=u(k,j),te.return=N,N=te):(a(N,k),te=qs(j,N.mode,te),te.return=N,N=te),g(N)):a(N,k)}return function(N,k,j,te){try{Ki=0;var ue=Ye(N,k,j,te);return Ur=null,ue}catch(ce){if(ce===Hi||ce===xo)throw ce;var be=Xt(29,ce,null,N.mode);return be.lanes=te,be.return=N,be}finally{}}}var Hr=up(!0),sp=up(!1),sn=Y(null),wn=null;function pa(e){var t=e.alternate;ie(yt,yt.current&1),ie(sn,e),wn===null&&(t===null||Nr.current!==null||t.memoizedState!==null)&&(wn=e)}function cp(e){if(e.tag===22){if(ie(yt,yt.current),ie(sn,e),wn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(wn=e)}}else ga()}function ga(){ie(yt,yt.current),ie(sn,sn.current)}function Qn(e){ae(sn),wn===e&&(wn=null),ae(yt)}var yt=Y(0);function $o(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||df(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Cc(e,t,a,i){t=e.memoizedState,a=a(i,t),a=a==null?t:y({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Tc={enqueueSetState:function(e,t,a){e=e._reactInternals;var i=It(),u=da(i);u.payload=t,a!=null&&(u.callback=a),t=ha(e,u,i),t!==null&&(Wt(t,e,i),qi(t,e,i))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var i=It(),u=da(i);u.tag=1,u.payload=t,a!=null&&(u.callback=a),t=ha(e,u,i),t!==null&&(Wt(t,e,i),qi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=It(),i=da(a);i.tag=2,t!=null&&(i.callback=t),t=ha(e,i,a),t!==null&&(Wt(t,e,a),qi(t,e,a))}};function fp(e,t,a,i,u,f,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,f,g):t.prototype&&t.prototype.isPureReactComponent?!zi(a,i)||!zi(u,f):!0}function dp(e,t,a,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,i),t.state!==e&&Tc.enqueueReplaceState(t,t.state,null)}function Ja(e,t){var a=t;if("ref"in t){a={};for(var i in t)i!=="ref"&&(a[i]=t[i])}if(e=e.defaultProps){a===t&&(a=y({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}var No=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function hp(e){No(e)}function mp(e){console.error(e)}function pp(e){No(e)}function Bo(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function gp(e,t,a){try{var i=e.onCaughtError;i(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Ec(e,t,a){return a=da(a),a.tag=3,a.payload={element:null},a.callback=function(){Bo(e,t)},a}function yp(e){return e=da(e),e.tag=3,e}function vp(e,t,a,i){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var f=i.value;e.payload=function(){return u(f)},e.callback=function(){gp(t,a,i)}}var g=a.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){gp(t,a,i),typeof u!="function"&&(Ca===null?Ca=new Set([this]):Ca.add(this));var b=i.stack;this.componentDidCatch(i.value,{componentStack:b!==null?b:""})})}function Eb(e,t,a,i,u){if(a.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=a.alternate,t!==null&&Li(t,a,u,!0),a=sn.current,a!==null){switch(a.tag){case 13:return wn===null?Qc():a.alternate===null&&tt===0&&(tt=3),a.flags&=-257,a.flags|=65536,a.lanes=u,i===Fs?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([i]):t.add(i),Ic(e,i,u)),!1;case 22:return a.flags|=65536,i===Fs?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([i]):a.add(i)),Ic(e,i,u)),!1}throw Error(o(435,a.tag))}return Ic(e,i,u),Qc(),!1}if(De)return t=sn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,i!==Xs&&(e=Error(o(422),{cause:i}),Bi(rn(e,a)))):(i!==Xs&&(t=Error(o(423),{cause:i}),Bi(rn(t,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,i=rn(i,a),u=Ec(e.stateNode,i,u),nc(e,u),tt!==4&&(tt=2)),!1;var f=Error(o(520),{cause:i});if(f=rn(f,a),al===null?al=[f]:al.push(f),tt!==4&&(tt=2),t===null)return!0;i=rn(i,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=Ec(a.stateNode,i,e),nc(a,e),!1;case 1:if(t=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Ca===null||!Ca.has(f))))return a.flags|=65536,u&=-u,a.lanes|=u,u=yp(u),vp(u,e,a,i),nc(a,u),!1}a=a.return}while(a!==null);return!1}var bp=Error(o(461)),xt=!1;function At(e,t,a,i){t.child=e===null?sp(t,null,a,i):Hr(t,e.child,a,i)}function Sp(e,t,a,i,u){a=a.render;var f=t.ref;if("ref"in i){var g={};for(var b in i)b!=="ref"&&(g[b]=i[b])}else g=i;return Ka(t),i=oc(e,t,a,g,f,u),b=uc(),e!==null&&!xt?(sc(e,t,u),Kn(e,t,u)):(De&&b&&Gs(t),t.flags|=1,At(e,t,i,u),t.child)}function xp(e,t,a,i,u){if(e===null){var f=a.type;return typeof f=="function"&&!Ys(f)&&f.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=f,Cp(e,t,f,i,u)):(e=po(a.type,null,i,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!zc(e,u)){var g=f.memoizedProps;if(a=a.compare,a=a!==null?a:zi,a(g,i)&&e.ref===t.ref)return Kn(e,t,u)}return t.flags|=1,e=qn(f,i),e.ref=t.ref,e.return=t,t.child=e}function Cp(e,t,a,i,u){if(e!==null){var f=e.memoizedProps;if(zi(f,i)&&e.ref===t.ref)if(xt=!1,t.pendingProps=i=f,zc(e,u))(e.flags&131072)!==0&&(xt=!0);else return t.lanes=e.lanes,Kn(e,t,u)}return Mc(e,t,a,i,u)}function Tp(e,t,a){var i=t.pendingProps,u=i.children,f=e!==null?e.memoizedState:null;if(i.mode==="hidden"){if((t.flags&128)!==0){if(i=f!==null?f.baseLanes|a:a,e!==null){for(u=t.child=e.child,f=0;u!==null;)f=f|u.lanes|u.childLanes,u=u.sibling;t.childLanes=f&~i}else t.childLanes=0,t.child=null;return Ep(e,t,i,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&So(t,f!==null?f.cachePool:null),f!==null?Cm(t,f):rc(),cp(t);else return t.lanes=t.childLanes=536870912,Ep(e,t,f!==null?f.baseLanes|a:a,a)}else f!==null?(So(t,f.cachePool),Cm(t,f),ga(),t.memoizedState=null):(e!==null&&So(t,null),rc(),ga());return At(e,t,u,a),t.child}function Ep(e,t,a,i){var u=Js();return u=u===null?null:{parent:gt._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&So(t,null),rc(),cp(t),e!==null&&Li(e,t,i,!0),null}function Lo(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Mc(e,t,a,i,u){return Ka(t),a=oc(e,t,a,i,void 0,u),i=uc(),e!==null&&!xt?(sc(e,t,u),Kn(e,t,u)):(De&&i&&Gs(t),t.flags|=1,At(e,t,a,u),t.child)}function Mp(e,t,a,i,u,f){return Ka(t),t.updateQueue=null,a=Em(t,i,a,u),Tm(e),i=uc(),e!==null&&!xt?(sc(e,t,f),Kn(e,t,f)):(De&&i&&Gs(t),t.flags|=1,At(e,t,a,f),t.child)}function Ap(e,t,a,i,u){if(Ka(t),t.stateNode===null){var f=Dr,g=a.contextType;typeof g=="object"&&g!==null&&(f=_t(g)),f=new a(i,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Tc,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=i,f.state=t.memoizedState,f.refs={},ec(t),g=a.contextType,f.context=typeof g=="object"&&g!==null?_t(g):Dr,f.state=t.memoizedState,g=a.getDerivedStateFromProps,typeof g=="function"&&(Cc(t,a,g,i),f.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(g=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),g!==f.state&&Tc.enqueueReplaceState(f,f.state,null),Gi(t,i,f,u),Vi(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){f=t.stateNode;var b=t.memoizedProps,R=Ja(a,b);f.props=R;var U=f.context,ee=a.contextType;g=Dr,typeof ee=="object"&&ee!==null&&(g=_t(ee));var ne=a.getDerivedStateFromProps;ee=typeof ne=="function"||typeof f.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,ee||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(b||U!==g)&&dp(t,f,i,g),fa=!1;var V=t.memoizedState;f.state=V,Gi(t,i,f,u),Vi(),U=t.memoizedState,b||V!==U||fa?(typeof ne=="function"&&(Cc(t,a,ne,i),U=t.memoizedState),(R=fa||fp(t,a,R,i,V,U,g))?(ee||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=U),f.props=i,f.state=U,f.context=g,i=R):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{f=t.stateNode,tc(e,t),g=t.memoizedProps,ee=Ja(a,g),f.props=ee,ne=t.pendingProps,V=f.context,U=a.contextType,R=Dr,typeof U=="object"&&U!==null&&(R=_t(U)),b=a.getDerivedStateFromProps,(U=typeof b=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(g!==ne||V!==R)&&dp(t,f,i,R),fa=!1,V=t.memoizedState,f.state=V,Gi(t,i,f,u),Vi();var P=t.memoizedState;g!==ne||V!==P||fa||e!==null&&e.dependencies!==null&&vo(e.dependencies)?(typeof b=="function"&&(Cc(t,a,b,i),P=t.memoizedState),(ee=fa||fp(t,a,ee,i,V,P,R)||e!==null&&e.dependencies!==null&&vo(e.dependencies))?(U||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(i,P,R),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(i,P,R)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&V===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&V===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=P),f.props=i,f.state=P,f.context=R,i=ee):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&V===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&V===e.memoizedState||(t.flags|=1024),i=!1)}return f=i,Lo(e,t),i=(t.flags&128)!==0,f||i?(f=t.stateNode,a=i&&typeof a.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&i?(t.child=Hr(t,e.child,null,u),t.child=Hr(t,null,a,u)):At(e,t,a,u),t.memoizedState=f.state,e=t.child):e=Kn(e,t,u),e}function Op(e,t,a,i){return Ni(),t.flags|=256,At(e,t,a,i),t.child}var Ac={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Oc(e){return{baseLanes:e,cachePool:mm()}}function wc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=cn),e}function wp(e,t,a){var i=t.pendingProps,u=!1,f=(t.flags&128)!==0,g;if((g=f)||(g=e!==null&&e.memoizedState===null?!1:(yt.current&2)!==0),g&&(u=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(De){if(u?pa(t):ga(),De){var b=et,R;if(R=b){e:{for(R=b,b=On;R.nodeType!==8;){if(!b){b=null;break e}if(R=xn(R.nextSibling),R===null){b=null;break e}}b=R}b!==null?(t.memoizedState={dehydrated:b,treeContext:Ga!==null?{id:Vn,overflow:Gn}:null,retryLane:536870912,hydrationErrors:null},R=Xt(18,null,null,0),R.stateNode=b,R.return=t,t.child=R,Bt=t,et=null,R=!0):R=!1}R||Za(t)}if(b=t.memoizedState,b!==null&&(b=b.dehydrated,b!==null))return df(b)?t.lanes=32:t.lanes=536870912,null;Qn(t)}return b=i.children,i=i.fallback,u?(ga(),u=t.mode,b=jo({mode:"hidden",children:b},u),i=Va(i,u,a,null),b.return=t,i.return=t,b.sibling=i,t.child=b,u=t.child,u.memoizedState=Oc(a),u.childLanes=wc(e,g,a),t.memoizedState=Ac,i):(pa(t),Rc(t,b))}if(R=e.memoizedState,R!==null&&(b=R.dehydrated,b!==null)){if(f)t.flags&256?(pa(t),t.flags&=-257,t=Dc(e,t,a)):t.memoizedState!==null?(ga(),t.child=e.child,t.flags|=128,t=null):(ga(),u=i.fallback,b=t.mode,i=jo({mode:"visible",children:i.children},b),u=Va(u,b,a,null),u.flags|=2,i.return=t,u.return=t,i.sibling=u,t.child=i,Hr(t,e.child,null,a),i=t.child,i.memoizedState=Oc(a),i.childLanes=wc(e,g,a),t.memoizedState=Ac,t=u);else if(pa(t),df(b)){if(g=b.nextSibling&&b.nextSibling.dataset,g)var U=g.dgst;g=U,i=Error(o(419)),i.stack="",i.digest=g,Bi({value:i,source:null,stack:null}),t=Dc(e,t,a)}else if(xt||Li(e,t,a,!1),g=(a&e.childLanes)!==0,xt||g){if(g=Pe,g!==null&&(i=a&-a,i=(i&42)!==0?1:ds(i),i=(i&(g.suspendedLanes|a))!==0?0:i,i!==0&&i!==R.retryLane))throw R.retryLane=i,Rr(e,i),Wt(g,e,i),bp;b.data==="$?"||Qc(),t=Dc(e,t,a)}else b.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=R.treeContext,et=xn(b.nextSibling),Bt=t,De=!0,Xa=null,On=!1,e!==null&&(on[un++]=Vn,on[un++]=Gn,on[un++]=Ga,Vn=e.id,Gn=e.overflow,Ga=t),t=Rc(t,i.children),t.flags|=4096);return t}return u?(ga(),u=i.fallback,b=t.mode,R=e.child,U=R.sibling,i=qn(R,{mode:"hidden",children:i.children}),i.subtreeFlags=R.subtreeFlags&65011712,U!==null?u=qn(U,u):(u=Va(u,b,a,null),u.flags|=2),u.return=t,i.return=t,i.sibling=u,t.child=i,i=u,u=t.child,b=e.child.memoizedState,b===null?b=Oc(a):(R=b.cachePool,R!==null?(U=gt._currentValue,R=R.parent!==U?{parent:U,pool:U}:R):R=mm(),b={baseLanes:b.baseLanes|a,cachePool:R}),u.memoizedState=b,u.childLanes=wc(e,g,a),t.memoizedState=Ac,i):(pa(t),a=e.child,e=a.sibling,a=qn(a,{mode:"visible",children:i.children}),a.return=t,a.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=a,t.memoizedState=null,a)}function Rc(e,t){return t=jo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function jo(e,t){return e=Xt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Dc(e,t,a){return Hr(t,e.child,null,a),e=Rc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Rp(e,t,a){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Qs(e.return,t,a)}function _c(e,t,a,i,u){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:u}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=i,f.tail=a,f.tailMode=u)}function Dp(e,t,a){var i=t.pendingProps,u=i.revealOrder,f=i.tail;if(At(e,t,i.children,a),i=yt.current,(i&2)!==0)i=i&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Rp(e,a,t);else if(e.tag===19)Rp(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}switch(ie(yt,i),u){case"forwards":for(a=t.child,u=null;a!==null;)e=a.alternate,e!==null&&$o(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=t.child,t.child=null):(u=a.sibling,a.sibling=null),_c(t,!1,u,a,f);break;case"backwards":for(a=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&$o(e)===null){t.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}_c(t,!0,a,null,f);break;case"together":_c(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Kn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),xa|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Li(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=qn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=qn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function zc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&vo(e)))}function Mb(e,t,a){switch(t.tag){case 3:Se(t,t.stateNode.containerInfo),ca(t,gt,e.memoizedState.cache),Ni();break;case 27:case 5:Xe(t);break;case 4:Se(t,t.stateNode.containerInfo);break;case 10:ca(t,t.type,t.memoizedProps.value);break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(pa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?wp(e,t,a):(pa(t),e=Kn(e,t,a),e!==null?e.sibling:null);pa(t);break;case 19:var u=(e.flags&128)!==0;if(i=(a&t.childLanes)!==0,i||(Li(e,t,a,!1),i=(a&t.childLanes)!==0),u){if(i)return Dp(e,t,a);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ie(yt,yt.current),i)break;return null;case 22:case 23:return t.lanes=0,Tp(e,t,a);case 24:ca(t,gt,e.memoizedState.cache)}return Kn(e,t,a)}function _p(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)xt=!0;else{if(!zc(e,a)&&(t.flags&128)===0)return xt=!1,Mb(e,t,a);xt=(e.flags&131072)!==0}else xt=!1,De&&(t.flags&1048576)!==0&&om(t,yo,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var i=t.elementType,u=i._init;if(i=u(i._payload),t.type=i,typeof i=="function")Ys(i)?(e=Ja(i,e),t.tag=1,t=Ap(null,t,i,e,a)):(t.tag=0,t=Mc(null,t,i,e,a));else{if(i!=null){if(u=i.$$typeof,u===B){t.tag=11,t=Sp(null,t,i,e,a);break e}else if(u===q){t.tag=14,t=xp(null,t,i,e,a);break e}}throw t=G(i)||i,Error(o(306,t,""))}}return t;case 0:return Mc(e,t,t.type,t.pendingProps,a);case 1:return i=t.type,u=Ja(i,t.pendingProps),Ap(e,t,i,u,a);case 3:e:{if(Se(t,t.stateNode.containerInfo),e===null)throw Error(o(387));i=t.pendingProps;var f=t.memoizedState;u=f.element,tc(e,t),Gi(t,i,null,a);var g=t.memoizedState;if(i=g.cache,ca(t,gt,i),i!==f.cache&&Ks(t,[gt],a,!0),Vi(),i=g.element,f.isDehydrated)if(f={element:i,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=Op(e,t,i,a);break e}else if(i!==u){u=rn(Error(o(424)),t),Bi(u),t=Op(e,t,i,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(et=xn(e.firstChild),Bt=t,De=!0,Xa=null,On=!0,a=sp(t,null,i,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Ni(),i===u){t=Kn(e,t,a);break e}At(e,t,i,a)}t=t.child}return t;case 26:return Lo(e,t),e===null?(a=Ng(t.type,null,t.pendingProps,null))?t.memoizedState=a:De||(a=t.type,e=t.pendingProps,i=Jo(se.current).createElement(a),i[Dt]=t,i[jt]=e,wt(i,a,e),St(i),t.stateNode=i):t.memoizedState=Ng(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Xe(t),e===null&&De&&(i=t.stateNode=zg(t.type,t.pendingProps,se.current),Bt=t,On=!0,u=et,Ma(t.type)?(hf=u,et=xn(i.firstChild)):et=u),At(e,t,t.pendingProps.children,a),Lo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&De&&((u=i=et)&&(i=Fb(i,t.type,t.pendingProps,On),i!==null?(t.stateNode=i,Bt=t,et=xn(i.firstChild),On=!1,u=!0):u=!1),u||Za(t)),Xe(t),u=t.type,f=t.pendingProps,g=e!==null?e.memoizedProps:null,i=f.children,sf(u,f)?i=null:g!==null&&sf(u,g)&&(t.flags|=32),t.memoizedState!==null&&(u=oc(e,t,yb,null,null,a),dl._currentValue=u),Lo(e,t),At(e,t,i,a),t.child;case 6:return e===null&&De&&((e=a=et)&&(a=eS(a,t.pendingProps,On),a!==null?(t.stateNode=a,Bt=t,et=null,e=!0):e=!1),e||Za(t)),null;case 13:return wp(e,t,a);case 4:return Se(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Hr(t,null,i,a):At(e,t,i,a),t.child;case 11:return Sp(e,t,t.type,t.pendingProps,a);case 7:return At(e,t,t.pendingProps,a),t.child;case 8:return At(e,t,t.pendingProps.children,a),t.child;case 12:return At(e,t,t.pendingProps.children,a),t.child;case 10:return i=t.pendingProps,ca(t,t.type,i.value),At(e,t,i.children,a),t.child;case 9:return u=t.type._context,i=t.pendingProps.children,Ka(t),u=_t(u),i=i(u),t.flags|=1,At(e,t,i,a),t.child;case 14:return xp(e,t,t.type,t.pendingProps,a);case 15:return Cp(e,t,t.type,t.pendingProps,a);case 19:return Dp(e,t,a);case 31:return i=t.pendingProps,a=t.mode,i={mode:i.mode,children:i.children},e===null?(a=jo(i,a),a.ref=t.ref,t.child=a,a.return=t,t=a):(a=qn(e.child,i),a.ref=t.ref,t.child=a,a.return=t,t=a),t;case 22:return Tp(e,t,a);case 24:return Ka(t),i=_t(gt),e===null?(u=Js(),u===null&&(u=Pe,f=Is(),u.pooledCache=f,f.refCount++,f!==null&&(u.pooledCacheLanes|=a),u=f),t.memoizedState={parent:i,cache:u},ec(t),ca(t,gt,u)):((e.lanes&a)!==0&&(tc(e,t),Gi(t,null,null,a),Vi()),u=e.memoizedState,f=t.memoizedState,u.parent!==i?(u={parent:i,cache:i},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),ca(t,gt,i)):(i=f.cache,ca(t,gt,i),i!==u.cache&&Ks(t,[gt],a,!0))),At(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function In(e){e.flags|=4}function zp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Hg(t)){if(t=sn.current,t!==null&&((Ee&4194048)===Ee?wn!==null:(Ee&62914560)!==Ee&&(Ee&536870912)===0||t!==wn))throw Yi=Fs,pm;e.flags|=8192}}function Uo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ch():536870912,e.lanes|=t,Gr|=t)}function Wi(e,t){if(!De)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Je(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(t)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,i|=u.subtreeFlags&65011712,i|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,i|=u.subtreeFlags,i|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=i,e.childLanes=a,t}function Ab(e,t,a){var i=t.pendingProps;switch(Ps(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(t),null;case 1:return Je(t),null;case 3:return a=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Xn(gt),Qe(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&($i(t)?In(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,cm())),Je(t),null;case 26:return a=t.memoizedState,e===null?(In(t),a!==null?(Je(t),zp(t,a)):(Je(t),t.flags&=-16777217)):a?a!==e.memoizedState?(In(t),Je(t),zp(t,a)):(Je(t),t.flags&=-16777217):(e.memoizedProps!==i&&In(t),Je(t),t.flags&=-16777217),null;case 27:it(t),a=se.current;var u=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==i&&In(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return Je(t),null}e=oe.current,$i(t)?um(t):(e=zg(u,i,a),t.stateNode=e,In(t))}return Je(t),null;case 5:if(it(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&In(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return Je(t),null}if(e=oe.current,$i(t))um(t);else{switch(u=Jo(se.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=u.createElement("div"),e.innerHTML=" + diff --git a/src/frontend/src/components/common/drawer-layout.tsx b/src/frontend/src/components/common/drawer-layout.tsx index bf53271f..36631b57 100644 --- a/src/frontend/src/components/common/drawer-layout.tsx +++ b/src/frontend/src/components/common/drawer-layout.tsx @@ -1,5 +1,14 @@ import { useEffect, useState, type FC, type PropsWithChildren } from 'react'; -import { Box, Button, IconButton, Stack, styled, Tooltip, Typography } from '@mui/material'; +import { + Box, + Button, + Divider, + IconButton, + Stack, + styled, + Tooltip, + Typography, +} from '@mui/material'; import { useCluster } from '../../services'; import { useAlertDialog } from '../mui'; import { IconBrandGradient } from '../brand'; @@ -43,8 +52,9 @@ const DrawerLayoutHeader = styled(Stack)(({ theme }) => { const { spacing } = theme; return { width: '100%', - height: '4rem', + height: '2.5rem', flex: 'none', + marginTop: spacing(1), paddingBlock: spacing(2), paddingInline: spacing(4), overflow: 'hidden', @@ -156,9 +166,36 @@ export const DrawerLayout: FC = ({ children }) => { confirmLabel: 'Finish', }); + const IconCluster = () => ( + + + + + + + + + ); + return ( - + {sidebarExpanded ? <> @@ -176,6 +213,7 @@ export const DrawerLayout: FC = ({ children }) => { sx={{ fontSize: '1.5rem', borderRadius: '8px', + color: '#808080FF', '&:hover': { bgcolor: 'action.hover' }, }} onClick={() => setMenuOpen((prev) => !prev)} @@ -241,15 +279,16 @@ export const DrawerLayout: FC = ({ children }) => { } {sidebarExpanded && ( - - - - + + + + Cluster topology + - @@ -257,7 +296,7 @@ export const DrawerLayout: FC = ({ children }) => { - + {modelName} diff --git a/src/frontend/src/components/common/network-left.svg b/src/frontend/src/components/common/network-left.svg new file mode 100644 index 00000000..8bee3860 --- /dev/null +++ b/src/frontend/src/components/common/network-left.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/frontend/src/components/inputs/chat-input.tsx b/src/frontend/src/components/inputs/chat-input.tsx index 31b39ffb..5492bbc9 100644 --- a/src/frontend/src/components/inputs/chat-input.tsx +++ b/src/frontend/src/components/inputs/chat-input.tsx @@ -44,7 +44,7 @@ export const ChatInput: FC = () => { onChange={(event) => setInput(event.target.value)} multiline maxRows={4} - placeholder='Ask anything...' + placeholder='Ask anything' fullWidth onKeyDown={onKeyDown} slotProps={{ @@ -53,9 +53,11 @@ export const ChatInput: FC = () => { border: '1px solid', borderColor: 'grey.300', borderRadius: 2, + fontSize: '0.95rem', boxShadow: '2px 2px 4px rgba(0,0,0,0.05)', flexDirection: 'column', '& textarea': { + fontSize: '0.95rem', scrollbarWidth: 'none', // Firefox msOverflowStyle: 'none', // IE, Edge '&::-webkit-scrollbar': { diff --git a/src/frontend/src/components/inputs/chat-markdown.tsx b/src/frontend/src/components/inputs/chat-markdown.tsx index 24a89124..96f964d0 100644 --- a/src/frontend/src/components/inputs/chat-markdown.tsx +++ b/src/frontend/src/components/inputs/chat-markdown.tsx @@ -33,6 +33,7 @@ const ChatMarkdownRoot = styled('article', { ...typography.body1, overflowWrap: 'break-word', maxWidth: '100%', + fontSize: '0.95rem', display: 'flex', flexFlow: 'column nowrap', diff --git a/src/frontend/src/components/inputs/chat-messages.tsx b/src/frontend/src/components/inputs/chat-messages.tsx index d6e55a0e..c1d0df96 100644 --- a/src/frontend/src/components/inputs/chat-messages.tsx +++ b/src/frontend/src/components/inputs/chat-messages.tsx @@ -2,8 +2,6 @@ import { memo, useEffect, useRef, useState, type FC, type UIEventHandler } from import { useChat, type ChatMessage } from '../../services'; import { Box, Button, IconButton, Paper, Stack, Tooltip, Typography } from '@mui/material'; import { - IconArrowAutofitDown, - IconArrowBack, IconArrowDown, IconCopy, IconCopyCheck, @@ -20,18 +18,46 @@ export const ChatMessages: FC = () => { const refBottom = useRef(null); const [isBottom, setIsBottom] = useState(true); + const userScrolledUpRef = useRef(false); + const autoScrollingRef = useRef(false); + const prevScrollTopRef = useRef(0); + useEffect(() => { + if (userScrolledUpRef.current) return; + autoScrollingRef.current = true; refBottom.current?.scrollIntoView({ behavior: 'smooth' }); + const t = setTimeout(() => { autoScrollingRef.current = false; }, 200); + return () => clearTimeout(t); }, [messages]); - const onScroll = useRefCallback>((event) => { - const { current: container } = refContainer; - if (!container) { - return; + const onScroll = useRefCallback>(() => { + const container = refContainer.current; + if (!container) return; + + const { scrollTop, scrollHeight, clientHeight } = container; + const bottomGap = scrollHeight - scrollTop - clientHeight; + + setIsBottom(bottomGap < 10); + + if (!autoScrollingRef.current) { + if (scrollTop < prevScrollTopRef.current - 2) { + userScrolledUpRef.current = true; + } + } + prevScrollTopRef.current = scrollTop; + + if (bottomGap < 10) { + userScrolledUpRef.current = false; } - setIsBottom(container.scrollHeight - container.scrollTop - container.clientHeight < 10); }); + const scrollToBottom = () => { + userScrolledUpRef.current = false; + autoScrollingRef.current = true; + refBottom.current?.scrollIntoView({ behavior: 'smooth' }); + setTimeout(() => { autoScrollingRef.current = false; }, 200); + }; + return ( { overflowX: 'hidden', overflowY: 'auto', gap: 4, - '&::-webkit-scrollbar': { - display: 'none', - }, + '&::-webkit-scrollbar': { display: 'none' }, scrollbarWidth: 'none', msOverflowStyle: 'none', }} onScroll={onScroll} + // 额外保险:用户滚轮“向上”也算主动上滑 + onWheel={(e) => { + if (e.deltaY < 0) userScrolledUpRef.current = true; + }} + onTouchMove={() => { userScrolledUpRef.current = true; }} // 移动端手势上滑 > {messages.map((message, idx) => ( ))} - {status === 'opened' && } + {status === 'opened' && } - + {!isBottom && ( refBottom.current?.scrollIntoView({ behavior: 'smooth' })} - size='small' + onClick={scrollToBottom} + size="small" sx={{ position: 'sticky', bottom: 0, @@ -78,7 +101,7 @@ export const ChatMessages: FC = () => { borderColor: 'grey.300', '&:hover': { bgcolor: 'grey.100' }, }} - aria-label='Scroll to bottom' + aria-label="Scroll to bottom" > @@ -110,58 +133,54 @@ const ChatMessage: FC<{ message: ChatMessage; isLast?: boolean }> = memo(({ mess const justifyContent = role === 'user' ? 'flex-end' : 'flex-start'; const nodeContent = - role === 'user' ? ( + role === 'user' ? {content} - ) : ( - - ); + : ; + - // 仅当 assistant 完成时显示操作(不是最后一条,或状态已 closed) const assistantDone = !isLast || status === 'closed'; - // 是否显示各按钮 + const showCopy = role === 'user' || (role === 'assistant' && assistantDone); const showRegen = role === 'assistant' && assistantDone; - // user 消息:默认隐藏 actions,hover 父容器时显示 const userHoverRevealSx = - role === 'user' - ? { - '&:hover .actions-user': { - opacity: 1, - pointerEvents: 'auto', - }, - } - : {}; + role === 'user' ? + { + '&:hover .actions-user': { + opacity: 1, + pointerEvents: 'auto', + }, + } + : {}; return ( - + {/* 父容器:承载 hover */} {nodeContent} {(showCopy || showRegen) && ( {showCopy && ( @@ -174,7 +193,7 @@ const ChatMessage: FC<{ message: ChatMessage; isLast?: boolean }> = memo(({ mess > = memo(({ mess '&:hover': { bgcolor: 'action.hover' }, }} > - {copied ? : } + {copied ? + + : } )} {showRegen && ( = memo(({ mess > = { failed: 'error', }; -const IconNode = () => ( - - - -); - const STATUS_ICON_MAP: Record< NodeStatus, ForwardRefExoticComponent> @@ -117,27 +110,24 @@ const Node: FC<{ variant: NodeListVariant; node?: NodeInfo }> = ({ variant, node - - - + {(node && ( - + {gpuName} {gpuMemory}GB )) || } - {(node && ( + {/* {(node && ( = ({ variant, node > {id && id.substring(0, 4) + '...' + id.substring(id.length - 4)} - )) || } + )) || } */} {node && ( diff --git a/src/frontend/src/pages/setup.tsx b/src/frontend/src/pages/setup.tsx index 71d2a86c..df3bd61b 100644 --- a/src/frontend/src/pages/setup.tsx +++ b/src/frontend/src/pages/setup.tsx @@ -88,8 +88,8 @@ export default function PageSetup() { value={networkType} onChange={(_, value) => value && setNetworkType(value)} > - Local - Remote + Local + Remote From 619081c73d02b42d9c5fe418e9478ce97de36f37 Mon Sep 17 00:00:00 2001 From: yuyin-zhang <106600353+yuyin-zhang@users.noreply.github.com> Date: Tue, 30 Sep 2025 13:56:11 +1000 Subject: [PATCH 4/9] fix: comment issue --- src/frontend/src/components/inputs/chat-messages.tsx | 6 ++---- src/frontend/src/pages/setup.tsx | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/frontend/src/components/inputs/chat-messages.tsx b/src/frontend/src/components/inputs/chat-messages.tsx index c1d0df96..fdef1abb 100644 --- a/src/frontend/src/components/inputs/chat-messages.tsx +++ b/src/frontend/src/components/inputs/chat-messages.tsx @@ -71,11 +71,10 @@ export const ChatMessages: FC = () => { msOverflowStyle: 'none', }} onScroll={onScroll} - // 额外保险:用户滚轮“向上”也算主动上滑 onWheel={(e) => { if (e.deltaY < 0) userScrolledUpRef.current = true; }} - onTouchMove={() => { userScrolledUpRef.current = true; }} // 移动端手势上滑 + onTouchMove={() => { userScrolledUpRef.current = true; }} > {messages.map((message, idx) => ( @@ -160,8 +159,7 @@ const ChatMessage: FC<{ message: ChatMessage; isLast?: boolean }> = memo(({ mess : {}; return ( - - {/* 父容器:承载 hover */} + {nodeContent} diff --git a/src/frontend/src/pages/setup.tsx b/src/frontend/src/pages/setup.tsx index df3bd61b..d8339749 100644 --- a/src/frontend/src/pages/setup.tsx +++ b/src/frontend/src/pages/setup.tsx @@ -63,12 +63,12 @@ export default function PageSetup() { sx: { bgcolor: 'transparent', '&:hover': { bgcolor: 'transparent' }, - '&:focus-within': { bgcolor: 'transparent' }, // 聚焦时不变灰 + '&:focus-within': { bgcolor: 'transparent' }, }, }, input: { sx: { - bgcolor: 'transparent !important', // 内部 也透明 + bgcolor: 'transparent !important', '&:focus': { outline: 'none' }, }, }, From 30e6d684031ed11304e8ba1aede213bab5569bc2 Mon Sep 17 00:00:00 2001 From: yuyin-zhang <106600353+yuyin-zhang@users.noreply.github.com> Date: Tue, 30 Sep 2025 14:06:04 +1000 Subject: [PATCH 5/9] fix: pre-commit error --- src/frontend/src/components/inputs/chat-messages.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontend/src/components/inputs/chat-messages.tsx b/src/frontend/src/components/inputs/chat-messages.tsx index fdef1abb..a6c99b36 100644 --- a/src/frontend/src/components/inputs/chat-messages.tsx +++ b/src/frontend/src/components/inputs/chat-messages.tsx @@ -159,7 +159,7 @@ const ChatMessage: FC<{ message: ChatMessage; isLast?: boolean }> = memo(({ mess : {}; return ( - + {nodeContent} @@ -174,8 +174,8 @@ const ChatMessage: FC<{ message: ChatMessage; isLast?: boolean }> = memo(({ mess gap: 0.5, ...(role === 'user' ? { - opacity: 0, - pointerEvents: 'none', + opacity: 0, + pointerEvents: 'none', transition: 'opacity .15s ease', } : {}), From ae9c8b3fce3531e48cd02f4e4a4ca8b48329597e Mon Sep 17 00:00:00 2001 From: yuyin-zhang <106600353+yuyin-zhang@users.noreply.github.com> Date: Tue, 30 Sep 2025 14:07:37 +1000 Subject: [PATCH 6/9] fix: rm svg --- src/frontend/src/components/common/network-left.svg | 1 - 1 file changed, 1 deletion(-) delete mode 100644 src/frontend/src/components/common/network-left.svg diff --git a/src/frontend/src/components/common/network-left.svg b/src/frontend/src/components/common/network-left.svg deleted file mode 100644 index 8bee3860..00000000 --- a/src/frontend/src/components/common/network-left.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file From a4c62c0adf6018369f3500b40bf081e8468a6301 Mon Sep 17 00:00:00 2001 From: yuyin-zhang <106600353+yuyin-zhang@users.noreply.github.com> Date: Tue, 30 Sep 2025 16:12:24 +1000 Subject: [PATCH 7/9] fix: ui issues --- .../src/components/common/drawer-layout.tsx | 12 +++++------ .../src/components/inputs/chat-input.tsx | 21 ++----------------- .../src/components/inputs/node-list.tsx | 8 +++---- src/frontend/src/pages/setup.tsx | 6 +++--- src/frontend/src/services/chat.tsx | 17 +++++++++++++++ 5 files changed, 31 insertions(+), 33 deletions(-) diff --git a/src/frontend/src/components/common/drawer-layout.tsx b/src/frontend/src/components/common/drawer-layout.tsx index 36631b57..d9ac3855 100644 --- a/src/frontend/src/components/common/drawer-layout.tsx +++ b/src/frontend/src/components/common/drawer-layout.tsx @@ -168,8 +168,8 @@ export const DrawerLayout: FC = ({ children }) => { const IconCluster = () => ( @@ -192,8 +192,8 @@ export const DrawerLayout: FC = ({ children }) => { @@ -281,8 +281,8 @@ export const DrawerLayout: FC = ({ children }) => { {sidebarExpanded && ( - - + {/* */} + Cluster topology diff --git a/src/frontend/src/components/inputs/chat-input.tsx b/src/frontend/src/components/inputs/chat-input.tsx index 5492bbc9..76c1abc9 100644 --- a/src/frontend/src/components/inputs/chat-input.tsx +++ b/src/frontend/src/components/inputs/chat-input.tsx @@ -5,8 +5,6 @@ import { useChat, useCluster } from '../../services'; import { IconArrowBackUp, IconArrowUp, - IconLoader, - IconSquare, IconSquareFilled, } from '@tabler/icons-react'; import { DotPulse } from './dot-pulse'; @@ -18,21 +16,7 @@ export const ChatInput: FC = () => { clusterInfo: { status: clusterStatus }, }, ] = useCluster(); - const [{ input, status }, { setInput, generate, stop, clear }] = useChat(); - - const onKeyDown = useRefCallback((e) => { - if (e.key === 'Enter' && !e.shiftKey) { - e.preventDefault(); - const ret = generate(); - // eslint-disable-next-line @typescript-eslint/no-explicit-any - if (typeof ret !== 'undefined' && ret !== null && typeof (ret as any).then === 'function') { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - (ret as Promise).then(() => setInput('')); - } else { - setInput(''); - } - } - }); + const [{ input, status }, { setInput, generate, stop, clear, handleKeyDown }] = useChat(); return ( @@ -46,7 +30,7 @@ export const ChatInput: FC = () => { maxRows={4} placeholder='Ask anything' fullWidth - onKeyDown={onKeyDown} + onKeyDown={handleKeyDown} slotProps={{ input: { sx: { @@ -86,7 +70,6 @@ export const ChatInput: FC = () => { stop(); } else if (status === 'closed') { generate(); - setInput(''); } }} > diff --git a/src/frontend/src/components/inputs/node-list.tsx b/src/frontend/src/components/inputs/node-list.tsx index c586dcc4..37e08901 100644 --- a/src/frontend/src/components/inputs/node-list.tsx +++ b/src/frontend/src/components/inputs/node-list.tsx @@ -2,10 +2,8 @@ import type { FC, ForwardRefExoticComponent, RefAttributes } from 'react'; import * as motion from 'motion/react-client'; import { IconCheck, - IconCircle, IconCircleFilled, - IconDeviceDesktop, - IconDeviceLaptop, + IconDevices2, IconLoader, IconX, type Icon, @@ -117,11 +115,11 @@ const Node: FC<{ variant: NodeListVariant; node?: NodeInfo }> = ({ variant, node gap: 1, }} > - + {(node && ( - + {gpuName} {gpuMemory}GB )) || } diff --git a/src/frontend/src/pages/setup.tsx b/src/frontend/src/pages/setup.tsx index d8339749..d86c3fb4 100644 --- a/src/frontend/src/pages/setup.tsx +++ b/src/frontend/src/pages/setup.tsx @@ -83,13 +83,13 @@ export default function PageSetup() { Are you nodes within the same local network? value && setNetworkType(value)} > - Local - Remote + Local + Remote diff --git a/src/frontend/src/services/chat.tsx b/src/frontend/src/services/chat.tsx index 0d2f630e..f3eeb1f0 100644 --- a/src/frontend/src/services/chat.tsx +++ b/src/frontend/src/services/chat.tsx @@ -6,6 +6,7 @@ import { useState, type Dispatch, type FC, + type KeyboardEventHandler, type PropsWithChildren, type SetStateAction, } from 'react'; @@ -41,6 +42,7 @@ export interface ChatActions { readonly generate: (message?: ChatMessage) => void; readonly stop: () => void; readonly clear: () => void; + readonly handleKeyDown: KeyboardEventHandler; } export const ChatProvider: FC = ({ children }) => { @@ -176,11 +178,26 @@ export const ChatProvider: FC = ({ children }) => { setMessages([]); }); + const handleKeyDown = useRefCallback((e) => { + if (e.key === 'Enter' && !e.shiftKey) { + e.preventDefault(); + const ret = generate(); + // eslint-disable-next-line @typescript-eslint/no-explicit-any + if (typeof ret !== 'undefined' && ret !== null && typeof (ret as any).then === 'function') { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (ret as Promise).then(() => setInput('')); + } else { + setInput(''); + } + } +}); + const actions = useConst({ setInput, generate, stop, clear, + handleKeyDown, }); const value = useMemo( From ff168191c20d3517c2a18f87e74da0c2278541ba Mon Sep 17 00:00:00 2001 From: yuyin-zhang <106600353+yuyin-zhang@users.noreply.github.com> Date: Tue, 30 Sep 2025 16:23:22 +1000 Subject: [PATCH 8/9] fix: hook issues --- .../src/components/inputs/chat-input.tsx | 17 ++++++++++------- src/frontend/src/services/chat.tsx | 17 ----------------- 2 files changed, 10 insertions(+), 24 deletions(-) diff --git a/src/frontend/src/components/inputs/chat-input.tsx b/src/frontend/src/components/inputs/chat-input.tsx index 76c1abc9..5541e300 100644 --- a/src/frontend/src/components/inputs/chat-input.tsx +++ b/src/frontend/src/components/inputs/chat-input.tsx @@ -2,11 +2,7 @@ import { Button, Stack, TextField } from '@mui/material'; import type { FC, KeyboardEventHandler } from 'react'; import { useRefCallback } from '../../hooks'; import { useChat, useCluster } from '../../services'; -import { - IconArrowBackUp, - IconArrowUp, - IconSquareFilled, -} from '@tabler/icons-react'; +import { IconArrowBackUp, IconArrowUp, IconSquareFilled } from '@tabler/icons-react'; import { DotPulse } from './dot-pulse'; export const ChatInput: FC = () => { @@ -16,7 +12,14 @@ export const ChatInput: FC = () => { clusterInfo: { status: clusterStatus }, }, ] = useCluster(); - const [{ input, status }, { setInput, generate, stop, clear, handleKeyDown }] = useChat(); + const [{ input, status }, { setInput, generate, stop, clear }] = useChat(); + + const onKeyDown = useRefCallback((e) => { + if (e.key === 'Enter' && !e.shiftKey) { + e.preventDefault(); + generate(); + } + }); return ( @@ -30,7 +33,7 @@ export const ChatInput: FC = () => { maxRows={4} placeholder='Ask anything' fullWidth - onKeyDown={handleKeyDown} + onKeyDown={onKeyDown} slotProps={{ input: { sx: { diff --git a/src/frontend/src/services/chat.tsx b/src/frontend/src/services/chat.tsx index f3eeb1f0..0d2f630e 100644 --- a/src/frontend/src/services/chat.tsx +++ b/src/frontend/src/services/chat.tsx @@ -6,7 +6,6 @@ import { useState, type Dispatch, type FC, - type KeyboardEventHandler, type PropsWithChildren, type SetStateAction, } from 'react'; @@ -42,7 +41,6 @@ export interface ChatActions { readonly generate: (message?: ChatMessage) => void; readonly stop: () => void; readonly clear: () => void; - readonly handleKeyDown: KeyboardEventHandler; } export const ChatProvider: FC = ({ children }) => { @@ -178,26 +176,11 @@ export const ChatProvider: FC = ({ children }) => { setMessages([]); }); - const handleKeyDown = useRefCallback((e) => { - if (e.key === 'Enter' && !e.shiftKey) { - e.preventDefault(); - const ret = generate(); - // eslint-disable-next-line @typescript-eslint/no-explicit-any - if (typeof ret !== 'undefined' && ret !== null && typeof (ret as any).then === 'function') { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - (ret as Promise).then(() => setInput('')); - } else { - setInput(''); - } - } -}); - const actions = useConst({ setInput, generate, stop, clear, - handleKeyDown, }); const value = useMemo( From 21bdfe733264c36b67a481c2d61169863d4a6038 Mon Sep 17 00:00:00 2001 From: yuyin-zhang <106600353+yuyin-zhang@users.noreply.github.com> Date: Tue, 30 Sep 2025 16:24:16 +1000 Subject: [PATCH 9/9] feat: frontend build --- src/frontend/dist/assets/chat-CCbYFHrx.js | 16 ---------- src/frontend/dist/assets/chat-DTYOBy9Z.js | 16 ++++++++++ .../{index-v4ef5gIt.js => index-CKPnC4Q3.js} | 4 +-- .../{join-B_6EnepF.js => join-BU_m_8I2.js} | 2 +- ...ut-BAzhIrTg.js => main-layout-_30RNP4s.js} | 32 +++++++++---------- .../{setup-D6yQPS_R.js => setup-D6eE3iQP.js} | 4 +-- src/frontend/dist/index.html | 2 +- 7 files changed, 38 insertions(+), 38 deletions(-) delete mode 100644 src/frontend/dist/assets/chat-CCbYFHrx.js create mode 100644 src/frontend/dist/assets/chat-DTYOBy9Z.js rename src/frontend/dist/assets/{index-v4ef5gIt.js => index-CKPnC4Q3.js} (99%) rename src/frontend/dist/assets/{join-B_6EnepF.js => join-BU_m_8I2.js} (94%) rename src/frontend/dist/assets/{main-layout-BAzhIrTg.js => main-layout-_30RNP4s.js} (94%) rename src/frontend/dist/assets/{setup-D6yQPS_R.js => setup-D6eE3iQP.js} (76%) diff --git a/src/frontend/dist/assets/chat-CCbYFHrx.js b/src/frontend/dist/assets/chat-CCbYFHrx.js deleted file mode 100644 index 21e6456e..00000000 --- a/src/frontend/dist/assets/chat-CCbYFHrx.js +++ /dev/null @@ -1,16 +0,0 @@ -import{a as A,g as N,r as x,u as H,j as n,s as T,c as W,b as z,d as U,m as V,h as Te,q as ze,v as Le,w as I,i as ee,n as Me,x as Re,l as je,S as ae,p as le}from"./index-v4ef5gIt.js";import{i as Z,b as qe,c as ie,F as $e,u as te,f as re,O as Ae,d as Ne,e as He,S as We,D as Ue,g as Ee,C as De}from"./main-layout-BAzhIrTg.js";function Oe(e){return A("MuiFormControl",e)}N("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Be=e=>{const{classes:t,margin:r,fullWidth:o}=e,s={root:["root",r!=="none"&&`margin${z(r)}`,o&&"fullWidth"]};return U(s,Oe,t)},_e=T("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${z(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ke=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormControl"}),{children:s,className:l,color:i="primary",component:u="div",disabled:a=!1,error:d=!1,focused:c,fullWidth:b=!1,hiddenLabel:h=!1,margin:g="none",required:f=!1,size:m="medium",variant:p="outlined",...y}=o,P={...o,color:i,component:u,disabled:a,error:d,fullWidth:b,hiddenLabel:h,margin:g,required:f,size:m,variant:p},G=Be(P),[F,J]=x.useState(()=>{let C=!1;return s&&x.Children.forEach(s,v=>{if(!Z(v,["Input","Select"]))return;const j=Z(v,["Select"])?v.props.input:v;j&&qe(j.props)&&(C=!0)}),C}),[E,L]=x.useState(()=>{let C=!1;return s&&x.Children.forEach(s,v=>{Z(v,["Input","Select"])&&(ie(v.props,!0)||ie(v.props.inputProps,!0))&&(C=!0)}),C}),[D,M]=x.useState(!1);a&&D&&M(!1);const O=c!==void 0&&!a?c:D;let B;x.useRef(!1);const _=x.useCallback(()=>{L(!0)},[]),R=x.useCallback(()=>{L(!1)},[]),Q=x.useMemo(()=>({adornedStart:F,setAdornedStart:J,color:i,disabled:a,error:d,filled:E,focused:O,fullWidth:b,hiddenLabel:h,size:m,onBlur:()=>{M(!1)},onFocus:()=>{M(!0)},onEmpty:R,onFilled:_,registerEffect:B,required:f,variant:p}),[F,i,a,d,E,O,b,h,B,R,_,f,m,p]);return n.jsx($e.Provider,{value:Q,children:n.jsx(_e,{as:u,ownerState:P,className:W(G.root,l),ref:r,...y,children:s})})});function Ve(e){return A("MuiFormHelperText",e)}const de=N("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ce;const Ge=e=>{const{classes:t,contained:r,size:o,disabled:s,error:l,filled:i,focused:u,required:a}=e,d={root:["root",s&&"disabled",l&&"error",o&&`size${z(o)}`,r&&"contained",u&&"focused",i&&"filled",a&&"required"]};return U(d,Ve,t)},Je=T("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${z(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${de.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${de.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Qe=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormHelperText"}),{children:s,className:l,component:i="p",disabled:u,error:a,filled:d,focused:c,margin:b,required:h,variant:g,...f}=o,m=te(),p=re({props:o,muiFormControl:m,states:["variant","size","disabled","error","filled","focused","required"]}),y={...o,component:i,contained:p.variant==="filled"||p.variant==="outlined",variant:p.variant,size:p.size,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required};delete y.ownerState;const P=Ge(y);return n.jsx(Je,{as:i,className:W(P.root,l),ref:r,...f,ownerState:y,children:s===" "?ce||(ce=n.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):s})});function Xe(e){return A("MuiFormLabel",e)}const $=N("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ye=e=>{const{classes:t,color:r,focused:o,disabled:s,error:l,filled:i,required:u}=e,a={root:["root",`color${z(r)}`,s&&"disabled",l&&"error",i&&"filled",o&&"focused",u&&"required"],asterisk:["asterisk",l&&"error"]};return U(a,Xe,t)},Ze=T("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Te()).map(([t])=>({props:{color:t},style:{[`&.${$.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${$.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),et=T("span",{name:"MuiFormLabel",slot:"Asterisk"})(V(({theme:e})=>({[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}))),tt=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormLabel"}),{children:s,className:l,color:i,component:u="label",disabled:a,error:d,filled:c,focused:b,required:h,...g}=o,f=te(),m=re({props:o,muiFormControl:f,states:["color","required","focused","disabled","error","filled"]}),p={...o,color:m.color||"primary",component:u,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required},y=Ye(p);return n.jsxs(Ze,{as:u,ownerState:p,className:W(y.root,l),ref:r,...g,children:[s,m.required&&n.jsxs(et,{ownerState:p,"aria-hidden":!0,className:y.asterisk,children:[" ","*"]})]})});function rt(e){return A("MuiInputLabel",e)}N("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ot=e=>{const{classes:t,formControl:r,size:o,shrink:s,disableAnimation:l,variant:i,required:u}=e,a={root:["root",r&&"formControl",!l&&"animated",s&&"shrink",o&&o!=="medium"&&`size${z(o)}`,i],asterisk:[u&&"asterisk"]},d=U(a,rt,t);return{...t,...d}},st=T(tt,{shouldForwardProp:e=>ze(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${$.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(V(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:o})=>t==="filled"&&r.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),nt=x.forwardRef(function(t,r){const o=H({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,margin:l,shrink:i,variant:u,className:a,...d}=o,c=te();let b=i;typeof b>"u"&&c&&(b=c.filled||c.focused||c.adornedStart);const h=re({props:o,muiFormControl:c,states:["size","variant","required","focused"]}),g={...o,disableAnimation:s,formControl:c,shrink:b,size:h.size,variant:h.variant,required:h.required,focused:h.focused},f=ot(g);return n.jsx(st,{"data-shrink":b,ref:r,className:W(f.root,a),...d,ownerState:g,classes:f})});function at(e){return A("MuiTextField",e)}N("MuiTextField",["root"]);const lt={standard:He,filled:Ne,outlined:Ae},it=e=>{const{classes:t}=e;return U({root:["root"]},at,t)},dt=T(Ke,{name:"MuiTextField",slot:"Root"})({}),ct=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiTextField"}),{autoComplete:s,autoFocus:l=!1,children:i,className:u,color:a="primary",defaultValue:d,disabled:c=!1,error:b=!1,FormHelperTextProps:h,fullWidth:g=!1,helperText:f,id:m,InputLabelProps:p,inputProps:y,InputProps:P,inputRef:G,label:F,maxRows:J,minRows:E,multiline:L=!1,name:D,onBlur:M,onChange:O,onFocus:B,placeholder:_,required:R=!1,rows:Q,select:C=!1,SelectProps:v,slots:j={},slotProps:pe={},type:ue,value:oe,variant:K="outlined",...me}=o,S={...o,autoFocus:l,color:a,disabled:c,error:b,fullWidth:g,multiline:L,required:R,select:C,variant:K},fe=it(S),k=Le(m),X=f&&k?`${k}-helper-text`:void 0,se=F&&k?`${k}-label`:void 0,xe=lt[K],w={slots:j,slotProps:{input:P,inputLabel:p,htmlInput:y,formHelperText:h,select:v,...pe}},q={},Y=w.slotProps.inputLabel;K==="outlined"&&(Y&&typeof Y.shrink<"u"&&(q.notched=Y.shrink),q.label=F),C&&((!v||!v.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const[be,he]=I("root",{elementType:dt,shouldForwardComponentProp:!0,externalForwardedProps:{...w,...me},ownerState:S,className:W(fe.root,u),ref:r,additionalProps:{disabled:c,error:b,fullWidth:g,required:R,color:a,variant:K}}),[ve,ge]=I("input",{elementType:xe,externalForwardedProps:w,additionalProps:q,ownerState:S}),[ye,Ce]=I("inputLabel",{elementType:nt,externalForwardedProps:w,ownerState:S}),[Fe,Se]=I("htmlInput",{elementType:"input",externalForwardedProps:w,ownerState:S}),[ke,we]=I("formHelperText",{elementType:Qe,externalForwardedProps:w,ownerState:S}),[Pe,Ie]=I("select",{elementType:We,externalForwardedProps:w,ownerState:S}),ne=n.jsx(ve,{"aria-describedby":X,autoComplete:s,autoFocus:l,defaultValue:d,fullWidth:g,multiline:L,name:D,rows:Q,maxRows:J,minRows:E,type:ue,value:oe,id:k,inputRef:G,onBlur:M,onChange:O,onFocus:B,placeholder:_,inputProps:Se,slots:{input:j.htmlInput?Fe:void 0},...ge});return n.jsxs(be,{...he,children:[F!=null&&F!==""&&n.jsx(ye,{htmlFor:k,id:se,...Ce,children:F}),C?n.jsx(Pe,{"aria-describedby":X,id:k,labelId:se,value:oe,input:ne,...Ie,children:i}):ne,f&&n.jsx(ke,{id:X,...we,children:f})]})});/** - * @license @tabler/icons-react v3.35.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const pt=[["path",{d:"M9 14l-4 -4l4 -4",key:"svg-0"}],["path",{d:"M5 10h11a4 4 0 1 1 0 8h-1",key:"svg-1"}]],ut=ee("outline","arrow-back-up","ArrowBackUp",pt);/** - * @license @tabler/icons-react v3.35.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const mt=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 11l-6 -6",key:"svg-1"}],["path",{d:"M6 11l6 -6",key:"svg-2"}]],ft=ee("outline","arrow-up","ArrowUp",mt);/** - * @license @tabler/icons-react v3.35.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const xt=[["path",{d:"M19 2h-14a3 3 0 0 0 -3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3 -3v-14a3 3 0 0 0 -3 -3z",key:"svg-0"}]],bt=ee("filled","square-filled","SquareFilled",xt),ht=()=>{const[{modelName:e,clusterInfo:{status:t}}]=Me(),[{input:r,status:o},{setInput:s,generate:l,stop:i,clear:u}]=Re(),a=je(d=>{if(d.key==="Enter"&&!d.shiftKey){d.preventDefault();const c=l();typeof c<"u"&&c!==null&&typeof c.then=="function"?c.then(()=>s("")):s("")}});return n.jsx(ae,{"data-status":o,children:n.jsx(ct,{value:r,onChange:d=>s(d.target.value),multiline:!0,maxRows:4,placeholder:"Ask anything",fullWidth:!0,onKeyDown:a,slotProps:{input:{sx:{border:"1px solid",borderColor:"grey.300",borderRadius:2,fontSize:"0.95rem",boxShadow:"2px 2px 4px rgba(0,0,0,0.05)",flexDirection:"column","& textarea":{fontSize:"0.95rem",scrollbarWidth:"none",msOverflowStyle:"none","&::-webkit-scrollbar":{display:"none"}}},endAdornment:n.jsxs(ae,{direction:"row",sx:{alignSelf:"flex-end",alignItems:"center",gap:2},children:[n.jsx(le,{variant:"text",sx:{color:"text.secondary"},startIcon:n.jsx(ut,{}),disabled:o==="opened"||o==="generating",onClick:u,children:"Clear"}),n.jsx(le,{size:"small",color:"primary",disabled:t!=="available",loading:o==="opened",onClick:()=>{o==="opened"?i():o==="closed"&&(l(),s(""))},children:o==="opened"?n.jsx(Ue,{size:"medium"}):o==="generating"?n.jsx(bt,{size:"1.25rem"}):n.jsx(ft,{size:"1.25rem"})})]})}}})})};function yt(){return n.jsxs(Ee,{children:[n.jsx(De,{}),n.jsx(ht,{})]})}export{yt as default}; diff --git a/src/frontend/dist/assets/chat-DTYOBy9Z.js b/src/frontend/dist/assets/chat-DTYOBy9Z.js new file mode 100644 index 00000000..1021d97b --- /dev/null +++ b/src/frontend/dist/assets/chat-DTYOBy9Z.js @@ -0,0 +1,16 @@ +import{a as A,g as N,r as x,u as H,j as a,s as T,c as W,b as z,d as U,m as V,h as Te,q as ze,v as Le,w as I,i as ee,n as Me,x as Re,l as je,S as ne,p as le}from"./index-CKPnC4Q3.js";import{i as Z,b as qe,c as ie,F as $e,u as re,f as te,O as Ae,d as Ne,e as He,S as We,D as Ue,g as Ee,C as De}from"./main-layout-_30RNP4s.js";function Oe(e){return A("MuiFormControl",e)}N("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Be=e=>{const{classes:r,margin:t,fullWidth:o}=e,s={root:["root",t!=="none"&&`margin${z(t)}`,o&&"fullWidth"]};return U(s,Oe,r)},_e=T("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,r[`margin${z(t.margin)}`],t.fullWidth&&r.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ke=x.forwardRef(function(r,t){const o=H({props:r,name:"MuiFormControl"}),{children:s,className:l,color:i="primary",component:p="div",disabled:n=!1,error:d=!1,focused:m,fullWidth:b=!1,hiddenLabel:h=!1,margin:g="none",required:f=!1,size:u="medium",variant:c="outlined",...y}=o,P={...o,color:i,component:p,disabled:n,error:d,fullWidth:b,hiddenLabel:h,margin:g,required:f,size:u,variant:c},G=Be(P),[F,J]=x.useState(()=>{let C=!1;return s&&x.Children.forEach(s,v=>{if(!Z(v,["Input","Select"]))return;const j=Z(v,["Select"])?v.props.input:v;j&&qe(j.props)&&(C=!0)}),C}),[E,L]=x.useState(()=>{let C=!1;return s&&x.Children.forEach(s,v=>{Z(v,["Input","Select"])&&(ie(v.props,!0)||ie(v.props.inputProps,!0))&&(C=!0)}),C}),[D,M]=x.useState(!1);n&&D&&M(!1);const O=m!==void 0&&!n?m:D;let B;x.useRef(!1);const _=x.useCallback(()=>{L(!0)},[]),R=x.useCallback(()=>{L(!1)},[]),Q=x.useMemo(()=>({adornedStart:F,setAdornedStart:J,color:i,disabled:n,error:d,filled:E,focused:O,fullWidth:b,hiddenLabel:h,size:u,onBlur:()=>{M(!1)},onFocus:()=>{M(!0)},onEmpty:R,onFilled:_,registerEffect:B,required:f,variant:c}),[F,i,n,d,E,O,b,h,B,R,_,f,u,c]);return a.jsx($e.Provider,{value:Q,children:a.jsx(_e,{as:p,ownerState:P,className:W(G.root,l),ref:t,...y,children:s})})});function Ve(e){return A("MuiFormHelperText",e)}const de=N("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ce;const Ge=e=>{const{classes:r,contained:t,size:o,disabled:s,error:l,filled:i,focused:p,required:n}=e,d={root:["root",s&&"disabled",l&&"error",o&&`size${z(o)}`,t&&"contained",p&&"focused",i&&"filled",n&&"required"]};return U(d,Ve,r)},Je=T("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.size&&r[`size${z(t.size)}`],t.contained&&r.contained,t.filled&&r.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${de.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${de.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:r})=>r.contained,style:{marginLeft:14,marginRight:14}}]}))),Qe=x.forwardRef(function(r,t){const o=H({props:r,name:"MuiFormHelperText"}),{children:s,className:l,component:i="p",disabled:p,error:n,filled:d,focused:m,margin:b,required:h,variant:g,...f}=o,u=re(),c=te({props:o,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),y={...o,component:i,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required};delete y.ownerState;const P=Ge(y);return a.jsx(Je,{as:i,className:W(P.root,l),ref:t,...f,ownerState:y,children:s===" "?ce||(ce=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):s})});function Xe(e){return A("MuiFormLabel",e)}const $=N("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ye=e=>{const{classes:r,color:t,focused:o,disabled:s,error:l,filled:i,required:p}=e,n={root:["root",`color${z(t)}`,s&&"disabled",l&&"error",i&&"filled",o&&"focused",p&&"required"],asterisk:["asterisk",l&&"error"]};return U(n,Xe,r)},Ze=T("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.color==="secondary"&&r.colorSecondary,t.filled&&r.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Te()).map(([r])=>({props:{color:r},style:{[`&.${$.focused}`]:{color:(e.vars||e).palette[r].main}}})),{props:{},style:{[`&.${$.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),er=T("span",{name:"MuiFormLabel",slot:"Asterisk"})(V(({theme:e})=>({[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}))),rr=x.forwardRef(function(r,t){const o=H({props:r,name:"MuiFormLabel"}),{children:s,className:l,color:i,component:p="label",disabled:n,error:d,filled:m,focused:b,required:h,...g}=o,f=re(),u=te({props:o,muiFormControl:f,states:["color","required","focused","disabled","error","filled"]}),c={...o,color:u.color||"primary",component:p,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required},y=Ye(c);return a.jsxs(Ze,{as:p,ownerState:c,className:W(y.root,l),ref:t,...g,children:[s,u.required&&a.jsxs(er,{ownerState:c,"aria-hidden":!0,className:y.asterisk,children:[" ","*"]})]})});function tr(e){return A("MuiInputLabel",e)}N("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const or=e=>{const{classes:r,formControl:t,size:o,shrink:s,disableAnimation:l,variant:i,required:p}=e,n={root:["root",t&&"formControl",!l&&"animated",s&&"shrink",o&&o!=="medium"&&`size${z(o)}`,i],asterisk:[p&&"asterisk"]},d=U(n,tr,r);return{...r,...d}},sr=T(rr,{shouldForwardProp:e=>ze(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[{[`& .${$.asterisk}`]:r.asterisk},r.root,t.formControl&&r.formControl,t.size==="small"&&r.sizeSmall,t.shrink&&r.shrink,!t.disableAnimation&&r.animated,t.focused&&r.focused,r[t.variant]]}})(V(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:r})=>r.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:r})=>r.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:r})=>!r.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:r,ownerState:t})=>r==="filled"&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:r,ownerState:t,size:o})=>r==="filled"&&t.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:r,ownerState:t})=>r==="outlined"&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),ar=x.forwardRef(function(r,t){const o=H({name:"MuiInputLabel",props:r}),{disableAnimation:s=!1,margin:l,shrink:i,variant:p,className:n,...d}=o,m=re();let b=i;typeof b>"u"&&m&&(b=m.filled||m.focused||m.adornedStart);const h=te({props:o,muiFormControl:m,states:["size","variant","required","focused"]}),g={...o,disableAnimation:s,formControl:m,shrink:b,size:h.size,variant:h.variant,required:h.required,focused:h.focused},f=or(g);return a.jsx(sr,{"data-shrink":b,ref:t,className:W(f.root,n),...d,ownerState:g,classes:f})});function nr(e){return A("MuiTextField",e)}N("MuiTextField",["root"]);const lr={standard:He,filled:Ne,outlined:Ae},ir=e=>{const{classes:r}=e;return U({root:["root"]},nr,r)},dr=T(Ke,{name:"MuiTextField",slot:"Root"})({}),cr=x.forwardRef(function(r,t){const o=H({props:r,name:"MuiTextField"}),{autoComplete:s,autoFocus:l=!1,children:i,className:p,color:n="primary",defaultValue:d,disabled:m=!1,error:b=!1,FormHelperTextProps:h,fullWidth:g=!1,helperText:f,id:u,InputLabelProps:c,inputProps:y,InputProps:P,inputRef:G,label:F,maxRows:J,minRows:E,multiline:L=!1,name:D,onBlur:M,onChange:O,onFocus:B,placeholder:_,required:R=!1,rows:Q,select:C=!1,SelectProps:v,slots:j={},slotProps:pe={},type:ue,value:oe,variant:K="outlined",...me}=o,S={...o,autoFocus:l,color:n,disabled:m,error:b,fullWidth:g,multiline:L,required:R,select:C,variant:K},fe=ir(S),k=Le(u),X=f&&k?`${k}-helper-text`:void 0,se=F&&k?`${k}-label`:void 0,xe=lr[K],w={slots:j,slotProps:{input:P,inputLabel:c,htmlInput:y,formHelperText:h,select:v,...pe}},q={},Y=w.slotProps.inputLabel;K==="outlined"&&(Y&&typeof Y.shrink<"u"&&(q.notched=Y.shrink),q.label=F),C&&((!v||!v.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const[be,he]=I("root",{elementType:dr,shouldForwardComponentProp:!0,externalForwardedProps:{...w,...me},ownerState:S,className:W(fe.root,p),ref:t,additionalProps:{disabled:m,error:b,fullWidth:g,required:R,color:n,variant:K}}),[ve,ge]=I("input",{elementType:xe,externalForwardedProps:w,additionalProps:q,ownerState:S}),[ye,Ce]=I("inputLabel",{elementType:ar,externalForwardedProps:w,ownerState:S}),[Fe,Se]=I("htmlInput",{elementType:"input",externalForwardedProps:w,ownerState:S}),[ke,we]=I("formHelperText",{elementType:Qe,externalForwardedProps:w,ownerState:S}),[Pe,Ie]=I("select",{elementType:We,externalForwardedProps:w,ownerState:S}),ae=a.jsx(ve,{"aria-describedby":X,autoComplete:s,autoFocus:l,defaultValue:d,fullWidth:g,multiline:L,name:D,rows:Q,maxRows:J,minRows:E,type:ue,value:oe,id:k,inputRef:G,onBlur:M,onChange:O,onFocus:B,placeholder:_,inputProps:Se,slots:{input:j.htmlInput?Fe:void 0},...ge});return a.jsxs(be,{...he,children:[F!=null&&F!==""&&a.jsx(ye,{htmlFor:k,id:se,...Ce,children:F}),C?a.jsx(Pe,{"aria-describedby":X,id:k,labelId:se,value:oe,input:ae,...Ie,children:i}):ae,f&&a.jsx(ke,{id:X,...we,children:f})]})});/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const pr=[["path",{d:"M9 14l-4 -4l4 -4",key:"svg-0"}],["path",{d:"M5 10h11a4 4 0 1 1 0 8h-1",key:"svg-1"}]],ur=ee("outline","arrow-back-up","ArrowBackUp",pr);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const mr=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 11l-6 -6",key:"svg-1"}],["path",{d:"M6 11l6 -6",key:"svg-2"}]],fr=ee("outline","arrow-up","ArrowUp",mr);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const xr=[["path",{d:"M19 2h-14a3 3 0 0 0 -3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3 -3v-14a3 3 0 0 0 -3 -3z",key:"svg-0"}]],br=ee("filled","square-filled","SquareFilled",xr),hr=()=>{const[{modelName:e,clusterInfo:{status:r}}]=Me(),[{input:t,status:o},{setInput:s,generate:l,stop:i,clear:p}]=Re(),n=je(d=>{d.key==="Enter"&&!d.shiftKey&&(d.preventDefault(),l())});return a.jsx(ne,{"data-status":o,children:a.jsx(cr,{value:t,onChange:d=>s(d.target.value),multiline:!0,maxRows:4,placeholder:"Ask anything",fullWidth:!0,onKeyDown:n,slotProps:{input:{sx:{border:"1px solid",borderColor:"grey.300",borderRadius:2,fontSize:"0.95rem",boxShadow:"2px 2px 4px rgba(0,0,0,0.05)",flexDirection:"column","& textarea":{fontSize:"0.95rem",scrollbarWidth:"none",msOverflowStyle:"none","&::-webkit-scrollbar":{display:"none"}}},endAdornment:a.jsxs(ne,{direction:"row",sx:{alignSelf:"flex-end",alignItems:"center",gap:2},children:[a.jsx(le,{variant:"text",sx:{color:"text.secondary"},startIcon:a.jsx(ur,{}),disabled:o==="opened"||o==="generating",onClick:p,children:"Clear"}),a.jsx(le,{size:"small",color:"primary",disabled:r!=="available",loading:o==="opened",onClick:()=>{o==="opened"?i():o==="closed"&&l()},children:o==="opened"?a.jsx(Ue,{size:"medium"}):o==="generating"?a.jsx(br,{size:"1.25rem"}):a.jsx(fr,{size:"1.25rem"})})]})}}})})};function yr(){return a.jsxs(Ee,{children:[a.jsx(De,{}),a.jsx(hr,{})]})}export{yr as default}; diff --git a/src/frontend/dist/assets/index-v4ef5gIt.js b/src/frontend/dist/assets/index-CKPnC4Q3.js similarity index 99% rename from src/frontend/dist/assets/index-v4ef5gIt.js rename to src/frontend/dist/assets/index-CKPnC4Q3.js index b26a981d..700e9655 100644 --- a/src/frontend/dist/assets/index-v4ef5gIt.js +++ b/src/frontend/dist/assets/index-CKPnC4Q3.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/setup-D6yQPS_R.js","assets/main-layout-BAzhIrTg.js","assets/main-layout-DVneG3Rq.css","assets/join-B_6EnepF.js","assets/chat-CCbYFHrx.js"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/setup-D6eE3iQP.js","assets/main-layout-_30RNP4s.js","assets/main-layout-DVneG3Rq.css","assets/join-BU_m_8I2.js","assets/chat-DTYOBy9Z.js"])))=>i.map(i=>d[i]); function MS(n,r){for(var l=0;lo[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function l(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=l(s);fetch(s.href,c)}})();function Na(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Tf={exports:{}},yl={};/** * @license React * react-jsx-runtime.production.js @@ -315,4 +315,4 @@ export default theme;`}function P0(n){return typeof n=="number"?`${(n*100).toFix 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},kO=function(){return Oe.createElement(us,null,Oe.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12A10,10 0 0,0 12,2Z`}))},$O={default:void 0,success:Oe.createElement(DO,null),warning:Oe.createElement(_O,null),error:Oe.createElement(zO,null),info:Oe.createElement(kO,null)},cr={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:$O,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:n1,transitionDuration:{enter:225,exit:195}},NO=function(r,l){var o=function(c){return typeof c=="number"||c===null};return o(r)?r:o(l)?l:cr.autoHideDuration},BO=function(r,l){var o=function(c,d){return d.some(function(h){return typeof c===h})};return o(r,["string","number"])?r:o(r,["object"])?Ve({},cr.transitionDuration,{},o(l,["object"])&&l,{},r):o(l,["string","number"])?l:o(l,["object"])?Ve({},cr.transitionDuration,{},l):cr.transitionDuration},LO=function(r,l){return function(o,s){return s===void 0&&(s=!1),s?Ve({},cr[o],{},l[o],{},r[o]):o==="autoHideDuration"?NO(r.autoHideDuration,l.autoHideDuration):o==="transitionDuration"?BO(r.transitionDuration,l.transitionDuration):r[o]||l[o]||cr[o]}};function Zl(n){return Object.entries(n).reduce(function(r,l){var o,s=l[0],c=l[1];return Ve({},r,(o={},o[s]=ih(c),o))},{})}var mi={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(r){return"notistack-MuiContent-"+r}},Ay=Zl({root:{height:0},entered:{height:"auto"}}),Gf="0px",Pf=175,a1=C.forwardRef(function(n,r){var l=n.children,o=n.in,s=n.onExited,c=C.useRef(null),d=C.useRef(null),h=Cd(r,d),p=function(){return c.current?c.current.clientHeight:0},m=function(T){T.style.height=Gf},y=function(T){var M=p(),D=qu({timeout:Pf,mode:"enter"}),_=D.duration,$=D.easing;T.style.transitionDuration=typeof _=="string"?_:_+"ms",T.style.height=M+"px",T.style.transitionTimingFunction=$||""},v=function(T){T.style.height="auto"},x=function(T){T.style.height=p()+"px"},O=function(T){e1(T);var M=qu({timeout:Pf,mode:"exit"}),D=M.duration,_=M.easing;T.style.transitionDuration=typeof D=="string"?D:D+"ms",T.style.height=Gf,T.style.transitionTimingFunction=_||""};return C.createElement(oh,{in:o,unmountOnExit:!0,onEnter:m,onEntered:v,onEntering:y,onExit:x,onExited:s,onExiting:O,nodeRef:d,timeout:Pf},function(E,T){return C.createElement("div",Object.assign({ref:h,className:mr(Ay.root,E==="entered"&&Ay.entered),style:Ve({pointerEvents:"all",overflow:"hidden",minHeight:Gf,transition:si("height")},E==="entered"&&{overflow:"visible"},{},E==="exited"&&!o&&{visibility:"hidden"})},T),C.createElement("div",{ref:c,className:mi.CollapseWrapper,style:{display:"flex",width:"100%"}},l))})});a1.displayName="Collapse";var Oy={right:"left",left:"right",bottom:"up",top:"down"},jO=function(r){return r.horizontal!=="center"?Oy[r.horizontal]:Oy[r.vertical]},UO=function(r){return"anchorOrigin"+lh(r)},HO=function(r){r===void 0&&(r={});var l={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(r).filter(function(o){return!l[o]}).reduce(function(o,s){var c;return Ve({},o,(c={},c[s]=r[s],c))},{})},YO=function(){};function Dl(n,r){return n.reduce(function(l,o){return o==null?l:function(){for(var c=arguments.length,d=new Array(c),h=0;h-1,$=M.snacks.findIndex(D)>-1;if(_||$)return M}return s.handleDisplaySnack(Ve({},M,{queue:[].concat(M.queue,[T])}))}),O},s.handleDisplaySnack=function(c){var d=c.snacks;return d.length>=s.maxSnack?s.handleDismissOldest(c):s.processQueue(c)},s.processQueue=function(c){var d=c.queue,h=c.snacks;return d.length>0?Ve({},c,{snacks:[].concat(h,[d[0]]),queue:d.slice(1,d.length)}):c},s.handleDismissOldest=function(c){if(c.snacks.some(function(y){return!y.open||y.requestClose}))return c;var d=!1,h=!1,p=c.snacks.reduce(function(y,v){return y+(v.open&&v.persist?1:0)},0);p===s.maxSnack&&(h=!0);var m=c.snacks.map(function(y){return!d&&(!y.persist||h)?(d=!0,y.entered?(y.onClose&&y.onClose(null,"maxsnack",y.id),s.props.onClose&&s.props.onClose(null,"maxsnack",y.id),Ve({},y,{open:!1})):Ve({},y,{requestClose:!0})):Ve({},y)});return Ve({},c,{snacks:m})},s.handleEnteredSnack=function(c,d,h){if(!gu(h))throw new Error("handleEnteredSnack Cannot be called with undefined key");s.setState(function(p){var m=p.snacks;return{snacks:m.map(function(y){return y.id===h?Ve({},y,{entered:!0}):Ve({},y)})}})},s.handleCloseSnack=function(c,d,h){s.props.onClose&&s.props.onClose(c,d,h);var p=h===void 0;s.setState(function(m){var y=m.snacks,v=m.queue;return{snacks:y.map(function(x){return!p&&x.id!==h?Ve({},x):x.entered?Ve({},x,{open:!1}):Ve({},x,{requestClose:!0})}),queue:v.filter(function(x){return x.id!==h})}})},s.closeSnackbar=function(c){var d=s.state.snacks.find(function(h){return h.id===c});gu(c)&&d&&d.onClose&&d.onClose(null,"instructed",c),s.handleCloseSnack(null,"instructed",c)},s.handleExitedSnack=function(c,d){if(!gu(d))throw new Error("handleExitedSnack Cannot be called with undefined key");s.setState(function(h){var p=s.processQueue(Ve({},h,{snacks:h.snacks.filter(function(m){return m.id!==d})}));return p.queue.length===0?p:s.handleDismissOldest(p)})},s.enqueueSnackbar,s.closeSnackbar,s.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:s.enqueueSnackbar.bind(Sy(s)),closeSnackbar:s.closeSnackbar.bind(Sy(s))}},s}var l=r.prototype;return l.render=function(){var s=this,c=this.state.contextValue,d=this.props,h=d.domRoot,p=d.children,m=d.dense,y=m===void 0?!1:m,v=d.Components,x=v===void 0?{}:v,O=d.classes,E=this.state.snacks.reduce(function(M,D){var _,$=lh(D.anchorOrigin),B=M[$]||[];return Ve({},M,(_={},_[$]=[].concat(B,[D]),_))},{}),T=Object.keys(E).map(function(M){var D=E[M],_=D[0];return Oe.createElement(QO,{key:M,dense:y,anchorOrigin:_.anchorOrigin,classes:O},D.map(function($){return Oe.createElement(XO,{key:$.id,snack:$,classes:O,Component:x[$.variant],onClose:s.handleCloseSnack,onEnter:s.props.onEnter,onExit:s.props.onExit,onExited:Dl([s.handleExitedSnack,s.props.onExited],$.id),onEntered:Dl([s.handleEnteredSnack,s.props.onEntered],$.id)})}))});return Oe.createElement(Fv.Provider,{value:c},p,h?Wy.createPortal(T,h):T)},Wv(r,[{key:"maxSnack",get:function(){return this.props.maxSnack||cr.maxSnack}}]),r})(C.Component),IO=(function(){return C.useContext(Fv)});function WO(n){return rt("MuiTitleIcon",n)}it("MuiTitleIcon",["root","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning"]);const JO=n=>{const{classes:r,variant:l,color:o}=n,s={root:["root",l&&`variant${ge(l)}`,o&&`color${ge(o)}`],outlineOuter:["outlineOuter"],outlineInner:["outlineInner"]};return gn(s,WO,r)},FO=["inherit","primary","secondary","error","info","success","warning"],ew=Me("div",{name:"MuiTitleIcon",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:{color:l,variant:o}}=n;return[r.root,l&&r[`color${ge(l)}`],o&&r[`variant${ge(o)}`]]}})(({theme:n})=>{const{palette:r}=n;return{position:"relative",width:"2.25rem",height:"2.25rem",display:"inline-flex",justifyContent:"center",alignItems:"center",color:"inherit",backgroundColor:"transparent",border:"none",outline:"none",fontSize:"1.25rem",[`& .${p5.root}, & .tabler-icon, & svg`]:{width:"1em",height:"1em"},variants:[...FO.map(l=>({props:{color:l},style:{color:l==="inherit"?"inherit":l==="default"?r.text.primary:r[l].main}}))]}}),tw=Me("div",{name:"MuiTitleIcon",slot:"OutlineOuter"})(()=>({boxSizing:"border-box",width:"2.25rem",height:"2.25rem",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",opacity:.1,borderWidth:"1.667px",borderStyle:"solid",borderColor:"currentcolor",variants:[{props:{variant:"circle"},style:{borderRadius:"50%"}},{props:{variant:"square"},style:{borderRadius:"0.38rem"}}]})),nw=Me("div",{name:"MuiTitleIcon",slot:"OutlineInner"})(()=>({boxSizing:"border-box",width:"1.75rem",height:"1.75rem",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",opacity:.3,borderWidth:"1.667px",borderStyle:"solid",borderColor:"currentcolor",variants:[{props:{variant:"circle"},style:{borderRadius:"50%"}},{props:{variant:"square"},style:{borderRadius:"0.25em"}}]})),Zw=C.forwardRef(function(r,l){const o=Lv({props:r,name:"MuiTitleIcon"}),{children:s,classes:c,variant:d="circle",color:h="default",className:p,...m}=o,y={...o,variant:d,color:h},v=JO(y);return W.jsxs(ew,{ref:l,className:Ze(v.root,p),ownerState:y,role:"img",...m,children:[W.jsx(tw,{className:v.outlineOuter,ownerState:y}),W.jsx(nw,{className:v.outlineInner,ownerState:y}),s]})}),aw=Me("div",{name:"MuiTitleIconForm",slot:"Root"})(({theme:n})=>{const{palette:r}=n;return{flex:"none",width:"3rem",height:"3rem",aspectRatio:"1 / 1",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"0.375rem",backgroundColor:r.grey[250],overflow:"hidden"}}),rw=Me("div",{name:"MuiTitleIconForm",slot:"Image"})(({theme:n})=>{const{palette:r}=n;return{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",background:"url(/assets/common/form-half-one.png) center / cover no-repeat",mixBlendMode:"multiply"}}),Qw=()=>W.jsx(aw,{children:W.jsx(rw,{})}),iw=Me("div")(({theme:n})=>{const{palette:r}=n;return{display:"flex",flexFlow:"row nowrap",alignItems:"center",justifyContent:"flex-start",gap:"0.75rem",paddingBlockStart:"0.75rem",color:r.grey[700]}}),lw=Me("div")(({theme:n})=>{const{palette:r}=n;return{position:"absolute",bottom:0,left:"-1rem",right:"-1rem"}}),ow=150,uw=n=>{const{severity:r,autoHideDuration:l=0}=n,[o,s]=C.useState(0);return C.useEffect(()=>{if(l<=0)return;const c=l/100;let d,h;const p=()=>d=requestAnimationFrame(m=>{h||(h=m);const y=Math.min(100,Math.ceil((m+ow-h)/c));s(y),y<100&&p()});return p(),()=>{d&&cancelAnimationFrame(d)}},[l]),W.jsx(lw,{children:W.jsx(M5,{variant:"determinate",color:r,value:o})})},sw=C.forwardRef((n,r)=>{const{autoHideDuration:l,variant:o,title:s,children:c,onClose:d,action:h,dismissLabel:p="Dismiss",onDismiss:m,...y}=n;let v=s,x=c;!v&&x&&(v=x,x=void 0);const O=m&&W.jsx(u5,{variant:"text",color:"inherit",onClick:m,children:p}),E=(!!h||!!O)&&W.jsxs(W.Fragment,{children:[O,h]})||void 0;return o==="notification"?W.jsxs(F0,{...y,variant:o,onClose:d,ref:r,children:[!!v&&W.jsx(ty,{children:v}),x,E&&W.jsx(iw,{children:E}),l&&l>0&&W.jsx(uw,{...n})]}):W.jsxs(F0,{...y,variant:o,onClose:d,action:E,ref:r,children:[!!v&&W.jsx(ty,{children:v}),x]})}),Al=C.forwardRef((n,r)=>{const{id:l,variant:o,title:s,message:c,action:d,notification:h=!0,closable:p=h,dismissAble:m,persist:y,autoHideDuration:v,hideIconVariant:x,className:O,style:E}=n,{closeSnackbar:T}=IO(),M=o==="default"?"info":o,D=typeof d=="function"?d(l):d,_=p&&(()=>T(l))||void 0,$=m&&(()=>T(l))||void 0,B=v||void 0;return W.jsx(sw,{variant:h&&"notification"||"outlined",severity:M,icon:x?!1:void 0,onClose:_,onDismiss:$,action:D,title:s,autoHideDuration:B,ref:r,className:O,style:E,children:c})}),cw={default:Al,info:Al,success:Al,warning:Al,error:Al},o1=({children:n})=>W.jsx(KO,{anchorOrigin:{vertical:"bottom",horizontal:"right"},maxSnack:5,autoHideDuration:5e3,Components:cw,style:{width:"21.25rem"},children:n}),fw=n=>{const{palette:r,overlays:l}=n;return{defaultProps:{variant:"outlined"},styleOverrides:{root:{variants:[{props:({ownerState:o})=>!o.square,style:{borderRadius:"0.75rem"}},{props:{variant:"outlined"},style:{border:`1px solid ${r.divider}`}},{props:{variant:"overlay"},style:{border:`1px solid ${r.divider}`,boxShadow:l.shadowMiddle}}]}}}},dw=n=>{const{spacing:r}=n;return{defaultProps:{slotProps:{paper:{variant:"overlay"},backdrop:{invisible:!0}}},styleOverrides:{root:{[`& .${gd.root}`]:{marginBlock:r(1.5)}},paper:{padding:r(1)}}}},hw=n=>{const{spacing:r}=n;return{defaultProps:{},styleOverrides:{}}},mw=n=>{const{palette:r,spacing:l}=n;return{defaultProps:{},styleOverrides:{root:{padding:l(1),gap:l(.75),"&:hover":{backgroundColor:r.grey[200]},[`& + .${gd.root}`]:{margin:0,marginBlock:l(1.5)},[`& .${gd.inset}`]:{margin:0,marginInline:`${la.small}rem`},[`& .${A5.root}`]:{minWidth:`${la.small}rem`}}}}},pw=Object.freeze(Object.defineProperty({__proto__:null,MuiAlert:cO,MuiAlertTitle:sO,MuiBackdrop:fO,MuiButton:hA,MuiButtonBase:mA,MuiButtonGroup:pA,MuiChip:GA,MuiCssBaseline:fA,MuiDialog:gO,MuiDialogActions:dO,MuiDialogContent:mO,MuiDialogContentText:pO,MuiDialogTitle:hO,MuiDivider:PA,MuiFormControl:yA,MuiFormHelperText:bA,MuiFormLabel:vA,MuiIconButton:gA,MuiInputAdornment:xA,MuiInputBase:TA,MuiInputLabel:SA,MuiLinearProgress:yO,MuiList:XA,MuiListItem:ZA,MuiListItemAvatar:WA,MuiListItemButton:QA,MuiListItemIcon:KA,MuiListItemText:IA,MuiMenu:dw,MuiMenuItem:mw,MuiMenuList:hw,MuiOutlinedInput:EA,MuiPaper:fw,MuiSelect:LA,MuiSlider:HA,MuiSnackbar:bO,MuiSnackbarContent:vO,MuiTable:FA,MuiTableBody:tO,MuiTableCell:aO,MuiTableContainer:JA,MuiTableFooter:rO,MuiTableHead:eO,MuiTablePagination:iO,MuiTablePaginationActions:lO,MuiTableRow:nO,MuiTableSortLabel:oO,MuiTextField:MA,MuiToggleButton:YA,MuiToggleButtonGroup:qA,MuiTypography:uO,SnackbarProvider:o1},Symbol.toStringTag,{value:"Module"})),Ll=Jd({palette:iA,typography:lA,spacing:n=>`${n*8/Qv}rem`,overlays:oA});Ll.components=Ll.components||{};Object.entries(pw).forEach(([n,r])=>{n.startsWith("Mui")&&typeof r=="function"&&(Ll.components[n]=r(Ll))});const gw=({children:n})=>W.jsx(BE,{theme:{[Tn]:Ll},children:W.jsx(o1,{children:W.jsx(_5,{dateAdapter:aA,localeText:{okButtonLabel:"Apply"},children:n})})}),yw="modulepreload",vw=function(n){return"/"+n},zy={},uh=function(r,l,o){let s=Promise.resolve();if(l&&l.length>0){let p=function(m){return Promise.all(m.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),h=d?.nonce||d?.getAttribute("nonce");s=p(l.map(m=>{if(m=vw(m),m in zy)return;zy[m]=!0;const y=m.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${v}`))return;const x=document.createElement("link");if(x.rel=y?"stylesheet":yw,y||(x.as="script"),x.crossOrigin="",x.href=m,h&&x.setAttribute("nonce",h),document.head.appendChild(x),y)return new Promise((O,E)=>{x.addEventListener("load",O),x.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${m}`)))})}))}function c(d){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=d,window.dispatchEvent(h),!h.defaultPrevented)throw d}return s.then(d=>{for(const h of d||[])h.status==="rejected"&&c(h.reason);return r().catch(c)})},bw=n=>r=>{const{url:l,method:o="GET",afterFetch:s=$=>$}=n,{debugName:c,onStatusChange:d,onMessage:h,onError:p}=r,m=new TextDecoder;let y,v;const x=(...$)=>{console.log(`%c http-stream.ts ${o} ${l} ${c??""}`,"color: white; background: darkcyan; padding: 2px 4px; border-radius: 2px;",...$)},O=$=>{x("onStatusChange",$);try{d?.($)}catch(B){x("onStatusChange Error",B)}},E=$=>{try{h?.($)}catch(B){x("onMessage Error",B)}},T=async()=>{try{v&&(await v.cancel(),v=void 0)}catch($){x("reader cancel error",$)}};return Object.freeze({send:($={})=>{const{headers:B,body:z,data:L}=$;O("connecting"),x("send",L),y=new AbortController;let q;const X=L?.type==="queue_info"?0:5e3;X>0&&(q=setTimeout(()=>{x(`fetch timeout: triggering abort after ${X}ms`);try{y?.abort()}catch(K){x("abort error during timeout",K)}O("error"),p?.(new Error("The request timed out. Please try again later."))},X)),fetch(l,{headers:{"Content-Type":"application/json",...B},method:o,body:L&&JSON.stringify(L)||z,signal:y.signal}).then(async K=>{if(q&&(clearTimeout(q),q=void 0),K.status!==200||K.headers.get("content-type")!=="application/x-ndjson"){x("fetch status error or content-type error",K),O("error");return}if(v=K.body?.getReader(),!v){x("getReader error",K),O("error");return}O("connected");let F="";for(;;){const{done:S,value:re}=await v.read();if(S){await T(),O("disconnected");break}const G=m.decode(re);F+=G;const Z=F.split(` `);F=Z.pop()||"",Z.forEach(w=>{try{const H=s(JSON.parse(w));E(H)}catch(H){x("Parse Message Error",H)}})}}).catch(async K=>{q&&(clearTimeout(q),q=void 0),await T(),x("fetch error",K),O("error"),p?.(K)}).finally(async()=>{q&&(clearTimeout(q),q=void 0),await T(),y=void 0})},abort:()=>{try{y?.abort(),y=void 0}catch($){x("abort error",$)}v?.cancel(),v=void 0,O("disconnected")}})},ss="",Sw=async()=>{const r=await(await fetch(`${ss}/model/list`,{method:"GET"})).json();if(r.type!=="model_list")throw new Error(`Invalid message type: ${r.type}.`);return r.data},xw=async n=>{const l=await(await fetch(`${ss}/scheduler/init`,{method:"POST",body:JSON.stringify(n)})).json();if(l.type!=="scheduler_init")throw new Error(`Invalid message type: ${l.type}.`);return l.data},Cw=bw({url:`${ss}/cluster/status`,method:"GET"}),ky=n=>{const r=C.useRef(void 0);return r.current||(r.current={value:typeof n=="function"?n():n}),r.current.value},Tw=n=>{const r=C.useRef(void 0);return r.current||(r.current={callback:n}),r.current.callback},Bu=n=>{const r=C.useRef(void 0);return r.current=n,Tw(((...o)=>r.current?.(...o)))},Ew="/assets/qwen-JvO50h5P.png",$y=(...n)=>{console.log("%c cluster.tsx ","color: white; background: darkcyan;",...n)},u1=C.createContext(void 0),{Provider:Mw}=u1,Aw=({children:n})=>{const[r,l]=C.useState("local"),[o,s]=C.useState(1),[c,d]=C.useState(""),[h,p]=C.useState([]);C.useEffect(()=>{Sw().then(M=>{p(M.map(D=>({name:D,displayName:D,logoUrl:Ew})))})},[]),C.useEffect(()=>{h.length&&d(h[0].name)},[h]);const[m,y]=C.useState(()=>({id:"",status:"idle",nodeJoinCommand:{},initNodesNumber:4})),[v,x]=C.useState(()=>[]);C.useMemo(()=>{const D=Cw({onMessage:_=>{if(_.type==="cluster_status"){const{data:{status:$,init_nodes_num:B,model_name:z,node_join_command:L,node_list:q}}=_;y(J=>{const X={...J,status:$,initNodesNumber:B||0,modelName:z||"",nodeJoinCommand:L||{}};return JSON.stringify(X)!==JSON.stringify(J)?($y("setClusterInfo",X),X):J}),x(J=>{let X=q.map(({node_id:S,status:re,gpu_name:G,gpu_memory:Z})=>({id:S,status:re,gpuName:G,gpuMemory:Z}));const K=J.filter(S=>X.some(re=>re.id===S.id)),F=J.filter(S=>!X.some(re=>re.id===S.id)).map(S=>({...S,status:"failed"}));return JSON.stringify(X)===JSON.stringify(K)&&(X=[...X,...F]),JSON.stringify(X)!==JSON.stringify(J)?($y("setNodeInfoList",X),X):J})}}});return D.send(),D},[]);const O=Bu(async()=>{if(o<1)throw new Error("initNodesNumber must be greater than 0");if(!c)throw new Error("modelName is required");await xw({model_name:c,init_nodes_num:o,is_local_network:r==="local"})}),E=C.useMemo(()=>({setNetworkType:l,setInitNodesNumber:s,setModelName:d,init:O}),[]),T=C.useMemo(()=>[{networkType:r,initNodesNumber:o,modelName:c,modelInfoList:h,clusterInfo:m,nodeInfoList:v},E],[r,o,c,h,m,v,E]);return W.jsx(Mw,{value:T,children:n})},s1=()=>{const n=C.useContext(u1);if(!n)throw new Error("useCluster must be used within a ClusterProvider");return n},Ow=(...n)=>{},ww=({children:n})=>{const[{modelName:r,clusterInfo:{status:l}}]=s1(),[o,s]=C.useState(""),[c,d]=C.useState("closed"),[h,p]=C.useState([]),m=ky(()=>Rw({onOpen:()=>d("opened"),onClose:()=>d("closed"),onError:T=>d("error"),onMessage:T=>{const{data:{id:M,object:D,model:_,created:$,choices:B,usage:z}}=T;D==="chat.completion.chunk"&&B?.length>0&&(B[0].delta.content&&d("generating"),p(L=>{let q=L;return B.forEach(({delta:{role:J,content:X}={}})=>{if(typeof X!="string")return;J=J||"assistant";let K=q[q.length-1];if(K&&K.role===J){if(K.content+X===K.content)return;K={...K,content:K.content+X},q=[...q.slice(0,-1),K]}else K={id:M,role:J,content:X,createdAt:$},q=[...q,K];Ow("onMessage","update last message",K.content)}),q}))}})),y=Bu(T=>{if(l!=="available"||c==="opened"||c==="generating"||!r)return;let M=h;if(T){const D=h.findIndex($=>$.id===T.id),_=h[D];if(!_)return;M=M.slice(0,D+(_.role==="user"?1:0))}else{const D=o.trim();if(!D)return;s("");const _=performance.now();M=[...M,{id:_.toString(),role:"user",content:D,createdAt:_}]}p(M),m.connect(r,M)}),v=Bu(()=>{c==="opened"&&m.disconnect()}),x=Bu(()=>{v(),c!=="opened"&&p([])}),O=ky({setInput:s,generate:y,stop:v,clear:x}),E=C.useMemo(()=>[{input:o,status:c,messages:h},O],[o,c,h,O]);return W.jsx(c1.Provider,{value:E,children:n})},c1=C.createContext(void 0),Kw=()=>{const n=C.useContext(c1);if(!n)throw new Error("useChat must be used within a ChatProvider");return n},Rw=n=>{const{onOpen:r,onClose:l,onError:o,onMessage:s}=n,c=new TextDecoder;let d,h;return{connect:(y,v)=>{h=new AbortController,fetch(`${ss}/v1/chat/completions`,{method:"POST",body:JSON.stringify({stream:!0,model:y,messages:v,max_tokens:2048,sampling_params:{top_k:3}}),signal:h.signal}).then(async x=>{const O=x.status,E=x.headers.get("Content-Type");if(O!==200){o?.(new Error(`[SSE] Failed to connect: ${O}`));return}if(!E?.includes("text/event-stream")){o?.(new Error(`[SSE] Invalid content type: ${E}`));return}if(d=x.body?.getReader(),!d){o?.(new Error("[SSE] Failed to get reader"));return}r?.();let T="";const M=D=>{const _={event:"message",data:void 0};D.forEach($=>{const B=$.indexOf(":");if(B<=0)return;const z=$.slice(0,B).trim(),L=$.slice(B+1).trim();if(!L.startsWith(":")){switch(z){case"event":_.event=L;break;case"id":_.id=L;break;case"data":try{const q=JSON.parse(L),J=X=>{X&&(Array.isArray(X)?X.forEach((K,F)=>{K===null?X[F]=void 0:J(K)}):typeof X=="object"&&Object.keys(X).forEach(K=>{X[K]===null?delete X[K]:J(X[K])}))};J(q),_.data=q}catch{_.data=L}break}_.data!==void 0&&s?.(_)}})};for(;;){const{done:D,value:_}=await d.read();if(D){l?.();return}const $=c.decode(_);T+=$;const B=T.split(` -`);T=B.pop()||"",M(B)}}).catch(x=>{if(x instanceof Error&&x.name==="AbortError"){l?.();return}o?.(x)})},disconnect:()=>{d?.cancel(),d=void 0,h?.abort("stop"),h=void 0,l?.()}}},Dw=C.lazy(()=>uh(()=>import("./setup-D6yQPS_R.js"),__vite__mapDeps([0,1,2]))),_w=C.lazy(()=>uh(()=>import("./join-B_6EnepF.js"),__vite__mapDeps([3,1,2]))),zw=C.lazy(()=>uh(()=>import("./chat-CCbYFHrx.js"),__vite__mapDeps([4,1,2]))),If=(...n)=>{console.log("%c router.tsx ","color: white; background: purple;",...n)},kw=()=>{const n=wd(),[{clusterInfo:{status:r}}]=s1();return C.useEffect(()=>{switch(If("cluster status",r),r){case"idle":case"waiting":If("no need to navigate");break;default:If("navigate to /chat"),n("/chat");break}},[n,r]),c2([{path:"/",element:W.jsx(T2,{to:"/setup",replace:!0})},{path:"/setup",element:W.jsx(C.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(Dw,{})})},{path:"/join",element:W.jsx(C.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(_w,{})})},{path:"/chat",element:W.jsx(C.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(zw,{})})},{path:"*",element:W.jsx("div",{children:"404 - Page Not Found"})}])},$w=Me("div")(({theme:n})=>{const{palette:r,typography:l}=n;return{...l.body2,color:r.text.primary,backgroundColor:r.background.default,width:"100%",height:"100%",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center"}}),Nw=()=>W.jsx($w,{children:W.jsx(Aw,{children:W.jsx(ww,{children:W.jsx(kw,{})})})});$S.createRoot(document.getElementById("root")).render(W.jsx(C.StrictMode,{children:W.jsx(Z2,{children:W.jsxs(gw,{children:[W.jsx(h5,{}),W.jsx(Nw,{})]})})}));export{iT as $,F0 as A,Vv as B,Gd as C,vv as D,Hv as E,Oe as F,Z0 as G,aM as H,Pv as I,iM as J,nM as K,Ky as L,Pd as M,Wy as N,AT as O,wu as P,Uv as Q,Bw as R,O5 as S,KM as T,tM as U,FM as V,jw as W,fr as X,Gl as Y,_E as Z,qE as _,rt as a,Tn as a0,Jd as a1,rM as a2,qv as a3,Hw as a4,m5 as a5,Yw as a6,qw as a7,Lt as a8,WE as a9,Vw as aa,Lw as ab,A5 as ac,gd as ad,Uw as ae,ar as af,zE as ag,bi as ah,La as ai,th as aj,I0 as ak,Gw as al,w5 as am,Pw as an,ry as ao,Qw as ap,Zw as aq,_A as ar,my as as,kA as at,NA as au,Na as av,ge as b,Ze as c,gn as d,Bl as e,Xw as f,it as g,en as h,Pl as i,W as j,sd as k,Bu as l,Gt as m,s1 as n,wd as o,u5 as p,jv as q,C as r,Me as s,R5 as t,tn as u,Qd as v,ii as w,Kw as x,nC as y,hr as z}; +`);T=B.pop()||"",M(B)}}).catch(x=>{if(x instanceof Error&&x.name==="AbortError"){l?.();return}o?.(x)})},disconnect:()=>{d?.cancel(),d=void 0,h?.abort("stop"),h=void 0,l?.()}}},Dw=C.lazy(()=>uh(()=>import("./setup-D6eE3iQP.js"),__vite__mapDeps([0,1,2]))),_w=C.lazy(()=>uh(()=>import("./join-BU_m_8I2.js"),__vite__mapDeps([3,1,2]))),zw=C.lazy(()=>uh(()=>import("./chat-DTYOBy9Z.js"),__vite__mapDeps([4,1,2]))),If=(...n)=>{console.log("%c router.tsx ","color: white; background: purple;",...n)},kw=()=>{const n=wd(),[{clusterInfo:{status:r}}]=s1();return C.useEffect(()=>{switch(If("cluster status",r),r){case"idle":case"waiting":If("no need to navigate");break;default:If("navigate to /chat"),n("/chat");break}},[n,r]),c2([{path:"/",element:W.jsx(T2,{to:"/setup",replace:!0})},{path:"/setup",element:W.jsx(C.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(Dw,{})})},{path:"/join",element:W.jsx(C.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(_w,{})})},{path:"/chat",element:W.jsx(C.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(zw,{})})},{path:"*",element:W.jsx("div",{children:"404 - Page Not Found"})}])},$w=Me("div")(({theme:n})=>{const{palette:r,typography:l}=n;return{...l.body2,color:r.text.primary,backgroundColor:r.background.default,width:"100%",height:"100%",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center"}}),Nw=()=>W.jsx($w,{children:W.jsx(Aw,{children:W.jsx(ww,{children:W.jsx(kw,{})})})});$S.createRoot(document.getElementById("root")).render(W.jsx(C.StrictMode,{children:W.jsx(Z2,{children:W.jsxs(gw,{children:[W.jsx(h5,{}),W.jsx(Nw,{})]})})}));export{iT as $,F0 as A,Vv as B,Gd as C,vv as D,Hv as E,Oe as F,Z0 as G,aM as H,Pv as I,iM as J,nM as K,Ky as L,Pd as M,Wy as N,AT as O,wu as P,Uv as Q,Bw as R,O5 as S,KM as T,tM as U,FM as V,jw as W,fr as X,Gl as Y,_E as Z,qE as _,rt as a,Tn as a0,Jd as a1,rM as a2,qv as a3,Hw as a4,m5 as a5,Yw as a6,qw as a7,Lt as a8,WE as a9,Vw as aa,Lw as ab,A5 as ac,gd as ad,Uw as ae,ar as af,zE as ag,bi as ah,La as ai,th as aj,I0 as ak,Gw as al,w5 as am,Pw as an,ry as ao,Qw as ap,Zw as aq,_A as ar,my as as,kA as at,NA as au,Na as av,ge as b,Ze as c,gn as d,Bl as e,Xw as f,it as g,en as h,Pl as i,W as j,sd as k,Bu as l,Gt as m,s1 as n,wd as o,u5 as p,jv as q,C as r,Me as s,R5 as t,tn as u,Qd as v,ii as w,Kw as x,nC as y,hr as z}; diff --git a/src/frontend/dist/assets/join-B_6EnepF.js b/src/frontend/dist/assets/join-BU_m_8I2.js similarity index 94% rename from src/frontend/dist/assets/join-B_6EnepF.js rename to src/frontend/dist/assets/join-BU_m_8I2.js index 1015371c..3aa9ef8f 100644 --- a/src/frontend/dist/assets/join-B_6EnepF.js +++ b/src/frontend/dist/assets/join-BU_m_8I2.js @@ -1,4 +1,4 @@ -import{i as l,n as c,r as u,j as e,T as r,s as h,A as a,p,L as m,S as x}from"./index-v4ef5gIt.js";import{M as y,J as f,N as j}from"./main-layout-BAzhIrTg.js";/** +import{i as l,n as c,r as u,j as e,T as r,s as h,A as a,p,L as m,S as x}from"./index-CKPnC4Q3.js";import{M as y,J as f,N as j}from"./main-layout-_30RNP4s.js";/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. diff --git a/src/frontend/dist/assets/main-layout-BAzhIrTg.js b/src/frontend/dist/assets/main-layout-_30RNP4s.js similarity index 94% rename from src/frontend/dist/assets/main-layout-BAzhIrTg.js rename to src/frontend/dist/assets/main-layout-_30RNP4s.js index 5f1a6435..f0a2aca2 100644 --- a/src/frontend/dist/assets/main-layout-BAzhIrTg.js +++ b/src/frontend/dist/assets/main-layout-_30RNP4s.js @@ -1,6 +1,6 @@ -import{y as mg,z as gg,r as O,C as bg,D as yg,j as R,c as Ve,_ as vg,R as us,E as Tg,F as ls,G as B1,H as xg,J as Eg,k as Vt,K as Sg,M as ar,N as wg,a as gt,g as at,d as Ye,O as Yl,u as Ge,s as le,P as Aa,Q as Ag,U as Ca,m as ct,V as ka,b as St,W as Cg,X as F1,Y as kg,Z as Va,w as Et,$ as Ig,a0 as Ng,a1 as Rg,a2 as Mg,a3 as po,v as Gl,a4 as Dg,a5 as Pg,T as Xe,q as Wn,a6 as Lg,a7 as Og,a8 as Xl,h as Kl,a9 as ra,aa as _g,ab as Pc,B as Bg,ac as Lc,ad as Oc,ae as Fg,af as Ln,ag as Hg,ah as H1,ai as z1,aj as zg,ak as _c,al as Ug,am as Vg,an as jg,ao as Bc,i as In,ap as qg,aq as Fc,ar as $g,as as Hc,at as Ls,I as Kr,au as U1,p as V1,n as ja,S as Qe,l as $s,av as j1,x as q1}from"./index-v4ef5gIt.js";function Wg(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,a=mg("div",{shouldForwardProp:o=>o!=="theme"&&o!=="sx"&&o!=="as"})(gg);return O.forwardRef(function(u,l){const c=bg(n),{className:d,component:p="div",...f}=yg(u);return R.jsx(a,{as:p,ref:l,className:Ve(d,i?i(r):r),theme:t&&c[t]||c,...f})})}function Yg(e,t){return O.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function Gg(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Xg(e){return parseFloat(e)}function zc(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function $1(e,t=166){let n;function r(...i){const a=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function fn(e){return e&&e.ownerDocument||document}function sr(e){return fn(e).defaultView||window}function Uc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function ju(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:a}=O.useRef(t!==void 0),[s,o]=O.useState(n),u=a?t:s,l=O.useCallback(c=>{a||o(c)},[]);return[u,l]}function Kg(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Qg(e,t){if(!e)return t;function n(s,o){const u={};return Object.keys(o).forEach(l=>{Kg(l,o[l])&&typeof s[l]=="function"&&(u[l]=(...c)=>{s[l](...c),o[l](...c)})}),u}if(typeof e=="function"||typeof t=="function")return s=>{const o=typeof t=="function"?t(s):t,u=typeof e=="function"?e({...s,...o}):e,l=Ve(s?.className,o?.className,u?.className),c=n(u,o);return{...o,...u,...c,...!!l&&{className:l},...o?.style&&u?.style&&{style:{...o.style,...u.style}},...o?.sx&&u?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,i=n(e,r),a=Ve(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const Vc={disabled:!1};var Zg=function(t){return t.scrollTop},ia="unmounted",Ur="exited",Vr="entering",li="entered",qu="exiting",Yn=(function(e){vg(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=i,o=s&&!s.isMounting?r.enter:r.appear,u;return a.appearStatus=null,r.in?o?(u=Ur,a.appearStatus=Vr):u=li:r.unmountOnExit||r.mountOnEnter?u=ia:u=Ur,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===ia?{status:Ur}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Vr&&s!==li&&(a=Vr):(s===Vr||s===li)&&(a=qu)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,s,o;return a=s=o=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,o=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:o}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Vr){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:us.findDOMNode(this);s&&Zg(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ur&&this.setState({status:ia})},n.performEnter=function(i){var a=this,s=this.props.enter,o=this.context?this.context.isMounting:i,u=this.props.nodeRef?[o]:[us.findDOMNode(this),o],l=u[0],c=u[1],d=this.getTimeouts(),p=o?d.appear:d.enter;if(!i&&!s||Vc.disabled){this.safeSetState({status:li},function(){a.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:Vr},function(){a.props.onEntering(l,c),a.onTransitionEnd(p,function(){a.safeSetState({status:li},function(){a.props.onEntered(l,c)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:us.findDOMNode(this);if(!a||Vc.disabled){this.safeSetState({status:Ur},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:qu},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Ur},function(){i.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,a.nextCallback=null,i(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:us.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===ia)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var o=Tg(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ls.createElement(B1.Provider,{value:null},typeof s=="function"?s(i,o):ls.cloneElement(ls.Children.only(s),o))},t})(ls.Component);Yn.contextType=B1;Yn.propTypes={};function ai(){}Yn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ai,onEntering:ai,onEntered:ai,onExit:ai,onExiting:ai,onExited:ai};Yn.UNMOUNTED=ia;Yn.EXITED=Ur;Yn.ENTERING=Vr;Yn.ENTERED=li;Yn.EXITING=qu;const W1=e=>e.scrollTop;function Ws(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}var nn="top",wn="bottom",An="right",rn="left",Ql="auto",qa=[nn,wn,An,rn],Ei="start",Ia="end",Jg="clippingParents",Y1="viewport",qi="popper",e6="reference",jc=qa.reduce(function(e,t){return e.concat([t+"-"+Ei,t+"-"+Ia])},[]),G1=[].concat(qa,[Ql]).reduce(function(e,t){return e.concat([t,t+"-"+Ei,t+"-"+Ia])},[]),t6="beforeRead",n6="read",r6="afterRead",i6="beforeMain",a6="main",s6="afterMain",o6="beforeWrite",u6="write",l6="afterWrite",c6=[t6,n6,r6,i6,a6,s6,o6,u6,l6];function $n(e){return e?(e.nodeName||"").toLowerCase():null}function pn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Qr(e){var t=pn(e).Element;return e instanceof t||e instanceof Element}function xn(e){var t=pn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Zl(e){if(typeof ShadowRoot>"u")return!1;var t=pn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function d6(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!xn(a)||!$n(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(s){var o=i[s];o===!1?a.removeAttribute(s):a.setAttribute(s,o===!0?"":o)}))})}function h6(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),o=s.reduce(function(u,l){return u[l]="",u},{});!xn(i)||!$n(i)||(Object.assign(i.style,o),Object.keys(a).forEach(function(u){i.removeAttribute(u)}))})}}const f6={name:"applyStyles",enabled:!0,phase:"write",fn:d6,effect:h6,requires:["computeStyles"]};function Un(e){return e.split("-")[0]}var Wr=Math.max,Ys=Math.min,Si=Math.round;function $u(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function X1(){return!/^((?!chrome|android).)*safari/i.test($u())}function wi(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&xn(e)&&(i=e.offsetWidth>0&&Si(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Si(r.height)/e.offsetHeight||1);var s=Qr(e)?pn(e):window,o=s.visualViewport,u=!X1()&&n,l=(r.left+(u&&o?o.offsetLeft:0))/i,c=(r.top+(u&&o?o.offsetTop:0))/a,d=r.width/i,p=r.height/a;return{width:d,height:p,top:c,right:l+d,bottom:c+p,left:l,x:l,y:c}}function Jl(e){var t=wi(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function K1(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Zl(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function or(e){return pn(e).getComputedStyle(e)}function p6(e){return["table","td","th"].indexOf($n(e))>=0}function Mr(e){return((Qr(e)?e.ownerDocument:e.document)||window.document).documentElement}function mo(e){return $n(e)==="html"?e:e.assignedSlot||e.parentNode||(Zl(e)?e.host:null)||Mr(e)}function qc(e){return!xn(e)||or(e).position==="fixed"?null:e.offsetParent}function m6(e){var t=/firefox/i.test($u()),n=/Trident/i.test($u());if(n&&xn(e)){var r=or(e);if(r.position==="fixed")return null}var i=mo(e);for(Zl(i)&&(i=i.host);xn(i)&&["html","body"].indexOf($n(i))<0;){var a=or(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function $a(e){for(var t=pn(e),n=qc(e);n&&p6(n)&&or(n).position==="static";)n=qc(n);return n&&($n(n)==="html"||$n(n)==="body"&&or(n).position==="static")?t:n||m6(e)||t}function e0(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ua(e,t,n){return Wr(e,Ys(t,n))}function g6(e,t,n){var r=ua(e,t,n);return r>n?n:r}function Q1(){return{top:0,right:0,bottom:0,left:0}}function Z1(e){return Object.assign({},Q1(),e)}function J1(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var b6=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Z1(typeof t!="number"?t:J1(t,qa))};function y6(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,o=Un(n.placement),u=e0(o),l=[rn,An].indexOf(o)>=0,c=l?"height":"width";if(!(!a||!s)){var d=b6(i.padding,n),p=Jl(a),f=u==="y"?nn:rn,b=u==="y"?wn:An,y=n.rects.reference[c]+n.rects.reference[u]-s[u]-n.rects.popper[c],S=s[u]-n.rects.reference[u],v=$a(a),w=v?u==="y"?v.clientHeight||0:v.clientWidth||0:0,x=y/2-S/2,k=d[f],M=w-p[c]-d[b],C=w/2-p[c]/2+x,H=ua(k,C,M),z=u;n.modifiersData[r]=(t={},t[z]=H,t.centerOffset=H-C,t)}}function v6(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||K1(t.elements.popper,i)&&(t.elements.arrow=i))}const T6={name:"arrow",enabled:!0,phase:"main",fn:y6,effect:v6,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ai(e){return e.split("-")[1]}var x6={top:"auto",right:"auto",bottom:"auto",left:"auto"};function E6(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Si(n*i)/i||0,y:Si(r*i)/i||0}}function $c(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,o=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=s.x,f=p===void 0?0:p,b=s.y,y=b===void 0?0:b,S=typeof c=="function"?c({x:f,y}):{x:f,y};f=S.x,y=S.y;var v=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),x=rn,k=nn,M=window;if(l){var C=$a(n),H="clientHeight",z="clientWidth";if(C===pn(n)&&(C=Mr(n),or(C).position!=="static"&&o==="absolute"&&(H="scrollHeight",z="scrollWidth")),C=C,i===nn||(i===rn||i===An)&&a===Ia){k=wn;var V=d&&C===M&&M.visualViewport?M.visualViewport.height:C[H];y-=V-r.height,y*=u?1:-1}if(i===rn||(i===nn||i===wn)&&a===Ia){x=An;var P=d&&C===M&&M.visualViewport?M.visualViewport.width:C[z];f-=P-r.width,f*=u?1:-1}}var $=Object.assign({position:o},l&&x6),W=c===!0?E6({x:f,y},pn(n)):{x:f,y};if(f=W.x,y=W.y,u){var G;return Object.assign({},$,(G={},G[k]=w?"0":"",G[x]=v?"0":"",G.transform=(M.devicePixelRatio||1)<=1?"translate("+f+"px, "+y+"px)":"translate3d("+f+"px, "+y+"px, 0)",G))}return Object.assign({},$,(t={},t[k]=w?y+"px":"",t[x]=v?f+"px":"",t.transform="",t))}function S6(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,o=n.roundOffsets,u=o===void 0?!0:o,l={placement:Un(t.placement),variation:Ai(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,$c(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,$c(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const w6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:S6,data:{}};var cs={passive:!0};function A6(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,s=r.resize,o=s===void 0?!0:s,u=pn(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(c){c.addEventListener("scroll",n.update,cs)}),o&&u.addEventListener("resize",n.update,cs),function(){a&&l.forEach(function(c){c.removeEventListener("scroll",n.update,cs)}),o&&u.removeEventListener("resize",n.update,cs)}}const C6={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:A6,data:{}};var k6={left:"right",right:"left",bottom:"top",top:"bottom"};function Os(e){return e.replace(/left|right|bottom|top/g,function(t){return k6[t]})}var I6={start:"end",end:"start"};function Wc(e){return e.replace(/start|end/g,function(t){return I6[t]})}function t0(e){var t=pn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function n0(e){return wi(Mr(e)).left+t0(e).scrollLeft}function N6(e,t){var n=pn(e),r=Mr(e),i=n.visualViewport,a=r.clientWidth,s=r.clientHeight,o=0,u=0;if(i){a=i.width,s=i.height;var l=X1();(l||!l&&t==="fixed")&&(o=i.offsetLeft,u=i.offsetTop)}return{width:a,height:s,x:o+n0(e),y:u}}function R6(e){var t,n=Mr(e),r=t0(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Wr(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Wr(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-r.scrollLeft+n0(e),u=-r.scrollTop;return or(i||n).direction==="rtl"&&(o+=Wr(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:o,y:u}}function r0(e){var t=or(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function ep(e){return["html","body","#document"].indexOf($n(e))>=0?e.ownerDocument.body:xn(e)&&r0(e)?e:ep(mo(e))}function la(e,t){var n;t===void 0&&(t=[]);var r=ep(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=pn(r),s=i?[a].concat(a.visualViewport||[],r0(r)?r:[]):r,o=t.concat(s);return i?o:o.concat(la(mo(s)))}function Wu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function M6(e,t){var n=wi(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Yc(e,t,n){return t===Y1?Wu(N6(e,n)):Qr(t)?M6(t,n):Wu(R6(Mr(e)))}function D6(e){var t=la(mo(e)),n=["absolute","fixed"].indexOf(or(e).position)>=0,r=n&&xn(e)?$a(e):e;return Qr(r)?t.filter(function(i){return Qr(i)&&K1(i,r)&&$n(i)!=="body"}):[]}function P6(e,t,n,r){var i=t==="clippingParents"?D6(e):[].concat(t),a=[].concat(i,[n]),s=a[0],o=a.reduce(function(u,l){var c=Yc(e,l,r);return u.top=Wr(c.top,u.top),u.right=Ys(c.right,u.right),u.bottom=Ys(c.bottom,u.bottom),u.left=Wr(c.left,u.left),u},Yc(e,s,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function tp(e){var t=e.reference,n=e.element,r=e.placement,i=r?Un(r):null,a=r?Ai(r):null,s=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,u;switch(i){case nn:u={x:s,y:t.y-n.height};break;case wn:u={x:s,y:t.y+t.height};break;case An:u={x:t.x+t.width,y:o};break;case rn:u={x:t.x-n.width,y:o};break;default:u={x:t.x,y:t.y}}var l=i?e0(i):null;if(l!=null){var c=l==="y"?"height":"width";switch(a){case Ei:u[l]=u[l]-(t[c]/2-n[c]/2);break;case Ia:u[l]=u[l]+(t[c]/2-n[c]/2);break}}return u}function Na(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,o=n.boundary,u=o===void 0?Jg:o,l=n.rootBoundary,c=l===void 0?Y1:l,d=n.elementContext,p=d===void 0?qi:d,f=n.altBoundary,b=f===void 0?!1:f,y=n.padding,S=y===void 0?0:y,v=Z1(typeof S!="number"?S:J1(S,qa)),w=p===qi?e6:qi,x=e.rects.popper,k=e.elements[b?w:p],M=P6(Qr(k)?k:k.contextElement||Mr(e.elements.popper),u,c,s),C=wi(e.elements.reference),H=tp({reference:C,element:x,placement:i}),z=Wu(Object.assign({},x,H)),V=p===qi?z:C,P={top:M.top-V.top+v.top,bottom:V.bottom-M.bottom+v.bottom,left:M.left-V.left+v.left,right:V.right-M.right+v.right},$=e.modifiersData.offset;if(p===qi&&$){var W=$[i];Object.keys(P).forEach(function(G){var q=[An,wn].indexOf(G)>=0?1:-1,Y=[nn,wn].indexOf(G)>=0?"y":"x";P[G]+=W[Y]*q})}return P}function L6(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,s=n.padding,o=n.flipVariations,u=n.allowedAutoPlacements,l=u===void 0?G1:u,c=Ai(r),d=c?o?jc:jc.filter(function(b){return Ai(b)===c}):qa,p=d.filter(function(b){return l.indexOf(b)>=0});p.length===0&&(p=d);var f=p.reduce(function(b,y){return b[y]=Na(e,{placement:y,boundary:i,rootBoundary:a,padding:s})[Un(y)],b},{});return Object.keys(f).sort(function(b,y){return f[b]-f[y]})}function O6(e){if(Un(e)===Ql)return[];var t=Os(e);return[Wc(e),t,Wc(t)]}function _6(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!0:s,u=n.fallbackPlacements,l=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,b=f===void 0?!0:f,y=n.allowedAutoPlacements,S=t.options.placement,v=Un(S),w=v===S,x=u||(w||!b?[Os(S)]:O6(S)),k=[S].concat(x).reduce(function(xe,Ie){return xe.concat(Un(Ie)===Ql?L6(t,{placement:Ie,boundary:c,rootBoundary:d,padding:l,flipVariations:b,allowedAutoPlacements:y}):Ie)},[]),M=t.rects.reference,C=t.rects.popper,H=new Map,z=!0,V=k[0],P=0;P=0,Y=q?"width":"height",Q=Na(t,{placement:$,boundary:c,rootBoundary:d,altBoundary:p,padding:l}),ee=q?G?An:rn:G?wn:nn;M[Y]>C[Y]&&(ee=Os(ee));var de=Os(ee),oe=[];if(a&&oe.push(Q[W]<=0),o&&oe.push(Q[ee]<=0,Q[de]<=0),oe.every(function(xe){return xe})){V=$,z=!1;break}H.set($,oe)}if(z)for(var N=b?3:1,Ce=function(Ie){var Be=k.find(function(je){var _e=H.get(je);if(_e)return _e.slice(0,Ie).every(function(qe){return qe})});if(Be)return V=Be,"break"},ve=N;ve>0;ve--){var B=Ce(ve);if(B==="break")break}t.placement!==V&&(t.modifiersData[r]._skip=!0,t.placement=V,t.reset=!0)}}const B6={name:"flip",enabled:!0,phase:"main",fn:_6,requiresIfExists:["offset"],data:{_skip:!1}};function Gc(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Xc(e){return[nn,An,wn,rn].some(function(t){return e[t]>=0})}function F6(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,s=Na(t,{elementContext:"reference"}),o=Na(t,{altBoundary:!0}),u=Gc(s,r),l=Gc(o,i,a),c=Xc(u),d=Xc(l);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const H6={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:F6};function z6(e,t,n){var r=Un(e),i=[rn,nn].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],o=a[1];return s=s||0,o=(o||0)*i,[rn,An].indexOf(r)>=0?{x:o,y:s}:{x:s,y:o}}function U6(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,s=G1.reduce(function(c,d){return c[d]=z6(d,t.rects,a),c},{}),o=s[t.placement],u=o.x,l=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=s}const V6={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:U6};function j6(e){var t=e.state,n=e.name;t.modifiersData[n]=tp({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const q6={name:"popperOffsets",enabled:!0,phase:"read",fn:j6,data:{}};function $6(e){return e==="x"?"y":"x"}function W6(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!1:s,u=n.boundary,l=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,f=p===void 0?!0:p,b=n.tetherOffset,y=b===void 0?0:b,S=Na(t,{boundary:u,rootBoundary:l,padding:d,altBoundary:c}),v=Un(t.placement),w=Ai(t.placement),x=!w,k=e0(v),M=$6(k),C=t.modifiersData.popperOffsets,H=t.rects.reference,z=t.rects.popper,V=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,P=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(C){if(a){var G,q=k==="y"?nn:rn,Y=k==="y"?wn:An,Q=k==="y"?"height":"width",ee=C[k],de=ee+S[q],oe=ee-S[Y],N=f?-z[Q]/2:0,Ce=w===Ei?H[Q]:z[Q],ve=w===Ei?-z[Q]:-H[Q],B=t.elements.arrow,xe=f&&B?Jl(B):{width:0,height:0},Ie=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Q1(),Be=Ie[q],je=Ie[Y],_e=ua(0,H[Q],xe[Q]),qe=x?H[Q]/2-N-_e-Be-P.mainAxis:Ce-_e-Be-P.mainAxis,Te=x?-H[Q]/2+N+_e+je+P.mainAxis:ve+_e+je+P.mainAxis,De=t.elements.arrow&&$a(t.elements.arrow),Ne=De?k==="y"?De.clientTop||0:De.clientLeft||0:0,Ke=(G=$?.[k])!=null?G:0,Re=ee+qe-Ke-Ne,$e=ee+Te-Ke,wt=ua(f?Ys(de,Re):de,ee,f?Wr(oe,$e):oe);C[k]=wt,W[k]=wt-ee}if(o){var ht,st=k==="x"?nn:rn,Nt=k==="x"?wn:An,ot=C[M],it=M==="y"?"height":"width",Ht=ot+S[st],Kt=ot-S[Nt],bt=[nn,rn].indexOf(v)!==-1,on=(ht=$?.[M])!=null?ht:0,K=bt?Ht:ot-H[it]-z[it]-on+P.altAxis,ie=bt?ot+H[it]+z[it]-on-P.altAxis:Kt,me=f&&bt?g6(K,ot,ie):ua(f?K:Ht,ot,f?ie:Kt);C[M]=me,W[M]=me-ot}t.modifiersData[r]=W}}const Y6={name:"preventOverflow",enabled:!0,phase:"main",fn:W6,requiresIfExists:["offset"]};function G6(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function X6(e){return e===pn(e)||!xn(e)?t0(e):G6(e)}function K6(e){var t=e.getBoundingClientRect(),n=Si(t.width)/e.offsetWidth||1,r=Si(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Q6(e,t,n){n===void 0&&(n=!1);var r=xn(t),i=xn(t)&&K6(t),a=Mr(t),s=wi(e,i,n),o={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(($n(t)!=="body"||r0(a))&&(o=X6(t)),xn(t)?(u=wi(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=n0(a))),{x:s.left+o.scrollLeft-u.x,y:s.top+o.scrollTop-u.y,width:s.width,height:s.height}}function Z6(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(o){if(!n.has(o)){var u=t.get(o);u&&i(u)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function J6(e){var t=Z6(e);return c6.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function e5(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function t5(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Kc={placement:"bottom",modifiers:[],strategy:"absolute"};function Qc(){for(var e=arguments.length,t=new Array(e),n=0;n=19?e?.props?.ref||null:e?.ref||null}function a5(e){return typeof e=="function"?e():e}const rp=O.forwardRef(function(t,n){const{children:r,container:i,disablePortal:a=!1}=t,[s,o]=O.useState(null),u=Vt(O.isValidElement(r)?Mi(r):null,n);if(ar(()=>{a||o(a5(i)||document.body)},[i,a]),ar(()=>{if(s&&!a)return Uc(n,s),()=>{Uc(n,null)}},[n,s,a]),a){if(O.isValidElement(r)){const l={ref:u};return O.cloneElement(r,l)}return r}return s&&wg.createPortal(r,s)});function s5(e){return gt("MuiPopper",e)}at("MuiPopper",["root"]);function o5(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Yu(e){return typeof e=="function"?e():e}function u5(e){return e.nodeType!==void 0}const l5=e=>{const{classes:t}=e;return Ye({root:["root"]},s5,t)},c5={},d5=O.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:a,disablePortal:s,modifiers:o,open:u,placement:l,popperOptions:c,popperRef:d,slotProps:p={},slots:f={},TransitionProps:b,ownerState:y,...S}=t,v=O.useRef(null),w=Vt(v,n),x=O.useRef(null),k=Vt(x,d),M=O.useRef(k);ar(()=>{M.current=k},[k]),O.useImperativeHandle(d,()=>x.current,[]);const C=o5(l,a),[H,z]=O.useState(C),[V,P]=O.useState(Yu(r));O.useEffect(()=>{x.current&&x.current.forceUpdate()}),O.useEffect(()=>{r&&P(Yu(r))},[r]),ar(()=>{if(!V||!u)return;const Y=de=>{z(de.placement)};let Q=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:de})=>{Y(de)}}];o!=null&&(Q=Q.concat(o)),c&&c.modifiers!=null&&(Q=Q.concat(c.modifiers));const ee=i5(V,v.current,{placement:C,...c,modifiers:Q});return M.current(ee),()=>{ee.destroy(),M.current(null)}},[V,s,o,u,c,C]);const $={placement:H};b!==null&&($.TransitionProps=b);const W=l5(t),G=f.root??"div",q=np({elementType:G,externalSlotProps:p.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:W.root});return R.jsx(G,{...q,children:typeof i=="function"?i($):i})}),h5=O.forwardRef(function(t,n){const{anchorEl:r,children:i,container:a,direction:s="ltr",disablePortal:o=!1,keepMounted:u=!1,modifiers:l,open:c,placement:d="bottom",popperOptions:p=c5,popperRef:f,style:b,transition:y=!1,slotProps:S={},slots:v={},...w}=t,[x,k]=O.useState(!0),M=()=>{k(!1)},C=()=>{k(!0)};if(!u&&!c&&(!y||x))return null;let H;if(a)H=a;else if(r){const P=Yu(r);H=P&&u5(P)?fn(P).body:fn(null).body}const z=!c&&u&&(!y||x)?"none":void 0,V=y?{in:c,onEnter:M,onExited:C}:void 0;return R.jsx(rp,{disablePortal:o,container:H,children:R.jsx(d5,{anchorEl:r,direction:s,disablePortal:o,modifiers:l,ref:n,open:y?!x:c,placement:d,popperOptions:p,popperRef:f,slotProps:S,slots:v,...w,style:{position:"fixed",top:0,left:0,display:z,...b},TransitionProps:V,children:i})})}),f5=le(h5,{name:"MuiPopper",slot:"Root"})({}),ip=O.forwardRef(function(t,n){const r=Yl(),i=Ge({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:o,componentsProps:u,container:l,disablePortal:c,keepMounted:d,modifiers:p,open:f,placement:b,popperOptions:y,popperRef:S,transition:v,slots:w,slotProps:x,...k}=i,M=w?.root??o?.Root,C={anchorEl:a,container:l,disablePortal:c,keepMounted:d,modifiers:p,open:f,placement:b,popperOptions:y,popperRef:S,transition:v,...k};return R.jsx(f5,{as:s,direction:r?"rtl":"ltr",slots:{root:M},slotProps:x??u,...C,ref:n})});function ds(e){return parseInt(e,10)||0}const p5={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function m5(e){for(const t in e)return!1;return!0}function Zc(e){return m5(e)||e.outerHeightStyle===0&&!e.overflowing}const g5=O.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:a=1,style:s,value:o,...u}=t,{current:l}=O.useRef(o!=null),c=O.useRef(null),d=Vt(n,c),p=O.useRef(null),f=O.useRef(null),b=O.useCallback(()=>{const x=c.current,k=f.current;if(!x||!k)return;const C=sr(x).getComputedStyle(x);if(C.width==="0px")return{outerHeightStyle:0,overflowing:!1};k.style.width=C.width,k.value=x.value||t.placeholder||"x",k.value.slice(-1)===` -`&&(k.value+=" ");const H=C.boxSizing,z=ds(C.paddingBottom)+ds(C.paddingTop),V=ds(C.borderBottomWidth)+ds(C.borderTopWidth),P=k.scrollHeight;k.value="x";const $=k.scrollHeight;let W=P;a&&(W=Math.max(Number(a)*$,W)),i&&(W=Math.min(Number(i)*$,W)),W=Math.max(W,$);const G=W+(H==="border-box"?z+V:0),q=Math.abs(W-P)<=1;return{outerHeightStyle:G,overflowing:q}},[i,a,t.placeholder]),y=Aa(()=>{const x=c.current,k=b();if(!x||!k||Zc(k))return!1;const M=k.outerHeightStyle;return p.current!=null&&p.current!==M}),S=O.useCallback(()=>{const x=c.current,k=b();if(!x||!k||Zc(k))return;const M=k.outerHeightStyle;p.current!==M&&(p.current=M,x.style.height=`${M}px`),x.style.overflow=k.overflowing?"hidden":""},[b]),v=O.useRef(-1);ar(()=>{const x=$1(S),k=c?.current;if(!k)return;const M=sr(k);M.addEventListener("resize",x);let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(()=>{y()&&(C.unobserve(k),cancelAnimationFrame(v.current),S(),v.current=requestAnimationFrame(()=>{C.observe(k)}))}),C.observe(k)),()=>{x.clear(),cancelAnimationFrame(v.current),M.removeEventListener("resize",x),C&&C.disconnect()}},[b,S,y]),ar(()=>{S()});const w=x=>{l||S();const k=x.target,M=k.value.length,C=k.value.endsWith(` -`),H=k.selectionStart===M;C&&H&&k.setSelectionRange(M,M),r&&r(x)};return R.jsxs(O.Fragment,{children:[R.jsx("textarea",{value:o,onChange:w,ref:d,rows:a,style:s,...u}),R.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:{...p5.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function i0({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const ap=O.createContext(void 0);function a0(){return O.useContext(ap)}function Jc(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function sp(e,t=!1){return e&&(Jc(e.value)&&e.value!==""||t&&Jc(e.defaultValue)&&e.defaultValue!=="")}function wL(e){return e.startAdornment}var ed;const go=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${St(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},bo=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},b5=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:s,formControl:o,fullWidth:u,hiddenLabel:l,multiline:c,readOnly:d,size:p,startAdornment:f,type:b}=e,y={root:["root",`color${St(n)}`,r&&"disabled",i&&"error",u&&"fullWidth",s&&"focused",o&&"formControl",p&&p!=="medium"&&`size${St(p)}`,c&&"multiline",f&&"adornedStart",a&&"adornedEnd",l&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return Ye(y,Cg,t)},yo=le("div",{name:"MuiInputBase",slot:"Root",overridesResolver:go})(ct(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ka.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),vo=le("input",{name:"MuiInputBase",slot:"Input",overridesResolver:bo})(ct(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ka.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${ka.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),td=Ag({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),s0=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:o,color:u,components:l={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:b,error:y,fullWidth:S=!1,id:v,inputComponent:w="input",inputProps:x={},inputRef:k,margin:M,maxRows:C,minRows:H,multiline:z=!1,name:V,onBlur:P,onChange:$,onClick:W,onFocus:G,onKeyDown:q,onKeyUp:Y,placeholder:Q,readOnly:ee,renderSuffix:de,rows:oe,size:N,slotProps:Ce={},slots:ve={},startAdornment:B,type:xe="text",value:Ie,...Be}=r,je=x.value!=null?x.value:Ie,{current:_e}=O.useRef(je!=null),qe=O.useRef(),Te=O.useCallback(Se=>{},[]),De=Vt(qe,k,x.ref,Te),[Ne,Ke]=O.useState(!1),Re=a0(),$e=i0({props:r,muiFormControl:Re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});$e.focused=Re?Re.focused:Ne,O.useEffect(()=>{!Re&&p&&Ne&&(Ke(!1),P&&P())},[Re,p,Ne,P]);const wt=Re&&Re.onFilled,ht=Re&&Re.onEmpty,st=O.useCallback(Se=>{sp(Se)?wt&&wt():ht&&ht()},[wt,ht]);ar(()=>{_e&&st({value:je})},[je,st,_e]);const Nt=Se=>{G&&G(Se),x.onFocus&&x.onFocus(Se),Re&&Re.onFocus?Re.onFocus(Se):Ke(!0)},ot=Se=>{P&&P(Se),x.onBlur&&x.onBlur(Se),Re&&Re.onBlur?Re.onBlur(Se):Ke(!1)},it=(Se,...Rt)=>{if(!_e){const yt=Se.target||qe.current;if(yt==null)throw new Error(F1(1));st({value:yt.value})}x.onChange&&x.onChange(Se,...Rt),$&&$(Se,...Rt)};O.useEffect(()=>{st(qe.current)},[]);const Ht=Se=>{qe.current&&Se.currentTarget===Se.target&&qe.current.focus(),W&&W(Se)};let Kt=w,bt=x;z&&Kt==="input"&&(oe?bt={type:void 0,minRows:oe,maxRows:oe,...bt}:bt={type:void 0,maxRows:C,minRows:H,...bt},Kt=g5);const on=Se=>{st(Se.animationName==="mui-auto-fill-cancel"?qe.current:{value:"x"})};O.useEffect(()=>{Re&&Re.setAdornedStart(!!B)},[Re,B]);const K={...r,color:$e.color||"primary",disabled:$e.disabled,endAdornment:b,error:$e.error,focused:$e.focused,formControl:Re,fullWidth:S,hiddenLabel:$e.hiddenLabel,multiline:z,size:$e.size,startAdornment:B,type:xe},ie=b5(K),me=ve.root||l.Root||yo,Ee=Ce.root||c.root||{},Pe=ve.input||l.Input||vo;return bt={...bt,...Ce.input??c.input},R.jsxs(O.Fragment,{children:[!f&&typeof td=="function"&&(ed||(ed=R.jsx(td,{}))),R.jsxs(me,{...Ee,ref:n,onClick:Ht,...Be,...!Ca(me)&&{ownerState:{...K,...Ee.ownerState}},className:Ve(ie.root,Ee.className,o,ee&&"MuiInputBase-readOnly"),children:[B,R.jsx(ap.Provider,{value:null,children:R.jsx(Pe,{"aria-invalid":$e.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:d,disabled:$e.disabled,id:v,onAnimationStart:on,name:V,placeholder:Q,readOnly:ee,required:$e.required,rows:oe,value:je,onKeyDown:q,onKeyUp:Y,type:xe,...bt,...!Ca(Pe)&&{as:Kt,ownerState:{...K,...bt.ownerState}},ref:De,className:Ve(ie.input,bt.className,ee&&"MuiInputBase-readOnly"),onBlur:ot,onChange:it,onFocus:Nt})}),b,de?de({...$e,startAdornment:B}):null]})]})});function y5(e){return gt("MuiInput",e)}const $i={...ka,...at("MuiInput",["root","underline","input"])};function v5(e){return gt("MuiFilledInput",e)}const Or={...ka,...at("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},T5=kg(R.jsx("path",{d:"M7 10l5 5 5-5z"})),x5={entering:{opacity:1},entered:{opacity:1}},Gu=O.forwardRef(function(t,n){const r=Va(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:o,easing:u,in:l,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:b,onExiting:y,style:S,timeout:v=i,TransitionComponent:w=Yn,...x}=t,k=O.useRef(null),M=Vt(k,Mi(o),n),C=q=>Y=>{if(q){const Q=k.current;Y===void 0?q(Q):q(Q,Y)}},H=C(p),z=C((q,Y)=>{W1(q);const Q=Ws({style:S,timeout:v,easing:u},{mode:"enter"});q.style.webkitTransition=r.transitions.create("opacity",Q),q.style.transition=r.transitions.create("opacity",Q),c&&c(q,Y)}),V=C(d),P=C(y),$=C(q=>{const Y=Ws({style:S,timeout:v,easing:u},{mode:"exit"});q.style.webkitTransition=r.transitions.create("opacity",Y),q.style.transition=r.transitions.create("opacity",Y),f&&f(q)}),W=C(b),G=q=>{a&&a(k.current,q)};return R.jsx(w,{appear:s,in:l,nodeRef:k,onEnter:z,onEntered:V,onEntering:H,onExit:$,onExited:W,onExiting:P,addEndListener:G,timeout:v,...x,children:(q,{ownerState:Y,...Q})=>O.cloneElement(o,{style:{opacity:0,visibility:q==="exited"&&!l?"hidden":void 0,...x5[q],...S,...o.props.style},ref:M,...Q})})});function E5(e){return gt("MuiBackdrop",e)}at("MuiBackdrop",["root","invisible"]);const S5=e=>{const{classes:t,invisible:n}=e;return Ye({root:["root",n&&"invisible"]},E5,t)},w5=le("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),op=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiBackdrop"}),{children:i,className:a,component:s="div",invisible:o=!1,open:u,components:l={},componentsProps:c={},slotProps:d={},slots:p={},TransitionComponent:f,transitionDuration:b,...y}=r,S={...r,component:s,invisible:o},v=S5(S),w={transition:f,root:l.Root,...p},x={...c,...d},k={component:s,slots:w,slotProps:x},[M,C]=Et("root",{elementType:w5,externalForwardedProps:k,className:Ve(v.root,a),ownerState:S}),[H,z]=Et("transition",{elementType:Gu,externalForwardedProps:k,ownerState:S});return R.jsx(H,{in:u,timeout:b,...y,...z,children:R.jsx(M,{"aria-hidden":!0,...C,classes:v,ref:n,children:i})})}),A5=at("MuiBox",["root"]),C5=Rg(),Ar=Wg({themeId:Ng,defaultTheme:C5,defaultClassName:A5.root,generateClassName:Ig.generate});function up(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function k5(e){const t=fn(e);return t.body===e?sr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ca(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function nd(e){return parseInt(sr(e).getComputedStyle(e).paddingRight,10)||0}function I5(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function rd(e,t,n,r,i){const a=[t,n,...r];[].forEach.call(e.children,s=>{const o=!a.includes(s),u=!I5(s);o&&u&&ca(s,i)})}function Uo(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function N5(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(k5(r)){const s=up(sr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${nd(r)+s}px`;const o=fn(r).querySelectorAll(".mui-fixed");[].forEach.call(o,u=>{n.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${nd(u)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=fn(r).body;else{const s=r.parentElement,o=sr(r);a=s?.nodeName==="HTML"&&o.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:o})=>{a?s.style.setProperty(o,a):s.style.removeProperty(o)})}}function R5(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class M5{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&ca(t.modalRef,!1);const i=R5(n);rd(n,t.mount,t.modalRef,i,!0);const a=Uo(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=Uo(this.containers,a=>a.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=N5(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=Uo(this.containers,s=>s.modals.includes(t)),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&ca(t.modalRef,n),rd(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&ca(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const D5=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function P5(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function L5(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function O5(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||L5(e))}function _5(e){const t=[],n=[];return Array.from(e.querySelectorAll(D5)).forEach((r,i)=>{const a=P5(r);a===-1||!O5(r)||(a===0?t.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function B5(){return!0}function F5(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=_5,isEnabled:s=B5,open:o}=e,u=O.useRef(!1),l=O.useRef(null),c=O.useRef(null),d=O.useRef(null),p=O.useRef(null),f=O.useRef(!1),b=O.useRef(null),y=Vt(Mi(t),b),S=O.useRef(null);O.useEffect(()=>{!o||!b.current||(f.current=!n)},[n,o]),O.useEffect(()=>{if(!o||!b.current)return;const x=fn(b.current);return b.current.contains(x.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),f.current&&b.current.focus()),()=>{i||(d.current&&d.current.focus&&(u.current=!0,d.current.focus()),d.current=null)}},[o]),O.useEffect(()=>{if(!o||!b.current)return;const x=fn(b.current),k=H=>{S.current=H,!(r||!s()||H.key!=="Tab")&&x.activeElement===b.current&&H.shiftKey&&(u.current=!0,c.current&&c.current.focus())},M=()=>{const H=b.current;if(H===null)return;if(!x.hasFocus()||!s()||u.current){u.current=!1;return}if(H.contains(x.activeElement)||r&&x.activeElement!==l.current&&x.activeElement!==c.current)return;if(x.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!f.current)return;let z=[];if((x.activeElement===l.current||x.activeElement===c.current)&&(z=a(b.current)),z.length>0){const V=!!(S.current?.shiftKey&&S.current?.key==="Tab"),P=z[0],$=z[z.length-1];typeof P!="string"&&typeof $!="string"&&(V?$.focus():P.focus())}else H.focus()};x.addEventListener("focusin",M),x.addEventListener("keydown",k,!0);const C=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&M()},50);return()=>{clearInterval(C),x.removeEventListener("focusin",M),x.removeEventListener("keydown",k,!0)}},[n,r,i,s,o,a]);const v=x=>{d.current===null&&(d.current=x.relatedTarget),f.current=!0,p.current=x.target;const k=t.props.onFocus;k&&k(x)},w=x=>{d.current===null&&(d.current=x.relatedTarget),f.current=!0};return R.jsxs(O.Fragment,{children:[R.jsx("div",{tabIndex:o?0:-1,onFocus:w,ref:l,"data-testid":"sentinelStart"}),O.cloneElement(t,{ref:y,onFocus:v}),R.jsx("div",{tabIndex:o?0:-1,onFocus:w,ref:c,"data-testid":"sentinelEnd"})]})}function H5(e){return typeof e=="function"?e():e}function z5(e){return e?e.props.hasOwnProperty("in"):!1}const id=()=>{},hs=new M5;function U5(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:o,onClose:u,open:l,rootRef:c}=e,d=O.useRef({}),p=O.useRef(null),f=O.useRef(null),b=Vt(f,c),[y,S]=O.useState(!l),v=z5(o);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const x=()=>fn(p.current),k=()=>(d.current.modalRef=f.current,d.current.mount=p.current,d.current),M=()=>{hs.mount(k(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},C=Aa(()=>{const Y=H5(t)||x().body;hs.add(k(),Y),f.current&&M()}),H=()=>hs.isTopModal(k()),z=Aa(Y=>{p.current=Y,Y&&(l&&H()?M():f.current&&ca(f.current,w))}),V=O.useCallback(()=>{hs.remove(k(),w)},[w]);O.useEffect(()=>()=>{V()},[V]),O.useEffect(()=>{l?C():(!v||!i)&&V()},[l,V,v,i,C]);const P=Y=>Q=>{Y.onKeyDown?.(Q),!(Q.key!=="Escape"||Q.which===229||!H())&&(n||(Q.stopPropagation(),u&&u(Q,"escapeKeyDown")))},$=Y=>Q=>{Y.onClick?.(Q),Q.target===Q.currentTarget&&u&&u(Q,"backdropClick")};return{getRootProps:(Y={})=>{const Q=Mg(e);delete Q.onTransitionEnter,delete Q.onTransitionExited;const ee={...Q,...Y};return{role:"presentation",...ee,onKeyDown:P(ee),ref:b}},getBackdropProps:(Y={})=>{const Q=Y;return{"aria-hidden":!0,...Q,onClick:$(Q),open:l}},getTransitionProps:()=>{const Y=()=>{S(!1),a&&a()},Q=()=>{S(!0),s&&s(),i&&V()};return{onEnter:zc(Y,o?.props.onEnter??id),onExited:zc(Q,o?.props.onExited??id)}},rootRef:b,portalRef:z,isTopModal:H,exited:y,hasTransition:v}}function V5(e){return gt("MuiModal",e)}at("MuiModal",["root","hidden","backdrop"]);const j5=e=>{const{open:t,exited:n,classes:r}=e;return Ye({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},V5,r)},q5=le("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ct(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),$5=le(op,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),lp=O.forwardRef(function(t,n){const r=Ge({name:"MuiModal",props:t}),{BackdropComponent:i=$5,BackdropProps:a,classes:s,className:o,closeAfterTransition:u=!1,children:l,container:c,component:d,components:p={},componentsProps:f={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:S=!1,disablePortal:v=!1,disableRestoreFocus:w=!1,disableScrollLock:x=!1,hideBackdrop:k=!1,keepMounted:M=!1,onClose:C,onTransitionEnter:H,onTransitionExited:z,open:V,slotProps:P={},slots:$={},theme:W,...G}=r,q={...r,closeAfterTransition:u,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:S,disablePortal:v,disableRestoreFocus:w,disableScrollLock:x,hideBackdrop:k,keepMounted:M},{getRootProps:Y,getBackdropProps:Q,getTransitionProps:ee,portalRef:de,isTopModal:oe,exited:N,hasTransition:Ce}=U5({...q,rootRef:n}),ve={...q,exited:N},B=j5(ve),xe={};if(l.props.tabIndex===void 0&&(xe.tabIndex="-1"),Ce){const{onEnter:Te,onExited:De}=ee();xe.onEnter=Te,xe.onExited=De}const Ie={slots:{root:p.Root,backdrop:p.Backdrop,...$},slotProps:{...f,...P}},[Be,je]=Et("root",{ref:n,elementType:q5,externalForwardedProps:{...Ie,...G,component:d},getSlotProps:Y,ownerState:ve,className:Ve(o,B?.root,!ve.open&&ve.exited&&B?.hidden)}),[_e,qe]=Et("backdrop",{ref:a?.ref,elementType:i,externalForwardedProps:Ie,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:Te=>Q({...Te,onClick:De=>{Te?.onClick&&Te.onClick(De)}}),className:Ve(a?.className,B?.backdrop),ownerState:ve});return!M&&!V&&(!Ce||N)?null:R.jsx(rp,{ref:de,container:c,disablePortal:v,children:R.jsxs(Be,{...je,children:[!k&&i?R.jsx(_e,{...qe}):null,R.jsx(F5,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:w,isEnabled:oe,open:V,children:O.cloneElement(l,xe)})]})})});function W5(e){return gt("MuiDialog",e)}const Vo=at("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),cp=O.createContext({}),Y5=le(op,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),G5=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${St(n)}`],paper:["paper",`paperScroll${St(n)}`,`paperWidth${St(String(r))}`,i&&"paperFullWidth",a&&"paperFullScreen"]};return Ye(s,W5,t)},X5=le(lp,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),K5=le("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${St(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),Q5=le(po,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${St(n.scroll)}`],t[`paperWidth${St(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(ct(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Vo.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Vo.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Vo.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Z5=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiDialog"}),i=Va(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":o,"aria-modal":u=!0,BackdropComponent:l,BackdropProps:c,children:d,className:p,disableEscapeKeyDown:f=!1,fullScreen:b=!1,fullWidth:y=!1,maxWidth:S="sm",onClick:v,onClose:w,open:x,PaperComponent:k=po,PaperProps:M={},scroll:C="paper",slots:H={},slotProps:z={},TransitionComponent:V=Gu,transitionDuration:P=a,TransitionProps:$,...W}=r,G={...r,disableEscapeKeyDown:f,fullScreen:b,fullWidth:y,maxWidth:S,scroll:C},q=G5(G),Y=O.useRef(),Q=Ke=>{Y.current=Ke.target===Ke.currentTarget},ee=Ke=>{v&&v(Ke),Y.current&&(Y.current=null,w&&w(Ke,"backdropClick"))},de=Gl(o),oe=O.useMemo(()=>({titleId:de}),[de]),N={transition:V,...H},Ce={transition:$,paper:M,backdrop:c,...z},ve={slots:N,slotProps:Ce},[B,xe]=Et("root",{elementType:X5,shouldForwardComponentProp:!0,externalForwardedProps:ve,ownerState:G,className:Ve(q.root,p),ref:n}),[Ie,Be]=Et("backdrop",{elementType:Y5,shouldForwardComponentProp:!0,externalForwardedProps:ve,ownerState:G}),[je,_e]=Et("paper",{elementType:Q5,shouldForwardComponentProp:!0,externalForwardedProps:ve,ownerState:G,className:Ve(q.paper,M.className)}),[qe,Te]=Et("container",{elementType:K5,externalForwardedProps:ve,ownerState:G,className:q.container}),[De,Ne]=Et("transition",{elementType:Gu,externalForwardedProps:ve,ownerState:G,additionalProps:{appear:!0,in:x,timeout:P,role:"presentation"}});return R.jsx(B,{closeAfterTransition:!0,slots:{backdrop:Ie},slotProps:{backdrop:{transitionDuration:P,as:l,...Be}},disableEscapeKeyDown:f,onClose:w,open:x,onClick:ee,...xe,...W,children:R.jsx(De,{...Ne,children:R.jsx(qe,{onMouseDown:Q,...Te,children:R.jsx(je,{as:k,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":de,"aria-modal":u,..._e,children:R.jsx(cp.Provider,{value:oe,children:d})})})})})});function J5(e){return gt("MuiDialogActions",e)}at("MuiDialogActions",["root","spacing"]);const eb=e=>{const{classes:t,disableSpacing:n}=e;return Ye({root:["root",!n&&"spacing"]},J5,t)},tb=le("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),nb=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:a=!1,...s}=r,o={...r,disableSpacing:a},u=eb(o);return R.jsx(tb,{className:Ve(u.root,i),ownerState:o,ref:n,...s})}),rb=e=>{const{classes:t,dividers:n}=e;return Ye({root:["root",n&&"dividers"]},Dg,t)},ib=le("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(ct(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${Pg.root} + &`]:{paddingTop:0}}}]}))),ab=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiDialogContent"}),{className:i,dividers:a=!1,...s}=r,o={...r,dividers:a},u=rb(o);return R.jsx(ib,{className:Ve(u.root,i),ownerState:o,ref:n,...s})});function sb(e){return gt("MuiDialogContentText",e)}at("MuiDialogContentText",["root"]);const ob=e=>{const{classes:t}=e,r=Ye({root:["root"]},sb,t);return{...t,...r}},ub=le(Xe,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),lb=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiDialogContentText"}),{children:i,className:a,...s}=r,o=ob(s);return R.jsx(ub,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:s,className:Ve(o.root,a),...r,classes:o})}),cb=e=>{const{classes:t}=e;return Ye({root:["root"]},Lg,t)},db=le(Xe,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),hb=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiDialogTitle"}),{className:i,id:a,...s}=r,o=r,u=cb(o),{titleId:l=a}=O.useContext(cp);return R.jsx(db,{component:"h2",className:Ve(u.root,i),ownerState:o,ref:n,variant:"h6",id:a??l,...s})}),fb=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:a,orientation:s,textAlign:o,variant:u}=e;return Ye({root:["root",t&&"absolute",u,a&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",o==="right"&&s!=="vertical"&&"textAlignRight",o==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},Og,r)},pb=le("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(ct(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),mb=le("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(ct(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Xu=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:s,orientation:o="horizontal",component:u=a||o==="vertical"?"div":"hr",flexItem:l=!1,light:c=!1,role:d=u!=="hr"?"separator":void 0,textAlign:p="center",variant:f="fullWidth",...b}=r,y={...r,absolute:i,component:u,flexItem:l,light:c,orientation:o,role:d,textAlign:p,variant:f},S=fb(y);return R.jsx(pb,{as:u,className:Ve(S.root,s),role:d,ref:n,ownerState:y,"aria-orientation":d==="separator"&&(u!=="hr"||o==="vertical")?o:void 0,...b,children:a?R.jsx(mb,{className:S.wrapper,ownerState:y,children:a}):null})});Xu&&(Xu.muiSkipListHighlight=!0);const gb=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:s,multiline:o}=e,u={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",a==="small"&&`size${St(a)}`,s&&"hiddenLabel",o&&"multiline"],input:["input"]},l=Ye(u,v5,t);return{...t,...l}},bb=le(yo,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...go(e,t),!n.disableUnderline&&t.underline]}})(ct(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Or.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Or.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Or.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Or.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Or.disabled}, .${Or.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Or.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Kl()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:o})=>s.multiline&&o==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),yb=le(vo,{name:"MuiFilledInput",slot:"Input",overridesResolver:bo})(ct(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),dp=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:a={},componentsProps:s,fullWidth:o=!1,hiddenLabel:u,inputComponent:l="input",multiline:c=!1,slotProps:d,slots:p={},type:f="text",...b}=r,y={...r,disableUnderline:i,fullWidth:o,inputComponent:l,multiline:c,type:f},S=gb(r),v={root:{ownerState:y},input:{ownerState:y}},w=d??s?Xl(v,d??s):v,x=p.root??a.Root??bb,k=p.input??a.Input??yb;return R.jsx(s0,{slots:{root:x,input:k},slotProps:w,fullWidth:o,inputComponent:l,multiline:c,ref:n,type:f,...b,classes:S})});dp.muiName="Input";function Ku(e){return`scale(${e}, ${e**2})`}const vb={entering:{opacity:1,transform:Ku(1)},entered:{opacity:1,transform:"none"}},jo=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Gs=O.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:a,easing:s,in:o,onEnter:u,onEntered:l,onEntering:c,onExit:d,onExited:p,onExiting:f,style:b,timeout:y="auto",TransitionComponent:S=Yn,...v}=t,w=ra(),x=O.useRef(),k=Va(),M=O.useRef(null),C=Vt(M,Mi(a),n),H=Y=>Q=>{if(Y){const ee=M.current;Q===void 0?Y(ee):Y(ee,Q)}},z=H(c),V=H((Y,Q)=>{W1(Y);const{duration:ee,delay:de,easing:oe}=Ws({style:b,timeout:y,easing:s},{mode:"enter"});let N;y==="auto"?(N=k.transitions.getAutoHeightDuration(Y.clientHeight),x.current=N):N=ee,Y.style.transition=[k.transitions.create("opacity",{duration:N,delay:de}),k.transitions.create("transform",{duration:jo?N:N*.666,delay:de,easing:oe})].join(","),u&&u(Y,Q)}),P=H(l),$=H(f),W=H(Y=>{const{duration:Q,delay:ee,easing:de}=Ws({style:b,timeout:y,easing:s},{mode:"exit"});let oe;y==="auto"?(oe=k.transitions.getAutoHeightDuration(Y.clientHeight),x.current=oe):oe=Q,Y.style.transition=[k.transitions.create("opacity",{duration:oe,delay:ee}),k.transitions.create("transform",{duration:jo?oe:oe*.666,delay:jo?ee:ee||oe*.333,easing:de})].join(","),Y.style.opacity=0,Y.style.transform=Ku(.75),d&&d(Y)}),G=H(p),q=Y=>{y==="auto"&&w.start(x.current||0,Y),r&&r(M.current,Y)};return R.jsx(S,{appear:i,in:o,nodeRef:M,onEnter:V,onEntered:P,onEntering:z,onExit:W,onExited:G,onExiting:$,addEndListener:q,timeout:y==="auto"?null:y,...v,children:(Y,{ownerState:Q,...ee})=>O.cloneElement(a,{style:{opacity:0,transform:Ku(.75),visibility:Y==="exited"&&!o?"hidden":void 0,...vb[Y],...b,...a.props.style},ref:C,...ee})})});Gs&&(Gs.muiSupportAuto=!0);const Tb=e=>{const{classes:t,disableUnderline:n}=e,i=Ye({root:["root",!n&&"underline"],input:["input"]},y5,t);return{...t,...i}},xb=le(yo,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...go(e,t),!n.disableUnderline&&t.underline]}})(ct(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${$i.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$i.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${$i.disabled}, .${$i.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${$i.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Kl()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),Eb=le(vo,{name:"MuiInput",slot:"Input",overridesResolver:bo})({}),hp=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:a={},componentsProps:s,fullWidth:o=!1,inputComponent:u="input",multiline:l=!1,slotProps:c,slots:d={},type:p="text",...f}=r,b=Tb(r),S={root:{ownerState:{disableUnderline:i}}},v=c??s?Xl(c??s,S):S,w=d.root??a.Root??xb,x=d.input??a.Input??Eb;return R.jsx(s0,{slots:{root:w,input:x},slotProps:v,fullWidth:o,inputComponent:u,multiline:l,ref:n,type:p,...f,classes:b})});hp.muiName="Input";const nr=O.createContext({});function Sb(e){return gt("MuiList",e)}at("MuiList",["root","padding","dense","subheader"]);const wb=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Ye({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Sb,t)},Ab=le("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),fp=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiList"}),{children:i,className:a,component:s="ul",dense:o=!1,disablePadding:u=!1,subheader:l,...c}=r,d=O.useMemo(()=>({dense:o}),[o]),p={...r,component:s,dense:o,disablePadding:u},f=wb(p);return R.jsx(nr.Provider,{value:d,children:R.jsxs(Ab,{as:s,className:Ve(f.root,a),ref:n,ownerState:p,...c,children:[l,i]})})});function Cb(e){return gt("MuiListItem",e)}at("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const kb=at("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Ib(e){return gt("MuiListItemSecondaryAction",e)}at("MuiListItemSecondaryAction",["root","disableGutters"]);const Nb=e=>{const{disableGutters:t,classes:n}=e;return Ye({root:["root",t&&"disableGutters"]},Ib,n)},Rb=le("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),pp=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiListItemSecondaryAction"}),{className:i,...a}=r,s=O.useContext(nr),o={...r,disableGutters:s.disableGutters},u=Nb(o);return R.jsx(Rb,{className:Ve(u.root,i),ownerState:o,ref:n,...a})});pp.muiName="ListItemSecondaryAction";const Mb=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},Db=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:i,disablePadding:a,divider:s,hasSecondaryAction:o}=e;return Ye({root:["root",r&&"dense",!i&&"gutters",!a&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",o&&"secondaryAction"],container:["container"]},Cb,n)},Pb=le("div",{name:"MuiListItem",slot:"Root",overridesResolver:Mb})(ct(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${kb.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),Lb=le("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Ob=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiListItem"}),{alignItems:i="center",children:a,className:s,component:o,components:u={},componentsProps:l={},ContainerComponent:c="li",ContainerProps:{className:d,...p}={},dense:f=!1,disableGutters:b=!1,disablePadding:y=!1,divider:S=!1,secondaryAction:v,slotProps:w={},slots:x={},...k}=r,M=O.useContext(nr),C=O.useMemo(()=>({dense:f||M.dense||!1,alignItems:i,disableGutters:b}),[i,M.dense,f,b]),H=O.useRef(null),z=O.Children.toArray(a),V=z.length&&Yg(z[z.length-1],["ListItemSecondaryAction"]),P={...r,alignItems:i,dense:C.dense,disableGutters:b,disablePadding:y,divider:S,hasSecondaryAction:V},$=Db(P),W=Vt(H,n),G=x.root||u.Root||Pb,q=w.root||l.root||{},Y={className:Ve($.root,q.className,s),...k};let Q=o||"li";return V?(Q=!Y.component&&!o?"div":Q,c==="li"&&(Q==="li"?Q="div":Y.component==="li"&&(Y.component="div")),R.jsx(nr.Provider,{value:C,children:R.jsxs(Lb,{as:c,className:Ve($.container,d),ref:W,ownerState:P,...p,children:[R.jsx(G,{...q,...!Ca(G)&&{as:Q,ownerState:{...P,...q.ownerState}},...Y,children:z}),z.pop()]})})):R.jsx(nr.Provider,{value:C,children:R.jsxs(G,{...q,as:Q,ref:W,...!Ca(G)&&{ownerState:{...P,...q.ownerState}},...Y,children:[z,v&&R.jsx(pp,{children:v})]})})}),_b=e=>{const{alignItems:t,classes:n}=e;return Ye({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},_g,n)},Bb=le("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(ct(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Fb=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiListItemIcon"}),{className:i,...a}=r,s=O.useContext(nr),o={...r,alignItems:s.alignItems},u=_b(o);return R.jsx(Bb,{className:Ve(u.root,i),ownerState:o,ref:n,...a})});function Hb(e){return gt("MuiListItemText",e)}const di=at("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),zb=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return Ye({root:["root",n&&"inset",a&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},Hb,t)},Ub=le("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${di.primary}`]:t.primary},{[`& .${di.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Pc.root}:where(& .${di.primary})`]:{display:"block"},[`.${Pc.root}:where(& .${di.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Vb=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiListItemText"}),{children:i,className:a,disableTypography:s=!1,inset:o=!1,primary:u,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:d,slots:p={},slotProps:f={},...b}=r,{dense:y}=O.useContext(nr);let S=u??i,v=c;const w={...r,disableTypography:s,inset:o,primary:!!S,secondary:!!v,dense:y},x=zb(w),k={slots:p,slotProps:{primary:l,secondary:d,...f}},[M,C]=Et("root",{className:Ve(x.root,a),elementType:Ub,externalForwardedProps:{...k,...b},ownerState:w,ref:n}),[H,z]=Et("primary",{className:x.primary,elementType:Xe,externalForwardedProps:k,ownerState:w}),[V,P]=Et("secondary",{className:x.secondary,elementType:Xe,externalForwardedProps:k,ownerState:w});return S!=null&&S.type!==Xe&&!s&&(S=R.jsx(H,{variant:y?"body2":"body1",component:z?.variant?void 0:"span",...z,children:S})),v!=null&&v.type!==Xe&&!s&&(v=R.jsx(V,{variant:"body2",color:"textSecondary",...P,children:v})),R.jsxs(M,{...C,children:[S,v]})});function qo(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function ad(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function mp(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Wi(e,t,n,r,i,a){let s=!1,o=i(e,t,t?n:!1);for(;o;){if(o===e.firstChild){if(s)return!1;s=!0}const u=r?!1:o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||!mp(o,a)||u)o=i(e,o,n);else return o.focus(),!0}return!1}const jb=O.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:a=!1,children:s,className:o,disabledItemsFocusable:u=!1,disableListWrap:l=!1,onKeyDown:c,variant:d="selectedMenu",...p}=t,f=O.useRef(null),b=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ar(()=>{i&&f.current.focus()},[i]),O.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,{direction:k})=>{const M=!f.current.style.width;if(x.clientHeight{const k=f.current,M=x.key;if(x.ctrlKey||x.metaKey||x.altKey){c&&c(x);return}const H=fn(k).activeElement;if(M==="ArrowDown")x.preventDefault(),Wi(k,H,l,u,qo);else if(M==="ArrowUp")x.preventDefault(),Wi(k,H,l,u,ad);else if(M==="Home")x.preventDefault(),Wi(k,null,l,u,qo);else if(M==="End")x.preventDefault(),Wi(k,null,l,u,ad);else if(M.length===1){const z=b.current,V=M.toLowerCase(),P=performance.now();z.keys.length>0&&(P-z.lastTime>500?(z.keys=[],z.repeating=!0,z.previousKeyMatched=!0):z.repeating&&V!==z.keys[0]&&(z.repeating=!1)),z.lastTime=P,z.keys.push(V);const $=H&&!z.repeating&&mp(H,z);z.previousKeyMatched&&($||Wi(k,H,!1,u,qo,z))?x.preventDefault():z.previousKeyMatched=!1}c&&c(x)},S=Vt(f,n);let v=-1;O.Children.forEach(s,(x,k)=>{if(!O.isValidElement(x)){v===k&&(v+=1,v>=s.length&&(v=-1));return}x.props.disabled||(d==="selectedMenu"&&x.props.selected||v===-1)&&(v=k),v===k&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(v+=1,v>=s.length&&(v=-1))});const w=O.Children.map(s,(x,k)=>{if(k===v){const M={};return a&&(M.autoFocus=!0),x.props.tabIndex===void 0&&d==="selectedMenu"&&(M.tabIndex=0),O.cloneElement(x,M)}return x});return R.jsx(fp,{role:"menu",ref:S,className:o,onKeyDown:y,tabIndex:i?0:-1,...p,children:w})});function qb(e){return gt("MuiPopover",e)}at("MuiPopover",["root","paper"]);function sd(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function od(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function ud(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function fs(e){return typeof e=="function"?e():e}const $b=e=>{const{classes:t}=e;return Ye({root:["root"],paper:["paper"]},qb,t)},Wb=le(lp,{name:"MuiPopover",slot:"Root"})({}),gp=le(po,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Yb=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiPopover"}),{action:i,anchorEl:a,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:o,anchorReference:u="anchorEl",children:l,className:c,container:d,elevation:p=8,marginThreshold:f=16,open:b,PaperProps:y={},slots:S={},slotProps:v={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:x,transitionDuration:k="auto",TransitionProps:M={},disableScrollLock:C=!1,...H}=r,z=O.useRef(),V={...r,anchorOrigin:s,anchorReference:u,elevation:p,marginThreshold:f,transformOrigin:w,TransitionComponent:x,transitionDuration:k,TransitionProps:M},P=$b(V),$=O.useCallback(()=>{if(u==="anchorPosition")return o;const Te=fs(a),Ne=(Te&&Te.nodeType===1?Te:fn(z.current).body).getBoundingClientRect();return{top:Ne.top+sd(Ne,s.vertical),left:Ne.left+od(Ne,s.horizontal)}},[a,s.horizontal,s.vertical,o,u]),W=O.useCallback(Te=>({vertical:sd(Te,w.vertical),horizontal:od(Te,w.horizontal)}),[w.horizontal,w.vertical]),G=O.useCallback(Te=>{const De={width:Te.offsetWidth,height:Te.offsetHeight},Ne=W(De);if(u==="none")return{top:null,left:null,transformOrigin:ud(Ne)};const Ke=$();let Re=Ke.top-Ne.vertical,$e=Ke.left-Ne.horizontal;const wt=Re+De.height,ht=$e+De.width,st=sr(fs(a)),Nt=st.innerHeight-f,ot=st.innerWidth-f;if(f!==null&&ReNt){const it=wt-Nt;Re-=it,Ne.vertical+=it}if(f!==null&&$eot){const it=ht-ot;$e-=it,Ne.horizontal+=it}return{top:`${Math.round(Re)}px`,left:`${Math.round($e)}px`,transformOrigin:ud(Ne)}},[a,u,$,W,f]),[q,Y]=O.useState(b),Q=O.useCallback(()=>{const Te=z.current;if(!Te)return;const De=G(Te);De.top!==null&&Te.style.setProperty("top",De.top),De.left!==null&&(Te.style.left=De.left),Te.style.transformOrigin=De.transformOrigin,Y(!0)},[G]);O.useEffect(()=>(C&&window.addEventListener("scroll",Q),()=>window.removeEventListener("scroll",Q)),[a,C,Q]);const ee=()=>{Q()},de=()=>{Y(!1)};O.useEffect(()=>{b&&Q()}),O.useImperativeHandle(i,()=>b?{updatePosition:()=>{Q()}}:null,[b,Q]),O.useEffect(()=>{if(!b)return;const Te=$1(()=>{Q()}),De=sr(fs(a));return De.addEventListener("resize",Te),()=>{Te.clear(),De.removeEventListener("resize",Te)}},[a,b,Q]);let oe=k;const N={slots:{transition:x,...S},slotProps:{transition:M,paper:y,...v}},[Ce,ve]=Et("transition",{elementType:Gs,externalForwardedProps:N,ownerState:V,getSlotProps:Te=>({...Te,onEntering:(De,Ne)=>{Te.onEntering?.(De,Ne),ee()},onExited:De=>{Te.onExited?.(De),de()}}),additionalProps:{appear:!0,in:b}});k==="auto"&&!Ce.muiSupportAuto&&(oe=void 0);const B=d||(a?fn(fs(a)).body:void 0),[xe,{slots:Ie,slotProps:Be,...je}]=Et("root",{ref:n,elementType:Wb,externalForwardedProps:{...N,...H},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:S.backdrop},slotProps:{backdrop:Qg(typeof v.backdrop=="function"?v.backdrop(V):v.backdrop,{invisible:!0})},container:B,open:b},ownerState:V,className:Ve(P.root,c)}),[_e,qe]=Et("paper",{ref:z,className:P.paper,elementType:gp,externalForwardedProps:N,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:q?void 0:{opacity:0}},ownerState:V});return R.jsx(xe,{...je,...!Ca(xe)&&{slots:Ie,slotProps:Be,disableScrollLock:C},children:R.jsx(Ce,{...ve,timeout:oe,children:R.jsx(_e,{...qe,children:l})})})});function Gb(e){return gt("MuiMenu",e)}at("MuiMenu",["root","paper","list"]);const Xb={vertical:"top",horizontal:"right"},Kb={vertical:"top",horizontal:"left"},Qb=e=>{const{classes:t}=e;return Ye({root:["root"],paper:["paper"],list:["list"]},Gb,t)},Zb=le(Yb,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),Jb=le(gp,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),e7=le(jb,{name:"MuiMenu",slot:"List"})({outline:0}),t7=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:o=!1,MenuListProps:u={},onClose:l,open:c,PaperProps:d={},PopoverClasses:p,transitionDuration:f="auto",TransitionProps:{onEntering:b,...y}={},variant:S="selectedMenu",slots:v={},slotProps:w={},...x}=r,k=Yl(),M={...r,autoFocus:i,disableAutoFocusItem:o,MenuListProps:u,onEntering:b,PaperProps:d,transitionDuration:f,TransitionProps:y,variant:S},C=Qb(M),H=i&&!o&&c,z=O.useRef(null),V=(oe,N)=>{z.current&&z.current.adjustStyleForScrollbar(oe,{direction:k?"rtl":"ltr"}),b&&b(oe,N)},P=oe=>{oe.key==="Tab"&&(oe.preventDefault(),l&&l(oe,"tabKeyDown"))};let $=-1;O.Children.map(a,(oe,N)=>{O.isValidElement(oe)&&(oe.props.disabled||(S==="selectedMenu"&&oe.props.selected||$===-1)&&($=N))});const W={slots:v,slotProps:{list:u,transition:y,paper:d,...w}},G=np({elementType:v.root,externalSlotProps:w.root,ownerState:M,className:[C.root,s]}),[q,Y]=Et("paper",{className:C.paper,elementType:Jb,externalForwardedProps:W,shouldForwardComponentProp:!0,ownerState:M}),[Q,ee]=Et("list",{className:Ve(C.list,u.className),elementType:e7,shouldForwardComponentProp:!0,externalForwardedProps:W,getSlotProps:oe=>({...oe,onKeyDown:N=>{P(N),oe.onKeyDown?.(N)}}),ownerState:M}),de=typeof W.slotProps.transition=="function"?W.slotProps.transition(M):W.slotProps.transition;return R.jsx(Zb,{onClose:l,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?Xb:Kb,slots:{root:v.root,paper:q,backdrop:v.backdrop,...v.transition&&{transition:v.transition}},slotProps:{root:G,paper:Y,backdrop:typeof w.backdrop=="function"?w.backdrop(M):w.backdrop,transition:{...de,onEntering:(...oe)=>{V(...oe),de?.onEntering?.(...oe)}}},open:c,ref:n,transitionDuration:f,ownerState:M,...x,classes:p,children:R.jsx(Q,{actions:z,autoFocus:i&&($===-1||o),autoFocusItem:H,variant:S,...ee,children:a})})});function n7(e){return gt("MuiMenuItem",e)}const Yi=at("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),r7=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},i7=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:s}=e,u=Ye({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},n7,s);return{...s,...u}},a7=le(Bg,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:r7})(ct(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Yi.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Yi.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Yi.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Yi.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Yi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Oc.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Oc.inset}`]:{marginLeft:52},[`& .${di.root}`]:{marginTop:0,marginBottom:0},[`& .${di.inset}`]:{paddingLeft:36},[`& .${Lc.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Lc.root} svg`]:{fontSize:"1.25rem"}}}]}))),s7=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:s=!1,divider:o=!1,disableGutters:u=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:d,className:p,...f}=r,b=O.useContext(nr),y=O.useMemo(()=>({dense:s||b.dense||!1,disableGutters:u}),[b.dense,s,u]),S=O.useRef(null);ar(()=>{i&&S.current&&S.current.focus()},[i]);const v={...r,dense:y.dense,divider:o,disableGutters:u},w=i7(r),x=Vt(S,n);let k;return r.disabled||(k=d!==void 0?d:-1),R.jsx(nr.Provider,{value:y,children:R.jsx(a7,{ref:x,role:c,tabIndex:k,component:a,focusVisibleClassName:Ve(w.focusVisible,l),className:Ve(w.root,p),...f,ownerState:v,classes:w})})});function o7(e){return gt("MuiNativeSelect",e)}const o0=at("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),u7=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${St(n)}`,a&&"iconOpen",r&&"disabled"]};return Ye(o,o7,t)},bp=le("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${o0.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),l7=le(bp,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Wn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${o0.multiple}`]:t.multiple}]}})({}),yp=le("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${o0.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),c7=le(yp,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${St(n.variant)}`],n.open&&t.iconOpen]}})({}),d7=O.forwardRef(function(t,n){const{className:r,disabled:i,error:a,IconComponent:s,inputRef:o,variant:u="standard",...l}=t,c={...t,disabled:i,variant:u,error:a},d=u7(c);return R.jsxs(O.Fragment,{children:[R.jsx(l7,{ownerState:c,className:Ve(d.select,r),disabled:i,ref:o||n,...l}),t.multiple?null:R.jsx(c7,{as:s,ownerState:c,className:d.icon})]})});var ld;const h7=le("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Wn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),f7=le("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Wn})(ct(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function p7(e){const{children:t,classes:n,className:r,label:i,notched:a,...s}=e,o=i!=null&&i!=="",u={...e,notched:a,withLabel:o};return R.jsx(h7,{"aria-hidden":!0,className:r,ownerState:u,...s,children:R.jsx(f7,{ownerState:u,children:o?R.jsx("span",{children:i}):ld||(ld=R.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const m7=e=>{const{classes:t}=e,r=Ye({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Fg,t);return{...t,...r}},g7=le(yo,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:go})(ct(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ln.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ln.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ln.focused} .${Ln.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Kl()).map(([n])=>({props:{color:n},style:{[`&.${Ln.focused} .${Ln.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Ln.error} .${Ln.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ln.disabled} .${Ln.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),b7=le(p7,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(ct(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),y7=le(vo,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:bo})(ct(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),vp=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:s="input",label:o,multiline:u=!1,notched:l,slots:c={},slotProps:d={},type:p="text",...f}=r,b=m7(r),y=a0(),S=i0({props:r,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...r,color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:y,fullWidth:a,hiddenLabel:S.hiddenLabel,multiline:u,size:S.size,type:p},w=c.root??i.Root??g7,x=c.input??i.Input??y7,[k,M]=Et("notchedOutline",{elementType:b7,className:b.notchedOutline,shouldForwardComponentProp:!0,ownerState:v,externalForwardedProps:{slots:c,slotProps:d},additionalProps:{label:o!=null&&o!==""&&S.required?R.jsxs(O.Fragment,{children:[o," ","*"]}):o}});return R.jsx(s0,{slots:{root:w,input:x},slotProps:d,renderSuffix:C=>R.jsx(k,{...M,notched:typeof l<"u"?l:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:a,inputComponent:s,multiline:u,ref:n,type:p,...f,classes:{...b,notchedOutline:null}})});vp.muiName="Input";function Tp(e){return gt("MuiSelect",e)}const Gi=at("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var cd;const v7=le(bp,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Gi.select}`]:t.select},{[`&.${Gi.select}`]:t[n.variant]},{[`&.${Gi.error}`]:t.error},{[`&.${Gi.multiple}`]:t.multiple}]}})({[`&.${Gi.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),T7=le(yp,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${St(n.variant)}`],n.open&&t.iconOpen]}})({}),x7=le("input",{shouldForwardProp:e=>Hg(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function dd(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function E7(e){return e==null||typeof e=="string"&&!e.trim()}const S7=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${St(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ye(o,Tp,t)},w7=O.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":i,autoFocus:a,autoWidth:s,children:o,className:u,defaultOpen:l,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:b,inputRef:y,labelId:S,MenuProps:v={},multiple:w,name:x,onBlur:k,onChange:M,onClose:C,onFocus:H,onOpen:z,open:V,readOnly:P,renderValue:$,required:W,SelectDisplayProps:G={},tabIndex:q,type:Y,value:Q,variant:ee="standard",...de}=t,[oe,N]=ju({controlled:Q,default:c,name:"Select"}),[Ce,ve]=ju({controlled:V,default:l,name:"Select"}),B=O.useRef(null),xe=O.useRef(null),[Ie,Be]=O.useState(null),{current:je}=O.useRef(V!=null),[_e,qe]=O.useState(),Te=Vt(n,y),De=O.useCallback(pe=>{xe.current=pe,pe&&Be(pe)},[]),Ne=Ie?.parentNode;O.useImperativeHandle(Te,()=>({focus:()=>{xe.current.focus()},node:B.current,value:oe}),[oe]),O.useEffect(()=>{l&&Ce&&Ie&&!je&&(qe(s?null:Ne.clientWidth),xe.current.focus())},[Ie,s]),O.useEffect(()=>{a&&xe.current.focus()},[a]),O.useEffect(()=>{if(!S)return;const pe=fn(xe.current).getElementById(S);if(pe){const ke=()=>{getSelection().isCollapsed&&xe.current.focus()};return pe.addEventListener("click",ke),()=>{pe.removeEventListener("click",ke)}}},[S]);const Ke=(pe,ke)=>{pe?z&&z(ke):C&&C(ke),je||(qe(s?null:Ne.clientWidth),ve(pe))},Re=pe=>{pe.button===0&&(pe.preventDefault(),xe.current.focus(),Ke(!0,pe))},$e=pe=>{Ke(!1,pe)},wt=O.Children.toArray(o),ht=pe=>{const ke=wt.find(et=>et.props.value===pe.target.value);ke!==void 0&&(N(ke.props.value),M&&M(pe,ke))},st=pe=>ke=>{let et;if(ke.currentTarget.hasAttribute("tabindex")){if(w){et=Array.isArray(oe)?oe.slice():[];const At=oe.indexOf(pe.props.value);At===-1?et.push(pe.props.value):et.splice(At,1)}else et=pe.props.value;if(pe.props.onClick&&pe.props.onClick(ke),oe!==et&&(N(et),M)){const At=ke.nativeEvent||ke,os=new At.constructor(At.type,At);Object.defineProperty(os,"target",{writable:!0,value:{value:et,name:x}}),M(os,pe)}w||Ke(!1,ke)}},Nt=pe=>{P||[" ","ArrowUp","ArrowDown","Enter"].includes(pe.key)&&(pe.preventDefault(),Ke(!0,pe))},ot=Ie!==null&&Ce,it=pe=>{!ot&&k&&(Object.defineProperty(pe,"target",{writable:!0,value:{value:oe,name:x}}),k(pe))};delete de["aria-invalid"];let Ht,Kt;const bt=[];let on=!1;(sp({value:oe})||p)&&($?Ht=$(oe):on=!0);const K=wt.map(pe=>{if(!O.isValidElement(pe))return null;let ke;if(w){if(!Array.isArray(oe))throw new Error(F1(2));ke=oe.some(et=>dd(et,pe.props.value)),ke&&on&&bt.push(pe.props.children)}else ke=dd(oe,pe.props.value),ke&&on&&(Kt=pe.props.children);return O.cloneElement(pe,{"aria-selected":ke?"true":"false",onClick:st(pe),onKeyUp:et=>{et.key===" "&&et.preventDefault(),pe.props.onKeyUp&&pe.props.onKeyUp(et)},role:"option",selected:ke,value:void 0,"data-value":pe.props.value})});on&&(w?bt.length===0?Ht=null:Ht=bt.reduce((pe,ke,et)=>(pe.push(ke),et{const{classes:t}=e,r=Ye({root:["root"]},Tp,t);return{...t,...r}},u0={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Wn(e)&&e!=="variant"},C7=le(hp,u0)(""),k7=le(vp,u0)(""),I7=le(dp,u0)(""),xp=O.forwardRef(function(t,n){const r=Ge({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:s={},className:o,defaultOpen:u=!1,displayEmpty:l=!1,IconComponent:c=T5,id:d,input:p,inputProps:f,label:b,labelId:y,MenuProps:S,multiple:v=!1,native:w=!1,onClose:x,onOpen:k,open:M,renderValue:C,SelectDisplayProps:H,variant:z="outlined",...V}=r,P=w?d7:w7,$=a0(),W=i0({props:r,muiFormControl:$,states:["variant","error"]}),G=W.variant||z,q={...r,variant:G,classes:s},Y=A7(q),{root:Q,...ee}=Y,de=p||{standard:R.jsx(C7,{ownerState:q}),outlined:R.jsx(k7,{label:b,ownerState:q}),filled:R.jsx(I7,{ownerState:q})}[G],oe=Vt(n,Mi(de));return R.jsx(O.Fragment,{children:O.cloneElement(de,{inputComponent:P,inputProps:{children:a,error:W.error,IconComponent:c,variant:G,type:void 0,multiple:v,...w?{id:d}:{autoWidth:i,defaultOpen:u,displayEmpty:l,labelId:y,MenuProps:S,onClose:x,onOpen:k,open:M,renderValue:C,SelectDisplayProps:{id:d,...H}},...f,classes:f?Xl(ee,f.classes):ee,...p?p.props.inputProps:{}},...(v&&w||l)&&G==="outlined"?{notched:!0}:{},ref:oe,className:Ve(de.props.className,o,Y.root),...!p&&{variant:G},...V})})});xp.muiName="Select";function N7(e){return gt("MuiSkeleton",e)}at("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const R7=e=>{const{classes:t,variant:n,animation:r,hasChildren:i,width:a,height:s}=e;return Ye({root:["root",n,r,i&&"withChildren",i&&!a&&"fitContent",i&&!s&&"heightAuto"]},N7,t)},Qu=z1` +import{y as mg,z as gg,r as O,C as bg,D as yg,j as M,c as Ve,_ as vg,R as us,E as Tg,F as ls,G as B1,H as xg,J as Eg,k as Vt,K as Sg,M as ar,N as wg,a as gt,g as at,d as Ye,O as Yl,u as Ge,s as le,P as Aa,Q as Ag,U as Ca,m as ct,V as ka,b as St,W as Cg,X as F1,Y as kg,Z as Va,w as Et,$ as Ig,a0 as Ng,a1 as Rg,a2 as Mg,a3 as po,v as Gl,a4 as Dg,a5 as Pg,T as Xe,q as Wn,a6 as Lg,a7 as Og,a8 as Xl,h as Kl,a9 as ra,aa as _g,ab as Pc,B as Bg,ac as Lc,ad as Oc,ae as Fg,af as Ln,ag as Hg,ah as H1,ai as z1,aj as zg,ak as _c,al as Ug,am as Vg,an as jg,ao as Bc,i as In,ap as qg,aq as Fc,ar as $g,as as Hc,at as Ls,I as Kr,au as U1,p as V1,n as ja,S as Qe,l as $s,av as j1,x as q1}from"./index-CKPnC4Q3.js";function Wg(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,a=mg("div",{shouldForwardProp:o=>o!=="theme"&&o!=="sx"&&o!=="as"})(gg);return O.forwardRef(function(u,l){const c=bg(n),{className:d,component:p="div",...f}=yg(u);return M.jsx(a,{as:p,ref:l,className:Ve(d,i?i(r):r),theme:t&&c[t]||c,...f})})}function Yg(e,t){return O.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function Gg(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Xg(e){return parseFloat(e)}function zc(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function $1(e,t=166){let n;function r(...i){const a=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function fn(e){return e&&e.ownerDocument||document}function sr(e){return fn(e).defaultView||window}function Uc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function ju(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:a}=O.useRef(t!==void 0),[s,o]=O.useState(n),u=a?t:s,l=O.useCallback(c=>{a||o(c)},[]);return[u,l]}function Kg(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Qg(e,t){if(!e)return t;function n(s,o){const u={};return Object.keys(o).forEach(l=>{Kg(l,o[l])&&typeof s[l]=="function"&&(u[l]=(...c)=>{s[l](...c),o[l](...c)})}),u}if(typeof e=="function"||typeof t=="function")return s=>{const o=typeof t=="function"?t(s):t,u=typeof e=="function"?e({...s,...o}):e,l=Ve(s?.className,o?.className,u?.className),c=n(u,o);return{...o,...u,...c,...!!l&&{className:l},...o?.style&&u?.style&&{style:{...o.style,...u.style}},...o?.sx&&u?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,i=n(e,r),a=Ve(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const Vc={disabled:!1};var Zg=function(t){return t.scrollTop},ia="unmounted",Ur="exited",Vr="entering",li="entered",qu="exiting",Yn=(function(e){vg(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=i,o=s&&!s.isMounting?r.enter:r.appear,u;return a.appearStatus=null,r.in?o?(u=Ur,a.appearStatus=Vr):u=li:r.unmountOnExit||r.mountOnEnter?u=ia:u=Ur,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===ia?{status:Ur}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Vr&&s!==li&&(a=Vr):(s===Vr||s===li)&&(a=qu)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,s,o;return a=s=o=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,o=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:o}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Vr){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:us.findDOMNode(this);s&&Zg(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ur&&this.setState({status:ia})},n.performEnter=function(i){var a=this,s=this.props.enter,o=this.context?this.context.isMounting:i,u=this.props.nodeRef?[o]:[us.findDOMNode(this),o],l=u[0],c=u[1],d=this.getTimeouts(),p=o?d.appear:d.enter;if(!i&&!s||Vc.disabled){this.safeSetState({status:li},function(){a.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:Vr},function(){a.props.onEntering(l,c),a.onTransitionEnd(p,function(){a.safeSetState({status:li},function(){a.props.onEntered(l,c)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:us.findDOMNode(this);if(!a||Vc.disabled){this.safeSetState({status:Ur},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:qu},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Ur},function(){i.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,a.nextCallback=null,i(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:us.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===ia)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var o=Tg(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ls.createElement(B1.Provider,{value:null},typeof s=="function"?s(i,o):ls.cloneElement(ls.Children.only(s),o))},t})(ls.Component);Yn.contextType=B1;Yn.propTypes={};function ai(){}Yn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ai,onEntering:ai,onEntered:ai,onExit:ai,onExiting:ai,onExited:ai};Yn.UNMOUNTED=ia;Yn.EXITED=Ur;Yn.ENTERING=Vr;Yn.ENTERED=li;Yn.EXITING=qu;const W1=e=>e.scrollTop;function Ws(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}var nn="top",wn="bottom",An="right",rn="left",Ql="auto",qa=[nn,wn,An,rn],Ei="start",Ia="end",Jg="clippingParents",Y1="viewport",qi="popper",e6="reference",jc=qa.reduce(function(e,t){return e.concat([t+"-"+Ei,t+"-"+Ia])},[]),G1=[].concat(qa,[Ql]).reduce(function(e,t){return e.concat([t,t+"-"+Ei,t+"-"+Ia])},[]),t6="beforeRead",n6="read",r6="afterRead",i6="beforeMain",a6="main",s6="afterMain",o6="beforeWrite",u6="write",l6="afterWrite",c6=[t6,n6,r6,i6,a6,s6,o6,u6,l6];function $n(e){return e?(e.nodeName||"").toLowerCase():null}function pn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Qr(e){var t=pn(e).Element;return e instanceof t||e instanceof Element}function xn(e){var t=pn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Zl(e){if(typeof ShadowRoot>"u")return!1;var t=pn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function d6(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!xn(a)||!$n(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(s){var o=i[s];o===!1?a.removeAttribute(s):a.setAttribute(s,o===!0?"":o)}))})}function h6(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),o=s.reduce(function(u,l){return u[l]="",u},{});!xn(i)||!$n(i)||(Object.assign(i.style,o),Object.keys(a).forEach(function(u){i.removeAttribute(u)}))})}}const f6={name:"applyStyles",enabled:!0,phase:"write",fn:d6,effect:h6,requires:["computeStyles"]};function Un(e){return e.split("-")[0]}var Wr=Math.max,Ys=Math.min,Si=Math.round;function $u(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function X1(){return!/^((?!chrome|android).)*safari/i.test($u())}function wi(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&xn(e)&&(i=e.offsetWidth>0&&Si(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Si(r.height)/e.offsetHeight||1);var s=Qr(e)?pn(e):window,o=s.visualViewport,u=!X1()&&n,l=(r.left+(u&&o?o.offsetLeft:0))/i,c=(r.top+(u&&o?o.offsetTop:0))/a,d=r.width/i,p=r.height/a;return{width:d,height:p,top:c,right:l+d,bottom:c+p,left:l,x:l,y:c}}function Jl(e){var t=wi(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function K1(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Zl(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function or(e){return pn(e).getComputedStyle(e)}function p6(e){return["table","td","th"].indexOf($n(e))>=0}function Mr(e){return((Qr(e)?e.ownerDocument:e.document)||window.document).documentElement}function mo(e){return $n(e)==="html"?e:e.assignedSlot||e.parentNode||(Zl(e)?e.host:null)||Mr(e)}function qc(e){return!xn(e)||or(e).position==="fixed"?null:e.offsetParent}function m6(e){var t=/firefox/i.test($u()),n=/Trident/i.test($u());if(n&&xn(e)){var r=or(e);if(r.position==="fixed")return null}var i=mo(e);for(Zl(i)&&(i=i.host);xn(i)&&["html","body"].indexOf($n(i))<0;){var a=or(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function $a(e){for(var t=pn(e),n=qc(e);n&&p6(n)&&or(n).position==="static";)n=qc(n);return n&&($n(n)==="html"||$n(n)==="body"&&or(n).position==="static")?t:n||m6(e)||t}function e0(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ua(e,t,n){return Wr(e,Ys(t,n))}function g6(e,t,n){var r=ua(e,t,n);return r>n?n:r}function Q1(){return{top:0,right:0,bottom:0,left:0}}function Z1(e){return Object.assign({},Q1(),e)}function J1(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var b6=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Z1(typeof t!="number"?t:J1(t,qa))};function y6(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,o=Un(n.placement),u=e0(o),l=[rn,An].indexOf(o)>=0,c=l?"height":"width";if(!(!a||!s)){var d=b6(i.padding,n),p=Jl(a),f=u==="y"?nn:rn,b=u==="y"?wn:An,y=n.rects.reference[c]+n.rects.reference[u]-s[u]-n.rects.popper[c],S=s[u]-n.rects.reference[u],v=$a(a),w=v?u==="y"?v.clientHeight||0:v.clientWidth||0:0,x=y/2-S/2,k=d[f],R=w-p[c]-d[b],C=w/2-p[c]/2+x,H=ua(k,C,R),z=u;n.modifiersData[r]=(t={},t[z]=H,t.centerOffset=H-C,t)}}function v6(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||K1(t.elements.popper,i)&&(t.elements.arrow=i))}const T6={name:"arrow",enabled:!0,phase:"main",fn:y6,effect:v6,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ai(e){return e.split("-")[1]}var x6={top:"auto",right:"auto",bottom:"auto",left:"auto"};function E6(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Si(n*i)/i||0,y:Si(r*i)/i||0}}function $c(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,o=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=s.x,f=p===void 0?0:p,b=s.y,y=b===void 0?0:b,S=typeof c=="function"?c({x:f,y}):{x:f,y};f=S.x,y=S.y;var v=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),x=rn,k=nn,R=window;if(l){var C=$a(n),H="clientHeight",z="clientWidth";if(C===pn(n)&&(C=Mr(n),or(C).position!=="static"&&o==="absolute"&&(H="scrollHeight",z="scrollWidth")),C=C,i===nn||(i===rn||i===An)&&a===Ia){k=wn;var V=d&&C===R&&R.visualViewport?R.visualViewport.height:C[H];y-=V-r.height,y*=u?1:-1}if(i===rn||(i===nn||i===wn)&&a===Ia){x=An;var P=d&&C===R&&R.visualViewport?R.visualViewport.width:C[z];f-=P-r.width,f*=u?1:-1}}var $=Object.assign({position:o},l&&x6),W=c===!0?E6({x:f,y},pn(n)):{x:f,y};if(f=W.x,y=W.y,u){var G;return Object.assign({},$,(G={},G[k]=w?"0":"",G[x]=v?"0":"",G.transform=(R.devicePixelRatio||1)<=1?"translate("+f+"px, "+y+"px)":"translate3d("+f+"px, "+y+"px, 0)",G))}return Object.assign({},$,(t={},t[k]=w?y+"px":"",t[x]=v?f+"px":"",t.transform="",t))}function S6(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,o=n.roundOffsets,u=o===void 0?!0:o,l={placement:Un(t.placement),variation:Ai(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,$c(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,$c(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const w6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:S6,data:{}};var cs={passive:!0};function A6(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,s=r.resize,o=s===void 0?!0:s,u=pn(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(c){c.addEventListener("scroll",n.update,cs)}),o&&u.addEventListener("resize",n.update,cs),function(){a&&l.forEach(function(c){c.removeEventListener("scroll",n.update,cs)}),o&&u.removeEventListener("resize",n.update,cs)}}const C6={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:A6,data:{}};var k6={left:"right",right:"left",bottom:"top",top:"bottom"};function Os(e){return e.replace(/left|right|bottom|top/g,function(t){return k6[t]})}var I6={start:"end",end:"start"};function Wc(e){return e.replace(/start|end/g,function(t){return I6[t]})}function t0(e){var t=pn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function n0(e){return wi(Mr(e)).left+t0(e).scrollLeft}function N6(e,t){var n=pn(e),r=Mr(e),i=n.visualViewport,a=r.clientWidth,s=r.clientHeight,o=0,u=0;if(i){a=i.width,s=i.height;var l=X1();(l||!l&&t==="fixed")&&(o=i.offsetLeft,u=i.offsetTop)}return{width:a,height:s,x:o+n0(e),y:u}}function R6(e){var t,n=Mr(e),r=t0(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Wr(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Wr(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-r.scrollLeft+n0(e),u=-r.scrollTop;return or(i||n).direction==="rtl"&&(o+=Wr(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:o,y:u}}function r0(e){var t=or(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function ep(e){return["html","body","#document"].indexOf($n(e))>=0?e.ownerDocument.body:xn(e)&&r0(e)?e:ep(mo(e))}function la(e,t){var n;t===void 0&&(t=[]);var r=ep(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=pn(r),s=i?[a].concat(a.visualViewport||[],r0(r)?r:[]):r,o=t.concat(s);return i?o:o.concat(la(mo(s)))}function Wu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function M6(e,t){var n=wi(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Yc(e,t,n){return t===Y1?Wu(N6(e,n)):Qr(t)?M6(t,n):Wu(R6(Mr(e)))}function D6(e){var t=la(mo(e)),n=["absolute","fixed"].indexOf(or(e).position)>=0,r=n&&xn(e)?$a(e):e;return Qr(r)?t.filter(function(i){return Qr(i)&&K1(i,r)&&$n(i)!=="body"}):[]}function P6(e,t,n,r){var i=t==="clippingParents"?D6(e):[].concat(t),a=[].concat(i,[n]),s=a[0],o=a.reduce(function(u,l){var c=Yc(e,l,r);return u.top=Wr(c.top,u.top),u.right=Ys(c.right,u.right),u.bottom=Ys(c.bottom,u.bottom),u.left=Wr(c.left,u.left),u},Yc(e,s,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function tp(e){var t=e.reference,n=e.element,r=e.placement,i=r?Un(r):null,a=r?Ai(r):null,s=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,u;switch(i){case nn:u={x:s,y:t.y-n.height};break;case wn:u={x:s,y:t.y+t.height};break;case An:u={x:t.x+t.width,y:o};break;case rn:u={x:t.x-n.width,y:o};break;default:u={x:t.x,y:t.y}}var l=i?e0(i):null;if(l!=null){var c=l==="y"?"height":"width";switch(a){case Ei:u[l]=u[l]-(t[c]/2-n[c]/2);break;case Ia:u[l]=u[l]+(t[c]/2-n[c]/2);break}}return u}function Na(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,o=n.boundary,u=o===void 0?Jg:o,l=n.rootBoundary,c=l===void 0?Y1:l,d=n.elementContext,p=d===void 0?qi:d,f=n.altBoundary,b=f===void 0?!1:f,y=n.padding,S=y===void 0?0:y,v=Z1(typeof S!="number"?S:J1(S,qa)),w=p===qi?e6:qi,x=e.rects.popper,k=e.elements[b?w:p],R=P6(Qr(k)?k:k.contextElement||Mr(e.elements.popper),u,c,s),C=wi(e.elements.reference),H=tp({reference:C,element:x,placement:i}),z=Wu(Object.assign({},x,H)),V=p===qi?z:C,P={top:R.top-V.top+v.top,bottom:V.bottom-R.bottom+v.bottom,left:R.left-V.left+v.left,right:V.right-R.right+v.right},$=e.modifiersData.offset;if(p===qi&&$){var W=$[i];Object.keys(P).forEach(function(G){var q=[An,wn].indexOf(G)>=0?1:-1,Y=[nn,wn].indexOf(G)>=0?"y":"x";P[G]+=W[Y]*q})}return P}function L6(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,s=n.padding,o=n.flipVariations,u=n.allowedAutoPlacements,l=u===void 0?G1:u,c=Ai(r),d=c?o?jc:jc.filter(function(b){return Ai(b)===c}):qa,p=d.filter(function(b){return l.indexOf(b)>=0});p.length===0&&(p=d);var f=p.reduce(function(b,y){return b[y]=Na(e,{placement:y,boundary:i,rootBoundary:a,padding:s})[Un(y)],b},{});return Object.keys(f).sort(function(b,y){return f[b]-f[y]})}function O6(e){if(Un(e)===Ql)return[];var t=Os(e);return[Wc(e),t,Wc(t)]}function _6(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!0:s,u=n.fallbackPlacements,l=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,b=f===void 0?!0:f,y=n.allowedAutoPlacements,S=t.options.placement,v=Un(S),w=v===S,x=u||(w||!b?[Os(S)]:O6(S)),k=[S].concat(x).reduce(function(xe,Ie){return xe.concat(Un(Ie)===Ql?L6(t,{placement:Ie,boundary:c,rootBoundary:d,padding:l,flipVariations:b,allowedAutoPlacements:y}):Ie)},[]),R=t.rects.reference,C=t.rects.popper,H=new Map,z=!0,V=k[0],P=0;P=0,Y=q?"width":"height",Q=Na(t,{placement:$,boundary:c,rootBoundary:d,altBoundary:p,padding:l}),ee=q?G?An:rn:G?wn:nn;R[Y]>C[Y]&&(ee=Os(ee));var de=Os(ee),oe=[];if(a&&oe.push(Q[W]<=0),o&&oe.push(Q[ee]<=0,Q[de]<=0),oe.every(function(xe){return xe})){V=$,z=!1;break}H.set($,oe)}if(z)for(var N=b?3:1,Ce=function(Ie){var Be=k.find(function(je){var _e=H.get(je);if(_e)return _e.slice(0,Ie).every(function(qe){return qe})});if(Be)return V=Be,"break"},ve=N;ve>0;ve--){var B=Ce(ve);if(B==="break")break}t.placement!==V&&(t.modifiersData[r]._skip=!0,t.placement=V,t.reset=!0)}}const B6={name:"flip",enabled:!0,phase:"main",fn:_6,requiresIfExists:["offset"],data:{_skip:!1}};function Gc(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Xc(e){return[nn,An,wn,rn].some(function(t){return e[t]>=0})}function F6(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,s=Na(t,{elementContext:"reference"}),o=Na(t,{altBoundary:!0}),u=Gc(s,r),l=Gc(o,i,a),c=Xc(u),d=Xc(l);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const H6={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:F6};function z6(e,t,n){var r=Un(e),i=[rn,nn].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],o=a[1];return s=s||0,o=(o||0)*i,[rn,An].indexOf(r)>=0?{x:o,y:s}:{x:s,y:o}}function U6(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,s=G1.reduce(function(c,d){return c[d]=z6(d,t.rects,a),c},{}),o=s[t.placement],u=o.x,l=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=s}const V6={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:U6};function j6(e){var t=e.state,n=e.name;t.modifiersData[n]=tp({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const q6={name:"popperOffsets",enabled:!0,phase:"read",fn:j6,data:{}};function $6(e){return e==="x"?"y":"x"}function W6(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!1:s,u=n.boundary,l=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,f=p===void 0?!0:p,b=n.tetherOffset,y=b===void 0?0:b,S=Na(t,{boundary:u,rootBoundary:l,padding:d,altBoundary:c}),v=Un(t.placement),w=Ai(t.placement),x=!w,k=e0(v),R=$6(k),C=t.modifiersData.popperOffsets,H=t.rects.reference,z=t.rects.popper,V=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,P=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(C){if(a){var G,q=k==="y"?nn:rn,Y=k==="y"?wn:An,Q=k==="y"?"height":"width",ee=C[k],de=ee+S[q],oe=ee-S[Y],N=f?-z[Q]/2:0,Ce=w===Ei?H[Q]:z[Q],ve=w===Ei?-z[Q]:-H[Q],B=t.elements.arrow,xe=f&&B?Jl(B):{width:0,height:0},Ie=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Q1(),Be=Ie[q],je=Ie[Y],_e=ua(0,H[Q],xe[Q]),qe=x?H[Q]/2-N-_e-Be-P.mainAxis:Ce-_e-Be-P.mainAxis,Te=x?-H[Q]/2+N+_e+je+P.mainAxis:ve+_e+je+P.mainAxis,De=t.elements.arrow&&$a(t.elements.arrow),Ne=De?k==="y"?De.clientTop||0:De.clientLeft||0:0,Ke=(G=$?.[k])!=null?G:0,Re=ee+qe-Ke-Ne,$e=ee+Te-Ke,wt=ua(f?Ys(de,Re):de,ee,f?Wr(oe,$e):oe);C[k]=wt,W[k]=wt-ee}if(o){var ht,st=k==="x"?nn:rn,Nt=k==="x"?wn:An,ot=C[R],it=R==="y"?"height":"width",Ht=ot+S[st],Kt=ot-S[Nt],bt=[nn,rn].indexOf(v)!==-1,on=(ht=$?.[R])!=null?ht:0,K=bt?Ht:ot-H[it]-z[it]-on+P.altAxis,ie=bt?ot+H[it]+z[it]-on-P.altAxis:Kt,me=f&&bt?g6(K,ot,ie):ua(f?K:Ht,ot,f?ie:Kt);C[R]=me,W[R]=me-ot}t.modifiersData[r]=W}}const Y6={name:"preventOverflow",enabled:!0,phase:"main",fn:W6,requiresIfExists:["offset"]};function G6(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function X6(e){return e===pn(e)||!xn(e)?t0(e):G6(e)}function K6(e){var t=e.getBoundingClientRect(),n=Si(t.width)/e.offsetWidth||1,r=Si(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Q6(e,t,n){n===void 0&&(n=!1);var r=xn(t),i=xn(t)&&K6(t),a=Mr(t),s=wi(e,i,n),o={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(($n(t)!=="body"||r0(a))&&(o=X6(t)),xn(t)?(u=wi(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=n0(a))),{x:s.left+o.scrollLeft-u.x,y:s.top+o.scrollTop-u.y,width:s.width,height:s.height}}function Z6(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(o){if(!n.has(o)){var u=t.get(o);u&&i(u)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function J6(e){var t=Z6(e);return c6.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function e5(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function t5(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Kc={placement:"bottom",modifiers:[],strategy:"absolute"};function Qc(){for(var e=arguments.length,t=new Array(e),n=0;n=19?e?.props?.ref||null:e?.ref||null}function a5(e){return typeof e=="function"?e():e}const rp=O.forwardRef(function(t,n){const{children:r,container:i,disablePortal:a=!1}=t,[s,o]=O.useState(null),u=Vt(O.isValidElement(r)?Mi(r):null,n);if(ar(()=>{a||o(a5(i)||document.body)},[i,a]),ar(()=>{if(s&&!a)return Uc(n,s),()=>{Uc(n,null)}},[n,s,a]),a){if(O.isValidElement(r)){const l={ref:u};return O.cloneElement(r,l)}return r}return s&&wg.createPortal(r,s)});function s5(e){return gt("MuiPopper",e)}at("MuiPopper",["root"]);function o5(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Yu(e){return typeof e=="function"?e():e}function u5(e){return e.nodeType!==void 0}const l5=e=>{const{classes:t}=e;return Ye({root:["root"]},s5,t)},c5={},d5=O.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:a,disablePortal:s,modifiers:o,open:u,placement:l,popperOptions:c,popperRef:d,slotProps:p={},slots:f={},TransitionProps:b,ownerState:y,...S}=t,v=O.useRef(null),w=Vt(v,n),x=O.useRef(null),k=Vt(x,d),R=O.useRef(k);ar(()=>{R.current=k},[k]),O.useImperativeHandle(d,()=>x.current,[]);const C=o5(l,a),[H,z]=O.useState(C),[V,P]=O.useState(Yu(r));O.useEffect(()=>{x.current&&x.current.forceUpdate()}),O.useEffect(()=>{r&&P(Yu(r))},[r]),ar(()=>{if(!V||!u)return;const Y=de=>{z(de.placement)};let Q=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:de})=>{Y(de)}}];o!=null&&(Q=Q.concat(o)),c&&c.modifiers!=null&&(Q=Q.concat(c.modifiers));const ee=i5(V,v.current,{placement:C,...c,modifiers:Q});return R.current(ee),()=>{ee.destroy(),R.current(null)}},[V,s,o,u,c,C]);const $={placement:H};b!==null&&($.TransitionProps=b);const W=l5(t),G=f.root??"div",q=np({elementType:G,externalSlotProps:p.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:W.root});return M.jsx(G,{...q,children:typeof i=="function"?i($):i})}),h5=O.forwardRef(function(t,n){const{anchorEl:r,children:i,container:a,direction:s="ltr",disablePortal:o=!1,keepMounted:u=!1,modifiers:l,open:c,placement:d="bottom",popperOptions:p=c5,popperRef:f,style:b,transition:y=!1,slotProps:S={},slots:v={},...w}=t,[x,k]=O.useState(!0),R=()=>{k(!1)},C=()=>{k(!0)};if(!u&&!c&&(!y||x))return null;let H;if(a)H=a;else if(r){const P=Yu(r);H=P&&u5(P)?fn(P).body:fn(null).body}const z=!c&&u&&(!y||x)?"none":void 0,V=y?{in:c,onEnter:R,onExited:C}:void 0;return M.jsx(rp,{disablePortal:o,container:H,children:M.jsx(d5,{anchorEl:r,direction:s,disablePortal:o,modifiers:l,ref:n,open:y?!x:c,placement:d,popperOptions:p,popperRef:f,slotProps:S,slots:v,...w,style:{position:"fixed",top:0,left:0,display:z,...b},TransitionProps:V,children:i})})}),f5=le(h5,{name:"MuiPopper",slot:"Root"})({}),ip=O.forwardRef(function(t,n){const r=Yl(),i=Ge({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:o,componentsProps:u,container:l,disablePortal:c,keepMounted:d,modifiers:p,open:f,placement:b,popperOptions:y,popperRef:S,transition:v,slots:w,slotProps:x,...k}=i,R=w?.root??o?.Root,C={anchorEl:a,container:l,disablePortal:c,keepMounted:d,modifiers:p,open:f,placement:b,popperOptions:y,popperRef:S,transition:v,...k};return M.jsx(f5,{as:s,direction:r?"rtl":"ltr",slots:{root:R},slotProps:x??u,...C,ref:n})});function ds(e){return parseInt(e,10)||0}const p5={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function m5(e){for(const t in e)return!1;return!0}function Zc(e){return m5(e)||e.outerHeightStyle===0&&!e.overflowing}const g5=O.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:a=1,style:s,value:o,...u}=t,{current:l}=O.useRef(o!=null),c=O.useRef(null),d=Vt(n,c),p=O.useRef(null),f=O.useRef(null),b=O.useCallback(()=>{const x=c.current,k=f.current;if(!x||!k)return;const C=sr(x).getComputedStyle(x);if(C.width==="0px")return{outerHeightStyle:0,overflowing:!1};k.style.width=C.width,k.value=x.value||t.placeholder||"x",k.value.slice(-1)===` +`&&(k.value+=" ");const H=C.boxSizing,z=ds(C.paddingBottom)+ds(C.paddingTop),V=ds(C.borderBottomWidth)+ds(C.borderTopWidth),P=k.scrollHeight;k.value="x";const $=k.scrollHeight;let W=P;a&&(W=Math.max(Number(a)*$,W)),i&&(W=Math.min(Number(i)*$,W)),W=Math.max(W,$);const G=W+(H==="border-box"?z+V:0),q=Math.abs(W-P)<=1;return{outerHeightStyle:G,overflowing:q}},[i,a,t.placeholder]),y=Aa(()=>{const x=c.current,k=b();if(!x||!k||Zc(k))return!1;const R=k.outerHeightStyle;return p.current!=null&&p.current!==R}),S=O.useCallback(()=>{const x=c.current,k=b();if(!x||!k||Zc(k))return;const R=k.outerHeightStyle;p.current!==R&&(p.current=R,x.style.height=`${R}px`),x.style.overflow=k.overflowing?"hidden":""},[b]),v=O.useRef(-1);ar(()=>{const x=$1(S),k=c?.current;if(!k)return;const R=sr(k);R.addEventListener("resize",x);let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(()=>{y()&&(C.unobserve(k),cancelAnimationFrame(v.current),S(),v.current=requestAnimationFrame(()=>{C.observe(k)}))}),C.observe(k)),()=>{x.clear(),cancelAnimationFrame(v.current),R.removeEventListener("resize",x),C&&C.disconnect()}},[b,S,y]),ar(()=>{S()});const w=x=>{l||S();const k=x.target,R=k.value.length,C=k.value.endsWith(` +`),H=k.selectionStart===R;C&&H&&k.setSelectionRange(R,R),r&&r(x)};return M.jsxs(O.Fragment,{children:[M.jsx("textarea",{value:o,onChange:w,ref:d,rows:a,style:s,...u}),M.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:{...p5.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function i0({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const ap=O.createContext(void 0);function a0(){return O.useContext(ap)}function Jc(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function sp(e,t=!1){return e&&(Jc(e.value)&&e.value!==""||t&&Jc(e.defaultValue)&&e.defaultValue!=="")}function wL(e){return e.startAdornment}var ed;const go=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${St(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},bo=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},b5=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:s,formControl:o,fullWidth:u,hiddenLabel:l,multiline:c,readOnly:d,size:p,startAdornment:f,type:b}=e,y={root:["root",`color${St(n)}`,r&&"disabled",i&&"error",u&&"fullWidth",s&&"focused",o&&"formControl",p&&p!=="medium"&&`size${St(p)}`,c&&"multiline",f&&"adornedStart",a&&"adornedEnd",l&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return Ye(y,Cg,t)},yo=le("div",{name:"MuiInputBase",slot:"Root",overridesResolver:go})(ct(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ka.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),vo=le("input",{name:"MuiInputBase",slot:"Input",overridesResolver:bo})(ct(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ka.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${ka.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),td=Ag({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),s0=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:o,color:u,components:l={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:b,error:y,fullWidth:S=!1,id:v,inputComponent:w="input",inputProps:x={},inputRef:k,margin:R,maxRows:C,minRows:H,multiline:z=!1,name:V,onBlur:P,onChange:$,onClick:W,onFocus:G,onKeyDown:q,onKeyUp:Y,placeholder:Q,readOnly:ee,renderSuffix:de,rows:oe,size:N,slotProps:Ce={},slots:ve={},startAdornment:B,type:xe="text",value:Ie,...Be}=r,je=x.value!=null?x.value:Ie,{current:_e}=O.useRef(je!=null),qe=O.useRef(),Te=O.useCallback(Se=>{},[]),De=Vt(qe,k,x.ref,Te),[Ne,Ke]=O.useState(!1),Re=a0(),$e=i0({props:r,muiFormControl:Re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});$e.focused=Re?Re.focused:Ne,O.useEffect(()=>{!Re&&p&&Ne&&(Ke(!1),P&&P())},[Re,p,Ne,P]);const wt=Re&&Re.onFilled,ht=Re&&Re.onEmpty,st=O.useCallback(Se=>{sp(Se)?wt&&wt():ht&&ht()},[wt,ht]);ar(()=>{_e&&st({value:je})},[je,st,_e]);const Nt=Se=>{G&&G(Se),x.onFocus&&x.onFocus(Se),Re&&Re.onFocus?Re.onFocus(Se):Ke(!0)},ot=Se=>{P&&P(Se),x.onBlur&&x.onBlur(Se),Re&&Re.onBlur?Re.onBlur(Se):Ke(!1)},it=(Se,...Rt)=>{if(!_e){const yt=Se.target||qe.current;if(yt==null)throw new Error(F1(1));st({value:yt.value})}x.onChange&&x.onChange(Se,...Rt),$&&$(Se,...Rt)};O.useEffect(()=>{st(qe.current)},[]);const Ht=Se=>{qe.current&&Se.currentTarget===Se.target&&qe.current.focus(),W&&W(Se)};let Kt=w,bt=x;z&&Kt==="input"&&(oe?bt={type:void 0,minRows:oe,maxRows:oe,...bt}:bt={type:void 0,maxRows:C,minRows:H,...bt},Kt=g5);const on=Se=>{st(Se.animationName==="mui-auto-fill-cancel"?qe.current:{value:"x"})};O.useEffect(()=>{Re&&Re.setAdornedStart(!!B)},[Re,B]);const K={...r,color:$e.color||"primary",disabled:$e.disabled,endAdornment:b,error:$e.error,focused:$e.focused,formControl:Re,fullWidth:S,hiddenLabel:$e.hiddenLabel,multiline:z,size:$e.size,startAdornment:B,type:xe},ie=b5(K),me=ve.root||l.Root||yo,Ee=Ce.root||c.root||{},Pe=ve.input||l.Input||vo;return bt={...bt,...Ce.input??c.input},M.jsxs(O.Fragment,{children:[!f&&typeof td=="function"&&(ed||(ed=M.jsx(td,{}))),M.jsxs(me,{...Ee,ref:n,onClick:Ht,...Be,...!Ca(me)&&{ownerState:{...K,...Ee.ownerState}},className:Ve(ie.root,Ee.className,o,ee&&"MuiInputBase-readOnly"),children:[B,M.jsx(ap.Provider,{value:null,children:M.jsx(Pe,{"aria-invalid":$e.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:d,disabled:$e.disabled,id:v,onAnimationStart:on,name:V,placeholder:Q,readOnly:ee,required:$e.required,rows:oe,value:je,onKeyDown:q,onKeyUp:Y,type:xe,...bt,...!Ca(Pe)&&{as:Kt,ownerState:{...K,...bt.ownerState}},ref:De,className:Ve(ie.input,bt.className,ee&&"MuiInputBase-readOnly"),onBlur:ot,onChange:it,onFocus:Nt})}),b,de?de({...$e,startAdornment:B}):null]})]})});function y5(e){return gt("MuiInput",e)}const $i={...ka,...at("MuiInput",["root","underline","input"])};function v5(e){return gt("MuiFilledInput",e)}const Or={...ka,...at("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},T5=kg(M.jsx("path",{d:"M7 10l5 5 5-5z"})),x5={entering:{opacity:1},entered:{opacity:1}},Gu=O.forwardRef(function(t,n){const r=Va(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:o,easing:u,in:l,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:b,onExiting:y,style:S,timeout:v=i,TransitionComponent:w=Yn,...x}=t,k=O.useRef(null),R=Vt(k,Mi(o),n),C=q=>Y=>{if(q){const Q=k.current;Y===void 0?q(Q):q(Q,Y)}},H=C(p),z=C((q,Y)=>{W1(q);const Q=Ws({style:S,timeout:v,easing:u},{mode:"enter"});q.style.webkitTransition=r.transitions.create("opacity",Q),q.style.transition=r.transitions.create("opacity",Q),c&&c(q,Y)}),V=C(d),P=C(y),$=C(q=>{const Y=Ws({style:S,timeout:v,easing:u},{mode:"exit"});q.style.webkitTransition=r.transitions.create("opacity",Y),q.style.transition=r.transitions.create("opacity",Y),f&&f(q)}),W=C(b),G=q=>{a&&a(k.current,q)};return M.jsx(w,{appear:s,in:l,nodeRef:k,onEnter:z,onEntered:V,onEntering:H,onExit:$,onExited:W,onExiting:P,addEndListener:G,timeout:v,...x,children:(q,{ownerState:Y,...Q})=>O.cloneElement(o,{style:{opacity:0,visibility:q==="exited"&&!l?"hidden":void 0,...x5[q],...S,...o.props.style},ref:R,...Q})})});function E5(e){return gt("MuiBackdrop",e)}at("MuiBackdrop",["root","invisible"]);const S5=e=>{const{classes:t,invisible:n}=e;return Ye({root:["root",n&&"invisible"]},E5,t)},w5=le("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),op=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiBackdrop"}),{children:i,className:a,component:s="div",invisible:o=!1,open:u,components:l={},componentsProps:c={},slotProps:d={},slots:p={},TransitionComponent:f,transitionDuration:b,...y}=r,S={...r,component:s,invisible:o},v=S5(S),w={transition:f,root:l.Root,...p},x={...c,...d},k={component:s,slots:w,slotProps:x},[R,C]=Et("root",{elementType:w5,externalForwardedProps:k,className:Ve(v.root,a),ownerState:S}),[H,z]=Et("transition",{elementType:Gu,externalForwardedProps:k,ownerState:S});return M.jsx(H,{in:u,timeout:b,...y,...z,children:M.jsx(R,{"aria-hidden":!0,...C,classes:v,ref:n,children:i})})}),A5=at("MuiBox",["root"]),C5=Rg(),Ar=Wg({themeId:Ng,defaultTheme:C5,defaultClassName:A5.root,generateClassName:Ig.generate});function up(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function k5(e){const t=fn(e);return t.body===e?sr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ca(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function nd(e){return parseInt(sr(e).getComputedStyle(e).paddingRight,10)||0}function I5(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function rd(e,t,n,r,i){const a=[t,n,...r];[].forEach.call(e.children,s=>{const o=!a.includes(s),u=!I5(s);o&&u&&ca(s,i)})}function Uo(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function N5(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(k5(r)){const s=up(sr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${nd(r)+s}px`;const o=fn(r).querySelectorAll(".mui-fixed");[].forEach.call(o,u=>{n.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${nd(u)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=fn(r).body;else{const s=r.parentElement,o=sr(r);a=s?.nodeName==="HTML"&&o.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:o})=>{a?s.style.setProperty(o,a):s.style.removeProperty(o)})}}function R5(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class M5{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&ca(t.modalRef,!1);const i=R5(n);rd(n,t.mount,t.modalRef,i,!0);const a=Uo(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=Uo(this.containers,a=>a.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=N5(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=Uo(this.containers,s=>s.modals.includes(t)),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&ca(t.modalRef,n),rd(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&ca(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const D5=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function P5(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function L5(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function O5(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||L5(e))}function _5(e){const t=[],n=[];return Array.from(e.querySelectorAll(D5)).forEach((r,i)=>{const a=P5(r);a===-1||!O5(r)||(a===0?t.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function B5(){return!0}function F5(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=_5,isEnabled:s=B5,open:o}=e,u=O.useRef(!1),l=O.useRef(null),c=O.useRef(null),d=O.useRef(null),p=O.useRef(null),f=O.useRef(!1),b=O.useRef(null),y=Vt(Mi(t),b),S=O.useRef(null);O.useEffect(()=>{!o||!b.current||(f.current=!n)},[n,o]),O.useEffect(()=>{if(!o||!b.current)return;const x=fn(b.current);return b.current.contains(x.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),f.current&&b.current.focus()),()=>{i||(d.current&&d.current.focus&&(u.current=!0,d.current.focus()),d.current=null)}},[o]),O.useEffect(()=>{if(!o||!b.current)return;const x=fn(b.current),k=H=>{S.current=H,!(r||!s()||H.key!=="Tab")&&x.activeElement===b.current&&H.shiftKey&&(u.current=!0,c.current&&c.current.focus())},R=()=>{const H=b.current;if(H===null)return;if(!x.hasFocus()||!s()||u.current){u.current=!1;return}if(H.contains(x.activeElement)||r&&x.activeElement!==l.current&&x.activeElement!==c.current)return;if(x.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!f.current)return;let z=[];if((x.activeElement===l.current||x.activeElement===c.current)&&(z=a(b.current)),z.length>0){const V=!!(S.current?.shiftKey&&S.current?.key==="Tab"),P=z[0],$=z[z.length-1];typeof P!="string"&&typeof $!="string"&&(V?$.focus():P.focus())}else H.focus()};x.addEventListener("focusin",R),x.addEventListener("keydown",k,!0);const C=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&R()},50);return()=>{clearInterval(C),x.removeEventListener("focusin",R),x.removeEventListener("keydown",k,!0)}},[n,r,i,s,o,a]);const v=x=>{d.current===null&&(d.current=x.relatedTarget),f.current=!0,p.current=x.target;const k=t.props.onFocus;k&&k(x)},w=x=>{d.current===null&&(d.current=x.relatedTarget),f.current=!0};return M.jsxs(O.Fragment,{children:[M.jsx("div",{tabIndex:o?0:-1,onFocus:w,ref:l,"data-testid":"sentinelStart"}),O.cloneElement(t,{ref:y,onFocus:v}),M.jsx("div",{tabIndex:o?0:-1,onFocus:w,ref:c,"data-testid":"sentinelEnd"})]})}function H5(e){return typeof e=="function"?e():e}function z5(e){return e?e.props.hasOwnProperty("in"):!1}const id=()=>{},hs=new M5;function U5(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:o,onClose:u,open:l,rootRef:c}=e,d=O.useRef({}),p=O.useRef(null),f=O.useRef(null),b=Vt(f,c),[y,S]=O.useState(!l),v=z5(o);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const x=()=>fn(p.current),k=()=>(d.current.modalRef=f.current,d.current.mount=p.current,d.current),R=()=>{hs.mount(k(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},C=Aa(()=>{const Y=H5(t)||x().body;hs.add(k(),Y),f.current&&R()}),H=()=>hs.isTopModal(k()),z=Aa(Y=>{p.current=Y,Y&&(l&&H()?R():f.current&&ca(f.current,w))}),V=O.useCallback(()=>{hs.remove(k(),w)},[w]);O.useEffect(()=>()=>{V()},[V]),O.useEffect(()=>{l?C():(!v||!i)&&V()},[l,V,v,i,C]);const P=Y=>Q=>{Y.onKeyDown?.(Q),!(Q.key!=="Escape"||Q.which===229||!H())&&(n||(Q.stopPropagation(),u&&u(Q,"escapeKeyDown")))},$=Y=>Q=>{Y.onClick?.(Q),Q.target===Q.currentTarget&&u&&u(Q,"backdropClick")};return{getRootProps:(Y={})=>{const Q=Mg(e);delete Q.onTransitionEnter,delete Q.onTransitionExited;const ee={...Q,...Y};return{role:"presentation",...ee,onKeyDown:P(ee),ref:b}},getBackdropProps:(Y={})=>{const Q=Y;return{"aria-hidden":!0,...Q,onClick:$(Q),open:l}},getTransitionProps:()=>{const Y=()=>{S(!1),a&&a()},Q=()=>{S(!0),s&&s(),i&&V()};return{onEnter:zc(Y,o?.props.onEnter??id),onExited:zc(Q,o?.props.onExited??id)}},rootRef:b,portalRef:z,isTopModal:H,exited:y,hasTransition:v}}function V5(e){return gt("MuiModal",e)}at("MuiModal",["root","hidden","backdrop"]);const j5=e=>{const{open:t,exited:n,classes:r}=e;return Ye({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},V5,r)},q5=le("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ct(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),$5=le(op,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),lp=O.forwardRef(function(t,n){const r=Ge({name:"MuiModal",props:t}),{BackdropComponent:i=$5,BackdropProps:a,classes:s,className:o,closeAfterTransition:u=!1,children:l,container:c,component:d,components:p={},componentsProps:f={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:S=!1,disablePortal:v=!1,disableRestoreFocus:w=!1,disableScrollLock:x=!1,hideBackdrop:k=!1,keepMounted:R=!1,onClose:C,onTransitionEnter:H,onTransitionExited:z,open:V,slotProps:P={},slots:$={},theme:W,...G}=r,q={...r,closeAfterTransition:u,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:S,disablePortal:v,disableRestoreFocus:w,disableScrollLock:x,hideBackdrop:k,keepMounted:R},{getRootProps:Y,getBackdropProps:Q,getTransitionProps:ee,portalRef:de,isTopModal:oe,exited:N,hasTransition:Ce}=U5({...q,rootRef:n}),ve={...q,exited:N},B=j5(ve),xe={};if(l.props.tabIndex===void 0&&(xe.tabIndex="-1"),Ce){const{onEnter:Te,onExited:De}=ee();xe.onEnter=Te,xe.onExited=De}const Ie={slots:{root:p.Root,backdrop:p.Backdrop,...$},slotProps:{...f,...P}},[Be,je]=Et("root",{ref:n,elementType:q5,externalForwardedProps:{...Ie,...G,component:d},getSlotProps:Y,ownerState:ve,className:Ve(o,B?.root,!ve.open&&ve.exited&&B?.hidden)}),[_e,qe]=Et("backdrop",{ref:a?.ref,elementType:i,externalForwardedProps:Ie,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:Te=>Q({...Te,onClick:De=>{Te?.onClick&&Te.onClick(De)}}),className:Ve(a?.className,B?.backdrop),ownerState:ve});return!R&&!V&&(!Ce||N)?null:M.jsx(rp,{ref:de,container:c,disablePortal:v,children:M.jsxs(Be,{...je,children:[!k&&i?M.jsx(_e,{...qe}):null,M.jsx(F5,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:w,isEnabled:oe,open:V,children:O.cloneElement(l,xe)})]})})});function W5(e){return gt("MuiDialog",e)}const Vo=at("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),cp=O.createContext({}),Y5=le(op,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),G5=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${St(n)}`],paper:["paper",`paperScroll${St(n)}`,`paperWidth${St(String(r))}`,i&&"paperFullWidth",a&&"paperFullScreen"]};return Ye(s,W5,t)},X5=le(lp,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),K5=le("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${St(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),Q5=le(po,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${St(n.scroll)}`],t[`paperWidth${St(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(ct(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Vo.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Vo.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Vo.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Z5=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiDialog"}),i=Va(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":o,"aria-modal":u=!0,BackdropComponent:l,BackdropProps:c,children:d,className:p,disableEscapeKeyDown:f=!1,fullScreen:b=!1,fullWidth:y=!1,maxWidth:S="sm",onClick:v,onClose:w,open:x,PaperComponent:k=po,PaperProps:R={},scroll:C="paper",slots:H={},slotProps:z={},TransitionComponent:V=Gu,transitionDuration:P=a,TransitionProps:$,...W}=r,G={...r,disableEscapeKeyDown:f,fullScreen:b,fullWidth:y,maxWidth:S,scroll:C},q=G5(G),Y=O.useRef(),Q=Ke=>{Y.current=Ke.target===Ke.currentTarget},ee=Ke=>{v&&v(Ke),Y.current&&(Y.current=null,w&&w(Ke,"backdropClick"))},de=Gl(o),oe=O.useMemo(()=>({titleId:de}),[de]),N={transition:V,...H},Ce={transition:$,paper:R,backdrop:c,...z},ve={slots:N,slotProps:Ce},[B,xe]=Et("root",{elementType:X5,shouldForwardComponentProp:!0,externalForwardedProps:ve,ownerState:G,className:Ve(q.root,p),ref:n}),[Ie,Be]=Et("backdrop",{elementType:Y5,shouldForwardComponentProp:!0,externalForwardedProps:ve,ownerState:G}),[je,_e]=Et("paper",{elementType:Q5,shouldForwardComponentProp:!0,externalForwardedProps:ve,ownerState:G,className:Ve(q.paper,R.className)}),[qe,Te]=Et("container",{elementType:K5,externalForwardedProps:ve,ownerState:G,className:q.container}),[De,Ne]=Et("transition",{elementType:Gu,externalForwardedProps:ve,ownerState:G,additionalProps:{appear:!0,in:x,timeout:P,role:"presentation"}});return M.jsx(B,{closeAfterTransition:!0,slots:{backdrop:Ie},slotProps:{backdrop:{transitionDuration:P,as:l,...Be}},disableEscapeKeyDown:f,onClose:w,open:x,onClick:ee,...xe,...W,children:M.jsx(De,{...Ne,children:M.jsx(qe,{onMouseDown:Q,...Te,children:M.jsx(je,{as:k,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":de,"aria-modal":u,..._e,children:M.jsx(cp.Provider,{value:oe,children:d})})})})})});function J5(e){return gt("MuiDialogActions",e)}at("MuiDialogActions",["root","spacing"]);const eb=e=>{const{classes:t,disableSpacing:n}=e;return Ye({root:["root",!n&&"spacing"]},J5,t)},tb=le("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),nb=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:a=!1,...s}=r,o={...r,disableSpacing:a},u=eb(o);return M.jsx(tb,{className:Ve(u.root,i),ownerState:o,ref:n,...s})}),rb=e=>{const{classes:t,dividers:n}=e;return Ye({root:["root",n&&"dividers"]},Dg,t)},ib=le("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(ct(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${Pg.root} + &`]:{paddingTop:0}}}]}))),ab=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiDialogContent"}),{className:i,dividers:a=!1,...s}=r,o={...r,dividers:a},u=rb(o);return M.jsx(ib,{className:Ve(u.root,i),ownerState:o,ref:n,...s})});function sb(e){return gt("MuiDialogContentText",e)}at("MuiDialogContentText",["root"]);const ob=e=>{const{classes:t}=e,r=Ye({root:["root"]},sb,t);return{...t,...r}},ub=le(Xe,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),lb=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiDialogContentText"}),{children:i,className:a,...s}=r,o=ob(s);return M.jsx(ub,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:s,className:Ve(o.root,a),...r,classes:o})}),cb=e=>{const{classes:t}=e;return Ye({root:["root"]},Lg,t)},db=le(Xe,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),hb=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiDialogTitle"}),{className:i,id:a,...s}=r,o=r,u=cb(o),{titleId:l=a}=O.useContext(cp);return M.jsx(db,{component:"h2",className:Ve(u.root,i),ownerState:o,ref:n,variant:"h6",id:a??l,...s})}),fb=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:a,orientation:s,textAlign:o,variant:u}=e;return Ye({root:["root",t&&"absolute",u,a&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",o==="right"&&s!=="vertical"&&"textAlignRight",o==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},Og,r)},pb=le("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(ct(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),mb=le("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(ct(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Xu=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:s,orientation:o="horizontal",component:u=a||o==="vertical"?"div":"hr",flexItem:l=!1,light:c=!1,role:d=u!=="hr"?"separator":void 0,textAlign:p="center",variant:f="fullWidth",...b}=r,y={...r,absolute:i,component:u,flexItem:l,light:c,orientation:o,role:d,textAlign:p,variant:f},S=fb(y);return M.jsx(pb,{as:u,className:Ve(S.root,s),role:d,ref:n,ownerState:y,"aria-orientation":d==="separator"&&(u!=="hr"||o==="vertical")?o:void 0,...b,children:a?M.jsx(mb,{className:S.wrapper,ownerState:y,children:a}):null})});Xu&&(Xu.muiSkipListHighlight=!0);const gb=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:s,multiline:o}=e,u={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",a==="small"&&`size${St(a)}`,s&&"hiddenLabel",o&&"multiline"],input:["input"]},l=Ye(u,v5,t);return{...t,...l}},bb=le(yo,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...go(e,t),!n.disableUnderline&&t.underline]}})(ct(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Or.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Or.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Or.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Or.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Or.disabled}, .${Or.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Or.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Kl()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:o})=>s.multiline&&o==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),yb=le(vo,{name:"MuiFilledInput",slot:"Input",overridesResolver:bo})(ct(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),dp=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:a={},componentsProps:s,fullWidth:o=!1,hiddenLabel:u,inputComponent:l="input",multiline:c=!1,slotProps:d,slots:p={},type:f="text",...b}=r,y={...r,disableUnderline:i,fullWidth:o,inputComponent:l,multiline:c,type:f},S=gb(r),v={root:{ownerState:y},input:{ownerState:y}},w=d??s?Xl(v,d??s):v,x=p.root??a.Root??bb,k=p.input??a.Input??yb;return M.jsx(s0,{slots:{root:x,input:k},slotProps:w,fullWidth:o,inputComponent:l,multiline:c,ref:n,type:f,...b,classes:S})});dp.muiName="Input";function Ku(e){return`scale(${e}, ${e**2})`}const vb={entering:{opacity:1,transform:Ku(1)},entered:{opacity:1,transform:"none"}},jo=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Gs=O.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:a,easing:s,in:o,onEnter:u,onEntered:l,onEntering:c,onExit:d,onExited:p,onExiting:f,style:b,timeout:y="auto",TransitionComponent:S=Yn,...v}=t,w=ra(),x=O.useRef(),k=Va(),R=O.useRef(null),C=Vt(R,Mi(a),n),H=Y=>Q=>{if(Y){const ee=R.current;Q===void 0?Y(ee):Y(ee,Q)}},z=H(c),V=H((Y,Q)=>{W1(Y);const{duration:ee,delay:de,easing:oe}=Ws({style:b,timeout:y,easing:s},{mode:"enter"});let N;y==="auto"?(N=k.transitions.getAutoHeightDuration(Y.clientHeight),x.current=N):N=ee,Y.style.transition=[k.transitions.create("opacity",{duration:N,delay:de}),k.transitions.create("transform",{duration:jo?N:N*.666,delay:de,easing:oe})].join(","),u&&u(Y,Q)}),P=H(l),$=H(f),W=H(Y=>{const{duration:Q,delay:ee,easing:de}=Ws({style:b,timeout:y,easing:s},{mode:"exit"});let oe;y==="auto"?(oe=k.transitions.getAutoHeightDuration(Y.clientHeight),x.current=oe):oe=Q,Y.style.transition=[k.transitions.create("opacity",{duration:oe,delay:ee}),k.transitions.create("transform",{duration:jo?oe:oe*.666,delay:jo?ee:ee||oe*.333,easing:de})].join(","),Y.style.opacity=0,Y.style.transform=Ku(.75),d&&d(Y)}),G=H(p),q=Y=>{y==="auto"&&w.start(x.current||0,Y),r&&r(R.current,Y)};return M.jsx(S,{appear:i,in:o,nodeRef:R,onEnter:V,onEntered:P,onEntering:z,onExit:W,onExited:G,onExiting:$,addEndListener:q,timeout:y==="auto"?null:y,...v,children:(Y,{ownerState:Q,...ee})=>O.cloneElement(a,{style:{opacity:0,transform:Ku(.75),visibility:Y==="exited"&&!o?"hidden":void 0,...vb[Y],...b,...a.props.style},ref:C,...ee})})});Gs&&(Gs.muiSupportAuto=!0);const Tb=e=>{const{classes:t,disableUnderline:n}=e,i=Ye({root:["root",!n&&"underline"],input:["input"]},y5,t);return{...t,...i}},xb=le(yo,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...go(e,t),!n.disableUnderline&&t.underline]}})(ct(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${$i.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$i.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${$i.disabled}, .${$i.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${$i.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Kl()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),Eb=le(vo,{name:"MuiInput",slot:"Input",overridesResolver:bo})({}),hp=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:a={},componentsProps:s,fullWidth:o=!1,inputComponent:u="input",multiline:l=!1,slotProps:c,slots:d={},type:p="text",...f}=r,b=Tb(r),S={root:{ownerState:{disableUnderline:i}}},v=c??s?Xl(c??s,S):S,w=d.root??a.Root??xb,x=d.input??a.Input??Eb;return M.jsx(s0,{slots:{root:w,input:x},slotProps:v,fullWidth:o,inputComponent:u,multiline:l,ref:n,type:p,...f,classes:b})});hp.muiName="Input";const nr=O.createContext({});function Sb(e){return gt("MuiList",e)}at("MuiList",["root","padding","dense","subheader"]);const wb=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Ye({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Sb,t)},Ab=le("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),fp=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiList"}),{children:i,className:a,component:s="ul",dense:o=!1,disablePadding:u=!1,subheader:l,...c}=r,d=O.useMemo(()=>({dense:o}),[o]),p={...r,component:s,dense:o,disablePadding:u},f=wb(p);return M.jsx(nr.Provider,{value:d,children:M.jsxs(Ab,{as:s,className:Ve(f.root,a),ref:n,ownerState:p,...c,children:[l,i]})})});function Cb(e){return gt("MuiListItem",e)}at("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const kb=at("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Ib(e){return gt("MuiListItemSecondaryAction",e)}at("MuiListItemSecondaryAction",["root","disableGutters"]);const Nb=e=>{const{disableGutters:t,classes:n}=e;return Ye({root:["root",t&&"disableGutters"]},Ib,n)},Rb=le("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),pp=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiListItemSecondaryAction"}),{className:i,...a}=r,s=O.useContext(nr),o={...r,disableGutters:s.disableGutters},u=Nb(o);return M.jsx(Rb,{className:Ve(u.root,i),ownerState:o,ref:n,...a})});pp.muiName="ListItemSecondaryAction";const Mb=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},Db=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:i,disablePadding:a,divider:s,hasSecondaryAction:o}=e;return Ye({root:["root",r&&"dense",!i&&"gutters",!a&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",o&&"secondaryAction"],container:["container"]},Cb,n)},Pb=le("div",{name:"MuiListItem",slot:"Root",overridesResolver:Mb})(ct(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${kb.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),Lb=le("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Ob=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiListItem"}),{alignItems:i="center",children:a,className:s,component:o,components:u={},componentsProps:l={},ContainerComponent:c="li",ContainerProps:{className:d,...p}={},dense:f=!1,disableGutters:b=!1,disablePadding:y=!1,divider:S=!1,secondaryAction:v,slotProps:w={},slots:x={},...k}=r,R=O.useContext(nr),C=O.useMemo(()=>({dense:f||R.dense||!1,alignItems:i,disableGutters:b}),[i,R.dense,f,b]),H=O.useRef(null),z=O.Children.toArray(a),V=z.length&&Yg(z[z.length-1],["ListItemSecondaryAction"]),P={...r,alignItems:i,dense:C.dense,disableGutters:b,disablePadding:y,divider:S,hasSecondaryAction:V},$=Db(P),W=Vt(H,n),G=x.root||u.Root||Pb,q=w.root||l.root||{},Y={className:Ve($.root,q.className,s),...k};let Q=o||"li";return V?(Q=!Y.component&&!o?"div":Q,c==="li"&&(Q==="li"?Q="div":Y.component==="li"&&(Y.component="div")),M.jsx(nr.Provider,{value:C,children:M.jsxs(Lb,{as:c,className:Ve($.container,d),ref:W,ownerState:P,...p,children:[M.jsx(G,{...q,...!Ca(G)&&{as:Q,ownerState:{...P,...q.ownerState}},...Y,children:z}),z.pop()]})})):M.jsx(nr.Provider,{value:C,children:M.jsxs(G,{...q,as:Q,ref:W,...!Ca(G)&&{ownerState:{...P,...q.ownerState}},...Y,children:[z,v&&M.jsx(pp,{children:v})]})})}),_b=e=>{const{alignItems:t,classes:n}=e;return Ye({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},_g,n)},Bb=le("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(ct(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Fb=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiListItemIcon"}),{className:i,...a}=r,s=O.useContext(nr),o={...r,alignItems:s.alignItems},u=_b(o);return M.jsx(Bb,{className:Ve(u.root,i),ownerState:o,ref:n,...a})});function Hb(e){return gt("MuiListItemText",e)}const di=at("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),zb=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return Ye({root:["root",n&&"inset",a&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},Hb,t)},Ub=le("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${di.primary}`]:t.primary},{[`& .${di.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Pc.root}:where(& .${di.primary})`]:{display:"block"},[`.${Pc.root}:where(& .${di.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Vb=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiListItemText"}),{children:i,className:a,disableTypography:s=!1,inset:o=!1,primary:u,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:d,slots:p={},slotProps:f={},...b}=r,{dense:y}=O.useContext(nr);let S=u??i,v=c;const w={...r,disableTypography:s,inset:o,primary:!!S,secondary:!!v,dense:y},x=zb(w),k={slots:p,slotProps:{primary:l,secondary:d,...f}},[R,C]=Et("root",{className:Ve(x.root,a),elementType:Ub,externalForwardedProps:{...k,...b},ownerState:w,ref:n}),[H,z]=Et("primary",{className:x.primary,elementType:Xe,externalForwardedProps:k,ownerState:w}),[V,P]=Et("secondary",{className:x.secondary,elementType:Xe,externalForwardedProps:k,ownerState:w});return S!=null&&S.type!==Xe&&!s&&(S=M.jsx(H,{variant:y?"body2":"body1",component:z?.variant?void 0:"span",...z,children:S})),v!=null&&v.type!==Xe&&!s&&(v=M.jsx(V,{variant:"body2",color:"textSecondary",...P,children:v})),M.jsxs(R,{...C,children:[S,v]})});function qo(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function ad(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function mp(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Wi(e,t,n,r,i,a){let s=!1,o=i(e,t,t?n:!1);for(;o;){if(o===e.firstChild){if(s)return!1;s=!0}const u=r?!1:o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||!mp(o,a)||u)o=i(e,o,n);else return o.focus(),!0}return!1}const jb=O.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:a=!1,children:s,className:o,disabledItemsFocusable:u=!1,disableListWrap:l=!1,onKeyDown:c,variant:d="selectedMenu",...p}=t,f=O.useRef(null),b=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ar(()=>{i&&f.current.focus()},[i]),O.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,{direction:k})=>{const R=!f.current.style.width;if(x.clientHeight{const k=f.current,R=x.key;if(x.ctrlKey||x.metaKey||x.altKey){c&&c(x);return}const H=fn(k).activeElement;if(R==="ArrowDown")x.preventDefault(),Wi(k,H,l,u,qo);else if(R==="ArrowUp")x.preventDefault(),Wi(k,H,l,u,ad);else if(R==="Home")x.preventDefault(),Wi(k,null,l,u,qo);else if(R==="End")x.preventDefault(),Wi(k,null,l,u,ad);else if(R.length===1){const z=b.current,V=R.toLowerCase(),P=performance.now();z.keys.length>0&&(P-z.lastTime>500?(z.keys=[],z.repeating=!0,z.previousKeyMatched=!0):z.repeating&&V!==z.keys[0]&&(z.repeating=!1)),z.lastTime=P,z.keys.push(V);const $=H&&!z.repeating&&mp(H,z);z.previousKeyMatched&&($||Wi(k,H,!1,u,qo,z))?x.preventDefault():z.previousKeyMatched=!1}c&&c(x)},S=Vt(f,n);let v=-1;O.Children.forEach(s,(x,k)=>{if(!O.isValidElement(x)){v===k&&(v+=1,v>=s.length&&(v=-1));return}x.props.disabled||(d==="selectedMenu"&&x.props.selected||v===-1)&&(v=k),v===k&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(v+=1,v>=s.length&&(v=-1))});const w=O.Children.map(s,(x,k)=>{if(k===v){const R={};return a&&(R.autoFocus=!0),x.props.tabIndex===void 0&&d==="selectedMenu"&&(R.tabIndex=0),O.cloneElement(x,R)}return x});return M.jsx(fp,{role:"menu",ref:S,className:o,onKeyDown:y,tabIndex:i?0:-1,...p,children:w})});function qb(e){return gt("MuiPopover",e)}at("MuiPopover",["root","paper"]);function sd(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function od(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function ud(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function fs(e){return typeof e=="function"?e():e}const $b=e=>{const{classes:t}=e;return Ye({root:["root"],paper:["paper"]},qb,t)},Wb=le(lp,{name:"MuiPopover",slot:"Root"})({}),gp=le(po,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Yb=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiPopover"}),{action:i,anchorEl:a,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:o,anchorReference:u="anchorEl",children:l,className:c,container:d,elevation:p=8,marginThreshold:f=16,open:b,PaperProps:y={},slots:S={},slotProps:v={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:x,transitionDuration:k="auto",TransitionProps:R={},disableScrollLock:C=!1,...H}=r,z=O.useRef(),V={...r,anchorOrigin:s,anchorReference:u,elevation:p,marginThreshold:f,transformOrigin:w,TransitionComponent:x,transitionDuration:k,TransitionProps:R},P=$b(V),$=O.useCallback(()=>{if(u==="anchorPosition")return o;const Te=fs(a),Ne=(Te&&Te.nodeType===1?Te:fn(z.current).body).getBoundingClientRect();return{top:Ne.top+sd(Ne,s.vertical),left:Ne.left+od(Ne,s.horizontal)}},[a,s.horizontal,s.vertical,o,u]),W=O.useCallback(Te=>({vertical:sd(Te,w.vertical),horizontal:od(Te,w.horizontal)}),[w.horizontal,w.vertical]),G=O.useCallback(Te=>{const De={width:Te.offsetWidth,height:Te.offsetHeight},Ne=W(De);if(u==="none")return{top:null,left:null,transformOrigin:ud(Ne)};const Ke=$();let Re=Ke.top-Ne.vertical,$e=Ke.left-Ne.horizontal;const wt=Re+De.height,ht=$e+De.width,st=sr(fs(a)),Nt=st.innerHeight-f,ot=st.innerWidth-f;if(f!==null&&ReNt){const it=wt-Nt;Re-=it,Ne.vertical+=it}if(f!==null&&$eot){const it=ht-ot;$e-=it,Ne.horizontal+=it}return{top:`${Math.round(Re)}px`,left:`${Math.round($e)}px`,transformOrigin:ud(Ne)}},[a,u,$,W,f]),[q,Y]=O.useState(b),Q=O.useCallback(()=>{const Te=z.current;if(!Te)return;const De=G(Te);De.top!==null&&Te.style.setProperty("top",De.top),De.left!==null&&(Te.style.left=De.left),Te.style.transformOrigin=De.transformOrigin,Y(!0)},[G]);O.useEffect(()=>(C&&window.addEventListener("scroll",Q),()=>window.removeEventListener("scroll",Q)),[a,C,Q]);const ee=()=>{Q()},de=()=>{Y(!1)};O.useEffect(()=>{b&&Q()}),O.useImperativeHandle(i,()=>b?{updatePosition:()=>{Q()}}:null,[b,Q]),O.useEffect(()=>{if(!b)return;const Te=$1(()=>{Q()}),De=sr(fs(a));return De.addEventListener("resize",Te),()=>{Te.clear(),De.removeEventListener("resize",Te)}},[a,b,Q]);let oe=k;const N={slots:{transition:x,...S},slotProps:{transition:R,paper:y,...v}},[Ce,ve]=Et("transition",{elementType:Gs,externalForwardedProps:N,ownerState:V,getSlotProps:Te=>({...Te,onEntering:(De,Ne)=>{Te.onEntering?.(De,Ne),ee()},onExited:De=>{Te.onExited?.(De),de()}}),additionalProps:{appear:!0,in:b}});k==="auto"&&!Ce.muiSupportAuto&&(oe=void 0);const B=d||(a?fn(fs(a)).body:void 0),[xe,{slots:Ie,slotProps:Be,...je}]=Et("root",{ref:n,elementType:Wb,externalForwardedProps:{...N,...H},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:S.backdrop},slotProps:{backdrop:Qg(typeof v.backdrop=="function"?v.backdrop(V):v.backdrop,{invisible:!0})},container:B,open:b},ownerState:V,className:Ve(P.root,c)}),[_e,qe]=Et("paper",{ref:z,className:P.paper,elementType:gp,externalForwardedProps:N,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:q?void 0:{opacity:0}},ownerState:V});return M.jsx(xe,{...je,...!Ca(xe)&&{slots:Ie,slotProps:Be,disableScrollLock:C},children:M.jsx(Ce,{...ve,timeout:oe,children:M.jsx(_e,{...qe,children:l})})})});function Gb(e){return gt("MuiMenu",e)}at("MuiMenu",["root","paper","list"]);const Xb={vertical:"top",horizontal:"right"},Kb={vertical:"top",horizontal:"left"},Qb=e=>{const{classes:t}=e;return Ye({root:["root"],paper:["paper"],list:["list"]},Gb,t)},Zb=le(Yb,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),Jb=le(gp,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),e7=le(jb,{name:"MuiMenu",slot:"List"})({outline:0}),t7=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:o=!1,MenuListProps:u={},onClose:l,open:c,PaperProps:d={},PopoverClasses:p,transitionDuration:f="auto",TransitionProps:{onEntering:b,...y}={},variant:S="selectedMenu",slots:v={},slotProps:w={},...x}=r,k=Yl(),R={...r,autoFocus:i,disableAutoFocusItem:o,MenuListProps:u,onEntering:b,PaperProps:d,transitionDuration:f,TransitionProps:y,variant:S},C=Qb(R),H=i&&!o&&c,z=O.useRef(null),V=(oe,N)=>{z.current&&z.current.adjustStyleForScrollbar(oe,{direction:k?"rtl":"ltr"}),b&&b(oe,N)},P=oe=>{oe.key==="Tab"&&(oe.preventDefault(),l&&l(oe,"tabKeyDown"))};let $=-1;O.Children.map(a,(oe,N)=>{O.isValidElement(oe)&&(oe.props.disabled||(S==="selectedMenu"&&oe.props.selected||$===-1)&&($=N))});const W={slots:v,slotProps:{list:u,transition:y,paper:d,...w}},G=np({elementType:v.root,externalSlotProps:w.root,ownerState:R,className:[C.root,s]}),[q,Y]=Et("paper",{className:C.paper,elementType:Jb,externalForwardedProps:W,shouldForwardComponentProp:!0,ownerState:R}),[Q,ee]=Et("list",{className:Ve(C.list,u.className),elementType:e7,shouldForwardComponentProp:!0,externalForwardedProps:W,getSlotProps:oe=>({...oe,onKeyDown:N=>{P(N),oe.onKeyDown?.(N)}}),ownerState:R}),de=typeof W.slotProps.transition=="function"?W.slotProps.transition(R):W.slotProps.transition;return M.jsx(Zb,{onClose:l,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?Xb:Kb,slots:{root:v.root,paper:q,backdrop:v.backdrop,...v.transition&&{transition:v.transition}},slotProps:{root:G,paper:Y,backdrop:typeof w.backdrop=="function"?w.backdrop(R):w.backdrop,transition:{...de,onEntering:(...oe)=>{V(...oe),de?.onEntering?.(...oe)}}},open:c,ref:n,transitionDuration:f,ownerState:R,...x,classes:p,children:M.jsx(Q,{actions:z,autoFocus:i&&($===-1||o),autoFocusItem:H,variant:S,...ee,children:a})})});function n7(e){return gt("MuiMenuItem",e)}const Yi=at("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),r7=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},i7=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:s}=e,u=Ye({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},n7,s);return{...s,...u}},a7=le(Bg,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:r7})(ct(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Yi.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Yi.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Yi.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Yi.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Yi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Oc.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Oc.inset}`]:{marginLeft:52},[`& .${di.root}`]:{marginTop:0,marginBottom:0},[`& .${di.inset}`]:{paddingLeft:36},[`& .${Lc.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Lc.root} svg`]:{fontSize:"1.25rem"}}}]}))),s7=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:s=!1,divider:o=!1,disableGutters:u=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:d,className:p,...f}=r,b=O.useContext(nr),y=O.useMemo(()=>({dense:s||b.dense||!1,disableGutters:u}),[b.dense,s,u]),S=O.useRef(null);ar(()=>{i&&S.current&&S.current.focus()},[i]);const v={...r,dense:y.dense,divider:o,disableGutters:u},w=i7(r),x=Vt(S,n);let k;return r.disabled||(k=d!==void 0?d:-1),M.jsx(nr.Provider,{value:y,children:M.jsx(a7,{ref:x,role:c,tabIndex:k,component:a,focusVisibleClassName:Ve(w.focusVisible,l),className:Ve(w.root,p),...f,ownerState:v,classes:w})})});function o7(e){return gt("MuiNativeSelect",e)}const o0=at("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),u7=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${St(n)}`,a&&"iconOpen",r&&"disabled"]};return Ye(o,o7,t)},bp=le("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${o0.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),l7=le(bp,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Wn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${o0.multiple}`]:t.multiple}]}})({}),yp=le("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${o0.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),c7=le(yp,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${St(n.variant)}`],n.open&&t.iconOpen]}})({}),d7=O.forwardRef(function(t,n){const{className:r,disabled:i,error:a,IconComponent:s,inputRef:o,variant:u="standard",...l}=t,c={...t,disabled:i,variant:u,error:a},d=u7(c);return M.jsxs(O.Fragment,{children:[M.jsx(l7,{ownerState:c,className:Ve(d.select,r),disabled:i,ref:o||n,...l}),t.multiple?null:M.jsx(c7,{as:s,ownerState:c,className:d.icon})]})});var ld;const h7=le("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Wn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),f7=le("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Wn})(ct(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function p7(e){const{children:t,classes:n,className:r,label:i,notched:a,...s}=e,o=i!=null&&i!=="",u={...e,notched:a,withLabel:o};return M.jsx(h7,{"aria-hidden":!0,className:r,ownerState:u,...s,children:M.jsx(f7,{ownerState:u,children:o?M.jsx("span",{children:i}):ld||(ld=M.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const m7=e=>{const{classes:t}=e,r=Ye({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Fg,t);return{...t,...r}},g7=le(yo,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:go})(ct(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ln.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ln.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ln.focused} .${Ln.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Kl()).map(([n])=>({props:{color:n},style:{[`&.${Ln.focused} .${Ln.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Ln.error} .${Ln.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ln.disabled} .${Ln.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),b7=le(p7,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(ct(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),y7=le(vo,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:bo})(ct(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),vp=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:s="input",label:o,multiline:u=!1,notched:l,slots:c={},slotProps:d={},type:p="text",...f}=r,b=m7(r),y=a0(),S=i0({props:r,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...r,color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:y,fullWidth:a,hiddenLabel:S.hiddenLabel,multiline:u,size:S.size,type:p},w=c.root??i.Root??g7,x=c.input??i.Input??y7,[k,R]=Et("notchedOutline",{elementType:b7,className:b.notchedOutline,shouldForwardComponentProp:!0,ownerState:v,externalForwardedProps:{slots:c,slotProps:d},additionalProps:{label:o!=null&&o!==""&&S.required?M.jsxs(O.Fragment,{children:[o," ","*"]}):o}});return M.jsx(s0,{slots:{root:w,input:x},slotProps:d,renderSuffix:C=>M.jsx(k,{...R,notched:typeof l<"u"?l:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:a,inputComponent:s,multiline:u,ref:n,type:p,...f,classes:{...b,notchedOutline:null}})});vp.muiName="Input";function Tp(e){return gt("MuiSelect",e)}const Gi=at("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var cd;const v7=le(bp,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Gi.select}`]:t.select},{[`&.${Gi.select}`]:t[n.variant]},{[`&.${Gi.error}`]:t.error},{[`&.${Gi.multiple}`]:t.multiple}]}})({[`&.${Gi.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),T7=le(yp,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${St(n.variant)}`],n.open&&t.iconOpen]}})({}),x7=le("input",{shouldForwardProp:e=>Hg(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function dd(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function E7(e){return e==null||typeof e=="string"&&!e.trim()}const S7=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${St(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ye(o,Tp,t)},w7=O.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":i,autoFocus:a,autoWidth:s,children:o,className:u,defaultOpen:l,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:b,inputRef:y,labelId:S,MenuProps:v={},multiple:w,name:x,onBlur:k,onChange:R,onClose:C,onFocus:H,onOpen:z,open:V,readOnly:P,renderValue:$,required:W,SelectDisplayProps:G={},tabIndex:q,type:Y,value:Q,variant:ee="standard",...de}=t,[oe,N]=ju({controlled:Q,default:c,name:"Select"}),[Ce,ve]=ju({controlled:V,default:l,name:"Select"}),B=O.useRef(null),xe=O.useRef(null),[Ie,Be]=O.useState(null),{current:je}=O.useRef(V!=null),[_e,qe]=O.useState(),Te=Vt(n,y),De=O.useCallback(pe=>{xe.current=pe,pe&&Be(pe)},[]),Ne=Ie?.parentNode;O.useImperativeHandle(Te,()=>({focus:()=>{xe.current.focus()},node:B.current,value:oe}),[oe]),O.useEffect(()=>{l&&Ce&&Ie&&!je&&(qe(s?null:Ne.clientWidth),xe.current.focus())},[Ie,s]),O.useEffect(()=>{a&&xe.current.focus()},[a]),O.useEffect(()=>{if(!S)return;const pe=fn(xe.current).getElementById(S);if(pe){const ke=()=>{getSelection().isCollapsed&&xe.current.focus()};return pe.addEventListener("click",ke),()=>{pe.removeEventListener("click",ke)}}},[S]);const Ke=(pe,ke)=>{pe?z&&z(ke):C&&C(ke),je||(qe(s?null:Ne.clientWidth),ve(pe))},Re=pe=>{pe.button===0&&(pe.preventDefault(),xe.current.focus(),Ke(!0,pe))},$e=pe=>{Ke(!1,pe)},wt=O.Children.toArray(o),ht=pe=>{const ke=wt.find(et=>et.props.value===pe.target.value);ke!==void 0&&(N(ke.props.value),R&&R(pe,ke))},st=pe=>ke=>{let et;if(ke.currentTarget.hasAttribute("tabindex")){if(w){et=Array.isArray(oe)?oe.slice():[];const At=oe.indexOf(pe.props.value);At===-1?et.push(pe.props.value):et.splice(At,1)}else et=pe.props.value;if(pe.props.onClick&&pe.props.onClick(ke),oe!==et&&(N(et),R)){const At=ke.nativeEvent||ke,os=new At.constructor(At.type,At);Object.defineProperty(os,"target",{writable:!0,value:{value:et,name:x}}),R(os,pe)}w||Ke(!1,ke)}},Nt=pe=>{P||[" ","ArrowUp","ArrowDown","Enter"].includes(pe.key)&&(pe.preventDefault(),Ke(!0,pe))},ot=Ie!==null&&Ce,it=pe=>{!ot&&k&&(Object.defineProperty(pe,"target",{writable:!0,value:{value:oe,name:x}}),k(pe))};delete de["aria-invalid"];let Ht,Kt;const bt=[];let on=!1;(sp({value:oe})||p)&&($?Ht=$(oe):on=!0);const K=wt.map(pe=>{if(!O.isValidElement(pe))return null;let ke;if(w){if(!Array.isArray(oe))throw new Error(F1(2));ke=oe.some(et=>dd(et,pe.props.value)),ke&&on&&bt.push(pe.props.children)}else ke=dd(oe,pe.props.value),ke&&on&&(Kt=pe.props.children);return O.cloneElement(pe,{"aria-selected":ke?"true":"false",onClick:st(pe),onKeyUp:et=>{et.key===" "&&et.preventDefault(),pe.props.onKeyUp&&pe.props.onKeyUp(et)},role:"option",selected:ke,value:void 0,"data-value":pe.props.value})});on&&(w?bt.length===0?Ht=null:Ht=bt.reduce((pe,ke,et)=>(pe.push(ke),et{const{classes:t}=e,r=Ye({root:["root"]},Tp,t);return{...t,...r}},u0={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Wn(e)&&e!=="variant"},C7=le(hp,u0)(""),k7=le(vp,u0)(""),I7=le(dp,u0)(""),xp=O.forwardRef(function(t,n){const r=Ge({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:s={},className:o,defaultOpen:u=!1,displayEmpty:l=!1,IconComponent:c=T5,id:d,input:p,inputProps:f,label:b,labelId:y,MenuProps:S,multiple:v=!1,native:w=!1,onClose:x,onOpen:k,open:R,renderValue:C,SelectDisplayProps:H,variant:z="outlined",...V}=r,P=w?d7:w7,$=a0(),W=i0({props:r,muiFormControl:$,states:["variant","error"]}),G=W.variant||z,q={...r,variant:G,classes:s},Y=A7(q),{root:Q,...ee}=Y,de=p||{standard:M.jsx(C7,{ownerState:q}),outlined:M.jsx(k7,{label:b,ownerState:q}),filled:M.jsx(I7,{ownerState:q})}[G],oe=Vt(n,Mi(de));return M.jsx(O.Fragment,{children:O.cloneElement(de,{inputComponent:P,inputProps:{children:a,error:W.error,IconComponent:c,variant:G,type:void 0,multiple:v,...w?{id:d}:{autoWidth:i,defaultOpen:u,displayEmpty:l,labelId:y,MenuProps:S,onClose:x,onOpen:k,open:R,renderValue:C,SelectDisplayProps:{id:d,...H}},...f,classes:f?Xl(ee,f.classes):ee,...p?p.props.inputProps:{}},...(v&&w||l)&&G==="outlined"?{notched:!0}:{},ref:oe,className:Ve(de.props.className,o,Y.root),...!p&&{variant:G},...V})})});xp.muiName="Select";function N7(e){return gt("MuiSkeleton",e)}at("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const R7=e=>{const{classes:t,variant:n,animation:r,hasChildren:i,width:a,height:s}=e;return Ye({root:["root",n,r,i&&"withChildren",i&&!a&&"fitContent",i&&!s&&"heightAuto"]},N7,t)},Qu=z1` 0% { opacity: 1; } @@ -36,8 +36,8 @@ import{y as mg,z as gg,r as O,C as bg,D as yg,j as R,c as Ve,_ as vg,R as us,E a transparent, ${(e.vars||e).palette.action.hover}, transparent - )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:D7||{"&::after":{animation:`${Zu} 2s linear 0.5s infinite`}}}]}})),L7=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiSkeleton"}),{animation:i="pulse",className:a,component:s="span",height:o,style:u,variant:l="text",width:c,...d}=r,p={...r,animation:i,component:s,variant:l,hasChildren:!!d.children},f=R7(p);return R.jsx(P7,{as:s,ref:n,className:Ve(f.root,a),ownerState:p,...d,style:{width:c,height:o,...u}})});function O7(e){return gt("MuiTooltip",e)}const Tt=at("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function _7(e){return Math.round(e*1e5)/1e5}const B7=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${St(a.split("-")[0])}`],arrow:["arrow"]};return Ye(s,O7,t)},F7=le(ip,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(ct(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Tt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Tt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Tt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Tt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Tt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Tt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Tt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Tt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),H7=le("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${St(n.placement.split("-")[0])}`]]}})(ct(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Tt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Tt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Tt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Tt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${_7(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Tt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Tt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Tt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Tt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Tt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Tt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Tt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Tt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Tt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Tt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),z7=le("span",{name:"MuiTooltip",slot:"Arrow"})(ct(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let ps=!1;const hd=new zg;let Xi={x:0,y:0};function ms(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Xs=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:a,classes:s,components:o={},componentsProps:u={},describeChild:l=!1,disableFocusListener:c=!1,disableHoverListener:d=!1,disableInteractive:p=!1,disableTouchListener:f=!1,enterDelay:b=100,enterNextDelay:y=0,enterTouchDelay:S=700,followCursor:v=!1,id:w,leaveDelay:x=0,leaveTouchDelay:k=1500,onClose:M,onOpen:C,open:H,placement:z="bottom",PopperComponent:V,PopperProps:P={},slotProps:$={},slots:W={},title:G,TransitionComponent:q,TransitionProps:Y,...Q}=r,ee=O.isValidElement(a)?a:R.jsx("span",{children:a}),de=Va(),oe=Yl(),[N,Ce]=O.useState(),[ve,B]=O.useState(null),xe=O.useRef(!1),Ie=p||v,Be=ra(),je=ra(),_e=ra(),qe=ra(),[Te,De]=ju({controlled:H,default:!1,name:"Tooltip",state:"open"});let Ne=Te;const Ke=Gl(w),Re=O.useRef(),$e=Aa(()=>{Re.current!==void 0&&(document.body.style.WebkitUserSelect=Re.current,Re.current=void 0),qe.clear()});O.useEffect(()=>$e,[$e]);const wt=Fe=>{hd.clear(),ps=!0,De(!0),C&&!Ne&&C(Fe)},ht=Aa(Fe=>{hd.start(800+x,()=>{ps=!1}),De(!1),M&&Ne&&M(Fe),Be.start(de.transitions.duration.shortest,()=>{xe.current=!1})}),st=Fe=>{xe.current&&Fe.type!=="touchstart"||(N&&N.removeAttribute("title"),je.clear(),_e.clear(),b||ps&&y?je.start(ps?y:b,()=>{wt(Fe)}):wt(Fe))},Nt=Fe=>{je.clear(),_e.start(x,()=>{ht(Fe)})},[,ot]=O.useState(!1),it=Fe=>{_c(Fe.target)||(ot(!1),Nt(Fe))},Ht=Fe=>{N||Ce(Fe.currentTarget),_c(Fe.target)&&(ot(!0),st(Fe))},Kt=Fe=>{xe.current=!0;const mr=ee.props;mr.onTouchStart&&mr.onTouchStart(Fe)},bt=Fe=>{Kt(Fe),_e.clear(),Be.clear(),$e(),Re.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",qe.start(S,()=>{document.body.style.WebkitUserSelect=Re.current,st(Fe)})},on=Fe=>{ee.props.onTouchEnd&&ee.props.onTouchEnd(Fe),$e(),_e.start(k,()=>{ht(Fe)})};O.useEffect(()=>{if(!Ne)return;function Fe(mr){mr.key==="Escape"&&ht(mr)}return document.addEventListener("keydown",Fe),()=>{document.removeEventListener("keydown",Fe)}},[ht,Ne]);const K=Vt(Mi(ee),Ce,n);!G&&G!==0&&(Ne=!1);const ie=O.useRef(),me=Fe=>{const mr=ee.props;mr.onMouseMove&&mr.onMouseMove(Fe),Xi={x:Fe.clientX,y:Fe.clientY},ie.current&&ie.current.update()},Ee={},Pe=typeof G=="string";l?(Ee.title=!Ne&&Pe&&!d?G:null,Ee["aria-describedby"]=Ne?Ke:null):(Ee["aria-label"]=Pe?G:null,Ee["aria-labelledby"]=Ne&&!Pe?Ke:null);const Se={...Ee,...Q,...ee.props,className:Ve(Q.className,ee.props.className),onTouchStart:Kt,ref:K,...v?{onMouseMove:me}:{}},Rt={};f||(Se.onTouchStart=bt,Se.onTouchEnd=on),d||(Se.onMouseOver=ms(st,Se.onMouseOver),Se.onMouseLeave=ms(Nt,Se.onMouseLeave),Ie||(Rt.onMouseOver=st,Rt.onMouseLeave=Nt)),c||(Se.onFocus=ms(Ht,Se.onFocus),Se.onBlur=ms(it,Se.onBlur),Ie||(Rt.onFocus=Ht,Rt.onBlur=it));const yt={...r,isRtl:oe,arrow:i,disableInteractive:Ie,placement:z,PopperComponentProp:V,touch:xe.current},Qt=typeof $.popper=="function"?$.popper(yt):$.popper,pe=O.useMemo(()=>{let Fe=[{name:"arrow",enabled:!!ve,options:{element:ve,padding:4}}];return P.popperOptions?.modifiers&&(Fe=Fe.concat(P.popperOptions.modifiers)),Qt?.popperOptions?.modifiers&&(Fe=Fe.concat(Qt.popperOptions.modifiers)),{...P.popperOptions,...Qt?.popperOptions,modifiers:Fe}},[ve,P.popperOptions,Qt?.popperOptions]),ke=B7(yt),et=typeof $.transition=="function"?$.transition(yt):$.transition,At={slots:{popper:o.Popper,transition:o.Transition??q,tooltip:o.Tooltip,arrow:o.Arrow,...W},slotProps:{arrow:$.arrow??u.arrow,popper:{...P,...Qt??u.popper},tooltip:$.tooltip??u.tooltip,transition:{...Y,...et??u.transition}}},[os,ug]=Et("popper",{elementType:F7,externalForwardedProps:At,ownerState:yt,className:Ve(ke.popper,P?.className)}),[lg,cg]=Et("transition",{elementType:Gs,externalForwardedProps:At,ownerState:yt}),[dg,hg]=Et("tooltip",{elementType:H7,className:ke.tooltip,externalForwardedProps:At,ownerState:yt}),[fg,pg]=Et("arrow",{elementType:z7,className:ke.arrow,externalForwardedProps:At,ownerState:yt,ref:B});return R.jsxs(O.Fragment,{children:[O.cloneElement(ee,Se),R.jsx(os,{as:V??ip,placement:z,anchorEl:v?{getBoundingClientRect:()=>({top:Xi.y,left:Xi.x,right:Xi.x,bottom:Xi.y,width:0,height:0})}:N,popperRef:ie,open:N?Ne:!1,id:Ke,transition:!0,...Rt,...ug,popperOptions:pe,children:({TransitionProps:Fe})=>R.jsx(lg,{timeout:de.transitions.duration.shorter,...Fe,...cg,children:R.jsxs(dg,{...hg,children:[G,i?R.jsx(fg,{...pg}):null]})})})]})}),Ep=O.createContext();function U7(e){return gt("MuiTable",e)}at("MuiTable",["root","stickyHeader"]);const V7=e=>{const{classes:t,stickyHeader:n}=e;return Ye({root:["root",n&&"stickyHeader"]},U7,t)},j7=le("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(ct(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),fd="table",q7=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiTable"}),{className:i,component:a=fd,padding:s="normal",size:o="medium",stickyHeader:u=!1,...l}=r,c={...r,component:a,padding:s,size:o,stickyHeader:u},d=V7(c),p=O.useMemo(()=>({padding:s,size:o,stickyHeader:u}),[s,o,u]);return R.jsx(Ep.Provider,{value:p,children:R.jsx(j7,{as:a,role:a===fd?null:"table",ref:n,className:Ve(d.root,i),ownerState:c,...l})})}),To=O.createContext();function $7(e){return gt("MuiTableBody",e)}at("MuiTableBody",["root"]);const W7=e=>{const{classes:t}=e;return Ye({root:["root"]},$7,t)},Y7=le("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),G7={variant:"body"},pd="tbody",X7=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiTableBody"}),{className:i,component:a=pd,...s}=r,o={...r,component:a},u=W7(o);return R.jsx(To.Provider,{value:G7,children:R.jsx(Y7,{className:Ve(u.root,i),as:a,ref:n,role:a===pd?null:"rowgroup",ownerState:o,...s})})}),K7=e=>{const{classes:t,variant:n,align:r,padding:i,size:a,stickyHeader:s}=e,o={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${St(r)}`,i!=="normal"&&`padding${St(i)}`,`size${St(a)}`]};return Ye(o,Ug,t)},Q7=le("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${St(n.size)}`],n.padding!=="normal"&&t[`padding${St(n.padding)}`],n.align!=="inherit"&&t[`align${St(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(ct(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${Vg.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),md=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:s,padding:o,scope:u,size:l,sortDirection:c,variant:d,...p}=r,f=O.useContext(Ep),b=O.useContext(To),y=b&&b.variant==="head";let S;s?S=s:S=y?"th":"td";let v=u;S==="td"?v=void 0:!v&&y&&(v="col");const w=d||b&&b.variant,x={...r,align:i,component:S,padding:o||(f&&f.padding?f.padding:"normal"),size:l||(f&&f.size?f.size:"medium"),sortDirection:c,stickyHeader:w==="head"&&f&&f.stickyHeader,variant:w},k=K7(x);let M=null;return c&&(M=c==="asc"?"ascending":"descending"),R.jsx(Q7,{as:S,ref:n,className:Ve(k.root,a),"aria-sort":M,scope:v,ownerState:x,...p})});function Z7(e){return gt("MuiTableContainer",e)}at("MuiTableContainer",["root"]);const J7=e=>{const{classes:t}=e;return Ye({root:["root"]},Z7,t)},e8=le("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),t8=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiTableContainer"}),{className:i,component:a="div",...s}=r,o={...r,component:a},u=J7(o);return R.jsx(e8,{ref:n,as:a,className:Ve(u.root,i),ownerState:o,...s})});function n8(e){return gt("MuiTableHead",e)}at("MuiTableHead",["root"]);const r8=e=>{const{classes:t}=e;return Ye({root:["root"]},n8,t)},i8=le("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),a8={variant:"head"},gd="thead",s8=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiTableHead"}),{className:i,component:a=gd,...s}=r,o={...r,component:a},u=r8(o);return R.jsx(To.Provider,{value:a8,children:R.jsx(i8,{as:a,className:Ve(u.root,i),ref:n,role:a===gd?null:"rowgroup",ownerState:o,...s})})}),o8=e=>{const{classes:t,selected:n,hover:r,head:i,footer:a}=e;return Ye({root:["root",n&&"selected",r&&"hover",i&&"head",a&&"footer"]},jg,t)},u8=le("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(ct(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Bc.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Bc.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),bd="tr",l8=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiTableRow"}),{className:i,component:a=bd,hover:s=!1,selected:o=!1,...u}=r,l=O.useContext(To),c={...r,component:a,hover:s,selected:o,head:l&&l.variant==="head",footer:l&&l.variant==="footer"},d=o8(c);return R.jsx(u8,{as:a,ref:n,className:Ve(d.root,i),role:a===bd?null:"row",ownerState:c,...u})});/** + )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:D7||{"&::after":{animation:`${Zu} 2s linear 0.5s infinite`}}}]}})),L7=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiSkeleton"}),{animation:i="pulse",className:a,component:s="span",height:o,style:u,variant:l="text",width:c,...d}=r,p={...r,animation:i,component:s,variant:l,hasChildren:!!d.children},f=R7(p);return M.jsx(P7,{as:s,ref:n,className:Ve(f.root,a),ownerState:p,...d,style:{width:c,height:o,...u}})});function O7(e){return gt("MuiTooltip",e)}const Tt=at("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function _7(e){return Math.round(e*1e5)/1e5}const B7=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${St(a.split("-")[0])}`],arrow:["arrow"]};return Ye(s,O7,t)},F7=le(ip,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(ct(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Tt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Tt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Tt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Tt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Tt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Tt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Tt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Tt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),H7=le("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${St(n.placement.split("-")[0])}`]]}})(ct(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Tt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Tt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Tt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Tt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${_7(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Tt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Tt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Tt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Tt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Tt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Tt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Tt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Tt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Tt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Tt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),z7=le("span",{name:"MuiTooltip",slot:"Arrow"})(ct(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let ps=!1;const hd=new zg;let Xi={x:0,y:0};function ms(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Xs=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:a,classes:s,components:o={},componentsProps:u={},describeChild:l=!1,disableFocusListener:c=!1,disableHoverListener:d=!1,disableInteractive:p=!1,disableTouchListener:f=!1,enterDelay:b=100,enterNextDelay:y=0,enterTouchDelay:S=700,followCursor:v=!1,id:w,leaveDelay:x=0,leaveTouchDelay:k=1500,onClose:R,onOpen:C,open:H,placement:z="bottom",PopperComponent:V,PopperProps:P={},slotProps:$={},slots:W={},title:G,TransitionComponent:q,TransitionProps:Y,...Q}=r,ee=O.isValidElement(a)?a:M.jsx("span",{children:a}),de=Va(),oe=Yl(),[N,Ce]=O.useState(),[ve,B]=O.useState(null),xe=O.useRef(!1),Ie=p||v,Be=ra(),je=ra(),_e=ra(),qe=ra(),[Te,De]=ju({controlled:H,default:!1,name:"Tooltip",state:"open"});let Ne=Te;const Ke=Gl(w),Re=O.useRef(),$e=Aa(()=>{Re.current!==void 0&&(document.body.style.WebkitUserSelect=Re.current,Re.current=void 0),qe.clear()});O.useEffect(()=>$e,[$e]);const wt=Fe=>{hd.clear(),ps=!0,De(!0),C&&!Ne&&C(Fe)},ht=Aa(Fe=>{hd.start(800+x,()=>{ps=!1}),De(!1),R&&Ne&&R(Fe),Be.start(de.transitions.duration.shortest,()=>{xe.current=!1})}),st=Fe=>{xe.current&&Fe.type!=="touchstart"||(N&&N.removeAttribute("title"),je.clear(),_e.clear(),b||ps&&y?je.start(ps?y:b,()=>{wt(Fe)}):wt(Fe))},Nt=Fe=>{je.clear(),_e.start(x,()=>{ht(Fe)})},[,ot]=O.useState(!1),it=Fe=>{_c(Fe.target)||(ot(!1),Nt(Fe))},Ht=Fe=>{N||Ce(Fe.currentTarget),_c(Fe.target)&&(ot(!0),st(Fe))},Kt=Fe=>{xe.current=!0;const mr=ee.props;mr.onTouchStart&&mr.onTouchStart(Fe)},bt=Fe=>{Kt(Fe),_e.clear(),Be.clear(),$e(),Re.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",qe.start(S,()=>{document.body.style.WebkitUserSelect=Re.current,st(Fe)})},on=Fe=>{ee.props.onTouchEnd&&ee.props.onTouchEnd(Fe),$e(),_e.start(k,()=>{ht(Fe)})};O.useEffect(()=>{if(!Ne)return;function Fe(mr){mr.key==="Escape"&&ht(mr)}return document.addEventListener("keydown",Fe),()=>{document.removeEventListener("keydown",Fe)}},[ht,Ne]);const K=Vt(Mi(ee),Ce,n);!G&&G!==0&&(Ne=!1);const ie=O.useRef(),me=Fe=>{const mr=ee.props;mr.onMouseMove&&mr.onMouseMove(Fe),Xi={x:Fe.clientX,y:Fe.clientY},ie.current&&ie.current.update()},Ee={},Pe=typeof G=="string";l?(Ee.title=!Ne&&Pe&&!d?G:null,Ee["aria-describedby"]=Ne?Ke:null):(Ee["aria-label"]=Pe?G:null,Ee["aria-labelledby"]=Ne&&!Pe?Ke:null);const Se={...Ee,...Q,...ee.props,className:Ve(Q.className,ee.props.className),onTouchStart:Kt,ref:K,...v?{onMouseMove:me}:{}},Rt={};f||(Se.onTouchStart=bt,Se.onTouchEnd=on),d||(Se.onMouseOver=ms(st,Se.onMouseOver),Se.onMouseLeave=ms(Nt,Se.onMouseLeave),Ie||(Rt.onMouseOver=st,Rt.onMouseLeave=Nt)),c||(Se.onFocus=ms(Ht,Se.onFocus),Se.onBlur=ms(it,Se.onBlur),Ie||(Rt.onFocus=Ht,Rt.onBlur=it));const yt={...r,isRtl:oe,arrow:i,disableInteractive:Ie,placement:z,PopperComponentProp:V,touch:xe.current},Qt=typeof $.popper=="function"?$.popper(yt):$.popper,pe=O.useMemo(()=>{let Fe=[{name:"arrow",enabled:!!ve,options:{element:ve,padding:4}}];return P.popperOptions?.modifiers&&(Fe=Fe.concat(P.popperOptions.modifiers)),Qt?.popperOptions?.modifiers&&(Fe=Fe.concat(Qt.popperOptions.modifiers)),{...P.popperOptions,...Qt?.popperOptions,modifiers:Fe}},[ve,P.popperOptions,Qt?.popperOptions]),ke=B7(yt),et=typeof $.transition=="function"?$.transition(yt):$.transition,At={slots:{popper:o.Popper,transition:o.Transition??q,tooltip:o.Tooltip,arrow:o.Arrow,...W},slotProps:{arrow:$.arrow??u.arrow,popper:{...P,...Qt??u.popper},tooltip:$.tooltip??u.tooltip,transition:{...Y,...et??u.transition}}},[os,ug]=Et("popper",{elementType:F7,externalForwardedProps:At,ownerState:yt,className:Ve(ke.popper,P?.className)}),[lg,cg]=Et("transition",{elementType:Gs,externalForwardedProps:At,ownerState:yt}),[dg,hg]=Et("tooltip",{elementType:H7,className:ke.tooltip,externalForwardedProps:At,ownerState:yt}),[fg,pg]=Et("arrow",{elementType:z7,className:ke.arrow,externalForwardedProps:At,ownerState:yt,ref:B});return M.jsxs(O.Fragment,{children:[O.cloneElement(ee,Se),M.jsx(os,{as:V??ip,placement:z,anchorEl:v?{getBoundingClientRect:()=>({top:Xi.y,left:Xi.x,right:Xi.x,bottom:Xi.y,width:0,height:0})}:N,popperRef:ie,open:N?Ne:!1,id:Ke,transition:!0,...Rt,...ug,popperOptions:pe,children:({TransitionProps:Fe})=>M.jsx(lg,{timeout:de.transitions.duration.shorter,...Fe,...cg,children:M.jsxs(dg,{...hg,children:[G,i?M.jsx(fg,{...pg}):null]})})})]})}),Ep=O.createContext();function U7(e){return gt("MuiTable",e)}at("MuiTable",["root","stickyHeader"]);const V7=e=>{const{classes:t,stickyHeader:n}=e;return Ye({root:["root",n&&"stickyHeader"]},U7,t)},j7=le("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(ct(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),fd="table",q7=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiTable"}),{className:i,component:a=fd,padding:s="normal",size:o="medium",stickyHeader:u=!1,...l}=r,c={...r,component:a,padding:s,size:o,stickyHeader:u},d=V7(c),p=O.useMemo(()=>({padding:s,size:o,stickyHeader:u}),[s,o,u]);return M.jsx(Ep.Provider,{value:p,children:M.jsx(j7,{as:a,role:a===fd?null:"table",ref:n,className:Ve(d.root,i),ownerState:c,...l})})}),To=O.createContext();function $7(e){return gt("MuiTableBody",e)}at("MuiTableBody",["root"]);const W7=e=>{const{classes:t}=e;return Ye({root:["root"]},$7,t)},Y7=le("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),G7={variant:"body"},pd="tbody",X7=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiTableBody"}),{className:i,component:a=pd,...s}=r,o={...r,component:a},u=W7(o);return M.jsx(To.Provider,{value:G7,children:M.jsx(Y7,{className:Ve(u.root,i),as:a,ref:n,role:a===pd?null:"rowgroup",ownerState:o,...s})})}),K7=e=>{const{classes:t,variant:n,align:r,padding:i,size:a,stickyHeader:s}=e,o={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${St(r)}`,i!=="normal"&&`padding${St(i)}`,`size${St(a)}`]};return Ye(o,Ug,t)},Q7=le("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${St(n.size)}`],n.padding!=="normal"&&t[`padding${St(n.padding)}`],n.align!=="inherit"&&t[`align${St(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(ct(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${Vg.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),md=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:s,padding:o,scope:u,size:l,sortDirection:c,variant:d,...p}=r,f=O.useContext(Ep),b=O.useContext(To),y=b&&b.variant==="head";let S;s?S=s:S=y?"th":"td";let v=u;S==="td"?v=void 0:!v&&y&&(v="col");const w=d||b&&b.variant,x={...r,align:i,component:S,padding:o||(f&&f.padding?f.padding:"normal"),size:l||(f&&f.size?f.size:"medium"),sortDirection:c,stickyHeader:w==="head"&&f&&f.stickyHeader,variant:w},k=K7(x);let R=null;return c&&(R=c==="asc"?"ascending":"descending"),M.jsx(Q7,{as:S,ref:n,className:Ve(k.root,a),"aria-sort":R,scope:v,ownerState:x,...p})});function Z7(e){return gt("MuiTableContainer",e)}at("MuiTableContainer",["root"]);const J7=e=>{const{classes:t}=e;return Ye({root:["root"]},Z7,t)},e8=le("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),t8=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiTableContainer"}),{className:i,component:a="div",...s}=r,o={...r,component:a},u=J7(o);return M.jsx(e8,{ref:n,as:a,className:Ve(u.root,i),ownerState:o,...s})});function n8(e){return gt("MuiTableHead",e)}at("MuiTableHead",["root"]);const r8=e=>{const{classes:t}=e;return Ye({root:["root"]},n8,t)},i8=le("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),a8={variant:"head"},gd="thead",s8=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiTableHead"}),{className:i,component:a=gd,...s}=r,o={...r,component:a},u=r8(o);return M.jsx(To.Provider,{value:a8,children:M.jsx(i8,{as:a,className:Ve(u.root,i),ref:n,role:a===gd?null:"rowgroup",ownerState:o,...s})})}),o8=e=>{const{classes:t,selected:n,hover:r,head:i,footer:a}=e;return Ye({root:["root",n&&"selected",r&&"hover",i&&"head",a&&"footer"]},jg,t)},u8=le("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(ct(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Bc.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Bc.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),bd="tr",l8=O.forwardRef(function(t,n){const r=Ge({props:t,name:"MuiTableRow"}),{className:i,component:a=bd,hover:s=!1,selected:o=!1,...u}=r,l=O.useContext(To),c={...r,component:a,hover:s,selected:o,head:l&&l.variant==="head",footer:l&&l.variant==="footer"},d=o8(c);return M.jsx(u8,{as:a,ref:n,className:Ve(d.root,i),role:a===bd?null:"row",ownerState:c,...u})});/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. @@ -67,7 +67,7 @@ import{y as mg,z as gg,r as O,C as bg,D as yg,j as R,c as Ve,_ as vg,R as us,E a * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const y8=[["path",{d:"M3 5a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-10z",key:"svg-0"}],["path",{d:"M7 20h10",key:"svg-1"}],["path",{d:"M9 16v4",key:"svg-2"}],["path",{d:"M15 16v4",key:"svg-3"}]],v8=In("outline","device-desktop","DeviceDesktop",y8);/** + */const y8=[["path",{d:"M10 15h-6a1 1 0 0 1 -1 -1v-8a1 1 0 0 1 1 -1h6",key:"svg-0"}],["path",{d:"M13 4m0 1a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1z",key:"svg-1"}],["path",{d:"M7 19l3 0",key:"svg-2"}],["path",{d:"M17 8l0 .01",key:"svg-3"}],["path",{d:"M17 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-4"}],["path",{d:"M9 15l0 4",key:"svg-5"}]],v8=In("outline","devices-2","Devices2",y8);/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. @@ -97,10 +97,10 @@ import{y as mg,z as gg,r as O,C as bg,D as yg,j as R,c as Ve,_ as vg,R as us,E a * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const R8=[["path",{d:"M7 3.34a10 10 0 1 1 -4.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 4.995 -8.336z",key:"svg-0"}]],M8=In("filled","circle-filled","CircleFilled",R8),D8={primary:Ls,secondary:Ls,info:Ls,error:Hc,warning:Hc,success:$g},P8=e=>{const{open:t,onClose:n=()=>{},titleId:r,title:i,contentId:a,content:s,color:o="primary",titleIconColor:u="warning",titleIcon:l=!0,cancelLabel:c,onCancel:d=()=>{},confirmLabel:p,onConfirm:f=()=>{},submitLabel:b,onSubmitValid:y,onSubmitInvalid:S,handleSubmit:v,secondaryAction:w,...x}=e,k=D8[o],[M,C]=O.useState(!1),H=W=>!(W===!1||typeof W=="object"&&W.closeDialog===!1),z=W=>async(...G)=>{if(!M)try{const q=W(...G);if(q instanceof Promise){C(!0);const Y=await q;C(!1),H(Y)&&n()}else H(q)&&n()}catch(q){C(!1),console.error("Error in dialog action:",q)}};let V;const P=[];c&&P.push({key:"cancel",children:c,color:"secondary",onClick:z(d),loading:M}),p&&P.push({key:"confirm",children:p,color:o,onClick:z(f),loading:M}),b&&(P.push({key:"submit",children:b,type:"submit",loading:M}),v&&y&&(V={onSubmit:W=>{W.preventDefault(),W.stopPropagation(),!M&&(C(!0),v(async(...G)=>{try{const q=await y(...G);C(!1),H(q)&&n()}catch(q){C(!1),console.error("Error in form submission:",q)}},async(...G)=>{try{await S?.(...G)}catch(q){console.error("Error in form validation:",q)}finally{C(!1)}})())}}));const $=()=>{M||n()};return R.jsxs(Z5,{open:t,onClose:$,"aria-labelledby":r,"aria-describedby":a,...x,component:V&&"form"||void 0,...V,children:[R.jsxs(hb,{id:!k&&r||void 0,children:[l==="form"&&R.jsx(qg,{})||l===!0&&R.jsx(Fc,{variant:"circle",color:u,children:R.jsx(k,{})})||R.jsx(Fc,{variant:"circle",color:u,children:l})||void 0,!l&&i,R.jsx(Kr,{size:"small",onClick:$,children:R.jsx(U1,{size:"1.25rem"})})]}),R.jsxs(ab,{children:[l&&R.jsx(Xe,{variant:"subtitle1",id:r,children:i}),R.jsx(lb,{id:a,children:s})]}),P.length>0&&R.jsxs(nb,{children:[R.jsx(Ar,{mr:"auto",children:w}),P.map(W=>O.createElement(V1,{...W,key:W.key,...P.length===1&&{fullWidth:!0}}))]})]})},$o=(e,t)=>{const[n,r]=O.useState(!1),i=R.jsx(P8,{...e,open:n,onClose:()=>{r(!1),e.onClose?.()}}),a=O.useMemo(()=>({open:()=>r(!0),close:()=>r(!1)}),[]);return[i,a]},L8=()=>R.jsxs("svg",{width:"100",height:"21",viewBox:"0 0 100 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[R.jsx("path",{d:"M25.9027 21C24.2555 21 22.9819 20.6707 22.082 20.012C21.1821 19.3687 20.6482 18.4344 20.4805 17.209H23.7064C23.9352 18.1586 24.6825 18.6335 25.9485 18.6335C26.8789 18.6335 27.5576 18.4037 27.9847 17.9442C28.4118 17.5 28.6253 16.8184 28.6253 15.8993V14.0383C28.3203 14.5897 27.8779 15.0339 27.2984 15.3709C26.7188 15.6926 26.0324 15.8534 25.2393 15.8534C24.2478 15.8534 23.3556 15.6313 22.5624 15.1871C21.7693 14.7276 21.1439 14.0536 20.6864 13.1652C20.2288 12.2768 20 11.2046 20 9.94858C20 8.69256 20.2288 7.62035 20.6864 6.73195C21.1439 5.82823 21.7693 5.15427 22.5624 4.71007C23.3556 4.25055 24.2478 4.02079 25.2393 4.02079C25.9866 4.02079 26.6654 4.18928 27.2755 4.52626C27.8856 4.86324 28.3355 5.29978 28.6253 5.83589V4.36543H31.7826V15.7845C31.7826 17.3928 31.3021 18.6641 30.3412 19.5985C29.3803 20.5328 27.9008 21 25.9027 21ZM25.9256 13.4409C26.7493 13.4409 27.4127 13.1116 27.9161 12.453C28.4194 11.7943 28.6711 10.9519 28.6711 9.9256C28.6711 8.89934 28.4194 8.06455 27.9161 7.42123C27.4127 6.76258 26.7493 6.43326 25.9256 6.43326C25.041 6.43326 24.3699 6.73961 23.9123 7.3523C23.4547 7.96499 23.2259 8.82276 23.2259 9.9256C23.2259 11.0284 23.4547 11.8939 23.9123 12.5219C24.3699 13.1346 25.041 13.4409 25.9256 13.4409Z",fill:"black"}),R.jsx("path",{d:"M33.39 16.1751V4.36543H36.4787V6.91575C36.8905 5.81291 37.4091 5.03939 38.0344 4.59519C38.6598 4.15098 39.5368 3.95952 40.6655 4.02079V6.98468C40.3299 6.95405 40.0783 6.93873 39.9105 6.93873C39.4682 6.93873 39.0487 7 38.6522 7.12254C37.2489 7.59737 36.5473 9.01422 36.5473 11.3731V16.1751H33.39Z",fill:"black"}),R.jsx("path",{d:"M44.1585 16.4967C42.9382 16.4967 41.9316 16.1751 41.1384 15.5317C40.3606 14.8884 39.9716 14 39.9716 12.8665C39.9716 11.9628 40.2157 11.2659 40.7037 10.7757C41.2071 10.2702 41.7714 9.9256 42.3968 9.74179C43.0374 9.55799 43.7619 9.41247 44.5703 9.30525L45.5312 9.19037C46.3396 9.09847 46.9192 8.96061 47.27 8.7768C47.636 8.57768 47.8191 8.20241 47.8191 7.65098C47.8191 7.19147 47.6589 6.83917 47.3386 6.59409C47.0183 6.34902 46.5607 6.22648 45.9659 6.22648C45.3863 6.22648 44.9135 6.34902 44.5474 6.59409C44.1966 6.82385 43.9754 7.14551 43.8839 7.55908H40.4978C40.7266 6.44092 41.3138 5.57549 42.2595 4.9628C43.2204 4.33479 44.4788 4.02079 46.0345 4.02079C49.2986 4.02079 50.9306 5.26149 50.9306 7.74289V13.326C50.9306 14.2451 51.0602 15.1947 51.3195 16.1751H48.208C48.086 15.6083 48.0021 15.1105 47.9563 14.6816C47.6055 15.233 47.1022 15.6772 46.4463 16.0142C45.7905 16.3359 45.0278 16.4967 44.1585 16.4967ZM45.1422 14.1532C45.9354 14.1532 46.576 13.8928 47.0641 13.372C47.5674 12.8512 47.8191 12.1849 47.8191 11.3731V10.2013C47.6055 10.4617 47.3386 10.6608 47.0183 10.7987C46.7133 10.9365 46.2709 11.0514 45.6913 11.1433C44.8372 11.2965 44.2195 11.4803 43.8381 11.6947C43.4568 11.8939 43.2662 12.2538 43.2662 12.7746C43.2662 13.2035 43.4416 13.5405 43.7924 13.7856C44.1432 14.0306 44.5932 14.1532 45.1422 14.1532Z",fill:"black"}),R.jsx("path",{d:"M63.6153 0.0919039V16.1751H60.458V14.7965C60.1682 15.3173 59.7183 15.7385 59.1082 16.0602C58.4981 16.3665 57.7964 16.5197 57.0033 16.5197C56.0119 16.5197 55.112 16.267 54.3036 15.7615C53.5105 15.256 52.8775 14.5361 52.4047 13.6018C51.9471 12.6521 51.7183 11.5416 51.7183 10.2702C51.7183 8.99891 51.9471 7.89606 52.4047 6.96171C52.8775 6.01203 53.5105 5.28446 54.3036 4.77899C55.112 4.27352 56.0119 4.02079 57.0033 4.02079C57.7812 4.02079 58.4752 4.18928 59.0853 4.52626C59.7106 4.84792 60.1682 5.2768 60.458 5.81291V0.0919039H63.6153ZM57.6897 14.0383C58.5438 14.0383 59.2226 13.686 59.7259 12.9814C60.2445 12.2768 60.5038 11.3731 60.5038 10.2702C60.5038 9.1674 60.2445 8.26368 59.7259 7.55908C59.2226 6.85449 58.5438 6.50219 57.6897 6.50219C56.7898 6.50219 56.1034 6.83917 55.6306 7.51313C55.173 8.17177 54.9442 9.09081 54.9442 10.2702C54.9442 11.4497 55.173 12.3764 55.6306 13.0503C56.1034 13.709 56.7898 14.0383 57.6897 14.0383Z",fill:"black"}),R.jsx("path",{d:"M68.4939 3.10175H64.9476V0H68.4939V3.10175ZM68.2879 16.1751H65.1764V4.36543H68.2879V16.1751Z",fill:"black"}),R.jsx("path",{d:"M75.1212 14.0842C76.2194 14.0842 76.9515 13.7396 77.3176 13.0503H80.6121C80.2766 14.1225 79.6207 14.9726 78.6446 15.6007C77.6836 16.2133 76.4939 16.5197 75.0755 16.5197C73.7942 16.5197 72.6808 16.2593 71.7351 15.7385C70.8047 15.2177 70.0879 14.4902 69.5845 13.5558C69.0812 12.6061 68.8295 11.5186 68.8295 10.2932C68.8295 9.09847 69.1041 8.02626 69.6532 7.07659C70.2023 6.1116 70.9344 5.36105 71.8495 4.82495C72.7799 4.28884 73.7942 4.02079 74.8924 4.02079C76.0821 4.02079 77.1269 4.30416 78.0268 4.8709C78.942 5.42232 79.6589 6.24179 80.1774 7.32932C80.696 8.40153 80.9629 9.69584 80.9782 11.2123H72.0555C72.1165 12.0853 72.4291 12.7823 72.9935 13.3031C73.5731 13.8239 74.2823 14.0842 75.1212 14.0842ZM75.0068 6.45624C74.2594 6.45624 73.6112 6.70131 73.0621 7.19147C72.5283 7.68162 72.2003 8.29431 72.0783 9.02954H77.8438C77.7065 8.24836 77.3938 7.62801 76.9058 7.16849C76.4177 6.69365 75.7847 6.45624 75.0068 6.45624Z",fill:"black"}),R.jsx("path",{d:"M81.5786 16.1751V4.36543H84.6444V5.85886C84.9647 5.35339 85.407 4.92451 85.9713 4.57221C86.5357 4.2046 87.2449 4.02079 88.0991 4.02079C89.304 4.02079 90.2421 4.39606 90.9132 5.14661C91.5995 5.89716 91.9427 6.95405 91.9427 8.31729V16.1751H88.7854V8.54705C88.7854 7.21444 88.2135 6.54814 87.0695 6.54814C86.4289 6.54814 85.8798 6.80853 85.4222 7.32932C84.9647 7.83479 84.7359 8.593 84.7359 9.60394V16.1751H81.5786Z",fill:"black"}),R.jsx("path",{d:"M98.1011 16.2899C96.9876 16.2899 96.0801 16.0066 95.3785 15.4398C94.6921 14.8731 94.3489 13.9311 94.3489 12.6138V6.7779H92.3356V4.36543H94.3489V0.873086H97.4147V4.36543H99.7712V6.7779H97.4147V12.0853C97.4147 12.698 97.5291 13.1575 97.7579 13.4639C98.0019 13.7549 98.3985 13.9004 98.9476 13.9004C99.2374 13.9004 99.5882 13.8545 100 13.7626V16.0372C99.5272 16.2057 98.8942 16.2899 98.1011 16.2899Z",fill:"black"}),R.jsx("path",{d:"M3 13H0V16H3V13Z",fill:"black"}),R.jsx("path",{d:"M18 0V2.85011L8.94745 16H6V13.1499L15.0521 0H18Z",fill:"black"})]}),yd=()=>R.jsxs("svg",{width:"26",height:"28",viewBox:"0 0 26 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[R.jsx("path",{d:"M7 19H4V22H7V19Z",fill:"black"}),R.jsx("path",{d:"M22 6V8.85011L12.9475 22H10V19.1499L19.0521 6H22Z",fill:"black"})]}),O8=le(xp)(({theme:e})=>{const{spacing:t}=e;return{height:"4rem"}}),_8=le(s7)(({theme:e})=>{const{spacing:t}=e;return{height:"3.25rem",gap:"0.5rem"}}),B8=le("img")(({theme:e})=>{const{palette:t}=e;return{width:"2.25rem",height:"2.25rem",borderRadius:"0.5rem",border:`1px solid ${t.divider}`,objectFit:"cover"}}),F8=le("span")(({theme:e})=>{const{palette:t,typography:n}=e;return{...n.subtitle2,fontWeight:n.fontWeightLight,color:t.text.primary}}),H8=le("span")(({theme:e})=>{const{palette:t,typography:n}=e;return{...n.body2,fontWeight:n.fontWeightLight,color:t.text.secondary}}),vd=(e,t)=>R.jsxs(_8,{value:e.name,children:[R.jsx(B8,{src:e.logoUrl}),R.jsxs(Qe,{gap:.25,children:[R.jsx(F8,{children:e.displayName}),R.jsx(H8,{children:e.name})]})]},e.name),AL=()=>{const[{modelName:e,modelInfoList:t},{setModelName:n}]=ja();return R.jsx(O8,{value:e,onChange:r=>n(String(r.target.value)),renderValue:r=>{const i=t.find(a=>a.name===r);return i&&vd(i)||void 0},children:t.map(r=>vd(r,r.name===e))})},z8={"linux/mac":"Linux/MacOS",windows:"Windows"},U8=le("div")(({theme:e})=>{const{palette:t,spacing:n}=e;return{display:"flex",flexFlow:"row nowrap",justifyContent:"space-between",alignItems:"center",paddingInline:n(2),paddingBlock:n(1.5),gap:n(1),overflow:"hidden",borderRadius:"0.7rem",backgroundColor:t.background.area}}),Td=()=>{const[{clusterInfo:{nodeJoinCommand:e}}]=ja(),[t,n]=O.useState();O.useEffect(()=>{if(t){const i=setTimeout(()=>{n(void 0)},2e3);return()=>clearTimeout(i)}},[t]);const r=$s(async i=>{await navigator.clipboard.writeText(e[i]),n(i)});return R.jsx(Qe,{gap:1,children:Object.entries(e).map(([i,a])=>R.jsxs(Qe,{gap:1,children:[R.jsxs(Xe,{variant:"subtitle2",children:["For ",z8[i]||i,":"]}),R.jsxs(U8,{children:[R.jsx(Xe,{sx:{flex:1,lineHeight:"1.125rem",whiteSpace:"wrap"},variant:"pre",children:a}),R.jsx(Kr,{sx:{flex:"none",fontSize:"1.5rem"},size:"em",onClick:()=>r(i),children:t===i&&R.jsx(Sp,{})||R.jsx(wp,{})})]})]},i))})};function l0(e,t){e.indexOf(t)===-1&&e.push(t)}function c0(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const ur=(e,t,n)=>n>t?t:n{};const lr={},Ap=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Cp(e){return typeof e=="object"&&e!==null}const kp=e=>/^0[^.\s]+$/u.test(e);function h0(e){let t;return()=>(t===void 0&&(t=e()),t)}const En=e=>e,V8=(e,t)=>n=>t(e(n)),Wa=(...e)=>e.reduce(V8),Ra=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class f0{constructor(){this.subscriptions=[]}add(t){return l0(this.subscriptions,t),()=>c0(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;ae*1e3,jn=e=>e/1e3;function Ip(e,t){return t?e*(1e3/t):0}const Np=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,j8=1e-7,q8=12;function $8(e,t,n,r,i){let a,s,o=0;do s=t+(n-t)/2,a=Np(s,r,i)-e,a>0?n=s:t=s;while(Math.abs(a)>j8&&++o$8(a,0,1,e,n);return a=>a===0||a===1?a:Np(i(a),t,r)}const Rp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Mp=e=>t=>1-e(1-t),Dp=Ya(.33,1.53,.69,.99),p0=Mp(Dp),Pp=Rp(p0),Lp=e=>(e*=2)<1?.5*p0(e):.5*(2-Math.pow(2,-10*(e-1))),m0=e=>1-Math.sin(Math.acos(e)),Op=Mp(m0),_p=Rp(m0),W8=Ya(.42,0,1,1),Y8=Ya(0,0,.58,1),Bp=Ya(.42,0,.58,1),G8=e=>Array.isArray(e)&&typeof e[0]!="number",Fp=e=>Array.isArray(e)&&typeof e[0]=="number",X8={linear:En,easeIn:W8,easeInOut:Bp,easeOut:Y8,circIn:m0,circInOut:_p,circOut:Op,backIn:p0,backInOut:Pp,backOut:Dp,anticipate:Lp},K8=e=>typeof e=="string",xd=e=>{if(Fp(e)){d0(e.length===4);const[t,n,r,i]=e;return Ya(t,n,r,i)}else if(K8(e))return X8[e];return e},Hp=O.createContext({}),zp=O.createContext({strict:!1}),Up=O.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),xo=O.createContext({});function Eo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ma(e){return typeof e=="string"||Array.isArray(e)}const g0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],b0=["initial",...g0];function So(e){return Eo(e.animate)||b0.some(t=>Ma(e[t]))}function Vp(e){return!!(So(e)||e.variants)}function Q8(e,t){if(So(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ma(n)?n:void 0,animate:Ma(r)?r:void 0}}return e.inherit!==!1?t:{}}function Z8(e){const{initial:t,animate:n}=Q8(e,O.useContext(xo));return O.useMemo(()=>({initial:t,animate:n}),[Ed(t),Ed(n)])}function Ed(e){return Array.isArray(e)?e.join(" "):e}const gs=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function J8(e,t){let n=new Set,r=new Set,i=!1,a=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function u(c){s.has(c)&&(l.schedule(c),e()),c(o)}const l={schedule:(c,d=!1,p=!1)=>{const b=p&&i?n:r;return d&&s.add(c),b.has(c)||b.add(c),c},cancel:c=>{r.delete(c),s.delete(c)},process:c=>{if(o=c,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(u),n.clear(),i=!1,a&&(a=!1,l.process(c))}};return l}const ey=40;function jp(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=gs.reduce((x,k)=>(x[k]=J8(a),x),{}),{setup:o,read:u,resolveKeyframes:l,preUpdate:c,update:d,preRender:p,render:f,postRender:b}=s,y=()=>{const x=lr.useManualTiming?i.timestamp:performance.now();n=!1,lr.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,ey),1)),i.timestamp=x,i.isProcessing=!0,o.process(i),u.process(i),l.process(i),c.process(i),d.process(i),p.process(i),f.process(i),b.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},S=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:gs.reduce((x,k)=>{const M=s[k];return x[k]=(C,H=!1,z=!1)=>(n||S(),M.schedule(C,H,z)),x},{}),cancel:x=>{for(let k=0;k(_s===void 0&&tn.set(Ft.isProcessing||lr.useManualTiming?Ft.timestamp:performance.now()),_s),set:e=>{_s=e,queueMicrotask(ty)}},qp=e=>t=>typeof t=="string"&&t.startsWith(e),y0=qp("--"),ny=qp("var(--"),v0=e=>ny(e)?ry.test(e.split("/*")[0].trim()):!1,ry=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Di={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Da={...Di,transform:e=>ur(0,1,e)},bs={...Di,default:1},da=e=>Math.round(e*1e5)/1e5,T0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function iy(e){return e==null}const ay=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,x0=(e,t)=>n=>!!(typeof n=="string"&&ay.test(n)&&n.startsWith(e)||t&&!iy(n)&&Object.prototype.hasOwnProperty.call(n,t)),$p=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,s,o]=r.match(T0);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},sy=e=>ur(0,255,e),Yo={...Di,transform:e=>Math.round(sy(e))},qr={test:x0("rgb","red"),parse:$p("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Yo.transform(e)+", "+Yo.transform(t)+", "+Yo.transform(n)+", "+da(Da.transform(r))+")"};function oy(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Ju={test:x0("#"),parse:oy,transform:qr.transform},Ga=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),vr=Ga("deg"),qn=Ga("%"),Ae=Ga("px"),uy=Ga("vh"),ly=Ga("vw"),Sd={...qn,parse:e=>qn.parse(e)/100,transform:e=>qn.transform(e*100)},hi={test:x0("hsl","hue"),parse:$p("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+qn.transform(da(t))+", "+qn.transform(da(n))+", "+da(Da.transform(r))+")"},Pt={test:e=>qr.test(e)||Ju.test(e)||hi.test(e),parse:e=>qr.test(e)?qr.parse(e):hi.test(e)?hi.parse(e):Ju.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?qr.transform(e):hi.transform(e),getAnimatableNone:e=>{const t=Pt.parse(e);return t.alpha=0,Pt.transform(t)}},cy=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function dy(e){return isNaN(e)&&typeof e=="string"&&(e.match(T0)?.length||0)+(e.match(cy)?.length||0)>0}const Wp="number",Yp="color",hy="var",fy="var(",wd="${}",py=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Pa(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const o=t.replace(py,u=>(Pt.test(u)?(r.color.push(a),i.push(Yp),n.push(Pt.parse(u))):u.startsWith(fy)?(r.var.push(a),i.push(hy),n.push(u)):(r.number.push(a),i.push(Wp),n.push(parseFloat(u))),++a,wd)).split(wd);return{values:n,split:o,indexes:r,types:i}}function Gp(e){return Pa(e).values}function Xp(e){const{split:t,types:n}=Pa(e),r=t.length;return i=>{let a="";for(let s=0;stypeof e=="number"?0:Pt.test(e)?Pt.getAnimatableNone(e):e;function gy(e){const t=Gp(e);return Xp(e)(t.map(my))}const kr={test:dy,parse:Gp,createTransformer:Xp,getAnimatableNone:gy};function Go(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function by({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,s=0;if(!t)i=a=s=n;else{const o=n<.5?n*(1+t):n+t-n*t,u=2*n-o;i=Go(u,o,e+1/3),a=Go(u,o,e),s=Go(u,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}function Ks(e,t){return n=>n>0?t:e}const mt=(e,t,n)=>e+(t-e)*n,Xo=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},yy=[Ju,qr,hi],vy=e=>yy.find(t=>t.test(e));function Ad(e){const t=vy(e);if(!t)return!1;let n=t.parse(e);return t===hi&&(n=by(n)),n}const Cd=(e,t)=>{const n=Ad(e),r=Ad(t);if(!n||!r)return Ks(e,t);const i={...n};return a=>(i.red=Xo(n.red,r.red,a),i.green=Xo(n.green,r.green,a),i.blue=Xo(n.blue,r.blue,a),i.alpha=mt(n.alpha,r.alpha,a),qr.transform(i))},el=new Set(["none","hidden"]);function Ty(e,t){return el.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function xy(e,t){return n=>mt(e,t,n)}function E0(e){return typeof e=="number"?xy:typeof e=="string"?v0(e)?Ks:Pt.test(e)?Cd:wy:Array.isArray(e)?Kp:typeof e=="object"?Pt.test(e)?Cd:Ey:Ks}function Kp(e,t){const n=[...e],r=n.length,i=e.map((a,s)=>E0(a)(a,t[s]));return a=>{for(let s=0;s{for(const a in r)n[a]=r[a](i);return n}}function Sy(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i{const n=kr.createTransformer(t),r=Pa(e),i=Pa(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?el.has(e)&&!i.values.length||el.has(t)&&!r.values.length?Ty(e,t):Wa(Kp(Sy(r,i),i.values),n):Ks(e,t)};function Qp(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?mt(e,t,n):E0(e)(e,t)}const Ay=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>lt.update(t,n),stop:()=>Cr(t),now:()=>Ft.isProcessing?Ft.timestamp:tn.now()}},Zp=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a=Qs?1/0:t}function Cy(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(S0(r),Qs);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:jn(i)}}const ky=5;function Jp(e,t,n){const r=Math.max(t-ky,0);return Ip(n-e(r),t-r)}const xt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Ko=.001;function Iy({duration:e=xt.duration,bounce:t=xt.bounce,velocity:n=xt.velocity,mass:r=xt.mass}){let i,a,s=1-t;s=ur(xt.minDamping,xt.maxDamping,s),e=ur(xt.minDuration,xt.maxDuration,jn(e)),s<1?(i=l=>{const c=l*s,d=c*e,p=c-n,f=tl(l,s),b=Math.exp(-d);return Ko-p/f*b},a=l=>{const d=l*s*e,p=d*n+n,f=Math.pow(s,2)*Math.pow(l,2)*e,b=Math.exp(-d),y=tl(Math.pow(l,2),s);return(-i(l)+Ko>0?-1:1)*((p-f)*b)/y}):(i=l=>{const c=Math.exp(-l*e),d=(l-n)*e+1;return-Ko+c*d},a=l=>{const c=Math.exp(-l*e),d=(n-l)*(e*e);return c*d});const o=5/e,u=Ry(i,a,o);if(e=Vn(e),isNaN(u))return{stiffness:xt.stiffness,damping:xt.damping,duration:e};{const l=Math.pow(u,2)*r;return{stiffness:l,damping:s*2*Math.sqrt(r*l),duration:e}}}const Ny=12;function Ry(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function Py(e){let t={velocity:xt.velocity,stiffness:xt.stiffness,damping:xt.damping,mass:xt.mass,isResolvedFromDuration:!1,...e};if(!kd(e,Dy)&&kd(e,My))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*ur(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:xt.mass,stiffness:i,damping:a}}else{const n=Iy(e);t={...t,...n,mass:xt.mass},t.isResolvedFromDuration=!0}return t}function Zs(e=xt.visualDuration,t=xt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],o={done:!1,value:a},{stiffness:u,damping:l,mass:c,duration:d,velocity:p,isResolvedFromDuration:f}=Py({...n,velocity:-jn(n.velocity||0)}),b=p||0,y=l/(2*Math.sqrt(u*c)),S=s-a,v=jn(Math.sqrt(u/c)),w=Math.abs(S)<5;r||(r=w?xt.restSpeed.granular:xt.restSpeed.default),i||(i=w?xt.restDelta.granular:xt.restDelta.default);let x;if(y<1){const M=tl(v,y);x=C=>{const H=Math.exp(-y*v*C);return s-H*((b+y*v*S)/M*Math.sin(M*C)+S*Math.cos(M*C))}}else if(y===1)x=M=>s-Math.exp(-v*M)*(S+(b+v*S)*M);else{const M=v*Math.sqrt(y*y-1);x=C=>{const H=Math.exp(-y*v*C),z=Math.min(M*C,300);return s-H*((b+y*v*S)*Math.sinh(z)+M*S*Math.cosh(z))/M}}const k={calculatedDuration:f&&d||null,next:M=>{const C=x(M);if(f)o.done=M>=d;else{let H=M===0?b:0;y<1&&(H=M===0?Vn(b):Jp(x,M,C));const z=Math.abs(H)<=r,V=Math.abs(s-C)<=i;o.done=z&&V}return o.value=o.done?s:C,o},toString:()=>{const M=Math.min(S0(k),Qs),C=Zp(H=>k.next(M*H).value,M,30);return M+"ms "+C},toTransition:()=>{}};return k}Zs.applyToOptions=e=>{const t=Cy(e,100,Zs);return e.ease=t.ease,e.duration=Vn(t.duration),e.type="keyframes",e};function nl({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:u,restDelta:l=.5,restSpeed:c}){const d=e[0],p={done:!1,value:d},f=z=>o!==void 0&&zu,b=z=>o===void 0?u:u===void 0||Math.abs(o-z)-y*Math.exp(-z/r),x=z=>v+w(z),k=z=>{const V=w(z),P=x(z);p.done=Math.abs(V)<=l,p.value=p.done?v:P};let M,C;const H=z=>{f(p.value)&&(M=z,C=Zs({keyframes:[p.value,b(p.value)],velocity:Jp(x,z,p.value),damping:i,stiffness:a,restDelta:l,restSpeed:c}))};return H(0),{calculatedDuration:null,next:z=>{let V=!1;return!C&&M===void 0&&(V=!0,k(z),H(z)),M!==void 0&&z>=M?C.next(z-M):(!V&&k(z),p)}}}function Ly(e,t,n){const r=[],i=n||lr.mix||Qp,a=e.length-1;for(let s=0;st[0];if(a===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=Ly(t,r,i),u=o.length,l=c=>{if(s&&c1)for(;dl(ur(e[0],e[a-1],c)):l}function _y(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ra(0,t,r);e.push(mt(n,1,i))}}function By(e){const t=[0];return _y(t,e.length-1),t}function Fy(e,t){return e.map(n=>n*t)}function Hy(e,t){return e.map(()=>t||Bp).splice(0,e.length-1)}function ha({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=G8(r)?r.map(xd):xd(r),a={done:!1,value:t[0]},s=Fy(n&&n.length===t.length?n:By(t),e),o=Oy(s,t,{ease:Array.isArray(i)?i:Hy(t,i)});return{calculatedDuration:e,next:u=>(a.value=o(u),a.done=u>=e,a)}}const zy=e=>e!==null;function w0(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(zy),o=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!o||r===void 0?a[o]:r}const Uy={decay:nl,inertia:nl,tween:ha,keyframes:ha,spring:Zs};function em(e){typeof e.type=="string"&&(e.type=Uy[e.type])}class A0{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Vy=e=>e/100;class C0 extends A0{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==tn.now()&&this.tick(tn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;em(t);const{type:n=ha,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=t;let{keyframes:o}=t;const u=n||ha;u!==ha&&typeof o[0]!="number"&&(this.mixKeyframes=Wa(Vy,Qp(o[0],o[1])),o=[0,100]);const l=u({...t,keyframes:o});a==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...o].reverse(),velocity:-s})),l.calculatedDuration===null&&(l.calculatedDuration=S0(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=l}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:l=0,keyframes:c,repeat:d,repeatType:p,repeatDelay:f,type:b,onUpdate:y,finalKeyframe:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-l*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?v<0:v>i;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let x=this.currentTime,k=r;if(d){const z=Math.min(this.currentTime,i)/o;let V=Math.floor(z),P=z%1;!P&&z>=1&&(P=1),P===1&&V--,V=Math.min(V,d+1),!!(V%2)&&(p==="reverse"?(P=1-P,f&&(P-=f/o)):p==="mirror"&&(k=s)),x=ur(0,1,P)*o}const M=w?{done:!1,value:c[0]}:k.next(x);a&&(M.value=a(M.value));let{done:C}=M;!w&&u!==null&&(C=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const H=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return H&&b!==nl&&(M.value=w0(c,this.options,S,this.speed)),y&&y(M.value),H&&this.finish(),M}then(t,n){return this.finished.then(t,n)}get duration(){return jn(this.calculatedDuration)}get time(){return jn(this.currentTime)}set time(t){t=Vn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(tn.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=jn(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Ay,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(tn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function jy(e){for(let t=1;te*180/Math.PI,rl=e=>{const t=$r(Math.atan2(e[1],e[0]));return il(t)},qy={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:rl,rotateZ:rl,skewX:e=>$r(Math.atan(e[1])),skewY:e=>$r(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},il=e=>(e=e%360,e<0&&(e+=360),e),Id=rl,Nd=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Rd=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),$y={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Nd,scaleY:Rd,scale:e=>(Nd(e)+Rd(e))/2,rotateX:e=>il($r(Math.atan2(e[6],e[5]))),rotateY:e=>il($r(Math.atan2(-e[2],e[0]))),rotateZ:Id,rotate:Id,skewX:e=>$r(Math.atan(e[4])),skewY:e=>$r(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function al(e){return e.includes("scale")?1:0}function sl(e,t){if(!e||e==="none")return al(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=$y,i=n;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=qy,i=o}if(!i)return al(t);const a=r[t],s=i[1].split(",").map(Yy);return typeof a=="function"?a(s):s[a]}const Wy=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return sl(n,t)};function Yy(e){return parseFloat(e.trim())}const Pi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Li=new Set(Pi),Md=e=>e===Di||e===Ae,Gy=new Set(["x","y","z"]),Xy=Pi.filter(e=>!Gy.has(e));function Ky(e){const t=[];return Xy.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Yr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>sl(t,"x"),y:(e,{transform:t})=>sl(t,"y")};Yr.translateX=Yr.x;Yr.translateY=Yr.y;const Gr=new Set;let ol=!1,ul=!1,ll=!1;function tm(){if(ul){const e=Array.from(Gr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Ky(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,s])=>{r.getValue(a)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ul=!1,ol=!1,Gr.forEach(e=>e.complete(ll)),Gr.clear()}function nm(){Gr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ul=!0)})}function Qy(){ll=!0,nm(),tm(),ll=!1}class k0{constructor(t,n,r,i,a,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Gr.add(this),ol||(ol=!0,lt.read(nm),lt.resolveKeyframes(tm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const a=i?.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const o=r.readValue(n,s);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=s),i&&a===void 0&&i.set(t[0])}jy(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Gr.delete(this)}cancel(){this.state==="scheduled"&&(Gr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Zy=e=>e.startsWith("--");function Jy(e,t,n){Zy(t)?e.style.setProperty(t,n):e.style[t]=n}const e9=h0(()=>window.ScrollTimeline!==void 0),t9={};function n9(e,t){const n=h0(e);return()=>t9[t]??n()}const rm=n9(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),aa=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Dd={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:aa([0,.65,.55,1]),circOut:aa([.55,0,1,.45]),backIn:aa([.31,.01,.66,-.59]),backOut:aa([.33,1.53,.69,.99])};function im(e,t){if(e)return typeof e=="function"?rm()?Zp(e,t):"ease-out":Fp(e)?aa(e):Array.isArray(e)?e.map(n=>im(n,t)||Dd.easeOut):Dd[e]}function r9(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:o="easeOut",times:u}={},l=void 0){const c={[t]:n};u&&(c.offset=u);const d=im(o,i);Array.isArray(d)&&(c.easing=d);const p={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};return l&&(p.pseudoElement=l),e.animate(c,p)}function am(e){return typeof e=="function"&&"applyToOptions"in e}function i9({type:e,...t}){return am(e)&&rm()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class a9 extends A0{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:o,onComplete:u}=t;this.isPseudoElement=!!a,this.allowFlatten=s,this.options=t,d0(typeof t.type!="string");const l=i9(t);this.animation=r9(n,r,i,l,a),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const c=w0(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(c):Jy(n,r,c),this.animation.cancel()}u?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return jn(Number(t))}get time(){return jn(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Vn(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&e9()?(this.animation.timeline=t,En):n(this)}}const sm={anticipate:Lp,backInOut:Pp,circInOut:_p};function s9(e){return e in sm}function o9(e){typeof e.ease=="string"&&s9(e.ease)&&(e.ease=sm[e.ease])}const Pd=10;class u9 extends a9{constructor(t){o9(t),em(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const o=new C0({...s,autoplay:!1}),u=Vn(this.finishedTime??this.time);n.setWithVelocity(o.sample(u-Pd).value,o.sample(u).value,Pd),o.stop()}}const Ld=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(kr.test(e)||e==="0")&&!e.startsWith("url("));function l9(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function f9(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:l}=t.owner.getProps();return h9()&&n&&d9.has(n)&&(n!=="transform"||!l)&&!u&&!r&&i!=="mirror"&&a!==0&&s!=="inertia"}const p9=40;class m9 extends A0{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",keyframes:o,name:u,motionValue:l,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tn.now();const p={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:s,name:u,motionValue:l,element:c,...d},f=c?.KeyframeResolver||k0;this.keyframeResolver=new f(o,(b,y,S)=>this.onKeyframesResolved(b,y,p,!S),u,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:a,type:s,velocity:o,delay:u,isHandoff:l,onUpdate:c}=r;this.resolvedAt=tn.now(),c9(t,a,s,o)||((lr.instantAnimations||!u)&&c?.(w0(t,r,n)),t[0]=t[t.length-1],cl(r),r.repeat=0);const p={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>p9?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},f=!l&&f9(p)?new u9({...p,element:p.motionValue.owner.current}):new C0(p);f.finished.then(()=>this.notifyFinished()).catch(En),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Qy()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const g9=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function b9(e){const t=g9.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function om(e,t,n=1){const[r,i]=b9(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const s=a.trim();return Ap(s)?parseFloat(s):s}return v0(i)?om(i,t,n+1):i}function I0(e,t){return e?.[t]??e?.default??e}const um=new Set(["width","height","top","left","right","bottom",...Pi]),y9={test:e=>e==="auto",parse:e=>e},lm=e=>t=>t.test(e),cm=[Di,Ae,qn,vr,ly,uy,y9],Od=e=>cm.find(lm(e));function v9(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||kp(e):!0}const T9=new Set(["brightness","contrast","saturate","opacity"]);function x9(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(T0)||[];if(!r)return e;const i=n.replace(r,"");let a=T9.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const E9=/\b([a-z-]*)\(.*?\)/gu,dl={...kr,getAnimatableNone:e=>{const t=e.match(E9);return t?t.map(x9).join(" "):e}},_d={...Di,transform:Math.round},S9={rotate:vr,rotateX:vr,rotateY:vr,rotateZ:vr,scale:bs,scaleX:bs,scaleY:bs,scaleZ:bs,skew:vr,skewX:vr,skewY:vr,distance:Ae,translateX:Ae,translateY:Ae,translateZ:Ae,x:Ae,y:Ae,z:Ae,perspective:Ae,transformPerspective:Ae,opacity:Da,originX:Sd,originY:Sd,originZ:Ae},N0={borderWidth:Ae,borderTopWidth:Ae,borderRightWidth:Ae,borderBottomWidth:Ae,borderLeftWidth:Ae,borderRadius:Ae,radius:Ae,borderTopLeftRadius:Ae,borderTopRightRadius:Ae,borderBottomRightRadius:Ae,borderBottomLeftRadius:Ae,width:Ae,maxWidth:Ae,height:Ae,maxHeight:Ae,top:Ae,right:Ae,bottom:Ae,left:Ae,padding:Ae,paddingTop:Ae,paddingRight:Ae,paddingBottom:Ae,paddingLeft:Ae,margin:Ae,marginTop:Ae,marginRight:Ae,marginBottom:Ae,marginLeft:Ae,backgroundPositionX:Ae,backgroundPositionY:Ae,...S9,zIndex:_d,fillOpacity:Da,strokeOpacity:Da,numOctaves:_d},w9={...N0,color:Pt,backgroundColor:Pt,outlineColor:Pt,fill:Pt,stroke:Pt,borderColor:Pt,borderTopColor:Pt,borderRightColor:Pt,borderBottomColor:Pt,borderLeftColor:Pt,filter:dl,WebkitFilter:dl},dm=e=>w9[e];function hm(e,t){let n=dm(e);return n!==dl&&(n=kr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const A9=new Set(["auto","none","0"]);function C9(e,t,n){let r=0,i;for(;r{t.getValue(o).set(u)}),this.resolveNoneKeyframes()}}function I9(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const fm=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function N9(e){return Cp(e)&&"offsetHeight"in e}const Bd=30,R9=e=>!isNaN(parseFloat(e));class M9{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const i=tn.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=tn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=R9(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new f0);const r=this.events[t].add(n);return t==="change"?()=>{r(),lt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=tn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Bd)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Bd);return Ip(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ci(e,t){return new M9(e,t)}const{schedule:R0}=jp(queueMicrotask,!1),Rn={x:!1,y:!1};function pm(){return Rn.x||Rn.y}function D9(e){return e==="x"||e==="y"?Rn[e]?null:(Rn[e]=!0,()=>{Rn[e]=!1}):Rn.x||Rn.y?null:(Rn.x=Rn.y=!0,()=>{Rn.x=Rn.y=!1})}function mm(e,t){const n=I9(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Fd(e){return!(e.pointerType==="touch"||pm())}function P9(e,t,n={}){const[r,i,a]=mm(e,n),s=o=>{if(!Fd(o))return;const{target:u}=o,l=t(u,o);if(typeof l!="function"||!u)return;const c=d=>{Fd(d)&&(l(d),u.removeEventListener("pointerleave",c))};u.addEventListener("pointerleave",c,i)};return r.forEach(o=>{o.addEventListener("pointerenter",s,i)}),a}const gm=(e,t)=>t?e===t?!0:gm(e,t.parentElement):!1,M0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,L9=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function O9(e){return L9.has(e.tagName)||e.tabIndex!==-1}const Bs=new WeakSet;function Hd(e){return t=>{t.key==="Enter"&&e(t)}}function Qo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const _9=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Hd(()=>{if(Bs.has(n))return;Qo(n,"down");const i=Hd(()=>{Qo(n,"up")}),a=()=>Qo(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function zd(e){return M0(e)&&!pm()}function B9(e,t,n={}){const[r,i,a]=mm(e,n),s=o=>{const u=o.currentTarget;if(!zd(o))return;Bs.add(u);const l=t(u,o),c=(f,b)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",p),Bs.has(u)&&Bs.delete(u),zd(f)&&typeof l=="function"&&l(f,{success:b})},d=f=>{c(f,u===window||u===document||n.useGlobalTarget||gm(u,f.target))},p=f=>{c(f,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",p,i)};return r.forEach(o=>{(n.useGlobalTarget?window:o).addEventListener("pointerdown",s,i),N9(o)&&(o.addEventListener("focus",l=>_9(l,i)),!O9(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),a}function bm(e){return Cp(e)&&"ownerSVGElement"in e}function F9(e){return bm(e)&&e.tagName==="svg"}const zt=e=>!!(e&&e.getVelocity),H9=[...cm,Pt,kr],z9=e=>H9.find(lm(e)),La={};function U9(e){for(const t in e)La[t]=e[t],y0(t)&&(La[t].isCSSVariable=!0)}function ym(e,{layout:t,layoutId:n}){return Li.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!La[e]||e==="opacity")}const V9={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},j9=Pi.length;function q9(e,t,n){let r="",i=!0;for(let a=0;a({style:{},transform:{},transformOrigin:{},vars:{}});function vm(e,t,n){for(const r in t)!zt(t[r])&&!ym(r,n)&&(e[r]=t[r])}function $9({transformTemplate:e},t){return O.useMemo(()=>{const n=P0();return D0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function W9(e,t){const n=e.style||{},r={};return vm(r,n,e),Object.assign(r,$9(e,t)),r}function Y9(e,t){const n={},r=W9(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const G9={offset:"stroke-dashoffset",array:"stroke-dasharray"},X9={offset:"strokeDashoffset",array:"strokeDasharray"};function K9(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?G9:X9;e[a.offset]=Ae.transform(-r);const s=Ae.transform(t),o=Ae.transform(n);e[a.array]=`${s} ${o}`}function Tm(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...o},u,l,c){if(D0(e,o,l),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:p}=e;d.transform&&(p.transform=d.transform,delete d.transform),(p.transform||d.transformOrigin)&&(p.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),p.transform&&(p.transformBox=c?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&K9(d,i,a,s,!1)}const xm=()=>({...P0(),attrs:{}}),Em=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Q9(e,t,n,r){const i=O.useMemo(()=>{const a=xm();return Tm(a,t,Em(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};vm(a,e.style,e),i.style={...a,...i.style}}return i}const Z9=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Js(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Z9.has(e)}let Sm=e=>!Js(e);function J9(e){typeof e=="function"&&(Sm=t=>t.startsWith("on")?!Js(t):e(t))}try{J9(require("@emotion/is-prop-valid").default)}catch{}function ev(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Sm(i)||n===!0&&Js(i)||!t&&!Js(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const tv=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function L0(e){return typeof e!="string"||e.includes("-")?!1:!!(tv.indexOf(e)>-1||/[A-Z]/u.test(e))}function nv(e,t,n,{latestValues:r},i,a=!1){const o=(L0(e)?Q9:Y9)(t,r,i,e),u=ev(t,typeof e=="string",a),l=e!==O.Fragment?{...u,...o,ref:n}:{},{children:c}=t,d=O.useMemo(()=>zt(c)?c.get():c,[c]);return O.createElement(e,{...l,children:d})}const O0=O.createContext(null);function Ud(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function _0(e,t,n,r){if(typeof t=="function"){const[i,a]=Ud(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=Ud(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function rv(e){const t=O.useRef(null);return t.current===null&&(t.current=e()),t.current}function Fs(e){return zt(e)?e.get():e}function iv({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:av(n,r,i,e),renderState:t()}}function av(e,t,n,r){const i={},a=r(e,{});for(const p in a)i[p]=Fs(a[p]);let{initial:s,animate:o}=e;const u=So(e),l=Vp(e);t&&l&&!u&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?o:s;if(d&&typeof d!="boolean"&&!Eo(d)){const p=Array.isArray(d)?d:[d];for(let f=0;f(t,n)=>{const r=O.useContext(xo),i=O.useContext(O0),a=()=>iv(e,t,r,i);return n?a():rv(a)};function B0(e,t,n){const{style:r}=e,i={};for(const a in r)(zt(r[a])||t.style&&zt(t.style[a])||ym(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(i[a]=r[a]);return i}const sv=wm({scrapeMotionValuesFromProps:B0,createRenderState:P0});function Am(e,t,n){const r=B0(e,t,n);for(const i in e)if(zt(e[i])||zt(t[i])){const a=Pi.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const ov=wm({scrapeMotionValuesFromProps:Am,createRenderState:xm}),F0=typeof window<"u",Vd={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ki={};for(const e in Vd)ki[e]={isEnabled:t=>Vd[e].some(n=>!!t[n])};function uv(e){for(const t in e)ki[t]={...ki[t],...e[t]}}const lv=Symbol.for("motionComponentSymbol");function fi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function cv(e,t,n){const r=O.useRef(null);return O.useCallback(i=>{const a=r.current;r.current=i,i!==a&&(i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount())),n&&(typeof n=="function"?n(i):fi(n)&&(n.current=i))},[t,n])}const H0=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),dv="framerAppearId",Cm="data-"+H0(dv),km=O.createContext({}),hv=F0?O.useLayoutEffect:O.useEffect;function fv(e,t,n,r,i){const{visualElement:a}=O.useContext(xo),s=O.useContext(zp),o=O.useContext(O0),u=O.useContext(Up).reducedMotion,l=O.useRef(null);r=r||s.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:a,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:u}));const c=l.current,d=O.useContext(km);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&pv(l.current,n,i,d);const p=O.useRef(!1);O.useInsertionEffect(()=>{c&&p.current&&c.update(n,o)});const f=n[Cm],b=O.useRef(!!f&&!window.MotionHandoffIsComplete?.(f)&&window.MotionHasOptimisedAnimation?.(f));return hv(()=>{c&&(p.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),b.current&&c.animationState&&c.animationState.animateChanges())}),O.useEffect(()=>{c&&(!b.current&&c.animationState&&c.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(f)}),b.current=!1),c.enteringChildren=void 0)}),c}function pv(e,t,n,r){const{layoutId:i,layout:a,drag:s,dragConstraints:o,layoutScroll:u,layoutRoot:l,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Im(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||o&&fi(o),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:u,layoutRoot:l})}function Im(e){if(e)return e.options.allowProjection!==!1?e.projection:Im(e.parent)}function mv(e,{forwardMotionProps:t=!1}={},n,r){n&&uv(n);const i=L0(e)?ov:sv;function a(o,u){let l;const c={...O.useContext(Up),...o,layoutId:gv(o)},{isStatic:d}=c,p=Z8(o),f=i(o,d);if(!d&&F0){bv();const b=yv(c);l=b.MeasureLayout,p.visualElement=fv(e,f,c,r,b.ProjectionNode)}return R.jsxs(xo.Provider,{value:p,children:[l&&p.visualElement?R.jsx(l,{visualElement:p.visualElement,...c}):null,nv(e,o,cv(f,p.visualElement,u),f,d,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=O.forwardRef(a);return s[lv]=e,s}function gv({layoutId:e}){const t=O.useContext(Hp).id;return t&&e!==void 0?t+"-"+e:e}function bv(e,t){O.useContext(zp).strict}function yv(e){const{drag:t,layout:n}=ki;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Nm({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function vv({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Tv(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Zo(e){return e===void 0||e===1}function hl({scale:e,scaleX:t,scaleY:n}){return!Zo(e)||!Zo(t)||!Zo(n)}function jr(e){return hl(e)||Rm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Rm(e){return jd(e.x)||jd(e.y)}function jd(e){return e&&e!=="0%"}function eo(e,t,n){const r=e-n,i=t*r;return n+i}function qd(e,t,n,r,i){return i!==void 0&&(e=eo(e,i,r)),eo(e,n,r)+t}function fl(e,t=0,n=1,r,i){e.min=qd(e.min,t,n,r,i),e.max=qd(e.max,t,n,r,i)}function Mm(e,{x:t,y:n}){fl(e.x,t.translate,t.scale,t.originPoint),fl(e.y,n.translate,n.scale,n.originPoint)}const $d=.999999999999,Wd=1.0000000000001;function xv(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,s;for(let o=0;o$d&&(t.x=1),t.y$d&&(t.y=1)}function pi(e,t){e.min=e.min+t,e.max=e.max+t}function Yd(e,t,n,r,i=.5){const a=mt(e.min,e.max,i);fl(e,t,n,a,r)}function mi(e,t){Yd(e.x,t.x,t.scaleX,t.scale,t.originX),Yd(e.y,t.y,t.scaleY,t.scale,t.originY)}function Dm(e,t){return Nm(Tv(e.getBoundingClientRect(),t))}function Ev(e,t,n){const r=Dm(e,n),{scroll:i}=t;return i&&(pi(r.x,i.offset.x),pi(r.y,i.offset.y)),r}const Gd=()=>({translate:0,scale:1,origin:0,originPoint:0}),gi=()=>({x:Gd(),y:Gd()}),Xd=()=>({min:0,max:0}),Ct=()=>({x:Xd(),y:Xd()}),pl={current:null},Pm={current:!1};function Sv(){if(Pm.current=!0,!!F0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>pl.current=e.matches;e.addEventListener("change",t),t()}else pl.current=!1}const wv=new WeakMap;function Av(e,t,n){for(const r in t){const i=t[r],a=n[r];if(zt(i))e.addValue(r,i);else if(zt(a))e.addValue(r,Ci(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,Ci(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Kd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Cv{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=k0,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=tn.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),Pm.current||Sv(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:pl.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Cr(this.notifyUpdate),Cr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Li.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&<.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ki){const n=ki[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ct()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ci(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Ap(r)||kp(r))?r=parseFloat(r):!z9(r)&&kr.test(n)&&(r=hm(t,n)),this.setBaseTarget(t,zt(r)?r.get():r)),zt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const a=_0(this.props,n,this.presenceContext?.custom);a&&(r=a[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!zt(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new f0),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){R0.render(this.render)}}class Lm extends Cv{constructor(){super(...arguments),this.KeyframeResolver=k9}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;zt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Om(e,{style:t,vars:n},r,i){const a=e.style;let s;for(s in t)a[s]=t[s];i?.applyProjectionStyles(a,r);for(s in n)a.setProperty(s,n[s])}function kv(e){return window.getComputedStyle(e)}class Iv extends Lm{constructor(){super(...arguments),this.type="html",this.renderInstance=Om}readValueFromInstance(t,n){if(Li.has(n))return this.projection?.isProjecting?al(n):Wy(t,n);{const r=kv(t),i=(y0(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Dm(t,n)}build(t,n,r){D0(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return B0(t,n,r)}}const _m=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Nv(e,t,n,r){Om(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(_m.has(i)?i:H0(i),t.attrs[i])}class Rv extends Lm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ct}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Li.has(n)){const r=dm(n);return r&&r.default||0}return n=_m.has(n)?n:H0(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Am(t,n,r)}build(t,n,r){Tm(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){Nv(t,n,r,i)}mount(t){this.isSVGTag=Em(t.tagName),super.mount(t)}}const Mv=(e,t)=>L0(e)?new Rv(t):new Iv(t,{allowProjection:e!==O.Fragment});function yi(e,t,n){const r=e.getProps();return _0(r,t,n!==void 0?n:r.custom,e)}const ml=e=>Array.isArray(e);function Dv(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ci(n))}function Pv(e){return ml(e)?e[e.length-1]||0:e}function Lv(e,t){const n=yi(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const s in a){const o=Pv(a[s]);Dv(e,s,o)}}function Ov(e){return!!(zt(e)&&e.add)}function gl(e,t){const n=e.getValue("willChange");if(Ov(n))return n.add(t);if(!n&&lr.WillChange){const r=new lr.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Bm(e){return e.props[Cm]}const _v=e=>e!==null;function Bv(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(_v),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[a]}const Fv={type:"spring",stiffness:500,damping:25,restSpeed:10},Hv=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),zv={type:"keyframes",duration:.8},Uv={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Vv=(e,{keyframes:t})=>t.length>2?zv:Li.has(e)?e.startsWith("scale")?Hv(t[1]):Fv:Uv;function jv({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:o,from:u,elapsed:l,...c}){return!!Object.keys(c).length}const z0=(e,t,n,r={},i,a)=>s=>{const o=I0(r,e)||{},u=o.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Vn(u);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-l,onUpdate:p=>{t.set(p),o.onUpdate&&o.onUpdate(p)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:a?void 0:i};jv(o)||Object.assign(c,Vv(e,c)),c.duration&&(c.duration=Vn(c.duration)),c.repeatDelay&&(c.repeatDelay=Vn(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(cl(c),c.delay===0&&(d=!0)),(lr.instantAnimations||lr.skipAnimations)&&(d=!0,cl(c),c.delay=0),c.allowFlatten=!o.type&&!o.ease,d&&!a&&t.get()!==void 0){const p=Bv(c.keyframes,o);if(p!==void 0){lt.update(()=>{c.onUpdate(p),c.onComplete()});return}}return o.isSync?new C0(c):new m9(c)};function qv({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Fm(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...o}=t;r&&(a=r);const u=[],l=i&&e.animationState&&e.animationState.getState()[i];for(const c in o){const d=e.getValue(c,e.latestValues[c]??null),p=o[c];if(p===void 0||l&&qv(l,c))continue;const f={delay:n,...I0(a||{},c)},b=d.get();if(b!==void 0&&!d.isAnimating&&!Array.isArray(p)&&p===b&&!f.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const v=Bm(e);if(v){const w=window.MotionHandoffAnimation(v,c,lt);w!==null&&(f.startTime=w,y=!0)}}gl(e,c),d.start(z0(c,d,p,e.shouldReduceMotion&&um.has(c)?{type:!1}:f,e,y));const S=d.animation;S&&u.push(S)}return s&&Promise.all(u).then(()=>{lt.update(()=>{s&&Lv(e,s)})}),u}function Hm(e,t,n,r=0,i=1){const a=Array.from(e).sort((l,c)=>l.sortNodePosition(c)).indexOf(t),s=e.size,o=(s-1)*r;return typeof n=="function"?n(a,s):i===1?a*r:o-a*r}function bl(e,t,n={}){const r=yi(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(Fm(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:c,staggerDirection:d}=i;return $v(e,t,u,l,c,d,n)}:()=>Promise.resolve(),{when:o}=i;if(o){const[u,l]=o==="beforeChildren"?[a,s]:[s,a];return u().then(()=>l())}else return Promise.all([a(),s(n.delay)])}function $v(e,t,n=0,r=0,i=0,a=1,s){const o=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),o.push(bl(u,t,{...s,delay:n+(typeof r=="function"?0:r)+Hm(e.variantChildren,u,r,i,a)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(o)}function Wv(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>bl(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=bl(e,t,n);else{const i=typeof t=="function"?yi(e,t,n.custom):t;r=Promise.all(Fm(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function zm(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rPromise.all(t.map(({animation:n,options:r})=>Wv(e,n,r)))}function Qv(e){let t=Kv(e),n=Qd(),r=!0;const i=u=>(l,c)=>{const d=yi(e,c,u==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:p,transitionEnd:f,...b}=d;l={...l,...b,...f}}return l};function a(u){t=u(e)}function s(u){const{props:l}=e,c=Um(e.parent)||{},d=[],p=new Set;let f={},b=1/0;for(let S=0;Sb&&k,V=!1;const P=Array.isArray(x)?x:[x];let $=P.reduce(i(v),{});M===!1&&($={});const{prevResolvedValues:W={}}=w,G={...W,...$},q=ee=>{z=!0,p.has(ee)&&(V=!0,p.delete(ee)),w.needsAnimating[ee]=!0;const de=e.getValue(ee);de&&(de.liveStyle=!1)};for(const ee in G){const de=$[ee],oe=W[ee];if(f.hasOwnProperty(ee))continue;let N=!1;ml(de)&&ml(oe)?N=!zm(de,oe):N=de!==oe,N?de!=null?q(ee):p.add(ee):de!==void 0&&p.has(ee)?q(ee):w.protectedKeys[ee]=!0}w.prevProp=x,w.prevResolvedValues=$,w.isActive&&(f={...f,...$}),r&&e.blockInitialAnimation&&(z=!1);const Y=C&&H;z&&(!Y||V)&&d.push(...P.map(ee=>{const de={type:v};if(typeof ee=="string"&&r&&!Y&&e.manuallyAnimateOnMount&&e.parent){const{parent:oe}=e,N=yi(oe,ee);if(oe.enteringChildren&&N){const{delayChildren:Ce}=N.transition||{};de.delay=Hm(oe.enteringChildren,e,Ce)}}return{animation:ee,options:de}}))}if(p.size){const S={};if(typeof l.initial!="boolean"){const v=yi(e,Array.isArray(l.initial)?l.initial[0]:l.initial);v&&v.transition&&(S.transition=v.transition)}p.forEach(v=>{const w=e.getBaseTarget(v),x=e.getValue(v);x&&(x.liveStyle=!0),S[v]=w??null}),d.push({animation:S})}let y=!!d.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(d):Promise.resolve()}function o(u,l){if(n[u].isActive===l)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(u,l)),n[u].isActive=l;const c=s(u);for(const d in n)n[d].protectedKeys={};return c}return{animateChanges:s,setActive:o,setAnimateFunction:a,getState:()=>n,reset:()=>{n=Qd(),r=!0}}}function Zv(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!zm(t,e):!1}function _r(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Qd(){return{animate:_r(!0),whileInView:_r(),whileHover:_r(),whileTap:_r(),whileDrag:_r(),whileFocus:_r(),exit:_r()}}class Dr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Jv extends Dr{constructor(t){super(t),t.animationState||(t.animationState=Qv(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Eo(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let eT=0;class tT extends Dr{constructor(){super(...arguments),this.id=eT++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const nT={animation:{Feature:Jv},exit:{Feature:tT}};function Oa(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Xa(e){return{point:{x:e.pageX,y:e.pageY}}}const rT=e=>t=>M0(t)&&e(t,Xa(t));function fa(e,t,n,r){return Oa(e,t,rT(n),r)}const Vm=1e-4,iT=1-Vm,aT=1+Vm,jm=.01,sT=0-jm,oT=0+jm;function Yt(e){return e.max-e.min}function uT(e,t,n){return Math.abs(e-t)<=n}function Zd(e,t,n,r=.5){e.origin=r,e.originPoint=mt(t.min,t.max,e.origin),e.scale=Yt(n)/Yt(t),e.translate=mt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=iT&&e.scale<=aT||isNaN(e.scale))&&(e.scale=1),(e.translate>=sT&&e.translate<=oT||isNaN(e.translate))&&(e.translate=0)}function pa(e,t,n,r){Zd(e.x,t.x,n.x,r?r.originX:void 0),Zd(e.y,t.y,n.y,r?r.originY:void 0)}function Jd(e,t,n){e.min=n.min+t.min,e.max=e.min+Yt(t)}function lT(e,t,n){Jd(e.x,t.x,n.x),Jd(e.y,t.y,n.y)}function eh(e,t,n){e.min=t.min-n.min,e.max=e.min+Yt(t)}function ma(e,t,n){eh(e.x,t.x,n.x),eh(e.y,t.y,n.y)}function bn(e){return[e("x"),e("y")]}const qm=({current:e})=>e?e.ownerDocument.defaultView:null,th=(e,t)=>Math.abs(e-t);function cT(e,t){const n=th(e.x,t.x),r=th(e.y,t.y);return Math.sqrt(n**2+r**2)}class $m{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=eu(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,b=cT(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!f&&!b)return;const{point:y}=p,{timestamp:S}=Ft;this.history.push({...y,timestamp:S});const{onStart:v,onMove:w}=this.handlers;f||(v&&v(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,p)},this.handlePointerMove=(p,f)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=Jo(f,this.transformPagePoint),lt.update(this.updatePoint,!0)},this.handlePointerUp=(p,f)=>{this.end();const{onEnd:b,onSessionEnd:y,resumeAnimation:S}=this.handlers;if(this.dragSnapToOrigin&&S&&S(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=eu(p.type==="pointercancel"?this.lastMoveEventInfo:Jo(f,this.transformPagePoint),this.history);this.startEvent&&b&&b(p,v),y&&y(p,v)},!M0(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const o=Xa(t),u=Jo(o,this.transformPagePoint),{point:l}=u,{timestamp:c}=Ft;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,eu(u,this.history)),this.removeListeners=Wa(fa(this.contextWindow,"pointermove",this.handlePointerMove),fa(this.contextWindow,"pointerup",this.handlePointerUp),fa(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Cr(this.updatePoint)}}function Jo(e,t){return t?{point:t(e.point)}:e}function nh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function eu({point:e},t){return{point:e,delta:nh(e,Wm(t)),offset:nh(e,dT(t)),velocity:hT(t,.1)}}function dT(e){return e[0]}function Wm(e){return e[e.length-1]}function hT(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Wm(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Vn(t)));)n--;if(!r)return{x:0,y:0};const a=jn(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const s={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function fT(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?mt(n,e,r.max):Math.min(e,n)),e}function rh(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function pT(e,{top:t,left:n,bottom:r,right:i}){return{x:rh(e.x,n,i),y:rh(e.y,t,r)}}function ih(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Ra(t.min,t.max-r,e.min):r>i&&(n=Ra(e.min,e.max-i,t.min)),ur(0,1,n)}function bT(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const yl=.35;function yT(e=yl){return e===!1?e=0:e===!0&&(e=yl),{x:ah(e,"left","right"),y:ah(e,"top","bottom")}}function ah(e,t,n){return{min:sh(e,t),max:sh(e,n)}}function sh(e,t){return typeof e=="number"?e:e[t]||0}const vT=new WeakMap;class TT{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ct(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=d=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Xa(d).point)},s=(d,p)=>{const{drag:f,dragPropagation:b,onDragStart:y}=this.getProps();if(f&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=D9(f),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=p,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),bn(v=>{let w=this.getAxisMotionValue(v).get()||0;if(qn.test(w)){const{projection:x}=this.visualElement;if(x&&x.layout){const k=x.layout.layoutBox[v];k&&(w=Yt(k)*(parseFloat(w)/100))}}this.originPoint[v]=w}),y&<.postRender(()=>y(d,p)),gl(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},o=(d,p)=>{this.latestPointerEvent=d,this.latestPanInfo=p;const{dragPropagation:f,dragDirectionLock:b,onDirectionLock:y,onDrag:S}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:v}=p;if(b&&this.currentDirection===null){this.currentDirection=xT(v),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",p.point,v),this.updateAxis("y",p.point,v),this.visualElement.render(),S&&S(d,p)},u=(d,p)=>{this.latestPointerEvent=d,this.latestPanInfo=p,this.stop(d,p),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>bn(d=>this.getAnimationState(d)==="paused"&&this.getAxisMotionValue(d).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new $m(t,{onSessionStart:a,onStart:s,onMove:o,onSessionEnd:u,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:qm(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&<.postRender(()=>o(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!ys(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=fT(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&fi(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=pT(r.layoutBox,t):this.constraints=!1,this.elastic=yT(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&bn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=bT(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!fi(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=Ev(r,i.root,this.visualElement.getTransformPagePoint());let s=mT(i.layout.layoutBox,a);if(n){const o=n(vv(s));this.hasMutatedConstraints=!!o,o&&(s=Nm(o))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),u=this.constraints||{},l=bn(c=>{if(!ys(c,n,this.currentDirection))return;let d=u&&u[c]||{};s&&(d={min:0,max:0});const p=i?200:1e6,f=i?40:1e7,b={type:"inertia",velocity:r?t[c]:0,bounceStiffness:p,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...a,...d};return this.startAxisValueAnimation(c,b)});return Promise.all(l).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return gl(this.visualElement,t),r.start(z0(t,r,0,n,this.visualElement,!1))}stopAnimation(){bn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){bn(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){bn(n=>{const{drag:r}=this.getProps();if(!ys(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:o}=i.layout.layoutBox[n];a.set(t[n]-mt(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!fi(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};bn(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const u=o.get();i[s]=gT({min:u,max:u},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),bn(s=>{if(!ys(s,t,null))return;const o=this.getAxisMotionValue(s),{min:u,max:l}=this.constraints[s];o.set(mt(u,l,i[s]))})}addListeners(){if(!this.visualElement.current)return;vT.set(this.visualElement,this);const t=this.visualElement.current,n=fa(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();fi(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),lt.read(r);const s=Oa(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(bn(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=u[c].translate,d.set(d.get()+u[c].translate))}),this.visualElement.render())}));return()=>{s(),n(),a(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:s=yl,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:s,dragMomentum:o}}}function ys(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function xT(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class ET extends Dr{constructor(t){super(t),this.removeGroupControls=En,this.removeListeners=En,this.controls=new TT(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||En}unmount(){this.removeGroupControls(),this.removeListeners()}}const oh=e=>(t,n)=>{e&<.postRender(()=>e(t,n))};class ST extends Dr{constructor(){super(...arguments),this.removePointerDownListener=En}onPointerDown(t){this.session=new $m(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:qm(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:oh(t),onStart:oh(n),onMove:r,onEnd:(a,s)=>{delete this.session,i&<.postRender(()=>i(a,s))}}}mount(){this.removePointerDownListener=fa(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function wT(e=!0){const t=O.useContext(O0);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=O.useId();O.useEffect(()=>{if(e)return i(a)},[e]);const s=O.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,s]:[!0]}const Hs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function uh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ki={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ae.test(e))e=parseFloat(e);else return e;const n=uh(e,t.target.x),r=uh(e,t.target.y);return`${n}% ${r}%`}},AT={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=kr.parse(e);if(i.length>5)return r;const a=kr.createTransformer(e),s=typeof i[0]!="number"?1:0,o=n.x.scale*t.x,u=n.y.scale*t.y;i[0+s]/=o,i[1+s]/=u;const l=mt(o,u,.5);return typeof i[2+s]=="number"&&(i[2+s]/=l),typeof i[3+s]=="number"&&(i[3+s]/=l),a(i)}};let tu=!1;class CT extends O.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;U9(kT),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),tu&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Hs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:s}=r;return s&&(s.isPresent=a,tu=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==a?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||lt.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),R0.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;tu=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Ym(e){const[t,n]=wT(),r=O.useContext(Hp);return R.jsx(CT,{...e,layoutGroup:r,switchLayoutGroup:O.useContext(km),isPresent:t,safeToRemove:n})}const kT={borderRadius:{...Ki,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ki,borderTopRightRadius:Ki,borderBottomLeftRadius:Ki,borderBottomRightRadius:Ki,boxShadow:AT};function IT(e,t,n){const r=zt(e)?e:Ci(e);return r.start(z0("",r,t,n)),r.animation}const NT=(e,t)=>e.depth-t.depth;class RT{constructor(){this.children=[],this.isDirty=!1}add(t){l0(this.children,t),this.isDirty=!0}remove(t){c0(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(NT),this.isDirty=!1,this.children.forEach(t)}}function MT(e,t){const n=tn.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(Cr(r),e(a-t))};return lt.setup(r,!0),()=>Cr(r)}const Gm=["TopLeft","TopRight","BottomLeft","BottomRight"],DT=Gm.length,lh=e=>typeof e=="string"?parseFloat(e):e,ch=e=>typeof e=="number"||Ae.test(e);function PT(e,t,n,r,i,a){i?(e.opacity=mt(0,n.opacity??1,LT(r)),e.opacityExit=mt(t.opacity??1,0,OT(r))):a&&(e.opacity=mt(t.opacity??1,n.opacity??1,r));for(let s=0;srt?1:n(Ra(e,t,r))}function hh(e,t){e.min=t.min,e.max=t.max}function gn(e,t){hh(e.x,t.x),hh(e.y,t.y)}function fh(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function ph(e,t,n,r,i){return e-=t,e=eo(e,1/n,r),i!==void 0&&(e=eo(e,1/i,r)),e}function _T(e,t=0,n=1,r=.5,i,a=e,s=e){if(qn.test(t)&&(t=parseFloat(t),t=mt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=mt(a.min,a.max,r);e===a&&(o-=t),e.min=ph(e.min,t,n,o,i),e.max=ph(e.max,t,n,o,i)}function mh(e,t,[n,r,i],a,s){_T(e,t[n],t[r],t[i],t.scale,a,s)}const BT=["x","scaleX","originX"],FT=["y","scaleY","originY"];function gh(e,t,n,r){mh(e.x,t,BT,n?n.x:void 0,r?r.x:void 0),mh(e.y,t,FT,n?n.y:void 0,r?r.y:void 0)}function bh(e){return e.translate===0&&e.scale===1}function Km(e){return bh(e.x)&&bh(e.y)}function yh(e,t){return e.min===t.min&&e.max===t.max}function HT(e,t){return yh(e.x,t.x)&&yh(e.y,t.y)}function vh(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Qm(e,t){return vh(e.x,t.x)&&vh(e.y,t.y)}function Th(e){return Yt(e.x)/Yt(e.y)}function xh(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class zT{constructor(){this.members=[]}add(t){l0(this.members,t),t.scheduleRender()}remove(t){if(c0(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function UT(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,s=n?.z||0;if((i||a||s)&&(r=`translate3d(${i}px, ${a}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:c,rotateX:d,rotateY:p,skewX:f,skewY:b}=n;l&&(r=`perspective(${l}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),p&&(r+=`rotateY(${p}deg) `),f&&(r+=`skewX(${f}deg) `),b&&(r+=`skewY(${b}deg) `)}const o=e.x.scale*t.x,u=e.y.scale*t.y;return(o!==1||u!==1)&&(r+=`scale(${o}, ${u})`),r||"none"}const nu=["","X","Y","Z"],VT=1e3;let jT=0;function ru(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Zm(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Bm(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",lt,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Zm(r)}function Jm({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},o=t?.()){this.id=jT++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(WT),this.nodes.forEach(KT),this.nodes.forEach(QT),this.nodes.forEach(YT)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let u=0;uthis.root.updateBlockedByResize=!1;lt.read(()=>{d=window.innerWidth}),e(s,()=>{const f=window.innerWidth;f!==d&&(d=f,this.root.updateBlockedByResize=!0,c&&c(),c=MT(p,250),Hs.hasAnimatedSinceResize&&(Hs.hasAnimatedSinceResize=!1,this.nodes.forEach(wh)))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&l&&(o||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:p,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||l.getDefaultTransition()||nx,{onLayoutAnimationStart:y,onLayoutAnimationComplete:S}=l.getProps(),v=!this.targetLayout||!Qm(this.targetLayout,f),w=!d&&p;if(this.options.layoutRoot||this.resumeFrom||w||d&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...I0(b,"layout"),onPlay:y,onComplete:S};(l.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(c,w)}else d||wh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Cr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ZT),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Zm(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Yt(this.snapshot.measuredBox.x)&&!Yt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u{const M=k/1e3;Ah(d.x,s.x,M),Ah(d.y,s.y,M),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ma(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ex(this.relativeTarget,this.relativeTargetOrigin,p,M),x&&HT(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Ct()),gn(x,this.relativeTarget)),y&&(this.animationValues=c,PT(c,l,this.latestValues,M,w,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Cr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=lt.update(()=>{Hs.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ci(0)),this.currentAnimation=IT(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(VT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:u,layout:l,latestValues:c}=s;if(!(!o||!u||!l)){if(this!==s&&this.layout&&l&&e2(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||Ct();const d=Yt(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+d;const p=Yt(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+p}gn(o,u),mi(o,c),pa(this.projectionDeltaWithTransform,this.layoutCorrected,o,c)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new zT),this.sharedNodes.get(s).add(o);const l=o.options.initialPromotionConfig;o.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:u}=s;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(o=!0),!o)return;const l={};u.z&&ru("z",s,l,this.animationValues);for(let c=0;cs.currentAnimation?.stop()),this.root.nodes.forEach(Eh),this.root.sharedNodes.clear()}}}function qT(e){e.updateLayout()}function $T(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i==="size"?bn(c=>{const d=a?t.measuredBox[c]:t.layoutBox[c],p=Yt(d);d.min=n[c].min,d.max=d.min+p}):e2(i,t.layoutBox,n)&&bn(c=>{const d=a?t.measuredBox[c]:t.layoutBox[c],p=Yt(n[c]);d.max=d.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+p)});const s=gi();pa(s,n,t.layoutBox);const o=gi();a?pa(o,e.applyTransform(r,!0),t.measuredBox):pa(o,n,t.layoutBox);const u=!Km(s);let l=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:d,layout:p}=c;if(d&&p){const f=Ct();ma(f,t.layoutBox,d.layoutBox);const b=Ct();ma(b,n,p.layoutBox),Qm(f,b)||(l=!0),c.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=f,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:o,layoutDelta:s,hasLayoutChanged:u,hasRelativeLayoutChanged:l})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function WT(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function YT(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function GT(e){e.clearSnapshot()}function Eh(e){e.clearMeasurements()}function Sh(e){e.isLayoutDirty=!1}function XT(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function wh(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function KT(e){e.resolveTargetDelta()}function QT(e){e.calcProjection()}function ZT(e){e.resetSkewAndRotation()}function JT(e){e.removeLeadSnapshot()}function Ah(e,t,n){e.translate=mt(t.translate,0,n),e.scale=mt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ch(e,t,n,r){e.min=mt(t.min,n.min,r),e.max=mt(t.max,n.max,r)}function ex(e,t,n,r){Ch(e.x,t.x,n.x,r),Ch(e.y,t.y,n.y,r)}function tx(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const nx={duration:.45,ease:[.4,0,.1,1]},kh=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ih=kh("applewebkit/")&&!kh("chrome/")?Math.round:En;function Nh(e){e.min=Ih(e.min),e.max=Ih(e.max)}function rx(e){Nh(e.x),Nh(e.y)}function e2(e,t,n){return e==="position"||e==="preserve-aspect"&&!uT(Th(t),Th(n),.2)}function ix(e){return e!==e.root&&e.scroll?.wasRoot}const ax=Jm({attachResizeListener:(e,t)=>Oa(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),iu={current:void 0},t2=Jm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!iu.current){const e=new ax({});e.mount(window),e.setOptions({layoutScroll:!0}),iu.current=e}return iu.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),sx={pan:{Feature:ST},drag:{Feature:ET,ProjectionNode:t2,MeasureLayout:Ym}};function Rh(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&<.postRender(()=>a(t,Xa(t)))}class ox extends Dr{mount(){const{current:t}=this.node;t&&(this.unmount=P9(t,(n,r)=>(Rh(this.node,r,"Start"),i=>Rh(this.node,i,"End"))))}unmount(){}}class ux extends Dr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Wa(Oa(this.node.current,"focus",()=>this.onFocus()),Oa(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Mh(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&<.postRender(()=>a(t,Xa(t)))}class lx extends Dr{mount(){const{current:t}=this.node;t&&(this.unmount=B9(t,(n,r)=>(Mh(this.node,r,"Start"),(i,{success:a})=>Mh(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const vl=new WeakMap,au=new WeakMap,cx=e=>{const t=vl.get(e.target);t&&t(e)},dx=e=>{e.forEach(cx)};function hx({root:e,...t}){const n=e||document;au.has(n)||au.set(n,{});const r=au.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(dx,{root:e,...t})),r[i]}function fx(e,t,n){const r=hx(t);return vl.set(e,n),r.observe(e),()=>{vl.delete(e),r.unobserve(e)}}const px={some:0,all:1};class mx extends Dr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:px[i]},o=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,a&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),p=l?c:d;p&&p(u)};return fx(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(gx(t,n))&&this.startObserver()}unmount(){}}function gx({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const bx={inView:{Feature:mx},tap:{Feature:lx},focus:{Feature:ux},hover:{Feature:ox}},yx={layout:{ProjectionNode:t2,MeasureLayout:Ym}},vx={...nT,...bx,...sx,...yx};function Tx(e,t){return mv(e,t,vx,Mv)}const U0=Tx("div"),xx=le(Qe)(({theme:e})=>{const{spacing:t}=e;return{position:"relative",flex:1,gap:t(1.5),overflow:"hidden"}}),Ex=le(fp)(({theme:e,variant:t})=>{const{spacing:n}=e;return{gap:n(t==="list"?1.5:5.5),overflowY:"auto"}}),Sx=le(Ob)(({theme:e})=>{const{spacing:t}=e;return{flex:"none",padding:t(2),overflow:"hidden"}});le(Fb)(({theme:e})=>({fontSize:"1.5rem",width:"2.75rem",height:"2.75rem",borderRadius:"50%",display:"inline-flex",alignItems:"center",justifyContent:"center"}));const wx=le(U0)(({theme:e,variant:t})=>({fontSize:t==="list"?"1.5rem":"1em",width:"1em",height:"1em",display:"inline-flex",alignItems:"center",justifyContent:"center",transformOrigin:"center"})),Ax={waiting:"info",available:"success",failed:"error"},Cx={waiting:A8,available:f8,failed:U1},Dh=({variant:e,node:t})=>{const{id:n,status:r,gpuName:i,gpuMemory:a}=t||{status:"waiting"},{palette:s}=Va(),{main:o,lighter:u}=r==="waiting"?{main:s.grey[800],lighter:s.grey[250]}:s[Ax[r]],l=r==="failed"?.2:void 0,c=Cx[r];return R.jsxs(Sx,{component:e==="list"?po:Ar,variant:"outlined",sx:{opacity:l,padding:e==="menu"?0:void 0,backgroundColor:"transparent",gap:1},children:[R.jsx(v8,{size:"1.7rem"}),R.jsx(Vb,{children:t&&R.jsxs(Xe,{variant:"body1",sx:{fontSize:"0.875rem"},children:[i," ",a,"GB"]})||R.jsx(L7,{width:"8rem",height:"1.25rem"})}),t&&R.jsxs(wx,{sx:{color:o},...r==="waiting"&&{animate:{rotate:360},transition:{repeat:1/0,ease:"linear",duration:2}},variant:e,children:[e==="list"&&R.jsx(c,{}),e==="menu"&&R.jsx(M8,{})]})]})},vs=({variant:e="list"})=>{const[{clusterInfo:{initNodesNumber:t},nodeInfoList:n}]=ja(),{length:r}=n;return R.jsxs(xx,{children:[e==="menu"&&R.jsx(Ar,{sx:{position:"absolute",top:"1.375rem",bottom:"1.375rem",left:"1.375rem",borderLeft:"2px dashed",borderColor:"divider"}}),R.jsxs(Ex,{variant:e,children:[n.map(i=>R.jsx(Dh,{variant:e,node:i},i.id)),t>r&&Array.from({length:t-r}).map((i,a)=>R.jsx(Dh,{variant:e},a))]})]})},kx={small:1,medium:1.25,large:2.25},Ix=le(U0)(({theme:e,size:t})=>{const n=`${kx[t]}rem`;return{position:"relative",width:n,height:n,display:"inline-flex",flexFlow:"row nowrap",justifyContent:"center",alignItems:"center"}}),su=le(U0)(({theme:e})=>({flex:1,aspectRatio:1,borderRadius:"50%",backgroundColor:"currentColor"})),ou={pulse:{scale:[0,.6,0,0],keyTimes:[0,.3,.6,1],transition:{duration:2,repeat:1/0,ease:"linear"}}},Nx={staggerChildren:.25,staggerDirection:1},Rx=O.forwardRef(({size:e="medium"},t)=>R.jsxs(Ix,{ref:t,size:e,animate:"pulse",transition:Nx,children:[R.jsx(su,{variants:ou},1),R.jsx(su,{variants:ou},2),R.jsx(su,{variants:ou},3)]}));function Ph(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function n2(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Mx=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Dx=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Px={};function Lh(e,t){return(Px.jsx?Dx:Mx).test(e)}const Lx=/[ \t\n\f\r]/g;function Ox(e){return typeof e=="object"?e.type==="text"?Oh(e.value):!1:Oh(e)}function Oh(e){return e.replace(Lx,"")===""}let Ka=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Ka.prototype.normal={};Ka.prototype.property={};Ka.prototype.space=void 0;function r2(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Ka(n,r,t)}function _a(e){return e.toLowerCase()}let an=class{constructor(t,n){this.attribute=n,this.property=t}};an.prototype.attribute="";an.prototype.booleanish=!1;an.prototype.boolean=!1;an.prototype.commaOrSpaceSeparated=!1;an.prototype.commaSeparated=!1;an.prototype.defined=!1;an.prototype.mustUseProperty=!1;an.prototype.number=!1;an.prototype.overloadedBoolean=!1;an.prototype.property="";an.prototype.spaceSeparated=!1;an.prototype.space=void 0;let _x=0;const Le=ei(),Mt=ei(),Tl=ei(),ae=ei(),tt=ei(),vi=ei(),un=ei();function ei(){return 2**++_x}const xl=Object.freeze(Object.defineProperty({__proto__:null,boolean:Le,booleanish:Mt,commaOrSpaceSeparated:un,commaSeparated:vi,number:ae,overloadedBoolean:Tl,spaceSeparated:tt},Symbol.toStringTag,{value:"Module"})),uu=Object.keys(xl);let V0=class extends an{constructor(t,n,r,i){let a=-1;if(super(t,n),_h(this,"space",i),typeof r=="number")for(;++a4&&n.slice(0,4)==="data"&&Ux.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Bh,jx);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Bh.test(a)){let s=a.replace(zx,Vx);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=V0}return new i(r,t)}function Vx(e){return"-"+e.toLowerCase()}function jx(e){return e.charAt(1).toUpperCase()}const wo=r2([i2,Bx,o2,u2,l2],"html"),_i=r2([i2,Fx,o2,u2,l2],"svg");function Fh(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function c2(e){return e.join(" ").trim()}var si={},lu,Hh;function qx(){if(Hh)return lu;Hh=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,u=` -`,l="/",c="*",d="",p="comment",f="declaration";lu=function(y,S){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];S=S||{};var v=1,w=1;function x(G){var q=G.match(t);q&&(v+=q.length);var Y=G.lastIndexOf(u);w=~Y?G.length-Y:w+G.length}function k(){var G={line:v,column:w};return function(q){return q.position=new M(G),z(),q}}function M(G){this.start=G,this.end={line:v,column:w},this.source=S.source}M.prototype.content=y;function C(G){var q=new Error(S.source+":"+v+":"+w+": "+G);if(q.reason=G,q.filename=S.source,q.line=v,q.column=w,q.source=y,!S.silent)throw q}function H(G){var q=G.exec(y);if(q){var Y=q[0];return x(Y),y=y.slice(Y.length),q}}function z(){H(n)}function V(G){var q;for(G=G||[];q=P();)q!==!1&&G.push(q);return G}function P(){var G=k();if(!(l!=y.charAt(0)||c!=y.charAt(1))){for(var q=2;d!=y.charAt(q)&&(c!=y.charAt(q)||l!=y.charAt(q+1));)++q;if(q+=2,d===y.charAt(q-1))return C("End of comment missing");var Y=y.slice(2,q-2);return w+=2,x(Y),y=y.slice(q),w+=2,G({type:p,comment:Y})}}function $(){var G=k(),q=H(r);if(q){if(P(),!H(i))return C("property missing ':'");var Y=H(a),Q=G({type:f,property:b(q[0].replace(e,d)),value:Y?b(Y[0].replace(e,d)):d});return H(s),Q}}function W(){var G=[];V(G);for(var q;q=$();)q!==!1&&(G.push(q),V(G));return G}return z(),W()};function b(y){return y?y.replace(o,d):d}return lu}var zh;function $x(){if(zh)return si;zh=1;var e=si&&si.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(si,"__esModule",{value:!0}),si.default=n;var t=e(qx());function n(r,i){var a=null;if(!r||typeof r!="string")return a;var s=(0,t.default)(r),o=typeof i=="function";return s.forEach(function(u){if(u.type==="declaration"){var l=u.property,c=u.value;o?i(l,c,u):c&&(a=a||{},a[l]=c)}}),a}return si}var Qi={},Uh;function Wx(){if(Uh)return Qi;Uh=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(l){return!l||n.test(l)||e.test(l)},s=function(l,c){return c.toUpperCase()},o=function(l,c){return"".concat(c,"-")},u=function(l,c){return c===void 0&&(c={}),a(l)?l:(l=l.toLowerCase(),c.reactCompat?l=l.replace(i,o):l=l.replace(r,o),l.replace(t,s))};return Qi.camelCase=u,Qi}var Zi,Vh;function Yx(){if(Vh)return Zi;Vh=1;var e=Zi&&Zi.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e($x()),n=Wx();function r(i,a){var s={};return!i||typeof i!="string"||(0,t.default)(i,function(o,u){o&&u&&(s[(0,n.camelCase)(o,a)]=u)}),s}return r.default=r,Zi=r,Zi}var Gx=Yx();const Xx=j1(Gx),Ao=d2("end"),Gn=d2("start");function d2(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function h2(e){const t=Gn(e),n=Ao(e);if(t&&n)return{start:t,end:n}}function ga(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?jh(e.position):"start"in e||"end"in e?jh(e):"line"in e||"column"in e?El(e):""}function El(e){return qh(e&&e.line)+":"+qh(e&&e.column)}function jh(e){return El(e&&e.start)+"-"+El(e&&e.end)}function qh(e){return e&&typeof e=="number"?e:1}class jt extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?a.ruleId=r:(a.source=r.slice(0,u),a.ruleId=r.slice(u+1))}if(!a.place&&a.ancestors&&a.ancestors){const u=a.ancestors[a.ancestors.length-1];u&&(a.place=u.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=ga(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}jt.prototype.file="";jt.prototype.name="";jt.prototype.reason="";jt.prototype.message="";jt.prototype.stack="";jt.prototype.column=void 0;jt.prototype.line=void 0;jt.prototype.ancestors=void 0;jt.prototype.cause=void 0;jt.prototype.fatal=void 0;jt.prototype.place=void 0;jt.prototype.ruleId=void 0;jt.prototype.source=void 0;const q0={}.hasOwnProperty,Kx=new Map,Qx=/[A-Z]/g,Zx=new Set(["table","tbody","thead","tfoot","tr"]),Jx=new Set(["td","th"]),f2="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function eE(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=uE(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=oE(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?_i:wo,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=p2(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function p2(e,t,n){if(t.type==="element")return tE(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return nE(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return iE(e,t,n);if(t.type==="mdxjsEsm")return rE(e,t);if(t.type==="root")return aE(e,t,n);if(t.type==="text")return sE(e,t)}function tE(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=_i,e.schema=i),e.ancestors.push(t);const a=g2(e,t.tagName,!1),s=lE(e,t);let o=W0(e,t);return Zx.has(t.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!Ox(u):!0})),m2(e,s,a,t),$0(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function nE(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Ba(e,t.position)}function rE(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ba(e,t.position)}function iE(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=_i,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:g2(e,t.name,!0),s=cE(e,t),o=W0(e,t);return m2(e,s,a,t),$0(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function aE(e,t,n){const r={};return $0(r,W0(e,t)),e.create(t,e.Fragment,r,n)}function sE(e,t){return t.value}function m2(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function $0(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function oE(e,t,n){return r;function r(i,a,s,o){const l=Array.isArray(s.children)?n:t;return o?l(a,s,o):l(a,s)}}function uE(e,t){return n;function n(r,i,a,s){const o=Array.isArray(a.children),u=Gn(r);return t(i,a,s,o,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function lE(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&q0.call(t.properties,i)){const a=dE(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&Jx.has(t.tagName)?r=o:n[s]=o}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function cE(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Ba(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else Ba(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function W0(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Kx;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a0?(hn(e,e.length,0,t),e):t}const Yh={}.hasOwnProperty;function y2(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Dn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Wt=Pr(/[A-Za-z]/),Ut=Pr(/[\dA-Za-z]/),TE=Pr(/[#-'*+\--9=?A-Z^-~]/);function to(e){return e!==null&&(e<32||e===127)}const Sl=Pr(/\d/),xE=Pr(/[\dA-Fa-f]/),EE=Pr(/[!-/:-@[-`{-~]/);function fe(e){return e!==null&&e<-2}function Ze(e){return e!==null&&(e<0||e===32)}function Ue(e){return e===-2||e===-1||e===32}const Co=Pr(new RegExp("\\p{P}|\\p{S}","u")),Zr=Pr(/\s/);function Pr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Bi(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const o=e.charCodeAt(n+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ze(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(u){return Ue(u)?(e.enter(n),o(u)):t(u)}function o(u){return Ue(u)&&a++s))return;const H=t.events.length;let z=H,V,P;for(;z--;)if(t.events[z][0]==="exit"&&t.events[z][1].type==="chunkFlow"){if(V){P=t.events[z][1].end;break}V=!0}for(v(r),C=H;Cx;){const M=n[k];t.containerState=M[1],M[0].exit.call(t,e)}n.length=x}function w(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function kE(e,t,n){return ze(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ii(e){if(e===null||Ze(e)||Zr(e))return 1;if(Co(e))return 2}function ko(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},p={...e[n][1].start};Xh(d,-u),Xh(p,u),s={type:u>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},o={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},a={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=yn(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=yn(l,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),l=yn(l,ko(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=yn(l,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,l=yn(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,hn(e,r-1,n-r+3,l),n=r+l.length-c-2;break}}for(n=-1;++n0&&Ue(C)?ze(e,w,"linePrefix",a+1)(C):w(C)}function w(C){return C===null||fe(C)?e.check(Kh,y,k)(C):(e.enter("codeFlowValue"),x(C))}function x(C){return C===null||fe(C)?(e.exit("codeFlowValue"),w(C)):(e.consume(C),x)}function k(C){return e.exit("codeFenced"),t(C)}function M(C,H,z){let V=0;return P;function P(Y){return C.enter("lineEnding"),C.consume(Y),C.exit("lineEnding"),$}function $(Y){return C.enter("codeFencedFence"),Ue(Y)?ze(C,W,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):W(Y)}function W(Y){return Y===o?(C.enter("codeFencedFenceSequence"),G(Y)):z(Y)}function G(Y){return Y===o?(V++,C.consume(Y),G):V>=s?(C.exit("codeFencedFenceSequence"),Ue(Y)?ze(C,q,"whitespace")(Y):q(Y)):z(Y)}function q(Y){return Y===null||fe(Y)?(C.exit("codeFencedFence"),H(Y)):z(Y)}}}function HE(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const du={name:"codeIndented",tokenize:UE},zE={partial:!0,tokenize:VE};function UE(e,t,n){const r=this;return i;function i(l){return e.enter("codeIndented"),ze(e,a,"linePrefix",5)(l)}function a(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(l):n(l)}function s(l){return l===null?u(l):fe(l)?e.attempt(zE,s,u)(l):(e.enter("codeFlowValue"),o(l))}function o(l){return l===null||fe(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),o)}function u(l){return e.exit("codeIndented"),t(l)}}function VE(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):fe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):ze(e,a,"linePrefix",5)(s)}function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):fe(s)?i(s):n(s)}}const jE={name:"codeText",previous:$E,resolve:qE,tokenize:WE};function qE(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ji(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ji(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ji(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function w2(e,t,n,r,i,a,s,o,u){const l=u||Number.POSITIVE_INFINITY;let c=0;return d;function d(v){return v===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(v),e.exit(a),p):v===null||v===32||v===41||to(v)?n(v):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),y(v))}function p(v){return v===62?(e.enter(a),e.consume(v),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),f(v))}function f(v){return v===62?(e.exit("chunkString"),e.exit(o),p(v)):v===null||v===60||fe(v)?n(v):(e.consume(v),v===92?b:f)}function b(v){return v===60||v===62||v===92?(e.consume(v),f):f(v)}function y(v){return!c&&(v===null||v===41||Ze(v))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(v)):c999||f===null||f===91||f===93&&!u||f===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(f):f===93?(e.exit(a),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):fe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===null||f===91||f===93||fe(f)||o++>999?(e.exit("chunkString"),c(f)):(e.consume(f),u||(u=!Ue(f)),f===92?p:d)}function p(f){return f===91||f===92||f===93?(e.consume(f),o++,d):d(f)}}function C2(e,t,n,r,i,a){let s;return o;function o(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),s=p===40?41:p,u):n(p)}function u(p){return p===s?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(a),l(p))}function l(p){return p===s?(e.exit(a),u(s)):p===null?n(p):fe(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),ze(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===s||p===null||fe(p)?(e.exit("chunkString"),l(p)):(e.consume(p),p===92?d:c)}function d(p){return p===s||p===92?(e.consume(p),c):c(p)}}function ba(e,t){let n;return r;function r(i){return fe(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Ue(i)?ze(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const eS={name:"definition",tokenize:nS},tS={partial:!0,tokenize:rS};function nS(e,t,n){const r=this;let i;return a;function a(f){return e.enter("definition"),s(f)}function s(f){return A2.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function o(f){return i=Dn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),u):n(f)}function u(f){return Ze(f)?ba(e,l)(f):l(f)}function l(f){return w2(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function c(f){return e.attempt(tS,d,d)(f)}function d(f){return Ue(f)?ze(e,p,"whitespace")(f):p(f)}function p(f){return f===null||fe(f)?(e.exit("definition"),r.parser.defined.push(i),t(f)):n(f)}}function rS(e,t,n){return r;function r(o){return Ze(o)?ba(e,i)(o):n(o)}function i(o){return C2(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return Ue(o)?ze(e,s,"whitespace")(o):s(o)}function s(o){return o===null||fe(o)?t(o):n(o)}}const iS={name:"hardBreakEscape",tokenize:aS};function aS(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return fe(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const sS={name:"headingAtx",resolve:oS,tokenize:uS};function oS(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},hn(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function uS(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||Ze(c)?(e.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),u(c)):c===null||fe(c)?(e.exit("atxHeading"),t(c)):Ue(c)?ze(e,o,"whitespace")(c):(e.enter("atxHeadingText"),l(c))}function u(c){return c===35?(e.consume(c),u):(e.exit("atxHeadingSequence"),o(c))}function l(c){return c===null||c===35||Ze(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),l)}}const lS=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Zh=["pre","script","style","textarea"],cS={concrete:!0,name:"htmlFlow",resolveTo:fS,tokenize:pS},dS={partial:!0,tokenize:gS},hS={partial:!0,tokenize:mS};function fS(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function pS(e,t,n){const r=this;let i,a,s,o,u;return l;function l(B){return c(B)}function c(B){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(B),d}function d(B){return B===33?(e.consume(B),p):B===47?(e.consume(B),a=!0,y):B===63?(e.consume(B),i=3,r.interrupt?t:N):Wt(B)?(e.consume(B),s=String.fromCharCode(B),S):n(B)}function p(B){return B===45?(e.consume(B),i=2,f):B===91?(e.consume(B),i=5,o=0,b):Wt(B)?(e.consume(B),i=4,r.interrupt?t:N):n(B)}function f(B){return B===45?(e.consume(B),r.interrupt?t:N):n(B)}function b(B){const xe="CDATA[";return B===xe.charCodeAt(o++)?(e.consume(B),o===xe.length?r.interrupt?t:W:b):n(B)}function y(B){return Wt(B)?(e.consume(B),s=String.fromCharCode(B),S):n(B)}function S(B){if(B===null||B===47||B===62||Ze(B)){const xe=B===47,Ie=s.toLowerCase();return!xe&&!a&&Zh.includes(Ie)?(i=1,r.interrupt?t(B):W(B)):lS.includes(s.toLowerCase())?(i=6,xe?(e.consume(B),v):r.interrupt?t(B):W(B)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(B):a?w(B):x(B))}return B===45||Ut(B)?(e.consume(B),s+=String.fromCharCode(B),S):n(B)}function v(B){return B===62?(e.consume(B),r.interrupt?t:W):n(B)}function w(B){return Ue(B)?(e.consume(B),w):P(B)}function x(B){return B===47?(e.consume(B),P):B===58||B===95||Wt(B)?(e.consume(B),k):Ue(B)?(e.consume(B),x):P(B)}function k(B){return B===45||B===46||B===58||B===95||Ut(B)?(e.consume(B),k):M(B)}function M(B){return B===61?(e.consume(B),C):Ue(B)?(e.consume(B),M):x(B)}function C(B){return B===null||B===60||B===61||B===62||B===96?n(B):B===34||B===39?(e.consume(B),u=B,H):Ue(B)?(e.consume(B),C):z(B)}function H(B){return B===u?(e.consume(B),u=null,V):B===null||fe(B)?n(B):(e.consume(B),H)}function z(B){return B===null||B===34||B===39||B===47||B===60||B===61||B===62||B===96||Ze(B)?M(B):(e.consume(B),z)}function V(B){return B===47||B===62||Ue(B)?x(B):n(B)}function P(B){return B===62?(e.consume(B),$):n(B)}function $(B){return B===null||fe(B)?W(B):Ue(B)?(e.consume(B),$):n(B)}function W(B){return B===45&&i===2?(e.consume(B),Q):B===60&&i===1?(e.consume(B),ee):B===62&&i===4?(e.consume(B),Ce):B===63&&i===3?(e.consume(B),N):B===93&&i===5?(e.consume(B),oe):fe(B)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(dS,ve,G)(B)):B===null||fe(B)?(e.exit("htmlFlowData"),G(B)):(e.consume(B),W)}function G(B){return e.check(hS,q,ve)(B)}function q(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),Y}function Y(B){return B===null||fe(B)?G(B):(e.enter("htmlFlowData"),W(B))}function Q(B){return B===45?(e.consume(B),N):W(B)}function ee(B){return B===47?(e.consume(B),s="",de):W(B)}function de(B){if(B===62){const xe=s.toLowerCase();return Zh.includes(xe)?(e.consume(B),Ce):W(B)}return Wt(B)&&s.length<8?(e.consume(B),s+=String.fromCharCode(B),de):W(B)}function oe(B){return B===93?(e.consume(B),N):W(B)}function N(B){return B===62?(e.consume(B),Ce):B===45&&i===2?(e.consume(B),N):W(B)}function Ce(B){return B===null||fe(B)?(e.exit("htmlFlowData"),ve(B)):(e.consume(B),Ce)}function ve(B){return e.exit("htmlFlow"),t(B)}}function mS(e,t,n){const r=this;return i;function i(s){return fe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function gS(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Qa,t,n)}}const bS={name:"htmlText",tokenize:yS};function yS(e,t,n){const r=this;let i,a,s;return o;function o(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),u}function u(N){return N===33?(e.consume(N),l):N===47?(e.consume(N),M):N===63?(e.consume(N),x):Wt(N)?(e.consume(N),z):n(N)}function l(N){return N===45?(e.consume(N),c):N===91?(e.consume(N),a=0,b):Wt(N)?(e.consume(N),w):n(N)}function c(N){return N===45?(e.consume(N),f):n(N)}function d(N){return N===null?n(N):N===45?(e.consume(N),p):fe(N)?(s=d,ee(N)):(e.consume(N),d)}function p(N){return N===45?(e.consume(N),f):d(N)}function f(N){return N===62?Q(N):N===45?p(N):d(N)}function b(N){const Ce="CDATA[";return N===Ce.charCodeAt(a++)?(e.consume(N),a===Ce.length?y:b):n(N)}function y(N){return N===null?n(N):N===93?(e.consume(N),S):fe(N)?(s=y,ee(N)):(e.consume(N),y)}function S(N){return N===93?(e.consume(N),v):y(N)}function v(N){return N===62?Q(N):N===93?(e.consume(N),v):y(N)}function w(N){return N===null||N===62?Q(N):fe(N)?(s=w,ee(N)):(e.consume(N),w)}function x(N){return N===null?n(N):N===63?(e.consume(N),k):fe(N)?(s=x,ee(N)):(e.consume(N),x)}function k(N){return N===62?Q(N):x(N)}function M(N){return Wt(N)?(e.consume(N),C):n(N)}function C(N){return N===45||Ut(N)?(e.consume(N),C):H(N)}function H(N){return fe(N)?(s=H,ee(N)):Ue(N)?(e.consume(N),H):Q(N)}function z(N){return N===45||Ut(N)?(e.consume(N),z):N===47||N===62||Ze(N)?V(N):n(N)}function V(N){return N===47?(e.consume(N),Q):N===58||N===95||Wt(N)?(e.consume(N),P):fe(N)?(s=V,ee(N)):Ue(N)?(e.consume(N),V):Q(N)}function P(N){return N===45||N===46||N===58||N===95||Ut(N)?(e.consume(N),P):$(N)}function $(N){return N===61?(e.consume(N),W):fe(N)?(s=$,ee(N)):Ue(N)?(e.consume(N),$):V(N)}function W(N){return N===null||N===60||N===61||N===62||N===96?n(N):N===34||N===39?(e.consume(N),i=N,G):fe(N)?(s=W,ee(N)):Ue(N)?(e.consume(N),W):(e.consume(N),q)}function G(N){return N===i?(e.consume(N),i=void 0,Y):N===null?n(N):fe(N)?(s=G,ee(N)):(e.consume(N),G)}function q(N){return N===null||N===34||N===39||N===60||N===61||N===96?n(N):N===47||N===62||Ze(N)?V(N):(e.consume(N),q)}function Y(N){return N===47||N===62||Ze(N)?V(N):n(N)}function Q(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):n(N)}function ee(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),de}function de(N){return Ue(N)?ze(e,oe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):oe(N)}function oe(N){return e.enter("htmlTextData"),s(N)}}const X0={name:"labelEnd",resolveAll:ES,resolveTo:SS,tokenize:wS},vS={tokenize:AS},TS={tokenize:CS},xS={tokenize:kS};function ES(e){let t=-1;const n=[];for(;++t=3&&(l===null||fe(l))?(e.exit("thematicBreak"),t(l)):n(l)}function u(l){return l===i?(e.consume(l),r++,u):(e.exit("thematicBreakSequence"),Ue(l)?ze(e,o,"whitespace")(l):o(l))}}const Jt={continuation:{tokenize:BS},exit:HS,name:"list",tokenize:_S},LS={partial:!0,tokenize:zS},OS={partial:!0,tokenize:FS};function _S(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(f){const b=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:Sl(f)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(zs,n,l)(f):l(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(f)}return n(f)}function u(f){return Sl(f)&&++s<10?(e.consume(f),u):(!r.interrupt||s<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),l(f)):n(f)}function l(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(Qa,r.interrupt?n:c,e.attempt(LS,p,d))}function c(f){return r.containerState.initialBlankLine=!0,a++,p(f)}function d(f){return Ue(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),p):n(f)}function p(f){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function BS(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Qa,i,a);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ze(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!Ue(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(OS,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,ze(e,e.attempt(Jt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function FS(e,t,n){const r=this;return ze(e,i,"listItemIndent",r.containerState.size+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function HS(e){e.exit(this.containerState.type)}function zS(e,t,n){const r=this;return ze(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=r.events[r.events.length-1];return!Ue(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Jh={name:"setextUnderline",resolveTo:US,tokenize:VS};function US(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function VS(e,t,n){const r=this;let i;return a;function a(l){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=l,s(l)):n(l)}function s(l){return e.enter("setextHeadingLineSequence"),o(l)}function o(l){return l===i?(e.consume(l),o):(e.exit("setextHeadingLineSequence"),Ue(l)?ze(e,u,"lineSuffix")(l):u(l))}function u(l){return l===null||fe(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const jS={tokenize:qS};function qS(e){const t=this,n=e.attempt(Qa,r,e.attempt(this.parser.constructs.flowInitial,i,ze(e,e.attempt(this.parser.constructs.flow,i,e.attempt(XE,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const $S={resolveAll:I2()},WS=k2("string"),YS=k2("text");function k2(e){return{resolveAll:I2(e==="text"?GS:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,o);return s;function s(c){return l(c)?a(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),u}function u(c){return l(c)?(n.exit("data"),a(c)):(n.consume(c),u)}function l(c){if(c===null)return!0;const d=i[c];let p=-1;if(d)for(;++p-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function ow(e,t){let n=-1;const r=[];let i;for(;++n{const{open:t,onClose:n=()=>{},titleId:r,title:i,contentId:a,content:s,color:o="primary",titleIconColor:u="warning",titleIcon:l=!0,cancelLabel:c,onCancel:d=()=>{},confirmLabel:p,onConfirm:f=()=>{},submitLabel:b,onSubmitValid:y,onSubmitInvalid:S,handleSubmit:v,secondaryAction:w,...x}=e,k=D8[o],[R,C]=O.useState(!1),H=W=>!(W===!1||typeof W=="object"&&W.closeDialog===!1),z=W=>async(...G)=>{if(!R)try{const q=W(...G);if(q instanceof Promise){C(!0);const Y=await q;C(!1),H(Y)&&n()}else H(q)&&n()}catch(q){C(!1),console.error("Error in dialog action:",q)}};let V;const P=[];c&&P.push({key:"cancel",children:c,color:"secondary",onClick:z(d),loading:R}),p&&P.push({key:"confirm",children:p,color:o,onClick:z(f),loading:R}),b&&(P.push({key:"submit",children:b,type:"submit",loading:R}),v&&y&&(V={onSubmit:W=>{W.preventDefault(),W.stopPropagation(),!R&&(C(!0),v(async(...G)=>{try{const q=await y(...G);C(!1),H(q)&&n()}catch(q){C(!1),console.error("Error in form submission:",q)}},async(...G)=>{try{await S?.(...G)}catch(q){console.error("Error in form validation:",q)}finally{C(!1)}})())}}));const $=()=>{R||n()};return M.jsxs(Z5,{open:t,onClose:$,"aria-labelledby":r,"aria-describedby":a,...x,component:V&&"form"||void 0,...V,children:[M.jsxs(hb,{id:!k&&r||void 0,children:[l==="form"&&M.jsx(qg,{})||l===!0&&M.jsx(Fc,{variant:"circle",color:u,children:M.jsx(k,{})})||M.jsx(Fc,{variant:"circle",color:u,children:l})||void 0,!l&&i,M.jsx(Kr,{size:"small",onClick:$,children:M.jsx(U1,{size:"1.25rem"})})]}),M.jsxs(ab,{children:[l&&M.jsx(Xe,{variant:"subtitle1",id:r,children:i}),M.jsx(lb,{id:a,children:s})]}),P.length>0&&M.jsxs(nb,{children:[M.jsx(Ar,{mr:"auto",children:w}),P.map(W=>O.createElement(V1,{...W,key:W.key,...P.length===1&&{fullWidth:!0}}))]})]})},$o=(e,t)=>{const[n,r]=O.useState(!1),i=M.jsx(P8,{...e,open:n,onClose:()=>{r(!1),e.onClose?.()}}),a=O.useMemo(()=>({open:()=>r(!0),close:()=>r(!1)}),[]);return[i,a]},L8=()=>M.jsxs("svg",{width:"100",height:"21",viewBox:"0 0 100 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[M.jsx("path",{d:"M25.9027 21C24.2555 21 22.9819 20.6707 22.082 20.012C21.1821 19.3687 20.6482 18.4344 20.4805 17.209H23.7064C23.9352 18.1586 24.6825 18.6335 25.9485 18.6335C26.8789 18.6335 27.5576 18.4037 27.9847 17.9442C28.4118 17.5 28.6253 16.8184 28.6253 15.8993V14.0383C28.3203 14.5897 27.8779 15.0339 27.2984 15.3709C26.7188 15.6926 26.0324 15.8534 25.2393 15.8534C24.2478 15.8534 23.3556 15.6313 22.5624 15.1871C21.7693 14.7276 21.1439 14.0536 20.6864 13.1652C20.2288 12.2768 20 11.2046 20 9.94858C20 8.69256 20.2288 7.62035 20.6864 6.73195C21.1439 5.82823 21.7693 5.15427 22.5624 4.71007C23.3556 4.25055 24.2478 4.02079 25.2393 4.02079C25.9866 4.02079 26.6654 4.18928 27.2755 4.52626C27.8856 4.86324 28.3355 5.29978 28.6253 5.83589V4.36543H31.7826V15.7845C31.7826 17.3928 31.3021 18.6641 30.3412 19.5985C29.3803 20.5328 27.9008 21 25.9027 21ZM25.9256 13.4409C26.7493 13.4409 27.4127 13.1116 27.9161 12.453C28.4194 11.7943 28.6711 10.9519 28.6711 9.9256C28.6711 8.89934 28.4194 8.06455 27.9161 7.42123C27.4127 6.76258 26.7493 6.43326 25.9256 6.43326C25.041 6.43326 24.3699 6.73961 23.9123 7.3523C23.4547 7.96499 23.2259 8.82276 23.2259 9.9256C23.2259 11.0284 23.4547 11.8939 23.9123 12.5219C24.3699 13.1346 25.041 13.4409 25.9256 13.4409Z",fill:"black"}),M.jsx("path",{d:"M33.39 16.1751V4.36543H36.4787V6.91575C36.8905 5.81291 37.4091 5.03939 38.0344 4.59519C38.6598 4.15098 39.5368 3.95952 40.6655 4.02079V6.98468C40.3299 6.95405 40.0783 6.93873 39.9105 6.93873C39.4682 6.93873 39.0487 7 38.6522 7.12254C37.2489 7.59737 36.5473 9.01422 36.5473 11.3731V16.1751H33.39Z",fill:"black"}),M.jsx("path",{d:"M44.1585 16.4967C42.9382 16.4967 41.9316 16.1751 41.1384 15.5317C40.3606 14.8884 39.9716 14 39.9716 12.8665C39.9716 11.9628 40.2157 11.2659 40.7037 10.7757C41.2071 10.2702 41.7714 9.9256 42.3968 9.74179C43.0374 9.55799 43.7619 9.41247 44.5703 9.30525L45.5312 9.19037C46.3396 9.09847 46.9192 8.96061 47.27 8.7768C47.636 8.57768 47.8191 8.20241 47.8191 7.65098C47.8191 7.19147 47.6589 6.83917 47.3386 6.59409C47.0183 6.34902 46.5607 6.22648 45.9659 6.22648C45.3863 6.22648 44.9135 6.34902 44.5474 6.59409C44.1966 6.82385 43.9754 7.14551 43.8839 7.55908H40.4978C40.7266 6.44092 41.3138 5.57549 42.2595 4.9628C43.2204 4.33479 44.4788 4.02079 46.0345 4.02079C49.2986 4.02079 50.9306 5.26149 50.9306 7.74289V13.326C50.9306 14.2451 51.0602 15.1947 51.3195 16.1751H48.208C48.086 15.6083 48.0021 15.1105 47.9563 14.6816C47.6055 15.233 47.1022 15.6772 46.4463 16.0142C45.7905 16.3359 45.0278 16.4967 44.1585 16.4967ZM45.1422 14.1532C45.9354 14.1532 46.576 13.8928 47.0641 13.372C47.5674 12.8512 47.8191 12.1849 47.8191 11.3731V10.2013C47.6055 10.4617 47.3386 10.6608 47.0183 10.7987C46.7133 10.9365 46.2709 11.0514 45.6913 11.1433C44.8372 11.2965 44.2195 11.4803 43.8381 11.6947C43.4568 11.8939 43.2662 12.2538 43.2662 12.7746C43.2662 13.2035 43.4416 13.5405 43.7924 13.7856C44.1432 14.0306 44.5932 14.1532 45.1422 14.1532Z",fill:"black"}),M.jsx("path",{d:"M63.6153 0.0919039V16.1751H60.458V14.7965C60.1682 15.3173 59.7183 15.7385 59.1082 16.0602C58.4981 16.3665 57.7964 16.5197 57.0033 16.5197C56.0119 16.5197 55.112 16.267 54.3036 15.7615C53.5105 15.256 52.8775 14.5361 52.4047 13.6018C51.9471 12.6521 51.7183 11.5416 51.7183 10.2702C51.7183 8.99891 51.9471 7.89606 52.4047 6.96171C52.8775 6.01203 53.5105 5.28446 54.3036 4.77899C55.112 4.27352 56.0119 4.02079 57.0033 4.02079C57.7812 4.02079 58.4752 4.18928 59.0853 4.52626C59.7106 4.84792 60.1682 5.2768 60.458 5.81291V0.0919039H63.6153ZM57.6897 14.0383C58.5438 14.0383 59.2226 13.686 59.7259 12.9814C60.2445 12.2768 60.5038 11.3731 60.5038 10.2702C60.5038 9.1674 60.2445 8.26368 59.7259 7.55908C59.2226 6.85449 58.5438 6.50219 57.6897 6.50219C56.7898 6.50219 56.1034 6.83917 55.6306 7.51313C55.173 8.17177 54.9442 9.09081 54.9442 10.2702C54.9442 11.4497 55.173 12.3764 55.6306 13.0503C56.1034 13.709 56.7898 14.0383 57.6897 14.0383Z",fill:"black"}),M.jsx("path",{d:"M68.4939 3.10175H64.9476V0H68.4939V3.10175ZM68.2879 16.1751H65.1764V4.36543H68.2879V16.1751Z",fill:"black"}),M.jsx("path",{d:"M75.1212 14.0842C76.2194 14.0842 76.9515 13.7396 77.3176 13.0503H80.6121C80.2766 14.1225 79.6207 14.9726 78.6446 15.6007C77.6836 16.2133 76.4939 16.5197 75.0755 16.5197C73.7942 16.5197 72.6808 16.2593 71.7351 15.7385C70.8047 15.2177 70.0879 14.4902 69.5845 13.5558C69.0812 12.6061 68.8295 11.5186 68.8295 10.2932C68.8295 9.09847 69.1041 8.02626 69.6532 7.07659C70.2023 6.1116 70.9344 5.36105 71.8495 4.82495C72.7799 4.28884 73.7942 4.02079 74.8924 4.02079C76.0821 4.02079 77.1269 4.30416 78.0268 4.8709C78.942 5.42232 79.6589 6.24179 80.1774 7.32932C80.696 8.40153 80.9629 9.69584 80.9782 11.2123H72.0555C72.1165 12.0853 72.4291 12.7823 72.9935 13.3031C73.5731 13.8239 74.2823 14.0842 75.1212 14.0842ZM75.0068 6.45624C74.2594 6.45624 73.6112 6.70131 73.0621 7.19147C72.5283 7.68162 72.2003 8.29431 72.0783 9.02954H77.8438C77.7065 8.24836 77.3938 7.62801 76.9058 7.16849C76.4177 6.69365 75.7847 6.45624 75.0068 6.45624Z",fill:"black"}),M.jsx("path",{d:"M81.5786 16.1751V4.36543H84.6444V5.85886C84.9647 5.35339 85.407 4.92451 85.9713 4.57221C86.5357 4.2046 87.2449 4.02079 88.0991 4.02079C89.304 4.02079 90.2421 4.39606 90.9132 5.14661C91.5995 5.89716 91.9427 6.95405 91.9427 8.31729V16.1751H88.7854V8.54705C88.7854 7.21444 88.2135 6.54814 87.0695 6.54814C86.4289 6.54814 85.8798 6.80853 85.4222 7.32932C84.9647 7.83479 84.7359 8.593 84.7359 9.60394V16.1751H81.5786Z",fill:"black"}),M.jsx("path",{d:"M98.1011 16.2899C96.9876 16.2899 96.0801 16.0066 95.3785 15.4398C94.6921 14.8731 94.3489 13.9311 94.3489 12.6138V6.7779H92.3356V4.36543H94.3489V0.873086H97.4147V4.36543H99.7712V6.7779H97.4147V12.0853C97.4147 12.698 97.5291 13.1575 97.7579 13.4639C98.0019 13.7549 98.3985 13.9004 98.9476 13.9004C99.2374 13.9004 99.5882 13.8545 100 13.7626V16.0372C99.5272 16.2057 98.8942 16.2899 98.1011 16.2899Z",fill:"black"}),M.jsx("path",{d:"M3 13H0V16H3V13Z",fill:"black"}),M.jsx("path",{d:"M18 0V2.85011L8.94745 16H6V13.1499L15.0521 0H18Z",fill:"black"})]}),yd=()=>M.jsxs("svg",{width:"26",height:"28",viewBox:"0 0 26 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[M.jsx("path",{d:"M7 19H4V22H7V19Z",fill:"black"}),M.jsx("path",{d:"M22 6V8.85011L12.9475 22H10V19.1499L19.0521 6H22Z",fill:"black"})]}),O8=le(xp)(({theme:e})=>{const{spacing:t}=e;return{height:"4rem"}}),_8=le(s7)(({theme:e})=>{const{spacing:t}=e;return{height:"3.25rem",gap:"0.5rem"}}),B8=le("img")(({theme:e})=>{const{palette:t}=e;return{width:"2.25rem",height:"2.25rem",borderRadius:"0.5rem",border:`1px solid ${t.divider}`,objectFit:"cover"}}),F8=le("span")(({theme:e})=>{const{palette:t,typography:n}=e;return{...n.subtitle2,fontWeight:n.fontWeightLight,color:t.text.primary}}),H8=le("span")(({theme:e})=>{const{palette:t,typography:n}=e;return{...n.body2,fontWeight:n.fontWeightLight,color:t.text.secondary}}),vd=(e,t)=>M.jsxs(_8,{value:e.name,children:[M.jsx(B8,{src:e.logoUrl}),M.jsxs(Qe,{gap:.25,children:[M.jsx(F8,{children:e.displayName}),M.jsx(H8,{children:e.name})]})]},e.name),AL=()=>{const[{modelName:e,modelInfoList:t},{setModelName:n}]=ja();return M.jsx(O8,{value:e,onChange:r=>n(String(r.target.value)),renderValue:r=>{const i=t.find(a=>a.name===r);return i&&vd(i)||void 0},children:t.map(r=>vd(r,r.name===e))})},z8={"linux/mac":"Linux/MacOS",windows:"Windows"},U8=le("div")(({theme:e})=>{const{palette:t,spacing:n}=e;return{display:"flex",flexFlow:"row nowrap",justifyContent:"space-between",alignItems:"center",paddingInline:n(2),paddingBlock:n(1.5),gap:n(1),overflow:"hidden",borderRadius:"0.7rem",backgroundColor:t.background.area}}),Td=()=>{const[{clusterInfo:{nodeJoinCommand:e}}]=ja(),[t,n]=O.useState();O.useEffect(()=>{if(t){const i=setTimeout(()=>{n(void 0)},2e3);return()=>clearTimeout(i)}},[t]);const r=$s(async i=>{await navigator.clipboard.writeText(e[i]),n(i)});return M.jsx(Qe,{gap:1,children:Object.entries(e).map(([i,a])=>M.jsxs(Qe,{gap:1,children:[M.jsxs(Xe,{variant:"subtitle2",children:["For ",z8[i]||i,":"]}),M.jsxs(U8,{children:[M.jsx(Xe,{sx:{flex:1,lineHeight:"1.125rem",whiteSpace:"wrap"},variant:"pre",children:a}),M.jsx(Kr,{sx:{flex:"none",fontSize:"1.5rem"},size:"em",onClick:()=>r(i),children:t===i&&M.jsx(Sp,{})||M.jsx(wp,{})})]})]},i))})};function l0(e,t){e.indexOf(t)===-1&&e.push(t)}function c0(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const ur=(e,t,n)=>n>t?t:n{};const lr={},Ap=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Cp(e){return typeof e=="object"&&e!==null}const kp=e=>/^0[^.\s]+$/u.test(e);function h0(e){let t;return()=>(t===void 0&&(t=e()),t)}const En=e=>e,V8=(e,t)=>n=>t(e(n)),Wa=(...e)=>e.reduce(V8),Ra=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class f0{constructor(){this.subscriptions=[]}add(t){return l0(this.subscriptions,t),()=>c0(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;ae*1e3,jn=e=>e/1e3;function Ip(e,t){return t?e*(1e3/t):0}const Np=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,j8=1e-7,q8=12;function $8(e,t,n,r,i){let a,s,o=0;do s=t+(n-t)/2,a=Np(s,r,i)-e,a>0?n=s:t=s;while(Math.abs(a)>j8&&++o$8(a,0,1,e,n);return a=>a===0||a===1?a:Np(i(a),t,r)}const Rp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Mp=e=>t=>1-e(1-t),Dp=Ya(.33,1.53,.69,.99),p0=Mp(Dp),Pp=Rp(p0),Lp=e=>(e*=2)<1?.5*p0(e):.5*(2-Math.pow(2,-10*(e-1))),m0=e=>1-Math.sin(Math.acos(e)),Op=Mp(m0),_p=Rp(m0),W8=Ya(.42,0,1,1),Y8=Ya(0,0,.58,1),Bp=Ya(.42,0,.58,1),G8=e=>Array.isArray(e)&&typeof e[0]!="number",Fp=e=>Array.isArray(e)&&typeof e[0]=="number",X8={linear:En,easeIn:W8,easeInOut:Bp,easeOut:Y8,circIn:m0,circInOut:_p,circOut:Op,backIn:p0,backInOut:Pp,backOut:Dp,anticipate:Lp},K8=e=>typeof e=="string",xd=e=>{if(Fp(e)){d0(e.length===4);const[t,n,r,i]=e;return Ya(t,n,r,i)}else if(K8(e))return X8[e];return e},Hp=O.createContext({}),zp=O.createContext({strict:!1}),Up=O.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),xo=O.createContext({});function Eo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ma(e){return typeof e=="string"||Array.isArray(e)}const g0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],b0=["initial",...g0];function So(e){return Eo(e.animate)||b0.some(t=>Ma(e[t]))}function Vp(e){return!!(So(e)||e.variants)}function Q8(e,t){if(So(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ma(n)?n:void 0,animate:Ma(r)?r:void 0}}return e.inherit!==!1?t:{}}function Z8(e){const{initial:t,animate:n}=Q8(e,O.useContext(xo));return O.useMemo(()=>({initial:t,animate:n}),[Ed(t),Ed(n)])}function Ed(e){return Array.isArray(e)?e.join(" "):e}const gs=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function J8(e,t){let n=new Set,r=new Set,i=!1,a=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function u(c){s.has(c)&&(l.schedule(c),e()),c(o)}const l={schedule:(c,d=!1,p=!1)=>{const b=p&&i?n:r;return d&&s.add(c),b.has(c)||b.add(c),c},cancel:c=>{r.delete(c),s.delete(c)},process:c=>{if(o=c,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(u),n.clear(),i=!1,a&&(a=!1,l.process(c))}};return l}const ey=40;function jp(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=gs.reduce((x,k)=>(x[k]=J8(a),x),{}),{setup:o,read:u,resolveKeyframes:l,preUpdate:c,update:d,preRender:p,render:f,postRender:b}=s,y=()=>{const x=lr.useManualTiming?i.timestamp:performance.now();n=!1,lr.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,ey),1)),i.timestamp=x,i.isProcessing=!0,o.process(i),u.process(i),l.process(i),c.process(i),d.process(i),p.process(i),f.process(i),b.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},S=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:gs.reduce((x,k)=>{const R=s[k];return x[k]=(C,H=!1,z=!1)=>(n||S(),R.schedule(C,H,z)),x},{}),cancel:x=>{for(let k=0;k(_s===void 0&&tn.set(Ft.isProcessing||lr.useManualTiming?Ft.timestamp:performance.now()),_s),set:e=>{_s=e,queueMicrotask(ty)}},qp=e=>t=>typeof t=="string"&&t.startsWith(e),y0=qp("--"),ny=qp("var(--"),v0=e=>ny(e)?ry.test(e.split("/*")[0].trim()):!1,ry=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Di={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Da={...Di,transform:e=>ur(0,1,e)},bs={...Di,default:1},da=e=>Math.round(e*1e5)/1e5,T0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function iy(e){return e==null}const ay=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,x0=(e,t)=>n=>!!(typeof n=="string"&&ay.test(n)&&n.startsWith(e)||t&&!iy(n)&&Object.prototype.hasOwnProperty.call(n,t)),$p=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,s,o]=r.match(T0);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},sy=e=>ur(0,255,e),Yo={...Di,transform:e=>Math.round(sy(e))},qr={test:x0("rgb","red"),parse:$p("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Yo.transform(e)+", "+Yo.transform(t)+", "+Yo.transform(n)+", "+da(Da.transform(r))+")"};function oy(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Ju={test:x0("#"),parse:oy,transform:qr.transform},Ga=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),vr=Ga("deg"),qn=Ga("%"),Ae=Ga("px"),uy=Ga("vh"),ly=Ga("vw"),Sd={...qn,parse:e=>qn.parse(e)/100,transform:e=>qn.transform(e*100)},hi={test:x0("hsl","hue"),parse:$p("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+qn.transform(da(t))+", "+qn.transform(da(n))+", "+da(Da.transform(r))+")"},Pt={test:e=>qr.test(e)||Ju.test(e)||hi.test(e),parse:e=>qr.test(e)?qr.parse(e):hi.test(e)?hi.parse(e):Ju.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?qr.transform(e):hi.transform(e),getAnimatableNone:e=>{const t=Pt.parse(e);return t.alpha=0,Pt.transform(t)}},cy=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function dy(e){return isNaN(e)&&typeof e=="string"&&(e.match(T0)?.length||0)+(e.match(cy)?.length||0)>0}const Wp="number",Yp="color",hy="var",fy="var(",wd="${}",py=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Pa(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const o=t.replace(py,u=>(Pt.test(u)?(r.color.push(a),i.push(Yp),n.push(Pt.parse(u))):u.startsWith(fy)?(r.var.push(a),i.push(hy),n.push(u)):(r.number.push(a),i.push(Wp),n.push(parseFloat(u))),++a,wd)).split(wd);return{values:n,split:o,indexes:r,types:i}}function Gp(e){return Pa(e).values}function Xp(e){const{split:t,types:n}=Pa(e),r=t.length;return i=>{let a="";for(let s=0;stypeof e=="number"?0:Pt.test(e)?Pt.getAnimatableNone(e):e;function gy(e){const t=Gp(e);return Xp(e)(t.map(my))}const kr={test:dy,parse:Gp,createTransformer:Xp,getAnimatableNone:gy};function Go(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function by({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,s=0;if(!t)i=a=s=n;else{const o=n<.5?n*(1+t):n+t-n*t,u=2*n-o;i=Go(u,o,e+1/3),a=Go(u,o,e),s=Go(u,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}function Ks(e,t){return n=>n>0?t:e}const mt=(e,t,n)=>e+(t-e)*n,Xo=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},yy=[Ju,qr,hi],vy=e=>yy.find(t=>t.test(e));function Ad(e){const t=vy(e);if(!t)return!1;let n=t.parse(e);return t===hi&&(n=by(n)),n}const Cd=(e,t)=>{const n=Ad(e),r=Ad(t);if(!n||!r)return Ks(e,t);const i={...n};return a=>(i.red=Xo(n.red,r.red,a),i.green=Xo(n.green,r.green,a),i.blue=Xo(n.blue,r.blue,a),i.alpha=mt(n.alpha,r.alpha,a),qr.transform(i))},el=new Set(["none","hidden"]);function Ty(e,t){return el.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function xy(e,t){return n=>mt(e,t,n)}function E0(e){return typeof e=="number"?xy:typeof e=="string"?v0(e)?Ks:Pt.test(e)?Cd:wy:Array.isArray(e)?Kp:typeof e=="object"?Pt.test(e)?Cd:Ey:Ks}function Kp(e,t){const n=[...e],r=n.length,i=e.map((a,s)=>E0(a)(a,t[s]));return a=>{for(let s=0;s{for(const a in r)n[a]=r[a](i);return n}}function Sy(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i{const n=kr.createTransformer(t),r=Pa(e),i=Pa(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?el.has(e)&&!i.values.length||el.has(t)&&!r.values.length?Ty(e,t):Wa(Kp(Sy(r,i),i.values),n):Ks(e,t)};function Qp(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?mt(e,t,n):E0(e)(e,t)}const Ay=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>lt.update(t,n),stop:()=>Cr(t),now:()=>Ft.isProcessing?Ft.timestamp:tn.now()}},Zp=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a=Qs?1/0:t}function Cy(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(S0(r),Qs);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:jn(i)}}const ky=5;function Jp(e,t,n){const r=Math.max(t-ky,0);return Ip(n-e(r),t-r)}const xt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Ko=.001;function Iy({duration:e=xt.duration,bounce:t=xt.bounce,velocity:n=xt.velocity,mass:r=xt.mass}){let i,a,s=1-t;s=ur(xt.minDamping,xt.maxDamping,s),e=ur(xt.minDuration,xt.maxDuration,jn(e)),s<1?(i=l=>{const c=l*s,d=c*e,p=c-n,f=tl(l,s),b=Math.exp(-d);return Ko-p/f*b},a=l=>{const d=l*s*e,p=d*n+n,f=Math.pow(s,2)*Math.pow(l,2)*e,b=Math.exp(-d),y=tl(Math.pow(l,2),s);return(-i(l)+Ko>0?-1:1)*((p-f)*b)/y}):(i=l=>{const c=Math.exp(-l*e),d=(l-n)*e+1;return-Ko+c*d},a=l=>{const c=Math.exp(-l*e),d=(n-l)*(e*e);return c*d});const o=5/e,u=Ry(i,a,o);if(e=Vn(e),isNaN(u))return{stiffness:xt.stiffness,damping:xt.damping,duration:e};{const l=Math.pow(u,2)*r;return{stiffness:l,damping:s*2*Math.sqrt(r*l),duration:e}}}const Ny=12;function Ry(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function Py(e){let t={velocity:xt.velocity,stiffness:xt.stiffness,damping:xt.damping,mass:xt.mass,isResolvedFromDuration:!1,...e};if(!kd(e,Dy)&&kd(e,My))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*ur(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:xt.mass,stiffness:i,damping:a}}else{const n=Iy(e);t={...t,...n,mass:xt.mass},t.isResolvedFromDuration=!0}return t}function Zs(e=xt.visualDuration,t=xt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],o={done:!1,value:a},{stiffness:u,damping:l,mass:c,duration:d,velocity:p,isResolvedFromDuration:f}=Py({...n,velocity:-jn(n.velocity||0)}),b=p||0,y=l/(2*Math.sqrt(u*c)),S=s-a,v=jn(Math.sqrt(u/c)),w=Math.abs(S)<5;r||(r=w?xt.restSpeed.granular:xt.restSpeed.default),i||(i=w?xt.restDelta.granular:xt.restDelta.default);let x;if(y<1){const R=tl(v,y);x=C=>{const H=Math.exp(-y*v*C);return s-H*((b+y*v*S)/R*Math.sin(R*C)+S*Math.cos(R*C))}}else if(y===1)x=R=>s-Math.exp(-v*R)*(S+(b+v*S)*R);else{const R=v*Math.sqrt(y*y-1);x=C=>{const H=Math.exp(-y*v*C),z=Math.min(R*C,300);return s-H*((b+y*v*S)*Math.sinh(z)+R*S*Math.cosh(z))/R}}const k={calculatedDuration:f&&d||null,next:R=>{const C=x(R);if(f)o.done=R>=d;else{let H=R===0?b:0;y<1&&(H=R===0?Vn(b):Jp(x,R,C));const z=Math.abs(H)<=r,V=Math.abs(s-C)<=i;o.done=z&&V}return o.value=o.done?s:C,o},toString:()=>{const R=Math.min(S0(k),Qs),C=Zp(H=>k.next(R*H).value,R,30);return R+"ms "+C},toTransition:()=>{}};return k}Zs.applyToOptions=e=>{const t=Cy(e,100,Zs);return e.ease=t.ease,e.duration=Vn(t.duration),e.type="keyframes",e};function nl({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:u,restDelta:l=.5,restSpeed:c}){const d=e[0],p={done:!1,value:d},f=z=>o!==void 0&&zu,b=z=>o===void 0?u:u===void 0||Math.abs(o-z)-y*Math.exp(-z/r),x=z=>v+w(z),k=z=>{const V=w(z),P=x(z);p.done=Math.abs(V)<=l,p.value=p.done?v:P};let R,C;const H=z=>{f(p.value)&&(R=z,C=Zs({keyframes:[p.value,b(p.value)],velocity:Jp(x,z,p.value),damping:i,stiffness:a,restDelta:l,restSpeed:c}))};return H(0),{calculatedDuration:null,next:z=>{let V=!1;return!C&&R===void 0&&(V=!0,k(z),H(z)),R!==void 0&&z>=R?C.next(z-R):(!V&&k(z),p)}}}function Ly(e,t,n){const r=[],i=n||lr.mix||Qp,a=e.length-1;for(let s=0;st[0];if(a===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=Ly(t,r,i),u=o.length,l=c=>{if(s&&c1)for(;dl(ur(e[0],e[a-1],c)):l}function _y(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ra(0,t,r);e.push(mt(n,1,i))}}function By(e){const t=[0];return _y(t,e.length-1),t}function Fy(e,t){return e.map(n=>n*t)}function Hy(e,t){return e.map(()=>t||Bp).splice(0,e.length-1)}function ha({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=G8(r)?r.map(xd):xd(r),a={done:!1,value:t[0]},s=Fy(n&&n.length===t.length?n:By(t),e),o=Oy(s,t,{ease:Array.isArray(i)?i:Hy(t,i)});return{calculatedDuration:e,next:u=>(a.value=o(u),a.done=u>=e,a)}}const zy=e=>e!==null;function w0(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(zy),o=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!o||r===void 0?a[o]:r}const Uy={decay:nl,inertia:nl,tween:ha,keyframes:ha,spring:Zs};function em(e){typeof e.type=="string"&&(e.type=Uy[e.type])}class A0{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Vy=e=>e/100;class C0 extends A0{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==tn.now()&&this.tick(tn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;em(t);const{type:n=ha,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=t;let{keyframes:o}=t;const u=n||ha;u!==ha&&typeof o[0]!="number"&&(this.mixKeyframes=Wa(Vy,Qp(o[0],o[1])),o=[0,100]);const l=u({...t,keyframes:o});a==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...o].reverse(),velocity:-s})),l.calculatedDuration===null&&(l.calculatedDuration=S0(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=l}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:l=0,keyframes:c,repeat:d,repeatType:p,repeatDelay:f,type:b,onUpdate:y,finalKeyframe:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-l*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?v<0:v>i;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let x=this.currentTime,k=r;if(d){const z=Math.min(this.currentTime,i)/o;let V=Math.floor(z),P=z%1;!P&&z>=1&&(P=1),P===1&&V--,V=Math.min(V,d+1),!!(V%2)&&(p==="reverse"?(P=1-P,f&&(P-=f/o)):p==="mirror"&&(k=s)),x=ur(0,1,P)*o}const R=w?{done:!1,value:c[0]}:k.next(x);a&&(R.value=a(R.value));let{done:C}=R;!w&&u!==null&&(C=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const H=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return H&&b!==nl&&(R.value=w0(c,this.options,S,this.speed)),y&&y(R.value),H&&this.finish(),R}then(t,n){return this.finished.then(t,n)}get duration(){return jn(this.calculatedDuration)}get time(){return jn(this.currentTime)}set time(t){t=Vn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(tn.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=jn(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Ay,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(tn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function jy(e){for(let t=1;te*180/Math.PI,rl=e=>{const t=$r(Math.atan2(e[1],e[0]));return il(t)},qy={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:rl,rotateZ:rl,skewX:e=>$r(Math.atan(e[1])),skewY:e=>$r(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},il=e=>(e=e%360,e<0&&(e+=360),e),Id=rl,Nd=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Rd=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),$y={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Nd,scaleY:Rd,scale:e=>(Nd(e)+Rd(e))/2,rotateX:e=>il($r(Math.atan2(e[6],e[5]))),rotateY:e=>il($r(Math.atan2(-e[2],e[0]))),rotateZ:Id,rotate:Id,skewX:e=>$r(Math.atan(e[4])),skewY:e=>$r(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function al(e){return e.includes("scale")?1:0}function sl(e,t){if(!e||e==="none")return al(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=$y,i=n;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=qy,i=o}if(!i)return al(t);const a=r[t],s=i[1].split(",").map(Yy);return typeof a=="function"?a(s):s[a]}const Wy=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return sl(n,t)};function Yy(e){return parseFloat(e.trim())}const Pi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Li=new Set(Pi),Md=e=>e===Di||e===Ae,Gy=new Set(["x","y","z"]),Xy=Pi.filter(e=>!Gy.has(e));function Ky(e){const t=[];return Xy.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Yr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>sl(t,"x"),y:(e,{transform:t})=>sl(t,"y")};Yr.translateX=Yr.x;Yr.translateY=Yr.y;const Gr=new Set;let ol=!1,ul=!1,ll=!1;function tm(){if(ul){const e=Array.from(Gr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Ky(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,s])=>{r.getValue(a)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ul=!1,ol=!1,Gr.forEach(e=>e.complete(ll)),Gr.clear()}function nm(){Gr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ul=!0)})}function Qy(){ll=!0,nm(),tm(),ll=!1}class k0{constructor(t,n,r,i,a,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Gr.add(this),ol||(ol=!0,lt.read(nm),lt.resolveKeyframes(tm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const a=i?.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const o=r.readValue(n,s);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=s),i&&a===void 0&&i.set(t[0])}jy(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Gr.delete(this)}cancel(){this.state==="scheduled"&&(Gr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Zy=e=>e.startsWith("--");function Jy(e,t,n){Zy(t)?e.style.setProperty(t,n):e.style[t]=n}const e9=h0(()=>window.ScrollTimeline!==void 0),t9={};function n9(e,t){const n=h0(e);return()=>t9[t]??n()}const rm=n9(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),aa=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Dd={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:aa([0,.65,.55,1]),circOut:aa([.55,0,1,.45]),backIn:aa([.31,.01,.66,-.59]),backOut:aa([.33,1.53,.69,.99])};function im(e,t){if(e)return typeof e=="function"?rm()?Zp(e,t):"ease-out":Fp(e)?aa(e):Array.isArray(e)?e.map(n=>im(n,t)||Dd.easeOut):Dd[e]}function r9(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:o="easeOut",times:u}={},l=void 0){const c={[t]:n};u&&(c.offset=u);const d=im(o,i);Array.isArray(d)&&(c.easing=d);const p={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};return l&&(p.pseudoElement=l),e.animate(c,p)}function am(e){return typeof e=="function"&&"applyToOptions"in e}function i9({type:e,...t}){return am(e)&&rm()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class a9 extends A0{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:o,onComplete:u}=t;this.isPseudoElement=!!a,this.allowFlatten=s,this.options=t,d0(typeof t.type!="string");const l=i9(t);this.animation=r9(n,r,i,l,a),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const c=w0(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(c):Jy(n,r,c),this.animation.cancel()}u?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return jn(Number(t))}get time(){return jn(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Vn(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&e9()?(this.animation.timeline=t,En):n(this)}}const sm={anticipate:Lp,backInOut:Pp,circInOut:_p};function s9(e){return e in sm}function o9(e){typeof e.ease=="string"&&s9(e.ease)&&(e.ease=sm[e.ease])}const Pd=10;class u9 extends a9{constructor(t){o9(t),em(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const o=new C0({...s,autoplay:!1}),u=Vn(this.finishedTime??this.time);n.setWithVelocity(o.sample(u-Pd).value,o.sample(u).value,Pd),o.stop()}}const Ld=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(kr.test(e)||e==="0")&&!e.startsWith("url("));function l9(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function f9(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:l}=t.owner.getProps();return h9()&&n&&d9.has(n)&&(n!=="transform"||!l)&&!u&&!r&&i!=="mirror"&&a!==0&&s!=="inertia"}const p9=40;class m9 extends A0{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",keyframes:o,name:u,motionValue:l,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tn.now();const p={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:s,name:u,motionValue:l,element:c,...d},f=c?.KeyframeResolver||k0;this.keyframeResolver=new f(o,(b,y,S)=>this.onKeyframesResolved(b,y,p,!S),u,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:a,type:s,velocity:o,delay:u,isHandoff:l,onUpdate:c}=r;this.resolvedAt=tn.now(),c9(t,a,s,o)||((lr.instantAnimations||!u)&&c?.(w0(t,r,n)),t[0]=t[t.length-1],cl(r),r.repeat=0);const p={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>p9?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},f=!l&&f9(p)?new u9({...p,element:p.motionValue.owner.current}):new C0(p);f.finished.then(()=>this.notifyFinished()).catch(En),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Qy()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const g9=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function b9(e){const t=g9.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function om(e,t,n=1){const[r,i]=b9(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const s=a.trim();return Ap(s)?parseFloat(s):s}return v0(i)?om(i,t,n+1):i}function I0(e,t){return e?.[t]??e?.default??e}const um=new Set(["width","height","top","left","right","bottom",...Pi]),y9={test:e=>e==="auto",parse:e=>e},lm=e=>t=>t.test(e),cm=[Di,Ae,qn,vr,ly,uy,y9],Od=e=>cm.find(lm(e));function v9(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||kp(e):!0}const T9=new Set(["brightness","contrast","saturate","opacity"]);function x9(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(T0)||[];if(!r)return e;const i=n.replace(r,"");let a=T9.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const E9=/\b([a-z-]*)\(.*?\)/gu,dl={...kr,getAnimatableNone:e=>{const t=e.match(E9);return t?t.map(x9).join(" "):e}},_d={...Di,transform:Math.round},S9={rotate:vr,rotateX:vr,rotateY:vr,rotateZ:vr,scale:bs,scaleX:bs,scaleY:bs,scaleZ:bs,skew:vr,skewX:vr,skewY:vr,distance:Ae,translateX:Ae,translateY:Ae,translateZ:Ae,x:Ae,y:Ae,z:Ae,perspective:Ae,transformPerspective:Ae,opacity:Da,originX:Sd,originY:Sd,originZ:Ae},N0={borderWidth:Ae,borderTopWidth:Ae,borderRightWidth:Ae,borderBottomWidth:Ae,borderLeftWidth:Ae,borderRadius:Ae,radius:Ae,borderTopLeftRadius:Ae,borderTopRightRadius:Ae,borderBottomRightRadius:Ae,borderBottomLeftRadius:Ae,width:Ae,maxWidth:Ae,height:Ae,maxHeight:Ae,top:Ae,right:Ae,bottom:Ae,left:Ae,padding:Ae,paddingTop:Ae,paddingRight:Ae,paddingBottom:Ae,paddingLeft:Ae,margin:Ae,marginTop:Ae,marginRight:Ae,marginBottom:Ae,marginLeft:Ae,backgroundPositionX:Ae,backgroundPositionY:Ae,...S9,zIndex:_d,fillOpacity:Da,strokeOpacity:Da,numOctaves:_d},w9={...N0,color:Pt,backgroundColor:Pt,outlineColor:Pt,fill:Pt,stroke:Pt,borderColor:Pt,borderTopColor:Pt,borderRightColor:Pt,borderBottomColor:Pt,borderLeftColor:Pt,filter:dl,WebkitFilter:dl},dm=e=>w9[e];function hm(e,t){let n=dm(e);return n!==dl&&(n=kr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const A9=new Set(["auto","none","0"]);function C9(e,t,n){let r=0,i;for(;r{t.getValue(o).set(u)}),this.resolveNoneKeyframes()}}function I9(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const fm=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function N9(e){return Cp(e)&&"offsetHeight"in e}const Bd=30,R9=e=>!isNaN(parseFloat(e));class M9{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const i=tn.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=tn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=R9(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new f0);const r=this.events[t].add(n);return t==="change"?()=>{r(),lt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=tn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Bd)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Bd);return Ip(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ci(e,t){return new M9(e,t)}const{schedule:R0}=jp(queueMicrotask,!1),Rn={x:!1,y:!1};function pm(){return Rn.x||Rn.y}function D9(e){return e==="x"||e==="y"?Rn[e]?null:(Rn[e]=!0,()=>{Rn[e]=!1}):Rn.x||Rn.y?null:(Rn.x=Rn.y=!0,()=>{Rn.x=Rn.y=!1})}function mm(e,t){const n=I9(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Fd(e){return!(e.pointerType==="touch"||pm())}function P9(e,t,n={}){const[r,i,a]=mm(e,n),s=o=>{if(!Fd(o))return;const{target:u}=o,l=t(u,o);if(typeof l!="function"||!u)return;const c=d=>{Fd(d)&&(l(d),u.removeEventListener("pointerleave",c))};u.addEventListener("pointerleave",c,i)};return r.forEach(o=>{o.addEventListener("pointerenter",s,i)}),a}const gm=(e,t)=>t?e===t?!0:gm(e,t.parentElement):!1,M0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,L9=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function O9(e){return L9.has(e.tagName)||e.tabIndex!==-1}const Bs=new WeakSet;function Hd(e){return t=>{t.key==="Enter"&&e(t)}}function Qo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const _9=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Hd(()=>{if(Bs.has(n))return;Qo(n,"down");const i=Hd(()=>{Qo(n,"up")}),a=()=>Qo(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function zd(e){return M0(e)&&!pm()}function B9(e,t,n={}){const[r,i,a]=mm(e,n),s=o=>{const u=o.currentTarget;if(!zd(o))return;Bs.add(u);const l=t(u,o),c=(f,b)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",p),Bs.has(u)&&Bs.delete(u),zd(f)&&typeof l=="function"&&l(f,{success:b})},d=f=>{c(f,u===window||u===document||n.useGlobalTarget||gm(u,f.target))},p=f=>{c(f,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",p,i)};return r.forEach(o=>{(n.useGlobalTarget?window:o).addEventListener("pointerdown",s,i),N9(o)&&(o.addEventListener("focus",l=>_9(l,i)),!O9(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),a}function bm(e){return Cp(e)&&"ownerSVGElement"in e}function F9(e){return bm(e)&&e.tagName==="svg"}const zt=e=>!!(e&&e.getVelocity),H9=[...cm,Pt,kr],z9=e=>H9.find(lm(e)),La={};function U9(e){for(const t in e)La[t]=e[t],y0(t)&&(La[t].isCSSVariable=!0)}function ym(e,{layout:t,layoutId:n}){return Li.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!La[e]||e==="opacity")}const V9={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},j9=Pi.length;function q9(e,t,n){let r="",i=!0;for(let a=0;a({style:{},transform:{},transformOrigin:{},vars:{}});function vm(e,t,n){for(const r in t)!zt(t[r])&&!ym(r,n)&&(e[r]=t[r])}function $9({transformTemplate:e},t){return O.useMemo(()=>{const n=P0();return D0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function W9(e,t){const n=e.style||{},r={};return vm(r,n,e),Object.assign(r,$9(e,t)),r}function Y9(e,t){const n={},r=W9(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const G9={offset:"stroke-dashoffset",array:"stroke-dasharray"},X9={offset:"strokeDashoffset",array:"strokeDasharray"};function K9(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?G9:X9;e[a.offset]=Ae.transform(-r);const s=Ae.transform(t),o=Ae.transform(n);e[a.array]=`${s} ${o}`}function Tm(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...o},u,l,c){if(D0(e,o,l),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:p}=e;d.transform&&(p.transform=d.transform,delete d.transform),(p.transform||d.transformOrigin)&&(p.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),p.transform&&(p.transformBox=c?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&K9(d,i,a,s,!1)}const xm=()=>({...P0(),attrs:{}}),Em=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Q9(e,t,n,r){const i=O.useMemo(()=>{const a=xm();return Tm(a,t,Em(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};vm(a,e.style,e),i.style={...a,...i.style}}return i}const Z9=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Js(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Z9.has(e)}let Sm=e=>!Js(e);function J9(e){typeof e=="function"&&(Sm=t=>t.startsWith("on")?!Js(t):e(t))}try{J9(require("@emotion/is-prop-valid").default)}catch{}function ev(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Sm(i)||n===!0&&Js(i)||!t&&!Js(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const tv=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function L0(e){return typeof e!="string"||e.includes("-")?!1:!!(tv.indexOf(e)>-1||/[A-Z]/u.test(e))}function nv(e,t,n,{latestValues:r},i,a=!1){const o=(L0(e)?Q9:Y9)(t,r,i,e),u=ev(t,typeof e=="string",a),l=e!==O.Fragment?{...u,...o,ref:n}:{},{children:c}=t,d=O.useMemo(()=>zt(c)?c.get():c,[c]);return O.createElement(e,{...l,children:d})}const O0=O.createContext(null);function Ud(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function _0(e,t,n,r){if(typeof t=="function"){const[i,a]=Ud(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=Ud(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function rv(e){const t=O.useRef(null);return t.current===null&&(t.current=e()),t.current}function Fs(e){return zt(e)?e.get():e}function iv({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:av(n,r,i,e),renderState:t()}}function av(e,t,n,r){const i={},a=r(e,{});for(const p in a)i[p]=Fs(a[p]);let{initial:s,animate:o}=e;const u=So(e),l=Vp(e);t&&l&&!u&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?o:s;if(d&&typeof d!="boolean"&&!Eo(d)){const p=Array.isArray(d)?d:[d];for(let f=0;f(t,n)=>{const r=O.useContext(xo),i=O.useContext(O0),a=()=>iv(e,t,r,i);return n?a():rv(a)};function B0(e,t,n){const{style:r}=e,i={};for(const a in r)(zt(r[a])||t.style&&zt(t.style[a])||ym(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(i[a]=r[a]);return i}const sv=wm({scrapeMotionValuesFromProps:B0,createRenderState:P0});function Am(e,t,n){const r=B0(e,t,n);for(const i in e)if(zt(e[i])||zt(t[i])){const a=Pi.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const ov=wm({scrapeMotionValuesFromProps:Am,createRenderState:xm}),F0=typeof window<"u",Vd={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ki={};for(const e in Vd)ki[e]={isEnabled:t=>Vd[e].some(n=>!!t[n])};function uv(e){for(const t in e)ki[t]={...ki[t],...e[t]}}const lv=Symbol.for("motionComponentSymbol");function fi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function cv(e,t,n){const r=O.useRef(null);return O.useCallback(i=>{const a=r.current;r.current=i,i!==a&&(i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount())),n&&(typeof n=="function"?n(i):fi(n)&&(n.current=i))},[t,n])}const H0=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),dv="framerAppearId",Cm="data-"+H0(dv),km=O.createContext({}),hv=F0?O.useLayoutEffect:O.useEffect;function fv(e,t,n,r,i){const{visualElement:a}=O.useContext(xo),s=O.useContext(zp),o=O.useContext(O0),u=O.useContext(Up).reducedMotion,l=O.useRef(null);r=r||s.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:a,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:u}));const c=l.current,d=O.useContext(km);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&pv(l.current,n,i,d);const p=O.useRef(!1);O.useInsertionEffect(()=>{c&&p.current&&c.update(n,o)});const f=n[Cm],b=O.useRef(!!f&&!window.MotionHandoffIsComplete?.(f)&&window.MotionHasOptimisedAnimation?.(f));return hv(()=>{c&&(p.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),b.current&&c.animationState&&c.animationState.animateChanges())}),O.useEffect(()=>{c&&(!b.current&&c.animationState&&c.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(f)}),b.current=!1),c.enteringChildren=void 0)}),c}function pv(e,t,n,r){const{layoutId:i,layout:a,drag:s,dragConstraints:o,layoutScroll:u,layoutRoot:l,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Im(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||o&&fi(o),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:u,layoutRoot:l})}function Im(e){if(e)return e.options.allowProjection!==!1?e.projection:Im(e.parent)}function mv(e,{forwardMotionProps:t=!1}={},n,r){n&&uv(n);const i=L0(e)?ov:sv;function a(o,u){let l;const c={...O.useContext(Up),...o,layoutId:gv(o)},{isStatic:d}=c,p=Z8(o),f=i(o,d);if(!d&&F0){bv();const b=yv(c);l=b.MeasureLayout,p.visualElement=fv(e,f,c,r,b.ProjectionNode)}return M.jsxs(xo.Provider,{value:p,children:[l&&p.visualElement?M.jsx(l,{visualElement:p.visualElement,...c}):null,nv(e,o,cv(f,p.visualElement,u),f,d,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=O.forwardRef(a);return s[lv]=e,s}function gv({layoutId:e}){const t=O.useContext(Hp).id;return t&&e!==void 0?t+"-"+e:e}function bv(e,t){O.useContext(zp).strict}function yv(e){const{drag:t,layout:n}=ki;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Nm({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function vv({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Tv(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Zo(e){return e===void 0||e===1}function hl({scale:e,scaleX:t,scaleY:n}){return!Zo(e)||!Zo(t)||!Zo(n)}function jr(e){return hl(e)||Rm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Rm(e){return jd(e.x)||jd(e.y)}function jd(e){return e&&e!=="0%"}function eo(e,t,n){const r=e-n,i=t*r;return n+i}function qd(e,t,n,r,i){return i!==void 0&&(e=eo(e,i,r)),eo(e,n,r)+t}function fl(e,t=0,n=1,r,i){e.min=qd(e.min,t,n,r,i),e.max=qd(e.max,t,n,r,i)}function Mm(e,{x:t,y:n}){fl(e.x,t.translate,t.scale,t.originPoint),fl(e.y,n.translate,n.scale,n.originPoint)}const $d=.999999999999,Wd=1.0000000000001;function xv(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,s;for(let o=0;o$d&&(t.x=1),t.y$d&&(t.y=1)}function pi(e,t){e.min=e.min+t,e.max=e.max+t}function Yd(e,t,n,r,i=.5){const a=mt(e.min,e.max,i);fl(e,t,n,a,r)}function mi(e,t){Yd(e.x,t.x,t.scaleX,t.scale,t.originX),Yd(e.y,t.y,t.scaleY,t.scale,t.originY)}function Dm(e,t){return Nm(Tv(e.getBoundingClientRect(),t))}function Ev(e,t,n){const r=Dm(e,n),{scroll:i}=t;return i&&(pi(r.x,i.offset.x),pi(r.y,i.offset.y)),r}const Gd=()=>({translate:0,scale:1,origin:0,originPoint:0}),gi=()=>({x:Gd(),y:Gd()}),Xd=()=>({min:0,max:0}),Ct=()=>({x:Xd(),y:Xd()}),pl={current:null},Pm={current:!1};function Sv(){if(Pm.current=!0,!!F0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>pl.current=e.matches;e.addEventListener("change",t),t()}else pl.current=!1}const wv=new WeakMap;function Av(e,t,n){for(const r in t){const i=t[r],a=n[r];if(zt(i))e.addValue(r,i);else if(zt(a))e.addValue(r,Ci(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,Ci(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Kd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Cv{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=k0,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=tn.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),Pm.current||Sv(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:pl.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Cr(this.notifyUpdate),Cr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Li.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&<.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ki){const n=ki[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ct()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ci(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Ap(r)||kp(r))?r=parseFloat(r):!z9(r)&&kr.test(n)&&(r=hm(t,n)),this.setBaseTarget(t,zt(r)?r.get():r)),zt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const a=_0(this.props,n,this.presenceContext?.custom);a&&(r=a[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!zt(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new f0),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){R0.render(this.render)}}class Lm extends Cv{constructor(){super(...arguments),this.KeyframeResolver=k9}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;zt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Om(e,{style:t,vars:n},r,i){const a=e.style;let s;for(s in t)a[s]=t[s];i?.applyProjectionStyles(a,r);for(s in n)a.setProperty(s,n[s])}function kv(e){return window.getComputedStyle(e)}class Iv extends Lm{constructor(){super(...arguments),this.type="html",this.renderInstance=Om}readValueFromInstance(t,n){if(Li.has(n))return this.projection?.isProjecting?al(n):Wy(t,n);{const r=kv(t),i=(y0(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Dm(t,n)}build(t,n,r){D0(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return B0(t,n,r)}}const _m=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Nv(e,t,n,r){Om(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(_m.has(i)?i:H0(i),t.attrs[i])}class Rv extends Lm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ct}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Li.has(n)){const r=dm(n);return r&&r.default||0}return n=_m.has(n)?n:H0(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Am(t,n,r)}build(t,n,r){Tm(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){Nv(t,n,r,i)}mount(t){this.isSVGTag=Em(t.tagName),super.mount(t)}}const Mv=(e,t)=>L0(e)?new Rv(t):new Iv(t,{allowProjection:e!==O.Fragment});function yi(e,t,n){const r=e.getProps();return _0(r,t,n!==void 0?n:r.custom,e)}const ml=e=>Array.isArray(e);function Dv(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ci(n))}function Pv(e){return ml(e)?e[e.length-1]||0:e}function Lv(e,t){const n=yi(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const s in a){const o=Pv(a[s]);Dv(e,s,o)}}function Ov(e){return!!(zt(e)&&e.add)}function gl(e,t){const n=e.getValue("willChange");if(Ov(n))return n.add(t);if(!n&&lr.WillChange){const r=new lr.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Bm(e){return e.props[Cm]}const _v=e=>e!==null;function Bv(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(_v),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[a]}const Fv={type:"spring",stiffness:500,damping:25,restSpeed:10},Hv=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),zv={type:"keyframes",duration:.8},Uv={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Vv=(e,{keyframes:t})=>t.length>2?zv:Li.has(e)?e.startsWith("scale")?Hv(t[1]):Fv:Uv;function jv({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:o,from:u,elapsed:l,...c}){return!!Object.keys(c).length}const z0=(e,t,n,r={},i,a)=>s=>{const o=I0(r,e)||{},u=o.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Vn(u);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-l,onUpdate:p=>{t.set(p),o.onUpdate&&o.onUpdate(p)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:a?void 0:i};jv(o)||Object.assign(c,Vv(e,c)),c.duration&&(c.duration=Vn(c.duration)),c.repeatDelay&&(c.repeatDelay=Vn(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(cl(c),c.delay===0&&(d=!0)),(lr.instantAnimations||lr.skipAnimations)&&(d=!0,cl(c),c.delay=0),c.allowFlatten=!o.type&&!o.ease,d&&!a&&t.get()!==void 0){const p=Bv(c.keyframes,o);if(p!==void 0){lt.update(()=>{c.onUpdate(p),c.onComplete()});return}}return o.isSync?new C0(c):new m9(c)};function qv({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Fm(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...o}=t;r&&(a=r);const u=[],l=i&&e.animationState&&e.animationState.getState()[i];for(const c in o){const d=e.getValue(c,e.latestValues[c]??null),p=o[c];if(p===void 0||l&&qv(l,c))continue;const f={delay:n,...I0(a||{},c)},b=d.get();if(b!==void 0&&!d.isAnimating&&!Array.isArray(p)&&p===b&&!f.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const v=Bm(e);if(v){const w=window.MotionHandoffAnimation(v,c,lt);w!==null&&(f.startTime=w,y=!0)}}gl(e,c),d.start(z0(c,d,p,e.shouldReduceMotion&&um.has(c)?{type:!1}:f,e,y));const S=d.animation;S&&u.push(S)}return s&&Promise.all(u).then(()=>{lt.update(()=>{s&&Lv(e,s)})}),u}function Hm(e,t,n,r=0,i=1){const a=Array.from(e).sort((l,c)=>l.sortNodePosition(c)).indexOf(t),s=e.size,o=(s-1)*r;return typeof n=="function"?n(a,s):i===1?a*r:o-a*r}function bl(e,t,n={}){const r=yi(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(Fm(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:c,staggerDirection:d}=i;return $v(e,t,u,l,c,d,n)}:()=>Promise.resolve(),{when:o}=i;if(o){const[u,l]=o==="beforeChildren"?[a,s]:[s,a];return u().then(()=>l())}else return Promise.all([a(),s(n.delay)])}function $v(e,t,n=0,r=0,i=0,a=1,s){const o=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),o.push(bl(u,t,{...s,delay:n+(typeof r=="function"?0:r)+Hm(e.variantChildren,u,r,i,a)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(o)}function Wv(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>bl(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=bl(e,t,n);else{const i=typeof t=="function"?yi(e,t,n.custom):t;r=Promise.all(Fm(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function zm(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rPromise.all(t.map(({animation:n,options:r})=>Wv(e,n,r)))}function Qv(e){let t=Kv(e),n=Qd(),r=!0;const i=u=>(l,c)=>{const d=yi(e,c,u==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:p,transitionEnd:f,...b}=d;l={...l,...b,...f}}return l};function a(u){t=u(e)}function s(u){const{props:l}=e,c=Um(e.parent)||{},d=[],p=new Set;let f={},b=1/0;for(let S=0;Sb&&k,V=!1;const P=Array.isArray(x)?x:[x];let $=P.reduce(i(v),{});R===!1&&($={});const{prevResolvedValues:W={}}=w,G={...W,...$},q=ee=>{z=!0,p.has(ee)&&(V=!0,p.delete(ee)),w.needsAnimating[ee]=!0;const de=e.getValue(ee);de&&(de.liveStyle=!1)};for(const ee in G){const de=$[ee],oe=W[ee];if(f.hasOwnProperty(ee))continue;let N=!1;ml(de)&&ml(oe)?N=!zm(de,oe):N=de!==oe,N?de!=null?q(ee):p.add(ee):de!==void 0&&p.has(ee)?q(ee):w.protectedKeys[ee]=!0}w.prevProp=x,w.prevResolvedValues=$,w.isActive&&(f={...f,...$}),r&&e.blockInitialAnimation&&(z=!1);const Y=C&&H;z&&(!Y||V)&&d.push(...P.map(ee=>{const de={type:v};if(typeof ee=="string"&&r&&!Y&&e.manuallyAnimateOnMount&&e.parent){const{parent:oe}=e,N=yi(oe,ee);if(oe.enteringChildren&&N){const{delayChildren:Ce}=N.transition||{};de.delay=Hm(oe.enteringChildren,e,Ce)}}return{animation:ee,options:de}}))}if(p.size){const S={};if(typeof l.initial!="boolean"){const v=yi(e,Array.isArray(l.initial)?l.initial[0]:l.initial);v&&v.transition&&(S.transition=v.transition)}p.forEach(v=>{const w=e.getBaseTarget(v),x=e.getValue(v);x&&(x.liveStyle=!0),S[v]=w??null}),d.push({animation:S})}let y=!!d.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(d):Promise.resolve()}function o(u,l){if(n[u].isActive===l)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(u,l)),n[u].isActive=l;const c=s(u);for(const d in n)n[d].protectedKeys={};return c}return{animateChanges:s,setActive:o,setAnimateFunction:a,getState:()=>n,reset:()=>{n=Qd(),r=!0}}}function Zv(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!zm(t,e):!1}function _r(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Qd(){return{animate:_r(!0),whileInView:_r(),whileHover:_r(),whileTap:_r(),whileDrag:_r(),whileFocus:_r(),exit:_r()}}class Dr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Jv extends Dr{constructor(t){super(t),t.animationState||(t.animationState=Qv(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Eo(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let eT=0;class tT extends Dr{constructor(){super(...arguments),this.id=eT++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const nT={animation:{Feature:Jv},exit:{Feature:tT}};function Oa(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Xa(e){return{point:{x:e.pageX,y:e.pageY}}}const rT=e=>t=>M0(t)&&e(t,Xa(t));function fa(e,t,n,r){return Oa(e,t,rT(n),r)}const Vm=1e-4,iT=1-Vm,aT=1+Vm,jm=.01,sT=0-jm,oT=0+jm;function Yt(e){return e.max-e.min}function uT(e,t,n){return Math.abs(e-t)<=n}function Zd(e,t,n,r=.5){e.origin=r,e.originPoint=mt(t.min,t.max,e.origin),e.scale=Yt(n)/Yt(t),e.translate=mt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=iT&&e.scale<=aT||isNaN(e.scale))&&(e.scale=1),(e.translate>=sT&&e.translate<=oT||isNaN(e.translate))&&(e.translate=0)}function pa(e,t,n,r){Zd(e.x,t.x,n.x,r?r.originX:void 0),Zd(e.y,t.y,n.y,r?r.originY:void 0)}function Jd(e,t,n){e.min=n.min+t.min,e.max=e.min+Yt(t)}function lT(e,t,n){Jd(e.x,t.x,n.x),Jd(e.y,t.y,n.y)}function eh(e,t,n){e.min=t.min-n.min,e.max=e.min+Yt(t)}function ma(e,t,n){eh(e.x,t.x,n.x),eh(e.y,t.y,n.y)}function bn(e){return[e("x"),e("y")]}const qm=({current:e})=>e?e.ownerDocument.defaultView:null,th=(e,t)=>Math.abs(e-t);function cT(e,t){const n=th(e.x,t.x),r=th(e.y,t.y);return Math.sqrt(n**2+r**2)}class $m{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=eu(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,b=cT(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!f&&!b)return;const{point:y}=p,{timestamp:S}=Ft;this.history.push({...y,timestamp:S});const{onStart:v,onMove:w}=this.handlers;f||(v&&v(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,p)},this.handlePointerMove=(p,f)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=Jo(f,this.transformPagePoint),lt.update(this.updatePoint,!0)},this.handlePointerUp=(p,f)=>{this.end();const{onEnd:b,onSessionEnd:y,resumeAnimation:S}=this.handlers;if(this.dragSnapToOrigin&&S&&S(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=eu(p.type==="pointercancel"?this.lastMoveEventInfo:Jo(f,this.transformPagePoint),this.history);this.startEvent&&b&&b(p,v),y&&y(p,v)},!M0(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const o=Xa(t),u=Jo(o,this.transformPagePoint),{point:l}=u,{timestamp:c}=Ft;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,eu(u,this.history)),this.removeListeners=Wa(fa(this.contextWindow,"pointermove",this.handlePointerMove),fa(this.contextWindow,"pointerup",this.handlePointerUp),fa(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Cr(this.updatePoint)}}function Jo(e,t){return t?{point:t(e.point)}:e}function nh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function eu({point:e},t){return{point:e,delta:nh(e,Wm(t)),offset:nh(e,dT(t)),velocity:hT(t,.1)}}function dT(e){return e[0]}function Wm(e){return e[e.length-1]}function hT(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Wm(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Vn(t)));)n--;if(!r)return{x:0,y:0};const a=jn(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const s={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function fT(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?mt(n,e,r.max):Math.min(e,n)),e}function rh(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function pT(e,{top:t,left:n,bottom:r,right:i}){return{x:rh(e.x,n,i),y:rh(e.y,t,r)}}function ih(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Ra(t.min,t.max-r,e.min):r>i&&(n=Ra(e.min,e.max-i,t.min)),ur(0,1,n)}function bT(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const yl=.35;function yT(e=yl){return e===!1?e=0:e===!0&&(e=yl),{x:ah(e,"left","right"),y:ah(e,"top","bottom")}}function ah(e,t,n){return{min:sh(e,t),max:sh(e,n)}}function sh(e,t){return typeof e=="number"?e:e[t]||0}const vT=new WeakMap;class TT{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ct(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=d=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Xa(d).point)},s=(d,p)=>{const{drag:f,dragPropagation:b,onDragStart:y}=this.getProps();if(f&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=D9(f),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=p,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),bn(v=>{let w=this.getAxisMotionValue(v).get()||0;if(qn.test(w)){const{projection:x}=this.visualElement;if(x&&x.layout){const k=x.layout.layoutBox[v];k&&(w=Yt(k)*(parseFloat(w)/100))}}this.originPoint[v]=w}),y&<.postRender(()=>y(d,p)),gl(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},o=(d,p)=>{this.latestPointerEvent=d,this.latestPanInfo=p;const{dragPropagation:f,dragDirectionLock:b,onDirectionLock:y,onDrag:S}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:v}=p;if(b&&this.currentDirection===null){this.currentDirection=xT(v),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",p.point,v),this.updateAxis("y",p.point,v),this.visualElement.render(),S&&S(d,p)},u=(d,p)=>{this.latestPointerEvent=d,this.latestPanInfo=p,this.stop(d,p),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>bn(d=>this.getAnimationState(d)==="paused"&&this.getAxisMotionValue(d).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new $m(t,{onSessionStart:a,onStart:s,onMove:o,onSessionEnd:u,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:qm(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&<.postRender(()=>o(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!ys(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=fT(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&fi(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=pT(r.layoutBox,t):this.constraints=!1,this.elastic=yT(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&bn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=bT(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!fi(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=Ev(r,i.root,this.visualElement.getTransformPagePoint());let s=mT(i.layout.layoutBox,a);if(n){const o=n(vv(s));this.hasMutatedConstraints=!!o,o&&(s=Nm(o))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),u=this.constraints||{},l=bn(c=>{if(!ys(c,n,this.currentDirection))return;let d=u&&u[c]||{};s&&(d={min:0,max:0});const p=i?200:1e6,f=i?40:1e7,b={type:"inertia",velocity:r?t[c]:0,bounceStiffness:p,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...a,...d};return this.startAxisValueAnimation(c,b)});return Promise.all(l).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return gl(this.visualElement,t),r.start(z0(t,r,0,n,this.visualElement,!1))}stopAnimation(){bn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){bn(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){bn(n=>{const{drag:r}=this.getProps();if(!ys(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:o}=i.layout.layoutBox[n];a.set(t[n]-mt(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!fi(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};bn(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const u=o.get();i[s]=gT({min:u,max:u},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),bn(s=>{if(!ys(s,t,null))return;const o=this.getAxisMotionValue(s),{min:u,max:l}=this.constraints[s];o.set(mt(u,l,i[s]))})}addListeners(){if(!this.visualElement.current)return;vT.set(this.visualElement,this);const t=this.visualElement.current,n=fa(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();fi(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),lt.read(r);const s=Oa(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(bn(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=u[c].translate,d.set(d.get()+u[c].translate))}),this.visualElement.render())}));return()=>{s(),n(),a(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:s=yl,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:s,dragMomentum:o}}}function ys(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function xT(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class ET extends Dr{constructor(t){super(t),this.removeGroupControls=En,this.removeListeners=En,this.controls=new TT(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||En}unmount(){this.removeGroupControls(),this.removeListeners()}}const oh=e=>(t,n)=>{e&<.postRender(()=>e(t,n))};class ST extends Dr{constructor(){super(...arguments),this.removePointerDownListener=En}onPointerDown(t){this.session=new $m(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:qm(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:oh(t),onStart:oh(n),onMove:r,onEnd:(a,s)=>{delete this.session,i&<.postRender(()=>i(a,s))}}}mount(){this.removePointerDownListener=fa(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function wT(e=!0){const t=O.useContext(O0);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=O.useId();O.useEffect(()=>{if(e)return i(a)},[e]);const s=O.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,s]:[!0]}const Hs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function uh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ki={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ae.test(e))e=parseFloat(e);else return e;const n=uh(e,t.target.x),r=uh(e,t.target.y);return`${n}% ${r}%`}},AT={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=kr.parse(e);if(i.length>5)return r;const a=kr.createTransformer(e),s=typeof i[0]!="number"?1:0,o=n.x.scale*t.x,u=n.y.scale*t.y;i[0+s]/=o,i[1+s]/=u;const l=mt(o,u,.5);return typeof i[2+s]=="number"&&(i[2+s]/=l),typeof i[3+s]=="number"&&(i[3+s]/=l),a(i)}};let tu=!1;class CT extends O.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;U9(kT),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),tu&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Hs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:s}=r;return s&&(s.isPresent=a,tu=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==a?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||lt.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),R0.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;tu=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Ym(e){const[t,n]=wT(),r=O.useContext(Hp);return M.jsx(CT,{...e,layoutGroup:r,switchLayoutGroup:O.useContext(km),isPresent:t,safeToRemove:n})}const kT={borderRadius:{...Ki,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ki,borderTopRightRadius:Ki,borderBottomLeftRadius:Ki,borderBottomRightRadius:Ki,boxShadow:AT};function IT(e,t,n){const r=zt(e)?e:Ci(e);return r.start(z0("",r,t,n)),r.animation}const NT=(e,t)=>e.depth-t.depth;class RT{constructor(){this.children=[],this.isDirty=!1}add(t){l0(this.children,t),this.isDirty=!0}remove(t){c0(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(NT),this.isDirty=!1,this.children.forEach(t)}}function MT(e,t){const n=tn.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(Cr(r),e(a-t))};return lt.setup(r,!0),()=>Cr(r)}const Gm=["TopLeft","TopRight","BottomLeft","BottomRight"],DT=Gm.length,lh=e=>typeof e=="string"?parseFloat(e):e,ch=e=>typeof e=="number"||Ae.test(e);function PT(e,t,n,r,i,a){i?(e.opacity=mt(0,n.opacity??1,LT(r)),e.opacityExit=mt(t.opacity??1,0,OT(r))):a&&(e.opacity=mt(t.opacity??1,n.opacity??1,r));for(let s=0;srt?1:n(Ra(e,t,r))}function hh(e,t){e.min=t.min,e.max=t.max}function gn(e,t){hh(e.x,t.x),hh(e.y,t.y)}function fh(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function ph(e,t,n,r,i){return e-=t,e=eo(e,1/n,r),i!==void 0&&(e=eo(e,1/i,r)),e}function _T(e,t=0,n=1,r=.5,i,a=e,s=e){if(qn.test(t)&&(t=parseFloat(t),t=mt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=mt(a.min,a.max,r);e===a&&(o-=t),e.min=ph(e.min,t,n,o,i),e.max=ph(e.max,t,n,o,i)}function mh(e,t,[n,r,i],a,s){_T(e,t[n],t[r],t[i],t.scale,a,s)}const BT=["x","scaleX","originX"],FT=["y","scaleY","originY"];function gh(e,t,n,r){mh(e.x,t,BT,n?n.x:void 0,r?r.x:void 0),mh(e.y,t,FT,n?n.y:void 0,r?r.y:void 0)}function bh(e){return e.translate===0&&e.scale===1}function Km(e){return bh(e.x)&&bh(e.y)}function yh(e,t){return e.min===t.min&&e.max===t.max}function HT(e,t){return yh(e.x,t.x)&&yh(e.y,t.y)}function vh(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Qm(e,t){return vh(e.x,t.x)&&vh(e.y,t.y)}function Th(e){return Yt(e.x)/Yt(e.y)}function xh(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class zT{constructor(){this.members=[]}add(t){l0(this.members,t),t.scheduleRender()}remove(t){if(c0(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function UT(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,s=n?.z||0;if((i||a||s)&&(r=`translate3d(${i}px, ${a}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:c,rotateX:d,rotateY:p,skewX:f,skewY:b}=n;l&&(r=`perspective(${l}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),p&&(r+=`rotateY(${p}deg) `),f&&(r+=`skewX(${f}deg) `),b&&(r+=`skewY(${b}deg) `)}const o=e.x.scale*t.x,u=e.y.scale*t.y;return(o!==1||u!==1)&&(r+=`scale(${o}, ${u})`),r||"none"}const nu=["","X","Y","Z"],VT=1e3;let jT=0;function ru(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Zm(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Bm(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",lt,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Zm(r)}function Jm({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},o=t?.()){this.id=jT++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(WT),this.nodes.forEach(KT),this.nodes.forEach(QT),this.nodes.forEach(YT)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let u=0;uthis.root.updateBlockedByResize=!1;lt.read(()=>{d=window.innerWidth}),e(s,()=>{const f=window.innerWidth;f!==d&&(d=f,this.root.updateBlockedByResize=!0,c&&c(),c=MT(p,250),Hs.hasAnimatedSinceResize&&(Hs.hasAnimatedSinceResize=!1,this.nodes.forEach(wh)))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&l&&(o||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:p,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||l.getDefaultTransition()||nx,{onLayoutAnimationStart:y,onLayoutAnimationComplete:S}=l.getProps(),v=!this.targetLayout||!Qm(this.targetLayout,f),w=!d&&p;if(this.options.layoutRoot||this.resumeFrom||w||d&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...I0(b,"layout"),onPlay:y,onComplete:S};(l.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(c,w)}else d||wh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Cr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ZT),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Zm(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Yt(this.snapshot.measuredBox.x)&&!Yt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u{const R=k/1e3;Ah(d.x,s.x,R),Ah(d.y,s.y,R),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ma(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ex(this.relativeTarget,this.relativeTargetOrigin,p,R),x&&HT(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Ct()),gn(x,this.relativeTarget)),y&&(this.animationValues=c,PT(c,l,this.latestValues,R,w,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=R},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Cr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=lt.update(()=>{Hs.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ci(0)),this.currentAnimation=IT(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(VT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:u,layout:l,latestValues:c}=s;if(!(!o||!u||!l)){if(this!==s&&this.layout&&l&&e2(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||Ct();const d=Yt(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+d;const p=Yt(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+p}gn(o,u),mi(o,c),pa(this.projectionDeltaWithTransform,this.layoutCorrected,o,c)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new zT),this.sharedNodes.get(s).add(o);const l=o.options.initialPromotionConfig;o.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:u}=s;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(o=!0),!o)return;const l={};u.z&&ru("z",s,l,this.animationValues);for(let c=0;cs.currentAnimation?.stop()),this.root.nodes.forEach(Eh),this.root.sharedNodes.clear()}}}function qT(e){e.updateLayout()}function $T(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i==="size"?bn(c=>{const d=a?t.measuredBox[c]:t.layoutBox[c],p=Yt(d);d.min=n[c].min,d.max=d.min+p}):e2(i,t.layoutBox,n)&&bn(c=>{const d=a?t.measuredBox[c]:t.layoutBox[c],p=Yt(n[c]);d.max=d.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+p)});const s=gi();pa(s,n,t.layoutBox);const o=gi();a?pa(o,e.applyTransform(r,!0),t.measuredBox):pa(o,n,t.layoutBox);const u=!Km(s);let l=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:d,layout:p}=c;if(d&&p){const f=Ct();ma(f,t.layoutBox,d.layoutBox);const b=Ct();ma(b,n,p.layoutBox),Qm(f,b)||(l=!0),c.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=f,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:o,layoutDelta:s,hasLayoutChanged:u,hasRelativeLayoutChanged:l})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function WT(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function YT(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function GT(e){e.clearSnapshot()}function Eh(e){e.clearMeasurements()}function Sh(e){e.isLayoutDirty=!1}function XT(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function wh(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function KT(e){e.resolveTargetDelta()}function QT(e){e.calcProjection()}function ZT(e){e.resetSkewAndRotation()}function JT(e){e.removeLeadSnapshot()}function Ah(e,t,n){e.translate=mt(t.translate,0,n),e.scale=mt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ch(e,t,n,r){e.min=mt(t.min,n.min,r),e.max=mt(t.max,n.max,r)}function ex(e,t,n,r){Ch(e.x,t.x,n.x,r),Ch(e.y,t.y,n.y,r)}function tx(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const nx={duration:.45,ease:[.4,0,.1,1]},kh=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ih=kh("applewebkit/")&&!kh("chrome/")?Math.round:En;function Nh(e){e.min=Ih(e.min),e.max=Ih(e.max)}function rx(e){Nh(e.x),Nh(e.y)}function e2(e,t,n){return e==="position"||e==="preserve-aspect"&&!uT(Th(t),Th(n),.2)}function ix(e){return e!==e.root&&e.scroll?.wasRoot}const ax=Jm({attachResizeListener:(e,t)=>Oa(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),iu={current:void 0},t2=Jm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!iu.current){const e=new ax({});e.mount(window),e.setOptions({layoutScroll:!0}),iu.current=e}return iu.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),sx={pan:{Feature:ST},drag:{Feature:ET,ProjectionNode:t2,MeasureLayout:Ym}};function Rh(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&<.postRender(()=>a(t,Xa(t)))}class ox extends Dr{mount(){const{current:t}=this.node;t&&(this.unmount=P9(t,(n,r)=>(Rh(this.node,r,"Start"),i=>Rh(this.node,i,"End"))))}unmount(){}}class ux extends Dr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Wa(Oa(this.node.current,"focus",()=>this.onFocus()),Oa(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Mh(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&<.postRender(()=>a(t,Xa(t)))}class lx extends Dr{mount(){const{current:t}=this.node;t&&(this.unmount=B9(t,(n,r)=>(Mh(this.node,r,"Start"),(i,{success:a})=>Mh(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const vl=new WeakMap,au=new WeakMap,cx=e=>{const t=vl.get(e.target);t&&t(e)},dx=e=>{e.forEach(cx)};function hx({root:e,...t}){const n=e||document;au.has(n)||au.set(n,{});const r=au.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(dx,{root:e,...t})),r[i]}function fx(e,t,n){const r=hx(t);return vl.set(e,n),r.observe(e),()=>{vl.delete(e),r.unobserve(e)}}const px={some:0,all:1};class mx extends Dr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:px[i]},o=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,a&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),p=l?c:d;p&&p(u)};return fx(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(gx(t,n))&&this.startObserver()}unmount(){}}function gx({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const bx={inView:{Feature:mx},tap:{Feature:lx},focus:{Feature:ux},hover:{Feature:ox}},yx={layout:{ProjectionNode:t2,MeasureLayout:Ym}},vx={...nT,...bx,...sx,...yx};function Tx(e,t){return mv(e,t,vx,Mv)}const U0=Tx("div"),xx=le(Qe)(({theme:e})=>{const{spacing:t}=e;return{position:"relative",flex:1,gap:t(1.5),overflow:"hidden"}}),Ex=le(fp)(({theme:e,variant:t})=>{const{spacing:n}=e;return{gap:n(t==="list"?1.5:5.5),overflowY:"auto"}}),Sx=le(Ob)(({theme:e})=>{const{spacing:t}=e;return{flex:"none",padding:t(2),overflow:"hidden"}});le(Fb)(({theme:e})=>({fontSize:"1.5rem",width:"2.75rem",height:"2.75rem",borderRadius:"50%",display:"inline-flex",alignItems:"center",justifyContent:"center"}));const wx=le(U0)(({theme:e,variant:t})=>({fontSize:t==="list"?"1.5rem":"1em",width:"1em",height:"1em",display:"inline-flex",alignItems:"center",justifyContent:"center",transformOrigin:"center"})),Ax={waiting:"info",available:"success",failed:"error"},Cx={waiting:A8,available:f8,failed:U1},Dh=({variant:e,node:t})=>{const{id:n,status:r,gpuName:i,gpuMemory:a}=t||{status:"waiting"},{palette:s}=Va(),{main:o,lighter:u}=r==="waiting"?{main:s.grey[800],lighter:s.grey[250]}:s[Ax[r]],l=r==="failed"?.2:void 0,c=Cx[r];return M.jsxs(Sx,{component:e==="list"?po:Ar,variant:"outlined",sx:{opacity:l,padding:e==="menu"?0:void 0,backgroundColor:"transparent",gap:1},children:[M.jsx(v8,{size:"1.5rem"}),M.jsx(Vb,{children:t&&M.jsxs(Xe,{variant:"body1",sx:{fontWeight:500},children:[i," ",a,"GB"]})||M.jsx(L7,{width:"8rem",height:"1.25rem"})}),t&&M.jsxs(wx,{sx:{color:o},...r==="waiting"&&{animate:{rotate:360},transition:{repeat:1/0,ease:"linear",duration:2}},variant:e,children:[e==="list"&&M.jsx(c,{}),e==="menu"&&M.jsx(M8,{})]})]})},vs=({variant:e="list"})=>{const[{clusterInfo:{initNodesNumber:t},nodeInfoList:n}]=ja(),{length:r}=n;return M.jsxs(xx,{children:[e==="menu"&&M.jsx(Ar,{sx:{position:"absolute",top:"1.375rem",bottom:"1.375rem",left:"1.375rem",borderLeft:"2px dashed",borderColor:"divider"}}),M.jsxs(Ex,{variant:e,children:[n.map(i=>M.jsx(Dh,{variant:e,node:i},i.id)),t>r&&Array.from({length:t-r}).map((i,a)=>M.jsx(Dh,{variant:e},a))]})]})},kx={small:1,medium:1.25,large:2.25},Ix=le(U0)(({theme:e,size:t})=>{const n=`${kx[t]}rem`;return{position:"relative",width:n,height:n,display:"inline-flex",flexFlow:"row nowrap",justifyContent:"center",alignItems:"center"}}),su=le(U0)(({theme:e})=>({flex:1,aspectRatio:1,borderRadius:"50%",backgroundColor:"currentColor"})),ou={pulse:{scale:[0,.6,0,0],keyTimes:[0,.3,.6,1],transition:{duration:2,repeat:1/0,ease:"linear"}}},Nx={staggerChildren:.25,staggerDirection:1},Rx=O.forwardRef(({size:e="medium"},t)=>M.jsxs(Ix,{ref:t,size:e,animate:"pulse",transition:Nx,children:[M.jsx(su,{variants:ou},1),M.jsx(su,{variants:ou},2),M.jsx(su,{variants:ou},3)]}));function Ph(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function n2(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Mx=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Dx=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Px={};function Lh(e,t){return(Px.jsx?Dx:Mx).test(e)}const Lx=/[ \t\n\f\r]/g;function Ox(e){return typeof e=="object"?e.type==="text"?Oh(e.value):!1:Oh(e)}function Oh(e){return e.replace(Lx,"")===""}let Ka=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Ka.prototype.normal={};Ka.prototype.property={};Ka.prototype.space=void 0;function r2(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Ka(n,r,t)}function _a(e){return e.toLowerCase()}let an=class{constructor(t,n){this.attribute=n,this.property=t}};an.prototype.attribute="";an.prototype.booleanish=!1;an.prototype.boolean=!1;an.prototype.commaOrSpaceSeparated=!1;an.prototype.commaSeparated=!1;an.prototype.defined=!1;an.prototype.mustUseProperty=!1;an.prototype.number=!1;an.prototype.overloadedBoolean=!1;an.prototype.property="";an.prototype.spaceSeparated=!1;an.prototype.space=void 0;let _x=0;const Le=ei(),Mt=ei(),Tl=ei(),ae=ei(),tt=ei(),vi=ei(),un=ei();function ei(){return 2**++_x}const xl=Object.freeze(Object.defineProperty({__proto__:null,boolean:Le,booleanish:Mt,commaOrSpaceSeparated:un,commaSeparated:vi,number:ae,overloadedBoolean:Tl,spaceSeparated:tt},Symbol.toStringTag,{value:"Module"})),uu=Object.keys(xl);let V0=class extends an{constructor(t,n,r,i){let a=-1;if(super(t,n),_h(this,"space",i),typeof r=="number")for(;++a4&&n.slice(0,4)==="data"&&Ux.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Bh,jx);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Bh.test(a)){let s=a.replace(zx,Vx);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=V0}return new i(r,t)}function Vx(e){return"-"+e.toLowerCase()}function jx(e){return e.charAt(1).toUpperCase()}const wo=r2([i2,Bx,o2,u2,l2],"html"),_i=r2([i2,Fx,o2,u2,l2],"svg");function Fh(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function c2(e){return e.join(" ").trim()}var si={},lu,Hh;function qx(){if(Hh)return lu;Hh=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,u=` +`,l="/",c="*",d="",p="comment",f="declaration";lu=function(y,S){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];S=S||{};var v=1,w=1;function x(G){var q=G.match(t);q&&(v+=q.length);var Y=G.lastIndexOf(u);w=~Y?G.length-Y:w+G.length}function k(){var G={line:v,column:w};return function(q){return q.position=new R(G),z(),q}}function R(G){this.start=G,this.end={line:v,column:w},this.source=S.source}R.prototype.content=y;function C(G){var q=new Error(S.source+":"+v+":"+w+": "+G);if(q.reason=G,q.filename=S.source,q.line=v,q.column=w,q.source=y,!S.silent)throw q}function H(G){var q=G.exec(y);if(q){var Y=q[0];return x(Y),y=y.slice(Y.length),q}}function z(){H(n)}function V(G){var q;for(G=G||[];q=P();)q!==!1&&G.push(q);return G}function P(){var G=k();if(!(l!=y.charAt(0)||c!=y.charAt(1))){for(var q=2;d!=y.charAt(q)&&(c!=y.charAt(q)||l!=y.charAt(q+1));)++q;if(q+=2,d===y.charAt(q-1))return C("End of comment missing");var Y=y.slice(2,q-2);return w+=2,x(Y),y=y.slice(q),w+=2,G({type:p,comment:Y})}}function $(){var G=k(),q=H(r);if(q){if(P(),!H(i))return C("property missing ':'");var Y=H(a),Q=G({type:f,property:b(q[0].replace(e,d)),value:Y?b(Y[0].replace(e,d)):d});return H(s),Q}}function W(){var G=[];V(G);for(var q;q=$();)q!==!1&&(G.push(q),V(G));return G}return z(),W()};function b(y){return y?y.replace(o,d):d}return lu}var zh;function $x(){if(zh)return si;zh=1;var e=si&&si.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(si,"__esModule",{value:!0}),si.default=n;var t=e(qx());function n(r,i){var a=null;if(!r||typeof r!="string")return a;var s=(0,t.default)(r),o=typeof i=="function";return s.forEach(function(u){if(u.type==="declaration"){var l=u.property,c=u.value;o?i(l,c,u):c&&(a=a||{},a[l]=c)}}),a}return si}var Qi={},Uh;function Wx(){if(Uh)return Qi;Uh=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(l){return!l||n.test(l)||e.test(l)},s=function(l,c){return c.toUpperCase()},o=function(l,c){return"".concat(c,"-")},u=function(l,c){return c===void 0&&(c={}),a(l)?l:(l=l.toLowerCase(),c.reactCompat?l=l.replace(i,o):l=l.replace(r,o),l.replace(t,s))};return Qi.camelCase=u,Qi}var Zi,Vh;function Yx(){if(Vh)return Zi;Vh=1;var e=Zi&&Zi.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e($x()),n=Wx();function r(i,a){var s={};return!i||typeof i!="string"||(0,t.default)(i,function(o,u){o&&u&&(s[(0,n.camelCase)(o,a)]=u)}),s}return r.default=r,Zi=r,Zi}var Gx=Yx();const Xx=j1(Gx),Ao=d2("end"),Gn=d2("start");function d2(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function h2(e){const t=Gn(e),n=Ao(e);if(t&&n)return{start:t,end:n}}function ga(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?jh(e.position):"start"in e||"end"in e?jh(e):"line"in e||"column"in e?El(e):""}function El(e){return qh(e&&e.line)+":"+qh(e&&e.column)}function jh(e){return El(e&&e.start)+"-"+El(e&&e.end)}function qh(e){return e&&typeof e=="number"?e:1}class jt extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?a.ruleId=r:(a.source=r.slice(0,u),a.ruleId=r.slice(u+1))}if(!a.place&&a.ancestors&&a.ancestors){const u=a.ancestors[a.ancestors.length-1];u&&(a.place=u.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=ga(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}jt.prototype.file="";jt.prototype.name="";jt.prototype.reason="";jt.prototype.message="";jt.prototype.stack="";jt.prototype.column=void 0;jt.prototype.line=void 0;jt.prototype.ancestors=void 0;jt.prototype.cause=void 0;jt.prototype.fatal=void 0;jt.prototype.place=void 0;jt.prototype.ruleId=void 0;jt.prototype.source=void 0;const q0={}.hasOwnProperty,Kx=new Map,Qx=/[A-Z]/g,Zx=new Set(["table","tbody","thead","tfoot","tr"]),Jx=new Set(["td","th"]),f2="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function eE(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=uE(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=oE(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?_i:wo,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=p2(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function p2(e,t,n){if(t.type==="element")return tE(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return nE(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return iE(e,t,n);if(t.type==="mdxjsEsm")return rE(e,t);if(t.type==="root")return aE(e,t,n);if(t.type==="text")return sE(e,t)}function tE(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=_i,e.schema=i),e.ancestors.push(t);const a=g2(e,t.tagName,!1),s=lE(e,t);let o=W0(e,t);return Zx.has(t.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!Ox(u):!0})),m2(e,s,a,t),$0(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function nE(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Ba(e,t.position)}function rE(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ba(e,t.position)}function iE(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=_i,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:g2(e,t.name,!0),s=cE(e,t),o=W0(e,t);return m2(e,s,a,t),$0(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function aE(e,t,n){const r={};return $0(r,W0(e,t)),e.create(t,e.Fragment,r,n)}function sE(e,t){return t.value}function m2(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function $0(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function oE(e,t,n){return r;function r(i,a,s,o){const l=Array.isArray(s.children)?n:t;return o?l(a,s,o):l(a,s)}}function uE(e,t){return n;function n(r,i,a,s){const o=Array.isArray(a.children),u=Gn(r);return t(i,a,s,o,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function lE(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&q0.call(t.properties,i)){const a=dE(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&Jx.has(t.tagName)?r=o:n[s]=o}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function cE(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Ba(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else Ba(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function W0(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Kx;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a0?(hn(e,e.length,0,t),e):t}const Yh={}.hasOwnProperty;function y2(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Dn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Wt=Pr(/[A-Za-z]/),Ut=Pr(/[\dA-Za-z]/),TE=Pr(/[#-'*+\--9=?A-Z^-~]/);function to(e){return e!==null&&(e<32||e===127)}const Sl=Pr(/\d/),xE=Pr(/[\dA-Fa-f]/),EE=Pr(/[!-/:-@[-`{-~]/);function fe(e){return e!==null&&e<-2}function Ze(e){return e!==null&&(e<0||e===32)}function Ue(e){return e===-2||e===-1||e===32}const Co=Pr(new RegExp("\\p{P}|\\p{S}","u")),Zr=Pr(/\s/);function Pr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Bi(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const o=e.charCodeAt(n+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ze(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(u){return Ue(u)?(e.enter(n),o(u)):t(u)}function o(u){return Ue(u)&&a++s))return;const H=t.events.length;let z=H,V,P;for(;z--;)if(t.events[z][0]==="exit"&&t.events[z][1].type==="chunkFlow"){if(V){P=t.events[z][1].end;break}V=!0}for(v(r),C=H;Cx;){const R=n[k];t.containerState=R[1],R[0].exit.call(t,e)}n.length=x}function w(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function kE(e,t,n){return ze(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ii(e){if(e===null||Ze(e)||Zr(e))return 1;if(Co(e))return 2}function ko(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},p={...e[n][1].start};Xh(d,-u),Xh(p,u),s={type:u>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},o={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},a={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=yn(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=yn(l,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),l=yn(l,ko(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=yn(l,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,l=yn(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,hn(e,r-1,n-r+3,l),n=r+l.length-c-2;break}}for(n=-1;++n0&&Ue(C)?ze(e,w,"linePrefix",a+1)(C):w(C)}function w(C){return C===null||fe(C)?e.check(Kh,y,k)(C):(e.enter("codeFlowValue"),x(C))}function x(C){return C===null||fe(C)?(e.exit("codeFlowValue"),w(C)):(e.consume(C),x)}function k(C){return e.exit("codeFenced"),t(C)}function R(C,H,z){let V=0;return P;function P(Y){return C.enter("lineEnding"),C.consume(Y),C.exit("lineEnding"),$}function $(Y){return C.enter("codeFencedFence"),Ue(Y)?ze(C,W,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):W(Y)}function W(Y){return Y===o?(C.enter("codeFencedFenceSequence"),G(Y)):z(Y)}function G(Y){return Y===o?(V++,C.consume(Y),G):V>=s?(C.exit("codeFencedFenceSequence"),Ue(Y)?ze(C,q,"whitespace")(Y):q(Y)):z(Y)}function q(Y){return Y===null||fe(Y)?(C.exit("codeFencedFence"),H(Y)):z(Y)}}}function HE(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const du={name:"codeIndented",tokenize:UE},zE={partial:!0,tokenize:VE};function UE(e,t,n){const r=this;return i;function i(l){return e.enter("codeIndented"),ze(e,a,"linePrefix",5)(l)}function a(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(l):n(l)}function s(l){return l===null?u(l):fe(l)?e.attempt(zE,s,u)(l):(e.enter("codeFlowValue"),o(l))}function o(l){return l===null||fe(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),o)}function u(l){return e.exit("codeIndented"),t(l)}}function VE(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):fe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):ze(e,a,"linePrefix",5)(s)}function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):fe(s)?i(s):n(s)}}const jE={name:"codeText",previous:$E,resolve:qE,tokenize:WE};function qE(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ji(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ji(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ji(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function w2(e,t,n,r,i,a,s,o,u){const l=u||Number.POSITIVE_INFINITY;let c=0;return d;function d(v){return v===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(v),e.exit(a),p):v===null||v===32||v===41||to(v)?n(v):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),y(v))}function p(v){return v===62?(e.enter(a),e.consume(v),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),f(v))}function f(v){return v===62?(e.exit("chunkString"),e.exit(o),p(v)):v===null||v===60||fe(v)?n(v):(e.consume(v),v===92?b:f)}function b(v){return v===60||v===62||v===92?(e.consume(v),f):f(v)}function y(v){return!c&&(v===null||v===41||Ze(v))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(v)):c999||f===null||f===91||f===93&&!u||f===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(f):f===93?(e.exit(a),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):fe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===null||f===91||f===93||fe(f)||o++>999?(e.exit("chunkString"),c(f)):(e.consume(f),u||(u=!Ue(f)),f===92?p:d)}function p(f){return f===91||f===92||f===93?(e.consume(f),o++,d):d(f)}}function C2(e,t,n,r,i,a){let s;return o;function o(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),s=p===40?41:p,u):n(p)}function u(p){return p===s?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(a),l(p))}function l(p){return p===s?(e.exit(a),u(s)):p===null?n(p):fe(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),ze(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===s||p===null||fe(p)?(e.exit("chunkString"),l(p)):(e.consume(p),p===92?d:c)}function d(p){return p===s||p===92?(e.consume(p),c):c(p)}}function ba(e,t){let n;return r;function r(i){return fe(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Ue(i)?ze(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const eS={name:"definition",tokenize:nS},tS={partial:!0,tokenize:rS};function nS(e,t,n){const r=this;let i;return a;function a(f){return e.enter("definition"),s(f)}function s(f){return A2.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function o(f){return i=Dn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),u):n(f)}function u(f){return Ze(f)?ba(e,l)(f):l(f)}function l(f){return w2(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function c(f){return e.attempt(tS,d,d)(f)}function d(f){return Ue(f)?ze(e,p,"whitespace")(f):p(f)}function p(f){return f===null||fe(f)?(e.exit("definition"),r.parser.defined.push(i),t(f)):n(f)}}function rS(e,t,n){return r;function r(o){return Ze(o)?ba(e,i)(o):n(o)}function i(o){return C2(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return Ue(o)?ze(e,s,"whitespace")(o):s(o)}function s(o){return o===null||fe(o)?t(o):n(o)}}const iS={name:"hardBreakEscape",tokenize:aS};function aS(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return fe(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const sS={name:"headingAtx",resolve:oS,tokenize:uS};function oS(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},hn(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function uS(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||Ze(c)?(e.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),u(c)):c===null||fe(c)?(e.exit("atxHeading"),t(c)):Ue(c)?ze(e,o,"whitespace")(c):(e.enter("atxHeadingText"),l(c))}function u(c){return c===35?(e.consume(c),u):(e.exit("atxHeadingSequence"),o(c))}function l(c){return c===null||c===35||Ze(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),l)}}const lS=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Zh=["pre","script","style","textarea"],cS={concrete:!0,name:"htmlFlow",resolveTo:fS,tokenize:pS},dS={partial:!0,tokenize:gS},hS={partial:!0,tokenize:mS};function fS(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function pS(e,t,n){const r=this;let i,a,s,o,u;return l;function l(B){return c(B)}function c(B){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(B),d}function d(B){return B===33?(e.consume(B),p):B===47?(e.consume(B),a=!0,y):B===63?(e.consume(B),i=3,r.interrupt?t:N):Wt(B)?(e.consume(B),s=String.fromCharCode(B),S):n(B)}function p(B){return B===45?(e.consume(B),i=2,f):B===91?(e.consume(B),i=5,o=0,b):Wt(B)?(e.consume(B),i=4,r.interrupt?t:N):n(B)}function f(B){return B===45?(e.consume(B),r.interrupt?t:N):n(B)}function b(B){const xe="CDATA[";return B===xe.charCodeAt(o++)?(e.consume(B),o===xe.length?r.interrupt?t:W:b):n(B)}function y(B){return Wt(B)?(e.consume(B),s=String.fromCharCode(B),S):n(B)}function S(B){if(B===null||B===47||B===62||Ze(B)){const xe=B===47,Ie=s.toLowerCase();return!xe&&!a&&Zh.includes(Ie)?(i=1,r.interrupt?t(B):W(B)):lS.includes(s.toLowerCase())?(i=6,xe?(e.consume(B),v):r.interrupt?t(B):W(B)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(B):a?w(B):x(B))}return B===45||Ut(B)?(e.consume(B),s+=String.fromCharCode(B),S):n(B)}function v(B){return B===62?(e.consume(B),r.interrupt?t:W):n(B)}function w(B){return Ue(B)?(e.consume(B),w):P(B)}function x(B){return B===47?(e.consume(B),P):B===58||B===95||Wt(B)?(e.consume(B),k):Ue(B)?(e.consume(B),x):P(B)}function k(B){return B===45||B===46||B===58||B===95||Ut(B)?(e.consume(B),k):R(B)}function R(B){return B===61?(e.consume(B),C):Ue(B)?(e.consume(B),R):x(B)}function C(B){return B===null||B===60||B===61||B===62||B===96?n(B):B===34||B===39?(e.consume(B),u=B,H):Ue(B)?(e.consume(B),C):z(B)}function H(B){return B===u?(e.consume(B),u=null,V):B===null||fe(B)?n(B):(e.consume(B),H)}function z(B){return B===null||B===34||B===39||B===47||B===60||B===61||B===62||B===96||Ze(B)?R(B):(e.consume(B),z)}function V(B){return B===47||B===62||Ue(B)?x(B):n(B)}function P(B){return B===62?(e.consume(B),$):n(B)}function $(B){return B===null||fe(B)?W(B):Ue(B)?(e.consume(B),$):n(B)}function W(B){return B===45&&i===2?(e.consume(B),Q):B===60&&i===1?(e.consume(B),ee):B===62&&i===4?(e.consume(B),Ce):B===63&&i===3?(e.consume(B),N):B===93&&i===5?(e.consume(B),oe):fe(B)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(dS,ve,G)(B)):B===null||fe(B)?(e.exit("htmlFlowData"),G(B)):(e.consume(B),W)}function G(B){return e.check(hS,q,ve)(B)}function q(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),Y}function Y(B){return B===null||fe(B)?G(B):(e.enter("htmlFlowData"),W(B))}function Q(B){return B===45?(e.consume(B),N):W(B)}function ee(B){return B===47?(e.consume(B),s="",de):W(B)}function de(B){if(B===62){const xe=s.toLowerCase();return Zh.includes(xe)?(e.consume(B),Ce):W(B)}return Wt(B)&&s.length<8?(e.consume(B),s+=String.fromCharCode(B),de):W(B)}function oe(B){return B===93?(e.consume(B),N):W(B)}function N(B){return B===62?(e.consume(B),Ce):B===45&&i===2?(e.consume(B),N):W(B)}function Ce(B){return B===null||fe(B)?(e.exit("htmlFlowData"),ve(B)):(e.consume(B),Ce)}function ve(B){return e.exit("htmlFlow"),t(B)}}function mS(e,t,n){const r=this;return i;function i(s){return fe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function gS(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Qa,t,n)}}const bS={name:"htmlText",tokenize:yS};function yS(e,t,n){const r=this;let i,a,s;return o;function o(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),u}function u(N){return N===33?(e.consume(N),l):N===47?(e.consume(N),R):N===63?(e.consume(N),x):Wt(N)?(e.consume(N),z):n(N)}function l(N){return N===45?(e.consume(N),c):N===91?(e.consume(N),a=0,b):Wt(N)?(e.consume(N),w):n(N)}function c(N){return N===45?(e.consume(N),f):n(N)}function d(N){return N===null?n(N):N===45?(e.consume(N),p):fe(N)?(s=d,ee(N)):(e.consume(N),d)}function p(N){return N===45?(e.consume(N),f):d(N)}function f(N){return N===62?Q(N):N===45?p(N):d(N)}function b(N){const Ce="CDATA[";return N===Ce.charCodeAt(a++)?(e.consume(N),a===Ce.length?y:b):n(N)}function y(N){return N===null?n(N):N===93?(e.consume(N),S):fe(N)?(s=y,ee(N)):(e.consume(N),y)}function S(N){return N===93?(e.consume(N),v):y(N)}function v(N){return N===62?Q(N):N===93?(e.consume(N),v):y(N)}function w(N){return N===null||N===62?Q(N):fe(N)?(s=w,ee(N)):(e.consume(N),w)}function x(N){return N===null?n(N):N===63?(e.consume(N),k):fe(N)?(s=x,ee(N)):(e.consume(N),x)}function k(N){return N===62?Q(N):x(N)}function R(N){return Wt(N)?(e.consume(N),C):n(N)}function C(N){return N===45||Ut(N)?(e.consume(N),C):H(N)}function H(N){return fe(N)?(s=H,ee(N)):Ue(N)?(e.consume(N),H):Q(N)}function z(N){return N===45||Ut(N)?(e.consume(N),z):N===47||N===62||Ze(N)?V(N):n(N)}function V(N){return N===47?(e.consume(N),Q):N===58||N===95||Wt(N)?(e.consume(N),P):fe(N)?(s=V,ee(N)):Ue(N)?(e.consume(N),V):Q(N)}function P(N){return N===45||N===46||N===58||N===95||Ut(N)?(e.consume(N),P):$(N)}function $(N){return N===61?(e.consume(N),W):fe(N)?(s=$,ee(N)):Ue(N)?(e.consume(N),$):V(N)}function W(N){return N===null||N===60||N===61||N===62||N===96?n(N):N===34||N===39?(e.consume(N),i=N,G):fe(N)?(s=W,ee(N)):Ue(N)?(e.consume(N),W):(e.consume(N),q)}function G(N){return N===i?(e.consume(N),i=void 0,Y):N===null?n(N):fe(N)?(s=G,ee(N)):(e.consume(N),G)}function q(N){return N===null||N===34||N===39||N===60||N===61||N===96?n(N):N===47||N===62||Ze(N)?V(N):(e.consume(N),q)}function Y(N){return N===47||N===62||Ze(N)?V(N):n(N)}function Q(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):n(N)}function ee(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),de}function de(N){return Ue(N)?ze(e,oe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):oe(N)}function oe(N){return e.enter("htmlTextData"),s(N)}}const X0={name:"labelEnd",resolveAll:ES,resolveTo:SS,tokenize:wS},vS={tokenize:AS},TS={tokenize:CS},xS={tokenize:kS};function ES(e){let t=-1;const n=[];for(;++t=3&&(l===null||fe(l))?(e.exit("thematicBreak"),t(l)):n(l)}function u(l){return l===i?(e.consume(l),r++,u):(e.exit("thematicBreakSequence"),Ue(l)?ze(e,o,"whitespace")(l):o(l))}}const Jt={continuation:{tokenize:BS},exit:HS,name:"list",tokenize:_S},LS={partial:!0,tokenize:zS},OS={partial:!0,tokenize:FS};function _S(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(f){const b=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:Sl(f)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(zs,n,l)(f):l(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(f)}return n(f)}function u(f){return Sl(f)&&++s<10?(e.consume(f),u):(!r.interrupt||s<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),l(f)):n(f)}function l(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(Qa,r.interrupt?n:c,e.attempt(LS,p,d))}function c(f){return r.containerState.initialBlankLine=!0,a++,p(f)}function d(f){return Ue(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),p):n(f)}function p(f){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function BS(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Qa,i,a);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ze(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!Ue(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(OS,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,ze(e,e.attempt(Jt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function FS(e,t,n){const r=this;return ze(e,i,"listItemIndent",r.containerState.size+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function HS(e){e.exit(this.containerState.type)}function zS(e,t,n){const r=this;return ze(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=r.events[r.events.length-1];return!Ue(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Jh={name:"setextUnderline",resolveTo:US,tokenize:VS};function US(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function VS(e,t,n){const r=this;let i;return a;function a(l){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=l,s(l)):n(l)}function s(l){return e.enter("setextHeadingLineSequence"),o(l)}function o(l){return l===i?(e.consume(l),o):(e.exit("setextHeadingLineSequence"),Ue(l)?ze(e,u,"lineSuffix")(l):u(l))}function u(l){return l===null||fe(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const jS={tokenize:qS};function qS(e){const t=this,n=e.attempt(Qa,r,e.attempt(this.parser.constructs.flowInitial,i,ze(e,e.attempt(this.parser.constructs.flow,i,e.attempt(XE,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const $S={resolveAll:I2()},WS=k2("string"),YS=k2("text");function k2(e){return{resolveAll:I2(e==="text"?GS:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,o);return s;function s(c){return l(c)?a(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),u}function u(c){return l(c)?(n.exit("data"),a(c)):(n.consume(c),u)}function l(c){if(c===null)return!0;const d=i[c];let p=-1;if(d)for(;++p-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function ow(e,t){let n=-1;const r=[];let i;for(;++n0){const Se=me.tokenStack[me.tokenStack.length-1];(Se[1]||tf).call(me,void 0,Se[0])}for(ie.position={start:gr(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:gr(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},Pe=-1;++Pe0){const Se=me.tokenStack[me.tokenStack.length-1];(Se[1]||tf).call(me,void 0,Se[0])}for(ie.position={start:gr(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:gr(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},Pe=-1;++Pe1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,u);const l={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,l),e.applyData(t,l)}function ww(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Aw(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function M2(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function Cw(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return M2(e,t);const i={src:Bi(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function kw(e,t){const n={src:Bi(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Iw(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Nw(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return M2(e,t);const i={href:Bi(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Rw(e,t){const n={href:Bi(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Mw(e,t,n){const r=e.all(t),i=n?Dw(n):D2(t),a={},s=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o0&&n.push({type:"text",value:` `}),n}function lf(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function cf(e,t){const n=aA(e,t),r=n.one(e,void 0),i=Kw(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` -`},i),a}function cA(e,t){return e&&"run"in e?async function(n,r){const i=cf(n,{file:r,...t});await e.run(i,r)}:function(n,r){return cf(n,{file:r,...e||t})}}function df(e){if(e)throw e}var fu,hf;function dA(){if(hf)return fu;hf=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(l){return typeof Array.isArray=="function"?Array.isArray(l):t.call(l)==="[object Array]"},a=function(l){if(!l||t.call(l)!=="[object Object]")return!1;var c=e.call(l,"constructor"),d=l.constructor&&l.constructor.prototype&&e.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!c&&!d)return!1;var p;for(p in l);return typeof p>"u"||e.call(l,p)},s=function(l,c){n&&c.name==="__proto__"?n(l,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):l[c.name]=c.newValue},o=function(l,c){if(c==="__proto__")if(e.call(l,c)){if(r)return r(l,c).value}else return;return l[c]};return fu=function u(){var l,c,d,p,f,b,y=arguments[0],S=1,v=arguments.length,w=!1;for(typeof y=="boolean"&&(w=y,y=arguments[1]||{},S=2),(y==null||typeof y!="object"&&typeof y!="function")&&(y={});Ss.length;let u;o&&s.push(i);try{u=e.apply(this,s)}catch(l){const c=l;if(o&&n)throw c;return i(c)}o||(u&&u.then&&typeof u.then=="function"?u.then(a,i):u instanceof Error?i(u):a(u))}function i(s,...o){n||(n=!0,t(s,...o))}function a(s){i(null,s)}}const On={basename:mA,dirname:gA,extname:bA,join:yA,sep:"/"};function mA(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ja(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function gA(e){if(Ja(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function bA(e){Ja(e);let t=e.length,n=-1,r=0,i=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function yA(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function TA(e,t){let n="",r=0,i=-1,a=0,s=-1,o,u;for(;++s<=e.length;){if(s2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=s,a=0;continue}}else if(n.length>0){n="",r=0,i=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return n}function Ja(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const xA={cwd:EA};function EA(){return"/"}function Il(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function SA(e){if(typeof e=="string")e=new URL(e);else if(!Il(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return wA(e)}function wA(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[f,...b]=c;const y=r[p][1];kl(y)&&kl(f)&&(f=pu(!0,y,f)),r[p]=[l,f,...b]}}}}const IA=new tc().freeze();function yu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function vu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Tu(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function pf(e){if(!kl(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function mf(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Es(e){return NA(e)?e:new F2(e)}function NA(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function RA(e){return typeof e=="string"||MA(e)}function MA(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const DA="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",gf=[],bf={allowDangerousHtml:!0},PA=/^(https?|ircs?|mailto|xmpp)$/i,LA=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function OA(e){const t=_A(e),n=BA(e);return FA(t.runSync(t.parse(n),n),e)}function _A(e){const t=e.rehypePlugins||gf,n=e.remarkPlugins||gf,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...bf}:bf;return IA().use(bw).use(n).use(cA,r).use(t)}function BA(e){const t=e.children||"",n=new F2;return typeof t=="string"&&(n.value=t),n}function FA(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,u=t.urlTransform||HA;for(const c of LA)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+DA+c.id,void 0);return Ro(e,l),eE(e,{Fragment:R.Fragment,components:i,ignoreInvalidStyle:!0,jsx:R.jsx,jsxs:R.jsxs,passKeys:!0,passNode:!0});function l(c,d,p){if(c.type==="raw"&&p&&typeof d=="number")return s?p.children.splice(d,1):p.children[d]={type:"text",value:c.value},d;if(c.type==="element"){let f;for(f in cu)if(Object.hasOwn(cu,f)&&Object.hasOwn(c.properties,f)){const b=c.properties[f],y=cu[f];(y===null||y.includes(c.tagName))&&(c.properties[f]=u(String(b||""),f,c))}}if(c.type==="element"){let f=n?!n.includes(c.tagName):a?a.includes(c.tagName):!1;if(!f&&r&&typeof d=="number"&&(f=!r(c,d,p)),f&&p&&typeof d=="number")return o&&c.children?p.children.splice(d,1,...c.children):p.children.splice(d,1),d}}}function HA(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||PA.test(e.slice(0,t))?e:""}function yf(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function zA(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function UA(e,t,n){const i=Za((n||{}).ignore||[]),a=VA(t);let s=-1;for(;++s0?{type:"text",value:C}:void 0),C===!1?p.lastIndex=k+1:(b!==k&&w.push({type:"text",value:l.value.slice(b,k)}),Array.isArray(C)?w.push(...C):C&&w.push(C),b=k+x[0].length,v=!0),!p.global)break;x=p.exec(l.value)}return v?(b?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=yf(e,"(");let a=yf(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function H2(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Zr(n)||Co(n))&&(!t||n!==47)}z2.peek=dC;function rC(){this.buffer()}function iC(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function aC(){this.buffer()}function sC(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function oC(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Dn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function uC(e){this.exit(e)}function lC(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Dn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function cC(e){this.exit(e)}function dC(){return"["}function z2(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),o(),s(),a+=i.move("]"),a}function hC(){return{enter:{gfmFootnoteCallString:rC,gfmFootnoteCall:iC,gfmFootnoteDefinitionLabelString:aC,gfmFootnoteDefinition:sC},exit:{gfmFootnoteCallString:oC,gfmFootnoteCall:uC,gfmFootnoteDefinitionLabelString:lC,gfmFootnoteDefinition:cC}}}function fC(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:z2},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,s){const o=a.createTracker(s);let u=o.move("[^");const l=a.enter("footnoteDefinition"),c=a.enter("label");return u+=o.move(a.safe(a.associationId(r),{before:u,after:"]"})),c(),u+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),u+=o.move((t?` -`:" ")+a.indentLines(a.containerFlow(r,o.current()),t?U2:pC))),l(),u}}function pC(e,t,n){return t===0?e:U2(e,t,n)}function U2(e,t,n){return(n?"":" ")+e}const mC=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];V2.peek=TC;function gC(){return{canContainEols:["delete"],enter:{strikethrough:yC},exit:{strikethrough:vC}}}function bC(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:mC}],handlers:{delete:V2}}}function yC(e){this.enter({type:"delete",children:[]},e)}function vC(e){this.exit(e)}function V2(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function TC(){return"~"}function xC(e){return e.length}function EC(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||xC,a=[],s=[],o=[],u=[];let l=0,c=-1;for(;++cl&&(l=e[c].length);++vu[v])&&(u[v]=x)}y.push(w)}s[c]=y,o[c]=S}let d=-1;if(typeof r=="object"&&"length"in r)for(;++du[d]&&(u[d]=w),f[d]=w),p[d]=x}s.splice(1,0,p),o.splice(1,0,f),c=-1;const b=[];for(;++c"u"||e.call(l,p)},s=function(l,c){n&&c.name==="__proto__"?n(l,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):l[c.name]=c.newValue},o=function(l,c){if(c==="__proto__")if(e.call(l,c)){if(r)return r(l,c).value}else return;return l[c]};return fu=function u(){var l,c,d,p,f,b,y=arguments[0],S=1,v=arguments.length,w=!1;for(typeof y=="boolean"&&(w=y,y=arguments[1]||{},S=2),(y==null||typeof y!="object"&&typeof y!="function")&&(y={});Ss.length;let u;o&&s.push(i);try{u=e.apply(this,s)}catch(l){const c=l;if(o&&n)throw c;return i(c)}o||(u&&u.then&&typeof u.then=="function"?u.then(a,i):u instanceof Error?i(u):a(u))}function i(s,...o){n||(n=!0,t(s,...o))}function a(s){i(null,s)}}const On={basename:mA,dirname:gA,extname:bA,join:yA,sep:"/"};function mA(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ja(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function gA(e){if(Ja(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function bA(e){Ja(e);let t=e.length,n=-1,r=0,i=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function yA(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function TA(e,t){let n="",r=0,i=-1,a=0,s=-1,o,u;for(;++s<=e.length;){if(s2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=s,a=0;continue}}else if(n.length>0){n="",r=0,i=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return n}function Ja(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const xA={cwd:EA};function EA(){return"/"}function Il(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function SA(e){if(typeof e=="string")e=new URL(e);else if(!Il(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return wA(e)}function wA(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[f,...b]=c;const y=r[p][1];kl(y)&&kl(f)&&(f=pu(!0,y,f)),r[p]=[l,f,...b]}}}}const IA=new tc().freeze();function yu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function vu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Tu(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function pf(e){if(!kl(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function mf(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Es(e){return NA(e)?e:new F2(e)}function NA(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function RA(e){return typeof e=="string"||MA(e)}function MA(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const DA="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",gf=[],bf={allowDangerousHtml:!0},PA=/^(https?|ircs?|mailto|xmpp)$/i,LA=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function OA(e){const t=_A(e),n=BA(e);return FA(t.runSync(t.parse(n),n),e)}function _A(e){const t=e.rehypePlugins||gf,n=e.remarkPlugins||gf,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...bf}:bf;return IA().use(bw).use(n).use(cA,r).use(t)}function BA(e){const t=e.children||"",n=new F2;return typeof t=="string"&&(n.value=t),n}function FA(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,u=t.urlTransform||HA;for(const c of LA)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+DA+c.id,void 0);return Ro(e,l),eE(e,{Fragment:M.Fragment,components:i,ignoreInvalidStyle:!0,jsx:M.jsx,jsxs:M.jsxs,passKeys:!0,passNode:!0});function l(c,d,p){if(c.type==="raw"&&p&&typeof d=="number")return s?p.children.splice(d,1):p.children[d]={type:"text",value:c.value},d;if(c.type==="element"){let f;for(f in cu)if(Object.hasOwn(cu,f)&&Object.hasOwn(c.properties,f)){const b=c.properties[f],y=cu[f];(y===null||y.includes(c.tagName))&&(c.properties[f]=u(String(b||""),f,c))}}if(c.type==="element"){let f=n?!n.includes(c.tagName):a?a.includes(c.tagName):!1;if(!f&&r&&typeof d=="number"&&(f=!r(c,d,p)),f&&p&&typeof d=="number")return o&&c.children?p.children.splice(d,1,...c.children):p.children.splice(d,1),d}}}function HA(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||PA.test(e.slice(0,t))?e:""}function yf(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function zA(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function UA(e,t,n){const i=Za((n||{}).ignore||[]),a=VA(t);let s=-1;for(;++s0?{type:"text",value:C}:void 0),C===!1?p.lastIndex=k+1:(b!==k&&w.push({type:"text",value:l.value.slice(b,k)}),Array.isArray(C)?w.push(...C):C&&w.push(C),b=k+x[0].length,v=!0),!p.global)break;x=p.exec(l.value)}return v?(b?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=yf(e,"(");let a=yf(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function H2(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Zr(n)||Co(n))&&(!t||n!==47)}z2.peek=dC;function rC(){this.buffer()}function iC(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function aC(){this.buffer()}function sC(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function oC(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Dn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function uC(e){this.exit(e)}function lC(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Dn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function cC(e){this.exit(e)}function dC(){return"["}function z2(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),o(),s(),a+=i.move("]"),a}function hC(){return{enter:{gfmFootnoteCallString:rC,gfmFootnoteCall:iC,gfmFootnoteDefinitionLabelString:aC,gfmFootnoteDefinition:sC},exit:{gfmFootnoteCallString:oC,gfmFootnoteCall:uC,gfmFootnoteDefinitionLabelString:lC,gfmFootnoteDefinition:cC}}}function fC(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:z2},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,s){const o=a.createTracker(s);let u=o.move("[^");const l=a.enter("footnoteDefinition"),c=a.enter("label");return u+=o.move(a.safe(a.associationId(r),{before:u,after:"]"})),c(),u+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),u+=o.move((t?` +`:" ")+a.indentLines(a.containerFlow(r,o.current()),t?U2:pC))),l(),u}}function pC(e,t,n){return t===0?e:U2(e,t,n)}function U2(e,t,n){return(n?"":" ")+e}const mC=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];V2.peek=TC;function gC(){return{canContainEols:["delete"],enter:{strikethrough:yC},exit:{strikethrough:vC}}}function bC(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:mC}],handlers:{delete:V2}}}function yC(e){this.enter({type:"delete",children:[]},e)}function vC(e){this.exit(e)}function V2(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function TC(){return"~"}function xC(e){return e.length}function EC(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||xC,a=[],s=[],o=[],u=[];let l=0,c=-1;for(;++cl&&(l=e[c].length);++vu[v])&&(u[v]=x)}y.push(w)}s[c]=y,o[c]=S}let d=-1;if(typeof r=="object"&&"length"in r)for(;++du[d]&&(u[d]=w),f[d]=w),p[d]=x}s.splice(1,0,p),o.splice(1,0,f),c=-1;const b=[];for(;++c "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),AC);return i(),s}function AC(e,t,n){return">"+(n?"":" ")+e}function CC(e,t){return xf(e,t.inConstruct,!0)&&!xf(e,t.notInConstruct,!1)}function xf(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++rs&&(s=a):a=1,i=r+t.length,r=n.indexOf(t,i);return s}function kC(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function IC(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function NC(e,t,n,r){const i=IC(n),a=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(kC(e,n)){const d=n.enter("codeIndented"),p=n.indentLines(a,RC);return d(),p}const o=n.createTracker(r),u=i.repeat(Math.max(q2(a,i)+1,3)),l=n.enter("codeFenced");let c=o.move(u);if(e.lang){const d=n.enter(`codeFencedLang${s}`);c+=o.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...o.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${s}`);c+=o.move(" "),c+=o.move(n.safe(e.meta,{before:c,after:` @@ -125,11 +125,11 @@ import{y as mg,z as gg,r as O,C as bg,D as yg,j as R,c as Ve,_ as vg,R as us,E a `))+1))}const s="#".repeat(i),o=n.enter("headingAtx"),u=n.enter("phrasing");a.move(s+" ");let l=n.containerPhrasing(e,{before:"# ",after:` `,...a.current()});return/^[\t ]/.test(l)&&(l=Fa(l.charCodeAt(0))+l.slice(1)),l=l?s+" "+l:s,n.options.closeAtx&&(l+=" "+s),u(),o(),l}W2.peek=_C;function W2(e){return e.value||""}function _C(){return"<"}Y2.peek=BC;function Y2(e,t,n,r){const i=nc(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=n.enter("label");const u=n.createTracker(r);let l=u.move("![");return l+=u.move(n.safe(e.alt,{before:l,after:"]",...u.current()})),l+=u.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),l+=u.move("<"),l+=u.move(n.safe(e.url,{before:l,after:">",...u.current()})),l+=u.move(">")):(o=n.enter("destinationRaw"),l+=u.move(n.safe(e.url,{before:l,after:e.title?" ":")",...u.current()}))),o(),e.title&&(o=n.enter(`title${a}`),l+=u.move(" "+i),l+=u.move(n.safe(e.title,{before:l,after:i,...u.current()})),l+=u.move(i),o()),l+=u.move(")"),s(),l}function BC(){return"!"}G2.peek=FC;function G2(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(r);let u=o.move("![");const l=n.safe(e.alt,{before:u,after:"]",...o.current()});u+=o.move(l+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:u,after:"]",...o.current()});return s(),n.stack=c,a(),i==="full"||!l||l!==d?u+=o.move(d+"]"):i==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function FC(){return"!"}X2.peek=HC;function X2(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a\u007F]/.test(e.url))}Q2.peek=zC;function Q2(e,t,n,r){const i=nc(n),a=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,u;if(K2(e,n)){const c=n.stack;n.stack=[],o=n.enter("autolink");let d=s.move("<");return d+=s.move(n.containerPhrasing(e,{before:d,after:">",...s.current()})),d+=s.move(">"),o(),n.stack=c,d}o=n.enter("link"),u=n.enter("label");let l=s.move("[");return l+=s.move(n.containerPhrasing(e,{before:l,after:"](",...s.current()})),l+=s.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),l+=s.move("<"),l+=s.move(n.safe(e.url,{before:l,after:">",...s.current()})),l+=s.move(">")):(u=n.enter("destinationRaw"),l+=s.move(n.safe(e.url,{before:l,after:e.title?" ":")",...s.current()}))),u(),e.title&&(u=n.enter(`title${a}`),l+=s.move(" "+i),l+=s.move(n.safe(e.title,{before:l,after:i,...s.current()})),l+=s.move(i),u()),l+=s.move(")"),o(),l}function zC(e,t,n){return K2(e,n)?"<":"["}Z2.peek=UC;function Z2(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(r);let u=o.move("[");const l=n.containerPhrasing(e,{before:u,after:"]",...o.current()});u+=o.move(l+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:u,after:"]",...o.current()});return s(),n.stack=c,a(),i==="full"||!l||l!==d?u+=o.move(d+"]"):i==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function UC(){return"["}function rc(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function VC(e){const t=rc(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function jC(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function J2(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function qC(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?jC(n):rc(n);const o=e.ordered?s==="."?")":".":VC(n);let u=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),J2(n)===s&&c){let d=-1;for(;++d-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(r);o.move(a+" ".repeat(s-a.length)),o.shift(s);const u=n.enter("listItem"),l=n.indentLines(n.containerFlow(e,o.current()),c);return u(),l;function c(d,p,f){return p?(f?"":" ".repeat(s))+d:(f?a:a+" ".repeat(s-a.length))+d}}function YC(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),i(),s}const GC=Za(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function XC(e,t,n,r){return(e.children.some(function(s){return GC(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function KC(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}e4.peek=QC;function e4(e,t,n,r){const i=KC(n),a=n.enter("strong"),s=n.createTracker(r),o=s.move(i+i);let u=s.move(n.containerPhrasing(e,{after:i,before:o,...s.current()}));const l=u.charCodeAt(0),c=ro(r.before.charCodeAt(r.before.length-1),l,i);c.inside&&(u=Fa(l)+u.slice(1));const d=u.charCodeAt(u.length-1),p=ro(r.after.charCodeAt(0),d,i);p.inside&&(u=u.slice(0,-1)+Fa(d));const f=s.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},o+u+f}function QC(e,t,n){return n.options.strong||"*"}function ZC(e,t,n,r){return n.safe(e.value,r)}function JC(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function ek(e,t,n){const r=(J2(n)+(n.options.ruleSpaces?" ":"")).repeat(JC(n));return n.options.ruleSpaces?r.slice(0,-1):r}const t4={blockquote:wC,break:Ef,code:NC,definition:MC,emphasis:$2,hardBreak:Ef,heading:OC,html:W2,image:Y2,imageReference:G2,inlineCode:X2,link:Q2,linkReference:Z2,list:qC,listItem:WC,paragraph:YC,root:XC,strong:e4,text:ZC,thematicBreak:ek};function tk(){return{enter:{table:nk,tableData:Sf,tableHeader:Sf,tableRow:ik},exit:{codeText:ak,table:rk,tableData:wu,tableHeader:wu,tableRow:wu}}}function nk(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function rk(e){this.exit(e),this.data.inTable=void 0}function ik(e){this.enter({type:"tableRow",children:[]},e)}function wu(e){this.exit(e)}function Sf(e){this.enter({type:"tableCell",children:[]},e)}function ak(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,sk));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function sk(e,t){return t==="|"?t:e}function ok(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:s,tableCell:u,tableRow:o}};function s(f,b,y,S){return l(c(f,y,S),f.align)}function o(f,b,y,S){const v=d(f,y,S),w=l([v]);return w.slice(0,w.indexOf(` -`))}function u(f,b,y,S){const v=y.enter("tableCell"),w=y.enter("phrasing"),x=y.containerPhrasing(f,{...S,before:a,after:a});return w(),v(),x}function l(f,b){return EC(f,{align:b,alignDelimiters:r,padding:n,stringLength:i})}function c(f,b,y){const S=f.children;let v=-1;const w=[],x=b.enter("table");for(;++v0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Ak={tokenize:Pk,partial:!0};function Ck(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Rk,continuation:{tokenize:Mk},exit:Dk}},text:{91:{name:"gfmFootnoteCall",tokenize:Nk},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:kk,resolveTo:Ik}}}}function kk(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){s=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return o;function o(u){if(!s||!s._balanced)return n(u);const l=Dn(r.sliceSerialize({start:s.end,end:r.now()}));return l.codePointAt(0)!==94||!a.includes(l.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function Ik(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function Nk(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return o;function o(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),u}function u(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(d){if(a>999||d===93&&!s||d===null||d===91||Ze(d))return n(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(Dn(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Ze(d)||(s=!0),a++,e.consume(d),d===92?c:l}function c(d){return d===91||d===92||d===93?(e.consume(d),a++,l):l(d)}}function Rk(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,o;return u;function u(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(b)}function c(b){if(s>999||b===93&&!o||b===null||b===91||Ze(b))return n(b);if(b===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return a=Dn(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return Ze(b)||(o=!0),s++,e.consume(b),b===92?d:c}function d(b){return b===91||b===92||b===93?(e.consume(b),s++,c):c(b)}function p(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(a)||i.push(a),ze(e,f,"gfmFootnoteDefinitionWhitespace")):n(b)}function f(b){return t(b)}}function Mk(e,t,n){return e.check(Qa,t,e.attempt(Ak,t,n))}function Dk(e){e.exit("gfmFootnoteDefinition")}function Pk(e,t,n){const r=this;return ze(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function Lk(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,o){let u=-1;for(;++u1?u(b):(s.consume(b),d++,f);if(d<2&&!n)return u(b);const S=s.exit("strikethroughSequenceTemporary"),v=Ii(b);return S._open=!v||v===2&&!!y,S._close=!y||y===2&&!!v,o(b)}}}class Ok{constructor(){this.map=[]}add(t,n,r){_k(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const a of i)t.push(a);i=r.pop()}this.map.length=0}}function _k(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const q=r.events[$][1].type;if(q==="lineEnding"||q==="linePrefix")$--;else break}const W=$>-1?r.events[$][1].type:null,G=W==="tableHead"||W==="tableRow"?C:u;return G===C&&r.parser.lazy[r.now().line]?n(P):G(P)}function u(P){return e.enter("tableHead"),e.enter("tableRow"),l(P)}function l(P){return P===124||(s=!0,a+=1),c(P)}function c(P){return P===null?n(P):fe(P)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),f):n(P):Ue(P)?ze(e,c,"whitespace")(P):(a+=1,s&&(s=!1,i+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),d(P)))}function d(P){return P===null||P===124||Ze(P)?(e.exit("data"),c(P)):(e.consume(P),P===92?p:d)}function p(P){return P===92||P===124?(e.consume(P),d):d(P)}function f(P){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(P):(e.enter("tableDelimiterRow"),s=!1,Ue(P)?ze(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):b(P))}function b(P){return P===45||P===58?S(P):P===124?(s=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),y):M(P)}function y(P){return Ue(P)?ze(e,S,"whitespace")(P):S(P)}function S(P){return P===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),v):P===45?(a+=1,v(P)):P===null||fe(P)?k(P):M(P)}function v(P){return P===45?(e.enter("tableDelimiterFiller"),w(P)):M(P)}function w(P){return P===45?(e.consume(P),w):P===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(P))}function x(P){return Ue(P)?ze(e,k,"whitespace")(P):k(P)}function k(P){return P===124?b(P):P===null||fe(P)?!s||i!==a?M(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(P)):M(P)}function M(P){return n(P)}function C(P){return e.enter("tableRow"),H(P)}function H(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),H):P===null||fe(P)?(e.exit("tableRow"),t(P)):Ue(P)?ze(e,H,"whitespace")(P):(e.enter("data"),z(P))}function z(P){return P===null||P===124||Ze(P)?(e.exit("data"),H(P)):(e.consume(P),P===92?V:z)}function V(P){return P===92||P===124?(e.consume(P),z):z(P)}}function zk(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,u=0,l,c,d;const p=new Ok;for(;++nn[2]+1){const b=n[2]+1,y=n[3]-n[2]-1;e.add(b,y,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(a.end=Object.assign({},ci(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Af(e,t,n,r,i){const a=[],s=ci(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function ci(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Uk={name:"tasklistCheck",tokenize:jk};function Vk(){return{text:{91:Uk}}}function jk(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return Ze(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),s):n(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(u)}function o(u){return fe(u)?t(u):Ue(u)?e.check({tokenize:qk},t,n)(u):n(u)}}function qk(e,t,n){return ze(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function $k(e){return y2([gk(),Ck(),Lk(e),Fk(),Vk()])}const Wk={};function Cf(e){const t=this,n=e||Wk,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push($k(n)),a.push(hk()),s.push(fk(n))}function Yk(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:o,mathText:s,mathTextData:o}};function e(u){const l={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[l]}},u)}function t(){this.buffer()}function n(){const u=this.resume(),l=this.stack[this.stack.length-1];l.type,l.meta=u}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(u){const l=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c=this.stack[this.stack.length-1];c.type,this.exit(u),c.value=l;const d=c.data.hChildren[0];d.type,d.tagName,d.children.push({type:"text",value:l}),this.data.mathFlowInside=void 0}function a(u){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},u),this.buffer()}function s(u){const l=this.resume(),c=this.stack[this.stack.length-1];c.type,this.exit(u),c.value=l,c.data.hChildren.push({type:"text",value:l})}function o(u){this.config.enter.data.call(this,u),this.config.exit.data.call(this,u)}}function Gk(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` +`))}function u(f,b,y,S){const v=y.enter("tableCell"),w=y.enter("phrasing"),x=y.containerPhrasing(f,{...S,before:a,after:a});return w(),v(),x}function l(f,b){return EC(f,{align:b,alignDelimiters:r,padding:n,stringLength:i})}function c(f,b,y){const S=f.children;let v=-1;const w=[],x=b.enter("table");for(;++v0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Ak={tokenize:Pk,partial:!0};function Ck(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Rk,continuation:{tokenize:Mk},exit:Dk}},text:{91:{name:"gfmFootnoteCall",tokenize:Nk},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:kk,resolveTo:Ik}}}}function kk(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){s=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return o;function o(u){if(!s||!s._balanced)return n(u);const l=Dn(r.sliceSerialize({start:s.end,end:r.now()}));return l.codePointAt(0)!==94||!a.includes(l.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function Ik(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function Nk(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return o;function o(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),u}function u(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(d){if(a>999||d===93&&!s||d===null||d===91||Ze(d))return n(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(Dn(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Ze(d)||(s=!0),a++,e.consume(d),d===92?c:l}function c(d){return d===91||d===92||d===93?(e.consume(d),a++,l):l(d)}}function Rk(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,o;return u;function u(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(b)}function c(b){if(s>999||b===93&&!o||b===null||b===91||Ze(b))return n(b);if(b===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return a=Dn(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return Ze(b)||(o=!0),s++,e.consume(b),b===92?d:c}function d(b){return b===91||b===92||b===93?(e.consume(b),s++,c):c(b)}function p(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(a)||i.push(a),ze(e,f,"gfmFootnoteDefinitionWhitespace")):n(b)}function f(b){return t(b)}}function Mk(e,t,n){return e.check(Qa,t,e.attempt(Ak,t,n))}function Dk(e){e.exit("gfmFootnoteDefinition")}function Pk(e,t,n){const r=this;return ze(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function Lk(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,o){let u=-1;for(;++u1?u(b):(s.consume(b),d++,f);if(d<2&&!n)return u(b);const S=s.exit("strikethroughSequenceTemporary"),v=Ii(b);return S._open=!v||v===2&&!!y,S._close=!y||y===2&&!!v,o(b)}}}class Ok{constructor(){this.map=[]}add(t,n,r){_k(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const a of i)t.push(a);i=r.pop()}this.map.length=0}}function _k(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const q=r.events[$][1].type;if(q==="lineEnding"||q==="linePrefix")$--;else break}const W=$>-1?r.events[$][1].type:null,G=W==="tableHead"||W==="tableRow"?C:u;return G===C&&r.parser.lazy[r.now().line]?n(P):G(P)}function u(P){return e.enter("tableHead"),e.enter("tableRow"),l(P)}function l(P){return P===124||(s=!0,a+=1),c(P)}function c(P){return P===null?n(P):fe(P)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),f):n(P):Ue(P)?ze(e,c,"whitespace")(P):(a+=1,s&&(s=!1,i+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),d(P)))}function d(P){return P===null||P===124||Ze(P)?(e.exit("data"),c(P)):(e.consume(P),P===92?p:d)}function p(P){return P===92||P===124?(e.consume(P),d):d(P)}function f(P){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(P):(e.enter("tableDelimiterRow"),s=!1,Ue(P)?ze(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):b(P))}function b(P){return P===45||P===58?S(P):P===124?(s=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),y):R(P)}function y(P){return Ue(P)?ze(e,S,"whitespace")(P):S(P)}function S(P){return P===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),v):P===45?(a+=1,v(P)):P===null||fe(P)?k(P):R(P)}function v(P){return P===45?(e.enter("tableDelimiterFiller"),w(P)):R(P)}function w(P){return P===45?(e.consume(P),w):P===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(P))}function x(P){return Ue(P)?ze(e,k,"whitespace")(P):k(P)}function k(P){return P===124?b(P):P===null||fe(P)?!s||i!==a?R(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(P)):R(P)}function R(P){return n(P)}function C(P){return e.enter("tableRow"),H(P)}function H(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),H):P===null||fe(P)?(e.exit("tableRow"),t(P)):Ue(P)?ze(e,H,"whitespace")(P):(e.enter("data"),z(P))}function z(P){return P===null||P===124||Ze(P)?(e.exit("data"),H(P)):(e.consume(P),P===92?V:z)}function V(P){return P===92||P===124?(e.consume(P),z):z(P)}}function zk(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,u=0,l,c,d;const p=new Ok;for(;++nn[2]+1){const b=n[2]+1,y=n[3]-n[2]-1;e.add(b,y,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(a.end=Object.assign({},ci(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Af(e,t,n,r,i){const a=[],s=ci(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function ci(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Uk={name:"tasklistCheck",tokenize:jk};function Vk(){return{text:{91:Uk}}}function jk(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return Ze(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),s):n(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(u)}function o(u){return fe(u)?t(u):Ue(u)?e.check({tokenize:qk},t,n)(u):n(u)}}function qk(e,t,n){return ze(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function $k(e){return y2([gk(),Ck(),Lk(e),Fk(),Vk()])}const Wk={};function Cf(e){const t=this,n=e||Wk,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push($k(n)),a.push(hk()),s.push(fk(n))}function Yk(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:o,mathText:s,mathTextData:o}};function e(u){const l={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[l]}},u)}function t(){this.buffer()}function n(){const u=this.resume(),l=this.stack[this.stack.length-1];l.type,l.meta=u}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(u){const l=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c=this.stack[this.stack.length-1];c.type,this.exit(u),c.value=l;const d=c.data.hChildren[0];d.type,d.tagName,d.children.push({type:"text",value:l}),this.data.mathFlowInside=void 0}function a(u){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},u),this.buffer()}function s(u){const l=this.resume(),c=this.stack[this.stack.length-1];c.type,this.exit(u),c.value=l,c.data.hChildren.push({type:"text",value:l})}function o(u){this.config.enter.data.call(this,u),this.config.exit.data.call(this,u)}}function Gk(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` `,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(a,s,o,u){const l=a.value||"",c=o.createTracker(u),d="$".repeat(Math.max(q2(l,"$")+1,2)),p=o.enter("mathFlow");let f=c.move(d);if(a.meta){const b=o.enter("mathFlowMeta");f+=c.move(o.safe(a.meta,{after:` `,before:f,encode:["$"],...c.current()})),b()}return f+=c.move(` `),l&&(f+=c.move(l+` -`)),f+=c.move(d),p(),f}function r(a,s,o){let u=a.value||"",l=1;for(t||l++;new RegExp("(^|[^$])"+"\\$".repeat(l)+"([^$]|$)").test(u);)l++;const c="$".repeat(l);/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^\$|\$$/.test(u))&&(u=" "+u+" ");let d=-1;for(;++d15?l="…"+o.slice(i-15,i):l=o.slice(0,i);var c;a+15":">","<":"<",'"':""","'":"'"},oI=/[&><"']/g;function uI(e){return String(e).replace(oI,t=>sI[t])}var c4=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},lI=function(t){var n=c4(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},cI=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},dI=function(t){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"},ge={contains:nI,deflt:rI,escape:uI,hyphenate:aI,getBaseElem:c4,isCharacterBox:lI,protocolFromUrl:dI},Us={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function hI(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class ac{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in Us)if(Us.hasOwnProperty(n)){var r=Us[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:hI(r)}}reportNonstrict(t,n,r){var i=this.strict;if(typeof i=="function"&&(i=i(t,n,r)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new re("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var i=this.strict;if(typeof i=="function")try{i=i(t,n,r)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var n=ge.protocolFromUrl(t.url);if(n==null)return!1;t.protocol=n}var r=typeof this.trust=="function"?this.trust(t):this.trust;return!!r}}class br{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return _n[fI[this.id]]}sub(){return _n[pI[this.id]]}fracNum(){return _n[mI[this.id]]}fracDen(){return _n[gI[this.id]]}cramp(){return _n[bI[this.id]]}text(){return _n[yI[this.id]]}isTight(){return this.size>=2}}var sc=0,io=1,Ti=2,rr=3,Ha=4,Tn=5,Ni=6,Gt=7,_n=[new br(sc,0,!1),new br(io,0,!0),new br(Ti,1,!1),new br(rr,1,!0),new br(Ha,2,!1),new br(Tn,2,!0),new br(Ni,3,!1),new br(Gt,3,!0)],fI=[Ha,Tn,Ha,Tn,Ni,Gt,Ni,Gt],pI=[Tn,Tn,Tn,Tn,Gt,Gt,Gt,Gt],mI=[Ti,rr,Ha,Tn,Ni,Gt,Ni,Gt],gI=[rr,rr,Tn,Tn,Gt,Gt,Gt,Gt],bI=[io,io,rr,rr,Tn,Tn,Gt,Gt],yI=[sc,io,Ti,rr,Ti,rr,Ti,rr],ye={DISPLAY:_n[sc],TEXT:_n[Ti],SCRIPT:_n[Ha],SCRIPTSCRIPT:_n[Ni]},Rl=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function vI(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}var Vs=[];Rl.forEach(e=>e.blocks.forEach(t=>Vs.push(...t)));function d4(e){for(var t=0;t=Vs[t]&&e<=Vs[t+1])return!0;return!1}var ui=80,TI=function(t,n){return"M95,"+(622+t+n)+` +`)),f+=c.move(d),p(),f}function r(a,s,o){let u=a.value||"",l=1;for(t||l++;new RegExp("(^|[^$])"+"\\$".repeat(l)+"([^$]|$)").test(u);)l++;const c="$".repeat(l);/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^\$|\$$/.test(u))&&(u=" "+u+" ");let d=-1;for(;++d15?l="…"+o.slice(i-15,i):l=o.slice(0,i);var c;a+15":">","<":"<",'"':""","'":"'"},oI=/[&><"']/g;function uI(e){return String(e).replace(oI,t=>sI[t])}var c4=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},lI=function(t){var n=c4(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},cI=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},dI=function(t){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"},ge={contains:nI,deflt:rI,escape:uI,hyphenate:aI,getBaseElem:c4,isCharacterBox:lI,protocolFromUrl:dI},Us={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function hI(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class ac{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in Us)if(Us.hasOwnProperty(n)){var r=Us[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:hI(r)}}reportNonstrict(t,n,r){var i=this.strict;if(typeof i=="function"&&(i=i(t,n,r)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new re("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var i=this.strict;if(typeof i=="function")try{i=i(t,n,r)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var n=ge.protocolFromUrl(t.url);if(n==null)return!1;t.protocol=n}var r=typeof this.trust=="function"?this.trust(t):this.trust;return!!r}}class br{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return _n[fI[this.id]]}sub(){return _n[pI[this.id]]}fracNum(){return _n[mI[this.id]]}fracDen(){return _n[gI[this.id]]}cramp(){return _n[bI[this.id]]}text(){return _n[yI[this.id]]}isTight(){return this.size>=2}}var sc=0,io=1,Ti=2,rr=3,Ha=4,Tn=5,Ni=6,Gt=7,_n=[new br(sc,0,!1),new br(io,0,!0),new br(Ti,1,!1),new br(rr,1,!0),new br(Ha,2,!1),new br(Tn,2,!0),new br(Ni,3,!1),new br(Gt,3,!0)],fI=[Ha,Tn,Ha,Tn,Ni,Gt,Ni,Gt],pI=[Tn,Tn,Tn,Tn,Gt,Gt,Gt,Gt],mI=[Ti,rr,Ha,Tn,Ni,Gt,Ni,Gt],gI=[rr,rr,Tn,Tn,Gt,Gt,Gt,Gt],bI=[io,io,rr,rr,Tn,Tn,Gt,Gt],yI=[sc,io,Ti,rr,Ti,rr,Ti,rr],ye={DISPLAY:_n[sc],TEXT:_n[Ti],SCRIPT:_n[Ha],SCRIPTSCRIPT:_n[Ni]},Rl=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function vI(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}var Vs=[];Rl.forEach(e=>e.blocks.forEach(t=>Vs.push(...t)));function d4(e){for(var t=0;t=Vs[t]&&e<=Vs[t+1])return!0;return!1}var ui=80,TI=function(t,n){return"M95,"+(622+t+n)+` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 @@ -383,8 +383,8 @@ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6 c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, --470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};let es=class{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return ge.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),n=0;nn.toText();return this.children.map(t).join("")}};var Fn={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},ws={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Nf={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function RI(e,t){Fn[e]=t}function oc(e,t,n){if(!Fn[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=Fn[t][r];if(!i&&e[0]in Nf&&(r=Nf[e[0]].charCodeAt(0),i=Fn[t][r]),!i&&n==="text"&&d4(r)&&(i=Fn[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Au={};function MI(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Au[t]){var n=Au[t]={cssEmPerMu:ws.quad[t]/18};for(var r in ws)ws.hasOwnProperty(r)&&(n[r]=ws[r][t])}return Au[t]}var DI=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Rf=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Mf=function(t,n){return n.size<2?t:DI[t-1][n.size-1]};class er{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||er.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Rf[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new er(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Mf(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Rf[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=Mf(er.BASESIZE,t);return this.size===n&&this.textSize===er.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==er.BASESIZE?["sizing","reset-size"+this.size,"size"+er.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=MI(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}er.BASESIZE=6;var Ml={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},PI={ex:!0,em:!0,mu:!0},h4=function(t){return typeof t!="string"&&(t=t.unit),t in Ml||t in PI||t==="ex"},pt=function(t,n){var r;if(t.unit in Ml)r=Ml[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var i;if(n.style.isTight()?i=n.havingStyle(n.style.text()):i=n,t.unit==="ex")r=i.fontMetrics().xHeight;else if(t.unit==="em")r=i.fontMetrics().quad;else throw new re("Invalid unit: '"+t.unit+"'");i!==n&&(r*=i.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},ue=function(t){return+t.toFixed(4)+"em"},Ir=function(t){return t.filter(n=>n).join(" ")},f4=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var i=n.getColor();i&&(this.style.color=i)}},p4=function(t){var n=document.createElement(t);n.className=Ir(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&n.setAttribute(i,this.attributes[i]);for(var a=0;a/=\x00-\x1f]/,m4=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+ge.escape(Ir(this.classes))+'"');var r="";for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=ge.hyphenate(i)+":"+this.style[i]+";");r&&(n+=' style="'+ge.escape(r)+'"');for(var a in this.attributes)if(this.attributes.hasOwnProperty(a)){if(LI.test(a))throw new re("Invalid attribute name '"+a+"'");n+=" "+a+'="'+ge.escape(this.attributes[a])+'"'}n+=">";for(var s=0;s",n};class ts{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,f4.call(this,t,r,i),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return ge.contains(this.classes,t)}toNode(){return p4.call(this,"span")}toMarkup(){return m4.call(this,"span")}}class uc{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,f4.call(this,n,i),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return ge.contains(this.classes,t)}toNode(){return p4.call(this,"a")}toMarkup(){return m4.call(this,"a")}}class OI{constructor(t,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.style=r}hasClass(t){return ge.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t=''+ge.escape(this.alt)+'0&&(n=document.createElement("span"),n.style.marginRight=ue(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=Ir(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=ge.hyphenate(i)+":"+this.style[i]+";");r&&(t=!0,n+=' style="'+ge.escape(r)+'"');var a=ge.escape(this.text);return t?(n+=">",n+=a,n+="",n):a}}class cr{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var i=0;i':''}}class Dl{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t=" but got "+String(e)+".")}var FI={bin:1,close:1,inner:1,open:1,punct:1,rel:1},HI={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},rt={math:{},text:{}};function m(e,t,n,r,i,a){rt[e][i]={font:t,group:n,replace:r},a&&r&&(rt[e][r]=rt[e][i])}var g="math",Z="text",T="main",D="ams",dt="accent-token",he="bin",Xt="close",Fi="inner",be="mathord",Lt="op-token",mn="open",Mo="punct",L="rel",pr="spacing",F="textord";m(g,T,L,"≡","\\equiv",!0);m(g,T,L,"≺","\\prec",!0);m(g,T,L,"≻","\\succ",!0);m(g,T,L,"∼","\\sim",!0);m(g,T,L,"⊥","\\perp");m(g,T,L,"⪯","\\preceq",!0);m(g,T,L,"⪰","\\succeq",!0);m(g,T,L,"≃","\\simeq",!0);m(g,T,L,"∣","\\mid",!0);m(g,T,L,"≪","\\ll",!0);m(g,T,L,"≫","\\gg",!0);m(g,T,L,"≍","\\asymp",!0);m(g,T,L,"∥","\\parallel");m(g,T,L,"⋈","\\bowtie",!0);m(g,T,L,"⌣","\\smile",!0);m(g,T,L,"⊑","\\sqsubseteq",!0);m(g,T,L,"⊒","\\sqsupseteq",!0);m(g,T,L,"≐","\\doteq",!0);m(g,T,L,"⌢","\\frown",!0);m(g,T,L,"∋","\\ni",!0);m(g,T,L,"∝","\\propto",!0);m(g,T,L,"⊢","\\vdash",!0);m(g,T,L,"⊣","\\dashv",!0);m(g,T,L,"∋","\\owns");m(g,T,Mo,".","\\ldotp");m(g,T,Mo,"⋅","\\cdotp");m(g,T,F,"#","\\#");m(Z,T,F,"#","\\#");m(g,T,F,"&","\\&");m(Z,T,F,"&","\\&");m(g,T,F,"ℵ","\\aleph",!0);m(g,T,F,"∀","\\forall",!0);m(g,T,F,"ℏ","\\hbar",!0);m(g,T,F,"∃","\\exists",!0);m(g,T,F,"∇","\\nabla",!0);m(g,T,F,"♭","\\flat",!0);m(g,T,F,"ℓ","\\ell",!0);m(g,T,F,"♮","\\natural",!0);m(g,T,F,"♣","\\clubsuit",!0);m(g,T,F,"℘","\\wp",!0);m(g,T,F,"♯","\\sharp",!0);m(g,T,F,"♢","\\diamondsuit",!0);m(g,T,F,"ℜ","\\Re",!0);m(g,T,F,"♡","\\heartsuit",!0);m(g,T,F,"ℑ","\\Im",!0);m(g,T,F,"♠","\\spadesuit",!0);m(g,T,F,"§","\\S",!0);m(Z,T,F,"§","\\S");m(g,T,F,"¶","\\P",!0);m(Z,T,F,"¶","\\P");m(g,T,F,"†","\\dag");m(Z,T,F,"†","\\dag");m(Z,T,F,"†","\\textdagger");m(g,T,F,"‡","\\ddag");m(Z,T,F,"‡","\\ddag");m(Z,T,F,"‡","\\textdaggerdbl");m(g,T,Xt,"⎱","\\rmoustache",!0);m(g,T,mn,"⎰","\\lmoustache",!0);m(g,T,Xt,"⟯","\\rgroup",!0);m(g,T,mn,"⟮","\\lgroup",!0);m(g,T,he,"∓","\\mp",!0);m(g,T,he,"⊖","\\ominus",!0);m(g,T,he,"⊎","\\uplus",!0);m(g,T,he,"⊓","\\sqcap",!0);m(g,T,he,"∗","\\ast");m(g,T,he,"⊔","\\sqcup",!0);m(g,T,he,"◯","\\bigcirc",!0);m(g,T,he,"∙","\\bullet",!0);m(g,T,he,"‡","\\ddagger");m(g,T,he,"≀","\\wr",!0);m(g,T,he,"⨿","\\amalg");m(g,T,he,"&","\\And");m(g,T,L,"⟵","\\longleftarrow",!0);m(g,T,L,"⇐","\\Leftarrow",!0);m(g,T,L,"⟸","\\Longleftarrow",!0);m(g,T,L,"⟶","\\longrightarrow",!0);m(g,T,L,"⇒","\\Rightarrow",!0);m(g,T,L,"⟹","\\Longrightarrow",!0);m(g,T,L,"↔","\\leftrightarrow",!0);m(g,T,L,"⟷","\\longleftrightarrow",!0);m(g,T,L,"⇔","\\Leftrightarrow",!0);m(g,T,L,"⟺","\\Longleftrightarrow",!0);m(g,T,L,"↦","\\mapsto",!0);m(g,T,L,"⟼","\\longmapsto",!0);m(g,T,L,"↗","\\nearrow",!0);m(g,T,L,"↩","\\hookleftarrow",!0);m(g,T,L,"↪","\\hookrightarrow",!0);m(g,T,L,"↘","\\searrow",!0);m(g,T,L,"↼","\\leftharpoonup",!0);m(g,T,L,"⇀","\\rightharpoonup",!0);m(g,T,L,"↙","\\swarrow",!0);m(g,T,L,"↽","\\leftharpoondown",!0);m(g,T,L,"⇁","\\rightharpoondown",!0);m(g,T,L,"↖","\\nwarrow",!0);m(g,T,L,"⇌","\\rightleftharpoons",!0);m(g,D,L,"≮","\\nless",!0);m(g,D,L,"","\\@nleqslant");m(g,D,L,"","\\@nleqq");m(g,D,L,"⪇","\\lneq",!0);m(g,D,L,"≨","\\lneqq",!0);m(g,D,L,"","\\@lvertneqq");m(g,D,L,"⋦","\\lnsim",!0);m(g,D,L,"⪉","\\lnapprox",!0);m(g,D,L,"⊀","\\nprec",!0);m(g,D,L,"⋠","\\npreceq",!0);m(g,D,L,"⋨","\\precnsim",!0);m(g,D,L,"⪹","\\precnapprox",!0);m(g,D,L,"≁","\\nsim",!0);m(g,D,L,"","\\@nshortmid");m(g,D,L,"∤","\\nmid",!0);m(g,D,L,"⊬","\\nvdash",!0);m(g,D,L,"⊭","\\nvDash",!0);m(g,D,L,"⋪","\\ntriangleleft");m(g,D,L,"⋬","\\ntrianglelefteq",!0);m(g,D,L,"⊊","\\subsetneq",!0);m(g,D,L,"","\\@varsubsetneq");m(g,D,L,"⫋","\\subsetneqq",!0);m(g,D,L,"","\\@varsubsetneqq");m(g,D,L,"≯","\\ngtr",!0);m(g,D,L,"","\\@ngeqslant");m(g,D,L,"","\\@ngeqq");m(g,D,L,"⪈","\\gneq",!0);m(g,D,L,"≩","\\gneqq",!0);m(g,D,L,"","\\@gvertneqq");m(g,D,L,"⋧","\\gnsim",!0);m(g,D,L,"⪊","\\gnapprox",!0);m(g,D,L,"⊁","\\nsucc",!0);m(g,D,L,"⋡","\\nsucceq",!0);m(g,D,L,"⋩","\\succnsim",!0);m(g,D,L,"⪺","\\succnapprox",!0);m(g,D,L,"≆","\\ncong",!0);m(g,D,L,"","\\@nshortparallel");m(g,D,L,"∦","\\nparallel",!0);m(g,D,L,"⊯","\\nVDash",!0);m(g,D,L,"⋫","\\ntriangleright");m(g,D,L,"⋭","\\ntrianglerighteq",!0);m(g,D,L,"","\\@nsupseteqq");m(g,D,L,"⊋","\\supsetneq",!0);m(g,D,L,"","\\@varsupsetneq");m(g,D,L,"⫌","\\supsetneqq",!0);m(g,D,L,"","\\@varsupsetneqq");m(g,D,L,"⊮","\\nVdash",!0);m(g,D,L,"⪵","\\precneqq",!0);m(g,D,L,"⪶","\\succneqq",!0);m(g,D,L,"","\\@nsubseteqq");m(g,D,he,"⊴","\\unlhd");m(g,D,he,"⊵","\\unrhd");m(g,D,L,"↚","\\nleftarrow",!0);m(g,D,L,"↛","\\nrightarrow",!0);m(g,D,L,"⇍","\\nLeftarrow",!0);m(g,D,L,"⇏","\\nRightarrow",!0);m(g,D,L,"↮","\\nleftrightarrow",!0);m(g,D,L,"⇎","\\nLeftrightarrow",!0);m(g,D,L,"△","\\vartriangle");m(g,D,F,"ℏ","\\hslash");m(g,D,F,"▽","\\triangledown");m(g,D,F,"◊","\\lozenge");m(g,D,F,"Ⓢ","\\circledS");m(g,D,F,"®","\\circledR");m(Z,D,F,"®","\\circledR");m(g,D,F,"∡","\\measuredangle",!0);m(g,D,F,"∄","\\nexists");m(g,D,F,"℧","\\mho");m(g,D,F,"Ⅎ","\\Finv",!0);m(g,D,F,"⅁","\\Game",!0);m(g,D,F,"‵","\\backprime");m(g,D,F,"▲","\\blacktriangle");m(g,D,F,"▼","\\blacktriangledown");m(g,D,F,"■","\\blacksquare");m(g,D,F,"⧫","\\blacklozenge");m(g,D,F,"★","\\bigstar");m(g,D,F,"∢","\\sphericalangle",!0);m(g,D,F,"∁","\\complement",!0);m(g,D,F,"ð","\\eth",!0);m(Z,T,F,"ð","ð");m(g,D,F,"╱","\\diagup");m(g,D,F,"╲","\\diagdown");m(g,D,F,"□","\\square");m(g,D,F,"□","\\Box");m(g,D,F,"◊","\\Diamond");m(g,D,F,"¥","\\yen",!0);m(Z,D,F,"¥","\\yen",!0);m(g,D,F,"✓","\\checkmark",!0);m(Z,D,F,"✓","\\checkmark");m(g,D,F,"ℶ","\\beth",!0);m(g,D,F,"ℸ","\\daleth",!0);m(g,D,F,"ℷ","\\gimel",!0);m(g,D,F,"ϝ","\\digamma",!0);m(g,D,F,"ϰ","\\varkappa");m(g,D,mn,"┌","\\@ulcorner",!0);m(g,D,Xt,"┐","\\@urcorner",!0);m(g,D,mn,"└","\\@llcorner",!0);m(g,D,Xt,"┘","\\@lrcorner",!0);m(g,D,L,"≦","\\leqq",!0);m(g,D,L,"⩽","\\leqslant",!0);m(g,D,L,"⪕","\\eqslantless",!0);m(g,D,L,"≲","\\lesssim",!0);m(g,D,L,"⪅","\\lessapprox",!0);m(g,D,L,"≊","\\approxeq",!0);m(g,D,he,"⋖","\\lessdot");m(g,D,L,"⋘","\\lll",!0);m(g,D,L,"≶","\\lessgtr",!0);m(g,D,L,"⋚","\\lesseqgtr",!0);m(g,D,L,"⪋","\\lesseqqgtr",!0);m(g,D,L,"≑","\\doteqdot");m(g,D,L,"≓","\\risingdotseq",!0);m(g,D,L,"≒","\\fallingdotseq",!0);m(g,D,L,"∽","\\backsim",!0);m(g,D,L,"⋍","\\backsimeq",!0);m(g,D,L,"⫅","\\subseteqq",!0);m(g,D,L,"⋐","\\Subset",!0);m(g,D,L,"⊏","\\sqsubset",!0);m(g,D,L,"≼","\\preccurlyeq",!0);m(g,D,L,"⋞","\\curlyeqprec",!0);m(g,D,L,"≾","\\precsim",!0);m(g,D,L,"⪷","\\precapprox",!0);m(g,D,L,"⊲","\\vartriangleleft");m(g,D,L,"⊴","\\trianglelefteq");m(g,D,L,"⊨","\\vDash",!0);m(g,D,L,"⊪","\\Vvdash",!0);m(g,D,L,"⌣","\\smallsmile");m(g,D,L,"⌢","\\smallfrown");m(g,D,L,"≏","\\bumpeq",!0);m(g,D,L,"≎","\\Bumpeq",!0);m(g,D,L,"≧","\\geqq",!0);m(g,D,L,"⩾","\\geqslant",!0);m(g,D,L,"⪖","\\eqslantgtr",!0);m(g,D,L,"≳","\\gtrsim",!0);m(g,D,L,"⪆","\\gtrapprox",!0);m(g,D,he,"⋗","\\gtrdot");m(g,D,L,"⋙","\\ggg",!0);m(g,D,L,"≷","\\gtrless",!0);m(g,D,L,"⋛","\\gtreqless",!0);m(g,D,L,"⪌","\\gtreqqless",!0);m(g,D,L,"≖","\\eqcirc",!0);m(g,D,L,"≗","\\circeq",!0);m(g,D,L,"≜","\\triangleq",!0);m(g,D,L,"∼","\\thicksim");m(g,D,L,"≈","\\thickapprox");m(g,D,L,"⫆","\\supseteqq",!0);m(g,D,L,"⋑","\\Supset",!0);m(g,D,L,"⊐","\\sqsupset",!0);m(g,D,L,"≽","\\succcurlyeq",!0);m(g,D,L,"⋟","\\curlyeqsucc",!0);m(g,D,L,"≿","\\succsim",!0);m(g,D,L,"⪸","\\succapprox",!0);m(g,D,L,"⊳","\\vartriangleright");m(g,D,L,"⊵","\\trianglerighteq");m(g,D,L,"⊩","\\Vdash",!0);m(g,D,L,"∣","\\shortmid");m(g,D,L,"∥","\\shortparallel");m(g,D,L,"≬","\\between",!0);m(g,D,L,"⋔","\\pitchfork",!0);m(g,D,L,"∝","\\varpropto");m(g,D,L,"◀","\\blacktriangleleft");m(g,D,L,"∴","\\therefore",!0);m(g,D,L,"∍","\\backepsilon");m(g,D,L,"▶","\\blacktriangleright");m(g,D,L,"∵","\\because",!0);m(g,D,L,"⋘","\\llless");m(g,D,L,"⋙","\\gggtr");m(g,D,he,"⊲","\\lhd");m(g,D,he,"⊳","\\rhd");m(g,D,L,"≂","\\eqsim",!0);m(g,T,L,"⋈","\\Join");m(g,D,L,"≑","\\Doteq",!0);m(g,D,he,"∔","\\dotplus",!0);m(g,D,he,"∖","\\smallsetminus");m(g,D,he,"⋒","\\Cap",!0);m(g,D,he,"⋓","\\Cup",!0);m(g,D,he,"⩞","\\doublebarwedge",!0);m(g,D,he,"⊟","\\boxminus",!0);m(g,D,he,"⊞","\\boxplus",!0);m(g,D,he,"⋇","\\divideontimes",!0);m(g,D,he,"⋉","\\ltimes",!0);m(g,D,he,"⋊","\\rtimes",!0);m(g,D,he,"⋋","\\leftthreetimes",!0);m(g,D,he,"⋌","\\rightthreetimes",!0);m(g,D,he,"⋏","\\curlywedge",!0);m(g,D,he,"⋎","\\curlyvee",!0);m(g,D,he,"⊝","\\circleddash",!0);m(g,D,he,"⊛","\\circledast",!0);m(g,D,he,"⋅","\\centerdot");m(g,D,he,"⊺","\\intercal",!0);m(g,D,he,"⋒","\\doublecap");m(g,D,he,"⋓","\\doublecup");m(g,D,he,"⊠","\\boxtimes",!0);m(g,D,L,"⇢","\\dashrightarrow",!0);m(g,D,L,"⇠","\\dashleftarrow",!0);m(g,D,L,"⇇","\\leftleftarrows",!0);m(g,D,L,"⇆","\\leftrightarrows",!0);m(g,D,L,"⇚","\\Lleftarrow",!0);m(g,D,L,"↞","\\twoheadleftarrow",!0);m(g,D,L,"↢","\\leftarrowtail",!0);m(g,D,L,"↫","\\looparrowleft",!0);m(g,D,L,"⇋","\\leftrightharpoons",!0);m(g,D,L,"↶","\\curvearrowleft",!0);m(g,D,L,"↺","\\circlearrowleft",!0);m(g,D,L,"↰","\\Lsh",!0);m(g,D,L,"⇈","\\upuparrows",!0);m(g,D,L,"↿","\\upharpoonleft",!0);m(g,D,L,"⇃","\\downharpoonleft",!0);m(g,T,L,"⊶","\\origof",!0);m(g,T,L,"⊷","\\imageof",!0);m(g,D,L,"⊸","\\multimap",!0);m(g,D,L,"↭","\\leftrightsquigarrow",!0);m(g,D,L,"⇉","\\rightrightarrows",!0);m(g,D,L,"⇄","\\rightleftarrows",!0);m(g,D,L,"↠","\\twoheadrightarrow",!0);m(g,D,L,"↣","\\rightarrowtail",!0);m(g,D,L,"↬","\\looparrowright",!0);m(g,D,L,"↷","\\curvearrowright",!0);m(g,D,L,"↻","\\circlearrowright",!0);m(g,D,L,"↱","\\Rsh",!0);m(g,D,L,"⇊","\\downdownarrows",!0);m(g,D,L,"↾","\\upharpoonright",!0);m(g,D,L,"⇂","\\downharpoonright",!0);m(g,D,L,"⇝","\\rightsquigarrow",!0);m(g,D,L,"⇝","\\leadsto");m(g,D,L,"⇛","\\Rrightarrow",!0);m(g,D,L,"↾","\\restriction");m(g,T,F,"‘","`");m(g,T,F,"$","\\$");m(Z,T,F,"$","\\$");m(Z,T,F,"$","\\textdollar");m(g,T,F,"%","\\%");m(Z,T,F,"%","\\%");m(g,T,F,"_","\\_");m(Z,T,F,"_","\\_");m(Z,T,F,"_","\\textunderscore");m(g,T,F,"∠","\\angle",!0);m(g,T,F,"∞","\\infty",!0);m(g,T,F,"′","\\prime");m(g,T,F,"△","\\triangle");m(g,T,F,"Γ","\\Gamma",!0);m(g,T,F,"Δ","\\Delta",!0);m(g,T,F,"Θ","\\Theta",!0);m(g,T,F,"Λ","\\Lambda",!0);m(g,T,F,"Ξ","\\Xi",!0);m(g,T,F,"Π","\\Pi",!0);m(g,T,F,"Σ","\\Sigma",!0);m(g,T,F,"Υ","\\Upsilon",!0);m(g,T,F,"Φ","\\Phi",!0);m(g,T,F,"Ψ","\\Psi",!0);m(g,T,F,"Ω","\\Omega",!0);m(g,T,F,"A","Α");m(g,T,F,"B","Β");m(g,T,F,"E","Ε");m(g,T,F,"Z","Ζ");m(g,T,F,"H","Η");m(g,T,F,"I","Ι");m(g,T,F,"K","Κ");m(g,T,F,"M","Μ");m(g,T,F,"N","Ν");m(g,T,F,"O","Ο");m(g,T,F,"P","Ρ");m(g,T,F,"T","Τ");m(g,T,F,"X","Χ");m(g,T,F,"¬","\\neg",!0);m(g,T,F,"¬","\\lnot");m(g,T,F,"⊤","\\top");m(g,T,F,"⊥","\\bot");m(g,T,F,"∅","\\emptyset");m(g,D,F,"∅","\\varnothing");m(g,T,be,"α","\\alpha",!0);m(g,T,be,"β","\\beta",!0);m(g,T,be,"γ","\\gamma",!0);m(g,T,be,"δ","\\delta",!0);m(g,T,be,"ϵ","\\epsilon",!0);m(g,T,be,"ζ","\\zeta",!0);m(g,T,be,"η","\\eta",!0);m(g,T,be,"θ","\\theta",!0);m(g,T,be,"ι","\\iota",!0);m(g,T,be,"κ","\\kappa",!0);m(g,T,be,"λ","\\lambda",!0);m(g,T,be,"μ","\\mu",!0);m(g,T,be,"ν","\\nu",!0);m(g,T,be,"ξ","\\xi",!0);m(g,T,be,"ο","\\omicron",!0);m(g,T,be,"π","\\pi",!0);m(g,T,be,"ρ","\\rho",!0);m(g,T,be,"σ","\\sigma",!0);m(g,T,be,"τ","\\tau",!0);m(g,T,be,"υ","\\upsilon",!0);m(g,T,be,"ϕ","\\phi",!0);m(g,T,be,"χ","\\chi",!0);m(g,T,be,"ψ","\\psi",!0);m(g,T,be,"ω","\\omega",!0);m(g,T,be,"ε","\\varepsilon",!0);m(g,T,be,"ϑ","\\vartheta",!0);m(g,T,be,"ϖ","\\varpi",!0);m(g,T,be,"ϱ","\\varrho",!0);m(g,T,be,"ς","\\varsigma",!0);m(g,T,be,"φ","\\varphi",!0);m(g,T,he,"∗","*",!0);m(g,T,he,"+","+");m(g,T,he,"−","-",!0);m(g,T,he,"⋅","\\cdot",!0);m(g,T,he,"∘","\\circ",!0);m(g,T,he,"÷","\\div",!0);m(g,T,he,"±","\\pm",!0);m(g,T,he,"×","\\times",!0);m(g,T,he,"∩","\\cap",!0);m(g,T,he,"∪","\\cup",!0);m(g,T,he,"∖","\\setminus",!0);m(g,T,he,"∧","\\land");m(g,T,he,"∨","\\lor");m(g,T,he,"∧","\\wedge",!0);m(g,T,he,"∨","\\vee",!0);m(g,T,F,"√","\\surd");m(g,T,mn,"⟨","\\langle",!0);m(g,T,mn,"∣","\\lvert");m(g,T,mn,"∥","\\lVert");m(g,T,Xt,"?","?");m(g,T,Xt,"!","!");m(g,T,Xt,"⟩","\\rangle",!0);m(g,T,Xt,"∣","\\rvert");m(g,T,Xt,"∥","\\rVert");m(g,T,L,"=","=");m(g,T,L,":",":");m(g,T,L,"≈","\\approx",!0);m(g,T,L,"≅","\\cong",!0);m(g,T,L,"≥","\\ge");m(g,T,L,"≥","\\geq",!0);m(g,T,L,"←","\\gets");m(g,T,L,">","\\gt",!0);m(g,T,L,"∈","\\in",!0);m(g,T,L,"","\\@not");m(g,T,L,"⊂","\\subset",!0);m(g,T,L,"⊃","\\supset",!0);m(g,T,L,"⊆","\\subseteq",!0);m(g,T,L,"⊇","\\supseteq",!0);m(g,D,L,"⊈","\\nsubseteq",!0);m(g,D,L,"⊉","\\nsupseteq",!0);m(g,T,L,"⊨","\\models");m(g,T,L,"←","\\leftarrow",!0);m(g,T,L,"≤","\\le");m(g,T,L,"≤","\\leq",!0);m(g,T,L,"<","\\lt",!0);m(g,T,L,"→","\\rightarrow",!0);m(g,T,L,"→","\\to");m(g,D,L,"≱","\\ngeq",!0);m(g,D,L,"≰","\\nleq",!0);m(g,T,pr," ","\\ ");m(g,T,pr," ","\\space");m(g,T,pr," ","\\nobreakspace");m(Z,T,pr," ","\\ ");m(Z,T,pr," "," ");m(Z,T,pr," ","\\space");m(Z,T,pr," ","\\nobreakspace");m(g,T,pr,null,"\\nobreak");m(g,T,pr,null,"\\allowbreak");m(g,T,Mo,",",",");m(g,T,Mo,";",";");m(g,D,he,"⊼","\\barwedge",!0);m(g,D,he,"⊻","\\veebar",!0);m(g,T,he,"⊙","\\odot",!0);m(g,T,he,"⊕","\\oplus",!0);m(g,T,he,"⊗","\\otimes",!0);m(g,T,F,"∂","\\partial",!0);m(g,T,he,"⊘","\\oslash",!0);m(g,D,he,"⊚","\\circledcirc",!0);m(g,D,he,"⊡","\\boxdot",!0);m(g,T,he,"△","\\bigtriangleup");m(g,T,he,"▽","\\bigtriangledown");m(g,T,he,"†","\\dagger");m(g,T,he,"⋄","\\diamond");m(g,T,he,"⋆","\\star");m(g,T,he,"◃","\\triangleleft");m(g,T,he,"▹","\\triangleright");m(g,T,mn,"{","\\{");m(Z,T,F,"{","\\{");m(Z,T,F,"{","\\textbraceleft");m(g,T,Xt,"}","\\}");m(Z,T,F,"}","\\}");m(Z,T,F,"}","\\textbraceright");m(g,T,mn,"{","\\lbrace");m(g,T,Xt,"}","\\rbrace");m(g,T,mn,"[","\\lbrack",!0);m(Z,T,F,"[","\\lbrack",!0);m(g,T,Xt,"]","\\rbrack",!0);m(Z,T,F,"]","\\rbrack",!0);m(g,T,mn,"(","\\lparen",!0);m(g,T,Xt,")","\\rparen",!0);m(Z,T,F,"<","\\textless",!0);m(Z,T,F,">","\\textgreater",!0);m(g,T,mn,"⌊","\\lfloor",!0);m(g,T,Xt,"⌋","\\rfloor",!0);m(g,T,mn,"⌈","\\lceil",!0);m(g,T,Xt,"⌉","\\rceil",!0);m(g,T,F,"\\","\\backslash");m(g,T,F,"∣","|");m(g,T,F,"∣","\\vert");m(Z,T,F,"|","\\textbar",!0);m(g,T,F,"∥","\\|");m(g,T,F,"∥","\\Vert");m(Z,T,F,"∥","\\textbardbl");m(Z,T,F,"~","\\textasciitilde");m(Z,T,F,"\\","\\textbackslash");m(Z,T,F,"^","\\textasciicircum");m(g,T,L,"↑","\\uparrow",!0);m(g,T,L,"⇑","\\Uparrow",!0);m(g,T,L,"↓","\\downarrow",!0);m(g,T,L,"⇓","\\Downarrow",!0);m(g,T,L,"↕","\\updownarrow",!0);m(g,T,L,"⇕","\\Updownarrow",!0);m(g,T,Lt,"∐","\\coprod");m(g,T,Lt,"⋁","\\bigvee");m(g,T,Lt,"⋀","\\bigwedge");m(g,T,Lt,"⨄","\\biguplus");m(g,T,Lt,"⋂","\\bigcap");m(g,T,Lt,"⋃","\\bigcup");m(g,T,Lt,"∫","\\int");m(g,T,Lt,"∫","\\intop");m(g,T,Lt,"∬","\\iint");m(g,T,Lt,"∭","\\iiint");m(g,T,Lt,"∏","\\prod");m(g,T,Lt,"∑","\\sum");m(g,T,Lt,"⨂","\\bigotimes");m(g,T,Lt,"⨁","\\bigoplus");m(g,T,Lt,"⨀","\\bigodot");m(g,T,Lt,"∮","\\oint");m(g,T,Lt,"∯","\\oiint");m(g,T,Lt,"∰","\\oiiint");m(g,T,Lt,"⨆","\\bigsqcup");m(g,T,Lt,"∫","\\smallint");m(Z,T,Fi,"…","\\textellipsis");m(g,T,Fi,"…","\\mathellipsis");m(Z,T,Fi,"…","\\ldots",!0);m(g,T,Fi,"…","\\ldots",!0);m(g,T,Fi,"⋯","\\@cdots",!0);m(g,T,Fi,"⋱","\\ddots",!0);m(g,T,F,"⋮","\\varvdots");m(Z,T,F,"⋮","\\varvdots");m(g,T,dt,"ˊ","\\acute");m(g,T,dt,"ˋ","\\grave");m(g,T,dt,"¨","\\ddot");m(g,T,dt,"~","\\tilde");m(g,T,dt,"ˉ","\\bar");m(g,T,dt,"˘","\\breve");m(g,T,dt,"ˇ","\\check");m(g,T,dt,"^","\\hat");m(g,T,dt,"⃗","\\vec");m(g,T,dt,"˙","\\dot");m(g,T,dt,"˚","\\mathring");m(g,T,be,"","\\@imath");m(g,T,be,"","\\@jmath");m(g,T,F,"ı","ı");m(g,T,F,"ȷ","ȷ");m(Z,T,F,"ı","\\i",!0);m(Z,T,F,"ȷ","\\j",!0);m(Z,T,F,"ß","\\ss",!0);m(Z,T,F,"æ","\\ae",!0);m(Z,T,F,"œ","\\oe",!0);m(Z,T,F,"ø","\\o",!0);m(Z,T,F,"Æ","\\AE",!0);m(Z,T,F,"Œ","\\OE",!0);m(Z,T,F,"Ø","\\O",!0);m(Z,T,dt,"ˊ","\\'");m(Z,T,dt,"ˋ","\\`");m(Z,T,dt,"ˆ","\\^");m(Z,T,dt,"˜","\\~");m(Z,T,dt,"ˉ","\\=");m(Z,T,dt,"˘","\\u");m(Z,T,dt,"˙","\\.");m(Z,T,dt,"¸","\\c");m(Z,T,dt,"˚","\\r");m(Z,T,dt,"ˇ","\\v");m(Z,T,dt,"¨",'\\"');m(Z,T,dt,"˝","\\H");m(Z,T,dt,"◯","\\textcircled");var g4={"--":!0,"---":!0,"``":!0,"''":!0};m(Z,T,F,"–","--",!0);m(Z,T,F,"–","\\textendash");m(Z,T,F,"—","---",!0);m(Z,T,F,"—","\\textemdash");m(Z,T,F,"‘","`",!0);m(Z,T,F,"‘","\\textquoteleft");m(Z,T,F,"’","'",!0);m(Z,T,F,"’","\\textquoteright");m(Z,T,F,"“","``",!0);m(Z,T,F,"“","\\textquotedblleft");m(Z,T,F,"”","''",!0);m(Z,T,F,"”","\\textquotedblright");m(g,T,F,"°","\\degree",!0);m(Z,T,F,"°","\\degree");m(Z,T,F,"°","\\textdegree",!0);m(g,T,F,"£","\\pounds");m(g,T,F,"£","\\mathsterling",!0);m(Z,T,F,"£","\\pounds");m(Z,T,F,"£","\\textsterling",!0);m(g,D,F,"✠","\\maltese");m(Z,D,F,"✠","\\maltese");var Pf='0123456789/@."';for(var Cu=0;Cu0)return Mn(a,l,i,n,s.concat(c));if(u){var d,p;if(u==="boldsymbol"){var f=VI(a,i,n,s,r);d=f.fontName,p=[f.fontClass]}else o?(d=v4[u].fontName,p=[u]):(d=Is(u,n.fontWeight,n.fontShape),p=[u,n.fontWeight,n.fontShape]);if(Do(a,d,i).metrics)return Mn(a,d,i,n,s.concat(p));if(g4.hasOwnProperty(a)&&d.slice(0,10)==="Typewriter"){for(var b=[],y=0;y{if(Ir(e.classes)!==Ir(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},$I=e=>{for(var t=0;tn&&(n=s.height),s.depth>r&&(r=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=i},en=function(t,n,r,i){var a=new ts(t,n,r,i);return lc(a),a},b4=(e,t,n,r)=>new ts(e,t,n,r),WI=function(t,n,r){var i=en([t],[],n);return i.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),i.style.borderBottomWidth=ue(i.height),i.maxFontSize=1,i},YI=function(t,n,r,i){var a=new uc(t,n,r,i);return lc(a),a},y4=function(t){var n=new es(t);return lc(n),n},GI=function(t,n){return t instanceof es?en([],[t],n):t},XI=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],i=-n[0].shift-n[0].elem.depth,a=i,s=1;s{var n=en(["mspace"],[],t),r=pt(e,t);return n.style.marginRight=ue(r),n},Is=function(t,n,r){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return n==="textbf"&&r==="textit"?a="BoldItalic":n==="textbf"?a="Bold":n==="textit"?a="Italic":a="Regular",i+"-"+a},v4={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},T4={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},ZI=function(t,n){var[r,i,a]=T4[t],s=new Nr(r),o=new cr([s],{width:ue(i),height:ue(a),style:"width:"+ue(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),u=b4(["overlay"],[o],n);return u.height=a,u.style.height=ue(a),u.style.width=ue(i),u},j={fontMap:v4,makeSymbol:Mn,mathsym:UI,makeSpan:en,makeSvgSpan:b4,makeLineSpan:WI,makeAnchor:YI,makeFragment:y4,wrapFragment:GI,makeVList:KI,makeOrd:jI,makeGlue:QI,staticSvg:ZI,svgData:T4,tryCombineChars:$I},ft={number:3,unit:"mu"},Hr={number:4,unit:"mu"},Jn={number:5,unit:"mu"},JI={mord:{mop:ft,mbin:Hr,mrel:Jn,minner:ft},mop:{mord:ft,mop:ft,mrel:Jn,minner:ft},mbin:{mord:Hr,mop:Hr,mopen:Hr,minner:Hr},mrel:{mord:Jn,mop:Jn,mopen:Jn,minner:Jn},mopen:{},mclose:{mop:ft,mbin:Hr,mrel:Jn,minner:ft},mpunct:{mord:ft,mop:ft,mrel:Jn,mopen:ft,mclose:ft,mpunct:ft,minner:ft},minner:{mord:ft,mop:ft,mbin:Hr,mrel:Jn,mopen:ft,mpunct:ft,minner:ft}},eN={mord:{mop:ft},mop:{mord:ft,mop:ft},mbin:{},mrel:{},mopen:{},mclose:{mop:ft},mpunct:{},minner:{mop:ft}},x4={},so={},oo={};function ce(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},u=0;u{var S=y.classes[0],v=b.classes[0];S==="mbin"&&ge.contains(nN,v)?y.classes[0]="mord":v==="mbin"&&ge.contains(tN,S)&&(b.classes[0]="mord")},{node:d},p,f),Ff(a,(b,y)=>{var S=Ll(y),v=Ll(b),w=S&&v?b.hasClass("mtight")?eN[S][v]:JI[S][v]:null;if(w)return j.makeGlue(w,l)},{node:d},p,f),a},Ff=function e(t,n,r,i,a){i&&t.push(i);for(var s=0;sp=>{t.splice(d+1,0,p),s++})(s)}i&&t.pop()},E4=function(t){return t instanceof es||t instanceof uc||t instanceof ts&&t.hasClass("enclosing")?t:null},aN=function e(t,n){var r=E4(t);if(r){var i=r.children;if(i.length){if(n==="right")return e(i[i.length-1],"right");if(n==="left")return e(i[0],"left")}}return t},Ll=function(t,n){return t?(n&&(t=aN(t,n)),iN[t.classes[0]]||null):null},za=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return dr(n.concat(r))},We=function(t,n,r){if(!t)return dr();if(so[t.type]){var i=so[t.type](t,n);if(r&&n.size!==r.size){i=dr(n.sizingClasses(r),[i],n);var a=n.sizeMultiplier/r.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new re("Got group of unknown type: '"+t.type+"'")};function Ns(e,t){var n=dr(["base"],e,t),r=dr(["strut"]);return r.style.height=ue(n.height+n.depth),n.depth&&(r.style.verticalAlign=ue(-n.depth)),n.children.unshift(r),n}function Ol(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=Ot(e,t,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var a=[],s=[],o=0;o0&&(a.push(Ns(s,t)),s=[]),a.push(r[o]));s.length>0&&a.push(Ns(s,t));var l;n?(l=Ns(Ot(n,t,!0)),l.classes=["tag"],a.push(l)):i&&a.push(i);var c=dr(["katex-html"],a);if(c.setAttribute("aria-hidden","true"),l){var d=l.children[0];d.style.height=ue(c.height+c.depth),c.depth&&(d.style.verticalAlign=ue(-c.depth))}return c}function S4(e){return new es(e)}class dn{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=Ir(this.classes));for(var r=0;r0&&(t+=' class ="'+ge.escape(Ir(this.classes))+'"'),t+=">";for(var r=0;r",t}toText(){return this.children.map(t=>t.toText()).join("")}}class Hn{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return ge.escape(this.toText())}toText(){return this.text}}class sN{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",ue(this.width)),t}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var ne={MathNode:dn,TextNode:Hn,SpaceNode:sN,newDocumentFragment:S4},kn=function(t,n,r){return rt[n][t]&&rt[n][t].replace&&t.charCodeAt(0)!==55349&&!(g4.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=rt[n][t].replace),new ne.TextNode(t)},cc=function(t){return t.length===1?t[0]:new ne.MathNode("mrow",t)},dc=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var i=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathsfit")return"sans-serif-italic";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var a=t.text;if(ge.contains(["\\imath","\\jmath"],a))return null;rt[i][a]&&rt[i][a].replace&&(a=rt[i][a].replace);var s=j.fontMap[r].fontName;return oc(a,s,i)?j.fontMap[r].variant:null};function Ru(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Hn&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var n=e.children[0];return n instanceof Hn&&n.text===","}else return!1}var sn=function(t,n,r){if(t.length===1){var i=Je(t[0],n);return r&&i instanceof dn&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o=1&&(s.type==="mn"||Ru(s))){var l=u.children[0];l instanceof dn&&l.type==="mn"&&(l.children=[...s.children,...l.children],a.pop())}else if(s.type==="mi"&&s.children.length===1){var c=s.children[0];if(c instanceof Hn&&c.text==="̸"&&(u.type==="mo"||u.type==="mi"||u.type==="mn")){var d=u.children[0];d instanceof Hn&&d.text.length>0&&(d.text=d.text.slice(0,1)+"̸"+d.text.slice(1),a.pop())}}}a.push(u),s=u}return a},Rr=function(t,n,r){return cc(sn(t,n,r))},Je=function(t,n){if(!t)return new ne.MathNode("mrow");if(oo[t.type]){var r=oo[t.type](t,n);return r}else throw new re("Got group of unknown type: '"+t.type+"'")};function Hf(e,t,n,r,i){var a=sn(e,n),s;a.length===1&&a[0]instanceof dn&&ge.contains(["mrow","mtable"],a[0].type)?s=a[0]:s=new ne.MathNode("mrow",a);var o=new ne.MathNode("annotation",[new ne.TextNode(t)]);o.setAttribute("encoding","application/x-tex");var u=new ne.MathNode("semantics",[s,o]),l=new ne.MathNode("math",[u]);l.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&l.setAttribute("display","block");var c=i?"katex":"katex-mathml";return j.makeSpan([c],[l])}var w4=function(t){return new er({style:t.displayMode?ye.DISPLAY:ye.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},A4=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=j.makeSpan(r,[t])}return t},oN=function(t,n,r){var i=w4(r),a;if(r.output==="mathml")return Hf(t,n,i,r.displayMode,!0);if(r.output==="html"){var s=Ol(t,i);a=j.makeSpan(["katex"],[s])}else{var o=Hf(t,n,i,r.displayMode,!1),u=Ol(t,i);a=j.makeSpan(["katex"],[o,u])}return A4(a,r)},uN=function(t,n,r){var i=w4(r),a=Ol(t,i),s=j.makeSpan(["katex"],[a]);return A4(s,r)},lN={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},cN=function(t){var n=new ne.MathNode("mo",[new ne.TextNode(lN[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},dN={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},hN=function(t){return t.type==="ordgroup"?t.body.length:1},fN=function(t,n){function r(){var o=4e5,u=t.label.slice(1);if(ge.contains(["widehat","widecheck","widetilde","utilde"],u)){var l=t,c=hN(l.base),d,p,f;if(c>5)u==="widehat"||u==="widecheck"?(d=420,o=2364,f=.42,p=u+"4"):(d=312,o=2340,f=.34,p="tilde4");else{var b=[1,1,2,2,3,3][c];u==="widehat"||u==="widecheck"?(o=[0,1062,2364,2364,2364][b],d=[0,239,300,360,420][b],f=[0,.24,.3,.3,.36,.42][b],p=u+b):(o=[0,600,1033,2339,2340][b],d=[0,260,286,306,312][b],f=[0,.26,.286,.3,.306,.34][b],p="tilde"+b)}var y=new Nr(p),S=new cr([y],{width:"100%",height:ue(f),viewBox:"0 0 "+o+" "+d,preserveAspectRatio:"none"});return{span:j.makeSvgSpan([],[S],n),minWidth:0,height:f}}else{var v=[],w=dN[u],[x,k,M]=w,C=M/1e3,H=x.length,z,V;if(H===1){var P=w[3];z=["hide-tail"],V=[P]}else if(H===2)z=["halfarrow-left","halfarrow-right"],V=["xMinYMin","xMaxYMin"];else if(H===3)z=["brace-left","brace-center","brace-right"],V=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support - `+H+" children.");for(var $=0;$0&&(i.style.minWidth=ue(a)),i},pN=function(t,n,r,i,a){var s,o=t.height+t.depth+r+i;if(/fbox|color|angl/.test(n)){if(s=j.makeSpan(["stretchy",n],[],a),n==="fbox"){var u=a.color&&a.getColor();u&&(s.style.borderColor=u)}}else{var l=[];/^[bx]cancel$/.test(n)&&l.push(new Dl({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&l.push(new Dl({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new cr(l,{width:"100%",height:ue(o)});s=j.makeSvgSpan([],[c],a)}return s.height=o,s.style.height=ue(o),s},hr={encloseSpan:pN,mathMLnode:cN,svgSpan:fN};function Oe(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function hc(e){var t=Po(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Po(e){return e&&(e.type==="atom"||HI.hasOwnProperty(e.type))?e:null}var fc=(e,t)=>{var n,r,i;e&&e.type==="supsub"?(r=Oe(e.base,"accent"),n=r.base,e.base=n,i=BI(We(e,t)),e.base=r):(r=Oe(e,"accent"),n=r.base);var a=We(n,t.havingCrampedStyle()),s=r.isShifty&&ge.isCharacterBox(n),o=0;if(s){var u=ge.getBaseElem(n),l=We(u,t.havingCrampedStyle());o=Df(l).skew}var c=r.label==="\\c",d=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),p;if(r.isStretchy)p=hr.svgSpan(r,t),p=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:p,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+ue(2*o)+")",marginLeft:ue(2*o)}:void 0}]},t);else{var f,b;r.label==="\\vec"?(f=j.staticSvg("vec",t),b=j.svgData.vec[1]):(f=j.makeOrd({mode:r.mode,text:r.label},t,"textord"),f=Df(f),f.italic=0,b=f.width,c&&(d+=f.depth)),p=j.makeSpan(["accent-body"],[f]);var y=r.label==="\\textcircled";y&&(p.classes.push("accent-full"),d=a.height);var S=o;y||(S-=b/2),p.style.left=ue(S),r.label==="\\textcircled"&&(p.style.top=".2em"),p=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-d},{type:"elem",elem:p}]},t)}var v=j.makeSpan(["mord","accent"],[p],t);return i?(i.children[0]=v,i.height=Math.max(v.height,i.height),i.classes[0]="mord",i):v},C4=(e,t)=>{var n=e.isStretchy?hr.mathMLnode(e.label):new ne.MathNode("mo",[kn(e.label,e.mode)]),r=new ne.MathNode("mover",[Je(e.base,t),n]);return r.setAttribute("accent","true"),r},mN=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));ce({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=uo(t[0]),r=!mN.test(e.funcName),i=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:fc,mathmlBuilder:C4});ce({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:fc,mathmlBuilder:C4});ce({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=We(e.base,t),r=hr.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,a=j.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return j.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var n=hr.mathMLnode(e.label),r=new ne.MathNode("munder",[Je(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var Rs=e=>{var t=new ne.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ce({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=j.wrapFragment(We(e.body,r,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;e.below&&(r=t.havingStyle(n.sub()),s=j.wrapFragment(We(e.below,r,t),t),s.classes.push(a+"-arrow-pad"));var o=hr.svgSpan(e,t),u=-t.fontMetrics().axisHeight+.5*o.height,l=-t.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(l-=i.depth);var c;if(s){var d=-t.fontMetrics().axisHeight+s.height+.5*o.height+.111;c=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:o,shift:u},{type:"elem",elem:s,shift:d}]},t)}else c=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:o,shift:u}]},t);return c.children[0].children[0].children[1].classes.push("svg-align"),j.makeSpan(["mrel","x-arrow"],[c],t)},mathmlBuilder(e,t){var n=hr.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var i=Rs(Je(e.body,t));if(e.below){var a=Rs(Je(e.below,t));r=new ne.MathNode("munderover",[n,a,i])}else r=new ne.MathNode("mover",[n,i])}else if(e.below){var s=Rs(Je(e.below,t));r=new ne.MathNode("munder",[n,s])}else r=Rs(),r=new ne.MathNode("mover",[n,r]);return r}});var gN=j.makeSpan;function k4(e,t){var n=Ot(e.body,t,!0);return gN([e.mclass],n,t)}function I4(e,t){var n,r=sn(e.body,t);return e.mclass==="minner"?n=new ne.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new ne.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new ne.MathNode("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}ce({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:It(i),isCharacterBox:ge.isCharacterBox(i)}},htmlBuilder:k4,mathmlBuilder:I4});var Lo=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};ce({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:Lo(t[0]),body:It(t[1]),isCharacterBox:ge.isCharacterBox(t[1])}}});ce({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],s;r!=="\\stackrel"?s=Lo(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:It(i)},u={type:"supsub",mode:a.mode,base:o,sup:r==="\\underset"?null:a,sub:r==="\\underset"?a:null};return{type:"mclass",mode:n.mode,mclass:s,body:[u],isCharacterBox:ge.isCharacterBox(u)}},htmlBuilder:k4,mathmlBuilder:I4});ce({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:Lo(t[0]),body:It(t[0])}},htmlBuilder(e,t){var n=Ot(e.body,t,!0),r=j.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=sn(e.body,t),r=new ne.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var bN={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},zf=()=>({type:"styling",body:[],mode:"math",style:"display"}),Uf=e=>e.type==="textord"&&e.text==="@",yN=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function vN(e,t,n){var r=bN[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=n.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:r,mode:"math",family:"rel"},s=n.callFunction("\\Big",[a],[]),o=n.callFunction("\\\\cdright",[t[1]],[]),u={type:"ordgroup",mode:"math",body:[i,s,o]};return n.callFunction("\\\\cdparent",[u],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var l={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[l],[])}default:return{type:"textord",text:" ",mode:"math"}}}function TN(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new re("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],i=[r],a=0;a-1))if("<>AV".indexOf(l)>-1)for(var d=0;d<2;d++){for(var p=!0,f=u+1;fAV=|." after @',s[u]);var b=vN(l,c,e),y={type:"styling",body:[b],mode:"math",style:"display"};r.push(y),o=zf()}a%2===0?r.push(o):r.shift(),r=[],i.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var S=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:S,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}ce({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=j.wrapFragment(We(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=ue(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new ne.MathNode("mrow",[Je(e.label,t)]);return n=new ne.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new ne.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});ce({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=j.wrapFragment(We(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new ne.MathNode("mrow",[Je(e.fragment,t)])}});ce({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=Oe(t[0],"ordgroup"),i=r.body,a="",s=0;s=1114111)throw new re("\\@char with invalid code point "+a);return u<=65535?l=String.fromCharCode(u):(u-=65536,l=String.fromCharCode((u>>10)+55296,(u&1023)+56320)),{type:"textord",mode:n.mode,text:l}}});var N4=(e,t)=>{var n=Ot(e.body,t.withColor(e.color),!1);return j.makeFragment(n)},R4=(e,t)=>{var n=sn(e.body,t.withColor(e.color)),r=new ne.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};ce({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=Oe(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:It(i)}},htmlBuilder:N4,mathmlBuilder:R4});ce({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=Oe(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:N4,mathmlBuilder:R4});ce({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:a,size:i&&Oe(i,"size").value}},htmlBuilder(e,t){var n=j.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=ue(pt(e.size,t)))),n},mathmlBuilder(e,t){var n=new ne.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",ue(pt(e.size,t)))),n}});var _l={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},M4=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new re("Expected a control sequence",e);return t},xN=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},D4=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i==null&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};ce({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(_l[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=_l[r.text]),Oe(t.parseFunction(),"internal");throw new re("Invalid token after macro prefix",r)}});ce({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new re("Expected a control sequence",r);for(var a=0,s,o=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),o[a].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new re('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==a+1)throw new re('Argument number "'+r.text+'" out of order');a++,o.push([])}else{if(r.text==="EOF")throw new re("Expected a macro definition");o[a].push(r.text)}var{tokens:u}=t.gullet.consumeArg();return s&&u.unshift(s),(n==="\\edef"||n==="\\xdef")&&(u=t.gullet.expandTokens(u),u.reverse()),t.gullet.macros.set(i,{tokens:u,numArgs:a,delimiters:o},n===_l[n]),{type:"internal",mode:t.mode}}});ce({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=M4(t.gullet.popToken());t.gullet.consumeSpaces();var i=xN(t);return D4(t,r,i,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});ce({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=M4(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return D4(t,r,a,n==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var sa=function(t,n,r){var i=rt.math[t]&&rt.math[t].replace,a=oc(i||t,n,r);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return a},pc=function(t,n,r,i){var a=r.havingBaseStyle(n),s=j.makeSpan(i.concat(a.sizingClasses(r)),[t],r),o=a.sizeMultiplier/r.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},P4=function(t,n,r){var i=n.havingBaseStyle(r),a=(1-n.sizeMultiplier/i.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=ue(a),t.height-=a,t.depth+=a},EN=function(t,n,r,i,a,s){var o=j.makeSymbol(t,"Main-Regular",a,i),u=pc(o,n,i,s);return r&&P4(u,i,n),u},SN=function(t,n,r,i){return j.makeSymbol(t,"Size"+n+"-Regular",r,i)},L4=function(t,n,r,i,a,s){var o=SN(t,n,a,i),u=pc(j.makeSpan(["delimsizing","size"+n],[o],i),ye.TEXT,i,s);return r&&P4(u,i,ye.TEXT),u},Mu=function(t,n,r){var i;n==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=j.makeSpan(["delimsizinginner",i],[j.makeSpan([],[j.makeSymbol(t,n,r)])]);return{type:"elem",elem:a}},Du=function(t,n,r){var i=Fn["Size4-Regular"][t.charCodeAt(0)]?Fn["Size4-Regular"][t.charCodeAt(0)][4]:Fn["Size1-Regular"][t.charCodeAt(0)][4],a=new Nr("inner",II(t,Math.round(1e3*n))),s=new cr([a],{width:ue(i),height:ue(n),style:"width:"+ue(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),o=j.makeSvgSpan([],[s],r);return o.height=n,o.style.height=ue(n),o.style.width=ue(i),{type:"elem",elem:o}},Bl=.008,Ms={type:"kern",size:-1*Bl},wN=["|","\\lvert","\\rvert","\\vert"],AN=["\\|","\\lVert","\\rVert","\\Vert"],O4=function(t,n,r,i,a,s){var o,u,l,c,d="",p=0;o=l=c=t,u=null;var f="Size1-Regular";t==="\\uparrow"?l=c="⏐":t==="\\Uparrow"?l=c="‖":t==="\\downarrow"?o=l="⏐":t==="\\Downarrow"?o=l="‖":t==="\\updownarrow"?(o="\\uparrow",l="⏐",c="\\downarrow"):t==="\\Updownarrow"?(o="\\Uparrow",l="‖",c="\\Downarrow"):ge.contains(wN,t)?(l="∣",d="vert",p=333):ge.contains(AN,t)?(l="∥",d="doublevert",p=556):t==="["||t==="\\lbrack"?(o="⎡",l="⎢",c="⎣",f="Size4-Regular",d="lbrack",p=667):t==="]"||t==="\\rbrack"?(o="⎤",l="⎥",c="⎦",f="Size4-Regular",d="rbrack",p=667):t==="\\lfloor"||t==="⌊"?(l=o="⎢",c="⎣",f="Size4-Regular",d="lfloor",p=667):t==="\\lceil"||t==="⌈"?(o="⎡",l=c="⎢",f="Size4-Regular",d="lceil",p=667):t==="\\rfloor"||t==="⌋"?(l=o="⎥",c="⎦",f="Size4-Regular",d="rfloor",p=667):t==="\\rceil"||t==="⌉"?(o="⎤",l=c="⎥",f="Size4-Regular",d="rceil",p=667):t==="("||t==="\\lparen"?(o="⎛",l="⎜",c="⎝",f="Size4-Regular",d="lparen",p=875):t===")"||t==="\\rparen"?(o="⎞",l="⎟",c="⎠",f="Size4-Regular",d="rparen",p=875):t==="\\{"||t==="\\lbrace"?(o="⎧",u="⎨",c="⎩",l="⎪",f="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(o="⎫",u="⎬",c="⎭",l="⎪",f="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(o="⎧",c="⎩",l="⎪",f="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(o="⎫",c="⎭",l="⎪",f="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(o="⎧",c="⎭",l="⎪",f="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(o="⎫",c="⎩",l="⎪",f="Size4-Regular");var b=sa(o,f,a),y=b.height+b.depth,S=sa(l,f,a),v=S.height+S.depth,w=sa(c,f,a),x=w.height+w.depth,k=0,M=1;if(u!==null){var C=sa(u,f,a);k=C.height+C.depth,M=2}var H=y+x+k,z=Math.max(0,Math.ceil((n-H)/(M*v))),V=H+z*M*v,P=i.fontMetrics().axisHeight;r&&(P*=i.sizeMultiplier);var $=V/2-P,W=[];if(d.length>0){var G=V-y-x,q=Math.round(V*1e3),Y=NI(d,Math.round(G*1e3)),Q=new Nr(d,Y),ee=(p/1e3).toFixed(3)+"em",de=(q/1e3).toFixed(3)+"em",oe=new cr([Q],{width:ee,height:de,viewBox:"0 0 "+p+" "+q}),N=j.makeSvgSpan([],[oe],i);N.height=q/1e3,N.style.width=ee,N.style.height=de,W.push({type:"elem",elem:N})}else{if(W.push(Mu(c,f,a)),W.push(Ms),u===null){var Ce=V-y-x+2*Bl;W.push(Du(l,Ce,i))}else{var ve=(V-y-x-k)/2+2*Bl;W.push(Du(l,ve,i)),W.push(Ms),W.push(Mu(u,f,a)),W.push(Ms),W.push(Du(l,ve,i))}W.push(Ms),W.push(Mu(o,f,a))}var B=i.havingBaseStyle(ye.TEXT),xe=j.makeVList({positionType:"bottom",positionData:$,children:W},B);return pc(j.makeSpan(["delimsizing","mult"],[xe],B),ye.TEXT,i,s)},Pu=80,Lu=.08,Ou=function(t,n,r,i,a){var s=kI(t,i,r),o=new Nr(t,s),u=new cr([o],{width:"400em",height:ue(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return j.makeSvgSpan(["hide-tail"],[u],a)},CN=function(t,n){var r=n.havingBaseSizing(),i=H4("\\surd",t*r.sizeMultiplier,F4,r),a=r.sizeMultiplier,s=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),o,u=0,l=0,c=0,d;return i.type==="small"?(c=1e3+1e3*s+Pu,t<1?a=1:t<1.4&&(a=.7),u=(1+s+Lu)/a,l=(1+s)/a,o=Ou("sqrtMain",u,c,s,n),o.style.minWidth="0.853em",d=.833/a):i.type==="large"?(c=(1e3+Pu)*va[i.size],l=(va[i.size]+s)/a,u=(va[i.size]+s+Lu)/a,o=Ou("sqrtSize"+i.size,u,c,s,n),o.style.minWidth="1.02em",d=1/a):(u=t+s+Lu,l=t+s,c=Math.floor(1e3*t+s)+Pu,o=Ou("sqrtTall",u,c,s,n),o.style.minWidth="0.742em",d=1.056),o.height=l,o.style.height=ue(u),{span:o,advanceWidth:d,ruleWidth:(n.fontMetrics().sqrtRuleThickness+s)*a}},_4=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],kN=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],B4=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],va=[0,1.2,1.8,2.4,3],IN=function(t,n,r,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),ge.contains(_4,t)||ge.contains(B4,t))return L4(t,n,!1,r,i,a);if(ge.contains(kN,t))return O4(t,va[n],!1,r,i,a);throw new re("Illegal delimiter: '"+t+"'")},NN=[{type:"small",style:ye.SCRIPTSCRIPT},{type:"small",style:ye.SCRIPT},{type:"small",style:ye.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],RN=[{type:"small",style:ye.SCRIPTSCRIPT},{type:"small",style:ye.SCRIPT},{type:"small",style:ye.TEXT},{type:"stack"}],F4=[{type:"small",style:ye.SCRIPTSCRIPT},{type:"small",style:ye.SCRIPT},{type:"small",style:ye.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],MN=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},H4=function(t,n,r,i){for(var a=Math.min(2,3-i.style.size),s=a;sn)return r[s]}return r[r.length-1]},z4=function(t,n,r,i,a,s){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var o;ge.contains(B4,t)?o=NN:ge.contains(_4,t)?o=F4:o=RN;var u=H4(t,n,o,i);return u.type==="small"?EN(t,u.style,r,i,a,s):u.type==="large"?L4(t,u.size,r,i,a,s):O4(t,n,r,i,a,s)},DN=function(t,n,r,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,u=901,l=5/i.fontMetrics().ptPerEm,c=Math.max(n-o,r+o),d=Math.max(c/500*u,2*c-l);return z4(t,d,!0,i,a,s)},ir={sqrtImage:CN,sizedDelim:IN,sizeToMaxHeight:va,customSizedDelim:z4,leftRightDelim:DN},Vf={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},PN=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Oo(e,t){var n=Po(e);if(n&&ge.contains(PN,n.text))return n;throw n?new re("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new re("Invalid delimiter type '"+e.type+"'",e)}ce({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=Oo(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Vf[e.funcName].size,mclass:Vf[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?j.makeSpan([e.mclass]):ir.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(kn(e.delim,e.mode));var n=new ne.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=ue(ir.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function jf(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ce({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new re("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Oo(t[0],e).text,color:n}}});ce({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Oo(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=Oe(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{jf(e);for(var n=Ot(e.body,t,!0,["mopen","mclose"]),r=0,i=0,a=!1,s=0;s{jf(e);var n=sn(e.body,t);if(e.left!=="."){var r=new ne.MathNode("mo",[kn(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var i=new ne.MathNode("mo",[kn(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return cc(n)}});ce({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Oo(t[0],e);if(!e.parser.leftrightDepth)throw new re("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=za(t,[]);else{n=ir.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?kn("|","text"):kn(e.delim,e.mode),r=new ne.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var mc=(e,t)=>{var n=j.wrapFragment(We(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,s=0,o=ge.isCharacterBox(e.body);if(r==="sout")a=j.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,s=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var u=pt({number:.6,unit:"pt"},t),l=pt({number:.35,unit:"ex"},t),c=t.havingBaseSizing();i=i/c.sizeMultiplier;var d=n.height+n.depth+u+l;n.style.paddingLeft=ue(d/2+u);var p=Math.floor(1e3*d*i),f=AI(p),b=new cr([new Nr("phase",f)],{width:"400em",height:ue(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});a=j.makeSvgSpan(["hide-tail"],[b],t),a.style.height=ue(d),s=n.depth+u+l}else{/cancel/.test(r)?o||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var y=0,S=0,v=0;/box/.test(r)?(v=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),y=t.fontMetrics().fboxsep+(r==="colorbox"?0:v),S=y):r==="angl"?(v=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),y=4*v,S=Math.max(0,.25-n.depth)):(y=o?.2:0,S=y),a=hr.encloseSpan(n,r,y,S,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle="solid",a.style.borderWidth=ue(v)):r==="angl"&&v!==.049&&(a.style.borderTopWidth=ue(v),a.style.borderRightWidth=ue(v)),s=n.depth+S,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var w;if(e.backgroundColor)w=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:n,shift:0}]},t);else{var x=/cancel|phase/.test(r)?["svg-align"]:[];w=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:x}]},t)}return/cancel/.test(r)&&(w.height=n.height,w.depth=n.depth),/cancel/.test(r)&&!o?j.makeSpan(["mord","cancel-lap"],[w],t):j.makeSpan(["mord"],[w],t)},gc=(e,t)=>{var n=0,r=new ne.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Je(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};ce({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=Oe(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:mc,mathmlBuilder:gc});ce({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=Oe(t[0],"color-token").color,s=Oe(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:mc,mathmlBuilder:gc});ce({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});ce({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:mc,mathmlBuilder:gc});ce({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var U4={};function Kn(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},u=0;u{var t=e.parser.settings;if(!t.displayMode)throw new re("{"+e.envName+"} can be used only in display mode.")};function bc(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function Lr(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:u,singleRow:l,emptySingleRow:c,maxNumCols:d,leqno:p}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var f=e.gullet.expandMacroAsText("\\arraystretch");if(f==null)s=1;else if(s=parseFloat(f),!s||s<0)throw new re("Invalid \\arraystretch: "+f)}e.gullet.beginGroup();var b=[],y=[b],S=[],v=[],w=u!=null?[]:void 0;function x(){u&&e.gullet.macros.set("\\@eqnsw","1",!0)}function k(){w&&(e.gullet.macros.get("\\df@tag")?(w.push(e.subparse([new Sn("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):w.push(!!u&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(x(),v.push(qf(e));;){var M=e.parseExpression(!1,l?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),M={type:"ordgroup",mode:e.mode,body:M},n&&(M={type:"styling",mode:e.mode,style:n,body:[M]}),b.push(M);var C=e.fetch().text;if(C==="&"){if(d&&b.length===d){if(l||o)throw new re("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(C==="\\end"){k(),b.length===1&&M.type==="styling"&&M.body[0].body.length===0&&(y.length>1||!c)&&y.pop(),v.length0&&(x+=.25),l.push({pos:x,isDashed:st[Nt]})}for(k(s[0]),r=0;r0&&($+=w,H<$&&(H=$),$=0)),t.addJot&&(H+=y),z.height=C,z.depth=H,x+=C,z.pos=x,x+=H+$,u[r]=z,k(s[r+1])}var W=x/2+n.fontMetrics().axisHeight,G=t.cols||[],q=[],Y,Q,ee=[];if(t.tags&&t.tags.some(st=>st))for(r=0;r=o)){var je=void 0;(i>0||t.hskipBeforeAndAfter)&&(je=ge.deflt(ve.pregap,p),je!==0&&(Y=j.makeSpan(["arraycolsep"],[]),Y.style.width=ue(je),q.push(Y)));var _e=[];for(r=0;r0){for(var Ne=j.makeLineSpan("hline",n,c),Ke=j.makeLineSpan("hdashline",n,c),Re=[{type:"elem",elem:u,shift:0}];l.length>0;){var $e=l.pop(),wt=$e.pos-W;$e.isDashed?Re.push({type:"elem",elem:Ke,shift:wt}):Re.push({type:"elem",elem:Ne,shift:wt})}u=j.makeVList({positionType:"individualShift",children:Re},n)}if(ee.length===0)return j.makeSpan(["mord"],[u],n);var ht=j.makeVList({positionType:"individualShift",children:ee},n);return ht=j.makeSpan(["tag"],[ht],n),j.makeFragment([u,ht])},LN={c:"center ",l:"left ",r:"right "},Zn=function(t,n){for(var r=[],i=new ne.MathNode("mtd",[],["mtr-glue"]),a=new ne.MathNode("mtd",[],["mml-eqn-num"]),s=0;s0){var b=t.cols,y="",S=!1,v=0,w=b.length;b[0].type==="separator"&&(p+="top ",v=1),b[b.length-1].type==="separator"&&(p+="bottom ",w-=1);for(var x=v;x0?"left ":"",p+=z[z.length-1].length>0?"right ":"";for(var V=1;V-1?"alignat":"align",a=t.envName==="split",s=Lr(t.parser,{cols:r,addJot:!0,autoTag:a?void 0:bc(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),o,u=0,l={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var c="",d=0;d0&&f&&(S=1),r[b]={type:"align",align:y,pregap:S,postgap:0}}return s.colSeparationType=f?"align":"alignat",s};Kn({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=Po(t[0]),r=n?[t[0]]:Oe(t[0],"ordgroup").body,i=r.map(function(s){var o=hc(s),u=o.text;if("lcr".indexOf(u)!==-1)return{type:"align",align:u};if(u==="|")return{type:"separator",separator:"|"};if(u===":")return{type:"separator",separator:":"};throw new re("Unknown column alignment: "+u,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Lr(e.parser,a,yc(e.envName))},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,"lcr".indexOf(n)===-1)throw new re("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var a=Lr(e.parser,r,yc(e.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=Lr(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=Po(t[0]),r=n?[t[0]]:Oe(t[0],"ordgroup").body,i=r.map(function(s){var o=hc(s),u=o.text;if("lc".indexOf(u)!==-1)return{type:"align",align:u};throw new re("Unknown column alignment: "+u,s)});if(i.length>1)throw new re("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=Lr(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new re("{subarray} can contain only one column");return a},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=Lr(e.parser,t,yc(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:j4,htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){ge.contains(["gather","gather*"],e.envName)&&_o(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:bc(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Lr(e.parser,t,"display")},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:j4,htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){_o(e);var t={autoTag:bc(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Lr(e.parser,t,"display")},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["CD"],props:{numArgs:0},handler(e){return _o(e),TN(e.parser)},htmlBuilder:Qn,mathmlBuilder:Zn});E("\\nonumber","\\gdef\\@eqnsw{0}");E("\\notag","\\nonumber");ce({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new re(e.funcName+" valid only within array environment")}});var $f=U4;ce({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!=="ordgroup")throw new re("Invalid environment name",i);for(var a="",s=0;s{var n=e.font,r=t.withFont(n);return We(e.body,r)},$4=(e,t)=>{var n=e.font,r=t.withFont(n);return Je(e.body,r)},Wf={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};ce({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=uo(t[0]),a=r;return a in Wf&&(a=Wf[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:q4,mathmlBuilder:$4});ce({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],i=ge.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:Lo(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});ce({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,s=n.parseExpression(!0,i),o="math"+r.slice(1);return{type:"font",mode:a,font:o,body:{type:"ordgroup",mode:n.mode,body:s}}},htmlBuilder:q4,mathmlBuilder:$4});var W4=(e,t)=>{var n=t;return e==="display"?n=n.id>=ye.SCRIPT.id?n.text():ye.DISPLAY:e==="text"&&n.size===ye.DISPLAY.size?n=ye.TEXT:e==="script"?n=ye.SCRIPT:e==="scriptscript"&&(n=ye.SCRIPTSCRIPT),n},vc=(e,t)=>{var n=W4(e.size,t.style),r=n.fracNum(),i=n.fracDen(),a;a=t.havingStyle(r);var s=We(e.numer,a,t);if(e.continued){var o=8.5/t.fontMetrics().ptPerEm,u=3.5/t.fontMetrics().ptPerEm;s.height=s.height0?b=3*p:b=7*p,y=t.fontMetrics().denom1):(d>0?(f=t.fontMetrics().num2,b=p):(f=t.fontMetrics().num3,b=3*p),y=t.fontMetrics().denom2);var S;if(c){var w=t.fontMetrics().axisHeight;f-s.depth-(w+.5*d){var n=new ne.MathNode("mfrac",[Je(e.numer,t),Je(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=pt(e.barSize,t);n.setAttribute("linethickness",ue(r))}var i=W4(e.size,t.style);if(i.size!==t.style.size){n=new ne.MathNode("mstyle",[n]);var a=i.size===ye.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",a),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var s=[];if(e.leftDelim!=null){var o=new ne.MathNode("mo",[new ne.TextNode(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),s.push(o)}if(s.push(n),e.rightDelim!=null){var u=new ne.MathNode("mo",[new ne.TextNode(e.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),s.push(u)}return cc(s)}return n};ce({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],s,o=null,u=null,l="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",u=")";break;case"\\\\bracefrac":s=!1,o="\\{",u="\\}";break;case"\\\\brackfrac":s=!1,o="[",u="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":l="display";break;case"\\tfrac":case"\\tbinom":l="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:s,leftDelim:o,rightDelim:u,size:l,barSize:null}},htmlBuilder:vc,mathmlBuilder:Tc});ce({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});ce({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:r}}});var Yf=["display","text","script","scriptscript"],Gf=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};ce({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=uo(t[0]),s=a.type==="atom"&&a.family==="open"?Gf(a.text):null,o=uo(t[1]),u=o.type==="atom"&&o.family==="close"?Gf(o.text):null,l=Oe(t[2],"size"),c,d=null;l.isBlank?c=!0:(d=l.value,c=d.number>0);var p="auto",f=t[3];if(f.type==="ordgroup"){if(f.body.length>0){var b=Oe(f.body[0],"textord");p=Yf[Number(b.text)]}}else f=Oe(f,"textord"),p=Yf[Number(f.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:c,barSize:d,leftDelim:s,rightDelim:u,size:p}},htmlBuilder:vc,mathmlBuilder:Tc});ce({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:Oe(t[0],"size").value,token:i}}});ce({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=cI(Oe(t[1],"infix").size),s=t[2],o=a.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:vc,mathmlBuilder:Tc});var Y4=(e,t)=>{var n=t.style,r,i;e.type==="supsub"?(r=e.sup?We(e.sup,t.havingStyle(n.sup()),t):We(e.sub,t.havingStyle(n.sub()),t),i=Oe(e.base,"horizBrace")):i=Oe(e,"horizBrace");var a=We(i.base,t.havingBaseStyle(ye.DISPLAY)),s=hr.svgSpan(i,t),o;if(i.isOver?(o=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t),o.children[0].children[0].children[1].classes.push("svg-align")):(o=j.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t),o.children[0].children[0].children[0].classes.push("svg-align")),r){var u=j.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t);i.isOver?o=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:r}]},t):o=j.makeVList({positionType:"bottom",positionData:u.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:u}]},t)}return j.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t)},ON=(e,t)=>{var n=hr.mathMLnode(e.label);return new ne.MathNode(e.isOver?"mover":"munder",[Je(e.base,t),n])};ce({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:Y4,mathmlBuilder:ON});ce({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=Oe(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:It(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=Ot(e.body,t,!1);return j.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=Rr(e.body,t);return n instanceof dn||(n=new dn("mrow",[n])),n.setAttribute("href",e.href),n}});ce({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=Oe(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:n,funcName:r,token:i}=e,a=Oe(t[0],"raw").string,s=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,u={};switch(r){case"\\htmlClass":u.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":u.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":u.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var l=a.split(","),c=0;c{var n=Ot(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=j.makeSpan(r,n,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>Rr(e.body,t)});ce({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:It(t[0]),mathml:It(t[1])}},htmlBuilder:(e,t)=>{var n=Ot(e.html,t,!1);return j.makeFragment(n)},mathmlBuilder:(e,t)=>Rr(e.mathml,t)});var _u=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new re("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!h4(r))throw new re("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};ce({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(n[0])for(var u=Oe(n[0],"raw").string,l=u.split(","),c=0;c{var n=pt(e.height,t),r=0;e.totalheight.number>0&&(r=pt(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=pt(e.width,t));var a={height:ue(n+r)};i>0&&(a.width=ue(i)),r>0&&(a.verticalAlign=ue(-r));var s=new OI(e.src,e.alt,a);return s.height=n,s.depth=r,s},mathmlBuilder:(e,t)=>{var n=new ne.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=pt(e.height,t),i=0;if(e.totalheight.number>0&&(i=pt(e.totalheight,t)-r,n.setAttribute("valign",ue(-i))),n.setAttribute("height",ue(r+i)),e.width.number>0){var a=pt(e.width,t);n.setAttribute("width",ue(a))}return n.setAttribute("src",e.src),n}});ce({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=Oe(t[0],"size");if(n.settings.strict){var a=r[1]==="m",s=i.value.unit==="mu";a?(s||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):s&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return j.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=pt(e.dimension,t);return new ne.SpaceNode(n)}});ce({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=j.makeSpan([],[We(e.body,t)]),n=j.makeSpan(["inner"],[n],t)):n=j.makeSpan(["inner"],[We(e.body,t)]);var r=j.makeSpan(["fix"],[]),i=j.makeSpan([e.alignment],[n,r],t),a=j.makeSpan(["strut"]);return a.style.height=ue(i.height+i.depth),i.depth&&(a.style.verticalAlign=ue(-i.depth)),i.children.unshift(a),i=j.makeSpan(["thinbox"],[i],t),j.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var n=new ne.MathNode("mpadded",[Je(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});ce({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode("math");var a=n==="\\("?"\\)":"$",s=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:s}}});ce({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new re("Mismatched "+e.funcName)}});var Xf=(e,t)=>{switch(t.style.size){case ye.DISPLAY.size:return e.display;case ye.TEXT.size:return e.text;case ye.SCRIPT.size:return e.script;case ye.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ce({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:It(t[0]),text:It(t[1]),script:It(t[2]),scriptscript:It(t[3])}},htmlBuilder:(e,t)=>{var n=Xf(e,t),r=Ot(n,t,!1);return j.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=Xf(e,t);return Rr(n,t)}});var G4=(e,t,n,r,i,a,s)=>{e=j.makeSpan([],[e]);var o=n&&ge.isCharacterBox(n),u,l;if(t){var c=We(t,r.havingStyle(i.sup()),r);l={elem:c,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-c.depth)}}if(n){var d=We(n,r.havingStyle(i.sub()),r);u={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var p;if(l&&u){var f=r.fontMetrics().bigOpSpacing5+u.elem.height+u.elem.depth+u.kern+e.depth+s;p=j.makeVList({positionType:"bottom",positionData:f,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:ue(-a)},{type:"kern",size:u.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:ue(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(u){var b=e.height-s;p=j.makeVList({positionType:"top",positionData:b,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:ue(-a)},{type:"kern",size:u.kern},{type:"elem",elem:e}]},r)}else if(l){var y=e.depth+s;p=j.makeVList({positionType:"bottom",positionData:y,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:ue(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var S=[p];if(u&&a!==0&&!o){var v=j.makeSpan(["mspace"],[],r);v.style.marginRight=ue(a),S.unshift(v)}return j.makeSpan(["mop","op-limits"],S,r)},X4=["\\smallint"],Hi=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=Oe(e.base,"op"),i=!0):a=Oe(e,"op");var s=t.style,o=!1;s.size===ye.DISPLAY.size&&a.symbol&&!ge.contains(X4,a.name)&&(o=!0);var u;if(a.symbol){var l=o?"Size2-Regular":"Size1-Regular",c="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(c=a.name.slice(1),a.name=c==="oiint"?"\\iint":"\\iiint"),u=j.makeSymbol(a.name,l,"math",t,["mop","op-symbol",o?"large-op":"small-op"]),c.length>0){var d=u.italic,p=j.staticSvg(c+"Size"+(o?"2":"1"),t);u=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:0},{type:"elem",elem:p,shift:o?.08:0}]},t),a.name="\\"+c,u.classes.unshift("mop"),u.italic=d}}else if(a.body){var f=Ot(a.body,t,!0);f.length===1&&f[0]instanceof Cn?(u=f[0],u.classes[0]="mop"):u=j.makeSpan(["mop"],f,t)}else{for(var b=[],y=1;y{var n;if(e.symbol)n=new dn("mo",[kn(e.name,e.mode)]),ge.contains(X4,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new dn("mo",sn(e.body,t));else{n=new dn("mi",[new Hn(e.name.slice(1))]);var r=new dn("mo",[kn("⁡","text")]);e.parentIsSupSub?n=new dn("mrow",[n,r]):n=S4([n,r])}return n},_N={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ce({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=_N[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Hi,mathmlBuilder:ns});ce({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:It(r)}},htmlBuilder:Hi,mathmlBuilder:ns});var BN={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ce({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Hi,mathmlBuilder:ns});ce({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Hi,mathmlBuilder:ns});ce({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=BN[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Hi,mathmlBuilder:ns});var K4=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=Oe(e.base,"operatorname"),i=!0):a=Oe(e,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(d=>{var p=d.text;return typeof p=="string"?{type:"textord",mode:d.mode,text:p}:d}),u=Ot(o,t.withFont("mathrm"),!0),l=0;l{for(var n=sn(e.body,t.withFont("mathrm")),r=!0,i=0;ic.toText()).join("");n=[new ne.TextNode(o)]}var u=new ne.MathNode("mi",n);u.setAttribute("mathvariant","normal");var l=new ne.MathNode("mo",[kn("⁡","text")]);return e.parentIsSupSub?new ne.MathNode("mrow",[u,l]):ne.newDocumentFragment([u,l])};ce({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"operatorname",mode:n.mode,body:It(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:K4,mathmlBuilder:FN});E("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");ti({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?j.makeFragment(Ot(e.body,t,!1)):j.makeSpan(["mord"],Ot(e.body,t,!0),t)},mathmlBuilder(e,t){return Rr(e.body,t,!0)}});ce({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=We(e.body,t.havingCrampedStyle()),r=j.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},t);return j.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){var n=new ne.MathNode("mo",[new ne.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new ne.MathNode("mover",[Je(e.body,t),n]);return r.setAttribute("accent","true"),r}});ce({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:It(r)}},htmlBuilder:(e,t)=>{var n=Ot(e.body,t.withPhantom(),!1);return j.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=sn(e.body,t);return new ne.MathNode("mphantom",n)}});ce({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=j.makeSpan([],[We(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r{var n=sn(It(e.body),t),r=new ne.MathNode("mphantom",n),i=new ne.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});ce({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=j.makeSpan(["inner"],[We(e.body,t.withPhantom())]),r=j.makeSpan(["fix"],[]);return j.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=sn(It(e.body),t),r=new ne.MathNode("mphantom",n),i=new ne.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});ce({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=Oe(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=We(e.body,t),r=pt(e.dy,t);return j.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new ne.MathNode("mpadded",[Je(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});ce({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});ce({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,i=n[0],a=Oe(t[0],"size"),s=Oe(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&Oe(i,"size").value,width:a.value,height:s.value}},htmlBuilder(e,t){var n=j.makeSpan(["mord","rule"],[],t),r=pt(e.width,t),i=pt(e.height,t),a=e.shift?pt(e.shift,t):0;return n.style.borderRightWidth=ue(r),n.style.borderTopWidth=ue(i),n.style.bottom=ue(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=pt(e.width,t),r=pt(e.height,t),i=e.shift?pt(e.shift,t):0,a=t.color&&t.getColor()||"black",s=new ne.MathNode("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",ue(n)),s.setAttribute("height",ue(r));var o=new ne.MathNode("mpadded",[s]);return i>=0?o.setAttribute("height",ue(i)):(o.setAttribute("height",ue(i)),o.setAttribute("depth",ue(-i))),o.setAttribute("voffset",ue(i)),o}});function Q4(e,t,n){for(var r=Ot(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a{var n=t.havingSize(e.size);return Q4(e.body,n,t)};ce({type:"sizing",names:Kf,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:Kf.indexOf(r)+1,body:a}},htmlBuilder:HN,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=sn(e.body,n),i=new ne.MathNode("mstyle",r);return i.setAttribute("mathsize",ue(n.sizeMultiplier)),i}});ce({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,s=n[0]&&Oe(n[0],"ordgroup");if(s)for(var o="",u=0;u{var n=j.makeSpan([],[We(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r{var n=new ne.MathNode("mpadded",[Je(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});ce({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=We(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=j.wrapFragment(n,t);var r=t.fontMetrics(),i=r.defaultRuleThickness,a=i;t.style.idn.height+n.depth+s&&(s=(s+d-n.height-n.depth)/2);var p=u.height-n.height-s-l;n.style.paddingLeft=ue(c);var f=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+p)},{type:"elem",elem:u},{type:"kern",size:l}]},t);if(e.index){var b=t.havingStyle(ye.SCRIPTSCRIPT),y=We(e.index,b,t),S=.6*(f.height-f.depth),v=j.makeVList({positionType:"shift",positionData:-S,children:[{type:"elem",elem:y}]},t),w=j.makeSpan(["root"],[v]);return j.makeSpan(["mord","sqrt"],[w,f],t)}else return j.makeSpan(["mord","sqrt"],[f],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new ne.MathNode("mroot",[Je(n,t),Je(r,t)]):new ne.MathNode("msqrt",[Je(n,t)])}});var Qf={display:ye.DISPLAY,text:ye.TEXT,script:ye.SCRIPT,scriptscript:ye.SCRIPTSCRIPT};ce({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),s=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(e,t){var n=Qf[e.style],r=t.havingStyle(n).withFont("");return Q4(e.body,r,t)},mathmlBuilder(e,t){var n=Qf[e.style],r=t.havingStyle(n),i=sn(e.body,r),a=new ne.MathNode("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var zN=function(t,n){var r=t.base;if(r)if(r.type==="op"){var i=r.limits&&(n.style.size===ye.DISPLAY.size||r.alwaysHandleSupSub);return i?Hi:null}else if(r.type==="operatorname"){var a=r.alwaysHandleSupSub&&(n.style.size===ye.DISPLAY.size||r.limits);return a?K4:null}else{if(r.type==="accent")return ge.isCharacterBox(r.base)?fc:null;if(r.type==="horizBrace"){var s=!t.sub;return s===r.isOver?Y4:null}else return null}else return null};ti({type:"supsub",htmlBuilder(e,t){var n=zN(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,s=We(r,t),o,u,l=t.fontMetrics(),c=0,d=0,p=r&&ge.isCharacterBox(r);if(i){var f=t.havingStyle(t.style.sup());o=We(i,f,t),p||(c=s.height-f.fontMetrics().supDrop*f.sizeMultiplier/t.sizeMultiplier)}if(a){var b=t.havingStyle(t.style.sub());u=We(a,b,t),p||(d=s.depth+b.fontMetrics().subDrop*b.sizeMultiplier/t.sizeMultiplier)}var y;t.style===ye.DISPLAY?y=l.sup1:t.style.cramped?y=l.sup3:y=l.sup2;var S=t.sizeMultiplier,v=ue(.5/l.ptPerEm/S),w=null;if(u){var x=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(s instanceof Cn||x)&&(w=ue(-s.italic))}var k;if(o&&u){c=Math.max(c,y,o.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var M=l.defaultRuleThickness,C=4*M;if(c-o.depth-(u.height-d)0&&(c+=H,d-=H)}var z=[{type:"elem",elem:u,shift:d,marginRight:v,marginLeft:w},{type:"elem",elem:o,shift:-c,marginRight:v}];k=j.makeVList({positionType:"individualShift",children:z},t)}else if(u){d=Math.max(d,l.sub1,u.height-.8*l.xHeight);var V=[{type:"elem",elem:u,marginLeft:w,marginRight:v}];k=j.makeVList({positionType:"shift",positionData:d,children:V},t)}else if(o)c=Math.max(c,y,o.depth+.25*l.xHeight),k=j.makeVList({positionType:"shift",positionData:-c,children:[{type:"elem",elem:o,marginRight:v}]},t);else throw new Error("supsub must have either sup or sub.");var P=Ll(s,"right")||"mord";return j.makeSpan([P],[s,j.makeSpan(["msupsub"],[k])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[Je(e.base,t)];e.sub&&a.push(Je(e.sub,t)),e.sup&&a.push(Je(e.sup,t));var s;if(n)s=r?"mover":"munder";else if(e.sub)if(e.sup){var l=e.base;l&&l.type==="op"&&l.limits&&t.style===ye.DISPLAY||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(t.style===ye.DISPLAY||l.limits)?s="munderover":s="msubsup"}else{var u=e.base;u&&u.type==="op"&&u.limits&&(t.style===ye.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||t.style===ye.DISPLAY)?s="munder":s="msub"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===ye.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===ye.DISPLAY)?s="mover":s="msup"}return new ne.MathNode(s,a)}});ti({type:"atom",htmlBuilder(e,t){return j.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new ne.MathNode("mo",[kn(e.text,e.mode)]);if(e.family==="bin"){var r=dc(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var Z4={mi:"italic",mn:"normal",mtext:"normal"};ti({type:"mathord",htmlBuilder(e,t){return j.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new ne.MathNode("mi",[kn(e.text,e.mode,t)]),r=dc(e,t)||"italic";return r!==Z4[n.type]&&n.setAttribute("mathvariant",r),n}});ti({type:"textord",htmlBuilder(e,t){return j.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=kn(e.text,e.mode,t),r=dc(e,t)||"normal",i;return e.mode==="text"?i=new ne.MathNode("mtext",[n]):/[0-9]/.test(e.text)?i=new ne.MathNode("mn",[n]):e.text==="\\prime"?i=new ne.MathNode("mo",[n]):i=new ne.MathNode("mi",[n]),r!==Z4[i.type]&&i.setAttribute("mathvariant",r),i}});var Bu={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Fu={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ti({type:"spacing",htmlBuilder(e,t){if(Fu.hasOwnProperty(e.text)){var n=Fu[e.text].className||"";if(e.mode==="text"){var r=j.makeOrd(e,t,"textord");return r.classes.push(n),r}else return j.makeSpan(["mspace",n],[j.mathsym(e.text,e.mode,t)],t)}else{if(Bu.hasOwnProperty(e.text))return j.makeSpan(["mspace",Bu[e.text]],[],t);throw new re('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(Fu.hasOwnProperty(e.text))n=new ne.MathNode("mtext",[new ne.TextNode(" ")]);else{if(Bu.hasOwnProperty(e.text))return new ne.MathNode("mspace");throw new re('Unknown type of space "'+e.text+'"')}return n}});var Zf=()=>{var e=new ne.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};ti({type:"tag",mathmlBuilder(e,t){var n=new ne.MathNode("mtable",[new ne.MathNode("mtr",[Zf(),new ne.MathNode("mtd",[Rr(e.body,t)]),Zf(),new ne.MathNode("mtd",[Rr(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var Jf={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},e1={"\\textbf":"textbf","\\textmd":"textmd"},UN={"\\textit":"textit","\\textup":"textup"},t1=(e,t)=>{var n=e.font;if(n){if(Jf[n])return t.withTextFontFamily(Jf[n]);if(e1[n])return t.withTextFontWeight(e1[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(UN[n])};ce({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"text",mode:n.mode,body:It(i),font:r}},htmlBuilder(e,t){var n=t1(e,t),r=Ot(e.body,n,!0);return j.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=t1(e,t);return Rr(e.body,n)}});ce({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=We(e.body,t),r=j.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=j.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return j.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){var n=new ne.MathNode("mo",[new ne.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new ne.MathNode("munder",[Je(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});ce({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=We(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return j.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new ne.MathNode("mpadded",[Je(e.body,t)],["vcenter"])}});ce({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new re("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=n1(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?"␣":" "),Sr=x4,J4=`[ \r +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};let es=class{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return ge.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),n=0;nn.toText();return this.children.map(t).join("")}};var Fn={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},ws={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Nf={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function RI(e,t){Fn[e]=t}function oc(e,t,n){if(!Fn[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=Fn[t][r];if(!i&&e[0]in Nf&&(r=Nf[e[0]].charCodeAt(0),i=Fn[t][r]),!i&&n==="text"&&d4(r)&&(i=Fn[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Au={};function MI(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Au[t]){var n=Au[t]={cssEmPerMu:ws.quad[t]/18};for(var r in ws)ws.hasOwnProperty(r)&&(n[r]=ws[r][t])}return Au[t]}var DI=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Rf=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Mf=function(t,n){return n.size<2?t:DI[t-1][n.size-1]};class er{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||er.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Rf[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new er(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Mf(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Rf[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=Mf(er.BASESIZE,t);return this.size===n&&this.textSize===er.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==er.BASESIZE?["sizing","reset-size"+this.size,"size"+er.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=MI(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}er.BASESIZE=6;var Ml={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},PI={ex:!0,em:!0,mu:!0},h4=function(t){return typeof t!="string"&&(t=t.unit),t in Ml||t in PI||t==="ex"},pt=function(t,n){var r;if(t.unit in Ml)r=Ml[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var i;if(n.style.isTight()?i=n.havingStyle(n.style.text()):i=n,t.unit==="ex")r=i.fontMetrics().xHeight;else if(t.unit==="em")r=i.fontMetrics().quad;else throw new re("Invalid unit: '"+t.unit+"'");i!==n&&(r*=i.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},ue=function(t){return+t.toFixed(4)+"em"},Ir=function(t){return t.filter(n=>n).join(" ")},f4=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var i=n.getColor();i&&(this.style.color=i)}},p4=function(t){var n=document.createElement(t);n.className=Ir(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&n.setAttribute(i,this.attributes[i]);for(var a=0;a/=\x00-\x1f]/,m4=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+ge.escape(Ir(this.classes))+'"');var r="";for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=ge.hyphenate(i)+":"+this.style[i]+";");r&&(n+=' style="'+ge.escape(r)+'"');for(var a in this.attributes)if(this.attributes.hasOwnProperty(a)){if(LI.test(a))throw new re("Invalid attribute name '"+a+"'");n+=" "+a+'="'+ge.escape(this.attributes[a])+'"'}n+=">";for(var s=0;s",n};class ts{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,f4.call(this,t,r,i),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return ge.contains(this.classes,t)}toNode(){return p4.call(this,"span")}toMarkup(){return m4.call(this,"span")}}class uc{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,f4.call(this,n,i),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return ge.contains(this.classes,t)}toNode(){return p4.call(this,"a")}toMarkup(){return m4.call(this,"a")}}class OI{constructor(t,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.style=r}hasClass(t){return ge.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t=''+ge.escape(this.alt)+'0&&(n=document.createElement("span"),n.style.marginRight=ue(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=Ir(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=ge.hyphenate(i)+":"+this.style[i]+";");r&&(t=!0,n+=' style="'+ge.escape(r)+'"');var a=ge.escape(this.text);return t?(n+=">",n+=a,n+="",n):a}}class cr{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var i=0;i':''}}class Dl{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t=" but got "+String(e)+".")}var FI={bin:1,close:1,inner:1,open:1,punct:1,rel:1},HI={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},rt={math:{},text:{}};function m(e,t,n,r,i,a){rt[e][i]={font:t,group:n,replace:r},a&&r&&(rt[e][r]=rt[e][i])}var g="math",Z="text",T="main",D="ams",dt="accent-token",he="bin",Xt="close",Fi="inner",be="mathord",Lt="op-token",mn="open",Mo="punct",L="rel",pr="spacing",F="textord";m(g,T,L,"≡","\\equiv",!0);m(g,T,L,"≺","\\prec",!0);m(g,T,L,"≻","\\succ",!0);m(g,T,L,"∼","\\sim",!0);m(g,T,L,"⊥","\\perp");m(g,T,L,"⪯","\\preceq",!0);m(g,T,L,"⪰","\\succeq",!0);m(g,T,L,"≃","\\simeq",!0);m(g,T,L,"∣","\\mid",!0);m(g,T,L,"≪","\\ll",!0);m(g,T,L,"≫","\\gg",!0);m(g,T,L,"≍","\\asymp",!0);m(g,T,L,"∥","\\parallel");m(g,T,L,"⋈","\\bowtie",!0);m(g,T,L,"⌣","\\smile",!0);m(g,T,L,"⊑","\\sqsubseteq",!0);m(g,T,L,"⊒","\\sqsupseteq",!0);m(g,T,L,"≐","\\doteq",!0);m(g,T,L,"⌢","\\frown",!0);m(g,T,L,"∋","\\ni",!0);m(g,T,L,"∝","\\propto",!0);m(g,T,L,"⊢","\\vdash",!0);m(g,T,L,"⊣","\\dashv",!0);m(g,T,L,"∋","\\owns");m(g,T,Mo,".","\\ldotp");m(g,T,Mo,"⋅","\\cdotp");m(g,T,F,"#","\\#");m(Z,T,F,"#","\\#");m(g,T,F,"&","\\&");m(Z,T,F,"&","\\&");m(g,T,F,"ℵ","\\aleph",!0);m(g,T,F,"∀","\\forall",!0);m(g,T,F,"ℏ","\\hbar",!0);m(g,T,F,"∃","\\exists",!0);m(g,T,F,"∇","\\nabla",!0);m(g,T,F,"♭","\\flat",!0);m(g,T,F,"ℓ","\\ell",!0);m(g,T,F,"♮","\\natural",!0);m(g,T,F,"♣","\\clubsuit",!0);m(g,T,F,"℘","\\wp",!0);m(g,T,F,"♯","\\sharp",!0);m(g,T,F,"♢","\\diamondsuit",!0);m(g,T,F,"ℜ","\\Re",!0);m(g,T,F,"♡","\\heartsuit",!0);m(g,T,F,"ℑ","\\Im",!0);m(g,T,F,"♠","\\spadesuit",!0);m(g,T,F,"§","\\S",!0);m(Z,T,F,"§","\\S");m(g,T,F,"¶","\\P",!0);m(Z,T,F,"¶","\\P");m(g,T,F,"†","\\dag");m(Z,T,F,"†","\\dag");m(Z,T,F,"†","\\textdagger");m(g,T,F,"‡","\\ddag");m(Z,T,F,"‡","\\ddag");m(Z,T,F,"‡","\\textdaggerdbl");m(g,T,Xt,"⎱","\\rmoustache",!0);m(g,T,mn,"⎰","\\lmoustache",!0);m(g,T,Xt,"⟯","\\rgroup",!0);m(g,T,mn,"⟮","\\lgroup",!0);m(g,T,he,"∓","\\mp",!0);m(g,T,he,"⊖","\\ominus",!0);m(g,T,he,"⊎","\\uplus",!0);m(g,T,he,"⊓","\\sqcap",!0);m(g,T,he,"∗","\\ast");m(g,T,he,"⊔","\\sqcup",!0);m(g,T,he,"◯","\\bigcirc",!0);m(g,T,he,"∙","\\bullet",!0);m(g,T,he,"‡","\\ddagger");m(g,T,he,"≀","\\wr",!0);m(g,T,he,"⨿","\\amalg");m(g,T,he,"&","\\And");m(g,T,L,"⟵","\\longleftarrow",!0);m(g,T,L,"⇐","\\Leftarrow",!0);m(g,T,L,"⟸","\\Longleftarrow",!0);m(g,T,L,"⟶","\\longrightarrow",!0);m(g,T,L,"⇒","\\Rightarrow",!0);m(g,T,L,"⟹","\\Longrightarrow",!0);m(g,T,L,"↔","\\leftrightarrow",!0);m(g,T,L,"⟷","\\longleftrightarrow",!0);m(g,T,L,"⇔","\\Leftrightarrow",!0);m(g,T,L,"⟺","\\Longleftrightarrow",!0);m(g,T,L,"↦","\\mapsto",!0);m(g,T,L,"⟼","\\longmapsto",!0);m(g,T,L,"↗","\\nearrow",!0);m(g,T,L,"↩","\\hookleftarrow",!0);m(g,T,L,"↪","\\hookrightarrow",!0);m(g,T,L,"↘","\\searrow",!0);m(g,T,L,"↼","\\leftharpoonup",!0);m(g,T,L,"⇀","\\rightharpoonup",!0);m(g,T,L,"↙","\\swarrow",!0);m(g,T,L,"↽","\\leftharpoondown",!0);m(g,T,L,"⇁","\\rightharpoondown",!0);m(g,T,L,"↖","\\nwarrow",!0);m(g,T,L,"⇌","\\rightleftharpoons",!0);m(g,D,L,"≮","\\nless",!0);m(g,D,L,"","\\@nleqslant");m(g,D,L,"","\\@nleqq");m(g,D,L,"⪇","\\lneq",!0);m(g,D,L,"≨","\\lneqq",!0);m(g,D,L,"","\\@lvertneqq");m(g,D,L,"⋦","\\lnsim",!0);m(g,D,L,"⪉","\\lnapprox",!0);m(g,D,L,"⊀","\\nprec",!0);m(g,D,L,"⋠","\\npreceq",!0);m(g,D,L,"⋨","\\precnsim",!0);m(g,D,L,"⪹","\\precnapprox",!0);m(g,D,L,"≁","\\nsim",!0);m(g,D,L,"","\\@nshortmid");m(g,D,L,"∤","\\nmid",!0);m(g,D,L,"⊬","\\nvdash",!0);m(g,D,L,"⊭","\\nvDash",!0);m(g,D,L,"⋪","\\ntriangleleft");m(g,D,L,"⋬","\\ntrianglelefteq",!0);m(g,D,L,"⊊","\\subsetneq",!0);m(g,D,L,"","\\@varsubsetneq");m(g,D,L,"⫋","\\subsetneqq",!0);m(g,D,L,"","\\@varsubsetneqq");m(g,D,L,"≯","\\ngtr",!0);m(g,D,L,"","\\@ngeqslant");m(g,D,L,"","\\@ngeqq");m(g,D,L,"⪈","\\gneq",!0);m(g,D,L,"≩","\\gneqq",!0);m(g,D,L,"","\\@gvertneqq");m(g,D,L,"⋧","\\gnsim",!0);m(g,D,L,"⪊","\\gnapprox",!0);m(g,D,L,"⊁","\\nsucc",!0);m(g,D,L,"⋡","\\nsucceq",!0);m(g,D,L,"⋩","\\succnsim",!0);m(g,D,L,"⪺","\\succnapprox",!0);m(g,D,L,"≆","\\ncong",!0);m(g,D,L,"","\\@nshortparallel");m(g,D,L,"∦","\\nparallel",!0);m(g,D,L,"⊯","\\nVDash",!0);m(g,D,L,"⋫","\\ntriangleright");m(g,D,L,"⋭","\\ntrianglerighteq",!0);m(g,D,L,"","\\@nsupseteqq");m(g,D,L,"⊋","\\supsetneq",!0);m(g,D,L,"","\\@varsupsetneq");m(g,D,L,"⫌","\\supsetneqq",!0);m(g,D,L,"","\\@varsupsetneqq");m(g,D,L,"⊮","\\nVdash",!0);m(g,D,L,"⪵","\\precneqq",!0);m(g,D,L,"⪶","\\succneqq",!0);m(g,D,L,"","\\@nsubseteqq");m(g,D,he,"⊴","\\unlhd");m(g,D,he,"⊵","\\unrhd");m(g,D,L,"↚","\\nleftarrow",!0);m(g,D,L,"↛","\\nrightarrow",!0);m(g,D,L,"⇍","\\nLeftarrow",!0);m(g,D,L,"⇏","\\nRightarrow",!0);m(g,D,L,"↮","\\nleftrightarrow",!0);m(g,D,L,"⇎","\\nLeftrightarrow",!0);m(g,D,L,"△","\\vartriangle");m(g,D,F,"ℏ","\\hslash");m(g,D,F,"▽","\\triangledown");m(g,D,F,"◊","\\lozenge");m(g,D,F,"Ⓢ","\\circledS");m(g,D,F,"®","\\circledR");m(Z,D,F,"®","\\circledR");m(g,D,F,"∡","\\measuredangle",!0);m(g,D,F,"∄","\\nexists");m(g,D,F,"℧","\\mho");m(g,D,F,"Ⅎ","\\Finv",!0);m(g,D,F,"⅁","\\Game",!0);m(g,D,F,"‵","\\backprime");m(g,D,F,"▲","\\blacktriangle");m(g,D,F,"▼","\\blacktriangledown");m(g,D,F,"■","\\blacksquare");m(g,D,F,"⧫","\\blacklozenge");m(g,D,F,"★","\\bigstar");m(g,D,F,"∢","\\sphericalangle",!0);m(g,D,F,"∁","\\complement",!0);m(g,D,F,"ð","\\eth",!0);m(Z,T,F,"ð","ð");m(g,D,F,"╱","\\diagup");m(g,D,F,"╲","\\diagdown");m(g,D,F,"□","\\square");m(g,D,F,"□","\\Box");m(g,D,F,"◊","\\Diamond");m(g,D,F,"¥","\\yen",!0);m(Z,D,F,"¥","\\yen",!0);m(g,D,F,"✓","\\checkmark",!0);m(Z,D,F,"✓","\\checkmark");m(g,D,F,"ℶ","\\beth",!0);m(g,D,F,"ℸ","\\daleth",!0);m(g,D,F,"ℷ","\\gimel",!0);m(g,D,F,"ϝ","\\digamma",!0);m(g,D,F,"ϰ","\\varkappa");m(g,D,mn,"┌","\\@ulcorner",!0);m(g,D,Xt,"┐","\\@urcorner",!0);m(g,D,mn,"└","\\@llcorner",!0);m(g,D,Xt,"┘","\\@lrcorner",!0);m(g,D,L,"≦","\\leqq",!0);m(g,D,L,"⩽","\\leqslant",!0);m(g,D,L,"⪕","\\eqslantless",!0);m(g,D,L,"≲","\\lesssim",!0);m(g,D,L,"⪅","\\lessapprox",!0);m(g,D,L,"≊","\\approxeq",!0);m(g,D,he,"⋖","\\lessdot");m(g,D,L,"⋘","\\lll",!0);m(g,D,L,"≶","\\lessgtr",!0);m(g,D,L,"⋚","\\lesseqgtr",!0);m(g,D,L,"⪋","\\lesseqqgtr",!0);m(g,D,L,"≑","\\doteqdot");m(g,D,L,"≓","\\risingdotseq",!0);m(g,D,L,"≒","\\fallingdotseq",!0);m(g,D,L,"∽","\\backsim",!0);m(g,D,L,"⋍","\\backsimeq",!0);m(g,D,L,"⫅","\\subseteqq",!0);m(g,D,L,"⋐","\\Subset",!0);m(g,D,L,"⊏","\\sqsubset",!0);m(g,D,L,"≼","\\preccurlyeq",!0);m(g,D,L,"⋞","\\curlyeqprec",!0);m(g,D,L,"≾","\\precsim",!0);m(g,D,L,"⪷","\\precapprox",!0);m(g,D,L,"⊲","\\vartriangleleft");m(g,D,L,"⊴","\\trianglelefteq");m(g,D,L,"⊨","\\vDash",!0);m(g,D,L,"⊪","\\Vvdash",!0);m(g,D,L,"⌣","\\smallsmile");m(g,D,L,"⌢","\\smallfrown");m(g,D,L,"≏","\\bumpeq",!0);m(g,D,L,"≎","\\Bumpeq",!0);m(g,D,L,"≧","\\geqq",!0);m(g,D,L,"⩾","\\geqslant",!0);m(g,D,L,"⪖","\\eqslantgtr",!0);m(g,D,L,"≳","\\gtrsim",!0);m(g,D,L,"⪆","\\gtrapprox",!0);m(g,D,he,"⋗","\\gtrdot");m(g,D,L,"⋙","\\ggg",!0);m(g,D,L,"≷","\\gtrless",!0);m(g,D,L,"⋛","\\gtreqless",!0);m(g,D,L,"⪌","\\gtreqqless",!0);m(g,D,L,"≖","\\eqcirc",!0);m(g,D,L,"≗","\\circeq",!0);m(g,D,L,"≜","\\triangleq",!0);m(g,D,L,"∼","\\thicksim");m(g,D,L,"≈","\\thickapprox");m(g,D,L,"⫆","\\supseteqq",!0);m(g,D,L,"⋑","\\Supset",!0);m(g,D,L,"⊐","\\sqsupset",!0);m(g,D,L,"≽","\\succcurlyeq",!0);m(g,D,L,"⋟","\\curlyeqsucc",!0);m(g,D,L,"≿","\\succsim",!0);m(g,D,L,"⪸","\\succapprox",!0);m(g,D,L,"⊳","\\vartriangleright");m(g,D,L,"⊵","\\trianglerighteq");m(g,D,L,"⊩","\\Vdash",!0);m(g,D,L,"∣","\\shortmid");m(g,D,L,"∥","\\shortparallel");m(g,D,L,"≬","\\between",!0);m(g,D,L,"⋔","\\pitchfork",!0);m(g,D,L,"∝","\\varpropto");m(g,D,L,"◀","\\blacktriangleleft");m(g,D,L,"∴","\\therefore",!0);m(g,D,L,"∍","\\backepsilon");m(g,D,L,"▶","\\blacktriangleright");m(g,D,L,"∵","\\because",!0);m(g,D,L,"⋘","\\llless");m(g,D,L,"⋙","\\gggtr");m(g,D,he,"⊲","\\lhd");m(g,D,he,"⊳","\\rhd");m(g,D,L,"≂","\\eqsim",!0);m(g,T,L,"⋈","\\Join");m(g,D,L,"≑","\\Doteq",!0);m(g,D,he,"∔","\\dotplus",!0);m(g,D,he,"∖","\\smallsetminus");m(g,D,he,"⋒","\\Cap",!0);m(g,D,he,"⋓","\\Cup",!0);m(g,D,he,"⩞","\\doublebarwedge",!0);m(g,D,he,"⊟","\\boxminus",!0);m(g,D,he,"⊞","\\boxplus",!0);m(g,D,he,"⋇","\\divideontimes",!0);m(g,D,he,"⋉","\\ltimes",!0);m(g,D,he,"⋊","\\rtimes",!0);m(g,D,he,"⋋","\\leftthreetimes",!0);m(g,D,he,"⋌","\\rightthreetimes",!0);m(g,D,he,"⋏","\\curlywedge",!0);m(g,D,he,"⋎","\\curlyvee",!0);m(g,D,he,"⊝","\\circleddash",!0);m(g,D,he,"⊛","\\circledast",!0);m(g,D,he,"⋅","\\centerdot");m(g,D,he,"⊺","\\intercal",!0);m(g,D,he,"⋒","\\doublecap");m(g,D,he,"⋓","\\doublecup");m(g,D,he,"⊠","\\boxtimes",!0);m(g,D,L,"⇢","\\dashrightarrow",!0);m(g,D,L,"⇠","\\dashleftarrow",!0);m(g,D,L,"⇇","\\leftleftarrows",!0);m(g,D,L,"⇆","\\leftrightarrows",!0);m(g,D,L,"⇚","\\Lleftarrow",!0);m(g,D,L,"↞","\\twoheadleftarrow",!0);m(g,D,L,"↢","\\leftarrowtail",!0);m(g,D,L,"↫","\\looparrowleft",!0);m(g,D,L,"⇋","\\leftrightharpoons",!0);m(g,D,L,"↶","\\curvearrowleft",!0);m(g,D,L,"↺","\\circlearrowleft",!0);m(g,D,L,"↰","\\Lsh",!0);m(g,D,L,"⇈","\\upuparrows",!0);m(g,D,L,"↿","\\upharpoonleft",!0);m(g,D,L,"⇃","\\downharpoonleft",!0);m(g,T,L,"⊶","\\origof",!0);m(g,T,L,"⊷","\\imageof",!0);m(g,D,L,"⊸","\\multimap",!0);m(g,D,L,"↭","\\leftrightsquigarrow",!0);m(g,D,L,"⇉","\\rightrightarrows",!0);m(g,D,L,"⇄","\\rightleftarrows",!0);m(g,D,L,"↠","\\twoheadrightarrow",!0);m(g,D,L,"↣","\\rightarrowtail",!0);m(g,D,L,"↬","\\looparrowright",!0);m(g,D,L,"↷","\\curvearrowright",!0);m(g,D,L,"↻","\\circlearrowright",!0);m(g,D,L,"↱","\\Rsh",!0);m(g,D,L,"⇊","\\downdownarrows",!0);m(g,D,L,"↾","\\upharpoonright",!0);m(g,D,L,"⇂","\\downharpoonright",!0);m(g,D,L,"⇝","\\rightsquigarrow",!0);m(g,D,L,"⇝","\\leadsto");m(g,D,L,"⇛","\\Rrightarrow",!0);m(g,D,L,"↾","\\restriction");m(g,T,F,"‘","`");m(g,T,F,"$","\\$");m(Z,T,F,"$","\\$");m(Z,T,F,"$","\\textdollar");m(g,T,F,"%","\\%");m(Z,T,F,"%","\\%");m(g,T,F,"_","\\_");m(Z,T,F,"_","\\_");m(Z,T,F,"_","\\textunderscore");m(g,T,F,"∠","\\angle",!0);m(g,T,F,"∞","\\infty",!0);m(g,T,F,"′","\\prime");m(g,T,F,"△","\\triangle");m(g,T,F,"Γ","\\Gamma",!0);m(g,T,F,"Δ","\\Delta",!0);m(g,T,F,"Θ","\\Theta",!0);m(g,T,F,"Λ","\\Lambda",!0);m(g,T,F,"Ξ","\\Xi",!0);m(g,T,F,"Π","\\Pi",!0);m(g,T,F,"Σ","\\Sigma",!0);m(g,T,F,"Υ","\\Upsilon",!0);m(g,T,F,"Φ","\\Phi",!0);m(g,T,F,"Ψ","\\Psi",!0);m(g,T,F,"Ω","\\Omega",!0);m(g,T,F,"A","Α");m(g,T,F,"B","Β");m(g,T,F,"E","Ε");m(g,T,F,"Z","Ζ");m(g,T,F,"H","Η");m(g,T,F,"I","Ι");m(g,T,F,"K","Κ");m(g,T,F,"M","Μ");m(g,T,F,"N","Ν");m(g,T,F,"O","Ο");m(g,T,F,"P","Ρ");m(g,T,F,"T","Τ");m(g,T,F,"X","Χ");m(g,T,F,"¬","\\neg",!0);m(g,T,F,"¬","\\lnot");m(g,T,F,"⊤","\\top");m(g,T,F,"⊥","\\bot");m(g,T,F,"∅","\\emptyset");m(g,D,F,"∅","\\varnothing");m(g,T,be,"α","\\alpha",!0);m(g,T,be,"β","\\beta",!0);m(g,T,be,"γ","\\gamma",!0);m(g,T,be,"δ","\\delta",!0);m(g,T,be,"ϵ","\\epsilon",!0);m(g,T,be,"ζ","\\zeta",!0);m(g,T,be,"η","\\eta",!0);m(g,T,be,"θ","\\theta",!0);m(g,T,be,"ι","\\iota",!0);m(g,T,be,"κ","\\kappa",!0);m(g,T,be,"λ","\\lambda",!0);m(g,T,be,"μ","\\mu",!0);m(g,T,be,"ν","\\nu",!0);m(g,T,be,"ξ","\\xi",!0);m(g,T,be,"ο","\\omicron",!0);m(g,T,be,"π","\\pi",!0);m(g,T,be,"ρ","\\rho",!0);m(g,T,be,"σ","\\sigma",!0);m(g,T,be,"τ","\\tau",!0);m(g,T,be,"υ","\\upsilon",!0);m(g,T,be,"ϕ","\\phi",!0);m(g,T,be,"χ","\\chi",!0);m(g,T,be,"ψ","\\psi",!0);m(g,T,be,"ω","\\omega",!0);m(g,T,be,"ε","\\varepsilon",!0);m(g,T,be,"ϑ","\\vartheta",!0);m(g,T,be,"ϖ","\\varpi",!0);m(g,T,be,"ϱ","\\varrho",!0);m(g,T,be,"ς","\\varsigma",!0);m(g,T,be,"φ","\\varphi",!0);m(g,T,he,"∗","*",!0);m(g,T,he,"+","+");m(g,T,he,"−","-",!0);m(g,T,he,"⋅","\\cdot",!0);m(g,T,he,"∘","\\circ",!0);m(g,T,he,"÷","\\div",!0);m(g,T,he,"±","\\pm",!0);m(g,T,he,"×","\\times",!0);m(g,T,he,"∩","\\cap",!0);m(g,T,he,"∪","\\cup",!0);m(g,T,he,"∖","\\setminus",!0);m(g,T,he,"∧","\\land");m(g,T,he,"∨","\\lor");m(g,T,he,"∧","\\wedge",!0);m(g,T,he,"∨","\\vee",!0);m(g,T,F,"√","\\surd");m(g,T,mn,"⟨","\\langle",!0);m(g,T,mn,"∣","\\lvert");m(g,T,mn,"∥","\\lVert");m(g,T,Xt,"?","?");m(g,T,Xt,"!","!");m(g,T,Xt,"⟩","\\rangle",!0);m(g,T,Xt,"∣","\\rvert");m(g,T,Xt,"∥","\\rVert");m(g,T,L,"=","=");m(g,T,L,":",":");m(g,T,L,"≈","\\approx",!0);m(g,T,L,"≅","\\cong",!0);m(g,T,L,"≥","\\ge");m(g,T,L,"≥","\\geq",!0);m(g,T,L,"←","\\gets");m(g,T,L,">","\\gt",!0);m(g,T,L,"∈","\\in",!0);m(g,T,L,"","\\@not");m(g,T,L,"⊂","\\subset",!0);m(g,T,L,"⊃","\\supset",!0);m(g,T,L,"⊆","\\subseteq",!0);m(g,T,L,"⊇","\\supseteq",!0);m(g,D,L,"⊈","\\nsubseteq",!0);m(g,D,L,"⊉","\\nsupseteq",!0);m(g,T,L,"⊨","\\models");m(g,T,L,"←","\\leftarrow",!0);m(g,T,L,"≤","\\le");m(g,T,L,"≤","\\leq",!0);m(g,T,L,"<","\\lt",!0);m(g,T,L,"→","\\rightarrow",!0);m(g,T,L,"→","\\to");m(g,D,L,"≱","\\ngeq",!0);m(g,D,L,"≰","\\nleq",!0);m(g,T,pr," ","\\ ");m(g,T,pr," ","\\space");m(g,T,pr," ","\\nobreakspace");m(Z,T,pr," ","\\ ");m(Z,T,pr," "," ");m(Z,T,pr," ","\\space");m(Z,T,pr," ","\\nobreakspace");m(g,T,pr,null,"\\nobreak");m(g,T,pr,null,"\\allowbreak");m(g,T,Mo,",",",");m(g,T,Mo,";",";");m(g,D,he,"⊼","\\barwedge",!0);m(g,D,he,"⊻","\\veebar",!0);m(g,T,he,"⊙","\\odot",!0);m(g,T,he,"⊕","\\oplus",!0);m(g,T,he,"⊗","\\otimes",!0);m(g,T,F,"∂","\\partial",!0);m(g,T,he,"⊘","\\oslash",!0);m(g,D,he,"⊚","\\circledcirc",!0);m(g,D,he,"⊡","\\boxdot",!0);m(g,T,he,"△","\\bigtriangleup");m(g,T,he,"▽","\\bigtriangledown");m(g,T,he,"†","\\dagger");m(g,T,he,"⋄","\\diamond");m(g,T,he,"⋆","\\star");m(g,T,he,"◃","\\triangleleft");m(g,T,he,"▹","\\triangleright");m(g,T,mn,"{","\\{");m(Z,T,F,"{","\\{");m(Z,T,F,"{","\\textbraceleft");m(g,T,Xt,"}","\\}");m(Z,T,F,"}","\\}");m(Z,T,F,"}","\\textbraceright");m(g,T,mn,"{","\\lbrace");m(g,T,Xt,"}","\\rbrace");m(g,T,mn,"[","\\lbrack",!0);m(Z,T,F,"[","\\lbrack",!0);m(g,T,Xt,"]","\\rbrack",!0);m(Z,T,F,"]","\\rbrack",!0);m(g,T,mn,"(","\\lparen",!0);m(g,T,Xt,")","\\rparen",!0);m(Z,T,F,"<","\\textless",!0);m(Z,T,F,">","\\textgreater",!0);m(g,T,mn,"⌊","\\lfloor",!0);m(g,T,Xt,"⌋","\\rfloor",!0);m(g,T,mn,"⌈","\\lceil",!0);m(g,T,Xt,"⌉","\\rceil",!0);m(g,T,F,"\\","\\backslash");m(g,T,F,"∣","|");m(g,T,F,"∣","\\vert");m(Z,T,F,"|","\\textbar",!0);m(g,T,F,"∥","\\|");m(g,T,F,"∥","\\Vert");m(Z,T,F,"∥","\\textbardbl");m(Z,T,F,"~","\\textasciitilde");m(Z,T,F,"\\","\\textbackslash");m(Z,T,F,"^","\\textasciicircum");m(g,T,L,"↑","\\uparrow",!0);m(g,T,L,"⇑","\\Uparrow",!0);m(g,T,L,"↓","\\downarrow",!0);m(g,T,L,"⇓","\\Downarrow",!0);m(g,T,L,"↕","\\updownarrow",!0);m(g,T,L,"⇕","\\Updownarrow",!0);m(g,T,Lt,"∐","\\coprod");m(g,T,Lt,"⋁","\\bigvee");m(g,T,Lt,"⋀","\\bigwedge");m(g,T,Lt,"⨄","\\biguplus");m(g,T,Lt,"⋂","\\bigcap");m(g,T,Lt,"⋃","\\bigcup");m(g,T,Lt,"∫","\\int");m(g,T,Lt,"∫","\\intop");m(g,T,Lt,"∬","\\iint");m(g,T,Lt,"∭","\\iiint");m(g,T,Lt,"∏","\\prod");m(g,T,Lt,"∑","\\sum");m(g,T,Lt,"⨂","\\bigotimes");m(g,T,Lt,"⨁","\\bigoplus");m(g,T,Lt,"⨀","\\bigodot");m(g,T,Lt,"∮","\\oint");m(g,T,Lt,"∯","\\oiint");m(g,T,Lt,"∰","\\oiiint");m(g,T,Lt,"⨆","\\bigsqcup");m(g,T,Lt,"∫","\\smallint");m(Z,T,Fi,"…","\\textellipsis");m(g,T,Fi,"…","\\mathellipsis");m(Z,T,Fi,"…","\\ldots",!0);m(g,T,Fi,"…","\\ldots",!0);m(g,T,Fi,"⋯","\\@cdots",!0);m(g,T,Fi,"⋱","\\ddots",!0);m(g,T,F,"⋮","\\varvdots");m(Z,T,F,"⋮","\\varvdots");m(g,T,dt,"ˊ","\\acute");m(g,T,dt,"ˋ","\\grave");m(g,T,dt,"¨","\\ddot");m(g,T,dt,"~","\\tilde");m(g,T,dt,"ˉ","\\bar");m(g,T,dt,"˘","\\breve");m(g,T,dt,"ˇ","\\check");m(g,T,dt,"^","\\hat");m(g,T,dt,"⃗","\\vec");m(g,T,dt,"˙","\\dot");m(g,T,dt,"˚","\\mathring");m(g,T,be,"","\\@imath");m(g,T,be,"","\\@jmath");m(g,T,F,"ı","ı");m(g,T,F,"ȷ","ȷ");m(Z,T,F,"ı","\\i",!0);m(Z,T,F,"ȷ","\\j",!0);m(Z,T,F,"ß","\\ss",!0);m(Z,T,F,"æ","\\ae",!0);m(Z,T,F,"œ","\\oe",!0);m(Z,T,F,"ø","\\o",!0);m(Z,T,F,"Æ","\\AE",!0);m(Z,T,F,"Œ","\\OE",!0);m(Z,T,F,"Ø","\\O",!0);m(Z,T,dt,"ˊ","\\'");m(Z,T,dt,"ˋ","\\`");m(Z,T,dt,"ˆ","\\^");m(Z,T,dt,"˜","\\~");m(Z,T,dt,"ˉ","\\=");m(Z,T,dt,"˘","\\u");m(Z,T,dt,"˙","\\.");m(Z,T,dt,"¸","\\c");m(Z,T,dt,"˚","\\r");m(Z,T,dt,"ˇ","\\v");m(Z,T,dt,"¨",'\\"');m(Z,T,dt,"˝","\\H");m(Z,T,dt,"◯","\\textcircled");var g4={"--":!0,"---":!0,"``":!0,"''":!0};m(Z,T,F,"–","--",!0);m(Z,T,F,"–","\\textendash");m(Z,T,F,"—","---",!0);m(Z,T,F,"—","\\textemdash");m(Z,T,F,"‘","`",!0);m(Z,T,F,"‘","\\textquoteleft");m(Z,T,F,"’","'",!0);m(Z,T,F,"’","\\textquoteright");m(Z,T,F,"“","``",!0);m(Z,T,F,"“","\\textquotedblleft");m(Z,T,F,"”","''",!0);m(Z,T,F,"”","\\textquotedblright");m(g,T,F,"°","\\degree",!0);m(Z,T,F,"°","\\degree");m(Z,T,F,"°","\\textdegree",!0);m(g,T,F,"£","\\pounds");m(g,T,F,"£","\\mathsterling",!0);m(Z,T,F,"£","\\pounds");m(Z,T,F,"£","\\textsterling",!0);m(g,D,F,"✠","\\maltese");m(Z,D,F,"✠","\\maltese");var Pf='0123456789/@."';for(var Cu=0;Cu0)return Mn(a,l,i,n,s.concat(c));if(u){var d,p;if(u==="boldsymbol"){var f=VI(a,i,n,s,r);d=f.fontName,p=[f.fontClass]}else o?(d=v4[u].fontName,p=[u]):(d=Is(u,n.fontWeight,n.fontShape),p=[u,n.fontWeight,n.fontShape]);if(Do(a,d,i).metrics)return Mn(a,d,i,n,s.concat(p));if(g4.hasOwnProperty(a)&&d.slice(0,10)==="Typewriter"){for(var b=[],y=0;y{if(Ir(e.classes)!==Ir(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},$I=e=>{for(var t=0;tn&&(n=s.height),s.depth>r&&(r=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=i},en=function(t,n,r,i){var a=new ts(t,n,r,i);return lc(a),a},b4=(e,t,n,r)=>new ts(e,t,n,r),WI=function(t,n,r){var i=en([t],[],n);return i.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),i.style.borderBottomWidth=ue(i.height),i.maxFontSize=1,i},YI=function(t,n,r,i){var a=new uc(t,n,r,i);return lc(a),a},y4=function(t){var n=new es(t);return lc(n),n},GI=function(t,n){return t instanceof es?en([],[t],n):t},XI=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],i=-n[0].shift-n[0].elem.depth,a=i,s=1;s{var n=en(["mspace"],[],t),r=pt(e,t);return n.style.marginRight=ue(r),n},Is=function(t,n,r){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return n==="textbf"&&r==="textit"?a="BoldItalic":n==="textbf"?a="Bold":n==="textit"?a="Italic":a="Regular",i+"-"+a},v4={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},T4={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},ZI=function(t,n){var[r,i,a]=T4[t],s=new Nr(r),o=new cr([s],{width:ue(i),height:ue(a),style:"width:"+ue(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),u=b4(["overlay"],[o],n);return u.height=a,u.style.height=ue(a),u.style.width=ue(i),u},j={fontMap:v4,makeSymbol:Mn,mathsym:UI,makeSpan:en,makeSvgSpan:b4,makeLineSpan:WI,makeAnchor:YI,makeFragment:y4,wrapFragment:GI,makeVList:KI,makeOrd:jI,makeGlue:QI,staticSvg:ZI,svgData:T4,tryCombineChars:$I},ft={number:3,unit:"mu"},Hr={number:4,unit:"mu"},Jn={number:5,unit:"mu"},JI={mord:{mop:ft,mbin:Hr,mrel:Jn,minner:ft},mop:{mord:ft,mop:ft,mrel:Jn,minner:ft},mbin:{mord:Hr,mop:Hr,mopen:Hr,minner:Hr},mrel:{mord:Jn,mop:Jn,mopen:Jn,minner:Jn},mopen:{},mclose:{mop:ft,mbin:Hr,mrel:Jn,minner:ft},mpunct:{mord:ft,mop:ft,mrel:Jn,mopen:ft,mclose:ft,mpunct:ft,minner:ft},minner:{mord:ft,mop:ft,mbin:Hr,mrel:Jn,mopen:ft,mpunct:ft,minner:ft}},eN={mord:{mop:ft},mop:{mord:ft,mop:ft},mbin:{},mrel:{},mopen:{},mclose:{mop:ft},mpunct:{},minner:{mop:ft}},x4={},so={},oo={};function ce(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},u=0;u{var S=y.classes[0],v=b.classes[0];S==="mbin"&&ge.contains(nN,v)?y.classes[0]="mord":v==="mbin"&&ge.contains(tN,S)&&(b.classes[0]="mord")},{node:d},p,f),Ff(a,(b,y)=>{var S=Ll(y),v=Ll(b),w=S&&v?b.hasClass("mtight")?eN[S][v]:JI[S][v]:null;if(w)return j.makeGlue(w,l)},{node:d},p,f),a},Ff=function e(t,n,r,i,a){i&&t.push(i);for(var s=0;sp=>{t.splice(d+1,0,p),s++})(s)}i&&t.pop()},E4=function(t){return t instanceof es||t instanceof uc||t instanceof ts&&t.hasClass("enclosing")?t:null},aN=function e(t,n){var r=E4(t);if(r){var i=r.children;if(i.length){if(n==="right")return e(i[i.length-1],"right");if(n==="left")return e(i[0],"left")}}return t},Ll=function(t,n){return t?(n&&(t=aN(t,n)),iN[t.classes[0]]||null):null},za=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return dr(n.concat(r))},We=function(t,n,r){if(!t)return dr();if(so[t.type]){var i=so[t.type](t,n);if(r&&n.size!==r.size){i=dr(n.sizingClasses(r),[i],n);var a=n.sizeMultiplier/r.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new re("Got group of unknown type: '"+t.type+"'")};function Ns(e,t){var n=dr(["base"],e,t),r=dr(["strut"]);return r.style.height=ue(n.height+n.depth),n.depth&&(r.style.verticalAlign=ue(-n.depth)),n.children.unshift(r),n}function Ol(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=Ot(e,t,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var a=[],s=[],o=0;o0&&(a.push(Ns(s,t)),s=[]),a.push(r[o]));s.length>0&&a.push(Ns(s,t));var l;n?(l=Ns(Ot(n,t,!0)),l.classes=["tag"],a.push(l)):i&&a.push(i);var c=dr(["katex-html"],a);if(c.setAttribute("aria-hidden","true"),l){var d=l.children[0];d.style.height=ue(c.height+c.depth),c.depth&&(d.style.verticalAlign=ue(-c.depth))}return c}function S4(e){return new es(e)}class dn{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=Ir(this.classes));for(var r=0;r0&&(t+=' class ="'+ge.escape(Ir(this.classes))+'"'),t+=">";for(var r=0;r",t}toText(){return this.children.map(t=>t.toText()).join("")}}class Hn{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return ge.escape(this.toText())}toText(){return this.text}}class sN{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",ue(this.width)),t}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var ne={MathNode:dn,TextNode:Hn,SpaceNode:sN,newDocumentFragment:S4},kn=function(t,n,r){return rt[n][t]&&rt[n][t].replace&&t.charCodeAt(0)!==55349&&!(g4.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=rt[n][t].replace),new ne.TextNode(t)},cc=function(t){return t.length===1?t[0]:new ne.MathNode("mrow",t)},dc=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var i=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathsfit")return"sans-serif-italic";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var a=t.text;if(ge.contains(["\\imath","\\jmath"],a))return null;rt[i][a]&&rt[i][a].replace&&(a=rt[i][a].replace);var s=j.fontMap[r].fontName;return oc(a,s,i)?j.fontMap[r].variant:null};function Ru(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Hn&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var n=e.children[0];return n instanceof Hn&&n.text===","}else return!1}var sn=function(t,n,r){if(t.length===1){var i=Je(t[0],n);return r&&i instanceof dn&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o=1&&(s.type==="mn"||Ru(s))){var l=u.children[0];l instanceof dn&&l.type==="mn"&&(l.children=[...s.children,...l.children],a.pop())}else if(s.type==="mi"&&s.children.length===1){var c=s.children[0];if(c instanceof Hn&&c.text==="̸"&&(u.type==="mo"||u.type==="mi"||u.type==="mn")){var d=u.children[0];d instanceof Hn&&d.text.length>0&&(d.text=d.text.slice(0,1)+"̸"+d.text.slice(1),a.pop())}}}a.push(u),s=u}return a},Rr=function(t,n,r){return cc(sn(t,n,r))},Je=function(t,n){if(!t)return new ne.MathNode("mrow");if(oo[t.type]){var r=oo[t.type](t,n);return r}else throw new re("Got group of unknown type: '"+t.type+"'")};function Hf(e,t,n,r,i){var a=sn(e,n),s;a.length===1&&a[0]instanceof dn&&ge.contains(["mrow","mtable"],a[0].type)?s=a[0]:s=new ne.MathNode("mrow",a);var o=new ne.MathNode("annotation",[new ne.TextNode(t)]);o.setAttribute("encoding","application/x-tex");var u=new ne.MathNode("semantics",[s,o]),l=new ne.MathNode("math",[u]);l.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&l.setAttribute("display","block");var c=i?"katex":"katex-mathml";return j.makeSpan([c],[l])}var w4=function(t){return new er({style:t.displayMode?ye.DISPLAY:ye.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},A4=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=j.makeSpan(r,[t])}return t},oN=function(t,n,r){var i=w4(r),a;if(r.output==="mathml")return Hf(t,n,i,r.displayMode,!0);if(r.output==="html"){var s=Ol(t,i);a=j.makeSpan(["katex"],[s])}else{var o=Hf(t,n,i,r.displayMode,!1),u=Ol(t,i);a=j.makeSpan(["katex"],[o,u])}return A4(a,r)},uN=function(t,n,r){var i=w4(r),a=Ol(t,i),s=j.makeSpan(["katex"],[a]);return A4(s,r)},lN={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},cN=function(t){var n=new ne.MathNode("mo",[new ne.TextNode(lN[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},dN={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},hN=function(t){return t.type==="ordgroup"?t.body.length:1},fN=function(t,n){function r(){var o=4e5,u=t.label.slice(1);if(ge.contains(["widehat","widecheck","widetilde","utilde"],u)){var l=t,c=hN(l.base),d,p,f;if(c>5)u==="widehat"||u==="widecheck"?(d=420,o=2364,f=.42,p=u+"4"):(d=312,o=2340,f=.34,p="tilde4");else{var b=[1,1,2,2,3,3][c];u==="widehat"||u==="widecheck"?(o=[0,1062,2364,2364,2364][b],d=[0,239,300,360,420][b],f=[0,.24,.3,.3,.36,.42][b],p=u+b):(o=[0,600,1033,2339,2340][b],d=[0,260,286,306,312][b],f=[0,.26,.286,.3,.306,.34][b],p="tilde"+b)}var y=new Nr(p),S=new cr([y],{width:"100%",height:ue(f),viewBox:"0 0 "+o+" "+d,preserveAspectRatio:"none"});return{span:j.makeSvgSpan([],[S],n),minWidth:0,height:f}}else{var v=[],w=dN[u],[x,k,R]=w,C=R/1e3,H=x.length,z,V;if(H===1){var P=w[3];z=["hide-tail"],V=[P]}else if(H===2)z=["halfarrow-left","halfarrow-right"],V=["xMinYMin","xMaxYMin"];else if(H===3)z=["brace-left","brace-center","brace-right"],V=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+H+" children.");for(var $=0;$0&&(i.style.minWidth=ue(a)),i},pN=function(t,n,r,i,a){var s,o=t.height+t.depth+r+i;if(/fbox|color|angl/.test(n)){if(s=j.makeSpan(["stretchy",n],[],a),n==="fbox"){var u=a.color&&a.getColor();u&&(s.style.borderColor=u)}}else{var l=[];/^[bx]cancel$/.test(n)&&l.push(new Dl({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&l.push(new Dl({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new cr(l,{width:"100%",height:ue(o)});s=j.makeSvgSpan([],[c],a)}return s.height=o,s.style.height=ue(o),s},hr={encloseSpan:pN,mathMLnode:cN,svgSpan:fN};function Oe(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function hc(e){var t=Po(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Po(e){return e&&(e.type==="atom"||HI.hasOwnProperty(e.type))?e:null}var fc=(e,t)=>{var n,r,i;e&&e.type==="supsub"?(r=Oe(e.base,"accent"),n=r.base,e.base=n,i=BI(We(e,t)),e.base=r):(r=Oe(e,"accent"),n=r.base);var a=We(n,t.havingCrampedStyle()),s=r.isShifty&&ge.isCharacterBox(n),o=0;if(s){var u=ge.getBaseElem(n),l=We(u,t.havingCrampedStyle());o=Df(l).skew}var c=r.label==="\\c",d=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),p;if(r.isStretchy)p=hr.svgSpan(r,t),p=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:p,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+ue(2*o)+")",marginLeft:ue(2*o)}:void 0}]},t);else{var f,b;r.label==="\\vec"?(f=j.staticSvg("vec",t),b=j.svgData.vec[1]):(f=j.makeOrd({mode:r.mode,text:r.label},t,"textord"),f=Df(f),f.italic=0,b=f.width,c&&(d+=f.depth)),p=j.makeSpan(["accent-body"],[f]);var y=r.label==="\\textcircled";y&&(p.classes.push("accent-full"),d=a.height);var S=o;y||(S-=b/2),p.style.left=ue(S),r.label==="\\textcircled"&&(p.style.top=".2em"),p=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-d},{type:"elem",elem:p}]},t)}var v=j.makeSpan(["mord","accent"],[p],t);return i?(i.children[0]=v,i.height=Math.max(v.height,i.height),i.classes[0]="mord",i):v},C4=(e,t)=>{var n=e.isStretchy?hr.mathMLnode(e.label):new ne.MathNode("mo",[kn(e.label,e.mode)]),r=new ne.MathNode("mover",[Je(e.base,t),n]);return r.setAttribute("accent","true"),r},mN=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));ce({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=uo(t[0]),r=!mN.test(e.funcName),i=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:fc,mathmlBuilder:C4});ce({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:fc,mathmlBuilder:C4});ce({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=We(e.base,t),r=hr.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,a=j.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return j.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var n=hr.mathMLnode(e.label),r=new ne.MathNode("munder",[Je(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var Rs=e=>{var t=new ne.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ce({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=j.wrapFragment(We(e.body,r,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;e.below&&(r=t.havingStyle(n.sub()),s=j.wrapFragment(We(e.below,r,t),t),s.classes.push(a+"-arrow-pad"));var o=hr.svgSpan(e,t),u=-t.fontMetrics().axisHeight+.5*o.height,l=-t.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(l-=i.depth);var c;if(s){var d=-t.fontMetrics().axisHeight+s.height+.5*o.height+.111;c=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:o,shift:u},{type:"elem",elem:s,shift:d}]},t)}else c=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:o,shift:u}]},t);return c.children[0].children[0].children[1].classes.push("svg-align"),j.makeSpan(["mrel","x-arrow"],[c],t)},mathmlBuilder(e,t){var n=hr.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var i=Rs(Je(e.body,t));if(e.below){var a=Rs(Je(e.below,t));r=new ne.MathNode("munderover",[n,a,i])}else r=new ne.MathNode("mover",[n,i])}else if(e.below){var s=Rs(Je(e.below,t));r=new ne.MathNode("munder",[n,s])}else r=Rs(),r=new ne.MathNode("mover",[n,r]);return r}});var gN=j.makeSpan;function k4(e,t){var n=Ot(e.body,t,!0);return gN([e.mclass],n,t)}function I4(e,t){var n,r=sn(e.body,t);return e.mclass==="minner"?n=new ne.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new ne.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new ne.MathNode("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}ce({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:It(i),isCharacterBox:ge.isCharacterBox(i)}},htmlBuilder:k4,mathmlBuilder:I4});var Lo=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};ce({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:Lo(t[0]),body:It(t[1]),isCharacterBox:ge.isCharacterBox(t[1])}}});ce({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],s;r!=="\\stackrel"?s=Lo(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:It(i)},u={type:"supsub",mode:a.mode,base:o,sup:r==="\\underset"?null:a,sub:r==="\\underset"?a:null};return{type:"mclass",mode:n.mode,mclass:s,body:[u],isCharacterBox:ge.isCharacterBox(u)}},htmlBuilder:k4,mathmlBuilder:I4});ce({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:Lo(t[0]),body:It(t[0])}},htmlBuilder(e,t){var n=Ot(e.body,t,!0),r=j.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=sn(e.body,t),r=new ne.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var bN={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},zf=()=>({type:"styling",body:[],mode:"math",style:"display"}),Uf=e=>e.type==="textord"&&e.text==="@",yN=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function vN(e,t,n){var r=bN[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=n.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:r,mode:"math",family:"rel"},s=n.callFunction("\\Big",[a],[]),o=n.callFunction("\\\\cdright",[t[1]],[]),u={type:"ordgroup",mode:"math",body:[i,s,o]};return n.callFunction("\\\\cdparent",[u],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var l={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[l],[])}default:return{type:"textord",text:" ",mode:"math"}}}function TN(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new re("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],i=[r],a=0;a-1))if("<>AV".indexOf(l)>-1)for(var d=0;d<2;d++){for(var p=!0,f=u+1;fAV=|." after @',s[u]);var b=vN(l,c,e),y={type:"styling",body:[b],mode:"math",style:"display"};r.push(y),o=zf()}a%2===0?r.push(o):r.shift(),r=[],i.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var S=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:S,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}ce({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=j.wrapFragment(We(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=ue(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new ne.MathNode("mrow",[Je(e.label,t)]);return n=new ne.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new ne.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});ce({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=j.wrapFragment(We(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new ne.MathNode("mrow",[Je(e.fragment,t)])}});ce({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=Oe(t[0],"ordgroup"),i=r.body,a="",s=0;s=1114111)throw new re("\\@char with invalid code point "+a);return u<=65535?l=String.fromCharCode(u):(u-=65536,l=String.fromCharCode((u>>10)+55296,(u&1023)+56320)),{type:"textord",mode:n.mode,text:l}}});var N4=(e,t)=>{var n=Ot(e.body,t.withColor(e.color),!1);return j.makeFragment(n)},R4=(e,t)=>{var n=sn(e.body,t.withColor(e.color)),r=new ne.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};ce({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=Oe(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:It(i)}},htmlBuilder:N4,mathmlBuilder:R4});ce({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=Oe(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:N4,mathmlBuilder:R4});ce({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:a,size:i&&Oe(i,"size").value}},htmlBuilder(e,t){var n=j.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=ue(pt(e.size,t)))),n},mathmlBuilder(e,t){var n=new ne.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",ue(pt(e.size,t)))),n}});var _l={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},M4=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new re("Expected a control sequence",e);return t},xN=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},D4=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i==null&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};ce({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(_l[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=_l[r.text]),Oe(t.parseFunction(),"internal");throw new re("Invalid token after macro prefix",r)}});ce({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new re("Expected a control sequence",r);for(var a=0,s,o=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),o[a].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new re('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==a+1)throw new re('Argument number "'+r.text+'" out of order');a++,o.push([])}else{if(r.text==="EOF")throw new re("Expected a macro definition");o[a].push(r.text)}var{tokens:u}=t.gullet.consumeArg();return s&&u.unshift(s),(n==="\\edef"||n==="\\xdef")&&(u=t.gullet.expandTokens(u),u.reverse()),t.gullet.macros.set(i,{tokens:u,numArgs:a,delimiters:o},n===_l[n]),{type:"internal",mode:t.mode}}});ce({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=M4(t.gullet.popToken());t.gullet.consumeSpaces();var i=xN(t);return D4(t,r,i,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});ce({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=M4(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return D4(t,r,a,n==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var sa=function(t,n,r){var i=rt.math[t]&&rt.math[t].replace,a=oc(i||t,n,r);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return a},pc=function(t,n,r,i){var a=r.havingBaseStyle(n),s=j.makeSpan(i.concat(a.sizingClasses(r)),[t],r),o=a.sizeMultiplier/r.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},P4=function(t,n,r){var i=n.havingBaseStyle(r),a=(1-n.sizeMultiplier/i.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=ue(a),t.height-=a,t.depth+=a},EN=function(t,n,r,i,a,s){var o=j.makeSymbol(t,"Main-Regular",a,i),u=pc(o,n,i,s);return r&&P4(u,i,n),u},SN=function(t,n,r,i){return j.makeSymbol(t,"Size"+n+"-Regular",r,i)},L4=function(t,n,r,i,a,s){var o=SN(t,n,a,i),u=pc(j.makeSpan(["delimsizing","size"+n],[o],i),ye.TEXT,i,s);return r&&P4(u,i,ye.TEXT),u},Mu=function(t,n,r){var i;n==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=j.makeSpan(["delimsizinginner",i],[j.makeSpan([],[j.makeSymbol(t,n,r)])]);return{type:"elem",elem:a}},Du=function(t,n,r){var i=Fn["Size4-Regular"][t.charCodeAt(0)]?Fn["Size4-Regular"][t.charCodeAt(0)][4]:Fn["Size1-Regular"][t.charCodeAt(0)][4],a=new Nr("inner",II(t,Math.round(1e3*n))),s=new cr([a],{width:ue(i),height:ue(n),style:"width:"+ue(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),o=j.makeSvgSpan([],[s],r);return o.height=n,o.style.height=ue(n),o.style.width=ue(i),{type:"elem",elem:o}},Bl=.008,Ms={type:"kern",size:-1*Bl},wN=["|","\\lvert","\\rvert","\\vert"],AN=["\\|","\\lVert","\\rVert","\\Vert"],O4=function(t,n,r,i,a,s){var o,u,l,c,d="",p=0;o=l=c=t,u=null;var f="Size1-Regular";t==="\\uparrow"?l=c="⏐":t==="\\Uparrow"?l=c="‖":t==="\\downarrow"?o=l="⏐":t==="\\Downarrow"?o=l="‖":t==="\\updownarrow"?(o="\\uparrow",l="⏐",c="\\downarrow"):t==="\\Updownarrow"?(o="\\Uparrow",l="‖",c="\\Downarrow"):ge.contains(wN,t)?(l="∣",d="vert",p=333):ge.contains(AN,t)?(l="∥",d="doublevert",p=556):t==="["||t==="\\lbrack"?(o="⎡",l="⎢",c="⎣",f="Size4-Regular",d="lbrack",p=667):t==="]"||t==="\\rbrack"?(o="⎤",l="⎥",c="⎦",f="Size4-Regular",d="rbrack",p=667):t==="\\lfloor"||t==="⌊"?(l=o="⎢",c="⎣",f="Size4-Regular",d="lfloor",p=667):t==="\\lceil"||t==="⌈"?(o="⎡",l=c="⎢",f="Size4-Regular",d="lceil",p=667):t==="\\rfloor"||t==="⌋"?(l=o="⎥",c="⎦",f="Size4-Regular",d="rfloor",p=667):t==="\\rceil"||t==="⌉"?(o="⎤",l=c="⎥",f="Size4-Regular",d="rceil",p=667):t==="("||t==="\\lparen"?(o="⎛",l="⎜",c="⎝",f="Size4-Regular",d="lparen",p=875):t===")"||t==="\\rparen"?(o="⎞",l="⎟",c="⎠",f="Size4-Regular",d="rparen",p=875):t==="\\{"||t==="\\lbrace"?(o="⎧",u="⎨",c="⎩",l="⎪",f="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(o="⎫",u="⎬",c="⎭",l="⎪",f="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(o="⎧",c="⎩",l="⎪",f="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(o="⎫",c="⎭",l="⎪",f="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(o="⎧",c="⎭",l="⎪",f="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(o="⎫",c="⎩",l="⎪",f="Size4-Regular");var b=sa(o,f,a),y=b.height+b.depth,S=sa(l,f,a),v=S.height+S.depth,w=sa(c,f,a),x=w.height+w.depth,k=0,R=1;if(u!==null){var C=sa(u,f,a);k=C.height+C.depth,R=2}var H=y+x+k,z=Math.max(0,Math.ceil((n-H)/(R*v))),V=H+z*R*v,P=i.fontMetrics().axisHeight;r&&(P*=i.sizeMultiplier);var $=V/2-P,W=[];if(d.length>0){var G=V-y-x,q=Math.round(V*1e3),Y=NI(d,Math.round(G*1e3)),Q=new Nr(d,Y),ee=(p/1e3).toFixed(3)+"em",de=(q/1e3).toFixed(3)+"em",oe=new cr([Q],{width:ee,height:de,viewBox:"0 0 "+p+" "+q}),N=j.makeSvgSpan([],[oe],i);N.height=q/1e3,N.style.width=ee,N.style.height=de,W.push({type:"elem",elem:N})}else{if(W.push(Mu(c,f,a)),W.push(Ms),u===null){var Ce=V-y-x+2*Bl;W.push(Du(l,Ce,i))}else{var ve=(V-y-x-k)/2+2*Bl;W.push(Du(l,ve,i)),W.push(Ms),W.push(Mu(u,f,a)),W.push(Ms),W.push(Du(l,ve,i))}W.push(Ms),W.push(Mu(o,f,a))}var B=i.havingBaseStyle(ye.TEXT),xe=j.makeVList({positionType:"bottom",positionData:$,children:W},B);return pc(j.makeSpan(["delimsizing","mult"],[xe],B),ye.TEXT,i,s)},Pu=80,Lu=.08,Ou=function(t,n,r,i,a){var s=kI(t,i,r),o=new Nr(t,s),u=new cr([o],{width:"400em",height:ue(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return j.makeSvgSpan(["hide-tail"],[u],a)},CN=function(t,n){var r=n.havingBaseSizing(),i=H4("\\surd",t*r.sizeMultiplier,F4,r),a=r.sizeMultiplier,s=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),o,u=0,l=0,c=0,d;return i.type==="small"?(c=1e3+1e3*s+Pu,t<1?a=1:t<1.4&&(a=.7),u=(1+s+Lu)/a,l=(1+s)/a,o=Ou("sqrtMain",u,c,s,n),o.style.minWidth="0.853em",d=.833/a):i.type==="large"?(c=(1e3+Pu)*va[i.size],l=(va[i.size]+s)/a,u=(va[i.size]+s+Lu)/a,o=Ou("sqrtSize"+i.size,u,c,s,n),o.style.minWidth="1.02em",d=1/a):(u=t+s+Lu,l=t+s,c=Math.floor(1e3*t+s)+Pu,o=Ou("sqrtTall",u,c,s,n),o.style.minWidth="0.742em",d=1.056),o.height=l,o.style.height=ue(u),{span:o,advanceWidth:d,ruleWidth:(n.fontMetrics().sqrtRuleThickness+s)*a}},_4=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],kN=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],B4=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],va=[0,1.2,1.8,2.4,3],IN=function(t,n,r,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),ge.contains(_4,t)||ge.contains(B4,t))return L4(t,n,!1,r,i,a);if(ge.contains(kN,t))return O4(t,va[n],!1,r,i,a);throw new re("Illegal delimiter: '"+t+"'")},NN=[{type:"small",style:ye.SCRIPTSCRIPT},{type:"small",style:ye.SCRIPT},{type:"small",style:ye.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],RN=[{type:"small",style:ye.SCRIPTSCRIPT},{type:"small",style:ye.SCRIPT},{type:"small",style:ye.TEXT},{type:"stack"}],F4=[{type:"small",style:ye.SCRIPTSCRIPT},{type:"small",style:ye.SCRIPT},{type:"small",style:ye.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],MN=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},H4=function(t,n,r,i){for(var a=Math.min(2,3-i.style.size),s=a;sn)return r[s]}return r[r.length-1]},z4=function(t,n,r,i,a,s){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var o;ge.contains(B4,t)?o=NN:ge.contains(_4,t)?o=F4:o=RN;var u=H4(t,n,o,i);return u.type==="small"?EN(t,u.style,r,i,a,s):u.type==="large"?L4(t,u.size,r,i,a,s):O4(t,n,r,i,a,s)},DN=function(t,n,r,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,u=901,l=5/i.fontMetrics().ptPerEm,c=Math.max(n-o,r+o),d=Math.max(c/500*u,2*c-l);return z4(t,d,!0,i,a,s)},ir={sqrtImage:CN,sizedDelim:IN,sizeToMaxHeight:va,customSizedDelim:z4,leftRightDelim:DN},Vf={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},PN=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Oo(e,t){var n=Po(e);if(n&&ge.contains(PN,n.text))return n;throw n?new re("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new re("Invalid delimiter type '"+e.type+"'",e)}ce({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=Oo(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Vf[e.funcName].size,mclass:Vf[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?j.makeSpan([e.mclass]):ir.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(kn(e.delim,e.mode));var n=new ne.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=ue(ir.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function jf(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ce({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new re("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Oo(t[0],e).text,color:n}}});ce({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Oo(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=Oe(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{jf(e);for(var n=Ot(e.body,t,!0,["mopen","mclose"]),r=0,i=0,a=!1,s=0;s{jf(e);var n=sn(e.body,t);if(e.left!=="."){var r=new ne.MathNode("mo",[kn(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var i=new ne.MathNode("mo",[kn(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return cc(n)}});ce({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Oo(t[0],e);if(!e.parser.leftrightDepth)throw new re("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=za(t,[]);else{n=ir.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?kn("|","text"):kn(e.delim,e.mode),r=new ne.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var mc=(e,t)=>{var n=j.wrapFragment(We(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,s=0,o=ge.isCharacterBox(e.body);if(r==="sout")a=j.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,s=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var u=pt({number:.6,unit:"pt"},t),l=pt({number:.35,unit:"ex"},t),c=t.havingBaseSizing();i=i/c.sizeMultiplier;var d=n.height+n.depth+u+l;n.style.paddingLeft=ue(d/2+u);var p=Math.floor(1e3*d*i),f=AI(p),b=new cr([new Nr("phase",f)],{width:"400em",height:ue(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});a=j.makeSvgSpan(["hide-tail"],[b],t),a.style.height=ue(d),s=n.depth+u+l}else{/cancel/.test(r)?o||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var y=0,S=0,v=0;/box/.test(r)?(v=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),y=t.fontMetrics().fboxsep+(r==="colorbox"?0:v),S=y):r==="angl"?(v=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),y=4*v,S=Math.max(0,.25-n.depth)):(y=o?.2:0,S=y),a=hr.encloseSpan(n,r,y,S,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle="solid",a.style.borderWidth=ue(v)):r==="angl"&&v!==.049&&(a.style.borderTopWidth=ue(v),a.style.borderRightWidth=ue(v)),s=n.depth+S,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var w;if(e.backgroundColor)w=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:n,shift:0}]},t);else{var x=/cancel|phase/.test(r)?["svg-align"]:[];w=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:x}]},t)}return/cancel/.test(r)&&(w.height=n.height,w.depth=n.depth),/cancel/.test(r)&&!o?j.makeSpan(["mord","cancel-lap"],[w],t):j.makeSpan(["mord"],[w],t)},gc=(e,t)=>{var n=0,r=new ne.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Je(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};ce({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=Oe(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:mc,mathmlBuilder:gc});ce({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=Oe(t[0],"color-token").color,s=Oe(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:mc,mathmlBuilder:gc});ce({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});ce({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:mc,mathmlBuilder:gc});ce({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var U4={};function Kn(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},u=0;u{var t=e.parser.settings;if(!t.displayMode)throw new re("{"+e.envName+"} can be used only in display mode.")};function bc(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function Lr(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:u,singleRow:l,emptySingleRow:c,maxNumCols:d,leqno:p}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var f=e.gullet.expandMacroAsText("\\arraystretch");if(f==null)s=1;else if(s=parseFloat(f),!s||s<0)throw new re("Invalid \\arraystretch: "+f)}e.gullet.beginGroup();var b=[],y=[b],S=[],v=[],w=u!=null?[]:void 0;function x(){u&&e.gullet.macros.set("\\@eqnsw","1",!0)}function k(){w&&(e.gullet.macros.get("\\df@tag")?(w.push(e.subparse([new Sn("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):w.push(!!u&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(x(),v.push(qf(e));;){var R=e.parseExpression(!1,l?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),R={type:"ordgroup",mode:e.mode,body:R},n&&(R={type:"styling",mode:e.mode,style:n,body:[R]}),b.push(R);var C=e.fetch().text;if(C==="&"){if(d&&b.length===d){if(l||o)throw new re("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(C==="\\end"){k(),b.length===1&&R.type==="styling"&&R.body[0].body.length===0&&(y.length>1||!c)&&y.pop(),v.length0&&(x+=.25),l.push({pos:x,isDashed:st[Nt]})}for(k(s[0]),r=0;r0&&($+=w,H<$&&(H=$),$=0)),t.addJot&&(H+=y),z.height=C,z.depth=H,x+=C,z.pos=x,x+=H+$,u[r]=z,k(s[r+1])}var W=x/2+n.fontMetrics().axisHeight,G=t.cols||[],q=[],Y,Q,ee=[];if(t.tags&&t.tags.some(st=>st))for(r=0;r=o)){var je=void 0;(i>0||t.hskipBeforeAndAfter)&&(je=ge.deflt(ve.pregap,p),je!==0&&(Y=j.makeSpan(["arraycolsep"],[]),Y.style.width=ue(je),q.push(Y)));var _e=[];for(r=0;r0){for(var Ne=j.makeLineSpan("hline",n,c),Ke=j.makeLineSpan("hdashline",n,c),Re=[{type:"elem",elem:u,shift:0}];l.length>0;){var $e=l.pop(),wt=$e.pos-W;$e.isDashed?Re.push({type:"elem",elem:Ke,shift:wt}):Re.push({type:"elem",elem:Ne,shift:wt})}u=j.makeVList({positionType:"individualShift",children:Re},n)}if(ee.length===0)return j.makeSpan(["mord"],[u],n);var ht=j.makeVList({positionType:"individualShift",children:ee},n);return ht=j.makeSpan(["tag"],[ht],n),j.makeFragment([u,ht])},LN={c:"center ",l:"left ",r:"right "},Zn=function(t,n){for(var r=[],i=new ne.MathNode("mtd",[],["mtr-glue"]),a=new ne.MathNode("mtd",[],["mml-eqn-num"]),s=0;s0){var b=t.cols,y="",S=!1,v=0,w=b.length;b[0].type==="separator"&&(p+="top ",v=1),b[b.length-1].type==="separator"&&(p+="bottom ",w-=1);for(var x=v;x0?"left ":"",p+=z[z.length-1].length>0?"right ":"";for(var V=1;V-1?"alignat":"align",a=t.envName==="split",s=Lr(t.parser,{cols:r,addJot:!0,autoTag:a?void 0:bc(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),o,u=0,l={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var c="",d=0;d0&&f&&(S=1),r[b]={type:"align",align:y,pregap:S,postgap:0}}return s.colSeparationType=f?"align":"alignat",s};Kn({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=Po(t[0]),r=n?[t[0]]:Oe(t[0],"ordgroup").body,i=r.map(function(s){var o=hc(s),u=o.text;if("lcr".indexOf(u)!==-1)return{type:"align",align:u};if(u==="|")return{type:"separator",separator:"|"};if(u===":")return{type:"separator",separator:":"};throw new re("Unknown column alignment: "+u,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Lr(e.parser,a,yc(e.envName))},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,"lcr".indexOf(n)===-1)throw new re("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var a=Lr(e.parser,r,yc(e.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=Lr(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=Po(t[0]),r=n?[t[0]]:Oe(t[0],"ordgroup").body,i=r.map(function(s){var o=hc(s),u=o.text;if("lc".indexOf(u)!==-1)return{type:"align",align:u};throw new re("Unknown column alignment: "+u,s)});if(i.length>1)throw new re("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=Lr(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new re("{subarray} can contain only one column");return a},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=Lr(e.parser,t,yc(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:j4,htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){ge.contains(["gather","gather*"],e.envName)&&_o(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:bc(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Lr(e.parser,t,"display")},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:j4,htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){_o(e);var t={autoTag:bc(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Lr(e.parser,t,"display")},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["CD"],props:{numArgs:0},handler(e){return _o(e),TN(e.parser)},htmlBuilder:Qn,mathmlBuilder:Zn});E("\\nonumber","\\gdef\\@eqnsw{0}");E("\\notag","\\nonumber");ce({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new re(e.funcName+" valid only within array environment")}});var $f=U4;ce({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!=="ordgroup")throw new re("Invalid environment name",i);for(var a="",s=0;s{var n=e.font,r=t.withFont(n);return We(e.body,r)},$4=(e,t)=>{var n=e.font,r=t.withFont(n);return Je(e.body,r)},Wf={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};ce({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=uo(t[0]),a=r;return a in Wf&&(a=Wf[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:q4,mathmlBuilder:$4});ce({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],i=ge.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:Lo(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});ce({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,s=n.parseExpression(!0,i),o="math"+r.slice(1);return{type:"font",mode:a,font:o,body:{type:"ordgroup",mode:n.mode,body:s}}},htmlBuilder:q4,mathmlBuilder:$4});var W4=(e,t)=>{var n=t;return e==="display"?n=n.id>=ye.SCRIPT.id?n.text():ye.DISPLAY:e==="text"&&n.size===ye.DISPLAY.size?n=ye.TEXT:e==="script"?n=ye.SCRIPT:e==="scriptscript"&&(n=ye.SCRIPTSCRIPT),n},vc=(e,t)=>{var n=W4(e.size,t.style),r=n.fracNum(),i=n.fracDen(),a;a=t.havingStyle(r);var s=We(e.numer,a,t);if(e.continued){var o=8.5/t.fontMetrics().ptPerEm,u=3.5/t.fontMetrics().ptPerEm;s.height=s.height0?b=3*p:b=7*p,y=t.fontMetrics().denom1):(d>0?(f=t.fontMetrics().num2,b=p):(f=t.fontMetrics().num3,b=3*p),y=t.fontMetrics().denom2);var S;if(c){var w=t.fontMetrics().axisHeight;f-s.depth-(w+.5*d){var n=new ne.MathNode("mfrac",[Je(e.numer,t),Je(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=pt(e.barSize,t);n.setAttribute("linethickness",ue(r))}var i=W4(e.size,t.style);if(i.size!==t.style.size){n=new ne.MathNode("mstyle",[n]);var a=i.size===ye.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",a),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var s=[];if(e.leftDelim!=null){var o=new ne.MathNode("mo",[new ne.TextNode(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),s.push(o)}if(s.push(n),e.rightDelim!=null){var u=new ne.MathNode("mo",[new ne.TextNode(e.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),s.push(u)}return cc(s)}return n};ce({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],s,o=null,u=null,l="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",u=")";break;case"\\\\bracefrac":s=!1,o="\\{",u="\\}";break;case"\\\\brackfrac":s=!1,o="[",u="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":l="display";break;case"\\tfrac":case"\\tbinom":l="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:s,leftDelim:o,rightDelim:u,size:l,barSize:null}},htmlBuilder:vc,mathmlBuilder:Tc});ce({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});ce({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:r}}});var Yf=["display","text","script","scriptscript"],Gf=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};ce({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=uo(t[0]),s=a.type==="atom"&&a.family==="open"?Gf(a.text):null,o=uo(t[1]),u=o.type==="atom"&&o.family==="close"?Gf(o.text):null,l=Oe(t[2],"size"),c,d=null;l.isBlank?c=!0:(d=l.value,c=d.number>0);var p="auto",f=t[3];if(f.type==="ordgroup"){if(f.body.length>0){var b=Oe(f.body[0],"textord");p=Yf[Number(b.text)]}}else f=Oe(f,"textord"),p=Yf[Number(f.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:c,barSize:d,leftDelim:s,rightDelim:u,size:p}},htmlBuilder:vc,mathmlBuilder:Tc});ce({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:Oe(t[0],"size").value,token:i}}});ce({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=cI(Oe(t[1],"infix").size),s=t[2],o=a.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:vc,mathmlBuilder:Tc});var Y4=(e,t)=>{var n=t.style,r,i;e.type==="supsub"?(r=e.sup?We(e.sup,t.havingStyle(n.sup()),t):We(e.sub,t.havingStyle(n.sub()),t),i=Oe(e.base,"horizBrace")):i=Oe(e,"horizBrace");var a=We(i.base,t.havingBaseStyle(ye.DISPLAY)),s=hr.svgSpan(i,t),o;if(i.isOver?(o=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t),o.children[0].children[0].children[1].classes.push("svg-align")):(o=j.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t),o.children[0].children[0].children[0].classes.push("svg-align")),r){var u=j.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t);i.isOver?o=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:r}]},t):o=j.makeVList({positionType:"bottom",positionData:u.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:u}]},t)}return j.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t)},ON=(e,t)=>{var n=hr.mathMLnode(e.label);return new ne.MathNode(e.isOver?"mover":"munder",[Je(e.base,t),n])};ce({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:Y4,mathmlBuilder:ON});ce({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=Oe(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:It(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=Ot(e.body,t,!1);return j.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=Rr(e.body,t);return n instanceof dn||(n=new dn("mrow",[n])),n.setAttribute("href",e.href),n}});ce({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=Oe(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:n,funcName:r,token:i}=e,a=Oe(t[0],"raw").string,s=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,u={};switch(r){case"\\htmlClass":u.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":u.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":u.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var l=a.split(","),c=0;c{var n=Ot(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=j.makeSpan(r,n,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>Rr(e.body,t)});ce({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:It(t[0]),mathml:It(t[1])}},htmlBuilder:(e,t)=>{var n=Ot(e.html,t,!1);return j.makeFragment(n)},mathmlBuilder:(e,t)=>Rr(e.mathml,t)});var _u=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new re("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!h4(r))throw new re("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};ce({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(n[0])for(var u=Oe(n[0],"raw").string,l=u.split(","),c=0;c{var n=pt(e.height,t),r=0;e.totalheight.number>0&&(r=pt(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=pt(e.width,t));var a={height:ue(n+r)};i>0&&(a.width=ue(i)),r>0&&(a.verticalAlign=ue(-r));var s=new OI(e.src,e.alt,a);return s.height=n,s.depth=r,s},mathmlBuilder:(e,t)=>{var n=new ne.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=pt(e.height,t),i=0;if(e.totalheight.number>0&&(i=pt(e.totalheight,t)-r,n.setAttribute("valign",ue(-i))),n.setAttribute("height",ue(r+i)),e.width.number>0){var a=pt(e.width,t);n.setAttribute("width",ue(a))}return n.setAttribute("src",e.src),n}});ce({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=Oe(t[0],"size");if(n.settings.strict){var a=r[1]==="m",s=i.value.unit==="mu";a?(s||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):s&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return j.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=pt(e.dimension,t);return new ne.SpaceNode(n)}});ce({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=j.makeSpan([],[We(e.body,t)]),n=j.makeSpan(["inner"],[n],t)):n=j.makeSpan(["inner"],[We(e.body,t)]);var r=j.makeSpan(["fix"],[]),i=j.makeSpan([e.alignment],[n,r],t),a=j.makeSpan(["strut"]);return a.style.height=ue(i.height+i.depth),i.depth&&(a.style.verticalAlign=ue(-i.depth)),i.children.unshift(a),i=j.makeSpan(["thinbox"],[i],t),j.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var n=new ne.MathNode("mpadded",[Je(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});ce({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode("math");var a=n==="\\("?"\\)":"$",s=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:s}}});ce({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new re("Mismatched "+e.funcName)}});var Xf=(e,t)=>{switch(t.style.size){case ye.DISPLAY.size:return e.display;case ye.TEXT.size:return e.text;case ye.SCRIPT.size:return e.script;case ye.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ce({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:It(t[0]),text:It(t[1]),script:It(t[2]),scriptscript:It(t[3])}},htmlBuilder:(e,t)=>{var n=Xf(e,t),r=Ot(n,t,!1);return j.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=Xf(e,t);return Rr(n,t)}});var G4=(e,t,n,r,i,a,s)=>{e=j.makeSpan([],[e]);var o=n&&ge.isCharacterBox(n),u,l;if(t){var c=We(t,r.havingStyle(i.sup()),r);l={elem:c,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-c.depth)}}if(n){var d=We(n,r.havingStyle(i.sub()),r);u={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var p;if(l&&u){var f=r.fontMetrics().bigOpSpacing5+u.elem.height+u.elem.depth+u.kern+e.depth+s;p=j.makeVList({positionType:"bottom",positionData:f,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:ue(-a)},{type:"kern",size:u.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:ue(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(u){var b=e.height-s;p=j.makeVList({positionType:"top",positionData:b,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:ue(-a)},{type:"kern",size:u.kern},{type:"elem",elem:e}]},r)}else if(l){var y=e.depth+s;p=j.makeVList({positionType:"bottom",positionData:y,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:ue(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var S=[p];if(u&&a!==0&&!o){var v=j.makeSpan(["mspace"],[],r);v.style.marginRight=ue(a),S.unshift(v)}return j.makeSpan(["mop","op-limits"],S,r)},X4=["\\smallint"],Hi=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=Oe(e.base,"op"),i=!0):a=Oe(e,"op");var s=t.style,o=!1;s.size===ye.DISPLAY.size&&a.symbol&&!ge.contains(X4,a.name)&&(o=!0);var u;if(a.symbol){var l=o?"Size2-Regular":"Size1-Regular",c="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(c=a.name.slice(1),a.name=c==="oiint"?"\\iint":"\\iiint"),u=j.makeSymbol(a.name,l,"math",t,["mop","op-symbol",o?"large-op":"small-op"]),c.length>0){var d=u.italic,p=j.staticSvg(c+"Size"+(o?"2":"1"),t);u=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:0},{type:"elem",elem:p,shift:o?.08:0}]},t),a.name="\\"+c,u.classes.unshift("mop"),u.italic=d}}else if(a.body){var f=Ot(a.body,t,!0);f.length===1&&f[0]instanceof Cn?(u=f[0],u.classes[0]="mop"):u=j.makeSpan(["mop"],f,t)}else{for(var b=[],y=1;y{var n;if(e.symbol)n=new dn("mo",[kn(e.name,e.mode)]),ge.contains(X4,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new dn("mo",sn(e.body,t));else{n=new dn("mi",[new Hn(e.name.slice(1))]);var r=new dn("mo",[kn("⁡","text")]);e.parentIsSupSub?n=new dn("mrow",[n,r]):n=S4([n,r])}return n},_N={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ce({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=_N[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Hi,mathmlBuilder:ns});ce({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:It(r)}},htmlBuilder:Hi,mathmlBuilder:ns});var BN={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ce({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Hi,mathmlBuilder:ns});ce({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Hi,mathmlBuilder:ns});ce({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=BN[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Hi,mathmlBuilder:ns});var K4=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=Oe(e.base,"operatorname"),i=!0):a=Oe(e,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(d=>{var p=d.text;return typeof p=="string"?{type:"textord",mode:d.mode,text:p}:d}),u=Ot(o,t.withFont("mathrm"),!0),l=0;l{for(var n=sn(e.body,t.withFont("mathrm")),r=!0,i=0;ic.toText()).join("");n=[new ne.TextNode(o)]}var u=new ne.MathNode("mi",n);u.setAttribute("mathvariant","normal");var l=new ne.MathNode("mo",[kn("⁡","text")]);return e.parentIsSupSub?new ne.MathNode("mrow",[u,l]):ne.newDocumentFragment([u,l])};ce({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"operatorname",mode:n.mode,body:It(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:K4,mathmlBuilder:FN});E("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");ti({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?j.makeFragment(Ot(e.body,t,!1)):j.makeSpan(["mord"],Ot(e.body,t,!0),t)},mathmlBuilder(e,t){return Rr(e.body,t,!0)}});ce({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=We(e.body,t.havingCrampedStyle()),r=j.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},t);return j.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){var n=new ne.MathNode("mo",[new ne.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new ne.MathNode("mover",[Je(e.body,t),n]);return r.setAttribute("accent","true"),r}});ce({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:It(r)}},htmlBuilder:(e,t)=>{var n=Ot(e.body,t.withPhantom(),!1);return j.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=sn(e.body,t);return new ne.MathNode("mphantom",n)}});ce({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=j.makeSpan([],[We(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r{var n=sn(It(e.body),t),r=new ne.MathNode("mphantom",n),i=new ne.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});ce({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=j.makeSpan(["inner"],[We(e.body,t.withPhantom())]),r=j.makeSpan(["fix"],[]);return j.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=sn(It(e.body),t),r=new ne.MathNode("mphantom",n),i=new ne.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});ce({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=Oe(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=We(e.body,t),r=pt(e.dy,t);return j.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new ne.MathNode("mpadded",[Je(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});ce({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});ce({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,i=n[0],a=Oe(t[0],"size"),s=Oe(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&Oe(i,"size").value,width:a.value,height:s.value}},htmlBuilder(e,t){var n=j.makeSpan(["mord","rule"],[],t),r=pt(e.width,t),i=pt(e.height,t),a=e.shift?pt(e.shift,t):0;return n.style.borderRightWidth=ue(r),n.style.borderTopWidth=ue(i),n.style.bottom=ue(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=pt(e.width,t),r=pt(e.height,t),i=e.shift?pt(e.shift,t):0,a=t.color&&t.getColor()||"black",s=new ne.MathNode("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",ue(n)),s.setAttribute("height",ue(r));var o=new ne.MathNode("mpadded",[s]);return i>=0?o.setAttribute("height",ue(i)):(o.setAttribute("height",ue(i)),o.setAttribute("depth",ue(-i))),o.setAttribute("voffset",ue(i)),o}});function Q4(e,t,n){for(var r=Ot(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a{var n=t.havingSize(e.size);return Q4(e.body,n,t)};ce({type:"sizing",names:Kf,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:Kf.indexOf(r)+1,body:a}},htmlBuilder:HN,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=sn(e.body,n),i=new ne.MathNode("mstyle",r);return i.setAttribute("mathsize",ue(n.sizeMultiplier)),i}});ce({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,s=n[0]&&Oe(n[0],"ordgroup");if(s)for(var o="",u=0;u{var n=j.makeSpan([],[We(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r{var n=new ne.MathNode("mpadded",[Je(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});ce({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=We(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=j.wrapFragment(n,t);var r=t.fontMetrics(),i=r.defaultRuleThickness,a=i;t.style.idn.height+n.depth+s&&(s=(s+d-n.height-n.depth)/2);var p=u.height-n.height-s-l;n.style.paddingLeft=ue(c);var f=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+p)},{type:"elem",elem:u},{type:"kern",size:l}]},t);if(e.index){var b=t.havingStyle(ye.SCRIPTSCRIPT),y=We(e.index,b,t),S=.6*(f.height-f.depth),v=j.makeVList({positionType:"shift",positionData:-S,children:[{type:"elem",elem:y}]},t),w=j.makeSpan(["root"],[v]);return j.makeSpan(["mord","sqrt"],[w,f],t)}else return j.makeSpan(["mord","sqrt"],[f],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new ne.MathNode("mroot",[Je(n,t),Je(r,t)]):new ne.MathNode("msqrt",[Je(n,t)])}});var Qf={display:ye.DISPLAY,text:ye.TEXT,script:ye.SCRIPT,scriptscript:ye.SCRIPTSCRIPT};ce({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),s=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(e,t){var n=Qf[e.style],r=t.havingStyle(n).withFont("");return Q4(e.body,r,t)},mathmlBuilder(e,t){var n=Qf[e.style],r=t.havingStyle(n),i=sn(e.body,r),a=new ne.MathNode("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var zN=function(t,n){var r=t.base;if(r)if(r.type==="op"){var i=r.limits&&(n.style.size===ye.DISPLAY.size||r.alwaysHandleSupSub);return i?Hi:null}else if(r.type==="operatorname"){var a=r.alwaysHandleSupSub&&(n.style.size===ye.DISPLAY.size||r.limits);return a?K4:null}else{if(r.type==="accent")return ge.isCharacterBox(r.base)?fc:null;if(r.type==="horizBrace"){var s=!t.sub;return s===r.isOver?Y4:null}else return null}else return null};ti({type:"supsub",htmlBuilder(e,t){var n=zN(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,s=We(r,t),o,u,l=t.fontMetrics(),c=0,d=0,p=r&&ge.isCharacterBox(r);if(i){var f=t.havingStyle(t.style.sup());o=We(i,f,t),p||(c=s.height-f.fontMetrics().supDrop*f.sizeMultiplier/t.sizeMultiplier)}if(a){var b=t.havingStyle(t.style.sub());u=We(a,b,t),p||(d=s.depth+b.fontMetrics().subDrop*b.sizeMultiplier/t.sizeMultiplier)}var y;t.style===ye.DISPLAY?y=l.sup1:t.style.cramped?y=l.sup3:y=l.sup2;var S=t.sizeMultiplier,v=ue(.5/l.ptPerEm/S),w=null;if(u){var x=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(s instanceof Cn||x)&&(w=ue(-s.italic))}var k;if(o&&u){c=Math.max(c,y,o.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var R=l.defaultRuleThickness,C=4*R;if(c-o.depth-(u.height-d)0&&(c+=H,d-=H)}var z=[{type:"elem",elem:u,shift:d,marginRight:v,marginLeft:w},{type:"elem",elem:o,shift:-c,marginRight:v}];k=j.makeVList({positionType:"individualShift",children:z},t)}else if(u){d=Math.max(d,l.sub1,u.height-.8*l.xHeight);var V=[{type:"elem",elem:u,marginLeft:w,marginRight:v}];k=j.makeVList({positionType:"shift",positionData:d,children:V},t)}else if(o)c=Math.max(c,y,o.depth+.25*l.xHeight),k=j.makeVList({positionType:"shift",positionData:-c,children:[{type:"elem",elem:o,marginRight:v}]},t);else throw new Error("supsub must have either sup or sub.");var P=Ll(s,"right")||"mord";return j.makeSpan([P],[s,j.makeSpan(["msupsub"],[k])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[Je(e.base,t)];e.sub&&a.push(Je(e.sub,t)),e.sup&&a.push(Je(e.sup,t));var s;if(n)s=r?"mover":"munder";else if(e.sub)if(e.sup){var l=e.base;l&&l.type==="op"&&l.limits&&t.style===ye.DISPLAY||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(t.style===ye.DISPLAY||l.limits)?s="munderover":s="msubsup"}else{var u=e.base;u&&u.type==="op"&&u.limits&&(t.style===ye.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||t.style===ye.DISPLAY)?s="munder":s="msub"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===ye.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===ye.DISPLAY)?s="mover":s="msup"}return new ne.MathNode(s,a)}});ti({type:"atom",htmlBuilder(e,t){return j.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new ne.MathNode("mo",[kn(e.text,e.mode)]);if(e.family==="bin"){var r=dc(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var Z4={mi:"italic",mn:"normal",mtext:"normal"};ti({type:"mathord",htmlBuilder(e,t){return j.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new ne.MathNode("mi",[kn(e.text,e.mode,t)]),r=dc(e,t)||"italic";return r!==Z4[n.type]&&n.setAttribute("mathvariant",r),n}});ti({type:"textord",htmlBuilder(e,t){return j.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=kn(e.text,e.mode,t),r=dc(e,t)||"normal",i;return e.mode==="text"?i=new ne.MathNode("mtext",[n]):/[0-9]/.test(e.text)?i=new ne.MathNode("mn",[n]):e.text==="\\prime"?i=new ne.MathNode("mo",[n]):i=new ne.MathNode("mi",[n]),r!==Z4[i.type]&&i.setAttribute("mathvariant",r),i}});var Bu={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Fu={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ti({type:"spacing",htmlBuilder(e,t){if(Fu.hasOwnProperty(e.text)){var n=Fu[e.text].className||"";if(e.mode==="text"){var r=j.makeOrd(e,t,"textord");return r.classes.push(n),r}else return j.makeSpan(["mspace",n],[j.mathsym(e.text,e.mode,t)],t)}else{if(Bu.hasOwnProperty(e.text))return j.makeSpan(["mspace",Bu[e.text]],[],t);throw new re('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(Fu.hasOwnProperty(e.text))n=new ne.MathNode("mtext",[new ne.TextNode(" ")]);else{if(Bu.hasOwnProperty(e.text))return new ne.MathNode("mspace");throw new re('Unknown type of space "'+e.text+'"')}return n}});var Zf=()=>{var e=new ne.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};ti({type:"tag",mathmlBuilder(e,t){var n=new ne.MathNode("mtable",[new ne.MathNode("mtr",[Zf(),new ne.MathNode("mtd",[Rr(e.body,t)]),Zf(),new ne.MathNode("mtd",[Rr(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var Jf={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},e1={"\\textbf":"textbf","\\textmd":"textmd"},UN={"\\textit":"textit","\\textup":"textup"},t1=(e,t)=>{var n=e.font;if(n){if(Jf[n])return t.withTextFontFamily(Jf[n]);if(e1[n])return t.withTextFontWeight(e1[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(UN[n])};ce({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"text",mode:n.mode,body:It(i),font:r}},htmlBuilder(e,t){var n=t1(e,t),r=Ot(e.body,n,!0);return j.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=t1(e,t);return Rr(e.body,n)}});ce({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=We(e.body,t),r=j.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=j.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return j.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){var n=new ne.MathNode("mo",[new ne.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new ne.MathNode("munder",[Je(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});ce({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=We(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return j.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new ne.MathNode("mpadded",[Je(e.body,t)],["vcenter"])}});ce({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new re("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=n1(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?"␣":" "),Sr=x4,J4=`[ \r ]`,VN="\\\\[a-zA-Z@]+",jN="\\\\[^\uD800-\uDFFF]",qN="("+VN+")"+J4+"*",$N=`\\\\( |[ \r ]+ ?)[ \r ]*`,Fl="[̀-ͯ]",WN=new RegExp(Fl+"+$"),YN="("+J4+"+)|"+($N+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(Fl+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Fl+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+qN)+("|"+jN+")");class r1{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(YN,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new Sn("EOF",new cn(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new re("Unexpected character: '"+t[n]+"'",new Sn(t[n],new cn(this,n,n+1)));var i=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(` @@ -398,4 +398,4 @@ l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, -`),aL=e=>e.replace(/\\\[/g,"$$").replace(/\\\]/g,"$$").replace(/\\\(/g,"$").replace(/\\\)/g,"$"),sL={h1:e=>R.jsx(Xe,{...e,variant:"h1"}),h2:e=>R.jsx(Xe,{...e,variant:"h2"}),h3:e=>R.jsx(Xe,{...e,variant:"h3"}),h4:e=>R.jsx(Xe,{...e,variant:"h4"}),h5:e=>R.jsx(Xe,{...e,variant:"h5"}),h6:e=>R.jsx(Xe,{...e,variant:"h6"}),p:e=>R.jsx(Xe,{...e,variant:"body1"}),caption:e=>R.jsx(Xe,{...e,variant:"caption"}),table:e=>R.jsx(t8,{children:R.jsx(q7,{...e})}),thead:s8,tbody:X7,tr:l8,th:md,td:md},oL=["script","iframe","style","form","input","textarea"],uL={...fo,tagNames:(fo.tagNames||[]).filter(e=>!oL.includes(e))},lL=({content:e})=>(e=iL(e),e=aL(e),R.jsx(rL,{children:R.jsx(OA,{remarkPlugins:[Cf,l1],rehypePlugins:[DR,WP,[Cf,l1,nL,uL]],components:sL,children:e})})),ML=()=>{const[{status:e,messages:t}]=q1(),n=O.useRef(null),r=O.useRef(null),[i,a]=O.useState(!0),s=O.useRef(!1),o=O.useRef(!1),u=O.useRef(0);O.useEffect(()=>{if(s.current)return;o.current=!0,r.current?.scrollIntoView({behavior:"smooth"});const d=setTimeout(()=>{o.current=!1},200);return()=>clearTimeout(d)},[t]);const l=$s(()=>{const d=n.current;if(!d)return;const{scrollTop:p,scrollHeight:f,clientHeight:b}=d,y=f-p-b;a(y<10),o.current||p{s.current=!1,o.current=!0,r.current?.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{o.current=!1},200)};return R.jsxs(Qe,{ref:n,sx:{flex:1,overflowX:"hidden",overflowY:"auto",gap:4,"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none",msOverflowStyle:"none"},onScroll:l,onWheel:d=>{d.deltaY<0&&(s.current=!0)},onTouchMove:()=>{s.current=!0},children:[t.map((d,p)=>R.jsx(cL,{message:d,isLast:p===t.length-1},d.id)),e==="opened"&&R.jsx(Rx,{size:"large"}),R.jsx(Ar,{ref:r,sx:{width:"100%",height:0}}),!i&&R.jsx(Kr,{onClick:c,size:"small",sx:{position:"sticky",bottom:0,alignSelf:"flex-end",mr:1.5,width:28,height:28,bgcolor:"white",border:"1px solid",borderColor:"grey.300","&:hover":{bgcolor:"grey.100"}},"aria-label":"Scroll to bottom",children:R.jsx(d8,{})})]})},cL=O.memo(({message:e,isLast:t})=>{const{role:n,content:r}=e,[{status:i},{generate:a}]=q1(),[s,o]=O.useState(!1);O.useEffect(()=>{const S=setTimeout(()=>o(!1),2e3);return()=>clearTimeout(S)},[s]);const u=$s(()=>{navigator.clipboard.writeText(r),o(!0)}),l=$s(()=>{a(e)}),c=n==="user"?"flex-end":"flex-start",d=n==="user"?R.jsx(Xe,{variant:"body1",sx:{px:2,py:1.5,borderRadius:"0.5rem",backgroundColor:"background.default",fontSize:"0.95rem"},children:r}):R.jsx(lL,{content:r}),p=!t||i==="closed",f=n==="user"||n==="assistant"&&p,b=n==="assistant"&&p,y=n==="user"?{"&:hover .actions-user":{opacity:1,pointerEvents:"auto"}}:{};return R.jsx(Qe,{direction:"row",sx:{width:"100%",justifyContent:c},children:R.jsxs(Qe,{sx:{maxWidth:"100%",gap:1,...y},children:[d,(f||b)&&R.jsxs(Qe,{direction:"row",className:n==="user"?"actions-user":void 0,sx:{justifyContent:c,color:"grey.600",gap:.5,...n==="user"?{opacity:0,pointerEvents:"none",transition:"opacity .15s ease"}:{}},children:[f&&R.jsx(Xs,{title:s?"Copied!":"Copy",slotProps:{tooltip:{sx:{bgcolor:"primary.main",borderRadius:1}},popper:{modifiers:[{name:"offset",options:{offset:[0,-8]}}]}},children:R.jsx(Kr,{onClick:u,size:"small",sx:{width:24,height:24,borderRadius:"8px","&:hover":{bgcolor:"action.hover"}},children:s?R.jsx(Sp,{}):R.jsx(wp,{})})}),b&&R.jsx(Xs,{title:"Regenerate",slotProps:{tooltip:{sx:{bgcolor:"primary.main",borderRadius:1}},popper:{modifiers:[{name:"offset",options:{offset:[0,-8]}}]}},children:R.jsx(Kr,{onClick:l,size:"small",sx:{width:24,height:24,borderRadius:"8px","&:hover":{bgcolor:"action.hover"}},children:R.jsx(N8,{})})})]},"actions")]})})}),dL=le(Qe)(({theme:e})=>{const{spacing:t}=e;return{width:"100%",height:"100%",justifyContent:"flex-start",alignItems:"stretch",overflow:"hidden"}}),hL=le(Qe)(({theme:e})=>{const{palette:t,spacing:n}=e;return{height:"100%",paddingBlock:n(3),paddingInline:n(2),gap:n(3),overflow:"hidden",transition:"width 0.3s ease-in-out",backgroundColor:t.grey[200]}}),fL=le(Qe)(({theme:e})=>{const{spacing:t}=e;return{width:"100%",height:"2.5rem",flex:"none",marginTop:t(1),paddingBlock:t(2),paddingInline:t(4),overflow:"hidden"}}),pL=le(Qe)(({theme:e})=>{const{palette:t,spacing:n}=e;return{flex:1,alignItems:"center",overflow:"hidden",backgroundColor:t.grey[100]}}),mL=le(Qe)(({theme:e})=>{const{spacing:t}=e;return{width:"48.75rem",maxWidth:"100%",height:"100%",gap:t(2),padding:t(4),overflow:"hidden"}}),DL=({children:e})=>{const[{modelName:t,clusterInfo:{status:n}}]=ja(),[r,{open:i}]=$o({color:"primary",titleIcon:R.jsx(Ls,{}),title:"Reconnect your nodes",content:R.jsxs(Qe,{sx:{gap:7},children:[R.jsxs(Qe,{sx:{gap:1},children:[R.jsx(Xe,{variant:"body1",children:"Run join command on your new Node"}),R.jsx(Td,{})]}),R.jsxs(Qe,{sx:{gap:1},children:[R.jsx(Xe,{variant:"body1",children:"Check your live node status"}),R.jsx(Xe,{variant:"body2",color:"text.disabled",children:"After you successfully start the server on the nodes, you should see them show up on the below dashboard."}),R.jsx(vs,{})]})]}),confirmLabel:"Finish"});O.useEffect(()=>{n==="waiting"&&i()},[n,i]);const[a,{open:s}]=$o({color:"primary",title:"",content:R.jsxs(R.Fragment,{children:[R.jsx(Xe,{variant:"body1",children:"Cluster rebalancing"}),R.jsx(Xe,{variant:"body2",color:"text.disabled",children:"We have noticed one of your nodes has been disconnected. We are now rebalancing your inference requests onto working nodes. Please wait a few seconds for the cluster to rebalance itself."}),R.jsx(vs,{variant:"menu"})]}),confirmLabel:"Finish"});O.useEffect(()=>{n==="rebalancing"&&s()},[n,s]);const[o,u]=O.useState(!0),[l,{open:c}]=$o({color:"primary",titleIcon:R.jsx(m8,{}),title:"Add Nodes",content:R.jsxs(Qe,{sx:{gap:7},children:[R.jsxs(Qe,{sx:{gap:1},children:[R.jsx(Xe,{variant:"body1",children:"Run join command on your new Node"}),R.jsx(Td,{})]}),R.jsxs(Qe,{sx:{gap:1},children:[R.jsx(Xe,{variant:"body1",children:"Check your live node status"}),R.jsx(Xe,{variant:"body2",color:"text.disabled",children:"After you successfully start the server on the nodes, you should see them show up on the below dashboard."}),R.jsx(vs,{})]})]}),confirmLabel:"Finish"}),d=()=>R.jsx("svg",{width:"1.7rem",height:"1.7rem",viewBox:"0 0 27 27",fill:"currentColor",children:R.jsxs("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",children:[R.jsx("rect",{width:"6",height:"6",x:"16",y:"16",rx:"1"}),R.jsx("rect",{width:"6",height:"6",x:"2",y:"16",rx:"1"}),R.jsx("rect",{width:"6",height:"6",x:"9",y:"2",rx:"1"}),R.jsx("path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3m-7-4V8"})]})});return R.jsxs(dL,{direction:"row",children:[R.jsxs(hL,{sx:{width:o?"19.25rem":"3.5rem",paddingInline:o?3.5:2},children:[R.jsx(Qe,{direction:"row",sx:{justifyContent:"flex-end",alignItems:"center",gap:2},children:o?R.jsxs(R.Fragment,{children:[R.jsx(yd,{}),R.jsx(Ar,{sx:{flex:1}}),R.jsx(Xs,{title:"Collapse Sidebar",placement:"right",slotProps:{tooltip:{sx:{bgcolor:"primary.main",color:"common.white"}}},children:R.jsx(Kr,{size:"em",sx:{fontSize:"1.5rem",borderRadius:"8px",color:"#808080FF","&:hover":{bgcolor:"action.hover"}},onClick:()=>u(p=>!p),children:R.jsx(x8,{})})})]}):R.jsx(R.Fragment,{children:R.jsxs(Ar,{sx:{position:"relative",width:28,height:28,display:"flex",alignItems:"center",justifyContent:"center","&:hover .logo":{opacity:0},"&:hover .toggle":{opacity:1,pointerEvents:"auto",transform:"scale(1)"}},children:[R.jsx(Ar,{className:"logo",sx:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity .15s ease",opacity:1},children:R.jsx(yd,{})}),R.jsx(Xs,{title:"Expand Sidebar",placement:"right",slotProps:{tooltip:{sx:{bgcolor:"primary.main",color:"common.white"}}},children:R.jsx(Kr,{className:"toggle",size:"em",sx:{position:"absolute",opacity:0,pointerEvents:"none",fontSize:"1.5rem",transition:"opacity .15s ease, transform .15s ease","&:hover":{bgcolor:"action.hover"}},"aria-label":"Expand Sidebar",onClick:()=>u(p=>!p),children:R.jsx(S8,{})})})]})})}),o&&R.jsxs(Qe,{children:[R.jsxs(Qe,{direction:"row",sx:{gap:1,color:"text.primary"},children:[R.jsx(d,{}),R.jsx(Xe,{variant:"body1",sx:{fontSize:"0.875rem",color:"text.primary",mt:"1.5px"},children:"Cluster topology"})]}),R.jsx(Xu,{sx:{width:"22rem",marginLeft:"-25px",color:"#545454FF",marginTop:"30px",marginBottom:"20px"}}),R.jsx(vs,{variant:"menu"}),R.jsx(V1,{color:"info",startIcon:R.jsx(k8,{}),onClick:c,sx:{mt:"30px"},children:"Add Nodes"})]})]}),R.jsxs(pL,{children:[R.jsx(fL,{direction:"row",children:R.jsx(Xe,{variant:"h3",fontWeight:500,children:t})}),R.jsx(mL,{children:e})]}),l,r,a]})},gL=le(Qe)(({theme:e})=>{const{palette:t,spacing:n}=e;return{width:"100%",height:"100%",display:"flex",alignItems:"center",gap:n(3),padding:n(3),overflow:"hidden",backgroundColor:t.grey[100]}}),bL=le(Qe)(({theme:e})=>{const{spacing:t}=e;return{width:"100%",flex:"none",justifyContent:"flex-start",alignItems:"center",gap:t(1)}}),yL=le(Ar)(({theme:e})=>{const{spacing:t}=e;return{position:"relative",flex:"1",width:"100%",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",overflowY:"hidden"}}),vL=le(Qe)(({theme:e})=>{const{spacing:t}=e;return{width:"30rem",height:"100%",gap:t(7),overflow:"hidden"}}),TL=le(Qe)(({theme:e})=>{const{spacing:t}=e;return{width:"calc((100% - 30rem) / 2 - 4rem)",height:"100%",overflow:"auto",position:"absolute",top:0,left:"2rem",alignItems:"flex-end",gap:t(2)}}),xL=le(Qe)(({theme:e})=>{const{spacing:t}=e;return{width:"calc((100% - 30rem) / 2 - 4rem)",height:"100%",overflow:"auto",position:"absolute",top:0,right:"2rem",alignItems:"flex-start",gap:t(2)}}),PL=({children:e,contentStart:t,contentEnd:n=R.jsx(EL,{})})=>R.jsxs(gL,{children:[R.jsx(bL,{direction:"row",children:R.jsx(L8,{})}),R.jsxs(yL,{children:[R.jsx(vL,{children:e}),t&&R.jsx(TL,{children:t})||void 0,n&&R.jsx(xL,{children:n})||void 0]})]}),EL=()=>{const[{initNodesNumber:e,networkType:t,modelName:n,clusterInfo:r}]=ja();return null};export{ML as C,Rx as D,ap as F,k8 as I,Td as J,PL as M,vs as N,vp as O,xp as S,AL as a,wL as b,sp as c,dp as d,hp as e,i0 as f,DL as g,Yg as i,a0 as u}; +`),aL=e=>e.replace(/\\\[/g,"$$").replace(/\\\]/g,"$$").replace(/\\\(/g,"$").replace(/\\\)/g,"$"),sL={h1:e=>M.jsx(Xe,{...e,variant:"h1"}),h2:e=>M.jsx(Xe,{...e,variant:"h2"}),h3:e=>M.jsx(Xe,{...e,variant:"h3"}),h4:e=>M.jsx(Xe,{...e,variant:"h4"}),h5:e=>M.jsx(Xe,{...e,variant:"h5"}),h6:e=>M.jsx(Xe,{...e,variant:"h6"}),p:e=>M.jsx(Xe,{...e,variant:"body1"}),caption:e=>M.jsx(Xe,{...e,variant:"caption"}),table:e=>M.jsx(t8,{children:M.jsx(q7,{...e})}),thead:s8,tbody:X7,tr:l8,th:md,td:md},oL=["script","iframe","style","form","input","textarea"],uL={...fo,tagNames:(fo.tagNames||[]).filter(e=>!oL.includes(e))},lL=({content:e})=>(e=iL(e),e=aL(e),M.jsx(rL,{children:M.jsx(OA,{remarkPlugins:[Cf,l1],rehypePlugins:[DR,WP,[Cf,l1,nL,uL]],components:sL,children:e})})),ML=()=>{const[{status:e,messages:t}]=q1(),n=O.useRef(null),r=O.useRef(null),[i,a]=O.useState(!0),s=O.useRef(!1),o=O.useRef(!1),u=O.useRef(0);O.useEffect(()=>{if(s.current)return;o.current=!0,r.current?.scrollIntoView({behavior:"smooth"});const d=setTimeout(()=>{o.current=!1},200);return()=>clearTimeout(d)},[t]);const l=$s(()=>{const d=n.current;if(!d)return;const{scrollTop:p,scrollHeight:f,clientHeight:b}=d,y=f-p-b;a(y<10),o.current||p{s.current=!1,o.current=!0,r.current?.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{o.current=!1},200)};return M.jsxs(Qe,{ref:n,sx:{flex:1,overflowX:"hidden",overflowY:"auto",gap:4,"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none",msOverflowStyle:"none"},onScroll:l,onWheel:d=>{d.deltaY<0&&(s.current=!0)},onTouchMove:()=>{s.current=!0},children:[t.map((d,p)=>M.jsx(cL,{message:d,isLast:p===t.length-1},d.id)),e==="opened"&&M.jsx(Rx,{size:"large"}),M.jsx(Ar,{ref:r,sx:{width:"100%",height:0}}),!i&&M.jsx(Kr,{onClick:c,size:"small",sx:{position:"sticky",bottom:0,alignSelf:"flex-end",mr:1.5,width:28,height:28,bgcolor:"white",border:"1px solid",borderColor:"grey.300","&:hover":{bgcolor:"grey.100"}},"aria-label":"Scroll to bottom",children:M.jsx(d8,{})})]})},cL=O.memo(({message:e,isLast:t})=>{const{role:n,content:r}=e,[{status:i},{generate:a}]=q1(),[s,o]=O.useState(!1);O.useEffect(()=>{const S=setTimeout(()=>o(!1),2e3);return()=>clearTimeout(S)},[s]);const u=$s(()=>{navigator.clipboard.writeText(r),o(!0)}),l=$s(()=>{a(e)}),c=n==="user"?"flex-end":"flex-start",d=n==="user"?M.jsx(Xe,{variant:"body1",sx:{px:2,py:1.5,borderRadius:"0.5rem",backgroundColor:"background.default",fontSize:"0.95rem"},children:r}):M.jsx(lL,{content:r}),p=!t||i==="closed",f=n==="user"||n==="assistant"&&p,b=n==="assistant"&&p,y=n==="user"?{"&:hover .actions-user":{opacity:1,pointerEvents:"auto"}}:{};return M.jsx(Qe,{direction:"row",sx:{width:"100%",justifyContent:c},children:M.jsxs(Qe,{sx:{maxWidth:"100%",gap:1,...y},children:[d,(f||b)&&M.jsxs(Qe,{direction:"row",className:n==="user"?"actions-user":void 0,sx:{justifyContent:c,color:"grey.600",gap:.5,...n==="user"?{opacity:0,pointerEvents:"none",transition:"opacity .15s ease"}:{}},children:[f&&M.jsx(Xs,{title:s?"Copied!":"Copy",slotProps:{tooltip:{sx:{bgcolor:"primary.main",borderRadius:1}},popper:{modifiers:[{name:"offset",options:{offset:[0,-8]}}]}},children:M.jsx(Kr,{onClick:u,size:"small",sx:{width:24,height:24,borderRadius:"8px","&:hover":{bgcolor:"action.hover"}},children:s?M.jsx(Sp,{}):M.jsx(wp,{})})}),b&&M.jsx(Xs,{title:"Regenerate",slotProps:{tooltip:{sx:{bgcolor:"primary.main",borderRadius:1}},popper:{modifiers:[{name:"offset",options:{offset:[0,-8]}}]}},children:M.jsx(Kr,{onClick:l,size:"small",sx:{width:24,height:24,borderRadius:"8px","&:hover":{bgcolor:"action.hover"}},children:M.jsx(N8,{})})})]},"actions")]})})}),dL=le(Qe)(({theme:e})=>{const{spacing:t}=e;return{width:"100%",height:"100%",justifyContent:"flex-start",alignItems:"stretch",overflow:"hidden"}}),hL=le(Qe)(({theme:e})=>{const{palette:t,spacing:n}=e;return{height:"100%",paddingBlock:n(3),paddingInline:n(2),gap:n(3),overflow:"hidden",transition:"width 0.3s ease-in-out",backgroundColor:t.grey[200]}}),fL=le(Qe)(({theme:e})=>{const{spacing:t}=e;return{width:"100%",height:"2.5rem",flex:"none",marginTop:t(1),paddingBlock:t(2),paddingInline:t(4),overflow:"hidden"}}),pL=le(Qe)(({theme:e})=>{const{palette:t,spacing:n}=e;return{flex:1,alignItems:"center",overflow:"hidden",backgroundColor:t.grey[100]}}),mL=le(Qe)(({theme:e})=>{const{spacing:t}=e;return{width:"48.75rem",maxWidth:"100%",height:"100%",gap:t(2),padding:t(4),overflow:"hidden"}}),DL=({children:e})=>{const[{modelName:t,clusterInfo:{status:n}}]=ja(),[r,{open:i}]=$o({color:"primary",titleIcon:M.jsx(Ls,{}),title:"Reconnect your nodes",content:M.jsxs(Qe,{sx:{gap:7},children:[M.jsxs(Qe,{sx:{gap:1},children:[M.jsx(Xe,{variant:"body1",children:"Run join command on your new Node"}),M.jsx(Td,{})]}),M.jsxs(Qe,{sx:{gap:1},children:[M.jsx(Xe,{variant:"body1",children:"Check your live node status"}),M.jsx(Xe,{variant:"body2",color:"text.disabled",children:"After you successfully start the server on the nodes, you should see them show up on the below dashboard."}),M.jsx(vs,{})]})]}),confirmLabel:"Finish"});O.useEffect(()=>{n==="waiting"&&i()},[n,i]);const[a,{open:s}]=$o({color:"primary",title:"",content:M.jsxs(M.Fragment,{children:[M.jsx(Xe,{variant:"body1",children:"Cluster rebalancing"}),M.jsx(Xe,{variant:"body2",color:"text.disabled",children:"We have noticed one of your nodes has been disconnected. We are now rebalancing your inference requests onto working nodes. Please wait a few seconds for the cluster to rebalance itself."}),M.jsx(vs,{variant:"menu"})]}),confirmLabel:"Finish"});O.useEffect(()=>{n==="rebalancing"&&s()},[n,s]);const[o,u]=O.useState(!0),[l,{open:c}]=$o({color:"primary",titleIcon:M.jsx(m8,{}),title:"Add Nodes",content:M.jsxs(Qe,{sx:{gap:7},children:[M.jsxs(Qe,{sx:{gap:1},children:[M.jsx(Xe,{variant:"body1",children:"Run join command on your new Node"}),M.jsx(Td,{})]}),M.jsxs(Qe,{sx:{gap:1},children:[M.jsx(Xe,{variant:"body1",children:"Check your live node status"}),M.jsx(Xe,{variant:"body2",color:"text.disabled",children:"After you successfully start the server on the nodes, you should see them show up on the below dashboard."}),M.jsx(vs,{})]})]}),confirmLabel:"Finish"});return M.jsxs(dL,{direction:"row",children:[M.jsxs(hL,{sx:{width:o?"17.25rem":"3.5rem",paddingInline:o?3:2},children:[M.jsx(Qe,{direction:"row",sx:{justifyContent:"flex-end",alignItems:"center",gap:2},children:o?M.jsxs(M.Fragment,{children:[M.jsx(yd,{}),M.jsx(Ar,{sx:{flex:1}}),M.jsx(Xs,{title:"Collapse Sidebar",placement:"right",slotProps:{tooltip:{sx:{bgcolor:"primary.main",color:"common.white"}}},children:M.jsx(Kr,{size:"em",sx:{fontSize:"1.5rem",borderRadius:"8px",color:"#808080FF","&:hover":{bgcolor:"action.hover"}},onClick:()=>u(d=>!d),children:M.jsx(x8,{})})})]}):M.jsx(M.Fragment,{children:M.jsxs(Ar,{sx:{position:"relative",width:28,height:28,display:"flex",alignItems:"center",justifyContent:"center","&:hover .logo":{opacity:0},"&:hover .toggle":{opacity:1,pointerEvents:"auto",transform:"scale(1)"}},children:[M.jsx(Ar,{className:"logo",sx:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity .15s ease",opacity:1},children:M.jsx(yd,{})}),M.jsx(Xs,{title:"Expand Sidebar",placement:"right",slotProps:{tooltip:{sx:{bgcolor:"primary.main",color:"common.white"}}},children:M.jsx(Kr,{className:"toggle",size:"em",sx:{position:"absolute",opacity:0,pointerEvents:"none",fontSize:"1.5rem",transition:"opacity .15s ease, transform .15s ease","&:hover":{bgcolor:"action.hover"}},"aria-label":"Expand Sidebar",onClick:()=>u(d=>!d),children:M.jsx(S8,{})})})]})})}),o&&M.jsxs(Qe,{children:[M.jsx(Qe,{direction:"row",sx:{gap:1,color:"text.primary"},children:M.jsx(Xe,{variant:"body1",sx:{mt:"1.5px",color:"#666666FF",fontWeight:600},children:"Cluster topology"})}),M.jsx(Xu,{sx:{width:"22rem",marginLeft:"-25px",color:"#545454FF",marginTop:"30px",marginBottom:"20px"}}),M.jsx(vs,{variant:"menu"}),M.jsx(V1,{color:"info",startIcon:M.jsx(k8,{}),onClick:c,sx:{mt:"30px"},children:"Add Nodes"})]})]}),M.jsxs(pL,{children:[M.jsx(fL,{direction:"row",children:M.jsx(Xe,{variant:"h3",fontWeight:500,children:t})}),M.jsx(mL,{children:e})]}),l,r,a]})},gL=le(Qe)(({theme:e})=>{const{palette:t,spacing:n}=e;return{width:"100%",height:"100%",display:"flex",alignItems:"center",gap:n(3),padding:n(3),overflow:"hidden",backgroundColor:t.grey[100]}}),bL=le(Qe)(({theme:e})=>{const{spacing:t}=e;return{width:"100%",flex:"none",justifyContent:"flex-start",alignItems:"center",gap:t(1)}}),yL=le(Ar)(({theme:e})=>{const{spacing:t}=e;return{position:"relative",flex:"1",width:"100%",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",overflowY:"hidden"}}),vL=le(Qe)(({theme:e})=>{const{spacing:t}=e;return{width:"30rem",height:"100%",gap:t(7),overflow:"hidden"}}),TL=le(Qe)(({theme:e})=>{const{spacing:t}=e;return{width:"calc((100% - 30rem) / 2 - 4rem)",height:"100%",overflow:"auto",position:"absolute",top:0,left:"2rem",alignItems:"flex-end",gap:t(2)}}),xL=le(Qe)(({theme:e})=>{const{spacing:t}=e;return{width:"calc((100% - 30rem) / 2 - 4rem)",height:"100%",overflow:"auto",position:"absolute",top:0,right:"2rem",alignItems:"flex-start",gap:t(2)}}),PL=({children:e,contentStart:t,contentEnd:n=M.jsx(EL,{})})=>M.jsxs(gL,{children:[M.jsx(bL,{direction:"row",children:M.jsx(L8,{})}),M.jsxs(yL,{children:[M.jsx(vL,{children:e}),t&&M.jsx(TL,{children:t})||void 0,n&&M.jsx(xL,{children:n})||void 0]})]}),EL=()=>{const[{initNodesNumber:e,networkType:t,modelName:n,clusterInfo:r}]=ja();return null};export{ML as C,Rx as D,ap as F,k8 as I,Td as J,PL as M,vs as N,vp as O,xp as S,AL as a,wL as b,sp as c,dp as d,hp as e,i0 as f,DL as g,Yg as i,a0 as u}; diff --git a/src/frontend/dist/assets/setup-D6yQPS_R.js b/src/frontend/dist/assets/setup-D6eE3iQP.js similarity index 76% rename from src/frontend/dist/assets/setup-D6yQPS_R.js rename to src/frontend/dist/assets/setup-D6eE3iQP.js index f525bbf9..73b7b0b9 100644 --- a/src/frontend/dist/assets/setup-D6yQPS_R.js +++ b/src/frontend/dist/assets/setup-D6eE3iQP.js @@ -1,6 +1,6 @@ -import{r as v,g as _,a as V,u as A,j as o,s as M,c as E,T as y,b as R,d as O,m as W,e as q,f as J,B as K,t as j,h as Q,i as Z,k as tt,l as k,I as G,n as et,o as ot,p as nt,S as rt}from"./index-v4ef5gIt.js";import{u as st,F as at,O as it,I as lt,M as dt,a as ut}from"./main-layout-BAzhIrTg.js";function ct(t){return v.Children.toArray(t).filter(e=>v.isValidElement(e))}function pt(t){return V("MuiInputAdornment",t)}const F=_("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var U;const gt=(t,e)=>{const{ownerState:r}=t;return[e.root,e[`position${R(r.position)}`],r.disablePointerEvents===!0&&e.disablePointerEvents,e[r.variant]]},vt=t=>{const{classes:e,disablePointerEvents:r,hiddenLabel:u,position:a,size:c,variant:f}=t,l={root:["root",r&&"disablePointerEvents",a&&`position${R(a)}`,f,u&&"hiddenLabel",c&&`size${R(c)}`]};return O(l,pt,e)},ft=M("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:gt})(W(({theme:t})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${F.positionStart}&:not(.${F.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),D=v.forwardRef(function(e,r){const u=A({props:e,name:"MuiInputAdornment"}),{children:a,className:c,component:f="div",disablePointerEvents:l=!1,disableTypography:b=!1,position:x,variant:n,...g}=u,i=st()||{};let d=n;n&&i.variant,i&&!d&&(d=i.variant);const m={...u,hiddenLabel:i.hiddenLabel,size:i.size,disablePointerEvents:l,position:x,variant:d},C=vt(m);return o.jsx(at.Provider,{value:null,children:o.jsx(ft,{as:f,ownerState:m,className:E(C.root,c),ref:r,...g,children:typeof a=="string"&&!b?o.jsx(y,{color:"textSecondary",children:a}):o.jsxs(v.Fragment,{children:[x==="start"?U||(U=o.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,a]})})})}),H=v.createContext({}),Y=v.createContext(void 0);function xt(t,e){return e===void 0||t===void 0?!1:Array.isArray(e)?e.includes(t):t===e}const bt=t=>{const{classes:e,fullWidth:r,selected:u,disabled:a,size:c,color:f}=t,l={root:["root",u&&"selected",a&&"disabled",r&&"fullWidth",`size${R(c)}`,f]};return O(l,J,e)},ht=M(K,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`size${R(r.size)}`]]}})(W(({theme:t})=>({...t.typography.button,borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active,[`&.${j.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${j.selected}`]:{color:(t.vars||t).palette.text.primary,backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity)}}}}},...Object.entries(t.palette).filter(Q()).map(([e])=>({props:{color:e},style:{[`&.${j.selected}`]:{color:(t.vars||t).palette[e].main,backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:t.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:t.typography.pxToRem(15)}}]}))),X=v.forwardRef(function(e,r){const{value:u,...a}=v.useContext(H),c=v.useContext(Y),f=q({...a,selected:xt(e.value,u)},e),l=A({props:f,name:"MuiToggleButton"}),{children:b,className:x,color:n="standard",disabled:g=!1,disableFocusRipple:i=!1,fullWidth:d=!1,onChange:m,onClick:C,selected:B,size:N="medium",value:T,...z}=l,w={...l,color:n,disabled:g,disableFocusRipple:i,fullWidth:d,size:N},L=bt(w),P=p=>{C&&(C(p,T),p.defaultPrevented)||m&&m(p,T)},h=c||"";return o.jsx(ht,{className:E(a.className,L.root,x,h),disabled:g,focusRipple:!i,ref:r,onClick:P,onChange:m,value:T,ownerState:w,"aria-pressed":B,...z,children:b})});function mt(t){return V("MuiToggleButtonGroup",t)}const s=_("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),Bt=t=>{const{classes:e,orientation:r,fullWidth:u,disabled:a}=t,c={root:["root",r,u&&"fullWidth"],grouped:["grouped",`grouped${R(r)}`,a&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return O(c,mt,e)},yt=M("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${s.grouped}`]:e.grouped},{[`& .${s.grouped}`]:e[`grouped${R(r.orientation)}`]},{[`& .${s.firstButton}`]:e.firstButton},{[`& .${s.lastButton}`]:e.lastButton},{[`& .${s.middleButton}`]:e.middleButton},e.root,r.orientation==="vertical"&&e.vertical,r.fullWidth&&e.fullWidth]}})(W(({theme:t})=>({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${s.grouped}`]:{[`&.${s.selected} + .${s.grouped}.${s.selected}`]:{borderTop:0,marginTop:0}},[`& .${s.firstButton},& .${s.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${s.lastButton},& .${s.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${s.lastButton}.${j.disabled},& .${s.middleButton}.${j.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${s.grouped}`]:{[`&.${s.selected} + .${s.grouped}.${s.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${s.firstButton},& .${s.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${s.lastButton},& .${s.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${s.lastButton}.${j.disabled},& .${s.middleButton}.${j.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),Ct=v.forwardRef(function(e,r){const u=A({props:e,name:"MuiToggleButtonGroup"}),{children:a,className:c,color:f="standard",disabled:l=!1,exclusive:b=!1,fullWidth:x=!1,onChange:n,orientation:g="horizontal",size:i="medium",value:d,...m}=u,C={...u,disabled:l,fullWidth:x,orientation:g,size:i},B=Bt(C),N=v.useCallback((h,p)=>{if(!n)return;const S=d&&d.indexOf(p);let I;d&&S>=0?(I=d.slice(),I.splice(S,1)):I=d?d.concat(p):[p],n(h,I)},[n,d]),T=v.useCallback((h,p)=>{n&&n(h,d===p?null:p)},[n,d]),z=v.useMemo(()=>({className:B.grouped,onChange:b?T:N,value:d,size:i,fullWidth:x,color:f,disabled:l}),[B.grouped,b,T,N,d,i,x,f,l]),w=ct(a),L=w.length,P=h=>{const p=h===0,S=h===L-1;return p&&S?"":p?B.firstButton:S?B.lastButton:B.middleButton};return o.jsx(yt,{role:"group",className:E(B.root,c),ref:r,ownerState:C,...m,children:o.jsx(H.Provider,{value:z,children:w.map((h,p)=>o.jsx(Y.Provider,{value:P(p),children:h},p))})})});/** +import{r as f,g as _,a as V,u as A,j as o,s as M,c as E,T as y,b as R,d as O,m as W,e as q,f as J,B as K,t as j,h as Q,i as Z,k as tt,l as k,I as G,n as et,o as ot,p as nt,S as rt}from"./index-CKPnC4Q3.js";import{u as st,F as at,O as it,I as lt,M as dt,a as ut}from"./main-layout-_30RNP4s.js";function ct(t){return f.Children.toArray(t).filter(e=>f.isValidElement(e))}function pt(t){return V("MuiInputAdornment",t)}const F=_("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var U;const gt=(t,e)=>{const{ownerState:r}=t;return[e.root,e[`position${R(r.position)}`],r.disablePointerEvents===!0&&e.disablePointerEvents,e[r.variant]]},ft=t=>{const{classes:e,disablePointerEvents:r,hiddenLabel:u,position:a,size:c,variant:v}=t,l={root:["root",r&&"disablePointerEvents",a&&`position${R(a)}`,v,u&&"hiddenLabel",c&&`size${R(c)}`]};return O(l,pt,e)},vt=M("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:gt})(W(({theme:t})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${F.positionStart}&:not(.${F.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),X=f.forwardRef(function(e,r){const u=A({props:e,name:"MuiInputAdornment"}),{children:a,className:c,component:v="div",disablePointerEvents:l=!1,disableTypography:b=!1,position:x,variant:n,...g}=u,i=st()||{};let d=n;n&&i.variant,i&&!d&&(d=i.variant);const m={...u,hiddenLabel:i.hiddenLabel,size:i.size,disablePointerEvents:l,position:x,variant:d},C=ft(m);return o.jsx(at.Provider,{value:null,children:o.jsx(vt,{as:v,ownerState:m,className:E(C.root,c),ref:r,...g,children:typeof a=="string"&&!b?o.jsx(y,{color:"textSecondary",children:a}):o.jsxs(f.Fragment,{children:[x==="start"?U||(U=o.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,a]})})})}),H=f.createContext({}),Y=f.createContext(void 0);function xt(t,e){return e===void 0||t===void 0?!1:Array.isArray(e)?e.includes(t):t===e}const bt=t=>{const{classes:e,fullWidth:r,selected:u,disabled:a,size:c,color:v}=t,l={root:["root",u&&"selected",a&&"disabled",r&&"fullWidth",`size${R(c)}`,v]};return O(l,J,e)},ht=M(K,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`size${R(r.size)}`]]}})(W(({theme:t})=>({...t.typography.button,borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active,[`&.${j.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${j.selected}`]:{color:(t.vars||t).palette.text.primary,backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity)}}}}},...Object.entries(t.palette).filter(Q()).map(([e])=>({props:{color:e},style:{[`&.${j.selected}`]:{color:(t.vars||t).palette[e].main,backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:t.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:t.typography.pxToRem(15)}}]}))),D=f.forwardRef(function(e,r){const{value:u,...a}=f.useContext(H),c=f.useContext(Y),v=q({...a,selected:xt(e.value,u)},e),l=A({props:v,name:"MuiToggleButton"}),{children:b,className:x,color:n="standard",disabled:g=!1,disableFocusRipple:i=!1,fullWidth:d=!1,onChange:m,onClick:C,selected:B,size:N="medium",value:T,...z}=l,w={...l,color:n,disabled:g,disableFocusRipple:i,fullWidth:d,size:N},L=bt(w),P=p=>{C&&(C(p,T),p.defaultPrevented)||m&&m(p,T)},h=c||"";return o.jsx(ht,{className:E(a.className,L.root,x,h),disabled:g,focusRipple:!i,ref:r,onClick:P,onChange:m,value:T,ownerState:w,"aria-pressed":B,...z,children:b})});function mt(t){return V("MuiToggleButtonGroup",t)}const s=_("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),Bt=t=>{const{classes:e,orientation:r,fullWidth:u,disabled:a}=t,c={root:["root",r,u&&"fullWidth"],grouped:["grouped",`grouped${R(r)}`,a&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return O(c,mt,e)},yt=M("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${s.grouped}`]:e.grouped},{[`& .${s.grouped}`]:e[`grouped${R(r.orientation)}`]},{[`& .${s.firstButton}`]:e.firstButton},{[`& .${s.lastButton}`]:e.lastButton},{[`& .${s.middleButton}`]:e.middleButton},e.root,r.orientation==="vertical"&&e.vertical,r.fullWidth&&e.fullWidth]}})(W(({theme:t})=>({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${s.grouped}`]:{[`&.${s.selected} + .${s.grouped}.${s.selected}`]:{borderTop:0,marginTop:0}},[`& .${s.firstButton},& .${s.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${s.lastButton},& .${s.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${s.lastButton}.${j.disabled},& .${s.middleButton}.${j.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${s.grouped}`]:{[`&.${s.selected} + .${s.grouped}.${s.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${s.firstButton},& .${s.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${s.lastButton},& .${s.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${s.lastButton}.${j.disabled},& .${s.middleButton}.${j.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),Ct=f.forwardRef(function(e,r){const u=A({props:e,name:"MuiToggleButtonGroup"}),{children:a,className:c,color:v="standard",disabled:l=!1,exclusive:b=!1,fullWidth:x=!1,onChange:n,orientation:g="horizontal",size:i="medium",value:d,...m}=u,C={...u,disabled:l,fullWidth:x,orientation:g,size:i},B=Bt(C),N=f.useCallback((h,p)=>{if(!n)return;const S=d&&d.indexOf(p);let I;d&&S>=0?(I=d.slice(),I.splice(S,1)):I=d?d.concat(p):[p],n(h,I)},[n,d]),T=f.useCallback((h,p)=>{n&&n(h,d===p?null:p)},[n,d]),z=f.useMemo(()=>({className:B.grouped,onChange:b?T:N,value:d,size:i,fullWidth:x,color:v,disabled:l}),[B.grouped,b,T,N,d,i,x,v,l]),w=ct(a),L=w.length,P=h=>{const p=h===0,S=h===L-1;return p&&S?"":p?B.firstButton:S?B.lastButton:B.middleButton};return o.jsx(yt,{role:"group",className:E(B.root,c),ref:r,ownerState:C,...m,children:o.jsx(H.Provider,{value:z,children:w.map((h,p)=>o.jsx(Y.Provider,{value:P(p),children:h},p))})})});/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const $t=[["path",{d:"M5 12l14 0",key:"svg-0"}]],jt=Z("outline","minus","Minus",$t),Rt=({inputRef:t,slotProps:e,onChange:r,...u})=>{const a=v.useRef(null),c=tt(a,t),f=k(n=>{n.target.value=`${Math.max(0,parseInt(n.target.value)||0)}`,r?.(n)}),l=k(n=>{if(r){const g={target:{value:n.toString()},currentTarget:{value:n.toString()},type:"change",bubbles:!0,cancelable:!0,preventDefault:()=>{},stopPropagation:()=>{}};r(g)}}),b=k(()=>{const{current:n}=a;if(!n)return;const g=Number(n.value),i=Math.max(0,g-1);n.value=i.toString(),l(i)}),x=k(()=>{const{current:n}=a;if(!n)return;const g=Number(n.value),i=Math.max(0,g+1);n.value=i.toString(),l(i)});return o.jsx(it,{...u,type:"number",inputRef:c,onChange:f,startAdornment:o.jsx(D,{position:"start",children:o.jsx(G,{onClick:b,children:o.jsx(jt,{})})}),endAdornment:o.jsx(D,{position:"end",children:o.jsx(G,{onClick:x,children:o.jsx(lt,{})})}),slotProps:{input:{step:1,sx:{textAlign:"center",...e?.input?.sx},min:0,...e?.input},...e}})},$=M(rt)(({theme:t})=>{const{spacing:e}=t;return{overflowY:"auto"}});function St(){const[{networkType:t,initNodesNumber:e,modelName:r,modelInfoList:u},{setNetworkType:a,setInitNodesNumber:c,setModelName:f,init:l}]=et(),b=ot(),x=k(async()=>{await l(),await b("/join")});return o.jsxs(dt,{children:[o.jsx(y,{variant:"h1",children:"Build Your Own AI Cluster"}),o.jsxs($,{gap:2.5,children:[o.jsxs($,{gap:.5,children:[o.jsx(y,{variant:"body1",children:"Step 1 - Specify the initial number of worker nodes to join"}),o.jsx(y,{variant:"body2",color:"text.secondary",fontWeight:"regular",children:"XXX Explainations here"})]}),o.jsxs($,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:2,children:[o.jsx(y,{color:"text.secondary",children:"Node Number"}),o.jsx(Rt,{sx:{width:"10rem",boxShadow:"none",bgcolor:"transparent"},slotProps:{root:{sx:{bgcolor:"transparent","&:hover":{bgcolor:"transparent"},"&:focus-within":{bgcolor:"transparent"}}},input:{sx:{bgcolor:"transparent !important","&:focus":{outline:"none"}}}},value:e,onChange:n=>c(Number(n.target.value))})]}),o.jsxs($,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:2,children:[o.jsx(y,{color:"text.secondary",children:"Are you nodes within the same local network?"}),o.jsxs(Ct,{sx:{width:"10rem"},exclusive:!0,value:t,onChange:(n,g)=>g&&a(g),children:[o.jsx(X,{value:"local",sx:{textDecoration:"none"},children:"Local"}),o.jsx(X,{value:"remote",sx:{textDecoration:"none"},children:"Remote"})]})]})]}),o.jsxs($,{gap:2.5,children:[o.jsxs($,{gap:.5,children:[o.jsx(y,{variant:"body1",children:"Step 2 - Select the model you would like to host"}),o.jsx(y,{variant:"body2",color:"text.secondary",fontWeight:"regular",children:"XXX Explainations here"})]}),o.jsx(ut,{})]}),o.jsx($,{direction:"row",justifyContent:"flex-end",alignItems:"center",gap:2,children:o.jsx(nt,{onClick:x,children:"Continue"})})]})}export{St as default}; + */const $t=[["path",{d:"M5 12l14 0",key:"svg-0"}]],jt=Z("outline","minus","Minus",$t),Rt=({inputRef:t,slotProps:e,onChange:r,...u})=>{const a=f.useRef(null),c=tt(a,t),v=k(n=>{n.target.value=`${Math.max(0,parseInt(n.target.value)||0)}`,r?.(n)}),l=k(n=>{if(r){const g={target:{value:n.toString()},currentTarget:{value:n.toString()},type:"change",bubbles:!0,cancelable:!0,preventDefault:()=>{},stopPropagation:()=>{}};r(g)}}),b=k(()=>{const{current:n}=a;if(!n)return;const g=Number(n.value),i=Math.max(0,g-1);n.value=i.toString(),l(i)}),x=k(()=>{const{current:n}=a;if(!n)return;const g=Number(n.value),i=Math.max(0,g+1);n.value=i.toString(),l(i)});return o.jsx(it,{...u,type:"number",inputRef:c,onChange:v,startAdornment:o.jsx(X,{position:"start",children:o.jsx(G,{onClick:b,children:o.jsx(jt,{})})}),endAdornment:o.jsx(X,{position:"end",children:o.jsx(G,{onClick:x,children:o.jsx(lt,{})})}),slotProps:{input:{step:1,sx:{textAlign:"center",...e?.input?.sx},min:0,...e?.input},...e}})},$=M(rt)(({theme:t})=>{const{spacing:e}=t;return{overflowY:"auto"}});function St(){const[{networkType:t,initNodesNumber:e,modelName:r,modelInfoList:u},{setNetworkType:a,setInitNodesNumber:c,setModelName:v,init:l}]=et(),b=ot(),x=k(async()=>{await l(),await b("/join")});return o.jsxs(dt,{children:[o.jsx(y,{variant:"h1",children:"Build Your Own AI Cluster"}),o.jsxs($,{gap:2.5,children:[o.jsxs($,{gap:.5,children:[o.jsx(y,{variant:"body1",children:"Step 1 - Specify the initial number of worker nodes to join"}),o.jsx(y,{variant:"body2",color:"text.secondary",fontWeight:"regular",children:"XXX Explainations here"})]}),o.jsxs($,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:2,children:[o.jsx(y,{color:"text.secondary",children:"Node Number"}),o.jsx(Rt,{sx:{width:"10rem",boxShadow:"none",bgcolor:"transparent"},slotProps:{root:{sx:{bgcolor:"transparent","&:hover":{bgcolor:"transparent"},"&:focus-within":{bgcolor:"transparent"}}},input:{sx:{bgcolor:"transparent !important","&:focus":{outline:"none"}}}},value:e,onChange:n=>c(Number(n.target.value))})]}),o.jsxs($,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:2,children:[o.jsx(y,{color:"text.secondary",children:"Are you nodes within the same local network?"}),o.jsxs(Ct,{sx:{width:"10rem",textTransform:"none"},exclusive:!0,value:t,onChange:(n,g)=>g&&a(g),children:[o.jsx(D,{value:"local",sx:{textTransform:"none"},children:"Local"}),o.jsx(D,{value:"remote",sx:{textTransform:"none"},children:"Remote"})]})]})]}),o.jsxs($,{gap:2.5,children:[o.jsxs($,{gap:.5,children:[o.jsx(y,{variant:"body1",children:"Step 2 - Select the model you would like to host"}),o.jsx(y,{variant:"body2",color:"text.secondary",fontWeight:"regular",children:"XXX Explainations here"})]}),o.jsx(ut,{})]}),o.jsx($,{direction:"row",justifyContent:"flex-end",alignItems:"center",gap:2,children:o.jsx(nt,{onClick:x,children:"Continue"})})]})}export{St as default}; diff --git a/src/frontend/dist/index.html b/src/frontend/dist/index.html index 82a5993d..08e3fe25 100644 --- a/src/frontend/dist/index.html +++ b/src/frontend/dist/index.html @@ -5,7 +5,7 @@ Parallax Open Source - +