@abtnode/webapp 1.16.23-beta-47ca27f8 → 1.16.23-beta-f25d8f54
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/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/build/asset-manifest.json +48 -45
- package/build/index.html +1 -1
- package/build/service-worker.js +1 -1
- package/build/static/js/1059.6b78f31b.chunk.js +1 -0
- package/build/static/js/{1366.d53a732c.chunk.js → 1366.b7747925.chunk.js} +2 -2
- package/build/static/js/1575.ac804b9b.chunk.js +1 -0
- package/build/static/js/1667.267fe975.chunk.js +1 -0
- package/build/static/js/1986.e119795b.chunk.js +1 -0
- package/build/static/js/2019.957ac6e4.chunk.js +1 -0
- package/build/static/js/233.2bc04303.chunk.js +1 -0
- package/build/static/js/{318.4b19c6e5.chunk.js → 318.4a7b69c2.chunk.js} +1 -1
- package/build/static/js/{3389.b81683f9.chunk.js → 3389.36682ebb.chunk.js} +1 -1
- package/build/static/js/345.5a1ec33e.chunk.js +1 -0
- package/build/static/js/{1884.890fa2b0.chunk.js → 3732.d5b401f7.chunk.js} +1 -1
- package/build/static/js/3803.a97c5d53.chunk.js +1 -0
- package/build/static/js/{3910.fcc88cb8.chunk.js → 3910.b00c998d.chunk.js} +2 -2
- package/build/static/js/3930.83c296cf.chunk.js +1 -0
- package/build/static/js/4423.274b7b46.chunk.js +1 -0
- package/build/static/js/4465.cae5e1c4.chunk.js +1 -0
- package/build/static/js/4512.37518120.chunk.js +1 -0
- package/build/static/js/{4549.d784c0dc.chunk.js → 4549.ed31a818.chunk.js} +1 -1
- package/build/static/js/4775.2d7c403c.chunk.js +1 -0
- package/build/static/js/4804.7049a883.chunk.js +2 -0
- package/build/static/js/{4382.7dabb77f.chunk.js.LICENSE.txt → 4804.7049a883.chunk.js.LICENSE.txt} +2 -20
- package/build/static/js/{4906.b23f9eba.chunk.js → 4906.ea447e53.chunk.js} +1 -1
- package/build/static/js/5462.b844525f.chunk.js +2 -0
- package/build/static/js/{7131.871149b4.chunk.js.LICENSE.txt → 5462.b844525f.chunk.js.LICENSE.txt} +0 -12
- package/build/static/js/{5672.913b0d63.chunk.js → 5672.92e3212a.chunk.js} +1 -1
- package/build/static/js/5748.f486c702.chunk.js +1 -0
- package/build/static/js/6064.36af74fc.chunk.js +1 -0
- package/build/static/js/{6230.90c4c4f0.chunk.js → 6230.9dd9dcab.chunk.js} +1 -1
- package/build/static/js/{5716.e14be278.chunk.js → 6240.18a28066.chunk.js} +1 -1
- package/build/static/js/6281.f6fcbbe9.chunk.js +2 -0
- package/build/static/js/6281.f6fcbbe9.chunk.js.LICENSE.txt +11 -0
- package/build/static/js/6511.0db15ff3.chunk.js +1 -0
- package/build/static/js/6792.4cca0e71.chunk.js +1 -0
- package/build/static/js/6906.8c1d732b.chunk.js +1 -0
- package/build/static/js/6944.25334f06.chunk.js +1 -0
- package/build/static/js/7022.6a2b1919.chunk.js +1 -0
- package/build/static/js/{7096.3b166778.chunk.js → 7096.acb28a42.chunk.js} +1 -1
- package/build/static/js/{7327.bd5ce26d.chunk.js → 7327.b6e61502.chunk.js} +1 -1
- package/build/static/js/{744.3ca8c691.chunk.js → 744.74c12fbb.chunk.js} +1 -1
- package/build/static/js/7880.0efe986f.chunk.js +1 -0
- package/build/static/js/{7913.7536ae3f.chunk.js → 7913.156d7ac7.chunk.js} +1 -1
- package/build/static/js/8170.f345a25f.chunk.js +1 -0
- package/build/static/js/8590.cd333079.chunk.js +1 -0
- package/build/static/js/{9552.9a49abdd.chunk.js → 9552.472773fc.chunk.js} +1 -1
- package/build/static/js/9586.6f73b05e.chunk.js +1 -0
- package/build/static/js/main.54b2704e.js +2 -0
- package/build/static/media/empty-spaces-nft.f2f7da76d96b54cf8a379d6b32edc7f1.svg +58 -0
- package/build/static/media/space-connected.9a4e18fd2bc7d065191b0d241a131c28.svg +3 -0
- package/package.json +1 -1
- package/build/static/js/1059.6beb0803.chunk.js +0 -1
- package/build/static/js/1294.0d2e94ed.chunk.js +0 -1
- package/build/static/js/1575.dc982add.chunk.js +0 -1
- package/build/static/js/1667.db634784.chunk.js +0 -1
- package/build/static/js/2019.362e11ff.chunk.js +0 -1
- package/build/static/js/233.b9324eae.chunk.js +0 -1
- package/build/static/js/3732.1df0e1c9.chunk.js +0 -1
- package/build/static/js/3803.2199f65f.chunk.js +0 -1
- package/build/static/js/3930.a6a9d9a6.chunk.js +0 -1
- package/build/static/js/4382.7dabb77f.chunk.js +0 -2
- package/build/static/js/4423.639cbf7e.chunk.js +0 -1
- package/build/static/js/4465.0b6f1cb0.chunk.js +0 -1
- package/build/static/js/4775.36c4603d.chunk.js +0 -1
- package/build/static/js/5126.a0f7c984.chunk.js +0 -1
- package/build/static/js/5522.5f930e00.chunk.js +0 -1
- package/build/static/js/5748.e1e601a3.chunk.js +0 -1
- package/build/static/js/6511.2c8673c4.chunk.js +0 -1
- package/build/static/js/6906.ab9a96cf.chunk.js +0 -1
- package/build/static/js/6944.324ea8dc.chunk.js +0 -1
- package/build/static/js/7022.cdeb6c71.chunk.js +0 -1
- package/build/static/js/7131.871149b4.chunk.js +0 -2
- package/build/static/js/7880.3033e72c.chunk.js +0 -1
- package/build/static/js/8170.ad23bc4b.chunk.js +0 -1
- package/build/static/js/8590.93cb3284.chunk.js +0 -1
- package/build/static/js/9249.56a634fd.chunk.js +0 -1
- package/build/static/js/9586.7791b2a6.chunk.js +0 -1
- package/build/static/js/main.4f192644.js +0 -2
- /package/build/static/css/{4382.a5e3e6d6.chunk.css → 4804.a5e3e6d6.chunk.css} +0 -0
- /package/build/static/js/{1366.d53a732c.chunk.js.LICENSE.txt → 1366.b7747925.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{3910.fcc88cb8.chunk.js.LICENSE.txt → 3910.b00c998d.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{main.4f192644.js.LICENSE.txt → main.54b2704e.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[5716],{91330:(e,t,o)=>{"use strict";o.d(t,{Z:()=>ae});var n=o(31461),a=o(7896),r=o(5057),i=o(9978),l=o(91213),c=o(32852),s=o(62663),p=o(31383),d=o(2534),u=o(40334);function g(e){return"undefined"!==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function h(e,t){for(let o=0;o<e.length;o+=1)if(t(e[o]))return o;return-1}const m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{ignoreAccents:t=!0,ignoreCase:o=!0,limit:n,matchFrom:a="any",stringify:r,trim:i=!1}=e;return(e,l)=>{let{inputValue:c,getOptionLabel:s}=l,p=i?c.trim():c;o&&(p=p.toLowerCase()),t&&(p=g(p));const d=p?e.filter((e=>{let n=(r||s)(e);return o&&(n=n.toLowerCase()),t&&(n=g(n)),"start"===a?0===n.indexOf(p):n.indexOf(p)>-1})):e;return"number"===typeof n?d.slice(0,n):d}}(),f=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function b(e){const{unstable_isActiveElementInListbox:t=f,unstable_classNamePrefix:o="Mui",autoComplete:n=!1,autoHighlight:i=!1,autoSelect:l=!1,blurOnSelect:g=!1,clearOnBlur:b=!e.freeSolo,clearOnEscape:v=!1,componentName:x="useAutocomplete",defaultValue:Z=(e.multiple?[]:null),disableClearable:y=!1,disableCloseOnSelect:S=!1,disabled:I,disabledItemsFocusable:C=!1,disableListWrap:O=!1,filterOptions:w=m,filterSelectedOptions:P=!1,freeSolo:k=!1,getOptionDisabled:z,getOptionKey:R,getOptionLabel:L=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:T,handleHomeEndKeys:A=!e.freeSolo,id:M,includeInputInList:N=!1,inputValue:E,isOptionEqualToValue:F=((e,t)=>e===t),multiple:W=!1,onChange:D,onClose:B,onHighlightChange:V,onInputChange:j,onOpen:H,open:q,openOnFocus:G=!1,options:K,readOnly:U=!1,selectOnFocus:_=!e.freeSolo,value:J}=e,Q=(0,c.Z)(M);let X=L;X=e=>{const t=L(e);return"string"!==typeof t?String(t):t};const Y=r.useRef(!1),$=r.useRef(!0),ee=r.useRef(null),te=r.useRef(null),[oe,ne]=r.useState(null),[ae,re]=r.useState(-1),ie=i?0:-1,le=r.useRef(ie),[ce,se]=(0,s.Z)({controlled:J,default:Z,name:x}),[pe,de]=(0,s.Z)({controlled:E,default:"",name:x,state:"inputValue"}),[ue,ge]=r.useState(!1),he=r.useCallback(((e,t)=>{if(!(W?ce.length<t.length:null!==t)&&!b)return;let o;if(W)o="";else if(null==t)o="";else{const e=X(t);o="string"===typeof e?e:""}pe!==o&&(de(o),j&&j(e,o,"reset"))}),[X,pe,W,j,de,b,ce]),[me,fe]=(0,s.Z)({controlled:q,default:!1,name:x,state:"open"}),[be,ve]=r.useState(!0),xe=!W&&null!=ce&&pe===X(ce),Ze=me&&!U,ye=Ze?w(K.filter((e=>!P||!(W?ce:[ce]).some((t=>null!==t&&F(e,t))))),{inputValue:xe&&be?"":pe,getOptionLabel:X}):[],Se=(0,p.Z)({filteredOptions:ye,value:ce,inputValue:pe});r.useEffect((()=>{const e=ce!==Se.value;ue&&!e||k&&!e||he(null,ce)}),[ce,he,ue,Se.value,k]);const Ie=me&&ye.length>0&&!U;const Ce=(0,d.Z)((e=>{-1===e?ee.current.focus():oe.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));r.useEffect((()=>{W&&ae>ce.length-1&&(re(-1),Ce(-1))}),[ce,W,ae,Ce]);const Oe=(0,d.Z)((e=>{let{event:t,index:n,reason:a="auto"}=e;if(le.current=n,-1===n?ee.current.removeAttribute("aria-activedescendant"):ee.current.setAttribute("aria-activedescendant","".concat(Q,"-option-").concat(n)),V&&V(t,-1===n?null:ye[n],a),!te.current)return;const r=te.current.querySelector('[role="option"].'.concat(o,"-focused"));r&&(r.classList.remove("".concat(o,"-focused")),r.classList.remove("".concat(o,"-focusVisible")));let i=te.current;if("listbox"!==te.current.getAttribute("role")&&(i=te.current.parentElement.querySelector('[role="listbox"]')),!i)return;if(-1===n)return void(i.scrollTop=0);const l=te.current.querySelector('[data-option-index="'.concat(n,'"]'));if(l&&(l.classList.add("".concat(o,"-focused")),"keyboard"===a&&l.classList.add("".concat(o,"-focusVisible")),i.scrollHeight>i.clientHeight&&"mouse"!==a&&"touch"!==a)){const e=l,t=i.clientHeight+i.scrollTop,o=e.offsetTop+e.offsetHeight;o>t?i.scrollTop=o-i.clientHeight:e.offsetTop-e.offsetHeight*(T?1.3:0)<i.scrollTop&&(i.scrollTop=e.offsetTop-e.offsetHeight*(T?1.3:0))}})),we=(0,d.Z)((e=>{let{event:t,diff:o,direction:a="next",reason:r="auto"}=e;if(!Ze)return;const i=function(e,t){if(!te.current||e<0||e>=ye.length)return-1;let o=e;for(;;){const n=te.current.querySelector('[data-option-index="'.concat(o,'"]')),a=!C&&(!n||n.disabled||"true"===n.getAttribute("aria-disabled"));if(n&&n.hasAttribute("tabindex")&&!a)return o;if(o="next"===t?(o+1)%ye.length:(o-1+ye.length)%ye.length,o===e)return-1}}((()=>{const e=ye.length-1;if("reset"===o)return ie;if("start"===o)return 0;if("end"===o)return e;const t=le.current+o;return t<0?-1===t&&N?-1:O&&-1!==le.current||Math.abs(o)>1?0:e:t>e?t===e+1&&N?-1:O||Math.abs(o)>1?e:0:t})(),a);if(Oe({index:i,reason:r,event:t}),n&&"reset"!==o)if(-1===i)ee.current.value=pe;else{const e=X(ye[i]);ee.current.value=e;0===e.toLowerCase().indexOf(pe.toLowerCase())&&pe.length>0&&ee.current.setSelectionRange(pe.length,e.length)}})),Pe=r.useCallback((()=>{if(!Ze)return;if((()=>{if(-1!==le.current&&Se.filteredOptions&&Se.filteredOptions.length!==ye.length&&Se.inputValue===pe&&(W?ce.length===Se.value.length&&Se.value.every(((e,t)=>X(ce[t])===X(e))):(e=Se.value,t=ce,(e?X(e):"")===(t?X(t):"")))){const e=Se.filteredOptions[le.current];if(e&&ye.some((t=>X(t)===X(e))))return!0}var e,t;return!1})())return;const e=W?ce[0]:ce;if(0!==ye.length&&null!=e){if(te.current)if(null==e)le.current>=ye.length-1?Oe({index:ye.length-1}):Oe({index:le.current});else{const t=ye[le.current];if(W&&t&&-1!==h(ce,(e=>F(t,e))))return;const o=h(ye,(t=>F(t,e)));-1===o?we({diff:"reset"}):Oe({index:o})}}else we({diff:"reset"})}),[ye.length,!W&&ce,P,we,Oe,Ze,pe,W]),ke=(0,d.Z)((e=>{(0,u.Z)(te,e),e&&Pe()}));r.useEffect((()=>{Pe()}),[Pe]);const ze=e=>{me||(fe(!0),ve(!0),H&&H(e))},Re=(e,t)=>{me&&(fe(!1),B&&B(e,t))},Le=(e,t,o,n)=>{if(W){if(ce.length===t.length&&ce.every(((e,o)=>e===t[o])))return}else if(ce===t)return;D&&D(e,t,o,n),se(t)},Te=r.useRef(!1),Ae=function(e,t){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"selectOption",a=t;if(W){a=Array.isArray(ce)?ce.slice():[];const e=h(a,(e=>F(t,e)));-1===e?a.push(t):"freeSolo"!==o&&(a.splice(e,1),n="removeOption")}he(e,a),Le(e,a,n,{option:t}),S||e&&(e.ctrlKey||e.metaKey)||Re(e,n),(!0===g||"touch"===g&&Te.current||"mouse"===g&&!Te.current)&&ee.current.blur()};const Me=(e,t)=>{if(!W)return;""===pe&&Re(e,"toggleInput");let o=ae;-1===ae?""===pe&&"previous"===t&&(o=ce.length-1):(o+="next"===t?1:-1,o<0&&(o=0),o===ce.length&&(o=-1)),o=function(e,t){if(-1===e)return-1;let o=e;for(;;){if("next"===t&&o===ce.length||"previous"===t&&-1===o)return-1;const e=oe.querySelector('[data-tag-index="'.concat(o,'"]'));if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return o;o+="next"===t?1:-1}}(o,t),re(o),Ce(o)},Ne=e=>{Y.current=!0,de(""),j&&j(e,"","clear"),Le(e,W?[]:null,"clear")},Ee=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==ae&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(re(-1),Ce(-1)),229!==t.which))switch(t.key){case"Home":Ze&&A&&(t.preventDefault(),we({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":Ze&&A&&(t.preventDefault(),we({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),we({diff:-5,direction:"previous",reason:"keyboard",event:t}),ze(t);break;case"PageDown":t.preventDefault(),we({diff:5,direction:"next",reason:"keyboard",event:t}),ze(t);break;case"ArrowDown":t.preventDefault(),we({diff:1,direction:"next",reason:"keyboard",event:t}),ze(t);break;case"ArrowUp":t.preventDefault(),we({diff:-1,direction:"previous",reason:"keyboard",event:t}),ze(t);break;case"ArrowLeft":Me(t,"previous");break;case"ArrowRight":Me(t,"next");break;case"Enter":if(-1!==le.current&&Ze){const e=ye[le.current],o=!!z&&z(e);if(t.preventDefault(),o)return;Ae(t,e,"selectOption"),n&&ee.current.setSelectionRange(ee.current.value.length,ee.current.value.length)}else k&&""!==pe&&!1===xe&&(W&&t.preventDefault(),Ae(t,pe,"createOption","freeSolo"));break;case"Escape":Ze?(t.preventDefault(),t.stopPropagation(),Re(t,"escape")):v&&(""!==pe||W&&ce.length>0)&&(t.preventDefault(),t.stopPropagation(),Ne(t));break;case"Backspace":if(W&&!U&&""===pe&&ce.length>0){const e=-1===ae?ce.length-1:ae,o=ce.slice();o.splice(e,1),Le(t,o,"removeOption",{option:ce[e]})}break;case"Delete":if(W&&!U&&""===pe&&ce.length>0&&-1!==ae){const e=ae,o=ce.slice();o.splice(e,1),Le(t,o,"removeOption",{option:ce[e]})}}},Fe=e=>{ge(!0),G&&!Y.current&&ze(e)},We=e=>{t(te)?ee.current.focus():(ge(!1),$.current=!0,Y.current=!1,l&&-1!==le.current&&Ze?Ae(e,ye[le.current],"blur"):l&&k&&""!==pe?Ae(e,pe,"blur","freeSolo"):b&&he(e,ce),Re(e,"blur"))},De=e=>{const t=e.target.value;pe!==t&&(de(t),ve(!1),j&&j(e,t,"input")),""===t?y||W||Le(e,null,"clear"):ze(e)},Be=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));le.current!==t&&Oe({event:e,index:t,reason:"mouse"})},Ve=e=>{Oe({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Te.current=!0},je=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Ae(e,ye[t],"selectOption"),Te.current=!1},He=e=>t=>{const o=ce.slice();o.splice(e,1),Le(t,o,"removeOption",{option:ce[e]})},qe=e=>{me?Re(e,"toggleInput"):ze(e)},Ge=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==Q&&e.preventDefault()},Ke=e=>{e.currentTarget.contains(e.target)&&(ee.current.focus(),_&&$.current&&ee.current.selectionEnd-ee.current.selectionStart===0&&ee.current.select(),$.current=!1)},Ue=e=>{I||""!==pe&&me||qe(e)};let _e=k&&pe.length>0;_e=_e||(W?ce.length>0:null!==ce);let Je=ye;if(T){new Map;Je=ye.reduce(((e,t,o)=>{const n=T(t);return e.length>0&&e[e.length-1].group===n?e[e.length-1].options.push(t):e.push({key:o,index:o,group:n,options:[t]}),e}),[])}return I&&ue&&We(),{getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,a.Z)({"aria-owns":Ie?"".concat(Q,"-listbox"):null},e,{onKeyDown:Ee(e),onMouseDown:Ge,onClick:Ke})},getInputLabelProps:()=>({id:"".concat(Q,"-label"),htmlFor:Q}),getInputProps:()=>({id:Q,value:pe,onBlur:We,onFocus:Fe,onChange:De,onMouseDown:Ue,"aria-activedescendant":Ze?"":null,"aria-autocomplete":n?"both":"list","aria-controls":Ie?"".concat(Q,"-listbox"):void 0,"aria-expanded":Ie,autoComplete:"off",ref:ee,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:I}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Ne}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:qe}),getTagProps:e=>{let{index:t}=e;return(0,a.Z)({key:t,"data-tag-index":t,tabIndex:-1},!U&&{onDelete:He(t)})},getListboxProps:()=>({role:"listbox",id:"".concat(Q,"-listbox"),"aria-labelledby":"".concat(Q,"-label"),ref:ke,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:e=>{let{index:t,option:o}=e;var n;const a=(W?ce:[ce]).some((e=>null!=e&&F(o,e))),r=!!z&&z(o);return{key:null!=(n=null==R?void 0:R(o))?n:X(o),tabIndex:-1,role:"option",id:"".concat(Q,"-option-").concat(t),onMouseMove:Be,onClick:je,onTouchStart:Ve,"data-option-index":t,"aria-disabled":r,"aria-selected":a}},id:Q,inputValue:pe,value:ce,dirty:_e,expanded:Ze&&oe,popupOpen:Ze,focused:ue||-1!==ae,anchorEl:oe,setAnchorEl:ne,focusedTag:ae,groupedOptions:Je}}var v=o(66685),x=o(90820),Z=o(91149),y=o(84722),S=o(4360),I=o(31821),C=o(18561);function O(e){return(0,C.ZP)("MuiListSubheader",e)}(0,I.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var w=o(96266);const P=["className","color","component","disableGutters","disableSticky","inset"],k=(0,Z.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,"default"!==o.color&&t["color".concat((0,S.Z)(o.color))],!o.disableGutters&&t.gutters,o.inset&&t.inset,!o.disableSticky&&t.sticky]}})((e=>{let{theme:t,ownerState:o}=e;return(0,a.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},"primary"===o.color&&{color:(t.vars||t).palette.primary.main},"inherit"===o.color&&{color:"inherit"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.inset&&{paddingLeft:72},!o.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper})})),z=r.forwardRef((function(e,t){const o=(0,y.Z)({props:e,name:"MuiListSubheader"}),{className:r,color:c="default",component:s="li",disableGutters:p=!1,disableSticky:d=!1,inset:u=!1}=o,g=(0,n.Z)(o,P),h=(0,a.Z)({},o,{color:c,component:s,disableGutters:p,disableSticky:d,inset:u}),m=(e=>{const{classes:t,color:o,disableGutters:n,inset:a,disableSticky:r}=e,i={root:["root","default"!==o&&"color".concat((0,S.Z)(o)),!n&&"gutters",a&&"inset",!r&&"sticky"]};return(0,l.Z)(i,O,t)})(h);return(0,w.jsx)(k,(0,a.Z)({as:s,className:(0,i.Z)(m.root,r),ref:t,ownerState:h},g))}));z.muiSkipListHighlight=!0;const R=z;var L,T,A=o(38473),M=o(53066),N=o(54047),E=o(17354),F=o(19053),W=o(97487),D=o(26505),B=o(23910),V=o(33375),j=o(42915),H=o(12085);const q=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],G=["ref"],K=["key"],U=(0,Z.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e,{fullWidth:n,hasClearIcon:a,hasPopupIcon:r,inputFocused:i,size:l}=o;return[{["& .".concat(j.Z.tag)]:t.tag},{["& .".concat(j.Z.tag)]:t["tagSize".concat((0,S.Z)(l))]},{["& .".concat(j.Z.inputRoot)]:t.inputRoot},{["& .".concat(j.Z.input)]:t.input},{["& .".concat(j.Z.input)]:i&&t.inputFocused},t.root,n&&t.fullWidth,r&&t.hasPopupIcon,a&&t.hasClearIcon]}})((e=>{let{ownerState:t}=e;return(0,a.Z)({["&.".concat(j.Z.focused," .").concat(j.Z.clearIndicator)]:{visibility:"visible"},"@media (pointer: fine)":{["&:hover .".concat(j.Z.clearIndicator)]:{visibility:"visible"}}},t.fullWidth&&{width:"100%"},{["& .".concat(j.Z.tag)]:(0,a.Z)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===t.size&&{margin:2,maxWidth:"calc(100% - 4px)"}),["& .".concat(j.Z.inputRoot)]:{flexWrap:"wrap",[".".concat(j.Z.hasPopupIcon,"&, .").concat(j.Z.hasClearIcon,"&")]:{paddingRight:30},[".".concat(j.Z.hasPopupIcon,".").concat(j.Z.hasClearIcon,"&")]:{paddingRight:56},["& .".concat(j.Z.input)]:{width:0,minWidth:30}},["& .".concat(E.Z.root)]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},["& .".concat(E.Z.root,".").concat(F.Z.sizeSmall)]:{["& .".concat(E.Z.input)]:{padding:"2px 4px 3px 0"}},["& .".concat(W.Z.root)]:{padding:9,[".".concat(j.Z.hasPopupIcon,"&, .").concat(j.Z.hasClearIcon,"&")]:{paddingRight:39},[".".concat(j.Z.hasPopupIcon,".").concat(j.Z.hasClearIcon,"&")]:{paddingRight:65},["& .".concat(j.Z.input)]:{padding:"7.5px 4px 7.5px 5px"},["& .".concat(j.Z.endAdornment)]:{right:9}},["& .".concat(W.Z.root,".").concat(F.Z.sizeSmall)]:{paddingTop:6,paddingBottom:6,paddingLeft:6,["& .".concat(j.Z.input)]:{padding:"2.5px 4px 2.5px 8px"}},["& .".concat(D.Z.root)]:{paddingTop:19,paddingLeft:8,[".".concat(j.Z.hasPopupIcon,"&, .").concat(j.Z.hasClearIcon,"&")]:{paddingRight:39},[".".concat(j.Z.hasPopupIcon,".").concat(j.Z.hasClearIcon,"&")]:{paddingRight:65},["& .".concat(D.Z.input)]:{padding:"7px 4px"},["& .".concat(j.Z.endAdornment)]:{right:9}},["& .".concat(D.Z.root,".").concat(F.Z.sizeSmall)]:{paddingBottom:1,["& .".concat(D.Z.input)]:{padding:"2.5px 4px"}},["& .".concat(F.Z.hiddenLabel)]:{paddingTop:8},["& .".concat(D.Z.root,".").concat(F.Z.hiddenLabel)]:{paddingTop:0,paddingBottom:0,["& .".concat(j.Z.input)]:{paddingTop:16,paddingBottom:17}},["& .".concat(D.Z.root,".").concat(F.Z.hiddenLabel,".").concat(F.Z.sizeSmall)]:{["& .".concat(j.Z.input)]:{paddingTop:8,paddingBottom:9}},["& .".concat(j.Z.input)]:(0,a.Z)({flexGrow:1,textOverflow:"ellipsis",opacity:0},t.inputFocused&&{opacity:1})})})),_=(0,Z.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),J=(0,Z.ZP)(M.Z,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),Q=(0,Z.ZP)(M.Z,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{let{ownerState:o}=e;return(0,a.Z)({},t.popupIndicator,o.popupOpen&&t.popupIndicatorOpen)}})((e=>{let{ownerState:t}=e;return(0,a.Z)({padding:2,marginRight:-2},t.popupOpen&&{transform:"rotate(180deg)"})})),X=(0,Z.ZP)(x.Z,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{["& .".concat(j.Z.option)]:t.option},t.popper,o.disablePortal&&t.popperDisablePortal]}})((e=>{let{theme:t,ownerState:o}=e;return(0,a.Z)({zIndex:(t.vars||t).zIndex.modal},o.disablePortal&&{position:"absolute"})})),Y=(0,Z.ZP)(A.Z,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((e=>{let{theme:t}=e;return(0,a.Z)({},t.typography.body1,{overflow:"auto"})})),$=(0,Z.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),ee=(0,Z.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),te=(0,Z.ZP)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((e=>{let{theme:t}=e;return{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",["& .".concat(j.Z.option)]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[t.breakpoints.up("sm")]:{minHeight:"auto"},["&.".concat(j.Z.focused)]:{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},["&.".concat(j.Z.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,v.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(j.Z.focused)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,v.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},["&.".concat(j.Z.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,v.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}}}}})),oe=(0,Z.ZP)(R,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((e=>{let{theme:t}=e;return{backgroundColor:(t.vars||t).palette.background.paper,top:-8}})),ne=(0,Z.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,["& .".concat(j.Z.option)]:{paddingLeft:24}}),ae=r.forwardRef((function(e,t){var o,c,s,p;const d=(0,y.Z)({props:e,name:"MuiAutocomplete"}),{autoComplete:u=!1,autoHighlight:g=!1,autoSelect:h=!1,blurOnSelect:m=!1,ChipProps:f,className:v,clearIcon:Z=L||(L=(0,w.jsx)(B.Z,{fontSize:"small"})),clearOnBlur:I=!d.freeSolo,clearOnEscape:C=!1,clearText:O="Clear",closeText:P="Close",componentsProps:k={},defaultValue:z=(d.multiple?[]:null),disableClearable:R=!1,disableCloseOnSelect:M=!1,disabled:E=!1,disabledItemsFocusable:F=!1,disableListWrap:W=!1,disablePortal:D=!1,filterSelectedOptions:ae=!1,forcePopupIcon:re="auto",freeSolo:ie=!1,fullWidth:le=!1,getLimitTagsText:ce=(e=>"+".concat(e)),getOptionLabel:se,groupBy:pe,handleHomeEndKeys:de=!d.freeSolo,includeInputInList:ue=!1,limitTags:ge=-1,ListboxComponent:he="ul",ListboxProps:me,loading:fe=!1,loadingText:be="Loading\u2026",multiple:ve=!1,noOptionsText:xe="No options",openOnFocus:Ze=!1,openText:ye="Open",PaperComponent:Se=A.Z,PopperComponent:Ie=x.Z,popupIcon:Ce=T||(T=(0,w.jsx)(V.Z,{})),readOnly:Oe=!1,renderGroup:we,renderInput:Pe,renderOption:ke,renderTags:ze,selectOnFocus:Re=!d.freeSolo,size:Le="medium",slotProps:Te={}}=d,Ae=(0,n.Z)(d,q),{getRootProps:Me,getInputProps:Ne,getInputLabelProps:Ee,getPopupIndicatorProps:Fe,getClearProps:We,getTagProps:De,getListboxProps:Be,getOptionProps:Ve,value:je,dirty:He,expanded:qe,id:Ge,popupOpen:Ke,focused:Ue,focusedTag:_e,anchorEl:Je,setAnchorEl:Qe,inputValue:Xe,groupedOptions:Ye}=b((0,a.Z)({},d,{componentName:"Autocomplete"})),$e=!R&&!E&&He&&!Oe,et=(!ie||!0===re)&&!1!==re,{onMouseDown:tt}=Ne(),{ref:ot}=null!=me?me:{},nt=Be(),{ref:at}=nt,rt=(0,n.Z)(nt,G),it=(0,H.Z)(at,ot),lt=se||(e=>{var t;return null!=(t=e.label)?t:e}),ct=(0,a.Z)({},d,{disablePortal:D,expanded:qe,focused:Ue,fullWidth:le,getOptionLabel:lt,hasClearIcon:$e,hasPopupIcon:et,inputFocused:-1===_e,popupOpen:Ke,size:Le}),st=(e=>{const{classes:t,disablePortal:o,expanded:n,focused:a,fullWidth:r,hasClearIcon:i,hasPopupIcon:c,inputFocused:s,popupOpen:p,size:d}=e,u={root:["root",n&&"expanded",a&&"focused",r&&"fullWidth",i&&"hasClearIcon",c&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",s&&"inputFocused"],tag:["tag","tagSize".concat((0,S.Z)(d))],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",p&&"popupIndicatorOpen"],popper:["popper",o&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,l.Z)(u,j.q,t)})(ct);let pt;if(ve&&je.length>0){const e=e=>(0,a.Z)({className:st.tag,disabled:E},De(e));pt=ze?ze(je,e,ct):je.map(((t,o)=>(0,w.jsx)(N.Z,(0,a.Z)({label:lt(t),size:Le},e({index:o}),f))))}if(ge>-1&&Array.isArray(pt)){const e=pt.length-ge;!Ue&&e>0&&(pt=pt.splice(0,ge),pt.push((0,w.jsx)("span",{className:st.tag,children:ce(e)},pt.length)))}const dt=we||(e=>(0,w.jsxs)("li",{children:[(0,w.jsx)(oe,{className:st.groupLabel,ownerState:ct,component:"div",children:e.group}),(0,w.jsx)(ne,{className:st.groupUl,ownerState:ct,children:e.children})]},e.key)),ut=ke||((e,t)=>{const{key:o}=e,r=(0,n.Z)(e,K);return(0,w.jsx)("li",(0,a.Z)({},r,{children:lt(t)}),o)}),gt=(e,t)=>{const o=Ve({option:e,index:t});return ut((0,a.Z)({},o,{className:st.option}),e,{selected:o["aria-selected"],index:t,inputValue:Xe},ct)},ht=null!=(o=Te.clearIndicator)?o:k.clearIndicator,mt=null!=(c=Te.paper)?c:k.paper,ft=null!=(s=Te.popper)?s:k.popper,bt=null!=(p=Te.popupIndicator)?p:k.popupIndicator;return(0,w.jsxs)(r.Fragment,{children:[(0,w.jsx)(U,(0,a.Z)({ref:t,className:(0,i.Z)(st.root,v),ownerState:ct},Me(Ae),{children:Pe({id:Ge,disabled:E,fullWidth:!0,size:"small"===Le?"small":void 0,InputLabelProps:Ee(),InputProps:(0,a.Z)({ref:Qe,className:st.inputRoot,startAdornment:pt,onClick:e=>{e.target===e.currentTarget&&tt(e)}},($e||et)&&{endAdornment:(0,w.jsxs)(_,{className:st.endAdornment,ownerState:ct,children:[$e?(0,w.jsx)(J,(0,a.Z)({},We(),{"aria-label":O,title:O,ownerState:ct},ht,{className:(0,i.Z)(st.clearIndicator,null==ht?void 0:ht.className),children:Z})):null,et?(0,w.jsx)(Q,(0,a.Z)({},Fe(),{disabled:E,"aria-label":Ke?P:ye,title:Ke?P:ye,ownerState:ct},bt,{className:(0,i.Z)(st.popupIndicator,null==bt?void 0:bt.className),children:Ce})):null]})}),inputProps:(0,a.Z)({className:st.input,disabled:E,readOnly:Oe},Ne())})})),Je?(0,w.jsx)(X,(0,a.Z)({as:Ie,disablePortal:D,style:{width:Je?Je.clientWidth:null},ownerState:ct,role:"presentation",anchorEl:Je,open:Ke},ft,{className:(0,i.Z)(st.popper,null==ft?void 0:ft.className),children:(0,w.jsxs)(Y,(0,a.Z)({ownerState:ct,as:Se},mt,{className:(0,i.Z)(st.paper,null==mt?void 0:mt.className),children:[fe&&0===Ye.length?(0,w.jsx)($,{className:st.loading,ownerState:ct,children:be}):null,0!==Ye.length||ie||fe?null:(0,w.jsx)(ee,{className:st.noOptions,ownerState:ct,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:xe}),Ye.length>0?(0,w.jsx)(te,(0,a.Z)({as:he,className:st.listbox,ownerState:ct},rt,me,{ref:it,children:Ye.map(((e,t)=>pe?dt({key:e.key,group:e.group,children:e.options.map(((t,o)=>gt(t,e.index+o)))}):gt(e,t)))})):null]}))})):null]})}))},42915:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i,q:()=>r});var n=o(31821),a=o(18561);function r(e){return(0,a.ZP)("MuiAutocomplete",e)}const i=(0,n.Z)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"])},12958:(e,t,o)=>{"use strict";o.d(t,{Z:()=>w});var n=o(31461),a=o(7896),r=o(5057),i=o(9978),l=o(84279),c=o(91213),s=o(66685),p=o(91149),d=o(84722),u=o(41141),g=o(4360),h=o(31821),m=o(18561);function f(e){return(0,m.ZP)("MuiButton",e)}const b=(0,h.Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var v=o(91629),x=o(17517),Z=o(96266);const y=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],S=e=>(0,a.Z)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),I=(0,p.ZP)(u.Z,{shouldForwardProp:e=>(0,p.FO)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],t["".concat(o.variant).concat((0,g.Z)(o.color))],t["size".concat((0,g.Z)(o.size))],t["".concat(o.variant,"Size").concat((0,g.Z)(o.size))],"inherit"===o.color&&t.colorInherit,o.disableElevation&&t.disableElevation,o.fullWidth&&t.fullWidth]}})((e=>{let{theme:t,ownerState:o}=e;var n,r;const i="light"===t.palette.mode?t.palette.grey[300]:t.palette.grey[800],l="light"===t.palette.mode?t.palette.grey.A100:t.palette.grey[700];return(0,a.Z)({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":(0,a.Z)({textDecoration:"none",backgroundColor:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,s.Fq)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===o.variant&&"inherit"!==o.color&&{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[o.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,s.Fq)(t.palette[o.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===o.variant&&"inherit"!==o.color&&{border:"1px solid ".concat((t.vars||t).palette[o.color].main),backgroundColor:t.vars?"rgba(".concat(t.vars.palette[o.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,s.Fq)(t.palette[o.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===o.variant&&{backgroundColor:t.vars?t.vars.palette.Button.inheritContainedHoverBg:l,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},"contained"===o.variant&&"inherit"!==o.color&&{backgroundColor:(t.vars||t).palette[o.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[o.color].main}}),"&:active":(0,a.Z)({},"contained"===o.variant&&{boxShadow:(t.vars||t).shadows[8]}),["&.".concat(b.focusVisible)]:(0,a.Z)({},"contained"===o.variant&&{boxShadow:(t.vars||t).shadows[6]}),["&.".concat(b.disabled)]:(0,a.Z)({color:(t.vars||t).palette.action.disabled},"outlined"===o.variant&&{border:"1px solid ".concat((t.vars||t).palette.action.disabledBackground)},"contained"===o.variant&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},"text"===o.variant&&{padding:"6px 8px"},"text"===o.variant&&"inherit"!==o.color&&{color:(t.vars||t).palette[o.color].main},"outlined"===o.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===o.variant&&"inherit"!==o.color&&{color:(t.vars||t).palette[o.color].main,border:t.vars?"1px solid rgba(".concat(t.vars.palette[o.color].mainChannel," / 0.5)"):"1px solid ".concat((0,s.Fq)(t.palette[o.color].main,.5))},"contained"===o.variant&&{color:t.vars?t.vars.palette.text.primary:null==(n=(r=t.palette).getContrastText)?void 0:n.call(r,t.palette.grey[300]),backgroundColor:t.vars?t.vars.palette.Button.inheritContainedBg:i,boxShadow:(t.vars||t).shadows[2]},"contained"===o.variant&&"inherit"!==o.color&&{color:(t.vars||t).palette[o.color].contrastText,backgroundColor:(t.vars||t).palette[o.color].main},"inherit"===o.color&&{color:"inherit",borderColor:"currentColor"},"small"===o.size&&"text"===o.variant&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},"large"===o.size&&"text"===o.variant&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},"small"===o.size&&"outlined"===o.variant&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},"large"===o.size&&"outlined"===o.variant&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},"small"===o.size&&"contained"===o.variant&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},"large"===o.size&&"contained"===o.variant&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},o.fullWidth&&{width:"100%"})}),(e=>{let{ownerState:t}=e;return t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},["&.".concat(b.focusVisible)]:{boxShadow:"none"},"&:active":{boxShadow:"none"},["&.".concat(b.disabled)]:{boxShadow:"none"}}})),C=(0,p.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.startIcon,t["iconSize".concat((0,g.Z)(o.size))]]}})((e=>{let{ownerState:t}=e;return(0,a.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},S(t))})),O=(0,p.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.endIcon,t["iconSize".concat((0,g.Z)(o.size))]]}})((e=>{let{ownerState:t}=e;return(0,a.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},S(t))})),w=r.forwardRef((function(e,t){const o=r.useContext(v.Z),s=r.useContext(x.Z),p=(0,l.Z)(o,e),u=(0,d.Z)({props:p,name:"MuiButton"}),{children:h,color:m="primary",component:b="button",className:S,disabled:w=!1,disableElevation:P=!1,disableFocusRipple:k=!1,endIcon:z,focusVisibleClassName:R,fullWidth:L=!1,size:T="medium",startIcon:A,type:M,variant:N="text"}=u,E=(0,n.Z)(u,y),F=(0,a.Z)({},u,{color:m,component:b,disabled:w,disableElevation:P,disableFocusRipple:k,fullWidth:L,size:T,type:M,variant:N}),W=(e=>{const{color:t,disableElevation:o,fullWidth:n,size:r,variant:i,classes:l}=e,s={root:["root",i,"".concat(i).concat((0,g.Z)(t)),"size".concat((0,g.Z)(r)),"".concat(i,"Size").concat((0,g.Z)(r)),"inherit"===t&&"colorInherit",o&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon","iconSize".concat((0,g.Z)(r))],endIcon:["endIcon","iconSize".concat((0,g.Z)(r))]},p=(0,c.Z)(s,f,l);return(0,a.Z)({},l,p)})(F),D=A&&(0,Z.jsx)(C,{className:W.startIcon,ownerState:F,children:A}),B=z&&(0,Z.jsx)(O,{className:W.endIcon,ownerState:F,children:z}),V=s||"";return(0,Z.jsxs)(I,(0,a.Z)({ownerState:F,className:(0,i.Z)(o.className,W.root,S,V),component:b,disabled:w,focusRipple:!k,focusVisibleClassName:(0,i.Z)(W.focusVisible,R),ref:t,type:M},E,{classes:W,children:[D,h,B]}))}))},50482:(e,t,o)=>{var n=o(23800);e.exports=function(e,t){return n(e,t)}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[6240],{91330:(e,t,o)=>{o.d(t,{Z:()=>ae});var n=o(31461),a=o(7896),r=o(5057),i=o(9978),l=o(91213),c=o(32852),s=o(62663),p=o(31383),d=o(2534),u=o(40334);function g(e){return"undefined"!==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function h(e,t){for(let o=0;o<e.length;o+=1)if(t(e[o]))return o;return-1}const m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{ignoreAccents:t=!0,ignoreCase:o=!0,limit:n,matchFrom:a="any",stringify:r,trim:i=!1}=e;return(e,l)=>{let{inputValue:c,getOptionLabel:s}=l,p=i?c.trim():c;o&&(p=p.toLowerCase()),t&&(p=g(p));const d=p?e.filter((e=>{let n=(r||s)(e);return o&&(n=n.toLowerCase()),t&&(n=g(n)),"start"===a?0===n.indexOf(p):n.indexOf(p)>-1})):e;return"number"===typeof n?d.slice(0,n):d}}(),b=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function f(e){const{unstable_isActiveElementInListbox:t=b,unstable_classNamePrefix:o="Mui",autoComplete:n=!1,autoHighlight:i=!1,autoSelect:l=!1,blurOnSelect:g=!1,clearOnBlur:f=!e.freeSolo,clearOnEscape:v=!1,componentName:x="useAutocomplete",defaultValue:Z=(e.multiple?[]:null),disableClearable:y=!1,disableCloseOnSelect:S=!1,disabled:I,disabledItemsFocusable:C=!1,disableListWrap:O=!1,filterOptions:w=m,filterSelectedOptions:P=!1,freeSolo:k=!1,getOptionDisabled:z,getOptionKey:R,getOptionLabel:L=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:T,handleHomeEndKeys:A=!e.freeSolo,id:M,includeInputInList:N=!1,inputValue:E,isOptionEqualToValue:F=((e,t)=>e===t),multiple:W=!1,onChange:D,onClose:B,onHighlightChange:V,onInputChange:j,onOpen:H,open:q,openOnFocus:G=!1,options:K,readOnly:U=!1,selectOnFocus:_=!e.freeSolo,value:J}=e,Q=(0,c.Z)(M);let X=L;X=e=>{const t=L(e);return"string"!==typeof t?String(t):t};const Y=r.useRef(!1),$=r.useRef(!0),ee=r.useRef(null),te=r.useRef(null),[oe,ne]=r.useState(null),[ae,re]=r.useState(-1),ie=i?0:-1,le=r.useRef(ie),[ce,se]=(0,s.Z)({controlled:J,default:Z,name:x}),[pe,de]=(0,s.Z)({controlled:E,default:"",name:x,state:"inputValue"}),[ue,ge]=r.useState(!1),he=r.useCallback(((e,t)=>{if(!(W?ce.length<t.length:null!==t)&&!f)return;let o;if(W)o="";else if(null==t)o="";else{const e=X(t);o="string"===typeof e?e:""}pe!==o&&(de(o),j&&j(e,o,"reset"))}),[X,pe,W,j,de,f,ce]),[me,be]=(0,s.Z)({controlled:q,default:!1,name:x,state:"open"}),[fe,ve]=r.useState(!0),xe=!W&&null!=ce&&pe===X(ce),Ze=me&&!U,ye=Ze?w(K.filter((e=>!P||!(W?ce:[ce]).some((t=>null!==t&&F(e,t))))),{inputValue:xe&&fe?"":pe,getOptionLabel:X}):[],Se=(0,p.Z)({filteredOptions:ye,value:ce,inputValue:pe});r.useEffect((()=>{const e=ce!==Se.value;ue&&!e||k&&!e||he(null,ce)}),[ce,he,ue,Se.value,k]);const Ie=me&&ye.length>0&&!U;const Ce=(0,d.Z)((e=>{-1===e?ee.current.focus():oe.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));r.useEffect((()=>{W&&ae>ce.length-1&&(re(-1),Ce(-1))}),[ce,W,ae,Ce]);const Oe=(0,d.Z)((e=>{let{event:t,index:n,reason:a="auto"}=e;if(le.current=n,-1===n?ee.current.removeAttribute("aria-activedescendant"):ee.current.setAttribute("aria-activedescendant","".concat(Q,"-option-").concat(n)),V&&V(t,-1===n?null:ye[n],a),!te.current)return;const r=te.current.querySelector('[role="option"].'.concat(o,"-focused"));r&&(r.classList.remove("".concat(o,"-focused")),r.classList.remove("".concat(o,"-focusVisible")));let i=te.current;if("listbox"!==te.current.getAttribute("role")&&(i=te.current.parentElement.querySelector('[role="listbox"]')),!i)return;if(-1===n)return void(i.scrollTop=0);const l=te.current.querySelector('[data-option-index="'.concat(n,'"]'));if(l&&(l.classList.add("".concat(o,"-focused")),"keyboard"===a&&l.classList.add("".concat(o,"-focusVisible")),i.scrollHeight>i.clientHeight&&"mouse"!==a&&"touch"!==a)){const e=l,t=i.clientHeight+i.scrollTop,o=e.offsetTop+e.offsetHeight;o>t?i.scrollTop=o-i.clientHeight:e.offsetTop-e.offsetHeight*(T?1.3:0)<i.scrollTop&&(i.scrollTop=e.offsetTop-e.offsetHeight*(T?1.3:0))}})),we=(0,d.Z)((e=>{let{event:t,diff:o,direction:a="next",reason:r="auto"}=e;if(!Ze)return;const i=function(e,t){if(!te.current||e<0||e>=ye.length)return-1;let o=e;for(;;){const n=te.current.querySelector('[data-option-index="'.concat(o,'"]')),a=!C&&(!n||n.disabled||"true"===n.getAttribute("aria-disabled"));if(n&&n.hasAttribute("tabindex")&&!a)return o;if(o="next"===t?(o+1)%ye.length:(o-1+ye.length)%ye.length,o===e)return-1}}((()=>{const e=ye.length-1;if("reset"===o)return ie;if("start"===o)return 0;if("end"===o)return e;const t=le.current+o;return t<0?-1===t&&N?-1:O&&-1!==le.current||Math.abs(o)>1?0:e:t>e?t===e+1&&N?-1:O||Math.abs(o)>1?e:0:t})(),a);if(Oe({index:i,reason:r,event:t}),n&&"reset"!==o)if(-1===i)ee.current.value=pe;else{const e=X(ye[i]);ee.current.value=e;0===e.toLowerCase().indexOf(pe.toLowerCase())&&pe.length>0&&ee.current.setSelectionRange(pe.length,e.length)}})),Pe=r.useCallback((()=>{if(!Ze)return;if((()=>{if(-1!==le.current&&Se.filteredOptions&&Se.filteredOptions.length!==ye.length&&Se.inputValue===pe&&(W?ce.length===Se.value.length&&Se.value.every(((e,t)=>X(ce[t])===X(e))):(e=Se.value,t=ce,(e?X(e):"")===(t?X(t):"")))){const e=Se.filteredOptions[le.current];if(e&&ye.some((t=>X(t)===X(e))))return!0}var e,t;return!1})())return;const e=W?ce[0]:ce;if(0!==ye.length&&null!=e){if(te.current)if(null==e)le.current>=ye.length-1?Oe({index:ye.length-1}):Oe({index:le.current});else{const t=ye[le.current];if(W&&t&&-1!==h(ce,(e=>F(t,e))))return;const o=h(ye,(t=>F(t,e)));-1===o?we({diff:"reset"}):Oe({index:o})}}else we({diff:"reset"})}),[ye.length,!W&&ce,P,we,Oe,Ze,pe,W]),ke=(0,d.Z)((e=>{(0,u.Z)(te,e),e&&Pe()}));r.useEffect((()=>{Pe()}),[Pe]);const ze=e=>{me||(be(!0),ve(!0),H&&H(e))},Re=(e,t)=>{me&&(be(!1),B&&B(e,t))},Le=(e,t,o,n)=>{if(W){if(ce.length===t.length&&ce.every(((e,o)=>e===t[o])))return}else if(ce===t)return;D&&D(e,t,o,n),se(t)},Te=r.useRef(!1),Ae=function(e,t){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"selectOption",a=t;if(W){a=Array.isArray(ce)?ce.slice():[];const e=h(a,(e=>F(t,e)));-1===e?a.push(t):"freeSolo"!==o&&(a.splice(e,1),n="removeOption")}he(e,a),Le(e,a,n,{option:t}),S||e&&(e.ctrlKey||e.metaKey)||Re(e,n),(!0===g||"touch"===g&&Te.current||"mouse"===g&&!Te.current)&&ee.current.blur()};const Me=(e,t)=>{if(!W)return;""===pe&&Re(e,"toggleInput");let o=ae;-1===ae?""===pe&&"previous"===t&&(o=ce.length-1):(o+="next"===t?1:-1,o<0&&(o=0),o===ce.length&&(o=-1)),o=function(e,t){if(-1===e)return-1;let o=e;for(;;){if("next"===t&&o===ce.length||"previous"===t&&-1===o)return-1;const e=oe.querySelector('[data-tag-index="'.concat(o,'"]'));if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return o;o+="next"===t?1:-1}}(o,t),re(o),Ce(o)},Ne=e=>{Y.current=!0,de(""),j&&j(e,"","clear"),Le(e,W?[]:null,"clear")},Ee=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==ae&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(re(-1),Ce(-1)),229!==t.which))switch(t.key){case"Home":Ze&&A&&(t.preventDefault(),we({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":Ze&&A&&(t.preventDefault(),we({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),we({diff:-5,direction:"previous",reason:"keyboard",event:t}),ze(t);break;case"PageDown":t.preventDefault(),we({diff:5,direction:"next",reason:"keyboard",event:t}),ze(t);break;case"ArrowDown":t.preventDefault(),we({diff:1,direction:"next",reason:"keyboard",event:t}),ze(t);break;case"ArrowUp":t.preventDefault(),we({diff:-1,direction:"previous",reason:"keyboard",event:t}),ze(t);break;case"ArrowLeft":Me(t,"previous");break;case"ArrowRight":Me(t,"next");break;case"Enter":if(-1!==le.current&&Ze){const e=ye[le.current],o=!!z&&z(e);if(t.preventDefault(),o)return;Ae(t,e,"selectOption"),n&&ee.current.setSelectionRange(ee.current.value.length,ee.current.value.length)}else k&&""!==pe&&!1===xe&&(W&&t.preventDefault(),Ae(t,pe,"createOption","freeSolo"));break;case"Escape":Ze?(t.preventDefault(),t.stopPropagation(),Re(t,"escape")):v&&(""!==pe||W&&ce.length>0)&&(t.preventDefault(),t.stopPropagation(),Ne(t));break;case"Backspace":if(W&&!U&&""===pe&&ce.length>0){const e=-1===ae?ce.length-1:ae,o=ce.slice();o.splice(e,1),Le(t,o,"removeOption",{option:ce[e]})}break;case"Delete":if(W&&!U&&""===pe&&ce.length>0&&-1!==ae){const e=ae,o=ce.slice();o.splice(e,1),Le(t,o,"removeOption",{option:ce[e]})}}},Fe=e=>{ge(!0),G&&!Y.current&&ze(e)},We=e=>{t(te)?ee.current.focus():(ge(!1),$.current=!0,Y.current=!1,l&&-1!==le.current&&Ze?Ae(e,ye[le.current],"blur"):l&&k&&""!==pe?Ae(e,pe,"blur","freeSolo"):f&&he(e,ce),Re(e,"blur"))},De=e=>{const t=e.target.value;pe!==t&&(de(t),ve(!1),j&&j(e,t,"input")),""===t?y||W||Le(e,null,"clear"):ze(e)},Be=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));le.current!==t&&Oe({event:e,index:t,reason:"mouse"})},Ve=e=>{Oe({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Te.current=!0},je=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Ae(e,ye[t],"selectOption"),Te.current=!1},He=e=>t=>{const o=ce.slice();o.splice(e,1),Le(t,o,"removeOption",{option:ce[e]})},qe=e=>{me?Re(e,"toggleInput"):ze(e)},Ge=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==Q&&e.preventDefault()},Ke=e=>{e.currentTarget.contains(e.target)&&(ee.current.focus(),_&&$.current&&ee.current.selectionEnd-ee.current.selectionStart===0&&ee.current.select(),$.current=!1)},Ue=e=>{I||""!==pe&&me||qe(e)};let _e=k&&pe.length>0;_e=_e||(W?ce.length>0:null!==ce);let Je=ye;if(T){new Map;Je=ye.reduce(((e,t,o)=>{const n=T(t);return e.length>0&&e[e.length-1].group===n?e[e.length-1].options.push(t):e.push({key:o,index:o,group:n,options:[t]}),e}),[])}return I&&ue&&We(),{getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,a.Z)({"aria-owns":Ie?"".concat(Q,"-listbox"):null},e,{onKeyDown:Ee(e),onMouseDown:Ge,onClick:Ke})},getInputLabelProps:()=>({id:"".concat(Q,"-label"),htmlFor:Q}),getInputProps:()=>({id:Q,value:pe,onBlur:We,onFocus:Fe,onChange:De,onMouseDown:Ue,"aria-activedescendant":Ze?"":null,"aria-autocomplete":n?"both":"list","aria-controls":Ie?"".concat(Q,"-listbox"):void 0,"aria-expanded":Ie,autoComplete:"off",ref:ee,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:I}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Ne}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:qe}),getTagProps:e=>{let{index:t}=e;return(0,a.Z)({key:t,"data-tag-index":t,tabIndex:-1},!U&&{onDelete:He(t)})},getListboxProps:()=>({role:"listbox",id:"".concat(Q,"-listbox"),"aria-labelledby":"".concat(Q,"-label"),ref:ke,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:e=>{let{index:t,option:o}=e;var n;const a=(W?ce:[ce]).some((e=>null!=e&&F(o,e))),r=!!z&&z(o);return{key:null!=(n=null==R?void 0:R(o))?n:X(o),tabIndex:-1,role:"option",id:"".concat(Q,"-option-").concat(t),onMouseMove:Be,onClick:je,onTouchStart:Ve,"data-option-index":t,"aria-disabled":r,"aria-selected":a}},id:Q,inputValue:pe,value:ce,dirty:_e,expanded:Ze&&oe,popupOpen:Ze,focused:ue||-1!==ae,anchorEl:oe,setAnchorEl:ne,focusedTag:ae,groupedOptions:Je}}var v=o(66685),x=o(90820),Z=o(91149),y=o(84722),S=o(4360),I=o(31821),C=o(18561);function O(e){return(0,C.ZP)("MuiListSubheader",e)}(0,I.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var w=o(96266);const P=["className","color","component","disableGutters","disableSticky","inset"],k=(0,Z.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,"default"!==o.color&&t["color".concat((0,S.Z)(o.color))],!o.disableGutters&&t.gutters,o.inset&&t.inset,!o.disableSticky&&t.sticky]}})((e=>{let{theme:t,ownerState:o}=e;return(0,a.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},"primary"===o.color&&{color:(t.vars||t).palette.primary.main},"inherit"===o.color&&{color:"inherit"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.inset&&{paddingLeft:72},!o.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper})})),z=r.forwardRef((function(e,t){const o=(0,y.Z)({props:e,name:"MuiListSubheader"}),{className:r,color:c="default",component:s="li",disableGutters:p=!1,disableSticky:d=!1,inset:u=!1}=o,g=(0,n.Z)(o,P),h=(0,a.Z)({},o,{color:c,component:s,disableGutters:p,disableSticky:d,inset:u}),m=(e=>{const{classes:t,color:o,disableGutters:n,inset:a,disableSticky:r}=e,i={root:["root","default"!==o&&"color".concat((0,S.Z)(o)),!n&&"gutters",a&&"inset",!r&&"sticky"]};return(0,l.Z)(i,O,t)})(h);return(0,w.jsx)(k,(0,a.Z)({as:s,className:(0,i.Z)(m.root,r),ref:t,ownerState:h},g))}));z.muiSkipListHighlight=!0;const R=z;var L,T,A=o(38473),M=o(53066),N=o(54047),E=o(17354),F=o(19053),W=o(97487),D=o(26505),B=o(23910),V=o(33375),j=o(42915),H=o(12085);const q=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],G=["ref"],K=["key"],U=(0,Z.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e,{fullWidth:n,hasClearIcon:a,hasPopupIcon:r,inputFocused:i,size:l}=o;return[{["& .".concat(j.Z.tag)]:t.tag},{["& .".concat(j.Z.tag)]:t["tagSize".concat((0,S.Z)(l))]},{["& .".concat(j.Z.inputRoot)]:t.inputRoot},{["& .".concat(j.Z.input)]:t.input},{["& .".concat(j.Z.input)]:i&&t.inputFocused},t.root,n&&t.fullWidth,r&&t.hasPopupIcon,a&&t.hasClearIcon]}})((e=>{let{ownerState:t}=e;return(0,a.Z)({["&.".concat(j.Z.focused," .").concat(j.Z.clearIndicator)]:{visibility:"visible"},"@media (pointer: fine)":{["&:hover .".concat(j.Z.clearIndicator)]:{visibility:"visible"}}},t.fullWidth&&{width:"100%"},{["& .".concat(j.Z.tag)]:(0,a.Z)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===t.size&&{margin:2,maxWidth:"calc(100% - 4px)"}),["& .".concat(j.Z.inputRoot)]:{flexWrap:"wrap",[".".concat(j.Z.hasPopupIcon,"&, .").concat(j.Z.hasClearIcon,"&")]:{paddingRight:30},[".".concat(j.Z.hasPopupIcon,".").concat(j.Z.hasClearIcon,"&")]:{paddingRight:56},["& .".concat(j.Z.input)]:{width:0,minWidth:30}},["& .".concat(E.Z.root)]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},["& .".concat(E.Z.root,".").concat(F.Z.sizeSmall)]:{["& .".concat(E.Z.input)]:{padding:"2px 4px 3px 0"}},["& .".concat(W.Z.root)]:{padding:9,[".".concat(j.Z.hasPopupIcon,"&, .").concat(j.Z.hasClearIcon,"&")]:{paddingRight:39},[".".concat(j.Z.hasPopupIcon,".").concat(j.Z.hasClearIcon,"&")]:{paddingRight:65},["& .".concat(j.Z.input)]:{padding:"7.5px 4px 7.5px 5px"},["& .".concat(j.Z.endAdornment)]:{right:9}},["& .".concat(W.Z.root,".").concat(F.Z.sizeSmall)]:{paddingTop:6,paddingBottom:6,paddingLeft:6,["& .".concat(j.Z.input)]:{padding:"2.5px 4px 2.5px 8px"}},["& .".concat(D.Z.root)]:{paddingTop:19,paddingLeft:8,[".".concat(j.Z.hasPopupIcon,"&, .").concat(j.Z.hasClearIcon,"&")]:{paddingRight:39},[".".concat(j.Z.hasPopupIcon,".").concat(j.Z.hasClearIcon,"&")]:{paddingRight:65},["& .".concat(D.Z.input)]:{padding:"7px 4px"},["& .".concat(j.Z.endAdornment)]:{right:9}},["& .".concat(D.Z.root,".").concat(F.Z.sizeSmall)]:{paddingBottom:1,["& .".concat(D.Z.input)]:{padding:"2.5px 4px"}},["& .".concat(F.Z.hiddenLabel)]:{paddingTop:8},["& .".concat(D.Z.root,".").concat(F.Z.hiddenLabel)]:{paddingTop:0,paddingBottom:0,["& .".concat(j.Z.input)]:{paddingTop:16,paddingBottom:17}},["& .".concat(D.Z.root,".").concat(F.Z.hiddenLabel,".").concat(F.Z.sizeSmall)]:{["& .".concat(j.Z.input)]:{paddingTop:8,paddingBottom:9}},["& .".concat(j.Z.input)]:(0,a.Z)({flexGrow:1,textOverflow:"ellipsis",opacity:0},t.inputFocused&&{opacity:1})})})),_=(0,Z.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),J=(0,Z.ZP)(M.Z,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),Q=(0,Z.ZP)(M.Z,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{let{ownerState:o}=e;return(0,a.Z)({},t.popupIndicator,o.popupOpen&&t.popupIndicatorOpen)}})((e=>{let{ownerState:t}=e;return(0,a.Z)({padding:2,marginRight:-2},t.popupOpen&&{transform:"rotate(180deg)"})})),X=(0,Z.ZP)(x.Z,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{["& .".concat(j.Z.option)]:t.option},t.popper,o.disablePortal&&t.popperDisablePortal]}})((e=>{let{theme:t,ownerState:o}=e;return(0,a.Z)({zIndex:(t.vars||t).zIndex.modal},o.disablePortal&&{position:"absolute"})})),Y=(0,Z.ZP)(A.Z,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((e=>{let{theme:t}=e;return(0,a.Z)({},t.typography.body1,{overflow:"auto"})})),$=(0,Z.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),ee=(0,Z.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),te=(0,Z.ZP)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((e=>{let{theme:t}=e;return{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",["& .".concat(j.Z.option)]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[t.breakpoints.up("sm")]:{minHeight:"auto"},["&.".concat(j.Z.focused)]:{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},["&.".concat(j.Z.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,v.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(j.Z.focused)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,v.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},["&.".concat(j.Z.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,v.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}}}}})),oe=(0,Z.ZP)(R,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((e=>{let{theme:t}=e;return{backgroundColor:(t.vars||t).palette.background.paper,top:-8}})),ne=(0,Z.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,["& .".concat(j.Z.option)]:{paddingLeft:24}}),ae=r.forwardRef((function(e,t){var o,c,s,p;const d=(0,y.Z)({props:e,name:"MuiAutocomplete"}),{autoComplete:u=!1,autoHighlight:g=!1,autoSelect:h=!1,blurOnSelect:m=!1,ChipProps:b,className:v,clearIcon:Z=L||(L=(0,w.jsx)(B.Z,{fontSize:"small"})),clearOnBlur:I=!d.freeSolo,clearOnEscape:C=!1,clearText:O="Clear",closeText:P="Close",componentsProps:k={},defaultValue:z=(d.multiple?[]:null),disableClearable:R=!1,disableCloseOnSelect:M=!1,disabled:E=!1,disabledItemsFocusable:F=!1,disableListWrap:W=!1,disablePortal:D=!1,filterSelectedOptions:ae=!1,forcePopupIcon:re="auto",freeSolo:ie=!1,fullWidth:le=!1,getLimitTagsText:ce=(e=>"+".concat(e)),getOptionLabel:se,groupBy:pe,handleHomeEndKeys:de=!d.freeSolo,includeInputInList:ue=!1,limitTags:ge=-1,ListboxComponent:he="ul",ListboxProps:me,loading:be=!1,loadingText:fe="Loading\u2026",multiple:ve=!1,noOptionsText:xe="No options",openOnFocus:Ze=!1,openText:ye="Open",PaperComponent:Se=A.Z,PopperComponent:Ie=x.Z,popupIcon:Ce=T||(T=(0,w.jsx)(V.Z,{})),readOnly:Oe=!1,renderGroup:we,renderInput:Pe,renderOption:ke,renderTags:ze,selectOnFocus:Re=!d.freeSolo,size:Le="medium",slotProps:Te={}}=d,Ae=(0,n.Z)(d,q),{getRootProps:Me,getInputProps:Ne,getInputLabelProps:Ee,getPopupIndicatorProps:Fe,getClearProps:We,getTagProps:De,getListboxProps:Be,getOptionProps:Ve,value:je,dirty:He,expanded:qe,id:Ge,popupOpen:Ke,focused:Ue,focusedTag:_e,anchorEl:Je,setAnchorEl:Qe,inputValue:Xe,groupedOptions:Ye}=f((0,a.Z)({},d,{componentName:"Autocomplete"})),$e=!R&&!E&&He&&!Oe,et=(!ie||!0===re)&&!1!==re,{onMouseDown:tt}=Ne(),{ref:ot}=null!=me?me:{},nt=Be(),{ref:at}=nt,rt=(0,n.Z)(nt,G),it=(0,H.Z)(at,ot),lt=se||(e=>{var t;return null!=(t=e.label)?t:e}),ct=(0,a.Z)({},d,{disablePortal:D,expanded:qe,focused:Ue,fullWidth:le,getOptionLabel:lt,hasClearIcon:$e,hasPopupIcon:et,inputFocused:-1===_e,popupOpen:Ke,size:Le}),st=(e=>{const{classes:t,disablePortal:o,expanded:n,focused:a,fullWidth:r,hasClearIcon:i,hasPopupIcon:c,inputFocused:s,popupOpen:p,size:d}=e,u={root:["root",n&&"expanded",a&&"focused",r&&"fullWidth",i&&"hasClearIcon",c&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",s&&"inputFocused"],tag:["tag","tagSize".concat((0,S.Z)(d))],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",p&&"popupIndicatorOpen"],popper:["popper",o&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,l.Z)(u,j.q,t)})(ct);let pt;if(ve&&je.length>0){const e=e=>(0,a.Z)({className:st.tag,disabled:E},De(e));pt=ze?ze(je,e,ct):je.map(((t,o)=>(0,w.jsx)(N.Z,(0,a.Z)({label:lt(t),size:Le},e({index:o}),b))))}if(ge>-1&&Array.isArray(pt)){const e=pt.length-ge;!Ue&&e>0&&(pt=pt.splice(0,ge),pt.push((0,w.jsx)("span",{className:st.tag,children:ce(e)},pt.length)))}const dt=we||(e=>(0,w.jsxs)("li",{children:[(0,w.jsx)(oe,{className:st.groupLabel,ownerState:ct,component:"div",children:e.group}),(0,w.jsx)(ne,{className:st.groupUl,ownerState:ct,children:e.children})]},e.key)),ut=ke||((e,t)=>{const{key:o}=e,r=(0,n.Z)(e,K);return(0,w.jsx)("li",(0,a.Z)({},r,{children:lt(t)}),o)}),gt=(e,t)=>{const o=Ve({option:e,index:t});return ut((0,a.Z)({},o,{className:st.option}),e,{selected:o["aria-selected"],index:t,inputValue:Xe},ct)},ht=null!=(o=Te.clearIndicator)?o:k.clearIndicator,mt=null!=(c=Te.paper)?c:k.paper,bt=null!=(s=Te.popper)?s:k.popper,ft=null!=(p=Te.popupIndicator)?p:k.popupIndicator;return(0,w.jsxs)(r.Fragment,{children:[(0,w.jsx)(U,(0,a.Z)({ref:t,className:(0,i.Z)(st.root,v),ownerState:ct},Me(Ae),{children:Pe({id:Ge,disabled:E,fullWidth:!0,size:"small"===Le?"small":void 0,InputLabelProps:Ee(),InputProps:(0,a.Z)({ref:Qe,className:st.inputRoot,startAdornment:pt,onClick:e=>{e.target===e.currentTarget&&tt(e)}},($e||et)&&{endAdornment:(0,w.jsxs)(_,{className:st.endAdornment,ownerState:ct,children:[$e?(0,w.jsx)(J,(0,a.Z)({},We(),{"aria-label":O,title:O,ownerState:ct},ht,{className:(0,i.Z)(st.clearIndicator,null==ht?void 0:ht.className),children:Z})):null,et?(0,w.jsx)(Q,(0,a.Z)({},Fe(),{disabled:E,"aria-label":Ke?P:ye,title:Ke?P:ye,ownerState:ct},ft,{className:(0,i.Z)(st.popupIndicator,null==ft?void 0:ft.className),children:Ce})):null]})}),inputProps:(0,a.Z)({className:st.input,disabled:E,readOnly:Oe},Ne())})})),Je?(0,w.jsx)(X,(0,a.Z)({as:Ie,disablePortal:D,style:{width:Je?Je.clientWidth:null},ownerState:ct,role:"presentation",anchorEl:Je,open:Ke},bt,{className:(0,i.Z)(st.popper,null==bt?void 0:bt.className),children:(0,w.jsxs)(Y,(0,a.Z)({ownerState:ct,as:Se},mt,{className:(0,i.Z)(st.paper,null==mt?void 0:mt.className),children:[be&&0===Ye.length?(0,w.jsx)($,{className:st.loading,ownerState:ct,children:fe}):null,0!==Ye.length||ie||be?null:(0,w.jsx)(ee,{className:st.noOptions,ownerState:ct,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:xe}),Ye.length>0?(0,w.jsx)(te,(0,a.Z)({as:he,className:st.listbox,ownerState:ct},rt,me,{ref:it,children:Ye.map(((e,t)=>pe?dt({key:e.key,group:e.group,children:e.options.map(((t,o)=>gt(t,e.index+o)))}):gt(e,t)))})):null]}))})):null]})}))},42915:(e,t,o)=>{o.d(t,{Z:()=>i,q:()=>r});var n=o(31821),a=o(18561);function r(e){return(0,a.ZP)("MuiAutocomplete",e)}const i=(0,n.Z)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"])},12958:(e,t,o)=>{o.d(t,{Z:()=>w});var n=o(31461),a=o(7896),r=o(5057),i=o(9978),l=o(84279),c=o(91213),s=o(66685),p=o(91149),d=o(84722),u=o(41141),g=o(4360),h=o(31821),m=o(18561);function b(e){return(0,m.ZP)("MuiButton",e)}const f=(0,h.Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var v=o(91629),x=o(17517),Z=o(96266);const y=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],S=e=>(0,a.Z)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),I=(0,p.ZP)(u.Z,{shouldForwardProp:e=>(0,p.FO)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],t["".concat(o.variant).concat((0,g.Z)(o.color))],t["size".concat((0,g.Z)(o.size))],t["".concat(o.variant,"Size").concat((0,g.Z)(o.size))],"inherit"===o.color&&t.colorInherit,o.disableElevation&&t.disableElevation,o.fullWidth&&t.fullWidth]}})((e=>{let{theme:t,ownerState:o}=e;var n,r;const i="light"===t.palette.mode?t.palette.grey[300]:t.palette.grey[800],l="light"===t.palette.mode?t.palette.grey.A100:t.palette.grey[700];return(0,a.Z)({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":(0,a.Z)({textDecoration:"none",backgroundColor:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,s.Fq)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===o.variant&&"inherit"!==o.color&&{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[o.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,s.Fq)(t.palette[o.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===o.variant&&"inherit"!==o.color&&{border:"1px solid ".concat((t.vars||t).palette[o.color].main),backgroundColor:t.vars?"rgba(".concat(t.vars.palette[o.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,s.Fq)(t.palette[o.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===o.variant&&{backgroundColor:t.vars?t.vars.palette.Button.inheritContainedHoverBg:l,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},"contained"===o.variant&&"inherit"!==o.color&&{backgroundColor:(t.vars||t).palette[o.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[o.color].main}}),"&:active":(0,a.Z)({},"contained"===o.variant&&{boxShadow:(t.vars||t).shadows[8]}),["&.".concat(f.focusVisible)]:(0,a.Z)({},"contained"===o.variant&&{boxShadow:(t.vars||t).shadows[6]}),["&.".concat(f.disabled)]:(0,a.Z)({color:(t.vars||t).palette.action.disabled},"outlined"===o.variant&&{border:"1px solid ".concat((t.vars||t).palette.action.disabledBackground)},"contained"===o.variant&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},"text"===o.variant&&{padding:"6px 8px"},"text"===o.variant&&"inherit"!==o.color&&{color:(t.vars||t).palette[o.color].main},"outlined"===o.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===o.variant&&"inherit"!==o.color&&{color:(t.vars||t).palette[o.color].main,border:t.vars?"1px solid rgba(".concat(t.vars.palette[o.color].mainChannel," / 0.5)"):"1px solid ".concat((0,s.Fq)(t.palette[o.color].main,.5))},"contained"===o.variant&&{color:t.vars?t.vars.palette.text.primary:null==(n=(r=t.palette).getContrastText)?void 0:n.call(r,t.palette.grey[300]),backgroundColor:t.vars?t.vars.palette.Button.inheritContainedBg:i,boxShadow:(t.vars||t).shadows[2]},"contained"===o.variant&&"inherit"!==o.color&&{color:(t.vars||t).palette[o.color].contrastText,backgroundColor:(t.vars||t).palette[o.color].main},"inherit"===o.color&&{color:"inherit",borderColor:"currentColor"},"small"===o.size&&"text"===o.variant&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},"large"===o.size&&"text"===o.variant&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},"small"===o.size&&"outlined"===o.variant&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},"large"===o.size&&"outlined"===o.variant&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},"small"===o.size&&"contained"===o.variant&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},"large"===o.size&&"contained"===o.variant&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},o.fullWidth&&{width:"100%"})}),(e=>{let{ownerState:t}=e;return t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},["&.".concat(f.focusVisible)]:{boxShadow:"none"},"&:active":{boxShadow:"none"},["&.".concat(f.disabled)]:{boxShadow:"none"}}})),C=(0,p.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.startIcon,t["iconSize".concat((0,g.Z)(o.size))]]}})((e=>{let{ownerState:t}=e;return(0,a.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},S(t))})),O=(0,p.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.endIcon,t["iconSize".concat((0,g.Z)(o.size))]]}})((e=>{let{ownerState:t}=e;return(0,a.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},S(t))})),w=r.forwardRef((function(e,t){const o=r.useContext(v.Z),s=r.useContext(x.Z),p=(0,l.Z)(o,e),u=(0,d.Z)({props:p,name:"MuiButton"}),{children:h,color:m="primary",component:f="button",className:S,disabled:w=!1,disableElevation:P=!1,disableFocusRipple:k=!1,endIcon:z,focusVisibleClassName:R,fullWidth:L=!1,size:T="medium",startIcon:A,type:M,variant:N="text"}=u,E=(0,n.Z)(u,y),F=(0,a.Z)({},u,{color:m,component:f,disabled:w,disableElevation:P,disableFocusRipple:k,fullWidth:L,size:T,type:M,variant:N}),W=(e=>{const{color:t,disableElevation:o,fullWidth:n,size:r,variant:i,classes:l}=e,s={root:["root",i,"".concat(i).concat((0,g.Z)(t)),"size".concat((0,g.Z)(r)),"".concat(i,"Size").concat((0,g.Z)(r)),"inherit"===t&&"colorInherit",o&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon","iconSize".concat((0,g.Z)(r))],endIcon:["endIcon","iconSize".concat((0,g.Z)(r))]},p=(0,c.Z)(s,b,l);return(0,a.Z)({},l,p)})(F),D=A&&(0,Z.jsx)(C,{className:W.startIcon,ownerState:F,children:A}),B=z&&(0,Z.jsx)(O,{className:W.endIcon,ownerState:F,children:z}),V=s||"";return(0,Z.jsxs)(I,(0,a.Z)({ownerState:F,className:(0,i.Z)(o.className,W.root,S,V),component:f,disabled:w,focusRipple:!k,focusVisibleClassName:(0,i.Z)(W.focusVisible,R),ref:t,type:M},E,{classes:W,children:[D,h,B]}))}))}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 6281.f6fcbbe9.chunk.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[6281],{5873:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var o=n(96266),r=(n(49631),n(5057)),i=n(55898),a=n.n(i),s=n(44247),l=n(68420),c=n(61848),d=n(615),u=n(6504),f=n(94457),p=n(94612),h=n(25162);function g(e){var t;let{meta:n,fallbackUrl:i,invalidPathFallback:a,headerAddons:d,sessionManagerProps:g,links:m,...v}=e;(0,h.x)();const b=(0,r.useContext)(s.B3),y=null===b||void 0===b||null===(t=b.session)||void 0===t?void 0:t.user,x=null===y||void 0===y?void 0:y.role,{locale:k}=(0,l.PE)()||{},w=(0,r.useMemo)((()=>{const e=Object.assign({},window.blocklet,n);try{return(0,f.RX)(e)}catch(t){return console.error("Failed to format blocklet info",t,e),e}}),[n]),{localizedNav:j,flattened:C,matchedIndex:Z}=(0,r.useMemo)((()=>{var e;let t=(0,f.KN)(null===w||void 0===w||null===(e=w.navigation)||void 0===e?void 0:e.dashboard,k)||[];t=(0,f.Kb)(t,x),t=(0,u._J)(t,(e=>({title:e.title,url:e.link,icon:e.icon?(0,o.jsx)("iconify-icon",{height:"100%",width:"100%",icon:e.icon}):null,external:!0,children:e.items})),"items");const n=(0,u.Ik)(t).filter((e=>!!e.url)),r=(0,u.RX)(n.map((e=>e.url)));return-1!==r&&(n[r].active=!0),{localizedNav:t,flattened:n,matchedIndex:r}}),[w,k,x]),A="function"===typeof m?m(j):[...j,...m];if((0,r.useLayoutEffect)((()=>{!y||null!==C&&void 0!==C&&C.length||!i||(window.location.href=i)}),[i]),(0,r.useLayoutEffect)((()=>{var e;y&&null!==C&&void 0!==C&&C.length&&-1===Z&&(a?a():window.location.href=(null===(e=C[0])||void 0===e?void 0:e.url)||f.iU)}),[a,C,Z]),!w.appName)return null;const{appLogo:I,appLogoRect:S,appName:M}=w,P=(0,o.jsx)(p.Z,{formattedBlocklet:w,addons:d,sessionManagerProps:g});return(0,o.jsx)(c.Z,{title:M,fullWidth:!0,sidebarWidth:128,legacy:!1,links:A,...v,headerProps:{homeLink:f.iU,logo:(0,o.jsx)("img",{src:S||I,alt:"logo"}),addons:P,...v.headerProps}})}g.propTypes={meta:d.I,fallbackUrl:a().string,invalidPathFallback:a().func,headerAddons:a().oneOfType([a().func,a().node]),sessionManagerProps:d.Z,links:a().oneOfType([a().array,a().func])},g.defaultProps={meta:{},fallbackUrl:f.iU,invalidPathFallback:null,headerAddons:void 0,sessionManagerProps:{showRole:!0,onLogout:()=>{window.location.href=f.iU}},links:[]};const m=g},2484:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Y});var o,r=n(71171),i=n(96266),a=n(5057),s=n(55898),l=n.n(s),c=n(47685),d=n(52439),u=n(68420),f=n(71569),p=n(76223),h=n(24914),g=n.n(h),m=n(9498),v=n(38332);function b(e){let{name:t,logo:n,description:o,...r}=e;if(!t&&!n&&!o)return null;const s=(0,a.isValidElement)(n)?n:(0,i.jsx)("img",{src:n,alt:t});return(0,i.jsxs)(y,{...r,children:[(0,i.jsxs)("div",{children:[n&&(0,i.jsx)("div",{className:"footer-brand-logo",children:s}),t&&(0,i.jsx)("div",{className:"footer-brand-name",children:t})]}),o&&(0,i.jsx)("div",{className:"footer-brand-desc",children:o})]})}b.propTypes={name:l().node,logo:l().node,description:l().string},b.defaultProps={name:"",logo:"",description:""};const y=(0,c.zo)("div")(o||(o=(0,r.Z)(["\n display: flex;\n flex-direction: column;\n font-size: 14px;\n a {\n text-decoration: none;\n color: inherit;\n }\n > div:first-of-type {\n display: flex;\n align-items: center;\n }\n .footer-brand-logo {\n display: flex;\n align-items: center;\n margin-right: 16px;\n line-height: 1;\n img,\n svg {\n width: auto;\n height: 44px;\n max-height: 44px;\n }\n }\n .footer-brand-name {\n font-size: 16px;\n font-weight: bold;\n }\n .footer-brand-desc {\n margin-top: 16px;\n }\n\n "," {\n width: auto;\n }\n\n "," {\n .footer-brand-logo {\n img,\n svg {\n height: 32px;\n max-height: 32px;\n }\n }\n }\n"])),(e=>e.theme.breakpoints.down("sm")),(e=>e.theme.breakpoints.down("md")));var x,k=n(9978),w=n(76720),j=n(76924);function C(e){let{links:t,flowLayout:n,...o}=e;const[r,s]=(0,a.useState)(-1);if(null===t||void 0===t||!t.length)return null;const l=t.some((e=>{var t;return null===(t=e.items)||void 0===t?void 0:t.length})),c=e=>{let{label:t,link:n,icon:o,render:r,props:a}=e,s=t;return r?s=r({label:t,link:n,props:a}):n&&(s=(0,i.jsx)("a",{href:n,"aria-label":"Footer link for ".concat(t),...a,children:t})),(0,i.jsxs)(i.Fragment,{children:[o&&(0,i.jsx)(j.Z,{icon:o,size:20,sx:{mr:.5}}),s]})};return(0,i.jsx)(Z,{...o,className:(0,k.Z)(o.className,{"footer-links--grouped":l,"footer-links--flow":n}),children:(0,i.jsxs)("div",{className:"footer-links-inner",children:[n&&t.map(((e,t)=>(0,i.jsx)("span",{className:"footer-links-item",children:c(e)},t))),!n&&t.map(((e,t)=>{const{items:n}=e,o=t===r;return(0,i.jsxs)("div",{className:(0,k.Z)("footer-links-group",{"footer-links-group--active":o}),onClick:()=>s(r===t?-1:t),children:[(0,i.jsxs)("span",{className:"footer-links-item",children:[c(e),!(null===n||void 0===n||!n.length)&&(0,i.jsx)("span",{className:"footer-links-group-expand-icon",children:(0,i.jsx)(w.Z,{style:{transform:"rotate(".concat(o?180:0,"deg)")}})})]}),!(null===n||void 0===n||!n.length)&&(0,i.jsx)("div",{className:"footer-links-sub",children:n.map(((e,t)=>(0,i.jsx)("span",{className:"footer-links-item",children:c(e)},t)))})]},t)}))]})})}C.propTypes={links:l().arrayOf(l().shape({label:l().string,link:l().string,render:l().func,props:l().object})),flowLayout:l().bool},C.defaultProps={links:[],flowLayout:!1};const Z=(0,c.zo)("div")(x||(x=(0,r.Z)(["\n overflow: hidden;\n color: ",";\n .footer-links-inner {\n display: flex;\n justify-content: space-between;\n margin: 0 -8px;\n }\n .footer-links-group,\n .footer-links-sub {\n display: flex;\n flex-direction: column;\n }\n .footer-links-sub .footer-links-item {\n color: ",";\n }\n .footer-links-group-expand-icon {\n display: none;\n position: absolute;\n right: 16px;\n top: 50%;\n transform: translate(0, -50%);\n line-height: 1;\n svg {\n width: auto;\n height: 0.75em;\n }\n }\n .footer-links-item {\n display: inline-flex;\n align-items: center;\n position: relative;\n padding: 4px 8px;\n font-size: 14px;\n }\n &.footer-links--grouped {\n .footer-links-group {\n > .footer-links-item {\n font-weight: bold;\n }\n .footer-links-sub {\n margin-top: 8px;\n }\n }\n }\n a {\n display: inline-block;\n max-width: 150px;\n color: inherit;\n text-decoration: none;\n &:hover {\n text-decoration: underline;\n }\n }\n\n &.footer-links--flow {\n display: inline-flex;\n .footer-links-inner {\n justify-content: center;\n flex-wrap: wrap;\n margin: 0 -8px;\n .footer-links-item {\n padding: 0 8px;\n }\n .footer-links-item + .footer-links-item::before {\n content: '';\n position: absolute;\n left: 0;\n top: 50%;\n transform: translate(0, -50%);\n height: 1em;\n border-left: 1px solid ",";\n }\n }\n }\n\n "," {\n .footer-links-inner {\n flex-direction: column;\n margin: 0;\n }\n .footer-links-sub {\n display: none;\n }\n .footer-links-group {\n position: relative;\n padding: 12px 0;\n .footer-links-item .footer-links-group-expand-icon {\n display: inline-block;\n }\n }\n .footer-links-group + .footer-links-group {\n border-top: 1px solid ",";\n }\n .footer-links-group--active {\n .footer-links-sub {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n .footer-links-item {\n flex: 0 0 50%;\n }\n }\n }\n .footer-links-item {\n padding-left: 0;\n padding-right: 0;\n font-size: 13px;\n }\n &.footer-links--grouped {\n .footer-links-group {\n > .footer-links-item {\n font-size: 14px;\n }\n }\n }\n\n &.footer-links--flow {\n .footer-links-inner {\n flex-direction: row;\n }\n }\n }\n"])),(e=>e.theme.palette.grey[600]),(e=>e.theme.palette.grey[900]),(e=>e.theme.palette.grey[400]),(e=>e.theme.breakpoints.down("md")),(e=>e.theme.palette.grey[200]));var A;function I(e){let{items:t,...n}=e;const o=(0,c.Fg)();return null!==t&&void 0!==t&&t.length?(0,i.jsx)(S,{...n,children:t.map(((e,t)=>(0,i.jsx)("a",{href:e.link,target:"_blank","aria-label":"Social media icon".concat(e.title?" for ".concat(e.title):""),rel:"noreferrer",children:(0,i.jsx)(j.Z,{icon:e.icon||e.title,sx:{bgcolor:o.palette.grey[600],color:"#fff"},size:24,component:"span"})},t)))}):null}I.propTypes={items:l().arrayOf(l().shape({icon:l().string,link:l().string}))},I.defaultProps={items:null};const S=(0,c.zo)("div")(A||(A=(0,r.Z)(["\n display: inline-flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n gap: 20px;\n a {\n color: ",";\n text-decoration: none;\n &:hover {\n color: ",";\n }\n }\n "," {\n gap: 12px;\n }\n"])),(e=>e.theme.palette.grey[400]),(e=>e.theme.palette.primary.light),(e=>e.theme.breakpoints.down("md")));var M;function P(e){let{owner:t,year:n,...o}=e;return(0,i.jsxs)(O,{...o,children:["Copyright \xa9 ",n," ",t]})}P.propTypes={owner:l().string,year:l().string},P.defaultProps={owner:"ArcBlock",year:"".concat((new Date).getFullYear())};const O=(0,c.zo)("p")(M||(M=(0,r.Z)(["\n display: flex;\n align-items: center;\n margin: 0;\n font-size: 13px;\n"])));var T,R=n(101);function N(e){let{children:t,autoCenter:n,...o}=e;return t?(0,i.jsx)(E,{...o,className:(0,k.Z)(o.className,{"footer-row-auto-center":n}),children:t}):null}N.propTypes={children:l().any,autoCenter:l().bool},N.defaultProps={children:null,autoCenter:!1};const E=(0,c.zo)(v.Z)(T||(T=(0,r.Z)(["\n display: flex;\n justify-content: space-between;\n & + & {\n margin-top: 24px;\n }\n &.footer-row-auto-center > *:only-child {\n margin: 0 auto;\n }\n\n "," {\n align-items: stretch;\n flex-direction: column;\n gap: 16px;\n > * {\n flex: 1 0 100%;\n }\n &.footer-row-auto-center > * {\n margin: 0 auto;\n }\n }\n"])),(e=>e.theme.breakpoints.down("md")));var L;function z(e){var t;let{elements:n,data:o,...r}=e;return(0,i.jsx)(F,{...r,children:(0,i.jsxs)(R.Z,{children:[(0,i.jsxs)(v.Z,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},justifyContent:"space-between",alignItems:{xs:"center",md:"space-between"},gap:2,pb:3},children:[(0,i.jsx)(v.Z,{children:n.brand}),(0,i.jsx)(v.Z,{lineHeight:1,children:n.socialMedia})]}),!(null===(t=o.navigation)||void 0===t||!t.length)&&(0,i.jsx)(v.Z,{sx:{mb:6,pt:3,borderTop:1,borderColor:"grey.200"},children:n.navigation}),(0,i.jsxs)(N,{sx:{pt:3,borderTop:1,borderColor:"grey.200"},autoCenter:!0,children:[n.copyright,n.links]})]})})}z.propTypes={elements:l().shape({brand:l().element,navigation:l().element,socialMedia:l().element,copyright:l().element,links:l().element}).isRequired,data:l().object.isRequired};const F=(0,c.zo)("div")(L||(L=(0,r.Z)(["\n padding: 32px 0 24px 0;\n .footer-brand-name,\n .footer-brand-desc {\n display: none;\n }\n && .footer-brand-logo {\n margin-right: 0;\n }\n"]))),q=z;var _;function B(e){let{elements:t,data:n,...o}=e;return(0,i.jsx)(D,{...o,children:(0,i.jsxs)(R.Z,{className:"plain-layout-container",children:[!!n.links&&(0,i.jsxs)(N,{sx:{width:1},autoCenter:!0,children:[t.copyright,t.links]}),!n.links&&(0,i.jsxs)(i.Fragment,{children:[(0,a.cloneElement)(t.brand,{name:null,description:null}),t.copyright]})]})})}B.propTypes={elements:l().shape({brand:l().element,navigation:l().element,socialMedia:l().element,copyright:l().element,links:l().element}).isRequired,data:l().object.isRequired};const D=(0,c.zo)("div")(_||(_=(0,r.Z)(["\n padding: 24px 0;\n .plain-layout-container {\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-wrap: wrap;\n gap: 8px;\n }\n"]))),G=[{name:"plain",support:(e,t)=>{var n,o;return!(null!==(n=t.navigation)&&void 0!==n&&n.length)&&!(null!==(o=t.socialMedia)&&void 0!==o&&o.length)},component:B},{name:"standard",support:()=>!0,component:q}],H=G.reduce(((e,t)=>({...e,[t.name]:t})),{});function U(e){var t,n;const{brand:o,navigation:r,socialMedia:a,copyright:s,links:l,layout:c,...d}=e,u={brand:o?(0,i.jsx)(b,{...o}):null,navigation:null!==r&&void 0!==r&&r.length?(0,i.jsx)(C,{links:r}):null,socialMedia:null!==a&&void 0!==a&&a.length?(0,i.jsx)(I,{items:a}):null,copyright:(()=>{const e=(null===s||void 0===s?void 0:s.owner)||(null===o||void 0===o?void 0:o.name);return e?(0,i.jsx)(P,{owner:e,year:(null===s||void 0===s?void 0:s.year)||void 0}):null})(),links:null!==l&&void 0!==l&&l.length?(0,i.jsx)(C,{flowLayout:!0,links:l}):null};let f=null;var p;"auto"===c?f=G.find((t=>t.support(u,e))).component:f=null===(p=H[c])||void 0===p?void 0:p.component;if(!f)throw new Error("layout ".concat(c," is not supported."));return(0,i.jsxs)(v.Z,{position:"relative",...d,children:[(0,i.jsx)(f,{elements:u,data:e}),(0,i.jsx)(v.Z,{position:"absolute",right:16,bottom:0,fontSize:12,sx:{color:"transparent","::selection":{background:"#000",color:"#fff"}},children:null===(t=window)||void 0===t||null===(n=t.blocklet)||void 0===n?void 0:n.version})]})}U.propTypes={brand:l().shape({name:l().node,description:l().string,logo:l().node}),navigation:l().arrayOf(l().shape({label:l().node,link:l().string})),socialMedia:l().arrayOf(l().shape({icon:l().node,link:l().string})),copyright:l().shape({owner:l().string,year:l().oneOfType([l().string,l().number])}),links:l().arrayOf(l().shape({label:l().node,link:l().string})),layout:l().oneOf(["auto","standard","plain"])},U.defaultProps={brand:null,navigation:null,copyright:null,socialMedia:null,links:null,layout:"auto"};const V=U;var J,K=n(6504),$=n(94457),W=n(615);function X(e){var t,n,o,r;let{meta:s,theme:l,...c}=e;const{locale:d}=(0,u.PE)()||{},f=(0,a.useMemo)((()=>{const e=Object.assign({},window.blocklet,s);try{return(0,$.RX)(e)}catch(t){return console.error("Failed to format blocklet info",t,e),e}}),[s]);if(!f.appName)return null;const{appLogo:p,appLogoRect:h,appName:v,appDescription:b,description:y,theme:x,copyright:k}=f,w={footerNav:(0,$.KN)(null===f||void 0===f||null===(t=f.navigation)||void 0===t?void 0:t.footer,d)||[],socialMedia:(0,$.KN)(null===f||void 0===f||null===(n=f.navigation)||void 0===n?void 0:n.social,d)||[],links:(0,$.KN)(null===f||void 0===f||null===(o=f.navigation)||void 0===o?void 0:o.bottom,d)||[]},j={brand:{name:v,description:b||y,logo:h||p},navigation:(0,K._J)(w.footerNav,(e=>({...e,label:e.title,link:e.link})),"items"),copyright:k,socialMedia:w.socialMedia,links:w.links.map((e=>({...e,label:e.title})))};return(0,i.jsx)(m.Z,{theme:l,children:(0,i.jsx)(Q,{...j,...g()(c,["bordered"]),$bordered:null===c||void 0===c?void 0:c.bordered,$bgcolor:null===x||void 0===x||null===(r=x.background)||void 0===r?void 0:r.footer})})}X.propTypes={meta:W.I,theme:l().object},X.defaultProps={meta:{},theme:null};const Q=(0,c.zo)(V)(J||(J=(0,r.Z)(["\n ","\n color: ",";\n ","\n font-family: Inter, Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif,\n 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';\n"])),(e=>{let{$bordered:t}=e;return"border-top: 1px solid ".concat(t?p.E.strokeSep:"#eee",";")}),(e=>e.theme.palette.grey[600]),(e=>{let{$bgcolor:t}=e;return t&&"background-color: ".concat(t,";")})),Y=(0,d.withErrorBoundary)(X,{FallbackComponent:f.H})},1192:(e,t,n)=>{"use strict";n.d(t,{Z:()=>I});var o,r=n(71171),i=n(96266),a=n(5057),s=n(55898),l=n.n(s),c=n(52439),d=n(71569),u=n(47685),f=n(60391),p=n(48250),h=n(68420),g=n(76223),m=n(24914),v=n.n(m),b=n(76924),y=n(9498),x=n(615),k=n(6504),w=n(94457),j=n(94612),C=n(25162);function Z(e){var t,n;let{meta:o,addons:r,sessionManagerProps:s,homeLink:l,theme:c,...d}=e;(0,C.x)();const{locale:u}=(0,h.PE)()||{},f=(0,a.useMemo)((()=>{const e=Object.assign({},window.blocklet,o);try{return(0,w.RX)(e)}catch(t){return console.error("Failed to format blocklet info",t,e),e}}),[o]);if(!f.appName)return null;const{appLogo:g,appLogoRect:m,theme:x}=f,Z=(e=>{if(null===e||void 0===e||!e.length)return{navItems:[],activeId:null};let t=1;const n=(0,k._J)(e,(e=>{var n,o;const r=e.icon?(0,i.jsx)(b.Z,{icon:e.icon}):null;if(e.items)return{id:"".concat(t++),label:e.title,icon:r,children:e.items};let a={};return(null!==(n=e.link)&&void 0!==n&&n.startsWith("http://")||null!==(o=e.link)&&void 0!==o&&o.startsWith("https://"))&&(a={target:"_blank",rel:"noreferrer"}),{id:"".concat(t++),label:(0,i.jsx)("a",{href:e.link,...a,children:e.title}),icon:r,link:e.link}}),"items"),o=(0,k.Ik)(n),r=(0,k.RX)(o.map((e=>e.link)));return{navItems:n,activeId:r>=0?o[r].id:null}})((0,w.KN)(null===f||void 0===f||null===(t=f.navigation)||void 0===t?void 0:t.header,u)),{navItems:I,activeId:S}=Z,M="function"===typeof r?e=>r(e,{navigation:Z}):r,P=(0,i.jsx)(j.Z,{formattedBlocklet:f,addons:M,sessionManagerProps:s});return(0,i.jsx)(y.Z,{theme:c,children:(0,i.jsx)(A,{homeLink:l,logo:(0,i.jsx)("img",{src:m||g,alt:"logo"}),addons:P,...v()(d,["bordered"]),$bordered:null===d||void 0===d?void 0:d.bordered,$bgcolor:null===x||void 0===x||null===(n=x.background)||void 0===n?void 0:n.header,children:null!==I&&void 0!==I&&I.length?e=>{let{isMobile:t}=e;return(0,i.jsx)(p.Z,{mode:t?"inline":"horizontal",activeId:S,items:I,className:"header-nav",bgColor:"transparent",textColor:"#777"})}:null})})}Z.propTypes={meta:x.I,addons:l().oneOfType([l().func,l().node]),sessionManagerProps:x.Z,homeLink:l().string,theme:l().object},Z.defaultProps={meta:{},addons:null,sessionManagerProps:{showRole:!0},homeLink:w.iU,theme:null};const A=(0,u.zo)(f.z)(o||(o=(0,r.Z)(["\n ","\n font-family: Inter, Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif,\n 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';\n .header-logo {\n min-width: 44px;\n }\n ","\n "," {\n .header-logo {\n min-width: 32px;\n }\n }\n .header-nav {\n .navmenu-sub .navmenu-item {\n min-width: 80px;\n }\n }\n .header-nav.navmenu--horizontal {\n .navmenu-root > .navmenu-sub,\n .navmenu-root > .navmenu-item {\n padding: 16px 4px;\n\n .navmenu-sub-container {\n padding-top: 0;\n }\n }\n .navmenu-item-icon > .MuiAvatar-root,\n .navmenu-sub-icon > .MuiAvatar-root {\n width: 20px;\n height: 20px;\n }\n }\n"])),(e=>{let{$bgcolor:t}=e;return"background-color: ".concat(t||"#fff",";")}),(e=>{let{$bordered:t}=e;return t?"border-bottom: 1px solid ".concat(g.E.strokeSep,";"):""}),(e=>e.theme.breakpoints.down("md"))),I=(0,c.withErrorBoundary)(Z,{FallbackComponent:d.H})},76924:(e,t,n)=>{"use strict";n.d(t,{Z:()=>j});var o=n(96266),r=(n(49631),n(55898)),i=n.n(r),a=n(31461),s=n(7896),l=n(5057),c=n(9978),d=n(91213),u=n(62773),f=n(42908);const p=(0,n(57471).Z)((0,o.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");var h=n(31821),g=n(18561);function m(e){return(0,g.ZP)("MuiAvatar",e)}(0,h.Z)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const v=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],b=(0,u.ZP)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})((e=>{let{theme:t}=e;return{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:(0,s.Z)({color:(t.vars||t).palette.background.default},t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:(0,s.Z)({backgroundColor:t.palette.grey[400]},t.applyStyles("dark",{backgroundColor:t.palette.grey[600]})))}]}})),y=(0,u.ZP)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),x=(0,u.ZP)(p,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});const k=l.forwardRef((function(e,t){const n=(0,f.Z)({props:e,name:"MuiAvatar"}),{alt:r,children:i,className:u,component:p="div",imgProps:h,sizes:g,src:k,srcSet:w,variant:j="circular"}=n,C=(0,a.Z)(n,v);let Z=null;const A=function(e){let{crossOrigin:t,referrerPolicy:n,src:o,srcSet:r}=e;const[i,a]=l.useState(!1);return l.useEffect((()=>{if(!o&&!r)return;a(!1);let e=!0;const i=new Image;return i.onload=()=>{e&&a("loaded")},i.onerror=()=>{e&&a("error")},i.crossOrigin=t,i.referrerPolicy=n,i.src=o,r&&(i.srcset=r),()=>{e=!1}}),[t,n,o,r]),i}((0,s.Z)({},h,{src:k,srcSet:w})),I=k||w,S=I&&"error"!==A,M=(0,s.Z)({},n,{colorDefault:!S,component:p,variant:j}),P=(e=>{const{classes:t,variant:n,colorDefault:o}=e,r={root:["root",n,o&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,d.Z)(r,m,t)})(M);return Z=S?(0,o.jsx)(y,(0,s.Z)({alt:r,srcSet:w,src:k,sizes:g,ownerState:M,className:P.img},h)):null!=i&&""!==i&&"boolean"!==typeof i?i:I&&r?r[0]:(0,o.jsx)(x,{ownerState:M,className:P.fallback}),(0,o.jsx)(b,(0,s.Z)({as:p,ownerState:M,className:(0,c.Z)(P.root,u),ref:t},C,{children:Z}))}));var w=n(6504);function j(e){let{icon:t,size:n,sx:r,...i}=e;const a=[...Array.isArray(r)?r:[r]];if(n&&a.push({width:n,height:n}),i.variant||a.push({"&.MuiAvatar-root":{color:"inherit",fontWeight:"bold",backgroundColor:"transparent",borderRadius:0},"&.MuiAvatar-root svg":{width:"100%",height:"100%"}}),(0,w.CB)(t))return(0,o.jsx)(k,{as:"span",...i,src:t,sx:a});if((0,w.Xk)(t)){const e=n?.6*n+4:0;return(0,o.jsx)(k,{as:"span",...i,sx:a,children:(0,o.jsx)("iconify-icon",{icon:t,height:e||void 0})})}return t&&"string"===typeof t?(a.push({"&.MuiAvatar-root":{display:"inline-flex",...n&&{fontSize:n-2}}}),(0,o.jsx)(k,{as:"span",...i,sx:a,children:Array.from(t)[0]})):null}j.propTypes={icon:i().string.isRequired,size:i().number,sx:i().oneOfType([i().array,i().func,i().object])},j.defaultProps={size:null,sx:null}},94457:(e,t,n)=>{"use strict";n.d(t,{KN:()=>c,Kb:()=>p,RX:()=>u,iU:()=>l});var o,r,i,a,s=n(6504);const l=(null===(o=window)||void 0===o||null===(r=o.blocklet)||void 0===r?void 0:r.groupPrefix)||(null===(i=window)||void 0===i||null===(a=i.blocklet)||void 0===a?void 0:a.prefix)||"/",c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";if(null===e||void 0===e||!e.length)return e;const n=(e,t)=>"string"===typeof e?e:"object"===typeof e?e[t]||(null===e||void 0===e?void 0:e.en)||(null===e||void 0===e?void 0:e.zh):e,o=(e,t)=>{if("string"===typeof e){if((0,s.CB)(e)){const n=new URL(e);return n.searchParams.set("locale",t),n.href}const n=new URL(e,window.location.origin);return n.searchParams.set("locale",t),n.pathname+n.search}return"object"===typeof e?e[t]||(null===e||void 0===e?void 0:e.en)||(null===e||void 0===e?void 0:e.zh):e};return(0,s._J)(e,(e=>{var r;return{...e,title:n(e.title,t),link:null!==(r=e.items)&&void 0!==r&&r.length?e.link:o(e.link,t),_rawLink:e.link}}),"items")},d=e=>{if(null===e||void 0===e||!e.length)return null;const t=(e=>(0,s._J)(e,(e=>e.role?{...e,role:Array.isArray(e.role)?e.role:[e.role]}:e),"items"))(e),n={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return t.forEach((e=>{if(e.section){if(Array.isArray(e.section))e.section.forEach((t=>{var o;null===(o=n[t])||void 0===o||o.push(e)}));else if("string"===typeof e.section){var t;null===(t=n[e.section])||void 0===t||t.push(e)}}else n.header.push(e)})),n},u=e=>{if(!e)return null;const t={...e};return t.theme=(e=>{const t={...e},n=null===e||void 0===e?void 0:e.background;return"string"===typeof n?t.background={header:n,footer:n,default:n}:n&&"object"===typeof n&&(t.background={header:n.header||n.default,footer:n.footer||n.default,default:n.default}),t})(t.theme),t.navigation=d(f(t.navigation)),t},f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,s.fA)(e,((e,t)=>{var n;return!!e.link||(null===(n=t.filteredChildren)||void 0===n?void 0:n.length)}),"items")},p=(e,t)=>(0,s.fA)(e,((e,n)=>{const o=!e.role||t&&e.role.includes(t);var r;return n.isLeaf?o:o&&(null===(r=n.filteredChildren)||void 0===r?void 0:r.length)}),"items")},94612:(e,t,n)=>{"use strict";n.d(t,{Z:()=>ue});var o=n(96266),r=(n(49631),n(5057)),i=n(55898),a=n.n(i),s=n(44247),l=n(68138),c=n(67680),d=n(98206),u=n(72113),f=n(7469),p=n(25228),h=n(19577),g=n(31461),m=n(7896),v=n(9978),b=n(91213),y=n(89081),x=n(66685),k=n(62773),w=n(42908),j=n(66230),C=n(61625),Z=n(61121),A=n(2286),I=n(6153),S=n(31821),M=n(18561);function P(e){return(0,M.ZP)("MuiListItem",e)}const O=(0,S.Z)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function T(e){return(0,M.ZP)("MuiListItemButton",e)}const R=(0,S.Z)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function N(e){return(0,M.ZP)("MuiListItemSecondaryAction",e)}(0,S.Z)("MuiListItemSecondaryAction",["root","disableGutters"]);const E=["className"],L=(0,k.ZP)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((e=>{let{ownerState:t}=e;return(0,m.Z)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0})})),z=r.forwardRef((function(e,t){const n=(0,w.Z)({props:e,name:"MuiListItemSecondaryAction"}),{className:i}=n,a=(0,g.Z)(n,E),s=r.useContext(I.Z),l=(0,m.Z)({},n,{disableGutters:s.disableGutters}),c=(e=>{const{disableGutters:t,classes:n}=e,o={root:["root",t&&"disableGutters"]};return(0,b.Z)(o,N,n)})(l);return(0,o.jsx)(L,(0,m.Z)({className:(0,v.Z)(c.root,i),ownerState:l,ref:t},a))}));z.muiName="ListItemSecondaryAction";const F=z,q=["className"],_=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],B=(0,k.ZP)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((e=>{let{theme:t,ownerState:n}=e;return(0,m.Z)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!n.disablePadding&&(0,m.Z)({paddingTop:8,paddingBottom:8},n.dense&&{paddingTop:4,paddingBottom:4},!n.disableGutters&&{paddingLeft:16,paddingRight:16},!!n.secondaryAction&&{paddingRight:48}),!!n.secondaryAction&&{["& > .".concat(R.root)]:{paddingRight:48}},{["&.".concat(O.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(O.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,x.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(O.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,x.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(O.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"flex-start"===n.alignItems&&{alignItems:"flex-start"},n.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},n.button&&{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(O.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,x.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,x.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}}},n.hasSecondaryAction&&{paddingRight:48})})),D=(0,k.ZP)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),G=r.forwardRef((function(e,t){const n=(0,w.Z)({props:e,name:"MuiListItem"}),{alignItems:i="center",autoFocus:a=!1,button:s=!1,children:l,className:c,component:d,components:u={},componentsProps:f={},ContainerComponent:p="li",ContainerProps:{className:h}={},dense:x=!1,disabled:k=!1,disableGutters:S=!1,disablePadding:M=!1,divider:T=!1,focusVisibleClassName:R,secondaryAction:N,selected:E=!1,slotProps:L={},slots:z={}}=n,G=(0,g.Z)(n.ContainerProps,q),H=(0,g.Z)(n,_),U=r.useContext(I.Z),V=r.useMemo((()=>({dense:x||U.dense||!1,alignItems:i,disableGutters:S})),[i,U.dense,x,S]),J=r.useRef(null);(0,Z.Z)((()=>{a&&J.current&&J.current.focus()}),[a]);const K=r.Children.toArray(l),$=K.length&&(0,C.Z)(K[K.length-1],["ListItemSecondaryAction"]),W=(0,m.Z)({},n,{alignItems:i,autoFocus:a,button:s,dense:V.dense,disabled:k,disableGutters:S,disablePadding:M,divider:T,hasSecondaryAction:$,selected:E}),X=(e=>{const{alignItems:t,button:n,classes:o,dense:r,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:d}=e,u={root:["root",r&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",d&&"selected"],container:["container"]};return(0,b.Z)(u,P,o)})(W),Q=(0,A.Z)(J,t),Y=z.root||u.Root||B,ee=L.root||f.root||{},te=(0,m.Z)({className:(0,v.Z)(X.root,ee.className,c),disabled:k},H);let ne=d||"li";return s&&(te.component=d||"div",te.focusVisibleClassName=(0,v.Z)(O.focusVisible,R),ne=j.Z),$?(ne=te.component||d?ne:"div","li"===p&&("li"===ne?ne="div":"li"===te.component&&(te.component="div")),(0,o.jsx)(I.Z.Provider,{value:V,children:(0,o.jsxs)(D,(0,m.Z)({as:p,className:(0,v.Z)(X.container,h),ref:Q,ownerState:W},G,{children:[(0,o.jsx)(Y,(0,m.Z)({},ee,!(0,y.X)(Y)&&{as:ne,ownerState:(0,m.Z)({},W,ee.ownerState)},te,{children:K})),K.pop()]}))})):(0,o.jsx)(I.Z.Provider,{value:V,children:(0,o.jsxs)(Y,(0,m.Z)({},ee,{as:ne,ref:Q},!(0,y.X)(Y)&&{ownerState:(0,m.Z)({},W,ee.ownerState)},te,{children:[K,N&&(0,o.jsx)(F,{children:N})]}))})})),H=G,U=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],V=(0,k.ZP)(j.Z,{shouldForwardProp:e=>(0,k.FO)(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((e=>{let{theme:t,ownerState:n}=e;return(0,m.Z)({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(R.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,x.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(R.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,x.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(R.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,x.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,x.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(R.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(R.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},n.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},"flex-start"===n.alignItems&&{alignItems:"flex-start"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.dense&&{paddingTop:4,paddingBottom:4})})),J=r.forwardRef((function(e,t){const n=(0,w.Z)({props:e,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:a=!1,component:s="div",children:l,dense:c=!1,disableGutters:d=!1,divider:u=!1,focusVisibleClassName:f,selected:p=!1,className:h}=n,y=(0,g.Z)(n,U),x=r.useContext(I.Z),k=r.useMemo((()=>({dense:c||x.dense||!1,alignItems:i,disableGutters:d})),[i,x.dense,c,d]),j=r.useRef(null);(0,Z.Z)((()=>{a&&j.current&&j.current.focus()}),[a]);const C=(0,m.Z)({},n,{alignItems:i,dense:k.dense,disableGutters:d,divider:u,selected:p}),S=(e=>{const{alignItems:t,classes:n,dense:o,disabled:r,disableGutters:i,divider:a,selected:s}=e,l={root:["root",o&&"dense",!i&&"gutters",a&&"divider",r&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},c=(0,b.Z)(l,T,n);return(0,m.Z)({},n,c)})(C),M=(0,A.Z)(j,t);return(0,o.jsx)(I.Z.Provider,{value:k,children:(0,o.jsx)(V,(0,m.Z)({ref:M,href:y.href||y.to,component:(y.href||y.to)&&"div"===s?"button":s,focusVisibleClassName:(0,v.Z)(S.focusVisible,f),ownerState:C,className:(0,v.Z)(S.root,h)},y,{classes:S,children:l}))})})),K=J;var $=n(38332),W=n(11750),X=n(55498);const Q={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},Y={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};var ee=n(12673),te=n(99360),ne=n(28726),oe=n(76223),re=n(21998),ie=n(43907);function ae(e){var t;let{session:n,locale:i,size:a}=e;const s=(null===(t=window)||void 0===t?void 0:t.blocklet)||{},l=(s.navigation||[]).filter((e=>"sessionManager"===e.section&&!["/sessionManager"].includes(e.id))).filter((e=>{var t;return!!((null===e||void 0===e?void 0:e.role)||[]).includes((null===n||void 0===n||null===(t=n.user)||void 0===t?void 0:t.role)||"guest")})).map((e=>{const t=((null===s||void 0===s?void 0:s.componentMountPoints)||[]).find((t=>e.component===t.name));return{...e,component:t}})),g=(0,r.useRef)(null),m=(0,ee.Z)({open:!1}),v=(0,te.Z)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!m.open;m.open=e}));return 0!==l.length&&null!==n&&void 0!==n&&n.user?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c.Z,{size:"medium",ref:g,onClick:()=>v(),children:(0,o.jsx)(X.JO,{icon:Q,fontSize:a,style:{transform:"scale(1.08)"}})}),(0,o.jsx)(d.Z,{open:m.open,onClose:()=>v(!1),anchorEl:g.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:e=>{let{TransitionProps:t}=e;return(0,o.jsx)(u.d,{onClickAway:e=>{e.preventDefault(),e.stopPropagation(),v(!1)},children:(0,o.jsx)(f.Z,{...t,timeout:350,children:(0,o.jsxs)(p.Z,{variant:"outlined",sx:{borderRadius:3,width:350,maxWidth:"90vw",borderColor:oe.E.lineStep,p:2,border:"0 !important",boxShadow:"0px 8px 16px 0px ".concat(oe.E.gray6,", 0px 0px 0px 1px ").concat(oe.E.gray6)},children:[(0,o.jsx)(h.Z,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:l.map((e=>{var t,n;return(0,o.jsx)(H,{disablePadding:!0,children:(0,o.jsxs)(K,{href:e.link,sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:2,"&:hover":{backgroundColor:oe.E.surfacePrimarySubtitle}},children:[null!==e&&void 0!==e&&null!==(t=e.component)&&void 0!==t&&t.did?(0,o.jsx)($.Z,{component:"img",src:"".concat(re.Bu,"/blocklet/logo-bundle/").concat(e.component.did),sx:{borderRadius:2,width:50,height:50,objectFit:"contain"}}):(0,o.jsx)(X.JO,{fontSize:50,icon:e.icon||Y,color:oe.E.textSubtitle}),(0,o.jsx)(W.Z,{sx:{fontSize:"12px",color:oe.E.textBase,textAlign:"center",lineHeight:"normal"},children:(null===(n=e.title)||void 0===n?void 0:n.zh)||e.title})]})},e.id)}))}),(0,o.jsx)(ie.Z,{session:n,children:(0,o.jsx)(ne.Z,{variant:"outlined",fullWidth:!0,href:re.Rt,sx:{mt:1,borderRadius:2,color:oe.E.textBase,borderColor:oe.E.lineBorderStrong,"&:hover":{color:oe.E.primaryBase,borderColor:oe.E.primaryBase}},children:"zh"===i?"\u7ba1\u7406":"Manage"})})]})})})}})]}):null}ae.propTypes={session:a().object.isRequired,locale:a().string,size:a().number},ae.defaultProps={locale:"en",size:24};var se=n(30296),le=n(68420),ce=n(615),de=n(94457);function ue(e){var t,n,i,a;let{formattedBlocklet:c,addons:d,sessionManagerProps:u}=e;const f=(0,r.useContext)(s.B3),{locale:p}=(0,le.PE)()||{},{enableConnect:h=!0,enableLocale:g=!0}=c,m=!(null===f||void 0===f||null===(t=f.session)||void 0===t||!t.user);let v=(0,de.KN)(null===c||void 0===c||null===(n=c.navigation)||void 0===n?void 0:n.sessionManager,p)||[];v=(0,de.Kb)(v,null===f||void 0===f||null===(i=f.session)||void 0===i||null===(a=i.user)||void 0===a?void 0:a.role);const b=(()=>{if(d&&"function"!==typeof d)return Array.isArray(d)?d:[d];let e=[];if(g&&p&&e.push((0,o.jsx)(se.Z,{showText:!1},"locale-selector")),h&&f){const t=[];if(m){(v?v.slice(0,5):[]).forEach((e=>{t.push({label:e.title,icon:e.icon?(0,o.jsx)("iconify-icon",{icon:e.icon,height:24,style:{marginRight:8}}):null,component:"a",href:e.link,key:e.link})}))}e.push((0,o.jsx)(ae,{session:f.session,locale:p},"session-blocklet")),e.push((0,o.jsx)(l.Z,{session:f.session,locale:p,menu:t,showRole:!0,...u},"session-user"))}return"function"===typeof d&&(e=d(e)||[]),e})();return(0,r.createElement)(o.Fragment,null,...Array.isArray(b)?b:[b])}ue.propTypes={formattedBlocklet:a().object.isRequired,addons:a().oneOfType([a().func,a().node]),sessionManagerProps:ce.Z},ue.defaultProps={addons:null,sessionManagerProps:{showRole:!0}}},9498:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(96266),r=n(55898),i=n.n(r),a=n(47685);const s=(0,a.jG)();function l(e){let{theme:t,children:n}=e;const r=t?(0,a.jG)(t):s;return(0,o.jsx)(a.f6,{theme:r,children:n})}l.propTypes={children:i().any.isRequired,theme:i().object},l.defaultProps={theme:null}},25162:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});var o=n(5057),r=n(60829);const i=()=>{const e=(0,r.Z)();(0,o.useEffect)((()=>{e.wallet&&n.e(2365).then(n.t.bind(n,72365,23)).then((e=>{e.call||(e=e.default),e.call("arcHideTopBar","{}")})).catch((e=>{console.error("load dsbridge error",e)}))}),[e])}},615:(e,t,n)=>{"use strict";n.d(t,{I:()=>i,Z:()=>a});var o=n(55898),r=n.n(o);const i=r().shape({appLogo:r().node,appName:r().string,theme:r().shape({background:r().string}),enableConnect:r().bool,enableLocale:r().bool,navigation:r().arrayOf(r().shape({title:r().oneOfType([r().string,r().object]),link:r().oneOfType([r().string,r().object]),icon:r().string,items:r().arrayOf(r().shape({title:r().oneOfType([r().string,r().object]),link:r().oneOfType([r().string,r().object])}))}))}),a=r().shape({showText:r().bool,showRole:r().bool,switchDid:r().bool,switchProfile:r().bool,switchPassport:r().bool,disableLogout:r().bool,onLogin:r().func,onLogout:r().func,onSwitchDid:r().func,onSwitchProfile:r().func,onSwitchPassport:r().func,menu:r().array,menuRender:r().func,dark:r().bool,size:r().number})},6504:(e,t,n)=>{"use strict";n.d(t,{CB:()=>a,Ik:()=>r,RX:()=>l,Xk:()=>s,_J:()=>o,fA:()=>i});const o=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children";return e.map((e=>Array.isArray(e[n])?t({...e,[n]:o(e[n],t,n)}):t(e)))},r=function(e){const t=[];return o(e,(e=>t.push(e)),arguments.length>1&&void 0!==arguments[1]?arguments[1]:"children"),t},i=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children";return e.map((e=>({...e}))).filter((e=>{const o=e[n];if(Array.isArray(o)){const r=i(o,t,n);e[n]=null!==r&&void 0!==r&&r.length?r:void 0}const r={filteredChildren:e[n],isLeaf:!(null!==o&&void 0!==o&&o.length)};return t(e,r)}))},a=e=>/^https?:\/\//.test(e),s=e=>/^[\w-]+:[\w-]+$/.test(e),l=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(((e,t)=>({path:e,index:t}))).filter((e=>(e=>{if(!e||null===e||void 0===e||!e.startsWith("/"))return!1;const t=e=>e.endsWith("/")?e:"".concat(e,"/"),n=t(window.location.pathname),o=t(new URL(e,window.location.origin).pathname);return n.startsWith(o)})(e.path)));if(null===e||void 0===e||!e.length)return-1;return e.slice(1).reduce(((e,t)=>e.path.length>=t.path.length?e:t),e[0]).index}},63838:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var o=n(27812),r=n(67120),i=n(89141),a=n(41168),s=n(5057),l=n(78590),c=n(50482),d=n.n(c);const u=function(e,t,n){var o,r,i=(0,s.useRef)(),a=(0,s.useRef)(0);o=t,r=i.current,void 0===o&&(o=[]),void 0===r&&(r=[]),d()(o,r)||(i.current=t,a.current+=1),(0,l.Z)(e,[a.current],n)};var f={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:/(mac|iphone|ipod|ipad)/i.test("undefined"!==typeof navigator?null===navigator||void 0===navigator?void 0:navigator.platform:"")?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},p={ctrl:function(e){return e.ctrlKey},shift:function(e){return e.shiftKey},alt:function(e){return e.altKey},meta:function(e){return"keyup"===e.type?f.meta.includes(e.keyCode):e.metaKey}};function h(e){return(0,i.HD)(e)||(0,i.hj)(e)}function g(e,t,n){var r,a;if(!e.key)return!1;if((0,i.hj)(t))return e.keyCode===t&&t;var s=t.split("."),l=0;try{for(var c=(0,o.__values)(s),d=c.next();!d.done;d=c.next()){var u=d.value,h=p[u],g=f[u.toLowerCase()];(h&&h(e)||g&&g===e.keyCode)&&l++}}catch(m){r={error:m}}finally{try{d&&!d.done&&(a=c.return)&&a.call(c)}finally{if(r)throw r.error}}return n?l===s.length&&function(e){var t=Object.keys(p).reduce((function(t,n){return p[n](e)?t+1:t}),0);return[16,17,18,91,92].includes(e.keyCode)?t:t+1}(e)===s.length&&t:l===s.length&&t}var m=["keydown"];const v=function(e,t,n){var s=n||{},l=s.events,c=void 0===l?m:l,d=s.target,f=s.exactMatch,p=void 0!==f&&f,v=s.useCapture,b=void 0!==v&&v,y=(0,r.Z)(t),x=(0,r.Z)(e);u((function(){var e,t,n,r=(0,a.n)(d,window);if(r){var s=function(e){var t,n=function(e,t){return(0,i.mf)(e)?e:h(e)?function(n){return g(n,e,t)}:Array.isArray(e)?function(n){return e.find((function(e){return g(n,e,t)}))}:function(){return Boolean(e)}}(x.current,p),o=n(e),r=h(o)?o:e.key;if(o)return null===(t=y.current)||void 0===t?void 0:t.call(y,e,r)};try{for(var l=(0,o.__values)(c),u=l.next();!u.done;u=l.next()){var f=u.value;null===(n=null===r||void 0===r?void 0:r.addEventListener)||void 0===n||n.call(r,f,s,b)}}catch(m){e={error:m}}finally{try{u&&!u.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}return function(){var e,t,n;try{for(var i=(0,o.__values)(c),a=i.next();!a.done;a=i.next()){var l=a.value;null===(n=null===r||void 0===r?void 0:r.removeEventListener)||void 0===n||n.call(r,l,s,b)}}catch(d){e={error:d}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}}}}),[c],d)}},50482:(e,t,n)=>{var o=n(23800);e.exports=function(e,t){return o(e,t)}},56977:(e,t,n)=>{"use strict";var o=n(24921);function r(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function i(e,t){for(var n,o="",r=0,i=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else{if(47===n)break;n=47}if(47===n){if(i===s-1||1===a);else if(i!==s-1&&2===a){if(o.length<2||2!==r||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2))if(o.length>2){var l=o.lastIndexOf("/");if(l!==o.length-1){-1===l?(o="",r=0):r=(o=o.slice(0,l)).length-1-o.lastIndexOf("/"),i=s,a=0;continue}}else if(2===o.length||1===o.length){o="",r=0,i=s,a=0;continue}t&&(o.length>0?o+="/..":o="..",r=2)}else o.length>0?o+="/"+e.slice(i+1,s):o=e.slice(i+1,s),r=s-i-1;i=s,a=0}else 46===n&&-1!==a?++a:a=-1}return o}var a={resolve:function(){for(var e,t="",n=!1,a=arguments.length-1;a>=-1&&!n;a--){var s;a>=0?s=arguments[a]:(void 0===e&&(e=o.cwd()),s=e),r(s),0!==s.length&&(t=s+"/"+t,n=47===s.charCodeAt(0))}return t=i(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(r(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=i(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return r(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];r(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":a.normalize(e)},relative:function(e,t){if(r(e),r(t),e===t)return"";if((e=a.resolve(e))===(t=a.resolve(t)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var o=e.length,i=o-n,s=1;s<t.length&&47===t.charCodeAt(s);++s);for(var l=t.length-s,c=i<l?i:l,d=-1,u=0;u<=c;++u){if(u===c){if(l>c){if(47===t.charCodeAt(s+u))return t.slice(s+u+1);if(0===u)return t.slice(s+u)}else i>c&&(47===e.charCodeAt(n+u)?d=u:0===u&&(d=0));break}var f=e.charCodeAt(n+u);if(f!==t.charCodeAt(s+u))break;47===f&&(d=u)}var p="";for(u=n+d+1;u<=o;++u)u!==o&&47!==e.charCodeAt(u)||(0===p.length?p+="..":p+="/..");return p.length>0?p+t.slice(s+d):(s+=d,47===t.charCodeAt(s)&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(r(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,o=-1,i=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!i){o=a;break}}else i=!1;return-1===o?n?"/":".":n&&1===o?"//":e.slice(0,o)},basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');r(e);var n,o=0,i=-1,a=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,l=-1;for(n=e.length-1;n>=0;--n){var c=e.charCodeAt(n);if(47===c){if(!a){o=n+1;break}}else-1===l&&(a=!1,l=n+1),s>=0&&(c===t.charCodeAt(s)?-1===--s&&(i=n):(s=-1,i=l))}return o===i?i=l:-1===i&&(i=e.length),e.slice(o,i)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!a){o=n+1;break}}else-1===i&&(a=!1,i=n+1);return-1===i?"":e.slice(o,i)},extname:function(e){r(e);for(var t=-1,n=0,o=-1,i=!0,a=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47!==l)-1===o&&(i=!1,o=s+1),46===l?-1===t?t=s:1!==a&&(a=1):-1!==t&&(a=-1);else if(!i){n=s+1;break}}return-1===t||-1===o||0===a||1===a&&t===o-1&&t===n+1?"":e.slice(t,o)},format:function(e){if(null===e||"object"!==typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,o=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+o:n+e+o:o}("/",e)},parse:function(e){r(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,o=e.charCodeAt(0),i=47===o;i?(t.root="/",n=1):n=0;for(var a=-1,s=0,l=-1,c=!0,d=e.length-1,u=0;d>=n;--d)if(47!==(o=e.charCodeAt(d)))-1===l&&(c=!1,l=d+1),46===o?-1===a?a=d:1!==u&&(u=1):-1!==a&&(u=-1);else if(!c){s=d+1;break}return-1===a||-1===l||0===u||1===u&&a===l-1&&a===s+1?-1!==l&&(t.base=t.name=0===s&&i?e.slice(1,l):e.slice(s,l)):(0===s&&i?(t.name=e.slice(1,a),t.base=e.slice(1,l)):(t.name=e.slice(s,a),t.base=e.slice(s,l)),t.ext=e.slice(a,l)),s>0?t.dir=e.slice(0,s-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,e.exports=a},49631:(e,t,n)=>{"use strict";var o=n(56666);const r=Object.freeze({left:0,top:0,width:16,height:16}),i=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),a=Object.freeze({...r,...i}),s=Object.freeze({...a,body:"",hidden:!1}),l=Object.freeze({width:null,height:null}),c=Object.freeze({...l,...i});const d=/[\s,]+/;const u={...c,preserveAspectRatio:""};function f(e){const t={...u},n=(t,n)=>e.getAttribute(t)||n;var o;return t.width=n("width",null),t.height=n("height",null),t.rotate=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=e.replace(/^-?[0-9.]*/,"");function o(e){for(;e<0;)e+=4;return e%4}if(""===n){const t=parseInt(e);return isNaN(t)?0:o(t)}if(n!==e){let t=0;switch(n){case"%":t=25;break;case"deg":t=90}if(t){let r=parseFloat(e.slice(0,e.length-n.length));return isNaN(r)?0:(r/=t,r%1===0?o(r):0)}}return t}(n("rotate","")),o=t,n("flip","").split(d).forEach((e=>{switch(e.trim()){case"horizontal":o.hFlip=!0;break;case"vertical":o.vFlip=!0}})),t.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),t}const p=/^[a-z0-9]+(-[a-z0-9]+)*$/,h=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";const r=e.split(":");if("@"===e.slice(0,1)){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const e=r.pop(),n=r.pop(),i={provider:r.length>0?r[0]:o,prefix:n,name:e};return t&&!g(i)?null:i}const i=r[0],a=i.split("-");if(a.length>1){const e={provider:o,prefix:a.shift(),name:a.join("-")};return t&&!g(e)?null:e}if(n&&""===o){const e={provider:o,prefix:"",name:i};return t&&!g(e,n)?null:e}return null},g=(e,t)=>!!e&&!(""!==e.provider&&!e.provider.match(p)||!(t&&""===e.prefix||e.prefix.match(p))||!e.name.match(p));function m(e,t){const n=function(e,t){const n={};!e.hFlip!==!t.hFlip&&(n.hFlip=!0),!e.vFlip!==!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}(e,t);for(const o in s)o in i?o in e&&!(o in n)&&(n[o]=i[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function v(e,t,n){const o=e.icons,r=e.aliases||Object.create(null);let i={};function a(e){i=m(o[e]||r[e],i)}return a(t),n.forEach(a),m(e,i)}function b(e,t){const n=[];if("object"!==typeof e||"object"!==typeof e.icons)return n;e.not_found instanceof Array&&e.not_found.forEach((e=>{t(e,null),n.push(e)}));const o=function(e,t){const n=e.icons,o=e.aliases||Object.create(null),r=Object.create(null);return(t||Object.keys(n).concat(Object.keys(o))).forEach((function e(t){if(n[t])return r[t]=[];if(!(t in r)){r[t]=null;const n=o[t]&&o[t].parent,i=n&&e(n);i&&(r[t]=[n].concat(i))}return r[t]})),r}(e);for(const r in o){const i=o[r];i&&(t(r,v(e,r,i)),n.push(r))}return n}const y={provider:"",aliases:{},not_found:{},...r};function x(e,t){for(const n in t)if(n in e&&typeof e[n]!==typeof t[n])return!1;return!0}function k(e){if("object"!==typeof e||null===e)return null;const t=e;if("string"!==typeof t.prefix||!e.icons||"object"!==typeof e.icons)return null;if(!x(e,y))return null;const n=t.icons;for(const r in n){const e=n[r];if(!r.match(p)||"string"!==typeof e.body||!x(e,s))return null}const o=t.aliases||Object.create(null);for(const r in o){const e=o[r],t=e.parent;if(!r.match(p)||"string"!==typeof t||!n[t]&&!o[t]||!x(e,s))return null}return t}const w=Object.create(null);function j(e,t){const n=w[e]||(w[e]=Object.create(null));return n[t]||(n[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function C(e,t){return k(t)?b(t,((t,n)=>{n?e.icons[t]=n:e.missing.add(t)})):[]}function Z(e,t){let n=[];return("string"===typeof e?[e]:Object.keys(w)).forEach((e=>{("string"===typeof e&&"string"===typeof t?[t]:Object.keys(w[e]||{})).forEach((t=>{const o=j(e,t);n=n.concat(Object.keys(o.icons).map((n=>(""!==e?"@"+e+":":"")+t+":"+n)))}))})),n}let A=!1;function I(e){return"boolean"===typeof e&&(A=e),A}function S(e){const t="string"===typeof e?h(e,!0,A):e;if(t){const e=j(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}function M(e,t){const n=h(e,!0,A);if(!n)return!1;return function(e,t,n){try{if("string"===typeof n.body)return e.icons[t]={...n},!0}catch(o){}return!1}(j(n.provider,n.prefix),n.name,t)}function P(e,t){if("object"!==typeof e)return!1;if("string"!==typeof t&&(t=e.provider||""),A&&!t&&!e.prefix){let t=!1;return k(e)&&(e.prefix="",b(e,((e,n)=>{n&&M(e,n)&&(t=!0)}))),t}const n=e.prefix;if(!g({provider:t,prefix:n,name:"a"}))return!1;return!!C(j(t,n),e)}function O(e){return!!S(e)}function T(e){const t=S(e);return t?{...a,...t}:null}function R(e,t){e.forEach((e=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter((e=>e.id!==t)))}))}let N=0;const E=Object.create(null);function L(e,t){E[e]=t}function z(e){return E[e]||E[""]}var F={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function q(e,t,n,o){const r=e.resources.length,i=e.random?Math.floor(Math.random()*r):e.index;let a;if(e.random){let t=e.resources.slice(0);for(a=[];t.length>1;){const e=Math.floor(Math.random()*t.length);a.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}a=a.concat(t)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const s=Date.now();let l,c="pending",d=0,u=null,f=[],p=[];function h(){u&&(clearTimeout(u),u=null)}function g(){"pending"===c&&(c="aborted"),h(),f.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),f=[]}function m(e,t){t&&(p=[]),"function"===typeof e&&p.push(e)}function v(){c="failed",p.forEach((e=>{e(void 0,l)}))}function b(){f.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),f=[]}function y(){if("pending"!==c)return;h();const o=a.shift();if(void 0===o)return f.length?void(u=setTimeout((()=>{h(),"pending"===c&&(b(),v())}),e.timeout)):void v();const r={status:"pending",resource:o,callback:(t,n)=>{!function(t,n,o){const r="success"!==n;switch(f=f.filter((e=>e!==t)),c){case"pending":break;case"failed":if(r||!e.dataAfterTimeout)return;break;default:return}if("abort"===n)return l=o,void v();if(r)return l=o,void(f.length||(a.length?y():v()));if(h(),b(),!e.random){const n=e.resources.indexOf(t.resource);-1!==n&&n!==e.index&&(e.index=n)}c="completed",p.forEach((e=>{e(o)}))}(r,t,n)}};f.push(r),d++,u=setTimeout(y,e.rotate),n(o,t,r.callback)}return"function"===typeof o&&p.push(o),setTimeout(y),function(){return{startTime:s,payload:t,status:c,queriesSent:d,queriesPending:f.length,subscribe:m,abort:g}}}function _(e){const t={...F,...e};let n=[];function o(){n=n.filter((e=>"pending"===e().status))}return{query:function(e,r,i){const a=q(t,e,r,((e,t)=>{o(),i&&i(e,t)}));return n.push(a),a},find:function(e){return n.find((t=>e(t)))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:o}}function B(e){let t;if("string"===typeof e.resources)t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const D=Object.create(null),G=["https://api.simplesvg.com","https://api.unisvg.com"],H=[];for(;G.length>0;)1===G.length||Math.random()>.5?H.push(G.shift()):H.push(G.pop());function U(e,t){const n=B(t);return null!==n&&(D[e]=n,!0)}function V(e){return D[e]}function J(){return Object.keys(D)}function K(){}D[""]=B({resources:["https://api.iconify.design"].concat(H)});const $=Object.create(null);function W(e,t,n){let o,r;if("string"===typeof e){const t=z(e);if(!t)return n(void 0,424),K;r=t.send;const i=function(e){if(!$[e]){const t=V(e);if(!t)return;const n={config:t,redundancy:_(t)};$[e]=n}return $[e]}(e);i&&(o=i.redundancy)}else{const t=B(e);if(t){o=_(t);const n=z(e.resources?e.resources[0]:"");n&&(r=n.send)}}return o&&r?o.query(t,r,n)().abort:(n(void 0,424),K)}const X="iconify2",Q="iconify",Y=Q+"-count",ee=Q+"-version",te=36e5,ne=168;function oe(e,t){try{return e.getItem(t)}catch(n){}}function re(e,t,n){try{return e.setItem(t,n),!0}catch(o){}}function ie(e,t){try{e.removeItem(t)}catch(n){}}function ae(e,t){return re(e,Y,t.toString())}function se(e){return parseInt(oe(e,Y))||0}const le={local:!0,session:!0},ce={local:new Set,session:new Set};let de=!1;let ue="undefined"===typeof window?{}:window;function fe(e){const t=e+"Storage";try{if(ue&&ue[t]&&"number"===typeof ue[t].length)return ue[t]}catch(n){}le[e]=!1}function pe(e,t){const n=fe(e);if(!n)return;const o=oe(n,ee);if(o!==X){if(o){const e=se(n);for(let t=0;t<e;t++)ie(n,Q+t.toString())}return re(n,ee,X),void ae(n,0)}const r=Math.floor(Date.now()/te)-ne,i=e=>{const o=Q+e.toString(),i=oe(n,o);if("string"===typeof i){try{const n=JSON.parse(i);if("object"===typeof n&&"number"===typeof n.cached&&n.cached>r&&"string"===typeof n.provider&&"object"===typeof n.data&&"string"===typeof n.data.prefix&&t(n,e))return!0}catch(a){}ie(n,o)}};let a=se(n);for(let s=a-1;s>=0;s--)i(s)||(s===a-1?(a--,ae(n,a)):ce[e].add(s))}function he(){if(!de){de=!0;for(const e in le)pe(e,(e=>{const t=e.data,n=j(e.provider,t.prefix);if(!C(n,t).length)return!1;const o=t.lastModified||-1;return n.lastModifiedCached=n.lastModifiedCached?Math.min(n.lastModifiedCached,o):o,!0}))}}function ge(e,t){function n(n){let o;if(!le[n]||!(o=fe(n)))return;const r=ce[n];let i;if(r.size)r.delete(i=Array.from(r).shift());else if(i=se(o),!ae(o,i+1))return;const a={cached:Math.floor(Date.now()/te),provider:e.provider,data:t};return re(o,Q+i.toString(),JSON.stringify(a))}de||he(),t.lastModified&&!function(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const o in le)pe(o,(n=>{const o=n.data;return n.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t}));return!0}(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&delete(t=Object.assign({},t)).not_found,n("local")||n("session"))}function me(){}function ve(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout((()=>{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout((()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,r=e.prefix;t.forEach((t=>{const i=t.icons,a=i.pending.length;i.pending=i.pending.filter((t=>{if(t.prefix!==r)return!0;const a=t.name;if(e.icons[a])i.loaded.push({provider:o,prefix:r,name:a});else{if(!e.missing.has(a))return n=!0,!0;i.missing.push({provider:o,prefix:r,name:a})}return!1})),i.pending.length!==a&&(n||R([e],t.id),t.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),t.abort))}))})))}(e)})))}const be=(e,t)=>{const n=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=[];return e.forEach((e=>{const r="string"===typeof e?h(e,t,n):e;r&&o.push(r)})),o}(e,!0,I()),o=function(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort(((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name)));let o={provider:"",prefix:"",name:""};return e.forEach((e=>{if(o.name===e.name&&o.prefix===e.prefix&&o.provider===e.provider)return;o=e;const r=e.provider,i=e.prefix,a=e.name,s=n[r]||(n[r]=Object.create(null)),l=s[i]||(s[i]=j(r,i));let c;c=a in l.icons?t.loaded:""===i||l.missing.has(a)?t.missing:t.pending;const d={provider:r,prefix:i,name:a};c.push(d)})),t}(n);if(!o.pending.length){let e=!0;return t&&setTimeout((()=>{e&&t(o.loaded,o.missing,o.pending,me)})),()=>{e=!1}}const r=Object.create(null),i=[];let a,s;return o.pending.forEach((e=>{const{provider:t,prefix:n}=e;if(n===s&&t===a)return;a=t,s=n,i.push(j(t,n));const o=r[t]||(r[t]=Object.create(null));o[n]||(o[n]=[])})),o.pending.forEach((e=>{const{provider:t,prefix:n,name:o}=e,i=j(t,n),a=i.pendingIcons||(i.pendingIcons=new Set);a.has(o)||(a.add(o),r[t][n].push(o))})),i.forEach((e=>{const{provider:t,prefix:n}=e;r[t][n].length&&function(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout((()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:n}=e,o=e.iconsToLoad;let r;delete e.iconsToLoad,o&&(r=z(t))&&r.prepare(t,n,o).forEach((n=>{W(t,n,(t=>{if("object"!==typeof t)n.icons.forEach((t=>{e.missing.add(t)}));else try{const n=C(e,t);if(!n.length)return;const o=e.pendingIcons;o&&n.forEach((e=>{o.delete(e)})),ge(e,t)}catch(o){console.error(o)}ve(e)}))}))})))}(e,r[t][n])})),t?function(e,t,n){const o=N++,r=R.bind(null,n,o);if(!t.pending.length)return r;const i={id:o,icons:t,callback:e,abort:r};return n.forEach((e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(i)})),r}(t,o,i):me},ye=e=>new Promise(((t,n)=>{const o="string"===typeof e?h(e,!0):e;o?be([o||e],(r=>{if(r.length&&o){const e=S(o);if(e)return void t({...a,...e})}n(e)})):n(e)}));function xe(e,t){const n="string"===typeof e?h(e,!0,!0):null;if(!n){const t=function(e){try{const t="string"===typeof e?JSON.parse(e):e;if("string"===typeof t.body)return{...t}}catch(t){}}(e);return{value:e,data:t}}const o=S(n);if(void 0!==o||!n.prefix)return{value:e,name:n,data:o};const r=be([n],(()=>t(e,n,S(n))));return{value:e,name:n,loading:r}}function ke(e){return e.hasAttribute("inline")}let we=!1;try{we=0===navigator.vendor.indexOf("Apple")}catch(lt){}const je=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ce=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Ze(e,t,n){if(1===t)return e;if(n=n||100,"number"===typeof e)return Math.ceil(e*t*n)/n;if("string"!==typeof e)return e;const o=e.split(je);if(null===o||!o.length)return e;const r=[];let i=o.shift(),a=Ce.test(i);for(;;){if(a){const e=parseFloat(i);isNaN(e)?r.push(i):r.push(Math.ceil(e*t*n)/n)}else r.push(i);if(i=o.shift(),void 0===i)return r.join("");a=!a}}const Ae=e=>"unset"===e||"undefined"===e||"none"===e;function Ie(e,t){const n={...a,...e},o={...c,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,o].forEach((e=>{const t=[],n=e.hFlip,o=e.vFlip;let a,s=e.rotate;switch(n?o?s+=2:(t.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),t.push("scale(-1 1)"),r.top=r.left=0):o&&(t.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),t.push("scale(1 -1)"),r.top=r.left=0),s<0&&(s-=4*Math.floor(s/4)),s%=4,s){case 1:a=r.height/2+r.top,t.unshift("rotate(90 "+a.toString()+" "+a.toString()+")");break;case 2:t.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:a=r.width/2+r.left,t.unshift("rotate(-90 "+a.toString()+" "+a.toString()+")")}s%2===1&&(r.left!==r.top&&(a=r.left,r.left=r.top,r.top=a),r.width!==r.height&&(a=r.width,r.width=r.height,r.height=a)),t.length&&(i='<g transform="'+t.join(" ")+'">'+i+"</g>")}));const s=o.width,l=o.height,d=r.width,u=r.height;let f,p;null===s?(p=null===l?"1em":"auto"===l?u:l,f=Ze(p,d/u)):(f="auto"===s?d:s,p=null===l?Ze(f,u/d):"auto"===l?u:l);const h={},g=(e,t)=>{Ae(t)||(h[e]=t.toString())};return g("width",f),g("height",p),h.viewBox=r.left.toString()+" "+r.top.toString()+" "+d.toString()+" "+u.toString(),{attributes:h,body:i}}let Se=(()=>{let e;try{if(e=fetch,"function"===typeof e)return e}catch(lt){}})();function Me(e){Se=e}function Pe(){return Se}const Oe={prepare:(e,t,n)=>{const o=[],r=function(e,t){const n=V(e);if(!n)return 0;let o;if(n.maxURL){let e=0;n.resources.forEach((t=>{const n=t;e=Math.max(e,n.length)}));const r=t+".json?icons=";o=n.maxURL-e-n.path.length-r.length}else o=0;return o}(e,t),i="icons";let a={type:i,provider:e,prefix:t,icons:[]},s=0;return n.forEach(((n,l)=>{s+=n.length+1,s>=r&&l>0&&(o.push(a),a={type:i,provider:e,prefix:t,icons:[]},s=n.length),a.icons.push(n)})),o.push(a),o},send:(e,t,n)=>{if(!Se)return void n("abort",424);let o=function(e){if("string"===typeof e){const t=V(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":{const e=t.prefix,n=t.icons.join(",");o+=e+".json?"+new URLSearchParams({icons:n}).toString();break}case"custom":{const e=t.uri;o+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void n("abort",400)}let r=503;Se(e+o).then((e=>{const t=e.status;if(200===t)return r=501,e.json();setTimeout((()=>{n(function(e){return 404===e}(t)?"abort":"next",t)}))})).then((e=>{"object"===typeof e&&null!==e?setTimeout((()=>{n("success",e)})):setTimeout((()=>{404===e?n("abort",e):n("next",r)}))})).catch((()=>{n("next",r)}))}};function Te(e,t){switch(e){case"local":case"session":le[e]=t;break;case"all":for(const e in le)le[e]=t}}const Re="data-style";let Ne="";function Ee(e){Ne=e}function Le(e,t){let n=Array.from(e.childNodes).find((e=>e.hasAttribute&&e.hasAttribute(Re)));n||(n=document.createElement("style"),n.setAttribute(Re,Re),e.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(t?"-0.125em":"0")+"}span,svg{display:block}"+Ne}function ze(){let e;L("",Oe),I(!0);try{e=window}catch(lt){}if(e){if(he(),void 0!==e.IconifyPreload){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";"object"===typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach((e=>{try{("object"!==typeof e||null===e||e instanceof Array||"object"!==typeof e.icons||"string"!==typeof e.prefix||!P(e))&&console.error(n)}catch(t){console.error(n)}}))}if(void 0!==e.IconifyProviders){const n=e.IconifyProviders;if("object"===typeof n&&null!==n)for(const e in n){const o="IconifyProviders["+e+"] is invalid.";try{const t=n[e];if("object"!==typeof t||!t||void 0===t.resources)continue;U(e,t)||console.error(o)}catch(t){console.error(o)}}}}return{enableCache:e=>Te(e,!0),disableCache:e=>Te(e,!1),iconExists:O,getIcon:T,listIcons:Z,addIcon:M,addCollection:P,calculateSize:Ze,buildIcon:Ie,loadIcons:be,loadIcon:ye,addAPIProvider:U,appendCustomStyle:Ee,_api:{getAPIConfig:V,setAPIModule:L,sendAPIQuery:W,setFetch:Me,getFetch:Pe,listAPIProviders:J}}}function Fe(e,t){let n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)n+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}const qe={"background-color":"currentColor"},_e={"background-color":"transparent"},Be={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},De={"-webkit-mask":qe,mask:qe,background:_e};for(const ct in De){const e=De[ct];for(const t in Be)e[ct+"-"+t]=Be[t]}function Ge(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}let He;function Ue(e){return void 0===He&&function(){try{He=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch(lt){He=null}}(),He?He.createHTML(e):e}function Ve(e,t){const n=t.icon.data,o=t.customisations,r=Ie(n,o);o.preserveAspectRatio&&(r.attributes.preserveAspectRatio=o.preserveAspectRatio);const i=t.renderedMode;let s;if("svg"===i)s=function(e){const t=document.createElement("span"),n=e.attributes;let o="";n.width||(o="width: inherit;"),n.height||(o+="height: inherit;"),o&&(n.style=o);const r=Fe(e.body,n);return t.innerHTML=Ue(r),t.firstChild}(r);else s=function(e,t,n){const o=document.createElement("span");let r=e.body;-1!==r.indexOf("<a")&&(r+="\x3c!-- "+Date.now()+" --\x3e");const i=e.attributes,a='url("'+(c=Fe(r,{...i,width:t.width+"",height:t.height+""}),"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(c)+'")'),s=o.style,l={"--svg":a,width:Ge(i.width),height:Ge(i.height),...n?qe:_e};var c;for(const d in l)s.setProperty(d,l[d]);return o}(r,{...a,...n},"mask"===i);const l=Array.from(e.childNodes).find((e=>{const t=e.tagName&&e.tagName.toUpperCase();return"SPAN"===t||"SVG"===t}));l?"SPAN"===s.tagName&&l.tagName===s.tagName?l.setAttribute("style",s.getAttribute("style")):e.replaceChild(s,l):e.appendChild(s)}function Je(e,t,n){return{rendered:!1,inline:t,icon:e,lastRender:n&&(n.rendered?n:n.lastRender)}}const Ke=function(){let e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"iconify-icon";try{e=window.customElements,t=window.HTMLElement}catch(lt){return}if(!e||!t)return;const r=e.get(n);if(r)return r;const i=["icon","mode","inline","width","height","rotate","flip"],a=class extends t{constructor(){super(),(0,o.Z)(this,"_shadowRoot",void 0),(0,o.Z)(this,"_state",void 0),(0,o.Z)(this,"_checkQueued",!1);const e=this._shadowRoot=this.attachShadow({mode:"open"}),t=ke(this);Le(e,t),this._state=Je({value:""},t),this._queueCheck()}static get observedAttributes(){return i.slice(0)}attributeChangedCallback(e){if("inline"===e){const e=ke(this),t=this._state;e!==t.inline&&(t.inline=e,Le(this._shadowRoot,e))}else this._queueCheck()}get icon(){const e=this.getAttribute("icon");if(e&&"{"===e.slice(0,1))try{return JSON.parse(e)}catch(lt){}return e}set icon(e){"object"===typeof e&&(e=JSON.stringify(e)),this.setAttribute("icon",e)}get inline(){return ke(this)}set inline(e){e?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const e=this._state;if(e.rendered){const t=this._shadowRoot;if("svg"===e.renderedMode)try{return void t.lastChild.setCurrentTime(0)}catch(lt){}Ve(t,e)}}get status(){const e=this._state;return e.rendered?"rendered":null===e.icon.data?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout((()=>{this._check()})))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const e=this._state,t=this.getAttribute("icon");if(t!==e.icon.value)return void this._iconChanged(t);if(!e.rendered)return;const n=this.getAttribute("mode"),o=f(this);(e.attrMode!==n||function(e,t){for(const n in u)if(e[n]!==t[n])return!0;return!1}(e.customisations,o))&&this._renderIcon(e.icon,o,n)}_iconChanged(e){const t=xe(e,((e,t,n)=>{const o=this._state;if(o.rendered||this.getAttribute("icon")!==e)return;const r={value:e,name:t,data:n};r.data?this._gotIconData(r):o.icon=r}));t.data?this._gotIconData(t):this._state=Je(t,this._state.inline,this._state)}_gotIconData(e){this._checkQueued=!1,this._renderIcon(e,f(this),this.getAttribute("mode"))}_renderIcon(e,t,n){const o=function(e,t){switch(t){case"svg":case"bg":case"mask":return t}return"style"===t||!we&&-1!==e.indexOf("<a")?-1===e.indexOf("currentColor")?"bg":"mask":"svg"}(e.data.body,n),r=this._state.inline;Ve(this._shadowRoot,this._state={rendered:!0,icon:e,inline:r,customisations:t,attrMode:n,renderedMode:o})}};i.forEach((e=>{e in a.prototype||Object.defineProperty(a.prototype,e,{get:function(){return this.getAttribute(e)},set:function(t){null!==t?this.setAttribute(e,t):this.removeAttribute(e)}})}));const s=ze();for(const o in s)a[o]=a.prototype[o]=s[o];return e.define(n,a),a}()||ze(),{enableCache:$e,disableCache:We,iconExists:Xe,getIcon:Qe,listIcons:Ye,addIcon:et,addCollection:tt,calculateSize:nt,buildIcon:ot,loadIcons:rt,loadIcon:it,addAPIProvider:at,_api:st}=Ke}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[6511],{86511:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ae});var a=n(71171),i=n(5057),o=n(33518),l=n(85493),s=n(15849),c=n(68420),r=n(82084),d=n(59793),u=n(47125),p=n(45807),m=n(94464),v=n(88574),h=n(28726),g=n(38242),b=n(81010),f=n(87363),y=(n(5892),n(86229)),k=n(1722),x=n(87543),w=n(35432),P=n(27212),j=n(58238),S=n(29054),B=n(73545),Z=n(14491),C=n(4651),E=n(96266);const L=e=>{const t={};let n=null;return(0,g.forEachBlockletSync)(e,(e=>{t[e.meta.bundleDid]?n=(0,g.getDisplayName)(e,!0):e.meta.bundleDid&&(t[e.meta.bundleDid]=!0)})),n},_=(e,t,n)=>{const{hostname:a,href:i}=e;if(!t)return i;if(n){var o;const e=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(a);if(!e)return i;const n=e[0],l=(((null===(o=t.site)||void 0===o?void 0:o.domainAliases)||[]).map((e=>e.value)).filter(Boolean).find((e=>e.endsWith(w.DEFAULT_DID_DOMAIN)))||"").replace(".".concat(w.DEFAULT_DID_DOMAIN),"");return l?i.replace(a,"".concat(l,"-").concat(n,".").concat(w.DEFAULT_IP_DOMAIN_SUFFIX)):i}return i.replace(t.meta.bundleDid,t.appPid)};function D(){const{t:e}=(0,c.PE)(),{api:t}=(0,B.T)(),{blocklet:n}=(0,S.y0)(),{inService:a}=(0,j.h6)(),[o,l]=(0,i.useState)(!1),[s,r]=(0,i.useState)(5),d=n&&n.structVersion!==w.APP_STRUCT_VERSION;return[d&&(0,E.jsxs)(v.Z,{type:"warning",style:{margin:"12px 0"},children:[(0,E.jsxs)(x.Z,{display:"flex",alignItems:"center",children:[(0,E.jsx)(h.Z,{variant:"contained",size:"small",color:"primary",onClick:()=>(()=>{try{if("running"===n.status)return void y.Z.error(e("blocklet.migrate.tip.running"));const t=L(n);if(t)return void y.Z.error(e("blocklet.migrate.tip.duplicate",{name:t}));l(!0)}catch(t){y.Z.error((0,Z.Z)(t))}})(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),(0,E.jsx)("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map((t=>(0,E.jsx)(x.Z,{display:"flex",alignItems:"center",children:e("blocklet.migrate.intro.".concat(t))},t)))]},"alert"),n&&(0,E.jsx)(P.Z,{popup:!0,open:o,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:3e5,onSuccess:()=>{const e=_(window.location,n,a);setTimeout((()=>{window.location.href=e}),5e3),r(5),setInterval((()=>{r((e=>e-1))}),1e3)},extraParams:{appDid:n.appDid,did:n.meta.did,wt:(0,C.iK)(n,!0),title:(0,g.getDisplayName)(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:s>=0?e("blocklet.migrate.success",{sec:s}):"Redirecting..."},onClose:()=>l(!1)},"connect")]}D.propTypes={};var A,N=n(35966),G=n(85531),U=n(13798),T=n(78123),I=n(75793),O=n(17022),K=n(21289),z=n(74094),R=n(7199);const F=(0,i.lazy)((()=>Promise.all([n.e(6448),n.e(2739),n.e(730),n.e(4549)]).then(n.bind(n,64549)))),M=(0,i.lazy)((()=>Promise.all([n.e(6448),n.e(2739),n.e(8537),n.e(4631),n.e(2294),n.e(1279),n.e(6547),n.e(3748),n.e(6296),n.e(506),n.e(6240),n.e(5545),n.e(345),n.e(6230)]).then(n.bind(n,64558)))),V=(0,i.lazy)((()=>Promise.all([n.e(6448),n.e(2739),n.e(4631),n.e(6547),n.e(6296),n.e(6771),n.e(506),n.e(6281),n.e(6240),n.e(1255),n.e(5462),n.e(4775)]).then(n.bind(n,14775)))),Y=(0,i.lazy)((()=>Promise.all([n.e(6448),n.e(6771),n.e(442),n.e(9636),n.e(7676),n.e(3239)]).then(n.bind(n,13239)))),$=(0,i.lazy)((()=>Promise.all([n.e(6448),n.e(2739),n.e(7288),n.e(6974),n.e(5979),n.e(2537)]).then(n.bind(n,75979)))),W=(0,i.lazy)((()=>Promise.all([n.e(6448),n.e(2739),n.e(8537),n.e(4631),n.e(2294),n.e(1279),n.e(6547),n.e(3748),n.e(9364),n.e(5672),n.e(5217)]).then(n.bind(n,75672)))),X=(0,i.lazy)((()=>Promise.all([n.e(8537),n.e(4631),n.e(2294),n.e(1279),n.e(5539),n.e(4335),n.e(5015)]).then(n.bind(n,85555)))),J=(0,i.lazy)((()=>Promise.all([n.e(6448),n.e(2739),n.e(8537),n.e(4631),n.e(2294),n.e(1279),n.e(6296),n.e(2251),n.e(2911),n.e(5539),n.e(442),n.e(5526),n.e(7288),n.e(6076),n.e(4335),n.e(9811),n.e(7558),n.e(5545),n.e(5165),n.e(1846),n.e(318)]).then(n.bind(n,20318)))),Q=(0,i.lazy)((()=>Promise.all([n.e(6448),n.e(7998),n.e(8219)]).then(n.bind(n,92379)))),q=(0,i.lazy)((()=>Promise.all([n.e(8537),n.e(4631),n.e(2294),n.e(1279),n.e(6547),n.e(3748),n.e(6296),n.e(7534)]).then(n.bind(n,87534)))),H=(0,i.lazy)((()=>Promise.all([n.e(6448),n.e(2739),n.e(6296),n.e(2251),n.e(5539),n.e(7560),n.e(2611)]).then(n.bind(n,42611)))),ee=(0,i.lazy)((()=>Promise.all([n.e(6448),n.e(2739),n.e(8537),n.e(4631),n.e(2294),n.e(1279),n.e(6547),n.e(3748),n.e(9940),n.e(1846),n.e(9552)]).then(n.bind(n,39552)))),te=e=>{let{children:t}=e;return t};function ne(){var e;const t=(0,l.useNavigate)(),{tab:n="overview"}=(0,l.useParams)(),{did:a,blocklet:o,error:x,client:P,actions:{setBlocklet:j,refreshBlocklet:S}}=(0,K.y0)(),{refresh:B}=(0,I.h6)(),{t:Z}=(0,c.PE)(),C=(0,i.useCallback)((()=>(0,E.jsx)(Y,{scope:a})),[a]),L=(null===o||void 0===o||null===(e=o.environments.find((e=>"BLOCKLET_APP_URL"===e.key)))||void 0===e?void 0:e.value)||window.location.origin,_=e=>(0,z.bV)(e,L),A=e=>{t("/blocklets/".concat(a,"/").concat(e))},G=e=>{e&&j(e),S()},ne=!o||(0,z.wS)(o.status)?[]:(0,g.getAppMissingConfigs)(o);let ae=null;const oe=[{label:Z("common.overview"),value:"overview"},{breadcrumbsLabel:Z("common.components"),label:(0,E.jsx)(p.Z,{color:"error",variant:"dot",invisible:!ne.length,children:Z("common.components")}),value:"components"}];if(x)ae=(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(v.Z,{type:"error",variant:"icon",children:(0,z.Z)(x)}),(0,E.jsx)(h.Z,{onClick:()=>S(),children:(0,E.jsx)("span",{style:{textDecoration:"underline"},children:Z("common.retry")})})]});else if(o){var le;const e={overview:(0,E.jsx)(F,{}),configuration:M,navigation:V,services:X,members:(0,E.jsx)(W,{type:"blocklet",createPassportSvg:_}),passports:$,components:J,"audit-logs":C,logs:Q,runtime:(0,E.jsx)(q,{}),traffic:(0,E.jsx)(H,{client:P,did:a}),storage:(0,E.jsx)(ee,{})};"configuration"===n&&(0,z.wS)(o.status)&&A("overview"),(0,z.wS)(o.status)||(oe.push({label:Z("common.members"),value:"members"}),oe.push({label:Z("common.passport"),value:"passports"}),oe.push({label:Z("common.configuration"),value:"configuration"})),oe.push({label:Z("common.auditLogs"),value:"audit-logs"}),o&&null!==(le=o.children)&&void 0!==le&&le.length&&o.structVersion===w.APP_STRUCT_VERSION&&oe.push({label:Z("common.logs"),value:"logs"}),oe.push({label:Z("common.configNavigation"),value:"navigation"}),oe.push({label:Z("common.runtime"),value:"runtime"}),oe.push({label:Z("common.traffic"),value:"traffic"}),oe.push({label:Z("common.storage"),value:"storage"});(0,g.getBlockletServices)(o).length&&oe.splice(2,0,{label:Z("blocklet.services"),value:"services"});const t=e[n]||e.overview;ae=(0,E.jsxs)(f.g,{type:"components",children:[!(0,g.isExternalBlocklet)(o)&&(0,E.jsx)(m.Z,{tabs:oe,current:n,onChange:A,scrollButtons:"auto"}),(0,E.jsx)("div",{className:"page-content",children:(0,E.jsx)(i.Suspense,{fallback:(0,E.jsx)(N.Z,{relative:"parent",children:(0,E.jsx)(U.Z,{})}),children:(0,i.isValidElement)(t)?t:(0,E.jsx)(t,{blocklet:o,onUpdate:G,createPassportSvg:_})})})]})}else ae=(0,E.jsx)(N.Z,{relative:"parent",children:(0,E.jsx)(U.Z,{})});const se=oe.find((e=>e.value===n)),ce=o?O.G6:te;return(0,E.jsx)(ce,{teamDid:a,children:(0,E.jsxs)(ie,{children:[(0,E.jsxs)(d.Z,{separator:"\u203a","aria-label":"breadcrumb",className:"page-breadcrumb",children:[(0,E.jsx)(s.Link,{color:"textSecondary",to:"/blocklets",children:Z("common.blocklets")}),(0,E.jsx)(s.NavLink,{to:"/blocklets/".concat(a,"/overview"),style:e=>e?{color:"inherit"}:{},children:Z("common.detail")}),(0,E.jsx)(r.Z,{color:"textSecondary",children:se?se.breadcrumbsLabel||se.label:""})]}),(0,E.jsxs)(r.Z,{component:"div",className:"page-header",children:[(0,E.jsxs)(r.Z,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[o?(0,E.jsx)(k.Z,{blocklet:o,style:{marginRight:16}}):null,o?(0,E.jsxs)(u.Z,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,children:[(0,E.jsx)(u.Z,{children:(0,g.getDisplayName)(o)}),"unknown"!==(null===o||void 0===o?void 0:o.status)&&(0,E.jsx)(b.Z,{size:"12px",status:o.status,source:o.source,progress:o.progress})]}):"".concat(Z("common.blocklet")," ").concat(Z("common.detail"))]}),(0,E.jsx)(R.Z,{permission:"mutate_blocklets",children:!!o&&!(0,g.isExternalBlocklet)(o)&&(0,E.jsx)(T.Z,{className:"page-actions",blocklet:o,onStart:()=>{},onComplete:e=>{let{action:n,error:a}=e;a?y.Z.error(a.message):"remove"===n?(B(),t("/blocklets")):S()},variant:"group"})})]}),(0,E.jsx)(D,{}),ae]})})}function ae(){const{did:e}=(0,l.useParams)();return e?(0,E.jsx)(K.$8,{did:e,children:(0,E.jsx)(G.wV,{children:(0,E.jsx)(ne,{})})}):null}const ie=o.Z.main(A||(A=(0,a.Z)(["\n .page-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-wrap: wrap;\n gap: 16px;\n }\n\n .page-title {\n display: flex;\n align-items: center;\n\n .page-link {\n font-size: 15px;\n margin-top: 8px;\n margin-left: 8px;\n }\n }\n\n .page-content {\n margin-top: 16px;\n }\n\n @media (max-width: ","px) {\n .page-header {\n flex-direction: column;\n align-items: flex-start;\n .page-actions,\n .MuiButtonGroup-root {\n width: 100%;\n }\n .MuiButtonGroup-root {\n .MuiButtonBase-root {\n flex: 1;\n }\n .blocklet-action-text {\n display: none;\n }\n }\n }\n\n .page-title {\n margin-bottom: 15px;\n }\n }\n"])),(e=>e.theme.breakpoints.values.md))},85531:(e,t,n)=>{n.d(t,{wV:()=>w,XN:()=>P});var a=n(5057),i=n(55898),o=n.n(i),l=n(86229),s=n(68420),c=n(77277),r=n(29054),d=n(84584),u=n(41899),p=n(58238),m=n(65873);var v=n(14491);function h(){var e;let{setLoading:t,refresh:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{blocklet:i,actions:{refreshBlocklet:o}}=(0,r.y0)(),s=null===i||void 0===i||null===(e=i.meta)||void 0===e?void 0:e.did,[c,h]=(0,a.useState)([]),{api:g}=(0,p.h6)();return(0,u.Z)((async()=>{try{if(!s)return void h([]);null===t||void 0===t||t(!0);const{spaceGateways:e}=await g.getBlockletSpaceGateways({input:{did:s}}),n=await async function(e){let{blockletDid:t,nodeApi:n,spaceGateways:a}=e,i=!1;const o=await Promise.all(a.map((async e=>{let{name:t}=e;const n=await(0,d.nU)(e.endpoint);return(0,m.isEmpty)(n)||n===t||(t=n,i=!0),{...e,name:t}})));return i&&await Promise.all(o.filter((e=>e.did)).map((e=>n.updateBlockletSpaceGateway({input:{did:t,where:{did:e.did},spaceGateway:{...e}}})))),o}({blockletDid:s,nodeApi:g,spaceGateways:e});h(null!==n&&void 0!==n?n:[])}catch(e){console.error(e),l.Z.error((0,v.Z)(e))}finally{null===t||void 0===t||t(!1)}}),[s,o,n]),{spaceGateways:c}}function g(){var e;let{deps:t,setLoading:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{deps:[],setLoading:()=>{}};const{blocklet:i}=(0,r.y0)(),[o,s]=(0,a.useState)([]),{api:c}=(0,p.h6)(),d=(0,m.debounce)((async()=>{try{if(n(!0),!i)return void s([]);const{backups:e}=await c.getBlockletBackups({input:{did:i.meta.did}});s(null!==e&&void 0!==e?e:[])}catch(e){console.error(e),l.Z.error((0,v.Z)(e))}finally{n(!1)}}),2e3);return(0,u.Z)((async()=>{d()}),[null===i||void 0===i||null===(e=i.meta)||void 0===e?void 0:e.did].concat(t)),{backups:o}}const b=function(e){let{appDid:t}=e;const{backups:n}=g(),[i,o]=(0,a.useState)({message:"",progress:0,completed:!1}),l=(0,p.h6)(),{ws:{useSubscription:s}}=l;return s(c.BlockletEvents.backupProgress,(e=>{t===(null===e||void 0===e?void 0:e.appDid)&&o((()=>({...e})))}),[t]),(0,a.useEffect)((()=>{var e;if(null!==n&&void 0!==n&&n.length&&(0,m.isNull)(null===(e=n[0])||void 0===e?void 0:e.status)){const[e]=n;o((()=>({message:e.message,progress:e.progress,completed:Boolean(e.progress>=100)})))}}),[n]),i};var f=n(96266);const y=(0,a.createContext)({}),{Provider:k,Consumer:x}=y;function w(e){let{children:t}=e;const{t:n}=(0,s.PE)(),{api:i}=(0,p.h6)(),{blocklet:o}=(0,r.y0)(),[m,v]=(0,a.useState)(!1),[y,x]=(0,a.useState)(!1),{spaceGateways:w}=h({refresh:y,setLoading:v}),P=b({appDid:null===o||void 0===o?void 0:o.appDid}),[j,S]=(0,a.useState)(!1),B=(0,a.useMemo)((()=>(0,d.mo)(null===o||void 0===o?void 0:o.environments)),[o,y,j]),[Z,C]=(0,a.useState)(!1),{backups:E}=g({deps:[P],setLoading:C}),[L,_]=(0,a.useState)(null===w||void 0===w?void 0:w.find((e=>e.endpoint===B))),[D,A]=(0,a.useState)(!1),N=function(){var e;let{deps:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{deps:[]};const{blocklet:n}=(0,r.y0)(),{api:i}=(0,p.h6)(),[o,l]=(0,a.useState)(null);return(0,u.Z)((async()=>{var e;if(null!==n&&void 0!==n&&null!==(e=n.meta)&&void 0!==e&&e.did){const{autoBackup:e}=await i.getAutoBackup({input:{did:n.meta.did}});l(e)}}),[null===n||void 0===n||null===(e=n.meta)||void 0===e?void 0:e.did].concat(t)),o}({deps:[D]}),[G,U]=(0,a.useState)(!1),T=function(){var e;let{deps:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{deps:[]};const{blocklet:n}=(0,r.y0)(),{api:i}=(0,p.h6)(),[o,l]=(0,a.useState)(null);return(0,u.Z)((async()=>{var e;if(null!==n&&void 0!==n&&null!==(e=n.meta)&&void 0!==e&&e.did){const{autoCheckUpdate:e}=await i.getAutoCheckUpdate({input:{did:n.meta.did}});l(e)}}),[null===n||void 0===n||null===(e=n.meta)||void 0===e?void 0:e.did].concat(t)),o}({deps:[G]}),I=()=>{x((e=>!e))};return(0,f.jsx)(k,{value:{spaceGateways:w,selectedSpaceGateway:L,addSpaceGateway:async(e,t)=>{w.push({...e,loading:!0}),await i.addBlockletSpaceGateway({input:{did:o.meta.did,spaceGateway:e}}),B!==t&&await i.configBlocklet({input:{did:[o.meta.did],configs:[{key:c.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:t}]}}),I(),_(e)},deleteSpaceGateway:async e=>{e&&(e.endpoint!==B?(await i.deleteBlockletSpaceGateway({input:{did:o.meta.did,spaceGatewayDid:null===e||void 0===e?void 0:e.did}}),I(),_(e)):l.Z.warning(n("storage.spaces.gateway.delete.failedForConnected")))},updateSpaceGateway:async e=>{var t;await i.updateBlockletSpaceGateway({input:{did:o.meta.did,where:{did:e.did},spaceGateway:e}}),B!==e.endpoint&&await i.configBlocklet({input:{did:[o.meta.did],configs:[{key:c.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:e.endpoint}]}}),l.Z.success(n("storage.spaces.connectedWithName",{name:null!==(t=null===e||void 0===e?void 0:e.name)&&void 0!==t?t:"DID Spaces"})),I()},refreshSpaceGateways:I,spaceGatewaysLoading:m,spaceGatewayIsSelected:e=>(null===e||void 0===e?void 0:e.endpoint)===B,updateAutoBackup:async e=>{await i.updateAutoBackup({input:{did:o.meta.did,autoBackup:e}}),A((e=>!e))},updateAutoCheckUpdate:async e=>{await i.updateAutoCheckUpdate({input:{did:o.meta.did,autoCheckUpdate:e}}),U((e=>!e))},autoCheckUpdate:T,backupEndpoint:B,backupProgress:P,backups:E,backupsLoading:Z,refreshBackupEndpoint:()=>{S((e=>!e))},autoBackup:N},children:t})}function P(){return(0,a.useContext)(y)}w.propTypes={children:o().any.isRequired},w.defaultProps={}},60344:(e,t,n)=>{n.d(t,{hi:()=>o,od:()=>i.a});var a=n(10458),i=n.n(a);i().defaults.timeout=1e4;const o=i().create()},84584:(e,t,n)=>{n.d(t,{EJ:()=>f,Jf:()=>b,LQ:()=>u,Nb:()=>p,UV:()=>y,Xv:()=>r,Z3:()=>k,ag:()=>v,mo:()=>m,nD:()=>d,nU:()=>g,w2:()=>h});var a=n(82434),i=n.n(a),o=n(77277),l=n(65873),s=n(2842),c=n(60344);function r(e){const t=e.replace(/\/api\/space\/.+/,""),n=e.replace(/\/$/,"").split("/"),a=n.at(-4),i=n.at(-2);return(0,s.xn)(t,"space",a,"apps",i,"explorer?key=/apps/".concat(i,"/.did-objects/").concat(i,"/"))}function d(e){const t=e.replace(/\/api\/space\/.+/,""),n=e.replace(/\/$/,"").split("/").at(-4);return(0,s.xn)(t,"space",n)}function u(e){return e.replace(/\/$/,"").split("/").at(-4)}async function p(e){try{if(!i()(e))return!1;const{headers:t}=await c.hi.head(e,{timeout:5e3});return"true"===t["x-listable"]&&"true"===t["x-readable"]&&"true"===t["x-writeable"]}catch(t){return console.error(t),!1}}function m(e){var t;return(null===e||void 0===e||null===(t=e.find((e=>e.key===o.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT)))||void 0===t?void 0:t.value)||""}function v(e){const t=new URL(e);return(0,s.xn)(t.origin,t.pathname)}async function h(e){try{if(!i()(e))return!1;const t=v(e),n=(0,s.xn)(t,"space/api/did/one-click-authorization/token"),{status:a,data:o}=await c.hi.get(n,{timeout:5e3});return 200===a&&(0,l.isObject)(o)}catch(t){return console.error(t),!1}}async function g(e){let{timeout:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{timeout:3e3};try{if(!i()(e))return"";const{headers:n}=await c.hi.head(e,{timeout:t}),a=n["x-space-name"];return a?decodeURIComponent(a):""}catch(n){return console.error(n),""}}function b(e){const t=e.replace(/\/api\/space\/.+/,""),n=e.replace(/\/$/,"").split("/").at(-4);return(0,s.xn)(t,"/api/space/nft/display?spaceDid=".concat(n))}const f=e=>{var t,n;return(null===e||void 0===e||null===(t=e.configs)||void 0===t||null===(n=t.find((e=>e.key===o.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPACE_ENDPOINT)))||void 0===n?void 0:n.value)||null};async function y(e){const t={};return t.did=u(e),t.name=await g(e),t.url=function(e){return null===e||void 0===e?void 0:e.replace(/\/api\/space\/.+/,"")}(e),t.endpoint=e,t}async function k(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{timeout:3e4,withSearchParams:!0};if(!(0,l.isString)(e))throw new Error("url(".concat(e,") must be a string"));const a=e.startsWith("http")?e:"https://".concat(e),i=new URL(a),{data:o}=await c.hi.get((0,s.xn)(i.origin,"/__blocklet__.js?type=json"),{timeout:n.timeout}),r=null===(t=o.componentMountPoints.findLast((e=>"z8iZnaYxnkMD5AKRjTKiCb8pQr1ut8UantAcf"===e.did)))||void 0===t?void 0:t.mountPoint;if(!r)throw new Error("MountPoint(".concat(r,") not found"));const d=(0,s.xn)(i.origin,r);return n.withSearchParams&&i.searchParams.get("spaceDid")?(0,s.xn)(d,"?spaceDid=".concat(i.searchParams.get("spaceDid"))):d}}}]);
|