@abtnode/webapp 1.16.25-beta-be3a37f4 → 1.16.25-beta-cfcab4af

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.
Files changed (94) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/build/asset-manifest.json +53 -54
  4. package/build/index.html +1 -1
  5. package/build/service-worker.js +1 -1
  6. package/build/static/css/2677.bceba133.chunk.css +1 -0
  7. package/build/static/js/{1059.6e162d98.chunk.js → 1059.ca2cbdc1.chunk.js} +1 -1
  8. package/build/static/js/{1575.aa6c5f63.chunk.js → 1575.898bc099.chunk.js} +1 -1
  9. package/build/static/js/{1685.79e259fc.chunk.js → 1685.8aa7ded2.chunk.js} +2 -2
  10. package/build/static/js/{1846.b13a01b8.chunk.js → 1846.8091d9b8.chunk.js} +1 -1
  11. package/build/static/js/{2019.2558fef7.chunk.js → 2019.17ea2088.chunk.js} +1 -1
  12. package/build/static/js/2098.6c45c749.chunk.js +1 -0
  13. package/build/static/js/2168.af9a9b9f.chunk.js +1 -0
  14. package/build/static/js/{233.87becf3a.chunk.js → 233.3215dc68.chunk.js} +1 -1
  15. package/build/static/js/2362.5f9c8ab2.chunk.js +1 -0
  16. package/build/static/js/2677.491ccc30.chunk.js +2 -0
  17. package/build/static/js/{2746.6d8ac071.chunk.js → 2746.b74c83cd.chunk.js} +1 -1
  18. package/build/static/js/{3389.52e7ac5c.chunk.js → 3389.83a58684.chunk.js} +1 -1
  19. package/build/static/js/{3803.15148b1f.chunk.js → 3803.fb647887.chunk.js} +1 -1
  20. package/build/static/js/{3930.787c608b.chunk.js → 3930.6b76ec36.chunk.js} +1 -1
  21. package/build/static/js/406.e384bf0e.chunk.js +1 -0
  22. package/build/static/js/{4423.da2620a9.chunk.js → 4423.2dd278be.chunk.js} +1 -1
  23. package/build/static/js/{4465.0cc40dce.chunk.js → 4465.05c1536b.chunk.js} +1 -1
  24. package/build/static/js/{4509.f22f0238.chunk.js → 4509.391ff49f.chunk.js} +2 -2
  25. package/build/static/js/4549.59d35b13.chunk.js +1 -0
  26. package/build/static/js/{4550.af6850d6.chunk.js → 4550.6398038b.chunk.js} +1 -1
  27. package/build/static/js/4775.bc1f9bc3.chunk.js +1 -0
  28. package/build/static/js/4852.5661d7a7.chunk.js +1 -0
  29. package/build/static/js/{4906.999b88c8.chunk.js → 4906.0bf02a4f.chunk.js} +1 -1
  30. package/build/static/js/506.7795a2df.chunk.js +1 -0
  31. package/build/static/js/{5526.6683805e.chunk.js → 5526.2e5b0dfe.chunk.js} +2 -2
  32. package/build/static/js/5672.6b3a406d.chunk.js +1 -0
  33. package/build/static/js/{5748.a89331a1.chunk.js → 5748.07d72ea2.chunk.js} +1 -1
  34. package/build/static/js/5973.219778da.chunk.js +1 -0
  35. package/build/static/js/6230.f51ec934.chunk.js +1 -0
  36. package/build/static/js/{6472.2c5056ae.chunk.js → 6472.b1c703d4.chunk.js} +2 -2
  37. package/build/static/js/6511.6b799f59.chunk.js +1 -0
  38. package/build/static/js/6743.9db2d48f.chunk.js +2 -0
  39. package/build/static/js/{6906.73c16873.chunk.js → 6906.8e78a1d1.chunk.js} +1 -1
  40. package/build/static/js/6931.f7a04871.chunk.js +1 -0
  41. package/build/static/js/{6944.50b5e54e.chunk.js → 6944.9098ce0d.chunk.js} +1 -1
  42. package/build/static/js/7020.b16a6be6.chunk.js +1 -0
  43. package/build/static/js/7022.32cbb1ae.chunk.js +1 -0
  44. package/build/static/js/7718.b9fb672b.chunk.js +1 -0
  45. package/build/static/js/7913.f687f9d2.chunk.js +1 -0
  46. package/build/static/js/{8170.7d39c62a.chunk.js → 8170.a05bcf8e.chunk.js} +1 -1
  47. package/build/static/js/8427.4eeb503c.chunk.js +2 -0
  48. package/build/static/js/8537.a2ae5cb3.chunk.js +1 -0
  49. package/build/static/js/{8590.fcb1c27a.chunk.js → 8590.871b6ecb.chunk.js} +1 -1
  50. package/build/static/js/{8986.2f7c6ea5.chunk.js → 8986.bf90d91b.chunk.js} +1 -1
  51. package/build/static/js/9085.2eba86ab.chunk.js +1 -0
  52. package/build/static/js/{9586.dab3f0ad.chunk.js → 9586.a2caaa51.chunk.js} +1 -1
  53. package/build/static/js/9590.3c9e0821.chunk.js +2 -0
  54. package/build/static/js/{9662.2281f1d0.chunk.js → 9662.604d1362.chunk.js} +1 -1
  55. package/build/static/js/9818.66fa52f8.chunk.js +2 -0
  56. package/build/static/js/main.42e55f0d.js +2 -0
  57. package/package.json +1 -1
  58. package/build/static/css/7657.cc1ab277.chunk.css +0 -1
  59. package/build/static/js/2098.6efa542b.chunk.js +0 -1
  60. package/build/static/js/2168.4aa1c106.chunk.js +0 -1
  61. package/build/static/js/2362.5f1e7e82.chunk.js +0 -1
  62. package/build/static/js/318.ecb043b8.chunk.js +0 -2
  63. package/build/static/js/406.9e49d99c.chunk.js +0 -1
  64. package/build/static/js/4296.b3d15061.chunk.js +0 -1
  65. package/build/static/js/4549.06c2fd1f.chunk.js +0 -1
  66. package/build/static/js/4775.eecb94db.chunk.js +0 -1
  67. package/build/static/js/4852.5da43bce.chunk.js +0 -1
  68. package/build/static/js/506.e1874511.chunk.js +0 -1
  69. package/build/static/js/5973.b1923a12.chunk.js +0 -1
  70. package/build/static/js/6230.16addc8e.chunk.js +0 -1
  71. package/build/static/js/6511.7c767ea5.chunk.js +0 -1
  72. package/build/static/js/6706.134ef362.chunk.js +0 -2
  73. package/build/static/js/6743.e0b3dc71.chunk.js +0 -2
  74. package/build/static/js/6931.61297d93.chunk.js +0 -1
  75. package/build/static/js/7020.b9df1e44.chunk.js +0 -1
  76. package/build/static/js/7022.242a07f7.chunk.js +0 -1
  77. package/build/static/js/7657.aed23f30.chunk.js +0 -2
  78. package/build/static/js/7718.301ab3f8.chunk.js +0 -1
  79. package/build/static/js/7913.3940464c.chunk.js +0 -1
  80. package/build/static/js/8537.dc816763.chunk.js +0 -1
  81. package/build/static/js/9085.970be618.chunk.js +0 -1
  82. package/build/static/js/9132.43a3ec2a.chunk.js +0 -1
  83. package/build/static/js/9590.3877fd54.chunk.js +0 -2
  84. package/build/static/js/main.e2907b63.js +0 -2
  85. /package/build/static/js/{1685.79e259fc.chunk.js.LICENSE.txt → 1685.8aa7ded2.chunk.js.LICENSE.txt} +0 -0
  86. /package/build/static/js/{7657.aed23f30.chunk.js.LICENSE.txt → 2677.491ccc30.chunk.js.LICENSE.txt} +0 -0
  87. /package/build/static/js/{318.ecb043b8.chunk.js.LICENSE.txt → 4509.391ff49f.chunk.js.LICENSE.txt} +0 -0
  88. /package/build/static/js/{5526.6683805e.chunk.js.LICENSE.txt → 5526.2e5b0dfe.chunk.js.LICENSE.txt} +0 -0
  89. /package/build/static/js/{6472.2c5056ae.chunk.js.LICENSE.txt → 6472.b1c703d4.chunk.js.LICENSE.txt} +0 -0
  90. /package/build/static/js/{6743.e0b3dc71.chunk.js.LICENSE.txt → 6743.9db2d48f.chunk.js.LICENSE.txt} +0 -0
  91. /package/build/static/js/{4509.f22f0238.chunk.js.LICENSE.txt → 8427.4eeb503c.chunk.js.LICENSE.txt} +0 -0
  92. /package/build/static/js/{9590.3877fd54.chunk.js.LICENSE.txt → 9590.3c9e0821.chunk.js.LICENSE.txt} +0 -0
  93. /package/build/static/js/{6706.134ef362.chunk.js.LICENSE.txt → 9818.66fa52f8.chunk.js.LICENSE.txt} +0 -0
  94. /package/build/static/js/{main.e2907b63.js.LICENSE.txt → main.42e55f0d.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[9662],{59662:(t,e,a)=>{a.d(e,{Z:()=>q});var o=a(7896),n=a(5057),r=a(31461),i=a(9978),s=a(82261),c=a(42908),l=a(46849),d=a(96036);function p(t){return(0,d.ZP)("MuiPagination",t)}(0,l.Z)("MuiPagination",["root","ul","outlined","text"]);var u=a(83026);const g=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];var v=a(96295);function m(t){return(0,d.ZP)("MuiPaginationItem",t)}const h=(0,l.Z)("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]);var b=a(96366),x=a(66230),y=a(6285),f=a(96646),Z=a(54665),C=a(57471),P=a(96266);const w=(0,C.Z)((0,P.jsx)("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),z=(0,C.Z)((0,P.jsx)("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext");var k=a(62773);const N=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],R=(t,e)=>{const{ownerState:a}=t;return[e.root,e[a.variant],e["size".concat((0,y.Z)(a.size))],"text"===a.variant&&e["text".concat((0,y.Z)(a.color))],"outlined"===a.variant&&e["outlined".concat((0,y.Z)(a.color))],"rounded"===a.shape&&e.rounded,"page"===a.type&&e.page,("start-ellipsis"===a.type||"end-ellipsis"===a.type)&&e.ellipsis,("previous"===a.type||"next"===a.type)&&e.previousNext,("first"===a.type||"last"===a.type)&&e.firstLast]},B=(0,k.ZP)("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:R})((t=>{let{theme:e,ownerState:a}=t;return(0,o.Z)({},e.typography.body2,{borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",["&.".concat(h.disabled)]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"small"===a.size&&{minWidth:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===a.size&&{minWidth:40,borderRadius:20,padding:"0 10px",fontSize:e.typography.pxToRem(15)})})),S=(0,k.ZP)(x.Z,{name:"MuiPaginationItem",slot:"Root",overridesResolver:R})((t=>{let{theme:e,ownerState:a}=t;return(0,o.Z)({},e.typography.body2,{borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,["&.".concat(h.focusVisible)]:{backgroundColor:(e.vars||e).palette.action.focus},["&.".concat(h.disabled)]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(h.selected)]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.action.selectedChannel," / calc(").concat(e.vars.palette.action.selectedOpacity," + ").concat(e.vars.palette.action.hoverOpacity,"))"):(0,v.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},["&.".concat(h.focusVisible)]:{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.action.selectedChannel," / calc(").concat(e.vars.palette.action.selectedOpacity," + ").concat(e.vars.palette.action.focusOpacity,"))"):(0,v.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},["&.".concat(h.disabled)]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}}},"small"===a.size&&{minWidth:26,height:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===a.size&&{minWidth:40,height:40,borderRadius:20,padding:"0 10px",fontSize:e.typography.pxToRem(15)},"rounded"===a.shape&&{borderRadius:(e.vars||e).shape.borderRadius})}),(t=>{let{theme:e,ownerState:a}=t;return(0,o.Z)({},"text"===a.variant&&{["&.".concat(h.selected)]:(0,o.Z)({},"standard"!==a.color&&{color:(e.vars||e).palette[a.color].contrastText,backgroundColor:(e.vars||e).palette[a.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[a.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[a.color].main}},["&.".concat(h.focusVisible)]:{backgroundColor:(e.vars||e).palette[a.color].dark}},{["&.".concat(h.disabled)]:{color:(e.vars||e).palette.action.disabled}})},"outlined"===a.variant&&{border:e.vars?"1px solid rgba(".concat(e.vars.palette.common.onBackgroundChannel," / 0.23)"):"1px solid ".concat("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),["&.".concat(h.selected)]:(0,o.Z)({},"standard"!==a.color&&{color:(e.vars||e).palette[a.color].main,border:"1px solid ".concat(e.vars?"rgba(".concat(e.vars.palette[a.color].mainChannel," / 0.5)"):(0,v.Fq)(e.palette[a.color].main,.5)),backgroundColor:e.vars?"rgba(".concat(e.vars.palette[a.color].mainChannel," / ").concat(e.vars.palette.action.activatedOpacity,")"):(0,v.Fq)(e.palette[a.color].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?"rgba(".concat(e.vars.palette[a.color].mainChannel," / calc(").concat(e.vars.palette.action.activatedOpacity," + ").concat(e.vars.palette.action.focusOpacity,"))"):(0,v.Fq)(e.palette[a.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(h.focusVisible)]:{backgroundColor:e.vars?"rgba(".concat(e.vars.palette[a.color].mainChannel," / calc(").concat(e.vars.palette.action.activatedOpacity," + ").concat(e.vars.palette.action.focusOpacity,"))"):(0,v.Fq)(e.palette[a.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{["&.".concat(h.disabled)]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})})),O=(0,k.ZP)("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(t,e)=>e.icon})((t=>{let{theme:e,ownerState:a}=t;return(0,o.Z)({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},"small"===a.size&&{fontSize:e.typography.pxToRem(18)},"large"===a.size&&{fontSize:e.typography.pxToRem(22)})})),M=n.forwardRef((function(t,e){const a=(0,c.Z)({props:t,name:"MuiPaginationItem"}),{className:n,color:l="standard",component:d,components:p={},disabled:u=!1,page:g,selected:v=!1,shape:h="circular",size:x="medium",slots:C={},type:k="page",variant:R="text"}=a,M=(0,r.Z)(a,N),L=(0,o.Z)({},a,{color:l,disabled:u,selected:v,shape:h,size:x,type:k,variant:R}),I=(0,b.Z)(),j=(t=>{const{classes:e,color:a,disabled:o,selected:n,size:r,shape:i,type:c,variant:l}=t,d={root:["root","size".concat((0,y.Z)(r)),l,i,"standard"!==a&&"color".concat((0,y.Z)(a)),"standard"!==a&&"".concat(l).concat((0,y.Z)(a)),o&&"disabled",n&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[c]],icon:["icon"]};return(0,s.Z)(d,m,e)})(L),F=("rtl"===I.direction?{previous:C.next||p.next||z,next:C.previous||p.previous||w,last:C.first||p.first||f.Z,first:C.last||p.last||Z.Z}:{previous:C.previous||p.previous||w,next:C.next||p.next||z,first:C.first||p.first||f.Z,last:C.last||p.last||Z.Z})[k];return"start-ellipsis"===k||"end-ellipsis"===k?(0,P.jsx)(B,{ref:e,ownerState:L,className:(0,i.Z)(j.root,n),children:"\u2026"}):(0,P.jsxs)(S,(0,o.Z)({ref:e,ownerState:L,component:d,disabled:u,className:(0,i.Z)(j.root,n)},M,{children:["page"===k&&g,F?(0,P.jsx)(O,{as:F,ownerState:L,className:j.icon}):null]}))})),L=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],I=(0,k.ZP)("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:a}=t;return[e.root,e[a.variant]]}})({}),j=(0,k.ZP)("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(t,e)=>e.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function F(t,e,a){return"page"===t?"".concat(a?"":"Go to ","page ").concat(e):"Go to ".concat(t," page")}const T=n.forwardRef((function(t,e){const a=(0,c.Z)({props:t,name:"MuiPagination"}),{boundaryCount:n=1,className:l,color:d="standard",count:v=1,defaultPage:m=1,disabled:h=!1,getItemAriaLabel:b=F,hideNextButton:x=!1,hidePrevButton:y=!1,renderItem:f=(t=>(0,P.jsx)(M,(0,o.Z)({},t))),shape:Z="circular",showFirstButton:C=!1,showLastButton:w=!1,siblingCount:z=1,size:k="medium",variant:N="text"}=a,R=(0,r.Z)(a,L),{items:B}=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{boundaryCount:e=1,componentName:a="usePagination",count:n=1,defaultPage:i=1,disabled:s=!1,hideNextButton:c=!1,hidePrevButton:l=!1,onChange:d,page:p,showFirstButton:v=!1,showLastButton:m=!1,siblingCount:h=1}=t,b=(0,r.Z)(t,g),[x,y]=(0,u.Z)({controlled:p,default:i,name:a,state:"page"}),f=(t,e)=>{p||y(e),d&&d(t,e)},Z=(t,e)=>{const a=e-t+1;return Array.from({length:a},((e,a)=>t+a))},C=Z(1,Math.min(e,n)),P=Z(Math.max(n-e+1,e+1),n),w=Math.max(Math.min(x-h,n-e-2*h-1),e+2),z=Math.min(Math.max(x+h,e+2*h+2),P.length>0?P[0]-2:n-1),k=[...v?["first"]:[],...l?[]:["previous"],...C,...w>e+2?["start-ellipsis"]:e+1<n-e?[e+1]:[],...Z(w,z),...z<n-e-1?["end-ellipsis"]:n-e>e?[n-e]:[],...P,...c?[]:["next"],...m?["last"]:[]],N=t=>{switch(t){case"first":return 1;case"previous":return x-1;case"next":return x+1;case"last":return n;default:return null}},R=k.map((t=>"number"===typeof t?{onClick:e=>{f(e,t)},type:"page",page:t,selected:t===x,disabled:s,"aria-current":t===x?"true":void 0}:{onClick:e=>{f(e,N(t))},type:t,page:N(t),selected:!1,disabled:s||-1===t.indexOf("ellipsis")&&("next"===t||"last"===t?x>=n:x<=1)}));return(0,o.Z)({items:R},b)}((0,o.Z)({},a,{componentName:"Pagination"})),S=(0,o.Z)({},a,{boundaryCount:n,color:d,count:v,defaultPage:m,disabled:h,getItemAriaLabel:b,hideNextButton:x,hidePrevButton:y,renderItem:f,shape:Z,showFirstButton:C,showLastButton:w,siblingCount:z,size:k,variant:N}),O=(t=>{const{classes:e,variant:a}=t,o={root:["root",a],ul:["ul"]};return(0,s.Z)(o,p,e)})(S);return(0,P.jsx)(I,(0,o.Z)({"aria-label":"pagination navigation",className:(0,i.Z)(O.root,l),ownerState:S,ref:e},R,{children:(0,P.jsx)(j,{className:O.ul,ownerState:S,children:B.map(((t,e)=>(0,P.jsx)("li",{children:f((0,o.Z)({},t,{color:d,"aria-label":b(t.type,t.page,t.selected),shape:Z,size:k,variant:N}))},e)))})}))}));let W=!1;const q=n.forwardRef((function(t,e){return W||(console.warn(["MUI: The Pagination component was moved from the lab to the core.","","You should use `import { Pagination } from '@mui/material'`","or `import Pagination from '@mui/material/Pagination'`"].join("\n")),W=!0),(0,P.jsx)(T,(0,o.Z)({ref:e},t))}))}}]);
1
+ "use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[9662],{59662:(t,e,a)=>{a.d(e,{Z:()=>q});var o=a(7896),n=a(5057),r=a(31461),i=a(9978),s=a(82261),c=a(42908),l=a(46849),d=a(96036);function p(t){return(0,d.ZP)("MuiPagination",t)}(0,l.Z)("MuiPagination",["root","ul","outlined","text"]);var u=a(83026);const g=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];var v=a(96295),m=a(13804);function h(t){return(0,d.ZP)("MuiPaginationItem",t)}const b=(0,l.Z)("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]);var x=a(66230),y=a(6285),f=a(96646),Z=a(54665),C=a(57471),P=a(96266);const w=(0,C.Z)((0,P.jsx)("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),z=(0,C.Z)((0,P.jsx)("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext");var k=a(62773);const N=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],R=(t,e)=>{const{ownerState:a}=t;return[e.root,e[a.variant],e["size".concat((0,y.Z)(a.size))],"text"===a.variant&&e["text".concat((0,y.Z)(a.color))],"outlined"===a.variant&&e["outlined".concat((0,y.Z)(a.color))],"rounded"===a.shape&&e.rounded,"page"===a.type&&e.page,("start-ellipsis"===a.type||"end-ellipsis"===a.type)&&e.ellipsis,("previous"===a.type||"next"===a.type)&&e.previousNext,("first"===a.type||"last"===a.type)&&e.firstLast]},B=(0,k.ZP)("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:R})((t=>{let{theme:e,ownerState:a}=t;return(0,o.Z)({},e.typography.body2,{borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",["&.".concat(b.disabled)]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"small"===a.size&&{minWidth:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===a.size&&{minWidth:40,borderRadius:20,padding:"0 10px",fontSize:e.typography.pxToRem(15)})})),S=(0,k.ZP)(x.Z,{name:"MuiPaginationItem",slot:"Root",overridesResolver:R})((t=>{let{theme:e,ownerState:a}=t;return(0,o.Z)({},e.typography.body2,{borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,["&.".concat(b.focusVisible)]:{backgroundColor:(e.vars||e).palette.action.focus},["&.".concat(b.disabled)]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(b.selected)]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.action.selectedChannel," / calc(").concat(e.vars.palette.action.selectedOpacity," + ").concat(e.vars.palette.action.hoverOpacity,"))"):(0,v.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},["&.".concat(b.focusVisible)]:{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.action.selectedChannel," / calc(").concat(e.vars.palette.action.selectedOpacity," + ").concat(e.vars.palette.action.focusOpacity,"))"):(0,v.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},["&.".concat(b.disabled)]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}}},"small"===a.size&&{minWidth:26,height:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===a.size&&{minWidth:40,height:40,borderRadius:20,padding:"0 10px",fontSize:e.typography.pxToRem(15)},"rounded"===a.shape&&{borderRadius:(e.vars||e).shape.borderRadius})}),(t=>{let{theme:e,ownerState:a}=t;return(0,o.Z)({},"text"===a.variant&&{["&.".concat(b.selected)]:(0,o.Z)({},"standard"!==a.color&&{color:(e.vars||e).palette[a.color].contrastText,backgroundColor:(e.vars||e).palette[a.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[a.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[a.color].main}},["&.".concat(b.focusVisible)]:{backgroundColor:(e.vars||e).palette[a.color].dark}},{["&.".concat(b.disabled)]:{color:(e.vars||e).palette.action.disabled}})},"outlined"===a.variant&&{border:e.vars?"1px solid rgba(".concat(e.vars.palette.common.onBackgroundChannel," / 0.23)"):"1px solid ".concat("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),["&.".concat(b.selected)]:(0,o.Z)({},"standard"!==a.color&&{color:(e.vars||e).palette[a.color].main,border:"1px solid ".concat(e.vars?"rgba(".concat(e.vars.palette[a.color].mainChannel," / 0.5)"):(0,v.Fq)(e.palette[a.color].main,.5)),backgroundColor:e.vars?"rgba(".concat(e.vars.palette[a.color].mainChannel," / ").concat(e.vars.palette.action.activatedOpacity,")"):(0,v.Fq)(e.palette[a.color].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?"rgba(".concat(e.vars.palette[a.color].mainChannel," / calc(").concat(e.vars.palette.action.activatedOpacity," + ").concat(e.vars.palette.action.focusOpacity,"))"):(0,v.Fq)(e.palette[a.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(b.focusVisible)]:{backgroundColor:e.vars?"rgba(".concat(e.vars.palette[a.color].mainChannel," / calc(").concat(e.vars.palette.action.activatedOpacity," + ").concat(e.vars.palette.action.focusOpacity,"))"):(0,v.Fq)(e.palette[a.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{["&.".concat(b.disabled)]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})})),O=(0,k.ZP)("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(t,e)=>e.icon})((t=>{let{theme:e,ownerState:a}=t;return(0,o.Z)({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},"small"===a.size&&{fontSize:e.typography.pxToRem(18)},"large"===a.size&&{fontSize:e.typography.pxToRem(22)})})),M=n.forwardRef((function(t,e){const a=(0,c.Z)({props:t,name:"MuiPaginationItem"}),{className:n,color:l="standard",component:d,components:p={},disabled:u=!1,page:g,selected:v=!1,shape:b="circular",size:x="medium",slots:C={},type:k="page",variant:R="text"}=a,M=(0,r.Z)(a,N),L=(0,o.Z)({},a,{color:l,disabled:u,selected:v,shape:b,size:x,type:k,variant:R}),I=(0,m.V)(),j=(t=>{const{classes:e,color:a,disabled:o,selected:n,size:r,shape:i,type:c,variant:l}=t,d={root:["root","size".concat((0,y.Z)(r)),l,i,"standard"!==a&&"color".concat((0,y.Z)(a)),"standard"!==a&&"".concat(l).concat((0,y.Z)(a)),o&&"disabled",n&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[c]],icon:["icon"]};return(0,s.Z)(d,h,e)})(L),F=(I?{previous:C.next||p.next||z,next:C.previous||p.previous||w,last:C.first||p.first||f.Z,first:C.last||p.last||Z.Z}:{previous:C.previous||p.previous||w,next:C.next||p.next||z,first:C.first||p.first||f.Z,last:C.last||p.last||Z.Z})[k];return"start-ellipsis"===k||"end-ellipsis"===k?(0,P.jsx)(B,{ref:e,ownerState:L,className:(0,i.Z)(j.root,n),children:"\u2026"}):(0,P.jsxs)(S,(0,o.Z)({ref:e,ownerState:L,component:d,disabled:u,className:(0,i.Z)(j.root,n)},M,{children:["page"===k&&g,F?(0,P.jsx)(O,{as:F,ownerState:L,className:j.icon}):null]}))})),L=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],I=(0,k.ZP)("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:a}=t;return[e.root,e[a.variant]]}})({}),j=(0,k.ZP)("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(t,e)=>e.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function F(t,e,a){return"page"===t?"".concat(a?"":"Go to ","page ").concat(e):"Go to ".concat(t," page")}const T=n.forwardRef((function(t,e){const a=(0,c.Z)({props:t,name:"MuiPagination"}),{boundaryCount:n=1,className:l,color:d="standard",count:v=1,defaultPage:m=1,disabled:h=!1,getItemAriaLabel:b=F,hideNextButton:x=!1,hidePrevButton:y=!1,renderItem:f=(t=>(0,P.jsx)(M,(0,o.Z)({},t))),shape:Z="circular",showFirstButton:C=!1,showLastButton:w=!1,siblingCount:z=1,size:k="medium",variant:N="text"}=a,R=(0,r.Z)(a,L),{items:B}=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{boundaryCount:e=1,componentName:a="usePagination",count:n=1,defaultPage:i=1,disabled:s=!1,hideNextButton:c=!1,hidePrevButton:l=!1,onChange:d,page:p,showFirstButton:v=!1,showLastButton:m=!1,siblingCount:h=1}=t,b=(0,r.Z)(t,g),[x,y]=(0,u.Z)({controlled:p,default:i,name:a,state:"page"}),f=(t,e)=>{p||y(e),d&&d(t,e)},Z=(t,e)=>{const a=e-t+1;return Array.from({length:a},((e,a)=>t+a))},C=Z(1,Math.min(e,n)),P=Z(Math.max(n-e+1,e+1),n),w=Math.max(Math.min(x-h,n-e-2*h-1),e+2),z=Math.min(Math.max(x+h,e+2*h+2),P.length>0?P[0]-2:n-1),k=[...v?["first"]:[],...l?[]:["previous"],...C,...w>e+2?["start-ellipsis"]:e+1<n-e?[e+1]:[],...Z(w,z),...z<n-e-1?["end-ellipsis"]:n-e>e?[n-e]:[],...P,...c?[]:["next"],...m?["last"]:[]],N=t=>{switch(t){case"first":return 1;case"previous":return x-1;case"next":return x+1;case"last":return n;default:return null}},R=k.map((t=>"number"===typeof t?{onClick:e=>{f(e,t)},type:"page",page:t,selected:t===x,disabled:s,"aria-current":t===x?"true":void 0}:{onClick:e=>{f(e,N(t))},type:t,page:N(t),selected:!1,disabled:s||-1===t.indexOf("ellipsis")&&("next"===t||"last"===t?x>=n:x<=1)}));return(0,o.Z)({items:R},b)}((0,o.Z)({},a,{componentName:"Pagination"})),S=(0,o.Z)({},a,{boundaryCount:n,color:d,count:v,defaultPage:m,disabled:h,getItemAriaLabel:b,hideNextButton:x,hidePrevButton:y,renderItem:f,shape:Z,showFirstButton:C,showLastButton:w,siblingCount:z,size:k,variant:N}),O=(t=>{const{classes:e,variant:a}=t,o={root:["root",a],ul:["ul"]};return(0,s.Z)(o,p,e)})(S);return(0,P.jsx)(I,(0,o.Z)({"aria-label":"pagination navigation",className:(0,i.Z)(O.root,l),ownerState:S,ref:e},R,{children:(0,P.jsx)(j,{className:O.ul,ownerState:S,children:B.map(((t,e)=>(0,P.jsx)("li",{children:f((0,o.Z)({},t,{color:d,"aria-label":b(t.type,t.page,t.selected),shape:Z,size:k,variant:N}))},e)))})}))}));let W=!1;const q=n.forwardRef((function(t,e){return W||(console.warn(["MUI: The Pagination component was moved from the lab to the core.","","You should use `import { Pagination } from '@mui/material'`","or `import Pagination from '@mui/material/Pagination'`"].join("\n")),W=!0),(0,P.jsx)(T,(0,o.Z)({ref:e},t))}))}}]);
@@ -0,0 +1,2 @@
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)}}]);