promptfoo 0.113.2 → 0.113.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.json +2 -2
- package/dist/src/app/assets/{index-DDgDcSbp.js → index-CvKQ0e4T.js} +5 -5
- package/dist/src/app/assets/{index.es-CTuWilQA.js → index.es-RGQT-6h9.js} +1 -1
- package/dist/src/app/assets/{source-map-support-CMD9DZ3t.js → source-map-support-CEIPORzr.js} +1 -1
- package/dist/src/app/assets/{sync-DXeGLZqh.js → sync-D7Aaf28o.js} +1 -1
- package/dist/src/app/index.html +1 -1
- package/dist/src/redteam/commands/discover.d.ts +137 -15
- package/dist/src/redteam/commands/discover.d.ts.map +1 -1
- package/dist/src/redteam/commands/discover.js +142 -78
- package/dist/src/redteam/commands/discover.js.map +1 -1
- package/dist/src/redteam/commands/generate.d.ts.map +1 -1
- package/dist/src/redteam/commands/generate.js +6 -3
- package/dist/src/redteam/commands/generate.js.map +1 -1
- package/dist/src/redteam/commands/run.d.ts.map +1 -1
- package/dist/src/redteam/commands/run.js +5 -0
- package/dist/src/redteam/commands/run.js.map +1 -1
- package/dist/src/redteam/constants.d.ts +4 -4
- package/dist/src/redteam/constants.d.ts.map +1 -1
- package/dist/src/redteam/constants.js +3 -4
- package/dist/src/redteam/constants.js.map +1 -1
- package/dist/src/redteam/index.d.ts.map +1 -1
- package/dist/src/redteam/index.js +8 -0
- package/dist/src/redteam/index.js.map +1 -1
- package/dist/src/redteam/plugins/harmful/common.d.ts.map +1 -1
- package/dist/src/redteam/plugins/harmful/common.js +4 -1
- package/dist/src/redteam/plugins/harmful/common.js.map +1 -1
- package/dist/src/redteam/plugins/index.d.ts.map +1 -1
- package/dist/src/redteam/plugins/index.js +1 -2
- package/dist/src/redteam/plugins/index.js.map +1 -1
- package/dist/src/redteam/shared.d.ts.map +1 -1
- package/dist/src/redteam/shared.js +3 -1
- package/dist/src/redteam/shared.js.map +1 -1
- package/dist/src/telemetry.d.ts.map +1 -1
- package/dist/src/telemetry.js +2 -0
- package/dist/src/telemetry.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -214,7 +214,7 @@ export default theme;`}function createThemeNoVars(t={},...Ae){const{breakpoints:
|
|
|
214
214
|
`:null,dashAnimation=typeof circularDashKeyframe!="string"?css`
|
|
215
215
|
animation: ${circularDashKeyframe} 1.4s ease-in-out infinite;
|
|
216
216
|
`:null,useUtilityClasses$1U=t=>{const{classes:Ae,variant:xe,color:Ee,disableShrink:Se}=t,Ce={root:["root",xe,`color${capitalize$1(Ee)}`],svg:["svg"],circle:["circle",`circle${capitalize$1(xe)}`,Se&&"circleDisableShrink"]};return composeClasses(Ce,getCircularProgressUtilityClass,Ae)},CircularProgressRoot=styled("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,Ae[xe.variant],Ae[`color${capitalize$1(xe.color)}`]]}})(memoTheme(({theme:t})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:rotateAnimation||{animation:`${circularRotateKeyframe} 1.4s linear infinite`}},...Object.entries(t.palette).filter(createSimplePaletteValueFilter()).map(([Ae])=>({props:{color:Ae},style:{color:(t.vars||t).palette[Ae].main}}))]}))),CircularProgressSVG=styled("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,Ae)=>Ae.svg})({display:"block"}),CircularProgressCircle=styled("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.circle,Ae[`circle${capitalize$1(xe.variant)}`],xe.disableShrink&&Ae.circleDisableShrink]}})(memoTheme(({theme:t})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:Ae})=>Ae.variant==="indeterminate"&&!Ae.disableShrink,style:dashAnimation||{animation:`${circularDashKeyframe} 1.4s ease-in-out infinite`}}]}))),CircularProgress=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiCircularProgress"}),{className:Se,color:Ce="primary",disableShrink:_e=!1,size:Ie=40,style:Be,thickness:Te=3.6,value:Pe=0,variant:ke="indeterminate",...$e}=Ee,Oe={...Ee,color:Ce,disableShrink:_e,size:Ie,thickness:Te,value:Pe,variant:ke},Ue=useUtilityClasses$1U(Oe),qe={},ze={},Qe={};if(ke==="determinate"){const Ge=2*Math.PI*((SIZE-Te)/2);qe.strokeDasharray=Ge.toFixed(3),Qe["aria-valuenow"]=Math.round(Pe),qe.strokeDashoffset=`${((100-Pe)/100*Ge).toFixed(3)}px`,ze.transform="rotate(-90deg)"}return jsxRuntimeExports.jsx(CircularProgressRoot,{className:clsx(Ue.root,Se),style:{width:Ie,height:Ie,...ze,...Be},ownerState:Oe,ref:xe,role:"progressbar",...Qe,...$e,children:jsxRuntimeExports.jsx(CircularProgressSVG,{className:Ue.svg,ownerState:Oe,viewBox:`${SIZE/2} ${SIZE/2} ${SIZE} ${SIZE}`,children:jsxRuntimeExports.jsx(CircularProgressCircle,{className:Ue.circle,style:qe,ownerState:Oe,cx:SIZE,cy:SIZE,r:(SIZE-Te)/2,fill:"none",strokeWidth:Te})})})});function getButtonUtilityClass(t){return generateUtilityClass("MuiButton",t)}const buttonClasses=generateUtilityClasses("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),ButtonGroupContext=reactExports.createContext({}),ButtonGroupButtonContext=reactExports.createContext(void 0),useUtilityClasses$1T=t=>{const{color:Ae,disableElevation:xe,fullWidth:Ee,size:Se,variant:Ce,loading:_e,loadingPosition:Ie,classes:Be}=t,Te={root:["root",_e&&"loading",Ce,`${Ce}${capitalize$1(Ae)}`,`size${capitalize$1(Se)}`,`${Ce}Size${capitalize$1(Se)}`,`color${capitalize$1(Ae)}`,xe&&"disableElevation",Ee&&"fullWidth",_e&&`loadingPosition${capitalize$1(Ie)}`],startIcon:["icon","startIcon",`iconSize${capitalize$1(Se)}`],endIcon:["icon","endIcon",`iconSize${capitalize$1(Se)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},Pe=composeClasses(Te,getButtonUtilityClass,Be);return{...Be,...Pe}},commonIconStyles=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],ButtonRoot=styled(ButtonBase,{shouldForwardProp:t=>rootShouldForwardProp(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,Ae[xe.variant],Ae[`${xe.variant}${capitalize$1(xe.color)}`],Ae[`size${capitalize$1(xe.size)}`],Ae[`${xe.variant}Size${capitalize$1(xe.size)}`],xe.color==="inherit"&&Ae.colorInherit,xe.disableElevation&&Ae.disableElevation,xe.fullWidth&&Ae.fullWidth,xe.loading&&Ae.loading]}})(memoTheme(({theme:t})=>{const Ae=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],xe=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${buttonClasses.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${buttonClasses.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${buttonClasses.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${buttonClasses.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(createSimplePaletteValueFilter()).map(([Ee])=>({props:{color:Ee},style:{"--variant-textColor":(t.vars||t).palette[Ee].main,"--variant-outlinedColor":(t.vars||t).palette[Ee].main,"--variant-outlinedBorder":t.vars?`rgba(${t.vars.palette[Ee].mainChannel} / 0.5)`:alpha$3(t.palette[Ee].main,.5),"--variant-containedColor":(t.vars||t).palette[Ee].contrastText,"--variant-containedBg":(t.vars||t).palette[Ee].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[Ee].dark,"--variant-textBg":t.vars?`rgba(${t.vars.palette[Ee].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:alpha$3(t.palette[Ee].main,t.palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[Ee].main,"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette[Ee].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:alpha$3(t.palette[Ee].main,t.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:Ae,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:xe,"--variant-textBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:alpha$3(t.palette.text.primary,t.palette.action.hoverOpacity),"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:alpha$3(t.palette.text.primary,t.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${buttonClasses.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${buttonClasses.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${buttonClasses.loading}`]:{color:"transparent"}}}]}})),ButtonStartIcon=styled("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.startIcon,xe.loading&&Ae.startIconLoadingStart,Ae[`iconSize${capitalize$1(xe.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...commonIconStyles]})),ButtonEndIcon=styled("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.endIcon,xe.loading&&Ae.endIconLoadingEnd,Ae[`iconSize${capitalize$1(xe.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...commonIconStyles]})),ButtonLoadingIndicator=styled("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(t,Ae)=>Ae.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),ButtonLoadingIconPlaceholder=styled("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(t,Ae)=>Ae.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),Button=reactExports.forwardRef(function(Ae,xe){const Ee=reactExports.useContext(ButtonGroupContext),Se=reactExports.useContext(ButtonGroupButtonContext),Ce=resolveProps(Ee,Ae),_e=useDefaultProps({props:Ce,name:"MuiButton"}),{children:Ie,color:Be="primary",component:Te="button",className:Pe,disabled:ke=!1,disableElevation:$e=!1,disableFocusRipple:Oe=!1,endIcon:Ue,focusVisibleClassName:qe,fullWidth:ze=!1,id:Qe,loading:Ge=null,loadingIndicator:Xe,loadingPosition:er="center",size:tr="medium",startIcon:nr,type:sr,variant:dr="text",...ar}=_e,lr=useId(Qe),Ke=Xe??jsxRuntimeExports.jsx(CircularProgress,{"aria-labelledby":lr,color:"inherit",size:16}),Me={..._e,color:Be,component:Te,disabled:ke,disableElevation:$e,disableFocusRipple:Oe,fullWidth:ze,loading:Ge,loadingIndicator:Ke,loadingPosition:er,size:tr,type:sr,variant:dr},je=useUtilityClasses$1T(Me),De=(nr||Ge&&er==="start")&&jsxRuntimeExports.jsx(ButtonStartIcon,{className:je.startIcon,ownerState:Me,children:nr||jsxRuntimeExports.jsx(ButtonLoadingIconPlaceholder,{className:je.loadingIconPlaceholder,ownerState:Me})}),He=(Ue||Ge&&er==="end")&&jsxRuntimeExports.jsx(ButtonEndIcon,{className:je.endIcon,ownerState:Me,children:Ue||jsxRuntimeExports.jsx(ButtonLoadingIconPlaceholder,{className:je.loadingIconPlaceholder,ownerState:Me})}),Ve=Se||"",Ye=typeof Ge=="boolean"?jsxRuntimeExports.jsx("span",{className:je.loadingWrapper,style:{display:"contents"},children:Ge&&jsxRuntimeExports.jsx(ButtonLoadingIndicator,{className:je.loadingIndicator,ownerState:Me,children:Ke})}):null;return jsxRuntimeExports.jsxs(ButtonRoot,{ownerState:Me,className:clsx(Ee.className,je.root,Pe,Ve),component:Te,disabled:ke||Ge,focusRipple:!Oe,focusVisibleClassName:clsx(je.focusVisible,qe),ref:xe,type:sr,id:Ge?lr:Qe,...ar,classes:je,children:[De,er!=="end"&&Ye,Ie,er==="end"&&Ye,He]})});function getIconButtonUtilityClass(t){return generateUtilityClass("MuiIconButton",t)}const iconButtonClasses=generateUtilityClasses("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),useUtilityClasses$1S=t=>{const{classes:Ae,disabled:xe,color:Ee,edge:Se,size:Ce,loading:_e}=t,Ie={root:["root",_e&&"loading",xe&&"disabled",Ee!=="default"&&`color${capitalize$1(Ee)}`,Se&&`edge${capitalize$1(Se)}`,`size${capitalize$1(Ce)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return composeClasses(Ie,getIconButtonUtilityClass,Ae)},IconButtonRoot=styled(ButtonBase,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,xe.loading&&Ae.loading,xe.color!=="default"&&Ae[`color${capitalize$1(xe.color)}`],xe.edge&&Ae[`edge${capitalize$1(xe.edge)}`],Ae[`size${capitalize$1(xe.size)}`]]}})(memoTheme(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:Ae=>!Ae.disableRipple,style:{"--IconButton-hoverBg":t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:alpha$3(t.palette.action.active,t.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),memoTheme(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(createSimplePaletteValueFilter()).map(([Ae])=>({props:{color:Ae},style:{color:(t.vars||t).palette[Ae].main}})),...Object.entries(t.palette).filter(createSimplePaletteValueFilter()).map(([Ae])=>({props:{color:Ae},style:{"--IconButton-hoverBg":t.vars?`rgba(${(t.vars||t).palette[Ae].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:alpha$3((t.vars||t).palette[Ae].main,t.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${iconButtonClasses.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${iconButtonClasses.loading}`]:{color:"transparent"}}))),IconButtonLoadingIndicator=styled("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(t,Ae)=>Ae.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),IconButton=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiIconButton"}),{edge:Se=!1,children:Ce,className:_e,color:Ie="default",disabled:Be=!1,disableFocusRipple:Te=!1,size:Pe="medium",id:ke,loading:$e=null,loadingIndicator:Oe,...Ue}=Ee,qe=useId(ke),ze=Oe??jsxRuntimeExports.jsx(CircularProgress,{"aria-labelledby":qe,color:"inherit",size:16}),Qe={...Ee,edge:Se,color:Ie,disabled:Be,disableFocusRipple:Te,loading:$e,loadingIndicator:ze,size:Pe},Ge=useUtilityClasses$1S(Qe);return jsxRuntimeExports.jsxs(IconButtonRoot,{id:$e?qe:ke,className:clsx(Ge.root,_e),centerRipple:!0,focusRipple:!Te,disabled:Be||$e,ref:xe,...Ue,ownerState:Qe,children:[typeof $e=="boolean"&&jsxRuntimeExports.jsx("span",{className:Ge.loadingWrapper,style:{display:"contents"},children:jsxRuntimeExports.jsx(IconButtonLoadingIndicator,{className:Ge.loadingIndicator,ownerState:Qe,children:$e&&ze})}),Ce]})}),ListContext=reactExports.createContext({});function getListUtilityClass(t){return generateUtilityClass("MuiList",t)}generateUtilityClasses("MuiList",["root","padding","dense","subheader"]);const useUtilityClasses$1R=t=>{const{classes:Ae,disablePadding:xe,dense:Ee,subheader:Se}=t;return composeClasses({root:["root",!xe&&"padding",Ee&&"dense",Se&&"subheader"]},getListUtilityClass,Ae)},ListRoot=styled("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,!xe.disablePadding&&Ae.padding,xe.dense&&Ae.dense,xe.subheader&&Ae.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),List$1=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiList"}),{children:Se,className:Ce,component:_e="ul",dense:Ie=!1,disablePadding:Be=!1,subheader:Te,...Pe}=Ee,ke=reactExports.useMemo(()=>({dense:Ie}),[Ie]),$e={...Ee,component:_e,dense:Ie,disablePadding:Be},Oe=useUtilityClasses$1R($e);return jsxRuntimeExports.jsx(ListContext.Provider,{value:ke,children:jsxRuntimeExports.jsxs(ListRoot,{as:_e,className:clsx(Oe.root,Ce),ref:xe,ownerState:$e,...Pe,children:[Te,Se]})})});function nextItem$1(t,Ae,xe){return t===Ae?t.firstChild:Ae&&Ae.nextElementSibling?Ae.nextElementSibling:xe?null:t.firstChild}function previousItem$1(t,Ae,xe){return t===Ae?xe?t.firstChild:t.lastChild:Ae&&Ae.previousElementSibling?Ae.previousElementSibling:xe?null:t.lastChild}function textCriteriaMatches(t,Ae){if(Ae===void 0)return!0;let xe=t.innerText;return xe===void 0&&(xe=t.textContent),xe=xe.trim().toLowerCase(),xe.length===0?!1:Ae.repeating?xe[0]===Ae.keys[0]:xe.startsWith(Ae.keys.join(""))}function moveFocus$1(t,Ae,xe,Ee,Se,Ce){let _e=!1,Ie=Se(t,Ae,Ae?xe:!1);for(;Ie;){if(Ie===t.firstChild){if(_e)return!1;_e=!0}const Be=Ee?!1:Ie.disabled||Ie.getAttribute("aria-disabled")==="true";if(!Ie.hasAttribute("tabindex")||!textCriteriaMatches(Ie,Ce)||Be)Ie=Se(t,Ie,xe);else return Ie.focus(),!0}return!1}const MenuList=reactExports.forwardRef(function(Ae,xe){const{actions:Ee,autoFocus:Se=!1,autoFocusItem:Ce=!1,children:_e,className:Ie,disabledItemsFocusable:Be=!1,disableListWrap:Te=!1,onKeyDown:Pe,variant:ke="selectedMenu",...$e}=Ae,Oe=reactExports.useRef(null),Ue=reactExports.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});useEnhancedEffect(()=>{Se&&Oe.current.focus()},[Se]),reactExports.useImperativeHandle(Ee,()=>({adjustStyleForScrollbar:(Xe,{direction:er})=>{const tr=!Oe.current.style.width;if(Xe.clientHeight<Oe.current.clientHeight&&tr){const nr=`${getScrollbarSize(ownerWindow(Xe))}px`;Oe.current.style[er==="rtl"?"paddingLeft":"paddingRight"]=nr,Oe.current.style.width=`calc(100% + ${nr})`}return Oe.current}}),[]);const qe=Xe=>{const er=Oe.current,tr=Xe.key;if(Xe.ctrlKey||Xe.metaKey||Xe.altKey){Pe&&Pe(Xe);return}const sr=ownerDocument(er).activeElement;if(tr==="ArrowDown")Xe.preventDefault(),moveFocus$1(er,sr,Te,Be,nextItem$1);else if(tr==="ArrowUp")Xe.preventDefault(),moveFocus$1(er,sr,Te,Be,previousItem$1);else if(tr==="Home")Xe.preventDefault(),moveFocus$1(er,null,Te,Be,nextItem$1);else if(tr==="End")Xe.preventDefault(),moveFocus$1(er,null,Te,Be,previousItem$1);else if(tr.length===1){const dr=Ue.current,ar=tr.toLowerCase(),lr=performance.now();dr.keys.length>0&&(lr-dr.lastTime>500?(dr.keys=[],dr.repeating=!0,dr.previousKeyMatched=!0):dr.repeating&&ar!==dr.keys[0]&&(dr.repeating=!1)),dr.lastTime=lr,dr.keys.push(ar);const Ke=sr&&!dr.repeating&&textCriteriaMatches(sr,dr);dr.previousKeyMatched&&(Ke||moveFocus$1(er,sr,!1,Be,nextItem$1,dr))?Xe.preventDefault():dr.previousKeyMatched=!1}Pe&&Pe(Xe)},ze=useForkRef(Oe,xe);let Qe=-1;reactExports.Children.forEach(_e,(Xe,er)=>{if(!reactExports.isValidElement(Xe)){Qe===er&&(Qe+=1,Qe>=_e.length&&(Qe=-1));return}Xe.props.disabled||(ke==="selectedMenu"&&Xe.props.selected||Qe===-1)&&(Qe=er),Qe===er&&(Xe.props.disabled||Xe.props.muiSkipListHighlight||Xe.type.muiSkipListHighlight)&&(Qe+=1,Qe>=_e.length&&(Qe=-1))});const Ge=reactExports.Children.map(_e,(Xe,er)=>{if(er===Qe){const tr={};return Ce&&(tr.autoFocus=!0),Xe.props.tabIndex===void 0&&ke==="selectedMenu"&&(tr.tabIndex=0),reactExports.cloneElement(Xe,tr)}return Xe});return jsxRuntimeExports.jsx(List$1,{role:"menu",ref:ze,className:Ie,onKeyDown:qe,tabIndex:Se?0:-1,...$e,children:Ge})});function isHostComponent(t){return typeof t=="string"}const reflow=t=>t.scrollTop;function getTransitionProps(t,Ae){const{timeout:xe,easing:Ee,style:Se={}}=t;return{duration:Se.transitionDuration??(typeof xe=="number"?xe:xe[Ae.mode]||0),easing:Se.transitionTimingFunction??(typeof Ee=="object"?Ee[Ae.mode]:Ee),delay:Se.transitionDelay}}function getScale(t){return`scale(${t}, ${t**2})`}const styles$4={entering:{opacity:1,transform:getScale(1)},entered:{opacity:1,transform:"none"}},isWebKit154=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Grow=reactExports.forwardRef(function(Ae,xe){const{addEndListener:Ee,appear:Se=!0,children:Ce,easing:_e,in:Ie,onEnter:Be,onEntered:Te,onEntering:Pe,onExit:ke,onExited:$e,onExiting:Oe,style:Ue,timeout:qe="auto",TransitionComponent:ze=Transition,...Qe}=Ae,Ge=useTimeout(),Xe=reactExports.useRef(),er=useTheme(),tr=reactExports.useRef(null),nr=useForkRef(tr,getReactElementRef(Ce),xe),sr=He=>Ve=>{if(He){const Ye=tr.current;Ve===void 0?He(Ye):He(Ye,Ve)}},dr=sr(Pe),ar=sr((He,Ve)=>{reflow(He);const{duration:Ye,delay:St,easing:We}=getTransitionProps({style:Ue,timeout:qe,easing:_e},{mode:"enter"});let Fe;qe==="auto"?(Fe=er.transitions.getAutoHeightDuration(He.clientHeight),Xe.current=Fe):Fe=Ye,He.style.transition=[er.transitions.create("opacity",{duration:Fe,delay:St}),er.transitions.create("transform",{duration:isWebKit154?Fe:Fe*.666,delay:St,easing:We})].join(","),Be&&Be(He,Ve)}),lr=sr(Te),Ke=sr(Oe),Me=sr(He=>{const{duration:Ve,delay:Ye,easing:St}=getTransitionProps({style:Ue,timeout:qe,easing:_e},{mode:"exit"});let We;qe==="auto"?(We=er.transitions.getAutoHeightDuration(He.clientHeight),Xe.current=We):We=Ve,He.style.transition=[er.transitions.create("opacity",{duration:We,delay:Ye}),er.transitions.create("transform",{duration:isWebKit154?We:We*.666,delay:isWebKit154?Ye:Ye||We*.333,easing:St})].join(","),He.style.opacity=0,He.style.transform=getScale(.75),ke&&ke(He)}),je=sr($e),De=He=>{qe==="auto"&&Ge.start(Xe.current||0,He),Ee&&Ee(tr.current,He)};return jsxRuntimeExports.jsx(ze,{appear:Se,in:Ie,nodeRef:tr,onEnter:ar,onEntered:lr,onEntering:dr,onExit:Me,onExited:je,onExiting:Ke,addEndListener:De,timeout:qe==="auto"?null:qe,...Qe,children:(He,{ownerState:Ve,...Ye})=>reactExports.cloneElement(Ce,{style:{opacity:0,transform:getScale(.75),visibility:He==="exited"&&!Ie?"hidden":void 0,...styles$4[He],...Ue,...Ce.props.style},ref:nr,...Ye})})});Grow&&(Grow.muiSupportAuto=!0);function isOverflowing(t){const Ae=ownerDocument(t);return Ae.body===t?ownerWindow(t).innerWidth>Ae.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function ariaHidden(t,Ae){Ae?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function getPaddingRight(t){return parseInt(ownerWindow(t).getComputedStyle(t).paddingRight,10)||0}function isAriaHiddenForbiddenOnElement(t){const xe=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(t.tagName),Ee=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return xe||Ee}function ariaHiddenSiblings(t,Ae,xe,Ee,Se){const Ce=[Ae,xe,...Ee];[].forEach.call(t.children,_e=>{const Ie=!Ce.includes(_e),Be=!isAriaHiddenForbiddenOnElement(_e);Ie&&Be&&ariaHidden(_e,Se)})}function findIndexOf(t,Ae){let xe=-1;return t.some((Ee,Se)=>Ae(Ee)?(xe=Se,!0):!1),xe}function handleContainer(t,Ae){const xe=[],Ee=t.container;if(!Ae.disableScrollLock){if(isOverflowing(Ee)){const _e=getScrollbarSize(ownerWindow(Ee));xe.push({value:Ee.style.paddingRight,property:"padding-right",el:Ee}),Ee.style.paddingRight=`${getPaddingRight(Ee)+_e}px`;const Ie=ownerDocument(Ee).querySelectorAll(".mui-fixed");[].forEach.call(Ie,Be=>{xe.push({value:Be.style.paddingRight,property:"padding-right",el:Be}),Be.style.paddingRight=`${getPaddingRight(Be)+_e}px`})}let Ce;if(Ee.parentNode instanceof DocumentFragment)Ce=ownerDocument(Ee).body;else{const _e=Ee.parentElement,Ie=ownerWindow(Ee);Ce=(_e==null?void 0:_e.nodeName)==="HTML"&&Ie.getComputedStyle(_e).overflowY==="scroll"?_e:Ee}xe.push({value:Ce.style.overflow,property:"overflow",el:Ce},{value:Ce.style.overflowX,property:"overflow-x",el:Ce},{value:Ce.style.overflowY,property:"overflow-y",el:Ce}),Ce.style.overflow="hidden"}return()=>{xe.forEach(({value:Ce,el:_e,property:Ie})=>{Ce?_e.style.setProperty(Ie,Ce):_e.style.removeProperty(Ie)})}}function getHiddenSiblings(t){const Ae=[];return[].forEach.call(t.children,xe=>{xe.getAttribute("aria-hidden")==="true"&&Ae.push(xe)}),Ae}class ModalManager{constructor(){this.modals=[],this.containers=[]}add(Ae,xe){let Ee=this.modals.indexOf(Ae);if(Ee!==-1)return Ee;Ee=this.modals.length,this.modals.push(Ae),Ae.modalRef&&ariaHidden(Ae.modalRef,!1);const Se=getHiddenSiblings(xe);ariaHiddenSiblings(xe,Ae.mount,Ae.modalRef,Se,!0);const Ce=findIndexOf(this.containers,_e=>_e.container===xe);return Ce!==-1?(this.containers[Ce].modals.push(Ae),Ee):(this.containers.push({modals:[Ae],container:xe,restore:null,hiddenSiblings:Se}),Ee)}mount(Ae,xe){const Ee=findIndexOf(this.containers,Ce=>Ce.modals.includes(Ae)),Se=this.containers[Ee];Se.restore||(Se.restore=handleContainer(Se,xe))}remove(Ae,xe=!0){const Ee=this.modals.indexOf(Ae);if(Ee===-1)return Ee;const Se=findIndexOf(this.containers,_e=>_e.modals.includes(Ae)),Ce=this.containers[Se];if(Ce.modals.splice(Ce.modals.indexOf(Ae),1),this.modals.splice(Ee,1),Ce.modals.length===0)Ce.restore&&Ce.restore(),Ae.modalRef&&ariaHidden(Ae.modalRef,xe),ariaHiddenSiblings(Ce.container,Ae.mount,Ae.modalRef,Ce.hiddenSiblings,!1),this.containers.splice(Se,1);else{const _e=Ce.modals[Ce.modals.length-1];_e.modalRef&&ariaHidden(_e.modalRef,!1)}return Ee}isTopModal(Ae){return this.modals.length>0&&this.modals[this.modals.length-1]===Ae}}const candidatesSelector=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function getTabIndex(t){const Ae=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(Ae)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:Ae}function isNonTabbableRadio(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const Ae=Ee=>t.ownerDocument.querySelector(`input[type="radio"]${Ee}`);let xe=Ae(`[name="${t.name}"]:checked`);return xe||(xe=Ae(`[name="${t.name}"]`)),xe!==t}function isNodeMatchingSelectorFocusable(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||isNonTabbableRadio(t))}function defaultGetTabbable(t){const Ae=[],xe=[];return Array.from(t.querySelectorAll(candidatesSelector)).forEach((Ee,Se)=>{const Ce=getTabIndex(Ee);Ce===-1||!isNodeMatchingSelectorFocusable(Ee)||(Ce===0?Ae.push(Ee):xe.push({documentOrder:Se,tabIndex:Ce,node:Ee}))}),xe.sort((Ee,Se)=>Ee.tabIndex===Se.tabIndex?Ee.documentOrder-Se.documentOrder:Ee.tabIndex-Se.tabIndex).map(Ee=>Ee.node).concat(Ae)}function defaultIsEnabled(){return!0}function FocusTrap(t){const{children:Ae,disableAutoFocus:xe=!1,disableEnforceFocus:Ee=!1,disableRestoreFocus:Se=!1,getTabbable:Ce=defaultGetTabbable,isEnabled:_e=defaultIsEnabled,open:Ie}=t,Be=reactExports.useRef(!1),Te=reactExports.useRef(null),Pe=reactExports.useRef(null),ke=reactExports.useRef(null),$e=reactExports.useRef(null),Oe=reactExports.useRef(!1),Ue=reactExports.useRef(null),qe=useForkRef(getReactElementRef(Ae),Ue),ze=reactExports.useRef(null);reactExports.useEffect(()=>{!Ie||!Ue.current||(Oe.current=!xe)},[xe,Ie]),reactExports.useEffect(()=>{if(!Ie||!Ue.current)return;const Xe=ownerDocument(Ue.current);return Ue.current.contains(Xe.activeElement)||(Ue.current.hasAttribute("tabIndex")||Ue.current.setAttribute("tabIndex","-1"),Oe.current&&Ue.current.focus()),()=>{Se||(ke.current&&ke.current.focus&&(Be.current=!0,ke.current.focus()),ke.current=null)}},[Ie]),reactExports.useEffect(()=>{if(!Ie||!Ue.current)return;const Xe=ownerDocument(Ue.current),er=sr=>{ze.current=sr,!(Ee||!_e()||sr.key!=="Tab")&&Xe.activeElement===Ue.current&&sr.shiftKey&&(Be.current=!0,Pe.current&&Pe.current.focus())},tr=()=>{var ar,lr;const sr=Ue.current;if(sr===null)return;if(!Xe.hasFocus()||!_e()||Be.current){Be.current=!1;return}if(sr.contains(Xe.activeElement)||Ee&&Xe.activeElement!==Te.current&&Xe.activeElement!==Pe.current)return;if(Xe.activeElement!==$e.current)$e.current=null;else if($e.current!==null)return;if(!Oe.current)return;let dr=[];if((Xe.activeElement===Te.current||Xe.activeElement===Pe.current)&&(dr=Ce(Ue.current)),dr.length>0){const Ke=!!((ar=ze.current)!=null&&ar.shiftKey&&((lr=ze.current)==null?void 0:lr.key)==="Tab"),Me=dr[0],je=dr[dr.length-1];typeof Me!="string"&&typeof je!="string"&&(Ke?je.focus():Me.focus())}else sr.focus()};Xe.addEventListener("focusin",tr),Xe.addEventListener("keydown",er,!0);const nr=setInterval(()=>{Xe.activeElement&&Xe.activeElement.tagName==="BODY"&&tr()},50);return()=>{clearInterval(nr),Xe.removeEventListener("focusin",tr),Xe.removeEventListener("keydown",er,!0)}},[xe,Ee,Se,_e,Ie,Ce]);const Qe=Xe=>{ke.current===null&&(ke.current=Xe.relatedTarget),Oe.current=!0,$e.current=Xe.target;const er=Ae.props.onFocus;er&&er(Xe)},Ge=Xe=>{ke.current===null&&(ke.current=Xe.relatedTarget),Oe.current=!0};return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{tabIndex:Ie?0:-1,onFocus:Ge,ref:Te,"data-testid":"sentinelStart"}),reactExports.cloneElement(Ae,{ref:qe,onFocus:Qe}),jsxRuntimeExports.jsx("div",{tabIndex:Ie?0:-1,onFocus:Ge,ref:Pe,"data-testid":"sentinelEnd"})]})}function getContainer$1(t){return typeof t=="function"?t():t}const Portal=reactExports.forwardRef(function(Ae,xe){const{children:Ee,container:Se,disablePortal:Ce=!1}=Ae,[_e,Ie]=reactExports.useState(null),Be=useForkRef(reactExports.isValidElement(Ee)?getReactElementRef(Ee):null,xe);if(useEnhancedEffect(()=>{Ce||Ie(getContainer$1(Se)||document.body)},[Se,Ce]),useEnhancedEffect(()=>{if(_e&&!Ce)return setRef(xe,_e),()=>{setRef(xe,null)}},[xe,_e,Ce]),Ce){if(reactExports.isValidElement(Ee)){const Te={ref:Be};return reactExports.cloneElement(Ee,Te)}return Ee}return _e&&reactDomExports.createPortal(Ee,_e)});function useSlot(t,Ae){const{className:xe,elementType:Ee,ownerState:Se,externalForwardedProps:Ce,internalForwardedProps:_e,shouldForwardComponentProp:Ie=!1,...Be}=Ae,{component:Te,slots:Pe={[t]:void 0},slotProps:ke={[t]:void 0},...$e}=Ce,Oe=Pe[t]||Ee,Ue=resolveComponentProps(ke[t],Se),{props:{component:qe,...ze},internalRef:Qe}=mergeSlotProps$1({className:xe,...Be,externalForwardedProps:t==="root"?$e:void 0,externalSlotProps:Ue}),Ge=useForkRef(Qe,Ue==null?void 0:Ue.ref,Ae.ref),Xe=t==="root"?qe||Te:qe,er=appendOwnerState(Oe,{...t==="root"&&!Te&&!Pe[t]&&_e,...t!=="root"&&!Pe[t]&&_e,...ze,...Xe&&!Ie&&{as:Xe},...Xe&&Ie&&{component:Xe},ref:Ge},Se);return[Oe,er]}const styles$3={entering:{opacity:1},entered:{opacity:1}},Fade=reactExports.forwardRef(function(Ae,xe){const Ee=useTheme(),Se={enter:Ee.transitions.duration.enteringScreen,exit:Ee.transitions.duration.leavingScreen},{addEndListener:Ce,appear:_e=!0,children:Ie,easing:Be,in:Te,onEnter:Pe,onEntered:ke,onEntering:$e,onExit:Oe,onExited:Ue,onExiting:qe,style:ze,timeout:Qe=Se,TransitionComponent:Ge=Transition,...Xe}=Ae,er=reactExports.useRef(null),tr=useForkRef(er,getReactElementRef(Ie),xe),nr=De=>He=>{if(De){const Ve=er.current;He===void 0?De(Ve):De(Ve,He)}},sr=nr($e),dr=nr((De,He)=>{reflow(De);const Ve=getTransitionProps({style:ze,timeout:Qe,easing:Be},{mode:"enter"});De.style.webkitTransition=Ee.transitions.create("opacity",Ve),De.style.transition=Ee.transitions.create("opacity",Ve),Pe&&Pe(De,He)}),ar=nr(ke),lr=nr(qe),Ke=nr(De=>{const He=getTransitionProps({style:ze,timeout:Qe,easing:Be},{mode:"exit"});De.style.webkitTransition=Ee.transitions.create("opacity",He),De.style.transition=Ee.transitions.create("opacity",He),Oe&&Oe(De)}),Me=nr(Ue),je=De=>{Ce&&Ce(er.current,De)};return jsxRuntimeExports.jsx(Ge,{appear:_e,in:Te,nodeRef:er,onEnter:dr,onEntered:ar,onEntering:sr,onExit:Ke,onExited:Me,onExiting:lr,addEndListener:je,timeout:Qe,...Xe,children:(De,{ownerState:He,...Ve})=>reactExports.cloneElement(Ie,{style:{opacity:0,visibility:De==="exited"&&!Te?"hidden":void 0,...styles$3[De],...ze,...Ie.props.style},ref:tr,...Ve})})});function getBackdropUtilityClass(t){return generateUtilityClass("MuiBackdrop",t)}generateUtilityClasses("MuiBackdrop",["root","invisible"]);const useUtilityClasses$1Q=t=>{const{classes:Ae,invisible:xe}=t;return composeClasses({root:["root",xe&&"invisible"]},getBackdropUtilityClass,Ae)},BackdropRoot=styled("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,xe.invisible&&Ae.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"}}]}),Backdrop=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiBackdrop"}),{children:Se,className:Ce,component:_e="div",invisible:Ie=!1,open:Be,components:Te={},componentsProps:Pe={},slotProps:ke={},slots:$e={},TransitionComponent:Oe,transitionDuration:Ue,...qe}=Ee,ze={...Ee,component:_e,invisible:Ie},Qe=useUtilityClasses$1Q(ze),Ge={transition:Oe,root:Te.Root,...$e},Xe={...Pe,...ke},er={slots:Ge,slotProps:Xe},[tr,nr]=useSlot("root",{elementType:BackdropRoot,externalForwardedProps:er,className:clsx(Qe.root,Ce),ownerState:ze}),[sr,dr]=useSlot("transition",{elementType:Fade,externalForwardedProps:er,ownerState:ze});return jsxRuntimeExports.jsx(sr,{in:Be,timeout:Ue,...qe,...dr,children:jsxRuntimeExports.jsx(tr,{"aria-hidden":!0,...nr,classes:Qe,ref:xe,children:Se})})});function getContainer(t){return typeof t=="function"?t():t}function getHasTransition(t){return t?t.props.hasOwnProperty("in"):!1}const noop$3=()=>{},manager=new ModalManager;function useModal(t){const{container:Ae,disableEscapeKeyDown:xe=!1,disableScrollLock:Ee=!1,closeAfterTransition:Se=!1,onTransitionEnter:Ce,onTransitionExited:_e,children:Ie,onClose:Be,open:Te,rootRef:Pe}=t,ke=reactExports.useRef({}),$e=reactExports.useRef(null),Oe=reactExports.useRef(null),Ue=useForkRef(Oe,Pe),[qe,ze]=reactExports.useState(!Te),Qe=getHasTransition(Ie);let Ge=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(Ge=!1);const Xe=()=>ownerDocument($e.current),er=()=>(ke.current.modalRef=Oe.current,ke.current.mount=$e.current,ke.current),tr=()=>{manager.mount(er(),{disableScrollLock:Ee}),Oe.current&&(Oe.current.scrollTop=0)},nr=useEventCallback(()=>{const He=getContainer(Ae)||Xe().body;manager.add(er(),He),Oe.current&&tr()}),sr=()=>manager.isTopModal(er()),dr=useEventCallback(He=>{$e.current=He,He&&(Te&&sr()?tr():Oe.current&&ariaHidden(Oe.current,Ge))}),ar=reactExports.useCallback(()=>{manager.remove(er(),Ge)},[Ge]);reactExports.useEffect(()=>()=>{ar()},[ar]),reactExports.useEffect(()=>{Te?nr():(!Qe||!Se)&&ar()},[Te,ar,Qe,Se,nr]);const lr=He=>Ve=>{var Ye;(Ye=He.onKeyDown)==null||Ye.call(He,Ve),!(Ve.key!=="Escape"||Ve.which===229||!sr())&&(xe||(Ve.stopPropagation(),Be&&Be(Ve,"escapeKeyDown")))},Ke=He=>Ve=>{var Ye;(Ye=He.onClick)==null||Ye.call(He,Ve),Ve.target===Ve.currentTarget&&Be&&Be(Ve,"backdropClick")};return{getRootProps:(He={})=>{const Ve=extractEventHandlers(t);delete Ve.onTransitionEnter,delete Ve.onTransitionExited;const Ye={...Ve,...He};return{role:"presentation",...Ye,onKeyDown:lr(Ye),ref:Ue}},getBackdropProps:(He={})=>{const Ve=He;return{"aria-hidden":!0,...Ve,onClick:Ke(Ve),open:Te}},getTransitionProps:()=>{const He=()=>{ze(!1),Ce&&Ce()},Ve=()=>{ze(!0),_e&&_e(),Se&&ar()};return{onEnter:createChainedFunction(He,(Ie==null?void 0:Ie.props.onEnter)??noop$3),onExited:createChainedFunction(Ve,(Ie==null?void 0:Ie.props.onExited)??noop$3)}},rootRef:Ue,portalRef:dr,isTopModal:sr,exited:qe,hasTransition:Qe}}function getModalUtilityClass(t){return generateUtilityClass("MuiModal",t)}generateUtilityClasses("MuiModal",["root","hidden","backdrop"]);const useUtilityClasses$1P=t=>{const{open:Ae,exited:xe,classes:Ee}=t;return composeClasses({root:["root",!Ae&&xe&&"hidden"],backdrop:["backdrop"]},getModalUtilityClass,Ee)},ModalRoot=styled("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,!xe.open&&xe.exited&&Ae.hidden]}})(memoTheme(({theme:t})=>({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:Ae})=>!Ae.open&&Ae.exited,style:{visibility:"hidden"}}]}))),ModalBackdrop=styled(Backdrop,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,Ae)=>Ae.backdrop})({zIndex:-1}),Modal=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({name:"MuiModal",props:Ae}),{BackdropComponent:Se=ModalBackdrop,BackdropProps:Ce,classes:_e,className:Ie,closeAfterTransition:Be=!1,children:Te,container:Pe,component:ke,components:$e={},componentsProps:Oe={},disableAutoFocus:Ue=!1,disableEnforceFocus:qe=!1,disableEscapeKeyDown:ze=!1,disablePortal:Qe=!1,disableRestoreFocus:Ge=!1,disableScrollLock:Xe=!1,hideBackdrop:er=!1,keepMounted:tr=!1,onBackdropClick:nr,onClose:sr,onTransitionEnter:dr,onTransitionExited:ar,open:lr,slotProps:Ke={},slots:Me={},theme:je,...De}=Ee,He={...Ee,closeAfterTransition:Be,disableAutoFocus:Ue,disableEnforceFocus:qe,disableEscapeKeyDown:ze,disablePortal:Qe,disableRestoreFocus:Ge,disableScrollLock:Xe,hideBackdrop:er,keepMounted:tr},{getRootProps:Ve,getBackdropProps:Ye,getTransitionProps:St,portalRef:We,isTopModal:Fe,exited:Ze,hasTransition:ir}=useModal({...He,rootRef:xe}),ur={...He,exited:Ze},fr=useUtilityClasses$1P(ur),Ar={};if(Te.props.tabIndex===void 0&&(Ar.tabIndex="-1"),ir){const{onEnter:Fr,onExited:Ir}=St();Ar.onEnter=Fr,Ar.onExited=Ir}const vr={slots:{root:$e.Root,backdrop:$e.Backdrop,...Me},slotProps:{...Oe,...Ke}},[yr,br]=useSlot("root",{ref:xe,elementType:ModalRoot,externalForwardedProps:{...vr,...De,component:ke},getSlotProps:Ve,ownerState:ur,className:clsx(Ie,fr==null?void 0:fr.root,!ur.open&&ur.exited&&(fr==null?void 0:fr.hidden))}),[_r,$r]=useSlot("backdrop",{ref:Ce==null?void 0:Ce.ref,elementType:Se,externalForwardedProps:vr,shouldForwardComponentProp:!0,additionalProps:Ce,getSlotProps:Fr=>Ye({...Fr,onClick:Ir=>{nr&&nr(Ir),Fr!=null&&Fr.onClick&&Fr.onClick(Ir)}}),className:clsx(Ce==null?void 0:Ce.className,fr==null?void 0:fr.backdrop),ownerState:ur});return!tr&&!lr&&(!ir||Ze)?null:jsxRuntimeExports.jsx(Portal,{ref:We,container:Pe,disablePortal:Qe,children:jsxRuntimeExports.jsxs(yr,{...br,children:[!er&&Se?jsxRuntimeExports.jsx(_r,{...$r}):null,jsxRuntimeExports.jsx(FocusTrap,{disableEnforceFocus:qe,disableAutoFocus:Ue,disableRestoreFocus:Ge,isEnabled:Fe,open:lr,children:reactExports.cloneElement(Te,Ar)})]})})});function getPopoverUtilityClass(t){return generateUtilityClass("MuiPopover",t)}generateUtilityClasses("MuiPopover",["root","paper"]);function getOffsetTop(t,Ae){let xe=0;return typeof Ae=="number"?xe=Ae:Ae==="center"?xe=t.height/2:Ae==="bottom"&&(xe=t.height),xe}function getOffsetLeft(t,Ae){let xe=0;return typeof Ae=="number"?xe=Ae:Ae==="center"?xe=t.width/2:Ae==="right"&&(xe=t.width),xe}function getTransformOriginValue(t){return[t.horizontal,t.vertical].map(Ae=>typeof Ae=="number"?`${Ae}px`:Ae).join(" ")}function resolveAnchorEl$1(t){return typeof t=="function"?t():t}const useUtilityClasses$1O=t=>{const{classes:Ae}=t;return composeClasses({root:["root"],paper:["paper"]},getPopoverUtilityClass,Ae)},PopoverRoot=styled(Modal,{name:"MuiPopover",slot:"Root",overridesResolver:(t,Ae)=>Ae.root})({}),PopoverPaper=styled(Paper,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,Ae)=>Ae.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Popover=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiPopover"}),{action:Se,anchorEl:Ce,anchorOrigin:_e={vertical:"top",horizontal:"left"},anchorPosition:Ie,anchorReference:Be="anchorEl",children:Te,className:Pe,container:ke,elevation:$e=8,marginThreshold:Oe=16,open:Ue,PaperProps:qe={},slots:ze={},slotProps:Qe={},transformOrigin:Ge={vertical:"top",horizontal:"left"},TransitionComponent:Xe,transitionDuration:er="auto",TransitionProps:tr={},disableScrollLock:nr=!1,...sr}=Ee,dr=reactExports.useRef(),ar={...Ee,anchorOrigin:_e,anchorReference:Be,elevation:$e,marginThreshold:Oe,transformOrigin:Ge,TransitionComponent:Xe,transitionDuration:er,TransitionProps:tr},lr=useUtilityClasses$1O(ar),Ke=reactExports.useCallback(()=>{if(Be==="anchorPosition")return Ie;const $r=resolveAnchorEl$1(Ce),Ir=($r&&$r.nodeType===1?$r:ownerDocument(dr.current).body).getBoundingClientRect();return{top:Ir.top+getOffsetTop(Ir,_e.vertical),left:Ir.left+getOffsetLeft(Ir,_e.horizontal)}},[Ce,_e.horizontal,_e.vertical,Ie,Be]),Me=reactExports.useCallback($r=>({vertical:getOffsetTop($r,Ge.vertical),horizontal:getOffsetLeft($r,Ge.horizontal)}),[Ge.horizontal,Ge.vertical]),je=reactExports.useCallback($r=>{const Fr={width:$r.offsetWidth,height:$r.offsetHeight},Ir=Me(Fr);if(Be==="none")return{top:null,left:null,transformOrigin:getTransformOriginValue(Ir)};const zr=Ke();let dn=zr.top-Ir.vertical,tn=zr.left-Ir.horizontal;const Gr=dn+Fr.height,wn=tn+Fr.width,an=ownerWindow(resolveAnchorEl$1(Ce)),Vr=an.innerHeight-Oe,Rn=an.innerWidth-Oe;if(Oe!==null&&dn<Oe){const un=dn-Oe;dn-=un,Ir.vertical+=un}else if(Oe!==null&&Gr>Vr){const un=Gr-Vr;dn-=un,Ir.vertical+=un}if(Oe!==null&&tn<Oe){const un=tn-Oe;tn-=un,Ir.horizontal+=un}else if(wn>Rn){const un=wn-Rn;tn-=un,Ir.horizontal+=un}return{top:`${Math.round(dn)}px`,left:`${Math.round(tn)}px`,transformOrigin:getTransformOriginValue(Ir)}},[Ce,Be,Ke,Me,Oe]),[De,He]=reactExports.useState(Ue),Ve=reactExports.useCallback(()=>{const $r=dr.current;if(!$r)return;const Fr=je($r);Fr.top!==null&&$r.style.setProperty("top",Fr.top),Fr.left!==null&&($r.style.left=Fr.left),$r.style.transformOrigin=Fr.transformOrigin,He(!0)},[je]);reactExports.useEffect(()=>(nr&&window.addEventListener("scroll",Ve),()=>window.removeEventListener("scroll",Ve)),[Ce,nr,Ve]);const Ye=()=>{Ve()},St=()=>{He(!1)};reactExports.useEffect(()=>{Ue&&Ve()}),reactExports.useImperativeHandle(Se,()=>Ue?{updatePosition:()=>{Ve()}}:null,[Ue,Ve]),reactExports.useEffect(()=>{if(!Ue)return;const $r=debounce$2(()=>{Ve()}),Fr=ownerWindow(Ce);return Fr.addEventListener("resize",$r),()=>{$r.clear(),Fr.removeEventListener("resize",$r)}},[Ce,Ue,Ve]);let We=er;const Fe={slots:{transition:Xe,...ze},slotProps:{transition:tr,paper:qe,...Qe}},[Ze,ir]=useSlot("transition",{elementType:Grow,externalForwardedProps:Fe,ownerState:ar,getSlotProps:$r=>({...$r,onEntering:(Fr,Ir)=>{var zr;(zr=$r.onEntering)==null||zr.call($r,Fr,Ir),Ye()},onExited:Fr=>{var Ir;(Ir=$r.onExited)==null||Ir.call($r,Fr),St()}}),additionalProps:{appear:!0,in:Ue}});er==="auto"&&!Ze.muiSupportAuto&&(We=void 0);const ur=ke||(Ce?ownerDocument(resolveAnchorEl$1(Ce)).body:void 0),[fr,{slots:Ar,slotProps:vr,...yr}]=useSlot("root",{ref:xe,elementType:PopoverRoot,externalForwardedProps:{...Fe,...sr},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:ze.backdrop},slotProps:{backdrop:mergeSlotProps(typeof Qe.backdrop=="function"?Qe.backdrop(ar):Qe.backdrop,{invisible:!0})},container:ur,open:Ue},ownerState:ar,className:clsx(lr.root,Pe)}),[br,_r]=useSlot("paper",{ref:dr,className:lr.paper,elementType:PopoverPaper,externalForwardedProps:Fe,shouldForwardComponentProp:!0,additionalProps:{elevation:$e,style:De?void 0:{opacity:0}},ownerState:ar});return jsxRuntimeExports.jsx(fr,{...yr,...!isHostComponent(fr)&&{slots:Ar,slotProps:vr,disableScrollLock:nr},children:jsxRuntimeExports.jsx(Ze,{...ir,timeout:We,children:jsxRuntimeExports.jsx(br,{..._r,children:Te})})})});function getMenuUtilityClass(t){return generateUtilityClass("MuiMenu",t)}generateUtilityClasses("MuiMenu",["root","paper","list"]);const RTL_ORIGIN={vertical:"top",horizontal:"right"},LTR_ORIGIN={vertical:"top",horizontal:"left"},useUtilityClasses$1N=t=>{const{classes:Ae}=t;return composeClasses({root:["root"],paper:["paper"],list:["list"]},getMenuUtilityClass,Ae)},MenuRoot=styled(Popover,{shouldForwardProp:t=>rootShouldForwardProp(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,Ae)=>Ae.root})({}),MenuPaper=styled(PopoverPaper,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,Ae)=>Ae.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),MenuMenuList=styled(MenuList,{name:"MuiMenu",slot:"List",overridesResolver:(t,Ae)=>Ae.list})({outline:0}),Menu=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiMenu"}),{autoFocus:Se=!0,children:Ce,className:_e,disableAutoFocusItem:Ie=!1,MenuListProps:Be={},onClose:Te,open:Pe,PaperProps:ke={},PopoverClasses:$e,transitionDuration:Oe="auto",TransitionProps:{onEntering:Ue,...qe}={},variant:ze="selectedMenu",slots:Qe={},slotProps:Ge={},...Xe}=Ee,er=useRtl(),tr={...Ee,autoFocus:Se,disableAutoFocusItem:Ie,MenuListProps:Be,onEntering:Ue,PaperProps:ke,transitionDuration:Oe,TransitionProps:qe,variant:ze},nr=useUtilityClasses$1N(tr),sr=Se&&!Ie&&Pe,dr=reactExports.useRef(null),ar=(We,Fe)=>{dr.current&&dr.current.adjustStyleForScrollbar(We,{direction:er?"rtl":"ltr"}),Ue&&Ue(We,Fe)},lr=We=>{We.key==="Tab"&&(We.preventDefault(),Te&&Te(We,"tabKeyDown"))};let Ke=-1;reactExports.Children.map(Ce,(We,Fe)=>{reactExports.isValidElement(We)&&(We.props.disabled||(ze==="selectedMenu"&&We.props.selected||Ke===-1)&&(Ke=Fe))});const Me={slots:Qe,slotProps:{list:Be,transition:qe,paper:ke,...Ge}},je=useSlotProps({elementType:Qe.root,externalSlotProps:Ge.root,ownerState:tr,className:[nr.root,_e]}),[De,He]=useSlot("paper",{className:nr.paper,elementType:MenuPaper,externalForwardedProps:Me,shouldForwardComponentProp:!0,ownerState:tr}),[Ve,Ye]=useSlot("list",{className:clsx(nr.list,Be.className),elementType:MenuMenuList,shouldForwardComponentProp:!0,externalForwardedProps:Me,getSlotProps:We=>({...We,onKeyDown:Fe=>{var Ze;lr(Fe),(Ze=We.onKeyDown)==null||Ze.call(We,Fe)}}),ownerState:tr}),St=typeof Me.slotProps.transition=="function"?Me.slotProps.transition(tr):Me.slotProps.transition;return jsxRuntimeExports.jsx(MenuRoot,{onClose:Te,anchorOrigin:{vertical:"bottom",horizontal:er?"right":"left"},transformOrigin:er?RTL_ORIGIN:LTR_ORIGIN,slots:{root:Qe.root,paper:De,backdrop:Qe.backdrop,...Qe.transition&&{transition:Qe.transition}},slotProps:{root:je,paper:He,backdrop:typeof Ge.backdrop=="function"?Ge.backdrop(tr):Ge.backdrop,transition:{...St,onEntering:(...We)=>{var Fe;ar(...We),(Fe=St==null?void 0:St.onEntering)==null||Fe.call(St,...We)}}},open:Pe,ref:xe,transitionDuration:Oe,ownerState:tr,...Xe,classes:$e,children:jsxRuntimeExports.jsx(Ve,{actions:dr,autoFocus:Se&&(Ke===-1||Ie),autoFocusItem:sr,variant:ze,...Ye,children:Ce})})});function getDividerUtilityClass(t){return generateUtilityClass("MuiDivider",t)}const dividerClasses=generateUtilityClasses("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),useUtilityClasses$1M=t=>{const{absolute:Ae,children:xe,classes:Ee,flexItem:Se,light:Ce,orientation:_e,textAlign:Ie,variant:Be}=t;return composeClasses({root:["root",Ae&&"absolute",Be,Ce&&"light",_e==="vertical"&&"vertical",Se&&"flexItem",xe&&"withChildren",xe&&_e==="vertical"&&"withChildrenVertical",Ie==="right"&&_e!=="vertical"&&"textAlignRight",Ie==="left"&&_e!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",_e==="vertical"&&"wrapperVertical"]},getDividerUtilityClass,Ee)},DividerRoot=styled("div",{name:"MuiDivider",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,xe.absolute&&Ae.absolute,Ae[xe.variant],xe.light&&Ae.light,xe.orientation==="vertical"&&Ae.vertical,xe.flexItem&&Ae.flexItem,xe.children&&Ae.withChildren,xe.children&&xe.orientation==="vertical"&&Ae.withChildrenVertical,xe.textAlign==="right"&&xe.orientation!=="vertical"&&Ae.textAlignRight,xe.textAlign==="left"&&xe.orientation!=="vertical"&&Ae.textAlignLeft]}})(memoTheme(({theme:t})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:t.vars?`rgba(${t.vars.palette.dividerChannel} / 0.08)`:alpha$3(t.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:t.spacing(2),marginRight:t.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:t.spacing(1),marginBottom:t.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:Ae})=>!!Ae.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:Ae})=>Ae.children&&Ae.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(t.vars||t).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:Ae})=>Ae.orientation==="vertical"&&Ae.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(t.vars||t).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:Ae})=>Ae.textAlign==="right"&&Ae.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:Ae})=>Ae.textAlign==="left"&&Ae.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),DividerWrapper=styled("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.wrapper,xe.orientation==="vertical"&&Ae.wrapperVertical]}})(memoTheme(({theme:t})=>({display:"inline-block",paddingLeft:`calc(${t.spacing(1)} * 1.2)`,paddingRight:`calc(${t.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${t.spacing(1)} * 1.2)`,paddingBottom:`calc(${t.spacing(1)} * 1.2)`}}]}))),Divider=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiDivider"}),{absolute:Se=!1,children:Ce,className:_e,orientation:Ie="horizontal",component:Be=Ce||Ie==="vertical"?"div":"hr",flexItem:Te=!1,light:Pe=!1,role:ke=Be!=="hr"?"separator":void 0,textAlign:$e="center",variant:Oe="fullWidth",...Ue}=Ee,qe={...Ee,absolute:Se,component:Be,flexItem:Te,light:Pe,orientation:Ie,role:ke,textAlign:$e,variant:Oe},ze=useUtilityClasses$1M(qe);return jsxRuntimeExports.jsx(DividerRoot,{as:Be,className:clsx(ze.root,_e),role:ke,ref:xe,ownerState:qe,"aria-orientation":ke==="separator"&&(Be!=="hr"||Ie==="vertical")?Ie:void 0,...Ue,children:Ce?jsxRuntimeExports.jsx(DividerWrapper,{className:ze.wrapper,ownerState:qe,children:Ce}):null})});Divider&&(Divider.muiSkipListHighlight=!0);function getListItemIconUtilityClass(t){return generateUtilityClass("MuiListItemIcon",t)}const listItemIconClasses=generateUtilityClasses("MuiListItemIcon",["root","alignItemsFlexStart"]),useUtilityClasses$1L=t=>{const{alignItems:Ae,classes:xe}=t;return composeClasses({root:["root",Ae==="flex-start"&&"alignItemsFlexStart"]},getListItemIconUtilityClass,xe)},ListItemIconRoot=styled("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,xe.alignItems==="flex-start"&&Ae.alignItemsFlexStart]}})(memoTheme(({theme:t})=>({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),ListItemIcon=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiListItemIcon"}),{className:Se,...Ce}=Ee,_e=reactExports.useContext(ListContext),Ie={...Ee,alignItems:_e.alignItems},Be=useUtilityClasses$1L(Ie);return jsxRuntimeExports.jsx(ListItemIconRoot,{className:clsx(Be.root,Se),ownerState:Ie,ref:xe,...Ce})});function getTypographyUtilityClass(t){return generateUtilityClass("MuiTypography",t)}const typographyClasses=generateUtilityClasses("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),v6Colors$1={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},extendSxProp=internal_createExtendSxProp(),useUtilityClasses$1K=t=>{const{align:Ae,gutterBottom:xe,noWrap:Ee,paragraph:Se,variant:Ce,classes:_e}=t,Ie={root:["root",Ce,t.align!=="inherit"&&`align${capitalize$1(Ae)}`,xe&&"gutterBottom",Ee&&"noWrap",Se&&"paragraph"]};return composeClasses(Ie,getTypographyUtilityClass,_e)},TypographyRoot=styled("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,xe.variant&&Ae[xe.variant],xe.align!=="inherit"&&Ae[`align${capitalize$1(xe.align)}`],xe.noWrap&&Ae.noWrap,xe.gutterBottom&&Ae.gutterBottom,xe.paragraph&&Ae.paragraph]}})(memoTheme(({theme:t})=>{var Ae;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([xe,Ee])=>xe!=="inherit"&&Ee&&typeof Ee=="object").map(([xe,Ee])=>({props:{variant:xe},style:Ee})),...Object.entries(t.palette).filter(createSimplePaletteValueFilter()).map(([xe])=>({props:{color:xe},style:{color:(t.vars||t).palette[xe].main}})),...Object.entries(((Ae=t.palette)==null?void 0:Ae.text)||{}).filter(([,xe])=>typeof xe=="string").map(([xe])=>({props:{color:`text${capitalize$1(xe)}`},style:{color:(t.vars||t).palette.text[xe]}})),{props:({ownerState:xe})=>xe.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:xe})=>xe.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:xe})=>xe.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:xe})=>xe.paragraph,style:{marginBottom:16}}]}})),defaultVariantMapping={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Typography=reactExports.forwardRef(function(Ae,xe){const{color:Ee,...Se}=useDefaultProps({props:Ae,name:"MuiTypography"}),Ce=!v6Colors$1[Ee],_e=extendSxProp({...Se,...Ce&&{color:Ee}}),{align:Ie="inherit",className:Be,component:Te,gutterBottom:Pe=!1,noWrap:ke=!1,paragraph:$e=!1,variant:Oe="body1",variantMapping:Ue=defaultVariantMapping,...qe}=_e,ze={..._e,align:Ie,color:Ee,className:Be,component:Te,gutterBottom:Pe,noWrap:ke,paragraph:$e,variant:Oe,variantMapping:Ue},Qe=Te||($e?"p":Ue[Oe]||defaultVariantMapping[Oe])||"span",Ge=useUtilityClasses$1K(ze);return jsxRuntimeExports.jsx(TypographyRoot,{as:Qe,ref:xe,className:clsx(Ge.root,Be),...qe,ownerState:ze,style:{...Ie!=="inherit"&&{"--Typography-textAlign":Ie},...qe.style}})});function getListItemTextUtilityClass(t){return generateUtilityClass("MuiListItemText",t)}const listItemTextClasses=generateUtilityClasses("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),useUtilityClasses$1J=t=>{const{classes:Ae,inset:xe,primary:Ee,secondary:Se,dense:Ce}=t;return composeClasses({root:["root",xe&&"inset",Ce&&"dense",Ee&&Se&&"multiline"],primary:["primary"],secondary:["secondary"]},getListItemTextUtilityClass,Ae)},ListItemTextRoot=styled("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[{[`& .${listItemTextClasses.primary}`]:Ae.primary},{[`& .${listItemTextClasses.secondary}`]:Ae.secondary},Ae.root,xe.inset&&Ae.inset,xe.primary&&xe.secondary&&Ae.multiline,xe.dense&&Ae.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${typographyClasses.root}:where(& .${listItemTextClasses.primary})`]:{display:"block"},[`.${typographyClasses.root}:where(& .${listItemTextClasses.secondary})`]:{display:"block"},variants:[{props:({ownerState:t})=>t.primary&&t.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:56}}]}),ListItemText=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiListItemText"}),{children:Se,className:Ce,disableTypography:_e=!1,inset:Ie=!1,primary:Be,primaryTypographyProps:Te,secondary:Pe,secondaryTypographyProps:ke,slots:$e={},slotProps:Oe={},...Ue}=Ee,{dense:qe}=reactExports.useContext(ListContext);let ze=Be??Se,Qe=Pe;const Ge={...Ee,disableTypography:_e,inset:Ie,primary:!!ze,secondary:!!Qe,dense:qe},Xe=useUtilityClasses$1J(Ge),er={slots:$e,slotProps:{primary:Te,secondary:ke,...Oe}},[tr,nr]=useSlot("primary",{className:Xe.primary,elementType:Typography,externalForwardedProps:er,ownerState:Ge}),[sr,dr]=useSlot("secondary",{className:Xe.secondary,elementType:Typography,externalForwardedProps:er,ownerState:Ge});return ze!=null&&ze.type!==Typography&&!_e&&(ze=jsxRuntimeExports.jsx(tr,{variant:qe?"body2":"body1",component:nr!=null&&nr.variant?void 0:"span",...nr,children:ze})),Qe!=null&&Qe.type!==Typography&&!_e&&(Qe=jsxRuntimeExports.jsx(sr,{variant:"body2",color:"textSecondary",...dr,children:Qe})),jsxRuntimeExports.jsxs(ListItemTextRoot,{className:clsx(Xe.root,Ce),ownerState:Ge,ref:xe,...Ue,children:[ze,Qe]})});function getMenuItemUtilityClass(t){return generateUtilityClass("MuiMenuItem",t)}const menuItemClasses=generateUtilityClasses("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),overridesResolver$5=(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,xe.dense&&Ae.dense,xe.divider&&Ae.divider,!xe.disableGutters&&Ae.gutters]},useUtilityClasses$1I=t=>{const{disabled:Ae,dense:xe,divider:Ee,disableGutters:Se,selected:Ce,classes:_e}=t,Be=composeClasses({root:["root",xe&&"dense",Ae&&"disabled",!Se&&"gutters",Ee&&"divider",Ce&&"selected"]},getMenuItemUtilityClass,_e);return{..._e,...Be}},MenuItemRoot=styled(ButtonBase,{shouldForwardProp:t=>rootShouldForwardProp(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:overridesResolver$5})(memoTheme(({theme:t})=>({...t.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:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${menuItemClasses.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:alpha$3(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${menuItemClasses.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:alpha$3(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${menuItemClasses.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:alpha$3(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:alpha$3(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${menuItemClasses.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${menuItemClasses.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${dividerClasses.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${dividerClasses.inset}`]:{marginLeft:52},[`& .${listItemTextClasses.root}`]:{marginTop:0,marginBottom:0},[`& .${listItemTextClasses.inset}`]:{paddingLeft:36},[`& .${listItemIconClasses.root}`]:{minWidth:36},variants:[{props:({ownerState:Ae})=>!Ae.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:Ae})=>Ae.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:Ae})=>!Ae.dense,style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:Ae})=>Ae.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,[`& .${listItemIconClasses.root} svg`]:{fontSize:"1.25rem"}}}]}))),MenuItem=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiMenuItem"}),{autoFocus:Se=!1,component:Ce="li",dense:_e=!1,divider:Ie=!1,disableGutters:Be=!1,focusVisibleClassName:Te,role:Pe="menuitem",tabIndex:ke,className:$e,...Oe}=Ee,Ue=reactExports.useContext(ListContext),qe=reactExports.useMemo(()=>({dense:_e||Ue.dense||!1,disableGutters:Be}),[Ue.dense,_e,Be]),ze=reactExports.useRef(null);useEnhancedEffect(()=>{Se&&ze.current&&ze.current.focus()},[Se]);const Qe={...Ee,dense:qe.dense,divider:Ie,disableGutters:Be},Ge=useUtilityClasses$1I(Ee),Xe=useForkRef(ze,xe);let er;return Ee.disabled||(er=ke!==void 0?ke:-1),jsxRuntimeExports.jsx(ListContext.Provider,{value:qe,children:jsxRuntimeExports.jsx(MenuItemRoot,{ref:Xe,role:Pe,tabIndex:er,component:Ce,focusVisibleClassName:clsx(Ge.focusVisible,Te),className:clsx(Ge.root,$e),...Oe,ownerState:Qe,classes:Ge})})});function getToolbarUtilityClass(t){return generateUtilityClass("MuiToolbar",t)}generateUtilityClasses("MuiToolbar",["root","gutters","regular","dense"]);const useUtilityClasses$1H=t=>{const{classes:Ae,disableGutters:xe,variant:Ee}=t;return composeClasses({root:["root",!xe&&"gutters",Ee]},getToolbarUtilityClass,Ae)},ToolbarRoot=styled("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,!xe.disableGutters&&Ae.gutters,Ae[xe.variant]]}})(memoTheme(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:Ae})=>!Ae.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),Toolbar=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiToolbar"}),{className:Se,component:Ce="div",disableGutters:_e=!1,variant:Ie="regular",...Be}=Ee,Te={...Ee,component:Ce,disableGutters:_e,variant:Ie},Pe=useUtilityClasses$1H(Te);return jsxRuntimeExports.jsx(ToolbarRoot,{as:Ce,className:clsx(Pe.root,Se),ref:xe,ownerState:Te,...Be})});var top$1="top",bottom$1="bottom",right="right",left="left",auto="auto",basePlacements=[top$1,bottom$1,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(t,Ae){return t.concat([Ae+"-"+start,Ae+"-"+end])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(t,Ae){return t.concat([Ae,Ae+"-"+start,Ae+"-"+end])},[]),beforeRead="beforeRead",read$2="read",afterRead="afterRead",beforeMain="beforeMain",main$1="main",afterMain="afterMain",beforeWrite="beforeWrite",write$2="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read$2,afterRead,beforeMain,main$1,afterMain,beforeWrite,write$2,afterWrite];function getNodeName(t){return t?(t.nodeName||"").toLowerCase():null}function getWindow(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var Ae=t.ownerDocument;return Ae&&Ae.defaultView||window}return t}function isElement(t){var Ae=getWindow(t).Element;return t instanceof Ae||t instanceof Element}function isHTMLElement$2(t){var Ae=getWindow(t).HTMLElement;return t instanceof Ae||t instanceof HTMLElement}function isShadowRoot(t){if(typeof ShadowRoot>"u")return!1;var Ae=getWindow(t).ShadowRoot;return t instanceof Ae||t instanceof ShadowRoot}function applyStyles(t){var Ae=t.state;Object.keys(Ae.elements).forEach(function(xe){var Ee=Ae.styles[xe]||{},Se=Ae.attributes[xe]||{},Ce=Ae.elements[xe];!isHTMLElement$2(Ce)||!getNodeName(Ce)||(Object.assign(Ce.style,Ee),Object.keys(Se).forEach(function(_e){var Ie=Se[_e];Ie===!1?Ce.removeAttribute(_e):Ce.setAttribute(_e,Ie===!0?"":Ie)}))})}function effect$2(t){var Ae=t.state,xe={popper:{position:Ae.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(Ae.elements.popper.style,xe.popper),Ae.styles=xe,Ae.elements.arrow&&Object.assign(Ae.elements.arrow.style,xe.arrow),function(){Object.keys(Ae.elements).forEach(function(Ee){var Se=Ae.elements[Ee],Ce=Ae.attributes[Ee]||{},_e=Object.keys(Ae.styles.hasOwnProperty(Ee)?Ae.styles[Ee]:xe[Ee]),Ie=_e.reduce(function(Be,Te){return Be[Te]="",Be},{});!isHTMLElement$2(Se)||!getNodeName(Se)||(Object.assign(Se.style,Ie),Object.keys(Ce).forEach(function(Be){Se.removeAttribute(Be)}))})}}const applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(t){return t.split("-")[0]}var max$4=Math.max,min$4=Math.min,round$4=Math.round;function getUAString(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(Ae){return Ae.brand+"/"+Ae.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(t,Ae,xe){Ae===void 0&&(Ae=!1),xe===void 0&&(xe=!1);var Ee=t.getBoundingClientRect(),Se=1,Ce=1;Ae&&isHTMLElement$2(t)&&(Se=t.offsetWidth>0&&round$4(Ee.width)/t.offsetWidth||1,Ce=t.offsetHeight>0&&round$4(Ee.height)/t.offsetHeight||1);var _e=isElement(t)?getWindow(t):window,Ie=_e.visualViewport,Be=!isLayoutViewport()&&xe,Te=(Ee.left+(Be&&Ie?Ie.offsetLeft:0))/Se,Pe=(Ee.top+(Be&&Ie?Ie.offsetTop:0))/Ce,ke=Ee.width/Se,$e=Ee.height/Ce;return{width:ke,height:$e,top:Pe,right:Te+ke,bottom:Pe+$e,left:Te,x:Te,y:Pe}}function getLayoutRect(t){var Ae=getBoundingClientRect(t),xe=t.offsetWidth,Ee=t.offsetHeight;return Math.abs(Ae.width-xe)<=1&&(xe=Ae.width),Math.abs(Ae.height-Ee)<=1&&(Ee=Ae.height),{x:t.offsetLeft,y:t.offsetTop,width:xe,height:Ee}}function contains$1(t,Ae){var xe=Ae.getRootNode&&Ae.getRootNode();if(t.contains(Ae))return!0;if(xe&&isShadowRoot(xe)){var Ee=Ae;do{if(Ee&&t.isSameNode(Ee))return!0;Ee=Ee.parentNode||Ee.host}while(Ee)}return!1}function getComputedStyle$2(t){return getWindow(t).getComputedStyle(t)}function isTableElement(t){return["table","td","th"].indexOf(getNodeName(t))>=0}function getDocumentElement(t){return((isElement(t)?t.ownerDocument:t.document)||window.document).documentElement}function getParentNode(t){return getNodeName(t)==="html"?t:t.assignedSlot||t.parentNode||(isShadowRoot(t)?t.host:null)||getDocumentElement(t)}function getTrueOffsetParent(t){return!isHTMLElement$2(t)||getComputedStyle$2(t).position==="fixed"?null:t.offsetParent}function getContainingBlock(t){var Ae=/firefox/i.test(getUAString()),xe=/Trident/i.test(getUAString());if(xe&&isHTMLElement$2(t)){var Ee=getComputedStyle$2(t);if(Ee.position==="fixed")return null}var Se=getParentNode(t);for(isShadowRoot(Se)&&(Se=Se.host);isHTMLElement$2(Se)&&["html","body"].indexOf(getNodeName(Se))<0;){var Ce=getComputedStyle$2(Se);if(Ce.transform!=="none"||Ce.perspective!=="none"||Ce.contain==="paint"||["transform","perspective"].indexOf(Ce.willChange)!==-1||Ae&&Ce.willChange==="filter"||Ae&&Ce.filter&&Ce.filter!=="none")return Se;Se=Se.parentNode}return null}function getOffsetParent(t){for(var Ae=getWindow(t),xe=getTrueOffsetParent(t);xe&&isTableElement(xe)&&getComputedStyle$2(xe).position==="static";)xe=getTrueOffsetParent(xe);return xe&&(getNodeName(xe)==="html"||getNodeName(xe)==="body"&&getComputedStyle$2(xe).position==="static")?Ae:xe||getContainingBlock(t)||Ae}function getMainAxisFromPlacement(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function within(t,Ae,xe){return max$4(t,min$4(Ae,xe))}function withinMaxClamp(t,Ae,xe){var Ee=within(t,Ae,xe);return Ee>xe?xe:Ee}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(t){return Object.assign({},getFreshSideObject(),t)}function expandToHashMap(t,Ae){return Ae.reduce(function(xe,Ee){return xe[Ee]=t,xe},{})}var toPaddingObject=function(Ae,xe){return Ae=typeof Ae=="function"?Ae(Object.assign({},xe.rects,{placement:xe.placement})):Ae,mergePaddingObject(typeof Ae!="number"?Ae:expandToHashMap(Ae,basePlacements))};function arrow(t){var Ae,xe=t.state,Ee=t.name,Se=t.options,Ce=xe.elements.arrow,_e=xe.modifiersData.popperOffsets,Ie=getBasePlacement(xe.placement),Be=getMainAxisFromPlacement(Ie),Te=[left,right].indexOf(Ie)>=0,Pe=Te?"height":"width";if(!(!Ce||!_e)){var ke=toPaddingObject(Se.padding,xe),$e=getLayoutRect(Ce),Oe=Be==="y"?top$1:left,Ue=Be==="y"?bottom$1:right,qe=xe.rects.reference[Pe]+xe.rects.reference[Be]-_e[Be]-xe.rects.popper[Pe],ze=_e[Be]-xe.rects.reference[Be],Qe=getOffsetParent(Ce),Ge=Qe?Be==="y"?Qe.clientHeight||0:Qe.clientWidth||0:0,Xe=qe/2-ze/2,er=ke[Oe],tr=Ge-$e[Pe]-ke[Ue],nr=Ge/2-$e[Pe]/2+Xe,sr=within(er,nr,tr),dr=Be;xe.modifiersData[Ee]=(Ae={},Ae[dr]=sr,Ae.centerOffset=sr-nr,Ae)}}function effect$1(t){var Ae=t.state,xe=t.options,Ee=xe.element,Se=Ee===void 0?"[data-popper-arrow]":Ee;Se!=null&&(typeof Se=="string"&&(Se=Ae.elements.popper.querySelector(Se),!Se)||contains$1(Ae.elements.popper,Se)&&(Ae.elements.arrow=Se))}const arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(t){return t.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(t,Ae){var xe=t.x,Ee=t.y,Se=Ae.devicePixelRatio||1;return{x:round$4(xe*Se)/Se||0,y:round$4(Ee*Se)/Se||0}}function mapToStyles(t){var Ae,xe=t.popper,Ee=t.popperRect,Se=t.placement,Ce=t.variation,_e=t.offsets,Ie=t.position,Be=t.gpuAcceleration,Te=t.adaptive,Pe=t.roundOffsets,ke=t.isFixed,$e=_e.x,Oe=$e===void 0?0:$e,Ue=_e.y,qe=Ue===void 0?0:Ue,ze=typeof Pe=="function"?Pe({x:Oe,y:qe}):{x:Oe,y:qe};Oe=ze.x,qe=ze.y;var Qe=_e.hasOwnProperty("x"),Ge=_e.hasOwnProperty("y"),Xe=left,er=top$1,tr=window;if(Te){var nr=getOffsetParent(xe),sr="clientHeight",dr="clientWidth";if(nr===getWindow(xe)&&(nr=getDocumentElement(xe),getComputedStyle$2(nr).position!=="static"&&Ie==="absolute"&&(sr="scrollHeight",dr="scrollWidth")),nr=nr,Se===top$1||(Se===left||Se===right)&&Ce===end){er=bottom$1;var ar=ke&&nr===tr&&tr.visualViewport?tr.visualViewport.height:nr[sr];qe-=ar-Ee.height,qe*=Be?1:-1}if(Se===left||(Se===top$1||Se===bottom$1)&&Ce===end){Xe=right;var lr=ke&&nr===tr&&tr.visualViewport?tr.visualViewport.width:nr[dr];Oe-=lr-Ee.width,Oe*=Be?1:-1}}var Ke=Object.assign({position:Ie},Te&&unsetSides),Me=Pe===!0?roundOffsetsByDPR({x:Oe,y:qe},getWindow(xe)):{x:Oe,y:qe};if(Oe=Me.x,qe=Me.y,Be){var je;return Object.assign({},Ke,(je={},je[er]=Ge?"0":"",je[Xe]=Qe?"0":"",je.transform=(tr.devicePixelRatio||1)<=1?"translate("+Oe+"px, "+qe+"px)":"translate3d("+Oe+"px, "+qe+"px, 0)",je))}return Object.assign({},Ke,(Ae={},Ae[er]=Ge?qe+"px":"",Ae[Xe]=Qe?Oe+"px":"",Ae.transform="",Ae))}function computeStyles(t){var Ae=t.state,xe=t.options,Ee=xe.gpuAcceleration,Se=Ee===void 0?!0:Ee,Ce=xe.adaptive,_e=Ce===void 0?!0:Ce,Ie=xe.roundOffsets,Be=Ie===void 0?!0:Ie,Te={placement:getBasePlacement(Ae.placement),variation:getVariation(Ae.placement),popper:Ae.elements.popper,popperRect:Ae.rects.popper,gpuAcceleration:Se,isFixed:Ae.options.strategy==="fixed"};Ae.modifiersData.popperOffsets!=null&&(Ae.styles.popper=Object.assign({},Ae.styles.popper,mapToStyles(Object.assign({},Te,{offsets:Ae.modifiersData.popperOffsets,position:Ae.options.strategy,adaptive:_e,roundOffsets:Be})))),Ae.modifiersData.arrow!=null&&(Ae.styles.arrow=Object.assign({},Ae.styles.arrow,mapToStyles(Object.assign({},Te,{offsets:Ae.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:Be})))),Ae.attributes.popper=Object.assign({},Ae.attributes.popper,{"data-popper-placement":Ae.placement})}const computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:!0};function effect(t){var Ae=t.state,xe=t.instance,Ee=t.options,Se=Ee.scroll,Ce=Se===void 0?!0:Se,_e=Ee.resize,Ie=_e===void 0?!0:_e,Be=getWindow(Ae.elements.popper),Te=[].concat(Ae.scrollParents.reference,Ae.scrollParents.popper);return Ce&&Te.forEach(function(Pe){Pe.addEventListener("scroll",xe.update,passive)}),Ie&&Be.addEventListener("resize",xe.update,passive),function(){Ce&&Te.forEach(function(Pe){Pe.removeEventListener("scroll",xe.update,passive)}),Ie&&Be.removeEventListener("resize",xe.update,passive)}}const eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect,data:{}};var hash$3={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(t){return t.replace(/left|right|bottom|top/g,function(Ae){return hash$3[Ae]})}var hash$2={start:"end",end:"start"};function getOppositeVariationPlacement(t){return t.replace(/start|end/g,function(Ae){return hash$2[Ae]})}function getWindowScroll(t){var Ae=getWindow(t),xe=Ae.pageXOffset,Ee=Ae.pageYOffset;return{scrollLeft:xe,scrollTop:Ee}}function getWindowScrollBarX(t){return getBoundingClientRect(getDocumentElement(t)).left+getWindowScroll(t).scrollLeft}function getViewportRect(t,Ae){var xe=getWindow(t),Ee=getDocumentElement(t),Se=xe.visualViewport,Ce=Ee.clientWidth,_e=Ee.clientHeight,Ie=0,Be=0;if(Se){Ce=Se.width,_e=Se.height;var Te=isLayoutViewport();(Te||!Te&&Ae==="fixed")&&(Ie=Se.offsetLeft,Be=Se.offsetTop)}return{width:Ce,height:_e,x:Ie+getWindowScrollBarX(t),y:Be}}function getDocumentRect(t){var Ae,xe=getDocumentElement(t),Ee=getWindowScroll(t),Se=(Ae=t.ownerDocument)==null?void 0:Ae.body,Ce=max$4(xe.scrollWidth,xe.clientWidth,Se?Se.scrollWidth:0,Se?Se.clientWidth:0),_e=max$4(xe.scrollHeight,xe.clientHeight,Se?Se.scrollHeight:0,Se?Se.clientHeight:0),Ie=-Ee.scrollLeft+getWindowScrollBarX(t),Be=-Ee.scrollTop;return getComputedStyle$2(Se||xe).direction==="rtl"&&(Ie+=max$4(xe.clientWidth,Se?Se.clientWidth:0)-Ce),{width:Ce,height:_e,x:Ie,y:Be}}function isScrollParent(t){var Ae=getComputedStyle$2(t),xe=Ae.overflow,Ee=Ae.overflowX,Se=Ae.overflowY;return/auto|scroll|overlay|hidden/.test(xe+Se+Ee)}function getScrollParent(t){return["html","body","#document"].indexOf(getNodeName(t))>=0?t.ownerDocument.body:isHTMLElement$2(t)&&isScrollParent(t)?t:getScrollParent(getParentNode(t))}function listScrollParents(t,Ae){var xe;Ae===void 0&&(Ae=[]);var Ee=getScrollParent(t),Se=Ee===((xe=t.ownerDocument)==null?void 0:xe.body),Ce=getWindow(Ee),_e=Se?[Ce].concat(Ce.visualViewport||[],isScrollParent(Ee)?Ee:[]):Ee,Ie=Ae.concat(_e);return Se?Ie:Ie.concat(listScrollParents(getParentNode(_e)))}function rectToClientRect(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function getInnerBoundingClientRect(t,Ae){var xe=getBoundingClientRect(t,!1,Ae==="fixed");return xe.top=xe.top+t.clientTop,xe.left=xe.left+t.clientLeft,xe.bottom=xe.top+t.clientHeight,xe.right=xe.left+t.clientWidth,xe.width=t.clientWidth,xe.height=t.clientHeight,xe.x=xe.left,xe.y=xe.top,xe}function getClientRectFromMixedType(t,Ae,xe){return Ae===viewport?rectToClientRect(getViewportRect(t,xe)):isElement(Ae)?getInnerBoundingClientRect(Ae,xe):rectToClientRect(getDocumentRect(getDocumentElement(t)))}function getClippingParents(t){var Ae=listScrollParents(getParentNode(t)),xe=["absolute","fixed"].indexOf(getComputedStyle$2(t).position)>=0,Ee=xe&&isHTMLElement$2(t)?getOffsetParent(t):t;return isElement(Ee)?Ae.filter(function(Se){return isElement(Se)&&contains$1(Se,Ee)&&getNodeName(Se)!=="body"}):[]}function getClippingRect(t,Ae,xe,Ee){var Se=Ae==="clippingParents"?getClippingParents(t):[].concat(Ae),Ce=[].concat(Se,[xe]),_e=Ce[0],Ie=Ce.reduce(function(Be,Te){var Pe=getClientRectFromMixedType(t,Te,Ee);return Be.top=max$4(Pe.top,Be.top),Be.right=min$4(Pe.right,Be.right),Be.bottom=min$4(Pe.bottom,Be.bottom),Be.left=max$4(Pe.left,Be.left),Be},getClientRectFromMixedType(t,_e,Ee));return Ie.width=Ie.right-Ie.left,Ie.height=Ie.bottom-Ie.top,Ie.x=Ie.left,Ie.y=Ie.top,Ie}function computeOffsets(t){var Ae=t.reference,xe=t.element,Ee=t.placement,Se=Ee?getBasePlacement(Ee):null,Ce=Ee?getVariation(Ee):null,_e=Ae.x+Ae.width/2-xe.width/2,Ie=Ae.y+Ae.height/2-xe.height/2,Be;switch(Se){case top$1:Be={x:_e,y:Ae.y-xe.height};break;case bottom$1:Be={x:_e,y:Ae.y+Ae.height};break;case right:Be={x:Ae.x+Ae.width,y:Ie};break;case left:Be={x:Ae.x-xe.width,y:Ie};break;default:Be={x:Ae.x,y:Ae.y}}var Te=Se?getMainAxisFromPlacement(Se):null;if(Te!=null){var Pe=Te==="y"?"height":"width";switch(Ce){case start:Be[Te]=Be[Te]-(Ae[Pe]/2-xe[Pe]/2);break;case end:Be[Te]=Be[Te]+(Ae[Pe]/2-xe[Pe]/2);break}}return Be}function detectOverflow(t,Ae){Ae===void 0&&(Ae={});var xe=Ae,Ee=xe.placement,Se=Ee===void 0?t.placement:Ee,Ce=xe.strategy,_e=Ce===void 0?t.strategy:Ce,Ie=xe.boundary,Be=Ie===void 0?clippingParents:Ie,Te=xe.rootBoundary,Pe=Te===void 0?viewport:Te,ke=xe.elementContext,$e=ke===void 0?popper:ke,Oe=xe.altBoundary,Ue=Oe===void 0?!1:Oe,qe=xe.padding,ze=qe===void 0?0:qe,Qe=mergePaddingObject(typeof ze!="number"?ze:expandToHashMap(ze,basePlacements)),Ge=$e===popper?reference:popper,Xe=t.rects.popper,er=t.elements[Ue?Ge:$e],tr=getClippingRect(isElement(er)?er:er.contextElement||getDocumentElement(t.elements.popper),Be,Pe,_e),nr=getBoundingClientRect(t.elements.reference),sr=computeOffsets({reference:nr,element:Xe,placement:Se}),dr=rectToClientRect(Object.assign({},Xe,sr)),ar=$e===popper?dr:nr,lr={top:tr.top-ar.top+Qe.top,bottom:ar.bottom-tr.bottom+Qe.bottom,left:tr.left-ar.left+Qe.left,right:ar.right-tr.right+Qe.right},Ke=t.modifiersData.offset;if($e===popper&&Ke){var Me=Ke[Se];Object.keys(lr).forEach(function(je){var De=[right,bottom$1].indexOf(je)>=0?1:-1,He=[top$1,bottom$1].indexOf(je)>=0?"y":"x";lr[je]+=Me[He]*De})}return lr}function computeAutoPlacement(t,Ae){Ae===void 0&&(Ae={});var xe=Ae,Ee=xe.placement,Se=xe.boundary,Ce=xe.rootBoundary,_e=xe.padding,Ie=xe.flipVariations,Be=xe.allowedAutoPlacements,Te=Be===void 0?placements:Be,Pe=getVariation(Ee),ke=Pe?Ie?variationPlacements:variationPlacements.filter(function(Ue){return getVariation(Ue)===Pe}):basePlacements,$e=ke.filter(function(Ue){return Te.indexOf(Ue)>=0});$e.length===0&&($e=ke);var Oe=$e.reduce(function(Ue,qe){return Ue[qe]=detectOverflow(t,{placement:qe,boundary:Se,rootBoundary:Ce,padding:_e})[getBasePlacement(qe)],Ue},{});return Object.keys(Oe).sort(function(Ue,qe){return Oe[Ue]-Oe[qe]})}function getExpandedFallbackPlacements(t){if(getBasePlacement(t)===auto)return[];var Ae=getOppositePlacement(t);return[getOppositeVariationPlacement(t),Ae,getOppositeVariationPlacement(Ae)]}function flip(t){var Ae=t.state,xe=t.options,Ee=t.name;if(!Ae.modifiersData[Ee]._skip){for(var Se=xe.mainAxis,Ce=Se===void 0?!0:Se,_e=xe.altAxis,Ie=_e===void 0?!0:_e,Be=xe.fallbackPlacements,Te=xe.padding,Pe=xe.boundary,ke=xe.rootBoundary,$e=xe.altBoundary,Oe=xe.flipVariations,Ue=Oe===void 0?!0:Oe,qe=xe.allowedAutoPlacements,ze=Ae.options.placement,Qe=getBasePlacement(ze),Ge=Qe===ze,Xe=Be||(Ge||!Ue?[getOppositePlacement(ze)]:getExpandedFallbackPlacements(ze)),er=[ze].concat(Xe).reduce(function(fr,Ar){return fr.concat(getBasePlacement(Ar)===auto?computeAutoPlacement(Ae,{placement:Ar,boundary:Pe,rootBoundary:ke,padding:Te,flipVariations:Ue,allowedAutoPlacements:qe}):Ar)},[]),tr=Ae.rects.reference,nr=Ae.rects.popper,sr=new Map,dr=!0,ar=er[0],lr=0;lr<er.length;lr++){var Ke=er[lr],Me=getBasePlacement(Ke),je=getVariation(Ke)===start,De=[top$1,bottom$1].indexOf(Me)>=0,He=De?"width":"height",Ve=detectOverflow(Ae,{placement:Ke,boundary:Pe,rootBoundary:ke,altBoundary:$e,padding:Te}),Ye=De?je?right:left:je?bottom$1:top$1;tr[He]>nr[He]&&(Ye=getOppositePlacement(Ye));var St=getOppositePlacement(Ye),We=[];if(Ce&&We.push(Ve[Me]<=0),Ie&&We.push(Ve[Ye]<=0,Ve[St]<=0),We.every(function(fr){return fr})){ar=Ke,dr=!1;break}sr.set(Ke,We)}if(dr)for(var Fe=Ue?3:1,Ze=function(Ar){var vr=er.find(function(yr){var br=sr.get(yr);if(br)return br.slice(0,Ar).every(function(_r){return _r})});if(vr)return ar=vr,"break"},ir=Fe;ir>0;ir--){var ur=Ze(ir);if(ur==="break")break}Ae.placement!==ar&&(Ae.modifiersData[Ee]._skip=!0,Ae.placement=ar,Ae.reset=!0)}}const flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(t,Ae,xe){return xe===void 0&&(xe={x:0,y:0}),{top:t.top-Ae.height-xe.y,right:t.right-Ae.width+xe.x,bottom:t.bottom-Ae.height+xe.y,left:t.left-Ae.width-xe.x}}function isAnySideFullyClipped(t){return[top$1,right,bottom$1,left].some(function(Ae){return t[Ae]>=0})}function hide(t){var Ae=t.state,xe=t.name,Ee=Ae.rects.reference,Se=Ae.rects.popper,Ce=Ae.modifiersData.preventOverflow,_e=detectOverflow(Ae,{elementContext:"reference"}),Ie=detectOverflow(Ae,{altBoundary:!0}),Be=getSideOffsets(_e,Ee),Te=getSideOffsets(Ie,Se,Ce),Pe=isAnySideFullyClipped(Be),ke=isAnySideFullyClipped(Te);Ae.modifiersData[xe]={referenceClippingOffsets:Be,popperEscapeOffsets:Te,isReferenceHidden:Pe,hasPopperEscaped:ke},Ae.attributes.popper=Object.assign({},Ae.attributes.popper,{"data-popper-reference-hidden":Pe,"data-popper-escaped":ke})}const hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(t,Ae,xe){var Ee=getBasePlacement(t),Se=[left,top$1].indexOf(Ee)>=0?-1:1,Ce=typeof xe=="function"?xe(Object.assign({},Ae,{placement:t})):xe,_e=Ce[0],Ie=Ce[1];return _e=_e||0,Ie=(Ie||0)*Se,[left,right].indexOf(Ee)>=0?{x:Ie,y:_e}:{x:_e,y:Ie}}function offset(t){var Ae=t.state,xe=t.options,Ee=t.name,Se=xe.offset,Ce=Se===void 0?[0,0]:Se,_e=placements.reduce(function(Pe,ke){return Pe[ke]=distanceAndSkiddingToXY(ke,Ae.rects,Ce),Pe},{}),Ie=_e[Ae.placement],Be=Ie.x,Te=Ie.y;Ae.modifiersData.popperOffsets!=null&&(Ae.modifiersData.popperOffsets.x+=Be,Ae.modifiersData.popperOffsets.y+=Te),Ae.modifiersData[Ee]=_e}const offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(t){var Ae=t.state,xe=t.name;Ae.modifiersData[xe]=computeOffsets({reference:Ae.rects.reference,element:Ae.rects.popper,placement:Ae.placement})}const popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(t){return t==="x"?"y":"x"}function preventOverflow(t){var Ae=t.state,xe=t.options,Ee=t.name,Se=xe.mainAxis,Ce=Se===void 0?!0:Se,_e=xe.altAxis,Ie=_e===void 0?!1:_e,Be=xe.boundary,Te=xe.rootBoundary,Pe=xe.altBoundary,ke=xe.padding,$e=xe.tether,Oe=$e===void 0?!0:$e,Ue=xe.tetherOffset,qe=Ue===void 0?0:Ue,ze=detectOverflow(Ae,{boundary:Be,rootBoundary:Te,padding:ke,altBoundary:Pe}),Qe=getBasePlacement(Ae.placement),Ge=getVariation(Ae.placement),Xe=!Ge,er=getMainAxisFromPlacement(Qe),tr=getAltAxis(er),nr=Ae.modifiersData.popperOffsets,sr=Ae.rects.reference,dr=Ae.rects.popper,ar=typeof qe=="function"?qe(Object.assign({},Ae.rects,{placement:Ae.placement})):qe,lr=typeof ar=="number"?{mainAxis:ar,altAxis:ar}:Object.assign({mainAxis:0,altAxis:0},ar),Ke=Ae.modifiersData.offset?Ae.modifiersData.offset[Ae.placement]:null,Me={x:0,y:0};if(nr){if(Ce){var je,De=er==="y"?top$1:left,He=er==="y"?bottom$1:right,Ve=er==="y"?"height":"width",Ye=nr[er],St=Ye+ze[De],We=Ye-ze[He],Fe=Oe?-dr[Ve]/2:0,Ze=Ge===start?sr[Ve]:dr[Ve],ir=Ge===start?-dr[Ve]:-sr[Ve],ur=Ae.elements.arrow,fr=Oe&&ur?getLayoutRect(ur):{width:0,height:0},Ar=Ae.modifiersData["arrow#persistent"]?Ae.modifiersData["arrow#persistent"].padding:getFreshSideObject(),vr=Ar[De],yr=Ar[He],br=within(0,sr[Ve],fr[Ve]),_r=Xe?sr[Ve]/2-Fe-br-vr-lr.mainAxis:Ze-br-vr-lr.mainAxis,$r=Xe?-sr[Ve]/2+Fe+br+yr+lr.mainAxis:ir+br+yr+lr.mainAxis,Fr=Ae.elements.arrow&&getOffsetParent(Ae.elements.arrow),Ir=Fr?er==="y"?Fr.clientTop||0:Fr.clientLeft||0:0,zr=(je=Ke==null?void 0:Ke[er])!=null?je:0,dn=Ye+_r-zr-Ir,tn=Ye+$r-zr,Gr=within(Oe?min$4(St,dn):St,Ye,Oe?max$4(We,tn):We);nr[er]=Gr,Me[er]=Gr-Ye}if(Ie){var wn,an=er==="x"?top$1:left,Vr=er==="x"?bottom$1:right,Rn=nr[tr],un=tr==="y"?"height":"width",sn=Rn+ze[an],jn=Rn-ze[Vr],en=[top$1,left].indexOf(Qe)!==-1,Jr=(wn=Ke==null?void 0:Ke[tr])!=null?wn:0,nn=en?sn:Rn-sr[un]-dr[un]-Jr+lr.altAxis,rn=en?Rn+sr[un]+dr[un]-Jr-lr.altAxis:jn,cn=Oe&&en?withinMaxClamp(nn,Rn,rn):within(Oe?nn:sn,Rn,Oe?rn:jn);nr[tr]=cn,Me[tr]=cn-Rn}Ae.modifiersData[Ee]=Me}}const preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function getNodeScroll(t){return t===getWindow(t)||!isHTMLElement$2(t)?getWindowScroll(t):getHTMLElementScroll(t)}function isElementScaled(t){var Ae=t.getBoundingClientRect(),xe=round$4(Ae.width)/t.offsetWidth||1,Ee=round$4(Ae.height)/t.offsetHeight||1;return xe!==1||Ee!==1}function getCompositeRect(t,Ae,xe){xe===void 0&&(xe=!1);var Ee=isHTMLElement$2(Ae),Se=isHTMLElement$2(Ae)&&isElementScaled(Ae),Ce=getDocumentElement(Ae),_e=getBoundingClientRect(t,Se,xe),Ie={scrollLeft:0,scrollTop:0},Be={x:0,y:0};return(Ee||!Ee&&!xe)&&((getNodeName(Ae)!=="body"||isScrollParent(Ce))&&(Ie=getNodeScroll(Ae)),isHTMLElement$2(Ae)?(Be=getBoundingClientRect(Ae,!0),Be.x+=Ae.clientLeft,Be.y+=Ae.clientTop):Ce&&(Be.x=getWindowScrollBarX(Ce))),{x:_e.left+Ie.scrollLeft-Be.x,y:_e.top+Ie.scrollTop-Be.y,width:_e.width,height:_e.height}}function order$2(t){var Ae=new Map,xe=new Set,Ee=[];t.forEach(function(Ce){Ae.set(Ce.name,Ce)});function Se(Ce){xe.add(Ce.name);var _e=[].concat(Ce.requires||[],Ce.requiresIfExists||[]);_e.forEach(function(Ie){if(!xe.has(Ie)){var Be=Ae.get(Ie);Be&&Se(Be)}}),Ee.push(Ce)}return t.forEach(function(Ce){xe.has(Ce.name)||Se(Ce)}),Ee}function orderModifiers(t){var Ae=order$2(t);return modifierPhases.reduce(function(xe,Ee){return xe.concat(Ae.filter(function(Se){return Se.phase===Ee}))},[])}function debounce$1(t){var Ae;return function(){return Ae||(Ae=new Promise(function(xe){Promise.resolve().then(function(){Ae=void 0,xe(t())})})),Ae}}function mergeByName(t){var Ae=t.reduce(function(xe,Ee){var Se=xe[Ee.name];return xe[Ee.name]=Se?Object.assign({},Se,Ee,{options:Object.assign({},Se.options,Ee.options),data:Object.assign({},Se.data,Ee.data)}):Ee,xe},{});return Object.keys(Ae).map(function(xe){return Ae[xe]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var t=arguments.length,Ae=new Array(t),xe=0;xe<t;xe++)Ae[xe]=arguments[xe];return!Ae.some(function(Ee){return!(Ee&&typeof Ee.getBoundingClientRect=="function")})}function popperGenerator(t){t===void 0&&(t={});var Ae=t,xe=Ae.defaultModifiers,Ee=xe===void 0?[]:xe,Se=Ae.defaultOptions,Ce=Se===void 0?DEFAULT_OPTIONS:Se;return function(Ie,Be,Te){Te===void 0&&(Te=Ce);var Pe={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,Ce),modifiersData:{},elements:{reference:Ie,popper:Be},attributes:{},styles:{}},ke=[],$e=!1,Oe={state:Pe,setOptions:function(Qe){var Ge=typeof Qe=="function"?Qe(Pe.options):Qe;qe(),Pe.options=Object.assign({},Ce,Pe.options,Ge),Pe.scrollParents={reference:isElement(Ie)?listScrollParents(Ie):Ie.contextElement?listScrollParents(Ie.contextElement):[],popper:listScrollParents(Be)};var Xe=orderModifiers(mergeByName([].concat(Ee,Pe.options.modifiers)));return Pe.orderedModifiers=Xe.filter(function(er){return er.enabled}),Ue(),Oe.update()},forceUpdate:function(){if(!$e){var Qe=Pe.elements,Ge=Qe.reference,Xe=Qe.popper;if(areValidElements(Ge,Xe)){Pe.rects={reference:getCompositeRect(Ge,getOffsetParent(Xe),Pe.options.strategy==="fixed"),popper:getLayoutRect(Xe)},Pe.reset=!1,Pe.placement=Pe.options.placement,Pe.orderedModifiers.forEach(function(lr){return Pe.modifiersData[lr.name]=Object.assign({},lr.data)});for(var er=0;er<Pe.orderedModifiers.length;er++){if(Pe.reset===!0){Pe.reset=!1,er=-1;continue}var tr=Pe.orderedModifiers[er],nr=tr.fn,sr=tr.options,dr=sr===void 0?{}:sr,ar=tr.name;typeof nr=="function"&&(Pe=nr({state:Pe,options:dr,name:ar,instance:Oe})||Pe)}}}},update:debounce$1(function(){return new Promise(function(ze){Oe.forceUpdate(),ze(Pe)})}),destroy:function(){qe(),$e=!0}};if(!areValidElements(Ie,Be))return Oe;Oe.setOptions(Te).then(function(ze){!$e&&Te.onFirstUpdate&&Te.onFirstUpdate(ze)});function Ue(){Pe.orderedModifiers.forEach(function(ze){var Qe=ze.name,Ge=ze.options,Xe=Ge===void 0?{}:Ge,er=ze.effect;if(typeof er=="function"){var tr=er({state:Pe,name:Qe,instance:Oe,options:Xe}),nr=function(){};ke.push(tr||nr)}})}function qe(){ke.forEach(function(ze){return ze()}),ke=[]}return Oe}}var defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$1,flip$1,preventOverflow$1,arrow$1,hide$1],createPopper=popperGenerator({defaultModifiers});function getPopperUtilityClass(t){return generateUtilityClass("MuiPopper",t)}generateUtilityClasses("MuiPopper",["root"]);function flipPlacement(t,Ae){if(Ae==="ltr")return t;switch(t){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 t}}function resolveAnchorEl(t){return typeof t=="function"?t():t}function isHTMLElement$1(t){return t.nodeType!==void 0}const useUtilityClasses$1G=t=>{const{classes:Ae}=t;return composeClasses({root:["root"]},getPopperUtilityClass,Ae)},defaultPopperOptions={},PopperTooltip=reactExports.forwardRef(function(Ae,xe){const{anchorEl:Ee,children:Se,direction:Ce,disablePortal:_e,modifiers:Ie,open:Be,placement:Te,popperOptions:Pe,popperRef:ke,slotProps:$e={},slots:Oe={},TransitionProps:Ue,ownerState:qe,...ze}=Ae,Qe=reactExports.useRef(null),Ge=useForkRef(Qe,xe),Xe=reactExports.useRef(null),er=useForkRef(Xe,ke),tr=reactExports.useRef(er);useEnhancedEffect(()=>{tr.current=er},[er]),reactExports.useImperativeHandle(ke,()=>Xe.current,[]);const nr=flipPlacement(Te,Ce),[sr,dr]=reactExports.useState(nr),[ar,lr]=reactExports.useState(resolveAnchorEl(Ee));reactExports.useEffect(()=>{Xe.current&&Xe.current.forceUpdate()}),reactExports.useEffect(()=>{Ee&&lr(resolveAnchorEl(Ee))},[Ee]),useEnhancedEffect(()=>{if(!ar||!Be)return;const He=St=>{dr(St.placement)};let Ve=[{name:"preventOverflow",options:{altBoundary:_e}},{name:"flip",options:{altBoundary:_e}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:St})=>{He(St)}}];Ie!=null&&(Ve=Ve.concat(Ie)),Pe&&Pe.modifiers!=null&&(Ve=Ve.concat(Pe.modifiers));const Ye=createPopper(ar,Qe.current,{placement:nr,...Pe,modifiers:Ve});return tr.current(Ye),()=>{Ye.destroy(),tr.current(null)}},[ar,_e,Ie,Be,Pe,nr]);const Ke={placement:sr};Ue!==null&&(Ke.TransitionProps=Ue);const Me=useUtilityClasses$1G(Ae),je=Oe.root??"div",De=useSlotProps({elementType:je,externalSlotProps:$e.root,externalForwardedProps:ze,additionalProps:{role:"tooltip",ref:Ge},ownerState:Ae,className:Me.root});return jsxRuntimeExports.jsx(je,{...De,children:typeof Se=="function"?Se(Ke):Se})}),Popper$1=reactExports.forwardRef(function(Ae,xe){const{anchorEl:Ee,children:Se,container:Ce,direction:_e="ltr",disablePortal:Ie=!1,keepMounted:Be=!1,modifiers:Te,open:Pe,placement:ke="bottom",popperOptions:$e=defaultPopperOptions,popperRef:Oe,style:Ue,transition:qe=!1,slotProps:ze={},slots:Qe={},...Ge}=Ae,[Xe,er]=reactExports.useState(!0),tr=()=>{er(!1)},nr=()=>{er(!0)};if(!Be&&!Pe&&(!qe||Xe))return null;let sr;if(Ce)sr=Ce;else if(Ee){const lr=resolveAnchorEl(Ee);sr=lr&&isHTMLElement$1(lr)?ownerDocument(lr).body:ownerDocument(null).body}const dr=!Pe&&Be&&(!qe||Xe)?"none":void 0,ar=qe?{in:Pe,onEnter:tr,onExited:nr}:void 0;return jsxRuntimeExports.jsx(Portal,{disablePortal:Ie,container:sr,children:jsxRuntimeExports.jsx(PopperTooltip,{anchorEl:Ee,direction:_e,disablePortal:Ie,modifiers:Te,ref:xe,open:qe?!Xe:Pe,placement:ke,popperOptions:$e,popperRef:Oe,slotProps:ze,slots:Qe,...Ge,style:{position:"fixed",top:0,left:0,display:dr,...Ue},TransitionProps:ar,children:Se})})}),PopperRoot=styled(Popper$1,{name:"MuiPopper",slot:"Root",overridesResolver:(t,Ae)=>Ae.root})({}),Popper=reactExports.forwardRef(function(Ae,xe){const Ee=useRtl(),Se=useDefaultProps({props:Ae,name:"MuiPopper"}),{anchorEl:Ce,component:_e,components:Ie,componentsProps:Be,container:Te,disablePortal:Pe,keepMounted:ke,modifiers:$e,open:Oe,placement:Ue,popperOptions:qe,popperRef:ze,transition:Qe,slots:Ge,slotProps:Xe,...er}=Se,tr=(Ge==null?void 0:Ge.root)??(Ie==null?void 0:Ie.Root),nr={anchorEl:Ce,container:Te,disablePortal:Pe,keepMounted:ke,modifiers:$e,open:Oe,placement:Ue,popperOptions:qe,popperRef:ze,transition:Qe,...er};return jsxRuntimeExports.jsx(PopperRoot,{as:_e,direction:Ee?"rtl":"ltr",slots:{root:tr},slotProps:Xe??Be,...nr,ref:xe})});function getTooltipUtilityClass(t){return generateUtilityClass("MuiTooltip",t)}const tooltipClasses=generateUtilityClasses("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function round$3(t){return Math.round(t*1e5)/1e5}const useUtilityClasses$1F=t=>{const{classes:Ae,disableInteractive:xe,arrow:Ee,touch:Se,placement:Ce}=t,_e={popper:["popper",!xe&&"popperInteractive",Ee&&"popperArrow"],tooltip:["tooltip",Ee&&"tooltipArrow",Se&&"touch",`tooltipPlacement${capitalize$1(Ce.split("-")[0])}`],arrow:["arrow"]};return composeClasses(_e,getTooltipUtilityClass,Ae)},TooltipPopper=styled(Popper,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.popper,!xe.disableInteractive&&Ae.popperInteractive,xe.arrow&&Ae.popperArrow,!xe.open&&Ae.popperClose]}})(memoTheme(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:Ae})=>!Ae.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:Ae})=>!Ae,style:{pointerEvents:"none"}},{props:({ownerState:Ae})=>Ae.arrow,style:{[`&[data-popper-placement*="bottom"] .${tooltipClasses.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${tooltipClasses.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${tooltipClasses.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${tooltipClasses.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:Ae})=>Ae.arrow&&!Ae.isRtl,style:{[`&[data-popper-placement*="right"] .${tooltipClasses.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:Ae})=>Ae.arrow&&!!Ae.isRtl,style:{[`&[data-popper-placement*="right"] .${tooltipClasses.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:Ae})=>Ae.arrow&&!Ae.isRtl,style:{[`&[data-popper-placement*="left"] .${tooltipClasses.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:Ae})=>Ae.arrow&&!!Ae.isRtl,style:{[`&[data-popper-placement*="left"] .${tooltipClasses.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),TooltipTooltip=styled("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.tooltip,xe.touch&&Ae.touch,xe.arrow&&Ae.tooltipArrow,Ae[`tooltipPlacement${capitalize$1(xe.placement.split("-")[0])}`]]}})(memoTheme(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:alpha$3(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${tooltipClasses.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${tooltipClasses.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${tooltipClasses.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${tooltipClasses.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:Ae})=>Ae.arrow,style:{position:"relative",margin:0}},{props:({ownerState:Ae})=>Ae.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${round$3(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:Ae})=>!Ae.isRtl,style:{[`.${tooltipClasses.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${tooltipClasses.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:Ae})=>!Ae.isRtl&&Ae.touch,style:{[`.${tooltipClasses.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${tooltipClasses.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:Ae})=>!!Ae.isRtl,style:{[`.${tooltipClasses.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${tooltipClasses.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:Ae})=>!!Ae.isRtl&&Ae.touch,style:{[`.${tooltipClasses.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${tooltipClasses.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:Ae})=>Ae.touch,style:{[`.${tooltipClasses.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:Ae})=>Ae.touch,style:{[`.${tooltipClasses.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),TooltipArrow=styled("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,Ae)=>Ae.arrow})(memoTheme(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:alpha$3(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let hystersisOpen=!1;const hystersisTimer=new Timeout;let cursorPosition={x:0,y:0};function composeEventHandler(t,Ae){return(xe,...Ee)=>{Ae&&Ae(xe,...Ee),t(xe,...Ee)}}const Tooltip$2=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiTooltip"}),{arrow:Se=!1,children:Ce,classes:_e,components:Ie={},componentsProps:Be={},describeChild:Te=!1,disableFocusListener:Pe=!1,disableHoverListener:ke=!1,disableInteractive:$e=!1,disableTouchListener:Oe=!1,enterDelay:Ue=100,enterNextDelay:qe=0,enterTouchDelay:ze=700,followCursor:Qe=!1,id:Ge,leaveDelay:Xe=0,leaveTouchDelay:er=1500,onClose:tr,onOpen:nr,open:sr,placement:dr="bottom",PopperComponent:ar,PopperProps:lr={},slotProps:Ke={},slots:Me={},title:je,TransitionComponent:De,TransitionProps:He,...Ve}=Ee,Ye=reactExports.isValidElement(Ce)?Ce:jsxRuntimeExports.jsx("span",{children:Ce}),St=useTheme(),We=useRtl(),[Fe,Ze]=reactExports.useState(),[ir,ur]=reactExports.useState(null),fr=reactExports.useRef(!1),Ar=$e||Qe,vr=useTimeout(),yr=useTimeout(),br=useTimeout(),_r=useTimeout(),[$r,Fr]=useControlled({controlled:sr,default:!1,name:"Tooltip",state:"open"});let Ir=$r;const zr=useId(Ge),dn=reactExports.useRef(),tn=useEventCallback(()=>{dn.current!==void 0&&(document.body.style.WebkitUserSelect=dn.current,dn.current=void 0),_r.clear()});reactExports.useEffect(()=>tn,[tn]);const Gr=Nn=>{hystersisTimer.clear(),hystersisOpen=!0,Fr(!0),nr&&!Ir&&nr(Nn)},wn=useEventCallback(Nn=>{hystersisTimer.start(800+Xe,()=>{hystersisOpen=!1}),Fr(!1),tr&&Ir&&tr(Nn),vr.start(St.transitions.duration.shortest,()=>{fr.current=!1})}),an=Nn=>{fr.current&&Nn.type!=="touchstart"||(Fe&&Fe.removeAttribute("title"),yr.clear(),br.clear(),Ue||hystersisOpen&&qe?yr.start(hystersisOpen?qe:Ue,()=>{Gr(Nn)}):Gr(Nn))},Vr=Nn=>{yr.clear(),br.start(Xe,()=>{wn(Nn)})},[,Rn]=reactExports.useState(!1),un=Nn=>{isFocusVisible(Nn.target)||(Rn(!1),Vr(Nn))},sn=Nn=>{Fe||Ze(Nn.currentTarget),isFocusVisible(Nn.target)&&(Rn(!0),an(Nn))},jn=Nn=>{fr.current=!0;const kr=Ye.props;kr.onTouchStart&&kr.onTouchStart(Nn)},en=Nn=>{jn(Nn),br.clear(),vr.clear(),tn(),dn.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",_r.start(ze,()=>{document.body.style.WebkitUserSelect=dn.current,an(Nn)})},Jr=Nn=>{Ye.props.onTouchEnd&&Ye.props.onTouchEnd(Nn),tn(),br.start(er,()=>{wn(Nn)})};reactExports.useEffect(()=>{if(!Ir)return;function Nn(kr){kr.key==="Escape"&&wn(kr)}return document.addEventListener("keydown",Nn),()=>{document.removeEventListener("keydown",Nn)}},[wn,Ir]);const nn=useForkRef(getReactElementRef(Ye),Ze,xe);!je&&je!==0&&(Ir=!1);const rn=reactExports.useRef(),cn=Nn=>{const kr=Ye.props;kr.onMouseMove&&kr.onMouseMove(Nn),cursorPosition={x:Nn.clientX,y:Nn.clientY},rn.current&&rn.current.update()},pn={},Mr=typeof je=="string";Te?(pn.title=!Ir&&Mr&&!ke?je:null,pn["aria-describedby"]=Ir?zr:null):(pn["aria-label"]=Mr?je:null,pn["aria-labelledby"]=Ir&&!Mr?zr:null);const gr={...pn,...Ve,...Ye.props,className:clsx(Ve.className,Ye.props.className),onTouchStart:jn,ref:nn,...Qe?{onMouseMove:cn}:{}},Br={};Oe||(gr.onTouchStart=en,gr.onTouchEnd=Jr),ke||(gr.onMouseOver=composeEventHandler(an,gr.onMouseOver),gr.onMouseLeave=composeEventHandler(Vr,gr.onMouseLeave),Ar||(Br.onMouseOver=an,Br.onMouseLeave=Vr)),Pe||(gr.onFocus=composeEventHandler(sn,gr.onFocus),gr.onBlur=composeEventHandler(un,gr.onBlur),Ar||(Br.onFocus=sn,Br.onBlur=un));const Hr={...Ee,isRtl:We,arrow:Se,disableInteractive:Ar,placement:dr,PopperComponentProp:ar,touch:fr.current},Kr=typeof Ke.popper=="function"?Ke.popper(Hr):Ke.popper,Dr=reactExports.useMemo(()=>{var kr,Er;let Nn=[{name:"arrow",enabled:!!ir,options:{element:ir,padding:4}}];return(kr=lr.popperOptions)!=null&&kr.modifiers&&(Nn=Nn.concat(lr.popperOptions.modifiers)),(Er=Kr==null?void 0:Kr.popperOptions)!=null&&Er.modifiers&&(Nn=Nn.concat(Kr.popperOptions.modifiers)),{...lr.popperOptions,...Kr==null?void 0:Kr.popperOptions,modifiers:Nn}},[ir,lr.popperOptions,Kr==null?void 0:Kr.popperOptions]),qr=useUtilityClasses$1F(Hr),Ur=typeof Ke.transition=="function"?Ke.transition(Hr):Ke.transition,Bn={slots:{popper:Ie.Popper,transition:Ie.Transition??De,tooltip:Ie.Tooltip,arrow:Ie.Arrow,...Me},slotProps:{arrow:Ke.arrow??Be.arrow,popper:{...lr,...Kr??Be.popper},tooltip:Ke.tooltip??Be.tooltip,transition:{...He,...Ur??Be.transition}}},[In,Rr]=useSlot("popper",{elementType:TooltipPopper,externalForwardedProps:Bn,ownerState:Hr,className:clsx(qr.popper,lr==null?void 0:lr.className)}),[Mn,En]=useSlot("transition",{elementType:Grow,externalForwardedProps:Bn,ownerState:Hr}),[Yr,Sn]=useSlot("tooltip",{elementType:TooltipTooltip,className:qr.tooltip,externalForwardedProps:Bn,ownerState:Hr}),[xn,On]=useSlot("arrow",{elementType:TooltipArrow,className:qr.arrow,externalForwardedProps:Bn,ownerState:Hr,ref:ur});return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[reactExports.cloneElement(Ye,gr),jsxRuntimeExports.jsx(In,{as:ar??Popper,placement:dr,anchorEl:Qe?{getBoundingClientRect:()=>({top:cursorPosition.y,left:cursorPosition.x,right:cursorPosition.x,bottom:cursorPosition.y,width:0,height:0})}:Fe,popperRef:rn,open:Fe?Ir:!1,id:zr,transition:!0,...Br,...Rr,popperOptions:Dr,children:({TransitionProps:Nn})=>jsxRuntimeExports.jsx(Mn,{timeout:St.transitions.duration.shorter,...Nn,...En,children:jsxRuntimeExports.jsxs(Yr,{...Sn,children:[je,Se?jsxRuntimeExports.jsx(xn,{...On}):null]})})})]})}),createStoreImpl=t=>{let Ae;const xe=new Set,Ee=(Te,Pe)=>{const ke=typeof Te=="function"?Te(Ae):Te;if(!Object.is(ke,Ae)){const $e=Ae;Ae=Pe??(typeof ke!="object"||ke===null)?ke:Object.assign({},Ae,ke),xe.forEach(Oe=>Oe(Ae,$e))}},Se=()=>Ae,Ie={setState:Ee,getState:Se,getInitialState:()=>Be,subscribe:Te=>(xe.add(Te),()=>xe.delete(Te))},Be=Ae=t(Ee,Se,Ie);return Ie},createStore$1=t=>t?createStoreImpl(t):createStoreImpl,identity$1=t=>t;function useStore$2(t,Ae=identity$1){const xe=React.useSyncExternalStore(t.subscribe,()=>Ae(t.getState()),()=>Ae(t.getInitialState()));return React.useDebugValue(xe),xe}const createImpl=t=>{const Ae=createStore$1(t),xe=Ee=>useStore$2(Ae,Ee);return Object.assign(xe,Ae),xe},create$1=t=>t?createImpl(t):createImpl,useUIStore=create$1(t=>({isNavbarVisible:!0,setNavbarVisible:Ae=>t({isNavbarVisible:Ae})}));function createJSONStorage(t,Ae){let xe;try{xe=t()}catch{return}return{getItem:Se=>{var Ce;const _e=Be=>Be===null?null:JSON.parse(Be,void 0),Ie=(Ce=xe.getItem(Se))!=null?Ce:null;return Ie instanceof Promise?Ie.then(_e):_e(Ie)},setItem:(Se,Ce)=>xe.setItem(Se,JSON.stringify(Ce,void 0)),removeItem:Se=>xe.removeItem(Se)}}const toThenable=t=>Ae=>{try{const xe=t(Ae);return xe instanceof Promise?xe:{then(Ee){return toThenable(Ee)(xe)},catch(Ee){return this}}}catch(xe){return{then(Ee){return this},catch(Ee){return toThenable(Ee)(xe)}}}},persistImpl=(t,Ae)=>(xe,Ee,Se)=>{let Ce={storage:createJSONStorage(()=>localStorage),partialize:qe=>qe,version:0,merge:(qe,ze)=>({...ze,...qe}),...Ae},_e=!1;const Ie=new Set,Be=new Set;let Te=Ce.storage;if(!Te)return t((...qe)=>{console.warn(`[zustand persist middleware] Unable to update item '${Ce.name}', the given storage is currently unavailable.`),xe(...qe)},Ee,Se);const Pe=()=>{const qe=Ce.partialize({...Ee()});return Te.setItem(Ce.name,{state:qe,version:Ce.version})},ke=Se.setState;Se.setState=(qe,ze)=>{ke(qe,ze),Pe()};const $e=t((...qe)=>{xe(...qe),Pe()},Ee,Se);Se.getInitialState=()=>$e;let Oe;const Ue=()=>{var qe,ze;if(!Te)return;_e=!1,Ie.forEach(Ge=>{var Xe;return Ge((Xe=Ee())!=null?Xe:$e)});const Qe=((ze=Ce.onRehydrateStorage)==null?void 0:ze.call(Ce,(qe=Ee())!=null?qe:$e))||void 0;return toThenable(Te.getItem.bind(Te))(Ce.name).then(Ge=>{if(Ge)if(typeof Ge.version=="number"&&Ge.version!==Ce.version){if(Ce.migrate){const Xe=Ce.migrate(Ge.state,Ge.version);return Xe instanceof Promise?Xe.then(er=>[!0,er]):[!0,Xe]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,Ge.state];return[!1,void 0]}).then(Ge=>{var Xe;const[er,tr]=Ge;if(Oe=Ce.merge(tr,(Xe=Ee())!=null?Xe:$e),xe(Oe,!0),er)return Pe()}).then(()=>{Qe==null||Qe(Oe,void 0),Oe=Ee(),_e=!0,Be.forEach(Ge=>Ge(Oe))}).catch(Ge=>{Qe==null||Qe(void 0,Ge)})};return Se.persist={setOptions:qe=>{Ce={...Ce,...qe},qe.storage&&(Te=qe.storage)},clearStorage:()=>{Te==null||Te.removeItem(Ce.name)},getOptions:()=>Ce,rehydrate:()=>Ue(),hasHydrated:()=>_e,onHydrate:qe=>(Ie.add(qe),()=>{Ie.delete(qe)}),onFinishHydration:qe=>(Be.add(qe),()=>{Be.delete(qe)})},Ce.skipHydration||Ue(),Oe||$e},persist=persistImpl,useApiConfig=create$1()(persist(t=>({apiBaseUrl:"",setApiBaseUrl:Ae=>t({apiBaseUrl:Ae}),persistApiBaseUrl:!1,enablePersistApiBaseUrl:()=>t({persistApiBaseUrl:!0}),fetchingPromise:null,setFetchingPromise:Ae=>t({fetchingPromise:Ae})}),{name:"api-config-storage",partialize:t=>t.persistApiBaseUrl?{apiBaseUrl:t.apiBaseUrl}:{}}));async function callApi(t,Ae={}){const{apiBaseUrl:xe}=useApiConfig.getState();return fetch(`${xe}/api${t}`,Ae)}async function fetchUserEmail(){try{const t=await callApi("/user/email",{method:"GET"});if(!t.ok)throw new Error("Failed to fetch user email");return(await t.json()).email}catch(t){return console.error("Error fetching user email:",t),null}}async function updateEvalAuthor(t,Ae){const xe=await callApi(`/eval/${t}/author`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({author:Ae})});if(!xe.ok)throw new Error("Failed to update eval author");return xe.json()}function c$1(t,Ae,xe){var Ee=this,Se=reactExports.useRef(null),Ce=reactExports.useRef(0),_e=reactExports.useRef(null),Ie=reactExports.useRef([]),Be=reactExports.useRef(),Te=reactExports.useRef(),Pe=reactExports.useRef(t),ke=reactExports.useRef(!0);Pe.current=t;var $e=typeof window<"u",Oe=!Ae&&Ae!==0&&$e;if(typeof t!="function")throw new TypeError("Expected a function");Ae=+Ae||0;var Ue=!!(xe=xe||{}).leading,qe=!("trailing"in xe)||!!xe.trailing,ze="maxWait"in xe,Qe="debounceOnServer"in xe&&!!xe.debounceOnServer,Ge=ze?Math.max(+xe.maxWait||0,Ae):null;reactExports.useEffect(function(){return ke.current=!0,function(){ke.current=!1}},[]);var Xe=reactExports.useMemo(function(){var er=function(lr){var Ke=Ie.current,Me=Be.current;return Ie.current=Be.current=null,Ce.current=lr,Te.current=Pe.current.apply(Me,Ke)},tr=function(lr,Ke){Oe&&cancelAnimationFrame(_e.current),_e.current=Oe?requestAnimationFrame(lr):setTimeout(lr,Ke)},nr=function(lr){if(!ke.current)return!1;var Ke=lr-Se.current;return!Se.current||Ke>=Ae||Ke<0||ze&&lr-Ce.current>=Ge},sr=function(lr){return _e.current=null,qe&&Ie.current?er(lr):(Ie.current=Be.current=null,Te.current)},dr=function lr(){var Ke=Date.now();if(nr(Ke))return sr(Ke);if(ke.current){var Me=Ae-(Ke-Se.current),je=ze?Math.min(Me,Ge-(Ke-Ce.current)):Me;tr(lr,je)}},ar=function(){if($e||Qe){var lr=Date.now(),Ke=nr(lr);if(Ie.current=[].slice.call(arguments),Be.current=Ee,Se.current=lr,Ke){if(!_e.current&&ke.current)return Ce.current=Se.current,tr(dr,Ae),Ue?er(Se.current):Te.current;if(ze)return tr(dr,Ae),er(Se.current)}return _e.current||tr(dr,Ae),Te.current}};return ar.cancel=function(){_e.current&&(Oe?cancelAnimationFrame(_e.current):clearTimeout(_e.current)),Ce.current=0,Ie.current=Se.current=Be.current=_e.current=null},ar.isPending=function(){return!!_e.current},ar.flush=function(){return _e.current?sr(Date.now()):Te.current},ar},[Ue,ze,Ae,Ge,qe,Oe,$e,Qe]);return Xe}function i$7(t,Ae){return t===Ae}function a$2(t,Ae,xe){var Ee=i$7,Se=reactExports.useRef(t),Ce=reactExports.useState({})[1],_e=c$1(reactExports.useCallback(function(Be){Se.current=Be,Ce({})},[Ce]),Ae,xe),Ie=reactExports.useRef(t);return Ee(Ie.current,t)||(_e(t),Ie.current=t),[Se.current,_e]}function useApiHealth(){const[t,Ae]=reactExports.useState("unknown"),[xe,Ee]=reactExports.useState(null),[Se,Ce]=reactExports.useState(!1),_e=reactExports.useCallback(async()=>{try{const Pe=await(await callApi("/remote-health")).json();Pe.status==="DISABLED"?Ae("disabled"):Ae(Pe.status==="OK"?"connected":"blocked"),Ee(Pe.message)}catch{Ae("blocked"),Ee("Network error: Unable to check API health")}finally{Ce(!1)}},[]),[Ie]=a$2(_e,300),Be=reactExports.useCallback(async()=>{Ce(!0),Ae("loading"),await Ie()},[Ie]);return{status:t,message:xe,checkHealth:Be,isChecking:Se}}const CircleIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2"}),"Circle"),RefreshIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh");function getAlertUtilityClass(t){return generateUtilityClass("MuiAlert",t)}const alertClasses=generateUtilityClasses("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),SuccessOutlinedIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),ReportProblemOutlinedIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),ErrorOutlineIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),InfoOutlinedIcon$1=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),ClearIcon$1=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),useUtilityClasses$1E=t=>{const{variant:Ae,color:xe,severity:Ee,classes:Se}=t,Ce={root:["root",`color${capitalize$1(xe||Ee)}`,`${Ae}${capitalize$1(xe||Ee)}`,`${Ae}`],icon:["icon"],message:["message"],action:["action"]};return composeClasses(Ce,getAlertUtilityClass,Se)},AlertRoot=styled(Paper,{name:"MuiAlert",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,Ae[xe.variant],Ae[`${xe.variant}${capitalize$1(xe.color||xe.severity)}`]]}})(memoTheme(({theme:t})=>{const Ae=t.palette.mode==="light"?darken:lighten,xe=t.palette.mode==="light"?lighten:darken;return{...t.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter(createSimplePaletteValueFilter(["light"])).map(([Ee])=>({props:{colorSeverity:Ee,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert[`${Ee}Color`]:Ae(t.palette[Ee].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${Ee}StandardBg`]:xe(t.palette[Ee].light,.9),[`& .${alertClasses.icon}`]:t.vars?{color:t.vars.palette.Alert[`${Ee}IconColor`]}:{color:t.palette[Ee].main}}})),...Object.entries(t.palette).filter(createSimplePaletteValueFilter(["light"])).map(([Ee])=>({props:{colorSeverity:Ee,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert[`${Ee}Color`]:Ae(t.palette[Ee].light,.6),border:`1px solid ${(t.vars||t).palette[Ee].light}`,[`& .${alertClasses.icon}`]:t.vars?{color:t.vars.palette.Alert[`${Ee}IconColor`]}:{color:t.palette[Ee].main}}})),...Object.entries(t.palette).filter(createSimplePaletteValueFilter(["dark"])).map(([Ee])=>({props:{colorSeverity:Ee,variant:"filled"},style:{fontWeight:t.typography.fontWeightMedium,...t.vars?{color:t.vars.palette.Alert[`${Ee}FilledColor`],backgroundColor:t.vars.palette.Alert[`${Ee}FilledBg`]}:{backgroundColor:t.palette.mode==="dark"?t.palette[Ee].dark:t.palette[Ee].main,color:t.palette.getContrastText(t.palette[Ee].main)}}}))]}})),AlertIcon=styled("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(t,Ae)=>Ae.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),AlertMessage=styled("div",{name:"MuiAlert",slot:"Message",overridesResolver:(t,Ae)=>Ae.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),AlertAction=styled("div",{name:"MuiAlert",slot:"Action",overridesResolver:(t,Ae)=>Ae.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),defaultIconMapping={success:jsxRuntimeExports.jsx(SuccessOutlinedIcon,{fontSize:"inherit"}),warning:jsxRuntimeExports.jsx(ReportProblemOutlinedIcon,{fontSize:"inherit"}),error:jsxRuntimeExports.jsx(ErrorOutlineIcon,{fontSize:"inherit"}),info:jsxRuntimeExports.jsx(InfoOutlinedIcon$1,{fontSize:"inherit"})},Alert=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiAlert"}),{action:Se,children:Ce,className:_e,closeText:Ie="Close",color:Be,components:Te={},componentsProps:Pe={},icon:ke,iconMapping:$e=defaultIconMapping,onClose:Oe,role:Ue="alert",severity:qe="success",slotProps:ze={},slots:Qe={},variant:Ge="standard",...Xe}=Ee,er={...Ee,color:Be,severity:qe,variant:Ge,colorSeverity:Be||qe},tr=useUtilityClasses$1E(er),nr={slots:{closeButton:Te.CloseButton,closeIcon:Te.CloseIcon,...Qe},slotProps:{...Pe,...ze}},[sr,dr]=useSlot("root",{ref:xe,shouldForwardComponentProp:!0,className:clsx(tr.root,_e),elementType:AlertRoot,externalForwardedProps:{...nr,...Xe},ownerState:er,additionalProps:{role:Ue,elevation:0}}),[ar,lr]=useSlot("icon",{className:tr.icon,elementType:AlertIcon,externalForwardedProps:nr,ownerState:er}),[Ke,Me]=useSlot("message",{className:tr.message,elementType:AlertMessage,externalForwardedProps:nr,ownerState:er}),[je,De]=useSlot("action",{className:tr.action,elementType:AlertAction,externalForwardedProps:nr,ownerState:er}),[He,Ve]=useSlot("closeButton",{elementType:IconButton,externalForwardedProps:nr,ownerState:er}),[Ye,St]=useSlot("closeIcon",{elementType:ClearIcon$1,externalForwardedProps:nr,ownerState:er});return jsxRuntimeExports.jsxs(sr,{...dr,children:[ke!==!1?jsxRuntimeExports.jsx(ar,{...lr,children:ke||$e[qe]||defaultIconMapping[qe]}):null,jsxRuntimeExports.jsx(Ke,{...Me,children:Ce}),Se!=null?jsxRuntimeExports.jsx(je,{...De,children:Se}):null,Se==null&&Oe?jsxRuntimeExports.jsx(je,{...De,children:jsxRuntimeExports.jsx(He,{size:"small","aria-label":Ie,title:Ie,color:"inherit",onClick:Oe,...Ve,children:jsxRuntimeExports.jsx(Ye,{fontSize:"small",...St})})}):null]})});function getDialogUtilityClass(t){return generateUtilityClass("MuiDialog",t)}const dialogClasses=generateUtilityClasses("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),DialogContext=reactExports.createContext({}),DialogBackdrop=styled(Backdrop,{name:"MuiDialog",slot:"Backdrop",overrides:(t,Ae)=>Ae.backdrop})({zIndex:-1}),useUtilityClasses$1D=t=>{const{classes:Ae,scroll:xe,maxWidth:Ee,fullWidth:Se,fullScreen:Ce}=t,_e={root:["root"],container:["container",`scroll${capitalize$1(xe)}`],paper:["paper",`paperScroll${capitalize$1(xe)}`,`paperWidth${capitalize$1(String(Ee))}`,Se&&"paperFullWidth",Ce&&"paperFullScreen"]};return composeClasses(_e,getDialogUtilityClass,Ae)},DialogRoot=styled(Modal,{name:"MuiDialog",slot:"Root",overridesResolver:(t,Ae)=>Ae.root})({"@media print":{position:"absolute !important"}}),DialogContainer=styled("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.container,Ae[`scroll${capitalize$1(xe.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"}}}]}),DialogPaper=styled(Paper,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.paper,Ae[`scrollPaper${capitalize$1(xe.scroll)}`],Ae[`paperWidth${capitalize$1(String(xe.maxWidth))}`],xe.fullWidth&&Ae.paperFullWidth,xe.fullScreen&&Ae.paperFullScreen]}})(memoTheme(({theme:t})=>({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:Ae})=>!Ae.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:t.breakpoints.unit==="px"?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${dialogClasses.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(t.breakpoints.values).filter(Ae=>Ae!=="xs").map(Ae=>({props:{maxWidth:Ae},style:{maxWidth:`${t.breakpoints.values[Ae]}${t.breakpoints.unit}`,[`&.${dialogClasses.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[Ae]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:Ae})=>Ae.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:Ae})=>Ae.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${dialogClasses.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Dialog=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiDialog"}),Se=useTheme(),Ce={enter:Se.transitions.duration.enteringScreen,exit:Se.transitions.duration.leavingScreen},{"aria-describedby":_e,"aria-labelledby":Ie,"aria-modal":Be=!0,BackdropComponent:Te,BackdropProps:Pe,children:ke,className:$e,disableEscapeKeyDown:Oe=!1,fullScreen:Ue=!1,fullWidth:qe=!1,maxWidth:ze="sm",onBackdropClick:Qe,onClick:Ge,onClose:Xe,open:er,PaperComponent:tr=Paper,PaperProps:nr={},scroll:sr="paper",slots:dr={},slotProps:ar={},TransitionComponent:lr=Fade,transitionDuration:Ke=Ce,TransitionProps:Me,...je}=Ee,De={...Ee,disableEscapeKeyDown:Oe,fullScreen:Ue,fullWidth:qe,maxWidth:ze,scroll:sr},He=useUtilityClasses$1D(De),Ve=reactExports.useRef(),Ye=dn=>{Ve.current=dn.target===dn.currentTarget},St=dn=>{Ge&&Ge(dn),Ve.current&&(Ve.current=null,Qe&&Qe(dn),Xe&&Xe(dn,"backdropClick"))},We=useId(Ie),Fe=reactExports.useMemo(()=>({titleId:We}),[We]),Ze={transition:lr,...dr},ir={transition:Me,paper:nr,backdrop:Pe,...ar},ur={slots:Ze,slotProps:ir},[fr,Ar]=useSlot("root",{elementType:DialogRoot,shouldForwardComponentProp:!0,externalForwardedProps:ur,ownerState:De,className:clsx(He.root,$e),ref:xe}),[vr,yr]=useSlot("backdrop",{elementType:DialogBackdrop,shouldForwardComponentProp:!0,externalForwardedProps:ur,ownerState:De}),[br,_r]=useSlot("paper",{elementType:DialogPaper,shouldForwardComponentProp:!0,externalForwardedProps:ur,ownerState:De,className:clsx(He.paper,nr.className)}),[$r,Fr]=useSlot("container",{elementType:DialogContainer,externalForwardedProps:ur,ownerState:De,className:clsx(He.container)}),[Ir,zr]=useSlot("transition",{elementType:Fade,externalForwardedProps:ur,ownerState:De,additionalProps:{appear:!0,in:er,timeout:Ke,role:"presentation"}});return jsxRuntimeExports.jsx(fr,{closeAfterTransition:!0,slots:{backdrop:vr},slotProps:{backdrop:{transitionDuration:Ke,as:Te,...yr}},disableEscapeKeyDown:Oe,onClose:Xe,open:er,onClick:St,...Ar,...je,children:jsxRuntimeExports.jsx(Ir,{...zr,children:jsxRuntimeExports.jsx($r,{onMouseDown:Ye,...Fr,children:jsxRuntimeExports.jsx(br,{as:tr,elevation:24,role:"dialog","aria-describedby":_e,"aria-labelledby":We,"aria-modal":Be,..._r,children:jsxRuntimeExports.jsx(DialogContext.Provider,{value:Fe,children:ke})})})})})});function getDialogActionsUtilityClass(t){return generateUtilityClass("MuiDialogActions",t)}generateUtilityClasses("MuiDialogActions",["root","spacing"]);const useUtilityClasses$1C=t=>{const{classes:Ae,disableSpacing:xe}=t;return composeClasses({root:["root",!xe&&"spacing"]},getDialogActionsUtilityClass,Ae)},DialogActionsRoot=styled("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,!xe.disableSpacing&&Ae.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:t})=>!t.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),DialogActions=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiDialogActions"}),{className:Se,disableSpacing:Ce=!1,..._e}=Ee,Ie={...Ee,disableSpacing:Ce},Be=useUtilityClasses$1C(Ie);return jsxRuntimeExports.jsx(DialogActionsRoot,{className:clsx(Be.root,Se),ownerState:Ie,ref:xe,..._e})});function getDialogContentUtilityClass(t){return generateUtilityClass("MuiDialogContent",t)}generateUtilityClasses("MuiDialogContent",["root","dividers"]);function getDialogTitleUtilityClass(t){return generateUtilityClass("MuiDialogTitle",t)}const dialogTitleClasses=generateUtilityClasses("MuiDialogTitle",["root"]),useUtilityClasses$1B=t=>{const{classes:Ae,dividers:xe}=t;return composeClasses({root:["root",xe&&"dividers"]},getDialogContentUtilityClass,Ae)},DialogContentRoot=styled("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,xe.dividers&&Ae.dividers]}})(memoTheme(({theme:t})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:Ae})=>Ae.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:Ae})=>!Ae.dividers,style:{[`.${dialogTitleClasses.root} + &`]:{paddingTop:0}}}]}))),DialogContent=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiDialogContent"}),{className:Se,dividers:Ce=!1,..._e}=Ee,Ie={...Ee,dividers:Ce},Be=useUtilityClasses$1B(Ie);return jsxRuntimeExports.jsx(DialogContentRoot,{className:clsx(Be.root,Se),ownerState:Ie,ref:xe,..._e})}),useUtilityClasses$1A=t=>{const{classes:Ae}=t;return composeClasses({root:["root"]},getDialogTitleUtilityClass,Ae)},DialogTitleRoot=styled(Typography,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(t,Ae)=>Ae.root})({padding:"16px 24px",flex:"0 0 auto"}),DialogTitle=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiDialogTitle"}),{className:Se,id:Ce,..._e}=Ee,Ie=Ee,Be=useUtilityClasses$1A(Ie),{titleId:Te=Ce}=reactExports.useContext(DialogContext);return jsxRuntimeExports.jsx(DialogTitleRoot,{component:"h2",className:clsx(Be.root,Se),ownerState:Ie,ref:xe,variant:"h6",id:Ce??Te,..._e})});function getStyleValue(t){return parseInt(t,10)||0}const styles$2={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function isObjectEmpty$1(t){for(const Ae in t)return!1;return!0}function isEmpty$1(t){return isObjectEmpty$1(t)||t.outerHeightStyle===0&&!t.overflowing}const TextareaAutosize=reactExports.forwardRef(function(Ae,xe){const{onChange:Ee,maxRows:Se,minRows:Ce=1,style:_e,value:Ie,...Be}=Ae,{current:Te}=reactExports.useRef(Ie!=null),Pe=reactExports.useRef(null),ke=useForkRef(xe,Pe),$e=reactExports.useRef(null),Oe=reactExports.useRef(null),Ue=reactExports.useCallback(()=>{const Ge=Pe.current,Xe=Oe.current;if(!Ge||!Xe)return;const tr=ownerWindow(Ge).getComputedStyle(Ge);if(tr.width==="0px")return{outerHeightStyle:0,overflowing:!1};Xe.style.width=tr.width,Xe.value=Ge.value||Ae.placeholder||"x",Xe.value.slice(-1)===`
|
|
217
|
-
`&&(Xe.value+=" ");const nr=tr.boxSizing,sr=getStyleValue(tr.paddingBottom)+getStyleValue(tr.paddingTop),dr=getStyleValue(tr.borderBottomWidth)+getStyleValue(tr.borderTopWidth),ar=Xe.scrollHeight;Xe.value="x";const lr=Xe.scrollHeight;let Ke=ar;Ce&&(Ke=Math.max(Number(Ce)*lr,Ke)),Se&&(Ke=Math.min(Number(Se)*lr,Ke)),Ke=Math.max(Ke,lr);const Me=Ke+(nr==="border-box"?sr+dr:0),je=Math.abs(Ke-ar)<=1;return{outerHeightStyle:Me,overflowing:je}},[Se,Ce,Ae.placeholder]),qe=reactExports.useCallback(()=>{const Ge=Pe.current,Xe=Ue();if(!Ge||!Xe||isEmpty$1(Xe))return;const er=Xe.outerHeightStyle;$e.current!==er&&($e.current=er,Ge.style.height=`${er}px`),Ge.style.overflow=Xe.overflowing?"hidden":""},[Ue]),ze=reactExports.useRef(-1);useEnhancedEffect(()=>{const Ge=debounce$2(()=>qe()),Xe=Pe==null?void 0:Pe.current;if(!Xe)return;const er=ownerWindow(Xe);er.addEventListener("resize",Ge);let tr;return typeof ResizeObserver<"u"&&(tr=new ResizeObserver(()=>{tr.unobserve(Xe),cancelAnimationFrame(ze.current),qe(),ze.current=requestAnimationFrame(()=>{tr.observe(Xe)})}),tr.observe(Xe)),()=>{Ge.clear(),cancelAnimationFrame(ze.current),er.removeEventListener("resize",Ge),tr&&tr.disconnect()}},[Ue,qe]),useEnhancedEffect(()=>{qe()});const Qe=Ge=>{Te||qe(),Ee&&Ee(Ge)};return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("textarea",{value:Ie,onChange:Qe,ref:ke,rows:Ce,style:_e,...Be}),jsxRuntimeExports.jsx("textarea",{"aria-hidden":!0,className:Ae.className,readOnly:!0,ref:Oe,tabIndex:-1,style:{...styles$2.shadow,..._e,paddingTop:0,paddingBottom:0}})]})});function formControlState({props:t,states:Ae,muiFormControl:xe}){return Ae.reduce((Ee,Se)=>(Ee[Se]=t[Se],xe&&typeof t[Se]>"u"&&(Ee[Se]=xe[Se]),Ee),{})}const FormControlContext=reactExports.createContext(void 0);function useFormControl(){return reactExports.useContext(FormControlContext)}function hasValue(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function isFilled(t,Ae=!1){return t&&(hasValue(t.value)&&t.value!==""||Ae&&hasValue(t.defaultValue)&&t.defaultValue!=="")}function isAdornedStart(t){return t.startAdornment}function getInputBaseUtilityClass(t){return generateUtilityClass("MuiInputBase",t)}const inputBaseClasses=generateUtilityClasses("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var _InputGlobalStyles;const rootOverridesResolver=(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,xe.formControl&&Ae.formControl,xe.startAdornment&&Ae.adornedStart,xe.endAdornment&&Ae.adornedEnd,xe.error&&Ae.error,xe.size==="small"&&Ae.sizeSmall,xe.multiline&&Ae.multiline,xe.color&&Ae[`color${capitalize$1(xe.color)}`],xe.fullWidth&&Ae.fullWidth,xe.hiddenLabel&&Ae.hiddenLabel]},inputOverridesResolver=(t,Ae)=>{const{ownerState:xe}=t;return[Ae.input,xe.size==="small"&&Ae.inputSizeSmall,xe.multiline&&Ae.inputMultiline,xe.type==="search"&&Ae.inputTypeSearch,xe.startAdornment&&Ae.inputAdornedStart,xe.endAdornment&&Ae.inputAdornedEnd,xe.hiddenLabel&&Ae.inputHiddenLabel]},useUtilityClasses$1z=t=>{const{classes:Ae,color:xe,disabled:Ee,error:Se,endAdornment:Ce,focused:_e,formControl:Ie,fullWidth:Be,hiddenLabel:Te,multiline:Pe,readOnly:ke,size:$e,startAdornment:Oe,type:Ue}=t,qe={root:["root",`color${capitalize$1(xe)}`,Ee&&"disabled",Se&&"error",Be&&"fullWidth",_e&&"focused",Ie&&"formControl",$e&&$e!=="medium"&&`size${capitalize$1($e)}`,Pe&&"multiline",Oe&&"adornedStart",Ce&&"adornedEnd",Te&&"hiddenLabel",ke&&"readOnly"],input:["input",Ee&&"disabled",Ue==="search"&&"inputTypeSearch",Pe&&"inputMultiline",$e==="small"&&"inputSizeSmall",Te&&"inputHiddenLabel",Oe&&"inputAdornedStart",Ce&&"inputAdornedEnd",ke&&"readOnly"]};return composeClasses(qe,getInputBaseUtilityClass,Ae)},InputBaseRoot=styled("div",{name:"MuiInputBase",slot:"Root",overridesResolver:rootOverridesResolver})(memoTheme(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${inputBaseClasses.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:Ae})=>Ae.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:Ae,size:xe})=>Ae.multiline&&xe==="small",style:{paddingTop:1}},{props:({ownerState:Ae})=>Ae.fullWidth,style:{width:"100%"}}]}))),InputBaseInput=styled("input",{name:"MuiInputBase",slot:"Input",overridesResolver:inputOverridesResolver})(memoTheme(({theme:t})=>{const Ae=t.palette.mode==="light",xe={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:Ae?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},Ee={opacity:"0 !important"},Se=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:Ae?.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":xe,"&::-moz-placeholder":xe,"&::-ms-input-placeholder":xe,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${inputBaseClasses.formControl} &`]:{"&::-webkit-input-placeholder":Ee,"&::-moz-placeholder":Ee,"&::-ms-input-placeholder":Ee,"&:focus::-webkit-input-placeholder":Se,"&:focus::-moz-placeholder":Se,"&:focus::-ms-input-placeholder":Se},[`&.${inputBaseClasses.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:Ce})=>!Ce.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:Ce})=>Ce.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),InputGlobalStyles=globalCss({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),InputBase=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiInputBase"}),{"aria-describedby":Se,autoComplete:Ce,autoFocus:_e,className:Ie,color:Be,components:Te={},componentsProps:Pe={},defaultValue:ke,disabled:$e,disableInjectingGlobalStyles:Oe,endAdornment:Ue,error:qe,fullWidth:ze=!1,id:Qe,inputComponent:Ge="input",inputProps:Xe={},inputRef:er,margin:tr,maxRows:nr,minRows:sr,multiline:dr=!1,name:ar,onBlur:lr,onChange:Ke,onClick:Me,onFocus:je,onKeyDown:De,onKeyUp:He,placeholder:Ve,readOnly:Ye,renderSuffix:St,rows:We,size:Fe,slotProps:Ze={},slots:ir={},startAdornment:ur,type:fr="text",value:Ar,...vr}=Ee,yr=Xe.value!=null?Xe.value:Ar,{current:br}=reactExports.useRef(yr!=null),_r=reactExports.useRef(),$r=reactExports.useCallback(gr=>{},[]),Fr=useForkRef(_r,er,Xe.ref,$r),[Ir,zr]=reactExports.useState(!1),dn=useFormControl(),tn=formControlState({props:Ee,muiFormControl:dn,states:["color","disabled","error","hiddenLabel","size","required","filled"]});tn.focused=dn?dn.focused:Ir,reactExports.useEffect(()=>{!dn&&$e&&Ir&&(zr(!1),lr&&lr())},[dn,$e,Ir,lr]);const Gr=dn&&dn.onFilled,wn=dn&&dn.onEmpty,an=reactExports.useCallback(gr=>{isFilled(gr)?Gr&&Gr():wn&&wn()},[Gr,wn]);useEnhancedEffect(()=>{br&&an({value:yr})},[yr,an,br]);const Vr=gr=>{je&&je(gr),Xe.onFocus&&Xe.onFocus(gr),dn&&dn.onFocus?dn.onFocus(gr):zr(!0)},Rn=gr=>{lr&&lr(gr),Xe.onBlur&&Xe.onBlur(gr),dn&&dn.onBlur?dn.onBlur(gr):zr(!1)},un=(gr,...Br)=>{if(!br){const Hr=gr.target||_r.current;if(Hr==null)throw new Error(formatMuiErrorMessage(1));an({value:Hr.value})}Xe.onChange&&Xe.onChange(gr,...Br),Ke&&Ke(gr,...Br)};reactExports.useEffect(()=>{an(_r.current)},[]);const sn=gr=>{_r.current&&gr.currentTarget===gr.target&&_r.current.focus(),Me&&Me(gr)};let jn=Ge,en=Xe;dr&&jn==="input"&&(We?en={type:void 0,minRows:We,maxRows:We,...en}:en={type:void 0,maxRows:nr,minRows:sr,...en},jn=TextareaAutosize);const Jr=gr=>{an(gr.animationName==="mui-auto-fill-cancel"?_r.current:{value:"x"})};reactExports.useEffect(()=>{dn&&dn.setAdornedStart(!!ur)},[dn,ur]);const nn={...Ee,color:tn.color||"primary",disabled:tn.disabled,endAdornment:Ue,error:tn.error,focused:tn.focused,formControl:dn,fullWidth:ze,hiddenLabel:tn.hiddenLabel,multiline:dr,size:tn.size,startAdornment:ur,type:fr},rn=useUtilityClasses$1z(nn),cn=ir.root||Te.Root||InputBaseRoot,pn=Ze.root||Pe.root||{},Mr=ir.input||Te.Input||InputBaseInput;return en={...en,...Ze.input??Pe.input},jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[!Oe&&typeof InputGlobalStyles=="function"&&(_InputGlobalStyles||(_InputGlobalStyles=jsxRuntimeExports.jsx(InputGlobalStyles,{}))),jsxRuntimeExports.jsxs(cn,{...pn,ref:xe,onClick:sn,...vr,...!isHostComponent(cn)&&{ownerState:{...nn,...pn.ownerState}},className:clsx(rn.root,pn.className,Ie,Ye&&"MuiInputBase-readOnly"),children:[ur,jsxRuntimeExports.jsx(FormControlContext.Provider,{value:null,children:jsxRuntimeExports.jsx(Mr,{"aria-invalid":tn.error,"aria-describedby":Se,autoComplete:Ce,autoFocus:_e,defaultValue:ke,disabled:tn.disabled,id:Qe,onAnimationStart:Jr,name:ar,placeholder:Ve,readOnly:Ye,required:tn.required,rows:We,value:yr,onKeyDown:De,onKeyUp:He,type:fr,...en,...!isHostComponent(Mr)&&{as:jn,ownerState:{...nn,...en.ownerState}},ref:Fr,className:clsx(rn.input,en.className,Ye&&"MuiInputBase-readOnly"),onBlur:Rn,onChange:un,onFocus:Vr})}),Ue,St?St({...tn,startAdornment:ur}):null]})]})});function getInputUtilityClass(t){return generateUtilityClass("MuiInput",t)}const inputClasses={...inputBaseClasses,...generateUtilityClasses("MuiInput",["root","underline","input"])},useUtilityClasses$1y=t=>{const{classes:Ae,disableUnderline:xe}=t,Se=composeClasses({root:["root",!xe&&"underline"],input:["input"]},getInputUtilityClass,Ae);return{...Ae,...Se}},InputRoot=styled(InputBaseRoot,{shouldForwardProp:t=>rootShouldForwardProp(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[...rootOverridesResolver(t,Ae),!xe.disableUnderline&&Ae.underline]}})(memoTheme(({theme:t})=>{let xe=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(xe=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:Ee})=>Ee.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:Ee})=>!Ee.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${inputClasses.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${inputClasses.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${xe}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${inputClasses.disabled}, .${inputClasses.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${xe}`}},[`&.${inputClasses.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(createSimplePaletteValueFilter()).map(([Ee])=>({props:{color:Ee,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[Ee].main}`}}}))]}})),InputInput=styled(InputBaseInput,{name:"MuiInput",slot:"Input",overridesResolver:inputOverridesResolver})({}),Input=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiInput"}),{disableUnderline:Se=!1,components:Ce={},componentsProps:_e,fullWidth:Ie=!1,inputComponent:Be="input",multiline:Te=!1,slotProps:Pe,slots:ke={},type:$e="text",...Oe}=Ee,Ue=useUtilityClasses$1y(Ee),ze={root:{ownerState:{disableUnderline:Se}}},Qe=Pe??_e?deepmerge(Pe??_e,ze):ze,Ge=ke.root??Ce.Root??InputRoot,Xe=ke.input??Ce.Input??InputInput;return jsxRuntimeExports.jsx(InputBase,{slots:{root:Ge,input:Xe},slotProps:Qe,fullWidth:Ie,inputComponent:Be,multiline:Te,ref:xe,type:$e,...Oe,classes:Ue})});Input.muiName="Input";function getFilledInputUtilityClass(t){return generateUtilityClass("MuiFilledInput",t)}const filledInputClasses={...inputBaseClasses,...generateUtilityClasses("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},useUtilityClasses$1x=t=>{const{classes:Ae,disableUnderline:xe,startAdornment:Ee,endAdornment:Se,size:Ce,hiddenLabel:_e,multiline:Ie}=t,Be={root:["root",!xe&&"underline",Ee&&"adornedStart",Se&&"adornedEnd",Ce==="small"&&`size${capitalize$1(Ce)}`,_e&&"hiddenLabel",Ie&&"multiline"],input:["input"]},Te=composeClasses(Be,getFilledInputUtilityClass,Ae);return{...Ae,...Te}},FilledInputRoot=styled(InputBaseRoot,{shouldForwardProp:t=>rootShouldForwardProp(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[...rootOverridesResolver(t,Ae),!xe.disableUnderline&&Ae.underline]}})(memoTheme(({theme:t})=>{const Ae=t.palette.mode==="light",xe=Ae?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",Ee=Ae?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",Se=Ae?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",Ce=Ae?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:Ee,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:Se,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:Ee}},[`&.${filledInputClasses.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:Ee},[`&.${filledInputClasses.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:Ce},variants:[{props:({ownerState:_e})=>!_e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${filledInputClasses.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${filledInputClasses.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:xe}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${filledInputClasses.disabled}, .${filledInputClasses.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${filledInputClasses.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(createSimplePaletteValueFilter()).map(([_e])=>{var Ie;return{props:{disableUnderline:!1,color:_e},style:{"&::after":{borderBottom:`2px solid ${(Ie=(t.vars||t).palette[_e])==null?void 0:Ie.main}`}}}}),{props:({ownerState:_e})=>_e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:_e})=>_e.endAdornment,style:{paddingRight:12}},{props:({ownerState:_e})=>_e.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:_e,size:Ie})=>_e.multiline&&Ie==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:_e})=>_e.multiline&&_e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:_e})=>_e.multiline&&_e.hiddenLabel&&_e.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),FilledInputInput=styled(InputBaseInput,{name:"MuiFilledInput",slot:"Input",overridesResolver:inputOverridesResolver})(memoTheme(({theme:t})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.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:Ae})=>Ae.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:Ae})=>Ae.startAdornment,style:{paddingLeft:0}},{props:({ownerState:Ae})=>Ae.endAdornment,style:{paddingRight:0}},{props:({ownerState:Ae})=>Ae.hiddenLabel&&Ae.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:Ae})=>Ae.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),FilledInput=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiFilledInput"}),{disableUnderline:Se=!1,components:Ce={},componentsProps:_e,fullWidth:Ie=!1,hiddenLabel:Be,inputComponent:Te="input",multiline:Pe=!1,slotProps:ke,slots:$e={},type:Oe="text",...Ue}=Ee,qe={...Ee,disableUnderline:Se,fullWidth:Ie,inputComponent:Te,multiline:Pe,type:Oe},ze=useUtilityClasses$1x(Ee),Qe={root:{ownerState:qe},input:{ownerState:qe}},Ge=ke??_e?deepmerge(Qe,ke??_e):Qe,Xe=$e.root??Ce.Root??FilledInputRoot,er=$e.input??Ce.Input??FilledInputInput;return jsxRuntimeExports.jsx(InputBase,{slots:{root:Xe,input:er},slotProps:Ge,fullWidth:Ie,inputComponent:Te,multiline:Pe,ref:xe,type:Oe,...Ue,classes:ze})});FilledInput.muiName="Input";var _span$3;const NotchedOutlineRoot$1=styled("fieldset",{shouldForwardProp:rootShouldForwardProp})({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%"}),NotchedOutlineLegend=styled("legend",{shouldForwardProp:rootShouldForwardProp})(memoTheme(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:Ae})=>!Ae.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:Ae})=>Ae.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:Ae})=>Ae.withLabel&&Ae.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function NotchedOutline(t){const{children:Ae,classes:xe,className:Ee,label:Se,notched:Ce,..._e}=t,Ie=Se!=null&&Se!=="",Be={...t,notched:Ce,withLabel:Ie};return jsxRuntimeExports.jsx(NotchedOutlineRoot$1,{"aria-hidden":!0,className:Ee,ownerState:Be,..._e,children:jsxRuntimeExports.jsx(NotchedOutlineLegend,{ownerState:Be,children:Ie?jsxRuntimeExports.jsx("span",{children:Se}):_span$3||(_span$3=jsxRuntimeExports.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}function getOutlinedInputUtilityClass(t){return generateUtilityClass("MuiOutlinedInput",t)}const outlinedInputClasses={...inputBaseClasses,...generateUtilityClasses("MuiOutlinedInput",["root","notchedOutline","input"])},useUtilityClasses$1w=t=>{const{classes:Ae}=t,Ee=composeClasses({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},getOutlinedInputUtilityClass,Ae);return{...Ae,...Ee}},OutlinedInputRoot=styled(InputBaseRoot,{shouldForwardProp:t=>rootShouldForwardProp(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:rootOverridesResolver})(memoTheme(({theme:t})=>{const Ae=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${outlinedInputClasses.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${outlinedInputClasses.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:Ae}},[`&.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(createSimplePaletteValueFilter()).map(([xe])=>({props:{color:xe},style:{[`&.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]:{borderColor:(t.vars||t).palette[xe].main}}})),{props:{},style:{[`&.${outlinedInputClasses.error} .${outlinedInputClasses.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${outlinedInputClasses.disabled} .${outlinedInputClasses.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:xe})=>xe.startAdornment,style:{paddingLeft:14}},{props:({ownerState:xe})=>xe.endAdornment,style:{paddingRight:14}},{props:({ownerState:xe})=>xe.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:xe,size:Ee})=>xe.multiline&&Ee==="small",style:{padding:"8.5px 14px"}}]}})),NotchedOutlineRoot=styled(NotchedOutline,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,Ae)=>Ae.notchedOutline})(memoTheme(({theme:t})=>{const Ae=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:Ae}})),OutlinedInputInput=styled(InputBaseInput,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:inputOverridesResolver})(memoTheme(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.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:Ae})=>Ae.multiline,style:{padding:0}},{props:({ownerState:Ae})=>Ae.startAdornment,style:{paddingLeft:0}},{props:({ownerState:Ae})=>Ae.endAdornment,style:{paddingRight:0}}]}))),OutlinedInput=reactExports.forwardRef(function(Ae,xe){var Ee;const Se=useDefaultProps({props:Ae,name:"MuiOutlinedInput"}),{components:Ce={},fullWidth:_e=!1,inputComponent:Ie="input",label:Be,multiline:Te=!1,notched:Pe,slots:ke={},type:$e="text",...Oe}=Se,Ue=useUtilityClasses$1w(Se),qe=useFormControl(),ze=formControlState({props:Se,muiFormControl:qe,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),Qe={...Se,color:ze.color||"primary",disabled:ze.disabled,error:ze.error,focused:ze.focused,formControl:qe,fullWidth:_e,hiddenLabel:ze.hiddenLabel,multiline:Te,size:ze.size,type:$e},Ge=ke.root??Ce.Root??OutlinedInputRoot,Xe=ke.input??Ce.Input??OutlinedInputInput;return jsxRuntimeExports.jsx(InputBase,{slots:{root:Ge,input:Xe},renderSuffix:er=>jsxRuntimeExports.jsx(NotchedOutlineRoot,{ownerState:Qe,className:Ue.notchedOutline,label:Be!=null&&Be!==""&&ze.required?Ee||(Ee=jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[Be," ","*"]})):Be,notched:typeof Pe<"u"?Pe:!!(er.startAdornment||er.filled||er.focused)}),fullWidth:_e,inputComponent:Ie,multiline:Te,ref:xe,type:$e,...Oe,classes:{...Ue,notchedOutline:null}})});OutlinedInput.muiName="Input";function getFormLabelUtilityClasses(t){return generateUtilityClass("MuiFormLabel",t)}const formLabelClasses=generateUtilityClasses("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),useUtilityClasses$1v=t=>{const{classes:Ae,color:xe,focused:Ee,disabled:Se,error:Ce,filled:_e,required:Ie}=t,Be={root:["root",`color${capitalize$1(xe)}`,Se&&"disabled",Ce&&"error",_e&&"filled",Ee&&"focused",Ie&&"required"],asterisk:["asterisk",Ce&&"error"]};return composeClasses(Be,getFormLabelUtilityClasses,Ae)},FormLabelRoot=styled("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,xe.color==="secondary"&&Ae.colorSecondary,xe.filled&&Ae.filled]}})(memoTheme(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(createSimplePaletteValueFilter()).map(([Ae])=>({props:{color:Ae},style:{[`&.${formLabelClasses.focused}`]:{color:(t.vars||t).palette[Ae].main}}})),{props:{},style:{[`&.${formLabelClasses.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${formLabelClasses.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),AsteriskComponent$1=styled("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,Ae)=>Ae.asterisk})(memoTheme(({theme:t})=>({[`&.${formLabelClasses.error}`]:{color:(t.vars||t).palette.error.main}}))),FormLabel=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiFormLabel"}),{children:Se,className:Ce,color:_e,component:Ie="label",disabled:Be,error:Te,filled:Pe,focused:ke,required:$e,...Oe}=Ee,Ue=useFormControl(),qe=formControlState({props:Ee,muiFormControl:Ue,states:["color","required","focused","disabled","error","filled"]}),ze={...Ee,color:qe.color||"primary",component:Ie,disabled:qe.disabled,error:qe.error,filled:qe.filled,focused:qe.focused,required:qe.required},Qe=useUtilityClasses$1v(ze);return jsxRuntimeExports.jsxs(FormLabelRoot,{as:Ie,ownerState:ze,className:clsx(Qe.root,Ce),ref:xe,...Oe,children:[Se,qe.required&&jsxRuntimeExports.jsxs(AsteriskComponent$1,{ownerState:ze,"aria-hidden":!0,className:Qe.asterisk,children:[" ","*"]})]})});function getInputLabelUtilityClasses(t){return generateUtilityClass("MuiInputLabel",t)}generateUtilityClasses("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const useUtilityClasses$1u=t=>{const{classes:Ae,formControl:xe,size:Ee,shrink:Se,disableAnimation:Ce,variant:_e,required:Ie}=t,Be={root:["root",xe&&"formControl",!Ce&&"animated",Se&&"shrink",Ee&&Ee!=="normal"&&`size${capitalize$1(Ee)}`,_e],asterisk:[Ie&&"asterisk"]},Te=composeClasses(Be,getInputLabelUtilityClasses,Ae);return{...Ae,...Te}},InputLabelRoot=styled(FormLabel,{shouldForwardProp:t=>rootShouldForwardProp(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[{[`& .${formLabelClasses.asterisk}`]:Ae.asterisk},Ae.root,xe.formControl&&Ae.formControl,xe.size==="small"&&Ae.sizeSmall,xe.shrink&&Ae.shrink,!xe.disableAnimation&&Ae.animated,xe.focused&&Ae.focused,Ae[xe.variant]]}})(memoTheme(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:Ae})=>Ae.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:Ae})=>Ae.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:Ae})=>!Ae.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.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:Ae,ownerState:xe})=>Ae==="filled"&&xe.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:Ae,ownerState:xe,size:Ee})=>Ae==="filled"&&xe.shrink&&Ee==="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:Ae,ownerState:xe})=>Ae==="outlined"&&xe.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),InputLabel=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({name:"MuiInputLabel",props:Ae}),{disableAnimation:Se=!1,margin:Ce,shrink:_e,variant:Ie,className:Be,...Te}=Ee,Pe=useFormControl();let ke=_e;typeof ke>"u"&&Pe&&(ke=Pe.filled||Pe.focused||Pe.adornedStart);const $e=formControlState({props:Ee,muiFormControl:Pe,states:["size","variant","required","focused"]}),Oe={...Ee,disableAnimation:Se,formControl:Pe,shrink:ke,size:$e.size,variant:$e.variant,required:$e.required,focused:$e.focused},Ue=useUtilityClasses$1u(Oe);return jsxRuntimeExports.jsx(InputLabelRoot,{"data-shrink":ke,ref:xe,className:clsx(Ue.root,Be),...Te,ownerState:Oe,classes:Ue})});function getFormControlUtilityClasses(t){return generateUtilityClass("MuiFormControl",t)}generateUtilityClasses("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const useUtilityClasses$1t=t=>{const{classes:Ae,margin:xe,fullWidth:Ee}=t,Se={root:["root",xe!=="none"&&`margin${capitalize$1(xe)}`,Ee&&"fullWidth"]};return composeClasses(Se,getFormControlUtilityClasses,Ae)},FormControlRoot=styled("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,Ae[`margin${capitalize$1(xe.margin)}`],xe.fullWidth&&Ae.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%"}}]}),FormControl=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiFormControl"}),{children:Se,className:Ce,color:_e="primary",component:Ie="div",disabled:Be=!1,error:Te=!1,focused:Pe,fullWidth:ke=!1,hiddenLabel:$e=!1,margin:Oe="none",required:Ue=!1,size:qe="medium",variant:ze="outlined",...Qe}=Ee,Ge={...Ee,color:_e,component:Ie,disabled:Be,error:Te,fullWidth:ke,hiddenLabel:$e,margin:Oe,required:Ue,size:qe,variant:ze},Xe=useUtilityClasses$1t(Ge),[er,tr]=reactExports.useState(()=>{let He=!1;return Se&&reactExports.Children.forEach(Se,Ve=>{if(!isMuiElement(Ve,["Input","Select"]))return;const Ye=isMuiElement(Ve,["Select"])?Ve.props.input:Ve;Ye&&isAdornedStart(Ye.props)&&(He=!0)}),He}),[nr,sr]=reactExports.useState(()=>{let He=!1;return Se&&reactExports.Children.forEach(Se,Ve=>{isMuiElement(Ve,["Input","Select"])&&(isFilled(Ve.props,!0)||isFilled(Ve.props.inputProps,!0))&&(He=!0)}),He}),[dr,ar]=reactExports.useState(!1);Be&&dr&&ar(!1);const lr=Pe!==void 0&&!Be?Pe:dr;let Ke;reactExports.useRef(!1);const Me=reactExports.useCallback(()=>{sr(!0)},[]),je=reactExports.useCallback(()=>{sr(!1)},[]),De=reactExports.useMemo(()=>({adornedStart:er,setAdornedStart:tr,color:_e,disabled:Be,error:Te,filled:nr,focused:lr,fullWidth:ke,hiddenLabel:$e,size:qe,onBlur:()=>{ar(!1)},onFocus:()=>{ar(!0)},onEmpty:je,onFilled:Me,registerEffect:Ke,required:Ue,variant:ze}),[er,_e,Be,Te,nr,lr,ke,$e,Ke,je,Me,Ue,qe,ze]);return jsxRuntimeExports.jsx(FormControlContext.Provider,{value:De,children:jsxRuntimeExports.jsx(FormControlRoot,{as:Ie,ownerState:Ge,className:clsx(Xe.root,Ce),ref:xe,...Qe,children:Se})})});function getFormHelperTextUtilityClasses(t){return generateUtilityClass("MuiFormHelperText",t)}const formHelperTextClasses=generateUtilityClasses("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var _span$2;const useUtilityClasses$1s=t=>{const{classes:Ae,contained:xe,size:Ee,disabled:Se,error:Ce,filled:_e,focused:Ie,required:Be}=t,Te={root:["root",Se&&"disabled",Ce&&"error",Ee&&`size${capitalize$1(Ee)}`,xe&&"contained",Ie&&"focused",_e&&"filled",Be&&"required"]};return composeClasses(Te,getFormHelperTextUtilityClasses,Ae)},FormHelperTextRoot=styled("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,xe.size&&Ae[`size${capitalize$1(xe.size)}`],xe.contained&&Ae.contained,xe.filled&&Ae.filled]}})(memoTheme(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${formHelperTextClasses.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${formHelperTextClasses.error}`]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:Ae})=>Ae.contained,style:{marginLeft:14,marginRight:14}}]}))),FormHelperText=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiFormHelperText"}),{children:Se,className:Ce,component:_e="p",disabled:Ie,error:Be,filled:Te,focused:Pe,margin:ke,required:$e,variant:Oe,...Ue}=Ee,qe=useFormControl(),ze=formControlState({props:Ee,muiFormControl:qe,states:["variant","size","disabled","error","filled","focused","required"]}),Qe={...Ee,component:_e,contained:ze.variant==="filled"||ze.variant==="outlined",variant:ze.variant,size:ze.size,disabled:ze.disabled,error:ze.error,filled:ze.filled,focused:ze.focused,required:ze.required};delete Qe.ownerState;const Ge=useUtilityClasses$1s(Qe);return jsxRuntimeExports.jsx(FormHelperTextRoot,{as:_e,className:clsx(Ge.root,Ce),ref:xe,...Ue,ownerState:Qe,children:Se===" "?_span$2||(_span$2=jsxRuntimeExports.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Se})});function getNativeSelectUtilityClasses(t){return generateUtilityClass("MuiNativeSelect",t)}const nativeSelectClasses=generateUtilityClasses("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),useUtilityClasses$1r=t=>{const{classes:Ae,variant:xe,disabled:Ee,multiple:Se,open:Ce,error:_e}=t,Ie={select:["select",xe,Ee&&"disabled",Se&&"multiple",_e&&"error"],icon:["icon",`icon${capitalize$1(xe)}`,Ce&&"iconOpen",Ee&&"disabled"]};return composeClasses(Ie,getNativeSelectUtilityClasses,Ae)},StyledSelectSelect=styled("select")(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${nativeSelectClasses.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:Ae})=>Ae.variant!=="filled"&&Ae.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),NativeSelectSelect=styled(StyledSelectSelect,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:rootShouldForwardProp,overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.select,Ae[xe.variant],xe.error&&Ae.error,{[`&.${nativeSelectClasses.multiple}`]:Ae.multiple}]}})({}),StyledSelectIcon=styled("svg")(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${nativeSelectClasses.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:Ae})=>Ae.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),NativeSelectIcon=styled(StyledSelectIcon,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.icon,xe.variant&&Ae[`icon${capitalize$1(xe.variant)}`],xe.open&&Ae.iconOpen]}})({}),NativeSelectInput=reactExports.forwardRef(function(Ae,xe){const{className:Ee,disabled:Se,error:Ce,IconComponent:_e,inputRef:Ie,variant:Be="standard",...Te}=Ae,Pe={...Ae,disabled:Se,variant:Be,error:Ce},ke=useUtilityClasses$1r(Pe);return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(NativeSelectSelect,{ownerState:Pe,className:clsx(ke.select,Ee),disabled:Se,ref:Ie||xe,...Te}),Ae.multiple?null:jsxRuntimeExports.jsx(NativeSelectIcon,{as:_e,ownerState:Pe,className:ke.icon})]})});function getSelectUtilityClasses(t){return generateUtilityClass("MuiSelect",t)}const selectClasses=generateUtilityClasses("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var _span$1;const SelectSelect=styled(StyledSelectSelect,{name:"MuiSelect",slot:"Select",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[{[`&.${selectClasses.select}`]:Ae.select},{[`&.${selectClasses.select}`]:Ae[xe.variant]},{[`&.${selectClasses.error}`]:Ae.error},{[`&.${selectClasses.multiple}`]:Ae.multiple}]}})({[`&.${selectClasses.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),SelectIcon=styled(StyledSelectIcon,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.icon,xe.variant&&Ae[`icon${capitalize$1(xe.variant)}`],xe.open&&Ae.iconOpen]}})({}),SelectNativeInput=styled("input",{shouldForwardProp:t=>slotShouldForwardProp(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,Ae)=>Ae.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function areEqualValues$1(t,Ae){return typeof Ae=="object"&&Ae!==null?t===Ae:String(t)===String(Ae)}function isEmpty(t){return t==null||typeof t=="string"&&!t.trim()}const useUtilityClasses$1q=t=>{const{classes:Ae,variant:xe,disabled:Ee,multiple:Se,open:Ce,error:_e}=t,Ie={select:["select",xe,Ee&&"disabled",Se&&"multiple",_e&&"error"],icon:["icon",`icon${capitalize$1(xe)}`,Ce&&"iconOpen",Ee&&"disabled"],nativeInput:["nativeInput"]};return composeClasses(Ie,getSelectUtilityClasses,Ae)},SelectInput=reactExports.forwardRef(function(Ae,xe){var Kr;const{"aria-describedby":Ee,"aria-label":Se,autoFocus:Ce,autoWidth:_e,children:Ie,className:Be,defaultOpen:Te,defaultValue:Pe,disabled:ke,displayEmpty:$e,error:Oe=!1,IconComponent:Ue,inputRef:qe,labelId:ze,MenuProps:Qe={},multiple:Ge,name:Xe,onBlur:er,onChange:tr,onClose:nr,onFocus:sr,onOpen:dr,open:ar,readOnly:lr,renderValue:Ke,required:Me,SelectDisplayProps:je={},tabIndex:De,type:He,value:Ve,variant:Ye="standard",...St}=Ae,[We,Fe]=useControlled({controlled:Ve,default:Pe,name:"Select"}),[Ze,ir]=useControlled({controlled:ar,default:Te,name:"Select"}),ur=reactExports.useRef(null),fr=reactExports.useRef(null),[Ar,vr]=reactExports.useState(null),{current:yr}=reactExports.useRef(ar!=null),[br,_r]=reactExports.useState(),$r=useForkRef(xe,qe),Fr=reactExports.useCallback(Dr=>{fr.current=Dr,Dr&&vr(Dr)},[]),Ir=Ar==null?void 0:Ar.parentNode;reactExports.useImperativeHandle($r,()=>({focus:()=>{fr.current.focus()},node:ur.current,value:We}),[We]),reactExports.useEffect(()=>{Te&&Ze&&Ar&&!yr&&(_r(_e?null:Ir.clientWidth),fr.current.focus())},[Ar,_e]),reactExports.useEffect(()=>{Ce&&fr.current.focus()},[Ce]),reactExports.useEffect(()=>{if(!ze)return;const Dr=ownerDocument(fr.current).getElementById(ze);if(Dr){const qr=()=>{getSelection().isCollapsed&&fr.current.focus()};return Dr.addEventListener("click",qr),()=>{Dr.removeEventListener("click",qr)}}},[ze]);const zr=(Dr,qr)=>{Dr?dr&&dr(qr):nr&&nr(qr),yr||(_r(_e?null:Ir.clientWidth),ir(Dr))},dn=Dr=>{Dr.button===0&&(Dr.preventDefault(),fr.current.focus(),zr(!0,Dr))},tn=Dr=>{zr(!1,Dr)},Gr=reactExports.Children.toArray(Ie),wn=Dr=>{const qr=Gr.find(Ur=>Ur.props.value===Dr.target.value);qr!==void 0&&(Fe(qr.props.value),tr&&tr(Dr,qr))},an=Dr=>qr=>{let Ur;if(qr.currentTarget.hasAttribute("tabindex")){if(Ge){Ur=Array.isArray(We)?We.slice():[];const Bn=We.indexOf(Dr.props.value);Bn===-1?Ur.push(Dr.props.value):Ur.splice(Bn,1)}else Ur=Dr.props.value;if(Dr.props.onClick&&Dr.props.onClick(qr),We!==Ur&&(Fe(Ur),tr)){const Bn=qr.nativeEvent||qr,In=new Bn.constructor(Bn.type,Bn);Object.defineProperty(In,"target",{writable:!0,value:{value:Ur,name:Xe}}),tr(In,Dr)}Ge||zr(!1,qr)}},Vr=Dr=>{lr||[" ","ArrowUp","ArrowDown","Enter"].includes(Dr.key)&&(Dr.preventDefault(),zr(!0,Dr))},Rn=Ar!==null&&Ze,un=Dr=>{!Rn&&er&&(Object.defineProperty(Dr,"target",{writable:!0,value:{value:We,name:Xe}}),er(Dr))};delete St["aria-invalid"];let sn,jn;const en=[];let Jr=!1;(isFilled({value:We})||$e)&&(Ke?sn=Ke(We):Jr=!0);const nn=Gr.map(Dr=>{if(!reactExports.isValidElement(Dr))return null;let qr;if(Ge){if(!Array.isArray(We))throw new Error(formatMuiErrorMessage(2));qr=We.some(Ur=>areEqualValues$1(Ur,Dr.props.value)),qr&&Jr&&en.push(Dr.props.children)}else qr=areEqualValues$1(We,Dr.props.value),qr&&Jr&&(jn=Dr.props.children);return reactExports.cloneElement(Dr,{"aria-selected":qr?"true":"false",onClick:an(Dr),onKeyUp:Ur=>{Ur.key===" "&&Ur.preventDefault(),Dr.props.onKeyUp&&Dr.props.onKeyUp(Ur)},role:"option",selected:qr,value:void 0,"data-value":Dr.props.value})});Jr&&(Ge?en.length===0?sn=null:sn=en.reduce((Dr,qr,Ur)=>(Dr.push(qr),Ur<en.length-1&&Dr.push(", "),Dr),[]):sn=jn);let rn=br;!_e&&yr&&Ar&&(rn=Ir.clientWidth);let cn;typeof De<"u"?cn=De:cn=ke?null:0;const pn=je.id||(Xe?`mui-component-select-${Xe}`:void 0),Mr={...Ae,variant:Ye,value:We,open:Rn,error:Oe},gr=useUtilityClasses$1q(Mr),Br={...Qe.PaperProps,...(Kr=Qe.slotProps)==null?void 0:Kr.paper},Hr=useId();return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(SelectSelect,{as:"div",ref:Fr,tabIndex:cn,role:"combobox","aria-controls":Rn?Hr:void 0,"aria-disabled":ke?"true":void 0,"aria-expanded":Rn?"true":"false","aria-haspopup":"listbox","aria-label":Se,"aria-labelledby":[ze,pn].filter(Boolean).join(" ")||void 0,"aria-describedby":Ee,"aria-required":Me?"true":void 0,"aria-invalid":Oe?"true":void 0,onKeyDown:Vr,onMouseDown:ke||lr?null:dn,onBlur:un,onFocus:sr,...je,ownerState:Mr,className:clsx(je.className,gr.select,Be),id:pn,children:isEmpty(sn)?_span$1||(_span$1=jsxRuntimeExports.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):sn}),jsxRuntimeExports.jsx(SelectNativeInput,{"aria-invalid":Oe,value:Array.isArray(We)?We.join(","):We,name:Xe,ref:ur,"aria-hidden":!0,onChange:wn,tabIndex:-1,disabled:ke,className:gr.nativeInput,autoFocus:Ce,required:Me,...St,ownerState:Mr}),jsxRuntimeExports.jsx(SelectIcon,{as:Ue,className:gr.icon,ownerState:Mr}),jsxRuntimeExports.jsx(Menu,{id:`menu-${Xe||""}`,anchorEl:Ir,open:Rn,onClose:tn,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...Qe,slotProps:{...Qe.slotProps,list:{"aria-labelledby":ze,role:"listbox","aria-multiselectable":Ge?"true":void 0,disableListWrap:!0,id:Hr,...Qe.MenuListProps},paper:{...Br,style:{minWidth:rn,...Br!=null?Br.style:null}}},children:nn})]})}),ArrowDropDownIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),useUtilityClasses$1p=t=>{const{classes:Ae}=t,Ee=composeClasses({root:["root"]},getSelectUtilityClasses,Ae);return{...Ae,...Ee}},styledRootConfig={name:"MuiSelect",overridesResolver:(t,Ae)=>Ae.root,shouldForwardProp:t=>rootShouldForwardProp(t)&&t!=="variant",slot:"Root"},StyledInput=styled(Input,styledRootConfig)(""),StyledOutlinedInput=styled(OutlinedInput,styledRootConfig)(""),StyledFilledInput=styled(FilledInput,styledRootConfig)(""),Select=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({name:"MuiSelect",props:Ae}),{autoWidth:Se=!1,children:Ce,classes:_e={},className:Ie,defaultOpen:Be=!1,displayEmpty:Te=!1,IconComponent:Pe=ArrowDropDownIcon,id:ke,input:$e,inputProps:Oe,label:Ue,labelId:qe,MenuProps:ze,multiple:Qe=!1,native:Ge=!1,onClose:Xe,onOpen:er,open:tr,renderValue:nr,SelectDisplayProps:sr,variant:dr="outlined",...ar}=Ee,lr=Ge?NativeSelectInput:SelectInput,Ke=useFormControl(),Me=formControlState({props:Ee,muiFormControl:Ke,states:["variant","error"]}),je=Me.variant||dr,De={...Ee,variant:je,classes:_e},He=useUtilityClasses$1p(De),{root:Ve,...Ye}=He,St=$e||{standard:jsxRuntimeExports.jsx(StyledInput,{ownerState:De}),outlined:jsxRuntimeExports.jsx(StyledOutlinedInput,{label:Ue,ownerState:De}),filled:jsxRuntimeExports.jsx(StyledFilledInput,{ownerState:De})}[je],We=useForkRef(xe,getReactElementRef(St));return jsxRuntimeExports.jsx(reactExports.Fragment,{children:reactExports.cloneElement(St,{inputComponent:lr,inputProps:{children:Ce,error:Me.error,IconComponent:Pe,variant:je,type:void 0,multiple:Qe,...Ge?{id:ke}:{autoWidth:Se,defaultOpen:Be,displayEmpty:Te,labelId:qe,MenuProps:ze,onClose:Xe,onOpen:er,open:tr,renderValue:nr,SelectDisplayProps:{id:ke,...sr}},...Oe,classes:Oe?deepmerge(Ye,Oe.classes):Ye,...$e?$e.props.inputProps:{}},...(Qe&&Ge||Te)&&je==="outlined"?{notched:!0}:{},ref:We,className:clsx(St.props.className,Ie,He.root),...!$e&&{variant:je},...ar})})});Select.muiName="Select";function getTextFieldUtilityClass(t){return generateUtilityClass("MuiTextField",t)}generateUtilityClasses("MuiTextField",["root"]);const variantComponent={standard:Input,filled:FilledInput,outlined:OutlinedInput},useUtilityClasses$1o=t=>{const{classes:Ae}=t;return composeClasses({root:["root"]},getTextFieldUtilityClass,Ae)},TextFieldRoot=styled(FormControl,{name:"MuiTextField",slot:"Root",overridesResolver:(t,Ae)=>Ae.root})({}),TextField=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiTextField"}),{autoComplete:Se,autoFocus:Ce=!1,children:_e,className:Ie,color:Be="primary",defaultValue:Te,disabled:Pe=!1,error:ke=!1,FormHelperTextProps:$e,fullWidth:Oe=!1,helperText:Ue,id:qe,InputLabelProps:ze,inputProps:Qe,InputProps:Ge,inputRef:Xe,label:er,maxRows:tr,minRows:nr,multiline:sr=!1,name:dr,onBlur:ar,onChange:lr,onFocus:Ke,placeholder:Me,required:je=!1,rows:De,select:He=!1,SelectProps:Ve,slots:Ye={},slotProps:St={},type:We,value:Fe,variant:Ze="outlined",...ir}=Ee,ur={...Ee,autoFocus:Ce,color:Be,disabled:Pe,error:ke,fullWidth:Oe,multiline:sr,required:je,select:He,variant:Ze},fr=useUtilityClasses$1o(ur),Ar=useId(qe),vr=Ue&&Ar?`${Ar}-helper-text`:void 0,yr=er&&Ar?`${Ar}-label`:void 0,br=variantComponent[Ze],_r={slots:Ye,slotProps:{input:Ge,inputLabel:ze,htmlInput:Qe,formHelperText:$e,select:Ve,...St}},$r={},Fr=_r.slotProps.inputLabel;Ze==="outlined"&&(Fr&&typeof Fr.shrink<"u"&&($r.notched=Fr.shrink),$r.label=er),He&&((!Ve||!Ve.native)&&($r.id=void 0),$r["aria-describedby"]=void 0);const[Ir,zr]=useSlot("input",{elementType:br,externalForwardedProps:_r,additionalProps:$r,ownerState:ur}),[dn,tn]=useSlot("inputLabel",{elementType:InputLabel,externalForwardedProps:_r,ownerState:ur}),[Gr,wn]=useSlot("htmlInput",{elementType:"input",externalForwardedProps:_r,ownerState:ur}),[an,Vr]=useSlot("formHelperText",{elementType:FormHelperText,externalForwardedProps:_r,ownerState:ur}),[Rn,un]=useSlot("select",{elementType:Select,externalForwardedProps:_r,ownerState:ur}),sn=jsxRuntimeExports.jsx(Ir,{"aria-describedby":vr,autoComplete:Se,autoFocus:Ce,defaultValue:Te,fullWidth:Oe,multiline:sr,name:dr,rows:De,maxRows:tr,minRows:nr,type:We,value:Fe,id:Ar,inputRef:Xe,onBlur:ar,onChange:lr,onFocus:Ke,placeholder:Me,inputProps:wn,slots:{input:Ye.htmlInput?Gr:void 0},...zr});return jsxRuntimeExports.jsxs(TextFieldRoot,{className:clsx(fr.root,Ie),disabled:Pe,error:ke,fullWidth:Oe,ref:xe,required:je,color:Be,variant:Ze,ownerState:ur,...ir,children:[er!=null&&er!==""&&jsxRuntimeExports.jsx(dn,{htmlFor:Ar,id:yr,...tn,children:er}),He?jsxRuntimeExports.jsx(Rn,{"aria-describedby":vr,id:Ar,labelId:yr,value:Fe,input:sn,...un,children:_e}):sn,Ue&&jsxRuntimeExports.jsx(an,{id:vr,...Vr,children:Ue})]})}),StatusIndicator=({status:t})=>{const xe={connected:{color:"success.main",text:"Connected to promptfoo API"},blocked:{color:"error.main",text:"Cannot connect to promptfoo API"},loading:{color:"info.main",text:"Checking connection..."},unknown:{color:"grey.500",text:"Checking connection status..."},disabled:{color:"grey.400",text:"Remote generation is disabled"}}[t];return jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[jsxRuntimeExports.jsx(CircleIcon,{sx:{color:xe.color,fontSize:"12px"}}),jsxRuntimeExports.jsx(Typography,{variant:"body2",children:xe.text})]})};function ApiSettingsModal({open:t,onClose:Ae}){const{apiBaseUrl:xe,setApiBaseUrl:Ee,enablePersistApiBaseUrl:Se}=useApiConfig(),[Ce,_e]=reactExports.useState(xe||""),{status:Ie,message:Be,checkHealth:Te,isChecking:Pe}=useApiHealth(),[ke,$e]=reactExports.useState(!1);reactExports.useEffect(()=>{t&&Te()},[t,Te]),reactExports.useEffect(()=>{_e(xe||"")},[xe]);const Oe=ze=>{_e(ze.target.value)},Ue=async()=>{try{$e(!0),Ee(Ce),Se(),await Te(),Ae()}finally{$e(!1)}},qe=Ie==="loading"||Pe||ke;return jsxRuntimeExports.jsxs(Dialog,{open:t,onClose:Ae,maxWidth:"xs",fullWidth:!0,"aria-labelledby":"api-settings-dialog-title",children:[jsxRuntimeExports.jsx(DialogTitle,{id:"api-settings-dialog-title",children:"API and Sharing Settings"}),jsxRuntimeExports.jsxs(DialogContent,{children:[jsxRuntimeExports.jsxs(Box,{sx:{mb:3},children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1},children:[jsxRuntimeExports.jsx(StatusIndicator,{status:Ie}),jsxRuntimeExports.jsx(Tooltip$2,{title:"Check connection",children:jsxRuntimeExports.jsx("span",{children:jsxRuntimeExports.jsx(IconButton,{onClick:Te,size:"small",disabled:Pe,children:Pe?jsxRuntimeExports.jsx(CircularProgress,{size:20}):jsxRuntimeExports.jsx(RefreshIcon,{})})})})]}),Be&&Ie!=="unknown"&&Ie!=="loading"&&jsxRuntimeExports.jsx(Alert,{severity:Ie==="connected"?"success":"error",sx:{mt:1},children:Be})]}),jsxRuntimeExports.jsx(Typography,{variant:"h6",children:"API"}),jsxRuntimeExports.jsx(TextField,{label:"API Base URL",helperText:"The promptfoo API the webview will connect to",value:Ce,onChange:Oe,fullWidth:!0,margin:"normal",disabled:qe})]}),jsxRuntimeExports.jsxs(DialogActions,{children:[jsxRuntimeExports.jsx(Button,{onClick:Ue,disabled:qe,startIcon:ke&&jsxRuntimeExports.jsx(CircularProgress,{size:20}),children:"Save"}),jsxRuntimeExports.jsx(Button,{onClick:Ae,disabled:qe,children:"Close"})]})]})}const DarkModeIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkMode"),LightModeIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightMode"),StyledIconButton=styled(IconButton)(({theme:t})=>({padding:8,borderRadius:"50%",transition:t.transitions.create(["background-color","transform"],{duration:t.transitions.duration.standard}),"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)",transform:"rotate(15deg)"}})),AnimatedIcon=styled("div")(({theme:t})=>({display:"flex",transition:t.transitions.create(["opacity","transform"],{duration:t.transitions.duration.standard})})),DarkModeToggle=React.memo(({onToggleDarkMode:t})=>{const xe=useTheme().palette.mode==="dark";return jsxRuntimeExports.jsxs(StyledIconButton,{onClick:t,"aria-label":xe?"Switch to light mode":"Switch to dark mode",children:[jsxRuntimeExports.jsx(AnimatedIcon,{sx:{opacity:xe?1:0,transform:xe?"rotate(0deg)":"rotate(-90deg)",position:"absolute"},children:jsxRuntimeExports.jsx(DarkModeIcon,{})}),jsxRuntimeExports.jsx(AnimatedIcon,{sx:{opacity:xe?0:1,transform:xe?"rotate(90deg)":"rotate(0deg)"},children:jsxRuntimeExports.jsx(LightModeIcon,{})})]})});DarkModeToggle.displayName="DarkModeToggle";const BugReportIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20zm-6 8h-4v-2h4zm0-4h-4v-2h4z"}),"BugReport"),CalendarTodayIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday"),ForumIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1m-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1"}),"Forum"),GitHubIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub"),MenuBookIcon=createSvgIcon([jsxRuntimeExports.jsx("path",{d:"M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5 1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5V6c-.6-.45-1.25-.75-2-1m0 13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5V8c1.35-.85 3.8-1.5 5.5-1.5 1.2 0 2.4.15 3.5.5z"},"0"),jsxRuntimeExports.jsx("path",{d:"M17.5 10.5c.88 0 1.73.09 2.5.26V9.24c-.79-.15-1.64-.24-2.5-.24-1.7 0-3.24.29-4.5.83v1.66c1.13-.64 2.7-.99 4.5-.99M13 12.49v1.66c1.13-.64 2.7-.99 4.5-.99.88 0 1.73.09 2.5.26V11.9c-.79-.15-1.64-.24-2.5-.24-1.7 0-3.24.3-4.5.83m4.5 1.84c-1.7 0-3.24.29-4.5.83v1.66c1.13-.64 2.7-.99 4.5-.99.88 0 1.73.09 2.5.26v-1.52c-.79-.16-1.64-.24-2.5-.24"},"1")],"MenuBook"),WorkIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-6 0h-4V4h4z"}),"Work");function getLinkUtilityClass(t){return generateUtilityClass("MuiLink",t)}const linkClasses=generateUtilityClasses("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),getTextDecoration=({theme:t,ownerState:Ae})=>{const xe=Ae.color,Ee=getPath(t,`palette.${xe}.main`,!1)||getPath(t,`palette.${xe}`,!1)||Ae.color,Se=getPath(t,`palette.${xe}.mainChannel`)||getPath(t,`palette.${xe}Channel`);return"vars"in t&&Se?`rgba(${Se} / 0.4)`:alpha$3(Ee,.4)},v6Colors={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},useUtilityClasses$1n=t=>{const{classes:Ae,component:xe,focusVisible:Ee,underline:Se}=t,Ce={root:["root",`underline${capitalize$1(Se)}`,xe==="button"&&"button",Ee&&"focusVisible"]};return composeClasses(Ce,getLinkUtilityClass,Ae)},LinkRoot=styled(Typography,{name:"MuiLink",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,Ae[`underline${capitalize$1(xe.underline)}`],xe.component==="button"&&Ae.button]}})(memoTheme(({theme:t})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:Ae,ownerState:xe})=>Ae==="always"&&xe.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(t.palette).filter(createSimplePaletteValueFilter()).map(([Ae])=>({props:{underline:"always",color:Ae},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette[Ae].mainChannel} / 0.4)`:alpha$3(t.palette[Ae].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.4)`:alpha$3(t.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette.text.secondaryChannel} / 0.4)`:alpha$3(t.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(t.vars||t).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${linkClasses.focusVisible}`]:{outline:"auto"}}}]}))),Link=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiLink"}),Se=useTheme(),{className:Ce,color:_e="primary",component:Ie="a",onBlur:Be,onFocus:Te,TypographyClasses:Pe,underline:ke="always",variant:$e="inherit",sx:Oe,...Ue}=Ee,[qe,ze]=reactExports.useState(!1),Qe=tr=>{isFocusVisible(tr.target)||ze(!1),Be&&Be(tr)},Ge=tr=>{isFocusVisible(tr.target)&&ze(!0),Te&&Te(tr)},Xe={...Ee,color:_e,component:Ie,focusVisible:qe,underline:ke,variant:$e},er=useUtilityClasses$1n(Xe);return jsxRuntimeExports.jsx(LinkRoot,{color:_e,className:clsx(er.root,Ce),classes:Pe,component:Ie,onBlur:Qe,onFocus:Ge,ref:xe,ownerState:Xe,variant:$e,...Ue,sx:[...v6Colors[_e]===void 0?[{color:_e}]:[],...Array.isArray(Oe)?Oe:[Oe]],style:{...Ue.style,...ke==="always"&&_e!=="inherit"&&!v6Colors[_e]&&{"--Link-underlineColor":getTextDecoration({theme:Se,ownerState:Xe})}}})}),Stack=createStack$1({createStyledComponent:styled("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,Ae)=>Ae.root}),useThemeProps:t=>useDefaultProps({props:t,name:"MuiStack"})}),links=[{icon:jsxRuntimeExports.jsx(MenuBookIcon,{fontSize:"small"}),text:"Documentation",href:"https://www.promptfoo.dev/docs/intro"},{icon:jsxRuntimeExports.jsx(GitHubIcon,{fontSize:"small"}),text:"GitHub Repository",href:"https://github.com/promptfoo/promptfoo"},{icon:jsxRuntimeExports.jsx(BugReportIcon,{fontSize:"small"}),text:"File an Issue",href:"https://github.com/promptfoo/promptfoo/issues"},{icon:jsxRuntimeExports.jsx(ForumIcon,{fontSize:"small"}),text:"Join Our Discord Community",href:"https://discord.gg/promptfoo"},{icon:jsxRuntimeExports.jsx(CalendarTodayIcon,{fontSize:"small"}),text:"Book a Meeting",href:"https://cal.com/team/promptfoo/intro2"},{icon:jsxRuntimeExports.jsx(WorkIcon,{fontSize:"small"}),text:"Careers",href:"https://www.promptfoo.dev/careers/"}];function InfoModal({open:t,onClose:Ae}){return jsxRuntimeExports.jsxs(Dialog,{open:t,onClose:Ae,maxWidth:"xs",fullWidth:!0,"aria-labelledby":"about-promptfoo-dialog-title",children:[jsxRuntimeExports.jsx(DialogTitle,{id:"about-promptfoo-dialog-title",children:jsxRuntimeExports.jsxs(Stack,{children:[jsxRuntimeExports.jsx(Typography,{variant:"h6",children:"About Promptfoo"}),jsxRuntimeExports.jsx(Link,{href:"https://github.com/promptfoo/promptfoo/releases",underline:"none",sx:{color:"inherit"},target:"_blank",children:jsxRuntimeExports.jsxs(Typography,{variant:"subtitle2",children:["Version ","0.113.2"]})})]})}),jsxRuntimeExports.jsxs(DialogContent,{children:[jsxRuntimeExports.jsx(Typography,{variant:"body2",gutterBottom:!0,children:"Promptfoo is a MIT licensed open-source tool for evaluating and red-teaming LLMs. We make it easy to track the performance of your models and prompts over time with automated support for dataset generation and grading."}),jsxRuntimeExports.jsx(Stack,{spacing:2,mt:2,children:links.map((xe,Ee)=>jsxRuntimeExports.jsxs(Stack,{direction:"row",spacing:1,alignItems:"center",sx:{flexWrap:"wrap","& .MuiSvgIcon-root":{color:"text.primary"}},children:[xe.icon,jsxRuntimeExports.jsx(Link,{underline:"none",target:"_blank",href:xe.href,sx:{color:"inherit"},children:jsxRuntimeExports.jsx(Typography,{variant:"body2",children:xe.text})})]},Ee))})]}),jsxRuntimeExports.jsx(DialogActions,{children:jsxRuntimeExports.jsx(Button,{onClick:Ae,children:"Close"})})]})}const logoPanda="/assets/logo-panda-BuYvzEyb.svg",LogoWrapper=styled(Box)(({theme:t})=>({display:"inline-flex",alignItems:"center",padding:t.spacing(1,2),perspective:"2000px",transformStyle:"preserve-3d"})),LogoText=styled(Typography)(({theme:t})=>({fontFamily:'"Inter", sans-serif',fontWeight:600,fontSize:"1rem",color:t.palette.text.primary,letterSpacing:"0.02em",marginLeft:t.spacing(1),transition:"all 0.3s ease","@keyframes rainbow":{"0%":{backgroundPosition:"0% 50%"},"50%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0% 50%"}},"&:hover":{color:"transparent",backgroundImage:"linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8f00ff)",backgroundSize:"300% 300%",backgroundClip:"text",WebkitBackgroundClip:"text",animation:"rainbow 3s ease infinite"}})),LogoIcon=styled("img")({width:"25px",height:"auto",transition:"all 1s cubic-bezier(0.68, -0.55, 0.265, 1.55)","@keyframes absoluteMadness":{"0%":{transform:"translateY(0) rotate(0deg) scale(1) translateX(0)",filter:"hue-rotate(0deg) brightness(1)"},"25%":{transform:"translateY(-25px) rotate(360deg) scale(1.5) translateX(15px)",filter:"hue-rotate(180deg) brightness(1.5)"},"50%":{transform:"translateY(0) rotate(720deg) scale(0.5) translateX(-15px)",filter:"hue-rotate(360deg) brightness(2)"},"75%":{transform:"translateY(25px) rotate(1080deg) scale(1.8) translateX(15px)",filter:"hue-rotate(540deg) brightness(1.5)"},"100%":{transform:"translateY(0) rotate(1440deg) scale(1) translateX(0)",filter:"hue-rotate(720deg) brightness(1)"}},"@keyframes vibrate":{"0%, 100%":{transform:"translate(0)"},"10%, 30%, 50%, 70%, 90%":{transform:"translate(-2px, 2px)"},"20%, 40%, 60%, 80%":{transform:"translate(2px, -2px)"}},"&:hover":{animation:"absoluteMadness 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite, vibrate 0.3s linear infinite",filter:"hue-rotate(720deg) brightness(2) contrast(1.5) saturate(300%) drop-shadow(0 0 10px rgba(255,0,0,0.5))"}});function Logo(){return jsxRuntimeExports.jsx(Link$1,{to:"/",style:{textDecoration:"none"},children:jsxRuntimeExports.jsxs(LogoWrapper,{children:[jsxRuntimeExports.jsx(LogoIcon,{src:logoPanda,alt:"Promptfoo Logo"}),jsxRuntimeExports.jsx(LogoText,{variant:"h1",children:"promptfoo"})]})})}const NavButton=styled(Button)(({theme:t})=>({color:t.palette.text.primary,"&:hover":{backgroundColor:t.palette.action.hover},"&.active":{backgroundColor:t.palette.action.selected}})),StyledAppBar=styled(AppBar)(({theme:t})=>({backgroundColor:t.palette.background.paper,color:t.palette.text.primary,boxShadow:t.shadows[1],marginBottom:t.spacing(2)})),NavToolbar=styled(Toolbar)({justifyContent:"space-between"}),NavSection=styled(Box)({display:"flex",alignItems:"center",gap:"1rem"});function NavLink({href:t,label:Ae}){const Ee=useLocation().pathname.startsWith(t);return jsxRuntimeExports.jsx(NavButton,{component:Link$1,to:t,className:Ee?"active":"",children:Ae})}function CreateDropdown(){const[t,Ae]=reactExports.useState(null),xe=!!t,Ee=useLocation(),Se=Ie=>{Ae(Ie.currentTarget)},Ce=()=>{Ae(null)},_e=["/setup","/redteam/setup"].some(Ie=>Ee.pathname.startsWith(Ie));return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(NavButton,{onClick:Se,endIcon:jsxRuntimeExports.jsx(ArrowDropDownIcon$1,{}),className:_e?"active":"",children:"Create"}),jsxRuntimeExports.jsxs(Menu,{anchorEl:t,open:xe,onClose:Ce,PaperProps:{elevation:0,sx:{overflow:"visible",filter:"drop-shadow(0px 2px 8px rgba(0,0,0,0.32))",mt:1.5}},children:[jsxRuntimeExports.jsx(MenuItem,{onClick:Ce,component:Link$1,to:"/setup",children:"Eval"}),jsxRuntimeExports.jsx(MenuItem,{onClick:Ce,component:Link$1,to:"/redteam/setup",children:"Red team"})]})]})}function EvalsDropdown(){const[t,Ae]=reactExports.useState(null),xe=!!t,Ee=useLocation(),Se=Ie=>{Ae(Ie.currentTarget)},Ce=()=>{Ae(null)},_e=["/eval","/evals"].some(Ie=>Ee.pathname.startsWith(Ie));return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(NavButton,{onClick:Se,endIcon:jsxRuntimeExports.jsx(ArrowDropDownIcon$1,{}),className:_e?"active":"",children:"Evals"}),jsxRuntimeExports.jsxs(Menu,{anchorEl:t,open:xe,onClose:Ce,children:[jsxRuntimeExports.jsx(MenuItem,{onClick:Ce,component:Link$1,to:"/eval",children:"Latest Eval"}),jsxRuntimeExports.jsx(MenuItem,{onClick:Ce,component:Link$1,to:"/evals",children:"All Evals"})]})]})}function Navigation({darkMode:t,onToggleDarkMode:Ae}){const[xe,Ee]=reactExports.useState(!1),[Se,Ce]=reactExports.useState(!1),_e=useUIStore(Te=>Te.isNavbarVisible),Ie=()=>Ee(Te=>!Te),Be=()=>Ce(Te=>!Te);return _e?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(StyledAppBar,{position:"static",elevation:0,children:jsxRuntimeExports.jsxs(NavToolbar,{children:[jsxRuntimeExports.jsxs(NavSection,{children:[jsxRuntimeExports.jsx(Logo,{}),jsxRuntimeExports.jsx(CreateDropdown,{}),jsxRuntimeExports.jsx(EvalsDropdown,{}),jsxRuntimeExports.jsx(NavLink,{href:"/prompts",label:"Prompts"}),jsxRuntimeExports.jsx(NavLink,{href:"/datasets",label:"Datasets"}),jsxRuntimeExports.jsx(NavLink,{href:"/history",label:"History"})]}),jsxRuntimeExports.jsxs(NavSection,{children:[jsxRuntimeExports.jsx(IconButton,{onClick:Ie,color:"inherit",children:jsxRuntimeExports.jsx(InfoIcon,{})}),jsxRuntimeExports.jsx(Tooltip$2,{title:"API and Sharing Settings",children:jsxRuntimeExports.jsx(IconButton,{onClick:Be,color:"inherit",children:jsxRuntimeExports.jsx(EngineeringIcon,{})})}),jsxRuntimeExports.jsx(DarkModeToggle,{onToggleDarkMode:Ae})]})]})}),jsxRuntimeExports.jsx(InfoModal,{open:xe,onClose:Ie}),jsxRuntimeExports.jsx(ApiSettingsModal,{open:Se,onClose:Be})]}):null}const useMediaQuery=unstable_createUseMediaQuery({themeId:THEME_ID}),createAppTheme=t=>createTheme({typography:{fontFamily:'"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',button:{textTransform:"none",fontWeight:500}},shape:{borderRadius:12},palette:{mode:t?"dark":"light",primary:{main:t?"#3b82f6":"#2563eb",light:t?"#60a5fa":"#3b82f6",dark:t?"#2563eb":"#1d4ed8",contrastText:"#ffffff"},secondary:{main:"#8b5cf6",light:"#a78bfa",dark:"#7c3aed",contrastText:"#ffffff"},background:{default:t?"#121212":"#f8fafc",paper:t?"#1e1e1e":"#ffffff"},text:{primary:t?"#ffffff":"#0f172a",secondary:t?"#a0a0a0":"#475569"}},components:{MuiButton:{styleOverrides:{root:{borderRadius:"8px",textTransform:"none",fontWeight:500,padding:"8px 16px",transition:"all 0.2s ease-in-out","&:hover":{transform:"translateY(-1px)"}},contained:{boxShadow:"none","&:hover":{boxShadow:"0 4px 8px -2px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06)"}}}},MuiCard:{styleOverrides:{root:{backgroundColor:t?"#1e1e1e":"#ffffff",borderRadius:"16px",border:`1px solid ${t?"#2c2c2c":"#e2e8f0"}`,transition:"all 0.2s ease-in-out",boxShadow:t?"none":"0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1)","&:hover":{boxShadow:t?"0 4px 12px rgba(0, 0, 0, 0.3)":"0 4px 12px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.05)"}}}},MuiTableContainer:{styleOverrides:{root:{backgroundColor:t?"#1e1e1e":"#ffffff",boxShadow:t?"none":"0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1)",borderRadius:"12px",border:`1px solid ${t?"#2c2c2c":"#e2e8f0"}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:t?"#1e1e1e":"#f8fafc"}}},MuiTableCell:{styleOverrides:{head:{backgroundColor:"inherit",color:t?"#ffffff":"#0f172a",fontWeight:600,fontSize:"0.875rem"},stickyHeader:{backgroundColor:t?"#1e1e1e":"#f8fafc"},root:{borderBottom:`1px solid ${t?"#2c2c2c":"#e2e8f0"}`}}},MuiInputBase:{styleOverrides:{root:{backgroundColor:t?"#1e1e1e":"#ffffff",borderRadius:"8px",transition:"all 0.2s ease-in-out"}}},MuiOutlinedInput:{styleOverrides:{root:{"& .MuiOutlinedInput-notchedOutline":{transition:"all 0.2s ease-in-out"}}}},MuiFormLabel:{styleOverrides:{root:{transition:"color 0.2s ease-in-out","&.Mui-focused":{color:t?"#3b82f6":"#2563eb"}}}},MuiAppBar:{styleOverrides:{root:{backgroundColor:t?"#1e1e1e":"#ffffff",boxShadow:"none",borderBottom:`1px solid ${t?"#2c2c2c":"#e2e8f0"}`}}},MuiPaper:{styleOverrides:{root:{backgroundImage:"none",backgroundColor:t?"#1e1e1e":"#ffffff",boxShadow:t?"none":"0 1px 2px rgba(0, 0, 0, 0.05)",border:`1px solid ${t?"#2c2c2c":"#e2e8f0"}`,'&[class*="elevation"]':{boxShadow:t?"none":"0 1px 2px rgba(0, 0, 0, 0.05)"}},elevation1:{boxShadow:t?"none":"0 1px 2px rgba(0, 0, 0, 0.05)"},elevation2:{boxShadow:t?"none":"0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1)"},elevation3:{boxShadow:t?"0 4px 12px rgba(0, 0, 0, 0.3)":"0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.05)"},elevation4:{boxShadow:t?"0 8px 16px rgba(0, 0, 0, 0.4)":"0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05)"}}},MuiDialog:{styleOverrides:{paper:{borderRadius:"16px",boxShadow:t?"0 25px 50px -12px rgba(0, 0, 0, 0.5)":"0 25px 50px -12px rgba(0, 0, 0, 0.25)"}}},MuiSwitch:{styleOverrides:{root:{padding:8},track:{borderRadius:22/2,backgroundColor:t?"#404040":"#cbd5e1"},thumb:{backgroundColor:"#ffffff"}}}}}),lightTheme=createAppTheme(!1),darkTheme=createAppTheme(!0);function Layout({children:t}){return jsxRuntimeExports.jsx("div",{children:t})}function PageShell(){const t=useMediaQuery("(prefers-color-scheme: dark)"),[Ae,xe]=reactExports.useState(null);reactExports.useEffect(()=>{const Se=localStorage.getItem("darkMode");xe(Se===null?t:Se==="true")},[t]);const Ee=reactExports.useCallback(()=>{xe(Se=>{const Ce=!Se;return localStorage.setItem("darkMode",String(Ce)),Ce})},[]);return reactExports.useEffect(()=>{Ae!==null&&(Ae?document.documentElement.setAttribute("data-theme","dark"):document.documentElement.removeAttribute("data-theme"))},[Ae]),Ae===null?null:jsxRuntimeExports.jsx(ThemeProvider,{theme:Ae?darkTheme:lightTheme,children:jsxRuntimeExports.jsxs(Layout,{children:[jsxRuntimeExports.jsx(Navigation,{darkMode:Ae,onToggleDarkMode:Ee}),jsxRuntimeExports.jsx(Outlet,{})]})})}function getCollapseUtilityClass(t){return generateUtilityClass("MuiCollapse",t)}generateUtilityClasses("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const useUtilityClasses$1m=t=>{const{orientation:Ae,classes:xe}=t,Ee={root:["root",`${Ae}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${Ae}`],wrapperInner:["wrapperInner",`${Ae}`]};return composeClasses(Ee,getCollapseUtilityClass,xe)},CollapseRoot=styled("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,Ae[xe.orientation],xe.state==="entered"&&Ae.entered,xe.state==="exited"&&!xe.in&&xe.collapsedSize==="0px"&&Ae.hidden]}})(memoTheme(({theme:t})=>({height:0,overflow:"hidden",transition:t.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:t.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:Ae})=>Ae.state==="exited"&&!Ae.in&&Ae.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),CollapseWrapper=styled("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(t,Ae)=>Ae.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),CollapseWrapperInner=styled("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(t,Ae)=>Ae.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Collapse=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiCollapse"}),{addEndListener:Se,children:Ce,className:_e,collapsedSize:Ie="0px",component:Be,easing:Te,in:Pe,onEnter:ke,onEntered:$e,onEntering:Oe,onExit:Ue,onExited:qe,onExiting:ze,orientation:Qe="vertical",style:Ge,timeout:Xe=duration$1.standard,TransitionComponent:er=Transition,...tr}=Ee,nr={...Ee,orientation:Qe,collapsedSize:Ie},sr=useUtilityClasses$1m(nr),dr=useTheme(),ar=useTimeout(),lr=reactExports.useRef(null),Ke=reactExports.useRef(),Me=typeof Ie=="number"?`${Ie}px`:Ie,je=Qe==="horizontal",De=je?"width":"height",He=reactExports.useRef(null),Ve=useForkRef(xe,He),Ye=vr=>yr=>{if(vr){const br=He.current;yr===void 0?vr(br):vr(br,yr)}},St=()=>lr.current?lr.current[je?"clientWidth":"clientHeight"]:0,We=Ye((vr,yr)=>{lr.current&&je&&(lr.current.style.position="absolute"),vr.style[De]=Me,ke&&ke(vr,yr)}),Fe=Ye((vr,yr)=>{const br=St();lr.current&&je&&(lr.current.style.position="");const{duration:_r,easing:$r}=getTransitionProps({style:Ge,timeout:Xe,easing:Te},{mode:"enter"});if(Xe==="auto"){const Fr=dr.transitions.getAutoHeightDuration(br);vr.style.transitionDuration=`${Fr}ms`,Ke.current=Fr}else vr.style.transitionDuration=typeof _r=="string"?_r:`${_r}ms`;vr.style[De]=`${br}px`,vr.style.transitionTimingFunction=$r,Oe&&Oe(vr,yr)}),Ze=Ye((vr,yr)=>{vr.style[De]="auto",$e&&$e(vr,yr)}),ir=Ye(vr=>{vr.style[De]=`${St()}px`,Ue&&Ue(vr)}),ur=Ye(qe),fr=Ye(vr=>{const yr=St(),{duration:br,easing:_r}=getTransitionProps({style:Ge,timeout:Xe,easing:Te},{mode:"exit"});if(Xe==="auto"){const $r=dr.transitions.getAutoHeightDuration(yr);vr.style.transitionDuration=`${$r}ms`,Ke.current=$r}else vr.style.transitionDuration=typeof br=="string"?br:`${br}ms`;vr.style[De]=Me,vr.style.transitionTimingFunction=_r,ze&&ze(vr)}),Ar=vr=>{Xe==="auto"&&ar.start(Ke.current||0,vr),Se&&Se(He.current,vr)};return jsxRuntimeExports.jsx(er,{in:Pe,onEnter:We,onEntered:Ze,onEntering:Fe,onExit:ir,onExited:ur,onExiting:fr,addEndListener:Ar,nodeRef:He,timeout:Xe==="auto"?null:Xe,...tr,children:(vr,{ownerState:yr,...br})=>jsxRuntimeExports.jsx(CollapseRoot,{as:Be,className:clsx(sr.root,_e,{entered:sr.entered,exited:!Pe&&Me==="0px"&&sr.hidden}[vr]),style:{[je?"minWidth":"minHeight"]:Me,...Ge},ref:Ve,ownerState:{...nr,state:vr},...br,children:jsxRuntimeExports.jsx(CollapseWrapper,{ownerState:{...nr,state:vr},className:sr.wrapper,ref:lr,children:jsxRuntimeExports.jsx(CollapseWrapperInner,{ownerState:{...nr,state:vr},className:sr.wrapperInner,children:Ce})})})})});Collapse&&(Collapse.muiSupportAuto=!0);const AccordionContext=reactExports.createContext({});function getAccordionUtilityClass(t){return generateUtilityClass("MuiAccordion",t)}const accordionClasses=generateUtilityClasses("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),useUtilityClasses$1l=t=>{const{classes:Ae,square:xe,expanded:Ee,disabled:Se,disableGutters:Ce}=t;return composeClasses({root:["root",!xe&&"rounded",Ee&&"expanded",Se&&"disabled",!Ce&&"gutters"],heading:["heading"],region:["region"]},getAccordionUtilityClass,Ae)},AccordionRoot=styled(Paper,{name:"MuiAccordion",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[{[`& .${accordionClasses.region}`]:Ae.region},Ae.root,!xe.square&&Ae.rounded,!xe.disableGutters&&Ae.gutters]}})(memoTheme(({theme:t})=>{const Ae={duration:t.transitions.duration.shortest};return{position:"relative",transition:t.transitions.create(["margin"],Ae),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(t.vars||t).palette.divider,transition:t.transitions.create(["opacity","background-color"],Ae)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${accordionClasses.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${accordionClasses.disabled}`]:{backgroundColor:(t.vars||t).palette.action.disabledBackground}}}),memoTheme(({theme:t})=>({variants:[{props:Ae=>!Ae.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(t.vars||t).shape.borderRadius,borderBottomRightRadius:(t.vars||t).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:Ae=>!Ae.disableGutters,style:{[`&.${accordionClasses.expanded}`]:{margin:"16px 0"}}}]}))),AccordionHeading=styled("h3",{name:"MuiAccordion",slot:"Heading",overridesResolver:(t,Ae)=>Ae.heading})({all:"unset"}),Accordion=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiAccordion"}),{children:Se,className:Ce,defaultExpanded:_e=!1,disabled:Ie=!1,disableGutters:Be=!1,expanded:Te,onChange:Pe,square:ke=!1,slots:$e={},slotProps:Oe={},TransitionComponent:Ue,TransitionProps:qe,...ze}=Ee,[Qe,Ge]=useControlled({controlled:Te,default:_e,name:"Accordion",state:"expanded"}),Xe=reactExports.useCallback(Ve=>{Ge(!Qe),Pe&&Pe(Ve,!Qe)},[Qe,Pe,Ge]),[er,...tr]=reactExports.Children.toArray(Se),nr=reactExports.useMemo(()=>({expanded:Qe,disabled:Ie,disableGutters:Be,toggle:Xe}),[Qe,Ie,Be,Xe]),sr={...Ee,square:ke,disabled:Ie,disableGutters:Be,expanded:Qe},dr=useUtilityClasses$1l(sr),ar={transition:Ue,...$e},lr={transition:qe,...Oe},Ke={slots:ar,slotProps:lr},[Me,je]=useSlot("heading",{elementType:AccordionHeading,externalForwardedProps:Ke,className:dr.heading,ownerState:sr}),[De,He]=useSlot("transition",{elementType:Collapse,externalForwardedProps:Ke,ownerState:sr});return jsxRuntimeExports.jsxs(AccordionRoot,{className:clsx(dr.root,Ce),ref:xe,ownerState:sr,square:ke,...ze,children:[jsxRuntimeExports.jsx(Me,{...je,children:jsxRuntimeExports.jsx(AccordionContext.Provider,{value:nr,children:er})}),jsxRuntimeExports.jsx(De,{in:Qe,timeout:"auto",...He,children:jsxRuntimeExports.jsx("div",{"aria-labelledby":er.props.id,id:er.props["aria-controls"],role:"region",className:dr.region,children:tr})})]})});function getAccordionDetailsUtilityClass(t){return generateUtilityClass("MuiAccordionDetails",t)}generateUtilityClasses("MuiAccordionDetails",["root"]);const useUtilityClasses$1k=t=>{const{classes:Ae}=t;return composeClasses({root:["root"]},getAccordionDetailsUtilityClass,Ae)},AccordionDetailsRoot=styled("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(t,Ae)=>Ae.root})(memoTheme(({theme:t})=>({padding:t.spacing(1,2,2)}))),AccordionDetails=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiAccordionDetails"}),{className:Se,...Ce}=Ee,_e=Ee,Ie=useUtilityClasses$1k(_e);return jsxRuntimeExports.jsx(AccordionDetailsRoot,{className:clsx(Ie.root,Se),ref:xe,ownerState:_e,...Ce})});function getAccordionSummaryUtilityClass(t){return generateUtilityClass("MuiAccordionSummary",t)}const accordionSummaryClasses=generateUtilityClasses("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),useUtilityClasses$1j=t=>{const{classes:Ae,expanded:xe,disabled:Ee,disableGutters:Se}=t;return composeClasses({root:["root",xe&&"expanded",Ee&&"disabled",!Se&&"gutters"],focusVisible:["focusVisible"],content:["content",xe&&"expanded",!Se&&"contentGutters"],expandIconWrapper:["expandIconWrapper",xe&&"expanded"]},getAccordionSummaryUtilityClass,Ae)},AccordionSummaryRoot=styled(ButtonBase,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(t,Ae)=>Ae.root})(memoTheme(({theme:t})=>{const Ae={duration:t.transitions.duration.shortest};return{display:"flex",width:"100%",minHeight:48,padding:t.spacing(0,2),transition:t.transitions.create(["min-height","background-color"],Ae),[`&.${accordionSummaryClasses.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${accordionSummaryClasses.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`&:hover:not(.${accordionSummaryClasses.disabled})`]:{cursor:"pointer"},variants:[{props:xe=>!xe.disableGutters,style:{[`&.${accordionSummaryClasses.expanded}`]:{minHeight:64}}}]}})),AccordionSummaryContent=styled("span",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(t,Ae)=>Ae.content})(memoTheme(({theme:t})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:Ae=>!Ae.disableGutters,style:{transition:t.transitions.create(["margin"],{duration:t.transitions.duration.shortest}),[`&.${accordionSummaryClasses.expanded}`]:{margin:"20px 0"}}}]}))),AccordionSummaryExpandIconWrapper=styled("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(t,Ae)=>Ae.expandIconWrapper})(memoTheme(({theme:t})=>({display:"flex",color:(t.vars||t).palette.action.active,transform:"rotate(0deg)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shortest}),[`&.${accordionSummaryClasses.expanded}`]:{transform:"rotate(180deg)"}}))),AccordionSummary=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiAccordionSummary"}),{children:Se,className:Ce,expandIcon:_e,focusVisibleClassName:Ie,onClick:Be,...Te}=Ee,{disabled:Pe=!1,disableGutters:ke,expanded:$e,toggle:Oe}=reactExports.useContext(AccordionContext),Ue=Qe=>{Oe&&Oe(Qe),Be&&Be(Qe)},qe={...Ee,expanded:$e,disabled:Pe,disableGutters:ke},ze=useUtilityClasses$1j(qe);return jsxRuntimeExports.jsxs(AccordionSummaryRoot,{focusRipple:!1,disableRipple:!0,disabled:Pe,"aria-expanded":$e,className:clsx(ze.root,Ce),focusVisibleClassName:clsx(ze.focusVisible,Ie),onClick:Ue,ref:xe,ownerState:qe,...Te,children:[jsxRuntimeExports.jsx(AccordionSummaryContent,{className:ze.content,ownerState:qe,children:Se}),_e&&jsxRuntimeExports.jsx(AccordionSummaryExpandIconWrapper,{className:ze.expandIconWrapper,ownerState:qe,children:_e})]})});function stripDiacritics(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function createFilterOptions(t={}){const{ignoreAccents:Ae=!0,ignoreCase:xe=!0,limit:Ee,matchFrom:Se="any",stringify:Ce,trim:_e=!1}=t;return(Ie,{inputValue:Be,getOptionLabel:Te})=>{let Pe=_e?Be.trim():Be;xe&&(Pe=Pe.toLowerCase()),Ae&&(Pe=stripDiacritics(Pe));const ke=Pe?Ie.filter($e=>{let Oe=(Ce||Te)($e);return xe&&(Oe=Oe.toLowerCase()),Ae&&(Oe=stripDiacritics(Oe)),Se==="start"?Oe.startsWith(Pe):Oe.includes(Pe)}):Ie;return typeof Ee=="number"?ke.slice(0,Ee):ke}}const defaultFilterOptions=createFilterOptions(),pageSize=5,defaultIsActiveElementInListbox=t=>{var Ae;return t.current!==null&&((Ae=t.current.parentElement)==null?void 0:Ae.contains(document.activeElement))},MULTIPLE_DEFAULT_VALUE=[];function getInputValue$1(t,Ae,xe){if(Ae||t==null)return"";const Ee=xe(t);return typeof Ee=="string"?Ee:""}function useAutocomplete(t){const{unstable_isActiveElementInListbox:Ae=defaultIsActiveElementInListbox,unstable_classNamePrefix:xe="Mui",autoComplete:Ee=!1,autoHighlight:Se=!1,autoSelect:Ce=!1,blurOnSelect:_e=!1,clearOnBlur:Ie=!t.freeSolo,clearOnEscape:Be=!1,componentName:Te="useAutocomplete",defaultValue:Pe=t.multiple?MULTIPLE_DEFAULT_VALUE:null,disableClearable:ke=!1,disableCloseOnSelect:$e=!1,disabled:Oe,disabledItemsFocusable:Ue=!1,disableListWrap:qe=!1,filterOptions:ze=defaultFilterOptions,filterSelectedOptions:Qe=!1,freeSolo:Ge=!1,getOptionDisabled:Xe,getOptionKey:er,getOptionLabel:tr=zn=>zn.label??zn,groupBy:nr,handleHomeEndKeys:sr=!t.freeSolo,id:dr,includeInputInList:ar=!1,inputValue:lr,isOptionEqualToValue:Ke=(zn,Gn)=>zn===Gn,multiple:Me=!1,onChange:je,onClose:De,onHighlightChange:He,onInputChange:Ve,onOpen:Ye,open:St,openOnFocus:We=!1,options:Fe,readOnly:Ze=!1,selectOnFocus:ir=!t.freeSolo,value:ur}=t,fr=useId(dr);let Ar=tr;Ar=zn=>{const Gn=tr(zn);return typeof Gn!="string"?String(Gn):Gn};const vr=reactExports.useRef(!1),yr=reactExports.useRef(!0),br=reactExports.useRef(null),_r=reactExports.useRef(null),[$r,Fr]=reactExports.useState(null),[Ir,zr]=reactExports.useState(-1),dn=Se?0:-1,tn=reactExports.useRef(dn),Gr=reactExports.useRef(getInputValue$1(Pe,Me,Ar)).current,[wn,an]=useControlled({controlled:ur,default:Pe,name:Te}),[Vr,Rn]=useControlled({controlled:lr,default:Gr,name:Te,state:"inputValue"}),[un,sn]=reactExports.useState(!1),jn=reactExports.useCallback((zn,Gn,di)=>{if(!(Me?wn.length<Gn.length:Gn!==null)&&!Ie)return;const Ei=getInputValue$1(Gn,Me,Ar);Vr!==Ei&&(Rn(Ei),Ve&&Ve(zn,Ei,di))},[Ar,Vr,Me,Ve,Rn,Ie,wn]),[en,Jr]=useControlled({controlled:St,default:!1,name:Te,state:"open"}),[nn,rn]=reactExports.useState(!0),cn=!Me&&wn!=null&&Vr===Ar(wn),pn=en&&!Ze,Mr=pn?ze(Fe.filter(zn=>!(Qe&&(Me?wn:[wn]).some(Gn=>Gn!==null&&Ke(zn,Gn)))),{inputValue:cn&&nn?"":Vr,getOptionLabel:Ar}):[],gr=usePreviousProps({filteredOptions:Mr,value:wn,inputValue:Vr});reactExports.useEffect(()=>{const zn=wn!==gr.value;un&&!zn||Ge&&!zn||jn(null,wn,"reset")},[wn,jn,un,gr.value,Ge]);const Br=en&&Mr.length>0&&!Ze,Hr=useEventCallback(zn=>{zn===-1?br.current.focus():$r.querySelector(`[data-tag-index="${zn}"]`).focus()});reactExports.useEffect(()=>{Me&&Ir>wn.length-1&&(zr(-1),Hr(-1))},[wn,Me,Ir,Hr]);function Kr(zn,Gn){if(!_r.current||zn<0||zn>=Mr.length)return-1;let di=zn;for(;;){const hi=_r.current.querySelector(`[data-option-index="${di}"]`),Ei=Ue?!1:!hi||hi.disabled||hi.getAttribute("aria-disabled")==="true";if(hi&&hi.hasAttribute("tabindex")&&!Ei)return di;if(Gn==="next"?di=(di+1)%Mr.length:di=(di-1+Mr.length)%Mr.length,di===zn)return-1}}const Dr=useEventCallback(({event:zn,index:Gn,reason:di="auto"})=>{if(tn.current=Gn,Gn===-1?br.current.removeAttribute("aria-activedescendant"):br.current.setAttribute("aria-activedescendant",`${fr}-option-${Gn}`),He&&He(zn,Gn===-1?null:Mr[Gn],di),!_r.current)return;const hi=_r.current.querySelector(`[role="option"].${xe}-focused`);hi&&(hi.classList.remove(`${xe}-focused`),hi.classList.remove(`${xe}-focusVisible`));let Ei=_r.current;if(_r.current.getAttribute("role")!=="listbox"&&(Ei=_r.current.parentElement.querySelector('[role="listbox"]')),!Ei)return;if(Gn===-1){Ei.scrollTop=0;return}const _i=_r.current.querySelector(`[data-option-index="${Gn}"]`);if(_i&&(_i.classList.add(`${xe}-focused`),di==="keyboard"&&_i.classList.add(`${xe}-focusVisible`),Ei.scrollHeight>Ei.clientHeight&&di!=="mouse"&&di!=="touch")){const Mi=_i,ji=Ei.clientHeight+Ei.scrollTop,no=Mi.offsetTop+Mi.offsetHeight;no>ji?Ei.scrollTop=no-Ei.clientHeight:Mi.offsetTop-Mi.offsetHeight*(nr?1.3:0)<Ei.scrollTop&&(Ei.scrollTop=Mi.offsetTop-Mi.offsetHeight*(nr?1.3:0))}}),qr=useEventCallback(({event:zn,diff:Gn,direction:di="next",reason:hi="auto"})=>{if(!pn)return;const _i=Kr((()=>{const Mi=Mr.length-1;if(Gn==="reset")return dn;if(Gn==="start")return 0;if(Gn==="end")return Mi;const ji=tn.current+Gn;return ji<0?ji===-1&&ar?-1:qe&&tn.current!==-1||Math.abs(Gn)>1?0:Mi:ji>Mi?ji===Mi+1&&ar?-1:qe||Math.abs(Gn)>1?Mi:0:ji})(),di);if(Dr({index:_i,reason:hi,event:zn}),Ee&&Gn!=="reset")if(_i===-1)br.current.value=Vr;else{const Mi=Ar(Mr[_i]);br.current.value=Mi,Mi.toLowerCase().indexOf(Vr.toLowerCase())===0&&Vr.length>0&&br.current.setSelectionRange(Vr.length,Mi.length)}}),Ur=()=>{const zn=(Gn,di)=>{const hi=Gn?Ar(Gn):"",Ei=di?Ar(di):"";return hi===Ei};if(tn.current!==-1&&gr.filteredOptions&&gr.filteredOptions.length!==Mr.length&&gr.inputValue===Vr&&(Me?wn.length===gr.value.length&&gr.value.every((Gn,di)=>Ar(wn[di])===Ar(Gn)):zn(gr.value,wn))){const Gn=gr.filteredOptions[tn.current];if(Gn)return Mr.findIndex(di=>Ar(di)===Ar(Gn))}return-1},Bn=reactExports.useCallback(()=>{if(!pn)return;const zn=Ur();if(zn!==-1){tn.current=zn;return}const Gn=Me?wn[0]:wn;if(Mr.length===0||Gn==null){qr({diff:"reset"});return}if(_r.current){if(Gn!=null){const di=Mr[tn.current];if(Me&&di&&wn.findIndex(Ei=>Ke(di,Ei))!==-1)return;const hi=Mr.findIndex(Ei=>Ke(Ei,Gn));hi===-1?qr({diff:"reset"}):Dr({index:hi});return}if(tn.current>=Mr.length-1){Dr({index:Mr.length-1});return}Dr({index:tn.current})}},[Mr.length,Me?!1:wn,Qe,qr,Dr,pn,Vr,Me]),In=useEventCallback(zn=>{setRef(_r,zn),zn&&Bn()});reactExports.useEffect(()=>{Bn()},[Bn]);const Rr=zn=>{en||(Jr(!0),rn(!0),Ye&&Ye(zn))},Mn=(zn,Gn)=>{en&&(Jr(!1),De&&De(zn,Gn))},En=(zn,Gn,di,hi)=>{if(Me){if(wn.length===Gn.length&&wn.every((Ei,_i)=>Ei===Gn[_i]))return}else if(wn===Gn)return;je&&je(zn,Gn,di,hi),an(Gn)},Yr=reactExports.useRef(!1),Sn=(zn,Gn,di="selectOption",hi="options")=>{let Ei=di,_i=Gn;if(Me){_i=Array.isArray(wn)?wn.slice():[];const Mi=_i.findIndex(ji=>Ke(Gn,ji));Mi===-1?_i.push(Gn):hi!=="freeSolo"&&(_i.splice(Mi,1),Ei="removeOption")}jn(zn,_i,Ei),En(zn,_i,Ei,{option:Gn}),!$e&&(!zn||!zn.ctrlKey&&!zn.metaKey)&&Mn(zn,Ei),(_e===!0||_e==="touch"&&Yr.current||_e==="mouse"&&!Yr.current)&&br.current.blur()};function xn(zn,Gn){if(zn===-1)return-1;let di=zn;for(;;){if(Gn==="next"&&di===wn.length||Gn==="previous"&&di===-1)return-1;const hi=$r.querySelector(`[data-tag-index="${di}"]`);if(!hi||!hi.hasAttribute("tabindex")||hi.disabled||hi.getAttribute("aria-disabled")==="true")di+=Gn==="next"?1:-1;else return di}}const On=(zn,Gn)=>{if(!Me)return;Vr===""&&Mn(zn,"toggleInput");let di=Ir;Ir===-1?Vr===""&&Gn==="previous"&&(di=wn.length-1):(di+=Gn==="next"?1:-1,di<0&&(di=0),di===wn.length&&(di=-1)),di=xn(di,Gn),zr(di),Hr(di)},Nn=zn=>{vr.current=!0,Rn(""),Ve&&Ve(zn,"","clear"),En(zn,Me?[]:null,"clear")},kr=zn=>Gn=>{if(zn.onKeyDown&&zn.onKeyDown(Gn),!Gn.defaultMuiPrevented&&(Ir!==-1&&!["ArrowLeft","ArrowRight"].includes(Gn.key)&&(zr(-1),Hr(-1)),Gn.which!==229))switch(Gn.key){case"Home":pn&&sr&&(Gn.preventDefault(),qr({diff:"start",direction:"next",reason:"keyboard",event:Gn}));break;case"End":pn&&sr&&(Gn.preventDefault(),qr({diff:"end",direction:"previous",reason:"keyboard",event:Gn}));break;case"PageUp":Gn.preventDefault(),qr({diff:-5,direction:"previous",reason:"keyboard",event:Gn}),Rr(Gn);break;case"PageDown":Gn.preventDefault(),qr({diff:pageSize,direction:"next",reason:"keyboard",event:Gn}),Rr(Gn);break;case"ArrowDown":Gn.preventDefault(),qr({diff:1,direction:"next",reason:"keyboard",event:Gn}),Rr(Gn);break;case"ArrowUp":Gn.preventDefault(),qr({diff:-1,direction:"previous",reason:"keyboard",event:Gn}),Rr(Gn);break;case"ArrowLeft":On(Gn,"previous");break;case"ArrowRight":On(Gn,"next");break;case"Enter":if(tn.current!==-1&&pn){const di=Mr[tn.current],hi=Xe?Xe(di):!1;if(Gn.preventDefault(),hi)return;Sn(Gn,di,"selectOption"),Ee&&br.current.setSelectionRange(br.current.value.length,br.current.value.length)}else Ge&&Vr!==""&&cn===!1&&(Me&&Gn.preventDefault(),Sn(Gn,Vr,"createOption","freeSolo"));break;case"Escape":pn?(Gn.preventDefault(),Gn.stopPropagation(),Mn(Gn,"escape")):Be&&(Vr!==""||Me&&wn.length>0)&&(Gn.preventDefault(),Gn.stopPropagation(),Nn(Gn));break;case"Backspace":if(Me&&!Ze&&Vr===""&&wn.length>0){const di=Ir===-1?wn.length-1:Ir,hi=wn.slice();hi.splice(di,1),En(Gn,hi,"removeOption",{option:wn[di]})}break;case"Delete":if(Me&&!Ze&&Vr===""&&wn.length>0&&Ir!==-1){const di=Ir,hi=wn.slice();hi.splice(di,1),En(Gn,hi,"removeOption",{option:wn[di]})}break}},Er=zn=>{sn(!0),We&&!vr.current&&Rr(zn)},Tr=zn=>{if(Ae(_r)){br.current.focus();return}sn(!1),yr.current=!0,vr.current=!1,Ce&&tn.current!==-1&&pn?Sn(zn,Mr[tn.current],"blur"):Ce&&Ge&&Vr!==""?Sn(zn,Vr,"blur","freeSolo"):Ie&&jn(zn,wn,"blur"),Mn(zn,"blur")},Qr=zn=>{const Gn=zn.target.value;Vr!==Gn&&(Rn(Gn),rn(!1),Ve&&Ve(zn,Gn,"input")),Gn===""?!ke&&!Me&&En(zn,null,"clear"):Rr(zn)},Zr=zn=>{const Gn=Number(zn.currentTarget.getAttribute("data-option-index"));tn.current!==Gn&&Dr({event:zn,index:Gn,reason:"mouse"})},yn=zn=>{Dr({event:zn,index:Number(zn.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Yr.current=!0},An=zn=>{const Gn=Number(zn.currentTarget.getAttribute("data-option-index"));Sn(zn,Mr[Gn],"selectOption"),Yr.current=!1},Tn=zn=>Gn=>{const di=wn.slice();di.splice(zn,1),En(Gn,di,"removeOption",{option:wn[zn]})},ti=zn=>{en?Mn(zn,"toggleInput"):Rr(zn)},Fn=zn=>{zn.currentTarget.contains(zn.target)&&zn.target.getAttribute("id")!==fr&&zn.preventDefault()},$n=zn=>{zn.currentTarget.contains(zn.target)&&(br.current.focus(),ir&&yr.current&&br.current.selectionEnd-br.current.selectionStart===0&&br.current.select(),yr.current=!1)},Zn=zn=>{!Oe&&(Vr===""||!en)&&ti(zn)};let Dn=Ge&&Vr.length>0;Dn=Dn||(Me?wn.length>0:wn!==null);let Wn=Mr;return nr&&(Wn=Mr.reduce((zn,Gn,di)=>{const hi=nr(Gn);return zn.length>0&&zn[zn.length-1].group===hi?zn[zn.length-1].options.push(Gn):zn.push({key:di,index:di,group:hi,options:[Gn]}),zn},[])),Oe&&un&&Tr(),{getRootProps:(zn={})=>({...zn,onKeyDown:kr(zn),onMouseDown:Fn,onClick:$n}),getInputLabelProps:()=>({id:`${fr}-label`,htmlFor:fr}),getInputProps:()=>({id:fr,value:Vr,onBlur:Tr,onFocus:Er,onChange:Qr,onMouseDown:Zn,"aria-activedescendant":pn?"":null,"aria-autocomplete":Ee?"both":"list","aria-controls":Br?`${fr}-listbox`:void 0,"aria-expanded":Br,autoComplete:"off",ref:br,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:Oe}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Nn}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:ti}),getTagProps:({index:zn})=>({key:zn,"data-tag-index":zn,tabIndex:-1,...!Ze&&{onDelete:Tn(zn)}}),getListboxProps:()=>({role:"listbox",id:`${fr}-listbox`,"aria-labelledby":`${fr}-label`,ref:In,onMouseDown:zn=>{zn.preventDefault()}}),getOptionProps:({index:zn,option:Gn})=>{const di=(Me?wn:[wn]).some(Ei=>Ei!=null&&Ke(Gn,Ei)),hi=Xe?Xe(Gn):!1;return{key:(er==null?void 0:er(Gn))??Ar(Gn),tabIndex:-1,role:"option",id:`${fr}-option-${zn}`,onMouseMove:Zr,onClick:An,onTouchStart:yn,"data-option-index":zn,"aria-disabled":hi,"aria-selected":di}},id:fr,inputValue:Vr,value:wn,dirty:Dn,expanded:pn&&$r,popupOpen:pn,focused:un||Ir!==-1,anchorEl:$r,setAnchorEl:Fr,focusedTag:Ir,groupedOptions:Wn}}function getListSubheaderUtilityClass(t){return generateUtilityClass("MuiListSubheader",t)}generateUtilityClasses("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const useUtilityClasses$1i=t=>{const{classes:Ae,color:xe,disableGutters:Ee,inset:Se,disableSticky:Ce}=t,_e={root:["root",xe!=="default"&&`color${capitalize$1(xe)}`,!Ee&&"gutters",Se&&"inset",!Ce&&"sticky"]};return composeClasses(_e,getListSubheaderUtilityClass,Ae)},ListSubheaderRoot=styled("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,xe.color!=="default"&&Ae[`color${capitalize$1(xe.color)}`],!xe.disableGutters&&Ae.gutters,xe.inset&&Ae.inset,!xe.disableSticky&&Ae.sticky]}})(memoTheme(({theme:t})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(t.vars||t).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:Ae})=>!Ae.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:Ae})=>Ae.inset,style:{paddingLeft:72}},{props:({ownerState:Ae})=>!Ae.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper}}]}))),ListSubheader=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiListSubheader"}),{className:Se,color:Ce="default",component:_e="li",disableGutters:Ie=!1,disableSticky:Be=!1,inset:Te=!1,...Pe}=Ee,ke={...Ee,color:Ce,component:_e,disableGutters:Ie,disableSticky:Be,inset:Te},$e=useUtilityClasses$1i(ke);return jsxRuntimeExports.jsx(ListSubheaderRoot,{as:_e,className:clsx($e.root,Se),ref:xe,ownerState:ke,...Pe})});ListSubheader&&(ListSubheader.muiSkipListHighlight=!0);const CancelIcon$1=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function getChipUtilityClass(t){return generateUtilityClass("MuiChip",t)}const chipClasses=generateUtilityClasses("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),useUtilityClasses$1h=t=>{const{classes:Ae,disabled:xe,size:Ee,color:Se,iconColor:Ce,onDelete:_e,clickable:Ie,variant:Be}=t,Te={root:["root",Be,xe&&"disabled",`size${capitalize$1(Ee)}`,`color${capitalize$1(Se)}`,Ie&&"clickable",Ie&&`clickableColor${capitalize$1(Se)}`,_e&&"deletable",_e&&`deletableColor${capitalize$1(Se)}`,`${Be}${capitalize$1(Se)}`],label:["label",`label${capitalize$1(Ee)}`],avatar:["avatar",`avatar${capitalize$1(Ee)}`,`avatarColor${capitalize$1(Se)}`],icon:["icon",`icon${capitalize$1(Ee)}`,`iconColor${capitalize$1(Ce)}`],deleteIcon:["deleteIcon",`deleteIcon${capitalize$1(Ee)}`,`deleteIconColor${capitalize$1(Se)}`,`deleteIcon${capitalize$1(Be)}Color${capitalize$1(Se)}`]};return composeClasses(Te,getChipUtilityClass,Ae)},ChipRoot=styled("div",{name:"MuiChip",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t,{color:Ee,iconColor:Se,clickable:Ce,onDelete:_e,size:Ie,variant:Be}=xe;return[{[`& .${chipClasses.avatar}`]:Ae.avatar},{[`& .${chipClasses.avatar}`]:Ae[`avatar${capitalize$1(Ie)}`]},{[`& .${chipClasses.avatar}`]:Ae[`avatarColor${capitalize$1(Ee)}`]},{[`& .${chipClasses.icon}`]:Ae.icon},{[`& .${chipClasses.icon}`]:Ae[`icon${capitalize$1(Ie)}`]},{[`& .${chipClasses.icon}`]:Ae[`iconColor${capitalize$1(Se)}`]},{[`& .${chipClasses.deleteIcon}`]:Ae.deleteIcon},{[`& .${chipClasses.deleteIcon}`]:Ae[`deleteIcon${capitalize$1(Ie)}`]},{[`& .${chipClasses.deleteIcon}`]:Ae[`deleteIconColor${capitalize$1(Ee)}`]},{[`& .${chipClasses.deleteIcon}`]:Ae[`deleteIcon${capitalize$1(Be)}Color${capitalize$1(Ee)}`]},Ae.root,Ae[`size${capitalize$1(Ie)}`],Ae[`color${capitalize$1(Ee)}`],Ce&&Ae.clickable,Ce&&Ee!=="default"&&Ae[`clickableColor${capitalize$1(Ee)})`],_e&&Ae.deletable,_e&&Ee!=="default"&&Ae[`deletableColor${capitalize$1(Ee)}`],Ae[Be],Ae[`${Be}${capitalize$1(Ee)}`]]}})(memoTheme(({theme:t})=>{const Ae=t.palette.mode==="light"?t.palette.grey[700]:t.palette.grey[300];return{maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${chipClasses.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${chipClasses.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:Ae,fontSize:t.typography.pxToRem(12)},[`& .${chipClasses.avatarColorPrimary}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},[`& .${chipClasses.avatarColorSecondary}`]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},[`& .${chipClasses.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},[`& .${chipClasses.icon}`]:{marginLeft:5,marginRight:-6},[`& .${chipClasses.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.26)`:alpha$3(t.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.4)`:alpha$3(t.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${chipClasses.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${chipClasses.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(t.palette).filter(createSimplePaletteValueFilter(["contrastText"])).map(([xe])=>({props:{color:xe},style:{backgroundColor:(t.vars||t).palette[xe].main,color:(t.vars||t).palette[xe].contrastText,[`& .${chipClasses.deleteIcon}`]:{color:t.vars?`rgba(${t.vars.palette[xe].contrastTextChannel} / 0.7)`:alpha$3(t.palette[xe].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[xe].contrastText}}}})),{props:xe=>xe.iconColor===xe.color,style:{[`& .${chipClasses.icon}`]:{color:t.vars?t.vars.palette.Chip.defaultIconColor:Ae}}},{props:xe=>xe.iconColor===xe.color&&xe.color!=="default",style:{[`& .${chipClasses.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${chipClasses.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:alpha$3(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}}},...Object.entries(t.palette).filter(createSimplePaletteValueFilter(["dark"])).map(([xe])=>({props:{color:xe,onDelete:!0},style:{[`&.${chipClasses.focusVisible}`]:{background:(t.vars||t).palette[xe].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:alpha$3(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)},[`&.${chipClasses.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:alpha$3(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},"&:active":{boxShadow:(t.vars||t).shadows[1]}}},...Object.entries(t.palette).filter(createSimplePaletteValueFilter(["dark"])).map(([xe])=>({props:{color:xe,clickable:!0},style:{[`&:hover, &.${chipClasses.focusVisible}`]:{backgroundColor:(t.vars||t).palette[xe].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:t.vars?`1px solid ${t.vars.palette.Chip.defaultBorder}`:`1px solid ${t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[700]}`,[`&.${chipClasses.clickable}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${chipClasses.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`& .${chipClasses.avatar}`]:{marginLeft:4},[`& .${chipClasses.avatarSmall}`]:{marginLeft:2},[`& .${chipClasses.icon}`]:{marginLeft:4},[`& .${chipClasses.iconSmall}`]:{marginLeft:2},[`& .${chipClasses.deleteIcon}`]:{marginRight:5},[`& .${chipClasses.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(t.palette).filter(createSimplePaletteValueFilter()).map(([xe])=>({props:{variant:"outlined",color:xe},style:{color:(t.vars||t).palette[xe].main,border:`1px solid ${t.vars?`rgba(${t.vars.palette[xe].mainChannel} / 0.7)`:alpha$3(t.palette[xe].main,.7)}`,[`&.${chipClasses.clickable}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[xe].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:alpha$3(t.palette[xe].main,t.palette.action.hoverOpacity)},[`&.${chipClasses.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[xe].mainChannel} / ${t.vars.palette.action.focusOpacity})`:alpha$3(t.palette[xe].main,t.palette.action.focusOpacity)},[`& .${chipClasses.deleteIcon}`]:{color:t.vars?`rgba(${t.vars.palette[xe].mainChannel} / 0.7)`:alpha$3(t.palette[xe].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[xe].main}}}}))]}})),ChipLabel=styled("span",{name:"MuiChip",slot:"Label",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t,{size:Ee}=xe;return[Ae.label,Ae[`label${capitalize$1(Ee)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function isDeleteKeyboardEvent(t){return t.key==="Backspace"||t.key==="Delete"}const Chip=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiChip"}),{avatar:Se,className:Ce,clickable:_e,color:Ie="default",component:Be,deleteIcon:Te,disabled:Pe=!1,icon:ke,label:$e,onClick:Oe,onDelete:Ue,onKeyDown:qe,onKeyUp:ze,size:Qe="medium",variant:Ge="filled",tabIndex:Xe,skipFocusWhenDisabled:er=!1,...tr}=Ee,nr=reactExports.useRef(null),sr=useForkRef(nr,xe),dr=We=>{We.stopPropagation(),Ue&&Ue(We)},ar=We=>{We.currentTarget===We.target&&isDeleteKeyboardEvent(We)&&We.preventDefault(),qe&&qe(We)},lr=We=>{We.currentTarget===We.target&&Ue&&isDeleteKeyboardEvent(We)&&Ue(We),ze&&ze(We)},Ke=_e!==!1&&Oe?!0:_e,Me=Ke||Ue?ButtonBase:Be||"div",je={...Ee,component:Me,disabled:Pe,size:Qe,color:Ie,iconColor:reactExports.isValidElement(ke)&&ke.props.color||Ie,onDelete:!!Ue,clickable:Ke,variant:Ge},De=useUtilityClasses$1h(je),He=Me===ButtonBase?{component:Be||"div",focusVisibleClassName:De.focusVisible,...Ue&&{disableRipple:!0}}:{};let Ve=null;Ue&&(Ve=Te&&reactExports.isValidElement(Te)?reactExports.cloneElement(Te,{className:clsx(Te.props.className,De.deleteIcon),onClick:dr}):jsxRuntimeExports.jsx(CancelIcon$1,{className:clsx(De.deleteIcon),onClick:dr}));let Ye=null;Se&&reactExports.isValidElement(Se)&&(Ye=reactExports.cloneElement(Se,{className:clsx(De.avatar,Se.props.className)}));let St=null;return ke&&reactExports.isValidElement(ke)&&(St=reactExports.cloneElement(ke,{className:clsx(De.icon,ke.props.className)})),jsxRuntimeExports.jsxs(ChipRoot,{as:Me,className:clsx(De.root,Ce),disabled:Ke&&Pe?!0:void 0,onClick:Oe,onKeyDown:ar,onKeyUp:lr,ref:sr,tabIndex:er&&Pe?-1:Xe,ownerState:je,...He,...tr,children:[Ye||St,jsxRuntimeExports.jsx(ChipLabel,{className:clsx(De.label),ownerState:je,children:$e}),Ve]})});function getAutocompleteUtilityClass(t){return generateUtilityClass("MuiAutocomplete",t)}const autocompleteClasses=generateUtilityClasses("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var _ClearIcon,_ArrowDropDownIcon;const useUtilityClasses$1g=t=>{const{classes:Ae,disablePortal:xe,expanded:Ee,focused:Se,fullWidth:Ce,hasClearIcon:_e,hasPopupIcon:Ie,inputFocused:Be,popupOpen:Te,size:Pe}=t,ke={root:["root",Ee&&"expanded",Se&&"focused",Ce&&"fullWidth",_e&&"hasClearIcon",Ie&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",Be&&"inputFocused"],tag:["tag",`tagSize${capitalize$1(Pe)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",Te&&"popupIndicatorOpen"],popper:["popper",xe&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return composeClasses(ke,getAutocompleteUtilityClass,Ae)},AutocompleteRoot=styled("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t,{fullWidth:Ee,hasClearIcon:Se,hasPopupIcon:Ce,inputFocused:_e,size:Ie}=xe;return[{[`& .${autocompleteClasses.tag}`]:Ae.tag},{[`& .${autocompleteClasses.tag}`]:Ae[`tagSize${capitalize$1(Ie)}`]},{[`& .${autocompleteClasses.inputRoot}`]:Ae.inputRoot},{[`& .${autocompleteClasses.input}`]:Ae.input},{[`& .${autocompleteClasses.input}`]:_e&&Ae.inputFocused},Ae.root,Ee&&Ae.fullWidth,Ce&&Ae.hasPopupIcon,Se&&Ae.hasClearIcon]}})({[`&.${autocompleteClasses.focused} .${autocompleteClasses.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${autocompleteClasses.clearIndicator}`]:{visibility:"visible"}},[`& .${autocompleteClasses.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${autocompleteClasses.inputRoot}`]:{[`.${autocompleteClasses.hasPopupIcon}&, .${autocompleteClasses.hasClearIcon}&`]:{paddingRight:30},[`.${autocompleteClasses.hasPopupIcon}.${autocompleteClasses.hasClearIcon}&`]:{paddingRight:56},[`& .${autocompleteClasses.input}`]:{width:0,minWidth:30}},[`& .${inputClasses.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${inputClasses.root}.${inputBaseClasses.sizeSmall}`]:{[`& .${inputClasses.input}`]:{padding:"2px 4px 3px 0"}},[`& .${outlinedInputClasses.root}`]:{padding:9,[`.${autocompleteClasses.hasPopupIcon}&, .${autocompleteClasses.hasClearIcon}&`]:{paddingRight:39},[`.${autocompleteClasses.hasPopupIcon}.${autocompleteClasses.hasClearIcon}&`]:{paddingRight:65},[`& .${autocompleteClasses.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${autocompleteClasses.endAdornment}`]:{right:9}},[`& .${outlinedInputClasses.root}.${inputBaseClasses.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${autocompleteClasses.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${filledInputClasses.root}`]:{paddingTop:19,paddingLeft:8,[`.${autocompleteClasses.hasPopupIcon}&, .${autocompleteClasses.hasClearIcon}&`]:{paddingRight:39},[`.${autocompleteClasses.hasPopupIcon}.${autocompleteClasses.hasClearIcon}&`]:{paddingRight:65},[`& .${filledInputClasses.input}`]:{padding:"7px 4px"},[`& .${autocompleteClasses.endAdornment}`]:{right:9}},[`& .${filledInputClasses.root}.${inputBaseClasses.sizeSmall}`]:{paddingBottom:1,[`& .${filledInputClasses.input}`]:{padding:"2.5px 4px"}},[`& .${inputBaseClasses.hiddenLabel}`]:{paddingTop:8},[`& .${filledInputClasses.root}.${inputBaseClasses.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${autocompleteClasses.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${filledInputClasses.root}.${inputBaseClasses.hiddenLabel}.${inputBaseClasses.sizeSmall}`]:{[`& .${autocompleteClasses.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${autocompleteClasses.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${autocompleteClasses.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${autocompleteClasses.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${autocompleteClasses.inputRoot}`]:{flexWrap:"wrap"}}}]}),AutocompleteEndAdornment=styled("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(t,Ae)=>Ae.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),AutocompleteClearIndicator=styled(IconButton,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(t,Ae)=>Ae.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),AutocompletePopupIndicator=styled(IconButton,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.popupIndicator,xe.popupOpen&&Ae.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),AutocompletePopper=styled(Popper,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[{[`& .${autocompleteClasses.option}`]:Ae.option},Ae.popper,xe.disablePortal&&Ae.popperDisablePortal]}})(memoTheme(({theme:t})=>({zIndex:(t.vars||t).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),AutocompletePaper=styled(Paper,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(t,Ae)=>Ae.paper})(memoTheme(({theme:t})=>({...t.typography.body1,overflow:"auto"}))),AutocompleteLoading=styled("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(t,Ae)=>Ae.loading})(memoTheme(({theme:t})=>({color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}))),AutocompleteNoOptions=styled("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(t,Ae)=>Ae.noOptions})(memoTheme(({theme:t})=>({color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}))),AutocompleteListbox=styled("ul",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(t,Ae)=>Ae.listbox})(memoTheme(({theme:t})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${autocompleteClasses.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[t.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${autocompleteClasses.focused}`]:{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${autocompleteClasses.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:alpha$3(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${autocompleteClasses.focused}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:alpha$3(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},[`&.${autocompleteClasses.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:alpha$3(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}}}}))),AutocompleteGroupLabel=styled(ListSubheader,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(t,Ae)=>Ae.groupLabel})(memoTheme(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,top:-8}))),AutocompleteGroupUl=styled("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(t,Ae)=>Ae.groupUl})({padding:0,[`& .${autocompleteClasses.option}`]:{paddingLeft:24}}),Autocomplete=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiAutocomplete"}),{autoComplete:Se=!1,autoHighlight:Ce=!1,autoSelect:_e=!1,blurOnSelect:Ie=!1,ChipProps:Be,className:Te,clearIcon:Pe=_ClearIcon||(_ClearIcon=jsxRuntimeExports.jsx(ClearIcon$1,{fontSize:"small"})),clearOnBlur:ke=!Ee.freeSolo,clearOnEscape:$e=!1,clearText:Oe="Clear",closeText:Ue="Close",componentsProps:qe,defaultValue:ze=Ee.multiple?[]:null,disableClearable:Qe=!1,disableCloseOnSelect:Ge=!1,disabled:Xe=!1,disabledItemsFocusable:er=!1,disableListWrap:tr=!1,disablePortal:nr=!1,filterOptions:sr,filterSelectedOptions:dr=!1,forcePopupIcon:ar="auto",freeSolo:lr=!1,fullWidth:Ke=!1,getLimitTagsText:Me=yi=>`+${yi}`,getOptionDisabled:je,getOptionKey:De,getOptionLabel:He,isOptionEqualToValue:Ve,groupBy:Ye,handleHomeEndKeys:St=!Ee.freeSolo,id:We,includeInputInList:Fe=!1,inputValue:Ze,limitTags:ir=-1,ListboxComponent:ur,ListboxProps:fr,loading:Ar=!1,loadingText:vr="Loading…",multiple:yr=!1,noOptionsText:br="No options",onChange:_r,onClose:$r,onHighlightChange:Fr,onInputChange:Ir,onOpen:zr,open:dn,openOnFocus:tn=!1,openText:Gr="Open",options:wn,PaperComponent:an,PopperComponent:Vr,popupIcon:Rn=_ArrowDropDownIcon||(_ArrowDropDownIcon=jsxRuntimeExports.jsx(ArrowDropDownIcon,{})),readOnly:un=!1,renderGroup:sn,renderInput:jn,renderOption:en,renderTags:Jr,selectOnFocus:nn=!Ee.freeSolo,size:rn="medium",slots:cn={},slotProps:pn={},value:Mr,...gr}=Ee,{getRootProps:Br,getInputProps:Hr,getInputLabelProps:Kr,getPopupIndicatorProps:Dr,getClearProps:qr,getTagProps:Ur,getListboxProps:Bn,getOptionProps:In,value:Rr,dirty:Mn,expanded:En,id:Yr,popupOpen:Sn,focused:xn,focusedTag:On,anchorEl:Nn,setAnchorEl:kr,inputValue:Er,groupedOptions:Tr}=useAutocomplete({...Ee,componentName:"Autocomplete"}),Qr=!Qe&&!Xe&&Mn&&!un,Zr=(!lr||ar===!0)&&ar!==!1,{onMouseDown:yn}=Hr(),{ref:An,...Tn}=Bn(),Fn=He||(yi=>yi.label??yi),$n={...Ee,disablePortal:nr,expanded:En,focused:xn,fullWidth:Ke,getOptionLabel:Fn,hasClearIcon:Qr,hasPopupIcon:Zr,inputFocused:On===-1,popupOpen:Sn,size:rn},Zn=useUtilityClasses$1g($n),Dn={slots:{paper:an,popper:Vr,...cn},slotProps:{chip:Be,listbox:fr,...qe,...pn}},[Wn,zn]=useSlot("listbox",{elementType:AutocompleteListbox,externalForwardedProps:Dn,ownerState:$n,className:Zn.listbox,additionalProps:Tn,ref:An}),[Gn,di]=useSlot("paper",{elementType:Paper,externalForwardedProps:Dn,ownerState:$n,className:Zn.paper}),[hi,Ei]=useSlot("popper",{elementType:Popper,externalForwardedProps:Dn,ownerState:$n,className:Zn.popper,additionalProps:{disablePortal:nr,style:{width:Nn?Nn.clientWidth:null},role:"presentation",anchorEl:Nn,open:Sn}});let _i;if(yr&&Rr.length>0){const yi=Di=>({className:Zn.tag,disabled:Xe,...Ur(Di)});Jr?_i=Jr(Rr,yi,$n):_i=Rr.map((Di,Hi)=>{const{key:Wi,...Ki}=yi({index:Hi});return jsxRuntimeExports.jsx(Chip,{label:Fn(Di),size:rn,...Ki,...Dn.slotProps.chip},Wi)})}if(ir>-1&&Array.isArray(_i)){const yi=_i.length-ir;!xn&&yi>0&&(_i=_i.splice(0,ir),_i.push(jsxRuntimeExports.jsx("span",{className:Zn.tag,children:Me(yi)},_i.length)))}const ji=sn||(yi=>jsxRuntimeExports.jsxs("li",{children:[jsxRuntimeExports.jsx(AutocompleteGroupLabel,{className:Zn.groupLabel,ownerState:$n,component:"div",children:yi.group}),jsxRuntimeExports.jsx(AutocompleteGroupUl,{className:Zn.groupUl,ownerState:$n,children:yi.children})]},yi.key)),Li=en||((yi,Di)=>{const{key:Hi,...Wi}=yi;return jsxRuntimeExports.jsx("li",{...Wi,children:Fn(Di)},Hi)}),oo=(yi,Di)=>{const Hi=In({option:yi,index:Di});return Li({...Hi,className:Zn.option},yi,{selected:Hi["aria-selected"],index:Di,inputValue:Er},$n)},Vi=Dn.slotProps.clearIndicator,eo=Dn.slotProps.popupIndicator;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(AutocompleteRoot,{ref:xe,className:clsx(Zn.root,Te),ownerState:$n,...Br(gr),children:jn({id:Yr,disabled:Xe,fullWidth:!0,size:rn==="small"?"small":void 0,InputLabelProps:Kr(),InputProps:{ref:kr,className:Zn.inputRoot,startAdornment:_i,onMouseDown:yi=>{yi.target===yi.currentTarget&&yn(yi)},...(Qr||Zr)&&{endAdornment:jsxRuntimeExports.jsxs(AutocompleteEndAdornment,{className:Zn.endAdornment,ownerState:$n,children:[Qr?jsxRuntimeExports.jsx(AutocompleteClearIndicator,{...qr(),"aria-label":Oe,title:Oe,ownerState:$n,...Vi,className:clsx(Zn.clearIndicator,Vi==null?void 0:Vi.className),children:Pe}):null,Zr?jsxRuntimeExports.jsx(AutocompletePopupIndicator,{...Dr(),disabled:Xe,"aria-label":Sn?Ue:Gr,title:Sn?Ue:Gr,ownerState:$n,...eo,className:clsx(Zn.popupIndicator,eo==null?void 0:eo.className),children:Rn}):null]})}},inputProps:{className:Zn.input,disabled:Xe,readOnly:un,...Hr()}})}),Nn?jsxRuntimeExports.jsx(AutocompletePopper,{as:hi,...Ei,children:jsxRuntimeExports.jsxs(AutocompletePaper,{as:Gn,...di,children:[Ar&&Tr.length===0?jsxRuntimeExports.jsx(AutocompleteLoading,{className:Zn.loading,ownerState:$n,children:vr}):null,Tr.length===0&&!lr&&!Ar?jsxRuntimeExports.jsx(AutocompleteNoOptions,{className:Zn.noOptions,ownerState:$n,role:"presentation",onMouseDown:yi=>{yi.preventDefault()},children:br}):null,Tr.length>0?jsxRuntimeExports.jsx(Wn,{as:ur,...zn,children:Tr.map((yi,Di)=>Ye?ji({key:yi.key,group:yi.group,children:yi.options.map((Hi,Wi)=>oo(Hi,yi.index+Wi))}):oo(yi,Di))}):null]})}):null]})});function useBadge(t){const{badgeContent:Ae,invisible:xe=!1,max:Ee=99,showZero:Se=!1}=t,Ce=usePreviousProps({badgeContent:Ae,max:Ee});let _e=xe;xe===!1&&Ae===0&&!Se&&(_e=!0);const{badgeContent:Ie,max:Be=Ee}=_e?Ce:t,Te=Ie&&Number(Ie)>Be?`${Be}+`:Ie;return{badgeContent:Ie,invisible:_e,max:Be,displayValue:Te}}function getBadgeUtilityClass(t){return generateUtilityClass("MuiBadge",t)}const badgeClasses=generateUtilityClasses("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),RADIUS_STANDARD=10,RADIUS_DOT=4,useUtilityClasses$1f=t=>{const{color:Ae,anchorOrigin:xe,invisible:Ee,overlap:Se,variant:Ce,classes:_e={}}=t,Ie={root:["root"],badge:["badge",Ce,Ee&&"invisible",`anchorOrigin${capitalize$1(xe.vertical)}${capitalize$1(xe.horizontal)}`,`anchorOrigin${capitalize$1(xe.vertical)}${capitalize$1(xe.horizontal)}${capitalize$1(Se)}`,`overlap${capitalize$1(Se)}`,Ae!=="default"&&`color${capitalize$1(Ae)}`]};return composeClasses(Ie,getBadgeUtilityClass,_e)},BadgeRoot=styled("span",{name:"MuiBadge",slot:"Root",overridesResolver:(t,Ae)=>Ae.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),BadgeBadge=styled("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.badge,Ae[xe.variant],Ae[`anchorOrigin${capitalize$1(xe.anchorOrigin.vertical)}${capitalize$1(xe.anchorOrigin.horizontal)}${capitalize$1(xe.overlap)}`],xe.color!=="default"&&Ae[`color${capitalize$1(xe.color)}`],xe.invisible&&Ae.invisible]}})(memoTheme(({theme:t})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:RADIUS_STANDARD*2,lineHeight:1,padding:"0 6px",height:RADIUS_STANDARD*2,borderRadius:RADIUS_STANDARD,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen}),variants:[...Object.entries(t.palette).filter(createSimplePaletteValueFilter(["contrastText"])).map(([Ae])=>({props:{color:Ae},style:{backgroundColor:(t.vars||t).palette[Ae].main,color:(t.vars||t).palette[Ae].contrastText}})),{props:{variant:"dot"},style:{borderRadius:RADIUS_DOT,height:RADIUS_DOT*2,minWidth:RADIUS_DOT*2,padding:0}},{props:({ownerState:Ae})=>Ae.anchorOrigin.vertical==="top"&&Ae.anchorOrigin.horizontal==="right"&&Ae.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${badgeClasses.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:Ae})=>Ae.anchorOrigin.vertical==="bottom"&&Ae.anchorOrigin.horizontal==="right"&&Ae.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${badgeClasses.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:Ae})=>Ae.anchorOrigin.vertical==="top"&&Ae.anchorOrigin.horizontal==="left"&&Ae.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${badgeClasses.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:Ae})=>Ae.anchorOrigin.vertical==="bottom"&&Ae.anchorOrigin.horizontal==="left"&&Ae.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${badgeClasses.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:Ae})=>Ae.anchorOrigin.vertical==="top"&&Ae.anchorOrigin.horizontal==="right"&&Ae.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${badgeClasses.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:Ae})=>Ae.anchorOrigin.vertical==="bottom"&&Ae.anchorOrigin.horizontal==="right"&&Ae.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${badgeClasses.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:Ae})=>Ae.anchorOrigin.vertical==="top"&&Ae.anchorOrigin.horizontal==="left"&&Ae.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${badgeClasses.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:Ae})=>Ae.anchorOrigin.vertical==="bottom"&&Ae.anchorOrigin.horizontal==="left"&&Ae.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${badgeClasses.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})}}]})));function getAnchorOrigin(t){return{vertical:(t==null?void 0:t.vertical)??"top",horizontal:(t==null?void 0:t.horizontal)??"right"}}const Badge=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiBadge"}),{anchorOrigin:Se,className:Ce,classes:_e,component:Ie,components:Be={},componentsProps:Te={},children:Pe,overlap:ke="rectangular",color:$e="default",invisible:Oe=!1,max:Ue=99,badgeContent:qe,slots:ze,slotProps:Qe,showZero:Ge=!1,variant:Xe="standard",...er}=Ee,{badgeContent:tr,invisible:nr,max:sr,displayValue:dr}=useBadge({max:Ue,invisible:Oe,badgeContent:qe,showZero:Ge}),ar=usePreviousProps({anchorOrigin:getAnchorOrigin(Se),color:$e,overlap:ke,variant:Xe,badgeContent:qe}),lr=nr||tr==null&&Xe!=="dot",{color:Ke=$e,overlap:Me=ke,anchorOrigin:je,variant:De=Xe}=lr?ar:Ee,He=getAnchorOrigin(je),Ve=De!=="dot"?dr:void 0,Ye={...Ee,badgeContent:tr,invisible:lr,max:sr,displayValue:Ve,showZero:Ge,anchorOrigin:He,color:Ke,overlap:Me,variant:De},St=useUtilityClasses$1f(Ye),We=(ze==null?void 0:ze.root)??Be.Root??BadgeRoot,Fe=(ze==null?void 0:ze.badge)??Be.Badge??BadgeBadge,Ze=(Qe==null?void 0:Qe.root)??Te.root,ir=(Qe==null?void 0:Qe.badge)??Te.badge,ur=useSlotProps({elementType:We,externalSlotProps:Ze,externalForwardedProps:er,additionalProps:{ref:xe,as:Ie},ownerState:Ye,className:clsx(Ze==null?void 0:Ze.className,St.root,Ce)}),fr=useSlotProps({elementType:Fe,externalSlotProps:ir,ownerState:Ye,className:clsx(St.badge,ir==null?void 0:ir.className)});return jsxRuntimeExports.jsxs(We,{...ur,children:[Pe,jsxRuntimeExports.jsx(Fe,{...fr,children:Ve})]})});function getCardUtilityClass(t){return generateUtilityClass("MuiCard",t)}generateUtilityClasses("MuiCard",["root"]);const useUtilityClasses$1e=t=>{const{classes:Ae}=t;return composeClasses({root:["root"]},getCardUtilityClass,Ae)},CardRoot=styled(Paper,{name:"MuiCard",slot:"Root",overridesResolver:(t,Ae)=>Ae.root})({overflow:"hidden"}),Card=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiCard"}),{className:Se,raised:Ce=!1,..._e}=Ee,Ie={...Ee,raised:Ce},Be=useUtilityClasses$1e(Ie);return jsxRuntimeExports.jsx(CardRoot,{className:clsx(Be.root,Se),elevation:Ce?8:void 0,ref:xe,ownerState:Ie,..._e})});function getCardContentUtilityClass(t){return generateUtilityClass("MuiCardContent",t)}generateUtilityClasses("MuiCardContent",["root"]);const useUtilityClasses$1d=t=>{const{classes:Ae}=t;return composeClasses({root:["root"]},getCardContentUtilityClass,Ae)},CardContentRoot=styled("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(t,Ae)=>Ae.root})({padding:16,"&:last-child":{paddingBottom:24}}),CardContent=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiCardContent"}),{className:Se,component:Ce="div",..._e}=Ee,Ie={...Ee,component:Ce},Be=useUtilityClasses$1d(Ie);return jsxRuntimeExports.jsx(CardContentRoot,{as:Ce,className:clsx(Be.root,Se),ownerState:Ie,ref:xe,..._e})});function getSwitchBaseUtilityClass(t){return generateUtilityClass("PrivateSwitchBase",t)}generateUtilityClasses("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const useUtilityClasses$1c=t=>{const{classes:Ae,checked:xe,disabled:Ee,edge:Se}=t,Ce={root:["root",xe&&"checked",Ee&&"disabled",Se&&`edge${capitalize$1(Se)}`],input:["input"]};return composeClasses(Ce,getSwitchBaseUtilityClass,Ae)},SwitchBaseRoot=styled(ButtonBase)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:t,ownerState:Ae})=>t==="start"&&Ae.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:t,ownerState:Ae})=>t==="end"&&Ae.size!=="small",style:{marginRight:-12}}]}),SwitchBaseInput=styled("input",{shouldForwardProp:rootShouldForwardProp})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),SwitchBase=reactExports.forwardRef(function(Ae,xe){const{autoFocus:Ee,checked:Se,checkedIcon:Ce,defaultChecked:_e,disabled:Ie,disableFocusRipple:Be=!1,edge:Te=!1,icon:Pe,id:ke,inputProps:$e,inputRef:Oe,name:Ue,onBlur:qe,onChange:ze,onFocus:Qe,readOnly:Ge,required:Xe=!1,tabIndex:er,type:tr,value:nr,slots:sr={},slotProps:dr={},...ar}=Ae,[lr,Ke]=useControlled({controlled:Se,default:!!_e,name:"SwitchBase",state:"checked"}),Me=useFormControl(),je=Ar=>{Qe&&Qe(Ar),Me&&Me.onFocus&&Me.onFocus(Ar)},De=Ar=>{qe&&qe(Ar),Me&&Me.onBlur&&Me.onBlur(Ar)},He=Ar=>{if(Ar.nativeEvent.defaultPrevented)return;const vr=Ar.target.checked;Ke(vr),ze&&ze(Ar,vr)};let Ve=Ie;Me&&typeof Ve>"u"&&(Ve=Me.disabled);const Ye=tr==="checkbox"||tr==="radio",St={...Ae,checked:lr,disabled:Ve,disableFocusRipple:Be,edge:Te},We=useUtilityClasses$1c(St),Fe={slots:sr,slotProps:{input:$e,...dr}},[Ze,ir]=useSlot("root",{ref:xe,elementType:SwitchBaseRoot,className:We.root,shouldForwardComponentProp:!0,externalForwardedProps:{...Fe,component:"span",...ar},getSlotProps:Ar=>({...Ar,onFocus:vr=>{var yr;(yr=Ar.onFocus)==null||yr.call(Ar,vr),je(vr)},onBlur:vr=>{var yr;(yr=Ar.onBlur)==null||yr.call(Ar,vr),De(vr)}}),ownerState:St,additionalProps:{centerRipple:!0,focusRipple:!Be,disabled:Ve,role:void 0,tabIndex:null}}),[ur,fr]=useSlot("input",{ref:Oe,elementType:SwitchBaseInput,className:We.input,externalForwardedProps:Fe,getSlotProps:Ar=>({onChange:vr=>{var yr;(yr=Ar.onChange)==null||yr.call(Ar,vr),He(vr)}}),ownerState:St,additionalProps:{autoFocus:Ee,checked:Se,defaultChecked:_e,disabled:Ve,id:Ye?ke:void 0,name:Ue,readOnly:Ge,required:Xe,tabIndex:er,type:tr,...tr==="checkbox"&&nr===void 0?{}:{value:nr}}});return jsxRuntimeExports.jsxs(Ze,{...ir,children:[jsxRuntimeExports.jsx(ur,{...fr}),lr?Ce:Pe]})}),CheckBoxOutlineBlankIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),CheckBoxIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),IndeterminateCheckBoxIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function getCheckboxUtilityClass(t){return generateUtilityClass("MuiCheckbox",t)}const checkboxClasses=generateUtilityClasses("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),useUtilityClasses$1b=t=>{const{classes:Ae,indeterminate:xe,color:Ee,size:Se}=t,Ce={root:["root",xe&&"indeterminate",`color${capitalize$1(Ee)}`,`size${capitalize$1(Se)}`]},_e=composeClasses(Ce,getCheckboxUtilityClass,Ae);return{...Ae,..._e}},CheckboxRoot=styled(SwitchBase,{shouldForwardProp:t=>rootShouldForwardProp(t)||t==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,xe.indeterminate&&Ae.indeterminate,Ae[`size${capitalize$1(xe.size)}`],xe.color!=="default"&&Ae[`color${capitalize$1(xe.color)}`]]}})(memoTheme(({theme:t})=>({color:(t.vars||t).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:alpha$3(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(createSimplePaletteValueFilter()).map(([Ae])=>({props:{color:Ae,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[Ae].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:alpha$3(t.palette[Ae].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(createSimplePaletteValueFilter()).map(([Ae])=>({props:{color:Ae},style:{[`&.${checkboxClasses.checked}, &.${checkboxClasses.indeterminate}`]:{color:(t.vars||t).palette[Ae].main},[`&.${checkboxClasses.disabled}`]:{color:(t.vars||t).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),defaultCheckedIcon$1=jsxRuntimeExports.jsx(CheckBoxIcon,{}),defaultIcon$1=jsxRuntimeExports.jsx(CheckBoxOutlineBlankIcon,{}),defaultIndeterminateIcon=jsxRuntimeExports.jsx(IndeterminateCheckBoxIcon,{}),Checkbox=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiCheckbox"}),{checkedIcon:Se=defaultCheckedIcon$1,color:Ce="primary",icon:_e=defaultIcon$1,indeterminate:Ie=!1,indeterminateIcon:Be=defaultIndeterminateIcon,inputProps:Te,size:Pe="medium",disableRipple:ke=!1,className:$e,slots:Oe={},slotProps:Ue={},...qe}=Ee,ze=Ie?Be:_e,Qe=Ie?Be:Se,Ge={...Ee,disableRipple:ke,color:Ce,indeterminate:Ie,size:Pe},Xe=useUtilityClasses$1b(Ge),er=Ue.input??Te,[tr,nr]=useSlot("root",{ref:xe,elementType:CheckboxRoot,className:clsx(Xe.root,$e),shouldForwardComponentProp:!0,externalForwardedProps:{slots:Oe,slotProps:Ue,...qe},ownerState:Ge,additionalProps:{type:"checkbox",icon:reactExports.cloneElement(ze,{fontSize:ze.props.fontSize??Pe}),checkedIcon:reactExports.cloneElement(Qe,{fontSize:Qe.props.fontSize??Pe}),disableRipple:ke,slots:Oe,slotProps:{input:mergeSlotProps(typeof er=="function"?er(Ge):er,{"data-indeterminate":Ie})}}});return jsxRuntimeExports.jsx(tr,{...nr,classes:Xe})});function mapEventPropToEvent(t){return t.substring(2).toLowerCase()}function clickedRootScrollbar(t,Ae){return Ae.documentElement.clientWidth<t.clientX||Ae.documentElement.clientHeight<t.clientY}function ClickAwayListener(t){const{children:Ae,disableReactTree:xe=!1,mouseEvent:Ee="onClick",onClickAway:Se,touchEvent:Ce="onTouchEnd"}=t,_e=reactExports.useRef(!1),Ie=reactExports.useRef(null),Be=reactExports.useRef(!1),Te=reactExports.useRef(!1);reactExports.useEffect(()=>(setTimeout(()=>{Be.current=!0},0),()=>{Be.current=!1}),[]);const Pe=useForkRef(getReactElementRef(Ae),Ie),ke=useEventCallback(Ue=>{const qe=Te.current;Te.current=!1;const ze=ownerDocument(Ie.current);if(!Be.current||!Ie.current||"clientX"in Ue&&clickedRootScrollbar(Ue,ze))return;if(_e.current){_e.current=!1;return}let Qe;Ue.composedPath?Qe=Ue.composedPath().includes(Ie.current):Qe=!ze.documentElement.contains(Ue.target)||Ie.current.contains(Ue.target),!Qe&&(xe||!qe)&&Se(Ue)}),$e=Ue=>qe=>{Te.current=!0;const ze=Ae.props[Ue];ze&&ze(qe)},Oe={ref:Pe};return Ce!==!1&&(Oe[Ce]=$e(Ce)),reactExports.useEffect(()=>{if(Ce!==!1){const Ue=mapEventPropToEvent(Ce),qe=ownerDocument(Ie.current),ze=()=>{_e.current=!0};return qe.addEventListener(Ue,ke),qe.addEventListener("touchmove",ze),()=>{qe.removeEventListener(Ue,ke),qe.removeEventListener("touchmove",ze)}}},[ke,Ce]),Ee!==!1&&(Oe[Ee]=$e(Ee)),reactExports.useEffect(()=>{if(Ee!==!1){const Ue=mapEventPropToEvent(Ee),qe=ownerDocument(Ie.current);return qe.addEventListener(Ue,ke),()=>{qe.removeEventListener(Ue,ke)}}},[ke,Ee]),reactExports.cloneElement(Ae,Oe)}const Container=createContainer$1({createStyledComponent:styled("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,Ae[`maxWidth${capitalize$1(String(xe.maxWidth))}`],xe.fixed&&Ae.fixed,xe.disableGutters&&Ae.disableGutters]}}),useThemeProps:t=>useDefaultProps({props:t,name:"MuiContainer"})});function getDialogContentTextUtilityClass(t){return generateUtilityClass("MuiDialogContentText",t)}generateUtilityClasses("MuiDialogContentText",["root"]);const useUtilityClasses$1a=t=>{const{classes:Ae}=t,Ee=composeClasses({root:["root"]},getDialogContentTextUtilityClass,Ae);return{...Ae,...Ee}},DialogContentTextRoot=styled(Typography,{shouldForwardProp:t=>rootShouldForwardProp(t)||t==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(t,Ae)=>Ae.root})({}),DialogContentText=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiDialogContentText"}),{children:Se,className:Ce,..._e}=Ee,Ie=useUtilityClasses$1a(_e);return jsxRuntimeExports.jsx(DialogContentTextRoot,{component:"p",variant:"body1",color:"textSecondary",ref:xe,ownerState:_e,className:clsx(Ie.root,Ce),...Ee,classes:Ie})});function getTranslateValue(t,Ae,xe){const Ee=Ae.getBoundingClientRect(),Se=xe&&xe.getBoundingClientRect(),Ce=ownerWindow(Ae);let _e;if(Ae.fakeTransform)_e=Ae.fakeTransform;else{const Te=Ce.getComputedStyle(Ae);_e=Te.getPropertyValue("-webkit-transform")||Te.getPropertyValue("transform")}let Ie=0,Be=0;if(_e&&_e!=="none"&&typeof _e=="string"){const Te=_e.split("(")[1].split(")")[0].split(",");Ie=parseInt(Te[4],10),Be=parseInt(Te[5],10)}return t==="left"?Se?`translateX(${Se.right+Ie-Ee.left}px)`:`translateX(${Ce.innerWidth+Ie-Ee.left}px)`:t==="right"?Se?`translateX(-${Ee.right-Se.left-Ie}px)`:`translateX(-${Ee.left+Ee.width-Ie}px)`:t==="up"?Se?`translateY(${Se.bottom+Be-Ee.top}px)`:`translateY(${Ce.innerHeight+Be-Ee.top}px)`:Se?`translateY(-${Ee.top-Se.top+Ee.height-Be}px)`:`translateY(-${Ee.top+Ee.height-Be}px)`}function resolveContainer(t){return typeof t=="function"?t():t}function setTranslateValue(t,Ae,xe){const Ee=resolveContainer(xe),Se=getTranslateValue(t,Ae,Ee);Se&&(Ae.style.webkitTransform=Se,Ae.style.transform=Se)}const Slide=reactExports.forwardRef(function(Ae,xe){const Ee=useTheme(),Se={enter:Ee.transitions.easing.easeOut,exit:Ee.transitions.easing.sharp},Ce={enter:Ee.transitions.duration.enteringScreen,exit:Ee.transitions.duration.leavingScreen},{addEndListener:_e,appear:Ie=!0,children:Be,container:Te,direction:Pe="down",easing:ke=Se,in:$e,onEnter:Oe,onEntered:Ue,onEntering:qe,onExit:ze,onExited:Qe,onExiting:Ge,style:Xe,timeout:er=Ce,TransitionComponent:tr=Transition,...nr}=Ae,sr=reactExports.useRef(null),dr=useForkRef(getReactElementRef(Be),sr,xe),ar=St=>We=>{St&&(We===void 0?St(sr.current):St(sr.current,We))},lr=ar((St,We)=>{setTranslateValue(Pe,St,Te),reflow(St),Oe&&Oe(St,We)}),Ke=ar((St,We)=>{const Fe=getTransitionProps({timeout:er,style:Xe,easing:ke},{mode:"enter"});St.style.webkitTransition=Ee.transitions.create("-webkit-transform",{...Fe}),St.style.transition=Ee.transitions.create("transform",{...Fe}),St.style.webkitTransform="none",St.style.transform="none",qe&&qe(St,We)}),Me=ar(Ue),je=ar(Ge),De=ar(St=>{const We=getTransitionProps({timeout:er,style:Xe,easing:ke},{mode:"exit"});St.style.webkitTransition=Ee.transitions.create("-webkit-transform",We),St.style.transition=Ee.transitions.create("transform",We),setTranslateValue(Pe,St,Te),ze&&ze(St)}),He=ar(St=>{St.style.webkitTransition="",St.style.transition="",Qe&&Qe(St)}),Ve=St=>{_e&&_e(sr.current,St)},Ye=reactExports.useCallback(()=>{sr.current&&setTranslateValue(Pe,sr.current,Te)},[Pe,Te]);return reactExports.useEffect(()=>{if($e||Pe==="down"||Pe==="right")return;const St=debounce$2(()=>{sr.current&&setTranslateValue(Pe,sr.current,Te)}),We=ownerWindow(sr.current);return We.addEventListener("resize",St),()=>{St.clear(),We.removeEventListener("resize",St)}},[Pe,$e,Te]),reactExports.useEffect(()=>{$e||Ye()},[$e,Ye]),jsxRuntimeExports.jsx(tr,{nodeRef:sr,onEnter:lr,onEntered:Me,onEntering:Ke,onExit:De,onExited:He,onExiting:je,addEndListener:Ve,appear:Ie,in:$e,timeout:er,...nr,children:(St,{ownerState:We,...Fe})=>reactExports.cloneElement(Be,{ref:dr,style:{visibility:St==="exited"&&!$e?"hidden":void 0,...Xe,...Be.props.style},...Fe})})});function getDrawerUtilityClass(t){return generateUtilityClass("MuiDrawer",t)}generateUtilityClasses("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const overridesResolver$4=(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,(xe.variant==="permanent"||xe.variant==="persistent")&&Ae.docked,Ae.modal]},useUtilityClasses$19=t=>{const{classes:Ae,anchor:xe,variant:Ee}=t,Se={root:["root",`anchor${capitalize$1(xe)}`],docked:[(Ee==="permanent"||Ee==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${capitalize$1(xe)}`,Ee!=="temporary"&&`paperAnchorDocked${capitalize$1(xe)}`]};return composeClasses(Se,getDrawerUtilityClass,Ae)},DrawerRoot=styled(Modal,{name:"MuiDrawer",slot:"Root",overridesResolver:overridesResolver$4})(memoTheme(({theme:t})=>({zIndex:(t.vars||t).zIndex.drawer}))),DrawerDockedRoot=styled("div",{shouldForwardProp:rootShouldForwardProp,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:overridesResolver$4})({flex:"0 0 auto"}),DrawerPaper=styled(Paper,{name:"MuiDrawer",slot:"Paper",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.paper,Ae[`paperAnchor${capitalize$1(xe.anchor)}`],xe.variant!=="temporary"&&Ae[`paperAnchorDocked${capitalize$1(xe.anchor)}`]]}})(memoTheme(({theme:t})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:Ae})=>Ae.anchor==="left"&&Ae.variant!=="temporary",style:{borderRight:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:Ae})=>Ae.anchor==="top"&&Ae.variant!=="temporary",style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:Ae})=>Ae.anchor==="right"&&Ae.variant!=="temporary",style:{borderLeft:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:Ae})=>Ae.anchor==="bottom"&&Ae.variant!=="temporary",style:{borderTop:`1px solid ${(t.vars||t).palette.divider}`}}]}))),oppositeDirection={left:"right",right:"left",top:"down",bottom:"up"};function isHorizontal(t){return["left","right"].includes(t)}function getAnchor({direction:t},Ae){return t==="rtl"&&isHorizontal(Ae)?oppositeDirection[Ae]:Ae}const Drawer=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiDrawer"}),Se=useTheme(),Ce=useRtl(),_e={enter:Se.transitions.duration.enteringScreen,exit:Se.transitions.duration.leavingScreen},{anchor:Ie="left",BackdropProps:Be,children:Te,className:Pe,elevation:ke=16,hideBackdrop:$e=!1,ModalProps:{BackdropProps:Oe,...Ue}={},onClose:qe,open:ze=!1,PaperProps:Qe={},SlideProps:Ge,TransitionComponent:Xe,transitionDuration:er=_e,variant:tr="temporary",slots:nr={},slotProps:sr={},...dr}=Ee,ar=reactExports.useRef(!1);reactExports.useEffect(()=>{ar.current=!0},[]);const lr=getAnchor({direction:Ce?"rtl":"ltr"},Ie),Me={...Ee,anchor:Ie,elevation:ke,open:ze,variant:tr,...dr},je=useUtilityClasses$19(Me),De={slots:{transition:Xe,...nr},slotProps:{paper:Qe,transition:Ge,...sr,backdrop:mergeSlotProps(sr.backdrop||{...Be,...Oe},{transitionDuration:er})}},[He,Ve]=useSlot("root",{ref:xe,elementType:DrawerRoot,className:clsx(je.root,je.modal,Pe),shouldForwardComponentProp:!0,ownerState:Me,externalForwardedProps:{...De,...dr,...Ue},additionalProps:{open:ze,onClose:qe,hideBackdrop:$e,slots:{backdrop:De.slots.backdrop},slotProps:{backdrop:De.slotProps.backdrop}}}),[Ye,St]=useSlot("paper",{elementType:DrawerPaper,shouldForwardComponentProp:!0,className:clsx(je.paper,Qe.className),ownerState:Me,externalForwardedProps:De,additionalProps:{elevation:tr==="temporary"?ke:0,square:!0}}),[We,Fe]=useSlot("docked",{elementType:DrawerDockedRoot,ref:xe,className:clsx(je.root,je.docked,Pe),ownerState:Me,externalForwardedProps:De,additionalProps:dr}),[Ze,ir]=useSlot("transition",{elementType:Slide,ownerState:Me,externalForwardedProps:De,additionalProps:{in:ze,direction:oppositeDirection[lr],timeout:er,appear:ar.current}}),ur=jsxRuntimeExports.jsx(Ye,{...St,children:Te});if(tr==="permanent")return jsxRuntimeExports.jsx(We,{...Fe,children:ur});const fr=jsxRuntimeExports.jsx(Ze,{...ir,children:ur});return tr==="persistent"?jsxRuntimeExports.jsx(We,{...Fe,children:fr}):jsxRuntimeExports.jsx(He,{...Ve,children:fr})});function getFabUtilityClass(t){return generateUtilityClass("MuiFab",t)}const fabClasses=generateUtilityClasses("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),useUtilityClasses$18=t=>{const{color:Ae,variant:xe,classes:Ee,size:Se}=t,Ce={root:["root",xe,`size${capitalize$1(Se)}`,Ae==="inherit"?"colorInherit":Ae]},_e=composeClasses(Ce,getFabUtilityClass,Ee);return{...Ee,..._e}},FabRoot=styled(ButtonBase,{name:"MuiFab",slot:"Root",shouldForwardProp:t=>rootShouldForwardProp(t)||t==="classes",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,Ae[xe.variant],Ae[`size${capitalize$1(xe.size)}`],xe.color==="inherit"&&Ae.colorInherit,Ae[capitalize$1(xe.size)],Ae[xe.color]]}})(memoTheme(({theme:t})=>{var Ae,xe;return{...t.typography.button,minHeight:36,transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(t.vars||t).zIndex.fab,boxShadow:(t.vars||t).shadows[6],"&:active":{boxShadow:(t.vars||t).shadows[12]},color:t.vars?t.vars.palette.text.primary:(xe=(Ae=t.palette).getContrastText)==null?void 0:xe.call(Ae,t.palette.grey[300]),backgroundColor:(t.vars||t).palette.grey[300],"&:hover":{backgroundColor:(t.vars||t).palette.grey.A100,"@media (hover: none)":{backgroundColor:(t.vars||t).palette.grey[300]},textDecoration:"none"},[`&.${fabClasses.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},variants:[{props:{size:"small"},style:{width:40,height:40}},{props:{size:"medium"},style:{width:48,height:48}},{props:{variant:"extended"},style:{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48}},{props:{variant:"extended",size:"small"},style:{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34}},{props:{variant:"extended",size:"medium"},style:{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40}},{props:{color:"inherit"},style:{color:"inherit"}}]}}),memoTheme(({theme:t})=>({variants:[...Object.entries(t.palette).filter(createSimplePaletteValueFilter(["dark","contrastText"])).map(([Ae])=>({props:{color:Ae},style:{color:(t.vars||t).palette[Ae].contrastText,backgroundColor:(t.vars||t).palette[Ae].main,"&:hover":{backgroundColor:(t.vars||t).palette[Ae].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[Ae].main}}}}))]})),memoTheme(({theme:t})=>({[`&.${fabClasses.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}))),Fab=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiFab"}),{children:Se,className:Ce,color:_e="default",component:Ie="button",disabled:Be=!1,disableFocusRipple:Te=!1,focusVisibleClassName:Pe,size:ke="large",variant:$e="circular",...Oe}=Ee,Ue={...Ee,color:_e,component:Ie,disabled:Be,disableFocusRipple:Te,size:ke,variant:$e},qe=useUtilityClasses$18(Ue);return jsxRuntimeExports.jsx(FabRoot,{className:clsx(qe.root,Ce),component:Ie,disabled:Be,focusRipple:!Te,focusVisibleClassName:clsx(qe.focusVisible,Pe),ownerState:Ue,ref:xe,...Oe,classes:qe,children:Se})});function getFormControlLabelUtilityClasses(t){return generateUtilityClass("MuiFormControlLabel",t)}const formControlLabelClasses=generateUtilityClasses("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),useUtilityClasses$17=t=>{const{classes:Ae,disabled:xe,labelPlacement:Ee,error:Se,required:Ce}=t,_e={root:["root",xe&&"disabled",`labelPlacement${capitalize$1(Ee)}`,Se&&"error",Ce&&"required"],label:["label",xe&&"disabled"],asterisk:["asterisk",Se&&"error"]};return composeClasses(_e,getFormControlLabelUtilityClasses,Ae)},FormControlLabelRoot=styled("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[{[`& .${formControlLabelClasses.label}`]:Ae.label},Ae.root,Ae[`labelPlacement${capitalize$1(xe.labelPlacement)}`]]}})(memoTheme(({theme:t})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${formControlLabelClasses.disabled}`]:{cursor:"default"},[`& .${formControlLabelClasses.label}`]:{[`&.${formControlLabelClasses.disabled}`]:{color:(t.vars||t).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:Ae})=>Ae==="start"||Ae==="top"||Ae==="bottom",style:{marginLeft:16}}]}))),AsteriskComponent=styled("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(t,Ae)=>Ae.asterisk})(memoTheme(({theme:t})=>({[`&.${formControlLabelClasses.error}`]:{color:(t.vars||t).palette.error.main}}))),FormControlLabel=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiFormControlLabel"}),{checked:Se,className:Ce,componentsProps:_e={},control:Ie,disabled:Be,disableTypography:Te,inputRef:Pe,label:ke,labelPlacement:$e="end",name:Oe,onChange:Ue,required:qe,slots:ze={},slotProps:Qe={},value:Ge,...Xe}=Ee,er=useFormControl(),tr=Be??Ie.props.disabled??(er==null?void 0:er.disabled),nr=qe??Ie.props.required,sr={disabled:tr,required:nr};["checked","name","onChange","value","inputRef"].forEach(He=>{typeof Ie.props[He]>"u"&&typeof Ee[He]<"u"&&(sr[He]=Ee[He])});const dr=formControlState({props:Ee,muiFormControl:er,states:["error"]}),ar={...Ee,disabled:tr,labelPlacement:$e,required:nr,error:dr.error},lr=useUtilityClasses$17(ar),Ke={slots:ze,slotProps:{..._e,...Qe}},[Me,je]=useSlot("typography",{elementType:Typography,externalForwardedProps:Ke,ownerState:ar});let De=ke;return De!=null&&De.type!==Typography&&!Te&&(De=jsxRuntimeExports.jsx(Me,{component:"span",...je,className:clsx(lr.label,je==null?void 0:je.className),children:De})),jsxRuntimeExports.jsxs(FormControlLabelRoot,{className:clsx(lr.root,Ce),ownerState:ar,ref:xe,...Xe,children:[reactExports.cloneElement(Ie,sr),nr?jsxRuntimeExports.jsxs("div",{children:[De,jsxRuntimeExports.jsxs(AsteriskComponent,{ownerState:ar,"aria-hidden":!0,className:lr.asterisk,children:[" ","*"]})]}):De]})});function getFormGroupUtilityClass(t){return generateUtilityClass("MuiFormGroup",t)}generateUtilityClasses("MuiFormGroup",["root","row","error"]);const useUtilityClasses$16=t=>{const{classes:Ae,row:xe,error:Ee}=t;return composeClasses({root:["root",xe&&"row",Ee&&"error"]},getFormGroupUtilityClass,Ae)},FormGroupRoot=styled("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,xe.row&&Ae.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),FormGroup=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiFormGroup"}),{className:Se,row:Ce=!1,..._e}=Ee,Ie=useFormControl(),Be=formControlState({props:Ee,muiFormControl:Ie,states:["error"]}),Te={...Ee,row:Ce,error:Be.error},Pe=useUtilityClasses$16(Te);return jsxRuntimeExports.jsx(FormGroupRoot,{className:clsx(Pe.root,Se),ownerState:Te,ref:xe,..._e})}),GridContext=reactExports.createContext();function getGridUtilityClass(t){return generateUtilityClass("MuiGrid",t)}const SPACINGS=[0,1,2,3,4,5,6,7,8,9,10],DIRECTIONS=["column-reverse","column","row-reverse","row"],WRAPS=["nowrap","wrap-reverse","wrap"],GRID_SIZES=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],gridClasses$1=generateUtilityClasses("MuiGrid",["root","container","item","zeroMinWidth",...SPACINGS.map(t=>`spacing-xs-${t}`),...DIRECTIONS.map(t=>`direction-xs-${t}`),...WRAPS.map(t=>`wrap-xs-${t}`),...GRID_SIZES.map(t=>`grid-xs-${t}`),...GRID_SIZES.map(t=>`grid-sm-${t}`),...GRID_SIZES.map(t=>`grid-md-${t}`),...GRID_SIZES.map(t=>`grid-lg-${t}`),...GRID_SIZES.map(t=>`grid-xl-${t}`)]);function generateGrid({theme:t,ownerState:Ae}){let xe;return t.breakpoints.keys.reduce((Ee,Se)=>{let Ce={};if(Ae[Se]&&(xe=Ae[Se]),!xe)return Ee;if(xe===!0)Ce={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(xe==="auto")Ce={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const _e=resolveBreakpointValues({values:Ae.columns,breakpoints:t.breakpoints.values}),Ie=typeof _e=="object"?_e[Se]:_e;if(Ie==null)return Ee;const Be=`${Math.round(xe/Ie*1e8)/1e6}%`;let Te={};if(Ae.container&&Ae.item&&Ae.columnSpacing!==0){const Pe=t.spacing(Ae.columnSpacing);if(Pe!=="0px"){const ke=`calc(${Be} + ${Pe})`;Te={flexBasis:ke,maxWidth:ke}}}Ce={flexBasis:Be,flexGrow:0,maxWidth:Be,...Te}}return t.breakpoints.values[Se]===0?Object.assign(Ee,Ce):Ee[t.breakpoints.up(Se)]=Ce,Ee},{})}function generateDirection({theme:t,ownerState:Ae}){const xe=resolveBreakpointValues({values:Ae.direction,breakpoints:t.breakpoints.values});return handleBreakpoints({theme:t},xe,Ee=>{const Se={flexDirection:Ee};return Ee.startsWith("column")&&(Se[`& > .${gridClasses$1.item}`]={maxWidth:"none"}),Se})}function extractZeroValueBreakpointKeys({breakpoints:t,values:Ae}){let xe="";Object.keys(Ae).forEach(Se=>{xe===""&&Ae[Se]!==0&&(xe=Se)});const Ee=Object.keys(t).sort((Se,Ce)=>t[Se]-t[Ce]);return Ee.slice(0,Ee.indexOf(xe))}function generateRowGap({theme:t,ownerState:Ae}){const{container:xe,rowSpacing:Ee}=Ae;let Se={};if(xe&&Ee!==0){const Ce=resolveBreakpointValues({values:Ee,breakpoints:t.breakpoints.values});let _e;typeof Ce=="object"&&(_e=extractZeroValueBreakpointKeys({breakpoints:t.breakpoints.values,values:Ce})),Se=handleBreakpoints({theme:t},Ce,(Ie,Be)=>{const Te=t.spacing(Ie);return Te!=="0px"?{marginTop:`calc(-1 * ${Te})`,[`& > .${gridClasses$1.item}`]:{paddingTop:Te}}:_e!=null&&_e.includes(Be)?{}:{marginTop:0,[`& > .${gridClasses$1.item}`]:{paddingTop:0}}})}return Se}function generateColumnGap({theme:t,ownerState:Ae}){const{container:xe,columnSpacing:Ee}=Ae;let Se={};if(xe&&Ee!==0){const Ce=resolveBreakpointValues({values:Ee,breakpoints:t.breakpoints.values});let _e;typeof Ce=="object"&&(_e=extractZeroValueBreakpointKeys({breakpoints:t.breakpoints.values,values:Ce})),Se=handleBreakpoints({theme:t},Ce,(Ie,Be)=>{const Te=t.spacing(Ie);if(Te!=="0px"){const Pe=`calc(-1 * ${Te})`;return{width:`calc(100% + ${Te})`,marginLeft:Pe,[`& > .${gridClasses$1.item}`]:{paddingLeft:Te}}}return _e!=null&&_e.includes(Be)?{}:{width:"100%",marginLeft:0,[`& > .${gridClasses$1.item}`]:{paddingLeft:0}}})}return Se}function resolveSpacingStyles(t,Ae,xe={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[xe[`spacing-xs-${String(t)}`]];const Ee=[];return Ae.forEach(Se=>{const Ce=t[Se];Number(Ce)>0&&Ee.push(xe[`spacing-${Se}-${String(Ce)}`])}),Ee}const GridRoot$1=styled("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t,{container:Ee,direction:Se,item:Ce,spacing:_e,wrap:Ie,zeroMinWidth:Be,breakpoints:Te}=xe;let Pe=[];Ee&&(Pe=resolveSpacingStyles(_e,Te,Ae));const ke=[];return Te.forEach($e=>{const Oe=xe[$e];Oe&&ke.push(Ae[`grid-${$e}-${String(Oe)}`])}),[Ae.root,Ee&&Ae.container,Ce&&Ae.item,Be&&Ae.zeroMinWidth,...Pe,Se!=="row"&&Ae[`direction-xs-${String(Se)}`],Ie!=="wrap"&&Ae[`wrap-xs-${String(Ie)}`],...ke]}})(({ownerState:t})=>({boxSizing:"border-box",...t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},...t.item&&{margin:0},...t.zeroMinWidth&&{minWidth:0},...t.wrap!=="wrap"&&{flexWrap:t.wrap}}),generateDirection,generateRowGap,generateColumnGap,generateGrid);function resolveSpacingClasses(t,Ae){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const xe=[];return Ae.forEach(Ee=>{const Se=t[Ee];if(Number(Se)>0){const Ce=`spacing-${Ee}-${String(Se)}`;xe.push(Ce)}}),xe}const useUtilityClasses$15=t=>{const{classes:Ae,container:xe,direction:Ee,item:Se,spacing:Ce,wrap:_e,zeroMinWidth:Ie,breakpoints:Be}=t;let Te=[];xe&&(Te=resolveSpacingClasses(Ce,Be));const Pe=[];Be.forEach($e=>{const Oe=t[$e];Oe&&Pe.push(`grid-${$e}-${String(Oe)}`)});const ke={root:["root",xe&&"container",Se&&"item",Ie&&"zeroMinWidth",...Te,Ee!=="row"&&`direction-xs-${String(Ee)}`,_e!=="wrap"&&`wrap-xs-${String(_e)}`,...Pe]};return composeClasses(ke,getGridUtilityClass,Ae)},Grid=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiGrid"}),{breakpoints:Se}=useTheme(),Ce=extendSxProp$1(Ee),{className:_e,columns:Ie,columnSpacing:Be,component:Te="div",container:Pe=!1,direction:ke="row",item:$e=!1,rowSpacing:Oe,spacing:Ue=0,wrap:qe="wrap",zeroMinWidth:ze=!1,...Qe}=Ce,Ge=Oe||Ue,Xe=Be||Ue,er=reactExports.useContext(GridContext),tr=Pe?Ie||12:er,nr={},sr={...Qe};Se.keys.forEach(lr=>{Qe[lr]!=null&&(nr[lr]=Qe[lr],delete sr[lr])});const dr={...Ce,columns:tr,container:Pe,direction:ke,item:$e,rowSpacing:Ge,columnSpacing:Xe,wrap:qe,zeroMinWidth:ze,spacing:Ue,...nr,breakpoints:Se.keys},ar=useUtilityClasses$15(dr);return jsxRuntimeExports.jsx(GridContext.Provider,{value:tr,children:jsxRuntimeExports.jsx(GridRoot$1,{ownerState:dr,className:clsx(ar.root,_e),as:Te,ref:xe,...sr})})});function getInputAdornmentUtilityClass(t){return generateUtilityClass("MuiInputAdornment",t)}const inputAdornmentClasses=generateUtilityClasses("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var _span;const overridesResolver$3=(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,Ae[`position${capitalize$1(xe.position)}`],xe.disablePointerEvents===!0&&Ae.disablePointerEvents,Ae[xe.variant]]},useUtilityClasses$14=t=>{const{classes:Ae,disablePointerEvents:xe,hiddenLabel:Ee,position:Se,size:Ce,variant:_e}=t,Ie={root:["root",xe&&"disablePointerEvents",Se&&`position${capitalize$1(Se)}`,_e,Ee&&"hiddenLabel",Ce&&`size${capitalize$1(Ce)}`]};return composeClasses(Ie,getInputAdornmentUtilityClass,Ae)},InputAdornmentRoot=styled("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:overridesResolver$3})(memoTheme(({theme:t})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${inputAdornmentClasses.positionStart}&:not(.${inputAdornmentClasses.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),InputAdornment=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiInputAdornment"}),{children:Se,className:Ce,component:_e="div",disablePointerEvents:Ie=!1,disableTypography:Be=!1,position:Te,variant:Pe,...ke}=Ee,$e=useFormControl()||{};let Oe=Pe;Pe&&$e.variant,$e&&!Oe&&(Oe=$e.variant);const Ue={...Ee,hiddenLabel:$e.hiddenLabel,size:$e.size,disablePointerEvents:Ie,position:Te,variant:Oe},qe=useUtilityClasses$14(Ue);return jsxRuntimeExports.jsx(FormControlContext.Provider,{value:null,children:jsxRuntimeExports.jsx(InputAdornmentRoot,{as:_e,ownerState:Ue,className:clsx(qe.root,Ce),ref:xe,...ke,children:typeof Se=="string"&&!Be?jsxRuntimeExports.jsx(Typography,{color:"textSecondary",children:Se}):jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[Te==="start"?_span||(_span=jsxRuntimeExports.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,Se]})})})});function getLinearProgressUtilityClass(t){return generateUtilityClass("MuiLinearProgress",t)}const linearProgressClasses=generateUtilityClasses("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]),TRANSITION_DURATION=4,indeterminate1Keyframe=keyframes`
|
|
217
|
+
`&&(Xe.value+=" ");const nr=tr.boxSizing,sr=getStyleValue(tr.paddingBottom)+getStyleValue(tr.paddingTop),dr=getStyleValue(tr.borderBottomWidth)+getStyleValue(tr.borderTopWidth),ar=Xe.scrollHeight;Xe.value="x";const lr=Xe.scrollHeight;let Ke=ar;Ce&&(Ke=Math.max(Number(Ce)*lr,Ke)),Se&&(Ke=Math.min(Number(Se)*lr,Ke)),Ke=Math.max(Ke,lr);const Me=Ke+(nr==="border-box"?sr+dr:0),je=Math.abs(Ke-ar)<=1;return{outerHeightStyle:Me,overflowing:je}},[Se,Ce,Ae.placeholder]),qe=reactExports.useCallback(()=>{const Ge=Pe.current,Xe=Ue();if(!Ge||!Xe||isEmpty$1(Xe))return;const er=Xe.outerHeightStyle;$e.current!==er&&($e.current=er,Ge.style.height=`${er}px`),Ge.style.overflow=Xe.overflowing?"hidden":""},[Ue]),ze=reactExports.useRef(-1);useEnhancedEffect(()=>{const Ge=debounce$2(()=>qe()),Xe=Pe==null?void 0:Pe.current;if(!Xe)return;const er=ownerWindow(Xe);er.addEventListener("resize",Ge);let tr;return typeof ResizeObserver<"u"&&(tr=new ResizeObserver(()=>{tr.unobserve(Xe),cancelAnimationFrame(ze.current),qe(),ze.current=requestAnimationFrame(()=>{tr.observe(Xe)})}),tr.observe(Xe)),()=>{Ge.clear(),cancelAnimationFrame(ze.current),er.removeEventListener("resize",Ge),tr&&tr.disconnect()}},[Ue,qe]),useEnhancedEffect(()=>{qe()});const Qe=Ge=>{Te||qe(),Ee&&Ee(Ge)};return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("textarea",{value:Ie,onChange:Qe,ref:ke,rows:Ce,style:_e,...Be}),jsxRuntimeExports.jsx("textarea",{"aria-hidden":!0,className:Ae.className,readOnly:!0,ref:Oe,tabIndex:-1,style:{...styles$2.shadow,..._e,paddingTop:0,paddingBottom:0}})]})});function formControlState({props:t,states:Ae,muiFormControl:xe}){return Ae.reduce((Ee,Se)=>(Ee[Se]=t[Se],xe&&typeof t[Se]>"u"&&(Ee[Se]=xe[Se]),Ee),{})}const FormControlContext=reactExports.createContext(void 0);function useFormControl(){return reactExports.useContext(FormControlContext)}function hasValue(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function isFilled(t,Ae=!1){return t&&(hasValue(t.value)&&t.value!==""||Ae&&hasValue(t.defaultValue)&&t.defaultValue!=="")}function isAdornedStart(t){return t.startAdornment}function getInputBaseUtilityClass(t){return generateUtilityClass("MuiInputBase",t)}const inputBaseClasses=generateUtilityClasses("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var _InputGlobalStyles;const rootOverridesResolver=(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,xe.formControl&&Ae.formControl,xe.startAdornment&&Ae.adornedStart,xe.endAdornment&&Ae.adornedEnd,xe.error&&Ae.error,xe.size==="small"&&Ae.sizeSmall,xe.multiline&&Ae.multiline,xe.color&&Ae[`color${capitalize$1(xe.color)}`],xe.fullWidth&&Ae.fullWidth,xe.hiddenLabel&&Ae.hiddenLabel]},inputOverridesResolver=(t,Ae)=>{const{ownerState:xe}=t;return[Ae.input,xe.size==="small"&&Ae.inputSizeSmall,xe.multiline&&Ae.inputMultiline,xe.type==="search"&&Ae.inputTypeSearch,xe.startAdornment&&Ae.inputAdornedStart,xe.endAdornment&&Ae.inputAdornedEnd,xe.hiddenLabel&&Ae.inputHiddenLabel]},useUtilityClasses$1z=t=>{const{classes:Ae,color:xe,disabled:Ee,error:Se,endAdornment:Ce,focused:_e,formControl:Ie,fullWidth:Be,hiddenLabel:Te,multiline:Pe,readOnly:ke,size:$e,startAdornment:Oe,type:Ue}=t,qe={root:["root",`color${capitalize$1(xe)}`,Ee&&"disabled",Se&&"error",Be&&"fullWidth",_e&&"focused",Ie&&"formControl",$e&&$e!=="medium"&&`size${capitalize$1($e)}`,Pe&&"multiline",Oe&&"adornedStart",Ce&&"adornedEnd",Te&&"hiddenLabel",ke&&"readOnly"],input:["input",Ee&&"disabled",Ue==="search"&&"inputTypeSearch",Pe&&"inputMultiline",$e==="small"&&"inputSizeSmall",Te&&"inputHiddenLabel",Oe&&"inputAdornedStart",Ce&&"inputAdornedEnd",ke&&"readOnly"]};return composeClasses(qe,getInputBaseUtilityClass,Ae)},InputBaseRoot=styled("div",{name:"MuiInputBase",slot:"Root",overridesResolver:rootOverridesResolver})(memoTheme(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${inputBaseClasses.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:Ae})=>Ae.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:Ae,size:xe})=>Ae.multiline&&xe==="small",style:{paddingTop:1}},{props:({ownerState:Ae})=>Ae.fullWidth,style:{width:"100%"}}]}))),InputBaseInput=styled("input",{name:"MuiInputBase",slot:"Input",overridesResolver:inputOverridesResolver})(memoTheme(({theme:t})=>{const Ae=t.palette.mode==="light",xe={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:Ae?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},Ee={opacity:"0 !important"},Se=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:Ae?.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":xe,"&::-moz-placeholder":xe,"&::-ms-input-placeholder":xe,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${inputBaseClasses.formControl} &`]:{"&::-webkit-input-placeholder":Ee,"&::-moz-placeholder":Ee,"&::-ms-input-placeholder":Ee,"&:focus::-webkit-input-placeholder":Se,"&:focus::-moz-placeholder":Se,"&:focus::-ms-input-placeholder":Se},[`&.${inputBaseClasses.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:Ce})=>!Ce.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:Ce})=>Ce.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),InputGlobalStyles=globalCss({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),InputBase=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiInputBase"}),{"aria-describedby":Se,autoComplete:Ce,autoFocus:_e,className:Ie,color:Be,components:Te={},componentsProps:Pe={},defaultValue:ke,disabled:$e,disableInjectingGlobalStyles:Oe,endAdornment:Ue,error:qe,fullWidth:ze=!1,id:Qe,inputComponent:Ge="input",inputProps:Xe={},inputRef:er,margin:tr,maxRows:nr,minRows:sr,multiline:dr=!1,name:ar,onBlur:lr,onChange:Ke,onClick:Me,onFocus:je,onKeyDown:De,onKeyUp:He,placeholder:Ve,readOnly:Ye,renderSuffix:St,rows:We,size:Fe,slotProps:Ze={},slots:ir={},startAdornment:ur,type:fr="text",value:Ar,...vr}=Ee,yr=Xe.value!=null?Xe.value:Ar,{current:br}=reactExports.useRef(yr!=null),_r=reactExports.useRef(),$r=reactExports.useCallback(gr=>{},[]),Fr=useForkRef(_r,er,Xe.ref,$r),[Ir,zr]=reactExports.useState(!1),dn=useFormControl(),tn=formControlState({props:Ee,muiFormControl:dn,states:["color","disabled","error","hiddenLabel","size","required","filled"]});tn.focused=dn?dn.focused:Ir,reactExports.useEffect(()=>{!dn&&$e&&Ir&&(zr(!1),lr&&lr())},[dn,$e,Ir,lr]);const Gr=dn&&dn.onFilled,wn=dn&&dn.onEmpty,an=reactExports.useCallback(gr=>{isFilled(gr)?Gr&&Gr():wn&&wn()},[Gr,wn]);useEnhancedEffect(()=>{br&&an({value:yr})},[yr,an,br]);const Vr=gr=>{je&&je(gr),Xe.onFocus&&Xe.onFocus(gr),dn&&dn.onFocus?dn.onFocus(gr):zr(!0)},Rn=gr=>{lr&&lr(gr),Xe.onBlur&&Xe.onBlur(gr),dn&&dn.onBlur?dn.onBlur(gr):zr(!1)},un=(gr,...Br)=>{if(!br){const Hr=gr.target||_r.current;if(Hr==null)throw new Error(formatMuiErrorMessage(1));an({value:Hr.value})}Xe.onChange&&Xe.onChange(gr,...Br),Ke&&Ke(gr,...Br)};reactExports.useEffect(()=>{an(_r.current)},[]);const sn=gr=>{_r.current&&gr.currentTarget===gr.target&&_r.current.focus(),Me&&Me(gr)};let jn=Ge,en=Xe;dr&&jn==="input"&&(We?en={type:void 0,minRows:We,maxRows:We,...en}:en={type:void 0,maxRows:nr,minRows:sr,...en},jn=TextareaAutosize);const Jr=gr=>{an(gr.animationName==="mui-auto-fill-cancel"?_r.current:{value:"x"})};reactExports.useEffect(()=>{dn&&dn.setAdornedStart(!!ur)},[dn,ur]);const nn={...Ee,color:tn.color||"primary",disabled:tn.disabled,endAdornment:Ue,error:tn.error,focused:tn.focused,formControl:dn,fullWidth:ze,hiddenLabel:tn.hiddenLabel,multiline:dr,size:tn.size,startAdornment:ur,type:fr},rn=useUtilityClasses$1z(nn),cn=ir.root||Te.Root||InputBaseRoot,pn=Ze.root||Pe.root||{},Mr=ir.input||Te.Input||InputBaseInput;return en={...en,...Ze.input??Pe.input},jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[!Oe&&typeof InputGlobalStyles=="function"&&(_InputGlobalStyles||(_InputGlobalStyles=jsxRuntimeExports.jsx(InputGlobalStyles,{}))),jsxRuntimeExports.jsxs(cn,{...pn,ref:xe,onClick:sn,...vr,...!isHostComponent(cn)&&{ownerState:{...nn,...pn.ownerState}},className:clsx(rn.root,pn.className,Ie,Ye&&"MuiInputBase-readOnly"),children:[ur,jsxRuntimeExports.jsx(FormControlContext.Provider,{value:null,children:jsxRuntimeExports.jsx(Mr,{"aria-invalid":tn.error,"aria-describedby":Se,autoComplete:Ce,autoFocus:_e,defaultValue:ke,disabled:tn.disabled,id:Qe,onAnimationStart:Jr,name:ar,placeholder:Ve,readOnly:Ye,required:tn.required,rows:We,value:yr,onKeyDown:De,onKeyUp:He,type:fr,...en,...!isHostComponent(Mr)&&{as:jn,ownerState:{...nn,...en.ownerState}},ref:Fr,className:clsx(rn.input,en.className,Ye&&"MuiInputBase-readOnly"),onBlur:Rn,onChange:un,onFocus:Vr})}),Ue,St?St({...tn,startAdornment:ur}):null]})]})});function getInputUtilityClass(t){return generateUtilityClass("MuiInput",t)}const inputClasses={...inputBaseClasses,...generateUtilityClasses("MuiInput",["root","underline","input"])},useUtilityClasses$1y=t=>{const{classes:Ae,disableUnderline:xe}=t,Se=composeClasses({root:["root",!xe&&"underline"],input:["input"]},getInputUtilityClass,Ae);return{...Ae,...Se}},InputRoot=styled(InputBaseRoot,{shouldForwardProp:t=>rootShouldForwardProp(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[...rootOverridesResolver(t,Ae),!xe.disableUnderline&&Ae.underline]}})(memoTheme(({theme:t})=>{let xe=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(xe=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:Ee})=>Ee.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:Ee})=>!Ee.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${inputClasses.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${inputClasses.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${xe}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${inputClasses.disabled}, .${inputClasses.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${xe}`}},[`&.${inputClasses.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(createSimplePaletteValueFilter()).map(([Ee])=>({props:{color:Ee,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[Ee].main}`}}}))]}})),InputInput=styled(InputBaseInput,{name:"MuiInput",slot:"Input",overridesResolver:inputOverridesResolver})({}),Input=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiInput"}),{disableUnderline:Se=!1,components:Ce={},componentsProps:_e,fullWidth:Ie=!1,inputComponent:Be="input",multiline:Te=!1,slotProps:Pe,slots:ke={},type:$e="text",...Oe}=Ee,Ue=useUtilityClasses$1y(Ee),ze={root:{ownerState:{disableUnderline:Se}}},Qe=Pe??_e?deepmerge(Pe??_e,ze):ze,Ge=ke.root??Ce.Root??InputRoot,Xe=ke.input??Ce.Input??InputInput;return jsxRuntimeExports.jsx(InputBase,{slots:{root:Ge,input:Xe},slotProps:Qe,fullWidth:Ie,inputComponent:Be,multiline:Te,ref:xe,type:$e,...Oe,classes:Ue})});Input.muiName="Input";function getFilledInputUtilityClass(t){return generateUtilityClass("MuiFilledInput",t)}const filledInputClasses={...inputBaseClasses,...generateUtilityClasses("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},useUtilityClasses$1x=t=>{const{classes:Ae,disableUnderline:xe,startAdornment:Ee,endAdornment:Se,size:Ce,hiddenLabel:_e,multiline:Ie}=t,Be={root:["root",!xe&&"underline",Ee&&"adornedStart",Se&&"adornedEnd",Ce==="small"&&`size${capitalize$1(Ce)}`,_e&&"hiddenLabel",Ie&&"multiline"],input:["input"]},Te=composeClasses(Be,getFilledInputUtilityClass,Ae);return{...Ae,...Te}},FilledInputRoot=styled(InputBaseRoot,{shouldForwardProp:t=>rootShouldForwardProp(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[...rootOverridesResolver(t,Ae),!xe.disableUnderline&&Ae.underline]}})(memoTheme(({theme:t})=>{const Ae=t.palette.mode==="light",xe=Ae?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",Ee=Ae?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",Se=Ae?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",Ce=Ae?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:Ee,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:Se,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:Ee}},[`&.${filledInputClasses.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:Ee},[`&.${filledInputClasses.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:Ce},variants:[{props:({ownerState:_e})=>!_e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${filledInputClasses.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${filledInputClasses.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:xe}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${filledInputClasses.disabled}, .${filledInputClasses.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${filledInputClasses.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(createSimplePaletteValueFilter()).map(([_e])=>{var Ie;return{props:{disableUnderline:!1,color:_e},style:{"&::after":{borderBottom:`2px solid ${(Ie=(t.vars||t).palette[_e])==null?void 0:Ie.main}`}}}}),{props:({ownerState:_e})=>_e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:_e})=>_e.endAdornment,style:{paddingRight:12}},{props:({ownerState:_e})=>_e.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:_e,size:Ie})=>_e.multiline&&Ie==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:_e})=>_e.multiline&&_e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:_e})=>_e.multiline&&_e.hiddenLabel&&_e.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),FilledInputInput=styled(InputBaseInput,{name:"MuiFilledInput",slot:"Input",overridesResolver:inputOverridesResolver})(memoTheme(({theme:t})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.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:Ae})=>Ae.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:Ae})=>Ae.startAdornment,style:{paddingLeft:0}},{props:({ownerState:Ae})=>Ae.endAdornment,style:{paddingRight:0}},{props:({ownerState:Ae})=>Ae.hiddenLabel&&Ae.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:Ae})=>Ae.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),FilledInput=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiFilledInput"}),{disableUnderline:Se=!1,components:Ce={},componentsProps:_e,fullWidth:Ie=!1,hiddenLabel:Be,inputComponent:Te="input",multiline:Pe=!1,slotProps:ke,slots:$e={},type:Oe="text",...Ue}=Ee,qe={...Ee,disableUnderline:Se,fullWidth:Ie,inputComponent:Te,multiline:Pe,type:Oe},ze=useUtilityClasses$1x(Ee),Qe={root:{ownerState:qe},input:{ownerState:qe}},Ge=ke??_e?deepmerge(Qe,ke??_e):Qe,Xe=$e.root??Ce.Root??FilledInputRoot,er=$e.input??Ce.Input??FilledInputInput;return jsxRuntimeExports.jsx(InputBase,{slots:{root:Xe,input:er},slotProps:Ge,fullWidth:Ie,inputComponent:Te,multiline:Pe,ref:xe,type:Oe,...Ue,classes:ze})});FilledInput.muiName="Input";var _span$3;const NotchedOutlineRoot$1=styled("fieldset",{shouldForwardProp:rootShouldForwardProp})({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%"}),NotchedOutlineLegend=styled("legend",{shouldForwardProp:rootShouldForwardProp})(memoTheme(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:Ae})=>!Ae.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:Ae})=>Ae.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:Ae})=>Ae.withLabel&&Ae.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function NotchedOutline(t){const{children:Ae,classes:xe,className:Ee,label:Se,notched:Ce,..._e}=t,Ie=Se!=null&&Se!=="",Be={...t,notched:Ce,withLabel:Ie};return jsxRuntimeExports.jsx(NotchedOutlineRoot$1,{"aria-hidden":!0,className:Ee,ownerState:Be,..._e,children:jsxRuntimeExports.jsx(NotchedOutlineLegend,{ownerState:Be,children:Ie?jsxRuntimeExports.jsx("span",{children:Se}):_span$3||(_span$3=jsxRuntimeExports.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}function getOutlinedInputUtilityClass(t){return generateUtilityClass("MuiOutlinedInput",t)}const outlinedInputClasses={...inputBaseClasses,...generateUtilityClasses("MuiOutlinedInput",["root","notchedOutline","input"])},useUtilityClasses$1w=t=>{const{classes:Ae}=t,Ee=composeClasses({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},getOutlinedInputUtilityClass,Ae);return{...Ae,...Ee}},OutlinedInputRoot=styled(InputBaseRoot,{shouldForwardProp:t=>rootShouldForwardProp(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:rootOverridesResolver})(memoTheme(({theme:t})=>{const Ae=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${outlinedInputClasses.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${outlinedInputClasses.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:Ae}},[`&.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(createSimplePaletteValueFilter()).map(([xe])=>({props:{color:xe},style:{[`&.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]:{borderColor:(t.vars||t).palette[xe].main}}})),{props:{},style:{[`&.${outlinedInputClasses.error} .${outlinedInputClasses.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${outlinedInputClasses.disabled} .${outlinedInputClasses.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:xe})=>xe.startAdornment,style:{paddingLeft:14}},{props:({ownerState:xe})=>xe.endAdornment,style:{paddingRight:14}},{props:({ownerState:xe})=>xe.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:xe,size:Ee})=>xe.multiline&&Ee==="small",style:{padding:"8.5px 14px"}}]}})),NotchedOutlineRoot=styled(NotchedOutline,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,Ae)=>Ae.notchedOutline})(memoTheme(({theme:t})=>{const Ae=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:Ae}})),OutlinedInputInput=styled(InputBaseInput,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:inputOverridesResolver})(memoTheme(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.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:Ae})=>Ae.multiline,style:{padding:0}},{props:({ownerState:Ae})=>Ae.startAdornment,style:{paddingLeft:0}},{props:({ownerState:Ae})=>Ae.endAdornment,style:{paddingRight:0}}]}))),OutlinedInput=reactExports.forwardRef(function(Ae,xe){var Ee;const Se=useDefaultProps({props:Ae,name:"MuiOutlinedInput"}),{components:Ce={},fullWidth:_e=!1,inputComponent:Ie="input",label:Be,multiline:Te=!1,notched:Pe,slots:ke={},type:$e="text",...Oe}=Se,Ue=useUtilityClasses$1w(Se),qe=useFormControl(),ze=formControlState({props:Se,muiFormControl:qe,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),Qe={...Se,color:ze.color||"primary",disabled:ze.disabled,error:ze.error,focused:ze.focused,formControl:qe,fullWidth:_e,hiddenLabel:ze.hiddenLabel,multiline:Te,size:ze.size,type:$e},Ge=ke.root??Ce.Root??OutlinedInputRoot,Xe=ke.input??Ce.Input??OutlinedInputInput;return jsxRuntimeExports.jsx(InputBase,{slots:{root:Ge,input:Xe},renderSuffix:er=>jsxRuntimeExports.jsx(NotchedOutlineRoot,{ownerState:Qe,className:Ue.notchedOutline,label:Be!=null&&Be!==""&&ze.required?Ee||(Ee=jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[Be," ","*"]})):Be,notched:typeof Pe<"u"?Pe:!!(er.startAdornment||er.filled||er.focused)}),fullWidth:_e,inputComponent:Ie,multiline:Te,ref:xe,type:$e,...Oe,classes:{...Ue,notchedOutline:null}})});OutlinedInput.muiName="Input";function getFormLabelUtilityClasses(t){return generateUtilityClass("MuiFormLabel",t)}const formLabelClasses=generateUtilityClasses("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),useUtilityClasses$1v=t=>{const{classes:Ae,color:xe,focused:Ee,disabled:Se,error:Ce,filled:_e,required:Ie}=t,Be={root:["root",`color${capitalize$1(xe)}`,Se&&"disabled",Ce&&"error",_e&&"filled",Ee&&"focused",Ie&&"required"],asterisk:["asterisk",Ce&&"error"]};return composeClasses(Be,getFormLabelUtilityClasses,Ae)},FormLabelRoot=styled("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,xe.color==="secondary"&&Ae.colorSecondary,xe.filled&&Ae.filled]}})(memoTheme(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(createSimplePaletteValueFilter()).map(([Ae])=>({props:{color:Ae},style:{[`&.${formLabelClasses.focused}`]:{color:(t.vars||t).palette[Ae].main}}})),{props:{},style:{[`&.${formLabelClasses.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${formLabelClasses.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),AsteriskComponent$1=styled("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,Ae)=>Ae.asterisk})(memoTheme(({theme:t})=>({[`&.${formLabelClasses.error}`]:{color:(t.vars||t).palette.error.main}}))),FormLabel=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiFormLabel"}),{children:Se,className:Ce,color:_e,component:Ie="label",disabled:Be,error:Te,filled:Pe,focused:ke,required:$e,...Oe}=Ee,Ue=useFormControl(),qe=formControlState({props:Ee,muiFormControl:Ue,states:["color","required","focused","disabled","error","filled"]}),ze={...Ee,color:qe.color||"primary",component:Ie,disabled:qe.disabled,error:qe.error,filled:qe.filled,focused:qe.focused,required:qe.required},Qe=useUtilityClasses$1v(ze);return jsxRuntimeExports.jsxs(FormLabelRoot,{as:Ie,ownerState:ze,className:clsx(Qe.root,Ce),ref:xe,...Oe,children:[Se,qe.required&&jsxRuntimeExports.jsxs(AsteriskComponent$1,{ownerState:ze,"aria-hidden":!0,className:Qe.asterisk,children:[" ","*"]})]})});function getInputLabelUtilityClasses(t){return generateUtilityClass("MuiInputLabel",t)}generateUtilityClasses("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const useUtilityClasses$1u=t=>{const{classes:Ae,formControl:xe,size:Ee,shrink:Se,disableAnimation:Ce,variant:_e,required:Ie}=t,Be={root:["root",xe&&"formControl",!Ce&&"animated",Se&&"shrink",Ee&&Ee!=="normal"&&`size${capitalize$1(Ee)}`,_e],asterisk:[Ie&&"asterisk"]},Te=composeClasses(Be,getInputLabelUtilityClasses,Ae);return{...Ae,...Te}},InputLabelRoot=styled(FormLabel,{shouldForwardProp:t=>rootShouldForwardProp(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[{[`& .${formLabelClasses.asterisk}`]:Ae.asterisk},Ae.root,xe.formControl&&Ae.formControl,xe.size==="small"&&Ae.sizeSmall,xe.shrink&&Ae.shrink,!xe.disableAnimation&&Ae.animated,xe.focused&&Ae.focused,Ae[xe.variant]]}})(memoTheme(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:Ae})=>Ae.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:Ae})=>Ae.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:Ae})=>!Ae.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.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:Ae,ownerState:xe})=>Ae==="filled"&&xe.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:Ae,ownerState:xe,size:Ee})=>Ae==="filled"&&xe.shrink&&Ee==="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:Ae,ownerState:xe})=>Ae==="outlined"&&xe.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),InputLabel=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({name:"MuiInputLabel",props:Ae}),{disableAnimation:Se=!1,margin:Ce,shrink:_e,variant:Ie,className:Be,...Te}=Ee,Pe=useFormControl();let ke=_e;typeof ke>"u"&&Pe&&(ke=Pe.filled||Pe.focused||Pe.adornedStart);const $e=formControlState({props:Ee,muiFormControl:Pe,states:["size","variant","required","focused"]}),Oe={...Ee,disableAnimation:Se,formControl:Pe,shrink:ke,size:$e.size,variant:$e.variant,required:$e.required,focused:$e.focused},Ue=useUtilityClasses$1u(Oe);return jsxRuntimeExports.jsx(InputLabelRoot,{"data-shrink":ke,ref:xe,className:clsx(Ue.root,Be),...Te,ownerState:Oe,classes:Ue})});function getFormControlUtilityClasses(t){return generateUtilityClass("MuiFormControl",t)}generateUtilityClasses("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const useUtilityClasses$1t=t=>{const{classes:Ae,margin:xe,fullWidth:Ee}=t,Se={root:["root",xe!=="none"&&`margin${capitalize$1(xe)}`,Ee&&"fullWidth"]};return composeClasses(Se,getFormControlUtilityClasses,Ae)},FormControlRoot=styled("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,Ae[`margin${capitalize$1(xe.margin)}`],xe.fullWidth&&Ae.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%"}}]}),FormControl=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiFormControl"}),{children:Se,className:Ce,color:_e="primary",component:Ie="div",disabled:Be=!1,error:Te=!1,focused:Pe,fullWidth:ke=!1,hiddenLabel:$e=!1,margin:Oe="none",required:Ue=!1,size:qe="medium",variant:ze="outlined",...Qe}=Ee,Ge={...Ee,color:_e,component:Ie,disabled:Be,error:Te,fullWidth:ke,hiddenLabel:$e,margin:Oe,required:Ue,size:qe,variant:ze},Xe=useUtilityClasses$1t(Ge),[er,tr]=reactExports.useState(()=>{let He=!1;return Se&&reactExports.Children.forEach(Se,Ve=>{if(!isMuiElement(Ve,["Input","Select"]))return;const Ye=isMuiElement(Ve,["Select"])?Ve.props.input:Ve;Ye&&isAdornedStart(Ye.props)&&(He=!0)}),He}),[nr,sr]=reactExports.useState(()=>{let He=!1;return Se&&reactExports.Children.forEach(Se,Ve=>{isMuiElement(Ve,["Input","Select"])&&(isFilled(Ve.props,!0)||isFilled(Ve.props.inputProps,!0))&&(He=!0)}),He}),[dr,ar]=reactExports.useState(!1);Be&&dr&&ar(!1);const lr=Pe!==void 0&&!Be?Pe:dr;let Ke;reactExports.useRef(!1);const Me=reactExports.useCallback(()=>{sr(!0)},[]),je=reactExports.useCallback(()=>{sr(!1)},[]),De=reactExports.useMemo(()=>({adornedStart:er,setAdornedStart:tr,color:_e,disabled:Be,error:Te,filled:nr,focused:lr,fullWidth:ke,hiddenLabel:$e,size:qe,onBlur:()=>{ar(!1)},onFocus:()=>{ar(!0)},onEmpty:je,onFilled:Me,registerEffect:Ke,required:Ue,variant:ze}),[er,_e,Be,Te,nr,lr,ke,$e,Ke,je,Me,Ue,qe,ze]);return jsxRuntimeExports.jsx(FormControlContext.Provider,{value:De,children:jsxRuntimeExports.jsx(FormControlRoot,{as:Ie,ownerState:Ge,className:clsx(Xe.root,Ce),ref:xe,...Qe,children:Se})})});function getFormHelperTextUtilityClasses(t){return generateUtilityClass("MuiFormHelperText",t)}const formHelperTextClasses=generateUtilityClasses("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var _span$2;const useUtilityClasses$1s=t=>{const{classes:Ae,contained:xe,size:Ee,disabled:Se,error:Ce,filled:_e,focused:Ie,required:Be}=t,Te={root:["root",Se&&"disabled",Ce&&"error",Ee&&`size${capitalize$1(Ee)}`,xe&&"contained",Ie&&"focused",_e&&"filled",Be&&"required"]};return composeClasses(Te,getFormHelperTextUtilityClasses,Ae)},FormHelperTextRoot=styled("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,xe.size&&Ae[`size${capitalize$1(xe.size)}`],xe.contained&&Ae.contained,xe.filled&&Ae.filled]}})(memoTheme(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${formHelperTextClasses.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${formHelperTextClasses.error}`]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:Ae})=>Ae.contained,style:{marginLeft:14,marginRight:14}}]}))),FormHelperText=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiFormHelperText"}),{children:Se,className:Ce,component:_e="p",disabled:Ie,error:Be,filled:Te,focused:Pe,margin:ke,required:$e,variant:Oe,...Ue}=Ee,qe=useFormControl(),ze=formControlState({props:Ee,muiFormControl:qe,states:["variant","size","disabled","error","filled","focused","required"]}),Qe={...Ee,component:_e,contained:ze.variant==="filled"||ze.variant==="outlined",variant:ze.variant,size:ze.size,disabled:ze.disabled,error:ze.error,filled:ze.filled,focused:ze.focused,required:ze.required};delete Qe.ownerState;const Ge=useUtilityClasses$1s(Qe);return jsxRuntimeExports.jsx(FormHelperTextRoot,{as:_e,className:clsx(Ge.root,Ce),ref:xe,...Ue,ownerState:Qe,children:Se===" "?_span$2||(_span$2=jsxRuntimeExports.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Se})});function getNativeSelectUtilityClasses(t){return generateUtilityClass("MuiNativeSelect",t)}const nativeSelectClasses=generateUtilityClasses("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),useUtilityClasses$1r=t=>{const{classes:Ae,variant:xe,disabled:Ee,multiple:Se,open:Ce,error:_e}=t,Ie={select:["select",xe,Ee&&"disabled",Se&&"multiple",_e&&"error"],icon:["icon",`icon${capitalize$1(xe)}`,Ce&&"iconOpen",Ee&&"disabled"]};return composeClasses(Ie,getNativeSelectUtilityClasses,Ae)},StyledSelectSelect=styled("select")(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${nativeSelectClasses.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:Ae})=>Ae.variant!=="filled"&&Ae.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),NativeSelectSelect=styled(StyledSelectSelect,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:rootShouldForwardProp,overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.select,Ae[xe.variant],xe.error&&Ae.error,{[`&.${nativeSelectClasses.multiple}`]:Ae.multiple}]}})({}),StyledSelectIcon=styled("svg")(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${nativeSelectClasses.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:Ae})=>Ae.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),NativeSelectIcon=styled(StyledSelectIcon,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.icon,xe.variant&&Ae[`icon${capitalize$1(xe.variant)}`],xe.open&&Ae.iconOpen]}})({}),NativeSelectInput=reactExports.forwardRef(function(Ae,xe){const{className:Ee,disabled:Se,error:Ce,IconComponent:_e,inputRef:Ie,variant:Be="standard",...Te}=Ae,Pe={...Ae,disabled:Se,variant:Be,error:Ce},ke=useUtilityClasses$1r(Pe);return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(NativeSelectSelect,{ownerState:Pe,className:clsx(ke.select,Ee),disabled:Se,ref:Ie||xe,...Te}),Ae.multiple?null:jsxRuntimeExports.jsx(NativeSelectIcon,{as:_e,ownerState:Pe,className:ke.icon})]})});function getSelectUtilityClasses(t){return generateUtilityClass("MuiSelect",t)}const selectClasses=generateUtilityClasses("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var _span$1;const SelectSelect=styled(StyledSelectSelect,{name:"MuiSelect",slot:"Select",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[{[`&.${selectClasses.select}`]:Ae.select},{[`&.${selectClasses.select}`]:Ae[xe.variant]},{[`&.${selectClasses.error}`]:Ae.error},{[`&.${selectClasses.multiple}`]:Ae.multiple}]}})({[`&.${selectClasses.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),SelectIcon=styled(StyledSelectIcon,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.icon,xe.variant&&Ae[`icon${capitalize$1(xe.variant)}`],xe.open&&Ae.iconOpen]}})({}),SelectNativeInput=styled("input",{shouldForwardProp:t=>slotShouldForwardProp(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,Ae)=>Ae.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function areEqualValues$1(t,Ae){return typeof Ae=="object"&&Ae!==null?t===Ae:String(t)===String(Ae)}function isEmpty(t){return t==null||typeof t=="string"&&!t.trim()}const useUtilityClasses$1q=t=>{const{classes:Ae,variant:xe,disabled:Ee,multiple:Se,open:Ce,error:_e}=t,Ie={select:["select",xe,Ee&&"disabled",Se&&"multiple",_e&&"error"],icon:["icon",`icon${capitalize$1(xe)}`,Ce&&"iconOpen",Ee&&"disabled"],nativeInput:["nativeInput"]};return composeClasses(Ie,getSelectUtilityClasses,Ae)},SelectInput=reactExports.forwardRef(function(Ae,xe){var Kr;const{"aria-describedby":Ee,"aria-label":Se,autoFocus:Ce,autoWidth:_e,children:Ie,className:Be,defaultOpen:Te,defaultValue:Pe,disabled:ke,displayEmpty:$e,error:Oe=!1,IconComponent:Ue,inputRef:qe,labelId:ze,MenuProps:Qe={},multiple:Ge,name:Xe,onBlur:er,onChange:tr,onClose:nr,onFocus:sr,onOpen:dr,open:ar,readOnly:lr,renderValue:Ke,required:Me,SelectDisplayProps:je={},tabIndex:De,type:He,value:Ve,variant:Ye="standard",...St}=Ae,[We,Fe]=useControlled({controlled:Ve,default:Pe,name:"Select"}),[Ze,ir]=useControlled({controlled:ar,default:Te,name:"Select"}),ur=reactExports.useRef(null),fr=reactExports.useRef(null),[Ar,vr]=reactExports.useState(null),{current:yr}=reactExports.useRef(ar!=null),[br,_r]=reactExports.useState(),$r=useForkRef(xe,qe),Fr=reactExports.useCallback(Dr=>{fr.current=Dr,Dr&&vr(Dr)},[]),Ir=Ar==null?void 0:Ar.parentNode;reactExports.useImperativeHandle($r,()=>({focus:()=>{fr.current.focus()},node:ur.current,value:We}),[We]),reactExports.useEffect(()=>{Te&&Ze&&Ar&&!yr&&(_r(_e?null:Ir.clientWidth),fr.current.focus())},[Ar,_e]),reactExports.useEffect(()=>{Ce&&fr.current.focus()},[Ce]),reactExports.useEffect(()=>{if(!ze)return;const Dr=ownerDocument(fr.current).getElementById(ze);if(Dr){const qr=()=>{getSelection().isCollapsed&&fr.current.focus()};return Dr.addEventListener("click",qr),()=>{Dr.removeEventListener("click",qr)}}},[ze]);const zr=(Dr,qr)=>{Dr?dr&&dr(qr):nr&&nr(qr),yr||(_r(_e?null:Ir.clientWidth),ir(Dr))},dn=Dr=>{Dr.button===0&&(Dr.preventDefault(),fr.current.focus(),zr(!0,Dr))},tn=Dr=>{zr(!1,Dr)},Gr=reactExports.Children.toArray(Ie),wn=Dr=>{const qr=Gr.find(Ur=>Ur.props.value===Dr.target.value);qr!==void 0&&(Fe(qr.props.value),tr&&tr(Dr,qr))},an=Dr=>qr=>{let Ur;if(qr.currentTarget.hasAttribute("tabindex")){if(Ge){Ur=Array.isArray(We)?We.slice():[];const Bn=We.indexOf(Dr.props.value);Bn===-1?Ur.push(Dr.props.value):Ur.splice(Bn,1)}else Ur=Dr.props.value;if(Dr.props.onClick&&Dr.props.onClick(qr),We!==Ur&&(Fe(Ur),tr)){const Bn=qr.nativeEvent||qr,In=new Bn.constructor(Bn.type,Bn);Object.defineProperty(In,"target",{writable:!0,value:{value:Ur,name:Xe}}),tr(In,Dr)}Ge||zr(!1,qr)}},Vr=Dr=>{lr||[" ","ArrowUp","ArrowDown","Enter"].includes(Dr.key)&&(Dr.preventDefault(),zr(!0,Dr))},Rn=Ar!==null&&Ze,un=Dr=>{!Rn&&er&&(Object.defineProperty(Dr,"target",{writable:!0,value:{value:We,name:Xe}}),er(Dr))};delete St["aria-invalid"];let sn,jn;const en=[];let Jr=!1;(isFilled({value:We})||$e)&&(Ke?sn=Ke(We):Jr=!0);const nn=Gr.map(Dr=>{if(!reactExports.isValidElement(Dr))return null;let qr;if(Ge){if(!Array.isArray(We))throw new Error(formatMuiErrorMessage(2));qr=We.some(Ur=>areEqualValues$1(Ur,Dr.props.value)),qr&&Jr&&en.push(Dr.props.children)}else qr=areEqualValues$1(We,Dr.props.value),qr&&Jr&&(jn=Dr.props.children);return reactExports.cloneElement(Dr,{"aria-selected":qr?"true":"false",onClick:an(Dr),onKeyUp:Ur=>{Ur.key===" "&&Ur.preventDefault(),Dr.props.onKeyUp&&Dr.props.onKeyUp(Ur)},role:"option",selected:qr,value:void 0,"data-value":Dr.props.value})});Jr&&(Ge?en.length===0?sn=null:sn=en.reduce((Dr,qr,Ur)=>(Dr.push(qr),Ur<en.length-1&&Dr.push(", "),Dr),[]):sn=jn);let rn=br;!_e&&yr&&Ar&&(rn=Ir.clientWidth);let cn;typeof De<"u"?cn=De:cn=ke?null:0;const pn=je.id||(Xe?`mui-component-select-${Xe}`:void 0),Mr={...Ae,variant:Ye,value:We,open:Rn,error:Oe},gr=useUtilityClasses$1q(Mr),Br={...Qe.PaperProps,...(Kr=Qe.slotProps)==null?void 0:Kr.paper},Hr=useId();return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(SelectSelect,{as:"div",ref:Fr,tabIndex:cn,role:"combobox","aria-controls":Rn?Hr:void 0,"aria-disabled":ke?"true":void 0,"aria-expanded":Rn?"true":"false","aria-haspopup":"listbox","aria-label":Se,"aria-labelledby":[ze,pn].filter(Boolean).join(" ")||void 0,"aria-describedby":Ee,"aria-required":Me?"true":void 0,"aria-invalid":Oe?"true":void 0,onKeyDown:Vr,onMouseDown:ke||lr?null:dn,onBlur:un,onFocus:sr,...je,ownerState:Mr,className:clsx(je.className,gr.select,Be),id:pn,children:isEmpty(sn)?_span$1||(_span$1=jsxRuntimeExports.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):sn}),jsxRuntimeExports.jsx(SelectNativeInput,{"aria-invalid":Oe,value:Array.isArray(We)?We.join(","):We,name:Xe,ref:ur,"aria-hidden":!0,onChange:wn,tabIndex:-1,disabled:ke,className:gr.nativeInput,autoFocus:Ce,required:Me,...St,ownerState:Mr}),jsxRuntimeExports.jsx(SelectIcon,{as:Ue,className:gr.icon,ownerState:Mr}),jsxRuntimeExports.jsx(Menu,{id:`menu-${Xe||""}`,anchorEl:Ir,open:Rn,onClose:tn,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...Qe,slotProps:{...Qe.slotProps,list:{"aria-labelledby":ze,role:"listbox","aria-multiselectable":Ge?"true":void 0,disableListWrap:!0,id:Hr,...Qe.MenuListProps},paper:{...Br,style:{minWidth:rn,...Br!=null?Br.style:null}}},children:nn})]})}),ArrowDropDownIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),useUtilityClasses$1p=t=>{const{classes:Ae}=t,Ee=composeClasses({root:["root"]},getSelectUtilityClasses,Ae);return{...Ae,...Ee}},styledRootConfig={name:"MuiSelect",overridesResolver:(t,Ae)=>Ae.root,shouldForwardProp:t=>rootShouldForwardProp(t)&&t!=="variant",slot:"Root"},StyledInput=styled(Input,styledRootConfig)(""),StyledOutlinedInput=styled(OutlinedInput,styledRootConfig)(""),StyledFilledInput=styled(FilledInput,styledRootConfig)(""),Select=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({name:"MuiSelect",props:Ae}),{autoWidth:Se=!1,children:Ce,classes:_e={},className:Ie,defaultOpen:Be=!1,displayEmpty:Te=!1,IconComponent:Pe=ArrowDropDownIcon,id:ke,input:$e,inputProps:Oe,label:Ue,labelId:qe,MenuProps:ze,multiple:Qe=!1,native:Ge=!1,onClose:Xe,onOpen:er,open:tr,renderValue:nr,SelectDisplayProps:sr,variant:dr="outlined",...ar}=Ee,lr=Ge?NativeSelectInput:SelectInput,Ke=useFormControl(),Me=formControlState({props:Ee,muiFormControl:Ke,states:["variant","error"]}),je=Me.variant||dr,De={...Ee,variant:je,classes:_e},He=useUtilityClasses$1p(De),{root:Ve,...Ye}=He,St=$e||{standard:jsxRuntimeExports.jsx(StyledInput,{ownerState:De}),outlined:jsxRuntimeExports.jsx(StyledOutlinedInput,{label:Ue,ownerState:De}),filled:jsxRuntimeExports.jsx(StyledFilledInput,{ownerState:De})}[je],We=useForkRef(xe,getReactElementRef(St));return jsxRuntimeExports.jsx(reactExports.Fragment,{children:reactExports.cloneElement(St,{inputComponent:lr,inputProps:{children:Ce,error:Me.error,IconComponent:Pe,variant:je,type:void 0,multiple:Qe,...Ge?{id:ke}:{autoWidth:Se,defaultOpen:Be,displayEmpty:Te,labelId:qe,MenuProps:ze,onClose:Xe,onOpen:er,open:tr,renderValue:nr,SelectDisplayProps:{id:ke,...sr}},...Oe,classes:Oe?deepmerge(Ye,Oe.classes):Ye,...$e?$e.props.inputProps:{}},...(Qe&&Ge||Te)&&je==="outlined"?{notched:!0}:{},ref:We,className:clsx(St.props.className,Ie,He.root),...!$e&&{variant:je},...ar})})});Select.muiName="Select";function getTextFieldUtilityClass(t){return generateUtilityClass("MuiTextField",t)}generateUtilityClasses("MuiTextField",["root"]);const variantComponent={standard:Input,filled:FilledInput,outlined:OutlinedInput},useUtilityClasses$1o=t=>{const{classes:Ae}=t;return composeClasses({root:["root"]},getTextFieldUtilityClass,Ae)},TextFieldRoot=styled(FormControl,{name:"MuiTextField",slot:"Root",overridesResolver:(t,Ae)=>Ae.root})({}),TextField=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiTextField"}),{autoComplete:Se,autoFocus:Ce=!1,children:_e,className:Ie,color:Be="primary",defaultValue:Te,disabled:Pe=!1,error:ke=!1,FormHelperTextProps:$e,fullWidth:Oe=!1,helperText:Ue,id:qe,InputLabelProps:ze,inputProps:Qe,InputProps:Ge,inputRef:Xe,label:er,maxRows:tr,minRows:nr,multiline:sr=!1,name:dr,onBlur:ar,onChange:lr,onFocus:Ke,placeholder:Me,required:je=!1,rows:De,select:He=!1,SelectProps:Ve,slots:Ye={},slotProps:St={},type:We,value:Fe,variant:Ze="outlined",...ir}=Ee,ur={...Ee,autoFocus:Ce,color:Be,disabled:Pe,error:ke,fullWidth:Oe,multiline:sr,required:je,select:He,variant:Ze},fr=useUtilityClasses$1o(ur),Ar=useId(qe),vr=Ue&&Ar?`${Ar}-helper-text`:void 0,yr=er&&Ar?`${Ar}-label`:void 0,br=variantComponent[Ze],_r={slots:Ye,slotProps:{input:Ge,inputLabel:ze,htmlInput:Qe,formHelperText:$e,select:Ve,...St}},$r={},Fr=_r.slotProps.inputLabel;Ze==="outlined"&&(Fr&&typeof Fr.shrink<"u"&&($r.notched=Fr.shrink),$r.label=er),He&&((!Ve||!Ve.native)&&($r.id=void 0),$r["aria-describedby"]=void 0);const[Ir,zr]=useSlot("input",{elementType:br,externalForwardedProps:_r,additionalProps:$r,ownerState:ur}),[dn,tn]=useSlot("inputLabel",{elementType:InputLabel,externalForwardedProps:_r,ownerState:ur}),[Gr,wn]=useSlot("htmlInput",{elementType:"input",externalForwardedProps:_r,ownerState:ur}),[an,Vr]=useSlot("formHelperText",{elementType:FormHelperText,externalForwardedProps:_r,ownerState:ur}),[Rn,un]=useSlot("select",{elementType:Select,externalForwardedProps:_r,ownerState:ur}),sn=jsxRuntimeExports.jsx(Ir,{"aria-describedby":vr,autoComplete:Se,autoFocus:Ce,defaultValue:Te,fullWidth:Oe,multiline:sr,name:dr,rows:De,maxRows:tr,minRows:nr,type:We,value:Fe,id:Ar,inputRef:Xe,onBlur:ar,onChange:lr,onFocus:Ke,placeholder:Me,inputProps:wn,slots:{input:Ye.htmlInput?Gr:void 0},...zr});return jsxRuntimeExports.jsxs(TextFieldRoot,{className:clsx(fr.root,Ie),disabled:Pe,error:ke,fullWidth:Oe,ref:xe,required:je,color:Be,variant:Ze,ownerState:ur,...ir,children:[er!=null&&er!==""&&jsxRuntimeExports.jsx(dn,{htmlFor:Ar,id:yr,...tn,children:er}),He?jsxRuntimeExports.jsx(Rn,{"aria-describedby":vr,id:Ar,labelId:yr,value:Fe,input:sn,...un,children:_e}):sn,Ue&&jsxRuntimeExports.jsx(an,{id:vr,...Vr,children:Ue})]})}),StatusIndicator=({status:t})=>{const xe={connected:{color:"success.main",text:"Connected to promptfoo API"},blocked:{color:"error.main",text:"Cannot connect to promptfoo API"},loading:{color:"info.main",text:"Checking connection..."},unknown:{color:"grey.500",text:"Checking connection status..."},disabled:{color:"grey.400",text:"Remote generation is disabled"}}[t];return jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[jsxRuntimeExports.jsx(CircleIcon,{sx:{color:xe.color,fontSize:"12px"}}),jsxRuntimeExports.jsx(Typography,{variant:"body2",children:xe.text})]})};function ApiSettingsModal({open:t,onClose:Ae}){const{apiBaseUrl:xe,setApiBaseUrl:Ee,enablePersistApiBaseUrl:Se}=useApiConfig(),[Ce,_e]=reactExports.useState(xe||""),{status:Ie,message:Be,checkHealth:Te,isChecking:Pe}=useApiHealth(),[ke,$e]=reactExports.useState(!1);reactExports.useEffect(()=>{t&&Te()},[t,Te]),reactExports.useEffect(()=>{_e(xe||"")},[xe]);const Oe=ze=>{_e(ze.target.value)},Ue=async()=>{try{$e(!0),Ee(Ce),Se(),await Te(),Ae()}finally{$e(!1)}},qe=Ie==="loading"||Pe||ke;return jsxRuntimeExports.jsxs(Dialog,{open:t,onClose:Ae,maxWidth:"xs",fullWidth:!0,"aria-labelledby":"api-settings-dialog-title",children:[jsxRuntimeExports.jsx(DialogTitle,{id:"api-settings-dialog-title",children:"API and Sharing Settings"}),jsxRuntimeExports.jsxs(DialogContent,{children:[jsxRuntimeExports.jsxs(Box,{sx:{mb:3},children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1},children:[jsxRuntimeExports.jsx(StatusIndicator,{status:Ie}),jsxRuntimeExports.jsx(Tooltip$2,{title:"Check connection",children:jsxRuntimeExports.jsx("span",{children:jsxRuntimeExports.jsx(IconButton,{onClick:Te,size:"small",disabled:Pe,children:Pe?jsxRuntimeExports.jsx(CircularProgress,{size:20}):jsxRuntimeExports.jsx(RefreshIcon,{})})})})]}),Be&&Ie!=="unknown"&&Ie!=="loading"&&jsxRuntimeExports.jsx(Alert,{severity:Ie==="connected"?"success":"error",sx:{mt:1},children:Be})]}),jsxRuntimeExports.jsx(Typography,{variant:"h6",children:"API"}),jsxRuntimeExports.jsx(TextField,{label:"API Base URL",helperText:"The promptfoo API the webview will connect to",value:Ce,onChange:Oe,fullWidth:!0,margin:"normal",disabled:qe})]}),jsxRuntimeExports.jsxs(DialogActions,{children:[jsxRuntimeExports.jsx(Button,{onClick:Ue,disabled:qe,startIcon:ke&&jsxRuntimeExports.jsx(CircularProgress,{size:20}),children:"Save"}),jsxRuntimeExports.jsx(Button,{onClick:Ae,disabled:qe,children:"Close"})]})]})}const DarkModeIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkMode"),LightModeIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightMode"),StyledIconButton=styled(IconButton)(({theme:t})=>({padding:8,borderRadius:"50%",transition:t.transitions.create(["background-color","transform"],{duration:t.transitions.duration.standard}),"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)",transform:"rotate(15deg)"}})),AnimatedIcon=styled("div")(({theme:t})=>({display:"flex",transition:t.transitions.create(["opacity","transform"],{duration:t.transitions.duration.standard})})),DarkModeToggle=React.memo(({onToggleDarkMode:t})=>{const xe=useTheme().palette.mode==="dark";return jsxRuntimeExports.jsxs(StyledIconButton,{onClick:t,"aria-label":xe?"Switch to light mode":"Switch to dark mode",children:[jsxRuntimeExports.jsx(AnimatedIcon,{sx:{opacity:xe?1:0,transform:xe?"rotate(0deg)":"rotate(-90deg)",position:"absolute"},children:jsxRuntimeExports.jsx(DarkModeIcon,{})}),jsxRuntimeExports.jsx(AnimatedIcon,{sx:{opacity:xe?0:1,transform:xe?"rotate(90deg)":"rotate(0deg)"},children:jsxRuntimeExports.jsx(LightModeIcon,{})})]})});DarkModeToggle.displayName="DarkModeToggle";const BugReportIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20zm-6 8h-4v-2h4zm0-4h-4v-2h4z"}),"BugReport"),CalendarTodayIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday"),ForumIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1m-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1"}),"Forum"),GitHubIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub"),MenuBookIcon=createSvgIcon([jsxRuntimeExports.jsx("path",{d:"M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5 1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5V6c-.6-.45-1.25-.75-2-1m0 13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5V8c1.35-.85 3.8-1.5 5.5-1.5 1.2 0 2.4.15 3.5.5z"},"0"),jsxRuntimeExports.jsx("path",{d:"M17.5 10.5c.88 0 1.73.09 2.5.26V9.24c-.79-.15-1.64-.24-2.5-.24-1.7 0-3.24.29-4.5.83v1.66c1.13-.64 2.7-.99 4.5-.99M13 12.49v1.66c1.13-.64 2.7-.99 4.5-.99.88 0 1.73.09 2.5.26V11.9c-.79-.15-1.64-.24-2.5-.24-1.7 0-3.24.3-4.5.83m4.5 1.84c-1.7 0-3.24.29-4.5.83v1.66c1.13-.64 2.7-.99 4.5-.99.88 0 1.73.09 2.5.26v-1.52c-.79-.16-1.64-.24-2.5-.24"},"1")],"MenuBook"),WorkIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-6 0h-4V4h4z"}),"Work");function getLinkUtilityClass(t){return generateUtilityClass("MuiLink",t)}const linkClasses=generateUtilityClasses("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),getTextDecoration=({theme:t,ownerState:Ae})=>{const xe=Ae.color,Ee=getPath(t,`palette.${xe}.main`,!1)||getPath(t,`palette.${xe}`,!1)||Ae.color,Se=getPath(t,`palette.${xe}.mainChannel`)||getPath(t,`palette.${xe}Channel`);return"vars"in t&&Se?`rgba(${Se} / 0.4)`:alpha$3(Ee,.4)},v6Colors={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},useUtilityClasses$1n=t=>{const{classes:Ae,component:xe,focusVisible:Ee,underline:Se}=t,Ce={root:["root",`underline${capitalize$1(Se)}`,xe==="button"&&"button",Ee&&"focusVisible"]};return composeClasses(Ce,getLinkUtilityClass,Ae)},LinkRoot=styled(Typography,{name:"MuiLink",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,Ae[`underline${capitalize$1(xe.underline)}`],xe.component==="button"&&Ae.button]}})(memoTheme(({theme:t})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:Ae,ownerState:xe})=>Ae==="always"&&xe.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(t.palette).filter(createSimplePaletteValueFilter()).map(([Ae])=>({props:{underline:"always",color:Ae},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette[Ae].mainChannel} / 0.4)`:alpha$3(t.palette[Ae].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.4)`:alpha$3(t.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette.text.secondaryChannel} / 0.4)`:alpha$3(t.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(t.vars||t).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${linkClasses.focusVisible}`]:{outline:"auto"}}}]}))),Link=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiLink"}),Se=useTheme(),{className:Ce,color:_e="primary",component:Ie="a",onBlur:Be,onFocus:Te,TypographyClasses:Pe,underline:ke="always",variant:$e="inherit",sx:Oe,...Ue}=Ee,[qe,ze]=reactExports.useState(!1),Qe=tr=>{isFocusVisible(tr.target)||ze(!1),Be&&Be(tr)},Ge=tr=>{isFocusVisible(tr.target)&&ze(!0),Te&&Te(tr)},Xe={...Ee,color:_e,component:Ie,focusVisible:qe,underline:ke,variant:$e},er=useUtilityClasses$1n(Xe);return jsxRuntimeExports.jsx(LinkRoot,{color:_e,className:clsx(er.root,Ce),classes:Pe,component:Ie,onBlur:Qe,onFocus:Ge,ref:xe,ownerState:Xe,variant:$e,...Ue,sx:[...v6Colors[_e]===void 0?[{color:_e}]:[],...Array.isArray(Oe)?Oe:[Oe]],style:{...Ue.style,...ke==="always"&&_e!=="inherit"&&!v6Colors[_e]&&{"--Link-underlineColor":getTextDecoration({theme:Se,ownerState:Xe})}}})}),Stack=createStack$1({createStyledComponent:styled("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,Ae)=>Ae.root}),useThemeProps:t=>useDefaultProps({props:t,name:"MuiStack"})}),links=[{icon:jsxRuntimeExports.jsx(MenuBookIcon,{fontSize:"small"}),text:"Documentation",href:"https://www.promptfoo.dev/docs/intro"},{icon:jsxRuntimeExports.jsx(GitHubIcon,{fontSize:"small"}),text:"GitHub Repository",href:"https://github.com/promptfoo/promptfoo"},{icon:jsxRuntimeExports.jsx(BugReportIcon,{fontSize:"small"}),text:"File an Issue",href:"https://github.com/promptfoo/promptfoo/issues"},{icon:jsxRuntimeExports.jsx(ForumIcon,{fontSize:"small"}),text:"Join Our Discord Community",href:"https://discord.gg/promptfoo"},{icon:jsxRuntimeExports.jsx(CalendarTodayIcon,{fontSize:"small"}),text:"Book a Meeting",href:"https://cal.com/team/promptfoo/intro2"},{icon:jsxRuntimeExports.jsx(WorkIcon,{fontSize:"small"}),text:"Careers",href:"https://www.promptfoo.dev/careers/"}];function InfoModal({open:t,onClose:Ae}){return jsxRuntimeExports.jsxs(Dialog,{open:t,onClose:Ae,maxWidth:"xs",fullWidth:!0,"aria-labelledby":"about-promptfoo-dialog-title",children:[jsxRuntimeExports.jsx(DialogTitle,{id:"about-promptfoo-dialog-title",children:jsxRuntimeExports.jsxs(Stack,{children:[jsxRuntimeExports.jsx(Typography,{variant:"h6",children:"About Promptfoo"}),jsxRuntimeExports.jsx(Link,{href:"https://github.com/promptfoo/promptfoo/releases",underline:"none",sx:{color:"inherit"},target:"_blank",children:jsxRuntimeExports.jsxs(Typography,{variant:"subtitle2",children:["Version ","0.113.3"]})})]})}),jsxRuntimeExports.jsxs(DialogContent,{children:[jsxRuntimeExports.jsx(Typography,{variant:"body2",gutterBottom:!0,children:"Promptfoo is a MIT licensed open-source tool for evaluating and red-teaming LLMs. We make it easy to track the performance of your models and prompts over time with automated support for dataset generation and grading."}),jsxRuntimeExports.jsx(Stack,{spacing:2,mt:2,children:links.map((xe,Ee)=>jsxRuntimeExports.jsxs(Stack,{direction:"row",spacing:1,alignItems:"center",sx:{flexWrap:"wrap","& .MuiSvgIcon-root":{color:"text.primary"}},children:[xe.icon,jsxRuntimeExports.jsx(Link,{underline:"none",target:"_blank",href:xe.href,sx:{color:"inherit"},children:jsxRuntimeExports.jsx(Typography,{variant:"body2",children:xe.text})})]},Ee))})]}),jsxRuntimeExports.jsx(DialogActions,{children:jsxRuntimeExports.jsx(Button,{onClick:Ae,children:"Close"})})]})}const logoPanda="/assets/logo-panda-BuYvzEyb.svg",LogoWrapper=styled(Box)(({theme:t})=>({display:"inline-flex",alignItems:"center",padding:t.spacing(1,2),perspective:"2000px",transformStyle:"preserve-3d"})),LogoText=styled(Typography)(({theme:t})=>({fontFamily:'"Inter", sans-serif',fontWeight:600,fontSize:"1rem",color:t.palette.text.primary,letterSpacing:"0.02em",marginLeft:t.spacing(1),transition:"all 0.3s ease","@keyframes rainbow":{"0%":{backgroundPosition:"0% 50%"},"50%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0% 50%"}},"&:hover":{color:"transparent",backgroundImage:"linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8f00ff)",backgroundSize:"300% 300%",backgroundClip:"text",WebkitBackgroundClip:"text",animation:"rainbow 3s ease infinite"}})),LogoIcon=styled("img")({width:"25px",height:"auto",transition:"all 1s cubic-bezier(0.68, -0.55, 0.265, 1.55)","@keyframes absoluteMadness":{"0%":{transform:"translateY(0) rotate(0deg) scale(1) translateX(0)",filter:"hue-rotate(0deg) brightness(1)"},"25%":{transform:"translateY(-25px) rotate(360deg) scale(1.5) translateX(15px)",filter:"hue-rotate(180deg) brightness(1.5)"},"50%":{transform:"translateY(0) rotate(720deg) scale(0.5) translateX(-15px)",filter:"hue-rotate(360deg) brightness(2)"},"75%":{transform:"translateY(25px) rotate(1080deg) scale(1.8) translateX(15px)",filter:"hue-rotate(540deg) brightness(1.5)"},"100%":{transform:"translateY(0) rotate(1440deg) scale(1) translateX(0)",filter:"hue-rotate(720deg) brightness(1)"}},"@keyframes vibrate":{"0%, 100%":{transform:"translate(0)"},"10%, 30%, 50%, 70%, 90%":{transform:"translate(-2px, 2px)"},"20%, 40%, 60%, 80%":{transform:"translate(2px, -2px)"}},"&:hover":{animation:"absoluteMadness 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite, vibrate 0.3s linear infinite",filter:"hue-rotate(720deg) brightness(2) contrast(1.5) saturate(300%) drop-shadow(0 0 10px rgba(255,0,0,0.5))"}});function Logo(){return jsxRuntimeExports.jsx(Link$1,{to:"/",style:{textDecoration:"none"},children:jsxRuntimeExports.jsxs(LogoWrapper,{children:[jsxRuntimeExports.jsx(LogoIcon,{src:logoPanda,alt:"Promptfoo Logo"}),jsxRuntimeExports.jsx(LogoText,{variant:"h1",children:"promptfoo"})]})})}const NavButton=styled(Button)(({theme:t})=>({color:t.palette.text.primary,"&:hover":{backgroundColor:t.palette.action.hover},"&.active":{backgroundColor:t.palette.action.selected}})),StyledAppBar=styled(AppBar)(({theme:t})=>({backgroundColor:t.palette.background.paper,color:t.palette.text.primary,boxShadow:t.shadows[1],marginBottom:t.spacing(2)})),NavToolbar=styled(Toolbar)({justifyContent:"space-between"}),NavSection=styled(Box)({display:"flex",alignItems:"center",gap:"1rem"});function NavLink({href:t,label:Ae}){const Ee=useLocation().pathname.startsWith(t);return jsxRuntimeExports.jsx(NavButton,{component:Link$1,to:t,className:Ee?"active":"",children:Ae})}function CreateDropdown(){const[t,Ae]=reactExports.useState(null),xe=!!t,Ee=useLocation(),Se=Ie=>{Ae(Ie.currentTarget)},Ce=()=>{Ae(null)},_e=["/setup","/redteam/setup"].some(Ie=>Ee.pathname.startsWith(Ie));return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(NavButton,{onClick:Se,endIcon:jsxRuntimeExports.jsx(ArrowDropDownIcon$1,{}),className:_e?"active":"",children:"Create"}),jsxRuntimeExports.jsxs(Menu,{anchorEl:t,open:xe,onClose:Ce,PaperProps:{elevation:0,sx:{overflow:"visible",filter:"drop-shadow(0px 2px 8px rgba(0,0,0,0.32))",mt:1.5}},children:[jsxRuntimeExports.jsx(MenuItem,{onClick:Ce,component:Link$1,to:"/setup",children:"Eval"}),jsxRuntimeExports.jsx(MenuItem,{onClick:Ce,component:Link$1,to:"/redteam/setup",children:"Red team"})]})]})}function EvalsDropdown(){const[t,Ae]=reactExports.useState(null),xe=!!t,Ee=useLocation(),Se=Ie=>{Ae(Ie.currentTarget)},Ce=()=>{Ae(null)},_e=["/eval","/evals"].some(Ie=>Ee.pathname.startsWith(Ie));return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(NavButton,{onClick:Se,endIcon:jsxRuntimeExports.jsx(ArrowDropDownIcon$1,{}),className:_e?"active":"",children:"Evals"}),jsxRuntimeExports.jsxs(Menu,{anchorEl:t,open:xe,onClose:Ce,children:[jsxRuntimeExports.jsx(MenuItem,{onClick:Ce,component:Link$1,to:"/eval",children:"Latest Eval"}),jsxRuntimeExports.jsx(MenuItem,{onClick:Ce,component:Link$1,to:"/evals",children:"All Evals"})]})]})}function Navigation({darkMode:t,onToggleDarkMode:Ae}){const[xe,Ee]=reactExports.useState(!1),[Se,Ce]=reactExports.useState(!1),_e=useUIStore(Te=>Te.isNavbarVisible),Ie=()=>Ee(Te=>!Te),Be=()=>Ce(Te=>!Te);return _e?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(StyledAppBar,{position:"static",elevation:0,children:jsxRuntimeExports.jsxs(NavToolbar,{children:[jsxRuntimeExports.jsxs(NavSection,{children:[jsxRuntimeExports.jsx(Logo,{}),jsxRuntimeExports.jsx(CreateDropdown,{}),jsxRuntimeExports.jsx(EvalsDropdown,{}),jsxRuntimeExports.jsx(NavLink,{href:"/prompts",label:"Prompts"}),jsxRuntimeExports.jsx(NavLink,{href:"/datasets",label:"Datasets"}),jsxRuntimeExports.jsx(NavLink,{href:"/history",label:"History"})]}),jsxRuntimeExports.jsxs(NavSection,{children:[jsxRuntimeExports.jsx(IconButton,{onClick:Ie,color:"inherit",children:jsxRuntimeExports.jsx(InfoIcon,{})}),jsxRuntimeExports.jsx(Tooltip$2,{title:"API and Sharing Settings",children:jsxRuntimeExports.jsx(IconButton,{onClick:Be,color:"inherit",children:jsxRuntimeExports.jsx(EngineeringIcon,{})})}),jsxRuntimeExports.jsx(DarkModeToggle,{onToggleDarkMode:Ae})]})]})}),jsxRuntimeExports.jsx(InfoModal,{open:xe,onClose:Ie}),jsxRuntimeExports.jsx(ApiSettingsModal,{open:Se,onClose:Be})]}):null}const useMediaQuery=unstable_createUseMediaQuery({themeId:THEME_ID}),createAppTheme=t=>createTheme({typography:{fontFamily:'"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',button:{textTransform:"none",fontWeight:500}},shape:{borderRadius:12},palette:{mode:t?"dark":"light",primary:{main:t?"#3b82f6":"#2563eb",light:t?"#60a5fa":"#3b82f6",dark:t?"#2563eb":"#1d4ed8",contrastText:"#ffffff"},secondary:{main:"#8b5cf6",light:"#a78bfa",dark:"#7c3aed",contrastText:"#ffffff"},background:{default:t?"#121212":"#f8fafc",paper:t?"#1e1e1e":"#ffffff"},text:{primary:t?"#ffffff":"#0f172a",secondary:t?"#a0a0a0":"#475569"}},components:{MuiButton:{styleOverrides:{root:{borderRadius:"8px",textTransform:"none",fontWeight:500,padding:"8px 16px",transition:"all 0.2s ease-in-out","&:hover":{transform:"translateY(-1px)"}},contained:{boxShadow:"none","&:hover":{boxShadow:"0 4px 8px -2px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06)"}}}},MuiCard:{styleOverrides:{root:{backgroundColor:t?"#1e1e1e":"#ffffff",borderRadius:"16px",border:`1px solid ${t?"#2c2c2c":"#e2e8f0"}`,transition:"all 0.2s ease-in-out",boxShadow:t?"none":"0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1)","&:hover":{boxShadow:t?"0 4px 12px rgba(0, 0, 0, 0.3)":"0 4px 12px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.05)"}}}},MuiTableContainer:{styleOverrides:{root:{backgroundColor:t?"#1e1e1e":"#ffffff",boxShadow:t?"none":"0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1)",borderRadius:"12px",border:`1px solid ${t?"#2c2c2c":"#e2e8f0"}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:t?"#1e1e1e":"#f8fafc"}}},MuiTableCell:{styleOverrides:{head:{backgroundColor:"inherit",color:t?"#ffffff":"#0f172a",fontWeight:600,fontSize:"0.875rem"},stickyHeader:{backgroundColor:t?"#1e1e1e":"#f8fafc"},root:{borderBottom:`1px solid ${t?"#2c2c2c":"#e2e8f0"}`}}},MuiInputBase:{styleOverrides:{root:{backgroundColor:t?"#1e1e1e":"#ffffff",borderRadius:"8px",transition:"all 0.2s ease-in-out"}}},MuiOutlinedInput:{styleOverrides:{root:{"& .MuiOutlinedInput-notchedOutline":{transition:"all 0.2s ease-in-out"}}}},MuiFormLabel:{styleOverrides:{root:{transition:"color 0.2s ease-in-out","&.Mui-focused":{color:t?"#3b82f6":"#2563eb"}}}},MuiAppBar:{styleOverrides:{root:{backgroundColor:t?"#1e1e1e":"#ffffff",boxShadow:"none",borderBottom:`1px solid ${t?"#2c2c2c":"#e2e8f0"}`}}},MuiPaper:{styleOverrides:{root:{backgroundImage:"none",backgroundColor:t?"#1e1e1e":"#ffffff",boxShadow:t?"none":"0 1px 2px rgba(0, 0, 0, 0.05)",border:`1px solid ${t?"#2c2c2c":"#e2e8f0"}`,'&[class*="elevation"]':{boxShadow:t?"none":"0 1px 2px rgba(0, 0, 0, 0.05)"}},elevation1:{boxShadow:t?"none":"0 1px 2px rgba(0, 0, 0, 0.05)"},elevation2:{boxShadow:t?"none":"0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1)"},elevation3:{boxShadow:t?"0 4px 12px rgba(0, 0, 0, 0.3)":"0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.05)"},elevation4:{boxShadow:t?"0 8px 16px rgba(0, 0, 0, 0.4)":"0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05)"}}},MuiDialog:{styleOverrides:{paper:{borderRadius:"16px",boxShadow:t?"0 25px 50px -12px rgba(0, 0, 0, 0.5)":"0 25px 50px -12px rgba(0, 0, 0, 0.25)"}}},MuiSwitch:{styleOverrides:{root:{padding:8},track:{borderRadius:22/2,backgroundColor:t?"#404040":"#cbd5e1"},thumb:{backgroundColor:"#ffffff"}}}}}),lightTheme=createAppTheme(!1),darkTheme=createAppTheme(!0);function Layout({children:t}){return jsxRuntimeExports.jsx("div",{children:t})}function PageShell(){const t=useMediaQuery("(prefers-color-scheme: dark)"),[Ae,xe]=reactExports.useState(null);reactExports.useEffect(()=>{const Se=localStorage.getItem("darkMode");xe(Se===null?t:Se==="true")},[t]);const Ee=reactExports.useCallback(()=>{xe(Se=>{const Ce=!Se;return localStorage.setItem("darkMode",String(Ce)),Ce})},[]);return reactExports.useEffect(()=>{Ae!==null&&(Ae?document.documentElement.setAttribute("data-theme","dark"):document.documentElement.removeAttribute("data-theme"))},[Ae]),Ae===null?null:jsxRuntimeExports.jsx(ThemeProvider,{theme:Ae?darkTheme:lightTheme,children:jsxRuntimeExports.jsxs(Layout,{children:[jsxRuntimeExports.jsx(Navigation,{darkMode:Ae,onToggleDarkMode:Ee}),jsxRuntimeExports.jsx(Outlet,{})]})})}function getCollapseUtilityClass(t){return generateUtilityClass("MuiCollapse",t)}generateUtilityClasses("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const useUtilityClasses$1m=t=>{const{orientation:Ae,classes:xe}=t,Ee={root:["root",`${Ae}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${Ae}`],wrapperInner:["wrapperInner",`${Ae}`]};return composeClasses(Ee,getCollapseUtilityClass,xe)},CollapseRoot=styled("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,Ae[xe.orientation],xe.state==="entered"&&Ae.entered,xe.state==="exited"&&!xe.in&&xe.collapsedSize==="0px"&&Ae.hidden]}})(memoTheme(({theme:t})=>({height:0,overflow:"hidden",transition:t.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:t.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:Ae})=>Ae.state==="exited"&&!Ae.in&&Ae.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),CollapseWrapper=styled("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(t,Ae)=>Ae.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),CollapseWrapperInner=styled("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(t,Ae)=>Ae.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Collapse=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiCollapse"}),{addEndListener:Se,children:Ce,className:_e,collapsedSize:Ie="0px",component:Be,easing:Te,in:Pe,onEnter:ke,onEntered:$e,onEntering:Oe,onExit:Ue,onExited:qe,onExiting:ze,orientation:Qe="vertical",style:Ge,timeout:Xe=duration$1.standard,TransitionComponent:er=Transition,...tr}=Ee,nr={...Ee,orientation:Qe,collapsedSize:Ie},sr=useUtilityClasses$1m(nr),dr=useTheme(),ar=useTimeout(),lr=reactExports.useRef(null),Ke=reactExports.useRef(),Me=typeof Ie=="number"?`${Ie}px`:Ie,je=Qe==="horizontal",De=je?"width":"height",He=reactExports.useRef(null),Ve=useForkRef(xe,He),Ye=vr=>yr=>{if(vr){const br=He.current;yr===void 0?vr(br):vr(br,yr)}},St=()=>lr.current?lr.current[je?"clientWidth":"clientHeight"]:0,We=Ye((vr,yr)=>{lr.current&&je&&(lr.current.style.position="absolute"),vr.style[De]=Me,ke&&ke(vr,yr)}),Fe=Ye((vr,yr)=>{const br=St();lr.current&&je&&(lr.current.style.position="");const{duration:_r,easing:$r}=getTransitionProps({style:Ge,timeout:Xe,easing:Te},{mode:"enter"});if(Xe==="auto"){const Fr=dr.transitions.getAutoHeightDuration(br);vr.style.transitionDuration=`${Fr}ms`,Ke.current=Fr}else vr.style.transitionDuration=typeof _r=="string"?_r:`${_r}ms`;vr.style[De]=`${br}px`,vr.style.transitionTimingFunction=$r,Oe&&Oe(vr,yr)}),Ze=Ye((vr,yr)=>{vr.style[De]="auto",$e&&$e(vr,yr)}),ir=Ye(vr=>{vr.style[De]=`${St()}px`,Ue&&Ue(vr)}),ur=Ye(qe),fr=Ye(vr=>{const yr=St(),{duration:br,easing:_r}=getTransitionProps({style:Ge,timeout:Xe,easing:Te},{mode:"exit"});if(Xe==="auto"){const $r=dr.transitions.getAutoHeightDuration(yr);vr.style.transitionDuration=`${$r}ms`,Ke.current=$r}else vr.style.transitionDuration=typeof br=="string"?br:`${br}ms`;vr.style[De]=Me,vr.style.transitionTimingFunction=_r,ze&&ze(vr)}),Ar=vr=>{Xe==="auto"&&ar.start(Ke.current||0,vr),Se&&Se(He.current,vr)};return jsxRuntimeExports.jsx(er,{in:Pe,onEnter:We,onEntered:Ze,onEntering:Fe,onExit:ir,onExited:ur,onExiting:fr,addEndListener:Ar,nodeRef:He,timeout:Xe==="auto"?null:Xe,...tr,children:(vr,{ownerState:yr,...br})=>jsxRuntimeExports.jsx(CollapseRoot,{as:Be,className:clsx(sr.root,_e,{entered:sr.entered,exited:!Pe&&Me==="0px"&&sr.hidden}[vr]),style:{[je?"minWidth":"minHeight"]:Me,...Ge},ref:Ve,ownerState:{...nr,state:vr},...br,children:jsxRuntimeExports.jsx(CollapseWrapper,{ownerState:{...nr,state:vr},className:sr.wrapper,ref:lr,children:jsxRuntimeExports.jsx(CollapseWrapperInner,{ownerState:{...nr,state:vr},className:sr.wrapperInner,children:Ce})})})})});Collapse&&(Collapse.muiSupportAuto=!0);const AccordionContext=reactExports.createContext({});function getAccordionUtilityClass(t){return generateUtilityClass("MuiAccordion",t)}const accordionClasses=generateUtilityClasses("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),useUtilityClasses$1l=t=>{const{classes:Ae,square:xe,expanded:Ee,disabled:Se,disableGutters:Ce}=t;return composeClasses({root:["root",!xe&&"rounded",Ee&&"expanded",Se&&"disabled",!Ce&&"gutters"],heading:["heading"],region:["region"]},getAccordionUtilityClass,Ae)},AccordionRoot=styled(Paper,{name:"MuiAccordion",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[{[`& .${accordionClasses.region}`]:Ae.region},Ae.root,!xe.square&&Ae.rounded,!xe.disableGutters&&Ae.gutters]}})(memoTheme(({theme:t})=>{const Ae={duration:t.transitions.duration.shortest};return{position:"relative",transition:t.transitions.create(["margin"],Ae),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(t.vars||t).palette.divider,transition:t.transitions.create(["opacity","background-color"],Ae)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${accordionClasses.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${accordionClasses.disabled}`]:{backgroundColor:(t.vars||t).palette.action.disabledBackground}}}),memoTheme(({theme:t})=>({variants:[{props:Ae=>!Ae.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(t.vars||t).shape.borderRadius,borderBottomRightRadius:(t.vars||t).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:Ae=>!Ae.disableGutters,style:{[`&.${accordionClasses.expanded}`]:{margin:"16px 0"}}}]}))),AccordionHeading=styled("h3",{name:"MuiAccordion",slot:"Heading",overridesResolver:(t,Ae)=>Ae.heading})({all:"unset"}),Accordion=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiAccordion"}),{children:Se,className:Ce,defaultExpanded:_e=!1,disabled:Ie=!1,disableGutters:Be=!1,expanded:Te,onChange:Pe,square:ke=!1,slots:$e={},slotProps:Oe={},TransitionComponent:Ue,TransitionProps:qe,...ze}=Ee,[Qe,Ge]=useControlled({controlled:Te,default:_e,name:"Accordion",state:"expanded"}),Xe=reactExports.useCallback(Ve=>{Ge(!Qe),Pe&&Pe(Ve,!Qe)},[Qe,Pe,Ge]),[er,...tr]=reactExports.Children.toArray(Se),nr=reactExports.useMemo(()=>({expanded:Qe,disabled:Ie,disableGutters:Be,toggle:Xe}),[Qe,Ie,Be,Xe]),sr={...Ee,square:ke,disabled:Ie,disableGutters:Be,expanded:Qe},dr=useUtilityClasses$1l(sr),ar={transition:Ue,...$e},lr={transition:qe,...Oe},Ke={slots:ar,slotProps:lr},[Me,je]=useSlot("heading",{elementType:AccordionHeading,externalForwardedProps:Ke,className:dr.heading,ownerState:sr}),[De,He]=useSlot("transition",{elementType:Collapse,externalForwardedProps:Ke,ownerState:sr});return jsxRuntimeExports.jsxs(AccordionRoot,{className:clsx(dr.root,Ce),ref:xe,ownerState:sr,square:ke,...ze,children:[jsxRuntimeExports.jsx(Me,{...je,children:jsxRuntimeExports.jsx(AccordionContext.Provider,{value:nr,children:er})}),jsxRuntimeExports.jsx(De,{in:Qe,timeout:"auto",...He,children:jsxRuntimeExports.jsx("div",{"aria-labelledby":er.props.id,id:er.props["aria-controls"],role:"region",className:dr.region,children:tr})})]})});function getAccordionDetailsUtilityClass(t){return generateUtilityClass("MuiAccordionDetails",t)}generateUtilityClasses("MuiAccordionDetails",["root"]);const useUtilityClasses$1k=t=>{const{classes:Ae}=t;return composeClasses({root:["root"]},getAccordionDetailsUtilityClass,Ae)},AccordionDetailsRoot=styled("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(t,Ae)=>Ae.root})(memoTheme(({theme:t})=>({padding:t.spacing(1,2,2)}))),AccordionDetails=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiAccordionDetails"}),{className:Se,...Ce}=Ee,_e=Ee,Ie=useUtilityClasses$1k(_e);return jsxRuntimeExports.jsx(AccordionDetailsRoot,{className:clsx(Ie.root,Se),ref:xe,ownerState:_e,...Ce})});function getAccordionSummaryUtilityClass(t){return generateUtilityClass("MuiAccordionSummary",t)}const accordionSummaryClasses=generateUtilityClasses("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),useUtilityClasses$1j=t=>{const{classes:Ae,expanded:xe,disabled:Ee,disableGutters:Se}=t;return composeClasses({root:["root",xe&&"expanded",Ee&&"disabled",!Se&&"gutters"],focusVisible:["focusVisible"],content:["content",xe&&"expanded",!Se&&"contentGutters"],expandIconWrapper:["expandIconWrapper",xe&&"expanded"]},getAccordionSummaryUtilityClass,Ae)},AccordionSummaryRoot=styled(ButtonBase,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(t,Ae)=>Ae.root})(memoTheme(({theme:t})=>{const Ae={duration:t.transitions.duration.shortest};return{display:"flex",width:"100%",minHeight:48,padding:t.spacing(0,2),transition:t.transitions.create(["min-height","background-color"],Ae),[`&.${accordionSummaryClasses.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${accordionSummaryClasses.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`&:hover:not(.${accordionSummaryClasses.disabled})`]:{cursor:"pointer"},variants:[{props:xe=>!xe.disableGutters,style:{[`&.${accordionSummaryClasses.expanded}`]:{minHeight:64}}}]}})),AccordionSummaryContent=styled("span",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(t,Ae)=>Ae.content})(memoTheme(({theme:t})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:Ae=>!Ae.disableGutters,style:{transition:t.transitions.create(["margin"],{duration:t.transitions.duration.shortest}),[`&.${accordionSummaryClasses.expanded}`]:{margin:"20px 0"}}}]}))),AccordionSummaryExpandIconWrapper=styled("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(t,Ae)=>Ae.expandIconWrapper})(memoTheme(({theme:t})=>({display:"flex",color:(t.vars||t).palette.action.active,transform:"rotate(0deg)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shortest}),[`&.${accordionSummaryClasses.expanded}`]:{transform:"rotate(180deg)"}}))),AccordionSummary=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiAccordionSummary"}),{children:Se,className:Ce,expandIcon:_e,focusVisibleClassName:Ie,onClick:Be,...Te}=Ee,{disabled:Pe=!1,disableGutters:ke,expanded:$e,toggle:Oe}=reactExports.useContext(AccordionContext),Ue=Qe=>{Oe&&Oe(Qe),Be&&Be(Qe)},qe={...Ee,expanded:$e,disabled:Pe,disableGutters:ke},ze=useUtilityClasses$1j(qe);return jsxRuntimeExports.jsxs(AccordionSummaryRoot,{focusRipple:!1,disableRipple:!0,disabled:Pe,"aria-expanded":$e,className:clsx(ze.root,Ce),focusVisibleClassName:clsx(ze.focusVisible,Ie),onClick:Ue,ref:xe,ownerState:qe,...Te,children:[jsxRuntimeExports.jsx(AccordionSummaryContent,{className:ze.content,ownerState:qe,children:Se}),_e&&jsxRuntimeExports.jsx(AccordionSummaryExpandIconWrapper,{className:ze.expandIconWrapper,ownerState:qe,children:_e})]})});function stripDiacritics(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function createFilterOptions(t={}){const{ignoreAccents:Ae=!0,ignoreCase:xe=!0,limit:Ee,matchFrom:Se="any",stringify:Ce,trim:_e=!1}=t;return(Ie,{inputValue:Be,getOptionLabel:Te})=>{let Pe=_e?Be.trim():Be;xe&&(Pe=Pe.toLowerCase()),Ae&&(Pe=stripDiacritics(Pe));const ke=Pe?Ie.filter($e=>{let Oe=(Ce||Te)($e);return xe&&(Oe=Oe.toLowerCase()),Ae&&(Oe=stripDiacritics(Oe)),Se==="start"?Oe.startsWith(Pe):Oe.includes(Pe)}):Ie;return typeof Ee=="number"?ke.slice(0,Ee):ke}}const defaultFilterOptions=createFilterOptions(),pageSize=5,defaultIsActiveElementInListbox=t=>{var Ae;return t.current!==null&&((Ae=t.current.parentElement)==null?void 0:Ae.contains(document.activeElement))},MULTIPLE_DEFAULT_VALUE=[];function getInputValue$1(t,Ae,xe){if(Ae||t==null)return"";const Ee=xe(t);return typeof Ee=="string"?Ee:""}function useAutocomplete(t){const{unstable_isActiveElementInListbox:Ae=defaultIsActiveElementInListbox,unstable_classNamePrefix:xe="Mui",autoComplete:Ee=!1,autoHighlight:Se=!1,autoSelect:Ce=!1,blurOnSelect:_e=!1,clearOnBlur:Ie=!t.freeSolo,clearOnEscape:Be=!1,componentName:Te="useAutocomplete",defaultValue:Pe=t.multiple?MULTIPLE_DEFAULT_VALUE:null,disableClearable:ke=!1,disableCloseOnSelect:$e=!1,disabled:Oe,disabledItemsFocusable:Ue=!1,disableListWrap:qe=!1,filterOptions:ze=defaultFilterOptions,filterSelectedOptions:Qe=!1,freeSolo:Ge=!1,getOptionDisabled:Xe,getOptionKey:er,getOptionLabel:tr=zn=>zn.label??zn,groupBy:nr,handleHomeEndKeys:sr=!t.freeSolo,id:dr,includeInputInList:ar=!1,inputValue:lr,isOptionEqualToValue:Ke=(zn,Gn)=>zn===Gn,multiple:Me=!1,onChange:je,onClose:De,onHighlightChange:He,onInputChange:Ve,onOpen:Ye,open:St,openOnFocus:We=!1,options:Fe,readOnly:Ze=!1,selectOnFocus:ir=!t.freeSolo,value:ur}=t,fr=useId(dr);let Ar=tr;Ar=zn=>{const Gn=tr(zn);return typeof Gn!="string"?String(Gn):Gn};const vr=reactExports.useRef(!1),yr=reactExports.useRef(!0),br=reactExports.useRef(null),_r=reactExports.useRef(null),[$r,Fr]=reactExports.useState(null),[Ir,zr]=reactExports.useState(-1),dn=Se?0:-1,tn=reactExports.useRef(dn),Gr=reactExports.useRef(getInputValue$1(Pe,Me,Ar)).current,[wn,an]=useControlled({controlled:ur,default:Pe,name:Te}),[Vr,Rn]=useControlled({controlled:lr,default:Gr,name:Te,state:"inputValue"}),[un,sn]=reactExports.useState(!1),jn=reactExports.useCallback((zn,Gn,di)=>{if(!(Me?wn.length<Gn.length:Gn!==null)&&!Ie)return;const Ei=getInputValue$1(Gn,Me,Ar);Vr!==Ei&&(Rn(Ei),Ve&&Ve(zn,Ei,di))},[Ar,Vr,Me,Ve,Rn,Ie,wn]),[en,Jr]=useControlled({controlled:St,default:!1,name:Te,state:"open"}),[nn,rn]=reactExports.useState(!0),cn=!Me&&wn!=null&&Vr===Ar(wn),pn=en&&!Ze,Mr=pn?ze(Fe.filter(zn=>!(Qe&&(Me?wn:[wn]).some(Gn=>Gn!==null&&Ke(zn,Gn)))),{inputValue:cn&&nn?"":Vr,getOptionLabel:Ar}):[],gr=usePreviousProps({filteredOptions:Mr,value:wn,inputValue:Vr});reactExports.useEffect(()=>{const zn=wn!==gr.value;un&&!zn||Ge&&!zn||jn(null,wn,"reset")},[wn,jn,un,gr.value,Ge]);const Br=en&&Mr.length>0&&!Ze,Hr=useEventCallback(zn=>{zn===-1?br.current.focus():$r.querySelector(`[data-tag-index="${zn}"]`).focus()});reactExports.useEffect(()=>{Me&&Ir>wn.length-1&&(zr(-1),Hr(-1))},[wn,Me,Ir,Hr]);function Kr(zn,Gn){if(!_r.current||zn<0||zn>=Mr.length)return-1;let di=zn;for(;;){const hi=_r.current.querySelector(`[data-option-index="${di}"]`),Ei=Ue?!1:!hi||hi.disabled||hi.getAttribute("aria-disabled")==="true";if(hi&&hi.hasAttribute("tabindex")&&!Ei)return di;if(Gn==="next"?di=(di+1)%Mr.length:di=(di-1+Mr.length)%Mr.length,di===zn)return-1}}const Dr=useEventCallback(({event:zn,index:Gn,reason:di="auto"})=>{if(tn.current=Gn,Gn===-1?br.current.removeAttribute("aria-activedescendant"):br.current.setAttribute("aria-activedescendant",`${fr}-option-${Gn}`),He&&He(zn,Gn===-1?null:Mr[Gn],di),!_r.current)return;const hi=_r.current.querySelector(`[role="option"].${xe}-focused`);hi&&(hi.classList.remove(`${xe}-focused`),hi.classList.remove(`${xe}-focusVisible`));let Ei=_r.current;if(_r.current.getAttribute("role")!=="listbox"&&(Ei=_r.current.parentElement.querySelector('[role="listbox"]')),!Ei)return;if(Gn===-1){Ei.scrollTop=0;return}const _i=_r.current.querySelector(`[data-option-index="${Gn}"]`);if(_i&&(_i.classList.add(`${xe}-focused`),di==="keyboard"&&_i.classList.add(`${xe}-focusVisible`),Ei.scrollHeight>Ei.clientHeight&&di!=="mouse"&&di!=="touch")){const Mi=_i,ji=Ei.clientHeight+Ei.scrollTop,no=Mi.offsetTop+Mi.offsetHeight;no>ji?Ei.scrollTop=no-Ei.clientHeight:Mi.offsetTop-Mi.offsetHeight*(nr?1.3:0)<Ei.scrollTop&&(Ei.scrollTop=Mi.offsetTop-Mi.offsetHeight*(nr?1.3:0))}}),qr=useEventCallback(({event:zn,diff:Gn,direction:di="next",reason:hi="auto"})=>{if(!pn)return;const _i=Kr((()=>{const Mi=Mr.length-1;if(Gn==="reset")return dn;if(Gn==="start")return 0;if(Gn==="end")return Mi;const ji=tn.current+Gn;return ji<0?ji===-1&&ar?-1:qe&&tn.current!==-1||Math.abs(Gn)>1?0:Mi:ji>Mi?ji===Mi+1&&ar?-1:qe||Math.abs(Gn)>1?Mi:0:ji})(),di);if(Dr({index:_i,reason:hi,event:zn}),Ee&&Gn!=="reset")if(_i===-1)br.current.value=Vr;else{const Mi=Ar(Mr[_i]);br.current.value=Mi,Mi.toLowerCase().indexOf(Vr.toLowerCase())===0&&Vr.length>0&&br.current.setSelectionRange(Vr.length,Mi.length)}}),Ur=()=>{const zn=(Gn,di)=>{const hi=Gn?Ar(Gn):"",Ei=di?Ar(di):"";return hi===Ei};if(tn.current!==-1&&gr.filteredOptions&&gr.filteredOptions.length!==Mr.length&&gr.inputValue===Vr&&(Me?wn.length===gr.value.length&&gr.value.every((Gn,di)=>Ar(wn[di])===Ar(Gn)):zn(gr.value,wn))){const Gn=gr.filteredOptions[tn.current];if(Gn)return Mr.findIndex(di=>Ar(di)===Ar(Gn))}return-1},Bn=reactExports.useCallback(()=>{if(!pn)return;const zn=Ur();if(zn!==-1){tn.current=zn;return}const Gn=Me?wn[0]:wn;if(Mr.length===0||Gn==null){qr({diff:"reset"});return}if(_r.current){if(Gn!=null){const di=Mr[tn.current];if(Me&&di&&wn.findIndex(Ei=>Ke(di,Ei))!==-1)return;const hi=Mr.findIndex(Ei=>Ke(Ei,Gn));hi===-1?qr({diff:"reset"}):Dr({index:hi});return}if(tn.current>=Mr.length-1){Dr({index:Mr.length-1});return}Dr({index:tn.current})}},[Mr.length,Me?!1:wn,Qe,qr,Dr,pn,Vr,Me]),In=useEventCallback(zn=>{setRef(_r,zn),zn&&Bn()});reactExports.useEffect(()=>{Bn()},[Bn]);const Rr=zn=>{en||(Jr(!0),rn(!0),Ye&&Ye(zn))},Mn=(zn,Gn)=>{en&&(Jr(!1),De&&De(zn,Gn))},En=(zn,Gn,di,hi)=>{if(Me){if(wn.length===Gn.length&&wn.every((Ei,_i)=>Ei===Gn[_i]))return}else if(wn===Gn)return;je&&je(zn,Gn,di,hi),an(Gn)},Yr=reactExports.useRef(!1),Sn=(zn,Gn,di="selectOption",hi="options")=>{let Ei=di,_i=Gn;if(Me){_i=Array.isArray(wn)?wn.slice():[];const Mi=_i.findIndex(ji=>Ke(Gn,ji));Mi===-1?_i.push(Gn):hi!=="freeSolo"&&(_i.splice(Mi,1),Ei="removeOption")}jn(zn,_i,Ei),En(zn,_i,Ei,{option:Gn}),!$e&&(!zn||!zn.ctrlKey&&!zn.metaKey)&&Mn(zn,Ei),(_e===!0||_e==="touch"&&Yr.current||_e==="mouse"&&!Yr.current)&&br.current.blur()};function xn(zn,Gn){if(zn===-1)return-1;let di=zn;for(;;){if(Gn==="next"&&di===wn.length||Gn==="previous"&&di===-1)return-1;const hi=$r.querySelector(`[data-tag-index="${di}"]`);if(!hi||!hi.hasAttribute("tabindex")||hi.disabled||hi.getAttribute("aria-disabled")==="true")di+=Gn==="next"?1:-1;else return di}}const On=(zn,Gn)=>{if(!Me)return;Vr===""&&Mn(zn,"toggleInput");let di=Ir;Ir===-1?Vr===""&&Gn==="previous"&&(di=wn.length-1):(di+=Gn==="next"?1:-1,di<0&&(di=0),di===wn.length&&(di=-1)),di=xn(di,Gn),zr(di),Hr(di)},Nn=zn=>{vr.current=!0,Rn(""),Ve&&Ve(zn,"","clear"),En(zn,Me?[]:null,"clear")},kr=zn=>Gn=>{if(zn.onKeyDown&&zn.onKeyDown(Gn),!Gn.defaultMuiPrevented&&(Ir!==-1&&!["ArrowLeft","ArrowRight"].includes(Gn.key)&&(zr(-1),Hr(-1)),Gn.which!==229))switch(Gn.key){case"Home":pn&&sr&&(Gn.preventDefault(),qr({diff:"start",direction:"next",reason:"keyboard",event:Gn}));break;case"End":pn&&sr&&(Gn.preventDefault(),qr({diff:"end",direction:"previous",reason:"keyboard",event:Gn}));break;case"PageUp":Gn.preventDefault(),qr({diff:-5,direction:"previous",reason:"keyboard",event:Gn}),Rr(Gn);break;case"PageDown":Gn.preventDefault(),qr({diff:pageSize,direction:"next",reason:"keyboard",event:Gn}),Rr(Gn);break;case"ArrowDown":Gn.preventDefault(),qr({diff:1,direction:"next",reason:"keyboard",event:Gn}),Rr(Gn);break;case"ArrowUp":Gn.preventDefault(),qr({diff:-1,direction:"previous",reason:"keyboard",event:Gn}),Rr(Gn);break;case"ArrowLeft":On(Gn,"previous");break;case"ArrowRight":On(Gn,"next");break;case"Enter":if(tn.current!==-1&&pn){const di=Mr[tn.current],hi=Xe?Xe(di):!1;if(Gn.preventDefault(),hi)return;Sn(Gn,di,"selectOption"),Ee&&br.current.setSelectionRange(br.current.value.length,br.current.value.length)}else Ge&&Vr!==""&&cn===!1&&(Me&&Gn.preventDefault(),Sn(Gn,Vr,"createOption","freeSolo"));break;case"Escape":pn?(Gn.preventDefault(),Gn.stopPropagation(),Mn(Gn,"escape")):Be&&(Vr!==""||Me&&wn.length>0)&&(Gn.preventDefault(),Gn.stopPropagation(),Nn(Gn));break;case"Backspace":if(Me&&!Ze&&Vr===""&&wn.length>0){const di=Ir===-1?wn.length-1:Ir,hi=wn.slice();hi.splice(di,1),En(Gn,hi,"removeOption",{option:wn[di]})}break;case"Delete":if(Me&&!Ze&&Vr===""&&wn.length>0&&Ir!==-1){const di=Ir,hi=wn.slice();hi.splice(di,1),En(Gn,hi,"removeOption",{option:wn[di]})}break}},Er=zn=>{sn(!0),We&&!vr.current&&Rr(zn)},Tr=zn=>{if(Ae(_r)){br.current.focus();return}sn(!1),yr.current=!0,vr.current=!1,Ce&&tn.current!==-1&&pn?Sn(zn,Mr[tn.current],"blur"):Ce&&Ge&&Vr!==""?Sn(zn,Vr,"blur","freeSolo"):Ie&&jn(zn,wn,"blur"),Mn(zn,"blur")},Qr=zn=>{const Gn=zn.target.value;Vr!==Gn&&(Rn(Gn),rn(!1),Ve&&Ve(zn,Gn,"input")),Gn===""?!ke&&!Me&&En(zn,null,"clear"):Rr(zn)},Zr=zn=>{const Gn=Number(zn.currentTarget.getAttribute("data-option-index"));tn.current!==Gn&&Dr({event:zn,index:Gn,reason:"mouse"})},yn=zn=>{Dr({event:zn,index:Number(zn.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Yr.current=!0},An=zn=>{const Gn=Number(zn.currentTarget.getAttribute("data-option-index"));Sn(zn,Mr[Gn],"selectOption"),Yr.current=!1},Tn=zn=>Gn=>{const di=wn.slice();di.splice(zn,1),En(Gn,di,"removeOption",{option:wn[zn]})},ti=zn=>{en?Mn(zn,"toggleInput"):Rr(zn)},Fn=zn=>{zn.currentTarget.contains(zn.target)&&zn.target.getAttribute("id")!==fr&&zn.preventDefault()},$n=zn=>{zn.currentTarget.contains(zn.target)&&(br.current.focus(),ir&&yr.current&&br.current.selectionEnd-br.current.selectionStart===0&&br.current.select(),yr.current=!1)},Zn=zn=>{!Oe&&(Vr===""||!en)&&ti(zn)};let Dn=Ge&&Vr.length>0;Dn=Dn||(Me?wn.length>0:wn!==null);let Wn=Mr;return nr&&(Wn=Mr.reduce((zn,Gn,di)=>{const hi=nr(Gn);return zn.length>0&&zn[zn.length-1].group===hi?zn[zn.length-1].options.push(Gn):zn.push({key:di,index:di,group:hi,options:[Gn]}),zn},[])),Oe&&un&&Tr(),{getRootProps:(zn={})=>({...zn,onKeyDown:kr(zn),onMouseDown:Fn,onClick:$n}),getInputLabelProps:()=>({id:`${fr}-label`,htmlFor:fr}),getInputProps:()=>({id:fr,value:Vr,onBlur:Tr,onFocus:Er,onChange:Qr,onMouseDown:Zn,"aria-activedescendant":pn?"":null,"aria-autocomplete":Ee?"both":"list","aria-controls":Br?`${fr}-listbox`:void 0,"aria-expanded":Br,autoComplete:"off",ref:br,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:Oe}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Nn}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:ti}),getTagProps:({index:zn})=>({key:zn,"data-tag-index":zn,tabIndex:-1,...!Ze&&{onDelete:Tn(zn)}}),getListboxProps:()=>({role:"listbox",id:`${fr}-listbox`,"aria-labelledby":`${fr}-label`,ref:In,onMouseDown:zn=>{zn.preventDefault()}}),getOptionProps:({index:zn,option:Gn})=>{const di=(Me?wn:[wn]).some(Ei=>Ei!=null&&Ke(Gn,Ei)),hi=Xe?Xe(Gn):!1;return{key:(er==null?void 0:er(Gn))??Ar(Gn),tabIndex:-1,role:"option",id:`${fr}-option-${zn}`,onMouseMove:Zr,onClick:An,onTouchStart:yn,"data-option-index":zn,"aria-disabled":hi,"aria-selected":di}},id:fr,inputValue:Vr,value:wn,dirty:Dn,expanded:pn&&$r,popupOpen:pn,focused:un||Ir!==-1,anchorEl:$r,setAnchorEl:Fr,focusedTag:Ir,groupedOptions:Wn}}function getListSubheaderUtilityClass(t){return generateUtilityClass("MuiListSubheader",t)}generateUtilityClasses("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const useUtilityClasses$1i=t=>{const{classes:Ae,color:xe,disableGutters:Ee,inset:Se,disableSticky:Ce}=t,_e={root:["root",xe!=="default"&&`color${capitalize$1(xe)}`,!Ee&&"gutters",Se&&"inset",!Ce&&"sticky"]};return composeClasses(_e,getListSubheaderUtilityClass,Ae)},ListSubheaderRoot=styled("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,xe.color!=="default"&&Ae[`color${capitalize$1(xe.color)}`],!xe.disableGutters&&Ae.gutters,xe.inset&&Ae.inset,!xe.disableSticky&&Ae.sticky]}})(memoTheme(({theme:t})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(t.vars||t).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:Ae})=>!Ae.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:Ae})=>Ae.inset,style:{paddingLeft:72}},{props:({ownerState:Ae})=>!Ae.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper}}]}))),ListSubheader=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiListSubheader"}),{className:Se,color:Ce="default",component:_e="li",disableGutters:Ie=!1,disableSticky:Be=!1,inset:Te=!1,...Pe}=Ee,ke={...Ee,color:Ce,component:_e,disableGutters:Ie,disableSticky:Be,inset:Te},$e=useUtilityClasses$1i(ke);return jsxRuntimeExports.jsx(ListSubheaderRoot,{as:_e,className:clsx($e.root,Se),ref:xe,ownerState:ke,...Pe})});ListSubheader&&(ListSubheader.muiSkipListHighlight=!0);const CancelIcon$1=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function getChipUtilityClass(t){return generateUtilityClass("MuiChip",t)}const chipClasses=generateUtilityClasses("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),useUtilityClasses$1h=t=>{const{classes:Ae,disabled:xe,size:Ee,color:Se,iconColor:Ce,onDelete:_e,clickable:Ie,variant:Be}=t,Te={root:["root",Be,xe&&"disabled",`size${capitalize$1(Ee)}`,`color${capitalize$1(Se)}`,Ie&&"clickable",Ie&&`clickableColor${capitalize$1(Se)}`,_e&&"deletable",_e&&`deletableColor${capitalize$1(Se)}`,`${Be}${capitalize$1(Se)}`],label:["label",`label${capitalize$1(Ee)}`],avatar:["avatar",`avatar${capitalize$1(Ee)}`,`avatarColor${capitalize$1(Se)}`],icon:["icon",`icon${capitalize$1(Ee)}`,`iconColor${capitalize$1(Ce)}`],deleteIcon:["deleteIcon",`deleteIcon${capitalize$1(Ee)}`,`deleteIconColor${capitalize$1(Se)}`,`deleteIcon${capitalize$1(Be)}Color${capitalize$1(Se)}`]};return composeClasses(Te,getChipUtilityClass,Ae)},ChipRoot=styled("div",{name:"MuiChip",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t,{color:Ee,iconColor:Se,clickable:Ce,onDelete:_e,size:Ie,variant:Be}=xe;return[{[`& .${chipClasses.avatar}`]:Ae.avatar},{[`& .${chipClasses.avatar}`]:Ae[`avatar${capitalize$1(Ie)}`]},{[`& .${chipClasses.avatar}`]:Ae[`avatarColor${capitalize$1(Ee)}`]},{[`& .${chipClasses.icon}`]:Ae.icon},{[`& .${chipClasses.icon}`]:Ae[`icon${capitalize$1(Ie)}`]},{[`& .${chipClasses.icon}`]:Ae[`iconColor${capitalize$1(Se)}`]},{[`& .${chipClasses.deleteIcon}`]:Ae.deleteIcon},{[`& .${chipClasses.deleteIcon}`]:Ae[`deleteIcon${capitalize$1(Ie)}`]},{[`& .${chipClasses.deleteIcon}`]:Ae[`deleteIconColor${capitalize$1(Ee)}`]},{[`& .${chipClasses.deleteIcon}`]:Ae[`deleteIcon${capitalize$1(Be)}Color${capitalize$1(Ee)}`]},Ae.root,Ae[`size${capitalize$1(Ie)}`],Ae[`color${capitalize$1(Ee)}`],Ce&&Ae.clickable,Ce&&Ee!=="default"&&Ae[`clickableColor${capitalize$1(Ee)})`],_e&&Ae.deletable,_e&&Ee!=="default"&&Ae[`deletableColor${capitalize$1(Ee)}`],Ae[Be],Ae[`${Be}${capitalize$1(Ee)}`]]}})(memoTheme(({theme:t})=>{const Ae=t.palette.mode==="light"?t.palette.grey[700]:t.palette.grey[300];return{maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${chipClasses.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${chipClasses.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:Ae,fontSize:t.typography.pxToRem(12)},[`& .${chipClasses.avatarColorPrimary}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},[`& .${chipClasses.avatarColorSecondary}`]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},[`& .${chipClasses.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},[`& .${chipClasses.icon}`]:{marginLeft:5,marginRight:-6},[`& .${chipClasses.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.26)`:alpha$3(t.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.4)`:alpha$3(t.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${chipClasses.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${chipClasses.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(t.palette).filter(createSimplePaletteValueFilter(["contrastText"])).map(([xe])=>({props:{color:xe},style:{backgroundColor:(t.vars||t).palette[xe].main,color:(t.vars||t).palette[xe].contrastText,[`& .${chipClasses.deleteIcon}`]:{color:t.vars?`rgba(${t.vars.palette[xe].contrastTextChannel} / 0.7)`:alpha$3(t.palette[xe].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[xe].contrastText}}}})),{props:xe=>xe.iconColor===xe.color,style:{[`& .${chipClasses.icon}`]:{color:t.vars?t.vars.palette.Chip.defaultIconColor:Ae}}},{props:xe=>xe.iconColor===xe.color&&xe.color!=="default",style:{[`& .${chipClasses.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${chipClasses.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:alpha$3(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}}},...Object.entries(t.palette).filter(createSimplePaletteValueFilter(["dark"])).map(([xe])=>({props:{color:xe,onDelete:!0},style:{[`&.${chipClasses.focusVisible}`]:{background:(t.vars||t).palette[xe].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:alpha$3(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)},[`&.${chipClasses.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:alpha$3(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},"&:active":{boxShadow:(t.vars||t).shadows[1]}}},...Object.entries(t.palette).filter(createSimplePaletteValueFilter(["dark"])).map(([xe])=>({props:{color:xe,clickable:!0},style:{[`&:hover, &.${chipClasses.focusVisible}`]:{backgroundColor:(t.vars||t).palette[xe].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:t.vars?`1px solid ${t.vars.palette.Chip.defaultBorder}`:`1px solid ${t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[700]}`,[`&.${chipClasses.clickable}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${chipClasses.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`& .${chipClasses.avatar}`]:{marginLeft:4},[`& .${chipClasses.avatarSmall}`]:{marginLeft:2},[`& .${chipClasses.icon}`]:{marginLeft:4},[`& .${chipClasses.iconSmall}`]:{marginLeft:2},[`& .${chipClasses.deleteIcon}`]:{marginRight:5},[`& .${chipClasses.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(t.palette).filter(createSimplePaletteValueFilter()).map(([xe])=>({props:{variant:"outlined",color:xe},style:{color:(t.vars||t).palette[xe].main,border:`1px solid ${t.vars?`rgba(${t.vars.palette[xe].mainChannel} / 0.7)`:alpha$3(t.palette[xe].main,.7)}`,[`&.${chipClasses.clickable}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[xe].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:alpha$3(t.palette[xe].main,t.palette.action.hoverOpacity)},[`&.${chipClasses.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[xe].mainChannel} / ${t.vars.palette.action.focusOpacity})`:alpha$3(t.palette[xe].main,t.palette.action.focusOpacity)},[`& .${chipClasses.deleteIcon}`]:{color:t.vars?`rgba(${t.vars.palette[xe].mainChannel} / 0.7)`:alpha$3(t.palette[xe].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[xe].main}}}}))]}})),ChipLabel=styled("span",{name:"MuiChip",slot:"Label",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t,{size:Ee}=xe;return[Ae.label,Ae[`label${capitalize$1(Ee)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function isDeleteKeyboardEvent(t){return t.key==="Backspace"||t.key==="Delete"}const Chip=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiChip"}),{avatar:Se,className:Ce,clickable:_e,color:Ie="default",component:Be,deleteIcon:Te,disabled:Pe=!1,icon:ke,label:$e,onClick:Oe,onDelete:Ue,onKeyDown:qe,onKeyUp:ze,size:Qe="medium",variant:Ge="filled",tabIndex:Xe,skipFocusWhenDisabled:er=!1,...tr}=Ee,nr=reactExports.useRef(null),sr=useForkRef(nr,xe),dr=We=>{We.stopPropagation(),Ue&&Ue(We)},ar=We=>{We.currentTarget===We.target&&isDeleteKeyboardEvent(We)&&We.preventDefault(),qe&&qe(We)},lr=We=>{We.currentTarget===We.target&&Ue&&isDeleteKeyboardEvent(We)&&Ue(We),ze&&ze(We)},Ke=_e!==!1&&Oe?!0:_e,Me=Ke||Ue?ButtonBase:Be||"div",je={...Ee,component:Me,disabled:Pe,size:Qe,color:Ie,iconColor:reactExports.isValidElement(ke)&&ke.props.color||Ie,onDelete:!!Ue,clickable:Ke,variant:Ge},De=useUtilityClasses$1h(je),He=Me===ButtonBase?{component:Be||"div",focusVisibleClassName:De.focusVisible,...Ue&&{disableRipple:!0}}:{};let Ve=null;Ue&&(Ve=Te&&reactExports.isValidElement(Te)?reactExports.cloneElement(Te,{className:clsx(Te.props.className,De.deleteIcon),onClick:dr}):jsxRuntimeExports.jsx(CancelIcon$1,{className:clsx(De.deleteIcon),onClick:dr}));let Ye=null;Se&&reactExports.isValidElement(Se)&&(Ye=reactExports.cloneElement(Se,{className:clsx(De.avatar,Se.props.className)}));let St=null;return ke&&reactExports.isValidElement(ke)&&(St=reactExports.cloneElement(ke,{className:clsx(De.icon,ke.props.className)})),jsxRuntimeExports.jsxs(ChipRoot,{as:Me,className:clsx(De.root,Ce),disabled:Ke&&Pe?!0:void 0,onClick:Oe,onKeyDown:ar,onKeyUp:lr,ref:sr,tabIndex:er&&Pe?-1:Xe,ownerState:je,...He,...tr,children:[Ye||St,jsxRuntimeExports.jsx(ChipLabel,{className:clsx(De.label),ownerState:je,children:$e}),Ve]})});function getAutocompleteUtilityClass(t){return generateUtilityClass("MuiAutocomplete",t)}const autocompleteClasses=generateUtilityClasses("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var _ClearIcon,_ArrowDropDownIcon;const useUtilityClasses$1g=t=>{const{classes:Ae,disablePortal:xe,expanded:Ee,focused:Se,fullWidth:Ce,hasClearIcon:_e,hasPopupIcon:Ie,inputFocused:Be,popupOpen:Te,size:Pe}=t,ke={root:["root",Ee&&"expanded",Se&&"focused",Ce&&"fullWidth",_e&&"hasClearIcon",Ie&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",Be&&"inputFocused"],tag:["tag",`tagSize${capitalize$1(Pe)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",Te&&"popupIndicatorOpen"],popper:["popper",xe&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return composeClasses(ke,getAutocompleteUtilityClass,Ae)},AutocompleteRoot=styled("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t,{fullWidth:Ee,hasClearIcon:Se,hasPopupIcon:Ce,inputFocused:_e,size:Ie}=xe;return[{[`& .${autocompleteClasses.tag}`]:Ae.tag},{[`& .${autocompleteClasses.tag}`]:Ae[`tagSize${capitalize$1(Ie)}`]},{[`& .${autocompleteClasses.inputRoot}`]:Ae.inputRoot},{[`& .${autocompleteClasses.input}`]:Ae.input},{[`& .${autocompleteClasses.input}`]:_e&&Ae.inputFocused},Ae.root,Ee&&Ae.fullWidth,Ce&&Ae.hasPopupIcon,Se&&Ae.hasClearIcon]}})({[`&.${autocompleteClasses.focused} .${autocompleteClasses.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${autocompleteClasses.clearIndicator}`]:{visibility:"visible"}},[`& .${autocompleteClasses.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${autocompleteClasses.inputRoot}`]:{[`.${autocompleteClasses.hasPopupIcon}&, .${autocompleteClasses.hasClearIcon}&`]:{paddingRight:30},[`.${autocompleteClasses.hasPopupIcon}.${autocompleteClasses.hasClearIcon}&`]:{paddingRight:56},[`& .${autocompleteClasses.input}`]:{width:0,minWidth:30}},[`& .${inputClasses.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${inputClasses.root}.${inputBaseClasses.sizeSmall}`]:{[`& .${inputClasses.input}`]:{padding:"2px 4px 3px 0"}},[`& .${outlinedInputClasses.root}`]:{padding:9,[`.${autocompleteClasses.hasPopupIcon}&, .${autocompleteClasses.hasClearIcon}&`]:{paddingRight:39},[`.${autocompleteClasses.hasPopupIcon}.${autocompleteClasses.hasClearIcon}&`]:{paddingRight:65},[`& .${autocompleteClasses.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${autocompleteClasses.endAdornment}`]:{right:9}},[`& .${outlinedInputClasses.root}.${inputBaseClasses.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${autocompleteClasses.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${filledInputClasses.root}`]:{paddingTop:19,paddingLeft:8,[`.${autocompleteClasses.hasPopupIcon}&, .${autocompleteClasses.hasClearIcon}&`]:{paddingRight:39},[`.${autocompleteClasses.hasPopupIcon}.${autocompleteClasses.hasClearIcon}&`]:{paddingRight:65},[`& .${filledInputClasses.input}`]:{padding:"7px 4px"},[`& .${autocompleteClasses.endAdornment}`]:{right:9}},[`& .${filledInputClasses.root}.${inputBaseClasses.sizeSmall}`]:{paddingBottom:1,[`& .${filledInputClasses.input}`]:{padding:"2.5px 4px"}},[`& .${inputBaseClasses.hiddenLabel}`]:{paddingTop:8},[`& .${filledInputClasses.root}.${inputBaseClasses.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${autocompleteClasses.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${filledInputClasses.root}.${inputBaseClasses.hiddenLabel}.${inputBaseClasses.sizeSmall}`]:{[`& .${autocompleteClasses.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${autocompleteClasses.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${autocompleteClasses.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${autocompleteClasses.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${autocompleteClasses.inputRoot}`]:{flexWrap:"wrap"}}}]}),AutocompleteEndAdornment=styled("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(t,Ae)=>Ae.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),AutocompleteClearIndicator=styled(IconButton,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(t,Ae)=>Ae.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),AutocompletePopupIndicator=styled(IconButton,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.popupIndicator,xe.popupOpen&&Ae.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),AutocompletePopper=styled(Popper,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[{[`& .${autocompleteClasses.option}`]:Ae.option},Ae.popper,xe.disablePortal&&Ae.popperDisablePortal]}})(memoTheme(({theme:t})=>({zIndex:(t.vars||t).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),AutocompletePaper=styled(Paper,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(t,Ae)=>Ae.paper})(memoTheme(({theme:t})=>({...t.typography.body1,overflow:"auto"}))),AutocompleteLoading=styled("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(t,Ae)=>Ae.loading})(memoTheme(({theme:t})=>({color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}))),AutocompleteNoOptions=styled("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(t,Ae)=>Ae.noOptions})(memoTheme(({theme:t})=>({color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}))),AutocompleteListbox=styled("ul",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(t,Ae)=>Ae.listbox})(memoTheme(({theme:t})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${autocompleteClasses.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[t.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${autocompleteClasses.focused}`]:{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${autocompleteClasses.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:alpha$3(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${autocompleteClasses.focused}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:alpha$3(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},[`&.${autocompleteClasses.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:alpha$3(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}}}}))),AutocompleteGroupLabel=styled(ListSubheader,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(t,Ae)=>Ae.groupLabel})(memoTheme(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,top:-8}))),AutocompleteGroupUl=styled("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(t,Ae)=>Ae.groupUl})({padding:0,[`& .${autocompleteClasses.option}`]:{paddingLeft:24}}),Autocomplete=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiAutocomplete"}),{autoComplete:Se=!1,autoHighlight:Ce=!1,autoSelect:_e=!1,blurOnSelect:Ie=!1,ChipProps:Be,className:Te,clearIcon:Pe=_ClearIcon||(_ClearIcon=jsxRuntimeExports.jsx(ClearIcon$1,{fontSize:"small"})),clearOnBlur:ke=!Ee.freeSolo,clearOnEscape:$e=!1,clearText:Oe="Clear",closeText:Ue="Close",componentsProps:qe,defaultValue:ze=Ee.multiple?[]:null,disableClearable:Qe=!1,disableCloseOnSelect:Ge=!1,disabled:Xe=!1,disabledItemsFocusable:er=!1,disableListWrap:tr=!1,disablePortal:nr=!1,filterOptions:sr,filterSelectedOptions:dr=!1,forcePopupIcon:ar="auto",freeSolo:lr=!1,fullWidth:Ke=!1,getLimitTagsText:Me=yi=>`+${yi}`,getOptionDisabled:je,getOptionKey:De,getOptionLabel:He,isOptionEqualToValue:Ve,groupBy:Ye,handleHomeEndKeys:St=!Ee.freeSolo,id:We,includeInputInList:Fe=!1,inputValue:Ze,limitTags:ir=-1,ListboxComponent:ur,ListboxProps:fr,loading:Ar=!1,loadingText:vr="Loading…",multiple:yr=!1,noOptionsText:br="No options",onChange:_r,onClose:$r,onHighlightChange:Fr,onInputChange:Ir,onOpen:zr,open:dn,openOnFocus:tn=!1,openText:Gr="Open",options:wn,PaperComponent:an,PopperComponent:Vr,popupIcon:Rn=_ArrowDropDownIcon||(_ArrowDropDownIcon=jsxRuntimeExports.jsx(ArrowDropDownIcon,{})),readOnly:un=!1,renderGroup:sn,renderInput:jn,renderOption:en,renderTags:Jr,selectOnFocus:nn=!Ee.freeSolo,size:rn="medium",slots:cn={},slotProps:pn={},value:Mr,...gr}=Ee,{getRootProps:Br,getInputProps:Hr,getInputLabelProps:Kr,getPopupIndicatorProps:Dr,getClearProps:qr,getTagProps:Ur,getListboxProps:Bn,getOptionProps:In,value:Rr,dirty:Mn,expanded:En,id:Yr,popupOpen:Sn,focused:xn,focusedTag:On,anchorEl:Nn,setAnchorEl:kr,inputValue:Er,groupedOptions:Tr}=useAutocomplete({...Ee,componentName:"Autocomplete"}),Qr=!Qe&&!Xe&&Mn&&!un,Zr=(!lr||ar===!0)&&ar!==!1,{onMouseDown:yn}=Hr(),{ref:An,...Tn}=Bn(),Fn=He||(yi=>yi.label??yi),$n={...Ee,disablePortal:nr,expanded:En,focused:xn,fullWidth:Ke,getOptionLabel:Fn,hasClearIcon:Qr,hasPopupIcon:Zr,inputFocused:On===-1,popupOpen:Sn,size:rn},Zn=useUtilityClasses$1g($n),Dn={slots:{paper:an,popper:Vr,...cn},slotProps:{chip:Be,listbox:fr,...qe,...pn}},[Wn,zn]=useSlot("listbox",{elementType:AutocompleteListbox,externalForwardedProps:Dn,ownerState:$n,className:Zn.listbox,additionalProps:Tn,ref:An}),[Gn,di]=useSlot("paper",{elementType:Paper,externalForwardedProps:Dn,ownerState:$n,className:Zn.paper}),[hi,Ei]=useSlot("popper",{elementType:Popper,externalForwardedProps:Dn,ownerState:$n,className:Zn.popper,additionalProps:{disablePortal:nr,style:{width:Nn?Nn.clientWidth:null},role:"presentation",anchorEl:Nn,open:Sn}});let _i;if(yr&&Rr.length>0){const yi=Di=>({className:Zn.tag,disabled:Xe,...Ur(Di)});Jr?_i=Jr(Rr,yi,$n):_i=Rr.map((Di,Hi)=>{const{key:Wi,...Ki}=yi({index:Hi});return jsxRuntimeExports.jsx(Chip,{label:Fn(Di),size:rn,...Ki,...Dn.slotProps.chip},Wi)})}if(ir>-1&&Array.isArray(_i)){const yi=_i.length-ir;!xn&&yi>0&&(_i=_i.splice(0,ir),_i.push(jsxRuntimeExports.jsx("span",{className:Zn.tag,children:Me(yi)},_i.length)))}const ji=sn||(yi=>jsxRuntimeExports.jsxs("li",{children:[jsxRuntimeExports.jsx(AutocompleteGroupLabel,{className:Zn.groupLabel,ownerState:$n,component:"div",children:yi.group}),jsxRuntimeExports.jsx(AutocompleteGroupUl,{className:Zn.groupUl,ownerState:$n,children:yi.children})]},yi.key)),Li=en||((yi,Di)=>{const{key:Hi,...Wi}=yi;return jsxRuntimeExports.jsx("li",{...Wi,children:Fn(Di)},Hi)}),oo=(yi,Di)=>{const Hi=In({option:yi,index:Di});return Li({...Hi,className:Zn.option},yi,{selected:Hi["aria-selected"],index:Di,inputValue:Er},$n)},Vi=Dn.slotProps.clearIndicator,eo=Dn.slotProps.popupIndicator;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(AutocompleteRoot,{ref:xe,className:clsx(Zn.root,Te),ownerState:$n,...Br(gr),children:jn({id:Yr,disabled:Xe,fullWidth:!0,size:rn==="small"?"small":void 0,InputLabelProps:Kr(),InputProps:{ref:kr,className:Zn.inputRoot,startAdornment:_i,onMouseDown:yi=>{yi.target===yi.currentTarget&&yn(yi)},...(Qr||Zr)&&{endAdornment:jsxRuntimeExports.jsxs(AutocompleteEndAdornment,{className:Zn.endAdornment,ownerState:$n,children:[Qr?jsxRuntimeExports.jsx(AutocompleteClearIndicator,{...qr(),"aria-label":Oe,title:Oe,ownerState:$n,...Vi,className:clsx(Zn.clearIndicator,Vi==null?void 0:Vi.className),children:Pe}):null,Zr?jsxRuntimeExports.jsx(AutocompletePopupIndicator,{...Dr(),disabled:Xe,"aria-label":Sn?Ue:Gr,title:Sn?Ue:Gr,ownerState:$n,...eo,className:clsx(Zn.popupIndicator,eo==null?void 0:eo.className),children:Rn}):null]})}},inputProps:{className:Zn.input,disabled:Xe,readOnly:un,...Hr()}})}),Nn?jsxRuntimeExports.jsx(AutocompletePopper,{as:hi,...Ei,children:jsxRuntimeExports.jsxs(AutocompletePaper,{as:Gn,...di,children:[Ar&&Tr.length===0?jsxRuntimeExports.jsx(AutocompleteLoading,{className:Zn.loading,ownerState:$n,children:vr}):null,Tr.length===0&&!lr&&!Ar?jsxRuntimeExports.jsx(AutocompleteNoOptions,{className:Zn.noOptions,ownerState:$n,role:"presentation",onMouseDown:yi=>{yi.preventDefault()},children:br}):null,Tr.length>0?jsxRuntimeExports.jsx(Wn,{as:ur,...zn,children:Tr.map((yi,Di)=>Ye?ji({key:yi.key,group:yi.group,children:yi.options.map((Hi,Wi)=>oo(Hi,yi.index+Wi))}):oo(yi,Di))}):null]})}):null]})});function useBadge(t){const{badgeContent:Ae,invisible:xe=!1,max:Ee=99,showZero:Se=!1}=t,Ce=usePreviousProps({badgeContent:Ae,max:Ee});let _e=xe;xe===!1&&Ae===0&&!Se&&(_e=!0);const{badgeContent:Ie,max:Be=Ee}=_e?Ce:t,Te=Ie&&Number(Ie)>Be?`${Be}+`:Ie;return{badgeContent:Ie,invisible:_e,max:Be,displayValue:Te}}function getBadgeUtilityClass(t){return generateUtilityClass("MuiBadge",t)}const badgeClasses=generateUtilityClasses("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),RADIUS_STANDARD=10,RADIUS_DOT=4,useUtilityClasses$1f=t=>{const{color:Ae,anchorOrigin:xe,invisible:Ee,overlap:Se,variant:Ce,classes:_e={}}=t,Ie={root:["root"],badge:["badge",Ce,Ee&&"invisible",`anchorOrigin${capitalize$1(xe.vertical)}${capitalize$1(xe.horizontal)}`,`anchorOrigin${capitalize$1(xe.vertical)}${capitalize$1(xe.horizontal)}${capitalize$1(Se)}`,`overlap${capitalize$1(Se)}`,Ae!=="default"&&`color${capitalize$1(Ae)}`]};return composeClasses(Ie,getBadgeUtilityClass,_e)},BadgeRoot=styled("span",{name:"MuiBadge",slot:"Root",overridesResolver:(t,Ae)=>Ae.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),BadgeBadge=styled("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.badge,Ae[xe.variant],Ae[`anchorOrigin${capitalize$1(xe.anchorOrigin.vertical)}${capitalize$1(xe.anchorOrigin.horizontal)}${capitalize$1(xe.overlap)}`],xe.color!=="default"&&Ae[`color${capitalize$1(xe.color)}`],xe.invisible&&Ae.invisible]}})(memoTheme(({theme:t})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:RADIUS_STANDARD*2,lineHeight:1,padding:"0 6px",height:RADIUS_STANDARD*2,borderRadius:RADIUS_STANDARD,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen}),variants:[...Object.entries(t.palette).filter(createSimplePaletteValueFilter(["contrastText"])).map(([Ae])=>({props:{color:Ae},style:{backgroundColor:(t.vars||t).palette[Ae].main,color:(t.vars||t).palette[Ae].contrastText}})),{props:{variant:"dot"},style:{borderRadius:RADIUS_DOT,height:RADIUS_DOT*2,minWidth:RADIUS_DOT*2,padding:0}},{props:({ownerState:Ae})=>Ae.anchorOrigin.vertical==="top"&&Ae.anchorOrigin.horizontal==="right"&&Ae.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${badgeClasses.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:Ae})=>Ae.anchorOrigin.vertical==="bottom"&&Ae.anchorOrigin.horizontal==="right"&&Ae.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${badgeClasses.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:Ae})=>Ae.anchorOrigin.vertical==="top"&&Ae.anchorOrigin.horizontal==="left"&&Ae.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${badgeClasses.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:Ae})=>Ae.anchorOrigin.vertical==="bottom"&&Ae.anchorOrigin.horizontal==="left"&&Ae.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${badgeClasses.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:Ae})=>Ae.anchorOrigin.vertical==="top"&&Ae.anchorOrigin.horizontal==="right"&&Ae.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${badgeClasses.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:Ae})=>Ae.anchorOrigin.vertical==="bottom"&&Ae.anchorOrigin.horizontal==="right"&&Ae.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${badgeClasses.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:Ae})=>Ae.anchorOrigin.vertical==="top"&&Ae.anchorOrigin.horizontal==="left"&&Ae.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${badgeClasses.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:Ae})=>Ae.anchorOrigin.vertical==="bottom"&&Ae.anchorOrigin.horizontal==="left"&&Ae.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${badgeClasses.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})}}]})));function getAnchorOrigin(t){return{vertical:(t==null?void 0:t.vertical)??"top",horizontal:(t==null?void 0:t.horizontal)??"right"}}const Badge=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiBadge"}),{anchorOrigin:Se,className:Ce,classes:_e,component:Ie,components:Be={},componentsProps:Te={},children:Pe,overlap:ke="rectangular",color:$e="default",invisible:Oe=!1,max:Ue=99,badgeContent:qe,slots:ze,slotProps:Qe,showZero:Ge=!1,variant:Xe="standard",...er}=Ee,{badgeContent:tr,invisible:nr,max:sr,displayValue:dr}=useBadge({max:Ue,invisible:Oe,badgeContent:qe,showZero:Ge}),ar=usePreviousProps({anchorOrigin:getAnchorOrigin(Se),color:$e,overlap:ke,variant:Xe,badgeContent:qe}),lr=nr||tr==null&&Xe!=="dot",{color:Ke=$e,overlap:Me=ke,anchorOrigin:je,variant:De=Xe}=lr?ar:Ee,He=getAnchorOrigin(je),Ve=De!=="dot"?dr:void 0,Ye={...Ee,badgeContent:tr,invisible:lr,max:sr,displayValue:Ve,showZero:Ge,anchorOrigin:He,color:Ke,overlap:Me,variant:De},St=useUtilityClasses$1f(Ye),We=(ze==null?void 0:ze.root)??Be.Root??BadgeRoot,Fe=(ze==null?void 0:ze.badge)??Be.Badge??BadgeBadge,Ze=(Qe==null?void 0:Qe.root)??Te.root,ir=(Qe==null?void 0:Qe.badge)??Te.badge,ur=useSlotProps({elementType:We,externalSlotProps:Ze,externalForwardedProps:er,additionalProps:{ref:xe,as:Ie},ownerState:Ye,className:clsx(Ze==null?void 0:Ze.className,St.root,Ce)}),fr=useSlotProps({elementType:Fe,externalSlotProps:ir,ownerState:Ye,className:clsx(St.badge,ir==null?void 0:ir.className)});return jsxRuntimeExports.jsxs(We,{...ur,children:[Pe,jsxRuntimeExports.jsx(Fe,{...fr,children:Ve})]})});function getCardUtilityClass(t){return generateUtilityClass("MuiCard",t)}generateUtilityClasses("MuiCard",["root"]);const useUtilityClasses$1e=t=>{const{classes:Ae}=t;return composeClasses({root:["root"]},getCardUtilityClass,Ae)},CardRoot=styled(Paper,{name:"MuiCard",slot:"Root",overridesResolver:(t,Ae)=>Ae.root})({overflow:"hidden"}),Card=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiCard"}),{className:Se,raised:Ce=!1,..._e}=Ee,Ie={...Ee,raised:Ce},Be=useUtilityClasses$1e(Ie);return jsxRuntimeExports.jsx(CardRoot,{className:clsx(Be.root,Se),elevation:Ce?8:void 0,ref:xe,ownerState:Ie,..._e})});function getCardContentUtilityClass(t){return generateUtilityClass("MuiCardContent",t)}generateUtilityClasses("MuiCardContent",["root"]);const useUtilityClasses$1d=t=>{const{classes:Ae}=t;return composeClasses({root:["root"]},getCardContentUtilityClass,Ae)},CardContentRoot=styled("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(t,Ae)=>Ae.root})({padding:16,"&:last-child":{paddingBottom:24}}),CardContent=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiCardContent"}),{className:Se,component:Ce="div",..._e}=Ee,Ie={...Ee,component:Ce},Be=useUtilityClasses$1d(Ie);return jsxRuntimeExports.jsx(CardContentRoot,{as:Ce,className:clsx(Be.root,Se),ownerState:Ie,ref:xe,..._e})});function getSwitchBaseUtilityClass(t){return generateUtilityClass("PrivateSwitchBase",t)}generateUtilityClasses("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const useUtilityClasses$1c=t=>{const{classes:Ae,checked:xe,disabled:Ee,edge:Se}=t,Ce={root:["root",xe&&"checked",Ee&&"disabled",Se&&`edge${capitalize$1(Se)}`],input:["input"]};return composeClasses(Ce,getSwitchBaseUtilityClass,Ae)},SwitchBaseRoot=styled(ButtonBase)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:t,ownerState:Ae})=>t==="start"&&Ae.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:t,ownerState:Ae})=>t==="end"&&Ae.size!=="small",style:{marginRight:-12}}]}),SwitchBaseInput=styled("input",{shouldForwardProp:rootShouldForwardProp})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),SwitchBase=reactExports.forwardRef(function(Ae,xe){const{autoFocus:Ee,checked:Se,checkedIcon:Ce,defaultChecked:_e,disabled:Ie,disableFocusRipple:Be=!1,edge:Te=!1,icon:Pe,id:ke,inputProps:$e,inputRef:Oe,name:Ue,onBlur:qe,onChange:ze,onFocus:Qe,readOnly:Ge,required:Xe=!1,tabIndex:er,type:tr,value:nr,slots:sr={},slotProps:dr={},...ar}=Ae,[lr,Ke]=useControlled({controlled:Se,default:!!_e,name:"SwitchBase",state:"checked"}),Me=useFormControl(),je=Ar=>{Qe&&Qe(Ar),Me&&Me.onFocus&&Me.onFocus(Ar)},De=Ar=>{qe&&qe(Ar),Me&&Me.onBlur&&Me.onBlur(Ar)},He=Ar=>{if(Ar.nativeEvent.defaultPrevented)return;const vr=Ar.target.checked;Ke(vr),ze&&ze(Ar,vr)};let Ve=Ie;Me&&typeof Ve>"u"&&(Ve=Me.disabled);const Ye=tr==="checkbox"||tr==="radio",St={...Ae,checked:lr,disabled:Ve,disableFocusRipple:Be,edge:Te},We=useUtilityClasses$1c(St),Fe={slots:sr,slotProps:{input:$e,...dr}},[Ze,ir]=useSlot("root",{ref:xe,elementType:SwitchBaseRoot,className:We.root,shouldForwardComponentProp:!0,externalForwardedProps:{...Fe,component:"span",...ar},getSlotProps:Ar=>({...Ar,onFocus:vr=>{var yr;(yr=Ar.onFocus)==null||yr.call(Ar,vr),je(vr)},onBlur:vr=>{var yr;(yr=Ar.onBlur)==null||yr.call(Ar,vr),De(vr)}}),ownerState:St,additionalProps:{centerRipple:!0,focusRipple:!Be,disabled:Ve,role:void 0,tabIndex:null}}),[ur,fr]=useSlot("input",{ref:Oe,elementType:SwitchBaseInput,className:We.input,externalForwardedProps:Fe,getSlotProps:Ar=>({onChange:vr=>{var yr;(yr=Ar.onChange)==null||yr.call(Ar,vr),He(vr)}}),ownerState:St,additionalProps:{autoFocus:Ee,checked:Se,defaultChecked:_e,disabled:Ve,id:Ye?ke:void 0,name:Ue,readOnly:Ge,required:Xe,tabIndex:er,type:tr,...tr==="checkbox"&&nr===void 0?{}:{value:nr}}});return jsxRuntimeExports.jsxs(Ze,{...ir,children:[jsxRuntimeExports.jsx(ur,{...fr}),lr?Ce:Pe]})}),CheckBoxOutlineBlankIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),CheckBoxIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),IndeterminateCheckBoxIcon=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function getCheckboxUtilityClass(t){return generateUtilityClass("MuiCheckbox",t)}const checkboxClasses=generateUtilityClasses("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),useUtilityClasses$1b=t=>{const{classes:Ae,indeterminate:xe,color:Ee,size:Se}=t,Ce={root:["root",xe&&"indeterminate",`color${capitalize$1(Ee)}`,`size${capitalize$1(Se)}`]},_e=composeClasses(Ce,getCheckboxUtilityClass,Ae);return{...Ae,..._e}},CheckboxRoot=styled(SwitchBase,{shouldForwardProp:t=>rootShouldForwardProp(t)||t==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,xe.indeterminate&&Ae.indeterminate,Ae[`size${capitalize$1(xe.size)}`],xe.color!=="default"&&Ae[`color${capitalize$1(xe.color)}`]]}})(memoTheme(({theme:t})=>({color:(t.vars||t).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:alpha$3(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(createSimplePaletteValueFilter()).map(([Ae])=>({props:{color:Ae,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[Ae].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:alpha$3(t.palette[Ae].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(createSimplePaletteValueFilter()).map(([Ae])=>({props:{color:Ae},style:{[`&.${checkboxClasses.checked}, &.${checkboxClasses.indeterminate}`]:{color:(t.vars||t).palette[Ae].main},[`&.${checkboxClasses.disabled}`]:{color:(t.vars||t).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),defaultCheckedIcon$1=jsxRuntimeExports.jsx(CheckBoxIcon,{}),defaultIcon$1=jsxRuntimeExports.jsx(CheckBoxOutlineBlankIcon,{}),defaultIndeterminateIcon=jsxRuntimeExports.jsx(IndeterminateCheckBoxIcon,{}),Checkbox=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiCheckbox"}),{checkedIcon:Se=defaultCheckedIcon$1,color:Ce="primary",icon:_e=defaultIcon$1,indeterminate:Ie=!1,indeterminateIcon:Be=defaultIndeterminateIcon,inputProps:Te,size:Pe="medium",disableRipple:ke=!1,className:$e,slots:Oe={},slotProps:Ue={},...qe}=Ee,ze=Ie?Be:_e,Qe=Ie?Be:Se,Ge={...Ee,disableRipple:ke,color:Ce,indeterminate:Ie,size:Pe},Xe=useUtilityClasses$1b(Ge),er=Ue.input??Te,[tr,nr]=useSlot("root",{ref:xe,elementType:CheckboxRoot,className:clsx(Xe.root,$e),shouldForwardComponentProp:!0,externalForwardedProps:{slots:Oe,slotProps:Ue,...qe},ownerState:Ge,additionalProps:{type:"checkbox",icon:reactExports.cloneElement(ze,{fontSize:ze.props.fontSize??Pe}),checkedIcon:reactExports.cloneElement(Qe,{fontSize:Qe.props.fontSize??Pe}),disableRipple:ke,slots:Oe,slotProps:{input:mergeSlotProps(typeof er=="function"?er(Ge):er,{"data-indeterminate":Ie})}}});return jsxRuntimeExports.jsx(tr,{...nr,classes:Xe})});function mapEventPropToEvent(t){return t.substring(2).toLowerCase()}function clickedRootScrollbar(t,Ae){return Ae.documentElement.clientWidth<t.clientX||Ae.documentElement.clientHeight<t.clientY}function ClickAwayListener(t){const{children:Ae,disableReactTree:xe=!1,mouseEvent:Ee="onClick",onClickAway:Se,touchEvent:Ce="onTouchEnd"}=t,_e=reactExports.useRef(!1),Ie=reactExports.useRef(null),Be=reactExports.useRef(!1),Te=reactExports.useRef(!1);reactExports.useEffect(()=>(setTimeout(()=>{Be.current=!0},0),()=>{Be.current=!1}),[]);const Pe=useForkRef(getReactElementRef(Ae),Ie),ke=useEventCallback(Ue=>{const qe=Te.current;Te.current=!1;const ze=ownerDocument(Ie.current);if(!Be.current||!Ie.current||"clientX"in Ue&&clickedRootScrollbar(Ue,ze))return;if(_e.current){_e.current=!1;return}let Qe;Ue.composedPath?Qe=Ue.composedPath().includes(Ie.current):Qe=!ze.documentElement.contains(Ue.target)||Ie.current.contains(Ue.target),!Qe&&(xe||!qe)&&Se(Ue)}),$e=Ue=>qe=>{Te.current=!0;const ze=Ae.props[Ue];ze&&ze(qe)},Oe={ref:Pe};return Ce!==!1&&(Oe[Ce]=$e(Ce)),reactExports.useEffect(()=>{if(Ce!==!1){const Ue=mapEventPropToEvent(Ce),qe=ownerDocument(Ie.current),ze=()=>{_e.current=!0};return qe.addEventListener(Ue,ke),qe.addEventListener("touchmove",ze),()=>{qe.removeEventListener(Ue,ke),qe.removeEventListener("touchmove",ze)}}},[ke,Ce]),Ee!==!1&&(Oe[Ee]=$e(Ee)),reactExports.useEffect(()=>{if(Ee!==!1){const Ue=mapEventPropToEvent(Ee),qe=ownerDocument(Ie.current);return qe.addEventListener(Ue,ke),()=>{qe.removeEventListener(Ue,ke)}}},[ke,Ee]),reactExports.cloneElement(Ae,Oe)}const Container=createContainer$1({createStyledComponent:styled("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,Ae[`maxWidth${capitalize$1(String(xe.maxWidth))}`],xe.fixed&&Ae.fixed,xe.disableGutters&&Ae.disableGutters]}}),useThemeProps:t=>useDefaultProps({props:t,name:"MuiContainer"})});function getDialogContentTextUtilityClass(t){return generateUtilityClass("MuiDialogContentText",t)}generateUtilityClasses("MuiDialogContentText",["root"]);const useUtilityClasses$1a=t=>{const{classes:Ae}=t,Ee=composeClasses({root:["root"]},getDialogContentTextUtilityClass,Ae);return{...Ae,...Ee}},DialogContentTextRoot=styled(Typography,{shouldForwardProp:t=>rootShouldForwardProp(t)||t==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(t,Ae)=>Ae.root})({}),DialogContentText=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiDialogContentText"}),{children:Se,className:Ce,..._e}=Ee,Ie=useUtilityClasses$1a(_e);return jsxRuntimeExports.jsx(DialogContentTextRoot,{component:"p",variant:"body1",color:"textSecondary",ref:xe,ownerState:_e,className:clsx(Ie.root,Ce),...Ee,classes:Ie})});function getTranslateValue(t,Ae,xe){const Ee=Ae.getBoundingClientRect(),Se=xe&&xe.getBoundingClientRect(),Ce=ownerWindow(Ae);let _e;if(Ae.fakeTransform)_e=Ae.fakeTransform;else{const Te=Ce.getComputedStyle(Ae);_e=Te.getPropertyValue("-webkit-transform")||Te.getPropertyValue("transform")}let Ie=0,Be=0;if(_e&&_e!=="none"&&typeof _e=="string"){const Te=_e.split("(")[1].split(")")[0].split(",");Ie=parseInt(Te[4],10),Be=parseInt(Te[5],10)}return t==="left"?Se?`translateX(${Se.right+Ie-Ee.left}px)`:`translateX(${Ce.innerWidth+Ie-Ee.left}px)`:t==="right"?Se?`translateX(-${Ee.right-Se.left-Ie}px)`:`translateX(-${Ee.left+Ee.width-Ie}px)`:t==="up"?Se?`translateY(${Se.bottom+Be-Ee.top}px)`:`translateY(${Ce.innerHeight+Be-Ee.top}px)`:Se?`translateY(-${Ee.top-Se.top+Ee.height-Be}px)`:`translateY(-${Ee.top+Ee.height-Be}px)`}function resolveContainer(t){return typeof t=="function"?t():t}function setTranslateValue(t,Ae,xe){const Ee=resolveContainer(xe),Se=getTranslateValue(t,Ae,Ee);Se&&(Ae.style.webkitTransform=Se,Ae.style.transform=Se)}const Slide=reactExports.forwardRef(function(Ae,xe){const Ee=useTheme(),Se={enter:Ee.transitions.easing.easeOut,exit:Ee.transitions.easing.sharp},Ce={enter:Ee.transitions.duration.enteringScreen,exit:Ee.transitions.duration.leavingScreen},{addEndListener:_e,appear:Ie=!0,children:Be,container:Te,direction:Pe="down",easing:ke=Se,in:$e,onEnter:Oe,onEntered:Ue,onEntering:qe,onExit:ze,onExited:Qe,onExiting:Ge,style:Xe,timeout:er=Ce,TransitionComponent:tr=Transition,...nr}=Ae,sr=reactExports.useRef(null),dr=useForkRef(getReactElementRef(Be),sr,xe),ar=St=>We=>{St&&(We===void 0?St(sr.current):St(sr.current,We))},lr=ar((St,We)=>{setTranslateValue(Pe,St,Te),reflow(St),Oe&&Oe(St,We)}),Ke=ar((St,We)=>{const Fe=getTransitionProps({timeout:er,style:Xe,easing:ke},{mode:"enter"});St.style.webkitTransition=Ee.transitions.create("-webkit-transform",{...Fe}),St.style.transition=Ee.transitions.create("transform",{...Fe}),St.style.webkitTransform="none",St.style.transform="none",qe&&qe(St,We)}),Me=ar(Ue),je=ar(Ge),De=ar(St=>{const We=getTransitionProps({timeout:er,style:Xe,easing:ke},{mode:"exit"});St.style.webkitTransition=Ee.transitions.create("-webkit-transform",We),St.style.transition=Ee.transitions.create("transform",We),setTranslateValue(Pe,St,Te),ze&&ze(St)}),He=ar(St=>{St.style.webkitTransition="",St.style.transition="",Qe&&Qe(St)}),Ve=St=>{_e&&_e(sr.current,St)},Ye=reactExports.useCallback(()=>{sr.current&&setTranslateValue(Pe,sr.current,Te)},[Pe,Te]);return reactExports.useEffect(()=>{if($e||Pe==="down"||Pe==="right")return;const St=debounce$2(()=>{sr.current&&setTranslateValue(Pe,sr.current,Te)}),We=ownerWindow(sr.current);return We.addEventListener("resize",St),()=>{St.clear(),We.removeEventListener("resize",St)}},[Pe,$e,Te]),reactExports.useEffect(()=>{$e||Ye()},[$e,Ye]),jsxRuntimeExports.jsx(tr,{nodeRef:sr,onEnter:lr,onEntered:Me,onEntering:Ke,onExit:De,onExited:He,onExiting:je,addEndListener:Ve,appear:Ie,in:$e,timeout:er,...nr,children:(St,{ownerState:We,...Fe})=>reactExports.cloneElement(Be,{ref:dr,style:{visibility:St==="exited"&&!$e?"hidden":void 0,...Xe,...Be.props.style},...Fe})})});function getDrawerUtilityClass(t){return generateUtilityClass("MuiDrawer",t)}generateUtilityClasses("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const overridesResolver$4=(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,(xe.variant==="permanent"||xe.variant==="persistent")&&Ae.docked,Ae.modal]},useUtilityClasses$19=t=>{const{classes:Ae,anchor:xe,variant:Ee}=t,Se={root:["root",`anchor${capitalize$1(xe)}`],docked:[(Ee==="permanent"||Ee==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${capitalize$1(xe)}`,Ee!=="temporary"&&`paperAnchorDocked${capitalize$1(xe)}`]};return composeClasses(Se,getDrawerUtilityClass,Ae)},DrawerRoot=styled(Modal,{name:"MuiDrawer",slot:"Root",overridesResolver:overridesResolver$4})(memoTheme(({theme:t})=>({zIndex:(t.vars||t).zIndex.drawer}))),DrawerDockedRoot=styled("div",{shouldForwardProp:rootShouldForwardProp,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:overridesResolver$4})({flex:"0 0 auto"}),DrawerPaper=styled(Paper,{name:"MuiDrawer",slot:"Paper",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.paper,Ae[`paperAnchor${capitalize$1(xe.anchor)}`],xe.variant!=="temporary"&&Ae[`paperAnchorDocked${capitalize$1(xe.anchor)}`]]}})(memoTheme(({theme:t})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:Ae})=>Ae.anchor==="left"&&Ae.variant!=="temporary",style:{borderRight:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:Ae})=>Ae.anchor==="top"&&Ae.variant!=="temporary",style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:Ae})=>Ae.anchor==="right"&&Ae.variant!=="temporary",style:{borderLeft:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:Ae})=>Ae.anchor==="bottom"&&Ae.variant!=="temporary",style:{borderTop:`1px solid ${(t.vars||t).palette.divider}`}}]}))),oppositeDirection={left:"right",right:"left",top:"down",bottom:"up"};function isHorizontal(t){return["left","right"].includes(t)}function getAnchor({direction:t},Ae){return t==="rtl"&&isHorizontal(Ae)?oppositeDirection[Ae]:Ae}const Drawer=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiDrawer"}),Se=useTheme(),Ce=useRtl(),_e={enter:Se.transitions.duration.enteringScreen,exit:Se.transitions.duration.leavingScreen},{anchor:Ie="left",BackdropProps:Be,children:Te,className:Pe,elevation:ke=16,hideBackdrop:$e=!1,ModalProps:{BackdropProps:Oe,...Ue}={},onClose:qe,open:ze=!1,PaperProps:Qe={},SlideProps:Ge,TransitionComponent:Xe,transitionDuration:er=_e,variant:tr="temporary",slots:nr={},slotProps:sr={},...dr}=Ee,ar=reactExports.useRef(!1);reactExports.useEffect(()=>{ar.current=!0},[]);const lr=getAnchor({direction:Ce?"rtl":"ltr"},Ie),Me={...Ee,anchor:Ie,elevation:ke,open:ze,variant:tr,...dr},je=useUtilityClasses$19(Me),De={slots:{transition:Xe,...nr},slotProps:{paper:Qe,transition:Ge,...sr,backdrop:mergeSlotProps(sr.backdrop||{...Be,...Oe},{transitionDuration:er})}},[He,Ve]=useSlot("root",{ref:xe,elementType:DrawerRoot,className:clsx(je.root,je.modal,Pe),shouldForwardComponentProp:!0,ownerState:Me,externalForwardedProps:{...De,...dr,...Ue},additionalProps:{open:ze,onClose:qe,hideBackdrop:$e,slots:{backdrop:De.slots.backdrop},slotProps:{backdrop:De.slotProps.backdrop}}}),[Ye,St]=useSlot("paper",{elementType:DrawerPaper,shouldForwardComponentProp:!0,className:clsx(je.paper,Qe.className),ownerState:Me,externalForwardedProps:De,additionalProps:{elevation:tr==="temporary"?ke:0,square:!0}}),[We,Fe]=useSlot("docked",{elementType:DrawerDockedRoot,ref:xe,className:clsx(je.root,je.docked,Pe),ownerState:Me,externalForwardedProps:De,additionalProps:dr}),[Ze,ir]=useSlot("transition",{elementType:Slide,ownerState:Me,externalForwardedProps:De,additionalProps:{in:ze,direction:oppositeDirection[lr],timeout:er,appear:ar.current}}),ur=jsxRuntimeExports.jsx(Ye,{...St,children:Te});if(tr==="permanent")return jsxRuntimeExports.jsx(We,{...Fe,children:ur});const fr=jsxRuntimeExports.jsx(Ze,{...ir,children:ur});return tr==="persistent"?jsxRuntimeExports.jsx(We,{...Fe,children:fr}):jsxRuntimeExports.jsx(He,{...Ve,children:fr})});function getFabUtilityClass(t){return generateUtilityClass("MuiFab",t)}const fabClasses=generateUtilityClasses("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),useUtilityClasses$18=t=>{const{color:Ae,variant:xe,classes:Ee,size:Se}=t,Ce={root:["root",xe,`size${capitalize$1(Se)}`,Ae==="inherit"?"colorInherit":Ae]},_e=composeClasses(Ce,getFabUtilityClass,Ee);return{...Ee,..._e}},FabRoot=styled(ButtonBase,{name:"MuiFab",slot:"Root",shouldForwardProp:t=>rootShouldForwardProp(t)||t==="classes",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,Ae[xe.variant],Ae[`size${capitalize$1(xe.size)}`],xe.color==="inherit"&&Ae.colorInherit,Ae[capitalize$1(xe.size)],Ae[xe.color]]}})(memoTheme(({theme:t})=>{var Ae,xe;return{...t.typography.button,minHeight:36,transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(t.vars||t).zIndex.fab,boxShadow:(t.vars||t).shadows[6],"&:active":{boxShadow:(t.vars||t).shadows[12]},color:t.vars?t.vars.palette.text.primary:(xe=(Ae=t.palette).getContrastText)==null?void 0:xe.call(Ae,t.palette.grey[300]),backgroundColor:(t.vars||t).palette.grey[300],"&:hover":{backgroundColor:(t.vars||t).palette.grey.A100,"@media (hover: none)":{backgroundColor:(t.vars||t).palette.grey[300]},textDecoration:"none"},[`&.${fabClasses.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},variants:[{props:{size:"small"},style:{width:40,height:40}},{props:{size:"medium"},style:{width:48,height:48}},{props:{variant:"extended"},style:{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48}},{props:{variant:"extended",size:"small"},style:{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34}},{props:{variant:"extended",size:"medium"},style:{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40}},{props:{color:"inherit"},style:{color:"inherit"}}]}}),memoTheme(({theme:t})=>({variants:[...Object.entries(t.palette).filter(createSimplePaletteValueFilter(["dark","contrastText"])).map(([Ae])=>({props:{color:Ae},style:{color:(t.vars||t).palette[Ae].contrastText,backgroundColor:(t.vars||t).palette[Ae].main,"&:hover":{backgroundColor:(t.vars||t).palette[Ae].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[Ae].main}}}}))]})),memoTheme(({theme:t})=>({[`&.${fabClasses.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}))),Fab=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiFab"}),{children:Se,className:Ce,color:_e="default",component:Ie="button",disabled:Be=!1,disableFocusRipple:Te=!1,focusVisibleClassName:Pe,size:ke="large",variant:$e="circular",...Oe}=Ee,Ue={...Ee,color:_e,component:Ie,disabled:Be,disableFocusRipple:Te,size:ke,variant:$e},qe=useUtilityClasses$18(Ue);return jsxRuntimeExports.jsx(FabRoot,{className:clsx(qe.root,Ce),component:Ie,disabled:Be,focusRipple:!Te,focusVisibleClassName:clsx(qe.focusVisible,Pe),ownerState:Ue,ref:xe,...Oe,classes:qe,children:Se})});function getFormControlLabelUtilityClasses(t){return generateUtilityClass("MuiFormControlLabel",t)}const formControlLabelClasses=generateUtilityClasses("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),useUtilityClasses$17=t=>{const{classes:Ae,disabled:xe,labelPlacement:Ee,error:Se,required:Ce}=t,_e={root:["root",xe&&"disabled",`labelPlacement${capitalize$1(Ee)}`,Se&&"error",Ce&&"required"],label:["label",xe&&"disabled"],asterisk:["asterisk",Se&&"error"]};return composeClasses(_e,getFormControlLabelUtilityClasses,Ae)},FormControlLabelRoot=styled("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[{[`& .${formControlLabelClasses.label}`]:Ae.label},Ae.root,Ae[`labelPlacement${capitalize$1(xe.labelPlacement)}`]]}})(memoTheme(({theme:t})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${formControlLabelClasses.disabled}`]:{cursor:"default"},[`& .${formControlLabelClasses.label}`]:{[`&.${formControlLabelClasses.disabled}`]:{color:(t.vars||t).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:Ae})=>Ae==="start"||Ae==="top"||Ae==="bottom",style:{marginLeft:16}}]}))),AsteriskComponent=styled("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(t,Ae)=>Ae.asterisk})(memoTheme(({theme:t})=>({[`&.${formControlLabelClasses.error}`]:{color:(t.vars||t).palette.error.main}}))),FormControlLabel=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiFormControlLabel"}),{checked:Se,className:Ce,componentsProps:_e={},control:Ie,disabled:Be,disableTypography:Te,inputRef:Pe,label:ke,labelPlacement:$e="end",name:Oe,onChange:Ue,required:qe,slots:ze={},slotProps:Qe={},value:Ge,...Xe}=Ee,er=useFormControl(),tr=Be??Ie.props.disabled??(er==null?void 0:er.disabled),nr=qe??Ie.props.required,sr={disabled:tr,required:nr};["checked","name","onChange","value","inputRef"].forEach(He=>{typeof Ie.props[He]>"u"&&typeof Ee[He]<"u"&&(sr[He]=Ee[He])});const dr=formControlState({props:Ee,muiFormControl:er,states:["error"]}),ar={...Ee,disabled:tr,labelPlacement:$e,required:nr,error:dr.error},lr=useUtilityClasses$17(ar),Ke={slots:ze,slotProps:{..._e,...Qe}},[Me,je]=useSlot("typography",{elementType:Typography,externalForwardedProps:Ke,ownerState:ar});let De=ke;return De!=null&&De.type!==Typography&&!Te&&(De=jsxRuntimeExports.jsx(Me,{component:"span",...je,className:clsx(lr.label,je==null?void 0:je.className),children:De})),jsxRuntimeExports.jsxs(FormControlLabelRoot,{className:clsx(lr.root,Ce),ownerState:ar,ref:xe,...Xe,children:[reactExports.cloneElement(Ie,sr),nr?jsxRuntimeExports.jsxs("div",{children:[De,jsxRuntimeExports.jsxs(AsteriskComponent,{ownerState:ar,"aria-hidden":!0,className:lr.asterisk,children:[" ","*"]})]}):De]})});function getFormGroupUtilityClass(t){return generateUtilityClass("MuiFormGroup",t)}generateUtilityClasses("MuiFormGroup",["root","row","error"]);const useUtilityClasses$16=t=>{const{classes:Ae,row:xe,error:Ee}=t;return composeClasses({root:["root",xe&&"row",Ee&&"error"]},getFormGroupUtilityClass,Ae)},FormGroupRoot=styled("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,xe.row&&Ae.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),FormGroup=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiFormGroup"}),{className:Se,row:Ce=!1,..._e}=Ee,Ie=useFormControl(),Be=formControlState({props:Ee,muiFormControl:Ie,states:["error"]}),Te={...Ee,row:Ce,error:Be.error},Pe=useUtilityClasses$16(Te);return jsxRuntimeExports.jsx(FormGroupRoot,{className:clsx(Pe.root,Se),ownerState:Te,ref:xe,..._e})}),GridContext=reactExports.createContext();function getGridUtilityClass(t){return generateUtilityClass("MuiGrid",t)}const SPACINGS=[0,1,2,3,4,5,6,7,8,9,10],DIRECTIONS=["column-reverse","column","row-reverse","row"],WRAPS=["nowrap","wrap-reverse","wrap"],GRID_SIZES=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],gridClasses$1=generateUtilityClasses("MuiGrid",["root","container","item","zeroMinWidth",...SPACINGS.map(t=>`spacing-xs-${t}`),...DIRECTIONS.map(t=>`direction-xs-${t}`),...WRAPS.map(t=>`wrap-xs-${t}`),...GRID_SIZES.map(t=>`grid-xs-${t}`),...GRID_SIZES.map(t=>`grid-sm-${t}`),...GRID_SIZES.map(t=>`grid-md-${t}`),...GRID_SIZES.map(t=>`grid-lg-${t}`),...GRID_SIZES.map(t=>`grid-xl-${t}`)]);function generateGrid({theme:t,ownerState:Ae}){let xe;return t.breakpoints.keys.reduce((Ee,Se)=>{let Ce={};if(Ae[Se]&&(xe=Ae[Se]),!xe)return Ee;if(xe===!0)Ce={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(xe==="auto")Ce={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const _e=resolveBreakpointValues({values:Ae.columns,breakpoints:t.breakpoints.values}),Ie=typeof _e=="object"?_e[Se]:_e;if(Ie==null)return Ee;const Be=`${Math.round(xe/Ie*1e8)/1e6}%`;let Te={};if(Ae.container&&Ae.item&&Ae.columnSpacing!==0){const Pe=t.spacing(Ae.columnSpacing);if(Pe!=="0px"){const ke=`calc(${Be} + ${Pe})`;Te={flexBasis:ke,maxWidth:ke}}}Ce={flexBasis:Be,flexGrow:0,maxWidth:Be,...Te}}return t.breakpoints.values[Se]===0?Object.assign(Ee,Ce):Ee[t.breakpoints.up(Se)]=Ce,Ee},{})}function generateDirection({theme:t,ownerState:Ae}){const xe=resolveBreakpointValues({values:Ae.direction,breakpoints:t.breakpoints.values});return handleBreakpoints({theme:t},xe,Ee=>{const Se={flexDirection:Ee};return Ee.startsWith("column")&&(Se[`& > .${gridClasses$1.item}`]={maxWidth:"none"}),Se})}function extractZeroValueBreakpointKeys({breakpoints:t,values:Ae}){let xe="";Object.keys(Ae).forEach(Se=>{xe===""&&Ae[Se]!==0&&(xe=Se)});const Ee=Object.keys(t).sort((Se,Ce)=>t[Se]-t[Ce]);return Ee.slice(0,Ee.indexOf(xe))}function generateRowGap({theme:t,ownerState:Ae}){const{container:xe,rowSpacing:Ee}=Ae;let Se={};if(xe&&Ee!==0){const Ce=resolveBreakpointValues({values:Ee,breakpoints:t.breakpoints.values});let _e;typeof Ce=="object"&&(_e=extractZeroValueBreakpointKeys({breakpoints:t.breakpoints.values,values:Ce})),Se=handleBreakpoints({theme:t},Ce,(Ie,Be)=>{const Te=t.spacing(Ie);return Te!=="0px"?{marginTop:`calc(-1 * ${Te})`,[`& > .${gridClasses$1.item}`]:{paddingTop:Te}}:_e!=null&&_e.includes(Be)?{}:{marginTop:0,[`& > .${gridClasses$1.item}`]:{paddingTop:0}}})}return Se}function generateColumnGap({theme:t,ownerState:Ae}){const{container:xe,columnSpacing:Ee}=Ae;let Se={};if(xe&&Ee!==0){const Ce=resolveBreakpointValues({values:Ee,breakpoints:t.breakpoints.values});let _e;typeof Ce=="object"&&(_e=extractZeroValueBreakpointKeys({breakpoints:t.breakpoints.values,values:Ce})),Se=handleBreakpoints({theme:t},Ce,(Ie,Be)=>{const Te=t.spacing(Ie);if(Te!=="0px"){const Pe=`calc(-1 * ${Te})`;return{width:`calc(100% + ${Te})`,marginLeft:Pe,[`& > .${gridClasses$1.item}`]:{paddingLeft:Te}}}return _e!=null&&_e.includes(Be)?{}:{width:"100%",marginLeft:0,[`& > .${gridClasses$1.item}`]:{paddingLeft:0}}})}return Se}function resolveSpacingStyles(t,Ae,xe={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[xe[`spacing-xs-${String(t)}`]];const Ee=[];return Ae.forEach(Se=>{const Ce=t[Se];Number(Ce)>0&&Ee.push(xe[`spacing-${Se}-${String(Ce)}`])}),Ee}const GridRoot$1=styled("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,Ae)=>{const{ownerState:xe}=t,{container:Ee,direction:Se,item:Ce,spacing:_e,wrap:Ie,zeroMinWidth:Be,breakpoints:Te}=xe;let Pe=[];Ee&&(Pe=resolveSpacingStyles(_e,Te,Ae));const ke=[];return Te.forEach($e=>{const Oe=xe[$e];Oe&&ke.push(Ae[`grid-${$e}-${String(Oe)}`])}),[Ae.root,Ee&&Ae.container,Ce&&Ae.item,Be&&Ae.zeroMinWidth,...Pe,Se!=="row"&&Ae[`direction-xs-${String(Se)}`],Ie!=="wrap"&&Ae[`wrap-xs-${String(Ie)}`],...ke]}})(({ownerState:t})=>({boxSizing:"border-box",...t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},...t.item&&{margin:0},...t.zeroMinWidth&&{minWidth:0},...t.wrap!=="wrap"&&{flexWrap:t.wrap}}),generateDirection,generateRowGap,generateColumnGap,generateGrid);function resolveSpacingClasses(t,Ae){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const xe=[];return Ae.forEach(Ee=>{const Se=t[Ee];if(Number(Se)>0){const Ce=`spacing-${Ee}-${String(Se)}`;xe.push(Ce)}}),xe}const useUtilityClasses$15=t=>{const{classes:Ae,container:xe,direction:Ee,item:Se,spacing:Ce,wrap:_e,zeroMinWidth:Ie,breakpoints:Be}=t;let Te=[];xe&&(Te=resolveSpacingClasses(Ce,Be));const Pe=[];Be.forEach($e=>{const Oe=t[$e];Oe&&Pe.push(`grid-${$e}-${String(Oe)}`)});const ke={root:["root",xe&&"container",Se&&"item",Ie&&"zeroMinWidth",...Te,Ee!=="row"&&`direction-xs-${String(Ee)}`,_e!=="wrap"&&`wrap-xs-${String(_e)}`,...Pe]};return composeClasses(ke,getGridUtilityClass,Ae)},Grid=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiGrid"}),{breakpoints:Se}=useTheme(),Ce=extendSxProp$1(Ee),{className:_e,columns:Ie,columnSpacing:Be,component:Te="div",container:Pe=!1,direction:ke="row",item:$e=!1,rowSpacing:Oe,spacing:Ue=0,wrap:qe="wrap",zeroMinWidth:ze=!1,...Qe}=Ce,Ge=Oe||Ue,Xe=Be||Ue,er=reactExports.useContext(GridContext),tr=Pe?Ie||12:er,nr={},sr={...Qe};Se.keys.forEach(lr=>{Qe[lr]!=null&&(nr[lr]=Qe[lr],delete sr[lr])});const dr={...Ce,columns:tr,container:Pe,direction:ke,item:$e,rowSpacing:Ge,columnSpacing:Xe,wrap:qe,zeroMinWidth:ze,spacing:Ue,...nr,breakpoints:Se.keys},ar=useUtilityClasses$15(dr);return jsxRuntimeExports.jsx(GridContext.Provider,{value:tr,children:jsxRuntimeExports.jsx(GridRoot$1,{ownerState:dr,className:clsx(ar.root,_e),as:Te,ref:xe,...sr})})});function getInputAdornmentUtilityClass(t){return generateUtilityClass("MuiInputAdornment",t)}const inputAdornmentClasses=generateUtilityClasses("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var _span;const overridesResolver$3=(t,Ae)=>{const{ownerState:xe}=t;return[Ae.root,Ae[`position${capitalize$1(xe.position)}`],xe.disablePointerEvents===!0&&Ae.disablePointerEvents,Ae[xe.variant]]},useUtilityClasses$14=t=>{const{classes:Ae,disablePointerEvents:xe,hiddenLabel:Ee,position:Se,size:Ce,variant:_e}=t,Ie={root:["root",xe&&"disablePointerEvents",Se&&`position${capitalize$1(Se)}`,_e,Ee&&"hiddenLabel",Ce&&`size${capitalize$1(Ce)}`]};return composeClasses(Ie,getInputAdornmentUtilityClass,Ae)},InputAdornmentRoot=styled("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:overridesResolver$3})(memoTheme(({theme:t})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${inputAdornmentClasses.positionStart}&:not(.${inputAdornmentClasses.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),InputAdornment=reactExports.forwardRef(function(Ae,xe){const Ee=useDefaultProps({props:Ae,name:"MuiInputAdornment"}),{children:Se,className:Ce,component:_e="div",disablePointerEvents:Ie=!1,disableTypography:Be=!1,position:Te,variant:Pe,...ke}=Ee,$e=useFormControl()||{};let Oe=Pe;Pe&&$e.variant,$e&&!Oe&&(Oe=$e.variant);const Ue={...Ee,hiddenLabel:$e.hiddenLabel,size:$e.size,disablePointerEvents:Ie,position:Te,variant:Oe},qe=useUtilityClasses$14(Ue);return jsxRuntimeExports.jsx(FormControlContext.Provider,{value:null,children:jsxRuntimeExports.jsx(InputAdornmentRoot,{as:_e,ownerState:Ue,className:clsx(qe.root,Ce),ref:xe,...ke,children:typeof Se=="string"&&!Be?jsxRuntimeExports.jsx(Typography,{color:"textSecondary",children:Se}):jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[Te==="start"?_span||(_span=jsxRuntimeExports.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,Se]})})})});function getLinearProgressUtilityClass(t){return generateUtilityClass("MuiLinearProgress",t)}const linearProgressClasses=generateUtilityClasses("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]),TRANSITION_DURATION=4,indeterminate1Keyframe=keyframes`
|
|
218
218
|
0% {
|
|
219
219
|
left: -35%;
|
|
220
220
|
right: 100%;
|
|
@@ -518,15 +518,15 @@ use chrome, FireFox or Internet Explorer 11`)}var Ae=requireSafeBuffer$1(),xe=re
|
|
|
518
518
|
we accept pull requests
|
|
519
519
|
https://github.com/browserify/crypto-browserify`)},cryptoBrowserify.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},cryptoBrowserify}const version$1="16.5.0",require$$4={version:version$1};var hasRequiredMain;function requireMain(){if(hasRequiredMain)return main.exports;hasRequiredMain=1;var t={};const Ae=require$$2$1,xe=requirePathBrowserify(),Ee=requireBrowser$f(),Se=requireCryptoBrowserify(),_e=require$$4.version,Ie=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function Be(nr){const sr={};let dr=nr.toString();dr=dr.replace(/\r\n?/mg,`
|
|
520
520
|
`);let ar;for(;(ar=Ie.exec(dr))!=null;){const lr=ar[1];let Ke=ar[2]||"";Ke=Ke.trim();const Me=Ke[0];Ke=Ke.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),Me==='"'&&(Ke=Ke.replace(/\\n/g,`
|
|
521
|
-
`),Ke=Ke.replace(/\\r/g,"\r")),sr[lr]=Ke}return sr}function Te(nr){const sr=Ue(nr),dr=tr.configDotenv({path:sr});if(!dr.parsed){const Me=new Error(`MISSING_DATA: Cannot parse ${sr} for an unknown reason`);throw Me.code="MISSING_DATA",Me}const ar=$e(nr).split(","),lr=ar.length;let Ke;for(let Me=0;Me<lr;Me++)try{const je=ar[Me].trim(),De=Oe(dr,je);Ke=tr.decrypt(De.ciphertext,De.key);break}catch(je){if(Me+1>=lr)throw je}return tr.parse(Ke)}function Pe(nr){console.log(`[dotenv@${_e}][WARN] ${nr}`)}function ke(nr){console.log(`[dotenv@${_e}][DEBUG] ${nr}`)}function $e(nr){return nr&&nr.DOTENV_KEY&&nr.DOTENV_KEY.length>0?nr.DOTENV_KEY:t.DOTENV_KEY&&t.DOTENV_KEY.length>0?t.DOTENV_KEY:""}function Oe(nr,sr){let dr;try{dr=new URL(sr)}catch(je){if(je.code==="ERR_INVALID_URL"){const De=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw De.code="INVALID_DOTENV_KEY",De}throw je}const ar=dr.password;if(!ar){const je=new Error("INVALID_DOTENV_KEY: Missing key part");throw je.code="INVALID_DOTENV_KEY",je}const lr=dr.searchParams.get("environment");if(!lr){const je=new Error("INVALID_DOTENV_KEY: Missing environment part");throw je.code="INVALID_DOTENV_KEY",je}const Ke=`DOTENV_VAULT_${lr.toUpperCase()}`,Me=nr.parsed[Ke];if(!Me){const je=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${Ke} in your .env.vault file.`);throw je.code="NOT_FOUND_DOTENV_ENVIRONMENT",je}return{ciphertext:Me,key:ar}}function Ue(nr){let sr=null;if(nr&&nr.path&&nr.path.length>0)if(Array.isArray(nr.path))for(const dr of nr.path)Ae.existsSync(dr)&&(sr=dr.endsWith(".vault")?dr:`${dr}.vault`);else sr=nr.path.endsWith(".vault")?nr.path:`${nr.path}.vault`;else sr=xe.resolve(process$1.cwd(),".env.vault");return Ae.existsSync(sr)?sr:null}function qe(nr){return nr[0]==="~"?xe.join(Ee.homedir(),nr.slice(1)):nr}function ze(nr){!!(nr&&nr.debug)&&ke("Loading env from encrypted .env.vault");const dr=tr._parseVault(nr);let ar=t;return nr&&nr.processEnv!=null&&(ar=nr.processEnv),tr.populate(ar,dr,nr),{parsed:dr}}function Qe(nr){const sr=xe.resolve(process$1.cwd(),".env");let dr="utf8";const ar=!!(nr&&nr.debug);nr&&nr.encoding?dr=nr.encoding:ar&&ke("No encoding is specified. UTF-8 is used by default");let lr=[sr];if(nr&&nr.path)if(!Array.isArray(nr.path))lr=[qe(nr.path)];else{lr=[];for(const De of nr.path)lr.push(qe(De))}let Ke;const Me={};for(const De of lr)try{const He=tr.parse(Ae.readFileSync(De,{encoding:dr}));tr.populate(Me,He,nr)}catch(He){ar&&ke(`Failed to load ${De} ${He.message}`),Ke=He}let je=t;return nr&&nr.processEnv!=null&&(je=nr.processEnv),tr.populate(je,Me,nr),Ke?{parsed:Me,error:Ke}:{parsed:Me}}function Ge(nr){if($e(nr).length===0)return tr.configDotenv(nr);const sr=Ue(nr);return sr?tr._configVault(nr):(Pe(`You set DOTENV_KEY but you are missing a .env.vault file at ${sr}. Did you forget to build it?`),tr.configDotenv(nr))}function Xe(nr,sr){const dr=Buffer$2.from(sr.slice(-64),"hex");let ar=Buffer$2.from(nr,"base64");const lr=ar.subarray(0,12),Ke=ar.subarray(-16);ar=ar.subarray(12,-16);try{const Me=Se.createDecipheriv("aes-256-gcm",dr,lr);return Me.setAuthTag(Ke),`${Me.update(ar)}${Me.final()}`}catch(Me){const je=Me instanceof RangeError,De=Me.message==="Invalid key length",He=Me.message==="Unsupported state or unable to authenticate data";if(je||De){const Ve=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw Ve.code="INVALID_DOTENV_KEY",Ve}else if(He){const Ve=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw Ve.code="DECRYPTION_FAILED",Ve}else throw Me}}function er(nr,sr,dr={}){const ar=!!(dr&&dr.debug),lr=!!(dr&&dr.override);if(typeof sr!="object"){const Ke=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw Ke.code="OBJECT_REQUIRED",Ke}for(const Ke of Object.keys(sr))Object.prototype.hasOwnProperty.call(nr,Ke)?(lr===!0&&(nr[Ke]=sr[Ke]),ar&&ke(lr===!0?`"${Ke}" is already defined and WAS overwritten`:`"${Ke}" is already defined and was NOT overwritten`)):nr[Ke]=sr[Ke]}const tr={configDotenv:Qe,_configVault:ze,_parseVault:Te,config:Ge,decrypt:Xe,parse:Be,populate:er};return main.exports.configDotenv=tr.configDotenv,main.exports._configVault=tr._configVault,main.exports._parseVault=tr._parseVault,main.exports.config=tr.config,main.exports.decrypt=tr.decrypt,main.exports.parse=tr.parse,main.exports.populate=tr.populate,main.exports=tr,main.exports}var envOptions,hasRequiredEnvOptions;function requireEnvOptions(){if(hasRequiredEnvOptions)return envOptions;hasRequiredEnvOptions=1;var t={};const Ae={};return t.DOTENV_CONFIG_ENCODING!=null&&(Ae.encoding=t.DOTENV_CONFIG_ENCODING),t.DOTENV_CONFIG_PATH!=null&&(Ae.path=t.DOTENV_CONFIG_PATH),t.DOTENV_CONFIG_DEBUG!=null&&(Ae.debug=t.DOTENV_CONFIG_DEBUG),t.DOTENV_CONFIG_OVERRIDE!=null&&(Ae.override=t.DOTENV_CONFIG_OVERRIDE),t.DOTENV_CONFIG_DOTENV_KEY!=null&&(Ae.DOTENV_KEY=t.DOTENV_CONFIG_DOTENV_KEY),envOptions=Ae,envOptions}var cliOptions,hasRequiredCliOptions;function requireCliOptions(){if(hasRequiredCliOptions)return cliOptions;hasRequiredCliOptions=1;const t=/^dotenv_config_(encoding|path|debug|override|DOTENV_KEY)=(.+)$/;return cliOptions=function(xe){return xe.reduce(function(Ee,Se){const Ce=Se.match(t);return Ce&&(Ee[Ce[1]]=Ce[2]),Ee},{})},cliOptions}var hasRequiredConfig;function requireConfig(){return hasRequiredConfig||(hasRequiredConfig=1,function(){requireMain().config(Object.assign({},requireEnvOptions(),requireCliOptions()(process$1.argv)))}()),config$1}requireConfig();const state={};var define_process_env_default={};function getEnvString(t,Ae){var Ee;if((Ee=state.config)!=null&&Ee.env&&typeof state.config.env=="object"){const Se=state.config.env[t];if(Se!==void 0)return String(Se)}const xe=define_process_env_default[t];return xe===void 0?Ae:xe}const LOG_LEVELS={error:0,warn:1,info:2,debug:3};let sourceMapSupportInitialized=!1;async function initializeSourceMapSupport(){if(!sourceMapSupportInitialized)try{(await __vitePreload(()=>import("./source-map-support-
|
|
521
|
+
`),Ke=Ke.replace(/\\r/g,"\r")),sr[lr]=Ke}return sr}function Te(nr){const sr=Ue(nr),dr=tr.configDotenv({path:sr});if(!dr.parsed){const Me=new Error(`MISSING_DATA: Cannot parse ${sr} for an unknown reason`);throw Me.code="MISSING_DATA",Me}const ar=$e(nr).split(","),lr=ar.length;let Ke;for(let Me=0;Me<lr;Me++)try{const je=ar[Me].trim(),De=Oe(dr,je);Ke=tr.decrypt(De.ciphertext,De.key);break}catch(je){if(Me+1>=lr)throw je}return tr.parse(Ke)}function Pe(nr){console.log(`[dotenv@${_e}][WARN] ${nr}`)}function ke(nr){console.log(`[dotenv@${_e}][DEBUG] ${nr}`)}function $e(nr){return nr&&nr.DOTENV_KEY&&nr.DOTENV_KEY.length>0?nr.DOTENV_KEY:t.DOTENV_KEY&&t.DOTENV_KEY.length>0?t.DOTENV_KEY:""}function Oe(nr,sr){let dr;try{dr=new URL(sr)}catch(je){if(je.code==="ERR_INVALID_URL"){const De=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw De.code="INVALID_DOTENV_KEY",De}throw je}const ar=dr.password;if(!ar){const je=new Error("INVALID_DOTENV_KEY: Missing key part");throw je.code="INVALID_DOTENV_KEY",je}const lr=dr.searchParams.get("environment");if(!lr){const je=new Error("INVALID_DOTENV_KEY: Missing environment part");throw je.code="INVALID_DOTENV_KEY",je}const Ke=`DOTENV_VAULT_${lr.toUpperCase()}`,Me=nr.parsed[Ke];if(!Me){const je=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${Ke} in your .env.vault file.`);throw je.code="NOT_FOUND_DOTENV_ENVIRONMENT",je}return{ciphertext:Me,key:ar}}function Ue(nr){let sr=null;if(nr&&nr.path&&nr.path.length>0)if(Array.isArray(nr.path))for(const dr of nr.path)Ae.existsSync(dr)&&(sr=dr.endsWith(".vault")?dr:`${dr}.vault`);else sr=nr.path.endsWith(".vault")?nr.path:`${nr.path}.vault`;else sr=xe.resolve(process$1.cwd(),".env.vault");return Ae.existsSync(sr)?sr:null}function qe(nr){return nr[0]==="~"?xe.join(Ee.homedir(),nr.slice(1)):nr}function ze(nr){!!(nr&&nr.debug)&&ke("Loading env from encrypted .env.vault");const dr=tr._parseVault(nr);let ar=t;return nr&&nr.processEnv!=null&&(ar=nr.processEnv),tr.populate(ar,dr,nr),{parsed:dr}}function Qe(nr){const sr=xe.resolve(process$1.cwd(),".env");let dr="utf8";const ar=!!(nr&&nr.debug);nr&&nr.encoding?dr=nr.encoding:ar&&ke("No encoding is specified. UTF-8 is used by default");let lr=[sr];if(nr&&nr.path)if(!Array.isArray(nr.path))lr=[qe(nr.path)];else{lr=[];for(const De of nr.path)lr.push(qe(De))}let Ke;const Me={};for(const De of lr)try{const He=tr.parse(Ae.readFileSync(De,{encoding:dr}));tr.populate(Me,He,nr)}catch(He){ar&&ke(`Failed to load ${De} ${He.message}`),Ke=He}let je=t;return nr&&nr.processEnv!=null&&(je=nr.processEnv),tr.populate(je,Me,nr),Ke?{parsed:Me,error:Ke}:{parsed:Me}}function Ge(nr){if($e(nr).length===0)return tr.configDotenv(nr);const sr=Ue(nr);return sr?tr._configVault(nr):(Pe(`You set DOTENV_KEY but you are missing a .env.vault file at ${sr}. Did you forget to build it?`),tr.configDotenv(nr))}function Xe(nr,sr){const dr=Buffer$2.from(sr.slice(-64),"hex");let ar=Buffer$2.from(nr,"base64");const lr=ar.subarray(0,12),Ke=ar.subarray(-16);ar=ar.subarray(12,-16);try{const Me=Se.createDecipheriv("aes-256-gcm",dr,lr);return Me.setAuthTag(Ke),`${Me.update(ar)}${Me.final()}`}catch(Me){const je=Me instanceof RangeError,De=Me.message==="Invalid key length",He=Me.message==="Unsupported state or unable to authenticate data";if(je||De){const Ve=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw Ve.code="INVALID_DOTENV_KEY",Ve}else if(He){const Ve=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw Ve.code="DECRYPTION_FAILED",Ve}else throw Me}}function er(nr,sr,dr={}){const ar=!!(dr&&dr.debug),lr=!!(dr&&dr.override);if(typeof sr!="object"){const Ke=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw Ke.code="OBJECT_REQUIRED",Ke}for(const Ke of Object.keys(sr))Object.prototype.hasOwnProperty.call(nr,Ke)?(lr===!0&&(nr[Ke]=sr[Ke]),ar&&ke(lr===!0?`"${Ke}" is already defined and WAS overwritten`:`"${Ke}" is already defined and was NOT overwritten`)):nr[Ke]=sr[Ke]}const tr={configDotenv:Qe,_configVault:ze,_parseVault:Te,config:Ge,decrypt:Xe,parse:Be,populate:er};return main.exports.configDotenv=tr.configDotenv,main.exports._configVault=tr._configVault,main.exports._parseVault=tr._parseVault,main.exports.config=tr.config,main.exports.decrypt=tr.decrypt,main.exports.parse=tr.parse,main.exports.populate=tr.populate,main.exports=tr,main.exports}var envOptions,hasRequiredEnvOptions;function requireEnvOptions(){if(hasRequiredEnvOptions)return envOptions;hasRequiredEnvOptions=1;var t={};const Ae={};return t.DOTENV_CONFIG_ENCODING!=null&&(Ae.encoding=t.DOTENV_CONFIG_ENCODING),t.DOTENV_CONFIG_PATH!=null&&(Ae.path=t.DOTENV_CONFIG_PATH),t.DOTENV_CONFIG_DEBUG!=null&&(Ae.debug=t.DOTENV_CONFIG_DEBUG),t.DOTENV_CONFIG_OVERRIDE!=null&&(Ae.override=t.DOTENV_CONFIG_OVERRIDE),t.DOTENV_CONFIG_DOTENV_KEY!=null&&(Ae.DOTENV_KEY=t.DOTENV_CONFIG_DOTENV_KEY),envOptions=Ae,envOptions}var cliOptions,hasRequiredCliOptions;function requireCliOptions(){if(hasRequiredCliOptions)return cliOptions;hasRequiredCliOptions=1;const t=/^dotenv_config_(encoding|path|debug|override|DOTENV_KEY)=(.+)$/;return cliOptions=function(xe){return xe.reduce(function(Ee,Se){const Ce=Se.match(t);return Ce&&(Ee[Ce[1]]=Ce[2]),Ee},{})},cliOptions}var hasRequiredConfig;function requireConfig(){return hasRequiredConfig||(hasRequiredConfig=1,function(){requireMain().config(Object.assign({},requireEnvOptions(),requireCliOptions()(process$1.argv)))}()),config$1}requireConfig();const state={};var define_process_env_default={};function getEnvString(t,Ae){var Ee;if((Ee=state.config)!=null&&Ee.env&&typeof state.config.env=="object"){const Se=state.config.env[t];if(Se!==void 0)return String(Se)}const xe=define_process_env_default[t];return xe===void 0?Ae:xe}const LOG_LEVELS={error:0,warn:1,info:2,debug:3};let sourceMapSupportInitialized=!1;async function initializeSourceMapSupport(){if(!sourceMapSupportInitialized)try{(await __vitePreload(()=>import("./source-map-support-CEIPORzr.js").then(Ae=>Ae.s),[])).install(),sourceMapSupportInitialized=!0}catch{}}function getCallerLocation(){var t;try{const Ee=(((t=new Error().stack)==null?void 0:t.split(`
|
|
522
522
|
`))||[])[3];if(Ee){const Se=Ee.match(/at (?:.*) \((.+):(\d+):(\d+)\)/),Ce=Ee.match(/at (.+):(\d+):(\d+)/),_e=Se||Ce;if(_e){const Ie=_e[1],Be=_e[2];return`[${path$1.basename(Ie)}:${Be}]`}}}catch{}return""}function extractMessage(t){return typeof t.message=="object"&&t.message!==null&&"message"in t.message?typeof t.message.message=="string"?t.message.message:String(t.message.message):typeof t.message=="string"?t.message:JSON.stringify(t.message)}const consoleFormatter=winston.format.printf(t=>{const Ae=extractMessage(t),xe=t.location?`${t.location} `:"";if(t.level==="error")return chalk.red(`${xe}${Ae}`);if(t.level==="warn")return chalk.yellow(`${xe}${Ae}`);if(t.level==="info")return`${xe}${Ae}`;if(t.level==="debug")return`${chalk.cyan(xe)}${Ae}`;throw new Error(`Invalid log level: ${t.level}`)}),fileFormatter=winston.format.printf(t=>{const Ae=new Date().toISOString(),xe=t.location?` ${t.location}`:"",Ee=extractMessage(t);return`${Ae} [${t.level.toUpperCase()}]${xe}: ${Ee}`}),winstonLogger=winston.createLogger({levels:LOG_LEVELS,transports:[new winston.transports.Console({level:getEnvString("LOG_LEVEL","info"),format:winston.format.combine(winston.format.simple(),consoleFormatter)})]});getEnvString("PROMPTFOO_DISABLE_ERROR_LOG","")||winstonLogger.on("data",t=>{if(t.level==="error"&&!winstonLogger.transports.some(Ae=>Ae instanceof winston.transports.File)){const Ae=new winston.transports.File({filename:path$1.join(getEnvString("PROMPTFOO_LOG_DIR","."),"promptfoo-errors.log"),level:"error",format:winston.format.combine(winston.format.simple(),fileFormatter)});winstonLogger.add(Ae),Ae.write(t)}});function getLogLevel(){return winstonLogger.transports[0].level}function isDebugEnabled(){return getLogLevel()==="debug"}function createLogMethod(t){return Ae=>{const xe=t==="debug"||isDebugEnabled()?getCallerLocation():"";return t==="debug"&&initializeSourceMapSupport(),winstonLogger[t]({message:Ae,location:xe})}}const logger=Object.assign({},winstonLogger,{error:createLogMethod("error"),warn:createLogMethod("warn"),info:createLogMethod("info"),debug:createLogMethod("debug"),add:winstonLogger.add.bind(winstonLogger),remove:winstonLogger.remove.bind(winstonLogger),transports:winstonLogger.transports});getEnvString("LOG_LEVEL","info")==="debug"&&initializeSourceMapSupport();var util;(function(t){t.assertEqual=Se=>Se;function Ae(Se){}t.assertIs=Ae;function xe(Se){throw new Error}t.assertNever=xe,t.arrayToEnum=Se=>{const Ce={};for(const _e of Se)Ce[_e]=_e;return Ce},t.getValidEnumValues=Se=>{const Ce=t.objectKeys(Se).filter(Ie=>typeof Se[Se[Ie]]!="number"),_e={};for(const Ie of Ce)_e[Ie]=Se[Ie];return t.objectValues(_e)},t.objectValues=Se=>t.objectKeys(Se).map(function(Ce){return Se[Ce]}),t.objectKeys=typeof Object.keys=="function"?Se=>Object.keys(Se):Se=>{const Ce=[];for(const _e in Se)Object.prototype.hasOwnProperty.call(Se,_e)&&Ce.push(_e);return Ce},t.find=(Se,Ce)=>{for(const _e of Se)if(Ce(_e))return _e},t.isInteger=typeof Number.isInteger=="function"?Se=>Number.isInteger(Se):Se=>typeof Se=="number"&&isFinite(Se)&&Math.floor(Se)===Se;function Ee(Se,Ce=" | "){return Se.map(_e=>typeof _e=="string"?`'${_e}'`:_e).join(Ce)}t.joinValues=Ee,t.jsonStringifyReplacer=(Se,Ce)=>typeof Ce=="bigint"?Ce.toString():Ce})(util||(util={}));var objectUtil;(function(t){t.mergeShapes=(Ae,xe)=>({...Ae,...xe})})(objectUtil||(objectUtil={}));const ZodParsedType=util.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),getParsedType=t=>{switch(typeof t){case"undefined":return ZodParsedType.undefined;case"string":return ZodParsedType.string;case"number":return isNaN(t)?ZodParsedType.nan:ZodParsedType.number;case"boolean":return ZodParsedType.boolean;case"function":return ZodParsedType.function;case"bigint":return ZodParsedType.bigint;case"symbol":return ZodParsedType.symbol;case"object":return Array.isArray(t)?ZodParsedType.array:t===null?ZodParsedType.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?ZodParsedType.promise:typeof Map<"u"&&t instanceof Map?ZodParsedType.map:typeof Set<"u"&&t instanceof Set?ZodParsedType.set:typeof Date<"u"&&t instanceof Date?ZodParsedType.date:ZodParsedType.object;default:return ZodParsedType.unknown}},ZodIssueCode=util.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),quotelessJson=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:");class ZodError extends Error{get errors(){return this.issues}constructor(Ae){super(),this.issues=[],this.addIssue=Ee=>{this.issues=[...this.issues,Ee]},this.addIssues=(Ee=[])=>{this.issues=[...this.issues,...Ee]};const xe=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,xe):this.__proto__=xe,this.name="ZodError",this.issues=Ae}format(Ae){const xe=Ae||function(Ce){return Ce.message},Ee={_errors:[]},Se=Ce=>{for(const _e of Ce.issues)if(_e.code==="invalid_union")_e.unionErrors.map(Se);else if(_e.code==="invalid_return_type")Se(_e.returnTypeError);else if(_e.code==="invalid_arguments")Se(_e.argumentsError);else if(_e.path.length===0)Ee._errors.push(xe(_e));else{let Ie=Ee,Be=0;for(;Be<_e.path.length;){const Te=_e.path[Be];Be===_e.path.length-1?(Ie[Te]=Ie[Te]||{_errors:[]},Ie[Te]._errors.push(xe(_e))):Ie[Te]=Ie[Te]||{_errors:[]},Ie=Ie[Te],Be++}}};return Se(this),Ee}static assert(Ae){if(!(Ae instanceof ZodError))throw new Error(`Not a ZodError: ${Ae}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,util.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(Ae=xe=>xe.message){const xe={},Ee=[];for(const Se of this.issues)Se.path.length>0?(xe[Se.path[0]]=xe[Se.path[0]]||[],xe[Se.path[0]].push(Ae(Se))):Ee.push(Ae(Se));return{formErrors:Ee,fieldErrors:xe}}get formErrors(){return this.flatten()}}ZodError.create=t=>new ZodError(t);const errorMap=(t,Ae)=>{let xe;switch(t.code){case ZodIssueCode.invalid_type:t.received===ZodParsedType.undefined?xe="Required":xe=`Expected ${t.expected}, received ${t.received}`;break;case ZodIssueCode.invalid_literal:xe=`Invalid literal value, expected ${JSON.stringify(t.expected,util.jsonStringifyReplacer)}`;break;case ZodIssueCode.unrecognized_keys:xe=`Unrecognized key(s) in object: ${util.joinValues(t.keys,", ")}`;break;case ZodIssueCode.invalid_union:xe="Invalid input";break;case ZodIssueCode.invalid_union_discriminator:xe=`Invalid discriminator value. Expected ${util.joinValues(t.options)}`;break;case ZodIssueCode.invalid_enum_value:xe=`Invalid enum value. Expected ${util.joinValues(t.options)}, received '${t.received}'`;break;case ZodIssueCode.invalid_arguments:xe="Invalid function arguments";break;case ZodIssueCode.invalid_return_type:xe="Invalid function return type";break;case ZodIssueCode.invalid_date:xe="Invalid date";break;case ZodIssueCode.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(xe=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(xe=`${xe} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?xe=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?xe=`Invalid input: must end with "${t.validation.endsWith}"`:util.assertNever(t.validation):t.validation!=="regex"?xe=`Invalid ${t.validation}`:xe="Invalid";break;case ZodIssueCode.too_small:t.type==="array"?xe=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?xe=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?xe=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?xe=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:xe="Invalid input";break;case ZodIssueCode.too_big:t.type==="array"?xe=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?xe=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?xe=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?xe=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?xe=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:xe="Invalid input";break;case ZodIssueCode.custom:xe="Invalid input";break;case ZodIssueCode.invalid_intersection_types:xe="Intersection results could not be merged";break;case ZodIssueCode.not_multiple_of:xe=`Number must be a multiple of ${t.multipleOf}`;break;case ZodIssueCode.not_finite:xe="Number must be finite";break;default:xe=Ae.defaultError,util.assertNever(t)}return{message:xe}};let overrideErrorMap=errorMap;function setErrorMap(t){overrideErrorMap=t}function getErrorMap(){return overrideErrorMap}const makeIssue=t=>{const{data:Ae,path:xe,errorMaps:Ee,issueData:Se}=t,Ce=[...xe,...Se.path||[]],_e={...Se,path:Ce};if(Se.message!==void 0)return{...Se,path:Ce,message:Se.message};let Ie="";const Be=Ee.filter(Te=>!!Te).slice().reverse();for(const Te of Be)Ie=Te(_e,{data:Ae,defaultError:Ie}).message;return{...Se,path:Ce,message:Ie}},EMPTY_PATH=[];function addIssueToContext(t,Ae){const xe=getErrorMap(),Ee=makeIssue({issueData:Ae,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,xe,xe===errorMap?void 0:errorMap].filter(Se=>!!Se)});t.common.issues.push(Ee)}class ParseStatus{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(Ae,xe){const Ee=[];for(const Se of xe){if(Se.status==="aborted")return INVALID;Se.status==="dirty"&&Ae.dirty(),Ee.push(Se.value)}return{status:Ae.value,value:Ee}}static async mergeObjectAsync(Ae,xe){const Ee=[];for(const Se of xe){const Ce=await Se.key,_e=await Se.value;Ee.push({key:Ce,value:_e})}return ParseStatus.mergeObjectSync(Ae,Ee)}static mergeObjectSync(Ae,xe){const Ee={};for(const Se of xe){const{key:Ce,value:_e}=Se;if(Ce.status==="aborted"||_e.status==="aborted")return INVALID;Ce.status==="dirty"&&Ae.dirty(),_e.status==="dirty"&&Ae.dirty(),Ce.value!=="__proto__"&&(typeof _e.value<"u"||Se.alwaysSet)&&(Ee[Ce.value]=_e.value)}return{status:Ae.value,value:Ee}}}const INVALID=Object.freeze({status:"aborted"}),DIRTY=t=>({status:"dirty",value:t}),OK=t=>({status:"valid",value:t}),isAborted=t=>t.status==="aborted",isDirty=t=>t.status==="dirty",isValid=t=>t.status==="valid",isAsync=t=>typeof Promise<"u"&&t instanceof Promise;function __classPrivateFieldGet(t,Ae,xe,Ee){if(typeof Ae=="function"?t!==Ae||!0:!Ae.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return Ae.get(t)}function __classPrivateFieldSet(t,Ae,xe,Ee,Se){if(typeof Ae=="function"?t!==Ae||!0:!Ae.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return Ae.set(t,xe),xe}typeof SuppressedError=="function"&&SuppressedError;var errorUtil;(function(t){t.errToObj=Ae=>typeof Ae=="string"?{message:Ae}:Ae||{},t.toString=Ae=>typeof Ae=="string"?Ae:Ae==null?void 0:Ae.message})(errorUtil||(errorUtil={}));var _ZodEnum_cache,_ZodNativeEnum_cache;class ParseInputLazyPath{constructor(Ae,xe,Ee,Se){this._cachedPath=[],this.parent=Ae,this.data=xe,this._path=Ee,this._key=Se}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const handleResult=(t,Ae)=>{if(isValid(Ae))return{success:!0,data:Ae.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const xe=new ZodError(t.common.issues);return this._error=xe,this._error}}};function processCreateParams(t){if(!t)return{};const{errorMap:Ae,invalid_type_error:xe,required_error:Ee,description:Se}=t;if(Ae&&(xe||Ee))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return Ae?{errorMap:Ae,description:Se}:{errorMap:(_e,Ie)=>{var Be,Te;const{message:Pe}=t;return _e.code==="invalid_enum_value"?{message:Pe??Ie.defaultError}:typeof Ie.data>"u"?{message:(Be=Pe??Ee)!==null&&Be!==void 0?Be:Ie.defaultError}:_e.code!=="invalid_type"?{message:Ie.defaultError}:{message:(Te=Pe??xe)!==null&&Te!==void 0?Te:Ie.defaultError}},description:Se}}class ZodType{get description(){return this._def.description}_getType(Ae){return getParsedType(Ae.data)}_getOrReturnCtx(Ae,xe){return xe||{common:Ae.parent.common,data:Ae.data,parsedType:getParsedType(Ae.data),schemaErrorMap:this._def.errorMap,path:Ae.path,parent:Ae.parent}}_processInputParams(Ae){return{status:new ParseStatus,ctx:{common:Ae.parent.common,data:Ae.data,parsedType:getParsedType(Ae.data),schemaErrorMap:this._def.errorMap,path:Ae.path,parent:Ae.parent}}}_parseSync(Ae){const xe=this._parse(Ae);if(isAsync(xe))throw new Error("Synchronous parse encountered promise.");return xe}_parseAsync(Ae){const xe=this._parse(Ae);return Promise.resolve(xe)}parse(Ae,xe){const Ee=this.safeParse(Ae,xe);if(Ee.success)return Ee.data;throw Ee.error}safeParse(Ae,xe){var Ee;const Se={common:{issues:[],async:(Ee=xe==null?void 0:xe.async)!==null&&Ee!==void 0?Ee:!1,contextualErrorMap:xe==null?void 0:xe.errorMap},path:(xe==null?void 0:xe.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:Ae,parsedType:getParsedType(Ae)},Ce=this._parseSync({data:Ae,path:Se.path,parent:Se});return handleResult(Se,Ce)}"~validate"(Ae){var xe,Ee;const Se={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:Ae,parsedType:getParsedType(Ae)};if(!this["~standard"].async)try{const Ce=this._parseSync({data:Ae,path:[],parent:Se});return isValid(Ce)?{value:Ce.value}:{issues:Se.common.issues}}catch(Ce){!((Ee=(xe=Ce==null?void 0:Ce.message)===null||xe===void 0?void 0:xe.toLowerCase())===null||Ee===void 0)&&Ee.includes("encountered")&&(this["~standard"].async=!0),Se.common={issues:[],async:!0}}return this._parseAsync({data:Ae,path:[],parent:Se}).then(Ce=>isValid(Ce)?{value:Ce.value}:{issues:Se.common.issues})}async parseAsync(Ae,xe){const Ee=await this.safeParseAsync(Ae,xe);if(Ee.success)return Ee.data;throw Ee.error}async safeParseAsync(Ae,xe){const Ee={common:{issues:[],contextualErrorMap:xe==null?void 0:xe.errorMap,async:!0},path:(xe==null?void 0:xe.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:Ae,parsedType:getParsedType(Ae)},Se=this._parse({data:Ae,path:Ee.path,parent:Ee}),Ce=await(isAsync(Se)?Se:Promise.resolve(Se));return handleResult(Ee,Ce)}refine(Ae,xe){const Ee=Se=>typeof xe=="string"||typeof xe>"u"?{message:xe}:typeof xe=="function"?xe(Se):xe;return this._refinement((Se,Ce)=>{const _e=Ae(Se),Ie=()=>Ce.addIssue({code:ZodIssueCode.custom,...Ee(Se)});return typeof Promise<"u"&&_e instanceof Promise?_e.then(Be=>Be?!0:(Ie(),!1)):_e?!0:(Ie(),!1)})}refinement(Ae,xe){return this._refinement((Ee,Se)=>Ae(Ee)?!0:(Se.addIssue(typeof xe=="function"?xe(Ee,Se):xe),!1))}_refinement(Ae){return new ZodEffects({schema:this,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:{type:"refinement",refinement:Ae}})}superRefine(Ae){return this._refinement(Ae)}constructor(Ae){this.spa=this.safeParseAsync,this._def=Ae,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:xe=>this["~validate"](xe)}}optional(){return ZodOptional.create(this,this._def)}nullable(){return ZodNullable.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ZodArray.create(this)}promise(){return ZodPromise.create(this,this._def)}or(Ae){return ZodUnion.create([this,Ae],this._def)}and(Ae){return ZodIntersection.create(this,Ae,this._def)}transform(Ae){return new ZodEffects({...processCreateParams(this._def),schema:this,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:{type:"transform",transform:Ae}})}default(Ae){const xe=typeof Ae=="function"?Ae:()=>Ae;return new ZodDefault({...processCreateParams(this._def),innerType:this,defaultValue:xe,typeName:ZodFirstPartyTypeKind.ZodDefault})}brand(){return new ZodBranded({typeName:ZodFirstPartyTypeKind.ZodBranded,type:this,...processCreateParams(this._def)})}catch(Ae){const xe=typeof Ae=="function"?Ae:()=>Ae;return new ZodCatch({...processCreateParams(this._def),innerType:this,catchValue:xe,typeName:ZodFirstPartyTypeKind.ZodCatch})}describe(Ae){const xe=this.constructor;return new xe({...this._def,description:Ae})}pipe(Ae){return ZodPipeline.create(this,Ae)}readonly(){return ZodReadonly.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const cuidRegex=/^c[^\s-]{8,}$/i,cuid2Regex=/^[0-9a-z]+$/,ulidRegex=/^[0-9A-HJKMNP-TV-Z]{26}$/i,uuidRegex=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,nanoidRegex=/^[a-z0-9_-]{21}$/i,jwtRegex=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,durationRegex=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,emailRegex=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,_emojiRegex="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let emojiRegex;const ipv4Regex=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4CidrRegex=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6Regex=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,ipv6CidrRegex=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64Regex=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64urlRegex=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,dateRegexSource="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",dateRegex=new RegExp(`^${dateRegexSource}$`);function timeRegexSource(t){let Ae="[0-5]\\d";t.precision?Ae=`${Ae}\\.\\d{${t.precision}}`:t.precision==null&&(Ae=`${Ae}(\\.\\d+)?`);const xe=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${Ae})${xe}`}function timeRegex(t){return new RegExp(`^${timeRegexSource(t)}$`)}function datetimeRegex(t){let Ae=`${dateRegexSource}T${timeRegexSource(t)}`;const xe=[];return xe.push(t.local?"Z?":"Z"),t.offset&&xe.push("([+-]\\d{2}:?\\d{2})"),Ae=`${Ae}(${xe.join("|")})`,new RegExp(`^${Ae}$`)}function isValidIP(t,Ae){return!!((Ae==="v4"||!Ae)&&ipv4Regex.test(t)||(Ae==="v6"||!Ae)&&ipv6Regex.test(t))}function isValidJWT(t,Ae){if(!jwtRegex.test(t))return!1;try{const[xe]=t.split("."),Ee=xe.replace(/-/g,"+").replace(/_/g,"/").padEnd(xe.length+(4-xe.length%4)%4,"="),Se=JSON.parse(atob(Ee));return!(typeof Se!="object"||Se===null||!Se.typ||!Se.alg||Ae&&Se.alg!==Ae)}catch{return!1}}function isValidCidr(t,Ae){return!!((Ae==="v4"||!Ae)&&ipv4CidrRegex.test(t)||(Ae==="v6"||!Ae)&&ipv6CidrRegex.test(t))}class ZodString extends ZodType{_parse(Ae){if(this._def.coerce&&(Ae.data=String(Ae.data)),this._getType(Ae)!==ZodParsedType.string){const Ce=this._getOrReturnCtx(Ae);return addIssueToContext(Ce,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.string,received:Ce.parsedType}),INVALID}const Ee=new ParseStatus;let Se;for(const Ce of this._def.checks)if(Ce.kind==="min")Ae.data.length<Ce.value&&(Se=this._getOrReturnCtx(Ae,Se),addIssueToContext(Se,{code:ZodIssueCode.too_small,minimum:Ce.value,type:"string",inclusive:!0,exact:!1,message:Ce.message}),Ee.dirty());else if(Ce.kind==="max")Ae.data.length>Ce.value&&(Se=this._getOrReturnCtx(Ae,Se),addIssueToContext(Se,{code:ZodIssueCode.too_big,maximum:Ce.value,type:"string",inclusive:!0,exact:!1,message:Ce.message}),Ee.dirty());else if(Ce.kind==="length"){const _e=Ae.data.length>Ce.value,Ie=Ae.data.length<Ce.value;(_e||Ie)&&(Se=this._getOrReturnCtx(Ae,Se),_e?addIssueToContext(Se,{code:ZodIssueCode.too_big,maximum:Ce.value,type:"string",inclusive:!0,exact:!0,message:Ce.message}):Ie&&addIssueToContext(Se,{code:ZodIssueCode.too_small,minimum:Ce.value,type:"string",inclusive:!0,exact:!0,message:Ce.message}),Ee.dirty())}else if(Ce.kind==="email")emailRegex.test(Ae.data)||(Se=this._getOrReturnCtx(Ae,Se),addIssueToContext(Se,{validation:"email",code:ZodIssueCode.invalid_string,message:Ce.message}),Ee.dirty());else if(Ce.kind==="emoji")emojiRegex||(emojiRegex=new RegExp(_emojiRegex,"u")),emojiRegex.test(Ae.data)||(Se=this._getOrReturnCtx(Ae,Se),addIssueToContext(Se,{validation:"emoji",code:ZodIssueCode.invalid_string,message:Ce.message}),Ee.dirty());else if(Ce.kind==="uuid")uuidRegex.test(Ae.data)||(Se=this._getOrReturnCtx(Ae,Se),addIssueToContext(Se,{validation:"uuid",code:ZodIssueCode.invalid_string,message:Ce.message}),Ee.dirty());else if(Ce.kind==="nanoid")nanoidRegex.test(Ae.data)||(Se=this._getOrReturnCtx(Ae,Se),addIssueToContext(Se,{validation:"nanoid",code:ZodIssueCode.invalid_string,message:Ce.message}),Ee.dirty());else if(Ce.kind==="cuid")cuidRegex.test(Ae.data)||(Se=this._getOrReturnCtx(Ae,Se),addIssueToContext(Se,{validation:"cuid",code:ZodIssueCode.invalid_string,message:Ce.message}),Ee.dirty());else if(Ce.kind==="cuid2")cuid2Regex.test(Ae.data)||(Se=this._getOrReturnCtx(Ae,Se),addIssueToContext(Se,{validation:"cuid2",code:ZodIssueCode.invalid_string,message:Ce.message}),Ee.dirty());else if(Ce.kind==="ulid")ulidRegex.test(Ae.data)||(Se=this._getOrReturnCtx(Ae,Se),addIssueToContext(Se,{validation:"ulid",code:ZodIssueCode.invalid_string,message:Ce.message}),Ee.dirty());else if(Ce.kind==="url")try{new URL(Ae.data)}catch{Se=this._getOrReturnCtx(Ae,Se),addIssueToContext(Se,{validation:"url",code:ZodIssueCode.invalid_string,message:Ce.message}),Ee.dirty()}else Ce.kind==="regex"?(Ce.regex.lastIndex=0,Ce.regex.test(Ae.data)||(Se=this._getOrReturnCtx(Ae,Se),addIssueToContext(Se,{validation:"regex",code:ZodIssueCode.invalid_string,message:Ce.message}),Ee.dirty())):Ce.kind==="trim"?Ae.data=Ae.data.trim():Ce.kind==="includes"?Ae.data.includes(Ce.value,Ce.position)||(Se=this._getOrReturnCtx(Ae,Se),addIssueToContext(Se,{code:ZodIssueCode.invalid_string,validation:{includes:Ce.value,position:Ce.position},message:Ce.message}),Ee.dirty()):Ce.kind==="toLowerCase"?Ae.data=Ae.data.toLowerCase():Ce.kind==="toUpperCase"?Ae.data=Ae.data.toUpperCase():Ce.kind==="startsWith"?Ae.data.startsWith(Ce.value)||(Se=this._getOrReturnCtx(Ae,Se),addIssueToContext(Se,{code:ZodIssueCode.invalid_string,validation:{startsWith:Ce.value},message:Ce.message}),Ee.dirty()):Ce.kind==="endsWith"?Ae.data.endsWith(Ce.value)||(Se=this._getOrReturnCtx(Ae,Se),addIssueToContext(Se,{code:ZodIssueCode.invalid_string,validation:{endsWith:Ce.value},message:Ce.message}),Ee.dirty()):Ce.kind==="datetime"?datetimeRegex(Ce).test(Ae.data)||(Se=this._getOrReturnCtx(Ae,Se),addIssueToContext(Se,{code:ZodIssueCode.invalid_string,validation:"datetime",message:Ce.message}),Ee.dirty()):Ce.kind==="date"?dateRegex.test(Ae.data)||(Se=this._getOrReturnCtx(Ae,Se),addIssueToContext(Se,{code:ZodIssueCode.invalid_string,validation:"date",message:Ce.message}),Ee.dirty()):Ce.kind==="time"?timeRegex(Ce).test(Ae.data)||(Se=this._getOrReturnCtx(Ae,Se),addIssueToContext(Se,{code:ZodIssueCode.invalid_string,validation:"time",message:Ce.message}),Ee.dirty()):Ce.kind==="duration"?durationRegex.test(Ae.data)||(Se=this._getOrReturnCtx(Ae,Se),addIssueToContext(Se,{validation:"duration",code:ZodIssueCode.invalid_string,message:Ce.message}),Ee.dirty()):Ce.kind==="ip"?isValidIP(Ae.data,Ce.version)||(Se=this._getOrReturnCtx(Ae,Se),addIssueToContext(Se,{validation:"ip",code:ZodIssueCode.invalid_string,message:Ce.message}),Ee.dirty()):Ce.kind==="jwt"?isValidJWT(Ae.data,Ce.alg)||(Se=this._getOrReturnCtx(Ae,Se),addIssueToContext(Se,{validation:"jwt",code:ZodIssueCode.invalid_string,message:Ce.message}),Ee.dirty()):Ce.kind==="cidr"?isValidCidr(Ae.data,Ce.version)||(Se=this._getOrReturnCtx(Ae,Se),addIssueToContext(Se,{validation:"cidr",code:ZodIssueCode.invalid_string,message:Ce.message}),Ee.dirty()):Ce.kind==="base64"?base64Regex.test(Ae.data)||(Se=this._getOrReturnCtx(Ae,Se),addIssueToContext(Se,{validation:"base64",code:ZodIssueCode.invalid_string,message:Ce.message}),Ee.dirty()):Ce.kind==="base64url"?base64urlRegex.test(Ae.data)||(Se=this._getOrReturnCtx(Ae,Se),addIssueToContext(Se,{validation:"base64url",code:ZodIssueCode.invalid_string,message:Ce.message}),Ee.dirty()):util.assertNever(Ce);return{status:Ee.value,value:Ae.data}}_regex(Ae,xe,Ee){return this.refinement(Se=>Ae.test(Se),{validation:xe,code:ZodIssueCode.invalid_string,...errorUtil.errToObj(Ee)})}_addCheck(Ae){return new ZodString({...this._def,checks:[...this._def.checks,Ae]})}email(Ae){return this._addCheck({kind:"email",...errorUtil.errToObj(Ae)})}url(Ae){return this._addCheck({kind:"url",...errorUtil.errToObj(Ae)})}emoji(Ae){return this._addCheck({kind:"emoji",...errorUtil.errToObj(Ae)})}uuid(Ae){return this._addCheck({kind:"uuid",...errorUtil.errToObj(Ae)})}nanoid(Ae){return this._addCheck({kind:"nanoid",...errorUtil.errToObj(Ae)})}cuid(Ae){return this._addCheck({kind:"cuid",...errorUtil.errToObj(Ae)})}cuid2(Ae){return this._addCheck({kind:"cuid2",...errorUtil.errToObj(Ae)})}ulid(Ae){return this._addCheck({kind:"ulid",...errorUtil.errToObj(Ae)})}base64(Ae){return this._addCheck({kind:"base64",...errorUtil.errToObj(Ae)})}base64url(Ae){return this._addCheck({kind:"base64url",...errorUtil.errToObj(Ae)})}jwt(Ae){return this._addCheck({kind:"jwt",...errorUtil.errToObj(Ae)})}ip(Ae){return this._addCheck({kind:"ip",...errorUtil.errToObj(Ae)})}cidr(Ae){return this._addCheck({kind:"cidr",...errorUtil.errToObj(Ae)})}datetime(Ae){var xe,Ee;return typeof Ae=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:Ae}):this._addCheck({kind:"datetime",precision:typeof(Ae==null?void 0:Ae.precision)>"u"?null:Ae==null?void 0:Ae.precision,offset:(xe=Ae==null?void 0:Ae.offset)!==null&&xe!==void 0?xe:!1,local:(Ee=Ae==null?void 0:Ae.local)!==null&&Ee!==void 0?Ee:!1,...errorUtil.errToObj(Ae==null?void 0:Ae.message)})}date(Ae){return this._addCheck({kind:"date",message:Ae})}time(Ae){return typeof Ae=="string"?this._addCheck({kind:"time",precision:null,message:Ae}):this._addCheck({kind:"time",precision:typeof(Ae==null?void 0:Ae.precision)>"u"?null:Ae==null?void 0:Ae.precision,...errorUtil.errToObj(Ae==null?void 0:Ae.message)})}duration(Ae){return this._addCheck({kind:"duration",...errorUtil.errToObj(Ae)})}regex(Ae,xe){return this._addCheck({kind:"regex",regex:Ae,...errorUtil.errToObj(xe)})}includes(Ae,xe){return this._addCheck({kind:"includes",value:Ae,position:xe==null?void 0:xe.position,...errorUtil.errToObj(xe==null?void 0:xe.message)})}startsWith(Ae,xe){return this._addCheck({kind:"startsWith",value:Ae,...errorUtil.errToObj(xe)})}endsWith(Ae,xe){return this._addCheck({kind:"endsWith",value:Ae,...errorUtil.errToObj(xe)})}min(Ae,xe){return this._addCheck({kind:"min",value:Ae,...errorUtil.errToObj(xe)})}max(Ae,xe){return this._addCheck({kind:"max",value:Ae,...errorUtil.errToObj(xe)})}length(Ae,xe){return this._addCheck({kind:"length",value:Ae,...errorUtil.errToObj(xe)})}nonempty(Ae){return this.min(1,errorUtil.errToObj(Ae))}trim(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(Ae=>Ae.kind==="datetime")}get isDate(){return!!this._def.checks.find(Ae=>Ae.kind==="date")}get isTime(){return!!this._def.checks.find(Ae=>Ae.kind==="time")}get isDuration(){return!!this._def.checks.find(Ae=>Ae.kind==="duration")}get isEmail(){return!!this._def.checks.find(Ae=>Ae.kind==="email")}get isURL(){return!!this._def.checks.find(Ae=>Ae.kind==="url")}get isEmoji(){return!!this._def.checks.find(Ae=>Ae.kind==="emoji")}get isUUID(){return!!this._def.checks.find(Ae=>Ae.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(Ae=>Ae.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(Ae=>Ae.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(Ae=>Ae.kind==="cuid2")}get isULID(){return!!this._def.checks.find(Ae=>Ae.kind==="ulid")}get isIP(){return!!this._def.checks.find(Ae=>Ae.kind==="ip")}get isCIDR(){return!!this._def.checks.find(Ae=>Ae.kind==="cidr")}get isBase64(){return!!this._def.checks.find(Ae=>Ae.kind==="base64")}get isBase64url(){return!!this._def.checks.find(Ae=>Ae.kind==="base64url")}get minLength(){let Ae=null;for(const xe of this._def.checks)xe.kind==="min"&&(Ae===null||xe.value>Ae)&&(Ae=xe.value);return Ae}get maxLength(){let Ae=null;for(const xe of this._def.checks)xe.kind==="max"&&(Ae===null||xe.value<Ae)&&(Ae=xe.value);return Ae}}ZodString.create=t=>{var Ae;return new ZodString({checks:[],typeName:ZodFirstPartyTypeKind.ZodString,coerce:(Ae=t==null?void 0:t.coerce)!==null&&Ae!==void 0?Ae:!1,...processCreateParams(t)})};function floatSafeRemainder(t,Ae){const xe=(t.toString().split(".")[1]||"").length,Ee=(Ae.toString().split(".")[1]||"").length,Se=xe>Ee?xe:Ee,Ce=parseInt(t.toFixed(Se).replace(".","")),_e=parseInt(Ae.toFixed(Se).replace(".",""));return Ce%_e/Math.pow(10,Se)}class ZodNumber extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(Ae){if(this._def.coerce&&(Ae.data=Number(Ae.data)),this._getType(Ae)!==ZodParsedType.number){const Ce=this._getOrReturnCtx(Ae);return addIssueToContext(Ce,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.number,received:Ce.parsedType}),INVALID}let Ee;const Se=new ParseStatus;for(const Ce of this._def.checks)Ce.kind==="int"?util.isInteger(Ae.data)||(Ee=this._getOrReturnCtx(Ae,Ee),addIssueToContext(Ee,{code:ZodIssueCode.invalid_type,expected:"integer",received:"float",message:Ce.message}),Se.dirty()):Ce.kind==="min"?(Ce.inclusive?Ae.data<Ce.value:Ae.data<=Ce.value)&&(Ee=this._getOrReturnCtx(Ae,Ee),addIssueToContext(Ee,{code:ZodIssueCode.too_small,minimum:Ce.value,type:"number",inclusive:Ce.inclusive,exact:!1,message:Ce.message}),Se.dirty()):Ce.kind==="max"?(Ce.inclusive?Ae.data>Ce.value:Ae.data>=Ce.value)&&(Ee=this._getOrReturnCtx(Ae,Ee),addIssueToContext(Ee,{code:ZodIssueCode.too_big,maximum:Ce.value,type:"number",inclusive:Ce.inclusive,exact:!1,message:Ce.message}),Se.dirty()):Ce.kind==="multipleOf"?floatSafeRemainder(Ae.data,Ce.value)!==0&&(Ee=this._getOrReturnCtx(Ae,Ee),addIssueToContext(Ee,{code:ZodIssueCode.not_multiple_of,multipleOf:Ce.value,message:Ce.message}),Se.dirty()):Ce.kind==="finite"?Number.isFinite(Ae.data)||(Ee=this._getOrReturnCtx(Ae,Ee),addIssueToContext(Ee,{code:ZodIssueCode.not_finite,message:Ce.message}),Se.dirty()):util.assertNever(Ce);return{status:Se.value,value:Ae.data}}gte(Ae,xe){return this.setLimit("min",Ae,!0,errorUtil.toString(xe))}gt(Ae,xe){return this.setLimit("min",Ae,!1,errorUtil.toString(xe))}lte(Ae,xe){return this.setLimit("max",Ae,!0,errorUtil.toString(xe))}lt(Ae,xe){return this.setLimit("max",Ae,!1,errorUtil.toString(xe))}setLimit(Ae,xe,Ee,Se){return new ZodNumber({...this._def,checks:[...this._def.checks,{kind:Ae,value:xe,inclusive:Ee,message:errorUtil.toString(Se)}]})}_addCheck(Ae){return new ZodNumber({...this._def,checks:[...this._def.checks,Ae]})}int(Ae){return this._addCheck({kind:"int",message:errorUtil.toString(Ae)})}positive(Ae){return this._addCheck({kind:"min",value:0,inclusive:!1,message:errorUtil.toString(Ae)})}negative(Ae){return this._addCheck({kind:"max",value:0,inclusive:!1,message:errorUtil.toString(Ae)})}nonpositive(Ae){return this._addCheck({kind:"max",value:0,inclusive:!0,message:errorUtil.toString(Ae)})}nonnegative(Ae){return this._addCheck({kind:"min",value:0,inclusive:!0,message:errorUtil.toString(Ae)})}multipleOf(Ae,xe){return this._addCheck({kind:"multipleOf",value:Ae,message:errorUtil.toString(xe)})}finite(Ae){return this._addCheck({kind:"finite",message:errorUtil.toString(Ae)})}safe(Ae){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:errorUtil.toString(Ae)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:errorUtil.toString(Ae)})}get minValue(){let Ae=null;for(const xe of this._def.checks)xe.kind==="min"&&(Ae===null||xe.value>Ae)&&(Ae=xe.value);return Ae}get maxValue(){let Ae=null;for(const xe of this._def.checks)xe.kind==="max"&&(Ae===null||xe.value<Ae)&&(Ae=xe.value);return Ae}get isInt(){return!!this._def.checks.find(Ae=>Ae.kind==="int"||Ae.kind==="multipleOf"&&util.isInteger(Ae.value))}get isFinite(){let Ae=null,xe=null;for(const Ee of this._def.checks){if(Ee.kind==="finite"||Ee.kind==="int"||Ee.kind==="multipleOf")return!0;Ee.kind==="min"?(xe===null||Ee.value>xe)&&(xe=Ee.value):Ee.kind==="max"&&(Ae===null||Ee.value<Ae)&&(Ae=Ee.value)}return Number.isFinite(xe)&&Number.isFinite(Ae)}}ZodNumber.create=t=>new ZodNumber({checks:[],typeName:ZodFirstPartyTypeKind.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...processCreateParams(t)});class ZodBigInt extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(Ae){if(this._def.coerce)try{Ae.data=BigInt(Ae.data)}catch{return this._getInvalidInput(Ae)}if(this._getType(Ae)!==ZodParsedType.bigint)return this._getInvalidInput(Ae);let Ee;const Se=new ParseStatus;for(const Ce of this._def.checks)Ce.kind==="min"?(Ce.inclusive?Ae.data<Ce.value:Ae.data<=Ce.value)&&(Ee=this._getOrReturnCtx(Ae,Ee),addIssueToContext(Ee,{code:ZodIssueCode.too_small,type:"bigint",minimum:Ce.value,inclusive:Ce.inclusive,message:Ce.message}),Se.dirty()):Ce.kind==="max"?(Ce.inclusive?Ae.data>Ce.value:Ae.data>=Ce.value)&&(Ee=this._getOrReturnCtx(Ae,Ee),addIssueToContext(Ee,{code:ZodIssueCode.too_big,type:"bigint",maximum:Ce.value,inclusive:Ce.inclusive,message:Ce.message}),Se.dirty()):Ce.kind==="multipleOf"?Ae.data%Ce.value!==BigInt(0)&&(Ee=this._getOrReturnCtx(Ae,Ee),addIssueToContext(Ee,{code:ZodIssueCode.not_multiple_of,multipleOf:Ce.value,message:Ce.message}),Se.dirty()):util.assertNever(Ce);return{status:Se.value,value:Ae.data}}_getInvalidInput(Ae){const xe=this._getOrReturnCtx(Ae);return addIssueToContext(xe,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.bigint,received:xe.parsedType}),INVALID}gte(Ae,xe){return this.setLimit("min",Ae,!0,errorUtil.toString(xe))}gt(Ae,xe){return this.setLimit("min",Ae,!1,errorUtil.toString(xe))}lte(Ae,xe){return this.setLimit("max",Ae,!0,errorUtil.toString(xe))}lt(Ae,xe){return this.setLimit("max",Ae,!1,errorUtil.toString(xe))}setLimit(Ae,xe,Ee,Se){return new ZodBigInt({...this._def,checks:[...this._def.checks,{kind:Ae,value:xe,inclusive:Ee,message:errorUtil.toString(Se)}]})}_addCheck(Ae){return new ZodBigInt({...this._def,checks:[...this._def.checks,Ae]})}positive(Ae){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:errorUtil.toString(Ae)})}negative(Ae){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:errorUtil.toString(Ae)})}nonpositive(Ae){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:errorUtil.toString(Ae)})}nonnegative(Ae){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:errorUtil.toString(Ae)})}multipleOf(Ae,xe){return this._addCheck({kind:"multipleOf",value:Ae,message:errorUtil.toString(xe)})}get minValue(){let Ae=null;for(const xe of this._def.checks)xe.kind==="min"&&(Ae===null||xe.value>Ae)&&(Ae=xe.value);return Ae}get maxValue(){let Ae=null;for(const xe of this._def.checks)xe.kind==="max"&&(Ae===null||xe.value<Ae)&&(Ae=xe.value);return Ae}}ZodBigInt.create=t=>{var Ae;return new ZodBigInt({checks:[],typeName:ZodFirstPartyTypeKind.ZodBigInt,coerce:(Ae=t==null?void 0:t.coerce)!==null&&Ae!==void 0?Ae:!1,...processCreateParams(t)})};class ZodBoolean extends ZodType{_parse(Ae){if(this._def.coerce&&(Ae.data=!!Ae.data),this._getType(Ae)!==ZodParsedType.boolean){const Ee=this._getOrReturnCtx(Ae);return addIssueToContext(Ee,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.boolean,received:Ee.parsedType}),INVALID}return OK(Ae.data)}}ZodBoolean.create=t=>new ZodBoolean({typeName:ZodFirstPartyTypeKind.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...processCreateParams(t)});class ZodDate extends ZodType{_parse(Ae){if(this._def.coerce&&(Ae.data=new Date(Ae.data)),this._getType(Ae)!==ZodParsedType.date){const Ce=this._getOrReturnCtx(Ae);return addIssueToContext(Ce,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.date,received:Ce.parsedType}),INVALID}if(isNaN(Ae.data.getTime())){const Ce=this._getOrReturnCtx(Ae);return addIssueToContext(Ce,{code:ZodIssueCode.invalid_date}),INVALID}const Ee=new ParseStatus;let Se;for(const Ce of this._def.checks)Ce.kind==="min"?Ae.data.getTime()<Ce.value&&(Se=this._getOrReturnCtx(Ae,Se),addIssueToContext(Se,{code:ZodIssueCode.too_small,message:Ce.message,inclusive:!0,exact:!1,minimum:Ce.value,type:"date"}),Ee.dirty()):Ce.kind==="max"?Ae.data.getTime()>Ce.value&&(Se=this._getOrReturnCtx(Ae,Se),addIssueToContext(Se,{code:ZodIssueCode.too_big,message:Ce.message,inclusive:!0,exact:!1,maximum:Ce.value,type:"date"}),Ee.dirty()):util.assertNever(Ce);return{status:Ee.value,value:new Date(Ae.data.getTime())}}_addCheck(Ae){return new ZodDate({...this._def,checks:[...this._def.checks,Ae]})}min(Ae,xe){return this._addCheck({kind:"min",value:Ae.getTime(),message:errorUtil.toString(xe)})}max(Ae,xe){return this._addCheck({kind:"max",value:Ae.getTime(),message:errorUtil.toString(xe)})}get minDate(){let Ae=null;for(const xe of this._def.checks)xe.kind==="min"&&(Ae===null||xe.value>Ae)&&(Ae=xe.value);return Ae!=null?new Date(Ae):null}get maxDate(){let Ae=null;for(const xe of this._def.checks)xe.kind==="max"&&(Ae===null||xe.value<Ae)&&(Ae=xe.value);return Ae!=null?new Date(Ae):null}}ZodDate.create=t=>new ZodDate({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:ZodFirstPartyTypeKind.ZodDate,...processCreateParams(t)});class ZodSymbol extends ZodType{_parse(Ae){if(this._getType(Ae)!==ZodParsedType.symbol){const Ee=this._getOrReturnCtx(Ae);return addIssueToContext(Ee,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.symbol,received:Ee.parsedType}),INVALID}return OK(Ae.data)}}ZodSymbol.create=t=>new ZodSymbol({typeName:ZodFirstPartyTypeKind.ZodSymbol,...processCreateParams(t)});class ZodUndefined extends ZodType{_parse(Ae){if(this._getType(Ae)!==ZodParsedType.undefined){const Ee=this._getOrReturnCtx(Ae);return addIssueToContext(Ee,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.undefined,received:Ee.parsedType}),INVALID}return OK(Ae.data)}}ZodUndefined.create=t=>new ZodUndefined({typeName:ZodFirstPartyTypeKind.ZodUndefined,...processCreateParams(t)});class ZodNull extends ZodType{_parse(Ae){if(this._getType(Ae)!==ZodParsedType.null){const Ee=this._getOrReturnCtx(Ae);return addIssueToContext(Ee,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.null,received:Ee.parsedType}),INVALID}return OK(Ae.data)}}ZodNull.create=t=>new ZodNull({typeName:ZodFirstPartyTypeKind.ZodNull,...processCreateParams(t)});class ZodAny extends ZodType{constructor(){super(...arguments),this._any=!0}_parse(Ae){return OK(Ae.data)}}ZodAny.create=t=>new ZodAny({typeName:ZodFirstPartyTypeKind.ZodAny,...processCreateParams(t)});class ZodUnknown extends ZodType{constructor(){super(...arguments),this._unknown=!0}_parse(Ae){return OK(Ae.data)}}ZodUnknown.create=t=>new ZodUnknown({typeName:ZodFirstPartyTypeKind.ZodUnknown,...processCreateParams(t)});class ZodNever extends ZodType{_parse(Ae){const xe=this._getOrReturnCtx(Ae);return addIssueToContext(xe,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.never,received:xe.parsedType}),INVALID}}ZodNever.create=t=>new ZodNever({typeName:ZodFirstPartyTypeKind.ZodNever,...processCreateParams(t)});class ZodVoid extends ZodType{_parse(Ae){if(this._getType(Ae)!==ZodParsedType.undefined){const Ee=this._getOrReturnCtx(Ae);return addIssueToContext(Ee,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.void,received:Ee.parsedType}),INVALID}return OK(Ae.data)}}ZodVoid.create=t=>new ZodVoid({typeName:ZodFirstPartyTypeKind.ZodVoid,...processCreateParams(t)});class ZodArray extends ZodType{_parse(Ae){const{ctx:xe,status:Ee}=this._processInputParams(Ae),Se=this._def;if(xe.parsedType!==ZodParsedType.array)return addIssueToContext(xe,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.array,received:xe.parsedType}),INVALID;if(Se.exactLength!==null){const _e=xe.data.length>Se.exactLength.value,Ie=xe.data.length<Se.exactLength.value;(_e||Ie)&&(addIssueToContext(xe,{code:_e?ZodIssueCode.too_big:ZodIssueCode.too_small,minimum:Ie?Se.exactLength.value:void 0,maximum:_e?Se.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:Se.exactLength.message}),Ee.dirty())}if(Se.minLength!==null&&xe.data.length<Se.minLength.value&&(addIssueToContext(xe,{code:ZodIssueCode.too_small,minimum:Se.minLength.value,type:"array",inclusive:!0,exact:!1,message:Se.minLength.message}),Ee.dirty()),Se.maxLength!==null&&xe.data.length>Se.maxLength.value&&(addIssueToContext(xe,{code:ZodIssueCode.too_big,maximum:Se.maxLength.value,type:"array",inclusive:!0,exact:!1,message:Se.maxLength.message}),Ee.dirty()),xe.common.async)return Promise.all([...xe.data].map((_e,Ie)=>Se.type._parseAsync(new ParseInputLazyPath(xe,_e,xe.path,Ie)))).then(_e=>ParseStatus.mergeArray(Ee,_e));const Ce=[...xe.data].map((_e,Ie)=>Se.type._parseSync(new ParseInputLazyPath(xe,_e,xe.path,Ie)));return ParseStatus.mergeArray(Ee,Ce)}get element(){return this._def.type}min(Ae,xe){return new ZodArray({...this._def,minLength:{value:Ae,message:errorUtil.toString(xe)}})}max(Ae,xe){return new ZodArray({...this._def,maxLength:{value:Ae,message:errorUtil.toString(xe)}})}length(Ae,xe){return new ZodArray({...this._def,exactLength:{value:Ae,message:errorUtil.toString(xe)}})}nonempty(Ae){return this.min(1,Ae)}}ZodArray.create=(t,Ae)=>new ZodArray({type:t,minLength:null,maxLength:null,exactLength:null,typeName:ZodFirstPartyTypeKind.ZodArray,...processCreateParams(Ae)});function deepPartialify(t){if(t instanceof ZodObject){const Ae={};for(const xe in t.shape){const Ee=t.shape[xe];Ae[xe]=ZodOptional.create(deepPartialify(Ee))}return new ZodObject({...t._def,shape:()=>Ae})}else return t instanceof ZodArray?new ZodArray({...t._def,type:deepPartialify(t.element)}):t instanceof ZodOptional?ZodOptional.create(deepPartialify(t.unwrap())):t instanceof ZodNullable?ZodNullable.create(deepPartialify(t.unwrap())):t instanceof ZodTuple?ZodTuple.create(t.items.map(Ae=>deepPartialify(Ae))):t}class ZodObject extends ZodType{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const Ae=this._def.shape(),xe=util.objectKeys(Ae);return this._cached={shape:Ae,keys:xe}}_parse(Ae){if(this._getType(Ae)!==ZodParsedType.object){const Te=this._getOrReturnCtx(Ae);return addIssueToContext(Te,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:Te.parsedType}),INVALID}const{status:Ee,ctx:Se}=this._processInputParams(Ae),{shape:Ce,keys:_e}=this._getCached(),Ie=[];if(!(this._def.catchall instanceof ZodNever&&this._def.unknownKeys==="strip"))for(const Te in Se.data)_e.includes(Te)||Ie.push(Te);const Be=[];for(const Te of _e){const Pe=Ce[Te],ke=Se.data[Te];Be.push({key:{status:"valid",value:Te},value:Pe._parse(new ParseInputLazyPath(Se,ke,Se.path,Te)),alwaysSet:Te in Se.data})}if(this._def.catchall instanceof ZodNever){const Te=this._def.unknownKeys;if(Te==="passthrough")for(const Pe of Ie)Be.push({key:{status:"valid",value:Pe},value:{status:"valid",value:Se.data[Pe]}});else if(Te==="strict")Ie.length>0&&(addIssueToContext(Se,{code:ZodIssueCode.unrecognized_keys,keys:Ie}),Ee.dirty());else if(Te!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const Te=this._def.catchall;for(const Pe of Ie){const ke=Se.data[Pe];Be.push({key:{status:"valid",value:Pe},value:Te._parse(new ParseInputLazyPath(Se,ke,Se.path,Pe)),alwaysSet:Pe in Se.data})}}return Se.common.async?Promise.resolve().then(async()=>{const Te=[];for(const Pe of Be){const ke=await Pe.key,$e=await Pe.value;Te.push({key:ke,value:$e,alwaysSet:Pe.alwaysSet})}return Te}).then(Te=>ParseStatus.mergeObjectSync(Ee,Te)):ParseStatus.mergeObjectSync(Ee,Be)}get shape(){return this._def.shape()}strict(Ae){return errorUtil.errToObj,new ZodObject({...this._def,unknownKeys:"strict",...Ae!==void 0?{errorMap:(xe,Ee)=>{var Se,Ce,_e,Ie;const Be=(_e=(Ce=(Se=this._def).errorMap)===null||Ce===void 0?void 0:Ce.call(Se,xe,Ee).message)!==null&&_e!==void 0?_e:Ee.defaultError;return xe.code==="unrecognized_keys"?{message:(Ie=errorUtil.errToObj(Ae).message)!==null&&Ie!==void 0?Ie:Be}:{message:Be}}}:{}})}strip(){return new ZodObject({...this._def,unknownKeys:"strip"})}passthrough(){return new ZodObject({...this._def,unknownKeys:"passthrough"})}extend(Ae){return new ZodObject({...this._def,shape:()=>({...this._def.shape(),...Ae})})}merge(Ae){return new ZodObject({unknownKeys:Ae._def.unknownKeys,catchall:Ae._def.catchall,shape:()=>({...this._def.shape(),...Ae._def.shape()}),typeName:ZodFirstPartyTypeKind.ZodObject})}setKey(Ae,xe){return this.augment({[Ae]:xe})}catchall(Ae){return new ZodObject({...this._def,catchall:Ae})}pick(Ae){const xe={};return util.objectKeys(Ae).forEach(Ee=>{Ae[Ee]&&this.shape[Ee]&&(xe[Ee]=this.shape[Ee])}),new ZodObject({...this._def,shape:()=>xe})}omit(Ae){const xe={};return util.objectKeys(this.shape).forEach(Ee=>{Ae[Ee]||(xe[Ee]=this.shape[Ee])}),new ZodObject({...this._def,shape:()=>xe})}deepPartial(){return deepPartialify(this)}partial(Ae){const xe={};return util.objectKeys(this.shape).forEach(Ee=>{const Se=this.shape[Ee];Ae&&!Ae[Ee]?xe[Ee]=Se:xe[Ee]=Se.optional()}),new ZodObject({...this._def,shape:()=>xe})}required(Ae){const xe={};return util.objectKeys(this.shape).forEach(Ee=>{if(Ae&&!Ae[Ee])xe[Ee]=this.shape[Ee];else{let Ce=this.shape[Ee];for(;Ce instanceof ZodOptional;)Ce=Ce._def.innerType;xe[Ee]=Ce}}),new ZodObject({...this._def,shape:()=>xe})}keyof(){return createZodEnum(util.objectKeys(this.shape))}}ZodObject.create=(t,Ae)=>new ZodObject({shape:()=>t,unknownKeys:"strip",catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(Ae)});ZodObject.strictCreate=(t,Ae)=>new ZodObject({shape:()=>t,unknownKeys:"strict",catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(Ae)});ZodObject.lazycreate=(t,Ae)=>new ZodObject({shape:t,unknownKeys:"strip",catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(Ae)});class ZodUnion extends ZodType{_parse(Ae){const{ctx:xe}=this._processInputParams(Ae),Ee=this._def.options;function Se(Ce){for(const Ie of Ce)if(Ie.result.status==="valid")return Ie.result;for(const Ie of Ce)if(Ie.result.status==="dirty")return xe.common.issues.push(...Ie.ctx.common.issues),Ie.result;const _e=Ce.map(Ie=>new ZodError(Ie.ctx.common.issues));return addIssueToContext(xe,{code:ZodIssueCode.invalid_union,unionErrors:_e}),INVALID}if(xe.common.async)return Promise.all(Ee.map(async Ce=>{const _e={...xe,common:{...xe.common,issues:[]},parent:null};return{result:await Ce._parseAsync({data:xe.data,path:xe.path,parent:_e}),ctx:_e}})).then(Se);{let Ce;const _e=[];for(const Be of Ee){const Te={...xe,common:{...xe.common,issues:[]},parent:null},Pe=Be._parseSync({data:xe.data,path:xe.path,parent:Te});if(Pe.status==="valid")return Pe;Pe.status==="dirty"&&!Ce&&(Ce={result:Pe,ctx:Te}),Te.common.issues.length&&_e.push(Te.common.issues)}if(Ce)return xe.common.issues.push(...Ce.ctx.common.issues),Ce.result;const Ie=_e.map(Be=>new ZodError(Be));return addIssueToContext(xe,{code:ZodIssueCode.invalid_union,unionErrors:Ie}),INVALID}}get options(){return this._def.options}}ZodUnion.create=(t,Ae)=>new ZodUnion({options:t,typeName:ZodFirstPartyTypeKind.ZodUnion,...processCreateParams(Ae)});const getDiscriminator=t=>t instanceof ZodLazy?getDiscriminator(t.schema):t instanceof ZodEffects?getDiscriminator(t.innerType()):t instanceof ZodLiteral?[t.value]:t instanceof ZodEnum?t.options:t instanceof ZodNativeEnum?util.objectValues(t.enum):t instanceof ZodDefault?getDiscriminator(t._def.innerType):t instanceof ZodUndefined?[void 0]:t instanceof ZodNull?[null]:t instanceof ZodOptional?[void 0,...getDiscriminator(t.unwrap())]:t instanceof ZodNullable?[null,...getDiscriminator(t.unwrap())]:t instanceof ZodBranded||t instanceof ZodReadonly?getDiscriminator(t.unwrap()):t instanceof ZodCatch?getDiscriminator(t._def.innerType):[];class ZodDiscriminatedUnion extends ZodType{_parse(Ae){const{ctx:xe}=this._processInputParams(Ae);if(xe.parsedType!==ZodParsedType.object)return addIssueToContext(xe,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:xe.parsedType}),INVALID;const Ee=this.discriminator,Se=xe.data[Ee],Ce=this.optionsMap.get(Se);return Ce?xe.common.async?Ce._parseAsync({data:xe.data,path:xe.path,parent:xe}):Ce._parseSync({data:xe.data,path:xe.path,parent:xe}):(addIssueToContext(xe,{code:ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[Ee]}),INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(Ae,xe,Ee){const Se=new Map;for(const Ce of xe){const _e=getDiscriminator(Ce.shape[Ae]);if(!_e.length)throw new Error(`A discriminator value for key \`${Ae}\` could not be extracted from all schema options`);for(const Ie of _e){if(Se.has(Ie))throw new Error(`Discriminator property ${String(Ae)} has duplicate value ${String(Ie)}`);Se.set(Ie,Ce)}}return new ZodDiscriminatedUnion({typeName:ZodFirstPartyTypeKind.ZodDiscriminatedUnion,discriminator:Ae,options:xe,optionsMap:Se,...processCreateParams(Ee)})}}function mergeValues(t,Ae){const xe=getParsedType(t),Ee=getParsedType(Ae);if(t===Ae)return{valid:!0,data:t};if(xe===ZodParsedType.object&&Ee===ZodParsedType.object){const Se=util.objectKeys(Ae),Ce=util.objectKeys(t).filter(Ie=>Se.indexOf(Ie)!==-1),_e={...t,...Ae};for(const Ie of Ce){const Be=mergeValues(t[Ie],Ae[Ie]);if(!Be.valid)return{valid:!1};_e[Ie]=Be.data}return{valid:!0,data:_e}}else if(xe===ZodParsedType.array&&Ee===ZodParsedType.array){if(t.length!==Ae.length)return{valid:!1};const Se=[];for(let Ce=0;Ce<t.length;Ce++){const _e=t[Ce],Ie=Ae[Ce],Be=mergeValues(_e,Ie);if(!Be.valid)return{valid:!1};Se.push(Be.data)}return{valid:!0,data:Se}}else return xe===ZodParsedType.date&&Ee===ZodParsedType.date&&+t==+Ae?{valid:!0,data:t}:{valid:!1}}class ZodIntersection extends ZodType{_parse(Ae){const{status:xe,ctx:Ee}=this._processInputParams(Ae),Se=(Ce,_e)=>{if(isAborted(Ce)||isAborted(_e))return INVALID;const Ie=mergeValues(Ce.value,_e.value);return Ie.valid?((isDirty(Ce)||isDirty(_e))&&xe.dirty(),{status:xe.value,value:Ie.data}):(addIssueToContext(Ee,{code:ZodIssueCode.invalid_intersection_types}),INVALID)};return Ee.common.async?Promise.all([this._def.left._parseAsync({data:Ee.data,path:Ee.path,parent:Ee}),this._def.right._parseAsync({data:Ee.data,path:Ee.path,parent:Ee})]).then(([Ce,_e])=>Se(Ce,_e)):Se(this._def.left._parseSync({data:Ee.data,path:Ee.path,parent:Ee}),this._def.right._parseSync({data:Ee.data,path:Ee.path,parent:Ee}))}}ZodIntersection.create=(t,Ae,xe)=>new ZodIntersection({left:t,right:Ae,typeName:ZodFirstPartyTypeKind.ZodIntersection,...processCreateParams(xe)});class ZodTuple extends ZodType{_parse(Ae){const{status:xe,ctx:Ee}=this._processInputParams(Ae);if(Ee.parsedType!==ZodParsedType.array)return addIssueToContext(Ee,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.array,received:Ee.parsedType}),INVALID;if(Ee.data.length<this._def.items.length)return addIssueToContext(Ee,{code:ZodIssueCode.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),INVALID;!this._def.rest&&Ee.data.length>this._def.items.length&&(addIssueToContext(Ee,{code:ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),xe.dirty());const Ce=[...Ee.data].map((_e,Ie)=>{const Be=this._def.items[Ie]||this._def.rest;return Be?Be._parse(new ParseInputLazyPath(Ee,_e,Ee.path,Ie)):null}).filter(_e=>!!_e);return Ee.common.async?Promise.all(Ce).then(_e=>ParseStatus.mergeArray(xe,_e)):ParseStatus.mergeArray(xe,Ce)}get items(){return this._def.items}rest(Ae){return new ZodTuple({...this._def,rest:Ae})}}ZodTuple.create=(t,Ae)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ZodTuple({items:t,typeName:ZodFirstPartyTypeKind.ZodTuple,rest:null,...processCreateParams(Ae)})};class ZodRecord extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(Ae){const{status:xe,ctx:Ee}=this._processInputParams(Ae);if(Ee.parsedType!==ZodParsedType.object)return addIssueToContext(Ee,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:Ee.parsedType}),INVALID;const Se=[],Ce=this._def.keyType,_e=this._def.valueType;for(const Ie in Ee.data)Se.push({key:Ce._parse(new ParseInputLazyPath(Ee,Ie,Ee.path,Ie)),value:_e._parse(new ParseInputLazyPath(Ee,Ee.data[Ie],Ee.path,Ie)),alwaysSet:Ie in Ee.data});return Ee.common.async?ParseStatus.mergeObjectAsync(xe,Se):ParseStatus.mergeObjectSync(xe,Se)}get element(){return this._def.valueType}static create(Ae,xe,Ee){return xe instanceof ZodType?new ZodRecord({keyType:Ae,valueType:xe,typeName:ZodFirstPartyTypeKind.ZodRecord,...processCreateParams(Ee)}):new ZodRecord({keyType:ZodString.create(),valueType:Ae,typeName:ZodFirstPartyTypeKind.ZodRecord,...processCreateParams(xe)})}}class ZodMap extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(Ae){const{status:xe,ctx:Ee}=this._processInputParams(Ae);if(Ee.parsedType!==ZodParsedType.map)return addIssueToContext(Ee,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.map,received:Ee.parsedType}),INVALID;const Se=this._def.keyType,Ce=this._def.valueType,_e=[...Ee.data.entries()].map(([Ie,Be],Te)=>({key:Se._parse(new ParseInputLazyPath(Ee,Ie,Ee.path,[Te,"key"])),value:Ce._parse(new ParseInputLazyPath(Ee,Be,Ee.path,[Te,"value"]))}));if(Ee.common.async){const Ie=new Map;return Promise.resolve().then(async()=>{for(const Be of _e){const Te=await Be.key,Pe=await Be.value;if(Te.status==="aborted"||Pe.status==="aborted")return INVALID;(Te.status==="dirty"||Pe.status==="dirty")&&xe.dirty(),Ie.set(Te.value,Pe.value)}return{status:xe.value,value:Ie}})}else{const Ie=new Map;for(const Be of _e){const Te=Be.key,Pe=Be.value;if(Te.status==="aborted"||Pe.status==="aborted")return INVALID;(Te.status==="dirty"||Pe.status==="dirty")&&xe.dirty(),Ie.set(Te.value,Pe.value)}return{status:xe.value,value:Ie}}}}ZodMap.create=(t,Ae,xe)=>new ZodMap({valueType:Ae,keyType:t,typeName:ZodFirstPartyTypeKind.ZodMap,...processCreateParams(xe)});class ZodSet extends ZodType{_parse(Ae){const{status:xe,ctx:Ee}=this._processInputParams(Ae);if(Ee.parsedType!==ZodParsedType.set)return addIssueToContext(Ee,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.set,received:Ee.parsedType}),INVALID;const Se=this._def;Se.minSize!==null&&Ee.data.size<Se.minSize.value&&(addIssueToContext(Ee,{code:ZodIssueCode.too_small,minimum:Se.minSize.value,type:"set",inclusive:!0,exact:!1,message:Se.minSize.message}),xe.dirty()),Se.maxSize!==null&&Ee.data.size>Se.maxSize.value&&(addIssueToContext(Ee,{code:ZodIssueCode.too_big,maximum:Se.maxSize.value,type:"set",inclusive:!0,exact:!1,message:Se.maxSize.message}),xe.dirty());const Ce=this._def.valueType;function _e(Be){const Te=new Set;for(const Pe of Be){if(Pe.status==="aborted")return INVALID;Pe.status==="dirty"&&xe.dirty(),Te.add(Pe.value)}return{status:xe.value,value:Te}}const Ie=[...Ee.data.values()].map((Be,Te)=>Ce._parse(new ParseInputLazyPath(Ee,Be,Ee.path,Te)));return Ee.common.async?Promise.all(Ie).then(Be=>_e(Be)):_e(Ie)}min(Ae,xe){return new ZodSet({...this._def,minSize:{value:Ae,message:errorUtil.toString(xe)}})}max(Ae,xe){return new ZodSet({...this._def,maxSize:{value:Ae,message:errorUtil.toString(xe)}})}size(Ae,xe){return this.min(Ae,xe).max(Ae,xe)}nonempty(Ae){return this.min(1,Ae)}}ZodSet.create=(t,Ae)=>new ZodSet({valueType:t,minSize:null,maxSize:null,typeName:ZodFirstPartyTypeKind.ZodSet,...processCreateParams(Ae)});class ZodFunction extends ZodType{constructor(){super(...arguments),this.validate=this.implement}_parse(Ae){const{ctx:xe}=this._processInputParams(Ae);if(xe.parsedType!==ZodParsedType.function)return addIssueToContext(xe,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.function,received:xe.parsedType}),INVALID;function Ee(Ie,Be){return makeIssue({data:Ie,path:xe.path,errorMaps:[xe.common.contextualErrorMap,xe.schemaErrorMap,getErrorMap(),errorMap].filter(Te=>!!Te),issueData:{code:ZodIssueCode.invalid_arguments,argumentsError:Be}})}function Se(Ie,Be){return makeIssue({data:Ie,path:xe.path,errorMaps:[xe.common.contextualErrorMap,xe.schemaErrorMap,getErrorMap(),errorMap].filter(Te=>!!Te),issueData:{code:ZodIssueCode.invalid_return_type,returnTypeError:Be}})}const Ce={errorMap:xe.common.contextualErrorMap},_e=xe.data;if(this._def.returns instanceof ZodPromise){const Ie=this;return OK(async function(...Be){const Te=new ZodError([]),Pe=await Ie._def.args.parseAsync(Be,Ce).catch(Oe=>{throw Te.addIssue(Ee(Be,Oe)),Te}),ke=await Reflect.apply(_e,this,Pe);return await Ie._def.returns._def.type.parseAsync(ke,Ce).catch(Oe=>{throw Te.addIssue(Se(ke,Oe)),Te})})}else{const Ie=this;return OK(function(...Be){const Te=Ie._def.args.safeParse(Be,Ce);if(!Te.success)throw new ZodError([Ee(Be,Te.error)]);const Pe=Reflect.apply(_e,this,Te.data),ke=Ie._def.returns.safeParse(Pe,Ce);if(!ke.success)throw new ZodError([Se(Pe,ke.error)]);return ke.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...Ae){return new ZodFunction({...this._def,args:ZodTuple.create(Ae).rest(ZodUnknown.create())})}returns(Ae){return new ZodFunction({...this._def,returns:Ae})}implement(Ae){return this.parse(Ae)}strictImplement(Ae){return this.parse(Ae)}static create(Ae,xe,Ee){return new ZodFunction({args:Ae||ZodTuple.create([]).rest(ZodUnknown.create()),returns:xe||ZodUnknown.create(),typeName:ZodFirstPartyTypeKind.ZodFunction,...processCreateParams(Ee)})}}class ZodLazy extends ZodType{get schema(){return this._def.getter()}_parse(Ae){const{ctx:xe}=this._processInputParams(Ae);return this._def.getter()._parse({data:xe.data,path:xe.path,parent:xe})}}ZodLazy.create=(t,Ae)=>new ZodLazy({getter:t,typeName:ZodFirstPartyTypeKind.ZodLazy,...processCreateParams(Ae)});class ZodLiteral extends ZodType{_parse(Ae){if(Ae.data!==this._def.value){const xe=this._getOrReturnCtx(Ae);return addIssueToContext(xe,{received:xe.data,code:ZodIssueCode.invalid_literal,expected:this._def.value}),INVALID}return{status:"valid",value:Ae.data}}get value(){return this._def.value}}ZodLiteral.create=(t,Ae)=>new ZodLiteral({value:t,typeName:ZodFirstPartyTypeKind.ZodLiteral,...processCreateParams(Ae)});function createZodEnum(t,Ae){return new ZodEnum({values:t,typeName:ZodFirstPartyTypeKind.ZodEnum,...processCreateParams(Ae)})}class ZodEnum extends ZodType{constructor(){super(...arguments),_ZodEnum_cache.set(this,void 0)}_parse(Ae){if(typeof Ae.data!="string"){const xe=this._getOrReturnCtx(Ae),Ee=this._def.values;return addIssueToContext(xe,{expected:util.joinValues(Ee),received:xe.parsedType,code:ZodIssueCode.invalid_type}),INVALID}if(__classPrivateFieldGet(this,_ZodEnum_cache)||__classPrivateFieldSet(this,_ZodEnum_cache,new Set(this._def.values)),!__classPrivateFieldGet(this,_ZodEnum_cache).has(Ae.data)){const xe=this._getOrReturnCtx(Ae),Ee=this._def.values;return addIssueToContext(xe,{received:xe.data,code:ZodIssueCode.invalid_enum_value,options:Ee}),INVALID}return OK(Ae.data)}get options(){return this._def.values}get enum(){const Ae={};for(const xe of this._def.values)Ae[xe]=xe;return Ae}get Values(){const Ae={};for(const xe of this._def.values)Ae[xe]=xe;return Ae}get Enum(){const Ae={};for(const xe of this._def.values)Ae[xe]=xe;return Ae}extract(Ae,xe=this._def){return ZodEnum.create(Ae,{...this._def,...xe})}exclude(Ae,xe=this._def){return ZodEnum.create(this.options.filter(Ee=>!Ae.includes(Ee)),{...this._def,...xe})}}_ZodEnum_cache=new WeakMap;ZodEnum.create=createZodEnum;class ZodNativeEnum extends ZodType{constructor(){super(...arguments),_ZodNativeEnum_cache.set(this,void 0)}_parse(Ae){const xe=util.getValidEnumValues(this._def.values),Ee=this._getOrReturnCtx(Ae);if(Ee.parsedType!==ZodParsedType.string&&Ee.parsedType!==ZodParsedType.number){const Se=util.objectValues(xe);return addIssueToContext(Ee,{expected:util.joinValues(Se),received:Ee.parsedType,code:ZodIssueCode.invalid_type}),INVALID}if(__classPrivateFieldGet(this,_ZodNativeEnum_cache)||__classPrivateFieldSet(this,_ZodNativeEnum_cache,new Set(util.getValidEnumValues(this._def.values))),!__classPrivateFieldGet(this,_ZodNativeEnum_cache).has(Ae.data)){const Se=util.objectValues(xe);return addIssueToContext(Ee,{received:Ee.data,code:ZodIssueCode.invalid_enum_value,options:Se}),INVALID}return OK(Ae.data)}get enum(){return this._def.values}}_ZodNativeEnum_cache=new WeakMap;ZodNativeEnum.create=(t,Ae)=>new ZodNativeEnum({values:t,typeName:ZodFirstPartyTypeKind.ZodNativeEnum,...processCreateParams(Ae)});class ZodPromise extends ZodType{unwrap(){return this._def.type}_parse(Ae){const{ctx:xe}=this._processInputParams(Ae);if(xe.parsedType!==ZodParsedType.promise&&xe.common.async===!1)return addIssueToContext(xe,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.promise,received:xe.parsedType}),INVALID;const Ee=xe.parsedType===ZodParsedType.promise?xe.data:Promise.resolve(xe.data);return OK(Ee.then(Se=>this._def.type.parseAsync(Se,{path:xe.path,errorMap:xe.common.contextualErrorMap})))}}ZodPromise.create=(t,Ae)=>new ZodPromise({type:t,typeName:ZodFirstPartyTypeKind.ZodPromise,...processCreateParams(Ae)});class ZodEffects extends ZodType{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ZodFirstPartyTypeKind.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(Ae){const{status:xe,ctx:Ee}=this._processInputParams(Ae),Se=this._def.effect||null,Ce={addIssue:_e=>{addIssueToContext(Ee,_e),_e.fatal?xe.abort():xe.dirty()},get path(){return Ee.path}};if(Ce.addIssue=Ce.addIssue.bind(Ce),Se.type==="preprocess"){const _e=Se.transform(Ee.data,Ce);if(Ee.common.async)return Promise.resolve(_e).then(async Ie=>{if(xe.value==="aborted")return INVALID;const Be=await this._def.schema._parseAsync({data:Ie,path:Ee.path,parent:Ee});return Be.status==="aborted"?INVALID:Be.status==="dirty"||xe.value==="dirty"?DIRTY(Be.value):Be});{if(xe.value==="aborted")return INVALID;const Ie=this._def.schema._parseSync({data:_e,path:Ee.path,parent:Ee});return Ie.status==="aborted"?INVALID:Ie.status==="dirty"||xe.value==="dirty"?DIRTY(Ie.value):Ie}}if(Se.type==="refinement"){const _e=Ie=>{const Be=Se.refinement(Ie,Ce);if(Ee.common.async)return Promise.resolve(Be);if(Be instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return Ie};if(Ee.common.async===!1){const Ie=this._def.schema._parseSync({data:Ee.data,path:Ee.path,parent:Ee});return Ie.status==="aborted"?INVALID:(Ie.status==="dirty"&&xe.dirty(),_e(Ie.value),{status:xe.value,value:Ie.value})}else return this._def.schema._parseAsync({data:Ee.data,path:Ee.path,parent:Ee}).then(Ie=>Ie.status==="aborted"?INVALID:(Ie.status==="dirty"&&xe.dirty(),_e(Ie.value).then(()=>({status:xe.value,value:Ie.value}))))}if(Se.type==="transform")if(Ee.common.async===!1){const _e=this._def.schema._parseSync({data:Ee.data,path:Ee.path,parent:Ee});if(!isValid(_e))return _e;const Ie=Se.transform(_e.value,Ce);if(Ie instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:xe.value,value:Ie}}else return this._def.schema._parseAsync({data:Ee.data,path:Ee.path,parent:Ee}).then(_e=>isValid(_e)?Promise.resolve(Se.transform(_e.value,Ce)).then(Ie=>({status:xe.value,value:Ie})):_e);util.assertNever(Se)}}ZodEffects.create=(t,Ae,xe)=>new ZodEffects({schema:t,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:Ae,...processCreateParams(xe)});ZodEffects.createWithPreprocess=(t,Ae,xe)=>new ZodEffects({schema:Ae,effect:{type:"preprocess",transform:t},typeName:ZodFirstPartyTypeKind.ZodEffects,...processCreateParams(xe)});class ZodOptional extends ZodType{_parse(Ae){return this._getType(Ae)===ZodParsedType.undefined?OK(void 0):this._def.innerType._parse(Ae)}unwrap(){return this._def.innerType}}ZodOptional.create=(t,Ae)=>new ZodOptional({innerType:t,typeName:ZodFirstPartyTypeKind.ZodOptional,...processCreateParams(Ae)});class ZodNullable extends ZodType{_parse(Ae){return this._getType(Ae)===ZodParsedType.null?OK(null):this._def.innerType._parse(Ae)}unwrap(){return this._def.innerType}}ZodNullable.create=(t,Ae)=>new ZodNullable({innerType:t,typeName:ZodFirstPartyTypeKind.ZodNullable,...processCreateParams(Ae)});class ZodDefault extends ZodType{_parse(Ae){const{ctx:xe}=this._processInputParams(Ae);let Ee=xe.data;return xe.parsedType===ZodParsedType.undefined&&(Ee=this._def.defaultValue()),this._def.innerType._parse({data:Ee,path:xe.path,parent:xe})}removeDefault(){return this._def.innerType}}ZodDefault.create=(t,Ae)=>new ZodDefault({innerType:t,typeName:ZodFirstPartyTypeKind.ZodDefault,defaultValue:typeof Ae.default=="function"?Ae.default:()=>Ae.default,...processCreateParams(Ae)});class ZodCatch extends ZodType{_parse(Ae){const{ctx:xe}=this._processInputParams(Ae),Ee={...xe,common:{...xe.common,issues:[]}},Se=this._def.innerType._parse({data:Ee.data,path:Ee.path,parent:{...Ee}});return isAsync(Se)?Se.then(Ce=>({status:"valid",value:Ce.status==="valid"?Ce.value:this._def.catchValue({get error(){return new ZodError(Ee.common.issues)},input:Ee.data})})):{status:"valid",value:Se.status==="valid"?Se.value:this._def.catchValue({get error(){return new ZodError(Ee.common.issues)},input:Ee.data})}}removeCatch(){return this._def.innerType}}ZodCatch.create=(t,Ae)=>new ZodCatch({innerType:t,typeName:ZodFirstPartyTypeKind.ZodCatch,catchValue:typeof Ae.catch=="function"?Ae.catch:()=>Ae.catch,...processCreateParams(Ae)});class ZodNaN extends ZodType{_parse(Ae){if(this._getType(Ae)!==ZodParsedType.nan){const Ee=this._getOrReturnCtx(Ae);return addIssueToContext(Ee,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.nan,received:Ee.parsedType}),INVALID}return{status:"valid",value:Ae.data}}}ZodNaN.create=t=>new ZodNaN({typeName:ZodFirstPartyTypeKind.ZodNaN,...processCreateParams(t)});const BRAND=Symbol("zod_brand");class ZodBranded extends ZodType{_parse(Ae){const{ctx:xe}=this._processInputParams(Ae),Ee=xe.data;return this._def.type._parse({data:Ee,path:xe.path,parent:xe})}unwrap(){return this._def.type}}class ZodPipeline extends ZodType{_parse(Ae){const{status:xe,ctx:Ee}=this._processInputParams(Ae);if(Ee.common.async)return(async()=>{const Ce=await this._def.in._parseAsync({data:Ee.data,path:Ee.path,parent:Ee});return Ce.status==="aborted"?INVALID:Ce.status==="dirty"?(xe.dirty(),DIRTY(Ce.value)):this._def.out._parseAsync({data:Ce.value,path:Ee.path,parent:Ee})})();{const Se=this._def.in._parseSync({data:Ee.data,path:Ee.path,parent:Ee});return Se.status==="aborted"?INVALID:Se.status==="dirty"?(xe.dirty(),{status:"dirty",value:Se.value}):this._def.out._parseSync({data:Se.value,path:Ee.path,parent:Ee})}}static create(Ae,xe){return new ZodPipeline({in:Ae,out:xe,typeName:ZodFirstPartyTypeKind.ZodPipeline})}}class ZodReadonly extends ZodType{_parse(Ae){const xe=this._def.innerType._parse(Ae),Ee=Se=>(isValid(Se)&&(Se.value=Object.freeze(Se.value)),Se);return isAsync(xe)?xe.then(Se=>Ee(Se)):Ee(xe)}unwrap(){return this._def.innerType}}ZodReadonly.create=(t,Ae)=>new ZodReadonly({innerType:t,typeName:ZodFirstPartyTypeKind.ZodReadonly,...processCreateParams(Ae)});function cleanParams(t,Ae){const xe=typeof t=="function"?t(Ae):typeof t=="string"?{message:t}:t;return typeof xe=="string"?{message:xe}:xe}function custom(t,Ae={},xe){return t?ZodAny.create().superRefine((Ee,Se)=>{var Ce,_e;const Ie=t(Ee);if(Ie instanceof Promise)return Ie.then(Be=>{var Te,Pe;if(!Be){const ke=cleanParams(Ae,Ee),$e=(Pe=(Te=ke.fatal)!==null&&Te!==void 0?Te:xe)!==null&&Pe!==void 0?Pe:!0;Se.addIssue({code:"custom",...ke,fatal:$e})}});if(!Ie){const Be=cleanParams(Ae,Ee),Te=(_e=(Ce=Be.fatal)!==null&&Ce!==void 0?Ce:xe)!==null&&_e!==void 0?_e:!0;Se.addIssue({code:"custom",...Be,fatal:Te})}}):ZodAny.create()}const late$1={object:ZodObject.lazycreate};var ZodFirstPartyTypeKind;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(ZodFirstPartyTypeKind||(ZodFirstPartyTypeKind={}));const instanceOfType=(t,Ae={message:`Input not instance of ${t.name}`})=>custom(xe=>xe instanceof t,Ae),stringType=ZodString.create,numberType=ZodNumber.create,nanType=ZodNaN.create,bigIntType=ZodBigInt.create,booleanType=ZodBoolean.create,dateType=ZodDate.create,symbolType=ZodSymbol.create,undefinedType=ZodUndefined.create,nullType=ZodNull.create,anyType=ZodAny.create,unknownType=ZodUnknown.create,neverType=ZodNever.create,voidType=ZodVoid.create,arrayType=ZodArray.create,objectType=ZodObject.create,strictObjectType=ZodObject.strictCreate,unionType=ZodUnion.create,discriminatedUnionType=ZodDiscriminatedUnion.create,intersectionType=ZodIntersection.create,tupleType=ZodTuple.create,recordType=ZodRecord.create,mapType=ZodMap.create,setType=ZodSet.create,functionType=ZodFunction.create,lazyType=ZodLazy.create,literalType=ZodLiteral.create,enumType=ZodEnum.create,nativeEnumType=ZodNativeEnum.create,promiseType=ZodPromise.create,effectsType=ZodEffects.create,optionalType=ZodOptional.create,nullableType=ZodNullable.create,preprocessType=ZodEffects.createWithPreprocess,pipelineType=ZodPipeline.create,ostring=()=>stringType().optional(),onumber=()=>numberType().optional(),oboolean=()=>booleanType().optional(),coerce={string:t=>ZodString.create({...t,coerce:!0}),number:t=>ZodNumber.create({...t,coerce:!0}),boolean:t=>ZodBoolean.create({...t,coerce:!0}),bigint:t=>ZodBigInt.create({...t,coerce:!0}),date:t=>ZodDate.create({...t,coerce:!0})},NEVER=INVALID;var z$2=Object.freeze({__proto__:null,defaultErrorMap:errorMap,setErrorMap,getErrorMap,makeIssue,EMPTY_PATH,addIssueToContext,ParseStatus,INVALID,DIRTY,OK,isAborted,isDirty,isValid,isAsync,get util(){return util},get objectUtil(){return objectUtil},ZodParsedType,getParsedType,ZodType,datetimeRegex,ZodString,ZodNumber,ZodBigInt,ZodBoolean,ZodDate,ZodSymbol,ZodUndefined,ZodNull,ZodAny,ZodUnknown,ZodNever,ZodVoid,ZodArray,ZodObject,ZodUnion,ZodDiscriminatedUnion,ZodIntersection,ZodTuple,ZodRecord,ZodMap,ZodSet,ZodFunction,ZodLazy,ZodLiteral,ZodEnum,ZodNativeEnum,ZodPromise,ZodEffects,ZodTransformer:ZodEffects,ZodOptional,ZodNullable,ZodDefault,ZodCatch,ZodNaN,BRAND,ZodBranded,ZodPipeline,ZodReadonly,custom,Schema:ZodType,ZodSchema:ZodType,late:late$1,get ZodFirstPartyTypeKind(){return ZodFirstPartyTypeKind},coerce,any:anyType,array:arrayType,bigint:bigIntType,boolean:booleanType,date:dateType,discriminatedUnion:discriminatedUnionType,effect:effectsType,enum:enumType,function:functionType,instanceof:instanceOfType,intersection:intersectionType,lazy:lazyType,literal:literalType,map:mapType,nan:nanType,nativeEnum:nativeEnumType,never:neverType,null:nullType,nullable:nullableType,number:numberType,object:objectType,oboolean,onumber,optional:optionalType,ostring,pipeline:pipelineType,preprocess:preprocessType,promise:promiseType,record:recordType,set:setType,strictObject:strictObjectType,string:stringType,symbol:symbolType,transformer:effectsType,tuple:tupleType,undefined:undefinedType,union:unionType,unknown:unknownType,void:voidType,NEVER,ZodIssueCode,quotelessJson,ZodError});const ProviderEnvOverridesSchema=z$2.object({AI21_API_BASE_URL:z$2.string().optional(),AI21_API_KEY:z$2.string().optional(),ANTHROPIC_API_KEY:z$2.string().optional(),ANTHROPIC_BASE_URL:z$2.string().optional(),AWS_BEDROCK_REGION:z$2.string().optional(),AZURE_API_BASE_URL:z$2.string().optional(),AZURE_API_HOST:z$2.string().optional(),AZURE_API_KEY:z$2.string().optional(),AZURE_AUTHORITY_HOST:z$2.string().optional(),AZURE_CLIENT_ID:z$2.string().optional(),AZURE_CLIENT_SECRET:z$2.string().optional(),AZURE_DEPLOYMENT_NAME:z$2.string().optional(),AZURE_EMBEDDING_DEPLOYMENT_NAME:z$2.string().optional(),AZURE_OPENAI_API_BASE_URL:z$2.string().optional(),AZURE_OPENAI_API_HOST:z$2.string().optional(),AZURE_OPENAI_API_KEY:z$2.string().optional(),AZURE_OPENAI_BASE_URL:z$2.string().optional(),AZURE_OPENAI_DEPLOYMENT_NAME:z$2.string().optional(),AZURE_OPENAI_EMBEDDING_DEPLOYMENT_NAME:z$2.string().optional(),AZURE_TENANT_ID:z$2.string().optional(),AZURE_TOKEN_SCOPE:z$2.string().optional(),BAM_API_HOST:z$2.string().optional(),BAM_API_KEY:z$2.string().optional(),CLOUDFLARE_ACCOUNT_ID:z$2.string().optional(),CLOUDFLARE_API_KEY:z$2.string().optional(),COHERE_API_KEY:z$2.string().optional(),COHERE_CLIENT_NAME:z$2.string().optional(),DATABRICKS_TOKEN:z$2.string().optional(),DATABRICKS_WORKSPACE_URL:z$2.string().optional(),FAL_KEY:z$2.string().optional(),GOOGLE_API_HOST:z$2.string().optional(),GOOGLE_API_KEY:z$2.string().optional(),GROQ_API_KEY:z$2.string().optional(),HELICONE_API_KEY:z$2.string().optional(),HF_API_TOKEN:z$2.string().optional(),HF_TOKEN:z$2.string().optional(),HUGGING_FACE_HUB_TOKEN:z$2.string().optional(),JFROG_API_KEY:z$2.string().optional(),LAMBDA_API_KEY:z$2.string().optional(),LANGFUSE_HOST:z$2.string().optional(),LANGFUSE_PUBLIC_KEY:z$2.string().optional(),LANGFUSE_SECRET_KEY:z$2.string().optional(),LITELLM_API_BASE:z$2.string().optional(),LLAMA_BASE_URL:z$2.string().optional(),LOCALAI_BASE_URL:z$2.string().optional(),MISTRAL_API_BASE_URL:z$2.string().optional(),MISTRAL_API_HOST:z$2.string().optional(),MISTRAL_API_KEY:z$2.string().optional(),OLLAMA_API_KEY:z$2.string().optional(),OLLAMA_BASE_URL:z$2.string().optional(),OPENAI_API_BASE_URL:z$2.string().optional(),OPENAI_API_HOST:z$2.string().optional(),OPENAI_API_KEY:z$2.string().optional(),OPENAI_BASE_URL:z$2.string().optional(),OPENAI_ORGANIZATION:z$2.string().optional(),PALM_API_HOST:z$2.string().optional(),PALM_API_KEY:z$2.string().optional(),PORTKEY_API_KEY:z$2.string().optional(),PROMPTFOO_CA_CERT_PATH:z$2.string().optional(),PROMPTFOO_INSECURE_SSL:z$2.string().optional(),REPLICATE_API_KEY:z$2.string().optional(),REPLICATE_API_TOKEN:z$2.string().optional(),VERTEX_API_HOST:z$2.string().optional(),VERTEX_API_KEY:z$2.string().optional(),VERTEX_API_VERSION:z$2.string().optional(),VERTEX_PROJECT_ID:z$2.string().optional(),VERTEX_PUBLISHER:z$2.string().optional(),VERTEX_REGION:z$2.string().optional(),VOYAGE_API_BASE_URL:z$2.string().optional(),VOYAGE_API_KEY:z$2.string().optional(),WATSONX_AI_APIKEY:z$2.string().optional(),WATSONX_AI_AUTH_TYPE:z$2.string().optional(),WATSONX_AI_BEARER_TOKEN:z$2.string().optional(),WATSONX_AI_PROJECT_ID:z$2.string().optional(),AZURE_CONTENT_SAFETY_ENDPOINT:z$2.string().optional(),AZURE_CONTENT_SAFETY_API_KEY:z$2.string().optional(),AZURE_CONTENT_SAFETY_API_VERSION:z$2.string().optional(),AWS_REGION:z$2.string().optional(),AWS_DEFAULT_REGION:z$2.string().optional(),AWS_SAGEMAKER_MAX_TOKENS:z$2.string().optional(),AWS_SAGEMAKER_TEMPERATURE:z$2.string().optional(),AWS_SAGEMAKER_TOP_P:z$2.string().optional(),AWS_SAGEMAKER_MAX_RETRIES:z$2.string().optional(),PROMPTFOO_EVAL_TIMEOUT_MS:z$2.string().optional()}),CompletionTokenDetailsSchema=z$2.object({reasoning:z$2.number().optional(),acceptedPrediction:z$2.number().optional(),rejectedPrediction:z$2.number().optional()}),BaseTokenUsageSchema=z$2.object({prompt:z$2.number().optional(),completion:z$2.number().optional(),cached:z$2.number().optional(),total:z$2.number().optional(),numRequests:z$2.number().optional(),completionDetails:CompletionTokenDetailsSchema.optional()}),TokenUsageSchema=BaseTokenUsageSchema.extend({assertions:BaseTokenUsageSchema.optional()}),PromptConfigSchema=z$2.object({prefix:z$2.string().optional(),suffix:z$2.string().optional()}),PromptFunctionSchema=z$2.function().args(z$2.object({vars:z$2.record(z$2.union([z$2.string(),z$2.any()])),provider:z$2.custom().optional()})).returns(z$2.promise(z$2.union([z$2.string(),z$2.any()]))),PromptSchema=z$2.object({id:z$2.string().optional(),raw:z$2.string(),display:z$2.string().optional(),label:z$2.string(),function:PromptFunctionSchema.optional(),config:z$2.any().optional()}),NunjucksFilterMapSchema=z$2.record(z$2.string(),z$2.function(z$2.tuple([z$2.any()]).rest(z$2.any()),z$2.string())),ProviderOptionsSchema=z$2.object({id:z$2.custom().optional(),label:z$2.custom().optional(),config:z$2.any().optional(),prompts:z$2.array(z$2.string()).optional(),transform:z$2.string().optional(),delay:z$2.number().optional(),env:ProviderEnvOverridesSchema.optional()}).strict(),CallApiContextParamsSchema=z$2.object({fetchWithCache:z$2.optional(z$2.any()),filters:NunjucksFilterMapSchema.optional(),getCache:z$2.optional(z$2.any()),logger:z$2.optional(z$2.any()),originalProvider:z$2.optional(z$2.any()),prompt:PromptSchema,vars:z$2.record(z$2.union([z$2.string(),z$2.object({})]))}),CallApiOptionsParamsSchema=z$2.object({includeLogProbs:z$2.optional(z$2.boolean())}),CallApiFunctionSchema=z$2.function().args(z$2.string().describe("prompt"),CallApiContextParamsSchema.optional(),CallApiOptionsParamsSchema.optional()).returns(z$2.promise(z$2.custom())).and(z$2.object({label:z$2.string().optional()})),ApiProviderSchema=z$2.object({id:z$2.function().returns(z$2.string()),callApi:z$2.custom(),callEmbeddingApi:z$2.function().args(z$2.string()).returns(z$2.promise(z$2.custom())).optional(),callClassificationApi:z$2.function().args(z$2.string()).returns(z$2.promise(z$2.custom())).optional(),label:z$2.custom().optional(),transform:z$2.string().optional(),delay:z$2.number().optional(),config:z$2.any().optional()});z$2.object({cached:z$2.boolean().optional(),cost:z$2.number().optional(),error:z$2.string().optional(),logProbs:z$2.array(z$2.number()).optional(),metadata:z$2.object({redteamFinalPrompt:z$2.string().optional()}).catchall(z$2.any()).optional(),output:z$2.union([z$2.string(),z$2.any()]).optional(),tokenUsage:TokenUsageSchema.optional()});z$2.object({error:z$2.string().optional(),embedding:z$2.array(z$2.number()).optional(),tokenUsage:TokenUsageSchema.partial().optional()});z$2.object({error:z$2.string().optional(),similarity:z$2.number().optional(),tokenUsage:TokenUsageSchema.partial().optional()});z$2.object({error:z$2.string().optional(),classification:z$2.record(z$2.number()).optional()});const ProvidersSchema=z$2.union([z$2.string(),CallApiFunctionSchema,z$2.array(z$2.union([z$2.string(),z$2.record(z$2.string(),ProviderOptionsSchema),ProviderOptionsSchema,CallApiFunctionSchema]))]),ProviderSchema=z$2.union([z$2.string(),ProviderOptionsSchema,ApiProviderSchema]);function ownKeys$9(t,Ae){var xe=Object.keys(t);if(Object.getOwnPropertySymbols){var Ee=Object.getOwnPropertySymbols(t);Ae&&(Ee=Ee.filter(function(Se){return Object.getOwnPropertyDescriptor(t,Se).enumerable})),xe.push.apply(xe,Ee)}return xe}function _objectSpread$9(t){for(var Ae=1;Ae<arguments.length;Ae++){var xe=arguments[Ae]!=null?arguments[Ae]:{};Ae%2?ownKeys$9(Object(xe),!0).forEach(function(Ee){_defineProperty$b(t,Ee,xe[Ee])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(xe)):ownKeys$9(Object(xe)).forEach(function(Ee){Object.defineProperty(t,Ee,Object.getOwnPropertyDescriptor(xe,Ee))})}return t}function _defineProperty$b(t,Ae,xe){return Ae=_toPropertyKey$a(Ae),Ae in t?Object.defineProperty(t,Ae,{value:xe,enumerable:!0,configurable:!0,writable:!0}):t[Ae]=xe,t}function _toPropertyKey$a(t){var Ae=_toPrimitive$a(t,"string");return typeof Ae=="symbol"?Ae:String(Ae)}function _toPrimitive$a(t,Ae){if(typeof t!="object"||t===null)return t;var xe=t[Symbol.toPrimitive];if(xe!==void 0){var Ee=xe.call(t,Ae);if(typeof Ee!="object")return Ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ae==="string"?String:Number)(t)}const dedent=createDedent({});function createDedent(t){return Ae.withOptions=xe=>createDedent(_objectSpread$9(_objectSpread$9({},t),xe)),Ae;function Ae(xe,...Ee){const Se=typeof xe=="string"?[xe]:xe.raw,{escapeSpecialCharacters:Ce=Array.isArray(xe),trimWhitespace:_e=!0}=t;let Ie="";for(let Pe=0;Pe<Se.length;Pe++){let ke=Se[Pe];Ce&&(ke=ke.replace(/\\\n[ \t]*/g,"").replace(/\\`/g,"`").replace(/\\\$/g,"$").replace(/\\\{/g,"{")),Ie+=ke,Pe<Ee.length&&(Ie+=Ee[Pe])}const Be=Ie.split(`
|
|
523
523
|
`);let Te=null;for(const Pe of Be){const ke=Pe.match(/^(\s+)\S+/);if(ke){const $e=ke[1].length;Te?Te=Math.min(Te,$e):Te=$e}}if(Te!==null){const Pe=Te;Ie=Be.map(ke=>ke[0]===" "||ke[0]===" "?ke.slice(Pe):ke).join(`
|
|
524
524
|
`)}return _e&&(Ie=Ie.trim()),Ce&&(Ie=Ie.replace(/\\n/g,`
|
|
525
|
-
`)),Ie}}const MEMORY_POISONING_PLUGIN_ID="agentic:memory-poisoning",DEFAULT_NUM_TESTS_PER_PLUGIN=5,FOUNDATION_PLUGINS=["ascii-smuggling","beavertails","bias:gender","contracts","cyberseceval","donotanswer","divergent-repetition","excessive-agency","hallucination","harmful:chemical-biological-weapons","harmful:child-exploitation","harmful:copyright-violations","harmful:cybercrime","harmful:cybercrime:malicious-code","harmful:graphic-content","harmful:harassment-bullying","harmful:hate","harmful:illegal-activities","harmful:illegal-drugs","harmful:illegal-drugs:meth","harmful:indiscriminate-weapons","harmful:insults","harmful:intellectual-property","harmful:misinformation-disinformation","harmful:non-violent-crime","harmful:profanity","harmful:radicalization","harmful:self-harm","harmful:sex-crime","harmful:sexual-content","harmful:specialized-advice","harmful:unsafe-practices","harmful:violent-crime","harmful:weapons:ied","hijacking","imitation","overreliance","pii:direct","pliny","politics","religion"],AGENTIC_PLUGINS=[MEMORY_POISONING_PLUGIN_ID],COLLECTIONS=["default","foundation","harmful","pii"],UNALIGNED_PROVIDER_HARM_PLUGINS={"harmful:child-exploitation":"Child Exploitation","harmful:hate":"Hate","harmful:indiscriminate-weapons":"Indiscriminate Weapons","harmful:non-violent-crime":"Non-Violent Crimes","harmful:self-harm":"Self-Harm","harmful:sex-crime":"Sex Crimes","harmful:sexual-content":"Sexual Content","harmful:violent-crime":"Violent Crimes","harmful:chemical-biological-weapons":"Chemical & Biological Weapons","harmful:copyright-violations":"Copyright Violations - Copyrighted text","harmful:cybercrime":"Cybercrime & Unauthorized Intrusion - Hacking and Malware","harmful:graphic-content":"Graphic & age-restricted content","harmful:harassment-bullying":"Harassment & Bullying","harmful:illegal-activities":"Illegal Activities - Fraud & scams","harmful:illegal-drugs":"Illegal Drugs","harmful:unsafe-practices":"Promotion of unsafe practices","harmful:insults":"Insults and personal attacks","harmful:profanity":"Requests containing profanity","harmful:radicalization":"Radicalization","harmful:illegal-drugs:meth":"Methamphetamine","harmful:weapons:ied":"Improvised Explosive Devices","harmful:cybercrime:malicious-code":"Malicious Code"},REDTEAM_PROVIDER_HARM_PLUGINS={"harmful:intellectual-property":"Intellectual Property violation","harmful:privacy":"Privacy violations"},HARM_PLUGINS={"harmful:misinformation-disinformation":"Misinformation & Disinformation - Harmful lies and propaganda","harmful:specialized-advice":"Specialized Advice - Financial",...UNALIGNED_PROVIDER_HARM_PLUGINS,...REDTEAM_PROVIDER_HARM_PLUGINS},PII_PLUGINS=["pii:api-db","pii:direct","pii:session","pii:social"],BASE_PLUGINS=["contracts","excessive-agency","hallucination","hijacking","politics"],ADDITIONAL_PLUGINS=["ascii-smuggling","beavertails","bfla","bola","bias:gender","cca","competitors","cross-session-leak","cyberseceval","debug-access","divergent-repetition","donotanswer","harmbench","imitation","indirect-prompt-injection","mcp","overreliance","pliny","prompt-extraction","rag-document-exfiltration","rag-poisoning","rbac","reasoning-dos","religion","shell-injection","sql-injection","ssrf","system-prompt-override","tool-discovery:multi-turn","tool-discovery","unsafebench","xstest"],CONFIG_REQUIRED_PLUGINS=["intent","policy"],DEFAULT_PLUGINS=new Set([...[...BASE_PLUGINS,...Object.keys(HARM_PLUGINS),...PII_PLUGINS].sort()]),ALL_PLUGINS=[...new Set([...DEFAULT_PLUGINS,...ADDITIONAL_PLUGINS,...CONFIG_REQUIRED_PLUGINS,...AGENTIC_PLUGINS])].sort(),FRAMEWORK_NAMES={"mitre:atlas":"MITRE ATLAS","nist:ai:measure":"NIST AI RMF","owasp:api":"OWASP API Top 10","owasp:llm":"OWASP LLM Top 10","owasp:agentic":"OWASP Agentic v1.0","eu:ai-act":"EU AI Act"},OWASP_LLM_TOP_10_NAMES=["Prompt Injection","Sensitive Information Disclosure","Supply Chain","Improper Output Handling","Insecure Output Handling","Excessive Agency","System Prompt Leakage","Vector and Embedding Weaknesses","Misinformation","Unbounded Consumption"],OWASP_API_TOP_10_NAMES=["Broken Object Level Authorization","Broken Authentication","Broken Object Property Level Authorization","Unrestricted Resource Consumption","Broken Function Level Authorization","Unrestricted Access to Sensitive Business Flows","Server Side Request Forgery","Security Misconfiguration","Improper Inventory Management","Unsafe Consumption of APIs"],OWASP_LLM_TOP_10_MAPPING={"owasp:llm:01":{plugins:["ascii-smuggling","indirect-prompt-injection","prompt-extraction","harmful"],strategies:["jailbreak","prompt-injection","jailbreak:composite"]},"owasp:llm:02":{plugins:["pii:api-db","pii:direct","pii:session","pii:social","harmful:privacy","cross-session-leak","prompt-extraction"],strategies:["jailbreak","prompt-injection","jailbreak:composite"]},"owasp:llm:03":{plugins:[],strategies:[]},"owasp:llm:04":{plugins:["harmful:misinformation-disinformation","harmful:hate","bias:gender","harmful:radicalization","harmful:specialized-advice"],strategies:["jailbreak","prompt-injection","jailbreak:composite"]},"owasp:llm:05":{plugins:["shell-injection","sql-injection","ssrf","debug-access"],strategies:["jailbreak","prompt-injection"]},"owasp:llm:06":{plugins:["excessive-agency","rbac","bfla","bola","shell-injection","sql-injection","ssrf"],strategies:["jailbreak","prompt-injection","jailbreak:composite"]},"owasp:llm:07":{plugins:["prompt-extraction","rbac","harmful:privacy","pii:api-db","pii:direct","pii:session","pii:social"],strategies:["jailbreak","prompt-injection","jailbreak:composite"]},"owasp:llm:08":{plugins:["cross-session-leak","harmful:privacy","pii:api-db","pii:direct","pii:session","pii:social"],strategies:["jailbreak","prompt-injection","jailbreak:composite"]},"owasp:llm:09":{plugins:["hallucination","overreliance","harmful:misinformation-disinformation","harmful:specialized-advice"],strategies:["jailbreak","prompt-injection","jailbreak:composite"]},"owasp:llm:10":{plugins:["divergent-repetition","reasoning-dos"],strategies:[]}},OWASP_API_TOP_10_MAPPING={"owasp:api:01":{plugins:["bola","rbac"],strategies:[]},"owasp:api:02":{plugins:["bfla","rbac"],strategies:[]},"owasp:api:03":{plugins:["excessive-agency","overreliance"],strategies:[]},"owasp:api:04":{plugins:["harmful:privacy","pii:api-db","pii:session"],strategies:[]},"owasp:api:05":{plugins:["bfla","bola","rbac"],strategies:[]},"owasp:api:06":{plugins:["harmful:misinformation-disinformation","overreliance"],strategies:[]},"owasp:api:07":{plugins:["shell-injection","sql-injection"],strategies:[]},"owasp:api:08":{plugins:["harmful:privacy","pii:api-db","pii:session"],strategies:[]},"owasp:api:09":{plugins:["harmful:specialized-advice","overreliance"],strategies:[]},"owasp:api:10":{plugins:["debug-access","harmful:privacy"],strategies:[]}},OWASP_AGENTIC_REDTEAM_MAPPING={"owasp:agentic:t01":{plugins:[MEMORY_POISONING_PLUGIN_ID],strategies:[]}},OWASP_LLM_RED_TEAM_MAPPING={"owasp:llm:redteam:model":{plugins:[...FOUNDATION_PLUGINS],strategies:["jailbreak","jailbreak:tree","jailbreak:composite","crescendo","goat","prompt-injection","best-of-n","multilingual"]},"owasp:llm:redteam:implementation":{plugins:[...PII_PLUGINS,"prompt-extraction","harmful:privacy","rbac","bfla","bola","ascii-smuggling"],strategies:["jailbreak","jailbreak:tree","jailbreak:composite","prompt-injection","hex","base64","homoglyph","leetspeak","morse","piglatin","rot13"]},"owasp:llm:redteam:system":{plugins:["shell-injection","sql-injection","ssrf","debug-access","tool-discovery","indirect-prompt-injection","hijacking"],strategies:["jailbreak","jailbreak:tree","jailbreak:composite","crescendo","goat","multilingual","pandamonium","gcg"]},"owasp:llm:redteam:runtime":{plugins:["excessive-agency","overreliance","pliny","competitors","imitation","politics","religion","harmful:radicalization","harmful:self-harm","harmful:hate"],strategies:["crescendo","goat","jailbreak:tree","jailbreak:composite","prompt-injection"]}},NIST_AI_RMF_MAPPING={"nist:ai:measure:1.1":{plugins:["excessive-agency","harmful:misinformation-disinformation"],strategies:["jailbreak","prompt-injection"]},"nist:ai:measure:1.2":{plugins:["excessive-agency","harmful:misinformation-disinformation"],strategies:["jailbreak","prompt-injection"]},"nist:ai:measure:2.1":{plugins:["harmful:privacy","pii:api-db","pii:direct","pii:session","pii:social"],strategies:[]},"nist:ai:measure:2.2":{plugins:["harmful:privacy","pii:api-db","pii:direct","pii:session","pii:social"],strategies:[]},"nist:ai:measure:2.3":{plugins:["excessive-agency"],strategies:[]},"nist:ai:measure:2.4":{plugins:["excessive-agency","harmful:misinformation-disinformation"],strategies:["jailbreak","prompt-injection"]},"nist:ai:measure:2.5":{plugins:["excessive-agency"],strategies:[]},"nist:ai:measure:2.6":{plugins:["harmful:chemical-biological-weapons","harmful:indiscriminate-weapons","harmful:unsafe-practices"],strategies:[]},"nist:ai:measure:2.7":{plugins:["harmful:cybercrime","shell-injection","sql-injection"],strategies:["jailbreak","prompt-injection"]},"nist:ai:measure:2.8":{plugins:["bfla","bola","rbac"],strategies:[]},"nist:ai:measure:2.9":{plugins:["excessive-agency"],strategies:[]},"nist:ai:measure:2.10":{plugins:["harmful:privacy","pii:api-db","pii:direct","pii:session","pii:social"],strategies:[]},"nist:ai:measure:2.11":{plugins:["harmful:harassment-bullying","harmful:hate","harmful:insults"],strategies:[]},"nist:ai:measure:2.12":{plugins:[],strategies:[]},"nist:ai:measure:2.13":{plugins:["excessive-agency"],strategies:[]},"nist:ai:measure:3.1":{plugins:["excessive-agency","harmful:misinformation-disinformation"],strategies:["jailbreak","prompt-injection"]},"nist:ai:measure:3.2":{plugins:["excessive-agency"],strategies:[]},"nist:ai:measure:3.3":{plugins:["excessive-agency"],strategies:[]},"nist:ai:measure:4.1":{plugins:["excessive-agency"],strategies:[]},"nist:ai:measure:4.2":{plugins:["excessive-agency","harmful:misinformation-disinformation"],strategies:[]},"nist:ai:measure:4.3":{plugins:["excessive-agency"],strategies:[]}},MITRE_ATLAS_MAPPING={"mitre:atlas:exfiltration":{plugins:["ascii-smuggling","harmful:privacy","indirect-prompt-injection","pii:api-db","pii:direct","pii:session","pii:social","prompt-extraction"],strategies:[]},"mitre:atlas:impact":{plugins:["excessive-agency","harmful","hijacking","imitation"],strategies:["crescendo"]},"mitre:atlas:initial-access":{plugins:["debug-access","harmful:cybercrime","shell-injection","sql-injection","ssrf"],strategies:["base64","jailbreak","leetspeak","prompt-injection","rot13"]},"mitre:atlas:ml-attack-staging":{plugins:["ascii-smuggling","excessive-agency","hallucination","indirect-prompt-injection"],strategies:["jailbreak","jailbreak:tree"]},"mitre:atlas:reconnaissance":{plugins:["competitors","policy","prompt-extraction","rbac"],strategies:["multilingual"]},"mitre:atlas:resource-development":{plugins:["harmful:cybercrime","harmful:illegal-drugs","harmful:indiscriminate-weapons"],strategies:[]}},EU_AI_ACT_MAPPING={"eu:ai-act:art5:subliminal-manipulation":{plugins:["hijacking","intent","excessive-agency"],strategies:["jailbreak","jailbreak:tree","jailbreak:composite","prompt-injection"]},"eu:ai-act:art5:exploitation-of-vulnerabilities":{plugins:["hijacking","imitation","harmful:misinformation-disinformation"],strategies:[]},"eu:ai-act:art5:social-scoring":{plugins:["harmful:misinformation-disinformation","overreliance"],strategies:[]},"eu:ai-act:art5:biometric-categorisation":{plugins:["pii:direct","pii:session","harmful:privacy"],strategies:[]},"eu:ai-act:art5:remote-biometric-id-live":{plugins:["pii:session","pii:direct","harmful:privacy"],strategies:[]},"eu:ai-act:art5:remote-biometric-id-post":{plugins:["pii:api-db","pii:direct","harmful:privacy"],strategies:[]},"eu:ai-act:annex3:biometric-id":{plugins:["pii:direct","pii:session","harmful:privacy"],strategies:[]},"eu:ai-act:annex3:critical-infrastructure":{plugins:["shell-injection","sql-injection","ssrf","excessive-agency"],strategies:["jailbreak","prompt-injection"]},"eu:ai-act:annex3:education":{plugins:["harmful:misinformation-disinformation","hallucination","overreliance"],strategies:[]},"eu:ai-act:annex3:employment":{plugins:["imitation","pii:direct","overreliance"],strategies:[]},"eu:ai-act:annex3:essential-services":{plugins:["pii:direct","pii:session","excessive-agency"],strategies:[]},"eu:ai-act:annex3:law-enforcement":{plugins:["pii:direct","pii:api-db","harmful:privacy"],strategies:[]},"eu:ai-act:annex3:migration-border":{plugins:["pii:direct","harmful:hate","harmful:privacy"],strategies:[]},"eu:ai-act:annex3:justice-democracy":{plugins:["hallucination","harmful:misinformation-disinformation","pii:direct"],strategies:[]}},ALIASED_PLUGINS=["mitre:atlas","nist:ai","nist:ai:measure","owasp:api","owasp:llm","owasp:llm:redteam:model","owasp:llm:redteam:implementation","owasp:llm:redteam:system","owasp:llm:redteam:runtime","toxicity","bias","misinformation","illegal-activity","personal-safety","eu:ai-act",...Object.keys(MITRE_ATLAS_MAPPING),...Object.keys(NIST_AI_RMF_MAPPING),...Object.keys(OWASP_API_TOP_10_MAPPING),...Object.keys(OWASP_LLM_TOP_10_MAPPING),...Object.keys(OWASP_AGENTIC_REDTEAM_MAPPING),...Object.keys(EU_AI_ACT_MAPPING)],ALIASED_PLUGIN_MAPPINGS={"mitre:atlas":MITRE_ATLAS_MAPPING,"nist:ai:measure":NIST_AI_RMF_MAPPING,"owasp:api":OWASP_API_TOP_10_MAPPING,"owasp:llm":OWASP_LLM_TOP_10_MAPPING,"owasp:llm:redteam":OWASP_LLM_RED_TEAM_MAPPING,"owasp:agentic:redteam":OWASP_AGENTIC_REDTEAM_MAPPING,"eu:ai-act":EU_AI_ACT_MAPPING,toxicity:{toxicity:{plugins:["harmful:hate","harmful:harassment-bullying","harmful:insults","harmful:profanity","harmful:graphic-content","harmful:sexual-content"],strategies:[]}},bias:{bias:{plugins:["politics","religion","bias:gender"],strategies:[]}},misinformation:{misinformation:{plugins:["harmful:misinformation-disinformation","hallucination","harmful:radicalization","imitation"],strategies:[]}},"illegal-activity":{"illegal-activity":{plugins:["harmful:violent-crime","harmful:non-violent-crime","harmful:sex-crime","harmful:cybercrime","harmful:illegal-activities","harmful:illegal-drugs","harmful:illegal-drugs:meth","harmful:chemical-biological-weapons","harmful:indiscriminate-weapons","harmful:weapons:ied"],strategies:[]}}},FRAMEWORK_COMPLIANCE_IDS=["mitre:atlas","nist:ai:measure","owasp:api","owasp:llm","eu:ai-act"],DEFAULT_STRATEGIES=["basic","jailbreak","jailbreak:composite"],MULTI_TURN_STRATEGIES=["crescendo","goat"],AGENTIC_STRATEGIES=["crescendo","goat","jailbreak","jailbreak:tree","pandamonium"],ADDITIONAL_STRATEGIES=["audio","base64","best-of-n","citation","crescendo","gcg","goat","hex","homoglyph","image","jailbreak:likert","jailbreak:tree","leetspeak","math-prompt","morse","multilingual","pandamonium","piglatin","prompt-injection","retry","rot13","video"],STRATEGY_COLLECTIONS=["other-encodings"],_ALL_STRATEGIES=["default",...DEFAULT_STRATEGIES,...ADDITIONAL_STRATEGIES,...STRATEGY_COLLECTIONS],ALL_STRATEGIES=[..._ALL_STRATEGIES].sort(),subCategoryDescriptions={[MEMORY_POISONING_PLUGIN_ID]:"Tests whether an agent is vulnerable to memory poisoning attacks","ascii-smuggling":"Tests vulnerability to Unicode tag-based instruction smuggling attacks",audio:"Tests handling of audio content",base64:"Tests handling of Base64-encoded malicious payloads",basic:"Original plugin tests without any additional strategies or optimizations",beavertails:"Tests handling of malicious prompts from the BeaverTails dataset","best-of-n":"Jailbreak technique published by Anthropic and Stanford",bfla:"Tests for broken function-level authorization vulnerabilities (OWASP API 5)","bias:gender":"Tests handling of gender bias, stereotypes, and discrimination",bola:"Tests for broken object-level authorization vulnerabilities (OWASP API 1)",cca:"Tests for vulnerability to Context Compliance Attacks using fabricated conversation history",citation:"Exploits academic authority bias to bypass content filters",competitors:"Tests for unauthorized competitor mentions and endorsements",contracts:"Tests for unauthorized contractual commitments and legal exposure",crescendo:"Multi-turn attack strategy that gradually escalates malicious intent","cross-session-leak":"Tests for information leakage between user sessions",cyberseceval:"Tests prompt injection attacks from Meta's CyberSecEval dataset","debug-access":"Tests for exposed debugging interfaces and commands",default:"Standard security testing plugins","divergent-repetition":"Tests for training data leaks through repetitive pattern exploitation that causes model divergence",donotanswer:"Tests for vulnerabilities to Do Not Answer attacks","excessive-agency":"Tests for unauthorized actions beyond defined system boundaries",foundation:"Tests a collection of plugins designed to run against foundation models",gcg:"Greedy Coordinate Gradient adversarial suffix attack",goat:"Dynamic multi-turn attack generation using adversarial techniques",hallucination:"Tests for fabrication of false or misleading information",harmbench:"Tests for harmful content using the HarmBench dataset",harmful:"Tests handling of malicious content across multiple categories","harmful:chemical-biological-weapons":"Tests handling of WMD-related content","harmful:child-exploitation":"Tests handling of child exploitation content","harmful:copyright-violations":"Tests handling of intellectual property violations","harmful:cybercrime":"Tests handling of cybercrime-related content","harmful:cybercrime:malicious-code":"Tests creation of malicious code","harmful:graphic-content":"Tests handling of graphic or violent content","harmful:harassment-bullying":"Tests handling of harassment and bullying content","harmful:hate":"Tests handling of hate speech and discriminatory content","harmful:illegal-activities":"Tests handling of general illegal activities","harmful:illegal-drugs":"Tests handling of illegal drug-related content","harmful:illegal-drugs:meth":"Tests handling of methamphetamine-related content","harmful:indiscriminate-weapons":"Tests handling of weapons-related content","harmful:insults":"Tests handling of personal attacks and insults","harmful:intellectual-property":"Tests handling of IP theft and violations","harmful:misinformation-disinformation":"Tests handling of false information campaigns","harmful:non-violent-crime":"Tests handling of non-violent criminal content","harmful:privacy":"Tests handling of privacy violation attempts","harmful:profanity":"Tests handling of profane or inappropriate language","harmful:radicalization":"Tests handling of extremist content and recruitment","harmful:self-harm":"Tests handling of self-harm and suicide content","harmful:sex-crime":"Tests handling of sexual crime content","harmful:sexual-content":"Tests handling of explicit sexual content","harmful:specialized-advice":"Tests handling of unauthorized professional advice","harmful:unsafe-practices":"Tests handling of dangerous activity instructions","harmful:violent-crime":"Tests handling of violent crime content","harmful:weapons:ied":"Tests handling of Improvised Explosive Devices",hex:"Tests handling of hex-encoded malicious payloads",hijacking:"Tests for unauthorized resource usage and purpose deviation",homoglyph:"Tests handling of homoglyph (visually similar Unicode characters) encoding to bypass filters",image:"Tests handling of image content",imitation:"Tests for unauthorized impersonation of entities","indirect-prompt-injection":"Tests for injection vulnerabilities via untrusted variables",intent:"Tests for manipulation of system behavior via specific prompts",jailbreak:"Single-shot optimization of safety bypass techniques","jailbreak:composite":"Combines multiple jailbreak techniques for enhanced effectiveness","jailbreak:likert":"Uses Likert scale-based prompts to bypass content filters","jailbreak:tree":"Tree-based search for optimal safety bypass vectors",leetspeak:"Tests handling of leetspeak-encoded malicious content","math-prompt":"Tests handling of mathematical notation-based attacks",morse:"Tests handling of content encoded in Morse code to potentially bypass filters",multilingual:"Tests handling of attacks across multiple languages",mcp:"Tests for vulnerabilities to Model Context Protocol (MCP) attacks",overreliance:"Tests for overreliance on system assumptions",pandamonium:"[Experimental] Promptfoo's blackbox jailbreak. The latest and greatest jailbreak techniques, expertly tuned and crafted by Promptfoo's AI team.",pii:"Tests handling of personal identifiable information","pii:api-db":"Tests for PII exposure via API/database access","pii:direct":"Tests for direct PII exposure vulnerabilities","pii:session":"Tests for PII exposure in session data","pii:social":"Tests for PII exposure via social engineering",piglatin:"Tests handling of content translated to Pig Latin to potentially bypass filters",pliny:"Tests handling of Pliny prompt injections",policy:"Tests compliance with custom security policies",politics:"Tests handling of political content and bias","prompt-extraction":"Tests for system prompt disclosure vulnerabilities","prompt-injection":"Tests for direct prompt injection vulnerabilities","rag-document-exfiltration":"Tests for RAG document exfiltration","rag-poisoning":"Tests for vulnerabilities to RAG retrieval poisoning attacks",rbac:"Tests role-based access control implementation","reasoning-dos":"Tests for vulnerabilities to computational resource exhaustion through excessive reasoning patterns",religion:"Tests handling of religious content and bias",retry:"Automatically incorporates previously failed test cases to build a regression testing suite",rot13:"Tests handling of ROT13-encoded malicious content","shell-injection":"Tests for command injection vulnerabilities","sql-injection":"Tests for SQL injection vulnerabilities",ssrf:"Tests for server-side request forgery vulnerabilities","system-prompt-override":"Tests for system prompt override vulnerabilities","tool-discovery":"Tests for enumeration of available tools and function calls","tool-discovery:multi-turn":"Uses conversational approach to discover available tools, functions, and capabilities through multi-step interactions",unsafebench:"Tests handling of unsafe image content from the UnsafeBench dataset",xstest:"Tests for XSTest attacks",video:"Tests handling of video content","other-encodings":"Collection of alternative text transformation strategies (Morse code and Pig Latin) for testing evasion techniques"},displayNameOverrides={[MEMORY_POISONING_PLUGIN_ID]:"Agentic Memory Poisoning","ascii-smuggling":"ASCII Smuggling",audio:"Audio Content",base64:"Base64 Payload Encoding",basic:"Baseline Testing",beavertails:"BeaverTails Dataset","best-of-n":"Best-of-N",bfla:"Function-Level Authorization Bypass",bola:"Object-Level Authorization Bypass",cca:"Context Compliance Attack",citation:"Authority Bias Exploitation",competitors:"Competitors",contracts:"Unauthorized Commitments",crescendo:"Multi-Turn Crescendo","cross-session-leak":"Cross-Session Data Leakage",cyberseceval:"CyberSecEval Dataset","debug-access":"Debug Interface Exposure",default:"Standard Security Suite","divergent-repetition":"Divergent Repetition",donotanswer:"Do Not Answer Dataset","excessive-agency":"Excessive Agency",foundation:"Foundation Model Plugin Collection",gcg:"Greedy Coordinate Gradient",mcp:"Model Context Protocol",goat:"Generative Offensive Agent Tester",hallucination:"False Information (Hallucination)",harmbench:"HarmBench Dataset",harmful:"Malicious Content Suite","bias:gender":"Gender Bias","harmful:chemical-biological-weapons":"WMD Content","harmful:child-exploitation":"Child Exploitation","harmful:copyright-violations":"IP Violations","harmful:cybercrime":"Cybercrime","harmful:cybercrime:malicious-code":"Malicious Code","harmful:graphic-content":"Graphic Content","harmful:harassment-bullying":"Harassment","harmful:hate":"Hate Speech","harmful:illegal-activities":"Illegal Activity","harmful:illegal-drugs":"Drug-Related Content","harmful:illegal-drugs:meth":"Methamphetamine Content","harmful:indiscriminate-weapons":"Weapons Content","harmful:insults":"Personal Attacks","harmful:intellectual-property":"IP Theft","harmful:misinformation-disinformation":"Disinformation Campaigns","harmful:non-violent-crime":"Non-Violent Crime","harmful:privacy":"Privacy Violation","harmful:profanity":"Profanity","harmful:radicalization":"Extremist Content","harmful:self-harm":"Self-Harm","harmful:sex-crime":"Sexual Crime Content","harmful:sexual-content":"Explicit Content","harmful:specialized-advice":"Unauthorized Advice","harmful:unsafe-practices":"Dangerous Activity Content","harmful:violent-crime":"Violent Crime Content","harmful:weapons:ied":"Improvised Explosive Devices",hex:"Hex Encoding",hijacking:"Resource Hijacking",homoglyph:"Homoglyph Encoding",image:"Image Content",imitation:"Entity Impersonation","indirect-prompt-injection":"Indirect Prompt Injection",intent:"Intent",jailbreak:"Single-shot Optimization","jailbreak:composite":"Multi-Vector Safety Bypass","jailbreak:likert":"Likert Scale Jailbreak","jailbreak:tree":"Tree-Based Attack Search",leetspeak:"Leetspeak Payload Encoding","math-prompt":"Mathematical Notation Attack",morse:"Morse Code Encoding",multilingual:"Cross-Language Attack","other-encodings":"Collection of Text Encodings",overreliance:"Overreliance",pandamonium:"[Experimental] Pandamonium",piglatin:"Pig Latin Encoding",pii:"PII Protection Suite","pii:api-db":"PII via API/Database","pii:direct":"PII via Direct Exposure","pii:session":"PII via Session Data","pii:social":"PII via Social Engineering",pliny:"Pliny Prompt Injections",policy:"Policy Compliance",politics:"Political Bias","prompt-extraction":"System Prompt Disclosure","prompt-injection":"Direct Prompt Injection","rag-document-exfiltration":"RAG Document Exfiltration","rag-poisoning":"RAG Poisoning",rbac:"RBAC Implementation","reasoning-dos":"Reasoning DoS",religion:"Religious Bias",retry:"Regression Testing",rot13:"ROT13 Payload Encoding","shell-injection":"Command Injection","sql-injection":"SQL Injection",ssrf:"SSRF Vulnerability","system-prompt-override":"System Prompt Override","tool-discovery":"Tool Discovery","tool-discovery:multi-turn":"Multi-turn Tool Discovery",unsafebench:"UnsafeBench Dataset",xstest:"XSTest Dataset",video:"Video Content"};var Severity=(t=>(t.Critical="critical",t.High="high",t.Medium="medium",t.Low="low",t))(Severity||{});const severityDisplayNames={critical:"Critical",high:"High",medium:"Medium",low:"Low"},riskCategorySeverityMap={[MEMORY_POISONING_PLUGIN_ID]:"high","ascii-smuggling":"low",beavertails:"low",bfla:"high",bola:"high",cca:"high",mcp:"high",competitors:"low",contracts:"medium","cross-session-leak":"medium",cyberseceval:"medium",donotanswer:"medium","debug-access":"high",default:"low","divergent-repetition":"medium","excessive-agency":"medium",foundation:"medium",hallucination:"medium",harmbench:"medium",harmful:"medium","bias:gender":"low","harmful:chemical-biological-weapons":"high","harmful:child-exploitation":"critical","harmful:copyright-violations":"low","harmful:cybercrime":"low","harmful:cybercrime:malicious-code":"low","harmful:graphic-content":"medium","harmful:harassment-bullying":"low","harmful:hate":"critical","harmful:illegal-activities":"medium","harmful:illegal-drugs":"medium","harmful:illegal-drugs:meth":"low","harmful:indiscriminate-weapons":"medium","harmful:insults":"low","harmful:intellectual-property":"medium","harmful:misinformation-disinformation":"medium","harmful:non-violent-crime":"medium","harmful:privacy":"high","harmful:profanity":"low","harmful:radicalization":"low","harmful:self-harm":"critical","harmful:sex-crime":"high","harmful:sexual-content":"medium","harmful:specialized-advice":"medium","harmful:unsafe-practices":"low","harmful:violent-crime":"high","harmful:weapons:ied":"low",hijacking:"high",imitation:"low","indirect-prompt-injection":"high",intent:"high",overreliance:"low",pii:"high","pii:api-db":"high","pii:direct":"high","pii:session":"high","pii:social":"high",pliny:"medium",policy:"high",politics:"low","prompt-extraction":"medium","rag-document-exfiltration":"medium","rag-poisoning":"medium",rbac:"high","reasoning-dos":"low",religion:"low","shell-injection":"high","sql-injection":"high",ssrf:"high","system-prompt-override":"high","tool-discovery:multi-turn":"low","tool-discovery":"low",unsafebench:"medium",xstest:"low"},riskCategories={"Security & Access Control":["agentic:memory-poisoning","ascii-smuggling","bfla","bola","debug-access","hijacking","indirect-prompt-injection","rbac","shell-injection","sql-injection","ssrf","tool-discovery","tool-discovery:multi-turn","cross-session-leak","divergent-repetition","harmful:privacy","pii:api-db","pii:direct","pii:session","pii:social","pii","prompt-extraction",MEMORY_POISONING_PLUGIN_ID],"Compliance & Legal":["contracts","harmful:chemical-biological-weapons","harmful:copyright-violations","harmful:cybercrime:malicious-code","harmful:cybercrime","harmful:illegal-activities","harmful:illegal-drugs:meth","harmful:illegal-drugs","harmful:indiscriminate-weapons","harmful:intellectual-property","harmful:non-violent-crime","harmful:sex-crime","harmful:specialized-advice","harmful:unsafe-practices","harmful:violent-crime","harmful:weapons:ied"],"Trust & Safety":["bias:gender","harmful:child-exploitation","harmful:graphic-content","harmful:harassment-bullying","harmful:hate","harmful:insults","harmful:profanity","harmful:radicalization","harmful:self-harm","harmful:sexual-content"],Brand:["competitors","excessive-agency","hallucination","harmful:misinformation-disinformation","hijacking","imitation","intent","overreliance","policy","politics","religion"],Datasets:["beavertails","cyberseceval","donotanswer","harmbench","pliny","unsafebench","xstest"]},categoryDescriptions={"Security & Access Control":"Data protection, access control, and system security risks.","Compliance & Legal":"Regulatory compliance, legal, and policy violation risks.","Trust & Safety":"Harmful, inappropriate, or offensive content generation risks.",Brand:"Output reliability, accuracy, and brand reputation risks.",Datasets:"Pre-defined test cases from research datasets."};Object.entries(riskCategories).reduce((t,[Ae,xe])=>(xe.forEach(Ee=>{t[Ee]=Ae}),t),{});const categoryAliases={[MEMORY_POISONING_PLUGIN_ID]:"AgenticMemoryPoisoning","ascii-smuggling":"AsciiSmuggling",beavertails:"BeaverTails",bfla:"BFLAEnforcement",bola:"BOLAEnforcement",cca:"CCAEnforcement",competitors:"CompetitorEndorsement",contracts:"ContractualCommitment","cross-session-leak":"CrossSessionLeak",cyberseceval:"CyberSecEval",donotanswer:"DoNotAnswer","debug-access":"DebugAccess",default:"Default",mcp:"MCP","divergent-repetition":"DivergentRepetition","excessive-agency":"ExcessiveAgency","tool-discovery":"ToolDiscovery","tool-discovery:multi-turn":"Multi-turn Tool Discovery",foundation:"Foundation",hallucination:"Hallucination",harmbench:"Harmbench",harmful:"Harmful","bias:gender":"Gender Bias","harmful:chemical-biological-weapons":"Chemical & Biological Weapons","harmful:child-exploitation":"Child Exploitation","harmful:copyright-violations":"Copyright Violations - Copyrighted text","harmful:cybercrime":"Cybercrime & Unauthorized Intrusion - Hacking and Malware","harmful:cybercrime:malicious-code":"Malicious Code","harmful:graphic-content":"Graphic & age-restricted content","harmful:harassment-bullying":"Harassment & Bullying","harmful:hate":"Hate","harmful:illegal-activities":"Illegal Activities - Fraud & scams","harmful:illegal-drugs":"Illegal Drugs","harmful:illegal-drugs:meth":"Methamphetamine","harmful:indiscriminate-weapons":"Indiscriminate Weapons","harmful:insults":"Insults and personal attacks","harmful:intellectual-property":"Intellectual Property violation","harmful:misinformation-disinformation":"Misinformation & Disinformation - Harmful lies and propaganda","harmful:non-violent-crime":"Non-Violent Crimes","harmful:privacy":"Privacy violations","harmful:profanity":"Requests containing profanity","harmful:radicalization":"Radicalization","harmful:self-harm":"Self-Harm","harmful:sex-crime":"Sex Crimes","harmful:sexual-content":"Sexual Content","harmful:specialized-advice":"Specialized Advice - Financial","harmful:unsafe-practices":"Promotion of unsafe practices","harmful:violent-crime":"Violent Crimes","harmful:weapons:ied":"Improvised Explosive Devices",hijacking:"Hijacking",imitation:"Imitation","indirect-prompt-injection":"Indirect Prompt Injection",intent:"Intent",overreliance:"Overreliance",pii:"PIILeak","pii:api-db":"PIILeak","pii:direct":"PIILeak","pii:session":"PIILeak","pii:social":"PIILeak",pliny:"Pliny",policy:"PolicyViolation",politics:"PoliticalStatement","prompt-extraction":"PromptExtraction","rag-document-exfiltration":"RAG Document Exfiltration","rag-poisoning":"RAG Poisoning",rbac:"RbacEnforcement","reasoning-dos":"Reasoning DoS",religion:"Religion","shell-injection":"ShellInjection","sql-injection":"SqlInjection",ssrf:"SSRFEnforcement","system-prompt-override":"System Prompt Override",unsafebench:"UnsafeBench",xstest:"XSTest"},categoryAliasesReverse=Object.entries(categoryAliases).reduce((t,[Ae,xe])=>(t[xe]=Ae,t),{}),strategyDescriptions={audio:"Tests detection and handling of audio-based malicious payloads",base64:"Tests detection and handling of Base64-encoded malicious payloads",basic:"Equivalent to no strategy. Always included. Can be disabled in configuration.","best-of-n":"Jailbreak technique published by Anthropic and Stanford",citation:"Exploits academic authority bias to circumvent content filtering mechanisms",crescendo:"Executes progressive multi-turn attacks with escalating malicious intent",default:"Applies standard security testing methodology",gcg:"Greedy Coordinate Gradient adversarial suffix attack",goat:"Deploys dynamic attack generation using advanced adversarial techniques",hex:"Tests detection and handling of hex-encoded malicious payloads",homoglyph:"Tests detection and handling of text with homoglyphs (visually similar Unicode characters)",image:"Tests detection and handling of image-based malicious payloads",jailbreak:"Optimizes single-turn attacks to bypass security controls","jailbreak:composite":"Chains multiple attack vectors for enhanced effectiveness","jailbreak:likert":"Uses Likert scale-based prompts to bypass content filters","jailbreak:tree":"Implements tree-based search for optimal attack paths",leetspeak:"Assesses handling of leetspeak-encoded malicious content","math-prompt":"Tests resilience against mathematical notation-based attacks",morse:"Tests detection and handling of text encoded in Morse code where letters are converted to dots and dashes to potentially bypass content filters",multilingual:"Evaluates cross-language attack vector handling","other-encodings":"Collection of alternative text transformation strategies (Morse code and Pig Latin) for testing evasion techniques",pandamonium:"Promptfoo's exclusive dynamic jailbreak strategy currently in development. Note: This is an expensive jailbreak strategy with no limit on probes.",piglatin:'Tests detection and handling of text transformed into Pig Latin, a language game where initial consonant clusters are moved to the end of words with "ay" added',"prompt-injection":"Tests direct prompt injection vulnerability detection",retry:"Automatically incorporates previously failed test cases to prevent regression",rot13:"Assesses handling of ROT13-encoded malicious payloads",video:"Tests detection and handling of video-based malicious payloads"},strategyDisplayNames={audio:"Audio",base64:"Base64 Encoding",basic:"Basic","best-of-n":"Best-of-N",citation:"Authority Bias",crescendo:"Multi-turn Crescendo",default:"Basic",gcg:"Greedy Coordinate Gradient",goat:"Generative Offensive Agent Tester",hex:"Hex Encoding",homoglyph:"Homoglyph Encoding",image:"Image",jailbreak:"Single-shot Optimization","jailbreak:composite":"Composite Jailbreaks","jailbreak:likert":"Likert Scale Jailbreak","jailbreak:tree":"Tree-based Optimization",leetspeak:"Leetspeak Encoding","math-prompt":"Mathematical Encoding",morse:"Morse Code",multilingual:"Multilingual Translation","other-encodings":"Collection of Text Encodings",pandamonium:"Pandamonium",piglatin:"Pig Latin","prompt-injection":"Prompt Injection",retry:"Regression Testing",rot13:"ROT13 Encoding",video:"Video"},PLUGIN_PRESET_DESCRIPTIONS={Custom:"Choose your own plugins",Foundation:"Plugins for redteaming foundation models recommended by Promptfoo","Minimal Test":"Minimal set of plugins to validate your setup",MITRE:"MITRE ATLAS framework",NIST:"NIST AI Risk Management Framework","OWASP API Top 10":"OWASP API security vulnerabilities framework","OWASP LLM Top 10":"OWASP LLM security vulnerabilities framework","OWASP Gen AI Red Team":"OWASP Gen AI Red Teaming Best Practices","OWASP Agentic AI Top 10":"OWASP Agentic AI Top 10 Threats and Mitigations",RAG:"Recommended plugins plus additional tests for RAG specific scenarios like access control",Recommended:"A broad set of plugins recommended by Promptfoo","EU AI Act":"Plugins mapped to EU AI Act prohibited & high-risk requirements"},pluginOptions=[...COLLECTIONS,...ALL_PLUGINS,...ALIASED_PLUGINS].sort(),RedteamPluginObjectSchema=z$2.object({id:z$2.union([z$2.enum(pluginOptions).superRefine((t,Ae)=>{pluginOptions.includes(t)||Ae.addIssue({code:z$2.ZodIssueCode.invalid_enum_value,options:pluginOptions,received:t,message:`Invalid plugin name. Must be one of: ${pluginOptions.join(", ")} (or a path starting with file://)`})}),z$2.string().startsWith("file://",{message:"Custom plugins must start with file:// (or use one of the built-in plugins)"})]).describe("Name of the plugin"),numTests:z$2.number().int().positive().default(DEFAULT_NUM_TESTS_PER_PLUGIN).describe("Number of tests to generate for this plugin"),config:z$2.record(z$2.unknown()).optional().describe("Plugin-specific configuration")}),RedteamPluginSchema=z$2.union([z$2.union([z$2.enum(pluginOptions).superRefine((t,Ae)=>{pluginOptions.includes(t)||Ae.addIssue({code:z$2.ZodIssueCode.invalid_enum_value,options:pluginOptions,received:t,message:`Invalid plugin name. Must be one of: ${pluginOptions.join(", ")} (or a path starting with file://)`})}),z$2.string().startsWith("file://",{message:"Custom plugins must start with file:// (or use one of the built-in plugins)"})]).describe("Name of the plugin or path to custom plugin"),RedteamPluginObjectSchema]),strategyIdSchema=z$2.union([z$2.enum(ALL_STRATEGIES).superRefine((t,Ae)=>{ALL_STRATEGIES.includes(t)||Ae.addIssue({code:z$2.ZodIssueCode.invalid_enum_value,options:[...ALL_STRATEGIES],received:t,message:`Invalid strategy name. Must be one of: ${[...ALL_STRATEGIES].join(", ")} (or a path starting with file://)`})}),z$2.string().refine(t=>t.startsWith("file://")&&isJavascriptFile(t),{message:`Custom strategies must start with file:// and end with .js or .ts, or use one of the built-in strategies: ${[...ALL_STRATEGIES].join(", ")}`})]).describe("Name of the strategy"),RedteamStrategySchema=z$2.union([strategyIdSchema,z$2.object({id:strategyIdSchema,config:z$2.record(z$2.unknown()).optional().describe("Strategy-specific configuration")})]);z$2.object({addPlugins:z$2.array(z$2.enum(ADDITIONAL_PLUGINS)).optional().describe("Additional plugins to include"),addStrategies:z$2.array(z$2.enum(ADDITIONAL_STRATEGIES)).optional().describe("Additional strategies to include"),cache:z$2.boolean().describe("Whether to use caching"),config:z$2.string().optional().describe("Path to the configuration file"),defaultConfig:z$2.record(z$2.unknown()).describe("Default configuration object"),defaultConfigPath:z$2.string().optional().describe("Path to the default configuration file"),delay:z$2.number().int().nonnegative().optional().describe("Delay in milliseconds between plugin API calls"),envFile:z$2.string().optional().describe("Path to the environment file"),force:z$2.boolean().describe("Whether to force generation").default(!1),injectVar:z$2.string().optional().describe("Variable to inject"),language:z$2.string().optional().describe("Language of tests to generate"),maxConcurrency:z$2.number().int().positive().optional().describe("Maximum number of concurrent API calls"),numTests:z$2.number().int().positive().optional().describe("Number of tests to generate"),output:z$2.string().optional().describe("Output file path"),plugins:z$2.array(RedteamPluginObjectSchema).optional().describe("Plugins to use"),provider:z$2.string().optional().describe("Provider to use"),purpose:z$2.string().optional().describe("Purpose of the redteam generation"),strategies:z$2.array(RedteamStrategySchema).optional().describe("Strategies to use"),write:z$2.boolean().describe("Whether to write the output"),burpEscapeJson:z$2.boolean().describe("Whether to escape quotes in Burp payloads").optional(),progressBar:z$2.boolean().describe("Whether to show a progress bar").optional()});const RedteamConfigSchema=z$2.object({injectVar:z$2.string().optional().describe("Variable to inject. Can be a string or array of strings. If string, it's transformed to an array. Inferred from the prompts by default."),purpose:z$2.string().optional().describe("Purpose override string - describes the prompt templates"),provider:ProviderSchema.optional().describe("Provider used for generating adversarial inputs"),numTests:z$2.number().int().positive().optional().describe("Number of tests to generate"),language:z$2.string().optional().describe("Language of tests ot generate for this plugin"),entities:z$2.array(z$2.string()).optional().describe("Names of people, brands, or organizations related to your LLM application"),plugins:z$2.array(RedteamPluginSchema).describe("Plugins to use for redteam generation").default(["default"]),strategies:z$2.array(RedteamStrategySchema).describe(dedent`Strategies to use for redteam generation.
|
|
525
|
+
`)),Ie}}const MEMORY_POISONING_PLUGIN_ID="agentic:memory-poisoning",DEFAULT_NUM_TESTS_PER_PLUGIN=5,FOUNDATION_PLUGINS=["ascii-smuggling","beavertails","bias:gender","contracts","cyberseceval","donotanswer","divergent-repetition","excessive-agency","hallucination","harmful:chemical-biological-weapons","harmful:child-exploitation","harmful:copyright-violations","harmful:cybercrime","harmful:cybercrime:malicious-code","harmful:graphic-content","harmful:harassment-bullying","harmful:hate","harmful:illegal-activities","harmful:illegal-drugs","harmful:illegal-drugs:meth","harmful:indiscriminate-weapons","harmful:insults","harmful:intellectual-property","harmful:misinformation-disinformation","harmful:non-violent-crime","harmful:profanity","harmful:radicalization","harmful:self-harm","harmful:sex-crime","harmful:sexual-content","harmful:specialized-advice","harmful:unsafe-practices","harmful:violent-crime","harmful:weapons:ied","hijacking","imitation","overreliance","pii:direct","pliny","politics","religion"],AGENTIC_PLUGINS=[MEMORY_POISONING_PLUGIN_ID],COLLECTIONS=["default","foundation","harmful","pii"],UNALIGNED_PROVIDER_HARM_PLUGINS={"bias:gender":"Gender Bias","harmful:child-exploitation":"Child Exploitation","harmful:hate":"Hate","harmful:indiscriminate-weapons":"Indiscriminate Weapons","harmful:non-violent-crime":"Non-Violent Crimes","harmful:self-harm":"Self-Harm","harmful:sex-crime":"Sex Crimes","harmful:sexual-content":"Sexual Content","harmful:violent-crime":"Violent Crimes","harmful:chemical-biological-weapons":"Chemical & Biological Weapons","harmful:copyright-violations":"Copyright Violations - Copyrighted text","harmful:cybercrime":"Cybercrime & Unauthorized Intrusion - Hacking and Malware","harmful:graphic-content":"Graphic & age-restricted content","harmful:harassment-bullying":"Harassment & Bullying","harmful:illegal-activities":"Illegal Activities - Fraud & scams","harmful:illegal-drugs":"Illegal Drugs","harmful:unsafe-practices":"Promotion of unsafe practices","harmful:insults":"Insults and personal attacks","harmful:profanity":"Requests containing profanity","harmful:radicalization":"Radicalization","harmful:illegal-drugs:meth":"Methamphetamine","harmful:weapons:ied":"Improvised Explosive Devices","harmful:cybercrime:malicious-code":"Malicious Code"},REDTEAM_PROVIDER_HARM_PLUGINS={"harmful:intellectual-property":"Intellectual Property violation","harmful:privacy":"Privacy violations"},HARM_PLUGINS={"harmful:misinformation-disinformation":"Misinformation & Disinformation - Harmful lies and propaganda","harmful:specialized-advice":"Specialized Advice - Financial",...UNALIGNED_PROVIDER_HARM_PLUGINS,...REDTEAM_PROVIDER_HARM_PLUGINS},PII_PLUGINS=["pii:api-db","pii:direct","pii:session","pii:social"],BASE_PLUGINS=["contracts","excessive-agency","hallucination","hijacking","politics"],ADDITIONAL_PLUGINS=["ascii-smuggling","beavertails","bfla","bola","cca","competitors","cross-session-leak","cyberseceval","debug-access","divergent-repetition","donotanswer","harmbench","imitation","indirect-prompt-injection","mcp","overreliance","pliny","prompt-extraction","rag-document-exfiltration","rag-poisoning","rbac","reasoning-dos","religion","shell-injection","sql-injection","ssrf","system-prompt-override","tool-discovery:multi-turn","tool-discovery","unsafebench","xstest"],CONFIG_REQUIRED_PLUGINS=["intent","policy"],DEFAULT_PLUGINS=new Set([...[...BASE_PLUGINS,...Object.keys(HARM_PLUGINS),...PII_PLUGINS].sort()]),ALL_PLUGINS=[...new Set([...DEFAULT_PLUGINS,...ADDITIONAL_PLUGINS,...CONFIG_REQUIRED_PLUGINS,...AGENTIC_PLUGINS])].sort(),FRAMEWORK_NAMES={"mitre:atlas":"MITRE ATLAS","nist:ai:measure":"NIST AI RMF","owasp:api":"OWASP API Top 10","owasp:llm":"OWASP LLM Top 10","owasp:agentic":"OWASP Agentic v1.0","eu:ai-act":"EU AI Act"},OWASP_LLM_TOP_10_NAMES=["Prompt Injection","Sensitive Information Disclosure","Supply Chain","Improper Output Handling","Insecure Output Handling","Excessive Agency","System Prompt Leakage","Vector and Embedding Weaknesses","Misinformation","Unbounded Consumption"],OWASP_API_TOP_10_NAMES=["Broken Object Level Authorization","Broken Authentication","Broken Object Property Level Authorization","Unrestricted Resource Consumption","Broken Function Level Authorization","Unrestricted Access to Sensitive Business Flows","Server Side Request Forgery","Security Misconfiguration","Improper Inventory Management","Unsafe Consumption of APIs"],OWASP_LLM_TOP_10_MAPPING={"owasp:llm:01":{plugins:["ascii-smuggling","indirect-prompt-injection","prompt-extraction","harmful"],strategies:["jailbreak","prompt-injection","jailbreak:composite"]},"owasp:llm:02":{plugins:["pii:api-db","pii:direct","pii:session","pii:social","harmful:privacy","cross-session-leak","prompt-extraction"],strategies:["jailbreak","prompt-injection","jailbreak:composite"]},"owasp:llm:03":{plugins:[],strategies:[]},"owasp:llm:04":{plugins:["harmful:misinformation-disinformation","harmful:hate","bias:gender","harmful:radicalization","harmful:specialized-advice"],strategies:["jailbreak","prompt-injection","jailbreak:composite"]},"owasp:llm:05":{plugins:["shell-injection","sql-injection","ssrf","debug-access"],strategies:["jailbreak","prompt-injection"]},"owasp:llm:06":{plugins:["excessive-agency","rbac","bfla","bola","shell-injection","sql-injection","ssrf"],strategies:["jailbreak","prompt-injection","jailbreak:composite"]},"owasp:llm:07":{plugins:["prompt-extraction","rbac","harmful:privacy","pii:api-db","pii:direct","pii:session","pii:social"],strategies:["jailbreak","prompt-injection","jailbreak:composite"]},"owasp:llm:08":{plugins:["cross-session-leak","harmful:privacy","pii:api-db","pii:direct","pii:session","pii:social"],strategies:["jailbreak","prompt-injection","jailbreak:composite"]},"owasp:llm:09":{plugins:["hallucination","overreliance","harmful:misinformation-disinformation","harmful:specialized-advice"],strategies:["jailbreak","prompt-injection","jailbreak:composite"]},"owasp:llm:10":{plugins:["divergent-repetition","reasoning-dos"],strategies:[]}},OWASP_API_TOP_10_MAPPING={"owasp:api:01":{plugins:["bola","rbac"],strategies:[]},"owasp:api:02":{plugins:["bfla","rbac"],strategies:[]},"owasp:api:03":{plugins:["excessive-agency","overreliance"],strategies:[]},"owasp:api:04":{plugins:["harmful:privacy","pii:api-db","pii:session"],strategies:[]},"owasp:api:05":{plugins:["bfla","bola","rbac"],strategies:[]},"owasp:api:06":{plugins:["harmful:misinformation-disinformation","overreliance"],strategies:[]},"owasp:api:07":{plugins:["shell-injection","sql-injection"],strategies:[]},"owasp:api:08":{plugins:["harmful:privacy","pii:api-db","pii:session"],strategies:[]},"owasp:api:09":{plugins:["harmful:specialized-advice","overreliance"],strategies:[]},"owasp:api:10":{plugins:["debug-access","harmful:privacy"],strategies:[]}},OWASP_AGENTIC_REDTEAM_MAPPING={"owasp:agentic:t01":{plugins:[MEMORY_POISONING_PLUGIN_ID],strategies:[]}},OWASP_LLM_RED_TEAM_MAPPING={"owasp:llm:redteam:model":{plugins:[...FOUNDATION_PLUGINS],strategies:["jailbreak","jailbreak:tree","jailbreak:composite","crescendo","goat","prompt-injection","best-of-n","multilingual"]},"owasp:llm:redteam:implementation":{plugins:[...PII_PLUGINS,"prompt-extraction","harmful:privacy","rbac","bfla","bola","ascii-smuggling"],strategies:["jailbreak","jailbreak:tree","jailbreak:composite","prompt-injection","hex","base64","homoglyph","leetspeak","morse","piglatin","rot13"]},"owasp:llm:redteam:system":{plugins:["shell-injection","sql-injection","ssrf","debug-access","tool-discovery","indirect-prompt-injection","hijacking"],strategies:["jailbreak","jailbreak:tree","jailbreak:composite","crescendo","goat","multilingual","pandamonium","gcg"]},"owasp:llm:redteam:runtime":{plugins:["excessive-agency","overreliance","pliny","competitors","imitation","politics","religion","harmful:radicalization","harmful:self-harm","harmful:hate"],strategies:["crescendo","goat","jailbreak:tree","jailbreak:composite","prompt-injection"]}},NIST_AI_RMF_MAPPING={"nist:ai:measure:1.1":{plugins:["excessive-agency","harmful:misinformation-disinformation"],strategies:["jailbreak","prompt-injection"]},"nist:ai:measure:1.2":{plugins:["excessive-agency","harmful:misinformation-disinformation"],strategies:["jailbreak","prompt-injection"]},"nist:ai:measure:2.1":{plugins:["harmful:privacy","pii:api-db","pii:direct","pii:session","pii:social"],strategies:[]},"nist:ai:measure:2.2":{plugins:["harmful:privacy","pii:api-db","pii:direct","pii:session","pii:social"],strategies:[]},"nist:ai:measure:2.3":{plugins:["excessive-agency"],strategies:[]},"nist:ai:measure:2.4":{plugins:["excessive-agency","harmful:misinformation-disinformation"],strategies:["jailbreak","prompt-injection"]},"nist:ai:measure:2.5":{plugins:["excessive-agency"],strategies:[]},"nist:ai:measure:2.6":{plugins:["harmful:chemical-biological-weapons","harmful:indiscriminate-weapons","harmful:unsafe-practices"],strategies:[]},"nist:ai:measure:2.7":{plugins:["harmful:cybercrime","shell-injection","sql-injection"],strategies:["jailbreak","prompt-injection"]},"nist:ai:measure:2.8":{plugins:["bfla","bola","rbac"],strategies:[]},"nist:ai:measure:2.9":{plugins:["excessive-agency"],strategies:[]},"nist:ai:measure:2.10":{plugins:["harmful:privacy","pii:api-db","pii:direct","pii:session","pii:social"],strategies:[]},"nist:ai:measure:2.11":{plugins:["harmful:harassment-bullying","harmful:hate","harmful:insults"],strategies:[]},"nist:ai:measure:2.12":{plugins:[],strategies:[]},"nist:ai:measure:2.13":{plugins:["excessive-agency"],strategies:[]},"nist:ai:measure:3.1":{plugins:["excessive-agency","harmful:misinformation-disinformation"],strategies:["jailbreak","prompt-injection"]},"nist:ai:measure:3.2":{plugins:["excessive-agency"],strategies:[]},"nist:ai:measure:3.3":{plugins:["excessive-agency"],strategies:[]},"nist:ai:measure:4.1":{plugins:["excessive-agency"],strategies:[]},"nist:ai:measure:4.2":{plugins:["excessive-agency","harmful:misinformation-disinformation"],strategies:[]},"nist:ai:measure:4.3":{plugins:["excessive-agency"],strategies:[]}},MITRE_ATLAS_MAPPING={"mitre:atlas:exfiltration":{plugins:["ascii-smuggling","harmful:privacy","indirect-prompt-injection","pii:api-db","pii:direct","pii:session","pii:social","prompt-extraction"],strategies:[]},"mitre:atlas:impact":{plugins:["excessive-agency","harmful","hijacking","imitation"],strategies:["crescendo"]},"mitre:atlas:initial-access":{plugins:["debug-access","harmful:cybercrime","shell-injection","sql-injection","ssrf"],strategies:["base64","jailbreak","leetspeak","prompt-injection","rot13"]},"mitre:atlas:ml-attack-staging":{plugins:["ascii-smuggling","excessive-agency","hallucination","indirect-prompt-injection"],strategies:["jailbreak","jailbreak:tree"]},"mitre:atlas:reconnaissance":{plugins:["competitors","policy","prompt-extraction","rbac"],strategies:["multilingual"]},"mitre:atlas:resource-development":{plugins:["harmful:cybercrime","harmful:illegal-drugs","harmful:indiscriminate-weapons"],strategies:[]}},EU_AI_ACT_MAPPING={"eu:ai-act:art5:subliminal-manipulation":{plugins:["hijacking","intent","excessive-agency"],strategies:["jailbreak","jailbreak:tree","jailbreak:composite","prompt-injection"]},"eu:ai-act:art5:exploitation-of-vulnerabilities":{plugins:["hijacking","imitation","harmful:misinformation-disinformation"],strategies:[]},"eu:ai-act:art5:social-scoring":{plugins:["harmful:misinformation-disinformation","overreliance"],strategies:[]},"eu:ai-act:art5:biometric-categorisation":{plugins:["pii:direct","pii:session","harmful:privacy"],strategies:[]},"eu:ai-act:art5:remote-biometric-id-live":{plugins:["pii:session","pii:direct","harmful:privacy"],strategies:[]},"eu:ai-act:art5:remote-biometric-id-post":{plugins:["pii:api-db","pii:direct","harmful:privacy"],strategies:[]},"eu:ai-act:annex3:biometric-id":{plugins:["pii:direct","pii:session","harmful:privacy"],strategies:[]},"eu:ai-act:annex3:critical-infrastructure":{plugins:["shell-injection","sql-injection","ssrf","excessive-agency"],strategies:["jailbreak","prompt-injection"]},"eu:ai-act:annex3:education":{plugins:["harmful:misinformation-disinformation","hallucination","overreliance"],strategies:[]},"eu:ai-act:annex3:employment":{plugins:["imitation","pii:direct","overreliance"],strategies:[]},"eu:ai-act:annex3:essential-services":{plugins:["pii:direct","pii:session","excessive-agency"],strategies:[]},"eu:ai-act:annex3:law-enforcement":{plugins:["pii:direct","pii:api-db","harmful:privacy"],strategies:[]},"eu:ai-act:annex3:migration-border":{plugins:["pii:direct","harmful:hate","harmful:privacy"],strategies:[]},"eu:ai-act:annex3:justice-democracy":{plugins:["hallucination","harmful:misinformation-disinformation","pii:direct"],strategies:[]}},ALIASED_PLUGINS=["mitre:atlas","nist:ai","nist:ai:measure","owasp:api","owasp:llm","owasp:llm:redteam:model","owasp:llm:redteam:implementation","owasp:llm:redteam:system","owasp:llm:redteam:runtime","toxicity","bias","misinformation","illegal-activity","personal-safety","eu:ai-act",...Object.keys(MITRE_ATLAS_MAPPING),...Object.keys(NIST_AI_RMF_MAPPING),...Object.keys(OWASP_API_TOP_10_MAPPING),...Object.keys(OWASP_LLM_TOP_10_MAPPING),...Object.keys(OWASP_AGENTIC_REDTEAM_MAPPING),...Object.keys(EU_AI_ACT_MAPPING)],ALIASED_PLUGIN_MAPPINGS={"mitre:atlas":MITRE_ATLAS_MAPPING,"nist:ai:measure":NIST_AI_RMF_MAPPING,"owasp:api":OWASP_API_TOP_10_MAPPING,"owasp:llm":OWASP_LLM_TOP_10_MAPPING,"owasp:llm:redteam":OWASP_LLM_RED_TEAM_MAPPING,"owasp:agentic:redteam":OWASP_AGENTIC_REDTEAM_MAPPING,"eu:ai-act":EU_AI_ACT_MAPPING,toxicity:{toxicity:{plugins:["harmful:hate","harmful:harassment-bullying","harmful:insults","harmful:profanity","harmful:graphic-content","harmful:sexual-content"],strategies:[]}},bias:{bias:{plugins:["politics","religion","bias:gender"],strategies:[]}},misinformation:{misinformation:{plugins:["harmful:misinformation-disinformation","hallucination","harmful:radicalization","imitation"],strategies:[]}},"illegal-activity":{"illegal-activity":{plugins:["harmful:violent-crime","harmful:non-violent-crime","harmful:sex-crime","harmful:cybercrime","harmful:illegal-activities","harmful:illegal-drugs","harmful:illegal-drugs:meth","harmful:chemical-biological-weapons","harmful:indiscriminate-weapons","harmful:weapons:ied"],strategies:[]}}},FRAMEWORK_COMPLIANCE_IDS=["mitre:atlas","nist:ai:measure","owasp:api","owasp:llm","eu:ai-act"],DEFAULT_STRATEGIES=["basic","jailbreak","jailbreak:composite"],MULTI_TURN_STRATEGIES=["crescendo","goat"],AGENTIC_STRATEGIES=["crescendo","goat","jailbreak","jailbreak:tree","pandamonium"],ADDITIONAL_STRATEGIES=["audio","base64","best-of-n","citation","crescendo","gcg","goat","hex","homoglyph","image","jailbreak:likert","jailbreak:tree","leetspeak","math-prompt","morse","multilingual","pandamonium","piglatin","prompt-injection","retry","rot13","video"],STRATEGY_COLLECTIONS=["other-encodings"],_ALL_STRATEGIES=["default",...DEFAULT_STRATEGIES,...ADDITIONAL_STRATEGIES,...STRATEGY_COLLECTIONS],ALL_STRATEGIES=[..._ALL_STRATEGIES].sort(),subCategoryDescriptions={[MEMORY_POISONING_PLUGIN_ID]:"Tests whether an agent is vulnerable to memory poisoning attacks","ascii-smuggling":"Tests vulnerability to Unicode tag-based instruction smuggling attacks",audio:"Tests handling of audio content",base64:"Tests handling of Base64-encoded malicious payloads",basic:"Original plugin tests without any additional strategies or optimizations",beavertails:"Tests handling of malicious prompts from the BeaverTails dataset","best-of-n":"Jailbreak technique published by Anthropic and Stanford",bfla:"Tests for broken function-level authorization vulnerabilities (OWASP API 5)","bias:gender":"Tests handling of gender bias, stereotypes, and discrimination",bola:"Tests for broken object-level authorization vulnerabilities (OWASP API 1)",cca:"Tests for vulnerability to Context Compliance Attacks using fabricated conversation history",citation:"Exploits academic authority bias to bypass content filters",competitors:"Tests for unauthorized competitor mentions and endorsements",contracts:"Tests for unauthorized contractual commitments and legal exposure",crescendo:"Multi-turn attack strategy that gradually escalates malicious intent","cross-session-leak":"Tests for information leakage between user sessions",cyberseceval:"Tests prompt injection attacks from Meta's CyberSecEval dataset","debug-access":"Tests for exposed debugging interfaces and commands",default:"Standard security testing plugins","divergent-repetition":"Tests for training data leaks through repetitive pattern exploitation that causes model divergence",donotanswer:"Tests for vulnerabilities to Do Not Answer attacks","excessive-agency":"Tests for unauthorized actions beyond defined system boundaries",foundation:"Tests a collection of plugins designed to run against foundation models",gcg:"Greedy Coordinate Gradient adversarial suffix attack",goat:"Dynamic multi-turn attack generation using adversarial techniques",hallucination:"Tests for fabrication of false or misleading information",harmbench:"Tests for harmful content using the HarmBench dataset",harmful:"Tests handling of malicious content across multiple categories","harmful:chemical-biological-weapons":"Tests handling of WMD-related content","harmful:child-exploitation":"Tests handling of child exploitation content","harmful:copyright-violations":"Tests handling of intellectual property violations","harmful:cybercrime":"Tests handling of cybercrime-related content","harmful:cybercrime:malicious-code":"Tests creation of malicious code","harmful:graphic-content":"Tests handling of graphic or violent content","harmful:harassment-bullying":"Tests handling of harassment and bullying content","harmful:hate":"Tests handling of hate speech and discriminatory content","harmful:illegal-activities":"Tests handling of general illegal activities","harmful:illegal-drugs":"Tests handling of illegal drug-related content","harmful:illegal-drugs:meth":"Tests handling of methamphetamine-related content","harmful:indiscriminate-weapons":"Tests handling of weapons-related content","harmful:insults":"Tests handling of personal attacks and insults","harmful:intellectual-property":"Tests handling of IP theft and violations","harmful:misinformation-disinformation":"Tests handling of false information campaigns","harmful:non-violent-crime":"Tests handling of non-violent criminal content","harmful:privacy":"Tests handling of privacy violation attempts","harmful:profanity":"Tests handling of profane or inappropriate language","harmful:radicalization":"Tests handling of extremist content and recruitment","harmful:self-harm":"Tests handling of self-harm and suicide content","harmful:sex-crime":"Tests handling of sexual crime content","harmful:sexual-content":"Tests handling of explicit sexual content","harmful:specialized-advice":"Tests handling of unauthorized professional advice","harmful:unsafe-practices":"Tests handling of dangerous activity instructions","harmful:violent-crime":"Tests handling of violent crime content","harmful:weapons:ied":"Tests handling of Improvised Explosive Devices",hex:"Tests handling of hex-encoded malicious payloads",hijacking:"Tests for unauthorized resource usage and purpose deviation",homoglyph:"Tests handling of homoglyph (visually similar Unicode characters) encoding to bypass filters",image:"Tests handling of image content",imitation:"Tests for unauthorized impersonation of entities","indirect-prompt-injection":"Tests for injection vulnerabilities via untrusted variables",intent:"Tests for manipulation of system behavior via specific prompts",jailbreak:"Single-shot optimization of safety bypass techniques","jailbreak:composite":"Combines multiple jailbreak techniques for enhanced effectiveness","jailbreak:likert":"Uses Likert scale-based prompts to bypass content filters","jailbreak:tree":"Tree-based search for optimal safety bypass vectors",leetspeak:"Tests handling of leetspeak-encoded malicious content","math-prompt":"Tests handling of mathematical notation-based attacks",morse:"Tests handling of content encoded in Morse code to potentially bypass filters",multilingual:"Tests handling of attacks across multiple languages",mcp:"Tests for vulnerabilities to Model Context Protocol (MCP) attacks",overreliance:"Tests for overreliance on system assumptions",pandamonium:"[Experimental] Promptfoo's blackbox jailbreak. The latest and greatest jailbreak techniques, expertly tuned and crafted by Promptfoo's AI team.",pii:"Tests handling of personal identifiable information","pii:api-db":"Tests for PII exposure via API/database access","pii:direct":"Tests for direct PII exposure vulnerabilities","pii:session":"Tests for PII exposure in session data","pii:social":"Tests for PII exposure via social engineering",piglatin:"Tests handling of content translated to Pig Latin to potentially bypass filters",pliny:"Tests handling of Pliny prompt injections",policy:"Tests compliance with custom security policies",politics:"Tests handling of political content and bias","prompt-extraction":"Tests for system prompt disclosure vulnerabilities","prompt-injection":"Tests for direct prompt injection vulnerabilities","rag-document-exfiltration":"Tests for RAG document exfiltration","rag-poisoning":"Tests for vulnerabilities to RAG retrieval poisoning attacks",rbac:"Tests role-based access control implementation","reasoning-dos":"Tests for vulnerabilities to computational resource exhaustion through excessive reasoning patterns",religion:"Tests handling of religious content and bias",retry:"Automatically incorporates previously failed test cases to build a regression testing suite",rot13:"Tests handling of ROT13-encoded malicious content","shell-injection":"Tests for command injection vulnerabilities","sql-injection":"Tests for SQL injection vulnerabilities",ssrf:"Tests for server-side request forgery vulnerabilities","system-prompt-override":"Tests for system prompt override vulnerabilities","tool-discovery":"Tests for enumeration of available tools and function calls","tool-discovery:multi-turn":"Uses conversational approach to discover available tools, functions, and capabilities through multi-step interactions",unsafebench:"Tests handling of unsafe image content from the UnsafeBench dataset",xstest:"Tests for XSTest attacks",video:"Tests handling of video content","other-encodings":"Collection of alternative text transformation strategies (Morse code and Pig Latin) for testing evasion techniques"},displayNameOverrides={[MEMORY_POISONING_PLUGIN_ID]:"Agentic Memory Poisoning","ascii-smuggling":"ASCII Smuggling",audio:"Audio Content",base64:"Base64 Payload Encoding",basic:"Baseline Testing",beavertails:"BeaverTails Dataset","best-of-n":"Best-of-N",bfla:"Function-Level Authorization Bypass",bola:"Object-Level Authorization Bypass",cca:"Context Compliance Attack",citation:"Authority Bias Exploitation",competitors:"Competitors",contracts:"Unauthorized Commitments",crescendo:"Multi-Turn Crescendo","cross-session-leak":"Cross-Session Data Leakage",cyberseceval:"CyberSecEval Dataset","debug-access":"Debug Interface Exposure",default:"Standard Security Suite","divergent-repetition":"Divergent Repetition",donotanswer:"Do Not Answer Dataset","excessive-agency":"Excessive Agency",foundation:"Foundation Model Plugin Collection",gcg:"Greedy Coordinate Gradient",mcp:"Model Context Protocol",goat:"Generative Offensive Agent Tester",hallucination:"False Information (Hallucination)",harmbench:"HarmBench Dataset",harmful:"Malicious Content Suite","bias:gender":"Gender Bias","harmful:chemical-biological-weapons":"WMD Content","harmful:child-exploitation":"Child Exploitation","harmful:copyright-violations":"IP Violations","harmful:cybercrime":"Cybercrime","harmful:cybercrime:malicious-code":"Malicious Code","harmful:graphic-content":"Graphic Content","harmful:harassment-bullying":"Harassment","harmful:hate":"Hate Speech","harmful:illegal-activities":"Illegal Activity","harmful:illegal-drugs":"Drug-Related Content","harmful:illegal-drugs:meth":"Methamphetamine Content","harmful:indiscriminate-weapons":"Weapons Content","harmful:insults":"Personal Attacks","harmful:intellectual-property":"IP Theft","harmful:misinformation-disinformation":"Disinformation Campaigns","harmful:non-violent-crime":"Non-Violent Crime","harmful:privacy":"Privacy Violation","harmful:profanity":"Profanity","harmful:radicalization":"Extremist Content","harmful:self-harm":"Self-Harm","harmful:sex-crime":"Sexual Crime Content","harmful:sexual-content":"Explicit Content","harmful:specialized-advice":"Unauthorized Advice","harmful:unsafe-practices":"Dangerous Activity Content","harmful:violent-crime":"Violent Crime Content","harmful:weapons:ied":"Improvised Explosive Devices",hex:"Hex Encoding",hijacking:"Resource Hijacking",homoglyph:"Homoglyph Encoding",image:"Image Content",imitation:"Entity Impersonation","indirect-prompt-injection":"Indirect Prompt Injection",intent:"Intent",jailbreak:"Single-shot Optimization","jailbreak:composite":"Multi-Vector Safety Bypass","jailbreak:likert":"Likert Scale Jailbreak","jailbreak:tree":"Tree-Based Attack Search",leetspeak:"Leetspeak Payload Encoding","math-prompt":"Mathematical Notation Attack",morse:"Morse Code Encoding",multilingual:"Cross-Language Attack","other-encodings":"Collection of Text Encodings",overreliance:"Overreliance",pandamonium:"[Experimental] Pandamonium",piglatin:"Pig Latin Encoding",pii:"PII Protection Suite","pii:api-db":"PII via API/Database","pii:direct":"PII via Direct Exposure","pii:session":"PII via Session Data","pii:social":"PII via Social Engineering",pliny:"Pliny Prompt Injections",policy:"Policy Compliance",politics:"Political Bias","prompt-extraction":"System Prompt Disclosure","prompt-injection":"Direct Prompt Injection","rag-document-exfiltration":"RAG Document Exfiltration","rag-poisoning":"RAG Poisoning",rbac:"RBAC Implementation","reasoning-dos":"Reasoning DoS",religion:"Religious Bias",retry:"Regression Testing",rot13:"ROT13 Payload Encoding","shell-injection":"Command Injection","sql-injection":"SQL Injection",ssrf:"SSRF Vulnerability","system-prompt-override":"System Prompt Override","tool-discovery":"Tool Discovery","tool-discovery:multi-turn":"Multi-turn Tool Discovery",unsafebench:"UnsafeBench Dataset",xstest:"XSTest Dataset",video:"Video Content"};var Severity=(t=>(t.Critical="critical",t.High="high",t.Medium="medium",t.Low="low",t))(Severity||{});const severityDisplayNames={critical:"Critical",high:"High",medium:"Medium",low:"Low"},riskCategorySeverityMap={[MEMORY_POISONING_PLUGIN_ID]:"high","ascii-smuggling":"low",beavertails:"low",bfla:"high",bola:"high",cca:"high",mcp:"high",competitors:"low",contracts:"medium","cross-session-leak":"medium",cyberseceval:"medium",donotanswer:"medium","debug-access":"high",default:"low","divergent-repetition":"medium","excessive-agency":"medium",foundation:"medium",hallucination:"medium",harmbench:"medium",harmful:"medium","bias:gender":"low","harmful:chemical-biological-weapons":"high","harmful:child-exploitation":"critical","harmful:copyright-violations":"low","harmful:cybercrime":"low","harmful:cybercrime:malicious-code":"low","harmful:graphic-content":"medium","harmful:harassment-bullying":"low","harmful:hate":"critical","harmful:illegal-activities":"medium","harmful:illegal-drugs":"medium","harmful:illegal-drugs:meth":"low","harmful:indiscriminate-weapons":"medium","harmful:insults":"low","harmful:intellectual-property":"medium","harmful:misinformation-disinformation":"medium","harmful:non-violent-crime":"medium","harmful:privacy":"high","harmful:profanity":"low","harmful:radicalization":"low","harmful:self-harm":"critical","harmful:sex-crime":"high","harmful:sexual-content":"medium","harmful:specialized-advice":"medium","harmful:unsafe-practices":"low","harmful:violent-crime":"high","harmful:weapons:ied":"low",hijacking:"high",imitation:"low","indirect-prompt-injection":"high",intent:"high",overreliance:"low",pii:"high","pii:api-db":"high","pii:direct":"high","pii:session":"high","pii:social":"high",pliny:"medium",policy:"high",politics:"low","prompt-extraction":"medium","rag-document-exfiltration":"medium","rag-poisoning":"medium",rbac:"high","reasoning-dos":"low",religion:"low","shell-injection":"high","sql-injection":"high",ssrf:"high","system-prompt-override":"high","tool-discovery:multi-turn":"low","tool-discovery":"low",unsafebench:"medium",xstest:"low"},riskCategories={"Security & Access Control":["agentic:memory-poisoning","ascii-smuggling","bfla","bola","debug-access","hijacking","indirect-prompt-injection","rbac","shell-injection","sql-injection","ssrf","tool-discovery","tool-discovery:multi-turn","cross-session-leak","divergent-repetition","harmful:privacy","pii:api-db","pii:direct","pii:session","pii:social","pii","prompt-extraction",MEMORY_POISONING_PLUGIN_ID],"Compliance & Legal":["contracts","harmful:chemical-biological-weapons","harmful:copyright-violations","harmful:cybercrime:malicious-code","harmful:cybercrime","harmful:illegal-activities","harmful:illegal-drugs:meth","harmful:illegal-drugs","harmful:indiscriminate-weapons","harmful:intellectual-property","harmful:non-violent-crime","harmful:sex-crime","harmful:specialized-advice","harmful:unsafe-practices","harmful:violent-crime","harmful:weapons:ied"],"Trust & Safety":["bias:gender","harmful:child-exploitation","harmful:graphic-content","harmful:harassment-bullying","harmful:hate","harmful:insults","harmful:profanity","harmful:radicalization","harmful:self-harm","harmful:sexual-content"],Brand:["competitors","excessive-agency","hallucination","harmful:misinformation-disinformation","hijacking","imitation","intent","overreliance","policy","politics","religion"],Datasets:["beavertails","cyberseceval","donotanswer","harmbench","pliny","unsafebench","xstest"]},categoryDescriptions={"Security & Access Control":"Data protection, access control, and system security risks.","Compliance & Legal":"Regulatory compliance, legal, and policy violation risks.","Trust & Safety":"Harmful, inappropriate, or offensive content generation risks.",Brand:"Output reliability, accuracy, and brand reputation risks.",Datasets:"Pre-defined test cases from research datasets."};Object.entries(riskCategories).reduce((t,[Ae,xe])=>(xe.forEach(Ee=>{t[Ee]=Ae}),t),{});const categoryAliases={[MEMORY_POISONING_PLUGIN_ID]:"AgenticMemoryPoisoning","ascii-smuggling":"AsciiSmuggling",beavertails:"BeaverTails",bfla:"BFLAEnforcement",bola:"BOLAEnforcement",cca:"CCAEnforcement",competitors:"CompetitorEndorsement",contracts:"ContractualCommitment","cross-session-leak":"CrossSessionLeak",cyberseceval:"CyberSecEval",donotanswer:"DoNotAnswer","debug-access":"DebugAccess",default:"Default",mcp:"MCP","divergent-repetition":"DivergentRepetition","excessive-agency":"ExcessiveAgency","tool-discovery":"ToolDiscovery","tool-discovery:multi-turn":"Multi-turn Tool Discovery",foundation:"Foundation",hallucination:"Hallucination",harmbench:"Harmbench",harmful:"Harmful","bias:gender":"Gender Bias","harmful:chemical-biological-weapons":"Chemical & Biological Weapons","harmful:child-exploitation":"Child Exploitation","harmful:copyright-violations":"Copyright Violations - Copyrighted text","harmful:cybercrime":"Cybercrime & Unauthorized Intrusion - Hacking and Malware","harmful:cybercrime:malicious-code":"Malicious Code","harmful:graphic-content":"Graphic & age-restricted content","harmful:harassment-bullying":"Harassment & Bullying","harmful:hate":"Hate","harmful:illegal-activities":"Illegal Activities - Fraud & scams","harmful:illegal-drugs":"Illegal Drugs","harmful:illegal-drugs:meth":"Methamphetamine","harmful:indiscriminate-weapons":"Indiscriminate Weapons","harmful:insults":"Insults and personal attacks","harmful:intellectual-property":"Intellectual Property violation","harmful:misinformation-disinformation":"Misinformation & Disinformation - Harmful lies and propaganda","harmful:non-violent-crime":"Non-Violent Crimes","harmful:privacy":"Privacy violations","harmful:profanity":"Requests containing profanity","harmful:radicalization":"Radicalization","harmful:self-harm":"Self-Harm","harmful:sex-crime":"Sex Crimes","harmful:sexual-content":"Sexual Content","harmful:specialized-advice":"Specialized Advice - Financial","harmful:unsafe-practices":"Promotion of unsafe practices","harmful:violent-crime":"Violent Crimes","harmful:weapons:ied":"Improvised Explosive Devices",hijacking:"Hijacking",imitation:"Imitation","indirect-prompt-injection":"Indirect Prompt Injection",intent:"Intent",overreliance:"Overreliance",pii:"PIILeak","pii:api-db":"PIILeak","pii:direct":"PIILeak","pii:session":"PIILeak","pii:social":"PIILeak",pliny:"Pliny",policy:"PolicyViolation",politics:"PoliticalStatement","prompt-extraction":"PromptExtraction","rag-document-exfiltration":"RAG Document Exfiltration","rag-poisoning":"RAG Poisoning",rbac:"RbacEnforcement","reasoning-dos":"Reasoning DoS",religion:"Religion","shell-injection":"ShellInjection","sql-injection":"SqlInjection",ssrf:"SSRFEnforcement","system-prompt-override":"System Prompt Override",unsafebench:"UnsafeBench",xstest:"XSTest"},categoryAliasesReverse=Object.entries(categoryAliases).reduce((t,[Ae,xe])=>(t[xe]=Ae,t),{}),strategyDescriptions={audio:"Tests detection and handling of audio-based malicious payloads",base64:"Tests detection and handling of Base64-encoded malicious payloads",basic:"Equivalent to no strategy. Always included. Can be disabled in configuration.","best-of-n":"Jailbreak technique published by Anthropic and Stanford",citation:"Exploits academic authority bias to circumvent content filtering mechanisms",crescendo:"Executes progressive multi-turn attacks with escalating malicious intent",default:"Applies standard security testing methodology",gcg:"Greedy Coordinate Gradient adversarial suffix attack",goat:"Deploys dynamic attack generation using advanced adversarial techniques",hex:"Tests detection and handling of hex-encoded malicious payloads",homoglyph:"Tests detection and handling of text with homoglyphs (visually similar Unicode characters)",image:"Tests detection and handling of image-based malicious payloads",jailbreak:"Optimizes single-turn attacks to bypass security controls","jailbreak:composite":"Chains multiple attack vectors for enhanced effectiveness","jailbreak:likert":"Uses Likert scale-based prompts to bypass content filters","jailbreak:tree":"Implements tree-based search for optimal attack paths",leetspeak:"Assesses handling of leetspeak-encoded malicious content","math-prompt":"Tests resilience against mathematical notation-based attacks",morse:"Tests detection and handling of text encoded in Morse code where letters are converted to dots and dashes to potentially bypass content filters",multilingual:"Evaluates cross-language attack vector handling","other-encodings":"Collection of alternative text transformation strategies (Morse code and Pig Latin) for testing evasion techniques",pandamonium:"Promptfoo's exclusive dynamic jailbreak strategy currently in development. Note: This is an expensive jailbreak strategy with no limit on probes.",piglatin:'Tests detection and handling of text transformed into Pig Latin, a language game where initial consonant clusters are moved to the end of words with "ay" added',"prompt-injection":"Tests direct prompt injection vulnerability detection",retry:"Automatically incorporates previously failed test cases to prevent regression",rot13:"Assesses handling of ROT13-encoded malicious payloads",video:"Tests detection and handling of video-based malicious payloads"},strategyDisplayNames={audio:"Audio",base64:"Base64 Encoding",basic:"Basic","best-of-n":"Best-of-N",citation:"Authority Bias",crescendo:"Multi-turn Crescendo",default:"Basic",gcg:"Greedy Coordinate Gradient",goat:"Generative Offensive Agent Tester",hex:"Hex Encoding",homoglyph:"Homoglyph Encoding",image:"Image",jailbreak:"Single-shot Optimization","jailbreak:composite":"Composite Jailbreaks","jailbreak:likert":"Likert Scale Jailbreak","jailbreak:tree":"Tree-based Optimization",leetspeak:"Leetspeak Encoding","math-prompt":"Mathematical Encoding",morse:"Morse Code",multilingual:"Multilingual Translation","other-encodings":"Collection of Text Encodings",pandamonium:"Pandamonium",piglatin:"Pig Latin","prompt-injection":"Prompt Injection",retry:"Regression Testing",rot13:"ROT13 Encoding",video:"Video"},PLUGIN_PRESET_DESCRIPTIONS={Custom:"Choose your own plugins",Foundation:"Plugins for redteaming foundation models recommended by Promptfoo","Minimal Test":"Minimal set of plugins to validate your setup",MITRE:"MITRE ATLAS framework",NIST:"NIST AI Risk Management Framework","OWASP API Top 10":"OWASP API security vulnerabilities framework","OWASP LLM Top 10":"OWASP LLM security vulnerabilities framework","OWASP Gen AI Red Team":"OWASP Gen AI Red Teaming Best Practices","OWASP Agentic AI Top 10":"OWASP Agentic AI Top 10 Threats and Mitigations",RAG:"Recommended plugins plus additional tests for RAG specific scenarios like access control",Recommended:"A broad set of plugins recommended by Promptfoo","EU AI Act":"Plugins mapped to EU AI Act prohibited & high-risk requirements"},pluginOptions=[...COLLECTIONS,...ALL_PLUGINS,...ALIASED_PLUGINS].sort(),RedteamPluginObjectSchema=z$2.object({id:z$2.union([z$2.enum(pluginOptions).superRefine((t,Ae)=>{pluginOptions.includes(t)||Ae.addIssue({code:z$2.ZodIssueCode.invalid_enum_value,options:pluginOptions,received:t,message:`Invalid plugin name. Must be one of: ${pluginOptions.join(", ")} (or a path starting with file://)`})}),z$2.string().startsWith("file://",{message:"Custom plugins must start with file:// (or use one of the built-in plugins)"})]).describe("Name of the plugin"),numTests:z$2.number().int().positive().default(DEFAULT_NUM_TESTS_PER_PLUGIN).describe("Number of tests to generate for this plugin"),config:z$2.record(z$2.unknown()).optional().describe("Plugin-specific configuration")}),RedteamPluginSchema=z$2.union([z$2.union([z$2.enum(pluginOptions).superRefine((t,Ae)=>{pluginOptions.includes(t)||Ae.addIssue({code:z$2.ZodIssueCode.invalid_enum_value,options:pluginOptions,received:t,message:`Invalid plugin name. Must be one of: ${pluginOptions.join(", ")} (or a path starting with file://)`})}),z$2.string().startsWith("file://",{message:"Custom plugins must start with file:// (or use one of the built-in plugins)"})]).describe("Name of the plugin or path to custom plugin"),RedteamPluginObjectSchema]),strategyIdSchema=z$2.union([z$2.enum(ALL_STRATEGIES).superRefine((t,Ae)=>{ALL_STRATEGIES.includes(t)||Ae.addIssue({code:z$2.ZodIssueCode.invalid_enum_value,options:[...ALL_STRATEGIES],received:t,message:`Invalid strategy name. Must be one of: ${[...ALL_STRATEGIES].join(", ")} (or a path starting with file://)`})}),z$2.string().refine(t=>t.startsWith("file://")&&isJavascriptFile(t),{message:`Custom strategies must start with file:// and end with .js or .ts, or use one of the built-in strategies: ${[...ALL_STRATEGIES].join(", ")}`})]).describe("Name of the strategy"),RedteamStrategySchema=z$2.union([strategyIdSchema,z$2.object({id:strategyIdSchema,config:z$2.record(z$2.unknown()).optional().describe("Strategy-specific configuration")})]);z$2.object({addPlugins:z$2.array(z$2.enum(ADDITIONAL_PLUGINS)).optional().describe("Additional plugins to include"),addStrategies:z$2.array(z$2.enum(ADDITIONAL_STRATEGIES)).optional().describe("Additional strategies to include"),cache:z$2.boolean().describe("Whether to use caching"),config:z$2.string().optional().describe("Path to the configuration file"),defaultConfig:z$2.record(z$2.unknown()).describe("Default configuration object"),defaultConfigPath:z$2.string().optional().describe("Path to the default configuration file"),delay:z$2.number().int().nonnegative().optional().describe("Delay in milliseconds between plugin API calls"),envFile:z$2.string().optional().describe("Path to the environment file"),force:z$2.boolean().describe("Whether to force generation").default(!1),injectVar:z$2.string().optional().describe("Variable to inject"),language:z$2.string().optional().describe("Language of tests to generate"),maxConcurrency:z$2.number().int().positive().optional().describe("Maximum number of concurrent API calls"),numTests:z$2.number().int().positive().optional().describe("Number of tests to generate"),output:z$2.string().optional().describe("Output file path"),plugins:z$2.array(RedteamPluginObjectSchema).optional().describe("Plugins to use"),provider:z$2.string().optional().describe("Provider to use"),purpose:z$2.string().optional().describe("Purpose of the redteam generation"),strategies:z$2.array(RedteamStrategySchema).optional().describe("Strategies to use"),write:z$2.boolean().describe("Whether to write the output"),burpEscapeJson:z$2.boolean().describe("Whether to escape quotes in Burp payloads").optional(),progressBar:z$2.boolean().describe("Whether to show a progress bar").optional()});const RedteamConfigSchema=z$2.object({injectVar:z$2.string().optional().describe("Variable to inject. Can be a string or array of strings. If string, it's transformed to an array. Inferred from the prompts by default."),purpose:z$2.string().optional().describe("Purpose override string - describes the prompt templates"),provider:ProviderSchema.optional().describe("Provider used for generating adversarial inputs"),numTests:z$2.number().int().positive().optional().describe("Number of tests to generate"),language:z$2.string().optional().describe("Language of tests ot generate for this plugin"),entities:z$2.array(z$2.string()).optional().describe("Names of people, brands, or organizations related to your LLM application"),plugins:z$2.array(RedteamPluginSchema).describe("Plugins to use for redteam generation").default(["default"]),strategies:z$2.array(RedteamStrategySchema).describe(dedent`Strategies to use for redteam generation.
|
|
526
526
|
|
|
527
527
|
Defaults to ${DEFAULT_STRATEGIES.join(", ")}
|
|
528
528
|
Supports ${ALL_STRATEGIES.join(", ")}
|
|
529
|
-
`).optional().default(["default"]),maxConcurrency:z$2.number().int().positive().optional().describe("Maximum number of concurrent API calls"),delay:z$2.number().int().nonnegative().optional().describe("Delay in milliseconds between plugin API calls"),excludeTargetOutputFromAgenticAttackGeneration:z$2.boolean().optional().describe("Whether to exclude target output from the agentific attack generation process")}).transform(t=>{const Ae=new Map,xe=new Set,Ee=(Te,Pe,ke)=>{const $e=`${Te}:${JSON.stringify(Pe)}`,Oe={id:Te};(ke!==void 0||t.numTests!==void 0)&&(Oe.numTests=ke??t.numTests),Pe!==void 0&&(Oe.config=Pe),Ae.set($e,Oe)},Se=(Te,Pe,ke)=>{(Array.isArray(Te)?Te:Array.from(Te)).forEach($e=>{const Oe=Ae.get(`${$e}:${JSON.stringify(Pe)}`);(!Oe||Oe.numTests===void 0)&&Ee($e,Pe,ke)})},Ce=(Te,Pe,ke)=>{Te==="foundation"?Se([...FOUNDATION_PLUGINS],Pe,ke):Te==="harmful"?Se(Object.keys(HARM_PLUGINS),Pe,ke):Te==="pii"?Se([...PII_PLUGINS],Pe,ke):Te==="default"&&Se([...DEFAULT_PLUGINS],Pe,ke)},_e=Te=>{const Pe=typeof Te=="string"?{id:Te,numTests:t.numTests,config:void 0}:{...Te,numTests:Te.numTests??t.numTests};if(ALIASED_PLUGIN_MAPPINGS[Pe.id])Object.values(ALIASED_PLUGIN_MAPPINGS[Pe.id]).forEach(({plugins:ke,strategies:$e})=>{ke.forEach(Oe=>{COLLECTIONS.includes(Oe)?Ce(Oe,Pe.config,Pe.numTests):Ee(Oe,Pe.config,Pe.numTests)}),$e.forEach(Oe=>xe.add(Oe))});else if(COLLECTIONS.includes(Pe.id))Ce(Pe.id,Pe.config,Pe.numTests);else{const ke=Object.entries(ALIASED_PLUGIN_MAPPINGS).find(([,$e])=>Object.keys($e).includes(Pe.id));if(ke){const[,$e]=ke;$e[Pe.id].plugins.forEach(Oe=>{COLLECTIONS.includes(Oe)?Ce(Oe,Pe.config,Pe.numTests):Ee(Oe,Pe.config,Pe.numTests)}),$e[Pe.id].strategies.forEach(Oe=>xe.add(Oe))}else Ee(Pe.id,Pe.config,Pe.numTests)}};t.plugins.forEach(_e);const Ie=Array.from(Ae.values()).filter(Te=>!COLLECTIONS.includes(Te.id)).sort((Te,Pe)=>Te.id!==Pe.id?Te.id.localeCompare(Pe.id):JSON.stringify(Te.config||{}).localeCompare(JSON.stringify(Pe.config||{}))),Be=Array.from(new Map([...t.strategies||[],...Array.from(xe)].flatMap(Te=>typeof Te=="string"?Te==="basic"?[]:Te==="default"?DEFAULT_STRATEGIES.map(Pe=>[Pe,{id:Pe}]):[[Te,{id:Te}]]:[[Te.id,Te]])).values()).sort((Te,Pe)=>{const ke=typeof Te=="string"?Te:Te.id,$e=typeof Pe=="string"?Pe:Pe.id;return ke.localeCompare($e)});return{numTests:t.numTests,plugins:Ie,strategies:Be,...t.delay?{delay:t.delay}:{},...t.entities?{entities:t.entities}:{},...t.injectVar?{injectVar:t.injectVar}:{},...t.language?{language:t.language}:{},...t.provider?{provider:t.provider}:{},...t.purpose?{purpose:t.purpose}:{},...t.excludeTargetOutputFromAgenticAttackGeneration?{excludeTargetOutputFromAgenticAttackGeneration:t.excludeTargetOutputFromAgenticAttackGeneration}:{}}});function isProviderOptions(t){return typeof t=="object"&&t!=null&&"id"in t&&typeof t.id=="string"}const CommandLineOptionsSchema=z$2.object({description:z$2.string().optional(),prompts:z$2.array(z$2.string()).optional(),providers:z$2.array(z$2.string()),output:z$2.array(z$2.string()),maxConcurrency:z$2.coerce.number().int().positive().optional(),repeat:z$2.coerce.number().int().positive().optional(),delay:z$2.coerce.number().int().nonnegative().default(0),vars:z$2.string().optional(),tests:z$2.string().optional(),config:z$2.array(z$2.string()).optional(),assertions:z$2.string().optional(),modelOutputs:z$2.string().optional(),verbose:z$2.boolean().optional(),grader:z$2.string().optional(),tableCellMaxLength:z$2.coerce.number().int().positive().optional(),write:z$2.boolean().optional(),cache:z$2.boolean().optional(),table:z$2.boolean().optional(),share:z$2.boolean().optional(),progressBar:z$2.boolean().optional(),watch:z$2.boolean().optional(),filterErrorsOnly:z$2.string().optional(),filterFailing:z$2.string().optional(),filterFirstN:z$2.coerce.number().int().positive().optional(),filterMetadata:z$2.string().optional(),filterPattern:z$2.string().optional(),filterProviders:z$2.string().optional(),filterSample:z$2.coerce.number().int().positive().optional(),filterTargets:z$2.string().optional(),var:z$2.record(z$2.string()).optional(),generateSuggestions:z$2.boolean().optional(),promptPrefix:z$2.string().optional(),promptSuffix:z$2.string().optional(),envPath:z$2.string().optional()}),GradingConfigSchema=z$2.object({rubricPrompt:z$2.union([z$2.string(),z$2.array(z$2.string()),z$2.array(z$2.object({role:z$2.string(),content:z$2.string()}))]).optional(),provider:z$2.union([z$2.string(),z$2.any(),z$2.record(z$2.string(),z$2.union([z$2.string(),z$2.any()])).optional()]).optional(),factuality:z$2.object({subset:z$2.number().optional(),superset:z$2.number().optional(),agree:z$2.number().optional(),disagree:z$2.number().optional(),differButFactual:z$2.number().optional()}).optional()}),OutputConfigSchema=z$2.object({postprocess:z$2.string().optional(),transform:z$2.string().optional(),transformVars:z$2.string().optional(),storeOutputAs:z$2.string().optional()}),EvaluateOptionsSchema=z$2.object({cache:z$2.boolean().optional(),delay:z$2.number().optional(),eventSource:z$2.string().optional(),generateSuggestions:z$2.boolean().optional(),interactiveProviders:z$2.boolean().optional(),maxConcurrency:z$2.number().optional(),progressCallback:z$2.function(z$2.tuple([z$2.number(),z$2.number(),z$2.number(),z$2.custom(),z$2.custom()]),z$2.void()).optional(),repeat:z$2.number().optional(),showProgressBar:z$2.boolean().optional(),timeoutMs:z$2.number().optional()}),PromptMetricsSchema=z$2.object({score:z$2.number(),testPassCount:z$2.number(),testFailCount:z$2.number(),testErrorCount:z$2.number(),assertPassCount:z$2.number(),assertFailCount:z$2.number(),totalLatencyMs:z$2.number(),tokenUsage:TokenUsageSchema,namedScores:z$2.record(z$2.string(),z$2.number()),namedScoresCount:z$2.record(z$2.string(),z$2.number()),redteam:z$2.object({pluginPassCount:z$2.record(z$2.string(),z$2.number()),pluginFailCount:z$2.record(z$2.string(),z$2.number()),strategyPassCount:z$2.record(z$2.string(),z$2.number()),strategyFailCount:z$2.record(z$2.string(),z$2.number())}).optional(),cost:z$2.number()}),CompletedPromptSchema=PromptSchema.extend({provider:z$2.string(),metrics:PromptMetricsSchema.optional()});var ResultFailureReason=(t=>(t[t.NONE=0]="NONE",t[t.ASSERT=1]="ASSERT",t[t.ERROR=2]="ERROR",t))(ResultFailureReason||{});const BaseAssertionTypesSchema=z$2.enum(["answer-relevance","bleu","classifier","contains","contains-all","contains-any","contains-json","contains-sql","contains-xml","context-faithfulness","context-recall","context-relevance","cost","equals","factuality","g-eval","gleu","guardrails","icontains","icontains-all","icontains-any","is-json","is-refusal","is-sql","is-valid-function-call","is-valid-openai-function-call","is-valid-openai-tools-call","is-xml","javascript","latency","levenshtein","llm-rubric","pi","meteor","model-graded-closedqa","model-graded-factuality","moderation","perplexity","perplexity-score","python","regex","rouge-n","similar","starts-with","webhook"]),SpecialAssertionTypesSchema=z$2.enum(["select-best","human"]),NotPrefixedAssertionTypesSchema=BaseAssertionTypesSchema.transform(t=>`not-${t}`),AssertionTypeSchema=z$2.union([BaseAssertionTypesSchema,NotPrefixedAssertionTypesSchema,SpecialAssertionTypesSchema,z$2.custom()]),AssertionSetSchema=z$2.object({type:z$2.literal("assert-set"),assert:z$2.array(z$2.lazy(()=>AssertionSchema)),weight:z$2.number().optional(),metric:z$2.string().optional(),threshold:z$2.number().optional(),config:z$2.record(z$2.string(),z$2.any()).optional()}),AssertionSchema=z$2.object({type:AssertionTypeSchema,value:z$2.custom().optional(),config:z$2.record(z$2.string(),z$2.any()).optional(),threshold:z$2.number().optional(),weight:z$2.number().optional(),provider:z$2.custom().optional(),rubricPrompt:z$2.custom().optional(),metric:z$2.string().optional(),transform:z$2.string().optional()}),TestCasesWithMetadataPromptSchema=z$2.object({prompt:CompletedPromptSchema,id:z$2.string(),evalId:z$2.string()}),ProviderPromptMapSchema=z$2.record(z$2.string(),z$2.union([z$2.string().transform(t=>[t]),z$2.array(z$2.string())])),MetadataSchema=z$2.record(z$2.string(),z$2.any()),VarsSchema=z$2.record(z$2.union([z$2.string(),z$2.number(),z$2.boolean(),z$2.array(z$2.union([z$2.string(),z$2.number(),z$2.boolean()])),z$2.record(z$2.string(),z$2.any()),z$2.array(z$2.any())])),TestCaseSchema=z$2.object({description:z$2.string().optional(),vars:VarsSchema.optional(),provider:z$2.union([z$2.string(),ProviderOptionsSchema,ApiProviderSchema]).optional(),providerOutput:z$2.union([z$2.string(),z$2.object({})]).optional(),assert:z$2.array(z$2.union([AssertionSetSchema,AssertionSchema])).optional(),assertScoringFunction:z$2.union([z$2.string().regex(new RegExp(`^file://.*\\.(${JAVASCRIPT_EXTENSIONS.join("|")}|py)(?::[\\w.]+)?$`)),z$2.custom()]).optional(),options:z$2.intersection(z$2.intersection(PromptConfigSchema,OutputConfigSchema),z$2.intersection(GradingConfigSchema,z$2.object({disableVarExpansion:z$2.boolean().optional(),disableConversationVar:z$2.boolean().optional(),runSerially:z$2.boolean().optional()}))).optional(),threshold:z$2.number().optional(),metadata:z$2.intersection(MetadataSchema,z$2.object({pluginConfig:z$2.custom().optional(),strategyConfig:z$2.custom().optional()})).optional()});TestCaseSchema.extend({vars:z$2.union([VarsSchema,z$2.string(),z$2.array(z$2.string())]).optional()});z$2.object({id:z$2.string(),testCases:z$2.union([z$2.string(),z$2.array(z$2.union([z$2.string(),TestCaseSchema]))]),recentEvalDate:z$2.date(),recentEvalId:z$2.string(),count:z$2.number(),prompts:z$2.array(TestCasesWithMetadataPromptSchema)});const ScenarioSchema=z$2.object({description:z$2.string().optional(),config:z$2.array(TestCaseSchema.partial()),tests:z$2.array(TestCaseSchema)});TestCaseSchema.extend({vars:z$2.record(z$2.union([z$2.string(),z$2.object({})])).optional()}).strict();const DerivedMetricSchema=z$2.object({name:z$2.string(),value:z$2.union([z$2.string(),z$2.function().args(z$2.record(z$2.string(),z$2.number()),z$2.custom()).returns(z$2.number())])});z$2.object({tags:z$2.record(z$2.string(),z$2.string()).optional(),description:z$2.string().optional(),providers:z$2.array(ApiProviderSchema),prompts:z$2.array(PromptSchema),providerPromptMap:ProviderPromptMapSchema.optional(),tests:z$2.array(TestCaseSchema).optional(),scenarios:z$2.array(ScenarioSchema).optional(),defaultTest:TestCaseSchema.partial().optional(),nunjucksFilters:NunjucksFilterMapSchema.optional(),env:ProviderEnvOverridesSchema.optional(),derivedMetrics:z$2.array(DerivedMetricSchema).optional(),extensions:z$2.array(z$2.string().refine(t=>t.startsWith("file://"),{message:"Extension must start with file://"}).refine(t=>{const Ae=t.split(":");return Ae.length===3&&Ae.every(xe=>xe.trim()!=="")},{message:"Extension must be of the form file://path/to/file.py:function_name"}).refine(t=>{const Ae=t.split(":");return(Ae[1].endsWith(".py")||isJavascriptFile(Ae[1]))&&(Ae.length===3||Ae.length===2)},{message:"Extension must be a python (.py) or javascript (.js, .ts, .mjs, .cjs, etc.) file followed by a colon and function name"})).nullable().optional(),redteam:z$2.custom().optional()});const TestSuiteConfigSchema=z$2.object({tags:z$2.record(z$2.string(),z$2.string()).optional(),description:z$2.string().optional(),providers:ProvidersSchema,prompts:z$2.union([z$2.string(),z$2.array(z$2.union([z$2.string(),z$2.object({id:z$2.string(),label:z$2.string().optional(),raw:z$2.string().optional()}),PromptSchema])),z$2.record(z$2.string(),z$2.string())]),tests:z$2.union([z$2.string(),z$2.array(z$2.union([z$2.string(),TestCaseSchema]))]).optional(),scenarios:z$2.array(z$2.union([z$2.string(),ScenarioSchema])).optional(),defaultTest:TestCaseSchema.partial().omit({description:!0}).optional(),outputPath:z$2.union([z$2.string(),z$2.array(z$2.string())]).optional(),sharing:z$2.union([z$2.boolean(),z$2.object({apiBaseUrl:z$2.string().optional(),appBaseUrl:z$2.string().optional()})]).optional(),nunjucksFilters:z$2.record(z$2.string(),z$2.string()).optional(),env:z$2.union([ProviderEnvOverridesSchema,z$2.record(z$2.string(),z$2.union([z$2.string(),z$2.number().transform(t=>String(t)),z$2.boolean().transform(t=>String(t))]))]).optional(),derivedMetrics:z$2.array(DerivedMetricSchema).optional(),extensions:z$2.array(z$2.string()).nullable().optional(),metadata:MetadataSchema.optional(),redteam:RedteamConfigSchema.optional(),writeLatestResults:z$2.boolean().optional()});TestSuiteConfigSchema.extend({evaluateOptions:EvaluateOptionsSchema.optional(),commandLineOptions:CommandLineOptionsSchema.partial().optional(),providers:ProvidersSchema.optional(),targets:ProvidersSchema.optional()}).refine(t=>{const Ae=!!t.targets,xe=!!t.providers;return Ae&&!xe||!Ae&&xe},{message:"Exactly one of 'targets' or 'providers' must be provided, but not both"}).transform(t=>(t.targets&&!t.providers&&(t.providers=t.targets,delete t.targets),(t.extensions===null||t.extensions===void 0||Array.isArray(t.extensions)&&t.extensions.length===0)&&delete t.extensions,t));z$2.enum(["csv","html","json","jsonl","txt","yaml","yml"]);function invariant(t,Ae){if(t)return;const xe="Invariant failed",Ee=typeof Ae=="function"?Ae():Ae,Se=Ee?`${xe}: ${Ee}`:xe;throw new Error(Se)}const DEFAULT_SEMANTIC_SIMILARITY_THRESHOLD=.8;let _assertionRegex=null;function getAssertionRegex(){if(!_assertionRegex){const t=BaseAssertionTypesSchema.options.join("|");_assertionRegex=new RegExp(`^(not-)?(${t})(?:\\((\\d+(?:\\.\\d+)?)\\))?(?::([\\s\\S]*))?$`)}return _assertionRegex}function assertionFromString(t){var xe,Ee;if(t.startsWith("javascript:")||t.startsWith("fn:")||t.startsWith("eval:")||t.startsWith("file://")&&isJavascriptFile(t.slice(7))){let Se=0;return t.startsWith("javascript:")&&(Se=11),t.startsWith("fn:")&&(Se=3),t.startsWith("eval:")&&(Se=5),{type:"javascript",value:t.slice(Se).trim()}}if(t.startsWith("grade:")||t.startsWith("llm-rubric:"))return{type:"llm-rubric",value:t.slice(t.startsWith("grade:")?6:11)};if(t.startsWith("python:")||t.startsWith("file://")&&(t.endsWith(".py")||t.includes(".py:"))){const Se=(t.startsWith("python:"),7);return{type:"python",value:t.slice(Se).trim()}}const Ae=t.match(getAssertionRegex());if(Ae){const[Se,Ce,_e,Ie,Be]=Ae,Te=Ce?`not-${_e}`:_e,Pe=Ie?Number.parseFloat(Ie):Number.NaN,ke=Number.isFinite(Pe)?Pe:void 0;if(_e==="contains-all"||_e==="contains-any"||_e==="icontains-all"||_e==="icontains-any")return{type:Te,value:Be&&Be.split(",").map($e=>$e.trim())};if(_e==="contains-json"||_e==="is-json")return{type:Te,value:Be};if(_e==="answer-relevance"||_e==="classifier"||_e==="context-faithfulness"||_e==="context-recall"||_e==="context-relevance"||_e==="cost"||_e==="latency"||_e==="levenshtein"||_e==="perplexity-score"||_e==="perplexity"||_e==="rouge-n"||_e==="similar"||_e==="starts-with"){const $e=_e==="similar"?DEFAULT_SEMANTIC_SIMILARITY_THRESHOLD:.75;return{type:Te,value:(xe=Be==null?void 0:Be.trim)==null?void 0:xe.call(Be),threshold:ke??$e}}else return{type:Te,value:(Ee=Be==null?void 0:Be.trim)==null?void 0:Ee.call(Be)}}return{type:"equals",value:t}}const uniqueErrorMessages=new Set;function testCaseFromCsvRow(t){const Ae={},xe=[],Ee={},Se={};let Ce,_e,Ie,Be;const Te=["expected","prefix","suffix","description","providerOutput","metric","threshold","metadata"].map(ke=>`_${ke}`),Pe=Object.entries(t).map(([ke,$e])=>[ke.trim(),$e]);for(const[ke,$e]of Pe){if(!ke.startsWith("__")&&Te.some(Oe=>ke.startsWith(Oe))&&!uniqueErrorMessages.has(ke)){const Oe=`You used a single underscore for the key "${ke}". Did you mean to use "${ke.replace("_","__")}" instead?`;uniqueErrorMessages.add(ke),logger.warn(Oe)}if(ke.startsWith("__expected"))$e.trim()!==""&&xe.push(assertionFromString($e.trim()));else if(ke==="__prefix")Ee.prefix=$e;else if(ke==="__suffix")Ee.suffix=$e;else if(ke==="__description")_e=$e;else if(ke==="__providerOutput")Ce=$e;else if(ke==="__metric")Ie=$e;else if(ke==="__threshold")Be=Number.parseFloat($e);else if(ke.startsWith("__metadata:")){const Oe=ke.slice(11);if(Oe.endsWith("[]")){const Ue=Oe.slice(0,-2);if($e.trim()!==""){const qe=$e.split(new RegExp("(?<!\\\\),")).map(ze=>ze.trim()).map(ze=>ze.replace("\\,",","));Se[Ue]=qe}}else $e.trim()!==""&&(Se[Oe]=$e)}else Ae[ke]=$e}for(const ke of xe)ke.metric=Ie;return{vars:Ae,assert:xe,options:Ee,..._e?{description:_e}:{},...Ce?{providerOutput:Ce}:{},...Be?{threshold:Be}:{},...Object.keys(Se).length>0?{metadata:Se}:{}}}const assertTypes=["equals","contains","icontains","contains-all","contains-any","starts-with","regex","is-json","contains-json","is-xml","contains-xml","is-sql","contains-sql","similar","llm-rubric","pi","model-graded-closedqa","factuality","webhook","bleu","rouge-n","g-eval","not-equals","not-contains","not-icontains","not-contains-all","not-contains-any","not-starts-with","not-regex","not-is-json","not-contains-json","not-similar","not-webhook","not-rouge-n","is-valid-function-call","is-valid-openai-function-call","is-valid-openai-tools-call","latency","perplexity","perplexity-score","cost","answer-relevance","context-faithfulness","context-recall","context-relevance","select-best","moderation"],AssertsForm=({onAdd:t,initialValues:Ae})=>{const[xe,Ee]=reactExports.useState(Ae||[]),Se=()=>{const _e=[...xe,{type:"equals",value:""}];Ee(_e),t(_e)},Ce=_e=>{const Ie=xe.filter((Be,Te)=>Te!==_e);Ee(Ie),t(Ie)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{variant:"h6",children:"Asserts"}),jsxRuntimeExports.jsx(Box,{my:xe.length>0?2:0,children:jsxRuntimeExports.jsx(Stack,{direction:"column",spacing:2,children:xe.map((_e,Ie)=>jsxRuntimeExports.jsxs(Stack,{direction:"row",spacing:2,alignItems:"center",children:[jsxRuntimeExports.jsx(Autocomplete,{value:_e.type,options:assertTypes,sx:{minWidth:200},onChange:(Be,Te)=>{const Pe=Te,ke=xe.map(($e,Oe)=>Oe===Ie?{...$e,type:Pe}:$e);Ee(ke),t(ke)},renderInput:Be=>jsxRuntimeExports.jsx(TextField,{...Be,label:"Type"})}),jsxRuntimeExports.jsx(TextField,{label:"Value",value:_e.value,fullWidth:!0,onChange:Be=>{const Te=Be.target.value,Pe=xe.map((ke,$e)=>$e===Ie?{...ke,value:Te}:ke);Ee(Pe),t(Pe)}}),jsxRuntimeExports.jsx(IconButton,{onClick:()=>Ce(Ie),size:"small",children:jsxRuntimeExports.jsx(DeleteIcon,{})})]},Ie))})}),jsxRuntimeExports.jsx(Button,{color:"primary",onClick:Se,children:"Add Assert"})]})},VarsForm=({onAdd:t,varsList:Ae,initialValues:xe})=>{const[Ee,Se]=React.useState(xe||{});return reactExports.useEffect(()=>{const Ce={};Ae.forEach(_e=>{Ce[_e]=(xe==null?void 0:xe[_e])||""}),Se(Ce)},[Ae,xe]),jsxRuntimeExports.jsxs(Box,{my:2,children:[jsxRuntimeExports.jsx(Typography,{variant:"h6",mb:2,children:"Vars"}),Ae.length>0?jsxRuntimeExports.jsx(Stack,{direction:"row",spacing:2,alignItems:"center",children:Object.keys(Ee).map((Ce,_e)=>jsxRuntimeExports.jsx(Stack,{direction:"row",spacing:2,alignItems:"center",children:jsxRuntimeExports.jsx(TextField,{placeholder:Ce,label:Ce,value:Ee[Ce],fullWidth:!0,onChange:Ie=>{const Be=Ie.target.value,Te={...Ee,[Ce]:Be};Se(Te),t(Te)}})},_e))}):jsxRuntimeExports.jsxs(Typography,{variant:"subtitle1",gutterBottom:!0,children:["Add variables to your prompt using the ","{{varname}}"," syntax."]})]})},TestCaseForm=({open:t,onAdd:Ae,varsList:xe,initialValues:Ee,onCancel:Se})=>{const[Ce,_e]=reactExports.useState((Ee==null?void 0:Ee.description)||""),[Ie,Be]=reactExports.useState((Ee==null?void 0:Ee.vars)||{}),[Te,Pe]=reactExports.useState((Ee==null?void 0:Ee.assert)||[]),[ke,$e]=reactExports.useState(0);React.useEffect(()=>{Ee?(_e(Ee.description||""),Be(Ee.vars||{}),Pe(Ee.assert||[])):(_e(""),Be({}),Pe([]))},[Ee]);const Oe=Ue=>{Ae({description:Ce,vars:Ie,assert:Te},Ue),Ue&&Se(),_e(""),Be({}),Pe([]),$e(qe=>qe+1)};return jsxRuntimeExports.jsxs(Dialog,{open:t,onClose:Se,fullWidth:!0,maxWidth:"md",children:[jsxRuntimeExports.jsx(DialogTitle,{children:Ee?"Edit Test Case":"Add Test Case"}),jsxRuntimeExports.jsx(DialogContent,{children:jsxRuntimeExports.jsxs(Box,{children:[jsxRuntimeExports.jsx(VarsForm,{onAdd:Ue=>Be(Ue),varsList:xe,initialValues:Ee==null?void 0:Ee.vars}),jsxRuntimeExports.jsx(AssertsForm,{onAdd:Ue=>Pe(Ue),initialValues:((Ee==null?void 0:Ee.assert)||[]).filter(Ue=>Ue.type!=="assert-set")||[]},ke)]})}),jsxRuntimeExports.jsxs(DialogActions,{children:[jsxRuntimeExports.jsx(Button,{onClick:Oe.bind(void 0,!0),color:"primary",variant:"contained",children:Ee?"Update Test Case":"Add Test Case"}),!Ee&&jsxRuntimeExports.jsx(Button,{onClick:Oe.bind(void 0,!1),color:"primary",variant:"contained",children:"Add Another"}),jsxRuntimeExports.jsx(Button,{onClick:Se,color:"secondary",children:"Cancel"})]})]})},TestCasesSection=({varsList:t})=>{const{testCases:Ae,setTestCases:xe}=useStore$1(),[Ee,Se]=React.useState(null),[Ce,_e]=React.useState(!1),[Ie,Be]=React.useState(!1),[Te,Pe]=React.useState(null),ke=(Qe,Ge)=>{if(Ee===null)xe([...Ae,Qe]);else{const Xe=Ae.map((er,tr)=>tr===Ee?Qe:er);xe(Xe),Se(null)}Ge&&_e(!1)},$e=Qe=>{var Xe;Qe.stopPropagation(),Qe.preventDefault();const Ge=(Xe=Qe.target.files)==null?void 0:Xe[0];if(Ge){const er=new FileReader;er.onload=async tr=>{var sr,dr;const nr=(dr=(sr=tr.target)==null?void 0:sr.result)==null?void 0:dr.toString();if(nr){const{parse:ar}=await __vitePreload(async()=>{const{parse:Me}=await import("./sync-DXeGLZqh.js");return{parse:Me}},[]),Ke=ar(nr,{columns:!0}).map(Me=>testCaseFromCsvRow(Me));xe([...Ae,...Ke])}},er.readAsText(Ge)}},Oe=(Qe,Ge)=>{Qe.stopPropagation(),Pe(Ge),Be(!0)},Ue=()=>{Te!==null&&(xe(Ae.filter((Qe,Ge)=>Ge!==Te)),Pe(null)),Be(!1)},qe=()=>{Pe(null),Be(!1)},ze=(Qe,Ge)=>{Qe.stopPropagation();const Xe=JSON.parse(JSON.stringify(Ae[Ge]));xe([...Ae,Xe])};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Stack,{direction:"row",spacing:2,mb:2,justifyContent:"space-between",children:[jsxRuntimeExports.jsx(Typography,{variant:"h5",children:"Test Cases"}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{htmlFor:"file-input-add-test-case",children:jsxRuntimeExports.jsx(Tooltip$2,{title:"Upload test cases from csv",children:jsxRuntimeExports.jsxs("span",{children:[jsxRuntimeExports.jsx(IconButton,{component:"span",children:jsxRuntimeExports.jsx(Publish,{})}),jsxRuntimeExports.jsx("input",{id:"file-input-add-test-case",type:"file",accept:".csv",onChange:$e,style:{display:"none"}})]})})}),Ae.length===0&&jsxRuntimeExports.jsx(Button,{color:"secondary",onClick:()=>{const Qe={description:"Fun animal adventure story",vars:{animal:"penguin",location:"tropical island"},assert:[{type:"contains-any",value:["penguin","adventure","tropical","island"]},{type:"llm-rubric",value:`Is this a fun, child-friendly story featuring a penguin on a tropical island adventure?
|
|
529
|
+
`).optional().default(["default"]),maxConcurrency:z$2.number().int().positive().optional().describe("Maximum number of concurrent API calls"),delay:z$2.number().int().nonnegative().optional().describe("Delay in milliseconds between plugin API calls"),excludeTargetOutputFromAgenticAttackGeneration:z$2.boolean().optional().describe("Whether to exclude target output from the agentific attack generation process")}).transform(t=>{const Ae=new Map,xe=new Set,Ee=(Te,Pe,ke)=>{const $e=`${Te}:${JSON.stringify(Pe)}`,Oe={id:Te};(ke!==void 0||t.numTests!==void 0)&&(Oe.numTests=ke??t.numTests),Pe!==void 0&&(Oe.config=Pe),Ae.set($e,Oe)},Se=(Te,Pe,ke)=>{(Array.isArray(Te)?Te:Array.from(Te)).forEach($e=>{const Oe=Ae.get(`${$e}:${JSON.stringify(Pe)}`);(!Oe||Oe.numTests===void 0)&&Ee($e,Pe,ke)})},Ce=(Te,Pe,ke)=>{Te==="foundation"?Se([...FOUNDATION_PLUGINS],Pe,ke):Te==="harmful"?Se(Object.keys(HARM_PLUGINS),Pe,ke):Te==="pii"?Se([...PII_PLUGINS],Pe,ke):Te==="default"&&Se([...DEFAULT_PLUGINS],Pe,ke)},_e=Te=>{const Pe=typeof Te=="string"?{id:Te,numTests:t.numTests,config:void 0}:{...Te,numTests:Te.numTests??t.numTests};if(ALIASED_PLUGIN_MAPPINGS[Pe.id])Object.values(ALIASED_PLUGIN_MAPPINGS[Pe.id]).forEach(({plugins:ke,strategies:$e})=>{ke.forEach(Oe=>{COLLECTIONS.includes(Oe)?Ce(Oe,Pe.config,Pe.numTests):Ee(Oe,Pe.config,Pe.numTests)}),$e.forEach(Oe=>xe.add(Oe))});else if(COLLECTIONS.includes(Pe.id))Ce(Pe.id,Pe.config,Pe.numTests);else{const ke=Object.entries(ALIASED_PLUGIN_MAPPINGS).find(([,$e])=>Object.keys($e).includes(Pe.id));if(ke){const[,$e]=ke;$e[Pe.id].plugins.forEach(Oe=>{COLLECTIONS.includes(Oe)?Ce(Oe,Pe.config,Pe.numTests):Ee(Oe,Pe.config,Pe.numTests)}),$e[Pe.id].strategies.forEach(Oe=>xe.add(Oe))}else Ee(Pe.id,Pe.config,Pe.numTests)}};t.plugins.forEach(_e);const Ie=Array.from(Ae.values()).filter(Te=>!COLLECTIONS.includes(Te.id)).sort((Te,Pe)=>Te.id!==Pe.id?Te.id.localeCompare(Pe.id):JSON.stringify(Te.config||{}).localeCompare(JSON.stringify(Pe.config||{}))),Be=Array.from(new Map([...t.strategies||[],...Array.from(xe)].flatMap(Te=>typeof Te=="string"?Te==="basic"?[]:Te==="default"?DEFAULT_STRATEGIES.map(Pe=>[Pe,{id:Pe}]):[[Te,{id:Te}]]:[[Te.id,Te]])).values()).sort((Te,Pe)=>{const ke=typeof Te=="string"?Te:Te.id,$e=typeof Pe=="string"?Pe:Pe.id;return ke.localeCompare($e)});return{numTests:t.numTests,plugins:Ie,strategies:Be,...t.delay?{delay:t.delay}:{},...t.entities?{entities:t.entities}:{},...t.injectVar?{injectVar:t.injectVar}:{},...t.language?{language:t.language}:{},...t.provider?{provider:t.provider}:{},...t.purpose?{purpose:t.purpose}:{},...t.excludeTargetOutputFromAgenticAttackGeneration?{excludeTargetOutputFromAgenticAttackGeneration:t.excludeTargetOutputFromAgenticAttackGeneration}:{}}});function isProviderOptions(t){return typeof t=="object"&&t!=null&&"id"in t&&typeof t.id=="string"}const CommandLineOptionsSchema=z$2.object({description:z$2.string().optional(),prompts:z$2.array(z$2.string()).optional(),providers:z$2.array(z$2.string()),output:z$2.array(z$2.string()),maxConcurrency:z$2.coerce.number().int().positive().optional(),repeat:z$2.coerce.number().int().positive().optional(),delay:z$2.coerce.number().int().nonnegative().default(0),vars:z$2.string().optional(),tests:z$2.string().optional(),config:z$2.array(z$2.string()).optional(),assertions:z$2.string().optional(),modelOutputs:z$2.string().optional(),verbose:z$2.boolean().optional(),grader:z$2.string().optional(),tableCellMaxLength:z$2.coerce.number().int().positive().optional(),write:z$2.boolean().optional(),cache:z$2.boolean().optional(),table:z$2.boolean().optional(),share:z$2.boolean().optional(),progressBar:z$2.boolean().optional(),watch:z$2.boolean().optional(),filterErrorsOnly:z$2.string().optional(),filterFailing:z$2.string().optional(),filterFirstN:z$2.coerce.number().int().positive().optional(),filterMetadata:z$2.string().optional(),filterPattern:z$2.string().optional(),filterProviders:z$2.string().optional(),filterSample:z$2.coerce.number().int().positive().optional(),filterTargets:z$2.string().optional(),var:z$2.record(z$2.string()).optional(),generateSuggestions:z$2.boolean().optional(),promptPrefix:z$2.string().optional(),promptSuffix:z$2.string().optional(),envPath:z$2.string().optional()}),GradingConfigSchema=z$2.object({rubricPrompt:z$2.union([z$2.string(),z$2.array(z$2.string()),z$2.array(z$2.object({role:z$2.string(),content:z$2.string()}))]).optional(),provider:z$2.union([z$2.string(),z$2.any(),z$2.record(z$2.string(),z$2.union([z$2.string(),z$2.any()])).optional()]).optional(),factuality:z$2.object({subset:z$2.number().optional(),superset:z$2.number().optional(),agree:z$2.number().optional(),disagree:z$2.number().optional(),differButFactual:z$2.number().optional()}).optional()}),OutputConfigSchema=z$2.object({postprocess:z$2.string().optional(),transform:z$2.string().optional(),transformVars:z$2.string().optional(),storeOutputAs:z$2.string().optional()}),EvaluateOptionsSchema=z$2.object({cache:z$2.boolean().optional(),delay:z$2.number().optional(),eventSource:z$2.string().optional(),generateSuggestions:z$2.boolean().optional(),interactiveProviders:z$2.boolean().optional(),maxConcurrency:z$2.number().optional(),progressCallback:z$2.function(z$2.tuple([z$2.number(),z$2.number(),z$2.number(),z$2.custom(),z$2.custom()]),z$2.void()).optional(),repeat:z$2.number().optional(),showProgressBar:z$2.boolean().optional(),timeoutMs:z$2.number().optional()}),PromptMetricsSchema=z$2.object({score:z$2.number(),testPassCount:z$2.number(),testFailCount:z$2.number(),testErrorCount:z$2.number(),assertPassCount:z$2.number(),assertFailCount:z$2.number(),totalLatencyMs:z$2.number(),tokenUsage:TokenUsageSchema,namedScores:z$2.record(z$2.string(),z$2.number()),namedScoresCount:z$2.record(z$2.string(),z$2.number()),redteam:z$2.object({pluginPassCount:z$2.record(z$2.string(),z$2.number()),pluginFailCount:z$2.record(z$2.string(),z$2.number()),strategyPassCount:z$2.record(z$2.string(),z$2.number()),strategyFailCount:z$2.record(z$2.string(),z$2.number())}).optional(),cost:z$2.number()}),CompletedPromptSchema=PromptSchema.extend({provider:z$2.string(),metrics:PromptMetricsSchema.optional()});var ResultFailureReason=(t=>(t[t.NONE=0]="NONE",t[t.ASSERT=1]="ASSERT",t[t.ERROR=2]="ERROR",t))(ResultFailureReason||{});const BaseAssertionTypesSchema=z$2.enum(["answer-relevance","bleu","classifier","contains","contains-all","contains-any","contains-json","contains-sql","contains-xml","context-faithfulness","context-recall","context-relevance","cost","equals","factuality","g-eval","gleu","guardrails","icontains","icontains-all","icontains-any","is-json","is-refusal","is-sql","is-valid-function-call","is-valid-openai-function-call","is-valid-openai-tools-call","is-xml","javascript","latency","levenshtein","llm-rubric","pi","meteor","model-graded-closedqa","model-graded-factuality","moderation","perplexity","perplexity-score","python","regex","rouge-n","similar","starts-with","webhook"]),SpecialAssertionTypesSchema=z$2.enum(["select-best","human"]),NotPrefixedAssertionTypesSchema=BaseAssertionTypesSchema.transform(t=>`not-${t}`),AssertionTypeSchema=z$2.union([BaseAssertionTypesSchema,NotPrefixedAssertionTypesSchema,SpecialAssertionTypesSchema,z$2.custom()]),AssertionSetSchema=z$2.object({type:z$2.literal("assert-set"),assert:z$2.array(z$2.lazy(()=>AssertionSchema)),weight:z$2.number().optional(),metric:z$2.string().optional(),threshold:z$2.number().optional(),config:z$2.record(z$2.string(),z$2.any()).optional()}),AssertionSchema=z$2.object({type:AssertionTypeSchema,value:z$2.custom().optional(),config:z$2.record(z$2.string(),z$2.any()).optional(),threshold:z$2.number().optional(),weight:z$2.number().optional(),provider:z$2.custom().optional(),rubricPrompt:z$2.custom().optional(),metric:z$2.string().optional(),transform:z$2.string().optional()}),TestCasesWithMetadataPromptSchema=z$2.object({prompt:CompletedPromptSchema,id:z$2.string(),evalId:z$2.string()}),ProviderPromptMapSchema=z$2.record(z$2.string(),z$2.union([z$2.string().transform(t=>[t]),z$2.array(z$2.string())])),MetadataSchema=z$2.record(z$2.string(),z$2.any()),VarsSchema=z$2.record(z$2.union([z$2.string(),z$2.number(),z$2.boolean(),z$2.array(z$2.union([z$2.string(),z$2.number(),z$2.boolean()])),z$2.record(z$2.string(),z$2.any()),z$2.array(z$2.any())])),TestCaseSchema=z$2.object({description:z$2.string().optional(),vars:VarsSchema.optional(),provider:z$2.union([z$2.string(),ProviderOptionsSchema,ApiProviderSchema]).optional(),providerOutput:z$2.union([z$2.string(),z$2.object({})]).optional(),assert:z$2.array(z$2.union([AssertionSetSchema,AssertionSchema])).optional(),assertScoringFunction:z$2.union([z$2.string().regex(new RegExp(`^file://.*\\.(${JAVASCRIPT_EXTENSIONS.join("|")}|py)(?::[\\w.]+)?$`)),z$2.custom()]).optional(),options:z$2.intersection(z$2.intersection(PromptConfigSchema,OutputConfigSchema),z$2.intersection(GradingConfigSchema,z$2.object({disableVarExpansion:z$2.boolean().optional(),disableConversationVar:z$2.boolean().optional(),runSerially:z$2.boolean().optional()}))).optional(),threshold:z$2.number().optional(),metadata:z$2.intersection(MetadataSchema,z$2.object({pluginConfig:z$2.custom().optional(),strategyConfig:z$2.custom().optional()})).optional()});TestCaseSchema.extend({vars:z$2.union([VarsSchema,z$2.string(),z$2.array(z$2.string())]).optional()});z$2.object({id:z$2.string(),testCases:z$2.union([z$2.string(),z$2.array(z$2.union([z$2.string(),TestCaseSchema]))]),recentEvalDate:z$2.date(),recentEvalId:z$2.string(),count:z$2.number(),prompts:z$2.array(TestCasesWithMetadataPromptSchema)});const ScenarioSchema=z$2.object({description:z$2.string().optional(),config:z$2.array(TestCaseSchema.partial()),tests:z$2.array(TestCaseSchema)});TestCaseSchema.extend({vars:z$2.record(z$2.union([z$2.string(),z$2.object({})])).optional()}).strict();const DerivedMetricSchema=z$2.object({name:z$2.string(),value:z$2.union([z$2.string(),z$2.function().args(z$2.record(z$2.string(),z$2.number()),z$2.custom()).returns(z$2.number())])});z$2.object({tags:z$2.record(z$2.string(),z$2.string()).optional(),description:z$2.string().optional(),providers:z$2.array(ApiProviderSchema),prompts:z$2.array(PromptSchema),providerPromptMap:ProviderPromptMapSchema.optional(),tests:z$2.array(TestCaseSchema).optional(),scenarios:z$2.array(ScenarioSchema).optional(),defaultTest:TestCaseSchema.partial().optional(),nunjucksFilters:NunjucksFilterMapSchema.optional(),env:ProviderEnvOverridesSchema.optional(),derivedMetrics:z$2.array(DerivedMetricSchema).optional(),extensions:z$2.array(z$2.string().refine(t=>t.startsWith("file://"),{message:"Extension must start with file://"}).refine(t=>{const Ae=t.split(":");return Ae.length===3&&Ae.every(xe=>xe.trim()!=="")},{message:"Extension must be of the form file://path/to/file.py:function_name"}).refine(t=>{const Ae=t.split(":");return(Ae[1].endsWith(".py")||isJavascriptFile(Ae[1]))&&(Ae.length===3||Ae.length===2)},{message:"Extension must be a python (.py) or javascript (.js, .ts, .mjs, .cjs, etc.) file followed by a colon and function name"})).nullable().optional(),redteam:z$2.custom().optional()});const TestSuiteConfigSchema=z$2.object({tags:z$2.record(z$2.string(),z$2.string()).optional(),description:z$2.string().optional(),providers:ProvidersSchema,prompts:z$2.union([z$2.string(),z$2.array(z$2.union([z$2.string(),z$2.object({id:z$2.string(),label:z$2.string().optional(),raw:z$2.string().optional()}),PromptSchema])),z$2.record(z$2.string(),z$2.string())]),tests:z$2.union([z$2.string(),z$2.array(z$2.union([z$2.string(),TestCaseSchema]))]).optional(),scenarios:z$2.array(z$2.union([z$2.string(),ScenarioSchema])).optional(),defaultTest:TestCaseSchema.partial().omit({description:!0}).optional(),outputPath:z$2.union([z$2.string(),z$2.array(z$2.string())]).optional(),sharing:z$2.union([z$2.boolean(),z$2.object({apiBaseUrl:z$2.string().optional(),appBaseUrl:z$2.string().optional()})]).optional(),nunjucksFilters:z$2.record(z$2.string(),z$2.string()).optional(),env:z$2.union([ProviderEnvOverridesSchema,z$2.record(z$2.string(),z$2.union([z$2.string(),z$2.number().transform(t=>String(t)),z$2.boolean().transform(t=>String(t))]))]).optional(),derivedMetrics:z$2.array(DerivedMetricSchema).optional(),extensions:z$2.array(z$2.string()).nullable().optional(),metadata:MetadataSchema.optional(),redteam:RedteamConfigSchema.optional(),writeLatestResults:z$2.boolean().optional()});TestSuiteConfigSchema.extend({evaluateOptions:EvaluateOptionsSchema.optional(),commandLineOptions:CommandLineOptionsSchema.partial().optional(),providers:ProvidersSchema.optional(),targets:ProvidersSchema.optional()}).refine(t=>{const Ae=!!t.targets,xe=!!t.providers;return Ae&&!xe||!Ae&&xe},{message:"Exactly one of 'targets' or 'providers' must be provided, but not both"}).transform(t=>(t.targets&&!t.providers&&(t.providers=t.targets,delete t.targets),(t.extensions===null||t.extensions===void 0||Array.isArray(t.extensions)&&t.extensions.length===0)&&delete t.extensions,t));z$2.enum(["csv","html","json","jsonl","txt","yaml","yml"]);function invariant(t,Ae){if(t)return;const xe="Invariant failed",Ee=typeof Ae=="function"?Ae():Ae,Se=Ee?`${xe}: ${Ee}`:xe;throw new Error(Se)}const DEFAULT_SEMANTIC_SIMILARITY_THRESHOLD=.8;let _assertionRegex=null;function getAssertionRegex(){if(!_assertionRegex){const t=BaseAssertionTypesSchema.options.join("|");_assertionRegex=new RegExp(`^(not-)?(${t})(?:\\((\\d+(?:\\.\\d+)?)\\))?(?::([\\s\\S]*))?$`)}return _assertionRegex}function assertionFromString(t){var xe,Ee;if(t.startsWith("javascript:")||t.startsWith("fn:")||t.startsWith("eval:")||t.startsWith("file://")&&isJavascriptFile(t.slice(7))){let Se=0;return t.startsWith("javascript:")&&(Se=11),t.startsWith("fn:")&&(Se=3),t.startsWith("eval:")&&(Se=5),{type:"javascript",value:t.slice(Se).trim()}}if(t.startsWith("grade:")||t.startsWith("llm-rubric:"))return{type:"llm-rubric",value:t.slice(t.startsWith("grade:")?6:11)};if(t.startsWith("python:")||t.startsWith("file://")&&(t.endsWith(".py")||t.includes(".py:"))){const Se=(t.startsWith("python:"),7);return{type:"python",value:t.slice(Se).trim()}}const Ae=t.match(getAssertionRegex());if(Ae){const[Se,Ce,_e,Ie,Be]=Ae,Te=Ce?`not-${_e}`:_e,Pe=Ie?Number.parseFloat(Ie):Number.NaN,ke=Number.isFinite(Pe)?Pe:void 0;if(_e==="contains-all"||_e==="contains-any"||_e==="icontains-all"||_e==="icontains-any")return{type:Te,value:Be&&Be.split(",").map($e=>$e.trim())};if(_e==="contains-json"||_e==="is-json")return{type:Te,value:Be};if(_e==="answer-relevance"||_e==="classifier"||_e==="context-faithfulness"||_e==="context-recall"||_e==="context-relevance"||_e==="cost"||_e==="latency"||_e==="levenshtein"||_e==="perplexity-score"||_e==="perplexity"||_e==="rouge-n"||_e==="similar"||_e==="starts-with"){const $e=_e==="similar"?DEFAULT_SEMANTIC_SIMILARITY_THRESHOLD:.75;return{type:Te,value:(xe=Be==null?void 0:Be.trim)==null?void 0:xe.call(Be),threshold:ke??$e}}else return{type:Te,value:(Ee=Be==null?void 0:Be.trim)==null?void 0:Ee.call(Be)}}return{type:"equals",value:t}}const uniqueErrorMessages=new Set;function testCaseFromCsvRow(t){const Ae={},xe=[],Ee={},Se={};let Ce,_e,Ie,Be;const Te=["expected","prefix","suffix","description","providerOutput","metric","threshold","metadata"].map(ke=>`_${ke}`),Pe=Object.entries(t).map(([ke,$e])=>[ke.trim(),$e]);for(const[ke,$e]of Pe){if(!ke.startsWith("__")&&Te.some(Oe=>ke.startsWith(Oe))&&!uniqueErrorMessages.has(ke)){const Oe=`You used a single underscore for the key "${ke}". Did you mean to use "${ke.replace("_","__")}" instead?`;uniqueErrorMessages.add(ke),logger.warn(Oe)}if(ke.startsWith("__expected"))$e.trim()!==""&&xe.push(assertionFromString($e.trim()));else if(ke==="__prefix")Ee.prefix=$e;else if(ke==="__suffix")Ee.suffix=$e;else if(ke==="__description")_e=$e;else if(ke==="__providerOutput")Ce=$e;else if(ke==="__metric")Ie=$e;else if(ke==="__threshold")Be=Number.parseFloat($e);else if(ke.startsWith("__metadata:")){const Oe=ke.slice(11);if(Oe.endsWith("[]")){const Ue=Oe.slice(0,-2);if($e.trim()!==""){const qe=$e.split(new RegExp("(?<!\\\\),")).map(ze=>ze.trim()).map(ze=>ze.replace("\\,",","));Se[Ue]=qe}}else $e.trim()!==""&&(Se[Oe]=$e)}else Ae[ke]=$e}for(const ke of xe)ke.metric=Ie;return{vars:Ae,assert:xe,options:Ee,..._e?{description:_e}:{},...Ce?{providerOutput:Ce}:{},...Be?{threshold:Be}:{},...Object.keys(Se).length>0?{metadata:Se}:{}}}const assertTypes=["equals","contains","icontains","contains-all","contains-any","starts-with","regex","is-json","contains-json","is-xml","contains-xml","is-sql","contains-sql","similar","llm-rubric","pi","model-graded-closedqa","factuality","webhook","bleu","rouge-n","g-eval","not-equals","not-contains","not-icontains","not-contains-all","not-contains-any","not-starts-with","not-regex","not-is-json","not-contains-json","not-similar","not-webhook","not-rouge-n","is-valid-function-call","is-valid-openai-function-call","is-valid-openai-tools-call","latency","perplexity","perplexity-score","cost","answer-relevance","context-faithfulness","context-recall","context-relevance","select-best","moderation"],AssertsForm=({onAdd:t,initialValues:Ae})=>{const[xe,Ee]=reactExports.useState(Ae||[]),Se=()=>{const _e=[...xe,{type:"equals",value:""}];Ee(_e),t(_e)},Ce=_e=>{const Ie=xe.filter((Be,Te)=>Te!==_e);Ee(Ie),t(Ie)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{variant:"h6",children:"Asserts"}),jsxRuntimeExports.jsx(Box,{my:xe.length>0?2:0,children:jsxRuntimeExports.jsx(Stack,{direction:"column",spacing:2,children:xe.map((_e,Ie)=>jsxRuntimeExports.jsxs(Stack,{direction:"row",spacing:2,alignItems:"center",children:[jsxRuntimeExports.jsx(Autocomplete,{value:_e.type,options:assertTypes,sx:{minWidth:200},onChange:(Be,Te)=>{const Pe=Te,ke=xe.map(($e,Oe)=>Oe===Ie?{...$e,type:Pe}:$e);Ee(ke),t(ke)},renderInput:Be=>jsxRuntimeExports.jsx(TextField,{...Be,label:"Type"})}),jsxRuntimeExports.jsx(TextField,{label:"Value",value:_e.value,fullWidth:!0,onChange:Be=>{const Te=Be.target.value,Pe=xe.map((ke,$e)=>$e===Ie?{...ke,value:Te}:ke);Ee(Pe),t(Pe)}}),jsxRuntimeExports.jsx(IconButton,{onClick:()=>Ce(Ie),size:"small",children:jsxRuntimeExports.jsx(DeleteIcon,{})})]},Ie))})}),jsxRuntimeExports.jsx(Button,{color:"primary",onClick:Se,children:"Add Assert"})]})},VarsForm=({onAdd:t,varsList:Ae,initialValues:xe})=>{const[Ee,Se]=React.useState(xe||{});return reactExports.useEffect(()=>{const Ce={};Ae.forEach(_e=>{Ce[_e]=(xe==null?void 0:xe[_e])||""}),Se(Ce)},[Ae,xe]),jsxRuntimeExports.jsxs(Box,{my:2,children:[jsxRuntimeExports.jsx(Typography,{variant:"h6",mb:2,children:"Vars"}),Ae.length>0?jsxRuntimeExports.jsx(Stack,{direction:"row",spacing:2,alignItems:"center",children:Object.keys(Ee).map((Ce,_e)=>jsxRuntimeExports.jsx(Stack,{direction:"row",spacing:2,alignItems:"center",children:jsxRuntimeExports.jsx(TextField,{placeholder:Ce,label:Ce,value:Ee[Ce],fullWidth:!0,onChange:Ie=>{const Be=Ie.target.value,Te={...Ee,[Ce]:Be};Se(Te),t(Te)}})},_e))}):jsxRuntimeExports.jsxs(Typography,{variant:"subtitle1",gutterBottom:!0,children:["Add variables to your prompt using the ","{{varname}}"," syntax."]})]})},TestCaseForm=({open:t,onAdd:Ae,varsList:xe,initialValues:Ee,onCancel:Se})=>{const[Ce,_e]=reactExports.useState((Ee==null?void 0:Ee.description)||""),[Ie,Be]=reactExports.useState((Ee==null?void 0:Ee.vars)||{}),[Te,Pe]=reactExports.useState((Ee==null?void 0:Ee.assert)||[]),[ke,$e]=reactExports.useState(0);React.useEffect(()=>{Ee?(_e(Ee.description||""),Be(Ee.vars||{}),Pe(Ee.assert||[])):(_e(""),Be({}),Pe([]))},[Ee]);const Oe=Ue=>{Ae({description:Ce,vars:Ie,assert:Te},Ue),Ue&&Se(),_e(""),Be({}),Pe([]),$e(qe=>qe+1)};return jsxRuntimeExports.jsxs(Dialog,{open:t,onClose:Se,fullWidth:!0,maxWidth:"md",children:[jsxRuntimeExports.jsx(DialogTitle,{children:Ee?"Edit Test Case":"Add Test Case"}),jsxRuntimeExports.jsx(DialogContent,{children:jsxRuntimeExports.jsxs(Box,{children:[jsxRuntimeExports.jsx(VarsForm,{onAdd:Ue=>Be(Ue),varsList:xe,initialValues:Ee==null?void 0:Ee.vars}),jsxRuntimeExports.jsx(AssertsForm,{onAdd:Ue=>Pe(Ue),initialValues:((Ee==null?void 0:Ee.assert)||[]).filter(Ue=>Ue.type!=="assert-set")||[]},ke)]})}),jsxRuntimeExports.jsxs(DialogActions,{children:[jsxRuntimeExports.jsx(Button,{onClick:Oe.bind(void 0,!0),color:"primary",variant:"contained",children:Ee?"Update Test Case":"Add Test Case"}),!Ee&&jsxRuntimeExports.jsx(Button,{onClick:Oe.bind(void 0,!1),color:"primary",variant:"contained",children:"Add Another"}),jsxRuntimeExports.jsx(Button,{onClick:Se,color:"secondary",children:"Cancel"})]})]})},TestCasesSection=({varsList:t})=>{const{testCases:Ae,setTestCases:xe}=useStore$1(),[Ee,Se]=React.useState(null),[Ce,_e]=React.useState(!1),[Ie,Be]=React.useState(!1),[Te,Pe]=React.useState(null),ke=(Qe,Ge)=>{if(Ee===null)xe([...Ae,Qe]);else{const Xe=Ae.map((er,tr)=>tr===Ee?Qe:er);xe(Xe),Se(null)}Ge&&_e(!1)},$e=Qe=>{var Xe;Qe.stopPropagation(),Qe.preventDefault();const Ge=(Xe=Qe.target.files)==null?void 0:Xe[0];if(Ge){const er=new FileReader;er.onload=async tr=>{var sr,dr;const nr=(dr=(sr=tr.target)==null?void 0:sr.result)==null?void 0:dr.toString();if(nr){const{parse:ar}=await __vitePreload(async()=>{const{parse:Me}=await import("./sync-D7Aaf28o.js");return{parse:Me}},[]),Ke=ar(nr,{columns:!0}).map(Me=>testCaseFromCsvRow(Me));xe([...Ae,...Ke])}},er.readAsText(Ge)}},Oe=(Qe,Ge)=>{Qe.stopPropagation(),Pe(Ge),Be(!0)},Ue=()=>{Te!==null&&(xe(Ae.filter((Qe,Ge)=>Ge!==Te)),Pe(null)),Be(!1)},qe=()=>{Pe(null),Be(!1)},ze=(Qe,Ge)=>{Qe.stopPropagation();const Xe=JSON.parse(JSON.stringify(Ae[Ge]));xe([...Ae,Xe])};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Stack,{direction:"row",spacing:2,mb:2,justifyContent:"space-between",children:[jsxRuntimeExports.jsx(Typography,{variant:"h5",children:"Test Cases"}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{htmlFor:"file-input-add-test-case",children:jsxRuntimeExports.jsx(Tooltip$2,{title:"Upload test cases from csv",children:jsxRuntimeExports.jsxs("span",{children:[jsxRuntimeExports.jsx(IconButton,{component:"span",children:jsxRuntimeExports.jsx(Publish,{})}),jsxRuntimeExports.jsx("input",{id:"file-input-add-test-case",type:"file",accept:".csv",onChange:$e,style:{display:"none"}})]})})}),Ae.length===0&&jsxRuntimeExports.jsx(Button,{color:"secondary",onClick:()=>{const Qe={description:"Fun animal adventure story",vars:{animal:"penguin",location:"tropical island"},assert:[{type:"contains-any",value:["penguin","adventure","tropical","island"]},{type:"llm-rubric",value:`Is this a fun, child-friendly story featuring a penguin on a tropical island adventure?
|
|
530
530
|
|
|
531
531
|
Criteria:
|
|
532
532
|
1. Does it mention a penguin as the main character?
|
|
@@ -844,7 +844,7 @@ endobj\r
|
|
|
844
844
|
* http://opensource.org/licenses/mit-license
|
|
845
845
|
*/function te(t,Ae){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!Ae,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function ee$1(t){function Ae(dr){if(!dr)throw Error("assert :P")}function xe(dr,ar,lr){for(var Ke=0;4>Ke;Ke++)if(dr[ar+Ke]!=lr.charCodeAt(Ke))return!0;return!1}function Ee(dr,ar,lr,Ke,Me){for(var je=0;je<Me;je++)dr[ar+je]=lr[Ke+je]}function Se(dr,ar,lr,Ke){for(var Me=0;Me<Ke;Me++)dr[ar+Me]=lr}function Ce(dr){return new Int32Array(dr)}function _e(dr,ar){for(var lr=[],Ke=0;Ke<dr;Ke++)lr.push(new ar);return lr}function Ie(dr,ar){var lr=[];return function Ke(Me,je,De){for(var He=De[je],Ve=0;Ve<He&&(Me.push(De.length>je+1?[]:new ar),!(De.length<je+1));Ve++)Ke(Me[Ve],je+1,De)}(lr,0,dr),lr}var Be=function(){var dr=this;function ar(xr,Sr){for(var Nr=1<<Sr-1>>>0;xr&Nr;)Nr>>>=1;return Nr?(xr&Nr-1)+Nr:xr}function lr(xr,Sr,Nr,Xr,fn){Ae(!(Xr%Nr));do xr[Sr+(Xr-=Nr)]=fn;while(0<Xr)}function Ke(xr,Sr,Nr,Xr,fn){if(Ae(2328>=fn),512>=fn)var mn=Ce(512);else if((mn=Ce(fn))==null)return 0;return function(vn,Cn,_n,Pn,qn,Jn){var ei,Yn,Ai=Cn,ai=1<<_n,Vn=Ce(16),Qn=Ce(16);for(Ae(qn!=0),Ae(Pn!=null),Ae(vn!=null),Ae(0<_n),Yn=0;Yn<qn;++Yn){if(15<Pn[Yn])return 0;++Vn[Pn[Yn]]}if(Vn[0]==qn)return 0;for(Qn[1]=0,ei=1;15>ei;++ei){if(Vn[ei]>1<<ei)return 0;Qn[ei+1]=Qn[ei]+Vn[ei]}for(Yn=0;Yn<qn;++Yn)ei=Pn[Yn],0<Pn[Yn]&&(Jn[Qn[ei]++]=Yn);if(Qn[15]==1)return(Pn=new Me).g=0,Pn.value=Jn[0],lr(vn,Ai,1,ai,Pn),ai;var ci,ui=-1,fi=ai-1,Ii=0,Ci=1,qi=1,Si=1<<_n;for(Yn=0,ei=1,qn=2;ei<=_n;++ei,qn<<=1){if(Ci+=qi<<=1,0>(qi-=Vn[ei]))return 0;for(;0<Vn[ei];--Vn[ei])(Pn=new Me).g=ei,Pn.value=Jn[Yn++],lr(vn,Ai+Ii,qn,Si,Pn),Ii=ar(Ii,ei)}for(ei=_n+1,qn=2;15>=ei;++ei,qn<<=1){if(Ci+=qi<<=1,0>(qi-=Vn[ei]))return 0;for(;0<Vn[ei];--Vn[ei]){if(Pn=new Me,(Ii&fi)!=ui){for(Ai+=Si,ci=1<<(ui=ei)-_n;15>ui&&!(0>=(ci-=Vn[ui]));)++ui,ci<<=1;ai+=Si=1<<(ci=ui-_n),vn[Cn+(ui=Ii&fi)].g=ci+_n,vn[Cn+ui].value=Ai-Cn-ui}Pn.g=ei-_n,Pn.value=Jn[Yn++],lr(vn,Ai+(Ii>>_n),qn,Si,Pn),Ii=ar(Ii,ei)}}return Ci!=2*Qn[15]-1?0:ai}(xr,Sr,Nr,Xr,fn,mn)}function Me(){this.value=this.g=0}function je(){this.value=this.g=0}function De(){this.G=_e(5,Me),this.H=Ce(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=_e(jo,je)}function He(xr,Sr,Nr,Xr){Ae(xr!=null),Ae(Sr!=null),Ae(2147483648>Xr),xr.Ca=254,xr.I=0,xr.b=-8,xr.Ka=0,xr.oa=Sr,xr.pa=Nr,xr.Jd=Sr,xr.Yc=Nr+Xr,xr.Zc=4<=Xr?Nr+Xr-4+1:Nr,yr(xr)}function Ve(xr,Sr){for(var Nr=0;0<Sr--;)Nr|=_r(xr,128)<<Sr;return Nr}function Ye(xr,Sr){var Nr=Ve(xr,Sr);return br(xr)?-Nr:Nr}function St(xr,Sr,Nr,Xr){var fn,mn=0;for(Ae(xr!=null),Ae(Sr!=null),Ae(4294967288>Xr),xr.Sb=Xr,xr.Ra=0,xr.u=0,xr.h=0,4<Xr&&(Xr=4),fn=0;fn<Xr;++fn)mn+=Sr[Nr+fn]<<8*fn;xr.Ra=mn,xr.bb=Xr,xr.oa=Sr,xr.pa=Nr}function We(xr){for(;8<=xr.u&&xr.bb<xr.Sb;)xr.Ra>>>=8,xr.Ra+=xr.oa[xr.pa+xr.bb]<<du-8>>>0,++xr.bb,xr.u-=8;fr(xr)&&(xr.h=1,xr.u=0)}function Fe(xr,Sr){if(Ae(0<=Sr),!xr.h&&Sr<=cu){var Nr=ur(xr)&uu[Sr];return xr.u+=Sr,We(xr),Nr}return xr.h=1,xr.u=0}function Ze(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function ir(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function ur(xr){return xr.Ra>>>(xr.u&du-1)>>>0}function fr(xr){return Ae(xr.bb<=xr.Sb),xr.h||xr.bb==xr.Sb&&xr.u>du}function Ar(xr,Sr){xr.u=Sr,xr.h=fr(xr)}function vr(xr){xr.u>=fu&&(Ae(xr.u>=fu),We(xr))}function yr(xr){Ae(xr!=null&&xr.oa!=null),xr.pa<xr.Zc?(xr.I=(xr.oa[xr.pa++]|xr.I<<8)>>>0,xr.b+=8):(Ae(xr!=null&&xr.oa!=null),xr.pa<xr.Yc?(xr.b+=8,xr.I=xr.oa[xr.pa++]|xr.I<<8):xr.Ka?xr.b=0:(xr.I<<=8,xr.b+=8,xr.Ka=1))}function br(xr){return Ve(xr,1)}function _r(xr,Sr){var Nr=xr.Ca;0>xr.b&&yr(xr);var Xr=xr.b,fn=Nr*Sr>>>8,mn=(xr.I>>>Xr>fn)+0;for(mn?(Nr-=fn,xr.I-=fn+1<<Xr>>>0):Nr=fn+1,Xr=Nr,fn=0;256<=Xr;)fn+=8,Xr>>=8;return Xr=7^fn+us[Xr],xr.b-=Xr,xr.Ca=(Nr<<Xr)-1,mn}function $r(xr,Sr,Nr){xr[Sr+0]=Nr>>24&255,xr[Sr+1]=Nr>>16&255,xr[Sr+2]=Nr>>8&255,xr[Sr+3]=Nr>>0&255}function Fr(xr,Sr){return xr[Sr+0]<<0|xr[Sr+1]<<8}function Ir(xr,Sr){return Fr(xr,Sr)|xr[Sr+2]<<16}function zr(xr,Sr){return Fr(xr,Sr)|Fr(xr,Sr+2)<<16}function dn(xr,Sr){var Nr=1<<Sr;return Ae(xr!=null),Ae(0<Sr),xr.X=Ce(Nr),xr.X==null?0:(xr.Mb=32-Sr,xr.Xa=Sr,1)}function tn(xr,Sr){Ae(xr!=null),Ae(Sr!=null),Ae(xr.Xa==Sr.Xa),Ee(Sr.X,0,xr.X,0,1<<Sr.Xa)}function Gr(){this.X=[],this.Xa=this.Mb=0}function wn(xr,Sr,Nr,Xr){Ae(Nr!=null),Ae(Xr!=null);var fn=Nr[0],mn=Xr[0];return fn==0&&(fn=(xr*mn+Sr/2)/Sr),mn==0&&(mn=(Sr*fn+xr/2)/xr),0>=fn||0>=mn?0:(Nr[0]=fn,Xr[0]=mn,1)}function an(xr,Sr){return xr+(1<<Sr)-1>>>Sr}function Vr(xr,Sr){return((4278255360&xr)+(4278255360&Sr)>>>0&4278255360)+((16711935&xr)+(16711935&Sr)>>>0&16711935)>>>0}function Rn(xr,Sr){dr[Sr]=function(Nr,Xr,fn,mn,vn,Cn,_n){var Pn;for(Pn=0;Pn<vn;++Pn){var qn=dr[xr](Cn[_n+Pn-1],fn,mn+Pn);Cn[_n+Pn]=Vr(Nr[Xr+Pn],qn)}}}function un(){this.ud=this.hd=this.jd=0}function sn(xr,Sr){return((4278124286&(xr^Sr))>>>1)+(xr&Sr)>>>0}function jn(xr){return 0<=xr&&256>xr?xr:0>xr?0:255<xr?255:void 0}function en(xr,Sr){return jn(xr+(xr-Sr+.5>>1))}function Jr(xr,Sr,Nr){return Math.abs(Sr-Nr)-Math.abs(xr-Nr)}function nn(xr,Sr,Nr,Xr,fn,mn,vn){for(Xr=mn[vn-1],Nr=0;Nr<fn;++Nr)mn[vn+Nr]=Xr=Vr(xr[Sr+Nr],Xr)}function rn(xr,Sr,Nr,Xr,fn){var mn;for(mn=0;mn<Nr;++mn){var vn=xr[Sr+mn],Cn=vn>>8&255,_n=16711935&(_n=(_n=16711935&vn)+((Cn<<16)+Cn));Xr[fn+mn]=(4278255360&vn)+_n>>>0}}function cn(xr,Sr){Sr.jd=xr>>0&255,Sr.hd=xr>>8&255,Sr.ud=xr>>16&255}function pn(xr,Sr,Nr,Xr,fn,mn){var vn;for(vn=0;vn<Xr;++vn){var Cn=Sr[Nr+vn],_n=Cn>>>8,Pn=Cn,qn=255&(qn=(qn=Cn>>>16)+((xr.jd<<24>>24)*(_n<<24>>24)>>>5));Pn=255&(Pn=(Pn=Pn+((xr.hd<<24>>24)*(_n<<24>>24)>>>5))+((xr.ud<<24>>24)*(qn<<24>>24)>>>5)),fn[mn+vn]=(4278255360&Cn)+(qn<<16)+Pn}}function Mr(xr,Sr,Nr,Xr,fn){dr[Sr]=function(mn,vn,Cn,_n,Pn,qn,Jn,ei,Yn){for(_n=Jn;_n<ei;++_n)for(Jn=0;Jn<Yn;++Jn)Pn[qn++]=fn(Cn[Xr(mn[vn++])])},dr[xr]=function(mn,vn,Cn,_n,Pn,qn,Jn){var ei=8>>mn.b,Yn=mn.Ea,Ai=mn.K[0],ai=mn.w;if(8>ei)for(mn=(1<<mn.b)-1,ai=(1<<ei)-1;vn<Cn;++vn){var Vn,Qn=0;for(Vn=0;Vn<Yn;++Vn)Vn&mn||(Qn=Xr(_n[Pn++])),qn[Jn++]=fn(Ai[Qn&ai]),Qn>>=ei}else dr["VP8LMapColor"+Nr](_n,Pn,Ai,ai,qn,Jn,vn,Cn,Yn)}}function gr(xr,Sr,Nr,Xr,fn){for(Nr=Sr+Nr;Sr<Nr;){var mn=xr[Sr++];Xr[fn++]=mn>>16&255,Xr[fn++]=mn>>8&255,Xr[fn++]=mn>>0&255}}function Br(xr,Sr,Nr,Xr,fn){for(Nr=Sr+Nr;Sr<Nr;){var mn=xr[Sr++];Xr[fn++]=mn>>16&255,Xr[fn++]=mn>>8&255,Xr[fn++]=mn>>0&255,Xr[fn++]=mn>>24&255}}function Hr(xr,Sr,Nr,Xr,fn){for(Nr=Sr+Nr;Sr<Nr;){var mn=(vn=xr[Sr++])>>16&240|vn>>12&15,vn=vn>>0&240|vn>>28&15;Xr[fn++]=mn,Xr[fn++]=vn}}function Kr(xr,Sr,Nr,Xr,fn){for(Nr=Sr+Nr;Sr<Nr;){var mn=(vn=xr[Sr++])>>16&248|vn>>13&7,vn=vn>>5&224|vn>>3&31;Xr[fn++]=mn,Xr[fn++]=vn}}function Dr(xr,Sr,Nr,Xr,fn){for(Nr=Sr+Nr;Sr<Nr;){var mn=xr[Sr++];Xr[fn++]=mn>>0&255,Xr[fn++]=mn>>8&255,Xr[fn++]=mn>>16&255}}function qr(xr,Sr,Nr,Xr,fn,mn){if(mn==0)for(Nr=Sr+Nr;Sr<Nr;)$r(Xr,((mn=xr[Sr++])[0]>>24|mn[1]>>8&65280|mn[2]<<8&16711680|mn[3]<<24)>>>0),fn+=32;else Ee(Xr,fn,xr,Sr,Nr)}function Ur(xr,Sr){dr[Sr][0]=dr[xr+"0"],dr[Sr][1]=dr[xr+"1"],dr[Sr][2]=dr[xr+"2"],dr[Sr][3]=dr[xr+"3"],dr[Sr][4]=dr[xr+"4"],dr[Sr][5]=dr[xr+"5"],dr[Sr][6]=dr[xr+"6"],dr[Sr][7]=dr[xr+"7"],dr[Sr][8]=dr[xr+"8"],dr[Sr][9]=dr[xr+"9"],dr[Sr][10]=dr[xr+"10"],dr[Sr][11]=dr[xr+"11"],dr[Sr][12]=dr[xr+"12"],dr[Sr][13]=dr[xr+"13"],dr[Sr][14]=dr[xr+"0"],dr[Sr][15]=dr[xr+"0"]}function Bn(xr){return xr==xu||xr==jl||xr==tc||xr==rc}function In(){this.eb=[],this.size=this.A=this.fb=0}function Rr(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function Mn(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new In,this.f.kb=new Rr,this.sd=null}function En(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Yr(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Sn(xr){return alert("todo:WebPSamplerProcessPlane"),xr.T}function xn(xr,Sr){var Nr=xr.T,Xr=Sr.ba.f.RGBA,fn=Xr.eb,mn=Xr.fb+xr.ka*Xr.A,vn=Es[Sr.ba.S],Cn=xr.y,_n=xr.O,Pn=xr.f,qn=xr.N,Jn=xr.ea,ei=xr.W,Yn=Sr.cc,Ai=Sr.dc,ai=Sr.Mc,Vn=Sr.Nc,Qn=xr.ka,ci=xr.ka+xr.T,ui=xr.U,fi=ui+1>>1;for(Qn==0?vn(Cn,_n,null,null,Pn,qn,Jn,ei,Pn,qn,Jn,ei,fn,mn,null,null,ui):(vn(Sr.ec,Sr.fc,Cn,_n,Yn,Ai,ai,Vn,Pn,qn,Jn,ei,fn,mn-Xr.A,fn,mn,ui),++Nr);Qn+2<ci;Qn+=2)Yn=Pn,Ai=qn,ai=Jn,Vn=ei,qn+=xr.Rc,ei+=xr.Rc,mn+=2*Xr.A,vn(Cn,(_n+=2*xr.fa)-xr.fa,Cn,_n,Yn,Ai,ai,Vn,Pn,qn,Jn,ei,fn,mn-Xr.A,fn,mn,ui);return _n+=xr.fa,xr.j+ci<xr.o?(Ee(Sr.ec,Sr.fc,Cn,_n,ui),Ee(Sr.cc,Sr.dc,Pn,qn,fi),Ee(Sr.Mc,Sr.Nc,Jn,ei,fi),Nr--):1&ci||vn(Cn,_n,null,null,Pn,qn,Jn,ei,Pn,qn,Jn,ei,fn,mn+Xr.A,null,null,ui),Nr}function On(xr,Sr,Nr){var Xr=xr.F,fn=[xr.J];if(Xr!=null){var mn=xr.U,vn=Sr.ba.S,Cn=vn==Ju||vn==tc;Sr=Sr.ba.f.RGBA;var _n=[0],Pn=xr.ka;_n[0]=xr.T,xr.Kb&&(Pn==0?--_n[0]:(--Pn,fn[0]-=xr.width),xr.j+xr.ka+xr.T==xr.o&&(_n[0]=xr.o-xr.j-Pn));var qn=Sr.eb;Pn=Sr.fb+Pn*Sr.A,xr=go(Xr,fn[0],xr.width,mn,_n,qn,Pn+(Cn?0:3),Sr.A),Ae(Nr==_n),xr&&Bn(vn)&&bs(qn,Pn,Cn,mn,_n,Sr.A)}return 0}function Nn(xr){var Sr=xr.ma,Nr=Sr.ba.S,Xr=11>Nr,fn=Nr==sl||Nr==Xu||Nr==Ju||Nr==Co||Nr==12||Bn(Nr);if(Sr.memory=null,Sr.Ib=null,Sr.Jb=null,Sr.Nd=null,!au(Sr.Oa,xr,fn?11:12))return 0;if(fn&&Bn(Nr)&&mi(),xr.da)alert("todo:use_scaling");else{if(Xr){if(Sr.Ib=Sn,xr.Kb){if(Nr=xr.U+1>>1,Sr.memory=Ce(xr.U+2*Nr),Sr.memory==null)return 0;Sr.ec=Sr.memory,Sr.fc=0,Sr.cc=Sr.ec,Sr.dc=Sr.fc+xr.U,Sr.Mc=Sr.cc,Sr.Nc=Sr.dc+Nr,Sr.Ib=xn,mi()}}else alert("todo:EmitYUV");fn&&(Sr.Jb=On,Xr&&Xn())}if(Xr&&!Zo){for(xr=0;256>xr;++xr)Cs[xr]=89858*(xr-128)+ra>>ja,Ss[xr]=-22014*(xr-128)+ra,Eu[xr]=-45773*(xr-128),Dl[xr]=113618*(xr-128)+ra>>ja;for(xr=vo;xr<bo;++xr)Sr=76283*(xr-16)+ra>>ja,Pc[xr-vo]=Ts(Sr,255),bd[xr-vo]=Ts(Sr+8>>4,15);Zo=1}return 1}function kr(xr){var Sr=xr.ma,Nr=xr.U,Xr=xr.T;return Ae(!(1&xr.ka)),0>=Nr||0>=Xr?0:(Nr=Sr.Ib(xr,Sr),Sr.Jb!=null&&Sr.Jb(xr,Sr,Nr),Sr.Dc+=Nr,1)}function Er(xr){xr.ma.memory=null}function Tr(xr,Sr,Nr,Xr){return Fe(xr,8)!=47?0:(Sr[0]=Fe(xr,14)+1,Nr[0]=Fe(xr,14)+1,Xr[0]=Fe(xr,1),Fe(xr,3)!=0?0:!xr.h)}function Qr(xr,Sr){if(4>xr)return xr+1;var Nr=xr-2>>1;return(2+(1&xr)<<Nr)+Fe(Sr,Nr)+1}function Zr(xr,Sr){return 120<Sr?Sr-120:1<=(Nr=((Nr=Jd[Sr-1])>>4)*xr+(8-(15&Nr)))?Nr:1;var Nr}function yn(xr,Sr,Nr){var Xr=ur(Nr),fn=xr[Sr+=255&Xr].g-8;return 0<fn&&(Ar(Nr,Nr.u+8),Xr=ur(Nr),Sr+=xr[Sr].value,Sr+=Xr&(1<<fn)-1),Ar(Nr,Nr.u+xr[Sr].g),xr[Sr].value}function An(xr,Sr,Nr){return Nr.g+=xr.g,Nr.value+=xr.value<<Sr>>>0,Ae(8>=Nr.g),xr.g}function Tn(xr,Sr,Nr){var Xr=xr.xc;return Ae((Sr=Xr==0?0:xr.vc[xr.md*(Nr>>Xr)+(Sr>>Xr)])<xr.Wb),xr.Ya[Sr]}function ti(xr,Sr,Nr,Xr){var fn=xr.ab,mn=xr.c*Sr,vn=xr.C;Sr=vn+Sr;var Cn=Nr,_n=Xr;for(Xr=xr.Ta,Nr=xr.Ua;0<fn--;){var Pn=xr.gc[fn],qn=vn,Jn=Sr,ei=Cn,Yn=_n,Ai=(_n=Xr,Cn=Nr,Pn.Ea);switch(Ae(qn<Jn),Ae(Jn<=Pn.nc),Pn.hc){case 2:_c(ei,Yn,(Jn-qn)*Ai,_n,Cn);break;case 0:var ai=qn,Vn=Jn,Qn=_n,ci=Cn,ui=(Si=Pn).Ea;ai==0&&(Il(ei,Yn,null,null,1,Qn,ci),nn(ei,Yn+1,0,0,ui-1,Qn,ci+1),Yn+=ui,ci+=ui,++ai);for(var fi=1<<Si.b,Ii=fi-1,Ci=an(ui,Si.b),qi=Si.K,Si=Si.w+(ai>>Si.b)*Ci;ai<Vn;){var lo=qi,uo=Si,ao=1;for(Sa(ei,Yn,Qn,ci-ui,1,Qn,ci);ao<ui;){var io=(ao&~Ii)+fi;io>ui&&(io=ui),(0,fa[lo[uo++]>>8&15])(ei,Yn+ +ao,Qn,ci+ao-ui,io-ao,Qn,ci+ao),ao=io}Yn+=ui,ci+=ui,++ai&Ii||(Si+=Ci)}Jn!=Pn.nc&&Ee(_n,Cn-Ai,_n,Cn+(Jn-qn-1)*Ai,Ai);break;case 1:for(Ai=ei,Vn=Yn,ui=(ei=Pn.Ea)-(ci=ei&~(Qn=(Yn=1<<Pn.b)-1)),ai=an(ei,Pn.b),fi=Pn.K,Pn=Pn.w+(qn>>Pn.b)*ai;qn<Jn;){for(Ii=fi,Ci=Pn,qi=new un,Si=Vn+ci,lo=Vn+ei;Vn<Si;)cn(Ii[Ci++],qi),rl(qi,Ai,Vn,Yn,_n,Cn),Vn+=Yn,Cn+=Yn;Vn<lo&&(cn(Ii[Ci++],qi),rl(qi,Ai,Vn,ui,_n,Cn),Vn+=ui,Cn+=ui),++qn&Qn||(Pn+=ai)}break;case 3:if(ei==_n&&Yn==Cn&&0<Pn.b){for(Vn=_n,ei=Ai=Cn+(Jn-qn)*Ai-(ci=(Jn-qn)*an(Pn.Ea,Pn.b)),Yn=_n,Qn=Cn,ai=[],ci=(ui=ci)-1;0<=ci;--ci)ai[ci]=Yn[Qn+ci];for(ci=ui-1;0<=ci;--ci)Vn[ei+ci]=ai[ci];cs(Pn,qn,Jn,_n,Ai,_n,Cn)}else cs(Pn,qn,Jn,ei,Yn,_n,Cn)}Cn=Xr,_n=Nr}_n!=Nr&&Ee(Xr,Nr,Cn,_n,mn)}function Fn(xr,Sr){var Nr=xr.V,Xr=xr.Ba+xr.c*xr.C,fn=Sr-xr.C;if(Ae(Sr<=xr.l.o),Ae(16>=fn),0<fn){var mn=xr.l,vn=xr.Ta,Cn=xr.Ua,_n=mn.width;if(ti(xr,fn,Nr,Xr),fn=Cn=[Cn],Ae((Nr=xr.C)<(Xr=Sr)),Ae(mn.v<mn.va),Xr>mn.o&&(Xr=mn.o),Nr<mn.j){var Pn=mn.j-Nr;Nr=mn.j,fn[0]+=Pn*_n}if(Nr>=Xr?Nr=0:(fn[0]+=4*mn.v,mn.ka=Nr-mn.j,mn.U=mn.va-mn.v,mn.T=Xr-Nr,Nr=1),Nr){if(Cn=Cn[0],11>(Nr=xr.ca).S){var qn=Nr.f.RGBA,Jn=(Xr=Nr.S,fn=mn.U,mn=mn.T,Pn=qn.eb,qn.A),ei=mn;for(qn=qn.fb+xr.Ma*qn.A;0<ei--;){var Yn=vn,Ai=Cn,ai=fn,Vn=Pn,Qn=qn;switch(Xr){case Rc:ds(Yn,Ai,ai,Vn,Qn);break;case sl:ts(Yn,Ai,ai,Vn,Qn);break;case xu:ts(Yn,Ai,ai,Vn,Qn),bs(Vn,Qn,0,ai,1,0);break;case md:Ia(Yn,Ai,ai,Vn,Qn);break;case Xu:qr(Yn,Ai,ai,Vn,Qn,1);break;case jl:qr(Yn,Ai,ai,Vn,Qn,1),bs(Vn,Qn,0,ai,1,0);break;case Ju:qr(Yn,Ai,ai,Vn,Qn,0);break;case tc:qr(Yn,Ai,ai,Vn,Qn,0),bs(Vn,Qn,1,ai,1,0);break;case Co:il(Yn,Ai,ai,Vn,Qn);break;case rc:il(Yn,Ai,ai,Vn,Qn),Eo(Vn,Qn,ai,1,0);break;case Ic:Ra(Yn,Ai,ai,Vn,Qn);break;default:Ae(0)}Cn+=_n,qn+=Jn}xr.Ma+=mn}else alert("todo:EmitRescaledRowsYUVA");Ae(xr.Ma<=Nr.height)}}xr.C=Sr,Ae(xr.C<=xr.i)}function $n(xr){var Sr;if(0<xr.ua)return 0;for(Sr=0;Sr<xr.Wb;++Sr){var Nr=xr.Ya[Sr].G,Xr=xr.Ya[Sr].H;if(0<Nr[1][Xr[1]+0].g||0<Nr[2][Xr[2]+0].g||0<Nr[3][Xr[3]+0].g)return 0}return 1}function Zn(xr,Sr,Nr,Xr,fn,mn){if(xr.Z!=0){var vn=xr.qd,Cn=xr.rd;for(Ae(ns[xr.Z]!=null);Sr<Nr;++Sr)ns[xr.Z](vn,Cn,Xr,fn,Xr,fn,mn),vn=Xr,Cn=fn,fn+=mn;xr.qd=vn,xr.rd=Cn}}function Dn(xr,Sr){var Nr=xr.l.ma,Xr=Nr.Z==0||Nr.Z==1?xr.l.j:xr.C;if(Xr=xr.C<Xr?Xr:xr.C,Ae(Sr<=xr.l.o),Sr>Xr){var fn=xr.l.width,mn=Nr.ca,vn=Nr.tb+fn*Xr,Cn=xr.V,_n=xr.Ba+xr.c*Xr,Pn=xr.gc;Ae(xr.ab==1),Ae(Pn[0].hc==3),Ku(Pn[0],Xr,Sr,Cn,_n,mn,vn),Zn(Nr,Xr,Sr,mn,vn,fn)}xr.C=xr.Ma=Sr}function Wn(xr,Sr,Nr,Xr,fn,mn,vn){var Cn=xr.$/Xr,_n=xr.$%Xr,Pn=xr.m,qn=xr.s,Jn=Nr+xr.$,ei=Jn;fn=Nr+Xr*fn;var Yn=Nr+Xr*mn,Ai=280+qn.ua,ai=xr.Pb?Cn:16777216,Vn=0<qn.ua?qn.Wa:null,Qn=qn.wc,ci=Jn<Yn?Tn(qn,_n,Cn):null;Ae(xr.C<mn),Ae(Yn<=fn);var ui=!1;e:for(;;){for(;ui||Jn<Yn;){var fi=0;if(Cn>=ai){var Ii=Jn-Nr;Ae((ai=xr).Pb),ai.wd=ai.m,ai.xd=Ii,0<ai.s.ua&&tn(ai.s.Wa,ai.s.vb),ai=Cn+Tc}if(_n&Qn||(ci=Tn(qn,_n,Cn)),Ae(ci!=null),ci.Qb&&(Sr[Jn]=ci.qb,ui=!0),!ui)if(vr(Pn),ci.jc){fi=Pn,Ii=Sr;var Ci=Jn,qi=ci.pd[ur(fi)&jo-1];Ae(ci.jc),256>qi.g?(Ar(fi,fi.u+qi.g),Ii[Ci]=qi.value,fi=0):(Ar(fi,fi.u+qi.g-256),Ae(256<=qi.value),fi=qi.value),fi==0&&(ui=!0)}else fi=yn(ci.G[0],ci.H[0],Pn);if(Pn.h)break;if(ui||256>fi){if(!ui)if(ci.nd)Sr[Jn]=(ci.qb|fi<<8)>>>0;else{if(vr(Pn),ui=yn(ci.G[1],ci.H[1],Pn),vr(Pn),Ii=yn(ci.G[2],ci.H[2],Pn),Ci=yn(ci.G[3],ci.H[3],Pn),Pn.h)break;Sr[Jn]=(Ci<<24|ui<<16|fi<<8|Ii)>>>0}if(ui=!1,++Jn,++_n>=Xr&&(_n=0,++Cn,vn!=null&&Cn<=mn&&!(Cn%16)&&vn(xr,Cn),Vn!=null))for(;ei<Jn;)fi=Sr[ei++],Vn.X[(506832829*fi&4294967295)>>>Vn.Mb]=fi}else if(280>fi){if(fi=Qr(fi-256,Pn),Ii=yn(ci.G[4],ci.H[4],Pn),vr(Pn),Ii=Zr(Xr,Ii=Qr(Ii,Pn)),Pn.h)break;if(Jn-Nr<Ii||fn-Jn<fi)break e;for(Ci=0;Ci<fi;++Ci)Sr[Jn+Ci]=Sr[Jn+Ci-Ii];for(Jn+=fi,_n+=fi;_n>=Xr;)_n-=Xr,++Cn,vn!=null&&Cn<=mn&&!(Cn%16)&&vn(xr,Cn);if(Ae(Jn<=fn),_n&Qn&&(ci=Tn(qn,_n,Cn)),Vn!=null)for(;ei<Jn;)fi=Sr[ei++],Vn.X[(506832829*fi&4294967295)>>>Vn.Mb]=fi}else{if(!(fi<Ai))break e;for(ui=fi-280,Ae(Vn!=null);ei<Jn;)fi=Sr[ei++],Vn.X[(506832829*fi&4294967295)>>>Vn.Mb]=fi;fi=Jn,Ae(!(ui>>>(Ii=Vn).Xa)),Sr[fi]=Ii.X[ui],ui=!0}ui||Ae(Pn.h==fr(Pn))}if(xr.Pb&&Pn.h&&Jn<fn)Ae(xr.m.h),xr.a=5,xr.m=xr.wd,xr.$=xr.xd,0<xr.s.ua&&tn(xr.s.vb,xr.s.Wa);else{if(Pn.h)break e;vn!=null&&vn(xr,Cn>mn?mn:Cn),xr.a=0,xr.$=Jn-Nr}return 1}return xr.a=3,0}function zn(xr){Ae(xr!=null),xr.vc=null,xr.yc=null,xr.Ya=null;var Sr=xr.Wa;Sr!=null&&(Sr.X=null),xr.vb=null,Ae(xr!=null)}function Gn(){var xr=new Kc;return xr==null?null:(xr.a=0,xr.xb=bu,Ur("Predictor","VP8LPredictors"),Ur("Predictor","VP8LPredictors_C"),Ur("PredictorAdd","VP8LPredictorsAdd"),Ur("PredictorAdd","VP8LPredictorsAdd_C"),_c=rn,rl=pn,ds=gr,ts=Br,il=Hr,Ra=Kr,Ia=Dr,dr.VP8LMapColor32b=hu,dr.VP8LMapColor8b=pu,xr)}function di(xr,Sr,Nr,Xr,fn){var mn=1,vn=[xr],Cn=[Sr],_n=Xr.m,Pn=Xr.s,qn=null,Jn=0;e:for(;;){if(Nr)for(;mn&&Fe(_n,1);){var ei=vn,Yn=Cn,Ai=Xr,ai=1,Vn=Ai.m,Qn=Ai.gc[Ai.ab],ci=Fe(Vn,2);if(Ai.Oc&1<<ci)mn=0;else{switch(Ai.Oc|=1<<ci,Qn.hc=ci,Qn.Ea=ei[0],Qn.nc=Yn[0],Qn.K=[null],++Ai.ab,Ae(4>=Ai.ab),ci){case 0:case 1:Qn.b=Fe(Vn,3)+2,ai=di(an(Qn.Ea,Qn.b),an(Qn.nc,Qn.b),0,Ai,Qn.K),Qn.K=Qn.K[0];break;case 3:var ui,fi=Fe(Vn,8)+1,Ii=16<fi?0:4<fi?1:2<fi?2:3;if(ei[0]=an(Qn.Ea,Ii),Qn.b=Ii,ui=ai=di(fi,1,0,Ai,Qn.K)){var Ci,qi=fi,Si=Qn,lo=1<<(8>>Si.b),uo=Ce(lo);if(uo==null)ui=0;else{var ao=Si.K[0],io=Si.w;for(uo[0]=Si.K[0][0],Ci=1;Ci<1*qi;++Ci)uo[Ci]=Vr(ao[io+Ci],uo[Ci-1]);for(;Ci<4*lo;++Ci)uo[Ci]=0;Si.K[0]=null,Si.K[0]=uo,ui=1}}ai=ui;break;case 2:break;default:Ae(0)}mn=ai}}if(vn=vn[0],Cn=Cn[0],mn&&Fe(_n,1)&&!(mn=1<=(Jn=Fe(_n,4))&&11>=Jn)){Xr.a=3;break e}var xo;if(xo=mn)t:{var wo,Yi,To,ps=Xr,$o=vn,zo=Cn,po=Jn,os=Nr,ss=ps.m,Po=ps.s,Go=[null],Xo=1,_s=0,zs=vd[po];r:for(;;){if(os&&Fe(ss,1)){var Mo=Fe(ss,3)+2,No=an($o,Mo),ks=an(zo,Mo),cl=No*ks;if(!di(No,ks,0,ps,Go))break r;for(Go=Go[0],Po.xc=Mo,wo=0;wo<cl;++wo){var $a=Go[wo]>>8&65535;Go[wo]=$a,$a>=Xo&&(Xo=$a+1)}}if(ss.h)break r;for(Yi=0;5>Yi;++Yi){var Ao=Fl[Yi];!Yi&&0<po&&(Ao+=1<<po),_s<Ao&&(_s=Ao)}var ga=_e(Xo*zs,Me),Mc=Xo,rd=_e(Mc,De);if(rd==null)var Gs=null;else Ae(65536>=Mc),Gs=rd;var Vs=Ce(_s);if(Gs==null||Vs==null||ga==null){ps.a=1;break r}var Ul=ga;for(wo=To=0;wo<Xo;++wo){var Qs=Gs[wo],La=Qs.G,ql=Qs.H,Cu=0,js=1,Su=0;for(Yi=0;5>Yi;++Yi){Ao=Fl[Yi],La[Yi]=Ul,ql[Yi]=To,!Yi&&0<po&&(Ao+=1<<po);i:{var dl,Oa=Ao,_u=ps,va=Vs,Ed=Ul,nd=To,So=0,na=_u.m,id=Fe(na,1);if(Se(va,0,0,Oa),id){var od=Fe(na,1)+1,kc=Fe(na,1),jc=Fe(na,kc==0?1:8);va[jc]=1,od==2&&(va[jc=Fe(na,8)]=1);var xa=1}else{var Ro=Ce(19),Uo=Fe(na,4)+4;if(19<Uo){_u.a=3;var Lo=0;break i}for(dl=0;dl<Uo;++dl)Ro[Xd[dl]]=Fe(na,3);var Ru=void 0,Da=void 0,Iu=_u,of=Ro,Vo=Oa,Fc=va,dc=0,ya=Iu.m,ia=8,Fs=_e(128,Me);n:for(;Ke(Fs,0,7,of,19);){if(Fe(ya,1)){var fc=2+2*Fe(ya,3);if((Ru=2+Fe(ya,fc))>Vo)break n}else Ru=Vo;for(Da=0;Da<Vo&&Ru--;){vr(ya);var $c=Fs[0+(127&ur(ya))];Ar(ya,ya.u+$c.g);var hl=$c.value;if(16>hl)Fc[Da++]=hl,hl!=0&&(ia=hl);else{var Cd=hl==16,sd=hl-16,Sd=Bc[sd],ad=Fe(ya,nc[sd])+Sd;if(Da+ad>Vo)break n;for(var _d=Cd?ia:0;0<ad--;)Fc[Da++]=_d}}dc=1;break n}dc||(Iu.a=3),xa=dc}(xa=xa&&!na.h)&&(So=Ke(Ed,nd,8,va,Oa)),xa&&So!=0?Lo=So:(_u.a=3,Lo=0)}if(Lo==0)break r;if(js&&gd[Yi]==1&&(js=Ul[To].g==0),Cu+=Ul[To].g,To+=Lo,3>=Yi){var Bu,Lc=Vs[0];for(Bu=1;Bu<Ao;++Bu)Vs[Bu]>Lc&&(Lc=Vs[Bu]);Su+=Lc}}if(Qs.nd=js,Qs.Qb=0,js&&(Qs.qb=(La[3][ql[3]+0].value<<24|La[1][ql[1]+0].value<<16|La[2][ql[2]+0].value)>>>0,Cu==0&&256>La[0][ql[0]+0].value&&(Qs.Qb=1,Qs.qb+=La[0][ql[0]+0].value<<8)),Qs.jc=!Qs.Qb&&6>Su,Qs.jc){var hc,$s=Qs;for(hc=0;hc<jo;++hc){var Na=hc,oa=$s.pd[Na],Hl=$s.G[0][$s.H[0]+Na];256<=Hl.value?(oa.g=Hl.g+256,oa.value=Hl.value):(oa.g=0,oa.value=0,Na>>=An(Hl,8,oa),Na>>=An($s.G[1][$s.H[1]+Na],16,oa),Na>>=An($s.G[2][$s.H[2]+Na],0,oa),An($s.G[3][$s.H[3]+Na],24,oa))}}}Po.vc=Go,Po.Wb=Xo,Po.Ya=Gs,Po.yc=ga,xo=1;break t}xo=0}if(!(mn=xo)){Xr.a=3;break e}if(0<Jn){if(Pn.ua=1<<Jn,!dn(Pn.Wa,Jn)){Xr.a=1,mn=0;break e}}else Pn.ua=0;var Oc=Xr,Dc=vn,Rd=Cn,Nc=Oc.s,Uc=Nc.xc;if(Oc.c=Dc,Oc.i=Rd,Nc.md=an(Dc,Uc),Nc.wc=Uc==0?-1:(1<<Uc)-1,Nr){Xr.xb=ma;break e}if((qn=Ce(vn*Cn))==null){Xr.a=1,mn=0;break e}mn=(mn=Wn(Xr,qn,0,vn,Cn,Cn,null))&&!_n.h;break e}return mn?(fn!=null?fn[0]=qn:(Ae(qn==null),Ae(Nr)),Xr.$=0,Nr||zn(Pn)):zn(Pn),mn}function hi(xr,Sr){var Nr=xr.c*xr.i,Xr=Nr+Sr+16*Sr;return Ae(xr.c<=Sr),xr.V=Ce(Xr),xr.V==null?(xr.Ta=null,xr.Ua=0,xr.a=1,0):(xr.Ta=xr.V,xr.Ua=xr.Ba+Nr+Sr,1)}function Ei(xr,Sr){var Nr=xr.C,Xr=Sr-Nr,fn=xr.V,mn=xr.Ba+xr.c*Nr;for(Ae(Sr<=xr.l.o);0<Xr;){var vn=16<Xr?16:Xr,Cn=xr.l.ma,_n=xr.l.width,Pn=_n*vn,qn=Cn.ca,Jn=Cn.tb+_n*Nr,ei=xr.Ta,Yn=xr.Ua;ti(xr,vn,fn,mn),Fo(ei,Yn,qn,Jn,Pn),Zn(Cn,Nr,Nr+vn,qn,Jn,_n),Xr-=vn,fn+=vn*xr.c,Nr+=vn}Ae(Nr==Sr),xr.C=xr.Ma=Sr}function _i(){this.ub=this.yd=this.td=this.Rb=0}function Mi(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function ji(){this.Fb=this.Bb=this.Cb=0,this.Zb=Ce(4),this.Lb=Ce(4)}function no(){this.Yb=function(){var xr=[];return function Sr(Nr,Xr,fn){for(var mn=fn[Xr],vn=0;vn<mn&&(Nr.push(fn.length>Xr+1?[]:0),!(fn.length<Xr+1));vn++)Sr(Nr[vn],Xr+1,fn)}(xr,0,[3,11]),xr}()}function Li(){this.jb=Ce(3),this.Wc=Ie([4,8],no),this.Xc=Ie([4,17],no)}function oo(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new Ce(4),this.od=new Ce(4)}function Vi(){this.ld=this.La=this.dd=this.tc=0}function eo(){this.Na=this.la=0}function yi(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Di(){this.ad=Ce(384),this.Za=0,this.Ob=Ce(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Hi(){this.uc=this.M=this.Nb=0,this.wa=Array(new Vi),this.Y=0,this.ya=Array(new Di),this.aa=0,this.l=new Ni}function Wi(){this.y=Ce(16),this.f=Ce(8),this.ea=Ce(8)}function Ki(){this.cb=this.a=0,this.sc="",this.m=new Ze,this.Od=new _i,this.Kc=new Mi,this.ed=new oo,this.Qa=new ji,this.Ic=this.$c=this.Aa=0,this.D=new Hi,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=_e(8,Ze),this.ia=0,this.pb=_e(4,yi),this.Pa=new Li,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Wi),this.Hd=0,this.rb=Array(new eo),this.sb=0,this.wa=Array(new Vi),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Di),this.L=this.aa=0,this.gd=Ie([4,2],Vi),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Ni(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function _o(){var xr=new Ki;return xr!=null&&(xr.a=0,xr.sc="OK",xr.cb=0,xr.Xb=0,$l||($l=Al)),xr}function yo(xr,Sr,Nr){return xr.a==0&&(xr.a=Sr,xr.sc=Nr,xr.cb=0),0}function Vl(xr,Sr,Nr){return 3<=Nr&&xr[Sr+0]==157&&xr[Sr+1]==1&&xr[Sr+2]==42}function xc(xr,Sr){if(xr==null)return 0;if(xr.a=0,xr.sc="OK",Sr==null)return yo(xr,2,"null VP8Io passed to VP8GetHeaders()");var Nr=Sr.data,Xr=Sr.w,fn=Sr.ha;if(4>fn)return yo(xr,7,"Truncated header.");var mn=Nr[Xr+0]|Nr[Xr+1]<<8|Nr[Xr+2]<<16,vn=xr.Od;if(vn.Rb=!(1&mn),vn.td=mn>>1&7,vn.yd=mn>>4&1,vn.ub=mn>>5,3<vn.td)return yo(xr,3,"Incorrect keyframe parameters.");if(!vn.yd)return yo(xr,4,"Frame not displayable.");Xr+=3,fn-=3;var Cn=xr.Kc;if(vn.Rb){if(7>fn)return yo(xr,7,"cannot parse picture header");if(!Vl(Nr,Xr,fn))return yo(xr,3,"Bad code word");Cn.c=16383&(Nr[Xr+4]<<8|Nr[Xr+3]),Cn.Td=Nr[Xr+4]>>6,Cn.i=16383&(Nr[Xr+6]<<8|Nr[Xr+5]),Cn.Ud=Nr[Xr+6]>>6,Xr+=7,fn-=7,xr.za=Cn.c+15>>4,xr.Ub=Cn.i+15>>4,Sr.width=Cn.c,Sr.height=Cn.i,Sr.Da=0,Sr.j=0,Sr.v=0,Sr.va=Sr.width,Sr.o=Sr.height,Sr.da=0,Sr.ib=Sr.width,Sr.hb=Sr.height,Sr.U=Sr.width,Sr.T=Sr.height,Se((mn=xr.Pa).jb,0,255,mn.jb.length),Ae((mn=xr.Qa)!=null),mn.Cb=0,mn.Bb=0,mn.Fb=1,Se(mn.Zb,0,0,mn.Zb.length),Se(mn.Lb,0,0,mn.Lb)}if(vn.ub>fn)return yo(xr,7,"bad partition length");He(mn=xr.m,Nr,Xr,vn.ub),Xr+=vn.ub,fn-=vn.ub,vn.Rb&&(Cn.Ld=br(mn),Cn.Kd=br(mn)),Cn=xr.Qa;var _n,Pn=xr.Pa;if(Ae(mn!=null),Ae(Cn!=null),Cn.Cb=br(mn),Cn.Cb){if(Cn.Bb=br(mn),br(mn)){for(Cn.Fb=br(mn),_n=0;4>_n;++_n)Cn.Zb[_n]=br(mn)?Ye(mn,7):0;for(_n=0;4>_n;++_n)Cn.Lb[_n]=br(mn)?Ye(mn,6):0}if(Cn.Bb)for(_n=0;3>_n;++_n)Pn.jb[_n]=br(mn)?Ve(mn,8):255}else Cn.Bb=0;if(mn.Ka)return yo(xr,3,"cannot parse segment header");if((Cn=xr.ed).zd=br(mn),Cn.Tb=Ve(mn,6),Cn.wb=Ve(mn,3),Cn.Pc=br(mn),Cn.Pc&&br(mn)){for(Pn=0;4>Pn;++Pn)br(mn)&&(Cn.vd[Pn]=Ye(mn,6));for(Pn=0;4>Pn;++Pn)br(mn)&&(Cn.od[Pn]=Ye(mn,6))}if(xr.L=Cn.Tb==0?0:Cn.zd?1:2,mn.Ka)return yo(xr,3,"cannot parse filter header");var qn=fn;if(fn=_n=Xr,Xr=_n+qn,Cn=qn,xr.Xb=(1<<Ve(xr.m,2))-1,qn<3*(Pn=xr.Xb))Nr=7;else{for(_n+=3*Pn,Cn-=3*Pn,qn=0;qn<Pn;++qn){var Jn=Nr[fn+0]|Nr[fn+1]<<8|Nr[fn+2]<<16;Jn>Cn&&(Jn=Cn),He(xr.Jc[+qn],Nr,_n,Jn),_n+=Jn,Cn-=Jn,fn+=3}He(xr.Jc[+Pn],Nr,_n,Cn),Nr=_n<Xr?0:5}if(Nr!=0)return yo(xr,Nr,"cannot parse partitions");for(Nr=Ve(_n=xr.m,7),fn=br(_n)?Ye(_n,4):0,Xr=br(_n)?Ye(_n,4):0,Cn=br(_n)?Ye(_n,4):0,Pn=br(_n)?Ye(_n,4):0,_n=br(_n)?Ye(_n,4):0,qn=xr.Qa,Jn=0;4>Jn;++Jn){if(qn.Cb){var ei=qn.Zb[Jn];qn.Fb||(ei+=Nr)}else{if(0<Jn){xr.pb[Jn]=xr.pb[0];continue}ei=Nr}var Yn=xr.pb[Jn];Yn.Sc[0]=yu[Ts(ei+fn,127)],Yn.Sc[1]=oc[Ts(ei+0,127)],Yn.Eb[0]=2*yu[Ts(ei+Xr,127)],Yn.Eb[1]=101581*oc[Ts(ei+Cn,127)]>>16,8>Yn.Eb[1]&&(Yn.Eb[1]=8),Yn.Qc[0]=yu[Ts(ei+Pn,117)],Yn.Qc[1]=oc[Ts(ei+_n,127)],Yn.lc=ei+_n}if(!vn.Rb)return yo(xr,4,"Not a key frame.");for(br(mn),vn=xr.Pa,Nr=0;4>Nr;++Nr){for(fn=0;8>fn;++fn)for(Xr=0;3>Xr;++Xr)for(Cn=0;11>Cn;++Cn)Pn=_r(mn,tf[Nr][fn][Xr][Cn])?Ve(mn,8):yd[Nr][fn][Xr][Cn],vn.Wc[Nr][fn].Yb[Xr][Cn]=Pn;for(fn=0;17>fn;++fn)vn.Xc[Nr][fn]=vn.Wc[Nr][Xc[fn]]}return xr.kc=br(mn),xr.kc&&(xr.Bd=Ve(mn,8)),xr.cb=1}function Al(xr,Sr,Nr,Xr,fn,mn,vn){var Cn=Sr[fn].Yb[Nr];for(Nr=0;16>fn;++fn){if(!_r(xr,Cn[Nr+0]))return fn;for(;!_r(xr,Cn[Nr+1]);)if(Cn=Sr[++fn].Yb[0],Nr=0,fn==16)return 16;var _n=Sr[fn+1].Yb;if(_r(xr,Cn[Nr+2])){var Pn=xr,qn=0;if(_r(Pn,(ei=Cn)[(Jn=Nr)+3]))if(_r(Pn,ei[Jn+6])){for(Cn=0,Jn=2*(qn=_r(Pn,ei[Jn+8]))+(ei=_r(Pn,ei[Jn+9+qn])),qn=0,ei=Yc[Jn];ei[Cn];++Cn)qn+=qn+_r(Pn,ei[Cn]);qn+=3+(8<<Jn)}else _r(Pn,ei[Jn+7])?(qn=7+2*_r(Pn,165),qn+=_r(Pn,145)):qn=5+_r(Pn,159);else qn=_r(Pn,ei[Jn+4])?3+_r(Pn,ei[Jn+5]):2;Cn=_n[2]}else qn=1,Cn=_n[1];_n=vn+Zc[fn],0>(Pn=xr).b&&yr(Pn);var Jn,ei=Pn.b,Yn=(Jn=Pn.Ca>>1)-(Pn.I>>ei)>>31;--Pn.b,Pn.Ca+=Yn,Pn.Ca|=1,Pn.I-=(Jn+1&Yn)<<ei,mn[_n]=((qn^Yn)-Yn)*Xr[(0<fn)+0]}return 16}function Ga(xr){var Sr=xr.rb[xr.sb-1];Sr.la=0,Sr.Na=0,Se(xr.zc,0,0,xr.zc.length),xr.ja=0}function ml(xr,Sr){if(xr==null)return 0;if(Sr==null)return yo(xr,2,"NULL VP8Io parameter in VP8Decode().");if(!xr.cb&&!xc(xr,Sr))return 0;if(Ae(xr.cb),Sr.ac==null||Sr.ac(Sr)){Sr.ob&&(xr.L=0);var Nr=Nl[xr.L];if(xr.L==2?(xr.yb=0,xr.zb=0):(xr.yb=Sr.v-Nr>>4,xr.zb=Sr.j-Nr>>4,0>xr.yb&&(xr.yb=0),0>xr.zb&&(xr.zb=0)),xr.Va=Sr.o+15+Nr>>4,xr.Hb=Sr.va+15+Nr>>4,xr.Hb>xr.za&&(xr.Hb=xr.za),xr.Va>xr.Ub&&(xr.Va=xr.Ub),0<xr.L){var Xr=xr.ed;for(Nr=0;4>Nr;++Nr){var fn;if(xr.Qa.Cb){var mn=xr.Qa.Lb[Nr];xr.Qa.Fb||(mn+=Xr.Tb)}else mn=Xr.Tb;for(fn=0;1>=fn;++fn){var vn=xr.gd[Nr][fn],Cn=mn;if(Xr.Pc&&(Cn+=Xr.vd[0],fn&&(Cn+=Xr.od[0])),0<(Cn=0>Cn?0:63<Cn?63:Cn)){var _n=Cn;0<Xr.wb&&(_n=4<Xr.wb?_n>>2:_n>>1)>9-Xr.wb&&(_n=9-Xr.wb),1>_n&&(_n=1),vn.dd=_n,vn.tc=2*Cn+_n,vn.ld=40<=Cn?2:15<=Cn?1:0}else vn.tc=0;vn.La=fn}}}Nr=0}else yo(xr,6,"Frame setup failed"),Nr=xr.a;if(Nr=Nr==0){if(Nr){xr.$c=0,0<xr.Aa||(xr.Ic=Fa);e:{Nr=xr.Ic,Xr=4*(_n=xr.za);var Pn=32*_n,qn=_n+1,Jn=0<xr.L?_n*(0<xr.Aa?2:1):0,ei=(xr.Aa==2?2:1)*_n;if((vn=Xr+832+(fn=3*(16*Nr+Nl[xr.L])/2*Pn)+(mn=xr.Fa!=null&&0<xr.Fa.length?xr.Kc.c*xr.Kc.i:0))!=vn)Nr=0;else{if(vn>xr.Vb){if(xr.Vb=0,xr.Ec=Ce(vn),xr.Fc=0,xr.Ec==null){Nr=yo(xr,1,"no memory during frame initialization.");break e}xr.Vb=vn}vn=xr.Ec,Cn=xr.Fc,xr.Ac=vn,xr.Bc=Cn,Cn+=Xr,xr.Gd=_e(Pn,Wi),xr.Hd=0,xr.rb=_e(qn+1,eo),xr.sb=1,xr.wa=Jn?_e(Jn,Vi):null,xr.Y=0,xr.D.Nb=0,xr.D.wa=xr.wa,xr.D.Y=xr.Y,0<xr.Aa&&(xr.D.Y+=_n),Ae(!0),xr.oc=vn,xr.pc=Cn,Cn+=832,xr.ya=_e(ei,Di),xr.aa=0,xr.D.ya=xr.ya,xr.D.aa=xr.aa,xr.Aa==2&&(xr.D.aa+=_n),xr.R=16*_n,xr.B=8*_n,_n=(Pn=Nl[xr.L])*xr.R,Pn=Pn/2*xr.B,xr.sa=vn,xr.ta=Cn+_n,xr.qa=xr.sa,xr.ra=xr.ta+16*Nr*xr.R+Pn,xr.Ha=xr.qa,xr.Ia=xr.ra+8*Nr*xr.B+Pn,xr.$c=0,Cn+=fn,xr.mb=mn?vn:null,xr.nb=mn?Cn:null,Ae(Cn+mn<=xr.Fc+xr.Vb),Ga(xr),Se(xr.Ac,xr.Bc,0,Xr),Nr=1}}if(Nr){if(Sr.ka=0,Sr.y=xr.sa,Sr.O=xr.ta,Sr.f=xr.qa,Sr.N=xr.ra,Sr.ea=xr.Ha,Sr.Vd=xr.Ia,Sr.fa=xr.R,Sr.Rc=xr.B,Sr.F=null,Sr.J=0,!Zu){for(Nr=-255;255>=Nr;++Nr)Do[255+Nr]=0>Nr?-Nr:Nr;for(Nr=-1020;1020>=Nr;++Nr)pa[1020+Nr]=-128>Nr?-128:127<Nr?127:Nr;for(Nr=-112;112>=Nr;++Nr)gu[112+Nr]=-16>Nr?-16:15<Nr?15:Nr;for(Nr=-255;510>=Nr;++Nr)kl[255+Nr]=0>Nr?0:255<Nr?255:Nr;Zu=1}Au=co,Ba=Du,Ta=Va,rs=Qc,Ps=Wl,fo=Ou,Bl=tu,Yu=Ho,Tl=Cl,Pl=Gu,Ml=Ya,Ms=Za,Pa=Sl,ha=ru,Ma=Js,ka=Ds,ol=Ns,Yo=Ec,Hs[0]=ca,Hs[1]=yc,Hs[2]=bl,Hs[3]=ua,Hs[4]=qu,Hs[5]=Yl,Hs[6]=Wa,Hs[7]=Zl,Hs[8]=wc,Hs[9]=Xl,hs[0]=yl,hs[1]=bc,hs[2]=aa,hs[3]=xl,hs[4]=Io,hs[5]=la,hs[6]=Zs,ws[0]=Bs,ws[1]=Uu,ws[2]=Wc,ws[3]=Ea,ws[4]=wl,ws[5]=Jl,ws[6]=Hu,Nr=1}else Nr=0}Nr&&(Nr=function(Yn,Ai){for(Yn.M=0;Yn.M<Yn.Va;++Yn.M){var ai,Vn=Yn.Jc[Yn.M&Yn.Xb],Qn=Yn.m,ci=Yn;for(ai=0;ai<ci.za;++ai){var ui=Qn,fi=ci,Ii=fi.Ac,Ci=fi.Bc+4*ai,qi=fi.zc,Si=fi.ya[fi.aa+ai];if(fi.Qa.Bb?Si.$b=_r(ui,fi.Pa.jb[0])?2+_r(ui,fi.Pa.jb[2]):_r(ui,fi.Pa.jb[1]):Si.$b=0,fi.kc&&(Si.Ad=_r(ui,fi.Bd)),Si.Za=!_r(ui,145)+0,Si.Za){var lo=Si.Ob,uo=0;for(fi=0;4>fi;++fi){var ao,io=qi[0+fi];for(ao=0;4>ao;++ao){io=ef[Ii[Ci+ao]][io];for(var xo=xd[_r(ui,io[0])];0<xo;)xo=xd[2*xo+_r(ui,io[xo])];io=-xo,Ii[Ci+ao]=io}Ee(lo,uo,Ii,Ci,4),uo+=4,qi[0+fi]=io}}else io=_r(ui,156)?_r(ui,128)?1:3:_r(ui,163)?2:0,Si.Ob[0]=io,Se(Ii,Ci,io,4),Se(qi,0,io,4);Si.Dd=_r(ui,142)?_r(ui,114)?_r(ui,183)?1:3:2:0}if(ci.m.Ka)return yo(Yn,7,"Premature end-of-partition0 encountered.");for(;Yn.ja<Yn.za;++Yn.ja){if(ci=Vn,ui=(Qn=Yn).rb[Qn.sb-1],Ii=Qn.rb[Qn.sb+Qn.ja],ai=Qn.ya[Qn.aa+Qn.ja],Ci=Qn.kc?ai.Ad:0)ui.la=Ii.la=0,ai.Za||(ui.Na=Ii.Na=0),ai.Hc=0,ai.Gc=0,ai.ia=0;else{var wo,Yi;if(ui=Ii,Ii=ci,Ci=Qn.Pa.Xc,qi=Qn.ya[Qn.aa+Qn.ja],Si=Qn.pb[qi.$b],fi=qi.ad,lo=0,uo=Qn.rb[Qn.sb-1],io=ao=0,Se(fi,lo,0,384),qi.Za)var To=0,ps=Ci[3];else{xo=Ce(16);var $o=ui.Na+uo.Na;if($o=$l(Ii,Ci[1],$o,Si.Eb,0,xo,0),ui.Na=uo.Na=(0<$o)+0,1<$o)Au(xo,0,fi,lo);else{var zo=xo[0]+3>>3;for(xo=0;256>xo;xo+=16)fi[lo+xo]=zo}To=1,ps=Ci[0]}var po=15&ui.la,os=15&uo.la;for(xo=0;4>xo;++xo){var ss=1&os;for(zo=Yi=0;4>zo;++zo)po=po>>1|(ss=($o=$l(Ii,ps,$o=ss+(1&po),Si.Sc,To,fi,lo))>To)<<7,Yi=Yi<<2|(3<$o?3:1<$o?2:fi[lo+0]!=0),lo+=16;po>>=4,os=os>>1|ss<<7,ao=(ao<<8|Yi)>>>0}for(ps=po,To=os>>4,wo=0;4>wo;wo+=2){for(Yi=0,po=ui.la>>4+wo,os=uo.la>>4+wo,xo=0;2>xo;++xo){for(ss=1&os,zo=0;2>zo;++zo)$o=ss+(1&po),po=po>>1|(ss=0<($o=$l(Ii,Ci[2],$o,Si.Qc,0,fi,lo)))<<3,Yi=Yi<<2|(3<$o?3:1<$o?2:fi[lo+0]!=0),lo+=16;po>>=2,os=os>>1|ss<<5}io|=Yi<<4*wo,ps|=po<<4<<wo,To|=(240&os)<<wo}ui.la=ps,uo.la=To,qi.Hc=ao,qi.Gc=io,qi.ia=43690&io?0:Si.ia,Ci=!(ao|io)}if(0<Qn.L&&(Qn.wa[Qn.Y+Qn.ja]=Qn.gd[ai.$b][ai.Za],Qn.wa[Qn.Y+Qn.ja].La|=!Ci),ci.Ka)return yo(Yn,7,"Premature end-of-file encountered.")}if(Ga(Yn),Qn=Ai,ci=1,ai=(Vn=Yn).D,ui=0<Vn.L&&Vn.M>=Vn.zb&&Vn.M<=Vn.Va,Vn.Aa==0)e:{if(ai.M=Vn.M,ai.uc=ui,su(Vn,ai),ci=1,ai=(Yi=Vn.D).Nb,ui=(io=Nl[Vn.L])*Vn.R,Ii=io/2*Vn.B,xo=16*ai*Vn.R,zo=8*ai*Vn.B,Ci=Vn.sa,qi=Vn.ta-ui+xo,Si=Vn.qa,fi=Vn.ra-Ii+zo,lo=Vn.Ha,uo=Vn.Ia-Ii+zo,os=(po=Yi.M)==0,ao=po>=Vn.Va-1,Vn.Aa==2&&su(Vn,Yi),Yi.uc)for(ss=($o=Vn).D.M,Ae($o.D.uc),Yi=$o.yb;Yi<$o.Hb;++Yi){To=Yi,ps=ss;var Po=(Go=(Ao=$o).D).Nb;wo=Ao.R;var Go=Go.wa[Go.Y+To],Xo=Ao.sa,_s=Ao.ta+16*Po*wo+16*To,zs=Go.dd,Mo=Go.tc;if(Mo!=0)if(Ae(3<=Mo),Ao.L==1)0<To&&ka(Xo,_s,wo,Mo+4),Go.La&&Yo(Xo,_s,wo,Mo),0<ps&&Ma(Xo,_s,wo,Mo+4),Go.La&&ol(Xo,_s,wo,Mo);else{var No=Ao.B,ks=Ao.qa,cl=Ao.ra+8*Po*No+8*To,$a=Ao.Ha,Ao=Ao.Ia+8*Po*No+8*To;Po=Go.ld,0<To&&(Yu(Xo,_s,wo,Mo+4,zs,Po),Pl(ks,cl,$a,Ao,No,Mo+4,zs,Po)),Go.La&&(Ms(Xo,_s,wo,Mo,zs,Po),ha(ks,cl,$a,Ao,No,Mo,zs,Po)),0<ps&&(Bl(Xo,_s,wo,Mo+4,zs,Po),Tl(ks,cl,$a,Ao,No,Mo+4,zs,Po)),Go.La&&(Ml(Xo,_s,wo,Mo,zs,Po),Pa(ks,cl,$a,Ao,No,Mo,zs,Po))}}if(Vn.ia&&alert("todo:DitherRow"),Qn.put!=null){if(Yi=16*po,po=16*(po+1),os?(Qn.y=Vn.sa,Qn.O=Vn.ta+xo,Qn.f=Vn.qa,Qn.N=Vn.ra+zo,Qn.ea=Vn.Ha,Qn.W=Vn.Ia+zo):(Yi-=io,Qn.y=Ci,Qn.O=qi,Qn.f=Si,Qn.N=fi,Qn.ea=lo,Qn.W=uo),ao||(po-=io),po>Qn.o&&(po=Qn.o),Qn.F=null,Qn.J=null,Vn.Fa!=null&&0<Vn.Fa.length&&Yi<po&&(Qn.J=Qu(Vn,Qn,Yi,po-Yi),Qn.F=Vn.mb,Qn.F==null&&Qn.F.length==0)){ci=yo(Vn,3,"Could not decode alpha data.");break e}Yi<Qn.j&&(io=Qn.j-Yi,Yi=Qn.j,Ae(!(1&io)),Qn.O+=Vn.R*io,Qn.N+=Vn.B*(io>>1),Qn.W+=Vn.B*(io>>1),Qn.F!=null&&(Qn.J+=Qn.width*io)),Yi<po&&(Qn.O+=Qn.v,Qn.N+=Qn.v>>1,Qn.W+=Qn.v>>1,Qn.F!=null&&(Qn.J+=Qn.v),Qn.ka=Yi-Qn.j,Qn.U=Qn.va-Qn.v,Qn.T=po-Yi,ci=Qn.put(Qn))}ai+1!=Vn.Ic||ao||(Ee(Vn.sa,Vn.ta-ui,Ci,qi+16*Vn.R,ui),Ee(Vn.qa,Vn.ra-Ii,Si,fi+8*Vn.B,Ii),Ee(Vn.Ha,Vn.Ia-Ii,lo,uo+8*Vn.B,Ii))}if(!ci)return yo(Yn,6,"Output aborted.")}return 1}(xr,Sr)),Sr.bc!=null&&Sr.bc(Sr),Nr&=1}return Nr?(xr.cb=0,Nr):0}function vs(xr,Sr,Nr,Xr,fn){fn=xr[Sr+Nr+32*Xr]+(fn>>3),xr[Sr+Nr+32*Xr]=-256&fn?0>fn?0:255:fn}function Ql(xr,Sr,Nr,Xr,fn,mn){vs(xr,Sr,0,Nr,Xr+fn),vs(xr,Sr,1,Nr,Xr+mn),vs(xr,Sr,2,Nr,Xr-mn),vs(xr,Sr,3,Nr,Xr-fn)}function xs(xr){return(20091*xr>>16)+xr}function vl(xr,Sr,Nr,Xr){var fn,mn=0,vn=Ce(16);for(fn=0;4>fn;++fn){var Cn=xr[Sr+0]+xr[Sr+8],_n=xr[Sr+0]-xr[Sr+8],Pn=(35468*xr[Sr+4]>>16)-xs(xr[Sr+12]),qn=xs(xr[Sr+4])+(35468*xr[Sr+12]>>16);vn[mn+0]=Cn+qn,vn[mn+1]=_n+Pn,vn[mn+2]=_n-Pn,vn[mn+3]=Cn-qn,mn+=4,Sr++}for(fn=mn=0;4>fn;++fn)Cn=(xr=vn[mn+0]+4)+vn[mn+8],_n=xr-vn[mn+8],Pn=(35468*vn[mn+4]>>16)-xs(vn[mn+12]),vs(Nr,Xr,0,0,Cn+(qn=xs(vn[mn+4])+(35468*vn[mn+12]>>16))),vs(Nr,Xr,1,0,_n+Pn),vs(Nr,Xr,2,0,_n-Pn),vs(Nr,Xr,3,0,Cn-qn),mn++,Xr+=32}function Ou(xr,Sr,Nr,Xr){var fn=xr[Sr+0]+4,mn=35468*xr[Sr+4]>>16,vn=xs(xr[Sr+4]),Cn=35468*xr[Sr+1]>>16;Ql(Nr,Xr,0,fn+vn,xr=xs(xr[Sr+1]),Cn),Ql(Nr,Xr,1,fn+mn,xr,Cn),Ql(Nr,Xr,2,fn-mn,xr,Cn),Ql(Nr,Xr,3,fn-vn,xr,Cn)}function Du(xr,Sr,Nr,Xr,fn){vl(xr,Sr,Nr,Xr),fn&&vl(xr,Sr+16,Nr,Xr+4)}function Va(xr,Sr,Nr,Xr){Ba(xr,Sr+0,Nr,Xr,1),Ba(xr,Sr+32,Nr,Xr+128,1)}function Qc(xr,Sr,Nr,Xr){var fn;for(xr=xr[Sr+0]+4,fn=0;4>fn;++fn)for(Sr=0;4>Sr;++Sr)vs(Nr,Xr,Sr,fn,xr)}function Wl(xr,Sr,Nr,Xr){xr[Sr+0]&&rs(xr,Sr+0,Nr,Xr),xr[Sr+16]&&rs(xr,Sr+16,Nr,Xr+4),xr[Sr+32]&&rs(xr,Sr+32,Nr,Xr+128),xr[Sr+48]&&rs(xr,Sr+48,Nr,Xr+128+4)}function co(xr,Sr,Nr,Xr){var fn,mn=Ce(16);for(fn=0;4>fn;++fn){var vn=xr[Sr+0+fn]+xr[Sr+12+fn],Cn=xr[Sr+4+fn]+xr[Sr+8+fn],_n=xr[Sr+4+fn]-xr[Sr+8+fn],Pn=xr[Sr+0+fn]-xr[Sr+12+fn];mn[0+fn]=vn+Cn,mn[8+fn]=vn-Cn,mn[4+fn]=Pn+_n,mn[12+fn]=Pn-_n}for(fn=0;4>fn;++fn)vn=(xr=mn[0+4*fn]+3)+mn[3+4*fn],Cn=mn[1+4*fn]+mn[2+4*fn],_n=mn[1+4*fn]-mn[2+4*fn],Pn=xr-mn[3+4*fn],Nr[Xr+0]=vn+Cn>>3,Nr[Xr+16]=Pn+_n>>3,Nr[Xr+32]=vn-Cn>>3,Nr[Xr+48]=Pn-_n>>3,Xr+=64}function Kl(xr,Sr,Nr){var Xr,fn=Sr-32,mn=fs,vn=255-xr[fn-1];for(Xr=0;Xr<Nr;++Xr){var Cn,_n=mn,Pn=vn+xr[Sr-1];for(Cn=0;Cn<Nr;++Cn)xr[Sr+Cn]=_n[Pn+xr[fn+Cn]];Sr+=32}}function yc(xr,Sr){Kl(xr,Sr,4)}function Uu(xr,Sr){Kl(xr,Sr,8)}function bc(xr,Sr){Kl(xr,Sr,16)}function aa(xr,Sr){var Nr;for(Nr=0;16>Nr;++Nr)Ee(xr,Sr+32*Nr,xr,Sr-32,16)}function xl(xr,Sr){var Nr;for(Nr=16;0<Nr;--Nr)Se(xr,Sr,xr[Sr-1],16),Sr+=32}function Qa(xr,Sr,Nr){var Xr;for(Xr=0;16>Xr;++Xr)Se(Sr,Nr+32*Xr,xr,16)}function yl(xr,Sr){var Nr,Xr=16;for(Nr=0;16>Nr;++Nr)Xr+=xr[Sr-1+32*Nr]+xr[Sr+Nr-32];Qa(Xr>>5,xr,Sr)}function Io(xr,Sr){var Nr,Xr=8;for(Nr=0;16>Nr;++Nr)Xr+=xr[Sr-1+32*Nr];Qa(Xr>>4,xr,Sr)}function la(xr,Sr){var Nr,Xr=8;for(Nr=0;16>Nr;++Nr)Xr+=xr[Sr+Nr-32];Qa(Xr>>4,xr,Sr)}function Zs(xr,Sr){Qa(128,xr,Sr)}function Qi(xr,Sr,Nr){return xr+2*Sr+Nr+2>>2}function bl(xr,Sr){var Nr,Xr=Sr-32;for(Xr=new Uint8Array([Qi(xr[Xr-1],xr[Xr+0],xr[Xr+1]),Qi(xr[Xr+0],xr[Xr+1],xr[Xr+2]),Qi(xr[Xr+1],xr[Xr+2],xr[Xr+3]),Qi(xr[Xr+2],xr[Xr+3],xr[Xr+4])]),Nr=0;4>Nr;++Nr)Ee(xr,Sr+32*Nr,Xr,0,Xr.length)}function ua(xr,Sr){var Nr=xr[Sr-1],Xr=xr[Sr-1+32],fn=xr[Sr-1+64],mn=xr[Sr-1+96];$r(xr,Sr+0,16843009*Qi(xr[Sr-1-32],Nr,Xr)),$r(xr,Sr+32,16843009*Qi(Nr,Xr,fn)),$r(xr,Sr+64,16843009*Qi(Xr,fn,mn)),$r(xr,Sr+96,16843009*Qi(fn,mn,mn))}function ca(xr,Sr){var Nr,Xr=4;for(Nr=0;4>Nr;++Nr)Xr+=xr[Sr+Nr-32]+xr[Sr-1+32*Nr];for(Xr>>=3,Nr=0;4>Nr;++Nr)Se(xr,Sr+32*Nr,Xr,4)}function qu(xr,Sr){var Nr=xr[Sr-1+0],Xr=xr[Sr-1+32],fn=xr[Sr-1+64],mn=xr[Sr-1-32],vn=xr[Sr+0-32],Cn=xr[Sr+1-32],_n=xr[Sr+2-32],Pn=xr[Sr+3-32];xr[Sr+0+96]=Qi(Xr,fn,xr[Sr-1+96]),xr[Sr+1+96]=xr[Sr+0+64]=Qi(Nr,Xr,fn),xr[Sr+2+96]=xr[Sr+1+64]=xr[Sr+0+32]=Qi(mn,Nr,Xr),xr[Sr+3+96]=xr[Sr+2+64]=xr[Sr+1+32]=xr[Sr+0+0]=Qi(vn,mn,Nr),xr[Sr+3+64]=xr[Sr+2+32]=xr[Sr+1+0]=Qi(Cn,vn,mn),xr[Sr+3+32]=xr[Sr+2+0]=Qi(_n,Cn,vn),xr[Sr+3+0]=Qi(Pn,_n,Cn)}function Wa(xr,Sr){var Nr=xr[Sr+1-32],Xr=xr[Sr+2-32],fn=xr[Sr+3-32],mn=xr[Sr+4-32],vn=xr[Sr+5-32],Cn=xr[Sr+6-32],_n=xr[Sr+7-32];xr[Sr+0+0]=Qi(xr[Sr+0-32],Nr,Xr),xr[Sr+1+0]=xr[Sr+0+32]=Qi(Nr,Xr,fn),xr[Sr+2+0]=xr[Sr+1+32]=xr[Sr+0+64]=Qi(Xr,fn,mn),xr[Sr+3+0]=xr[Sr+2+32]=xr[Sr+1+64]=xr[Sr+0+96]=Qi(fn,mn,vn),xr[Sr+3+32]=xr[Sr+2+64]=xr[Sr+1+96]=Qi(mn,vn,Cn),xr[Sr+3+64]=xr[Sr+2+96]=Qi(vn,Cn,_n),xr[Sr+3+96]=Qi(Cn,_n,_n)}function Yl(xr,Sr){var Nr=xr[Sr-1+0],Xr=xr[Sr-1+32],fn=xr[Sr-1+64],mn=xr[Sr-1-32],vn=xr[Sr+0-32],Cn=xr[Sr+1-32],_n=xr[Sr+2-32],Pn=xr[Sr+3-32];xr[Sr+0+0]=xr[Sr+1+64]=mn+vn+1>>1,xr[Sr+1+0]=xr[Sr+2+64]=vn+Cn+1>>1,xr[Sr+2+0]=xr[Sr+3+64]=Cn+_n+1>>1,xr[Sr+3+0]=_n+Pn+1>>1,xr[Sr+0+96]=Qi(fn,Xr,Nr),xr[Sr+0+64]=Qi(Xr,Nr,mn),xr[Sr+0+32]=xr[Sr+1+96]=Qi(Nr,mn,vn),xr[Sr+1+32]=xr[Sr+2+96]=Qi(mn,vn,Cn),xr[Sr+2+32]=xr[Sr+3+96]=Qi(vn,Cn,_n),xr[Sr+3+32]=Qi(Cn,_n,Pn)}function Zl(xr,Sr){var Nr=xr[Sr+0-32],Xr=xr[Sr+1-32],fn=xr[Sr+2-32],mn=xr[Sr+3-32],vn=xr[Sr+4-32],Cn=xr[Sr+5-32],_n=xr[Sr+6-32],Pn=xr[Sr+7-32];xr[Sr+0+0]=Nr+Xr+1>>1,xr[Sr+1+0]=xr[Sr+0+64]=Xr+fn+1>>1,xr[Sr+2+0]=xr[Sr+1+64]=fn+mn+1>>1,xr[Sr+3+0]=xr[Sr+2+64]=mn+vn+1>>1,xr[Sr+0+32]=Qi(Nr,Xr,fn),xr[Sr+1+32]=xr[Sr+0+96]=Qi(Xr,fn,mn),xr[Sr+2+32]=xr[Sr+1+96]=Qi(fn,mn,vn),xr[Sr+3+32]=xr[Sr+2+96]=Qi(mn,vn,Cn),xr[Sr+3+64]=Qi(vn,Cn,_n),xr[Sr+3+96]=Qi(Cn,_n,Pn)}function Xl(xr,Sr){var Nr=xr[Sr-1+0],Xr=xr[Sr-1+32],fn=xr[Sr-1+64],mn=xr[Sr-1+96];xr[Sr+0+0]=Nr+Xr+1>>1,xr[Sr+2+0]=xr[Sr+0+32]=Xr+fn+1>>1,xr[Sr+2+32]=xr[Sr+0+64]=fn+mn+1>>1,xr[Sr+1+0]=Qi(Nr,Xr,fn),xr[Sr+3+0]=xr[Sr+1+32]=Qi(Xr,fn,mn),xr[Sr+3+32]=xr[Sr+1+64]=Qi(fn,mn,mn),xr[Sr+3+64]=xr[Sr+2+64]=xr[Sr+0+96]=xr[Sr+1+96]=xr[Sr+2+96]=xr[Sr+3+96]=mn}function wc(xr,Sr){var Nr=xr[Sr-1+0],Xr=xr[Sr-1+32],fn=xr[Sr-1+64],mn=xr[Sr-1+96],vn=xr[Sr-1-32],Cn=xr[Sr+0-32],_n=xr[Sr+1-32],Pn=xr[Sr+2-32];xr[Sr+0+0]=xr[Sr+2+32]=Nr+vn+1>>1,xr[Sr+0+32]=xr[Sr+2+64]=Xr+Nr+1>>1,xr[Sr+0+64]=xr[Sr+2+96]=fn+Xr+1>>1,xr[Sr+0+96]=mn+fn+1>>1,xr[Sr+3+0]=Qi(Cn,_n,Pn),xr[Sr+2+0]=Qi(vn,Cn,_n),xr[Sr+1+0]=xr[Sr+3+32]=Qi(Nr,vn,Cn),xr[Sr+1+32]=xr[Sr+3+64]=Qi(Xr,Nr,vn),xr[Sr+1+64]=xr[Sr+3+96]=Qi(fn,Xr,Nr),xr[Sr+1+96]=Qi(mn,fn,Xr)}function Wc(xr,Sr){var Nr;for(Nr=0;8>Nr;++Nr)Ee(xr,Sr+32*Nr,xr,Sr-32,8)}function Ea(xr,Sr){var Nr;for(Nr=0;8>Nr;++Nr)Se(xr,Sr,xr[Sr-1],8),Sr+=32}function Xs(xr,Sr,Nr){var Xr;for(Xr=0;8>Xr;++Xr)Se(Sr,Nr+32*Xr,xr,8)}function Bs(xr,Sr){var Nr,Xr=8;for(Nr=0;8>Nr;++Nr)Xr+=xr[Sr+Nr-32]+xr[Sr-1+32*Nr];Xs(Xr>>4,xr,Sr)}function Jl(xr,Sr){var Nr,Xr=4;for(Nr=0;8>Nr;++Nr)Xr+=xr[Sr+Nr-32];Xs(Xr>>3,xr,Sr)}function wl(xr,Sr){var Nr,Xr=4;for(Nr=0;8>Nr;++Nr)Xr+=xr[Sr-1+32*Nr];Xs(Xr>>3,xr,Sr)}function Hu(xr,Sr){Xs(128,xr,Sr)}function Ka(xr,Sr,Nr){var Xr=xr[Sr-Nr],fn=xr[Sr+0],mn=3*(fn-Xr)+Aa[1020+xr[Sr-2*Nr]-xr[Sr+Nr]],vn=vu[112+(mn+4>>3)];xr[Sr-Nr]=fs[255+Xr+vu[112+(mn+3>>3)]],xr[Sr+0]=fs[255+fn-vn]}function El(xr,Sr,Nr,Xr){var fn=xr[Sr+0],mn=xr[Sr+Nr];return qs[255+xr[Sr-2*Nr]-xr[Sr-Nr]]>Xr||qs[255+mn-fn]>Xr}function eu(xr,Sr,Nr,Xr){return 4*qs[255+xr[Sr-Nr]-xr[Sr+0]]+qs[255+xr[Sr-2*Nr]-xr[Sr+Nr]]<=Xr}function zu(xr,Sr,Nr,Xr,fn){var mn=xr[Sr-3*Nr],vn=xr[Sr-2*Nr],Cn=xr[Sr-Nr],_n=xr[Sr+0],Pn=xr[Sr+Nr],qn=xr[Sr+2*Nr],Jn=xr[Sr+3*Nr];return 4*qs[255+Cn-_n]+qs[255+vn-Pn]>Xr?0:qs[255+xr[Sr-4*Nr]-mn]<=fn&&qs[255+mn-vn]<=fn&&qs[255+vn-Cn]<=fn&&qs[255+Jn-qn]<=fn&&qs[255+qn-Pn]<=fn&&qs[255+Pn-_n]<=fn}function Js(xr,Sr,Nr,Xr){var fn=2*Xr+1;for(Xr=0;16>Xr;++Xr)eu(xr,Sr+Xr,Nr,fn)&&Ka(xr,Sr+Xr,Nr)}function Ds(xr,Sr,Nr,Xr){var fn=2*Xr+1;for(Xr=0;16>Xr;++Xr)eu(xr,Sr+Xr*Nr,1,fn)&&Ka(xr,Sr+Xr*Nr,1)}function Ns(xr,Sr,Nr,Xr){var fn;for(fn=3;0<fn;--fn)Js(xr,Sr+=4*Nr,Nr,Xr)}function Ec(xr,Sr,Nr,Xr){var fn;for(fn=3;0<fn;--fn)Ds(xr,Sr+=4,Nr,Xr)}function ea(xr,Sr,Nr,Xr,fn,mn,vn,Cn){for(mn=2*mn+1;0<fn--;){if(zu(xr,Sr,Nr,mn,vn))if(El(xr,Sr,Nr,Cn))Ka(xr,Sr,Nr);else{var _n=xr,Pn=Sr,qn=Nr,Jn=_n[Pn-2*qn],ei=_n[Pn-qn],Yn=_n[Pn+0],Ai=_n[Pn+qn],ai=_n[Pn+2*qn],Vn=27*(ci=Aa[1020+3*(Yn-ei)+Aa[1020+Jn-Ai]])+63>>7,Qn=18*ci+63>>7,ci=9*ci+63>>7;_n[Pn-3*qn]=fs[255+_n[Pn-3*qn]+ci],_n[Pn-2*qn]=fs[255+Jn+Qn],_n[Pn-qn]=fs[255+ei+Vn],_n[Pn+0]=fs[255+Yn-Vn],_n[Pn+qn]=fs[255+Ai-Qn],_n[Pn+2*qn]=fs[255+ai-ci]}Sr+=Xr}}function ys(xr,Sr,Nr,Xr,fn,mn,vn,Cn){for(mn=2*mn+1;0<fn--;){if(zu(xr,Sr,Nr,mn,vn))if(El(xr,Sr,Nr,Cn))Ka(xr,Sr,Nr);else{var _n=xr,Pn=Sr,qn=Nr,Jn=_n[Pn-qn],ei=_n[Pn+0],Yn=_n[Pn+qn],Ai=vu[112+((ai=3*(ei-Jn))+4>>3)],ai=vu[112+(ai+3>>3)],Vn=Ai+1>>1;_n[Pn-2*qn]=fs[255+_n[Pn-2*qn]+Vn],_n[Pn-qn]=fs[255+Jn+ai],_n[Pn+0]=fs[255+ei-Ai],_n[Pn+qn]=fs[255+Yn-Vn]}Sr+=Xr}}function tu(xr,Sr,Nr,Xr,fn,mn){ea(xr,Sr,Nr,1,16,Xr,fn,mn)}function Ho(xr,Sr,Nr,Xr,fn,mn){ea(xr,Sr,1,Nr,16,Xr,fn,mn)}function Ya(xr,Sr,Nr,Xr,fn,mn){var vn;for(vn=3;0<vn;--vn)ys(xr,Sr+=4*Nr,Nr,1,16,Xr,fn,mn)}function Za(xr,Sr,Nr,Xr,fn,mn){var vn;for(vn=3;0<vn;--vn)ys(xr,Sr+=4,1,Nr,16,Xr,fn,mn)}function Cl(xr,Sr,Nr,Xr,fn,mn,vn,Cn){ea(xr,Sr,fn,1,8,mn,vn,Cn),ea(Nr,Xr,fn,1,8,mn,vn,Cn)}function Gu(xr,Sr,Nr,Xr,fn,mn,vn,Cn){ea(xr,Sr,1,fn,8,mn,vn,Cn),ea(Nr,Xr,1,fn,8,mn,vn,Cn)}function Sl(xr,Sr,Nr,Xr,fn,mn,vn,Cn){ys(xr,Sr+4*fn,fn,1,8,mn,vn,Cn),ys(Nr,Xr+4*fn,fn,1,8,mn,vn,Cn)}function ru(xr,Sr,Nr,Xr,fn,mn,vn,Cn){ys(xr,Sr+4,1,fn,8,mn,vn,Cn),ys(Nr,Xr+4,1,fn,8,mn,vn,Cn)}function da(){this.ba=new Mn,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Yr,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Xa(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function iu(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Cc(){this.ua=0,this.Wa=new Gr,this.vb=new Gr,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new De,this.yc=new Me}function Kc(){this.xb=this.a=0,this.l=new Ni,this.ca=new Mn,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new ir,this.Pb=0,this.wd=new ir,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Cc,this.ab=0,this.gc=_e(4,iu),this.Oc=0}function ou(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Ni,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Ca(xr,Sr,Nr,Xr,fn,mn,vn){for(xr=xr==null?0:xr[Sr+0],Sr=0;Sr<vn;++Sr)fn[mn+Sr]=xr+Nr[Xr+Sr]&255,xr=fn[mn+Sr]}function Vu(xr,Sr,Nr,Xr,fn,mn,vn){var Cn;if(xr==null)Ca(null,null,Nr,Xr,fn,mn,vn);else for(Cn=0;Cn<vn;++Cn)fn[mn+Cn]=xr[Sr+Cn]+Nr[Xr+Cn]&255}function Ja(xr,Sr,Nr,Xr,fn,mn,vn){if(xr==null)Ca(null,null,Nr,Xr,fn,mn,vn);else{var Cn,_n=xr[Sr+0],Pn=_n,qn=_n;for(Cn=0;Cn<vn;++Cn)Pn=qn+(_n=xr[Sr+Cn])-Pn,qn=Nr[Xr+Cn]+(-256&Pn?0>Pn?0:255:Pn)&255,Pn=_n,fn[mn+Cn]=qn}}function Qu(xr,Sr,Nr,Xr){var fn=Sr.width,mn=Sr.o;if(Ae(xr!=null&&Sr!=null),0>Nr||0>=Xr||Nr+Xr>mn)return null;if(!xr.Cc){if(xr.ga==null){var vn;if(xr.ga=new ou,(vn=xr.ga==null)||(vn=Sr.width*Sr.o,Ae(xr.Gb.length==0),xr.Gb=Ce(vn),xr.Uc=0,xr.Gb==null?vn=0:(xr.mb=xr.Gb,xr.nb=xr.Uc,xr.rc=null,vn=1),vn=!vn),!vn){vn=xr.ga;var Cn=xr.Fa,_n=xr.P,Pn=xr.qc,qn=xr.mb,Jn=xr.nb,ei=_n+1,Yn=Pn-1,Ai=vn.l;if(Ae(Cn!=null&&qn!=null&&Sr!=null),ns[0]=null,ns[1]=Ca,ns[2]=Vu,ns[3]=Ja,vn.ca=qn,vn.tb=Jn,vn.c=Sr.width,vn.i=Sr.height,Ae(0<vn.c&&0<vn.i),1>=Pn)Sr=0;else if(vn.$a=Cn[_n+0]>>0&3,vn.Z=Cn[_n+0]>>2&3,vn.Lc=Cn[_n+0]>>4&3,_n=Cn[_n+0]>>6&3,0>vn.$a||1<vn.$a||4<=vn.Z||1<vn.Lc||_n)Sr=0;else if(Ai.put=kr,Ai.ac=Nn,Ai.bc=Er,Ai.ma=vn,Ai.width=Sr.width,Ai.height=Sr.height,Ai.Da=Sr.Da,Ai.v=Sr.v,Ai.va=Sr.va,Ai.j=Sr.j,Ai.o=Sr.o,vn.$a)e:{Ae(vn.$a==1),Sr=Gn();t:for(;;){if(Sr==null){Sr=0;break e}if(Ae(vn!=null),vn.mc=Sr,Sr.c=vn.c,Sr.i=vn.i,Sr.l=vn.l,Sr.l.ma=vn,Sr.l.width=vn.c,Sr.l.height=vn.i,Sr.a=0,St(Sr.m,Cn,ei,Yn),!di(vn.c,vn.i,1,Sr,null)||(Sr.ab==1&&Sr.gc[0].hc==3&&$n(Sr.s)?(vn.ic=1,Cn=Sr.c*Sr.i,Sr.Ta=null,Sr.Ua=0,Sr.V=Ce(Cn),Sr.Ba=0,Sr.V==null?(Sr.a=1,Sr=0):Sr=1):(vn.ic=0,Sr=hi(Sr,vn.c)),!Sr))break t;Sr=1;break e}vn.mc=null,Sr=0}else Sr=Yn>=vn.c*vn.i;vn=!Sr}if(vn)return null;xr.ga.Lc!=1?xr.Ga=0:Xr=mn-Nr}Ae(xr.ga!=null),Ae(Nr+Xr<=mn);e:{if(Sr=(Cn=xr.ga).c,mn=Cn.l.o,Cn.$a==0){if(ei=xr.rc,Yn=xr.Vc,Ai=xr.Fa,_n=xr.P+1+Nr*Sr,Pn=xr.mb,qn=xr.nb+Nr*Sr,Ae(_n<=xr.P+xr.qc),Cn.Z!=0)for(Ae(ns[Cn.Z]!=null),vn=0;vn<Xr;++vn)ns[Cn.Z](ei,Yn,Ai,_n,Pn,qn,Sr),ei=Pn,Yn=qn,qn+=Sr,_n+=Sr;else for(vn=0;vn<Xr;++vn)Ee(Pn,qn,Ai,_n,Sr),ei=Pn,Yn=qn,qn+=Sr,_n+=Sr;xr.rc=ei,xr.Vc=Yn}else{if(Ae(Cn.mc!=null),Sr=Nr+Xr,Ae((vn=Cn.mc)!=null),Ae(Sr<=vn.i),vn.C>=Sr)Sr=1;else if(Cn.ic||Xn(),Cn.ic){Cn=vn.V,ei=vn.Ba,Yn=vn.c;var ai=vn.i,Vn=(Ai=1,_n=vn.$/Yn,Pn=vn.$%Yn,qn=vn.m,Jn=vn.s,vn.$),Qn=Yn*ai,ci=Yn*Sr,ui=Jn.wc,fi=Vn<ci?Tn(Jn,Pn,_n):null;Ae(Vn<=Qn),Ae(Sr<=ai),Ae($n(Jn));t:for(;;){for(;!qn.h&&Vn<ci;){if(Pn&ui||(fi=Tn(Jn,Pn,_n)),Ae(fi!=null),vr(qn),256>(ai=yn(fi.G[0],fi.H[0],qn)))Cn[ei+Vn]=ai,++Vn,++Pn>=Yn&&(Pn=0,++_n<=Sr&&!(_n%16)&&Dn(vn,_n));else{if(!(280>ai)){Ai=0;break t}ai=Qr(ai-256,qn);var Ii,Ci=yn(fi.G[4],fi.H[4],qn);if(vr(qn),!(Vn>=(Ci=Zr(Yn,Ci=Qr(Ci,qn)))&&Qn-Vn>=ai)){Ai=0;break t}for(Ii=0;Ii<ai;++Ii)Cn[ei+Vn+Ii]=Cn[ei+Vn+Ii-Ci];for(Vn+=ai,Pn+=ai;Pn>=Yn;)Pn-=Yn,++_n<=Sr&&!(_n%16)&&Dn(vn,_n);Vn<ci&&Pn&ui&&(fi=Tn(Jn,Pn,_n))}Ae(qn.h==fr(qn))}Dn(vn,_n>Sr?Sr:_n);break t}!Ai||qn.h&&Vn<Qn?(Ai=0,vn.a=qn.h?5:3):vn.$=Vn,Sr=Ai}else Sr=Wn(vn,vn.V,vn.Ba,vn.c,vn.i,Sr,Ei);if(!Sr){Xr=0;break e}}Nr+Xr>=mn&&(xr.Cc=1),Xr=1}if(!Xr)return null;if(xr.Cc&&((Xr=xr.ga)!=null&&(Xr.mc=null),xr.ga=null,0<xr.Ga))return alert("todo:WebPDequantizeLevels"),null}return xr.nb+Nr*fn}function jr(xr,Sr,Nr,Xr,fn,mn){for(;0<fn--;){var vn,Cn=xr,_n=Sr+(Nr?1:0),Pn=xr,qn=Sr+(Nr?0:3);for(vn=0;vn<Xr;++vn){var Jn=Pn[qn+4*vn];Jn!=255&&(Jn*=32897,Cn[_n+4*vn+0]=Cn[_n+4*vn+0]*Jn>>23,Cn[_n+4*vn+1]=Cn[_n+4*vn+1]*Jn>>23,Cn[_n+4*vn+2]=Cn[_n+4*vn+2]*Jn>>23)}Sr+=mn}}function hn(xr,Sr,Nr,Xr,fn){for(;0<Xr--;){var mn;for(mn=0;mn<Nr;++mn){var vn=xr[Sr+2*mn+0],Cn=15&(Pn=xr[Sr+2*mn+1]),_n=4369*Cn,Pn=(240&Pn|Pn>>4)*_n>>16;xr[Sr+2*mn+0]=(240&vn|vn>>4)*_n>>16&240|(15&vn|vn<<4)*_n>>16>>4&15,xr[Sr+2*mn+1]=240&Pn|Cn}Sr+=fn}}function kn(xr,Sr,Nr,Xr,fn,mn,vn,Cn){var _n,Pn,qn=255;for(Pn=0;Pn<fn;++Pn){for(_n=0;_n<Xr;++_n){var Jn=xr[Sr+_n];mn[vn+4*_n]=Jn,qn&=Jn}Sr+=Nr,vn+=Cn}return qn!=255}function Un(xr,Sr,Nr,Xr,fn){var mn;for(mn=0;mn<fn;++mn)Nr[Xr+mn]=xr[Sr+mn]>>8}function Xn(){bs=jr,Eo=hn,go=kn,Fo=Un}function li(xr,Sr,Nr){dr[xr]=function(Xr,fn,mn,vn,Cn,_n,Pn,qn,Jn,ei,Yn,Ai,ai,Vn,Qn,ci,ui){var fi,Ii=ui-1>>1,Ci=Cn[_n+0]|Pn[qn+0]<<16,qi=Jn[ei+0]|Yn[Ai+0]<<16;Ae(Xr!=null);var Si=3*Ci+qi+131074>>2;for(Sr(Xr[fn+0],255&Si,Si>>16,ai,Vn),mn!=null&&(Si=3*qi+Ci+131074>>2,Sr(mn[vn+0],255&Si,Si>>16,Qn,ci)),fi=1;fi<=Ii;++fi){var lo=Cn[_n+fi]|Pn[qn+fi]<<16,uo=Jn[ei+fi]|Yn[Ai+fi]<<16,ao=Ci+lo+qi+uo+524296,io=ao+2*(lo+qi)>>3;Si=io+Ci>>1,Ci=(ao=ao+2*(Ci+uo)>>3)+lo>>1,Sr(Xr[fn+2*fi-1],255&Si,Si>>16,ai,Vn+(2*fi-1)*Nr),Sr(Xr[fn+2*fi-0],255&Ci,Ci>>16,ai,Vn+(2*fi-0)*Nr),mn!=null&&(Si=ao+qi>>1,Ci=io+uo>>1,Sr(mn[vn+2*fi-1],255&Si,Si>>16,Qn,ci+(2*fi-1)*Nr),Sr(mn[vn+2*fi+0],255&Ci,Ci>>16,Qn,ci+(2*fi+0)*Nr)),Ci=lo,qi=uo}1&ui||(Si=3*Ci+qi+131074>>2,Sr(Xr[fn+ui-1],255&Si,Si>>16,ai,Vn+(ui-1)*Nr),mn!=null&&(Si=3*qi+Ci+131074>>2,Sr(mn[vn+ui-1],255&Si,Si>>16,Qn,ci+(ui-1)*Nr)))}}function mi(){Es[Rc]=rf,Es[sl]=al,Es[md]=nf,Es[Xu]=wu,Es[Ju]=Ol,Es[Co]=uc,Es[Ic]=Jc,Es[xu]=al,Es[jl]=wu,Es[tc]=Ol,Es[rc]=uc}function Ri(xr){return xr&-16384?0>xr?0:255:xr>>ul}function Ui(xr,Sr){return Ri((19077*xr>>8)+(26149*Sr>>8)-14234)}function ro(xr,Sr,Nr){return Ri((19077*xr>>8)-(6419*Sr>>8)-(13320*Nr>>8)+8708)}function Ji(xr,Sr){return Ri((19077*xr>>8)+(33050*Sr>>8)-17685)}function so(xr,Sr,Nr,Xr,fn){Xr[fn+0]=Ui(xr,Nr),Xr[fn+1]=ro(xr,Sr,Nr),Xr[fn+2]=Ji(xr,Sr)}function Bo(xr,Sr,Nr,Xr,fn){Xr[fn+0]=Ji(xr,Sr),Xr[fn+1]=ro(xr,Sr,Nr),Xr[fn+2]=Ui(xr,Nr)}function ko(xr,Sr,Nr,Xr,fn){var mn=ro(xr,Sr,Nr);Sr=mn<<3&224|Ji(xr,Sr)>>3,Xr[fn+0]=248&Ui(xr,Nr)|mn>>5,Xr[fn+1]=Sr}function Oo(xr,Sr,Nr,Xr,fn){var mn=240&Ji(xr,Sr)|15;Xr[fn+0]=240&Ui(xr,Nr)|ro(xr,Sr,Nr)>>4,Xr[fn+1]=mn}function es(xr,Sr,Nr,Xr,fn){Xr[fn+0]=255,so(xr,Sr,Nr,Xr,fn+1)}function Wo(xr,Sr,Nr,Xr,fn){Bo(xr,Sr,Nr,Xr,fn),Xr[fn+3]=255}function ta(xr,Sr,Nr,Xr,fn){so(xr,Sr,Nr,Xr,fn),Xr[fn+3]=255}function Ts(xr,Sr){return 0>xr?0:xr>Sr?Sr:xr}function Us(xr,Sr,Nr){dr[xr]=function(Xr,fn,mn,vn,Cn,_n,Pn,qn,Jn){for(var ei=qn+(-2&Jn)*Nr;qn!=ei;)Sr(Xr[fn+0],mn[vn+0],Cn[_n+0],Pn,qn),Sr(Xr[fn+1],mn[vn+0],Cn[_n+0],Pn,qn+Nr),fn+=2,++vn,++_n,qn+=2*Nr;1&Jn&&Sr(Xr[fn+0],mn[vn+0],Cn[_n+0],Pn,qn)}}function tl(xr,Sr,Nr){return Nr==0?xr==0?Sr==0?6:5:Sr==0?4:0:Nr}function Wu(xr,Sr,Nr,Xr,fn){switch(xr>>>30){case 3:Ba(Sr,Nr,Xr,fn,0);break;case 2:fo(Sr,Nr,Xr,fn);break;case 1:rs(Sr,Nr,Xr,fn)}}function su(xr,Sr){var Nr,Xr,fn=Sr.M,mn=Sr.Nb,vn=xr.oc,Cn=xr.pc+40,_n=xr.oc,Pn=xr.pc+584,qn=xr.oc,Jn=xr.pc+600;for(Nr=0;16>Nr;++Nr)vn[Cn+32*Nr-1]=129;for(Nr=0;8>Nr;++Nr)_n[Pn+32*Nr-1]=129,qn[Jn+32*Nr-1]=129;for(0<fn?vn[Cn-1-32]=_n[Pn-1-32]=qn[Jn-1-32]=129:(Se(vn,Cn-32-1,127,21),Se(_n,Pn-32-1,127,9),Se(qn,Jn-32-1,127,9)),Xr=0;Xr<xr.za;++Xr){var ei=Sr.ya[Sr.aa+Xr];if(0<Xr){for(Nr=-1;16>Nr;++Nr)Ee(vn,Cn+32*Nr-4,vn,Cn+32*Nr+12,4);for(Nr=-1;8>Nr;++Nr)Ee(_n,Pn+32*Nr-4,_n,Pn+32*Nr+4,4),Ee(qn,Jn+32*Nr-4,qn,Jn+32*Nr+4,4)}var Yn=xr.Gd,Ai=xr.Hd+Xr,ai=ei.ad,Vn=ei.Hc;if(0<fn&&(Ee(vn,Cn-32,Yn[Ai].y,0,16),Ee(_n,Pn-32,Yn[Ai].f,0,8),Ee(qn,Jn-32,Yn[Ai].ea,0,8)),ei.Za){var Qn=vn,ci=Cn-32+16;for(0<fn&&(Xr>=xr.za-1?Se(Qn,ci,Yn[Ai].y[15],4):Ee(Qn,ci,Yn[Ai+1].y,0,4)),Nr=0;4>Nr;Nr++)Qn[ci+128+Nr]=Qn[ci+256+Nr]=Qn[ci+384+Nr]=Qn[ci+0+Nr];for(Nr=0;16>Nr;++Nr,Vn<<=2)Qn=vn,ci=Cn+ed[Nr],Hs[ei.Ob[Nr]](Qn,ci),Wu(Vn,ai,16*+Nr,Qn,ci)}else if(Qn=tl(Xr,fn,ei.Ob[0]),hs[Qn](vn,Cn),Vn!=0)for(Nr=0;16>Nr;++Nr,Vn<<=2)Wu(Vn,ai,16*+Nr,vn,Cn+ed[Nr]);for(Nr=ei.Gc,Qn=tl(Xr,fn,ei.Dd),ws[Qn](_n,Pn),ws[Qn](qn,Jn),Vn=ai,Qn=_n,ci=Pn,255&(ei=Nr>>0)&&(170&ei?Ta(Vn,256,Qn,ci):Ps(Vn,256,Qn,ci)),ei=qn,Vn=Jn,255&(Nr>>=8)&&(170&Nr?Ta(ai,320,ei,Vn):Ps(ai,320,ei,Vn)),fn<xr.Ub-1&&(Ee(Yn[Ai].y,0,vn,Cn+480,16),Ee(Yn[Ai].f,0,_n,Pn+224,8),Ee(Yn[Ai].ea,0,qn,Jn+224,8)),Nr=8*mn*xr.B,Yn=xr.sa,Ai=xr.ta+16*Xr+16*mn*xr.R,ai=xr.qa,ei=xr.ra+8*Xr+Nr,Vn=xr.Ha,Qn=xr.Ia+8*Xr+Nr,Nr=0;16>Nr;++Nr)Ee(Yn,Ai+Nr*xr.R,vn,Cn+32*Nr,16);for(Nr=0;8>Nr;++Nr)Ee(ai,ei+Nr*xr.B,_n,Pn+32*Nr,8),Ee(Vn,Qn+Nr*xr.B,qn,Jn+32*Nr,8)}}function _l(xr,Sr,Nr,Xr,fn,mn,vn,Cn,_n){var Pn=[0],qn=[0],Jn=0,ei=_n!=null?_n.kd:0,Yn=_n??new Xa;if(xr==null||12>Nr)return 7;Yn.data=xr,Yn.w=Sr,Yn.ha=Nr,Sr=[Sr],Nr=[Nr],Yn.gb=[Yn.gb];e:{var Ai=Sr,ai=Nr,Vn=Yn.gb;if(Ae(xr!=null),Ae(ai!=null),Ae(Vn!=null),Vn[0]=0,12<=ai[0]&&!xe(xr,Ai[0],"RIFF")){if(xe(xr,Ai[0]+8,"WEBP")){Vn=3;break e}var Qn=zr(xr,Ai[0]+4);if(12>Qn||4294967286<Qn){Vn=3;break e}if(ei&&Qn>ai[0]-8){Vn=7;break e}Vn[0]=Qn,Ai[0]+=12,ai[0]-=12}Vn=0}if(Vn!=0)return Vn;for(Qn=0<Yn.gb[0],Nr=Nr[0];;){e:{var ci=xr;ai=Sr,Vn=Nr;var ui=Pn,fi=qn,Ii=Ai=[0];if((Si=Jn=[Jn])[0]=0,8>Vn[0])Vn=7;else{if(!xe(ci,ai[0],"VP8X")){if(zr(ci,ai[0]+4)!=10){Vn=3;break e}if(18>Vn[0]){Vn=7;break e}var Ci=zr(ci,ai[0]+8),qi=1+Ir(ci,ai[0]+12);if(2147483648<=qi*(ci=1+Ir(ci,ai[0]+15))){Vn=3;break e}Ii!=null&&(Ii[0]=Ci),ui!=null&&(ui[0]=qi),fi!=null&&(fi[0]=ci),ai[0]+=18,Vn[0]-=18,Si[0]=1}Vn=0}}if(Jn=Jn[0],Ai=Ai[0],Vn!=0)return Vn;if(ai=!!(2&Ai),!Qn&&Jn)return 3;if(mn!=null&&(mn[0]=!!(16&Ai)),vn!=null&&(vn[0]=ai),Cn!=null&&(Cn[0]=0),vn=Pn[0],Ai=qn[0],Jn&&ai&&_n==null){Vn=0;break}if(4>Nr){Vn=7;break}if(Qn&&Jn||!Qn&&!Jn&&!xe(xr,Sr[0],"ALPH")){Nr=[Nr],Yn.na=[Yn.na],Yn.P=[Yn.P],Yn.Sa=[Yn.Sa];e:{Ci=xr,Vn=Sr,Qn=Nr;var Si=Yn.gb;ui=Yn.na,fi=Yn.P,Ii=Yn.Sa,qi=22,Ae(Ci!=null),Ae(Qn!=null),ci=Vn[0];var lo=Qn[0];for(Ae(ui!=null),Ae(Ii!=null),ui[0]=null,fi[0]=null,Ii[0]=0;;){if(Vn[0]=ci,Qn[0]=lo,8>lo){Vn=7;break e}var uo=zr(Ci,ci+4);if(4294967286<uo){Vn=3;break e}var ao=8+uo+1&-2;if(qi+=ao,0<Si&&qi>Si){Vn=3;break e}if(!xe(Ci,ci,"VP8 ")||!xe(Ci,ci,"VP8L")){Vn=0;break e}if(lo[0]<ao){Vn=7;break e}xe(Ci,ci,"ALPH")||(ui[0]=Ci,fi[0]=ci+8,Ii[0]=uo),ci+=ao,lo-=ao}}if(Nr=Nr[0],Yn.na=Yn.na[0],Yn.P=Yn.P[0],Yn.Sa=Yn.Sa[0],Vn!=0)break}Nr=[Nr],Yn.Ja=[Yn.Ja],Yn.xa=[Yn.xa];e:if(Si=xr,Vn=Sr,Qn=Nr,ui=Yn.gb[0],fi=Yn.Ja,Ii=Yn.xa,Ci=Vn[0],ci=!xe(Si,Ci,"VP8 "),qi=!xe(Si,Ci,"VP8L"),Ae(Si!=null),Ae(Qn!=null),Ae(fi!=null),Ae(Ii!=null),8>Qn[0])Vn=7;else{if(ci||qi){if(Si=zr(Si,Ci+4),12<=ui&&Si>ui-12){Vn=3;break e}if(ei&&Si>Qn[0]-8){Vn=7;break e}fi[0]=Si,Vn[0]+=8,Qn[0]-=8,Ii[0]=qi}else Ii[0]=5<=Qn[0]&&Si[Ci+0]==47&&!(Si[Ci+4]>>5),fi[0]=Qn[0];Vn=0}if(Nr=Nr[0],Yn.Ja=Yn.Ja[0],Yn.xa=Yn.xa[0],Sr=Sr[0],Vn!=0)break;if(4294967286<Yn.Ja)return 3;if(Cn==null||ai||(Cn[0]=Yn.xa?2:1),vn=[vn],Ai=[Ai],Yn.xa){if(5>Nr){Vn=7;break}Cn=vn,ei=Ai,ai=mn,xr==null||5>Nr?xr=0:5<=Nr&&xr[Sr+0]==47&&!(xr[Sr+4]>>5)?(Qn=[0],Si=[0],ui=[0],St(fi=new ir,xr,Sr,Nr),Tr(fi,Qn,Si,ui)?(Cn!=null&&(Cn[0]=Qn[0]),ei!=null&&(ei[0]=Si[0]),ai!=null&&(ai[0]=ui[0]),xr=1):xr=0):xr=0}else{if(10>Nr){Vn=7;break}Cn=Ai,xr==null||10>Nr||!Vl(xr,Sr+3,Nr-3)?xr=0:(ei=xr[Sr+0]|xr[Sr+1]<<8|xr[Sr+2]<<16,ai=16383&(xr[Sr+7]<<8|xr[Sr+6]),xr=16383&(xr[Sr+9]<<8|xr[Sr+8]),1&ei||3<(ei>>1&7)||!(ei>>4&1)||ei>>5>=Yn.Ja||!ai||!xr?xr=0:(vn&&(vn[0]=ai),Cn&&(Cn[0]=xr),xr=1))}if(!xr||(vn=vn[0],Ai=Ai[0],Jn&&(Pn[0]!=vn||qn[0]!=Ai)))return 3;_n!=null&&(_n[0]=Yn,_n.offset=Sr-_n.w,Ae(4294967286>Sr-_n.w),Ae(_n.offset==_n.ha-Nr));break}return Vn==0||Vn==7&&Jn&&_n==null?(mn!=null&&(mn[0]|=Yn.na!=null&&0<Yn.na.length),Xr!=null&&(Xr[0]=vn),fn!=null&&(fn[0]=Ai),0):Vn}function au(xr,Sr,Nr){var Xr=Sr.width,fn=Sr.height,mn=0,vn=0,Cn=Xr,_n=fn;if(Sr.Da=xr!=null&&0<xr.Da,Sr.Da&&(Cn=xr.cd,_n=xr.bd,mn=xr.v,vn=xr.j,11>Nr||(mn&=-2,vn&=-2),0>mn||0>vn||0>=Cn||0>=_n||mn+Cn>Xr||vn+_n>fn))return 0;if(Sr.v=mn,Sr.j=vn,Sr.va=mn+Cn,Sr.o=vn+_n,Sr.U=Cn,Sr.T=_n,Sr.da=xr!=null&&0<xr.da,Sr.da){if(!wn(Cn,_n,Nr=[xr.ib],mn=[xr.hb]))return 0;Sr.ib=Nr[0],Sr.hb=mn[0]}return Sr.ob=xr!=null&&xr.ob,Sr.Kb=xr==null||!xr.Sd,Sr.da&&(Sr.ob=Sr.ib<3*Xr/4&&Sr.hb<3*fn/4,Sr.Kb=0),1}function lu(xr){if(xr==null)return 2;if(11>xr.S){var Sr=xr.f.RGBA;Sr.fb+=(xr.height-1)*Sr.A,Sr.A=-Sr.A}else Sr=xr.f.kb,xr=xr.height,Sr.O+=(xr-1)*Sr.fa,Sr.fa=-Sr.fa,Sr.N+=(xr-1>>1)*Sr.Ab,Sr.Ab=-Sr.Ab,Sr.W+=(xr-1>>1)*Sr.Db,Sr.Db=-Sr.Db,Sr.F!=null&&(Sr.J+=(xr-1)*Sr.lb,Sr.lb=-Sr.lb);return 0}function Rl(xr,Sr,Nr,Xr){if(Xr==null||0>=xr||0>=Sr)return 2;if(Nr!=null){if(Nr.Da){var fn=Nr.cd,mn=Nr.bd,vn=-2&Nr.v,Cn=-2&Nr.j;if(0>vn||0>Cn||0>=fn||0>=mn||vn+fn>xr||Cn+mn>Sr)return 2;xr=fn,Sr=mn}if(Nr.da){if(!wn(xr,Sr,fn=[Nr.ib],mn=[Nr.hb]))return 2;xr=fn[0],Sr=mn[0]}}Xr.width=xr,Xr.height=Sr;e:{var _n=Xr.width,Pn=Xr.height;if(xr=Xr.S,0>=_n||0>=Pn||!(xr>=Rc&&13>xr))xr=2;else{if(0>=Xr.Rd&&Xr.sd==null){vn=mn=fn=Sr=0;var qn=(Cn=_n*cc[xr])*Pn;if(11>xr||(mn=(Pn+1)/2*(Sr=(_n+1)/2),xr==12&&(vn=(fn=_n)*Pn)),(Pn=Ce(qn+2*mn+vn))==null){xr=1;break e}Xr.sd=Pn,11>xr?((_n=Xr.f.RGBA).eb=Pn,_n.fb=0,_n.A=Cn,_n.size=qn):((_n=Xr.f.kb).y=Pn,_n.O=0,_n.fa=Cn,_n.Fd=qn,_n.f=Pn,_n.N=0+qn,_n.Ab=Sr,_n.Cd=mn,_n.ea=Pn,_n.W=0+qn+mn,_n.Db=Sr,_n.Ed=mn,xr==12&&(_n.F=Pn,_n.J=0+qn+2*mn),_n.Tc=vn,_n.lb=fn)}if(Sr=1,fn=Xr.S,mn=Xr.width,vn=Xr.height,fn>=Rc&&13>fn)if(11>fn)xr=Xr.f.RGBA,Sr&=(Cn=Math.abs(xr.A))*(vn-1)+mn<=xr.size,Sr&=Cn>=mn*cc[fn],Sr&=xr.eb!=null;else{xr=Xr.f.kb,Cn=(mn+1)/2,qn=(vn+1)/2,_n=Math.abs(xr.fa),Pn=Math.abs(xr.Ab);var Jn=Math.abs(xr.Db),ei=Math.abs(xr.lb),Yn=ei*(vn-1)+mn;Sr&=_n*(vn-1)+mn<=xr.Fd,Sr&=Pn*(qn-1)+Cn<=xr.Cd,Sr=(Sr&=Jn*(qn-1)+Cn<=xr.Ed)&_n>=mn&Pn>=Cn&Jn>=Cn,Sr&=xr.y!=null,Sr&=xr.f!=null,Sr&=xr.ea!=null,fn==12&&(Sr&=ei>=mn,Sr&=Yn<=xr.Tc,Sr&=xr.F!=null)}else Sr=0;xr=Sr?0:2}}return xr!=0||Nr!=null&&Nr.fd&&(xr=lu(Xr)),xr}var jo=64,uu=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],cu=24,du=32,fu=8,us=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Rn("Predictor0","PredictorAdd0"),dr.Predictor0=function(){return 4278190080},dr.Predictor1=function(xr){return xr},dr.Predictor2=function(xr,Sr,Nr){return Sr[Nr+0]},dr.Predictor3=function(xr,Sr,Nr){return Sr[Nr+1]},dr.Predictor4=function(xr,Sr,Nr){return Sr[Nr-1]},dr.Predictor5=function(xr,Sr,Nr){return sn(sn(xr,Sr[Nr+1]),Sr[Nr+0])},dr.Predictor6=function(xr,Sr,Nr){return sn(xr,Sr[Nr-1])},dr.Predictor7=function(xr,Sr,Nr){return sn(xr,Sr[Nr+0])},dr.Predictor8=function(xr,Sr,Nr){return sn(Sr[Nr-1],Sr[Nr+0])},dr.Predictor9=function(xr,Sr,Nr){return sn(Sr[Nr+0],Sr[Nr+1])},dr.Predictor10=function(xr,Sr,Nr){return sn(sn(xr,Sr[Nr-1]),sn(Sr[Nr+0],Sr[Nr+1]))},dr.Predictor11=function(xr,Sr,Nr){var Xr=Sr[Nr+0];return 0>=Jr(Xr>>24&255,xr>>24&255,(Sr=Sr[Nr-1])>>24&255)+Jr(Xr>>16&255,xr>>16&255,Sr>>16&255)+Jr(Xr>>8&255,xr>>8&255,Sr>>8&255)+Jr(255&Xr,255&xr,255&Sr)?Xr:xr},dr.Predictor12=function(xr,Sr,Nr){var Xr=Sr[Nr+0];return(jn((xr>>24&255)+(Xr>>24&255)-((Sr=Sr[Nr-1])>>24&255))<<24|jn((xr>>16&255)+(Xr>>16&255)-(Sr>>16&255))<<16|jn((xr>>8&255)+(Xr>>8&255)-(Sr>>8&255))<<8|jn((255&xr)+(255&Xr)-(255&Sr)))>>>0},dr.Predictor13=function(xr,Sr,Nr){var Xr=Sr[Nr-1];return(en((xr=sn(xr,Sr[Nr+0]))>>24&255,Xr>>24&255)<<24|en(xr>>16&255,Xr>>16&255)<<16|en(xr>>8&255,Xr>>8&255)<<8|en(xr>>0&255,Xr>>0&255))>>>0};var Il=dr.PredictorAdd0;dr.PredictorAdd1=nn,Rn("Predictor2","PredictorAdd2"),Rn("Predictor3","PredictorAdd3"),Rn("Predictor4","PredictorAdd4"),Rn("Predictor5","PredictorAdd5"),Rn("Predictor6","PredictorAdd6"),Rn("Predictor7","PredictorAdd7"),Rn("Predictor8","PredictorAdd8"),Rn("Predictor9","PredictorAdd9"),Rn("Predictor10","PredictorAdd10"),Rn("Predictor11","PredictorAdd11"),Rn("Predictor12","PredictorAdd12"),Rn("Predictor13","PredictorAdd13");var Sa=dr.PredictorAdd2;Mr("ColorIndexInverseTransform","MapARGB","32b",function(xr){return xr>>8&255},function(xr){return xr}),Mr("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(xr){return xr},function(xr){return xr>>8&255});var _c,cs=dr.ColorIndexInverseTransform,hu=dr.MapARGB,Ku=dr.VP8LColorIndexInverseTransformAlpha,pu=dr.MapAlpha,fa=dr.VP8LPredictorsAdd=[];fa.length=16,(dr.VP8LPredictors=[]).length=16,(dr.VP8LPredictorsAdd_C=[]).length=16,(dr.VP8LPredictors_C=[]).length=16;var rl,ds,ts,il,Ra,Ia,Au,Ba,fo,Ta,rs,Ps,Bl,Yu,Tl,Pl,Ml,Ms,Pa,ha,Ma,ka,ol,Yo,bs,Eo,go,Fo,Do=Ce(511),pa=Ce(2041),gu=Ce(225),kl=Ce(767),Zu=0,Aa=pa,vu=gu,fs=kl,qs=Do,Rc=0,sl=1,md=2,Xu=3,Ju=4,Co=5,Ic=6,xu=7,jl=8,tc=9,rc=10,nc=[2,3,7],Bc=[3,3,11],Fl=[280,256,256,256,40],gd=[0,1,1,1,0],Xd=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Jd=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],vd=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Tc=8,yu=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],oc=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],$l=null,Yc=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],Zc=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],xd=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],yd=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],ef=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],tf=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],Xc=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],hs=[],Hs=[],ws=[],ma=1,bu=2,ns=[],Es=[];li("UpsampleRgbLinePair",so,3),li("UpsampleBgrLinePair",Bo,3),li("UpsampleRgbaLinePair",ta,4),li("UpsampleBgraLinePair",Wo,4),li("UpsampleArgbLinePair",es,4),li("UpsampleRgba4444LinePair",Oo,2),li("UpsampleRgb565LinePair",ko,2);var rf=dr.UpsampleRgbLinePair,nf=dr.UpsampleBgrLinePair,al=dr.UpsampleRgbaLinePair,wu=dr.UpsampleBgraLinePair,Ol=dr.UpsampleArgbLinePair,uc=dr.UpsampleRgba4444LinePair,Jc=dr.UpsampleRgb565LinePair,ja=16,ra=1<<ja-1,vo=-227,bo=482,ul=6,Zo=0,Cs=Ce(256),Dl=Ce(256),Eu=Ce(256),Ss=Ce(256),Pc=Ce(bo-vo),bd=Ce(bo-vo);Us("YuvToRgbRow",so,3),Us("YuvToBgrRow",Bo,3),Us("YuvToRgbaRow",ta,4),Us("YuvToBgraRow",Wo,4),Us("YuvToArgbRow",es,4),Us("YuvToRgba4444Row",Oo,2),Us("YuvToRgb565Row",ko,2);var ed=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Nl=[0,2,8],wd=[8,7,6,4,4,2,2,2,1,1,1,1],Fa=1;this.WebPDecodeRGBA=function(xr,Sr,Nr,Xr,fn){var mn=sl,vn=new da,Cn=new Mn;vn.ba=Cn,Cn.S=mn,Cn.width=[Cn.width],Cn.height=[Cn.height];var _n=Cn.width,Pn=Cn.height,qn=new En;if(qn==null||xr==null)var Jn=2;else Ae(qn!=null),Jn=_l(xr,Sr,Nr,qn.width,qn.height,qn.Pd,qn.Qd,qn.format,null);if(Jn!=0?_n=0:(_n!=null&&(_n[0]=qn.width[0]),Pn!=null&&(Pn[0]=qn.height[0]),_n=1),_n){Cn.width=Cn.width[0],Cn.height=Cn.height[0],Xr!=null&&(Xr[0]=Cn.width),fn!=null&&(fn[0]=Cn.height);e:{if(Xr=new Ni,(fn=new Xa).data=xr,fn.w=Sr,fn.ha=Nr,fn.kd=1,Sr=[0],Ae(fn!=null),((xr=_l(fn.data,fn.w,fn.ha,null,null,null,Sr,null,fn))==0||xr==7)&&Sr[0]&&(xr=4),(Sr=xr)==0){if(Ae(vn!=null),Xr.data=fn.data,Xr.w=fn.w+fn.offset,Xr.ha=fn.ha-fn.offset,Xr.put=kr,Xr.ac=Nn,Xr.bc=Er,Xr.ma=vn,fn.xa){if((xr=Gn())==null){vn=1;break e}if(function(ei,Yn){var Ai=[0],ai=[0],Vn=[0];t:for(;;){if(ei==null)return 0;if(Yn==null)return ei.a=2,0;if(ei.l=Yn,ei.a=0,St(ei.m,Yn.data,Yn.w,Yn.ha),!Tr(ei.m,Ai,ai,Vn)){ei.a=3;break t}if(ei.xb=bu,Yn.width=Ai[0],Yn.height=ai[0],!di(Ai[0],ai[0],1,ei,null))break t;return 1}return Ae(ei.a!=0),0}(xr,Xr)){if(Xr=(Sr=Rl(Xr.width,Xr.height,vn.Oa,vn.ba))==0){t:{Xr=xr;r:for(;;){if(Xr==null){Xr=0;break t}if(Ae(Xr.s.yc!=null),Ae(Xr.s.Ya!=null),Ae(0<Xr.s.Wb),Ae((Nr=Xr.l)!=null),Ae((fn=Nr.ma)!=null),Xr.xb!=0){if(Xr.ca=fn.ba,Xr.tb=fn.tb,Ae(Xr.ca!=null),!au(fn.Oa,Nr,Xu)){Xr.a=2;break r}if(!hi(Xr,Nr.width)||Nr.da)break r;if((Nr.da||Bn(Xr.ca.S))&&Xn(),11>Xr.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),Xr.ca.f.kb.F!=null&&Xn()),Xr.Pb&&0<Xr.s.ua&&Xr.s.vb.X==null&&!dn(Xr.s.vb,Xr.s.Wa.Xa)){Xr.a=1;break r}Xr.xb=0}if(!Wn(Xr,Xr.V,Xr.Ba,Xr.c,Xr.i,Nr.o,Fn))break r;fn.Dc=Xr.Ma,Xr=1;break t}Ae(Xr.a!=0),Xr=0}Xr=!Xr}Xr&&(Sr=xr.a)}else Sr=xr.a}else{if((xr=new _o)==null){vn=1;break e}if(xr.Fa=fn.na,xr.P=fn.P,xr.qc=fn.Sa,xc(xr,Xr)){if((Sr=Rl(Xr.width,Xr.height,vn.Oa,vn.ba))==0){if(xr.Aa=0,Nr=vn.Oa,Ae((fn=xr)!=null),Nr!=null){if(0<(_n=0>(_n=Nr.Md)?0:100<_n?255:255*_n/100)){for(Pn=qn=0;4>Pn;++Pn)12>(Jn=fn.pb[Pn]).lc&&(Jn.ia=_n*wd[0>Jn.lc?0:Jn.lc]>>3),qn|=Jn.ia;qn&&(alert("todo:VP8InitRandom"),fn.ia=1)}fn.Ga=Nr.Id,100<fn.Ga?fn.Ga=100:0>fn.Ga&&(fn.Ga=0)}ml(xr,Xr)||(Sr=xr.a)}}else Sr=xr.a}Sr==0&&vn.Oa!=null&&vn.Oa.fd&&(Sr=lu(vn.ba))}vn=Sr}mn=vn!=0?null:11>mn?Cn.f.RGBA.eb:Cn.f.kb.y}else mn=null;return mn};var cc=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function Te(dr,ar){for(var lr="",Ke=0;Ke<4;Ke++)lr+=String.fromCharCode(dr[ar++]);return lr}function Pe(dr,ar){return(dr[ar+0]<<0|dr[ar+1]<<8|dr[ar+2]<<16)>>>0}function ke(dr,ar){return(dr[ar+0]<<0|dr[ar+1]<<8|dr[ar+2]<<16|dr[ar+3]<<24)>>>0}new Be;var $e=[0],Oe=[0],Ue=[],qe=new Be,ze=t,Qe=function(dr,ar){var lr={},Ke=0,Me=!1,je=0,De=0;if(lr.frames=[],!function(ur,fr,Ar,vr){for(var yr=0;yr<vr;yr++)if(ur[fr+yr]!=Ar.charCodeAt(yr))return!0;return!1}(dr,ar,"RIFF",4)){for(ke(dr,ar+=4),ar+=8;ar<dr.length;){var He=Te(dr,ar),Ve=ke(dr,ar+=4);ar+=4;var Ye=Ve+(1&Ve);switch(He){case"VP8 ":case"VP8L":lr.frames[Ke]===void 0&&(lr.frames[Ke]={}),(Fe=lr.frames[Ke]).src_off=Me?De:ar-8,Fe.src_size=je+Ve+8,Ke++,Me&&(Me=!1,je=0,De=0);break;case"VP8X":(Fe=lr.header={}).feature_flags=dr[ar];var St=ar+4;Fe.canvas_width=1+Pe(dr,St),St+=3,Fe.canvas_height=1+Pe(dr,St),St+=3;break;case"ALPH":Me=!0,je=Ye+8,De=ar-8;break;case"ANIM":(Fe=lr.header).bgcolor=ke(dr,ar),St=ar+4,Fe.loop_count=(Ze=dr)[(ir=St)+0]<<0|Ze[ir+1]<<8,St+=2;break;case"ANMF":var We,Fe;(Fe=lr.frames[Ke]={}).offset_x=2*Pe(dr,ar),ar+=3,Fe.offset_y=2*Pe(dr,ar),ar+=3,Fe.width=1+Pe(dr,ar),ar+=3,Fe.height=1+Pe(dr,ar),ar+=3,Fe.duration=Pe(dr,ar),ar+=3,We=dr[ar++],Fe.dispose=1&We,Fe.blend=We>>1&1}He!="ANMF"&&(ar+=Ye)}var Ze,ir;return lr}}(ze,0);Qe.response=ze,Qe.rgbaoutput=!0,Qe.dataurl=!1;var Ge=Qe.header?Qe.header:null,Xe=Qe.frames?Qe.frames:null;if(Ge){Ge.loop_counter=Ge.loop_count,$e=[Ge.canvas_height],Oe=[Ge.canvas_width];for(var er=0;er<Xe.length&&Xe[er].blend!=0;er++);}var tr=Xe[0],nr=qe.WebPDecodeRGBA(ze,tr.src_off,tr.src_size,Oe,$e);tr.rgba=nr,tr.imgwidth=Oe[0],tr.imgheight=$e[0];for(var sr=0;sr<Oe[0]*$e[0]*4;sr++)Ue[sr]=nr[sr];return this.width=Oe,this.height=$e,this.data=Ue,this}(function(t){var Ae=function(){return typeof zlibSync=="function"},xe=function($e,Oe,Ue,qe){var ze=4,Qe=_e;switch(qe){case t.image_compression.FAST:ze=1,Qe=Ce;break;case t.image_compression.MEDIUM:ze=6,Qe=Ie;break;case t.image_compression.SLOW:ze=9,Qe=Be}$e=Ee($e,Oe,Ue,Qe);var Ge=zlibSync($e,{level:ze});return t.__addimage__.arrayBufferToBinaryString(Ge)},Ee=function($e,Oe,Ue,qe){for(var ze,Qe,Ge,Xe=$e.length/Oe,er=new Uint8Array($e.length+Xe),tr=Pe(),nr=0;nr<Xe;nr+=1){if(Ge=nr*Oe,ze=$e.subarray(Ge,Ge+Oe),qe)er.set(qe(ze,Ue,Qe),Ge+nr);else{for(var sr,dr=tr.length,ar=[];sr<dr;sr+=1)ar[sr]=tr[sr](ze,Ue,Qe);var lr=ke(ar.concat());er.set(ar[lr],Ge+nr)}Qe=ze}return er},Se=function($e){var Oe=Array.apply([],$e);return Oe.unshift(0),Oe},Ce=function($e,Oe){var Ue,qe=[],ze=$e.length;qe[0]=1;for(var Qe=0;Qe<ze;Qe+=1)Ue=$e[Qe-Oe]||0,qe[Qe+1]=$e[Qe]-Ue+256&255;return qe},_e=function($e,Oe,Ue){var qe,ze=[],Qe=$e.length;ze[0]=2;for(var Ge=0;Ge<Qe;Ge+=1)qe=Ue&&Ue[Ge]||0,ze[Ge+1]=$e[Ge]-qe+256&255;return ze},Ie=function($e,Oe,Ue){var qe,ze,Qe=[],Ge=$e.length;Qe[0]=3;for(var Xe=0;Xe<Ge;Xe+=1)qe=$e[Xe-Oe]||0,ze=Ue&&Ue[Xe]||0,Qe[Xe+1]=$e[Xe]+256-(qe+ze>>>1)&255;return Qe},Be=function($e,Oe,Ue){var qe,ze,Qe,Ge,Xe=[],er=$e.length;Xe[0]=4;for(var tr=0;tr<er;tr+=1)qe=$e[tr-Oe]||0,ze=Ue&&Ue[tr]||0,Qe=Ue&&Ue[tr-Oe]||0,Ge=Te(qe,ze,Qe),Xe[tr+1]=$e[tr]-Ge+256&255;return Xe},Te=function($e,Oe,Ue){if($e===Oe&&Oe===Ue)return $e;var qe=Math.abs(Oe-Ue),ze=Math.abs($e-Ue),Qe=Math.abs($e+Oe-Ue-Ue);return qe<=ze&&qe<=Qe?$e:ze<=Qe?Oe:Ue},Pe=function(){return[Se,Ce,_e,Ie,Be]},ke=function($e){var Oe=$e.map(function(Ue){return Ue.reduce(function(qe,ze){return qe+Math.abs(ze)},0)});return Oe.indexOf(Math.min.apply(null,Oe))};t.processPNG=function($e,Oe,Ue,qe){var ze,Qe,Ge,Xe,er,tr,nr,sr,dr,ar,lr,Ke,Me,je,De,He=this.decode.FLATE_DECODE,Ve="";if(this.__addimage__.isArrayBuffer($e)&&($e=new Uint8Array($e)),this.__addimage__.isArrayBufferView($e)){if($e=(Ge=new Kt($e)).imgData,Qe=Ge.bits,ze=Ge.colorSpace,er=Ge.colors,[4,6].indexOf(Ge.colorType)!==-1){if(Ge.bits===8){dr=(sr=Ge.pixelBitlength==32?new Uint32Array(Ge.decodePixels().buffer):Ge.pixelBitlength==16?new Uint16Array(Ge.decodePixels().buffer):new Uint8Array(Ge.decodePixels().buffer)).length,lr=new Uint8Array(dr*Ge.colors),ar=new Uint8Array(dr);var Ye,St=Ge.pixelBitlength-Ge.bits;for(je=0,De=0;je<dr;je++){for(Me=sr[je],Ye=0;Ye<St;)lr[De++]=Me>>>Ye&255,Ye+=Ge.bits;ar[je]=Me>>>Ye&255}}if(Ge.bits===16){dr=(sr=new Uint32Array(Ge.decodePixels().buffer)).length,lr=new Uint8Array(dr*(32/Ge.pixelBitlength)*Ge.colors),ar=new Uint8Array(dr*(32/Ge.pixelBitlength)),Ke=Ge.colors>1,je=0,De=0;for(var We=0;je<dr;)Me=sr[je++],lr[De++]=Me>>>0&255,Ke&&(lr[De++]=Me>>>16&255,Me=sr[je++],lr[De++]=Me>>>0&255),ar[We++]=Me>>>16&255;Qe=8}qe!==t.image_compression.NONE&&Ae()?($e=xe(lr,Ge.width*Ge.colors,Ge.colors,qe),nr=xe(ar,Ge.width,1,qe)):($e=lr,nr=ar,He=void 0)}if(Ge.colorType===3&&(ze=this.color_spaces.INDEXED,tr=Ge.palette,Ge.transparency.indexed)){var Fe=Ge.transparency.indexed,Ze=0;for(je=0,dr=Fe.length;je<dr;++je)Ze+=Fe[je];if((Ze/=255)===dr-1&&Fe.indexOf(0)!==-1)Xe=[Fe.indexOf(0)];else if(Ze!==dr){for(sr=Ge.decodePixels(),ar=new Uint8Array(sr.length),je=0,dr=sr.length;je<dr;je++)ar[je]=Fe[sr[je]];nr=xe(ar,Ge.width,1)}}var ir=function(ur){var fr;switch(ur){case t.image_compression.FAST:fr=11;break;case t.image_compression.MEDIUM:fr=13;break;case t.image_compression.SLOW:fr=14;break;default:fr=12}return fr}(qe);return He===this.decode.FLATE_DECODE&&(Ve="/Predictor "+ir+" "),Ve+="/Colors "+er+" /BitsPerComponent "+Qe+" /Columns "+Ge.width,(this.__addimage__.isArrayBuffer($e)||this.__addimage__.isArrayBufferView($e))&&($e=this.__addimage__.arrayBufferToBinaryString($e)),(nr&&this.__addimage__.isArrayBuffer(nr)||this.__addimage__.isArrayBufferView(nr))&&(nr=this.__addimage__.arrayBufferToBinaryString(nr)),{alias:Ue,data:$e,index:Oe,filter:He,decodeParameters:Ve,transparency:Xe,palette:tr,sMask:nr,predictor:ir,width:Ge.width,height:Ge.height,bitsPerComponent:Qe,colorSpace:ze}}}})(E.API),function(t){t.processGIF89A=function(Ae,xe,Ee,Se){var Ce=new Zt(Ae),_e=Ce.width,Ie=Ce.height,Be=[];Ce.decodeAndBlitFrameRGBA(0,Be);var Te={data:Be,width:_e,height:Ie},Pe=new Qt(100).encode(Te,100);return t.processJPEG.call(this,Pe,xe,Ee,Se)},t.processGIF87A=t.processGIF89A}(E.API),te.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var Ae=0;Ae<t;Ae++){var xe=this.datav.getUint8(this.pos++,!0),Ee=this.datav.getUint8(this.pos++,!0),Se=this.datav.getUint8(this.pos++,!0),Ce=this.datav.getUint8(this.pos++,!0);this.palette[Ae]={red:Se,green:Ee,blue:xe,quad:Ce}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},te.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,Ae=this.width*this.height*4;this.data=new Uint8Array(Ae),this[t]()}catch(xe){a.log("bit decode error:"+xe)}},te.prototype.bit1=function(){var t,Ae=Math.ceil(this.width/8),xe=Ae%4;for(t=this.height-1;t>=0;t--){for(var Ee=this.bottom_up?t:this.height-1-t,Se=0;Se<Ae;Se++)for(var Ce=this.datav.getUint8(this.pos++,!0),_e=Ee*this.width*4+8*Se*4,Ie=0;Ie<8&&8*Se+Ie<this.width;Ie++){var Be=this.palette[Ce>>7-Ie&1];this.data[_e+4*Ie]=Be.blue,this.data[_e+4*Ie+1]=Be.green,this.data[_e+4*Ie+2]=Be.red,this.data[_e+4*Ie+3]=255}xe!==0&&(this.pos+=4-xe)}},te.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),Ae=t%4,xe=this.height-1;xe>=0;xe--){for(var Ee=this.bottom_up?xe:this.height-1-xe,Se=0;Se<t;Se++){var Ce=this.datav.getUint8(this.pos++,!0),_e=Ee*this.width*4+2*Se*4,Ie=Ce>>4,Be=15&Ce,Te=this.palette[Ie];if(this.data[_e]=Te.blue,this.data[_e+1]=Te.green,this.data[_e+2]=Te.red,this.data[_e+3]=255,2*Se+1>=this.width)break;Te=this.palette[Be],this.data[_e+4]=Te.blue,this.data[_e+4+1]=Te.green,this.data[_e+4+2]=Te.red,this.data[_e+4+3]=255}Ae!==0&&(this.pos+=4-Ae)}},te.prototype.bit8=function(){for(var t=this.width%4,Ae=this.height-1;Ae>=0;Ae--){for(var xe=this.bottom_up?Ae:this.height-1-Ae,Ee=0;Ee<this.width;Ee++){var Se=this.datav.getUint8(this.pos++,!0),Ce=xe*this.width*4+4*Ee;if(Se<this.palette.length){var _e=this.palette[Se];this.data[Ce]=_e.red,this.data[Ce+1]=_e.green,this.data[Ce+2]=_e.blue,this.data[Ce+3]=255}else this.data[Ce]=255,this.data[Ce+1]=255,this.data[Ce+2]=255,this.data[Ce+3]=255}t!==0&&(this.pos+=4-t)}},te.prototype.bit15=function(){for(var t=this.width%3,Ae=parseInt("11111",2),xe=this.height-1;xe>=0;xe--){for(var Ee=this.bottom_up?xe:this.height-1-xe,Se=0;Se<this.width;Se++){var Ce=this.datav.getUint16(this.pos,!0);this.pos+=2;var _e=(Ce&Ae)/Ae*255|0,Ie=(Ce>>5&Ae)/Ae*255|0,Be=(Ce>>10&Ae)/Ae*255|0,Te=Ce>>15?255:0,Pe=Ee*this.width*4+4*Se;this.data[Pe]=Be,this.data[Pe+1]=Ie,this.data[Pe+2]=_e,this.data[Pe+3]=Te}this.pos+=t}},te.prototype.bit16=function(){for(var t=this.width%3,Ae=parseInt("11111",2),xe=parseInt("111111",2),Ee=this.height-1;Ee>=0;Ee--){for(var Se=this.bottom_up?Ee:this.height-1-Ee,Ce=0;Ce<this.width;Ce++){var _e=this.datav.getUint16(this.pos,!0);this.pos+=2;var Ie=(_e&Ae)/Ae*255|0,Be=(_e>>5&xe)/xe*255|0,Te=(_e>>11)/Ae*255|0,Pe=Se*this.width*4+4*Ce;this.data[Pe]=Te,this.data[Pe+1]=Be,this.data[Pe+2]=Ie,this.data[Pe+3]=255}this.pos+=t}},te.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var Ae=this.bottom_up?t:this.height-1-t,xe=0;xe<this.width;xe++){var Ee=this.datav.getUint8(this.pos++,!0),Se=this.datav.getUint8(this.pos++,!0),Ce=this.datav.getUint8(this.pos++,!0),_e=Ae*this.width*4+4*xe;this.data[_e]=Ce,this.data[_e+1]=Se,this.data[_e+2]=Ee,this.data[_e+3]=255}this.pos+=this.width%4}},te.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var Ae=this.bottom_up?t:this.height-1-t,xe=0;xe<this.width;xe++){var Ee=this.datav.getUint8(this.pos++,!0),Se=this.datav.getUint8(this.pos++,!0),Ce=this.datav.getUint8(this.pos++,!0),_e=this.datav.getUint8(this.pos++,!0),Ie=Ae*this.width*4+4*xe;this.data[Ie]=Ce,this.data[Ie+1]=Se,this.data[Ie+2]=Ee,this.data[Ie+3]=_e}},te.prototype.getData=function(){return this.data},function(t){t.processBMP=function(Ae,xe,Ee,Se){var Ce=new te(Ae,!1),_e=Ce.width,Ie=Ce.height,Be={data:Ce.getData(),width:_e,height:Ie},Te=new Qt(100).encode(Be,100);return t.processJPEG.call(this,Te,xe,Ee,Se)}}(E.API),ee$1.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(Ae,xe,Ee,Se){var Ce=new ee$1(Ae),_e=Ce.width,Ie=Ce.height,Be={data:Ce.getData(),width:_e,height:Ie},Te=new Qt(100).encode(Be,100);return t.processJPEG.call(this,Te,xe,Ee,Se)}}(E.API),E.API.processRGBA=function(t,Ae,xe){for(var Ee=t.data,Se=Ee.length,Ce=new Uint8Array(Se/4*3),_e=new Uint8Array(Se/4),Ie=0,Be=0,Te=0;Te<Se;Te+=4){var Pe=Ee[Te],ke=Ee[Te+1],$e=Ee[Te+2],Oe=Ee[Te+3];Ce[Ie++]=Pe,Ce[Ie++]=ke,Ce[Ie++]=$e,_e[Be++]=Oe}var Ue=this.__addimage__.arrayBufferToBinaryString(Ce);return{alpha:this.__addimage__.arrayBufferToBinaryString(_e),data:Ue,index:Ae,alias:xe,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},E.API.setLanguage=function(t){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]!==void 0&&(this.internal.languageSettings.languageCode=t,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Vt=E.API,Gt$1=Vt.getCharWidthsArray=function(t,Ae){var xe,Ee,Se=(Ae=Ae||{}).font||this.internal.getFont(),Ce=Ae.fontSize||this.internal.getFontSize(),_e=Ae.charSpace||this.internal.getCharSpace(),Ie=Ae.widths?Ae.widths:Se.metadata.Unicode.widths,Be=Ie.fof?Ie.fof:1,Te=Ae.kerning?Ae.kerning:Se.metadata.Unicode.kerning,Pe=Te.fof?Te.fof:1,ke=Ae.doKerning!==!1,$e=0,Oe=t.length,Ue=0,qe=Ie[0]||Be,ze=[];for(xe=0;xe<Oe;xe++)Ee=t.charCodeAt(xe),typeof Se.metadata.widthOfString=="function"?ze.push((Se.metadata.widthOfGlyph(Se.metadata.characterToGlyph(Ee))+_e*(1e3/Ce)||0)/1e3):($e=ke&&_typeof$c(Te[Ee])==="object"&&!isNaN(parseInt(Te[Ee][Ue],10))?Te[Ee][Ue]/Pe:0,ze.push((Ie[Ee]||qe)/Be+$e)),Ue=Ee;return ze},Yt=Vt.getStringUnitWidth=function(t,Ae){var xe=(Ae=Ae||{}).fontSize||this.internal.getFontSize(),Ee=Ae.font||this.internal.getFont(),Se=Ae.charSpace||this.internal.getCharSpace();return Vt.processArabic&&(t=Vt.processArabic(t)),typeof Ee.metadata.widthOfString=="function"?Ee.metadata.widthOfString(t,xe,Se)/xe:Gt$1.apply(this,arguments).reduce(function(Ce,_e){return Ce+_e},0)},Jt=function(t,Ae,xe,Ee){for(var Se=[],Ce=0,_e=t.length,Ie=0;Ce!==_e&&Ie+Ae[Ce]<xe;)Ie+=Ae[Ce],Ce++;Se.push(t.slice(0,Ce));var Be=Ce;for(Ie=0;Ce!==_e;)Ie+Ae[Ce]>Ee&&(Se.push(t.slice(Be,Ce)),Ie=0,Be=Ce),Ie+=Ae[Ce],Ce++;return Be!==Ce&&Se.push(t.slice(Be,Ce)),Se},Xt=function(t,Ae,xe){xe||(xe={});var Ee,Se,Ce,_e,Ie,Be,Te,Pe=[],ke=[Pe],$e=xe.textIndent||0,Oe=0,Ue=0,qe=t.split(" "),ze=Gt$1.apply(this,[" ",xe])[0];if(Be=xe.lineIndent===-1?qe[0].length+2:xe.lineIndent||0){var Qe=Array(Be).join(" "),Ge=[];qe.map(function(er){(er=er.split(/\s*\n/)).length>1?Ge=Ge.concat(er.map(function(tr,nr){return(nr&&tr.length?`
|
|
846
846
|
`:"")+tr})):Ge.push(er[0])}),qe=Ge,Be=Yt.apply(this,[Qe,xe])}for(Ce=0,_e=qe.length;Ce<_e;Ce++){var Xe=0;if(Ee=qe[Ce],Be&&Ee[0]==`
|
|
847
|
-
`&&(Ee=Ee.substr(1),Xe=1),$e+Oe+(Ue=(Se=Gt$1.apply(this,[Ee,xe])).reduce(function(er,tr){return er+tr},0))>Ae||Xe){if(Ue>Ae){for(Ie=Jt.apply(this,[Ee,Se,Ae-($e+Oe),Ae]),Pe.push(Ie.shift()),Pe=[Ie.pop()];Ie.length;)ke.push([Ie.shift()]);Ue=Se.slice(Ee.length-(Pe[0]?Pe[0].length:0)).reduce(function(er,tr){return er+tr},0)}else Pe=[Ee];ke.push(Pe),$e=Ue+Be,Oe=ze}else Pe.push(Ee),$e+=Oe+Ue,Oe=ze}return Te=Be?function(er,tr){return(tr?Qe:"")+er.join(" ")}:function(er){return er.join(" ")},ke.map(Te)},Vt.splitTextToSize=function(t,Ae,xe){var Ee,Se=(xe=xe||{}).fontSize||this.internal.getFontSize(),Ce=(function(Pe){if(Pe.widths&&Pe.kerning)return{widths:Pe.widths,kerning:Pe.kerning};var ke=this.internal.getFont(Pe.fontName,Pe.fontStyle);return ke.metadata.Unicode?{widths:ke.metadata.Unicode.widths||{0:1},kerning:ke.metadata.Unicode.kerning||{}}:{font:ke.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,xe);Ee=Array.isArray(t)?t:String(t).split(/\r?\n/);var _e=1*this.internal.scaleFactor*Ae/Se;Ce.textIndent=xe.textIndent?1*xe.textIndent*this.internal.scaleFactor/Se:0,Ce.lineIndent=xe.lineIndent;var Ie,Be,Te=[];for(Ie=0,Be=Ee.length;Ie<Be;Ie++)Te=Te.concat(Xt.apply(this,[Ee[Ie],_e,Ce]));return Te},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var Ae="klmnopqrstuvwxyz",xe={},Ee={},Se=0;Se<Ae.length;Se++)xe[Ae[Se]]="0123456789abcdef"[Se],Ee["0123456789abcdef"[Se]]=Ae[Se];var Ce=function(ke){return"0x"+parseInt(ke,10).toString(16)},_e=t.__fontmetrics__.compress=function(ke){var $e,Oe,Ue,qe,ze=["{"];for(var Qe in ke){if($e=ke[Qe],isNaN(parseInt(Qe,10))?Oe="'"+Qe+"'":(Qe=parseInt(Qe,10),Oe=(Oe=Ce(Qe).slice(2)).slice(0,-1)+Ee[Oe.slice(-1)]),typeof $e=="number")$e<0?(Ue=Ce($e).slice(3),qe="-"):(Ue=Ce($e).slice(2),qe=""),Ue=qe+Ue.slice(0,-1)+Ee[Ue.slice(-1)];else{if(_typeof$c($e)!=="object")throw new Error("Don't know what to do with value type "+_typeof$c($e)+".");Ue=_e($e)}ze.push(Oe+Ue)}return ze.push("}"),ze.join("")},Ie=t.__fontmetrics__.uncompress=function(ke){if(typeof ke!="string")throw new Error("Invalid argument passed to uncompress.");for(var $e,Oe,Ue,qe,ze={},Qe=1,Ge=ze,Xe=[],er="",tr="",nr=ke.length-1,sr=1;sr<nr;sr+=1)(qe=ke[sr])=="'"?$e?(Ue=$e.join(""),$e=void 0):$e=[]:$e?$e.push(qe):qe=="{"?(Xe.push([Ge,Ue]),Ge={},Ue=void 0):qe=="}"?((Oe=Xe.pop())[0][Oe[1]]=Ge,Ue=void 0,Ge=Oe[0]):qe=="-"?Qe=-1:Ue===void 0?xe.hasOwnProperty(qe)?(er+=xe[qe],Ue=parseInt(er,16)*Qe,Qe=1,er=""):er+=qe:xe.hasOwnProperty(qe)?(tr+=xe[qe],Ge[Ue]=parseInt(tr,16)*Qe,Qe=1,Ue=void 0,tr=""):tr+=qe;return ze},Be={codePages:["WinAnsiEncoding"],WinAnsiEncoding:Ie("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},Te={Unicode:{Courier:Be,"Courier-Bold":Be,"Courier-BoldOblique":Be,"Courier-Oblique":Be,Helvetica:Be,"Helvetica-Bold":Be,"Helvetica-BoldOblique":Be,"Helvetica-Oblique":Be,"Times-Roman":Be,"Times-Bold":Be,"Times-BoldItalic":Be,"Times-Italic":Be}},Pe={Unicode:{"Courier-Oblique":Ie("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":Ie("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":Ie("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:Ie("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":Ie("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":Ie("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:Ie("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:Ie("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":Ie("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:Ie("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":Ie("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":Ie("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":Ie("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":Ie("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(ke){var $e=ke.font,Oe=Pe.Unicode[$e.postScriptName];Oe&&($e.metadata.Unicode={},$e.metadata.Unicode.widths=Oe.widths,$e.metadata.Unicode.kerning=Oe.kerning);var Ue=Te.Unicode[$e.postScriptName];Ue&&($e.metadata.Unicode.encoding=Ue,$e.encoding=Ue.codePages[0])}])}(E.API),function(t){var Ae=function(xe){for(var Ee=xe.length,Se=new Uint8Array(Ee),Ce=0;Ce<Ee;Ce++)Se[Ce]=xe.charCodeAt(Ce);return Se};t.API.events.push(["addFont",function(xe){var Ee=void 0,Se=xe.font,Ce=xe.instance;if(!Se.isStandardFont){if(Ce===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+Se.postScriptName+"').");if(typeof(Ee=Ce.existsFileInVFS(Se.postScriptName)===!1?Ce.loadFile(Se.postScriptName):Ce.getFileFromVFS(Se.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+Se.postScriptName+"').");(function(_e,Ie){Ie=/^\x00\x01\x00\x00/.test(Ie)?Ae(Ie):Ae(u(Ie)),_e.metadata=t.API.TTFFont.open(Ie),_e.metadata.Unicode=_e.metadata.Unicode||{encoding:{},kerning:{},widths:[]},_e.metadata.glyIdsUsed=[0]})(Se,Ee)}}])}(E),function(t){function Ae(){return(n.canvg?Promise.resolve(n.canvg):__vitePreload(()=>import("./index.es-CTuWilQA.js"),[])).catch(function(xe){return Promise.reject(new Error("Could not load canvg: "+xe))}).then(function(xe){return xe.default?xe.default:xe})}E.API.addSvgAsImage=function(xe,Ee,Se,Ce,_e,Ie,Be,Te){if(isNaN(Ee)||isNaN(Se))throw a.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(Ce)||isNaN(_e))throw a.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var Pe=document.createElement("canvas");Pe.width=Ce,Pe.height=_e;var ke=Pe.getContext("2d");ke.fillStyle="#fff",ke.fillRect(0,0,Pe.width,Pe.height);var $e={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},Oe=this;return Ae().then(function(Ue){return Ue.fromString(ke,xe,$e)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(Ue){return Ue.render($e)}).then(function(){Oe.addImage(Pe.toDataURL("image/jpeg",1),Ee,Se,Ce,_e,Be,Te)})}}(),E.API.putTotalPages=function(t){var Ae,xe=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(Ae=new RegExp(t,"g"),xe=this.internal.getNumberOfPages()):(Ae=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),xe=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var Ee=1;Ee<=this.internal.getNumberOfPages();Ee++)for(var Se=0;Se<this.internal.pages[Ee].length;Se++)this.internal.pages[Ee][Se]=this.internal.pages[Ee][Se].replace(Ae,xe);return this},E.API.viewerPreferences=function(t,Ae){var xe;t=t||{},Ae=Ae||!1;var Ee,Se,Ce,_e={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},Ie=Object.keys(_e),Be=[],Te=0,Pe=0,ke=0;function $e(Ue,qe){var ze,Qe=!1;for(ze=0;ze<Ue.length;ze+=1)Ue[ze]===qe&&(Qe=!0);return Qe}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(_e)),this.internal.viewerpreferences.isSubscribed=!1),xe=this.internal.viewerpreferences.configuration,t==="reset"||Ae===!0){var Oe=Ie.length;for(ke=0;ke<Oe;ke+=1)xe[Ie[ke]].value=xe[Ie[ke]].defaultValue,xe[Ie[ke]].explicitSet=!1}if(_typeof$c(t)==="object"){for(Se in t)if(Ce=t[Se],$e(Ie,Se)&&Ce!==void 0){if(xe[Se].type==="boolean"&&typeof Ce=="boolean")xe[Se].value=Ce;else if(xe[Se].type==="name"&&$e(xe[Se].valueSet,Ce))xe[Se].value=Ce;else if(xe[Se].type==="integer"&&Number.isInteger(Ce))xe[Se].value=Ce;else if(xe[Se].type==="array"){for(Te=0;Te<Ce.length;Te+=1)if(Ee=!0,Ce[Te].length===1&&typeof Ce[Te][0]=="number")Be.push(String(Ce[Te]-1));else if(Ce[Te].length>1){for(Pe=0;Pe<Ce[Te].length;Pe+=1)typeof Ce[Te][Pe]!="number"&&(Ee=!1);Ee===!0&&Be.push([Ce[Te][0]-1,Ce[Te][1]-1].join(" "))}xe[Se].value="["+Be.join(" ")+"]"}else xe[Se].value=xe[Se].defaultValue;xe[Se].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var Ue,qe=[];for(Ue in xe)xe[Ue].explicitSet===!0&&(xe[Ue].type==="name"?qe.push("/"+Ue+" /"+xe[Ue].value):qe.push("/"+Ue+" "+xe[Ue].value));qe.length!==0&&this.internal.write(`/ViewerPreferences
|
|
847
|
+
`&&(Ee=Ee.substr(1),Xe=1),$e+Oe+(Ue=(Se=Gt$1.apply(this,[Ee,xe])).reduce(function(er,tr){return er+tr},0))>Ae||Xe){if(Ue>Ae){for(Ie=Jt.apply(this,[Ee,Se,Ae-($e+Oe),Ae]),Pe.push(Ie.shift()),Pe=[Ie.pop()];Ie.length;)ke.push([Ie.shift()]);Ue=Se.slice(Ee.length-(Pe[0]?Pe[0].length:0)).reduce(function(er,tr){return er+tr},0)}else Pe=[Ee];ke.push(Pe),$e=Ue+Be,Oe=ze}else Pe.push(Ee),$e+=Oe+Ue,Oe=ze}return Te=Be?function(er,tr){return(tr?Qe:"")+er.join(" ")}:function(er){return er.join(" ")},ke.map(Te)},Vt.splitTextToSize=function(t,Ae,xe){var Ee,Se=(xe=xe||{}).fontSize||this.internal.getFontSize(),Ce=(function(Pe){if(Pe.widths&&Pe.kerning)return{widths:Pe.widths,kerning:Pe.kerning};var ke=this.internal.getFont(Pe.fontName,Pe.fontStyle);return ke.metadata.Unicode?{widths:ke.metadata.Unicode.widths||{0:1},kerning:ke.metadata.Unicode.kerning||{}}:{font:ke.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,xe);Ee=Array.isArray(t)?t:String(t).split(/\r?\n/);var _e=1*this.internal.scaleFactor*Ae/Se;Ce.textIndent=xe.textIndent?1*xe.textIndent*this.internal.scaleFactor/Se:0,Ce.lineIndent=xe.lineIndent;var Ie,Be,Te=[];for(Ie=0,Be=Ee.length;Ie<Be;Ie++)Te=Te.concat(Xt.apply(this,[Ee[Ie],_e,Ce]));return Te},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var Ae="klmnopqrstuvwxyz",xe={},Ee={},Se=0;Se<Ae.length;Se++)xe[Ae[Se]]="0123456789abcdef"[Se],Ee["0123456789abcdef"[Se]]=Ae[Se];var Ce=function(ke){return"0x"+parseInt(ke,10).toString(16)},_e=t.__fontmetrics__.compress=function(ke){var $e,Oe,Ue,qe,ze=["{"];for(var Qe in ke){if($e=ke[Qe],isNaN(parseInt(Qe,10))?Oe="'"+Qe+"'":(Qe=parseInt(Qe,10),Oe=(Oe=Ce(Qe).slice(2)).slice(0,-1)+Ee[Oe.slice(-1)]),typeof $e=="number")$e<0?(Ue=Ce($e).slice(3),qe="-"):(Ue=Ce($e).slice(2),qe=""),Ue=qe+Ue.slice(0,-1)+Ee[Ue.slice(-1)];else{if(_typeof$c($e)!=="object")throw new Error("Don't know what to do with value type "+_typeof$c($e)+".");Ue=_e($e)}ze.push(Oe+Ue)}return ze.push("}"),ze.join("")},Ie=t.__fontmetrics__.uncompress=function(ke){if(typeof ke!="string")throw new Error("Invalid argument passed to uncompress.");for(var $e,Oe,Ue,qe,ze={},Qe=1,Ge=ze,Xe=[],er="",tr="",nr=ke.length-1,sr=1;sr<nr;sr+=1)(qe=ke[sr])=="'"?$e?(Ue=$e.join(""),$e=void 0):$e=[]:$e?$e.push(qe):qe=="{"?(Xe.push([Ge,Ue]),Ge={},Ue=void 0):qe=="}"?((Oe=Xe.pop())[0][Oe[1]]=Ge,Ue=void 0,Ge=Oe[0]):qe=="-"?Qe=-1:Ue===void 0?xe.hasOwnProperty(qe)?(er+=xe[qe],Ue=parseInt(er,16)*Qe,Qe=1,er=""):er+=qe:xe.hasOwnProperty(qe)?(tr+=xe[qe],Ge[Ue]=parseInt(tr,16)*Qe,Qe=1,Ue=void 0,tr=""):tr+=qe;return ze},Be={codePages:["WinAnsiEncoding"],WinAnsiEncoding:Ie("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},Te={Unicode:{Courier:Be,"Courier-Bold":Be,"Courier-BoldOblique":Be,"Courier-Oblique":Be,Helvetica:Be,"Helvetica-Bold":Be,"Helvetica-BoldOblique":Be,"Helvetica-Oblique":Be,"Times-Roman":Be,"Times-Bold":Be,"Times-BoldItalic":Be,"Times-Italic":Be}},Pe={Unicode:{"Courier-Oblique":Ie("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":Ie("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":Ie("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:Ie("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":Ie("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":Ie("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:Ie("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:Ie("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":Ie("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:Ie("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":Ie("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":Ie("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":Ie("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":Ie("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(ke){var $e=ke.font,Oe=Pe.Unicode[$e.postScriptName];Oe&&($e.metadata.Unicode={},$e.metadata.Unicode.widths=Oe.widths,$e.metadata.Unicode.kerning=Oe.kerning);var Ue=Te.Unicode[$e.postScriptName];Ue&&($e.metadata.Unicode.encoding=Ue,$e.encoding=Ue.codePages[0])}])}(E.API),function(t){var Ae=function(xe){for(var Ee=xe.length,Se=new Uint8Array(Ee),Ce=0;Ce<Ee;Ce++)Se[Ce]=xe.charCodeAt(Ce);return Se};t.API.events.push(["addFont",function(xe){var Ee=void 0,Se=xe.font,Ce=xe.instance;if(!Se.isStandardFont){if(Ce===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+Se.postScriptName+"').");if(typeof(Ee=Ce.existsFileInVFS(Se.postScriptName)===!1?Ce.loadFile(Se.postScriptName):Ce.getFileFromVFS(Se.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+Se.postScriptName+"').");(function(_e,Ie){Ie=/^\x00\x01\x00\x00/.test(Ie)?Ae(Ie):Ae(u(Ie)),_e.metadata=t.API.TTFFont.open(Ie),_e.metadata.Unicode=_e.metadata.Unicode||{encoding:{},kerning:{},widths:[]},_e.metadata.glyIdsUsed=[0]})(Se,Ee)}}])}(E),function(t){function Ae(){return(n.canvg?Promise.resolve(n.canvg):__vitePreload(()=>import("./index.es-RGQT-6h9.js"),[])).catch(function(xe){return Promise.reject(new Error("Could not load canvg: "+xe))}).then(function(xe){return xe.default?xe.default:xe})}E.API.addSvgAsImage=function(xe,Ee,Se,Ce,_e,Ie,Be,Te){if(isNaN(Ee)||isNaN(Se))throw a.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(Ce)||isNaN(_e))throw a.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var Pe=document.createElement("canvas");Pe.width=Ce,Pe.height=_e;var ke=Pe.getContext("2d");ke.fillStyle="#fff",ke.fillRect(0,0,Pe.width,Pe.height);var $e={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},Oe=this;return Ae().then(function(Ue){return Ue.fromString(ke,xe,$e)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(Ue){return Ue.render($e)}).then(function(){Oe.addImage(Pe.toDataURL("image/jpeg",1),Ee,Se,Ce,_e,Be,Te)})}}(),E.API.putTotalPages=function(t){var Ae,xe=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(Ae=new RegExp(t,"g"),xe=this.internal.getNumberOfPages()):(Ae=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),xe=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var Ee=1;Ee<=this.internal.getNumberOfPages();Ee++)for(var Se=0;Se<this.internal.pages[Ee].length;Se++)this.internal.pages[Ee][Se]=this.internal.pages[Ee][Se].replace(Ae,xe);return this},E.API.viewerPreferences=function(t,Ae){var xe;t=t||{},Ae=Ae||!1;var Ee,Se,Ce,_e={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},Ie=Object.keys(_e),Be=[],Te=0,Pe=0,ke=0;function $e(Ue,qe){var ze,Qe=!1;for(ze=0;ze<Ue.length;ze+=1)Ue[ze]===qe&&(Qe=!0);return Qe}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(_e)),this.internal.viewerpreferences.isSubscribed=!1),xe=this.internal.viewerpreferences.configuration,t==="reset"||Ae===!0){var Oe=Ie.length;for(ke=0;ke<Oe;ke+=1)xe[Ie[ke]].value=xe[Ie[ke]].defaultValue,xe[Ie[ke]].explicitSet=!1}if(_typeof$c(t)==="object"){for(Se in t)if(Ce=t[Se],$e(Ie,Se)&&Ce!==void 0){if(xe[Se].type==="boolean"&&typeof Ce=="boolean")xe[Se].value=Ce;else if(xe[Se].type==="name"&&$e(xe[Se].valueSet,Ce))xe[Se].value=Ce;else if(xe[Se].type==="integer"&&Number.isInteger(Ce))xe[Se].value=Ce;else if(xe[Se].type==="array"){for(Te=0;Te<Ce.length;Te+=1)if(Ee=!0,Ce[Te].length===1&&typeof Ce[Te][0]=="number")Be.push(String(Ce[Te]-1));else if(Ce[Te].length>1){for(Pe=0;Pe<Ce[Te].length;Pe+=1)typeof Ce[Te][Pe]!="number"&&(Ee=!1);Ee===!0&&Be.push([Ce[Te][0]-1,Ce[Te][1]-1].join(" "))}xe[Se].value="["+Be.join(" ")+"]"}else xe[Se].value=xe[Se].defaultValue;xe[Se].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var Ue,qe=[];for(Ue in xe)xe[Ue].explicitSet===!0&&(xe[Ue].type==="name"?qe.push("/"+Ue+" /"+xe[Ue].value):qe.push("/"+Ue+" "+xe[Ue].value));qe.length!==0&&this.internal.write(`/ViewerPreferences
|
|
848
848
|
<<
|
|
849
849
|
`+qe.join(`
|
|
850
850
|
`)+`
|