react-msaview 5.0.5 → 5.0.6

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/bundle/index.js CHANGED
@@ -225,7 +225,7 @@
225
225
  animation: ${A} 1.4s linear infinite;
226
226
  `:null,y="string"!=typeof b?a.AH`
227
227
  animation: ${b} 1.4s ease-in-out infinite;
228
- `:null,w=(0,l.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${(0,u.A)(n.color)}`]]}})((0,s.A)(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:v||{animation:`${A} 1.4s linear infinite`}},...Object.entries(e.palette).filter((0,d.A)()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),C=(0,l.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),S=(0,l.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${(0,u.A)(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((0,s.A)(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:y||{animation:`${b} 1.4s ease-in-out infinite`}}]}))),x=(0,l.Ay)("circle",{name:"MuiCircularProgress",slot:"Track"})((0,s.A)(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),I=r.forwardRef(function(e,t){const n=(0,c.b)({props:e,name:"MuiCircularProgress"}),{className:r,color:a="primary",disableShrink:l=!1,enableTrackSlot:s=!1,size:d=40,style:f,thickness:p=3.6,value:A=0,variant:b="indeterminate",...v}=n,y={...n,color:a,disableShrink:l,size:d,thickness:p,value:A,variant:b,enableTrackSlot:s},I=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,a={root:["root",n,`color${(0,u.A)(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${(0,u.A)(n)}`,o&&"circleDisableShrink"]};return(0,i.A)(a,h,t)})(y),E={},k={},B={};if("determinate"===b){const e=2*Math.PI*((m-p)/2);E.strokeDasharray=e.toFixed(3),B["aria-valuenow"]=Math.round(A),E.strokeDashoffset=`${((100-A)/100*e).toFixed(3)}px`,k.transform="rotate(-90deg)"}return(0,g.jsx)(w,{className:(0,o.A)(I.root,r),style:{width:d,height:d,...k,...f},ownerState:y,ref:t,role:"progressbar",...B,...v,children:(0,g.jsxs)(C,{className:I.svg,ownerState:y,viewBox:"22 22 44 44",children:[s?(0,g.jsx)(x,{className:I.track,ownerState:y,cx:m,cy:m,r:(m-p)/2,fill:"none",strokeWidth:p,"aria-hidden":"true"}):null,(0,g.jsx)(S,{className:I.circle,style:E,ownerState:y,cx:m,cy:m,r:(m-p)/2,fill:"none",strokeWidth:p})]})})})},6858(e,t,n){"use strict";e.exports=n(5682)},6956(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(9081),o=n(3688),i=n(1080),a=n(294),l=n(3838);function s(e){var t=e.onClose;return r.createElement(o.A,{open:!0,title:"About",onClose:function(){t()}},r.createElement(i.A,null,r.createElement(a.A,null,"MSAView ","5.0.5"," (",r.createElement(l.A,{href:"https://github.com/gmod/react-msaview"},"Github"),")"),r.createElement("ul",null,r.createElement("li",null,r.createElement(a.A,null,"We use some color schemes from the"," ",r.createElement(l.A,{href:"https://github.com/biotite-dev/biotite"},"biotite")," ","project, and their license is reproduced"," ",r.createElement(l.A,{href:"https://github.com/biotite-dev/biotite/blob/master/LICENSE.rst"},"here"))),r.createElement("li",null,r.createElement(a.A,null,"See this page for some information on jalview colorings"," ",r.createElement(l.A,{href:"https://www.jalview.org/help/html/colourSchemes/"},"here"))),r.createElement("li",null,r.createElement(a.A,null,"See this page for some info on the clustal, cinema, maeditor, and lesk color schemes"," ",r.createElement(l.A,{href:"http://www.bioinformatics.nl/~berndb/aacolour.html"},"here"))),r.createElement("li",null,r.createElement(a.A,null,"See this paper about the flower color scheme"," ",r.createElement(l.A,{href:"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7245768/"},"here"))))))}},6972(e,t,n){"use strict";n.d(t,{A:()=>F});var r=n(9081),o=n(851),i=n(2189),a=n(2891),l=n(1075),s=n(3804),c=n(7063),u=n(361),d=n(8212),f=n(8756),p=n(8561),h=n(5488),g=n(5726),m=n(5994),A=n(8111),b=n(8175),v=n(4819);function y(e){return(0,v.Ay)("MuiPopover",e)}(0,b.A)("MuiPopover",["root","paper"]);var w=n(616),C=n(3738),S=n(8525);function x(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function I(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function E(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function k(e){return"function"==typeof e?e():e}const B=(0,u.Ay)(m.A,{name:"MuiPopover",slot:"Root"})({}),M=(0,u.Ay)(A.A,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),R=r.forwardRef(function(e,t){const n=(0,d.b)({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:m="anchorEl",children:A,className:b,container:v,elevation:R=8,marginThreshold:P=16,open:_,PaperProps:T={},slots:O={},slotProps:D={},transformOrigin:Q={vertical:"top",horizontal:"left"},TransitionComponent:N,transitionDuration:F="auto",TransitionProps:L={},disableScrollLock:j=!1,...z}=n,$=r.useRef(),H={...n,anchorOrigin:s,anchorReference:m,elevation:R,marginThreshold:P,transformOrigin:Q,TransitionComponent:N,transitionDuration:F,TransitionProps:L},G=(e=>{const{classes:t}=e;return(0,i.A)({root:["root"],paper:["paper"]},y,t)})(H),V=r.useCallback(()=>{if("anchorPosition"===m)return u;const e=k(l),t=(e&&1===e.nodeType?e:(0,p.A)($.current).body).getBoundingClientRect();return{top:t.top+x(t,s.vertical),left:t.left+I(t,s.horizontal)}},[l,s.horizontal,s.vertical,u,m]),W=r.useCallback(e=>({vertical:x(e,Q.vertical),horizontal:I(e,Q.horizontal)}),[Q.horizontal,Q.vertical]),U=r.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=W(t);if("none"===m)return{top:null,left:null,transformOrigin:E(n)};const r=V();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,c=(0,h.A)(k(l)),u=c.innerHeight-P,d=c.innerWidth-P;if(null!==P&&o<P){const e=o-P;o-=e,n.vertical+=e}else if(null!==P&&a>u){const e=a-u;o-=e,n.vertical+=e}if(null!==P&&i<P){const e=i-P;i-=e,n.horizontal+=e}else if(s>d){const e=s-d;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:E(n)}},[l,m,V,W,P]),[Y,K]=r.useState(_),q=r.useCallback(()=>{const e=$.current;if(!e)return;const t=U(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,K(!0)},[U]);r.useEffect(()=>(j&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q)),[l,j,q]),r.useEffect(()=>{_&&q()}),r.useImperativeHandle(a,()=>_?{updatePosition:()=>{q()}}:null,[_,q]),r.useEffect(()=>{if(!_)return;const e=(0,f.A)(()=>{q()}),t=(0,h.A)(k(l));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[l,_,q]);let J=F;const X={slots:{transition:N,...O},slotProps:{transition:L,paper:T,...D}},[Z,ee]=(0,w.A)("transition",{elementType:g.A,externalForwardedProps:X,ownerState:H,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),q()},onExited:t=>{e.onExited?.(t),K(!1)}}),additionalProps:{appear:!0,in:_}});"auto"!==F||Z.muiSupportAuto||(J=void 0);const te=v||(l?(0,p.A)(k(l)).body:void 0),[ne,{slots:re,slotProps:oe,...ie}]=(0,w.A)("root",{ref:t,elementType:B,externalForwardedProps:{...X,...z},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:O.backdrop},slotProps:{backdrop:(0,C.A)("function"==typeof D.backdrop?D.backdrop(H):D.backdrop,{invisible:!0})},container:te,open:_},ownerState:H,className:(0,o.A)(G.root,b)}),[ae,le]=(0,w.A)("paper",{ref:$,className:G.paper,elementType:M,externalForwardedProps:X,shouldForwardComponentProp:!0,additionalProps:{elevation:R,style:Y?void 0:{opacity:0}},ownerState:H});return(0,S.jsx)(ne,{...ie,...!(0,c.A)(ne)&&{slots:re,slotProps:oe,disableScrollLock:j},children:(0,S.jsx)(Z,{...ee,timeout:J,children:(0,S.jsx)(ae,{...le,children:A})})})});var P=n(4941);function _(e){return(0,v.Ay)("MuiMenu",e)}(0,b.A)("MuiMenu",["root","paper","list"]);const T={vertical:"top",horizontal:"right"},O={vertical:"top",horizontal:"left"},D=(0,u.Ay)(R,{shouldForwardProp:e=>(0,P.A)(e)||"classes"===e,name:"MuiMenu",slot:"Root"})({}),Q=(0,u.Ay)(M,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),N=(0,u.Ay)(s.A,{name:"MuiMenu",slot:"List"})({outline:0}),F=r.forwardRef(function(e,t){const n=(0,d.b)({props:e,name:"MuiMenu"}),{autoFocus:s=!0,children:c,className:u,disableAutoFocusItem:f=!1,MenuListProps:p={},onClose:h,open:g,PaperProps:m={},PopoverClasses:A,transitionDuration:b="auto",TransitionProps:{onEntering:v,...y}={},variant:C="selectedMenu",slots:x={},slotProps:I={},...E}=n,k=(0,a.I)(),B={...n,autoFocus:s,disableAutoFocusItem:f,MenuListProps:p,onEntering:v,PaperProps:m,transitionDuration:b,TransitionProps:y,variant:C},M=(e=>{const{classes:t}=e;return(0,i.A)({root:["root"],paper:["paper"],list:["list"]},_,t)})(B),R=s&&!f&&g,P=r.useRef(null);let F=-1;r.Children.map(c,(e,t)=>{r.isValidElement(e)&&(e.props.disabled||("selectedMenu"===C&&e.props.selected||-1===F)&&(F=t))});const L={slots:x,slotProps:{list:p,transition:y,paper:m,...I}},j=(0,l.A)({elementType:x.root,externalSlotProps:I.root,ownerState:B,className:[M.root,u]}),[z,$]=(0,w.A)("paper",{className:M.paper,elementType:Q,externalForwardedProps:L,shouldForwardComponentProp:!0,ownerState:B}),[H,G]=(0,w.A)("list",{className:(0,o.A)(M.list,p.className),elementType:N,shouldForwardComponentProp:!0,externalForwardedProps:L,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{"Tab"===e.key&&(e.preventDefault(),h&&h(e,"tabKeyDown"))})(t),e.onKeyDown?.(t)}}),ownerState:B}),V="function"==typeof L.slotProps.transition?L.slotProps.transition(B):L.slotProps.transition;return(0,S.jsx)(D,{onClose:h,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?T:O,slots:{root:x.root,paper:z,backdrop:x.backdrop,...x.transition&&{transition:x.transition}},slotProps:{root:j,paper:$,backdrop:"function"==typeof I.backdrop?I.backdrop(B):I.backdrop,transition:{...V,onEntering:(...e)=>{((e,t)=>{P.current&&P.current.adjustStyleForScrollbar(e,{direction:k?"rtl":"ltr"}),v&&v(e,t)})(...e),V?.onEntering?.(...e)}}},open:g,ref:t,transitionDuration:b,ownerState:B,...E,classes:A,children:(0,S.jsx)(H,{actions:P,autoFocus:s&&(-1===F||f),autoFocusItem:R,variant:C,...G,children:c})})})},7020(e,t,n){"use strict";e.exports=n(5360)},7063(e,t,n){"use strict";n.d(t,{A:()=>r});const r=function(e){return"string"==typeof e}},7085(e,t,n){"use strict";n.d(t,{A:()=>S});var r,o=n(9081),i=n(2189),a=n(4941),l=n(361),s=n(7934),c=n(8525);const u=(0,l.Ay)("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:a.A})({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%"}),d=(0,l.Ay)("legend",{name:"MuiNotchedOutlined",shouldForwardProp:a.A})((0,s.A)(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));var f=n(8659),p=n(9641),h=n(3955),g=n(8212),m=n(3744),A=n(4590),b=n(616);const v=(0,l.Ay)(A.Sh,{shouldForwardProp:e=>(0,a.A)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:A.WC})((0,s.A)(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${m.A.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${m.A.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${m.A.focused} .${m.A.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter((0,h.A)()).map(([t])=>({props:{color:t},style:{[`&.${m.A.focused} .${m.A.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${m.A.error} .${m.A.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${m.A.disabled} .${m.A.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:14}},{props:({ownerState:e})=>e.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{padding:"8.5px 14px"}}]}})),y=(0,l.Ay)(function(e){const{children:t,classes:n,className:o,label:i,notched:a,...l}=e,s=null!=i&&""!==i,f={...e,notched:a,withLabel:s};return(0,c.jsx)(u,{"aria-hidden":!0,className:o,ownerState:f,...l,children:(0,c.jsx)(d,{ownerState:f,children:s?(0,c.jsx)("span",{children:i}):r||(r=(0,c.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})},{name:"MuiOutlinedInput",slot:"NotchedOutline"})((0,s.A)(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),w=(0,l.Ay)(A.ck,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:A.Oj})((0,s.A)(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),C=o.forwardRef(function(e,t){const n=(0,g.b)({props:e,name:"MuiOutlinedInput"}),{components:r={},fullWidth:a=!1,inputComponent:l="input",label:s,multiline:u=!1,notched:d,slots:h={},slotProps:C={},type:S="text",...x}=n,I=(e=>{const{classes:t}=e,n=(0,i.A)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},m.v,t);return{...t,...n}})(n),E=(0,f.A)(),k=(0,p.A)({props:n,muiFormControl:E,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),B={...n,color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:E,fullWidth:a,hiddenLabel:k.hiddenLabel,multiline:u,size:k.size,type:S},M=h.root??r.Root??v,R=h.input??r.Input??w,[P,_]=(0,b.A)("notchedOutline",{elementType:y,className:I.notchedOutline,shouldForwardComponentProp:!0,ownerState:B,externalForwardedProps:{slots:h,slotProps:C},additionalProps:{label:null!=s&&""!==s&&k.required?(0,c.jsxs)(o.Fragment,{children:[s," ","*"]}):s}});return(0,c.jsx)(A.Ay,{slots:{root:M,input:R},slotProps:C,renderSuffix:e=>(0,c.jsx)(P,{..._,notched:void 0!==d?d:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:a,inputComponent:l,multiline:u,ref:t,type:S,...x,classes:{...I,notchedOutline:null}})});C.muiName="Input";const S=C},7112(e,t,n){"use strict";n.d(t,{A:()=>r});const r=(0,n(3536).Ay)()},7146(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>i(s,n))c<o&&0>i(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}var c=[],u=[],d=1,f=null,p=3,h=!1,g=!1,m=!1,A=!1,b="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function C(e){if(m=!1,w(e),!g)if(null!==r(c))g=!0,x||(x=!0,S());else{var t=r(u);null!==t&&_(C,t.startTime-e)}}var S,x=!1,I=-1,E=5,k=-1;function B(){return!(!A&&t.unstable_now()-k<E)}function M(){if(A=!1,x){var e=t.unstable_now();k=e;var n=!0;try{e:{g=!1,m&&(m=!1,v(I),I=-1),h=!0;var i=p;try{t:{for(w(e),f=r(c);null!==f&&!(f.expirationTime>e&&B());){var a=f.callback;if("function"==typeof a){f.callback=null,p=f.priorityLevel;var l=a(f.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof l){f.callback=l,w(e),n=!0;break t}f===r(c)&&o(c),w(e)}else o(c);f=r(c)}if(null!==f)n=!0;else{var s=r(u);null!==s&&_(C,s.startTime-e),n=!1}}break e}finally{f=null,p=i,h=!1}n=void 0}}finally{n?S():x=!1}}}if("function"==typeof y)S=function(){y(M)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,P=R.port2;R.port1.onmessage=M,S=function(){P.postMessage(null)}}else S=function(){b(M,0)};function _(e,n){I=b(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_requestPaint=function(){A=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(m?(v(I),I=-1):m=!0,_(C,i-a))):(e.sortIndex=l,n(c,e),g||h||(g=!0,x||(x=!0,S()))),e},t.unstable_shouldYield=B,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},7196(e,t,n){"use strict";n.d(t,{EU:()=>s,NI:()=>l,vf:()=>c,zu:()=>o});var r=n(3580);const o={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${o[e]}px)`},a={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:o[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function l(e,t,n){const l=e.theme||{};if(Array.isArray(t)){const e=l.breakpoints||i;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=l.breakpoints||i;return Object.keys(t).reduce((i,s)=>{if((0,r.ob)(e.keys,s)){const e=(0,r.CT)(l.containerQueries?l:a,s);e&&(i[e]=n(t[s],s))}else if(Object.keys(e.values||o).includes(s))i[e.up(s)]=n(t[s],s);else{const e=s;i[e]=t[e]}return i},{})}return n(t)}function s(e={}){const t=e.keys?.reduce((t,n)=>(t[e.up(n)]={},t),{});return t||{}}function c(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}},7265(e,t,n){"use strict";var r=n(3034);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={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:i,resetWarningCache:o};return n.PropTypes=n,n}},7307(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(9081),o=n(3688),i=n(4137),a=n(1080),l=n(6451),s=n(1091);function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function u(e,t){if(e){if("string"==typeof e)return d(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var f=(0,l.PA)(function(e){var t=e.model,n=t.featureFilters;return r.createElement("div",null,r.createElement(i.A,{onClick:function(){var e,r=c(n.keys());try{for(r.s();!(e=r.n()).done;){var o=e.value;t.setFilter(o,!0)}}catch(e){r.e(e)}finally{r.f()}}},"Toggle all on"),r.createElement(i.A,{onClick:function(){var e,r=c(n.keys());try{for(r.s();!(e=r.n()).done;){var o=e.value;t.setFilter(o,!1)}}catch(e){r.e(e)}finally{r.f()}}},"Toggle all off"))}),p=(0,l.PA)(function(e){var t,n=e.model,o=n.tidyInterProAnnotationTypes,i=n.featureFilters,a=function(e){if(Array.isArray(e))return d(e)}(t=o.values())||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||u(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),l=(0,s.S)(a.length-1);return r.createElement(r.Fragment,null,r.createElement(f,{model:n}),r.createElement("table",null,r.createElement("thead",null,r.createElement("tr",null,r.createElement("td",null),r.createElement("td",null,"accession"),r.createElement("td",null,"name"),r.createElement("td",null,"description"))),r.createElement("tbody",null,a.map(function(e,t){var o,a=e.accession,s=e.name,c=e.description;return r.createElement("tr",{key:a},r.createElement("td",null,r.createElement("input",{type:"checkbox",checked:null!==(o=i.get(a))&&void 0!==o&&o,onChange:function(){n.setFilter(a,!n.featureFilters.get(a))}})),r.createElement("td",null,a),r.createElement("td",null,s),r.createElement("td",null,c),r.createElement("td",null,r.createElement("div",{style:{width:20,height:20,background:l[t]||"black"}})))}))))});const h=(0,l.PA)(function(e){var t=e.onClose,n=e.model;return r.createElement(o.A,{onClose:function(){t()},open:!0,title:"Feature filters",maxWidth:"xl"},r.createElement(a.A,null,r.createElement(p,{model:n})))})},7311(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},7339(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(9081).createContext(void 0)},7382(e,t,n){"use strict";n.d(t,{A:()=>g});var r=n(9081),o=n(851),i=n(2189),a=n(361),l=n(8212),s=n(616),c=n(7536),u=n(8175),d=n(4819);function f(e){return(0,d.Ay)("MuiBackdrop",e)}(0,u.A)("MuiBackdrop",["root","invisible"]);var p=n(8525);const h=(0,a.Ay)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),g=r.forwardRef(function(e,t){const n=(0,l.b)({props:e,name:"MuiBackdrop"}),{children:r,className:a,component:u="div",invisible:d=!1,open:g,components:m={},componentsProps:A={},slotProps:b={},slots:v={},TransitionComponent:y,transitionDuration:w,...C}=n,S={...n,component:u,invisible:d},x=(e=>{const{classes:t,invisible:n}=e,r={root:["root",n&&"invisible"]};return(0,i.A)(r,f,t)})(S),I={component:u,slots:{transition:y,root:m.Root,...v},slotProps:{...A,...b}},[E,k]=(0,s.A)("root",{elementType:h,externalForwardedProps:I,className:(0,o.A)(x.root,a),ownerState:S}),[B,M]=(0,s.A)("transition",{elementType:c.A,externalForwardedProps:I,ownerState:S});return(0,p.jsx)(B,{in:g,timeout:w,...C,...M,children:(0,p.jsx)(E,{"aria-hidden":!0,...k,ref:t,children:r})})})},7394(e,t,n){"use strict";n.d(t,{A:()=>y});var r=n(9081),o=n(2189),i=n(851),a=n(9641),l=n(8659),s=n(2882),c=n(8560),u=n(9025),d=n(4941),f=n(361),p=n(7934),h=n(8212),g=n(8175),m=n(4819);function A(e){return(0,m.Ay)("MuiInputLabel",e)}(0,g.A)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var b=n(8525);const v=(0,f.Ay)(s.A,{shouldForwardProp:e=>(0,d.A)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${c.A.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})((0,p.A)(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.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:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:t})=>"filled"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:t,size:n})=>"filled"===e&&t.shrink&&"small"===n,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:e,ownerState:t})=>"outlined"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),y=r.forwardRef(function(e,t){const n=(0,h.b)({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,margin:s,shrink:c,variant:d,className:f,...p}=n,g=(0,l.A)();let m=c;void 0===m&&g&&(m=g.filled||g.focused||g.adornedStart);const y=(0,a.A)({props:n,muiFormControl:g,states:["size","variant","required","focused"]}),w={...n,disableAnimation:r,formControl:g,shrink:m,size:y.size,variant:y.variant,required:y.required,focused:y.focused},C=(e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:l,required:s}=e,c={root:["root",n&&"formControl",!a&&"animated",i&&"shrink",r&&"medium"!==r&&`size${(0,u.A)(r)}`,l],asterisk:[s&&"asterisk"]},d=(0,o.A)(c,A,t);return{...t,...d}})(w);return(0,b.jsx)(v,{"data-shrink":m,ref:t,className:(0,i.A)(C.root,f),...p,ownerState:w,classes:C})})},7425(e,t,n){"use strict";function r(e,t){var n,r,o,i=(null==t?void 0:t.debug)||!1,a=!1,l=null;try{var s;if(n=function(){var e=document.getSelection();if(null==e||!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));var o=null==t?void 0:t.tagName.toUpperCase();return"INPUT"!==o&&"TEXTAREA"!==o||null==t||t.blur(),e.removeAllRanges(),function(){if("Caret"===e.type&&e.removeAllRanges(),!e.rangeCount)for(var r=0,o=n;r<o.length;r++){var i=o[r];e.addRange(i)}null==t||t.focus()}}(),r=document.createRange(),l=document.getSelection(),(o=document.createElement("span")).textContent=e,o.ariaHidden="true",o.style.all="unset",o.style.position="fixed",o.style.top="0",o.style.clip="rect(0, 0, 0, 0)",o.style.whiteSpace="pre",o.style.webkitUserSelect="text",o.style.MozUserSelect="text",o.style.msUserSelect="text",o.style.userSelect="text",o.addEventListener("copy",function(n){n.stopPropagation(),null!=t&&t.format&&(n.preventDefault(),n.clipboardData&&(n.clipboardData.clearData(),n.clipboardData.setData(t.format,e))),null!=t&&t.onCopy&&n.clipboardData&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.append(o),r.selectNodeContents(o),null===(s=l)||void 0===s||s.addRange(r),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");a=!0}catch(n){i&&console.error("unable to copy using execCommand:",n);try{var c,u=window.clipboardData;u&&(u.setData((null==t?void 0:t.format)||"text",e),null==t||null===(c=t.onCopy)||void 0===c||c.call(t,u),a=!0)}catch(e){i&&console.error("unable to copy using clipboardData:",e)}}finally{var d;l&&("function"==typeof l.removeRange&&r?l.removeRange(r):l.removeAllRanges()),o&&o.remove(),null===(d=n)||void 0===d||d()}return a}n.d(t,{A:()=>r})},7449(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(399);function o(e){if("string"!=typeof e)throw new Error((0,r.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},7487(e,t,n){"use strict";n.d(t,{qE8:()=>_e,JCG:()=>We,HtM:()=>Pe,UYe:()=>Fe,$zQ:()=>He,b8R:()=>Te,Gvm:()=>Ue,Bul:()=>Le,zll:()=>Ye,lYs:()=>Ke,T9B:()=>ze,pWq:()=>je,kD_:()=>De,z2o:()=>Ge,qVg:()=>Ve,czq:()=>$e,Mjh:()=>Ne});var r=n(9081);function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function i(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)}var a={arraySet:function(e,t,n,r,o){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),o);else for(var i=0;i<r;i++)e[o+i]=t[n+i]},flattenChunks:function(e){var t,n,r,o,i,a;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),o=0,t=0,n=e.length;t<n;t++)i=e[t],a.set(i,o),o+=i.length;return a},Buf8:function(e){return new Uint8Array(e)},Buf16:function(e){return new Uint16Array(e)},Buf32:function(e){return new Int32Array(e)}},l={arraySet:function(e,t,n,r,o){for(var i=0;i<r;i++)e[o+i]=t[n+i]},flattenChunks:function(e){return[].concat.apply([],e)},Buf8:function(e){return new Array(e)},Buf16:function(e){return new Array(e)},Buf32:function(e){return new Array(e)}};let s=()=>{const e="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;return s=()=>e,e},c=(e,t,n,r,o)=>(c=s()?a.arraySet:l.arraySet,c(e,t,n,r,o)),u=e=>(u=s()?a.flattenChunks:l.flattenChunks,u(e)),d=e=>(d=s()?a.Buf8:l.Buf8,d(e)),f=e=>(f=s()?a.Buf16:l.Buf16,f(e)),p=e=>(p=s()?a.Buf32:l.Buf32,p(e)),h=function(){let e=!0;try{String.fromCharCode.apply(null,[0])}catch(t){e=!1}return h=()=>e,e},g=function(){let e=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){e=!1}return g=()=>e,e},m=function(e){for(var t=d(256),n=0;n<256;n++)t[n]=n>=252?6:n>=248?5:n>=240?4:n>=224?3:n>=192?2:1;return t[254]=t[254]=1,m=e=>t[e],t[e]};function A(e){var t,n,r,o,i,a=e.length,l=0;for(o=0;o<a;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(l),i=0,o=0;i<l;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?t[i++]=n:n<2048?(t[i++]=192|n>>>6,t[i++]=128|63&n):n<65536?(t[i++]=224|n>>>12,t[i++]=128|n>>>6&63,t[i++]=128|63&n):(t[i++]=240|n>>>18,t[i++]=128|n>>>12&63,t[i++]=128|n>>>6&63,t[i++]=128|63&n);return t}function b(e,t){var n,r,o,a,l=t||e.length,s=new Array(2*l);for(r=0,n=0;n<l;)if((o=e[n++])<128)s[r++]=o;else if((a=m(o))>4)s[r++]=65533,n+=a-1;else{for(o&=2===a?31:3===a?15:7;a>1&&n<l;)o=o<<6|63&e[n++],a--;a>1?s[r++]=65533:o<65536?s[r++]=o:(o-=65536,s[r++]=55296|o>>10&1023,s[r++]=56320|1023&o)}return function(e,t){if(t<65534&&(e.subarray&&g()||!e.subarray&&h()))return String.fromCharCode.apply(null,i(e,t));for(var n="",r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n}(s,r)}function v(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+m(e[n])>t?n:t}function y(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}function w(e,t,n,r){for(var o=65535&e,i=e>>>16&65535,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{i=i+(o=o+t[r++]|0)|0}while(--a);o%=65521,i%=65521}return o|i<<16}let C=function(){const e=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();return C=()=>e,e};function S(e,t,n,r){var o=C(),i=r+n;e^=-1;for(var a=r;a<i;a++)e=e>>>8^o[255&(e^t[a])];return-1^e}function x(e,t){var n,r,o,i,a,l,s,c,u,d,f,p,h,g,m,A,b,v,y,w,C,S,x,I,E;n=e.state,r=e.next_in,I=e.input,o=r+(e.avail_in-5),i=e.next_out,E=e.output,a=i-(t-e.avail_out),l=i+(e.avail_out-257),s=n.dmax,c=n.wsize,u=n.whave,d=n.wnext,f=n.window,p=n.hold,h=n.bits,g=n.lencode,m=n.distcode,A=(1<<n.lenbits)-1,b=(1<<n.distbits)-1;e:do{h<15&&(p+=I[r++]<<h,h+=8,p+=I[r++]<<h,h+=8),v=g[p&A];t:for(;;){if(p>>>=y=v>>>24,h-=y,0==(y=v>>>16&255))E[i++]=65535&v;else{if(!(16&y)){if(64&y){if(32&y){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}v=g[(65535&v)+(p&(1<<y)-1)];continue t}for(w=65535&v,(y&=15)&&(h<y&&(p+=I[r++]<<h,h+=8),w+=p&(1<<y)-1,p>>>=y,h-=y),h<15&&(p+=I[r++]<<h,h+=8,p+=I[r++]<<h,h+=8),v=m[p&b];;){if(p>>>=y=v>>>24,h-=y,16&(y=v>>>16&255)){if(C=65535&v,h<(y&=15)&&(p+=I[r++]<<h,(h+=8)<y&&(p+=I[r++]<<h,h+=8)),(C+=p&(1<<y)-1)>s){e.msg="invalid distance too far back",n.mode=30;break e}if(p>>>=y,h-=y,C>(y=i-a)){if((y=C-y)>u&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(S=0,x=f,0===d){if(S+=c-y,y<w){w-=y;do{E[i++]=f[S++]}while(--y);S=i-C,x=E}}else if(d<y){if(S+=c+d-y,(y-=d)<w){w-=y;do{E[i++]=f[S++]}while(--y);if(S=0,d<w){w-=y=d;do{E[i++]=f[S++]}while(--y);S=i-C,x=E}}}else if(S+=d-y,y<w){w-=y;do{E[i++]=f[S++]}while(--y);S=i-C,x=E}for(;w>2;)E[i++]=x[S++],E[i++]=x[S++],E[i++]=x[S++],w-=3;w&&(E[i++]=x[S++],w>1&&(E[i++]=x[S++]))}else{S=i-C;do{E[i++]=E[S++],E[i++]=E[S++],E[i++]=E[S++],w-=3}while(w>2);w&&(E[i++]=E[S++],w>1&&(E[i++]=E[S++]))}break}if(64&y){e.msg="invalid distance code",n.mode=30;break e}v=m[(65535&v)+(p&(1<<y)-1)]}}break}}while(r<o&&i<l);r-=w=h>>3,p&=(1<<(h-=w<<3))-1,e.next_in=r,e.next_out=i,e.avail_in=r<o?o-r+5:5-(r-o),e.avail_out=i<l?l-i+257:257-(i-l),n.hold=p,n.bits=h}var I=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],E=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],k=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],B=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function M(e,t,n,r,o,i,a,l){var s,c,u,d,p,h,g,m,A,b=l.bits,v=0,y=0,w=0,C=0,S=0,x=0,M=0,R=0,P=0,_=0,T=null,O=0,D=f(16),Q=f(16),N=null,F=0;for(v=0;v<=15;v++)D[v]=0;for(y=0;y<r;y++)D[t[n+y]]++;for(S=b,C=15;C>=1&&0===D[C];C--);if(S>C&&(S=C),0===C)return o[i++]=20971520,o[i++]=20971520,l.bits=1,0;for(w=1;w<C&&0===D[w];w++);for(S<w&&(S=w),R=1,v=1;v<=15;v++)if(R<<=1,(R-=D[v])<0)return-1;if(R>0&&(0===e||1!==C))return-1;for(Q[1]=0,v=1;v<15;v++)Q[v+1]=Q[v]+D[v];for(y=0;y<r;y++)0!==t[n+y]&&(a[Q[t[n+y]]++]=y);if(0===e?(T=N=a,h=19):1===e?(T=I,O-=257,N=E,F-=257,h=256):(T=k,N=B,h=-1),_=0,y=0,v=w,p=i,x=S,M=0,u=-1,d=(P=1<<S)-1,1===e&&P>852||2===e&&P>592)return 1;for(;;){g=v-M,a[y]<h?(m=0,A=a[y]):a[y]>h?(m=N[F+a[y]],A=T[O+a[y]]):(m=96,A=0),s=1<<v-M,w=c=1<<x;do{o[p+(_>>M)+(c-=s)]=g<<24|m<<16|A}while(0!==c);for(s=1<<v-1;_&s;)s>>=1;if(0!==s?(_&=s-1,_+=s):_=0,y++,0===--D[v]){if(v===C)break;v=t[n+a[y]]}if(v>S&&(_&d)!==u){for(0===M&&(M=S),p+=w,R=1<<(x=v-M);x+M<C&&!((R-=D[x+M])<=0);)x++,R<<=1;if(P+=1<<x,1===e&&P>852||2===e&&P>592)return 1;o[u=_&d]=S<<24|x<<16|p-i}}return 0!==_&&(o[p+_]=v-M<<24|64<<16),l.bits=S,0}var R=-2,P=12,_=30;function T(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function O(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=f(320),this.work=f(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function D(e,t){var n,r;return e?(r=new O,e.state=r,r.window=null,n=function(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?R:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,function(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,function(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=p(852),t.distcode=t.distdyn=p(592),t.sane=1,t.back=-1,0):R}(e)):R}(e))):R}(e,t),0!==n&&(e.state=null),n):R}var Q,N,F=!0;function L(e){if(F){var t;for(Q=p(512),N=p(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(M(1,e.lens,0,288,Q,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;M(2,e.lens,0,32,N,0,e.work,{bits:5}),F=!1}e.lencode=Q,e.lenbits=9,e.distcode=N,e.distbits=5}function j(e,t,n,r){var o,i=e.state;return null===i.window&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=d(i.wsize)),r>=i.wsize?(c(i.window,t,n-i.wsize,i.wsize,0),i.wnext=0,i.whave=i.wsize):((o=i.wsize-i.wnext)>r&&(o=r),c(i.window,t,n-r,o,i.wnext),(r-=o)?(c(i.window,t,n-r,r,0),i.wnext=r,i.whave=i.wsize):(i.wnext+=o,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=o))),0}function z(e,t){var n,r,o,i,a,l,s,u,f,p,h,g,m,A,b,v,y,C,I,E,k,B,O,D,Q=0,N=d(4),F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return R;(n=e.state).mode===P&&(n.mode=13),a=e.next_out,o=e.output,s=e.avail_out,i=e.next_in,r=e.input,l=e.avail_in,u=n.hold,f=n.bits,p=l,h=s,B=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;f<16;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}if(2&n.wrap&&35615===u){n.check=0,N[0]=255&u,N[1]=u>>>8&255,n.check=S(n.check,N,2,0),u=0,f=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=_;break}if(8!=(15&u)){e.msg="unknown compression method",n.mode=_;break}if(f-=4,k=8+(15&(u>>>=4)),0===n.wbits)n.wbits=k;else if(k>n.wbits){e.msg="invalid window size",n.mode=_;break}n.dmax=1<<k,e.adler=n.check=1,n.mode=512&u?10:P,u=0,f=0;break;case 2:for(;f<16;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}if(n.flags=u,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=_;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=_;break}n.head&&(n.head.text=u>>8&1),512&n.flags&&(N[0]=255&u,N[1]=u>>>8&255,n.check=S(n.check,N,2,0)),u=0,f=0,n.mode=3;case 3:for(;f<32;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}n.head&&(n.head.time=u),512&n.flags&&(N[0]=255&u,N[1]=u>>>8&255,N[2]=u>>>16&255,N[3]=u>>>24&255,n.check=S(n.check,N,4,0)),u=0,f=0,n.mode=4;case 4:for(;f<16;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}n.head&&(n.head.xflags=255&u,n.head.os=u>>8),512&n.flags&&(N[0]=255&u,N[1]=u>>>8&255,n.check=S(n.check,N,2,0)),u=0,f=0,n.mode=5;case 5:if(1024&n.flags){for(;f<16;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}n.length=u,n.head&&(n.head.extra_len=u),512&n.flags&&(N[0]=255&u,N[1]=u>>>8&255,n.check=S(n.check,N,2,0)),u=0,f=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((g=n.length)>l&&(g=l),g&&(n.head&&(k=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),c(n.head.extra,r,i,g,k)),512&n.flags&&(n.check=S(n.check,r,g,i)),l-=g,i+=g,n.length-=g),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===l)break e;g=0;do{k=r[i+g++],n.head&&k&&n.length<65536&&(n.head.name+=String.fromCharCode(k))}while(k&&g<l);if(512&n.flags&&(n.check=S(n.check,r,g,i)),l-=g,i+=g,k)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===l)break e;g=0;do{k=r[i+g++],n.head&&k&&n.length<65536&&(n.head.comment+=String.fromCharCode(k))}while(k&&g<l);if(512&n.flags&&(n.check=S(n.check,r,g,i)),l-=g,i+=g,k)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;f<16;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}if(u!==(65535&n.check)){e.msg="header crc mismatch",n.mode=_;break}u=0,f=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=P;break;case 10:for(;f<32;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}e.adler=n.check=T(u),u=0,f=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=a,e.avail_out=s,e.next_in=i,e.avail_in=l,n.hold=u,n.bits=f,2;e.adler=n.check=1,n.mode=P;case P:if(5===t||6===t)break e;case 13:if(n.last){u>>>=7&f,f-=7&f,n.mode=27;break}for(;f<3;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}switch(n.last=1&u,f-=1,3&(u>>>=1)){case 0:n.mode=14;break;case 1:if(L(n),n.mode=20,6===t){u>>>=2,f-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=_}u>>>=2,f-=2;break;case 14:for(u>>>=7&f,f-=7&f;f<32;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}if((65535&u)!=(u>>>16^65535)){e.msg="invalid stored block lengths",n.mode=_;break}if(n.length=65535&u,u=0,f=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(g=n.length){if(g>l&&(g=l),g>s&&(g=s),0===g)break e;c(o,r,i,g,a),l-=g,i+=g,s-=g,a+=g,n.length-=g;break}n.mode=P;break;case 17:for(;f<14;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}if(n.nlen=257+(31&u),u>>>=5,f-=5,n.ndist=1+(31&u),u>>>=5,f-=5,n.ncode=4+(15&u),u>>>=4,f-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=_;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;f<3;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}n.lens[F[n.have++]]=7&u,u>>>=3,f-=3}for(;n.have<19;)n.lens[F[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,O={bits:n.lenbits},B=M(0,n.lens,0,19,n.lencode,0,n.work,O),n.lenbits=O.bits,B){e.msg="invalid code lengths set",n.mode=_;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;v=(Q=n.lencode[u&(1<<n.lenbits)-1])>>>16&255,y=65535&Q,!((b=Q>>>24)<=f);){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}if(y<16)u>>>=b,f-=b,n.lens[n.have++]=y;else{if(16===y){for(D=b+2;f<D;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}if(u>>>=b,f-=b,0===n.have){e.msg="invalid bit length repeat",n.mode=_;break}k=n.lens[n.have-1],g=3+(3&u),u>>>=2,f-=2}else if(17===y){for(D=b+3;f<D;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}f-=b,k=0,g=3+(7&(u>>>=b)),u>>>=3,f-=3}else{for(D=b+7;f<D;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}f-=b,k=0,g=11+(127&(u>>>=b)),u>>>=7,f-=7}if(n.have+g>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=_;break}for(;g--;)n.lens[n.have++]=k}}if(n.mode===_)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=_;break}if(n.lenbits=9,O={bits:n.lenbits},B=M(1,n.lens,0,n.nlen,n.lencode,0,n.work,O),n.lenbits=O.bits,B){e.msg="invalid literal/lengths set",n.mode=_;break}if(n.distbits=6,n.distcode=n.distdyn,O={bits:n.distbits},B=M(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,O),n.distbits=O.bits,B){e.msg="invalid distances set",n.mode=_;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(l>=6&&s>=258){e.next_out=a,e.avail_out=s,e.next_in=i,e.avail_in=l,n.hold=u,n.bits=f,x(e,h),a=e.next_out,o=e.output,s=e.avail_out,i=e.next_in,r=e.input,l=e.avail_in,u=n.hold,f=n.bits,n.mode===P&&(n.back=-1);break}for(n.back=0;v=(Q=n.lencode[u&(1<<n.lenbits)-1])>>>16&255,y=65535&Q,!((b=Q>>>24)<=f);){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}if(v&&!(240&v)){for(C=b,I=v,E=y;v=(Q=n.lencode[E+((u&(1<<C+I)-1)>>C)])>>>16&255,y=65535&Q,!(C+(b=Q>>>24)<=f);){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}u>>>=C,f-=C,n.back+=C}if(u>>>=b,f-=b,n.back+=b,n.length=y,0===v){n.mode=26;break}if(32&v){n.back=-1,n.mode=P;break}if(64&v){e.msg="invalid literal/length code",n.mode=_;break}n.extra=15&v,n.mode=22;case 22:if(n.extra){for(D=n.extra;f<D;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}n.length+=u&(1<<n.extra)-1,u>>>=n.extra,f-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;v=(Q=n.distcode[u&(1<<n.distbits)-1])>>>16&255,y=65535&Q,!((b=Q>>>24)<=f);){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}if(!(240&v)){for(C=b,I=v,E=y;v=(Q=n.distcode[E+((u&(1<<C+I)-1)>>C)])>>>16&255,y=65535&Q,!(C+(b=Q>>>24)<=f);){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}u>>>=C,f-=C,n.back+=C}if(u>>>=b,f-=b,n.back+=b,64&v){e.msg="invalid distance code",n.mode=_;break}n.offset=y,n.extra=15&v,n.mode=24;case 24:if(n.extra){for(D=n.extra;f<D;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}n.offset+=u&(1<<n.extra)-1,u>>>=n.extra,f-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=_;break}n.mode=25;case 25:if(0===s)break e;if(g=h-s,n.offset>g){if((g=n.offset-g)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=_;break}g>n.wnext?(g-=n.wnext,m=n.wsize-g):m=n.wnext-g,g>n.length&&(g=n.length),A=n.window}else A=o,m=a-n.offset,g=n.length;g>s&&(g=s),s-=g,n.length-=g;do{o[a++]=A[m++]}while(--g);0===n.length&&(n.mode=21);break;case 26:if(0===s)break e;o[a++]=n.length,s--,n.mode=21;break;case 27:if(n.wrap){for(;f<32;){if(0===l)break e;l--,u|=r[i++]<<f,f+=8}if(h-=s,e.total_out+=h,n.total+=h,h&&(e.adler=n.check=n.flags?S(n.check,o,h,a-h):w(n.check,o,h,a-h)),h=s,(n.flags?u:T(u))!==n.check){e.msg="incorrect data check",n.mode=_;break}u=0,f=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;f<32;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}if(u!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=_;break}u=0,f=0}n.mode=29;case 29:B=1;break e;case _:B=-3;break e;case 31:return-4;default:return R}return e.next_out=a,e.avail_out=s,e.next_in=i,e.avail_in=l,n.hold=u,n.bits=f,(n.wsize||h!==e.avail_out&&n.mode<_&&(n.mode<27||4!==t))&&j(e,e.output,e.next_out,h-e.avail_out)?(n.mode=31,-4):(p-=e.avail_in,h-=e.avail_out,e.total_in+=p,e.total_out+=h,n.total+=h,n.wrap&&h&&(e.adler=n.check=n.flags?S(n.check,o,h,e.next_out-h):w(n.check,o,h,e.next_out-h)),e.data_type=n.bits+(n.last?64:0)+(n.mode===P?128:0)+(20===n.mode||15===n.mode?256:0),(0===p&&0===h||4===t)&&0===B&&(B=-5),B)}function $(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?R:11===n.mode&&w(1,t,r,0)!==n.check?-3:j(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,0):R}const H={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function G(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var V=Object.prototype.toString;class W{constructor(e){if(!(this instanceof W))return new W(e);this.options=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)o(n,r)&&(e[r]=n[r])}}return e}({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(15&t.windowBits||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new G,this.strm.avail_out=0;var n,r,i,a=D(this.strm,t.windowBits);if(0!==a)throw new Error(H[a]);if(this.header=new y,n=this.strm,r=this.header,n&&n.state&&2&(i=n.state).wrap&&(i.head=r,r.done=!1),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=A(t.dictionary):"[object ArrayBuffer]"===V.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&0!==(a=$(this.strm,t.dictionary))))throw new Error(H[a])}push(e,t){var n,r,o,a,l,s,u=this.strm,f=this.options.chunkSize,p=this.options.dictionary,h=!1;if(this.ended)return!1;r=t===~~t?t:!0===t?4:0,"string"==typeof e?u.input=function(e){for(var t=new Uint8Array(e.length),n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t}(e):"[object ArrayBuffer]"===V.call(e)?u.input=new Uint8Array(e):u.input=e,u.next_in=0,u.avail_in=u.input.length;do{if(0===u.avail_out&&(u.output=d(f),u.next_out=0,u.avail_out=f),2===(n=z(u,0))&&p&&(s="string"==typeof p?A(p):"[object ArrayBuffer]"===V.call(p)?new Uint8Array(p):p,n=$(this.strm,s)),-5===n&&!0===h&&(n=0,h=!1),1!==n&&0!==n)return this.onEnd(n),this.ended=!0,!1;u.next_out&&(0!==u.avail_out&&1!==n&&(0!==u.avail_in||4!==r&&2!==r)||("string"===this.options.to?(o=v(u.output,u.next_out),a=u.next_out-o,l=b(u.output,o),u.next_out=a,u.avail_out=f-a,a&&c(u.output,u.output,o,a,0),this.onData(l)):this.onData(i(u.output,u.next_out)))),0===u.avail_in&&0===u.avail_out&&(h=!0)}while((u.avail_in>0||0===u.avail_out)&&1!==n);return 1===n&&(r=4),4===r?(n=function(e){if(!e||!e.state)return R;var t=e.state;return t.window&&(t.window=null),e.state=null,0}(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==r||(this.onEnd(0),u.avail_out=0,!0)}onData(e){this.chunks.push(e)}onEnd(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=u(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg}}var U=function(e,t){var n=new W(t);if(n.push(e,!0),n.err)throw n.msg||H[n.err];return n.result},Y={d:(e,t)=>{for(var n in t)Y.o(t,n)&&!Y.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},K={};Y.r(K),Y.d(K,{ChunkSliceResult:()=>q,DecompressResult:()=>J,__wbg_Error_8c4e43fe74559d73:()=>te,__wbg___wbindgen_throw_be289d5034ed271b:()=>ne,__wbg_set_wasm:()=>Ce,decompress_all:()=>X,decompress_block:()=>Z,decompress_chunk_slice:()=>ee});class q{static __wrap(e){e>>>=0;const t=Object.create(q.prototype);return t.__wbg_ptr=e,re.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,re.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_chunksliceresult_free(e,0)}get buffer(){try{const r=ve.__wbindgen_add_to_stack_pointer(-16);ve.chunksliceresult_buffer(r,this.__wbg_ptr);var e=se().getInt32(r+0,!0),t=se().getInt32(r+4,!0),n=ae(e,t).slice();return ve.__wbindgen_export(e,1*t,1),n}finally{ve.__wbindgen_add_to_stack_pointer(16)}}get cpositions(){try{const r=ve.__wbindgen_add_to_stack_pointer(-16);ve.chunksliceresult_cpositions(r,this.__wbg_ptr);var e=se().getInt32(r+0,!0),t=se().getInt32(r+4,!0),n=ie(e,t).slice();return ve.__wbindgen_export(e,8*t,8),n}finally{ve.__wbindgen_add_to_stack_pointer(16)}}get dpositions(){try{const r=ve.__wbindgen_add_to_stack_pointer(-16);ve.chunksliceresult_dpositions(r,this.__wbg_ptr);var e=se().getInt32(r+0,!0),t=se().getInt32(r+4,!0),n=ie(e,t).slice();return ve.__wbindgen_export(e,8*t,8),n}finally{ve.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(q.prototype[Symbol.dispose]=q.prototype.free);class J{static __wrap(e){e>>>=0;const t=Object.create(J.prototype);return t.__wbg_ptr=e,oe.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,oe.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_decompressresult_free(e,0)}get bytes_read(){return ve.decompressresult_bytes_read(this.__wbg_ptr)>>>0}get data(){try{const r=ve.__wbindgen_add_to_stack_pointer(-16);ve.decompressresult_data(r,this.__wbg_ptr);var e=se().getInt32(r+0,!0),t=se().getInt32(r+4,!0),n=ae(e,t).slice();return ve.__wbindgen_export(e,1*t,1),n}finally{ve.__wbindgen_add_to_stack_pointer(16)}}}function X(e){try{const i=ve.__wbindgen_add_to_stack_pointer(-16),a=ge(e,ve.__wbindgen_export2),l=we;ve.decompress_all(i,a,l);var t=se().getInt32(i+0,!0),n=se().getInt32(i+4,!0),r=se().getInt32(i+8,!0);if(se().getInt32(i+12,!0))throw me(r);var o=ae(t,n).slice();return ve.__wbindgen_export(t,1*n,1),o}finally{ve.__wbindgen_add_to_stack_pointer(16)}}function Z(e){try{const r=ve.__wbindgen_add_to_stack_pointer(-16),o=ge(e,ve.__wbindgen_export2),i=we;ve.decompress_block(r,o,i);var t=se().getInt32(r+0,!0),n=se().getInt32(r+4,!0);if(se().getInt32(r+8,!0))throw me(n);return J.__wrap(t)}finally{ve.__wbindgen_add_to_stack_pointer(16)}}function ee(e,t,n,r,o){try{const l=ve.__wbindgen_add_to_stack_pointer(-16),s=ge(e,ve.__wbindgen_export2),c=we;ve.decompress_chunk_slice(l,s,c,t,n,r,o);var i=se().getInt32(l+0,!0),a=se().getInt32(l+4,!0);if(se().getInt32(l+8,!0))throw me(a);return q.__wrap(i)}finally{ve.__wbindgen_add_to_stack_pointer(16)}}function te(e,t){return function(e){he===pe.length&&pe.push(pe.length+1);const t=he;return he=pe[t],pe[t]=e,t}(Error(ue(e,t)))}function ne(e,t){throw new Error(ue(e,t))}Symbol.dispose&&(J.prototype[Symbol.dispose]=J.prototype.free);const re="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_chunksliceresult_free(e>>>0,1)),oe="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_decompressresult_free(e>>>0,1));function ie(e,t){return e>>>=0,(null!==ce&&0!==ce.byteLength||(ce=new Float64Array(ve.memory.buffer)),ce).subarray(e/8,e/8+t)}function ae(e,t){return e>>>=0,fe().subarray(e/1,e/1+t)}let le=null;function se(){return(null===le||!0===le.buffer.detached||void 0===le.buffer.detached&&le.buffer!==ve.memory.buffer)&&(le=new DataView(ve.memory.buffer)),le}let ce=null;function ue(e,t){return function(e,t){return ye+=t,ye>=be&&(Ae=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),Ae.decode(),ye=t),Ae.decode(fe().subarray(e,e+t))}(e>>>=0,t)}let de=null;function fe(){return null!==de&&0!==de.byteLength||(de=new Uint8Array(ve.memory.buffer)),de}let pe=new Array(128).fill(void 0);pe.push(void 0,null,!0,!1);let he=pe.length;function ge(e,t){const n=t(1*e.length,1)>>>0;return fe().set(e,n/1),we=e.length,n}function me(e){const t=function(e){return pe[e]}(e);return function(e){e<132||(pe[e]=he,he=e)}(e),t}let Ae=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Ae.decode();const be=2146435072;let ve,ye=0,we=0;function Ce(e){ve=e}let Se=null,xe=null;async function Ie(e){try{return await async function(e){return await async function(){return Se||(xe||(xe=(async()=>{const e=await fetch("data:application/wasm;base64,AGFzbQEAAAABfRFgAABgAAF/YAF/AGABfwF/YAJ/fwBgAn9/AX9gA39/fwBgA39/fwF/YAR/f39/AGAEf39/fwF/YAV/f39/fwBgBX9/f39/AX9gBn9/f39/fwBgBn9/f39/fwF/YAd/f39/f39/AX9gCH9/f39/f39/AX9gB39/f3x8fHwAAm4CES4vYmd6Zl93YXNtX2JnLmpzJ19fd2JnX19fd2JpbmRnZW5fdGhyb3dfYmUyODlkNTAzNGVkMjcxYgAEES4vYmd6Zl93YXNtX2JnLmpzHF9fd2JnX0Vycm9yXzhjNGU0M2ZlNzQ1NTlkNzMABQNragMODxAFCQ0CBwcGCAQFBAQFBQQGBAQEBAQQBgQKBAwMCgIGBQIMAgQGBgYGBgYDBAMHAgUDBAgGCwAFAgIGBAIFBAMBBQQCAgQEBAQFBg0CBwkFBAYEAwUFAAQABQQEBQQFAgICBAEFAAAEBQFwARgYBQMBABEGCQF/AUGAgMAACwfaAg4GbWVtb3J5Ag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jYCACABQfiSwAAgACgCBCAAKAIIIgAtAAggAC0ACRAeAAuLAQEBfyMAQRBrIgMkAAJAIAIgAWoiASACTw0AQQBBABBNAAsgA0EEaiAAKAIAIgIgACgCBCABIAJBAXQiAiABIAJLGyICQQggAkEISxsiAkEBQQEQIAJAIAMoAgRBAUcNACADKAIIIAMoAgwQTQALIAMoAgghASAAIAI2AgAgACABNgIEIANBEGokAAuHAQEBfyMAQSBrIgIkAAJAAkAgACgCAEGAgICAeEYNACABIAAoAgQgACgCCBBSIQAMAQsgAkEIakEIaiAAKAIMKAIAIgBBCGopAgA3AwAgAkEIakEQaiAAQRBqKQIANwMAIAIgACkCADcDCCABKAIAIAEoAgQgAkEIahALIQALIAJBIGokACAAC3wBAX8CQCAAKAIAIgAoAgwiAUUNACAAKAIQIAFBARBWCwJAIAAoAhgiAUUNACAAKAIcIAFBA3RBCBBWCwJAIAAoAiQiAUUNACAAKAIoIAFBA3RBCBBWCwJAIABBf0YNACAAIAAoAgRBf2oiATYCBCABDQAgAEEwQQQQVgsLhAEBAn8jAEEQayIGJABBACEHIAZBADYCDAJAAkACQAJAAkAgASgCACACIAMgBCAFIAZBDGoQUA4EAQIAAwALQZCFwABB7ABB/IXAABA/AAsgACAGKAIMNgIEDAILIABBADoAAUEBIQcMAQtBASEHIABBAToAAQsgACAHOgAAIAZBEGokAAtrAQN/IwBBEGsiASQAIAFBBGogACgCACICIAAoAgQgAkEBdCICQQQgAkEESxsiAkEIQQgQIAJAIAEoAgRBAUcNACABKAIIIAEoAgwQTQALIAEoAgghAyAAIAI2AgAgACADNgIEIAFBEGokAAtoAQF/IwBBMGsiAiQAAkAQaEH/AXENACACQTBqJAAPCyACIAE2AiQgAkECNgIQIAJBpJLAADYCDCACQgE3AhggAkEErUIghiACQSRqrYQ3AyggAiACQShqNgIUIAJBDGpBtJLAABBAAAtoAgF/AX4jAEEwayIDJAAgAyABNgIEIAMgADYCACADQQI2AgwgA0GcmMAANgIIIANCAjcCFCADQQStQiCGI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if(/invalid bgzf header/.exec(`${n}`)){if((t=e).length>=2&&31===t[0]&&139===t[1])return async function(e){if("undefined"!=typeof DecompressionStream){const t=new DecompressionStream("gzip"),n=t.writable.getWriter(),r=n.write(e).then(()=>n.close()),o=[],i=t.readable.getReader();for(;;){const{done:e,value:t}=await i.read();if(e)break;o.push(t)}await r;const a=o.reduce((e,t)=>e+t.length,0),l=new Uint8Array(a);let s=0;for(const e of o)l.set(e,s),s+=e.length;return l}return U(e,void 0)}(e);throw new Error("problem decompressing block: not a valid bgzf or gzip block")}if(/invalid gzip header/.exec(`${n}`))throw new Error("problem decompressing block: incorrect gzip header check");throw n}var t}var Ee=n(2163),ke=n(8092),Be=n(8181),Me=n(5205);new WeakMap,new WeakMap,new WeakMap;const Re=new WeakMap;function Pe(e){const t=Re.get(e);if(t&&(0,Ee._n)(t))return t;try{const t=function(e,t){return function(e,t){if(!(0,Ee.p7)(e))throw new Error("node does not have parent");let n=(0,Ee.PA)(e);for(;n&&(0,Ee._n)(n);){if(t(n))return n;if(!(0,Ee.p7)(n))break;n=(0,Ee.PA)(n)}throw new Error("no matching node found")}(e,t)}(e,Me.Y$);return Re.set(e,t),t}catch(e){throw new Error("no session model found!")}}function _e(e,t,n){return e<t?t:e>n?n:e}Math.PI,Math.PI;const Te=/electron/i.test("undefined"!=typeof navigator?navigator.userAgent:"");"undefined"==typeof jest&&"undefined"!=typeof window&&window.requestIdleCallback&&window.requestIdleCallback;const Oe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2765625,.3546875,.5546875,.5546875,.8890625,.665625,.190625,.3328125,.3328125,.3890625,.5828125,.2765625,.3328125,.2765625,.3015625,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.2765625,.2765625,.584375,.5828125,.584375,.5546875,1.0140625,.665625,.665625,.721875,.721875,.665625,.609375,.7765625,.721875,.2765625,.5,.665625,.5546875,.8328125,.721875,.7765625,.665625,.7765625,.721875,.665625,.609375,.721875,.665625,.94375,.665625,.665625,.609375,.2765625,.3546875,.2765625,.4765625,.5546875,.3328125,.5546875,.5546875,.5,.5546875,.5546875,.2765625,.5546875,.5546875,.221875,.240625,.5,.221875,.8328125,.5546875,.5546875,.5546875,.5546875,.3328125,.5,.2765625,.5546875,.5,.721875,.5,.5,.5,.3546875,.259375,.353125,.5890625];function De(e,t=10){const n=String(e);let r=0;for(let e=0,t=n.length;e<t;e++)r+=Oe[n.charCodeAt(e)]??.5279276315789471;return r*t}async function Qe(e,t,n){t?.(e);const r=await n();return t?.(""),r}function Ne(e,t,n=!0){const[o,i]=(0,r.useState)(()=>{if("undefined"==typeof window||!n)return t;try{const n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return console.error(e),t}});return[o,t=>{try{const r=t instanceof Function?t(o):t;i(r),"undefined"!=typeof window&&n&&window.localStorage.setItem(e,JSON.stringify(r))}catch(e){console.error(e)}}]}function Fe(e){return Ue(e)?(0,Me.C1)(e)?function(e){const{uri:t,baseUri:n=""}=e;let r;try{r=new URL(t,n).href}catch(e){r=t}return r}(e):JSON.stringify(e):String(e)}function Le(e){return e.replaceAll(/(^|[\s\n]|<[A-Za-z]*\/?>)((?:https?|ftp):\/\/[-A-Z0-9+\u0026\u2019@#/%?=()~_|!:,.;]*[-A-Z0-9+\u0026@#/%=~()_|])/gi,"$1<a href='$2' target=\"_blank\">$2</a>")}function je(e,t){const{padding:n=30,minWidth:r=80,fontSize:o=12,maxWidth:i=1e3,stripHTML:a=!1}=t||{};return ze(e.map(e=>Fe(e)).map(e=>a?function(e){let t="",n=!1;for(let r=0,o=e.length;r<o;r++){const o=e[r];"<"===o?n=!0:">"===o?n=!1:n||(t+=o)}return t}(e):e).map(e=>De(e,o)).map(e=>Math.min(Math.max(e+n,r),i)))}function ze(e,t=Number.NEGATIVE_INFINITY){let n=t;for(const t of e)n=Math.max(t,n);return n}function $e(e){let t=0;for(const n of e)t+=n;return t}function He(e,t){const n={};for(const r of e){const e=t(r);n[e]||(n[e]=[]),n[e].push(r)}return n}function Ge(e){return null!=e}function Ve(e){const t=document.createElement("div");return(0,ke.flushSync)(()=>{(0,Be.createRoot)(t).render(e)}),t.innerHTML.replaceAll(/\brgba\((.+?),[^,]+?\)/g,"rgb($1)")}async function We(e,t){const n=await async function(e,t={}){const{statusCallback:n=()=>{}}=t,r=await Qe("Downloading file",n,()=>e.readFile(t));return function(e){return 31===e[0]&&139===e[1]&&8===e[2]}(r)?await Qe("Unzipping",n,()=>Ie(r)):r}(e,t);if(n.length>536870888)throw new Error("Data exceeds maximum string length (512MB)");return new TextDecoder("utf8",{fatal:!0}).decode(n)}function Ue(e){return"object"==typeof e&&null!==e}function Ye(e,t){return Boolean(JSON.parse((n=e,("undefined"!=typeof localStorage?localStorage.getItem(n):void 0)||JSON.stringify(t))));var n}function Ke(e,t){var n,r;n=e,r=JSON.stringify(t),"undefined"!=typeof localStorage&&localStorage.setItem(n,r)}},7536(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(9081),o=n(1203),i=n(5321),a=n(2658),l=n(9191),s=n(8467),c=n(8525);const u={entering:{opacity:1},entered:{opacity:1}},d=r.forwardRef(function(e,t){const n=(0,a.A)(),d={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:f,appear:p=!0,children:h,easing:g,in:m,onEnter:A,onEntered:b,onEntering:v,onExit:y,onExited:w,onExiting:C,style:S,timeout:x=d,TransitionComponent:I=o.Ay,...E}=e,k=r.useRef(null),B=(0,s.A)(k,(0,i.A)(h),t),M=e=>t=>{if(e){const n=k.current;void 0===t?e(n):e(n,t)}},R=M(v),P=M((e,t)=>{(0,l.q)(e);const r=(0,l.c)({style:S,timeout:x,easing:g},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),A&&A(e,t)}),_=M(b),T=M(C),O=M(e=>{const t=(0,l.c)({style:S,timeout:x,easing:g},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),y&&y(e)}),D=M(w);return(0,c.jsx)(I,{appear:p,in:m,nodeRef:k,onEnter:P,onEntered:_,onEntering:R,onExit:O,onExited:D,onExiting:T,addEndListener:e=>{f&&f(k.current,e)},timeout:x,...E,children:(e,{ownerState:t,...n})=>r.cloneElement(h,{style:{opacity:0,visibility:"exited"!==e||m?void 0:"hidden",...u[e],...S,...h.props.style},ref:B,...n})})})},7579(e,t,n){"use strict";n.d(t,{A:()=>B});var r=n(9081),o=n(851),i=n(2189),a=n(7932),l=n(8394),s=n(8525);const c=(0,l.A)((0,s.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"),u=(0,l.A)((0,s.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"),d=(0,l.A)((0,s.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");var f=n(9025),p=n(4941),h=n(8175),g=n(4819);function m(e){return(0,g.Ay)("MuiCheckbox",e)}const A=(0,h.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);var b=n(361),v=n(7934),y=n(3955),w=n(8212),C=n(3738),S=n(616);const x=(0,b.Ay)(a.A,{shouldForwardProp:e=>(0,p.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${(0,f.A)(n.size)}`],"default"!==n.color&&t[`color${(0,f.A)(n.color)}`]]}})((0,v.A)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter((0,y.A)()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter((0,y.A)()).map(([t])=>({props:{color:t},style:{[`&.${A.checked}, &.${A.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${A.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),I=(0,s.jsx)(u,{}),E=(0,s.jsx)(c,{}),k=(0,s.jsx)(d,{}),B=r.forwardRef(function(e,t){const n=(0,w.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:a=I,color:l="primary",icon:c=E,indeterminate:u=!1,indeterminateIcon:d=k,inputProps:p,size:h="medium",disableRipple:g=!1,className:A,slots:b={},slotProps:v={},...y}=n,B=u?d:c,M=u?d:a,R={...n,disableRipple:g,color:l,indeterminate:u,size:h},P=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${(0,f.A)(r)}`,`size${(0,f.A)(o)}`]},l=(0,i.A)(a,m,t);return{...t,...l}})(R),_=v.input??p,[T,O]=(0,S.A)("root",{ref:t,elementType:x,className:(0,o.A)(P.root,A),shouldForwardComponentProp:!0,externalForwardedProps:{slots:b,slotProps:v,...y},ownerState:R,additionalProps:{type:"checkbox",icon:r.cloneElement(B,{fontSize:B.props.fontSize??h}),checkedIcon:r.cloneElement(M,{fontSize:M.props.fontSize??h}),disableRipple:g,slots:b,slotProps:{input:(0,C.A)("function"==typeof _?_(R):_,{"data-indeterminate":u})}}});return(0,s.jsx)(T,{...O,classes:P})})},7668(e,t,n){"use strict";n.d(t,{A:()=>_});var r=n(9081),o=n(851),i=n(2189),a=n(7932),l=n(8394),s=n(8525);const c=(0,l.A)((0,s.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),u=(0,l.A)((0,s.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");var d=n(4941),f=n(361),p=n(7934);const h=(0,f.Ay)("span",{name:"MuiRadioButtonIcon",shouldForwardProp:d.A})({position:"relative",display:"flex"}),g=(0,f.Ay)(c,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),m=(0,f.Ay)(u,{name:"MuiRadioButtonIcon"})((0,p.A)(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]}))),A=function(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o={...e,checked:t};return(0,s.jsxs)(h,{className:n.root,ownerState:o,children:[(0,s.jsx)(g,{fontSize:r,className:n.background,ownerState:o}),(0,s.jsx)(m,{fontSize:r,className:n.dot,ownerState:o})]})};var b=n(9025);const v=n(8499).A;var y=n(8659),w=n(9173),C=n(8175),S=n(4819);function x(e){return(0,S.Ay)("MuiRadio",e)}const I=(0,C.A)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]);var E=n(3955),k=n(616),B=n(8212);const M=(0,f.Ay)(a.A,{shouldForwardProp:e=>(0,d.A)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${(0,b.A)(n.size)}`],t[`color${(0,b.A)(n.color)}`]]}})((0,p.A)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${I.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter((0,E.A)()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter((0,E.A)()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${I.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),R=(0,s.jsx)(A,{checked:!0}),P=(0,s.jsx)(A,{}),_=r.forwardRef(function(e,t){const n=(0,B.b)({props:e,name:"MuiRadio"}),{checked:a,checkedIcon:l=R,color:c="primary",icon:u=P,name:d,onChange:f,size:p="medium",className:h,disabled:g,disableRipple:m=!1,slots:A={},slotProps:C={},inputProps:S,...I}=n,E=(0,y.A)();let _=g;E&&void 0===_&&(_=E.disabled),_??=!1;const T={...n,disabled:_,disableRipple:m,color:c,size:p},O=(e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${(0,b.A)(n)}`,"medium"!==r&&`size${(0,b.A)(r)}`]};return{...t,...(0,i.A)(o,x,t)}})(T),D=r.useContext(w.A);let Q=a;const N=v(f,D&&D.onChange);let F=d;var L,j;D&&(void 0===Q&&(L=D.value,Q="object"==typeof(j=n.value)&&null!==j?L===j:String(L)===String(j)),void 0===F&&(F=D.name));const z=C.input??S,[$,H]=(0,k.A)("root",{ref:t,elementType:M,className:(0,o.A)(O.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:A,slotProps:C,...I},getSlotProps:e=>({...e,onChange:(t,...n)=>{e.onChange?.(t,...n),N(t,...n)}}),ownerState:T,additionalProps:{type:"radio",icon:r.cloneElement(u,{fontSize:u.props.fontSize??p}),checkedIcon:r.cloneElement(l,{fontSize:l.props.fontSize??p}),disabled:_,name:F,checked:Q,slots:A,slotProps:{input:"function"==typeof z?z(T):z}}});return(0,s.jsx)($,{...H,classes:O})})},7733(e,t,n){"use strict";n.d(t,{A:()=>S});var r=n(9081),o=n(851),i=n(2189),a=n(4941),l=n(361),s=n(7934),c=n(8212),u=n(2001),d=n(4425),f=n(9411),p=n(8467),h=n(3588),g=n(2818),m=n(9150),A=n(8175),b=n(4819);function v(e){return(0,b.Ay)("MuiMenuItem",e)}const y=(0,A.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var w=n(8525);const C=(0,l.Ay)(d.A,{shouldForwardProp:e=>(0,a.A)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((0,s.A)(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${y.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${y.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${y.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${y.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${y.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${h.A.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${h.A.inset}`]:{marginLeft:52},[`& .${m.A.root}`]:{marginTop:0,marginBottom:0},[`& .${m.A.inset}`]:{paddingLeft:36},[`& .${g.A.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${g.A.root} svg`]:{fontSize:"1.25rem"}}}]}))),S=r.forwardRef(function(e,t){const n=(0,c.b)({props:e,name:"MuiMenuItem"}),{autoFocus:a=!1,component:l="li",dense:s=!1,divider:d=!1,disableGutters:h=!1,focusVisibleClassName:g,role:m="menuitem",tabIndex:A,className:b,...y}=n,S=r.useContext(u.A),x=r.useMemo(()=>({dense:s||S.dense||!1,disableGutters:h}),[S.dense,s,h]),I=r.useRef(null);(0,f.A)(()=>{a&&I.current&&I.current.focus()},[a]);const E={...n,dense:x.dense,divider:d,disableGutters:h},k=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:l}=e,s={root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},c=(0,i.A)(s,v,l);return{...l,...c}})(n),B=(0,p.A)(I,t);let M;return n.disabled||(M=void 0!==A?A:-1),(0,w.jsx)(u.A.Provider,{value:x,children:(0,w.jsx)(C,{ref:B,role:m,tabIndex:M,component:l,focusVisibleClassName:(0,o.A)(k.focusVisible,g),className:(0,o.A)(k.root,b),...y,ownerState:E,classes:k})})})},7752(e,t,n){"use strict";n.d(t,{Cg:()=>p,Me:()=>l,Nd:()=>g,X4:()=>f,Y9:()=>b,YL:()=>c,a:()=>m,e$:()=>h,eM:()=>d,j4:()=>A});var r=n(399),o=n(8135);function i(e,t=0,n=1){return(0,o.A)(e,t,n)}function a(e){if(e.type)return e;if("#"===e.charAt(0))return a(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error((0,r.A)(9,e));let o,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),o=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error((0,r.A)(10,o))}else i=i.split(",");return i=i.map(e=>parseFloat(e)),{type:n,values:i,colorSpace:o}}const l=(e,t)=>{try{return(e=>{const t=a(e);return t.values.slice(0,3).map((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e).join(" ")})(e)}catch(t){return e}};function s(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function c(e){e=a(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),l=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),s({type:c,values:u})}function u(e){let t="hsl"===(e=a(e)).type||"hsla"===e.type?a(c(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function d(e,t){const n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function f(e,t){return e=a(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function p(e,t,n){try{return f(e,t)}catch(t){return e}}function h(e,t){if(e=a(e),t=i(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function g(e,t,n){try{return h(e,t)}catch(t){return e}}function m(e,t){if(e=a(e),t=i(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}function A(e,t,n){try{return m(e,t)}catch(t){return e}}function b(e,t,n){try{return function(e,t=.15){return u(e)>.5?h(e,t):m(e,t)}(e,t)}catch(t){return e}}},7817(e,t,n){"use strict";n.d(t,{A:()=>r});const r=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}},7872(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(9081),o=n(851),i=n(2189),a=n(361),l=n(7934),s=n(8212),c=n(9025),u=n(8175),d=n(4819);function f(e){return(0,d.Ay)("MuiListSubheader",e)}(0,u.A)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var p=n(8525);const h=(0,a.Ay)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,c.A)(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((0,l.A)(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),g=r.forwardRef(function(e,t){const n=(0,s.b)({props:e,name:"MuiListSubheader"}),{className:r,color:a="default",component:l="li",disableGutters:u=!1,disableSticky:d=!1,inset:g=!1,...m}=n,A={...n,color:a,component:l,disableGutters:u,disableSticky:d,inset:g},b=(e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:a}=e,l={root:["root","default"!==n&&`color${(0,c.A)(n)}`,!r&&"gutters",o&&"inset",!a&&"sticky"]};return(0,i.A)(l,f,t)})(A);return(0,p.jsx)(h,{as:l,className:(0,o.A)(b.root,r),ref:t,ownerState:A,...m})});g&&(g.muiSkipListHighlight=!0);const m=g},7881(e,t,n){var r=n(2738),o=n(3016),i=n(4972).C,a=n(5781),l=n(6360).g;function s(e,t){var n=e;return"string"==typeof e&&(n=r.parseSourceMapInput(e)),null!=n.sections?new p(n,t):new c(n,t)}function c(e,t){var n=e;"string"==typeof e&&(n=r.parseSourceMapInput(e));var o=r.getArg(n,"version"),a=r.getArg(n,"sources"),l=r.getArg(n,"names",[]),s=r.getArg(n,"sourceRoot",null),c=r.getArg(n,"sourcesContent",null),u=r.getArg(n,"mappings"),d=r.getArg(n,"file",null);if(o!=this._version)throw new Error("Unsupported version: "+o);s&&(s=r.normalize(s)),a=a.map(String).map(r.normalize).map(function(e){return s&&r.isAbsolute(s)&&r.isAbsolute(e)?r.relative(s,e):e}),this._names=i.fromArray(l.map(String),!0),this._sources=i.fromArray(a,!0),this._absoluteSources=this._sources.toArray().map(function(e){return r.computeSourceURL(s,e,t)}),this.sourceRoot=s,this.sourcesContent=c,this._mappings=u,this._sourceMapURL=t,this.file=d}function u(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}s.fromSourceMap=function(e,t){return c.fromSourceMap(e,t)},s.prototype._version=3,s.prototype.__generatedMappings=null,Object.defineProperty(s.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),s.prototype.__originalMappings=null,Object.defineProperty(s.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),s.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},s.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},s.GENERATED_ORDER=1,s.ORIGINAL_ORDER=2,s.GREATEST_LOWER_BOUND=1,s.LEAST_UPPER_BOUND=2,s.prototype.eachMapping=function(e,t,n){var o,i=t||null;switch(n||s.GENERATED_ORDER){case s.GENERATED_ORDER:o=this._generatedMappings;break;case s.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var a=this.sourceRoot,l=e.bind(i),c=this._names,u=this._sources,d=this._sourceMapURL,f=0,p=o.length;f<p;f++){var h=o[f],g=null===h.source?null:u.at(h.source);null!==g&&(g=r.computeSourceURL(a,g,d)),l({source:g,generatedLine:h.generatedLine,generatedColumn:h.generatedColumn,originalLine:h.originalLine,originalColumn:h.originalColumn,name:null===h.name?null:c.at(h.name)})}},s.prototype.allGeneratedPositionsFor=function(e){var t=r.getArg(e,"line"),n={source:r.getArg(e,"source"),originalLine:t,originalColumn:r.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],a=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,o.LEAST_UPPER_BOUND);if(a>=0){var l=this._originalMappings[a];if(void 0===e.column)for(var s=l.originalLine;l&&l.originalLine===s;)i.push({line:r.getArg(l,"generatedLine",null),column:r.getArg(l,"generatedColumn",null),lastColumn:r.getArg(l,"lastGeneratedColumn",null)}),l=this._originalMappings[++a];else for(var c=l.originalColumn;l&&l.originalLine===t&&l.originalColumn==c;)i.push({line:r.getArg(l,"generatedLine",null),column:r.getArg(l,"generatedColumn",null),lastColumn:r.getArg(l,"lastGeneratedColumn",null)}),l=this._originalMappings[++a]}return i},t.SourceMapConsumer=s,c.prototype=Object.create(s.prototype),c.prototype.consumer=s,c.prototype._findSourceIndex=function(e){var t,n=e;if(null!=this.sourceRoot&&(n=r.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},c.fromSourceMap=function(e,t){var n=Object.create(c.prototype),o=n._names=i.fromArray(e._names.toArray(),!0),a=n._sources=i.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=t,n._absoluteSources=n._sources.toArray().map(function(e){return r.computeSourceURL(n.sourceRoot,e,t)});for(var s=e._mappings.toArray().slice(),d=n.__generatedMappings=[],f=n.__originalMappings=[],p=0,h=s.length;p<h;p++){var g=s[p],m=new u;m.generatedLine=g.generatedLine,m.generatedColumn=g.generatedColumn,g.source&&(m.source=a.indexOf(g.source),m.originalLine=g.originalLine,m.originalColumn=g.originalColumn,g.name&&(m.name=o.indexOf(g.name)),f.push(m)),d.push(m)}return l(n.__originalMappings,r.compareByOriginalPositions),n},c.prototype._version=3,Object.defineProperty(c.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});const d=r.compareByGeneratedPositionsDeflatedNoLine;function f(e,t){let n=e.length,r=e.length-t;if(!(r<=1))if(2==r){let n=e[t],r=e[t+1];d(n,r)>0&&(e[t]=r,e[t+1]=n)}else if(r<20)for(let r=t;r<n;r++)for(let n=r;n>t;n--){let t=e[n-1],r=e[n];if(d(t,r)<=0)break;e[n-1]=r,e[n]=t}else l(e,d,t)}function p(e,t){var n=e;"string"==typeof e&&(n=r.parseSourceMapInput(e));var o=r.getArg(n,"version"),a=r.getArg(n,"sections");if(o!=this._version)throw new Error("Unsupported version: "+o);this._sources=new i,this._names=new i;var l={line:-1,column:0};this._sections=a.map(function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var n=r.getArg(e,"offset"),o=r.getArg(n,"line"),i=r.getArg(n,"column");if(o<l.line||o===l.line&&i<l.column)throw new Error("Section offsets must be ordered and non-overlapping.");return l=n,{generatedOffset:{generatedLine:o+1,generatedColumn:i+1},consumer:new s(r.getArg(e,"map"),t)}})}c.prototype._parseMappings=function(e,t){var n,o,i,s,c=1,d=0,p=0,h=0,g=0,m=0,A=e.length,b=0,v={},y=[],w=[];let C=0;for(;b<A;)if(";"===e.charAt(b))c++,b++,d=0,f(w,C),C=w.length;else if(","===e.charAt(b))b++;else{for((n=new u).generatedLine=c,i=b;i<A&&!this._charIsMappingSeparator(e,i);i++);for(e.slice(b,i),o=[];b<i;)a.decode(e,b,v),s=v.value,b=v.rest,o.push(s);if(2===o.length)throw new Error("Found a source, but no line and column");if(3===o.length)throw new Error("Found a source and line, but no column");if(n.generatedColumn=d+o[0],d=n.generatedColumn,o.length>1&&(n.source=g+o[1],g+=o[1],n.originalLine=p+o[2],p=n.originalLine,n.originalLine+=1,n.originalColumn=h+o[3],h=n.originalColumn,o.length>4&&(n.name=m+o[4],m+=o[4])),w.push(n),"number"==typeof n.originalLine){let e=n.source;for(;y.length<=e;)y.push(null);null===y[e]&&(y[e]=[]),y[e].push(n)}}f(w,C),this.__generatedMappings=w;for(var S=0;S<y.length;S++)null!=y[S]&&l(y[S],r.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...y)},c.prototype._findMapping=function(e,t,n,r,i,a){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return o.search(e,t,i,a)},c.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},c.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",r.compareByGeneratedPositionsDeflated,r.getArg(e,"bias",s.GREATEST_LOWER_BOUND));if(n>=0){var o=this._generatedMappings[n];if(o.generatedLine===t.generatedLine){var i=r.getArg(o,"source",null);null!==i&&(i=this._sources.at(i),i=r.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var a=r.getArg(o,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:r.getArg(o,"originalLine",null),column:r.getArg(o,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e})},c.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var o,i=e;if(null!=this.sourceRoot&&(i=r.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(o=r.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if("file"==o.scheme&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!o.path||"/"==o.path)&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(t)return null;throw new Error('"'+i+'" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(e){var t=r.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var n={source:t,originalLine:r.getArg(e,"line"),originalColumn:r.getArg(e,"column")},o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,r.getArg(e,"bias",s.GREATEST_LOWER_BOUND));if(o>=0){var i=this._originalMappings[o];if(i.source===n.source)return{line:r.getArg(i,"generatedLine",null),column:r.getArg(i,"generatedColumn",null),lastColumn:r.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},p.prototype=Object.create(s.prototype),p.prototype.constructor=s,p.prototype._version=3,Object.defineProperty(p.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),p.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=o.search(t,this._sections,function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:t.generatedLine-(i.generatedOffset.generatedLine-1),column:t.generatedColumn-(i.generatedOffset.generatedLine===t.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},p.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},p.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r||""===r)return r}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},p.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(-1!==n.consumer._findSourceIndex(r.getArg(e,"source"))){var o=n.consumer.generatedPositionFor(e);if(o)return{line:o.line+(n.generatedOffset.generatedLine-1),column:o.column+(n.generatedOffset.generatedLine===o.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},p.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var o=this._sections[n],i=o.consumer._generatedMappings,a=0;a<i.length;a++){var s=i[a],c=o.consumer._sources.at(s.source);null!==c&&(c=r.computeSourceURL(o.consumer.sourceRoot,c,this._sourceMapURL)),this._sources.add(c),c=this._sources.indexOf(c);var u=null;s.name&&(u=o.consumer._names.at(s.name),this._names.add(u),u=this._names.indexOf(u));var d={source:c,generatedLine:s.generatedLine+(o.generatedOffset.generatedLine-1),generatedColumn:s.generatedColumn+(o.generatedOffset.generatedLine===s.generatedLine?o.generatedOffset.generatedColumn-1:0),originalLine:s.originalLine,originalColumn:s.originalColumn,name:u};this.__generatedMappings.push(d),"number"==typeof d.originalLine&&this.__originalMappings.push(d)}l(this.__generatedMappings,r.compareByGeneratedPositionsDeflated),l(this.__originalMappings,r.compareByOriginalPositions)}},7886(e,t,n){"use strict";function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function o(e,t=!1){return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function i(e){return e.startAdornment}n.d(t,{gr:()=>i,lq:()=>o})},7932(e,t,n){"use strict";n.d(t,{A:()=>b});var r=n(9081),o=n(2189),i=n(9025),a=n(4941),l=n(361),s=n(4030),c=n(8659),u=n(4425),d=n(8175),f=n(4819);function p(e){return(0,f.Ay)("PrivateSwitchBase",e)}(0,d.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var h=n(616),g=n(8525);const m=(0,l.Ay)(u.A,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>"start"===e&&"small"!==t.size,style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>"end"===e&&"small"!==t.size,style:{marginRight:-12}}]}),A=(0,l.Ay)("input",{name:"MuiSwitchBase",shouldForwardProp:a.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),b=r.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:a,defaultChecked:l,disabled:u,disableFocusRipple:d=!1,edge:f=!1,icon:b,id:v,inputProps:y,inputRef:w,name:C,onBlur:S,onChange:x,onFocus:I,readOnly:E,required:k=!1,tabIndex:B,type:M,value:R,slots:P={},slotProps:_={},...T}=e,[O,D]=(0,s.A)({controlled:r,default:Boolean(l),name:"SwitchBase",state:"checked"}),Q=(0,c.A)();let N=u;Q&&void 0===N&&(N=Q.disabled);const F="checkbox"===M||"radio"===M,L={...e,checked:O,disabled:N,disableFocusRipple:d,edge:f},j=(e=>{const{classes:t,checked:n,disabled:r,edge:a}=e,l={root:["root",n&&"checked",r&&"disabled",a&&`edge${(0,i.A)(a)}`],input:["input"]};return(0,o.A)(l,p,t)})(L),z={slots:P,slotProps:{input:y,..._}},[$,H]=(0,h.A)("root",{ref:t,elementType:m,className:j.root,shouldForwardComponentProp:!0,externalForwardedProps:{...z,component:"span",...T},getSlotProps:e=>({...e,onFocus:t=>{e.onFocus?.(t),(e=>{I&&I(e),Q&&Q.onFocus&&Q.onFocus(e)})(t)},onBlur:t=>{e.onBlur?.(t),(e=>{S&&S(e),Q&&Q.onBlur&&Q.onBlur(e)})(t)}}),ownerState:L,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:N,role:void 0,tabIndex:null}}),[G,V]=(0,h.A)("input",{ref:w,elementType:A,className:j.input,externalForwardedProps:z,getSlotProps:e=>({...e,onChange:t=>{e.onChange?.(t),(e=>{if(e.nativeEvent.defaultPrevented||E)return;const t=e.target.checked;D(t),x&&x(e,t)})(t)}}),ownerState:L,additionalProps:{autoFocus:n,checked:r,defaultChecked:l,disabled:N,id:F?v:void 0,name:C,readOnly:E,required:k,tabIndex:B,type:M,..."checkbox"===M&&void 0===R?{}:{value:R}}});return(0,g.jsxs)($,{...H,children:[(0,g.jsx)(G,{...V}),O?a:b]})})},7934(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(4715);const o={theme:void 0},i=function(e){let t,n;return function(i){let a=t;return void 0!==a&&i.theme===n||(o.theme=i.theme,a=(0,r.A)(e(o)),t=a,n=i.theme),a}}},7971(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(2426),o=n(8525);function i(e){const{styles:t,defaultTheme:n={}}=e,i="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return(0,o.jsx)(r.mL,{styles:i})}},7993(e,t,n){"use strict";n.d(t,{t:()=>i});var r=n(8525),o=n(9081);class i extends o.Component{constructor(e){super(e),this.state={error:void 0}}componentDidCatch(e,t){console.error("ErrorBoundary caught an error:",e,t),this.setState({error:e})}render(){return this.state.error?(0,r.jsx)(this.props.FallbackComponent,{error:this.state.error}):this.props.children}}},8018(e){"use strict";var t=/["'&<>]/;e.exports=function(e){var n,r=""+e,o=t.exec(r);if(!o)return r;var i="",a=0,l=0;for(a=o.index;a<r.length;a++){switch(r.charCodeAt(a)){case 34:n="&quot;";break;case 38:n="&amp;";break;case 39:n="&#39;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;default:continue}l!==a&&(i+=r.substring(l,a)),l=a+1,i+=n}return l!==a?i+r.substring(l,a):i}},8019(e,t,n){"use strict";function r(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function l(n,r,i,a){var l=r&&r.prototype instanceof c?r:c,u=Object.create(l.prototype);return o(u,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,a=0,l=e,f.n=n,s}};function p(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(a=0,f.v=r,f.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(f.n=-1),p(a,l)):f.n=l:f.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,i,a),!0),u}var s={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var f=[][i]?t(t([][i]())):(o(t={},i,function(){return this}),t),p=d.prototype=c.prototype=Object.create(f);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,o(e,a,"GeneratorFunction")),e.prototype=Object.create(p),e}return u.prototype=d,o(p,"constructor",d),o(d,"constructor",u),u.displayName="GeneratorFunction",o(d,a,"GeneratorFunction"),o(p),o(p,a,"Generator"),o(p,i,function(){return this}),o(p,"toString",function(){return"[object Generator]"}),(r=function(){return{w:l,m:h}})()}function o(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}o=function(e,t,n,r){function a(t,n){o(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},o(e,t,n,r)}function i(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function a(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function l(e){i(a,r,o,l,s,"next",e)}function s(e){i(a,r,o,l,s,"throw",e)}l(void 0)})}}function l(e,t){return s.apply(this,arguments)}function s(){return(s=a(r().m(function e(t,n){var o,i,a,l;return r().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch(t,n);case 1:if((o=e.v).ok){e.n=3;break}return i=Error,a="HTTP ".concat(o.status," fetching ").concat(t," "),e.n=2,o.text();case 2:throw l=a.concat.call(a,e.v),new i(l);case 3:return e.a(2,o)}},e)}))).apply(this,arguments)}function c(e,t){return u.apply(this,arguments)}function u(){return(u=a(r().m(function e(t,n){var o;return r().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,l(t,n);case 1:return o=e.v,e.a(2,o.text())}},e)}))).apply(this,arguments)}function d(e,t){return f.apply(this,arguments)}function f(){return(f=a(r().m(function e(t,n){var o;return r().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,l(t,n);case 1:return o=e.v,e.a(2,o.json())}},e)}))).apply(this,arguments)}function p(e){return new Promise(function(t){return setTimeout(t,e)})}n.d(t,{jT:()=>d,wR:()=>p,y1:()=>c})},8049(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(8394),o=n(8525);const i=(0,r.A)((0,o.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown")},8092(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(1466)},8109(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(9081),o=n(8163);const i=function(e){const t=r.useRef(e);return(0,o.A)(()=>{t.current=e}),r.useRef((...e)=>(0,t.current)(...e)).current}},8111(e,t,n){"use strict";n.d(t,{A:()=>A});var r=n(9081),o=n(851),i=n(2189),a=n(7752),l=n(361),s=n(2658),c=n(7934),u=n(8212),d=n(2072),f=n(8175),p=n(4819);function h(e){return(0,p.Ay)("MuiPaper",e)}(0,f.A)("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"]);var g=n(8525);const m=(0,l.Ay)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((0,c.A)(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),A=r.forwardRef(function(e,t){const n=(0,u.b)({props:e,name:"MuiPaper"}),r=(0,s.A)(),{className:l,component:c="div",elevation:f=1,square:p=!1,variant:A="elevation",...b}=n,v={...n,component:c,elevation:f,square:p,variant:A},y=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]};return(0,i.A)(a,h,o)})(v);return(0,g.jsx)(m,{as:c,ownerState:v,className:(0,o.A)(y.root,l),ref:t,...b,style:{..."elevation"===A&&{"--Paper-shadow":(r.vars||r).shadows[f],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[f]},...!r.vars&&"dark"===r.palette.mode&&{"--Paper-overlay":`linear-gradient(${(0,a.X4)("#fff",(0,d.A)(f))}, ${(0,a.X4)("#fff",(0,d.A)(f))})`}},...b.style}})})},8135(e,t,n){"use strict";n.d(t,{A:()=>r});const r=function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}},8163(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(9081);const o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},8175(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(4819);function o(e,t,n="Mui"){const o={};return t.forEach(t=>{o[t]=(0,r.Ay)(e,t,n)}),o}},8181(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2018)},8212(e,t,n){"use strict";n.d(t,{b:()=>o}),n(9081);var r=n(5878);function o(e){return(0,r.b)(e)}n(8525)},8244(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(9081),o=n(851),i=n(2189),a=n(361),l=n(8212),s=n(8175),c=n(4819);function u(e){return(0,c.Ay)("MuiDialogActions",e)}(0,s.A)("MuiDialogActions",["root","spacing"]);var d=n(8525);const f=(0,a.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),p=r.forwardRef(function(e,t){const n=(0,l.b)({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:a=!1,...s}=n,c={...n,disableSpacing:a},p=(e=>{const{classes:t,disableSpacing:n}=e,r={root:["root",!n&&"spacing"]};return(0,i.A)(r,u,t)})(c);return(0,d.jsx)(f,{className:(0,o.A)(p.root,r),ownerState:c,ref:t,...s})})},8361(e){e.exports=!1},8371(e,t,n){"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},8394(e,t,n){"use strict";n.d(t,{A:()=>A});var r=n(9081),o=n(851),i=n(2189),a=n(9025),l=n(361),s=n(7934),c=n(8212),u=n(8175),d=n(4819);function f(e){return(0,d.Ay)("MuiSvgIcon",e)}(0,u.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var p=n(8525);const h=(0,l.Ay)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,a.A)(n.color)}`],t[`fontSize${(0,a.A)(n.fontSize)}`]]}})((0,s.A)(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),g=r.forwardRef(function(e,t){const n=(0,c.b)({props:e,name:"MuiSvgIcon"}),{children:l,className:s,color:u="inherit",component:d="svg",fontSize:g="medium",htmlColor:m,inheritViewBox:A=!1,titleAccess:b,viewBox:v="0 0 24 24",...y}=n,w=r.isValidElement(l)&&"svg"===l.type,C={...n,color:u,component:d,fontSize:g,instanceFontSize:e.fontSize,inheritViewBox:A,viewBox:v,hasSvgAsChild:w},S={};A||(S.viewBox=v);const x=(e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root","inherit"!==t&&`color${(0,a.A)(t)}`,`fontSize${(0,a.A)(n)}`]};return(0,i.A)(o,f,r)})(C);return(0,p.jsxs)(h,{as:d,className:(0,o.A)(x.root,s),focusable:"false",color:m,"aria-hidden":!b||void 0,role:b?"img":void 0,ref:t,...S,...y,...w&&l.props,ownerState:C,children:[w?l.props.children:l,b?(0,p.jsx)("title",{children:b}):null]})});g.muiName="SvgIcon";const m=g;function A(e,t){function n(t,n){return(0,p.jsx)(m,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=m.muiName,r.memo(r.forwardRef(n))}},8467(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(2381).A},8499(e,t,n){"use strict";function r(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}n.d(t,{A:()=>r})},8501(e,t,n){"use strict";n.d(t,{A:()=>r});const r={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"}},8521(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(9081);const o={};function i(e,t){const n=r.useRef(o);return n.current===o&&(n.current=e(t)),n}},8525(e,t,n){"use strict";e.exports=n(1357)},8553(e,t){"use strict";Symbol.for("react.transitional.element"),Symbol.for("react.portal");var n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=(Symbol.for("react.view_transition"),Symbol.for("react.client.reference"));t.Hy=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===s||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===a||e.$$typeof===i||e.$$typeof===l||e.$$typeof===f||void 0!==e.getModuleId)}},8560(e,t,n){"use strict";n.d(t,{A:()=>a,Z:()=>i});var r=n(8175),o=n(4819);function i(e){return(0,o.Ay)("MuiFormLabel",e)}const a=(0,r.A)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"])},8561(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(871).A},8596(e,t,n){"use strict";function r(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("number"==typeof e?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}n.d(t,{EW:()=>Fe,Es:()=>jn,Fq:()=>Qn,Gn:()=>xn,MN:()=>K,Mr:()=>pr,O8:()=>it,OB:()=>Zn,Rn:()=>pn,XI:()=>Dt,Zc:()=>on,_t:()=>Nt,fm:()=>Lt,go:()=>fr,hZ:()=>un,jK:()=>Ut,jO:()=>cn,lB:()=>fn,mJ:()=>$t,n8:()=>dn,pA:()=>rn,qT:()=>St,sG:()=>gt,sH:()=>Oe,uz:()=>zn,vx:()=>Ve,yl:()=>Yt,z7:()=>hn,zu:()=>sn});var o={};function i(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:o}var a=Object.assign,l=Object.getOwnPropertyDescriptor,s=Object.defineProperty,c=Object.prototype,u=[];Object.freeze(u);var d={};Object.freeze(d);var f="undefined"!=typeof Proxy,p=Object.toString();function h(){f||r("Proxy not available")}function g(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var m=function(){};function A(e){return"function"==typeof e}function b(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function v(e){return null!==e&&"object"==typeof e}function y(e){if(!v(e))return!1;var t=Object.getPrototypeOf(e);if(null==t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n.toString()===p}function w(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function C(e,t,n){s(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function S(e,t,n){s(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function x(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return v(e)&&!0===e[n]}}function I(e){return null!=e&&"[object Map]"===Object.prototype.toString.call(e)}function E(e){return null!=e&&"[object Set]"===Object.prototype.toString.call(e)}var k=void 0!==Object.getOwnPropertySymbols,B="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:k?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function M(e){return null===e?null:"object"==typeof e?""+e:e}function R(e,t){return c.hasOwnProperty.call(e,t)}var P=Object.getOwnPropertyDescriptors||function(e){var t={};return B(e).forEach(function(n){t[n]=l(e,n)}),t};function _(e,t){return!!(e&t)}function T(e,t,n){return n?e|=t:e&=~t,e}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,z(r.key),r)}}function Q(e,t,n){return t&&D(e.prototype,t),n&&D(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function N(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function F(){return F=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},F.apply(null,arguments)}function L(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,j(e,t)}function j(e,t){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},j(e,t)}function z(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var $=Symbol("mobx-stored-annotations");function H(e){return Object.assign(function(t,n){if(V(n))return e.decorate_20223_(t,n);G(t,n,e)},e)}function G(e,t,n){R(e,$)||C(e,$,F({},e[$])),function(e){return e.annotationType_===Z}(n)||(e[$][t]=n)}function V(e){return"object"==typeof e&&"string"==typeof e.kind}var W=Symbol("mobx administration"),U=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=Je.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(e){return e()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(e){return e()})},t.reportObserved=function(){return wt(this)},t.reportChanged=function(){vt(),Ct(this),yt()},t.toString=function(){return this.name_},Q(e,[{key:"isBeingObserved",get:function(){return _(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=T(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return _(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=T(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return _(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=T(this.flags_,e.diffValueMask_,1===t)}}])}();U.isBeingObservedMask_=1,U.isPendingUnobservationMask_=2,U.diffValueMask_=4;var Y=x("Atom",U);function K(e,t,n){void 0===t&&(t=m),void 0===n&&(n=m);var r=new U(e);return t!==m&&Vt(Ht,r,t,void 0),n!==m&&Gt(r,n),r}var q={identity:function(e,t){return e===t},structural:function(e,t){return br(e,t)},default:function(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e==1/t:e!=e&&t!=t},shallow:function(e,t){return br(e,t,1)}};function J(e,t,n){return an(e)?e:Array.isArray(e)?Oe.array(e,{name:n}):y(e)?Oe.object(e,void 0,{name:n}):I(e)?Oe.map(e,{name:n}):E(e)?Oe.set(e,{name:n}):"function"!=typeof e||Ft(e)||nn(e)?e:w(e)?en(e):Qt(n,e)}function X(e){return e}var Z="override";function ee(e,t){return{annotationType_:e,options_:t,make_:te,extend_:ne,decorate_20223_:re}}function te(e,t,n,r){var o;if(null!=(o=this.options_)&&o.bound)return null===this.extend_(e,t,n,!1)?0:1;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(Ft(n.value))return 1;var i=oe(e,this,t,n,!1);return s(r,t,i),2}function ne(e,t,n,r){var o=oe(e,this,t,n);return e.defineProperty_(t,o,r)}function re(e,t){var n,o=t.kind,i=t.name,a=t.addInitializer,l=this,s=function(e){var t,n,r,o;return He(null!=(t=null==(n=l.options_)?void 0:n.name)?t:i.toString(),e,null!=(r=null==(o=l.options_)?void 0:o.autoAction)&&r)};return"field"==o?function(e){var t,n=e;return Ft(n)||(n=s(n)),null!=(t=l.options_)&&t.bound&&((n=n.bind(this)).isMobxAction=!0),n}:"method"==o?(Ft(e)||(e=s(e)),null!=(n=this.options_)&&n.bound&&a(function(){var e=this,t=e[i].bind(e);t.isMobxAction=!0,e[i]=t}),e):void r("Cannot apply '"+l.annotationType_+"' to '"+String(i)+"' (kind: "+o+"):\n'"+l.annotationType_+"' can only be used on properties with a function value.")}function oe(e,t,n,r,o){var i,a,l,s,c,u,d,f;void 0===o&&(o=ht.safeDescriptors),f=r,t.annotationType_,f.value;var p,h=r.value;return null!=(i=t.options_)&&i.bound&&(h=h.bind(null!=(p=e.proxy_)?p:e.target_)),{value:He(null!=(a=null==(l=t.options_)?void 0:l.name)?a:n.toString(),h,null!=(s=null==(c=t.options_)?void 0:c.autoAction)&&s,null!=(u=t.options_)&&u.bound?null!=(d=e.proxy_)?d:e.target_:void 0),configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function ie(e,t){return{annotationType_:e,options_:t,make_:ae,extend_:le,decorate_20223_:se}}function ae(e,t,n,r){var o;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(null!=(o=this.options_)&&o.bound&&(!R(e.target_,t)||!nn(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(nn(n.value))return 1;var i=ce(e,this,0,n,!1,!1);return s(r,t,i),2}function le(e,t,n,r){var o,i=ce(e,this,0,n,null==(o=this.options_)?void 0:o.bound);return e.defineProperty_(t,i,r)}function se(e,t){var n,r=t.name,o=t.addInitializer;return nn(e)||(e=en(e)),null!=(n=this.options_)&&n.bound&&o(function(){var e=this,t=e[r].bind(e);t.isMobXFlow=!0,e[r]=t}),e}function ce(e,t,n,r,o,i){var a;void 0===i&&(i=ht.safeDescriptors),a=r,t.annotationType_,a.value;var l,s=r.value;return nn(s)||(s=en(s)),o&&((s=s.bind(null!=(l=e.proxy_)?l:e.target_)).isMobXFlow=!0),{value:s,configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function ue(e,t){return{annotationType_:e,options_:t,make_:de,extend_:fe,decorate_20223_:pe}}function de(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function fe(e,t,n,r){return o=n,this.annotationType_,o.get,e.defineComputedProperty_(t,F({},this.options_,{get:n.get,set:n.set}),r);var o}function pe(e,t){var n=this,r=t.name;return(0,t.addInitializer)(function(){var t=qn(this)[W],o=F({},n.options_,{get:e,context:this});o.name||(o.name="ObservableObject."+r.toString()),t.values_.set(r,new qe(o))}),function(){return this[W].getObservablePropValue_(r)}}function he(e,t){return{annotationType_:e,options_:t,make_:ge,extend_:me,decorate_20223_:Ae}}function ge(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function me(e,t,n,r){var o,i;return this.annotationType_,e.defineObservableProperty_(t,n.value,null!=(o=null==(i=this.options_)?void 0:i.enhancer)?o:J,r)}function Ae(e,t){var n=this,r=t.kind,o=t.name,i=new WeakSet;function a(e,t){var r,a,l=qn(e)[W],s=new Ye(t,null!=(r=null==(a=n.options_)?void 0:a.enhancer)?r:J,"ObservableObject."+o.toString(),!1);l.values_.set(o,s),i.add(e)}if("accessor"==r)return{get:function(){return i.has(this)||a(this,e.get.call(this)),this[W].getObservablePropValue_(o)},set:function(e){return i.has(this)||a(this,e),this[W].setObservablePropValue_(o,e)},init:function(e){return i.has(this)||a(this,e),e}}}var be=ve();function ve(e){return{annotationType_:"true",options_:e,make_:ye,extend_:we,decorate_20223_:Ce}}function ye(e,t,n,r){var o,i,a,l;if(n.get)return Fe.make_(e,t,n,r);if(n.set){var c=Ft(n.set)?n.set:He(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!ht.safeDescriptors||e.isPlainObject_,set:c})?0:2:(s(r,t,{configurable:!0,set:c}),2)}if(r!==e.target_&&"function"==typeof n.value)return w(n.value)?(null!=(l=this.options_)&&l.autoBind?en.bound:en).make_(e,t,n,r):(null!=(a=this.options_)&&a.autoBind?Qt.bound:Qt).make_(e,t,n,r);var u,d=!1===(null==(o=this.options_)?void 0:o.deep)?Oe.ref:Oe;return"function"==typeof n.value&&null!=(i=this.options_)&&i.autoBind&&(n.value=n.value.bind(null!=(u=e.proxy_)?u:e.target_)),d.make_(e,t,n,r)}function we(e,t,n,r){var o,i,a;return n.get?Fe.extend_(e,t,n,r):n.set?e.defineProperty_(t,{configurable:!ht.safeDescriptors||e.isPlainObject_,set:He(t.toString(),n.set)},r):("function"==typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(a=e.proxy_)?a:e.target_)),(!1===(null==(i=this.options_)?void 0:i.deep)?Oe.ref:Oe).extend_(e,t,n,r))}function Ce(e,t){r("'"+this.annotationType_+"' cannot be used as a decorator")}var Se={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function xe(e){return e||Se}Object.freeze(Se);var Ie=he("observable"),Ee=he("observable.ref",{enhancer:X}),ke=he("observable.shallow",{enhancer:function(e,t,n){return null==e||Zn(e)||Qn(e)||zn(e)||Vn(e)?e:Array.isArray(e)?Oe.array(e,{name:n,deep:!1}):y(e)?Oe.object(e,void 0,{name:n,deep:!1}):I(e)?Oe.map(e,{name:n,deep:!1}):E(e)?Oe.set(e,{name:n,deep:!1}):void 0}}),Be=he("observable.struct",{enhancer:function(e,t){return br(e,t)?t:e}}),Me=H(Ie);function Re(e){return!0===e.deep?J:!1===e.deep?X:(t=e.defaultDecorator)&&null!=(n=null==(r=t.options_)?void 0:r.enhancer)?n:J;var t,n,r}function Pe(e,t,n){return V(t)?Ie.decorate_20223_(e,t):b(t)?void G(e,t,Ie):an(e)?e:y(e)?Oe.object(e,t,n):Array.isArray(e)?Oe.array(e,t):I(e)?Oe.map(e,t):E(e)?Oe.set(e,t):"object"==typeof e&&null!==e?e:Oe.box(e,t)}a(Pe,Me);var _e,Te,Oe=a(Pe,{box:function(e,t){var n=xe(t);return new Ye(e,Re(n),n.name,!0,n.equals)},array:function(e,t){var n=xe(t);return(!1===ht.useProxies||!1===n.proxy?dr:Mn)(e,Re(n),n.name)},map:function(e,t){var n=xe(t);return new jn(e,Re(n),n.name)},set:function(e,t){var n=xe(t);return new Gn(e,Re(n),n.name)},object:function(e,t,n){return gr(function(){return function(e,t,n,r){var o=P(t);return gr(function(){var t=qn(e,r)[W];B(o).forEach(function(e){t.extend_(e,o[e],!n||!(e in n)||n[e])})}),e}(!1===ht.useProxies||!1===(null==n?void 0:n.proxy)?qn({},n):function(e,t){var n,r;return h(),null!=(r=(n=(e=qn(e,t))[W]).proxy_)?r:n.proxy_=new Proxy(e,An)}({},n),e,t)})},ref:H(Ee),shallow:H(ke),deep:Me,struct:H(Be)}),De="computed",Qe=ue(De),Ne=ue("computed.struct",{equals:q.structural}),Fe=function(e,t){if(V(t))return Qe.decorate_20223_(e,t);if(b(t))return G(e,t,Qe);if(y(e))return H(ue(De,e));var n=y(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new qe(n)};Object.assign(Fe,Qe),Fe.struct=H(Ne);var Le=0,je=1,ze=null!=(_e=null==(Te=l(function(){},"name"))?void 0:Te.configurable)&&_e,$e={value:"action",configurable:!0,writable:!1,enumerable:!1};function He(e,t,n,r){function o(){return Ge(0,n,t,r||this,arguments)}return void 0===n&&(n=!1),o.isMobxAction=!0,o.toString=function(){return t.toString()},ze&&($e.value=e,s(o,"name",$e)),o}function Ge(e,t,n,o,i){var a=function(e,t){var n=ht.trackingDerivation,r=!t||!n;vt();var o=ht.allowStateChanges;r&&(at(),o=We(!0));var i={runAsAction_:r,prevDerivation_:n,prevAllowStateChanges_:o,prevAllowStateReads_:st(!0),notifySpy_:!1,startTime_:0,actionId_:je++,parentActionId_:Le};return Le=i.actionId_,i}(0,t);try{return n.apply(o,i)}catch(e){throw a.error_=e,e}finally{!function(e){Le!==e.actionId_&&r(30),Le=e.parentActionId_,void 0!==e.error_&&(ht.suppressReactionErrors=!0),Ue(e.prevAllowStateChanges_),ct(e.prevAllowStateReads_),yt(),e.runAsAction_&&lt(e.prevDerivation_),ht.suppressReactionErrors=!1}(a)}}function Ve(e,t){var n=We(e);try{return t()}finally{Ue(n)}}function We(e){var t=ht.allowStateChanges;return ht.allowStateChanges=e,t}function Ue(e){ht.allowStateChanges=e}var Ye=function(e){function t(t,n,r,o,i){var a;return void 0===r&&(r="ObservableValue"),void 0===o&&(o=!0),void 0===i&&(i=q.default),(a=e.call(this,r)||this).enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=n,a.name_=r,a.equals=i,a.value_=n(t,void 0,r),a}L(t,e);var n=t.prototype;return n.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.set=function(e){this.value_,(e=this.prepareNewValue_(e))!==ht.UNCHANGED&&this.setNewValue_(e)},n.prepareNewValue_=function(e){if(bn(this)){var t=yn(this,{object:this,type:En,newValue:e});if(!t)return ht.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?ht.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),wn(this)&&Sn(this,{type:En,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return vn(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:En,newValue:this.value_,oldValue:void 0}),Cn(this,e)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return M(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}(U),Ke=x("ObservableValue",Ye),qe=function(){function e(e){this.dependenciesState_=Je.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Je.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new et(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Xe.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||r(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=He("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?q.structural:q.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){!function(e){e.lowestObserverState_===Je.UP_TO_DATE_&&(e.lowestObserverState_=Je.POSSIBLY_STALE_,e.observers_.forEach(function(e){e.dependenciesState_===Je.UP_TO_DATE_&&(e.dependenciesState_=Je.POSSIBLY_STALE_,e.onBecomeStale_())}))}(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(e){return e()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(e){return e()})},t.get=function(){if(this.isComputing&&r(32,this.name_,this.derivation),0!==ht.inBatch||0!==this.observers_.size||this.keepAlive_){if(wt(this),nt(this)){var e=ht.trackingContext;this.keepAlive_&&!e&&(ht.trackingContext=this),this.trackAndCompute()&&function(e){e.lowestObserverState_!==Je.STALE_&&(e.lowestObserverState_=Je.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===Je.POSSIBLY_STALE_?t.dependenciesState_=Je.STALE_:t.dependenciesState_===Je.UP_TO_DATE_&&(e.lowestObserverState_=Je.UP_TO_DATE_)}))}(this),ht.trackingContext=e}}else nt(this)&&(this.warnAboutUntrackedRead_(),vt(),this.value_=this.computeValue_(!1),yt());var t=this.value_;if(tt(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter&&r(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter=!1}}else r(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===Je.NOT_TRACKING_,n=this.computeValue_(!0),r=t||tt(e)||tt(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing=!0;var t,n=We(!1);if(e)t=rt(this,this.derivation,this.scope_);else if(!0===ht.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new et(e)}return Ue(n),this.isComputing=!1,t},t.suspend_=function(){this.keepAlive_||(ot(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,o=void 0;return Lt(function(){var i=n.get();if(!r||t){var a=at();e({observableKind:"computed",debugObjectName:n.name_,type:En,object:n,newValue:i,oldValue:o}),lt(a)}r=!1,o=i})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return M(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},Q(e,[{key:"isComputing",get:function(){return _(this.flags_,e.isComputingMask_)},set:function(t){this.flags_=T(this.flags_,e.isComputingMask_,t)}},{key:"isRunningSetter",get:function(){return _(this.flags_,e.isRunningSetterMask_)},set:function(t){this.flags_=T(this.flags_,e.isRunningSetterMask_,t)}},{key:"isBeingObserved",get:function(){return _(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=T(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return _(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=T(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return _(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=T(this.flags_,e.diffValueMask_,1===t)}}])}();qe.isComputingMask_=1,qe.isRunningSetterMask_=2,qe.isBeingObservedMask_=4,qe.isPendingUnobservationMask_=8,qe.diffValueMask_=16;var Je,Xe,Ze=x("ComputedValue",qe);!function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"}(Je||(Je={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Xe||(Xe={}));var et=function(e){this.cause=void 0,this.cause=e};function tt(e){return e instanceof et}function nt(e){switch(e.dependenciesState_){case Je.UP_TO_DATE_:return!1;case Je.NOT_TRACKING_:case Je.STALE_:return!0;case Je.POSSIBLY_STALE_:for(var t=st(!0),n=at(),r=e.observing_,o=r.length,i=0;i<o;i++){var a=r[i];if(Ze(a)){if(ht.disableErrorBoundaries)a.get();else try{a.get()}catch(e){return lt(n),ct(t),!0}if(e.dependenciesState_===Je.STALE_)return lt(n),ct(t),!0}}return ut(e),lt(n),ct(t),!1}}function rt(e,t,n){var r=st(!0);ut(e),e.newObserving_=new Array(0===e.runId_?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++ht.runId;var o,i=ht.trackingDerivation;if(ht.trackingDerivation=e,ht.inBatch++,!0===ht.disableErrorBoundaries)o=t.call(n);else try{o=t.call(n)}catch(e){o=new et(e)}return ht.inBatch--,ht.trackingDerivation=i,function(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=Je.UP_TO_DATE_,o=0,i=e.unboundDepsCount_,a=0;a<i;a++){var l=n[a];0===l.diffValue&&(l.diffValue=1,o!==a&&(n[o]=l),o++),l.dependenciesState_>r&&(r=l.dependenciesState_)}for(n.length=o,e.newObserving_=null,i=t.length;i--;){var s=t[i];0===s.diffValue&&At(s,e),s.diffValue=0}for(;o--;){var c=n[o];1===c.diffValue&&(c.diffValue=0,mt(c,e))}r!==Je.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),ct(r),o}function ot(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)At(t[n],e);e.dependenciesState_=Je.NOT_TRACKING_}function it(e){var t=at();try{return e()}finally{lt(t)}}function at(){var e=ht.trackingDerivation;return ht.trackingDerivation=null,e}function lt(e){ht.trackingDerivation=e}function st(e){var t=ht.allowStateReads;return ht.allowStateReads=e,t}function ct(e){ht.allowStateReads=e}function ut(e){if(e.dependenciesState_!==Je.UP_TO_DATE_){e.dependenciesState_=Je.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=Je.UP_TO_DATE_}}var dt=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},ft=!0,pt=!1,ht=function(){var e=i();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(ft=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new dt).version&&(ft=!1),ft?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new dt):(setTimeout(function(){pt||r(35)},1),new dt)}();function gt(){return ht}function mt(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function At(e,t){e.observers_.delete(t),0===e.observers_.size&&bt(e)}function bt(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,ht.pendingUnobservations.push(e))}function vt(){ht.inBatch++}function yt(){if(0===--ht.inBatch){It();for(var e=ht.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,0===n.observers_.size&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBUO()),n instanceof qe&&n.suspend_())}ht.pendingUnobservations=[]}}function wt(e){var t=ht.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&ht.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(0===e.observers_.size&&ht.inBatch>0&&bt(e),!1)}function Ct(e){e.lowestObserverState_!==Je.STALE_&&(e.lowestObserverState_=Je.STALE_,e.observers_.forEach(function(e){e.dependenciesState_===Je.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=Je.STALE_}))}var St=function(){function e(e,t,n,r){void 0===e&&(e="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=Je.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=Xe.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,ht.pendingReactions.push(this),It())},t.runReaction_=function(){if(!this.isDisposed){vt(),this.isScheduled=!1;var e=ht.trackingContext;if(ht.trackingContext=this,nt(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}ht.trackingContext=e,yt()}},t.track=function(e){if(!this.isDisposed){vt(),this.isRunning=!0;var t=ht.trackingContext;ht.trackingContext=this;var n=rt(this,e,void 0);ht.trackingContext=t,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&ot(this),tt(n)&&this.reportExceptionInDerivation_(n.cause),yt()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(ht.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";ht.suppressReactionErrors||console.error(n,e),ht.globalReactionErrorHandlers.forEach(function(n){return n(e,t)})}},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(vt(),ot(this),yt()))},t.getDisposer_=function(e){var t=this,n=function n(){t.dispose(),null==e||null==e.removeEventListener||e.removeEventListener("abort",n)};return null==e||null==e.addEventListener||e.addEventListener("abort",n),n[W]=this,"dispose"in Symbol&&"symbol"==typeof Symbol.dispose&&(n[Symbol.dispose]=n),n},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1)},Q(e,[{key:"isDisposed",get:function(){return _(this.flags_,e.isDisposedMask_)},set:function(t){this.flags_=T(this.flags_,e.isDisposedMask_,t)}},{key:"isScheduled",get:function(){return _(this.flags_,e.isScheduledMask_)},set:function(t){this.flags_=T(this.flags_,e.isScheduledMask_,t)}},{key:"isTrackPending",get:function(){return _(this.flags_,e.isTrackPendingMask_)},set:function(t){this.flags_=T(this.flags_,e.isTrackPendingMask_,t)}},{key:"isRunning",get:function(){return _(this.flags_,e.isRunningMask_)},set:function(t){this.flags_=T(this.flags_,e.isRunningMask_,t)}},{key:"diffValue",get:function(){return _(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=T(this.flags_,e.diffValueMask_,1===t)}}])}();St.isDisposedMask_=1,St.isScheduledMask_=2,St.isTrackPendingMask_=4,St.isRunningMask_=8,St.diffValueMask_=16;var xt=function(e){return e()};function It(){ht.inBatch>0||ht.isRunningReactions||xt(Et)}function Et(){ht.isRunningReactions=!0;for(var e=ht.pendingReactions,t=0;e.length>0;){100===++t&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,o=n.length;r<o;r++)n[r].runReaction_()}ht.isRunningReactions=!1}var kt=x("Reaction",St),Bt="action",Mt="autoAction",Rt=ee(Bt),Pt=ee("action.bound",{bound:!0}),_t=ee(Mt,{autoAction:!0}),Tt=ee("autoAction.bound",{autoAction:!0,bound:!0});function Ot(e){return function(t,n){return A(t)?He(t.name||"<unnamed action>",t,e):A(n)?He(t,n,e):V(n)?(e?_t:Rt).decorate_20223_(t,n):b(n)?G(t,n,e?_t:Rt):b(t)?H(ee(e?Mt:Bt,{name:t,autoAction:e})):void 0}}var Dt=Ot(!1);Object.assign(Dt,Rt);var Qt=Ot(!0);function Nt(e){return Ge(e.name,!1,e,this,void 0)}function Ft(e){return A(e)&&!0===e.isMobxAction}function Lt(e,t){var n,r,o,i;void 0===t&&(t=d);var a,l=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(t.scheduler||t.delay){var s=zt(t),c=!1;a=new St(l,function(){c||(c=!0,s(function(){c=!1,a.isDisposed||a.track(u)}))},t.onError,t.requiresObservable)}else a=new St(l,function(){this.track(u)},t.onError,t.requiresObservable);function u(){e(a)}return null!=(o=t)&&null!=(o=o.signal)&&o.aborted||a.schedule_(),a.getDisposer_(null==(i=t)?void 0:i.signal)}Object.assign(Qt,_t),Dt.bound=H(Pt),Qt.bound=H(Tt);var jt=function(e){return e()};function zt(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:jt}function $t(e,t,n){var r,o,i;void 0===n&&(n=d);var a,l,s,c=null!=(r=n.name)?r:"Reaction",u=Dt(c,n.onError?(a=n.onError,l=t,function(){try{return l.apply(this,arguments)}catch(e){a.call(this,e)}}):t),f=!n.scheduler&&!n.delay,p=zt(n),h=!0,g=!1,m=n.compareStructural?q.structural:n.equals||q.default,A=new St(c,function(){h||f?b():g||(g=!0,p(b))},n.onError,n.requiresObservable);function b(){if(g=!1,!A.isDisposed){var t=!1,r=s;A.track(function(){var n=Ve(!1,function(){return e(A)});t=h||!m(s,n),s=n}),(h&&n.fireImmediately||!h&&t)&&u(s,r,A),h=!1}}return null!=(o=n)&&null!=(o=o.signal)&&o.aborted||A.schedule_(),A.getDisposer_(null==(i=n)?void 0:i.signal)}var Ht="onBO";function Gt(e,t,n){return Vt("onBUO",e,t,n)}function Vt(e,t,n,r){var o="function"==typeof r?fr(t,n):fr(t),i=A(r)?r:n,a=e+"L";return o[a]?o[a].add(i):o[a]=new Set([i]),function(){var e=o[a];e&&(e.delete(i),0===e.size&&delete o[a])}}var Wt="always";function Ut(e){!0===e.isolateGlobalState&&function(){if((ht.pendingReactions.length||ht.inBatch||ht.isRunningReactions)&&r(36),pt=!0,ft){var e=i();0===--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),ht=new dt}}();var t,n,o=e.useProxies,a=e.enforceActions;if(void 0!==o&&(ht.useProxies=o===Wt||"never"!==o&&"undefined"!=typeof Proxy),"ifavailable"===o&&(ht.verifyProxies=!0),void 0!==a){var l=a===Wt?Wt:"observed"===a;ht.enforceActions=l,ht.allowStateChanges=!0!==l&&l!==Wt}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(t){t in e&&(ht[t]=!!e[t])}),ht.allowStateReads=!ht.observableRequiresReaction,e.reactionScheduler&&(t=e.reactionScheduler,n=xt,xt=function(e){return t(function(){return n(e)})})}function Yt(e,t){return Kt(fr(e,t))}function Kt(e){var t,n={name:e.name_};return e.observing_&&e.observing_.length>0&&(n.dependencies=(t=e.observing_,Array.from(new Set(t))).map(Kt)),n}var qt=0;function Jt(){this.message="FLOW_CANCELLED"}Jt.prototype=Object.create(Error.prototype);var Xt=ie("flow"),Zt=ie("flow.bound",{bound:!0}),en=Object.assign(function(e,t){if(V(t))return Xt.decorate_20223_(e,t);if(b(t))return G(e,t,Xt);var n=e,r=n.name||"<unnamed flow>",o=function(){var e,t=arguments,o=++qt,i=Dt(r+" - runid: "+o+" - init",n).apply(this,t),a=void 0,l=new Promise(function(t,n){var l=0;function s(e){var t;a=void 0;try{t=Dt(r+" - runid: "+o+" - yield "+l++,i.next).call(i,e)}catch(e){return n(e)}u(t)}function c(e){var t;a=void 0;try{t=Dt(r+" - runid: "+o+" - yield "+l++,i.throw).call(i,e)}catch(e){return n(e)}u(t)}function u(e){if(!A(null==e?void 0:e.then))return e.done?t(e.value):(a=Promise.resolve(e.value)).then(s,c);e.then(u,n)}e=n,s(void 0)});return l.cancel=Dt(r+" - runid: "+o+" - cancel",function(){try{a&&tn(a);var t=i.return(void 0),n=Promise.resolve(t.value);n.then(m,m),tn(n),e(new Jt)}catch(t){e(t)}}),l};return o.isMobXFlow=!0,o},Xt);function tn(e){A(e.cancel)&&e.cancel()}function nn(e){return!0===(null==e?void 0:e.isMobXFlow)}function rn(e,t,n){var r;return zn(e)||Qn(e)||Ke(e)?r=pr(e):Zn(e)&&(r=pr(e,t)),r.dehancer="function"==typeof t?t:n,function(){r.dehancer=void 0}}function on(e,t,n){return A(n)?function(e,t,n){return pr(e,t).intercept_(n)}(e,t,n):function(e,t){return pr(e).intercept_(t)}(e,t)}function an(e){return function(e,t){return!!e&&(void 0!==t?!!Zn(e)&&e[W].values_.has(t):Zn(e)||!!e[W]||Y(e)||kt(e)||Ze(e))}(e)}function ln(e){return Zn(e)?e[W].keys_():zn(e)||Vn(e)?Array.from(e.keys()):Qn(e)?e.map(function(e,t){return t}):void r(5)}function sn(e){return Zn(e)?ln(e).map(function(t){return e[t]}):zn(e)?ln(e).map(function(t){return e.get(t)}):Vn(e)?Array.from(e.values()):Qn(e)?e.slice():void r(6)}function cn(e){return Zn(e)?ln(e).map(function(t){return[t,e[t]]}):zn(e)?ln(e).map(function(t){return[t,e.get(t)]}):Vn(e)?Array.from(e.entries()):Qn(e)?e.map(function(e,t){return[t,e]}):void r(7)}function un(e,t,n){if(2!==arguments.length||Vn(e))Zn(e)?e[W].set_(t,n):zn(e)?e.set(t,n):Vn(e)?e.add(t):Qn(e)?("number"!=typeof t&&(t=parseInt(t,10)),t<0&&r("Invalid index: '"+t+"'"),vt(),t>=e.length&&(e.length=t+1),e[t]=n,yt()):r(8);else{vt();var o=t;try{for(var i in o)un(e,i,o[i])}finally{yt()}}}function dn(e,t,n){if(Zn(e))return e[W].defineProperty_(t,n);r(39)}function fn(e,t,n,r){return A(n)?function(e,t,n,r){return pr(e,t).observe_(n,r)}(e,t,n,r):function(e,t,n){return pr(e).observe_(t,n)}(e,t,n)}function pn(e,t){void 0===t&&(t=void 0),vt();try{return e.apply(t)}finally{yt()}}function hn(e,t,n){return 1===arguments.length||t&&"object"==typeof t?function(e,t){var n,r,o;if(null!=t&&null!=(n=t.signal)&&n.aborted)return Object.assign(Promise.reject(new Error("WHEN_ABORTED")),{cancel:function(){return null}});var i=new Promise(function(n,i){var a,l=gn(e,n,F({},t,{onError:i}));r=function(){l(),i(new Error("WHEN_CANCELLED"))},o=function(){l(),i(new Error("WHEN_ABORTED"))},null==t||null==(a=t.signal)||null==a.addEventListener||a.addEventListener("abort",o)}).finally(function(){var e;return null==t||null==(e=t.signal)||null==e.removeEventListener?void 0:e.removeEventListener("abort",o)});return i.cancel=r,i}(e,t):gn(e,t,n||{})}function gn(e,t,n){var r;if("number"==typeof n.timeout){var o=new Error("WHEN_TIMEOUT");r=setTimeout(function(){if(!a[W].isDisposed){if(a(),!n.onError)throw o;n.onError(o)}},n.timeout)}n.name="When";var i=He("When-effect",t),a=Lt(function(t){Ve(!1,e)&&(t.dispose(),r&&clearTimeout(r),i())},n);return a}function mn(e){return e[W]}en.bound=H(Zt);var An={has:function(e,t){return mn(e).has_(t)},get:function(e,t){return mn(e).get_(t)},set:function(e,t,n){var r;return!!b(t)&&(null==(r=mn(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return!!b(t)&&(null==(n=mn(e).delete_(t,!0))||n)},defineProperty:function(e,t,n){var r;return null==(r=mn(e).defineProperty_(t,n))||r},ownKeys:function(e){return mn(e).ownKeys_()},preventExtensions:function(e){r(13)}};function bn(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function vn(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),g(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function yn(e,t){var n=at();try{for(var o=[].concat(e.interceptors_||[]),i=0,a=o.length;i<a&&((t=o[i](t))&&!t.type&&r(14),t);i++);return t}finally{lt(n)}}function wn(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function Cn(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),g(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function Sn(e,t){var n=at(),r=e.changeListeners_;if(r){for(var o=0,i=(r=r.slice()).length;o<i;o++)r[o](t);lt(n)}}function xn(e,t,n){return gr(function(){var r=qn(e,n)[W];null!=t||(t=function(e){return R(e,$)||C(e,$,F({},e[$])),e[$]}(e)),B(t).forEach(function(e){return r.make_(e,t[e])})}),e}var In="splice",En="update",kn={get:function(e,t){var n=e[W];return t===W?n:"length"===t?n.getArrayLength_():"string"!=typeof t||isNaN(t)?R(Rn,t)?Rn[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[W];return"length"===t&&r.setArrayLength_(n),"symbol"==typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){r(15)}},Bn=function(){function e(e,t,n,r){void 0===e&&(e="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=n,this.legacyMode_=r,this.atom_=new U(e),this.enhancer_=function(e,n){return t(e,n,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.dehanceValues_=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},t.intercept_=function(e){return vn(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Cn(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||isNaN(e)||e<0)&&r("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=new Array(e-t),o=0;o<e-t;o++)n[o]=void 0;this.spliceWithArray_(t,0,n)}else this.spliceWithArray_(e,t-e)},t.updateArrayLength_=function(e,t){e!==this.lastKnownLength_&&r(16),this.lastKnownLength_+=t,this.legacyMode_&&t>0&&ur(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var o=this.values_.length;if(void 0===e?e=0:e>o?e=o:e<0&&(e=Math.max(0,o+e)),t=1===arguments.length?o-e:null==t?0:Math.max(0,Math.min(t,o-e)),void 0===n&&(n=u),bn(this)){var i=yn(this,{object:this.proxy_,type:In,index:e,removedCount:t,added:n});if(!i)return u;t=i.removedCount,n=i.added}if(n=0===n.length?n:n.map(function(e){return r.enhancer_(e,void 0)}),this.legacyMode_){var a=n.length-t;this.updateArrayLength_(o,a)}var l=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,l),this.dehanceValues_(l)},t.spliceItemsIntoValues_=function(e,t,n){var r;if(n.length<1e4)return(r=this.values_).splice.apply(r,[e,t].concat(n));var o=this.values_.slice(e,e+t),i=this.values_.slice(e+t);this.values_.length+=n.length-t;for(var a=0;a<n.length;a++)this.values_[e+a]=n[a];for(var l=0;l<i.length;l++)this.values_[e+n.length+l]=i[l];return o},t.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&!1,o=wn(this),i=o||r?{observableKind:"array",object:this.proxy_,type:En,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;this.atom_.reportChanged(),o&&Sn(this,i)},t.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&!1,o=wn(this),i=o||r?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:In,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom_.reportChanged(),o&&Sn(this,i)},t.get_=function(e){if(!(this.legacyMode_&&e>=this.values_.length))return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]);console.warn("[mobx] Out of bounds read: "+e)},t.set_=function(e,t){var n=this.values_;if(this.legacyMode_&&e>n.length&&r(17,e,n.length),e<n.length){this.atom_;var o=n[e];if(bn(this)){var i=yn(this,{type:En,object:this.proxy_,index:e,newValue:t});if(!i)return;t=i.newValue}(t=this.enhancer_(t,o))!==o&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,o))}else{for(var a=new Array(e+1-n.length),l=0;l<a.length-1;l++)a[l]=void 0;a[a.length-1]=t,this.spliceWithArray_(n.length,0,a)}},e}();function Mn(e,t,n,r){return void 0===n&&(n="ObservableArray"),void 0===r&&(r=!1),h(),gr(function(){var o=new Bn(n,t,r,!1);S(o.values_,W,o);var i=new Proxy(o.values_,kn);return o.proxy_=i,e&&e.length&&o.spliceWithArray_(0,0,e),i})}var Rn={clear:function(){return this.splice(0)},replace:function(e){var t=this[W];return t.spliceWithArray_(0,t.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=this[W];switch(arguments.length){case 0:return[];case 1:return i.spliceWithArray_(e);case 2:return i.spliceWithArray_(e,t)}return i.spliceWithArray_(e,t,r)},spliceWithArray:function(e,t,n){return this[W].spliceWithArray_(e,t,n)},push:function(){for(var e=this[W],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(e.values_.length,0,n),e.values_.length},pop:function(){return this.splice(Math.max(this[W].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[W],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(0,0,n),e.values_.length},reverse:function(){return ht.trackingDerivation&&r(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){ht.trackingDerivation&&r(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[W],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};function Pn(e,t){"function"==typeof Array.prototype[e]&&(Rn[e]=t(e))}function _n(e){return function(){var t=this[W];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function Tn(e){return function(t,n){var r=this,o=this[W];return o.atom_.reportObserved(),o.dehanceValues_(o.values_)[e](function(e,o){return t.call(n,e,o,r)})}}function On(e){return function(){var t=this,n=this[W];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),o=arguments[0];return arguments[0]=function(e,n,r){return o(e,n,r,t)},r[e].apply(r,arguments)}}Pn("at",_n),Pn("concat",_n),Pn("flat",_n),Pn("includes",_n),Pn("indexOf",_n),Pn("join",_n),Pn("lastIndexOf",_n),Pn("slice",_n),Pn("toString",_n),Pn("toLocaleString",_n),Pn("toSorted",_n),Pn("toSpliced",_n),Pn("with",_n),Pn("every",Tn),Pn("filter",Tn),Pn("find",Tn),Pn("findIndex",Tn),Pn("findLast",Tn),Pn("findLastIndex",Tn),Pn("flatMap",Tn),Pn("forEach",Tn),Pn("map",Tn),Pn("some",Tn),Pn("toReversed",Tn),Pn("reduce",On),Pn("reduceRight",On);var Dn=x("ObservableArrayAdministration",Bn);function Qn(e){return v(e)&&Dn(e[W])}var Nn={},Fn="add",Ln="delete",jn=function(){function e(e,t,n){var o=this;void 0===t&&(t=J),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[W]=Nn,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,A(Map)||r(18),gr(function(){o.keysAtom_=K("ObservableMap.keys()"),o.data_=new Map,o.hasMap_=new Map,e&&o.merge(e)})}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!ht.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new Ye(this.has_(e),X,"ObservableMap.key?",!1);this.hasMap_.set(e,r),Gt(r,function(){return t.hasMap_.delete(e)})}return n.get()},t.set=function(e,t){var n=this.has_(e);if(bn(this)){var r=yn(this,{type:n?En:Fn,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if(this.keysAtom_,bn(this)&&!yn(this,{type:Ln,object:this,name:e}))return!1;if(this.has_(e)){var n=wn(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:Ln,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return pn(function(){var n;t.keysAtom_.reportChanged(),null==(n=t.hasMap_.get(e))||n.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)}),n&&Sn(this,r),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==ht.UNCHANGED){var r=wn(this),o=r?{observableKind:"map",debugObjectName:this.name_,type:En,object:this,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),r&&Sn(this,o)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,pn(function(){var r,o=new Ye(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,o),t=o.value_,null==(r=n.hasMap_.get(e))||r.setNewValue_(!0),n.keysAtom_.reportChanged()});var r=wn(this),o=r?{observableKind:"map",debugObjectName:this.name_,type:Fn,object:this,name:e,newValue:t}:null;r&&Sn(this,o)},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return $n({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:e.get(o)}}})},t.entries=function(){var e=this,t=this.keys();return $n({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:[o,e.get(o)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=N(this);!(n=r()).done;){var o=n.value,i=o[0],a=o[1];e.call(t,a,i,this)}},t.merge=function(e){var t=this;return zn(e)&&(e=new Map(e)),pn(function(){var n,o,i;y(e)?function(e){var t=Object.keys(e);if(!k)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter(function(t){return c.propertyIsEnumerable.call(e,t)})):t}(e).forEach(function(n){return t.set(n,e[n])}):Array.isArray(e)?e.forEach(function(e){var n=e[0],r=e[1];return t.set(n,r)}):I(e)?(n=e,o=Object.getPrototypeOf(n),i=Object.getPrototypeOf(o),null!==Object.getPrototypeOf(i)&&r(19,e),e.forEach(function(e,n){return t.set(n,e)})):null!=e&&r(20,e)}),this},t.clear=function(){var e=this;pn(function(){it(function(){for(var t,n=N(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}})})},t.replace=function(e){var t=this;return pn(function(){for(var n,o=function(e){if(I(e)||zn(e))return e;if(Array.isArray(e))return new Map(e);if(y(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return r(21,e)}(e),i=new Map,a=!1,l=N(t.data_.keys());!(n=l()).done;){var s=n.value;if(!o.has(s))if(t.delete(s))a=!0;else{var c=t.data_.get(s);i.set(s,c)}}for(var u,d=N(o.entries());!(u=d()).done;){var f=u.value,p=f[0],h=f[1],g=t.data_.has(p);if(t.set(p,h),t.data_.has(p)){var m=t.data_.get(p);i.set(p,m),g||(a=!0)}}if(!a)if(t.data_.size!==i.size)t.keysAtom_.reportChanged();else for(var A=t.data_.keys(),b=i.keys(),v=A.next(),w=b.next();!v.done;){if(v.value!==w.value){t.keysAtom_.reportChanged();break}v=A.next(),w=b.next()}t.data_=i}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return Cn(this,e)},t.intercept_=function(e){return vn(this,e)},Q(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),zn=x("ObservableMap",jn);function $n(e){return e[Symbol.toStringTag]="MapIterator",Cr(e)}var Hn={},Gn=function(){function e(e,t,n){var o=this;void 0===t&&(t=J),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[W]=Hn,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,A(Set)||r(22),this.enhancer_=function(e,r){return t(e,r,n)},gr(function(){o.atom_=K(o.name_),e&&o.replace(e)})}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.clear=function(){var e=this;pn(function(){it(function(){for(var t,n=N(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}})})},t.forEach=function(e,t){for(var n,r=N(this);!(n=r()).done;){var o=n.value;e.call(t,o,o,this)}},t.add=function(e){var t=this;if(this.atom_,bn(this)){var n=yn(this,{type:Fn,object:this,newValue:e});if(!n)return this;e=n.newValue}if(!this.has(e)){pn(function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()});var r=wn(this),o=r?{observableKind:"set",debugObjectName:this.name_,type:Fn,object:this,newValue:e}:null;r&&Sn(this,o)}return this},t.delete=function(e){var t=this;if(bn(this)&&!yn(this,{type:Ln,object:this,oldValue:e}))return!1;if(this.has(e)){var n=wn(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:Ln,object:this,oldValue:e}:null;return pn(function(){t.atom_.reportChanged(),t.data_.delete(e)}),n&&Sn(this,r),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=this.values();return Wn({next:function(){var t=e.next(),n=t.value,r=t.done;return r?{value:void 0,done:r}:{value:[n,n],done:r}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var e=this,t=this.data_.values();return Wn({next:function(){var n=t.next(),r=n.value,o=n.done;return o?{value:void 0,done:o}:{value:e.dehanceValue_(r),done:o}}})},t.intersection=function(e){return E(e)&&!Vn(e)?e.intersection(this):new Set(this).intersection(e)},t.union=function(e){return E(e)&&!Vn(e)?e.union(this):new Set(this).union(e)},t.difference=function(e){return new Set(this).difference(e)},t.symmetricDifference=function(e){return E(e)&&!Vn(e)?e.symmetricDifference(this):new Set(this).symmetricDifference(e)},t.isSubsetOf=function(e){return new Set(this).isSubsetOf(e)},t.isSupersetOf=function(e){return new Set(this).isSupersetOf(e)},t.isDisjointFrom=function(e){return E(e)&&!Vn(e)?e.isDisjointFrom(this):new Set(this).isDisjointFrom(e)},t.replace=function(e){var t=this;return Vn(e)&&(e=new Set(e)),pn(function(){Array.isArray(e)||E(e)?(t.clear(),e.forEach(function(e){return t.add(e)})):null!=e&&r("Cannot initialize set from "+e)}),this},t.observe_=function(e,t){return Cn(this,e)},t.intercept_=function(e){return vn(this,e)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},Q(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),Vn=x("ObservableSet",Gn);function Wn(e){return e[Symbol.toStringTag]="SetIterator",Cr(e)}var Un=Object.create(null),Yn="remove",Kn=function(){function e(e,t,n,r){void 0===t&&(t=new Map),void 0===r&&(r=be),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=e,this.values_=t,this.name_=n,this.defaultAnnotation_=r,this.keysAtom_=new U("ObservableObject.keys"),this.isPlainObject_=y(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(e){return this.values_.get(e).get()},t.setObservablePropValue_=function(e,t){var n=this.values_.get(e);if(n instanceof qe)return n.set(t),!0;if(bn(this)){var r=yn(this,{type:En,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if((t=n.prepareNewValue_(t))!==ht.UNCHANGED){var o=wn(this),i=o?{type:En,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),o&&Sn(this,i)}return!0},t.get_=function(e){return ht.trackingDerivation&&!R(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return void 0===n&&(n=!1),R(this.target_,e)?this.values_.has(e)?this.setObservablePropValue_(e,t):n?Reflect.set(this.target_,e,t):(this.target_[e]=t,!0):this.extend_(e,{value:t,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,n)},t.has_=function(e){if(!ht.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new Ye(e in this.target_,X,"ObservableObject.key?",!1),this.pendingKeys_.set(e,t)),t.get()},t.make_=function(e,t){if(!0===t&&(t=this.defaultAnnotation_),!1!==t){if(!(e in this.target_)){var n;if(null!=(n=this.target_[$])&&n[e])return;r(1,t.annotationType_,this.name_+"."+e.toString())}for(var o=this.target_;o&&o!==c;){var i=l(o,e);if(i){var a=t.make_(this,e,i,o);if(0===a)return;if(1===a)break}o=Object.getPrototypeOf(o)}er(this,0,e)}},t.extend_=function(e,t,n,r){if(void 0===r&&(r=!1),!0===n&&(n=this.defaultAnnotation_),!1===n)return this.defineProperty_(e,t,r);var o=n.extend_(this,e,t,r);return o&&er(this,0,e),o},t.defineProperty_=function(e,t,n){void 0===n&&(n=!1),this.keysAtom_;try{vt();var r=this.delete_(e);if(!r)return r;if(bn(this)){var o=yn(this,{object:this.proxy_||this.target_,name:e,type:Fn,newValue:t.value});if(!o)return null;var i=o.newValue;t.value!==i&&(t=F({},t,{value:i}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else s(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{yt()}return!0},t.defineObservableProperty_=function(e,t,n,r){void 0===r&&(r=!1),this.keysAtom_;try{vt();var o=this.delete_(e);if(!o)return o;if(bn(this)){var i=yn(this,{object:this.proxy_||this.target_,name:e,type:Fn,newValue:t});if(!i)return null;t=i.newValue}var a=Xn(e),l={configurable:!ht.safeDescriptors||this.isPlainObject_,enumerable:!0,get:a.get,set:a.set};if(r){if(!Reflect.defineProperty(this.target_,e,l))return!1}else s(this.target_,e,l);var c=new Ye(t,n,"ObservableObject.key",!1);this.values_.set(e,c),this.notifyPropertyAddition_(e,c.value_)}finally{yt()}return!0},t.defineComputedProperty_=function(e,t,n){void 0===n&&(n=!1),this.keysAtom_;try{vt();var r=this.delete_(e);if(!r)return r;if(bn(this)&&!yn(this,{object:this.proxy_||this.target_,name:e,type:Fn,newValue:void 0}))return null;t.name||(t.name="ObservableObject.key"),t.context=this.proxy_||this.target_;var o=Xn(e),i={configurable:!ht.safeDescriptors||this.isPlainObject_,enumerable:!1,get:o.get,set:o.set};if(n){if(!Reflect.defineProperty(this.target_,e,i))return!1}else s(this.target_,e,i);this.values_.set(e,new qe(t)),this.notifyPropertyAddition_(e,void 0)}finally{yt()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),this.keysAtom_,!R(this.target_,e))return!0;if(bn(this)&&!yn(this,{object:this.proxy_||this.target_,name:e,type:Yn}))return null;try{var n;vt();var r,o=wn(this),i=this.values_.get(e),a=void 0;if(!i&&o&&(a=null==(r=l(this.target_,e))?void 0:r.value),t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if(i&&(this.values_.delete(e),i instanceof Ye&&(a=i.value_),Ct(i)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(e in this.target_),o){var s={type:Yn,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:a,name:e};o&&Sn(this,s)}}finally{yt()}return!0},t.observe_=function(e,t){return Cn(this,e)},t.intercept_=function(e){return vn(this,e)},t.notifyPropertyAddition_=function(e,t){var n,r=wn(this);if(r){var o=r?{type:Fn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;r&&Sn(this,o)}null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),B(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function qn(e,t){var n;if(R(e,W))return e;var r=null!=(n=null==t?void 0:t.name)?n:"ObservableObject",o=new Kn(e,new Map,String(r),function(e){var t;return e?null!=(t=e.defaultDecorator)?t:ve(e):void 0}(t));return C(e,W,o),e}var Jn=x("ObservableObjectAdministration",Kn);function Xn(e){return Un[e]||(Un[e]={get:function(){return this[W].getObservablePropValue_(e)},set:function(t){return this[W].setObservablePropValue_(e,t)}})}function Zn(e){return!!v(e)&&Jn(e[W])}function er(e,t,n){var r;null==(r=e.target_[$])||delete r[n]}var tr,nr,rr=sr(0),or=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),ir=0,ar=function(){};tr=ar,nr=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(tr.prototype,nr):void 0!==tr.prototype.__proto__?tr.prototype.__proto__=nr:tr.prototype=nr;var lr=function(e){function t(t,n,r,o){var i;return void 0===r&&(r="ObservableArray"),void 0===o&&(o=!1),i=e.call(this)||this,gr(function(){var e=new Bn(r,n,o,!0);e.proxy_=i,S(i,W,e),t&&t.length&&i.spliceWithArray(0,0,t),or&&Object.defineProperty(i,"0",rr)}),i}L(t,e);var n=t.prototype;return n.concat=function(){this[W].atom_.reportObserved();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.prototype.concat.apply(this.slice(),t.map(function(e){return Qn(e)?e.slice():e}))},n[Symbol.iterator]=function(){var e=this,t=0;return Cr({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},Q(t,[{key:"length",get:function(){return this[W].getArrayLength_()},set:function(e){this[W].setArrayLength_(e)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(ar);function sr(e){return{enumerable:!1,configurable:!0,get:function(){return this[W].get_(e)},set:function(t){this[W].set_(e,t)}}}function cr(e){s(lr.prototype,""+e,sr(e))}function ur(e){if(e>ir){for(var t=ir;t<e+100;t++)cr(t);ir=e}}function dr(e,t,n){return new lr(e,t,n)}function fr(e,t){if("object"==typeof e&&null!==e){if(Qn(e))return void 0!==t&&r(23),e[W].atom_;if(Vn(e))return e.atom_;if(zn(e)){if(void 0===t)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||r(25,t,hr(e)),n}if(Zn(e)){if(!t)return r(26);var o=e[W].values_.get(t);return o||r(27,t,hr(e)),o}if(Y(e)||Ze(e)||kt(e))return e}else if(A(e)&&kt(e[W]))return e[W];r(28)}function pr(e,t){return e||r(29),void 0!==t?pr(fr(e,t)):Y(e)||Ze(e)||kt(e)||zn(e)||Vn(e)?e:e[W]?e[W]:void r(24,e)}function hr(e,t){var n;if(void 0!==t)n=fr(e,t);else{if(Ft(e))return e.name;n=Zn(e)||zn(e)||Vn(e)?pr(e):fr(e)}return n.name_}function gr(e){var t=at(),n=We(!0);vt();try{return e()}finally{yt(),Ue(n),lt(t)}}Object.entries(Rn).forEach(function(e){var t=e[0],n=e[1];"concat"!==t&&C(lr.prototype,t,n)}),ur(1e3);var mr,Ar=c.toString;function br(e,t,n){return void 0===n&&(n=-1),vr(e,t,n)}function vr(e,t,n,r,o){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;if("function"!==i&&"object"!==i&&"object"!=typeof t)return!1;var a=Ar.call(e);if(a!==Ar.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0===+e?1/+e==1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++}e=yr(e),t=yr(t);var l="[object Array]"===a;if(!l){if("object"!=typeof e||"object"!=typeof t)return!1;var s=e.constructor,c=t.constructor;if(s!==c&&!(A(s)&&s instanceof s&&A(c)&&c instanceof c)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),o=o||[];for(var u=(r=r||[]).length;u--;)if(r[u]===e)return o[u]===t;if(r.push(e),o.push(t),l){if((u=e.length)!==t.length)return!1;for(;u--;)if(!vr(e[u],t[u],n-1,r,o))return!1}else{var d=Object.keys(e),f=d.length;if(Object.keys(t).length!==f)return!1;for(var p=0;p<f;p++){var h=d[p];if(!R(t,h)||!vr(e[h],t[h],n-1,r,o))return!1}}return r.pop(),o.pop(),!0}function yr(e){return Qn(e)?e.slice():I(e)||zn(e)||E(e)||Vn(e)?Array.from(e.entries()):e}var wr=(null==(mr=i().Iterator)?void 0:mr.prototype)||{};function Cr(e){return e[Symbol.iterator]=Sr,Object.assign(Object.create(wr),e)}function Sr(){return this}["Symbol","Map","Set"].forEach(function(e){void 0===i()[e]&&r("MobX requires global '"+e+"' to be available or polyfilled")}),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}},extras:{getDebugName:hr},$mobx:W})},8607(e,t,n){"use strict";n.d(t,{A:()=>r});const r=function(e,t,n){return"function"==typeof e?e(t,n):e}},8628(e,t,n){"use strict";n.d(t,{A:()=>a,t:()=>i});var r=n(8175),o=n(4819);function i(e){return(0,o.Ay)("MuiDialogTitle",e)}const a=(0,r.A)("MuiDialogTitle",["root"])},8645(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(8911).A},8654(e,t,n){"use strict";n.r(t),n.d(t,{renderToSvg:()=>m});var r=n(9081),o=n(7487),i=n(8596);const a=(0,n(6451).PA)(function(e){var t=e.model,n=t.scrollX,o=t.msaAreaWidth,i=t.minimapHeight,a=t.colWidth,l=i-12,s=o/t.numColumns/a,c=-n,u=c*s,d=(c+o)*s,f="rgb(66, 119, 127)";return r.createElement(r.Fragment,null,r.createElement("rect",{x:0,y:0,width:o,height:12,stroke:"#555",fill:"none"}),r.createElement("rect",{x:Math.max(0,u),y:0,width:d-u,height:12,fill:f,fillOpacity:.3,stroke:"#555"}),r.createElement("g",{transform:"translate(0 ".concat(12,")")},r.createElement("polygon",{fill:f,fillOpacity:.3,points:[[d,0],[u,0],[0,l],[o,l]].toString()})))});var l=n(5095),s=n(2973),c=n(1160),u=n(3940),d=n(3673);function f(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return p(c,"_invoke",function(n,r,o){var i,l,s,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,s=e,f.n=n,a}};function p(n,r){for(l=n,s=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];n>3?(o=h===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,f.v=r,f.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,s=h;(t=l<2?e:s)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,s)):f.n=s:f.v=s);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==a)break}catch(t){i=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(p(t={},r,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,p(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,p(d,"constructor",c),p(c,"constructor",s),s.displayName="GeneratorFunction",p(c,o,"GeneratorFunction"),p(d),p(d,o,"Generator"),p(d,r,function(){return this}),p(d,"toString",function(){return"[object Generator]"}),(f=function(){return{w:i,m:h}})()}function p(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}p=function(e,t,n,r){function i(t,n){p(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},p(e,t,n,r)}function h(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function g(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){h(i,r,o,a,l,"next",e)}function l(e){h(i,r,o,a,l,"throw",e)}a(void 0)})}}function m(e,t){return A.apply(this,arguments)}function A(){return(A=g(f().m(function e(t,n){var r,o,a,l,s,c,u,d,p,h;return f().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,(0,i.z7)(function(){return!!t.dataInitialized});case 1:if(r=t.width,o=t.height,a=t.scrollX,l=t.scrollY,s=t.totalTrackAreaHeight,c=n.exportType,u=n.theme,d=n.includeMinimap,p=n.includeTracks,h=p?s:0,"entire"!==c){e.n=2;break}return e.a(2,b({width:t.totalWidth+t.treeAreaWidth,height:t.totalHeight+h,contentHeight:t.totalHeight,trackHeight:h,theme:u,model:t,offsetY:0,offsetX:0,includeMinimap:d,includeTracks:p}));case 2:if("viewport"!==c){e.n=3;break}return e.a(2,b({width:r,height:o+(d?t.minimapHeight:0)+h,contentHeight:o,trackHeight:h,theme:u,model:t,offsetY:-l,offsetX:-a,includeMinimap:d,includeTracks:p}));case 3:throw new Error("unknown export type");case 4:return e.a(2)}},e)}))).apply(this,arguments)}function b(e){return v.apply(this,arguments)}function v(){return(v=g(f().m(function e(t){var i,a,l,s,c,u,d,p,h,g,m,A,b;return f().w(function(e){for(;;)switch(e.n){case 0:return i=t.width,a=t.height,l=t.contentHeight,s=t.trackHeight,c=t.offsetX,u=t.offsetY,d=t.theme,p=t.model,h=t.includeMinimap,g=t.includeTracks,e.n=1,Promise.resolve().then(n.bind(n,1168));case 1:return m=e.v,A=m.Context,b=h?C:x,e.a(2,(0,o.qVg)(r.createElement(S,{width:i,height:a},r.createElement(b,{model:p},g&&s>0?r.createElement(w,{Context:A,model:p,theme:d,offsetX:c,width:i,trackHeight:s}):null,r.createElement("g",{transform:s>0?"translate(0 ".concat(s,")"):void 0},r.createElement(y,{Context:A,model:p,theme:d,offsetX:c,offsetY:u,width:i,contentHeight:l}))))))}},e)}))).apply(this,arguments)}function y(e){var t=e.model,n=e.theme,o=e.width,i=e.contentHeight,a=e.offsetX,c=e.offsetY,f=e.Context,p=t.treeAreaWidth,h=t.colorScheme,g=t.id,m="tree-".concat(g),A="msa-".concat(g),b=(0,d.Sl)(h,n),v=new f(o,i),y=new f(o,i);(0,l.X)({ctx:y,offsetX:a,offsetY:c,model:t,blockSizeYOverride:i,highResScaleFactorOverride:1});var w=o-p;return(0,u.t0)({model:t,offsetY:c,ctx:v,theme:n,blockSizeYOverride:i,highResScaleFactorOverride:1}),(0,s.H)({model:t,theme:n,offsetY:c,offsetX:a,contrastScheme:b,ctx:y,blockSizeXOverride:w,blockSizeYOverride:i,highResScaleFactorOverride:1}),r.createElement(r.Fragment,null,r.createElement("defs",null,r.createElement("clipPath",{id:m},r.createElement("rect",{x:0,y:0,width:p,height:i}))),r.createElement("defs",null,r.createElement("clipPath",{id:A},r.createElement("rect",{x:0,y:0,width:w,height:i}))),r.createElement("g",{clipPath:"url(#".concat(m,")"),dangerouslySetInnerHTML:{__html:v.getSvg().innerHTML}}),r.createElement("g",{clipPath:"url(#".concat(A,")"),transform:"translate(".concat(p," 0)"),dangerouslySetInnerHTML:{__html:y.getSvg().innerHTML}}))}function w(e){var t=e.model,n=e.theme,o=e.width,i=e.trackHeight,a=e.offsetX,l=e.Context,s=t.treeAreaWidth,u=t.colorScheme,f=t.id,p="tracks-".concat(f),h=(0,d.Sl)(u,n),g=o-s,m=new l(g,i);return(0,c.ay)({model:t,ctx:m,offsetX:a,contrastScheme:h,blockSizeXOverride:g,highResScaleFactorOverride:1}),r.createElement("g",{transform:"translate(".concat(s," 0)")},r.createElement("defs",null,r.createElement("clipPath",{id:p},r.createElement("rect",{x:0,y:0,width:g,height:i}))),r.createElement("g",{clipPath:"url(#".concat(p,")"),dangerouslySetInnerHTML:{__html:m.getSvg().innerHTML}}))}function C(e){var t=e.model,n=e.children,o=t.minimapHeight,i=t.treeAreaWidth;return r.createElement(r.Fragment,null,r.createElement("g",{transform:"translate(".concat(i," 0)")},r.createElement(a,{model:t})),r.createElement("g",{transform:"translate(0 ".concat(o,")")},n))}function S(e){var t=e.width,n=e.height,o=e.children;return r.createElement("svg",{width:t,height:n,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:[0,0,t,n].toString()},o)}function x(e){return e.children}},8659(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(9081),o=n(7339);function i(){return r.useContext(o.A)}},8684(e,t,n){"use strict";n.d(t,{A:()=>r});const r=(0,n(6673).A)()},8756(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(4451).A},8876(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(9081),o=n(3081);const i=function(e=null){const t=r.useContext(o.T);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},8911(e,t,n){"use strict";var r;n.d(t,{A:()=>l});var o=n(9081);let i=0;const a={...r||(r=n.t(o,2))}.useId;function l(e){if(void 0!==a){const t=a();return e??t}return function(e){const[t,n]=o.useState(e),r=e||t;return o.useEffect(()=>{null==t&&(i+=1,n(`mui-${i}`))},[t]),r}(e)}},9025(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(7449).A},9077(e,t,n){"use strict";n.d(t,{Ay:()=>A,HX:()=>b,tT:()=>y});var r=n(7311),o=n(3081),i=n(2855),a=n(2050),l=n(966),s=n(9081),c=n(8371),u=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,d=(0,c.A)(function(e){return u.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),f=function(e){return"theme"!==e},p=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?d:f},h=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,l.SF)(t,n,r),(0,a.s)(function(){return(0,l.sk)(t,n,r)}),null},m=function e(t,n){var a,c,u=t.__emotion_real===t,d=u&&t.__emotion_base||t;void 0!==n&&(a=n.label,c=n.target);var f=h(t,n,u),m=f||p(d),A=!m("as");return function(){var b=arguments,v=u&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==a&&v.push("label:"+a+";"),null==b[0]||void 0===b[0].raw)v.push.apply(v,b);else{var y=b[0];v.push(y[0]);for(var w=b.length,C=1;C<w;C++)v.push(b[C],y[C])}var S=(0,o.w)(function(e,t,n){var r=A&&e.as||d,a="",u=[],h=e;if(null==e.theme){for(var b in h={},e)h[b]=e[b];h.theme=s.useContext(o.T)}"string"==typeof e.className?a=(0,l.Rk)(t.registered,u,e.className):null!=e.className&&(a=e.className+" ");var y=(0,i.J)(v.concat(u),t.registered,h);a+=t.key+"-"+y.name,void 0!==c&&(a+=" "+c);var w=A&&void 0===f?p(r):m,C={};for(var S in e)A&&"as"===S||w(S)&&(C[S]=e[S]);return C.className=a,n&&(C.ref=n),s.createElement(s.Fragment,null,s.createElement(g,{cache:t,serialized:y,isStringTag:"string"==typeof r}),s.createElement(r,C))});return S.displayName=void 0!==a?a:"Styled("+("string"==typeof d?d:d.displayName||d.name||"Component")+")",S.defaultProps=t.defaultProps,S.__emotion_real=S,S.__emotion_base=d,S.__emotion_styles=v,S.__emotion_forwardProp=f,Object.defineProperty(S,"toString",{value:function(){return"."+c}}),S.withComponent=function(t,o){return e(t,(0,r.A)({},n,o,{shouldForwardProp:h(S,o,!0)})).apply(void 0,v)},S}}.bind(null);function A(e,t){return m(e,t)}function b(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){m[e]=m(e)});const v=[];function y(e){return v[0]=e,(0,i.J)(v)}},9081(e,t,n){"use strict";e.exports=n(6686)},9085(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(851);function o(e,t,n=!1){const i={...t};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const l=a;if("components"===l||"slots"===l)i[l]={...e[l],...i[l]};else if("componentsProps"===l||"slotProps"===l){const r=e[l],a=t[l];if(a)if(r){i[l]={...a};for(const e in r)if(Object.prototype.hasOwnProperty.call(r,e)){const t=e;i[l][t]=o(r[t],a[t],n)}}else i[l]=a;else i[l]=r||{}}else"className"===l&&n&&t.className?i.className=(0,r.A)(e?.className,t?.className):"style"===l&&n&&t.style?i.style={...e?.style,...t?.style}:void 0===i[l]&&(i[l]=e[l])}return i}},9150(e,t,n){"use strict";n.d(t,{A:()=>a,b:()=>i});var r=n(8175),o=n(4819);function i(e){return(0,o.Ay)("MuiListItemText",e)}const a=(0,r.A)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"])},9173(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(9081).createContext(void 0)},9184(e,t,n){"use strict";n.d(t,{Ay:()=>l,p0:()=>o});const r={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},o={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function i(e){return`${Math.round(e)}ms`}function a(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function l(e){const t={...r,...e.easing},n={...o,...e.duration};return{getAutoHeightDuration:a,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:a=t.easeInOut,delay:l=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:i(o)} ${a} ${"string"==typeof l?l:i(l)}`).join(",")},...e,easing:t,duration:n}}},9191(e,t,n){"use strict";n.d(t,{c:()=>o,q:()=>r});const r=e=>e.scrollTop;function o(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:o.transitionTimingFunction??("object"==typeof r?r[t.mode]:r),delay:o.transitionDelay}}},9339(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(9081).createContext({})},9411(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(8163).A},9524(e,t,n){"use strict";n.d(t,{A:()=>r});const r={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"}},9585(e,t,n){"use strict";var r=n(9687),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,l,s,c,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),l=document.createRange(),s=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))}),document.body.appendChild(c),l.selectNodeContents(c),s.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(l):s.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},9586(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(8525),o=n(294),i=n(2600),a=n(9868),l=n(2426);const s=(0,a.n)()({dots:{"&::after":{display:"inline-block",content:'""',width:"1em",textAlign:"left",animation:`${l.i7`
228
+ `:null,w=(0,l.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${(0,u.A)(n.color)}`]]}})((0,s.A)(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:v||{animation:`${A} 1.4s linear infinite`}},...Object.entries(e.palette).filter((0,d.A)()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),C=(0,l.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),S=(0,l.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${(0,u.A)(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((0,s.A)(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:y||{animation:`${b} 1.4s ease-in-out infinite`}}]}))),x=(0,l.Ay)("circle",{name:"MuiCircularProgress",slot:"Track"})((0,s.A)(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),I=r.forwardRef(function(e,t){const n=(0,c.b)({props:e,name:"MuiCircularProgress"}),{className:r,color:a="primary",disableShrink:l=!1,enableTrackSlot:s=!1,size:d=40,style:f,thickness:p=3.6,value:A=0,variant:b="indeterminate",...v}=n,y={...n,color:a,disableShrink:l,size:d,thickness:p,value:A,variant:b,enableTrackSlot:s},I=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,a={root:["root",n,`color${(0,u.A)(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${(0,u.A)(n)}`,o&&"circleDisableShrink"]};return(0,i.A)(a,h,t)})(y),E={},k={},B={};if("determinate"===b){const e=2*Math.PI*((m-p)/2);E.strokeDasharray=e.toFixed(3),B["aria-valuenow"]=Math.round(A),E.strokeDashoffset=`${((100-A)/100*e).toFixed(3)}px`,k.transform="rotate(-90deg)"}return(0,g.jsx)(w,{className:(0,o.A)(I.root,r),style:{width:d,height:d,...k,...f},ownerState:y,ref:t,role:"progressbar",...B,...v,children:(0,g.jsxs)(C,{className:I.svg,ownerState:y,viewBox:"22 22 44 44",children:[s?(0,g.jsx)(x,{className:I.track,ownerState:y,cx:m,cy:m,r:(m-p)/2,fill:"none",strokeWidth:p,"aria-hidden":"true"}):null,(0,g.jsx)(S,{className:I.circle,style:E,ownerState:y,cx:m,cy:m,r:(m-p)/2,fill:"none",strokeWidth:p})]})})})},6858(e,t,n){"use strict";e.exports=n(5682)},6956(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(9081),o=n(3688),i=n(1080),a=n(294),l=n(3838);function s(e){var t=e.onClose;return r.createElement(o.A,{open:!0,title:"About",onClose:function(){t()}},r.createElement(i.A,null,r.createElement(a.A,null,"MSAView ","5.0.6"," (",r.createElement(l.A,{href:"https://github.com/gmod/react-msaview"},"Github"),")"),r.createElement("ul",null,r.createElement("li",null,r.createElement(a.A,null,"We use some color schemes from the"," ",r.createElement(l.A,{href:"https://github.com/biotite-dev/biotite"},"biotite")," ","project, and their license is reproduced"," ",r.createElement(l.A,{href:"https://github.com/biotite-dev/biotite/blob/master/LICENSE.rst"},"here"))),r.createElement("li",null,r.createElement(a.A,null,"See this page for some information on jalview colorings"," ",r.createElement(l.A,{href:"https://www.jalview.org/help/html/colourSchemes/"},"here"))),r.createElement("li",null,r.createElement(a.A,null,"See this page for some info on the clustal, cinema, maeditor, and lesk color schemes"," ",r.createElement(l.A,{href:"http://www.bioinformatics.nl/~berndb/aacolour.html"},"here"))),r.createElement("li",null,r.createElement(a.A,null,"See this paper about the flower color scheme"," ",r.createElement(l.A,{href:"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7245768/"},"here"))))))}},6972(e,t,n){"use strict";n.d(t,{A:()=>F});var r=n(9081),o=n(851),i=n(2189),a=n(2891),l=n(1075),s=n(3804),c=n(7063),u=n(361),d=n(8212),f=n(8756),p=n(8561),h=n(5488),g=n(5726),m=n(5994),A=n(8111),b=n(8175),v=n(4819);function y(e){return(0,v.Ay)("MuiPopover",e)}(0,b.A)("MuiPopover",["root","paper"]);var w=n(616),C=n(3738),S=n(8525);function x(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function I(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function E(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function k(e){return"function"==typeof e?e():e}const B=(0,u.Ay)(m.A,{name:"MuiPopover",slot:"Root"})({}),M=(0,u.Ay)(A.A,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),R=r.forwardRef(function(e,t){const n=(0,d.b)({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:m="anchorEl",children:A,className:b,container:v,elevation:R=8,marginThreshold:P=16,open:_,PaperProps:T={},slots:O={},slotProps:D={},transformOrigin:Q={vertical:"top",horizontal:"left"},TransitionComponent:N,transitionDuration:F="auto",TransitionProps:L={},disableScrollLock:j=!1,...z}=n,$=r.useRef(),H={...n,anchorOrigin:s,anchorReference:m,elevation:R,marginThreshold:P,transformOrigin:Q,TransitionComponent:N,transitionDuration:F,TransitionProps:L},G=(e=>{const{classes:t}=e;return(0,i.A)({root:["root"],paper:["paper"]},y,t)})(H),V=r.useCallback(()=>{if("anchorPosition"===m)return u;const e=k(l),t=(e&&1===e.nodeType?e:(0,p.A)($.current).body).getBoundingClientRect();return{top:t.top+x(t,s.vertical),left:t.left+I(t,s.horizontal)}},[l,s.horizontal,s.vertical,u,m]),W=r.useCallback(e=>({vertical:x(e,Q.vertical),horizontal:I(e,Q.horizontal)}),[Q.horizontal,Q.vertical]),U=r.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=W(t);if("none"===m)return{top:null,left:null,transformOrigin:E(n)};const r=V();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,c=(0,h.A)(k(l)),u=c.innerHeight-P,d=c.innerWidth-P;if(null!==P&&o<P){const e=o-P;o-=e,n.vertical+=e}else if(null!==P&&a>u){const e=a-u;o-=e,n.vertical+=e}if(null!==P&&i<P){const e=i-P;i-=e,n.horizontal+=e}else if(s>d){const e=s-d;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:E(n)}},[l,m,V,W,P]),[Y,K]=r.useState(_),q=r.useCallback(()=>{const e=$.current;if(!e)return;const t=U(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,K(!0)},[U]);r.useEffect(()=>(j&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q)),[l,j,q]),r.useEffect(()=>{_&&q()}),r.useImperativeHandle(a,()=>_?{updatePosition:()=>{q()}}:null,[_,q]),r.useEffect(()=>{if(!_)return;const e=(0,f.A)(()=>{q()}),t=(0,h.A)(k(l));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[l,_,q]);let J=F;const X={slots:{transition:N,...O},slotProps:{transition:L,paper:T,...D}},[Z,ee]=(0,w.A)("transition",{elementType:g.A,externalForwardedProps:X,ownerState:H,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),q()},onExited:t=>{e.onExited?.(t),K(!1)}}),additionalProps:{appear:!0,in:_}});"auto"!==F||Z.muiSupportAuto||(J=void 0);const te=v||(l?(0,p.A)(k(l)).body:void 0),[ne,{slots:re,slotProps:oe,...ie}]=(0,w.A)("root",{ref:t,elementType:B,externalForwardedProps:{...X,...z},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:O.backdrop},slotProps:{backdrop:(0,C.A)("function"==typeof D.backdrop?D.backdrop(H):D.backdrop,{invisible:!0})},container:te,open:_},ownerState:H,className:(0,o.A)(G.root,b)}),[ae,le]=(0,w.A)("paper",{ref:$,className:G.paper,elementType:M,externalForwardedProps:X,shouldForwardComponentProp:!0,additionalProps:{elevation:R,style:Y?void 0:{opacity:0}},ownerState:H});return(0,S.jsx)(ne,{...ie,...!(0,c.A)(ne)&&{slots:re,slotProps:oe,disableScrollLock:j},children:(0,S.jsx)(Z,{...ee,timeout:J,children:(0,S.jsx)(ae,{...le,children:A})})})});var P=n(4941);function _(e){return(0,v.Ay)("MuiMenu",e)}(0,b.A)("MuiMenu",["root","paper","list"]);const T={vertical:"top",horizontal:"right"},O={vertical:"top",horizontal:"left"},D=(0,u.Ay)(R,{shouldForwardProp:e=>(0,P.A)(e)||"classes"===e,name:"MuiMenu",slot:"Root"})({}),Q=(0,u.Ay)(M,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),N=(0,u.Ay)(s.A,{name:"MuiMenu",slot:"List"})({outline:0}),F=r.forwardRef(function(e,t){const n=(0,d.b)({props:e,name:"MuiMenu"}),{autoFocus:s=!0,children:c,className:u,disableAutoFocusItem:f=!1,MenuListProps:p={},onClose:h,open:g,PaperProps:m={},PopoverClasses:A,transitionDuration:b="auto",TransitionProps:{onEntering:v,...y}={},variant:C="selectedMenu",slots:x={},slotProps:I={},...E}=n,k=(0,a.I)(),B={...n,autoFocus:s,disableAutoFocusItem:f,MenuListProps:p,onEntering:v,PaperProps:m,transitionDuration:b,TransitionProps:y,variant:C},M=(e=>{const{classes:t}=e;return(0,i.A)({root:["root"],paper:["paper"],list:["list"]},_,t)})(B),R=s&&!f&&g,P=r.useRef(null);let F=-1;r.Children.map(c,(e,t)=>{r.isValidElement(e)&&(e.props.disabled||("selectedMenu"===C&&e.props.selected||-1===F)&&(F=t))});const L={slots:x,slotProps:{list:p,transition:y,paper:m,...I}},j=(0,l.A)({elementType:x.root,externalSlotProps:I.root,ownerState:B,className:[M.root,u]}),[z,$]=(0,w.A)("paper",{className:M.paper,elementType:Q,externalForwardedProps:L,shouldForwardComponentProp:!0,ownerState:B}),[H,G]=(0,w.A)("list",{className:(0,o.A)(M.list,p.className),elementType:N,shouldForwardComponentProp:!0,externalForwardedProps:L,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{"Tab"===e.key&&(e.preventDefault(),h&&h(e,"tabKeyDown"))})(t),e.onKeyDown?.(t)}}),ownerState:B}),V="function"==typeof L.slotProps.transition?L.slotProps.transition(B):L.slotProps.transition;return(0,S.jsx)(D,{onClose:h,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?T:O,slots:{root:x.root,paper:z,backdrop:x.backdrop,...x.transition&&{transition:x.transition}},slotProps:{root:j,paper:$,backdrop:"function"==typeof I.backdrop?I.backdrop(B):I.backdrop,transition:{...V,onEntering:(...e)=>{((e,t)=>{P.current&&P.current.adjustStyleForScrollbar(e,{direction:k?"rtl":"ltr"}),v&&v(e,t)})(...e),V?.onEntering?.(...e)}}},open:g,ref:t,transitionDuration:b,ownerState:B,...E,classes:A,children:(0,S.jsx)(H,{actions:P,autoFocus:s&&(-1===F||f),autoFocusItem:R,variant:C,...G,children:c})})})},7020(e,t,n){"use strict";e.exports=n(5360)},7063(e,t,n){"use strict";n.d(t,{A:()=>r});const r=function(e){return"string"==typeof e}},7085(e,t,n){"use strict";n.d(t,{A:()=>S});var r,o=n(9081),i=n(2189),a=n(4941),l=n(361),s=n(7934),c=n(8525);const u=(0,l.Ay)("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:a.A})({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%"}),d=(0,l.Ay)("legend",{name:"MuiNotchedOutlined",shouldForwardProp:a.A})((0,s.A)(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));var f=n(8659),p=n(9641),h=n(3955),g=n(8212),m=n(3744),A=n(4590),b=n(616);const v=(0,l.Ay)(A.Sh,{shouldForwardProp:e=>(0,a.A)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:A.WC})((0,s.A)(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${m.A.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${m.A.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${m.A.focused} .${m.A.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter((0,h.A)()).map(([t])=>({props:{color:t},style:{[`&.${m.A.focused} .${m.A.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${m.A.error} .${m.A.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${m.A.disabled} .${m.A.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:14}},{props:({ownerState:e})=>e.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{padding:"8.5px 14px"}}]}})),y=(0,l.Ay)(function(e){const{children:t,classes:n,className:o,label:i,notched:a,...l}=e,s=null!=i&&""!==i,f={...e,notched:a,withLabel:s};return(0,c.jsx)(u,{"aria-hidden":!0,className:o,ownerState:f,...l,children:(0,c.jsx)(d,{ownerState:f,children:s?(0,c.jsx)("span",{children:i}):r||(r=(0,c.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})},{name:"MuiOutlinedInput",slot:"NotchedOutline"})((0,s.A)(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),w=(0,l.Ay)(A.ck,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:A.Oj})((0,s.A)(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),C=o.forwardRef(function(e,t){const n=(0,g.b)({props:e,name:"MuiOutlinedInput"}),{components:r={},fullWidth:a=!1,inputComponent:l="input",label:s,multiline:u=!1,notched:d,slots:h={},slotProps:C={},type:S="text",...x}=n,I=(e=>{const{classes:t}=e,n=(0,i.A)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},m.v,t);return{...t,...n}})(n),E=(0,f.A)(),k=(0,p.A)({props:n,muiFormControl:E,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),B={...n,color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:E,fullWidth:a,hiddenLabel:k.hiddenLabel,multiline:u,size:k.size,type:S},M=h.root??r.Root??v,R=h.input??r.Input??w,[P,_]=(0,b.A)("notchedOutline",{elementType:y,className:I.notchedOutline,shouldForwardComponentProp:!0,ownerState:B,externalForwardedProps:{slots:h,slotProps:C},additionalProps:{label:null!=s&&""!==s&&k.required?(0,c.jsxs)(o.Fragment,{children:[s," ","*"]}):s}});return(0,c.jsx)(A.Ay,{slots:{root:M,input:R},slotProps:C,renderSuffix:e=>(0,c.jsx)(P,{..._,notched:void 0!==d?d:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:a,inputComponent:l,multiline:u,ref:t,type:S,...x,classes:{...I,notchedOutline:null}})});C.muiName="Input";const S=C},7112(e,t,n){"use strict";n.d(t,{A:()=>r});const r=(0,n(3536).Ay)()},7146(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>i(s,n))c<o&&0>i(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}var c=[],u=[],d=1,f=null,p=3,h=!1,g=!1,m=!1,A=!1,b="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function C(e){if(m=!1,w(e),!g)if(null!==r(c))g=!0,x||(x=!0,S());else{var t=r(u);null!==t&&_(C,t.startTime-e)}}var S,x=!1,I=-1,E=5,k=-1;function B(){return!(!A&&t.unstable_now()-k<E)}function M(){if(A=!1,x){var e=t.unstable_now();k=e;var n=!0;try{e:{g=!1,m&&(m=!1,v(I),I=-1),h=!0;var i=p;try{t:{for(w(e),f=r(c);null!==f&&!(f.expirationTime>e&&B());){var a=f.callback;if("function"==typeof a){f.callback=null,p=f.priorityLevel;var l=a(f.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof l){f.callback=l,w(e),n=!0;break t}f===r(c)&&o(c),w(e)}else o(c);f=r(c)}if(null!==f)n=!0;else{var s=r(u);null!==s&&_(C,s.startTime-e),n=!1}}break e}finally{f=null,p=i,h=!1}n=void 0}}finally{n?S():x=!1}}}if("function"==typeof y)S=function(){y(M)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,P=R.port2;R.port1.onmessage=M,S=function(){P.postMessage(null)}}else S=function(){b(M,0)};function _(e,n){I=b(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_requestPaint=function(){A=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(m?(v(I),I=-1):m=!0,_(C,i-a))):(e.sortIndex=l,n(c,e),g||h||(g=!0,x||(x=!0,S()))),e},t.unstable_shouldYield=B,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},7196(e,t,n){"use strict";n.d(t,{EU:()=>s,NI:()=>l,vf:()=>c,zu:()=>o});var r=n(3580);const o={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${o[e]}px)`},a={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:o[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function l(e,t,n){const l=e.theme||{};if(Array.isArray(t)){const e=l.breakpoints||i;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=l.breakpoints||i;return Object.keys(t).reduce((i,s)=>{if((0,r.ob)(e.keys,s)){const e=(0,r.CT)(l.containerQueries?l:a,s);e&&(i[e]=n(t[s],s))}else if(Object.keys(e.values||o).includes(s))i[e.up(s)]=n(t[s],s);else{const e=s;i[e]=t[e]}return i},{})}return n(t)}function s(e={}){const t=e.keys?.reduce((t,n)=>(t[e.up(n)]={},t),{});return t||{}}function c(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}},7265(e,t,n){"use strict";var r=n(3034);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={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:i,resetWarningCache:o};return n.PropTypes=n,n}},7307(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(9081),o=n(3688),i=n(4137),a=n(1080),l=n(6451),s=n(1091);function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function u(e,t){if(e){if("string"==typeof e)return d(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var f=(0,l.PA)(function(e){var t=e.model,n=t.featureFilters;return r.createElement("div",null,r.createElement(i.A,{onClick:function(){var e,r=c(n.keys());try{for(r.s();!(e=r.n()).done;){var o=e.value;t.setFilter(o,!0)}}catch(e){r.e(e)}finally{r.f()}}},"Toggle all on"),r.createElement(i.A,{onClick:function(){var e,r=c(n.keys());try{for(r.s();!(e=r.n()).done;){var o=e.value;t.setFilter(o,!1)}}catch(e){r.e(e)}finally{r.f()}}},"Toggle all off"))}),p=(0,l.PA)(function(e){var t,n=e.model,o=n.tidyInterProAnnotationTypes,i=n.featureFilters,a=function(e){if(Array.isArray(e))return d(e)}(t=o.values())||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||u(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),l=(0,s.S)(a.length-1);return r.createElement(r.Fragment,null,r.createElement(f,{model:n}),r.createElement("table",null,r.createElement("thead",null,r.createElement("tr",null,r.createElement("td",null),r.createElement("td",null,"accession"),r.createElement("td",null,"name"),r.createElement("td",null,"description"))),r.createElement("tbody",null,a.map(function(e,t){var o,a=e.accession,s=e.name,c=e.description;return r.createElement("tr",{key:a},r.createElement("td",null,r.createElement("input",{type:"checkbox",checked:null!==(o=i.get(a))&&void 0!==o&&o,onChange:function(){n.setFilter(a,!n.featureFilters.get(a))}})),r.createElement("td",null,a),r.createElement("td",null,s),r.createElement("td",null,c),r.createElement("td",null,r.createElement("div",{style:{width:20,height:20,background:l[t]||"black"}})))}))))});const h=(0,l.PA)(function(e){var t=e.onClose,n=e.model;return r.createElement(o.A,{onClose:function(){t()},open:!0,title:"Feature filters",maxWidth:"xl"},r.createElement(a.A,null,r.createElement(p,{model:n})))})},7311(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},7339(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(9081).createContext(void 0)},7382(e,t,n){"use strict";n.d(t,{A:()=>g});var r=n(9081),o=n(851),i=n(2189),a=n(361),l=n(8212),s=n(616),c=n(7536),u=n(8175),d=n(4819);function f(e){return(0,d.Ay)("MuiBackdrop",e)}(0,u.A)("MuiBackdrop",["root","invisible"]);var p=n(8525);const h=(0,a.Ay)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),g=r.forwardRef(function(e,t){const n=(0,l.b)({props:e,name:"MuiBackdrop"}),{children:r,className:a,component:u="div",invisible:d=!1,open:g,components:m={},componentsProps:A={},slotProps:b={},slots:v={},TransitionComponent:y,transitionDuration:w,...C}=n,S={...n,component:u,invisible:d},x=(e=>{const{classes:t,invisible:n}=e,r={root:["root",n&&"invisible"]};return(0,i.A)(r,f,t)})(S),I={component:u,slots:{transition:y,root:m.Root,...v},slotProps:{...A,...b}},[E,k]=(0,s.A)("root",{elementType:h,externalForwardedProps:I,className:(0,o.A)(x.root,a),ownerState:S}),[B,M]=(0,s.A)("transition",{elementType:c.A,externalForwardedProps:I,ownerState:S});return(0,p.jsx)(B,{in:g,timeout:w,...C,...M,children:(0,p.jsx)(E,{"aria-hidden":!0,...k,ref:t,children:r})})})},7394(e,t,n){"use strict";n.d(t,{A:()=>y});var r=n(9081),o=n(2189),i=n(851),a=n(9641),l=n(8659),s=n(2882),c=n(8560),u=n(9025),d=n(4941),f=n(361),p=n(7934),h=n(8212),g=n(8175),m=n(4819);function A(e){return(0,m.Ay)("MuiInputLabel",e)}(0,g.A)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var b=n(8525);const v=(0,f.Ay)(s.A,{shouldForwardProp:e=>(0,d.A)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${c.A.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})((0,p.A)(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.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:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:t})=>"filled"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:t,size:n})=>"filled"===e&&t.shrink&&"small"===n,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:e,ownerState:t})=>"outlined"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),y=r.forwardRef(function(e,t){const n=(0,h.b)({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,margin:s,shrink:c,variant:d,className:f,...p}=n,g=(0,l.A)();let m=c;void 0===m&&g&&(m=g.filled||g.focused||g.adornedStart);const y=(0,a.A)({props:n,muiFormControl:g,states:["size","variant","required","focused"]}),w={...n,disableAnimation:r,formControl:g,shrink:m,size:y.size,variant:y.variant,required:y.required,focused:y.focused},C=(e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:l,required:s}=e,c={root:["root",n&&"formControl",!a&&"animated",i&&"shrink",r&&"medium"!==r&&`size${(0,u.A)(r)}`,l],asterisk:[s&&"asterisk"]},d=(0,o.A)(c,A,t);return{...t,...d}})(w);return(0,b.jsx)(v,{"data-shrink":m,ref:t,className:(0,i.A)(C.root,f),...p,ownerState:w,classes:C})})},7425(e,t,n){"use strict";function r(e,t){var n,r,o,i=(null==t?void 0:t.debug)||!1,a=!1,l=null;try{var s;if(n=function(){var e=document.getSelection();if(null==e||!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));var o=null==t?void 0:t.tagName.toUpperCase();return"INPUT"!==o&&"TEXTAREA"!==o||null==t||t.blur(),e.removeAllRanges(),function(){if("Caret"===e.type&&e.removeAllRanges(),!e.rangeCount)for(var r=0,o=n;r<o.length;r++){var i=o[r];e.addRange(i)}null==t||t.focus()}}(),r=document.createRange(),l=document.getSelection(),(o=document.createElement("span")).textContent=e,o.ariaHidden="true",o.style.all="unset",o.style.position="fixed",o.style.top="0",o.style.clip="rect(0, 0, 0, 0)",o.style.whiteSpace="pre",o.style.webkitUserSelect="text",o.style.MozUserSelect="text",o.style.msUserSelect="text",o.style.userSelect="text",o.addEventListener("copy",function(n){n.stopPropagation(),null!=t&&t.format&&(n.preventDefault(),n.clipboardData&&(n.clipboardData.clearData(),n.clipboardData.setData(t.format,e))),null!=t&&t.onCopy&&n.clipboardData&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.append(o),r.selectNodeContents(o),null===(s=l)||void 0===s||s.addRange(r),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");a=!0}catch(n){i&&console.error("unable to copy using execCommand:",n);try{var c,u=window.clipboardData;u&&(u.setData((null==t?void 0:t.format)||"text",e),null==t||null===(c=t.onCopy)||void 0===c||c.call(t,u),a=!0)}catch(e){i&&console.error("unable to copy using clipboardData:",e)}}finally{var d;l&&("function"==typeof l.removeRange&&r?l.removeRange(r):l.removeAllRanges()),o&&o.remove(),null===(d=n)||void 0===d||d()}return a}n.d(t,{A:()=>r})},7449(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(399);function o(e){if("string"!=typeof e)throw new Error((0,r.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},7487(e,t,n){"use strict";n.d(t,{qE8:()=>_e,JCG:()=>We,HtM:()=>Pe,UYe:()=>Fe,$zQ:()=>He,b8R:()=>Te,Gvm:()=>Ue,Bul:()=>Le,zll:()=>Ye,lYs:()=>Ke,T9B:()=>ze,pWq:()=>je,kD_:()=>De,z2o:()=>Ge,qVg:()=>Ve,czq:()=>$e,Mjh:()=>Ne});var r=n(9081);function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function i(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)}var a={arraySet:function(e,t,n,r,o){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),o);else for(var i=0;i<r;i++)e[o+i]=t[n+i]},flattenChunks:function(e){var t,n,r,o,i,a;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),o=0,t=0,n=e.length;t<n;t++)i=e[t],a.set(i,o),o+=i.length;return a},Buf8:function(e){return new Uint8Array(e)},Buf16:function(e){return new Uint16Array(e)},Buf32:function(e){return new Int32Array(e)}},l={arraySet:function(e,t,n,r,o){for(var i=0;i<r;i++)e[o+i]=t[n+i]},flattenChunks:function(e){return[].concat.apply([],e)},Buf8:function(e){return new Array(e)},Buf16:function(e){return new Array(e)},Buf32:function(e){return new Array(e)}};let s=()=>{const e="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;return s=()=>e,e},c=(e,t,n,r,o)=>(c=s()?a.arraySet:l.arraySet,c(e,t,n,r,o)),u=e=>(u=s()?a.flattenChunks:l.flattenChunks,u(e)),d=e=>(d=s()?a.Buf8:l.Buf8,d(e)),f=e=>(f=s()?a.Buf16:l.Buf16,f(e)),p=e=>(p=s()?a.Buf32:l.Buf32,p(e)),h=function(){let e=!0;try{String.fromCharCode.apply(null,[0])}catch(t){e=!1}return h=()=>e,e},g=function(){let e=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){e=!1}return g=()=>e,e},m=function(e){for(var t=d(256),n=0;n<256;n++)t[n]=n>=252?6:n>=248?5:n>=240?4:n>=224?3:n>=192?2:1;return t[254]=t[254]=1,m=e=>t[e],t[e]};function A(e){var t,n,r,o,i,a=e.length,l=0;for(o=0;o<a;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(l),i=0,o=0;i<l;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?t[i++]=n:n<2048?(t[i++]=192|n>>>6,t[i++]=128|63&n):n<65536?(t[i++]=224|n>>>12,t[i++]=128|n>>>6&63,t[i++]=128|63&n):(t[i++]=240|n>>>18,t[i++]=128|n>>>12&63,t[i++]=128|n>>>6&63,t[i++]=128|63&n);return t}function b(e,t){var n,r,o,a,l=t||e.length,s=new Array(2*l);for(r=0,n=0;n<l;)if((o=e[n++])<128)s[r++]=o;else if((a=m(o))>4)s[r++]=65533,n+=a-1;else{for(o&=2===a?31:3===a?15:7;a>1&&n<l;)o=o<<6|63&e[n++],a--;a>1?s[r++]=65533:o<65536?s[r++]=o:(o-=65536,s[r++]=55296|o>>10&1023,s[r++]=56320|1023&o)}return function(e,t){if(t<65534&&(e.subarray&&g()||!e.subarray&&h()))return String.fromCharCode.apply(null,i(e,t));for(var n="",r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n}(s,r)}function v(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+m(e[n])>t?n:t}function y(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}function w(e,t,n,r){for(var o=65535&e,i=e>>>16&65535,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{i=i+(o=o+t[r++]|0)|0}while(--a);o%=65521,i%=65521}return o|i<<16}let C=function(){const e=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();return C=()=>e,e};function S(e,t,n,r){var o=C(),i=r+n;e^=-1;for(var a=r;a<i;a++)e=e>>>8^o[255&(e^t[a])];return-1^e}function x(e,t){var n,r,o,i,a,l,s,c,u,d,f,p,h,g,m,A,b,v,y,w,C,S,x,I,E;n=e.state,r=e.next_in,I=e.input,o=r+(e.avail_in-5),i=e.next_out,E=e.output,a=i-(t-e.avail_out),l=i+(e.avail_out-257),s=n.dmax,c=n.wsize,u=n.whave,d=n.wnext,f=n.window,p=n.hold,h=n.bits,g=n.lencode,m=n.distcode,A=(1<<n.lenbits)-1,b=(1<<n.distbits)-1;e:do{h<15&&(p+=I[r++]<<h,h+=8,p+=I[r++]<<h,h+=8),v=g[p&A];t:for(;;){if(p>>>=y=v>>>24,h-=y,0==(y=v>>>16&255))E[i++]=65535&v;else{if(!(16&y)){if(64&y){if(32&y){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}v=g[(65535&v)+(p&(1<<y)-1)];continue t}for(w=65535&v,(y&=15)&&(h<y&&(p+=I[r++]<<h,h+=8),w+=p&(1<<y)-1,p>>>=y,h-=y),h<15&&(p+=I[r++]<<h,h+=8,p+=I[r++]<<h,h+=8),v=m[p&b];;){if(p>>>=y=v>>>24,h-=y,16&(y=v>>>16&255)){if(C=65535&v,h<(y&=15)&&(p+=I[r++]<<h,(h+=8)<y&&(p+=I[r++]<<h,h+=8)),(C+=p&(1<<y)-1)>s){e.msg="invalid distance too far back",n.mode=30;break e}if(p>>>=y,h-=y,C>(y=i-a)){if((y=C-y)>u&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(S=0,x=f,0===d){if(S+=c-y,y<w){w-=y;do{E[i++]=f[S++]}while(--y);S=i-C,x=E}}else if(d<y){if(S+=c+d-y,(y-=d)<w){w-=y;do{E[i++]=f[S++]}while(--y);if(S=0,d<w){w-=y=d;do{E[i++]=f[S++]}while(--y);S=i-C,x=E}}}else if(S+=d-y,y<w){w-=y;do{E[i++]=f[S++]}while(--y);S=i-C,x=E}for(;w>2;)E[i++]=x[S++],E[i++]=x[S++],E[i++]=x[S++],w-=3;w&&(E[i++]=x[S++],w>1&&(E[i++]=x[S++]))}else{S=i-C;do{E[i++]=E[S++],E[i++]=E[S++],E[i++]=E[S++],w-=3}while(w>2);w&&(E[i++]=E[S++],w>1&&(E[i++]=E[S++]))}break}if(64&y){e.msg="invalid distance code",n.mode=30;break e}v=m[(65535&v)+(p&(1<<y)-1)]}}break}}while(r<o&&i<l);r-=w=h>>3,p&=(1<<(h-=w<<3))-1,e.next_in=r,e.next_out=i,e.avail_in=r<o?o-r+5:5-(r-o),e.avail_out=i<l?l-i+257:257-(i-l),n.hold=p,n.bits=h}var I=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],E=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],k=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],B=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function M(e,t,n,r,o,i,a,l){var s,c,u,d,p,h,g,m,A,b=l.bits,v=0,y=0,w=0,C=0,S=0,x=0,M=0,R=0,P=0,_=0,T=null,O=0,D=f(16),Q=f(16),N=null,F=0;for(v=0;v<=15;v++)D[v]=0;for(y=0;y<r;y++)D[t[n+y]]++;for(S=b,C=15;C>=1&&0===D[C];C--);if(S>C&&(S=C),0===C)return o[i++]=20971520,o[i++]=20971520,l.bits=1,0;for(w=1;w<C&&0===D[w];w++);for(S<w&&(S=w),R=1,v=1;v<=15;v++)if(R<<=1,(R-=D[v])<0)return-1;if(R>0&&(0===e||1!==C))return-1;for(Q[1]=0,v=1;v<15;v++)Q[v+1]=Q[v]+D[v];for(y=0;y<r;y++)0!==t[n+y]&&(a[Q[t[n+y]]++]=y);if(0===e?(T=N=a,h=19):1===e?(T=I,O-=257,N=E,F-=257,h=256):(T=k,N=B,h=-1),_=0,y=0,v=w,p=i,x=S,M=0,u=-1,d=(P=1<<S)-1,1===e&&P>852||2===e&&P>592)return 1;for(;;){g=v-M,a[y]<h?(m=0,A=a[y]):a[y]>h?(m=N[F+a[y]],A=T[O+a[y]]):(m=96,A=0),s=1<<v-M,w=c=1<<x;do{o[p+(_>>M)+(c-=s)]=g<<24|m<<16|A}while(0!==c);for(s=1<<v-1;_&s;)s>>=1;if(0!==s?(_&=s-1,_+=s):_=0,y++,0===--D[v]){if(v===C)break;v=t[n+a[y]]}if(v>S&&(_&d)!==u){for(0===M&&(M=S),p+=w,R=1<<(x=v-M);x+M<C&&!((R-=D[x+M])<=0);)x++,R<<=1;if(P+=1<<x,1===e&&P>852||2===e&&P>592)return 1;o[u=_&d]=S<<24|x<<16|p-i}}return 0!==_&&(o[p+_]=v-M<<24|64<<16),l.bits=S,0}var R=-2,P=12,_=30;function T(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function O(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=f(320),this.work=f(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function D(e,t){var n,r;return e?(r=new O,e.state=r,r.window=null,n=function(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?R:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,function(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,function(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=p(852),t.distcode=t.distdyn=p(592),t.sane=1,t.back=-1,0):R}(e)):R}(e))):R}(e,t),0!==n&&(e.state=null),n):R}var Q,N,F=!0;function L(e){if(F){var t;for(Q=p(512),N=p(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(M(1,e.lens,0,288,Q,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;M(2,e.lens,0,32,N,0,e.work,{bits:5}),F=!1}e.lencode=Q,e.lenbits=9,e.distcode=N,e.distbits=5}function j(e,t,n,r){var o,i=e.state;return null===i.window&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=d(i.wsize)),r>=i.wsize?(c(i.window,t,n-i.wsize,i.wsize,0),i.wnext=0,i.whave=i.wsize):((o=i.wsize-i.wnext)>r&&(o=r),c(i.window,t,n-r,o,i.wnext),(r-=o)?(c(i.window,t,n-r,r,0),i.wnext=r,i.whave=i.wsize):(i.wnext+=o,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=o))),0}function z(e,t){var n,r,o,i,a,l,s,u,f,p,h,g,m,A,b,v,y,C,I,E,k,B,O,D,Q=0,N=d(4),F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return R;(n=e.state).mode===P&&(n.mode=13),a=e.next_out,o=e.output,s=e.avail_out,i=e.next_in,r=e.input,l=e.avail_in,u=n.hold,f=n.bits,p=l,h=s,B=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;f<16;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}if(2&n.wrap&&35615===u){n.check=0,N[0]=255&u,N[1]=u>>>8&255,n.check=S(n.check,N,2,0),u=0,f=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=_;break}if(8!=(15&u)){e.msg="unknown compression method",n.mode=_;break}if(f-=4,k=8+(15&(u>>>=4)),0===n.wbits)n.wbits=k;else if(k>n.wbits){e.msg="invalid window size",n.mode=_;break}n.dmax=1<<k,e.adler=n.check=1,n.mode=512&u?10:P,u=0,f=0;break;case 2:for(;f<16;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}if(n.flags=u,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=_;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=_;break}n.head&&(n.head.text=u>>8&1),512&n.flags&&(N[0]=255&u,N[1]=u>>>8&255,n.check=S(n.check,N,2,0)),u=0,f=0,n.mode=3;case 3:for(;f<32;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}n.head&&(n.head.time=u),512&n.flags&&(N[0]=255&u,N[1]=u>>>8&255,N[2]=u>>>16&255,N[3]=u>>>24&255,n.check=S(n.check,N,4,0)),u=0,f=0,n.mode=4;case 4:for(;f<16;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}n.head&&(n.head.xflags=255&u,n.head.os=u>>8),512&n.flags&&(N[0]=255&u,N[1]=u>>>8&255,n.check=S(n.check,N,2,0)),u=0,f=0,n.mode=5;case 5:if(1024&n.flags){for(;f<16;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}n.length=u,n.head&&(n.head.extra_len=u),512&n.flags&&(N[0]=255&u,N[1]=u>>>8&255,n.check=S(n.check,N,2,0)),u=0,f=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((g=n.length)>l&&(g=l),g&&(n.head&&(k=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),c(n.head.extra,r,i,g,k)),512&n.flags&&(n.check=S(n.check,r,g,i)),l-=g,i+=g,n.length-=g),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===l)break e;g=0;do{k=r[i+g++],n.head&&k&&n.length<65536&&(n.head.name+=String.fromCharCode(k))}while(k&&g<l);if(512&n.flags&&(n.check=S(n.check,r,g,i)),l-=g,i+=g,k)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===l)break e;g=0;do{k=r[i+g++],n.head&&k&&n.length<65536&&(n.head.comment+=String.fromCharCode(k))}while(k&&g<l);if(512&n.flags&&(n.check=S(n.check,r,g,i)),l-=g,i+=g,k)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;f<16;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}if(u!==(65535&n.check)){e.msg="header crc mismatch",n.mode=_;break}u=0,f=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=P;break;case 10:for(;f<32;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}e.adler=n.check=T(u),u=0,f=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=a,e.avail_out=s,e.next_in=i,e.avail_in=l,n.hold=u,n.bits=f,2;e.adler=n.check=1,n.mode=P;case P:if(5===t||6===t)break e;case 13:if(n.last){u>>>=7&f,f-=7&f,n.mode=27;break}for(;f<3;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}switch(n.last=1&u,f-=1,3&(u>>>=1)){case 0:n.mode=14;break;case 1:if(L(n),n.mode=20,6===t){u>>>=2,f-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=_}u>>>=2,f-=2;break;case 14:for(u>>>=7&f,f-=7&f;f<32;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}if((65535&u)!=(u>>>16^65535)){e.msg="invalid stored block lengths",n.mode=_;break}if(n.length=65535&u,u=0,f=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(g=n.length){if(g>l&&(g=l),g>s&&(g=s),0===g)break e;c(o,r,i,g,a),l-=g,i+=g,s-=g,a+=g,n.length-=g;break}n.mode=P;break;case 17:for(;f<14;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}if(n.nlen=257+(31&u),u>>>=5,f-=5,n.ndist=1+(31&u),u>>>=5,f-=5,n.ncode=4+(15&u),u>>>=4,f-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=_;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;f<3;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}n.lens[F[n.have++]]=7&u,u>>>=3,f-=3}for(;n.have<19;)n.lens[F[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,O={bits:n.lenbits},B=M(0,n.lens,0,19,n.lencode,0,n.work,O),n.lenbits=O.bits,B){e.msg="invalid code lengths set",n.mode=_;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;v=(Q=n.lencode[u&(1<<n.lenbits)-1])>>>16&255,y=65535&Q,!((b=Q>>>24)<=f);){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}if(y<16)u>>>=b,f-=b,n.lens[n.have++]=y;else{if(16===y){for(D=b+2;f<D;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}if(u>>>=b,f-=b,0===n.have){e.msg="invalid bit length repeat",n.mode=_;break}k=n.lens[n.have-1],g=3+(3&u),u>>>=2,f-=2}else if(17===y){for(D=b+3;f<D;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}f-=b,k=0,g=3+(7&(u>>>=b)),u>>>=3,f-=3}else{for(D=b+7;f<D;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}f-=b,k=0,g=11+(127&(u>>>=b)),u>>>=7,f-=7}if(n.have+g>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=_;break}for(;g--;)n.lens[n.have++]=k}}if(n.mode===_)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=_;break}if(n.lenbits=9,O={bits:n.lenbits},B=M(1,n.lens,0,n.nlen,n.lencode,0,n.work,O),n.lenbits=O.bits,B){e.msg="invalid literal/lengths set",n.mode=_;break}if(n.distbits=6,n.distcode=n.distdyn,O={bits:n.distbits},B=M(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,O),n.distbits=O.bits,B){e.msg="invalid distances set",n.mode=_;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(l>=6&&s>=258){e.next_out=a,e.avail_out=s,e.next_in=i,e.avail_in=l,n.hold=u,n.bits=f,x(e,h),a=e.next_out,o=e.output,s=e.avail_out,i=e.next_in,r=e.input,l=e.avail_in,u=n.hold,f=n.bits,n.mode===P&&(n.back=-1);break}for(n.back=0;v=(Q=n.lencode[u&(1<<n.lenbits)-1])>>>16&255,y=65535&Q,!((b=Q>>>24)<=f);){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}if(v&&!(240&v)){for(C=b,I=v,E=y;v=(Q=n.lencode[E+((u&(1<<C+I)-1)>>C)])>>>16&255,y=65535&Q,!(C+(b=Q>>>24)<=f);){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}u>>>=C,f-=C,n.back+=C}if(u>>>=b,f-=b,n.back+=b,n.length=y,0===v){n.mode=26;break}if(32&v){n.back=-1,n.mode=P;break}if(64&v){e.msg="invalid literal/length code",n.mode=_;break}n.extra=15&v,n.mode=22;case 22:if(n.extra){for(D=n.extra;f<D;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}n.length+=u&(1<<n.extra)-1,u>>>=n.extra,f-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;v=(Q=n.distcode[u&(1<<n.distbits)-1])>>>16&255,y=65535&Q,!((b=Q>>>24)<=f);){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}if(!(240&v)){for(C=b,I=v,E=y;v=(Q=n.distcode[E+((u&(1<<C+I)-1)>>C)])>>>16&255,y=65535&Q,!(C+(b=Q>>>24)<=f);){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}u>>>=C,f-=C,n.back+=C}if(u>>>=b,f-=b,n.back+=b,64&v){e.msg="invalid distance code",n.mode=_;break}n.offset=y,n.extra=15&v,n.mode=24;case 24:if(n.extra){for(D=n.extra;f<D;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}n.offset+=u&(1<<n.extra)-1,u>>>=n.extra,f-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=_;break}n.mode=25;case 25:if(0===s)break e;if(g=h-s,n.offset>g){if((g=n.offset-g)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=_;break}g>n.wnext?(g-=n.wnext,m=n.wsize-g):m=n.wnext-g,g>n.length&&(g=n.length),A=n.window}else A=o,m=a-n.offset,g=n.length;g>s&&(g=s),s-=g,n.length-=g;do{o[a++]=A[m++]}while(--g);0===n.length&&(n.mode=21);break;case 26:if(0===s)break e;o[a++]=n.length,s--,n.mode=21;break;case 27:if(n.wrap){for(;f<32;){if(0===l)break e;l--,u|=r[i++]<<f,f+=8}if(h-=s,e.total_out+=h,n.total+=h,h&&(e.adler=n.check=n.flags?S(n.check,o,h,a-h):w(n.check,o,h,a-h)),h=s,(n.flags?u:T(u))!==n.check){e.msg="incorrect data check",n.mode=_;break}u=0,f=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;f<32;){if(0===l)break e;l--,u+=r[i++]<<f,f+=8}if(u!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=_;break}u=0,f=0}n.mode=29;case 29:B=1;break e;case _:B=-3;break e;case 31:return-4;default:return R}return e.next_out=a,e.avail_out=s,e.next_in=i,e.avail_in=l,n.hold=u,n.bits=f,(n.wsize||h!==e.avail_out&&n.mode<_&&(n.mode<27||4!==t))&&j(e,e.output,e.next_out,h-e.avail_out)?(n.mode=31,-4):(p-=e.avail_in,h-=e.avail_out,e.total_in+=p,e.total_out+=h,n.total+=h,n.wrap&&h&&(e.adler=n.check=n.flags?S(n.check,o,h,e.next_out-h):w(n.check,o,h,e.next_out-h)),e.data_type=n.bits+(n.last?64:0)+(n.mode===P?128:0)+(20===n.mode||15===n.mode?256:0),(0===p&&0===h||4===t)&&0===B&&(B=-5),B)}function $(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?R:11===n.mode&&w(1,t,r,0)!==n.check?-3:j(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,0):R}const H={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function G(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var V=Object.prototype.toString;class W{constructor(e){if(!(this instanceof W))return new W(e);this.options=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)o(n,r)&&(e[r]=n[r])}}return e}({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(15&t.windowBits||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new G,this.strm.avail_out=0;var n,r,i,a=D(this.strm,t.windowBits);if(0!==a)throw new Error(H[a]);if(this.header=new y,n=this.strm,r=this.header,n&&n.state&&2&(i=n.state).wrap&&(i.head=r,r.done=!1),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=A(t.dictionary):"[object ArrayBuffer]"===V.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&0!==(a=$(this.strm,t.dictionary))))throw new Error(H[a])}push(e,t){var n,r,o,a,l,s,u=this.strm,f=this.options.chunkSize,p=this.options.dictionary,h=!1;if(this.ended)return!1;r=t===~~t?t:!0===t?4:0,"string"==typeof e?u.input=function(e){for(var t=new Uint8Array(e.length),n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t}(e):"[object ArrayBuffer]"===V.call(e)?u.input=new Uint8Array(e):u.input=e,u.next_in=0,u.avail_in=u.input.length;do{if(0===u.avail_out&&(u.output=d(f),u.next_out=0,u.avail_out=f),2===(n=z(u,0))&&p&&(s="string"==typeof p?A(p):"[object ArrayBuffer]"===V.call(p)?new Uint8Array(p):p,n=$(this.strm,s)),-5===n&&!0===h&&(n=0,h=!1),1!==n&&0!==n)return this.onEnd(n),this.ended=!0,!1;u.next_out&&(0!==u.avail_out&&1!==n&&(0!==u.avail_in||4!==r&&2!==r)||("string"===this.options.to?(o=v(u.output,u.next_out),a=u.next_out-o,l=b(u.output,o),u.next_out=a,u.avail_out=f-a,a&&c(u.output,u.output,o,a,0),this.onData(l)):this.onData(i(u.output,u.next_out)))),0===u.avail_in&&0===u.avail_out&&(h=!0)}while((u.avail_in>0||0===u.avail_out)&&1!==n);return 1===n&&(r=4),4===r?(n=function(e){if(!e||!e.state)return R;var t=e.state;return t.window&&(t.window=null),e.state=null,0}(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==r||(this.onEnd(0),u.avail_out=0,!0)}onData(e){this.chunks.push(e)}onEnd(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=u(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg}}var U=function(e,t){var n=new W(t);if(n.push(e,!0),n.err)throw n.msg||H[n.err];return n.result},Y={d:(e,t)=>{for(var n in t)Y.o(t,n)&&!Y.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},K={};Y.r(K),Y.d(K,{ChunkSliceResult:()=>q,DecompressResult:()=>J,__wbg_Error_8c4e43fe74559d73:()=>te,__wbg___wbindgen_throw_be289d5034ed271b:()=>ne,__wbg_set_wasm:()=>Ce,decompress_all:()=>X,decompress_block:()=>Z,decompress_chunk_slice:()=>ee});class q{static __wrap(e){e>>>=0;const t=Object.create(q.prototype);return t.__wbg_ptr=e,re.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,re.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_chunksliceresult_free(e,0)}get buffer(){try{const r=ve.__wbindgen_add_to_stack_pointer(-16);ve.chunksliceresult_buffer(r,this.__wbg_ptr);var e=se().getInt32(r+0,!0),t=se().getInt32(r+4,!0),n=ae(e,t).slice();return ve.__wbindgen_export(e,1*t,1),n}finally{ve.__wbindgen_add_to_stack_pointer(16)}}get cpositions(){try{const r=ve.__wbindgen_add_to_stack_pointer(-16);ve.chunksliceresult_cpositions(r,this.__wbg_ptr);var e=se().getInt32(r+0,!0),t=se().getInt32(r+4,!0),n=ie(e,t).slice();return ve.__wbindgen_export(e,8*t,8),n}finally{ve.__wbindgen_add_to_stack_pointer(16)}}get dpositions(){try{const r=ve.__wbindgen_add_to_stack_pointer(-16);ve.chunksliceresult_dpositions(r,this.__wbg_ptr);var e=se().getInt32(r+0,!0),t=se().getInt32(r+4,!0),n=ie(e,t).slice();return ve.__wbindgen_export(e,8*t,8),n}finally{ve.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(q.prototype[Symbol.dispose]=q.prototype.free);class J{static __wrap(e){e>>>=0;const t=Object.create(J.prototype);return t.__wbg_ptr=e,oe.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,oe.unregister(this),e}free(){const e=this.__destroy_into_raw();ve.__wbg_decompressresult_free(e,0)}get bytes_read(){return ve.decompressresult_bytes_read(this.__wbg_ptr)>>>0}get data(){try{const r=ve.__wbindgen_add_to_stack_pointer(-16);ve.decompressresult_data(r,this.__wbg_ptr);var e=se().getInt32(r+0,!0),t=se().getInt32(r+4,!0),n=ae(e,t).slice();return ve.__wbindgen_export(e,1*t,1),n}finally{ve.__wbindgen_add_to_stack_pointer(16)}}}function X(e){try{const i=ve.__wbindgen_add_to_stack_pointer(-16),a=ge(e,ve.__wbindgen_export2),l=we;ve.decompress_all(i,a,l);var t=se().getInt32(i+0,!0),n=se().getInt32(i+4,!0),r=se().getInt32(i+8,!0);if(se().getInt32(i+12,!0))throw me(r);var o=ae(t,n).slice();return ve.__wbindgen_export(t,1*n,1),o}finally{ve.__wbindgen_add_to_stack_pointer(16)}}function Z(e){try{const r=ve.__wbindgen_add_to_stack_pointer(-16),o=ge(e,ve.__wbindgen_export2),i=we;ve.decompress_block(r,o,i);var t=se().getInt32(r+0,!0),n=se().getInt32(r+4,!0);if(se().getInt32(r+8,!0))throw me(n);return J.__wrap(t)}finally{ve.__wbindgen_add_to_stack_pointer(16)}}function ee(e,t,n,r,o){try{const l=ve.__wbindgen_add_to_stack_pointer(-16),s=ge(e,ve.__wbindgen_export2),c=we;ve.decompress_chunk_slice(l,s,c,t,n,r,o);var i=se().getInt32(l+0,!0),a=se().getInt32(l+4,!0);if(se().getInt32(l+8,!0))throw me(a);return q.__wrap(i)}finally{ve.__wbindgen_add_to_stack_pointer(16)}}function te(e,t){return function(e){he===pe.length&&pe.push(pe.length+1);const t=he;return he=pe[t],pe[t]=e,t}(Error(ue(e,t)))}function ne(e,t){throw new Error(ue(e,t))}Symbol.dispose&&(J.prototype[Symbol.dispose]=J.prototype.free);const re="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_chunksliceresult_free(e>>>0,1)),oe="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ve.__wbg_decompressresult_free(e>>>0,1));function ie(e,t){return e>>>=0,(null!==ce&&0!==ce.byteLength||(ce=new Float64Array(ve.memory.buffer)),ce).subarray(e/8,e/8+t)}function ae(e,t){return e>>>=0,fe().subarray(e/1,e/1+t)}let le=null;function se(){return(null===le||!0===le.buffer.detached||void 0===le.buffer.detached&&le.buffer!==ve.memory.buffer)&&(le=new DataView(ve.memory.buffer)),le}let ce=null;function ue(e,t){return function(e,t){return ye+=t,ye>=be&&(Ae=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),Ae.decode(),ye=t),Ae.decode(fe().subarray(e,e+t))}(e>>>=0,t)}let de=null;function fe(){return null!==de&&0!==de.byteLength||(de=new Uint8Array(ve.memory.buffer)),de}let pe=new Array(128).fill(void 0);pe.push(void 0,null,!0,!1);let he=pe.length;function ge(e,t){const n=t(1*e.length,1)>>>0;return fe().set(e,n/1),we=e.length,n}function me(e){const t=function(e){return pe[e]}(e);return function(e){e<132||(pe[e]=he,he=e)}(e),t}let Ae=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Ae.decode();const be=2146435072;let ve,ye=0,we=0;function Ce(e){ve=e}let Se=null,xe=null;async function Ie(e){try{return await async function(e){return await async function(){return Se||(xe||(xe=(async()=>{const e=await fetch("data:application/wasm;base64,AGFzbQEAAAABfRFgAABgAAF/YAF/AGABfwF/YAJ/fwBgAn9/AX9gA39/fwBgA39/fwF/YAR/f39/AGAEf39/fwF/YAV/f39/fwBgBX9/f39/AX9gBn9/f39/fwBgBn9/f39/fwF/YAd/f39/f39/AX9gCH9/f39/f39/AX9gB39/f3x8fHwAAm4CES4vYmd6Zl93YXNtX2JnLmpzJ19fd2JnX19fd2JpbmRnZW5fdGhyb3dfYmUyODlkNTAzNGVkMjcxYgAEES4vYmd6Zl93YXNtX2JnLmpzHF9fd2JnX0Vycm9yXzhjNGU0M2ZlNzQ1NTlkNzMABQNragMODxAFC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ACy0BAX8jAEEQayIBJAAgASAAKQIANwIIIAFBCGpBxJLAACAAKAIIQQFBABAeAAsqAQF/IwBBEGsiAyQAIAMgAjYCDCADIAE2AgggAyAANgIEIANBBGoQZgALKgEBfyMAQRBrIgIkACACQQE7AQwgAiABNgIIIAIgADYCBCACQQRqED0ACykBAX8CQCAAKAIAIgFBgICAgHhyQYCAgIB4Rg0AIAAoAgQgAUEBEFYLCx4BAX8CQCAAKAIAIgJFDQAgASACIAAoAgQQUg8LAAsgAAJAIAEoAgBFDQAgAEGwk8AANgIEIAAgATYCAA8LAAsbAQF/EGogAEEEakEEEFkiASAANgIAIAFBBGoLIwEBfwJAQdiGwAAQMCIADQBBjIbAAEE6QciGwAAQPwALIAALFwACQCABQQlJDQAgASAAEA8PCyAAEAILHwACQCAAQYCAgIB4ckGAgICAeEYNACABIABBARBWCwscAQF/AkAgACgCACIBRQ0AIAAoAgQgAUEBEFYLCxUAIABBfGoiACAAKAIAQQRqQQQQVgsaAQF/IAEgAEEAKAKwnEAiAkEDIAIbEQQAAAsdACAAQQhqQQApAuiRQDcCACAAQQApAuCRQDcCAAsdACAAQQhqQQApAviRQDcCACAAQQApAvCRQDcCAAsUAAJAIABFDQAgACABEGAACxA7AAsVACABaUEBRiAAQYCAgIB4IAFrTXELEgACQCABRQ0AIAAgASACEFYLCxIAIAAgASACIAMgBEEAIAUQAwsVAAJAIABFDQAgACAAKAKoWhECAAsLFgAgACgCACABIAIgACgCBCgCDBEHAAsNACAAIAEgAiADEAcPCxAAIAEgACgCACAAKAIEEFILEwAgAEGwk8AANgIEIAAgATYCAAsLACAAIAEgAhAvDwsKACAAIAEQaRoACwsAIAAjAGokACMACwkAIAAgARBGDwsJACAAIAEQNQ8LDABBhITAAEEbEFwACwkAIAAgARBiAAsNAEGfhMAAQc8AEFwACw0AIABB4JLAACABEAsLDAAgACABKQIANwMACwkAIAEgABBKAAsNACABQayYwABBGBAKCwgAIAAgARAACwgAIAAgARABCwkAIAAoAgAQUQsHACA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8CXByb2R1Y2VycwEMcHJvY2Vzc2VkLWJ5AgZ3YWxydXMGMC4yNC40DHdhc20tYmluZGdlbgcwLjIuMTA4"),t=await e.arrayBuffer(),{instance:n}=await WebAssembly.instantiate(t,{"./bgzf_wasm_bg.js":K});return Se=n.exports,Ce(Se),Se})()),xe)}(),X(e)}(e)}catch(n){if(/invalid bgzf header/.exec(`${n}`)){if((t=e).length>=2&&31===t[0]&&139===t[1])return async function(e){if("undefined"!=typeof DecompressionStream){const t=new DecompressionStream("gzip"),n=t.writable.getWriter(),r=n.write(e).then(()=>n.close()),o=[],i=t.readable.getReader();for(;;){const{done:e,value:t}=await i.read();if(e)break;o.push(t)}await r;const a=o.reduce((e,t)=>e+t.length,0),l=new Uint8Array(a);let s=0;for(const e of o)l.set(e,s),s+=e.length;return l}return U(e,void 0)}(e);throw new Error("problem decompressing block: not a valid bgzf or gzip block")}if(/invalid gzip header/.exec(`${n}`))throw new Error("problem decompressing block: incorrect gzip header check");throw n}var t}var Ee=n(2163),ke=n(8092),Be=n(8181),Me=n(5205);new WeakMap,new WeakMap,new WeakMap;const Re=new WeakMap;function Pe(e){const t=Re.get(e);if(t&&(0,Ee._n)(t))return t;try{const t=function(e,t){return function(e,t){if(!(0,Ee.p7)(e))throw new Error("node does not have parent");let n=(0,Ee.PA)(e);for(;n&&(0,Ee._n)(n);){if(t(n))return n;if(!(0,Ee.p7)(n))break;n=(0,Ee.PA)(n)}throw new Error("no matching node found")}(e,t)}(e,Me.Y$);return Re.set(e,t),t}catch(e){throw new Error("no session model found!")}}function _e(e,t,n){return e<t?t:e>n?n:e}Math.PI,Math.PI;const Te=/electron/i.test("undefined"!=typeof navigator?navigator.userAgent:"");"undefined"==typeof jest&&"undefined"!=typeof window&&window.requestIdleCallback&&window.requestIdleCallback;const Oe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2765625,.3546875,.5546875,.5546875,.8890625,.665625,.190625,.3328125,.3328125,.3890625,.5828125,.2765625,.3328125,.2765625,.3015625,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.2765625,.2765625,.584375,.5828125,.584375,.5546875,1.0140625,.665625,.665625,.721875,.721875,.665625,.609375,.7765625,.721875,.2765625,.5,.665625,.5546875,.8328125,.721875,.7765625,.665625,.7765625,.721875,.665625,.609375,.721875,.665625,.94375,.665625,.665625,.609375,.2765625,.3546875,.2765625,.4765625,.5546875,.3328125,.5546875,.5546875,.5,.5546875,.5546875,.2765625,.5546875,.5546875,.221875,.240625,.5,.221875,.8328125,.5546875,.5546875,.5546875,.5546875,.3328125,.5,.2765625,.5546875,.5,.721875,.5,.5,.5,.3546875,.259375,.353125,.5890625];function De(e,t=10){const n=String(e);let r=0;for(let e=0,t=n.length;e<t;e++)r+=Oe[n.charCodeAt(e)]??.5279276315789471;return r*t}async function Qe(e,t,n){t?.(e);const r=await n();return t?.(""),r}function Ne(e,t,n=!0){const[o,i]=(0,r.useState)(()=>{if("undefined"==typeof window||!n)return t;try{const n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return console.error(e),t}});return[o,t=>{try{const r=t instanceof Function?t(o):t;i(r),"undefined"!=typeof window&&n&&window.localStorage.setItem(e,JSON.stringify(r))}catch(e){console.error(e)}}]}function Fe(e){return Ue(e)?(0,Me.C1)(e)?function(e){const{uri:t,baseUri:n=""}=e;let r;try{r=new URL(t,n).href}catch(e){r=t}return r}(e):JSON.stringify(e):String(e)}function Le(e){return e.replaceAll(/(^|[\s\n]|<[A-Za-z]*\/?>)((?:https?|ftp):\/\/[-A-Z0-9+\u0026\u2019@#/%?=()~_|!:,.;]*[-A-Z0-9+\u0026@#/%=~()_|])/gi,"$1<a href='$2' target=\"_blank\">$2</a>")}function je(e,t){const{padding:n=30,minWidth:r=80,fontSize:o=12,maxWidth:i=1e3,stripHTML:a=!1}=t||{};return ze(e.map(e=>Fe(e)).map(e=>a?function(e){let t="",n=!1;for(let r=0,o=e.length;r<o;r++){const o=e[r];"<"===o?n=!0:">"===o?n=!1:n||(t+=o)}return t}(e):e).map(e=>De(e,o)).map(e=>Math.min(Math.max(e+n,r),i)))}function ze(e,t=Number.NEGATIVE_INFINITY){let n=t;for(const t of e)n=Math.max(t,n);return n}function $e(e){let t=0;for(const n of e)t+=n;return t}function He(e,t){const n={};for(const r of e){const e=t(r);n[e]||(n[e]=[]),n[e].push(r)}return n}function Ge(e){return null!=e}function Ve(e){const t=document.createElement("div");return(0,ke.flushSync)(()=>{(0,Be.createRoot)(t).render(e)}),t.innerHTML.replaceAll(/\brgba\((.+?),[^,]+?\)/g,"rgb($1)")}async function We(e,t){const n=await async function(e,t={}){const{statusCallback:n=()=>{}}=t,r=await Qe("Downloading file",n,()=>e.readFile(t));return function(e){return 31===e[0]&&139===e[1]&&8===e[2]}(r)?await Qe("Unzipping",n,()=>Ie(r)):r}(e,t);if(n.length>536870888)throw new Error("Data exceeds maximum string length (512MB)");return new TextDecoder("utf8",{fatal:!0}).decode(n)}function Ue(e){return"object"==typeof e&&null!==e}function Ye(e,t){return Boolean(JSON.parse((n=e,("undefined"!=typeof localStorage?localStorage.getItem(n):void 0)||JSON.stringify(t))));var n}function Ke(e,t){var n,r;n=e,r=JSON.stringify(t),"undefined"!=typeof localStorage&&localStorage.setItem(n,r)}},7536(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(9081),o=n(1203),i=n(5321),a=n(2658),l=n(9191),s=n(8467),c=n(8525);const u={entering:{opacity:1},entered:{opacity:1}},d=r.forwardRef(function(e,t){const n=(0,a.A)(),d={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:f,appear:p=!0,children:h,easing:g,in:m,onEnter:A,onEntered:b,onEntering:v,onExit:y,onExited:w,onExiting:C,style:S,timeout:x=d,TransitionComponent:I=o.Ay,...E}=e,k=r.useRef(null),B=(0,s.A)(k,(0,i.A)(h),t),M=e=>t=>{if(e){const n=k.current;void 0===t?e(n):e(n,t)}},R=M(v),P=M((e,t)=>{(0,l.q)(e);const r=(0,l.c)({style:S,timeout:x,easing:g},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),A&&A(e,t)}),_=M(b),T=M(C),O=M(e=>{const t=(0,l.c)({style:S,timeout:x,easing:g},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),y&&y(e)}),D=M(w);return(0,c.jsx)(I,{appear:p,in:m,nodeRef:k,onEnter:P,onEntered:_,onEntering:R,onExit:O,onExited:D,onExiting:T,addEndListener:e=>{f&&f(k.current,e)},timeout:x,...E,children:(e,{ownerState:t,...n})=>r.cloneElement(h,{style:{opacity:0,visibility:"exited"!==e||m?void 0:"hidden",...u[e],...S,...h.props.style},ref:B,...n})})})},7579(e,t,n){"use strict";n.d(t,{A:()=>B});var r=n(9081),o=n(851),i=n(2189),a=n(7932),l=n(8394),s=n(8525);const c=(0,l.A)((0,s.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"),u=(0,l.A)((0,s.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"),d=(0,l.A)((0,s.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");var f=n(9025),p=n(4941),h=n(8175),g=n(4819);function m(e){return(0,g.Ay)("MuiCheckbox",e)}const A=(0,h.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);var b=n(361),v=n(7934),y=n(3955),w=n(8212),C=n(3738),S=n(616);const x=(0,b.Ay)(a.A,{shouldForwardProp:e=>(0,p.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${(0,f.A)(n.size)}`],"default"!==n.color&&t[`color${(0,f.A)(n.color)}`]]}})((0,v.A)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter((0,y.A)()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter((0,y.A)()).map(([t])=>({props:{color:t},style:{[`&.${A.checked}, &.${A.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${A.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),I=(0,s.jsx)(u,{}),E=(0,s.jsx)(c,{}),k=(0,s.jsx)(d,{}),B=r.forwardRef(function(e,t){const n=(0,w.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:a=I,color:l="primary",icon:c=E,indeterminate:u=!1,indeterminateIcon:d=k,inputProps:p,size:h="medium",disableRipple:g=!1,className:A,slots:b={},slotProps:v={},...y}=n,B=u?d:c,M=u?d:a,R={...n,disableRipple:g,color:l,indeterminate:u,size:h},P=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${(0,f.A)(r)}`,`size${(0,f.A)(o)}`]},l=(0,i.A)(a,m,t);return{...t,...l}})(R),_=v.input??p,[T,O]=(0,S.A)("root",{ref:t,elementType:x,className:(0,o.A)(P.root,A),shouldForwardComponentProp:!0,externalForwardedProps:{slots:b,slotProps:v,...y},ownerState:R,additionalProps:{type:"checkbox",icon:r.cloneElement(B,{fontSize:B.props.fontSize??h}),checkedIcon:r.cloneElement(M,{fontSize:M.props.fontSize??h}),disableRipple:g,slots:b,slotProps:{input:(0,C.A)("function"==typeof _?_(R):_,{"data-indeterminate":u})}}});return(0,s.jsx)(T,{...O,classes:P})})},7668(e,t,n){"use strict";n.d(t,{A:()=>_});var r=n(9081),o=n(851),i=n(2189),a=n(7932),l=n(8394),s=n(8525);const c=(0,l.A)((0,s.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),u=(0,l.A)((0,s.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");var d=n(4941),f=n(361),p=n(7934);const h=(0,f.Ay)("span",{name:"MuiRadioButtonIcon",shouldForwardProp:d.A})({position:"relative",display:"flex"}),g=(0,f.Ay)(c,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),m=(0,f.Ay)(u,{name:"MuiRadioButtonIcon"})((0,p.A)(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]}))),A=function(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o={...e,checked:t};return(0,s.jsxs)(h,{className:n.root,ownerState:o,children:[(0,s.jsx)(g,{fontSize:r,className:n.background,ownerState:o}),(0,s.jsx)(m,{fontSize:r,className:n.dot,ownerState:o})]})};var b=n(9025);const v=n(8499).A;var y=n(8659),w=n(9173),C=n(8175),S=n(4819);function x(e){return(0,S.Ay)("MuiRadio",e)}const I=(0,C.A)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]);var E=n(3955),k=n(616),B=n(8212);const M=(0,f.Ay)(a.A,{shouldForwardProp:e=>(0,d.A)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${(0,b.A)(n.size)}`],t[`color${(0,b.A)(n.color)}`]]}})((0,p.A)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${I.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter((0,E.A)()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter((0,E.A)()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${I.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),R=(0,s.jsx)(A,{checked:!0}),P=(0,s.jsx)(A,{}),_=r.forwardRef(function(e,t){const n=(0,B.b)({props:e,name:"MuiRadio"}),{checked:a,checkedIcon:l=R,color:c="primary",icon:u=P,name:d,onChange:f,size:p="medium",className:h,disabled:g,disableRipple:m=!1,slots:A={},slotProps:C={},inputProps:S,...I}=n,E=(0,y.A)();let _=g;E&&void 0===_&&(_=E.disabled),_??=!1;const T={...n,disabled:_,disableRipple:m,color:c,size:p},O=(e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${(0,b.A)(n)}`,"medium"!==r&&`size${(0,b.A)(r)}`]};return{...t,...(0,i.A)(o,x,t)}})(T),D=r.useContext(w.A);let Q=a;const N=v(f,D&&D.onChange);let F=d;var L,j;D&&(void 0===Q&&(L=D.value,Q="object"==typeof(j=n.value)&&null!==j?L===j:String(L)===String(j)),void 0===F&&(F=D.name));const z=C.input??S,[$,H]=(0,k.A)("root",{ref:t,elementType:M,className:(0,o.A)(O.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:A,slotProps:C,...I},getSlotProps:e=>({...e,onChange:(t,...n)=>{e.onChange?.(t,...n),N(t,...n)}}),ownerState:T,additionalProps:{type:"radio",icon:r.cloneElement(u,{fontSize:u.props.fontSize??p}),checkedIcon:r.cloneElement(l,{fontSize:l.props.fontSize??p}),disabled:_,name:F,checked:Q,slots:A,slotProps:{input:"function"==typeof z?z(T):z}}});return(0,s.jsx)($,{...H,classes:O})})},7733(e,t,n){"use strict";n.d(t,{A:()=>S});var r=n(9081),o=n(851),i=n(2189),a=n(4941),l=n(361),s=n(7934),c=n(8212),u=n(2001),d=n(4425),f=n(9411),p=n(8467),h=n(3588),g=n(2818),m=n(9150),A=n(8175),b=n(4819);function v(e){return(0,b.Ay)("MuiMenuItem",e)}const y=(0,A.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var w=n(8525);const C=(0,l.Ay)(d.A,{shouldForwardProp:e=>(0,a.A)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((0,s.A)(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${y.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${y.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${y.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${y.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${y.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${h.A.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${h.A.inset}`]:{marginLeft:52},[`& .${m.A.root}`]:{marginTop:0,marginBottom:0},[`& .${m.A.inset}`]:{paddingLeft:36},[`& .${g.A.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${g.A.root} svg`]:{fontSize:"1.25rem"}}}]}))),S=r.forwardRef(function(e,t){const n=(0,c.b)({props:e,name:"MuiMenuItem"}),{autoFocus:a=!1,component:l="li",dense:s=!1,divider:d=!1,disableGutters:h=!1,focusVisibleClassName:g,role:m="menuitem",tabIndex:A,className:b,...y}=n,S=r.useContext(u.A),x=r.useMemo(()=>({dense:s||S.dense||!1,disableGutters:h}),[S.dense,s,h]),I=r.useRef(null);(0,f.A)(()=>{a&&I.current&&I.current.focus()},[a]);const E={...n,dense:x.dense,divider:d,disableGutters:h},k=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:l}=e,s={root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},c=(0,i.A)(s,v,l);return{...l,...c}})(n),B=(0,p.A)(I,t);let M;return n.disabled||(M=void 0!==A?A:-1),(0,w.jsx)(u.A.Provider,{value:x,children:(0,w.jsx)(C,{ref:B,role:m,tabIndex:M,component:l,focusVisibleClassName:(0,o.A)(k.focusVisible,g),className:(0,o.A)(k.root,b),...y,ownerState:E,classes:k})})})},7752(e,t,n){"use strict";n.d(t,{Cg:()=>p,Me:()=>l,Nd:()=>g,X4:()=>f,Y9:()=>b,YL:()=>c,a:()=>m,e$:()=>h,eM:()=>d,j4:()=>A});var r=n(399),o=n(8135);function i(e,t=0,n=1){return(0,o.A)(e,t,n)}function a(e){if(e.type)return e;if("#"===e.charAt(0))return a(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error((0,r.A)(9,e));let o,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),o=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error((0,r.A)(10,o))}else i=i.split(",");return i=i.map(e=>parseFloat(e)),{type:n,values:i,colorSpace:o}}const l=(e,t)=>{try{return(e=>{const t=a(e);return t.values.slice(0,3).map((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e).join(" ")})(e)}catch(t){return e}};function s(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function c(e){e=a(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),l=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),s({type:c,values:u})}function u(e){let t="hsl"===(e=a(e)).type||"hsla"===e.type?a(c(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function d(e,t){const n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function f(e,t){return e=a(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function p(e,t,n){try{return f(e,t)}catch(t){return e}}function h(e,t){if(e=a(e),t=i(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function g(e,t,n){try{return h(e,t)}catch(t){return e}}function m(e,t){if(e=a(e),t=i(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}function A(e,t,n){try{return m(e,t)}catch(t){return e}}function b(e,t,n){try{return function(e,t=.15){return u(e)>.5?h(e,t):m(e,t)}(e,t)}catch(t){return e}}},7817(e,t,n){"use strict";n.d(t,{A:()=>r});const r=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}},7872(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(9081),o=n(851),i=n(2189),a=n(361),l=n(7934),s=n(8212),c=n(9025),u=n(8175),d=n(4819);function f(e){return(0,d.Ay)("MuiListSubheader",e)}(0,u.A)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var p=n(8525);const h=(0,a.Ay)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,c.A)(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((0,l.A)(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),g=r.forwardRef(function(e,t){const n=(0,s.b)({props:e,name:"MuiListSubheader"}),{className:r,color:a="default",component:l="li",disableGutters:u=!1,disableSticky:d=!1,inset:g=!1,...m}=n,A={...n,color:a,component:l,disableGutters:u,disableSticky:d,inset:g},b=(e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:a}=e,l={root:["root","default"!==n&&`color${(0,c.A)(n)}`,!r&&"gutters",o&&"inset",!a&&"sticky"]};return(0,i.A)(l,f,t)})(A);return(0,p.jsx)(h,{as:l,className:(0,o.A)(b.root,r),ref:t,ownerState:A,...m})});g&&(g.muiSkipListHighlight=!0);const m=g},7881(e,t,n){var r=n(2738),o=n(3016),i=n(4972).C,a=n(5781),l=n(6360).g;function s(e,t){var n=e;return"string"==typeof e&&(n=r.parseSourceMapInput(e)),null!=n.sections?new p(n,t):new c(n,t)}function c(e,t){var n=e;"string"==typeof e&&(n=r.parseSourceMapInput(e));var o=r.getArg(n,"version"),a=r.getArg(n,"sources"),l=r.getArg(n,"names",[]),s=r.getArg(n,"sourceRoot",null),c=r.getArg(n,"sourcesContent",null),u=r.getArg(n,"mappings"),d=r.getArg(n,"file",null);if(o!=this._version)throw new Error("Unsupported version: "+o);s&&(s=r.normalize(s)),a=a.map(String).map(r.normalize).map(function(e){return s&&r.isAbsolute(s)&&r.isAbsolute(e)?r.relative(s,e):e}),this._names=i.fromArray(l.map(String),!0),this._sources=i.fromArray(a,!0),this._absoluteSources=this._sources.toArray().map(function(e){return r.computeSourceURL(s,e,t)}),this.sourceRoot=s,this.sourcesContent=c,this._mappings=u,this._sourceMapURL=t,this.file=d}function u(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}s.fromSourceMap=function(e,t){return c.fromSourceMap(e,t)},s.prototype._version=3,s.prototype.__generatedMappings=null,Object.defineProperty(s.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),s.prototype.__originalMappings=null,Object.defineProperty(s.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),s.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},s.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},s.GENERATED_ORDER=1,s.ORIGINAL_ORDER=2,s.GREATEST_LOWER_BOUND=1,s.LEAST_UPPER_BOUND=2,s.prototype.eachMapping=function(e,t,n){var o,i=t||null;switch(n||s.GENERATED_ORDER){case s.GENERATED_ORDER:o=this._generatedMappings;break;case s.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var a=this.sourceRoot,l=e.bind(i),c=this._names,u=this._sources,d=this._sourceMapURL,f=0,p=o.length;f<p;f++){var h=o[f],g=null===h.source?null:u.at(h.source);null!==g&&(g=r.computeSourceURL(a,g,d)),l({source:g,generatedLine:h.generatedLine,generatedColumn:h.generatedColumn,originalLine:h.originalLine,originalColumn:h.originalColumn,name:null===h.name?null:c.at(h.name)})}},s.prototype.allGeneratedPositionsFor=function(e){var t=r.getArg(e,"line"),n={source:r.getArg(e,"source"),originalLine:t,originalColumn:r.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],a=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,o.LEAST_UPPER_BOUND);if(a>=0){var l=this._originalMappings[a];if(void 0===e.column)for(var s=l.originalLine;l&&l.originalLine===s;)i.push({line:r.getArg(l,"generatedLine",null),column:r.getArg(l,"generatedColumn",null),lastColumn:r.getArg(l,"lastGeneratedColumn",null)}),l=this._originalMappings[++a];else for(var c=l.originalColumn;l&&l.originalLine===t&&l.originalColumn==c;)i.push({line:r.getArg(l,"generatedLine",null),column:r.getArg(l,"generatedColumn",null),lastColumn:r.getArg(l,"lastGeneratedColumn",null)}),l=this._originalMappings[++a]}return i},t.SourceMapConsumer=s,c.prototype=Object.create(s.prototype),c.prototype.consumer=s,c.prototype._findSourceIndex=function(e){var t,n=e;if(null!=this.sourceRoot&&(n=r.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},c.fromSourceMap=function(e,t){var n=Object.create(c.prototype),o=n._names=i.fromArray(e._names.toArray(),!0),a=n._sources=i.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=t,n._absoluteSources=n._sources.toArray().map(function(e){return r.computeSourceURL(n.sourceRoot,e,t)});for(var s=e._mappings.toArray().slice(),d=n.__generatedMappings=[],f=n.__originalMappings=[],p=0,h=s.length;p<h;p++){var g=s[p],m=new u;m.generatedLine=g.generatedLine,m.generatedColumn=g.generatedColumn,g.source&&(m.source=a.indexOf(g.source),m.originalLine=g.originalLine,m.originalColumn=g.originalColumn,g.name&&(m.name=o.indexOf(g.name)),f.push(m)),d.push(m)}return l(n.__originalMappings,r.compareByOriginalPositions),n},c.prototype._version=3,Object.defineProperty(c.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});const d=r.compareByGeneratedPositionsDeflatedNoLine;function f(e,t){let n=e.length,r=e.length-t;if(!(r<=1))if(2==r){let n=e[t],r=e[t+1];d(n,r)>0&&(e[t]=r,e[t+1]=n)}else if(r<20)for(let r=t;r<n;r++)for(let n=r;n>t;n--){let t=e[n-1],r=e[n];if(d(t,r)<=0)break;e[n-1]=r,e[n]=t}else l(e,d,t)}function p(e,t){var n=e;"string"==typeof e&&(n=r.parseSourceMapInput(e));var o=r.getArg(n,"version"),a=r.getArg(n,"sections");if(o!=this._version)throw new Error("Unsupported version: "+o);this._sources=new i,this._names=new i;var l={line:-1,column:0};this._sections=a.map(function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var n=r.getArg(e,"offset"),o=r.getArg(n,"line"),i=r.getArg(n,"column");if(o<l.line||o===l.line&&i<l.column)throw new Error("Section offsets must be ordered and non-overlapping.");return l=n,{generatedOffset:{generatedLine:o+1,generatedColumn:i+1},consumer:new s(r.getArg(e,"map"),t)}})}c.prototype._parseMappings=function(e,t){var n,o,i,s,c=1,d=0,p=0,h=0,g=0,m=0,A=e.length,b=0,v={},y=[],w=[];let C=0;for(;b<A;)if(";"===e.charAt(b))c++,b++,d=0,f(w,C),C=w.length;else if(","===e.charAt(b))b++;else{for((n=new u).generatedLine=c,i=b;i<A&&!this._charIsMappingSeparator(e,i);i++);for(e.slice(b,i),o=[];b<i;)a.decode(e,b,v),s=v.value,b=v.rest,o.push(s);if(2===o.length)throw new Error("Found a source, but no line and column");if(3===o.length)throw new Error("Found a source and line, but no column");if(n.generatedColumn=d+o[0],d=n.generatedColumn,o.length>1&&(n.source=g+o[1],g+=o[1],n.originalLine=p+o[2],p=n.originalLine,n.originalLine+=1,n.originalColumn=h+o[3],h=n.originalColumn,o.length>4&&(n.name=m+o[4],m+=o[4])),w.push(n),"number"==typeof n.originalLine){let e=n.source;for(;y.length<=e;)y.push(null);null===y[e]&&(y[e]=[]),y[e].push(n)}}f(w,C),this.__generatedMappings=w;for(var S=0;S<y.length;S++)null!=y[S]&&l(y[S],r.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...y)},c.prototype._findMapping=function(e,t,n,r,i,a){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return o.search(e,t,i,a)},c.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},c.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",r.compareByGeneratedPositionsDeflated,r.getArg(e,"bias",s.GREATEST_LOWER_BOUND));if(n>=0){var o=this._generatedMappings[n];if(o.generatedLine===t.generatedLine){var i=r.getArg(o,"source",null);null!==i&&(i=this._sources.at(i),i=r.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var a=r.getArg(o,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:r.getArg(o,"originalLine",null),column:r.getArg(o,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e})},c.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var o,i=e;if(null!=this.sourceRoot&&(i=r.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(o=r.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if("file"==o.scheme&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!o.path||"/"==o.path)&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(t)return null;throw new Error('"'+i+'" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(e){var t=r.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var n={source:t,originalLine:r.getArg(e,"line"),originalColumn:r.getArg(e,"column")},o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,r.getArg(e,"bias",s.GREATEST_LOWER_BOUND));if(o>=0){var i=this._originalMappings[o];if(i.source===n.source)return{line:r.getArg(i,"generatedLine",null),column:r.getArg(i,"generatedColumn",null),lastColumn:r.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},p.prototype=Object.create(s.prototype),p.prototype.constructor=s,p.prototype._version=3,Object.defineProperty(p.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),p.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=o.search(t,this._sections,function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:t.generatedLine-(i.generatedOffset.generatedLine-1),column:t.generatedColumn-(i.generatedOffset.generatedLine===t.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},p.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},p.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r||""===r)return r}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},p.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(-1!==n.consumer._findSourceIndex(r.getArg(e,"source"))){var o=n.consumer.generatedPositionFor(e);if(o)return{line:o.line+(n.generatedOffset.generatedLine-1),column:o.column+(n.generatedOffset.generatedLine===o.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},p.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var o=this._sections[n],i=o.consumer._generatedMappings,a=0;a<i.length;a++){var s=i[a],c=o.consumer._sources.at(s.source);null!==c&&(c=r.computeSourceURL(o.consumer.sourceRoot,c,this._sourceMapURL)),this._sources.add(c),c=this._sources.indexOf(c);var u=null;s.name&&(u=o.consumer._names.at(s.name),this._names.add(u),u=this._names.indexOf(u));var d={source:c,generatedLine:s.generatedLine+(o.generatedOffset.generatedLine-1),generatedColumn:s.generatedColumn+(o.generatedOffset.generatedLine===s.generatedLine?o.generatedOffset.generatedColumn-1:0),originalLine:s.originalLine,originalColumn:s.originalColumn,name:u};this.__generatedMappings.push(d),"number"==typeof d.originalLine&&this.__originalMappings.push(d)}l(this.__generatedMappings,r.compareByGeneratedPositionsDeflated),l(this.__originalMappings,r.compareByOriginalPositions)}},7886(e,t,n){"use strict";function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function o(e,t=!1){return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function i(e){return e.startAdornment}n.d(t,{gr:()=>i,lq:()=>o})},7932(e,t,n){"use strict";n.d(t,{A:()=>b});var r=n(9081),o=n(2189),i=n(9025),a=n(4941),l=n(361),s=n(4030),c=n(8659),u=n(4425),d=n(8175),f=n(4819);function p(e){return(0,f.Ay)("PrivateSwitchBase",e)}(0,d.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var h=n(616),g=n(8525);const m=(0,l.Ay)(u.A,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>"start"===e&&"small"!==t.size,style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>"end"===e&&"small"!==t.size,style:{marginRight:-12}}]}),A=(0,l.Ay)("input",{name:"MuiSwitchBase",shouldForwardProp:a.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),b=r.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:a,defaultChecked:l,disabled:u,disableFocusRipple:d=!1,edge:f=!1,icon:b,id:v,inputProps:y,inputRef:w,name:C,onBlur:S,onChange:x,onFocus:I,readOnly:E,required:k=!1,tabIndex:B,type:M,value:R,slots:P={},slotProps:_={},...T}=e,[O,D]=(0,s.A)({controlled:r,default:Boolean(l),name:"SwitchBase",state:"checked"}),Q=(0,c.A)();let N=u;Q&&void 0===N&&(N=Q.disabled);const F="checkbox"===M||"radio"===M,L={...e,checked:O,disabled:N,disableFocusRipple:d,edge:f},j=(e=>{const{classes:t,checked:n,disabled:r,edge:a}=e,l={root:["root",n&&"checked",r&&"disabled",a&&`edge${(0,i.A)(a)}`],input:["input"]};return(0,o.A)(l,p,t)})(L),z={slots:P,slotProps:{input:y,..._}},[$,H]=(0,h.A)("root",{ref:t,elementType:m,className:j.root,shouldForwardComponentProp:!0,externalForwardedProps:{...z,component:"span",...T},getSlotProps:e=>({...e,onFocus:t=>{e.onFocus?.(t),(e=>{I&&I(e),Q&&Q.onFocus&&Q.onFocus(e)})(t)},onBlur:t=>{e.onBlur?.(t),(e=>{S&&S(e),Q&&Q.onBlur&&Q.onBlur(e)})(t)}}),ownerState:L,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:N,role:void 0,tabIndex:null}}),[G,V]=(0,h.A)("input",{ref:w,elementType:A,className:j.input,externalForwardedProps:z,getSlotProps:e=>({...e,onChange:t=>{e.onChange?.(t),(e=>{if(e.nativeEvent.defaultPrevented||E)return;const t=e.target.checked;D(t),x&&x(e,t)})(t)}}),ownerState:L,additionalProps:{autoFocus:n,checked:r,defaultChecked:l,disabled:N,id:F?v:void 0,name:C,readOnly:E,required:k,tabIndex:B,type:M,..."checkbox"===M&&void 0===R?{}:{value:R}}});return(0,g.jsxs)($,{...H,children:[(0,g.jsx)(G,{...V}),O?a:b]})})},7934(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(4715);const o={theme:void 0},i=function(e){let t,n;return function(i){let a=t;return void 0!==a&&i.theme===n||(o.theme=i.theme,a=(0,r.A)(e(o)),t=a,n=i.theme),a}}},7971(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(2426),o=n(8525);function i(e){const{styles:t,defaultTheme:n={}}=e,i="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return(0,o.jsx)(r.mL,{styles:i})}},7993(e,t,n){"use strict";n.d(t,{t:()=>i});var r=n(8525),o=n(9081);class i extends o.Component{constructor(e){super(e),this.state={error:void 0}}componentDidCatch(e,t){console.error("ErrorBoundary caught an error:",e,t),this.setState({error:e})}render(){return this.state.error?(0,r.jsx)(this.props.FallbackComponent,{error:this.state.error}):this.props.children}}},8018(e){"use strict";var t=/["'&<>]/;e.exports=function(e){var n,r=""+e,o=t.exec(r);if(!o)return r;var i="",a=0,l=0;for(a=o.index;a<r.length;a++){switch(r.charCodeAt(a)){case 34:n="&quot;";break;case 38:n="&amp;";break;case 39:n="&#39;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;default:continue}l!==a&&(i+=r.substring(l,a)),l=a+1,i+=n}return l!==a?i+r.substring(l,a):i}},8019(e,t,n){"use strict";function r(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function l(n,r,i,a){var l=r&&r.prototype instanceof c?r:c,u=Object.create(l.prototype);return o(u,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,a=0,l=e,f.n=n,s}};function p(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(a=0,f.v=r,f.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(f.n=-1),p(a,l)):f.n=l:f.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,i,a),!0),u}var s={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var f=[][i]?t(t([][i]())):(o(t={},i,function(){return this}),t),p=d.prototype=c.prototype=Object.create(f);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,o(e,a,"GeneratorFunction")),e.prototype=Object.create(p),e}return u.prototype=d,o(p,"constructor",d),o(d,"constructor",u),u.displayName="GeneratorFunction",o(d,a,"GeneratorFunction"),o(p),o(p,a,"Generator"),o(p,i,function(){return this}),o(p,"toString",function(){return"[object Generator]"}),(r=function(){return{w:l,m:h}})()}function o(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}o=function(e,t,n,r){function a(t,n){o(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},o(e,t,n,r)}function i(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function a(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function l(e){i(a,r,o,l,s,"next",e)}function s(e){i(a,r,o,l,s,"throw",e)}l(void 0)})}}function l(e,t){return s.apply(this,arguments)}function s(){return(s=a(r().m(function e(t,n){var o,i,a,l;return r().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch(t,n);case 1:if((o=e.v).ok){e.n=3;break}return i=Error,a="HTTP ".concat(o.status," fetching ").concat(t," "),e.n=2,o.text();case 2:throw l=a.concat.call(a,e.v),new i(l);case 3:return e.a(2,o)}},e)}))).apply(this,arguments)}function c(e,t){return u.apply(this,arguments)}function u(){return(u=a(r().m(function e(t,n){var o;return r().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,l(t,n);case 1:return o=e.v,e.a(2,o.text())}},e)}))).apply(this,arguments)}function d(e,t){return f.apply(this,arguments)}function f(){return(f=a(r().m(function e(t,n){var o;return r().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,l(t,n);case 1:return o=e.v,e.a(2,o.json())}},e)}))).apply(this,arguments)}function p(e){return new Promise(function(t){return setTimeout(t,e)})}n.d(t,{jT:()=>d,wR:()=>p,y1:()=>c})},8049(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(8394),o=n(8525);const i=(0,r.A)((0,o.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown")},8092(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(1466)},8109(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(9081),o=n(8163);const i=function(e){const t=r.useRef(e);return(0,o.A)(()=>{t.current=e}),r.useRef((...e)=>(0,t.current)(...e)).current}},8111(e,t,n){"use strict";n.d(t,{A:()=>A});var r=n(9081),o=n(851),i=n(2189),a=n(7752),l=n(361),s=n(2658),c=n(7934),u=n(8212),d=n(2072),f=n(8175),p=n(4819);function h(e){return(0,p.Ay)("MuiPaper",e)}(0,f.A)("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"]);var g=n(8525);const m=(0,l.Ay)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((0,c.A)(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),A=r.forwardRef(function(e,t){const n=(0,u.b)({props:e,name:"MuiPaper"}),r=(0,s.A)(),{className:l,component:c="div",elevation:f=1,square:p=!1,variant:A="elevation",...b}=n,v={...n,component:c,elevation:f,square:p,variant:A},y=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]};return(0,i.A)(a,h,o)})(v);return(0,g.jsx)(m,{as:c,ownerState:v,className:(0,o.A)(y.root,l),ref:t,...b,style:{..."elevation"===A&&{"--Paper-shadow":(r.vars||r).shadows[f],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[f]},...!r.vars&&"dark"===r.palette.mode&&{"--Paper-overlay":`linear-gradient(${(0,a.X4)("#fff",(0,d.A)(f))}, ${(0,a.X4)("#fff",(0,d.A)(f))})`}},...b.style}})})},8135(e,t,n){"use strict";n.d(t,{A:()=>r});const r=function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}},8163(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(9081);const o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},8175(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(4819);function o(e,t,n="Mui"){const o={};return t.forEach(t=>{o[t]=(0,r.Ay)(e,t,n)}),o}},8181(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2018)},8212(e,t,n){"use strict";n.d(t,{b:()=>o}),n(9081);var r=n(5878);function o(e){return(0,r.b)(e)}n(8525)},8244(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(9081),o=n(851),i=n(2189),a=n(361),l=n(8212),s=n(8175),c=n(4819);function u(e){return(0,c.Ay)("MuiDialogActions",e)}(0,s.A)("MuiDialogActions",["root","spacing"]);var d=n(8525);const f=(0,a.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),p=r.forwardRef(function(e,t){const n=(0,l.b)({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:a=!1,...s}=n,c={...n,disableSpacing:a},p=(e=>{const{classes:t,disableSpacing:n}=e,r={root:["root",!n&&"spacing"]};return(0,i.A)(r,u,t)})(c);return(0,d.jsx)(f,{className:(0,o.A)(p.root,r),ownerState:c,ref:t,...s})})},8361(e){e.exports=!1},8371(e,t,n){"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},8394(e,t,n){"use strict";n.d(t,{A:()=>A});var r=n(9081),o=n(851),i=n(2189),a=n(9025),l=n(361),s=n(7934),c=n(8212),u=n(8175),d=n(4819);function f(e){return(0,d.Ay)("MuiSvgIcon",e)}(0,u.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var p=n(8525);const h=(0,l.Ay)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,a.A)(n.color)}`],t[`fontSize${(0,a.A)(n.fontSize)}`]]}})((0,s.A)(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),g=r.forwardRef(function(e,t){const n=(0,c.b)({props:e,name:"MuiSvgIcon"}),{children:l,className:s,color:u="inherit",component:d="svg",fontSize:g="medium",htmlColor:m,inheritViewBox:A=!1,titleAccess:b,viewBox:v="0 0 24 24",...y}=n,w=r.isValidElement(l)&&"svg"===l.type,C={...n,color:u,component:d,fontSize:g,instanceFontSize:e.fontSize,inheritViewBox:A,viewBox:v,hasSvgAsChild:w},S={};A||(S.viewBox=v);const x=(e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root","inherit"!==t&&`color${(0,a.A)(t)}`,`fontSize${(0,a.A)(n)}`]};return(0,i.A)(o,f,r)})(C);return(0,p.jsxs)(h,{as:d,className:(0,o.A)(x.root,s),focusable:"false",color:m,"aria-hidden":!b||void 0,role:b?"img":void 0,ref:t,...S,...y,...w&&l.props,ownerState:C,children:[w?l.props.children:l,b?(0,p.jsx)("title",{children:b}):null]})});g.muiName="SvgIcon";const m=g;function A(e,t){function n(t,n){return(0,p.jsx)(m,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=m.muiName,r.memo(r.forwardRef(n))}},8467(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(2381).A},8499(e,t,n){"use strict";function r(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}n.d(t,{A:()=>r})},8501(e,t,n){"use strict";n.d(t,{A:()=>r});const r={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"}},8521(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(9081);const o={};function i(e,t){const n=r.useRef(o);return n.current===o&&(n.current=e(t)),n}},8525(e,t,n){"use strict";e.exports=n(1357)},8553(e,t){"use strict";Symbol.for("react.transitional.element"),Symbol.for("react.portal");var n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=(Symbol.for("react.view_transition"),Symbol.for("react.client.reference"));t.Hy=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===s||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===a||e.$$typeof===i||e.$$typeof===l||e.$$typeof===f||void 0!==e.getModuleId)}},8560(e,t,n){"use strict";n.d(t,{A:()=>a,Z:()=>i});var r=n(8175),o=n(4819);function i(e){return(0,o.Ay)("MuiFormLabel",e)}const a=(0,r.A)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"])},8561(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(871).A},8596(e,t,n){"use strict";function r(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("number"==typeof e?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}n.d(t,{EW:()=>Fe,Es:()=>jn,Fq:()=>Qn,Gn:()=>xn,MN:()=>K,Mr:()=>pr,O8:()=>it,OB:()=>Zn,Rn:()=>pn,XI:()=>Dt,Zc:()=>on,_t:()=>Nt,fm:()=>Lt,go:()=>fr,hZ:()=>un,jK:()=>Ut,jO:()=>cn,lB:()=>fn,mJ:()=>$t,n8:()=>dn,pA:()=>rn,qT:()=>St,sG:()=>gt,sH:()=>Oe,uz:()=>zn,vx:()=>Ve,yl:()=>Yt,z7:()=>hn,zu:()=>sn});var o={};function i(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:o}var a=Object.assign,l=Object.getOwnPropertyDescriptor,s=Object.defineProperty,c=Object.prototype,u=[];Object.freeze(u);var d={};Object.freeze(d);var f="undefined"!=typeof Proxy,p=Object.toString();function h(){f||r("Proxy not available")}function g(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var m=function(){};function A(e){return"function"==typeof e}function b(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function v(e){return null!==e&&"object"==typeof e}function y(e){if(!v(e))return!1;var t=Object.getPrototypeOf(e);if(null==t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n.toString()===p}function w(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function C(e,t,n){s(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function S(e,t,n){s(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function x(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return v(e)&&!0===e[n]}}function I(e){return null!=e&&"[object Map]"===Object.prototype.toString.call(e)}function E(e){return null!=e&&"[object Set]"===Object.prototype.toString.call(e)}var k=void 0!==Object.getOwnPropertySymbols,B="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:k?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function M(e){return null===e?null:"object"==typeof e?""+e:e}function R(e,t){return c.hasOwnProperty.call(e,t)}var P=Object.getOwnPropertyDescriptors||function(e){var t={};return B(e).forEach(function(n){t[n]=l(e,n)}),t};function _(e,t){return!!(e&t)}function T(e,t,n){return n?e|=t:e&=~t,e}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,z(r.key),r)}}function Q(e,t,n){return t&&D(e.prototype,t),n&&D(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function N(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function F(){return F=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},F.apply(null,arguments)}function L(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,j(e,t)}function j(e,t){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},j(e,t)}function z(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var $=Symbol("mobx-stored-annotations");function H(e){return Object.assign(function(t,n){if(V(n))return e.decorate_20223_(t,n);G(t,n,e)},e)}function G(e,t,n){R(e,$)||C(e,$,F({},e[$])),function(e){return e.annotationType_===Z}(n)||(e[$][t]=n)}function V(e){return"object"==typeof e&&"string"==typeof e.kind}var W=Symbol("mobx administration"),U=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=Je.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(e){return e()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(e){return e()})},t.reportObserved=function(){return wt(this)},t.reportChanged=function(){vt(),Ct(this),yt()},t.toString=function(){return this.name_},Q(e,[{key:"isBeingObserved",get:function(){return _(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=T(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return _(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=T(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return _(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=T(this.flags_,e.diffValueMask_,1===t)}}])}();U.isBeingObservedMask_=1,U.isPendingUnobservationMask_=2,U.diffValueMask_=4;var Y=x("Atom",U);function K(e,t,n){void 0===t&&(t=m),void 0===n&&(n=m);var r=new U(e);return t!==m&&Vt(Ht,r,t,void 0),n!==m&&Gt(r,n),r}var q={identity:function(e,t){return e===t},structural:function(e,t){return br(e,t)},default:function(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e==1/t:e!=e&&t!=t},shallow:function(e,t){return br(e,t,1)}};function J(e,t,n){return an(e)?e:Array.isArray(e)?Oe.array(e,{name:n}):y(e)?Oe.object(e,void 0,{name:n}):I(e)?Oe.map(e,{name:n}):E(e)?Oe.set(e,{name:n}):"function"!=typeof e||Ft(e)||nn(e)?e:w(e)?en(e):Qt(n,e)}function X(e){return e}var Z="override";function ee(e,t){return{annotationType_:e,options_:t,make_:te,extend_:ne,decorate_20223_:re}}function te(e,t,n,r){var o;if(null!=(o=this.options_)&&o.bound)return null===this.extend_(e,t,n,!1)?0:1;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(Ft(n.value))return 1;var i=oe(e,this,t,n,!1);return s(r,t,i),2}function ne(e,t,n,r){var o=oe(e,this,t,n);return e.defineProperty_(t,o,r)}function re(e,t){var n,o=t.kind,i=t.name,a=t.addInitializer,l=this,s=function(e){var t,n,r,o;return He(null!=(t=null==(n=l.options_)?void 0:n.name)?t:i.toString(),e,null!=(r=null==(o=l.options_)?void 0:o.autoAction)&&r)};return"field"==o?function(e){var t,n=e;return Ft(n)||(n=s(n)),null!=(t=l.options_)&&t.bound&&((n=n.bind(this)).isMobxAction=!0),n}:"method"==o?(Ft(e)||(e=s(e)),null!=(n=this.options_)&&n.bound&&a(function(){var e=this,t=e[i].bind(e);t.isMobxAction=!0,e[i]=t}),e):void r("Cannot apply '"+l.annotationType_+"' to '"+String(i)+"' (kind: "+o+"):\n'"+l.annotationType_+"' can only be used on properties with a function value.")}function oe(e,t,n,r,o){var i,a,l,s,c,u,d,f;void 0===o&&(o=ht.safeDescriptors),f=r,t.annotationType_,f.value;var p,h=r.value;return null!=(i=t.options_)&&i.bound&&(h=h.bind(null!=(p=e.proxy_)?p:e.target_)),{value:He(null!=(a=null==(l=t.options_)?void 0:l.name)?a:n.toString(),h,null!=(s=null==(c=t.options_)?void 0:c.autoAction)&&s,null!=(u=t.options_)&&u.bound?null!=(d=e.proxy_)?d:e.target_:void 0),configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function ie(e,t){return{annotationType_:e,options_:t,make_:ae,extend_:le,decorate_20223_:se}}function ae(e,t,n,r){var o;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(null!=(o=this.options_)&&o.bound&&(!R(e.target_,t)||!nn(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(nn(n.value))return 1;var i=ce(e,this,0,n,!1,!1);return s(r,t,i),2}function le(e,t,n,r){var o,i=ce(e,this,0,n,null==(o=this.options_)?void 0:o.bound);return e.defineProperty_(t,i,r)}function se(e,t){var n,r=t.name,o=t.addInitializer;return nn(e)||(e=en(e)),null!=(n=this.options_)&&n.bound&&o(function(){var e=this,t=e[r].bind(e);t.isMobXFlow=!0,e[r]=t}),e}function ce(e,t,n,r,o,i){var a;void 0===i&&(i=ht.safeDescriptors),a=r,t.annotationType_,a.value;var l,s=r.value;return nn(s)||(s=en(s)),o&&((s=s.bind(null!=(l=e.proxy_)?l:e.target_)).isMobXFlow=!0),{value:s,configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function ue(e,t){return{annotationType_:e,options_:t,make_:de,extend_:fe,decorate_20223_:pe}}function de(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function fe(e,t,n,r){return o=n,this.annotationType_,o.get,e.defineComputedProperty_(t,F({},this.options_,{get:n.get,set:n.set}),r);var o}function pe(e,t){var n=this,r=t.name;return(0,t.addInitializer)(function(){var t=qn(this)[W],o=F({},n.options_,{get:e,context:this});o.name||(o.name="ObservableObject."+r.toString()),t.values_.set(r,new qe(o))}),function(){return this[W].getObservablePropValue_(r)}}function he(e,t){return{annotationType_:e,options_:t,make_:ge,extend_:me,decorate_20223_:Ae}}function ge(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function me(e,t,n,r){var o,i;return this.annotationType_,e.defineObservableProperty_(t,n.value,null!=(o=null==(i=this.options_)?void 0:i.enhancer)?o:J,r)}function Ae(e,t){var n=this,r=t.kind,o=t.name,i=new WeakSet;function a(e,t){var r,a,l=qn(e)[W],s=new Ye(t,null!=(r=null==(a=n.options_)?void 0:a.enhancer)?r:J,"ObservableObject."+o.toString(),!1);l.values_.set(o,s),i.add(e)}if("accessor"==r)return{get:function(){return i.has(this)||a(this,e.get.call(this)),this[W].getObservablePropValue_(o)},set:function(e){return i.has(this)||a(this,e),this[W].setObservablePropValue_(o,e)},init:function(e){return i.has(this)||a(this,e),e}}}var be=ve();function ve(e){return{annotationType_:"true",options_:e,make_:ye,extend_:we,decorate_20223_:Ce}}function ye(e,t,n,r){var o,i,a,l;if(n.get)return Fe.make_(e,t,n,r);if(n.set){var c=Ft(n.set)?n.set:He(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!ht.safeDescriptors||e.isPlainObject_,set:c})?0:2:(s(r,t,{configurable:!0,set:c}),2)}if(r!==e.target_&&"function"==typeof n.value)return w(n.value)?(null!=(l=this.options_)&&l.autoBind?en.bound:en).make_(e,t,n,r):(null!=(a=this.options_)&&a.autoBind?Qt.bound:Qt).make_(e,t,n,r);var u,d=!1===(null==(o=this.options_)?void 0:o.deep)?Oe.ref:Oe;return"function"==typeof n.value&&null!=(i=this.options_)&&i.autoBind&&(n.value=n.value.bind(null!=(u=e.proxy_)?u:e.target_)),d.make_(e,t,n,r)}function we(e,t,n,r){var o,i,a;return n.get?Fe.extend_(e,t,n,r):n.set?e.defineProperty_(t,{configurable:!ht.safeDescriptors||e.isPlainObject_,set:He(t.toString(),n.set)},r):("function"==typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(a=e.proxy_)?a:e.target_)),(!1===(null==(i=this.options_)?void 0:i.deep)?Oe.ref:Oe).extend_(e,t,n,r))}function Ce(e,t){r("'"+this.annotationType_+"' cannot be used as a decorator")}var Se={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function xe(e){return e||Se}Object.freeze(Se);var Ie=he("observable"),Ee=he("observable.ref",{enhancer:X}),ke=he("observable.shallow",{enhancer:function(e,t,n){return null==e||Zn(e)||Qn(e)||zn(e)||Vn(e)?e:Array.isArray(e)?Oe.array(e,{name:n,deep:!1}):y(e)?Oe.object(e,void 0,{name:n,deep:!1}):I(e)?Oe.map(e,{name:n,deep:!1}):E(e)?Oe.set(e,{name:n,deep:!1}):void 0}}),Be=he("observable.struct",{enhancer:function(e,t){return br(e,t)?t:e}}),Me=H(Ie);function Re(e){return!0===e.deep?J:!1===e.deep?X:(t=e.defaultDecorator)&&null!=(n=null==(r=t.options_)?void 0:r.enhancer)?n:J;var t,n,r}function Pe(e,t,n){return V(t)?Ie.decorate_20223_(e,t):b(t)?void G(e,t,Ie):an(e)?e:y(e)?Oe.object(e,t,n):Array.isArray(e)?Oe.array(e,t):I(e)?Oe.map(e,t):E(e)?Oe.set(e,t):"object"==typeof e&&null!==e?e:Oe.box(e,t)}a(Pe,Me);var _e,Te,Oe=a(Pe,{box:function(e,t){var n=xe(t);return new Ye(e,Re(n),n.name,!0,n.equals)},array:function(e,t){var n=xe(t);return(!1===ht.useProxies||!1===n.proxy?dr:Mn)(e,Re(n),n.name)},map:function(e,t){var n=xe(t);return new jn(e,Re(n),n.name)},set:function(e,t){var n=xe(t);return new Gn(e,Re(n),n.name)},object:function(e,t,n){return gr(function(){return function(e,t,n,r){var o=P(t);return gr(function(){var t=qn(e,r)[W];B(o).forEach(function(e){t.extend_(e,o[e],!n||!(e in n)||n[e])})}),e}(!1===ht.useProxies||!1===(null==n?void 0:n.proxy)?qn({},n):function(e,t){var n,r;return h(),null!=(r=(n=(e=qn(e,t))[W]).proxy_)?r:n.proxy_=new Proxy(e,An)}({},n),e,t)})},ref:H(Ee),shallow:H(ke),deep:Me,struct:H(Be)}),De="computed",Qe=ue(De),Ne=ue("computed.struct",{equals:q.structural}),Fe=function(e,t){if(V(t))return Qe.decorate_20223_(e,t);if(b(t))return G(e,t,Qe);if(y(e))return H(ue(De,e));var n=y(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new qe(n)};Object.assign(Fe,Qe),Fe.struct=H(Ne);var Le=0,je=1,ze=null!=(_e=null==(Te=l(function(){},"name"))?void 0:Te.configurable)&&_e,$e={value:"action",configurable:!0,writable:!1,enumerable:!1};function He(e,t,n,r){function o(){return Ge(0,n,t,r||this,arguments)}return void 0===n&&(n=!1),o.isMobxAction=!0,o.toString=function(){return t.toString()},ze&&($e.value=e,s(o,"name",$e)),o}function Ge(e,t,n,o,i){var a=function(e,t){var n=ht.trackingDerivation,r=!t||!n;vt();var o=ht.allowStateChanges;r&&(at(),o=We(!0));var i={runAsAction_:r,prevDerivation_:n,prevAllowStateChanges_:o,prevAllowStateReads_:st(!0),notifySpy_:!1,startTime_:0,actionId_:je++,parentActionId_:Le};return Le=i.actionId_,i}(0,t);try{return n.apply(o,i)}catch(e){throw a.error_=e,e}finally{!function(e){Le!==e.actionId_&&r(30),Le=e.parentActionId_,void 0!==e.error_&&(ht.suppressReactionErrors=!0),Ue(e.prevAllowStateChanges_),ct(e.prevAllowStateReads_),yt(),e.runAsAction_&&lt(e.prevDerivation_),ht.suppressReactionErrors=!1}(a)}}function Ve(e,t){var n=We(e);try{return t()}finally{Ue(n)}}function We(e){var t=ht.allowStateChanges;return ht.allowStateChanges=e,t}function Ue(e){ht.allowStateChanges=e}var Ye=function(e){function t(t,n,r,o,i){var a;return void 0===r&&(r="ObservableValue"),void 0===o&&(o=!0),void 0===i&&(i=q.default),(a=e.call(this,r)||this).enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=n,a.name_=r,a.equals=i,a.value_=n(t,void 0,r),a}L(t,e);var n=t.prototype;return n.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.set=function(e){this.value_,(e=this.prepareNewValue_(e))!==ht.UNCHANGED&&this.setNewValue_(e)},n.prepareNewValue_=function(e){if(bn(this)){var t=yn(this,{object:this,type:En,newValue:e});if(!t)return ht.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?ht.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),wn(this)&&Sn(this,{type:En,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return vn(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:En,newValue:this.value_,oldValue:void 0}),Cn(this,e)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return M(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}(U),Ke=x("ObservableValue",Ye),qe=function(){function e(e){this.dependenciesState_=Je.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Je.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new et(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Xe.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||r(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=He("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?q.structural:q.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){!function(e){e.lowestObserverState_===Je.UP_TO_DATE_&&(e.lowestObserverState_=Je.POSSIBLY_STALE_,e.observers_.forEach(function(e){e.dependenciesState_===Je.UP_TO_DATE_&&(e.dependenciesState_=Je.POSSIBLY_STALE_,e.onBecomeStale_())}))}(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(e){return e()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(e){return e()})},t.get=function(){if(this.isComputing&&r(32,this.name_,this.derivation),0!==ht.inBatch||0!==this.observers_.size||this.keepAlive_){if(wt(this),nt(this)){var e=ht.trackingContext;this.keepAlive_&&!e&&(ht.trackingContext=this),this.trackAndCompute()&&function(e){e.lowestObserverState_!==Je.STALE_&&(e.lowestObserverState_=Je.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===Je.POSSIBLY_STALE_?t.dependenciesState_=Je.STALE_:t.dependenciesState_===Je.UP_TO_DATE_&&(e.lowestObserverState_=Je.UP_TO_DATE_)}))}(this),ht.trackingContext=e}}else nt(this)&&(this.warnAboutUntrackedRead_(),vt(),this.value_=this.computeValue_(!1),yt());var t=this.value_;if(tt(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter&&r(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter=!1}}else r(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===Je.NOT_TRACKING_,n=this.computeValue_(!0),r=t||tt(e)||tt(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing=!0;var t,n=We(!1);if(e)t=rt(this,this.derivation,this.scope_);else if(!0===ht.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new et(e)}return Ue(n),this.isComputing=!1,t},t.suspend_=function(){this.keepAlive_||(ot(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,o=void 0;return Lt(function(){var i=n.get();if(!r||t){var a=at();e({observableKind:"computed",debugObjectName:n.name_,type:En,object:n,newValue:i,oldValue:o}),lt(a)}r=!1,o=i})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return M(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},Q(e,[{key:"isComputing",get:function(){return _(this.flags_,e.isComputingMask_)},set:function(t){this.flags_=T(this.flags_,e.isComputingMask_,t)}},{key:"isRunningSetter",get:function(){return _(this.flags_,e.isRunningSetterMask_)},set:function(t){this.flags_=T(this.flags_,e.isRunningSetterMask_,t)}},{key:"isBeingObserved",get:function(){return _(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=T(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return _(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=T(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return _(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=T(this.flags_,e.diffValueMask_,1===t)}}])}();qe.isComputingMask_=1,qe.isRunningSetterMask_=2,qe.isBeingObservedMask_=4,qe.isPendingUnobservationMask_=8,qe.diffValueMask_=16;var Je,Xe,Ze=x("ComputedValue",qe);!function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"}(Je||(Je={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Xe||(Xe={}));var et=function(e){this.cause=void 0,this.cause=e};function tt(e){return e instanceof et}function nt(e){switch(e.dependenciesState_){case Je.UP_TO_DATE_:return!1;case Je.NOT_TRACKING_:case Je.STALE_:return!0;case Je.POSSIBLY_STALE_:for(var t=st(!0),n=at(),r=e.observing_,o=r.length,i=0;i<o;i++){var a=r[i];if(Ze(a)){if(ht.disableErrorBoundaries)a.get();else try{a.get()}catch(e){return lt(n),ct(t),!0}if(e.dependenciesState_===Je.STALE_)return lt(n),ct(t),!0}}return ut(e),lt(n),ct(t),!1}}function rt(e,t,n){var r=st(!0);ut(e),e.newObserving_=new Array(0===e.runId_?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++ht.runId;var o,i=ht.trackingDerivation;if(ht.trackingDerivation=e,ht.inBatch++,!0===ht.disableErrorBoundaries)o=t.call(n);else try{o=t.call(n)}catch(e){o=new et(e)}return ht.inBatch--,ht.trackingDerivation=i,function(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=Je.UP_TO_DATE_,o=0,i=e.unboundDepsCount_,a=0;a<i;a++){var l=n[a];0===l.diffValue&&(l.diffValue=1,o!==a&&(n[o]=l),o++),l.dependenciesState_>r&&(r=l.dependenciesState_)}for(n.length=o,e.newObserving_=null,i=t.length;i--;){var s=t[i];0===s.diffValue&&At(s,e),s.diffValue=0}for(;o--;){var c=n[o];1===c.diffValue&&(c.diffValue=0,mt(c,e))}r!==Je.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),ct(r),o}function ot(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)At(t[n],e);e.dependenciesState_=Je.NOT_TRACKING_}function it(e){var t=at();try{return e()}finally{lt(t)}}function at(){var e=ht.trackingDerivation;return ht.trackingDerivation=null,e}function lt(e){ht.trackingDerivation=e}function st(e){var t=ht.allowStateReads;return ht.allowStateReads=e,t}function ct(e){ht.allowStateReads=e}function ut(e){if(e.dependenciesState_!==Je.UP_TO_DATE_){e.dependenciesState_=Je.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=Je.UP_TO_DATE_}}var dt=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},ft=!0,pt=!1,ht=function(){var e=i();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(ft=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new dt).version&&(ft=!1),ft?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new dt):(setTimeout(function(){pt||r(35)},1),new dt)}();function gt(){return ht}function mt(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function At(e,t){e.observers_.delete(t),0===e.observers_.size&&bt(e)}function bt(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,ht.pendingUnobservations.push(e))}function vt(){ht.inBatch++}function yt(){if(0===--ht.inBatch){It();for(var e=ht.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,0===n.observers_.size&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBUO()),n instanceof qe&&n.suspend_())}ht.pendingUnobservations=[]}}function wt(e){var t=ht.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&ht.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(0===e.observers_.size&&ht.inBatch>0&&bt(e),!1)}function Ct(e){e.lowestObserverState_!==Je.STALE_&&(e.lowestObserverState_=Je.STALE_,e.observers_.forEach(function(e){e.dependenciesState_===Je.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=Je.STALE_}))}var St=function(){function e(e,t,n,r){void 0===e&&(e="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=Je.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=Xe.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,ht.pendingReactions.push(this),It())},t.runReaction_=function(){if(!this.isDisposed){vt(),this.isScheduled=!1;var e=ht.trackingContext;if(ht.trackingContext=this,nt(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}ht.trackingContext=e,yt()}},t.track=function(e){if(!this.isDisposed){vt(),this.isRunning=!0;var t=ht.trackingContext;ht.trackingContext=this;var n=rt(this,e,void 0);ht.trackingContext=t,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&ot(this),tt(n)&&this.reportExceptionInDerivation_(n.cause),yt()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(ht.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";ht.suppressReactionErrors||console.error(n,e),ht.globalReactionErrorHandlers.forEach(function(n){return n(e,t)})}},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(vt(),ot(this),yt()))},t.getDisposer_=function(e){var t=this,n=function n(){t.dispose(),null==e||null==e.removeEventListener||e.removeEventListener("abort",n)};return null==e||null==e.addEventListener||e.addEventListener("abort",n),n[W]=this,"dispose"in Symbol&&"symbol"==typeof Symbol.dispose&&(n[Symbol.dispose]=n),n},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1)},Q(e,[{key:"isDisposed",get:function(){return _(this.flags_,e.isDisposedMask_)},set:function(t){this.flags_=T(this.flags_,e.isDisposedMask_,t)}},{key:"isScheduled",get:function(){return _(this.flags_,e.isScheduledMask_)},set:function(t){this.flags_=T(this.flags_,e.isScheduledMask_,t)}},{key:"isTrackPending",get:function(){return _(this.flags_,e.isTrackPendingMask_)},set:function(t){this.flags_=T(this.flags_,e.isTrackPendingMask_,t)}},{key:"isRunning",get:function(){return _(this.flags_,e.isRunningMask_)},set:function(t){this.flags_=T(this.flags_,e.isRunningMask_,t)}},{key:"diffValue",get:function(){return _(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=T(this.flags_,e.diffValueMask_,1===t)}}])}();St.isDisposedMask_=1,St.isScheduledMask_=2,St.isTrackPendingMask_=4,St.isRunningMask_=8,St.diffValueMask_=16;var xt=function(e){return e()};function It(){ht.inBatch>0||ht.isRunningReactions||xt(Et)}function Et(){ht.isRunningReactions=!0;for(var e=ht.pendingReactions,t=0;e.length>0;){100===++t&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,o=n.length;r<o;r++)n[r].runReaction_()}ht.isRunningReactions=!1}var kt=x("Reaction",St),Bt="action",Mt="autoAction",Rt=ee(Bt),Pt=ee("action.bound",{bound:!0}),_t=ee(Mt,{autoAction:!0}),Tt=ee("autoAction.bound",{autoAction:!0,bound:!0});function Ot(e){return function(t,n){return A(t)?He(t.name||"<unnamed action>",t,e):A(n)?He(t,n,e):V(n)?(e?_t:Rt).decorate_20223_(t,n):b(n)?G(t,n,e?_t:Rt):b(t)?H(ee(e?Mt:Bt,{name:t,autoAction:e})):void 0}}var Dt=Ot(!1);Object.assign(Dt,Rt);var Qt=Ot(!0);function Nt(e){return Ge(e.name,!1,e,this,void 0)}function Ft(e){return A(e)&&!0===e.isMobxAction}function Lt(e,t){var n,r,o,i;void 0===t&&(t=d);var a,l=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(t.scheduler||t.delay){var s=zt(t),c=!1;a=new St(l,function(){c||(c=!0,s(function(){c=!1,a.isDisposed||a.track(u)}))},t.onError,t.requiresObservable)}else a=new St(l,function(){this.track(u)},t.onError,t.requiresObservable);function u(){e(a)}return null!=(o=t)&&null!=(o=o.signal)&&o.aborted||a.schedule_(),a.getDisposer_(null==(i=t)?void 0:i.signal)}Object.assign(Qt,_t),Dt.bound=H(Pt),Qt.bound=H(Tt);var jt=function(e){return e()};function zt(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:jt}function $t(e,t,n){var r,o,i;void 0===n&&(n=d);var a,l,s,c=null!=(r=n.name)?r:"Reaction",u=Dt(c,n.onError?(a=n.onError,l=t,function(){try{return l.apply(this,arguments)}catch(e){a.call(this,e)}}):t),f=!n.scheduler&&!n.delay,p=zt(n),h=!0,g=!1,m=n.compareStructural?q.structural:n.equals||q.default,A=new St(c,function(){h||f?b():g||(g=!0,p(b))},n.onError,n.requiresObservable);function b(){if(g=!1,!A.isDisposed){var t=!1,r=s;A.track(function(){var n=Ve(!1,function(){return e(A)});t=h||!m(s,n),s=n}),(h&&n.fireImmediately||!h&&t)&&u(s,r,A),h=!1}}return null!=(o=n)&&null!=(o=o.signal)&&o.aborted||A.schedule_(),A.getDisposer_(null==(i=n)?void 0:i.signal)}var Ht="onBO";function Gt(e,t,n){return Vt("onBUO",e,t,n)}function Vt(e,t,n,r){var o="function"==typeof r?fr(t,n):fr(t),i=A(r)?r:n,a=e+"L";return o[a]?o[a].add(i):o[a]=new Set([i]),function(){var e=o[a];e&&(e.delete(i),0===e.size&&delete o[a])}}var Wt="always";function Ut(e){!0===e.isolateGlobalState&&function(){if((ht.pendingReactions.length||ht.inBatch||ht.isRunningReactions)&&r(36),pt=!0,ft){var e=i();0===--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),ht=new dt}}();var t,n,o=e.useProxies,a=e.enforceActions;if(void 0!==o&&(ht.useProxies=o===Wt||"never"!==o&&"undefined"!=typeof Proxy),"ifavailable"===o&&(ht.verifyProxies=!0),void 0!==a){var l=a===Wt?Wt:"observed"===a;ht.enforceActions=l,ht.allowStateChanges=!0!==l&&l!==Wt}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(t){t in e&&(ht[t]=!!e[t])}),ht.allowStateReads=!ht.observableRequiresReaction,e.reactionScheduler&&(t=e.reactionScheduler,n=xt,xt=function(e){return t(function(){return n(e)})})}function Yt(e,t){return Kt(fr(e,t))}function Kt(e){var t,n={name:e.name_};return e.observing_&&e.observing_.length>0&&(n.dependencies=(t=e.observing_,Array.from(new Set(t))).map(Kt)),n}var qt=0;function Jt(){this.message="FLOW_CANCELLED"}Jt.prototype=Object.create(Error.prototype);var Xt=ie("flow"),Zt=ie("flow.bound",{bound:!0}),en=Object.assign(function(e,t){if(V(t))return Xt.decorate_20223_(e,t);if(b(t))return G(e,t,Xt);var n=e,r=n.name||"<unnamed flow>",o=function(){var e,t=arguments,o=++qt,i=Dt(r+" - runid: "+o+" - init",n).apply(this,t),a=void 0,l=new Promise(function(t,n){var l=0;function s(e){var t;a=void 0;try{t=Dt(r+" - runid: "+o+" - yield "+l++,i.next).call(i,e)}catch(e){return n(e)}u(t)}function c(e){var t;a=void 0;try{t=Dt(r+" - runid: "+o+" - yield "+l++,i.throw).call(i,e)}catch(e){return n(e)}u(t)}function u(e){if(!A(null==e?void 0:e.then))return e.done?t(e.value):(a=Promise.resolve(e.value)).then(s,c);e.then(u,n)}e=n,s(void 0)});return l.cancel=Dt(r+" - runid: "+o+" - cancel",function(){try{a&&tn(a);var t=i.return(void 0),n=Promise.resolve(t.value);n.then(m,m),tn(n),e(new Jt)}catch(t){e(t)}}),l};return o.isMobXFlow=!0,o},Xt);function tn(e){A(e.cancel)&&e.cancel()}function nn(e){return!0===(null==e?void 0:e.isMobXFlow)}function rn(e,t,n){var r;return zn(e)||Qn(e)||Ke(e)?r=pr(e):Zn(e)&&(r=pr(e,t)),r.dehancer="function"==typeof t?t:n,function(){r.dehancer=void 0}}function on(e,t,n){return A(n)?function(e,t,n){return pr(e,t).intercept_(n)}(e,t,n):function(e,t){return pr(e).intercept_(t)}(e,t)}function an(e){return function(e,t){return!!e&&(void 0!==t?!!Zn(e)&&e[W].values_.has(t):Zn(e)||!!e[W]||Y(e)||kt(e)||Ze(e))}(e)}function ln(e){return Zn(e)?e[W].keys_():zn(e)||Vn(e)?Array.from(e.keys()):Qn(e)?e.map(function(e,t){return t}):void r(5)}function sn(e){return Zn(e)?ln(e).map(function(t){return e[t]}):zn(e)?ln(e).map(function(t){return e.get(t)}):Vn(e)?Array.from(e.values()):Qn(e)?e.slice():void r(6)}function cn(e){return Zn(e)?ln(e).map(function(t){return[t,e[t]]}):zn(e)?ln(e).map(function(t){return[t,e.get(t)]}):Vn(e)?Array.from(e.entries()):Qn(e)?e.map(function(e,t){return[t,e]}):void r(7)}function un(e,t,n){if(2!==arguments.length||Vn(e))Zn(e)?e[W].set_(t,n):zn(e)?e.set(t,n):Vn(e)?e.add(t):Qn(e)?("number"!=typeof t&&(t=parseInt(t,10)),t<0&&r("Invalid index: '"+t+"'"),vt(),t>=e.length&&(e.length=t+1),e[t]=n,yt()):r(8);else{vt();var o=t;try{for(var i in o)un(e,i,o[i])}finally{yt()}}}function dn(e,t,n){if(Zn(e))return e[W].defineProperty_(t,n);r(39)}function fn(e,t,n,r){return A(n)?function(e,t,n,r){return pr(e,t).observe_(n,r)}(e,t,n,r):function(e,t,n){return pr(e).observe_(t,n)}(e,t,n)}function pn(e,t){void 0===t&&(t=void 0),vt();try{return e.apply(t)}finally{yt()}}function hn(e,t,n){return 1===arguments.length||t&&"object"==typeof t?function(e,t){var n,r,o;if(null!=t&&null!=(n=t.signal)&&n.aborted)return Object.assign(Promise.reject(new Error("WHEN_ABORTED")),{cancel:function(){return null}});var i=new Promise(function(n,i){var a,l=gn(e,n,F({},t,{onError:i}));r=function(){l(),i(new Error("WHEN_CANCELLED"))},o=function(){l(),i(new Error("WHEN_ABORTED"))},null==t||null==(a=t.signal)||null==a.addEventListener||a.addEventListener("abort",o)}).finally(function(){var e;return null==t||null==(e=t.signal)||null==e.removeEventListener?void 0:e.removeEventListener("abort",o)});return i.cancel=r,i}(e,t):gn(e,t,n||{})}function gn(e,t,n){var r;if("number"==typeof n.timeout){var o=new Error("WHEN_TIMEOUT");r=setTimeout(function(){if(!a[W].isDisposed){if(a(),!n.onError)throw o;n.onError(o)}},n.timeout)}n.name="When";var i=He("When-effect",t),a=Lt(function(t){Ve(!1,e)&&(t.dispose(),r&&clearTimeout(r),i())},n);return a}function mn(e){return e[W]}en.bound=H(Zt);var An={has:function(e,t){return mn(e).has_(t)},get:function(e,t){return mn(e).get_(t)},set:function(e,t,n){var r;return!!b(t)&&(null==(r=mn(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return!!b(t)&&(null==(n=mn(e).delete_(t,!0))||n)},defineProperty:function(e,t,n){var r;return null==(r=mn(e).defineProperty_(t,n))||r},ownKeys:function(e){return mn(e).ownKeys_()},preventExtensions:function(e){r(13)}};function bn(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function vn(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),g(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function yn(e,t){var n=at();try{for(var o=[].concat(e.interceptors_||[]),i=0,a=o.length;i<a&&((t=o[i](t))&&!t.type&&r(14),t);i++);return t}finally{lt(n)}}function wn(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function Cn(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),g(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function Sn(e,t){var n=at(),r=e.changeListeners_;if(r){for(var o=0,i=(r=r.slice()).length;o<i;o++)r[o](t);lt(n)}}function xn(e,t,n){return gr(function(){var r=qn(e,n)[W];null!=t||(t=function(e){return R(e,$)||C(e,$,F({},e[$])),e[$]}(e)),B(t).forEach(function(e){return r.make_(e,t[e])})}),e}var In="splice",En="update",kn={get:function(e,t){var n=e[W];return t===W?n:"length"===t?n.getArrayLength_():"string"!=typeof t||isNaN(t)?R(Rn,t)?Rn[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[W];return"length"===t&&r.setArrayLength_(n),"symbol"==typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){r(15)}},Bn=function(){function e(e,t,n,r){void 0===e&&(e="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=n,this.legacyMode_=r,this.atom_=new U(e),this.enhancer_=function(e,n){return t(e,n,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.dehanceValues_=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},t.intercept_=function(e){return vn(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Cn(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||isNaN(e)||e<0)&&r("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=new Array(e-t),o=0;o<e-t;o++)n[o]=void 0;this.spliceWithArray_(t,0,n)}else this.spliceWithArray_(e,t-e)},t.updateArrayLength_=function(e,t){e!==this.lastKnownLength_&&r(16),this.lastKnownLength_+=t,this.legacyMode_&&t>0&&ur(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var o=this.values_.length;if(void 0===e?e=0:e>o?e=o:e<0&&(e=Math.max(0,o+e)),t=1===arguments.length?o-e:null==t?0:Math.max(0,Math.min(t,o-e)),void 0===n&&(n=u),bn(this)){var i=yn(this,{object:this.proxy_,type:In,index:e,removedCount:t,added:n});if(!i)return u;t=i.removedCount,n=i.added}if(n=0===n.length?n:n.map(function(e){return r.enhancer_(e,void 0)}),this.legacyMode_){var a=n.length-t;this.updateArrayLength_(o,a)}var l=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,l),this.dehanceValues_(l)},t.spliceItemsIntoValues_=function(e,t,n){var r;if(n.length<1e4)return(r=this.values_).splice.apply(r,[e,t].concat(n));var o=this.values_.slice(e,e+t),i=this.values_.slice(e+t);this.values_.length+=n.length-t;for(var a=0;a<n.length;a++)this.values_[e+a]=n[a];for(var l=0;l<i.length;l++)this.values_[e+n.length+l]=i[l];return o},t.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&!1,o=wn(this),i=o||r?{observableKind:"array",object:this.proxy_,type:En,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;this.atom_.reportChanged(),o&&Sn(this,i)},t.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&!1,o=wn(this),i=o||r?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:In,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom_.reportChanged(),o&&Sn(this,i)},t.get_=function(e){if(!(this.legacyMode_&&e>=this.values_.length))return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]);console.warn("[mobx] Out of bounds read: "+e)},t.set_=function(e,t){var n=this.values_;if(this.legacyMode_&&e>n.length&&r(17,e,n.length),e<n.length){this.atom_;var o=n[e];if(bn(this)){var i=yn(this,{type:En,object:this.proxy_,index:e,newValue:t});if(!i)return;t=i.newValue}(t=this.enhancer_(t,o))!==o&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,o))}else{for(var a=new Array(e+1-n.length),l=0;l<a.length-1;l++)a[l]=void 0;a[a.length-1]=t,this.spliceWithArray_(n.length,0,a)}},e}();function Mn(e,t,n,r){return void 0===n&&(n="ObservableArray"),void 0===r&&(r=!1),h(),gr(function(){var o=new Bn(n,t,r,!1);S(o.values_,W,o);var i=new Proxy(o.values_,kn);return o.proxy_=i,e&&e.length&&o.spliceWithArray_(0,0,e),i})}var Rn={clear:function(){return this.splice(0)},replace:function(e){var t=this[W];return t.spliceWithArray_(0,t.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=this[W];switch(arguments.length){case 0:return[];case 1:return i.spliceWithArray_(e);case 2:return i.spliceWithArray_(e,t)}return i.spliceWithArray_(e,t,r)},spliceWithArray:function(e,t,n){return this[W].spliceWithArray_(e,t,n)},push:function(){for(var e=this[W],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(e.values_.length,0,n),e.values_.length},pop:function(){return this.splice(Math.max(this[W].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[W],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(0,0,n),e.values_.length},reverse:function(){return ht.trackingDerivation&&r(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){ht.trackingDerivation&&r(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[W],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};function Pn(e,t){"function"==typeof Array.prototype[e]&&(Rn[e]=t(e))}function _n(e){return function(){var t=this[W];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function Tn(e){return function(t,n){var r=this,o=this[W];return o.atom_.reportObserved(),o.dehanceValues_(o.values_)[e](function(e,o){return t.call(n,e,o,r)})}}function On(e){return function(){var t=this,n=this[W];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),o=arguments[0];return arguments[0]=function(e,n,r){return o(e,n,r,t)},r[e].apply(r,arguments)}}Pn("at",_n),Pn("concat",_n),Pn("flat",_n),Pn("includes",_n),Pn("indexOf",_n),Pn("join",_n),Pn("lastIndexOf",_n),Pn("slice",_n),Pn("toString",_n),Pn("toLocaleString",_n),Pn("toSorted",_n),Pn("toSpliced",_n),Pn("with",_n),Pn("every",Tn),Pn("filter",Tn),Pn("find",Tn),Pn("findIndex",Tn),Pn("findLast",Tn),Pn("findLastIndex",Tn),Pn("flatMap",Tn),Pn("forEach",Tn),Pn("map",Tn),Pn("some",Tn),Pn("toReversed",Tn),Pn("reduce",On),Pn("reduceRight",On);var Dn=x("ObservableArrayAdministration",Bn);function Qn(e){return v(e)&&Dn(e[W])}var Nn={},Fn="add",Ln="delete",jn=function(){function e(e,t,n){var o=this;void 0===t&&(t=J),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[W]=Nn,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,A(Map)||r(18),gr(function(){o.keysAtom_=K("ObservableMap.keys()"),o.data_=new Map,o.hasMap_=new Map,e&&o.merge(e)})}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!ht.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new Ye(this.has_(e),X,"ObservableMap.key?",!1);this.hasMap_.set(e,r),Gt(r,function(){return t.hasMap_.delete(e)})}return n.get()},t.set=function(e,t){var n=this.has_(e);if(bn(this)){var r=yn(this,{type:n?En:Fn,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if(this.keysAtom_,bn(this)&&!yn(this,{type:Ln,object:this,name:e}))return!1;if(this.has_(e)){var n=wn(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:Ln,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return pn(function(){var n;t.keysAtom_.reportChanged(),null==(n=t.hasMap_.get(e))||n.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)}),n&&Sn(this,r),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==ht.UNCHANGED){var r=wn(this),o=r?{observableKind:"map",debugObjectName:this.name_,type:En,object:this,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),r&&Sn(this,o)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,pn(function(){var r,o=new Ye(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,o),t=o.value_,null==(r=n.hasMap_.get(e))||r.setNewValue_(!0),n.keysAtom_.reportChanged()});var r=wn(this),o=r?{observableKind:"map",debugObjectName:this.name_,type:Fn,object:this,name:e,newValue:t}:null;r&&Sn(this,o)},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return $n({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:e.get(o)}}})},t.entries=function(){var e=this,t=this.keys();return $n({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:[o,e.get(o)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=N(this);!(n=r()).done;){var o=n.value,i=o[0],a=o[1];e.call(t,a,i,this)}},t.merge=function(e){var t=this;return zn(e)&&(e=new Map(e)),pn(function(){var n,o,i;y(e)?function(e){var t=Object.keys(e);if(!k)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter(function(t){return c.propertyIsEnumerable.call(e,t)})):t}(e).forEach(function(n){return t.set(n,e[n])}):Array.isArray(e)?e.forEach(function(e){var n=e[0],r=e[1];return t.set(n,r)}):I(e)?(n=e,o=Object.getPrototypeOf(n),i=Object.getPrototypeOf(o),null!==Object.getPrototypeOf(i)&&r(19,e),e.forEach(function(e,n){return t.set(n,e)})):null!=e&&r(20,e)}),this},t.clear=function(){var e=this;pn(function(){it(function(){for(var t,n=N(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}})})},t.replace=function(e){var t=this;return pn(function(){for(var n,o=function(e){if(I(e)||zn(e))return e;if(Array.isArray(e))return new Map(e);if(y(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return r(21,e)}(e),i=new Map,a=!1,l=N(t.data_.keys());!(n=l()).done;){var s=n.value;if(!o.has(s))if(t.delete(s))a=!0;else{var c=t.data_.get(s);i.set(s,c)}}for(var u,d=N(o.entries());!(u=d()).done;){var f=u.value,p=f[0],h=f[1],g=t.data_.has(p);if(t.set(p,h),t.data_.has(p)){var m=t.data_.get(p);i.set(p,m),g||(a=!0)}}if(!a)if(t.data_.size!==i.size)t.keysAtom_.reportChanged();else for(var A=t.data_.keys(),b=i.keys(),v=A.next(),w=b.next();!v.done;){if(v.value!==w.value){t.keysAtom_.reportChanged();break}v=A.next(),w=b.next()}t.data_=i}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return Cn(this,e)},t.intercept_=function(e){return vn(this,e)},Q(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),zn=x("ObservableMap",jn);function $n(e){return e[Symbol.toStringTag]="MapIterator",Cr(e)}var Hn={},Gn=function(){function e(e,t,n){var o=this;void 0===t&&(t=J),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[W]=Hn,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,A(Set)||r(22),this.enhancer_=function(e,r){return t(e,r,n)},gr(function(){o.atom_=K(o.name_),e&&o.replace(e)})}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.clear=function(){var e=this;pn(function(){it(function(){for(var t,n=N(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}})})},t.forEach=function(e,t){for(var n,r=N(this);!(n=r()).done;){var o=n.value;e.call(t,o,o,this)}},t.add=function(e){var t=this;if(this.atom_,bn(this)){var n=yn(this,{type:Fn,object:this,newValue:e});if(!n)return this;e=n.newValue}if(!this.has(e)){pn(function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()});var r=wn(this),o=r?{observableKind:"set",debugObjectName:this.name_,type:Fn,object:this,newValue:e}:null;r&&Sn(this,o)}return this},t.delete=function(e){var t=this;if(bn(this)&&!yn(this,{type:Ln,object:this,oldValue:e}))return!1;if(this.has(e)){var n=wn(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:Ln,object:this,oldValue:e}:null;return pn(function(){t.atom_.reportChanged(),t.data_.delete(e)}),n&&Sn(this,r),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=this.values();return Wn({next:function(){var t=e.next(),n=t.value,r=t.done;return r?{value:void 0,done:r}:{value:[n,n],done:r}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var e=this,t=this.data_.values();return Wn({next:function(){var n=t.next(),r=n.value,o=n.done;return o?{value:void 0,done:o}:{value:e.dehanceValue_(r),done:o}}})},t.intersection=function(e){return E(e)&&!Vn(e)?e.intersection(this):new Set(this).intersection(e)},t.union=function(e){return E(e)&&!Vn(e)?e.union(this):new Set(this).union(e)},t.difference=function(e){return new Set(this).difference(e)},t.symmetricDifference=function(e){return E(e)&&!Vn(e)?e.symmetricDifference(this):new Set(this).symmetricDifference(e)},t.isSubsetOf=function(e){return new Set(this).isSubsetOf(e)},t.isSupersetOf=function(e){return new Set(this).isSupersetOf(e)},t.isDisjointFrom=function(e){return E(e)&&!Vn(e)?e.isDisjointFrom(this):new Set(this).isDisjointFrom(e)},t.replace=function(e){var t=this;return Vn(e)&&(e=new Set(e)),pn(function(){Array.isArray(e)||E(e)?(t.clear(),e.forEach(function(e){return t.add(e)})):null!=e&&r("Cannot initialize set from "+e)}),this},t.observe_=function(e,t){return Cn(this,e)},t.intercept_=function(e){return vn(this,e)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},Q(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),Vn=x("ObservableSet",Gn);function Wn(e){return e[Symbol.toStringTag]="SetIterator",Cr(e)}var Un=Object.create(null),Yn="remove",Kn=function(){function e(e,t,n,r){void 0===t&&(t=new Map),void 0===r&&(r=be),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=e,this.values_=t,this.name_=n,this.defaultAnnotation_=r,this.keysAtom_=new U("ObservableObject.keys"),this.isPlainObject_=y(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(e){return this.values_.get(e).get()},t.setObservablePropValue_=function(e,t){var n=this.values_.get(e);if(n instanceof qe)return n.set(t),!0;if(bn(this)){var r=yn(this,{type:En,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if((t=n.prepareNewValue_(t))!==ht.UNCHANGED){var o=wn(this),i=o?{type:En,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),o&&Sn(this,i)}return!0},t.get_=function(e){return ht.trackingDerivation&&!R(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return void 0===n&&(n=!1),R(this.target_,e)?this.values_.has(e)?this.setObservablePropValue_(e,t):n?Reflect.set(this.target_,e,t):(this.target_[e]=t,!0):this.extend_(e,{value:t,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,n)},t.has_=function(e){if(!ht.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new Ye(e in this.target_,X,"ObservableObject.key?",!1),this.pendingKeys_.set(e,t)),t.get()},t.make_=function(e,t){if(!0===t&&(t=this.defaultAnnotation_),!1!==t){if(!(e in this.target_)){var n;if(null!=(n=this.target_[$])&&n[e])return;r(1,t.annotationType_,this.name_+"."+e.toString())}for(var o=this.target_;o&&o!==c;){var i=l(o,e);if(i){var a=t.make_(this,e,i,o);if(0===a)return;if(1===a)break}o=Object.getPrototypeOf(o)}er(this,0,e)}},t.extend_=function(e,t,n,r){if(void 0===r&&(r=!1),!0===n&&(n=this.defaultAnnotation_),!1===n)return this.defineProperty_(e,t,r);var o=n.extend_(this,e,t,r);return o&&er(this,0,e),o},t.defineProperty_=function(e,t,n){void 0===n&&(n=!1),this.keysAtom_;try{vt();var r=this.delete_(e);if(!r)return r;if(bn(this)){var o=yn(this,{object:this.proxy_||this.target_,name:e,type:Fn,newValue:t.value});if(!o)return null;var i=o.newValue;t.value!==i&&(t=F({},t,{value:i}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else s(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{yt()}return!0},t.defineObservableProperty_=function(e,t,n,r){void 0===r&&(r=!1),this.keysAtom_;try{vt();var o=this.delete_(e);if(!o)return o;if(bn(this)){var i=yn(this,{object:this.proxy_||this.target_,name:e,type:Fn,newValue:t});if(!i)return null;t=i.newValue}var a=Xn(e),l={configurable:!ht.safeDescriptors||this.isPlainObject_,enumerable:!0,get:a.get,set:a.set};if(r){if(!Reflect.defineProperty(this.target_,e,l))return!1}else s(this.target_,e,l);var c=new Ye(t,n,"ObservableObject.key",!1);this.values_.set(e,c),this.notifyPropertyAddition_(e,c.value_)}finally{yt()}return!0},t.defineComputedProperty_=function(e,t,n){void 0===n&&(n=!1),this.keysAtom_;try{vt();var r=this.delete_(e);if(!r)return r;if(bn(this)&&!yn(this,{object:this.proxy_||this.target_,name:e,type:Fn,newValue:void 0}))return null;t.name||(t.name="ObservableObject.key"),t.context=this.proxy_||this.target_;var o=Xn(e),i={configurable:!ht.safeDescriptors||this.isPlainObject_,enumerable:!1,get:o.get,set:o.set};if(n){if(!Reflect.defineProperty(this.target_,e,i))return!1}else s(this.target_,e,i);this.values_.set(e,new qe(t)),this.notifyPropertyAddition_(e,void 0)}finally{yt()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),this.keysAtom_,!R(this.target_,e))return!0;if(bn(this)&&!yn(this,{object:this.proxy_||this.target_,name:e,type:Yn}))return null;try{var n;vt();var r,o=wn(this),i=this.values_.get(e),a=void 0;if(!i&&o&&(a=null==(r=l(this.target_,e))?void 0:r.value),t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if(i&&(this.values_.delete(e),i instanceof Ye&&(a=i.value_),Ct(i)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(e in this.target_),o){var s={type:Yn,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:a,name:e};o&&Sn(this,s)}}finally{yt()}return!0},t.observe_=function(e,t){return Cn(this,e)},t.intercept_=function(e){return vn(this,e)},t.notifyPropertyAddition_=function(e,t){var n,r=wn(this);if(r){var o=r?{type:Fn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;r&&Sn(this,o)}null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),B(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function qn(e,t){var n;if(R(e,W))return e;var r=null!=(n=null==t?void 0:t.name)?n:"ObservableObject",o=new Kn(e,new Map,String(r),function(e){var t;return e?null!=(t=e.defaultDecorator)?t:ve(e):void 0}(t));return C(e,W,o),e}var Jn=x("ObservableObjectAdministration",Kn);function Xn(e){return Un[e]||(Un[e]={get:function(){return this[W].getObservablePropValue_(e)},set:function(t){return this[W].setObservablePropValue_(e,t)}})}function Zn(e){return!!v(e)&&Jn(e[W])}function er(e,t,n){var r;null==(r=e.target_[$])||delete r[n]}var tr,nr,rr=sr(0),or=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),ir=0,ar=function(){};tr=ar,nr=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(tr.prototype,nr):void 0!==tr.prototype.__proto__?tr.prototype.__proto__=nr:tr.prototype=nr;var lr=function(e){function t(t,n,r,o){var i;return void 0===r&&(r="ObservableArray"),void 0===o&&(o=!1),i=e.call(this)||this,gr(function(){var e=new Bn(r,n,o,!0);e.proxy_=i,S(i,W,e),t&&t.length&&i.spliceWithArray(0,0,t),or&&Object.defineProperty(i,"0",rr)}),i}L(t,e);var n=t.prototype;return n.concat=function(){this[W].atom_.reportObserved();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.prototype.concat.apply(this.slice(),t.map(function(e){return Qn(e)?e.slice():e}))},n[Symbol.iterator]=function(){var e=this,t=0;return Cr({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},Q(t,[{key:"length",get:function(){return this[W].getArrayLength_()},set:function(e){this[W].setArrayLength_(e)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(ar);function sr(e){return{enumerable:!1,configurable:!0,get:function(){return this[W].get_(e)},set:function(t){this[W].set_(e,t)}}}function cr(e){s(lr.prototype,""+e,sr(e))}function ur(e){if(e>ir){for(var t=ir;t<e+100;t++)cr(t);ir=e}}function dr(e,t,n){return new lr(e,t,n)}function fr(e,t){if("object"==typeof e&&null!==e){if(Qn(e))return void 0!==t&&r(23),e[W].atom_;if(Vn(e))return e.atom_;if(zn(e)){if(void 0===t)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||r(25,t,hr(e)),n}if(Zn(e)){if(!t)return r(26);var o=e[W].values_.get(t);return o||r(27,t,hr(e)),o}if(Y(e)||Ze(e)||kt(e))return e}else if(A(e)&&kt(e[W]))return e[W];r(28)}function pr(e,t){return e||r(29),void 0!==t?pr(fr(e,t)):Y(e)||Ze(e)||kt(e)||zn(e)||Vn(e)?e:e[W]?e[W]:void r(24,e)}function hr(e,t){var n;if(void 0!==t)n=fr(e,t);else{if(Ft(e))return e.name;n=Zn(e)||zn(e)||Vn(e)?pr(e):fr(e)}return n.name_}function gr(e){var t=at(),n=We(!0);vt();try{return e()}finally{yt(),Ue(n),lt(t)}}Object.entries(Rn).forEach(function(e){var t=e[0],n=e[1];"concat"!==t&&C(lr.prototype,t,n)}),ur(1e3);var mr,Ar=c.toString;function br(e,t,n){return void 0===n&&(n=-1),vr(e,t,n)}function vr(e,t,n,r,o){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;if("function"!==i&&"object"!==i&&"object"!=typeof t)return!1;var a=Ar.call(e);if(a!==Ar.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0===+e?1/+e==1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++}e=yr(e),t=yr(t);var l="[object Array]"===a;if(!l){if("object"!=typeof e||"object"!=typeof t)return!1;var s=e.constructor,c=t.constructor;if(s!==c&&!(A(s)&&s instanceof s&&A(c)&&c instanceof c)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),o=o||[];for(var u=(r=r||[]).length;u--;)if(r[u]===e)return o[u]===t;if(r.push(e),o.push(t),l){if((u=e.length)!==t.length)return!1;for(;u--;)if(!vr(e[u],t[u],n-1,r,o))return!1}else{var d=Object.keys(e),f=d.length;if(Object.keys(t).length!==f)return!1;for(var p=0;p<f;p++){var h=d[p];if(!R(t,h)||!vr(e[h],t[h],n-1,r,o))return!1}}return r.pop(),o.pop(),!0}function yr(e){return Qn(e)?e.slice():I(e)||zn(e)||E(e)||Vn(e)?Array.from(e.entries()):e}var wr=(null==(mr=i().Iterator)?void 0:mr.prototype)||{};function Cr(e){return e[Symbol.iterator]=Sr,Object.assign(Object.create(wr),e)}function Sr(){return this}["Symbol","Map","Set"].forEach(function(e){void 0===i()[e]&&r("MobX requires global '"+e+"' to be available or polyfilled")}),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}},extras:{getDebugName:hr},$mobx:W})},8607(e,t,n){"use strict";n.d(t,{A:()=>r});const r=function(e,t,n){return"function"==typeof e?e(t,n):e}},8628(e,t,n){"use strict";n.d(t,{A:()=>a,t:()=>i});var r=n(8175),o=n(4819);function i(e){return(0,o.Ay)("MuiDialogTitle",e)}const a=(0,r.A)("MuiDialogTitle",["root"])},8645(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(8911).A},8654(e,t,n){"use strict";n.r(t),n.d(t,{renderToSvg:()=>m});var r=n(9081),o=n(7487),i=n(8596);const a=(0,n(6451).PA)(function(e){var t=e.model,n=t.scrollX,o=t.msaAreaWidth,i=t.minimapHeight,a=t.colWidth,l=i-12,s=o/t.numColumns/a,c=-n,u=c*s,d=(c+o)*s,f="rgb(66, 119, 127)";return r.createElement(r.Fragment,null,r.createElement("rect",{x:0,y:0,width:o,height:12,stroke:"#555",fill:"none"}),r.createElement("rect",{x:Math.max(0,u),y:0,width:d-u,height:12,fill:f,fillOpacity:.3,stroke:"#555"}),r.createElement("g",{transform:"translate(0 ".concat(12,")")},r.createElement("polygon",{fill:f,fillOpacity:.3,points:[[d,0],[u,0],[0,l],[o,l]].toString()})))});var l=n(5095),s=n(2973),c=n(1160),u=n(3940),d=n(3673);function f(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return p(c,"_invoke",function(n,r,o){var i,l,s,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,s=e,f.n=n,a}};function p(n,r){for(l=n,s=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];n>3?(o=h===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,f.v=r,f.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,s=h;(t=l<2?e:s)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,s)):f.n=s:f.v=s);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==a)break}catch(t){i=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(p(t={},r,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,p(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,p(d,"constructor",c),p(c,"constructor",s),s.displayName="GeneratorFunction",p(c,o,"GeneratorFunction"),p(d),p(d,o,"Generator"),p(d,r,function(){return this}),p(d,"toString",function(){return"[object Generator]"}),(f=function(){return{w:i,m:h}})()}function p(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}p=function(e,t,n,r){function i(t,n){p(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},p(e,t,n,r)}function h(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function g(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){h(i,r,o,a,l,"next",e)}function l(e){h(i,r,o,a,l,"throw",e)}a(void 0)})}}function m(e,t){return A.apply(this,arguments)}function A(){return(A=g(f().m(function e(t,n){var r,o,a,l,s,c,u,d,p,h;return f().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,(0,i.z7)(function(){return!!t.dataInitialized});case 1:if(r=t.width,o=t.height,a=t.scrollX,l=t.scrollY,s=t.totalTrackAreaHeight,c=n.exportType,u=n.theme,d=n.includeMinimap,p=n.includeTracks,h=p?s:0,"entire"!==c){e.n=2;break}return e.a(2,b({width:t.totalWidth+t.treeAreaWidth,height:t.totalHeight+h,contentHeight:t.totalHeight,trackHeight:h,theme:u,model:t,offsetY:0,offsetX:0,includeMinimap:d,includeTracks:p}));case 2:if("viewport"!==c){e.n=3;break}return e.a(2,b({width:r,height:o+(d?t.minimapHeight:0)+h,contentHeight:o,trackHeight:h,theme:u,model:t,offsetY:-l,offsetX:-a,includeMinimap:d,includeTracks:p}));case 3:throw new Error("unknown export type");case 4:return e.a(2)}},e)}))).apply(this,arguments)}function b(e){return v.apply(this,arguments)}function v(){return(v=g(f().m(function e(t){var i,a,l,s,c,u,d,p,h,g,m,A,b;return f().w(function(e){for(;;)switch(e.n){case 0:return i=t.width,a=t.height,l=t.contentHeight,s=t.trackHeight,c=t.offsetX,u=t.offsetY,d=t.theme,p=t.model,h=t.includeMinimap,g=t.includeTracks,e.n=1,Promise.resolve().then(n.bind(n,1168));case 1:return m=e.v,A=m.Context,b=h?C:x,e.a(2,(0,o.qVg)(r.createElement(S,{width:i,height:a},r.createElement(b,{model:p},g&&s>0?r.createElement(w,{Context:A,model:p,theme:d,offsetX:c,width:i,trackHeight:s}):null,r.createElement("g",{transform:s>0?"translate(0 ".concat(s,")"):void 0},r.createElement(y,{Context:A,model:p,theme:d,offsetX:c,offsetY:u,width:i,contentHeight:l}))))))}},e)}))).apply(this,arguments)}function y(e){var t=e.model,n=e.theme,o=e.width,i=e.contentHeight,a=e.offsetX,c=e.offsetY,f=e.Context,p=t.treeAreaWidth,h=t.colorScheme,g=t.id,m="tree-".concat(g),A="msa-".concat(g),b=(0,d.Sl)(h,n),v=new f(o,i),y=new f(o,i);(0,l.X)({ctx:y,offsetX:a,offsetY:c,model:t,blockSizeYOverride:i,highResScaleFactorOverride:1});var w=o-p;return(0,u.t0)({model:t,offsetY:c,ctx:v,theme:n,blockSizeYOverride:i,highResScaleFactorOverride:1}),(0,s.H)({model:t,theme:n,offsetY:c,offsetX:a,contrastScheme:b,ctx:y,blockSizeXOverride:w,blockSizeYOverride:i,highResScaleFactorOverride:1}),r.createElement(r.Fragment,null,r.createElement("defs",null,r.createElement("clipPath",{id:m},r.createElement("rect",{x:0,y:0,width:p,height:i}))),r.createElement("defs",null,r.createElement("clipPath",{id:A},r.createElement("rect",{x:0,y:0,width:w,height:i}))),r.createElement("g",{clipPath:"url(#".concat(m,")"),dangerouslySetInnerHTML:{__html:v.getSvg().innerHTML}}),r.createElement("g",{clipPath:"url(#".concat(A,")"),transform:"translate(".concat(p," 0)"),dangerouslySetInnerHTML:{__html:y.getSvg().innerHTML}}))}function w(e){var t=e.model,n=e.theme,o=e.width,i=e.trackHeight,a=e.offsetX,l=e.Context,s=t.treeAreaWidth,u=t.colorScheme,f=t.id,p="tracks-".concat(f),h=(0,d.Sl)(u,n),g=o-s,m=new l(g,i);return(0,c.ay)({model:t,ctx:m,offsetX:a,contrastScheme:h,blockSizeXOverride:g,highResScaleFactorOverride:1}),r.createElement("g",{transform:"translate(".concat(s," 0)")},r.createElement("defs",null,r.createElement("clipPath",{id:p},r.createElement("rect",{x:0,y:0,width:g,height:i}))),r.createElement("g",{clipPath:"url(#".concat(p,")"),dangerouslySetInnerHTML:{__html:m.getSvg().innerHTML}}))}function C(e){var t=e.model,n=e.children,o=t.minimapHeight,i=t.treeAreaWidth;return r.createElement(r.Fragment,null,r.createElement("g",{transform:"translate(".concat(i," 0)")},r.createElement(a,{model:t})),r.createElement("g",{transform:"translate(0 ".concat(o,")")},n))}function S(e){var t=e.width,n=e.height,o=e.children;return r.createElement("svg",{width:t,height:n,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:[0,0,t,n].toString()},o)}function x(e){return e.children}},8659(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(9081),o=n(7339);function i(){return r.useContext(o.A)}},8684(e,t,n){"use strict";n.d(t,{A:()=>r});const r=(0,n(6673).A)()},8756(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(4451).A},8876(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(9081),o=n(3081);const i=function(e=null){const t=r.useContext(o.T);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},8911(e,t,n){"use strict";var r;n.d(t,{A:()=>l});var o=n(9081);let i=0;const a={...r||(r=n.t(o,2))}.useId;function l(e){if(void 0!==a){const t=a();return e??t}return function(e){const[t,n]=o.useState(e),r=e||t;return o.useEffect(()=>{null==t&&(i+=1,n(`mui-${i}`))},[t]),r}(e)}},9025(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(7449).A},9077(e,t,n){"use strict";n.d(t,{Ay:()=>A,HX:()=>b,tT:()=>y});var r=n(7311),o=n(3081),i=n(2855),a=n(2050),l=n(966),s=n(9081),c=n(8371),u=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,d=(0,c.A)(function(e){return u.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),f=function(e){return"theme"!==e},p=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?d:f},h=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,l.SF)(t,n,r),(0,a.s)(function(){return(0,l.sk)(t,n,r)}),null},m=function e(t,n){var a,c,u=t.__emotion_real===t,d=u&&t.__emotion_base||t;void 0!==n&&(a=n.label,c=n.target);var f=h(t,n,u),m=f||p(d),A=!m("as");return function(){var b=arguments,v=u&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==a&&v.push("label:"+a+";"),null==b[0]||void 0===b[0].raw)v.push.apply(v,b);else{var y=b[0];v.push(y[0]);for(var w=b.length,C=1;C<w;C++)v.push(b[C],y[C])}var S=(0,o.w)(function(e,t,n){var r=A&&e.as||d,a="",u=[],h=e;if(null==e.theme){for(var b in h={},e)h[b]=e[b];h.theme=s.useContext(o.T)}"string"==typeof e.className?a=(0,l.Rk)(t.registered,u,e.className):null!=e.className&&(a=e.className+" ");var y=(0,i.J)(v.concat(u),t.registered,h);a+=t.key+"-"+y.name,void 0!==c&&(a+=" "+c);var w=A&&void 0===f?p(r):m,C={};for(var S in e)A&&"as"===S||w(S)&&(C[S]=e[S]);return C.className=a,n&&(C.ref=n),s.createElement(s.Fragment,null,s.createElement(g,{cache:t,serialized:y,isStringTag:"string"==typeof r}),s.createElement(r,C))});return S.displayName=void 0!==a?a:"Styled("+("string"==typeof d?d:d.displayName||d.name||"Component")+")",S.defaultProps=t.defaultProps,S.__emotion_real=S,S.__emotion_base=d,S.__emotion_styles=v,S.__emotion_forwardProp=f,Object.defineProperty(S,"toString",{value:function(){return"."+c}}),S.withComponent=function(t,o){return e(t,(0,r.A)({},n,o,{shouldForwardProp:h(S,o,!0)})).apply(void 0,v)},S}}.bind(null);function A(e,t){return m(e,t)}function b(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){m[e]=m(e)});const v=[];function y(e){return v[0]=e,(0,i.J)(v)}},9081(e,t,n){"use strict";e.exports=n(6686)},9085(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(851);function o(e,t,n=!1){const i={...t};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const l=a;if("components"===l||"slots"===l)i[l]={...e[l],...i[l]};else if("componentsProps"===l||"slotProps"===l){const r=e[l],a=t[l];if(a)if(r){i[l]={...a};for(const e in r)if(Object.prototype.hasOwnProperty.call(r,e)){const t=e;i[l][t]=o(r[t],a[t],n)}}else i[l]=a;else i[l]=r||{}}else"className"===l&&n&&t.className?i.className=(0,r.A)(e?.className,t?.className):"style"===l&&n&&t.style?i.style={...e?.style,...t?.style}:void 0===i[l]&&(i[l]=e[l])}return i}},9150(e,t,n){"use strict";n.d(t,{A:()=>a,b:()=>i});var r=n(8175),o=n(4819);function i(e){return(0,o.Ay)("MuiListItemText",e)}const a=(0,r.A)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"])},9173(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(9081).createContext(void 0)},9184(e,t,n){"use strict";n.d(t,{Ay:()=>l,p0:()=>o});const r={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},o={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function i(e){return`${Math.round(e)}ms`}function a(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function l(e){const t={...r,...e.easing},n={...o,...e.duration};return{getAutoHeightDuration:a,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:a=t.easeInOut,delay:l=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:i(o)} ${a} ${"string"==typeof l?l:i(l)}`).join(",")},...e,easing:t,duration:n}}},9191(e,t,n){"use strict";n.d(t,{c:()=>o,q:()=>r});const r=e=>e.scrollTop;function o(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:o.transitionTimingFunction??("object"==typeof r?r[t.mode]:r),delay:o.transitionDelay}}},9339(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(9081).createContext({})},9411(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(8163).A},9524(e,t,n){"use strict";n.d(t,{A:()=>r});const r={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"}},9585(e,t,n){"use strict";var r=n(9687),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,l,s,c,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),l=document.createRange(),s=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))}),document.body.appendChild(c),l.selectNodeContents(c),s.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(l):s.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},9586(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(8525),o=n(294),i=n(2600),a=n(9868),l=n(2426);const s=(0,a.n)()({dots:{"&::after":{display:"inline-block",content:'""',width:"1em",textAlign:"left",animation:`${l.i7`
229
229
  0% {
230
230
  content: '';
231
231
  }
@@ -238,5 +238,5 @@
238
238
  75% {
239
239
  content: '...';
240
240
  }
241
- `} 1.2s infinite ease-in-out`}}});function c({message:e,children:t,variant:n="body2",...a}){const{classes:l}=s();return(0,r.jsx)(o.A,{className:(0,i.cx)(l.dots,a.className),...a,variant:n,children:e||"Loading"})}},9592(e,t,n){var r=n(5781),o=n(2738),i=n(4972).C,a=n(3383).P;function l(e){e||(e={}),this._file=o.getArg(e,"file",null),this._sourceRoot=o.getArg(e,"sourceRoot",null),this._skipValidation=o.getArg(e,"skipValidation",!1),this._ignoreInvalidMapping=o.getArg(e,"ignoreInvalidMapping",!1),this._sources=new i,this._names=new i,this._mappings=new a,this._sourcesContents=null}l.prototype._version=3,l.fromSourceMap=function(e,t){var n=e.sourceRoot,r=new l(Object.assign(t||{},{file:e.file,sourceRoot:n}));return e.eachMapping(function(e){var t={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(t.source=e.source,null!=n&&(t.source=o.relative(n,t.source)),t.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(t.name=e.name)),r.addMapping(t)}),e.sources.forEach(function(t){var i=t;null!==n&&(i=o.relative(n,t)),r._sources.has(i)||r._sources.add(i);var a=e.sourceContentFor(t);null!=a&&r.setSourceContent(t,a)}),r},l.prototype.addMapping=function(e){var t=o.getArg(e,"generated"),n=o.getArg(e,"original",null),r=o.getArg(e,"source",null),i=o.getArg(e,"name",null);(this._skipValidation||!1!==this._validateMapping(t,n,r,i))&&(null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:i}))},l.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=o.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[o.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[o.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},l.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var a=this._sourceRoot;null!=a&&(r=o.relative(a,r));var l=new i,s=new i;this._mappings.unsortedForEach(function(t){if(t.source===r&&null!=t.originalLine){var i=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=i.source&&(t.source=i.source,null!=n&&(t.source=o.join(n,t.source)),null!=a&&(t.source=o.relative(a,t.source)),t.originalLine=i.line,t.originalColumn=i.column,null!=i.name&&(t.name=i.name))}var c=t.source;null==c||l.has(c)||l.add(c);var u=t.name;null==u||s.has(u)||s.add(u)},this),this._sources=l,this._names=s,e.sources.forEach(function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=o.join(n,t)),null!=a&&(t=o.relative(a,t)),this.setSourceContent(t,r))},this)},l.prototype._validateMapping=function(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column){var o="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping)return"undefined"!=typeof console&&console.warn&&console.warn(o),!1;throw new Error(o)}if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n)){if(o="Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}),this._ignoreInvalidMapping)return"undefined"!=typeof console&&console.warn&&console.warn(o),!1;throw new Error(o)}},l.prototype._serializeMappings=function(){for(var e,t,n,i,a=0,l=1,s=0,c=0,u=0,d=0,f="",p=this._mappings.toArray(),h=0,g=p.length;h<g;h++){if(e="",(t=p[h]).generatedLine!==l)for(a=0;t.generatedLine!==l;)e+=";",l++;else if(h>0){if(!o.compareByGeneratedPositionsInflated(t,p[h-1]))continue;e+=","}e+=r.encode(t.generatedColumn-a),a=t.generatedColumn,null!=t.source&&(i=this._sources.indexOf(t.source),e+=r.encode(i-d),d=i,e+=r.encode(t.originalLine-1-c),c=t.originalLine-1,e+=r.encode(t.originalColumn-s),s=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=r.encode(n-u),u=n)),f+=e}return f},l.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=o.relative(t,e));var n=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},l.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},l.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.x=l},9596(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(7449),o=n(5212),i=n(2780),a=n(7196),l=n(3580),s=n(4218);const c=function(){function e(e,t,n,o){const l={[e]:t,theme:n},s=o[e];if(!s)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:d,style:f}=s;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const p=(0,i.Yn)(n,u)||{};return f?f(l):(0,a.NI)(l,t,t=>{let n=(0,i.BO)(p,d,t);return t===n&&"string"==typeof t&&(n=(0,i.BO)(p,d,`${e}${"default"===t?"":(0,r.A)(t)}`,t)),!1===c?n:{[c]:n}})}return function t(n){const{sx:r,theme:i={},nested:c}=n||{};if(!r)return null;const u=i.unstable_sxConfig??s.A;function d(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const s=(0,a.EU)(i.breakpoints),d=Object.keys(s);let f=s;return Object.keys(r).forEach(n=>{const l="function"==typeof(s=r[n])?s(i):s;var s;if(null!=l)if("object"==typeof l)if(u[n])f=(0,o.A)(f,e(n,l,i,u));else{const e=(0,a.NI)({theme:i},l,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,l)?f=(0,o.A)(f,e):f[n]=t({sx:l,theme:i,nested:!0})}else f=(0,o.A)(f,e(n,l,i,u))}),!c&&i.modularCssLayers?{"@layer sx":(0,l._S)(i,(0,a.vf)(d,f))}:(0,l._S)(i,(0,a.vf)(d,f))}return Array.isArray(r)?r.map(d):d(r)}}();c.filterProps=["sx"];const u=c},9641(e,t,n){"use strict";function r({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}n.d(t,{A:()=>r})},9687(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},9719(e,t,n){"use strict";n.d(t,{Dp:()=>c,Dg:()=>u});var r=n(2698),o=n(4880),i=n(8684),a=n(5121),l=n(8525);const s=function(e){return(0,l.jsx)(o.A,{...e,defaultTheme:i.A,themeId:a.A})};function c(e){return function(t){return(0,l.jsx)(s,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}function u(){return r.A}},9736(e,t,n){n(9592).x,t.SourceMapConsumer=n(7881).SourceMapConsumer,n(3548)},9744(e,t,n){"use strict";n.d(t,{A:()=>a,g:()=>i});var r=n(8175),o=n(4819);function i(e){return(0,o.Ay)("MuiInputBase",e)}const a=(0,r.A)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"])},9767(e,t,n){"use strict";n.d(t,{A:()=>ce});var r=n(8525),o=n(9081);const{entries:i,setPrototypeOf:a,isFrozen:l,getPrototypeOf:s,getOwnPropertyDescriptor:c}=Object;let{freeze:u,seal:d,create:f}=Object,{apply:p,construct:h}="undefined"!=typeof Reflect&&Reflect;u||(u=function(e){return e}),d||(d=function(e){return e}),p||(p=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),h||(h=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const g=R(Array.prototype.forEach),m=R(Array.prototype.lastIndexOf),A=R(Array.prototype.pop),b=R(Array.prototype.push),v=R(Array.prototype.splice),y=R(String.prototype.toLowerCase),w=R(String.prototype.toString),C=R(String.prototype.match),S=R(String.prototype.replace),x=R(String.prototype.indexOf),I=R(String.prototype.trim),E=R(Object.prototype.hasOwnProperty),k=R(RegExp.prototype.test),B=(M=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h(M,t)});var M;function R(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return p(e,t,r)}}function P(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;a&&a(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(l(t)||(t[r]=e),o=e)}e[o]=!0}return e}function _(e){for(let t=0;t<e.length;t++)E(e,t)||(e[t]=null);return e}function T(e){const t=f(null);for(const[n,r]of i(e))E(e,n)&&(Array.isArray(r)?t[n]=_(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=T(r):t[n]=r);return t}function O(e,t){for(;null!==e;){const n=c(e,t);if(n){if(n.get)return R(n.get);if("function"==typeof n.value)return R(n.value)}e=s(e)}return function(){return null}}const D=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Q=u(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),N=u(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),F=u(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),L=u(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),j=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),z=u(["#text"]),$=u(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),H=u(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),G=u(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),V=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),W=d(/\{\{[\w\W]*|[\w\W]*\}\}/gm),U=d(/<%[\w\W]*|[\w\W]*%>/gm),Y=d(/\$\{[\w\W]*/gm),K=d(/^data-[\-\w.\u00B7-\uFFFF]+$/),q=d(/^aria-[\-\w]+$/),J=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),X=d(/^(?:\w+script|data):/i),Z=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ee=d(/^html$/i),te=d(/^[a-z][.\w]*(-[.\w]+)+$/i);var ne=Object.freeze({__proto__:null,ARIA_ATTR:q,ATTR_WHITESPACE:Z,CUSTOM_ELEMENT:te,DATA_ATTR:K,DOCTYPE_NAME:ee,ERB_EXPR:U,IS_ALLOWED_URI:J,IS_SCRIPT_OR_DATA:X,MUSTACHE_EXPR:W,TMPLIT_EXPR:Y});const re=function(){return"undefined"==typeof window?null:window};var oe=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re();const n=t=>e(t);if(n.version="3.3.1",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const o=r,a=o.currentScript,{DocumentFragment:l,HTMLTemplateElement:s,Node:c,Element:d,NodeFilter:p,NamedNodeMap:h=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:M,DOMParser:R,trustedTypes:_}=t,W=d.prototype,U=O(W,"cloneNode"),Y=O(W,"remove"),K=O(W,"nextSibling"),q=O(W,"childNodes"),X=O(W,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let Z,te="";const{implementation:oe,createNodeIterator:ie,createDocumentFragment:ae,getElementsByTagName:le}=r,{importNode:se}=o;let ce={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof i&&"function"==typeof X&&oe&&void 0!==oe.createHTMLDocument;const{MUSTACHE_EXPR:ue,ERB_EXPR:de,TMPLIT_EXPR:fe,DATA_ATTR:pe,ARIA_ATTR:he,IS_SCRIPT_OR_DATA:ge,ATTR_WHITESPACE:me,CUSTOM_ELEMENT:Ae}=ne;let{IS_ALLOWED_URI:be}=ne,ve=null;const ye=P({},[...D,...Q,...N,...L,...z]);let we=null;const Ce=P({},[...$,...H,...G,...V]);let Se=Object.seal(f(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),xe=null,Ie=null;const Ee=Object.seal(f(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ke=!0,Be=!0,Me=!1,Re=!0,Pe=!1,_e=!0,Te=!1,Oe=!1,De=!1,Qe=!1,Ne=!1,Fe=!1,Le=!0,je=!1,ze=!0,$e=!1,He={},Ge=null;const Ve=P({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let We=null;const Ue=P({},["audio","video","img","source","image","track"]);let Ye=null;const Ke=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",Xe="http://www.w3.org/1999/xhtml";let Ze=Xe,et=!1,tt=null;const nt=P({},[qe,Je,Xe],w);let rt=P({},["mi","mo","mn","ms","mtext"]),ot=P({},["annotation-xml"]);const it=P({},["title","style","font","a","script"]);let at=null;const lt=["application/xhtml+xml","text/html"];let st=null,ct=null;const ut=r.createElement("form"),dt=function(e){return e instanceof RegExp||e instanceof Function},ft=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ct||ct!==e){if(e&&"object"==typeof e||(e={}),e=T(e),at=-1===lt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,st="application/xhtml+xml"===at?w:y,ve=E(e,"ALLOWED_TAGS")?P({},e.ALLOWED_TAGS,st):ye,we=E(e,"ALLOWED_ATTR")?P({},e.ALLOWED_ATTR,st):Ce,tt=E(e,"ALLOWED_NAMESPACES")?P({},e.ALLOWED_NAMESPACES,w):nt,Ye=E(e,"ADD_URI_SAFE_ATTR")?P(T(Ke),e.ADD_URI_SAFE_ATTR,st):Ke,We=E(e,"ADD_DATA_URI_TAGS")?P(T(Ue),e.ADD_DATA_URI_TAGS,st):Ue,Ge=E(e,"FORBID_CONTENTS")?P({},e.FORBID_CONTENTS,st):Ve,xe=E(e,"FORBID_TAGS")?P({},e.FORBID_TAGS,st):T({}),Ie=E(e,"FORBID_ATTR")?P({},e.FORBID_ATTR,st):T({}),He=!!E(e,"USE_PROFILES")&&e.USE_PROFILES,ke=!1!==e.ALLOW_ARIA_ATTR,Be=!1!==e.ALLOW_DATA_ATTR,Me=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Pe=e.SAFE_FOR_TEMPLATES||!1,_e=!1!==e.SAFE_FOR_XML,Te=e.WHOLE_DOCUMENT||!1,Qe=e.RETURN_DOM||!1,Ne=e.RETURN_DOM_FRAGMENT||!1,Fe=e.RETURN_TRUSTED_TYPE||!1,De=e.FORCE_BODY||!1,Le=!1!==e.SANITIZE_DOM,je=e.SANITIZE_NAMED_PROPS||!1,ze=!1!==e.KEEP_CONTENT,$e=e.IN_PLACE||!1,be=e.ALLOWED_URI_REGEXP||J,Ze=e.NAMESPACE||Xe,rt=e.MATHML_TEXT_INTEGRATION_POINTS||rt,ot=e.HTML_INTEGRATION_POINTS||ot,Se=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Se.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Se.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Se.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Pe&&(Be=!1),Ne&&(Qe=!0),He&&(ve=P({},z),we=[],!0===He.html&&(P(ve,D),P(we,$)),!0===He.svg&&(P(ve,Q),P(we,H),P(we,V)),!0===He.svgFilters&&(P(ve,N),P(we,H),P(we,V)),!0===He.mathMl&&(P(ve,L),P(we,G),P(we,V))),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?Ee.tagCheck=e.ADD_TAGS:(ve===ye&&(ve=T(ve)),P(ve,e.ADD_TAGS,st))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?Ee.attributeCheck=e.ADD_ATTR:(we===Ce&&(we=T(we)),P(we,e.ADD_ATTR,st))),e.ADD_URI_SAFE_ATTR&&P(Ye,e.ADD_URI_SAFE_ATTR,st),e.FORBID_CONTENTS&&(Ge===Ve&&(Ge=T(Ge)),P(Ge,e.FORBID_CONTENTS,st)),e.ADD_FORBID_CONTENTS&&(Ge===Ve&&(Ge=T(Ge)),P(Ge,e.ADD_FORBID_CONTENTS,st)),ze&&(ve["#text"]=!0),Te&&P(ve,["html","head","body"]),ve.table&&(P(ve,["tbody"]),delete xe.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw B('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw B('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Z=e.TRUSTED_TYPES_POLICY,te=Z.createHTML("")}else void 0===Z&&(Z=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(_,a)),null!==Z&&"string"==typeof te&&(te=Z.createHTML(""));u&&u(e),ct=e}},pt=P({},[...Q,...N,...F]),ht=P({},[...L,...j]),gt=function(e){b(n.removed,{element:e});try{X(e).removeChild(e)}catch(t){Y(e)}},mt=function(e,t){try{b(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){b(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Qe||Ne)try{gt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},At=function(e){let t=null,n=null;if(De)e="<remove></remove>"+e;else{const t=C(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===at&&Ze===Xe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=Z?Z.createHTML(e):e;if(Ze===Xe)try{t=(new R).parseFromString(o,at)}catch(e){}if(!t||!t.documentElement){t=oe.createDocument(Ze,"template",null);try{t.documentElement.innerHTML=et?te:o}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),Ze===Xe?le.call(t,Te?"html":"body")[0]:Te?t.documentElement:i},bt=function(e){return ie.call(e.ownerDocument||e,e,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},vt=function(e){return e instanceof M&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},yt=function(e){return"function"==typeof c&&e instanceof c};function wt(e,t,r){g(e,e=>{e.call(n,t,r,ct)})}const Ct=function(e){let t=null;if(wt(ce.beforeSanitizeElements,e,null),vt(e))return gt(e),!0;const r=st(e.nodeName);if(wt(ce.uponSanitizeElement,e,{tagName:r,allowedTags:ve}),_e&&e.hasChildNodes()&&!yt(e.firstElementChild)&&k(/<[/\w!]/g,e.innerHTML)&&k(/<[/\w!]/g,e.textContent))return gt(e),!0;if(7===e.nodeType)return gt(e),!0;if(_e&&8===e.nodeType&&k(/<[/\w]/g,e.data))return gt(e),!0;if(!(Ee.tagCheck instanceof Function&&Ee.tagCheck(r))&&(!ve[r]||xe[r])){if(!xe[r]&&xt(r)){if(Se.tagNameCheck instanceof RegExp&&k(Se.tagNameCheck,r))return!1;if(Se.tagNameCheck instanceof Function&&Se.tagNameCheck(r))return!1}if(ze&&!Ge[r]){const t=X(e)||e.parentNode,n=q(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=U(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,K(e))}}return gt(e),!0}return e instanceof d&&!function(e){let t=X(e);t&&t.tagName||(t={namespaceURI:Ze,tagName:"template"});const n=y(e.tagName),r=y(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===Je?t.namespaceURI===Xe?"svg"===n:t.namespaceURI===qe?"svg"===n&&("annotation-xml"===r||rt[r]):Boolean(pt[n]):e.namespaceURI===qe?t.namespaceURI===Xe?"math"===n:t.namespaceURI===Je?"math"===n&&ot[r]:Boolean(ht[n]):e.namespaceURI===Xe?!(t.namespaceURI===Je&&!ot[r])&&!(t.namespaceURI===qe&&!rt[r])&&!ht[n]&&(it[n]||!pt[n]):!("application/xhtml+xml"!==at||!tt[e.namespaceURI]))}(e)?(gt(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!k(/<\/no(script|embed|frames)/i,e.innerHTML)?(Pe&&3===e.nodeType&&(t=e.textContent,g([ue,de,fe],e=>{t=S(t,e," ")}),e.textContent!==t&&(b(n.removed,{element:e.cloneNode()}),e.textContent=t)),wt(ce.afterSanitizeElements,e,null),!1):(gt(e),!0)},St=function(e,t,n){if(Le&&("id"===t||"name"===t)&&(n in r||n in ut))return!1;if(Be&&!Ie[t]&&k(pe,t));else if(ke&&k(he,t));else if(Ee.attributeCheck instanceof Function&&Ee.attributeCheck(t,e));else if(!we[t]||Ie[t]){if(!(xt(e)&&(Se.tagNameCheck instanceof RegExp&&k(Se.tagNameCheck,e)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(e))&&(Se.attributeNameCheck instanceof RegExp&&k(Se.attributeNameCheck,t)||Se.attributeNameCheck instanceof Function&&Se.attributeNameCheck(t,e))||"is"===t&&Se.allowCustomizedBuiltInElements&&(Se.tagNameCheck instanceof RegExp&&k(Se.tagNameCheck,n)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(n))))return!1}else if(Ye[t]);else if(k(be,S(n,me,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==x(n,"data:")||!We[e])if(Me&&!k(ge,S(n,me,"")));else if(n)return!1;return!0},xt=function(e){return"annotation-xml"!==e&&C(e,Ae)},It=function(e){wt(ce.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||vt(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:we,forceKeepAttr:void 0};let o=t.length;for(;o--;){const i=t[o],{name:a,namespaceURI:l,value:s}=i,c=st(a),u=s;let d="value"===a?u:I(u);if(r.attrName=c,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,wt(ce.uponSanitizeAttribute,e,r),d=r.attrValue,!je||"id"!==c&&"name"!==c||(mt(a,e),d="user-content-"+d),_e&&k(/((--!?|])>)|<\/(style|title|textarea)/i,d)){mt(a,e);continue}if("attributename"===c&&C(d,"href")){mt(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){mt(a,e);continue}if(!Re&&k(/\/>/i,d)){mt(a,e);continue}Pe&&g([ue,de,fe],e=>{d=S(d,e," ")});const f=st(e.nodeName);if(St(f,c,d)){if(Z&&"object"==typeof _&&"function"==typeof _.getAttributeType)if(l);else switch(_.getAttributeType(f,c)){case"TrustedHTML":d=Z.createHTML(d);break;case"TrustedScriptURL":d=Z.createScriptURL(d)}if(d!==u)try{l?e.setAttributeNS(l,a,d):e.setAttribute(a,d),vt(e)?gt(e):A(n.removed)}catch(t){mt(a,e)}}else mt(a,e)}wt(ce.afterSanitizeAttributes,e,null)},Et=function e(t){let n=null;const r=bt(t);for(wt(ce.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)wt(ce.uponSanitizeShadowNode,n,null),Ct(n),It(n),n.content instanceof l&&e(n.content);wt(ce.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,a=null,s=null;if(et=!e,et&&(e="\x3c!--\x3e"),"string"!=typeof e&&!yt(e)){if("function"!=typeof e.toString)throw B("toString is not a function");if("string"!=typeof(e=e.toString()))throw B("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Oe||ft(t),n.removed=[],"string"==typeof e&&($e=!1),$e){if(e.nodeName){const t=st(e.nodeName);if(!ve[t]||xe[t])throw B("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)r=At("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!Qe&&!Pe&&!Te&&-1===e.indexOf("<"))return Z&&Fe?Z.createHTML(e):e;if(r=At(e),!r)return Qe?null:Fe?te:""}r&&De&&gt(r.firstChild);const u=bt($e?e:r);for(;a=u.nextNode();)Ct(a),It(a),a.content instanceof l&&Et(a.content);if($e)return e;if(Qe){if(Ne)for(s=ae.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(we.shadowroot||we.shadowrootmode)&&(s=se.call(o,s,!0)),s}let d=Te?r.outerHTML:r.innerHTML;return Te&&ve["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&k(ee,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),Pe&&g([ue,de,fe],e=>{d=S(d,e," ")}),Z&&Fe?Z.createHTML(d):d},n.setConfig=function(){ft(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Oe=!0},n.clearConfig=function(){ct=null,Oe=!1},n.isValidAttribute=function(e,t,n){ct||ft({});const r=st(e),o=st(t);return St(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&b(ce[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=m(ce[e],t);return-1===n?void 0:v(ce[e],n,1)[0]}return A(ce[e])},n.removeHooks=function(e){ce[e]=[]},n.removeAllHooks=function(){ce={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),ie=n(8018),ae=n(7487);let le=!1;const se=new RegExp(["a","b","br","code","div","em","h1","h2","h3","h4","h5","h6","i","img","li","p","pre","span","small","strong","table","tbody","sup","sub","td","tfoot","th","thead","tr","u","ul"].map(e=>String.raw`<${e}\b[^>]*>`).join("|"),"i");function ce({html:e,className:t}){const n=(0,ae.Bul)(`${e}`),i=(a=n,se.test(a)?n:ie(n));var a;return(0,o.useEffect)(()=>{le||(le=!0,oe.addHook("afterSanitizeAttributes",e=>{"A"===e.tagName&&(e.setAttribute("rel","noopener noreferrer"),e.setAttribute("target","_blank"))}))},[]),(0,r.jsx)("span",{className:t,dangerouslySetInnerHTML:{__html:oe.sanitize(i)}})}},9868(e,t,n){"use strict";n.d(t,{n:()=>f});var r=n(2658),o=n(9081),i=n(3081),a=n(2855),l=n(966),s=n(1898);const{createCssAndCx:c}={createCssAndCx:function(e){const{cache:t}=e,n=(...e)=>{const n=(0,a.J)(e,t.registered);(0,l.sk)(t,n,!1);const r=`${t.key}-${n.name}`;{const n=e[0];(function(e){return e instanceof Object&&!("styles"in e)&&!("length"in e)&&!("__emotion_styles"in e)})(n)&&u.saveClassNameCSSObjectMapping(t,r,n)}return r};return{css:n,cx:(...e)=>{const r=(0,s.p)(e),o=u.fixClassName(t,r,n);return function(e,t,n){const r=[],o=(0,l.Rk)(e,r,n);return r.length<2?n:o+t(r)}(t.registered,n,o)}}}},u=(()=>{const e=new WeakMap;return{saveClassNameCSSObjectMapping:(t,n,r)=>{let o=e.get(t);void 0===o&&(o=new Map,e.set(t,o)),o.set(n,r)},fixClassName:(t,n,r)=>{if(!n.includes(" "))return n;const o=e.get(t);return(0,s.p)(function(e){let t=!1;return e.map(([e,n])=>{if(void 0===n)return e;let r;if(t)r={"&&":n};else{r=e;for(const e in n)if(e.startsWith("@media")){t=!0;break}}return r})}(n.split(" ").map(e=>[e,o?.get(e)])).map(e=>"string"==typeof e?e:r(e)))}}})(),d=i._,{makeStyles:f}=function(e){const{useTheme:t}=e,{useCssAndCx:n}=function(e){const{useCache:t}=e;return{useCssAndCx:function(){const e=t(),{css:n,cx:r}=(0,o.useMemo)(()=>c({cache:e}),[e]);return{css:n,cx:r}}}}({useCache:d});return{makeStyles:function(){return function(e){const r="function"==typeof e?e:()=>e;return function(e,i){const a=t(),{css:l,cx:s}=n(),c=(0,o.useMemo)(()=>{const e=r(a),t={};for(const n of Object.keys(e)){const r=e[n];t[n]=l(r)}return t},[l,a]),u=i?.props.classes,d=function(e){if(!(e instanceof Object)||"function"==typeof e)return e;const t=[];for(const n in e){const r=e[n],o=typeof r;if("string"!==o&&("number"!==o||isNaN(r))&&"boolean"!==o&&null!=r)return e;t.push(`${n}:${o}_${r}`)}return`xSqLiJdLMd9s${t.join("|")}`}(u),f=(0,o.useMemo)(()=>u?function(e,t,n){if(!(t instanceof Object))return e;const r=Object.keys(t);if(0===r.length)return e;const o={};for(const r of Object.keys(e))o[r]=n(e[r],t[r]);for(const n of r){if(n in e)continue;const r=t[n];"string"==typeof r&&(o[n]=r)}return o}(c,u,s):c,[c,d,s]);return{classes:f,theme:a,css:l,cx:s}}}}}}({useTheme:r.A})}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var l=2&r&&n;("object"==typeof l||"function"==typeof l)&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach(e=>a[e]=()=>n[e]);return a.default=()=>n,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";o.r(i),o.d(i,{MSAModelF:()=>uc,MSAView:()=>Gi,React:()=>t,createRoot:()=>dc.createRoot,hydrateRoot:()=>dc.hydrateRoot,version:()=>dc.version});var e=o(9081),t=o.t(e,2),n=o(6677),r=o(7993),a=o(294),l=o(4137),s=o(6451);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var d=(0,s.PA)(function(t){var n=t.model,r=n.resizeHandleWidth,o=c((0,e.useState)(!1),2),i=o[0],a=o[1],l=(0,e.useRef)(!1),s=(0,e.useRef)(0);return(0,e.useEffect)(function(){function e(e){e.preventDefault();var t=e.clientX;if(0===s.current)s.current=e.clientX;else{var r=t-s.current;r&&(l.current||(l.current=!0,window.requestAnimationFrame(function(){n.setTreeAreaWidth(n.treeAreaWidth+r),l.current=!1,s.current=e.clientX})))}}function t(){s.current=0,i&&a(!1)}return i?(document.addEventListener("mousemove",e,!0),document.addEventListener("mouseup",t,!0),function(){document.removeEventListener("mousemove",e,!0),document.removeEventListener("mouseup",t,!0)}):function(){}},[i,n]),e.createElement("div",null,e.createElement("div",{onMouseDown:function(){a(!0)},style:{cursor:"ew-resize",height:"100%",width:r,background:"rgba(200,200,200)",position:"relative"}}))}),f=(0,s.PA)(function(t){var n=t.model,r=n.resizeHandleWidth,o=c((0,e.useState)(!1),2),i=o[0],a=o[1],l=(0,e.useRef)(!1),s=(0,e.useRef)(0);return(0,e.useEffect)(function(){function e(e){e.preventDefault();var t=e.clientY;if(0===s.current)s.current=e.clientY;else{var r=t-s.current;r&&(l.current||(l.current=!0,window.requestAnimationFrame(function(){n.setHeight(n.height+r),l.current=!1,s.current=e.clientY})))}}function t(){s.current=0,i&&a(!1)}return i?(document.addEventListener("mousemove",e,!0),document.addEventListener("mouseup",t,!0),function(){document.removeEventListener("mousemove",e,!0),document.removeEventListener("mouseup",t,!0)}):function(){}},[i,n]),e.createElement("div",null,e.createElement("div",{onMouseDown:function(){a(!0)},style:{cursor:"ns-resize",width:"100%",height:r,background:"rgba(200,200,200)",position:"relative"}}))}),p=o(8394),h=o(8525);const g=(0,p.A)((0,h.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");var m=o(6674),A=o(6972),b=o(7733),v=o(4578);function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var w=(0,e.lazy)(function(){return Promise.resolve().then(o.bind(o,5424))}),C=(0,v.n9)()({button:{padding:0}}),S=(0,s.PA)(function(t){var n,r,o=t.model,i=t.track,a=(n=(0,e.useState)(),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(n,r)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=a[0],s=a[1],c=o.drawLabels,u=o.rowHeight,d=o.treeAreaWidth,f=i.model,p=f.name,h=f.height,v=C().classes,S=Math.max(8,u-8);return e.createElement("div",{style:{width:d,height:h,flexShrink:0,textAlign:"right",fontSize:S}},c?p:""," ",e.createElement(m.A,{className:v.button,style:{width:S,height:S},onClick:function(e){s(e.currentTarget)}},e.createElement(g,null)),l?e.createElement(A.A,{anchorEl:l,transitionDuration:0,open:!0,onClose:function(){s(void 0)}},e.createElement(b.A,{dense:!0,onClick:function(){o.toggleTrack(i.model.id),s(void 0)}},"Close"),e.createElement(b.A,{dense:!0,onClick:function(){o.queueDialog(function(e){return[w,{onClose:e,model:i.model}]}),s(void 0)}},"Get info")):null)}),x=(0,s.PA)(function(t){var n=t.model,r=t.track,o=n.resizeHandleWidth,i=n.colWidth,a=n.scrollX,l=n.numColumns,s=r.model,c=s.height,u=s.error,d=(0,e.useRef)(null),f=(0,e.useRef)(!1),p=(0,e.useRef)(0);return(0,e.useEffect)(function(){var e=d.current;if(e)return e.addEventListener("wheel",t),function(){e.removeEventListener("wheel",t)};function t(e){p.current+=e.deltaX,f.current||(f.current=!0,requestAnimationFrame(function(){n.doScrollX(-p.current),p.current=0,f.current=!1})),e.preventDefault()}},[n]),e.createElement("div",{key:r.id,style:{display:"flex",height:c}},e.createElement(S,{model:n,track:r}),e.createElement("div",{style:{width:o,flexShrink:0}}),e.createElement("div",{ref:d,onMouseMove:function(e){if(d.current){var t=d.current.getBoundingClientRect().left,r=e.clientX-t-a,o=Math.floor(r/i);o>=0&&o<l?n.setMousePos(o,void 0):n.setMousePos(void 0,void 0)}},onMouseLeave:function(){n.setMousePos(void 0,void 0)}},u?e.createElement("div",{style:{color:"red",fontSize:10}},"".concat(u)):e.createElement(r.ReactComponent,{model:n,track:r})))});const I=x;var E=o(7487);function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return B(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var M=(0,s.PA)(function(t){var n=t.model,r=n.msaAreaHeight,o=n.scrollY,i=n.totalHeight,a=k((0,e.useState)(!1),2),l=a[0],s=a[1],c=(0,e.useRef)(!1),u=k((0,e.useState)(),2),d=u[0],f=u[1],p=r/i,h=-o,g=h*p,m=(h+r)*p;return(0,e.useEffect)(function(){function e(e){void 0!==d&&(c.current||(c.current=!0,window.requestAnimationFrame(function(){n.setScrollY((0,E.qE8)(d.scrollY-(e.clientY-d.clientY)/p,-i,0)),c.current=!1})))}function t(){f(void 0)}if(void 0!==d)return document.addEventListener("mousemove",e),document.addEventListener("mouseup",t),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mousemove",t)}},[n,p,i,d]),e.createElement("div",{style:{position:"relative",width:20,height:r,borderLeft:"1px solid #555",borderTop:"1px solid #555",boxSizing:"border-box"}},e.createElement("div",{style:{position:"absolute",top:Math.max(0,g),left:0,background:l?"rgba(66,119,127,0.6)":"rgba(66, 119, 127, 0.3)",cursor:"pointer",boxSizing:"border-box",width:20,height:Math.max(m-g,20),zIndex:100},onMouseOver:function(){s(!0)},onMouseOut:function(){s(!1)},onMouseDown:function(e){f({clientY:e.clientY,scrollY:n.scrollY})}}))});const R=M,P=(0,p.A)((0,h.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help");var _=o(5411),T=(0,s.PA)(function(t){var n=t.model,r=n.hideGaps,o=n.allowedGappyness;return r?e.createElement("div",{style:{display:"flex",alignItems:"center",gap:8}},e.createElement(a.A,{style:{whiteSpace:"nowrap"}},"Hide columns w/ >",o,"% gaps"),e.createElement(_.Ay,{style:{width:100},min:1,max:100,value:o,onChange:function(e,t){n.setAllowedGappyness(t)}})):null});const O=T;var D=(0,v.n9)()({margin:{margin:"auto",marginLeft:10}}),Q=(0,s.PA)(function(t){var n=t.model,r=n.mouseOverRowName,o=n.mouseCol,i=D().classes;return r&&void 0!==o?e.createElement(a.A,{className:i.margin},r,":",n.visibleColToSeqPosOneBased(r,o)," (",n.visibleColToRowLetter(r,o),")"):null});const N=Q,F=(0,p.A)((0,h.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");var L=o(1136),j=o(3300),z=o(3630),$=o(7872);const H=(0,p.A)((0,h.jsx)("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"}),"HelpOutline");var G=o(1080),V=o(3688);function W({onClose:e,helpText:t,label:n}){return(0,h.jsx)(V.A,{open:!0,onClose:e,title:"Help",titleNode:n?(0,h.jsxs)(h.Fragment,{children:["Help: ",n]}):void 0,onClick:e=>{e.stopPropagation()},onMouseDown:e=>{e.stopPropagation()},children:(0,h.jsx)(G.A,{children:t})})}function U({helpText:t,label:n}){const[r,o]=(0,e.useState)(!1);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(m.A,{size:"small",onClick:e=>{e.stopPropagation(),o(!0)},style:{marginLeft:4,padding:4},children:(0,h.jsx)(H,{fontSize:"small"})}),r?(0,h.jsxs)(e.Suspense,{fallback:null,children:[(0,h.jsx)(W,{helpText:t,label:n,onClose:e=>{e.stopPropagation(),o(!1)}})," "]}):null]})}const Y=e.forwardRef(function(e,t){return(0,h.jsx)(A.A,{...e,ref:t,style:{pointerEvents:"none",...e.style},slotProps:{...e.slotProps,paper:{style:{pointerEvents:"auto"}}}})}),K=(0,p.A)((0,h.jsx)("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight"),q=(0,p.A)((0,h.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-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckBox"),J=(0,p.A)((0,h.jsx)("path",{d:"M19 5v14H5V5zm0-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-2"}),"CheckBoxOutlineBlank"),X=(0,p.A)((0,h.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-5m0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"RadioButtonChecked"),Z=(0,p.A)((0,h.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"RadioButtonUnchecked");var ee=o(9868);const te=(0,ee.n)()({menuItemEndDecoration:{padding:0,margin:0,height:16}});function ne(e){const{classes:t}=te(),{type:n}=e;let r,o,i;switch("checked"in e&&({checked:r,disabled:o}=e),n){case"subMenu":i=(0,h.jsx)(K,{color:"action"});break;case"checkbox":if(r){const e=o?"inherit":void 0;i=(0,h.jsx)(q,{color:e})}else i=(0,h.jsx)(J,{color:"action"});break;case"radio":if(r){const e=o?"inherit":void 0;i=(0,h.jsx)(X,{color:e})}else i=(0,h.jsx)(Z,{color:"action"})}return(0,h.jsx)("div",{className:t.menuItemEndDecoration,children:i})}function re(e){if("string"==typeof e)return e.toLowerCase().replace(/\s+/g,"_")}function oe({title:t,Icon:n,inset:r,menuItems:o,onMenuItemClick:i,closeAfterItemClick:a,onCloseRoot:l,isOpen:s,onOpen:c,onClose:u}){const[d,f]=(0,e.useState)(null),p=re(t);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(b.A,{ref:f,"data-testid":p?`cascading-submenu-${p}`:void 0,onMouseOver:c,onFocus:c,onClick:c,children:[n?(0,h.jsx)(L.A,{children:(0,h.jsx)(n,{})}):null,(0,h.jsx)(j.A,{primary:t,inset:r}),(0,h.jsx)(F,{})]}),(0,h.jsx)(Y,{open:s,anchorEl:d,onClose:u,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},children:(0,h.jsx)(ie,{closeAfterItemClick:a,onMenuItemClick:i,menuItems:o,onCloseRoot:l})})]})}function ie({onMenuItemClick:t,closeAfterItemClick:n,menuItems:r,onCloseRoot:o}){const[i,a]=(0,e.useState)(),l=()=>{a(void 0)},s=r.some(e=>"icon"in e&&e.icon),c=r.some(e=>("checkbox"===e.type||"radio"===e.type)&&"helpText"in e&&e.helpText),u=r.toSorted((e,t)=>(t.priority||0)-(e.priority||0));return(0,h.jsx)(h.Fragment,{children:u.map((e,r)=>{if("subMenu"in e)return(0,h.jsx)(oe,{title:e.label,Icon:e.icon,inset:s&&!e.icon,onMenuItemClick:t,menuItems:e.subMenu,closeAfterItemClick:n,onCloseRoot:o,isOpen:i===r,onOpen:()=>{a(r)},onClose:l},`subMenu-${e.label}-${r}`);if("divider"===e.type)return(0,h.jsx)(z.A,{component:"li"},`divider-${r}`);if("subHeader"===e.type)return(0,h.jsx)($.A,{children:e.label},`subHeader-${e.label}-${r}`);const u=e,d=u.helpText,f="checkbox"===u.type||"radio"===u.type,p=re(u.label);return(0,h.jsxs)(b.A,{"data-testid":p?`cascading-menuitem-${p}`:void 0,disabled:Boolean(u.disabled),onClick:e=>{n&&o(),t(e,u.onClick)},onMouseOver:l,children:[u.icon?(0,h.jsx)(L.A,{children:(0,h.jsx)(u.icon,{})}):null,(0,h.jsx)(j.A,{primary:u.label,secondary:u.subLabel,inset:s&&!u.icon}),(0,h.jsx)("div",{style:{flexGrow:1,minWidth:10}}),f?(0,h.jsx)(ne,{type:u.type,checked:u.checked,disabled:u.disabled}):null,d?(0,h.jsx)(U,{helpText:d,label:u.label}):f&&c?(0,h.jsx)("div",{style:{marginLeft:4,padding:4,width:28,height:28}}):null]},`${u.label}-${r}`)})})}function ae({onMenuItemClick:e,closeAfterItemClick:t=!0,menuItems:n,open:r,onClose:o,anchorEl:i,anchorOrigin:a,transformOrigin:l,anchorReference:s,anchorPosition:c,slotProps:u,marginThreshold:d,style:f}){const p=Array.isArray(n)?n:n();return(0,h.jsx)(A.A,{anchorEl:i,open:r,onClose:o,anchorOrigin:a,transformOrigin:l,anchorReference:s,anchorPosition:c,slotProps:u,marginThreshold:d??void 0,style:f,children:(0,h.jsx)(ie,{menuItems:p,closeAfterItemClick:t,onMenuItemClick:e,onCloseRoot:o})})}const le=function({children:t,menuItems:n,closeAfterItemClick:r=!0,stopPropagation:o,disabled:i,setOpen:a,ButtonComponent:l=m.A,onClick:s,anchorOrigin:c,transformOrigin:u,marginThreshold:d,...f}){const[p,g]=(0,e.useState)(null),A=Boolean(p);(0,e.useEffect)(()=>{a?.(A)},[A,a]);const b=i??(Array.isArray(n)&&0===n.length);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(l,{onClick:e=>{o&&e.stopPropagation(),g(e.currentTarget),s?.(e)},...f,disabled:b,children:t}),A?(0,h.jsx)(ae,{open:A,onClose:()=>{g(null)},anchorEl:p,anchorOrigin:c,transformOrigin:u,marginThreshold:d,menuItems:n,closeAfterItemClick:r,onMenuItemClick:(e,t)=>{t()}}):null]})},se=(0,p.A)((0,h.jsx)("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3z"}),"AccountTree"),ce=(0,p.A)((0,h.jsx)("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 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-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m2 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"}),"Assignment"),ue=(0,p.A)((0,h.jsx)("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61"}),"FilterAlt"),de=(0,p.A)((0,h.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z"}),"FolderOpen"),fe=(0,p.A)((0,h.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),pe=(0,p.A)([(0,h.jsx)("circle",{cx:"12",cy:"12",r:"3.2"},"0"),(0,h.jsx)("path",{d:"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5"},"1")],"PhotoCamera"),he=(0,p.A)((0,h.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),ge=(0,p.A)((0,h.jsx)("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort"),me=(0,p.A)((0,h.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");function Ae(e){return function(e){if(Array.isArray(e))return be(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return be(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?be(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function be(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ve=(0,e.lazy)(function(){return Promise.resolve().then(o.bind(o,4290))}),ye=(0,e.lazy)(function(){return Promise.resolve().then(o.bind(o,3659))}),we=(0,e.lazy)(function(){return Promise.resolve().then(o.bind(o,7307))}),Ce=(0,e.lazy)(function(){return Promise.resolve().then(o.bind(o,3218))}),Se=(0,e.lazy)(function(){return Promise.resolve().then(o.bind(o,1814))}),xe=(0,e.lazy)(function(){return Promise.resolve().then(o.bind(o,3569))}),Ie=(0,s.PA)(function(t){var n=t.model,r=n.showDomains,o=n.actuallyShowDomains,i=n.subFeatureRows,a=n.noDomains,l=n.tracks,s=n.turnedOffTracks;return e.createElement(le,{menuItems:[{label:"Return to import form",icon:de,onClick:function(){n.reset()}},{label:"Metadata",icon:ce,onClick:function(){n.queueDialog(function(e){return[ve,{model:n,onClose:e}]})}},{label:"More settings",onClick:function(){n.queueDialog(function(e){return[Ce,{model:n,onClose:e}]})}},{label:"Tracks",icon:me,type:"subMenu",subMenu:l.map(function(e){return{label:e.model.name,type:"checkbox",checked:!s.has(e.model.id),onClick:function(){n.toggleTrack(e.model.id)}}})},{label:"Export SVG",icon:pe,onClick:function(){n.queueDialog(function(e){return[ye,{onClose:e,model:n}]})}}].concat(Ae(n.rows.length>=2?[{label:"Calculate neighbor joining tree (BLOSUM62)",icon:se,onClick:function(){try{n.calculateNeighborJoiningTreeFromMSA()}catch(e){console.error("Failed to calculate NJ tree:",e),n.setError(e)}}}]:[]),[{label:"Features/protein domains",type:"subMenu",subMenu:[{label:"Open domains...",icon:de,onClick:function(){n.queueDialog(function(e){return[Se,{handleClose:e,model:n}]})}},{label:"Query InterProScan for domains...",icon:he,onClick:function(){n.queueDialog(function(e){return[xe,{handleClose:e,model:n}]})}},{label:"Show domains".concat(a?" (no domains loaded)":""),disabled:a,icon:me,checked:!!o&&r,type:"checkbox",onClick:function(){n.setShowDomains(!r)}},{label:"Use sub-row layout".concat(a?" (no domains loaded)":""),disabled:a,checked:!!o&&i,icon:ge,type:"checkbox",onClick:function(){n.setSubFeatureRows(!i)}},{label:"Filter domains".concat(a?" (no domains loaded)":""),icon:ue,disabled:a,onClick:function(){n.queueDialog(function(e){return[we,{onClose:e,model:n}]})}}]}],Ae(n.extraViewMenuItems()))},e.createElement(fe,null))});const Ee=Ie;var ke=o(9586),Be=(0,v.n9)()({margin:{margin:"auto",marginLeft:10}});const Me=(0,s.PA)(function(t){var n=t.model.status,r=Be().classes;return n?e.createElement(a.A,{className:r.margin},e.createElement(ke.A,{message:n.msg,component:"span"})," ",n.url?e.createElement("a",{href:n.url,target:"_blank",rel:"noreferrer"},"(status)"):null):null});var Re=o(1314),Pe=(0,s.PA)(function(t){var n=t.model,r=n.currentAlignment,o=n.alignmentNames;return o.length>0?e.createElement(Re.A,{select:!0,variant:"outlined",value:r,size:"small",onChange:function(e){n.setCurrentAlignment(+e.target.value),n.setScrollX(0),n.setScrollY(0)}},o.map(function(t,n){return e.createElement(b.A,{key:"".concat(t,"-").concat(n),value:n},t)})):null});const _e=Pe,Te=(0,p.A)((0,h.jsx)("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10c1.38 0 2.5-1.12 2.5-2.5 0-.61-.23-1.2-.64-1.67-.08-.1-.13-.21-.13-.33 0-.28.22-.5.5-.5H16c3.31 0 6-2.69 6-6 0-4.96-4.49-9-10-9m5.5 11c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m-3-4c-.83 0-1.5-.67-1.5-1.5S13.67 6 14.5 6s1.5.67 1.5 1.5S15.33 9 14.5 9M5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S7.33 13 6.5 13 5 12.33 5 11.5m6-4c0 .83-.67 1.5-1.5 1.5S8 8.33 8 7.5 8.67 6 9.5 6s1.5.67 1.5 1.5"}),"Palette"),Oe=(0,p.A)((0,h.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");var De=o(3731);function Qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ne=(0,s.PA)(function(t){var n,r=t.model,o=r.colorSchemeName,i=r.drawMsaLetters,a=r.contrastLettering,l=r.hideGaps,s=r.bgColor,c=r.drawTree,u=r.showBranchLen,d=r.labelsAlignRight,f=r.drawNodeBubbles,p=r.drawLabels,h=r.treeWidthMatchesArea,g=r.noTree;return e.createElement(le,{closeAfterItemClick:!1,menuItems:[{label:"Color scheme",icon:Te,type:"subMenu",subMenu:Object.keys(De.A).map(function(e){return{label:e,type:"radio",checked:o===e,onClick:function(){r.setColorSchemeName(e)}}})},{label:"MSA settings",type:"subMenu",subMenu:[{label:"Draw letters",type:"checkbox",checked:i,onClick:function(){r.setDrawMsaLetters(!i)}},{label:"Color letters instead of background of tiles",type:"checkbox",checked:!s,onClick:function(){r.setBgColor(!s)}},{label:"Use contrast lettering",type:"checkbox",checked:a,onClick:function(){r.setContrastLettering(!a)}},{label:"Enable hiding gappy columns?",type:"checkbox",checked:l,onClick:function(){r.setHideGaps(!l)}}]},{label:"Tree settings",type:"subMenu",icon:se,subMenu:[{label:"Show branch length",type:"checkbox",checked:u,onClick:function(){r.setShowBranchLen(!u)}},{label:"Show tree",type:"checkbox",checked:c,onClick:function(){r.setDrawTree(!c)}},{label:"Draw clickable bubbles on tree branches",type:"checkbox",checked:f,onClick:function(){r.setDrawNodeBubbles(!f)}},{label:"Tree labels align right",type:"checkbox",checked:d,onClick:function(){r.setLabelsAlignRight(!d)}},{label:"Draw labels",type:"checkbox",checked:p,onClick:function(){r.setDrawLabels(!p)}}].concat((n=g?[]:[{label:"Make tree width fit to tree area",type:"checkbox",checked:h,onClick:function(){r.setTreeWidthMatchesArea(!h)}}],function(e){if(Array.isArray(e))return Qe(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return Qe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qe(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))}]},e.createElement(Oe,null))});const Fe=Ne,Le=(0,p.A)([(0,h.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"},"0"),(0,h.jsx)("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2z"},"1")],"ZoomIn"),je=(0,p.A)((0,h.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14M7 9h5v1H7z"}),"ZoomOut");var ze=(0,s.PA)(function(t){var n=t.model;return e.createElement(e.Fragment,null,e.createElement(m.A,{onClick:function(){n.zoomIn()}},e.createElement(Le,null)),e.createElement(m.A,{onClick:function(){n.zoomOut()}},e.createElement(je,null)))});const $e=ze,He=(0,p.A)((0,h.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert"),Ge=(0,p.A)((0,h.jsx)("path",{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8m-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"}),"RestartAlt");var Ve=(0,s.PA)(function(t){var n=t.model;return e.createElement(le,{menuItems:[{label:"Fit both vertically/horizontally",onClick:function(){n.fit()}},{label:"Fit vertically",onClick:function(){n.fitVertically()}},{label:"Fit horizontally",onClick:function(){n.fitHorizontally()}},{label:"Reset zoom to default",icon:Ge,onClick:function(){n.resetZoom()}},{label:"Show extra zoom options",checked:n.showZoomStar,type:"checkbox",onClick:function(){n.setShowZoomStar(!n.showZoomStar)}}]},e.createElement(He,null))});const We=Ve;var Ue=(0,v.n9)()(function(e){return{dpad:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)"},icon:{padding:e.spacing(.5)}}}),Ye=(0,s.PA)(function(t){var n=t.model,r=Ue().classes;return e.createElement("div",{className:r.dpad},e.createElement("div",null),e.createElement(m.A,{className:r.icon,onClick:function(){n.zoomInVertical()}},"Y+"),e.createElement("div",null),e.createElement(m.A,{className:r.icon,onClick:function(){n.zoomOutHorizontal()}},"X-"),e.createElement(m.A,{className:r.icon,onClick:function(){n.resetZoom()}},e.createElement(Ge,null)),e.createElement(m.A,{className:r.icon,onClick:function(){n.zoomInHorizontal()}},"X+"),e.createElement("div",null),e.createElement(m.A,{className:r.icon,onClick:function(){n.zoomOutVertical()}},"Y-"),e.createElement("div",null))});const Ke=Ye;function qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Je=(0,e.lazy)(function(){return Promise.resolve().then(o.bind(o,6956))}),Xe=(0,s.PA)(function(t){var n,r,o=t.model,i=function(){const t=(0,e.useRef)(null),[n,r]=(0,e.useState)({width:void 0,height:void 0});return(0,e.useEffect)(()=>{if(!t.current)return;const e="undefined"!=typeof window&&"ResizeObserver"in window?window.ResizeObserver:void 0;if(!e)return;const n=new e(e=>{r({width:e[0].contentRect.width,height:e[0].contentRect.height})});return n.observe(t.current),()=>{n.disconnect()}},[]),[t,n]}(),a=(r=2,function(e){if(Array.isArray(e))return e}(n=i)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(n,r)||function(e,t){if(e){if("string"==typeof e)return qe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qe(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=a[0],s=a[1].height;return(0,e.useEffect)(function(){o.setHeaderHeight(s||0)},[o,s]),e.createElement("div",{ref:l,style:{display:"flex"}},e.createElement(Ee,{model:o}),e.createElement(Fe,{model:o}),e.createElement($e,{model:o}),o.showZoomStar?e.createElement(Ke,{model:o}):null,e.createElement(We,{model:o}),e.createElement(O,{model:o}),e.createElement("div",{style:{paddingLeft:20,margin:"auto"}},e.createElement(_e,{model:o})),e.createElement(N,{model:o}),e.createElement(Ze,null),e.createElement(Me,{model:o}),e.createElement(m.A,{onClick:function(){o.queueDialog(function(e){return[Je,{onClose:e}]})}},e.createElement(P,null)))});function Ze(){return e.createElement("div",{style:{flex:1}})}const et=Xe;function tt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return nt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var rt=(0,s.PA)(function(t){var n=t.model,r=tt((0,e.useState)(),2),o=r[0],i=r[1],a=tt((0,e.useState)(!1),2),l=a[0],s=a[1],c=(0,e.useRef)(!1),u=n.scrollX,d=n.msaAreaWidth,f=n.minimapHeight,p=n.colWidth,h=d/n.numColumns/p,g=-u,m=g*h,A=(g+d)*h,b="rgba(66, 119, 127, 0.3)",v=Math.max(A-m,20);(0,e.useEffect)(function(){function e(e){void 0!==o&&(c.current||(c.current=!0,window.requestAnimationFrame(function(){n.setScrollX(o.scrollX-(e.clientX-o.clientX)/h),c.current=!1})))}function t(){i(void 0)}if(void 0!==o)return document.addEventListener("mousemove",e),document.addEventListener("mouseup",t),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mousemove",t)}},[n,h,o]);var y=f-12;return e.createElement("div",{style:{position:"relative",height:f,width:"100%"}},e.createElement("div",{style:{height:12,boxSizing:"border-box",border:"1px solid #555"}}),e.createElement("div",{style:{position:"absolute",top:0,left:Math.max(0,m),background:l?"rgba(66,119,127,0.6)":b,cursor:"pointer",height:12,width:v,zIndex:100},onMouseOver:function(){s(!0)},onMouseOut:function(){s(!1)},onMouseDown:function(e){i({clientX:e.clientX,scrollX:n.scrollX})}}),e.createElement("svg",{height:y,style:{width:"100%"}},e.createElement("polygon",{fill:b,points:[[m+v,0],[m,0],[0,y],[d,y]].toString()})))});const ot=rt;var it=o(6819);function at(){return e.createElement("div",{style:{position:"absolute",left:"50%",top:"50%"}},e.createElement(it.A,null),e.createElement(a.A,null,"Loading..."))}function lt(){return"undefined"!=typeof window}function st(e){return dt(e)?(e.nodeName||"").toLowerCase():"#document"}function ct(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ut(e){var t;return null==(t=(dt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function dt(e){return!!lt()&&(e instanceof Node||e instanceof ct(e).Node)}function ft(e){return!!lt()&&(e instanceof Element||e instanceof ct(e).Element)}function pt(e){return!!lt()&&(e instanceof HTMLElement||e instanceof ct(e).HTMLElement)}function ht(e){return!(!lt()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof ct(e).ShadowRoot)}const gt=new Set(["inline","contents"]);function mt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Bt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!gt.has(o)}const At=new Set(["table","td","th"]);function bt(e){return At.has(st(e))}const vt=[":popover-open",":modal"];function yt(e){return vt.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const wt=["transform","translate","scale","rotate","perspective"],Ct=["transform","translate","scale","rotate","perspective","filter"],St=["paint","layout","strict","content"];function xt(e){const t=It(),n=ft(e)?Bt(e):e;return wt.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Ct.some(e=>(n.willChange||"").includes(e))||St.some(e=>(n.contain||"").includes(e))}function It(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Et=new Set(["html","body","#document"]);function kt(e){return Et.has(st(e))}function Bt(e){return ct(e).getComputedStyle(e)}function Mt(e){return ft(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Rt(e){if("html"===st(e))return e;const t=e.assignedSlot||e.parentNode||ht(e)&&e.host||ut(e);return ht(t)?t.host:t}function Pt(e){const t=Rt(e);return kt(t)?e.ownerDocument?e.ownerDocument.body:e.body:pt(t)&&mt(t)?t:Pt(t)}function _t(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Pt(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=ct(o);if(i){const e=Tt(a);return t.concat(a,a.visualViewport||[],mt(o)?o:[],e&&n?_t(e):[])}return t.concat(o,_t(o,[],n))}function Tt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var Ot="undefined"!=typeof document?e.useLayoutEffect:function(){};const Dt={...t}.useInsertionEffect||(e=>e());function Qt(t){const n=e.useRef(()=>{});return Dt(()=>{n.current=t}),e.useCallback(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)},[])}var Nt=o(8092);const Ft=Math.min,Lt=Math.max,jt=Math.round,zt=(Math.floor,e=>({x:e,y:e}));function $t(e){return e.split("-")[0]}function Ht(e){return e.split("-")[1]}const Gt=new Set(["top","bottom"]);function Vt(e){return Gt.has($t(e))?"y":"x"}function Wt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ut(e,t,n){let{reference:r,floating:o}=e;const i=Vt(t),a=function(e){return"x"===Vt(e)?"y":"x"}(t),l="y"===a?"height":"width",s=$t(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;let p;switch(s){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Ht(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}const Yt=new Set(["left","top"]);function Kt(e){const t=Bt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=pt(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=jt(n)!==i||jt(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function qt(e){return ft(e)?e:e.contextElement}function Jt(e){const t=qt(e);if(!pt(t))return zt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Kt(t);let a=(i?jt(n.width):n.width)/r,l=(i?jt(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const Xt=zt(0);function Zt(e){const t=ct(e);return It()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Xt}function en(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=qt(e);let a=zt(1);t&&(r?ft(r)&&(a=Jt(r)):a=Jt(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ct(e))&&t}(i,n,r)?Zt(i):zt(0);let s=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=ct(i),t=r&&ft(r)?ct(r):r;let n=e,o=Tt(n);for(;o&&r&&t!==n;){const e=Jt(o),t=o.getBoundingClientRect(),r=Bt(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=i,c+=a,n=ct(o),o=Tt(n)}}return Wt({width:u,height:d,x:s,y:c})}function tn(e,t){const n=Mt(e).scrollLeft;return t?t.left+n:en(ut(e)).left+n}function nn(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-tn(e,n),y:n.top+t.scrollTop}}const rn=new Set(["absolute","fixed"]);function on(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=ct(e),r=ut(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const e=It();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}const c=tn(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else c<=25&&(i+=c);return{width:i,height:a,x:l,y:s}}(e,n);else if("document"===t)r=function(e){const t=ut(e),n=Mt(e),r=e.ownerDocument.body,o=Lt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Lt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+tn(e);const l=-n.scrollTop;return"rtl"===Bt(r).direction&&(a+=Lt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(ut(e));else if(ft(t))r=function(e,t){const n=en(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=pt(e)?Jt(e):zt(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Zt(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Wt(r)}function an(e,t){const n=Rt(e);return!(n===t||!ft(n)||kt(n))&&("fixed"===Bt(n).position||an(n,t))}function ln(e,t,n){const r=pt(t),o=ut(t),i="fixed"===n,a=en(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=zt(0);function c(){s.x=tn(o)}if(r||!r&&!i)if(("body"!==st(t)||mt(o))&&(l=Mt(t)),r){const e=en(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=!o||r||i?zt(0):nn(o,l);return{x:a.left+l.scrollLeft-s.x-u.x,y:a.top+l.scrollTop-s.y-u.y,width:a.width,height:a.height}}function sn(e){return"static"===Bt(e).position}function cn(e,t){if(!pt(e)||"fixed"===Bt(e).position)return null;if(t)return t(e);let n=e.offsetParent;return ut(e)===n&&(n=n.ownerDocument.body),n}function un(e,t){const n=ct(e);if(yt(e))return n;if(!pt(e)){let t=Rt(e);for(;t&&!kt(t);){if(ft(t)&&!sn(t))return t;t=Rt(t)}return n}let r=cn(e,t);for(;r&&bt(r)&&sn(r);)r=cn(r,t);return r&&kt(r)&&sn(r)&&!xt(r)?n:r||function(e){let t=Rt(e);for(;pt(t)&&!kt(t);){if(xt(t))return t;if(yt(t))return null;t=Rt(t)}return null}(e)||n}const dn={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=ut(r),l=!!t&&yt(t.floating);if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},c=zt(1);const u=zt(0),d=pt(r);if((d||!d&&!i)&&(("body"!==st(r)||mt(a))&&(s=Mt(r)),pt(r))){const e=en(r);c=Jt(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!a||d||i?zt(0):nn(a,s);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-s.scrollTop*c.y+u.y+f.y}},getDocumentElement:ut,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?yt(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=_t(e,[],!1).filter(e=>ft(e)&&"body"!==st(e)),o=null;const i="fixed"===Bt(e).position;let a=i?Rt(e):e;for(;ft(a)&&!kt(a);){const t=Bt(a),n=xt(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&rn.has(o.position)||mt(a)&&!n&&an(e,a))?r=r.filter(e=>e!==a):o=t,a=Rt(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((e,n)=>{const r=on(t,n,o);return e.top=Lt(r.top,e.top),e.right=Ft(r.right,e.right),e.bottom=Ft(r.bottom,e.bottom),e.left=Lt(r.left,e.left),e},on(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:un,getElementRects:async function(e){const t=this.getOffsetParent||un,n=this.getDimensions,r=await n(e.floating);return{reference:ln(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Kt(e);return{width:t,height:n}},getScale:Jt,isElement:ft,isRTL:function(e){return"rtl"===Bt(e).direction}},fn=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:l}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=$t(n),l=Ht(n),s="y"===Vt(n),c=Yt.has(a)?-1:1,u=i&&s?-1:1,d="function"==typeof(f=t)?f(e):f;var f;let{mainAxis:p,crossAxis:h,alignmentAxis:g}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof g&&(h="end"===l?-1*g:g),s?{x:h*u,y:p*c}:{x:p*c,y:h*u}}(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},pn=(e,t,n)=>{const r=new Map,o={platform:dn,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Ut(c,r,s),f=r,p={},h=0;for(let n=0;n<l.length;n++){const{name:i,fn:g}=l[n],{x:m,y:A,data:b,reset:v}=await g({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=m?m:u,d=null!=A?A:d,p={...p,[i]:{...p[i],...b}},v&&h<=50&&(h++,"object"==typeof v&&(v.placement&&(f=v.placement),v.rects&&(c=!0===v.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):v.rects),({x:u,y:d}=Ut(c,f,s))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var hn="undefined"!=typeof document?e.useLayoutEffect:function(){};function gn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!gn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||gn(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function mn(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function An(e,t){const n=mn(e);return Math.round(t*n)/n}function bn(t){const n=e.useRef(t);return hn(()=>{n.current=t}),n}const vn="data-floating-ui-focusable",yn="active",wn="selected",Cn={...t};let Sn=!1,xn=0;const In=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+xn++,En=Cn.useId||function(){const[t,n]=e.useState(()=>Sn?In():void 0);return Ot(()=>{null==t&&n(In())},[]),e.useEffect(()=>{Sn=!0},[]),t};const kn=e.createContext(null),Bn=e.createContext(null);function Mn(e){return null!=e&&null!=e.clientX}function Rn(t){void 0===t&&(t={});const{nodeId:n}=t,r=function(t){const{open:n=!1,onOpenChange:r,elements:o}=t,i=En(),a=e.useRef({}),[l]=e.useState(()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}()),s=null!=((null==(h=e.useContext(kn))?void 0:h.id)||null),[c,u]=e.useState(o.reference),d=Qt((e,t,n)=>{a.current.openEvent=e?t:void 0,l.emit("openchange",{open:e,event:t,reason:n,nested:s}),null==r||r(e,t,n)}),f=e.useMemo(()=>({setPositionReference:u}),[]),p=e.useMemo(()=>({reference:c||o.reference||null,floating:o.floating||null,domReference:o.reference}),[c,o.reference,o.floating]);var h;return e.useMemo(()=>({dataRef:a,open:n,onOpenChange:d,elements:p,events:l,floatingId:i,refs:f}),[n,d,p,l,i,f])}({...t,elements:{reference:null,floating:null,...t.elements}}),o=t.rootContext||r,i=o.elements,[a,l]=e.useState(null),[s,c]=e.useState(null),u=(null==i?void 0:i.domReference)||a,d=e.useRef(null),f=e.useContext(Bn);Ot(()=>{u&&(d.current=u)},[u]);const p=function(t){void 0===t&&(t={});const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:l}={},transform:s=!0,whileElementsMounted:c,open:u}=t,[d,f]=e.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[p,h]=e.useState(o);gn(p,o)||h(o);const[g,m]=e.useState(null),[A,b]=e.useState(null),v=e.useCallback(e=>{e!==S.current&&(S.current=e,m(e))},[]),y=e.useCallback(e=>{e!==x.current&&(x.current=e,b(e))},[]),w=a||g,C=l||A,S=e.useRef(null),x=e.useRef(null),I=e.useRef(d),E=null!=c,k=bn(c),B=bn(i),M=bn(u),R=e.useCallback(()=>{if(!S.current||!x.current)return;const e={placement:n,strategy:r,middleware:p};B.current&&(e.platform=B.current),pn(S.current,x.current,e).then(e=>{const t={...e,isPositioned:!1!==M.current};P.current&&!gn(I.current,t)&&(I.current=t,Nt.flushSync(()=>{f(t)}))})},[p,n,r,B,M]);hn(()=>{!1===u&&I.current.isPositioned&&(I.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);const P=e.useRef(!1);hn(()=>(P.current=!0,()=>{P.current=!1}),[]),hn(()=>{if(w&&(S.current=w),C&&(x.current=C),w&&C){if(k.current)return k.current(w,C,R);R()}},[w,C,R,k,E]);const _=e.useMemo(()=>({reference:S,floating:x,setReference:v,setFloating:y}),[v,y]),T=e.useMemo(()=>({reference:w,floating:C}),[w,C]),O=e.useMemo(()=>{const e={position:r,left:0,top:0};if(!T.floating)return e;const t=An(T.floating,d.x),n=An(T.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+n+"px)",...mn(T.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,s,T.floating,d.x,d.y]);return e.useMemo(()=>({...d,update:R,refs:_,elements:T,floatingStyles:O}),[d,R,_,T,O])}({...t,elements:{...i,...s&&{reference:s}}}),h=e.useCallback(e=>{const t=ft(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;c(t),p.refs.setReference(t)},[p.refs]),g=e.useCallback(e=>{(ft(e)||null===e)&&(d.current=e,l(e)),(ft(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!ft(e))&&p.refs.setReference(e)},[p.refs]),m=e.useMemo(()=>({...p.refs,setReference:g,setPositionReference:h,domReference:d}),[p.refs,g,h]),A=e.useMemo(()=>({...p.elements,domReference:u}),[p.elements,u]),b=e.useMemo(()=>({...p,...o,refs:m,elements:A,nodeId:n}),[p,m,A,n,o]);return Ot(()=>{o.dataRef.current.floatingContext=b;const e=null==f?void 0:f.nodesRef.current.find(e=>e.id===n);e&&(e.context=b)}),e.useMemo(()=>({...p,context:b,refs:m,elements:A}),[p,m,A,b])}function Pn(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[yn]:t,[wn]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[vn]:""},...i,...t.map(t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>t?(Object.entries(t).forEach(t=>{let[n,i]=t;var a;o&&[yn,wn].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)})):e[n]=i)}),e):e,{})}}var _n=o(7752),Tn=o(2658),On=o(844);const Dn=(0,ee.n)()(e=>({tooltip:{position:"absolute",pointerEvents:"none",backgroundColor:(0,_n.X4)(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.fontSize,lineHeight:Math.round(14e4)/1e5+"em",maxWidth:300,wordWrap:"break-word"}}));function Qn({clientPoint:t,children:n,placement:r="right"}){const o=(0,Tn.A)(),i=o.components?.MuiPopper,{classes:a}=Dn(),{refs:l,floatingStyles:s,context:c}=Rn({placement:r,strategy:"fixed",middleware:[{...fn(5),options:[5,void 0]}]});const u=function(t,n){void 0===n&&(n={});const{open:r,dataRef:o,elements:{floating:i,domReference:a},refs:l}=t,{enabled:s=!0,axis:c="both",x:u=null,y:d=null}=n,f=e.useRef(!1),p=e.useRef(null),[h,g]=e.useState(),[m,A]=e.useState([]),b=Qt((e,t)=>{f.current||o.current.openEvent&&!Mn(o.current.openEvent)||l.setPositionReference(function(e,t){let n=null,r=null,o=!1;return{contextElement:e||void 0,getBoundingClientRect(){var i;const a=(null==e?void 0:e.getBoundingClientRect())||{width:0,height:0,x:0,y:0},l="x"===t.axis||"both"===t.axis,s="y"===t.axis||"both"===t.axis,c=["mouseenter","mousemove"].includes((null==(i=t.dataRef.current.openEvent)?void 0:i.type)||"")&&"touch"!==t.pointerType;let u=a.width,d=a.height,f=a.x,p=a.y;return null==n&&t.x&&l&&(n=a.x-t.x),null==r&&t.y&&s&&(r=a.y-t.y),f-=n||0,p-=r||0,u=0,d=0,!o||c?(u="y"===t.axis?a.width:0,d="x"===t.axis?a.height:0,f=l&&null!=t.x?t.x:f,p=s&&null!=t.y?t.y:p):o&&!c&&(d="x"===t.axis?a.height:d,u="y"===t.axis?a.width:u),o=!0,{width:u,height:d,x:f,y:p,top:p,right:f+u,bottom:p+d,left:f}}}}(a,{x:e,y:t,axis:c,dataRef:o,pointerType:h}))}),v=Qt(e=>{null==u&&null==d&&(r?p.current||A([]):b(e.clientX,e.clientY))}),y=function(e){const t=["mouse","pen"];return t.push("",void 0),t.includes(e)}(h)?i:r,w=e.useCallback(()=>{if(!y||!s||null!=u||null!=d)return;const e=ct(i);function t(n){const r=function(e){return"composedPath"in e?e.composedPath()[0]:e.target}(n);!function(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&ht(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}(i,r)?b(n.clientX,n.clientY):(e.removeEventListener("mousemove",t),p.current=null)}if(!o.current.openEvent||Mn(o.current.openEvent)){e.addEventListener("mousemove",t);const n=()=>{e.removeEventListener("mousemove",t),p.current=null};return p.current=n,n}l.setPositionReference(a)},[y,s,u,d,i,o,l,a,b]);e.useEffect(()=>w(),[w,m]),e.useEffect(()=>{s&&!i&&(f.current=!1)},[s,i]),e.useEffect(()=>{!s&&r&&(f.current=!0)},[s,r]),Ot(()=>{!s||null==u&&null==d||(f.current=!1,b(u,d))},[s,u,d,b]);const C=e.useMemo(()=>{function e(e){let{pointerType:t}=e;g(t)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:v,onMouseEnter:v}},[v]);return e.useMemo(()=>s?{reference:C}:{},[s,C])}(c,t),{getFloatingProps:d}=function(t){void 0===t&&(t=[]);const n=t.map(e=>null==e?void 0:e.reference),r=t.map(e=>null==e?void 0:e.floating),o=t.map(e=>null==e?void 0:e.item),i=e.useCallback(e=>Pn(e,t,"reference"),n),a=e.useCallback(e=>Pn(e,t,"floating"),r),l=e.useCallback(e=>Pn(e,t,"item"),o);return e.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:l}),[i,a,l])}([u]);return(0,h.jsx)(On.A,{container:i?.defaultProps?.container,children:(0,h.jsx)("div",{className:a.tooltip,ref:l.setFloating,style:{...s,zIndex:1e5,visibility:"translate(0px, 0px)"===s.transform?"hidden":void 0,pointerEvents:"none"},...d(),children:n})})}var Nn=o(8596),Fn=o(5095),Ln=o(2973),jn=o(3673);function zn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var $n=(0,s.PA)(function(t){var n=t.model,r=t.offsetX,o=t.offsetY,i=n.colWidth,a=n.rowHeight,l=n.scrollY,s=n.scrollX,c=n.colorScheme,u=n.blockSize,d=n.mouseClickCol,f=n.mouseClickRow,p=n.highResScaleFactor,h=(0,Tn.A)(),g=(0,e.useMemo)(function(){return(0,jn.Sl)(c,h)},[c,h]),m=(0,e.useRef)(null);(0,e.useEffect)(function(){var e,t=null===(e=m.current)||void 0===e?void 0:e.getContext("2d");if(t)return(0,Nn.fm)(function(){t.resetTransform(),t.clearRect(0,0,u*p,u*p),n.actuallyShowDomains&&(0,Fn.X)({ctx:t,offsetX:r,offsetY:o,model:n}),(0,Ln.H)({ctx:t,theme:h,offsetX:r,offsetY:o,contrastScheme:g,model:n})})},[n,r,o,h,u,p,g]);var A,b,v=(A=(0,e.useState)(),b=2,function(e){if(Array.isArray(e))return e}(A)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(A,b)||function(e,t){if(e){if("string"==typeof e)return zn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zn(e,t):void 0}}(A,b)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),y=v[0],w=v[1],C=n.hoveredInsertion;return e.createElement(e.Fragment,null,e.createElement("canvas",{ref:m,onMouseMove:function(e){if(m.current){w({x:e.clientX,y:e.clientY});var t=m.current.getBoundingClientRect(),l=t.left,s=t.top,c=e.clientX-l+r,u=e.clientY-s+o,d=Math.floor(c/i),f=Math.floor(u/a);d>=0&&d<n.numColumns&&f>=0&&f<n.numRows?n.setMousePos(d,f):n.setMousePos(void 0,void 0)}},onClick:function(e){if(m.current){var t=m.current.getBoundingClientRect(),l=t.left,s=t.top,c=e.clientX-l+r,u=e.clientY-s+o,p=Math.floor(c/i),h=Math.floor(u/a);p===d&&h===f?n.setMouseClickPos(void 0,void 0):n.setMouseClickPos(p,h)}},onMouseLeave:function(){n.setMousePos(),w(void 0)},width:u*p,height:u*p,style:{position:"absolute",top:l+o,left:s+r,width:u,height:u}}),C&&y?e.createElement(Qn,{clientPoint:{x:y.x,y:y.y+15}},"Insertion (",C.letters.length,"amino"===n.sequenceType?"aa":"bp","):"," ",C.letters.length>20?"".concat(C.letters.slice(0,20),"..."):C.letters):null)});const Hn=$n;function Gn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Wn=(0,s.PA)(function(t){var n=t.model,r=n.MSA,o=n.verticalScrollbarWidth,i=n.msaFilehandle,a=n.height,l=n.msaAreaWidth,s=n.blocks2d,c=(0,e.useRef)(null),u=(0,e.useRef)(!1),d=(0,e.useRef)(0),f=(0,e.useRef)(0),p=(0,e.useRef)(0),h=(0,e.useRef)(0),g=Gn((0,e.useState)(!1),2),m=g[0],A=g[1];return(0,e.useEffect)(function(){var e=c.current;if(e)return e.addEventListener("wheel",t,{passive:!1}),function(){e.removeEventListener("wheel",t)};function t(e){d.current+=e.deltaX,f.current+=e.deltaY,u.current||(u.current=!0,requestAnimationFrame(function(){n.doScrollX(-d.current),n.doScrollY(-f.current),d.current=0,f.current=0,u.current=!1})),e.preventDefault(),e.stopPropagation()}},[n]),(0,e.useEffect)(function(){var e=function(){};function t(e){e.preventDefault();var t=e.clientX,r=e.clientY,o=t-p.current,i=r-h.current;(o||i)&&(u.current||(u.current=!0,window.requestAnimationFrame(function(){n.doScrollX(o),n.doScrollY(i),u.current=!1,p.current=e.clientX,h.current=e.clientY})))}function r(){p.current=0,m&&A(!1)}return m&&(window.addEventListener("mousemove",t,!0),window.addEventListener("mouseup",r,!0),e=function(){window.removeEventListener("mousemove",t,!0),window.removeEventListener("mouseup",r,!0)}),e},[n,m]),e.createElement("div",{ref:c,onMouseDown:function(e){var t=e.target;t.draggable||t.dataset.resizer||0===e.button&&(p.current=e.clientX,h.current=e.clientY,A(!0))},onMouseUp:function(e){e.preventDefault(),A(!1)},onMouseLeave:function(e){e.preventDefault()},style:{position:"relative",height:a,width:l-o,overflow:"hidden"}},r||i?r?s.map(function(t){var r=Gn(t,2),o=r[0],i=r[1];return e.createElement(Hn,{key:"".concat(o,"_").concat(i),model:n,offsetX:o,offsetY:i})}):e.createElement(at,null):null)});const Un=Wn;var Yn=o(2163);function Kn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return qn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function qn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Jn="rgba(0,0,0,0.15)",Xn="rgba(128,128,0,0.2)",Zn=(0,s.PA)(function(t){var n=t.model,r=(0,e.useRef)(null),o=n.height,i=n.msaAreaWidth-n.verticalScrollbarWidth;return(0,e.useEffect)(function(){var e,t=null===(e=r.current)||void 0===e?void 0:e.getContext("2d");return t?(0,Nn.fm)(function(){(0,Yn._n)(n)&&function(e){var t=e.ctx,n=e.model,r=n.mouseCol,o=n.colWidth,i=n.msaAreaWidth,a=n.verticalScrollbarWidth,l=n.height,s=n.rowHeight,c=n.scrollX,u=n.scrollY,d=n.mouseRow,f=n.mouseCol2,p=n.mouseClickRow,h=n.mouseClickCol,g=n.relativeTo,m=n.rowNamesSet,A=n.hoveredTreeNode,b=n.highlightedColumns,v=i-a;if(t.resetTransform(),t.clearRect(0,0,v,l),g){var y=m.get(g);void 0!==y&&(t.fillStyle="rgba(0,128,255,0.3)",t.fillRect(0,y*s+u,v,s))}if(A){t.fillStyle="rgba(255,165,0,0.15)";var w,C=Kn(A.descendantNames);try{for(C.s();!(w=C.n()).done;){var S=w.value,x=m.get(S);void 0!==x&&t.fillRect(0,x*s+u,v,s)}}catch(e){C.e(e)}finally{C.f()}}if(null!=b&&b.length){t.fillStyle=Xn;var I,E=Kn(b);try{for(E.s();!(I=E.n()).done;){var k=I.value;t.fillRect(k*o+c,0,o,l)}}catch(e){E.e(e)}finally{E.f()}}void 0!==r&&(t.fillStyle=Jn,t.fillRect(r*o+c,0,o,l)),void 0!==d&&(t.fillStyle=Jn,t.fillRect(0,d*s+u,v,s)),void 0!==h&&(t.fillStyle=Xn,t.fillRect(h*o+c,0,o,l)),void 0!==p&&(t.fillStyle=Xn,t.fillRect(0,p*s+u,v,s)),void 0!==f&&(t.fillStyle=Xn,t.fillRect(f*o+c,0,o,l))}({ctx:t,model:n})}):void 0},[n]),e.createElement("canvas",{ref:r,id:"mouseover",width:i,height:o,style:{position:"absolute",top:0,left:0,width:i,height:o,zIndex:1e3,pointerEvents:"none"}})});const er=Zn;var tr=(0,s.PA)(function(t){var n=t.model;return e.createElement("div",{style:{position:"relative"}},e.createElement(Un,{model:n}),e.createElement(er,{model:n}))});const nr=tr;class rr{constructor(){this.ids=[],this.values=[],this.length=0}clear(){this.length=0}push(e,t){let n=this.length++;for(;n>0;){const e=n-1>>1,r=this.values[e];if(t>=r)break;this.ids[n]=this.ids[e],this.values[n]=r,n=e}this.ids[n]=e,this.values[n]=t}pop(){if(0===this.length)return;const e=this.ids,t=this.values,n=e[0],r=--this.length;if(r>0){const n=e[r],o=t[r];let i=0;const a=r>>1;for(;i<a;){const n=1+(i<<1),a=n+1,l=n+(+(a<r)&+(t[a]<t[n]));if(t[l]>=o)break;e[i]=e[l],t[i]=t[l],i=l}e[i]=n,t[i]=o}return n}peek(){return this.length>0?this.ids[0]:void 0}peekValue(){return this.length>0?this.values[0]:void 0}shrink(){this.ids.length=this.values.length=this.length}}const or=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class ir{static from(e,t=0){if(t%8!=0)throw new Error("byteOffset must be 8-byte aligned.");if(!e||void 0===e.byteLength||e.buffer)throw new Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");const[n,r]=new Uint8Array(e,t+0,2);if(251!==n)throw new Error("Data does not appear to be in a Flatbush format.");const o=r>>4;if(3!==o)throw new Error(`Got v${o} data when expected v3.`);const i=or[15&r];if(!i)throw new Error("Unrecognized array type.");const[a]=new Uint16Array(e,t+2,1),[l]=new Uint32Array(e,t+4,1);return new ir(l,a,i,void 0,e,t)}constructor(e,t=16,n=Float64Array,r=ArrayBuffer,o,i=0){if(void 0===e)throw new Error("Missing required argument: numItems.");if(isNaN(e)||e<=0)throw new Error(`Unexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.byteOffset=i;let a=e,l=a;this._levelBounds=[4*a];do{a=Math.ceil(a/this.nodeSize),l+=a,this._levelBounds.push(4*l)}while(1!==a);this.ArrayType=n,this.IndexArrayType=l<16384?Uint16Array:Uint32Array;const s=or.indexOf(n),c=4*l*n.BYTES_PER_ELEMENT;if(s<0)throw new Error(`Unexpected typed array class: ${n}.`);if(o)this.data=o,this._boxes=new n(o,i+8,4*l),this._indices=new this.IndexArrayType(o,i+8+c,l),this._pos=4*l,this.minX=this._boxes[this._pos-4],this.minY=this._boxes[this._pos-3],this.maxX=this._boxes[this._pos-2],this.maxY=this._boxes[this._pos-1];else{const o=this.data=new r(8+c+l*this.IndexArrayType.BYTES_PER_ELEMENT);this._boxes=new n(o,8,4*l),this._indices=new this.IndexArrayType(o,8+c,l),this._pos=0,this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,new Uint8Array(o,0,2).set([251,48+s]),new Uint16Array(o,2,1)[0]=t,new Uint32Array(o,4,1)[0]=e}this._queue=new rr}add(e,t,n=e,r=t){const o=this._pos>>2,i=this._boxes;return this._indices[o]=o,i[this._pos++]=e,i[this._pos++]=t,i[this._pos++]=n,i[this._pos++]=r,e<this.minX&&(this.minX=e),t<this.minY&&(this.minY=t),n>this.maxX&&(this.maxX=n),r>this.maxY&&(this.maxY=r),o}finish(){if(this._pos>>2!==this.numItems)throw new Error(`Added ${this._pos>>2} items when expected ${this.numItems}.`);const e=this._boxes;if(this.numItems<=this.nodeSize)return e[this._pos++]=this.minX,e[this._pos++]=this.minY,e[this._pos++]=this.maxX,void(e[this._pos++]=this.maxY);const t=this.maxX-this.minX||1,n=this.maxY-this.minY||1,r=new Uint32Array(this.numItems);for(let o=0,i=0;o<this.numItems;o++){const a=e[i++],l=e[i++],s=e[i++],c=e[i++],u=Math.floor(65535*((a+s)/2-this.minX)/t),d=Math.floor(65535*((l+c)/2-this.minY)/n);r[o]=cr(u,d)}lr(r,e,this._indices,0,this.numItems-1,this.nodeSize);for(let t=0,n=0;t<this._levelBounds.length-1;t++){const r=this._levelBounds[t];for(;n<r;){const t=n;let o=e[n++],i=e[n++],a=e[n++],l=e[n++];for(let t=1;t<this.nodeSize&&n<r;t++)o=Math.min(o,e[n++]),i=Math.min(i,e[n++]),a=Math.max(a,e[n++]),l=Math.max(l,e[n++]);this._indices[this._pos>>2]=t,e[this._pos++]=o,e[this._pos++]=i,e[this._pos++]=a,e[this._pos++]=l}}}search(e,t,n,r,o){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let i=this._boxes.length-4;const a=[],l=[];for(;void 0!==i;){const s=Math.min(i+4*this.nodeSize,ar(i,this._levelBounds));for(let c=i;c<s;c+=4){const s=this._boxes[c];if(n<s)continue;const u=this._boxes[c+1];if(r<u)continue;const d=this._boxes[c+2];if(e>d)continue;const f=this._boxes[c+3];if(t>f)continue;const p=0|this._indices[c>>2];i>=4*this.numItems?a.push(p):(void 0===o||o(p,s,u,d,f))&&l.push(p)}i=a.pop()}return l}neighbors(e,t,n=1/0,r=1/0,o){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let i=this._boxes.length-4;const a=this._queue,l=[],s=r*r;e:for(;void 0!==i;){const r=Math.min(i+4*this.nodeSize,ar(i,this._levelBounds));for(let n=i;n<r;n+=4){const r=0|this._indices[n>>2],l=this._boxes[n],c=this._boxes[n+1],u=this._boxes[n+2],d=this._boxes[n+3],f=e<l?l-e:e>u?e-u:0,p=t<c?c-t:t>d?t-d:0,h=f*f+p*p;h>s||(i>=4*this.numItems?a.push(r<<1,h):(void 0===o||o(r))&&a.push(1+(r<<1),h))}for(;a.length&&1&a.peek();){if(a.peekValue()>s)break e;if(l.push(a.pop()>>1),l.length===n)break e}i=a.length?a.pop()>>1:void 0}return a.clear(),l}}function ar(e,t){let n=0,r=t.length-1;for(;n<r;){const o=n+r>>1;t[o]>e?r=o:n=o+1}return t[n]}function lr(e,t,n,r,o,i){if(Math.floor(r/i)>=Math.floor(o/i))return;const a=e[r],l=e[r+o>>1],s=e[o];let c=s;const u=Math.max(a,l);s>u?c=u:u===a?c=Math.max(l,s):u===l&&(c=Math.max(a,s));let d=r-1,f=o+1;for(;;){do{d++}while(e[d]<c);do{f--}while(e[f]>c);if(d>=f)break;sr(e,t,n,d,f)}lr(e,t,n,r,f,i),lr(e,t,n,f+1,o,i)}function sr(e,t,n,r,o){const i=e[r];e[r]=e[o],e[o]=i;const a=4*r,l=4*o,s=t[a],c=t[a+1],u=t[a+2],d=t[a+3];t[a]=t[l],t[a+1]=t[l+1],t[a+2]=t[l+2],t[a+3]=t[l+3],t[l]=s,t[l+1]=c,t[l+2]=u,t[l+3]=d;const f=n[r];n[r]=n[o],n[o]=f}function cr(e,t){let n=e^t,r=65535^n,o=65535^(e|t),i=e&(65535^t),a=n|r>>1,l=n>>1^n,s=o>>1^r&i>>1^o,c=n&o>>1^i>>1^i;n=a,r=l,o=s,i=c,a=n&n>>2^r&r>>2,l=n&r>>2^r&(n^r)>>2,s^=n&o>>2^r&i>>2,c^=r&o>>2^(n^r)&i>>2,n=a,r=l,o=s,i=c,a=n&n>>4^r&r>>4,l=n&r>>4^r&(n^r)>>4,s^=n&o>>4^r&i>>4,c^=r&o>>4^(n^r)&i>>4,n=a,r=l,o=s,i=c,s^=n&o>>8^r&i>>8,c^=r&o>>8^(n^r)&i>>8,n=s^s>>1,r=c^c>>1;let u=e^t,d=r|65535^(u|n);return u=16711935&(u|u<<8),u=252645135&(u|u<<4),u=858993459&(u|u<<2),u=1431655765&(u|u<<1),d=16711935&(d|d<<8),d=252645135&(d|d<<4),d=858993459&(d|d<<2),d=1431655765&(d|d<<1),(d<<1|u)>>>0}var ur=(0,s.PA)(function(t){var n=t.node,r=t.model,o=t.onClose;return e.createElement(A.A,{anchorReference:"anchorPosition",anchorPosition:{left:n.x,top:n.y},transitionDuration:0,keepMounted:!0,open:Boolean(n),onClose:o},e.createElement(b.A,{dense:!0,disabled:!0},n.name),e.createElement(b.A,{dense:!0,onClick:function(){r.toggleCollapsed(n.id),o()}},r.collapsed.includes(n.id)?"Expand this node":"Collapse this node"),e.createElement(b.A,{dense:!0,onClick:function(){r.showOnly===n.id?r.setShowOnly(void 0):r.setShowOnly(n.id),o()}},r.showOnly===n.id?"Disable show only this node":"Show only this node"))});const dr=ur;var fr=(0,e.lazy)(function(){return Promise.resolve().then(o.bind(o,1918))}),pr=(0,s.PA)(function(t){var n=t.node,r=t.onClose,o=t.model,i=o.collapsed,a=o.collapsedLeaves,l=n.name;return e.createElement(A.A,{anchorReference:"anchorPosition",anchorPosition:{top:n.y,left:n.x},transitionDuration:0,keepMounted:!0,open:Boolean(n),onClose:r},e.createElement(b.A,{dense:!0,disabled:!0},l),e.createElement(b.A,{dense:!0,onClick:function(){o.queueDialog(function(e){return[fr,{info:o.getRowData(l),model:o,nodeName:l,onClose:e}]}),r()}},"More info..."),e.createElement(b.A,{dense:!0,onClick:function(){i.includes(n.id)?o.toggleCollapsed(n.id):n.id.endsWith("-leafnode")?o.toggleCollapsedLeaf(n.id):o.toggleCollapsedLeaf("".concat(n.id,"-leafnode")),r()}},i.includes(n.id)||a.includes(n.id)?"Show node":"Hide node"),e.createElement(b.A,{dense:!0,onClick:function(){o.drawRelativeTo(n.name),r()}},"Indicate differences from this row"),o.relativeTo?e.createElement(b.A,{dense:!0,onClick:function(){o.drawRelativeTo(void 0),r()}},"Clear reference row"):null)});const hr=pr;var gr=o(3940);function mr(e){return mr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mr(e)}function Ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function br(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ar(Object(n),!0).forEach(function(t){Sr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ar(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||yr(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yr(e,t){if(e){if("string"==typeof e)return wr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wr(e,t):void 0}}function wr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xr(r.key),r)}}function Sr(e,t,n){return(t=xr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xr(e){var t=function(e){if("object"!=mr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=mr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==mr(t)?t:t+""}var Ir=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Sr(this,"flatbush",null),Sr(this,"entries",[])},t=[{key:"clear",value:function(){this.flatbush=null,this.entries=[]}},{key:"insert",value:function(e){this.entries.push(e)}},{key:"finish",value:function(){if(0!==this.entries.length){this.flatbush=new ir(this.entries.length);var e,t=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=yr(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(a)throw o}}}}(this.entries);try{for(t.s();!(e=t.n()).done;){var n=e.value;this.flatbush.add(n.minX,n.minY,n.maxX,n.maxY)}}catch(e){t.e(e)}finally{t.f()}this.flatbush.finish()}else this.flatbush=null}},{key:"search",value:function(e){var t,n,r=this;return null!==(t=null===(n=this.flatbush)||void 0===n?void 0:n.search(e.minX,e.minY,e.maxX,e.maxY).map(function(e){return r.entries[e]}))&&void 0!==t?t:[]}}],t&&Cr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),Er=(0,s.PA)(function(t){var n=t.model,r=t.offsetY,o=(0,Tn.A)(),i=(0,e.useRef)(null),a=(0,e.useRef)(new Ir),l=(0,e.useRef)(null),s=vr((0,e.useState)(),2),c=s[0],u=s[1],d=vr((0,e.useState)(),2),f=d[0],p=d[1],h=vr((0,e.useState)(),2),g=h[0],m=h[1],A=n.scrollY,b=n.treeAreaWidth,v=n.blockSize,y=n.highResScaleFactor,w=b+gr.Ms,C=v,S=w*y,x=C*y,I=(0,e.useCallback)(function(e){n.incrementRef(),i.current=e},[n,C,w]);function E(e){var t=e.nativeEvent.offsetX,n=e.nativeEvent.offsetY,o=vr(a.current.search({minX:t,maxX:t+1,minY:n+r,maxY:n+1+r}),1)[0];return null!=o&&o.branch?br(br({},o),{},{x:e.clientX,y:e.clientY}):void 0}function k(e){var t=e.nativeEvent.offsetX,n=e.nativeEvent.offsetY,o=vr(a.current.search({minX:t,maxX:t+1,minY:n+r,maxY:n+1+r}),1)[0];return o&&!o.branch?br(br({},o),{},{x:e.clientX,y:e.clientY}):void 0}(0,e.useEffect)(function(){var e,t=null===(e=i.current)||void 0===e?void 0:e.getContext("2d");if(t)return(0,Nn.fm)(function(){t.resetTransform(),t.clearRect(0,0,(b+gr.Ms)*y,v*y),(0,gr.t0)({ctx:t,model:n,offsetY:r,clickMap:a.current,theme:o})})},[n,v,y,b,r,o]),(0,e.useEffect)(function(){var e,t=null===(e=l.current)||void 0===e?void 0:e.getContext("2d");if(t&&(t.resetTransform(),t.clearRect(0,0,b+gr.Ms,v),t.translate(0,-r),g)){var n=g.minX,o=g.maxX,i=g.minY,a=g.maxY;t.fillStyle="rgba(0,0,0,0.1)",t.fillRect(n,i,o-n,a-i)}},[g,r,v,b]);var B={width:w,height:C,top:A+r,left:0,position:"absolute"};return e.createElement(e.Fragment,null,null!=c&&c.id?e.createElement(dr,{node:c,model:n,onClose:function(){u(void 0)}}):null,null!=f&&f.id?e.createElement(hr,{node:f,model:n,onClose:function(){p(void 0)}}):null,e.createElement("canvas",{width:S,height:x,style:B,onMouseMove:function(e){if(i.current){var t=k(e),r=E(e),o=t||r;if(i.current.style.cursor=o?"pointer":"default",m(t),o){if(n.setHoveredTreeNode(o.id),null!=t&&t.name){var a=n.rowNamesSet.get(t.name);void 0!==a&&n.setMousePos(void 0,a)}}else n.setHoveredTreeNode(void 0),n.setMousePos(void 0,void 0)}},onClick:function(e){var t=e.clientX,n=e.clientY,r=E(e);null!=r&&r.id&&u({x:t,y:n,id:r.id,name:r.name});var o=k(e);null!=o&&o.id&&p(br(br({},o),{},{x:t,y:n}))},onMouseLeave:function(){m(void 0),n.setHoveredTreeNode(void 0),n.setMousePos(void 0,void 0)},ref:I}),e.createElement("canvas",{style:br(br({},B),{},{pointerEvents:"none",zIndex:100}),width:w,height:C,ref:l}))});const kr=Er;function Br(e,t){if(e){if("string"==typeof e)return Mr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mr(e,t):void 0}}function Mr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Rr=(0,s.PA)(function(t){var n,r,o=t.model,i=(0,e.useRef)(null),a=(0,e.useRef)(null),l=(0,e.useRef)(!1),s=(0,e.useRef)(0),c=(0,e.useRef)(0),u=o.treeWidth,d=o.height,f=o.blocksY,p=o.treeAreaWidth,h=o.scrollY,g=(n=(0,e.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(n,r)||Br(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=g[0],A=g[1];return(0,e.useEffect)(function(){var e=i.current;if(e)return e.addEventListener("wheel",t),function(){e.removeEventListener("wheel",t)};function t(e){s.current+=e.deltaY,l.current||(l.current=!0,requestAnimationFrame(function(){o.doScrollY(-s.current),s.current=0,l.current=!1})),e.preventDefault(),e.stopPropagation()}},[o]),(0,e.useEffect)(function(){var e=function(){};function t(e){e.preventDefault();var t=e.clientY-c.current;t&&(l.current||(l.current=!0,window.requestAnimationFrame(function(){o.doScrollY(t),l.current=!1,c.current=e.clientY})))}function n(){c.current=0,m&&A(!1)}return m&&(window.addEventListener("mousemove",t,!0),window.addEventListener("mouseup",n,!0),e=function(){window.removeEventListener("mousemove",t,!0),window.removeEventListener("mouseup",n,!0)}),e},[o,m]),(0,e.useEffect)(function(){var e,t=null===(e=a.current)||void 0===e?void 0:e.getContext("2d");return t?(0,Nn.fm)(function(){if((0,Yn._n)(o)){t.resetTransform(),t.clearRect(0,0,p,d);var e=o.relativeTo,n=o.leaves,r=o.rowHeight,i=o.hoveredTreeNode;if(e){var a=n.find(function(t){return t.data.name===e});if(a){var l=a.x+h;t.fillStyle="rgba(0,128,255,0.3)",t.fillRect(0,l-r/2,p,r)}}if(i){t.fillStyle="rgba(255,165,0,0.2)";var s,c=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=Br(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(a)throw o}}}}(i.descendantNames);try{var u=function(){var e=s.value,o=n.find(function(t){return t.data.name===e});if(o){var i=o.x+h;t.fillRect(0,i-r/2,p,r)}};for(c.s();!(s=c.n()).done;)u()}catch(e){c.e(e)}finally{c.f()}}var f=o.mouseOverRowName;if(f&&f!==e&&(null==i||!i.descendantNames.includes(f))){var g=n.find(function(e){return e.data.name===f});if(g){var m=g.x+h;t.fillStyle="rgba(255,165,0,0.2)",t.fillRect(0,m-r/2,p,r)}}}}):void 0},[o,p,d,h]),e.createElement("div",{ref:i,onMouseDown:function(e){var t=e.target;t.draggable||t.dataset.resizer||0===e.button&&(c.current=e.clientY,A(!0))},onMouseUp:function(e){e.preventDefault(),A(!1)},onMouseLeave:function(e){e.preventDefault()},style:{height:d,position:"relative",width:u+gr.Ms}},f.map(function(t){return e.createElement(kr,{key:t,model:o,offsetY:t})}),e.createElement("canvas",{ref:a,width:p,height:d,style:{position:"absolute",top:0,left:0,width:p,height:d,zIndex:1e3,pointerEvents:"none"}}))});const Pr=Rr;var _r=(0,s.PA)(function(t){var n=t.model,r=n.treeAreaWidth;return e.createElement("div",{style:{overflow:"hidden",flexShrink:0,width:r}},e.createElement(Pr,{model:n}))});const Tr=_r,Or=(0,s.PA)(function(t){var n=t.model.treeAreaWidth;return e.createElement("div",{style:{flexShrink:0,width:n}})});var Dr=(0,s.PA)(function(t){var n=t.model,r=n.showHorizontalScrollbar;return e.createElement("div",{style:{display:"flex"}},e.createElement(Or,{model:n}),r?e.createElement(ot,{model:n}):null)}),Qr=(0,s.PA)(function(t){var n=t.model,r=n.mouseCol,o=n.mouseClickCol,i=n.colWidth,a=n.scrollX,l=n.treeAreaWidth,s=n.resizeHandleWidth,c=n.totalTrackAreaHeight,u=l+s,d=n.msaAreaWidth-n.verticalScrollbarWidth;return e.createElement("div",{style:{position:"absolute",left:u,top:0,width:d,height:c,overflow:"hidden",pointerEvents:"none"}},void 0!==r?e.createElement("div",{style:{position:"absolute",left:r*i+a,top:0,width:i,height:c,backgroundColor:"rgba(0,0,0,0.15)",zIndex:100}}):null,void 0!==o?e.createElement("div",{style:{position:"absolute",left:o*i+a,top:0,width:i,height:c,backgroundColor:"rgba(128,128,0,0.2)",zIndex:100}}):null)}),Nr=(0,s.PA)(function(t){var n=t.model,r=n.turnedOnTracks;return 0===r.length?null:e.createElement("div",{style:{position:"relative"}},e.createElement(Qr,{model:n}),r.map(function(t){return e.createElement(I,{key:t.model.id,model:n,track:t})}))}),Fr=(0,s.PA)(function(t){var n=t.model,r=n.showVerticalScrollbar;return e.createElement("div",{style:{display:"flex"}},e.createElement(Tr,{model:n}),e.createElement(d,{model:n}),e.createElement(nr,{model:n}),r?e.createElement(R,{model:n}):null)}),Lr=(0,s.PA)(function(t){var n=t.model;return e.createElement("div",{style:{position:"relative"}},e.createElement(Dr,{model:n}),e.createElement(Nr,{model:n}),e.createElement(Fr,{model:n}))}),jr=(0,s.PA)(function(t){var n=t.model,r=n.height,o=n.viewInitialized,i=n.DialogComponent,a=n.DialogProps;return e.createElement("div",null,o?e.createElement(e.Fragment,null,e.createElement("div",{style:{height:r,overflow:"hidden"}},e.createElement(et,{model:n}),e.createElement(Lr,{model:n})),e.createElement(f,{model:n}),i?e.createElement(e.Suspense,{fallback:null},e.createElement(i,a)):null):null)});const zr=jr;var $r=o(851),Hr=o(9077),Gr=o(9596),Vr=o(2698),Wr=o(5914),Ur=o(5761),Yr=o(6673),Kr=o(5121),qr=o(8175);const Jr=(0,qr.A)("MuiBox",["root"]),Xr=(0,Yr.A)(),Zr=function(t={}){const{themeId:n,defaultTheme:r,defaultClassName:o="MuiBox-root",generateClassName:i}=t,a=(0,Hr.Ay)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Gr.A);return e.forwardRef(function(e,t){const l=(0,Wr.A)(r),{className:s,component:c="div",...u}=(0,Vr.A)(e);return(0,h.jsx)(a,{as:c,ref:t,className:(0,$r.A)(s,i?i(o):o),theme:n&&l[n]||l,...u})})}({themeId:Kr.A,defaultTheme:Xr,defaultClassName:Jr.root,generateClassName:Ur.A.generate}),eo=Zr;var to=o(7394),no=o(2091),ro=o(6179),oo=o(395);const io=(e,t)=>t.some(t=>e instanceof t);let ao,lo;const so=new WeakMap,co=new WeakMap,uo=new WeakMap;let fo={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return so.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return go(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function po(e){fo=e(fo)}function ho(e){return"function"==typeof e?(t=e,(lo||(lo=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(mo(this),e),go(this.request)}:function(...e){return go(t.apply(mo(this),e))}):(e instanceof IDBTransaction&&function(e){if(so.has(e))return;const t=new Promise((t,n)=>{const r=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",i),e.removeEventListener("abort",i)},o=()=>{t(),r()},i=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",o),e.addEventListener("error",i),e.addEventListener("abort",i)});so.set(e,t)}(e),io(e,ao||(ao=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,fo):e);var t}function go(e){if(e instanceof IDBRequest)return function(e){const t=new Promise((t,n)=>{const r=()=>{e.removeEventListener("success",o),e.removeEventListener("error",i)},o=()=>{t(go(e.result)),r()},i=()=>{n(e.error),r()};e.addEventListener("success",o),e.addEventListener("error",i)});return uo.set(t,e),t}(e);if(co.has(e))return co.get(e);const t=ho(e);return t!==e&&(co.set(e,t),uo.set(t,e)),t}const mo=e=>uo.get(e),Ao=["get","getKey","getAll","getAllKeys","count"],bo=["put","add","delete","clear"],vo=new Map;function yo(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(vo.get(t))return vo.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,o=bo.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!o&&!Ao.includes(n))return;const i=async function(e,...t){const i=this.transaction(e,o?"readwrite":"readonly");let a=i.store;return r&&(a=a.index(t.shift())),(await Promise.all([a[n](...t),o&&i.done]))[0]};return vo.set(t,i),i}po(e=>({...e,get:(t,n,r)=>yo(t,n)||e.get(t,n,r),has:(t,n)=>!!yo(t,n)||e.has(t,n)}));const wo=["continue","continuePrimaryKey","advance"],Co={},So=new WeakMap,xo=new WeakMap,Io={get(e,t){if(!wo.includes(t))return e[t];let n=Co[t];return n||(n=Co[t]=function(...e){So.set(this,xo.get(this)[t](...e))}),n}};async function*Eo(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;const n=new Proxy(t,Io);for(xo.set(n,t),uo.set(n,mo(t));t;)yield n,t=await(So.get(n)||t.continue()),So.delete(n)}function ko(e,t){return t===Symbol.asyncIterator&&io(e,[IDBIndex,IDBObjectStore,IDBCursor])||"iterate"===t&&io(e,[IDBIndex,IDBObjectStore])}po(e=>({...e,get:(t,n,r)=>ko(t,n)?Eo:e.get(t,n,r),has:(t,n)=>ko(t,n)||e.has(t,n)}));const Bo="handles";let Mo;function Ro(){return Mo||(Mo=function(e,t,{blocked:n,upgrade:r,blocking:o,terminated:i}={}){const a=indexedDB.open(e,t),l=go(a);return r&&a.addEventListener("upgradeneeded",e=>{r(go(a.result),e.oldVersion,e.newVersion,go(a.transaction),e)}),n&&a.addEventListener("blocked",e=>n(e.oldVersion,e.newVersion,e)),l.then(e=>{i&&e.addEventListener("close",()=>i()),o&&e.addEventListener("versionchange",e=>o(e.oldVersion,e.newVersion,e))}).catch(()=>{}),l}("jbrowse-file-handles",1,{upgrade(e){e.objectStoreNames.contains(Bo)||e.createObjectStore(Bo)}})),Mo}let Po=0;new WeakMap;let _o={};function To(e){return _o[e]}let Oo=0,Do={};function Qo(e){return Do[e]}var No=o(5205);const Fo=(0,ee.n)()(e=>({filename:{marginLeft:e.spacing(1)}})),Lo="undefined"!=typeof window&&"showOpenFilePicker"in window&&!E.b8R;function jo(e){return!(!e||((0,No.rF)(e)?To(e.blobId):!(0,No.Qm)(e)||Qo(e.handleId)))}async function zo(){const[e]=await window.showOpenFilePicker();return async function(e){const t=await async function(e){const t=`fh${Date.now()}-${Po++}`,n=await Ro();return await n.put(Bo,{handle:e,name:e.name,createdAt:Date.now()},t),t}(e),n=await e.getFile();return Do[t]=n,{locationType:"FileHandleLocation",name:e.name,handleId:t}}(e)}function $o({setLocation:e}){return Lo?(0,h.jsx)(l.A,{variant:"outlined",onClick:async()=>{try{e(await zo())}catch(e){if("AbortError"!==e.name)throw e}},children:"Choose File"}):(0,h.jsxs)(l.A,{variant:"outlined",component:"label",children:["Choose File",(0,h.jsx)("input",{type:"file",hidden:!0,onChange:({target:t})=>{const n=t.files?.[0];if(n)if(E.b8R){const{webUtils:t}=window.require("electron");e({localPath:t.getPathForFile(n),locationType:"LocalPathLocation"})}else{const t=function(e){if("blob"in e){const t=`b${Date.now()}-${Oo++}`;return _o[t]=e.blob,{name:e.blob.name,blobId:t,locationType:"BlobLocation"}}return e}({blob:n});"blobId"in t&&e(t)}}})]})}function Ho({location:e,setLocation:t}){return(0,h.jsxs)(eo,{display:"flex",alignItems:"center",gap:1,children:[(0,h.jsx)(a.A,{color:"error",children:"(need to reload)"}),(0,No.Qm)(e)&&(0,h.jsx)(l.A,{size:"small",variant:"text",color:"primary",onClick:async()=>{if((0,No.Qm)(e))try{await async function(e,t=!0){const n=Do[e];if(n)return n;const r=await async function(e){const t=await Ro(),n=await t.get(Bo,e);return n?.handle}(e);if(!r)throw new Error(`File handle not found for handleId: ${e}. The file may have been opened in a different browser or the IndexedDB was cleared.`);if(!await async function(e,t=!1){const n={mode:"read"};return"granted"===await e.queryPermission(n)||!(!t||"granted"!==await e.requestPermission(n))}(r,t))throw new Error(`Permission denied for file "${r.name}". Click "Restore access" to grant permission.`);const o=await r.getFile();return Do[e]=o,o}(e.handleId,!0),t({...e})}catch{try{t(await zo())}catch(e){if("AbortError"!==e.name)throw e}}},children:"Reopen"})]})}const Go=function({location:e,setLocation:t}){const{classes:n}=Fo(),r=function(e){if(e)return(0,No.rF)(e)?e.name:(0,No.EV)(e)?e.localPath:(0,No.Qm)(e)?e.name:void 0}(e);return(0,h.jsxs)(eo,{display:"flex",flexDirection:"row",alignItems:"center",children:[(0,h.jsx)(eo,{children:(0,h.jsx)(oo.A,{fullWidth:!0,children:(0,h.jsx)($o,{setLocation:t})})}),(0,h.jsxs)(eo,{children:[(0,h.jsx)(a.A,{component:"span",className:n.filename,color:r?"initial":"textSecondary",children:r||"No file chosen"}),e&&jo(e)&&(0,h.jsx)(Ho,{location:e,setLocation:t})]})]})},Vo=(0,s.PA)(function({location:e,label:t,style:n,setLocation:r}){return(0,h.jsx)(Re.A,{variant:"outlined",fullWidth:!0,defaultValue:e&&(0,No.C1)(e)?e.uri:"",label:t||"Enter URL",style:n,onChange:e=>{r({uri:e.target.value.trim(),locationType:"UriLocation"})},slotProps:{htmlInput:{"data-testid":"urlInput"}}})});function Wo({toggleButtonValue:e,selectedAccount:t,location:n,inline:r,setLocation:o}){return t?.SelectorComponent?(0,h.jsx)(t.SelectorComponent,{setLocation:o,selectedAccount:t}):"url"===e?(0,h.jsx)(Vo,{location:n,setLocation:o,label:t?.selectorLabel,style:r?{margin:0}:void 0}):"file"===e?(0,h.jsx)(Go,{location:n,setLocation:o}):null}var Uo=o(4876),Yo=o(4921),Ko=o(2189),qo=o(361),Jo=o(7934),Xo=o(8212),Zo=o(9025),ei=o(4819);function ti(e){return(0,ei.Ay)("MuiToggleButtonGroup",e)}const ni=(0,qr.A)("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]);var ri=o(9339),oi=o(3991),ii=o(4126);const ai=(0,qo.Ay)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ni.grouped}`]:t.grouped},{[`& .${ni.grouped}`]:t[`grouped${(0,Zo.A)(n.orientation)}`]},{[`& .${ni.firstButton}`]:t.firstButton},{[`& .${ni.lastButton}`]:t.lastButton},{[`& .${ni.middleButton}`]:t.middleButton},t.root,"vertical"===n.orientation&&t.vertical,n.fullWidth&&t.fullWidth]}})((0,Jo.A)(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${ni.grouped}`]:{[`&.${ni.selected} + .${ni.grouped}.${ni.selected}`]:{borderTop:0,marginTop:0}},[`& .${ni.firstButton},& .${ni.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${ni.lastButton},& .${ni.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${ni.lastButton}.${ii.A.disabled},& .${ni.middleButton}.${ii.A.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${ni.grouped}`]:{[`&.${ni.selected} + .${ni.grouped}.${ni.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${ni.firstButton},& .${ni.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${ni.lastButton},& .${ni.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${ni.lastButton}.${ii.A.disabled},& .${ni.middleButton}.${ii.A.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),li=e.forwardRef(function(t,n){const r=(0,Xo.b)({props:t,name:"MuiToggleButtonGroup"}),{children:o,className:i,color:a="standard",disabled:l=!1,exclusive:s=!1,fullWidth:c=!1,onChange:u,orientation:d="horizontal",size:f="medium",value:p,...g}=r,m={...r,disabled:l,fullWidth:c,orientation:d,size:f},A=(e=>{const{classes:t,orientation:n,fullWidth:r,disabled:o}=e,i={root:["root",n,r&&"fullWidth"],grouped:["grouped",`grouped${(0,Zo.A)(n)}`,o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,Ko.A)(i,ti,t)})(m),b=e.useCallback((e,t)=>{if(!u)return;const n=p&&p.indexOf(t);let r;p&&n>=0?(r=p.slice(),r.splice(n,1)):r=p?p.concat(t):[t],u(e,r)},[u,p]),v=e.useCallback((e,t)=>{u&&u(e,p===t?null:t)},[u,p]),y=e.useMemo(()=>({className:A.grouped,onChange:s?v:b,value:p,size:f,fullWidth:c,color:a,disabled:l}),[A.grouped,s,v,b,p,f,c,a,l]),w=function(t){return e.Children.toArray(t).filter(t=>e.isValidElement(t))}(o),C=w.length,S=e=>{const t=0===e,n=e===C-1;return t&&n?"":t?A.firstButton:n?A.lastButton:A.middleButton};return(0,h.jsx)(ai,{role:"group",className:(0,$r.A)(A.root,i),ref:n,ownerState:m,...g,children:(0,h.jsx)(ri.A.Provider,{value:y,children:w.map((e,t)=>(0,h.jsx)(oi.A.Provider,{value:S(t),children:e},t))})})}),si=li;function ci(e){return e.length>5?`${e.slice(0,5)}…`:e}function ui(e){const{toggleContents:t,name:n}=e;return t?"string"==typeof t?ci(t):t:ci(n)}function di({account:e}){return(0,h.jsx)(Uo.A,{title:e.name,children:(0,h.jsx)(Yo.A,{value:e.internetAccountId,children:ui(e)})})}function fi({onClick:e,disabled:t,children:n}){return(0,h.jsx)(Yo.A,{value:"more",selected:!1,disabled:t,onClick:t=>{e(t)},children:n})}function pi({value:e,shownAccountIds:t,hiddenAccountIds:n,accountMap:r,onChange:o,onHiddenAccountSelect:i}){const a=t.map(e=>r[e]),l=n.map(e=>r[e]);return(0,h.jsxs)(si,{value:e,exclusive:!0,size:"small",onChange:o,"aria-label":"file, url, or account picker",children:[!("undefined"!=typeof window&&null!==new URLSearchParams(window.location.search).get("adminKey"))&&(0,h.jsx)(Yo.A,{value:"file","aria-label":"local file",children:"File"}),(0,h.jsx)(Yo.A,{value:"url","aria-label":"url",children:"URL"}),a.map(e=>(0,h.jsx)(di,{account:e},e.internetAccountId)),l.length>0&&(0,h.jsxs)(le,{menuItems:l.map(e=>({label:e.name,onClick:()=>{i(e.internetAccountId)}})),ButtonComponent:fi,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:["More",(0,h.jsx)(g,{})]})]})}const hi=(0,s.PA)(function({inline:t,location:n,name:r,description:o,rootModel:i,setLocation:a}){const[l,s]=(0,e.useState)(()=>function(e){return e&&"internetAccountId"in e&&e.internetAccountId?e.internetAccountId:!e||(0,No.C1)(e)?"url":"file"}(n)),{accountMap:c,shownAccountIds:u,hiddenAccountIds:d,recentlyUsed:f,setRecentlyUsed:p}=function(e){const[t,n]=(0,E.Mjh)("fileSelector-recentlyUsedInternetAccounts",[]),r=(0,No.bV)(e)?e.internetAccounts.filter(e=>"HTTPBasicInternetAccount"!==e.type):[],o=Object.fromEntries(r.map(e=>[e.internetAccountId,e])),i=[...new Set(r.map(e=>e.internetAccountId))].sort((e,n)=>t.indexOf(e)-t.indexOf(n));return{accountMap:o,shownAccountIds:i.slice(0,2),hiddenAccountIds:i.slice(2),recentlyUsed:t,setRecentlyUsed:n}}(i),g=c[l],m=(0,e.useCallback)(e=>{a(function(e,t){return t&&(0,No.C1)(e)?{...e,internetAccountId:t.internetAccountId}:e}(e,g))},[a,g]);(0,e.useEffect)(()=>{g&&(0,No.C1)(n)&&n.internetAccountId!==g.internetAccountId&&m(n)},[n,g,m]);const A=(0,e.useCallback)(e=>{e&&(p([...new Set([e,...f].filter(E.z2o))]),s(e),(0,No.C1)(n)&&m(n))},[n,f,p,m]);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(eo,{display:"flex",children:(0,h.jsx)(to.A,{shrink:!0,children:r})}),(0,h.jsx)(no.A,{children:(0,h.jsxs)(eo,{display:"flex",flexDirection:t?"row":"column",gap:.5,children:[(0,h.jsx)(pi,{value:l,shownAccountIds:u,hiddenAccountIds:d,accountMap:c,onChange:(e,t)=>{A(t)},onHiddenAccountSelect:A}),(0,h.jsx)(Wo,{toggleButtonValue:l,selectedAccount:g,location:n,inline:t,setLocation:m})]})}),(0,h.jsx)(ro.A,{children:o})]})});var gi=o(7449),mi=o(1591),Ai=o(7112);const bi=(0,o(1307).A)(),vi=(0,Ai.A)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${(0,gi.A)(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),yi=e=>function({props:e,name:t,defaultTheme:n,themeId:r}){let o=(0,Wr.A)(n);return r&&(o=o[r]||o),(0,mi.A)({theme:o,name:t,props:e})}({props:e,name:"MuiContainer",defaultTheme:bi}),wi=function(t={}){const{createStyledComponent:n=vi,useThemeProps:r=yi,componentName:o="MuiContainer"}=t,i=n(({theme:e,ownerState:t})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}}),({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce((t,n)=>{const r=n,o=e.breakpoints.values[r];return 0!==o&&(t[e.breakpoints.up(r)]={maxWidth:`${o}${e.breakpoints.unit}`}),t},{}),({theme:e,ownerState:t})=>({..."xs"===t.maxWidth&&{[e.breakpoints.up("xs")]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},...t.maxWidth&&"xs"!==t.maxWidth&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}}})),a=e.forwardRef(function(e,t){const n=r(e),{className:a,component:l="div",disableGutters:s=!1,fixed:c=!1,maxWidth:u="lg",classes:d,...f}=n,p={...n,component:l,disableGutters:s,fixed:c,maxWidth:u},g=((e,t)=>{const{classes:n,fixed:r,disableGutters:o,maxWidth:i}=e,a={root:["root",i&&`maxWidth${(0,gi.A)(String(i))}`,r&&"fixed",o&&"disableGutters"]};return(0,Ko.A)(a,e=>(0,ei.Ay)(t,e),n)})(p,o);return(0,h.jsx)(i,{as:l,ownerState:p,className:(0,$r.A)(g.root,a),ref:t,...f})});return a}({createStyledComponent:(0,qo.Ay)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${(0,Zo.A)(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>(0,Xo.b)({props:e,name:"MuiContainer"})});var Ci=o(3838);function Si(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return xi(c,"_invoke",function(n,r,o){var i,l,s,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,s=e,f.n=n,a}};function p(n,r){for(l=n,s=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];n>3?(o=h===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,f.v=r,f.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,s=h;(t=l<2?e:s)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,s)):f.n=s:f.v=s);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==a)break}catch(t){i=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(xi(t={},r,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,xi(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,xi(d,"constructor",c),xi(c,"constructor",s),s.displayName="GeneratorFunction",xi(c,o,"GeneratorFunction"),xi(d),xi(d,o,"Generator"),xi(d,r,function(){return this}),xi(d,"toString",function(){return"[object Generator]"}),(Si=function(){return{w:i,m:f}})()}function xi(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}xi=function(e,t,n,r){function i(t,n){xi(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},xi(e,t,n,r)}function Ii(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Ei(e,t,n,r){return ki.apply(this,arguments)}function ki(){var e;return e=Si().m(function e(t,n,r,o){return Si().w(function(e){for(;;)switch(e.n){case 0:t.setError(void 0),n&&t.setMSAFilehandle(n),r&&t.setTreeFilehandle(r),o&&t.setGFFFilehandle(o);case 1:return e.a(2)}},e)}),ki=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Ii(i,r,o,a,l,"next",e)}function l(e){Ii(i,r,o,a,l,"throw",e)}a(void 0)})},ki.apply(this,arguments)}function Bi(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return Mi(c,"_invoke",function(n,r,o){var i,l,s,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,s=e,f.n=n,a}};function p(n,r){for(l=n,s=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];n>3?(o=h===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,f.v=r,f.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,s=h;(t=l<2?e:s)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,s)):f.n=s:f.v=s);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==a)break}catch(t){i=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Mi(t={},r,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Mi(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Mi(d,"constructor",c),Mi(c,"constructor",s),s.displayName="GeneratorFunction",Mi(c,o,"GeneratorFunction"),Mi(d),Mi(d,o,"Generator"),Mi(d,r,function(){return this}),Mi(d,"toString",function(){return"[object Generator]"}),(Bi=function(){return{w:i,m:f}})()}function Mi(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Mi=function(e,t,n,r){function i(t,n){Mi(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Mi(e,t,n,r)}function Ri(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Pi(t){var n=t.onClick,r=t.model,o=t.children;return e.createElement("li",null,e.createElement(Ci.A,{onClick:function(e){r.setError(void 0),e.preventDefault(),n()},href:"#"},e.createElement(a.A,{display:"inline"},o)))}var _i=(0,s.PA)(function(t){var n=t.model;function r(e,t){var r;(r=Bi().m(function r(){var o;return Bi().w(function(r){for(;;)switch(r.p=r.n){case 0:return r.p=0,r.n=1,Ei(n,e?{uri:e,locationType:"UriLocation"}:void 0,t?{uri:t,locationType:"UriLocation"}:void 0);case 1:r.n=3;break;case 2:r.p=2,o=r.v,console.error(o),n.setError(o);case 3:return r.a(2)}},r,null,[[0,2]])}),function(){var e=this,t=arguments;return new Promise(function(n,o){var i=r.apply(e,t);function a(e){Ri(i,n,o,a,l,"next",e)}function l(e){Ri(i,n,o,a,l,"throw",e)}a(void 0)})})()}return e.createElement("ul",null,e.createElement(Pi,{model:n,onClick:function(){r(void 0,"https://jbrowse.org/genomes/newicktrees/sarscov2phylo.pub.ft.nh")}},"230k COVID-19 samples (tree only)"),e.createElement(Pi,{model:n,onClick:function(){n.setData({msa:"CLUSTAL O(1.2.3) multiple sequence alignment\nUniProt/Swiss-Prot|P26898|IL2RA_SHEEP MEPSLLMWRFFVFIVVPGCVTEACHDDPPSLRNA----------MFKVLRYE----VGTM\nUniProt/Swiss-Prot|P01590|IL2RA_MOUSE MEPRLLMLGFLSLTIVPSCRAELCLYDPPEVPNA----------TFKALSYK----NGTI\nUniProt/Swiss-Prot|P41690|IL2RA_FELCA MEPSLLLWGILTFVVVHGHVTELCDENPPDIQHA----------TFKALTYK----TGTM\nUniProt/Swiss-Prot|P01589|IL2RA_HUMAN MDSYLLMWGLLTFIMVPGCQAELCDDDPPEIPHA----------TFKAMAYK----EGTM\nUniProt/Swiss-Prot|Q5MNY4|IL2RA_MACMU MDPYLLMWGLLTFITVPGCQAELCDDDPPKITHA----------TFKAVAYK----EGTM\nUniProt/Swiss-Prot|Q95118|IL2RG_BOVIN -----------------------------------LLMWGLLT-----------------\nUniProt/Swiss-Prot|P40321|IL2RG_CANFA MLKPPLPLRSLLFLQLSLLGVGLNSTVPMPNGNEDIT------PDFFLTATPSETLSVSS\nUniProt/Swiss-Prot|P26896|IL2RB_RAT MATVDLSWRLPLYILLLLLATT--------------------------------WVSAAV\nUniProt/Swiss-Prot|Q8BZM1|GLMN_MOUSE PLPLRSLLFLQLPLLGVGLNP------------------PLPLRSLLFLQLPLLGVGLNP\nUniProt/Swiss-Prot|P36835|IL2_CAPHI -----------LLGVGLNPKFLTP------------------------------------\nUniProt/Swiss-Prot|Q7JFM4|IL2_AOTVO MLKPPLPLRSLLFLQLPLLGVGLNPKFLTPSGNEDIGGKPGTGGDFFLTSTPAGTLDVST\nUniProt/Swiss-Prot|Q29416|IL2_CANFA --------------LFLQLSLLG-------------------------------------\n",tree:"(((UniProt/Swiss-Prot|P26898|IL2RA_SHEEP:0.24036,(UniProt/Swiss-Prot|P41690|IL2RA_FELCA:0.17737,(UniProt/Swiss-Prot|P01589|IL2RA_HUMAN:0.03906,UniProt/Swiss-Prot|Q5MNY4|IL2RA_MACMU:0.03787):0.13033):0.04964):0.02189,UniProt/Swiss-Prot|P01590|IL2RA_MOUSE:0.23072):0.06814,(((UniProt/Swiss-Prot|Q95118|IL2RG_BOVIN:0.09600,UniProt/Swiss-Prot|P40321|IL2RG_CANFA:0.09845):0.25333,UniProt/Swiss-Prot|Q29416|IL2_CANFA:-0.35055):0.10231,(UniProt/Swiss-Prot|P26896|IL2RB_RAT:0.33631,UniProt/Swiss-Prot|Q7JFM4|IL2_AOTVO:-0.33631):0.10166):0.01607,(UniProt/Swiss-Prot|Q8BZM1|GLMN_MOUSE:0.32378,UniProt/Swiss-Prot|P36835|IL2_CAPHI:-0.32378):0.09999)"})}},"Small protein MSA+tree"),e.createElement(Pi,{model:n,onClick:function(){n.setData({msa:"CLUSTAL O(1.2.4) multiple sequence alignment\n\n\nsp|P69905|HBA_HUMAN MVLSPADKTNVKAAWGKVGAHAGEYGAEALERMFLSFPTTKTYFPHFDLSHGSAQVKGHG\t60\nsp|P01942|HBA_MOUSE MVLSGEDKSNIKAAWGKIGGHGAEYGAEALERMFASFPTTKTYFPHFDVSHGSAQVKGHG\t60\nsp|P13786|HBAZ_CAPHI MSLTRTERTIILSLWSKISTQADVIGTETLERLFSCYPQAKTYFPHFDLHSGSAQLRAHG\t60\n * *: ::: : : *.*:. :. *:*:***:* .:* :********: ****::.**\n\nsp|P69905|HBA_HUMAN KKVADALTNAVAHVDDMPNALSALSDLHAHKLRVDPVNFKLLSHCLLVTLAAHLPAEFTP\t120\nsp|P01942|HBA_MOUSE KKVADALASAAGHLDDLPGALSALSDLHAHKLRVDPVNFKLLSHCLLVTLASHHPADFTP\t120\nsp|P13786|HBAZ_CAPHI SKVVAAVGDAVKSIDNVTSALSKLSELHAYVLRVDPVNFKFLSHCLLVTLASHFPADFTA\t120\n .**. *: .*. :*:: .*** **:***: *********:**********:* **:**\n\nsp|P69905|HBA_HUMAN AVHASLDKFLASVSTVLTSKYR\t142\nsp|P01942|HBA_MOUSE AVHASLDKFLASVSTVLTSKYR\t142\nsp|P13786|HBAZ_CAPHI DAHAAWDKFLSIVSGVLTEKYR\t142\n .**: ****: ** ***.***"})}},"Small MSA only"),e.createElement(Pi,{model:n,onClick:function(){r("https://jbrowse.org/genomes/multiple_sequence_alignments/pfam-cov2.stock")}},"PFAM SARS-CoV2 multi-stockholm"),e.createElement(Pi,{model:n,onClick:function(){r("https://jbrowse.org/genomes/multiple_sequence_alignments/Lysine.stock")}},"Lysine stockholm file"),e.createElement(Pi,{model:n,onClick:function(){r("https://jbrowse.org/genomes/multiple_sequence_alignments/PF01601_full.txt")}},"PF01601 stockholm file (SARS-CoV2 spike protein)"),e.createElement(Pi,{model:n,onClick:function(){r("https://jbrowse.org/genomes/multiple_sequence_alignments/europe_covid.fa")}},"Europe COVID full genomes (LR883044.1 and 199 other sequences)"),e.createElement(Pi,{model:n,onClick:function(){r("https://jbrowse.org/genomes/multiple_sequence_alignments/rhv_test-only.aligned_with_mafft_auto.fa","https://jbrowse.org/genomes/multiple_sequence_alignments/rhv_test-only.aligned_with_mafft_auto.nh")}},"MAFFT+VeryFastTree(17.9k samples)"),e.createElement(Pi,{model:n,onClick:function(){r("https://jbrowse.org/demos/ttc39a.mfa")}},"Human BLAST results mfa"))});const Ti=_i;function Oi(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return Di(c,"_invoke",function(n,r,o){var i,l,s,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,s=e,f.n=n,a}};function p(n,r){for(l=n,s=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];n>3?(o=h===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,f.v=r,f.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,s=h;(t=l<2?e:s)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,s)):f.n=s:f.v=s);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==a)break}catch(t){i=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Di(t={},r,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Di(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Di(d,"constructor",c),Di(c,"constructor",s),s.displayName="GeneratorFunction",Di(c,o,"GeneratorFunction"),Di(d),Di(d,o,"Generator"),Di(d,r,function(){return this}),Di(d,"toString",function(){return"[object Generator]"}),(Oi=function(){return{w:i,m:f}})()}function Di(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Di=function(e,t,n,r){function i(t,n){Di(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Di(e,t,n,r)}function Qi(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Ni(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Fi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fi(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Li=(0,s.PA)(function(t){var r=t.model,o=Ni((0,e.useState)(),2),i=o[0],s=o[1],c=Ni((0,e.useState)(),2),u=c[0],d=c[1],f=Ni((0,e.useState)(),2),p=f[0],h=f[1],g=r.error;return e.createElement(wi,null,e.createElement("div",{style:{width:"50%"}},g?e.createElement(n.A,{error:g}):null,e.createElement(a.A,null,"Open an MSA file (stockholm or clustal format) and/or a tree file (newick format)."),e.createElement(a.A,{color:"error"},"Note: you can open up just an MSA or just a tree, both are not required. Some MSA files e.g. stockholm format have an embedded tree also and this is fine, and opening a separate tree file is not required.")),e.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",gap:40}},e.createElement("div",null,e.createElement("div",null,e.createElement(a.A,null,"MSA file or URL"),e.createElement(hi,{location:i,setLocation:s})),e.createElement("div",null,e.createElement(a.A,null,"Tree file or URL"),e.createElement(hi,{location:u,setLocation:d})),e.createElement("div",null,e.createElement(a.A,null,"InterProScan GFF file or URL (optional)"),e.createElement(hi,{location:p,setLocation:h}))),e.createElement("div",null,e.createElement(l.A,{onClick:function(){var e;(e=Oi().m(function e(){var t;return Oi().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Ei(r,i,u,p);case 1:e.n=3;break;case 2:e.p=2,t=e.v,console.error(t),r.setError(t);case 3:return e.a(2)}},e,null,[[0,2]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Qi(i,r,o,a,l,"next",e)}function l(e){Qi(i,r,o,a,l,"throw",e)}a(void 0)})})()},variant:"contained",color:"primary",disabled:!i&&!u},"Open")),e.createElement("div",null,e.createElement(a.A,null,"Examples"),e.createElement(Ti,{model:r}))))});const ji=Li;function zi(){return e.createElement("div",{style:{display:"flex",alignItems:"center",gap:12,padding:20}},e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e.createElement("style",null,"@keyframes spinner { to { transform: rotate(360deg); } }"),e.createElement("circle",{cx:"12",cy:"12",r:"10",stroke:"#ccc",strokeWidth:"3",fill:"none"}),e.createElement("path",{d:"M12 2a10 10 0 0 1 10 10",stroke:"#1976d2",strokeWidth:"3",fill:"none",strokeLinecap:"round",style:{animation:"spinner 1s linear infinite",transformOrigin:"center"}})),e.createElement(a.A,{variant:"h6"},"Loading..."))}var $i=(0,s.PA)(function(t){var r=t.model,o=t.error;return e.createElement("div",null,e.createElement(n.A,{error:o}),e.createElement(l.A,{variant:"contained",color:"primary",onClick:function(){r.reset()}},"Return to import form"))}),Hi=(0,s.PA)(function(t){var n=t.model,o=n.isLoading,i=n.dataInitialized,a=n.msaFilehandle,l=n.treeFilehandle,s=!(!a&&!l);return e.createElement("div",null,e.createElement(r.t,{FallbackComponent:function(t){return e.createElement($i,{model:n,error:t.error})}},i?o?e.createElement(zi,null):e.createElement(zr,{model:n}):s||o?e.createElement(zi,null):e.createElement(ji,{model:n})))});const Gi=Hi;var Vi=o(8361);class Wi{readFile(){throw new Error("unimplemented")}read(){throw new Error("unimplemented")}close(){throw new Error("unimplemented")}}class Ui{constructor(e){this.blob=e}async read(e,t=0){if(!e)return new Uint8Array(0);const n=t,r=n+e,o=this.blob.slice(n,r);return o.bytes?o.bytes():new Uint8Array(await o.arrayBuffer())}async readFile(e){const t="string"==typeof e?e:e?.encoding;if("utf8"===t)return this.blob.text();if(t)throw new Error(`unsupported encoding: ${t}`);return this.blob.bytes?this.blob.bytes():new Uint8Array(await this.blob.arrayBuffer())}async stat(){return{size:this.blob.size}}async close(){}}var Yi,Ki,qi,Ji,Xi,Zi,ea,ta,na,ra,oa,ia,aa,la,sa,ca=function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},ua=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class da extends Map{constructor(e={}){if(super(),Yi.add(this),Ki.set(this,0),qi.set(this,new Map),Ji.set(this,new Map),Xi.set(this,void 0),Zi.set(this,void 0),ea.set(this,void 0),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if("number"==typeof e.maxAge&&0===e.maxAge)throw new TypeError("`maxAge` must be a number greater than 0");ca(this,Xi,e.maxSize,"f"),ca(this,Zi,e.maxAge||Number.POSITIVE_INFINITY,"f"),ca(this,ea,e.onEviction,"f")}get __oldCache(){return ua(this,Ji,"f")}get(e){if(ua(this,qi,"f").has(e)){const t=ua(this,qi,"f").get(e);return ua(this,Yi,"m",oa).call(this,e,t)}if(ua(this,Ji,"f").has(e)){const t=ua(this,Ji,"f").get(e);if(!ua(this,Yi,"m",na).call(this,e,t))return ua(this,Yi,"m",la).call(this,e,t),t.value}}set(e,t,{maxAge:n=ua(this,Zi,"f")}={}){const r="number"==typeof n&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;return ua(this,qi,"f").has(e)?ua(this,qi,"f").set(e,{value:t,expiry:r}):ua(this,Yi,"m",aa).call(this,e,{value:t,expiry:r}),this}has(e){return ua(this,qi,"f").has(e)?!ua(this,Yi,"m",na).call(this,e,ua(this,qi,"f").get(e)):!!ua(this,Ji,"f").has(e)&&!ua(this,Yi,"m",na).call(this,e,ua(this,Ji,"f").get(e))}peek(e){return ua(this,qi,"f").has(e)?ua(this,Yi,"m",ia).call(this,e,ua(this,qi,"f")):ua(this,Ji,"f").has(e)?ua(this,Yi,"m",ia).call(this,e,ua(this,Ji,"f")):void 0}expiresIn(e){const t=ua(this,qi,"f").get(e)??ua(this,Ji,"f").get(e);if(t)return t.expiry?t.expiry-Date.now():Number.POSITIVE_INFINITY}delete(e){var t;const n=ua(this,qi,"f").delete(e);return n&&ca(this,Ki,(t=ua(this,Ki,"f"),--t),"f"),ua(this,Ji,"f").delete(e)||n}clear(){ua(this,qi,"f").clear(),ua(this,Ji,"f").clear(),ca(this,Ki,0,"f")}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");const t=[...ua(this,Yi,"m",sa).call(this)],n=t.length-e;n<0?(ca(this,qi,new Map(t),"f"),ca(this,Ji,new Map,"f"),ca(this,Ki,t.length,"f")):(n>0&&ua(this,Yi,"m",ta).call(this,t.slice(0,n)),ca(this,Ji,new Map(t.slice(n)),"f"),ca(this,qi,new Map,"f"),ca(this,Ki,0,"f")),ca(this,Xi,e,"f")}evict(e=1){const t=e;if(!t||t<=0)return;const n=[...ua(this,Yi,"m",sa).call(this)],r=Math.trunc(Math.min(t,Math.max(n.length-1,0)));r<=0||(ua(this,Yi,"m",ta).call(this,n.slice(0,r)),ca(this,Ji,new Map(n.slice(r)),"f"),ca(this,qi,new Map,"f"),ca(this,Ki,0,"f"))}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[(Ki=new WeakMap,qi=new WeakMap,Ji=new WeakMap,Xi=new WeakMap,Zi=new WeakMap,ea=new WeakMap,Yi=new WeakSet,ta=function(e){if("function"==typeof ua(this,ea,"f"))for(const[t,n]of e)ua(this,ea,"f").call(this,t,n.value)},na=function(e,t){return"number"==typeof t.expiry&&t.expiry<=Date.now()&&("function"==typeof ua(this,ea,"f")&&ua(this,ea,"f").call(this,e,t.value),this.delete(e))},ra=function(e,t){if(!ua(this,Yi,"m",na).call(this,e,t))return t.value},oa=function(e,t){return t.expiry?ua(this,Yi,"m",ra).call(this,e,t):t.value},ia=function(e,t){const n=t.get(e);return ua(this,Yi,"m",oa).call(this,e,n)},aa=function(e,t){var n;ua(this,qi,"f").set(e,t),ca(this,Ki,(n=ua(this,Ki,"f"),++n),"f"),ua(this,Ki,"f")>=ua(this,Xi,"f")&&(ca(this,Ki,0,"f"),ua(this,Yi,"m",ta).call(this,ua(this,Ji,"f")),ca(this,Ji,ua(this,qi,"f"),"f"),ca(this,qi,new Map,"f"))},la=function(e,t){ua(this,Ji,"f").delete(e),ua(this,Yi,"m",aa).call(this,e,t)},sa=function*(){for(const e of ua(this,Ji,"f")){const[t,n]=e;ua(this,qi,"f").has(t)||ua(this,Yi,"m",na).call(this,t,n)||(yield e)}for(const e of ua(this,qi,"f")){const[t,n]=e;ua(this,Yi,"m",na).call(this,t,n)||(yield e)}},Symbol.iterator)](){for(const e of ua(this,qi,"f")){const[t,n]=e;ua(this,Yi,"m",na).call(this,t,n)||(yield[t,n.value])}for(const e of ua(this,Ji,"f")){const[t,n]=e;ua(this,qi,"f").has(t)||ua(this,Yi,"m",na).call(this,t,n)||(yield[t,n.value])}}*entriesDescending(){let e=[...ua(this,qi,"f")];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;ua(this,Yi,"m",na).call(this,r,o)||(yield[r,o.value])}e=[...ua(this,Ji,"f")];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;ua(this,qi,"f").has(r)||ua(this,Yi,"m",na).call(this,r,o)||(yield[r,o.value])}}*entriesAscending(){for(const[e,t]of ua(this,Yi,"m",sa).call(this))yield[e,t.value]}get size(){if(!ua(this,Ki,"f"))return ua(this,Ji,"f").size;let e=0;for(const t of ua(this,Ji,"f").keys())ua(this,qi,"f").has(t)||e++;return Math.min(ua(this,Ki,"f")+e,ua(this,Xi,"f"))}get maxSize(){return ua(this,Xi,"f")}get maxAge(){return ua(this,Zi,"f")}entries(){return this.entriesAscending()}forEach(e,t=this){for(const[n,r]of this.entriesAscending())e.call(t,r,n,this)}get[Symbol.toStringTag](){return"QuickLRU"}toString(){return`QuickLRU(${this.size}/${this.maxSize})`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}class fa{constructor({fetch:e,frequency:t=100,maxExtraSize:n=32e3,maxFetchSize:r=1e6}){this.requestQueues={},this.fetchCallback=e,this.frequency=t,this.maxExtraSize=n,this.maxFetchSize=r}_canAggregate(e,t){return t.start<=e.end+this.maxExtraSize&&t.end-t.start+e.end-e.start<this.maxFetchSize}_allSignalsFired(e){return new Promise(t=>{let n=e.filter(e=>!e.aborted).length;0!==n?e.forEach(e=>{e.addEventListener("abort",()=>{n-=1,n||t()})}):t()})}_dispatch({url:e,start:t,end:n,requests:r}){const o=new AbortController,i=[];r.forEach(({requestOptions:e})=>{e.signal&&i.push(e.signal)}),i.length===r.length&&this._allSignalsFired(i).then(()=>{o.abort()}),this.fetchCallback(e,t,n-1,{signal:o.signal}).then(e=>{const n=e.buffer;r.forEach(({start:r,end:o,resolve:i})=>{i({headers:e.headers,buffer:n.subarray(r-t,o-t)})})}).catch(e=>{r.forEach(({reject:t})=>{t(e)})})}_aggregateAndDispatch(){Object.entries(this.requestQueues).forEach(([e,t])=>{if(!t.length)return;const n=[];if(t.forEach(e=>{const{requestOptions:t,reject:r}=e;t.signal?.aborted?r(Object.assign(new Error("aborted"),{code:"ERR_ABORTED"})):n.push(e)}),n.sort((e,t)=>e.start-t.start),t.length=0,!n.length)return;let r;for(const t of n)r&&this._canAggregate(r,t)?(r.requests.push(t),r.end=t.end):(r&&this._dispatch(r),r={requests:[t],url:e,start:t.start,end:t.end});r&&this._dispatch(r)})}_enQueue(e,t){var n;(n=this.requestQueues)[e]??(n[e]=[]),this.requestQueues[e].push(t)}fetch(e,t,n,r={}){return new Promise((o,i)=>{this._enQueue(e,{start:t,end:n,resolve:o,reject:i,requestOptions:r}),this.timeout||(this.timeout=setTimeout(()=>{this.timeout=void 0,this._aggregateAndDispatch()},this.frequency||1))})}}async function pa(e,t,n,r={}){const o=await fetch(e,{method:"GET",headers:{range:`bytes=${t}-${n}`},...r});if(206!==o.status)throw new Error(`HTTP ${o.status} when fetching ${e} bytes ${t}-${n}`);return{headers:o.headers,buffer:await o.bytes()}}class ha{constructor(e,t={}){this.baseOverrides={},this.url=e;const n=t.fetch||globalThis.fetch.bind(globalThis);t.overrides&&(this.baseOverrides=t.overrides),this.fetchImplementation=n}async fetch(e,t){const n=t=>new Error(`${function(e){return("object"==typeof e&&null!==e&&"message"in e?e.message:`${e}`).replace(/\.$/,"")}(t)} fetching ${e}`,{cause:t});let r;try{r=await this.fetchImplementation(e,t)}catch(o){if(!`${o}`.includes("Failed to fetch"))throw n(o);console.warn(`generic-filehandle: refetching ${e} to attempt to work around chrome CORS header caching bug`);try{r=await this.fetchImplementation(e,{...t,cache:"reload"})}catch(e){throw n(e)}}return r}async read(e,t,n={}){if(0===e)return new Uint8Array(0);const{headers:r={},signal:o,overrides:i={}}=n;e<1/0?r.range=`bytes=${t}-${t+e-1}`:e===1/0&&0!==t&&(r.range=`bytes=${t}-`);const a=await this.fetch(this.url,{...this.baseOverrides,...i,headers:{...this.baseOverrides.headers,...i.headers,...r},method:"GET",redirect:"follow",mode:"cors",signal:o});if(!a.ok)throw new Error(`HTTP ${a.status} fetching ${this.url}`);if(200===a.status&&0===t||206===a.status){const t=a.headers.get("content-range"),n=/\/(\d+)$/.exec(t||"");n?.[1]&&(this._stat={size:parseInt(n[1],10)});const r=a.bytes?await a.bytes():new Uint8Array(await a.arrayBuffer());return r.byteLength<=e?r:r.subarray(0,e)}throw new Error(200===a.status?`${this.url} fetch returned status 200, expected 206`:`HTTP ${a.status} fetching ${this.url}`)}async readFile(e={}){let t,n;if("string"==typeof e)t=e,n={};else{t=e.encoding;const{encoding:r,...o}=e;n=o}const{headers:r={},signal:o,overrides:i={}}=n,a=await this.fetch(this.url,{...this.baseOverrides,...i,headers:{...this.baseOverrides.headers,...i.headers,...r},method:"GET",redirect:"follow",mode:"cors",signal:o});if(!a.ok)throw new Error(`HTTP ${a.status} fetching ${this.url}`);if("utf8"===t)return a.text();if(t)throw new Error(`unsupported encoding: ${t}`);return a.bytes?a.bytes():new Uint8Array(await a.arrayBuffer())}async stat(){if(!this._stat&&(await this.read(10,0),!this._stat))throw new Error(`unable to determine size of file at ${this.url}`);return this._stat}async close(){}}const ga={},ma=new class{constructor({fetch:e=pa,size:t=1e7,chunkSize:n=32768,aggregationTime:r=100,maxFetchSize:o=4*n,maxExtraFetch:i=n}={}){this.aggregator=new fa({fetch:e,frequency:r,maxFetchSize:o,maxExtraSize:i}),this.chunkSize=n,this.chunkCache=new da({maxSize:Math.floor(t/n)||1})}async getRange(e,t,n,r={}){const o=Math.floor(t/this.chunkSize),i=Math.floor((t+n-1)/this.chunkSize),a=new Array(i-o+1);for(let t=o;t<=i;t+=1)a[t-o]=this._getChunk(e,t,r).then(e=>e&&{headers:e.headers,buffer:e.buffer,chunkNumber:t});let l=await Promise.all(a);if(l=l.filter(e=>!!e),!l.length)return{headers:{},buffer:new Uint8Array(0)};const s=t-l[0].chunkNumber*this.chunkSize;return{headers:l[0].headers,buffer:this._makeBuffer(l,s,n)}}_makeBuffer(e,t,n){if(1===e.length)return e[0].buffer.slice(t,t+n);const r=e.map(e=>e.buffer);r[0]=r[0].slice(t);const o=r.reduce((e,t)=>e+t.length,0),i=Math.max(0,o-n),a=r.length-1;return r[a]=r[a].slice(0,r[a].length-i),function(e){const t=new Uint8Array(function(e){let t=0;for(const n of e)t+=n.length;return t}(e));let n=0;for(const r of e)t.set(r,n),n+=r.length;return t}(r)}async _getChunk(e,t,n){const r=`${e}/${t}`,o=this.chunkCache.get(r);if(o){let a,l=!1;try{a=await o}catch(e){if("AbortError"!==(i=e).name&&"ERR_ABORTED"!==i.code&&!i.message?.match(/\b(aborted|AbortError)\b/i))throw e;l=!0}return l?(this._uncacheIfSame(r,o),this._getChunk(e,t,n)):a}var i;const a=t*this.chunkSize,l=a+this.chunkSize,s=this.aggregator.fetch(e,a,l,n).catch(e=>{throw this._uncacheIfSame(r,s),e});return this.chunkCache.set(r,s),s}_uncacheIfSame(e,t){this.chunkCache.get(e)===t&&this.chunkCache.delete(e)}reset(){this.chunkCache.clear()}}({fetch:function(e,t,n,r={}){const o=ga[e];if(!o)throw new Error(`fetch not registered for ${e}`);return o(e,t,n,r)},size:524288e3,chunkSize:131072,maxFetchSize:104857600,minimumTTL:864e5});class Aa extends ha{async fetch(e,t){const n=String(e);ga[n]||(ga[n]=this.fetchBinaryRange.bind(this));const r=new Headers(t?.headers).get("range");if(r){const t=/bytes=(\d+)-(\d+)/.exec(r);if(t){const[,n,r]=t,o=Number.parseInt(n,10),i=Number.parseInt(r,10)-o,{buffer:a,headers:l}=await ma.getRange(`${e}`,o,i+1);return new Response(a,{status:206,headers:l})}}return super.fetch(e,t)}async fetchBinaryRange(e,t,n,r={}){const o=new Date,i=await super.fetch(e,{...r,headers:{...r.headers,range:`bytes=${t}-${n}`}}),a=new Date;if(!i.ok){const r=`HTTP ${i.status} fetching ${e} bytes ${t}-${n}`,o=" (should be 206 for range requests)";throw new Error(`${r}${200===i.status?o:""}`)}const l={};for(const[e,t]of i.headers.entries())l[e]=t;const s=await i.arrayBuffer();return{headers:l,requestDate:o,responseDate:a,buffer:new Uint8Array(s)}}}function ba(e,t){if(function(e){return"localPath"in e}(e)){if(!e.localPath)throw new Error("No local path provided");if(Vi||E.b8R)return new Wi(e.localPath);throw new Error("can't use local files in the browser")}if(function(e){return"blobId"in e}(e)){const t=To(e.blobId);if(!t)throw new Error(`file ("${e.name}") was opened locally from a previous session. To restore it, go to track settings and reopen the file`);return new Ui(t)}if(function(e){return"handleId"in e}(e)){const t=Qo(e.handleId);if(!t)throw new Error(`file ("${e.name}") requires permission. Please reopen the file from track settings`);return new Ui(t)}if((0,No.C1)(e)){if(!e.uri)throw new Error("No URI provided");const n=function(e){return e.baseUri?{...e,uri:new URL(e.uri,e.baseUri).href}:e}(e);if(t){const r=function(e,t){const{rootModel:n}=t;if(n&&(0,No.lL)(n))return n.findAppropriateInternetAccount(e);if(e.internetAccountPreAuthorization){if(!e.internetAccountPreAuthorization.authInfo.token)throw new Error("Failed to obtain token from internet account. Try reloading the page");return t.getInternetAccountType(e.internetAccountPreAuthorization.internetAccountType).stateModel.create({type:e.internetAccountPreAuthorization.internetAccountType,configuration:e.internetAccountPreAuthorization.authInfo.configuration})}}(e,t);if(r)return r.openLocation(n)}return new Aa(n.uri,{fetch:va})}throw new Error("invalid fileLocation")}async function va(e,t){const n=await fetch(e,t);if(401===n.status&&n.headers.get("WWW-Authenticate")?.includes("Basic"))throw new No._u("Accessing HTTPBasic resource without authentication",e.toString());return n}const ya=Yn.gK.optional(Yn.gK.identifier,function(){return((e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_"),""))(10)}),wa=Yn.gK.model("NoAssemblyRegion",{refName:Yn.gK.string,start:Yn.gK.number,end:Yn.gK.number,reversed:Yn.gK.optional(Yn.gK.boolean,!1)}).actions(e=>({setRefName(t){e.refName=t}})),Ca=(Yn.gK.compose("Region",wa,Yn.gK.model({assemblyName:Yn.gK.string})),Yn.gK.model("LocalPathLocation",{locationType:Yn.gK.literal("LocalPathLocation"),localPath:Yn.gK.string})),Sa=Yn.gK.model("BlobLocation",{locationType:Yn.gK.literal("BlobLocation"),name:Yn.gK.string,blobId:Yn.gK.string}),xa=Yn.gK.model("FileHandleLocation",{locationType:Yn.gK.literal("FileHandleLocation"),name:Yn.gK.string,handleId:Yn.gK.string}),Ia=Yn.gK.model("UriLocation",{locationType:Yn.gK.literal("UriLocation"),uri:Yn.gK.string,baseUri:Yn.gK.maybe(Yn.gK.string),internetAccountId:Yn.gK.maybe(Yn.gK.string),internetAccountPreAuthorization:Yn.gK.maybe(Yn.gK.model("InternetAccountPreAuthorization",{internetAccountType:Yn.gK.string,authInfo:Yn.gK.frozen()}))}),Ea=Yn.gK.snapshotProcessor(Ia,{postProcessor:e=>{const{baseUri:t,...n}=e;return t?e:n}}),ka=Yn.gK.snapshotProcessor(Yn.gK.union(Ca,Ea,Sa,xa),{preProcessor(e){if(!e)return;const{locationType:t,...n}=e;if(!t){const{uri:e,localPath:t,blob:r,handleId:o}=n;let i="";return void 0!==e?i="UriLocation":void 0!==t?i="LocalPathLocation":void 0!==r?i="BlobLocation":void 0!==o&&(i="FileHandleLocation"),{...n,locationType:i}}return e}});var Ba=o(5070);function Ma(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Ra(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=_a)):void 0===t&&(t=Pa);for(var n,r,o,i,a,l=new Da(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new Da(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Oa)}function Pa(e){return e.children}function _a(e){return Array.isArray(e)?e[1]:null}function Ta(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Oa(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Da(e){this.data=e,this.depth=this.height=0,this.parent=null}function Qa(e,t){return e.parent===t.parent?1:2}function Na(e,t){return e+t.x}function Fa(e,t){return Math.max(e,t.y)}function La(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ja(){return{gf:{},gc:{},gs:{},gr:{},seqname:[],seqdata:{}}}Da.prototype=Ra.prototype={constructor:Da,count:function(){return this.eachAfter(Ma)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return Ra(this).eachBefore(Ta)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}};var za=/^# STOCKHOLM 1.0/,$a=/^\/\/\s*$/,Ha=/^#=GF\s+(\S+)\s+(.*?)\s*$/,Ga=/^#=GC\s+(\S+)\s+(.*?)\s*$/,Va=/^#=GS\s+(\S+)\s+(\S+)\s+(.*?)\s*$/,Wa=/^#=GR\s+(\S+)\s+(\S+)\s+(.*?)\s*$/,Ua=/^\s*(\S+)\s+(\S+)\s*$/,Ya=/\S/;function Ka(e,t){var n,r=null!=t?t:{},o=[],i=null,a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return La(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?La(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(e.split("\n"));try{for(a.s();!(n=a.n()).done;){var l=n.value,s=void 0;if(za.test(l))i=ja();else if($a.test(l))i&&o.push(i),i=null;else if(s=Ha.exec(l)){if(!i){if(r.strict)throw new Error("No format header: # STOCKHOLM 1.0");i=ja()}var c=s[1];i.gf[c]||(i.gf[c]=[]),i.gf[c].push(s[2])}else if(s=Ga.exec(l)){if(!i){if(r.strict)throw new Error("No format header: # STOCKHOLM 1.0");i=ja()}var u=s[1];i.gc[u]||(i.gc[u]=""),i.gc[u]+=s[2]}else if(s=Va.exec(l)){if(!i){if(r.strict)throw new Error("No format header: # STOCKHOLM 1.0");i=ja()}var d=s[1],f=s[2],p=s[3];i.gs[f]||(i.gs[f]={}),i.gs[f][d]||(i.gs[f][d]=[]),i.gs[f][d].push(p)}else if(s=Wa.exec(l)){if(!i){if(r.strict)throw new Error("No format header: # STOCKHOLM 1.0");i=ja()}var h=s[1],g=s[2],m=s[3];i.gr[g]||(i.gr[g]={}),i.gr[g][h]||(i.gr[g][h]=""),i.gr[g][h]+=m}else if(s=Ua.exec(l)){if(!i){if(r.strict)throw new Error("No format header: # STOCKHOLM 1.0");i=ja()}var A=s[1],b=s[2];i.seqdata[A]||(i.seqdata[A]="",i.seqname.push(A)),i.seqdata[A]+=b}else if(Ya.test(l)&&r.strict)throw new Error("Malformed line")}}catch(e){a.e(e)}finally{a.f()}return i&&o.push(i),o}function qa(e){for(var t,n=[],r={},o=e.split(/\s*(;|\(|\)|,|:)\s*/),i=0;i<o.length;i++){var a=o[i],l={};switch(a){case"(":r.children=[l],n.push(r),r=l;break;case",":null===(t=n.at(-1))||void 0===t||t.children.push(l),r=l;break;case")":r=n.pop();break;case":":break;default:var s=o[i-1];")"===s||"("===s||","===s?r.name=a:":"===s&&(r.length=Number.parseFloat(a))}}return r}function Ja(e){return Ja="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ja(e)}function Xa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Za(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xa(Object(n),!0).forEach(function(t){el(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function el(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ja(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ja(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ja(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tl(e){var t,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"node","-").concat(n);return Za(Za({},e),{},{id:r,name:e.name||r,children:(null===(t=e.children)||void 0===t?void 0:t.map(function(e,t){return tl(e,"".concat(r,"-").concat(t),n+1)}))||[]})}var nl=["id"];function rl(e){return rl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rl(e)}function ol(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function il(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||al(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function al(e,t){if(e){if("string"==typeof e)return ll(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ll(e,t):void 0}}function ll(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function sl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ul(r.key),r)}}function cl(e,t,n){return(t=ul(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ul(e){var t=function(e){if("object"!=rl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=rl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==rl(t)?t:t+""}var dl=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),cl(this,"data",void 0),cl(this,"MSA",void 0);var r=Ka(t);this.data=r,this.MSA=r[n]},t=[{key:"getMSA",value:function(){return this.MSA}},{key:"getRow",value:function(e){return this.MSA.seqdata[e]||""}},{key:"getWidth",value:function(){var e=Object.keys(this.MSA.seqdata)[0];return this.getRow(e).length}},{key:"alignmentNames",get:function(){return this.data.map(function(e,t){var n,r;return null!==(n=null===(r=e.gf.DE)||void 0===r?void 0:r[0])&&void 0!==n?n:"Alignment ".concat(t+1)})}},{key:"getHeader",value:function(){var e,t,n=null!==(e=this.MSA.gs.AC)&&void 0!==e?e:{},r=null!==(t=this.MSA.gs.DR)&&void 0!==t?t:{};return{General:this.MSA.gf,Accessions:Object.fromEntries(Object.entries(n).map(function(e){var t=il(e,2);return[t[0],t[1][0]]})),Dbxref:Object.fromEntries(Object.entries(r).map(function(e){var t=il(e,2);return[t[0],t[1].join("; ")]}))}}},{key:"getRowData",value:function(e){var t,n;return{name:e,accession:null===(t=this.MSA.gs.AC)||void 0===t||null===(t=t[e])||void 0===t?void 0:t[0],dbxref:null===(n=this.MSA.gs.DR)||void 0===n||null===(n=n[e])||void 0===n?void 0:n.join("; ")}}},{key:"getNames",value:function(){return Object.keys(this.MSA.seqdata)}},{key:"getSeqCoords",value:function(){}},{key:"getStructures",value:function(){var e,t,n=/PDB; +(\S+) +(\S); ([0-9]+)-([0-9]+)/,r=null!==(e=this.MSA.gs.DR)&&void 0!==e?e:{},o=Object.entries(r).flatMap(function(e){var t=il(e,2),r=t[0];return t[1].map(function(e){var t=n.exec(e);return t?{id:r,match:t}:null})}).filter(function(e){return!!e}).map(function(e){var t=e.id,n=e.match;return{id:t,pdb:n[1].toLowerCase(),chain:n[2],startPos:+n[3],endPos:+n[4]}}),i={},a=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=al(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(a)throw o}}}}(o);try{for(a.s();!(t=a.n()).done;){var l=t.value,s=l.id,c=ol(l,nl);i[s]||(i[s]=[]),i[s].push(c)}}catch(e){a.e(e)}finally{a.f()}return i}},{key:"getTree",value:function(){var e,t=null===(e=this.MSA.gf.NH)||void 0===e?void 0:e[0];return t?tl(qa(t)):{id:"root",name:"root",noTree:!0,children:this.getNames().map(function(e){return{id:e,children:[],name:e}})}}},{key:"seqConsensus",get:function(){return this.MSA.gc.seq_cons}},{key:"secondaryStructureConsensus",get:function(){return this.MSA.gc.SS_cons}},{key:"tracks",get:function(){return[{id:"seqConsensus",name:"Sequence consensus",data:this.seqConsensus,customColorScheme:{}},{id:"secondaryStruct",name:"Secondary-structure",data:this.secondaryStructureConsensus,customColorScheme:{">":"pink","<":"lightblue"}}]}}],t&&sl(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function fl(e){return fl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fl(e)}function pl(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=hl(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function hl(e,t){if(e){if("string"==typeof e)return gl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gl(e,t):void 0}}function gl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ml(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bl(r.key),r)}}function Al(e,t,n){return(t=bl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bl(e){var t=function(e){if("object"!=fl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fl(t)?t:t+""}function vl(e){return e>=97&&e<=122}var yl=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Al(this,"MSA",void 0),Al(this,"orderedNames",void 0);var n,r=[],o=[],i=pl(t.split(">"));try{for(i.s();!(n=i.n()).done;){var a=n.value;if(/\S/.test(a)){var l=a.indexOf("\n");if(-1!==l){var s=a.slice(0,l),c=s.indexOf(" "),u=-1===c?s:s.slice(0,c);u&&(r.push(a.slice(l+1).replaceAll(/\s/g,"")),o.push(u))}}}}catch(e){i.e(e)}finally{i.f()}this.orderedNames=o,this.MSA={seqdata:this.expandA3M(r,o)}},n=[{key:"sniff",value:function(e){if(!e.startsWith(">"))return!1;var t,n=[],r=pl(e.split(">"));try{for(r.s();!(t=r.n()).done;){var o=t.value;if(/\S/.test(o)){var i=o.indexOf("\n");if(-1!==i){var a=o.slice(i+1).replaceAll(/\s/g,"");a&&n.push(a)}}}}catch(e){r.e(e)}finally{r.f()}if(n.length<2)return!1;for(var l=!1,s=-1,c=!0,u=0,d=n;u<d.length;u++){for(var f=d[u],p=0,h=0;h<f.length;h++){var g=f.charCodeAt(h);vl(g)?l=!0:g>=65&&g<=90&&p++}-1===s?s=p:p!==s&&(c=!1)}return l&&c}}],(t=[{key:"expandA3M",value:function(e,t){var n=t.length;if(0===n)return{};for(var r=[],o=[],i=0;i<n;i++){for(var a=e[i],l=[],s=[],c=0;c<a.length;){var u=a.charCodeAt(c);if(u>=65&&u<=90){l.push(a[c]);for(var d="",f=c+1;f<a.length;){var p=a.charCodeAt(f);if(!vl(p)&&45!==p&&46!==p)break;d+=a[f],f++}s.push(d),c=f}else if(45===u||46===u)c++;else if(vl(u)){for(var h="";c<a.length&&vl(a.charCodeAt(c));)h+=a[c],c++;l.push(""),s.push(h)}else c++}r.push(l),o.push(s)}for(var g=Math.max.apply(Math,function(e){return function(e){if(Array.isArray(e))return gl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||hl(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(r.map(function(e){return e.length})).concat([0])),m=new Array(g).fill(0),A=0;A<n;A++)for(var b=o[A],v=0;v<b.length;v++){var y,w=0,C=pl(b[v]);try{for(C.s();!(y=C.n()).done;)vl(y.value.charCodeAt(0))&&w++}catch(e){C.e(e)}finally{C.f()}w>m[v]&&(m[v]=w)}for(var S={},x=0;x<n;x++){for(var I=r[x],E=o[x],k=[],B=0;B<g;B++){var M=m[B];if(B<I.length){var R=I[B],P=E[B]||"";k.push(R||"-");var _,T="",O=pl(P);try{for(O.s();!(_=O.n()).done;){var D=_.value;vl(D.charCodeAt(0))&&(T+=D.toUpperCase())}}catch(e){O.e(e)}finally{O.f()}k.push(T);var Q=M-T.length;Q>0&&k.push(".".repeat(Q))}else k.push("-"),M>0&&k.push(".".repeat(M))}S[t[x]]=k.join("")}return S}},{key:"getMSA",value:function(){return this.MSA}},{key:"getRowData",value:function(){}},{key:"getNames",value:function(){return this.orderedNames}},{key:"getRow",value:function(e){return this.MSA.seqdata[e]||""}},{key:"getWidth",value:function(){var e=Object.keys(this.MSA.seqdata)[0];return e?this.getRow(e).length:0}},{key:"getStructures",value:function(){return{}}},{key:"alignmentNames",get:function(){return[]}},{key:"getHeader",value:function(){return{}}},{key:"getTree",value:function(){return{id:"root",name:"root",noTree:!0,children:this.getNames().map(function(e){return{id:e,children:[],name:e}})}}},{key:"seqConsensus",get:function(){}},{key:"secondaryStructureConsensus",get:function(){}},{key:"tracks",get:function(){return[]}}])&&ml(e.prototype,t),n&&ml(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function wl(e){return wl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wl(e)}function Cl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Sl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xl(r.key),r)}}function xl(e){var t=function(e){if("object"!=wl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=wl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wl(t)?t:t+""}var Il=function(){return e=function e(t){var n,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,o=void 0,(r=xl(r="MSA"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o;var i,a={},l=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Cl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cl(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(t.split(">"));try{for(l.s();!(i=l.n()).done;){var s=i.value;if(/\S/.test(s)){var c=s.indexOf("\n");if(-1!==c){var u=s.slice(0,c),d=u.indexOf(" "),f=-1===d?u:u.slice(0,d);f&&(a[f]=s.slice(c+1).replaceAll(/\s/g,""))}}}}catch(e){l.e(e)}finally{l.f()}this.MSA={seqdata:a}},(t=[{key:"getMSA",value:function(){return this.MSA}},{key:"getRowData",value:function(){}},{key:"getNames",value:function(){return Object.keys(this.MSA.seqdata)}},{key:"getRow",value:function(e){return this.MSA.seqdata[e]||""}},{key:"getWidth",value:function(){var e=Object.keys(this.MSA.seqdata)[0];return this.getRow(e).length}},{key:"getStructures",value:function(){return{}}},{key:"alignmentNames",get:function(){return[]}},{key:"getHeader",value:function(){return{}}},{key:"getTree",value:function(){return{id:"root",name:"root",noTree:!0,children:this.getNames().map(function(e){return{id:e,children:[],name:e}})}}},{key:"seqConsensus",get:function(){}},{key:"secondaryStructureConsensus",get:function(){}},{key:"tracks",get:function(){return[]}}])&&Sl(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function El(e){return El="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},El(e)}function kl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bl(r.key),r)}}function Bl(e){var t=function(e){if("object"!=El(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=El(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==El(t)?t:t+""}var Ml=function(){return e=function e(t){var n,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,o=void 0,(r=Bl(r="MSA"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,this.MSA=function(e){const t=e.split("\n").map(e=>e.trim()).filter(e=>!!e),n=[],r=[];for(const e of t)if(e.startsWith("SEQ"))n.push(e);else{if(e.startsWith("DATA"))continue;if(e.startsWith("//"))break;r.push(e)}const o=n.map(e=>{const[,t,n,r,o,i,a,l,s]=e.split(" ");return{species:t,protein:n,chr:r,start:+o,end:+i,strand:+a,geneId:l,unknown:s,seq:""}});for(const e of r)for(let t=0;t<n.length;t++)o[t].seq+=e[t];return o}(t)},(t=[{key:"getMSA",value:function(){return this.MSA}},{key:"getRow",value:function(e){var t;return(null===(t=this.MSA.find(function(t){return t.protein===e}))||void 0===t?void 0:t.seq)||""}},{key:"getWidth",value:function(){return this.MSA[0].seq.length}},{key:"getRowData",value:function(){}},{key:"getHeader",value:function(){return""}},{key:"getNames",value:function(){return this.MSA.map(function(e){return e.protein})}},{key:"getStructures",value:function(){return{}}},{key:"alignmentNames",get:function(){return[]}},{key:"getTree",value:function(){return{id:"root",name:"root",noTree:!0,children:this.getNames().map(function(e){return{id:e,name:e,children:[]}})}}},{key:"seqConsensus",get:function(){}},{key:"secondaryStructureConsensus",get:function(){}},{key:"tracks",get:function(){return[]}}])&&kl(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function Rl(e){let t=e.next();for(;!t.done&&""===t.value.trim();)t=e.next();return t.value}function Pl(e){let t=Rl(e);const n=[];let r="";if(!t)return;for(;t;)t.startsWith(" ")?r=t:n.push(t),t=e.next().value;const[o,i]=function(e){const t=e.split(/\s+/),n=e.slice(t[0].length),r=t[0].length+n.indexOf(t[1]);return[r,r+t[1].length]}(n[0]),a=n.map(e=>e.split(/\s+/)).map(e=>e[0]),l=n.map(e=>e.slice(o,i));let s=r.slice(o,i);const c=l[0].length-s.length;return c&&(s+=" ".repeat(c)),{ids:a,seqs:l,consensus:s}}function _l(e){return _l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_l(e)}function Tl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ol(r.key),r)}}function Ol(e){var t=function(e){if("object"!=_l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_l(t)?t:t+""}var Dl=function(){return e=function e(t){var n,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,o=void 0,(r=Ol(r="MSA"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,this.MSA=function(e){const t=Rl(e);if(!t)throw new Error("Empty file received");const n=function(e){const t=["CLUSTAL","PROBCONS","MUSCLE","MSAPROBS","Kalign"];t.some(t=>e.startsWith(t))||console.warn(`${e} is not a known CLUSTAL header: ${t.join(",")}, proceeding but could indicate an issue`);const n=function(e){const t=/\(?(\d+(\.\d+)+)\)?/.exec(e);return t&&t.length>1?t[1]:""}(e);return{info:e,version:n}}(t),r=function(e){let t;const n=Pl(e);if(void 0!==n)for(;t=Pl(e);){for(let e=0;e<t.seqs.length;e++)n.seqs[e]+=t.seqs[e];n.consensus+=t.consensus}return n}(e);if(void 0===r)throw new Error("No blocks parsed");const o=r.seqs.map((e,t)=>({id:r.ids[t],seq:e})),{consensus:i}=r;if(i.length!=o[0].seq.length)throw new Error(`Consensus length != sequence length. Con ${i.length} seq ${o[0].seq.length}`);return{consensus:i,alns:o,header:n}}(t.split("\n")[Symbol.iterator]())},(t=[{key:"getMSA",value:function(){return this.MSA}},{key:"getRow",value:function(e){var t;return(null===(t=this.MSA.alns.find(function(t){return t.id===e}))||void 0===t?void 0:t.seq)||""}},{key:"getWidth",value:function(){return this.MSA.alns[0].seq.length}},{key:"getRowData",value:function(){}},{key:"getHeader",value:function(){return this.MSA.header}},{key:"getNames",value:function(){return this.MSA.alns.map(function(e){return e.id})}},{key:"getStructures",value:function(){return{}}},{key:"alignmentNames",get:function(){return[]}},{key:"getTree",value:function(){return{id:"root",name:"root",noTree:!0,children:this.getNames().map(function(e){return{id:e,name:e,children:[]}})}}},{key:"seqConsensus",get:function(){return this.MSA.consensus}},{key:"secondaryStructureConsensus",get:function(){}},{key:"tracks",get:function(){return[]}}])&&Tl(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function Ql(e){return Ql="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ql(e)}function Nl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Fl(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ql(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ql(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ql(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ll(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return jl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jl(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function zl(e){return e?e.split("\n").map(function(e){return e.trim()}).filter(function(e){return!!e&&!e.startsWith("#")}).map(function(e){var t=e.split("\t"),n=Ll(t,8),r=n[0],o=n[1],i=n[2],a=n[3],l=n[4],s=n[5],c=n[6],u=n[7],d=t[8];return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nl(Object(n),!0).forEach(function(t){Fl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({seq_id:null!=r?r:"",source:null!=o?o:"",type:null!=i?i:"",start:Number(a)||0,end:Number(l)||0,score:Number(s)||0,strand:null!=c?c:".",phase:null!=u?u:"."},function(e){return e?Object.fromEntries(e.split(";").map(function(e){return e.trim()}).filter(function(e){return!!e}).map(function(e){return e.split("=")}).map(function(e){var t,n=Ll(e,2),r=n[0],o=n[1];return[null!==(t=null==r?void 0:r.trim())&&void 0!==t?t:"",o?decodeURIComponent(o).trim().split(",").join(" "):void 0]}).filter(function(e){return""!==Ll(e,1)[0]})):{}}(d))}):[]}function $l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||Gl(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hl(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Gl(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function Gl(e,t){if(e){if("string"==typeof e)return Vl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vl(e,t):void 0}}function Vl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Wl(e){var t,n=new Map,r=Hl(e);try{for(r.s();!(t=r.n()).done;){var o=t.value,i=n.get(o.seq_id);i?i.push(o):n.set(o.seq_id,[o])}}catch(e){r.e(e)}finally{r.f()}var a,l={},s=Hl(n);try{for(s.s();!(a=s.n()).done;){var c,u=$l(a.value,2),d=u[0],f=u[1],p=new Map,h=new Map,g=Hl(f);try{for(g.s();!(c=g.n()).done;){var m=c.value,A=m.Name||m.ID||"".concat(m.source,"_").concat(m.start,"_").concat(m.end),b=m.signature_desc||m.Name||A,v=m.Ontology_term||m.description||m.Note||b;h.has(A)||h.set(A,{name:b,description:v,accession:A});var y=p.get(A);y?y.push({start:m.start,end:m.end}):p.set(A,[{start:m.start,end:m.end}])}}catch(e){g.e(e)}finally{g.f()}var w,C=[],S=Hl(p);try{for(S.s();!(w=S.n()).done;){var x=$l(w.value,2),I=x[0],E=x[1],k=h.get(I);C.push({signature:{entry:k},locations:E})}}catch(e){S.e(e)}finally{S.f()}l[d]={matches:C,xref:[{id:d}]}}}catch(e){s.e(e)}finally{s.f()}return l}var Ul=o(1160),Yl=(0,s.PA)(function(t){var n=t.model,r=t.offsetX,o=t.trackHeight,i=n.blockSize,a=n.scrollX,l=n.colWidth,s=n.highResScaleFactor,c=n.conservation,u=(0,e.useRef)(null);return(0,e.useEffect)(function(){if(u.current){var e=u.current.getContext("2d");e&&(e.resetTransform(),e.scale(s,s),e.clearRect(0,0,i,o),e.translate(-r,0),(0,Ul.kt)({ctx:e,conservation:c,colWidth:l,trackHeight:o,offsetX:r,blockSize:i}))}},[i,l,o,r,s,c]),e.createElement("canvas",{ref:u,height:o*s,width:i*s,style:{position:"absolute",left:a+r,width:i,height:o}})}),Kl=(0,s.PA)(function(t){var n=t.model,r=t.track,o=n.blocksX,i=n.msaAreaWidth,a=r.model.height;return e.createElement("div",{style:{position:"relative",height:a,width:i,overflow:"hidden"}},o.map(function(t){return e.createElement(Yl,{key:t,model:n,offsetX:t,trackHeight:a})}))});const ql=Kl;var Jl=(0,s.PA)(function(t){var n=t.track,r=t.model,o=t.offsetX,i=r.blockSize,a=r.scrollX,l=r.bgColor,s=r.colorScheme,c=r.colWidth,u=r.fontSize,d=r.rowHeight,f=r.highResScaleFactor,p=n.model,h=p.customColorScheme,g=p.data,m=h||s,A=(0,Tn.A)(),b=(0,e.useRef)(null),v=(0,e.useMemo)(function(){return(0,jn.Sl)(m,A)},[m,A]);return(0,e.useEffect)(function(){if(b.current){var e=b.current.getContext("2d");e&&(e.resetTransform(),e.scale(f,f),e.clearRect(0,0,i,d),e.translate(-o,0),e.textAlign="center",e.font=e.font.replace(/\d+px/,"".concat(u,"px")),(0,Ul.qM)({ctx:e,data:g,colorScheme:m,contrastScheme:v,bgColor:l,colWidth:c,rowHeight:d,offsetX:o,blockSize:i}))}},[u,l,i,c,d,o,v,m,f,g]),e.createElement("canvas",{ref:b,height:d*f,width:i*f,style:{position:"absolute",left:a+o,width:i,height:d}})}),Xl=(0,s.PA)(function(t){var n=t.track,r=t.model,o=r.blocksX,i=r.msaAreaWidth,a=r.rowHeight;return n.model.data?e.createElement("div",{style:{position:"relative",height:a,width:i,overflow:"hidden"}},o.map(function(t){return e.createElement(Jl,{key:t,track:n,model:r,offsetX:t})})):null});const Zl=Xl;var es,ts=!1,ns=!0,rs=!0,os=!1,is=!0,as=!0,ls="maeditor",ss=!0,cs=!1,us=!0,ds=!0,fs=!0,ps=!0,hs=o(1091);function gs(e){return gs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gs(e)}function ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function As(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ms(Object(n),!0).forEach(function(t){bs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ms(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bs(e,t,n){return(t=function(e){var t=function(e){if("object"!=gs(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=gs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gs(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vs(e,t){es||(es=document.createElement("canvas"));var n=es.getContext("2d");if(!n)throw new Error("no canvas context");return n.font=n.font.replace(/\d+px/,"".concat(t,"px")),n.measureText(e).width}function ys(e,t){if(e){if("string"==typeof e)return ws(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ws(e,t):void 0}}function ws(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cs(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=xs(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function Ss(e){return function(e){if(Array.isArray(e))return Is(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||xs(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xs(e,t){if(e){if("string"==typeof e)return Is(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Is(e,t):void 0}}function Is(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Es={A:{A:4,R:-1,N:-2,D:-2,C:0,Q:-1,E:-1,G:0,H:-2,I:-1,L:-1,K:-1,M:-1,F:-2,P:-1,S:1,T:0,W:-3,Y:-2,V:0,B:-2,Z:-1,X:0,"*":-4},R:{A:-1,R:5,N:0,D:-2,C:-3,Q:1,E:0,G:-2,H:0,I:-3,L:-2,K:2,M:-1,F:-3,P:-2,S:-1,T:-1,W:-3,Y:-2,V:-3,B:-1,Z:0,X:-1,"*":-4},N:{A:-2,R:0,N:6,D:1,C:-3,Q:0,E:0,G:0,H:1,I:-3,L:-3,K:0,M:-2,F:-3,P:-2,S:1,T:0,W:-4,Y:-2,V:-3,B:3,Z:0,X:-1,"*":-4},D:{A:-2,R:-2,N:1,D:6,C:-3,Q:0,E:2,G:-1,H:-1,I:-3,L:-4,K:-1,M:-3,F:-3,P:-1,S:0,T:-1,W:-4,Y:-3,V:-3,B:4,Z:1,X:-1,"*":-4},C:{A:0,R:-3,N:-3,D:-3,C:9,Q:-3,E:-4,G:-3,H:-3,I:-1,L:-1,K:-3,M:-1,F:-2,P:-3,S:-1,T:-1,W:-2,Y:-2,V:-1,B:-3,Z:-3,X:-2,"*":-4},Q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{A:0,R:-1,N:-1,D:-1,C:-2,Q:-1,E:-1,G:-1,H:-1,I:-1,L:-1,K:-1,M:-1,F:-1,P:-2,S:0,T:0,W:-2,Y:-1,V:-1,B:-1,Z:-1,X:-1,"*":-4},"*":{A:-4,R:-4,N:-4,D:-4,C:-4,Q:-4,E:-4,G:-4,H:-4,I:-4,L:-4,K:-4,M:-4,F:-4,P:-4,S:-4,T:-4,W:-4,Y:-4,V:-4,B:-4,Z:-4,X:-4,"*":1}};function ks(e,t){var n,r,o=e.toUpperCase(),i=t.toUpperCase();return null!==(n=null===(r=Es[o])||void 0===r?void 0:r[i])&&void 0!==n?n:-4}function Bs(e,t){if(e.length!==t.length)throw new Error("Sequences must have the same length (aligned)");for(var n=0,r=0,o=0,i=0,a=0;a<e.length;a++){var l=e[a],s=t[a];"-"===l&&"-"===s||("-"!==l&&"-"!==s?(o+=ks(l,s),i+=Math.max(ks(l,l),ks(s,s)),l.toUpperCase()===s.toUpperCase()?n++:r++):r++)}if(0===n+r)return 1;if(i<=0)return 1;var c=o/i,u=Math.max(.01,Math.min(1,c));return-Math.log(u)}function Ms(e,t){var n;if(void 0===e.name||e.left||e.right){var r=e.left?Ms(e.left,e.leftLength):"",o=e.right?Ms(e.right,e.rightLength):"";n="(".concat(r,",").concat(o,")")}else n=e.name.replace(/[():,;[\]]/g,"_");return void 0!==t&&(n+=":".concat(t.toFixed(6))),n}function Rs(e){if(e.length<2)throw new Error("Need at least 2 sequences to build a tree");var t=e.map(function(e){return e[0]}),n=function(e){for(var t=e.length,n=[],r=0;r<t;r++){n[r]=[];for(var o=0;o<t;o++)n[r][o]=r===o?0:o<r?n[o][r]:Bs(e[r][1],e[o][1])}return n}(e),r=function(e,t){var n=e.length;if(n<2)return{name:t[0]};if(2===n){var r=e[0][1];return{left:{name:t[0]},right:{name:t[1]},leftLength:r/2,rightLength:r/2}}for(var o=[],i=0;i<n;i++)o[i]=Ss(e[i]);for(var a=t.map(function(e){return{name:e}}),l=n;l>2;){for(var s=[],c=0;c<a.length;c++)void 0!==a[c]&&s.push(c);for(var u=new Map,d=0,f=s;d<f.length;d++){var p,h=f[d],g=0,m=Cs(s);try{for(m.s();!(p=m.n()).done;){var A=p.value;h!==A&&(g+=o[h][A])}}catch(e){m.e(e)}finally{m.f()}u.set(h,g)}for(var b=1/0,v=-1,y=-1,w=0;w<s.length;w++)for(var C=w+1;C<s.length;C++){var S=s[w],x=s[C],I=(l-2)*o[S][x]-u.get(S)-u.get(x);I<b&&(b=I,v=S,y=x)}var E=o[v][y],k=u.get(v),B=u.get(y),M=void 0,R=void 0;l>2?R=E-(M=E/2+(k-B)/(2*(l-2))):(M=E/2,R=E/2),M=Math.max(0,M),R=Math.max(0,R);for(var P={left:a[v],right:a[y],leftLength:M,rightLength:R},_=v,T=0,O=s;T<O.length;T++){var D=O[T];if(D!==v&&D!==y){var Q=(o[v][D]+o[y][D]-E)/2;o[_][D]=Math.max(0,Q),o[D][_]=Math.max(0,Q)}}a[y]=void 0,a[_]=P,l--}for(var N=[],F=0;F<a.length;F++)void 0!==a[F]&&N.push(F);if(2===N.length){var L=N[0],j=N[1],z=o[L][j];return{left:a[L],right:a[j],leftLength:z/2,rightLength:z/2}}return a[N[0]]}(n,t);return Ms(r)+";"}function Ps(e){return Ps="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ps(e)}var _s=["features"];function Ts(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Os(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ts(Object(n),!0).forEach(function(t){Ds(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ts(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ds(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ps(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ps(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ps(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qs={$NODE_COLLAPSED:"collapsed",$NODE_COLOR:"color",$LABEL_BG_COLOR:"color","seq-id":"seqId","seq-title":"seqTitle","align-index":"alignIndex","accession-nbr":"accessionNbr","blast-name":"blastName","common-name":"commonName","leaf-count":"leafCount"};function Ns(e){var t=/id\s+(\d+)/.exec(e),n=/name\s+"((?:[^"\\]|\\[^])*)"/.exec(e);if(t&&n){var r=n[1].replace(/\\"/g,'"').replace(/\\\\/g,"\\");return{id:parseInt(t[1],10),name:r}}return null}function Fs(e){var t=/id\s+(\d+)/.exec(e),n=/parent\s+(\d+)/.exec(e);if(t){var r={id:parseInt(t[1],10)};n&&(r.parent=parseInt(n[1],10));var o=e.indexOf("features");if(-1!==o){var i=e.indexOf("{",o);if(-1!==i){for(var a=1,l=i+1;l<e.length&&a>0;)"{"===e[l]?a++:"}"===e[l]&&a--,l++;if(0===a){var s=e.slice(i+1,l-1).trim();r.features=function(e){for(var t=[],n=0;n<e.length;){for(;n<e.length&&/\s/.test(e[n]);)n++;if(n>=e.length)break;if("{"===e[n]){var r=n+1,o=1;for(n++;n<e.length&&o>0;)"{"===e[n]?o++:"}"===e[n]&&o--,n++;if(0===o){var i=Ls(e.slice(r,n-1).trim());i&&t.push(i)}}else for(;n<e.length&&"{"!==e[n];)n++}return t}(s)}}}return r}return null}function Ls(e){var t=/featureid\s+(\d+)/.exec(e),n=/value\s+"((?:[^"\\]|\\[^])*)"/.exec(e);if(t&&n){var r=n[1].replace(/\\"/g,'"').replace(/\\\\/g,"\\");return{featureid:parseInt(t[1],10),value:r}}return null}function js(e){return js="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},js(e)}function zs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zs(Object(n),!0).forEach(function(t){Hs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hs(e,t,n){return(t=function(e){var t=function(e){if("object"!=js(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=js(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==js(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gs(e){return $s($s({},e),{},{children:e.children.map(function(e){return e.children.length?Gs(e):{children:[e],id:"".concat(e.id,"-leafnode"),name:"".concat(e.name,"-hidden")}})})}function Vs(e,t){for(var n=0,r=0,o=0,i=e.length;r<i&&e[r]===o;)r++,o++;for(;n<t;)for(n++,o++;r<i&&e[r]===o;)r++,o++;return o}function Ws(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var Us="undefined"!=typeof navigator&&navigator.userAgent.includes("Macintosh")&&navigator.userAgent.includes("AppleWebKit")&&!navigator.userAgent.includes("Safari");function Ys(e,t){var n,r;if("undefined"!=typeof window){var o=window.URL,i=document.createElement("a");if(t=t||(Blob,"download"),"download"in HTMLAnchorElement.prototype&&!Us)return i.download=t,i.rel="noopener",void("string"==typeof e?(i.href=e,Ws(i)):(i.href=o.createObjectURL(e),setTimeout(function(){o.revokeObjectURL(i.href)},4e4),setTimeout(function(){Ws(i)},0)));if("string"!=typeof e){var a=/constructor/i.test(null!==(n=null===(r=window.HTMLElement)||void 0===r?void 0:r.toString())&&void 0!==n?n:"")||!!window.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||a||Us)&&"undefined"!=typeof FileReader){var s=new FileReader;s.onloadend=function(){var e=s.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),window.open(e,"_blank")},s.readAsDataURL(e)}else{var c=o.createObjectURL(e);window.open(c,"_blank"),setTimeout(function(){o.revokeObjectURL(c)},4e4)}}else window.open(e,"_blank")}}function Ks(e){return Ks="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ks(e)}var qs=["data","showDomains","hideGaps","allowedGappyness","contrastLettering","subFeatureRows","drawMsaLetters","height","rowHeight","scrollY","scrollX","colWidth","currentAlignment","collapsed","collapsedLeaves","showOnly","turnedOffTracks","featureFilters","relativeTo","bgColor","colorSchemeName","drawLabels","labelsAlignRight","treeAreaWidth","treeWidth","treeWidthMatchesArea","showBranchLen","drawTree","drawNodeBubbles"];function Js(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return Xs(c,"_invoke",function(n,r,o){var i,l,s,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,s=e,f.n=n,a}};function p(n,r){for(l=n,s=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];n>3?(o=h===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,f.v=r,f.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,s=h;(t=l<2?e:s)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,s)):f.n=s:f.v=s);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==a)break}catch(t){i=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Xs(t={},r,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Xs(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Xs(d,"constructor",c),Xs(c,"constructor",s),s.displayName="GeneratorFunction",Xs(c,o,"GeneratorFunction"),Xs(d),Xs(d,o,"Generator"),Xs(d,r,function(){return this}),Xs(d,"toString",function(){return"[object Generator]"}),(Js=function(){return{w:i,m:f}})()}function Xs(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Xs=function(e,t,n,r){function i(t,n){Xs(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Xs(e,t,n,r)}function Zs(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function ec(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Zs(i,r,o,a,l,"next",e)}function l(e){Zs(i,r,o,a,l,"throw",e)}a(void 0)})}}function tc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tc(Object(n),!0).forEach(function(t){rc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rc(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ks(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ks(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ks(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||lc(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ic(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=lc(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function ac(e){return function(e){if(Array.isArray(e))return sc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||lc(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lc(e,t){if(e){if("string"==typeof e)return sc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sc(e,t):void 0}}function sc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var cc="msa-showZoomStar";const uc=function(){return Yn.gK.compose(Yn.gK.model("DialogQueueSessionMixin",{}).volatile(function(){return{queueOfDialogs:[]}}).views(function(e){return{get DialogComponent(){var t;return null===(t=e.queueOfDialogs[0])||void 0===t?void 0:t[0]},get DialogProps(){var t;return null===(t=e.queueOfDialogs[0])||void 0===t?void 0:t[1]}}}).actions(function(e){return{removeActiveDialog:function(){e.queueOfDialogs=e.queueOfDialogs.slice(1)},queueDialog:function(t){var n,r,o=this,i=(n=t(function(){o.removeActiveDialog()}),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(n,r)||ys(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],l=i[1];e.queueOfDialogs=[].concat(function(e){return function(e){if(Array.isArray(e))return ws(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ys(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.queueOfDialogs),[[a,l]])}}}),Yn.gK.model({drawLabels:ss,labelsAlignRight:cs,treeAreaWidth:Yn.gK.optional(Yn.gK.number,400),treeWidth:Yn.gK.optional(Yn.gK.number,300),treeWidthMatchesArea:us,showBranchLen:ds,drawTree:fs,drawNodeBubbles:ps}).actions(function(e){return{setTreeWidthMatchesArea:function(t){e.treeWidthMatchesArea=t},setTreeAreaWidth:function(t){e.treeAreaWidth=Math.round(t)},setTreeWidth:function(t){e.treeWidth=Math.round(t)},setLabelsAlignRight:function(t){e.labelsAlignRight=t},setDrawTree:function(t){e.drawTree=t},setShowBranchLen:function(t){e.showBranchLen=t},setDrawNodeBubbles:function(t){e.drawNodeBubbles=t},setDrawLabels:function(t){e.drawLabels=t}}}),Yn.gK.model({bgColor:as,colorSchemeName:ls}).actions(function(e){return{setColorSchemeName:function(t){e.colorSchemeName=t},setBgColor:function(t){e.bgColor=t}}}),Yn.gK.model("MsaView",{id:ya,showDomains:ts,hideGaps:ns,allowedGappyness:100,contrastLettering:rs,subFeatureRows:os,type:Yn.gK.literal("MsaView"),drawMsaLetters:is,height:Yn.gK.optional(Yn.gK.number,550),rowHeight:16,scrollY:0,scrollX:0,colWidth:12,treeFilehandle:Yn.gK.maybe(ka),msaFilehandle:Yn.gK.maybe(ka),treeMetadataFilehandle:Yn.gK.maybe(ka),gffFilehandle:Yn.gK.maybe(ka),currentAlignment:0,collapsed:Yn.gK.array(Yn.gK.string),collapsedLeaves:Yn.gK.array(Yn.gK.string),showOnly:Yn.gK.maybe(Yn.gK.string),turnedOffTracks:Yn.gK.map(Yn.gK.boolean),data:Yn.gK.optional(Yn.gK.model({tree:Yn.gK.maybe(Yn.gK.string),msa:Yn.gK.maybe(Yn.gK.string),treeMetadata:Yn.gK.maybe(Yn.gK.string)}).actions(function(e){return{setTree:function(t){e.tree=t},setMSA:function(t){e.msa=t},setTreeMetadata:function(t){e.treeMetadata=t}}}).postProcessSnapshot(function(e){var t=e.tree,n=e.msa,r=e.treeMetadata,o=5e4;return{tree:t&&t.length>o?void 0:t,msa:n&&n.length>o?void 0:n,treeMetadata:r&&r.length>o?void 0:r}}),{tree:"",msa:"",treeMetadata:""}),featureFilters:Yn.gK.map(Yn.gK.boolean),relativeTo:Yn.gK.maybe(Yn.gK.string)})).volatile(function(){return{headerHeight:0,status:void 0,highResScaleFactor:2,showZoomStar:(0,E.zll)(cc,!1),loadingMSA:!1,loadingTree:!1,volatileWidth:void 0,resizeHandleWidth:5,blockSize:500,mouseRow:void 0,mouseCol:void 0,mouseClickRow:void 0,mouseClickCol:void 0,hoveredTreeNode:void 0,highlightedColumns:void 0,nref:0,minimapHeight:56,marginLeft:20,error:void 0,annotPos:void 0,interProAnnotations:void 0}}).actions(function(e){return{drawRelativeTo:function(t){e.relativeTo=t},setHideGaps:function(t){e.hideGaps=t},setAllowedGappyness:function(t){e.allowedGappyness=t},setContrastLettering:function(t){e.contrastLettering=t},setLoadingMSA:function(t){e.loadingMSA=t},setShowZoomStar:function(t){e.showZoomStar=t},setLoadingTree:function(t){e.loadingTree=t},setWidth:function(t){e.volatileWidth=t},setHeight:function(t){e.height=t},setError:function(t){e.error=t},setMousePos:function(t,n){e.mouseCol=t,e.mouseRow=n},setHoveredTreeNode:function(t){if(t){var n=e.hierarchy.find(function(e){return e.data.id===t});if(n){var r=n.leaves().map(function(e){return e.data.name});e.hoveredTreeNode={nodeId:t,descendantNames:r}}else e.hoveredTreeNode=void 0}else e.hoveredTreeNode=void 0},setHighlightedColumns:function(t){e.highlightedColumns=t},setShowDomains:function(t){e.showDomains=t},setSubFeatureRows:function(t){e.subFeatureRows=t},setMouseClickPos:function(t,n){e.mouseClickCol=t,e.mouseClickRow=n},setRowHeight:function(t){e.rowHeight=t},setColWidth:function(t){e.colWidth=t},setScrollY:function(t){e.scrollY=t},setCurrentAlignment:function(t){e.currentAlignment=t},toggleCollapsed:function(t){e.collapsed.includes(t)?e.collapsed.remove(t):e.collapsed.push(t)},toggleCollapsedLeaf:function(t){e.collapsedLeaves.includes(t)?e.collapsedLeaves.remove(t):e.collapsedLeaves.push(t)},setShowOnly:function(t){e.showOnly=t},setData:function(t){e.data=(0,Yn.wg)(t)},setMSAFilehandle:function(t){e.msaFilehandle=t},setTreeFilehandle:function(t){e.treeFilehandle=t},setGFFFilehandle:function(t){e.gffFilehandle=t},setMSA:function(t){e.data.setMSA(t)},setTree:function(t){e.data.setTree(t)},setTreeMetadata:function(t){e.data.setTreeMetadata(t)}}}).views(function(e){return{get hideGapsEffective(){return e.hideGaps&&(e.collapsed.length>0||e.collapsedLeaves.length>0||e.allowedGappyness<100)},get realAllowedGappyness(){return this.hideGapsEffective?e.allowedGappyness:100},get actuallyShowDomains(){return e.showDomains&&!!e.interProAnnotations},get viewInitialized(){return void 0!==e.volatileWidth},get width(){if(void 0===e.volatileWidth)throw new Error("not initialized");return e.volatileWidth}}}).views(function(e){return{extraViewMenuItems:function(){return[]},get colorScheme(){return De.A[e.colorSchemeName]},get header(){var e;return(null===(e=this.MSA)||void 0===e?void 0:e.getHeader())||{}},get alignmentNames(){var e;return(null===(e=this.MSA)||void 0===e?void 0:e.alignmentNames)||[]},get noTree(){return!!this.tree.noTree},get noDomains(){return!e.interProAnnotations},menuItems:function(){return[]},get treeMetadata(){return e.data.treeMetadata?JSON.parse(e.data.treeMetadata):{}},get MSA(){var t=e.data.msa;return t?function(e){return za.test(e)}(t)?new dl(t,e.currentAlignment):yl.sniff(t)?new yl(t):t.startsWith(">")?new Il(t):t.startsWith("SEQ")?new Ml(t):new Dl(t):null},get numColumns(){var e;return((null===(e=this.MSA)||void 0===e?void 0:e.getWidth())||0)-this.blanks.length},get tree(){var t,n,r,o=e.data.tree;return Gs(o?tl(o.startsWith("BioTreeContainer")?function(e){var t=new Map;e.forEach(function(e){t.set(e.id,As(As({},e),{},{id:"".concat(e.id),name:"".concat(e.id),parent:void 0!==e.parent?"".concat(e.parent):void 0,children:[]}))});var n=[];return e.forEach(function(e){var r=t.get(e.id);if(void 0!==e.parent){var o=t.get(e.parent);o?o.children.push(r):n.push(r)}else n.push(r)}),n[0]}((n=function(e){for(var t={},n=e.trim(),r=n.startsWith("{")&&n.endsWith("}")?n.slice(1,-1).trim():n,o=0;o<r.length;){for(;o<r.length&&/\s/.test(r[o]);)o++;if(o>=r.length)break;for(var i=o;o<r.length&&/\w/.test(r[o]);)o++;if(o>=r.length||" "!==r[o]&&"{"!==r[o]){for(;o<r.length&&","!==r[o];)o++;o<r.length&&o++}else{for(var a=r.slice(i,o).trim();o<r.length&&/\s/.test(r[o]);)o++;if(o>=r.length||"{"!==r[o]){for(;o<r.length&&","!==r[o];)o++;o<r.length&&o++}else{var l=o+1,s=1;for(o++;o<r.length&&s>0;)"{"===r[o]?s++:"}"===r[o]&&s--,o++;if(0===s){var c=r.slice(l,o-1).trim();t[a]=c}for(;o<r.length&&","!==r[o];)o++;o<r.length&&o++}}}return t}(o.replace(/\s+/g," ").replace(/\s*{\s*/g,"{").replace(/\s*}\s*/g,"}").replace(/\s*,\s*/g,",").replace(/\s*::\s*=\s*/g,"::=").replace(/^.*?::=/,"")),r=Object.fromEntries(function(e){for(var t=[],n=0;n<e.length;){for(;n<e.length&&/\s/.test(e[n]);)n++;if(n>=e.length)break;if("{"===e[n]){var r=n+1,o=1;for(n++;n<e.length&&o>0;)"{"===e[n]?o++:"}"===e[n]&&o--,n++;if(0===o){var i=Ns(e.slice(r,n-1).trim());i&&t.push(i)}}else for(;n<e.length&&"{"!==e[n];)n++}return t}(n.fdict).map(function(e){return[e.id,Qs[e.name]||e.name]})),function(e){for(var t=[],n=0;n<e.length;){for(;n<e.length&&/\s/.test(e[n]);)n++;if(n>=e.length)break;if("{"===e[n]){var r=n+1,o=1;for(n++;n<e.length&&o>0;)"{"===e[n]?o++:"}"===e[n]&&o--,n++;if(0===o){var i=Fs(e.slice(r,n-1).trim());i&&t.push(i)}}else for(;n<e.length&&"{"!==e[n];)n++}return t}(n.nodes).map(function(e){var t=e.features;return Os(Os({},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,_s)),Object.fromEntries(t.map(function(e){return[r[e.featureid],e.value]})))}))):qa(o.startsWith("SEQ")?function(e){const t=e.split("\n").map(e=>e.trim()).filter(e=>!!e),n=[];let r="";for(const e of t)if(e.startsWith("SEQ"))n.push(e);else{if(e.startsWith("DATA"))continue;if(e.startsWith("//"))break;r=e}return{tree:r,seqs:n.map(e=>{const[,t,n,r,o,i,a,l,s]=e.split(" ");return{species:t,protein:n,chr:r,start:+o,end:+i,strand:+a,geneId:l,unknown:s}})}}(o).tree:o)):(null===(t=this.MSA)||void 0===t?void 0:t.getTree())||{noTree:!0,children:[],id:"empty",name:"empty"})},get rowNames(){return this.leaves.map(function(e){return e.data.name})},get mouseOverRowName(){var t=e.mouseRow;return void 0===t?void 0:this.rowNames[t]},get hoveredInsertion(){var t=e.mouseCol,n=e.mouseRow;if(void 0!==t&&void 0!==n){var r=this.rowNames[n];if(r){var o=this.insertionPositions.get(r);if(o){var i=o.find(function(e){return e.pos===t});return i?{rowName:r,col:t,letters:i.letters}:void 0}}}},get root(){var t=Ra(this.tree,function(e){return e.children}).sum(function(e){return e.children?0:1}).sort(function(e,t){return function(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}(e.data.length||1,t.data.length||1)});if(e.showOnly){var n=t.find(function(t){return t.data.id===e.showOnly});n&&(t=n)}return[].concat(ac(e.collapsed),ac(e.collapsedLeaves)).map(function(e){return t.find(function(t){return t.data.id===e})}).filter(E.z2o).forEach(function(e){(0,jn.ap)(e)}),t},get msaAreaWidth(){return e.width-e.treeAreaWidth},get treeAreaWidthMinusMargin(){return e.treeAreaWidth-e.marginLeft},get blanks(){var t=this,n=e.hideGapsEffective,r=e.realAllowedGappyness;if(!n)return[];var o=this.leaves.map(function(e){var n;return null===(n=t.MSA)||void 0===n?void 0:n.getRow(e.data.name)}).filter(E.z2o);if(0===o.length)return[];for(var i=o[0].length,a=o.length,l=Math.ceil(r/100*a),s=new Uint16Array(i),c=0;c<a;c++)for(var u=o[c],d=0;d<i;d++)u.charCodeAt(d)-45>>>0<=1&&s[d]++;for(var f=[],p=0;p<i;p++)s[p]>=l&&f.push(p);return f},get blanksSet(){return new Set(this.blanks)},get insertionPositions(){var t=e.hideGapsEffective,n=this.blanks,r=this.rows,o=n.length;if(0===o||!t)return new Map;var i,a=new Map,l=ic(r);try{for(l.s();!(i=l.n()).done;){for(var s=oc(i.value,2),c=s[0],u=s[1],d=[],f=0,p=0,h=-1,g=[],m=u.length,A=0;A<m;A++)p<o&&n[p]===A?(u.charCodeAt(A)-45>>>0<=1||(h===f?g.push(u[A]):(g.length>0&&d.push({pos:h,letters:g.join("")}),h=f,g=[u[A]])),p++):f++;g.length>0&&d.push({pos:h,letters:g.join("")}),d.length>0&&a.set(c,d)}}catch(e){l.e(e)}finally{l.f()}return a},get rows(){var e=this.MSA;return this.leaves.map(function(t){return[t.data.name,null==e?void 0:e.getRow(t.data.name)]}).filter(function(e){return!!e[1]})},get numRows(){return this.rows.length},get rowMap(){return new Map(this.rows)},get columns(){var e=this;return Object.fromEntries(this.rows.map(function(t,n){return[t[0],e.columns2d[n]]}))},get columns2d(){var t=this,n=e.hideGapsEffective;return this.rows.map(function(e){return e[1]}).map(function(e){return n?(0,jn.pw)(t.blanks,e):e})},get fontSize(){return Math.min(Math.max(6,e.rowHeight-3),18)},get colStats(){var e,t=[],n=ic(this.columns2d);try{for(n.s();!(e=n.n()).done;)for(var r=e.value,o=0;o<r.length;o++){var i=t[o]||{},a=r[o];i[a]||(i[a]=0),i[a]++,t[o]=i}}catch(e){n.e(e)}finally{n.f()}return t},get colStatsSums(){return this.colStats.map(function(e){return(0,E.czq)(Object.values(e))})},get sequenceType(){var e,t=new Set,n=ic(this.colStats);try{for(n.s();!(e=n.n()).done;)for(var r=e.value,o=0,i=Object.keys(r);o<i.length;o++){var a=i[o].toUpperCase();"-"!==a&&"."!==a&&t.add(a)}}catch(e){n.e(e)}finally{n.f()}var l=new Set(["A","C","G","T","N"]),s=new Set(["A","C","G","U","N"]),c=ac(t).every(function(e){return l.has(e)}),u=ac(t).every(function(e){return s.has(e)});return c&&!t.has("U")?"dna":u&&!t.has("T")?"rna":"amino"},get colConsensus(){var e=this.colStats,t=this.colStatsSums;return e.map(function(e,n){var r=t[n],o=0,i="";for(var a in e){var l=e[a];l>o&&"-"!==a&&"."!==a&&(o=l,i=a)}var s=o/r;return{letter:i,color:s>.4?"hsl(240, 30%, ".concat(100*Math.max(1-s/3,.3),"%)"):void 0}})},get colClustalX(){var e=this.colStats,t=this.colStatsSums;return e.map(function(e,n){var r,o,i,a,l,s,c,u,d,f,p,h,g,m,A,b,v,y,w,C,S=t[n],x={},I=null!==(r=e.W)&&void 0!==r?r:0,E=null!==(o=e.L)&&void 0!==o?o:0,k=null!==(i=e.V)&&void 0!==i?i:0,B=null!==(a=e.I)&&void 0!==a?a:0,M=null!==(l=e.M)&&void 0!==l?l:0,R=null!==(s=e.A)&&void 0!==s?s:0,P=null!==(c=e.F)&&void 0!==c?c:0,_=null!==(u=e.C)&&void 0!==u?u:0,T=null!==(d=e.H)&&void 0!==d?d:0,O=null!==(f=e.P)&&void 0!==f?f:0,D=null!==(p=e.R)&&void 0!==p?p:0,Q=null!==(h=e.K)&&void 0!==h?h:0,N=null!==(g=e.Q)&&void 0!==g?g:0,F=null!==(m=e.E)&&void 0!==m?m:0,L=null!==(A=e.D)&&void 0!==A?A:0,j=null!==(b=e.T)&&void 0!==b?b:0,z=null!==(v=e.S)&&void 0!==v?v:0,$=null!==(y=e.G)&&void 0!==y?y:0,H=null!==(w=e.Y)&&void 0!==w?w:0,G=null!==(C=e.N)&&void 0!==C?C:0,V=I+E+k+B+M+R+P+_+T+O+H,W=Q+D,U=N+F,Y=F+L,K=j+z;return V/S>.6&&(x.W="rgb(128,179,230)",x.L="rgb(128,179,230)",x.V="rgb(128,179,230)",x.A="rgb(128,179,230)",x.I="rgb(128,179,230)",x.M="rgb(128,179,230)",x.F="rgb(128,179,230)",x.C="rgb(128,179,230)"),(W/S>.6||Q/S>.8||D/S>.8||N/S>.8)&&(x.K="#d88",x.R="#d88"),(W/S>.6||U/S>.5||F/S>.8||N/S>.8||L/S>.8)&&(x.E="rgb(192, 72, 192)"),(W/S>.6||Y/S>.5||Q/S>.8||D/S>.8||N/S>.8)&&(x.D="rgb(204, 77, 204)"),(G/S>.5||H/S>.85)&&(x.N="#8f8"),(W/S>.6||U/S>.6||N/S>.85||F/S>.85||Q/S>.85||D/S>.85)&&(x.Q="#8f8"),(V/S>.6||K/S>.5||z/S>.85||j/S>.85)&&(x.S="rgb(26,204,26)",x.T="rgb(26,204,26)"),_/S>.85&&(x.C="rgb(240, 128, 128)"),$/S>0&&(x.G="rgb(240, 144, 72)"),O/S>0&&(x.P="rgb(204, 204, 0)"),(V/S>.6||I/S>.85||H/S>.85||R/S>.85||_/S>.85||O/S>.85||N/S>.85||P/S>.85||T/S>.85||B/S>.85||E/S>.85||M/S>.85||k/S>.85)&&(x.H="rgb(26, 179, 179)",x.Y="rgb(26, 179, 179)"),x})},get conservation(){var e=this.colStats,t=this.colStatsSums,n="amino"===this.sequenceType?20:4,r=Math.log2(n);return e.map(function(e,n){var o=t[n];if(!o)return 0;var i=(e["-"]||0)+(e["."]||0),a=o-i;if(0===a)return 0;for(var l={},s=0,c=Object.keys(e);s<c.length;s++){var u=c[s];if("-"!==u&&"."!==u){var d=u.toUpperCase();l[d]=(l[d]||0)+e[u]}}for(var f=0,p=0,h=Object.keys(l);p<h.length;p++){var g=l[h[p]]/a;g>0&&(f-=g*Math.log2(g))}var m=i/o;return Math.max(0,1-f/r)*(1-m)})},get hierarchy(){var t=this.root;return function(){var e=Qa,t=1,n=1,r=!1;function o(o){var i,a=0;o.eachAfter(function(t){var n=t.children;n?(t.x=function(e){return e.reduce(Na,0)/e.length}(n),t.y=function(e){return 1+e.reduce(Fa,0)}(n)):(t.x=i?a+=e(t,i):0,t.y=0,i=t)});var l=function(e){for(var t;t=e.children;)e=t[0];return e}(o),s=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(o),c=l.x-e(l,s)/2,u=s.x+e(s,l)/2;return o.eachAfter(r?function(e){e.x=(e.x-o.x)*t,e.y=(o.y-e.y)*n}:function(e){e.x=(e.x-c)/(u-c)*t,e.y=(1-(o.y?e.y/o.y:1))*n})}return o.separation=function(t){return arguments.length?(e=t,o):e},o.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],o):r?null:[t,n]},o.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],o):r?[t,n]:null},o}().size([this.totalHeight,e.treeWidth]).separation(function(){return 1})(t),(0,jn.zu)(t,t.data.length=0,e.treeWidth/(0,jn.Ru)(t)),t},get totalHeight(){return this.root.leaves().length*e.rowHeight},get leaves(){return this.hierarchy.leaves()},get allBranchesLength0(){return this.hierarchy.links().every(function(e){return!e.source.data.length})},get showBranchLenEffective(){return!this.allBranchesLength0&&e.showBranchLen}}}).views(function(e){return{get totalWidth(){return e.numColumns*e.colWidth}}}).views(function(e){return{get dataInitialized(){return(e.data.msa||e.data.tree)&&!e.error},get blocksX(){return function(e){for(var t=e.mapWidth,n=e.blockSize,r=e.viewportX,o=e.viewportWidth,i=Math.max(0,Math.min(r,t-o)),a=Math.floor(i/n),l=Math.floor((i+o-1)/n),s=[],c=a;c<=l;c++)s.push(c*n);return s}({viewportWidth:e.msaAreaWidth,viewportX:-e.scrollX,blockSize:e.blockSize,mapWidth:e.totalWidth})},get blocksY(){return function(e){for(var t=e.mapHeight,n=e.blockSize,r=e.viewportY,o=e.viewportHeight,i=Math.max(0,Math.min(r,t*n-o)),a=Math.floor(i/n),l=Math.floor((i+o-1)/n),s=[],c=a;c<=l;c++)s.push(c*n);return s}({viewportHeight:e.height,viewportY:-e.scrollY,blockSize:e.blockSize,mapHeight:e.totalHeight})}}}).views(function(e){return{get blocks2d(){var t,n=[],r=ic(e.blocksY);try{for(r.s();!(t=r.n()).done;){var o,i=t.value,a=ic(e.blocksX);try{for(a.s();!(o=a.n()).done;){var l=o.value;n.push([l,i])}}catch(e){a.e(e)}finally{a.f()}}}catch(e){r.e(e)}finally{r.f()}return n},get isLoading(){return e.loadingMSA||e.loadingTree},get maxScrollX(){return Math.min(-e.totalWidth+(e.msaAreaWidth-100),0)},get showMsaLetters(){return e.drawMsaLetters&&e.rowHeight>=5&&e.colWidth>e.rowHeight/2},get showTreeText(){return e.drawLabels&&e.rowHeight>=5}}}).actions(function(e){return{setDrawMsaLetters:function(t){e.drawMsaLetters=t},calculateNeighborJoiningTreeFromMSA:function(){if(e.rows.length<2)throw new Error("Need at least 2 sequences to build a tree");var t=Rs(e.rows);e.setTree(t)},resetZoom:function(){e.setColWidth(12),e.setRowHeight(16)},zoomOutHorizontal:function(){e.colWidth=Math.max(1,Math.floor(.75*e.colWidth)),e.scrollX=(0,E.qE8)(e.scrollX,e.maxScrollX,0)},zoomInHorizontal:function(){e.colWidth=Math.ceil(1.5*e.colWidth),e.scrollX=(0,E.qE8)(e.scrollX,e.maxScrollX,0)},zoomInVertical:function(){e.rowHeight=Math.ceil(1.5*e.rowHeight)},zoomOutVertical:function(){e.rowHeight=Math.max(1.5,Math.floor(.75*e.rowHeight))},zoomIn:function(){(0,Nn.Rn)(function(){e.colWidth=Math.ceil(1.5*e.colWidth),e.rowHeight=Math.ceil(1.5*e.rowHeight),e.scrollX=(0,E.qE8)(e.scrollX,e.maxScrollX,0)})},zoomOut:function(){(0,Nn.Rn)(function(){e.colWidth=Math.max(1,Math.floor(.75*e.colWidth)),e.rowHeight=Math.max(1.5,Math.floor(.75*e.rowHeight)),e.scrollX=(0,E.qE8)(e.scrollX,e.maxScrollX,0)})},setInterProAnnotations:function(t){e.interProAnnotations=t},doScrollY:function(t){e.scrollY=(0,E.qE8)(e.scrollY+t,10-e.totalHeight,0)},doScrollX:function(t){this.setScrollX(e.scrollX+t)},setScrollX:function(t){e.scrollX=(0,E.qE8)(t,e.maxScrollX,0)},toggleTrack:function(t){e.turnedOffTracks.has(t)?e.turnedOffTracks.delete(t):e.turnedOffTracks.set(t,!0)},setStatus:function(t){e.status=t}}}).views(function(e){return{get labelsWidth(){var t=0,n=e.rowHeight,r=e.leaves,o=e.treeMetadata,i=e.fontSize;if(n>5){var a,l=ic(r);try{for(l.s();!(a=l.n()).done;){var s,c=a.value;t=Math.max(vs((null===(s=o[c.data.name])||void 0===s?void 0:s.genome)||c.data.name,i),t)}}catch(e){l.e(e)}finally{l.f()}}return t},get secondaryStructureConsensus(){var t;return null===(t=e.MSA)||void 0===t?void 0:t.secondaryStructureConsensus},get seqConsensus(){var t;return null===(t=e.MSA)||void 0===t?void 0:t.seqConsensus},get adapterTrackModels(){var t=e.rowHeight,n=e.MSA,r=e.hideGapsEffective,o=e.blanks;return(null==n?void 0:n.tracks.filter(function(e){return e.data}).map(function(e){return{model:nc(nc({},e),{},{data:r?(0,jn.pw)(o,e.data):e.data,height:t}),ReactComponent:Zl}}))||[]},get tracks(){var e={model:{id:"conservation",name:"Conservation",height:40},ReactComponent:ql};return[].concat(ac(this.adapterTrackModels),[e])},get turnedOnTracks(){return this.tracks.filter(function(t){return!e.turnedOffTracks.has(t.model.id)})},get showHorizontalScrollbar(){return e.msaAreaWidth<e.totalWidth},get rowNamesSet(){return new Map(e.rowNames.map(function(e,t){return[e,t]}))},visibleColToRowLetter:function(t,n){var r,o=e.rowMap,i=e.blanks;return null===(r=o.get(t))||void 0===r?void 0:r[Vs(i,n)]},visibleColToSeqPos:function(t,n){return function(e){var t=e.rowName,n=e.visibleCol,r=e.rowMap,o=e.blanks,i=r.get(t);return void 0!==i?function(e){var t=e.seq,n=Vs(e.blanks,e.visibleCol),r=t.length;if(!(n<r&&(0,jn.z3)(t[n]))){for(var o=0,i=0;i<n&&i<r;i++)(0,jn.z3)(t[i])||o++;return n<r?o:void 0}}({seq:i,visibleCol:n,blanks:o}):void 0}({rowName:t,visibleCol:n,rowMap:e.rowMap,blanks:e.blanks})},visibleColToSeqPosOneBased:function(e,t){var n=this.visibleColToSeqPos(e,t);return void 0!==n?n+1:void 0},globalColToVisibleCol:function(t){var n=e.blanks;return e.hideGapsEffective?function(e,t){for(var n=0,r=e.length-1;n<=r;){var o=Math.floor((n+r)/2);if(e[o]===t)return;e[o]<t?n=o+1:r=o-1}return t-n}(n,t):t},seqPosToGlobalCol:function(t,n){var r=e.rows,o=this.rowNamesSet.get(t);return void 0!==o&&r[o]?function(e){for(var t=e.row,n=e.seqPos,r=0,o=0;o<t.length;){if(!(0,jn.z3)(t[o])){if(r===n)return o;r++}o++}return 0===n?0:o}({row:r[o][1],seqPos:n}):0},seqPosToVisibleCol:function(e,t){var n=this.seqPosToGlobalCol(e,t);return this.globalColToVisibleCol(n)}}}).views(function(e){return{get msaAreaHeight(){return e.height-(e.showHorizontalScrollbar?e.minimapHeight:0)-e.headerHeight},get totalTrackAreaHeight(){return(0,E.czq)(e.turnedOnTracks.map(function(e){return e.model.height}))},get tidyInterProAnnotationTypes(){var e,t=new Map,n=ic(this.tidyInterProAnnotations);try{for(n.s();!(e=n.n()).done;){var r=e.value;t.set(r.accession,r)}}catch(e){n.e(e)}finally{n.f()}return t},get tidyInterProAnnotations(){var t=[],n=e.interProAnnotations;if(n)for(var r=0,o=Object.entries(n);r<o.length;r++){var i,a=oc(o[r],2),l=a[0],s=ic(a[1].matches);try{for(s.s();!(i=s.n()).done;){var c=i.value,u=c.signature,d=c.locations,f=u.entry;if(f){var p,h=f.name,g=f.accession,m=f.description,A=ic(d);try{for(A.s();!(p=A.n()).done;){var b=p.value,v=b.start,y=b.end;t.push({id:l,name:h,accession:g,description:m,start:v,end:y})}}catch(e){A.e(e)}finally{A.f()}}}}catch(e){s.e(e)}finally{s.f()}}return t.toSorted(function(e,t){return(0,jn.Il)(t)-(0,jn.Il)(e)})},get tidyFilteredInterProAnnotations(){return this.tidyInterProAnnotations.filter(function(t){return e.featureFilters.get(t.accession)})},get tidyFilteredGatheredInterProAnnotations(){return(0,E.$zQ)(this.tidyFilteredInterProAnnotations,function(e){return e.id})}}}).views(function(e){return{get showVerticalScrollbar(){return e.msaAreaHeight<e.totalHeight}}}).views(function(e){return{get verticalScrollbarWidth(){return e.showVerticalScrollbar?20:0},get fillPalette(){return t=ac(e.tidyInterProAnnotationTypes.keys()),n=Math.min(t.length-1,hs.A.length-1),r=hs.A[n],Object.fromEntries(t.map(function(e,t){return[e,r[t]]}));var t,n,r},get strokePalette(){return Object.fromEntries(Object.entries(this.fillPalette).map(function(e){var t=oc(e,2),n=t[0],r=t[1];return[n,(0,Ba.Mj)(r).darken(.1).toHex()]}))},getRowData:function(t){var n;return{data:null===(n=e.MSA)||void 0===n?void 0:n.getRowData(t),treeMetadata:e.treeMetadata[t]}}}}).actions(function(e){return{setHeaderHeight:function(t){e.headerHeight=t},reset:function(){e.setData({tree:"",msa:""}),e.resetZoom(),e.setError(void 0),e.setScrollY(0),e.setScrollX(0),e.setCurrentAlignment(0),e.setTreeFilehandle(void 0),e.setMSAFilehandle(void 0)},exportSVG:function(t){return ec(Js().m(function n(){var r,i,a;return Js().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,Promise.resolve().then(o.bind(o,8654));case 1:return r=n.v,i=r.renderToSvg,n.n=2,i(e,t);case 2:a=n.v,Ys(new Blob([a],{type:"image/svg+xml"}),"image.svg");case 3:return n.a(2)}},n)}))()},incrementRef:function(){e.nref++},initFilter:function(t){void 0===e.featureFilters.get(t)&&e.featureFilters.set(t,!0)},setFilter:function(t,n){e.featureFilters.set(t,n)},fit:function(){e.rowHeight=e.msaAreaHeight/e.numRows,e.colWidth=e.msaAreaWidth/e.numColumns,e.scrollX=0,e.scrollY=0},fitVertically:function(){e.rowHeight=e.msaAreaHeight/e.numRows,e.scrollY=0},fitHorizontally:function(){e.colWidth=e.msaAreaWidth/e.numColumns,e.scrollX=0},afterCreate:function(){var t=this;(0,Yn.LF)(e,(0,Nn.fm)(function(){var n,r=ic(e.tidyInterProAnnotationTypes.keys());try{for(r.s();!(n=r.n()).done;){var o=n.value;t.initFilter(o)}}catch(e){r.e(e)}finally{r.f()}})),(0,Yn.LF)(e,(0,Nn.fm)(function(){(0,E.lYs)(cc,e.showZoomStar)})),(0,Yn.LF)(e,(0,Nn.fm)(ec(Js().m(function t(){var n,r,o;return Js().w(function(t){for(;;)switch(t.p=t.n){case 0:if(!(n=e.treeFilehandle)){t.n=5;break}return t.p=1,e.setLoadingTree(!0),r=e,t.n=2,(0,E.JCG)(ba(n));case 2:r.setTree.call(r,t.v),"BlobLocation"===n.locationType&&e.setTreeFilehandle(void 0),t.n=4;break;case 3:t.p=3,o=t.v,console.error(o),e.setError(o);case 4:return t.p=4,e.setLoadingTree(!1),t.f(4);case 5:return t.a(2)}},t,null,[[1,3,4,5]])})))),(0,Yn.LF)(e,(0,Nn.fm)(ec(Js().m(function t(){var n,r,o;return Js().w(function(t){for(;;)switch(t.p=t.n){case 0:if(!(n=e.treeMetadataFilehandle)){t.n=4;break}return t.p=1,r=e,t.n=2,(0,E.JCG)(ba(n));case 2:r.setTreeMetadata.call(r,t.v),t.n=4;break;case 3:t.p=3,o=t.v,console.error(o),e.setError(o);case 4:return t.a(2)}},t,null,[[1,3]])})))),(0,Yn.LF)(e,(0,Nn.fm)(ec(Js().m(function t(){var n,r,o,i,a;return Js().w(function(t){for(;;)switch(t.p=t.n){case 0:if(!(n=e.gffFilehandle)){t.n=4;break}return t.p=1,t.n=2,(0,E.JCG)(ba(n));case 2:r=t.v,o=zl(r),i=Wl(o),e.setInterProAnnotations(i),e.setShowDomains(!0),"BlobLocation"===n.locationType&&e.setGFFFilehandle(void 0),t.n=4;break;case 3:t.p=3,a=t.v,console.error(a),e.setError(a);case 4:return t.a(2)}},t,null,[[1,3]])})))),(0,Yn.LF)(e,(0,Nn.fm)(ec(Js().m(function t(){var n,r,o;return Js().w(function(t){for(;;)switch(t.p=t.n){case 0:if(!(n=e.msaFilehandle)){t.n=5;break}return t.p=1,e.setLoadingMSA(!0),e.setError(void 0),t.n=2,(0,E.JCG)(ba(n));case 2:r=t.v,(0,Nn.Rn)(function(){e.setMSA(r),"BlobLocation"===n.locationType&&e.setMSAFilehandle(void 0)}),t.n=4;break;case 3:t.p=3,o=t.v,console.error(o),e.setError(o);case 4:return t.p=4,e.setLoadingMSA(!1),t.f(4);case 5:return t.a(2)}},t,null,[[1,3,4,5]])})))),(0,Yn.LF)(e,(0,Nn.fm)(function(){e.colorSchemeName.includes("dynamic")&&(e.colStats,e.colStatsSums),e.columns})),(0,Yn.LF)(e,(0,Nn.fm)(ec(Js().m(function t(){return Js().w(function(t){for(;;)switch(t.n){case 0:e.treeWidthMatchesArea&&e.setTreeWidth(Math.max(50,e.treeAreaWidth-e.labelsWidth-10-e.marginLeft));case 1:return t.a(2)}},t)}))))}}}).postProcessSnapshot(function(e){var t=e,n=t.data,r=n.tree,o=n.msa,i=n.treeMetadata,a=t.showDomains,l=t.hideGaps,s=t.allowedGappyness,c=t.contrastLettering,u=t.subFeatureRows,d=t.drawMsaLetters,f=t.height,p=t.rowHeight,h=t.scrollY,g=t.scrollX,m=t.colWidth,A=t.currentAlignment,b=t.collapsed,v=t.collapsedLeaves,y=t.showOnly,w=t.turnedOffTracks,C=t.featureFilters,S=t.relativeTo,x=t.bgColor,I=t.colorSchemeName,E=t.drawLabels,k=t.labelsAlignRight,B=t.treeAreaWidth,M=t.treeWidth,R=t.treeWidthMatchesArea,P=t.showBranchLen,_=t.drawTree,T=t.drawNodeBubbles;return nc(nc(nc(nc(nc(nc(nc(nc(nc(nc(nc(nc(nc(nc(nc(nc(nc(nc(nc(nc(nc(nc(nc(nc(nc(nc(nc(nc(nc({},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,qs)),{},{data:nc(nc(nc({},e.treeFilehandle?{}:{tree:r}),e.msaFilehandle?{}:{msa:o}),e.treeMetadataFilehandle?{}:{treeMetadata:i})},a!==ts?{showDomains:a}:{}),l!==ns?{hideGaps:l}:{}),100!==s?{allowedGappyness:s}:{}),c!==rs?{contrastLettering:c}:{}),u!==os?{subFeatureRows:u}:{}),d!==is?{drawMsaLetters:d}:{}),550!==f?{height:f}:{}),16!==p?{rowHeight:p}:{}),0!==h?{scrollY:h}:{}),0!==g?{scrollX:g}:{}),12!==m?{colWidth:m}:{}),0!==A?{currentAlignment:A}:{}),null!=b&&b.length?{collapsed:b}:{}),null!=v&&v.length?{collapsedLeaves:v}:{}),void 0!==y?{showOnly:y}:{}),w&&Object.keys(w).length>0?{turnedOffTracks:w}:{}),C&&Object.keys(C).length>0?{featureFilters:C}:{}),void 0!==S?{relativeTo:S}:{}),x!==as?{bgColor:x}:{}),I!==ls?{colorSchemeName:I}:{}),E!==ss?{drawLabels:E}:{}),k!==cs?{labelsAlignRight:k}:{}),400!==B?{treeAreaWidth:B}:{}),300!==M?{treeWidth:M}:{}),R!==us?{treeWidthMatchesArea:R}:{}),P!==ds?{showBranchLen:P}:{}),_!==fs?{drawTree:_}:{}),T!==ps?{drawNodeBubbles:T}:{})})};var dc=o(8181)})(),i})());
241
+ `} 1.2s infinite ease-in-out`}}});function c({message:e,children:t,variant:n="body2",...a}){const{classes:l}=s();return(0,r.jsx)(o.A,{className:(0,i.cx)(l.dots,a.className),...a,variant:n,children:e||"Loading"})}},9592(e,t,n){var r=n(5781),o=n(2738),i=n(4972).C,a=n(3383).P;function l(e){e||(e={}),this._file=o.getArg(e,"file",null),this._sourceRoot=o.getArg(e,"sourceRoot",null),this._skipValidation=o.getArg(e,"skipValidation",!1),this._ignoreInvalidMapping=o.getArg(e,"ignoreInvalidMapping",!1),this._sources=new i,this._names=new i,this._mappings=new a,this._sourcesContents=null}l.prototype._version=3,l.fromSourceMap=function(e,t){var n=e.sourceRoot,r=new l(Object.assign(t||{},{file:e.file,sourceRoot:n}));return e.eachMapping(function(e){var t={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(t.source=e.source,null!=n&&(t.source=o.relative(n,t.source)),t.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(t.name=e.name)),r.addMapping(t)}),e.sources.forEach(function(t){var i=t;null!==n&&(i=o.relative(n,t)),r._sources.has(i)||r._sources.add(i);var a=e.sourceContentFor(t);null!=a&&r.setSourceContent(t,a)}),r},l.prototype.addMapping=function(e){var t=o.getArg(e,"generated"),n=o.getArg(e,"original",null),r=o.getArg(e,"source",null),i=o.getArg(e,"name",null);(this._skipValidation||!1!==this._validateMapping(t,n,r,i))&&(null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:i}))},l.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=o.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[o.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[o.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},l.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var a=this._sourceRoot;null!=a&&(r=o.relative(a,r));var l=new i,s=new i;this._mappings.unsortedForEach(function(t){if(t.source===r&&null!=t.originalLine){var i=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=i.source&&(t.source=i.source,null!=n&&(t.source=o.join(n,t.source)),null!=a&&(t.source=o.relative(a,t.source)),t.originalLine=i.line,t.originalColumn=i.column,null!=i.name&&(t.name=i.name))}var c=t.source;null==c||l.has(c)||l.add(c);var u=t.name;null==u||s.has(u)||s.add(u)},this),this._sources=l,this._names=s,e.sources.forEach(function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=o.join(n,t)),null!=a&&(t=o.relative(a,t)),this.setSourceContent(t,r))},this)},l.prototype._validateMapping=function(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column){var o="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping)return"undefined"!=typeof console&&console.warn&&console.warn(o),!1;throw new Error(o)}if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n)){if(o="Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}),this._ignoreInvalidMapping)return"undefined"!=typeof console&&console.warn&&console.warn(o),!1;throw new Error(o)}},l.prototype._serializeMappings=function(){for(var e,t,n,i,a=0,l=1,s=0,c=0,u=0,d=0,f="",p=this._mappings.toArray(),h=0,g=p.length;h<g;h++){if(e="",(t=p[h]).generatedLine!==l)for(a=0;t.generatedLine!==l;)e+=";",l++;else if(h>0){if(!o.compareByGeneratedPositionsInflated(t,p[h-1]))continue;e+=","}e+=r.encode(t.generatedColumn-a),a=t.generatedColumn,null!=t.source&&(i=this._sources.indexOf(t.source),e+=r.encode(i-d),d=i,e+=r.encode(t.originalLine-1-c),c=t.originalLine-1,e+=r.encode(t.originalColumn-s),s=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=r.encode(n-u),u=n)),f+=e}return f},l.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=o.relative(t,e));var n=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},l.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},l.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.x=l},9596(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(7449),o=n(5212),i=n(2780),a=n(7196),l=n(3580),s=n(4218);const c=function(){function e(e,t,n,o){const l={[e]:t,theme:n},s=o[e];if(!s)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:d,style:f}=s;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const p=(0,i.Yn)(n,u)||{};return f?f(l):(0,a.NI)(l,t,t=>{let n=(0,i.BO)(p,d,t);return t===n&&"string"==typeof t&&(n=(0,i.BO)(p,d,`${e}${"default"===t?"":(0,r.A)(t)}`,t)),!1===c?n:{[c]:n}})}return function t(n){const{sx:r,theme:i={},nested:c}=n||{};if(!r)return null;const u=i.unstable_sxConfig??s.A;function d(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const s=(0,a.EU)(i.breakpoints),d=Object.keys(s);let f=s;return Object.keys(r).forEach(n=>{const l="function"==typeof(s=r[n])?s(i):s;var s;if(null!=l)if("object"==typeof l)if(u[n])f=(0,o.A)(f,e(n,l,i,u));else{const e=(0,a.NI)({theme:i},l,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,l)?f=(0,o.A)(f,e):f[n]=t({sx:l,theme:i,nested:!0})}else f=(0,o.A)(f,e(n,l,i,u))}),!c&&i.modularCssLayers?{"@layer sx":(0,l._S)(i,(0,a.vf)(d,f))}:(0,l._S)(i,(0,a.vf)(d,f))}return Array.isArray(r)?r.map(d):d(r)}}();c.filterProps=["sx"];const u=c},9641(e,t,n){"use strict";function r({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}n.d(t,{A:()=>r})},9687(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},9719(e,t,n){"use strict";n.d(t,{Dp:()=>c,Dg:()=>u});var r=n(2698),o=n(4880),i=n(8684),a=n(5121),l=n(8525);const s=function(e){return(0,l.jsx)(o.A,{...e,defaultTheme:i.A,themeId:a.A})};function c(e){return function(t){return(0,l.jsx)(s,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}function u(){return r.A}},9736(e,t,n){n(9592).x,t.SourceMapConsumer=n(7881).SourceMapConsumer,n(3548)},9744(e,t,n){"use strict";n.d(t,{A:()=>a,g:()=>i});var r=n(8175),o=n(4819);function i(e){return(0,o.Ay)("MuiInputBase",e)}const a=(0,r.A)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"])},9767(e,t,n){"use strict";n.d(t,{A:()=>ce});var r=n(8525),o=n(9081);const{entries:i,setPrototypeOf:a,isFrozen:l,getPrototypeOf:s,getOwnPropertyDescriptor:c}=Object;let{freeze:u,seal:d,create:f}=Object,{apply:p,construct:h}="undefined"!=typeof Reflect&&Reflect;u||(u=function(e){return e}),d||(d=function(e){return e}),p||(p=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),h||(h=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const g=R(Array.prototype.forEach),m=R(Array.prototype.lastIndexOf),A=R(Array.prototype.pop),b=R(Array.prototype.push),v=R(Array.prototype.splice),y=R(String.prototype.toLowerCase),w=R(String.prototype.toString),C=R(String.prototype.match),S=R(String.prototype.replace),x=R(String.prototype.indexOf),I=R(String.prototype.trim),E=R(Object.prototype.hasOwnProperty),k=R(RegExp.prototype.test),B=(M=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h(M,t)});var M;function R(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return p(e,t,r)}}function P(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;a&&a(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(l(t)||(t[r]=e),o=e)}e[o]=!0}return e}function _(e){for(let t=0;t<e.length;t++)E(e,t)||(e[t]=null);return e}function T(e){const t=f(null);for(const[n,r]of i(e))E(e,n)&&(Array.isArray(r)?t[n]=_(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=T(r):t[n]=r);return t}function O(e,t){for(;null!==e;){const n=c(e,t);if(n){if(n.get)return R(n.get);if("function"==typeof n.value)return R(n.value)}e=s(e)}return function(){return null}}const D=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Q=u(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),N=u(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),F=u(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),L=u(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),j=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),z=u(["#text"]),$=u(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),H=u(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),G=u(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),V=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),W=d(/\{\{[\w\W]*|[\w\W]*\}\}/gm),U=d(/<%[\w\W]*|[\w\W]*%>/gm),Y=d(/\$\{[\w\W]*/gm),K=d(/^data-[\-\w.\u00B7-\uFFFF]+$/),q=d(/^aria-[\-\w]+$/),J=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),X=d(/^(?:\w+script|data):/i),Z=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ee=d(/^html$/i),te=d(/^[a-z][.\w]*(-[.\w]+)+$/i);var ne=Object.freeze({__proto__:null,ARIA_ATTR:q,ATTR_WHITESPACE:Z,CUSTOM_ELEMENT:te,DATA_ATTR:K,DOCTYPE_NAME:ee,ERB_EXPR:U,IS_ALLOWED_URI:J,IS_SCRIPT_OR_DATA:X,MUSTACHE_EXPR:W,TMPLIT_EXPR:Y});const re=function(){return"undefined"==typeof window?null:window};var oe=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re();const n=t=>e(t);if(n.version="3.3.1",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const o=r,a=o.currentScript,{DocumentFragment:l,HTMLTemplateElement:s,Node:c,Element:d,NodeFilter:p,NamedNodeMap:h=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:M,DOMParser:R,trustedTypes:_}=t,W=d.prototype,U=O(W,"cloneNode"),Y=O(W,"remove"),K=O(W,"nextSibling"),q=O(W,"childNodes"),X=O(W,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let Z,te="";const{implementation:oe,createNodeIterator:ie,createDocumentFragment:ae,getElementsByTagName:le}=r,{importNode:se}=o;let ce={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof i&&"function"==typeof X&&oe&&void 0!==oe.createHTMLDocument;const{MUSTACHE_EXPR:ue,ERB_EXPR:de,TMPLIT_EXPR:fe,DATA_ATTR:pe,ARIA_ATTR:he,IS_SCRIPT_OR_DATA:ge,ATTR_WHITESPACE:me,CUSTOM_ELEMENT:Ae}=ne;let{IS_ALLOWED_URI:be}=ne,ve=null;const ye=P({},[...D,...Q,...N,...L,...z]);let we=null;const Ce=P({},[...$,...H,...G,...V]);let Se=Object.seal(f(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),xe=null,Ie=null;const Ee=Object.seal(f(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ke=!0,Be=!0,Me=!1,Re=!0,Pe=!1,_e=!0,Te=!1,Oe=!1,De=!1,Qe=!1,Ne=!1,Fe=!1,Le=!0,je=!1,ze=!0,$e=!1,He={},Ge=null;const Ve=P({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let We=null;const Ue=P({},["audio","video","img","source","image","track"]);let Ye=null;const Ke=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",Xe="http://www.w3.org/1999/xhtml";let Ze=Xe,et=!1,tt=null;const nt=P({},[qe,Je,Xe],w);let rt=P({},["mi","mo","mn","ms","mtext"]),ot=P({},["annotation-xml"]);const it=P({},["title","style","font","a","script"]);let at=null;const lt=["application/xhtml+xml","text/html"];let st=null,ct=null;const ut=r.createElement("form"),dt=function(e){return e instanceof RegExp||e instanceof Function},ft=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ct||ct!==e){if(e&&"object"==typeof e||(e={}),e=T(e),at=-1===lt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,st="application/xhtml+xml"===at?w:y,ve=E(e,"ALLOWED_TAGS")?P({},e.ALLOWED_TAGS,st):ye,we=E(e,"ALLOWED_ATTR")?P({},e.ALLOWED_ATTR,st):Ce,tt=E(e,"ALLOWED_NAMESPACES")?P({},e.ALLOWED_NAMESPACES,w):nt,Ye=E(e,"ADD_URI_SAFE_ATTR")?P(T(Ke),e.ADD_URI_SAFE_ATTR,st):Ke,We=E(e,"ADD_DATA_URI_TAGS")?P(T(Ue),e.ADD_DATA_URI_TAGS,st):Ue,Ge=E(e,"FORBID_CONTENTS")?P({},e.FORBID_CONTENTS,st):Ve,xe=E(e,"FORBID_TAGS")?P({},e.FORBID_TAGS,st):T({}),Ie=E(e,"FORBID_ATTR")?P({},e.FORBID_ATTR,st):T({}),He=!!E(e,"USE_PROFILES")&&e.USE_PROFILES,ke=!1!==e.ALLOW_ARIA_ATTR,Be=!1!==e.ALLOW_DATA_ATTR,Me=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Pe=e.SAFE_FOR_TEMPLATES||!1,_e=!1!==e.SAFE_FOR_XML,Te=e.WHOLE_DOCUMENT||!1,Qe=e.RETURN_DOM||!1,Ne=e.RETURN_DOM_FRAGMENT||!1,Fe=e.RETURN_TRUSTED_TYPE||!1,De=e.FORCE_BODY||!1,Le=!1!==e.SANITIZE_DOM,je=e.SANITIZE_NAMED_PROPS||!1,ze=!1!==e.KEEP_CONTENT,$e=e.IN_PLACE||!1,be=e.ALLOWED_URI_REGEXP||J,Ze=e.NAMESPACE||Xe,rt=e.MATHML_TEXT_INTEGRATION_POINTS||rt,ot=e.HTML_INTEGRATION_POINTS||ot,Se=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Se.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Se.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Se.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Pe&&(Be=!1),Ne&&(Qe=!0),He&&(ve=P({},z),we=[],!0===He.html&&(P(ve,D),P(we,$)),!0===He.svg&&(P(ve,Q),P(we,H),P(we,V)),!0===He.svgFilters&&(P(ve,N),P(we,H),P(we,V)),!0===He.mathMl&&(P(ve,L),P(we,G),P(we,V))),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?Ee.tagCheck=e.ADD_TAGS:(ve===ye&&(ve=T(ve)),P(ve,e.ADD_TAGS,st))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?Ee.attributeCheck=e.ADD_ATTR:(we===Ce&&(we=T(we)),P(we,e.ADD_ATTR,st))),e.ADD_URI_SAFE_ATTR&&P(Ye,e.ADD_URI_SAFE_ATTR,st),e.FORBID_CONTENTS&&(Ge===Ve&&(Ge=T(Ge)),P(Ge,e.FORBID_CONTENTS,st)),e.ADD_FORBID_CONTENTS&&(Ge===Ve&&(Ge=T(Ge)),P(Ge,e.ADD_FORBID_CONTENTS,st)),ze&&(ve["#text"]=!0),Te&&P(ve,["html","head","body"]),ve.table&&(P(ve,["tbody"]),delete xe.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw B('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw B('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Z=e.TRUSTED_TYPES_POLICY,te=Z.createHTML("")}else void 0===Z&&(Z=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(_,a)),null!==Z&&"string"==typeof te&&(te=Z.createHTML(""));u&&u(e),ct=e}},pt=P({},[...Q,...N,...F]),ht=P({},[...L,...j]),gt=function(e){b(n.removed,{element:e});try{X(e).removeChild(e)}catch(t){Y(e)}},mt=function(e,t){try{b(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){b(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Qe||Ne)try{gt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},At=function(e){let t=null,n=null;if(De)e="<remove></remove>"+e;else{const t=C(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===at&&Ze===Xe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=Z?Z.createHTML(e):e;if(Ze===Xe)try{t=(new R).parseFromString(o,at)}catch(e){}if(!t||!t.documentElement){t=oe.createDocument(Ze,"template",null);try{t.documentElement.innerHTML=et?te:o}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),Ze===Xe?le.call(t,Te?"html":"body")[0]:Te?t.documentElement:i},bt=function(e){return ie.call(e.ownerDocument||e,e,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},vt=function(e){return e instanceof M&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},yt=function(e){return"function"==typeof c&&e instanceof c};function wt(e,t,r){g(e,e=>{e.call(n,t,r,ct)})}const Ct=function(e){let t=null;if(wt(ce.beforeSanitizeElements,e,null),vt(e))return gt(e),!0;const r=st(e.nodeName);if(wt(ce.uponSanitizeElement,e,{tagName:r,allowedTags:ve}),_e&&e.hasChildNodes()&&!yt(e.firstElementChild)&&k(/<[/\w!]/g,e.innerHTML)&&k(/<[/\w!]/g,e.textContent))return gt(e),!0;if(7===e.nodeType)return gt(e),!0;if(_e&&8===e.nodeType&&k(/<[/\w]/g,e.data))return gt(e),!0;if(!(Ee.tagCheck instanceof Function&&Ee.tagCheck(r))&&(!ve[r]||xe[r])){if(!xe[r]&&xt(r)){if(Se.tagNameCheck instanceof RegExp&&k(Se.tagNameCheck,r))return!1;if(Se.tagNameCheck instanceof Function&&Se.tagNameCheck(r))return!1}if(ze&&!Ge[r]){const t=X(e)||e.parentNode,n=q(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=U(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,K(e))}}return gt(e),!0}return e instanceof d&&!function(e){let t=X(e);t&&t.tagName||(t={namespaceURI:Ze,tagName:"template"});const n=y(e.tagName),r=y(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===Je?t.namespaceURI===Xe?"svg"===n:t.namespaceURI===qe?"svg"===n&&("annotation-xml"===r||rt[r]):Boolean(pt[n]):e.namespaceURI===qe?t.namespaceURI===Xe?"math"===n:t.namespaceURI===Je?"math"===n&&ot[r]:Boolean(ht[n]):e.namespaceURI===Xe?!(t.namespaceURI===Je&&!ot[r])&&!(t.namespaceURI===qe&&!rt[r])&&!ht[n]&&(it[n]||!pt[n]):!("application/xhtml+xml"!==at||!tt[e.namespaceURI]))}(e)?(gt(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!k(/<\/no(script|embed|frames)/i,e.innerHTML)?(Pe&&3===e.nodeType&&(t=e.textContent,g([ue,de,fe],e=>{t=S(t,e," ")}),e.textContent!==t&&(b(n.removed,{element:e.cloneNode()}),e.textContent=t)),wt(ce.afterSanitizeElements,e,null),!1):(gt(e),!0)},St=function(e,t,n){if(Le&&("id"===t||"name"===t)&&(n in r||n in ut))return!1;if(Be&&!Ie[t]&&k(pe,t));else if(ke&&k(he,t));else if(Ee.attributeCheck instanceof Function&&Ee.attributeCheck(t,e));else if(!we[t]||Ie[t]){if(!(xt(e)&&(Se.tagNameCheck instanceof RegExp&&k(Se.tagNameCheck,e)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(e))&&(Se.attributeNameCheck instanceof RegExp&&k(Se.attributeNameCheck,t)||Se.attributeNameCheck instanceof Function&&Se.attributeNameCheck(t,e))||"is"===t&&Se.allowCustomizedBuiltInElements&&(Se.tagNameCheck instanceof RegExp&&k(Se.tagNameCheck,n)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(n))))return!1}else if(Ye[t]);else if(k(be,S(n,me,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==x(n,"data:")||!We[e])if(Me&&!k(ge,S(n,me,"")));else if(n)return!1;return!0},xt=function(e){return"annotation-xml"!==e&&C(e,Ae)},It=function(e){wt(ce.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||vt(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:we,forceKeepAttr:void 0};let o=t.length;for(;o--;){const i=t[o],{name:a,namespaceURI:l,value:s}=i,c=st(a),u=s;let d="value"===a?u:I(u);if(r.attrName=c,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,wt(ce.uponSanitizeAttribute,e,r),d=r.attrValue,!je||"id"!==c&&"name"!==c||(mt(a,e),d="user-content-"+d),_e&&k(/((--!?|])>)|<\/(style|title|textarea)/i,d)){mt(a,e);continue}if("attributename"===c&&C(d,"href")){mt(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){mt(a,e);continue}if(!Re&&k(/\/>/i,d)){mt(a,e);continue}Pe&&g([ue,de,fe],e=>{d=S(d,e," ")});const f=st(e.nodeName);if(St(f,c,d)){if(Z&&"object"==typeof _&&"function"==typeof _.getAttributeType)if(l);else switch(_.getAttributeType(f,c)){case"TrustedHTML":d=Z.createHTML(d);break;case"TrustedScriptURL":d=Z.createScriptURL(d)}if(d!==u)try{l?e.setAttributeNS(l,a,d):e.setAttribute(a,d),vt(e)?gt(e):A(n.removed)}catch(t){mt(a,e)}}else mt(a,e)}wt(ce.afterSanitizeAttributes,e,null)},Et=function e(t){let n=null;const r=bt(t);for(wt(ce.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)wt(ce.uponSanitizeShadowNode,n,null),Ct(n),It(n),n.content instanceof l&&e(n.content);wt(ce.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,a=null,s=null;if(et=!e,et&&(e="\x3c!--\x3e"),"string"!=typeof e&&!yt(e)){if("function"!=typeof e.toString)throw B("toString is not a function");if("string"!=typeof(e=e.toString()))throw B("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Oe||ft(t),n.removed=[],"string"==typeof e&&($e=!1),$e){if(e.nodeName){const t=st(e.nodeName);if(!ve[t]||xe[t])throw B("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)r=At("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!Qe&&!Pe&&!Te&&-1===e.indexOf("<"))return Z&&Fe?Z.createHTML(e):e;if(r=At(e),!r)return Qe?null:Fe?te:""}r&&De&&gt(r.firstChild);const u=bt($e?e:r);for(;a=u.nextNode();)Ct(a),It(a),a.content instanceof l&&Et(a.content);if($e)return e;if(Qe){if(Ne)for(s=ae.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(we.shadowroot||we.shadowrootmode)&&(s=se.call(o,s,!0)),s}let d=Te?r.outerHTML:r.innerHTML;return Te&&ve["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&k(ee,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),Pe&&g([ue,de,fe],e=>{d=S(d,e," ")}),Z&&Fe?Z.createHTML(d):d},n.setConfig=function(){ft(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Oe=!0},n.clearConfig=function(){ct=null,Oe=!1},n.isValidAttribute=function(e,t,n){ct||ft({});const r=st(e),o=st(t);return St(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&b(ce[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=m(ce[e],t);return-1===n?void 0:v(ce[e],n,1)[0]}return A(ce[e])},n.removeHooks=function(e){ce[e]=[]},n.removeAllHooks=function(){ce={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),ie=n(8018),ae=n(7487);let le=!1;const se=new RegExp(["a","b","br","code","div","em","h1","h2","h3","h4","h5","h6","i","img","li","p","pre","span","small","strong","table","tbody","sup","sub","td","tfoot","th","thead","tr","u","ul"].map(e=>String.raw`<${e}\b[^>]*>`).join("|"),"i");function ce({html:e,className:t}){const n=(0,ae.Bul)(`${e}`),i=(a=n,se.test(a)?n:ie(n));var a;return(0,o.useEffect)(()=>{le||(le=!0,oe.addHook("afterSanitizeAttributes",e=>{"A"===e.tagName&&(e.setAttribute("rel","noopener noreferrer"),e.setAttribute("target","_blank"))}))},[]),(0,r.jsx)("span",{className:t,dangerouslySetInnerHTML:{__html:oe.sanitize(i)}})}},9868(e,t,n){"use strict";n.d(t,{n:()=>f});var r=n(2658),o=n(9081),i=n(3081),a=n(2855),l=n(966),s=n(1898);const{createCssAndCx:c}={createCssAndCx:function(e){const{cache:t}=e,n=(...e)=>{const n=(0,a.J)(e,t.registered);(0,l.sk)(t,n,!1);const r=`${t.key}-${n.name}`;{const n=e[0];(function(e){return e instanceof Object&&!("styles"in e)&&!("length"in e)&&!("__emotion_styles"in e)})(n)&&u.saveClassNameCSSObjectMapping(t,r,n)}return r};return{css:n,cx:(...e)=>{const r=(0,s.p)(e),o=u.fixClassName(t,r,n);return function(e,t,n){const r=[],o=(0,l.Rk)(e,r,n);return r.length<2?n:o+t(r)}(t.registered,n,o)}}}},u=(()=>{const e=new WeakMap;return{saveClassNameCSSObjectMapping:(t,n,r)=>{let o=e.get(t);void 0===o&&(o=new Map,e.set(t,o)),o.set(n,r)},fixClassName:(t,n,r)=>{if(!n.includes(" "))return n;const o=e.get(t);return(0,s.p)(function(e){let t=!1;return e.map(([e,n])=>{if(void 0===n)return e;let r;if(t)r={"&&":n};else{r=e;for(const e in n)if(e.startsWith("@media")){t=!0;break}}return r})}(n.split(" ").map(e=>[e,o?.get(e)])).map(e=>"string"==typeof e?e:r(e)))}}})(),d=i._,{makeStyles:f}=function(e){const{useTheme:t}=e,{useCssAndCx:n}=function(e){const{useCache:t}=e;return{useCssAndCx:function(){const e=t(),{css:n,cx:r}=(0,o.useMemo)(()=>c({cache:e}),[e]);return{css:n,cx:r}}}}({useCache:d});return{makeStyles:function(){return function(e){const r="function"==typeof e?e:()=>e;return function(e,i){const a=t(),{css:l,cx:s}=n(),c=(0,o.useMemo)(()=>{const e=r(a),t={};for(const n of Object.keys(e)){const r=e[n];t[n]=l(r)}return t},[l,a]),u=i?.props.classes,d=function(e){if(!(e instanceof Object)||"function"==typeof e)return e;const t=[];for(const n in e){const r=e[n],o=typeof r;if("string"!==o&&("number"!==o||isNaN(r))&&"boolean"!==o&&null!=r)return e;t.push(`${n}:${o}_${r}`)}return`xSqLiJdLMd9s${t.join("|")}`}(u),f=(0,o.useMemo)(()=>u?function(e,t,n){if(!(t instanceof Object))return e;const r=Object.keys(t);if(0===r.length)return e;const o={};for(const r of Object.keys(e))o[r]=n(e[r],t[r]);for(const n of r){if(n in e)continue;const r=t[n];"string"==typeof r&&(o[n]=r)}return o}(c,u,s):c,[c,d,s]);return{classes:f,theme:a,css:l,cx:s}}}}}}({useTheme:r.A})}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var l=2&r&&n;("object"==typeof l||"function"==typeof l)&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach(e=>a[e]=()=>n[e]);return a.default=()=>n,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";o.r(i),o.d(i,{MSAModelF:()=>pc,MSAView:()=>Gi,React:()=>t,createRoot:()=>hc.createRoot,hydrateRoot:()=>hc.hydrateRoot,version:()=>hc.version});var e=o(9081),t=o.t(e,2),n=o(6677),r=o(7993),a=o(294),l=o(4137),s=o(6451);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var d=(0,s.PA)(function(t){var n=t.model,r=n.resizeHandleWidth,o=c((0,e.useState)(!1),2),i=o[0],a=o[1],l=(0,e.useRef)(!1),s=(0,e.useRef)(0);return(0,e.useEffect)(function(){function e(e){e.preventDefault();var t=e.clientX;if(0===s.current)s.current=e.clientX;else{var r=t-s.current;r&&(l.current||(l.current=!0,window.requestAnimationFrame(function(){n.setTreeAreaWidth(n.treeAreaWidth+r),l.current=!1,s.current=e.clientX})))}}function t(){s.current=0,i&&a(!1)}return i?(document.addEventListener("mousemove",e,!0),document.addEventListener("mouseup",t,!0),function(){document.removeEventListener("mousemove",e,!0),document.removeEventListener("mouseup",t,!0)}):function(){}},[i,n]),e.createElement("div",null,e.createElement("div",{onMouseDown:function(){a(!0)},style:{cursor:"ew-resize",height:"100%",width:r,background:"rgba(200,200,200)",position:"relative"}}))}),f=(0,s.PA)(function(t){var n=t.model,r=n.resizeHandleWidth,o=c((0,e.useState)(!1),2),i=o[0],a=o[1],l=(0,e.useRef)(!1),s=(0,e.useRef)(0);return(0,e.useEffect)(function(){function e(e){e.preventDefault();var t=e.clientY;if(0===s.current)s.current=e.clientY;else{var r=t-s.current;r&&(l.current||(l.current=!0,window.requestAnimationFrame(function(){n.setHeight(n.height+r),l.current=!1,s.current=e.clientY})))}}function t(){s.current=0,i&&a(!1)}return i?(document.addEventListener("mousemove",e,!0),document.addEventListener("mouseup",t,!0),function(){document.removeEventListener("mousemove",e,!0),document.removeEventListener("mouseup",t,!0)}):function(){}},[i,n]),e.createElement("div",null,e.createElement("div",{onMouseDown:function(){a(!0)},style:{cursor:"ns-resize",width:"100%",height:r,background:"rgba(200,200,200)",position:"relative"}}))}),p=o(8394),h=o(8525);const g=(0,p.A)((0,h.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");var m=o(6674),A=o(6972),b=o(7733),v=o(4578);function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var w=(0,e.lazy)(function(){return Promise.resolve().then(o.bind(o,5424))}),C=(0,v.n9)()({button:{padding:0}}),S=(0,s.PA)(function(t){var n,r,o=t.model,i=t.track,a=(n=(0,e.useState)(),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(n,r)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=a[0],s=a[1],c=o.drawLabels,u=o.rowHeight,d=o.treeAreaWidth,f=i.model,p=f.name,h=f.height,v=C().classes,S=Math.max(8,u-8);return e.createElement("div",{style:{width:d,height:h,flexShrink:0,textAlign:"right",fontSize:S}},c?p:""," ",e.createElement(m.A,{className:v.button,style:{width:S,height:S},onClick:function(e){s(e.currentTarget)}},e.createElement(g,null)),l?e.createElement(A.A,{anchorEl:l,transitionDuration:0,open:!0,onClose:function(){s(void 0)}},e.createElement(b.A,{dense:!0,onClick:function(){o.toggleTrack(i.model.id),s(void 0)}},"Close"),e.createElement(b.A,{dense:!0,onClick:function(){o.queueDialog(function(e){return[w,{onClose:e,model:i.model}]}),s(void 0)}},"Get info")):null)}),x=(0,s.PA)(function(t){var n=t.model,r=t.track,o=n.resizeHandleWidth,i=n.colWidth,a=n.scrollX,l=n.numColumns,s=r.model,c=s.height,u=s.error,d=(0,e.useRef)(null),f=(0,e.useRef)(!1),p=(0,e.useRef)(0);return(0,e.useEffect)(function(){var e=d.current;if(e)return e.addEventListener("wheel",t),function(){e.removeEventListener("wheel",t)};function t(e){p.current+=e.deltaX,f.current||(f.current=!0,requestAnimationFrame(function(){n.doScrollX(-p.current),p.current=0,f.current=!1})),e.preventDefault()}},[n]),e.createElement("div",{key:r.id,style:{display:"flex",height:c}},e.createElement(S,{model:n,track:r}),e.createElement("div",{style:{width:o,flexShrink:0}}),e.createElement("div",{ref:d,onMouseMove:function(e){if(d.current){var t=d.current.getBoundingClientRect().left,r=e.clientX-t-a,o=Math.floor(r/i);o>=0&&o<l?n.setMousePos(o,void 0):n.setMousePos(void 0,void 0)}},onMouseLeave:function(){n.setMousePos(void 0,void 0)}},u?e.createElement("div",{style:{color:"red",fontSize:10}},"".concat(u)):e.createElement(r.ReactComponent,{model:n,track:r})))});const I=x;var E=o(7487);function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return B(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var M=(0,s.PA)(function(t){var n=t.model,r=n.msaAreaHeight,o=n.scrollY,i=n.totalHeight,a=k((0,e.useState)(!1),2),l=a[0],s=a[1],c=(0,e.useRef)(!1),u=k((0,e.useState)(),2),d=u[0],f=u[1],p=r/i,h=-o,g=h*p,m=(h+r)*p;return(0,e.useEffect)(function(){function e(e){void 0!==d&&(c.current||(c.current=!0,window.requestAnimationFrame(function(){n.setScrollY((0,E.qE8)(d.scrollY-(e.clientY-d.clientY)/p,-i,0)),c.current=!1})))}function t(){f(void 0)}if(void 0!==d)return document.addEventListener("mousemove",e),document.addEventListener("mouseup",t),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mousemove",t)}},[n,p,i,d]),e.createElement("div",{style:{position:"relative",width:20,height:r,borderLeft:"1px solid #555",borderTop:"1px solid #555",boxSizing:"border-box"}},e.createElement("div",{style:{position:"absolute",top:Math.max(0,g),left:0,background:l?"rgba(66,119,127,0.6)":"rgba(66, 119, 127, 0.3)",cursor:"pointer",boxSizing:"border-box",width:20,height:Math.max(m-g,20),zIndex:100},onMouseOver:function(){s(!0)},onMouseOut:function(){s(!1)},onMouseDown:function(e){f({clientY:e.clientY,scrollY:n.scrollY})}}))});const R=M,P=(0,p.A)((0,h.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help");var _=o(5411),T=(0,s.PA)(function(t){var n=t.model,r=n.hideGaps,o=n.allowedGappyness;return r?e.createElement("div",{style:{display:"flex",alignItems:"center",gap:8}},e.createElement(a.A,{style:{whiteSpace:"nowrap"}},"Hide columns w/ >",o,"% gaps"),e.createElement(_.Ay,{style:{width:100},min:1,max:100,value:o,onChange:function(e,t){n.setAllowedGappyness(t)}})):null});const O=T;var D=(0,v.n9)()({margin:{margin:"auto",marginLeft:10}}),Q=(0,s.PA)(function(t){var n=t.model,r=n.mouseOverRowName,o=n.mouseCol,i=D().classes;return r&&void 0!==o?e.createElement(a.A,{className:i.margin},r,":",n.visibleColToSeqPosOneBased(r,o)," (",n.visibleColToRowLetter(r,o),")"):null});const N=Q,F=(0,p.A)((0,h.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");var L=o(1136),j=o(3300),z=o(3630),$=o(7872);const H=(0,p.A)((0,h.jsx)("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"}),"HelpOutline");var G=o(1080),V=o(3688);function W({onClose:e,helpText:t,label:n}){return(0,h.jsx)(V.A,{open:!0,onClose:e,title:"Help",titleNode:n?(0,h.jsxs)(h.Fragment,{children:["Help: ",n]}):void 0,onClick:e=>{e.stopPropagation()},onMouseDown:e=>{e.stopPropagation()},children:(0,h.jsx)(G.A,{children:t})})}function U({helpText:t,label:n}){const[r,o]=(0,e.useState)(!1);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(m.A,{size:"small",onClick:e=>{e.stopPropagation(),o(!0)},style:{marginLeft:4,padding:4},children:(0,h.jsx)(H,{fontSize:"small"})}),r?(0,h.jsxs)(e.Suspense,{fallback:null,children:[(0,h.jsx)(W,{helpText:t,label:n,onClose:e=>{e.stopPropagation(),o(!1)}})," "]}):null]})}const Y=e.forwardRef(function(e,t){return(0,h.jsx)(A.A,{...e,ref:t,style:{pointerEvents:"none",...e.style},slotProps:{...e.slotProps,paper:{style:{pointerEvents:"auto"}}}})}),K=(0,p.A)((0,h.jsx)("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight"),q=(0,p.A)((0,h.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-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckBox"),J=(0,p.A)((0,h.jsx)("path",{d:"M19 5v14H5V5zm0-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-2"}),"CheckBoxOutlineBlank"),X=(0,p.A)((0,h.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-5m0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"RadioButtonChecked"),Z=(0,p.A)((0,h.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"RadioButtonUnchecked");var ee=o(9868);const te=(0,ee.n)()({menuItemEndDecoration:{padding:0,margin:0,height:16}});function ne(e){const{classes:t}=te(),{type:n}=e;let r,o,i;switch("checked"in e&&({checked:r,disabled:o}=e),n){case"subMenu":i=(0,h.jsx)(K,{color:"action"});break;case"checkbox":if(r){const e=o?"inherit":void 0;i=(0,h.jsx)(q,{color:e})}else i=(0,h.jsx)(J,{color:"action"});break;case"radio":if(r){const e=o?"inherit":void 0;i=(0,h.jsx)(X,{color:e})}else i=(0,h.jsx)(Z,{color:"action"})}return(0,h.jsx)("div",{className:t.menuItemEndDecoration,children:i})}function re(e){if("string"==typeof e)return e.toLowerCase().replace(/\s+/g,"_")}function oe({title:t,Icon:n,inset:r,menuItems:o,onMenuItemClick:i,closeAfterItemClick:a,onCloseRoot:l,isOpen:s,onOpen:c,onClose:u}){const[d,f]=(0,e.useState)(null),p=re(t);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(b.A,{ref:f,"data-testid":p?`cascading-submenu-${p}`:void 0,onMouseOver:c,onFocus:c,onClick:c,children:[n?(0,h.jsx)(L.A,{children:(0,h.jsx)(n,{})}):null,(0,h.jsx)(j.A,{primary:t,inset:r}),(0,h.jsx)(F,{})]}),(0,h.jsx)(Y,{open:s,anchorEl:d,onClose:u,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},children:(0,h.jsx)(ie,{closeAfterItemClick:a,onMenuItemClick:i,menuItems:o,onCloseRoot:l})})]})}function ie({onMenuItemClick:t,closeAfterItemClick:n,menuItems:r,onCloseRoot:o}){const[i,a]=(0,e.useState)(),l=()=>{a(void 0)},s=r.some(e=>"icon"in e&&e.icon),c=r.some(e=>("checkbox"===e.type||"radio"===e.type)&&"helpText"in e&&e.helpText),u=r.toSorted((e,t)=>(t.priority||0)-(e.priority||0));return(0,h.jsx)(h.Fragment,{children:u.map((e,r)=>{if("subMenu"in e)return(0,h.jsx)(oe,{title:e.label,Icon:e.icon,inset:s&&!e.icon,onMenuItemClick:t,menuItems:e.subMenu,closeAfterItemClick:n,onCloseRoot:o,isOpen:i===r,onOpen:()=>{a(r)},onClose:l},`subMenu-${e.label}-${r}`);if("divider"===e.type)return(0,h.jsx)(z.A,{component:"li"},`divider-${r}`);if("subHeader"===e.type)return(0,h.jsx)($.A,{children:e.label},`subHeader-${e.label}-${r}`);const u=e,d=u.helpText,f="checkbox"===u.type||"radio"===u.type,p=re(u.label);return(0,h.jsxs)(b.A,{"data-testid":p?`cascading-menuitem-${p}`:void 0,disabled:Boolean(u.disabled),onClick:e=>{n&&o(),t(e,u.onClick)},onMouseOver:l,children:[u.icon?(0,h.jsx)(L.A,{children:(0,h.jsx)(u.icon,{})}):null,(0,h.jsx)(j.A,{primary:u.label,secondary:u.subLabel,inset:s&&!u.icon}),(0,h.jsx)("div",{style:{flexGrow:1,minWidth:10}}),f?(0,h.jsx)(ne,{type:u.type,checked:u.checked,disabled:u.disabled}):null,d?(0,h.jsx)(U,{helpText:d,label:u.label}):f&&c?(0,h.jsx)("div",{style:{marginLeft:4,padding:4,width:28,height:28}}):null]},`${u.label}-${r}`)})})}function ae({onMenuItemClick:e,closeAfterItemClick:t=!0,menuItems:n,open:r,onClose:o,anchorEl:i,anchorOrigin:a,transformOrigin:l,anchorReference:s,anchorPosition:c,slotProps:u,marginThreshold:d,style:f}){const p=Array.isArray(n)?n:n();return(0,h.jsx)(A.A,{anchorEl:i,open:r,onClose:o,anchorOrigin:a,transformOrigin:l,anchorReference:s,anchorPosition:c,slotProps:u,marginThreshold:d??void 0,style:f,children:(0,h.jsx)(ie,{menuItems:p,closeAfterItemClick:t,onMenuItemClick:e,onCloseRoot:o})})}const le=function({children:t,menuItems:n,closeAfterItemClick:r=!0,stopPropagation:o,disabled:i,setOpen:a,ButtonComponent:l=m.A,onClick:s,anchorOrigin:c,transformOrigin:u,marginThreshold:d,...f}){const[p,g]=(0,e.useState)(null),A=Boolean(p);(0,e.useEffect)(()=>{a?.(A)},[A,a]);const b=i??(Array.isArray(n)&&0===n.length);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(l,{onClick:e=>{o&&e.stopPropagation(),g(e.currentTarget),s?.(e)},...f,disabled:b,children:t}),A?(0,h.jsx)(ae,{open:A,onClose:()=>{g(null)},anchorEl:p,anchorOrigin:c,transformOrigin:u,marginThreshold:d,menuItems:n,closeAfterItemClick:r,onMenuItemClick:(e,t)=>{t()}}):null]})},se=(0,p.A)((0,h.jsx)("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3z"}),"AccountTree"),ce=(0,p.A)((0,h.jsx)("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 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-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m2 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"}),"Assignment"),ue=(0,p.A)((0,h.jsx)("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61"}),"FilterAlt"),de=(0,p.A)((0,h.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z"}),"FolderOpen"),fe=(0,p.A)((0,h.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),pe=(0,p.A)([(0,h.jsx)("circle",{cx:"12",cy:"12",r:"3.2"},"0"),(0,h.jsx)("path",{d:"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5"},"1")],"PhotoCamera"),he=(0,p.A)((0,h.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),ge=(0,p.A)((0,h.jsx)("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort"),me=(0,p.A)((0,h.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");function Ae(e){return function(e){if(Array.isArray(e))return be(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return be(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?be(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function be(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ve=(0,e.lazy)(function(){return Promise.resolve().then(o.bind(o,4290))}),ye=(0,e.lazy)(function(){return Promise.resolve().then(o.bind(o,3659))}),we=(0,e.lazy)(function(){return Promise.resolve().then(o.bind(o,7307))}),Ce=(0,e.lazy)(function(){return Promise.resolve().then(o.bind(o,3218))}),Se=(0,e.lazy)(function(){return Promise.resolve().then(o.bind(o,1814))}),xe=(0,e.lazy)(function(){return Promise.resolve().then(o.bind(o,3569))}),Ie=(0,s.PA)(function(t){var n=t.model,r=n.showDomains,o=n.actuallyShowDomains,i=n.subFeatureRows,a=n.noDomains,l=n.tracks,s=n.turnedOffTracks;return e.createElement(le,{menuItems:[{label:"Return to import form",icon:de,onClick:function(){n.reset()}},{label:"Metadata",icon:ce,onClick:function(){n.queueDialog(function(e){return[ve,{model:n,onClose:e}]})}},{label:"More settings",onClick:function(){n.queueDialog(function(e){return[Ce,{model:n,onClose:e}]})}},{label:"Tracks",icon:me,type:"subMenu",subMenu:l.map(function(e){return{label:e.model.name,type:"checkbox",checked:!s.has(e.model.id),onClick:function(){n.toggleTrack(e.model.id)}}})},{label:"Export SVG",icon:pe,onClick:function(){n.queueDialog(function(e){return[ye,{onClose:e,model:n}]})}}].concat(Ae(n.rows.length>=2?[{label:"Calculate neighbor joining tree (BLOSUM62)",icon:se,onClick:function(){try{n.calculateNeighborJoiningTreeFromMSA()}catch(e){console.error("Failed to calculate NJ tree:",e),n.setError(e)}}}]:[]),[{label:"Features/protein domains",type:"subMenu",subMenu:[{label:"Open domains...",icon:de,onClick:function(){n.queueDialog(function(e){return[Se,{handleClose:e,model:n}]})}},{label:"Query InterProScan for domains...",icon:he,onClick:function(){n.queueDialog(function(e){return[xe,{handleClose:e,model:n}]})}},{label:"Show domains".concat(a?" (no domains loaded)":""),disabled:a,icon:me,checked:!!o&&r,type:"checkbox",onClick:function(){n.setShowDomains(!r)}},{label:"Use sub-row layout".concat(a?" (no domains loaded)":""),disabled:a,checked:!!o&&i,icon:ge,type:"checkbox",onClick:function(){n.setSubFeatureRows(!i)}},{label:"Filter domains".concat(a?" (no domains loaded)":""),icon:ue,disabled:a,onClick:function(){n.queueDialog(function(e){return[we,{onClose:e,model:n}]})}}]}],Ae(n.extraViewMenuItems()))},e.createElement(fe,null))});const Ee=Ie;var ke=o(9586),Be=(0,v.n9)()({margin:{margin:"auto",marginLeft:10}});const Me=(0,s.PA)(function(t){var n=t.model.status,r=Be().classes;return n?e.createElement(a.A,{className:r.margin},e.createElement(ke.A,{message:n.msg,component:"span"})," ",n.url?e.createElement("a",{href:n.url,target:"_blank",rel:"noreferrer"},"(status)"):null):null});var Re=o(1314),Pe=(0,s.PA)(function(t){var n=t.model,r=n.currentAlignment,o=n.alignmentNames;return o.length>0?e.createElement(Re.A,{select:!0,variant:"outlined",value:r,size:"small",onChange:function(e){n.setCurrentAlignment(+e.target.value),n.setScrollX(0),n.setScrollY(0)}},o.map(function(t,n){return e.createElement(b.A,{key:"".concat(t,"-").concat(n),value:n},t)})):null});const _e=Pe,Te=(0,p.A)((0,h.jsx)("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10c1.38 0 2.5-1.12 2.5-2.5 0-.61-.23-1.2-.64-1.67-.08-.1-.13-.21-.13-.33 0-.28.22-.5.5-.5H16c3.31 0 6-2.69 6-6 0-4.96-4.49-9-10-9m5.5 11c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m-3-4c-.83 0-1.5-.67-1.5-1.5S13.67 6 14.5 6s1.5.67 1.5 1.5S15.33 9 14.5 9M5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S7.33 13 6.5 13 5 12.33 5 11.5m6-4c0 .83-.67 1.5-1.5 1.5S8 8.33 8 7.5 8.67 6 9.5 6s1.5.67 1.5 1.5"}),"Palette"),Oe=(0,p.A)((0,h.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");var De=o(3731);function Qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ne=(0,s.PA)(function(t){var n,r=t.model,o=r.colorSchemeName,i=r.drawMsaLetters,a=r.contrastLettering,l=r.hideGaps,s=r.bgColor,c=r.drawTree,u=r.showBranchLen,d=r.labelsAlignRight,f=r.drawNodeBubbles,p=r.drawLabels,h=r.treeWidthMatchesArea,g=r.noTree;return e.createElement(le,{closeAfterItemClick:!1,menuItems:[{label:"Color scheme",icon:Te,type:"subMenu",subMenu:Object.keys(De.A).map(function(e){return{label:e,type:"radio",checked:o===e,onClick:function(){r.setColorSchemeName(e)}}})},{label:"MSA settings",type:"subMenu",subMenu:[{label:"Draw letters",type:"checkbox",checked:i,onClick:function(){r.setDrawMsaLetters(!i)}},{label:"Color letters instead of background of tiles",type:"checkbox",checked:!s,onClick:function(){r.setBgColor(!s)}},{label:"Use contrast lettering",type:"checkbox",checked:a,onClick:function(){r.setContrastLettering(!a)}},{label:"Enable hiding gappy columns?",type:"checkbox",checked:l,onClick:function(){r.setHideGaps(!l)}}]},{label:"Tree settings",type:"subMenu",icon:se,subMenu:[{label:"Show branch length",type:"checkbox",checked:u,onClick:function(){r.setShowBranchLen(!u)}},{label:"Show tree",type:"checkbox",checked:c,onClick:function(){r.setDrawTree(!c)}},{label:"Draw clickable bubbles on tree branches",type:"checkbox",checked:f,onClick:function(){r.setDrawNodeBubbles(!f)}},{label:"Tree labels align right",type:"checkbox",checked:d,onClick:function(){r.setLabelsAlignRight(!d)}},{label:"Draw labels",type:"checkbox",checked:p,onClick:function(){r.setDrawLabels(!p)}}].concat((n=g?[]:[{label:"Make tree width fit to tree area",type:"checkbox",checked:h,onClick:function(){r.setTreeWidthMatchesArea(!h)}}],function(e){if(Array.isArray(e))return Qe(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return Qe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qe(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))}]},e.createElement(Oe,null))});const Fe=Ne,Le=(0,p.A)([(0,h.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"},"0"),(0,h.jsx)("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2z"},"1")],"ZoomIn"),je=(0,p.A)((0,h.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14M7 9h5v1H7z"}),"ZoomOut");var ze=(0,s.PA)(function(t){var n=t.model;return e.createElement(e.Fragment,null,e.createElement(m.A,{onClick:function(){n.zoomIn()}},e.createElement(Le,null)),e.createElement(m.A,{onClick:function(){n.zoomOut()}},e.createElement(je,null)))});const $e=ze,He=(0,p.A)((0,h.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert"),Ge=(0,p.A)((0,h.jsx)("path",{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8m-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"}),"RestartAlt");var Ve=(0,s.PA)(function(t){var n=t.model;return e.createElement(le,{menuItems:[{label:"Fit both vertically/horizontally",onClick:function(){n.fit()}},{label:"Fit vertically",onClick:function(){n.fitVertically()}},{label:"Fit horizontally",onClick:function(){n.fitHorizontally()}},{label:"Reset zoom to default",icon:Ge,onClick:function(){n.resetZoom()}},{label:"Show extra zoom options",checked:n.showZoomStar,type:"checkbox",onClick:function(){n.setShowZoomStar(!n.showZoomStar)}}]},e.createElement(He,null))});const We=Ve;var Ue=(0,v.n9)()(function(e){return{dpad:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)"},icon:{padding:e.spacing(.5)}}}),Ye=(0,s.PA)(function(t){var n=t.model,r=Ue().classes;return e.createElement("div",{className:r.dpad},e.createElement("div",null),e.createElement(m.A,{className:r.icon,onClick:function(){n.zoomInVertical()}},"Y+"),e.createElement("div",null),e.createElement(m.A,{className:r.icon,onClick:function(){n.zoomOutHorizontal()}},"X-"),e.createElement(m.A,{className:r.icon,onClick:function(){n.resetZoom()}},e.createElement(Ge,null)),e.createElement(m.A,{className:r.icon,onClick:function(){n.zoomInHorizontal()}},"X+"),e.createElement("div",null),e.createElement(m.A,{className:r.icon,onClick:function(){n.zoomOutVertical()}},"Y-"),e.createElement("div",null))});const Ke=Ye;function qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Je=(0,e.lazy)(function(){return Promise.resolve().then(o.bind(o,6956))}),Xe=(0,s.PA)(function(t){var n,r,o=t.model,i=function(){const t=(0,e.useRef)(null),[n,r]=(0,e.useState)({width:void 0,height:void 0});return(0,e.useEffect)(()=>{if(!t.current)return;const e="undefined"!=typeof window&&"ResizeObserver"in window?window.ResizeObserver:void 0;if(!e)return;const n=new e(e=>{r({width:e[0].contentRect.width,height:e[0].contentRect.height})});return n.observe(t.current),()=>{n.disconnect()}},[]),[t,n]}(),a=(r=2,function(e){if(Array.isArray(e))return e}(n=i)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(n,r)||function(e,t){if(e){if("string"==typeof e)return qe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qe(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=a[0],s=a[1].height;return(0,e.useEffect)(function(){o.setHeaderHeight(s||0)},[o,s]),e.createElement("div",{ref:l,style:{display:"flex"}},e.createElement(Ee,{model:o}),e.createElement(Fe,{model:o}),e.createElement($e,{model:o}),o.showZoomStar?e.createElement(Ke,{model:o}):null,e.createElement(We,{model:o}),e.createElement(O,{model:o}),e.createElement("div",{style:{paddingLeft:20,margin:"auto"}},e.createElement(_e,{model:o})),e.createElement(N,{model:o}),e.createElement(Ze,null),e.createElement(Me,{model:o}),e.createElement(m.A,{onClick:function(){o.queueDialog(function(e){return[Je,{onClose:e}]})}},e.createElement(P,null)))});function Ze(){return e.createElement("div",{style:{flex:1}})}const et=Xe;function tt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return nt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var rt=(0,s.PA)(function(t){var n=t.model,r=tt((0,e.useState)(),2),o=r[0],i=r[1],a=tt((0,e.useState)(!1),2),l=a[0],s=a[1],c=(0,e.useRef)(!1),u=n.scrollX,d=n.msaAreaWidth,f=n.minimapHeight,p=n.colWidth,h=d/n.numColumns/p,g=-u,m=g*h,A=(g+d)*h,b="rgba(66, 119, 127, 0.3)",v=Math.max(A-m,20);(0,e.useEffect)(function(){function e(e){void 0!==o&&(c.current||(c.current=!0,window.requestAnimationFrame(function(){n.setScrollX(o.scrollX-(e.clientX-o.clientX)/h),c.current=!1})))}function t(){i(void 0)}if(void 0!==o)return document.addEventListener("mousemove",e),document.addEventListener("mouseup",t),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mousemove",t)}},[n,h,o]);var y=f-12;return e.createElement("div",{style:{position:"relative",height:f,width:"100%"}},e.createElement("div",{style:{height:12,boxSizing:"border-box",border:"1px solid #555"}}),e.createElement("div",{style:{position:"absolute",top:0,left:Math.max(0,m),background:l?"rgba(66,119,127,0.6)":b,cursor:"pointer",height:12,width:v,zIndex:100},onMouseOver:function(){s(!0)},onMouseOut:function(){s(!1)},onMouseDown:function(e){i({clientX:e.clientX,scrollX:n.scrollX})}}),e.createElement("svg",{height:y,style:{width:"100%"}},e.createElement("polygon",{fill:b,points:[[m+v,0],[m,0],[0,y],[d,y]].toString()})))});const ot=rt;var it=o(6819);function at(){return e.createElement("div",{style:{position:"absolute",left:"50%",top:"50%"}},e.createElement(it.A,null),e.createElement(a.A,null,"Loading..."))}function lt(){return"undefined"!=typeof window}function st(e){return dt(e)?(e.nodeName||"").toLowerCase():"#document"}function ct(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ut(e){var t;return null==(t=(dt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function dt(e){return!!lt()&&(e instanceof Node||e instanceof ct(e).Node)}function ft(e){return!!lt()&&(e instanceof Element||e instanceof ct(e).Element)}function pt(e){return!!lt()&&(e instanceof HTMLElement||e instanceof ct(e).HTMLElement)}function ht(e){return!(!lt()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof ct(e).ShadowRoot)}const gt=new Set(["inline","contents"]);function mt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Bt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!gt.has(o)}const At=new Set(["table","td","th"]);function bt(e){return At.has(st(e))}const vt=[":popover-open",":modal"];function yt(e){return vt.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const wt=["transform","translate","scale","rotate","perspective"],Ct=["transform","translate","scale","rotate","perspective","filter"],St=["paint","layout","strict","content"];function xt(e){const t=It(),n=ft(e)?Bt(e):e;return wt.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Ct.some(e=>(n.willChange||"").includes(e))||St.some(e=>(n.contain||"").includes(e))}function It(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Et=new Set(["html","body","#document"]);function kt(e){return Et.has(st(e))}function Bt(e){return ct(e).getComputedStyle(e)}function Mt(e){return ft(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Rt(e){if("html"===st(e))return e;const t=e.assignedSlot||e.parentNode||ht(e)&&e.host||ut(e);return ht(t)?t.host:t}function Pt(e){const t=Rt(e);return kt(t)?e.ownerDocument?e.ownerDocument.body:e.body:pt(t)&&mt(t)?t:Pt(t)}function _t(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Pt(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=ct(o);if(i){const e=Tt(a);return t.concat(a,a.visualViewport||[],mt(o)?o:[],e&&n?_t(e):[])}return t.concat(o,_t(o,[],n))}function Tt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var Ot="undefined"!=typeof document?e.useLayoutEffect:function(){};const Dt={...t}.useInsertionEffect||(e=>e());function Qt(t){const n=e.useRef(()=>{});return Dt(()=>{n.current=t}),e.useCallback(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)},[])}var Nt=o(8092);const Ft=Math.min,Lt=Math.max,jt=Math.round,zt=(Math.floor,e=>({x:e,y:e}));function $t(e){return e.split("-")[0]}function Ht(e){return e.split("-")[1]}const Gt=new Set(["top","bottom"]);function Vt(e){return Gt.has($t(e))?"y":"x"}function Wt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ut(e,t,n){let{reference:r,floating:o}=e;const i=Vt(t),a=function(e){return"x"===Vt(e)?"y":"x"}(t),l="y"===a?"height":"width",s=$t(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;let p;switch(s){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Ht(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}const Yt=new Set(["left","top"]);function Kt(e){const t=Bt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=pt(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=jt(n)!==i||jt(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function qt(e){return ft(e)?e:e.contextElement}function Jt(e){const t=qt(e);if(!pt(t))return zt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Kt(t);let a=(i?jt(n.width):n.width)/r,l=(i?jt(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const Xt=zt(0);function Zt(e){const t=ct(e);return It()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Xt}function en(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=qt(e);let a=zt(1);t&&(r?ft(r)&&(a=Jt(r)):a=Jt(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ct(e))&&t}(i,n,r)?Zt(i):zt(0);let s=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=ct(i),t=r&&ft(r)?ct(r):r;let n=e,o=Tt(n);for(;o&&r&&t!==n;){const e=Jt(o),t=o.getBoundingClientRect(),r=Bt(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=i,c+=a,n=ct(o),o=Tt(n)}}return Wt({width:u,height:d,x:s,y:c})}function tn(e,t){const n=Mt(e).scrollLeft;return t?t.left+n:en(ut(e)).left+n}function nn(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-tn(e,n),y:n.top+t.scrollTop}}const rn=new Set(["absolute","fixed"]);function on(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=ct(e),r=ut(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const e=It();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}const c=tn(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else c<=25&&(i+=c);return{width:i,height:a,x:l,y:s}}(e,n);else if("document"===t)r=function(e){const t=ut(e),n=Mt(e),r=e.ownerDocument.body,o=Lt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Lt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+tn(e);const l=-n.scrollTop;return"rtl"===Bt(r).direction&&(a+=Lt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(ut(e));else if(ft(t))r=function(e,t){const n=en(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=pt(e)?Jt(e):zt(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Zt(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Wt(r)}function an(e,t){const n=Rt(e);return!(n===t||!ft(n)||kt(n))&&("fixed"===Bt(n).position||an(n,t))}function ln(e,t,n){const r=pt(t),o=ut(t),i="fixed"===n,a=en(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=zt(0);function c(){s.x=tn(o)}if(r||!r&&!i)if(("body"!==st(t)||mt(o))&&(l=Mt(t)),r){const e=en(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=!o||r||i?zt(0):nn(o,l);return{x:a.left+l.scrollLeft-s.x-u.x,y:a.top+l.scrollTop-s.y-u.y,width:a.width,height:a.height}}function sn(e){return"static"===Bt(e).position}function cn(e,t){if(!pt(e)||"fixed"===Bt(e).position)return null;if(t)return t(e);let n=e.offsetParent;return ut(e)===n&&(n=n.ownerDocument.body),n}function un(e,t){const n=ct(e);if(yt(e))return n;if(!pt(e)){let t=Rt(e);for(;t&&!kt(t);){if(ft(t)&&!sn(t))return t;t=Rt(t)}return n}let r=cn(e,t);for(;r&&bt(r)&&sn(r);)r=cn(r,t);return r&&kt(r)&&sn(r)&&!xt(r)?n:r||function(e){let t=Rt(e);for(;pt(t)&&!kt(t);){if(xt(t))return t;if(yt(t))return null;t=Rt(t)}return null}(e)||n}const dn={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=ut(r),l=!!t&&yt(t.floating);if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},c=zt(1);const u=zt(0),d=pt(r);if((d||!d&&!i)&&(("body"!==st(r)||mt(a))&&(s=Mt(r)),pt(r))){const e=en(r);c=Jt(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!a||d||i?zt(0):nn(a,s);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-s.scrollTop*c.y+u.y+f.y}},getDocumentElement:ut,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?yt(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=_t(e,[],!1).filter(e=>ft(e)&&"body"!==st(e)),o=null;const i="fixed"===Bt(e).position;let a=i?Rt(e):e;for(;ft(a)&&!kt(a);){const t=Bt(a),n=xt(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&rn.has(o.position)||mt(a)&&!n&&an(e,a))?r=r.filter(e=>e!==a):o=t,a=Rt(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((e,n)=>{const r=on(t,n,o);return e.top=Lt(r.top,e.top),e.right=Ft(r.right,e.right),e.bottom=Ft(r.bottom,e.bottom),e.left=Lt(r.left,e.left),e},on(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:un,getElementRects:async function(e){const t=this.getOffsetParent||un,n=this.getDimensions,r=await n(e.floating);return{reference:ln(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Kt(e);return{width:t,height:n}},getScale:Jt,isElement:ft,isRTL:function(e){return"rtl"===Bt(e).direction}},fn=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:l}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=$t(n),l=Ht(n),s="y"===Vt(n),c=Yt.has(a)?-1:1,u=i&&s?-1:1,d="function"==typeof(f=t)?f(e):f;var f;let{mainAxis:p,crossAxis:h,alignmentAxis:g}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof g&&(h="end"===l?-1*g:g),s?{x:h*u,y:p*c}:{x:p*c,y:h*u}}(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},pn=(e,t,n)=>{const r=new Map,o={platform:dn,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Ut(c,r,s),f=r,p={},h=0;for(let n=0;n<l.length;n++){const{name:i,fn:g}=l[n],{x:m,y:A,data:b,reset:v}=await g({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=m?m:u,d=null!=A?A:d,p={...p,[i]:{...p[i],...b}},v&&h<=50&&(h++,"object"==typeof v&&(v.placement&&(f=v.placement),v.rects&&(c=!0===v.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):v.rects),({x:u,y:d}=Ut(c,f,s))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var hn="undefined"!=typeof document?e.useLayoutEffect:function(){};function gn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!gn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||gn(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function mn(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function An(e,t){const n=mn(e);return Math.round(t*n)/n}function bn(t){const n=e.useRef(t);return hn(()=>{n.current=t}),n}const vn="data-floating-ui-focusable",yn="active",wn="selected",Cn={...t};let Sn=!1,xn=0;const In=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+xn++,En=Cn.useId||function(){const[t,n]=e.useState(()=>Sn?In():void 0);return Ot(()=>{null==t&&n(In())},[]),e.useEffect(()=>{Sn=!0},[]),t};const kn=e.createContext(null),Bn=e.createContext(null);function Mn(e){return null!=e&&null!=e.clientX}function Rn(t){void 0===t&&(t={});const{nodeId:n}=t,r=function(t){const{open:n=!1,onOpenChange:r,elements:o}=t,i=En(),a=e.useRef({}),[l]=e.useState(()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}()),s=null!=((null==(h=e.useContext(kn))?void 0:h.id)||null),[c,u]=e.useState(o.reference),d=Qt((e,t,n)=>{a.current.openEvent=e?t:void 0,l.emit("openchange",{open:e,event:t,reason:n,nested:s}),null==r||r(e,t,n)}),f=e.useMemo(()=>({setPositionReference:u}),[]),p=e.useMemo(()=>({reference:c||o.reference||null,floating:o.floating||null,domReference:o.reference}),[c,o.reference,o.floating]);var h;return e.useMemo(()=>({dataRef:a,open:n,onOpenChange:d,elements:p,events:l,floatingId:i,refs:f}),[n,d,p,l,i,f])}({...t,elements:{reference:null,floating:null,...t.elements}}),o=t.rootContext||r,i=o.elements,[a,l]=e.useState(null),[s,c]=e.useState(null),u=(null==i?void 0:i.domReference)||a,d=e.useRef(null),f=e.useContext(Bn);Ot(()=>{u&&(d.current=u)},[u]);const p=function(t){void 0===t&&(t={});const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:l}={},transform:s=!0,whileElementsMounted:c,open:u}=t,[d,f]=e.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[p,h]=e.useState(o);gn(p,o)||h(o);const[g,m]=e.useState(null),[A,b]=e.useState(null),v=e.useCallback(e=>{e!==S.current&&(S.current=e,m(e))},[]),y=e.useCallback(e=>{e!==x.current&&(x.current=e,b(e))},[]),w=a||g,C=l||A,S=e.useRef(null),x=e.useRef(null),I=e.useRef(d),E=null!=c,k=bn(c),B=bn(i),M=bn(u),R=e.useCallback(()=>{if(!S.current||!x.current)return;const e={placement:n,strategy:r,middleware:p};B.current&&(e.platform=B.current),pn(S.current,x.current,e).then(e=>{const t={...e,isPositioned:!1!==M.current};P.current&&!gn(I.current,t)&&(I.current=t,Nt.flushSync(()=>{f(t)}))})},[p,n,r,B,M]);hn(()=>{!1===u&&I.current.isPositioned&&(I.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);const P=e.useRef(!1);hn(()=>(P.current=!0,()=>{P.current=!1}),[]),hn(()=>{if(w&&(S.current=w),C&&(x.current=C),w&&C){if(k.current)return k.current(w,C,R);R()}},[w,C,R,k,E]);const _=e.useMemo(()=>({reference:S,floating:x,setReference:v,setFloating:y}),[v,y]),T=e.useMemo(()=>({reference:w,floating:C}),[w,C]),O=e.useMemo(()=>{const e={position:r,left:0,top:0};if(!T.floating)return e;const t=An(T.floating,d.x),n=An(T.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+n+"px)",...mn(T.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,s,T.floating,d.x,d.y]);return e.useMemo(()=>({...d,update:R,refs:_,elements:T,floatingStyles:O}),[d,R,_,T,O])}({...t,elements:{...i,...s&&{reference:s}}}),h=e.useCallback(e=>{const t=ft(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;c(t),p.refs.setReference(t)},[p.refs]),g=e.useCallback(e=>{(ft(e)||null===e)&&(d.current=e,l(e)),(ft(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!ft(e))&&p.refs.setReference(e)},[p.refs]),m=e.useMemo(()=>({...p.refs,setReference:g,setPositionReference:h,domReference:d}),[p.refs,g,h]),A=e.useMemo(()=>({...p.elements,domReference:u}),[p.elements,u]),b=e.useMemo(()=>({...p,...o,refs:m,elements:A,nodeId:n}),[p,m,A,n,o]);return Ot(()=>{o.dataRef.current.floatingContext=b;const e=null==f?void 0:f.nodesRef.current.find(e=>e.id===n);e&&(e.context=b)}),e.useMemo(()=>({...p,context:b,refs:m,elements:A}),[p,m,A,b])}function Pn(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[yn]:t,[wn]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[vn]:""},...i,...t.map(t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>t?(Object.entries(t).forEach(t=>{let[n,i]=t;var a;o&&[yn,wn].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)})):e[n]=i)}),e):e,{})}}var _n=o(7752),Tn=o(2658),On=o(844);const Dn=(0,ee.n)()(e=>({tooltip:{position:"absolute",pointerEvents:"none",backgroundColor:(0,_n.X4)(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.fontSize,lineHeight:Math.round(14e4)/1e5+"em",maxWidth:300,wordWrap:"break-word"}}));function Qn({clientPoint:t,children:n,placement:r="right"}){const o=(0,Tn.A)(),i=o.components?.MuiPopper,{classes:a}=Dn(),{refs:l,floatingStyles:s,context:c}=Rn({placement:r,strategy:"fixed",middleware:[{...fn(5),options:[5,void 0]}]});const u=function(t,n){void 0===n&&(n={});const{open:r,dataRef:o,elements:{floating:i,domReference:a},refs:l}=t,{enabled:s=!0,axis:c="both",x:u=null,y:d=null}=n,f=e.useRef(!1),p=e.useRef(null),[h,g]=e.useState(),[m,A]=e.useState([]),b=Qt((e,t)=>{f.current||o.current.openEvent&&!Mn(o.current.openEvent)||l.setPositionReference(function(e,t){let n=null,r=null,o=!1;return{contextElement:e||void 0,getBoundingClientRect(){var i;const a=(null==e?void 0:e.getBoundingClientRect())||{width:0,height:0,x:0,y:0},l="x"===t.axis||"both"===t.axis,s="y"===t.axis||"both"===t.axis,c=["mouseenter","mousemove"].includes((null==(i=t.dataRef.current.openEvent)?void 0:i.type)||"")&&"touch"!==t.pointerType;let u=a.width,d=a.height,f=a.x,p=a.y;return null==n&&t.x&&l&&(n=a.x-t.x),null==r&&t.y&&s&&(r=a.y-t.y),f-=n||0,p-=r||0,u=0,d=0,!o||c?(u="y"===t.axis?a.width:0,d="x"===t.axis?a.height:0,f=l&&null!=t.x?t.x:f,p=s&&null!=t.y?t.y:p):o&&!c&&(d="x"===t.axis?a.height:d,u="y"===t.axis?a.width:u),o=!0,{width:u,height:d,x:f,y:p,top:p,right:f+u,bottom:p+d,left:f}}}}(a,{x:e,y:t,axis:c,dataRef:o,pointerType:h}))}),v=Qt(e=>{null==u&&null==d&&(r?p.current||A([]):b(e.clientX,e.clientY))}),y=function(e){const t=["mouse","pen"];return t.push("",void 0),t.includes(e)}(h)?i:r,w=e.useCallback(()=>{if(!y||!s||null!=u||null!=d)return;const e=ct(i);function t(n){const r=function(e){return"composedPath"in e?e.composedPath()[0]:e.target}(n);!function(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&ht(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}(i,r)?b(n.clientX,n.clientY):(e.removeEventListener("mousemove",t),p.current=null)}if(!o.current.openEvent||Mn(o.current.openEvent)){e.addEventListener("mousemove",t);const n=()=>{e.removeEventListener("mousemove",t),p.current=null};return p.current=n,n}l.setPositionReference(a)},[y,s,u,d,i,o,l,a,b]);e.useEffect(()=>w(),[w,m]),e.useEffect(()=>{s&&!i&&(f.current=!1)},[s,i]),e.useEffect(()=>{!s&&r&&(f.current=!0)},[s,r]),Ot(()=>{!s||null==u&&null==d||(f.current=!1,b(u,d))},[s,u,d,b]);const C=e.useMemo(()=>{function e(e){let{pointerType:t}=e;g(t)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:v,onMouseEnter:v}},[v]);return e.useMemo(()=>s?{reference:C}:{},[s,C])}(c,t),{getFloatingProps:d}=function(t){void 0===t&&(t=[]);const n=t.map(e=>null==e?void 0:e.reference),r=t.map(e=>null==e?void 0:e.floating),o=t.map(e=>null==e?void 0:e.item),i=e.useCallback(e=>Pn(e,t,"reference"),n),a=e.useCallback(e=>Pn(e,t,"floating"),r),l=e.useCallback(e=>Pn(e,t,"item"),o);return e.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:l}),[i,a,l])}([u]);return(0,h.jsx)(On.A,{container:i?.defaultProps?.container,children:(0,h.jsx)("div",{className:a.tooltip,ref:l.setFloating,style:{...s,zIndex:1e5,visibility:"translate(0px, 0px)"===s.transform?"hidden":void 0,pointerEvents:"none"},...d(),children:n})})}var Nn=o(8596),Fn=o(5095),Ln=o(2973),jn=o(3673);function zn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var $n=(0,s.PA)(function(t){var n=t.model,r=t.offsetX,o=t.offsetY,i=n.colWidth,a=n.rowHeight,l=n.scrollY,s=n.scrollX,c=n.colorScheme,u=n.blockSize,d=n.mouseClickCol,f=n.mouseClickRow,p=n.highResScaleFactor,h=(0,Tn.A)(),g=(0,e.useMemo)(function(){return(0,jn.Sl)(c,h)},[c,h]),m=(0,e.useRef)(null);(0,e.useEffect)(function(){var e,t=null===(e=m.current)||void 0===e?void 0:e.getContext("2d");if(t)return(0,Nn.fm)(function(){t.resetTransform(),t.clearRect(0,0,u*p,u*p),n.actuallyShowDomains&&(0,Fn.X)({ctx:t,offsetX:r,offsetY:o,model:n}),(0,Ln.H)({ctx:t,theme:h,offsetX:r,offsetY:o,contrastScheme:g,model:n})})},[n,r,o,h,u,p,g]);var A,b,v=(A=(0,e.useState)(),b=2,function(e){if(Array.isArray(e))return e}(A)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(A,b)||function(e,t){if(e){if("string"==typeof e)return zn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zn(e,t):void 0}}(A,b)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),y=v[0],w=v[1],C=n.hoveredInsertion;return e.createElement(e.Fragment,null,e.createElement("canvas",{ref:m,onMouseMove:function(e){if(m.current){w({x:e.clientX,y:e.clientY});var t=m.current.getBoundingClientRect(),l=t.left,s=t.top,c=e.clientX-l+r,u=e.clientY-s+o,d=Math.floor(c/i),f=Math.floor(u/a);d>=0&&d<n.numColumns&&f>=0&&f<n.numRows?n.setMousePos(d,f):n.setMousePos(void 0,void 0)}},onClick:function(e){if(m.current){var t=m.current.getBoundingClientRect(),l=t.left,s=t.top,c=e.clientX-l+r,u=e.clientY-s+o,p=Math.floor(c/i),h=Math.floor(u/a);p===d&&h===f?n.setMouseClickPos(void 0,void 0):n.setMouseClickPos(p,h)}},onMouseLeave:function(){n.setMousePos(),w(void 0)},width:u*p,height:u*p,style:{position:"absolute",top:l+o,left:s+r,width:u,height:u}}),C&&y?e.createElement(Qn,{clientPoint:{x:y.x,y:y.y+15}},"Insertion (",C.letters.length,"amino"===n.sequenceType?"aa":"bp","):"," ",C.letters.length>20?"".concat(C.letters.slice(0,20),"..."):C.letters):null)});const Hn=$n;function Gn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Wn=(0,s.PA)(function(t){var n=t.model,r=n.MSA,o=n.verticalScrollbarWidth,i=n.msaFilehandle,a=n.height,l=n.msaAreaWidth,s=n.blocks2d,c=(0,e.useRef)(null),u=(0,e.useRef)(!1),d=(0,e.useRef)(0),f=(0,e.useRef)(0),p=(0,e.useRef)(0),h=(0,e.useRef)(0),g=Gn((0,e.useState)(!1),2),m=g[0],A=g[1];return(0,e.useEffect)(function(){var e=c.current;if(e)return e.addEventListener("wheel",t,{passive:!1}),function(){e.removeEventListener("wheel",t)};function t(e){d.current+=e.deltaX,f.current+=e.deltaY,u.current||(u.current=!0,requestAnimationFrame(function(){n.doScrollX(-d.current),n.doScrollY(-f.current),d.current=0,f.current=0,u.current=!1})),e.preventDefault(),e.stopPropagation()}},[n]),(0,e.useEffect)(function(){var e=function(){};function t(e){e.preventDefault();var t=e.clientX,r=e.clientY,o=t-p.current,i=r-h.current;(o||i)&&(u.current||(u.current=!0,window.requestAnimationFrame(function(){n.doScrollX(o),n.doScrollY(i),u.current=!1,p.current=e.clientX,h.current=e.clientY})))}function r(){p.current=0,m&&A(!1)}return m&&(window.addEventListener("mousemove",t,!0),window.addEventListener("mouseup",r,!0),e=function(){window.removeEventListener("mousemove",t,!0),window.removeEventListener("mouseup",r,!0)}),e},[n,m]),e.createElement("div",{ref:c,onMouseDown:function(e){var t=e.target;t.draggable||t.dataset.resizer||0===e.button&&(p.current=e.clientX,h.current=e.clientY,A(!0))},onMouseUp:function(e){e.preventDefault(),A(!1)},onMouseLeave:function(e){e.preventDefault()},style:{position:"relative",height:a,width:l-o,overflow:"hidden"}},r||i?r?s.map(function(t){var r=Gn(t,2),o=r[0],i=r[1];return e.createElement(Hn,{key:"".concat(o,"_").concat(i),model:n,offsetX:o,offsetY:i})}):e.createElement(at,null):null)});const Un=Wn;var Yn=o(2163);function Kn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return qn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function qn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Jn="rgba(0,0,0,0.15)",Xn="rgba(128,128,0,0.2)",Zn=(0,s.PA)(function(t){var n=t.model,r=(0,e.useRef)(null),o=n.height,i=n.msaAreaWidth-n.verticalScrollbarWidth;return(0,e.useEffect)(function(){var e,t=null===(e=r.current)||void 0===e?void 0:e.getContext("2d");return t?(0,Nn.fm)(function(){(0,Yn._n)(n)&&function(e){var t=e.ctx,n=e.model,r=n.mouseCol,o=n.colWidth,i=n.msaAreaWidth,a=n.verticalScrollbarWidth,l=n.height,s=n.rowHeight,c=n.scrollX,u=n.scrollY,d=n.mouseRow,f=n.mouseCol2,p=n.mouseClickRow,h=n.mouseClickCol,g=n.relativeTo,m=n.rowNamesSet,A=n.hoveredTreeNode,b=n.highlightedColumns,v=i-a;if(t.resetTransform(),t.clearRect(0,0,v,l),g){var y=m.get(g);void 0!==y&&(t.fillStyle="rgba(0,128,255,0.3)",t.fillRect(0,y*s+u,v,s))}if(A){t.fillStyle="rgba(255,165,0,0.15)";var w,C=Kn(A.descendantNames);try{for(C.s();!(w=C.n()).done;){var S=w.value,x=m.get(S);void 0!==x&&t.fillRect(0,x*s+u,v,s)}}catch(e){C.e(e)}finally{C.f()}}if(null!=b&&b.length){t.fillStyle=Xn;var I,E=Kn(b);try{for(E.s();!(I=E.n()).done;){var k=I.value;t.fillRect(k*o+c,0,o,l)}}catch(e){E.e(e)}finally{E.f()}}void 0!==r&&(t.fillStyle=Jn,t.fillRect(r*o+c,0,o,l)),void 0!==d&&(t.fillStyle=Jn,t.fillRect(0,d*s+u,v,s)),void 0!==h&&(t.fillStyle=Xn,t.fillRect(h*o+c,0,o,l)),void 0!==p&&(t.fillStyle=Xn,t.fillRect(0,p*s+u,v,s)),void 0!==f&&(t.fillStyle=Xn,t.fillRect(f*o+c,0,o,l))}({ctx:t,model:n})}):void 0},[n]),e.createElement("canvas",{ref:r,id:"mouseover",width:i,height:o,style:{position:"absolute",top:0,left:0,width:i,height:o,zIndex:1e3,pointerEvents:"none"}})});const er=Zn;var tr=(0,s.PA)(function(t){var n=t.model;return e.createElement("div",{style:{position:"relative"}},e.createElement(Un,{model:n}),e.createElement(er,{model:n}))});const nr=tr;class rr{constructor(){this.ids=[],this.values=[],this.length=0}clear(){this.length=0}push(e,t){let n=this.length++;for(;n>0;){const e=n-1>>1,r=this.values[e];if(t>=r)break;this.ids[n]=this.ids[e],this.values[n]=r,n=e}this.ids[n]=e,this.values[n]=t}pop(){if(0===this.length)return;const e=this.ids,t=this.values,n=e[0],r=--this.length;if(r>0){const n=e[r],o=t[r];let i=0;const a=r>>1;for(;i<a;){const n=1+(i<<1),a=n+1,l=n+(+(a<r)&+(t[a]<t[n]));if(t[l]>=o)break;e[i]=e[l],t[i]=t[l],i=l}e[i]=n,t[i]=o}return n}peek(){return this.length>0?this.ids[0]:void 0}peekValue(){return this.length>0?this.values[0]:void 0}shrink(){this.ids.length=this.values.length=this.length}}const or=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class ir{static from(e,t=0){if(t%8!=0)throw new Error("byteOffset must be 8-byte aligned.");if(!e||void 0===e.byteLength||e.buffer)throw new Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");const[n,r]=new Uint8Array(e,t+0,2);if(251!==n)throw new Error("Data does not appear to be in a Flatbush format.");const o=r>>4;if(3!==o)throw new Error(`Got v${o} data when expected v3.`);const i=or[15&r];if(!i)throw new Error("Unrecognized array type.");const[a]=new Uint16Array(e,t+2,1),[l]=new Uint32Array(e,t+4,1);return new ir(l,a,i,void 0,e,t)}constructor(e,t=16,n=Float64Array,r=ArrayBuffer,o,i=0){if(void 0===e)throw new Error("Missing required argument: numItems.");if(isNaN(e)||e<=0)throw new Error(`Unexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.byteOffset=i;let a=e,l=a;this._levelBounds=[4*a];do{a=Math.ceil(a/this.nodeSize),l+=a,this._levelBounds.push(4*l)}while(1!==a);this.ArrayType=n,this.IndexArrayType=l<16384?Uint16Array:Uint32Array;const s=or.indexOf(n),c=4*l*n.BYTES_PER_ELEMENT;if(s<0)throw new Error(`Unexpected typed array class: ${n}.`);if(o)this.data=o,this._boxes=new n(o,i+8,4*l),this._indices=new this.IndexArrayType(o,i+8+c,l),this._pos=4*l,this.minX=this._boxes[this._pos-4],this.minY=this._boxes[this._pos-3],this.maxX=this._boxes[this._pos-2],this.maxY=this._boxes[this._pos-1];else{const o=this.data=new r(8+c+l*this.IndexArrayType.BYTES_PER_ELEMENT);this._boxes=new n(o,8,4*l),this._indices=new this.IndexArrayType(o,8+c,l),this._pos=0,this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,new Uint8Array(o,0,2).set([251,48+s]),new Uint16Array(o,2,1)[0]=t,new Uint32Array(o,4,1)[0]=e}this._queue=new rr}add(e,t,n=e,r=t){const o=this._pos>>2,i=this._boxes;return this._indices[o]=o,i[this._pos++]=e,i[this._pos++]=t,i[this._pos++]=n,i[this._pos++]=r,e<this.minX&&(this.minX=e),t<this.minY&&(this.minY=t),n>this.maxX&&(this.maxX=n),r>this.maxY&&(this.maxY=r),o}finish(){if(this._pos>>2!==this.numItems)throw new Error(`Added ${this._pos>>2} items when expected ${this.numItems}.`);const e=this._boxes;if(this.numItems<=this.nodeSize)return e[this._pos++]=this.minX,e[this._pos++]=this.minY,e[this._pos++]=this.maxX,void(e[this._pos++]=this.maxY);const t=this.maxX-this.minX||1,n=this.maxY-this.minY||1,r=new Uint32Array(this.numItems);for(let o=0,i=0;o<this.numItems;o++){const a=e[i++],l=e[i++],s=e[i++],c=e[i++],u=Math.floor(65535*((a+s)/2-this.minX)/t),d=Math.floor(65535*((l+c)/2-this.minY)/n);r[o]=cr(u,d)}lr(r,e,this._indices,0,this.numItems-1,this.nodeSize);for(let t=0,n=0;t<this._levelBounds.length-1;t++){const r=this._levelBounds[t];for(;n<r;){const t=n;let o=e[n++],i=e[n++],a=e[n++],l=e[n++];for(let t=1;t<this.nodeSize&&n<r;t++)o=Math.min(o,e[n++]),i=Math.min(i,e[n++]),a=Math.max(a,e[n++]),l=Math.max(l,e[n++]);this._indices[this._pos>>2]=t,e[this._pos++]=o,e[this._pos++]=i,e[this._pos++]=a,e[this._pos++]=l}}}search(e,t,n,r,o){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let i=this._boxes.length-4;const a=[],l=[];for(;void 0!==i;){const s=Math.min(i+4*this.nodeSize,ar(i,this._levelBounds));for(let c=i;c<s;c+=4){const s=this._boxes[c];if(n<s)continue;const u=this._boxes[c+1];if(r<u)continue;const d=this._boxes[c+2];if(e>d)continue;const f=this._boxes[c+3];if(t>f)continue;const p=0|this._indices[c>>2];i>=4*this.numItems?a.push(p):(void 0===o||o(p,s,u,d,f))&&l.push(p)}i=a.pop()}return l}neighbors(e,t,n=1/0,r=1/0,o){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let i=this._boxes.length-4;const a=this._queue,l=[],s=r*r;e:for(;void 0!==i;){const r=Math.min(i+4*this.nodeSize,ar(i,this._levelBounds));for(let n=i;n<r;n+=4){const r=0|this._indices[n>>2],l=this._boxes[n],c=this._boxes[n+1],u=this._boxes[n+2],d=this._boxes[n+3],f=e<l?l-e:e>u?e-u:0,p=t<c?c-t:t>d?t-d:0,h=f*f+p*p;h>s||(i>=4*this.numItems?a.push(r<<1,h):(void 0===o||o(r))&&a.push(1+(r<<1),h))}for(;a.length&&1&a.peek();){if(a.peekValue()>s)break e;if(l.push(a.pop()>>1),l.length===n)break e}i=a.length?a.pop()>>1:void 0}return a.clear(),l}}function ar(e,t){let n=0,r=t.length-1;for(;n<r;){const o=n+r>>1;t[o]>e?r=o:n=o+1}return t[n]}function lr(e,t,n,r,o,i){if(Math.floor(r/i)>=Math.floor(o/i))return;const a=e[r],l=e[r+o>>1],s=e[o];let c=s;const u=Math.max(a,l);s>u?c=u:u===a?c=Math.max(l,s):u===l&&(c=Math.max(a,s));let d=r-1,f=o+1;for(;;){do{d++}while(e[d]<c);do{f--}while(e[f]>c);if(d>=f)break;sr(e,t,n,d,f)}lr(e,t,n,r,f,i),lr(e,t,n,f+1,o,i)}function sr(e,t,n,r,o){const i=e[r];e[r]=e[o],e[o]=i;const a=4*r,l=4*o,s=t[a],c=t[a+1],u=t[a+2],d=t[a+3];t[a]=t[l],t[a+1]=t[l+1],t[a+2]=t[l+2],t[a+3]=t[l+3],t[l]=s,t[l+1]=c,t[l+2]=u,t[l+3]=d;const f=n[r];n[r]=n[o],n[o]=f}function cr(e,t){let n=e^t,r=65535^n,o=65535^(e|t),i=e&(65535^t),a=n|r>>1,l=n>>1^n,s=o>>1^r&i>>1^o,c=n&o>>1^i>>1^i;n=a,r=l,o=s,i=c,a=n&n>>2^r&r>>2,l=n&r>>2^r&(n^r)>>2,s^=n&o>>2^r&i>>2,c^=r&o>>2^(n^r)&i>>2,n=a,r=l,o=s,i=c,a=n&n>>4^r&r>>4,l=n&r>>4^r&(n^r)>>4,s^=n&o>>4^r&i>>4,c^=r&o>>4^(n^r)&i>>4,n=a,r=l,o=s,i=c,s^=n&o>>8^r&i>>8,c^=r&o>>8^(n^r)&i>>8,n=s^s>>1,r=c^c>>1;let u=e^t,d=r|65535^(u|n);return u=16711935&(u|u<<8),u=252645135&(u|u<<4),u=858993459&(u|u<<2),u=1431655765&(u|u<<1),d=16711935&(d|d<<8),d=252645135&(d|d<<4),d=858993459&(d|d<<2),d=1431655765&(d|d<<1),(d<<1|u)>>>0}var ur=(0,s.PA)(function(t){var n=t.node,r=t.model,o=t.onClose;return e.createElement(A.A,{anchorReference:"anchorPosition",anchorPosition:{left:n.x,top:n.y},transitionDuration:0,keepMounted:!0,open:Boolean(n),onClose:o},e.createElement(b.A,{dense:!0,disabled:!0},n.name),e.createElement(b.A,{dense:!0,onClick:function(){r.toggleCollapsed(n.id),o()}},r.collapsed.includes(n.id)?"Expand this node":"Collapse this node"),e.createElement(b.A,{dense:!0,onClick:function(){r.showOnly===n.id?r.setShowOnly(void 0):r.setShowOnly(n.id),o()}},r.showOnly===n.id?"Disable show only this node":"Show only this node"))});const dr=ur;var fr=(0,e.lazy)(function(){return Promise.resolve().then(o.bind(o,1918))}),pr=(0,s.PA)(function(t){var n=t.node,r=t.onClose,o=t.model,i=o.collapsed,a=o.collapsedLeaves,l=n.name;return e.createElement(A.A,{anchorReference:"anchorPosition",anchorPosition:{top:n.y,left:n.x},transitionDuration:0,keepMounted:!0,open:Boolean(n),onClose:r},e.createElement(b.A,{dense:!0,disabled:!0},l),e.createElement(b.A,{dense:!0,onClick:function(){o.queueDialog(function(e){return[fr,{info:o.getRowData(l),model:o,nodeName:l,onClose:e}]}),r()}},"More info..."),e.createElement(b.A,{dense:!0,onClick:function(){i.includes(n.id)?o.toggleCollapsed(n.id):n.id.endsWith("-leafnode")?o.toggleCollapsedLeaf(n.id):o.toggleCollapsedLeaf("".concat(n.id,"-leafnode")),r()}},i.includes(n.id)||a.includes(n.id)?"Show node":"Hide node"),e.createElement(b.A,{dense:!0,onClick:function(){o.drawRelativeTo(n.name),r()}},"Indicate differences from this row"),o.relativeTo?e.createElement(b.A,{dense:!0,onClick:function(){o.drawRelativeTo(void 0),r()}},"Clear reference row"):null)});const hr=pr;var gr=o(3940);function mr(e){return mr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mr(e)}function Ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function br(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ar(Object(n),!0).forEach(function(t){Sr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ar(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||yr(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yr(e,t){if(e){if("string"==typeof e)return wr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wr(e,t):void 0}}function wr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xr(r.key),r)}}function Sr(e,t,n){return(t=xr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xr(e){var t=function(e){if("object"!=mr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=mr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==mr(t)?t:t+""}var Ir=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Sr(this,"flatbush",null),Sr(this,"entries",[])},t=[{key:"clear",value:function(){this.flatbush=null,this.entries=[]}},{key:"insert",value:function(e){this.entries.push(e)}},{key:"finish",value:function(){if(0!==this.entries.length){this.flatbush=new ir(this.entries.length);var e,t=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=yr(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(a)throw o}}}}(this.entries);try{for(t.s();!(e=t.n()).done;){var n=e.value;this.flatbush.add(n.minX,n.minY,n.maxX,n.maxY)}}catch(e){t.e(e)}finally{t.f()}this.flatbush.finish()}else this.flatbush=null}},{key:"search",value:function(e){var t,n,r=this;return null!==(t=null===(n=this.flatbush)||void 0===n?void 0:n.search(e.minX,e.minY,e.maxX,e.maxY).map(function(e){return r.entries[e]}))&&void 0!==t?t:[]}}],t&&Cr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),Er=(0,s.PA)(function(t){var n=t.model,r=t.offsetY,o=(0,Tn.A)(),i=(0,e.useRef)(null),a=(0,e.useRef)(new Ir),l=(0,e.useRef)(null),s=vr((0,e.useState)(),2),c=s[0],u=s[1],d=vr((0,e.useState)(),2),f=d[0],p=d[1],h=vr((0,e.useState)(),2),g=h[0],m=h[1],A=n.scrollY,b=n.treeAreaWidth,v=n.blockSize,y=n.highResScaleFactor,w=b+gr.Ms,C=v,S=w*y,x=C*y,I=(0,e.useCallback)(function(e){n.incrementRef(),i.current=e},[n,C,w]);function E(e){var t=e.nativeEvent.offsetX,n=e.nativeEvent.offsetY,o=vr(a.current.search({minX:t,maxX:t+1,minY:n+r,maxY:n+1+r}),1)[0];return null!=o&&o.branch?br(br({},o),{},{x:e.clientX,y:e.clientY}):void 0}function k(e){var t=e.nativeEvent.offsetX,n=e.nativeEvent.offsetY,o=vr(a.current.search({minX:t,maxX:t+1,minY:n+r,maxY:n+1+r}),1)[0];return o&&!o.branch?br(br({},o),{},{x:e.clientX,y:e.clientY}):void 0}(0,e.useEffect)(function(){var e,t=null===(e=i.current)||void 0===e?void 0:e.getContext("2d");if(t)return(0,Nn.fm)(function(){t.resetTransform(),t.clearRect(0,0,(b+gr.Ms)*y,v*y),(0,gr.t0)({ctx:t,model:n,offsetY:r,clickMap:a.current,theme:o})})},[n,v,y,b,r,o]),(0,e.useEffect)(function(){var e,t=null===(e=l.current)||void 0===e?void 0:e.getContext("2d");if(t&&(t.resetTransform(),t.clearRect(0,0,b+gr.Ms,v),t.translate(0,-r),g)){var n=g.minX,o=g.maxX,i=g.minY,a=g.maxY;t.fillStyle="rgba(0,0,0,0.1)",t.fillRect(n,i,o-n,a-i)}},[g,r,v,b]);var B={width:w,height:C,top:A+r,left:0,position:"absolute"};return e.createElement(e.Fragment,null,null!=c&&c.id?e.createElement(dr,{node:c,model:n,onClose:function(){u(void 0)}}):null,null!=f&&f.id?e.createElement(hr,{node:f,model:n,onClose:function(){p(void 0)}}):null,e.createElement("canvas",{width:S,height:x,style:B,onMouseMove:function(e){if(i.current){var t=k(e),r=E(e),o=t||r;if(i.current.style.cursor=o?"pointer":"default",m(t),o){if(n.setHoveredTreeNode(o.id),null!=t&&t.name){var a=n.rowNamesSet.get(t.name);void 0!==a&&n.setMousePos(void 0,a)}}else n.setHoveredTreeNode(void 0),n.setMousePos(void 0,void 0)}},onClick:function(e){var t=e.clientX,n=e.clientY,r=E(e);null!=r&&r.id&&u({x:t,y:n,id:r.id,name:r.name});var o=k(e);null!=o&&o.id&&p(br(br({},o),{},{x:t,y:n}))},onMouseLeave:function(){m(void 0),n.setHoveredTreeNode(void 0),n.setMousePos(void 0,void 0)},ref:I}),e.createElement("canvas",{style:br(br({},B),{},{pointerEvents:"none",zIndex:100}),width:w,height:C,ref:l}))});const kr=Er;function Br(e,t){if(e){if("string"==typeof e)return Mr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mr(e,t):void 0}}function Mr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Rr=(0,s.PA)(function(t){var n,r,o=t.model,i=(0,e.useRef)(null),a=(0,e.useRef)(null),l=(0,e.useRef)(!1),s=(0,e.useRef)(0),c=(0,e.useRef)(0),u=o.treeWidth,d=o.height,f=o.blocksY,p=o.treeAreaWidth,h=o.scrollY,g=(n=(0,e.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(n,r)||Br(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=g[0],A=g[1];return(0,e.useEffect)(function(){var e=i.current;if(e)return e.addEventListener("wheel",t),function(){e.removeEventListener("wheel",t)};function t(e){s.current+=e.deltaY,l.current||(l.current=!0,requestAnimationFrame(function(){o.doScrollY(-s.current),s.current=0,l.current=!1})),e.preventDefault(),e.stopPropagation()}},[o]),(0,e.useEffect)(function(){var e=function(){};function t(e){e.preventDefault();var t=e.clientY-c.current;t&&(l.current||(l.current=!0,window.requestAnimationFrame(function(){o.doScrollY(t),l.current=!1,c.current=e.clientY})))}function n(){c.current=0,m&&A(!1)}return m&&(window.addEventListener("mousemove",t,!0),window.addEventListener("mouseup",n,!0),e=function(){window.removeEventListener("mousemove",t,!0),window.removeEventListener("mouseup",n,!0)}),e},[o,m]),(0,e.useEffect)(function(){var e,t=null===(e=a.current)||void 0===e?void 0:e.getContext("2d");return t?(0,Nn.fm)(function(){if((0,Yn._n)(o)){t.resetTransform(),t.clearRect(0,0,p,d);var e=o.relativeTo,n=o.leaves,r=o.rowHeight,i=o.hoveredTreeNode;if(e){var a=n.find(function(t){return t.data.name===e});if(a){var l=a.x+h;t.fillStyle="rgba(0,128,255,0.3)",t.fillRect(0,l-r/2,p,r)}}if(i){t.fillStyle="rgba(255,165,0,0.2)";var s,c=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=Br(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(a)throw o}}}}(i.descendantNames);try{var u=function(){var e=s.value,o=n.find(function(t){return t.data.name===e});if(o){var i=o.x+h;t.fillRect(0,i-r/2,p,r)}};for(c.s();!(s=c.n()).done;)u()}catch(e){c.e(e)}finally{c.f()}}var f=o.mouseOverRowName;if(f&&f!==e&&(null==i||!i.descendantNames.includes(f))){var g=n.find(function(e){return e.data.name===f});if(g){var m=g.x+h;t.fillStyle="rgba(255,165,0,0.2)",t.fillRect(0,m-r/2,p,r)}}}}):void 0},[o,p,d,h]),e.createElement("div",{ref:i,onMouseDown:function(e){var t=e.target;t.draggable||t.dataset.resizer||0===e.button&&(c.current=e.clientY,A(!0))},onMouseUp:function(e){e.preventDefault(),A(!1)},onMouseLeave:function(e){e.preventDefault()},style:{height:d,position:"relative",width:u+gr.Ms}},f.map(function(t){return e.createElement(kr,{key:t,model:o,offsetY:t})}),e.createElement("canvas",{ref:a,width:p,height:d,style:{position:"absolute",top:0,left:0,width:p,height:d,zIndex:1e3,pointerEvents:"none"}}))});const Pr=Rr;var _r=(0,s.PA)(function(t){var n=t.model,r=n.treeAreaWidth;return e.createElement("div",{style:{overflow:"hidden",flexShrink:0,width:r}},e.createElement(Pr,{model:n}))});const Tr=_r,Or=(0,s.PA)(function(t){var n=t.model.treeAreaWidth;return e.createElement("div",{style:{flexShrink:0,width:n}})});var Dr=(0,s.PA)(function(t){var n=t.model,r=n.showHorizontalScrollbar;return e.createElement("div",{style:{display:"flex"}},e.createElement(Or,{model:n}),r?e.createElement(ot,{model:n}):null)}),Qr=(0,s.PA)(function(t){var n=t.model,r=n.mouseCol,o=n.mouseClickCol,i=n.colWidth,a=n.scrollX,l=n.treeAreaWidth,s=n.resizeHandleWidth,c=n.totalTrackAreaHeight,u=l+s,d=n.msaAreaWidth-n.verticalScrollbarWidth;return e.createElement("div",{style:{position:"absolute",left:u,top:0,width:d,height:c,overflow:"hidden",pointerEvents:"none"}},void 0!==r?e.createElement("div",{style:{position:"absolute",left:r*i+a,top:0,width:i,height:c,backgroundColor:"rgba(0,0,0,0.15)",zIndex:100}}):null,void 0!==o?e.createElement("div",{style:{position:"absolute",left:o*i+a,top:0,width:i,height:c,backgroundColor:"rgba(128,128,0,0.2)",zIndex:100}}):null)}),Nr=(0,s.PA)(function(t){var n=t.model,r=n.turnedOnTracks;return 0===r.length?null:e.createElement("div",{style:{position:"relative"}},e.createElement(Qr,{model:n}),r.map(function(t){return e.createElement(I,{key:t.model.id,model:n,track:t})}))}),Fr=(0,s.PA)(function(t){var n=t.model,r=n.showVerticalScrollbar;return e.createElement("div",{style:{display:"flex"}},e.createElement(Tr,{model:n}),e.createElement(d,{model:n}),e.createElement(nr,{model:n}),r?e.createElement(R,{model:n}):null)}),Lr=(0,s.PA)(function(t){var n=t.model;return e.createElement("div",{style:{position:"relative"}},e.createElement(Dr,{model:n}),e.createElement(Nr,{model:n}),e.createElement(Fr,{model:n}))}),jr=(0,s.PA)(function(t){var n=t.model,r=n.height,o=n.viewInitialized,i=n.DialogComponent,a=n.DialogProps;return e.createElement("div",null,o?e.createElement(e.Fragment,null,e.createElement("div",{style:{height:r,overflow:"hidden"}},e.createElement(et,{model:n}),e.createElement(Lr,{model:n})),e.createElement(f,{model:n}),i?e.createElement(e.Suspense,{fallback:null},e.createElement(i,a)):null):null)});const zr=jr;var $r=o(851),Hr=o(9077),Gr=o(9596),Vr=o(2698),Wr=o(5914),Ur=o(5761),Yr=o(6673),Kr=o(5121),qr=o(8175);const Jr=(0,qr.A)("MuiBox",["root"]),Xr=(0,Yr.A)(),Zr=function(t={}){const{themeId:n,defaultTheme:r,defaultClassName:o="MuiBox-root",generateClassName:i}=t,a=(0,Hr.Ay)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Gr.A);return e.forwardRef(function(e,t){const l=(0,Wr.A)(r),{className:s,component:c="div",...u}=(0,Vr.A)(e);return(0,h.jsx)(a,{as:c,ref:t,className:(0,$r.A)(s,i?i(o):o),theme:n&&l[n]||l,...u})})}({themeId:Kr.A,defaultTheme:Xr,defaultClassName:Jr.root,generateClassName:Ur.A.generate}),eo=Zr;var to=o(7394),no=o(2091),ro=o(6179),oo=o(395);const io=(e,t)=>t.some(t=>e instanceof t);let ao,lo;const so=new WeakMap,co=new WeakMap,uo=new WeakMap;let fo={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return so.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return go(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function po(e){fo=e(fo)}function ho(e){return"function"==typeof e?(t=e,(lo||(lo=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(mo(this),e),go(this.request)}:function(...e){return go(t.apply(mo(this),e))}):(e instanceof IDBTransaction&&function(e){if(so.has(e))return;const t=new Promise((t,n)=>{const r=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",i),e.removeEventListener("abort",i)},o=()=>{t(),r()},i=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",o),e.addEventListener("error",i),e.addEventListener("abort",i)});so.set(e,t)}(e),io(e,ao||(ao=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,fo):e);var t}function go(e){if(e instanceof IDBRequest)return function(e){const t=new Promise((t,n)=>{const r=()=>{e.removeEventListener("success",o),e.removeEventListener("error",i)},o=()=>{t(go(e.result)),r()},i=()=>{n(e.error),r()};e.addEventListener("success",o),e.addEventListener("error",i)});return uo.set(t,e),t}(e);if(co.has(e))return co.get(e);const t=ho(e);return t!==e&&(co.set(e,t),uo.set(t,e)),t}const mo=e=>uo.get(e),Ao=["get","getKey","getAll","getAllKeys","count"],bo=["put","add","delete","clear"],vo=new Map;function yo(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(vo.get(t))return vo.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,o=bo.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!o&&!Ao.includes(n))return;const i=async function(e,...t){const i=this.transaction(e,o?"readwrite":"readonly");let a=i.store;return r&&(a=a.index(t.shift())),(await Promise.all([a[n](...t),o&&i.done]))[0]};return vo.set(t,i),i}po(e=>({...e,get:(t,n,r)=>yo(t,n)||e.get(t,n,r),has:(t,n)=>!!yo(t,n)||e.has(t,n)}));const wo=["continue","continuePrimaryKey","advance"],Co={},So=new WeakMap,xo=new WeakMap,Io={get(e,t){if(!wo.includes(t))return e[t];let n=Co[t];return n||(n=Co[t]=function(...e){So.set(this,xo.get(this)[t](...e))}),n}};async function*Eo(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;const n=new Proxy(t,Io);for(xo.set(n,t),uo.set(n,mo(t));t;)yield n,t=await(So.get(n)||t.continue()),So.delete(n)}function ko(e,t){return t===Symbol.asyncIterator&&io(e,[IDBIndex,IDBObjectStore,IDBCursor])||"iterate"===t&&io(e,[IDBIndex,IDBObjectStore])}po(e=>({...e,get:(t,n,r)=>ko(t,n)?Eo:e.get(t,n,r),has:(t,n)=>ko(t,n)||e.has(t,n)}));const Bo="handles";let Mo;function Ro(){return Mo||(Mo=function(e,t,{blocked:n,upgrade:r,blocking:o,terminated:i}={}){const a=indexedDB.open(e,t),l=go(a);return r&&a.addEventListener("upgradeneeded",e=>{r(go(a.result),e.oldVersion,e.newVersion,go(a.transaction),e)}),n&&a.addEventListener("blocked",e=>n(e.oldVersion,e.newVersion,e)),l.then(e=>{i&&e.addEventListener("close",()=>i()),o&&e.addEventListener("versionchange",e=>o(e.oldVersion,e.newVersion,e))}).catch(()=>{}),l}("jbrowse-file-handles",1,{upgrade(e){e.objectStoreNames.contains(Bo)||e.createObjectStore(Bo)}})),Mo}let Po=0;new WeakMap;let _o={};function To(e){return _o[e]}let Oo=0,Do={};function Qo(e){return Do[e]}var No=o(5205);const Fo=(0,ee.n)()(e=>({filename:{marginLeft:e.spacing(1)}})),Lo="undefined"!=typeof window&&"showOpenFilePicker"in window&&!E.b8R;function jo(e){return!(!e||((0,No.rF)(e)?To(e.blobId):!(0,No.Qm)(e)||Qo(e.handleId)))}async function zo(){const[e]=await window.showOpenFilePicker();return async function(e){const t=await async function(e){const t=`fh${Date.now()}-${Po++}`,n=await Ro();return await n.put(Bo,{handle:e,name:e.name,createdAt:Date.now()},t),t}(e),n=await e.getFile();return Do[t]=n,{locationType:"FileHandleLocation",name:e.name,handleId:t}}(e)}function $o({setLocation:e}){return Lo?(0,h.jsx)(l.A,{variant:"outlined",onClick:async()=>{try{e(await zo())}catch(e){if("AbortError"!==e.name)throw e}},children:"Choose File"}):(0,h.jsxs)(l.A,{variant:"outlined",component:"label",children:["Choose File",(0,h.jsx)("input",{type:"file",hidden:!0,onChange:({target:t})=>{const n=t.files?.[0];if(n)if(E.b8R){const{webUtils:t}=window.require("electron");e({localPath:t.getPathForFile(n),locationType:"LocalPathLocation"})}else{const t=function(e){if("blob"in e){const t=`b${Date.now()}-${Oo++}`;return _o[t]=e.blob,{name:e.blob.name,blobId:t,locationType:"BlobLocation"}}return e}({blob:n});"blobId"in t&&e(t)}}})]})}function Ho({location:e,setLocation:t}){return(0,h.jsxs)(eo,{display:"flex",alignItems:"center",gap:1,children:[(0,h.jsx)(a.A,{color:"error",children:"(need to reload)"}),(0,No.Qm)(e)&&(0,h.jsx)(l.A,{size:"small",variant:"text",color:"primary",onClick:async()=>{if((0,No.Qm)(e))try{await async function(e,t=!0){const n=Do[e];if(n)return n;const r=await async function(e){const t=await Ro(),n=await t.get(Bo,e);return n?.handle}(e);if(!r)throw new Error(`File handle not found for handleId: ${e}. The file may have been opened in a different browser or the IndexedDB was cleared.`);if(!await async function(e,t=!1){const n={mode:"read"};return"granted"===await e.queryPermission(n)||!(!t||"granted"!==await e.requestPermission(n))}(r,t))throw new Error(`Permission denied for file "${r.name}". Click "Restore access" to grant permission.`);const o=await r.getFile();return Do[e]=o,o}(e.handleId,!0),t({...e})}catch{try{t(await zo())}catch(e){if("AbortError"!==e.name)throw e}}},children:"Reopen"})]})}const Go=function({location:e,setLocation:t}){const{classes:n}=Fo(),r=function(e){if(e)return(0,No.rF)(e)?e.name:(0,No.EV)(e)?e.localPath:(0,No.Qm)(e)?e.name:void 0}(e);return(0,h.jsxs)(eo,{display:"flex",flexDirection:"row",alignItems:"center",children:[(0,h.jsx)(eo,{children:(0,h.jsx)(oo.A,{fullWidth:!0,children:(0,h.jsx)($o,{setLocation:t})})}),(0,h.jsxs)(eo,{children:[(0,h.jsx)(a.A,{component:"span",className:n.filename,color:r?"initial":"textSecondary",children:r||"No file chosen"}),e&&jo(e)&&(0,h.jsx)(Ho,{location:e,setLocation:t})]})]})},Vo=(0,s.PA)(function({location:e,label:t,style:n,setLocation:r}){return(0,h.jsx)(Re.A,{variant:"outlined",fullWidth:!0,defaultValue:e&&(0,No.C1)(e)?e.uri:"",label:t||"Enter URL",style:n,onChange:e=>{r({uri:e.target.value.trim(),locationType:"UriLocation"})},slotProps:{htmlInput:{"data-testid":"urlInput"}}})});function Wo({toggleButtonValue:e,selectedAccount:t,location:n,inline:r,setLocation:o}){return t?.SelectorComponent?(0,h.jsx)(t.SelectorComponent,{setLocation:o,selectedAccount:t}):"url"===e?(0,h.jsx)(Vo,{location:n,setLocation:o,label:t?.selectorLabel,style:r?{margin:0}:void 0}):"file"===e?(0,h.jsx)(Go,{location:n,setLocation:o}):null}var Uo=o(4876),Yo=o(4921),Ko=o(2189),qo=o(361),Jo=o(7934),Xo=o(8212),Zo=o(9025),ei=o(4819);function ti(e){return(0,ei.Ay)("MuiToggleButtonGroup",e)}const ni=(0,qr.A)("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]);var ri=o(9339),oi=o(3991),ii=o(4126);const ai=(0,qo.Ay)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ni.grouped}`]:t.grouped},{[`& .${ni.grouped}`]:t[`grouped${(0,Zo.A)(n.orientation)}`]},{[`& .${ni.firstButton}`]:t.firstButton},{[`& .${ni.lastButton}`]:t.lastButton},{[`& .${ni.middleButton}`]:t.middleButton},t.root,"vertical"===n.orientation&&t.vertical,n.fullWidth&&t.fullWidth]}})((0,Jo.A)(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${ni.grouped}`]:{[`&.${ni.selected} + .${ni.grouped}.${ni.selected}`]:{borderTop:0,marginTop:0}},[`& .${ni.firstButton},& .${ni.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${ni.lastButton},& .${ni.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${ni.lastButton}.${ii.A.disabled},& .${ni.middleButton}.${ii.A.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${ni.grouped}`]:{[`&.${ni.selected} + .${ni.grouped}.${ni.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${ni.firstButton},& .${ni.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${ni.lastButton},& .${ni.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${ni.lastButton}.${ii.A.disabled},& .${ni.middleButton}.${ii.A.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),li=e.forwardRef(function(t,n){const r=(0,Xo.b)({props:t,name:"MuiToggleButtonGroup"}),{children:o,className:i,color:a="standard",disabled:l=!1,exclusive:s=!1,fullWidth:c=!1,onChange:u,orientation:d="horizontal",size:f="medium",value:p,...g}=r,m={...r,disabled:l,fullWidth:c,orientation:d,size:f},A=(e=>{const{classes:t,orientation:n,fullWidth:r,disabled:o}=e,i={root:["root",n,r&&"fullWidth"],grouped:["grouped",`grouped${(0,Zo.A)(n)}`,o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,Ko.A)(i,ti,t)})(m),b=e.useCallback((e,t)=>{if(!u)return;const n=p&&p.indexOf(t);let r;p&&n>=0?(r=p.slice(),r.splice(n,1)):r=p?p.concat(t):[t],u(e,r)},[u,p]),v=e.useCallback((e,t)=>{u&&u(e,p===t?null:t)},[u,p]),y=e.useMemo(()=>({className:A.grouped,onChange:s?v:b,value:p,size:f,fullWidth:c,color:a,disabled:l}),[A.grouped,s,v,b,p,f,c,a,l]),w=function(t){return e.Children.toArray(t).filter(t=>e.isValidElement(t))}(o),C=w.length,S=e=>{const t=0===e,n=e===C-1;return t&&n?"":t?A.firstButton:n?A.lastButton:A.middleButton};return(0,h.jsx)(ai,{role:"group",className:(0,$r.A)(A.root,i),ref:n,ownerState:m,...g,children:(0,h.jsx)(ri.A.Provider,{value:y,children:w.map((e,t)=>(0,h.jsx)(oi.A.Provider,{value:S(t),children:e},t))})})}),si=li;function ci(e){return e.length>5?`${e.slice(0,5)}…`:e}function ui(e){const{toggleContents:t,name:n}=e;return t?"string"==typeof t?ci(t):t:ci(n)}function di({account:e}){return(0,h.jsx)(Uo.A,{title:e.name,children:(0,h.jsx)(Yo.A,{value:e.internetAccountId,children:ui(e)})})}function fi({onClick:e,disabled:t,children:n}){return(0,h.jsx)(Yo.A,{value:"more",selected:!1,disabled:t,onClick:t=>{e(t)},children:n})}function pi({value:e,shownAccountIds:t,hiddenAccountIds:n,accountMap:r,onChange:o,onHiddenAccountSelect:i}){const a=t.map(e=>r[e]),l=n.map(e=>r[e]);return(0,h.jsxs)(si,{value:e,exclusive:!0,size:"small",onChange:o,"aria-label":"file, url, or account picker",children:[!("undefined"!=typeof window&&null!==new URLSearchParams(window.location.search).get("adminKey"))&&(0,h.jsx)(Yo.A,{value:"file","aria-label":"local file",children:"File"}),(0,h.jsx)(Yo.A,{value:"url","aria-label":"url",children:"URL"}),a.map(e=>(0,h.jsx)(di,{account:e},e.internetAccountId)),l.length>0&&(0,h.jsxs)(le,{menuItems:l.map(e=>({label:e.name,onClick:()=>{i(e.internetAccountId)}})),ButtonComponent:fi,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:["More",(0,h.jsx)(g,{})]})]})}const hi=(0,s.PA)(function({inline:t,location:n,name:r,description:o,rootModel:i,setLocation:a}){const[l,s]=(0,e.useState)(()=>function(e){return e&&"internetAccountId"in e&&e.internetAccountId?e.internetAccountId:!e||(0,No.C1)(e)?"url":"file"}(n)),{accountMap:c,shownAccountIds:u,hiddenAccountIds:d,recentlyUsed:f,setRecentlyUsed:p}=function(e){const[t,n]=(0,E.Mjh)("fileSelector-recentlyUsedInternetAccounts",[]),r=(0,No.bV)(e)?e.internetAccounts.filter(e=>"HTTPBasicInternetAccount"!==e.type):[],o=Object.fromEntries(r.map(e=>[e.internetAccountId,e])),i=[...new Set(r.map(e=>e.internetAccountId))].sort((e,n)=>t.indexOf(e)-t.indexOf(n));return{accountMap:o,shownAccountIds:i.slice(0,2),hiddenAccountIds:i.slice(2),recentlyUsed:t,setRecentlyUsed:n}}(i),g=c[l],m=(0,e.useCallback)(e=>{a(function(e,t){return t&&(0,No.C1)(e)?{...e,internetAccountId:t.internetAccountId}:e}(e,g))},[a,g]);(0,e.useEffect)(()=>{g&&(0,No.C1)(n)&&n.internetAccountId!==g.internetAccountId&&m(n)},[n,g,m]);const A=(0,e.useCallback)(e=>{e&&(p([...new Set([e,...f].filter(E.z2o))]),s(e),(0,No.C1)(n)&&m(n))},[n,f,p,m]);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(eo,{display:"flex",children:(0,h.jsx)(to.A,{shrink:!0,children:r})}),(0,h.jsx)(no.A,{children:(0,h.jsxs)(eo,{display:"flex",flexDirection:t?"row":"column",gap:.5,children:[(0,h.jsx)(pi,{value:l,shownAccountIds:u,hiddenAccountIds:d,accountMap:c,onChange:(e,t)=>{A(t)},onHiddenAccountSelect:A}),(0,h.jsx)(Wo,{toggleButtonValue:l,selectedAccount:g,location:n,inline:t,setLocation:m})]})}),(0,h.jsx)(ro.A,{children:o})]})});var gi=o(7449),mi=o(1591),Ai=o(7112);const bi=(0,o(1307).A)(),vi=(0,Ai.A)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${(0,gi.A)(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),yi=e=>function({props:e,name:t,defaultTheme:n,themeId:r}){let o=(0,Wr.A)(n);return r&&(o=o[r]||o),(0,mi.A)({theme:o,name:t,props:e})}({props:e,name:"MuiContainer",defaultTheme:bi}),wi=function(t={}){const{createStyledComponent:n=vi,useThemeProps:r=yi,componentName:o="MuiContainer"}=t,i=n(({theme:e,ownerState:t})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}}),({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce((t,n)=>{const r=n,o=e.breakpoints.values[r];return 0!==o&&(t[e.breakpoints.up(r)]={maxWidth:`${o}${e.breakpoints.unit}`}),t},{}),({theme:e,ownerState:t})=>({..."xs"===t.maxWidth&&{[e.breakpoints.up("xs")]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},...t.maxWidth&&"xs"!==t.maxWidth&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}}})),a=e.forwardRef(function(e,t){const n=r(e),{className:a,component:l="div",disableGutters:s=!1,fixed:c=!1,maxWidth:u="lg",classes:d,...f}=n,p={...n,component:l,disableGutters:s,fixed:c,maxWidth:u},g=((e,t)=>{const{classes:n,fixed:r,disableGutters:o,maxWidth:i}=e,a={root:["root",i&&`maxWidth${(0,gi.A)(String(i))}`,r&&"fixed",o&&"disableGutters"]};return(0,Ko.A)(a,e=>(0,ei.Ay)(t,e),n)})(p,o);return(0,h.jsx)(i,{as:l,ownerState:p,className:(0,$r.A)(g.root,a),ref:t,...f})});return a}({createStyledComponent:(0,qo.Ay)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${(0,Zo.A)(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>(0,Xo.b)({props:e,name:"MuiContainer"})});var Ci=o(3838);function Si(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return xi(c,"_invoke",function(n,r,o){var i,l,s,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,s=e,f.n=n,a}};function p(n,r){for(l=n,s=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];n>3?(o=h===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,f.v=r,f.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,s=h;(t=l<2?e:s)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,s)):f.n=s:f.v=s);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==a)break}catch(t){i=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(xi(t={},r,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,xi(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,xi(d,"constructor",c),xi(c,"constructor",s),s.displayName="GeneratorFunction",xi(c,o,"GeneratorFunction"),xi(d),xi(d,o,"Generator"),xi(d,r,function(){return this}),xi(d,"toString",function(){return"[object Generator]"}),(Si=function(){return{w:i,m:f}})()}function xi(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}xi=function(e,t,n,r){function i(t,n){xi(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},xi(e,t,n,r)}function Ii(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Ei(e,t,n,r){return ki.apply(this,arguments)}function ki(){var e;return e=Si().m(function e(t,n,r,o){return Si().w(function(e){for(;;)switch(e.n){case 0:t.setError(void 0),n&&t.setMSAFilehandle(n),r&&t.setTreeFilehandle(r),o&&t.setGFFFilehandle(o);case 1:return e.a(2)}},e)}),ki=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Ii(i,r,o,a,l,"next",e)}function l(e){Ii(i,r,o,a,l,"throw",e)}a(void 0)})},ki.apply(this,arguments)}function Bi(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return Mi(c,"_invoke",function(n,r,o){var i,l,s,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,s=e,f.n=n,a}};function p(n,r){for(l=n,s=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];n>3?(o=h===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,f.v=r,f.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,s=h;(t=l<2?e:s)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,s)):f.n=s:f.v=s);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==a)break}catch(t){i=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Mi(t={},r,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Mi(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Mi(d,"constructor",c),Mi(c,"constructor",s),s.displayName="GeneratorFunction",Mi(c,o,"GeneratorFunction"),Mi(d),Mi(d,o,"Generator"),Mi(d,r,function(){return this}),Mi(d,"toString",function(){return"[object Generator]"}),(Bi=function(){return{w:i,m:f}})()}function Mi(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Mi=function(e,t,n,r){function i(t,n){Mi(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Mi(e,t,n,r)}function Ri(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Pi(t){var n=t.onClick,r=t.model,o=t.children;return e.createElement("li",null,e.createElement(Ci.A,{onClick:function(e){r.setError(void 0),e.preventDefault(),n()},href:"#"},e.createElement(a.A,{display:"inline"},o)))}var _i=(0,s.PA)(function(t){var n=t.model;function r(e,t){var r;(r=Bi().m(function r(){var o;return Bi().w(function(r){for(;;)switch(r.p=r.n){case 0:return r.p=0,r.n=1,Ei(n,e?{uri:e,locationType:"UriLocation"}:void 0,t?{uri:t,locationType:"UriLocation"}:void 0);case 1:r.n=3;break;case 2:r.p=2,o=r.v,console.error(o),n.setError(o);case 3:return r.a(2)}},r,null,[[0,2]])}),function(){var e=this,t=arguments;return new Promise(function(n,o){var i=r.apply(e,t);function a(e){Ri(i,n,o,a,l,"next",e)}function l(e){Ri(i,n,o,a,l,"throw",e)}a(void 0)})})()}return e.createElement("ul",null,e.createElement(Pi,{model:n,onClick:function(){r(void 0,"https://jbrowse.org/genomes/newicktrees/sarscov2phylo.pub.ft.nh")}},"230k COVID-19 samples (tree only)"),e.createElement(Pi,{model:n,onClick:function(){n.setData({msa:"CLUSTAL O(1.2.3) multiple sequence alignment\nUniProt/Swiss-Prot|P26898|IL2RA_SHEEP MEPSLLMWRFFVFIVVPGCVTEACHDDPPSLRNA----------MFKVLRYE----VGTM\nUniProt/Swiss-Prot|P01590|IL2RA_MOUSE MEPRLLMLGFLSLTIVPSCRAELCLYDPPEVPNA----------TFKALSYK----NGTI\nUniProt/Swiss-Prot|P41690|IL2RA_FELCA MEPSLLLWGILTFVVVHGHVTELCDENPPDIQHA----------TFKALTYK----TGTM\nUniProt/Swiss-Prot|P01589|IL2RA_HUMAN MDSYLLMWGLLTFIMVPGCQAELCDDDPPEIPHA----------TFKAMAYK----EGTM\nUniProt/Swiss-Prot|Q5MNY4|IL2RA_MACMU MDPYLLMWGLLTFITVPGCQAELCDDDPPKITHA----------TFKAVAYK----EGTM\nUniProt/Swiss-Prot|Q95118|IL2RG_BOVIN -----------------------------------LLMWGLLT-----------------\nUniProt/Swiss-Prot|P40321|IL2RG_CANFA MLKPPLPLRSLLFLQLSLLGVGLNSTVPMPNGNEDIT------PDFFLTATPSETLSVSS\nUniProt/Swiss-Prot|P26896|IL2RB_RAT MATVDLSWRLPLYILLLLLATT--------------------------------WVSAAV\nUniProt/Swiss-Prot|Q8BZM1|GLMN_MOUSE PLPLRSLLFLQLPLLGVGLNP------------------PLPLRSLLFLQLPLLGVGLNP\nUniProt/Swiss-Prot|P36835|IL2_CAPHI -----------LLGVGLNPKFLTP------------------------------------\nUniProt/Swiss-Prot|Q7JFM4|IL2_AOTVO MLKPPLPLRSLLFLQLPLLGVGLNPKFLTPSGNEDIGGKPGTGGDFFLTSTPAGTLDVST\nUniProt/Swiss-Prot|Q29416|IL2_CANFA --------------LFLQLSLLG-------------------------------------\n",tree:"(((UniProt/Swiss-Prot|P26898|IL2RA_SHEEP:0.24036,(UniProt/Swiss-Prot|P41690|IL2RA_FELCA:0.17737,(UniProt/Swiss-Prot|P01589|IL2RA_HUMAN:0.03906,UniProt/Swiss-Prot|Q5MNY4|IL2RA_MACMU:0.03787):0.13033):0.04964):0.02189,UniProt/Swiss-Prot|P01590|IL2RA_MOUSE:0.23072):0.06814,(((UniProt/Swiss-Prot|Q95118|IL2RG_BOVIN:0.09600,UniProt/Swiss-Prot|P40321|IL2RG_CANFA:0.09845):0.25333,UniProt/Swiss-Prot|Q29416|IL2_CANFA:-0.35055):0.10231,(UniProt/Swiss-Prot|P26896|IL2RB_RAT:0.33631,UniProt/Swiss-Prot|Q7JFM4|IL2_AOTVO:-0.33631):0.10166):0.01607,(UniProt/Swiss-Prot|Q8BZM1|GLMN_MOUSE:0.32378,UniProt/Swiss-Prot|P36835|IL2_CAPHI:-0.32378):0.09999)"})}},"Small protein MSA+tree"),e.createElement(Pi,{model:n,onClick:function(){n.setData({msa:"CLUSTAL O(1.2.4) multiple sequence alignment\n\n\nsp|P69905|HBA_HUMAN MVLSPADKTNVKAAWGKVGAHAGEYGAEALERMFLSFPTTKTYFPHFDLSHGSAQVKGHG\t60\nsp|P01942|HBA_MOUSE MVLSGEDKSNIKAAWGKIGGHGAEYGAEALERMFASFPTTKTYFPHFDVSHGSAQVKGHG\t60\nsp|P13786|HBAZ_CAPHI MSLTRTERTIILSLWSKISTQADVIGTETLERLFSCYPQAKTYFPHFDLHSGSAQLRAHG\t60\n * *: ::: : : *.*:. :. *:*:***:* .:* :********: ****::.**\n\nsp|P69905|HBA_HUMAN KKVADALTNAVAHVDDMPNALSALSDLHAHKLRVDPVNFKLLSHCLLVTLAAHLPAEFTP\t120\nsp|P01942|HBA_MOUSE KKVADALASAAGHLDDLPGALSALSDLHAHKLRVDPVNFKLLSHCLLVTLASHHPADFTP\t120\nsp|P13786|HBAZ_CAPHI SKVVAAVGDAVKSIDNVTSALSKLSELHAYVLRVDPVNFKFLSHCLLVTLASHFPADFTA\t120\n .**. *: .*. :*:: .*** **:***: *********:**********:* **:**\n\nsp|P69905|HBA_HUMAN AVHASLDKFLASVSTVLTSKYR\t142\nsp|P01942|HBA_MOUSE AVHASLDKFLASVSTVLTSKYR\t142\nsp|P13786|HBAZ_CAPHI DAHAAWDKFLSIVSGVLTEKYR\t142\n .**: ****: ** ***.***"})}},"Small MSA only"),e.createElement(Pi,{model:n,onClick:function(){r("https://jbrowse.org/genomes/multiple_sequence_alignments/pfam-cov2.stock")}},"PFAM SARS-CoV2 multi-stockholm"),e.createElement(Pi,{model:n,onClick:function(){r("https://jbrowse.org/genomes/multiple_sequence_alignments/Lysine.stock")}},"Lysine stockholm file"),e.createElement(Pi,{model:n,onClick:function(){r("https://jbrowse.org/genomes/multiple_sequence_alignments/PF01601_full.txt")}},"PF01601 stockholm file (SARS-CoV2 spike protein)"),e.createElement(Pi,{model:n,onClick:function(){r("https://jbrowse.org/genomes/multiple_sequence_alignments/europe_covid.fa")}},"Europe COVID full genomes (LR883044.1 and 199 other sequences)"),e.createElement(Pi,{model:n,onClick:function(){r("https://jbrowse.org/genomes/multiple_sequence_alignments/rhv_test-only.aligned_with_mafft_auto.fa","https://jbrowse.org/genomes/multiple_sequence_alignments/rhv_test-only.aligned_with_mafft_auto.nh")}},"MAFFT+VeryFastTree(17.9k samples)"),e.createElement(Pi,{model:n,onClick:function(){r("https://jbrowse.org/demos/ttc39a.mfa")}},"Human BLAST results mfa"))});const Ti=_i;function Oi(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return Di(c,"_invoke",function(n,r,o){var i,l,s,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,s=e,f.n=n,a}};function p(n,r){for(l=n,s=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];n>3?(o=h===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,f.v=r,f.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,s=h;(t=l<2?e:s)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,s)):f.n=s:f.v=s);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==a)break}catch(t){i=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Di(t={},r,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Di(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Di(d,"constructor",c),Di(c,"constructor",s),s.displayName="GeneratorFunction",Di(c,o,"GeneratorFunction"),Di(d),Di(d,o,"Generator"),Di(d,r,function(){return this}),Di(d,"toString",function(){return"[object Generator]"}),(Oi=function(){return{w:i,m:f}})()}function Di(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Di=function(e,t,n,r){function i(t,n){Di(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Di(e,t,n,r)}function Qi(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Ni(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Fi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fi(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Li=(0,s.PA)(function(t){var r=t.model,o=Ni((0,e.useState)(),2),i=o[0],s=o[1],c=Ni((0,e.useState)(),2),u=c[0],d=c[1],f=Ni((0,e.useState)(),2),p=f[0],h=f[1],g=r.error;return e.createElement(wi,null,e.createElement("div",{style:{width:"50%"}},g?e.createElement(n.A,{error:g}):null,e.createElement(a.A,null,"Open an MSA file (stockholm or clustal format) and/or a tree file (newick format)."),e.createElement(a.A,{color:"error"},"Note: you can open up just an MSA or just a tree, both are not required. Some MSA files e.g. stockholm format have an embedded tree also and this is fine, and opening a separate tree file is not required.")),e.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",gap:40}},e.createElement("div",null,e.createElement("div",null,e.createElement(a.A,null,"MSA file or URL"),e.createElement(hi,{location:i,setLocation:s})),e.createElement("div",null,e.createElement(a.A,null,"Tree file or URL"),e.createElement(hi,{location:u,setLocation:d})),e.createElement("div",null,e.createElement(a.A,null,"InterProScan GFF file or URL (optional)"),e.createElement(hi,{location:p,setLocation:h}))),e.createElement("div",null,e.createElement(l.A,{onClick:function(){var e;(e=Oi().m(function e(){var t;return Oi().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Ei(r,i,u,p);case 1:e.n=3;break;case 2:e.p=2,t=e.v,console.error(t),r.setError(t);case 3:return e.a(2)}},e,null,[[0,2]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Qi(i,r,o,a,l,"next",e)}function l(e){Qi(i,r,o,a,l,"throw",e)}a(void 0)})})()},variant:"contained",color:"primary",disabled:!i&&!u},"Open")),e.createElement("div",null,e.createElement(a.A,null,"Examples"),e.createElement(Ti,{model:r}))))});const ji=Li;function zi(){return e.createElement("div",{style:{display:"flex",alignItems:"center",gap:12,padding:20}},e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e.createElement("style",null,"@keyframes spinner { to { transform: rotate(360deg); } }"),e.createElement("circle",{cx:"12",cy:"12",r:"10",stroke:"#ccc",strokeWidth:"3",fill:"none"}),e.createElement("path",{d:"M12 2a10 10 0 0 1 10 10",stroke:"#1976d2",strokeWidth:"3",fill:"none",strokeLinecap:"round",style:{animation:"spinner 1s linear infinite",transformOrigin:"center"}})),e.createElement(a.A,{variant:"h6"},"Loading..."))}var $i=(0,s.PA)(function(t){var r=t.model,o=t.error;return e.createElement("div",null,e.createElement(n.A,{error:o}),e.createElement(l.A,{variant:"contained",color:"primary",onClick:function(){r.reset()}},"Return to import form"))}),Hi=(0,s.PA)(function(t){var n=t.model,o=n.isLoading,i=n.dataInitialized,a=n.msaFilehandle,l=n.treeFilehandle,s=!(!a&&!l);return e.createElement("div",null,e.createElement(r.t,{FallbackComponent:function(t){return e.createElement($i,{model:n,error:t.error})}},i?o?e.createElement(zi,null):e.createElement(zr,{model:n}):s||o?e.createElement(zi,null):e.createElement(ji,{model:n})))});const Gi=Hi;var Vi=o(8361);class Wi{readFile(){throw new Error("unimplemented")}read(){throw new Error("unimplemented")}close(){throw new Error("unimplemented")}}class Ui{constructor(e){this.blob=e}async read(e,t=0){if(!e)return new Uint8Array(0);const n=t,r=n+e,o=this.blob.slice(n,r);return o.bytes?o.bytes():new Uint8Array(await o.arrayBuffer())}async readFile(e){const t="string"==typeof e?e:e?.encoding;if("utf8"===t)return this.blob.text();if(t)throw new Error(`unsupported encoding: ${t}`);return this.blob.bytes?this.blob.bytes():new Uint8Array(await this.blob.arrayBuffer())}async stat(){return{size:this.blob.size}}async close(){}}var Yi,Ki,qi,Ji,Xi,Zi,ea,ta,na,ra,oa,ia,aa,la,sa,ca=function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},ua=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class da extends Map{constructor(e={}){if(super(),Yi.add(this),Ki.set(this,0),qi.set(this,new Map),Ji.set(this,new Map),Xi.set(this,void 0),Zi.set(this,void 0),ea.set(this,void 0),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if("number"==typeof e.maxAge&&0===e.maxAge)throw new TypeError("`maxAge` must be a number greater than 0");ca(this,Xi,e.maxSize,"f"),ca(this,Zi,e.maxAge||Number.POSITIVE_INFINITY,"f"),ca(this,ea,e.onEviction,"f")}get __oldCache(){return ua(this,Ji,"f")}get(e){if(ua(this,qi,"f").has(e)){const t=ua(this,qi,"f").get(e);return ua(this,Yi,"m",oa).call(this,e,t)}if(ua(this,Ji,"f").has(e)){const t=ua(this,Ji,"f").get(e);if(!ua(this,Yi,"m",na).call(this,e,t))return ua(this,Yi,"m",la).call(this,e,t),t.value}}set(e,t,{maxAge:n=ua(this,Zi,"f")}={}){const r="number"==typeof n&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;return ua(this,qi,"f").has(e)?ua(this,qi,"f").set(e,{value:t,expiry:r}):ua(this,Yi,"m",aa).call(this,e,{value:t,expiry:r}),this}has(e){return ua(this,qi,"f").has(e)?!ua(this,Yi,"m",na).call(this,e,ua(this,qi,"f").get(e)):!!ua(this,Ji,"f").has(e)&&!ua(this,Yi,"m",na).call(this,e,ua(this,Ji,"f").get(e))}peek(e){return ua(this,qi,"f").has(e)?ua(this,Yi,"m",ia).call(this,e,ua(this,qi,"f")):ua(this,Ji,"f").has(e)?ua(this,Yi,"m",ia).call(this,e,ua(this,Ji,"f")):void 0}expiresIn(e){const t=ua(this,qi,"f").get(e)??ua(this,Ji,"f").get(e);if(t)return t.expiry?t.expiry-Date.now():Number.POSITIVE_INFINITY}delete(e){var t;const n=ua(this,qi,"f").delete(e);return n&&ca(this,Ki,(t=ua(this,Ki,"f"),--t),"f"),ua(this,Ji,"f").delete(e)||n}clear(){ua(this,qi,"f").clear(),ua(this,Ji,"f").clear(),ca(this,Ki,0,"f")}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");const t=[...ua(this,Yi,"m",sa).call(this)],n=t.length-e;n<0?(ca(this,qi,new Map(t),"f"),ca(this,Ji,new Map,"f"),ca(this,Ki,t.length,"f")):(n>0&&ua(this,Yi,"m",ta).call(this,t.slice(0,n)),ca(this,Ji,new Map(t.slice(n)),"f"),ca(this,qi,new Map,"f"),ca(this,Ki,0,"f")),ca(this,Xi,e,"f")}evict(e=1){const t=e;if(!t||t<=0)return;const n=[...ua(this,Yi,"m",sa).call(this)],r=Math.trunc(Math.min(t,Math.max(n.length-1,0)));r<=0||(ua(this,Yi,"m",ta).call(this,n.slice(0,r)),ca(this,Ji,new Map(n.slice(r)),"f"),ca(this,qi,new Map,"f"),ca(this,Ki,0,"f"))}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[(Ki=new WeakMap,qi=new WeakMap,Ji=new WeakMap,Xi=new WeakMap,Zi=new WeakMap,ea=new WeakMap,Yi=new WeakSet,ta=function(e){if("function"==typeof ua(this,ea,"f"))for(const[t,n]of e)ua(this,ea,"f").call(this,t,n.value)},na=function(e,t){return"number"==typeof t.expiry&&t.expiry<=Date.now()&&("function"==typeof ua(this,ea,"f")&&ua(this,ea,"f").call(this,e,t.value),this.delete(e))},ra=function(e,t){if(!ua(this,Yi,"m",na).call(this,e,t))return t.value},oa=function(e,t){return t.expiry?ua(this,Yi,"m",ra).call(this,e,t):t.value},ia=function(e,t){const n=t.get(e);return ua(this,Yi,"m",oa).call(this,e,n)},aa=function(e,t){var n;ua(this,qi,"f").set(e,t),ca(this,Ki,(n=ua(this,Ki,"f"),++n),"f"),ua(this,Ki,"f")>=ua(this,Xi,"f")&&(ca(this,Ki,0,"f"),ua(this,Yi,"m",ta).call(this,ua(this,Ji,"f")),ca(this,Ji,ua(this,qi,"f"),"f"),ca(this,qi,new Map,"f"))},la=function(e,t){ua(this,Ji,"f").delete(e),ua(this,Yi,"m",aa).call(this,e,t)},sa=function*(){for(const e of ua(this,Ji,"f")){const[t,n]=e;ua(this,qi,"f").has(t)||ua(this,Yi,"m",na).call(this,t,n)||(yield e)}for(const e of ua(this,qi,"f")){const[t,n]=e;ua(this,Yi,"m",na).call(this,t,n)||(yield e)}},Symbol.iterator)](){for(const e of ua(this,qi,"f")){const[t,n]=e;ua(this,Yi,"m",na).call(this,t,n)||(yield[t,n.value])}for(const e of ua(this,Ji,"f")){const[t,n]=e;ua(this,qi,"f").has(t)||ua(this,Yi,"m",na).call(this,t,n)||(yield[t,n.value])}}*entriesDescending(){let e=[...ua(this,qi,"f")];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;ua(this,Yi,"m",na).call(this,r,o)||(yield[r,o.value])}e=[...ua(this,Ji,"f")];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;ua(this,qi,"f").has(r)||ua(this,Yi,"m",na).call(this,r,o)||(yield[r,o.value])}}*entriesAscending(){for(const[e,t]of ua(this,Yi,"m",sa).call(this))yield[e,t.value]}get size(){if(!ua(this,Ki,"f"))return ua(this,Ji,"f").size;let e=0;for(const t of ua(this,Ji,"f").keys())ua(this,qi,"f").has(t)||e++;return Math.min(ua(this,Ki,"f")+e,ua(this,Xi,"f"))}get maxSize(){return ua(this,Xi,"f")}get maxAge(){return ua(this,Zi,"f")}entries(){return this.entriesAscending()}forEach(e,t=this){for(const[n,r]of this.entriesAscending())e.call(t,r,n,this)}get[Symbol.toStringTag](){return"QuickLRU"}toString(){return`QuickLRU(${this.size}/${this.maxSize})`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}class fa{constructor({fetch:e,frequency:t=100,maxExtraSize:n=32e3,maxFetchSize:r=1e6}){this.requestQueues={},this.fetchCallback=e,this.frequency=t,this.maxExtraSize=n,this.maxFetchSize=r}_canAggregate(e,t){return t.start<=e.end+this.maxExtraSize&&t.end-t.start+e.end-e.start<this.maxFetchSize}_allSignalsFired(e){return new Promise(t=>{let n=e.filter(e=>!e.aborted).length;0!==n?e.forEach(e=>{e.addEventListener("abort",()=>{n-=1,n||t()})}):t()})}_dispatch({url:e,start:t,end:n,requests:r}){const o=new AbortController,i=[];r.forEach(({requestOptions:e})=>{e.signal&&i.push(e.signal)}),i.length===r.length&&this._allSignalsFired(i).then(()=>{o.abort()}),this.fetchCallback(e,t,n-1,{signal:o.signal}).then(e=>{const n=e.buffer;r.forEach(({start:r,end:o,resolve:i})=>{i({headers:e.headers,buffer:n.subarray(r-t,o-t)})})}).catch(e=>{r.forEach(({reject:t})=>{t(e)})})}_aggregateAndDispatch(){Object.entries(this.requestQueues).forEach(([e,t])=>{if(!t.length)return;const n=[];if(t.forEach(e=>{const{requestOptions:t,reject:r}=e;t.signal?.aborted?r(Object.assign(new Error("aborted"),{code:"ERR_ABORTED"})):n.push(e)}),n.sort((e,t)=>e.start-t.start),t.length=0,!n.length)return;let r;for(const t of n)r&&this._canAggregate(r,t)?(r.requests.push(t),r.end=t.end):(r&&this._dispatch(r),r={requests:[t],url:e,start:t.start,end:t.end});r&&this._dispatch(r)})}_enQueue(e,t){var n;(n=this.requestQueues)[e]??(n[e]=[]),this.requestQueues[e].push(t)}fetch(e,t,n,r={}){return new Promise((o,i)=>{this._enQueue(e,{start:t,end:n,resolve:o,reject:i,requestOptions:r}),this.timeout||(this.timeout=setTimeout(()=>{this.timeout=void 0,this._aggregateAndDispatch()},this.frequency||1))})}}async function pa(e,t,n,r={}){const o=await fetch(e,{method:"GET",headers:{range:`bytes=${t}-${n}`},...r});if(206!==o.status)throw new Error(`HTTP ${o.status} when fetching ${e} bytes ${t}-${n}`);return{headers:o.headers,buffer:await o.bytes()}}class ha{constructor(e,t={}){this.baseOverrides={},this.url=e;const n=t.fetch||globalThis.fetch.bind(globalThis);t.overrides&&(this.baseOverrides=t.overrides),this.fetchImplementation=n}async fetch(e,t){const n=t=>new Error(`${function(e){return("object"==typeof e&&null!==e&&"message"in e?e.message:`${e}`).replace(/\.$/,"")}(t)} fetching ${e}`,{cause:t});let r;try{r=await this.fetchImplementation(e,t)}catch(o){if(!`${o}`.includes("Failed to fetch"))throw n(o);console.warn(`generic-filehandle: refetching ${e} to attempt to work around chrome CORS header caching bug`);try{r=await this.fetchImplementation(e,{...t,cache:"reload"})}catch(e){throw n(e)}}return r}async read(e,t,n={}){if(0===e)return new Uint8Array(0);const{headers:r={},signal:o,overrides:i={}}=n;e<1/0?r.range=`bytes=${t}-${t+e-1}`:e===1/0&&0!==t&&(r.range=`bytes=${t}-`);const a=await this.fetch(this.url,{...this.baseOverrides,...i,headers:{...this.baseOverrides.headers,...i.headers,...r},method:"GET",redirect:"follow",mode:"cors",signal:o});if(!a.ok)throw new Error(`HTTP ${a.status} fetching ${this.url}`);if(200===a.status&&0===t||206===a.status){const t=a.headers.get("content-range"),n=/\/(\d+)$/.exec(t||"");n?.[1]&&(this._stat={size:parseInt(n[1],10)});const r=a.bytes?await a.bytes():new Uint8Array(await a.arrayBuffer());return r.byteLength<=e?r:r.subarray(0,e)}throw new Error(200===a.status?`${this.url} fetch returned status 200, expected 206`:`HTTP ${a.status} fetching ${this.url}`)}async readFile(e={}){let t,n;if("string"==typeof e)t=e,n={};else{t=e.encoding;const{encoding:r,...o}=e;n=o}const{headers:r={},signal:o,overrides:i={}}=n,a=await this.fetch(this.url,{...this.baseOverrides,...i,headers:{...this.baseOverrides.headers,...i.headers,...r},method:"GET",redirect:"follow",mode:"cors",signal:o});if(!a.ok)throw new Error(`HTTP ${a.status} fetching ${this.url}`);if("utf8"===t)return a.text();if(t)throw new Error(`unsupported encoding: ${t}`);return a.bytes?a.bytes():new Uint8Array(await a.arrayBuffer())}async stat(){if(!this._stat&&(await this.read(10,0),!this._stat))throw new Error(`unable to determine size of file at ${this.url}`);return this._stat}async close(){}}const ga={},ma=new class{constructor({fetch:e=pa,size:t=1e7,chunkSize:n=32768,aggregationTime:r=100,maxFetchSize:o=4*n,maxExtraFetch:i=n}={}){this.aggregator=new fa({fetch:e,frequency:r,maxFetchSize:o,maxExtraSize:i}),this.chunkSize=n,this.chunkCache=new da({maxSize:Math.floor(t/n)||1})}async getRange(e,t,n,r={}){const o=Math.floor(t/this.chunkSize),i=Math.floor((t+n-1)/this.chunkSize),a=new Array(i-o+1);for(let t=o;t<=i;t+=1)a[t-o]=this._getChunk(e,t,r).then(e=>e&&{headers:e.headers,buffer:e.buffer,chunkNumber:t});let l=await Promise.all(a);if(l=l.filter(e=>!!e),!l.length)return{headers:{},buffer:new Uint8Array(0)};const s=t-l[0].chunkNumber*this.chunkSize;return{headers:l[0].headers,buffer:this._makeBuffer(l,s,n)}}_makeBuffer(e,t,n){if(1===e.length)return e[0].buffer.slice(t,t+n);const r=e.map(e=>e.buffer);r[0]=r[0].slice(t);const o=r.reduce((e,t)=>e+t.length,0),i=Math.max(0,o-n),a=r.length-1;return r[a]=r[a].slice(0,r[a].length-i),function(e){const t=new Uint8Array(function(e){let t=0;for(const n of e)t+=n.length;return t}(e));let n=0;for(const r of e)t.set(r,n),n+=r.length;return t}(r)}async _getChunk(e,t,n){const r=`${e}/${t}`,o=this.chunkCache.get(r);if(o){let a,l=!1;try{a=await o}catch(e){if("AbortError"!==(i=e).name&&"ERR_ABORTED"!==i.code&&!i.message?.match(/\b(aborted|AbortError)\b/i))throw e;l=!0}return l?(this._uncacheIfSame(r,o),this._getChunk(e,t,n)):a}var i;const a=t*this.chunkSize,l=a+this.chunkSize,s=this.aggregator.fetch(e,a,l,n).catch(e=>{throw this._uncacheIfSame(r,s),e});return this.chunkCache.set(r,s),s}_uncacheIfSame(e,t){this.chunkCache.get(e)===t&&this.chunkCache.delete(e)}reset(){this.chunkCache.clear()}}({fetch:function(e,t,n,r={}){const o=ga[e];if(!o)throw new Error(`fetch not registered for ${e}`);return o(e,t,n,r)},size:524288e3,chunkSize:131072,maxFetchSize:104857600,minimumTTL:864e5});class Aa extends ha{async fetch(e,t){const n=String(e);ga[n]||(ga[n]=this.fetchBinaryRange.bind(this));const r=new Headers(t?.headers).get("range");if(r){const t=/bytes=(\d+)-(\d+)/.exec(r);if(t){const[,n,r]=t,o=Number.parseInt(n,10),i=Number.parseInt(r,10)-o,{buffer:a,headers:l}=await ma.getRange(`${e}`,o,i+1);return new Response(a,{status:206,headers:l})}}return super.fetch(e,t)}async fetchBinaryRange(e,t,n,r={}){const o=new Date,i=await super.fetch(e,{...r,headers:{...r.headers,range:`bytes=${t}-${n}`}}),a=new Date;if(!i.ok){const r=`HTTP ${i.status} fetching ${e} bytes ${t}-${n}`,o=" (should be 206 for range requests)";throw new Error(`${r}${200===i.status?o:""}`)}const l={};for(const[e,t]of i.headers.entries())l[e]=t;const s=await i.arrayBuffer();return{headers:l,requestDate:o,responseDate:a,buffer:new Uint8Array(s)}}}function ba(e,t){if(function(e){return"localPath"in e}(e)){if(!e.localPath)throw new Error("No local path provided");if(Vi||E.b8R)return new Wi(e.localPath);throw new Error("can't use local files in the browser")}if(function(e){return"blobId"in e}(e)){const t=To(e.blobId);if(!t)throw new Error(`file ("${e.name}") was opened locally from a previous session. To restore it, go to track settings and reopen the file`);return new Ui(t)}if(function(e){return"handleId"in e}(e)){const t=Qo(e.handleId);if(!t)throw new Error(`file ("${e.name}") requires permission. Please reopen the file from track settings`);return new Ui(t)}if((0,No.C1)(e)){if(!e.uri)throw new Error("No URI provided");const n=function(e){return e.baseUri?{...e,uri:new URL(e.uri,e.baseUri).href}:e}(e);if(t){const r=function(e,t){const{rootModel:n}=t;if(n&&(0,No.lL)(n))return n.findAppropriateInternetAccount(e);if(e.internetAccountPreAuthorization){if(!e.internetAccountPreAuthorization.authInfo.token)throw new Error("Failed to obtain token from internet account. Try reloading the page");return t.getInternetAccountType(e.internetAccountPreAuthorization.internetAccountType).stateModel.create({type:e.internetAccountPreAuthorization.internetAccountType,configuration:e.internetAccountPreAuthorization.authInfo.configuration})}}(e,t);if(r)return r.openLocation(n)}return new Aa(n.uri,{fetch:va})}throw new Error("invalid fileLocation")}async function va(e,t){const n=await fetch(e,t);if(401===n.status&&n.headers.get("WWW-Authenticate")?.includes("Basic"))throw new No._u("Accessing HTTPBasic resource without authentication",e.toString());return n}const ya=Yn.gK.optional(Yn.gK.identifier,function(){return((e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_"),""))(10)}),wa=Yn.gK.model("NoAssemblyRegion",{refName:Yn.gK.string,start:Yn.gK.number,end:Yn.gK.number,reversed:Yn.gK.optional(Yn.gK.boolean,!1)}).actions(e=>({setRefName(t){e.refName=t}})),Ca=(Yn.gK.compose("Region",wa,Yn.gK.model({assemblyName:Yn.gK.string})),Yn.gK.model("LocalPathLocation",{locationType:Yn.gK.literal("LocalPathLocation"),localPath:Yn.gK.string})),Sa=Yn.gK.model("BlobLocation",{locationType:Yn.gK.literal("BlobLocation"),name:Yn.gK.string,blobId:Yn.gK.string}),xa=Yn.gK.model("FileHandleLocation",{locationType:Yn.gK.literal("FileHandleLocation"),name:Yn.gK.string,handleId:Yn.gK.string}),Ia=Yn.gK.model("UriLocation",{locationType:Yn.gK.literal("UriLocation"),uri:Yn.gK.string,baseUri:Yn.gK.maybe(Yn.gK.string),internetAccountId:Yn.gK.maybe(Yn.gK.string),internetAccountPreAuthorization:Yn.gK.maybe(Yn.gK.model("InternetAccountPreAuthorization",{internetAccountType:Yn.gK.string,authInfo:Yn.gK.frozen()}))}),Ea=Yn.gK.snapshotProcessor(Ia,{postProcessor:e=>{const{baseUri:t,...n}=e;return t?e:n}}),ka=Yn.gK.snapshotProcessor(Yn.gK.union(Ca,Ea,Sa,xa),{preProcessor(e){if(!e)return;const{locationType:t,...n}=e;if(!t){const{uri:e,localPath:t,blob:r,handleId:o}=n;let i="";return void 0!==e?i="UriLocation":void 0!==t?i="LocalPathLocation":void 0!==r?i="BlobLocation":void 0!==o&&(i="FileHandleLocation"),{...n,locationType:i}}return e}});var Ba=o(5070);function Ma(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Ra(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=_a)):void 0===t&&(t=Pa);for(var n,r,o,i,a,l=new Da(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new Da(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Oa)}function Pa(e){return e.children}function _a(e){return Array.isArray(e)?e[1]:null}function Ta(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Oa(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Da(e){this.data=e,this.depth=this.height=0,this.parent=null}function Qa(e,t){return e.parent===t.parent?1:2}function Na(e,t){return e+t.x}function Fa(e,t){return Math.max(e,t.y)}function La(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ja(){return{gf:{},gc:{},gs:{},gr:{},seqname:[],seqdata:{}}}Da.prototype=Ra.prototype={constructor:Da,count:function(){return this.eachAfter(Ma)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return Ra(this).eachBefore(Ta)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}};var za=/^# STOCKHOLM 1.0/,$a=/^\/\/\s*$/,Ha=/^#=GF\s+(\S+)\s+(.*?)\s*$/,Ga=/^#=GC\s+(\S+)\s+(.*?)\s*$/,Va=/^#=GS\s+(\S+)\s+(\S+)\s+(.*?)\s*$/,Wa=/^#=GR\s+(\S+)\s+(\S+)\s+(.*?)\s*$/,Ua=/^\s*(\S+)\s+(\S+)\s*$/,Ya=/\S/;function Ka(e,t){var n,r=null!=t?t:{},o=[],i=null,a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return La(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?La(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(e.split("\n"));try{for(a.s();!(n=a.n()).done;){var l=n.value,s=void 0;if(za.test(l))i=ja();else if($a.test(l))i&&o.push(i),i=null;else if(s=Ha.exec(l)){if(!i){if(r.strict)throw new Error("No format header: # STOCKHOLM 1.0");i=ja()}var c=s[1];i.gf[c]||(i.gf[c]=[]),i.gf[c].push(s[2])}else if(s=Ga.exec(l)){if(!i){if(r.strict)throw new Error("No format header: # STOCKHOLM 1.0");i=ja()}var u=s[1];i.gc[u]||(i.gc[u]=""),i.gc[u]+=s[2]}else if(s=Va.exec(l)){if(!i){if(r.strict)throw new Error("No format header: # STOCKHOLM 1.0");i=ja()}var d=s[1],f=s[2],p=s[3];i.gs[f]||(i.gs[f]={}),i.gs[f][d]||(i.gs[f][d]=[]),i.gs[f][d].push(p)}else if(s=Wa.exec(l)){if(!i){if(r.strict)throw new Error("No format header: # STOCKHOLM 1.0");i=ja()}var h=s[1],g=s[2],m=s[3];i.gr[g]||(i.gr[g]={}),i.gr[g][h]||(i.gr[g][h]=""),i.gr[g][h]+=m}else if(s=Ua.exec(l)){if(!i){if(r.strict)throw new Error("No format header: # STOCKHOLM 1.0");i=ja()}var A=s[1],b=s[2];i.seqdata[A]||(i.seqdata[A]="",i.seqname.push(A)),i.seqdata[A]+=b}else if(Ya.test(l)&&r.strict)throw new Error("Malformed line")}}catch(e){a.e(e)}finally{a.f()}return i&&o.push(i),o}function qa(e){for(var t,n=[],r={},o=e.split(/\s*(;|\(|\)|,|:)\s*/),i=0;i<o.length;i++){var a=o[i],l={};switch(a){case"(":r.children=[l],n.push(r),r=l;break;case",":null===(t=n.at(-1))||void 0===t||t.children.push(l),r=l;break;case")":r=n.pop();break;case":":break;default:var s=o[i-1];")"===s||"("===s||","===s?r.name=a:":"===s&&(r.length=Number.parseFloat(a))}}return r}function Ja(e){return Ja="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ja(e)}function Xa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Za(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xa(Object(n),!0).forEach(function(t){el(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function el(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ja(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ja(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ja(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tl(e){var t,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"node","-").concat(n);return Za(Za({},e),{},{id:r,name:e.name||r,children:(null===(t=e.children)||void 0===t?void 0:t.map(function(e,t){return tl(e,"".concat(r,"-").concat(t),n+1)}))||[]})}var nl=["id"];function rl(e){return rl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rl(e)}function ol(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function il(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||al(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function al(e,t){if(e){if("string"==typeof e)return ll(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ll(e,t):void 0}}function ll(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function sl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ul(r.key),r)}}function cl(e,t,n){return(t=ul(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ul(e){var t=function(e){if("object"!=rl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=rl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==rl(t)?t:t+""}var dl=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),cl(this,"data",void 0),cl(this,"MSA",void 0);var r=Ka(t);this.data=r,this.MSA=r[n]},t=[{key:"getMSA",value:function(){return this.MSA}},{key:"getRow",value:function(e){return this.MSA.seqdata[e]||""}},{key:"getWidth",value:function(){var e=Object.keys(this.MSA.seqdata)[0];return this.getRow(e).length}},{key:"alignmentNames",get:function(){return this.data.map(function(e,t){var n,r;return null!==(n=null===(r=e.gf.DE)||void 0===r?void 0:r[0])&&void 0!==n?n:"Alignment ".concat(t+1)})}},{key:"getHeader",value:function(){var e,t,n=null!==(e=this.MSA.gs.AC)&&void 0!==e?e:{},r=null!==(t=this.MSA.gs.DR)&&void 0!==t?t:{};return{General:this.MSA.gf,Accessions:Object.fromEntries(Object.entries(n).map(function(e){var t=il(e,2);return[t[0],t[1][0]]})),Dbxref:Object.fromEntries(Object.entries(r).map(function(e){var t=il(e,2);return[t[0],t[1].join("; ")]}))}}},{key:"getRowData",value:function(e){var t,n;return{name:e,accession:null===(t=this.MSA.gs.AC)||void 0===t||null===(t=t[e])||void 0===t?void 0:t[0],dbxref:null===(n=this.MSA.gs.DR)||void 0===n||null===(n=n[e])||void 0===n?void 0:n.join("; ")}}},{key:"getNames",value:function(){return Object.keys(this.MSA.seqdata)}},{key:"getSeqCoords",value:function(){}},{key:"getStructures",value:function(){var e,t,n=/PDB; +(\S+) +(\S); ([0-9]+)-([0-9]+)/,r=null!==(e=this.MSA.gs.DR)&&void 0!==e?e:{},o=Object.entries(r).flatMap(function(e){var t=il(e,2),r=t[0];return t[1].map(function(e){var t=n.exec(e);return t?{id:r,match:t}:null})}).filter(function(e){return!!e}).map(function(e){var t=e.id,n=e.match;return{id:t,pdb:n[1].toLowerCase(),chain:n[2],startPos:+n[3],endPos:+n[4]}}),i={},a=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=al(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(a)throw o}}}}(o);try{for(a.s();!(t=a.n()).done;){var l=t.value,s=l.id,c=ol(l,nl);i[s]||(i[s]=[]),i[s].push(c)}}catch(e){a.e(e)}finally{a.f()}return i}},{key:"getTree",value:function(){var e,t=null===(e=this.MSA.gf.NH)||void 0===e?void 0:e[0];return t?tl(qa(t)):{id:"root",name:"root",noTree:!0,children:this.getNames().map(function(e){return{id:e,children:[],name:e}})}}},{key:"seqConsensus",get:function(){return this.MSA.gc.seq_cons}},{key:"secondaryStructureConsensus",get:function(){return this.MSA.gc.SS_cons}},{key:"tracks",get:function(){return[{id:"seqConsensus",name:"Sequence consensus",data:this.seqConsensus,customColorScheme:{}},{id:"secondaryStruct",name:"Secondary-structure",data:this.secondaryStructureConsensus,customColorScheme:{">":"pink","<":"lightblue"}}]}}],t&&sl(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function fl(e){return fl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fl(e)}function pl(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=hl(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function hl(e,t){if(e){if("string"==typeof e)return gl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gl(e,t):void 0}}function gl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ml(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bl(r.key),r)}}function Al(e,t,n){return(t=bl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bl(e){var t=function(e){if("object"!=fl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fl(t)?t:t+""}function vl(e){return e>=97&&e<=122}var yl=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Al(this,"MSA",void 0),Al(this,"orderedNames",void 0);var n,r=[],o=[],i=pl(t.split(">"));try{for(i.s();!(n=i.n()).done;){var a=n.value;if(/\S/.test(a)){var l=a.indexOf("\n");if(-1!==l){var s=a.slice(0,l),c=s.indexOf(" "),u=-1===c?s:s.slice(0,c);u&&(r.push(a.slice(l+1).replaceAll(/\s/g,"")),o.push(u))}}}}catch(e){i.e(e)}finally{i.f()}this.orderedNames=o,this.MSA={seqdata:this.expandA3M(r,o)}},n=[{key:"sniff",value:function(e){if(!e.startsWith(">"))return!1;var t,n=[],r=pl(e.split(">"));try{for(r.s();!(t=r.n()).done;){var o=t.value;if(/\S/.test(o)){var i=o.indexOf("\n");if(-1!==i){var a=o.slice(i+1).replaceAll(/\s/g,"");a&&n.push(a)}}}}catch(e){r.e(e)}finally{r.f()}if(n.length<2)return!1;for(var l=!1,s=-1,c=!0,u=0,d=n;u<d.length;u++){for(var f=d[u],p=0,h=0;h<f.length;h++){var g=f.charCodeAt(h);vl(g)?l=!0:(g>=65&&g<=90||45===g)&&p++}-1===s?s=p:p!==s&&(c=!1)}return l&&c}}],(t=[{key:"expandA3M",value:function(e,t){var n=t.length;if(0===n)return{};for(var r=[],o=[],i=0;i<n;i++){for(var a=e[i],l=[],s=[],c=0;c<a.length;){var u=a.charCodeAt(c);if(u>=65&&u<=90||45===u){l.push(a[c]);for(var d="",f=c+1;f<a.length;){var p=a.charCodeAt(f);if(!vl(p)&&46!==p)break;d+=a[f],f++}s.push(d),c=f}else if(46===u)c++;else if(vl(u)){for(var h="";c<a.length&&vl(a.charCodeAt(c));)h+=a[c],c++;l.push(""),s.push(h)}else c++}r.push(l),o.push(s)}for(var g=Math.max.apply(Math,function(e){return function(e){if(Array.isArray(e))return gl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||hl(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(r.map(function(e){return e.length})).concat([0])),m=new Array(g).fill(0),A=0;A<n;A++)for(var b=o[A],v=0;v<b.length;v++){var y,w=0,C=pl(b[v]);try{for(C.s();!(y=C.n()).done;)vl(y.value.charCodeAt(0))&&w++}catch(e){C.e(e)}finally{C.f()}w>m[v]&&(m[v]=w)}for(var S={},x=0;x<n;x++){for(var I=r[x],E=o[x],k=[],B=0;B<g;B++){var M=m[B];if(B<I.length){var R=I[B],P=E[B]||"";k.push(R||"-");var _,T="",O=pl(P);try{for(O.s();!(_=O.n()).done;){var D=_.value;vl(D.charCodeAt(0))&&(T+=D.toUpperCase())}}catch(e){O.e(e)}finally{O.f()}k.push(T);var Q=M-T.length;Q>0&&k.push(".".repeat(Q))}else k.push("-"),M>0&&k.push(".".repeat(M))}S[t[x]]=k.join("")}return S}},{key:"getMSA",value:function(){return this.MSA}},{key:"getRowData",value:function(){}},{key:"getNames",value:function(){return this.orderedNames}},{key:"getRow",value:function(e){return this.MSA.seqdata[e]||""}},{key:"getWidth",value:function(){var e=Object.keys(this.MSA.seqdata)[0];return e?this.getRow(e).length:0}},{key:"getStructures",value:function(){return{}}},{key:"alignmentNames",get:function(){return[]}},{key:"getHeader",value:function(){return{}}},{key:"getTree",value:function(){return{id:"root",name:"root",noTree:!0,children:this.getNames().map(function(e){return{id:e,children:[],name:e}})}}},{key:"seqConsensus",get:function(){}},{key:"secondaryStructureConsensus",get:function(){}},{key:"tracks",get:function(){return[]}}])&&ml(e.prototype,t),n&&ml(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function wl(e){return wl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wl(e)}function Cl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Sl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xl(r.key),r)}}function xl(e){var t=function(e){if("object"!=wl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=wl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wl(t)?t:t+""}var Il=function(){return e=function e(t){var n,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,o=void 0,(r=xl(r="MSA"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o;var i,a={},l=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Cl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cl(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(t.split(">"));try{for(l.s();!(i=l.n()).done;){var s=i.value;if(/\S/.test(s)){var c=s.indexOf("\n");if(-1!==c){var u=s.slice(0,c),d=u.indexOf(" "),f=-1===d?u:u.slice(0,d);f&&(a[f]=s.slice(c+1).replaceAll(/\s/g,""))}}}}catch(e){l.e(e)}finally{l.f()}this.MSA={seqdata:a}},(t=[{key:"getMSA",value:function(){return this.MSA}},{key:"getRowData",value:function(){}},{key:"getNames",value:function(){return Object.keys(this.MSA.seqdata)}},{key:"getRow",value:function(e){return this.MSA.seqdata[e]||""}},{key:"getWidth",value:function(){var e=Object.keys(this.MSA.seqdata)[0];return this.getRow(e).length}},{key:"getStructures",value:function(){return{}}},{key:"alignmentNames",get:function(){return[]}},{key:"getHeader",value:function(){return{}}},{key:"getTree",value:function(){return{id:"root",name:"root",noTree:!0,children:this.getNames().map(function(e){return{id:e,children:[],name:e}})}}},{key:"seqConsensus",get:function(){}},{key:"secondaryStructureConsensus",get:function(){}},{key:"tracks",get:function(){return[]}}])&&Sl(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function El(e){return El="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},El(e)}function kl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bl(r.key),r)}}function Bl(e){var t=function(e){if("object"!=El(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=El(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==El(t)?t:t+""}var Ml=function(){return e=function e(t){var n,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,o=void 0,(r=Bl(r="MSA"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,this.MSA=function(e){const t=e.split("\n").map(e=>e.trim()).filter(e=>!!e),n=[],r=[];for(const e of t)if(e.startsWith("SEQ"))n.push(e);else{if(e.startsWith("DATA"))continue;if(e.startsWith("//"))break;r.push(e)}const o=n.map(e=>{const[,t,n,r,o,i,a,l,s]=e.split(" ");return{species:t,protein:n,chr:r,start:+o,end:+i,strand:+a,geneId:l,unknown:s,seq:""}});for(const e of r)for(let t=0;t<n.length;t++)o[t].seq+=e[t];return o}(t)},(t=[{key:"getMSA",value:function(){return this.MSA}},{key:"getRow",value:function(e){var t;return(null===(t=this.MSA.find(function(t){return t.protein===e}))||void 0===t?void 0:t.seq)||""}},{key:"getWidth",value:function(){return this.MSA[0].seq.length}},{key:"getRowData",value:function(){}},{key:"getHeader",value:function(){return""}},{key:"getNames",value:function(){return this.MSA.map(function(e){return e.protein})}},{key:"getStructures",value:function(){return{}}},{key:"alignmentNames",get:function(){return[]}},{key:"getTree",value:function(){return{id:"root",name:"root",noTree:!0,children:this.getNames().map(function(e){return{id:e,name:e,children:[]}})}}},{key:"seqConsensus",get:function(){}},{key:"secondaryStructureConsensus",get:function(){}},{key:"tracks",get:function(){return[]}}])&&kl(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function Rl(e){let t=e.next();for(;!t.done&&""===t.value.trim();)t=e.next();return t.value}function Pl(e){let t=Rl(e);const n=[];let r="";if(!t)return;for(;t;)t.startsWith(" ")?r=t:n.push(t),t=e.next().value;const[o,i]=function(e){const t=e.split(/\s+/),n=e.slice(t[0].length),r=t[0].length+n.indexOf(t[1]);return[r,r+t[1].length]}(n[0]),a=n.map(e=>e.split(/\s+/)).map(e=>e[0]),l=n.map(e=>e.slice(o,i));let s=r.slice(o,i);const c=l[0].length-s.length;return c&&(s+=" ".repeat(c)),{ids:a,seqs:l,consensus:s}}function _l(e){return _l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_l(e)}function Tl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ol(r.key),r)}}function Ol(e){var t=function(e){if("object"!=_l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_l(t)?t:t+""}var Dl=function(){return e=function e(t){var n,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,o=void 0,(r=Ol(r="MSA"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,this.MSA=function(e){const t=Rl(e);if(!t)throw new Error("Empty file received");const n=function(e){const t=["CLUSTAL","PROBCONS","MUSCLE","MSAPROBS","Kalign"];t.some(t=>e.startsWith(t))||console.warn(`${e} is not a known CLUSTAL header: ${t.join(",")}, proceeding but could indicate an issue`);const n=function(e){const t=/\(?(\d+(\.\d+)+)\)?/.exec(e);return t&&t.length>1?t[1]:""}(e);return{info:e,version:n}}(t),r=function(e){let t;const n=Pl(e);if(void 0!==n)for(;t=Pl(e);){for(let e=0;e<t.seqs.length;e++)n.seqs[e]+=t.seqs[e];n.consensus+=t.consensus}return n}(e);if(void 0===r)throw new Error("No blocks parsed");const o=r.seqs.map((e,t)=>({id:r.ids[t],seq:e})),{consensus:i}=r;if(i.length!=o[0].seq.length)throw new Error(`Consensus length != sequence length. Con ${i.length} seq ${o[0].seq.length}`);return{consensus:i,alns:o,header:n}}(t.split("\n")[Symbol.iterator]())},(t=[{key:"getMSA",value:function(){return this.MSA}},{key:"getRow",value:function(e){var t;return(null===(t=this.MSA.alns.find(function(t){return t.id===e}))||void 0===t?void 0:t.seq)||""}},{key:"getWidth",value:function(){return this.MSA.alns[0].seq.length}},{key:"getRowData",value:function(){}},{key:"getHeader",value:function(){return this.MSA.header}},{key:"getNames",value:function(){return this.MSA.alns.map(function(e){return e.id})}},{key:"getStructures",value:function(){return{}}},{key:"alignmentNames",get:function(){return[]}},{key:"getTree",value:function(){return{id:"root",name:"root",noTree:!0,children:this.getNames().map(function(e){return{id:e,name:e,children:[]}})}}},{key:"seqConsensus",get:function(){return this.MSA.consensus}},{key:"secondaryStructureConsensus",get:function(){}},{key:"tracks",get:function(){return[]}}])&&Tl(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function Ql(e){return Ql="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ql(e)}function Nl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Fl(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ql(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ql(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ql(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ll(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return jl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jl(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function zl(e){return e?e.split("\n").map(function(e){return e.trim()}).filter(function(e){return!!e&&!e.startsWith("#")}).map(function(e){var t=e.split("\t"),n=Ll(t,8),r=n[0],o=n[1],i=n[2],a=n[3],l=n[4],s=n[5],c=n[6],u=n[7],d=t[8];return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nl(Object(n),!0).forEach(function(t){Fl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({seq_id:null!=r?r:"",source:null!=o?o:"",type:null!=i?i:"",start:Number(a)||0,end:Number(l)||0,score:Number(s)||0,strand:null!=c?c:".",phase:null!=u?u:"."},function(e){return e?Object.fromEntries(e.split(";").map(function(e){return e.trim()}).filter(function(e){return!!e}).map(function(e){return e.split("=")}).map(function(e){var t,n=Ll(e,2),r=n[0],o=n[1];return[null!==(t=null==r?void 0:r.trim())&&void 0!==t?t:"",o?decodeURIComponent(o).trim().split(",").join(" "):void 0]}).filter(function(e){return""!==Ll(e,1)[0]})):{}}(d))}):[]}function $l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||Gl(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hl(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Gl(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function Gl(e,t){if(e){if("string"==typeof e)return Vl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vl(e,t):void 0}}function Vl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Wl(e){var t,n=new Map,r=Hl(e);try{for(r.s();!(t=r.n()).done;){var o=t.value,i=n.get(o.seq_id);i?i.push(o):n.set(o.seq_id,[o])}}catch(e){r.e(e)}finally{r.f()}var a,l={},s=Hl(n);try{for(s.s();!(a=s.n()).done;){var c,u=$l(a.value,2),d=u[0],f=u[1],p=new Map,h=new Map,g=Hl(f);try{for(g.s();!(c=g.n()).done;){var m=c.value,A=m.Name||m.ID||"".concat(m.source,"_").concat(m.start,"_").concat(m.end),b=m.signature_desc||m.Name||A,v=m.Ontology_term||m.description||m.Note||b;h.has(A)||h.set(A,{name:b,description:v,accession:A});var y=p.get(A);y?y.push({start:m.start,end:m.end}):p.set(A,[{start:m.start,end:m.end}])}}catch(e){g.e(e)}finally{g.f()}var w,C=[],S=Hl(p);try{for(S.s();!(w=S.n()).done;){var x=$l(w.value,2),I=x[0],E=x[1],k=h.get(I);C.push({signature:{entry:k},locations:E})}}catch(e){S.e(e)}finally{S.f()}l[d]={matches:C,xref:[{id:d}]}}}catch(e){s.e(e)}finally{s.f()}return l}var Ul=o(2600);const Yl=(0,ee.n)()({horizontalHandle:{cursor:"row-resize",width:"100%"},verticalHandle:{cursor:"col-resize",height:"100%"},flexbox_verticalHandle:{cursor:"col-resize",alignSelf:"stretch"},flexbox_horizontalHandle:{cursor:"row-resize",alignSelf:"stretch"}}),Kl=function({onDrag:t,vertical:n=!1,flexbox:r=!1,className:o,onMouseDown:i,...a}){const[l,s]=(0,e.useState)(!1),c=(0,e.useRef)(0),u=(0,e.useRef)(0),{classes:d}=Yl(),f=(0,e.useCallback)(e=>n?e.clientX:e.clientY,[n]);(0,e.useEffect)(()=>{if(l)return window.addEventListener("mousemove",e,!0),window.addEventListener("mouseup",n,!0),()=>{window.removeEventListener("mousemove",e,!0),window.removeEventListener("mouseup",n,!0)};function e(e){e.preventDefault();const n=f(e),r=c.current-n,o=n-u.current;u.current=n,t(o,r)}function n(){s(!1)}},[l,t,f]);const p=(0,e.useCallback)(e=>{e.preventDefault();const t=f(e);c.current=t,u.current=t,s(!0),i?.(e)},[f,i]),g=r?n?d.flexbox_verticalHandle:d.flexbox_horizontalHandle:n?d.verticalHandle:d.horizontalHandle;return(0,h.jsx)("div",{"data-resizer":"true",onMouseDown:p,className:(0,Ul.cx)(o,g),...a})};var ql=o(1160),Jl=(0,s.PA)(function(t){var n=t.model,r=t.offsetX,o=t.trackHeight,i=n.blockSize,a=n.scrollX,l=n.colWidth,s=n.highResScaleFactor,c=n.conservation,u=(0,e.useRef)(null);return(0,e.useEffect)(function(){if(u.current){var e=u.current.getContext("2d");e&&(e.resetTransform(),e.scale(s,s),e.clearRect(0,0,i,o),e.translate(-r,0),(0,ql.kt)({ctx:e,conservation:c,colWidth:l,trackHeight:o,offsetX:r,blockSize:i}))}},[i,l,o,r,s,c]),e.createElement("canvas",{ref:u,height:o*s,width:i*s,style:{position:"absolute",left:a+r,width:i,height:o}})}),Xl=(0,s.PA)(function(t){var n=t.model,r=t.track,o=n.blocksX,i=n.msaAreaWidth,a=r.model.height;return e.createElement("div",{style:{position:"relative",height:a,width:i,overflow:"hidden"}},o.map(function(t){return e.createElement(Jl,{key:t,model:n,offsetX:t,trackHeight:a})}),e.createElement(Kl,{onDrag:function(e){return n.setConservationTrackHeight(Math.max(10,n.conservationTrackHeight+e)),e},style:{position:"absolute",bottom:0,left:0,height:4,width:"100%",zIndex:1,background:"rgba(200,200,200,0.5)"}}))});const Zl=Xl;var es=(0,s.PA)(function(t){var n=t.track,r=t.model,o=t.offsetX,i=r.blockSize,a=r.scrollX,l=r.bgColor,s=r.colorScheme,c=r.colWidth,u=r.fontSize,d=r.rowHeight,f=r.highResScaleFactor,p=n.model,h=p.customColorScheme,g=p.data,m=h||s,A=(0,Tn.A)(),b=(0,e.useRef)(null),v=(0,e.useMemo)(function(){return(0,jn.Sl)(m,A)},[m,A]);return(0,e.useEffect)(function(){if(b.current){var e=b.current.getContext("2d");e&&(e.resetTransform(),e.scale(f,f),e.clearRect(0,0,i,d),e.translate(-o,0),e.textAlign="center",e.font=e.font.replace(/\d+px/,"".concat(u,"px")),(0,ql.qM)({ctx:e,data:g,colorScheme:m,contrastScheme:v,bgColor:l,colWidth:c,rowHeight:d,offsetX:o,blockSize:i}))}},[u,l,i,c,d,o,v,m,f,g]),e.createElement("canvas",{ref:b,height:d*f,width:i*f,style:{position:"absolute",left:a+o,width:i,height:d}})}),ts=(0,s.PA)(function(t){var n=t.track,r=t.model,o=r.blocksX,i=r.msaAreaWidth,a=r.rowHeight;return n.model.data?e.createElement("div",{style:{position:"relative",height:a,width:i,overflow:"hidden"}},o.map(function(t){return e.createElement(es,{key:t,track:n,model:r,offsetX:t})})):null});const ns=ts;var rs,os=!1,is=!0,as=!0,ls=!1,ss=!0,cs=!0,us="maeditor",ds=!0,fs=!1,ps=!0,hs=!0,gs=!0,ms=!0,As=o(1091);function bs(e){return bs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bs(e)}function vs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ys(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vs(Object(n),!0).forEach(function(t){ws(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ws(e,t,n){return(t=function(e){var t=function(e){if("object"!=bs(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=bs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bs(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cs(e,t){rs||(rs=document.createElement("canvas"));var n=rs.getContext("2d");if(!n)throw new Error("no canvas context");return n.font=n.font.replace(/\d+px/,"".concat(t,"px")),n.measureText(e).width}function Ss(e,t){if(e){if("string"==typeof e)return xs(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xs(e,t):void 0}}function xs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Is(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ks(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function Es(e){return function(e){if(Array.isArray(e))return Bs(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ks(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ks(e,t){if(e){if("string"==typeof e)return Bs(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bs(e,t):void 0}}function Bs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ms={A:{A:4,R:-1,N:-2,D:-2,C:0,Q:-1,E:-1,G:0,H:-2,I:-1,L:-1,K:-1,M:-1,F:-2,P:-1,S:1,T:0,W:-3,Y:-2,V:0,B:-2,Z:-1,X:0,"*":-4},R:{A:-1,R:5,N:0,D:-2,C:-3,Q:1,E:0,G:-2,H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-3,H:2,I:-1,L:-1,K:-2,M:-1,F:3,P:-3,S:-2,T:-2,W:2,Y:7,V:-1,B:-3,Z:-2,X:-1,"*":-4},V:{A:0,R:-3,N:-3,D:-3,C:-1,Q:-2,E:-2,G:-3,H:-3,I:3,L:1,K:-2,M:1,F:-1,P:-2,S:-2,T:0,W:-3,Y:-1,V:4,B:-3,Z:-2,X:-1,"*":-4},B:{A:-2,R:-1,N:3,D:4,C:-3,Q:0,E:1,G:-1,H:0,I:-3,L:-4,K:0,M:-3,F:-3,P:-2,S:0,T:-1,W:-4,Y:-3,V:-3,B:4,Z:1,X:-1,"*":-4},Z:{A:-1,R:0,N:0,D:1,C:-3,Q:3,E:4,G:-2,H:0,I:-3,L:-3,K:1,M:-1,F:-3,P:-1,S:0,T:-1,W:-3,Y:-2,V:-2,B:1,Z:4,X:-1,"*":-4},X:{A:0,R:-1,N:-1,D:-1,C:-2,Q:-1,E:-1,G:-1,H:-1,I:-1,L:-1,K:-1,M:-1,F:-1,P:-2,S:0,T:0,W:-2,Y:-1,V:-1,B:-1,Z:-1,X:-1,"*":-4},"*":{A:-4,R:-4,N:-4,D:-4,C:-4,Q:-4,E:-4,G:-4,H:-4,I:-4,L:-4,K:-4,M:-4,F:-4,P:-4,S:-4,T:-4,W:-4,Y:-4,V:-4,B:-4,Z:-4,X:-4,"*":1}};function Rs(e,t){var n,r,o=e.toUpperCase(),i=t.toUpperCase();return null!==(n=null===(r=Ms[o])||void 0===r?void 0:r[i])&&void 0!==n?n:-4}function Ps(e,t){if(e.length!==t.length)throw new Error("Sequences must have the same length (aligned)");for(var n=0,r=0,o=0,i=0,a=0;a<e.length;a++){var l=e[a],s=t[a];"-"===l&&"-"===s||("-"!==l&&"-"!==s?(o+=Rs(l,s),i+=Math.max(Rs(l,l),Rs(s,s)),l.toUpperCase()===s.toUpperCase()?n++:r++):r++)}if(0===n+r)return 1;if(i<=0)return 1;var c=o/i,u=Math.max(.01,Math.min(1,c));return-Math.log(u)}function _s(e,t){var n;if(void 0===e.name||e.left||e.right){var r=e.left?_s(e.left,e.leftLength):"",o=e.right?_s(e.right,e.rightLength):"";n="(".concat(r,",").concat(o,")")}else n=e.name.replace(/[():,;[\]]/g,"_");return void 0!==t&&(n+=":".concat(t.toFixed(6))),n}function Ts(e){if(e.length<2)throw new Error("Need at least 2 sequences to build a tree");var t=e.map(function(e){return e[0]}),n=function(e){for(var t=e.length,n=[],r=0;r<t;r++){n[r]=[];for(var o=0;o<t;o++)n[r][o]=r===o?0:o<r?n[o][r]:Ps(e[r][1],e[o][1])}return n}(e),r=function(e,t){var n=e.length;if(n<2)return{name:t[0]};if(2===n){var r=e[0][1];return{left:{name:t[0]},right:{name:t[1]},leftLength:r/2,rightLength:r/2}}for(var o=[],i=0;i<n;i++)o[i]=Es(e[i]);for(var a=t.map(function(e){return{name:e}}),l=n;l>2;){for(var s=[],c=0;c<a.length;c++)void 0!==a[c]&&s.push(c);for(var u=new Map,d=0,f=s;d<f.length;d++){var p,h=f[d],g=0,m=Is(s);try{for(m.s();!(p=m.n()).done;){var A=p.value;h!==A&&(g+=o[h][A])}}catch(e){m.e(e)}finally{m.f()}u.set(h,g)}for(var b=1/0,v=-1,y=-1,w=0;w<s.length;w++)for(var C=w+1;C<s.length;C++){var S=s[w],x=s[C],I=(l-2)*o[S][x]-u.get(S)-u.get(x);I<b&&(b=I,v=S,y=x)}var E=o[v][y],k=u.get(v),B=u.get(y),M=void 0,R=void 0;l>2?R=E-(M=E/2+(k-B)/(2*(l-2))):(M=E/2,R=E/2),M=Math.max(0,M),R=Math.max(0,R);for(var P={left:a[v],right:a[y],leftLength:M,rightLength:R},_=v,T=0,O=s;T<O.length;T++){var D=O[T];if(D!==v&&D!==y){var Q=(o[v][D]+o[y][D]-E)/2;o[_][D]=Math.max(0,Q),o[D][_]=Math.max(0,Q)}}a[y]=void 0,a[_]=P,l--}for(var N=[],F=0;F<a.length;F++)void 0!==a[F]&&N.push(F);if(2===N.length){var L=N[0],j=N[1],z=o[L][j];return{left:a[L],right:a[j],leftLength:z/2,rightLength:z/2}}return a[N[0]]}(n,t);return _s(r)+";"}function Os(e){return Os="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Os(e)}var Ds=["features"];function Qs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ns(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qs(Object(n),!0).forEach(function(t){Fs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fs(e,t,n){return(t=function(e){var t=function(e){if("object"!=Os(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Os(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Os(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ls={$NODE_COLLAPSED:"collapsed",$NODE_COLOR:"color",$LABEL_BG_COLOR:"color","seq-id":"seqId","seq-title":"seqTitle","align-index":"alignIndex","accession-nbr":"accessionNbr","blast-name":"blastName","common-name":"commonName","leaf-count":"leafCount"};function js(e){var t=/id\s+(\d+)/.exec(e),n=/name\s+"((?:[^"\\]|\\[^])*)"/.exec(e);if(t&&n){var r=n[1].replace(/\\"/g,'"').replace(/\\\\/g,"\\");return{id:parseInt(t[1],10),name:r}}return null}function zs(e){var t=/id\s+(\d+)/.exec(e),n=/parent\s+(\d+)/.exec(e);if(t){var r={id:parseInt(t[1],10)};n&&(r.parent=parseInt(n[1],10));var o=e.indexOf("features");if(-1!==o){var i=e.indexOf("{",o);if(-1!==i){for(var a=1,l=i+1;l<e.length&&a>0;)"{"===e[l]?a++:"}"===e[l]&&a--,l++;if(0===a){var s=e.slice(i+1,l-1).trim();r.features=function(e){for(var t=[],n=0;n<e.length;){for(;n<e.length&&/\s/.test(e[n]);)n++;if(n>=e.length)break;if("{"===e[n]){var r=n+1,o=1;for(n++;n<e.length&&o>0;)"{"===e[n]?o++:"}"===e[n]&&o--,n++;if(0===o){var i=$s(e.slice(r,n-1).trim());i&&t.push(i)}}else for(;n<e.length&&"{"!==e[n];)n++}return t}(s)}}}return r}return null}function $s(e){var t=/featureid\s+(\d+)/.exec(e),n=/value\s+"((?:[^"\\]|\\[^])*)"/.exec(e);if(t&&n){var r=n[1].replace(/\\"/g,'"').replace(/\\\\/g,"\\");return{featureid:parseInt(t[1],10),value:r}}return null}function Hs(e){return Hs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hs(e)}function Gs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gs(Object(n),!0).forEach(function(t){Ws(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ws(e,t,n){return(t=function(e){var t=function(e){if("object"!=Hs(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Hs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Hs(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Us(e){return Vs(Vs({},e),{},{children:e.children.map(function(e){return e.children.length?Us(e):{children:[e],id:"".concat(e.id,"-leafnode"),name:"".concat(e.name,"-hidden")}})})}function Ys(e,t){for(var n=0,r=0,o=0,i=e.length;r<i&&e[r]===o;)r++,o++;for(;n<t;)for(n++,o++;r<i&&e[r]===o;)r++,o++;return o}function Ks(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var qs="undefined"!=typeof navigator&&navigator.userAgent.includes("Macintosh")&&navigator.userAgent.includes("AppleWebKit")&&!navigator.userAgent.includes("Safari");function Js(e,t){var n,r;if("undefined"!=typeof window){var o=window.URL,i=document.createElement("a");if(t=t||(Blob,"download"),"download"in HTMLAnchorElement.prototype&&!qs)return i.download=t,i.rel="noopener",void("string"==typeof e?(i.href=e,Ks(i)):(i.href=o.createObjectURL(e),setTimeout(function(){o.revokeObjectURL(i.href)},4e4),setTimeout(function(){Ks(i)},0)));if("string"!=typeof e){var a=/constructor/i.test(null!==(n=null===(r=window.HTMLElement)||void 0===r?void 0:r.toString())&&void 0!==n?n:"")||!!window.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||a||qs)&&"undefined"!=typeof FileReader){var s=new FileReader;s.onloadend=function(){var e=s.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),window.open(e,"_blank")},s.readAsDataURL(e)}else{var c=o.createObjectURL(e);window.open(c,"_blank"),setTimeout(function(){o.revokeObjectURL(c)},4e4)}}else window.open(e,"_blank")}}function Xs(e){return Xs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xs(e)}var Zs=["data","showDomains","hideGaps","allowedGappyness","contrastLettering","subFeatureRows","drawMsaLetters","height","rowHeight","scrollY","scrollX","colWidth","currentAlignment","collapsed","collapsedLeaves","showOnly","turnedOffTracks","featureFilters","relativeTo","bgColor","colorSchemeName","drawLabels","labelsAlignRight","treeAreaWidth","treeWidth","treeWidthMatchesArea","showBranchLen","drawTree","drawNodeBubbles"];function ec(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return tc(c,"_invoke",function(n,r,o){var i,l,s,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,s=e,f.n=n,a}};function p(n,r){for(l=n,s=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];n>3?(o=h===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,f.v=r,f.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,s=h;(t=l<2?e:s)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,s)):f.n=s:f.v=s);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==a)break}catch(t){i=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(tc(t={},r,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,tc(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,tc(d,"constructor",c),tc(c,"constructor",s),s.displayName="GeneratorFunction",tc(c,o,"GeneratorFunction"),tc(d),tc(d,o,"Generator"),tc(d,r,function(){return this}),tc(d,"toString",function(){return"[object Generator]"}),(ec=function(){return{w:i,m:f}})()}function tc(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}tc=function(e,t,n,r){function i(t,n){tc(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},tc(e,t,n,r)}function nc(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function rc(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){nc(i,r,o,a,l,"next",e)}function l(e){nc(i,r,o,a,l,"throw",e)}a(void 0)})}}function oc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ic(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oc(Object(n),!0).forEach(function(t){ac(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ac(e,t,n){return(t=function(e){var t=function(e){if("object"!=Xs(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xs(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||uc(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sc(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=uc(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function cc(e){return function(e){if(Array.isArray(e))return dc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||uc(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uc(e,t){if(e){if("string"==typeof e)return dc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dc(e,t):void 0}}function dc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var fc="msa-showZoomStar";const pc=function(){return Yn.gK.compose(Yn.gK.model("DialogQueueSessionMixin",{}).volatile(function(){return{queueOfDialogs:[]}}).views(function(e){return{get DialogComponent(){var t;return null===(t=e.queueOfDialogs[0])||void 0===t?void 0:t[0]},get DialogProps(){var t;return null===(t=e.queueOfDialogs[0])||void 0===t?void 0:t[1]}}}).actions(function(e){return{removeActiveDialog:function(){e.queueOfDialogs=e.queueOfDialogs.slice(1)},queueDialog:function(t){var n,r,o=this,i=(n=t(function(){o.removeActiveDialog()}),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(n,r)||Ss(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],l=i[1];e.queueOfDialogs=[].concat(function(e){return function(e){if(Array.isArray(e))return xs(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ss(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.queueOfDialogs),[[a,l]])}}}),Yn.gK.model({drawLabels:ds,labelsAlignRight:fs,treeAreaWidth:Yn.gK.optional(Yn.gK.number,400),treeWidth:Yn.gK.optional(Yn.gK.number,300),treeWidthMatchesArea:ps,showBranchLen:hs,drawTree:gs,drawNodeBubbles:ms}).actions(function(e){return{setTreeWidthMatchesArea:function(t){e.treeWidthMatchesArea=t},setTreeAreaWidth:function(t){e.treeAreaWidth=Math.round(t)},setTreeWidth:function(t){e.treeWidth=Math.round(t)},setLabelsAlignRight:function(t){e.labelsAlignRight=t},setDrawTree:function(t){e.drawTree=t},setShowBranchLen:function(t){e.showBranchLen=t},setDrawNodeBubbles:function(t){e.drawNodeBubbles=t},setDrawLabels:function(t){e.drawLabels=t}}}),Yn.gK.model({bgColor:cs,colorSchemeName:us}).actions(function(e){return{setColorSchemeName:function(t){e.colorSchemeName=t},setBgColor:function(t){e.bgColor=t}}}),Yn.gK.model("MsaView",{id:ya,showDomains:os,hideGaps:is,allowedGappyness:100,contrastLettering:as,subFeatureRows:ls,type:Yn.gK.literal("MsaView"),drawMsaLetters:ss,height:Yn.gK.optional(Yn.gK.number,550),rowHeight:16,scrollY:0,scrollX:0,colWidth:12,treeFilehandle:Yn.gK.maybe(ka),msaFilehandle:Yn.gK.maybe(ka),treeMetadataFilehandle:Yn.gK.maybe(ka),gffFilehandle:Yn.gK.maybe(ka),currentAlignment:0,collapsed:Yn.gK.array(Yn.gK.string),collapsedLeaves:Yn.gK.array(Yn.gK.string),showOnly:Yn.gK.maybe(Yn.gK.string),turnedOffTracks:Yn.gK.map(Yn.gK.boolean),data:Yn.gK.optional(Yn.gK.model({tree:Yn.gK.maybe(Yn.gK.string),msa:Yn.gK.maybe(Yn.gK.string),treeMetadata:Yn.gK.maybe(Yn.gK.string)}).actions(function(e){return{setTree:function(t){e.tree=t},setMSA:function(t){e.msa=t},setTreeMetadata:function(t){e.treeMetadata=t}}}).postProcessSnapshot(function(e){var t=e.tree,n=e.msa,r=e.treeMetadata,o=5e4;return{tree:t&&t.length>o?void 0:t,msa:n&&n.length>o?void 0:n,treeMetadata:r&&r.length>o?void 0:r}}),{tree:"",msa:"",treeMetadata:""}),featureFilters:Yn.gK.map(Yn.gK.boolean),relativeTo:Yn.gK.maybe(Yn.gK.string)})).volatile(function(){return{headerHeight:0,status:void 0,highResScaleFactor:2,showZoomStar:(0,E.zll)(fc,!1),loadingMSA:!1,loadingTree:!1,volatileWidth:void 0,resizeHandleWidth:5,blockSize:500,mouseRow:void 0,mouseCol:void 0,mouseClickRow:void 0,mouseClickCol:void 0,hoveredTreeNode:void 0,highlightedColumns:void 0,nref:0,minimapHeight:56,conservationTrackHeight:40,marginLeft:20,error:void 0,annotPos:void 0,interProAnnotations:void 0}}).actions(function(e){return{drawRelativeTo:function(t){e.relativeTo=t},setHideGaps:function(t){e.hideGaps=t},setAllowedGappyness:function(t){e.allowedGappyness=t},setContrastLettering:function(t){e.contrastLettering=t},setLoadingMSA:function(t){e.loadingMSA=t},setShowZoomStar:function(t){e.showZoomStar=t},setLoadingTree:function(t){e.loadingTree=t},setWidth:function(t){e.volatileWidth=t},setHeight:function(t){e.height=t},setError:function(t){e.error=t},setMousePos:function(t,n){e.mouseCol=t,e.mouseRow=n},setHoveredTreeNode:function(t){if(t){var n=e.hierarchy.find(function(e){return e.data.id===t});if(n){var r=n.leaves().map(function(e){return e.data.name});e.hoveredTreeNode={nodeId:t,descendantNames:r}}else e.hoveredTreeNode=void 0}else e.hoveredTreeNode=void 0},setHighlightedColumns:function(t){e.highlightedColumns=t},setShowDomains:function(t){e.showDomains=t},setSubFeatureRows:function(t){e.subFeatureRows=t},setMouseClickPos:function(t,n){e.mouseClickCol=t,e.mouseClickRow=n},setRowHeight:function(t){e.rowHeight=t},setColWidth:function(t){e.colWidth=t},setScrollY:function(t){e.scrollY=t},setCurrentAlignment:function(t){e.currentAlignment=t},toggleCollapsed:function(t){e.collapsed.includes(t)?e.collapsed.remove(t):e.collapsed.push(t)},toggleCollapsedLeaf:function(t){e.collapsedLeaves.includes(t)?e.collapsedLeaves.remove(t):e.collapsedLeaves.push(t)},setShowOnly:function(t){e.showOnly=t},setData:function(t){e.data=(0,Yn.wg)(t)},setMSAFilehandle:function(t){e.msaFilehandle=t},setTreeFilehandle:function(t){e.treeFilehandle=t},setGFFFilehandle:function(t){e.gffFilehandle=t},setMSA:function(t){e.data.setMSA(t)},setTree:function(t){e.data.setTree(t)},setTreeMetadata:function(t){e.data.setTreeMetadata(t)}}}).views(function(e){return{get hideGapsEffective(){return e.hideGaps&&(e.collapsed.length>0||e.collapsedLeaves.length>0||e.allowedGappyness<100)},get realAllowedGappyness(){return this.hideGapsEffective?e.allowedGappyness:100},get actuallyShowDomains(){return e.showDomains&&!!e.interProAnnotations},get viewInitialized(){return void 0!==e.volatileWidth},get width(){if(void 0===e.volatileWidth)throw new Error("not initialized");return e.volatileWidth}}}).views(function(e){return{extraViewMenuItems:function(){return[]},get colorScheme(){return De.A[e.colorSchemeName]},get header(){var e;return(null===(e=this.MSA)||void 0===e?void 0:e.getHeader())||{}},get alignmentNames(){var e;return(null===(e=this.MSA)||void 0===e?void 0:e.alignmentNames)||[]},get noTree(){return!!this.tree.noTree},get noDomains(){return!e.interProAnnotations},menuItems:function(){return[]},get treeMetadata(){return e.data.treeMetadata?JSON.parse(e.data.treeMetadata):{}},get MSA(){var t=e.data.msa;return t?function(e){return za.test(e)}(t)?new dl(t,e.currentAlignment):yl.sniff(t)?new yl(t):t.startsWith(">")?new Il(t):t.startsWith("SEQ")?new Ml(t):new Dl(t):null},get numColumns(){var e;return((null===(e=this.MSA)||void 0===e?void 0:e.getWidth())||0)-this.blanks.length},get tree(){var t,n,r,o=e.data.tree;return Us(o?tl(o.startsWith("BioTreeContainer")?function(e){var t=new Map;e.forEach(function(e){t.set(e.id,ys(ys({},e),{},{id:"".concat(e.id),name:"".concat(e.id),parent:void 0!==e.parent?"".concat(e.parent):void 0,children:[]}))});var n=[];return e.forEach(function(e){var r=t.get(e.id);if(void 0!==e.parent){var o=t.get(e.parent);o?o.children.push(r):n.push(r)}else n.push(r)}),n[0]}((n=function(e){for(var t={},n=e.trim(),r=n.startsWith("{")&&n.endsWith("}")?n.slice(1,-1).trim():n,o=0;o<r.length;){for(;o<r.length&&/\s/.test(r[o]);)o++;if(o>=r.length)break;for(var i=o;o<r.length&&/\w/.test(r[o]);)o++;if(o>=r.length||" "!==r[o]&&"{"!==r[o]){for(;o<r.length&&","!==r[o];)o++;o<r.length&&o++}else{for(var a=r.slice(i,o).trim();o<r.length&&/\s/.test(r[o]);)o++;if(o>=r.length||"{"!==r[o]){for(;o<r.length&&","!==r[o];)o++;o<r.length&&o++}else{var l=o+1,s=1;for(o++;o<r.length&&s>0;)"{"===r[o]?s++:"}"===r[o]&&s--,o++;if(0===s){var c=r.slice(l,o-1).trim();t[a]=c}for(;o<r.length&&","!==r[o];)o++;o<r.length&&o++}}}return t}(o.replace(/\s+/g," ").replace(/\s*{\s*/g,"{").replace(/\s*}\s*/g,"}").replace(/\s*,\s*/g,",").replace(/\s*::\s*=\s*/g,"::=").replace(/^.*?::=/,"")),r=Object.fromEntries(function(e){for(var t=[],n=0;n<e.length;){for(;n<e.length&&/\s/.test(e[n]);)n++;if(n>=e.length)break;if("{"===e[n]){var r=n+1,o=1;for(n++;n<e.length&&o>0;)"{"===e[n]?o++:"}"===e[n]&&o--,n++;if(0===o){var i=js(e.slice(r,n-1).trim());i&&t.push(i)}}else for(;n<e.length&&"{"!==e[n];)n++}return t}(n.fdict).map(function(e){return[e.id,Ls[e.name]||e.name]})),function(e){for(var t=[],n=0;n<e.length;){for(;n<e.length&&/\s/.test(e[n]);)n++;if(n>=e.length)break;if("{"===e[n]){var r=n+1,o=1;for(n++;n<e.length&&o>0;)"{"===e[n]?o++:"}"===e[n]&&o--,n++;if(0===o){var i=zs(e.slice(r,n-1).trim());i&&t.push(i)}}else for(;n<e.length&&"{"!==e[n];)n++}return t}(n.nodes).map(function(e){var t=e.features;return Ns(Ns({},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Ds)),Object.fromEntries(t.map(function(e){return[r[e.featureid],e.value]})))}))):qa(o.startsWith("SEQ")?function(e){const t=e.split("\n").map(e=>e.trim()).filter(e=>!!e),n=[];let r="";for(const e of t)if(e.startsWith("SEQ"))n.push(e);else{if(e.startsWith("DATA"))continue;if(e.startsWith("//"))break;r=e}return{tree:r,seqs:n.map(e=>{const[,t,n,r,o,i,a,l,s]=e.split(" ");return{species:t,protein:n,chr:r,start:+o,end:+i,strand:+a,geneId:l,unknown:s}})}}(o).tree:o)):(null===(t=this.MSA)||void 0===t?void 0:t.getTree())||{noTree:!0,children:[],id:"empty",name:"empty"})},get rowNames(){return this.leaves.map(function(e){return e.data.name})},get mouseOverRowName(){var t=e.mouseRow;return void 0===t?void 0:this.rowNames[t]},get hoveredInsertion(){var t=e.mouseCol,n=e.mouseRow;if(void 0!==t&&void 0!==n){var r=this.rowNames[n];if(r){var o=this.insertionPositions.get(r);if(o){var i=o.find(function(e){return e.pos===t});return i?{rowName:r,col:t,letters:i.letters}:void 0}}}},get root(){var t=Ra(this.tree,function(e){return e.children}).sum(function(e){return e.children?0:1}).sort(function(e,t){return function(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}(e.data.length||1,t.data.length||1)});if(e.showOnly){var n=t.find(function(t){return t.data.id===e.showOnly});n&&(t=n)}return[].concat(cc(e.collapsed),cc(e.collapsedLeaves)).map(function(e){return t.find(function(t){return t.data.id===e})}).filter(E.z2o).forEach(function(e){(0,jn.ap)(e)}),t},get msaAreaWidth(){return e.width-e.treeAreaWidth},get treeAreaWidthMinusMargin(){return e.treeAreaWidth-e.marginLeft},get blanks(){var t=this,n=e.hideGapsEffective,r=e.realAllowedGappyness;if(!n)return[];var o=this.leaves.map(function(e){var n;return null===(n=t.MSA)||void 0===n?void 0:n.getRow(e.data.name)}).filter(E.z2o);if(0===o.length)return[];for(var i=o[0].length,a=o.length,l=Math.ceil(r/100*a),s=new Uint16Array(i),c=0;c<a;c++)for(var u=o[c],d=0;d<i;d++)u.charCodeAt(d)-45>>>0<=1&&s[d]++;for(var f=[],p=0;p<i;p++)s[p]>=l&&f.push(p);return f},get blanksSet(){return new Set(this.blanks)},get insertionPositions(){var t=e.hideGapsEffective,n=this.blanks,r=this.rows,o=n.length;if(0===o||!t)return new Map;var i,a=new Map,l=sc(r);try{for(l.s();!(i=l.n()).done;){for(var s=lc(i.value,2),c=s[0],u=s[1],d=[],f=0,p=0,h=-1,g=[],m=u.length,A=0;A<m;A++)p<o&&n[p]===A?(u.charCodeAt(A)-45>>>0<=1||(h===f?g.push(u[A]):(g.length>0&&d.push({pos:h,letters:g.join("")}),h=f,g=[u[A]])),p++):f++;g.length>0&&d.push({pos:h,letters:g.join("")}),d.length>0&&a.set(c,d)}}catch(e){l.e(e)}finally{l.f()}return a},get rows(){var e=this.MSA;return this.leaves.map(function(t){return[t.data.name,null==e?void 0:e.getRow(t.data.name)]}).filter(function(e){return!!e[1]})},get numRows(){return this.rows.length},get rowMap(){return new Map(this.rows)},get columns(){var e=this;return Object.fromEntries(this.rows.map(function(t,n){return[t[0],e.columns2d[n]]}))},get columns2d(){var t=this,n=e.hideGapsEffective;return this.rows.map(function(e){return e[1]}).map(function(e){return n?(0,jn.pw)(t.blanks,e):e})},get fontSize(){return Math.min(Math.max(6,e.rowHeight-3),18)},get colStats(){var e,t=[],n=sc(this.columns2d);try{for(n.s();!(e=n.n()).done;)for(var r=e.value,o=0;o<r.length;o++){var i=t[o]||{},a=r[o];i[a]||(i[a]=0),i[a]++,t[o]=i}}catch(e){n.e(e)}finally{n.f()}return t},get colStatsSums(){return this.colStats.map(function(e){return(0,E.czq)(Object.values(e))})},get sequenceType(){var e,t=new Set,n=sc(this.colStats);try{for(n.s();!(e=n.n()).done;)for(var r=e.value,o=0,i=Object.keys(r);o<i.length;o++){var a=i[o].toUpperCase();"-"!==a&&"."!==a&&t.add(a)}}catch(e){n.e(e)}finally{n.f()}var l=new Set(["A","C","G","T","N"]),s=new Set(["A","C","G","U","N"]),c=cc(t).every(function(e){return l.has(e)}),u=cc(t).every(function(e){return s.has(e)});return c&&!t.has("U")?"dna":u&&!t.has("T")?"rna":"amino"},get colConsensus(){var e=this.colStats,t=this.colStatsSums;return e.map(function(e,n){var r=t[n],o=0,i="";for(var a in e){var l=e[a];l>o&&"-"!==a&&"."!==a&&(o=l,i=a)}var s=o/r;return{letter:i,color:s>.4?"hsl(240, 30%, ".concat(100*Math.max(1-s/3,.3),"%)"):void 0}})},get colClustalX(){var e=this.colStats,t=this.colStatsSums;return e.map(function(e,n){var r,o,i,a,l,s,c,u,d,f,p,h,g,m,A,b,v,y,w,C,S=t[n],x={},I=null!==(r=e.W)&&void 0!==r?r:0,E=null!==(o=e.L)&&void 0!==o?o:0,k=null!==(i=e.V)&&void 0!==i?i:0,B=null!==(a=e.I)&&void 0!==a?a:0,M=null!==(l=e.M)&&void 0!==l?l:0,R=null!==(s=e.A)&&void 0!==s?s:0,P=null!==(c=e.F)&&void 0!==c?c:0,_=null!==(u=e.C)&&void 0!==u?u:0,T=null!==(d=e.H)&&void 0!==d?d:0,O=null!==(f=e.P)&&void 0!==f?f:0,D=null!==(p=e.R)&&void 0!==p?p:0,Q=null!==(h=e.K)&&void 0!==h?h:0,N=null!==(g=e.Q)&&void 0!==g?g:0,F=null!==(m=e.E)&&void 0!==m?m:0,L=null!==(A=e.D)&&void 0!==A?A:0,j=null!==(b=e.T)&&void 0!==b?b:0,z=null!==(v=e.S)&&void 0!==v?v:0,$=null!==(y=e.G)&&void 0!==y?y:0,H=null!==(w=e.Y)&&void 0!==w?w:0,G=null!==(C=e.N)&&void 0!==C?C:0,V=I+E+k+B+M+R+P+_+T+O+H,W=Q+D,U=N+F,Y=F+L,K=j+z;return V/S>.6&&(x.W="rgb(128,179,230)",x.L="rgb(128,179,230)",x.V="rgb(128,179,230)",x.A="rgb(128,179,230)",x.I="rgb(128,179,230)",x.M="rgb(128,179,230)",x.F="rgb(128,179,230)",x.C="rgb(128,179,230)"),(W/S>.6||Q/S>.8||D/S>.8||N/S>.8)&&(x.K="#d88",x.R="#d88"),(W/S>.6||U/S>.5||F/S>.8||N/S>.8||L/S>.8)&&(x.E="rgb(192, 72, 192)"),(W/S>.6||Y/S>.5||Q/S>.8||D/S>.8||N/S>.8)&&(x.D="rgb(204, 77, 204)"),(G/S>.5||H/S>.85)&&(x.N="#8f8"),(W/S>.6||U/S>.6||N/S>.85||F/S>.85||Q/S>.85||D/S>.85)&&(x.Q="#8f8"),(V/S>.6||K/S>.5||z/S>.85||j/S>.85)&&(x.S="rgb(26,204,26)",x.T="rgb(26,204,26)"),_/S>.85&&(x.C="rgb(240, 128, 128)"),$/S>0&&(x.G="rgb(240, 144, 72)"),O/S>0&&(x.P="rgb(204, 204, 0)"),(V/S>.6||I/S>.85||H/S>.85||R/S>.85||_/S>.85||O/S>.85||N/S>.85||P/S>.85||T/S>.85||B/S>.85||E/S>.85||M/S>.85||k/S>.85)&&(x.H="rgb(26, 179, 179)",x.Y="rgb(26, 179, 179)"),x})},get conservation(){var e=this.colStats,t=this.colStatsSums,n="amino"===this.sequenceType?20:4,r=Math.log2(n);return e.map(function(e,n){var o=t[n];if(!o)return 0;var i=(e["-"]||0)+(e["."]||0),a=o-i;if(0===a)return 0;for(var l={},s=0,c=Object.keys(e);s<c.length;s++){var u=c[s];if("-"!==u&&"."!==u){var d=u.toUpperCase();l[d]=(l[d]||0)+e[u]}}for(var f=0,p=0,h=Object.keys(l);p<h.length;p++){var g=l[h[p]]/a;g>0&&(f-=g*Math.log2(g))}var m=i/o;return Math.max(0,1-f/r)*(1-m)})},get hierarchy(){var t=this.root;return function(){var e=Qa,t=1,n=1,r=!1;function o(o){var i,a=0;o.eachAfter(function(t){var n=t.children;n?(t.x=function(e){return e.reduce(Na,0)/e.length}(n),t.y=function(e){return 1+e.reduce(Fa,0)}(n)):(t.x=i?a+=e(t,i):0,t.y=0,i=t)});var l=function(e){for(var t;t=e.children;)e=t[0];return e}(o),s=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(o),c=l.x-e(l,s)/2,u=s.x+e(s,l)/2;return o.eachAfter(r?function(e){e.x=(e.x-o.x)*t,e.y=(o.y-e.y)*n}:function(e){e.x=(e.x-c)/(u-c)*t,e.y=(1-(o.y?e.y/o.y:1))*n})}return o.separation=function(t){return arguments.length?(e=t,o):e},o.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],o):r?null:[t,n]},o.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],o):r?[t,n]:null},o}().size([this.totalHeight,e.treeWidth]).separation(function(){return 1})(t),(0,jn.zu)(t,t.data.length=0,e.treeWidth/(0,jn.Ru)(t)),t},get totalHeight(){return this.root.leaves().length*e.rowHeight},get leaves(){return this.hierarchy.leaves()},get allBranchesLength0(){return this.hierarchy.links().every(function(e){return!e.source.data.length})},get showBranchLenEffective(){return!this.allBranchesLength0&&e.showBranchLen}}}).views(function(e){return{get totalWidth(){return e.numColumns*e.colWidth}}}).views(function(e){return{get dataInitialized(){return(e.data.msa||e.data.tree)&&!e.error},get blocksX(){return function(e){for(var t=e.mapWidth,n=e.blockSize,r=e.viewportX,o=e.viewportWidth,i=Math.max(0,Math.min(r,t-o)),a=Math.floor(i/n),l=Math.floor((i+o-1)/n),s=[],c=a;c<=l;c++)s.push(c*n);return s}({viewportWidth:e.msaAreaWidth,viewportX:-e.scrollX,blockSize:e.blockSize,mapWidth:e.totalWidth})},get blocksY(){return function(e){for(var t=e.mapHeight,n=e.blockSize,r=e.viewportY,o=e.viewportHeight,i=Math.max(0,Math.min(r,t*n-o)),a=Math.floor(i/n),l=Math.floor((i+o-1)/n),s=[],c=a;c<=l;c++)s.push(c*n);return s}({viewportHeight:e.height,viewportY:-e.scrollY,blockSize:e.blockSize,mapHeight:e.totalHeight})}}}).views(function(e){return{get blocks2d(){var t,n=[],r=sc(e.blocksY);try{for(r.s();!(t=r.n()).done;){var o,i=t.value,a=sc(e.blocksX);try{for(a.s();!(o=a.n()).done;){var l=o.value;n.push([l,i])}}catch(e){a.e(e)}finally{a.f()}}}catch(e){r.e(e)}finally{r.f()}return n},get isLoading(){return e.loadingMSA||e.loadingTree},get maxScrollX(){return Math.min(-e.totalWidth+(e.msaAreaWidth-100),0)},get showMsaLetters(){return e.drawMsaLetters&&e.rowHeight>=5&&e.colWidth>e.rowHeight/2},get showTreeText(){return e.drawLabels&&e.rowHeight>=5}}}).actions(function(e){return{setDrawMsaLetters:function(t){e.drawMsaLetters=t},calculateNeighborJoiningTreeFromMSA:function(){if(e.rows.length<2)throw new Error("Need at least 2 sequences to build a tree");var t=Ts(e.rows);e.setTree(t)},resetZoom:function(){e.setColWidth(12),e.setRowHeight(16)},zoomOutHorizontal:function(){e.colWidth=Math.max(1,Math.floor(.75*e.colWidth)),e.scrollX=(0,E.qE8)(e.scrollX,e.maxScrollX,0)},zoomInHorizontal:function(){e.colWidth=Math.ceil(1.5*e.colWidth),e.scrollX=(0,E.qE8)(e.scrollX,e.maxScrollX,0)},zoomInVertical:function(){e.rowHeight=Math.ceil(1.5*e.rowHeight)},zoomOutVertical:function(){e.rowHeight=Math.max(1.5,Math.floor(.75*e.rowHeight))},zoomIn:function(){(0,Nn.Rn)(function(){e.colWidth=Math.ceil(1.5*e.colWidth),e.rowHeight=Math.ceil(1.5*e.rowHeight),e.scrollX=(0,E.qE8)(e.scrollX,e.maxScrollX,0)})},zoomOut:function(){(0,Nn.Rn)(function(){e.colWidth=Math.max(1,Math.floor(.75*e.colWidth)),e.rowHeight=Math.max(1.5,Math.floor(.75*e.rowHeight)),e.scrollX=(0,E.qE8)(e.scrollX,e.maxScrollX,0)})},setInterProAnnotations:function(t){e.interProAnnotations=t},doScrollY:function(t){e.scrollY=(0,E.qE8)(e.scrollY+t,10-e.totalHeight,0)},doScrollX:function(t){this.setScrollX(e.scrollX+t)},setScrollX:function(t){e.scrollX=(0,E.qE8)(t,e.maxScrollX,0)},toggleTrack:function(t){e.turnedOffTracks.has(t)?e.turnedOffTracks.delete(t):e.turnedOffTracks.set(t,!0)},setStatus:function(t){e.status=t}}}).views(function(e){return{get labelsWidth(){var t=0,n=e.rowHeight,r=e.leaves,o=e.treeMetadata,i=e.fontSize;if(n>5){var a,l=sc(r);try{for(l.s();!(a=l.n()).done;){var s,c=a.value;t=Math.max(Cs((null===(s=o[c.data.name])||void 0===s?void 0:s.genome)||c.data.name,i),t)}}catch(e){l.e(e)}finally{l.f()}}return t},get secondaryStructureConsensus(){var t;return null===(t=e.MSA)||void 0===t?void 0:t.secondaryStructureConsensus},get seqConsensus(){var t;return null===(t=e.MSA)||void 0===t?void 0:t.seqConsensus},get adapterTrackModels(){var t=e.rowHeight,n=e.MSA,r=e.hideGapsEffective,o=e.blanks;return(null==n?void 0:n.tracks.filter(function(e){return e.data}).map(function(e){return{model:ic(ic({},e),{},{data:r?(0,jn.pw)(o,e.data):e.data,height:t}),ReactComponent:ns}}))||[]},get tracks(){var t={model:{id:"conservation",name:"Conservation",height:e.conservationTrackHeight},ReactComponent:Zl};return[].concat(cc(this.adapterTrackModels),[t])},get turnedOnTracks(){return this.tracks.filter(function(t){return!e.turnedOffTracks.has(t.model.id)})},get showHorizontalScrollbar(){return e.msaAreaWidth<e.totalWidth},get rowNamesSet(){return new Map(e.rowNames.map(function(e,t){return[e,t]}))},visibleColToRowLetter:function(t,n){var r,o=e.rowMap,i=e.blanks;return null===(r=o.get(t))||void 0===r?void 0:r[Ys(i,n)]},visibleColToSeqPos:function(t,n){return function(e){var t=e.rowName,n=e.visibleCol,r=e.rowMap,o=e.blanks,i=r.get(t);return void 0!==i?function(e){var t=e.seq,n=Ys(e.blanks,e.visibleCol),r=t.length;if(!(n<r&&(0,jn.z3)(t[n]))){for(var o=0,i=0;i<n&&i<r;i++)(0,jn.z3)(t[i])||o++;return n<r?o:void 0}}({seq:i,visibleCol:n,blanks:o}):void 0}({rowName:t,visibleCol:n,rowMap:e.rowMap,blanks:e.blanks})},visibleColToSeqPosOneBased:function(e,t){var n=this.visibleColToSeqPos(e,t);return void 0!==n?n+1:void 0},globalColToVisibleCol:function(t){var n=e.blanks;return e.hideGapsEffective?function(e,t){for(var n=0,r=e.length-1;n<=r;){var o=Math.floor((n+r)/2);if(e[o]===t)return;e[o]<t?n=o+1:r=o-1}return t-n}(n,t):t},seqPosToGlobalCol:function(t,n){var r=e.rows,o=this.rowNamesSet.get(t);return void 0!==o&&r[o]?function(e){for(var t=e.row,n=e.seqPos,r=0,o=0;o<t.length;){if(!(0,jn.z3)(t[o])){if(r===n)return o;r++}o++}return 0===n?0:o}({row:r[o][1],seqPos:n}):0},seqPosToVisibleCol:function(e,t){var n=this.seqPosToGlobalCol(e,t);return this.globalColToVisibleCol(n)}}}).views(function(e){return{get msaAreaHeight(){return e.height-(e.showHorizontalScrollbar?e.minimapHeight:0)-e.headerHeight},get totalTrackAreaHeight(){return(0,E.czq)(e.turnedOnTracks.map(function(e){return e.model.height}))},get tidyInterProAnnotationTypes(){var e,t=new Map,n=sc(this.tidyInterProAnnotations);try{for(n.s();!(e=n.n()).done;){var r=e.value;t.set(r.accession,r)}}catch(e){n.e(e)}finally{n.f()}return t},get tidyInterProAnnotations(){var t=[],n=e.interProAnnotations;if(n)for(var r=0,o=Object.entries(n);r<o.length;r++){var i,a=lc(o[r],2),l=a[0],s=sc(a[1].matches);try{for(s.s();!(i=s.n()).done;){var c=i.value,u=c.signature,d=c.locations,f=u.entry;if(f){var p,h=f.name,g=f.accession,m=f.description,A=sc(d);try{for(A.s();!(p=A.n()).done;){var b=p.value,v=b.start,y=b.end;t.push({id:l,name:h,accession:g,description:m,start:v,end:y})}}catch(e){A.e(e)}finally{A.f()}}}}catch(e){s.e(e)}finally{s.f()}}return t.toSorted(function(e,t){return(0,jn.Il)(t)-(0,jn.Il)(e)})},get tidyFilteredInterProAnnotations(){return this.tidyInterProAnnotations.filter(function(t){return e.featureFilters.get(t.accession)})},get tidyFilteredGatheredInterProAnnotations(){return(0,E.$zQ)(this.tidyFilteredInterProAnnotations,function(e){return e.id})}}}).views(function(e){return{get showVerticalScrollbar(){return e.msaAreaHeight<e.totalHeight}}}).views(function(e){return{get verticalScrollbarWidth(){return e.showVerticalScrollbar?20:0},get fillPalette(){return t=cc(e.tidyInterProAnnotationTypes.keys()),n=Math.min(t.length-1,As.A.length-1),r=As.A[n],Object.fromEntries(t.map(function(e,t){return[e,r[t]]}));var t,n,r},get strokePalette(){return Object.fromEntries(Object.entries(this.fillPalette).map(function(e){var t=lc(e,2),n=t[0],r=t[1];return[n,(0,Ba.Mj)(r).darken(.1).toHex()]}))},getRowData:function(t){var n;return{data:null===(n=e.MSA)||void 0===n?void 0:n.getRowData(t),treeMetadata:e.treeMetadata[t]}}}}).actions(function(e){return{setHeaderHeight:function(t){e.headerHeight=t},setConservationTrackHeight:function(t){e.conservationTrackHeight=t},reset:function(){e.setData({tree:"",msa:""}),e.resetZoom(),e.setError(void 0),e.setScrollY(0),e.setScrollX(0),e.setCurrentAlignment(0),e.setTreeFilehandle(void 0),e.setMSAFilehandle(void 0)},exportSVG:function(t){return rc(ec().m(function n(){var r,i,a;return ec().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,Promise.resolve().then(o.bind(o,8654));case 1:return r=n.v,i=r.renderToSvg,n.n=2,i(e,t);case 2:a=n.v,Js(new Blob([a],{type:"image/svg+xml"}),"image.svg");case 3:return n.a(2)}},n)}))()},incrementRef:function(){e.nref++},initFilter:function(t){void 0===e.featureFilters.get(t)&&e.featureFilters.set(t,!0)},setFilter:function(t,n){e.featureFilters.set(t,n)},fit:function(){e.rowHeight=e.msaAreaHeight/e.numRows,e.colWidth=e.msaAreaWidth/e.numColumns,e.scrollX=0,e.scrollY=0},fitVertically:function(){e.rowHeight=e.msaAreaHeight/e.numRows,e.scrollY=0},fitHorizontally:function(){e.colWidth=e.msaAreaWidth/e.numColumns,e.scrollX=0},afterCreate:function(){var t=this;(0,Yn.LF)(e,(0,Nn.fm)(function(){var n,r=sc(e.tidyInterProAnnotationTypes.keys());try{for(r.s();!(n=r.n()).done;){var o=n.value;t.initFilter(o)}}catch(e){r.e(e)}finally{r.f()}})),(0,Yn.LF)(e,(0,Nn.fm)(function(){(0,E.lYs)(fc,e.showZoomStar)})),(0,Yn.LF)(e,(0,Nn.fm)(rc(ec().m(function t(){var n,r,o;return ec().w(function(t){for(;;)switch(t.p=t.n){case 0:if(!(n=e.treeFilehandle)){t.n=5;break}return t.p=1,e.setLoadingTree(!0),r=e,t.n=2,(0,E.JCG)(ba(n));case 2:r.setTree.call(r,t.v),"BlobLocation"===n.locationType&&e.setTreeFilehandle(void 0),t.n=4;break;case 3:t.p=3,o=t.v,console.error(o),e.setError(o);case 4:return t.p=4,e.setLoadingTree(!1),t.f(4);case 5:return t.a(2)}},t,null,[[1,3,4,5]])})))),(0,Yn.LF)(e,(0,Nn.fm)(rc(ec().m(function t(){var n,r,o;return ec().w(function(t){for(;;)switch(t.p=t.n){case 0:if(!(n=e.treeMetadataFilehandle)){t.n=4;break}return t.p=1,r=e,t.n=2,(0,E.JCG)(ba(n));case 2:r.setTreeMetadata.call(r,t.v),t.n=4;break;case 3:t.p=3,o=t.v,console.error(o),e.setError(o);case 4:return t.a(2)}},t,null,[[1,3]])})))),(0,Yn.LF)(e,(0,Nn.fm)(rc(ec().m(function t(){var n,r,o,i,a;return ec().w(function(t){for(;;)switch(t.p=t.n){case 0:if(!(n=e.gffFilehandle)){t.n=4;break}return t.p=1,t.n=2,(0,E.JCG)(ba(n));case 2:r=t.v,o=zl(r),i=Wl(o),e.setInterProAnnotations(i),e.setShowDomains(!0),"BlobLocation"===n.locationType&&e.setGFFFilehandle(void 0),t.n=4;break;case 3:t.p=3,a=t.v,console.error(a),e.setError(a);case 4:return t.a(2)}},t,null,[[1,3]])})))),(0,Yn.LF)(e,(0,Nn.fm)(rc(ec().m(function t(){var n,r,o;return ec().w(function(t){for(;;)switch(t.p=t.n){case 0:if(!(n=e.msaFilehandle)){t.n=5;break}return t.p=1,e.setLoadingMSA(!0),e.setError(void 0),t.n=2,(0,E.JCG)(ba(n));case 2:r=t.v,(0,Nn.Rn)(function(){e.setMSA(r),"BlobLocation"===n.locationType&&e.setMSAFilehandle(void 0)}),t.n=4;break;case 3:t.p=3,o=t.v,console.error(o),e.setError(o);case 4:return t.p=4,e.setLoadingMSA(!1),t.f(4);case 5:return t.a(2)}},t,null,[[1,3,4,5]])})))),(0,Yn.LF)(e,(0,Nn.fm)(function(){e.colorSchemeName.includes("dynamic")&&(e.colStats,e.colStatsSums),e.columns})),(0,Yn.LF)(e,(0,Nn.fm)(rc(ec().m(function t(){return ec().w(function(t){for(;;)switch(t.n){case 0:e.treeWidthMatchesArea&&e.setTreeWidth(Math.max(50,e.treeAreaWidth-e.labelsWidth-10-e.marginLeft));case 1:return t.a(2)}},t)}))))}}}).postProcessSnapshot(function(e){var t=e,n=t.data,r=n.tree,o=n.msa,i=n.treeMetadata,a=t.showDomains,l=t.hideGaps,s=t.allowedGappyness,c=t.contrastLettering,u=t.subFeatureRows,d=t.drawMsaLetters,f=t.height,p=t.rowHeight,h=t.scrollY,g=t.scrollX,m=t.colWidth,A=t.currentAlignment,b=t.collapsed,v=t.collapsedLeaves,y=t.showOnly,w=t.turnedOffTracks,C=t.featureFilters,S=t.relativeTo,x=t.bgColor,I=t.colorSchemeName,E=t.drawLabels,k=t.labelsAlignRight,B=t.treeAreaWidth,M=t.treeWidth,R=t.treeWidthMatchesArea,P=t.showBranchLen,_=t.drawTree,T=t.drawNodeBubbles;return ic(ic(ic(ic(ic(ic(ic(ic(ic(ic(ic(ic(ic(ic(ic(ic(ic(ic(ic(ic(ic(ic(ic(ic(ic(ic(ic(ic(ic({},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,Zs)),{},{data:ic(ic(ic({},e.treeFilehandle?{}:{tree:r}),e.msaFilehandle?{}:{msa:o}),e.treeMetadataFilehandle?{}:{treeMetadata:i})},a!==os?{showDomains:a}:{}),l!==is?{hideGaps:l}:{}),100!==s?{allowedGappyness:s}:{}),c!==as?{contrastLettering:c}:{}),u!==ls?{subFeatureRows:u}:{}),d!==ss?{drawMsaLetters:d}:{}),550!==f?{height:f}:{}),16!==p?{rowHeight:p}:{}),0!==h?{scrollY:h}:{}),0!==g?{scrollX:g}:{}),12!==m?{colWidth:m}:{}),0!==A?{currentAlignment:A}:{}),null!=b&&b.length?{collapsed:b}:{}),null!=v&&v.length?{collapsedLeaves:v}:{}),void 0!==y?{showOnly:y}:{}),w&&Object.keys(w).length>0?{turnedOffTracks:w}:{}),C&&Object.keys(C).length>0?{featureFilters:C}:{}),void 0!==S?{relativeTo:S}:{}),x!==cs?{bgColor:x}:{}),I!==us?{colorSchemeName:I}:{}),E!==ds?{drawLabels:E}:{}),k!==fs?{labelsAlignRight:k}:{}),400!==B?{treeAreaWidth:B}:{}),300!==M?{treeWidth:M}:{}),R!==ps?{treeWidthMatchesArea:R}:{}),P!==hs?{showBranchLen:P}:{}),_!==gs?{drawTree:_}:{}),T!==ms?{drawNodeBubbles:T}:{})})};var hc=o(8181)})(),i})());
242
242
  //# sourceMappingURL=index.js.map