@abtnode/webapp 1.16.11 → 1.16.12

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 (30) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/build/asset-manifest.json +16 -14
  4. package/build/index.html +1 -1
  5. package/build/static/js/135.65788394.chunk.js +2 -0
  6. package/build/static/js/4263.8ef0b31e.chunk.js +1 -0
  7. package/build/static/js/{442.ed7bae8d.chunk.js → 442.22c41926.chunk.js} +1 -1
  8. package/build/static/js/{519.a67b47b1.chunk.js → 519.70b1566a.chunk.js} +1 -1
  9. package/build/static/js/{6014.f48cccf2.chunk.js → 6014.5fc467d2.chunk.js} +1 -1
  10. package/build/static/js/6760.0872c3cb.chunk.js +2 -0
  11. package/build/static/js/{7148.5383b105.chunk.js → 7148.96a2f8b2.chunk.js} +2 -2
  12. package/build/static/js/{8235.ca745d19.chunk.js → 8235.359e45a1.chunk.js} +1 -1
  13. package/build/static/js/9194.59b53801.chunk.js +1 -0
  14. package/build/static/js/9199.ac850f6e.chunk.js +1 -0
  15. package/build/static/js/{9244.efda87a8.chunk.js → 9244.498948ce.chunk.js} +1 -1
  16. package/build/static/js/948.84863f73.chunk.js +2 -0
  17. package/build/static/js/{9520.0274a37b.chunk.js → 9520.160a00ba.chunk.js} +1 -1
  18. package/build/static/js/main.484b21e3.js +2 -0
  19. package/package.json +1 -1
  20. package/build/static/js/3074.456b54db.chunk.js +0 -2
  21. package/build/static/js/4691.b2e657a4.chunk.js +0 -2
  22. package/build/static/js/6166.0f1d0203.chunk.js +0 -2
  23. package/build/static/js/8928.cdfcabd1.chunk.js +0 -1
  24. package/build/static/js/main.e215e985.js +0 -2
  25. /package/build/static/css/{4691.cc1ab277.chunk.css → 135.cc1ab277.chunk.css} +0 -0
  26. /package/build/static/js/{4691.b2e657a4.chunk.js.LICENSE.txt → 135.65788394.chunk.js.LICENSE.txt} +0 -0
  27. /package/build/static/js/{6166.0f1d0203.chunk.js.LICENSE.txt → 6760.0872c3cb.chunk.js.LICENSE.txt} +0 -0
  28. /package/build/static/js/{7148.5383b105.chunk.js.LICENSE.txt → 7148.96a2f8b2.chunk.js.LICENSE.txt} +0 -0
  29. /package/build/static/js/{3074.456b54db.chunk.js.LICENSE.txt → 948.84863f73.chunk.js.LICENSE.txt} +0 -0
  30. /package/build/static/js/{main.e215e985.js.LICENSE.txt → main.484b21e3.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- (self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[8235],{28235:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return M}});var i,r=t(71171),o=t(33028),a=t(32723),s=t(34795),l=t(96234),c=t(5057),u=t(33518),p=t(85493),d=t(10458),f=t.n(d),v=t(6352),h=t.n(v),m=t(54725),x=t.n(m),g=t(26796),_=t(45459),b=t(57090),w=t(52118),y=t(44846),C=t(25339),j=t(60411),O=t(74094),k=t(96266);function P(e){var n=(0,C.Tt)(),t=n.api,i=n.session,r=(0,j.h6)().info,u=(0,p.useLocation)(),d=(0,p.useNavigate)(),v=(0,w.useLocaleContext)(),m=v.t,P=v.locale,M=(0,b.useSecurity)().encryptKey,Z=(0,c.useState)(!1),N=(0,l.Z)(Z,2),z=N[0],S=N[1],F=(0,c.useMemo)((function(){return new URLSearchParams(u.search).get("inviteId")}),[u]),R=(0,g.default)((0,s.Z)((0,a.Z)().mark((function e(){var n,i,o,s,l,c,u;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(F){e.next=2;break}return e.abrupt("return",null);case 2:return e.next=4,t.get("/api/invitation",{params:{inviteId:F}});case 4:if(i=e.sent,o=i.data,!(s=!!x()(r,"ownerNft.did")&&"owner"===o.role.name)){e.next=17;break}return(l=new URL(window.location.href)).pathname=h()((0,O.Y5)(),"/api/did/invite/token"),l.searchParams.set("_ek_",M),l.searchParams.set("inviteId",F),e.next=14,t.get(l.href);case 14:c=e.sent,u=c.data,n=u;case 17:return e.abrupt("return",{invitation:o,nextWorkflow:n,needReceiveNFT:s});case 18:case"end":return e.stop()}}),e)})))),H=(0,c.useCallback)((function(){S(!0)}),[]),D=(0,c.useCallback)((function(){if(R.error)throw R.error;return R.value.invitation}),[R]),T=(0,c.useCallback)(function(){var e=(0,s.Z)((0,a.Z)().mark((function e(n,t){var r,o;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n&&(0,O.ZB)(t(n.sessionToken)),(r=new URLSearchParams(u.search)).delete("inviteId"),o=r.toString(),e.next=6,i.refresh();case 6:d("/".concat(o?"?".concat(o):o),{replace:!0});case 7:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),[u,d,i]);if(R.loading)return(0,k.jsx)(y.Z,{});return(0,k.jsxs)(L,{className:"page-invite",children:[x()(R,"value.needReceiveNFT")&&(0,k.jsx)(b.default,{action:"login",popup:!0,className:"connect",open:z,locale:P,baseUrl:r.launcher.url,checkFn:f().create({baseURL:r.launcher.url}).get,onSuccess:function(e,n){var r=new URL(window.location.href);r.pathname=h()((0,O.Y5)(),"/api/did/invite/status"),r.searchParams.set("_t_",R.value.nextWorkflow.token),r.searchParams.set("locale",P);var o=setInterval((0,s.Z)((0,a.Z)().mark((function e(){var s,l;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.get(r.href);case 2:s=e.sent,"succeed"===(l=s.data).status&&(clearInterval(o),i.updateConnectedInfo(l),T(l,M?n:function(){}));case 5:case"end":return e.stop()}}),e)}))),2e3)},onClose:function(){S(!1)},checkTimeout:3e5,webWalletUrl:(0,O.yP)(r),extraParams:{nw:x()(R,"value.nextWorkflow.url")},messages:{title:m("invite.transferNFTDialog.title",{name:r.name}),scan:m("invite.transferNFTDialog.scan"),confirm:m("invite.transferNFTDialog.confirm"),success:m("invite.transferNFTDialog.success")},prefix:"/.well-known/service/api/did"}),(0,k.jsx)(_.Z,(0,o.Z)((0,o.Z)({},e),{},{getDataFn:D,checkFn:t.get,onLoginSuccess:T,passportColor:"default",onReceive:x()(R,"value.needReceiveNFT")?H:null}))]})}var L=u.default.div(i||(i=(0,r.Z)(["\n width: 100vw;\n height: 100%;\n min-height: 100vh;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: #f6f8fa;\n overflow: auto;\n padding: 20px;\n"])));function M(){return(0,j.h6)().loading?(0,k.jsx)(y.Z,{}):(0,k.jsx)(P,{})}},49777:function(e,n,t){var i=t(6377),r=i.getNftBGColor,o=i.DEFAULT_COLOR,a=i.getNftBGColorFromDid;e.exports=function(e){var n,t=e.issuer,i=void 0===t?"":t,s=e.title,l=void 0===s?"":s,c=e.issuerDid,u=void 0===c?"":c,p=e.ownerName,d=void 0===p?"":p,f=e.ownerAvatarUrl,v=void 0===f?"":f,h=e.preferredColor,m=void 0===h?"default":h,x=e.revoked,g=void 0!==x&&x,_=e.isDataUrl,b=void 0!==_&&_,w=e.width,y=void 0===w?"100%":w,C=e.height,j=void 0===C?"100%":C;n="default"===m?o:"auto"===m?a(u):r(m);var O='<svg width="'.concat(y,'" height="').concat(j,'" viewBox="0 0 424 564" fill="none" xmlns="http://www.w3.org/2000/svg">\n<rect x="1" y="1" width="422" height="562" rx="21" fill="url(#paint0_linear_6_342)"/>\n<text x="360" y="65" fill="white" xml:space="preserve" font-family="Roboto,Helvetica" font-size="').concat(l.length>=12?12:l.length>=10?14:l.length>=8?18:l.length>=6?24:28,'" letter-spacing="0px" style="dominant-baseline:middle;text-anchor:middle;">').concat(l.toUpperCase(),'</text>\n<text opacity="0.4" fill="white" xml:space="preserve" style="white-space: pre" font-family="Roboto,Helvetica" font-size="16" font-weight="500" letter-spacing="0px"><tspan x="319" y="40.9688">PASSPORT</tspan></text>\n<text fill="white" xml:space="preserve" style="white-space: pre" font-family="Roboto,Helvetica" font-size="').concat(i.length>15?20:24,'" font-weight="500" letter-spacing="0px"><tspan x="26" y="60.2031">').concat(i,'</tspan></text>\n<rect x="2" y="102" width="420" height="168" fill="black" fill-opacity="0.3"/>\n<circle cx="212" cy="250" r="60" fill="#FBFBFB"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M212.224 247.722C218.932 247.722 224.37 242.284 224.37 235.575C224.37 228.867 218.932 223.429 212.224 223.429C205.515 223.429 200.077 228.867 200.077 235.575C200.077 242.284 205.515 247.722 212.224 247.722ZM188.857 272.018C188.857 274.573 190.929 276.645 193.484 276.645H230.962C231.28 276.645 231.597 276.612 231.908 276.547C234.41 276.025 236.014 273.574 235.492 271.072L234.335 265.533C232.991 259.099 227.319 254.489 220.746 254.489H203.7C197.127 254.489 191.455 259.099 190.112 265.533L188.955 271.072C188.89 271.383 188.857 271.7 188.857 272.018Z" fill="#FBFBFB" />\n<path d="M231.908 276.547L232.215 278.016L231.908 276.547ZM235.492 271.072L236.96 270.765H236.96L235.492 271.072ZM234.335 265.533L232.866 265.839L234.335 265.533ZM190.112 265.533L191.58 265.839L190.112 265.533ZM188.955 271.072L187.487 270.765H187.487L188.955 271.072ZM222.87 235.575C222.87 241.455 218.104 246.222 212.224 246.222V249.222C219.761 249.222 225.87 243.112 225.87 235.575H222.87ZM212.224 224.929C218.104 224.929 222.87 229.695 222.87 235.575H225.87C225.87 228.038 219.761 221.929 212.224 221.929V224.929ZM201.577 235.575C201.577 229.695 206.344 224.929 212.224 224.929V221.929C204.687 221.929 198.577 228.038 198.577 235.575H201.577ZM212.224 246.222C206.344 246.222 201.577 241.455 201.577 235.575H198.577C198.577 243.112 204.687 249.222 212.224 249.222V246.222ZM193.484 275.145C191.757 275.145 190.357 273.745 190.357 272.018H187.357C187.357 275.402 190.1 278.145 193.484 278.145V275.145ZM230.962 275.145H193.484V278.145H230.962V275.145ZM231.601 275.079C231.391 275.123 231.177 275.145 230.962 275.145V278.145C231.383 278.145 231.803 278.102 232.215 278.016L231.601 275.079ZM234.023 271.379C234.376 273.069 233.292 274.726 231.601 275.079L232.215 278.016C235.527 277.324 237.652 274.078 236.96 270.765L234.023 271.379ZM232.866 265.839L234.023 271.379L236.96 270.765L235.803 265.226L232.866 265.839ZM220.746 255.989C226.609 255.989 231.668 260.1 232.866 265.839L235.803 265.226C234.314 258.097 228.029 252.989 220.746 252.989V255.989ZM203.7 255.989H220.746V252.989H203.7V255.989ZM191.58 265.839C192.779 260.1 197.838 255.989 203.7 255.989V252.989C196.417 252.989 190.132 258.097 188.643 265.226L191.58 265.839ZM190.423 271.379L191.58 265.839L188.643 265.226L187.487 270.765L190.423 271.379ZM190.357 272.018C190.357 271.803 190.379 271.589 190.423 271.379L187.487 270.765C187.401 271.177 187.357 271.597 187.357 272.018H190.357Z" fill="#BFBFBF" />\n<circle cx="212" cy="250" r="60" fill="url(#raduisImage)"/>\n<defs>\n<pattern id="raduisImage" patternUnits="userSpaceOnUse" width="424" height="564">\n<image x="152" y="190" href="').concat(v,'" width="120" height="120" />\n</pattern>\n</defs>\n<text x="215" y="350" fill="white" xml:space="preserve" style="dominant-baseline:middle;text-anchor:middle;" font-family="Roboto,Helvetica" font-size="28" font-weight="500" letter-spacing="0px">').concat(d,'</text>\n<text opacity="0.4" fill="white" xml:space="preserve" style="white-space: pre" font-family="Roboto,Helvetica" font-size="18" font-weight="500" letter-spacing="0px"><tspan x="26" y="407.652">ISSUER DID</tspan></text>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M28.6722 423.313H45.3819C46.4294 423.313 47.2787 424.162 47.2787 425.21V433.79C47.2787 434.838 46.4294 435.687 45.3819 435.687H28.6722C27.9517 435.687 27.3249 435.285 27.0039 434.694H26.1167C26.4887 435.746 27.4924 436.5 28.6722 436.5H45.3819C46.8784 436.5 48.0916 435.287 48.0916 433.79V425.21C48.0916 423.713 46.8784 422.5 45.3819 422.5H28.6722C27.3296 422.5 26.215 423.477 26 424.758H26.8295C27.0321 423.929 27.7803 423.313 28.6722 423.313ZM27.8801 432.096C27.7831 432.089 27.6966 432.082 27.6204 432.075V427.526C27.7243 427.512 27.8351 427.505 27.9528 427.505C28.0705 427.498 28.1848 427.494 28.2955 427.494C29.1057 427.494 29.6978 427.688 30.0717 428.076C30.4457 428.464 30.6326 429.035 30.6326 429.79C30.6326 430.51 30.4353 431.074 30.0406 431.483C29.6528 431.892 29.0538 432.096 28.2436 432.096H27.8801ZM32.0141 431.421C32.208 430.957 32.305 430.413 32.305 429.79C32.305 429.139 32.208 428.582 32.0141 428.118C31.8202 427.654 31.5432 427.273 31.1832 426.975C30.8231 426.677 30.3903 426.459 29.8848 426.321C29.3862 426.182 28.8288 426.113 28.2125 426.113C27.9216 426.113 27.5719 426.127 27.1634 426.154C26.7617 426.175 26.3739 426.22 26 426.29V433.301C26.3739 433.377 26.7548 433.425 27.1426 433.446C27.5304 433.474 27.8697 433.488 28.1605 433.488C28.7976 433.488 29.3723 433.412 29.8848 433.259C30.3972 433.107 30.83 432.878 31.1832 432.574C31.5432 432.269 31.8202 431.885 32.0141 431.421ZM35.2788 426.196H33.6585V433.394H35.2788V426.196ZM38.5654 432.075C38.6416 432.082 38.7281 432.089 38.8251 432.096H39.1886C39.9988 432.096 40.5978 431.892 40.9856 431.483C41.3803 431.074 41.5776 430.51 41.5776 429.79C41.5776 429.035 41.3907 428.464 41.0167 428.076C40.6428 427.688 40.0507 427.494 39.2405 427.494C39.1298 427.494 39.0155 427.498 38.8978 427.505C38.7801 427.505 38.6693 427.512 38.5654 427.526V432.075ZM43.25 429.79C43.25 430.413 43.153 430.957 42.9591 431.421C42.7652 431.885 42.4882 432.269 42.1282 432.574C41.775 432.878 41.3422 433.107 40.8298 433.259C40.3173 433.412 39.7426 433.488 39.1055 433.488C38.8147 433.488 38.4754 433.474 38.0876 433.446C37.6998 433.425 37.3189 433.377 36.945 433.301V426.29C37.3189 426.22 37.7067 426.175 38.1084 426.154C38.5169 426.127 38.8666 426.113 39.1574 426.113C39.7738 426.113 40.3312 426.182 40.8298 426.321C41.3353 426.459 41.7681 426.677 42.1282 426.975C42.4882 427.273 42.7652 427.654 42.9591 428.118C43.153 428.582 43.25 429.139 43.25 429.79ZM45.1907 428.355C44.8209 428.355 44.5161 428.055 44.5161 427.686C44.5161 427.316 44.8209 427.016 45.1907 427.016C45.5604 427.016 45.8652 427.316 45.8652 427.686C45.8652 428.055 45.5604 428.355 45.1907 428.355ZM45.1907 431.855C44.8209 431.855 44.5161 431.555 44.5161 431.185C44.5161 430.815 44.8209 430.516 45.1907 430.516C45.5604 430.516 45.8652 430.815 45.8652 431.185C45.8652 431.555 45.5604 431.855 45.1907 431.855Z" fill="white"/>\n<text fill="white" xml:space="preserve" style="white-space: pre" font-family="Roboto,Helvetica" font-size="15" font-weight="500" letter-spacing="0px"><tspan x="54.0916" y="434.969">').concat(u,'</tspan></text>\n<rect x="1" y="1" width="422" height="562" rx="21" stroke="#F0F0F0" stroke-width="2"/>\n<defs>\n<linearGradient id="paint0_linear_6_342" x1="414.5" y1="562" x2="-116.166" y2="156.726" gradientUnits="userSpaceOnUse">\n<stop stop-color="').concat(n.startColor,'"/>\n<stop offset="1" stop-color="').concat(n.endColor,'"/>\n</linearGradient>\n</defs>\n').concat(g?'<circle cx="210" cy="250" r="120" stroke="rgba(255,0,0,0.5)" stroke-width="25" /><line x1="132" y1="168" x2="296" y2="323" stroke="rgba(255,0,0,0.5)" stroke-width="25" />':"","\n</svg>");return b?"data:image/svg+xml;utf8,".concat(encodeURIComponent(O)):O}},6377:function(e,n,t){var i=t(49394).toHex,r=t(18033).Hasher,o=function(e){if(e){var n=function(e){var n,t,i=e.replace("#",""),r=parseInt(i.slice(0,2),16)/255,o=parseInt(i.slice(2,4),16)/255,a=parseInt(i.slice(4,6),16)/255,s=Math.max(r,o,a),l=Math.min(r,o,a),c=(s+l)/2;if(s===l)n=0,t=0;else{var u=s-l;switch(t=c>.5?u/(2-s-l):u/(s+l),s){case r:n=(o-a)/u+(o<a?6:0);break;case o:n=(a-r)/u+2;break;case a:n=(r-o)/u+4}n/=6}return[n,t,c]}(e),t=[n[0]];n[1]>.7?t.push(.7):t.push(n[1]),n[2]>.6?t.push(.6):n[2]<.3?t.push(.3):t.push(n[2]);var i=[t[0],t[1],t[2]-.1],r=s.apply(void 0,t);return{startColor:s.apply(void 0,i),endColor:r}}return{startColor:"#2B3845",endColor:"#5A7A8A"}};function a(e){return"#".concat(i(r.SHA3.hash224(e)).slice(-6))}function s(e,n,t){var i,r,o;if(0===n)i=t,r=t,o=t;else{var a=function(e,n,t){var i=t;return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(n-e)*i:i<.5?n:i<2/3?e+(n-e)*(2/3-i)*6:e},s=t<.5?t*(1+n):t+n-t*n,l=2*t-s;i=a(l,s,e+1/3),r=a(l,s,e),o=a(l,s,e-1/3)}return"#".concat([Math.round(255*i),Math.round(255*r),Math.round(255*o)].map((function(e){return e.toString(16).padStart(2,0)})).join(""))}e.exports={getNftBGColor:o,getNftBGColorFromDid:function(e){return o(a(e))},DEFAULT_COLOR:{startColor:"#2B3845",endColor:"#5A7A8A"},getPassportColorFromDid:a}},53317:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i,r=c(t(55898)),o=c(t(33518)),a=c(t(34916)),s=t(96266),l=["invitation"];function c(e){return e&&e.__esModule?e:{default:e}}function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function p(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?u(Object(t),!0).forEach((function(n){d(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function d(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,n||"default");if("object"!==typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===typeof n?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function f(e,n){if(null==e)return{};var t,i,r=function(e,n){if(null==e)return{};var t,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)t=o[i],n.indexOf(t)>=0||(r[t]=e[t]);return r}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)t=o[i],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}function v(e){var n=e.invitation,t=f(e,l);return(0,s.jsxs)(x,p(p({},t),{},{children:[(0,s.jsx)(a.default,{did:n.info.did,src:n.info.logo,style:{flexShrink:0}}),(0,s.jsxs)("div",{className:"invite-app__content",children:[(0,s.jsx)("div",{className:"invite-app__title",children:n.info.name}),(0,s.jsx)("div",{className:"invite-app__description",children:n.info.description})]})]}))}v.propTypes={invitation:r.default.object.isRequired};var h,m,x=o.default.div(i||(h=["\n display: flex;\n justify-content: space-between;\n align-items: center;\n overflow: hidden;\n .invite-app__content {\n flex: 1;\n margin: 0 12px;\n font-weight: 700;\n overflow: hidden;\n }\n .invite-app__title {\n line-height: 1;\n margin-bottom: 2px;\n overflow: hidden;\n }\n .invite-app__description {\n font-size: 12px;\n white-space: nowrap;\n text-overflow: ellipsis;\n height: 1.3em;\n color: #999;\n overflow: hidden;\n }\n"],m||(m=h.slice(0)),i=Object.freeze(Object.defineProperties(h,{raw:{value:Object.freeze(m)}})))),g=v;n.default=g},20570:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i,r=c(t(55898)),o=c(t(33518)),a=t(52118),s=c(t(75095)),l=t(96266);function c(e){return e&&e.__esModule?e:{default:e}}function u(e){var n=e.onLogin,t=(0,a.useLocaleContext)().t;return(0,l.jsx)(f,{children:(0,l.jsx)(s.default,{size:"large",variant:"contained",className:"invite-receive__button","data-cy":"invite-receive-passport",color:"primary",onClick:function(){return n()},children:t("common.connect")})})}u.propTypes={onLogin:r.default.func},u.defaultProps={onLogin:function(){}};var p,d,f=o.default.div(i||(p=["\n text-align: center;\n .invite-receive__logo-wrapper {\n display: inline-flex;\n align-items: center;\n color: #9397a1;\n font-size: 14px;\n }\n .invite-receive__logo {\n height: 16px;\n margin-left: 8px;\n }\n .invite-receive__button {\n width: 100%;\n margin: 16px 0;\n white-space: nowrap;\n }\n .invite-receive__until {\n text-align: center;\n font-size: 14px;\n }\n .invite-receive__description {\n color: #999;\n text-align: left;\n list-style: decimal;\n padding: 0;\n padding-left: 1.2em;\n margin: 40px 0;\n }\n .invite-receive__description-item {\n list-style: decimal;\n }\n .invite-receive__link {\n color: ",";\n }\n"],d||(d=p.slice(0)),i=Object.freeze(Object.defineProperties(p,{raw:{value:Object.freeze(d)}}))),(function(e){return e.theme.palette.primary.main})),v=u;n.default=v},91349:function(e,n,t){"use strict";var i=t(43681).default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o=t(5057),a=f(t(55898)),s=f(t(33518)),l=f(t(49777)),c=t(52118),u=f(t(99593)),p=t(8713),d=t(96266);function f(e){return e&&e.__esModule?e:{default:e}}function v(e){var n=e.invitation,t=e.passportColor,r=(0,o.useState)(!1),a=i(r,2),s=a[0],f=a[1],v=(0,o.useContext)(c.LocaleContext).t,h=(0,o.useMemo)((function(){return(n.role.title||n.role.name).toUpperCase()}),[n.role.title,n.role.name]),m=(0,o.useMemo)((function(){return(0,l.default)({title:h,issuer:n.info.name,issuerDid:n.info.appDid,ownerName:"Your Name",isDataUrl:!0,preferredColor:n.info.passportColor||t})}),[n,h]),g=(0,o.useCallback)((function(){f(!0)}),[]),_=(0,o.useCallback)((function(){f(!1)}),[]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(x,{children:[(0,d.jsx)("div",{className:"invite-passport__card",children:(0,d.jsx)("img",{src:m,alt:"passport",className:"invite-passport__cover"})}),(0,d.jsxs)("div",{className:"invite-passport__content",children:[(0,d.jsx)("div",{className:"invite-passport__title",children:h}),(0,d.jsx)("div",{className:"invite-passport__description",title:n.role.description,children:n.role.description}),(0,d.jsx)("div",{style:{flex:1}}),(0,d.jsx)("div",{className:"invite-passport__view-permission",onClick:g,children:v("invite.viewPermission")})]})]}),(0,d.jsx)(u.default,{open:s,title:v("invite.viewPermission"),PaperProps:{style:{minHeight:"auto",paddingBottom:"20px"}},onClose:_,children:n.role.permissions&&n.role.permissions.length>0?(0,d.jsx)("ul",{style:{listStyle:"circle",padding:"0 20px"},children:n.role.permissions.map((function(e){return(0,d.jsx)("li",{style:{listStyle:"circle"},children:e.description},e.name)}))}):(0,d.jsxs)("div",{style:{color:"#999",textAlign:"center"},children:[(0,d.jsx)(p.Inbox,{style:{width:"30px",height:"30px"}}),(0,d.jsx)("div",{children:v("invite.emptyPermission")})]})})]})}v.propTypes={invitation:a.default.object.isRequired,passportColor:a.default.string},v.defaultProps={passportColor:"auto"};var h,m,x=s.default.div(r||(h=["\n display: flex;\n max-width: 350px;\n margin: 30px auto;\n .invite-passport__card {\n margin-right: 12px;\n width: 100px;\n height: 100px;\n flex-shrink: 0;\n .invite-passport__cover {\n width: 100%;\n height: 100%;\n }\n }\n .invite-passport__content {\n flex: 1;\n display: flex;\n flex-direction: column;\n }\n .invite-passport__title {\n font-weight: 700;\n font-size: 16px;\n }\n .invite-passport__description {\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n height: 3em;\n color: #999;\n font-size: 14px;\n }\n .invite-passport__view-permission {\n cursor: pointer;\n font-size: 14px;\n font-weight: 600;\n line-height: 18px;\n color: ",";\n }\n"],m||(m=h.slice(0)),r=Object.freeze(Object.defineProperties(h,{raw:{value:Object.freeze(m)}}))),(function(e){return e.theme.palette.primary.main})),g=v;n.default=g},17223:function(e,n,t){"use strict";var i=t(43681).default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o=t(5057),a=h(t(55898)),s=h(t(33518)),l=t(52118),c=h(t(57090)),u=h(t(75095)),p=t(12331),d=t(99875),f=h(t(22317)),v=t(96266);function h(e){return e&&e.__esModule?e:{default:e}}function m(e){var n,t,r,a=e.invitation,s=e.checkFn,h=e.onLogin,m=e.onReceive,x=(0,o.useState)(!1),g=i(x,2),b=g[0],w=g[1],y=(0,l.useLocaleContext)(),C=y.t,j=y.locale,O=(0,f.default)().getPassportId;"undefined"!==typeof window&&(n=null===(t=window)||void 0===t||null===(r=t.blocklet)||void 0===r?void 0:r.componentId);var k={passportId:O(),inviteId:a.inviteId,baseUrl:window.location.origin,componentId:n},P=(0,o.useCallback)((function(){w(!1)}),[]),L=(0,o.useCallback)((function(){w(!1),h.apply(void 0,arguments)}),[h]),M=(0,o.useCallback)((function(){"function"!==typeof m?w(!0):m()}),[]);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(_,{children:[(0,v.jsx)(u.default,{size:"large",variant:"contained",className:"invite-receive__button","data-cy":"invite-receive-passport",color:"primary",onClick:M,children:C("invite.receive")}),(0,v.jsxs)("div",{className:"invite-receive__until",children:[C("invite.validUntil"),(0,d.formatDateTime)(a.expireDate)]})]}),(0,v.jsx)(c.default,{popup:!0,open:b,className:"connect",action:"invite",checkFn:s,forceConnected:!1,autoConnect:!1,checkTimeout:6e5,onSuccess:L,onClose:P,locale:j,webWalletUrl:(0,p.getWebWalletUrl)(),messages:{title:C("receive.dialog.title"),scan:C("receive.dialog.scan"),confirm:C("receive.dialog.confirm"),success:C("receive.dialog.success")},extraParams:k})]})}m.propTypes={invitation:a.default.object.isRequired,checkFn:a.default.func.isRequired,onLogin:a.default.func,onReceive:a.default.func},m.defaultProps={onLogin:function(){},onReceive:null};var x,g,_=s.default.div(r||(x=["\n text-align: center;\n .invite-receive__logo-wrapper {\n display: inline-flex;\n align-items: center;\n color: #9397a1;\n font-size: 14px;\n }\n .invite-receive__logo {\n height: 16px;\n margin-left: 8px;\n }\n .invite-receive__button {\n width: 100%;\n margin: 16px 0;\n white-space: nowrap;\n }\n .invite-receive__until {\n text-align: center;\n font-size: 14px;\n }\n .invite-receive__description {\n color: #999;\n text-align: left;\n list-style: decimal;\n padding: 0;\n padding-left: 1.2em;\n margin: 40px 0;\n }\n .invite-receive__description-item {\n list-style: decimal;\n }\n .invite-receive__link {\n color: ",";\n }\n"],g||(g=x.slice(0)),r=Object.freeze(Object.defineProperties(x,{raw:{value:Object.freeze(g)}}))),(function(e){return e.theme.palette.primary.main})),b=m;n.default=b},60418:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i,r=t(5057),o=d(t(55898)),a=d(t(33518)),s=d(t(54935)),l=t(52118),c=d(t(76005)),u=t(99875),p=t(96266);function d(e){return e&&e.__esModule?e:{default:e}}function f(e){var n=e.invitation,t=e.type,i=(0,l.useLocaleContext)().t,o=(0,r.useMemo)((function(){return i("invite.success",{dapp:"{{dapp}}"})}),[i]),a=(0,u.getExplorerLink)(n.info.chainHost,n.inviter.did,"account"),d="receiver"===t?n.receiver:n.inviter,f=(0,u.patchJsxToLocale)(o,{name:function(){return a?(0,p.jsx)("a",{target:"_blank",href:a,className:"invite-user__link",rel:"noreferrer",children:d.fullName},"name"):d.fullName},dapp:function(){return(0,p.jsx)("a",{target:"_blank",href:n.info.url,className:"invite-user__link",rel:"noreferrer",children:n.info.name},"dapp")}});return(0,p.jsxs)(m,{children:[(0,p.jsx)(s.default,{pt:1,color:"success.main",children:(0,p.jsx)(c.default,{style:{fontSize:80}})}),(0,p.jsx)("div",{className:"invite-user__message",children:f})]})}f.propTypes={invitation:o.default.object.isRequired,type:o.default.oneOf("inviter","receiver")},f.defaultProps={type:"inviter"};var v,h,m=a.default.div(i||(v=["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n .invite-user__name {\n font-weight: 700;\n font-size: 16px;\n margin: 8px 0 2px 0;\n }\n .invite-user__address {\n font-size: 12px;\n }\n .invite-user__message {\n margin-top: 20px;\n font-weight: 700;\n /* width: 90%; */\n text-align: center;\n font-size: 18px;\n }\n .invite-user__link {\n color: ",";\n }\n"],h||(h=v.slice(0)),i=Object.freeze(Object.defineProperties(v,{raw:{value:Object.freeze(h)}}))),(function(e){return e.theme.palette.primary.main})),x=f;n.default=x},70642:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i,r=t(5057),o=p(t(55898)),a=p(t(33518)),s=p(t(34916)),l=t(52118),c=t(99875),u=t(96266);function p(e){return e&&e.__esModule?e:{default:e}}function d(e){var n=e.invitation,t=(0,l.useLocaleContext)().t,i=(0,r.useMemo)((function(){return(n.role.title||n.role.name).toUpperCase()}),[n.role.title,n.role.name]),o=(0,r.useMemo)((function(){return t("invite.message",{name:"{{name}}",role:i,dapp:"{{dapp}}"})}),[t,i]),a=(0,c.getExplorerLink)(n.info.chainHost,n.inviter.did,"account"),p=(0,c.patchJsxToLocale)(o,{name:function(){return a?(0,u.jsx)("a",{target:"_blank",href:a,className:"invite-user__link",rel:"noreferrer",children:n.inviter.fullName},"name"):n.inviter.fullName},dapp:function(){return(0,u.jsx)("a",{target:"_blank",href:n.info.url,className:"invite-user__link",rel:"noreferrer",children:n.info.name},"dapp")}});return(0,u.jsxs)(h,{children:[(0,u.jsx)(s.default,{did:n.inviter.did,src:encodeURI(n.inviter.avatar),size:80,shape:"circle",variant:"circle"}),(0,u.jsx)("div",{className:"invite-user__message",children:p})]})}d.propTypes={invitation:o.default.object.isRequired};var f,v,h=a.default.div(i||(f=["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n .invite-user__name {\n font-weight: 700;\n font-size: 16px;\n margin: 8px 0 2px 0;\n }\n .invite-user__address {\n font-size: 12px;\n }\n .invite-user__message {\n margin-top: 20px;\n font-weight: 700;\n /* width: 90%; */\n text-align: center;\n font-size: 18px;\n }\n .invite-user__link {\n color: ",";\n }\n"],v||(v=f.slice(0)),i=Object.freeze(Object.defineProperties(f,{raw:{value:Object.freeze(v)}}))),(function(e){return e.theme.palette.primary.main})),m=d;n.default=m},45459:function(e,n,t){"use strict";n.Z=void 0;var i,r=x(t(55898)),o=x(t(33518)),a=t(23074),s=x(t(75790)),l=x(t(25343)),c=x(t(91349)),u=x(t(17223)),p=x(t(20570)),d=x(t(70642)),f=x(t(60418)),v=x(t(53317)),h=x(t(1914)),m=t(96266);function x(e){return e&&e.__esModule?e:{default:e}}function g(e){var n,t,i=e.getDataFn,r=e.passportColor,o=e.onLoginSuccess,h=e.checkFn,x=e.onReceive,g=(0,a.useRequest)(i);if(g.loading)return(0,m.jsx)(s.default,{});if(g.error)return(0,m.jsx)(l.default,{status:"404",title:null===(n=g.error)||void 0===n||null===(t=n.response)||void 0===t?void 0:t.data,description:""});var _="success"===g.data.status,b=_?f.default:d.default,y=_?p.default:u.default;return(0,m.jsxs)(w,{className:"page-invite__wrapper",children:[(0,m.jsx)(v.default,{invitation:g.data}),(0,m.jsxs)("div",{className:"page-invite__card",children:[(0,m.jsx)(b,{invitation:g.data}),(0,m.jsx)(c.default,{invitation:g.data,passportColor:r}),(0,m.jsx)(y,{invitation:g.data,onLogin:o,checkFn:h,onReceive:x})]})]})}g.propTypes={getDataFn:r.default.func.isRequired,checkFn:r.default.func.isRequired,onLoginSuccess:r.default.func,onReceive:r.default.func,passportColor:r.default.string},g.defaultProps={onLoginSuccess:function(){},passportColor:"auto",onReceive:null};var _,b,w=o.default.div(i||(_=["\n max-width: 460px;\n max-height: 650px;\n min-height: 450px;\n width: 90%;\n height: 80%;\n display: flex;\n flex-direction: column;\n .page-invite__card {\n background-color: #fff;\n border-radius: 4px;\n flex: 1;\n padding: 20px 30px;\n margin-top: 10px;\n }\n .page-invite__app {\n margin-top: 20px;\n }\n"],b||(b=_.slice(0)),i=Object.freeze(Object.defineProperties(_,{raw:{value:Object.freeze(b)}})))),y=(0,h.default)(g);n.Z=y},55372:function(e,n,t){"use strict";var i=t(77668),r=t(55319),o=t(5433);e.exports={translations:{zh:i(o),en:i(r)}}},1914:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return function(n){return(0,o.jsx)(i.LocaleProvider,{translations:r.translations,children:(0,o.jsx)(e,s({},n))})}};var i=t(52118),r=t(55372),o=t(96266);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){l(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function l(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,n||"default");if("object"!==typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===typeof n?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}}}]);
1
+ (self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[8235],{28235:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return M}});var i,r=t(71171),o=t(33028),a=t(32723),s=t(34795),l=t(96234),c=t(5057),u=t(33518),p=t(85493),d=t(10458),f=t.n(d),v=t(6352),h=t.n(v),m=t(54725),x=t.n(m),g=t(26796),_=t(45459),b=t(57090),w=t(52118),y=t(44846),C=t(25339),j=t(60411),O=t(74094),k=t(96266);function P(e){var n=(0,C.Tt)(),t=n.api,i=n.session,r=(0,j.h6)().info,u=(0,p.useLocation)(),d=(0,p.useNavigate)(),v=(0,w.useLocaleContext)(),m=v.t,P=v.locale,M=(0,b.useSecurity)().encryptKey,Z=(0,c.useState)(!1),N=(0,l.Z)(Z,2),z=N[0],S=N[1],F=(0,c.useMemo)((function(){return new URLSearchParams(u.search).get("inviteId")}),[u]),R=(0,g.default)((0,s.Z)((0,a.Z)().mark((function e(){var n,i,o,s,l,c,u;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(F){e.next=2;break}return e.abrupt("return",null);case 2:return e.next=4,t.get("/api/invitation",{params:{inviteId:F}});case 4:if(i=e.sent,o=i.data,!(s=!!x()(r,"ownerNft.did")&&"owner"===o.role.name)){e.next=17;break}return(l=new URL(window.location.href)).pathname=h()((0,O.Y5)(),"/api/did/invite/token"),l.searchParams.set("_ek_",M),l.searchParams.set("inviteId",F),e.next=14,t.get(l.href);case 14:c=e.sent,u=c.data,n=u;case 17:return e.abrupt("return",{invitation:o,nextWorkflow:n,needReceiveNFT:s});case 18:case"end":return e.stop()}}),e)})))),H=(0,c.useCallback)((function(){S(!0)}),[]),D=(0,c.useCallback)((function(){if(R.error)throw R.error;return R.value.invitation}),[R]),T=(0,c.useCallback)(function(){var e=(0,s.Z)((0,a.Z)().mark((function e(n,t){var r,o;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n&&(0,O.ZB)(t(n.sessionToken)),(r=new URLSearchParams(u.search)).delete("inviteId"),o=r.toString(),e.next=6,i.refresh();case 6:d("/".concat(o?"?".concat(o):o),{replace:!0});case 7:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),[u,d,i]);if(R.loading)return(0,k.jsx)(y.Z,{});return(0,k.jsxs)(L,{className:"page-invite",children:[x()(R,"value.needReceiveNFT")&&(0,k.jsx)(b.default,{action:"login",popup:!0,className:"connect",open:z,locale:P,baseUrl:r.launcher.url,checkFn:f().create({baseURL:r.launcher.url}).get,onSuccess:function(e,n){var r=new URL(window.location.href);r.pathname=h()((0,O.Y5)(),"/api/did/invite/status"),r.searchParams.set("_t_",R.value.nextWorkflow.token),r.searchParams.set("locale",P);var o=setInterval((0,s.Z)((0,a.Z)().mark((function e(){var s,l;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.get(r.href);case 2:s=e.sent,"succeed"===(l=s.data).status&&(clearInterval(o),i.updateConnectedInfo(l),T(l,M?n:function(){}));case 5:case"end":return e.stop()}}),e)}))),2e3)},onClose:function(){S(!1)},checkTimeout:3e5,webWalletUrl:(0,O.yP)(r),extraParams:{nw:x()(R,"value.nextWorkflow.url")},messages:{title:m("invite.transferNFTDialog.title",{name:r.name}),scan:m("invite.transferNFTDialog.scan"),confirm:m("invite.transferNFTDialog.confirm"),success:m("invite.transferNFTDialog.success")},prefix:"/.well-known/service/api/did"}),(0,k.jsx)(_.Z,(0,o.Z)((0,o.Z)({},e),{},{getDataFn:D,checkFn:t.get,onLoginSuccess:T,passportColor:"default",onReceive:x()(R,"value.needReceiveNFT")?H:null}))]})}var L=u.default.div(i||(i=(0,r.Z)(["\n width: 100vw;\n height: 100%;\n min-height: 100vh;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: #f6f8fa;\n overflow: auto;\n padding: 20px;\n"])));function M(){return(0,j.h6)().loading?(0,k.jsx)(y.Z,{}):(0,k.jsx)(P,{})}},49777:function(e,n,t){var i=t(6377),r=i.getNftBGColor,o=i.DEFAULT_COLOR,a=i.getNftBGColorFromDid;e.exports=function(e){var n,t=e.issuer,i=void 0===t?"":t,s=e.title,l=void 0===s?"":s,c=e.issuerDid,u=void 0===c?"":c,p=e.ownerName,d=void 0===p?"":p,f=e.ownerAvatarUrl,v=void 0===f?"":f,h=e.preferredColor,m=void 0===h?"default":h,x=e.revoked,g=void 0!==x&&x,_=e.isDataUrl,b=void 0!==_&&_,w=e.width,y=void 0===w?"100%":w,C=e.height,j=void 0===C?"100%":C;n="default"===m?o:"auto"===m?a(u):r(m);var O='<svg width="'.concat(y,'" height="').concat(j,'" viewBox="0 0 424 564" fill="none" xmlns="http://www.w3.org/2000/svg">\n<rect x="1" y="1" width="422" height="562" rx="21" fill="url(#paint0_linear_6_342)"/>\n<text x="360" y="65" fill="white" xml:space="preserve" font-family="Roboto,Helvetica" font-size="').concat(l.length>=12?12:l.length>=10?14:l.length>=8?18:l.length>=6?24:28,'" letter-spacing="0px" style="dominant-baseline:middle;text-anchor:middle;">').concat(l.toUpperCase(),'</text>\n<text opacity="0.4" fill="white" xml:space="preserve" style="white-space: pre" font-family="Roboto,Helvetica" font-size="16" font-weight="500" letter-spacing="0px"><tspan x="319" y="40.9688">PASSPORT</tspan></text>\n<text fill="white" xml:space="preserve" style="white-space: pre" font-family="Roboto,Helvetica" font-size="').concat(i.length>15?20:24,'" font-weight="500" letter-spacing="0px"><tspan x="26" y="60.2031">').concat(i,'</tspan></text>\n<rect x="2" y="102" width="420" height="168" fill="black" fill-opacity="0.3"/>\n<circle cx="212" cy="250" r="60" fill="#FBFBFB"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M212.224 247.722C218.932 247.722 224.37 242.284 224.37 235.575C224.37 228.867 218.932 223.429 212.224 223.429C205.515 223.429 200.077 228.867 200.077 235.575C200.077 242.284 205.515 247.722 212.224 247.722ZM188.857 272.018C188.857 274.573 190.929 276.645 193.484 276.645H230.962C231.28 276.645 231.597 276.612 231.908 276.547C234.41 276.025 236.014 273.574 235.492 271.072L234.335 265.533C232.991 259.099 227.319 254.489 220.746 254.489H203.7C197.127 254.489 191.455 259.099 190.112 265.533L188.955 271.072C188.89 271.383 188.857 271.7 188.857 272.018Z" fill="#FBFBFB" />\n<path d="M231.908 276.547L232.215 278.016L231.908 276.547ZM235.492 271.072L236.96 270.765H236.96L235.492 271.072ZM234.335 265.533L232.866 265.839L234.335 265.533ZM190.112 265.533L191.58 265.839L190.112 265.533ZM188.955 271.072L187.487 270.765H187.487L188.955 271.072ZM222.87 235.575C222.87 241.455 218.104 246.222 212.224 246.222V249.222C219.761 249.222 225.87 243.112 225.87 235.575H222.87ZM212.224 224.929C218.104 224.929 222.87 229.695 222.87 235.575H225.87C225.87 228.038 219.761 221.929 212.224 221.929V224.929ZM201.577 235.575C201.577 229.695 206.344 224.929 212.224 224.929V221.929C204.687 221.929 198.577 228.038 198.577 235.575H201.577ZM212.224 246.222C206.344 246.222 201.577 241.455 201.577 235.575H198.577C198.577 243.112 204.687 249.222 212.224 249.222V246.222ZM193.484 275.145C191.757 275.145 190.357 273.745 190.357 272.018H187.357C187.357 275.402 190.1 278.145 193.484 278.145V275.145ZM230.962 275.145H193.484V278.145H230.962V275.145ZM231.601 275.079C231.391 275.123 231.177 275.145 230.962 275.145V278.145C231.383 278.145 231.803 278.102 232.215 278.016L231.601 275.079ZM234.023 271.379C234.376 273.069 233.292 274.726 231.601 275.079L232.215 278.016C235.527 277.324 237.652 274.078 236.96 270.765L234.023 271.379ZM232.866 265.839L234.023 271.379L236.96 270.765L235.803 265.226L232.866 265.839ZM220.746 255.989C226.609 255.989 231.668 260.1 232.866 265.839L235.803 265.226C234.314 258.097 228.029 252.989 220.746 252.989V255.989ZM203.7 255.989H220.746V252.989H203.7V255.989ZM191.58 265.839C192.779 260.1 197.838 255.989 203.7 255.989V252.989C196.417 252.989 190.132 258.097 188.643 265.226L191.58 265.839ZM190.423 271.379L191.58 265.839L188.643 265.226L187.487 270.765L190.423 271.379ZM190.357 272.018C190.357 271.803 190.379 271.589 190.423 271.379L187.487 270.765C187.401 271.177 187.357 271.597 187.357 272.018H190.357Z" fill="#BFBFBF" />\n<circle cx="212" cy="250" r="60" fill="url(#raduisImage)"/>\n<defs>\n<pattern id="raduisImage" patternUnits="userSpaceOnUse" width="424" height="564">\n<image x="152" y="190" href="').concat(v,'" width="120" height="120" />\n</pattern>\n</defs>\n<text x="215" y="350" fill="white" xml:space="preserve" style="dominant-baseline:middle;text-anchor:middle;" font-family="Roboto,Helvetica" font-size="28" font-weight="500" letter-spacing="0px">').concat(d,'</text>\n<text opacity="0.4" fill="white" xml:space="preserve" style="white-space: pre" font-family="Roboto,Helvetica" font-size="18" font-weight="500" letter-spacing="0px"><tspan x="26" y="407.652">ISSUER DID</tspan></text>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M28.6722 423.313H45.3819C46.4294 423.313 47.2787 424.162 47.2787 425.21V433.79C47.2787 434.838 46.4294 435.687 45.3819 435.687H28.6722C27.9517 435.687 27.3249 435.285 27.0039 434.694H26.1167C26.4887 435.746 27.4924 436.5 28.6722 436.5H45.3819C46.8784 436.5 48.0916 435.287 48.0916 433.79V425.21C48.0916 423.713 46.8784 422.5 45.3819 422.5H28.6722C27.3296 422.5 26.215 423.477 26 424.758H26.8295C27.0321 423.929 27.7803 423.313 28.6722 423.313ZM27.8801 432.096C27.7831 432.089 27.6966 432.082 27.6204 432.075V427.526C27.7243 427.512 27.8351 427.505 27.9528 427.505C28.0705 427.498 28.1848 427.494 28.2955 427.494C29.1057 427.494 29.6978 427.688 30.0717 428.076C30.4457 428.464 30.6326 429.035 30.6326 429.79C30.6326 430.51 30.4353 431.074 30.0406 431.483C29.6528 431.892 29.0538 432.096 28.2436 432.096H27.8801ZM32.0141 431.421C32.208 430.957 32.305 430.413 32.305 429.79C32.305 429.139 32.208 428.582 32.0141 428.118C31.8202 427.654 31.5432 427.273 31.1832 426.975C30.8231 426.677 30.3903 426.459 29.8848 426.321C29.3862 426.182 28.8288 426.113 28.2125 426.113C27.9216 426.113 27.5719 426.127 27.1634 426.154C26.7617 426.175 26.3739 426.22 26 426.29V433.301C26.3739 433.377 26.7548 433.425 27.1426 433.446C27.5304 433.474 27.8697 433.488 28.1605 433.488C28.7976 433.488 29.3723 433.412 29.8848 433.259C30.3972 433.107 30.83 432.878 31.1832 432.574C31.5432 432.269 31.8202 431.885 32.0141 431.421ZM35.2788 426.196H33.6585V433.394H35.2788V426.196ZM38.5654 432.075C38.6416 432.082 38.7281 432.089 38.8251 432.096H39.1886C39.9988 432.096 40.5978 431.892 40.9856 431.483C41.3803 431.074 41.5776 430.51 41.5776 429.79C41.5776 429.035 41.3907 428.464 41.0167 428.076C40.6428 427.688 40.0507 427.494 39.2405 427.494C39.1298 427.494 39.0155 427.498 38.8978 427.505C38.7801 427.505 38.6693 427.512 38.5654 427.526V432.075ZM43.25 429.79C43.25 430.413 43.153 430.957 42.9591 431.421C42.7652 431.885 42.4882 432.269 42.1282 432.574C41.775 432.878 41.3422 433.107 40.8298 433.259C40.3173 433.412 39.7426 433.488 39.1055 433.488C38.8147 433.488 38.4754 433.474 38.0876 433.446C37.6998 433.425 37.3189 433.377 36.945 433.301V426.29C37.3189 426.22 37.7067 426.175 38.1084 426.154C38.5169 426.127 38.8666 426.113 39.1574 426.113C39.7738 426.113 40.3312 426.182 40.8298 426.321C41.3353 426.459 41.7681 426.677 42.1282 426.975C42.4882 427.273 42.7652 427.654 42.9591 428.118C43.153 428.582 43.25 429.139 43.25 429.79ZM45.1907 428.355C44.8209 428.355 44.5161 428.055 44.5161 427.686C44.5161 427.316 44.8209 427.016 45.1907 427.016C45.5604 427.016 45.8652 427.316 45.8652 427.686C45.8652 428.055 45.5604 428.355 45.1907 428.355ZM45.1907 431.855C44.8209 431.855 44.5161 431.555 44.5161 431.185C44.5161 430.815 44.8209 430.516 45.1907 430.516C45.5604 430.516 45.8652 430.815 45.8652 431.185C45.8652 431.555 45.5604 431.855 45.1907 431.855Z" fill="white"/>\n<text fill="white" xml:space="preserve" style="white-space: pre" font-family="Roboto,Helvetica" font-size="15" font-weight="500" letter-spacing="0px"><tspan x="54.0916" y="434.969">').concat(u,'</tspan></text>\n<rect x="1" y="1" width="422" height="562" rx="21" stroke="#F0F0F0" stroke-width="2"/>\n<defs>\n<linearGradient id="paint0_linear_6_342" x1="414.5" y1="562" x2="-116.166" y2="156.726" gradientUnits="userSpaceOnUse">\n<stop stop-color="').concat(n.startColor,'"/>\n<stop offset="1" stop-color="').concat(n.endColor,'"/>\n</linearGradient>\n</defs>\n').concat(g?'<circle cx="210" cy="250" r="120" stroke="rgba(255,0,0,0.5)" stroke-width="25" /><line x1="132" y1="168" x2="296" y2="323" stroke="rgba(255,0,0,0.5)" stroke-width="25" />':"","\n</svg>");return b?"data:image/svg+xml;utf8,".concat(encodeURIComponent(O)):O}},6377:function(e,n,t){var i=t(49394).toHex,r=t(18033).Hasher,o=function(e){if(e){var n=function(e){var n,t,i=e.replace("#",""),r=parseInt(i.slice(0,2),16)/255,o=parseInt(i.slice(2,4),16)/255,a=parseInt(i.slice(4,6),16)/255,s=Math.max(r,o,a),l=Math.min(r,o,a),c=(s+l)/2;if(s===l)n=0,t=0;else{var u=s-l;switch(t=c>.5?u/(2-s-l):u/(s+l),s){case r:n=(o-a)/u+(o<a?6:0);break;case o:n=(a-r)/u+2;break;case a:n=(r-o)/u+4}n/=6}return[n,t,c]}(e),t=[n[0]];n[1]>.7?t.push(.7):t.push(n[1]),n[2]>.6?t.push(.6):n[2]<.3?t.push(.3):t.push(n[2]);var i=[t[0],t[1],t[2]-.1],r=s.apply(void 0,t);return{startColor:s.apply(void 0,i),endColor:r}}return{startColor:"#2B3845",endColor:"#5A7A8A"}};function a(e){return"#".concat(i(r.SHA3.hash224(e)).slice(-6))}function s(e,n,t){var i,r,o;if(0===n)i=t,r=t,o=t;else{var a=function(e,n,t){var i=t;return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(n-e)*i:i<.5?n:i<2/3?e+(n-e)*(2/3-i)*6:e},s=t<.5?t*(1+n):t+n-t*n,l=2*t-s;i=a(l,s,e+1/3),r=a(l,s,e),o=a(l,s,e-1/3)}return"#".concat([Math.round(255*i),Math.round(255*r),Math.round(255*o)].map((function(e){return e.toString(16).padStart(2,0)})).join(""))}e.exports={getNftBGColor:o,getNftBGColorFromDid:function(e){return o(a(e))},DEFAULT_COLOR:{startColor:"#2B3845",endColor:"#5A7A8A"},getPassportColorFromDid:a}},53317:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i,r=c(t(55898)),o=c(t(33518)),a=c(t(34916)),s=t(96266),l=["invitation"];function c(e){return e&&e.__esModule?e:{default:e}}function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function p(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?u(Object(t),!0).forEach((function(n){d(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function d(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,n||"default");if("object"!==typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===typeof n?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function f(e,n){if(null==e)return{};var t,i,r=function(e,n){if(null==e)return{};var t,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)t=o[i],n.indexOf(t)>=0||(r[t]=e[t]);return r}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)t=o[i],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}function v(e){var n=e.invitation,t=f(e,l);return(0,s.jsxs)(x,p(p({},t),{},{children:[(0,s.jsx)(a.default,{did:n.info.did,src:n.info.logo,style:{flexShrink:0}}),(0,s.jsxs)("div",{className:"invite-app__content",children:[(0,s.jsx)("div",{className:"invite-app__title",children:n.info.name}),(0,s.jsx)("div",{className:"invite-app__description",children:n.info.description})]})]}))}v.propTypes={invitation:r.default.object.isRequired};var h,m,x=o.default.div(i||(h=["\n display: flex;\n justify-content: space-between;\n align-items: center;\n overflow: hidden;\n .invite-app__content {\n flex: 1;\n margin: 0 12px;\n font-weight: 700;\n overflow: hidden;\n }\n .invite-app__title {\n line-height: 1;\n margin-bottom: 2px;\n overflow: hidden;\n }\n .invite-app__description {\n font-size: 12px;\n white-space: nowrap;\n text-overflow: ellipsis;\n height: 1.3em;\n color: #999;\n overflow: hidden;\n }\n"],m||(m=h.slice(0)),i=Object.freeze(Object.defineProperties(h,{raw:{value:Object.freeze(m)}})))),g=v;n.default=g},20570:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i,r=c(t(55898)),o=c(t(33518)),a=t(52118),s=c(t(75095)),l=t(96266);function c(e){return e&&e.__esModule?e:{default:e}}function u(e){var n=e.onLogin,t=(0,a.useLocaleContext)().t;return(0,l.jsx)(f,{children:(0,l.jsx)(s.default,{size:"large",variant:"contained",className:"invite-receive__button","data-cy":"invite-receive-passport",color:"primary",onClick:function(){return n()},children:t("common.connect")})})}u.propTypes={onLogin:r.default.func},u.defaultProps={onLogin:function(){}};var p,d,f=o.default.div(i||(p=["\n text-align: center;\n .invite-receive__logo-wrapper {\n display: inline-flex;\n align-items: center;\n color: #9397a1;\n font-size: 14px;\n }\n .invite-receive__logo {\n height: 16px;\n margin-left: 8px;\n }\n .invite-receive__button {\n width: 100%;\n margin: 16px 0;\n white-space: nowrap;\n }\n .invite-receive__until {\n text-align: center;\n font-size: 14px;\n }\n .invite-receive__description {\n color: #999;\n text-align: left;\n list-style: decimal;\n padding: 0;\n padding-left: 1.2em;\n margin: 40px 0;\n }\n .invite-receive__description-item {\n list-style: decimal;\n }\n .invite-receive__link {\n color: ",";\n }\n"],d||(d=p.slice(0)),i=Object.freeze(Object.defineProperties(p,{raw:{value:Object.freeze(d)}}))),(function(e){return e.theme.palette.primary.main})),v=u;n.default=v},91349:function(e,n,t){"use strict";var i=t(43681).default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o=t(5057),a=f(t(55898)),s=f(t(33518)),l=f(t(49777)),c=t(52118),u=f(t(99593)),p=t(8713),d=t(96266);function f(e){return e&&e.__esModule?e:{default:e}}function v(e){var n=e.invitation,t=e.passportColor,r=(0,o.useState)(!1),a=i(r,2),s=a[0],f=a[1],v=(0,o.useContext)(c.LocaleContext).t,h=(0,o.useMemo)((function(){return(n.role.title||n.role.name).toUpperCase()}),[n.role.title,n.role.name]),m=(0,o.useMemo)((function(){return(0,l.default)({title:h,issuer:n.info.name,issuerDid:n.info.appDid,ownerName:"Your Name",isDataUrl:!0,preferredColor:n.info.passportColor||t})}),[n,h]),g=(0,o.useCallback)((function(){f(!0)}),[]),_=(0,o.useCallback)((function(){f(!1)}),[]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(x,{children:[(0,d.jsx)("div",{className:"invite-passport__card",children:(0,d.jsx)("img",{src:m,alt:"passport",className:"invite-passport__cover"})}),(0,d.jsxs)("div",{className:"invite-passport__content",children:[(0,d.jsx)("div",{className:"invite-passport__title",children:h}),(0,d.jsx)("div",{className:"invite-passport__description",title:n.role.description,children:n.role.description}),(0,d.jsx)("div",{style:{flex:1}}),(0,d.jsx)("div",{className:"invite-passport__view-permission",onClick:g,children:v("invite.viewPermission")})]})]}),(0,d.jsx)(u.default,{open:s,title:v("invite.viewPermission"),PaperProps:{style:{minHeight:"auto",paddingBottom:"20px"}},onClose:_,children:n.role.permissions&&n.role.permissions.length>0?(0,d.jsx)("ul",{style:{listStyle:"circle",padding:"0 20px"},children:n.role.permissions.map((function(e){return(0,d.jsx)("li",{style:{listStyle:"circle"},children:e.description},e.name)}))}):(0,d.jsxs)("div",{style:{color:"#999",textAlign:"center"},children:[(0,d.jsx)(p.Inbox,{style:{width:"30px",height:"30px"}}),(0,d.jsx)("div",{children:v("invite.emptyPermission")})]})})]})}v.propTypes={invitation:a.default.object.isRequired,passportColor:a.default.string},v.defaultProps={passportColor:"auto"};var h,m,x=s.default.div(r||(h=["\n display: flex;\n max-width: 350px;\n margin: 30px auto;\n .invite-passport__card {\n margin-right: 12px;\n width: 100px;\n height: 100px;\n flex-shrink: 0;\n .invite-passport__cover {\n width: 100%;\n height: 100%;\n }\n }\n .invite-passport__content {\n flex: 1;\n display: flex;\n flex-direction: column;\n }\n .invite-passport__title {\n font-weight: 700;\n font-size: 16px;\n }\n .invite-passport__description {\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n height: 3em;\n color: #999;\n font-size: 14px;\n }\n .invite-passport__view-permission {\n cursor: pointer;\n font-size: 14px;\n font-weight: 600;\n line-height: 18px;\n color: ",";\n }\n"],m||(m=h.slice(0)),r=Object.freeze(Object.defineProperties(h,{raw:{value:Object.freeze(m)}}))),(function(e){return e.theme.palette.primary.main})),g=v;n.default=g},17223:function(e,n,t){"use strict";var i=t(43681).default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o=t(5057),a=h(t(55898)),s=h(t(33518)),l=t(52118),c=h(t(57090)),u=h(t(75095)),p=t(12331),d=t(99875),f=h(t(22317)),v=t(96266);function h(e){return e&&e.__esModule?e:{default:e}}function m(e){var n,t,r,a=e.invitation,s=e.checkFn,h=e.onLogin,m=e.onReceive,x=(0,o.useState)(!1),g=i(x,2),b=g[0],w=g[1],y=(0,l.useLocaleContext)(),C=y.t,j=y.locale,O=(0,f.default)().getPassportId;"undefined"!==typeof window&&(n=null===(t=window)||void 0===t||null===(r=t.blocklet)||void 0===r?void 0:r.componentId);var k={passportId:O(),inviteId:a.inviteId,baseUrl:window.location.origin,componentId:n},P=(0,o.useCallback)((function(){w(!1)}),[]),L=(0,o.useCallback)((function(){w(!1),h.apply(void 0,arguments)}),[h]),M=(0,o.useCallback)((function(){"function"!==typeof m?w(!0):m()}),[]);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(_,{children:[(0,v.jsx)(u.default,{size:"large",variant:"contained",className:"invite-receive__button","data-cy":"invite-receive-passport",color:"primary",onClick:M,children:C("invite.receive")}),(0,v.jsxs)("div",{className:"invite-receive__until",children:[C("invite.validUntil"),(0,d.formatDateTime)(a.expireDate)]})]}),(0,v.jsx)(c.default,{popup:!0,open:b,className:"connect",action:"invite",checkFn:s,forceConnected:!1,autoConnect:!1,checkTimeout:6e5,onSuccess:L,onClose:P,locale:j,webWalletUrl:(0,p.getWebWalletUrl)(),messages:{title:C("receive.dialog.title"),scan:C("receive.dialog.scan"),confirm:C("receive.dialog.confirm"),success:C("receive.dialog.success")},extraParams:k})]})}m.propTypes={invitation:a.default.object.isRequired,checkFn:a.default.func.isRequired,onLogin:a.default.func,onReceive:a.default.func},m.defaultProps={onLogin:function(){},onReceive:null};var x,g,_=s.default.div(r||(x=["\n text-align: center;\n .invite-receive__logo-wrapper {\n display: inline-flex;\n align-items: center;\n color: #9397a1;\n font-size: 14px;\n }\n .invite-receive__logo {\n height: 16px;\n margin-left: 8px;\n }\n .invite-receive__button {\n width: 100%;\n margin: 16px 0;\n white-space: nowrap;\n }\n .invite-receive__until {\n text-align: center;\n font-size: 14px;\n }\n .invite-receive__description {\n color: #999;\n text-align: left;\n list-style: decimal;\n padding: 0;\n padding-left: 1.2em;\n margin: 40px 0;\n }\n .invite-receive__description-item {\n list-style: decimal;\n }\n .invite-receive__link {\n color: ",";\n }\n"],g||(g=x.slice(0)),r=Object.freeze(Object.defineProperties(x,{raw:{value:Object.freeze(g)}}))),(function(e){return e.theme.palette.primary.main})),b=m;n.default=b},60418:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i,r=t(5057),o=d(t(55898)),a=d(t(33518)),s=d(t(54935)),l=t(52118),c=d(t(76005)),u=t(99875),p=t(96266);function d(e){return e&&e.__esModule?e:{default:e}}function f(e){var n=e.invitation,t=e.type,i=(0,l.useLocaleContext)().t,o=(0,r.useMemo)((function(){return i("invite.success",{dapp:"{{dapp}}"})}),[i]),a=(0,u.getExplorerLink)(n.info.chainHost,n.inviter.did,"account"),d="receiver"===t?n.receiver:n.inviter,f=(0,u.patchJsxToLocale)(o,{name:function(){return a?(0,p.jsx)("a",{target:"_blank",href:a,className:"invite-user__link",rel:"noreferrer",children:d.fullName},"name"):d.fullName},dapp:function(){return(0,p.jsx)("a",{target:"_blank",href:n.info.url,className:"invite-user__link",rel:"noreferrer",children:n.info.name},"dapp")}});return(0,p.jsxs)(m,{children:[(0,p.jsx)(s.default,{pt:1,color:"success.main",children:(0,p.jsx)(c.default,{style:{fontSize:80}})}),(0,p.jsx)("div",{className:"invite-user__message",children:f})]})}f.propTypes={invitation:o.default.object.isRequired,type:o.default.oneOf("inviter","receiver")},f.defaultProps={type:"inviter"};var v,h,m=a.default.div(i||(v=["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n .invite-user__name {\n font-weight: 700;\n font-size: 16px;\n margin: 8px 0 2px 0;\n }\n .invite-user__address {\n font-size: 12px;\n }\n .invite-user__message {\n margin-top: 20px;\n font-weight: 700;\n /* width: 90%; */\n text-align: center;\n font-size: 18px;\n }\n .invite-user__link {\n color: ",";\n }\n"],h||(h=v.slice(0)),i=Object.freeze(Object.defineProperties(v,{raw:{value:Object.freeze(h)}}))),(function(e){return e.theme.palette.primary.main})),x=f;n.default=x},70642:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i,r=t(5057),o=p(t(55898)),a=p(t(33518)),s=p(t(34916)),l=t(52118),c=t(99875),u=t(96266);function p(e){return e&&e.__esModule?e:{default:e}}function d(e){var n=e.invitation,t=(0,l.useLocaleContext)().t,i=(0,r.useMemo)((function(){return(n.role.title||n.role.name).toUpperCase()}),[n.role.title,n.role.name]),o=(0,r.useMemo)((function(){return t("invite.message",{name:"{{name}}",role:i,dapp:"{{dapp}}"})}),[t,i]),a=(0,c.getExplorerLink)(n.info.chainHost,n.inviter.did,"account"),p=(0,c.patchJsxToLocale)(o,{name:function(){return a?(0,u.jsx)("a",{target:"_blank",href:a,className:"invite-user__link",rel:"noreferrer",children:n.inviter.fullName},"name"):n.inviter.fullName},dapp:function(){return(0,u.jsx)("a",{target:"_blank",href:n.info.url,className:"invite-user__link",rel:"noreferrer",children:n.info.name},"dapp")}});return(0,u.jsxs)(h,{children:[(0,u.jsx)(s.default,{did:n.inviter.did,src:encodeURI(n.inviter.avatar),size:80,shape:"circle",variant:"circle"}),(0,u.jsx)("div",{className:"invite-user__message",children:p})]})}d.propTypes={invitation:o.default.object.isRequired};var f,v,h=a.default.div(i||(f=["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n .invite-user__name {\n font-weight: 700;\n font-size: 16px;\n margin: 8px 0 2px 0;\n }\n .invite-user__address {\n font-size: 12px;\n }\n .invite-user__message {\n margin-top: 20px;\n font-weight: 700;\n /* width: 90%; */\n text-align: center;\n font-size: 18px;\n }\n .invite-user__link {\n color: ",";\n }\n"],v||(v=f.slice(0)),i=Object.freeze(Object.defineProperties(f,{raw:{value:Object.freeze(v)}}))),(function(e){return e.theme.palette.primary.main})),m=d;n.default=m},45459:function(e,n,t){"use strict";n.Z=void 0;var i,r=x(t(55898)),o=x(t(33518)),a=t(50948),s=x(t(75790)),l=x(t(25343)),c=x(t(91349)),u=x(t(17223)),p=x(t(20570)),d=x(t(70642)),f=x(t(60418)),v=x(t(53317)),h=x(t(1914)),m=t(96266);function x(e){return e&&e.__esModule?e:{default:e}}function g(e){var n,t,i=e.getDataFn,r=e.passportColor,o=e.onLoginSuccess,h=e.checkFn,x=e.onReceive,g=(0,a.useRequest)(i);if(g.loading)return(0,m.jsx)(s.default,{});if(g.error)return(0,m.jsx)(l.default,{status:"404",title:null===(n=g.error)||void 0===n||null===(t=n.response)||void 0===t?void 0:t.data,description:""});var _="success"===g.data.status,b=_?f.default:d.default,y=_?p.default:u.default;return(0,m.jsxs)(w,{className:"page-invite__wrapper",children:[(0,m.jsx)(v.default,{invitation:g.data}),(0,m.jsxs)("div",{className:"page-invite__card",children:[(0,m.jsx)(b,{invitation:g.data}),(0,m.jsx)(c.default,{invitation:g.data,passportColor:r}),(0,m.jsx)(y,{invitation:g.data,onLogin:o,checkFn:h,onReceive:x})]})]})}g.propTypes={getDataFn:r.default.func.isRequired,checkFn:r.default.func.isRequired,onLoginSuccess:r.default.func,onReceive:r.default.func,passportColor:r.default.string},g.defaultProps={onLoginSuccess:function(){},passportColor:"auto",onReceive:null};var _,b,w=o.default.div(i||(_=["\n max-width: 460px;\n max-height: 650px;\n min-height: 450px;\n width: 90%;\n height: 80%;\n display: flex;\n flex-direction: column;\n .page-invite__card {\n background-color: #fff;\n border-radius: 4px;\n flex: 1;\n padding: 20px 30px;\n margin-top: 10px;\n }\n .page-invite__app {\n margin-top: 20px;\n }\n"],b||(b=_.slice(0)),i=Object.freeze(Object.defineProperties(_,{raw:{value:Object.freeze(b)}})))),y=(0,h.default)(g);n.Z=y},55372:function(e,n,t){"use strict";var i=t(77668),r=t(55319),o=t(5433);e.exports={translations:{zh:i(o),en:i(r)}}},1914:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return function(n){return(0,o.jsx)(i.LocaleProvider,{translations:r.translations,children:(0,o.jsx)(e,s({},n))})}};var i=t(52118),r=t(55372),o=t(96266);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){l(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function l(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,n||"default");if("object"!==typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===typeof n?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[9194],{64402:function(n,t,r){"use strict";r.d(t,{a:function(){return i}});var e=r(5057),i=function(n){return function(t,r){var i=(0,e.useRef)(!1);n((function(){return function(){i.current=!1}}),[]),n((function(){if(i.current)return t();i.current=!0}),r)}}},93066:function(n,t,r){"use strict";r.d(t,{Z:function(){return u}});var e=r(5057),i=r(45336);function u(n,t){var r=(0,e.useRef)({deps:t,obj:void 0,initialized:!1}).current;return!1!==r.initialized&&(0,i.Z)(r.deps,t)||(r.deps=t,r.obj=n(),r.initialized=!0),r.obj}},7411:function(n,t,r){"use strict";var e=r(9161),i=r(67047),u=r.n(i),o=r(5057),a=r(67120),c=r(78923),s=r(89141),f=r(59818);t.Z=function(n,t){var r;f.Z&&((0,s.mf)(n)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof n)));var i=(0,a.Z)(n),l=null!==(r=null===t||void 0===t?void 0:t.wait)&&void 0!==r?r:1e3,d=(0,o.useMemo)((function(){return u()((function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return i.current.apply(i,(0,e.__spreadArray)([],(0,e.__read)(n),!1))}),l,t)}),[]);return(0,c.Z)((function(){d.cancel()})),{run:d,cancel:d.cancel,flush:d.flush}}},80226:function(n,t,r){"use strict";var e=r(67120),i=r(41168),u=r(78590);t.Z=function(n,t,r){void 0===r&&(r={});var o=(0,e.Z)(t);(0,u.Z)((function(){var t=(0,i.n)(r.target,window);if(null===t||void 0===t?void 0:t.addEventListener){var e=function(n){return o.current(n)};return t.addEventListener(n,e,{capture:r.capture,once:r.once,passive:r.passive}),function(){t.removeEventListener(n,e,{capture:r.capture})}}}),[n,r.capture,r.once,r.passive],r.target)}},66411:function(n,t,r){"use strict";r.d(t,{Z:function(){return f}});var e=r(9161),i=r(5057),u=r(80226),o=r(99360),a=r(27429),c=r(64217),s=r(41168),f=function(n,t){void 0===t&&(t={});var r=t.target,f=t.isNoMore,l=t.threshold,d=void 0===l?100:l,v=t.reloadDeps,p=void 0===v?[]:v,h=t.manual,m=t.onBefore,_=t.onSuccess,y=t.onError,g=t.onFinally,Z=(0,e.__read)((0,i.useState)(),2),w=Z[0],b=Z[1],A=(0,e.__read)((0,i.useState)(!1),2),E=A[0],R=A[1],T=(0,i.useMemo)((function(){return!!f&&f(w)}),[w]),P=(0,a.Z)((function(t){return(0,e.__awaiter)(void 0,void 0,void 0,(function(){var r;return(0,e.__generator)(this,(function(i){switch(i.label){case 0:return[4,n(t)];case 1:return r=i.sent(),b(t?(0,e.__assign)((0,e.__assign)({},r),{list:(0,e.__spreadArray)((0,e.__spreadArray)([],(0,e.__read)(t.list),!1),(0,e.__read)(r.list),!1)}):r),[2,r]}}))}))}),{manual:h,onFinally:function(n,t,r){R(!1),null===g||void 0===g||g(t,r)},onBefore:function(){return null===m||void 0===m?void 0:m()},onSuccess:function(n){setTimeout((function(){C()})),null===_||void 0===_||_(n)},onError:function(n){return null===y||void 0===y?void 0:y(n)}}),M=P.loading,x=P.run,S=P.runAsync,H=P.cancel,j=(0,o.Z)((function(){T||(R(!0),x(w))})),O=(0,o.Z)((function(){return T?Promise.reject():(R(!0),S(w))})),C=function(){var n=(0,s.n)(r);if(n){var t=function(n){return n===document||n===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):n.scrollTop}(n=n===document?document.documentElement:n),e=function(n){return n.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)}(n),i=function(n){return n.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)}(n);e-t<=i+d&&j()}};return(0,u.Z)("scroll",(function(){M||E||C()}),{target:r}),(0,c.Z)((function(){x()}),(0,e.__spreadArray)([],(0,e.__read)(p),!1)),{data:w,loading:!E&&M,loadingMore:E,noMore:T,loadMore:j,loadMoreAsync:O,reload:(0,o.Z)((function(){return R(!1),x()})),reloadAsync:(0,o.Z)((function(){return R(!1),S()})),mutate:b,cancel:H}}},67120:function(n,t,r){"use strict";var e=r(5057);t.Z=function(n){var t=(0,e.useRef)(n);return t.current=n,t}},99360:function(n,t,r){"use strict";var e=r(5057),i=r(89141),u=r(59818);t.Z=function(n){u.Z&&((0,i.mf)(n)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof n)));var t=(0,e.useRef)(n);t.current=(0,e.useMemo)((function(){return n}),[n]);var r=(0,e.useRef)();return r.current||(r.current=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t.current.apply(this,n)}),r.current}},42061:function(n,t,r){"use strict";var e=r(5057),i=r(89141),u=r(59818);t.Z=function(n){u.Z&&((0,i.mf)(n)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof n,'".'))),(0,e.useEffect)((function(){null===n||void 0===n||n()}),[])}},12673:function(n,t,r){"use strict";var e=r(5057),i=r(72946),u=r.n(i),o=r(93066),a=r(39861),c=new WeakMap,s=new WeakMap;function f(n,t){var r=c.get(n);if(r)return r;if(s.has(n))return n;var e=new Proxy(n,{get:function(n,r,e){var i=Reflect.get(n,r,e);return u()(i)||Array.isArray(i)?f(i,t):i},set:function(n,r,e){var i=Reflect.set(n,r,e);return t(),i},deleteProperty:function(n,r){var e=Reflect.deleteProperty(n,r);return t(),e}});return c.set(n,e),s.set(e,n),e}t.Z=function(n){var t=(0,a.Z)(),r=(0,e.useRef)(n);return(0,o.Z)((function(){return f(r.current,(function(){t()}))}),[])}},27429:function(n,t,r){"use strict";r.d(t,{Z:function(){return N}});var e=r(9161),i=r(5057),u=r(64217),o=function(n,t){var r=t.manual,o=t.ready,a=void 0===o||o,c=t.defaultParams,s=void 0===c?[]:c,f=t.refreshDeps,l=void 0===f?[]:f,d=t.refreshDepsAction,v=(0,i.useRef)(!1);return v.current=!1,(0,u.Z)((function(){!r&&a&&(v.current=!0,n.run.apply(n,(0,e.__spreadArray)([],(0,e.__read)(s),!1)))}),[a]),(0,u.Z)((function(){v.current||r||(v.current=!0,d?d():n.refresh())}),(0,e.__spreadArray)([],(0,e.__read)(l),!1)),{onBefore:function(){if(!a)return{stopNow:!0}}}};o.onInit=function(n){var t=n.ready,r=void 0===t||t;return{loading:!n.manual&&r}};var a=o,c=r(93066),s=r(78923),f=r(813),l=new Map,d={},v=function(n,t){return d[n]||(d[n]=[]),d[n].push(t),function(){var r=d[n].indexOf(t);d[n].splice(r,1)}},p=function(n,t){var r=t.cacheKey,u=t.cacheTime,o=void 0===u?3e5:u,a=t.staleTime,p=void 0===a?0:a,h=t.setCache,m=t.getCache,_=(0,i.useRef)(),y=(0,i.useRef)(),g=function(n,t){h?h(t):f.K7(n,o,t),function(n,t){d[n]&&d[n].forEach((function(n){return n(t)}))}(n,t.data)},Z=function(n,t){return void 0===t&&(t=[]),m?m(t):f.lJ(n)};return(0,c.Z)((function(){if(r){var t=Z(r);t&&Object.hasOwnProperty.call(t,"data")&&(n.state.data=t.data,n.state.params=t.params,(-1===p||(new Date).getTime()-t.time<=p)&&(n.state.loading=!1)),_.current=v(r,(function(t){n.setState({data:t})}))}}),[]),(0,s.Z)((function(){var n;null===(n=_.current)||void 0===n||n.call(_)})),r?{onBefore:function(n){var t=Z(r,n);return t&&Object.hasOwnProperty.call(t,"data")?-1===p||(new Date).getTime()-t.time<=p?{loading:!1,data:null===t||void 0===t?void 0:t.data,error:void 0,returnNow:!0}:{data:null===t||void 0===t?void 0:t.data,error:void 0}:{}},onRequest:function(n,t){var i=function(n){return l.get(n)}(r);return i&&i!==y.current||(i=n.apply(void 0,(0,e.__spreadArray)([],(0,e.__read)(t),!1)),y.current=i,function(n,t){l.set(n,t),t.then((function(t){return l.delete(n),t})).catch((function(){l.delete(n)}))}(r,i)),{servicePromise:i}},onSuccess:function(t,e){var i;r&&(null===(i=_.current)||void 0===i||i.call(_),g(r,{data:t,params:e,time:(new Date).getTime()}),_.current=v(r,(function(t){n.setState({data:t})})))},onMutate:function(t){var e;r&&(null===(e=_.current)||void 0===e||e.call(_),g(r,{data:t,params:n.state.params,time:(new Date).getTime()}),_.current=v(r,(function(t){n.setState({data:t})})))}}:{}},h=r(67047),m=r.n(h),_=function(n,t){var r=t.debounceWait,u=t.debounceLeading,o=t.debounceTrailing,a=t.debounceMaxWait,c=(0,i.useRef)(),s=(0,i.useMemo)((function(){var n={};return void 0!==u&&(n.leading=u),void 0!==o&&(n.trailing=o),void 0!==a&&(n.maxWait=a),n}),[u,o,a]);return(0,i.useEffect)((function(){if(r){var t=n.runAsync.bind(n);return c.current=m()((function(n){n()}),r,s),n.runAsync=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new Promise((function(r,i){var u;null===(u=c.current)||void 0===u||u.call(c,(function(){t.apply(void 0,(0,e.__spreadArray)([],(0,e.__read)(n),!1)).then(r).catch(i)}))}))},function(){var r;null===(r=c.current)||void 0===r||r.cancel(),n.runAsync=t}}}),[r,s]),r?{onCancel:function(){var n;null===(n=c.current)||void 0===n||n.cancel()}}:{}},y=function(n,t){var r=t.loadingDelay,e=t.ready,u=(0,i.useRef)();if(!r)return{};var o=function(){u.current&&clearTimeout(u.current)};return{onBefore:function(){return o(),!1!==e&&(u.current=setTimeout((function(){n.setState({loading:!0})}),r)),{loading:!1}},onFinally:function(){o()},onCancel:function(){o()}}},g=r(87374);function Z(){return!g.Z||"hidden"!==document.visibilityState}var w=[];if(g.Z){window.addEventListener("visibilitychange",(function(){if(Z())for(var n=0;n<w.length;n++){(0,w[n])()}}),!1)}var b=function(n){return w.push(n),function(){var t=w.indexOf(n);w.splice(t,1)}},A=function(n,t){var r=t.pollingInterval,e=t.pollingWhenHidden,o=void 0===e||e,a=t.pollingErrorRetryCount,c=void 0===a?-1:a,s=(0,i.useRef)(),f=(0,i.useRef)(),l=(0,i.useRef)(0),d=function(){var n;s.current&&clearTimeout(s.current),null===(n=f.current)||void 0===n||n.call(f)};return(0,u.Z)((function(){r||d()}),[r]),r?{onBefore:function(){d()},onError:function(){l.current+=1},onSuccess:function(){l.current=0},onFinally:function(){-1===c||-1!==c&&l.current<=c?s.current=setTimeout((function(){o||Z()?n.refresh():f.current=b((function(){n.refresh()}))}),r):l.current=0},onCancel:function(){d()}}:{}};var E=[];if(g.Z){var R=function(){if(Z()&&(!g.Z||"undefined"===typeof navigator.onLine||navigator.onLine))for(var n=0;n<E.length;n++){(0,E[n])()}};window.addEventListener("visibilitychange",R,!1),window.addEventListener("focus",R,!1)}var T=function(n){return E.push(n),function(){var t=E.indexOf(n);t>-1&&E.splice(t,1)}},P=function(n,t){var r=t.refreshOnWindowFocus,u=t.focusTimespan,o=void 0===u?5e3:u,a=(0,i.useRef)(),c=function(){var n;null===(n=a.current)||void 0===n||n.call(a)};return(0,i.useEffect)((function(){if(r){var t=function(n,t){var r=!1;return function(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];r||(r=!0,n.apply(void 0,(0,e.__spreadArray)([],(0,e.__read)(i),!1)),setTimeout((function(){r=!1}),t))}}(n.refresh.bind(n),o);a.current=T((function(){t()}))}return function(){c()}}),[r,o]),(0,s.Z)((function(){c()})),{}},M=function(n,t){var r=t.retryInterval,e=t.retryCount,u=(0,i.useRef)(),o=(0,i.useRef)(0),a=(0,i.useRef)(!1);return e?{onBefore:function(){a.current||(o.current=0),a.current=!1,u.current&&clearTimeout(u.current)},onSuccess:function(){o.current=0},onError:function(){if(o.current+=1,-1===e||o.current<=e){var t=null!==r&&void 0!==r?r:Math.min(1e3*Math.pow(2,o.current),3e4);u.current=setTimeout((function(){a.current=!0,n.refresh()}),t)}else o.current=0},onCancel:function(){o.current=0,u.current&&clearTimeout(u.current)}}:{}},x=r(8406),S=r.n(x),H=function(n,t){var r=t.throttleWait,u=t.throttleLeading,o=t.throttleTrailing,a=(0,i.useRef)(),c={};return void 0!==u&&(c.leading=u),void 0!==o&&(c.trailing=o),(0,i.useEffect)((function(){if(r){var t=n.runAsync.bind(n);return a.current=S()((function(n){n()}),r,c),n.runAsync=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new Promise((function(r,i){var u;null===(u=a.current)||void 0===u||u.call(a,(function(){t.apply(void 0,(0,e.__spreadArray)([],(0,e.__read)(n),!1)).then(r).catch(i)}))}))},function(){var r;n.runAsync=t,null===(r=a.current)||void 0===r||r.cancel()}}}),[r,u,o]),r?{onCancel:function(){var n;null===(n=a.current)||void 0===n||n.cancel()}}:{}},j=r(67120),O=r(99360),C=r(42061),B=r(39861),D=r(59818),F=r(89141),L=function(){function n(n,t,r,i){void 0===i&&(i={}),this.serviceRef=n,this.options=t,this.subscribe=r,this.initState=i,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=(0,e.__assign)((0,e.__assign)((0,e.__assign)({},this.state),{loading:!t.manual}),i)}return n.prototype.setState=function(n){void 0===n&&(n={}),this.state=(0,e.__assign)((0,e.__assign)({},this.state),n),this.subscribe()},n.prototype.runPluginHandler=function(n){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=this.pluginImpls.map((function(r){var i;return null===(i=r[n])||void 0===i?void 0:i.call.apply(i,(0,e.__spreadArray)([r],(0,e.__read)(t),!1))})).filter(Boolean);return Object.assign.apply(Object,(0,e.__spreadArray)([{}],(0,e.__read)(i),!1))},n.prototype.runAsync=function(){for(var n,t,r,i,u,o,a,c,s,f,l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];return(0,e.__awaiter)(this,void 0,void 0,(function(){var d,v,p,h,m,_,y,g,Z,w,b;return(0,e.__generator)(this,(function(A){switch(A.label){case 0:if(this.count+=1,d=this.count,v=this.runPluginHandler("onBefore",l),p=v.stopNow,h=void 0!==p&&p,m=v.returnNow,_=void 0!==m&&m,y=(0,e.__rest)(v,["stopNow","returnNow"]),h)return[2,new Promise((function(){}))];if(this.setState((0,e.__assign)({loading:!0,params:l},y)),_)return[2,Promise.resolve(y.data)];null===(t=(n=this.options).onBefore)||void 0===t||t.call(n,l),A.label=1;case 1:return A.trys.push([1,3,,4]),(g=this.runPluginHandler("onRequest",this.serviceRef.current,l).servicePromise)||(g=(b=this.serviceRef).current.apply(b,(0,e.__spreadArray)([],(0,e.__read)(l),!1))),[4,g];case 2:return Z=A.sent(),d!==this.count?[2,new Promise((function(){}))]:(this.setState({data:Z,error:void 0,loading:!1}),null===(i=(r=this.options).onSuccess)||void 0===i||i.call(r,Z,l),this.runPluginHandler("onSuccess",Z,l),null===(o=(u=this.options).onFinally)||void 0===o||o.call(u,l,Z,void 0),d===this.count&&this.runPluginHandler("onFinally",l,Z,void 0),[2,Z]);case 3:if(w=A.sent(),d!==this.count)return[2,new Promise((function(){}))];throw this.setState({error:w,loading:!1}),null===(c=(a=this.options).onError)||void 0===c||c.call(a,w,l),this.runPluginHandler("onError",w,l),null===(f=(s=this.options).onFinally)||void 0===f||f.call(s,l,void 0,w),d===this.count&&this.runPluginHandler("onFinally",l,void 0,w),w;case 4:return[2]}}))}))},n.prototype.run=function(){for(var n=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.runAsync.apply(this,(0,e.__spreadArray)([],(0,e.__read)(t),!1)).catch((function(t){n.options.onError||console.error(t)}))},n.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},n.prototype.refresh=function(){this.run.apply(this,(0,e.__spreadArray)([],(0,e.__read)(this.state.params||[]),!1))},n.prototype.refreshAsync=function(){return this.runAsync.apply(this,(0,e.__spreadArray)([],(0,e.__read)(this.state.params||[]),!1))},n.prototype.mutate=function(n){var t=(0,F.mf)(n)?n(this.state.data):n;this.runPluginHandler("onMutate",t),this.setState({data:t})},n}(),W=L;var k=function(n,t,r){void 0===t&&(t={}),void 0===r&&(r=[]);var i=t.manual,u=void 0!==i&&i,o=(0,e.__rest)(t,["manual"]);D.Z&&t.defaultParams&&!Array.isArray(t.defaultParams)&&console.warn("expected defaultParams is array, got ".concat(typeof t.defaultParams));var a=(0,e.__assign)({manual:u},o),f=(0,j.Z)(n),l=(0,B.Z)(),d=(0,c.Z)((function(){var n=r.map((function(n){var t;return null===(t=null===n||void 0===n?void 0:n.onInit)||void 0===t?void 0:t.call(n,a)})).filter(Boolean);return new W(f,a,l,Object.assign.apply(Object,(0,e.__spreadArray)([{}],(0,e.__read)(n),!1)))}),[]);return d.options=a,d.pluginImpls=r.map((function(n){return n(d,a)})),(0,C.Z)((function(){if(!u){var n=d.state.params||t.defaultParams||[];d.run.apply(d,(0,e.__spreadArray)([],(0,e.__read)(n),!1))}})),(0,s.Z)((function(){d.cancel()})),{loading:d.state.loading,data:d.state.data,error:d.state.error,params:d.state.params||[],cancel:(0,O.Z)(d.cancel.bind(d)),refresh:(0,O.Z)(d.refresh.bind(d)),refreshAsync:(0,O.Z)(d.refreshAsync.bind(d)),run:(0,O.Z)(d.run.bind(d)),runAsync:(0,O.Z)(d.runAsync.bind(d)),mutate:(0,O.Z)(d.mutate.bind(d))}};var N=function(n,t,r){return k(n,t,(0,e.__spreadArray)((0,e.__spreadArray)([],(0,e.__read)(r||[]),!1),[_,y,A,P,H,a,p,M],!1))}},813:function(n,t,r){"use strict";r.d(t,{K7:function(){return u},LK:function(){return a},lJ:function(){return o}});var e=r(9161),i=new Map,u=function(n,t,r){var u=i.get(n);(null===u||void 0===u?void 0:u.timer)&&clearTimeout(u.timer);var o=void 0;t>-1&&(o=setTimeout((function(){i.delete(n)}),t)),i.set(n,(0,e.__assign)((0,e.__assign)({},r),{timer:o}))},o=function(n){return i.get(n)},a=function(n){n?(Array.isArray(n)?n:[n]).forEach((function(n){return i.delete(n)})):i.clear()}},78923:function(n,t,r){"use strict";var e=r(5057),i=r(67120),u=r(89141),o=r(59818);t.Z=function(n){o.Z&&((0,u.mf)(n)||console.error("useUnmount expected parameter is a function, got ".concat(typeof n)));var t=(0,i.Z)(n);(0,e.useEffect)((function(){return function(){t.current()}}),[])}},39861:function(n,t,r){"use strict";var e=r(9161),i=r(5057);t.Z=function(){var n=(0,e.__read)((0,i.useState)({}),2)[1];return(0,i.useCallback)((function(){return n({})}),[])}},64217:function(n,t,r){"use strict";var e=r(5057),i=r(64402);t.Z=(0,i.a)(e.useEffect)},36941:function(n,t,r){"use strict";var e=r(5057),i=r(78923),u=r(45336),o=r(41168);t.Z=function(n){return function(t,r,a){var c=(0,e.useRef)(!1),s=(0,e.useRef)([]),f=(0,e.useRef)([]),l=(0,e.useRef)();n((function(){var n,e=(Array.isArray(a)?a:[a]).map((function(n){return(0,o.n)(n)}));if(!c.current)return c.current=!0,s.current=e,f.current=r,void(l.current=t());e.length===s.current.length&&(0,u.Z)(e,s.current)&&(0,u.Z)(r,f.current)||(null===(n=l.current)||void 0===n||n.call(l),s.current=e,f.current=r,l.current=t())})),(0,i.Z)((function(){var n;null===(n=l.current)||void 0===n||n.call(l),c.current=!1}))}}},45336:function(n,t,r){"use strict";function e(n,t){if(n===t)return!0;for(var r=0;r<n.length;r++)if(!Object.is(n[r],t[r]))return!1;return!0}r.d(t,{Z:function(){return e}})},41168:function(n,t,r){"use strict";r.d(t,{n:function(){return u}});var e=r(89141),i=r(87374);function u(n,t){if(i.Z)return n?(0,e.mf)(n)?n():"current"in n?n.current:n:t}},89141:function(n,t,r){"use strict";r.d(t,{G7:function(){return c},HD:function(){return u},Kn:function(){return e},hj:function(){return a},jn:function(){return o},mf:function(){return i}});var e=function(n){return null!==n&&"object"===typeof n},i=function(n){return"function"===typeof n},u=function(n){return"string"===typeof n},o=function(n){return"boolean"===typeof n},a=function(n){return"number"===typeof n},c=function(n){return"undefined"===typeof n}},87374:function(n,t){"use strict";var r=!("undefined"===typeof window||!window.document||!window.document.createElement);t.Z=r},59818:function(n,t){"use strict";t.Z=!1},78590:function(n,t,r){"use strict";var e=r(5057),i=(0,r(36941).Z)(e.useEffect);t.Z=i},67047:function(n,t,r){var e=r(26271),i=r(72685),u=r(81692),o=Math.max,a=Math.min;n.exports=function(n,t,r){var c,s,f,l,d,v,p=0,h=!1,m=!1,_=!0;if("function"!=typeof n)throw new TypeError("Expected a function");function y(t){var r=c,e=s;return c=s=void 0,p=t,l=n.apply(e,r)}function g(n){var r=n-v;return void 0===v||r>=t||r<0||m&&n-p>=f}function Z(){var n=i();if(g(n))return w(n);d=setTimeout(Z,function(n){var r=t-(n-v);return m?a(r,f-(n-p)):r}(n))}function w(n){return d=void 0,_&&c?y(n):(c=s=void 0,l)}function b(){var n=i(),r=g(n);if(c=arguments,s=this,v=n,r){if(void 0===d)return function(n){return p=n,d=setTimeout(Z,t),h?y(n):l}(v);if(m)return clearTimeout(d),d=setTimeout(Z,t),y(v)}return void 0===d&&(d=setTimeout(Z,t)),l}return t=u(t)||0,e(r)&&(h=!!r.leading,f=(m="maxWait"in r)?o(u(r.maxWait)||0,t):f,_="trailing"in r?!!r.trailing:_),b.cancel=function(){void 0!==d&&clearTimeout(d),p=0,c=v=s=d=void 0},b.flush=function(){return void 0===d?l:w(i())},b}},72685:function(n,t,r){var e=r(56164);n.exports=function(){return e.Date.now()}},8406:function(n,t,r){var e=r(67047),i=r(26271);n.exports=function(n,t,r){var u=!0,o=!0;if("function"!=typeof n)throw new TypeError("Expected a function");return i(r)&&(u="leading"in r?!!r.leading:u,o="trailing"in r?!!r.trailing:o),e(n,t,{leading:u,maxWait:t,trailing:o})}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[9199],{33029:function(e,n,t){"use strict";t.d(n,{Z:function(){return Zn}});var r,o,i,a,l,c,s,u,p,d,f,m,h,y,g,x,b=t(59740),v=t(71171),k=t(32723),j=t(34795),w=t(33028),Z=t(96234),S=t(96266),C=t(96366),P=t(21371),T=t(66044),_=t(51634),R=t(56556),O=t(44846),z=t(72904),B=t(3267),N=t(97752),A=t(70011),E=t(25228),M=t(37200),D=t(74490),q=t(1733),I=t(19654),F=t(53070),L=t(12594),J=t(39948),U=t(15e3),G=t(48733),V=t(52439),W=t(44686),H=t(5057),K=t(55898),Q=t.n(K),X=t(12673),Y=t(66411),$=t(27429),ee=t(7411),ne=t(35355),te=t.n(ne),re=t(10458),oe=t.n(re),ie=t(33938),ae=t.n(ie),le=t(6352),ce=t.n(le),se=(t(25842),t(51210)),ue=t.n(se),pe=t(77668),de=t.n(pe),fe=t(10248),me=t(75506),he=t.n(me),ye=t(695),ge=t(99593),xe=t(19561),be=t(55402),ve=t(92204),ke=t(11750),je=t(57201),we=t(13727),Ze=t(82073),Se=t(94333),Ce=t(23031),Pe=(t(94924),["children","rounded","loading","disabled"]),Te=["title","value","icon","prepend","options","onChange","itemRender"],_e=["label","icon","onDelete"],Re=["blocklets"],Oe=["placeholder"],ze=["query","state"],Be=function(e){return[{name:e("sort.popularity"),value:"popularity"},{name:e("sort.lastPublished"),value:"publishAt"},{name:e("sort.nameAscend"),value:"nameAsc"},{name:e("sort.nameDescend"),value:"nameDesc"}]},Ne=function(e){return[{name:e("blocklet.free"),value:"free"},{name:e("blocklet.payment"),value:"payment"}]},Ae=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((function(n){return{name:n.locales[e]||"Category.".concat(e),value:n._id}}))},Ee=function(e,n){return e.replace(/{(\w*)}/g,(function(e,t){return n.hasOwnProperty(t)?n[t]:""}))},Me=function(){return window.innerWidth<=600},De=function(e,n){var t=(e+n)/n;return t>1?t.toFixed():1},qe=function(e){return ue()(e).rgb().object()};var Ie=function(e,n){var t;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t&&clearTimeout(t),new Promise((function(r){t=setTimeout((function(){return r(e.apply(void 0,o))}),n)}))}}((function(e){return Promise.resolve(e)}),300),Fe={en:de()({common:{searchStore:"Search the store",price:"Price",category:"Category"},sort:{sort:"Sort",nameDescend:"Name Descending",nameAscend:"Name Ascending",popularity:"Most Popular",lastPublished:"Latest Published"},category:{all:"All",placeholder:"Category name",helperText:"Please select a category"},blocklet:{noResults:"No Blocklets",payment:"Paid Blocklets",free:"Fee Blocklets",emptyTip:"Tips:",filterTip:"Appropriately reduce the filter conditions",keywordTip:"Try other keywords",owner:"Blocklets from {name}",noBlockletPart1:'No Blocklets associated with"',noBlockletPart2:'"were found',noCategoryResults1:'No "',noCategoryResults2:'" Blocklets'},autocomplete:{expandResult:'Show {number} search results for "{name}" '}}),zh:de()({common:{searchStore:"\u641c\u7d22\u5546\u5e97\u5185\u5e94\u7528",price:"\u4ef7\u683c",category:"\u7c7b\u522b"},sort:{sort:"\u6392\u5e8f",nameDescend:"\u540d\u79f0\u964d\u5e8f",nameAscend:"\u540d\u79f0\u5347\u5e8f",popularity:"\u6700\u70ed\u95e8",lastPublished:"\u6700\u65b0\u53d1\u5e03"},category:{all:"\u5168\u90e8",placeholder:"\u5206\u7c7b\u540d\u79f0",helperText:"\u8bf7\u9009\u62e9\u5206\u7c7b"},blocklet:{noResults:"\u6682\u65e0\u5e94\u7528",free:"\u514d\u8d39\u5e94\u7528",payment:"\u4ed8\u8d39\u5e94\u7528",emptyTip:"\u5efa\u8bae:",filterTip:"\u9002\u5f53\u51cf\u5c11\u7b5b\u9009\u6761\u4ef6",keywordTip:"\u5c1d\u8bd5\u5176\u4ed6\u5173\u952e\u5b57",owner:"\u6765\u81ea {name} \u7684 Blocklets",noBlockletPart1:'\u6ca1\u6709\u627e\u5230\u4e0e"',noBlockletPart2:'"\u76f8\u5173\u7684 Blocklets',noCategoryResults1:'\u65e0 "',noCategoryResults2:'" \u7c7b\u522b\u7684 Blocklets'},autocomplete:{expandResult:"\u663e\u793a {number} \u6761 \u201c{name}\u201d \u7684\u641c\u7d22\u7ed3\u679c "}})},Le={filters:Q().shape({keyword:Q().string,sortBy:Q().string,sortDirection:Q().string,price:Q().string,category:Q().string,developer:Q().string}),wrapChildren:Q().func,extraFilter:Q().func,endpoint:Q().string.isRequired,blockletRender:Q().func.isRequired,onFilterChange:Q().func,onSearchSelect:Q().func,locale:Q().oneOf(["zh","en"]),baseSearch:Q().bool},Je={locale:"zh",filters:{},onFilterChange:function(){},onSearchSelect:function(e){var n=e.detailUrl;window.location.href=n},wrapChildren:function(e){return e},extraFilter:function(e){return e},baseSearch:!1},Ue={nameAsc:"title",nameDesc:"title",popularity:"stats.downloads",publishAt:"lastPublishedAt",mobilePageSize:10,pageSize:18,defaultCurrentPage:1,blockletsPath:"/api/v2/blocklets.json",categoriesPath:"/api/blocklets/categories",cacheSize:100},Ge=(0,H.createContext)({}),Ve=Ge.Provider;Ge.Consumer;function We(e){var n=e.filters,t=e.children,r=e.endpoint,o=e.locale,i=e.blockletRender,a=e.onFilterChange,l=e.onSearchSelect,c=e.extraFilter,s=e.wrapChildren,u=e.baseSearch,p=e.serverVersion,d=e.storeVersion,f={};p&&(f["x-blocklet-server-version"]=p),d&&(f["x-blocklet-store-version"]=d);var m=(0,H.useMemo)((function(){return oe().create({baseURL:r,headers:f})}),[r]),h=(0,H.useMemo)((function(){return(0,w.Z)({sortBy:"popularity",sortDirection:"desc"},n)}),[n]),y=h.category,g=(0,X.Z)({currentPage:Ue.currentPage,pageSize:Me()?Ue.mobilePageSize:Ue.pageSize,defaultCurrentPage:Ue.defaultCurrentPage}),x=(0,H.useState)(null),b=(0,Z.Z)(x,2),v=b[0],C=b[1],P=(0,Y.Z)(function(){var e=(0,j.Z)((0,k.Z)().mark((function e(n){var t,r,o,i,a;return(0,k.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(0,w.Z)((0,w.Z)({},h),{},{sortBy:Ue[h.sortBy],page:De((null==(t=null==n?void 0:n.list)?void 0:t.length)||0,g.pageSize),pageSize:g.pageSize}),C(null),e.next=4,m.get(Ue.blockletsPath,{params:r});case 4:return o=e.sent,i=o.data,a=void 0===i?{}:i,e.abrupt("return",{list:(null==a?void 0:a.dataList)||[],total:(null==a?void 0:a.total)||0});case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),{isNoMore:function(e){return!!e&&e.list.length>=e.total},reloadDeps:[r,ae()(n)],onError:function(e){C(e)}}),T=P.data,_=void 0===T?{list:[],total:0}:T,R=P.loading,O=P.loadMore,z=P.loadingMore,B=(0,$.Z)((0,j.Z)((0,k.Z)().mark((function e(){var n,t;return(0,k.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m.get(Ue.categoriesPath);case 2:return n=e.sent,t=n.data,e.abrupt("return",Array.isArray(t)?t:[]);case 5:case"end":return e.stop()}}),e)}))),{manual:!0}),N=B.data,A=void 0===N?[]:N,E=B.error,M=B.loading,D=B.run,q=(0,H.useMemo)((function(){return te()(A||[],[function(e){return e.name}],["asc"])}),[A]),I=(0,H.useCallback)((function(e,n){var t=Fe[o]?Fe[o][e]:Fe.en[e];return Ee(t,n)}),[o]),F=(0,H.useMemo)((function(){var e=_.list||[];return e=c(e)}),[_,c]),L=(0,H.useMemo)((function(){return Ae(q,o)}),[q,o]),J=Ne(I),U={errors:{fetchBlockletsError:v,fetchCategoriesError:E},loadings:{fetchBlockletsLoading:R,fetchCategoriesLoading:M,loadingMore:z},endpoint:r,blockletList:F,wrapChildren:s,t:I,filters:h,selectedCategory:y,categoryList:q,blockletRender:i,locale:o,categoryOptions:L,priceOptions:J,storeApi:m,baseSearch:u,hasNextPage:_.list.length<_.total,handleSort:function(e){var n=(0,w.Z)((0,w.Z)({},h),{},{sortBy:e,sortDirection:"nameAsc"===e?"asc":"desc"});a(n)},handleKeyword:function(e){var n=(0,w.Z)((0,w.Z)({},h),{},{keyword:e||void 0});a(n)},handlePrice:function(e){var n=(0,w.Z)((0,w.Z)({},h),{},{price:e===h.price?void 0:e});a(n)},handleCategory:function(e){var n=e;("all"===e||e===h.category)&&(n=void 0);var t=(0,w.Z)((0,w.Z)({},h),{},{category:n});a(t)},handleDeveloper:function(e){var n=(0,w.Z)((0,w.Z)({},h),{},{owner:e||void 0});a(n)},handlePage:function(e){var n=(0,w.Z)((0,w.Z)({},h),{},{currentPage:e});a(n)},loadMore:function(){O()},getCategoryLocale:function(e){if(!e)return null;var n=null,t=A.find((function(n){return n._id===e}));return t&&(n=t.locales[o]),n},get developerName(){var e,n;return(null==(n=null==(e=F.find((function(e){var n;return(null==(n=null==e?void 0:e.owner)?void 0:n.did)===h.owner})))?void 0:e.owner)?void 0:n.name)||""},handleSearchSelect:l};return(0,H.useEffect)((function(){D()}),[r]),(0,S.jsx)(Ve,{value:U,children:t})}function He(){return(0,H.useContext)(Ge)||{}}We.propTypes=(0,w.Z)((0,w.Z)({},Le),{},{children:Q().any.isRequired}),We.defaultProps=Je;var Ke=(0,T.styled)(R.Z)(r||(r=(0,v.Z)(["\n border-radius: 4px;\n"]))),Qe=(0,H.forwardRef)((function(e,n){var t=e.children,r=(e.rounded,e.loading),o=e.disabled,i=(0,b.Z)(e,Pe);return(0,S.jsx)(Ke,(0,w.Z)((0,w.Z)({ref:n,disableElevation:!0,disabled:o||r},i),{},{startIcon:r&&(0,S.jsx)(O.Z,{size:"1em"}),children:t}))}));function Xe(e){var n=e.title,t=e.value,r=e.icon,o=e.prepend,i=e.options,a=e.onChange,l=e.itemRender,c=(0,b.Z)(e,Te),s=(0,H.useRef)(null),u=(0,C.default)(),p=(0,H.useState)(!1),d=(0,Z.Z)(p,2),f=d[0],m=d[1],h=(0,H.useState)(null!==t?t:""),y=(0,Z.Z)(h,2),g=y[0],x=y[1],v=(0,z.Z)(u.breakpoints.down("sm"));(0,H.useEffect)((function(){x(null!==t?t:"")}),[t]);var k=(0,H.useCallback)((function(){m(!1)}),[]),j=(0,H.useCallback)((function(){m(!0)}),[]);function P(e){return e===g}return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(Ye,(0,w.Z)((0,w.Z)({ref:s,onClick:j,variant:"outlined",size:"small",className:["my-select__selector",he()(g)?"":"my-select__selector--active"].join(" ")},c),{},{children:[(0,S.jsx)("div",{className:"my-select__icon",children:r}),n,(0,S.jsx)(B.Z,{className:"my-select__arrowdown",component:fe.default,fontSize:"small"})]})),(0,S.jsx)(N.Z,{open:f,anchorEl:s.current,transition:!0,style:{zIndex:"9999"},children:function(e){var n=e.TransitionProps,t=e.placement;return(0,S.jsx)(A.Z,(0,w.Z)((0,w.Z)({},n),{},{style:{transformOrigin:"bottom"===t?"center top":"center bottom"},children:(0,S.jsx)(E.Z,{children:(0,S.jsx)(M.Z,{onClickAway:k,children:(0,S.jsxs)($e,{autoFocusItem:f,onMouseEnter:j,onMouseLeave:k,children:[o,i.map((function(e){return l?l(e):(0,S.jsx)(D.Z,{onClick:function(){return function(e){x(e.value),a(e.value),v&&k()}(e)},className:["my-select__option",P(e.value)?"my-select__option--active":""].join(" "),children:e.name},e.value)}))]})})})}))}})]})}Qe.propTypes={children:Q().any,rounded:Q().bool,loading:Q().bool,disabled:Q().bool},Qe.defaultProps={children:null,rounded:!1,loading:!1,disabled:!1},Xe.propTypes={options:Q().array.isRequired,value:Q().oneOfType([Q().string,Q().number,Q().array]),onChange:Q().func,itemRender:Q().func,title:Q().string.isRequired,icon:Q().any,prepend:Q().any},Xe.defaultProps={value:null,icon:null,prepend:null,itemRender:null,onChange:function(){}};var Ye=(0,T.styled)(Qe)(o||(o=(0,v.Z)(["\n border: 1px solid #f0f0f0;\n padding: 6px 8px 6px 12px;\n font-weight: ",";\n font-size: 16px;\n color: #666;\n line-height: 1;\n text-transform: none;\n min-width: 100px;\n & + & {\n margin-left: 10px;\n }\n &.my-select__selector--active {\n &,\n .my-select__arrowdown,\n .my-select__icon svg {\n color: ",";\n }\n }\n .my-select__arrowdown {\n color: #999;\n font-size: 16px;\n margin-left: 6px;\n }\n .my-select__icon {\n font-size: 0;\n svg {\n color: #999;\n font-size: 18px;\n margin-right: 3px;\n }\n }\n"])),(function(e){return e.theme.typography.fontWeightBold}),(function(e){return e.theme.palette.primary.main})),$e=(0,T.styled)(q.Z)(i||(i=(0,v.Z)(["\n .my-select__option__icon {\n color: transparent;\n font-size: 16px;\n margin: 0 3px 0 -5px;\n }\n .my-select__option {\n font-size: 16px;\n color: #999;\n }\n .my-select__option--active {\n &,\n .my-select__option__icon {\n color: ",";\n }\n }\n"])),(function(e){return e.theme.palette.primary.main}));function en(e){var n=e.options,t=e.onChange,r=e.title,o=e.value;return(0,S.jsxs)(nn,{children:[(0,S.jsx)("div",{className:"title",children:r}),(0,S.jsx)("div",{className:"list",children:n.map((function(e){return(0,S.jsx)("div",{title:e.name,"data-cy":"filter",className:o===e.value?"select item":"item",onClick:function(){return t(e.value)},children:e.name},e.value)}))})]})}var nn=(0,T.styled)("div")(a||(a=(0,v.Z)(["\n .title {\n font-size: 18px;\n font-weight: bold;\n margin-bottom: ",";\n }\n .list {\n }\n .item {\n font-size: 16px;\n padding: ",";\n color: #9397a1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n text-transform: capitalize;\n cursor: pointer;\n &:hover {\n background-color: ",";\n color: initial;\n font-weight: bold;\n }\n }\n .select {\n color: ",";\n font-weight: bold;\n }\n"])),(function(e){return e.theme.spacing(1)}),(function(e){return e.theme.spacing(1)}),(function(e){return e.theme.palette.grey[50]}),(function(e){return e.theme.palette.primary.main}));function tn(){var e=He(),n=e.selectedCategory,t=e.handleCategory,r=e.t,o=e.handlePrice,i=e.filters,a=e.categoryOptions,l=e.priceOptions,c=(0,H.useState)(!1),s=(0,Z.Z)(c,2),u=s[0],p=s[1],d=function(e,n){"category"===e&&t(n),"price"===e&&o(n),p(!1)};return(0,S.jsxs)(rn,{children:[(0,S.jsx)(R.Z,{variant:"outlined",className:"filter-button",onClick:function(){return p(!0)},children:(0,S.jsx)(ye.default,{className:"filter-icon",fontSize:"small"})}),(0,S.jsxs)(ge.default,{fullWidth:!0,title:"",open:u,onClose:function(){return p(!1)},children:[(0,S.jsx)(en,{title:r("common.price"),options:l,value:i.price,onChange:function(e){d("price",e)}}),a.length>0&&(0,S.jsx)("div",{style:{marginTop:"16px"},children:(0,S.jsx)(en,{title:r("common.category"),options:a,value:n,onChange:function(e){d("category",e)}})})]})]})}en.propTypes={title:Q().string.isRequired,options:Q().array.isRequired,onChange:Q().func.isRequired,value:Q().oneOfType([Q().string,Q().number])},en.defaultProps={value:null};var rn=(0,T.styled)("div")(l||(l=(0,v.Z)(["\n .filter-button {\n margin-right: 16px;\n border-color: rgb(240, 240, 240);\n padding: 5px 8px;\n min-width: initial;\n }\n .filter-icon {\n cursor: pointer;\n color: ",";\n }\n"])),(function(e){return e.theme.palette.grey[500]}));tn.propTypes={},tn.defaultProps={};var on=(0,T.styled)("div")(c||(c=(0,v.Z)(["\n .MuiChip-root {\n border-radius: 4px;\n height: initial;\n text-transform: capitalize;\n margin-right: ",";\n padding: 4px 0;\n }\n"])),(function(e){return e.theme.spacing(2)}));function an(e){var n=e.label,t=e.icon,r=e.onDelete,o=(0,b.Z)(e,_e);return n?(0,S.jsx)(on,(0,w.Z)((0,w.Z)({},o),{},{children:(0,S.jsx)(I.Z,{color:"primary","data-cy":"filter-tag",icon:t,label:n,onDelete:r})})):null}function ln(){var e=He().t;return(0,S.jsx)(ke.Z,{style:{textAlign:"center"},variant:"subtitle2",children:e("blocklet.noResults")})}function cn(e){var n=e.filterTip,t=e.keywordTip,r=He(),o=r.t,i=r.locale;return(0,S.jsxs)(J.Z,{className:"tips",children:[(0,S.jsx)("span",{style:{marginRight:"16px"},children:o("blocklet.emptyTip")}),n&&(0,S.jsx)("span",{children:o("blocklet.filterTip")}),n&&t&&("zh"===i?"\u3001":" , "),t&&(0,S.jsx)("span",{children:o("blocklet.keywordTip")})]})}function sn(e){var n=e.primaryStart,t=e.primaryEnd,r=e.filter;return(0,S.jsxs)(ke.Z,{variant:"subtitle2",children:[(0,S.jsx)("span",{children:n}),(0,S.jsxs)("span",{className:"primary",children:[" ",r," "]}),(0,S.jsxs)("span",{children:[t," "]})]})}function un(e){var n=e.blocklets,t=(0,b.Z)(e,Re),r=He(),o=r.blockletRender,i=r.errors,a=r.loadings,l=r.selectedCategory,c=r.getCategoryLocale,s=r.filters,u=r.t,p=r.hasNextPage,d=r.loadMore,f=r.endpoint,m=!!l||!!s.price,h=(0,ve.default)({loading:a.fetchBlockletsLoading||a.loadingMore,hasNextPage:p,onLoadMore:d}),y=(0,Z.Z)(h,1)[0];if(i.fetchBlockletsError)return(0,S.jsx)(W.ErrorFallback,{error:new Error("Failed to fetch blocklets from ".concat(f,": ").concat(i.fetchBlockletsError.message))});if(a.fetchBlockletsLoading)return(0,S.jsx)(J.Z,{height:60,display:"flex",alignItems:"center",justifyContent:"center",children:(0,S.jsx)(O.Z,{})});if(s.keyword&&m&&0===n.length)return(0,S.jsxs)(fn,{children:[(0,S.jsx)(sn,{primaryStart:u("blocklet.noBlockletPart1"),primaryEnd:u("blocklet.noBlockletPart2"),filter:s.keyword}),(0,S.jsx)(cn,{keywordTip:!0,filterTip:!0})]});if(s.keyword&&0===n.length)return(0,S.jsxs)(fn,{children:[(0,S.jsx)(sn,{primaryStart:u("blocklet.noBlockletPart1"),primaryEnd:u("blocklet.noBlockletPart2"),filter:s.keyword}),(0,S.jsx)(cn,{keywordTip:!0})]});if(m&&0===n.length){var g=c(l);return(0,S.jsxs)(fn,{children:[g?(0,S.jsx)(sn,{primaryStart:u("blocklet.noCategoryResults1"),primaryEnd:u("blocklet.noCategoryResults2"),filter:g}):(0,S.jsx)(ln,{}),(0,S.jsx)(cn,{filterTip:!0})]})}return 0===n.length?(0,S.jsx)(fn,{children:(0,S.jsx)(ln,{})}):(0,S.jsxs)(pn,(0,w.Z)((0,w.Z)({container:!0},t),{},{children:[n.map((function(e){return(0,S.jsx)(dn,{item:!0,lg:4,md:6,sm:6,xs:12,"data-blocklet-did":e.did,children:o({blocklet:e,blocklets:n})},e.did)})),p&&(0,S.jsx)(dn,{item:!0,md:12,sm:12,xs:12,ref:y,children:(0,S.jsx)(J.Z,{height:60,display:"flex",justifyContent:"center",children:(0,S.jsx)(O.Z,{})})})]}))}an.propTypes={label:Q().string,onDelete:Q().func,icon:Q().element},an.defaultProps={onDelete:function(){},icon:null,label:null},cn.propTypes={filterTip:Q().bool,keywordTip:Q().bool},cn.defaultProps={filterTip:!1,keywordTip:!1},sn.propTypes={primaryStart:Q().string.isRequired,primaryEnd:Q().string.isRequired,filter:Q().string.isRequired},un.propTypes={blocklets:Q().array.isRequired},un.defaultProps={};var pn=(0,T.styled)(be.ZP)(s||(s=(0,v.Z)(["\n &.MuiGrid-root {\n width: 100%;\n margin: 0 -16px;\n }\n"]))),dn=(0,H.memo)((0,T.styled)(be.ZP)(u||(u=(0,v.Z)(["\n @media (max-width: ","px) {\n &.MuiGrid-item {\n padding-bottom: 0px;\n }\n }\n @media (min-width: ","px) {\n &.MuiGrid-item {\n margin-bottom: ",";\n }\n }\n"])),(function(e){return e.theme.breakpoints.values.sm}),(function(e){return e.theme.breakpoints.values.sm}),(function(e){return e.theme.spacing(2)}))),fn=(0,T.styled)(xe.default)(p||(p=(0,v.Z)(["\n text-align: center;\n .primary {\n color: ",";\n }\n .tips {\n margin-top: ",";\n }\n"])),(function(e){return e.theme.palette.primary.main}),(function(e){return e.theme.spacing(1)}));function mn(){var e=He(),n=e.selectedCategory,t=e.handleCategory,r=e.t,o=e.handlePrice,i=e.filters,a=e.categoryOptions,l=e.priceOptions;return(0,S.jsxs)(hn,{children:[(0,S.jsx)("div",{children:(0,S.jsx)(en,{title:r("common.price"),options:l,value:i.price,onChange:o})}),a.length>0&&(0,S.jsx)("div",{style:{marginTop:"16px"},children:(0,S.jsx)(en,{title:r("common.category"),options:a,value:n,onChange:t})})]})}var hn=(0,T.styled)("aside")(d||(d=(0,v.Z)(["\n width: 220px;\n margin-right: ",";\n height: 100%;\n position: sticky;\n top: 0;\n overflow-y: auto;\n z-index: auto;\n"])),(function(e){return e.theme.spacing(2)}));function yn(e){var n=e.placeholder,t=(0,b.Z)(e,Oe),r=He(),o=r.filters,i=r.handleKeyword,a=(0,H.useState)(o.keyword||""),l=(0,Z.Z)(a,2),c=l[0],s=l[1],u=(0,ee.Z)(i,{wait:300});return(0,H.useEffect)((function(){s(o.keyword||"")}),[o.keyword]),(0,S.jsx)(gn,(0,w.Z)({inputProps:{"data-cy":"search-blocklet"},startAdornment:(0,S.jsx)(F.Z,{position:"start",children:(0,S.jsx)(xn,{})}),onChange:function(e){var n=e.target.value;s(n),u.run(n)},placeholder:n,value:c,title:n,"data-cy":"search",endAdornment:c&&(0,S.jsx)(F.Z,{position:"end",children:(0,S.jsx)(bn,{"data-cy":"search-delete",onClick:function(){s(""),i()}})})},t))}mn.propTypes={},mn.defaultProps={},yn.propTypes={placeholder:Q().string},yn.defaultProps={placeholder:"Type to search..."};var gn=(0,T.styled)(L.Z)(f||(f=(0,v.Z)(["\n background-color: ",";\n font-size: 14px;\n border-radius: 6px;\n .MuiInputBase-input {\n padding: 8px 0 8px 10px;\n }\n .MuiOutlinedInput-notchedOutline {\n border: none;\n }\n .Mui-focused {\n background-color: #f6f6f6;\n .MuiInputBase-input::placeholder {\n color: transparent;\n }\n }\n"])),(function(e){return e.theme.palette.grey[50]})),xn=(0,T.styled)(je.default)(m||(m=(0,v.Z)(["\n color: ",";\n font-size: 28px;\n @media (max-width: ","px) {\n font-size: 24px;\n }\n"])),(function(e){return e.theme.palette.grey[500]}),(function(e){return e.theme.breakpoints.values.md})),bn=(0,T.styled)(we.default)(h||(h=(0,v.Z)(["\n color: ",";\n font-size: 16px;\n cursor: pointer;\n"])),(function(e){return e.theme.palette.grey[500]}));function vn(e){var n=e.onSelect,t=e.wrapChildren,r=(0,H.useRef)(null),o=(0,H.useRef)(null),i=(0,H.useRef)(null),a=He(),l=a.storeApi,c=a.blockletRender,s=a.filters,u=a.endpoint,p=a.handleKeyword,d=a.t,f=function(){var e=(0,j.Z)((0,k.Z)().mark((function e(n){var t,r,o;return(0,k.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.get(Ue.blockletsPath,{params:n});case 2:return t=e.sent,r=t.data,o=r.dataList||[],e.abrupt("return",(o.length>0&&o.unshift({type:"more-result",total:r.total||0}),o));case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),m=function(e){p(e.state.query),e.setIsOpen(!1)},h=function(){r.current&&setTimeout((function(){var e=r.current.querySelector("input.bl-autocomplete-input");e&&e.focus()}))};return(0,Ce.useHotkeys)("ctrl + k, command + k",(function(e){return e.stopPropagation(),e.preventDefault(),h(),!1}),{enableOnTags:["INPUT"]}),(0,H.useEffect)((function(){h()}),[u]),(0,H.useEffect)((function(){if(r.current){var e=(0,Se.H)({container:r.current,renderer:{createElement:H.createElement,Fragment:H.Fragment,render:function(){}},render:function(e,n){var r,a=e.children;(!o.current||i.current!==n)&&(i.current=n,null==(r=o.current)||r.unmount(),o.current=(0,Ze.createRoot)(n)),o.current.render(t(a))},autoFocus:!0,openOnFocus:!1,classNames:{panel:"bl-autocomplete-panel",label:"bl-autocomplete-label",form:"bl-autocomplete-form",input:"bl-autocomplete-input",clearButton:"bl-autocomplete-clear"},placeholder:d("common.searchStore"),initialState:{query:s.keyword},onStateChange:function(e){!function(e){var n=e.prevState,t=e.state;n.query!==t.query&&(t.query||p())}(e)},onSubmit:m,onReset:function(e){!function(e){e.setIsOpen(!1),h()}(e)},getSources:function(e){var t=e.query,r=(e.state,(0,b.Z)(e,ze)),o=(0,w.Z)((0,w.Z)({},s),{},{sortBy:Ue[s.sortBy],page:1,pageSize:10,keyword:t});return Ie([{sourceId:"blocklets",getItems:function(){return f(o)},getItemInputValue:function(e){var n=e.item;return"more-result"===n.type?t:n.title},onSelect:function(e){var o=e.event,i=e.item;return"more-result"===i.type?(r.setIsOpen(!1),p(t)):"keydown"===o.type?p(i.title):n({blocklet:i,detailUrl:ce()(u,"/blocklets/".concat(i.did)),storeUrl:u})},templates:{item:function(e){var n=e.item;return"more-result"===n.type?(0,S.jsx)("div",{children:d("autocomplete.expandResult",{name:t,number:n.total.toLocaleString()})}):c({blocklet:n,autocompleteSetters:r})},noResults:function(){return d("blocklet.noResults")}}}])}});return function(){e.destroy()}}}),[s,c]),(0,S.jsx)("div",{className:"bl-search-container",ref:r})}function kn(){var e,n,t=He(),r=t.handleDeveloper,o=t.blockletList,i=t.filters,a=t.developerName,l=t.handleSort,c=t.handleCategory,s=t.handlePrice,u=t.handleSearchSelect,p=t.t,d=t.getCategoryLocale,f=t.priceOptions,m=t.wrapChildren,h=t.baseSearch,y=Be(p),g=(null==(e=y.find((function(e){return e.value===i.sortBy})))?void 0:e.name)||p("sort.sort"),x=d(i.category),b=null==(n=f.find((function(e){return e.value===i.price})))?void 0:n.name;return(0,S.jsxs)(J.Z,{display:"flex",alignItems:"flex-start",height:"100%",children:[(0,S.jsx)(U.Z,{mdDown:!0,children:(0,S.jsx)(mn,{})}),(0,S.jsxs)(jn,{children:[(0,S.jsxs)(wn,{children:[(0,S.jsxs)(J.Z,{className:"filter-bar",display:"flex",alignItems:"center",children:[h?(0,S.jsx)(yn,{className:"bl-search-container",placeholder:p("common.searchStore")}):(0,S.jsx)(vn,{onSelect:u,wrapChildren:m}),(0,S.jsxs)(J.Z,{mt:0,ml:"16px",className:"filter-container",children:[(0,S.jsx)(U.Z,{mdUp:!0,children:(0,S.jsx)(tn,{})}),(0,S.jsx)(Xe,{value:i.sortBy,options:y,title:g,icon:(0,S.jsx)(_.default,{}),onChange:function(e){l(e)}})]})]}),(0,S.jsxs)(J.Z,{display:"flex",flexWrap:"wrap",alignItems:"center",mb:"16px",children:[(0,S.jsx)(an,{label:a,icon:(0,S.jsx)(G.default,{}),onDelete:function(){r(null)}}),(0,S.jsx)(an,{label:x,onDelete:function(){c(null)}}),(0,S.jsx)(an,{label:b,onDelete:function(){s(null)}})]})]}),(0,S.jsx)(V.ErrorBoundary,{FallbackComponent:W.ErrorFallback,children:(0,S.jsx)("div",{style:{position:"relative",flex:1,overflow:"auto"},children:(0,S.jsx)(un,{blocklets:o})})})]})]})}vn.propTypes={onSelect:Q().func.isRequired,wrapChildren:Q().func},vn.defaultProps={wrapChildren:function(e){return e}};var jn=(0,T.styled)("main")(y||(y=(0,v.Z)(["\n display: flex;\n flex-direction: column;\n flex: 1;\n width: 100%;\n height: 100%;\n .filter-bar {\n justify-content: space-between;\n margin-bottom: ",";\n }\n .sort-button {\n white-space: nowrap;\n }\n .bl-search-container {\n flex: 2;\n margin-left: 0px;\n }\n\n .filter-container {\n flex: 1;\n display: flex;\n justify-content: flex-end;\n }\n @media (max-width: ","px) {\n .bl-search-container {\n width: 100%;\n margin-bottom: ",";\n }\n .filter-container {\n margin-left: 0;\n display: flex;\n justify-content: flex-start;\n }\n .filter-bar {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n }\n }\n @media (max-width: ","px) {\n .sort-button {\n font-size: 12px;\n }\n }\n"])),(function(e){return e.theme.spacing(2)}),(function(e){return e.theme.breakpoints.values.md}),(function(e){return e.theme.spacing(2)}),(function(e){return e.theme.breakpoints.values.md})),wn=(0,T.styled)("div")(g||(g=(0,v.Z)(["\n position: sticky;\n top: 0;\n z-index: 9;\n background-color: white;\n"])));function Zn(e){var n=(0,C.default)(),t=qe(n.palette.primary.main),r={autocomplete:(0,P.css)(x||(x=(0,v.Z)(["\n :root {\n --aa-detached-media-query: (max-width: ","px) !important;\n --aa-detached-modal-media-query: (min-width: ","px) !important;\n --aa-detached-modal-max-width: ","px !important;\n --aa-selected-color-rgb: ",", ",", "," !important;\n --aa-primary-color-rgb: ",", ",", "," !important;\n --aa-input-background-color-rgb: 250, 250, 250 !important;\n }\n .bl-autocomplete-panel {\n z-index: ",";\n }\n .bl-autocomplete-label {\n .aa-SubmitIcon {\n color: "," !important;\n }\n }\n .bl-autocomplete-form {\n border: 1px solid #fff !important;\n &:focus-within {\n box-shadow: none !important;\n border: 1px solid rgba(0, 0, 0, 0.12) !important;\n }\n }\n .aa-DetachedSearchButton {\n border: none !important;\n &:focus-within {\n box-shadow: none !important;\n }\n .aa-SubmitIcon {\n color: "," !important;\n }\n }\n .aa-Panel .arcblock-blocklet button {\n border: 1px solid rgba(",", ",", ",", 0.5);\n }\n "])),n.breakpoints.values.md,n.breakpoints.values.md,n.breakpoints.values.md,t.r,t.g,t.b,t.r,t.g,t.b,n.zIndex.modal,n.palette.grey[500],n.palette.grey[500],t.r,t.g,t.b)};return(0,S.jsxs)(We,(0,w.Z)((0,w.Z)({},e),{},{children:[(0,S.jsx)(P.Global,{styles:r.autocomplete}),(0,S.jsx)(kn,{})]}))}Zn.propTypes=Le,Zn.defaultProps=Je},44919:function(e,n,t){"use strict";var r=t(71600);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=r(t(56930)),i=t(96266),a=(0,o.default)((0,i.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");n.default=a},57201:function(e,n,t){"use strict";var r=t(71600);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=r(t(56930)),i=t(96266),a=(0,o.default)((0,i.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");n.default=a},33938:function(e,n,t){"use strict";var r="undefined"!==typeof JSON?JSON:t(99426),o=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},i=Object.keys||function(e){var n=Object.prototype.hasOwnProperty||function(){return!0},t=[];for(var r in e)n.call(e,r)&&t.push(r);return t};e.exports=function(e,n){n||(n={}),"function"===typeof n&&(n={cmp:n});var t=n.space||"";"number"===typeof t&&(t=Array(t+1).join(" "));var a,l="boolean"===typeof n.cycles&&n.cycles,c=n.replacer||function(e,n){return n},s=n.cmp&&(a=n.cmp,function(e){return function(n,t){var r={key:n,value:e[n]},o={key:t,value:e[t]};return a(r,o)}}),u=[];return function e(n,a,p,d){var f=t?"\n"+new Array(d+1).join(t):"",m=t?": ":":";if(p&&p.toJSON&&"function"===typeof p.toJSON&&(p=p.toJSON()),void 0!==(p=c.call(n,a,p))){if("object"!==typeof p||null===p)return r.stringify(p);if(o(p)){for(var h=[],y=0;y<p.length;y++){var g=e(p,y,p[y],d+1)||r.stringify(null);h.push(f+t+g)}return"["+h.join(",")+f+"]"}if(-1!==u.indexOf(p)){if(l)return r.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}u.push(p);var x=i(p).sort(s&&s(p));for(h=[],y=0;y<x.length;y++){var b=e(p,a=x[y],p[a],d+1);if(b){var v=r.stringify(a)+m+b;h.push(f+t+v)}}return u.splice(u.indexOf(p),1),"{"+h.join(",")+f+"}"}}({"":e},"",e,0)}},99426:function(e,n,t){"use strict";n.parse=t(1329),n.stringify=t(17326)},1329:function(e){"use strict";var n,t,r,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function i(e){throw{name:"SyntaxError",message:e,at:n,text:r}}function a(e){return e&&e!==t&&i("Expected '"+e+"' instead of '"+t+"'"),t=r.charAt(n),n+=1,t}function l(){var e,n="";for("-"===t&&(n="-",a("-"));t>="0"&&t<="9";)n+=t,a();if("."===t)for(n+=".";a()&&t>="0"&&t<="9";)n+=t;if("e"===t||"E"===t)for(n+=t,a(),"-"!==t&&"+"!==t||(n+=t,a());t>="0"&&t<="9";)n+=t,a();return e=Number(n),isFinite(e)||i("Bad number"),e}function c(){var e,n,r,l="";if('"'===t)for(;a();){if('"'===t)return a(),l;if("\\"===t)if(a(),"u"===t){for(r=0,n=0;n<4&&(e=parseInt(a(),16),isFinite(e));n+=1)r=16*r+e;l+=String.fromCharCode(r)}else{if("string"!==typeof o[t])break;l+=o[t]}else l+=t}i("Bad string")}function s(){for(;t&&t<=" ";)a()}function u(){switch(s(),t){case"{":return function(){var e,n={};if("{"===t){if(a("{"),s(),"}"===t)return a("}"),n;for(;t;){if(e=c(),s(),a(":"),Object.prototype.hasOwnProperty.call(n,e)&&i('Duplicate key "'+e+'"'),n[e]=u(),s(),"}"===t)return a("}"),n;a(","),s()}}i("Bad object")}();case"[":return function(){var e=[];if("["===t){if(a("["),s(),"]"===t)return a("]"),e;for(;t;){if(e.push(u()),s(),"]"===t)return a("]"),e;a(","),s()}}i("Bad array")}();case'"':return c();case"-":return l();default:return t>="0"&&t<="9"?l():function(){switch(t){case"t":return a("t"),a("r"),a("u"),a("e"),!0;case"f":return a("f"),a("a"),a("l"),a("s"),a("e"),!1;case"n":return a("n"),a("u"),a("l"),a("l"),null;default:i("Unexpected '"+t+"'")}}()}}e.exports=function(e,o){var a;return r=e,n=0,t=" ",a=u(),s(),t&&i("Syntax error"),"function"===typeof o?function e(n,t){var r,i,a=n[t];if(a&&"object"===typeof a)for(r in u)Object.prototype.hasOwnProperty.call(a,r)&&("undefined"===typeof(i=e(a,r))?delete a[r]:a[r]=i);return o.call(n,t,a)}({"":a},""):a}},17326:function(e){"use strict";var n,t,r,o=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,i={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function a(e){return o.lastIndex=0,o.test(e)?'"'+e.replace(o,(function(e){var n=i[e];return"string"===typeof n?n:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function l(e,o){var i,c,s,u,p,d=n,f=o[e];switch(f&&"object"===typeof f&&"function"===typeof f.toJSON&&(f=f.toJSON(e)),"function"===typeof r&&(f=r.call(o,e,f)),typeof f){case"string":return a(f);case"number":return isFinite(f)?String(f):"null";case"boolean":case"null":return String(f);case"object":if(!f)return"null";if(n+=t,p=[],"[object Array]"===Object.prototype.toString.apply(f)){for(u=f.length,i=0;i<u;i+=1)p[i]=l(i,f)||"null";return s=0===p.length?"[]":n?"[\n"+n+p.join(",\n"+n)+"\n"+d+"]":"["+p.join(",")+"]",n=d,s}if(r&&"object"===typeof r)for(u=r.length,i=0;i<u;i+=1)"string"===typeof(c=r[i])&&(s=l(c,f))&&p.push(a(c)+(n?": ":":")+s);else for(c in f)Object.prototype.hasOwnProperty.call(f,c)&&(s=l(c,f))&&p.push(a(c)+(n?": ":":")+s);return s=0===p.length?"{}":n?"{\n"+n+p.join(",\n"+n)+"\n"+d+"}":"{"+p.join(",")+"}",n=d,s}}e.exports=function(e,o,i){var a;if(n="",t="","number"===typeof i)for(a=0;a<i;a+=1)t+=" ";else"string"===typeof i&&(t=i);if(r=o,o&&"function"!==typeof o&&("object"!==typeof o||"number"!==typeof o.length))throw new Error("JSON.stringify");return l("",{"":e})}},75506:function(e,n,t){var r=t(74525),o=t(34493),i=t(79689),a=t(44028),l=t(90653),c=t(43401),s=t(98604),u=t(52563),p=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(l(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||c(e)||u(e)||i(e)))return!e.length;var n=o(e);if("[object Map]"==n||"[object Set]"==n)return!e.size;if(s(e))return!r(e).length;for(var t in e)if(p.call(e,t))return!1;return!0}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[9244],{51736:function(e,n,t){var r=t(43681).default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i,o=t(5057),a=f(t(33518)),l=f(t(55898)),u=f(t(75790)),s=f(t(13714)),c=f(t(99593)),p=f(t(67526)),d=t(96266);function f(e){return e&&e.__esModule?e:{default:e}}function h(e){var n=e.onContinue,t=e.nextDisabled,i=e.launching,a=e.texts,l=e.description,f=(0,o.useState)(!1),h=r(f,2),m=h[0],v=h[1];return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(y,{children:(0,d.jsxs)(p.default,{disabled:t,onConfirm:n,children:[(0,d.jsx)("div",{className:"eula-trigger",onClick:function(){return v((function(e){return!e}))},children:a.listenName}),(0,d.jsx)(s.default,{disabled:t,color:"primary",variant:"contained",className:"next-button",onClick:n,children:i?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(u.default,{size:14}),a.launchingText]}):a.buttonNext})]})}),(0,d.jsx)(c.default,{open:m,title:a.listenName,onClose:function(){return v(!1)},children:l})]})}h.propTypes={onContinue:l.default.func.isRequired,nextDisabled:l.default.bool,launching:l.default.bool,description:l.default.any,texts:l.default.object},h.defaultProps={nextDisabled:!1,launching:!1,description:"",texts:{listenName:"",launchingText:"",buttonNext:""}};var m,v,y=a.default.div(i||(m=["\n margin: 0 auto;\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n @media (max-width: ","px) {\n flex-direction: column;\n }\n\n .eula-trigger {\n cursor: pointer;\n text-decoration: underline;\n "," {\n padding-right: 24px;\n }\n "," {\n padding: 16px;\n }\n font-size: 14px;\n white-space: nowrap;\n &:hover {\n color: ",";\n }\n }\n\n .next-button {\n min-width: 200px;\n }\n"],v||(v=m.slice(0)),i=Object.freeze(Object.defineProperties(m,{raw:{value:Object.freeze(v)}}))),(function(e){return e.theme.breakpoints.values.sm}),(function(e){return e.theme.breakpoints.up("md")}),(function(e){return e.theme.breakpoints.down("md")}),(function(e){return e.theme.palette.primary.main})),x=h;n.default=x},42970:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,i=t(5057),o=v(t(55898)),a=t(38242),l=v(t(54725)),u=v(t(33518)),s=v(t(39862)),c=v(t(34126)),p=v(t(6729)),d=v(t(77105)),f=v(t(94918)),h=v(t(23232)),m=t(96266);function v(e){return e&&e.__esModule?e:{default:e}}var y=new s.default({createElement:i.createElement}).Compiler,x={zh:{appinfo:{name:"\u5e94\u7528\u540d",version:"\u7248\u672c\u53f7",author:"\u5f00\u53d1\u8005",description:"\u63cf\u8ff0",community:"\u793e\u533a\u5730\u5740",documentation:"\u6587\u6863\u624b\u518c",support:"\u670d\u52a1\u652f\u6301",overview:"\u6982\u8ff0",requirements:"\u8282\u70b9\u7248\u672c\u8981\u6c42"}},en:{appinfo:{name:"Name",version:"Version",author:"Author",description:"Description",community:"Community",documentation:"Documentation",support:"Support",overview:"Overview",requirements:"Server requirements"}}};function b(e){var n,t,r=e.blockletMeta,i=e.locale,o=e.handleDescEle,u=r.data,s=(0,a.getDisplayName)({meta:u}),v=u&&u.htmlAst?y(u.htmlAst):"",b=!(n=u).payment||(n.payment.price||[]).map((function(e){return e.value||0})).every((function(e){return 0===e})),g=[{key:(0,l.default)(x[i],"appinfo.name"),value:(0,a.getDisplayName)({meta:u})},{key:(0,l.default)(x[i],"appinfo.version"),value:u.version},{key:(0,l.default)(x[i],"appinfo.author"),value:(0,l.default)(u,"author.name")},{type:"description",key:(0,l.default)(x[i],"appinfo.description"),value:u.description}];return u.requirements&&g.push({key:(0,l.default)(x[i],"appinfo.requirements"),value:u.requirements.server}),u.community&&g.push({key:(0,l.default)(x[i],"appinfo.community"),value:(0,m.jsx)("a",{href:u.community,target:"_blank",rel:"noreferrer",children:u.community})}),u.documentation&&g.push({key:(0,l.default)(x[i],"appinfo.documentation"),value:(0,m.jsx)("a",{href:u.documentation,target:"_blank",rel:"noreferrer",children:u.documentation})}),u.support&&g.push({key:(0,l.default)(x[i],"appinfo.support"),value:(0,m.jsx)("a",{href:"mailto:".concat(u.support),target:"_blank",rel:"noreferrer",children:u.support})}),v&&g.push({key:(0,l.default)(x[i],"appinfo.overview"),value:""}),t="zh"===i?(0,m.jsxs)(m.Fragment,{children:[b?(0,m.jsxs)("p",{children:["\u60a8\u53ef\u4ee5\u514d\u8d39\u4f7f\u7528 ",(0,m.jsx)("b",{children:s}),"\uff1b"]}):(0,m.jsxs)("p",{children:["\u60a8\u9700\u8981\u8d2d\u4e70\u624d\u80fd\u4f7f\u7528 ",(0,m.jsx)("b",{children:s}),"\uff1b"]}),(0,m.jsx)("p",{children:"\u5728\u5e94\u7528\u542f\u52a8\u524d\uff0c\u9700\u8981\u9009\u62e9\u60a8\u7684\u8282\u70b9\uff1b"}),(0,m.jsx)("p",{children:"\u5982\u679c\u60a8\u6ca1\u6709\u8282\u70b9\uff0c\u6211\u4eec\u4f1a\u5f15\u5bfc\u60a8\u521b\u5efa\u65b0\u7684\u8282\u70b9\uff1b"}),(0,m.jsx)("p",{children:"\u4e0b\u9762\u4e3a\u8be5\u5e94\u7528\u7684\u4fe1\u606f\uff1a"})]}):(0,m.jsxs)(m.Fragment,{children:[b?(0,m.jsxs)("p",{children:["You can use ",(0,m.jsx)("b",{children:s})," for free;"]}):(0,m.jsxs)("p",{children:["You need to purchase before launch ",(0,m.jsx)("b",{children:s}),";"]}),(0,m.jsx)("p",{children:"Before the blocklet starts, you need to select your Blocklet Server; "}),(0,m.jsx)("p",{children:"If you do not have any Blocklet Server, we will guide you to create a new one; "}),(0,m.jsx)("p",{children:"Below is the information for the blocklet: "})]}),(0,m.jsxs)(w,{children:[o||t,(0,m.jsx)("div",{className:"info-table",children:(0,m.jsx)(f.default,{children:(0,m.jsx)(c.default,{size:"small",children:(0,m.jsx)(p.default,{children:g.map((function(e){return(0,m.jsxs)(h.default,{children:[(0,m.jsx)(d.default,{component:"th",scope:"row",style:{width:100},children:(0,m.jsx)("div",{style:{fontWeight:"bold",whiteSpace:"nowrap"},children:e.key})}),(0,m.jsx)(d.default,{children:e.value})]},e.key)}))})})})}),(0,m.jsx)("div",{className:"app-overview",children:v})]})}var g,j,w=u.default.div(r||(g=["\n .info-table {\n a {\n word-break: break-all;\n }\n }\n .app-overview {\n font-size: 16px;\n margin: 16px 0 0 16px;\n h1 {\n margin: 8px 0;\n font-size: 20px;\n }\n h2 {\n margin: 8px 0;\n font-size: 18px;\n }\n ul {\n display: block;\n list-style-type: disc;\n padding-left: 2em;\n li {\n display: list-item;\n list-style: disc;\n }\n }\n blockquote {\n margin-left: 2em;\n }\n }\n"],j||(j=g.slice(0)),r=Object.freeze(Object.defineProperties(g,{raw:{value:Object.freeze(j)}}))));b.propTypes={blockletMeta:o.default.object.isRequired,locale:o.default.string.isRequired,handleDescEle:o.default.node},b.defaultProps={handleDescEle:""};var k=b;n.default=k},67526:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=a;var r,i=t(5057),o=(r=t(55898))&&r.__esModule?r:{default:r};function a(e){var n=e.disabled,t=e.children,r=e.onConfirm;return(0,i.useEffect)((function(){if(n)return function(){};var e=function(e){"Enter"!==e.code||!0!==e.metaKey&&!0!==e.ctrlKey||(e.preventDefault(),e.stopPropagation(),r())};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}),[n,r]),t}a.propTypes={disabled:o.default.bool,children:o.default.any.isRequired,onConfirm:o.default.func.isRequired},a.defaultProps={disabled:!1}},79630:function(e,n,t){var r=t(44231),i=Object.prototype.hasOwnProperty,o={align:"text-align",valign:"vertical-align",height:"height",width:"width"};function a(e){var n;if("tr"===e.tagName||"td"===e.tagName||"th"===e.tagName)for(n in o)i.call(o,n)&&void 0!==e.properties[n]&&(l(e,o[n],e.properties[n]),delete e.properties[n])}function l(e,n,t){var r=(e.properties.style||"").trim();r&&!/;\s*/.test(r)&&(r+=";"),r&&(r+=" ");var i=r+n+": "+t+";";e.properties.style=i}e.exports=function(e){return r(e,"element",a),e}},45938:function(e){function n(e){if("string"===typeof e)return function(e){return n;function n(n){return Boolean(n&&n.type===e)}}(e);if(null===e||void 0===e)return i;if("object"===typeof e)return("length"in e?r:t)(e);if("function"===typeof e)return e;throw new Error("Expected function, string, or object as test")}function t(e){return function(n){var t;for(t in e)if(n[t]!==e[t])return!1;return!0}}function r(e){var t=function(e){for(var t=[],r=e.length,i=-1;++i<r;)t[i]=n(e[i]);return t}(e),r=t.length;return function(){var e=-1;for(;++e<r;)if(t[e].apply(this,arguments))return!0;return!1}}function i(){return!0}e.exports=n},84962:function(e,n,t){e.exports=l;var r=t(45938),i=!0,o="skip",a=!1;function l(e,n,t,i){var l;function s(e,r,c){var p,d=[];return(n&&!l(e,r,c[c.length-1]||null)||(d=u(t(e,c)))[0]!==a)&&e.children&&d[0]!==o?(p=u(function(e,n){var t,r=-1,o=i?-1:1,l=(i?e.length:r)+o;for(;l>r&&l<e.length;){if((t=s(e[l],l,n))[0]===a)return t;l="number"===typeof t[1]?t[1]:l+o}}(e.children,c.concat(e))),p[0]===a?p:d):d}"function"===typeof n&&"function"!==typeof t&&(i=t,t=n,n=null),l=r(n),s(e,null,[])}function u(e){return null!==e&&"object"===typeof e&&"length"in e?e:"number"===typeof e?[i,e]:[e]}l.CONTINUE=i,l.SKIP=o,l.EXIT=a},44231:function(e,n,t){e.exports=l;var r=t(84962),i=r.CONTINUE,o=r.SKIP,a=r.EXIT;function l(e,n,t,i){"function"===typeof n&&"function"!==typeof t&&(i=t,t=n,n=null),r(e,n,(function(e,n){var r=n[n.length-1],i=r?r.children.indexOf(e):null;return t(e,i,r)}),i)}l.CONTINUE=i,l.SKIP=o,l.EXIT=a},48086:function(e,n,t){var r=t(71600);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t(56930)),o=t(96266),a=(0,i.default)((0,o.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");n.default=a},39862:function(e,n,t){t.r(n),t.d(n,{default:function(){return g}});var r=t(56666),i=t(37003),o=t(43382),a=t(29065),l=t(80443),u=t(18580),s=t(33313),c=t(67474),p={}.hasOwnProperty;function d(e,n,t){if("function"!==typeof e)throw new TypeError("h is not a function");var r,o,a=function(e){var n=e("div",{});return Boolean(n&&("_owner"in n||"_store"in n)&&(void 0===n.key||null===n.key))}(e),l=function(e){var n=e("div",{});return Boolean(n&&n.context&&n.context._isVue)}(e),u=function(e){var n=e("div",{});return"VirtualNode"===n.type}(e);if("string"===typeof t||"boolean"===typeof t?(r=t,t={}):(t||(t={}),r=t.prefix),n&&"root"===n.type){var s=n.children[0];o=1===n.children.length&&"element"===s.type?s:{type:"element",tagName:"div",properties:{},children:n.children}}else{if(!n||"element"!==n.type)throw new Error("Expected root or element, not `"+(n&&n.type||n)+"`");o=n}return f(e,o,{schema:"svg"===t.space?i.YP:i.dy,prefix:void 0===r||null===r?a||l||u?"h-":void 0:"string"===typeof r?r:r?"h-":void 0,key:0,react:a,vue:l,vdom:u,hyperscript:m(e)})}function f(e,n,t){var r,o=t.schema,a=o,l=n.tagName,u={},s=[],d=-1;for(r in"html"===o.space&&"svg"===l.toLowerCase()&&(a=i.YP,t.schema=a),n.properties)n.properties&&p.call(n.properties,r)&&h(u,r,n.properties[r],t,l);if(t.vdom&&("html"===a.space?l=l.toUpperCase():a.space&&(u.namespace=c.t[a.space])),t.prefix&&(t.key++,u.key=t.prefix+t.key),n.children)for(;++d<n.children.length;){var m=n.children[d];"element"===m.type?s.push(f(e,m,t)):"text"===m.type&&s.push(m.value)}return t.schema=o,s.length>0?e.call(n,l,u,s):e.call(n,l,u)}function h(e,n,t,i,c){var p,d=(0,o.s)(i.schema,n);void 0===t||null===t||"number"===typeof t&&Number.isNaN(t)||!1===t&&(i.vue||i.vdom||i.hyperscript)||!t&&d.boolean&&(i.vue||i.vdom||i.hyperscript)||(Array.isArray(t)&&(t=d.commaSeparated?(0,u.P)(t):(0,l.P)(t)),d.boolean&&i.hyperscript&&(t=""),"style"===d.property&&"string"===typeof t&&(i.react||i.vue||i.vdom)&&(t=function(e,n){var t={};try{(0,s.Z)(e,(function(e,n){"-ms-"===e.slice(0,4)&&(e="ms-"+e.slice(4)),t[e.replace(/-([a-z])/g,(function(e,n){return n.toUpperCase()}))]=n}))}catch(i){var r=i;throw r.message=n+"[style]"+r.message.slice(9),r}return t}(t,c)),i.vue?"style"!==d.property&&(p="attrs"):d.mustUseProperty||(i.vdom?"style"!==d.property&&(p="attributes"):i.hyperscript&&(p="attrs")),p?e[p]=Object.assign(e[p]||{},(0,r.Z)({},d.attribute,t)):d.space&&i.react?e[a.D[d.property]||d.property]=t:e[d.attribute]=t)}function m(e){return"context"in e&&"cleanup"in e}var v=t(79630),y=t(38482),x={}.hasOwnProperty,b=new Set(["table","thead","tbody","tfoot","tr"]);function g(e){if(!e||"function"!==typeof e.createElement)throw new TypeError("createElement is not a function");var n=e.createElement,t=!1!==e.fixTableCellAlign;function r(t,r,i){if(i&&b.has(t)&&(i=i.filter((function(e){return!(0,y.Q)(e)}))),e.components&&x.call(e.components,t)){var o=e.components[t];return e.passNode&&"function"===typeof o&&(r=Object.assign({node:this},r)),n(o,r,i)}return n(t,r,i)}Object.assign(this,{Compiler:function(i){var o=d(r,t?v(i):i,e.prefix);if("root"===i.type)return o=o&&"object"===typeof o&&"type"in o&&"props"in o&&"div"===o.type&&(1!==i.children.length||"element"!==i.children[0].type)?o.props.children:[o],n(e.Fragment||"div",{},o);return o}})}}}]);
1
+ "use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[9244],{51736:function(e,n,t){var r=t(43681).default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i,o=t(5057),a=f(t(33518)),l=f(t(55898)),u=f(t(75790)),s=f(t(13714)),c=f(t(99593)),p=f(t(67526)),d=t(96266);function f(e){return e&&e.__esModule?e:{default:e}}function h(e){var n=e.onContinue,t=e.nextDisabled,i=e.launching,a=e.texts,l=e.description,f=(0,o.useState)(!1),h=r(f,2),m=h[0],v=h[1];return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(y,{children:(0,d.jsxs)(p.default,{disabled:t,onConfirm:n,children:[(0,d.jsx)("div",{className:"eula-trigger",onClick:function(){return v((function(e){return!e}))},children:a.listenName}),(0,d.jsx)(s.default,{disabled:t,color:"primary",variant:"contained",className:"next-button",onClick:n,children:i?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(u.default,{size:14}),a.launchingText]}):a.buttonNext})]})}),(0,d.jsx)(c.default,{open:m,title:a.listenName,onClose:function(){return v(!1)},children:l})]})}h.propTypes={onContinue:l.default.func.isRequired,nextDisabled:l.default.bool,launching:l.default.bool,description:l.default.any,texts:l.default.object},h.defaultProps={nextDisabled:!1,launching:!1,description:"",texts:{listenName:"",launchingText:"",buttonNext:""}};var m,v,y=a.default.div(i||(m=["\n margin: 0 auto;\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n @media (max-width: ","px) {\n flex-direction: column;\n }\n\n .eula-trigger {\n cursor: pointer;\n text-decoration: underline;\n "," {\n padding-right: 24px;\n }\n "," {\n padding: 16px;\n }\n font-size: 14px;\n white-space: nowrap;\n &:hover {\n color: ",";\n }\n }\n\n .next-button {\n min-width: 200px;\n }\n"],v||(v=m.slice(0)),i=Object.freeze(Object.defineProperties(m,{raw:{value:Object.freeze(v)}}))),(function(e){return e.theme.breakpoints.values.sm}),(function(e){return e.theme.breakpoints.up("md")}),(function(e){return e.theme.breakpoints.down("md")}),(function(e){return e.theme.palette.primary.main})),x=h;n.default=x},42970:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,i=t(5057),o=v(t(55898)),a=t(38242),l=v(t(54725)),u=v(t(33518)),s=v(t(39862)),c=v(t(34126)),p=v(t(6729)),d=v(t(77105)),f=v(t(94918)),h=v(t(23232)),m=t(96266);function v(e){return e&&e.__esModule?e:{default:e}}var y=new s.default({createElement:i.createElement}).Compiler,x={zh:{appinfo:{name:"\u5e94\u7528\u540d",version:"\u7248\u672c\u53f7",author:"\u5f00\u53d1\u8005",description:"\u63cf\u8ff0",community:"\u793e\u533a\u5730\u5740",documentation:"\u6587\u6863\u624b\u518c",support:"\u670d\u52a1\u652f\u6301",overview:"\u6982\u8ff0",requirements:"\u8282\u70b9\u7248\u672c\u8981\u6c42"}},en:{appinfo:{name:"Name",version:"Version",author:"Author",description:"Description",community:"Community",documentation:"Documentation",support:"Support",overview:"Overview",requirements:"Server requirements"}}};function b(e){var n,t,r=e.blockletMeta,i=e.locale,o=e.handleDescEle,u=r.data,s=(0,a.getDisplayName)({meta:u}),v=u&&u.htmlAst?y(u.htmlAst):"",b=!(n=u).payment||(n.payment.price||[]).map((function(e){return e.value||0})).every((function(e){return 0===e})),g=[{key:(0,l.default)(x[i],"appinfo.name"),value:(0,a.getDisplayName)({meta:u})},{key:(0,l.default)(x[i],"appinfo.version"),value:u.version},{key:(0,l.default)(x[i],"appinfo.author"),value:(0,l.default)(u,"author.name")},{type:"description",key:(0,l.default)(x[i],"appinfo.description"),value:u.description}];return u.requirements&&g.push({key:(0,l.default)(x[i],"appinfo.requirements"),value:u.requirements.server}),u.community&&g.push({key:(0,l.default)(x[i],"appinfo.community"),value:(0,m.jsx)("a",{href:u.community,target:"_blank",rel:"noreferrer",children:u.community})}),u.documentation&&g.push({key:(0,l.default)(x[i],"appinfo.documentation"),value:(0,m.jsx)("a",{href:u.documentation,target:"_blank",rel:"noreferrer",children:u.documentation})}),u.support&&g.push({key:(0,l.default)(x[i],"appinfo.support"),value:(0,m.jsx)("a",{href:"mailto:".concat(u.support),target:"_blank",rel:"noreferrer",children:u.support})}),v&&g.push({key:(0,l.default)(x[i],"appinfo.overview"),value:""}),t="zh"===i?(0,m.jsxs)(m.Fragment,{children:[b?(0,m.jsxs)("p",{children:["\u60a8\u53ef\u4ee5\u514d\u8d39\u4f7f\u7528 ",(0,m.jsx)("b",{children:s}),"\uff1b"]}):(0,m.jsxs)("p",{children:["\u60a8\u9700\u8981\u8d2d\u4e70\u624d\u80fd\u4f7f\u7528 ",(0,m.jsx)("b",{children:s}),"\uff1b"]}),(0,m.jsx)("p",{children:"\u5728\u5e94\u7528\u542f\u52a8\u524d\uff0c\u9700\u8981\u9009\u62e9\u60a8\u7684\u8282\u70b9\uff1b"}),(0,m.jsx)("p",{children:"\u5982\u679c\u60a8\u6ca1\u6709\u8282\u70b9\uff0c\u6211\u4eec\u4f1a\u5f15\u5bfc\u60a8\u521b\u5efa\u65b0\u7684\u8282\u70b9\uff1b"}),(0,m.jsx)("p",{children:"\u4e0b\u9762\u4e3a\u8be5\u5e94\u7528\u7684\u4fe1\u606f\uff1a"})]}):(0,m.jsxs)(m.Fragment,{children:[b?(0,m.jsxs)("p",{children:["You can use ",(0,m.jsx)("b",{children:s})," for free;"]}):(0,m.jsxs)("p",{children:["You need to purchase before launch ",(0,m.jsx)("b",{children:s}),";"]}),(0,m.jsx)("p",{children:"Before the blocklet starts, you need to select your Blocklet Server; "}),(0,m.jsx)("p",{children:"If you do not have any Blocklet Server, we will guide you to create a new one; "}),(0,m.jsx)("p",{children:"Below is the information for the blocklet: "})]}),(0,m.jsxs)(w,{children:[o||t,(0,m.jsx)("div",{className:"info-table",children:(0,m.jsx)(f.default,{children:(0,m.jsx)(c.default,{size:"small",children:(0,m.jsx)(p.default,{children:g.map((function(e){return(0,m.jsxs)(h.default,{children:[(0,m.jsx)(d.default,{component:"th",scope:"row",style:{width:100},children:(0,m.jsx)("div",{style:{fontWeight:"bold",whiteSpace:"nowrap"},children:e.key})}),(0,m.jsx)(d.default,{children:e.value})]},e.key)}))})})})}),(0,m.jsx)("div",{className:"app-overview",children:v})]})}var g,j,w=u.default.div(r||(g=["\n .info-table {\n a {\n word-break: break-all;\n }\n }\n .app-overview {\n font-size: 16px;\n margin: 16px 0 0 16px;\n h1 {\n margin: 8px 0;\n font-size: 20px;\n }\n h2 {\n margin: 8px 0;\n font-size: 18px;\n }\n ul {\n display: block;\n list-style-type: disc;\n padding-left: 2em;\n li {\n display: list-item;\n list-style: disc;\n }\n }\n blockquote {\n margin-left: 2em;\n }\n }\n"],j||(j=g.slice(0)),r=Object.freeze(Object.defineProperties(g,{raw:{value:Object.freeze(j)}}))));b.propTypes={blockletMeta:o.default.object.isRequired,locale:o.default.string.isRequired,handleDescEle:o.default.node},b.defaultProps={handleDescEle:""};var k=b;n.default=k},67526:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=a;var r,i=t(5057),o=(r=t(55898))&&r.__esModule?r:{default:r};function a(e){var n=e.disabled,t=e.children,r=e.onConfirm;return(0,i.useEffect)((function(){if(n)return function(){};var e=function(e){"Enter"!==e.code||!0!==e.metaKey&&!0!==e.ctrlKey||(e.preventDefault(),e.stopPropagation(),r())};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}),[n,r]),t}a.propTypes={disabled:o.default.bool,children:o.default.any.isRequired,onConfirm:o.default.func.isRequired},a.defaultProps={disabled:!1}},79630:function(e,n,t){var r=t(44231),i=Object.prototype.hasOwnProperty,o={align:"text-align",valign:"vertical-align",height:"height",width:"width"};function a(e){var n;if("tr"===e.tagName||"td"===e.tagName||"th"===e.tagName)for(n in o)i.call(o,n)&&void 0!==e.properties[n]&&(l(e,o[n],e.properties[n]),delete e.properties[n])}function l(e,n,t){var r=(e.properties.style||"").trim();r&&!/;\s*/.test(r)&&(r+=";"),r&&(r+=" ");var i=r+n+": "+t+";";e.properties.style=i}e.exports=function(e){return r(e,"element",a),e}},45938:function(e){function n(e){if("string"===typeof e)return function(e){return n;function n(n){return Boolean(n&&n.type===e)}}(e);if(null===e||void 0===e)return i;if("object"===typeof e)return("length"in e?r:t)(e);if("function"===typeof e)return e;throw new Error("Expected function, string, or object as test")}function t(e){return function(n){var t;for(t in e)if(n[t]!==e[t])return!1;return!0}}function r(e){var t=function(e){for(var t=[],r=e.length,i=-1;++i<r;)t[i]=n(e[i]);return t}(e),r=t.length;return function(){var e=-1;for(;++e<r;)if(t[e].apply(this,arguments))return!0;return!1}}function i(){return!0}e.exports=n},84962:function(e,n,t){e.exports=l;var r=t(45938),i=!0,o="skip",a=!1;function l(e,n,t,i){var l;function s(e,r,c){var p,d=[];return(n&&!l(e,r,c[c.length-1]||null)||(d=u(t(e,c)))[0]!==a)&&e.children&&d[0]!==o?(p=u(function(e,n){var t,r=-1,o=i?-1:1,l=(i?e.length:r)+o;for(;l>r&&l<e.length;){if((t=s(e[l],l,n))[0]===a)return t;l="number"===typeof t[1]?t[1]:l+o}}(e.children,c.concat(e))),p[0]===a?p:d):d}"function"===typeof n&&"function"!==typeof t&&(i=t,t=n,n=null),l=r(n),s(e,null,[])}function u(e){return null!==e&&"object"===typeof e&&"length"in e?e:"number"===typeof e?[i,e]:[e]}l.CONTINUE=i,l.SKIP=o,l.EXIT=a},44231:function(e,n,t){e.exports=l;var r=t(84962),i=r.CONTINUE,o=r.SKIP,a=r.EXIT;function l(e,n,t,i){"function"===typeof n&&"function"!==typeof t&&(i=t,t=n,n=null),r(e,n,(function(e,n){var r=n[n.length-1],i=r?r.children.indexOf(e):null;return t(e,i,r)}),i)}l.CONTINUE=i,l.SKIP=o,l.EXIT=a},48086:function(e,n,t){var r=t(71600);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t(56930)),o=t(96266),a=(0,i.default)((0,o.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");n.default=a},39862:function(e,n,t){t.r(n),t.d(n,{default:function(){return g}});var r=t(56666),i=t(61654),o=t(43382),a=t(29065),l=t(80443),u=t(18580),s=t(33313),c=t(67474),p={}.hasOwnProperty;function d(e,n,t){if("function"!==typeof e)throw new TypeError("h is not a function");var r,o,a=function(e){var n=e("div",{});return Boolean(n&&("_owner"in n||"_store"in n)&&(void 0===n.key||null===n.key))}(e),l=function(e){var n=e("div",{});return Boolean(n&&n.context&&n.context._isVue)}(e),u=function(e){var n=e("div",{});return"VirtualNode"===n.type}(e);if("string"===typeof t||"boolean"===typeof t?(r=t,t={}):(t||(t={}),r=t.prefix),n&&"root"===n.type){var s=n.children[0];o=1===n.children.length&&"element"===s.type?s:{type:"element",tagName:"div",properties:{},children:n.children}}else{if(!n||"element"!==n.type)throw new Error("Expected root or element, not `"+(n&&n.type||n)+"`");o=n}return f(e,o,{schema:"svg"===t.space?i.YP:i.dy,prefix:void 0===r||null===r?a||l||u?"h-":void 0:"string"===typeof r?r:r?"h-":void 0,key:0,react:a,vue:l,vdom:u,hyperscript:m(e)})}function f(e,n,t){var r,o=t.schema,a=o,l=n.tagName,u={},s=[],d=-1;for(r in"html"===o.space&&"svg"===l.toLowerCase()&&(a=i.YP,t.schema=a),n.properties)n.properties&&p.call(n.properties,r)&&h(u,r,n.properties[r],t,l);if(t.vdom&&("html"===a.space?l=l.toUpperCase():a.space&&(u.namespace=c.t[a.space])),t.prefix&&(t.key++,u.key=t.prefix+t.key),n.children)for(;++d<n.children.length;){var m=n.children[d];"element"===m.type?s.push(f(e,m,t)):"text"===m.type&&s.push(m.value)}return t.schema=o,s.length>0?e.call(n,l,u,s):e.call(n,l,u)}function h(e,n,t,i,c){var p,d=(0,o.s)(i.schema,n);void 0===t||null===t||"number"===typeof t&&Number.isNaN(t)||!1===t&&(i.vue||i.vdom||i.hyperscript)||!t&&d.boolean&&(i.vue||i.vdom||i.hyperscript)||(Array.isArray(t)&&(t=d.commaSeparated?(0,u.P)(t):(0,l.P)(t)),d.boolean&&i.hyperscript&&(t=""),"style"===d.property&&"string"===typeof t&&(i.react||i.vue||i.vdom)&&(t=function(e,n){var t={};try{(0,s.Z)(e,(function(e,n){"-ms-"===e.slice(0,4)&&(e="ms-"+e.slice(4)),t[e.replace(/-([a-z])/g,(function(e,n){return n.toUpperCase()}))]=n}))}catch(i){var r=i;throw r.message=n+"[style]"+r.message.slice(9),r}return t}(t,c)),i.vue?"style"!==d.property&&(p="attrs"):d.mustUseProperty||(i.vdom?"style"!==d.property&&(p="attributes"):i.hyperscript&&(p="attrs")),p?e[p]=Object.assign(e[p]||{},(0,r.Z)({},d.attribute,t)):d.space&&i.react?e[a.D[d.property]||d.property]=t:e[d.attribute]=t)}function m(e){return"context"in e&&"cleanup"in e}var v=t(79630),y=t(38482),x={}.hasOwnProperty,b=new Set(["table","thead","tbody","tfoot","tr"]);function g(e){if(!e||"function"!==typeof e.createElement)throw new TypeError("createElement is not a function");var n=e.createElement,t=!1!==e.fixTableCellAlign;function r(t,r,i){if(i&&b.has(t)&&(i=i.filter((function(e){return!(0,y.Q)(e)}))),e.components&&x.call(e.components,t)){var o=e.components[t];return e.passNode&&"function"===typeof o&&(r=Object.assign({node:this},r)),n(o,r,i)}return n(t,r,i)}Object.assign(this,{Compiler:function(i){var o=d(r,t?v(i):i,e.prefix);if("root"===i.type)return o=o&&"object"===typeof o&&"type"in o&&"props"in o&&"div"===o.type&&(1!==i.children.length||"element"!==i.children[0].type)?o.props.children:[o],n(e.Fragment||"div",{},o);return o}})}}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 948.84863f73.chunk.js.LICENSE.txt */
2
+ (self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[948],{50948:function(e,t,n){"use strict";n.r(t),n.d(t,{clearCache:function(){return qe.LK},configResponsive:function(){return Ge},createUpdateEffect:function(){return r.a},useAntdTable:function(){return l},useAsyncEffect:function(){return d},useBoolean:function(){return h},useClickAway:function(){return y},useControllableValue:function(){return w},useCookieState:function(){return Z},useCountDown:function(){return R},useCounter:function(){return C},useCreation:function(){return A.Z},useDebounce:function(){return F},useDebounceEffect:function(){return M},useDebounceFn:function(){return x.Z},useDeepCompareEffect:function(){return z},useDeepCompareLayoutEffect:function(){return P},useDocumentVisibility:function(){return U},useDrag:function(){return Y},useDrop:function(){return H},useDynamicList:function(){return X},useEventEmitter:function(){return B},useEventListener:function(){return j.Z},useEventTarget:function(){return G},useExternal:function(){return J},useFavicon:function(){return Q},useFocusWithin:function(){return ee},useFullscreen:function(){return ie},useFusionTable:function(){return oe},useGetState:function(){return ue},useHistoryTravel:function(){return ce},useHover:function(){return se},useInViewport:function(){return de},useInfiniteScroll:function(){return le.Z},useInterval:function(){return fe},useIsomorphicLayoutEffect:function(){return ve},useKeyPress:function(){return ye},useLatest:function(){return p.Z},useLocalStorageState:function(){return we},useLockFn:function(){return Ee},useLongPress:function(){return Ze},useMap:function(){return ke},useMemoizedFn:function(){return u.Z},useMount:function(){return Te.Z},useMouse:function(){return Ce},useMutationObserver:function(){return Wt},useNetwork:function(){return Fe},usePagination:function(){return c},usePrevious:function(){return Ie},useRafInterval:function(){return De},useRafState:function(){return Re},useRafTimeout:function(){return je},useReactive:function(){return Ve.Z},useRequest:function(){return a.Z},useResetState:function(){return Ue},useResponsive:function(){return Ke},useSafeState:function(){return $e},useScroll:function(){return Qe},useSelections:function(){return et},useSessionStorageState:function(){return tt},useSet:function(){return nt},useSetState:function(){return rt},useSize:function(){return Rt},useTextSelection:function(){return At},useThrottle:function(){return Nt},useThrottleEffect:function(){return Dt},useThrottleFn:function(){return It},useTimeout:function(){return zt},useTitle:function(){return Vt},useToggle:function(){return v},useTrackedEffect:function(){return qt},useUnmount:function(){return re.Z},useUnmountedRef:function(){return Je},useUpdate:function(){return b.Z},useUpdateEffect:function(){return s.Z},useUpdateLayoutEffect:function(){return Ut},useVirtualList:function(){return Yt},useWebSocket:function(){return Ht},useWhyDidYouUpdate:function(){return Xt}});var r=n(64402),i=n(9161),o=n(5057),u=n(99360),a=n(27429),c=function(e,t){var n;void 0===t&&(t={});var r=t.defaultPageSize,c=void 0===r?10:r,s=t.defaultCurrent,l=void 0===s?1:s,f=(0,i.__rest)(t,["defaultPageSize","defaultCurrent"]),d=(0,a.Z)(e,(0,i.__assign)({defaultParams:[{current:l,pageSize:c}],refreshDepsAction:function(){w(1)}},f)),v=d.params[0]||{},h=v.current,p=void 0===h?1:h,m=v.pageSize,g=void 0===m?c:m,_=(null===(n=d.data)||void 0===n?void 0:n.total)||0,y=(0,o.useMemo)((function(){return Math.ceil(_/g)}),[g,_]),b=function(e,t){var n=e<=0?1:e,r=t<=0?1:t,o=Math.ceil(_/r);n>o&&(n=Math.max(1,o));var u=(0,i.__read)(d.params||[]),a=u[0],c=void 0===a?{}:a,s=u.slice(1);d.run.apply(d,(0,i.__spreadArray)([(0,i.__assign)((0,i.__assign)({},c),{current:n,pageSize:r})],(0,i.__read)(s),!1))},w=function(e){b(e,g)};return(0,i.__assign)((0,i.__assign)({},d),{pagination:{current:p,pageSize:g,total:_,totalPage:y,onChange:(0,u.Z)(b),changeCurrent:(0,u.Z)(w),changePageSize:(0,u.Z)((function(e){b(p,e)}))}})},s=n(64217),l=function(e,t){var n;void 0===t&&(t={});var r=t.form,a=t.defaultType,l=void 0===a?"simple":a,f=t.defaultParams,d=t.manual,v=void 0!==d&&d,h=t.refreshDeps,p=void 0===h?[]:h,m=t.ready,g=void 0===m||m,_=(0,i.__rest)(t,["form","defaultType","defaultParams","manual","refreshDeps","ready"]),y=c(e,(0,i.__assign)({manual:!0},_)),b=y.params,w=void 0===b?[]:b,E=y.run,S=w[2]||{},Z=(0,i.__read)((0,o.useState)((null===S||void 0===S?void 0:S.type)||l),2),k=Z[0],T=Z[1],L=(0,o.useRef)({}),R=(0,o.useRef)([]),O=!!(null===r||void 0===r?void 0:r.getInternalHooks),C=function(){if(!r)return{};if(O)return r.getFieldsValue(null,(function(){return!0}));var e=r.getFieldsValue(),t={};return Object.keys(e).forEach((function(n){r.getFieldInstance&&!r.getFieldInstance(n)||(t[n]=e[n])})),t},A=function(){if(r){if(O)return r.setFieldsValue(L.current);var e={};Object.keys(L.current).forEach((function(t){r.getFieldInstance&&!r.getFieldInstance(t)||(e[t]=L.current[t])})),r.setFieldsValue(e)}},x=function(e){g&&setTimeout((function(){(function(){if(!r)return Promise.resolve({});var e=C(),t=Object.keys(e);return O?r.validateFields(t):new Promise((function(e,n){r.validateFields(t,(function(t,r){t?n(t):e(r)}))}))})().then((function(n){void 0===n&&(n={});var o=e||(0,i.__assign)((0,i.__assign)({pageSize:t.defaultPageSize||10},(null===w||void 0===w?void 0:w[0])||{}),{current:1});r?(L.current=(0,i.__assign)((0,i.__assign)({},L.current),n),E(o,n,{allFormData:L.current,type:k})):E(o)})).catch((function(e){return e}))}))};(0,o.useEffect)((function(){if(w.length>0)return L.current=(null===S||void 0===S?void 0:S.allFormData)||{},A(),void E.apply(void 0,(0,i.__spreadArray)([],(0,i.__read)(w),!1));!v&&g&&(L.current=(null===f||void 0===f?void 0:f[1])||{},A(),x(null===f||void 0===f?void 0:f[0]))}),[]),(0,s.Z)((function(){g&&A()}),[k]);var F=(0,o.useRef)(!1);return F.current=!1,(0,s.Z)((function(){!v&&g&&(F.current=!0,r&&r.resetFields(),L.current=(null===f||void 0===f?void 0:f[1])||{},A(),x(null===f||void 0===f?void 0:f[0]))}),[g]),(0,s.Z)((function(){F.current||g&&(v||(F.current=!0,y.pagination.changeCurrent(1)))}),(0,i.__spreadArray)([],(0,i.__read)(p),!1)),(0,i.__assign)((0,i.__assign)({},y),{tableProps:{dataSource:(null===(n=y.data)||void 0===n?void 0:n.list)||R.current,loading:y.loading,onChange:(0,u.Z)((function(e,t,n,r){var o=(0,i.__read)(w||[]),u=o[0],a=o.slice(1);E.apply(void 0,(0,i.__spreadArray)([(0,i.__assign)((0,i.__assign)({},u),{current:e.current,pageSize:e.pageSize,filters:t,sorter:n,extra:r})],(0,i.__read)(a),!1))})),pagination:{current:y.pagination.current,pageSize:y.pagination.pageSize,total:y.pagination.total}},search:{submit:(0,u.Z)((function(e){var t;null===(t=null===e||void 0===e?void 0:e.preventDefault)||void 0===t||t.call(e),x()})),type:k,changeType:(0,u.Z)((function(){var e=C();L.current=(0,i.__assign)((0,i.__assign)({},L.current),e),T((function(e){return"simple"===e?"advance":"simple"}))})),reset:(0,u.Z)((function(){var e,n;r&&r.resetFields(),x((0,i.__assign)((0,i.__assign)({},(null===f||void 0===f?void 0:f[0])||{}),{pageSize:t.defaultPageSize||(null===(n=null===(e=t.defaultParams)||void 0===e?void 0:e[0])||void 0===n?void 0:n.pageSize)||10,current:1}))}))}})},f=n(89141);var d=function(e,t){(0,o.useEffect)((function(){var t=e(),n=!1;return function(){(0,i.__awaiter)(this,void 0,void 0,(function(){return(0,i.__generator)(this,(function(e){switch(e.label){case 0:if(r=t,!(0,f.mf)(r[Symbol.asyncIterator]))return[3,4];e.label=1;case 1:return[4,t.next()];case 2:return e.sent().done||n?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,t];case 5:e.sent(),e.label=6;case 6:return[2]}var r}))}))}(),function(){n=!0}}),t)};var v=function(e,t){void 0===e&&(e=!1);var n=(0,i.__read)((0,o.useState)(e),2),r=n[0],u=n[1];return[r,(0,o.useMemo)((function(){var n=void 0===t?!e:t;return{toggle:function(){return u((function(t){return t===e?n:e}))},set:function(e){return u(e)},setLeft:function(){return u(e)},setRight:function(){return u(n)}}}),[])]};function h(e){void 0===e&&(e=!1);var t=(0,i.__read)(v(!!e),2),n=t[0],r=t[1],u=r.toggle,a=r.set;return[n,(0,o.useMemo)((function(){return{toggle:u,set:function(e){return a(!!e)},setTrue:function(){return a(!0)},setFalse:function(){return a(!1)}}}),[])]}var p=n(67120),m=n(41168),g=function(e){if(!e||!document.getRootNode)return document;var t,n=Array.isArray(e)?e:[e];return function(e){return e.every((function(e){var t=(0,m.n)(e);return!!t&&(t.getRootNode()instanceof ShadowRoot||void 0)}))}(n)&&(t=(0,m.n)(n[0]))?t.getRootNode():document},_=n(78590);function y(e,t,n){void 0===n&&(n="click");var r=(0,p.Z)(e);(0,_.Z)((function(){var e=function(e){(Array.isArray(t)?t:[t]).some((function(t){var n=(0,m.n)(t);return!n||n.contains(e.target)}))||r.current(e)},i=g(t),o=Array.isArray(n)?n:[n];return o.forEach((function(t){return i.addEventListener(t,e)})),function(){o.forEach((function(t){return i.removeEventListener(t,e)}))}}),Array.isArray(n)?n:[n],t)}var b=n(39861);var w=function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=t.defaultValue,r=t.defaultValuePropName,a=void 0===r?"defaultValue":r,c=t.valuePropName,s=void 0===c?"value":c,l=t.trigger,d=void 0===l?"onChange":l,v=e[s],h=e.hasOwnProperty(s),p=(0,o.useMemo)((function(){return h?v:e.hasOwnProperty(a)?e[a]:n}),[]),m=(0,o.useRef)(p);h&&(m.current=v);var g=(0,b.Z)();return[m.current,(0,u.Z)((function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=(0,f.mf)(t)?t(m.current):t;h||(m.current=o,g()),e[d]&&e[d].apply(e,(0,i.__spreadArray)([o],(0,i.__read)(n),!1))}))]},E=n(4899),S=n.n(E);var Z=function(e,t){void 0===t&&(t={});var n=(0,i.__read)((0,o.useState)((function(){var n=S().get(e);return(0,f.HD)(n)?n:(0,f.mf)(t.defaultValue)?t.defaultValue():t.defaultValue})),2),r=n[0],a=n[1],c=(0,u.Z)((function(n,o){void 0===o&&(o={});var u=(0,i.__assign)((0,i.__assign)({},t),o),c=(u.defaultValue,(0,i.__rest)(u,["defaultValue"])),s=(0,f.mf)(n)?n(r):n;a(s),void 0===s?S().remove(e):S().set(e,s,c)}));return[r,c]},k=n(74410),T=n.n(k),L=function(e){if(!e)return 0;var t=T()(e).valueOf()-Date.now();return t<0?0:t},R=function(e){void 0===e&&(e={});var t=e||{},n=t.leftTime,r=t.targetDate,u=t.interval,a=void 0===u?1e3:u,c=t.onEnd,s=(0,o.useMemo)((function(){return"leftTime"in e?(0,f.hj)(n)&&n>0?Date.now()+n:void 0:r}),[n,r]),l=(0,i.__read)((0,o.useState)((function(){return L(s)})),2),d=l[0],v=l[1],h=(0,p.Z)(c);(0,o.useEffect)((function(){if(s){v(L(s));var e=setInterval((function(){var t,n=L(s);v(n),0===n&&(clearInterval(e),null===(t=h.current)||void 0===t||t.call(h))}),a);return function(){return clearInterval(e)}}v(0)}),[s,a]);var m=(0,o.useMemo)((function(){return e=d,{days:Math.floor(e/864e5),hours:Math.floor(e/36e5)%24,minutes:Math.floor(e/6e4)%60,seconds:Math.floor(e/1e3)%60,milliseconds:Math.floor(e)%1e3};var e}),[d]);return[d,m]};function O(e,t){void 0===t&&(t={});var n=t.min,r=t.max,i=e;return(0,f.hj)(r)&&(i=Math.min(r,i)),(0,f.hj)(n)&&(i=Math.max(n,i)),i}var C=function(e,t){void 0===e&&(e=0),void 0===t&&(t={});var n=t.min,r=t.max,a=(0,i.__read)((0,o.useState)((function(){return O(e,{min:n,max:r})})),2),c=a[0],s=a[1],l=function(e){s((function(t){return O((0,f.hj)(e)?e:e(t),{max:r,min:n})}))};return[c,{inc:(0,u.Z)((function(e){void 0===e&&(e=1),l((function(t){return t+e}))})),dec:(0,u.Z)((function(e){void 0===e&&(e=1),l((function(t){return t-e}))})),set:(0,u.Z)((function(e){l(e)})),reset:(0,u.Z)((function(){l(e)}))}]},A=n(93066),x=n(7411);var F=function(e,t){var n=(0,i.__read)((0,o.useState)(e),2),r=n[0],u=n[1],a=(0,x.Z)((function(){u(e)}),t).run;return(0,o.useEffect)((function(){a()}),[e]),r};var M=function(e,t,n){var r=(0,i.__read)((0,o.useState)({}),2),u=r[0],a=r[1],c=(0,x.Z)((function(){a({})}),n).run;(0,o.useEffect)((function(){return c()}),t),(0,s.Z)(e,[u])},I=n(50482),N=n.n(I),D=function(e){return function(t,n){var r,i,u=(0,o.useRef)(),a=(0,o.useRef)(0);void 0!==n&&(r=n,i=u.current,void 0===r&&(r=[]),void 0===i&&(i=[]),N()(r,i))||(u.current=n,a.current+=1),e(t,[a.current])}},z=D(o.useEffect),P=D(o.useLayoutEffect),j=n(80226),V=n(87374),q=function(){return V.Z?document.visibilityState:"visible"};var U=function(){var e=(0,i.__read)((0,o.useState)((function(){return q()})),2),t=e[0],n=e[1];return(0,j.Z)("visibilitychange",(function(){n(q())}),{target:function(){return document}}),t},Y=function(e,t,n){void 0===n&&(n={});var r=(0,p.Z)(n),i=(0,p.Z)(e);(0,_.Z)((function(){var e=(0,m.n)(t);if(null===e||void 0===e?void 0:e.addEventListener){var n=function(e){var t,n;null===(n=(t=r.current).onDragStart)||void 0===n||n.call(t,e),e.dataTransfer.setData("custom",JSON.stringify(i.current))},o=function(e){var t,n;null===(n=(t=r.current).onDragEnd)||void 0===n||n.call(t,e)};return e.setAttribute("draggable","true"),e.addEventListener("dragstart",n),e.addEventListener("dragend",o),function(){e.removeEventListener("dragstart",n),e.removeEventListener("dragend",o)}}}),[],t)},H=function(e,t){void 0===t&&(t={});var n=(0,p.Z)(t),r=(0,o.useRef)();(0,_.Z)((function(){var t=(0,m.n)(e);if(null===t||void 0===t?void 0:t.addEventListener){var i=function(e,t){var r=e.getData("text/uri-list"),i=e.getData("custom");if(i&&n.current.onDom){var o=i;try{o=JSON.parse(i)}catch(u){o=i}n.current.onDom(o,t)}else r&&n.current.onUri?n.current.onUri(r,t):e.files&&e.files.length&&n.current.onFiles?n.current.onFiles(Array.from(e.files),t):e.items&&e.items.length&&n.current.onText&&e.items[0].getAsString((function(e){n.current.onText(e,t)}))},o=function(e){var t,i;e.preventDefault(),e.stopPropagation(),r.current=e.target,null===(i=(t=n.current).onDragEnter)||void 0===i||i.call(t,e)},u=function(e){var t,r;e.preventDefault(),null===(r=(t=n.current).onDragOver)||void 0===r||r.call(t,e)},a=function(e){var t,i;e.target===r.current&&(null===(i=(t=n.current).onDragLeave)||void 0===i||i.call(t,e))},c=function(e){var t,r;e.preventDefault(),i(e.dataTransfer,e),null===(r=(t=n.current).onDrop)||void 0===r||r.call(t,e)},s=function(e){var t,r;i(e.clipboardData,e),null===(r=(t=n.current).onPaste)||void 0===r||r.call(t,e)};return t.addEventListener("dragenter",o),t.addEventListener("dragover",u),t.addEventListener("dragleave",a),t.addEventListener("drop",c),t.addEventListener("paste",s),function(){t.removeEventListener("dragenter",o),t.removeEventListener("dragover",u),t.removeEventListener("dragleave",a),t.removeEventListener("drop",c),t.removeEventListener("paste",s)}}}),[],e)},X=function(e){void 0===e&&(e=[]);var t=(0,o.useRef)(-1),n=(0,o.useRef)([]),r=(0,o.useCallback)((function(e){t.current+=1,n.current.splice(e,0,t.current)}),[]),u=(0,i.__read)((0,o.useState)((function(){return e.forEach((function(e,t){r(t)})),e})),2),a=u[0],c=u[1],s=(0,o.useCallback)((function(e){n.current=[],c((function(){return e.forEach((function(e,t){r(t)})),e}))}),[]),l=(0,o.useCallback)((function(e,t){c((function(n){var o=(0,i.__spreadArray)([],(0,i.__read)(n),!1);return o.splice(e,0,t),r(e),o}))}),[]),f=(0,o.useCallback)((function(e){return n.current[e]}),[]),d=(0,o.useCallback)((function(e){return n.current.findIndex((function(t){return t===e}))}),[]),v=(0,o.useCallback)((function(e,t){c((function(n){var o=(0,i.__spreadArray)([],(0,i.__read)(n),!1);return t.forEach((function(t,n){r(e+n)})),o.splice.apply(o,(0,i.__spreadArray)([e,0],(0,i.__read)(t),!1)),o}))}),[]),h=(0,o.useCallback)((function(e,t){c((function(n){var r=(0,i.__spreadArray)([],(0,i.__read)(n),!1);return r[e]=t,r}))}),[]),p=(0,o.useCallback)((function(e){c((function(t){var r=(0,i.__spreadArray)([],(0,i.__read)(t),!1);r.splice(e,1);try{n.current.splice(e,1)}catch(o){console.error(o)}return r}))}),[]),m=(0,o.useCallback)((function(e,t){e!==t&&c((function(r){var o=(0,i.__spreadArray)([],(0,i.__read)(r),!1),u=o.filter((function(t,n){return n!==e}));u.splice(t,0,o[e]);try{var a=n.current.filter((function(t,n){return n!==e}));a.splice(t,0,n.current[e]),n.current=a}catch(c){console.error(c)}return u}))}),[]),g=(0,o.useCallback)((function(e){c((function(t){return r(t.length),t.concat([e])}))}),[]),_=(0,o.useCallback)((function(){try{n.current=n.current.slice(0,n.current.length-1)}catch(e){console.error(e)}c((function(e){return e.slice(0,e.length-1)}))}),[]),y=(0,o.useCallback)((function(e){c((function(t){return r(0),[e].concat(t)}))}),[]),b=(0,o.useCallback)((function(){try{n.current=n.current.slice(1,n.current.length)}catch(e){console.error(e)}c((function(e){return e.slice(1,e.length)}))}),[]),w=(0,o.useCallback)((function(e){return e.map((function(e,t){return{key:t,item:e}})).sort((function(e,t){return d(e.key)-d(t.key)})).filter((function(e){return!!e.item})).map((function(e){return e.item}))}),[]);return{list:a,insert:l,merge:v,replace:h,remove:p,getKey:f,getIndex:d,move:m,push:g,pop:_,unshift:y,shift:b,sortList:w,resetList:s}},W=function(){var e=this;this.subscriptions=new Set,this.emit=function(t){var n,r;try{for(var o=(0,i.__values)(e.subscriptions),u=o.next();!u.done;u=o.next())(0,u.value)(t)}catch(a){n={error:a}}finally{try{u&&!u.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},this.useSubscription=function(t){var n=(0,o.useRef)();n.current=t,(0,o.useEffect)((function(){function t(e){n.current&&n.current(e)}return e.subscriptions.add(t),function(){e.subscriptions.delete(t)}}),[])}};function B(){var e=(0,o.useRef)();return e.current||(e.current=new W),e.current}var G=function(e){var t=e||{},n=t.initialValue,r=t.transformer,u=(0,i.__read)((0,o.useState)(n),2),a=u[0],c=u[1],s=(0,p.Z)(r),l=(0,o.useCallback)((function(){return c(n)}),[]);return[a,{onChange:(0,o.useCallback)((function(e){var t=e.target.value;return(0,f.mf)(s.current)?c(s.current(t)):c(t)}),[]),reset:l}]},K={},J=function(e,t){var n=(0,i.__read)((0,o.useState)(e?"loading":"unset"),2),r=n[0],u=n[1],a=(0,o.useRef)();return(0,o.useEffect)((function(){if(e){var n=e.replace(/[|#].*$/,"");if("css"===(null===t||void 0===t?void 0:t.type)||!(null===t||void 0===t?void 0:t.type)&&/(^css!|\.css$)/.test(n)){var r=function(e,t){void 0===t&&(t={});var n=document.querySelector('link[href="'.concat(e,'"]'));if(!n){var r=document.createElement("link");return r.rel="stylesheet",r.href=e,Object.keys(t).forEach((function(e){r[e]=t[e]})),"hideFocus"in r&&r.relList&&(r.rel="preload",r.as="style"),r.setAttribute("data-status","loading"),document.head.appendChild(r),{ref:r,status:"loading"}}return{ref:n,status:n.getAttribute("data-status")||"ready"}}(e,null===t||void 0===t?void 0:t.css);a.current=r.ref,u(r.status)}else if("js"===(null===t||void 0===t?void 0:t.type)||!(null===t||void 0===t?void 0:t.type)&&/(^js!|\.js$)/.test(n)){r=function(e,t){void 0===t&&(t={});var n=document.querySelector('script[src="'.concat(e,'"]'));if(!n){var r=document.createElement("script");return r.src=e,Object.keys(t).forEach((function(e){r[e]=t[e]})),r.setAttribute("data-status","loading"),document.body.appendChild(r),{ref:r,status:"loading"}}return{ref:n,status:n.getAttribute("data-status")||"ready"}}(e,null===t||void 0===t?void 0:t.js);a.current=r.ref,u(r.status)}else console.error("Cannot infer the type of external resource, and please provide a type ('js' | 'css'). Refer to the https://ahooks.js.org/hooks/dom/use-external/#options");if(a.current){void 0===K[e]?K[e]=1:K[e]+=1;var i=function(e){var t,n="load"===e.type?"ready":"error";null===(t=a.current)||void 0===t||t.setAttribute("data-status",n),u(n)};return a.current.addEventListener("load",i),a.current.addEventListener("error",i),function(){var n,r,o;null===(n=a.current)||void 0===n||n.removeEventListener("load",i),null===(r=a.current)||void 0===r||r.removeEventListener("error",i),K[e]-=1,0!==K[e]||(null===t||void 0===t?void 0:t.keepWhenUnused)||null===(o=a.current)||void 0===o||o.remove(),a.current=void 0}}}else u("unset")}),[e]),r},$={SVG:"image/svg+xml",ICO:"image/x-icon",GIF:"image/gif",PNG:"image/png"},Q=function(e){(0,o.useEffect)((function(){if(e){var t=e.split("."),n=t[t.length-1].toLocaleUpperCase(),r=document.querySelector("link[rel*='icon']")||document.createElement("link");r.type=$[n],r.href=e,r.rel="shortcut icon",document.getElementsByTagName("head")[0].appendChild(r)}}),[e])};function ee(e,t){var n=(0,i.__read)((0,o.useState)(!1),2),r=n[0],u=n[1],a=t||{},c=a.onFocus,s=a.onBlur,l=a.onChange;return(0,j.Z)("focusin",(function(e){r||(null===c||void 0===c||c(e),null===l||void 0===l||l(!0),u(!0))}),{target:e}),(0,j.Z)("focusout",(function(e){var t,n;r&&!(null===(n=null===(t=e.currentTarget)||void 0===t?void 0:t.contains)||void 0===n?void 0:n.call(t,e.relatedTarget))&&(null===s||void 0===s||s(e),null===l||void 0===l||l(!1),u(!1))}),{target:e}),r}var te=n(20026),ne=n.n(te),re=n(78923),ie=function(e,t){var n=t||{},r=n.onExit,a=n.onEnter,c=n.pageFullscreen,s=void 0!==c&&c,l=(0,f.jn)(s)||!s?{}:s,d=l.className,v=void 0===d?"ahooks-page-fullscreen":d,h=l.zIndex,g=void 0===h?999999:h,_=(0,p.Z)(r),y=(0,p.Z)(a),b=(0,i.__read)((0,o.useState)(!1),2),w=b[0],E=b[1],S=function(e){var t,n;e?null===(t=y.current)||void 0===t||t.call(y):null===(n=_.current)||void 0===n||n.call(_)},Z=(0,u.Z)((function(){if(ne().isEnabled){var t=(0,m.n)(e);if(ne().element){var n=ne().element===t;S(n),E(n)}else S(!1),E(!1),ne().off("change",Z)}})),k=function(t){var n=(0,m.n)(e);if(n){var r=document.getElementById(v);t?(n.classList.add(v),r||((r=document.createElement("style")).setAttribute("id",v),r.textContent="\n .".concat(v," {\n position: fixed; left: 0; top: 0; right: 0; bottom: 0;\n width: 100% !important; height: 100% !important;\n z-index: ").concat(g,";\n }"),n.appendChild(r))):(n.classList.remove(v),r&&r.remove()),w!==t&&(S(t),E(t))}},T=function(){var t=(0,m.n)(e);if(t)if(s)k(!0);else if(ne().isEnabled)try{ne().request(t),ne().on("change",Z)}catch(n){console.error(n)}},L=function(){var t=(0,m.n)(e);t&&(s?k(!1):ne().isEnabled&&ne().element===t&&ne().exit())};return(0,re.Z)((function(){ne().isEnabled&&!s&&ne().off("change",Z)})),[w,{enterFullscreen:(0,u.Z)(T),exitFullscreen:(0,u.Z)(L),toggleFullscreen:(0,u.Z)((function(){w?L():T()})),isEnabled:ne().isEnabled}]},oe=function(e,t){var n;return void 0===t&&(t={}),function(e){var t={dataSource:e.tableProps.dataSource,loading:e.tableProps.loading,onSort:function(t,n){var r;e.tableProps.onChange({current:e.pagination.current,pageSize:e.pagination.pageSize},null===(r=e.params[0])||void 0===r?void 0:r.filters,{field:t,order:n})},onFilter:function(t){var n;e.tableProps.onChange({current:e.pagination.current,pageSize:e.pagination.pageSize},t,null===(n=e.params[0])||void 0===n?void 0:n.sorter)}},n={onChange:e.pagination.changeCurrent,onPageSizeChange:e.pagination.changePageSize,current:e.pagination.current,pageSize:e.pagination.pageSize,total:e.pagination.total};return(0,i.__assign)((0,i.__assign)({},e),{tableProps:t,paginationProps:n})}(l(e,(0,i.__assign)((0,i.__assign)({},t),{form:t.field?(n=t.field,{getFieldInstance:function(e){return n.getNames().includes(e)},setFieldsValue:n.setValues,getFieldsValue:n.getValues,resetFields:n.resetToDefault,validateFields:function(e,t){n.validate(e,t)}}):void 0})))};var ue=function(e){var t=(0,i.__read)((0,o.useState)(e),2),n=t[0],r=t[1],u=(0,o.useRef)(n);return u.current=n,[n,r,(0,o.useCallback)((function(){return u.current}),[])]},ae=function(e,t){var n=function(e,t){var n=e>0?e-1:t.length+e;return n>=t.length-1&&(n=t.length-1),n<0&&(n=0),n}(e,t);return{_current:t[n],_before:t.slice(0,n),_after:t.slice(n+1)}};function ce(e,t){void 0===t&&(t=0);var n=(0,i.__read)((0,o.useState)({present:e,past:[],future:[]}),2),r=n[0],a=n[1],c=r.present,s=r.past,l=r.future,d=(0,o.useRef)(e),v=function(e){var t=(0,f.hj)(e)?e:Number(e);if(0!==t)return t>0?function(e){if(void 0===e&&(e=1),0!==l.length){var t=ae(e,l),n=t._before,r=t._current,o=t._after;a({past:(0,i.__spreadArray)((0,i.__spreadArray)((0,i.__spreadArray)([],(0,i.__read)(s),!1),[c],!1),(0,i.__read)(n),!1),present:r,future:o})}}(t):void function(e){if(void 0===e&&(e=-1),0!==s.length){var t=ae(e,s),n=t._before,r=t._current,o=t._after;a({past:n,present:r,future:(0,i.__spreadArray)((0,i.__spreadArray)((0,i.__spreadArray)([],(0,i.__read)(o),!1),[c],!1),(0,i.__read)(l),!1)})}}(t)};return{value:c,backLength:s.length,forwardLength:l.length,setValue:(0,u.Z)((function(e){var n=(0,i.__spreadArray)((0,i.__spreadArray)([],(0,i.__read)(s),!1),[c],!1),r=(0,f.hj)(t)?t:Number(t);r>0&&n.length>r&&n.splice(0,1),a({present:e,future:[],past:n})})),go:(0,u.Z)(v),back:(0,u.Z)((function(){v(-1)})),forward:(0,u.Z)((function(){v(1)})),reset:(0,u.Z)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length>0?e[0]:d.current;d.current=n,a({present:n,future:[],past:[]})}))}}var se=function(e,t){var n=t||{},r=n.onEnter,o=n.onLeave,u=n.onChange,a=(0,i.__read)(h(!1),2),c=a[0],s=a[1],l=s.setTrue,f=s.setFalse;return(0,j.Z)("mouseenter",(function(){null===r||void 0===r||r(),l(),null===u||void 0===u||u(!0)}),{target:e}),(0,j.Z)("mouseleave",(function(){null===o||void 0===o||o(),f(),null===u||void 0===u||u(!1)}),{target:e}),c},le=n(66411),fe=function(e,t,n){void 0===n&&(n={});var r=(0,u.Z)(e),i=(0,o.useRef)(null),a=(0,o.useCallback)((function(){i.current&&clearInterval(i.current)}),[]);return(0,o.useEffect)((function(){if((0,f.hj)(t)&&!(t<0))return n.immediate&&r(),i.current=setInterval(r,t),a}),[t,n.immediate]),a};n(53634);var de=function(e,t){var n=(0,i.__read)((0,o.useState)(),2),r=n[0],u=n[1],a=(0,i.__read)((0,o.useState)(),2),c=a[0],s=a[1];return(0,_.Z)((function(){var n=(0,m.n)(e);if(n){var r=new IntersectionObserver((function(e){var t,n;try{for(var r=(0,i.__values)(e),o=r.next();!o.done;o=r.next()){var a=o.value;s(a.intersectionRatio),u(a.isIntersecting)}}catch(c){t={error:c}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}}),(0,i.__assign)((0,i.__assign)({},t),{root:(0,m.n)(null===t||void 0===t?void 0:t.root)}));return r.observe(n),function(){r.disconnect()}}}),[null===t||void 0===t?void 0:t.rootMargin,null===t||void 0===t?void 0:t.threshold],e),[r,c]},ve=V.Z?o.useLayoutEffect:o.useEffect,he=function(e,t,n){var r,i,u=(0,o.useRef)(),a=(0,o.useRef)(0);r=t,void 0===(i=u.current)&&(i=[]),N()(r,i)||(u.current=t,a.current+=1),(0,_.Z)(e,[a.current],n)},pe={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:/(mac|iphone|ipod|ipad)/i.test("undefined"!==typeof navigator?null===navigator||void 0===navigator?void 0:navigator.platform:"")?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},me={ctrl:function(e){return e.ctrlKey},shift:function(e){return e.shiftKey},alt:function(e){return e.altKey},meta:function(e){return"keyup"===e.type?pe.meta.includes(e.keyCode):e.metaKey}};function ge(e,t,n){var r,o;if(!e.key)return!1;if((0,f.hj)(t))return e.keyCode===t;var u=t.split("."),a=0;try{for(var c=(0,i.__values)(u),s=c.next();!s.done;s=c.next()){var l=s.value,d=me[l],v=pe[l.toLowerCase()];(d&&d(e)||v&&v===e.keyCode)&&a++}}catch(h){r={error:h}}finally{try{s&&!s.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}return n?a===u.length&&function(e){var t=Object.keys(me).reduce((function(t,n){return me[n](e)?t+1:t}),0);return[16,17,18,91,92].includes(e.keyCode)?t:t+1}(e)===u.length:a===u.length}var _e=["keydown"];var ye=function(e,t,n){var r=n||{},o=r.events,u=void 0===o?_e:o,a=r.target,c=r.exactMatch,s=void 0!==c&&c,l=r.useCapture,d=void 0!==l&&l,v=(0,p.Z)(t),h=(0,p.Z)(e);he((function(){var e,t,n,r=(0,m.n)(a,window);if(r){var o=function(e){var t,n=function(e,t){return(0,f.mf)(e)?e:(0,f.HD)(e)||(0,f.hj)(e)?function(n){return ge(n,e,t)}:Array.isArray(e)?function(n){return e.some((function(e){return ge(n,e,t)}))}:function(){return Boolean(e)}}(h.current,s);if(n(e))return null===(t=v.current)||void 0===t?void 0:t.call(v,e)};try{for(var c=(0,i.__values)(u),l=c.next();!l.done;l=c.next()){var p=l.value;null===(n=null===r||void 0===r?void 0:r.addEventListener)||void 0===n||n.call(r,p,o,d)}}catch(g){e={error:g}}finally{try{l&&!l.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}return function(){var e,t,n;try{for(var a=(0,i.__values)(u),c=a.next();!c.done;c=a.next()){var s=c.value;null===(n=null===r||void 0===r?void 0:r.removeEventListener)||void 0===n||n.call(r,s,o,d)}}catch(l){e={error:l}}finally{try{c&&!c.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}}}}),[u],a)};function be(e){return function(t,n){var r;void 0===n&&(n={});var a=n.onError,c=void 0===a?function(e){console.error(e)}:a;try{r=e()}catch(p){c(p)}function l(){try{var e=null===r||void 0===r?void 0:r.getItem(t);if(e)return i=e,(null===n||void 0===n?void 0:n.deserializer)?null===n||void 0===n?void 0:n.deserializer(i):JSON.parse(i)}catch(o){c(o)}var i;return(0,f.mf)(null===n||void 0===n?void 0:n.defaultValue)?null===n||void 0===n?void 0:n.defaultValue():null===n||void 0===n?void 0:n.defaultValue}var d=(0,i.__read)((0,o.useState)((function(){return l()})),2),v=d[0],h=d[1];return(0,s.Z)((function(){h(l())}),[t]),[v,(0,u.Z)((function(e){var i=(0,f.mf)(e)?e(v):e;if(h(i),(0,f.G7)(i))null===r||void 0===r||r.removeItem(t);else try{null===r||void 0===r||r.setItem(t,function(e){return(null===n||void 0===n?void 0:n.serializer)?null===n||void 0===n?void 0:n.serializer(e):JSON.stringify(e)}(i))}catch(o){console.error(o)}}))]}}var we=be((function(){return V.Z?localStorage:void 0}));var Ee=function(e){var t=this,n=(0,o.useRef)(!1);return(0,o.useCallback)((function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return(0,i.__awaiter)(t,void 0,void 0,(function(){var t,o;return(0,i.__generator)(this,(function(u){switch(u.label){case 0:if(n.current)return[2];n.current=!0,u.label=1;case 1:return u.trys.push([1,3,,4]),[4,e.apply(void 0,(0,i.__spreadArray)([],(0,i.__read)(r),!1))];case 2:return t=u.sent(),n.current=!1,[2,t];case 3:throw o=u.sent(),n.current=!1,o;case 4:return[2]}}))}))}),[e])},Se=V.Z&&("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch);var Ze=function(e,t,n){var r=void 0===n?{}:n,i=r.delay,u=void 0===i?300:i,a=r.moveThreshold,c=r.onClick,s=r.onLongPressEnd,l=(0,p.Z)(e),f=(0,p.Z)(c),d=(0,p.Z)(s),v=(0,o.useRef)(),h=(0,o.useRef)(!1),g=(0,o.useRef)({x:0,y:0}),y=!!((null===a||void 0===a?void 0:a.x)&&a.x>0||(null===a||void 0===a?void 0:a.y)&&a.y>0);(0,_.Z)((function(){var e=(0,m.n)(t);if(null===e||void 0===e?void 0:e.addEventListener){var n=function(e){if(y){var t=c(e),n=t.clientX,r=t.clientY;g.current.x=n,g.current.y=r}v.current=setTimeout((function(){l.current(e),h.current=!0}),u)},r=function(e){v.current&&function(e){var t=c(e),n=t.clientX,r=t.clientY,i=Math.abs(n-g.current.x),o=Math.abs(r-g.current.y);return!!((null===a||void 0===a?void 0:a.x)&&i>a.x||(null===a||void 0===a?void 0:a.y)&&o>a.y)}(e)&&(clearInterval(v.current),v.current=void 0)},i=function(e,t){var n;void 0===t&&(t=!1),v.current&&clearTimeout(v.current),h.current&&(null===(n=d.current)||void 0===n||n.call(d,e)),t&&!h.current&&f.current&&f.current(e),h.current=!1},o=function(e){return i(e,!0)};return Se?(e.addEventListener("touchstart",n),e.addEventListener("touchend",o),y&&e.addEventListener("touchmove",r)):(e.addEventListener("mousedown",n),e.addEventListener("mouseup",o),e.addEventListener("mouseleave",i),y&&e.addEventListener("mousemove",r)),function(){v.current&&(clearTimeout(v.current),h.current=!1),Se?(e.removeEventListener("touchstart",n),e.removeEventListener("touchend",o),y&&e.removeEventListener("touchmove",r)):(e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",o),e.removeEventListener("mouseleave",i),y&&e.removeEventListener("mousemove",r))}}function c(e){return e instanceof TouchEvent?{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}:e instanceof MouseEvent?{clientX:e.clientX,clientY:e.clientY}:(console.warn("Unsupported event type"),{clientX:0,clientY:0})}}),[],t)};var ke=function(e){var t=function(){return new Map(e)},n=(0,i.__read)((0,o.useState)(t),2),r=n[0],a=n[1];return[r,{set:(0,u.Z)((function(e,t){a((function(n){var r=new Map(n);return r.set(e,t),r}))})),setAll:(0,u.Z)((function(e){a(new Map(e))})),remove:(0,u.Z)((function(e){a((function(t){var n=new Map(t);return n.delete(e),n}))})),reset:(0,u.Z)((function(){return a(t())})),get:(0,u.Z)((function(e){return r.get(e)}))}]},Te=n(42061);var Le,Re=function(e){var t=(0,o.useRef)(0),n=(0,i.__read)((0,o.useState)(e),2),r=n[0],u=n[1],a=(0,o.useCallback)((function(e){cancelAnimationFrame(t.current),t.current=requestAnimationFrame((function(){u(e)}))}),[]);return(0,re.Z)((function(){cancelAnimationFrame(t.current)})),[r,a]},Oe={screenX:NaN,screenY:NaN,clientX:NaN,clientY:NaN,pageX:NaN,pageY:NaN,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},Ce=function(e){var t=(0,i.__read)(Re(Oe),2),n=t[0],r=t[1];return(0,j.Z)("mousemove",(function(t){var n=t.screenX,i=t.screenY,o=t.clientX,u=t.clientY,a=t.pageX,c=t.pageY,s={screenX:n,screenY:i,clientX:o,clientY:u,pageX:a,pageY:c,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},l=(0,m.n)(e);if(l){var f=l.getBoundingClientRect(),d=f.left,v=f.top,h=f.width,p=f.height;s.elementPosX=d+window.pageXOffset,s.elementPosY=v+window.pageYOffset,s.elementX=a-s.elementPosX,s.elementY=c-s.elementPosY,s.elementW=h,s.elementH=p}r(s)}),{target:function(){return document}}),n};function Ae(){var e=navigator;return(0,f.Kn)(e)?e.connection||e.mozConnection||e.webkitConnection:null}function xe(){var e=Ae();return e?{rtt:e.rtt,type:e.type,saveData:e.saveData,downlink:e.downlink,downlinkMax:e.downlinkMax,effectiveType:e.effectiveType}:{}}!function(e){e.ONLINE="online",e.OFFLINE="offline",e.CHANGE="change"}(Le||(Le={}));var Fe=function(){var e=(0,i.__read)((0,o.useState)((function(){return(0,i.__assign)({since:void 0,online:null===navigator||void 0===navigator?void 0:navigator.onLine},xe())})),2),t=e[0],n=e[1];return(0,o.useEffect)((function(){var e=function(){n((function(e){return(0,i.__assign)((0,i.__assign)({},e),{online:!0,since:new Date})}))},t=function(){n((function(e){return(0,i.__assign)((0,i.__assign)({},e),{online:!1,since:new Date})}))},r=function(){n((function(e){return(0,i.__assign)((0,i.__assign)({},e),xe())}))};window.addEventListener(Le.ONLINE,e),window.addEventListener(Le.OFFLINE,t);var o=Ae();return null===o||void 0===o||o.addEventListener(Le.CHANGE,r),function(){window.removeEventListener(Le.ONLINE,e),window.removeEventListener(Le.OFFLINE,t),null===o||void 0===o||o.removeEventListener(Le.CHANGE,r)}}),[]),t},Me=function(e,t){return!Object.is(e,t)};var Ie=function(e,t){void 0===t&&(t=Me);var n=(0,o.useRef)(),r=(0,o.useRef)();return t(r.current,e)&&(n.current=r.current,r.current=e),n.current};var Ne=function(e){if(e.id,"undefined"===typeof cancelAnimationFrame)return clearInterval(e.id);cancelAnimationFrame(e.id)};var De=function(e,t,n){var r=null===n||void 0===n?void 0:n.immediate,i=(0,p.Z)(e),u=(0,o.useRef)();return(0,o.useEffect)((function(){if((0,f.hj)(t)&&!(t<0))return r&&i.current(),u.current=function(e,t){if(void 0===t&&(t=0),"undefined"===typeof requestAnimationFrame)return{id:setInterval(e,t)};var n=(new Date).getTime(),r={id:0};return r.id=requestAnimationFrame((function i(){(new Date).getTime()-n>=t&&(e(),n=(new Date).getTime()),r.id=requestAnimationFrame(i)})),r}((function(){i.current()}),t),function(){u.current&&Ne(u.current)}}),[t]),(0,o.useCallback)((function(){u.current&&Ne(u.current)}),[])};var ze=function(e){if(e.id,"undefined"===typeof cancelAnimationFrame)return clearTimeout(e.id);cancelAnimationFrame(e.id)};var Pe,je=function(e,t){var n=(0,p.Z)(e),r=(0,o.useRef)();return(0,o.useEffect)((function(){if((0,f.hj)(t)&&!(t<0))return r.current=function(e,t){if(void 0===t&&(t=0),"undefined"===typeof requestAnimationFrame)return{id:setTimeout(e,t)};var n={id:0},r=(new Date).getTime();return n.id=requestAnimationFrame((function i(){(new Date).getTime()-r>=t?e():n.id=requestAnimationFrame(i)})),n}((function(){n.current()}),t),function(){r.current&&ze(r.current)}}),[t]),(0,o.useCallback)((function(){r.current&&ze(r.current)}),[])},Ve=n(12673),qe=n(813),Ue=function(e){var t=(0,i.__read)((0,o.useState)(e),2),n=t[0],r=t[1],a=(0,u.Z)((function(){r(e)}));return[n,r,a]},Ye=new Set,He={xs:0,sm:576,md:768,lg:992,xl:1200};function Xe(){var e,t,n=Pe;if(Be(),n!==Pe)try{for(var r=(0,i.__values)(Ye),o=r.next();!o.done;o=r.next()){(0,o.value)()}}catch(u){e={error:u}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}}var We=!1;function Be(){var e,t,n=window.innerWidth,r={},o=!1;try{for(var u=(0,i.__values)(Object.keys(He)),a=u.next();!a.done;a=u.next()){var c=a.value;r[c]=n>=He[c],r[c]!==Pe[c]&&(o=!0)}}catch(s){e={error:s}}finally{try{a&&!a.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}o&&(Pe=r)}function Ge(e){He=e,Pe&&Be()}function Ke(){V.Z&&!We&&(Pe={},Be(),window.addEventListener("resize",Xe),We=!0);var e=(0,i.__read)((0,o.useState)(Pe),2),t=e[0],n=e[1];return(0,o.useEffect)((function(){if(V.Z){We||window.addEventListener("resize",Xe);var e=function(){n(Pe)};return Ye.add(e),function(){Ye.delete(e),0===Ye.size&&(window.removeEventListener("resize",Xe),We=!1)}}}),[]),t}var Je=function(){var e=(0,o.useRef)(!1);return(0,o.useEffect)((function(){return e.current=!1,function(){e.current=!0}}),[]),e};var $e=function(e){var t=Je(),n=(0,i.__read)((0,o.useState)(e),2),r=n[0],u=n[1];return[r,(0,o.useCallback)((function(e){t.current||u(e)}),[])]};var Qe=function(e,t){void 0===t&&(t=function(){return!0});var n=(0,i.__read)(Re(),2),r=n[0],o=n[1],u=(0,p.Z)(t);return(0,_.Z)((function(){var t=(0,m.n)(e,document);if(t){var n=function(){var e;e=t===document?document.scrollingElement?{left:document.scrollingElement.scrollLeft,top:document.scrollingElement.scrollTop}:{left:Math.max(window.pageXOffset,document.documentElement.scrollLeft,document.body.scrollLeft),top:Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop)}:{left:t.scrollLeft,top:t.scrollTop},u.current(e)&&o(e)};return n(),t.addEventListener("scroll",n),function(){t.removeEventListener("scroll",n)}}}),[],e),r};function et(e,t){void 0===t&&(t=[]);var n=(0,i.__read)((0,o.useState)(t),2),r=n[0],a=n[1],c=(0,o.useMemo)((function(){return new Set(r)}),[r]),s=function(e){return c.has(e)},l=function(e){return c.add(e),a(Array.from(c))},f=function(e){return c.delete(e),a(Array.from(c))},d=function(){e.forEach((function(e){c.add(e)})),a(Array.from(c))},v=function(){e.forEach((function(e){c.delete(e)})),a(Array.from(c))},h=(0,o.useMemo)((function(){return e.every((function(e){return!c.has(e)}))}),[e,c]),p=(0,o.useMemo)((function(){return e.every((function(e){return c.has(e)}))&&!h}),[e,c,h]),m=(0,o.useMemo)((function(){return!h&&!p}),[h,p]);return{selected:r,noneSelected:h,allSelected:p,partiallySelected:m,setSelected:a,isSelected:s,select:(0,u.Z)(l),unSelect:(0,u.Z)(f),toggle:(0,u.Z)((function(e){s(e)?f(e):l(e)})),selectAll:(0,u.Z)(d),unSelectAll:(0,u.Z)(v),toggleAll:(0,u.Z)((function(){return p?v():d()}))}}var tt=be((function(){return V.Z?sessionStorage:void 0}));var nt=function(e){var t=function(){return new Set(e)},n=(0,i.__read)((0,o.useState)(t),2),r=n[0],a=n[1];return[r,{add:(0,u.Z)((function(e){r.has(e)||a((function(t){var n=new Set(t);return n.add(e),n}))})),remove:(0,u.Z)((function(e){r.has(e)&&a((function(t){var n=new Set(t);return n.delete(e),n}))})),reset:(0,u.Z)((function(){return a(t())}))}]},rt=function(e){var t=(0,i.__read)((0,o.useState)(e),2),n=t[0],r=t[1];return[n,(0,o.useCallback)((function(e){r((function(t){var n=(0,f.mf)(e)?e(t):e;return n?(0,i.__assign)((0,i.__assign)({},t),n):t}))}),[])]},it=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),ot="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,ut="undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),at="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(ut):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var ct=["top","right","bottom","left","width","height","size","weight"],st="undefined"!==typeof MutationObserver,lt=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&a()}function u(){at(o)}function a(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(u,t);i=e}return a}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){ot&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),st?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){ot&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;ct.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),ft=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},dt=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||ut},vt=yt(0,0,0,0);function ht(e){return parseFloat(e)||0}function pt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+ht(e["border-"+n+"-width"])}),0)}function mt(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return vt;var r=dt(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=ht(o)}return t}(r),o=i.left+i.right,u=i.top+i.bottom,a=ht(r.width),c=ht(r.height);if("border-box"===r.boxSizing&&(Math.round(a+o)!==t&&(a-=pt(r,"left","right")+o),Math.round(c+u)!==n&&(c-=pt(r,"top","bottom")+u)),!function(e){return e===dt(e).document.documentElement}(e)){var s=Math.round(a+o)-t,l=Math.round(c+u)-n;1!==Math.abs(s)&&(a-=s),1!==Math.abs(l)&&(c-=l)}return yt(i.left,i.top,a,c)}var gt="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof dt(e).SVGGraphicsElement}:function(e){return e instanceof dt(e).SVGElement&&"function"===typeof e.getBBox};function _t(e){return ot?gt(e)?function(e){var t=e.getBBox();return yt(0,0,t.width,t.height)}(e):mt(e):vt}function yt(e,t,n,r){return{x:e,y:t,width:n,height:r}}var bt=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=yt(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=_t(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),wt=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(o.prototype);return ft(u,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),u}(t);ft(this,{target:e,contentRect:n})},Et=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new it,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof dt(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new bt(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof dt(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new wt(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),St="undefined"!==typeof WeakMap?new WeakMap:new it,Zt=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=lt.getInstance(),r=new Et(t,n,this);St.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Zt.prototype[e]=function(){var t;return(t=St.get(this))[e].apply(t,arguments)}}));var kt="undefined"!==typeof ut.ResizeObserver?ut.ResizeObserver:Zt,Tt=(0,n(36941).Z)(o.useLayoutEffect),Lt=V.Z?Tt:_.Z;var Rt=function(e){var t=(0,i.__read)(Re((function(){var t=(0,m.n)(e);return t?{width:t.clientWidth,height:t.clientHeight}:void 0})),2),n=t[0],r=t[1];return Lt((function(){var t=(0,m.n)(e);if(t){var n=new kt((function(e){e.forEach((function(e){var t=e.target,n=t.clientWidth,i=t.clientHeight;r({width:n,height:i})}))}));return n.observe(t),function(){n.disconnect()}}}),[],e),n},Ot={top:NaN,left:NaN,bottom:NaN,right:NaN,height:NaN,width:NaN},Ct=(0,i.__assign)({text:""},Ot);var At=function(e){var t=(0,i.__read)((0,o.useState)(Ct),2),n=t[0],r=t[1],u=(0,o.useRef)(n),a=(0,o.useRef)(!1);return u.current=n,(0,_.Z)((function(){var t=(0,m.n)(e,document);if(t){var o=function(){var e,t=null,o=Ot;window.getSelection&&(e=(t=window.getSelection())?t.toString():"")&&a.current&&(o=function(e){if(!e)return Ot;if(e.rangeCount<1)return Ot;var t=e.getRangeAt(0).getBoundingClientRect();return{height:t.height,width:t.width,top:t.top,left:t.left,right:t.right,bottom:t.bottom}}(t),r((0,i.__assign)((0,i.__assign)((0,i.__assign)({},n),{text:e}),o)))},c=function(e){if(window.getSelection){u.current.text&&r((0,i.__assign)({},Ct)),a.current=!1;var n=window.getSelection();n&&(n.removeAllRanges(),a.current=t.contains(e.target))}};return t.addEventListener("mouseup",o),document.addEventListener("mousedown",c),function(){t.removeEventListener("mouseup",o),document.removeEventListener("mousedown",c)}}}),[],e),n},xt=n(8406),Ft=n.n(xt),Mt=n(59818);var It=function(e,t){var n;Mt.Z&&((0,f.mf)(e)||console.error("useThrottleFn expected parameter is a function, got ".concat(typeof e)));var r=(0,p.Z)(e),u=null!==(n=null===t||void 0===t?void 0:t.wait)&&void 0!==n?n:1e3,a=(0,o.useMemo)((function(){return Ft()((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.current.apply(r,(0,i.__spreadArray)([],(0,i.__read)(e),!1))}),u,t)}),[]);return(0,re.Z)((function(){a.cancel()})),{run:a,cancel:a.cancel,flush:a.flush}};var Nt=function(e,t){var n=(0,i.__read)((0,o.useState)(e),2),r=n[0],u=n[1],a=It((function(){u(e)}),t).run;return(0,o.useEffect)((function(){a()}),[e]),r};var Dt=function(e,t,n){var r=(0,i.__read)((0,o.useState)({}),2),u=r[0],a=r[1],c=It((function(){a({})}),n).run;(0,o.useEffect)((function(){return c()}),t),(0,s.Z)(e,[u])},zt=function(e,t){var n=(0,u.Z)(e),r=(0,o.useRef)(null),i=(0,o.useCallback)((function(){r.current&&clearTimeout(r.current)}),[]);return(0,o.useEffect)((function(){if((0,f.hj)(t)&&!(t<0))return r.current=setTimeout(n,t),i}),[t]),i},Pt={restoreOnUnmount:!1};var jt,Vt=function(e,t){void 0===t&&(t=Pt);var n=(0,o.useRef)(V.Z?document.title:"");(0,o.useEffect)((function(){document.title=e}),[e]),(0,re.Z)((function(){t.restoreOnUnmount&&(document.title=n.current)}))},qt=function(e,t){var n=(0,o.useRef)();(0,o.useEffect)((function(){var r,i,o=(r=n.current,i=t,r?r.map((function(e,t){return Object.is(r[t],null===i||void 0===i?void 0:i[t])?-1:t})).filter((function(e){return e>=0})):i?i.map((function(e,t){return t})):[]),u=n.current;return n.current=t,e(o,u,t)}),t)},Ut=(0,r.a)(o.useLayoutEffect),Yt=function(e,t){var n=t.containerTarget,r=t.wrapperTarget,a=t.itemHeight,c=t.overscan,l=void 0===c?5:c,d=(0,p.Z)(a),v=Rt(n),h=(0,o.useRef)(!1),g=(0,i.__read)((0,o.useState)([]),2),_=g[0],y=g[1],b=(0,i.__read)((0,o.useState)({}),2),w=b[0],E=b[1],S=function(t){return(0,f.hj)(d.current)?t*d.current:e.slice(0,t).reduce((function(t,n,r){return t+d.current(r,e[r])}),0)},Z=(0,o.useMemo)((function(){return(0,f.hj)(d.current)?e.length*d.current:e.reduce((function(t,n,r){return t+d.current(r,e[r])}),0)}),[e]),k=function(){var t=(0,m.n)(n);if(t){var r=t.scrollTop,i=t.clientHeight,o=function(t){if((0,f.hj)(d.current))return Math.floor(t/d.current)+1;for(var n=0,r=0,i=0;i<e.length;i++)if((n+=d.current(i,e[i]))>=t){r=i;break}return r+1}(r),u=function(t,n){if((0,f.hj)(d.current))return Math.ceil(t/d.current);for(var r=0,i=0,o=n;o<e.length&&(i=o,!((r+=d.current(o,e[o]))>=t));o++);return i-n}(i,o),a=Math.max(0,o-l),c=Math.min(e.length,o+u+l),s=S(a);E({height:Z-s+"px",marginTop:s+"px"}),y(e.slice(a,c).map((function(e,t){return{data:e,index:t+a}})))}};(0,s.Z)((function(){var e=(0,m.n)(r);e&&Object.keys(w).forEach((function(t){return e.style[t]=w[t]}))}),[w]),(0,o.useEffect)((function(){(null===v||void 0===v?void 0:v.width)&&(null===v||void 0===v?void 0:v.height)&&k()}),[null===v||void 0===v?void 0:v.width,null===v||void 0===v?void 0:v.height,e]),(0,j.Z)("scroll",(function(e){h.current?h.current=!1:(e.preventDefault(),k())}),{target:n});return[_,(0,u.Z)((function(e){var t=(0,m.n)(n);t&&(h.current=!0,t.scrollTop=S(e),k())}))]};function Ht(e,t){void 0===t&&(t={});var n=t.reconnectLimit,r=void 0===n?3:n,a=t.reconnectInterval,c=void 0===a?3e3:a,s=t.manual,l=void 0!==s&&s,f=t.onOpen,d=t.onClose,v=t.onMessage,h=t.onError,m=t.protocols,g=(0,p.Z)(f),_=(0,p.Z)(d),y=(0,p.Z)(v),b=(0,p.Z)(h),w=(0,o.useRef)(0),E=(0,o.useRef)(),S=(0,o.useRef)(),Z=(0,o.useRef)(!1),k=(0,i.__read)((0,o.useState)(),2),T=k[0],L=k[1],R=(0,i.__read)((0,o.useState)(jt.Closed),2),O=R[0],C=R[1],A=function(){var e;w.current<r&&(null===(e=S.current)||void 0===e?void 0:e.readyState)!==jt.Open&&(E.current&&clearTimeout(E.current),E.current=setTimeout((function(){x(),w.current++}),c))},x=function(){E.current&&clearTimeout(E.current),S.current&&S.current.close();var t=new WebSocket(e,m);C(jt.Connecting),t.onerror=function(e){var n;Z.current||(A(),null===(n=b.current)||void 0===n||n.call(b,e,t),C(t.readyState||jt.Closed))},t.onopen=function(e){var n;Z.current||(null===(n=g.current)||void 0===n||n.call(g,e,t),w.current=0,C(t.readyState||jt.Open))},t.onmessage=function(e){var n;Z.current||(null===(n=y.current)||void 0===n||n.call(y,e,t),L(e))},t.onclose=function(e){var n;Z.current||(A(),null===(n=_.current)||void 0===n||n.call(_,e,t),C(t.readyState||jt.Closed))},S.current=t},F=function(){w.current=0,x()},M=function(){var e;E.current&&clearTimeout(E.current),w.current=r,null===(e=S.current)||void 0===e||e.close()};return(0,o.useEffect)((function(){l||F()}),[e,l]),(0,re.Z)((function(){Z.current=!0,M()})),{latestMessage:T,sendMessage:(0,u.Z)((function(e){var t;if(O!==jt.Open)throw new Error("WebSocket disconnected");null===(t=S.current)||void 0===t||t.send(e)})),connect:(0,u.Z)(F),disconnect:(0,u.Z)(M),readyState:O,webSocketIns:S.current}}function Xt(e,t){var n=(0,o.useRef)({});(0,o.useEffect)((function(){if(n.current){var r=Object.keys((0,i.__assign)((0,i.__assign)({},n.current),t)),o={};r.forEach((function(e){Object.is(n.current[e],t[e])||(o[e]={from:n.current[e],to:t[e]})})),Object.keys(o).length&&console.log("[why-did-you-update]",e,o)}n.current=t}))}!function(e){e[e.Connecting=0]="Connecting",e[e.Open=1]="Open",e[e.Closing=2]="Closing",e[e.Closed=3]="Closed"}(jt||(jt={}));var Wt=function(e,t,n){void 0===n&&(n={});var r=(0,p.Z)(e);he((function(){var e=(0,m.n)(t);if(e){var i=new MutationObserver(r.current);return i.observe(e,n),function(){i&&i.disconnect()}}}),[n],t)}},53634:function(){!function(){"use strict";if("object"===typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=function(e){for(var t=window.document,n=i(t);n;)n=i(t=n.ownerDocument);return t}(),t=[],n=null,r=null;u.prototype.THROTTLE_TIMEOUT=100,u.prototype.POLL_INTERVAL=null,u.prototype.USE_MUTATION_OBSERVER=!0,u._setupCrossOriginUpdater=function(){return n||(n=function(e,n){r=e&&n?d(e,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach((function(e){e._checkForIntersections()}))}),n},u._resetCrossOriginUpdater=function(){n=null,r=null},u.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},u.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},u.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},u.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},u.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},u.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},u.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var r=this._checkForIntersections,o=null,u=null;this.POLL_INTERVAL?o=n.setInterval(r,this.POLL_INTERVAL):(a(n,"resize",r,!0),a(t,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(u=new n.MutationObserver(r)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push((function(){var e=t.defaultView;e&&(o&&e.clearInterval(o),c(e,"resize",r,!0)),c(t,"scroll",r,!0),u&&u.disconnect()}));var s=this.root&&(this.root.ownerDocument||this.root)||e;if(t!=s){var l=i(t);l&&this._monitorIntersections(l.ownerDocument)}}},u.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var r=this.root&&(this.root.ownerDocument||this.root)||e,o=this._observationTargets.some((function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=r;){var o=i(n);if((n=o&&o.ownerDocument)==t)return!0}return!1}));if(!o){var u=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),u(),t!=r){var a=i(t);a&&this._unmonitorIntersections(a.ownerDocument)}}}},u.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},u.prototype._checkForIntersections=function(){if(this.root||!n||r){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var i=r.element,u=l(i),a=this._rootContainsTarget(i),c=r.entry,s=e&&a&&this._computeTargetAndRootIntersection(i,u,t),f=null;this._rootContainsTarget(i)?n&&!this.root||(f=t):f={top:0,bottom:0,left:0,right:0,width:0,height:0};var d=r.entry=new o({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:u,rootBounds:f,intersectionRect:s});c?e&&a?this._hasCrossedThreshold(c,d)&&this._queuedEntries.push(d):c&&c.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},u.prototype._computeTargetAndRootIntersection=function(t,i,o){if("none"!=window.getComputedStyle(t).display){for(var u=i,a=h(t),c=!1;!c&&a;){var f=null,v=1==a.nodeType?window.getComputedStyle(a):{};if("none"==v.display)return null;if(a==this.root||9==a.nodeType)if(c=!0,a==this.root||a==e)n&&!this.root?!r||0==r.width&&0==r.height?(a=null,f=null,u=null):f=r:f=o;else{var p=h(a),m=p&&l(p),g=p&&this._computeTargetAndRootIntersection(p,m,o);m&&g?(a=p,f=d(m,g)):(a=null,u=null)}else{var _=a.ownerDocument;a!=_.body&&a!=_.documentElement&&"visible"!=v.overflow&&(f=l(a))}if(f&&(u=s(f,u)),!u)break;a=a&&h(a)}return u}},u.prototype._getRootRect=function(){var t;if(this.root&&!p(this.root))t=l(this.root);else{var n=p(this.root)?this.root:e,r=n.documentElement,i=n.body;t={top:0,left:0,right:r.clientWidth||i.clientWidth,width:r.clientWidth||i.clientWidth,bottom:r.clientHeight||i.clientHeight,height:r.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(t)},u.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},u.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var i=0;i<this.thresholds.length;i++){var o=this.thresholds[i];if(o==n||o==r||o<n!==o<r)return!0}},u.prototype._rootIsInDom=function(){return!this.root||v(e,this.root)},u.prototype._rootContainsTarget=function(t){var n=this.root&&(this.root.ownerDocument||this.root)||e;return v(n,t)&&(!this.root||n==t.ownerDocument)},u.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},u.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=u,window.IntersectionObserverEntry=o}function i(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(t){return null}}function o(e){this.time=e.time,this.target=e.target,this.rootBounds=f(e.rootBounds),this.boundingClientRect=f(e.boundingClientRect),this.intersectionRect=f(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,i=r.width*r.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}function u(e,t){var n=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType&&9!=n.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=function(e,t){var n=null;return function(){n||(n=setTimeout((function(){e(),n=null}),t))}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function a(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function c(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detachEvent&&e.detachEvent("on"+t,n)}function s(e,t){var n=Math.max(e.top,t.top),r=Math.min(e.bottom,t.bottom),i=Math.max(e.left,t.left),o=Math.min(e.right,t.right),u=o-i,a=r-n;return u>=0&&a>=0&&{top:n,bottom:r,left:i,right:o,width:u,height:a}||null}function l(e){var t;try{t=e.getBoundingClientRect()}catch(n){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function f(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function d(e,t){var n=t.top-e.top,r=t.left-e.left;return{top:n,left:r,height:t.height,width:t.width,bottom:n+t.height,right:r+t.width}}function v(e,t){for(var n=t;n;){if(n==e)return!0;n=h(n)}return!1}function h(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?i(t):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host?n.host:n)}function p(e){return e&&9===e.nodeType}}()},20026:function(e){!function(){"use strict";var t="undefined"!==typeof window&&"undefined"!==typeof window.document?window.document:{},n=e.exports,r=function(){for(var e,n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],r=0,i=n.length,o={};r<i;r++)if((e=n[r])&&e[1]in t){for(r=0;r<e.length;r++)o[n[0][r]]=e[r];return o}return!1}(),i={change:r.fullscreenchange,error:r.fullscreenerror},o={request:function(e,n){return new Promise(function(i,o){var u=function(){this.off("change",u),i()}.bind(this);this.on("change",u);var a=(e=e||t.documentElement)[r.requestFullscreen](n);a instanceof Promise&&a.then(u).catch(o)}.bind(this))},exit:function(){return new Promise(function(e,n){if(this.isFullscreen){var i=function(){this.off("change",i),e()}.bind(this);this.on("change",i);var o=t[r.exitFullscreen]();o instanceof Promise&&o.then(i).catch(n)}else e()}.bind(this))},toggle:function(e,t){return this.isFullscreen?this.exit():this.request(e,t)},onchange:function(e){this.on("change",e)},onerror:function(e){this.on("error",e)},on:function(e,n){var r=i[e];r&&t.addEventListener(r,n,!1)},off:function(e,n){var r=i[e];r&&t.removeEventListener(r,n,!1)},raw:r};r?(Object.defineProperties(o,{isFullscreen:{get:function(){return Boolean(t[r.fullscreenElement])}},element:{enumerable:!0,get:function(){return t[r.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(t[r.fullscreenEnabled])}}}),n?e.exports=o:window.screenfull=o):n?e.exports={isEnabled:!1}:window.screenfull={isEnabled:!1}}()}}]);