@abtnode/webapp 1.16.25-beta-cfcab4af → 1.16.25-beta-822a748c

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.
@@ -1,2 +0,0 @@
1
- /*! For license information please see 6743.9db2d48f.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[6743],{5873:(e,n,t)=>{t.d(n,{Z:()=>m});var o=t(96266),i=(t(49631),t(5057)),r=t(55898),s=t.n(r),l=t(47220),a=t(68420),c=t(1033),d=t(615),u=t(6504),f=t(94457),p=t(59763),h=t(25162);function g(e){var n;let{meta:t,fallbackUrl:r,invalidPathFallback:s,headerAddons:d,sessionManagerProps:g,links:m,...v}=e;(0,h.x)();const b=(0,i.useContext)(l.B3),x=null===b||void 0===b||null===(n=b.session)||void 0===n?void 0:n.user,y=null===x||void 0===x?void 0:x.role,{locale:k}=(0,a.PE)()||{},w=(0,i.useMemo)((()=>{const e=Object.assign({},window.blocklet,t);try{return(0,f.RX)(e)}catch(n){return console.error("Failed to format blocklet info",n,e),e}}),[t]),{localizedNav:j,flattened:T,matchedIndex:M}=(0,i.useMemo)((()=>{var e;let n=(0,f.KN)(null===w||void 0===w||null===(e=w.navigation)||void 0===e?void 0:e.dashboard,k)||[];n=(0,f.Kb)(n,y),n=(0,u._J)(n,(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 t=(0,u.Ik)(n).filter((e=>!!e.url)),i=(0,u.RX)(t.map((e=>e.url)));return-1!==i&&(t[i].active=!0),{localizedNav:n,flattened:t,matchedIndex:i}}),[w,k,y]),C="function"===typeof m?m(j):[...j,...m];if((0,i.useLayoutEffect)((()=>{!x||null!==T&&void 0!==T&&T.length||!r||(window.location.href=r)}),[r]),(0,i.useLayoutEffect)((()=>{var e;x&&null!==T&&void 0!==T&&T.length&&-1===M&&(s?s():window.location.href=(null===(e=T[0])||void 0===e?void 0:e.url)||f.iU)}),[s,T,M]),!w.appName)return null;const{appLogo:A,appLogoRect:Z,appName:P}=w,E=(0,o.jsx)(p.Z,{formattedBlocklet:w,addons:d,sessionManagerProps:g});return(0,o.jsx)(c.Z,{title:P,fullWidth:!0,sidebarWidth:128,legacy:!1,links:C,...v,headerProps:{homeLink:f.iU,logo:(0,o.jsx)("img",{src:Z||A,alt:"logo"}),addons:E,...v.headerProps}})}g.propTypes={meta:d.u,fallbackUrl:s().string,invalidPathFallback:s().func,headerAddons:s().oneOfType([s().func,s().node]),sessionManagerProps:d.r,links:s().oneOfType([s().array,s().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,n,t)=>{t.d(n,{Z:()=>Y});var o,i=t(71171),r=t(96266),s=t(5057),l=t(55898),a=t.n(l),c=t(47685),d=t(52439),u=t(68420),f=t(71569),p=t(76223),h=t(24914),g=t.n(h),m=t(9498),v=t(39948);function b(e){let{name:n,logo:t,description:o,...i}=e;if(!n&&!t&&!o)return null;const l=(0,s.isValidElement)(t)?t:(0,r.jsx)("img",{src:t,alt:n});return(0,r.jsxs)(x,{...i,children:[(0,r.jsxs)("div",{children:[t&&(0,r.jsx)("div",{className:"footer-brand-logo",children:l}),n&&(0,r.jsx)("div",{className:"footer-brand-name",children:n})]}),o&&(0,r.jsx)("div",{className:"footer-brand-desc",children:o})]})}b.propTypes={name:a().node,logo:a().node,description:a().string},b.defaultProps={name:"",logo:"",description:""};const x=(0,c.zo)("div")(o||(o=(0,i.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 y,k=t(9978),w=t(76720),j=t(79787);function T(e){let{links:n,flowLayout:t,...o}=e;const[i,l]=(0,s.useState)(-1);if(null===n||void 0===n||!n.length)return null;const a=n.some((e=>{var n;return null===(n=e.items)||void 0===n?void 0:n.length})),c=e=>{let{label:n,link:t,icon:o,render:i,props:s}=e,l=n;return i?l=i({label:n,link:t,props:s}):t&&(l=(0,r.jsx)("a",{href:t,"aria-label":"Footer link for ".concat(n),...s,children:n})),(0,r.jsxs)(r.Fragment,{children:[o&&(0,r.jsx)(j.Z,{icon:o,size:20,sx:{mr:.5}}),l]})};return(0,r.jsx)(M,{...o,className:(0,k.Z)(o.className,{"footer-links--grouped":a,"footer-links--flow":t}),children:(0,r.jsxs)("div",{className:"footer-links-inner",children:[t&&n.map(((e,n)=>(0,r.jsx)("span",{className:"footer-links-item",children:c(e)},n))),!t&&n.map(((e,n)=>{const{items:t}=e,o=n===i;return(0,r.jsxs)("div",{className:(0,k.Z)("footer-links-group",{"footer-links-group--active":o}),onClick:()=>l(i===n?-1:n),children:[(0,r.jsxs)("span",{className:"footer-links-item",children:[c(e),!(null===t||void 0===t||!t.length)&&(0,r.jsx)("span",{className:"footer-links-group-expand-icon",children:(0,r.jsx)(w.Z,{style:{transform:"rotate(".concat(o?180:0,"deg)")}})})]}),!(null===t||void 0===t||!t.length)&&(0,r.jsx)("div",{className:"footer-links-sub",children:t.map(((e,n)=>(0,r.jsx)("span",{className:"footer-links-item",children:c(e)},n)))})]},n)}))]})})}T.propTypes={links:a().arrayOf(a().shape({label:a().string,link:a().string,render:a().func,props:a().object})),flowLayout:a().bool},T.defaultProps={links:[],flowLayout:!1};const M=(0,c.zo)("div")(y||(y=(0,i.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 C;function A(e){let{items:n,...t}=e;const o=(0,c.Fg)();return null!==n&&void 0!==n&&n.length?(0,r.jsx)(Z,{...t,children:n.map(((e,n)=>(0,r.jsx)("a",{href:e.link,target:"_blank","aria-label":"Social media icon".concat(e.title?" for ".concat(e.title):""),rel:"noreferrer",children:(0,r.jsx)(j.Z,{icon:e.icon||e.title,sx:{bgcolor:o.palette.grey[600],color:"#fff"},size:24,component:"span"})},n)))}):null}A.propTypes={items:a().arrayOf(a().shape({icon:a().string,link:a().string}))},A.defaultProps={items:null};const Z=(0,c.zo)("div")(C||(C=(0,i.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 P;function E(e){let{owner:n,year:t,...o}=e;return(0,r.jsxs)(S,{...o,children:["Copyright \xa9 ",t," ",n]})}E.propTypes={owner:a().string,year:a().string},E.defaultProps={owner:"ArcBlock",year:"".concat((new Date).getFullYear())};const S=(0,c.zo)("p")(P||(P=(0,i.Z)(["\n display: flex;\n align-items: center;\n margin: 0;\n font-size: 13px;\n"])));var I,O=t(22139);function N(e){let{children:n,autoCenter:t,...o}=e;return n?(0,r.jsx)(z,{...o,className:(0,k.Z)(o.className,{"footer-row-auto-center":t}),children:n}):null}N.propTypes={children:a().any,autoCenter:a().bool},N.defaultProps={children:null,autoCenter:!1};const z=(0,c.zo)(v.Z)(I||(I=(0,i.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 R;function _(e){var n;let{elements:t,data:o,...i}=e;return(0,r.jsx)(L,{...i,children:(0,r.jsxs)(O.Z,{children:[(0,r.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,r.jsx)(v.Z,{children:t.brand}),(0,r.jsx)(v.Z,{lineHeight:1,children:t.socialMedia})]}),!(null===(n=o.navigation)||void 0===n||!n.length)&&(0,r.jsx)(v.Z,{sx:{mb:6,pt:3,borderTop:1,borderColor:"grey.200"},children:t.navigation}),(0,r.jsxs)(N,{sx:{pt:3,borderTop:1,borderColor:"grey.200"},autoCenter:!0,children:[t.copyright,t.links]})]})})}_.propTypes={elements:a().shape({brand:a().element,navigation:a().element,socialMedia:a().element,copyright:a().element,links:a().element}).isRequired,data:a().object.isRequired};const L=(0,c.zo)("div")(R||(R=(0,i.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=_;var F;function H(e){let{elements:n,data:t,...o}=e;return(0,r.jsx)(U,{...o,children:(0,r.jsxs)(O.Z,{className:"plain-layout-container",children:[!!t.links&&(0,r.jsxs)(N,{sx:{width:1},autoCenter:!0,children:[n.copyright,n.links]}),!t.links&&(0,r.jsxs)(r.Fragment,{children:[(0,s.cloneElement)(n.brand,{name:null,description:null}),n.copyright]})]})})}H.propTypes={elements:a().shape({brand:a().element,navigation:a().element,socialMedia:a().element,copyright:a().element,links:a().element}).isRequired,data:a().object.isRequired};const U=(0,c.zo)("div")(F||(F=(0,i.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"]))),B=[{name:"plain",support:(e,n)=>{var t,o;return!(null!==(t=n.navigation)&&void 0!==t&&t.length)&&!(null!==(o=n.socialMedia)&&void 0!==o&&o.length)},component:H},{name:"standard",support:()=>!0,component:q}],D=B.reduce(((e,n)=>({...e,[n.name]:n})),{});function J(e){var n;const{brand:t,navigation:o,socialMedia:i,copyright:s,links:l,layout:a,...c}=e,d={brand:t?(0,r.jsx)(b,{...t}):null,navigation:null!==o&&void 0!==o&&o.length?(0,r.jsx)(T,{links:o}):null,socialMedia:null!==i&&void 0!==i&&i.length?(0,r.jsx)(A,{items:i}):null,copyright:(()=>{const e=(null===s||void 0===s?void 0:s.owner)||(null===t||void 0===t?void 0:t.name);return e?(0,r.jsx)(E,{owner:e,year:(null===s||void 0===s?void 0:s.year)||void 0}):null})(),links:null!==l&&void 0!==l&&l.length?(0,r.jsx)(T,{flowLayout:!0,links:l}):null};let u=null;var f;"auto"===a?u=B.find((n=>n.support(d,e))).component:u=null===(f=D[a])||void 0===f?void 0:f.component;if(!u)throw new Error("layout ".concat(a," is not supported."));return(0,r.jsxs)(v.Z,{position:"relative",...c,children:[(0,r.jsx)(u,{elements:d,data:e}),(0,r.jsx)(v.Z,{position:"absolute",right:16,bottom:0,fontSize:12,sx:{color:"transparent","::selection":{background:"#000",color:"#fff"}},children:null===(n=window)||void 0===n||null===(n=n.blocklet)||void 0===n?void 0:n.version})]})}J.propTypes={brand:a().shape({name:a().node,description:a().string,logo:a().node}),navigation:a().arrayOf(a().shape({label:a().node,link:a().string})),socialMedia:a().arrayOf(a().shape({icon:a().node,link:a().string})),copyright:a().shape({owner:a().string,year:a().oneOfType([a().string,a().number])}),links:a().arrayOf(a().shape({label:a().node,link:a().string})),layout:a().oneOf(["auto","standard","plain"])},J.defaultProps={brand:null,navigation:null,copyright:null,socialMedia:null,links:null,layout:"auto"};const $=J;var K,Q=t(6504),W=t(94457),X=t(615);function V(e){var n,t,o,i;let{meta:l,theme:a,...c}=e;const{locale:d}=(0,u.PE)()||{},f=(0,s.useMemo)((()=>{const e=Object.assign({},window.blocklet,l);try{return(0,W.RX)(e)}catch(n){return console.error("Failed to format blocklet info",n,e),e}}),[l]);if(!f.appName)return null;const{appLogo:p,appLogoRect:h,appName:v,appDescription:b,description:x,theme:y,copyright:k}=f,w={footerNav:(0,W.KN)(null===f||void 0===f||null===(n=f.navigation)||void 0===n?void 0:n.footer,d)||[],socialMedia:(0,W.KN)(null===f||void 0===f||null===(t=f.navigation)||void 0===t?void 0:t.social,d)||[],links:(0,W.KN)(null===f||void 0===f||null===(o=f.navigation)||void 0===o?void 0:o.bottom,d)||[]},j={brand:{name:v,description:b||x,logo:h||p},navigation:(0,Q._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,r.jsx)(m.Z,{theme:a,children:(0,r.jsx)(G,{...j,...g()(c,["bordered"]),$bordered:null===c||void 0===c?void 0:c.bordered,$bgcolor:null===y||void 0===y||null===(i=y.background)||void 0===i?void 0:i.footer})})}V.propTypes={meta:X.u,theme:a().object},V.defaultProps={meta:{},theme:null};const G=(0,c.zo)($)(K||(K=(0,i.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:n}=e;return"border-top: 1px solid ".concat(n?p.E.strokeSep:"#eee",";")}),(e=>e.theme.palette.grey[600]),(e=>{let{$bgcolor:n}=e;return n&&"background-color: ".concat(n,";")})),Y=(0,d.withErrorBoundary)(V,{FallbackComponent:f.H})},1192:(e,n,t)=>{t.d(n,{Z:()=>A});var o,i=t(71171),r=t(96266),s=t(5057),l=t(55898),a=t.n(l),c=t(52439),d=t(71569),u=t(47685),f=t(60391),p=t(48250),h=t(68420),g=t(76223),m=t(24914),v=t.n(m),b=t(79787),x=t(9498),y=t(615),k=t(6504),w=t(94457),j=t(59763),T=t(25162);function M(e){var n,t;let{meta:o,addons:i,sessionManagerProps:l,homeLink:a,theme:c,hideNavMenu:d,...u}=e;(0,T.x)();const{locale:f}=(0,h.PE)()||{},g=(0,s.useMemo)((()=>{const e=Object.assign({},window.blocklet,o);try{return(0,w.RX)(e)}catch(n){return console.error("Failed to format blocklet info",n,e),e}}),[o]);if(!g.appName)return null;const{appLogo:m,appLogoRect:y,theme:M}=g,A=(e=>{if(null===e||void 0===e||!e.length)return{navItems:[],activeId:null};let n=1;const t=(0,k._J)(e,(e=>{var t,o;const i=e.icon?(0,r.jsx)(b.Z,{icon:e.icon}):null;if(e.items)return{id:"".concat(n++),label:e.title,icon:i,children:e.items};let s={};return(null!==(t=e.link)&&void 0!==t&&t.startsWith("http://")||null!==(o=e.link)&&void 0!==o&&o.startsWith("https://"))&&(s={target:"_blank",rel:"noreferrer"}),{id:"".concat(n++),label:(0,r.jsx)("a",{href:e.link,...s,children:e.title}),icon:i,link:e.link}}),"items"),o=(0,k.Ik)(t),i=(0,k.RX)(o.map((e=>e.link)));return{navItems:t,activeId:i>=0?o[i].id:null}})((0,w.KN)(null===g||void 0===g||null===(n=g.navigation)||void 0===n?void 0:n.header,f)),{navItems:Z,activeId:P}=A,E="function"===typeof i?e=>i(e,{navigation:A}):i,S=(0,r.jsx)(j.Z,{formattedBlocklet:g,addons:E,sessionManagerProps:l});return(0,r.jsx)(x.Z,{theme:c,children:(0,r.jsx)(C,{homeLink:a,logo:(0,r.jsx)("img",{src:y||m,alt:"logo"}),addons:S,...v()(u,["bordered"]),$bordered:null===u||void 0===u?void 0:u.bordered,$bgcolor:null===M||void 0===M||null===(t=M.background)||void 0===t?void 0:t.header,children:d||null===Z||void 0===Z||!Z.length?null:e=>{let{isMobile:n}=e;return(0,r.jsx)(p.Z,{mode:n?"inline":"horizontal",activeId:P,items:Z,className:"header-nav",bgColor:"transparent",textColor:"#777"})}})})}M.propTypes={meta:y.u,addons:a().oneOfType([a().func,a().node]),sessionManagerProps:y.r,homeLink:a().string,theme:a().object,hideNavMenu:a().bool},M.defaultProps={meta:{},addons:null,sessionManagerProps:{showRole:!0},homeLink:w.iU,theme:null,hideNavMenu:!1};const C=(0,u.zo)(f.z)(o||(o=(0,i.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:n}=e;return"background-color: ".concat(n||"#fff",";")}),(e=>{let{$bordered:n}=e;return n?"border-bottom: 1px solid ".concat(g.E.strokeSep,";"):""}),(e=>e.theme.breakpoints.down("md"))),A=(0,c.withErrorBoundary)(M,{FallbackComponent:d.H})},79787:(e,n,t)=>{t.d(n,{Z:()=>a});var o=t(96266),i=(t(49631),t(55898)),r=t.n(i),s=t(62681),l=t(6504);function a(e){let{icon:n,size:t,sx:i,...r}=e;const a=[...Array.isArray(i)?i:[i]];if(t&&a.push({width:t,height:t}),r.variant||a.push({"&.MuiAvatar-root":{color:"inherit",fontWeight:"bold",backgroundColor:"transparent",borderRadius:0},"&.MuiAvatar-root svg":{width:"100%",height:"100%"}}),(0,l.CB)(n))return(0,o.jsx)(s.Z,{as:"span",...r,src:n,sx:a});if((0,l.Xk)(n)){const e=t?.6*t+4:0;return(0,o.jsx)(s.Z,{as:"span",...r,sx:a,children:(0,o.jsx)("iconify-icon",{icon:n,height:e||void 0})})}return n&&"string"===typeof n?(a.push({"&.MuiAvatar-root":{display:"inline-flex",...t&&{fontSize:t-2}}}),(0,o.jsx)(s.Z,{as:"span",...r,sx:a,children:Array.from(n)[0]})):null}a.propTypes={icon:r().string.isRequired,size:r().number,sx:r().oneOfType([r().array,r().func,r().object])},a.defaultProps={size:null,sx:null}},94457:(e,n,t)=>{t.d(n,{KN:()=>l,Kb:()=>u,RX:()=>c,iU:()=>s});var o,i,r=t(6504);const s=(null===(o=window)||void 0===o||null===(o=o.blocklet)||void 0===o?void 0:o.groupPrefix)||(null===(i=window)||void 0===i||null===(i=i.blocklet)||void 0===i?void 0:i.prefix)||"/",l=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";if(null===e||void 0===e||!e.length)return e;const t=(e,n)=>{if("string"===typeof e){if((0,r.CB)(e)){const t=new URL(e);return t.searchParams.set("locale",n),t.href}const t=new URL(e,window.location.origin);return t.searchParams.set("locale",n),t.pathname+t.search}return"object"===typeof e?e[n]||(null===e||void 0===e?void 0:e.en)||(null===e||void 0===e?void 0:e.zh):e};return(0,r._J)(e,(e=>{var o,i,r;return{...e,title:(i=e.title,r=n,"string"===typeof i?i:"object"===typeof i?i[r]||(null===i||void 0===i?void 0:i.en)||(null===i||void 0===i?void 0:i.zh):i),link:null!==(o=e.items)&&void 0!==o&&o.length?e.link:t(e.link,n),_rawLink:e.link}}),"items")},a=e=>{if(null===e||void 0===e||!e.length)return null;const n=(e=>(0,r._J)(e,(e=>e.role?{...e,role:Array.isArray(e.role)?e.role:[e.role]}:e),"items"))(e),t={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return n.forEach((e=>{if(e.section){if(Array.isArray(e.section))e.section.forEach((n=>{var o;null===(o=t[n])||void 0===o||o.push(e)}));else if("string"===typeof e.section){var n;null===(n=t[e.section])||void 0===n||n.push(e)}}else t.header.push(e)})),t},c=e=>{if(!e)return null;const n={...e};return n.theme=(e=>{const n={...e},t=null===e||void 0===e?void 0:e.background;return"string"===typeof t?n.background={header:t,footer:t,default:t}:t&&"object"===typeof t&&(n.background={header:t.header||t.default,footer:t.footer||t.default,default:t.default}),n})(n.theme),n.navigation=a(d(n.navigation)),n},d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,r.fA)(e,((e,n)=>{var t;return!!e.link||(null===(t=n.filteredChildren)||void 0===t?void 0:t.length)}),"items")},u=(e,n)=>(0,r.fA)(e,((e,t)=>{const o=!e.role||n&&e.role.includes(n);var i;return t.isLeaf?o:o&&(null===(i=t.filteredChildren)||void 0===i?void 0:i.length)}),"items")},59763:(e,n,t)=>{t.d(n,{Z:()=>O});var o=t(96266),i=(t(49631),t(5057)),r=t(55898),s=t.n(r),l=t(47220),a=t(51724),c=t(67680),d=t(49020),u=t(72113),f=t(7469),p=t(25228),h=t(19577),g=t(2478),m=t(79278),v=t(39948),b=t(11750),x=t(55498);const y={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"/>'},k={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 w=t(12673),j=t(99360),T=t(28726),M=t(76223),C=t(21998),A=t(43907);function Z(e){var n;let{session:t,locale:r,size:s}=e;const l=(null===(n=window)||void 0===n?void 0:n.blocklet)||{},a=(l.navigation||[]).filter((e=>"sessionManager"===e.section&&!["/sessionManager"].includes(e.id))).filter((e=>{var n;return!!((null===e||void 0===e?void 0:e.role)||[]).includes((null===t||void 0===t||null===(n=t.user)||void 0===n?void 0:n.role)||"guest")})).map((e=>{const n=((null===l||void 0===l?void 0:l.componentMountPoints)||[]).find((n=>e.component===n.name));return{...e,component:n}})),Z=(0,i.useRef)(null),P=(0,w.Z)({open:!1}),E=(0,j.Z)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!P.open;P.open=e}));return 0!==a.length&&null!==t&&void 0!==t&&t.user?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c.Z,{size:"medium",ref:Z,onClick:()=>E(),children:(0,o.jsx)(x.JO,{icon:y,fontSize:s,style:{transform:"scale(1.08)"}})}),(0,o.jsx)(d.Z,{open:P.open,onClose:()=>E(!1),anchorEl:Z.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:e=>{let{TransitionProps:n}=e;return(0,o.jsx)(u.d,{onClickAway:e=>{e.preventDefault(),e.stopPropagation(),E(!1)},children:(0,o.jsx)(f.Z,{...n,timeout:350,children:(0,o.jsxs)(p.Z,{variant:"outlined",sx:{borderRadius:3,width:350,maxWidth:"90vw",borderColor:M.E.lineStep,p:2,border:"0 !important",boxShadow:"0px 8px 16px 0px ".concat(M.E.gray6,", 0px 0px 0px 1px ").concat(M.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:a.map((e=>{var n,t;return(0,o.jsx)(g.ZP,{disablePadding:!0,children:(0,o.jsxs)(m.Z,{href:e.link,sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:2,"&:hover":{backgroundColor:M.E.surfacePrimarySubtitle}},children:[null!==e&&void 0!==e&&null!==(n=e.component)&&void 0!==n&&n.did?(0,o.jsx)(v.Z,{component:"img",src:"".concat(C.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||k,color:M.E.textSubtitle}),(0,o.jsx)(b.Z,{sx:{fontSize:"12px",color:M.E.textBase,textAlign:"center",lineHeight:"normal"},children:(null===(t=e.title)||void 0===t?void 0:t[r])||e.title})]})},e.id)}))}),(0,o.jsx)(A.Z,{session:t,children:(0,o.jsx)(T.Z,{variant:"outlined",fullWidth:!0,href:C.Rt,sx:{mt:1,borderRadius:2,color:M.E.textBase,borderColor:M.E.lineBorderStrong,"&:hover":{color:M.E.primaryBase,borderColor:M.E.primaryBase}},children:"zh"===r?"\u7ba1\u7406":"Manage"})})]})})})}})]}):null}Z.propTypes={session:s().object.isRequired,locale:s().string,size:s().number},Z.defaultProps={locale:"en",size:24};var P=t(30296),E=t(68420),S=t(615),I=t(94457);function O(e){var n,t,r;let{formattedBlocklet:s,addons:c,sessionManagerProps:d}=e;const u=(0,i.useContext)(l.B3),{locale:f}=(0,E.PE)()||{},{enableConnect:p=!0,enableLocale:h=!0}=s,g=!(null===u||void 0===u||null===(n=u.session)||void 0===n||!n.user);let m=(0,I.KN)(null===s||void 0===s||null===(t=s.navigation)||void 0===t?void 0:t.sessionManager,f)||[];m=(0,I.Kb)(m,null===u||void 0===u||null===(r=u.session)||void 0===r||null===(r=r.user)||void 0===r?void 0:r.role);const v=(()=>{if(c&&"function"!==typeof c)return Array.isArray(c)?c:[c];let e=[];if(h&&f&&e.push((0,o.jsx)(P.Z,{showText:!1},"locale-selector")),p&&u){const n=[];if(g){(m?m.slice(0,5):[]).forEach((e=>{n.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)(Z,{session:u.session,locale:f},"session-blocklet")),e.push((0,o.jsx)(a.Z,{session:u.session,locale:f,menu:n,showRole:!0,...d},"session-user"))}return"function"===typeof c&&(e=c(e)||[]),e})();return(0,i.createElement)(o.Fragment,null,...Array.isArray(v)?v:[v])}O.propTypes={formattedBlocklet:s().object.isRequired,addons:s().oneOfType([s().func,s().node]),sessionManagerProps:S.r},O.defaultProps={addons:null,sessionManagerProps:{showRole:!0}}},9498:(e,n,t)=>{t.d(n,{Z:()=>a});var o=t(96266),i=t(55898),r=t.n(i),s=t(47685);const l=(0,s.jG)();function a(e){let{theme:n,children:t}=e;const i=n?(0,s.jG)(n):l;return(0,o.jsx)(s.f6,{theme:i,children:t})}a.propTypes={children:r().any.isRequired,theme:r().object},a.defaultProps={theme:null}},25162:(e,n,t)=>{t.d(n,{x:()=>r});var o=t(5057),i=t(60829);const r=()=>{const e=(0,i.Z)();(0,o.useEffect)((()=>{e.wallet&&t.e(2365).then(t.t.bind(t,72365,23)).then((e=>{e.call||(e=e.default),e.call("arcHideTopBar","{}")})).catch((e=>{console.error("load dsbridge error",e)}))}),[e])}},615:(e,n,t)=>{t.d(n,{r:()=>s,u:()=>r});var o=t(55898),i=t.n(o);const r=i().shape({appLogo:i().node,appName:i().string,theme:i().shape({background:i().string}),enableConnect:i().bool,enableLocale:i().bool,navigation:i().arrayOf(i().shape({title:i().oneOfType([i().string,i().object]),link:i().oneOfType([i().string,i().object]),icon:i().string,items:i().arrayOf(i().shape({title:i().oneOfType([i().string,i().object]),link:i().oneOfType([i().string,i().object])}))}))}),s=i().shape({showText:i().bool,showRole:i().bool,switchDid:i().bool,switchProfile:i().bool,switchPassport:i().bool,disableLogout:i().bool,onLogin:i().func,onLogout:i().func,onSwitchDid:i().func,onSwitchProfile:i().func,onSwitchPassport:i().func,menu:i().array,menuRender:i().func,dark:i().bool,size:i().number})},6504:(e,n,t)=>{t.d(n,{CB:()=>s,Ik:()=>i,RX:()=>a,Xk:()=>l,_J:()=>o,fA:()=>r});const o=function(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children";return e.map((e=>Array.isArray(e[t])?n({...e,[t]:o(e[t],n,t)}):n(e)))},i=function(e){const n=[];return o(e,(e=>n.push(e)),arguments.length>1&&void 0!==arguments[1]?arguments[1]:"children"),n},r=function(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children";return e.map((e=>({...e}))).filter((e=>{const o=e[t];if(Array.isArray(o)){const i=r(o,n,t);e[t]=null!==i&&void 0!==i&&i.length?i:void 0}const i={filteredChildren:e[t],isLeaf:!(null!==o&&void 0!==o&&o.length)};return n(e,i)}))},s=e=>/^https?:\/\//.test(e),l=e=>/^[\w-]+:[\w-]+$/.test(e),a=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(((e,n)=>({path:e,index:n}))).filter((e=>(e=>{if(!e||null===e||void 0===e||!e.startsWith("/"))return!1;const n=e=>e.endsWith("/")?e:"".concat(e,"/"),t=n(window.location.pathname),o=n(new URL(e,window.location.origin).pathname);return t.startsWith(o)})(e.path)));if(null===e||void 0===e||!e.length)return-1;return e.slice(1).reduce(((e,n)=>e.path.length>=n.path.length?e:n),e[0]).index}},49631:(e,n,t)=>{var o=t(56666);const i=Object.freeze({left:0,top:0,width:16,height:16}),r=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),s=Object.freeze({...i,...r}),l=Object.freeze({...s,body:"",hidden:!1}),a=Object.freeze({width:null,height:null}),c=Object.freeze({...a,...r});const d=/[\s,]+/;const u={...c,preserveAspectRatio:""};function f(e){const n={...u},t=(n,t)=>e.getAttribute(n)||t;var o;return n.width=t("width",null),n.height=t("height",null),n.rotate=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const t=e.replace(/^-?[0-9.]*/,"");function o(e){for(;e<0;)e+=4;return e%4}if(""===t){const n=parseInt(e);return isNaN(n)?0:o(n)}if(t!==e){let n=0;switch(t){case"%":n=25;break;case"deg":n=90}if(n){let i=parseFloat(e.slice(0,e.length-t.length));return isNaN(i)?0:(i/=n,i%1===0?o(i):0)}}return n}(t("rotate","")),o=n,t("flip","").split(d).forEach((e=>{switch(e.trim()){case"horizontal":o.hFlip=!0;break;case"vertical":o.vFlip=!0}})),n.preserveAspectRatio=t("preserveAspectRatio",t("preserveaspectratio","")),n}const p=/^[a-z0-9]+(-[a-z0-9]+)*$/,h=function(e,n,t){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";const i=e.split(":");if("@"===e.slice(0,1)){if(i.length<2||i.length>3)return null;o=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const e=i.pop(),t=i.pop(),r={provider:i.length>0?i[0]:o,prefix:t,name:e};return n&&!g(r)?null:r}const r=i[0],s=r.split("-");if(s.length>1){const e={provider:o,prefix:s.shift(),name:s.join("-")};return n&&!g(e)?null:e}if(t&&""===o){const e={provider:o,prefix:"",name:r};return n&&!g(e,t)?null:e}return null},g=(e,n)=>!!e&&!(""!==e.provider&&!e.provider.match(p)||!(n&&""===e.prefix||e.prefix.match(p))||!e.name.match(p));function m(e,n){const t=function(e,n){const t={};!e.hFlip!==!n.hFlip&&(t.hFlip=!0),!e.vFlip!==!n.vFlip&&(t.vFlip=!0);const o=((e.rotate||0)+(n.rotate||0))%4;return o&&(t.rotate=o),t}(e,n);for(const o in l)o in r?o in e&&!(o in t)&&(t[o]=r[o]):o in n?t[o]=n[o]:o in e&&(t[o]=e[o]);return t}function v(e,n,t){const o=e.icons,i=e.aliases||Object.create(null);let r={};function s(e){r=m(o[e]||i[e],r)}return s(n),t.forEach(s),m(e,r)}function b(e,n){const t=[];if("object"!==typeof e||"object"!==typeof e.icons)return t;e.not_found instanceof Array&&e.not_found.forEach((e=>{n(e,null),t.push(e)}));const o=function(e,n){const t=e.icons,o=e.aliases||Object.create(null),i=Object.create(null);return(n||Object.keys(t).concat(Object.keys(o))).forEach((function e(n){if(t[n])return i[n]=[];if(!(n in i)){i[n]=null;const t=o[n]&&o[n].parent,r=t&&e(t);r&&(i[n]=[t].concat(r))}return i[n]})),i}(e);for(const i in o){const r=o[i];r&&(n(i,v(e,i,r)),t.push(i))}return t}const x={provider:"",aliases:{},not_found:{},...i};function y(e,n){for(const t in n)if(t in e&&typeof e[t]!==typeof n[t])return!1;return!0}function k(e){if("object"!==typeof e||null===e)return null;const n=e;if("string"!==typeof n.prefix||!e.icons||"object"!==typeof e.icons)return null;if(!y(e,x))return null;const t=n.icons;for(const i in t){const e=t[i];if(!i.match(p)||"string"!==typeof e.body||!y(e,l))return null}const o=n.aliases||Object.create(null);for(const i in o){const e=o[i],n=e.parent;if(!i.match(p)||"string"!==typeof n||!t[n]&&!o[n]||!y(e,l))return null}return n}const w=Object.create(null);function j(e,n){const t=w[e]||(w[e]=Object.create(null));return t[n]||(t[n]=function(e,n){return{provider:e,prefix:n,icons:Object.create(null),missing:new Set}}(e,n))}function T(e,n){return k(n)?b(n,((n,t)=>{t?e.icons[n]=t:e.missing.add(n)})):[]}function M(e,n){let t=[];return("string"===typeof e?[e]:Object.keys(w)).forEach((e=>{("string"===typeof e&&"string"===typeof n?[n]:Object.keys(w[e]||{})).forEach((n=>{const o=j(e,n);t=t.concat(Object.keys(o.icons).map((t=>(""!==e?"@"+e+":":"")+n+":"+t)))}))})),t}let C=!1;function A(e){return"boolean"===typeof e&&(C=e),C}function Z(e){const n="string"===typeof e?h(e,!0,C):e;if(n){const e=j(n.provider,n.prefix),t=n.name;return e.icons[t]||(e.missing.has(t)?null:void 0)}}function P(e,n){const t=h(e,!0,C);if(!t)return!1;return function(e,n,t){try{if("string"===typeof t.body)return e.icons[n]={...t},!0}catch(o){}return!1}(j(t.provider,t.prefix),t.name,n)}function E(e,n){if("object"!==typeof e)return!1;if("string"!==typeof n&&(n=e.provider||""),C&&!n&&!e.prefix){let n=!1;return k(e)&&(e.prefix="",b(e,((e,t)=>{t&&P(e,t)&&(n=!0)}))),n}const t=e.prefix;if(!g({provider:n,prefix:t,name:"a"}))return!1;return!!T(j(n,t),e)}function S(e){return!!Z(e)}function I(e){const n=Z(e);return n?{...s,...n}:null}function O(e,n){e.forEach((e=>{const t=e.loaderCallbacks;t&&(e.loaderCallbacks=t.filter((e=>e.id!==n)))}))}let N=0;const z=Object.create(null);function R(e,n){z[e]=n}function _(e){return z[e]||z[""]}var L={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function q(e,n,t,o){const i=e.resources.length,r=e.random?Math.floor(Math.random()*i):e.index;let s;if(e.random){let n=e.resources.slice(0);for(s=[];n.length>1;){const e=Math.floor(Math.random()*n.length);s.push(n[e]),n=n.slice(0,e).concat(n.slice(e+1))}s=s.concat(n)}else s=e.resources.slice(r).concat(e.resources.slice(0,r));const l=Date.now();let a,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,n){n&&(p=[]),"function"===typeof e&&p.push(e)}function v(){c="failed",p.forEach((e=>{e(void 0,a)}))}function b(){f.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),f=[]}function x(){if("pending"!==c)return;h();const o=s.shift();if(void 0===o)return f.length?void(u=setTimeout((()=>{h(),"pending"===c&&(b(),v())}),e.timeout)):void v();const i={status:"pending",resource:o,callback:(n,t)=>{!function(n,t,o){const i="success"!==t;switch(f=f.filter((e=>e!==n)),c){case"pending":break;case"failed":if(i||!e.dataAfterTimeout)return;break;default:return}if("abort"===t)return a=o,void v();if(i)return a=o,void(f.length||(s.length?x():v()));if(h(),b(),!e.random){const t=e.resources.indexOf(n.resource);-1!==t&&t!==e.index&&(e.index=t)}c="completed",p.forEach((e=>{e(o)}))}(i,n,t)}};f.push(i),d++,u=setTimeout(x,e.rotate),t(o,n,i.callback)}return"function"===typeof o&&p.push(o),setTimeout(x),function(){return{startTime:l,payload:n,status:c,queriesSent:d,queriesPending:f.length,subscribe:m,abort:g}}}function F(e){const n={...L,...e};let t=[];function o(){t=t.filter((e=>"pending"===e().status))}return{query:function(e,i,r){const s=q(n,e,i,((e,n)=>{o(),r&&r(e,n)}));return t.push(s),s},find:function(e){return t.find((n=>e(n)))||null},setIndex:e=>{n.index=e},getIndex:()=>n.index,cleanup:o}}function H(e){let n;if("string"===typeof e.resources)n=[e.resources];else if(n=e.resources,!(n instanceof Array)||!n.length)return null;return{resources:n,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 U=Object.create(null),B=["https://api.simplesvg.com","https://api.unisvg.com"],D=[];for(;B.length>0;)1===B.length||Math.random()>.5?D.push(B.shift()):D.push(B.pop());function J(e,n){const t=H(n);return null!==t&&(U[e]=t,!0)}function $(e){return U[e]}function K(){return Object.keys(U)}function Q(){}U[""]=H({resources:["https://api.iconify.design"].concat(D)});const W=Object.create(null);function X(e,n,t){let o,i;if("string"===typeof e){const n=_(e);if(!n)return t(void 0,424),Q;i=n.send;const r=function(e){if(!W[e]){const n=$(e);if(!n)return;const t={config:n,redundancy:F(n)};W[e]=t}return W[e]}(e);r&&(o=r.redundancy)}else{const n=H(e);if(n){o=F(n);const t=_(e.resources?e.resources[0]:"");t&&(i=t.send)}}return o&&i?o.query(n,i,t)().abort:(t(void 0,424),Q)}const V="iconify2",G="iconify",Y=G+"-count",ee=G+"-version",ne=36e5,te=168;function oe(e,n){try{return e.getItem(n)}catch(t){}}function ie(e,n,t){try{return e.setItem(n,t),!0}catch(o){}}function re(e,n){try{e.removeItem(n)}catch(t){}}function se(e,n){return ie(e,Y,n.toString())}function le(e){return parseInt(oe(e,Y))||0}const ae={local:!0,session:!0},ce={local:new Set,session:new Set};let de=!1;let ue="undefined"===typeof window?{}:window;function fe(e){const n=e+"Storage";try{if(ue&&ue[n]&&"number"===typeof ue[n].length)return ue[n]}catch(t){}ae[e]=!1}function pe(e,n){const t=fe(e);if(!t)return;const o=oe(t,ee);if(o!==V){if(o){const e=le(t);for(let n=0;n<e;n++)re(t,G+n.toString())}return ie(t,ee,V),void se(t,0)}const i=Math.floor(Date.now()/ne)-te,r=e=>{const o=G+e.toString(),r=oe(t,o);if("string"===typeof r){try{const t=JSON.parse(r);if("object"===typeof t&&"number"===typeof t.cached&&t.cached>i&&"string"===typeof t.provider&&"object"===typeof t.data&&"string"===typeof t.data.prefix&&n(t,e))return!0}catch(s){}re(t,o)}};let s=le(t);for(let l=s-1;l>=0;l--)r(l)||(l===s-1?(s--,se(t,s)):ce[e].add(l))}function he(){if(!de){de=!0;for(const e in ae)pe(e,(e=>{const n=e.data,t=j(e.provider,n.prefix);if(!T(t,n).length)return!1;const o=n.lastModified||-1;return t.lastModifiedCached=t.lastModifiedCached?Math.min(t.lastModifiedCached,o):o,!0}))}}function ge(e,n){function t(t){let o;if(!ae[t]||!(o=fe(t)))return;const i=ce[t];let r;if(i.size)i.delete(r=Array.from(i).shift());else if(r=le(o),!se(o,r+1))return;const s={cached:Math.floor(Date.now()/ne),provider:e.provider,data:n};return ie(o,G+r.toString(),JSON.stringify(s))}de||he(),n.lastModified&&!function(e,n){const t=e.lastModifiedCached;if(t&&t>=n)return t===n;if(e.lastModifiedCached=n,t)for(const o in ae)pe(o,(t=>{const o=t.data;return t.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===n}));return!0}(e,n.lastModified)||Object.keys(n.icons).length&&(n.not_found&&delete(n=Object.assign({},n)).not_found,t("local")||t("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 n=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!n.length)return;let t=!1;const o=e.provider,i=e.prefix;n.forEach((n=>{const r=n.icons,s=r.pending.length;r.pending=r.pending.filter((n=>{if(n.prefix!==i)return!0;const s=n.name;if(e.icons[s])r.loaded.push({provider:o,prefix:i,name:s});else{if(!e.missing.has(s))return t=!0,!0;r.missing.push({provider:o,prefix:i,name:s})}return!1})),r.pending.length!==s&&(t||O([e],n.id),n.callback(r.loaded.slice(0),r.missing.slice(0),r.pending.slice(0),n.abort))}))})))}(e)})))}const be=(e,n)=>{const t=function(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=[];return e.forEach((e=>{const i="string"===typeof e?h(e,n,t):e;i&&o.push(i)})),o}(e,!0,A()),o=function(e){const n={loaded:[],missing:[],pending:[]},t=Object.create(null);e.sort(((e,n)=>e.provider!==n.provider?e.provider.localeCompare(n.provider):e.prefix!==n.prefix?e.prefix.localeCompare(n.prefix):e.name.localeCompare(n.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 i=e.provider,r=e.prefix,s=e.name,l=t[i]||(t[i]=Object.create(null)),a=l[r]||(l[r]=j(i,r));let c;c=s in a.icons?n.loaded:""===r||a.missing.has(s)?n.missing:n.pending;const d={provider:i,prefix:r,name:s};c.push(d)})),n}(t);if(!o.pending.length){let e=!0;return n&&setTimeout((()=>{e&&n(o.loaded,o.missing,o.pending,me)})),()=>{e=!1}}const i=Object.create(null),r=[];let s,l;return o.pending.forEach((e=>{const{provider:n,prefix:t}=e;if(t===l&&n===s)return;s=n,l=t,r.push(j(n,t));const o=i[n]||(i[n]=Object.create(null));o[t]||(o[t]=[])})),o.pending.forEach((e=>{const{provider:n,prefix:t,name:o}=e,r=j(n,t),s=r.pendingIcons||(r.pendingIcons=new Set);s.has(o)||(s.add(o),i[n][t].push(o))})),r.forEach((e=>{const{provider:n,prefix:t}=e;i[n][t].length&&function(e,n){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(n).sort():e.iconsToLoad=n,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout((()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:t}=e,o=e.iconsToLoad;let i;delete e.iconsToLoad,o&&(i=_(n))&&i.prepare(n,t,o).forEach((t=>{X(n,t,(n=>{if("object"!==typeof n)t.icons.forEach((n=>{e.missing.add(n)}));else try{const t=T(e,n);if(!t.length)return;const o=e.pendingIcons;o&&t.forEach((e=>{o.delete(e)})),ge(e,n)}catch(o){console.error(o)}ve(e)}))}))})))}(e,i[n][t])})),n?function(e,n,t){const o=N++,i=O.bind(null,t,o);if(!n.pending.length)return i;const r={id:o,icons:n,callback:e,abort:i};return t.forEach((e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(r)})),i}(n,o,r):me},xe=e=>new Promise(((n,t)=>{const o="string"===typeof e?h(e,!0):e;o?be([o||e],(i=>{if(i.length&&o){const e=Z(o);if(e)return void n({...s,...e})}t(e)})):t(e)}));function ye(e,n){const t="string"===typeof e?h(e,!0,!0):null;if(!t){const n=function(e){try{const n="string"===typeof e?JSON.parse(e):e;if("string"===typeof n.body)return{...n}}catch(n){}}(e);return{value:e,data:n}}const o=Z(t);if(void 0!==o||!t.prefix)return{value:e,name:t,data:o};const i=be([t],(()=>n(e,t,Z(t))));return{value:e,name:t,loading:i}}function ke(e){return e.hasAttribute("inline")}let we=!1;try{we=0===navigator.vendor.indexOf("Apple")}catch(cn){}const je=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Te=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Me(e,n,t){if(1===n)return e;if(t=t||100,"number"===typeof e)return Math.ceil(e*n*t)/t;if("string"!==typeof e)return e;const o=e.split(je);if(null===o||!o.length)return e;const i=[];let r=o.shift(),s=Te.test(r);for(;;){if(s){const e=parseFloat(r);isNaN(e)?i.push(r):i.push(Math.ceil(e*n*t)/t)}else i.push(r);if(r=o.shift(),void 0===r)return i.join("");s=!s}}const Ce=e=>"unset"===e||"undefined"===e||"none"===e;function Ae(e,n){const t={...s,...e},o={...c,...n},i={left:t.left,top:t.top,width:t.width,height:t.height};let r=t.body;[t,o].forEach((e=>{const n=[],t=e.hFlip,o=e.vFlip;let s,l=e.rotate;switch(t?o?l+=2:(n.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),n.push("scale(-1 1)"),i.top=i.left=0):o&&(n.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),n.push("scale(1 -1)"),i.top=i.left=0),l<0&&(l-=4*Math.floor(l/4)),l%=4,l){case 1:s=i.height/2+i.top,n.unshift("rotate(90 "+s.toString()+" "+s.toString()+")");break;case 2:n.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:s=i.width/2+i.left,n.unshift("rotate(-90 "+s.toString()+" "+s.toString()+")")}l%2===1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),n.length&&(r='<g transform="'+n.join(" ")+'">'+r+"</g>")}));const l=o.width,a=o.height,d=i.width,u=i.height;let f,p;null===l?(p=null===a?"1em":"auto"===a?u:a,f=Me(p,d/u)):(f="auto"===l?d:l,p=null===a?Me(f,u/d):"auto"===a?u:a);const h={},g=(e,n)=>{Ce(n)||(h[e]=n.toString())};return g("width",f),g("height",p),h.viewBox=i.left.toString()+" "+i.top.toString()+" "+d.toString()+" "+u.toString(),{attributes:h,body:r}}let Ze=(()=>{let e;try{if(e=fetch,"function"===typeof e)return e}catch(cn){}})();function Pe(e){Ze=e}function Ee(){return Ze}const Se={prepare:(e,n,t)=>{const o=[],i=function(e,n){const t=$(e);if(!t)return 0;let o;if(t.maxURL){let e=0;t.resources.forEach((n=>{const t=n;e=Math.max(e,t.length)}));const i=n+".json?icons=";o=t.maxURL-e-t.path.length-i.length}else o=0;return o}(e,n),r="icons";let s={type:r,provider:e,prefix:n,icons:[]},l=0;return t.forEach(((t,a)=>{l+=t.length+1,l>=i&&a>0&&(o.push(s),s={type:r,provider:e,prefix:n,icons:[]},l=t.length),s.icons.push(t)})),o.push(s),o},send:(e,n,t)=>{if(!Ze)return void t("abort",424);let o=function(e){if("string"===typeof e){const n=$(e);if(n)return n.path}return"/"}(n.provider);switch(n.type){case"icons":{const e=n.prefix,t=n.icons.join(",");o+=e+".json?"+new URLSearchParams({icons:t}).toString();break}case"custom":{const e=n.uri;o+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void t("abort",400)}let i=503;Ze(e+o).then((e=>{const n=e.status;if(200===n)return i=501,e.json();setTimeout((()=>{t(function(e){return 404===e}(n)?"abort":"next",n)}))})).then((e=>{"object"===typeof e&&null!==e?setTimeout((()=>{t("success",e)})):setTimeout((()=>{404===e?t("abort",e):t("next",i)}))})).catch((()=>{t("next",i)}))}};function Ie(e,n){switch(e){case"local":case"session":ae[e]=n;break;case"all":for(const e in ae)ae[e]=n}}const Oe="data-style";let Ne="";function ze(e){Ne=e}function Re(e,n){let t=Array.from(e.childNodes).find((e=>e.hasAttribute&&e.hasAttribute(Oe)));t||(t=document.createElement("style"),t.setAttribute(Oe,Oe),e.appendChild(t)),t.textContent=":host{display:inline-block;vertical-align:"+(n?"-0.125em":"0")+"}span,svg{display:block}"+Ne}function _e(){let e;R("",Se),A(!0);try{e=window}catch(cn){}if(e){if(he(),void 0!==e.IconifyPreload){const n=e.IconifyPreload,t="Invalid IconifyPreload syntax.";"object"===typeof n&&null!==n&&(n instanceof Array?n:[n]).forEach((e=>{try{("object"!==typeof e||null===e||e instanceof Array||"object"!==typeof e.icons||"string"!==typeof e.prefix||!E(e))&&console.error(t)}catch(n){console.error(t)}}))}if(void 0!==e.IconifyProviders){const t=e.IconifyProviders;if("object"===typeof t&&null!==t)for(const e in t){const o="IconifyProviders["+e+"] is invalid.";try{const n=t[e];if("object"!==typeof n||!n||void 0===n.resources)continue;J(e,n)||console.error(o)}catch(n){console.error(o)}}}}return{enableCache:e=>Ie(e,!0),disableCache:e=>Ie(e,!1),iconExists:S,getIcon:I,listIcons:M,addIcon:P,addCollection:E,calculateSize:Me,buildIcon:Ae,loadIcons:be,loadIcon:xe,addAPIProvider:J,appendCustomStyle:ze,_api:{getAPIConfig:$,setAPIModule:R,sendAPIQuery:X,setFetch:Pe,getFetch:Ee,listAPIProviders:K}}}function Le(e,n){let t=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in n)t+=" "+o+'="'+n[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+t+">"+e+"</svg>"}const qe={"background-color":"currentColor"},Fe={"background-color":"transparent"},He={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Ue={"-webkit-mask":qe,mask:qe,background:Fe};for(const dn in Ue){const e=Ue[dn];for(const n in He)e[dn+"-"+n]=He[n]}function Be(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}let De;function Je(e){return void 0===De&&function(){try{De=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch(cn){De=null}}(),De?De.createHTML(e):e}function $e(e,n){const t=n.icon.data,o=n.customisations,i=Ae(t,o);o.preserveAspectRatio&&(i.attributes.preserveAspectRatio=o.preserveAspectRatio);const r=n.renderedMode;let l;if("svg"===r)l=function(e){const n=document.createElement("span"),t=e.attributes;let o="";t.width||(o="width: inherit;"),t.height||(o+="height: inherit;"),o&&(t.style=o);const i=Le(e.body,t);return n.innerHTML=Je(i),n.firstChild}(i);else l=function(e,n,t){const o=document.createElement("span");let i=e.body;-1!==i.indexOf("<a")&&(i+="\x3c!-- "+Date.now()+" --\x3e");const r=e.attributes,s='url("'+(c=Le(i,{...r,width:n.width+"",height:n.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)+'")'),l=o.style,a={"--svg":s,width:Be(r.width),height:Be(r.height),...t?qe:Fe};var c;for(const d in a)l.setProperty(d,a[d]);return o}(i,{...s,...t},"mask"===r);const a=Array.from(e.childNodes).find((e=>{const n=e.tagName&&e.tagName.toUpperCase();return"SPAN"===n||"SVG"===n}));a?"SPAN"===l.tagName&&a.tagName===l.tagName?a.setAttribute("style",l.getAttribute("style")):e.replaceChild(l,a):e.appendChild(l)}function Ke(e,n,t){return{rendered:!1,inline:n,icon:e,lastRender:t&&(t.rendered?t:t.lastRender)}}const Qe=function(){let e,n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"iconify-icon";try{e=window.customElements,n=window.HTMLElement}catch(cn){return}if(!e||!n)return;const i=e.get(t);if(i)return i;const r=["icon","mode","inline","width","height","rotate","flip"],s=class extends n{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"}),n=ke(this);Re(e,n),this._state=Ke({value:""},n),this._queueCheck()}static get observedAttributes(){return r.slice(0)}attributeChangedCallback(e){if("inline"===e){const e=ke(this),n=this._state;e!==n.inline&&(n.inline=e,Re(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(cn){}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 n=this._shadowRoot;if("svg"===e.renderedMode)try{return void n.lastChild.setCurrentTime(0)}catch(cn){}$e(n,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,n=this.getAttribute("icon");if(n!==e.icon.value)return void this._iconChanged(n);if(!e.rendered)return;const t=this.getAttribute("mode"),o=f(this);(e.attrMode!==t||function(e,n){for(const t in u)if(e[t]!==n[t])return!0;return!1}(e.customisations,o))&&this._renderIcon(e.icon,o,t)}_iconChanged(e){const n=ye(e,((e,n,t)=>{const o=this._state;if(o.rendered||this.getAttribute("icon")!==e)return;const i={value:e,name:n,data:t};i.data?this._gotIconData(i):o.icon=i}));n.data?this._gotIconData(n):this._state=Ke(n,this._state.inline,this._state)}_gotIconData(e){this._checkQueued=!1,this._renderIcon(e,f(this),this.getAttribute("mode"))}_renderIcon(e,n,t){const o=function(e,n){switch(n){case"svg":case"bg":case"mask":return n}return"style"===n||!we&&-1!==e.indexOf("<a")?-1===e.indexOf("currentColor")?"bg":"mask":"svg"}(e.data.body,t),i=this._state.inline;$e(this._shadowRoot,this._state={rendered:!0,icon:e,inline:i,customisations:n,attrMode:t,renderedMode:o})}};r.forEach((e=>{e in s.prototype||Object.defineProperty(s.prototype,e,{get:function(){return this.getAttribute(e)},set:function(n){null!==n?this.setAttribute(e,n):this.removeAttribute(e)}})}));const l=_e();for(const o in l)s[o]=s.prototype[o]=l[o];return e.define(t,s),s}()||_e(),{enableCache:We,disableCache:Xe,iconExists:Ve,getIcon:Ge,listIcons:Ye,addIcon:en,addCollection:nn,calculateSize:tn,buildIcon:on,loadIcons:rn,loadIcon:sn,addAPIProvider:ln,_api:an}=Qe}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see 9818.66fa52f8.chunk.js.LICENSE.txt */
2
- (self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[9818],{87806:(e,t,i)=>{"use strict";t.Z=void 0;(n=i(5057))&&n.__esModule;var n,o=i(96266);function r(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function a(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?r(Object(i),!0).forEach((function(t){s(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function s(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var l=function(e){return(0,o.jsx)("svg",a(a({},e),{},{children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.25 10a6.75 6.75 0 1 1 13.5 0 6.75 6.75 0 0 1-13.5 0zM10 1.75a8.25 8.25 0 1 0 0 16.5 8.25 8.25 0 0 0 0-16.5zM8.03 6.97a.75.75 0 0 0-1.06 1.06l5 5a.75.75 0 1 0 1.06-1.06l-5-5z"})}))};l.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},l.displayName="revoke";t.Z=l},99818:(e,t,i)=>{"use strict";i.d(t,{qY:()=>I,YZ:()=>Le});i(1192),i(2484),i(5873),i(79787);var n=i(96266),o=i(47220),r=i(76223),a=i(68420),s=i(11337),l=i(43907),c=i(55498),d=i(13727),u=i(72113),p=i(7469),m=i(25228),b=i(39948),f=i(67680),E=i(99360),w=i(55898),h=i.n(w),g=i(5057),_=i(56556);function v(e){let{optionalComponent:t,index:i,installStatus:o,hasPermission:a,t:s}=e;const l="stopped"===o||"running"===o;return(0,n.jsxs)(b.Z,{children:[0===i?null:(0,n.jsx)(b.Z,{sx:{width:"100%",height:"1px",backgroundColor:r.E.gray6}}),(0,n.jsxs)(b.Z,{sx:{padding:"20px 24px",paddingTop:.5,marginTop:2,display:"flex",flexDirection:"row",justifyContent:"start",alignItems:"flex-start"},children:[(0,n.jsx)("img",{style:{width:60,height:60,minWidth:60,minHeight:60},src:t.logoUrl,alt:t.meta.title}),(0,n.jsxs)(b.Z,{sx:{display:"flex",flexDirection:"column",justifyContent:"start",alignItems:"start",marginLeft:2},children:[(0,n.jsxs)(b.Z,{sx:{fontSize:"16px",fontWeight:"bold",cursor:"pointer",".link-icon":{opacity:0},":hover .link-icon":{opacity:1}},onClick:()=>{var e;return null===(e=t.meta)||void 0===e||e.did,void window.open(null===t||void 0===t?void 0:t.storeUrl,"_blank")},children:[t.meta.title,(0,n.jsxs)(b.Z,{sx:{paddingLeft:1,fontSize:"13px",fontWeight:"400"},component:"span",children:[t.meta.version,(0,n.jsx)(c.JO,{className:"link-icon",icon:"fluent:open-20-filled",style:{color:r.E.primaryBase,fontSize:16,transform:"translate(6px, 3px)",transition:"all 0.3s"}})]})]}),(0,n.jsx)(b.Z,{sx:{marginTop:0,opacity:.7},children:t.meta.description}),(0,n.jsx)(b.Z,{sx:{display:a?"flex":"none",flexDirection:"row",gap:1},children:o?(0,n.jsx)(b.Z,{sx:{marginTop:2,opacity:.7},children:l?(0,n.jsx)(_.Z,{variant:"contained",onClick:()=>{window.location.reload()},children:s("componentInstallerRefresh")},"refresh"):(0,n.jsx)(_.Z,{disabled:!0,sx:{color:"#333"},startIcon:(0,n.jsx)(c.JO,{icon:"line-md:loading-loop",style:{color:"#333",fontSize:16}}),variant:"contained",children:o},"status")}):(0,n.jsx)(_.Z,{sx:{marginTop:2},variant:"contained",className:"button",onClick:()=>{var e;return null===(e=t.meta)||void 0===e||e.did,void window.open(null===t||void 0===t?void 0:t.installUrl,"_blank")},children:s("componentInstallerInstall")},"install")}),l?(0,n.jsx)(b.Z,{sx:{marginTop:2,opacity:.7},children:s("componentInstallerSuccessInstalled")}):null]})]})]})}v.propTypes={t:h().func.isRequired,optionalComponent:h().object.isRequired,index:h().number.isRequired,installStatus:h().string,hasPermission:h().bool.isRequired},v.defaultProps={installStatus:""};const T={zh:{componentInstallerTitle:"\u7f3a\u5c11\u7ec4\u4ef6",componentInstallerInstall:"\u5b89\u88c5",componentInstallerClose:"\u5173\u95ed",componentInstallerRefresh:"\u91cd\u8f7d\u9875\u9762",componentInstallerSuccessInstalled:"\u5b89\u88c5\u6210\u529f\uff0c\u8bf7\u91cd\u8f7d\u9875\u9762\u67e5\u770b\u53d8\u5316\u3002",componentInstallerSuggestions:"\u8bf7\u8054\u7cfb\u7cfb\u7edf\u7ba1\u7406\u5458\u5b89\u88c5\u8be5\u7ec4\u4ef6\u3002",componentInstallerNoDefinedInBlockletYML:"\u7ec4\u4ef6\u672a\u5728 blocklet.yml \u4e2d\u5b9a\u4e49"},en:{componentInstallerTitle:"Missing component",componentInstallerInstall:"Install",componentInstallerClose:"Close",componentInstallerRefresh:"Refresh",componentInstallerSuccessInstalled:"Successfully installed, please refresh the page to see the changes.",componentInstallerSuggestions:"Please contact the system administrator to install the component.",componentInstallerNoDefinedInBlockletYML:"The component is not defined in blocklet.yml"}};var O=i(74958),S=i(6352),x=i.n(S);const y=e=>"string"===typeof e?new Set(e.split(";;")):new Set(e);const R=function(e){let{did:t,onInstalled:i,onError:n}=e;const o=Array.isArray(t)?t.join(";;"):t,[r,a]=(0,g.useState)({}),s=(0,g.useRef)({onInstalled:i,onError:n});s.current={onInstalled:i,onError:n};const{optionalComponents:l,componentMountPoints:c}=window.blocklet,d=(0,g.useMemo)((()=>{var e;if(!l||!l.length)return[];const t=y(o),i=l.filter((e=>t.has(e.meta.did)));return null===(e=i?s.current.onError:s.current.onInstalled)||void 0===e||e(i),i}),[o,l]),u=(0,g.useMemo)((()=>{if(d.length)return!0;const e=y(o);return(c||[]).find((t=>e.has(t.did)))}),[d,c,o]);return d.forEach((e=>{e.storeUrl=x()(e.meta.homepage,"blocklets",e.meta.did),e.installUrl=x()(window.blocklet.appUrl,O.Bu,"/admin/components?install-component=".concat(e.meta.did))})),(0,g.useEffect)((()=>{const e=e=>{var t,i;if(e.origin===window.blocklet.appUrl&&"component-installer"===(null===(t=e.data)||void 0===t?void 0:t.kind)&&null!==(i=e.data)&&void 0!==i&&null!==(i=i.blocklet)&&void 0!==i&&i.children){var n;let t=!1;const i=y(o);null===(n=e.data)||void 0===n||null===(n=n.blocklet)||void 0===n||n.children.forEach((e=>{var n;i.has(null===(n=e.meta)||void 0===n?void 0:n.did)&&(t=!0,a((t=>{var i;return{...t,[null===(i=e.meta)||void 0===i?void 0:i.did]:e.status||"waiting"}})))})),t||a({})}};return window.addEventListener("message",e),()=>{window.removeEventListener("message",e)}}),[o]),{optComponents:d,installed:!d.length&&u,installStatus:r,setInstallStatus:a,definedInBlockletYML:u}};function k(e){let{warnIcon:t,did:i,noPermissionMute:w,onInstalled:h,onError:_,children:O,closeByOutSize:S,onClose:x,fallback:y,disabled:k,roles:I=["owner","admin"]}=e;const{locale:N}=(0,a.PE)(),A=(0,E.Z)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,s.I)(T,e,N,"en",t)})),{installed:L,optComponents:C,installStatus:P,definedInBlockletYML:D}=R({did:i,onInstalled:h,onError:_}),j=(0,g.useContext)(o.B3),M=()=>{null===x||void 0===x||x(!1)};return k?O:(0,n.jsx)(l.Z,{session:null===j||void 0===j?void 0:j.session,roles:I,children:e=>{let{hasPermission:o}=e;return L?O:w&&!o?y||null:"function"===typeof O?(0,n.jsxs)(n.Fragment,{children:[y,O({hasPermission:o,optComponents:C,installStatus:P})]}):(0,n.jsxs)(n.Fragment,{children:[y,(0,n.jsx)(u.d,{onClickAway:e=>{e.preventDefault(),e.stopPropagation(),S&&M()},children:(0,n.jsx)(p.Z,{in:!0,timeout:350,children:(0,n.jsx)(m.Z,{variant:"outlined",sx:{position:"fixed",top:20,right:20,zIndex:3e3,borderRadius:3,width:400,maxWidth:"90vw",borderColor:r.E.lineStep,border:"0 !important",fontSize:"14px",textAlign:"left",boxShadow:"0px 8px 16px 0px ".concat(r.E.gray6,", 0px 0px 0px 1px ").concat(r.E.gray6)},children:D?(0,n.jsxs)(b.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,n.jsxs)(b.Z,{sx:{padding:"20px 24px",marginLeft:0,display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start"},children:[t||(0,n.jsx)(c.JO,{icon:"mdi:warning-box",style:{color:"yellowgreen",fontSize:24}}),(0,n.jsx)(b.Z,{sx:{marginLeft:1,fontSize:"16px",fontWeight:"bold"},children:A("componentInstallerTitle")}),(0,n.jsx)(b.Z,{sx:{flex:1}}),x?(0,n.jsx)(f.Z,{variant:"outlined",className:"button",onClick:M,children:(0,n.jsx)(d.default,{})}):null]}),(0,n.jsx)(b.Z,{sx:{width:"100%",height:"1px",backgroundColor:r.E.gray6}}),(0,n.jsx)(b.Z,{sx:{maxHeight:"70vh",overflowY:"auto"},children:C.map(((e,t)=>{var i,r;return(0,n.jsx)(v,{t:A,hasPermission:o,index:t,optionalComponent:e,installStatus:P[null===(i=e.meta)||void 0===i?void 0:i.did]},(null===(r=e.meta)||void 0===r?void 0:r.did)||t)}))}),o?null:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b.Z,{sx:{width:"100%",height:"1px",backgroundColor:r.E.gray6}}),(0,n.jsx)(b.Z,{sx:{padding:"20px 24px"},children:(0,n.jsx)(b.Z,{sx:{opacity:1},children:A("componentInstallerSuggestions")})})]})]}):(0,n.jsxs)(b.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,n.jsxs)(b.Z,{sx:{padding:"20px 24px",marginLeft:0,display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"flex-start"},children:[t||(0,n.jsx)(c.JO,{icon:"mdi:warning-box",style:{color:"yellowgreen",fontSize:24}}),(0,n.jsx)(b.Z,{sx:{marginLeft:1,fontSize:"16px",fontWeight:"bold"},children:A("componentInstallerTitle")}),(0,n.jsx)(b.Z,{sx:{flex:1}}),x?(0,n.jsx)(f.Z,{variant:"outlined",className:"button",onClick:M,children:(0,n.jsx)(d.default,{})}):null]}),(0,n.jsx)(b.Z,{sx:{width:"100%",height:"1px",backgroundColor:r.E.gray6}}),(0,n.jsxs)(b.Z,{sx:{padding:"20px 24px",marginTop:0},children:[A("componentInstallerNoDefinedInBlockletYML"),": ",i]})]})})})})]})}})}function I(e){return window.blocklet?(0,n.jsx)(k,{...e}):e.children}k.propTypes={disabled:h().bool,warnIcon:h().node,did:h().oneOfType([h().string,h().arrayOf(h().string)]).isRequired,noPermissionMute:h().bool,onInstalled:h().func,onError:h().func,children:h().any.isRequired,closeByOutSize:h().bool,onClose:h().func,fallback:h().node,roles:h().array},k.defaultProps={disabled:!1,warnIcon:null,noPermissionMute:!1,onInstalled:null,onError:null,closeByOutSize:!1,onClose:null,fallback:null,roles:["owner","admin"]},I.propTypes={...k.propTypes,children:h().any.isRequired},I.defaultProps={...k.defaultProps};i(28018),i(94464),i(25710),i(28726);var N=i(13128);i(71569),i(25842);i(23939);var A=i(49384);i(60251);var L=i(95712);i(47685),i(72966),i(92706);i(94457);var C=i(26538),P=i.n(C),D=i(87806);function j(e){let{passport:t,user:i,color:o,width:r,icon:s,children:l,createPassportSvg:c,...d}=e;const{t:u}=(0,a.PE)();return(0,n.jsxs)(b.Z,{...d,sx:{display:"flex",alignItems:"center",...null===d||void 0===d?void 0:d.sx},children:[(0,n.jsx)(b.Z,{className:"passport-item__display",dangerouslySetInnerHTML:{__html:c({title:t.title||t.name,issuer:t.issuer&&t.issuer.name,issuerDid:t.issuer&&t.issuer.id,ownerName:i.fullName,ownerDid:i.did,ownerAvatarUrl:i.avatar,revoked:t.revoked,preferredColor:o,width:r})}}),(0,n.jsxs)(b.Z,{className:"passport-item__body",sx:{p:0,ml:3,mt:0},children:[(0,n.jsxs)(b.Z,{className:"passport-item__title",sx:{display:"flex",alignItems:"center",fontWeight:400,fontSize:"16px",lineHeight:1.1875,color:"#222222"},children:[P()(t.title),(0,n.jsxs)(b.Z,{className:"passport-item__status-icon",sx:{svg:{fill:"#bfbfbf",height:"1.2em",marginLeft:"0.4em"}},children:[s,t.revoked&&(0,n.jsx)(D.Z,{})]})]}),t.expirationDate&&(0,n.jsx)(b.Z,{className:"passport-item__title",sx:{display:"flex",alignItems:"center",fontWeight:400,fontSize:"16px",lineHeight:1.1875,color:"#222222"},children:u("team.passport.validUntil",{date:t.expirationDate})}),l]})]})}j.propTypes={passport:h().any.isRequired,user:h().any.isRequired,color:h().string.isRequired,createPassportSvg:h().func.isRequired,icon:h().any,children:h().any,width:h().number},j.defaultProps={icon:null,children:null,width:150};i(21998),i(30278),i(76818);const M=(0,g.createContext)({}),{Provider:B,Consumer:U}=M;i(82790),i(86229),i(82434),i(14506),i(16967);var F=i(36738),K=i(2842);function Z(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)e[n]=i[n]}return e}var z=function e(t,i){function n(e,n,o){if("undefined"!==typeof document){"number"===typeof(o=Z({},i,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var r="";for(var a in o)o[a]&&(r+="; "+a,!0!==o[a]&&(r+="="+o[a].split(";")[0]));return document.cookie=e+"="+t.write(n,e)+r}}return Object.create({set:n,get:function(e){if("undefined"!==typeof document&&(!arguments.length||e)){for(var i=document.cookie?document.cookie.split("; "):[],n={},o=0;o<i.length;o++){var r=i[o].split("="),a=r.slice(1).join("=");try{var s=decodeURIComponent(r[0]);if(n[s]=t.read(a,s),e===s)break}catch(l){}}return e?n[e]:n}},remove:function(e,t){n(e,"",Z({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,Z({},this.attributes,t))},withConverter:function(t){return e(Z({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),H=i(10458),W=i.n(H),q=Object.defineProperty,G=(e,t,i)=>(((e,t,i)=>{t in e?q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i})(e,"symbol"!==typeof t?t+"":t,i),i);class V{constructor(e){let{api:t}=e;G(this,"api"),this.api=t}async getUserPublicInfo(e){let{did:t}=e;const{data:i}=await this.api.get("/api/user",{params:{did:t}});return i}async getUserPrivacyConfig(e){let{did:t}=e;const{data:i}=await this.api.get("/api/user/privacy/config",{params:{did:t}});return i}async saveUserPrivacyConfig(e){const{data:t}=await this.api.post("/api/user/privacy/config",e);return t}async getUserNotificationConfig(){const{data:e}=await this.api.get("/api/user/notification/config");return e}async saveUserNotificationConfig(e){const{data:t}=await this.api.post("/api/user/notification/config",e);return t}async testNotificationWebhook(e){const{data:t}=await this.api.put("/api/user/notification/webhook",e);return t}async getProfileUrl(e){let{did:t,locale:i}=e;const n="".concat(F.WELLKNOWN_SERVICE_PATH_PREFIX,"/user");return(0,K.jb)(n,{did:t,locale:i})}async logout(e){let{visitorId:t}=e;const{data:i}=await this.api.post("/api/user/logout",{visitorId:t});return i}}class Y{getSessionToken(){return z.get(F.SESSION_TOKEN_STORAGE_KEY)}setSessionToken(e){z.set(F.SESSION_TOKEN_STORAGE_KEY,e)}removeSessionToken(){z.remove(F.SESSION_TOKEN_STORAGE_KEY)}getRefreshToken(){return localStorage.getItem(F.REFRESH_TOKEN_STORAGE_KEY)}setRefreshToken(e){localStorage.setItem(F.REFRESH_TOKEN_STORAGE_KEY,e)}removeRefreshToken(){localStorage.removeItem(F.REFRESH_TOKEN_STORAGE_KEY)}}var X=Object.defineProperty,J=(e,t,i)=>(((e,t,i)=>{t in e?X(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i})(e,"symbol"!==typeof t?t+"":t,i),i);class ${constructor(e){let{api:t}=e;J(this,"api"),this.api=t}async getUserSessions(e){let{did:t}=e;const{data:i}=await this.api.get("/api/user-session",{params:{userDid:t}});return i}}async function Q(e,t){e.metaData.endTime=+new Date;const{startTime:i,endTime:n}=e.metaData,o=n-i;o<t&&await function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise((t=>{setTimeout((()=>{t()}),e)}))}(t-o),delete e.metaData}const ee=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{lazy:t=!1,lazyTime:i=300}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=H.create({...e,headers:{...e.headers,"x-blocklet-js-sdk-version":"1.16.24"}});return t&&(n.interceptors.request.use((e=>(e.metaData={startTime:+new Date},e)),(e=>Promise.reject(e))),n.interceptors.response.use((async e=>(await Q(e.config,i),e)),(async e=>(await Q(e.response.config,i),Promise.reject(e))))),n},te=F.WELLKNOWN_SERVICE_PATH_PREFIX;function ie(e){let{getSessionToken:t,setSessionToken:i,removeSessionToken:n,getRefreshToken:o,setRefreshToken:r,removeRefreshToken:a,onRefreshTokenError:s,onRefreshTokenSuccess:l}=e,c=null;const d=ee({baseURL:te,timeout:3e4,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}});return d.interceptors.request.use((async e=>{if(!z.get(F.SESSION_TOKEN_STORAGE_KEY)){const i=t();i&&(e.headers.authorization="Bearer ".concat(encodeURIComponent(i)))}return c&&await c,e}),(e=>Promise.reject(e))),d.interceptors.response.use((e=>e),(async e=>{var t;const u=e.config;if(u.headers={...null===u||void 0===u?void 0:u.headers},401===(null===e||void 0===e||null===(t=e.response)||void 0===t?void 0:t.status)&&!u._retry){u._retry=!0,c||(c=async function(e){if(!e)throw new Error("Refresh token not found");const t=ee({baseURL:te,timeout:1e4,headers:{authorization:"Bearer ".concat(encodeURIComponent(e))}}),{data:i}=await t.post("api/did/refreshSession");return i}(o()));try{const e=await c;return i(e.nextToken),r(e.nextRefreshToken),"function"===typeof l&&l(e),d(u)}catch(p){return n(),a(),"function"===typeof s&&s(p),Promise.reject(p)}finally{c=null}}return Promise.reject(e)})),d}var ne=Object.defineProperty,oe=(e,t,i)=>(((e,t,i)=>{t in e?ne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i})(e,"symbol"!==typeof t?t+"":t,i),i);const re=new class{constructor(){oe(this,"api"),oe(this,"user"),oe(this,"userSession"),oe(this,"token");const e=new Y,t=ie({getSessionToken:e.getSessionToken,setSessionToken:e.setSessionToken,removeSessionToken:e.removeSessionToken,getRefreshToken:e.getRefreshToken,setRefreshToken:e.setRefreshToken,removeRefreshToken:e.removeRefreshToken,onRefreshTokenError:()=>{console.error("Failed to refresh token")},onRefreshTokenSuccess:()=>{}});this.user=new V({api:t}),this.userSession=new $({api:t}),this.api=t,this.token=e}};var ae=i(71171),se=(i(35966),i(33518));i(22425),i(75506);W().defaults.timeout=1e4;W().create();i.p;i(22256);i.p;var le;(0,se.Z)(b.Z)(le||(le=(0,ae.Z)(["\n .selected-container {\n position: absolute;\n right: 0px;\n bottom: 0px;\n display: flex;\n -webkit-box-pack: end;\n justify-content: flex-end;\n align-items: flex-end;\n width: 32px;\n height: 32px;\n border-radius: 0px 0px 8px;\n color: rgb(255, 255, 255);\n overflow: hidden;\n transition: all 0.4s ease 0s;\n\n &::after {\n position: absolute;\n z-index: 0;\n left: 60px;\n top: 60px;\n display: block;\n width: 0px;\n height: 0px;\n border-width: 16px;\n border-style: solid;\n border-color: transparent #1dc1c7 #1dc1c7 transparent;\n transition: all 0.1s ease 0s;\n content: '';\n }\n\n .selected-icon {\n visibility: hidden;\n width: 60%;\n height: 60%;\n position: relative;\n z-index: 2;\n margin: 0px 1px 1px 0px;\n font-size: 16px;\n transition: all 0.2s ease 0s;\n }\n }\n\n .selected-container.selected {\n &::after {\n left: 0px;\n top: 0px;\n }\n\n .selected-icon {\n visibility: visible;\n }\n }\n"])));var ce;(0,se.Z)(b.Z)(ce||(ce=(0,ae.Z)(["\n height: 100%;\n overflow-y: auto;\n"])));var de=i(75760),ue=i(79366),pe=i(93066),me=i(62219),be=i.n(me),fe=i(35833),Ee=i.n(fe),we=i(14520);class he extends Error{constructor(e){super(),this.name="AbortError",this.message=e}}const ge=e=>void 0===globalThis.DOMException?new he(e):new DOMException(e),_e=e=>{const t=void 0===e.reason?ge("This operation was aborted."):e.reason;return t instanceof Error?t:ge(t)};const ve=Symbol("skip");async function Te(e,t){return async function(e,t){let{concurrency:i=Number.POSITIVE_INFINITY,stopOnError:n=!0,signal:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise(((r,a)=>{if(void 0===e[Symbol.iterator]&&void 0===e[Symbol.asyncIterator])throw new TypeError("Expected `input` to be either an `Iterable` or `AsyncIterable`, got (".concat(typeof e,")"));if("function"!==typeof t)throw new TypeError("Mapper function is required");if(!Number.isSafeInteger(i)&&i!==Number.POSITIVE_INFINITY||!(i>=1))throw new TypeError("Expected `concurrency` to be an integer from 1 and up or `Infinity`, got `".concat(i,"` (").concat(typeof i,")"));const s=[],l=[],c=new Map;let d=!1,u=!1,p=!1,m=0,b=0;const f=void 0===e[Symbol.iterator]?e[Symbol.asyncIterator]():e[Symbol.iterator](),E=e=>{d=!0,u=!0,a(e)};o&&(o.aborted&&E(_e(o)),o.addEventListener("abort",(()=>{E(_e(o))})));const w=async()=>{if(u)return;const e=await f.next(),i=b;if(b++,e.done){if(p=!0,0===m&&!u){if(!n&&l.length>0)return void E(new AggregateError(l));if(u=!0,0===c.size)return void r(s);const e=[];for(const[t,i]of s.entries())c.get(t)!==ve&&e.push(i);r(e)}}else m++,(async()=>{try{const n=await e.value;if(u)return;const o=await t(n,i);o===ve&&c.set(i,o),s[i]=o,m--,await w()}catch(o){if(n)E(o);else{l.push(o),m--;try{await w()}catch(o){E(o)}}}})()};(async()=>{for(let t=0;t<i;t++){try{await w()}catch(e){E(e);break}if(p||d)break}})()}))}(e,(e=>e()),t)}var Oe=i(75239),Se=i(11750),xe=i(19654);function ye(e){let{user:t,sessionUser:i}=e;const o=(0,pe.Z)((()=>{var e;return null===(e=(null===t||void 0===t?void 0:t.passports)||[])||void 0===e?void 0:e.find((e=>e.name===i.role))}),[null===t||void 0===t?void 0:t.passports,null===i||void 0===i?void 0:i.role]);return(0,n.jsxs)(b.Z,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,n.jsx)(L.Z,{size:40,variant:"circle",shape:"circle",src:i.avatar,did:i.did}),(0,n.jsxs)(b.Z,{children:[(0,n.jsxs)(b.Z,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,n.jsx)(Se.Z,{sx:{whiteSpace:"normal",wordBreak:"break-all"},children:i.fullName}),(0,n.jsx)(xe.Z,{label:(null===o||void 0===o?void 0:o.title)||(null===o||void 0===o?void 0:o.name)||"Guest",size:"small",variant:"outlined",sx:{flexShrink:0,fontWeight:"bold",fontSize:"12px",color:r.E.textBase,borderColor:r.E.strokeBorderStrong,backgroundColor:"transparent",textTransform:"capitalize",pr:1,pl:.5}})]}),(0,n.jsx)(Se.Z,{variant:"body2",color:"grey",children:i.email})]})]})}const Re={zh:{confirm:"\u786e\u8ba4",cancel:"\u53d6\u6d88",visitorId:"\u8bbe\u5907\u6807\u8bc6",deviceType:"\u8bbe\u5907\u7c7b\u578b",platform:"\u64cd\u4f5c\u7cfb\u7edf",walletOS:"\u94b1\u5305\u7c7b\u578b",role:"\u89d2\u8272",fullname:"\u59d3\u540d",email:"\u90ae\u7bb1",avatar:"\u5934\u50cf",user:"\u7528\u6237",updatedAt:"\u6700\u8fd1\u6d3b\u52a8\u65f6\u95f4",lastLoginIp:"\u6700\u8fd1\u6d3b\u52a8\u5730\u5740",actions:"\u64cd\u4f5c",logoutAll:"\u6ce8\u9500\u6240\u6709\u4f1a\u8bdd",logoutAllTips:"\u4e0d\u4f1a\u6ce8\u9500\u5f53\u524d\u4f1a\u8bdd",logout:"\u6ce8\u9500",currentSession:"\u5f53\u524d\u4f1a\u8bdd",unknown:"\u672a\u77e5",logoutThisSession:"\u6ce8\u9500\u6307\u5b9a\u4f1a\u8bdd",logoutThisSessionConfirm:"\u786e\u5b9a\u8981\u6ce8\u9500\u6b64\u4f1a\u8bdd\u5417?",logoutAllSession:"\u6ce8\u9500\u6240\u6709\u4f1a\u8bdd",logoutAllSessionConfirm:"\u786e\u5b9a\u8981\u6ce8\u9500\u6240\u6709\u4f1a\u8bdd\u5417?"},en:{confirm:"Confirm",cancel:"Cancel",visitorId:"Device ID",deviceType:"Device Type",platform:"Platform",walletOS:"Wallet OS",role:"Role",fullname:"Fullname",email:"Email",avatar:"Avatar",user:"User",updatedAt:"Last Active Time",actions:"Actions",lastLoginIp:"Last Login IP",logoutAll:"Logout all",logoutAllTips:"Will not logout current session",logout:"Logout",currentSession:"Current Session",unknown:"Unknown",logoutThisSession:"Logout this session",logoutThisSessionConfirm:"Are you sure to logout this session?",logoutAllSession:"Logout all sessions",logoutAllSessionConfirm:"Are you sure to logout all sessions?"}},ke="Reserved IP",Ie="ip-region-cache";async function Ne(e){let t="",i={};try{const e=localStorage.getItem(Ie);e&&(i=JSON.parse(e))}catch{i={}}if(i[e])t=i[e];else{try{t=await async function(e){const t="https://api.ip.sb/geoip/".concat(e),i=await fetch(t),n=await i.json();let o="";return n.error?n.reserved&&(o=ke):o=[n.country,n.region,n.city].filter(Boolean).join("/"),o}(e)}catch{console.warn("Fail to get ip region from ip.sb")}if(!t)try{t=await async function(e){const t="https://ipapi.co/".concat(e,"/json/"),i=await fetch(t),n=await i.json();let o="";return n.error?n.reserved&&(o=ke):o=[n.country_name,n.region,n.city].filter(Boolean).join("/"),o}(e)}catch{console.warn("Fail to get ip region from ip-api.co")}}if(t){const n=Object.keys(i);n.length>100&&delete i[n[0]],i[e]&&delete i[e],i[e]=t,localStorage.setItem(Ie,JSON.stringify(i))}return t}const Ae=e=>new(Ee())(e,{browser:[[/(ArcWallet)\/([\w\.]+)/i],[Ee().BROWSER.NAME,Ee().BROWSER.VERSION]]}).getResult();function Le(e){let{user:t,showAction:i=!0,showUser:o=!0}=e;const r=(0,we.OP)(),{locale:l}=(0,a.PE)(),{confirmApi:c,confirmHolder:d}=(0,N.N4)(),u=(0,E.Z)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,s.I)(Re,e,l,"en",t)})),p=(0,E.Z)((async()=>{let e=null===t||void 0===t?void 0:t.userSessions;e||(e=await re.userSession.getUserSessions({did:t.did}));try{var i;const t=null===(i=e)||void 0===i?void 0:i.map(((e,t)=>[t,e.lastLoginIp])).filter((e=>!!e[1])),n=null===t||void 0===t?void 0:t.map((e=>e[1])),o=await async function(e){return Promise.all(e.map((e=>Ne(e))))}(n);for(let i=0;i<o.length;i++){const n=o[i],r=t[i];e[r[0]].ipRegion=n}}catch(o){console.warn("Failed to convert ip to region"),console.error(o)}const n=(new Date).getTime();return be()(e,(e=>e.visitorId===r?-1:n-new Date(e.updatedAt).getTime()))})),m=(0,ue.Z)(p),f=(0,pe.Z)((()=>m.data||[]),[m.data]),w=(0,pe.Z)((()=>f.reduce(((e,t)=>(e[t.lastLoginIp]=t.ipRegion,e)),{})),[f]),h=(0,E.Z)((e=>{let{visitorId:t}=e;c.open({title:u("logoutThisSession"),content:u("logoutThisSessionConfirm"),confirmButtonText:u("confirm"),cancelButtonText:u("cancel"),onConfirm:async()=>{await re.user.logout({visitorId:t}),m.refresh(),c.close()}})})),g=(0,pe.Z)((()=>f.filter((e=>e.visitorId!==r))),[f]),v=(0,E.Z)((()=>{c.open({title:u("logoutAllSession"),content:u("logoutAllSessionConfirm"),confirmButtonText:u("confirm"),cancelButtonText:u("cancel"),onConfirm:async()=>{const e=g.map((e=>()=>re.user.logout({visitorId:e.visitorId})));await Te(e,{concurrency:3,stopOnError:!1}),m.refresh(),c.close()}})})),T=[];i&&T.push((0,n.jsx)(Oe.Z,{title:u("logoutAllTips"),children:(0,n.jsx)(_.Z,{sx:{ml:.5},size:"small",variant:"contained",color:"error",onClick:v,disabled:0===g.length,children:u("logoutAll")})},"logoutAll"));const O=(0,pe.Z)((()=>({search:!1,sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!1,searchDebounceTime:600})),[]),S=[{label:u("platform"),name:"platform",options:{customBodyRenderLite:e=>{var t,i;const o=f[e],r=Ae(o.ua);return(0,n.jsx)(b.Z,{children:[null===(t=r.os)||void 0===t?void 0:t.name,null===(i=r.os)||void 0===i?void 0:i.version].filter(Boolean).join("/")||u("unknown")})}}},{label:u("deviceType"),name:"deviceType",options:{customBodyRenderLite:e=>{var t,i;const o=f[e],r=Ae(o.ua);return(0,n.jsx)(b.Z,{children:[null===(t=r.browser)||void 0===t?void 0:t.name,null===(i=r.browser)||void 0===i?void 0:i.version].filter(Boolean).join("/")||u("unknown")})}}},{label:u("walletOS"),name:"walletOS",options:{customBodyRenderLite:e=>{var t;const i=f[e];return(0,n.jsx)(b.Z,{children:(null===(t=i.extra)||void 0===t?void 0:t.walletOS)||u("unknown")})}}},o&&{label:u("user"),name:"user",options:{customBodyRenderLite:e=>{const i=f[e];return(0,n.jsx)(ye,{sessionUser:i.user,user:t})}}},{label:u("updatedAt"),name:"updatedAt",options:{customBodyRenderLite:e=>{const t=f[e];return(0,n.jsx)(A.Z,{value:t.updatedAt,relativeRange:2592e5,locale:l})}}},{label:u("lastLoginIp"),name:"lastLoginIp",options:{customBodyRenderLite:e=>{const t=f[e];return(0,n.jsx)(b.Z,{children:w[t.lastLoginIp]?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Se.Z,{variant:"body2",children:w[t.lastLoginIp]}),(0,n.jsx)(Se.Z,{variant:"body2",color:"grey",children:t.lastLoginIp||u("unknown")})]}):(0,n.jsx)(Se.Z,{children:t.lastLoginIp||u("unknown")})})}}},i&&{label:u("actions"),name:"actions",options:{customBodyRenderLite:e=>{const t=f[e];return(0,n.jsx)(b.Z,{children:(0,n.jsx)(_.Z,{sx:{whiteSpace:"nowrap",fontSize:"12px",px:1},disabled:r===t.visitorId,variant:"outlined",size:"small",color:"error",onClick:()=>h({visitorId:t.visitorId}),children:r===t.visitorId?u("currentSession"):u("logout")})})}}}].filter(Boolean);return(0,n.jsxs)(b.Z,{sx:{".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"}},children:[d,(0,n.jsx)(de.Z,{locale:l,data:f,columns:S,customButtons:T,options:O,loading:m.loading})]})}},36738:e=>{const t=Object.freeze({AUTH:"auth",AUTH_SERVICE:"@abtnode/auth-service"}),i=Object.freeze({AUTH_SERVICE:"/.service/".concat(t.AUTH_SERVICE)}),n=Object.freeze({OWNER:"owner",ADMIN:"admin",MEMBER:"member",GUEST:"guest"}),o=Object.freeze({...n,CI:"ci",CERTIFICATE:"certificate",BLOCKLET_OWNER:"blocklet-owner",BLOCKLET_ADMIN:"blocklet-admin",BLOCKLET_MEMBER:"blocklet-member",BLOCKLET_SDK:"blocklet-sdk",EXTERNAL_BLOCKLET_CONTROLLER:"external-blocklet-controller",EXTERNAL_BLOCKLETS_MANAGER:"external-blocklets-manager"}),r=[o.BLOCKLET_OWNER,o.BLOCKLET_ADMIN,o.BLOCKLET_MEMBER,o.BLOCKLET_SDK],a={roles:Object.freeze([{name:o.OWNER,title:"Owner",description:"Has full administrative access to the Blocklet Server",passport:!0},{name:o.ADMIN,title:"Admin",description:"Has full permissions to manage blocklet and Blocklet Server such as install/remove/start/stop blocklet, manage blocklet URL mapping and certificates, manage blocklet team, manage node integrations and access keys, upgrade node to a new version",passport:!0},{name:o.MEMBER,title:"Member",description:"Has permissions to manage blocklets, such as install/remove/start/stop blocklet, manage blocklet URL mapping and certificates",passport:!0},{name:o.GUEST,title:"Guest",description:"Has all read permissions on Blocklet Server",passport:!0},{name:o.CI,title:"CI",description:"Deploy blocklet to Blocklet Server",passport:!0,noHuman:!0},{name:o.CERTIFICATE,title:"Certificate",description:"Manage https certificates for blocklets on the Blocklet Server",passport:!0,noHuman:!0},{name:o.BLOCKLET_OWNER,title:"Blocklet Owner"},{name:o.BLOCKLET_ADMIN,title:"Blocklet Admin"},{name:o.BLOCKLET_MEMBER,title:"Blocklet Member"},{name:o.BLOCKLET_SDK,title:"Blocklet SDK"},{name:o.EXTERNAL_BLOCKLET_CONTROLLER,title:"External Blocklet Controller"},{name:o.EXTERNAL_BLOCKLETS_MANAGER,title:"External Blocklets Manager",description:"Manage external blocklets in the Blocklet Server",passport:!0,noHuman:!0},{name:t.AUTH_SERVICE,title:"Auth Service"}]),permissions:Object.freeze([{name:"query_node",description:"View node data, include dashboard and node settings, log stream for both Blocklet Server and blocklets"},{name:"mutate_node",description:"Change node settings, upgrade node to a new version"},{name:"query_session",description:"Get data from a long running session"},{name:"mutate_session",description:"Start/update/end a long running session"},{name:"query_accessKey",description:"View access keys for Blocklet Server"},{name:"mutate_accessKey",description:"Manage access keys for Blocklet Server, such as create/update/delete"},{name:"query_team",description:"View team data(members/roles/permissions) for Blocklet Server and blocklets"},{name:"mutate_team",description:"Manage team data(members/roles/permissions) for Blocklet Server and blocklets"},{name:"query_blocklets",description:"View store and installed blocklets, including blocklet runtime configuration, domains and urls"},{name:"mutate_blocklets",description:"Perform state changing actions on blocklets, such as install/upgrade/config/start/stop/remove"},{name:"query_router",description:"View sites, URL mapping and certificates in service gateway"},{name:"mutate_router",description:"Manage sites, URL mapping and certificates in service gateway"},{name:"query_certificate",description:"View certificates in service gateway"},{name:"mutate_certificate",description:"Manage certificates in service gateway"},{name:"query_notification",description:"View notifications"},{name:"mutate_notification",description:"Manage notifications, such as mark notifications as read"},{name:"query_webhook",description:"View integrations"},{name:"mutate_webhook",description:"Manage integrations"},{name:"query_blocklet",description:"View a blocklet, including blocklet runtime configuration, domains and urls"},{name:"mutate_blocklet",description:"Perform state changing actions on a blocklet, such as upgrade/config/start/stop"}]),grants:Object.freeze({[o.GUEST]:["query_blocklets","query_router","query_webhook","query_notification","query_team","query_accessKey","query_node","query_session"],[o.MEMBER]:[o.GUEST,"mutate_blocklets","mutate_router","mutate_notification","mutate_session"],[o.ADMIN]:[o.MEMBER,"mutate_team","mutate_webhook","mutate_accessKey","mutate_node","mutate_certificate"],[o.OWNER]:[n.ADMIN],[o.CI]:["query_blocklets","mutate_blocklets"],[o.CERTIFICATE]:["query_certificate","mutate_certificate"],[o.BLOCKLET_SDK]:["query_team","mutate_team","query_blocklet"],[o.BLOCKLET_OWNER]:[o.BLOCKLET_ADMIN],[o.BLOCKLET_ADMIN]:[o.BLOCKLET_MEMBER,"mutate_team","mutate_blocklet","mutate_notification"],[o.BLOCKLET_MEMBER]:["query_team","query_blocklet","query_notification"],[o.EXTERNAL_BLOCKLET_CONTROLLER]:["query_blocklets","mutate_blocklets"],[o.EXTERNAL_BLOCKLETS_MANAGER]:["query_blocklets","mutate_blocklets"]})},s=864e5,l="https://store.blocklet.dev",c="https://dev.store.blocklet.dev",d=Object.freeze({DERIVED:"derived",WALLET:"wallet"});e.exports=Object.freeze({NODE_MODES:Object.freeze({PRODUCTION:"production",DEBUG:"debug",MAINTENANCE:"maintenance",SERVERLESS:"serverless"}),DEFAULT_DESCRIPTION:"Web Interface to manage your Blocklet Server",NODE_MAINTAIN_PROGRESS:Object.freeze({SETUP:"setup",INSTALLING:"installing",VERIFYING:"verifying",RESTARTING:"restarting",CLEANUP:"cleanup",COMPLETE:"complete",ROLLBACK:"rollback"}),VC_TYPE_BLOCKLET_PURCHASE:"BlockletPurchaseCredential",VC_TYPE_NODE_PASSPORT:"ABTNodePassport",VC_TYPE_GENERAL_PASSPORT:"NFTPassport",NFT_TYPE_SERVER_OWNERSHIP:"BlockletServerOwnershipNFT",NFT_TYPE_SERVERLESS:"BlockletServerServerlessNFT",NODE_PACKAGE_NAME:"@abtnode/cli",NODE_COMMAND_NAME:"abtnode",NODE_DATA_DIR_NAME:"_abtnode",USER_AVATAR_DIR:"/.assets/avatar",USER_AVATAR_URL_PREFIX:"bn://avatar",USER_AVATAR_PATH_PREFIX:"/user/avatar",PROCESS_NAME_DAEMON:"abt-node-daemon",PROCESS_NAME_PROXY:"abt-node-db-hub",PROCESS_NAME_UPDATER:"abt-node-updater",PROCESS_NAME_SERVICE:"abt-node-service",PROCESS_NAME_ROUTER:"abt-node-router",PROCESS_NAME_LOG_ROTATE:"abt-node-log-rotate",PROCESS_NAME_EVENT_HUB:"abt-node-event-hub",NODE_REGISTER_URL:"https://install.arcblock.io/",WEB_WALLET_URL:"https://web.abtwallet.io",BLOCKLET_STORE_URL:l,BLOCKLET_STORE_URL_DEV:c,BLOCKLET_STORE_API_PREFIX:"/api",BLOCKLET_STORE_API_BLOCKLET_PREFIX:"/api/blocklets",BLOCKLET_STORE_META_PATH:"/api/store.json",BLOCKLET_STORE:{name:"Official Store",description:"ArcBlock official blocklet registry",url:l,logoUrl:"/logo.png",maintainer:"arcblock"},BLOCKLET_STORE_DEV:{name:"Dev Store",description:"ArcBlock dev registry that contains demo and example blocklets",url:c,maintainer:"arcblock",logoUrl:"/logo.png"},APP_STRUCT_VERSION:"2",DEFAULT_DID_REGISTRY:"https://registry.abtnet.io",DEFAULT_SLP_DOMAIN:"slp.abtnet.io",DEFAULT_DID_DOMAIN:"did.abtnet.io",DEFAULT_IP_DOMAIN:"*.ip.abtnet.io",DEFAULT_IP_DOMAIN_SUFFIX:"ip.abtnet.io",DEFAULT_WILDCARD_CERT_HOST:"https://releases.arcblock.io/",DEFAULT_NFT_DOMAIN_URL:"https://domain.didlabs.org/",DEFAULT_CERTIFICATE_EMAIL:"certs@arcblock.io",CONFIG_FILENAME:"config.yml",CONFIG_FILENAME_OLD:"abtnode.yml",CONFIG_FOLDER_NAME:".blocklet-server",CONFIG_FOLDER_NAME_OLD:".abtnode",EXPORTED_FOLDER_NAME:"exported_blocklet_server",StatusCode:Object.freeze({ok:0,blocklet_not_found:1,blocklet_not_purchased:2,forbidden:403,internal:500,timeout:504}),IP:new RegExp("-(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\-(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}"),DOMAIN_FOR_IP_SITE:"",DOMAIN_FOR_IP_SITE_REGEXP:"~^\\d+.\\d+.\\d+.\\d+$",DOMAIN_FOR_DEFAULT_SITE:"*",DOMAIN_FOR_INTERNAL_SITE:"127.0.0.1",NAME_FOR_WELLKNOWN_SITE:"wellknown",WELLKNOWN_PATH_PREFIX:"/.well-known",WELLKNOWN_ACME_CHALLENGE_PREFIX:"/.well-known/acme-challenge",WELLKNOWN_DID_RESOLVER_PREFIX:"/.well-known/did.json",WELLKNOWN_PING_PREFIX:"/.well-known/ping",WELLKNOWN_ANALYTICS_PREFIX:"/.well-known/analytics",WELLKNOWN_SERVICE_PATH_PREFIX:"/.well-known/service",WELLKNOWN_BLOCKLET_ADMIN_PATH:"/.well-known/service/admin",WELLKNOWN_BLOCKLET_HEALTH_PATH:"/.well-known/service/health",WELLKNOWN_BLOCKLET_LOGO_PATH:"/.well-known/service/blocklet/logo",SLOT_FOR_IP_DNS_SITE:"888-888-888-888",DEFAULT_ADMIN_PATH:"/admin",WELLKNOWN_SERVER_ADMIN_PATH:"/.well-known/server/admin",DEFAULT_SERVICE_PATH:"/.abtnode/service",DEFAULT_HTTP_PORT:80,DEFAULT_HTTPS_PORT:443,MAX_UPLOAD_FILE_SIZE:500,DEFAULT_DAEMON_PORT:8089,MAX_NGINX_WORKER_CONNECTIONS:10240,BLOCKLET_PROXY_PATH_PREFIX:"/.blocklet/proxy",BLOCKLET_SITE_GROUP_SUFFIX:".blocklet-domain-group",DAY_IN_MS:s,DAEMON_MAX_MEM_LIMIT_IN_MB:800,PROXY_MAX_MEM_LIMIT_IN_MB:800,BLOCKLET_MAX_MEM_LIMIT_IN_MB:800,CERTIFICATE_EXPIRES_OFFSET:864e6,ROUTING_RULE_TYPES:Object.freeze({NONE:"none",DAEMON:"daemon",SERVICE:"service",BLOCKLET:"blocklet",REDIRECT:"redirect",GENERAL_REWRITE:"rewrite",GENERAL_PROXY:"general_proxy",DIRECT_RESPONSE:"direct_response",COMPONENT:"component"}),ROLES:n,SERVER_ROLES:o,BLOCKLET_ROLES:r,isBlockletRole:e=>e&&r.includes(e),AUTH_CERT_TYPE:{USER:"user",OWNERSHIP_NFT:"ownership_nft",BLOCKLET_USER:"blocklet_user",BLOCKLET_CONTROLLER:"blocklet_controller"},RBAC_CONFIG:a,genPermissionName:function(e){return"".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"access","_").concat(e.replace("_","-"))},PASSPORT_STATUS:{VALID:"valid",REVOKED:"revoked"},NODE_SERVICES:t,NODE_SERVICES_PREFIX:i,DISK_ALERT_THRESHOLD_PERCENT:80,EVENTS:{NOTIFICATION_CREATE:"notification.create",NOTIFICATION_BLOCKLET_CREATE:"notification.blockletCreate",ROUTING_UPDATED:"routing.updated",NODE_UPDATED:"node.updated",NODE_MAINTAIN_PROGRESS:"node.upgrade.progress",NODE_STARTED:"node.started",NODE_STOPPED:"node.stopped",NODE_ADDED_OWNER:"node.addedOwner",NODE_RUNTIME_INFO:"node.runtimeInfo",BLOCKLETS_RUNTIME_INFO:"node.blockletsRuntimeInfo",DOMAIN_STATUS:"domain.status",CERT_ADDED:"cert.added",CERT_ISSUED:"cert.issued",CERT_UPDATED:"cert.updated",CERT_REMOVED:"cert.removed",CERT_ERROR:"cert.error",RELOAD_GATEWAY:"gateway.reload"},WHO_CAN_ACCESS:{OWNER:"owner",INVITED:"invited",ALL:"all"},WHO_CAN_ACCESS_PREFIX_ROLES:"roles:",GATEWAY_REQ_LIMIT:Object.freeze({min:10,max:100}),STORE_DETAIL_PAGE_PATH_PREFIX:"/blocklets",MAX_USER_PAGE_SIZE:100,SERVER_STATUS:{RUNNING:1,STOPPED:2,START_FROM_CRASH:3},LOG_RETAIN_IN_DAYS:60,EXPIRED_BLOCKLET_DATA_RETENTION_DAYS:30,BLOCKLET_INSTALL_TYPE:{STORE:"store",URL:"url",DEV:"dev",CREATE:"create",RESTORE:"restore"},ROUTER_CACHE_GROUPS:{blockletProxy:{minSize:"1m",maxSize:"2g",period:"30d"}},MAIN_CHAIN_ENDPOINT:"https://main.abtnetwork.io/api/",USER_TYPE:d,SERVER_CACHE_TTL:3e5,BLOCKLET_CACHE_TTL:36e5,BACKUPS:{STATUS:{PROGRESS:null,SUCCEEDED:0,FAILED:1},TIMEOUT_HOURS:6,STRATEGY:{AUTO:0,MANUAL:1},JOB:{INTERVAL:7200}},CHECK_UPDATE:{STATUS:{PROGRESS:null,SUCCEEDED:0,FAILED:1},TIMEOUT_HOURS:6,STRATEGY:{AUTO:0,MANUAL:1},JOB:{INTERVAL:7200}},MONITOR_HISTORY_LENGTH:8640,MONITOR_RECORD_INTERVAL_SEC:10,INSTALL_ACTIONS:{INSTALL:"install",INSTALL_COMPONENT:"installComponent",UPGRADE_COMPONENT:"upgradeComponent"},COPYRIGHT_OWNER:"ArcBlock",FEDERATED:{SYNC_LIMIT:3},SESSION_TOKEN_STORAGE_KEY:"login_token",REFRESH_TOKEN_STORAGE_KEY:"refresh_token"})},30278:(e,t,i)=>{var n=i(31104),o=i(43676);e.exports=function(e,t){return e&&e.length?o(e,n(t,2)):[]}},94166:function(e,t,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__rest||function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]])}return i};t.__esModule=!0;var r=i(5057),a=i(18294),s=i(49266);t.default=function(e){var t=e.delay,i=void 0===t?0:t,l=e.type,c=void 0===l?"text":l,d=e.color,u=void 0===d?"#CDCDCD":d,p=e.rows,m=void 0===p?3:p,b=e.ready,f=e.firstLaunchOnly,E=e.children,w=e.className,h=e.showLoadingAnimation,g=e.customPlaceholder,_=o(e,["delay","type","color","rows","ready","firstLaunchOnly","children","className","showLoadingAnimation","customPlaceholder"]),v=r.useState(b),T=v[0],O=v[1],S=r.useRef(null);return r.useEffect((function(){f||!T||b?b&&(S.current&&window.clearTimeout(S.current),T||O(!0)):i&&i>0?S.current=window.setTimeout((function(){O(!1)}),i):O(!1)}),[f,T,b,i]),r.useEffect((function(){return function(){S.current&&window.clearTimeout(S.current)}}),[]),T?E:function(){var e=h?s.joinClassNames("show-loading-animation",w):w;if(g&&r.isValidElement(g)){var t=s.joinClassNames(g.props.className,e);return r.cloneElement(g,{className:t})}if(g)return g;var i=a[c];return r.createElement(i,n({},_,{color:u,rows:m,className:e}))}()}},22256:(e,t,i)=>{"use strict";var n=i(94166);t.Z=n.default},98392:function(e,t,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};t.__esModule=!0;var o=i(5057),r=i(49354),a=i(12208),s=i(49266),l={display:"flex"};t.default=function(e){var t=e.className,i=e.style,c=e.color,d=e.rows;return o.createElement("div",{className:s.joinClassNames("media-block",t),style:n(n({},l),i)},o.createElement(a.default,{color:c,style:{minHeight:55,width:55,minWidth:55,marginRight:10}}),o.createElement(r.default,{color:c,rows:d}))}},16102:function(e,t,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};t.__esModule=!0;var o=i(5057),r=i(49266);t.default=function(e){var t=e.className,i=e.style,a={backgroundColor:e.color,width:"100%",height:"100%",marginRight:10};return o.createElement("div",{className:r.joinClassNames("rect-shape",t),style:n(n({},a),i)})}},12208:function(e,t,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};t.__esModule=!0;var o=i(5057),r=i(49266);t.default=function(e){var t=e.className,i=e.style,a={backgroundColor:e.color,borderRadius:"500rem",width:"100%",height:"100%"};return o.createElement("div",{className:r.joinClassNames("round-shape",t),style:n(n({},a),i)})}},49354:function(e,t,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};t.__esModule=!0;var o=i(5057),r=i(13672),a=i(49266),s={width:"100%"},l=[97,100,94,90,98,95,98,40];t.default=function(e){var t=e.rows,i=e.lineSpacing,c=e.color,d=e.style,u=e.className,p=e.widths,m=void 0===p?l:p,b=function(e){return{maxHeight:100/(2*t-1)+"%",width:m[(e+m.length)%m.length]+"%"}};return o.createElement("div",{className:a.joinClassNames("text-block",u),style:n(n({},s),d)},Array.apply(null,Array(t)).map((function(e,t){return o.createElement(r.default,{color:c,style:b(t),lineSpacing:0!==t?i:0,key:t})})))}},13672:function(e,t,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};t.__esModule=!0;var o=i(5057),r=i(49266);t.default=function(e){var t=e.className,i=e.maxHeight,a=e.color,s=e.lineSpacing,l=void 0===s?"0.7em":s,c=e.style,d={maxHeight:i,width:"100%",height:"1em",backgroundColor:a,marginTop:l};return o.createElement("div",{className:r.joinClassNames("text-row",t),style:n(n({},d),c)})}},18294:(e,t,i)=>{"use strict";t.__esModule=!0,t.media=t.text=t.rect=t.round=t.textRow=t.MediaBlock=t.TextBlock=t.RectShape=t.RoundShape=t.TextRow=void 0;var n=i(13672);t.TextRow=n.default;var o=i(12208);t.RoundShape=o.default;var r=i(16102);t.RectShape=r.default;var a=i(49354);t.TextBlock=a.default;var s=i(98392);t.MediaBlock=s.default,t.textRow=n.default,t.round=o.default,t.rect=r.default,t.text=a.default,t.media=s.default},49266:(e,t)=>{"use strict";t.__esModule=!0,t.joinClassNames=void 0,t.joinClassNames=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return e})).join(" ")}},35833:function(e,t,i){var n;!function(o,r){"use strict";var a="function",s="undefined",l="object",c="string",d="major",u="model",p="name",m="type",b="vendor",f="version",E="architecture",w="console",h="mobile",g="tablet",_="smarttv",v="wearable",T="embedded",O="Amazon",S="Apple",x="ASUS",y="BlackBerry",R="Browser",k="Chrome",I="Firefox",N="Google",A="Huawei",L="LG",C="Microsoft",P="Motorola",D="Opera",j="Samsung",M="Sharp",B="Sony",U="Xiaomi",F="Zebra",K="Facebook",Z="Chromium OS",z="Mac OS",H=function(e){for(var t={},i=0;i<e.length;i++)t[e[i].toUpperCase()]=e[i];return t},W=function(e,t){return typeof e===c&&-1!==q(t).indexOf(q(e))},q=function(e){return e.toLowerCase()},G=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,500)},V=function(e,t){for(var i,n,o,s,c,d,u=0;u<t.length&&!c;){var p=t[u],m=t[u+1];for(i=n=0;i<p.length&&!c&&p[i];)if(c=p[i++].exec(e))for(o=0;o<m.length;o++)d=c[++n],typeof(s=m[o])===l&&s.length>0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,d):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=d?d.replace(s[1],s[2]):r:this[s[0]]=d?s[1].call(this,d,s[2]):r:4===s.length&&(this[s[0]]=d?s[3].call(this,d.replace(s[1],s[2])):r):this[s]=d||r;u+=2}},Y=function(e,t){for(var i in t)if(typeof t[i]===l&&t[i].length>0){for(var n=0;n<t[i].length;n++)if(W(t[i][n],e))return"?"===i?r:i}else if(W(t[i],e))return"?"===i?r:i;return e},X={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},J={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[f,[p,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[f,[p,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[p,f],[/opios[\/ ]+([\w\.]+)/i],[f,[p,D+" Mini"]],[/\bopr\/([\w\.]+)/i],[f,[p,D]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[f,[p,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[p,f],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[f,[p,"UC"+R]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[f,[p,"WeChat"]],[/konqueror\/([\w\.]+)/i],[f,[p,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[f,[p,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[f,[p,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[f,[p,"Smart Lenovo "+R]],[/(avast|avg)\/([\w\.]+)/i],[[p,/(.+)/,"$1 Secure "+R],f],[/\bfocus\/([\w\.]+)/i],[f,[p,I+" Focus"]],[/\bopt\/([\w\.]+)/i],[f,[p,D+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[f,[p,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[f,[p,"Dolphin"]],[/coast\/([\w\.]+)/i],[f,[p,D+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[f,[p,"MIUI "+R]],[/fxios\/([-\w\.]+)/i],[f,[p,I]],[/\bqihu|(qi?ho?o?|360)browser/i],[[p,"360 "+R]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[p,/(.+)/,"$1 "+R],f],[/samsungbrowser\/([\w\.]+)/i],[f,[p,j+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[p,/_/g," "],f],[/metasr[\/ ]?([\d\.]+)/i],[f,[p,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[p,"Sogou Mobile"],f],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[p,f],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[p],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[p,K],f],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[p,f],[/\bgsa\/([\w\.]+) .*safari\//i],[f,[p,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[f,[p,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[f,[p,k+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[p,k+" WebView"],f],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[f,[p,"Android "+R]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[p,f],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[f,[p,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[f,p],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[p,[f,Y,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[p,f],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[p,"Netscape"],f],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[f,[p,I+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[p,f],[/(cobalt)\/([\w\.]+)/i],[p,[f,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[E,"amd64"]],[/(ia32(?=;))/i],[[E,q]],[/((?:i[346]|x)86)[;\)]/i],[[E,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[E,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[E,"armhf"]],[/windows (ce|mobile); ppc;/i],[[E,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[E,/ower/,"",q]],[/(sun4\w)[;\)]/i],[[E,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[E,q]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[b,j],[m,g]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[u,[b,j],[m,h]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[b,S],[m,h]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[b,S],[m,g]],[/(macintosh);/i],[u,[b,S]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[b,M],[m,h]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[b,A],[m,g]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[b,A],[m,h]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[u,/_/g," "],[b,U],[m,h]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[b,U],[m,g]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[b,"OPPO"],[m,h]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[b,"Vivo"],[m,h]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[u,[b,"Realme"],[m,h]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[b,P],[m,h]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[b,P],[m,g]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[b,L],[m,g]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[b,L],[m,h]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[b,"Lenovo"],[m,g]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[b,"Nokia"],[m,h]],[/(pixel c)\b/i],[u,[b,N],[m,g]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[b,N],[m,h]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[b,B],[m,h]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[b,B],[m,g]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[b,"OnePlus"],[m,h]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[b,O],[m,g]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[b,O],[m,h]],[/(playbook);[-\w\),; ]+(rim)/i],[u,b,[m,g]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[b,y],[m,h]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[b,x],[m,g]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[b,x],[m,h]],[/(nexus 9)/i],[u,[b,"HTC"],[m,g]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[b,[u,/_/g," "],[m,h]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[b,"Acer"],[m,g]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[b,"Meizu"],[m,h]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[u,[b,"Ulefone"],[m,h]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[b,u,[m,h]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[b,u,[m,g]],[/(surface duo)/i],[u,[b,C],[m,g]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[b,"Fairphone"],[m,h]],[/(u304aa)/i],[u,[b,"AT&T"],[m,h]],[/\bsie-(\w*)/i],[u,[b,"Siemens"],[m,h]],[/\b(rct\w+) b/i],[u,[b,"RCA"],[m,g]],[/\b(venue[\d ]{2,7}) b/i],[u,[b,"Dell"],[m,g]],[/\b(q(?:mv|ta)\w+) b/i],[u,[b,"Verizon"],[m,g]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[b,"Barnes & Noble"],[m,g]],[/\b(tm\d{3}\w+) b/i],[u,[b,"NuVision"],[m,g]],[/\b(k88) b/i],[u,[b,"ZTE"],[m,g]],[/\b(nx\d{3}j) b/i],[u,[b,"ZTE"],[m,h]],[/\b(gen\d{3}) b.+49h/i],[u,[b,"Swiss"],[m,h]],[/\b(zur\d{3}) b/i],[u,[b,"Swiss"],[m,g]],[/\b((zeki)?tb.*\b) b/i],[u,[b,"Zeki"],[m,g]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[b,"Dragon Touch"],u,[m,g]],[/\b(ns-?\w{0,9}) b/i],[u,[b,"Insignia"],[m,g]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[b,"NextBook"],[m,g]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[b,"Voice"],u,[m,h]],[/\b(lvtel\-)?(v1[12]) b/i],[[b,"LvTel"],u,[m,h]],[/\b(ph-1) /i],[u,[b,"Essential"],[m,h]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[b,"Envizen"],[m,g]],[/\b(trio[-\w\. ]+) b/i],[u,[b,"MachSpeed"],[m,g]],[/\btu_(1491) b/i],[u,[b,"Rotor"],[m,g]],[/(shield[\w ]+) b/i],[u,[b,"Nvidia"],[m,g]],[/(sprint) (\w+)/i],[b,u,[m,h]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[b,C],[m,h]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[b,F],[m,g]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[b,F],[m,h]],[/smart-tv.+(samsung)/i],[b,[m,_]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[b,j],[m,_]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[b,L],[m,_]],[/(apple) ?tv/i],[b,[u,S+" TV"],[m,_]],[/crkey/i],[[u,k+"cast"],[b,N],[m,_]],[/droid.+aft(\w+)( bui|\))/i],[u,[b,O],[m,_]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[b,M],[m,_]],[/(bravia[\w ]+)( bui|\))/i],[u,[b,B],[m,_]],[/(mitv-\w{5}) bui/i],[u,[b,U],[m,_]],[/Hbbtv.*(technisat) (.*);/i],[b,u,[m,_]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[b,G],[u,G],[m,_]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[m,_]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[b,u,[m,w]],[/droid.+; (shield) bui/i],[u,[b,"Nvidia"],[m,w]],[/(playstation [345portablevi]+)/i],[u,[b,B],[m,w]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[b,C],[m,w]],[/((pebble))app/i],[b,u,[m,v]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[b,S],[m,v]],[/droid.+; (glass) \d/i],[u,[b,N],[m,v]],[/droid.+; (wt63?0{2,3})\)/i],[u,[b,F],[m,v]],[/(quest( 2| pro)?)/i],[u,[b,K],[m,v]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[b,[m,T]],[/(aeobc)\b/i],[u,[b,O],[m,T]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[u,[m,h]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[m,g]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[m,g]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[m,h]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[b,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[f,[p,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[f,[p,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[p,f],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[f,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,f],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[p,[f,Y,X]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[f,Y,X],[p,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[f,/_/g,"."],[p,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[p,z],[f,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[f,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[p,f],[/\(bb(10);/i],[f,[p,y]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[f,[p,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[f,[p,I+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[f,[p,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[f,[p,"watchOS"]],[/crkey\/([\d\.]+)/i],[f,[p,k+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[p,Z],f],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[p,f],[/(sunos) ?([\w\.\d]*)/i],[[p,"Solaris"],f],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[p,f]]},$=function(e,t){if(typeof e===l&&(t=e,e=r),!(this instanceof $))return new $(e,t).getResult();var i=typeof o!==s&&o.navigator?o.navigator:r,n=e||(i&&i.userAgent?i.userAgent:""),w=i&&i.userAgentData?i.userAgentData:r,_=t?function(e,t){var i={};for(var n in e)t[n]&&t[n].length%2===0?i[n]=t[n].concat(e[n]):i[n]=e[n];return i}(J,t):J,v=i&&i.userAgent==n;return this.getBrowser=function(){var e,t={};return t[p]=r,t[f]=r,V.call(t,n,_.browser),t[d]=typeof(e=t[f])===c?e.replace(/[^\d\.]/g,"").split(".")[0]:r,v&&i&&i.brave&&typeof i.brave.isBrave==a&&(t[p]="Brave"),t},this.getCPU=function(){var e={};return e[E]=r,V.call(e,n,_.cpu),e},this.getDevice=function(){var e={};return e[b]=r,e[u]=r,e[m]=r,V.call(e,n,_.device),v&&!e[m]&&w&&w.mobile&&(e[m]=h),v&&"Macintosh"==e[u]&&i&&typeof i.standalone!==s&&i.maxTouchPoints&&i.maxTouchPoints>2&&(e[u]="iPad",e[m]=g),e},this.getEngine=function(){var e={};return e[p]=r,e[f]=r,V.call(e,n,_.engine),e},this.getOS=function(){var e={};return e[p]=r,e[f]=r,V.call(e,n,_.os),v&&!e[p]&&w&&"Unknown"!=w.platform&&(e[p]=w.platform.replace(/chrome os/i,Z).replace(/macos/i,z)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===c&&e.length>500?G(e,500):e,this},this.setUA(n),this};$.VERSION="1.0.37",$.BROWSER=H([p,f,d]),$.CPU=H([E]),$.DEVICE=H([u,b,m,w,h,_,g,v,T]),$.ENGINE=$.OS=H([p,f]),typeof t!==s?(e.exports&&(t=e.exports=$),t.UAParser=$):i.amdO?(n=function(){return $}.call(t,i,t,e))===r||(e.exports=n):typeof o!==s&&(o.UAParser=$);var Q=typeof o!==s&&(o.jQuery||o.Zepto);if(Q&&!Q.ua){var ee=new $;Q.ua=ee.getResult(),Q.ua.get=function(){return ee.getUA()},Q.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var i in t)Q.ua[i]=t[i]}}}("object"===typeof window?window:this)}}]);