From f20f064d0f41fec744a93fddaf01d20861da3739 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E5=8A=A8=E7=89=A9?= <15294745236@163.com> Date: Sun, 1 Sep 2024 20:37:22 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=E6=B7=BB=E5=8A=A0=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/contentPage/contentPage.js | 2 +- src/contentPage/components/ElemenetMessage.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/contentPage/contentPage.js b/dist/contentPage/contentPage.js index 976340e..b74b6fc 100644 --- a/dist/contentPage/contentPage.js +++ b/dist/contentPage/contentPage.js @@ -1 +1 @@ -import{r as b,T as lr,C as sr,D as cr,E as ur,F as Wt,f as ee,j as f,_ as y,h as q,p as $t,G as jt,H as dr,a as ce,g as ae,s as Y,c as F,u as ue,i as de,d as ut,I as pr,J as fr,B as Dt,n as hr,y as At,z as Ae,o as He,K as vr,A as gr}from"../js/ButtonBase-8la9PwCJ.js";var zt={exports:{}},br="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",yr=br,xr=yr;function qt(){}function Xt(){}Xt.resetWarningCache=qt;var mr=function(){function e(i,n,l,c,u,g){if(g!==xr){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}e.isRequired=e;function t(){return e}var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Xt,resetWarningCache:qt};return o.PropTypes=o,o};zt.exports=mr();var Sr=zt.exports;function Cr(e){return Object.keys(e).length===0}function wr(e=null){const t=b.useContext(lr);return!t||Cr(t)?e:t}const Tr=sr();function Ht(e=Tr){return wr(e)}const _r=["className","component"];function Ir(e={}){const{themeId:t,defaultTheme:o,defaultClassName:i="MuiBox-root",generateClassName:n}=e,l=cr("div",{shouldForwardProp:u=>u!=="theme"&&u!=="sx"&&u!=="as"})(ur);return b.forwardRef(function(g,v){const x=Ht(o),m=Wt(g),{className:h,component:S="div"}=m,M=ee(m,_r);return f.jsx(l,y({as:S,ref:v,className:q(h,n?n(i):i),theme:t&&x[t]||x},M))})}function Ft(e,t=166){let o;function i(...n){const l=()=>{e.apply(this,n)};clearTimeout(o),o=setTimeout(l,t)}return i.clear=()=>{clearTimeout(o)},i}function Vt(e){return $t(e).defaultView||window}let be;function Ut(){if(be)return be;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),be="reverse",e.scrollLeft>0?be="default":(e.scrollLeft=1,e.scrollLeft===0&&(be="negative")),document.body.removeChild(e),be}function Rr(e,t){const o=e.scrollLeft;if(t!=="rtl")return o;switch(Ut()){case"negative":return e.scrollWidth-e.clientWidth+o;case"reverse":return e.scrollWidth-e.clientWidth-o;default:return o}}function Yt(){const e=Ht(dr);return e[jt]||e}const dt=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Br(e){return ce("MuiSvgIcon",e)}ae("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Mr=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Er=e=>{const{color:t,fontSize:o,classes:i}=e,n={root:["root",t!=="inherit"&&`color${F(t)}`,`fontSize${F(o)}`]};return de(n,Br,i)},Pr=Y("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.color!=="inherit"&&t[`color${F(o.color)}`],t[`fontSize${F(o.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var o,i,n,l,c,u,g,v,x,m,h,S,M;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(o=e.transitions)==null||(i=o.create)==null?void 0:i.call(o,"fill",{duration:(n=e.transitions)==null||(n=n.duration)==null?void 0:n.shorter}),fontSize:{inherit:"inherit",small:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,20))||"1.25rem",medium:((u=e.typography)==null||(g=u.pxToRem)==null?void 0:g.call(u,24))||"1.5rem",large:((v=e.typography)==null||(x=v.pxToRem)==null?void 0:x.call(v,35))||"2.1875rem"}[t.fontSize],color:(m=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?m:{action:(S=(e.vars||e).palette)==null||(S=S.action)==null?void 0:S.active,disabled:(M=(e.vars||e).palette)==null||(M=M.action)==null?void 0:M.disabled,inherit:void 0}[t.color]}}),it=b.forwardRef(function(t,o){const i=ue({props:t,name:"MuiSvgIcon"}),{children:n,className:l,color:c="inherit",component:u="svg",fontSize:g="medium",htmlColor:v,inheritViewBox:x=!1,titleAccess:m,viewBox:h="0 0 24 24"}=i,S=ee(i,Mr),M=b.isValidElement(n)&&n.type==="svg",P=y({},i,{color:c,component:u,fontSize:g,instanceFontSize:t.fontSize,inheritViewBox:x,viewBox:h,hasSvgAsChild:M}),E={};x||(E.viewBox=h);const D=Er(P);return f.jsxs(Pr,y({as:u,className:q(D.root,l),focusable:"false",color:v,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:o},E,S,M&&n.props,{ownerState:P,children:[M?n.props.children:n,m?f.jsx("title",{children:m}):null]}))});it.muiName="SvgIcon";function Kt(e,t){function o(i,n){return f.jsx(it,y({"data-testid":`${t}Icon`,ref:n},i,{children:e}))}return o.muiName=it.muiName,b.memo(b.forwardRef(o))}function Nr(e){return ce("MuiPaper",e)}ae("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Or=["className","component","elevation","square","variant"],Lr=e=>{const{square:t,elevation:o,variant:i,classes:n}=e,l={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${o}`]};return de(l,Nr,n)},kr=Y("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],!o.square&&t.rounded,o.variant==="elevation"&&t[`elevation${o.elevation}`]]}})(({theme:e,ownerState:t})=>{var o;return y({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&y({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${ut("#fff",dt(t.elevation))}, ${ut("#fff",dt(t.elevation))})`},e.vars&&{backgroundImage:(o=e.vars.overlays)==null?void 0:o[t.elevation]}))}),Wr=b.forwardRef(function(t,o){const i=ue({props:t,name:"MuiPaper"}),{className:n,component:l="div",elevation:c=1,square:u=!1,variant:g="elevation"}=i,v=ee(i,Or),x=y({},i,{component:l,elevation:c,square:u,variant:g}),m=Lr(x);return f.jsx(kr,y({as:l,ownerState:x,className:q(m.root,n),ref:o},v))});function $r(e){return ce("MuiTypography",e)}ae("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const jr=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Dr=e=>{const{align:t,gutterBottom:o,noWrap:i,paragraph:n,variant:l,classes:c}=e,u={root:["root",l,e.align!=="inherit"&&`align${F(t)}`,o&&"gutterBottom",i&&"noWrap",n&&"paragraph"]};return de(u,$r,c)},Ar=Y("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.variant&&t[o.variant],o.align!=="inherit"&&t[`align${F(o.align)}`],o.noWrap&&t.noWrap,o.gutterBottom&&t.gutterBottom,o.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>y({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),pt={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},zr={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},qr=e=>zr[e]||e,Xr=b.forwardRef(function(t,o){const i=ue({props:t,name:"MuiTypography"}),n=qr(i.color),l=Wt(y({},i,{color:n})),{align:c="inherit",className:u,component:g,gutterBottom:v=!1,noWrap:x=!1,paragraph:m=!1,variant:h="body1",variantMapping:S=pt}=l,M=ee(l,jr),P=y({},l,{align:c,color:n,className:u,component:g,gutterBottom:v,noWrap:x,paragraph:m,variant:h,variantMapping:S}),E=g||(m?"p":S[h]||pt[h])||"span",D=Dr(P);return f.jsx(Ar,y({as:E,ref:o,ownerState:P,className:q(D.root,u)},M))});function Hr(e){return ce("MuiAppBar",e)}ae("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Fr=["className","color","enableColorOnDark","position"],Vr=e=>{const{color:t,position:o,classes:i}=e,n={root:["root",`color${F(t)}`,`position${F(o)}`]};return de(n,Hr,i)},Le=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Ur=Y(Wr,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`position${F(o.position)}`],t[`color${F(o.color)}`]]}})(({theme:e,ownerState:t})=>{const o=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return y({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&y({},t.color==="default"&&{backgroundColor:o,color:e.palette.getContrastText(o)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&y({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&y({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Le(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Le(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Le(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Le(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),Yr=b.forwardRef(function(t,o){const i=ue({props:t,name:"MuiAppBar"}),{className:n,color:l="primary",enableColorOnDark:c=!1,position:u="fixed"}=i,g=ee(i,Fr),v=y({},i,{color:l,position:u,enableColorOnDark:c}),x=Vr(v);return f.jsx(Ur,y({square:!0,component:"header",ownerState:v,elevation:4,className:q(x.root,n,u==="fixed"&&"mui-fixed"),ref:o},g))}),Kr=ae("MuiBox",["root"]),Gr=pr(),Gt=Ir({themeId:jt,defaultTheme:Gr,defaultClassName:Kr.root,generateClassName:fr.generate});function Jr(e){return ce("MuiTab",e)}const ie=ae("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Zr=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Qr=e=>{const{classes:t,textColor:o,fullWidth:i,wrapped:n,icon:l,label:c,selected:u,disabled:g}=e,v={root:["root",l&&c&&"labelIcon",`textColor${F(o)}`,i&&"fullWidth",n&&"wrapped",u&&"selected",g&&"disabled"],iconWrapper:["iconWrapper"]};return de(v,Jr,t)},eo=Y(Dt,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.label&&o.icon&&t.labelIcon,t[`textColor${F(o.textColor)}`],o.fullWidth&&t.fullWidth,o.wrapped&&t.wrapped,{[`& .${ie.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>y({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${ie.iconWrapper}`]:y({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${ie.selected}`]:{opacity:1},[`&.${ie.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ie.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${ie.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ie.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${ie.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Fe=b.forwardRef(function(t,o){const i=ue({props:t,name:"MuiTab"}),{className:n,disabled:l=!1,disableFocusRipple:c=!1,fullWidth:u,icon:g,iconPosition:v="top",indicator:x,label:m,onChange:h,onClick:S,onFocus:M,selected:P,selectionFollowsFocus:E,textColor:D="inherit",value:L,wrapped:pe=!1}=i,J=ee(i,Zr),K=y({},i,{disabled:l,disableFocusRipple:c,selected:P,icon:!!g,iconPosition:v,label:!!m,fullWidth:u,textColor:D,wrapped:pe}),te=Qr(K),d=g&&m&&b.isValidElement(g)?b.cloneElement(g,{className:q(te.iconWrapper,g.props.className)}):g,I=r=>{!P&&h&&h(r,L),S&&S(r)},w=r=>{E&&!P&&h&&h(r,L),M&&M(r)};return f.jsxs(eo,y({focusRipple:!c,className:q(te.root,n),ref:o,role:"tab","aria-selected":P,disabled:l,onClick:I,onFocus:w,ownerState:K,tabIndex:P?0:-1},J,{children:[v==="top"||v==="start"?f.jsxs(b.Fragment,{children:[d,m]}):f.jsxs(b.Fragment,{children:[m,d]}),x]}))}),to=Kt(f.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ro=Kt(f.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function oo(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function no(e,t,o,i={},n=()=>{}){const{ease:l=oo,duration:c=300}=i;let u=null;const g=t[e];let v=!1;const x=()=>{v=!0},m=h=>{if(v){n(new Error("Animation cancelled"));return}u===null&&(u=h);const S=Math.min(1,(h-u)/c);if(t[e]=l(S)*(o-g)+g,S>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(m)};return g===o?(n(new Error("Element already at target position")),x):(requestAnimationFrame(m),x)}const io=["onChange"],ao={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function lo(e){const{onChange:t}=e,o=ee(e,io),i=b.useRef(),n=b.useRef(null),l=()=>{i.current=n.current.offsetHeight-n.current.clientHeight};return hr(()=>{const c=Ft(()=>{const g=i.current;l(),g!==i.current&&t(i.current)}),u=Vt(n.current);return u.addEventListener("resize",c),()=>{c.clear(),u.removeEventListener("resize",c)}},[t]),b.useEffect(()=>{l(),t(i.current)},[t]),f.jsx("div",y({style:ao,ref:n},o))}function so(e){return ce("MuiTabScrollButton",e)}const co=ae("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),uo=["className","slots","slotProps","direction","orientation","disabled"],po=e=>{const{classes:t,orientation:o,disabled:i}=e;return de({root:["root",o,i&&"disabled"]},so,t)},fo=Y(Dt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.orientation&&t[o.orientation]]}})(({ownerState:e})=>y({width:40,flexShrink:0,opacity:.8,[`&.${co.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),ho=b.forwardRef(function(t,o){var i,n;const l=ue({props:t,name:"MuiTabScrollButton"}),{className:c,slots:u={},slotProps:g={},direction:v}=l,x=ee(l,uo),m=At(),h=y({isRtl:m},l),S=po(h),M=(i=u.StartScrollButtonIcon)!=null?i:to,P=(n=u.EndScrollButtonIcon)!=null?n:ro,E=Ae({elementType:M,externalSlotProps:g.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),D=Ae({elementType:P,externalSlotProps:g.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return f.jsx(fo,y({component:"div",className:q(S.root,c),ref:o,role:null,ownerState:h,tabIndex:null},x,{children:v==="left"?f.jsx(M,y({},E)):f.jsx(P,y({},D))}))});function vo(e){return ce("MuiTabs",e)}const Ve=ae("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),go=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],ft=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,ht=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,ke=(e,t,o)=>{let i=!1,n=o(e,t);for(;n;){if(n===e.firstChild){if(i)return;i=!0}const l=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||l)n=o(e,n);else{n.focus();return}}},bo=e=>{const{vertical:t,fixed:o,hideScrollbar:i,scrollableX:n,scrollableY:l,centered:c,scrollButtonsHideMobile:u,classes:g}=e;return de({root:["root",t&&"vertical"],scroller:["scroller",o&&"fixed",i&&"hideScrollbar",n&&"scrollableX",l&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",c&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",u&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[i&&"hideScrollbar"]},vo,g)},yo=Y("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${Ve.scrollButtons}`]:t.scrollButtons},{[`& .${Ve.scrollButtons}`]:o.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,o.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>y({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Ve.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),xo=Y("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.scroller,o.fixed&&t.fixed,o.hideScrollbar&&t.hideScrollbar,o.scrollableX&&t.scrollableX,o.scrollableY&&t.scrollableY]}})(({ownerState:e})=>y({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),mo=Y("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.flexContainer,o.vertical&&t.flexContainerVertical,o.centered&&t.centered]}})(({ownerState:e})=>y({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),So=Y("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>y({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),Co=Y(lo)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),vt={},wo=b.forwardRef(function(t,o){const i=ue({props:t,name:"MuiTabs"}),n=Yt(),l=At(),{"aria-label":c,"aria-labelledby":u,action:g,centered:v=!1,children:x,className:m,component:h="div",allowScrollButtonsMobile:S=!1,indicatorColor:M="primary",onChange:P,orientation:E="horizontal",ScrollButtonComponent:D=ho,scrollButtons:L="auto",selectionFollowsFocus:pe,slots:J={},slotProps:K={},TabIndicatorProps:te={},TabScrollButtonProps:d={},textColor:I="primary",value:w,variant:r="standard",visibleScrollbar:a=!1}=i,T=ee(i,go),_=r==="scrollable",C=E==="vertical",O=C?"scrollTop":"scrollLeft",j=C?"top":"left",A=C?"bottom":"right",k=C?"clientHeight":"clientWidth",V=C?"height":"width",z=y({},i,{component:h,allowScrollButtonsMobile:S,indicatorColor:M,orientation:E,vertical:C,scrollButtons:L,textColor:I,variant:r,visibleScrollbar:a,fixed:!_,hideScrollbar:_&&!a,scrollableX:_&&!C,scrollableY:_&&C,centered:v&&!_,scrollButtonsHideMobile:!S}),W=bo(z),fe=Ae({elementType:J.StartScrollButtonIcon,externalSlotProps:K.startScrollButtonIcon,ownerState:z}),he=Ae({elementType:J.EndScrollButtonIcon,externalSlotProps:K.endScrollButtonIcon,ownerState:z}),[U,ye]=b.useState(!1),[X,re]=b.useState(vt),[xe,Me]=b.useState(!1),[Ee,ze]=b.useState(!1),[me,ve]=b.useState(!1),[le,Pe]=b.useState({overflow:"hidden",scrollbarWidth:0}),se=new Map,H=b.useRef(null),Z=b.useRef(null),Se=()=>{const s=H.current;let p;if(s){const R=s.getBoundingClientRect();p={clientWidth:s.clientWidth,scrollLeft:s.scrollLeft,scrollTop:s.scrollTop,scrollLeftNormalized:Rr(s,l?"rtl":"ltr"),scrollWidth:s.scrollWidth,top:R.top,bottom:R.bottom,left:R.left,right:R.right}}let B;if(s&&w!==!1){const R=Z.current.children;if(R.length>0){const N=R[se.get(w)];B=N?N.getBoundingClientRect():null}}return{tabsMeta:p,tabMeta:B}},oe=He(()=>{const{tabsMeta:s,tabMeta:p}=Se();let B=0,R;if(C)R="top",p&&s&&(B=p.top-s.top+s.scrollTop);else if(R=l?"right":"left",p&&s){const $=l?s.scrollLeftNormalized+s.clientWidth-s.scrollWidth:s.scrollLeft;B=(l?-1:1)*(p[R]-s[R]+$)}const N={[R]:B,[V]:p?p[V]:0};if(isNaN(X[R])||isNaN(X[V]))re(N);else{const $=Math.abs(X[R]-N[R]),G=Math.abs(X[V]-N[V]);($>=1||G>=1)&&re(N)}}),ge=(s,{animation:p=!0}={})=>{p?no(O,H.current,s,{duration:n.transitions.duration.standard}):H.current[O]=s},at=s=>{let p=H.current[O];C?p+=s:(p+=s*(l?-1:1),p*=l&&Ut()==="reverse"?-1:1),ge(p)},lt=()=>{const s=H.current[k];let p=0;const B=Array.from(Z.current.children);for(let R=0;Rs){R===0&&(p=s);break}p+=N[k]}return p},tr=()=>{at(-1*lt())},rr=()=>{at(lt())},or=b.useCallback(s=>{Pe({overflow:null,scrollbarWidth:s})},[]),nr=()=>{const s={};s.scrollbarSizeListener=_?f.jsx(Co,{onChange:or,className:q(W.scrollableX,W.hideScrollbar)}):null;const B=_&&(L==="auto"&&(xe||Ee)||L===!0);return s.scrollButtonStart=B?f.jsx(D,y({slots:{StartScrollButtonIcon:J.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:fe},orientation:E,direction:l?"right":"left",onClick:tr,disabled:!xe},d,{className:q(W.scrollButtons,d.className)})):null,s.scrollButtonEnd=B?f.jsx(D,y({slots:{EndScrollButtonIcon:J.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:he},orientation:E,direction:l?"left":"right",onClick:rr,disabled:!Ee},d,{className:q(W.scrollButtons,d.className)})):null,s},st=He(s=>{const{tabsMeta:p,tabMeta:B}=Se();if(!(!B||!p)){if(B[j]p[A]){const R=p[O]+(B[A]-p[A]);ge(R,{animation:s})}}}),Ne=He(()=>{_&&L!==!1&&ve(!me)});b.useEffect(()=>{const s=Ft(()=>{H.current&&oe()});let p;const B=$=>{$.forEach(G=>{G.removedNodes.forEach(Ce=>{var ne;(ne=p)==null||ne.unobserve(Ce)}),G.addedNodes.forEach(Ce=>{var ne;(ne=p)==null||ne.observe(Ce)})}),s(),Ne()},R=Vt(H.current);R.addEventListener("resize",s);let N;return typeof ResizeObserver<"u"&&(p=new ResizeObserver(s),Array.from(Z.current.children).forEach($=>{p.observe($)})),typeof MutationObserver<"u"&&(N=new MutationObserver(B),N.observe(Z.current,{childList:!0})),()=>{var $,G;s.clear(),R.removeEventListener("resize",s),($=N)==null||$.disconnect(),(G=p)==null||G.disconnect()}},[oe,Ne]),b.useEffect(()=>{const s=Array.from(Z.current.children),p=s.length;if(typeof IntersectionObserver<"u"&&p>0&&_&&L!==!1){const B=s[0],R=s[p-1],N={root:H.current,threshold:.99},$=Xe=>{Me(!Xe[0].isIntersecting)},G=new IntersectionObserver($,N);G.observe(B);const Ce=Xe=>{ze(!Xe[0].isIntersecting)},ne=new IntersectionObserver(Ce,N);return ne.observe(R),()=>{G.disconnect(),ne.disconnect()}}},[_,L,me,x==null?void 0:x.length]),b.useEffect(()=>{ye(!0)},[]),b.useEffect(()=>{oe()}),b.useEffect(()=>{st(vt!==X)},[st,X]),b.useImperativeHandle(g,()=>({updateIndicator:oe,updateScrollButtons:Ne}),[oe,Ne]);const ct=f.jsx(So,y({},te,{className:q(W.indicator,te.className),ownerState:z,style:y({},X,te.style)}));let Oe=0;const ir=b.Children.map(x,s=>{if(!b.isValidElement(s))return null;const p=s.props.value===void 0?Oe:s.props.value;se.set(p,Oe);const B=p===w;return Oe+=1,b.cloneElement(s,y({fullWidth:r==="fullWidth",indicator:B&&!U&&ct,selected:B,selectionFollowsFocus:pe,onChange:P,textColor:I,value:p},Oe===1&&w===!1&&!s.props.tabIndex?{tabIndex:0}:{}))}),ar=s=>{const p=Z.current,B=$t(p).activeElement;if(B.getAttribute("role")!=="tab")return;let N=E==="horizontal"?"ArrowLeft":"ArrowUp",$=E==="horizontal"?"ArrowRight":"ArrowDown";switch(E==="horizontal"&&l&&(N="ArrowRight",$="ArrowLeft"),s.key){case N:s.preventDefault(),ke(p,B,ht);break;case $:s.preventDefault(),ke(p,B,ft);break;case"Home":s.preventDefault(),ke(p,null,ft);break;case"End":s.preventDefault(),ke(p,null,ht);break}},qe=nr();return f.jsxs(yo,y({className:q(W.root,m),ownerState:z,ref:o,as:h},T,{children:[qe.scrollButtonStart,qe.scrollbarSizeListener,f.jsxs(xo,{className:W.scroller,ownerState:z,style:{overflow:le.overflow,[C?`margin${l?"Left":"Right"}`:"marginBottom"]:a?void 0:-le.scrollbarWidth},ref:H,children:[f.jsx(mo,{"aria-label":c,"aria-labelledby":u,"aria-orientation":E==="vertical"?"vertical":null,className:W.flexContainer,ownerState:z,onKeyDown:ar,ref:Z,role:"tablist",children:ir}),U&&ct]}),qe.scrollButtonEnd]}))});var Jt={};function To(e){if(e&&e.__esModule)return e;var t={};if(e!=null){for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,o):{};i.get||i.set?Object.defineProperty(t,o,i):t[o]=e[o]}}return t.default=e,t}var Zt=To,Q={},Ue,gt;function Be(){if(gt)return Ue;gt=1;function e(t){return t&&t.__esModule?t:{default:t}}return Ue=e,Ue}var We,bt;function _o(){if(bt)return We;bt=1;function e(){return We=e=Object.assign||function(t){for(var o=1;o=0)&&(i[l]=t[l]);return i}return Ye=e,Ye}var Ke,xt;function Ro(){if(xt)return Ke;xt=1;var e=Io();function t(o,i){if(o==null)return{};var n=e(o,i),l,c;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(o);for(c=0;c=0)&&Object.prototype.propertyIsEnumerable.call(o,l)&&(n[l]=o[l])}return n}return Ke=t,Ke}var Ge,mt;function Bo(){if(mt)return Ge;mt=1;function e(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}return Ge=e,Ge}var Je,St;function Mo(){if(St)return Je;St=1;function e(o,i){for(var n=0;nm&&(h=m+1-Math.exp((m-h)*o.default.RESISTANCE_COEF)):h<0?(h=0,S=(h-c)*v+g):h>m&&(h=m,S=(h-c)*v+g),{index:h,startX:S}}return De}var Ie={},Nt;function jo(){if(Nt)return Ie;Nt=1;var e=Be();Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.default=void 0;var t=e(b),o=function(l,c){var u=!1,g=function(M){return M?M.key:"empty"};if(l.children.length&&c.children.length){var v=t.default.Children.map(l.children,g),x=v[l.index];if(x!=null){var m=t.default.Children.map(c.children,g),h=m[c.index];x===h&&(u=!0)}}return u},i=o;return Ie.default=i,Ie}var Re={},Ot;function Do(){if(Ot)return Re;Ot=1,Object.defineProperty(Re,"__esModule",{value:!0}),Re.default=void 0;function e(o,i){var n=o%i;return n<0?n+i:n}var t=e;return Re.default=t,Re}var Lt;function Ao(){return Lt||(Lt=1,function(e){var t=Be();Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"checkIndexBounds",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"computeIndex",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"constant",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"getDisplaySameSlide",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"mod",{enumerable:!0,get:function(){return c.default}});var o=t(Wo()),i=t($o()),n=t(er()),l=t(jo()),c=t(Do())}(rt)),rt}var kt;function zo(){if(kt)return Q;kt=1;var e=Zt,t=Be();Object.defineProperty(Q,"__esModule",{value:!0}),Q.getDomTreeShapes=D,Q.findNativeHandler=pe,Q.default=Q.SwipeableViewsContext=void 0;var o=t(_o()),i=t(Ro()),n=t(Bo()),l=t(Mo()),c=t(No()),u=t(Oo()),g=t(ko()),v=e(b);t(Sr),t(Qt());var x=Ao();function m(d,I,w,r){return d.addEventListener(I,w,r),{remove:function(){d.removeEventListener(I,w,r)}}}var h={container:{direction:"ltr",display:"flex",willChange:"transform"},slide:{width:"100%",WebkitFlexShrink:0,flexShrink:0,overflow:"auto"}},S={root:{x:{overflowX:"hidden"},"x-reverse":{overflowX:"hidden"},y:{overflowY:"hidden"},"y-reverse":{overflowY:"hidden"}},flexDirection:{x:"row","x-reverse":"row-reverse",y:"column","y-reverse":"column-reverse"},transform:{x:function(I){return"translate(".concat(-I,"%, 0)")},"x-reverse":function(I){return"translate(".concat(I,"%, 0)")},y:function(I){return"translate(0, ".concat(-I,"%)")},"y-reverse":function(I){return"translate(0, ".concat(I,"%)")}},length:{x:"width","x-reverse":"width",y:"height","y-reverse":"height"},rotationMatrix:{x:{x:[1,0],y:[0,1]},"x-reverse":{x:[-1,0],y:[0,1]},y:{x:[0,1],y:[1,0]},"y-reverse":{x:[0,-1],y:[1,0]}},scrollPosition:{x:"scrollLeft","x-reverse":"scrollLeft",y:"scrollTop","y-reverse":"scrollTop"},scrollLength:{x:"scrollWidth","x-reverse":"scrollWidth",y:"scrollHeight","y-reverse":"scrollHeight"},clientLength:{x:"clientWidth","x-reverse":"clientWidth",y:"clientHeight","y-reverse":"clientHeight"}};function M(d,I){var w=I.duration,r=I.easeFunction,a=I.delay;return"".concat(d," ").concat(w," ").concat(r," ").concat(a)}function P(d,I){var w=S.rotationMatrix[I];return{pageX:w.x[0]*d.pageX+w.x[1]*d.pageY,pageY:w.y[0]*d.pageX+w.y[1]*d.pageY}}function E(d){return d.touches=[{pageX:d.pageX,pageY:d.pageY}],d}function D(d,I){for(var w=[];d&&d!==I&&d!==document.body&&!d.hasAttribute("data-swipeable");){var r=window.getComputedStyle(d);r.getPropertyValue("position")==="absolute"||r.getPropertyValue("overflow-x")==="hidden"?w=[]:(d.clientWidth>0&&d.scrollWidth>d.clientWidth||d.clientHeight>0&&d.scrollHeight>d.clientHeight)&&w.push({element:d,scrollWidth:d.scrollWidth,scrollHeight:d.scrollHeight,clientWidth:d.clientWidth,clientHeight:d.clientHeight,scrollLeft:d.scrollLeft,scrollTop:d.scrollTop}),d=d.parentNode}return w}var L=null;function pe(d){var I=d.domTreeShapes,w=d.pageX,r=d.startX,a=d.axis;return I.some(function(T){var _=w>=r;(a==="x"||a==="y")&&(_=!_);var C=Math.round(T[S.scrollPosition[a]]),O=C>0,j=C+T[S.clientLength[a]]z&&V>x.constant.UNCERTAINTY_THRESHOLD;if(!A&&(_==="y"||_==="y-reverse")&&(r.indexCurrent===0&&r.startXk.pageX)){r.isSwiping=!1;return}if(V>z&&a.preventDefault(),W===!0||z>x.constant.UNCERTAINTY_THRESHOLD){r.isSwiping=W,r.startX=k.pageX;return}}if(r.isSwiping===!0){a.preventDefault(),r.vx=r.vx*.5+(k.pageX-r.lastX)*.5,r.lastX=k.pageX;var fe=(0,x.computeIndex)({children:C,resistance:A,pageX:k.pageX,startIndex:r.startIndex,startX:r.startX,viewLength:r.viewLength}),he=fe.index,U=fe.startX;if(L===null&&!O){var ye=D(a.target,r.rootNode),X=pe({domTreeShapes:ye,startX:r.startX,pageX:k.pageX,axis:_});if(X)return}U?r.startX=U:L===null&&(L=r.rootNode),r.setIndexCurrent(he);var re=function(){j&&j(he,"move")};(r.state.displaySameSlide||!r.state.isDragging)&&r.setState({displaySameSlide:!1,isDragging:!0},re),re()}}},r.handleSwipeEnd=function(){if(L=null,!!r.started&&(r.started=!1,r.isSwiping===!0)){var a=r.state.indexLatest,T=r.indexCurrent,_=a-T,C;Math.abs(r.vx)>r.props.threshold?r.vx>0?C=Math.floor(T):C=Math.ceil(T):Math.abs(_)>r.props.hysteresis?C=_>0?Math.floor(T):Math.ceil(T):C=a;var O=v.Children.count(r.props.children)-1;C<0?C=0:C>O&&(C=O),r.setIndexCurrent(C),r.setState({indexLatest:C,isDragging:!1},function(){r.props.onSwitching&&r.props.onSwitching(C,"end"),r.props.onChangeIndex&&C!==a&&r.props.onChangeIndex(C,a,{reason:"swipe"}),T===a&&r.handleTransitionEnd()})}},r.handleTouchStart=function(a){r.props.onTouchStart&&r.props.onTouchStart(a),r.handleSwipeStart(a)},r.handleTouchEnd=function(a){r.props.onTouchEnd&&r.props.onTouchEnd(a),r.handleSwipeEnd(a)},r.handleMouseDown=function(a){r.props.onMouseDown&&r.props.onMouseDown(a),a.persist(),r.handleSwipeStart(E(a))},r.handleMouseUp=function(a){r.props.onMouseUp&&r.props.onMouseUp(a),r.handleSwipeEnd(E(a))},r.handleMouseLeave=function(a){r.props.onMouseLeave&&r.props.onMouseLeave(a),r.started&&r.handleSwipeEnd(E(a))},r.handleMouseMove=function(a){r.props.onMouseMove&&r.props.onMouseMove(a),r.started&&r.handleSwipeMove(E(a))},r.handleScroll=function(a){if(r.props.onScroll&&r.props.onScroll(a),a.target===r.rootNode){if(r.ignoreNextScrollEvents){r.ignoreNextScrollEvents=!1;return}var T=r.state.indexLatest,_=Math.ceil(a.target.scrollLeft/a.target.clientWidth)+T;r.ignoreNextScrollEvents=!0,a.target.scrollLeft=0,r.props.onChangeIndex&&_!==T&&r.props.onChangeIndex(_,T,{reason:"focus"})}},r.updateHeight=function(){if(r.activeSlide!==null){var a=r.activeSlide.children[0];a!==void 0&&a.offsetHeight!==void 0&&r.state.heightLatest!==a.offsetHeight&&r.setState({heightLatest:a.offsetHeight})}},r.state={indexLatest:w.index,isDragging:!1,renderOnlyActive:!w.disableLazyLoading,heightLatest:0,displaySameSlide:!0},r.setIndexCurrent(w.index),r}return(0,l.default)(I,[{key:"componentDidMount",value:function(){var r=this;this.transitionListener=m(this.containerNode,"transitionend",function(a){a.target===r.containerNode&&r.handleTransitionEnd()}),this.touchMoveListener=m(this.rootNode,"touchmove",function(a){r.props.disabled||r.handleSwipeMove(a)},{passive:!1}),this.props.disableLazyLoading||(this.firstRenderTimeout=setTimeout(function(){r.setState({renderOnlyActive:!1})},0)),this.props.action&&this.props.action({updateHeight:this.updateHeight})}},{key:"UNSAFE_componentWillReceiveProps",value:function(r){var a=r.index;typeof a=="number"&&a!==this.props.index&&(this.setIndexCurrent(a),this.setState({displaySameSlide:(0,x.getDisplaySameSlide)(this.props,r),indexLatest:a}))}},{key:"componentWillUnmount",value:function(){this.transitionListener.remove(),this.touchMoveListener.remove(),clearTimeout(this.firstRenderTimeout)}},{key:"getSwipeableViewsContext",value:function(){var r=this;return{slideUpdateHeight:function(){r.updateHeight()}}}},{key:"setIndexCurrent",value:function(r){if(!this.props.animateTransitions&&this.indexCurrent!==r&&this.handleTransitionEnd(),this.indexCurrent=r,this.containerNode){var a=this.props.axis,T=S.transform[a](r*100);this.containerNode.style.WebkitTransform=T,this.containerNode.style.transform=T}}},{key:"handleTransitionEnd",value:function(){this.props.onTransitionEnd&&(this.state.displaySameSlide||this.state.isDragging||this.props.onTransitionEnd())}},{key:"render",value:function(){var r=this,a=this.props;a.action;var T=a.animateHeight,_=a.animateTransitions,C=a.axis,O=a.children,j=a.containerStyle,A=a.disabled;a.disableLazyLoading;var k=a.enableMouseEvents;a.hysteresis,a.ignoreNativeScroll,a.index,a.onChangeIndex,a.onSwitching,a.onTransitionEnd,a.resistance;var V=a.slideStyle,z=a.slideClassName,W=a.springConfig,fe=a.style;a.threshold;var he=(0,i.default)(a,["action","animateHeight","animateTransitions","axis","children","containerStyle","disabled","disableLazyLoading","enableMouseEvents","hysteresis","ignoreNativeScroll","index","onChangeIndex","onSwitching","onTransitionEnd","resistance","slideStyle","slideClassName","springConfig","style","threshold"]),U=this.state,ye=U.displaySameSlide,X=U.heightLatest,re=U.indexLatest,xe=U.isDragging,Me=U.renderOnlyActive,Ee=A?{}:{onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd},ze=!A&&k?{onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave,onMouseMove:this.handleMouseMove}:{},me=(0,o.default)({},h.slide,V),ve,le;if(xe||!_||ye)ve="all 0s ease 0s",le="all 0s ease 0s";else if(ve=M("transform",W),le=M("-webkit-transform",W),X!==0){var Pe=", ".concat(M("height",W));ve+=Pe,le+=Pe}var se={height:null,WebkitFlexDirection:S.flexDirection[C],flexDirection:S.flexDirection[C],WebkitTransition:le,transition:ve};if(!Me){var H=S.transform[C](this.indexCurrent*100);se.WebkitTransform=H,se.transform=H}return T&&(se.height=X),v.createElement(J.Provider,{value:this.getSwipeableViewsContext()},v.createElement("div",(0,o.default)({ref:this.setRootNode,style:(0,o.default)({},S.root[C],fe)},he,Ee,ze,{onScroll:this.handleScroll}),v.createElement("div",{ref:this.setContainerNode,style:(0,o.default)({},se,h.container,j),className:"react-swipeable-view-container"},v.Children.map(O,function(Z,Se){if(Me&&Se!==re)return null;var oe,ge=!0;return Se===re&&(ge=!1,T&&(oe=r.setActiveSlide,me.overflowY="hidden")),v.createElement("div",{ref:oe,style:me,className:z,"aria-hidden":ge,"data-swipeable":"true"},Z)}))))}}]),I}(v.Component);K.displayName="ReactSwipableView",K.propTypes={},K.defaultProps={animateHeight:!1,animateTransitions:!0,axis:"x",disabled:!1,disableLazyLoading:!1,enableMouseEvents:!1,hysteresis:.6,ignoreNativeScroll:!1,index:0,threshold:5,springConfig:{duration:"0.35s",easeFunction:"cubic-bezier(0.15, 0.3, 0.25, 1)",delay:"0s"},resistance:!1};var te=K;return Q.default=te,Q}(function(e){var t=Zt;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"SwipeableViewsContext",{enumerable:!0,get:function(){return o.SwipeableViewsContext}});var o=t(zo())})(Jt);const qo=vr(Jt),Xo=()=>{const[e,t]=b.useState();b.useEffect(()=>{window.addEventListener("message",n=>{t(n.data)},!1)});let i=(e?Object.keys(e):[]).map((n,l)=>l==0?f.jsxs("p",{style:{fontFamily:"cursive",marginBottom:"10px"},children:[f.jsxs("strong",{style:{color:"#616161"},children:[n,":"]}),e[n]]},l):f.jsxs("p",{style:{fontFamily:"cursive",backgroundColor:" #ececec",padding:"10px",margin:"5px 0",borderRadius:"5px"},children:[f.jsxs("strong",{style:{color:"#616161"},children:[n,":"]}),e[n]]},l));return f.jsx(f.Fragment,{children:f.jsx("div",{style:{marginTop:"48px"},children:i})})};function ot(e){const{children:t,value:o,index:i,...n}=e;return f.jsx(Xr,{component:"div",role:"tabpanel",hidden:o!==i,id:`action-tabpanel-${i}`,"aria-labelledby":`action-tab-${i}`,...n,children:o===i&&f.jsx(Gt,{sx:{p:3},style:{padding:10,overflow:"hidden",backgroundColor:"#fff",minHeight:100},children:t})})}function nt(e){return{id:`action-tab-${e}`,"aria-controls":`action-tabpanel-${e}`}}function Ho(){const e=Yt(),[t,o]=b.useState(0),i=(l,c)=>{console.log(l),o(c)},n=l=>{o(l)};return f.jsxs(Gt,{sx:{bgcolor:"background.paper",width:270,position:"relative",maxHeight:200},children:[f.jsx(Yr,{position:"static",color:"default",style:{position:"fixed",top:0,zIndex:9999},children:f.jsxs(wo,{value:t,onChange:i,indicatorColor:"primary",textColor:"primary",variant:"fullWidth","aria-label":"action tabs example",children:[f.jsx(Fe,{label:"元素信息",...nt(0)}),f.jsx(Fe,{label:"元素修改",...nt(1)}),f.jsx(Fe,{label:"页面分析",...nt(2)})]})}),f.jsxs(qo,{axis:e.direction==="rtl"?"x-reverse":"x",index:t,onChangeIndex:n,children:[f.jsx(ot,{value:t,index:0,dir:e.direction,children:f.jsx(Xo,{})}),f.jsx(ot,{value:t,index:1,dir:e.direction,children:"Item Two"}),f.jsx(ot,{value:t,index:2,dir:e.direction,children:"Item Three"})]})]})}function Fo(){return f.jsx(f.Fragment,{children:f.jsx("div",{children:f.jsx("div",{id:"app",children:f.jsx(Ho,{})})})})}gr.createRoot(document.getElementById("root")).render(f.jsx(Fo,{})); +import{r as b,T as lr,C as sr,D as cr,E as ur,F as Wt,f as ee,j as p,_ as y,h as q,p as $t,G as jt,H as dr,a as ce,g as ae,s as Y,c as F,u as ue,i as de,d as ut,I as pr,J as fr,B as Dt,n as hr,y as At,z as Ae,o as He,K as vr,A as gr}from"../js/ButtonBase-8la9PwCJ.js";var zt={exports:{}},br="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",yr=br,xr=yr;function qt(){}function Xt(){}Xt.resetWarningCache=qt;var mr=function(){function e(i,n,l,c,u,g){if(g!==xr){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}e.isRequired=e;function t(){return e}var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Xt,resetWarningCache:qt};return o.PropTypes=o,o};zt.exports=mr();var Sr=zt.exports;function Cr(e){return Object.keys(e).length===0}function wr(e=null){const t=b.useContext(lr);return!t||Cr(t)?e:t}const Tr=sr();function Ht(e=Tr){return wr(e)}const _r=["className","component"];function Ir(e={}){const{themeId:t,defaultTheme:o,defaultClassName:i="MuiBox-root",generateClassName:n}=e,l=cr("div",{shouldForwardProp:u=>u!=="theme"&&u!=="sx"&&u!=="as"})(ur);return b.forwardRef(function(g,v){const x=Ht(o),m=Wt(g),{className:h,component:S="div"}=m,M=ee(m,_r);return p.jsx(l,y({as:S,ref:v,className:q(h,n?n(i):i),theme:t&&x[t]||x},M))})}function Ft(e,t=166){let o;function i(...n){const l=()=>{e.apply(this,n)};clearTimeout(o),o=setTimeout(l,t)}return i.clear=()=>{clearTimeout(o)},i}function Vt(e){return $t(e).defaultView||window}let be;function Ut(){if(be)return be;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),be="reverse",e.scrollLeft>0?be="default":(e.scrollLeft=1,e.scrollLeft===0&&(be="negative")),document.body.removeChild(e),be}function Rr(e,t){const o=e.scrollLeft;if(t!=="rtl")return o;switch(Ut()){case"negative":return e.scrollWidth-e.clientWidth+o;case"reverse":return e.scrollWidth-e.clientWidth-o;default:return o}}function Yt(){const e=Ht(dr);return e[jt]||e}const dt=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Br(e){return ce("MuiSvgIcon",e)}ae("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Mr=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Er=e=>{const{color:t,fontSize:o,classes:i}=e,n={root:["root",t!=="inherit"&&`color${F(t)}`,`fontSize${F(o)}`]};return de(n,Br,i)},Pr=Y("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.color!=="inherit"&&t[`color${F(o.color)}`],t[`fontSize${F(o.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var o,i,n,l,c,u,g,v,x,m,h,S,M;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(o=e.transitions)==null||(i=o.create)==null?void 0:i.call(o,"fill",{duration:(n=e.transitions)==null||(n=n.duration)==null?void 0:n.shorter}),fontSize:{inherit:"inherit",small:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,20))||"1.25rem",medium:((u=e.typography)==null||(g=u.pxToRem)==null?void 0:g.call(u,24))||"1.5rem",large:((v=e.typography)==null||(x=v.pxToRem)==null?void 0:x.call(v,35))||"2.1875rem"}[t.fontSize],color:(m=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?m:{action:(S=(e.vars||e).palette)==null||(S=S.action)==null?void 0:S.active,disabled:(M=(e.vars||e).palette)==null||(M=M.action)==null?void 0:M.disabled,inherit:void 0}[t.color]}}),it=b.forwardRef(function(t,o){const i=ue({props:t,name:"MuiSvgIcon"}),{children:n,className:l,color:c="inherit",component:u="svg",fontSize:g="medium",htmlColor:v,inheritViewBox:x=!1,titleAccess:m,viewBox:h="0 0 24 24"}=i,S=ee(i,Mr),M=b.isValidElement(n)&&n.type==="svg",P=y({},i,{color:c,component:u,fontSize:g,instanceFontSize:t.fontSize,inheritViewBox:x,viewBox:h,hasSvgAsChild:M}),E={};x||(E.viewBox=h);const D=Er(P);return p.jsxs(Pr,y({as:u,className:q(D.root,l),focusable:"false",color:v,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:o},E,S,M&&n.props,{ownerState:P,children:[M?n.props.children:n,m?p.jsx("title",{children:m}):null]}))});it.muiName="SvgIcon";function Kt(e,t){function o(i,n){return p.jsx(it,y({"data-testid":`${t}Icon`,ref:n},i,{children:e}))}return o.muiName=it.muiName,b.memo(b.forwardRef(o))}function Nr(e){return ce("MuiPaper",e)}ae("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Or=["className","component","elevation","square","variant"],Lr=e=>{const{square:t,elevation:o,variant:i,classes:n}=e,l={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${o}`]};return de(l,Nr,n)},kr=Y("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],!o.square&&t.rounded,o.variant==="elevation"&&t[`elevation${o.elevation}`]]}})(({theme:e,ownerState:t})=>{var o;return y({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&y({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${ut("#fff",dt(t.elevation))}, ${ut("#fff",dt(t.elevation))})`},e.vars&&{backgroundImage:(o=e.vars.overlays)==null?void 0:o[t.elevation]}))}),Wr=b.forwardRef(function(t,o){const i=ue({props:t,name:"MuiPaper"}),{className:n,component:l="div",elevation:c=1,square:u=!1,variant:g="elevation"}=i,v=ee(i,Or),x=y({},i,{component:l,elevation:c,square:u,variant:g}),m=Lr(x);return p.jsx(kr,y({as:l,ownerState:x,className:q(m.root,n),ref:o},v))});function $r(e){return ce("MuiTypography",e)}ae("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const jr=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Dr=e=>{const{align:t,gutterBottom:o,noWrap:i,paragraph:n,variant:l,classes:c}=e,u={root:["root",l,e.align!=="inherit"&&`align${F(t)}`,o&&"gutterBottom",i&&"noWrap",n&&"paragraph"]};return de(u,$r,c)},Ar=Y("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.variant&&t[o.variant],o.align!=="inherit"&&t[`align${F(o.align)}`],o.noWrap&&t.noWrap,o.gutterBottom&&t.gutterBottom,o.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>y({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),pt={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},zr={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},qr=e=>zr[e]||e,Xr=b.forwardRef(function(t,o){const i=ue({props:t,name:"MuiTypography"}),n=qr(i.color),l=Wt(y({},i,{color:n})),{align:c="inherit",className:u,component:g,gutterBottom:v=!1,noWrap:x=!1,paragraph:m=!1,variant:h="body1",variantMapping:S=pt}=l,M=ee(l,jr),P=y({},l,{align:c,color:n,className:u,component:g,gutterBottom:v,noWrap:x,paragraph:m,variant:h,variantMapping:S}),E=g||(m?"p":S[h]||pt[h])||"span",D=Dr(P);return p.jsx(Ar,y({as:E,ref:o,ownerState:P,className:q(D.root,u)},M))});function Hr(e){return ce("MuiAppBar",e)}ae("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Fr=["className","color","enableColorOnDark","position"],Vr=e=>{const{color:t,position:o,classes:i}=e,n={root:["root",`color${F(t)}`,`position${F(o)}`]};return de(n,Hr,i)},Le=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Ur=Y(Wr,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`position${F(o.position)}`],t[`color${F(o.color)}`]]}})(({theme:e,ownerState:t})=>{const o=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return y({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&y({},t.color==="default"&&{backgroundColor:o,color:e.palette.getContrastText(o)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&y({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&y({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Le(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Le(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Le(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Le(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),Yr=b.forwardRef(function(t,o){const i=ue({props:t,name:"MuiAppBar"}),{className:n,color:l="primary",enableColorOnDark:c=!1,position:u="fixed"}=i,g=ee(i,Fr),v=y({},i,{color:l,position:u,enableColorOnDark:c}),x=Vr(v);return p.jsx(Ur,y({square:!0,component:"header",ownerState:v,elevation:4,className:q(x.root,n,u==="fixed"&&"mui-fixed"),ref:o},g))}),Kr=ae("MuiBox",["root"]),Gr=pr(),Gt=Ir({themeId:jt,defaultTheme:Gr,defaultClassName:Kr.root,generateClassName:fr.generate});function Jr(e){return ce("MuiTab",e)}const ie=ae("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Qr=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Zr=e=>{const{classes:t,textColor:o,fullWidth:i,wrapped:n,icon:l,label:c,selected:u,disabled:g}=e,v={root:["root",l&&c&&"labelIcon",`textColor${F(o)}`,i&&"fullWidth",n&&"wrapped",u&&"selected",g&&"disabled"],iconWrapper:["iconWrapper"]};return de(v,Jr,t)},eo=Y(Dt,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.label&&o.icon&&t.labelIcon,t[`textColor${F(o.textColor)}`],o.fullWidth&&t.fullWidth,o.wrapped&&t.wrapped,{[`& .${ie.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>y({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${ie.iconWrapper}`]:y({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${ie.selected}`]:{opacity:1},[`&.${ie.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ie.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${ie.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ie.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${ie.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Fe=b.forwardRef(function(t,o){const i=ue({props:t,name:"MuiTab"}),{className:n,disabled:l=!1,disableFocusRipple:c=!1,fullWidth:u,icon:g,iconPosition:v="top",indicator:x,label:m,onChange:h,onClick:S,onFocus:M,selected:P,selectionFollowsFocus:E,textColor:D="inherit",value:L,wrapped:pe=!1}=i,J=ee(i,Qr),K=y({},i,{disabled:l,disableFocusRipple:c,selected:P,icon:!!g,iconPosition:v,label:!!m,fullWidth:u,textColor:D,wrapped:pe}),te=Zr(K),d=g&&m&&b.isValidElement(g)?b.cloneElement(g,{className:q(te.iconWrapper,g.props.className)}):g,I=r=>{!P&&h&&h(r,L),S&&S(r)},w=r=>{E&&!P&&h&&h(r,L),M&&M(r)};return p.jsxs(eo,y({focusRipple:!c,className:q(te.root,n),ref:o,role:"tab","aria-selected":P,disabled:l,onClick:I,onFocus:w,ownerState:K,tabIndex:P?0:-1},J,{children:[v==="top"||v==="start"?p.jsxs(b.Fragment,{children:[d,m]}):p.jsxs(b.Fragment,{children:[m,d]}),x]}))}),to=Kt(p.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ro=Kt(p.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function oo(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function no(e,t,o,i={},n=()=>{}){const{ease:l=oo,duration:c=300}=i;let u=null;const g=t[e];let v=!1;const x=()=>{v=!0},m=h=>{if(v){n(new Error("Animation cancelled"));return}u===null&&(u=h);const S=Math.min(1,(h-u)/c);if(t[e]=l(S)*(o-g)+g,S>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(m)};return g===o?(n(new Error("Element already at target position")),x):(requestAnimationFrame(m),x)}const io=["onChange"],ao={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function lo(e){const{onChange:t}=e,o=ee(e,io),i=b.useRef(),n=b.useRef(null),l=()=>{i.current=n.current.offsetHeight-n.current.clientHeight};return hr(()=>{const c=Ft(()=>{const g=i.current;l(),g!==i.current&&t(i.current)}),u=Vt(n.current);return u.addEventListener("resize",c),()=>{c.clear(),u.removeEventListener("resize",c)}},[t]),b.useEffect(()=>{l(),t(i.current)},[t]),p.jsx("div",y({style:ao,ref:n},o))}function so(e){return ce("MuiTabScrollButton",e)}const co=ae("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),uo=["className","slots","slotProps","direction","orientation","disabled"],po=e=>{const{classes:t,orientation:o,disabled:i}=e;return de({root:["root",o,i&&"disabled"]},so,t)},fo=Y(Dt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.orientation&&t[o.orientation]]}})(({ownerState:e})=>y({width:40,flexShrink:0,opacity:.8,[`&.${co.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),ho=b.forwardRef(function(t,o){var i,n;const l=ue({props:t,name:"MuiTabScrollButton"}),{className:c,slots:u={},slotProps:g={},direction:v}=l,x=ee(l,uo),m=At(),h=y({isRtl:m},l),S=po(h),M=(i=u.StartScrollButtonIcon)!=null?i:to,P=(n=u.EndScrollButtonIcon)!=null?n:ro,E=Ae({elementType:M,externalSlotProps:g.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),D=Ae({elementType:P,externalSlotProps:g.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return p.jsx(fo,y({component:"div",className:q(S.root,c),ref:o,role:null,ownerState:h,tabIndex:null},x,{children:v==="left"?p.jsx(M,y({},E)):p.jsx(P,y({},D))}))});function vo(e){return ce("MuiTabs",e)}const Ve=ae("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),go=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],ft=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,ht=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,ke=(e,t,o)=>{let i=!1,n=o(e,t);for(;n;){if(n===e.firstChild){if(i)return;i=!0}const l=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||l)n=o(e,n);else{n.focus();return}}},bo=e=>{const{vertical:t,fixed:o,hideScrollbar:i,scrollableX:n,scrollableY:l,centered:c,scrollButtonsHideMobile:u,classes:g}=e;return de({root:["root",t&&"vertical"],scroller:["scroller",o&&"fixed",i&&"hideScrollbar",n&&"scrollableX",l&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",c&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",u&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[i&&"hideScrollbar"]},vo,g)},yo=Y("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${Ve.scrollButtons}`]:t.scrollButtons},{[`& .${Ve.scrollButtons}`]:o.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,o.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>y({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Ve.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),xo=Y("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.scroller,o.fixed&&t.fixed,o.hideScrollbar&&t.hideScrollbar,o.scrollableX&&t.scrollableX,o.scrollableY&&t.scrollableY]}})(({ownerState:e})=>y({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),mo=Y("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.flexContainer,o.vertical&&t.flexContainerVertical,o.centered&&t.centered]}})(({ownerState:e})=>y({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),So=Y("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>y({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),Co=Y(lo)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),vt={},wo=b.forwardRef(function(t,o){const i=ue({props:t,name:"MuiTabs"}),n=Yt(),l=At(),{"aria-label":c,"aria-labelledby":u,action:g,centered:v=!1,children:x,className:m,component:h="div",allowScrollButtonsMobile:S=!1,indicatorColor:M="primary",onChange:P,orientation:E="horizontal",ScrollButtonComponent:D=ho,scrollButtons:L="auto",selectionFollowsFocus:pe,slots:J={},slotProps:K={},TabIndicatorProps:te={},TabScrollButtonProps:d={},textColor:I="primary",value:w,variant:r="standard",visibleScrollbar:a=!1}=i,T=ee(i,go),_=r==="scrollable",C=E==="vertical",O=C?"scrollTop":"scrollLeft",j=C?"top":"left",A=C?"bottom":"right",k=C?"clientHeight":"clientWidth",V=C?"height":"width",z=y({},i,{component:h,allowScrollButtonsMobile:S,indicatorColor:M,orientation:E,vertical:C,scrollButtons:L,textColor:I,variant:r,visibleScrollbar:a,fixed:!_,hideScrollbar:_&&!a,scrollableX:_&&!C,scrollableY:_&&C,centered:v&&!_,scrollButtonsHideMobile:!S}),W=bo(z),fe=Ae({elementType:J.StartScrollButtonIcon,externalSlotProps:K.startScrollButtonIcon,ownerState:z}),he=Ae({elementType:J.EndScrollButtonIcon,externalSlotProps:K.endScrollButtonIcon,ownerState:z}),[U,ye]=b.useState(!1),[X,re]=b.useState(vt),[xe,Me]=b.useState(!1),[Ee,ze]=b.useState(!1),[me,ve]=b.useState(!1),[le,Pe]=b.useState({overflow:"hidden",scrollbarWidth:0}),se=new Map,H=b.useRef(null),Q=b.useRef(null),Se=()=>{const s=H.current;let f;if(s){const R=s.getBoundingClientRect();f={clientWidth:s.clientWidth,scrollLeft:s.scrollLeft,scrollTop:s.scrollTop,scrollLeftNormalized:Rr(s,l?"rtl":"ltr"),scrollWidth:s.scrollWidth,top:R.top,bottom:R.bottom,left:R.left,right:R.right}}let B;if(s&&w!==!1){const R=Q.current.children;if(R.length>0){const N=R[se.get(w)];B=N?N.getBoundingClientRect():null}}return{tabsMeta:f,tabMeta:B}},oe=He(()=>{const{tabsMeta:s,tabMeta:f}=Se();let B=0,R;if(C)R="top",f&&s&&(B=f.top-s.top+s.scrollTop);else if(R=l?"right":"left",f&&s){const $=l?s.scrollLeftNormalized+s.clientWidth-s.scrollWidth:s.scrollLeft;B=(l?-1:1)*(f[R]-s[R]+$)}const N={[R]:B,[V]:f?f[V]:0};if(isNaN(X[R])||isNaN(X[V]))re(N);else{const $=Math.abs(X[R]-N[R]),G=Math.abs(X[V]-N[V]);($>=1||G>=1)&&re(N)}}),ge=(s,{animation:f=!0}={})=>{f?no(O,H.current,s,{duration:n.transitions.duration.standard}):H.current[O]=s},at=s=>{let f=H.current[O];C?f+=s:(f+=s*(l?-1:1),f*=l&&Ut()==="reverse"?-1:1),ge(f)},lt=()=>{const s=H.current[k];let f=0;const B=Array.from(Q.current.children);for(let R=0;Rs){R===0&&(f=s);break}f+=N[k]}return f},tr=()=>{at(-1*lt())},rr=()=>{at(lt())},or=b.useCallback(s=>{Pe({overflow:null,scrollbarWidth:s})},[]),nr=()=>{const s={};s.scrollbarSizeListener=_?p.jsx(Co,{onChange:or,className:q(W.scrollableX,W.hideScrollbar)}):null;const B=_&&(L==="auto"&&(xe||Ee)||L===!0);return s.scrollButtonStart=B?p.jsx(D,y({slots:{StartScrollButtonIcon:J.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:fe},orientation:E,direction:l?"right":"left",onClick:tr,disabled:!xe},d,{className:q(W.scrollButtons,d.className)})):null,s.scrollButtonEnd=B?p.jsx(D,y({slots:{EndScrollButtonIcon:J.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:he},orientation:E,direction:l?"left":"right",onClick:rr,disabled:!Ee},d,{className:q(W.scrollButtons,d.className)})):null,s},st=He(s=>{const{tabsMeta:f,tabMeta:B}=Se();if(!(!B||!f)){if(B[j]f[A]){const R=f[O]+(B[A]-f[A]);ge(R,{animation:s})}}}),Ne=He(()=>{_&&L!==!1&&ve(!me)});b.useEffect(()=>{const s=Ft(()=>{H.current&&oe()});let f;const B=$=>{$.forEach(G=>{G.removedNodes.forEach(Ce=>{var ne;(ne=f)==null||ne.unobserve(Ce)}),G.addedNodes.forEach(Ce=>{var ne;(ne=f)==null||ne.observe(Ce)})}),s(),Ne()},R=Vt(H.current);R.addEventListener("resize",s);let N;return typeof ResizeObserver<"u"&&(f=new ResizeObserver(s),Array.from(Q.current.children).forEach($=>{f.observe($)})),typeof MutationObserver<"u"&&(N=new MutationObserver(B),N.observe(Q.current,{childList:!0})),()=>{var $,G;s.clear(),R.removeEventListener("resize",s),($=N)==null||$.disconnect(),(G=f)==null||G.disconnect()}},[oe,Ne]),b.useEffect(()=>{const s=Array.from(Q.current.children),f=s.length;if(typeof IntersectionObserver<"u"&&f>0&&_&&L!==!1){const B=s[0],R=s[f-1],N={root:H.current,threshold:.99},$=Xe=>{Me(!Xe[0].isIntersecting)},G=new IntersectionObserver($,N);G.observe(B);const Ce=Xe=>{ze(!Xe[0].isIntersecting)},ne=new IntersectionObserver(Ce,N);return ne.observe(R),()=>{G.disconnect(),ne.disconnect()}}},[_,L,me,x==null?void 0:x.length]),b.useEffect(()=>{ye(!0)},[]),b.useEffect(()=>{oe()}),b.useEffect(()=>{st(vt!==X)},[st,X]),b.useImperativeHandle(g,()=>({updateIndicator:oe,updateScrollButtons:Ne}),[oe,Ne]);const ct=p.jsx(So,y({},te,{className:q(W.indicator,te.className),ownerState:z,style:y({},X,te.style)}));let Oe=0;const ir=b.Children.map(x,s=>{if(!b.isValidElement(s))return null;const f=s.props.value===void 0?Oe:s.props.value;se.set(f,Oe);const B=f===w;return Oe+=1,b.cloneElement(s,y({fullWidth:r==="fullWidth",indicator:B&&!U&&ct,selected:B,selectionFollowsFocus:pe,onChange:P,textColor:I,value:f},Oe===1&&w===!1&&!s.props.tabIndex?{tabIndex:0}:{}))}),ar=s=>{const f=Q.current,B=$t(f).activeElement;if(B.getAttribute("role")!=="tab")return;let N=E==="horizontal"?"ArrowLeft":"ArrowUp",$=E==="horizontal"?"ArrowRight":"ArrowDown";switch(E==="horizontal"&&l&&(N="ArrowRight",$="ArrowLeft"),s.key){case N:s.preventDefault(),ke(f,B,ht);break;case $:s.preventDefault(),ke(f,B,ft);break;case"Home":s.preventDefault(),ke(f,null,ft);break;case"End":s.preventDefault(),ke(f,null,ht);break}},qe=nr();return p.jsxs(yo,y({className:q(W.root,m),ownerState:z,ref:o,as:h},T,{children:[qe.scrollButtonStart,qe.scrollbarSizeListener,p.jsxs(xo,{className:W.scroller,ownerState:z,style:{overflow:le.overflow,[C?`margin${l?"Left":"Right"}`:"marginBottom"]:a?void 0:-le.scrollbarWidth},ref:H,children:[p.jsx(mo,{"aria-label":c,"aria-labelledby":u,"aria-orientation":E==="vertical"?"vertical":null,className:W.flexContainer,ownerState:z,onKeyDown:ar,ref:Q,role:"tablist",children:ir}),U&&ct]}),qe.scrollButtonEnd]}))});var Jt={};function To(e){if(e&&e.__esModule)return e;var t={};if(e!=null){for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,o):{};i.get||i.set?Object.defineProperty(t,o,i):t[o]=e[o]}}return t.default=e,t}var Qt=To,Z={},Ue,gt;function Be(){if(gt)return Ue;gt=1;function e(t){return t&&t.__esModule?t:{default:t}}return Ue=e,Ue}var We,bt;function _o(){if(bt)return We;bt=1;function e(){return We=e=Object.assign||function(t){for(var o=1;o=0)&&(i[l]=t[l]);return i}return Ye=e,Ye}var Ke,xt;function Ro(){if(xt)return Ke;xt=1;var e=Io();function t(o,i){if(o==null)return{};var n=e(o,i),l,c;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(o);for(c=0;c=0)&&Object.prototype.propertyIsEnumerable.call(o,l)&&(n[l]=o[l])}return n}return Ke=t,Ke}var Ge,mt;function Bo(){if(mt)return Ge;mt=1;function e(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}return Ge=e,Ge}var Je,St;function Mo(){if(St)return Je;St=1;function e(o,i){for(var n=0;nm&&(h=m+1-Math.exp((m-h)*o.default.RESISTANCE_COEF)):h<0?(h=0,S=(h-c)*v+g):h>m&&(h=m,S=(h-c)*v+g),{index:h,startX:S}}return De}var Ie={},Nt;function jo(){if(Nt)return Ie;Nt=1;var e=Be();Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.default=void 0;var t=e(b),o=function(l,c){var u=!1,g=function(M){return M?M.key:"empty"};if(l.children.length&&c.children.length){var v=t.default.Children.map(l.children,g),x=v[l.index];if(x!=null){var m=t.default.Children.map(c.children,g),h=m[c.index];x===h&&(u=!0)}}return u},i=o;return Ie.default=i,Ie}var Re={},Ot;function Do(){if(Ot)return Re;Ot=1,Object.defineProperty(Re,"__esModule",{value:!0}),Re.default=void 0;function e(o,i){var n=o%i;return n<0?n+i:n}var t=e;return Re.default=t,Re}var Lt;function Ao(){return Lt||(Lt=1,function(e){var t=Be();Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"checkIndexBounds",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"computeIndex",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"constant",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"getDisplaySameSlide",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"mod",{enumerable:!0,get:function(){return c.default}});var o=t(Wo()),i=t($o()),n=t(er()),l=t(jo()),c=t(Do())}(rt)),rt}var kt;function zo(){if(kt)return Z;kt=1;var e=Qt,t=Be();Object.defineProperty(Z,"__esModule",{value:!0}),Z.getDomTreeShapes=D,Z.findNativeHandler=pe,Z.default=Z.SwipeableViewsContext=void 0;var o=t(_o()),i=t(Ro()),n=t(Bo()),l=t(Mo()),c=t(No()),u=t(Oo()),g=t(ko()),v=e(b);t(Sr),t(Zt());var x=Ao();function m(d,I,w,r){return d.addEventListener(I,w,r),{remove:function(){d.removeEventListener(I,w,r)}}}var h={container:{direction:"ltr",display:"flex",willChange:"transform"},slide:{width:"100%",WebkitFlexShrink:0,flexShrink:0,overflow:"auto"}},S={root:{x:{overflowX:"hidden"},"x-reverse":{overflowX:"hidden"},y:{overflowY:"hidden"},"y-reverse":{overflowY:"hidden"}},flexDirection:{x:"row","x-reverse":"row-reverse",y:"column","y-reverse":"column-reverse"},transform:{x:function(I){return"translate(".concat(-I,"%, 0)")},"x-reverse":function(I){return"translate(".concat(I,"%, 0)")},y:function(I){return"translate(0, ".concat(-I,"%)")},"y-reverse":function(I){return"translate(0, ".concat(I,"%)")}},length:{x:"width","x-reverse":"width",y:"height","y-reverse":"height"},rotationMatrix:{x:{x:[1,0],y:[0,1]},"x-reverse":{x:[-1,0],y:[0,1]},y:{x:[0,1],y:[1,0]},"y-reverse":{x:[0,-1],y:[1,0]}},scrollPosition:{x:"scrollLeft","x-reverse":"scrollLeft",y:"scrollTop","y-reverse":"scrollTop"},scrollLength:{x:"scrollWidth","x-reverse":"scrollWidth",y:"scrollHeight","y-reverse":"scrollHeight"},clientLength:{x:"clientWidth","x-reverse":"clientWidth",y:"clientHeight","y-reverse":"clientHeight"}};function M(d,I){var w=I.duration,r=I.easeFunction,a=I.delay;return"".concat(d," ").concat(w," ").concat(r," ").concat(a)}function P(d,I){var w=S.rotationMatrix[I];return{pageX:w.x[0]*d.pageX+w.x[1]*d.pageY,pageY:w.y[0]*d.pageX+w.y[1]*d.pageY}}function E(d){return d.touches=[{pageX:d.pageX,pageY:d.pageY}],d}function D(d,I){for(var w=[];d&&d!==I&&d!==document.body&&!d.hasAttribute("data-swipeable");){var r=window.getComputedStyle(d);r.getPropertyValue("position")==="absolute"||r.getPropertyValue("overflow-x")==="hidden"?w=[]:(d.clientWidth>0&&d.scrollWidth>d.clientWidth||d.clientHeight>0&&d.scrollHeight>d.clientHeight)&&w.push({element:d,scrollWidth:d.scrollWidth,scrollHeight:d.scrollHeight,clientWidth:d.clientWidth,clientHeight:d.clientHeight,scrollLeft:d.scrollLeft,scrollTop:d.scrollTop}),d=d.parentNode}return w}var L=null;function pe(d){var I=d.domTreeShapes,w=d.pageX,r=d.startX,a=d.axis;return I.some(function(T){var _=w>=r;(a==="x"||a==="y")&&(_=!_);var C=Math.round(T[S.scrollPosition[a]]),O=C>0,j=C+T[S.clientLength[a]]z&&V>x.constant.UNCERTAINTY_THRESHOLD;if(!A&&(_==="y"||_==="y-reverse")&&(r.indexCurrent===0&&r.startXk.pageX)){r.isSwiping=!1;return}if(V>z&&a.preventDefault(),W===!0||z>x.constant.UNCERTAINTY_THRESHOLD){r.isSwiping=W,r.startX=k.pageX;return}}if(r.isSwiping===!0){a.preventDefault(),r.vx=r.vx*.5+(k.pageX-r.lastX)*.5,r.lastX=k.pageX;var fe=(0,x.computeIndex)({children:C,resistance:A,pageX:k.pageX,startIndex:r.startIndex,startX:r.startX,viewLength:r.viewLength}),he=fe.index,U=fe.startX;if(L===null&&!O){var ye=D(a.target,r.rootNode),X=pe({domTreeShapes:ye,startX:r.startX,pageX:k.pageX,axis:_});if(X)return}U?r.startX=U:L===null&&(L=r.rootNode),r.setIndexCurrent(he);var re=function(){j&&j(he,"move")};(r.state.displaySameSlide||!r.state.isDragging)&&r.setState({displaySameSlide:!1,isDragging:!0},re),re()}}},r.handleSwipeEnd=function(){if(L=null,!!r.started&&(r.started=!1,r.isSwiping===!0)){var a=r.state.indexLatest,T=r.indexCurrent,_=a-T,C;Math.abs(r.vx)>r.props.threshold?r.vx>0?C=Math.floor(T):C=Math.ceil(T):Math.abs(_)>r.props.hysteresis?C=_>0?Math.floor(T):Math.ceil(T):C=a;var O=v.Children.count(r.props.children)-1;C<0?C=0:C>O&&(C=O),r.setIndexCurrent(C),r.setState({indexLatest:C,isDragging:!1},function(){r.props.onSwitching&&r.props.onSwitching(C,"end"),r.props.onChangeIndex&&C!==a&&r.props.onChangeIndex(C,a,{reason:"swipe"}),T===a&&r.handleTransitionEnd()})}},r.handleTouchStart=function(a){r.props.onTouchStart&&r.props.onTouchStart(a),r.handleSwipeStart(a)},r.handleTouchEnd=function(a){r.props.onTouchEnd&&r.props.onTouchEnd(a),r.handleSwipeEnd(a)},r.handleMouseDown=function(a){r.props.onMouseDown&&r.props.onMouseDown(a),a.persist(),r.handleSwipeStart(E(a))},r.handleMouseUp=function(a){r.props.onMouseUp&&r.props.onMouseUp(a),r.handleSwipeEnd(E(a))},r.handleMouseLeave=function(a){r.props.onMouseLeave&&r.props.onMouseLeave(a),r.started&&r.handleSwipeEnd(E(a))},r.handleMouseMove=function(a){r.props.onMouseMove&&r.props.onMouseMove(a),r.started&&r.handleSwipeMove(E(a))},r.handleScroll=function(a){if(r.props.onScroll&&r.props.onScroll(a),a.target===r.rootNode){if(r.ignoreNextScrollEvents){r.ignoreNextScrollEvents=!1;return}var T=r.state.indexLatest,_=Math.ceil(a.target.scrollLeft/a.target.clientWidth)+T;r.ignoreNextScrollEvents=!0,a.target.scrollLeft=0,r.props.onChangeIndex&&_!==T&&r.props.onChangeIndex(_,T,{reason:"focus"})}},r.updateHeight=function(){if(r.activeSlide!==null){var a=r.activeSlide.children[0];a!==void 0&&a.offsetHeight!==void 0&&r.state.heightLatest!==a.offsetHeight&&r.setState({heightLatest:a.offsetHeight})}},r.state={indexLatest:w.index,isDragging:!1,renderOnlyActive:!w.disableLazyLoading,heightLatest:0,displaySameSlide:!0},r.setIndexCurrent(w.index),r}return(0,l.default)(I,[{key:"componentDidMount",value:function(){var r=this;this.transitionListener=m(this.containerNode,"transitionend",function(a){a.target===r.containerNode&&r.handleTransitionEnd()}),this.touchMoveListener=m(this.rootNode,"touchmove",function(a){r.props.disabled||r.handleSwipeMove(a)},{passive:!1}),this.props.disableLazyLoading||(this.firstRenderTimeout=setTimeout(function(){r.setState({renderOnlyActive:!1})},0)),this.props.action&&this.props.action({updateHeight:this.updateHeight})}},{key:"UNSAFE_componentWillReceiveProps",value:function(r){var a=r.index;typeof a=="number"&&a!==this.props.index&&(this.setIndexCurrent(a),this.setState({displaySameSlide:(0,x.getDisplaySameSlide)(this.props,r),indexLatest:a}))}},{key:"componentWillUnmount",value:function(){this.transitionListener.remove(),this.touchMoveListener.remove(),clearTimeout(this.firstRenderTimeout)}},{key:"getSwipeableViewsContext",value:function(){var r=this;return{slideUpdateHeight:function(){r.updateHeight()}}}},{key:"setIndexCurrent",value:function(r){if(!this.props.animateTransitions&&this.indexCurrent!==r&&this.handleTransitionEnd(),this.indexCurrent=r,this.containerNode){var a=this.props.axis,T=S.transform[a](r*100);this.containerNode.style.WebkitTransform=T,this.containerNode.style.transform=T}}},{key:"handleTransitionEnd",value:function(){this.props.onTransitionEnd&&(this.state.displaySameSlide||this.state.isDragging||this.props.onTransitionEnd())}},{key:"render",value:function(){var r=this,a=this.props;a.action;var T=a.animateHeight,_=a.animateTransitions,C=a.axis,O=a.children,j=a.containerStyle,A=a.disabled;a.disableLazyLoading;var k=a.enableMouseEvents;a.hysteresis,a.ignoreNativeScroll,a.index,a.onChangeIndex,a.onSwitching,a.onTransitionEnd,a.resistance;var V=a.slideStyle,z=a.slideClassName,W=a.springConfig,fe=a.style;a.threshold;var he=(0,i.default)(a,["action","animateHeight","animateTransitions","axis","children","containerStyle","disabled","disableLazyLoading","enableMouseEvents","hysteresis","ignoreNativeScroll","index","onChangeIndex","onSwitching","onTransitionEnd","resistance","slideStyle","slideClassName","springConfig","style","threshold"]),U=this.state,ye=U.displaySameSlide,X=U.heightLatest,re=U.indexLatest,xe=U.isDragging,Me=U.renderOnlyActive,Ee=A?{}:{onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd},ze=!A&&k?{onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave,onMouseMove:this.handleMouseMove}:{},me=(0,o.default)({},h.slide,V),ve,le;if(xe||!_||ye)ve="all 0s ease 0s",le="all 0s ease 0s";else if(ve=M("transform",W),le=M("-webkit-transform",W),X!==0){var Pe=", ".concat(M("height",W));ve+=Pe,le+=Pe}var se={height:null,WebkitFlexDirection:S.flexDirection[C],flexDirection:S.flexDirection[C],WebkitTransition:le,transition:ve};if(!Me){var H=S.transform[C](this.indexCurrent*100);se.WebkitTransform=H,se.transform=H}return T&&(se.height=X),v.createElement(J.Provider,{value:this.getSwipeableViewsContext()},v.createElement("div",(0,o.default)({ref:this.setRootNode,style:(0,o.default)({},S.root[C],fe)},he,Ee,ze,{onScroll:this.handleScroll}),v.createElement("div",{ref:this.setContainerNode,style:(0,o.default)({},se,h.container,j),className:"react-swipeable-view-container"},v.Children.map(O,function(Q,Se){if(Me&&Se!==re)return null;var oe,ge=!0;return Se===re&&(ge=!1,T&&(oe=r.setActiveSlide,me.overflowY="hidden")),v.createElement("div",{ref:oe,style:me,className:z,"aria-hidden":ge,"data-swipeable":"true"},Q)}))))}}]),I}(v.Component);K.displayName="ReactSwipableView",K.propTypes={},K.defaultProps={animateHeight:!1,animateTransitions:!0,axis:"x",disabled:!1,disableLazyLoading:!1,enableMouseEvents:!1,hysteresis:.6,ignoreNativeScroll:!1,index:0,threshold:5,springConfig:{duration:"0.35s",easeFunction:"cubic-bezier(0.15, 0.3, 0.25, 1)",delay:"0s"},resistance:!1};var te=K;return Z.default=te,Z}(function(e){var t=Qt;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"SwipeableViewsContext",{enumerable:!0,get:function(){return o.SwipeableViewsContext}});var o=t(zo())})(Jt);const qo=vr(Jt),Xo=()=>{const[e,t]=b.useState();b.useEffect(()=>{window.addEventListener("message",n=>{t(n.data)},!1)});let i=(e?Object.keys(e):[]).map((n,l)=>l==0?p.jsxs("p",{style:{fontFamily:"cursive",marginBottom:"10px"},children:[p.jsxs("strong",{style:{color:"#616161"},children:[n,":"]}),e[n]]},l):p.jsxs("p",{style:{fontFamily:"cursive",backgroundColor:" #ececec",padding:"10px",margin:"5px 0",borderRadius:"5px"},children:[p.jsxs("strong",{style:{color:"#616161"},children:[n,":"]}),e[n]]},l));return p.jsx(p.Fragment,{children:p.jsxs("div",{style:{marginTop:"48px"},children:[i,i?p.jsx("h1",{style:{color:"#616161",marginTop:"20px",textAlign:"center"},children:"按住Q键可选中元素,再次按下取消"}):p.jsx(p.Fragment,{})]})})};function ot(e){const{children:t,value:o,index:i,...n}=e;return p.jsx(Xr,{component:"div",role:"tabpanel",hidden:o!==i,id:`action-tabpanel-${i}`,"aria-labelledby":`action-tab-${i}`,...n,children:o===i&&p.jsx(Gt,{sx:{p:3},style:{padding:10,overflow:"hidden",backgroundColor:"#fff",minHeight:100},children:t})})}function nt(e){return{id:`action-tab-${e}`,"aria-controls":`action-tabpanel-${e}`}}function Ho(){const e=Yt(),[t,o]=b.useState(0),i=(l,c)=>{console.log(l),o(c)},n=l=>{o(l)};return p.jsxs(Gt,{sx:{bgcolor:"background.paper",width:270,position:"relative",maxHeight:200},children:[p.jsx(Yr,{position:"static",color:"default",style:{position:"fixed",top:0,zIndex:9999},children:p.jsxs(wo,{value:t,onChange:i,indicatorColor:"primary",textColor:"primary",variant:"fullWidth","aria-label":"action tabs example",children:[p.jsx(Fe,{label:"元素信息",...nt(0)}),p.jsx(Fe,{label:"元素修改",...nt(1)}),p.jsx(Fe,{label:"页面分析",...nt(2)})]})}),p.jsxs(qo,{axis:e.direction==="rtl"?"x-reverse":"x",index:t,onChangeIndex:n,children:[p.jsx(ot,{value:t,index:0,dir:e.direction,children:p.jsx(Xo,{})}),p.jsx(ot,{value:t,index:1,dir:e.direction,children:"Item Two"}),p.jsx(ot,{value:t,index:2,dir:e.direction,children:"Item Three"})]})]})}function Fo(){return p.jsx(p.Fragment,{children:p.jsx("div",{children:p.jsx("div",{id:"app",children:p.jsx(Ho,{})})})})}gr.createRoot(document.getElementById("root")).render(p.jsx(Fo,{})); diff --git a/src/contentPage/components/ElemenetMessage.tsx b/src/contentPage/components/ElemenetMessage.tsx index 9e335ea..db11456 100644 --- a/src/contentPage/components/ElemenetMessage.tsx +++ b/src/contentPage/components/ElemenetMessage.tsx @@ -20,7 +20,7 @@ export const ElementMessage = () => { return <>
{i} - + {!!i?

按住Q键可选中元素,再次按下取消

:<>}
;