diff --git a/modules/core/src/main/java/com/bytedesk/core/constant/I18Consts.java b/modules/core/src/main/java/com/bytedesk/core/constant/I18Consts.java index 42c15af6eb..703d6413d7 100644 --- a/modules/core/src/main/java/com/bytedesk/core/constant/I18Consts.java +++ b/modules/core/src/main/java/com/bytedesk/core/constant/I18Consts.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-26 22:25:47 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-12-03 12:32:19 + * @LastEditTime: 2024-12-16 11:26:38 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -28,6 +28,8 @@ public class I18Consts { // public static final String ZH_TW = "zh-TW"; public static final String I18N_PREFIX = "i18n."; + // + public static final String I18N_USERNAME_OR_PASSWORD_INCORRECT = I18N_PREFIX + "username.or.password.incorrect"; // captcha public static final String I18N_AUTH_CAPTCHA_SEND_SUCCESS = I18N_PREFIX + "auth.captcha.send.success"; public static final String I18N_AUTH_CAPTCHA_ERROR = I18N_PREFIX + "auth.captcha.error"; diff --git a/modules/core/src/main/java/com/bytedesk/core/exception/GlobalControllerAdvice.java b/modules/core/src/main/java/com/bytedesk/core/exception/GlobalControllerAdvice.java index 016592e8e5..92f377e7bb 100644 --- a/modules/core/src/main/java/com/bytedesk/core/exception/GlobalControllerAdvice.java +++ b/modules/core/src/main/java/com/bytedesk/core/exception/GlobalControllerAdvice.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-26 09:31:29 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-11-28 17:46:33 + * @LastEditTime: 2024-12-16 11:26:59 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -117,7 +117,7 @@ public class GlobalControllerAdvice { @ExceptionHandler(BadCredentialsException.class) public ResponseEntity handleBadCredentialsException(BadCredentialsException e) { - return ResponseEntity.ok().body(JsonResult.error("Username or password is incorrect")); + return ResponseEntity.ok().body(JsonResult.error(I18Consts.I18N_USERNAME_OR_PASSWORD_INCORRECT)); } @ExceptionHandler(value = NullPointerException.class) diff --git a/modules/python/poetry.lock b/modules/python/poetry.lock index 7c9ae1292b..214353b3f7 100644 --- a/modules/python/poetry.lock +++ b/modules/python/poetry.lock @@ -3429,12 +3429,12 @@ reference = "mirrors" [[package]] name = "pdfplumber" -version = "0.5.3" +version = "0.5.4" description = "Plumb a PDF for detailed information about each char, rectangle, and line." optional = false python-versions = "*" files = [ - {file = "pdfplumber-0.5.3.tar.gz", hash = "sha256:48b318b5f3e618115ff34c492b7061665a1c4d35daae89605e20abe79f3d33b1"}, + {file = "pdfplumber-0.5.4.tar.gz", hash = "sha256:48b318b5f3e618115ff34c492b7061665a1c4d35daae89605e20abe79f3d33b1"}, ] [package.dependencies] diff --git a/starter/docker-compose.yaml b/starter/docker-compose.yaml index 549e28a481..f73dc54964 100644 --- a/starter/docker-compose.yaml +++ b/starter/docker-compose.yaml @@ -17,7 +17,7 @@ services: - "6379:6379" bytedesk: # image: bytedesk/bytedesk:latest - image: registry.cn-hangzhou.aliyuncs.com/weiyuai/bytedesk:0.5.3 + image: registry.cn-hangzhou.aliyuncs.com/weiyuai/bytedesk:0.5.4 container_name: bytedesk depends_on: - bytedesk-db diff --git a/starter/docker.md b/starter/docker.md index a084c032f1..4db41d14ce 100644 --- a/starter/docker.md +++ b/starter/docker.md @@ -1,17 +1,3 @@ - # docker ```bash diff --git a/starter/src/main/resources/templates/admin/asset-manifest.json b/starter/src/main/resources/templates/admin/asset-manifest.json index 7be7a73673..2ce7b3f4bc 100644 --- a/starter/src/main/resources/templates/admin/asset-manifest.json +++ b/starter/src/main/resources/templates/admin/asset-manifest.json @@ -1,8 +1,8 @@ { "/admin/umi.css": "/admin/umi.999685c6.css", - "/admin/umi.js": "/admin/umi.5f3baee5.js", + "/admin/umi.js": "/admin/umi.082ccafe.js", "/admin/4994.caecc91d.async.js": "/admin/4994.caecc91d.async.js", - "/admin/p__Auth__Login__index.js": "/admin/p__Auth__Login__index.e6a73a4c.async.js", + "/admin/p__Auth__Login__index.js": "/admin/p__Auth__Login__index.7c9aeeea.async.js", "/admin/p__Auth__Register__index.js": "/admin/p__Auth__Register__index.888c6210.async.js", "/admin/p__OAuth__Github.js": "/admin/p__OAuth__Github.580071ed.async.js", "/admin/p__OAuth__Google.js": "/admin/p__OAuth__Google.2e7cc6a4.async.js", @@ -98,7 +98,7 @@ "/admin/p__Dashboard__Knowledge__Faq__FaqStatistic.js": "/admin/p__Dashboard__Knowledge__Faq__FaqStatistic.7b344d22.async.js", "/admin/p__Dashboard__Knowledge__AutoReply__index.js": "/admin/p__Dashboard__Knowledge__AutoReply__index.3f9da60f.async.js", "/admin/p__Dashboard__Knowledge__AutoReply__AutoReplyData.css": "/admin/p__Dashboard__Knowledge__AutoReply__AutoReplyData.f9c908ef.chunk.css", - "/admin/p__Dashboard__Knowledge__AutoReply__AutoReplyData.js": "/admin/p__Dashboard__Knowledge__AutoReply__AutoReplyData.7bddef2e.async.js", + "/admin/p__Dashboard__Knowledge__AutoReply__AutoReplyData.js": "/admin/p__Dashboard__Knowledge__AutoReply__AutoReplyData.860249e9.async.js", "/admin/p__Dashboard__Knowledge__AutoReply__AutoReplyStatistic.js": "/admin/p__Dashboard__Knowledge__AutoReply__AutoReplyStatistic.9ec44268.async.js", "/admin/p__Dashboard__Knowledge__QuickReply__index.js": "/admin/p__Dashboard__Knowledge__QuickReply__index.f2503ccf.async.js", "/admin/p__Dashboard__Knowledge__QuickReply__QuickReplyData.css": "/admin/p__Dashboard__Knowledge__QuickReply__QuickReplyData.f9c908ef.chunk.css", diff --git a/starter/src/main/resources/templates/admin/index.html b/starter/src/main/resources/templates/admin/index.html index 1930b6adef..a00b3d6e09 100644 --- a/starter/src/main/resources/templates/admin/index.html +++ b/starter/src/main/resources/templates/admin/index.html @@ -7,10 +7,10 @@ 微语 - +
- + \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Auth__Login__index.7c9aeeea.async.js b/starter/src/main/resources/templates/admin/p__Auth__Login__index.7c9aeeea.async.js new file mode 100644 index 0000000000..775dbfd18d --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Auth__Login__index.7c9aeeea.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9368],{94546:function(e,t){t.Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"}},1641:function(e,t,n){var r=n(11757),a=n(44194),s=n(94546),o=n(63837),i=function(e,t){return a.createElement(o.Z,(0,r.Z)({},e,{ref:t,icon:s.Z}))},c=a.forwardRef(i);t.Z=c},2724:function(e,t,n){var r=n(17082),a=n(51190),s=n(19753),o=n(19421),i=n(44194),c=n(79379),l=n(93288),u=n(31549),d=["options","fieldProps","proFieldProps","valueEnum"],g=i.forwardRef((function(e,t){var n=e.options,o=e.fieldProps,i=e.proFieldProps,c=e.valueEnum,g=(0,a.Z)(e,d);return(0,u.jsx)(l.Z,(0,r.Z)({ref:t,valueType:"checkbox",valueEnum:(0,s.h)(c,void 0),fieldProps:(0,r.Z)({options:n},o),lightProps:(0,r.Z)({labelFormatter:function(){return(0,u.jsx)(l.Z,(0,r.Z)({ref:t,valueType:"checkbox",mode:"read",valueEnum:(0,s.h)(c,void 0),filedConfig:{customLightMode:!0},fieldProps:(0,r.Z)({options:n},o),proFieldProps:i},g))}},g.lightProps),proFieldProps:i},g))})),f=i.forwardRef((function(e,t){var n=e.fieldProps,a=e.children;return(0,u.jsx)(o.Z,(0,r.Z)((0,r.Z)({ref:t},n),{},{children:a}))})),p=(0,c.G)(f,{valuePropName:"checked"});p.Group=g,t.Z=p},85768:function(e,t,n){n.d(t,{Z:function(){return w}});var r=n(90819),a=n.n(r),s=n(89933),o=n.n(s),i=n(45332),c=n.n(i),l=n(77667),u=n(7206);function d(){return g.apply(this,arguments)}function g(){return(g=o()(a()().mark((function e(){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/kaptcha/api/v1/get",{method:"GET",params:{client:l.bVn}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e,t){return p.apply(this,arguments)}function p(){return(p=o()(a()().mark((function e(t,n){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/kaptcha/api/v1/check",{method:"POST",data:{captchaUid:t,captchaCode:n,client:l.bVn}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var h=n(69560),m=n(19140),v=n(44194),x=n(31549),w=function(e){var t=e.onKaptchaChange,n=e.onKaptchaCheck,r=(0,u.useIntl)(),s=(0,v.useState)(),i=c()(s,2),l=i[0],g=i[1],p=(0,v.useState)(),w=c()(p,2),k=w[0],y=w[1],b=function(){var e=o()(a()().mark((function e(){var t;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d();case 2:200===(t=e.sent).code&&(g(t.data.captchaUid),y(t.data.captchaImage));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),M=function(){var e=o()(a()().mark((function e(t,r){var s;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f(t,r);case 2:s=e.sent,console.log("checkCaptcha response",s),200===s.code?n&&n(!0):n&&n(!1);case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();(0,v.useEffect)((function(){b()}),[]);return(0,x.jsx)(x.Fragment,{children:k&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(m.Z,{onChange:function(e){t&&(t(l,e.target.value),e.target.value&&""!==e.target.value&&4===e.target.value.trim().length?M(l,e.target.value):n&&n(!1))},prefix:(0,x.jsx)(h.Z,{}),placeholder:r.formatMessage({id:"captcha",defaultMessage:"captcha"}),style:{width:"65%",float:"left",height:40},allowClear:!0}),(0,x.jsx)("img",{src:k,alt:"captcha",onClick:b})]})})}},57374:function(e,t,n){n.r(t),n.d(t,{default:function(){return se}});var r=n(73193),a=n.n(r),s=n(90819),o=n.n(s),i=n(89933),c=n.n(i),l=n(45332),u=n.n(l),d=n(90351),g=n(5728),f=n(75625),p=n(90774),h=n(28311),m=n(34757),v=n(7206),x=n(48974),w=n(50571),k=n(12265),y=n(40881),b=n(78386),M=n(44194),j=n(56321),C=n(22509),Z=n(89756),S=n(46465),U=n(74145),F=n(77667),I=n(85768),P=n(97146),T=n(98652),L=n(43688),D=n(31549),E=function(e){var t=e.loginType,n=e.onKaptchaChange,r=e.onKaptchaCheck,a=(0,v.useIntl)(),s=function(){var e=c()(o()().mark((function e(t,r){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n&&n(t,r);case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),i=function(){var e=c()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r&&r(t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,D.jsx)(D.Fragment,{children:"account"===t&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(L.Z,{name:"username",fieldProps:{size:"large",prefix:(0,D.jsx)(P.Z,{})},placeholder:a.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"用户名/邮箱"}),rules:[{required:!0,message:(0,D.jsx)(v.FormattedMessage,{id:"pages.login.username.required",defaultMessage:"请输入用户名/邮箱!"})}]}),(0,D.jsx)(L.Z.Password,{name:"password",fieldProps:{size:"large",prefix:(0,D.jsx)(T.Z,{})},placeholder:a.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"密码"}),rules:[{required:!0,message:(0,D.jsx)(v.FormattedMessage,{id:"pages.login.password.required",defaultMessage:"请输入密码!"})}]}),(0,D.jsx)(g.A.Item,{name:"captchaCode",rules:[{required:!0,message:a.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:(0,D.jsx)(I.Z,{onKaptchaChange:s,onKaptchaCheck:i})})]})})},K=n(74828),q=n(50784),A=n(46017),R=n(93982),V=function(e){var t=e.loginType,n=e.onKaptchaChange,r=e.onKaptchaCheck,a=(0,v.useIntl)(),s=(0,M.useRef)(),i=(0,M.useState)(""),l=u()(i,2),f=l[0],p=l[1],h=(0,M.useState)(""),m=u()(h,2),x=m[0],w=m[1],k=(0,M.useState)(!1),y=u()(k,2),b=y[0],j=y[1],S=(0,C.L)((function(e){return{deviceUid:e.deviceUid,setDeviceUid:e.setDeviceUid}})),U=S.deviceUid,P=S.setDeviceUid,E=function(){var e=c()(o()().mark((function e(t,r){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:p(t),w(r),n&&n(t,r);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),V=function(){var e=c()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:j(t),r&&r(t);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,M.useEffect)((function(){void 0!==U&&""!==U||P((0,K.Zx)())}),[]),(0,D.jsx)(D.Fragment,{children:"mobile"===t&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(L.Z,{fieldProps:{size:"large",prefix:(0,D.jsx)(q.Z,{})},name:"mobile",placeholder:a.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0,message:(0,D.jsx)(v.FormattedMessage,{id:"pages.login.phoneNumber.required",defaultMessage:"请输入手机号!"})},{pattern:/^1\d{10}$/,message:(0,D.jsx)(v.FormattedMessage,{id:"pages.login.phoneNumber.invalid",defaultMessage:"手机号格式错误!"})}]}),(0,D.jsx)(g.A.Item,{name:"captchaCode",rules:[{required:!0,message:a.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:(0,D.jsx)(I.Z,{onKaptchaChange:E,onKaptchaCheck:V})}),(0,D.jsx)(A.Z,{fieldProps:{size:"large",prefix:(0,D.jsx)(T.Z,{})},captchaProps:{size:"large",disabled:!b},placeholder:a.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:function(e,t){return e?"".concat(t," ").concat(a.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})):a.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"})},phoneName:"mobile",name:"code",rules:[{required:!0,message:(0,D.jsx)(v.FormattedMessage,{id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],fieldRef:s,onGetCaptcha:function(){var e=c()(o()().mark((function e(t){var n,r;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("mobile:",t),!t||11!==t.length){e.next=13;break}return n={mobile:t,type:F.UUF,captchaUid:f,captchaCode:x,deviceUid:U,platform:F.iw8},e.next=5,(0,d.Y7)(n);case 5:if(200===(r=e.sent).code){e.next=10;break}return Z.yw.error(a.formatMessage({id:r.message,defaultMessage:r.message})),setTimeout((function(){var e;console.log("endCaptchaTiming"),null===(e=s.current)||void 0===e||e.endTiming()}),2),e.abrupt("return");case 10:Z.yw.success(a.formatMessage({id:r.message,defaultMessage:r.message})),e.next=14;break;case 13:Z.yw.error("手机号格式错误");case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),(0,D.jsx)(R.Z,{message:(0,D.jsx)(v.FormattedMessage,{id:"pages.login.auto.register",defaultMessage:"Mobile will auto register"}),type:"info"})]})})},z=n(88183),N=function(e){var t=e.loginType,n=(0,v.useIntl)(),r=(0,S.t)((function(e){return e.setAccessToken})),s=(0,C.L)((function(e){return e.setUserInfo})),i=(0,v.useModel)("@@initialState").setInitialState,l=(0,C.L)((function(e){return{deviceUid:e.deviceUid,setDeviceUid:e.setDeviceUid}})),g=l.deviceUid,f=l.setDeviceUid,p=(0,M.useState)("login"),h=u()(p,2),m=h[0],x=h[1],w=(0,M.useState)("loading"),k=u()(w,2),y=k[0],b=k[1],U=function(){var e=c()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t&&(0,j.flushSync)((function(){i((function(e){return a()(a()({},e),{},{userInfo:t})}))}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),I=function(){var e=c()(o()().mark((function e(t){var i,c,l;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("handleScanLogin values: ",t),Z.yw.loading(n.formatMessage({id:"logging",defaultMessage:"logging..."})),e.next=4,(0,d.kZ)(a()({},t));case 4:i=e.sent,console.log("LoginMobileResult scanLogin:",i.data),200===i.code?(Z.yw.destroy(),Z.yw.success(n.formatMessage({id:"login.success",defaultMessage:"login success"})),r(null==i?void 0:i.data.accessToken),U(null==i||null===(c=i.data)||void 0===c?void 0:c.user),s(null==i||null===(l=i.data)||void 0===l?void 0:l.user),v.history.push("/")):(Z.yw.destroy(),Z.yw.error(i.message));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),P=function(){var e=c()(o()().mark((function e(n){var r,a,s;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("scan"==t){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,(0,d.Tm)(g,n);case 4:if(200!==(r=e.sent).code){e.next=30;break}if(a=r.data,console.log("handleScanQuery status: ",a.status),a.status!==F.C20){e.next=13;break}b("active"),x("deviceUid="+a.deviceUid+"&code="+a.content),e.next=28;break;case 13:if(a.status!==F.FM$){e.next=17;break}b("scanned"),e.next=28;break;case 17:if(a.status!==F.PhI){e.next=21;break}b("expired"),e.next=28;break;case 21:if(a.status!==F.Cml){e.next=28;break}if(void 0!==a.receiver&&""!==a.receiver){e.next=24;break}return e.abrupt("return");case 24:return s={mobile:a.receiver,code:a.content,platform:F.iw8},console.log("login scan info:",s),e.next=28,I(s);case 28:e.next=31;break;case 30:Z.yw.error(r.message);case 31:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,M.useEffect)((function(){console.log("scan deviceUid:",g),void 0!==g&&""!==g||f((0,K.Zx)()),P(!1);var e=setInterval((function(){P(!1)}),3e3);return function(){clearInterval(e)}}),[t,g]),(0,D.jsx)(D.Fragment,{children:"scan"===t&&(0,D.jsx)(D.Fragment,{children:(0,D.jsx)(z.Z,{style:{margin:"auto"},value:m,status:y,onRefresh:function(){console.log("onRefresh"),P(!0)}})})})},B=n(95772),Q=n(33934),G=n(19421),H=n(17082),W={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},Y=n(64423),$=function(e,t){return M.createElement(Y.Z,(0,H.Z)((0,H.Z)({},e),{},{ref:t,icon:W}))};var O=M.forwardRef($),X=n(2724),_=function(){var e=x.Z.useToken().token,t=(0,M.useContext)(B.I),n=t.isCustomServer,r=t.setIsCustomServer,a=g.A.useForm(),s=u()(a,1)[0],o=(0,M.useState)(!1),i=u()(o,2),c=i[0],l=i[1],d=(0,M.useState)(""),f=u()(d,2),p=f[0],h=f[1],m=(0,M.useState)(""),v=u()(m,2),w=(v[0],v[1]);(0,M.useEffect)((function(){p&&p.length>0&&(s.setFieldsValue({apiUrl:p}),console.log("apiUrl:",p))}),[p]),(0,M.useEffect)((function(){if(n){var e=localStorage.getItem(F.Ss2);"true"===e&&(l(!0),s.setFieldsValue({isCustomServerEnabled:!0})),console.log("isCustomServer customEnabled:",e);var t=localStorage.getItem(F.DuM);t&&s.setFieldsValue({apiUrl:(0,K.Qj)(t)});var r=localStorage.getItem(F.sZT);r&&s.setFieldsValue({websocketUrl:(0,K.Qj)(r)})}}),[n]);return(0,D.jsx)("div",{className:"ant-pro-form-server-container",style:{backgroundColor:e.colorBgContainer,display:"flex",justifyContent:"center",flexDirection:"column",height:"100%",width:"80%",marginLeft:"10%"},children:(0,D.jsxs)(g.A,{className:"ant-pro-form-server-main",form:s,submitter:{render:function(e,t){return console.log("props:",e,t),(0,D.jsxs)("div",{style:{display:"flex",justifyContent:"center",gap:"8px"},children:[(0,D.jsx)(k.ZP,{icon:(0,D.jsx)(O,{}),onClick:function(){console.log("switch server"),r((function(e){return!e}))},children:"返回"},"back"),(0,D.jsx)(k.ZP,{type:"primary",onClick:function(){var t=e.form.getFieldValue("apiUrl");t=(0,K.Qj)(t.trim());var n=e.form.getFieldValue("websocketUrl");n=(0,K.Qj)(n.trim()),t&&t.trim().length>0&&n&&n.trim().length>0?(localStorage.setItem(F.DuM,t),localStorage.setItem(F.sZT,n),localStorage.setItem(F.Ss2,"true"),Z.yw.success("保存成功")):Z.yw.error("请输入正确的服务器地址")},children:"保存"},"submit"),(0,D.jsx)(k.ZP,{onClick:function(){var t;null===(t=e.form)||void 0===t||t.resetFields(),h(""),localStorage.setItem(F.Ss2,"false"),localStorage.setItem(F.DuM,""),localStorage.setItem(F.sZT,""),Z.yw.success("重置成功,已恢复默认云服务器")},children:"重置"},"reset"),(0,D.jsx)(k.ZP,{onClick:function(){window.open("https://www.weiyuai.cn/docs/zh-CN/docs/manual/agent/auth/login")},children:"帮助"},"help")]})}},children:[(0,D.jsx)(X.Z,{name:"isCustomServerEnabled",fieldProps:{onChange:function(e){console.log("e:",e),function(e){if(console.log("handleCustomServerChange e:",e),l(e.target.checked),e.target.checked){var t=localStorage.getItem(F.DuM);t&&s.setFieldsValue({apiUrl:(0,K.Qj)(t)});var n=localStorage.getItem(F.sZT);n&&s.setFieldsValue({websocketUrl:(0,K.Qj)(n)}),console.log("initData apiUrl:",t,"websocketUrl:",n)}else localStorage.setItem(F.Ss2,"false")}(e)}},children:"是否启用自定义服务器"}),c&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(L.Z,{name:"apiUrl",label:"API 服务器地址",fieldProps:{disabled:!c,placeholder:"http://127.0.0.1:9003",onChange:function(e){return h(e.target.value)}}}),(0,D.jsx)(L.Z,{name:"websocketUrl",label:"WebSocket 服务器地址",fieldProps:{disabled:!c,placeholder:"ws://127.0.0.1:9885/websocket",onChange:function(e){return w(e.target.value)}}})]})]})})},J=x.Z.defaultAlgorithm,ee=x.Z.darkAlgorithm,te=function(){var e=(0,m.l)((function(e){var t=e.token;return{width:42,height:42,lineHeight:"42px",position:"fixed",right:16,borderRadius:t.borderRadius,":hover":{backgroundColor:t.colorBgTextHover}}}));return(0,D.jsx)("div",{className:e,"data-lang":!0,children:v.SelectLang&&(0,D.jsx)(v.SelectLang,{})})},ne=function(){var e=(0,K.lk)();return(0,D.jsx)(v.FormattedMessage,{id:e,defaultMessage:"微语"})},re=function(){var e=(0,K.z)();return(0,D.jsx)(v.FormattedMessage,{id:e,defaultMessage:"微语"})},ae=function(){var e=(0,v.useIntl)(),t=g.A.useForm(),n=u()(t,1)[0],r=x.Z.useToken().token,s=(0,U.Z)().isDarkMode,i=(0,S.t)((function(e){return e.setAccessToken})),l=(0,M.useContext)(B.I),m=l.isCustomServer,y=l.setIsCustomServer,b=(0,M.useState)("mobile"),I=u()(b,2),P=I[0],T=I[1],L=(0,v.useModel)("@@initialState").setInitialState,q=(0,M.useState)(!1),A=u()(q,2),R=A[0],z=A[1],H=(0,C.L)((function(e){return{deviceUid:e.deviceUid,setDeviceUid:e.setDeviceUid,setUserInfo:e.setUserInfo}})),W=H.deviceUid,Y=H.setDeviceUid,$=H.setUserInfo,O=(0,M.useState)(!1),X=u()(O,2),J=X[0],ee=X[1],ae=(0,M.useState)(""),se=u()(ae,2),oe=se[0],ie=se[1],ce=function(){var e=c()(o()().mark((function e(t,r){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:ie(t),n.setFieldValue("captchaCode",r);case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),le=function(){var e=c()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("handleKaptchaCheck:",t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ue=[{key:"account",label:e.formatMessage({id:"pages.login.accountLogin.tab",defaultMessage:"账户密码登录"}),children:(0,D.jsx)(E,{loginType:P,onKaptchaChange:ce,onKaptchaCheck:le})},{key:"mobile",label:e.formatMessage({id:"pages.login.phoneLogin.tab",defaultMessage:"手机号登录"}),children:(0,D.jsx)(V,{loginType:P,onKaptchaChange:ce,onKaptchaCheck:le})},{key:"scan",label:e.formatMessage({id:"pages.login.scanLogin.tab",defaultMessage:"扫码登录"}),children:(0,D.jsx)(N,{loginType:P})}];(0,f.uK)(r.colorTextBase,.2);(0,M.useEffect)((function(){void 0!==W&&""!==W||Y((0,K.Zx)()),(0,Q.ME)(),(0,K.Bc)()&&z(!0),(0,K.pr)()}),[]);var de,ge=function(){var e=c()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t&&(0,j.flushSync)((function(){L((function(e){return a()(a()({},e),{},{userInfo:t})}))}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),fe=function(){var t=c()(o()().mark((function t(n){var r;return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,J){t.next=4;break}return Z.yw.error("请阅读并同意隐私协议"),t.abrupt("return");case 4:return Z.yw.loading(e.formatMessage({id:"logging",defaultMessage:"logging..."})),t.next=7,(0,d.x4)(a()({},n));case 7:r=t.sent,console.log("LoginResult:",r),200===r.code?(Z.yw.destroy(),Z.yw.success(e.formatMessage({id:"login.success",defaultMessage:"login success"})),i(r.data.accessToken),ge(r.data.user),$(r.data.user),v.history.push("/")):(Z.yw.destroy(),Z.yw.error(e.formatMessage({id:r.message,defaultMessage:r.message}))),t.next=16;break;case 12:t.prev=12,t.t0=t.catch(0),console.log(t.t0),Z.yw.error(e.formatMessage({id:"login.error",defaultMessage:"login failed"}));case 16:case"end":return t.stop()}}),t,null,[[0,12]])})));return function(e){return t.apply(this,arguments)}}(),pe=function(){var t=c()(o()().mark((function t(n){var r,s,c;return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,J){t.next=4;break}return Z.yw.error("请阅读并同意隐私协议"),t.abrupt("return");case 4:return Z.yw.loading(e.formatMessage({id:"logging",defaultMessage:"logging..."})),t.next=7,(0,d.N9)(a()({},n));case 7:r=t.sent,console.log("LoginMobileResult:",r),200===r.code?(Z.yw.destroy(),Z.yw.success(e.formatMessage({id:"login.success",defaultMessage:"login success"})),i(null==r?void 0:r.data.accessToken),ge(null==r||null===(s=r.data)||void 0===s?void 0:s.user),$(null==r||null===(c=r.data)||void 0===c?void 0:c.user),v.history.push("/")):(Z.yw.destroy(),Z.yw.error(e.formatMessage({id:r.message,defaultMessage:r.message}))),t.next=16;break;case 12:t.prev=12,t.t0=t.catch(0),console.log(t.t0),Z.yw.error(e.formatMessage({id:"login.error",defaultMessage:"login failed"}));case 16:case"end":return t.stop()}}),t,null,[[0,12]])})));return function(e){return t.apply(this,arguments)}}();return(0,D.jsxs)(p._Y,{hashed:!1,dark:s,children:[(0,D.jsx)(te,{}),(0,D.jsxs)("div",{style:{backgroundColor:r.colorBgContainer,textAlign:"center",height:"100%",backgroundImage:"url('/admin/assets/images/bg-wide.png')"},children:[!m&&(0,D.jsxs)(h.U,{form:n,contentStyle:{minWidth:450,maxWidth:"75vw"},logo:(de=(0,K.hX)(),(0,D.jsx)("img",{alt:"logo",src:de})),title:ne(),subTitle:re(),actions:R&&!1,onFinish:function(){var e=c()(o()().mark((function e(t){var n,r;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("login values:",t),"account"!==P){e.next=8;break}return n={username:t.username,password:t.password,captchaUid:oe,captchaCode:t.captchaCode,deviceUid:W,platform:F.iw8},console.log("login info:",n),e.next=6,fe(n);case 6:e.next=12;break;case 8:return r={mobile:t.mobile,code:t.code,captchaUid:oe,captchaCode:t.captchaCode,deviceUid:W,platform:F.iw8},console.log("login mobile info:",r),e.next=12,pe(r);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,D.jsx)(w.Z,{activeKey:P,onChange:T,centered:!0,items:ue}),(0,D.jsx)("div",{style:{marginTop:14,marginBottom:14},children:(0,D.jsxs)("div",{style:{float:"right",marginBottom:24},children:[(0,D.jsx)(G.Z,{onChange:function(e){console.log("checked = ".concat(e.target.checked)),ee(e.target.checked)},children:(0,D.jsx)(k.ZP,{size:"small",type:"link",onClick:function(){window.open("https://www.weiyuai.cn/protocol.html")},children:"同意《用户隐私&协议》"})}),R&&(0,D.jsx)(v.Link,{to:"/auth/register",children:(0,D.jsx)(v.FormattedMessage,{id:"pages.login.registerAccount",defaultMessage:"注册 "})}),(0,D.jsx)(k.ZP,{type:"link",style:{float:"right"},onClick:function(){console.log("switch server"),y((function(e){return!e}))},children:"切换服务器"})]})})]}),m&&(0,D.jsx)(_,{})]})]})},se=function(){var e=(0,U.Z)().isDarkMode;return(0,D.jsx)(B.w,{children:(0,D.jsx)(y.ZP,{theme:{algorithm:e?ee:J},children:(0,D.jsxs)(b.Z,{style:{height:"100%"},children:[(0,D.jsx)(Z.ZP,{}),(0,D.jsx)(ae,{})]})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Auth__Login__index.e6a73a4c.async.js b/starter/src/main/resources/templates/admin/p__Auth__Login__index.e6a73a4c.async.js deleted file mode 100644 index 37fc8b0937..0000000000 --- a/starter/src/main/resources/templates/admin/p__Auth__Login__index.e6a73a4c.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9368],{94546:function(e,t){t.Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"}},1641:function(e,t,n){var a=n(11757),r=n(44194),s=n(94546),o=n(63837),i=function(e,t){return r.createElement(o.Z,(0,a.Z)({},e,{ref:t,icon:s.Z}))},c=r.forwardRef(i);t.Z=c},85768:function(e,t,n){n.d(t,{Z:function(){return w}});var a=n(90819),r=n.n(a),s=n(89933),o=n.n(s),i=n(45332),c=n.n(i),u=n(77667),l=n(7206);function d(){return g.apply(this,arguments)}function g(){return(g=o()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/kaptcha/api/v1/get",{method:"GET",params:{client:u.bVn}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e,t){return p.apply(this,arguments)}function p(){return(p=o()(r()().mark((function e(t,n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/kaptcha/api/v1/check",{method:"POST",data:{captchaUid:t,captchaCode:n,client:u.bVn}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var h=n(69560),m=n(19140),v=n(44194),x=n(31549),w=function(e){var t=e.onKaptchaChange,n=e.onKaptchaCheck,a=(0,l.useIntl)(),s=(0,v.useState)(),i=c()(s,2),u=i[0],g=i[1],p=(0,v.useState)(),w=c()(p,2),k=w[0],y=w[1],M=function(){var e=o()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d();case 2:200===(t=e.sent).code&&(g(t.data.captchaUid),y(t.data.captchaImage));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),b=function(){var e=o()(r()().mark((function e(t,a){var s;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f(t,a);case 2:s=e.sent,console.log("checkCaptcha response",s),200===s.code?n&&n(!0):n&&n(!1);case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();(0,v.useEffect)((function(){M()}),[]);return(0,x.jsx)(x.Fragment,{children:k&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(m.Z,{onChange:function(e){t&&(t(u,e.target.value),e.target.value&&""!==e.target.value&&4===e.target.value.trim().length?b(u,e.target.value):n&&n(!1))},prefix:(0,x.jsx)(h.Z,{}),placeholder:a.formatMessage({id:"captcha",defaultMessage:"captcha"}),style:{width:"65%",float:"left",height:40},allowClear:!0}),(0,x.jsx)("img",{src:k,alt:"captcha",onClick:M})]})})}},59629:function(e,t,n){n.r(t),n.d(t,{default:function(){return X}});var a=n(73193),r=n.n(a),s=n(90819),o=n.n(s),i=n(89933),c=n.n(i),u=n(45332),l=n.n(u),d=n(90351),g=n(5728),f=n(75625),p=n(90774),h=n(28311),m=n(34757),v=n(7206),x=n(48974),w=n(50571),k=n(12265),y=n(40881),M=n(78386),b=n(44194),j=n(56321),C=n(22509),U=n(89756),Z=n(46465),S=n(74145),T=n(77667),F=n(85768),I=n(97146),L=n(98652),K=n(43688),q=n(31549),P=function(e){var t=e.loginType,n=e.onKaptchaChange,a=e.onKaptchaCheck,r=(0,v.useIntl)(),s=function(){var e=c()(o()().mark((function e(t,a){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n&&n(t,a);case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),i=function(){var e=c()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a&&a(t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,q.jsx)(q.Fragment,{children:"account"===t&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(K.Z,{name:"username",fieldProps:{size:"large",prefix:(0,q.jsx)(I.Z,{})},placeholder:r.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"用户名/邮箱"}),rules:[{required:!0,message:(0,q.jsx)(v.FormattedMessage,{id:"pages.login.username.required",defaultMessage:"请输入用户名/邮箱!"})}]}),(0,q.jsx)(K.Z.Password,{name:"password",fieldProps:{size:"large",prefix:(0,q.jsx)(L.Z,{})},placeholder:r.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"密码"}),rules:[{required:!0,message:(0,q.jsx)(v.FormattedMessage,{id:"pages.login.password.required",defaultMessage:"请输入密码!"})}]}),(0,q.jsx)(g.A.Item,{name:"captchaCode",rules:[{required:!0,message:r.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:(0,q.jsx)(F.Z,{onKaptchaChange:s,onKaptchaCheck:i})})]})})},A=n(74828),D=n(50784),R=n(46017),z=n(93982),B=function(e){var t=e.loginType,n=e.onKaptchaChange,a=e.onKaptchaCheck,r=(0,v.useIntl)(),s=(0,b.useRef)(),i=(0,b.useState)(""),u=l()(i,2),f=u[0],p=u[1],h=(0,b.useState)(""),m=l()(h,2),x=m[0],w=m[1],k=(0,b.useState)(!1),y=l()(k,2),M=y[0],j=y[1],Z=(0,C.L)((function(e){return{deviceUid:e.deviceUid,setDeviceUid:e.setDeviceUid}})),S=Z.deviceUid,I=Z.setDeviceUid,P=function(){var e=c()(o()().mark((function e(t,a){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:p(t),w(a),n&&n(t,a);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),B=function(){var e=c()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:j(t),a&&a(t);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,b.useEffect)((function(){void 0!==S&&""!==S||I((0,A.Zx)())}),[]),(0,q.jsx)(q.Fragment,{children:"mobile"===t&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(K.Z,{fieldProps:{size:"large",prefix:(0,q.jsx)(D.Z,{})},name:"mobile",placeholder:r.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0,message:(0,q.jsx)(v.FormattedMessage,{id:"pages.login.phoneNumber.required",defaultMessage:"请输入手机号!"})},{pattern:/^1\d{10}$/,message:(0,q.jsx)(v.FormattedMessage,{id:"pages.login.phoneNumber.invalid",defaultMessage:"手机号格式错误!"})}]}),(0,q.jsx)(g.A.Item,{name:"captchaCode",rules:[{required:!0,message:r.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:(0,q.jsx)(F.Z,{onKaptchaChange:P,onKaptchaCheck:B})}),(0,q.jsx)(R.Z,{fieldProps:{size:"large",prefix:(0,q.jsx)(L.Z,{})},captchaProps:{size:"large",disabled:!M},placeholder:r.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:function(e,t){return e?"".concat(t," ").concat(r.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})):r.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"})},phoneName:"mobile",name:"code",rules:[{required:!0,message:(0,q.jsx)(v.FormattedMessage,{id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],fieldRef:s,onGetCaptcha:function(){var e=c()(o()().mark((function e(t){var n,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("mobile:",t),!t||11!==t.length){e.next=13;break}return n={mobile:t,type:T.UUF,captchaUid:f,captchaCode:x,deviceUid:S,platform:T.iw8},e.next=5,(0,d.Y7)(n);case 5:if(200===(a=e.sent).code){e.next=10;break}return U.yw.error(r.formatMessage({id:a.message,defaultMessage:a.message})),setTimeout((function(){var e;console.log("endCaptchaTiming"),null===(e=s.current)||void 0===e||e.endTiming()}),2),e.abrupt("return");case 10:U.yw.success(r.formatMessage({id:a.message,defaultMessage:a.message})),e.next=14;break;case 13:U.yw.error("手机号格式错误");case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),(0,q.jsx)(z.Z,{message:(0,q.jsx)(v.FormattedMessage,{id:"pages.login.auto.register",defaultMessage:"Mobile will auto register"}),type:"info"})]})})},E=n(88183),N=function(e){var t=e.loginType,n=(0,v.useIntl)(),a=(0,Z.t)((function(e){return e.setAccessToken})),s=(0,C.L)((function(e){return e.setUserInfo})),i=(0,v.useModel)("@@initialState").setInitialState,u=(0,C.L)((function(e){return{deviceUid:e.deviceUid,setDeviceUid:e.setDeviceUid}})),g=u.deviceUid,f=u.setDeviceUid,p=(0,b.useState)("login"),h=l()(p,2),m=h[0],x=h[1],w=(0,b.useState)("loading"),k=l()(w,2),y=k[0],M=k[1],S=function(){var e=c()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t&&(0,j.flushSync)((function(){i((function(e){return r()(r()({},e),{},{userInfo:t})}))}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),F=function(){var e=c()(o()().mark((function e(t){var i,c,u;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("handleScanLogin values: ",t),U.yw.loading(n.formatMessage({id:"logging",defaultMessage:"logging..."})),e.next=4,(0,d.kZ)(r()({},t));case 4:i=e.sent,console.log("LoginMobileResult scanLogin:",i.data),200===i.code?(U.yw.destroy(),U.yw.success(n.formatMessage({id:"login.success",defaultMessage:"login success"})),a(null==i?void 0:i.data.accessToken),S(null==i||null===(c=i.data)||void 0===c?void 0:c.user),s(null==i||null===(u=i.data)||void 0===u?void 0:u.user),v.history.push("/")):(U.yw.destroy(),U.yw.error(i.message));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),I=function(){var e=c()(o()().mark((function e(n){var a,r,s;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("scan"==t){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,(0,d.Tm)(g,n);case 4:if(200!==(a=e.sent).code){e.next=30;break}if(r=a.data,console.log("handleScanQuery status: ",r.status),r.status!==T.C20){e.next=13;break}M("active"),x("deviceUid="+r.deviceUid+"&code="+r.content),e.next=28;break;case 13:if(r.status!==T.FM$){e.next=17;break}M("scanned"),e.next=28;break;case 17:if(r.status!==T.PhI){e.next=21;break}M("expired"),e.next=28;break;case 21:if(r.status!==T.Cml){e.next=28;break}if(void 0!==r.receiver&&""!==r.receiver){e.next=24;break}return e.abrupt("return");case 24:return s={mobile:r.receiver,code:r.content,platform:T.iw8},console.log("login scan info:",s),e.next=28,F(s);case 28:e.next=31;break;case 30:U.yw.error(a.message);case 31:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,b.useEffect)((function(){console.log("scan deviceUid:",g),void 0!==g&&""!==g||f((0,A.Zx)()),I(!1);var e=setInterval((function(){I(!1)}),3e3);return function(){clearInterval(e)}}),[t,g]),(0,q.jsx)(q.Fragment,{children:"scan"===t&&(0,q.jsx)(q.Fragment,{children:(0,q.jsx)(E.Z,{style:{margin:"auto"},value:m,status:y,onRefresh:function(){console.log("onRefresh"),I(!0)}})})})},V=n(95772),G=n(33934),H=n(19421),W=x.Z.defaultAlgorithm,Y=x.Z.darkAlgorithm,$=function(){var e=(0,m.l)((function(e){var t=e.token;return{width:42,height:42,lineHeight:"42px",position:"fixed",right:16,borderRadius:t.borderRadius,":hover":{backgroundColor:t.colorBgTextHover}}}));return(0,q.jsx)("div",{className:e,"data-lang":!0,children:v.SelectLang&&(0,q.jsx)(v.SelectLang,{})})},_=function(){var e=(0,A.lk)();return(0,q.jsx)(v.FormattedMessage,{id:e,defaultMessage:"微语"})},O=function(){var e=(0,A.z)();return(0,q.jsx)(v.FormattedMessage,{id:e,defaultMessage:"微语"})},Q=function(){var e=(0,v.useIntl)(),t=g.A.useForm(),n=l()(t,1)[0],a=x.Z.useToken().token,s=(0,S.Z)().isDarkMode,i=(0,Z.t)((function(e){return e.setAccessToken})),u=(0,b.useState)("mobile"),m=l()(u,2),y=m[0],M=m[1],F=(0,v.useModel)("@@initialState").setInitialState,I=(0,b.useState)(!1),L=l()(I,2),K=L[0],D=L[1],R=(0,C.L)((function(e){return{deviceUid:e.deviceUid,setDeviceUid:e.setDeviceUid,setUserInfo:e.setUserInfo}})),z=R.deviceUid,E=R.setDeviceUid,V=R.setUserInfo,W=(0,b.useState)(!1),Y=l()(W,2),Q=Y[0],X=Y[1],J=(0,b.useState)(""),ee=l()(J,2),te=ee[0],ne=ee[1],ae=function(){var e=c()(o()().mark((function e(t,a){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:ne(t),n.setFieldValue("captchaCode",a);case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),re=function(){var e=c()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("handleKaptchaCheck:",t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),se=[{key:"account",label:e.formatMessage({id:"pages.login.accountLogin.tab",defaultMessage:"账户密码登录"}),children:(0,q.jsx)(P,{loginType:y,onKaptchaChange:ae,onKaptchaCheck:re})},{key:"mobile",label:e.formatMessage({id:"pages.login.phoneLogin.tab",defaultMessage:"手机号登录"}),children:(0,q.jsx)(B,{loginType:y,onKaptchaChange:ae,onKaptchaCheck:re})},{key:"scan",label:e.formatMessage({id:"pages.login.scanLogin.tab",defaultMessage:"扫码登录"}),children:(0,q.jsx)(N,{loginType:y})}];(0,f.uK)(a.colorTextBase,.2);(0,b.useEffect)((function(){void 0!==z&&""!==z||E((0,A.Zx)()),(0,G.ME)(),(0,A.Bc)()&&D(!0),(0,A.pr)()}),[]);var oe,ie=function(){var e=c()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t&&(0,j.flushSync)((function(){F((function(e){return r()(r()({},e),{},{userInfo:t})}))}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ce=function(){var t=c()(o()().mark((function t(n){var a;return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,Q){t.next=4;break}return U.yw.error("请阅读并同意隐私协议"),t.abrupt("return");case 4:return U.yw.loading(e.formatMessage({id:"logging",defaultMessage:"logging..."})),t.next=7,(0,d.x4)(r()({},n));case 7:a=t.sent,console.log("LoginResult:",a),200===a.code?(U.yw.destroy(),U.yw.success(e.formatMessage({id:"login.success",defaultMessage:"login success"})),i(a.data.accessToken),ie(a.data.user),V(a.data.user),v.history.push("/")):(U.yw.destroy(),U.yw.error(e.formatMessage({id:a.message,defaultMessage:a.message}))),t.next=16;break;case 12:t.prev=12,t.t0=t.catch(0),console.log(t.t0),U.yw.error(e.formatMessage({id:"login.error",defaultMessage:"login failed"}));case 16:case"end":return t.stop()}}),t,null,[[0,12]])})));return function(e){return t.apply(this,arguments)}}(),ue=function(){var t=c()(o()().mark((function t(n){var a,s,c;return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,Q){t.next=4;break}return U.yw.error("请阅读并同意隐私协议"),t.abrupt("return");case 4:return U.yw.loading(e.formatMessage({id:"logging",defaultMessage:"logging..."})),t.next=7,(0,d.N9)(r()({},n));case 7:a=t.sent,console.log("LoginMobileResult:",a),200===a.code?(U.yw.destroy(),U.yw.success(e.formatMessage({id:"login.success",defaultMessage:"login success"})),i(null==a?void 0:a.data.accessToken),ie(null==a||null===(s=a.data)||void 0===s?void 0:s.user),V(null==a||null===(c=a.data)||void 0===c?void 0:c.user),v.history.push("/")):(U.yw.destroy(),U.yw.error(e.formatMessage({id:a.message,defaultMessage:a.message}))),t.next=16;break;case 12:t.prev=12,t.t0=t.catch(0),console.log(t.t0),U.yw.error(e.formatMessage({id:"login.error",defaultMessage:"login failed"}));case 16:case"end":return t.stop()}}),t,null,[[0,12]])})));return function(e){return t.apply(this,arguments)}}();return(0,q.jsxs)(p._Y,{hashed:!1,dark:s,children:[(0,q.jsx)($,{}),(0,q.jsx)("div",{style:{backgroundColor:a.colorBgContainer,textAlign:"center",height:"100%",backgroundImage:"url('/admin/assets/images/bg-wide.png')"},children:(0,q.jsxs)(h.U,{form:n,contentStyle:{minWidth:280,maxWidth:"75vw"},logo:(oe=(0,A.hX)(),(0,q.jsx)("img",{alt:"logo",src:oe})),title:_(),subTitle:O(),actions:K&&!1,onFinish:function(){var e=c()(o()().mark((function e(t){var n,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("login values:",t),"account"!==y){e.next=8;break}return n={username:t.username,password:t.password,captchaUid:te,captchaCode:t.captchaCode,deviceUid:z,platform:T.iw8},console.log("login info:",n),e.next=6,ce(n);case 6:e.next=12;break;case 8:return a={mobile:t.mobile,code:t.code,captchaUid:te,captchaCode:t.captchaCode,deviceUid:z,platform:T.iw8},console.log("login mobile info:",a),e.next=12,ue(a);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,q.jsx)(w.Z,{activeKey:y,onChange:M,centered:!0,items:se}),(0,q.jsx)("div",{style:{marginTop:14,marginBottom:14},children:(0,q.jsxs)("div",{style:{float:"right",marginBottom:24},children:[(0,q.jsx)(H.Z,{onChange:function(e){console.log("checked = ".concat(e.target.checked)),X(e.target.checked)},children:(0,q.jsx)(k.ZP,{size:"small",type:"link",onClick:function(){window.open("https://www.weiyuai.cn/protocol.html")},children:"同意《用户隐私&协议》"})}),K&&(0,q.jsx)(v.Link,{to:"/auth/register",children:(0,q.jsx)(v.FormattedMessage,{id:"pages.login.registerAccount",defaultMessage:"注册 "})}),(0,q.jsx)(v.Link,{style:{marginLeft:10},to:T.VPj,target:"_blank",children:"帮助中心"})]})})]})})]})},X=function(){var e=(0,S.Z)().isDarkMode;return(0,q.jsx)(V.w,{children:(0,q.jsx)(y.ZP,{theme:{algorithm:e?Y:W},children:(0,q.jsxs)(M.Z,{style:{height:"100%"},children:[(0,q.jsx)(U.ZP,{}),(0,q.jsx)(Q,{})]})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__AutoReply__AutoReplyData.7bddef2e.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__AutoReply__AutoReplyData.860249e9.async.js similarity index 51% rename from starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__AutoReply__AutoReplyData.7bddef2e.async.js rename to starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__AutoReply__AutoReplyData.860249e9.async.js index b1cd9049ab..8f56e1b493 100644 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__AutoReply__AutoReplyData.7bddef2e.async.js +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__AutoReply__AutoReplyData.860249e9.async.js @@ -1 +1 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[6130],{52590:function(e,t,n){var r=n(17082),a=n(44194),o=n(67444),l=n(64423),s=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o.Z}))},i=a.forwardRef(s);t.Z=i},50484:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(17082),a=n(44194),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},l=n(64423),s=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};var i=a.forwardRef(s)},47719:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(17082),a=n(44194),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},l=n(64423),s=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};var i=a.forwardRef(s)},50648:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(17082),a=n(44194),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"},l=n(64423),s=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};var i=a.forwardRef(s)},60051:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(17082),a=n(44194),o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},l=n(64423),s=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};var i=a.forwardRef(s)},8091:function(e,t,n){var r=n(17082),a=n(51190),o=n(19753),l=n(44194),s=n(84686),i=n(93288),c=n(31549),u=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],d=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],f=function(e,t){var n=e.fieldProps,d=e.children,f=e.params,p=e.proFieldProps,g=e.mode,m=e.valueEnum,y=e.request,v=e.showSearch,h=e.options,x=(0,a.Z)(e,u),w=(0,l.useContext)(s.Z);return(0,c.jsx)(i.Z,(0,r.Z)((0,r.Z)({valueEnum:(0,o.h)(m),request:y,params:f,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,r.Z)({options:h,mode:g,showSearch:v,getPopupContainer:w.getPopupContainer},n),ref:t,proFieldProps:p},x),{},{children:d}))},p=l.forwardRef((function(e,t){var n=e.fieldProps,u=e.children,f=e.params,p=e.proFieldProps,g=e.mode,m=e.valueEnum,y=e.request,v=e.options,h=(0,a.Z)(e,d),x=(0,r.Z)({options:v,mode:g||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},n),w=(0,l.useContext)(s.Z);return(0,c.jsx)(i.Z,(0,r.Z)((0,r.Z)({valueEnum:(0,o.h)(m),request:y,params:f,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,r.Z)({getPopupContainer:w.getPopupContainer},x),ref:t,proFieldProps:p},h),{},{children:u}))})),g=l.forwardRef(f);g.SearchSelect=p,g.displayName="ProFormComponent",t.Z=g},11607:function(e,t,n){var r=n(17082),a=n(51190),o=n(44194),l=n(93288),s=n(31549),i=["fieldProps","proFieldProps"],c=function(e,t){var n=e.fieldProps,o=e.proFieldProps,c=(0,a.Z)(e,i);return(0,s.jsx)(l.Z,(0,r.Z)({ref:t,valueType:"textarea",fieldProps:n,proFieldProps:o},c))};t.Z=o.forwardRef(c)},65872:function(e,t,n){n.d(t,{NX:function(){return d},O9:function(){return p},ZG:function(){return m},bN:function(){return v}});var r=n(90819),a=n.n(r),o=n(73193),l=n.n(o),s=n(89933),i=n.n(s),c=n(77667),u=n(7206);function d(e){return f.apply(this,arguments)}function f(){return(f=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/autoreply/query/org",{method:"GET",params:l()(l()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return g.apply(this,arguments)}function g(){return(g=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/autoreply/create",{method:"POST",data:l()(l()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return y.apply(this,arguments)}function y(){return(y=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/autoreply/update",{method:"POST",data:l()(l()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(e){return h.apply(this,arguments)}function h(){return(h=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/autoreply/delete",{method:"POST",data:l()(l()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},47227:function(e,t,n){n.d(t,{Z:function(){return M}});var r=n(90819),a=n.n(r),o=n(89933),l=n.n(o),s=n(45332),i=n.n(s),c=n(50484),u=n(83730),d=n(80093),f=n(12265),p=n(38227),g=n(40751),m=n(56913),y=n(44194),v=n(72272),h=n(40431),x=n(89756),w=n(26305),b=n(1780),Z=n(7206),j=n(57024),C=n(31549),M=function(e){var t=e.type,n=(0,Z.useIntl)(),r=(0,y.useState)(!0),o=i()(r,2),s=o[0],M=o[1],k=(0,h.u)((function(e){return e.currentOrg})),S=(0,j.j)((function(e){return e.currentKbase})),P=(0,y.useState)(!1),E=i()(P,2),O=E[0],T=E[1],_=(0,w.v)((function(e){return{categoryTreeOptions:e.categoryTreeOptions,setCategoryResult:e.setCategoryResult,currentCategory:e.currentCategory,setCurrentCategoryUid:e.setCurrentCategoryUid}})),U=_.categoryTreeOptions,D=_.setCategoryResult,F=_.currentCategory,z=_.setCurrentCategoryUid,V=(0,b.Z)(),N=V.translateString,$=V.translateStringTranct,I=u.Z.useModal(),L=i()(I,2),q=L[0],R=L[1],A=function(){var e=l()(a()().mark((function e(t){var r;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("handleSubmit: ",t),s?x.yw.loading(n.formatMessage({id:"updating"})):x.yw.loading(n.formatMessage({id:"creating"})),!s){e.next=8;break}return e.next=5,(0,v.yr)(t);case 5:e.t0=e.sent,e.next=11;break;case 8:return e.next=10,(0,v.k4)(t);case 10:e.t0=e.sent;case 11:r=e.t0,console.log("createCategory response: ",r),200===r.code?(x.yw.destroy(),s?x.yw.success(n.formatMessage({id:"update.success"})):x.yw.success(n.formatMessage({id:"create.success"})),T(!1),Y()):(x.yw.destroy(),x.yw.error(r.message));case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Y=function(){var e=l()(a()().mark((function e(){var r,o;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("getCategories"),x.yw.success(n.formatMessage({id:"loading"})),r={pageNumber:0,pageSize:50,type:t,kbUid:null==S?void 0:S.uid,orgUid:null==k?void 0:k.uid},e.next=5,(0,v.XS)(r);case 5:o=e.sent,console.log("queryCategories response: ",o),200===o.code?(D(o),x.yw.destroy()):(x.yw.destroy(),x.yw.error(o.message));case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),G=function(){var e=l()(a()().mark((function e(){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("handleEditCategory: ",F),M(!0),T(!0);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),H=function(){var e=l()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("handleDeleteCategory: ",t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();(0,y.useEffect)((function(){Y()}),[S]);return(0,C.jsxs)("div",{children:[(0,C.jsxs)(d.Z,{gap:"small",wrap:"wrap",style:{marginBottom:5},children:[(0,C.jsx)(f.ZP,{type:"primary",size:"small",onClick:function(){M(!1),T(!0)},disabled:(null==S?void 0:S.type)!=t,children:n.formatMessage({id:"create"})}),""!==(null==F?void 0:F.uid)&&"all"!==(null==F?void 0:F.uid)&&(0,C.jsx)(f.ZP,{size:"small",onClick:G,children:n.formatMessage({id:"edit"})}),""!==(null==F?void 0:F.uid)&&"all"!==(null==F?void 0:F.uid)&&(0,C.jsx)(f.ZP,{onClick:function(){return function(e){q.confirm({title:n.formatMessage({id:"deleteTip"}),icon:(0,C.jsx)(c.Z,{}),content:"".concat(n.formatMessage({id:"deleteAffirm",defaultMessage:"Delete"}),"【").concat(N(e.name),"】?"),onOk:function(){H(e)},onCancel:function(){},okText:n.formatMessage({id:"ok"}),cancelText:n.formatMessage({id:"cancel"})})}(F)},size:"small",style:{float:"right"},danger:!0,children:n.formatMessage({id:"pages.robot.delete",defaultMessage:"Delete"})})]}),(0,C.jsx)(p.Z,{defaultSelectedKeys:[null==F?void 0:F.uid],onSelect:function(e,t){console.log("selected",e,t),0!==e.length&&z(e[0].toString())},treeData:U,blockNode:!0,titleRender:function(e){return(0,C.jsx)(g.Z,{title:N(e.title),children:$(e.title)})}}),O&&(0,C.jsx)(m.Z,{open:O,type:t,isEdit:s,onCancel:function(){T(!1)},onSubmit:A}),R]})}},36213:function(e,t,n){var r=n(73193),a=n.n(r),o=n(45332),l=n.n(o),s=n(83730),i=n(44194),c=n(60051),u=n(17433),d=n(28977),f=n.n(d),p=n(77667),g=n(89756),m=n(57024),y=n(26305),v=n(33934),h=n(31549),x=u.Z.Dragger;t.Z=function(e){var t=e.type,n=e.acceptType,r=e.isModalOpen,o=e.handleOk,u=e.handleCancel,d=(0,m.j)((function(e){return e.currentKbase})),w=(0,i.useState)((null==d?void 0:d.uid)||""),b=l()(w,2),Z=b[0],j=b[1],C=(0,y.v)((function(e){return e.currentCategory})),M=(0,i.useState)("当前支持上传pdf/txt/markdown/docx等"),k=l()(M,2),S=k[0],P=k[1],E=(0,i.useState)({file:void 0,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:t,category_uid:"all"===(null==C?void 0:C.uid)?"":(null==C?void 0:C.uid)||"",kb_uid:(null==d?void 0:d.uid)||"",client:p.bVn}),O=l()(E,2),T=O[0],_=O[1],U={name:"file",accept:n,action:(0,v.M$)(),headers:{Authorization:"Bearer "+localStorage.getItem(p.LA8)},data:T,showUploadList:!1,beforeUpload:function(e){console.log("beforeUpload before",e,Z,d);var n=f()(new Date).format("YYYYMMDDHHmmss")+"_"+e.name;T.file=e,T.file_name=n,T.file_type=e.type,T.kb_type=t,T.kb_uid=Z,console.log("beforeUpload after",T)},onChange:function(e){"uploading"===e.file.status&&g.yw.loading("".concat(e.file.name," 上传中")),"done"===e.file.status?(console.log("response: ",e.file.response),200===e.file.response.code?(g.yw.destroy(),g.yw.success("".concat(e.file.name," 上传成功")),o()):(g.yw.destroy(),g.yw.error("".concat(e.file.name," 上传失败")),u())):"error"===e.file.status&&(g.yw.error("".concat(e.file.name," 上传失败")),u())},onDrop:function(e){console.log("Dropped files",e.dataTransfer.files)}},D=(0,i.useState)(U),F=l()(D,2),z=F[0],V=F[1];return(0,i.useEffect)((function(){m.j.subscribe((function(e,t){var n,r;console.log("useKbaseStore changed:",null==e||null===(n=e.currentKbase)||void 0===n?void 0:n.uid),j(null==e||null===(r=e.currentKbase)||void 0===r?void 0:r.uid),V(U)}))}),[d]),(0,i.useEffect)((function(){t!=p.QPQ&&(V(U),P("当前支持上传excel文件")),_(a()(a()({},T),{},{kb_type:t,category_uid:"all"===(null==C?void 0:C.uid)?"":null==C?void 0:C.uid})),V(U)}),[t,C]),(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(s.Z,{title:"上传文件",open:r,onOk:o,onCancel:u,children:(0,h.jsxs)(x,a()(a()({},z),{},{children:[(0,h.jsx)("p",{className:"ant-upload-drag-icon",children:(0,h.jsx)(c.Z,{})}),(0,h.jsx)("p",{className:"ant-upload-text",children:"点击或拖拽文件至此处实现上传"}),(0,h.jsx)("p",{className:"ant-upload-hint",children:S})]}))})})}},39847:function(e,t,n){n.r(t),n.d(t,{default:function(){return K}});var r=n(93139),a=n(64476),o=n(47227),l=n(73193),s=n.n(l),i=n(84176),c=n.n(i),u=n(90819),d=n.n(u),f=n(89933),p=n.n(f),g=n(45332),m=n.n(g),y=n(89756),v=n(65872),h=n(40431),x=n(31816),w=n(50648),b=n(47719),Z=n(52590),j=n(52519),C=n(46639),M=n(12265),k=n(44194),S=n(26305),P=n(57024),E=n(77667),O=n(60051),T=n(5728),_=n(8091),U=n(11607),D=n(61411),F=n(62599),z=n(20306),V=n(28977),N=n.n(V),$=n(31549),I=function(e){var t=e.isEdit,n=e.autoreply,r=e.open,a=e.onClose,o=e.onSubmit,l=T.A.useForm(),i=m()(l,1)[0],c=(0,h.u)((function(e){return e.currentOrg})),u=(0,P.j)((function(e){return e.currentKbase})),d=(0,S.v)((function(e){return e.categorySelectOptions})),f=(0,k.useState)(),p=m()(f,2),g=p[0],v=p[1],x=(0,k.useState)(E.PYi),w=m()(x,2),b=w[0],Z=w[1],j=(0,k.useState)(".png,.jpg,.jpeg"),C=m()(j,2),V=C[0],I=C[1],L=(0,k.useState)({file:void 0,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:"type",category_uid:"",kb_uid:(null==u?void 0:u.uid)||"",client:E.bVn}),q=m()(L,2),R=q[0];q[1];(0,k.useEffect)((function(){t?i.setFieldsValue({type:null==n?void 0:n.type,content:null==n?void 0:n.content,categoryUid:null==n?void 0:n.categoryUid,kbUid:null==u?void 0:u.uid}):i.resetFields()}),[r]);var A={name:"file",accept:V,action:"http://127.0.0.1:9003/api/v1/upload/file",headers:{Authorization:"Bearer "+localStorage.getItem(E.LA8)},data:R,showUploadList:!1,beforeUpload:function(e){console.log("beforeUpload",e);var t=N()(new Date).format("YYYYMMDDHHmmss")+"_"+e.name;R.file=e,R.file_name=t,R.file_type=e.type,R.kb_type=E.YjS,R.category_uid=g||"",R.kb_uid=null==u?void 0:u.uid,console.log("beforeUpload",R)},onChange:function(e){if("uploading"===e.file.status&&y.yw.loading("".concat(e.file.name," 上传中")),"done"===e.file.status)if(console.log("response: ",e.file.response),200===e.file.response.code){var t=e.file.response.data;i.setFieldValue("content",t),y.yw.destroy(),y.yw.success("".concat(e.file.name," 上传成功"))}else y.yw.destroy(),y.yw.error("".concat(e.file.name," 上传失败"));else"error"===e.file.status&&y.yw.error("".concat(e.file.name," 上传失败"))},onDrop:function(e){console.log("Dropped files",e.dataTransfer.files)}};return(0,$.jsx)($.Fragment,{children:(0,$.jsx)(D.Z,{title:t?"修改":"新建",onClose:a,open:r,extra:(0,$.jsxs)(F.Z,{children:[(0,$.jsx)(M.ZP,{onClick:a,children:"取消"}),(0,$.jsx)(M.ZP,{onClick:function(){console.log("handleSubmit"),i.validateFields().then((function(e){console.log(e),o(s()(s()(s()({},n),e),{},{kbUid:null==u?void 0:u.uid,orgUid:null==c?void 0:c.uid}))})).catch((function(e){console.log("Form errors:",e),y.yw.error("请检查表单填写")}))},type:"primary",children:"保存"})]}),children:(0,$.jsxs)(T.A,{form:i,initialValues:s()({},n),submitter:{render:function(){return null}},children:[(0,$.jsx)(_.Z,{label:"分类",name:"categoryUid",rules:[{required:!0,message:"请选择分类"}],options:d,fieldProps:{allowClear:!0,placeholder:"请选择分类",onChange:function(e){console.log("category selected ".concat(e)),v(e)}}}),(0,$.jsx)(_.Z,{label:"类型",name:"type",rules:[{required:!0,message:"请选择类型"}],options:[{label:"文本",value:E.PYi},{label:"图片",value:E.Qm},{label:"视频",value:E.tVi},{label:"音频",value:E.Yu1},{label:"文件",value:E.Qn}],fieldProps:{allowClear:!0,placeholder:"请选择类型",onChange:function(e){console.log("type selected ".concat(e)),Z(e),e===E.Qm?I(".png,.jpg,.jpeg,.gif,.bmp"):e===E.tVi?I(".mp4,.avi,.mov,.wmv"):e===E.Yu1?I(".mp3,.wav,.flac"):e===E.Qn&&I(".doc,.xls,.ppt,.pdf,.docx,.txt,.csv,.xlsx,.rtf,.zip,.7z,.tar,.gz,.rar,.iso")}}}),(0,$.jsx)(U.Z,{label:"内容",name:"content"}),b!=E.PYi&&(0,$.jsxs)(z.Z,s()(s()({},A),{},{children:[(0,$.jsx)("p",{className:"ant-upload-drag-icon",children:(0,$.jsx)(O.Z,{})}),(0,$.jsx)("p",{className:"ant-upload-text",children:"点击或拖拽上传文件"})]}))]})})})},L=n(1780),q=n(7206),R=n(36213),A=n(33934),Y=["current"],G=function(){var e=(0,q.useIntl)(),t=(0,k.useRef)(),n=(0,k.useState)(!0),r=m()(n,2),a=r[0],o=r[1],l=(0,k.useState)(),i=m()(l,2),u=i[0],f=i[1],g=(0,k.useState)(!1),O=m()(g,2),T=O[0],_=O[1],U=(0,L.Z)().translateString,D=(0,h.u)((function(e){return e.currentOrg})),F=(0,P.j)((function(e){return e.currentKbase})),z=(0,S.v)((function(e){return e.currentCategory})),V=(0,k.useState)(!1),N=m()(V,2),G=N[0],H=N[1],B=function(){var n=p()(d()().mark((function n(r){var a,o;return d()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return console.log(r),n.next=3,(0,v.bN)(r);case 3:a=n.sent,console.log("delete response:",a),200===a.code?(null==t||null===(o=t.current)||void 0===o||o.reload(),y.yw.success(e.formatMessage({id:"delete.success",defaultMessage:"Delete Success"}))):y.yw.error(e.formatMessage({id:"delete.error",defaultMessage:"Delete Error"}));case 6:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),K=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,$.jsx)(q.FormattedMessage,{id:"content",defaultMessage:"Content"}),dataIndex:"content",render:function(e,t){return U(null==t?void 0:t.content)}},{title:(0,$.jsx)(q.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",hideInSearch:!0,render:function(t,n){return(0,$.jsx)($.Fragment,{children:e.formatMessage({id:null==n?void 0:n.type,defaultMessage:null==n?void 0:n.type})})}},{title:(0,$.jsx)(q.FormattedMessage,{id:"updatedAt",defaultMessage:"updatedAt"}),key:"updatedAt",dataIndex:"updatedAt",sorter:!0,hideInSearch:!0,width:180},{title:e.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",width:100,render:function(t,n,r,a){return[(0,$.jsx)("a",{onClick:function(){W(n)},children:e.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable"),(0,$.jsx)(C.Z,{title:e.formatMessage({id:"deleteTip",defaultMessage:"Delete Tip"}),description:"".concat(e.formatMessage({id:"deleteAffirm",defaultMessage:"Delete"}),"【").concat(null==n?void 0:n.content,"】?"),onConfirm:function(){return B(n)},okText:e.formatMessage({id:"ok"}),cancelText:e.formatMessage({id:"cancel"}),children:(0,$.jsx)(M.ZP,{size:"small",type:"link",danger:!0,children:e.formatMessage({id:"delete",defaultMessage:"Delete"})})},"delete")]}}],Q=function(){f(void 0),o(!1),_(!0)},W=function(e){f(e),o(!0),_(!0)},X=function(){var n=p()(d()().mark((function n(r){var o,l;return d()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(console.log("handleSubmitDrawer",r),a?y.yw.loading(e.formatMessage({id:"updating"})):y.yw.loading(e.formatMessage({id:"creating"})),!a){n.next=8;break}return n.next=5,(0,v.ZG)(r);case 5:n.t0=n.sent,n.next=11;break;case 8:return n.next=10,(0,v.O9)(r);case 10:n.t0=n.sent;case 11:o=n.t0,console.log("createQuickreply response:",r,o),200===o.code?(y.yw.destroy(),y.yw.loading(e.formatMessage({id:"create.success"})),_(!1),null===(l=t.current)||void 0===l||l.reload()):(y.yw.destroy(),y.yw.error(o.message));case 14:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),J=function(){var e=p()(d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:H(!0);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ee=function(){var e=p()(d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("handleExport"),t=localStorage.getItem(E.LA8),window.open((0,A.kG)()+"/api/v1/autoreply/export?categoryUid="+(null==z?void 0:z.uid)+"&kbUid="+(null==F?void 0:F.uid)+"&orgUid="+(null==D?void 0:D.uid)+"&pageNumber=0&pageSize=20&accessToken="+t);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,k.useEffect)((function(){var e;null===(e=t.current)||void 0===e||e.reload()}),[F,z]);var te=(0,k.useMemo)((function(){return(null==F?void 0:F.type)!==E.WvL||""===(null==F?void 0:F.uid)}),[F]);return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(j.Z,{columns:K,actionRef:t,cardBordered:!0,request:function(){var t=p()(d()().mark((function t(n,r,a){var o,l,i,u,f;return d()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("request:",n,r,a),y.yw.loading(e.formatMessage({id:"loading",defaultMessage:"Loading"})),o=n.current,l=void 0===o?1:o,i=c()(n,Y),u=s()({pageNumber:l-1,categoryUid:"all"===(null==z?void 0:z.uid)?"":null==z?void 0:z.uid,kbUid:null==F?void 0:F.uid,orgUid:null==D?void 0:D.uid},i),t.next=6,(0,v.NX)(u);case 6:return f=t.sent,console.log("queryAutoReplysByOrg response:",u,f),y.yw.destroy(),200===f.code||y.yw.error(f.message),t.abrupt("return",{data:f.data.content,success:!0,total:f.data.totalElements});case 11:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:"快捷回复",toolBarRender:function(){return[(0,$.jsx)(M.ZP,{icon:(0,$.jsx)(x.Z,{}),type:"primary",onClick:Q,disabled:te,children:e.formatMessage({id:"create",defaultMessage:"Create"})},"button"),(0,$.jsx)(M.ZP,{icon:(0,$.jsx)(w.Z,{}),type:"primary",onClick:J,disabled:te,children:e.formatMessage({id:"import",defaultMessage:"Import"})},"button"),(0,$.jsx)(M.ZP,{icon:(0,$.jsx)(b.Z,{}),type:"primary",onClick:ee,disabled:te,children:e.formatMessage({id:"export",defaultMessage:"Export"})},"button"),(0,$.jsx)(M.ZP,{icon:(0,$.jsx)(Z.Z,{}),type:"link",onClick:function(){window.open("https://www.weiyuai.cn/download/excel/kbase_auto_reply.xlsx")},children:e.formatMessage({id:"download.template",defaultMessage:"Download Template"})},"download")]}}),(0,$.jsx)(I,{isEdit:a,open:T,autoreply:u,onClose:function(){return _(!1)},onSubmit:X}),(0,$.jsx)(R.Z,{type:E.WvL,acceptType:".xls,.xlsx,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",isModalOpen:G,handleOk:function(){var e;console.log("handleUploadDragSubmit"),H(!1),null==t||null===(e=t.current)||void 0===e||e.reload()},handleCancel:function(){var e;console.log("handleUploadDragCancel"),H(!1),null==t||null===(e=t.current)||void 0===e||e.reload()}})]})},H=a.Z.Sider,B=a.Z.Content,K=function(){var e=(0,r.Z)(),t=e.leftSiderStyle,n=e.contentStyle;return(0,$.jsx)("div",{children:(0,$.jsxs)(a.Z,{children:[(0,$.jsx)(H,{style:t,children:(0,$.jsx)(o.Z,{type:E.WvL})}),(0,$.jsx)(a.Z,{children:(0,$.jsx)(B,{style:n,children:(0,$.jsx)(G,{})})})]})})}},80093:function(e,t,n){n.d(t,{Z:function(){return j}});var r=n(44194),a=n(51865),o=n.n(a),l=n(82252),s=n(74511),i=n(19735),c=n(2645),u=n(53681);const d=["wrap","nowrap","wrap-reverse"],f=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],p=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];var g=function(e,t){return o()(Object.assign(Object.assign(Object.assign({},((e,t)=>{const n=!0===t.wrap?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&d.includes(n)}})(e,t)),((e,t)=>{const n={};return p.forEach((r=>{n[`${e}-align-${r}`]=t.align===r})),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return f.forEach((r=>{n[`${e}-justify-${r}`]=t.justify===r})),n})(e,t)))};const m=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},y=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},v=e=>{const{componentCls:t}=e,n={};return d.forEach((e=>{n[`${t}-wrap-${e}`]={flexWrap:e}})),n},h=e=>{const{componentCls:t}=e,n={};return p.forEach((e=>{n[`${t}-align-${e}`]={alignItems:e}})),n},x=e=>{const{componentCls:t}=e,n={};return f.forEach((e=>{n[`${t}-justify-${e}`]={justifyContent:e}})),n};var w=(0,c.I$)("Flex",(e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,a=(0,u.IX)(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[m(a),y(a),v(a),h(a),x(a)]}),(()=>({})),{resetStyle:!1}),b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,rootClassName:a,className:c,style:u,flex:d,gap:f,children:p,vertical:m=!1,component:y="div"}=e,v=b(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:h,direction:x,getPrefixCls:Z}=r.useContext(i.E_),j=Z("flex",n),[C,M,k]=w(j),S=null!=m?m:null==h?void 0:h.vertical,P=o()(c,a,null==h?void 0:h.className,j,M,k,g(j,e),{[`${j}-rtl`]:"rtl"===x,[`${j}-gap-${f}`]:(0,s.n)(f),[`${j}-vertical`]:S}),E=Object.assign(Object.assign({},null==h?void 0:h.style),u);return d&&(E.flex=d),f&&!(0,s.n)(f)&&(E.gap=f),C(r.createElement(y,Object.assign({ref:t,className:P,style:E},(0,l.Z)(v,["justify","wrap","align"])),p))}));var j=Z}}]); \ No newline at end of file +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[6130],{52590:function(e,t,n){var r=n(17082),a=n(44194),o=n(67444),l=n(64423),s=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o.Z}))},i=a.forwardRef(s);t.Z=i},50484:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(17082),a=n(44194),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},l=n(64423),s=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};var i=a.forwardRef(s)},47719:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(17082),a=n(44194),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},l=n(64423),s=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};var i=a.forwardRef(s)},50648:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(17082),a=n(44194),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"},l=n(64423),s=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};var i=a.forwardRef(s)},60051:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(17082),a=n(44194),o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},l=n(64423),s=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};var i=a.forwardRef(s)},8091:function(e,t,n){var r=n(17082),a=n(51190),o=n(19753),l=n(44194),s=n(84686),i=n(93288),c=n(31549),u=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],d=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],f=function(e,t){var n=e.fieldProps,d=e.children,f=e.params,p=e.proFieldProps,g=e.mode,m=e.valueEnum,y=e.request,v=e.showSearch,h=e.options,x=(0,a.Z)(e,u),w=(0,l.useContext)(s.Z);return(0,c.jsx)(i.Z,(0,r.Z)((0,r.Z)({valueEnum:(0,o.h)(m),request:y,params:f,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,r.Z)({options:h,mode:g,showSearch:v,getPopupContainer:w.getPopupContainer},n),ref:t,proFieldProps:p},x),{},{children:d}))},p=l.forwardRef((function(e,t){var n=e.fieldProps,u=e.children,f=e.params,p=e.proFieldProps,g=e.mode,m=e.valueEnum,y=e.request,v=e.options,h=(0,a.Z)(e,d),x=(0,r.Z)({options:v,mode:g||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},n),w=(0,l.useContext)(s.Z);return(0,c.jsx)(i.Z,(0,r.Z)((0,r.Z)({valueEnum:(0,o.h)(m),request:y,params:f,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,r.Z)({getPopupContainer:w.getPopupContainer},x),ref:t,proFieldProps:p},h),{},{children:u}))})),g=l.forwardRef(f);g.SearchSelect=p,g.displayName="ProFormComponent",t.Z=g},11607:function(e,t,n){var r=n(17082),a=n(51190),o=n(44194),l=n(93288),s=n(31549),i=["fieldProps","proFieldProps"],c=function(e,t){var n=e.fieldProps,o=e.proFieldProps,c=(0,a.Z)(e,i);return(0,s.jsx)(l.Z,(0,r.Z)({ref:t,valueType:"textarea",fieldProps:n,proFieldProps:o},c))};t.Z=o.forwardRef(c)},65872:function(e,t,n){n.d(t,{NX:function(){return d},O9:function(){return p},ZG:function(){return m},bN:function(){return v}});var r=n(90819),a=n.n(r),o=n(73193),l=n.n(o),s=n(89933),i=n.n(s),c=n(77667),u=n(7206);function d(e){return f.apply(this,arguments)}function f(){return(f=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/autoreply/query/org",{method:"GET",params:l()(l()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return g.apply(this,arguments)}function g(){return(g=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/autoreply/create",{method:"POST",data:l()(l()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return y.apply(this,arguments)}function y(){return(y=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/autoreply/update",{method:"POST",data:l()(l()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(e){return h.apply(this,arguments)}function h(){return(h=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/autoreply/delete",{method:"POST",data:l()(l()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},47227:function(e,t,n){n.d(t,{Z:function(){return M}});var r=n(90819),a=n.n(r),o=n(89933),l=n.n(o),s=n(45332),i=n.n(s),c=n(50484),u=n(83730),d=n(80093),f=n(12265),p=n(38227),g=n(40751),m=n(56913),y=n(44194),v=n(72272),h=n(40431),x=n(89756),w=n(26305),b=n(1780),Z=n(7206),j=n(57024),C=n(31549),M=function(e){var t=e.type,n=(0,Z.useIntl)(),r=(0,y.useState)(!0),o=i()(r,2),s=o[0],M=o[1],k=(0,h.u)((function(e){return e.currentOrg})),S=(0,j.j)((function(e){return e.currentKbase})),P=(0,y.useState)(!1),E=i()(P,2),O=E[0],T=E[1],_=(0,w.v)((function(e){return{categoryTreeOptions:e.categoryTreeOptions,setCategoryResult:e.setCategoryResult,currentCategory:e.currentCategory,setCurrentCategoryUid:e.setCurrentCategoryUid}})),U=_.categoryTreeOptions,D=_.setCategoryResult,F=_.currentCategory,z=_.setCurrentCategoryUid,V=(0,b.Z)(),N=V.translateString,$=V.translateStringTranct,I=u.Z.useModal(),L=i()(I,2),q=L[0],R=L[1],A=function(){var e=l()(a()().mark((function e(t){var r;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("handleSubmit: ",t),s?x.yw.loading(n.formatMessage({id:"updating"})):x.yw.loading(n.formatMessage({id:"creating"})),!s){e.next=8;break}return e.next=5,(0,v.yr)(t);case 5:e.t0=e.sent,e.next=11;break;case 8:return e.next=10,(0,v.k4)(t);case 10:e.t0=e.sent;case 11:r=e.t0,console.log("createCategory response: ",r),200===r.code?(x.yw.destroy(),s?x.yw.success(n.formatMessage({id:"update.success"})):x.yw.success(n.formatMessage({id:"create.success"})),T(!1),Y()):(x.yw.destroy(),x.yw.error(r.message));case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Y=function(){var e=l()(a()().mark((function e(){var r,o;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("getCategories"),x.yw.success(n.formatMessage({id:"loading"})),r={pageNumber:0,pageSize:50,type:t,kbUid:null==S?void 0:S.uid,orgUid:null==k?void 0:k.uid},e.next=5,(0,v.XS)(r);case 5:o=e.sent,console.log("queryCategories response: ",o),200===o.code?(D(o),x.yw.destroy()):(x.yw.destroy(),x.yw.error(o.message));case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),G=function(){var e=l()(a()().mark((function e(){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("handleEditCategory: ",F),M(!0),T(!0);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),H=function(){var e=l()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("handleDeleteCategory: ",t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();(0,y.useEffect)((function(){Y()}),[S]);return(0,C.jsxs)("div",{children:[(0,C.jsxs)(d.Z,{gap:"small",wrap:"wrap",style:{marginBottom:5},children:[(0,C.jsx)(f.ZP,{type:"primary",size:"small",onClick:function(){M(!1),T(!0)},disabled:(null==S?void 0:S.type)!=t,children:n.formatMessage({id:"create"})}),""!==(null==F?void 0:F.uid)&&"all"!==(null==F?void 0:F.uid)&&(0,C.jsx)(f.ZP,{size:"small",onClick:G,children:n.formatMessage({id:"edit"})}),""!==(null==F?void 0:F.uid)&&"all"!==(null==F?void 0:F.uid)&&(0,C.jsx)(f.ZP,{onClick:function(){return function(e){q.confirm({title:n.formatMessage({id:"deleteTip"}),icon:(0,C.jsx)(c.Z,{}),content:"".concat(n.formatMessage({id:"deleteAffirm",defaultMessage:"Delete"}),"【").concat(N(e.name),"】?"),onOk:function(){H(e)},onCancel:function(){},okText:n.formatMessage({id:"ok"}),cancelText:n.formatMessage({id:"cancel"})})}(F)},size:"small",style:{float:"right"},danger:!0,children:n.formatMessage({id:"pages.robot.delete",defaultMessage:"Delete"})})]}),(0,C.jsx)(p.Z,{defaultSelectedKeys:[null==F?void 0:F.uid],onSelect:function(e,t){console.log("selected",e,t),0!==e.length&&z(e[0].toString())},treeData:U,blockNode:!0,titleRender:function(e){return(0,C.jsx)(g.Z,{title:N(e.title),children:$(e.title)})}}),O&&(0,C.jsx)(m.Z,{open:O,type:t,isEdit:s,onCancel:function(){T(!1)},onSubmit:A}),R]})}},36213:function(e,t,n){var r=n(73193),a=n.n(r),o=n(45332),l=n.n(o),s=n(83730),i=n(44194),c=n(60051),u=n(17433),d=n(28977),f=n.n(d),p=n(77667),g=n(89756),m=n(57024),y=n(26305),v=n(33934),h=n(31549),x=u.Z.Dragger;t.Z=function(e){var t=e.type,n=e.acceptType,r=e.isModalOpen,o=e.handleOk,u=e.handleCancel,d=(0,m.j)((function(e){return e.currentKbase})),w=(0,i.useState)((null==d?void 0:d.uid)||""),b=l()(w,2),Z=b[0],j=b[1],C=(0,y.v)((function(e){return e.currentCategory})),M=(0,i.useState)("当前支持上传pdf/txt/markdown/docx等"),k=l()(M,2),S=k[0],P=k[1],E=(0,i.useState)({file:void 0,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:t,category_uid:"all"===(null==C?void 0:C.uid)?"":(null==C?void 0:C.uid)||"",kb_uid:(null==d?void 0:d.uid)||"",client:p.bVn}),O=l()(E,2),T=O[0],_=O[1],U={name:"file",accept:n,action:(0,v.M$)(),headers:{Authorization:"Bearer "+localStorage.getItem(p.LA8)},data:T,showUploadList:!1,beforeUpload:function(e){console.log("beforeUpload before",e,Z,d);var n=f()(new Date).format("YYYYMMDDHHmmss")+"_"+e.name;T.file=e,T.file_name=n,T.file_type=e.type,T.kb_type=t,T.kb_uid=Z,console.log("beforeUpload after",T)},onChange:function(e){"uploading"===e.file.status&&g.yw.loading("".concat(e.file.name," 上传中")),"done"===e.file.status?(console.log("response: ",e.file.response),200===e.file.response.code?(g.yw.destroy(),g.yw.success("".concat(e.file.name," 上传成功")),o()):(g.yw.destroy(),g.yw.error("".concat(e.file.name," 上传失败")),u())):"error"===e.file.status&&(g.yw.error("".concat(e.file.name," 上传失败")),u())},onDrop:function(e){console.log("Dropped files",e.dataTransfer.files)}},D=(0,i.useState)(U),F=l()(D,2),z=F[0],V=F[1];return(0,i.useEffect)((function(){m.j.subscribe((function(e,t){var n,r;console.log("useKbaseStore changed:",null==e||null===(n=e.currentKbase)||void 0===n?void 0:n.uid),j(null==e||null===(r=e.currentKbase)||void 0===r?void 0:r.uid),V(U)}))}),[d]),(0,i.useEffect)((function(){t!=p.QPQ&&(V(U),P("当前支持上传excel文件")),_(a()(a()({},T),{},{kb_type:t,category_uid:"all"===(null==C?void 0:C.uid)?"":null==C?void 0:C.uid})),V(U)}),[t,C]),(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(s.Z,{title:"上传文件",open:r,onOk:o,onCancel:u,children:(0,h.jsxs)(x,a()(a()({},z),{},{children:[(0,h.jsx)("p",{className:"ant-upload-drag-icon",children:(0,h.jsx)(c.Z,{})}),(0,h.jsx)("p",{className:"ant-upload-text",children:"点击或拖拽文件至此处实现上传"}),(0,h.jsx)("p",{className:"ant-upload-hint",children:S})]}))})})}},39847:function(e,t,n){n.r(t),n.d(t,{default:function(){return K}});var r=n(93139),a=n(64476),o=n(47227),l=n(73193),s=n.n(l),i=n(84176),c=n.n(i),u=n(90819),d=n.n(u),f=n(89933),p=n.n(f),g=n(45332),m=n.n(g),y=n(89756),v=n(65872),h=n(40431),x=n(31816),w=n(50648),b=n(47719),Z=n(52590),j=n(52519),C=n(46639),M=n(12265),k=n(44194),S=n(26305),P=n(57024),E=n(77667),O=n(60051),T=n(5728),_=n(8091),U=n(11607),D=n(61411),F=n(62599),z=n(20306),V=n(28977),N=n.n(V),$=n(33934),I=n(31549),L=function(e){var t=e.isEdit,n=e.autoreply,r=e.open,a=e.onClose,o=e.onSubmit,l=T.A.useForm(),i=m()(l,1)[0],c=(0,h.u)((function(e){return e.currentOrg})),u=(0,P.j)((function(e){return e.currentKbase})),d=(0,S.v)((function(e){return e.categorySelectOptions})),f=(0,k.useState)(),p=m()(f,2),g=p[0],v=p[1],x=(0,k.useState)(E.PYi),w=m()(x,2),b=w[0],Z=w[1],j=(0,k.useState)(".png,.jpg,.jpeg"),C=m()(j,2),V=C[0],L=C[1],q=(0,k.useState)({file:void 0,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:"type",category_uid:"",kb_uid:(null==u?void 0:u.uid)||"",client:E.bVn}),R=m()(q,2),A=R[0];R[1];(0,k.useEffect)((function(){t?i.setFieldsValue({type:null==n?void 0:n.type,content:null==n?void 0:n.content,categoryUid:null==n?void 0:n.categoryUid,kbUid:null==u?void 0:u.uid}):i.resetFields()}),[r]);var Y={name:"file",accept:V,action:(0,$.M$)(),headers:{Authorization:"Bearer "+localStorage.getItem(E.LA8)},data:A,showUploadList:!1,beforeUpload:function(e){console.log("beforeUpload",e);var t=N()(new Date).format("YYYYMMDDHHmmss")+"_"+e.name;A.file=e,A.file_name=t,A.file_type=e.type,A.kb_type=E.YjS,A.category_uid=g||"",A.kb_uid=null==u?void 0:u.uid,console.log("beforeUpload",A)},onChange:function(e){if("uploading"===e.file.status&&y.yw.loading("".concat(e.file.name," 上传中")),"done"===e.file.status)if(console.log("response: ",e.file.response),200===e.file.response.code){var t=e.file.response.data;i.setFieldValue("content",t),y.yw.destroy(),y.yw.success("".concat(e.file.name," 上传成功"))}else y.yw.destroy(),y.yw.error("".concat(e.file.name," 上传失败"));else"error"===e.file.status&&y.yw.error("".concat(e.file.name," 上传失败"))},onDrop:function(e){console.log("Dropped files",e.dataTransfer.files)}};return(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(D.Z,{title:t?"修改":"新建",onClose:a,open:r,extra:(0,I.jsxs)(F.Z,{children:[(0,I.jsx)(M.ZP,{onClick:a,children:"取消"}),(0,I.jsx)(M.ZP,{onClick:function(){console.log("handleSubmit"),i.validateFields().then((function(e){console.log(e),o(s()(s()(s()({},n),e),{},{kbUid:null==u?void 0:u.uid,orgUid:null==c?void 0:c.uid}))})).catch((function(e){console.log("Form errors:",e),y.yw.error("请检查表单填写")}))},type:"primary",children:"保存"})]}),children:(0,I.jsxs)(T.A,{form:i,initialValues:s()({},n),submitter:{render:function(){return null}},children:[(0,I.jsx)(_.Z,{label:"分类",name:"categoryUid",rules:[{required:!0,message:"请选择分类"}],options:d,fieldProps:{allowClear:!0,placeholder:"请选择分类",onChange:function(e){console.log("category selected ".concat(e)),v(e)}}}),(0,I.jsx)(_.Z,{label:"类型",name:"type",rules:[{required:!0,message:"请选择类型"}],options:[{label:"文本",value:E.PYi},{label:"图片",value:E.Qm},{label:"视频",value:E.tVi},{label:"音频",value:E.Yu1},{label:"文件",value:E.Qn}],fieldProps:{allowClear:!0,placeholder:"请选择类型",onChange:function(e){console.log("type selected ".concat(e)),Z(e),e===E.Qm?L(".png,.jpg,.jpeg,.gif,.bmp"):e===E.tVi?L(".mp4,.avi,.mov,.wmv"):e===E.Yu1?L(".mp3,.wav,.flac"):e===E.Qn&&L(".doc,.xls,.ppt,.pdf,.docx,.txt,.csv,.xlsx,.rtf,.zip,.7z,.tar,.gz,.rar,.iso")}}}),(0,I.jsx)(U.Z,{label:"内容",name:"content"}),b!=E.PYi&&(0,I.jsxs)(z.Z,s()(s()({},Y),{},{children:[(0,I.jsx)("p",{className:"ant-upload-drag-icon",children:(0,I.jsx)(O.Z,{})}),(0,I.jsx)("p",{className:"ant-upload-text",children:"点击或拖拽上传文件"})]}))]})})})},q=n(1780),R=n(7206),A=n(36213),Y=["current"],G=function(){var e=(0,R.useIntl)(),t=(0,k.useRef)(),n=(0,k.useState)(!0),r=m()(n,2),a=r[0],o=r[1],l=(0,k.useState)(),i=m()(l,2),u=i[0],f=i[1],g=(0,k.useState)(!1),O=m()(g,2),T=O[0],_=O[1],U=(0,q.Z)().translateString,D=(0,h.u)((function(e){return e.currentOrg})),F=(0,P.j)((function(e){return e.currentKbase})),z=(0,S.v)((function(e){return e.currentCategory})),V=(0,k.useState)(!1),N=m()(V,2),G=N[0],H=N[1],B=function(){var n=p()(d()().mark((function n(r){var a,o;return d()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return console.log(r),n.next=3,(0,v.bN)(r);case 3:a=n.sent,console.log("delete response:",a),200===a.code?(null==t||null===(o=t.current)||void 0===o||o.reload(),y.yw.success(e.formatMessage({id:"delete.success",defaultMessage:"Delete Success"}))):y.yw.error(e.formatMessage({id:"delete.error",defaultMessage:"Delete Error"}));case 6:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),K=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,I.jsx)(R.FormattedMessage,{id:"content",defaultMessage:"Content"}),dataIndex:"content",render:function(e,t){return U(null==t?void 0:t.content)}},{title:(0,I.jsx)(R.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",hideInSearch:!0,render:function(t,n){return(0,I.jsx)(I.Fragment,{children:e.formatMessage({id:null==n?void 0:n.type,defaultMessage:null==n?void 0:n.type})})}},{title:(0,I.jsx)(R.FormattedMessage,{id:"updatedAt",defaultMessage:"updatedAt"}),key:"updatedAt",dataIndex:"updatedAt",sorter:!0,hideInSearch:!0,width:180},{title:e.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",width:100,render:function(t,n,r,a){return[(0,I.jsx)("a",{onClick:function(){W(n)},children:e.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable"),(0,I.jsx)(C.Z,{title:e.formatMessage({id:"deleteTip",defaultMessage:"Delete Tip"}),description:"".concat(e.formatMessage({id:"deleteAffirm",defaultMessage:"Delete"}),"【").concat(null==n?void 0:n.content,"】?"),onConfirm:function(){return B(n)},okText:e.formatMessage({id:"ok"}),cancelText:e.formatMessage({id:"cancel"}),children:(0,I.jsx)(M.ZP,{size:"small",type:"link",danger:!0,children:e.formatMessage({id:"delete",defaultMessage:"Delete"})})},"delete")]}}],Q=function(){f(void 0),o(!1),_(!0)},W=function(e){f(e),o(!0),_(!0)},X=function(){var n=p()(d()().mark((function n(r){var o,l;return d()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(console.log("handleSubmitDrawer",r),a?y.yw.loading(e.formatMessage({id:"updating"})):y.yw.loading(e.formatMessage({id:"creating"})),!a){n.next=8;break}return n.next=5,(0,v.ZG)(r);case 5:n.t0=n.sent,n.next=11;break;case 8:return n.next=10,(0,v.O9)(r);case 10:n.t0=n.sent;case 11:o=n.t0,console.log("createQuickreply response:",r,o),200===o.code?(y.yw.destroy(),y.yw.loading(e.formatMessage({id:"create.success"})),_(!1),null===(l=t.current)||void 0===l||l.reload()):(y.yw.destroy(),y.yw.error(o.message));case 14:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),J=function(){var e=p()(d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:H(!0);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ee=function(){var e=p()(d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("handleExport"),t=localStorage.getItem(E.LA8),window.open((0,$.kG)()+"/api/v1/autoreply/export?categoryUid="+(null==z?void 0:z.uid)+"&kbUid="+(null==F?void 0:F.uid)+"&orgUid="+(null==D?void 0:D.uid)+"&pageNumber=0&pageSize=20&accessToken="+t);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,k.useEffect)((function(){var e;null===(e=t.current)||void 0===e||e.reload()}),[F,z]);var te=(0,k.useMemo)((function(){return(null==F?void 0:F.type)!==E.WvL||""===(null==F?void 0:F.uid)}),[F]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(j.Z,{columns:K,actionRef:t,cardBordered:!0,request:function(){var t=p()(d()().mark((function t(n,r,a){var o,l,i,u,f;return d()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("request:",n,r,a),y.yw.loading(e.formatMessage({id:"loading",defaultMessage:"Loading"})),o=n.current,l=void 0===o?1:o,i=c()(n,Y),u=s()({pageNumber:l-1,categoryUid:"all"===(null==z?void 0:z.uid)?"":null==z?void 0:z.uid,kbUid:null==F?void 0:F.uid,orgUid:null==D?void 0:D.uid},i),t.next=6,(0,v.NX)(u);case 6:return f=t.sent,console.log("queryAutoReplysByOrg response:",u,f),y.yw.destroy(),200===f.code||y.yw.error(f.message),t.abrupt("return",{data:f.data.content,success:!0,total:f.data.totalElements});case 11:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:"快捷回复",toolBarRender:function(){return[(0,I.jsx)(M.ZP,{icon:(0,I.jsx)(x.Z,{}),type:"primary",onClick:Q,disabled:te,children:e.formatMessage({id:"create",defaultMessage:"Create"})},"button"),(0,I.jsx)(M.ZP,{icon:(0,I.jsx)(w.Z,{}),type:"primary",onClick:J,disabled:te,children:e.formatMessage({id:"import",defaultMessage:"Import"})},"button"),(0,I.jsx)(M.ZP,{icon:(0,I.jsx)(b.Z,{}),type:"primary",onClick:ee,disabled:te,children:e.formatMessage({id:"export",defaultMessage:"Export"})},"button"),(0,I.jsx)(M.ZP,{icon:(0,I.jsx)(Z.Z,{}),type:"link",onClick:function(){window.open("https://www.weiyuai.cn/download/excel/kbase_auto_reply.xlsx")},children:e.formatMessage({id:"download.template",defaultMessage:"Download Template"})},"download")]}}),(0,I.jsx)(L,{isEdit:a,open:T,autoreply:u,onClose:function(){return _(!1)},onSubmit:X}),(0,I.jsx)(A.Z,{type:E.WvL,acceptType:".xls,.xlsx,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",isModalOpen:G,handleOk:function(){var e;console.log("handleUploadDragSubmit"),H(!1),null==t||null===(e=t.current)||void 0===e||e.reload()},handleCancel:function(){var e;console.log("handleUploadDragCancel"),H(!1),null==t||null===(e=t.current)||void 0===e||e.reload()}})]})},H=a.Z.Sider,B=a.Z.Content,K=function(){var e=(0,r.Z)(),t=e.leftSiderStyle,n=e.contentStyle;return(0,I.jsx)("div",{children:(0,I.jsxs)(a.Z,{children:[(0,I.jsx)(H,{style:t,children:(0,I.jsx)(o.Z,{type:E.WvL})}),(0,I.jsx)(a.Z,{children:(0,I.jsx)(B,{style:n,children:(0,I.jsx)(G,{})})})]})})}},80093:function(e,t,n){n.d(t,{Z:function(){return j}});var r=n(44194),a=n(51865),o=n.n(a),l=n(82252),s=n(74511),i=n(19735),c=n(2645),u=n(53681);const d=["wrap","nowrap","wrap-reverse"],f=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],p=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];var g=function(e,t){return o()(Object.assign(Object.assign(Object.assign({},((e,t)=>{const n=!0===t.wrap?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&d.includes(n)}})(e,t)),((e,t)=>{const n={};return p.forEach((r=>{n[`${e}-align-${r}`]=t.align===r})),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return f.forEach((r=>{n[`${e}-justify-${r}`]=t.justify===r})),n})(e,t)))};const m=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},y=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},v=e=>{const{componentCls:t}=e,n={};return d.forEach((e=>{n[`${t}-wrap-${e}`]={flexWrap:e}})),n},h=e=>{const{componentCls:t}=e,n={};return p.forEach((e=>{n[`${t}-align-${e}`]={alignItems:e}})),n},x=e=>{const{componentCls:t}=e,n={};return f.forEach((e=>{n[`${t}-justify-${e}`]={justifyContent:e}})),n};var w=(0,c.I$)("Flex",(e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,a=(0,u.IX)(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[m(a),y(a),v(a),h(a),x(a)]}),(()=>({})),{resetStyle:!1}),b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,rootClassName:a,className:c,style:u,flex:d,gap:f,children:p,vertical:m=!1,component:y="div"}=e,v=b(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:h,direction:x,getPrefixCls:Z}=r.useContext(i.E_),j=Z("flex",n),[C,M,k]=w(j),S=null!=m?m:null==h?void 0:h.vertical,P=o()(c,a,null==h?void 0:h.className,j,M,k,g(j,e),{[`${j}-rtl`]:"rtl"===x,[`${j}-gap-${f}`]:(0,s.n)(f),[`${j}-vertical`]:S}),E=Object.assign(Object.assign({},null==h?void 0:h.style),u);return d&&(E.flex=d),f&&!(0,s.n)(f)&&(E.gap=f),C(r.createElement(y,Object.assign({ref:t,className:P,style:E},(0,l.Z)(v,["justify","wrap","align"])),p))}));var j=Z}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/preload_helper.b0306b4c.js b/starter/src/main/resources/templates/admin/preload_helper.fdaec92d.js similarity index 99% rename from starter/src/main/resources/templates/admin/preload_helper.b0306b4c.js rename to starter/src/main/resources/templates/admin/preload_helper.fdaec92d.js index 0e5d94d135..11f970c577 100644 --- a/starter/src/main/resources/templates/admin/preload_helper.b0306b4c.js +++ b/starter/src/main/resources/templates/admin/preload_helper.fdaec92d.js @@ -1 +1 @@ -!function(){"use strict";var t="/admin/".replace(/([^/])$/,"$1/"),e=location.pathname,n=e.startsWith(t)&&decodeURI("/".concat(e.slice(t.length)));if(n){var a=document,c=a.head,r=a.createElement.bind(a),i=function(t,e,n){var a,c=e.r[t]||(null===(a=Object.entries(e.r).find((function(e){var n=e[0];return new RegExp("^".concat(n.replace(/\/:[^/]+/g,"/[^/]+").replace("/*","/.+"),"$")).test(t)})))||void 0===a?void 0:a[1]);return null==c?void 0:c.map((function(t){var a=e.f[t][1],c=e.f[t][0];return{type:c.split(".").pop(),url:"".concat(n.publicPath).concat(c),attrs:[["data-".concat(e.b),"".concat(e.p,":").concat(a)]]}}))}(n,{"p":"admin","b":"webpack","f":[["p__Dashboard__Service__Quality__QualityStatistic.7f089fe8.async.js",13],["p__Dashboard__Knowledge__Faq__FaqData.f9c908ef.chunk.css",79],["p__Dashboard__Knowledge__Faq__FaqData.4d20e8e4.async.js",79],["100.ec9fc81d.async.js",100],["136.a2755867.async.js",136],["p__Dashboard__Service__Black__BlackStatistic.996ab4d0.async.js",210],["p__Dashboard__Service__Monitor__index.c69c5403.async.js",296],["p__Dashboard__Knowledge__Taboo__TabooStatistic.856a31e5.async.js",319],["359.f2109a99.async.js",359],["p__Dashboard__Knowledge__index.4e0e2986.async.js",363],["498.c3ea4cba.async.js",498],["p__Dashboard__Marketing__Blog__BlogStatistic.9b6aef5f.async.js",510],["571.e2278dad.async.js",571],["814.7291a658.async.js",814],["p__Dashboard__Ai__LlmModel__index.b8a1c3ad.async.js",950],["p__Dashboard__Super__LlmModel__index.4d95f322.async.js",981],["p__Dashboard__Service__Transfer__TransferTable.8908b67a.async.js",1048],["1115.da31f196.async.js",1115],["p__Dashboard__Feedback__index.6acd88d6.async.js",1179],["p__Dashboard__Ai__Message__index.e733d68c.async.js",1206],["1276.ff05e817.async.js",1276],["p__Dashboard__Marketing__Blog__index.1c078c18.async.js",1312],["p__Dashboard__Team__Message__MessageTable.8dc5de56.async.js",1398],["p__Dashboard__Marketing__Video__VideoData.72c092d0.async.js",1426],["p__Dashboard__Service__Queue__QueueStatistic.2f154bd3.async.js",1488],["p__Dashboard__Service__Crm__CustomerStatistic.0a1be199.async.js",1490],["p__Dashboard__Team__Notification__index.77d83fcc.async.js",1531],["p__Dashboard__Setting__Money__index.eeb1c174.async.js",1589],["p__Dashboard__Service__Agent__index.240bafbb.async.js",1642],["p__Auth__Register__index.888c6210.async.js",1730],["p__Dashboard__Liangshibao__Course__index.1827311a.async.js",1742],["p__Dashboard__Super__Notification__index.5aef03a8.async.js",1926],["p__Dashboard__Service__Transfer__TransferStatistic.98a9c44c.async.js",2001],["p__Dashboard__Ticket__index.dbfe79cd.async.js",2005],["p__Dashboard__Service__Quality__QualityTable.aebb737f.async.js",2034],["p__Dashboard__Service__Thread__ThreadStatistic.a5aec551.async.js",2097],["2121.f8b9d686.async.js",2121],["p__Dashboard__Service__Thread__index.4cb98a19.async.js",2148],["p__Dashboard__Ai__Flow__index.0a848f75.async.js",2281],["p__Dashboard__Ai__Upload__index.6fdc8281.async.js",2310],["p__Dashboard__Super__Recharge__index.0b077952.async.js",2319],["p__Dashboard__Team__Thread__ThreadMonitor.05a1ea16.async.js",2375],["p__Dashboard__Plugins__index.f5c5a4a7.async.js",2494],["2519.4fee3097.async.js",2519],["p__Dashboard__Ai__index.19ba0040.chunk.css",2522],["p__Dashboard__Ai__index.aee589ca.async.js",2522],["p__404.a70afcac.async.js",2571],["p__Dashboard__Team__Thread__ThreadSummary.5631426f.async.js",2618],["p__Dashboard__Marketing__Blog__BlogData.f9c908ef.chunk.css",2647],["p__Dashboard__Marketing__Blog__BlogData.afa6268c.async.js",2647],["p__Dashboard__Team__Action__ActionStatistic.52bc2812.async.js",2658],["p__Dashboard__Service__Tag__TagTable.53e5768c.async.js",2701],["p__Dashboard__Team__Thread__index.3198182e.async.js",2708],["p__Dashboard__Ai__Thread__index.06314a7b.async.js",2728],["2847.0d856ae5.async.js",2847],["p__Dashboard__Knowledge__AutoReply__AutoReplyStatistic.9ec44268.async.js",2930],["p__Dashboard__Service__Message__index.4e22afd9.async.js",2949],["p__Dashboard__Flowbot__index.8ca2c944.async.js",2968],["p__Dashboard__Team__Message__MessageStatistic.d64b9985.async.js",2992],["3030.b2235a74.async.js",3030],["p__Dashboard__Marketing__Video__index.d8c694fe.async.js",3034],["p__Dashboard__Super__User__UserData.c0931534.async.js",3088],["3119.e43ba395.async.js",3119],["3120.3aeaacf1.async.js",3120],["p__Dashboard__Marketing__Email__EmailStatistic.99c5fc67.async.js",3151],["p__Dashboard__Liangshibao__Media__index.b90d6623.async.js",3165],["p__Dashboard__Service__Crm__index.2332b1c3.async.js",3186],["p__Dashboard__Knowledge__Keyword__KeywordData.f9c908ef.chunk.css",3340],["p__Dashboard__Knowledge__Keyword__KeywordData.0d6b2338.async.js",3340],["p__Dashboard__Service__Crm__VisitorStatistic.fd58f256.async.js",3395],["p__Dashboard__Service__Thread__ThreadTable.38ecfeab.async.js",3537],["p__Dashboard__Service__LeaveMsg__index.2d093355.async.js",3621],["p__Dashboard__Knowledge__QuickReply__QuickReplyStatistic.e4d0c1db.async.js",3656],["p__Dashboard__Quartz__index.2f2871f6.chunk.css",3848],["p__Dashboard__Quartz__index.577e54cf.async.js",3848],["3918.c972b38b.chunk.css",3918],["3918.0009d0d3.async.js",3918],["3959.09d35f42.async.js",3959],["p__Dashboard__Knowledge__Llm__LlmData.f9c908ef.chunk.css",4167],["p__Dashboard__Knowledge__Llm__LlmData.931c71f8.async.js",4167],["p__Dashboard__Super__Notification__NotificationTable.f9bd24ce.async.js",4204],["p__Dashboard__Super__Recharge__RechargeStatistic.342f7343.async.js",4215],["p__Dashboard__Marketing__Video__VideoStatistic.ec2ceb89.async.js",4262],["p__Dashboard__Team__Role__index.d8f031d9.async.js",4325],["p__Dashboard__Team__Action__ActionTable.0091deb6.async.js",4376],["p__Dashboard__Knowledge__Llm__LlmStatistic.2155f2d1.async.js",4422],["p__Dashboard__Service__Message__MessageStatistic.60054c41.async.js",4460],["4595.25d30f7c.async.js",4595],["4660.c80223b5.async.js",4660],["p__Dashboard__Super__User__index.994535b3.async.js",4693],["4744.0337ee90.async.js",4744],["p__Dashboard__Team__Company__index.b0b93cef.async.js",4747],["p__Dashboard__Ai__Upload__UploadStatistic.75c4a5d3.async.js",4871],["p__Dashboard__Ai__Thread__ThreadStatistic.0a822d17.async.js",4894],["4994.caecc91d.async.js",4994],["5081.2a6a2ba1.async.js",5081],["p__Dashboard__Service__Channel__index.8e76283f.async.js",5131],["p__Dashboard__Super__Push__index.1a245830.async.js",5159],["p__OAuth__Google.2e7cc6a4.async.js",5279],["p__Dashboard__Meiyu__index.9283dd69.async.js",5306],["p__Dashboard__Service__Tag__index.a7c17fd1.async.js",5387],["p__Dashboard__Doceditor__index.f9c908ef.chunk.css",5488],["p__Dashboard__Doceditor__index.c488c946.async.js",5488],["p__Dashboard__Liangshibao__Category__index.f4aeede6.async.js",5522],["p__Dashboard__Service__Rate__index.fa221632.async.js",5684],["p__Dashboard__Team__Notification__NotificationTable.3e15ad4a.async.js",5774],["p__Dashboard__Knowledge__Keyword__index.b04df325.async.js",5847],["p__Dashboard__Service__Transfer__index.c50f6abe.async.js",5906],["p__Dashboard__Knowledge__Article__ArticleData.f9c908ef.chunk.css",5957],["p__Dashboard__Knowledge__Article__ArticleData.865ca44a.async.js",5957],["5976.faae2491.async.js",5976],["p__Dashboard__Super__Role__index.239aa7d6.async.js",6021],["p__Dashboard__Knowledge__QuickReply__index.f2503ccf.async.js",6037],["6075.e7c05a40.async.js",6075],["6106.b99bd13a.async.js",6106],["6118.d334970b.async.js",6118],["p__Dashboard__Knowledge__AutoReply__AutoReplyData.f9c908ef.chunk.css",6130],["p__Dashboard__Knowledge__AutoReply__AutoReplyData.7bddef2e.async.js",6130],["6132.6a86081f.async.js",6132],["6159.eea317c5.async.js",6159],["t__plugin-layout__Layout.5012e1ab.chunk.css",6301],["t__plugin-layout__Layout.768c4f8f.async.js",6301],["p__Dashboard__Team__Notification__NotificationStatistic.d6789650.async.js",6545],["p__Dashboard__Service__Queue__QueueTable.b08f485d.async.js",6668],["p__Dashboard__Setting__Server__index.ec200e2f.async.js",6676],["p__Dashboard__Setting__Basic__index.effe2758.async.js",6766],["p__Dashboard__Team__Thread__ThreadStatistic.4358fa01.async.js",6771],["p__Dashboard__Knowledge__AutoReply__index.3f9da60f.async.js",6778],["p__Dashboard__Ai__Message__MessageStatistic.d3243774.async.js",6781],["6828.cd380545.async.js",6828],["6886.d9d70cdc.async.js",6886],["p__Dashboard__Service__Rate__RateTable.426e7820.async.js",6900],["p__Dashboard__Knowledge__Article__ArticleStatistic.d6d1fdfd.async.js",6906],["6907.097e3a53.async.js",6907],["p__Dashboard__Service__Tag__TagStatistic.4050e7cd.async.js",7080],["7084.cef6d000.async.js",7084],["p__Dashboard__Team__Group__GroupTable.5fa8abdb.async.js",7139],["p__Dashboard__Service__Thread__ThreadMonitor.68218579.async.js",7270],["p__Dashboard__Ai__Thread__ThreadTable.fafeb6ff.async.js",7357],["p__Dashboard__Super__Recharge__RechargeData.816ec033.async.js",7358],["p__Dashboard__Knowledge__Taboo__TabooData.f9c908ef.chunk.css",7445],["p__Dashboard__Knowledge__Taboo__TabooData.c7dec91b.async.js",7445],["p__Dashboard__Setting__index.da39b284.async.js",7469],["7602.78020514.async.js",7602],["p__Dashboard__Service__Message__MessageTable.44c7f36b.async.js",7788],["p__Dashboard__Ai__Message__MessageTable.c9516be5.async.js",7806],["p__Dashboard__Team__Member__index.f9c908ef.chunk.css",7960],["p__Dashboard__Team__Member__index.92bce71f.async.js",7960],["p__Dashboard__Knowledge__Faq__FaqStatistic.7b344d22.async.js",8041],["p__Dashboard__Knowledge__Taboo__index.2e151186.async.js",8158],["p__Dashboard__Marketing__index.f67e52fc.async.js",8164],["8183.03d51a64.async.js",8183],["p__Welcome.f68f2ebc.async.js",8185],["p__OAuth__Github.580071ed.async.js",8250],["p__Dashboard__Service__LeaveMsg__LeaveMsgTable.acfe61ac.async.js",8326],["p__Dashboard__Zhaobiao__index.92b446f7.async.js",8327],["8335.042844e5.async.js",8335],["p__Dashboard__Service__Thread__ThreadSummary.1bd7e25c.async.js",8390],["p__Dashboard__Service__LeaveMsg__LeaveMsgStatistic.41a43d32.async.js",8412],["p__Dashboard__Tiku__index.40401a5d.async.js",8455],["p__Dashboard__Ai__Robot__index.7e4f6c78.async.js",8472],["p__Dashboard__Team__Action__index.ab0f9a49.async.js",8483],["p__Dashboard__Team__Message__index.3c4a05e8.async.js",8491],["p__Dashboard__Knowledge__Article__index.1ab4c53b.async.js",8587],["p__Dashboard__Super__User__UserStatistic.7ab4a4b0.async.js",8622],["p__Dashboard__Service__Crm__VisitorTable.ea43827b.async.js",8655],["8686.639a29fc.async.js",8686],["p__Dashboard__Super__Notification__NotificationStatistic.ad606757.async.js",8700],["p__Dashboard__Knowledge__Faq__index.cdcca470.async.js",8801],["p__Dashboard__Marketing__Email__index.977ca82c.async.js",8873],["8949.5f921b9b.async.js",8949],["p__Dashboard__Service__Black__BlackTable.20a2de85.async.js",8956],["p__Dashboard__Service__Rate__RateStatistic.5298cf75.async.js",9043],["p__Dashboard__Team__Thread__ThreadTable.eab455eb.async.js",9077],["p__Dashboard__Super__Push__PushData.f56ee6d5.async.js",9137],["p__Dashboard__Super__Push__PushStatistic.7eb667c6.async.js",9212],["p__Dashboard__Setting__Profile__index.d73c49fa.async.js",9290],["p__Dashboard__Team__Group__GroupStatistic.5cf7efdb.async.js",9346],["p__Auth__Login__index.e6a73a4c.async.js",9368],["p__Dashboard__Knowledge__Keyword__KeywordStatistic.09041c94.async.js",9397],["p__Dashboard__Setting__Certification__index.357c8155.async.js",9400],["p__Dashboard__Setting__Notification__index.e316a8d2.async.js",9408],["p__Dashboard__Knowledge__Llm__index.b28a8302.async.js",9450],["9486.3fd0efbd.async.js",9486],["p__Dashboard__Service__Quality__index.bbf1f533.async.js",9505],["p__Dashboard__Knowledge__QuickReply__QuickReplyData.f9c908ef.chunk.css",9584],["p__Dashboard__Knowledge__QuickReply__QuickReplyData.b959184b.async.js",9584],["p__Dashboard__Marketing__Email__EmailData.f9c908ef.chunk.css",9590],["p__Dashboard__Marketing__Email__EmailData.a3063dcb.async.js",9590],["p__Dashboard__Ai__Upload__UploadTable.f1fb4d4a.async.js",9601],["9605.5f6618cd.async.js",9605],["p__Dashboard__Service__Queue__index.1177b848.async.js",9614],["p__Dashboard__Service__Black__index.12bd4ca3.async.js",9639],["p__Dashboard__Team__Company__CompanyInfo.3d486e9a.async.js",9814],["p__Dashboard__Service__Workgroup__index.64f54222.async.js",9828],["p__Dashboard__Team__Group__index.a51adc45.async.js",9870],["p__Dashboard__Service__Crm__CustomerTable.4a2901d2.async.js",9949],["p__Dashboard__Service__Statistic__index.fd4931fa.async.js",9967]],"r":{"/*":[46,63],"/":[20,63,113,120,121,133],"/welcome":[3,10,12,13,54,77,114,115,152,156,183,20,63,113,120,121,133],"/kb":[9,20,63,113,120,121,133],"/ticket":[33,20,63,113,120,121,133],"/feedback":[18,20,63,113,120,121,133],"/marketing":[150,20,63,113,120,121,133],"/plugins":[42,20,63,113,120,121,133],"/meiyu":[4,12,20,43,54,62,63,77,99,113,114,115,156,166,183,120,121,133],"/tiku":[12,20,43,54,62,63,77,113,114,115,156,159,166,183,120,121,133],"/zhaobiao":[12,20,43,54,62,63,77,113,114,115,155,156,166,183,120,121,133],"/quartz":[12,20,43,54,62,63,73,74,77,113,114,115,156,166,183,120,121,133],"/setting":[142,20,63,113,120,121,133],"/doceditor":[4,20,54,75,76,77,87,101,102,110,114,115,156,166],"/flowbot":[20,57,63,113,133],"/auth/login":[12,20,77,114,115,151,166,170,178],"/auth/register":[20,29,77,114,115,166,170],"/oauth/github":[153],"/oauth/google":[98],"/team/member":[12,20,43,54,62,63,77,113,114,115,129,146,147,156,166,183,120,121,133],"/team/role":[4,12,17,20,54,77,83,114,115,166,63,113,120,121,133],"/team/group":[195,20,63,113,120,121,133],"/team/thread":[52,20,63,113,120,121,133],"/team/message":[162,20,63,113,120,121,133],"/team/action":[161,20,63,113,120,121,133],"/team/notification":[26,20,63,113,120,121,133],"/team/company":[91,20,63,113,120,121,133],"/cs/agent":[4,8,12,20,28,43,54,62,63,77,113,114,115,119,129,130,156,166,183,120,121,133],"/cs/workgroup":[4,8,12,20,43,54,62,63,77,113,114,115,119,129,130,156,166,183,194,120,121,133],"/cs/queue":[191,20,63,113,120,121,133],"/cs/thread":[37,20,63,113,120,121,133],"/cs/message":[56,20,63,113,120,121,133],"/cs/leavemsg":[71,20,63,113,120,121,133],"/cs/rate":[104,20,63,113,120,121,133],"/cs/tag":[100,20,63,113,120,121,133],"/cs/channel":[4,12,20,54,62,77,88,96,113,114,115,130,166,63,120,121,133],"/cs/transfer":[107,20,63,113,120,121,133],"/cs/monitor":[6,20,63,113,120,121,133],"/cs/quality":[184,20,63,113,120,121,133],"/cs/crm":[66,20,63,113,120,121,133],"/cs/black":[192,20,63,113,120,121,133],"/cs/statistic":[197,20,63,113,120,121,133],"/ai/robot":[4,10,12,20,44,45,54,77,90,113,114,115,129,166,63,120,121,133],"/ai/model":[4,12,14,20,54,77,113,114,115,118,143,166,63,120,121,133],"/ai/flow":[4,20,38,54,115,63,113,120,121,133],"/ai/prompt":[4,20,54,77,87,113,114,115,129,160,166,63,120,121,133],"/ai/thread":[53,20,63,113,120,121,133],"/ai/message":[19,20,63,113,120,121,133],"/kb/article":[4,20,54,77,114,115,163,166,190,9,63,113,120,121,133],"/kb/llm":[4,20,54,77,114,115,166,182,190,9,63,113,120,121,133],"/kb/keyword":[4,20,54,77,106,114,115,166,190,9,63,113,120,121,133],"/kb/faq":[4,20,54,77,114,115,166,168,190,9,63,113,120,121,133],"/kb/autoreply":[4,20,54,77,114,115,127,166,190,9,63,113,120,121,133],"/kb/quickreply":[4,20,54,77,112,114,115,166,190,9,63,113,120,121,133],"/kb/taboo":[4,20,54,77,114,115,149,166,190,9,63,113,120,121,133],"/kb/upload":[39,9,20,63,113,120,121,133],"/marketing/blog":[4,20,21,54,77,114,115,166,190,150,63,113,120,121,133],"/marketing/email":[4,20,54,77,114,115,166,169,190,150,63,113,120,121,133],"/marketing/video":[60,150,20,63,113,120,121,133],"/liangshibao/category":[12,20,43,54,62,63,77,103,113,114,115,156,166,183,120,121,133],"/liangshibao/course":[12,20,30,43,54,62,63,77,113,114,115,156,166,183,120,121,133],"/liangshibao/media":[12,20,43,54,62,63,65,77,113,114,115,156,166,183,120,121,133],"/setting/profile":[20,77,114,115,129,166,176,142,63,113,120,121,133],"/setting/basic":[77,125,142,20,63,113,120,121,133],"/setting/certification":[12,20,77,114,115,166,180,142,63,113,120,121,133],"/setting/money":[12,20,27,43,54,62,63,77,113,114,115,151,156,166,183,142,120,121,133],"/setting/server":[124,142,20,63,113,120,121,133],"/setting/notification":[12,20,43,54,62,63,77,113,114,115,156,166,181,183,142,120,121,133],"/super/user":[89,20,63,113,120,121,133],"/super/role":[4,12,17,20,54,77,111,114,115,166,63,113,120,121,133],"/super/provider":[4,12,15,20,54,77,113,114,115,118,143,166,63,120,121,133],"/super/recharge":[40,20,63,113,120,121,133],"/super/notification":[31,20,63,113,120,121,133],"/super/push":[97,20,63,113,120,121,133],"/team/group/data":[12,20,43,54,62,63,77,113,114,115,136,156,166,183,195,120,121,133],"/team/group/statistic":[177,195,20,63,113,120,121,133],"/team/thread/data":[12,20,43,54,59,62,63,77,113,114,115,156,166,173,183,52,120,121,133],"/team/thread/monitor":[41,52,20,63,113,120,121,133],"/team/thread/statistic":[126,52,20,63,113,120,121,133],"/team/thread/summary":[12,20,43,47,54,62,63,77,113,114,115,156,166,183,52,120,121,133],"/team/message/data":[12,20,22,43,54,62,63,77,113,114,115,135,156,166,183,162,120,121,133],"/team/message/statistic":[58,162,20,63,113,120,121,133],"/team/action/data":[12,20,43,54,62,63,77,84,113,114,115,156,166,183,161,120,121,133],"/team/action/statistic":[50,161,20,63,113,120,121,133],"/team/notification/data":[12,20,43,54,62,63,77,105,113,114,115,156,166,183,26,120,121,133],"/team/notification/statistic":[122,26,20,63,113,120,121,133],"/team/company/info":[20,77,114,115,129,166,193,91,63,113,120,121,133],"/cs/queue/data":[12,20,43,54,62,63,77,113,114,115,123,156,166,183,191,120,121,133],"/cs/queue/statistic":[24,191,20,63,113,120,121,133],"/cs/thread/data":[12,20,43,54,59,62,63,70,77,113,114,115,156,166,183,37,120,121,133],"/cs/thread/monitor":[137,37,20,63,113,120,121,133],"/cs/thread/statistic":[35,37,20,63,113,120,121,133],"/cs/thread/summary":[12,20,43,54,62,63,77,113,114,115,156,157,166,183,37,120,121,133],"/cs/message/data":[12,20,43,54,62,63,77,113,114,115,135,144,156,166,183,56,120,121,133],"/cs/message/statistic":[86,56,20,63,113,120,121,133],"/cs/leavemsg/data":[12,20,43,54,62,63,77,113,114,115,154,156,166,183,71,120,121,133],"/cs/leavemsg/statistic":[158,71,20,63,113,120,121,133],"/cs/rate/data":[12,20,43,54,62,63,77,113,114,115,131,156,166,183,104,120,121,133],"/cs/rate/statistic":[172,104,20,63,113,120,121,133],"/cs/tag/data":[12,20,43,51,54,62,63,77,95,113,114,115,156,166,183,100,120,121,133],"/cs/tag/statistic":[134,100,20,63,113,120,121,133],"/cs/transfer/data":[12,16,20,43,54,62,63,77,113,114,115,156,166,183,107,120,121,133],"/cs/transfer/statistic":[32,107,20,63,113,120,121,133],"/cs/quality/data":[12,20,34,43,54,62,63,77,113,114,115,156,166,183,184,120,121,133],"/cs/quality/statistic":[0,184,20,63,113,120,121,133],"/cs/black/data":[12,20,43,54,62,63,77,113,114,115,156,166,171,183,192,120,121,133],"/cs/black/statistic":[5,192,20,63,113,120,121,133],"/ai/thread/data":[12,20,43,54,59,62,63,77,113,114,115,138,156,166,183,53,120,121,133],"/ai/thread/statistic":[93,53,20,63,113,120,121,133],"/ai/message/data":[12,20,43,54,62,63,77,113,114,115,135,145,156,166,183,19,120,121,133],"/ai/message/statistic":[128,19,20,63,113,120,121,133],"/kb/article/data":[12,20,43,54,62,63,77,87,108,109,113,114,115,156,166,183,4,163,190,9,120,121,133],"/kb/article/statistic":[132,4,20,54,77,114,115,163,166,190,9,63,113,120,121,133],"/kb/llm/data":[12,20,43,54,62,63,77,78,79,87,113,114,115,129,156,166,183,4,182,190,9,120,121,133],"/kb/llm/statistic":[85,4,20,54,77,114,115,166,182,190,9,63,113,120,121,133],"/kb/keyword/data":[3,12,20,36,43,54,62,63,67,68,77,87,110,113,114,115,119,129,156,166,183,4,106,190,9,120,121,133],"/kb/keyword/statistic":[179,4,20,54,77,106,114,115,166,190,9,63,113,120,121,133],"/kb/faq/data":[1,2,12,20,43,54,62,63,77,87,113,114,115,129,156,166,183,4,168,190,9,120,121,133],"/kb/faq/statistic":[148,4,20,54,77,114,115,166,168,190,9,63,113,120,121,133],"/kb/autoreply/data":[12,20,43,54,62,63,77,87,113,114,115,116,117,129,156,166,183,4,127,190,9,120,121,133],"/kb/autoreply/statistic":[55,4,20,54,77,114,115,127,166,190,9,63,113,120,121,133],"/kb/quickreply/data":[12,20,43,54,62,63,77,87,113,114,115,129,156,166,183,185,186,4,112,190,9,120,121,133],"/kb/quickreply/statistic":[72,4,20,54,77,112,114,115,166,190,9,63,113,120,121,133],"/kb/taboo/data":[12,20,43,54,62,63,77,87,113,114,115,129,140,141,156,166,183,4,149,190,9,120,121,133],"/kb/taboo/statistic":[7,4,20,54,77,114,115,149,166,190,9,63,113,120,121,133],"/kb/upload/data":[12,20,43,54,62,63,77,113,114,115,156,166,183,189,39,9,120,121,133],"/kb/upload/statistic":[92,39,9,20,63,113,120,121,133],"/marketing/blog/data":[12,20,43,48,49,54,62,63,77,87,113,114,115,156,166,183,4,21,190,150,120,121,133],"/marketing/blog/statistic":[11,4,20,21,54,77,114,115,166,190,150,63,113,120,121,133],"/marketing/email/data":[12,20,43,54,62,63,77,87,113,114,115,156,166,183,187,188,4,169,190,150,120,121,133],"/marketing/email/statistic":[64,4,20,54,77,114,115,166,169,190,150,63,113,120,121,133],"/marketing/video/data":[12,20,23,43,54,62,63,77,113,114,115,156,166,183,60,150,120,121,133],"/marketing/video/statistic":[82,60,150,20,63,113,120,121,133],"/super/user/data":[12,20,43,54,61,62,63,77,113,114,115,156,166,183,89,120,121,133],"/super/user/statistic":[164,89,20,63,113,120,121,133],"/super/recharge/data":[12,20,43,54,62,63,77,113,114,115,139,156,166,183,40,120,121,133],"/super/recharge/statistic":[81,40,20,63,113,120,121,133],"/super/notification/data":[12,20,43,54,62,63,77,80,113,114,115,156,166,183,31,120,121,133],"/super/notification/statistic":[167,31,20,63,113,120,121,133],"/super/push/data":[12,20,43,54,62,63,77,113,114,115,156,166,174,183,97,120,121,133],"/super/push/statistic":[175,97,20,63,113,120,121,133],"/cs/crm/visitor/data":[12,20,43,54,62,63,77,113,114,115,156,165,166,183,66,120,121,133],"/cs/crm/visitor/statistic":[69,66,20,63,113,120,121,133],"/cs/crm/customer/data":[12,20,43,54,62,63,77,113,114,115,156,166,183,196,66,120,121,133],"/cs/crm/customer/statistic":[25,66,20,63,113,120,121,133]}},{publicPath:"/admin/"});null==i||i.forEach((function(t){var e,n=t.type,a=t.url;if("js"===n)(e=r("script")).src=a,e.async=!0;else{if("css"!==n)return;(e=r("link")).href=a,e.rel="preload",e.as="style"}t.attrs.forEach((function(t){e.setAttribute(t[0],t[1]||"")})),c.appendChild(e)}))}}(); \ No newline at end of file +!function(){"use strict";var t="/admin/".replace(/([^/])$/,"$1/"),e=location.pathname,n=e.startsWith(t)&&decodeURI("/".concat(e.slice(t.length)));if(n){var a=document,c=a.head,r=a.createElement.bind(a),i=function(t,e,n){var a,c=e.r[t]||(null===(a=Object.entries(e.r).find((function(e){var n=e[0];return new RegExp("^".concat(n.replace(/\/:[^/]+/g,"/[^/]+").replace("/*","/.+"),"$")).test(t)})))||void 0===a?void 0:a[1]);return null==c?void 0:c.map((function(t){var a=e.f[t][1],c=e.f[t][0];return{type:c.split(".").pop(),url:"".concat(n.publicPath).concat(c),attrs:[["data-".concat(e.b),"".concat(e.p,":").concat(a)]]}}))}(n,{"p":"admin","b":"webpack","f":[["p__Dashboard__Service__Quality__QualityStatistic.7f089fe8.async.js",13],["p__Dashboard__Knowledge__Faq__FaqData.f9c908ef.chunk.css",79],["p__Dashboard__Knowledge__Faq__FaqData.4d20e8e4.async.js",79],["100.ec9fc81d.async.js",100],["136.a2755867.async.js",136],["p__Dashboard__Service__Black__BlackStatistic.996ab4d0.async.js",210],["p__Dashboard__Service__Monitor__index.c69c5403.async.js",296],["p__Dashboard__Knowledge__Taboo__TabooStatistic.856a31e5.async.js",319],["359.f2109a99.async.js",359],["p__Dashboard__Knowledge__index.4e0e2986.async.js",363],["498.c3ea4cba.async.js",498],["p__Dashboard__Marketing__Blog__BlogStatistic.9b6aef5f.async.js",510],["571.e2278dad.async.js",571],["814.7291a658.async.js",814],["p__Dashboard__Ai__LlmModel__index.b8a1c3ad.async.js",950],["p__Dashboard__Super__LlmModel__index.4d95f322.async.js",981],["p__Dashboard__Service__Transfer__TransferTable.8908b67a.async.js",1048],["1115.da31f196.async.js",1115],["p__Dashboard__Feedback__index.6acd88d6.async.js",1179],["p__Dashboard__Ai__Message__index.e733d68c.async.js",1206],["1276.ff05e817.async.js",1276],["p__Dashboard__Marketing__Blog__index.1c078c18.async.js",1312],["p__Dashboard__Team__Message__MessageTable.8dc5de56.async.js",1398],["p__Dashboard__Marketing__Video__VideoData.72c092d0.async.js",1426],["p__Dashboard__Service__Queue__QueueStatistic.2f154bd3.async.js",1488],["p__Dashboard__Service__Crm__CustomerStatistic.0a1be199.async.js",1490],["p__Dashboard__Team__Notification__index.77d83fcc.async.js",1531],["p__Dashboard__Setting__Money__index.eeb1c174.async.js",1589],["p__Dashboard__Service__Agent__index.240bafbb.async.js",1642],["p__Auth__Register__index.888c6210.async.js",1730],["p__Dashboard__Liangshibao__Course__index.1827311a.async.js",1742],["p__Dashboard__Super__Notification__index.5aef03a8.async.js",1926],["p__Dashboard__Service__Transfer__TransferStatistic.98a9c44c.async.js",2001],["p__Dashboard__Ticket__index.dbfe79cd.async.js",2005],["p__Dashboard__Service__Quality__QualityTable.aebb737f.async.js",2034],["p__Dashboard__Service__Thread__ThreadStatistic.a5aec551.async.js",2097],["2121.f8b9d686.async.js",2121],["p__Dashboard__Service__Thread__index.4cb98a19.async.js",2148],["p__Dashboard__Ai__Flow__index.0a848f75.async.js",2281],["p__Dashboard__Ai__Upload__index.6fdc8281.async.js",2310],["p__Dashboard__Super__Recharge__index.0b077952.async.js",2319],["p__Dashboard__Team__Thread__ThreadMonitor.05a1ea16.async.js",2375],["p__Dashboard__Plugins__index.f5c5a4a7.async.js",2494],["2519.4fee3097.async.js",2519],["p__Dashboard__Ai__index.19ba0040.chunk.css",2522],["p__Dashboard__Ai__index.aee589ca.async.js",2522],["p__404.a70afcac.async.js",2571],["p__Dashboard__Team__Thread__ThreadSummary.5631426f.async.js",2618],["p__Dashboard__Marketing__Blog__BlogData.f9c908ef.chunk.css",2647],["p__Dashboard__Marketing__Blog__BlogData.afa6268c.async.js",2647],["p__Dashboard__Team__Action__ActionStatistic.52bc2812.async.js",2658],["p__Dashboard__Service__Tag__TagTable.53e5768c.async.js",2701],["p__Dashboard__Team__Thread__index.3198182e.async.js",2708],["p__Dashboard__Ai__Thread__index.06314a7b.async.js",2728],["2847.0d856ae5.async.js",2847],["p__Dashboard__Knowledge__AutoReply__AutoReplyStatistic.9ec44268.async.js",2930],["p__Dashboard__Service__Message__index.4e22afd9.async.js",2949],["p__Dashboard__Flowbot__index.8ca2c944.async.js",2968],["p__Dashboard__Team__Message__MessageStatistic.d64b9985.async.js",2992],["3030.b2235a74.async.js",3030],["p__Dashboard__Marketing__Video__index.d8c694fe.async.js",3034],["p__Dashboard__Super__User__UserData.c0931534.async.js",3088],["3119.e43ba395.async.js",3119],["3120.3aeaacf1.async.js",3120],["p__Dashboard__Marketing__Email__EmailStatistic.99c5fc67.async.js",3151],["p__Dashboard__Liangshibao__Media__index.b90d6623.async.js",3165],["p__Dashboard__Service__Crm__index.2332b1c3.async.js",3186],["p__Dashboard__Knowledge__Keyword__KeywordData.f9c908ef.chunk.css",3340],["p__Dashboard__Knowledge__Keyword__KeywordData.0d6b2338.async.js",3340],["p__Dashboard__Service__Crm__VisitorStatistic.fd58f256.async.js",3395],["p__Dashboard__Service__Thread__ThreadTable.38ecfeab.async.js",3537],["p__Dashboard__Service__LeaveMsg__index.2d093355.async.js",3621],["p__Dashboard__Knowledge__QuickReply__QuickReplyStatistic.e4d0c1db.async.js",3656],["p__Dashboard__Quartz__index.2f2871f6.chunk.css",3848],["p__Dashboard__Quartz__index.577e54cf.async.js",3848],["3918.c972b38b.chunk.css",3918],["3918.0009d0d3.async.js",3918],["3959.09d35f42.async.js",3959],["p__Dashboard__Knowledge__Llm__LlmData.f9c908ef.chunk.css",4167],["p__Dashboard__Knowledge__Llm__LlmData.931c71f8.async.js",4167],["p__Dashboard__Super__Notification__NotificationTable.f9bd24ce.async.js",4204],["p__Dashboard__Super__Recharge__RechargeStatistic.342f7343.async.js",4215],["p__Dashboard__Marketing__Video__VideoStatistic.ec2ceb89.async.js",4262],["p__Dashboard__Team__Role__index.d8f031d9.async.js",4325],["p__Dashboard__Team__Action__ActionTable.0091deb6.async.js",4376],["p__Dashboard__Knowledge__Llm__LlmStatistic.2155f2d1.async.js",4422],["p__Dashboard__Service__Message__MessageStatistic.60054c41.async.js",4460],["4595.25d30f7c.async.js",4595],["4660.c80223b5.async.js",4660],["p__Dashboard__Super__User__index.994535b3.async.js",4693],["4744.0337ee90.async.js",4744],["p__Dashboard__Team__Company__index.b0b93cef.async.js",4747],["p__Dashboard__Ai__Upload__UploadStatistic.75c4a5d3.async.js",4871],["p__Dashboard__Ai__Thread__ThreadStatistic.0a822d17.async.js",4894],["4994.caecc91d.async.js",4994],["5081.2a6a2ba1.async.js",5081],["p__Dashboard__Service__Channel__index.8e76283f.async.js",5131],["p__Dashboard__Super__Push__index.1a245830.async.js",5159],["p__OAuth__Google.2e7cc6a4.async.js",5279],["p__Dashboard__Meiyu__index.9283dd69.async.js",5306],["p__Dashboard__Service__Tag__index.a7c17fd1.async.js",5387],["p__Dashboard__Doceditor__index.f9c908ef.chunk.css",5488],["p__Dashboard__Doceditor__index.c488c946.async.js",5488],["p__Dashboard__Liangshibao__Category__index.f4aeede6.async.js",5522],["p__Dashboard__Service__Rate__index.fa221632.async.js",5684],["p__Dashboard__Team__Notification__NotificationTable.3e15ad4a.async.js",5774],["p__Dashboard__Knowledge__Keyword__index.b04df325.async.js",5847],["p__Dashboard__Service__Transfer__index.c50f6abe.async.js",5906],["p__Dashboard__Knowledge__Article__ArticleData.f9c908ef.chunk.css",5957],["p__Dashboard__Knowledge__Article__ArticleData.865ca44a.async.js",5957],["5976.faae2491.async.js",5976],["p__Dashboard__Super__Role__index.239aa7d6.async.js",6021],["p__Dashboard__Knowledge__QuickReply__index.f2503ccf.async.js",6037],["6075.e7c05a40.async.js",6075],["6106.b99bd13a.async.js",6106],["6118.d334970b.async.js",6118],["p__Dashboard__Knowledge__AutoReply__AutoReplyData.f9c908ef.chunk.css",6130],["p__Dashboard__Knowledge__AutoReply__AutoReplyData.860249e9.async.js",6130],["6132.6a86081f.async.js",6132],["6159.eea317c5.async.js",6159],["t__plugin-layout__Layout.5012e1ab.chunk.css",6301],["t__plugin-layout__Layout.768c4f8f.async.js",6301],["p__Dashboard__Team__Notification__NotificationStatistic.d6789650.async.js",6545],["p__Dashboard__Service__Queue__QueueTable.b08f485d.async.js",6668],["p__Dashboard__Setting__Server__index.ec200e2f.async.js",6676],["p__Dashboard__Setting__Basic__index.effe2758.async.js",6766],["p__Dashboard__Team__Thread__ThreadStatistic.4358fa01.async.js",6771],["p__Dashboard__Knowledge__AutoReply__index.3f9da60f.async.js",6778],["p__Dashboard__Ai__Message__MessageStatistic.d3243774.async.js",6781],["6828.cd380545.async.js",6828],["6886.d9d70cdc.async.js",6886],["p__Dashboard__Service__Rate__RateTable.426e7820.async.js",6900],["p__Dashboard__Knowledge__Article__ArticleStatistic.d6d1fdfd.async.js",6906],["6907.097e3a53.async.js",6907],["p__Dashboard__Service__Tag__TagStatistic.4050e7cd.async.js",7080],["7084.cef6d000.async.js",7084],["p__Dashboard__Team__Group__GroupTable.5fa8abdb.async.js",7139],["p__Dashboard__Service__Thread__ThreadMonitor.68218579.async.js",7270],["p__Dashboard__Ai__Thread__ThreadTable.fafeb6ff.async.js",7357],["p__Dashboard__Super__Recharge__RechargeData.816ec033.async.js",7358],["p__Dashboard__Knowledge__Taboo__TabooData.f9c908ef.chunk.css",7445],["p__Dashboard__Knowledge__Taboo__TabooData.c7dec91b.async.js",7445],["p__Dashboard__Setting__index.da39b284.async.js",7469],["7602.78020514.async.js",7602],["p__Dashboard__Service__Message__MessageTable.44c7f36b.async.js",7788],["p__Dashboard__Ai__Message__MessageTable.c9516be5.async.js",7806],["p__Dashboard__Team__Member__index.f9c908ef.chunk.css",7960],["p__Dashboard__Team__Member__index.92bce71f.async.js",7960],["p__Dashboard__Knowledge__Faq__FaqStatistic.7b344d22.async.js",8041],["p__Dashboard__Knowledge__Taboo__index.2e151186.async.js",8158],["p__Dashboard__Marketing__index.f67e52fc.async.js",8164],["8183.03d51a64.async.js",8183],["p__Welcome.f68f2ebc.async.js",8185],["p__OAuth__Github.580071ed.async.js",8250],["p__Dashboard__Service__LeaveMsg__LeaveMsgTable.acfe61ac.async.js",8326],["p__Dashboard__Zhaobiao__index.92b446f7.async.js",8327],["8335.042844e5.async.js",8335],["p__Dashboard__Service__Thread__ThreadSummary.1bd7e25c.async.js",8390],["p__Dashboard__Service__LeaveMsg__LeaveMsgStatistic.41a43d32.async.js",8412],["p__Dashboard__Tiku__index.40401a5d.async.js",8455],["p__Dashboard__Ai__Robot__index.7e4f6c78.async.js",8472],["p__Dashboard__Team__Action__index.ab0f9a49.async.js",8483],["p__Dashboard__Team__Message__index.3c4a05e8.async.js",8491],["p__Dashboard__Knowledge__Article__index.1ab4c53b.async.js",8587],["p__Dashboard__Super__User__UserStatistic.7ab4a4b0.async.js",8622],["p__Dashboard__Service__Crm__VisitorTable.ea43827b.async.js",8655],["8686.639a29fc.async.js",8686],["p__Dashboard__Super__Notification__NotificationStatistic.ad606757.async.js",8700],["p__Dashboard__Knowledge__Faq__index.cdcca470.async.js",8801],["p__Dashboard__Marketing__Email__index.977ca82c.async.js",8873],["8949.5f921b9b.async.js",8949],["p__Dashboard__Service__Black__BlackTable.20a2de85.async.js",8956],["p__Dashboard__Service__Rate__RateStatistic.5298cf75.async.js",9043],["p__Dashboard__Team__Thread__ThreadTable.eab455eb.async.js",9077],["p__Dashboard__Super__Push__PushData.f56ee6d5.async.js",9137],["p__Dashboard__Super__Push__PushStatistic.7eb667c6.async.js",9212],["p__Dashboard__Setting__Profile__index.d73c49fa.async.js",9290],["p__Dashboard__Team__Group__GroupStatistic.5cf7efdb.async.js",9346],["p__Auth__Login__index.7c9aeeea.async.js",9368],["p__Dashboard__Knowledge__Keyword__KeywordStatistic.09041c94.async.js",9397],["p__Dashboard__Setting__Certification__index.357c8155.async.js",9400],["p__Dashboard__Setting__Notification__index.e316a8d2.async.js",9408],["p__Dashboard__Knowledge__Llm__index.b28a8302.async.js",9450],["9486.3fd0efbd.async.js",9486],["p__Dashboard__Service__Quality__index.bbf1f533.async.js",9505],["p__Dashboard__Knowledge__QuickReply__QuickReplyData.f9c908ef.chunk.css",9584],["p__Dashboard__Knowledge__QuickReply__QuickReplyData.b959184b.async.js",9584],["p__Dashboard__Marketing__Email__EmailData.f9c908ef.chunk.css",9590],["p__Dashboard__Marketing__Email__EmailData.a3063dcb.async.js",9590],["p__Dashboard__Ai__Upload__UploadTable.f1fb4d4a.async.js",9601],["9605.5f6618cd.async.js",9605],["p__Dashboard__Service__Queue__index.1177b848.async.js",9614],["p__Dashboard__Service__Black__index.12bd4ca3.async.js",9639],["p__Dashboard__Team__Company__CompanyInfo.3d486e9a.async.js",9814],["p__Dashboard__Service__Workgroup__index.64f54222.async.js",9828],["p__Dashboard__Team__Group__index.a51adc45.async.js",9870],["p__Dashboard__Service__Crm__CustomerTable.4a2901d2.async.js",9949],["p__Dashboard__Service__Statistic__index.fd4931fa.async.js",9967]],"r":{"/*":[46,63],"/":[20,63,113,120,121,133],"/welcome":[3,10,12,13,54,77,114,115,152,156,183,20,63,113,120,121,133],"/kb":[9,20,63,113,120,121,133],"/ticket":[33,20,63,113,120,121,133],"/feedback":[18,20,63,113,120,121,133],"/marketing":[150,20,63,113,120,121,133],"/plugins":[42,20,63,113,120,121,133],"/meiyu":[4,12,20,43,54,62,63,77,99,113,114,115,156,166,183,120,121,133],"/tiku":[12,20,43,54,62,63,77,113,114,115,156,159,166,183,120,121,133],"/zhaobiao":[12,20,43,54,62,63,77,113,114,115,155,156,166,183,120,121,133],"/quartz":[12,20,43,54,62,63,73,74,77,113,114,115,156,166,183,120,121,133],"/setting":[142,20,63,113,120,121,133],"/doceditor":[4,20,54,75,76,77,87,101,102,110,114,115,156,166],"/flowbot":[20,57,63,113,133],"/auth/login":[12,20,77,114,115,151,166,170,178],"/auth/register":[20,29,77,114,115,166,170],"/oauth/github":[153],"/oauth/google":[98],"/team/member":[12,20,43,54,62,63,77,113,114,115,129,146,147,156,166,183,120,121,133],"/team/role":[4,12,17,20,54,77,83,114,115,166,63,113,120,121,133],"/team/group":[195,20,63,113,120,121,133],"/team/thread":[52,20,63,113,120,121,133],"/team/message":[162,20,63,113,120,121,133],"/team/action":[161,20,63,113,120,121,133],"/team/notification":[26,20,63,113,120,121,133],"/team/company":[91,20,63,113,120,121,133],"/cs/agent":[4,8,12,20,28,43,54,62,63,77,113,114,115,119,129,130,156,166,183,120,121,133],"/cs/workgroup":[4,8,12,20,43,54,62,63,77,113,114,115,119,129,130,156,166,183,194,120,121,133],"/cs/queue":[191,20,63,113,120,121,133],"/cs/thread":[37,20,63,113,120,121,133],"/cs/message":[56,20,63,113,120,121,133],"/cs/leavemsg":[71,20,63,113,120,121,133],"/cs/rate":[104,20,63,113,120,121,133],"/cs/tag":[100,20,63,113,120,121,133],"/cs/channel":[4,12,20,54,62,77,88,96,113,114,115,130,166,63,120,121,133],"/cs/transfer":[107,20,63,113,120,121,133],"/cs/monitor":[6,20,63,113,120,121,133],"/cs/quality":[184,20,63,113,120,121,133],"/cs/crm":[66,20,63,113,120,121,133],"/cs/black":[192,20,63,113,120,121,133],"/cs/statistic":[197,20,63,113,120,121,133],"/ai/robot":[4,10,12,20,44,45,54,77,90,113,114,115,129,166,63,120,121,133],"/ai/model":[4,12,14,20,54,77,113,114,115,118,143,166,63,120,121,133],"/ai/flow":[4,20,38,54,115,63,113,120,121,133],"/ai/prompt":[4,20,54,77,87,113,114,115,129,160,166,63,120,121,133],"/ai/thread":[53,20,63,113,120,121,133],"/ai/message":[19,20,63,113,120,121,133],"/kb/article":[4,20,54,77,114,115,163,166,190,9,63,113,120,121,133],"/kb/llm":[4,20,54,77,114,115,166,182,190,9,63,113,120,121,133],"/kb/keyword":[4,20,54,77,106,114,115,166,190,9,63,113,120,121,133],"/kb/faq":[4,20,54,77,114,115,166,168,190,9,63,113,120,121,133],"/kb/autoreply":[4,20,54,77,114,115,127,166,190,9,63,113,120,121,133],"/kb/quickreply":[4,20,54,77,112,114,115,166,190,9,63,113,120,121,133],"/kb/taboo":[4,20,54,77,114,115,149,166,190,9,63,113,120,121,133],"/kb/upload":[39,9,20,63,113,120,121,133],"/marketing/blog":[4,20,21,54,77,114,115,166,190,150,63,113,120,121,133],"/marketing/email":[4,20,54,77,114,115,166,169,190,150,63,113,120,121,133],"/marketing/video":[60,150,20,63,113,120,121,133],"/liangshibao/category":[12,20,43,54,62,63,77,103,113,114,115,156,166,183,120,121,133],"/liangshibao/course":[12,20,30,43,54,62,63,77,113,114,115,156,166,183,120,121,133],"/liangshibao/media":[12,20,43,54,62,63,65,77,113,114,115,156,166,183,120,121,133],"/setting/profile":[20,77,114,115,129,166,176,142,63,113,120,121,133],"/setting/basic":[77,125,142,20,63,113,120,121,133],"/setting/certification":[12,20,77,114,115,166,180,142,63,113,120,121,133],"/setting/money":[12,20,27,43,54,62,63,77,113,114,115,151,156,166,183,142,120,121,133],"/setting/server":[124,142,20,63,113,120,121,133],"/setting/notification":[12,20,43,54,62,63,77,113,114,115,156,166,181,183,142,120,121,133],"/super/user":[89,20,63,113,120,121,133],"/super/role":[4,12,17,20,54,77,111,114,115,166,63,113,120,121,133],"/super/provider":[4,12,15,20,54,77,113,114,115,118,143,166,63,120,121,133],"/super/recharge":[40,20,63,113,120,121,133],"/super/notification":[31,20,63,113,120,121,133],"/super/push":[97,20,63,113,120,121,133],"/team/group/data":[12,20,43,54,62,63,77,113,114,115,136,156,166,183,195,120,121,133],"/team/group/statistic":[177,195,20,63,113,120,121,133],"/team/thread/data":[12,20,43,54,59,62,63,77,113,114,115,156,166,173,183,52,120,121,133],"/team/thread/monitor":[41,52,20,63,113,120,121,133],"/team/thread/statistic":[126,52,20,63,113,120,121,133],"/team/thread/summary":[12,20,43,47,54,62,63,77,113,114,115,156,166,183,52,120,121,133],"/team/message/data":[12,20,22,43,54,62,63,77,113,114,115,135,156,166,183,162,120,121,133],"/team/message/statistic":[58,162,20,63,113,120,121,133],"/team/action/data":[12,20,43,54,62,63,77,84,113,114,115,156,166,183,161,120,121,133],"/team/action/statistic":[50,161,20,63,113,120,121,133],"/team/notification/data":[12,20,43,54,62,63,77,105,113,114,115,156,166,183,26,120,121,133],"/team/notification/statistic":[122,26,20,63,113,120,121,133],"/team/company/info":[20,77,114,115,129,166,193,91,63,113,120,121,133],"/cs/queue/data":[12,20,43,54,62,63,77,113,114,115,123,156,166,183,191,120,121,133],"/cs/queue/statistic":[24,191,20,63,113,120,121,133],"/cs/thread/data":[12,20,43,54,59,62,63,70,77,113,114,115,156,166,183,37,120,121,133],"/cs/thread/monitor":[137,37,20,63,113,120,121,133],"/cs/thread/statistic":[35,37,20,63,113,120,121,133],"/cs/thread/summary":[12,20,43,54,62,63,77,113,114,115,156,157,166,183,37,120,121,133],"/cs/message/data":[12,20,43,54,62,63,77,113,114,115,135,144,156,166,183,56,120,121,133],"/cs/message/statistic":[86,56,20,63,113,120,121,133],"/cs/leavemsg/data":[12,20,43,54,62,63,77,113,114,115,154,156,166,183,71,120,121,133],"/cs/leavemsg/statistic":[158,71,20,63,113,120,121,133],"/cs/rate/data":[12,20,43,54,62,63,77,113,114,115,131,156,166,183,104,120,121,133],"/cs/rate/statistic":[172,104,20,63,113,120,121,133],"/cs/tag/data":[12,20,43,51,54,62,63,77,95,113,114,115,156,166,183,100,120,121,133],"/cs/tag/statistic":[134,100,20,63,113,120,121,133],"/cs/transfer/data":[12,16,20,43,54,62,63,77,113,114,115,156,166,183,107,120,121,133],"/cs/transfer/statistic":[32,107,20,63,113,120,121,133],"/cs/quality/data":[12,20,34,43,54,62,63,77,113,114,115,156,166,183,184,120,121,133],"/cs/quality/statistic":[0,184,20,63,113,120,121,133],"/cs/black/data":[12,20,43,54,62,63,77,113,114,115,156,166,171,183,192,120,121,133],"/cs/black/statistic":[5,192,20,63,113,120,121,133],"/ai/thread/data":[12,20,43,54,59,62,63,77,113,114,115,138,156,166,183,53,120,121,133],"/ai/thread/statistic":[93,53,20,63,113,120,121,133],"/ai/message/data":[12,20,43,54,62,63,77,113,114,115,135,145,156,166,183,19,120,121,133],"/ai/message/statistic":[128,19,20,63,113,120,121,133],"/kb/article/data":[12,20,43,54,62,63,77,87,108,109,113,114,115,156,166,183,4,163,190,9,120,121,133],"/kb/article/statistic":[132,4,20,54,77,114,115,163,166,190,9,63,113,120,121,133],"/kb/llm/data":[12,20,43,54,62,63,77,78,79,87,113,114,115,129,156,166,183,4,182,190,9,120,121,133],"/kb/llm/statistic":[85,4,20,54,77,114,115,166,182,190,9,63,113,120,121,133],"/kb/keyword/data":[3,12,20,36,43,54,62,63,67,68,77,87,110,113,114,115,119,129,156,166,183,4,106,190,9,120,121,133],"/kb/keyword/statistic":[179,4,20,54,77,106,114,115,166,190,9,63,113,120,121,133],"/kb/faq/data":[1,2,12,20,43,54,62,63,77,87,113,114,115,129,156,166,183,4,168,190,9,120,121,133],"/kb/faq/statistic":[148,4,20,54,77,114,115,166,168,190,9,63,113,120,121,133],"/kb/autoreply/data":[12,20,43,54,62,63,77,87,113,114,115,116,117,129,156,166,183,4,127,190,9,120,121,133],"/kb/autoreply/statistic":[55,4,20,54,77,114,115,127,166,190,9,63,113,120,121,133],"/kb/quickreply/data":[12,20,43,54,62,63,77,87,113,114,115,129,156,166,183,185,186,4,112,190,9,120,121,133],"/kb/quickreply/statistic":[72,4,20,54,77,112,114,115,166,190,9,63,113,120,121,133],"/kb/taboo/data":[12,20,43,54,62,63,77,87,113,114,115,129,140,141,156,166,183,4,149,190,9,120,121,133],"/kb/taboo/statistic":[7,4,20,54,77,114,115,149,166,190,9,63,113,120,121,133],"/kb/upload/data":[12,20,43,54,62,63,77,113,114,115,156,166,183,189,39,9,120,121,133],"/kb/upload/statistic":[92,39,9,20,63,113,120,121,133],"/marketing/blog/data":[12,20,43,48,49,54,62,63,77,87,113,114,115,156,166,183,4,21,190,150,120,121,133],"/marketing/blog/statistic":[11,4,20,21,54,77,114,115,166,190,150,63,113,120,121,133],"/marketing/email/data":[12,20,43,54,62,63,77,87,113,114,115,156,166,183,187,188,4,169,190,150,120,121,133],"/marketing/email/statistic":[64,4,20,54,77,114,115,166,169,190,150,63,113,120,121,133],"/marketing/video/data":[12,20,23,43,54,62,63,77,113,114,115,156,166,183,60,150,120,121,133],"/marketing/video/statistic":[82,60,150,20,63,113,120,121,133],"/super/user/data":[12,20,43,54,61,62,63,77,113,114,115,156,166,183,89,120,121,133],"/super/user/statistic":[164,89,20,63,113,120,121,133],"/super/recharge/data":[12,20,43,54,62,63,77,113,114,115,139,156,166,183,40,120,121,133],"/super/recharge/statistic":[81,40,20,63,113,120,121,133],"/super/notification/data":[12,20,43,54,62,63,77,80,113,114,115,156,166,183,31,120,121,133],"/super/notification/statistic":[167,31,20,63,113,120,121,133],"/super/push/data":[12,20,43,54,62,63,77,113,114,115,156,166,174,183,97,120,121,133],"/super/push/statistic":[175,97,20,63,113,120,121,133],"/cs/crm/visitor/data":[12,20,43,54,62,63,77,113,114,115,156,165,166,183,66,120,121,133],"/cs/crm/visitor/statistic":[69,66,20,63,113,120,121,133],"/cs/crm/customer/data":[12,20,43,54,62,63,77,113,114,115,156,166,183,196,66,120,121,133],"/cs/crm/customer/statistic":[25,66,20,63,113,120,121,133]}},{publicPath:"/admin/"});null==i||i.forEach((function(t){var e,n=t.type,a=t.url;if("js"===n)(e=r("script")).src=a,e.async=!0;else{if("css"!==n)return;(e=r("link")).href=a,e.rel="preload",e.as="style"}t.attrs.forEach((function(t){e.setAttribute(t[0],t[1]||"")})),c.appendChild(e)}))}}(); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/umi.082ccafe.js b/starter/src/main/resources/templates/admin/umi.082ccafe.js new file mode 100644 index 0000000000..1411508a4e --- /dev/null +++ b/starter/src/main/resources/templates/admin/umi.082ccafe.js @@ -0,0 +1 @@ +!function(){var e,t,n,r,o={38774:function(e,t,n){"use strict";n.d(t,{iN:function(){return S},R_:function(){return d},EV:function(){return v},Ti:function(){return T},ez:function(){return p}});var r=n(20117),o=n(76981),i=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function a(e){var t=e.r,n=e.g,o=e.b,i=(0,r.py)(t,n,o);return{h:360*i.h,s:i.s,v:i.v}}function s(e){var t=e.r,n=e.g,o=e.b;return"#".concat((0,r.vq)(t,n,o,!1))}function l(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}function c(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function u(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function f(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function d(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,o.uA)(e),d=5;d>0;d-=1){var p=a(r),h=s((0,o.uA)({h:c(p,d,!0),s:u(p,d,!0),v:f(p,d,!0)}));n.push(h)}n.push(s(r));for(var g=1;g<=4;g+=1){var m=a(r),v=s((0,o.uA)({h:c(m,g),s:u(m,g),v:f(m,g)}));n.push(v)}return"dark"===t.theme?i.map((function(e){var r=e.index,i=e.opacity;return s(l((0,o.uA)(t.backgroundColor||"#141414"),(0,o.uA)(n[r]),100*i))})):n}var p={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},h=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];h.primary=h[5];var g=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];g.primary=g[5];var m=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];m.primary=m[5];var v=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];v.primary=v[5];var y=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];y.primary=y[5];var b=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];b.primary=b[5];var w=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];w.primary=w[5];var E=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];E.primary=E[5];var S=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];S.primary=S[5];var _=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];_.primary=_[5];var x=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];x.primary=x[5];var k=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];k.primary=k[5];var C=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];C.primary=C[5];var T={red:h,volcano:g,orange:m,gold:v,yellow:y,lime:b,green:w,cyan:E,blue:S,geekblue:_,purple:x,magenta:k,grey:C},O=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];O.primary=O[5];var A=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];A.primary=A[5];var P=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];P.primary=P[5];var I=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];I.primary=I[5];var R=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];R.primary=R[5];var M=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];M.primary=M[5];var j=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];j.primary=j[5];var L=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];L.primary=L[5];var N=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];N.primary=N[5];var D=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];D.primary=D[5];var F=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];F.primary=F[5];var B=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];B.primary=B[5];var $=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];$.primary=$[5]},53681:function(e,t,n){"use strict";n.d(t,{rb:function(){return j},IX:function(){return k}});var r=n(6918),o=n(42601),i=n(20173),a=n(17082),s=n(44194),l=n(29664),c=n(74592),u=n(32099),f=n(54665),d=n(14755),p=n(3518),h=(0,u.Z)((function e(){(0,c.Z)(this,e)})),g="CALC_UNIT",m=new RegExp(g,"g");function v(e){return"number"==typeof e?"".concat(e).concat(g):e}var y=function(e){(0,d.Z)(n,e);var t=(0,p.Z)(n);function n(e,o){var a;(0,c.Z)(this,n),a=t.call(this),(0,i.Z)((0,f.Z)(a),"result",""),(0,i.Z)((0,f.Z)(a),"unitlessCssVar",void 0),(0,i.Z)((0,f.Z)(a),"lowPriority",void 0);var s=(0,r.Z)(e);return a.unitlessCssVar=o,e instanceof n?a.result="(".concat(e.result,")"):"number"===s?a.result=v(e):"string"===s&&(a.result=e),a}return(0,u.Z)(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(v(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(v(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(r=!1),this.result=this.result.replace(m,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(h),b=function(e){(0,d.Z)(n,e);var t=(0,p.Z)(n);function n(e){var r;return(0,c.Z)(this,n),r=t.call(this),(0,i.Z)((0,f.Z)(r),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return(0,u.Z)(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(h),w=function(e,t){var n="css"===e?y:b;return function(e){return new n(e,t)}},E=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};n(69580);var S=function(e,t,n,r){var i=(0,a.Z)({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach((function(e){var t,n=(0,o.Z)(e,2),r=n[0],a=n[1];(null!=i&&i[r]||null!=i&&i[a])&&(null!==(t=i[a])&&void 0!==t||(i[a]=null==i?void 0:i[r]))}));var s=(0,a.Z)((0,a.Z)({},n),i);return Object.keys(s).forEach((function(e){s[e]===t[e]&&delete s[e]})),s},_="undefined"!=typeof CSSINJS_STATISTIC,x=!0;function k(){for(var e=arguments.length,t=new Array(e),n=0;n1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))})),this.accessBeat=0}}}]),e}());var R=function(e,t){return s.useMemo((function(){var n=I.get(t);if(n)return n;var r=e();return I.set(t,r),r}),t)},M=function(){return{}};var j=function(e){var t=e.useCSP,n=void 0===t?M:t,c=e.useToken,u=e.usePrefix,f=e.getResetStyles,d=e.getCommonStyle,p=e.getCompUnitless;function h(t,i,s){var p=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},h=Array.isArray(t)?t:[t,t],g=(0,o.Z)(h,1),m=g[0],v=h.join("-"),y=e.layer||{name:"antd"};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=c(),h=o.theme,g=o.realToken,b=o.hashId,_=o.token,x=o.cssVar,C=u(),T=C.rootPrefixCls,I=C.iconPrefixCls,M=n(),j=x?"css":"js",L=R((function(){var e=new Set;return x&&Object.keys(p.unitless||{}).forEach((function(t){e.add((0,l.ks)(t,x.prefix)),e.add((0,l.ks)(t,E(m,x.prefix)))})),w(j,e)}),[j,m,null==x?void 0:x.prefix]),N=P(j),D=N.max,F=N.min,B={theme:h,token:_,hashId:b,nonce:function(){return M.nonce},clientOnly:p.clientOnly,layer:y,order:p.order||-999};(0,l.xy)((0,a.Z)((0,a.Z)({},B),{},{clientOnly:!1,path:["Shared",T]}),(function(){return"function"==typeof f?f(_):[]}));var $=(0,l.xy)((0,a.Z)((0,a.Z)({},B),{},{path:[v,e,I]}),(function(){if(!1===p.injectStyle)return[];var n=O(_),o=n.token,a=n.flush,c=A(m,g,s),u=".".concat(e),f=S(m,g,c,{deprecatedTokens:p.deprecatedTokens});x&&c&&"object"===(0,r.Z)(c)&&Object.keys(c).forEach((function(e){c[e]="var(".concat((0,l.ks)(e,E(m,x.prefix)),")")}));var h=k(o,{componentCls:u,prefixCls:e,iconCls:".".concat(I),antCls:".".concat(T),calc:L,max:D,min:F},x?c:f),v=i(h,{hashId:b,prefixCls:e,rootPrefixCls:T,iconPrefixCls:I});a(m,f);var y="function"==typeof d?d(h,e,t,p.resetFont):null;return[!1===p.resetStyle?null:y,v]}));return[$,b]}}return{genStyleHooks:function(e,t,n,r){var u=Array.isArray(e)?e[0]:e;function f(e){return"".concat(String(u)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var d=(null==r?void 0:r.unitless)||{},g="function"==typeof p?p(e):{},m=(0,a.Z)((0,a.Z)({},g),{},(0,i.Z)({},f("zIndexPopup"),!0));Object.keys(d).forEach((function(e){m[f(e)]=d[e]}));var v=(0,a.Z)((0,a.Z)({},r),{},{unitless:m,prefixToken:f}),y=h(e,t,n,v),b=function(e,t,n){var r=n.unitless,o=n.injectStyle,i=void 0===o||o,a=n.prefixToken,u=n.ignore,f=function(o){var i=o.rootCls,s=o.cssVar,f=void 0===s?{}:s,d=c().realToken;return(0,l.CI)({path:[e],prefix:f.prefix,key:f.key,unitless:r,ignore:u,token:d,scope:i},(function(){var r=A(e,d,t),o=S(e,d,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach((function(e){o[a(e)]=o[e],delete o[e]})),o})),null},d=function(t){var n=c().cssVar;return[function(r){return i&&n?s.createElement(s.Fragment,null,s.createElement(f,{rootCls:t,cssVar:n,component:e}),r):r},null==n?void 0:n.key]};return d}(u,n,v);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=y(e,t),r=(0,o.Z)(n,2),i=r[1],a=b(t),s=(0,o.Z)(a,2),l=s[0],c=s[1];return[l,i,c]}},genSubStyleComponent:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=h(e,t,n,(0,a.Z)({resetStyle:!1,order:-998},r)),i=function(e){var t=e.prefixCls,n=e.rootCls;return o(t,void 0===n?t:n),null};return i},genComponentStyleHook:h}}},29664:function(e,t,n){"use strict";n.d(t,{E4:function(){return dt},V9:function(){return x},jG:function(){return j},t2:function(){return re},ks:function(){return H},bf:function(){return z},CI:function(){return ut},fp:function(){return ie},xy:function(){return st}});var r=n(20173),o=n(42601),i=n(56299),a=n(17082);var s=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},l=n(96345),c=n(44194),u=n.t(c,2),f=n(51190),d=n(20638),p=n(43942),h=n(74592),g=n(32099);function m(e){return e.join("%")}var v=function(){function e(t){(0,h.Z)(this,e),(0,r.Z)(this,"instanceId",void 0),(0,r.Z)(this,"cache",new Map),this.instanceId=t}return(0,g.Z)(e,[{key:"get",value:function(e){return this.opGet(m(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(m(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),y=["children"],b="data-token-hash",w="data-css-hash",E="__cssinjs_instance__";function S(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(w,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[E]=t[E]||e,t[E]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(w,"]"))).forEach((function(t){var n,o=t.getAttribute(w);r[o]?t[E]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new v(e)}var _=c.createContext({hashPriority:"low",cache:S(),defaultCache:!0}),x=function(e){var t=e.children,n=(0,f.Z)(e,y),r=c.useContext(_),o=(0,d.Z)((function(){var e=(0,a.Z)({},r);Object.keys(n).forEach((function(t){var r=n[t];void 0!==n[t]&&(e[t]=r)}));var t=n.cache;return e.cache=e.cache||S(),e.defaultCache=!t&&r.defaultCache,e}),[r,n],(function(e,t){return!(0,p.Z)(e[0],t[0],!0)||!(0,p.Z)(e[1],t[1],!0)}));return c.createElement(_.Provider,{value:o},t)},k=_,C=n(6918),T=n(33229),O="CALC_UNIT";new RegExp(O,"g");var A=function(){function e(){(0,h.Z)(this,e),(0,r.Z)(this,"cache",void 0),(0,r.Z)(this,"keys",void 0),(0,r.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,g.Z)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce((function(e,t){var n=(0,o.Z)(e,2)[1];return r.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),I+=1}return(0,g.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),M=new A;function j(e){var t=Array.isArray(e)?e:[e];return M.has(t)||M.set(t,new R(t)),M.get(t)}var L=new WeakMap,N={};function D(e,t){for(var n=L,r=0;r3&&void 0!==arguments[3]?arguments[3]:{},s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(s)return e;var l=(0,a.Z)((0,a.Z)({},i),{},(o={},(0,r.Z)(o,b,t),(0,r.Z)(o,w,n),o)),c=Object.keys(l).map((function(e){var t=l[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"")}var H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},W=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=(0,o.Z)(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},V=function(e,t,n){var r={},i={};return Object.entries(e).forEach((function(e){var t,a,s=(0,o.Z)(e,2),l=s[0],c=s[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[l])i[l]=c;else if(!("string"!=typeof c&&"number"!=typeof c||null!=n&&null!==(a=n.ignore)&&void 0!==a&&a[l])){var u,f=H(l,null==n?void 0:n.prefix);r[f]="number"!=typeof c||null!=n&&null!==(u=n.unitless)&&void 0!==u&&u[l]?String(c):"".concat(c,"px"),i[l]="var(".concat(f,")")}})),[i,W(r,t,{scope:null==n?void 0:n.scope})]},q=n(16713),G=(0,a.Z)({},u).useInsertionEffect,K=G?function(e,t,n){return G((function(){return e(),t()}),n)}:function(e,t,n){c.useMemo(e,n),(0,q.Z)((function(){return t(!0)}),n)},Y=void 0!==(0,a.Z)({},u).useInsertionEffect?function(e){var t=[],n=!1;return c.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}};var X=function(){return!1};function Q(e,t,n,r,a){var s=c.useContext(k).cache,l=m([e].concat((0,i.Z)(t))),u=Y([l]),f=(X(),function(e){s.opUpdate(l,(function(t){var r=t||[void 0,void 0],i=(0,o.Z)(r,2),a=i[0];var s=[void 0===a?0:a,i[1]||n()];return e?e(s):s}))});c.useMemo((function(){f()}),[l]);var d=s.opGet(l)[1];return K((function(){null==a||a(d)}),(function(e){return f((function(t){var n=(0,o.Z)(t,2),r=n[0],i=n[1];return e&&0===r&&(null==a||a(d)),[r+1,i]})),function(){s.opUpdate(l,(function(t){var n=t||[],i=(0,o.Z)(n,2),a=i[0],c=void 0===a?0:a,f=i[1];return 0===c-1?(u((function(){!e&&s.opGet(l)||null==r||r(f,!1)})),null):[c-1,f]}))}}),[l]),d}var J={},ee=new Map;function te(e){ee.set(e,(ee.get(e)||0)+1)}function ne(e,t){ee.set(e,(ee.get(e)||0)-1);var n=Array.from(ee.keys()),r=n.filter((function(e){return(ee.get(e)||0)<=0}));n.length-r.length>0&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(b,'="').concat(e,'"]')).forEach((function(e){var n;e[E]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),ee.delete(e)}))}var re=function(e,t,n,r){var o=n.getDerivativeToken(e),i=(0,a.Z)((0,a.Z)({},o),t);return r&&(i=r(i)),i},oe="token";function ie(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,c.useContext)(k),u=r.cache.instanceId,f=r.container,d=n.salt,p=void 0===d?"":d,h=n.override,g=void 0===h?J:h,m=n.formatToken,v=n.getComputedToken,y=n.cssVar,S=D((function(){return Object.assign.apply(Object,[{}].concat((0,i.Z)(t)))}),t),_=B(S),x=B(g),C=y?B(y):"",T=Q(oe,[p,e.id,_,x,C],(function(){var t,n=v?v(S,g,e):re(S,g,e,m),r=(0,a.Z)({},n),i="";if(y){var l=V(n,y.key,{prefix:y.prefix,ignore:y.ignore,unitless:y.unitless,preserve:y.preserve}),c=(0,o.Z)(l,2);n=c[0],i=c[1]}var u=$(n,p);n._tokenKey=u,r._tokenKey=$(r,p);var f=null!==(t=null==y?void 0:y.key)&&void 0!==t?t:u;n._themeKey=f,te(f);var d="".concat("css","-").concat(s(u));return n._hashId=d,[n,d,r,i,(null==y?void 0:y.key)||""]}),(function(e){ne(e[0]._themeKey,u)}),(function(e){var t=(0,o.Z)(e,4),n=t[0],r=t[3];if(y&&r){var i=(0,l.hq)(r,s("css-variables-".concat(n._themeKey)),{mark:w,prepend:"queue",attachTo:f,priority:-999});i[E]=u,i.setAttribute(b,n._themeKey)}}));return T}var ae=n(11757),se={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},le="comm",ce="rule",ue="decl",fe=Math.abs,de=String.fromCharCode;Object.assign;function pe(e){return e.trim()}function he(e,t,n){return e.replace(t,n)}function ge(e,t,n){return e.indexOf(t,n)}function me(e,t){return 0|e.charCodeAt(t)}function ve(e,t,n){return e.slice(t,n)}function ye(e){return e.length}function be(e,t){return t.push(e),e}function we(e,t){for(var n="",r=0;r0?me(Te,--ke):0,_e--,10===Ce&&(_e=1,Se--),Ce}function Pe(){return Ce=ke2||je(Ce)>3?"":" "}function Be(e,t){for(;--t&&Pe()&&!(Ce<48||Ce>102||Ce>57&&Ce<65||Ce>70&&Ce<97););return Me(e,Re()+(t<6&&32==Ie()&&32==Pe()))}function $e(e){for(;Pe();)switch(Ce){case e:return ke;case 34:case 39:34!==e&&39!==e&&$e(Ce);break;case 40:41===e&&$e(e);break;case 92:Pe()}return ke}function Ze(e,t){for(;Pe()&&e+Ce!==57&&(e+Ce!==84||47!==Ie()););return"/*"+Me(t,ke-1)+"*"+de(47===e?e:Pe())}function ze(e){for(;!je(Ie());)Pe();return Me(e,ke)}function Ue(e){return Ne(He("",null,null,null,[""],e=Le(e),0,[0],e))}function He(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,f=a,d=0,p=0,h=0,g=1,m=1,v=1,y=0,b="",w=o,E=i,S=r,_=b;m;)switch(h=y,y=Pe()){case 40:if(108!=h&&58==me(_,f-1)){-1!=ge(_+=he(De(y),"&","&\f"),"&\f",fe(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:_+=De(y);break;case 9:case 10:case 13:case 32:_+=Fe(h);break;case 92:_+=Be(Re()-1,7);continue;case 47:switch(Ie()){case 42:case 47:be(Ve(Ze(Pe(),Re()),t,n,l),l),5!=je(h||1)&&5!=je(Ie()||1)||!ye(_)||" "===ve(_,-1,void 0)||(_+=" ");break;default:_+="/"}break;case 123*g:s[c++]=ye(_)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+u:-1==v&&(_=he(_,/\f/g,"")),p>0&&(ye(_)-f||0===g&&47===h)&&be(p>32?qe(_+";",r,n,f-1,l):qe(he(_," ","")+";",r,n,f-2,l),l);break;case 59:_+=";";default:if(be(S=We(_,t,n,c,u,o,s,b,w=[],E=[],f,i),i),123===y)if(0===u)He(_,t,S,S,w,i,f,s,E);else switch(99===d&&110===me(_,3)?100:d){case 100:case 108:case 109:case 115:He(e,S,S,r&&be(We(e,S,S,0,0,o,s,b,o,w=[],f,E),E),o,E,f,s,r?w:E);break;default:He(_,S,S,S,[""],E,0,s,E)}}c=u=p=0,g=v=1,b=_="",f=a;break;case 58:f=1+ye(_),p=h;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==Ae())continue;switch(_+=de(y),y*g){case 38:v=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(ye(_)-1)*v,v=1;break;case 64:45===Ie()&&(_+=De(Pe())),d=Ie(),u=f=ye(b=_+=ze(Re())),y++;break;case 45:45===h&&2==ye(_)&&(g=0)}}return i}function We(e,t,n,r,o,i,a,s,l,c,u,f){for(var d=o-1,p=0===o?i:[""],h=function(e){return e.length}(p),g=0,m=0,v=0;g0?p[y]+" "+b:he(b,/&\f/g,p[y])))&&(l[v++]=w);return Oe(e,t,n,0===o?ce:s,l,c,u,f)}function Ve(e,t,n,r){return Oe(e,t,n,le,de(Ce),ve(e,2,-2),0,r)}function qe(e,t,n,r,o){return Oe(e,t,n,ue,ve(e,0,r),ve(e,r+1,-1),r,o)}var Ge,Ke="data-ant-cssinjs-cache-path",Ye="_FILE_STYLE__";var Xe=!0;function Qe(e){return function(){if(!Ge&&(Ge={},(0,T.Z)())){var e=document.createElement("div");e.className=Ke,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=e.split(":"),n=(0,o.Z)(t,2),r=n[0],i=n[1];Ge[r]=i}));var n,r=document.querySelector("style[".concat(Ke,"]"));r&&(Xe=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Ge[e]}var Je="_multi_value_";function et(e){return we(Ue(e),Ee).replace(/\{%%%\:[^;];}/g,";")}function tt(e){return"object"===(0,C.Z)(e)&&e&&("_skip_check_"in e||Je in e)}function nt(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",a=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(a).concat(o).concat(r.slice(a.length))].concat((0,i.Z)(n.slice(1))).join(" ")})).join(",")}var rt=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},s=r.root,l=r.injectHash,c=r.parentSelectors,u=n.hashId,f=n.layer,d=(n.path,n.hashPriority),p=n.transformers,h=void 0===p?[]:p,g=(n.linters,""),m={};function v(t){var r=t.getName(u);if(!m[r]){var i=e(t.style,n,{root:!1,parentSelectors:c}),a=(0,o.Z)(i,1)[0];m[r]="@keyframes ".concat(t.getName(u)).concat(a)}}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach((function(e){Array.isArray(e)?y(e,t):e&&t.push(e)})),t}var b=y(Array.isArray(t)?t:[t]);return b.forEach((function(t){var r="string"!=typeof t||s?t:{};if("string"==typeof r)g+="".concat(r,"\n");else if(r._keyframe)v(r);else{var f=h.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(f).forEach((function(t){var r=f[t];if("object"!==(0,C.Z)(r)||!r||"animationName"===t&&r._keyframe||tt(r)){var p;function k(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;se[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(v(t),r=t.getName(u)),g+="".concat(n,":").concat(r,";")}var h=null!==(p=null==r?void 0:r.value)&&void 0!==p?p:r;"object"===(0,C.Z)(r)&&null!=r&&r[Je]&&Array.isArray(h)?h.forEach((function(e){k(t,e)})):k(t,h)}else{var y=!1,b=t.trim(),w=!1;(s||l)&&u?b.startsWith("@")?y=!0:b=nt("&"===b?"":t,u,d):!s||u||"&"!==b&&""!==b||(b="",w=!0);var E=e(r,n,{root:w,injectHash:y,parentSelectors:[].concat((0,i.Z)(c),[b])}),S=(0,o.Z)(E,2),_=S[0],x=S[1];m=(0,a.Z)((0,a.Z)({},m),x),g+="".concat(b).concat(_)}}))}})),s?f&&(g="@layer ".concat(f.name," {").concat(g,"}"),f.dependencies&&(m["@layer ".concat(f.name)]=f.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(f.name,";")})).join("\n"))):g="{".concat(g,"}"),[g,m]};function ot(e,t){return s("".concat(e.join("%")).concat(t))}function it(){return null}var at="style";function st(e,t){var n=e.token,s=e.path,u=e.hashId,f=e.layer,d=e.nonce,p=e.clientOnly,h=e.order,g=void 0===h?0:h,m=c.useContext(k),v=m.autoClear,y=(m.mock,m.defaultCache),S=m.hashPriority,_=m.container,x=m.ssrInline,C=m.transformers,O=m.linters,A=m.cache,P=m.layer,I=n._tokenKey,R=[I];P&&R.push("layer"),R.push.apply(R,(0,i.Z)(s));var M=Z;var j=Q(at,R,(function(){var e=R.join("|");if(Qe(e)){var n=function(e){var t=Ge[e],n=null;if(t&&(0,T.Z)())if(Xe)n=Ye;else{var r=document.querySelector("style[".concat(w,'="').concat(Ge[e],'"]'));r?n=r.innerHTML:delete Ge[e]}return[n,t]}(e),r=(0,o.Z)(n,2),i=r[0],a=r[1];if(i)return[i,I,a,{},p,g]}var l=t(),c=rt(l,{hashId:u,hashPriority:S,layer:P?f:void 0,path:s.join("-"),transformers:C,linters:O}),d=(0,o.Z)(c,2),h=d[0],m=d[1],v=et(h),y=ot(R,v);return[v,I,y,m,p,g]}),(function(e,t){var n=(0,o.Z)(e,3)[2];(t||v)&&Z&&(0,l.jL)(n,{mark:w})}),(function(e){var t=(0,o.Z)(e,4),n=t[0],r=(t[1],t[2]),i=t[3];if(M&&n!==Ye){var s={mark:w,prepend:!P&&"queue",attachTo:_,priority:g},c="function"==typeof d?d():d;c&&(s.csp={nonce:c});var u=[],f=[];Object.keys(i).forEach((function(e){e.startsWith("@layer")?u.push(e):f.push(e)})),u.forEach((function(e){(0,l.hq)(et(i[e]),"_layer-".concat(e),(0,a.Z)((0,a.Z)({},s),{},{prepend:!0}))}));var p=(0,l.hq)(n,r,s);p[E]=A.instanceId,p.setAttribute(b,I),f.forEach((function(e){(0,l.hq)(et(i[e]),"_effect-".concat(e),s)}))}})),L=(0,o.Z)(j,3),N=L[0],D=L[1],F=L[2];return function(e){var t,n;x&&!M&&y?t=c.createElement("style",(0,ae.Z)({},(n={},(0,r.Z)(n,b,D),(0,r.Z)(n,w,F),n),{dangerouslySetInnerHTML:{__html:N}})):t=c.createElement(it,null);return c.createElement(c.Fragment,null,t,e)}}var lt,ct="cssVar",ut=function(e,t){var n=e.key,r=e.prefix,a=e.unitless,s=e.ignore,u=e.token,f=e.scope,d=void 0===f?"":f,p=(0,c.useContext)(k),h=p.cache.instanceId,g=p.container,m=u._tokenKey,v=[].concat((0,i.Z)(e.path),[n,d,m]);return Q(ct,v,(function(){var e=t(),i=V(e,n,{prefix:r,unitless:a,ignore:s,scope:d}),l=(0,o.Z)(i,2),c=l[0],u=l[1];return[c,u,ot(v,u),n]}),(function(e){var t=(0,o.Z)(e,3)[2];Z&&(0,l.jL)(t,{mark:w})}),(function(e){var t=(0,o.Z)(e,3),r=t[1],i=t[2];if(r){var a=(0,l.hq)(r,i,{mark:w,prepend:"queue",attachTo:g,priority:-999});a[E]=h,a.setAttribute(b,n)}}))};lt={},(0,r.Z)(lt,at,(function(e,t,n){var r=(0,o.Z)(e,6),i=r[0],a=r[1],s=r[2],l=r[3],c=r[4],u=r[5],f=(n||{}).plain;if(c)return null;var d=i,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return d=U(i,a,s,p,f),l&&Object.keys(l).forEach((function(e){if(!t[e]){t[e]=!0;var n=U(et(l[e]),a,"_effect-".concat(e),p,f);e.startsWith("@layer")?d=n+d:d+=n}})),[u,s,d]})),(0,r.Z)(lt,oe,(function(e,t,n){var r=(0,o.Z)(e,5),i=r[2],a=r[3],s=r[4],l=(n||{}).plain;if(!a)return null;var c=i._tokenKey;return[-999,c,U(a,s,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]})),(0,r.Z)(lt,ct,(function(e,t,n){var r=(0,o.Z)(e,4),i=r[1],a=r[2],s=r[3],l=(n||{}).plain;if(!i)return null;return[-999,a,U(i,s,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]}));var ft=function(){function e(t,n){(0,h.Z)(this,e),(0,r.Z)(this,"name",void 0),(0,r.Z)(this,"style",void 0),(0,r.Z)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,g.Z)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}(),dt=ft;function pt(e){return e.notSplit=!0,e}pt(["borderTop","borderBottom"]),pt(["borderTop"]),pt(["borderBottom"]),pt(["borderLeft","borderRight"]),pt(["borderLeft"]),pt(["borderRight"])},21226:function(e,t){"use strict";t.Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9L391 240.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 000 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 00391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 00-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z"}}]},name:"fullscreen-exit",theme:"outlined"}},97561:function(e,t){"use strict";t.Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M290 236.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0013.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 000 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 00-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z"}}]},name:"fullscreen",theme:"outlined"}},16892:function(e,t){"use strict";t.Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"}},89291:function(e,t){"use strict";t.Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"}},64423:function(e,t,n){"use strict";n.d(t,{Z:function(){return z}});var r=n(17082),o=n(42601),i=n(20173),a=n(51190),s=n(44194),l=n(51865),c=n.n(l),u=(0,s.createContext)({}),f=n(6918),d=n(20117),p=n(76981),h=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function g(e){var t=e.r,n=e.g,r=e.b,o=(0,d.py)(t,n,r);return{h:360*o.h,s:o.s,v:o.v}}function m(e){var t=e.r,n=e.g,r=e.b;return"#".concat((0,d.vq)(t,n,r,!1))}function v(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}function y(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function b(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function w(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function E(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,p.uA)(e),o=5;o>0;o-=1){var i=g(r),a=m((0,p.uA)({h:y(i,o,!0),s:b(i,o,!0),v:w(i,o,!0)}));n.push(a)}n.push(m(r));for(var s=1;s<=4;s+=1){var l=g(r),c=m((0,p.uA)({h:y(l,s),s:b(l,s),v:w(l,s)}));n.push(c)}return"dark"===t.theme?h.map((function(e){var r=e.index,o=e.opacity;return m(v((0,p.uA)(t.backgroundColor||"#141414"),(0,p.uA)(n[r]),100*o))})):n}var S={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},_={},x={};Object.keys(S).forEach((function(e){_[e]=E(S[e]),_[e].primary=_[e][5],x[e]=E(S[e],{theme:"dark",backgroundColor:"#141414"}),x[e].primary=x[e][5]}));_.red,_.volcano,_.gold,_.orange,_.yellow,_.lime,_.green,_.cyan,_.blue,_.geekblue,_.purple,_.magenta,_.grey;var k=n(28740),C=n(96345),T=n(89309),O=n.n(T);function A(e){return"object"===(0,f.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,f.Z)(e.icon)||"function"==typeof e.icon)}function P(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];if("class"===n)t.className=r,delete t.class;else delete t[n],t[O()(n)]=r;return t}),{})}function I(e,t,n){return n?s.createElement(e.tag,(0,r.Z)((0,r.Z)({key:t},P(e.attrs)),n),(e.children||[]).map((function(n,r){return I(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):s.createElement(e.tag,(0,r.Z)({key:t},P(e.attrs)),(e.children||[]).map((function(n,r){return I(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function R(e){return E(e)[0]}function M(e){return e?Array.isArray(e)?e:[e]:[]}var j="\n.anticon {\n display: inline-flex;\n alignItems: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",L=["icon","className","onClick","style","primaryColor","secondaryColor"],N={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var D=function(e){var t,n,o=e.icon,i=e.className,l=e.onClick,c=e.style,f=e.primaryColor,d=e.secondaryColor,p=(0,a.Z)(e,L),h=N;if(f&&(h={primaryColor:f,secondaryColor:d||R(f)}),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j,t=(0,s.useContext)(u).csp;(0,s.useEffect)((function(){(0,C.hq)(e,"@ant-design-icons",{prepend:!0,csp:t})}),[])}(),t=A(o),n="icon should be icon definiton, but got ".concat(o),(0,k.ZP)(t,"[@ant-design/icons] ".concat(n)),!A(o))return null;var g=o;return g&&"function"==typeof g.icon&&(g=(0,r.Z)((0,r.Z)({},g),{},{icon:g.icon(h.primaryColor,h.secondaryColor)})),I(g.icon,"svg-".concat(g.name),(0,r.Z)({className:i,onClick:l,style:c,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},p))};D.displayName="IconReact",D.getTwoToneColors=function(){return(0,r.Z)({},N)},D.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;N.primaryColor=t,N.secondaryColor=n||R(t),N.calculated=!!n};var F=D;function B(e){var t=M(e),n=(0,o.Z)(t,2),r=n[0],i=n[1];return F.setTwoToneColors({primaryColor:r,secondaryColor:i})}var $=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];B("#1890ff");var Z=s.forwardRef((function(e,t){var n=e.className,l=e.icon,f=e.spin,d=e.rotate,p=e.tabIndex,h=e.onClick,g=e.twoToneColor,m=(0,a.Z)(e,$),v=s.useContext(u),y=v.prefixCls,b=void 0===y?"anticon":y,w=v.rootClassName,E=c()(w,b,(0,i.Z)((0,i.Z)({},"".concat(b,"-").concat(l.name),!!l.name),"".concat(b,"-spin"),!!f||"loading"===l.name),n),S=p;void 0===S&&h&&(S=-1);var _=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,x=M(g),k=(0,o.Z)(x,2),C=k[0],T=k[1];return s.createElement("span",(0,r.Z)((0,r.Z)({role:"img","aria-label":l.name},m),{},{ref:t,tabIndex:S,onClick:h,className:E}),s.createElement(F,{icon:l,primaryColor:C,secondaryColor:T,style:_}))}));Z.displayName="AntdIcon",Z.getTwoToneColor=function(){var e=F.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Z.setTwoToneColor=B;var z=Z},55561:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(17082),o=n(44194),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"},a=n(64423),s=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};var l=o.forwardRef(s)},31816:function(e,t,n){"use strict";var r=n(17082),o=n(44194),i=n(16892),a=n(64423),s=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i.Z}))},l=o.forwardRef(s);t.Z=l},16655:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(17082),o=n(44194),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M764 280.9c-14-30.6-33.9-58.1-59.3-81.6C653.1 151.4 584.6 125 512 125s-141.1 26.4-192.7 74.2c-25.4 23.6-45.3 51-59.3 81.7-14.6 32-22 65.9-22 100.9v27c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-27c0-99.5 88.6-180.4 197.6-180.4s197.6 80.9 197.6 180.4c0 40.8-14.5 79.2-42 111.2-27.2 31.7-65.6 54.4-108.1 64-24.3 5.5-46.2 19.2-61.7 38.8a110.85 110.85 0 00-23.9 68.6v31.4c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-31.4c0-15.7 10.9-29.5 26-32.9 58.4-13.2 111.4-44.7 149.3-88.7 19.1-22.3 34-47.1 44.3-74 10.7-27.9 16.1-57.2 16.1-87 0-35-7.4-69-22-100.9zM512 787c-30.9 0-56 25.1-56 56s25.1 56 56 56 56-25.1 56-56-25.1-56-56-56z"}}]},name:"question",theme:"outlined"},a=n(64423),s=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};var l=o.forwardRef(s)},69560:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(17082),o=n(44194),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"robot",theme:"outlined"},a=n(64423),s=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};var l=o.forwardRef(s)},97460:function(e,t,n){"use strict";var r=n(17082),o=n(44194),i=n(89291),a=n(64423),s=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i.Z}))},l=o.forwardRef(s);t.Z=l},97146:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(17082),o=n(44194),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},a=n(64423),s=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};var l=o.forwardRef(s)},63837:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(11757),o=n(42601),i=n(20173),a=n(51190),s=n(44194),l=n(51865),c=n.n(l),u=n(38774),f=n(22655),d=n(17082),p=n(52518),h=["icon","className","onClick","style","primaryColor","secondaryColor"],g={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var m=function(e){var t=e.icon,n=e.className,r=e.onClick,o=e.style,i=e.primaryColor,l=e.secondaryColor,c=(0,a.Z)(e,h),u=s.useRef(),f=g;if(i&&(f={primaryColor:i,secondaryColor:l||(0,p.pw)(i)}),(0,p.C3)(u),(0,p.Kp)((0,p.r)(t),"icon should be icon definiton, but got ".concat(t)),!(0,p.r)(t))return null;var m=t;return m&&"function"==typeof m.icon&&(m=(0,d.Z)((0,d.Z)({},m),{},{icon:m.icon(f.primaryColor,f.secondaryColor)})),(0,p.R_)(m.icon,"svg-".concat(m.name),(0,d.Z)((0,d.Z)({className:n,onClick:r,style:o,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};m.displayName="IconReact",m.getTwoToneColors=function(){return(0,d.Z)({},g)},m.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;g.primaryColor=t,g.secondaryColor=n||(0,p.pw)(t),g.calculated=!!n};var v=m;function y(e){var t=(0,p.H9)(e),n=(0,o.Z)(t,2),r=n[0],i=n[1];return v.setTwoToneColors({primaryColor:r,secondaryColor:i})}var b=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];y(u.iN.primary);var w=s.forwardRef((function(e,t){var n=e.className,l=e.icon,u=e.spin,d=e.rotate,h=e.tabIndex,g=e.onClick,m=e.twoToneColor,y=(0,a.Z)(e,b),w=s.useContext(f.Z),E=w.prefixCls,S=void 0===E?"anticon":E,_=w.rootClassName,x=c()(_,S,(0,i.Z)((0,i.Z)({},"".concat(S,"-").concat(l.name),!!l.name),"".concat(S,"-spin"),!!u||"loading"===l.name),n),k=h;void 0===k&&g&&(k=-1);var C=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,T=(0,p.H9)(m),O=(0,o.Z)(T,2),A=O[0],P=O[1];return s.createElement("span",(0,r.Z)({role:"img","aria-label":l.name},y,{ref:t,tabIndex:k,onClick:g,className:x}),s.createElement(v,{icon:l,primaryColor:A,secondaryColor:P,style:C}))}));w.displayName="AntdIcon",w.getTwoToneColor=function(){var e=v.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},w.setTwoToneColor=y;var E=w},22655:function(e,t,n){"use strict";var r=(0,n(44194).createContext)({});t.Z=r},34229:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(11757),o=n(44194),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},a=n(63837),s=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var l=o.forwardRef(s)},85793:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(11757),o=n(44194),i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},a=n(63837),s=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var l=o.forwardRef(s)},25175:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(11757),o=n(44194),i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},a=n(63837),s=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var l=o.forwardRef(s)},60924:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(11757),o=n(44194),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},a=n(63837),s=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var l=o.forwardRef(s)},81180:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(11757),o=n(44194),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},a=n(63837),s=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var l=o.forwardRef(s)},14876:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(11757),o=n(44194),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},a=n(63837),s=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var l=o.forwardRef(s)},39063:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(11757),o=n(44194),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},a=n(63837),s=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var l=o.forwardRef(s)},47155:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(11757),o=n(44194),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},a=n(63837),s=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var l=o.forwardRef(s)},20625:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(11757),o=n(44194),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},a=n(63837),s=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var l=o.forwardRef(s)},52518:function(e,t,n){"use strict";n.d(t,{C3:function(){return b},H9:function(){return v},Kp:function(){return d},R_:function(){return g},pw:function(){return m},r:function(){return p},vD:function(){return y}});var r=n(17082),o=n(6918),i=n(38774),a=n(96345),s=n(5940),l=n(28740),c=n(44194),u=n(22655);function f(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function d(e,t){(0,l.ZP)(e,"[@ant-design/icons] ".concat(t))}function p(e){return"object"===(0,o.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,o.Z)(e.icon)||"function"==typeof e.icon)}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];if("class"===n)t.className=r,delete t.class;else delete t[n],t[f(n)]=r;return t}),{})}function g(e,t,n){return n?c.createElement(e.tag,(0,r.Z)((0,r.Z)({key:t},h(e.attrs)),n),(e.children||[]).map((function(n,r){return g(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):c.createElement(e.tag,(0,r.Z)({key:t},h(e.attrs)),(e.children||[]).map((function(n,r){return g(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function m(e){return(0,i.R_)(e)[0]}function v(e){return e?Array.isArray(e)?e:[e]:[]}var y={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},b=function(e){var t=(0,c.useContext)(u.Z),n=t.csp,r=t.prefixCls,o="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";r&&(o=o.replace(/anticon/g,r)),(0,c.useEffect)((function(){var t=e.current,r=(0,s.A)(t);(0,a.hq)(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:r})}),[])}},9301:function(e,t,n){"use strict";n.d(t,{q:function(){return w}});var r=n(17082),o=n(11757),i=n(44194),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm5.6-532.7c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z"}}]},name:"copyright",theme:"outlined"},s=n(63837),l=function(e,t){return i.createElement(s.Z,(0,o.Z)({},e,{ref:t,icon:a}))};var c=i.forwardRef(l),u=n(64476),f=n(40881),d=n(51865),p=n.n(d),h=n(20173),g=n(75625),m=function(e){return(0,h.Z)({},e.componentCls,{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-list":{marginBlockEnd:8,color:e.colorTextSecondary,"&-link":{color:e.colorTextSecondary,textDecoration:e.linkDecoration},"*:not(:last-child)":{marginInlineEnd:8},"&:hover":{color:e.colorPrimary}},"&-copyright":{fontSize:"14px",color:e.colorText}})};var v=n(31549),y=function(e){var t=e.className,n=e.prefixCls,o=e.links,a=e.copyright,s=e.style,l=(0,i.useContext)(f.ZP.ConfigContext).getPrefixCls(n||"pro-global-footer"),c=function(e){return(0,g.Xj)("ProLayoutFooter",(function(t){var n=(0,r.Z)((0,r.Z)({},t),{},{componentCls:".".concat(e)});return[m(n)]}))}(l),u=c.wrapSSR,d=c.hashId;return!(null==o||!1===o||Array.isArray(o)&&0===o.length)||null!=a&&!1!==a?u((0,v.jsxs)("div",{className:p()(l,d,t),style:s,children:[o&&(0,v.jsx)("div",{className:"".concat(l,"-list ").concat(d).trim(),children:o.map((function(e){return(0,v.jsx)("a",{className:"".concat(l,"-list-link ").concat(d).trim(),title:e.key,target:e.blankTarget?"_blank":"_self",href:e.href,rel:"noreferrer",children:e.title},e.key)}))}),a&&(0,v.jsx)("div",{className:"".concat(l,"-copyright ").concat(d).trim(),children:a})]})):null},b=u.Z.Footer,w=function(e){var t=e.links,n=e.copyright,o=e.style,a=e.className,s=e.prefixCls;return(0,v.jsx)(b,{className:a,style:(0,r.Z)({padding:0},o),children:(0,v.jsx)(y,{links:t,prefixCls:s,copyright:!1===n?null:(0,v.jsxs)(i.Fragment,{children:[(0,v.jsx)(c,{})," ",n]})})})}},90774:function(e,t,n){"use strict";n.d(t,{_Y:function(){return O},L_:function(){return P},ZP:function(){return I},nu:function(){return x},YB:function(){return A}});var r=n(56299),o=n(42601),i=n(51190),a=n(17082),s=n(29664),l=n(40881),c=n(56953),u=n(44194),f=n(57241),d=n(41359),p=n(28977),h=n.n(p),g=n(75625),m=n(93535),v=n(6918),y=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:1,r=3735928559^n,o=1103547991^n,i=0;i>>16,2246822507)^Math.imul(o^o>>>13,3266489909),4294967296*(2097151&(o=Math.imul(o^o>>>16,2246822507)^Math.imul(r^r>>>13,3266489909)))+(r>>>0)},c=(0,i.jG)((function(e){return e})),u={theme:c,token:(0,o.Z)((0,o.Z)({},s),null===a.Z||void 0===a.Z||null===(r=a.Z.defaultAlgorithm)||void 0===r?void 0:r.call(a.Z,null===a.Z||void 0===a.Z?void 0:a.Z.defaultSeed)),hashId:"pro-".concat(l(JSON.stringify(s)))},f=function(){return u}},34757:function(e,t,n){"use strict";n.d(t,{l:function(){return i}});var r=n(7169),o=n(48974),i=function(e){var t=o.Z.useToken();return(0,r.iv)(e(t))}},20117:function(e,t,n){"use strict";n.d(t,{T6:function(){return p},VD:function(){return h},WE:function(){return c},Yt:function(){return g},lC:function(){return i},py:function(){return l},rW:function(){return o},s:function(){return f},ve:function(){return s},vq:function(){return u}});var r=n(33146);function o(e,t,n){return{r:255*(0,r.sh)(e,255),g:255*(0,r.sh)(t,255),b:255*(0,r.sh)(n,255)}}function i(e,t,n){e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,s=0,l=(o+i)/2;if(o===i)s=0,a=0;else{var c=o-i;switch(s=l>.5?c/(2-o-i):c/(o+i),o){case e:a=(t-n)/c+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function s(e,t,n){var o,i,s;if(e=(0,r.sh)(e,360),t=(0,r.sh)(t,100),n=(0,r.sh)(n,100),0===t)i=n,s=n,o=n;else{var l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;o=a(c,l,e+1/3),i=a(c,l,e),s=a(c,l,e-1/3)}return{r:255*o,g:255*i,b:255*s}}function l(e,t,n){e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,s=o,l=o-i,c=0===o?0:l/o;if(o===i)a=0;else{switch(o){case e:a=(t-n)/l+(t>16,g:(65280&e)>>8,b:255&e}}},53099:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},76981:function(e,t,n){"use strict";n.d(t,{uA:function(){return a}});var r=n(20117),o=n(53099),i=n(33146);function a(e){var t={r:0,g:0,b:0},n=1,a=null,s=null,l=null,c=!1,d=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(o.R[e])e=o.R[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=u.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=u.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=u.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=u.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=u.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=u.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=u.hex8.exec(e),n)return{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),a:(0,r.T6)(n[4]),format:t?"name":"hex8"};if(n=u.hex6.exec(e),n)return{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),format:t?"name":"hex"};if(n=u.hex4.exec(e),n)return{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),a:(0,r.T6)(n[4]+n[4]),format:t?"name":"hex8"};if(n=u.hex3.exec(e),n)return{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(f(e.r)&&f(e.g)&&f(e.b)?(t=(0,r.rW)(e.r,e.g,e.b),c=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):f(e.h)&&f(e.s)&&f(e.v)?(a=(0,i.JX)(e.s),s=(0,i.JX)(e.v),t=(0,r.WE)(e.h,a,s),c=!0,d="hsv"):f(e.h)&&f(e.s)&&f(e.l)&&(a=(0,i.JX)(e.s),l=(0,i.JX)(e.l),t=(0,r.ve)(e.h,a,l),c=!0,d="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,i.Yq)(n),{ok:c,format:e.format||d,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var s="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),l="[\\s|\\(]+(".concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")\\s*\\)?"),c="[\\s|\\(]+(".concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")\\s*\\)?"),u={CSS_UNIT:new RegExp(s),rgb:new RegExp("rgb"+l),rgba:new RegExp("rgba"+c),hsl:new RegExp("hsl"+l),hsla:new RegExp("hsla"+c),hsv:new RegExp("hsv"+l),hsva:new RegExp("hsva"+c),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function f(e){return Boolean(u.CSS_UNIT.exec(String(e)))}},66671:function(e,t,n){"use strict";n.d(t,{C:function(){return s}});var r=n(20117),o=n(53099),i=n(76981),a=n(33146),s=function(){function e(t,n){var o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=(0,r.Yt)(t)),this.originalInput=t;var a=(0,i.uA)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,a.Yq)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,r.py)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,r.py)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,r.lC)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,r.lC)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,r.vq)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,r.s)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,a.sh)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,a.sh)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,r.vq)(this.r,this.g,this.b,!1),t=0,n=Object.entries(o.R);t=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=(0,a.V2)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=(0,a.V2)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=(0,a.V2)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=(0,a.V2)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function s(e){return 1===e.length?"0"+e:String(e)}n.d(t,{FZ:function(){return s},JX:function(){return a},V2:function(){return o},Yq:function(){return i},sh:function(){return r}})},32565:function(e,t,n){"use strict";n.d(t,{Z:function(){return oe}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?u(w,--y):0,m--,10===b&&(m=1,g--),b}function x(){return b=y2||O(b)>3?"":" "}function M(e,t){for(;--t&&x()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return T(e,C()+(t<6&&32==k()&&32==x()))}function j(e){for(;x();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&j(b);break;case 40:41===e&&j(e);break;case 92:x()}return y}function L(e,t){for(;x()&&e+b!==57&&(e+b!==84||47!==k()););return"/*"+T(t,y-1)+"*"+i(47===e?e:x())}function N(e){for(;!O(k());)x();return T(e,y)}var D="-ms-",F="-moz-",B="-webkit-",$="comm",Z="rule",z="decl",U="@keyframes";function H(e,t){for(var n="",r=p(e),o=0;o0&&d(F)-v&&h(b>32?Y(F+";",r,n,v-1):Y(l(F," ","")+";",r,n,v-2),p);break;case 59:F+=";";default:if(h(D=G(F,t,n,g,m,o,f,A,P=[],j=[],v),a),123===O)if(0===m)q(F,t,D,D,P,a,v,f,j);else switch(99===y&&110===u(F,3)?100:y){case 100:case 108:case 109:case 115:q(e,D,D,r&&h(G(e,D,D,0,0,o,f,A,o,P=[],v),j),o,j,v,f,r?P:j);break;default:q(F,D,D,D,[""],j,0,f,j)}}g=m=b=0,E=T=1,A=F="",v=s;break;case 58:v=1+d(F),b=w;default:if(E<1)if(123==O)--E;else if(125==O&&0==E++&&125==_())continue;switch(F+=i(O),O*E){case 38:T=m>0?1:(F+="\f",-1);break;case 44:f[g++]=(d(F)-1)*T,T=1;break;case 64:45===k()&&(F+=I(x())),y=k(),m=v=d(A=F+=N(C())),O++;break;case 45:45===w&&2==d(F)&&(E=0)}}return a}function G(e,t,n,r,i,a,c,u,d,h,g){for(var m=i-1,v=0===i?a:[""],y=p(v),b=0,w=0,S=0;b0?v[_]+" "+x:l(x,/&\f/g,v[_])))&&(d[S++]=k);return E(e,t,n,0===i?Z:u,d,h,g)}function K(e,t,n){return E(e,t,n,$,i(b),f(e,2,-2),0)}function Y(e,t,n,r){return E(e,t,n,z,f(e,0,r),f(e,r+1,-1),r)}var X=function(e,t,n){for(var r=0,o=0;r=o,o=k(),38===r&&12===o&&(t[n]=1),!O(o);)x();return T(e,y)},Q=function(e,t){return P(function(e,t){var n=-1,r=44;do{switch(O(r)){case 0:38===r&&12===k()&&(t[n]=1),e[n]+=X(y-1,t,n);break;case 2:e[n]+=I(r);break;case 4:if(44===r){e[++n]=58===k()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=x());return e}(A(e),t))},J=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||J.get(n))&&!r){J.set(e,!0);for(var o=[],i=Q(t,o),a=n.props,s=0,l=0;s6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+F+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,d(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+B)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(45===u(e,14)?"inline-":"")+"box$3$1"+B+"$2$3$1"+D+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return B+e+D+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+D+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+D+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+D+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case z:e.return=ne(e.value,e.length);break;case U:return H([S(e,{value:l(e.value,"@","@"+B)})],r);case Z:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return H([S(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return H([S(e,{props:[l(t,/:(plac\w+)/,":"+B+"input-$1")]}),S(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),S(e,{props:[l(t,/:(plac\w+)/,D+"input-$1")]})],r)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,i,a=e.stylisPlugins||re,s={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:d}}},63812:function(e,t,n){"use strict";n.d(t,{My:function(){return i},fp:function(){return r},hC:function(){return o}});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var o=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i=function(e,t,n){o(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}},27548:function(e,t,n){"use strict";n.d(t,{Il:function(){return S},G5:function(){return A},ZP:function(){return Z}});var r=n(11757),o=n(20173),i=n(42601),a=n(44194),s=n(17082),l=n(74592),c=n(32099),u=n(14755),f=n(3518),d=n(51190),p=n(6918);const h=Math.round;function g(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map((e=>parseFloat(e)));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const m=(e,t,n)=>0===n?e:e/100;function v(e,t){const n=t||255;return e>n?n:e<0?0:e}class y{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if((0,o.Z)(this,"isValid",!0),(0,o.Z)(this,"r",0),(0,o.Z)(this,"g",0),(0,o.Z)(this,"b",0),(0,o.Z)(this,"a",1),(0,o.Z)(this,"_h",void 0),(0,o.Z)(this,"_s",void 0),(0,o.Z)(this,"_l",void 0),(0,o.Z)(this,"_v",void 0),(0,o.Z)(this,"_max",void 0),(0,o.Z)(this,"_min",void 0),(0,o.Z)(this,"_brightness",void 0),e)if("string"==typeof e){const n=e.trim();function r(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):r("rgb")?this.fromRgbString(n):r("hsl")?this.fromHslString(n):(r("hsv")||r("hsb"))&&this.fromHsvString(n)}else if(e instanceof y)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=v(e.r),this.g=v(e.g),this.b=v(e.b),this.a="number"==typeof e.a?v(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:h(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:h(o("r")),g:h(o("g")),b:h(o("b")),a:h(100*o("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>h((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=h(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=h(100*this.getSaturation()),n=h(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=v(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=h(255*n);this.r=e,this.g=e,this.b=e}let o=0,i=0,a=0;const s=e/60,l=(1-Math.abs(2*n-1))*t,c=l*(1-Math.abs(s%2-1));s>=0&&s<1?(o=l,i=c):s>=1&&s<2?(o=c,i=l):s>=2&&s<3?(i=l,a=c):s>=3&&s<4?(i=c,a=l):s>=4&&s<5?(o=c,a=l):s>=5&&s<6&&(o=l,a=c);const u=n-l/2;this.r=h(255*(o+u)),this.g=h(255*(i+u)),this.b=h(255*(a+u))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const o=h(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;const i=e/60,a=Math.floor(i),s=i-a,l=h(n*(1-t)*255),c=h(n*(1-t*s)*255),u=h(n*(1-t*(1-s))*255);switch(a){case 0:this.g=u,this.b=l;break;case 1:this.r=c,this.b=l;break;case 2:this.r=l,this.b=u;break;case 3:this.r=l,this.g=c;break;case 4:this.r=u,this.g=l;break;default:this.g=l,this.b=c}}fromHsvString(e){const t=g(e,m);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=g(e,m);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=g(e,((e,t)=>t.includes("%")?h(e/100*255):e));this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var b=["b"],w=["v"],E=function(e){return Math.round(Number(e||0))},S=function(e){(0,u.Z)(n,e);var t=(0,f.Z)(n);function n(e){return(0,l.Z)(this,n),t.call(this,function(e){if(e instanceof y)return e;if(e&&"object"===(0,p.Z)(e)&&"h"in e&&"b"in e){var t=e,n=t.b,r=(0,d.Z)(t,b);return(0,s.Z)((0,s.Z)({},r),{},{v:n})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return(0,c.Z)(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=E(100*e.s),n=E(100*e.b),r=E(e.h),o=e.a,i="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(o.toFixed(0===o?0:2),")");return 1===o?i:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v,n=(0,d.Z)(e,w);return(0,s.Z)((0,s.Z)({},n),{},{b:t,a:this.a})}}]),n}(y),_=function(e){return e instanceof S?e:new S(e)},x=_("#1677ff"),k=function(e){var t=e.offset,n=e.targetRef,r=e.containerRef,o=e.color,i=e.type,a=r.current.getBoundingClientRect(),l=a.width,c=a.height,u=n.current.getBoundingClientRect(),f=u.width/2,d=u.height/2,p=(t.x+f)/l,h=1-(t.y+d)/c,g=o.toHsb(),m=p,v=(t.x+f)/l*360;if(i)switch(i){case"hue":return _((0,s.Z)((0,s.Z)({},g),{},{h:v<=0?0:v}));case"alpha":return _((0,s.Z)((0,s.Z)({},g),{},{a:m<=0?0:m}))}return _({h:g.h,s:p<=0?0:p,b:h>=1?1:h,a:g.a})},C=function(e,t){var n=e.toHsb();switch(t){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:100*e.a,y:50};default:return{x:100*n.s,y:100*(1-n.b)}}},T=n(51865),O=n.n(T),A=function(e){var t=e.color,n=e.prefixCls,r=e.className,o=e.style,i=e.onClick,s="".concat(n,"-color-block");return a.createElement("div",{className:O()(s,r),style:o,onClick:i},a.createElement("div",{className:"".concat(s,"-inner"),style:{background:t}}))};var P=function(e){var t=e.targetRef,n=e.containerRef,r=e.direction,o=e.onDragChange,s=e.onDragChangeComplete,l=e.calculate,c=e.color,u=e.disabledDrag,f=(0,a.useState)({x:0,y:0}),d=(0,i.Z)(f,2),p=d[0],h=d[1],g=(0,a.useRef)(null),m=(0,a.useRef)(null);(0,a.useEffect)((function(){h(l())}),[c]),(0,a.useEffect)((function(){return function(){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",m.current),g.current=null,m.current=null}}),[]);var v=function(e){var i=function(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}(e),a=i.pageX,s=i.pageY,l=n.current.getBoundingClientRect(),c=l.x,u=l.y,f=l.width,d=l.height,h=t.current.getBoundingClientRect(),g=h.width,m=h.height,v=g/2,y=m/2,b=Math.max(0,Math.min(a-c,f))-v,w=Math.max(0,Math.min(s-u,d))-y,E={x:b,y:"x"===r?p.y:w};if(0===g&&0===m||g!==m)return!1;null==o||o(E)},y=function(e){e.preventDefault(),v(e)},b=function(e){e.preventDefault(),document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",m.current),g.current=null,m.current=null,null==s||s()};return[p,function(e){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",m.current),u||(v(e),document.addEventListener("mousemove",y),document.addEventListener("mouseup",b),document.addEventListener("touchmove",y),document.addEventListener("touchend",b),g.current=y,m.current=b)}]},I=n(69580),R=function(e){var t=e.size,n=void 0===t?"default":t,r=e.color,i=e.prefixCls;return a.createElement("div",{className:O()("".concat(i,"-handler"),(0,o.Z)({},"".concat(i,"-handler-sm"),"small"===n)),style:{backgroundColor:r}})},M=function(e){var t=e.children,n=e.style,r=e.prefixCls;return a.createElement("div",{className:"".concat(r,"-palette"),style:(0,s.Z)({position:"relative"},n)},t)},j=(0,a.forwardRef)((function(e,t){var n=e.children,r=e.x,o=e.y;return a.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(o,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)})),L=function(e){var t=e.color,n=e.onChange,r=e.prefixCls,o=e.onChangeComplete,s=e.disabled,l=(0,a.useRef)(),c=(0,a.useRef)(),u=(0,a.useRef)(t),f=(0,I.zX)((function(e){var r=k({offset:e,targetRef:c,containerRef:l,color:t});u.current=r,n(r)})),d=P({color:t,containerRef:l,targetRef:c,calculate:function(){return C(t)},onDragChange:f,onDragChangeComplete:function(){return null==o?void 0:o(u.current)},disabledDrag:s}),p=(0,i.Z)(d,2),h=p[0],g=p[1];return a.createElement("div",{ref:l,className:"".concat(r,"-select"),onMouseDown:g,onTouchStart:g},a.createElement(M,{prefixCls:r},a.createElement(j,{x:h.x,y:h.y,ref:c},a.createElement(R,{color:t.toRgbString(),prefixCls:r})),a.createElement("div",{className:"".concat(r,"-saturation"),style:{backgroundColor:"hsl(".concat(t.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},N=function(e,t){var n=(0,I.C8)(e,{value:t}),r=(0,i.Z)(n,2),o=r[0],s=r[1];return[(0,a.useMemo)((function(){return _(o)}),[o]),s]},D=function(e){var t=e.colors,n=e.children,r=e.direction,o=void 0===r?"to right":r,i=e.type,s=e.prefixCls,l=(0,a.useMemo)((function(){return t.map((function(e,n){var r=_(e);return"alpha"===i&&n===t.length-1&&(r=new S(r.setA(1))),r.toRgbString()})).join(",")}),[t,i]);return a.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(o,", ").concat(l,")")}},n)},F=function(e){var t=e.prefixCls,n=e.colors,r=e.disabled,o=e.onChange,s=e.onChangeComplete,l=e.color,c=e.type,u=(0,a.useRef)(),f=(0,a.useRef)(),d=(0,a.useRef)(l),p=function(e){return"hue"===c?e.getHue():100*e.a},h=(0,I.zX)((function(e){var t=k({offset:e,targetRef:f,containerRef:u,color:l,type:c});d.current=t,o(p(t))})),g=P({color:l,targetRef:f,containerRef:u,calculate:function(){return C(l,c)},onDragChange:h,onDragChangeComplete:function(){s(p(d.current))},direction:"x",disabledDrag:r}),m=(0,i.Z)(g,2),v=m[0],y=m[1],b=a.useMemo((function(){if("hue"===c){var e=l.toHsb();return e.s=1,e.b=1,e.a=1,new S(e)}return l}),[l,c]),w=a.useMemo((function(){return n.map((function(e){return"".concat(e.color," ").concat(e.percent,"%")}))}),[n]);return a.createElement("div",{ref:u,className:O()("".concat(t,"-slider"),"".concat(t,"-slider-").concat(c)),onMouseDown:y,onTouchStart:y},a.createElement(M,{prefixCls:t},a.createElement(j,{x:v.x,y:v.y,ref:f},a.createElement(R,{size:"small",color:b.toHexString(),prefixCls:t})),a.createElement(D,{colors:w,type:c,prefixCls:t})))};var B=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],$=(0,a.forwardRef)((function(e,t){var n=e.value,s=e.defaultValue,l=e.prefixCls,c=void 0===l?"rc-color-picker":l,u=e.onChange,f=e.onChangeComplete,d=e.className,p=e.style,h=e.panelRender,g=e.disabledAlpha,m=void 0!==g&&g,v=e.disabled,y=void 0!==v&&v,b=function(e){return a.useMemo((function(){return[(e||{}).slider||F]}),[e])}(e.components),w=(0,i.Z)(b,1)[0],E=N(s||x,n),_=(0,i.Z)(E,2),k=_[0],C=_[1],T=(0,a.useMemo)((function(){return k.setA(1).toRgbString()}),[k]),P=function(e,t){n||C(e),null==u||u(e,t)},I=function(e){return new S(k.setHue(e))},R=function(e){return new S(k.setA(e/100))},M=O()("".concat(c,"-panel"),d,(0,o.Z)({},"".concat(c,"-panel-disabled"),y)),j={prefixCls:c,disabled:y,color:k},D=a.createElement(a.Fragment,null,a.createElement(L,(0,r.Z)({onChange:P},j,{onChangeComplete:f})),a.createElement("div",{className:"".concat(c,"-slider-container")},a.createElement("div",{className:O()("".concat(c,"-slider-group"),(0,o.Z)({},"".concat(c,"-slider-group-disabled-alpha"),m))},a.createElement(w,(0,r.Z)({},j,{type:"hue",colors:B,min:0,max:359,value:k.getHue(),onChange:function(e){P(I(e),{type:"hue",value:e})},onChangeComplete:function(e){f&&f(I(e))}})),!m&&a.createElement(w,(0,r.Z)({},j,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:T}],min:0,max:100,value:100*k.a,onChange:function(e){P(R(e),{type:"alpha",value:e})},onChangeComplete:function(e){f&&f(R(e))}}))),a.createElement(A,{color:k.toRgbString(),prefixCls:c})));return a.createElement("div",{className:M,style:p,ref:t},"function"==typeof h?h(D):D)}));var Z=$},6193:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(42601),o=n(44194),i=n(56321),a=n(33229),s=(n(28740),n(38726)),l=o.createContext(null),c=n(56299),u=n(16713),f=[];var d=n(96345),p=n(10419);var h="rc-util-locker-".concat(Date.now()),g=0;function m(e){var t=!!e,n=o.useState((function(){return g+=1,"".concat(h,"_").concat(g)})),i=(0,r.Z)(n,1)[0];(0,u.Z)((function(){if(t){var e=(0,p.o)(document.body).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,d.hq)("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),i)}else(0,d.jL)(i);return function(){(0,d.jL)(i)}}),[t,i])}var v=!1;var y=function(e){return!1!==e&&((0,a.Z)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)};var b=o.forwardRef((function(e,t){var n=e.open,d=e.autoLock,p=e.getContainer,h=(e.debug,e.autoDestroy),g=void 0===h||h,b=e.children,w=o.useState(n),E=(0,r.Z)(w,2),S=E[0],_=E[1],x=S||n;o.useEffect((function(){(g||n)&&_(n)}),[n,g]);var k=o.useState((function(){return y(p)})),C=(0,r.Z)(k,2),T=C[0],O=C[1];o.useEffect((function(){var e=y(p);O(null!=e?e:null)}));var A=function(e,t){var n=o.useState((function(){return(0,a.Z)()?document.createElement("div"):null})),i=(0,r.Z)(n,1)[0],s=o.useRef(!1),d=o.useContext(l),p=o.useState(f),h=(0,r.Z)(p,2),g=h[0],m=h[1],v=d||(s.current?void 0:function(e){m((function(t){return[e].concat((0,c.Z)(t))}))});function y(){i.parentElement||document.body.appendChild(i),s.current=!0}function b(){var e;null===(e=i.parentElement)||void 0===e||e.removeChild(i),s.current=!1}return(0,u.Z)((function(){return e?d?d(y):y():b(),b}),[e]),(0,u.Z)((function(){g.length&&(g.forEach((function(e){return e()})),m(f))}),[g]),[i,v]}(x&&!T),P=(0,r.Z)(A,2),I=P[0],R=P[1],M=null!=T?T:I;m(d&&n&&(0,a.Z)()&&(M===I||M===document.body));var j=null;b&&(0,s.Yr)(b)&&t&&(j=b.ref);var L=(0,s.x1)(j,t);if(!x||!(0,a.Z)()||void 0===T)return null;var N,D=!1===M||("boolean"==typeof N&&(v=N),v),F=b;return t&&(F=o.cloneElement(b,{ref:L})),o.createElement(l.Provider,{value:R},D?F:(0,i.createPortal)(F,M))}))},61555:function(e,t,n){"use strict";n.d(t,{Z:function(){return q}});var r=n(17082),o=n(42601),i=n(51190),a=n(6193),s=n(51865),l=n.n(s),c=n(12320),u=n(40660),f=n(5940),d=n(81446),p=n(21096),h=n(16713),g=n(88487),m=n(44194),v=n(11757),y=n(85628),b=n(38726);function w(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,s=i.content,c=o.x,u=void 0===c?0:c,f=o.y,d=void 0===f?0:f,p=m.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(!1!==n.autoArrow){var g=n.points[0],v=n.points[1],y=g[0],b=g[1],w=v[0],E=v[1];y!==w&&["t","b"].includes(y)?"t"===y?h.top=0:h.bottom=0:h.top=d,b!==E&&["l","r"].includes(b)?"l"===b?h.left=0:h.right=0:h.left=u}return m.createElement("div",{ref:p,className:l()("".concat(t,"-arrow"),a),style:h},s)}function E(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?m.createElement(y.ZP,(0,v.Z)({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return m.createElement("div",{style:{zIndex:r},className:l()("".concat(t,"-mask"),n)})})):null}var S=m.memo((function(e){return e.children}),(function(e,t){return t.cache}));var _=m.forwardRef((function(e,t){var n=e.popup,i=e.className,a=e.prefixCls,s=e.style,u=e.target,f=e.onVisibleChanged,d=e.open,p=e.keepDom,g=e.fresh,_=e.onClick,x=e.mask,k=e.arrow,C=e.arrowPos,T=e.align,O=e.motion,A=e.maskMotion,P=e.forceRender,I=e.getPopupContainer,R=e.autoDestroy,M=e.portal,j=e.zIndex,L=e.onMouseEnter,N=e.onMouseLeave,D=e.onPointerEnter,F=e.onPointerDownCapture,B=e.ready,$=e.offsetX,Z=e.offsetY,z=e.offsetR,U=e.offsetB,H=e.onAlign,W=e.onPrepare,V=e.stretch,q=e.targetWidth,G=e.targetHeight,K="function"==typeof n?n():n,Y=d||p,X=(null==I?void 0:I.length)>0,Q=m.useState(!I||!X),J=(0,o.Z)(Q,2),ee=J[0],te=J[1];if((0,h.Z)((function(){!ee&&X&&u&&te(!0)}),[ee,X,u]),!ee)return null;var ne="auto",re={left:"-1000vw",top:"-1000vh",right:ne,bottom:ne};if(B||!d){var oe,ie=T.points,ae=T.dynamicInset||(null===(oe=T._experimental)||void 0===oe?void 0:oe.dynamicInset),se=ae&&"r"===ie[0][1],le=ae&&"b"===ie[0][0];se?(re.right=z,re.left=ne):(re.left=$,re.right=ne),le?(re.bottom=U,re.top=ne):(re.top=Z,re.bottom=ne)}var ce={};return V&&(V.includes("height")&&G?ce.height=G:V.includes("minHeight")&&G&&(ce.minHeight=G),V.includes("width")&&q?ce.width=q:V.includes("minWidth")&&q&&(ce.minWidth=q)),d||(ce.pointerEvents="none"),m.createElement(M,{open:P||Y,getContainer:I&&function(){return I(u)},autoDestroy:R},m.createElement(E,{prefixCls:a,open:d,zIndex:j,mask:x,motion:A}),m.createElement(c.Z,{onResize:H,disabled:!d},(function(e){return m.createElement(y.ZP,(0,v.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:P,leavedClassName:"".concat(a,"-hidden")},O,{onAppearPrepare:W,onEnterPrepare:W,visible:d,onVisibleChanged:function(e){var t;null==O||null===(t=O.onVisibleChanged)||void 0===t||t.call(O,e),f(e)}}),(function(n,o){var c=n.className,u=n.style,f=l()(a,c,i);return m.createElement("div",{ref:(0,b.sQ)(e,t,o),className:f,style:(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({"--arrow-x":"".concat(C.x||0,"px"),"--arrow-y":"".concat(C.y||0,"px")},re),ce),u),{},{boxSizing:"border-box",zIndex:j},s),onMouseEnter:L,onMouseLeave:N,onPointerEnter:D,onClick:_,onPointerDownCapture:F},k&&m.createElement(w,{prefixCls:a,arrow:k,arrowPos:C,align:T}),m.createElement(S,{cache:!d&&!g},K))}))})))}));var x=m.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=(0,b.Yr)(n),i=m.useCallback((function(e){(0,b.mH)(t,r?r(e):e)}),[r]),a=(0,b.x1)(i,n.ref);return o?m.cloneElement(n,{ref:a}):n})),k=m.createContext(null);function C(e){return e?Array.isArray(e)?e:[e]:[]}function T(e,t,n,r){return m.useMemo((function(){var o=C(null!=n?n:t),i=C(null!=r?r:t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[e,t,n,r])}var O=n(19014);function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function P(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function L(e){return j(parseFloat(e),0)}function N(e,t){var n=(0,r.Z)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=R(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,f=e.clientHeight,d=e.offsetWidth,p=e.clientWidth,h=L(i),g=L(a),m=L(s),v=L(l),y=j(Math.round(c.width/d*1e3)/1e3),b=j(Math.round(c.height/u*1e3)/1e3),w=(d-p-m-v)*y,E=(u-f-h-g)*b,S=h*b,_=g*b,x=m*y,k=v*y,C=0,T=0;if("clip"===r){var O=L(o);C=O*y,T=O*b}var A=c.x+x-C,P=c.y+S-T,I=A+c.width+2*C-x-k-w,M=P+c.height+2*T-S-_-E;n.left=Math.max(n.left,A),n.top=Math.max(n.top,P),n.right=Math.min(n.right,I),n.bottom=Math.min(n.bottom,M)}})),n}function D(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function F(e,t){var n=t||[],r=(0,o.Z)(n,2),i=r[0],a=r[1];return[D(e.width,i),D(e.height,a)]}function B(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function $(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function Z(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}function z(e,t,n,i,a,s,l){var c=m.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[i]||{}}),f=(0,o.Z)(c,2),p=f[0],g=f[1],v=m.useRef(0),y=m.useMemo((function(){return t?M(t):[]}),[t]),b=m.useRef({});e||(b.current={});var w=(0,d.Z)((function(){if(t&&n&&e){var c,f,d,p,h,m=t,v=m.ownerDocument,w=R(m).getComputedStyle(m),E=w.width,S=w.height,_=w.position,x=m.style.left,k=m.style.top,C=m.style.right,T=m.style.bottom,A=m.style.overflow,P=(0,r.Z)((0,r.Z)({},a[i]),s),I=v.createElement("div");if(null===(c=m.parentElement)||void 0===c||c.appendChild(I),I.style.left="".concat(m.offsetLeft,"px"),I.style.top="".concat(m.offsetTop,"px"),I.style.position=_,I.style.height="".concat(m.offsetHeight,"px"),I.style.width="".concat(m.offsetWidth,"px"),m.style.left="0",m.style.top="0",m.style.right="auto",m.style.bottom="auto",m.style.overflow="hidden",Array.isArray(n))h={x:n[0],y:n[1],width:0,height:0};else{var M,L,D=n.getBoundingClientRect();D.x=null!==(M=D.x)&&void 0!==M?M:D.left,D.y=null!==(L=D.y)&&void 0!==L?L:D.top,h={x:D.x,y:D.y,width:D.width,height:D.height}}var z=m.getBoundingClientRect();z.x=null!==(f=z.x)&&void 0!==f?f:z.left,z.y=null!==(d=z.y)&&void 0!==d?d:z.top;var U=v.documentElement,H=U.clientWidth,W=U.clientHeight,V=U.scrollWidth,q=U.scrollHeight,G=U.scrollTop,K=U.scrollLeft,Y=z.height,X=z.width,Q=h.height,J=h.width,ee={left:0,top:0,right:H,bottom:W},te={left:-K,top:-G,right:V-K,bottom:q-G},ne=P.htmlRegion,re="visible",oe="visibleFirst";"scroll"!==ne&&ne!==oe&&(ne=re);var ie=ne===oe,ae=N(te,y),se=N(ee,y),le=ne===re?se:ae,ce=ie?se:le;m.style.left="auto",m.style.top="auto",m.style.right="0",m.style.bottom="0";var ue=m.getBoundingClientRect();m.style.left=x,m.style.top=k,m.style.right=C,m.style.bottom=T,m.style.overflow=A,null===(p=m.parentElement)||void 0===p||p.removeChild(I);var fe=j(Math.round(X/parseFloat(E)*1e3)/1e3),de=j(Math.round(Y/parseFloat(S)*1e3)/1e3);if(0===fe||0===de||(0,u.Sh)(n)&&!(0,O.Z)(n))return;var pe=P.offset,he=P.targetOffset,ge=F(z,pe),me=(0,o.Z)(ge,2),ve=me[0],ye=me[1],be=F(h,he),we=(0,o.Z)(be,2),Ee=we[0],Se=we[1];h.x-=Ee,h.y-=Se;var _e=P.points||[],xe=(0,o.Z)(_e,2),ke=xe[0],Ce=B(xe[1]),Te=B(ke),Oe=$(h,Ce),Ae=$(z,Te),Pe=(0,r.Z)({},P),Ie=Oe.x-Ae.x+ve,Re=Oe.y-Ae.y+ye;function kt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:le,r=z.x+e,o=z.y+t,i=r+X,a=o+Y,s=Math.max(r,n.left),l=Math.max(o,n.top),c=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(c-s)*(u-l))}var Me,je,Le,Ne,De=kt(Ie,Re),Fe=kt(Ie,Re,se),Be=$(h,["t","l"]),$e=$(z,["t","l"]),Ze=$(h,["b","r"]),ze=$(z,["b","r"]),Ue=P.overflow||{},He=Ue.adjustX,We=Ue.adjustY,Ve=Ue.shiftX,qe=Ue.shiftY,Ge=function(e){return"boolean"==typeof e?e:e>=0};function Ct(){Me=z.y+Re,je=Me+Y,Le=z.x+Ie,Ne=Le+X}Ct();var Ke=Ge(We),Ye=Te[0]===Ce[0];if(Ke&&"t"===Te[0]&&(je>ce.bottom||b.current.bt)){var Xe=Re;Ye?Xe-=Y-Q:Xe=Be.y-ze.y-ye;var Qe=kt(Ie,Xe),Je=kt(Ie,Xe,se);Qe>De||Qe===De&&(!ie||Je>=Fe)?(b.current.bt=!0,Re=Xe,ye=-ye,Pe.points=[Z(Te,0),Z(Ce,0)]):b.current.bt=!1}if(Ke&&"b"===Te[0]&&(MeDe||tt===De&&(!ie||nt>=Fe)?(b.current.tb=!0,Re=et,ye=-ye,Pe.points=[Z(Te,0),Z(Ce,0)]):b.current.tb=!1}var rt=Ge(He),ot=Te[1]===Ce[1];if(rt&&"l"===Te[1]&&(Ne>ce.right||b.current.rl)){var it=Ie;ot?it-=X-J:it=Be.x-ze.x-ve;var at=kt(it,Re),st=kt(it,Re,se);at>De||at===De&&(!ie||st>=Fe)?(b.current.rl=!0,Ie=it,ve=-ve,Pe.points=[Z(Te,1),Z(Ce,1)]):b.current.rl=!1}if(rt&&"r"===Te[1]&&(LeDe||ct===De&&(!ie||ut>=Fe)?(b.current.lr=!0,Ie=lt,ve=-ve,Pe.points=[Z(Te,1),Z(Ce,1)]):b.current.lr=!1}Ct();var ft=!0===Ve?0:Ve;"number"==typeof ft&&(Lese.right&&(Ie-=Ne-se.right-ve,h.x>se.right-ft&&(Ie+=h.x-se.right+ft)));var dt=!0===qe?0:qe;"number"==typeof dt&&(Mese.bottom&&(Re-=je-se.bottom-ye,h.y>se.bottom-dt&&(Re+=h.y-se.bottom+dt)));var pt=z.x+Ie,ht=pt+X,gt=z.y+Re,mt=gt+Y,vt=h.x,yt=vt+J,bt=h.y,wt=bt+Q,Et=(Math.max(pt,vt)+Math.min(ht,yt))/2-pt,St=(Math.max(gt,bt)+Math.min(mt,wt))/2-gt;null==l||l(t,Pe);var _t=ue.right-z.x-(Ie+z.width),xt=ue.bottom-z.y-(Re+z.height);1===fe&&(Ie=Math.round(Ie),_t=Math.round(_t)),1===de&&(Re=Math.round(Re),xt=Math.round(xt)),g({ready:!0,offsetX:Ie/fe,offsetY:Re/de,offsetR:_t/fe,offsetB:xt/de,arrowX:Et/fe,arrowY:St/de,scaleX:fe,scaleY:de,align:Pe})}})),E=function(){g((function(e){return(0,r.Z)((0,r.Z)({},e),{},{ready:!1})}))};return(0,h.Z)(E,[i]),(0,h.Z)((function(){e||E()}),[e]),[p.ready,p.offsetX,p.offsetY,p.offsetR,p.offsetB,p.arrowX,p.arrowY,p.scaleX,p.scaleY,p.align,function(){v.current+=1;var e=v.current;Promise.resolve().then((function(){v.current===e&&w()}))}]}var U=n(56299);function H(e,t,n,r,o){(0,h.Z)((function(){if(e&&t&&n){var i=n,a=M(t),s=M(i),l=R(i),c=new Set([l].concat((0,U.Z)(a),(0,U.Z)(s)));function u(){r(),o()}return c.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),l.addEventListener("resize",u,{passive:!0}),r(),function(){c.forEach((function(e){e.removeEventListener("scroll",u),l.removeEventListener("resize",u)}))}}}),[e,t,n])}n(28740);function W(e,t,n,r,o,i,a,s){var l=m.useRef(e);l.current=e;var c=m.useRef(!1);return m.useEffect((function(){if(t&&r&&(!o||i)){var e=function(){c.current=!1},u=function(e){var t;!l.current||a((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||c.current||s(!1)},d=R(r);d.addEventListener("pointerdown",e,!0),d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var p=(0,f.A)(n);return p&&(p.addEventListener("mousedown",u,!0),p.addEventListener("contextmenu",u,!0)),function(){d.removeEventListener("pointerdown",e,!0),d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0),p&&(p.removeEventListener("mousedown",u,!0),p.removeEventListener("contextmenu",u,!0))}}}),[t,n,r,o,i]),function(){c.current=!0}}var V=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];var q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Z,t=m.forwardRef((function(t,n){var a=t.prefixCls,s=void 0===a?"rc-trigger-popup":a,v=t.children,y=t.action,b=void 0===y?"hover":y,w=t.showAction,E=t.hideAction,S=t.popupVisible,C=t.defaultPopupVisible,O=t.onPopupVisibleChange,A=t.afterPopupVisibleChange,R=t.mouseEnterDelay,M=t.mouseLeaveDelay,j=void 0===M?.1:M,L=t.focusDelay,N=t.blurDelay,D=t.mask,F=t.maskClosable,B=void 0===F||F,$=t.getPopupContainer,Z=t.forceRender,U=t.autoDestroy,q=t.destroyPopupOnHide,G=t.popup,K=t.popupClassName,Y=t.popupStyle,X=t.popupPlacement,Q=t.builtinPlacements,J=void 0===Q?{}:Q,ee=t.popupAlign,te=t.zIndex,ne=t.stretch,re=t.getPopupClassNameFromAlign,oe=t.fresh,ie=t.alignPoint,ae=t.onPopupClick,se=t.onPopupAlign,le=t.arrow,ce=t.popupMotion,ue=t.maskMotion,fe=t.popupTransitionName,de=t.popupAnimation,pe=t.maskTransitionName,he=t.maskAnimation,ge=t.className,me=t.getTriggerDOMNode,ve=(0,i.Z)(t,V),ye=U||q||!1,be=m.useState(!1),we=(0,o.Z)(be,2),Ee=we[0],Se=we[1];(0,h.Z)((function(){Se((0,g.Z)())}),[]);var _e=m.useRef({}),xe=m.useContext(k),ke=m.useMemo((function(){return{registerSubPopup:function(e,t){_e.current[e]=t,null==xe||xe.registerSubPopup(e,t)}}}),[xe]),Ce=(0,p.Z)(),Te=m.useState(null),Oe=(0,o.Z)(Te,2),Ae=Oe[0],Pe=Oe[1],Ie=m.useRef(null),Re=(0,d.Z)((function(e){Ie.current=e,(0,u.Sh)(e)&&Ae!==e&&Pe(e),null==xe||xe.registerSubPopup(Ce,e)})),Me=m.useState(null),je=(0,o.Z)(Me,2),Le=je[0],Ne=je[1],De=m.useRef(null),Fe=(0,d.Z)((function(e){(0,u.Sh)(e)&&Le!==e&&(Ne(e),De.current=e)})),Be=m.Children.only(v),$e=(null==Be?void 0:Be.props)||{},Ze={},ze=(0,d.Z)((function(e){var t,n,r=Le;return(null==r?void 0:r.contains(e))||(null===(t=(0,f.A)(r))||void 0===t?void 0:t.host)===e||e===r||(null==Ae?void 0:Ae.contains(e))||(null===(n=(0,f.A)(Ae))||void 0===n?void 0:n.host)===e||e===Ae||Object.values(_e.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Ue=I(s,ce,de,fe),He=I(s,ue,he,pe),We=m.useState(C||!1),Ve=(0,o.Z)(We,2),qe=Ve[0],Ge=Ve[1],Ke=null!=S?S:qe,Ye=(0,d.Z)((function(e){void 0===S&&Ge(e)}));(0,h.Z)((function(){Ge(S||!1)}),[S]);var Xe=m.useRef(Ke);Xe.current=Ke;var Qe=m.useRef([]);Qe.current=[];var Je=(0,d.Z)((function(e){var t;Ye(e),(null!==(t=Qe.current[Qe.current.length-1])&&void 0!==t?t:Ke)!==e&&(Qe.current.push(e),null==O||O(e))})),et=m.useRef(),tt=function(){clearTimeout(et.current)},nt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;tt(),0===t?Je(e):et.current=setTimeout((function(){Je(e)}),1e3*t)};m.useEffect((function(){return tt}),[]);var rt=m.useState(!1),ot=(0,o.Z)(rt,2),it=ot[0],at=ot[1];(0,h.Z)((function(e){e&&!Ke||at(!0)}),[Ke]);var st=m.useState(null),lt=(0,o.Z)(st,2),ct=lt[0],ut=lt[1],ft=m.useState(null),dt=(0,o.Z)(ft,2),pt=dt[0],ht=dt[1],gt=function(e){ht([e.clientX,e.clientY])},mt=z(Ke,Ae,ie&&null!==pt?pt:Le,X,J,ee,se),vt=(0,o.Z)(mt,11),yt=vt[0],bt=vt[1],wt=vt[2],Et=vt[3],St=vt[4],_t=vt[5],xt=vt[6],kt=vt[7],Ct=vt[8],Tt=vt[9],Ot=vt[10],At=T(Ee,b,w,E),Pt=(0,o.Z)(At,2),It=Pt[0],Rt=Pt[1],Mt=It.has("click"),jt=Rt.has("click")||Rt.has("contextMenu"),Lt=(0,d.Z)((function(){it||Ot()}));H(Ke,Le,Ae,Lt,(function(){Xe.current&&ie&&jt&&nt(!1)})),(0,h.Z)((function(){Lt()}),[pt,X]),(0,h.Z)((function(){!Ke||null!=J&&J[X]||Lt()}),[JSON.stringify(ee)]);var Nt=m.useMemo((function(){var e=P(J,s,Tt,ie);return l()(e,null==re?void 0:re(Tt))}),[Tt,re,J,s,ie]);m.useImperativeHandle(n,(function(){return{nativeElement:De.current,popupElement:Ie.current,forceAlign:Lt}}));var Dt=m.useState(0),Ft=(0,o.Z)(Dt,2),Bt=Ft[0],$t=Ft[1],Zt=m.useState(0),zt=(0,o.Z)(Zt,2),Ut=zt[0],Ht=zt[1],Wt=function(){if(ne&&Le){var e=Le.getBoundingClientRect();$t(e.width),Ht(e.height)}};function Vt(e,t,n,r){Ze[e]=function(o){var i;null==r||r(o),nt(t,n);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l1?n-1:0),o=1;o1?n-1:0),o=1;o()=>(e&&(t=e(e=0)),t),te=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ne=(e,t)=>{for(var n in t)Y(e,n,{get:t[n],enumerable:!0})},re=e=>((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of Q(t))!J.call(e,o)&&o!==n&&Y(e,o,{get:()=>t[o],enumerable:!(r=X(t,o))||r.enumerable});return e})(Y({},"__esModule",{value:!0}),e),oe=ee((()=>{})),ie={};function ae(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function se(){!_e||!xe||(_e=!1,xe.length?Se=xe.concat(Se):ke=-1,Se.length&&le())}function le(){if(!_e){var e=setTimeout(se,0);_e=!0;for(var t=Se.length;t;){for(xe=Se,Se=[];++ke1)for(var n=1;nit,_debugProcess:()=>ot,_events:()=>_t,_eventsCount:()=>xt,_exiting:()=>Ue,_fatalExceptions:()=>tt,_getActiveHandles:()=>ge,_getActiveRequests:()=>he,_kill:()=>Ve,_linkedBinding:()=>de,_maxListeners:()=>St,_preload_modules:()=>vt,_rawDebug:()=>$e,_startProfilerIdleNotifier:()=>at,_stopProfilerIdleNotifier:()=>st,_tickCallback:()=>rt,abort:()=>ft,addListener:()=>kt,allowedNodeEnvironmentFlags:()=>Je,arch:()=>Te,argv:()=>Pe,argv0:()=>mt,assert:()=>me,binding:()=>Le,chdir:()=>Fe,config:()=>He,cpuUsage:()=>qe,cwd:()=>De,debugPort:()=>gt,default:()=>Mt,dlopen:()=>pe,domain:()=>ze,emit:()=>Pt,emitWarning:()=>je,env:()=>Ae,execArgv:()=>Ie,execPath:()=>ht,exit:()=>Xe,features:()=>et,hasUncaughtExceptionCaptureCallback:()=>ve,hrtime:()=>be,kill:()=>Ye,listeners:()=>Ee,memoryUsage:()=>Ke,moduleLoadList:()=>Ze,nextTick:()=>ce,off:()=>Tt,on:()=>we,once:()=>Ct,openStdin:()=>Qe,pid:()=>dt,platform:()=>Oe,ppid:()=>pt,prependListener:()=>It,prependOnceListener:()=>Rt,reallyExit:()=>We,release:()=>Be,removeAllListeners:()=>At,removeListener:()=>Ot,resourceUsage:()=>Ge,setSourceMapsEnabled:()=>yt,setUncaughtExceptionCaptureCallback:()=>nt,stderr:()=>ct,stdin:()=>ut,stdout:()=>lt,title:()=>Ce,umask:()=>Ne,uptime:()=>ye,version:()=>Re,versions:()=>Me});var Se,_e,xe,ke,Ce,Te,Oe,Ae,Pe,Ie,Re,Me,je,Le,Ne,De,Fe,Be,$e,Ze,ze,Ue,He,We,Ve,qe,Ge,Ke,Ye,Xe,Qe,Je,et,tt,nt,rt,ot,it,at,st,lt,ct,ut,ft,dt,pt,ht,gt,mt,vt,yt,bt,wt,Et,St,_t,xt,kt,Ct,Tt,Ot,At,Pt,It,Rt,Mt,jt=ee((()=>{oe(),Kt(),Lt(),Se=[],_e=!1,ke=-1,ue.prototype.run=function(){this.fun.apply(null,this.array)},Ce="browser",Te="x64",Oe="browser",Ae={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},Pe=["/usr/bin/node"],Ie=[],Re="v16.8.0",Me={},je=function(e,t){console.warn((t?t+": ":"")+e)},Le=function(e){ae("binding")},Ne=function(e){return 0},De=function(){return"/"},Fe=function(e){},Be={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},$e=fe,Ze=[],ze={},Ue=!1,He={},We=fe,Ve=fe,Ge=qe=function(){return{}},Ke=qe,Ye=fe,Xe=fe,Qe=fe,Je={},et={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},tt=fe,nt=fe,rt=fe,ot=fe,it=fe,at=fe,st=fe,lt=void 0,ct=void 0,ut=void 0,ft=fe,dt=2,pt=1,ht="/bin/usr/node",gt=9229,mt="node",vt=[],yt=fe,void 0===(bt={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0}).now&&(wt=Date.now(),bt.timing&&bt.timing.navigationStart&&(wt=bt.timing.navigationStart),bt.now=()=>Date.now()-wt),Et=1e9,be.bigint=function(e){var t=be(e);return typeof BigInt>"u"?t[0]*Et+t[1]:BigInt(t[0]*Et)+BigInt(t[1])},Mt={version:Re,versions:Me,arch:Te,platform:Oe,release:Be,_rawDebug:$e,moduleLoadList:Ze,binding:Le,_linkedBinding:de,_events:_t={},_eventsCount:xt=0,_maxListeners:St=10,on:we,addListener:kt=we,once:Ct=we,off:Tt=we,removeListener:Ot=we,removeAllListeners:At=we,emit:Pt=fe,prependListener:It=we,prependOnceListener:Rt=we,listeners:Ee,domain:ze,_exiting:Ue,config:He,dlopen:pe,uptime:ye,_getActiveRequests:he,_getActiveHandles:ge,reallyExit:We,_kill:Ve,cpuUsage:qe,resourceUsage:Ge,memoryUsage:Ke,kill:Ye,exit:Xe,openStdin:Qe,allowedNodeEnvironmentFlags:Je,assert:me,features:et,_fatalExceptions:tt,setUncaughtExceptionCaptureCallback:nt,hasUncaughtExceptionCaptureCallback:ve,emitWarning:je,nextTick:ce,_tickCallback:rt,_debugProcess:ot,_debugEnd:it,_startProfilerIdleNotifier:at,_stopProfilerIdleNotifier:st,stdout:lt,stdin:ut,stderr:ct,abort:ft,umask:Ne,chdir:Fe,cwd:De,env:Ae,title:Ce,argv:Pe,execArgv:Ie,pid:dt,ppid:pt,execPath:ht,debugPort:gt,hrtime:be,argv0:mt,_preload_modules:vt,setSourceMapsEnabled:yt}})),Lt=ee((()=>{jt()})),Nt={};function Dt(){if(Ut)return zt;Ut=!0;let e=function(){if(Bt)return Ft;Bt=!0,Ft.byteLength=function(e){var t=a(e),n=t[0],r=t[1];return 3*(n+r)/4-r},Ft.toByteArray=function(e){var r,o,i=a(e),s=i[0],l=i[1],c=new n(function(e,t,n){return 3*(t+n)/4-n}(0,s,l)),u=0,f=l>0?s-4:s;for(o=0;o>16&255,c[u++]=r>>8&255,c[u++]=255&r;return 2===l&&(r=t[e.charCodeAt(o)]<<2|t[e.charCodeAt(o+1)]>>4,c[u++]=255&r),1===l&&(r=t[e.charCodeAt(o)]<<10|t[e.charCodeAt(o+1)]<<4|t[e.charCodeAt(o+2)]>>2,c[u++]=r>>8&255,c[u++]=255&r),c},Ft.fromByteArray=function(t){for(var n,r=t.length,o=r%3,i=[],a=16383,s=0,c=r-o;sc?c:s+a));return 1===o?(n=t[r-1],i.push(e[n>>2]+e[n<<4&63]+"==")):2===o&&(n=(t[r-2]<<8)+t[r-1],i.push(e[n>>10]+e[n>>4&63]+e[n<<2&63]+"=")),i.join("")};for(var e=[],t=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=r.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function s(t){return e[t>>18&63]+e[t>>12&63]+e[t>>6&63]+e[63&t]}function l(e,t,n){for(var r,o=[],i=t;i>1,u=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-u)-1,p>>=-u,u+=s;u>0;i=256*i+e[t+f],f+=d,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+f],f+=d,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=c}return(p?-1:1)*a*Math.pow(2,i-r)},$t.write=function(e,t,n,r,o,i){var a,s,l,c=8*i-o-1,u=(1<>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=u?(s=0,a=u):a+f>=1?(s=(t*l-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&s,p+=h,s/=256,o-=8);for(a=a<0;e[n+p]=255&a,p+=h,a/=256,c-=8);e[n+p-h]|=128*g}),$t),n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;zt.Buffer=i,zt.SlowBuffer=function(e){return+e!=e&&(e=0),i.alloc(+e)},zt.INSPECT_MAX_BYTES=50;let r=2147483647;function o(e){if(e>r)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,i.prototype),t}function i(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}return a(e,t,n)}function a(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!i.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let n=0|d(e,t),r=o(n),a=r.write(e,t);return a!==n&&(r=r.slice(0,a)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(V(e,Uint8Array)){let t=new Uint8Array(e);return u(t.buffer,t.byteOffset,t.byteLength)}return c(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(V(e,ArrayBuffer)||e&&V(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(V(e,SharedArrayBuffer)||e&&V(e.buffer,SharedArrayBuffer)))return u(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');let r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return i.from(r,t,n);let a=function(e){if(i.isBuffer(e)){let t=0|f(e.length),n=o(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||q(e.length)?o(0):c(e);if("Buffer"===e.type&&Array.isArray(e.data))return c(e.data)}(e);if(a)return a;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return i.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return s(e),o(e<0?0:0|f(e))}function c(e){let t=e.length<0?0:0|f(e.length),n=o(t);for(let r=0;r=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|e}function d(e,t){if(i.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||V(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(o)return r?-1:U(e).length;t=(""+t).toLowerCase(),o=!0}}function p(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return _(this,t,n);case"ascii":return k(this,t,n);case"latin1":case"binary":return C(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function h(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),q(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=i.from(t,r)),i.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,o){let i,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){let r=-1;for(i=n;is&&(n=s-l),i=n;i>=0;i--){let n=!0;for(let r=0;ro&&(r=o):r=o;let i,a=t.length;for(r>a/2&&(r=a/2),i=0;i>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function S(t,n,r){return 0===n&&r===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(n,r))}function _(e,t,n){n=Math.min(e.length,n);let r=[],o=t;for(;o239?4:t>223?3:t>191?2:1;if(o+a<=n){let n,r,s,l;switch(a){case 1:t<128&&(i=t);break;case 2:n=e[o+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(i=l));break;case 3:n=e[o+1],r=e[o+2],128==(192&n)&&128==(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(i=l));break;case 4:n=e[o+1],r=e[o+2],s=e[o+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,l>65535&&l<1114112&&(i=l))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=a}return function(e){let t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);let n="",r=0;for(;rr.length?(i.isBuffer(t)||(t=i.from(t)),t.copy(r,o)):Uint8Array.prototype.set.call(r,t,o);else{if(!i.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,o)}o+=t.length}return r},i.byteLength=d,i.prototype._isBuffer=!0,i.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(e+=" ... "),""},n&&(i.prototype[n]=i.prototype.inspect),i.prototype.compare=function(e,t,n,r,o){if(V(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),!i.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;let a=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),l=Math.min(a,s),c=this.slice(r,o),u=e.slice(t,n);for(let e=0;e>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}let o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return y(this,e,t,n);case"ascii":case"latin1":case"binary":return b(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};let x=4096;function k(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;or)&&(n=r);let o="";for(let r=t;rn)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,n,r,o,a){if(!i.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function I(e,t,n,r,o){B(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function R(e,t,n,r,o){B(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function M(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,n,r,o,i){return n=+n,r>>>=0,i||M(e,0,r,4),t.write(e,n,r,o,23,4),r+4}function L(e,n,r,o,i){return n=+n,r>>>=0,i||M(e,0,r,8),t.write(e,n,r,o,52,8),r+8}i.prototype.slice=function(e,t){let n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||A(e,t,this.length);let r=this[e],o=1,i=0;for(;++i>>=0,t>>>=0,n||A(e,t,this.length);let r=this[e+--t],o=1;for(;t>0&&(o*=256);)r+=this[e+--t]*o;return r},i.prototype.readUint8=i.prototype.readUInt8=function(e,t){return e>>>=0,t||A(e,1,this.length),this[e]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(e,t){return e>>>=0,t||A(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(e,t){return e>>>=0,t||A(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(e,t){return e>>>=0,t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(e,t){return e>>>=0,t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readBigUInt64LE=K((function(e){$(e>>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&Z(e,this.length-8);let r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(o)<>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&Z(e,this.length-8);let r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<>>=0,t>>>=0,n||A(e,t,this.length);let r=this[e],o=1,i=0;for(;++i=o&&(r-=Math.pow(2,8*t)),r},i.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||A(e,t,this.length);let r=t,o=1,i=this[e+--r];for(;r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},i.prototype.readInt8=function(e,t){return e>>>=0,t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){e>>>=0,t||A(e,2,this.length);let n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt16BE=function(e,t){e>>>=0,t||A(e,2,this.length);let n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt32LE=function(e,t){return e>>>=0,t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,t){return e>>>=0,t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readBigInt64LE=K((function(e){$(e>>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&Z(e,this.length-8);let r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&Z(e,this.length-8);let r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,n||A(e,4,this.length),t.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,n){return e>>>=0,n||A(e,4,this.length),t.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,n){return e>>>=0,n||A(e,8,this.length),t.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,n){return e>>>=0,n||A(e,8,this.length),t.read(this,e,!1,52,8)},i.prototype.writeUintLE=i.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){P(this,e,t,n,Math.pow(2,8*n)-1,0)}let o=1,i=0;for(this[t]=255&e;++i>>=0,n>>>=0,!r){P(this,e,t,n,Math.pow(2,8*n)-1,0)}let o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},i.prototype.writeUint8=i.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,1,255,0),this[t]=255&e,t+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},i.prototype.writeBigUInt64LE=K((function(e,t=0){return I(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),i.prototype.writeBigUInt64BE=K((function(e,t=0){return R(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),i.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=Math.pow(2,8*n-1);P(this,e,t,n,r-1,-r)}let o=0,i=1,a=0;for(this[t]=255&e;++o>0)-a&255;return t+n},i.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=Math.pow(2,8*n-1);P(this,e,t,n,r-1,-r)}let o=n-1,i=1,a=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/i>>0)-a&255;return t+n},i.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},i.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},i.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},i.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},i.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},i.prototype.writeBigInt64LE=K((function(e,t=0){return I(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),i.prototype.writeBigInt64BE=K((function(e,t=0){return R(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),i.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},i.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},i.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},i.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},i.prototype.copy=function(e,t,n,r){if(!i.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!r&&0!==r&&(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function B(e,t,n,r,o,i){if(e>n||e3?0===t||t===BigInt(0)?`>= 0${o} and < 2${o} ** ${8*(i+1)}${o}`:`>= -(2${o} ** ${8*(i+1)-1}${o}) and < 2 ** ${8*(i+1)-1}${o}`:`>= ${t}${o} and <= ${n}${o}`,new N.ERR_OUT_OF_RANGE("value",r,e)}!function(e,t,n){$(t,"offset"),(void 0===e[t]||void 0===e[t+n])&&Z(t,e.length-(n+1))}(r,o,i)}function $(e,t){if("number"!=typeof e)throw new N.ERR_INVALID_ARG_TYPE(t,"number",e)}function Z(e,t,n){throw Math.floor(e)!==e?($(e,n),new N.ERR_OUT_OF_RANGE(n||"offset","an integer",e)):t<0?new N.ERR_BUFFER_OUT_OF_BOUNDS:new N.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}D("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),D("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),D("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=F(String(n)):"bigint"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=F(o)),o+="n"),r+=` It must be ${t}. Received ${o}`,r}),RangeError);let z=/[^+/0-9A-Za-z-_]/g;function U(e,t){t=t||1/0;let n,r=e.length,o=null,i=[];for(let a=0;a55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function H(t){return e.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(z,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(t))}function W(e,t,n,r){let o;for(o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function V(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function q(e){return e!=e}let G=function(){let e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){let r=16*n;for(let o=0;o<16;++o)t[r+o]=e[n]+e[o]}return t}();function K(e){return typeof BigInt>"u"?Y:e}function Y(){throw new Error("BigInt not supported")}return zt}ne(Nt,{Buffer:()=>Wt,INSPECT_MAX_BYTES:()=>Vt,default:()=>Ht,kMaxLength:()=>qt});var Ft,Bt,$t,Zt,zt,Ut,Ht,Wt,Vt,qt,Gt=ee((()=>{oe(),Kt(),Lt(),Ft={},Bt=!1,$t={},Zt=!1,zt={},Ut=!1,(Ht=Dt()).Buffer,Ht.SlowBuffer,Ht.INSPECT_MAX_BYTES,Ht.kMaxLength,Wt=Ht.Buffer,Vt=Ht.INSPECT_MAX_BYTES,qt=Ht.kMaxLength})),Kt=ee((()=>{Gt()})),Yt=te((e=>{oe(),Kt(),Lt(),Object.defineProperty(e,"__esModule",{value:!0});e.default=class{constructor(e){this.aliasToTopic={},this.max=e}put(e,t){return!(0===t||t>this.max)&&(this.aliasToTopic[t]=e,this.length=Object.keys(this.aliasToTopic).length,!0)}getTopicByAlias(e){return this.aliasToTopic[e]}clear(){this.aliasToTopic={}}}})),Xt=te(((e,t)=>{oe(),Kt(),Lt(),t.exports={ArrayIsArray(e){return Array.isArray(e)},ArrayPrototypeIncludes(e,t){return e.includes(t)},ArrayPrototypeIndexOf(e,t){return e.indexOf(t)},ArrayPrototypeJoin(e,t){return e.join(t)},ArrayPrototypeMap(e,t){return e.map(t)},ArrayPrototypePop(e,t){return e.pop(t)},ArrayPrototypePush(e,t){return e.push(t)},ArrayPrototypeSlice(e,t,n){return e.slice(t,n)},Error:Error,FunctionPrototypeCall(e,t,...n){return e.call(t,...n)},FunctionPrototypeSymbolHasInstance(e,t){return Function.prototype[Symbol.hasInstance].call(e,t)},MathFloor:Math.floor,Number:Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(e,t){return Object.defineProperties(e,t)},ObjectDefineProperty(e,t,n){return Object.defineProperty(e,t,n)},ObjectGetOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)},ObjectKeys(e){return Object.keys(e)},ObjectSetPrototypeOf(e,t){return Object.setPrototypeOf(e,t)},Promise:Promise,PromisePrototypeCatch(e,t){return e.catch(t)},PromisePrototypeThen(e,t,n){return e.then(t,n)},PromiseReject(e){return Promise.reject(e)},ReflectApply:Reflect.apply,RegExpPrototypeTest(e,t){return e.test(t)},SafeSet:Set,String:String,StringPrototypeSlice(e,t,n){return e.slice(t,n)},StringPrototypeToLowerCase(e){return e.toLowerCase()},StringPrototypeToUpperCase(e){return e.toUpperCase()},StringPrototypeTrim(e){return e.trim()},Symbol:Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(e,t,n){return e.set(t,n)},Uint8Array:Uint8Array}})),Qt=te(((e,t)=>{oe(),Kt(),Lt();var n=(Gt(),re(Nt)),r=Object.getPrototypeOf((async function(){})).constructor,o=globalThis.Blob||n.Blob,i=typeof o<"u"?function(e){return e instanceof o}:function(e){return!1},a=class extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError("Expected input to be an Array, got "+typeof e);let t="";for(let n=0;n{e=n,t=r})),resolve:e,reject:t}},promisify(e){return new Promise(((t,n)=>{e(((e,...r)=>e?n(e):t(...r)))}))},debuglog(){return function(){}},format(e,...t){return e.replace(/%([sdifj])/g,(function(...[e,n]){let r=t.shift();return"f"===n?r.toFixed(6):"j"===n?JSON.stringify(r):"s"===n&&"object"==typeof r?`${r.constructor!==Object?r.constructor.name:""} {}`.trim():r.toString()}))},inspect(e){switch(typeof e){case"string":if(e.includes("'")){if(!e.includes('"'))return`"${e}"`;if(!e.includes("`")&&!e.includes("${"))return`\`${e}\``}return`'${e}'`;case"number":return isNaN(e)?"NaN":Object.is(e,-0)?String(e):e;case"bigint":return`${String(e)}n`;case"boolean":case"undefined":return String(e);case"object":return"{}"}},types:{isAsyncFunction(e){return e instanceof r},isArrayBufferView(e){return ArrayBuffer.isView(e)}},isBlob:i},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})),Jt=te(((e,t)=>{oe(),Kt(),Lt();var{AbortController:n,AbortSignal:r}=typeof self<"u"?self:typeof window<"u"?window:void 0;t.exports=n,t.exports.AbortSignal=r,t.exports.default=n})),en=te(((e,t)=>{oe(),Kt(),Lt();var{format:n,inspect:r,AggregateError:o}=Qt(),i=globalThis.AggregateError||o,a=Symbol("kIsNodeError"),s=["string","function","number","object","Function","Object","boolean","bigint","symbol"],l=/^([A-Z][a-z0-9]*)+$/,c={};function u(e,t){if(!e)throw new c.ERR_INTERNAL_ASSERTION(t)}function f(e){let t="",n=e.length,r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function d(e,t,r){r||(r=Error);class o extends r{constructor(...r){super(function(e,t,r){if("function"==typeof t)return u(t.length<=r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).`),t(...r);let o=(t.match(/%[dfijoOs]/g)||[]).length;return u(o===r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${o}).`),0===r.length?t:n(t,...r)}(e,t,r))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(o.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),o.prototype.code=e,o.prototype[a]=!0,c[e]=o}function p(e){let t="__node_internal_"+e.name;return Object.defineProperty(e,"name",{value:t}),e}var h=class extends Error{constructor(e="The operation was aborted",t){if(void 0!==t&&"object"!=typeof t)throw new c.ERR_INVALID_ARG_TYPE("options","Object",t);super(e,t),this.code="ABORT_ERR",this.name="AbortError"}};d("ERR_ASSERTION","%s",Error),d("ERR_INVALID_ARG_TYPE",((e,t,n)=>{u("string"==typeof e,"'name' must be a string"),Array.isArray(t)||(t=[t]);let o="The ";e.endsWith(" argument")?o+=`${e} `:o+=`"${e}" ${e.includes(".")?"property":"argument"} `,o+="must be ";let i=[],a=[],c=[];for(let e of t)u("string"==typeof e,"All expected entries have to be of type string"),s.includes(e)?i.push(e.toLowerCase()):l.test(e)?a.push(e):(u("object"!==e,'The value "object" should be written as "Object"'),c.push(e));if(a.length>0){let e=i.indexOf("object");-1!==e&&(i.splice(i,e,1),a.push("Object"))}if(i.length>0){switch(i.length){case 1:o+=`of type ${i[0]}`;break;case 2:o+=`one of type ${i[0]} or ${i[1]}`;break;default:{let e=i.pop();o+=`one of type ${i.join(", ")}, or ${e}`}}(a.length>0||c.length>0)&&(o+=" or ")}if(a.length>0){switch(a.length){case 1:o+=`an instance of ${a[0]}`;break;case 2:o+=`an instance of ${a[0]} or ${a[1]}`;break;default:{let e=a.pop();o+=`an instance of ${a.join(", ")}, or ${e}`}}c.length>0&&(o+=" or ")}switch(c.length){case 0:break;case 1:c[0].toLowerCase()!==c[0]&&(o+="an "),o+=`${c[0]}`;break;case 2:o+=`one of ${c[0]} or ${c[1]}`;break;default:{let e=c.pop();o+=`one of ${c.join(", ")}, or ${e}`}}if(null==n)o+=`. Received ${n}`;else if("function"==typeof n&&n.name)o+=`. Received function ${n.name}`;else if("object"==typeof n){var f;if(null!==(f=n.constructor)&&void 0!==f&&f.name)o+=`. Received an instance of ${n.constructor.name}`;else{o+=`. Received ${r(n,{depth:-1})}`}}else{let e=r(n,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),o+=`. Received type ${typeof n} (${e})`}return o}),TypeError),d("ERR_INVALID_ARG_VALUE",((e,t,n="is invalid")=>{let o=r(t);return o.length>128&&(o=o.slice(0,128)+"..."),`The ${e.includes(".")?"property":"argument"} '${e}' ${n}. Received ${o}`}),TypeError),d("ERR_INVALID_RETURN_VALUE",((e,t,n)=>{var r;return`Expected ${e} to be returned from the "${t}" function but got ${null!=n&&null!==(r=n.constructor)&&void 0!==r&&r.name?`instance of ${n.constructor.name}`:"type "+typeof n}.`}),TypeError),d("ERR_MISSING_ARGS",((...e)=>{u(e.length>0,"At least one arg needs to be specified");let t,n=e.length;switch(e=(Array.isArray(e)?e:[e]).map((e=>`"${e}"`)).join(" or "),n){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{let n=e.pop();t+=`The ${e.join(", ")}, and ${n} arguments`}}return`${t} must be specified`}),TypeError),d("ERR_OUT_OF_RANGE",((e,t,n)=>{let o;return u(t,'Missing "range" argument'),Number.isInteger(n)&&Math.abs(n)>2**32?o=f(String(n)):"bigint"==typeof n?(o=String(n),(n>2n**32n||n<-(2n**32n))&&(o=f(o)),o+="n"):o=r(n),`The value of "${e}" is out of range. It must be ${t}. Received ${o}`}),RangeError),d("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),d("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),d("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),d("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),d("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),d("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),d("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),d("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),d("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),d("ERR_STREAM_WRITE_AFTER_END","write after end",Error),d("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),t.exports={AbortError:h,aggregateTwoErrors:p((function(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;let n=new i([t,e],t.message);return n.code=t.code,n}return e||t})),hideStackFrames:p,codes:c}})),tn=te(((e,t)=>{oe(),Kt(),Lt();var{ArrayIsArray:n,ArrayPrototypeIncludes:r,ArrayPrototypeJoin:o,ArrayPrototypeMap:i,NumberIsInteger:a,NumberIsNaN:s,NumberMAX_SAFE_INTEGER:l,NumberMIN_SAFE_INTEGER:c,NumberParseInt:u,ObjectPrototypeHasOwnProperty:f,RegExpPrototypeExec:d,String:p,StringPrototypeToUpperCase:h,StringPrototypeTrim:g}=Xt(),{hideStackFrames:m,codes:{ERR_SOCKET_BAD_PORT:v,ERR_INVALID_ARG_TYPE:y,ERR_INVALID_ARG_VALUE:b,ERR_OUT_OF_RANGE:w,ERR_UNKNOWN_SIGNAL:E}}=en(),{normalizeEncoding:S}=Qt(),{isAsyncFunction:_,isArrayBufferView:x}=Qt().types,k={};var C=/^[0-7]+$/;var T=m(((e,t,n=c,r=l)=>{if("number"!=typeof e)throw new y(t,"number",e);if(!a(e))throw new w(t,"an integer",e);if(er)throw new w(t,`>= ${n} && <= ${r}`,e)})),O=m(((e,t,n=-2147483648,r=2147483647)=>{if("number"!=typeof e)throw new y(t,"number",e);if(!a(e))throw new w(t,"an integer",e);if(er)throw new w(t,`>= ${n} && <= ${r}`,e)})),A=m(((e,t,n=!1)=>{if("number"!=typeof e)throw new y(t,"number",e);if(!a(e))throw new w(t,"an integer",e);let r=n?1:0,o=4294967295;if(eo)throw new w(t,`>= ${r} && <= ${o}`,e)}));function P(e,t){if("string"!=typeof e)throw new y(t,"string",e)}var I=m(((e,t,n)=>{if(!r(n,e)){let r="must be one of: "+o(i(n,(e=>"string"==typeof e?`'${e}'`:p(e))),", ");throw new b(t,e,r)}}));function R(e,t){if("boolean"!=typeof e)throw new y(t,"boolean",e)}function M(e,t,n){return null!=e&&f(e,t)?e[t]:n}var j=m(((e,t,r=null)=>{let o=M(r,"allowArray",!1),i=M(r,"allowFunction",!1);if(!M(r,"nullable",!1)&&null===e||!o&&n(e)||"object"!=typeof e&&(!i||"function"!=typeof e))throw new y(t,"Object",e)})),L=m(((e,t)=>{if(null!=e&&"object"!=typeof e&&"function"!=typeof e)throw new y(t,"a dictionary",e)})),N=m(((e,t,r=0)=>{if(!n(e))throw new y(t,"Array",e);if(e.length{if(!x(e))throw new y(t,["Buffer","TypedArray","DataView"],e)}));var F=m(((e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new y(t,"AbortSignal",e)})),B=m(((e,t)=>{if("function"!=typeof e)throw new y(t,"Function",e)})),$=m(((e,t)=>{if("function"!=typeof e||_(e))throw new y(t,"Function",e)})),Z=m(((e,t)=>{if(void 0!==e)throw new y(t,"undefined",e)}));var z=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function U(e,t){if(typeof e>"u"||!d(z,e))throw new b(t,e,'must be an array or string of format "; rel=preload; as=style"')}t.exports={isInt32:function(e){return e===(0|e)},isUint32:function(e){return e===e>>>0},parseFileMode:function(e,t,n){if(typeof e>"u"&&(e=n),"string"==typeof e){if(null===d(C,e))throw new b(t,e,"must be a 32-bit unsigned integer or an octal string");e=u(e,8)}return A(e,t),e},validateArray:N,validateStringArray:function(e,t){N(e,t);for(let n=0;nr||(null!=n||null!=r)&&s(e))throw new w(t,`${null!=n?`>= ${n}`:""}${null!=n&&null!=r?" && ":""}${null!=r?`<= ${r}`:""}`,e)},validateObject:j,validateOneOf:I,validatePlainFunction:$,validatePort:function(e,t="Port",n=!0){if("number"!=typeof e&&"string"!=typeof e||"string"==typeof e&&0===g(e).length||+e!=+e>>>0||e>65535||0===e&&!n)throw new v(t,e,n);return 0|e},validateSignalName:function(e,t="signal"){if(P(e,t),void 0===k[e])throw void 0!==k[h(e)]?new E(e+" (signals must use all capital letters)"):new E(e)},validateString:P,validateUint32:A,validateUndefined:Z,validateUnion:function(e,t,n){if(!r(n,e))throw new y(t,`('${o(n,"|")}')`,e)},validateAbortSignal:F,validateLinkHeaderValue:function(e){if("string"==typeof e)return U(e,"hints"),e;if(n(e)){let t=e.length,n="";if(0===t)return n;for(let r=0;r; rel=preload; as=style"')}}})),nn=te(((e,t)=>{oe(),Kt(),Lt();var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch{try{return n.call(null,e,0)}catch{return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch{n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch{r=a}}();var l,c=[],u=!1,f=-1;function d(){!u||!l||(u=!1,l.length?c=l.concat(c):f=-1,c.length&&p())}function p(){if(!u){var e=s(d);u=!0;for(var t=c.length;t;){for(l=c,c=[];++f1)for(var n=1;n{oe(),Kt(),Lt();var{Symbol:n,SymbolAsyncIterator:r,SymbolIterator:o,SymbolFor:i}=Xt(),a=n("kDestroyed"),s=n("kIsErrored"),l=n("kIsReadable"),c=n("kIsDisturbed"),u=i("nodejs.webstream.isClosedPromise"),f=i("nodejs.webstream.controllerErrorFunction");function d(e,t=!1){var n;return!(!e||"function"!=typeof e.pipe||"function"!=typeof e.on||t&&("function"!=typeof e.pause||"function"!=typeof e.resume)||e._writableState&&!1===(null===(n=e._readableState)||void 0===n?void 0:n.readable)||e._writableState&&!e._readableState)}function p(e){var t;return!(!e||"function"!=typeof e.write||"function"!=typeof e.on||e._readableState&&!1===(null===(t=e._writableState)||void 0===t?void 0:t.writable))}function h(e){return e&&(e._readableState||e._writableState||"function"==typeof e.write&&"function"==typeof e.on||"function"==typeof e.pipe&&"function"==typeof e.on)}function g(e){return!(!e||h(e)||"function"!=typeof e.pipeThrough||"function"!=typeof e.getReader||"function"!=typeof e.cancel)}function m(e){return!(!e||h(e)||"function"!=typeof e.getWriter||"function"!=typeof e.abort)}function v(e){return!(!e||h(e)||"object"!=typeof e.readable||"object"!=typeof e.writable)}function y(e){if(!h(e))return null;let t=e._writableState,n=e._readableState,r=t||n;return!!(e.destroyed||e[a]||null!=r&&r.destroyed)}function b(e){if(!p(e))return null;if(!0===e.writableEnded)return!0;let t=e._writableState;return(null==t||!t.errored)&&("boolean"!=typeof t?.ended?null:t.ended)}function w(e,t){if(!d(e))return null;let n=e._readableState;return(null==n||!n.errored)&&("boolean"!=typeof n?.endEmitted?null:!!(n.endEmitted||!1===t&&!0===n.ended&&0===n.length))}function E(e){return e&&null!=e[l]?e[l]:"boolean"!=typeof e?.readable?null:!y(e)&&(d(e)&&e.readable&&!w(e))}function S(e){return"boolean"!=typeof e?.writable?null:!y(e)&&(p(e)&&e.writable&&!b(e))}function _(e){return"boolean"==typeof e._closed&&"boolean"==typeof e._defaultKeepAlive&&"boolean"==typeof e._removedConnection&&"boolean"==typeof e._removedContLen}function x(e){return"boolean"==typeof e._sent100&&_(e)}t.exports={kDestroyed:a,isDisturbed:function(e){var t;return!(!e||!(null!==(t=e[c])&&void 0!==t?t:e.readableDidRead||e.readableAborted))},kIsDisturbed:c,isErrored:function(e){var t,n,r,o,i,a,l,c,u,f;return!(!e||!(null!==(t=null!==(n=null!==(r=null!==(o=null!==(i=null!==(a=e[s])&&void 0!==a?a:e.readableErrored)&&void 0!==i?i:e.writableErrored)&&void 0!==o?o:null===(l=e._readableState)||void 0===l?void 0:l.errorEmitted)&&void 0!==r?r:null===(c=e._writableState)||void 0===c?void 0:c.errorEmitted)&&void 0!==n?n:null===(u=e._readableState)||void 0===u?void 0:u.errored)&&void 0!==t?t:null!==(f=e._writableState)&&void 0!==f&&f.errored))},kIsErrored:s,isReadable:E,kIsReadable:l,kIsClosedPromise:u,kControllerErrorFunction:f,isClosed:function(e){if(!h(e))return null;if("boolean"==typeof e.closed)return e.closed;let t=e._writableState,n=e._readableState;return"boolean"==typeof t?.closed||"boolean"==typeof n?.closed?t?.closed||n?.closed:"boolean"==typeof e._closed&&_(e)?e._closed:null},isDestroyed:y,isDuplexNodeStream:function(e){return!(!e||"function"!=typeof e.pipe||!e._readableState||"function"!=typeof e.on||"function"!=typeof e.write)},isFinished:function(e,t){return h(e)?!!y(e)||!(!1!==t?.readable&&E(e)||!1!==t?.writable&&S(e)):null},isIterable:function(e,t){return null!=e&&(!0===t?"function"==typeof e[r]:!1===t?"function"==typeof e[o]:"function"==typeof e[r]||"function"==typeof e[o])},isReadableNodeStream:d,isReadableStream:g,isReadableEnded:function(e){if(!d(e))return null;if(!0===e.readableEnded)return!0;let t=e._readableState;return!(!t||t.errored)&&("boolean"!=typeof t?.ended?null:t.ended)},isReadableFinished:w,isReadableErrored:function(e){var t,n;return h(e)?e.readableErrored?e.readableErrored:null!==(t=null===(n=e._readableState)||void 0===n?void 0:n.errored)&&void 0!==t?t:null:null},isNodeStream:h,isWebStream:function(e){return g(e)||m(e)||v(e)},isWritable:S,isWritableNodeStream:p,isWritableStream:m,isWritableEnded:b,isWritableFinished:function(e,t){if(!p(e))return null;if(!0===e.writableFinished)return!0;let n=e._writableState;return(null==n||!n.errored)&&("boolean"!=typeof n?.finished?null:!!(n.finished||!1===t&&!0===n.ended&&0===n.length))},isWritableErrored:function(e){var t,n;return h(e)?e.writableErrored?e.writableErrored:null!==(t=null===(n=e._writableState)||void 0===n?void 0:n.errored)&&void 0!==t?t:null:null},isServerRequest:function(e){var t;return"boolean"==typeof e._consuming&&"boolean"==typeof e._dumped&&void 0===(null===(t=e.req)||void 0===t?void 0:t.upgradeOrConnect)},isServerResponse:x,willEmitClose:function(e){if(!h(e))return null;let t=e._writableState,n=e._readableState,r=t||n;return!r&&x(e)||!!(r&&r.autoDestroy&&r.emitClose&&!1===r.closed)},isTransformStream:v}})),on=te(((e,t)=>{oe(),Kt(),Lt();var n=nn(),{AbortError:r,codes:o}=en(),{ERR_INVALID_ARG_TYPE:i,ERR_STREAM_PREMATURE_CLOSE:a}=o,{kEmptyObject:s,once:l}=Qt(),{validateAbortSignal:c,validateFunction:u,validateObject:f,validateBoolean:d}=tn(),{Promise:p,PromisePrototypeThen:h}=Xt(),{isClosed:g,isReadable:m,isReadableNodeStream:v,isReadableStream:y,isReadableFinished:b,isReadableErrored:w,isWritable:E,isWritableNodeStream:S,isWritableStream:_,isWritableFinished:x,isWritableErrored:k,isNodeStream:C,willEmitClose:T,kIsClosedPromise:O}=rn();function A(e){return e.setHeader&&"function"==typeof e.abort}var P=()=>{};function I(e,t,o){var d,p;if(2===arguments.length?(o=t,t=s):null==t?t=s:f(t,"options"),u(o,"callback"),c(t.signal,"options.signal"),o=l(o),y(e)||_(e))return R(e,t,o);if(!C(e))throw new i("stream",["ReadableStream","WritableStream","Stream"],e);let h=null!==(d=t.readable)&&void 0!==d?d:v(e),O=null!==(p=t.writable)&&void 0!==p?p:S(e),I=e._writableState,M=e._readableState,j=()=>{e.writable||D()},L=T(e)&&v(e)===h&&S(e)===O,N=x(e,!1),D=()=>{N=!0,e.destroyed&&(L=!1),(!L||e.readable&&!h)&&(!h||F)&&o.call(e)},F=b(e,!1),B=()=>{F=!0,e.destroyed&&(L=!1),(!L||e.writable&&!O)&&(!O||N)&&o.call(e)},$=t=>{o.call(e,t)},Z=g(e),z=()=>{Z=!0;let t=k(e)||w(e);return t&&"boolean"!=typeof t?o.call(e,t):h&&!F&&v(e,!0)&&!b(e,!1)?o.call(e,new a):!O||N||x(e,!1)?void o.call(e):o.call(e,new a)},U=()=>{Z=!0;let t=k(e)||w(e);if(t&&"boolean"!=typeof t)return o.call(e,t);o.call(e)},H=()=>{e.req.on("finish",D)};A(e)?(e.on("complete",D),L||e.on("abort",z),e.req?H():e.on("request",H)):O&&!I&&(e.on("end",j),e.on("close",j)),!L&&"boolean"==typeof e.aborted&&e.on("aborted",z),e.on("end",B),e.on("finish",D),!1!==t.error&&e.on("error",$),e.on("close",z),Z?n.nextTick(z):null!=I&&I.errorEmitted||null!=M&&M.errorEmitted?L||n.nextTick(U):(!h&&(!L||m(e))&&(N||!1===E(e))||!O&&(!L||E(e))&&(F||!1===m(e))||M&&e.req&&e.aborted)&&n.nextTick(U);let W=()=>{o=P,e.removeListener("aborted",z),e.removeListener("complete",D),e.removeListener("abort",z),e.removeListener("request",H),e.req&&e.req.removeListener("finish",D),e.removeListener("end",j),e.removeListener("close",j),e.removeListener("finish",D),e.removeListener("end",B),e.removeListener("error",$),e.removeListener("close",z)};if(t.signal&&!Z){let i=()=>{let n=o;W(),n.call(e,new r(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)n.nextTick(i);else{let n=o;o=l(((...r)=>{t.signal.removeEventListener("abort",i),n.apply(e,r)})),t.signal.addEventListener("abort",i)}}return W}function R(e,t,o){let i=!1,a=P;if(t.signal)if(a=()=>{i=!0,o.call(e,new r(void 0,{cause:t.signal.reason}))},t.signal.aborted)n.nextTick(a);else{let n=o;o=l(((...r)=>{t.signal.removeEventListener("abort",a),n.apply(e,r)})),t.signal.addEventListener("abort",a)}let s=(...t)=>{i||n.nextTick((()=>o.apply(e,t)))};return h(e[O].promise,s,s),P}t.exports=I,t.exports.finished=function(e,t){var n;let r=!1;return null===t&&(t=s),null!==(n=t)&&void 0!==n&&n.cleanup&&(d(t.cleanup,"cleanup"),r=t.cleanup),new p(((n,o)=>{let i=I(e,t,(e=>{r&&i(),e?o(e):n()}))}))}})),an=te(((e,t)=>{oe(),Kt(),Lt();var n=nn(),{aggregateTwoErrors:r,codes:{ERR_MULTIPLE_CALLBACK:o},AbortError:i}=en(),{Symbol:a}=Xt(),{kDestroyed:s,isDestroyed:l,isFinished:c,isServerRequest:u}=rn(),f=a("kDestroy"),d=a("kConstruct");function p(e,t,n){e&&(e.stack,t&&!t.errored&&(t.errored=e),n&&!n.errored&&(n.errored=e))}function h(e,t,r){let o=!1;function i(t){if(o)return;o=!0;let i=e._readableState,a=e._writableState;p(t,a,i),a&&(a.closed=!0),i&&(i.closed=!0),"function"==typeof r&&r(t),t?n.nextTick(g,e,t):n.nextTick(m,e)}try{e._destroy(t||null,i)}catch(e){i(e)}}function g(e,t){v(e,t),m(e)}function m(e){let t=e._readableState,n=e._writableState;n&&(n.closeEmitted=!0),t&&(t.closeEmitted=!0),(null!=n&&n.emitClose||null!=t&&t.emitClose)&&e.emit("close")}function v(e,t){let n=e._readableState,r=e._writableState;null!=r&&r.errorEmitted||null!=n&&n.errorEmitted||(r&&(r.errorEmitted=!0),n&&(n.errorEmitted=!0),e.emit("error",t))}function y(e,t,r){let o=e._readableState,i=e._writableState;if(null!=i&&i.destroyed||null!=o&&o.destroyed)return this;null!=o&&o.autoDestroy||null!=i&&i.autoDestroy?e.destroy(t):t&&(t.stack,i&&!i.errored&&(i.errored=t),o&&!o.errored&&(o.errored=t),r?n.nextTick(v,e,t):v(e,t))}function b(e){let t=!1;function r(r){if(t)return void y(e,r??new o);t=!0;let i=e._readableState,a=e._writableState,s=a||i;i&&(i.constructed=!0),a&&(a.constructed=!0),s.destroyed?e.emit(f,r):r?y(e,r,!0):n.nextTick(w,e)}try{e._construct((e=>{n.nextTick(r,e)}))}catch(e){n.nextTick(r,e)}}function w(e){e.emit(d)}function E(e){return e?.setHeader&&"function"==typeof e.abort}function S(e){e.emit("close")}function _(e,t){e.emit("error",t),n.nextTick(S,e)}t.exports={construct:function(e,t){if("function"!=typeof e._construct)return;let r=e._readableState,o=e._writableState;r&&(r.constructed=!1),o&&(o.constructed=!1),e.once(d,t),!(e.listenerCount(d)>1)&&n.nextTick(b,e)},destroyer:function(e,t){!e||l(e)||(!t&&!c(e)&&(t=new i),u(e)?(e.socket=null,e.destroy(t)):E(e)?e.abort():E(e.req)?e.req.abort():"function"==typeof e.destroy?e.destroy(t):"function"==typeof e.close?e.close():t?n.nextTick(_,e,t):n.nextTick(S,e),e.destroyed||(e[s]=!0))},destroy:function(e,t){let n=this._readableState,o=this._writableState,i=o||n;return null!=o&&o.destroyed||null!=n&&n.destroyed?("function"==typeof t&&t(),this):(p(e,o,n),o&&(o.destroyed=!0),n&&(n.destroyed=!0),i.constructed?h(this,e,t):this.once(f,(function(n){h(this,r(n,e),t)})),this)},undestroy:function(){let e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=!1===e.readable,e.endEmitted=!1===e.readable),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=!1===t.writable,t.ending=!1===t.writable,t.finished=!1===t.writable)},errorOrDestroy:y}}));function sn(){sn.init.call(this)}function ln(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function cn(e){return void 0===e._maxListeners?sn.defaultMaxListeners:e._maxListeners}function un(e,t,n,r){var o,i,a,s;if(ln(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=cn(e))>0&&a.length>o&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return e}function fn(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function dn(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=fn.bind(r);return o.listener=n,r.wrapFn=o,o}function pn(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n{oe(),Kt(),Lt(),yn="object"==typeof Reflect?Reflect:null,bn=yn&&"function"==typeof yn.apply?yn.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},vn=yn&&"function"==typeof yn.ownKeys?yn.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},wn=Number.isNaN||function(e){return e!=e},mn=sn,sn.EventEmitter=sn,sn.prototype._events=void 0,sn.prototype._eventsCount=0,sn.prototype._maxListeners=void 0,En=10,Object.defineProperty(sn,"defaultMaxListeners",{enumerable:!0,get:function(){return En},set:function(e){if("number"!=typeof e||e<0||wn(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");En=e}}),sn.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},sn.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||wn(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},sn.prototype.getMaxListeners=function(){return cn(this)},sn.prototype.emit=function(e){for(var t=[],n=1;n0&&(i=t[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var s=o[e];if(void 0===s)return!1;if("function"==typeof s)bn(s,this,t);else{var l=s.length,c=gn(s,l);for(n=0;n=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},sn.prototype.listeners=function(e){return pn(this,e,!0)},sn.prototype.rawListeners=function(e){return pn(this,e,!1)},sn.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):hn.call(e,t)},sn.prototype.listenerCount=hn,sn.prototype.eventNames=function(){return this._eventsCount>0?vn(this._events):[]},(Sn=mn).EventEmitter,Sn.defaultMaxListeners,Sn.init,Sn.listenerCount,Sn.EventEmitter,Sn.defaultMaxListeners,Sn.init,Sn.listenerCount})),xn={};ne(xn,{EventEmitter:()=>kn,default:()=>Sn,defaultMaxListeners:()=>Cn,init:()=>Tn,listenerCount:()=>On,on:()=>An,once:()=>Pn});var kn,Cn,Tn,On,An,Pn,In=ee((()=>{oe(),Kt(),Lt(),_n(),_n(),Sn.once=function(e,t){return new Promise(((n,r)=>{function o(...t){void 0!==i&&e.removeListener("error",i),n(t)}let i;"error"!==t&&(i=t=>{e.removeListener(name,o),r(t)},e.once("error",i)),e.once(t,o)}))},Sn.on=function(e,t){let n=[],r=[],o=null,i=!1,a={async next(){let e=n.shift();if(e)return createIterResult(e,!1);if(o){let e=Promise.reject(o);return o=null,e}return i?createIterResult(void 0,!0):new Promise(((e,t)=>r.push({resolve:e,reject:t})))},async return(){e.removeListener(t,s),e.removeListener("error",l),i=!0;for(let e of r)e.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(n){o=n,e.removeListener(t,s),e.removeListener("error",l)},[Symbol.asyncIterator](){return this}};return e.on(t,s),e.on("error",l),a;function s(...e){let t=r.shift();t?t.resolve(createIterResult(e,!1)):n.push(e)}function l(e){i=!0;let t=r.shift();t?t.reject(e):o=e,a.return()}},({EventEmitter:kn,defaultMaxListeners:Cn,init:Tn,listenerCount:On,on:An,once:Pn}=Sn)})),Rn=te(((e,t)=>{oe(),Kt(),Lt();var{ArrayIsArray:n,ObjectSetPrototypeOf:r}=Xt(),{EventEmitter:o}=(In(),re(xn));function i(e){o.call(this,e)}function a(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?n(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}r(i.prototype,o.prototype),r(i,o),i.prototype.pipe=function(e,t){let n=this;function r(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",r),e.on("drain",i),!e._isStdio&&(!t||!1!==t.end)&&(n.on("end",l),n.on("close",c));let s=!1;function l(){s||(s=!0,e.end())}function c(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){f(),0===o.listenerCount(this,"error")&&this.emit("error",e)}function f(){n.removeListener("data",r),e.removeListener("drain",i),n.removeListener("end",l),n.removeListener("close",c),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",f),n.removeListener("close",f),e.removeListener("close",f)}return a(n,"error",u),a(e,"error",u),n.on("end",f),n.on("close",f),e.on("close",f),e.emit("pipe",n),e},t.exports={Stream:i,prependListener:a}})),Mn=te(((e,t)=>{oe(),Kt(),Lt();var{AbortError:n,codes:r}=en(),{isNodeStream:o,isWebStream:i,kControllerErrorFunction:a}=rn(),s=on(),{ERR_INVALID_ARG_TYPE:l}=r;t.exports.addAbortSignal=function(e,n){if(((e,t)=>{if("object"!=typeof e||!("aborted"in e))throw new l(t,"AbortSignal",e)})(e,"signal"),!o(n)&&!i(n))throw new l("stream",["ReadableStream","WritableStream","Stream"],n);return t.exports.addAbortSignalNoValidate(e,n)},t.exports.addAbortSignalNoValidate=function(e,t){if("object"!=typeof e||!("aborted"in e))return t;let r=o(t)?()=>{t.destroy(new n(void 0,{cause:e.reason}))}:()=>{t[a](new n(void 0,{cause:e.reason}))};return e.aborted?r():(e.addEventListener("abort",r),s(t,(()=>e.removeEventListener("abort",r)))),t}})),jn=te(((e,t)=>{oe(),Kt(),Lt();var{StringPrototypeSlice:n,SymbolIterator:r,TypedArrayPrototypeSet:o,Uint8Array:i}=Xt(),{Buffer:a}=(Gt(),re(Nt)),{inspect:s}=Qt();t.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){let t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}unshift(e){let t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}shift(){if(0===this.length)return;let e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(0===this.length)return"";let t=this.head,n=""+t.data;for(;null!==(t=t.next);)n+=e+t.data;return n}concat(e){if(0===this.length)return a.alloc(0);let t=a.allocUnsafe(e>>>0),n=this.head,r=0;for(;n;)o(t,n.data,r),r+=n.data.length,n=n.next;return t}consume(e,t){let n=this.head.data;if(ei.length)){e===i.length?(t+=i,++o,r.next?this.head=r.next:this.head=this.tail=null):(t+=n(i,0,e),this.head=r,r.data=n(i,e));break}t+=i,e-=i.length,++o}while(null!==(r=r.next));return this.length-=o,t}_getBuffer(e){let t=a.allocUnsafe(e),n=e,r=this.head,s=0;do{let a=r.data;if(!(e>a.length)){e===a.length?(o(t,a,n-e),++s,r.next?this.head=r.next:this.head=this.tail=null):(o(t,new i(a.buffer,a.byteOffset,e),n-e),this.head=r,r.data=a.slice(e));break}o(t,a,n-e),e-=a.length,++s}while(null!==(r=r.next));return this.length-=s,t}[Symbol.for("nodejs.util.inspect.custom")](e,t){return s(this,{...t,depth:0,customInspect:!1})}}})),Ln=te(((e,t)=>{oe(),Kt(),Lt();var{MathFloor:n,NumberIsInteger:r}=Xt(),{ERR_INVALID_ARG_VALUE:o}=en().codes;function i(e){return e?16:16384}t.exports={getHighWaterMark:function(e,t,a,s){let l=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,s,a);if(null!=l){if(!r(l)||l<0){throw new o(s?`options.${a}`:"options.highWaterMark",l)}return n(l)}return i(e.objectMode)},getDefaultHighWaterMark:i}}));function Nn(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function Dn(e,t,n){for(var r,o,i=[],a=t;a>18&63]+Pr[o>>12&63]+Pr[o>>6&63]+Pr[63&o]);return i.join("")}function Fn(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,Bn.prototype),t}function Bn(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return zn(e)}return $n(e,t,n)}function $n(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!Bn.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|Wn(e,t),r=Fn(n),o=r.write(e,t);return o!==n&&(r=r.slice(0,o)),r}(e,t);if(ArrayBuffer.isView(e))return Un(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(mr(e,ArrayBuffer)||e&&mr(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(mr(e,SharedArrayBuffer)||e&&mr(e.buffer,SharedArrayBuffer)))return function(e,t,n){if(t<0||e.byteLength=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647..toString(16)+" bytes");return 0|e}function Wn(e,t){if(Bn.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||mr(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return pr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return hr(e).length;default:if(o)return r?-1:pr(e).length;t=(""+t).toLowerCase(),o=!0}}function Vn(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return ar(this,t,n);case"utf8":case"utf-8":return rr(this,t,n);case"ascii":return or(this,t,n);case"latin1":case"binary":return ir(this,t,n);case"base64":return nr(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return sr(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function qn(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Gn(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),vr(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=Bn.from(t,r)),Bn.isBuffer(t))return 0===t.length?-1:Kn(e,t,n,r,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Kn(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function Kn(e,t,n,r,o){var i,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=n;is&&(n=s-l),i=n;i>=0;i--){for(var f=!0,d=0;do&&(r=o):r=o;var i=t.length;r>i/2&&(r=i/2);for(var a=0;a>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function nr(e,t,n){return 0===t&&n===e.length?Fr.fromByteArray(e):Fr.fromByteArray(e.slice(t,n))}function rr(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:c>223?3:c>191?2:1;if(o+f<=n)switch(f){case 1:c<128&&(u=c);break;case 2:128==(192&(i=e[o+1]))&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(l=(15&c)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,f=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function cr(e,t,n,r,o,i){if(!Bn.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function ur(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function fr(e,t,n,r,o){return t=+t,n>>>=0,o||ur(e,0,n,4),Br.write(e,t,n,r,23,4),n+4}function dr(e,t,n,r,o){return t=+t,n>>>=0,o||ur(e,0,n,8),Br.write(e,t,n,r,52,8),n+8}function pr(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function hr(e){return Fr.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(Zr,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function gr(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function mr(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function vr(e){return e!=e}function yr(e,t){for(var n in e)t[n]=e[n]}function br(e,t,n){return Wr(e,t,n)}function wr(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(qr.isEncoding===Gr||!Gr(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=_r,this.end=xr,t=4;break;case"utf8":this.fillLast=Sr,t=4;break;case"base64":this.text=kr,this.end=Cr,t=3;break;default:return this.write=Tr,void(this.end=Or)}this.lastNeed=0,this.lastTotal=0,this.lastChar=qr.allocUnsafe(t)}function Er(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function Sr(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function _r(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function xr(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function kr(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function Cr(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function Tr(e){return e.toString(this.encoding)}function Or(e){return e&&e.length?this.write(e):""}var Ar,Pr,Ir,Rr,Mr,jr,Lr,Nr,Dr,Fr,Br,$r,Zr,zr,Ur,Hr,Wr,Vr,qr,Gr,Kr=ee((()=>{for(oe(),Kt(),Lt(),Ar={byteLength:function(e){var t=Nn(e),n=t[0],r=t[1];return 3*(n+r)/4-r},toByteArray:function(e){var t,n,r=Nn(e),o=r[0],i=r[1],a=new Rr(function(e,t,n){return 3*(t+n)/4-n}(0,o,i)),s=0,l=i>0?o-4:o;for(n=0;n>16&255,a[s++]=t>>8&255,a[s++]=255&t;return 2===i&&(t=Ir[e.charCodeAt(n)]<<2|Ir[e.charCodeAt(n+1)]>>4,a[s++]=255&t),1===i&&(t=Ir[e.charCodeAt(n)]<<10|Ir[e.charCodeAt(n+1)]<<4|Ir[e.charCodeAt(n+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t),a},fromByteArray:function(e){for(var t,n=e.length,r=n%3,o=[],i=0,a=n-r;ia?a:i+16383));return 1===r?(t=e[n-1],o.push(Pr[t>>2]+Pr[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],o.push(Pr[t>>10]+Pr[t>>4&63]+Pr[t<<2&63]+"=")),o.join("")}},Pr=[],Ir=[],Rr=typeof Uint8Array<"u"?Uint8Array:Array,jr=0,Lr=(Mr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").length;jr>1,u=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-u)-1,p>>=-u,u+=s;u>0;i=256*i+e[t+f],f+=d,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+f],f+=d,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=c}return(p?-1:1)*a*Math.pow(2,i-r)},write:function(e,t,n,r,o,i){var a,s,l,c=8*i-o-1,u=(1<>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=u?(s=0,a=u):a+f>=1?(s=(t*l-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&s,p+=h,s/=256,o-=8);for(a=a<0;e[n+p]=255&a,p+=h,a/=256,c-=8);e[n+p-h]|=128*g}},Dr={},Fr=Ar,Br=Nr,$r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null,Dr.Buffer=Bn,Dr.SlowBuffer=function(e){return+e!=e&&(e=0),Bn.alloc(+e)},Dr.INSPECT_MAX_BYTES=50,Dr.kMaxLength=2147483647,Bn.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch{return!1}}(),Bn.TYPED_ARRAY_SUPPORT||typeof console>"u"||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(Bn.prototype,"parent",{enumerable:!0,get:function(){if(Bn.isBuffer(this))return this.buffer}}),Object.defineProperty(Bn.prototype,"offset",{enumerable:!0,get:function(){if(Bn.isBuffer(this))return this.byteOffset}}),Bn.poolSize=8192,Bn.from=function(e,t,n){return $n(e,t,n)},Object.setPrototypeOf(Bn.prototype,Uint8Array.prototype),Object.setPrototypeOf(Bn,Uint8Array),Bn.alloc=function(e,t,n){return o=t,i=n,Zn(r=e),r<=0?Fn(r):void 0!==o?"string"==typeof i?Fn(r).fill(o,i):Fn(r).fill(o):Fn(r);var r,o,i},Bn.allocUnsafe=function(e){return zn(e)},Bn.allocUnsafeSlow=function(e){return zn(e)},Bn.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==Bn.prototype},Bn.compare=function(e,t){if(mr(e,Uint8Array)&&(e=Bn.from(e,e.offset,e.byteLength)),mr(t,Uint8Array)&&(t=Bn.from(t,t.offset,t.byteLength)),!Bn.isBuffer(e)||!Bn.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);ot&&(e+=" ... "),""},$r&&(Bn.prototype[$r]=Bn.prototype.inspect),Bn.prototype.compare=function(e,t,n,r,o){if(mr(e,Uint8Array)&&(e=Bn.from(e,e.offset,e.byteLength)),!Bn.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),l=this.slice(r,o),c=e.slice(t,n),u=0;u>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return Yn(this,e,t,n);case"utf8":case"utf-8":return Xn(this,e,t,n);case"ascii":return Qn(this,e,t,n);case"latin1":case"binary":return Jn(this,e,t,n);case"base64":return er(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return tr(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},Bn.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},Bn.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||lr(e,t,this.length);for(var r=this[e],o=1,i=0;++i>>=0,t>>>=0,n||lr(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},Bn.prototype.readUInt8=function(e,t){return e>>>=0,t||lr(e,1,this.length),this[e]},Bn.prototype.readUInt16LE=function(e,t){return e>>>=0,t||lr(e,2,this.length),this[e]|this[e+1]<<8},Bn.prototype.readUInt16BE=function(e,t){return e>>>=0,t||lr(e,2,this.length),this[e]<<8|this[e+1]},Bn.prototype.readUInt32LE=function(e,t){return e>>>=0,t||lr(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Bn.prototype.readUInt32BE=function(e,t){return e>>>=0,t||lr(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Bn.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||lr(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},Bn.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||lr(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},Bn.prototype.readInt8=function(e,t){return e>>>=0,t||lr(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Bn.prototype.readInt16LE=function(e,t){e>>>=0,t||lr(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Bn.prototype.readInt16BE=function(e,t){e>>>=0,t||lr(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Bn.prototype.readInt32LE=function(e,t){return e>>>=0,t||lr(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Bn.prototype.readInt32BE=function(e,t){return e>>>=0,t||lr(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Bn.prototype.readFloatLE=function(e,t){return e>>>=0,t||lr(e,4,this.length),Br.read(this,e,!0,23,4)},Bn.prototype.readFloatBE=function(e,t){return e>>>=0,t||lr(e,4,this.length),Br.read(this,e,!1,23,4)},Bn.prototype.readDoubleLE=function(e,t){return e>>>=0,t||lr(e,8,this.length),Br.read(this,e,!0,52,8)},Bn.prototype.readDoubleBE=function(e,t){return e>>>=0,t||lr(e,8,this.length),Br.read(this,e,!1,52,8)},Bn.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||cr(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i>>=0,n>>>=0,r||cr(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},Bn.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||cr(this,e,t,1,255,0),this[t]=255&e,t+1},Bn.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||cr(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},Bn.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||cr(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},Bn.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||cr(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},Bn.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||cr(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},Bn.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);cr(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+n},Bn.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);cr(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},Bn.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||cr(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},Bn.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||cr(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},Bn.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||cr(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},Bn.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||cr(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},Bn.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||cr(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},Bn.prototype.writeFloatLE=function(e,t,n){return fr(this,e,t,!0,n)},Bn.prototype.writeFloatBE=function(e,t,n){return fr(this,e,t,!1,n)},Bn.prototype.writeDoubleLE=function(e,t,n){return dr(this,e,t,!0,n)},Bn.prototype.writeDoubleBE=function(e,t,n){return dr(this,e,t,!1,n)},Bn.prototype.copy=function(e,t,n,r){if(!Bn.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return o},Bn.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!Bn.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var o=e.charCodeAt(0);("utf8"===r&&o<128||"latin1"===r)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i=0?(o>0&&(e.lastNeed=o-1),o):--r=0?(o>0&&(e.lastNeed=o-2),o):--r=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},wr.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length},Vr.StringDecoder,Vr.StringDecoder})),Yr={};ne(Yr,{StringDecoder:()=>Xr,default:()=>Vr});var Xr,Qr=ee((()=>{oe(),Kt(),Lt(),Kr(),Kr(),Xr=Vr.StringDecoder})),Jr=te(((e,t)=>{oe(),Kt(),Lt();var n=nn(),{PromisePrototypeThen:r,SymbolAsyncIterator:o,SymbolIterator:i}=Xt(),{Buffer:a}=(Gt(),re(Nt)),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_NULL_VALUES:l}=en().codes;t.exports=function(e,t,c){let u,f;if("string"==typeof t||t instanceof a)return new e({objectMode:!0,...c,read(){this.push(t),this.push(null)}});if(t&&t[o])f=!0,u=t[o]();else{if(!t||!t[i])throw new s("iterable",["Iterable"],t);f=!1,u=t[i]()}let d=new e({objectMode:!0,highWaterMark:1,...c}),p=!1;return d._read=function(){p||(p=!0,async function(){for(;;){try{let{value:e,done:t}=f?await u.next():u.next();if(t)d.push(null);else{let t=e&&"function"==typeof e.then?await e:e;if(null===t)throw p=!1,new l;if(d.push(t))continue;p=!1}}catch(e){d.destroy(e)}break}}())},d._destroy=function(e,t){r(async function(e){let t=null!=e,n="function"==typeof u.throw;if(t&&n){let{value:t,done:n}=await u.throw(e);if(await t,n)return}if("function"==typeof u.return){let{value:e}=await u.return();await e}}(e),(()=>n.nextTick(t,e)),(r=>n.nextTick(t,r||e)))},d}})),eo=te(((e,t)=>{oe(),Kt(),Lt();var n=nn(),{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:i,NumberParseInt:a,ObjectDefineProperties:s,ObjectKeys:l,ObjectSetPrototypeOf:c,Promise:u,SafeSet:f,SymbolAsyncIterator:d,Symbol:p}=Xt();t.exports=F,F.ReadableState=D;var{EventEmitter:h}=(In(),re(xn)),{Stream:g,prependListener:m}=Rn(),{Buffer:v}=(Gt(),re(Nt)),{addAbortSignal:y}=Mn(),b=on(),w=Qt().debuglog("stream",(e=>{w=e})),E=jn(),S=an(),{getHighWaterMark:_,getDefaultHighWaterMark:x}=Ln(),{aggregateTwoErrors:k,codes:{ERR_INVALID_ARG_TYPE:C,ERR_METHOD_NOT_IMPLEMENTED:T,ERR_OUT_OF_RANGE:O,ERR_STREAM_PUSH_AFTER_EOF:A,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:P}}=en(),{validateObject:I}=tn(),R=p("kPaused"),{StringDecoder:M}=(Qr(),re(Yr)),j=Jr();c(F.prototype,g.prototype),c(F,g);var L=()=>{},{errorOrDestroy:N}=S;function D(e,t,n){"boolean"!=typeof n&&(n=t instanceof ro()),this.objectMode=!(!e||!e.objectMode),n&&(this.objectMode=this.objectMode||!(!e||!e.readableObjectMode)),this.highWaterMark=e?_(this,e,"readableHighWaterMark",n):x(!1),this.buffer=new E,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[R]=null,this.errorEmitted=!1,this.emitClose=!e||!1!==e.emitClose,this.autoDestroy=!e||!1!==e.autoDestroy,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,e&&e.encoding&&(this.decoder=new M(e.encoding),this.encoding=e.encoding)}function F(e){if(!(this instanceof F))return new F(e);let t=this instanceof ro();this._readableState=new D(e,this,t),e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&!t&&y(e.signal,this)),g.call(this,e),S.construct(this,(()=>{this._readableState.needReadable&&W(this,this._readableState)}))}function B(e,t,n,r){w("readableAddChunk",t);let o,i=e._readableState;if(i.objectMode||("string"==typeof t?(n=n||i.defaultEncoding,i.encoding!==n&&(r&&i.encoding?t=v.from(t,n).toString(i.encoding):(t=v.from(t,n),n=""))):t instanceof v?n="":g._isUint8Array(t)?(t=g._uint8ArrayToBuffer(t),n=""):null!=t&&(o=new C("chunk",["string","Buffer","Uint8Array"],t))),o)N(e,o);else if(null===t)i.reading=!1,function(e,t){if(w("onEofChunk"),!t.ended){if(t.decoder){let e=t.decoder.end();e&&e.length&&(t.buffer.push(e),t.length+=t.objectMode?1:e.length)}t.ended=!0,t.sync?U(e):(t.needReadable=!1,t.emittedReadable=!0,H(e))}}(e,i);else if(i.objectMode||t&&t.length>0)if(r)if(i.endEmitted)N(e,new P);else{if(i.destroyed||i.errored)return!1;$(e,i,t,!0)}else if(i.ended)N(e,new A);else{if(i.destroyed||i.errored)return!1;i.reading=!1,i.decoder&&!n?(t=i.decoder.write(t),i.objectMode||0!==t.length?$(e,i,t,!1):W(e,i)):$(e,i,t,!1)}else r||(i.reading=!1,W(e,i));return!i.ended&&(i.length0?(t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null,t.dataEmitted=!0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&U(e)),W(e,t)}F.prototype.destroy=S.destroy,F.prototype._undestroy=S.undestroy,F.prototype._destroy=function(e,t){t(e)},F.prototype[h.captureRejectionSymbol]=function(e){this.destroy(e)},F.prototype.push=function(e,t){return B(this,e,t,!1)},F.prototype.unshift=function(e,t){return B(this,e,t,!0)},F.prototype.isPaused=function(){let e=this._readableState;return!0===e[R]||!1===e.flowing},F.prototype.setEncoding=function(e){let t=new M(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;let n=this._readableState.buffer,r="";for(let e of n)r+=t.write(e);return n.clear(),""!==r&&n.push(r),this._readableState.length=r.length,this};var Z;function z(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:i(e)?t.flowing&&t.length?t.buffer.first().length:t.length:e<=t.length?e:t.ended?t.length:0}function U(e){let t=e._readableState;w("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(w("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(H,e))}function H(e){let t=e._readableState;w("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&!t.errored&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,Y(e)}function W(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,n.nextTick(V,e,t))}function V(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!1===t[R]?t.flowing=!0:e.listenerCount("data")>0?e.resume():t.readableListening||(t.flowing=null)}function G(e){w("readable nexttick read 0"),e.read(0)}function K(e,t){w("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),Y(e),t.flowing&&!t.reading&&e.read(0)}function Y(e){let t=e._readableState;for(w("flow",t.flowing);t.flowing&&null!==e.read(););}function X(e,t){"function"!=typeof e.read&&(e=F.wrap(e,{objectMode:!0}));let n=async function*(e,t){let n=L;function r(t){this===e?(n(),n=L):n=t}e.on("readable",r);let o,i=b(e,{writable:!1},(e=>{o=e?k(o,e):null,n(),n=L}));try{for(;;){let t=e.destroyed?null:e.read();if(null!==t)yield t;else{if(o)throw o;if(null===o)return;await new u(r)}}}catch(e){throw o=k(o,e),o}finally{!o&&!1===t?.destroyOnReturn||void 0!==o&&!e._readableState.autoDestroy?(e.off("readable",r),i()):S.destroyer(e,null)}}(e,t);return n.stream=e,n}function Q(e,t){if(0===t.length)return null;let n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function J(e){let t=e._readableState;w("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(ee,t,e))}function ee(e,t){if(w("endReadableNT",e.endEmitted,e.length),!e.errored&&!e.closeEmitted&&!e.endEmitted&&0===e.length)if(e.endEmitted=!0,t.emit("end"),t.writable&&!1===t.allowHalfOpen)n.nextTick(te,t);else if(e.autoDestroy){let e=t._writableState;(!e||e.autoDestroy&&(e.finished||!1===e.writable))&&t.destroy()}}function te(e){e.writable&&!e.writableEnded&&!e.destroyed&&e.end()}function ne(){return void 0===Z&&(Z={}),Z}F.prototype.read=function(e){w("read",e),void 0===e?e=NaN:o(e)||(e=a(e,10));let t=this._readableState,n=e;if(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>1073741824)throw new O("size","<= 1GiB",e);return e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,++e}(e)),0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return w("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?J(this):U(this),null;if(0===(e=z(e,t))&&t.ended)return 0===t.length&&J(this),null;let r,i=t.needReadable;if(w("need readable",i),(0===t.length||t.length-e0?Q(e,t):null,null===r?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&J(this)),null!==r&&!t.errorEmitted&&!t.closeEmitted&&(t.dataEmitted=!0,this.emit("data",r)),r},F.prototype._read=function(e){throw new T("_read()")},F.prototype.pipe=function(e,t){let r=this,o=this._readableState;1===o.pipes.length&&(o.multiAwaitDrain||(o.multiAwaitDrain=!0,o.awaitDrainWriters=new f(o.awaitDrainWriters?[o.awaitDrainWriters]:[]))),o.pipes.push(e),w("pipe count=%d opts=%j",o.pipes.length,t);let i=t&&!1===t.end||e===n.stdout||e===n.stderr?v:s;function a(t,n){w("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,w("cleanup"),e.removeListener("close",h),e.removeListener("finish",g),l&&e.removeListener("drain",l),e.removeListener("error",p),e.removeListener("unpipe",a),r.removeListener("end",s),r.removeListener("end",v),r.removeListener("data",d),c=!0,l&&o.awaitDrainWriters&&(!e._writableState||e._writableState.needDrain)&&l())}function s(){w("onend"),e.end()}o.endEmitted?n.nextTick(i):r.once("end",i),e.on("unpipe",a);let l,c=!1;function u(){c||(1===o.pipes.length&&o.pipes[0]===e?(w("false write response, pause",0),o.awaitDrainWriters=e,o.multiAwaitDrain=!1):o.pipes.length>1&&o.pipes.includes(e)&&(w("false write response, pause",o.awaitDrainWriters.size),o.awaitDrainWriters.add(e)),r.pause()),l||(l=function(e,t){return function(){let n=e._readableState;n.awaitDrainWriters===t?(w("pipeOnDrain",1),n.awaitDrainWriters=null):n.multiAwaitDrain&&(w("pipeOnDrain",n.awaitDrainWriters.size),n.awaitDrainWriters.delete(t)),(!n.awaitDrainWriters||0===n.awaitDrainWriters.size)&&e.listenerCount("data")&&e.resume()}}(r,e),e.on("drain",l))}function d(t){w("ondata");let n=e.write(t);w("dest.write",n),!1===n&&u()}function p(t){if(w("onerror",t),v(),e.removeListener("error",p),0===e.listenerCount("error")){let n=e._writableState||e._readableState;n&&!n.errorEmitted?N(e,t):e.emit("error",t)}}function h(){e.removeListener("finish",g),v()}function g(){w("onfinish"),e.removeListener("close",h),v()}function v(){w("unpipe"),r.unpipe(e)}return r.on("data",d),m(e,"error",p),e.once("close",h),e.once("finish",g),e.emit("pipe",r),!0===e.writableNeedDrain?o.flowing&&u():o.flowing||(w("pipe resume"),r.resume()),e},F.prototype.unpipe=function(e){let t=this._readableState;if(0===t.pipes.length)return this;if(!e){let e=t.pipes;t.pipes=[],this.pause();for(let t=0;t0,!1!==o.flowing&&this.resume()):"readable"===e&&!o.endEmitted&&!o.readableListening&&(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,w("on readable",o.length,o.reading),o.length?U(this):o.reading||n.nextTick(G,this)),r},F.prototype.addListener=F.prototype.on,F.prototype.removeListener=function(e,t){let r=g.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(q,this),r},F.prototype.off=F.prototype.removeListener,F.prototype.removeAllListeners=function(e){let t=g.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&n.nextTick(q,this),t},F.prototype.resume=function(){let e=this._readableState;return e.flowing||(w("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(K,e,t))}(this,e)),e[R]=!1,this},F.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[R]=!0,this},F.prototype.wrap=function(e){let t=!1;e.on("data",(n=>{!this.push(n)&&e.pause&&(t=!0,e.pause())})),e.on("end",(()=>{this.push(null)})),e.on("error",(e=>{N(this,e)})),e.on("close",(()=>{this.destroy()})),e.on("destroy",(()=>{this.destroy()})),this._read=()=>{t&&e.resume&&(t=!1,e.resume())};let n=l(e);for(let t=1;t{oe(),Kt(),Lt();var n=nn(),{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:i,ObjectDefineProperty:a,ObjectDefineProperties:s,ObjectSetPrototypeOf:l,StringPrototypeToLowerCase:c,Symbol:u,SymbolHasInstance:f}=Xt();t.exports=M,M.WritableState=I;var{EventEmitter:d}=(In(),re(xn)),p=Rn().Stream,{Buffer:h}=(Gt(),re(Nt)),g=an(),{addAbortSignal:m}=Mn(),{getHighWaterMark:v,getDefaultHighWaterMark:y}=Ln(),{ERR_INVALID_ARG_TYPE:b,ERR_METHOD_NOT_IMPLEMENTED:w,ERR_MULTIPLE_CALLBACK:E,ERR_STREAM_CANNOT_PIPE:S,ERR_STREAM_DESTROYED:_,ERR_STREAM_ALREADY_FINISHED:x,ERR_STREAM_NULL_VALUES:k,ERR_STREAM_WRITE_AFTER_END:C,ERR_UNKNOWN_ENCODING:T}=en().codes,{errorOrDestroy:O}=g;function A(){}l(M.prototype,p.prototype),l(M,p);var P=u("kOnFinished");function I(e,t,n){"boolean"!=typeof n&&(n=t instanceof ro()),this.objectMode=!(!e||!e.objectMode),n&&(this.objectMode=this.objectMode||!(!e||!e.writableObjectMode)),this.highWaterMark=e?v(this,e,"writableHighWaterMark",n):y(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let r=!(!e||!1!==e.decodeStrings);this.decodeStrings=!r,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=D.bind(void 0,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,R(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!e||!1!==e.emitClose,this.autoDestroy=!e||!1!==e.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[P]=[]}function R(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}function M(e){let t=this instanceof ro();if(!t&&!i(M,this))return new M(e);this._writableState=new I(e,this,t),e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&m(e.signal,this)),p.call(this,e),g.construct(this,(()=>{let e=this._writableState;e.writing||Z(this,e),H(this,e)}))}function j(e,t,r,o){let i,a=e._writableState;if("function"==typeof r)o=r,r=a.defaultEncoding;else{if(r){if("buffer"!==r&&!h.isEncoding(r))throw new T(r)}else r=a.defaultEncoding;"function"!=typeof o&&(o=A)}if(null===t)throw new k;if(!a.objectMode)if("string"==typeof t)!1!==a.decodeStrings&&(t=h.from(t,r),r="buffer");else if(t instanceof h)r="buffer";else{if(!p._isUint8Array(t))throw new b("chunk",["string","Buffer","Uint8Array"],t);t=p._uint8ArrayToBuffer(t),r="buffer"}return a.ending?i=new C:a.destroyed&&(i=new _("write")),i?(n.nextTick(o,i),O(e,i,!0),i):(a.pendingcb++,function(e,t,n,r,o){let i=t.objectMode?1:n.length;t.length+=i;let a=t.lengthr.bufferedIndex&&Z(e,r),o?null!==r.afterWriteTickInfo&&r.afterWriteTickInfo.cb===i?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:i,stream:e,state:r},n.nextTick(F,r.afterWriteTickInfo)):B(e,r,1,i))):O(e,new E)}function F({stream:e,state:t,count:n,cb:r}){return t.afterWriteTickInfo=null,B(e,t,n,r)}function B(e,t,n,r){for(!t.ending&&!e.destroyed&&0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"));n-- >0;)t.pendingcb--,r();t.destroyed&&$(t),H(e,t)}function $(e){if(e.writing)return;for(let n=e.bufferedIndex;n1&&e._writev){t.pendingcb-=a-1;let o=t.allNoop?A:e=>{for(let t=s;t256?(n.splice(0,s),t.bufferedIndex=0):t.bufferedIndex=s}t.bufferProcessing=!1}function z(e){return e.ending&&!e.destroyed&&e.constructed&&0===e.length&&!e.errored&&0===e.buffered.length&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}function U(e,t){!t.prefinished&&!t.finalCalled&&("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.finalCalled=!0,function(e,t){let r=!1;function o(o){if(r)O(e,o??E());else if(r=!0,t.pendingcb--,o){let n=t[P].splice(0);for(let e=0;e{z(t)?W(e,t):t.pendingcb--}),e,t)):z(t)&&(t.pendingcb++,W(e,t))))}function W(e,t){t.pendingcb--,t.finished=!0;let n=t[P].splice(0);for(let e=0;e{oe(),Kt(),Lt();var n=nn(),r=(Gt(),re(Nt)),{isReadable:o,isWritable:i,isIterable:a,isNodeStream:s,isReadableNodeStream:l,isWritableNodeStream:c,isDuplexNodeStream:u}=rn(),f=on(),{AbortError:d,codes:{ERR_INVALID_ARG_TYPE:p,ERR_INVALID_RETURN_VALUE:h}}=en(),{destroyer:g}=an(),m=ro(),v=eo(),{createDeferredPromise:y}=Qt(),b=Jr(),w=globalThis.Blob||r.Blob,E=typeof w<"u"?function(e){return e instanceof w}:function(e){return!1},S=globalThis.AbortController||Jt().AbortController,{FunctionPrototypeCall:_}=Xt(),x=class extends m{constructor(e){super(e),!1===e?.readable&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===e?.writable&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};function k(e){let t,n,r,a,s,l=e.readable&&"function"!=typeof e.readable.read?v.wrap(e.readable):e.readable,c=e.writable,u=!!o(l),p=!!i(c);function h(e){let t=a;a=null,t?t(e):e&&s.destroy(e)}return s=new x({readableObjectMode:!(null==l||!l.readableObjectMode),writableObjectMode:!(null==c||!c.writableObjectMode),readable:u,writable:p}),p&&(f(c,(e=>{p=!1,e&&g(l,e),h(e)})),s._write=function(e,n,r){c.write(e,n)?r():t=r},s._final=function(e){c.end(),n=e},c.on("drain",(function(){if(t){let e=t;t=null,e()}})),c.on("finish",(function(){if(n){let e=n;n=null,e()}}))),u&&(f(l,(e=>{u=!1,e&&g(l,e),h(e)})),l.on("readable",(function(){if(r){let e=r;r=null,e()}})),l.on("end",(function(){s.push(null)})),s._read=function(){for(;;){let e=l.read();if(null===e)return void(r=s._read);if(!s.push(e))return}}),s._destroy=function(e,o){!e&&null!==a&&(e=new d),r=null,t=null,n=null,null===a?o(e):(a=o,g(c,e),g(l,e))},s}t.exports=function e(t,r){if(u(t))return t;if(l(t))return k({readable:t});if(c(t))return k({writable:t});if(s(t))return k({writable:!1,readable:!1});if("function"==typeof t){let{value:e,write:o,final:i,destroy:s}=function(e){let{promise:t,resolve:r}=y(),o=new S,i=o.signal;return{value:e(async function*(){for(;;){let e=t;t=null;let{chunk:o,done:a,cb:s}=await e;if(n.nextTick(s),a)return;if(i.aborted)throw new d(void 0,{cause:i.reason});({promise:t,resolve:r}=y()),yield o}}(),{signal:i}),write(e,t,n){let o=r;r=null,o({chunk:e,done:!1,cb:n})},final(e){let t=r;r=null,t({done:!0,cb:e})},destroy(e,t){o.abort(),t(e)}}}(t);if(a(e))return b(x,e,{objectMode:!0,write:o,final:i,destroy:s});let l=e?.then;if("function"==typeof l){let t,r=_(l,e,(e=>{if(null!=e)throw new h("nully","body",e)}),(e=>{g(t,e)}));return t=new x({objectMode:!0,readable:!1,write:o,final(e){i((async()=>{try{await r,n.nextTick(e,null)}catch(t){n.nextTick(e,t)}}))},destroy:s})}throw new h("Iterable, AsyncIterable or AsyncFunction",r,e)}if(E(t))return e(t.arrayBuffer());if(a(t))return b(x,t,{objectMode:!0,writable:!1});if("object"==typeof t?.writable||"object"==typeof t?.readable){return k({readable:null!=t&&t.readable?l(t?.readable)?t?.readable:e(t.readable):void 0,writable:null!=t&&t.writable?c(t?.writable)?t?.writable:e(t.writable):void 0})}let o=t?.then;if("function"==typeof o){let e;return _(o,t,(t=>{null!=t&&e.push(t),e.push(null)}),(t=>{g(e,t)})),e=new x({objectMode:!0,writable:!1,read(){}})}throw new p(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],t)}})),ro=te(((e,t)=>{oe(),Kt(),Lt();var{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:i}=Xt();t.exports=u;var a,s,l=eo(),c=to();i(u.prototype,l.prototype),i(u,l);{let e=o(c.prototype);for(let t=0;t{oe(),Kt(),Lt();var{ObjectSetPrototypeOf:n,Symbol:r}=Xt();t.exports=l;var{ERR_METHOD_NOT_IMPLEMENTED:o}=en().codes,i=ro(),{getHighWaterMark:a}=Ln();n(l.prototype,i.prototype),n(l,i);var s=r("kCallback");function l(e){if(!(this instanceof l))return new l(e);let t=e?a(this,e,"readableHighWaterMark",!0):null;0===t&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),i.call(this,e),this._readableState.sync=!1,this[s]=null,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",u)}function c(e){"function"!=typeof this._flush||this.destroyed?(this.push(null),e&&e()):this._flush(((t,n)=>{t?e?e(t):this.destroy(t):(null!=n&&this.push(n),this.push(null),e&&e())}))}function u(){this._final!==c&&c.call(this)}l.prototype._final=c,l.prototype._transform=function(e,t,n){throw new o("_transform()")},l.prototype._write=function(e,t,n){let r=this._readableState,o=this._writableState,i=r.length;this._transform(e,t,((e,t)=>{e?n(e):(null!=t&&this.push(t),o.ended||i===r.length||r.length{oe(),Kt(),Lt();var{ObjectSetPrototypeOf:n}=Xt();t.exports=o;var r=oo();function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}n(o.prototype,r.prototype),n(o,r),o.prototype._transform=function(e,t,n){n(null,e)}})),ao=te(((e,t)=>{oe(),Kt(),Lt();var n,r,o=nn(),{ArrayIsArray:i,Promise:a,SymbolAsyncIterator:s}=Xt(),l=on(),{once:c}=Qt(),u=an(),f=ro(),{aggregateTwoErrors:d,codes:{ERR_INVALID_ARG_TYPE:p,ERR_INVALID_RETURN_VALUE:h,ERR_MISSING_ARGS:g,ERR_STREAM_DESTROYED:m,ERR_STREAM_PREMATURE_CLOSE:v},AbortError:y}=en(),{validateFunction:b,validateAbortSignal:w}=tn(),{isIterable:E,isReadable:S,isReadableNodeStream:_,isNodeStream:x,isTransformStream:k,isWebStream:C,isReadableStream:T,isReadableEnded:O}=rn(),A=globalThis.AbortController||Jt().AbortController;function P(e,t,n){let r=!1;return e.on("close",(()=>{r=!0})),{destroy:t=>{r||(r=!0,u.destroyer(e,t||new m("pipe")))},cleanup:l(e,{readable:t,writable:n},(e=>{r=!e}))}}function I(e){if(E(e))return e;if(_(e))return async function*(e){r||(r=eo()),yield*r.prototype[s].call(e)}(e);throw new p("val",["Readable","Iterable","AsyncIterable"],e)}async function R(e,t,n,{end:r}){let o,i=null,s=e=>{if(e&&(o=e),i){let e=i;i=null,e()}},c=()=>new a(((e,t)=>{o?t(o):i=()=>{o?t(o):e()}}));t.on("drain",s);let u=l(t,{readable:!1},s);try{t.writableNeedDrain&&await c();for await(let n of e)t.write(n)||await c();r&&t.end(),await c(),n()}catch(e){n(o!==e?d(o,e):e)}finally{u(),t.off("drain",s)}}async function M(e,t,n,{end:r}){k(t)&&(t=t.writable);let o=t.getWriter();try{for await(let t of e)await o.ready,o.write(t).catch((()=>{}));await o.ready,r&&await o.close(),n()}catch(e){try{await o.abort(e),n(e)}catch(e){n(e)}}}function j(e,t,r){if(1===e.length&&i(e[0])&&(e=e[0]),e.length<2)throw new g("streams");let a=new A,s=a.signal,l=r?.signal,c=[];function u(){N(new y)}w(l,"options.signal"),l?.addEventListener("abort",u);let d,m,v,b=[],O=0;function j(e){N(e,0==--O)}function N(e,n){if(e&&(!d||"ERR_STREAM_PREMATURE_CLOSE"===d.code)&&(d=e),d||n){for(;b.length;)b.shift()(d);l?.removeEventListener("abort",u),a.abort(),n&&(d||c.forEach((e=>e())),o.nextTick(t,d,m))}}for(let t=0;t0,u=a||!1!==r?.end,d=t===e.length-1;if(x(i)){let e=function(e){e&&"AbortError"!==e.name&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code&&j(e)};if(u){let{destroy:e,cleanup:t}=P(i,a,l);b.push(e),S(i)&&d&&c.push(t)}i.on("error",e),S(i)&&d&&c.push((()=>{i.removeListener("error",e)}))}if(0===t)if("function"==typeof i){if(v=i({signal:s}),!E(v))throw new h("Iterable, AsyncIterable or Stream","source",v)}else v=E(i)||_(i)||k(i)?i:f.from(i);else if("function"==typeof i){var D;if(k(v))v=I(null===(D=v)||void 0===D?void 0:D.readable);else v=I(v);if(v=i(v,{signal:s}),a){if(!E(v,!0))throw new h("AsyncIterable",`transform[${t-1}]`,v)}else{var F;n||(n=io());let e=new n({objectMode:!0}),t=null===(F=v)||void 0===F?void 0:F.then;if("function"==typeof t)O++,t.call(v,(t=>{m=t,null!=t&&e.write(t),u&&e.end(),o.nextTick(j)}),(t=>{e.destroy(t),o.nextTick(j,t)}));else if(E(v,!0))O++,R(v,e,j,{end:u});else{if(!T(v)&&!k(v))throw new h("AsyncIterable or Promise","destination",v);{let t=v.readable||v;O++,R(t,e,j,{end:u})}}v=e;let{destroy:r,cleanup:i}=P(v,!1,!0);b.push(r),d&&c.push(i)}}else if(x(i)){if(_(v)){O+=2;let e=L(v,i,j,{end:u});S(i)&&d&&c.push(e)}else if(k(v)||T(v)){let e=v.readable||v;O++,R(e,i,j,{end:u})}else{if(!E(v))throw new p("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],v);O++,R(v,i,j,{end:u})}v=i}else if(C(i)){if(_(v))O++,M(I(v),i,j,{end:u});else if(T(v)||E(v))O++,M(v,i,j,{end:u});else{if(!k(v))throw new p("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],v);O++,M(v.readable,i,j,{end:u})}v=i}else v=f.from(i)}return(null!=s&&s.aborted||null!=l&&l.aborted)&&o.nextTick(u),v}function L(e,t,n,{end:r}){let i=!1;if(t.on("close",(()=>{i||n(new v)})),e.pipe(t,{end:!1}),r){let n=function(){i=!0,t.end()};O(e)?o.nextTick(n):e.once("end",n)}else n();return l(e,{readable:!0,writable:!1},(t=>{let r=e._readableState;t&&"ERR_STREAM_PREMATURE_CLOSE"===t.code&&r&&r.ended&&!r.errored&&!r.errorEmitted?e.once("end",n).once("error",n):n(t)})),l(t,{readable:!1,writable:!0},n)}t.exports={pipelineImpl:j,pipeline:function(...e){return j(e,c(function(e){return b(e[e.length-1],"streams[stream.length - 1]"),e.pop()}(e)))}}})),so=te(((e,t)=>{oe(),Kt(),Lt();var{pipeline:n}=ao(),r=ro(),{destroyer:o}=an(),{isNodeStream:i,isReadable:a,isWritable:s,isWebStream:l,isTransformStream:c,isWritableStream:u,isReadableStream:f}=rn(),{AbortError:d,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:h}}=en(),g=on();t.exports=function(...e){if(0===e.length)throw new h("streams");if(1===e.length)return r.from(e[0]);let t,m,v,y,b,w=[...e];if("function"==typeof e[0]&&(e[0]=r.from(e[0])),"function"==typeof e[e.length-1]){let t=e.length-1;e[t]=r.from(e[t])}for(let t=0;t0&&!(s(e[t])||u(e[t])||c(e[t])))throw new p(`streams[${t}]`,w[t],"must be writable")}let E=e[0],S=n(e,(function(e){let t=y;y=null,t?t(e):e?b.destroy(e):!x&&!_&&b.destroy()})),_=!!(s(E)||u(E)||c(E)),x=!!(a(S)||f(S)||c(S));if(b=new r({writableObjectMode:!(null==E||!E.writableObjectMode),readableObjectMode:!(null==S||!S.writableObjectMode),writable:_,readable:x}),_){if(i(E))b._write=function(e,n,r){E.write(e,n)?r():t=r},b._final=function(e){E.end(),m=e},E.on("drain",(function(){if(t){let e=t;t=null,e()}}));else if(l(E)){let e=(c(E)?E.writable:E).getWriter();b._write=async function(t,n,r){try{await e.ready,e.write(t).catch((()=>{})),r()}catch(e){r(e)}},b._final=async function(t){try{await e.ready,e.close().catch((()=>{})),m=t}catch(e){t(e)}}}let e=c(S)?S.readable:S;g(e,(()=>{if(m){let e=m;m=null,e()}}))}if(x)if(i(S))S.on("readable",(function(){if(v){let e=v;v=null,e()}})),S.on("end",(function(){b.push(null)})),b._read=function(){for(;;){let e=S.read();if(null===e)return void(v=b._read);if(!b.push(e))return}};else if(l(S)){let e=(c(S)?S.readable:S).getReader();b._read=async function(){for(;;)try{let{value:t,done:n}=await e.read();if(!b.push(t))return;if(n)return void b.push(null)}catch{return}}}return b._destroy=function(e,n){!e&&null!==y&&(e=new d),v=null,t=null,m=null,null===y?n(e):(y=n,i(S)&&o(S,e))},b}})),lo=te(((e,t)=>{oe(),Kt(),Lt();var n=globalThis.AbortController||Jt().AbortController,{codes:{ERR_INVALID_ARG_VALUE:r,ERR_INVALID_ARG_TYPE:o,ERR_MISSING_ARGS:i,ERR_OUT_OF_RANGE:a},AbortError:s}=en(),{validateAbortSignal:l,validateInteger:c,validateObject:u}=tn(),f=Xt().Symbol("kWeak"),{finished:d}=on(),p=so(),{addAbortSignalNoValidate:h}=Mn(),{isWritable:g,isNodeStream:m}=rn(),{ArrayPrototypePush:v,MathFloor:y,Number:b,NumberIsNaN:w,Promise:E,PromiseReject:S,PromisePrototypeThen:_,Symbol:x}=Xt(),k=x("kEmpty"),C=x("kEof");function T(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);null!=t&&u(t,"options"),null!=t?.signal&&l(t.signal,"options.signal");let r=1;return null!=t?.concurrency&&(r=y(t.concurrency)),c(r,"concurrency",1),async function*(){var o,i;let a=new n,l=this,c=[],u=a.signal,f={signal:u},d=()=>a.abort();null!=t&&null!==(o=t.signal)&&void 0!==o&&o.aborted&&d(),null==t||null===(i=t.signal)||void 0===i||i.addEventListener("abort",d);let p,h,g=!1;function m(){g=!0}!async function(){try{for await(let t of l){var n;if(g)return;if(u.aborted)throw new s;try{t=e(t,f)}catch(e){t=S(e)}t!==k&&("function"==typeof(null===(n=t)||void 0===n?void 0:n.catch)&&t.catch(m),c.push(t),p&&(p(),p=null),!g&&c.length&&c.length>=r&&await new E((e=>{h=e})))}c.push(C)}catch(e){let t=S(e);_(t,void 0,m),c.push(t)}finally{var o;g=!0,p&&(p(),p=null),null==t||null===(o=t.signal)||void 0===o||o.removeEventListener("abort",d)}}();try{for(;;){for(;c.length>0;){let e=await c[0];if(e===C)return;if(u.aborted)throw new s;e!==k&&(yield e),c.shift(),h&&(h(),h=null)}await new E((e=>{p=e}))}}finally{a.abort(),g=!0,h&&(h(),h=null)}}.call(this)}async function O(e,t){for await(let n of A.call(this,e,t))return!0;return!1}function A(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);return T.call(this,(async function(t,n){return await e(t,n)?t:k}),t)}var P=class extends i{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};function I(e){if(e=b(e),w(e))return 0;if(e<0)throw new a("number",">= 0",e);return e}t.exports.streamReturningOperators={asIndexedPairs:function(e){return null!=e&&u(e,"options"),null!=e?.signal&&l(e.signal,"options.signal"),async function*(){let t=0;for await(let r of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new s({cause:e.signal.reason});yield[t++,r]}}.call(this)},drop:function(e,t){return null!=t&&u(t,"options"),null!=t?.signal&&l(t.signal,"options.signal"),e=I(e),async function*(){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new s;for await(let n of this){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new s;e--<=0&&(yield n)}}.call(this)},filter:A,flatMap:function(e,t){let n=T.call(this,e,t);return async function*(){for await(let e of n)yield*e}.call(this)},map:T,take:function(e,t){return null!=t&&u(t,"options"),null!=t?.signal&&l(t.signal,"options.signal"),e=I(e),async function*(){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new s;for await(let n of this){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new s;if(!(e-- >0))return;yield n}}.call(this)},compose:function(e,t){if(null!=t&&u(t,"options"),null!=t?.signal&&l(t.signal,"options.signal"),m(e)&&!g(e))throw new r("stream",e,"must be writable");let n=p(this,e);return null!=t&&t.signal&&h(t.signal,n),n}},t.exports.promiseReturningOperators={every:async function(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);return!await O.call(this,(async(...t)=>!await e(...t)),t)},forEach:async function(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);for await(let n of T.call(this,(async function(t,n){return await e(t,n),k}),t));},reduce:async function(e,t,r){var i;if("function"!=typeof e)throw new o("reducer",["Function","AsyncFunction"],e);null!=r&&u(r,"options"),null!=r?.signal&&l(r.signal,"options.signal");let a=arguments.length>1;if(null!=r&&null!==(i=r.signal)&&void 0!==i&&i.aborted){let e=new s(void 0,{cause:r.signal.reason});throw this.once("error",(()=>{})),await d(this.destroy(e)),e}let c=new n,p=c.signal;if(null!=r&&r.signal){let e={once:!0,[f]:this};r.signal.addEventListener("abort",(()=>c.abort()),e)}let h=!1;try{for await(let n of this){var g;if(h=!0,null!=r&&null!==(g=r.signal)&&void 0!==g&&g.aborted)throw new s;a?t=await e(t,n,{signal:p}):(t=n,a=!0)}if(!h&&!a)throw new P}finally{c.abort()}return t},toArray:async function(e){null!=e&&u(e,"options"),null!=e?.signal&&l(e.signal,"options.signal");let t=[];for await(let r of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new s(void 0,{cause:e.signal.reason});v(t,r)}return t},some:O,find:async function(e,t){for await(let n of A.call(this,e,t))return n}}})),co=te(((e,t)=>{oe(),Kt(),Lt();var{ArrayPrototypePop:n,Promise:r}=Xt(),{isIterable:o,isNodeStream:i,isWebStream:a}=rn(),{pipelineImpl:s}=ao(),{finished:l}=on();uo(),t.exports={finished:l,pipeline:function(...e){return new r(((t,r)=>{let l,c,u=e[e.length-1];if(u&&"object"==typeof u&&!i(u)&&!o(u)&&!a(u)){let t=n(e);l=t.signal,c=t.end}s(e,((e,n)=>{e?r(e):t(n)}),{signal:l,end:c})}))}}})),uo=te(((e,t)=>{oe(),Kt(),Lt();var{Buffer:n}=(Gt(),re(Nt)),{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:i}=Xt(),{promisify:{custom:a}}=Qt(),{streamReturningOperators:s,promiseReturningOperators:l}=lo(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:c}}=en(),u=so(),{pipeline:f}=ao(),{destroyer:d}=an(),p=on(),h=co(),g=rn(),m=t.exports=Rn().Stream;m.isDisturbed=g.isDisturbed,m.isErrored=g.isErrored,m.isReadable=g.isReadable,m.Readable=eo();for(let e of o(s)){let t=function(...e){if(new.target)throw c();return m.Readable.from(i(n,this,e))};t;let n=s[e];r(t,"name",{__proto__:null,value:n.name}),r(t,"length",{__proto__:null,value:n.length}),r(m.Readable.prototype,e,{__proto__:null,value:t,enumerable:!1,configurable:!0,writable:!0})}for(let e of o(l)){let t=function(...e){if(new.target)throw c();return i(n,this,e)};t;let n=l[e];r(t,"name",{__proto__:null,value:n.name}),r(t,"length",{__proto__:null,value:n.length}),r(m.Readable.prototype,e,{__proto__:null,value:t,enumerable:!1,configurable:!0,writable:!0})}m.Writable=to(),m.Duplex=ro(),m.Transform=oo(),m.PassThrough=io(),m.pipeline=f;var{addAbortSignal:v}=Mn();m.addAbortSignal=v,m.finished=p,m.destroy=d,m.compose=u,r(m,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return h}}),r(f,a,{__proto__:null,enumerable:!0,get(){return h.pipeline}}),r(p,a,{__proto__:null,enumerable:!0,get(){return h.finished}}),m.Stream=m,m._isUint8Array=function(e){return e instanceof Uint8Array},m._uint8ArrayToBuffer=function(e){return n.from(e.buffer,e.byteOffset,e.byteLength)}})),fo=te(((e,t)=>{oe(),Kt(),Lt();var n=uo(),r=co(),o=n.Readable.destroy;t.exports=n.Readable,t.exports._uint8ArrayToBuffer=n._uint8ArrayToBuffer,t.exports._isUint8Array=n._isUint8Array,t.exports.isDisturbed=n.isDisturbed,t.exports.isErrored=n.isErrored,t.exports.isReadable=n.isReadable,t.exports.Readable=n.Readable,t.exports.Writable=n.Writable,t.exports.Duplex=n.Duplex,t.exports.Transform=n.Transform,t.exports.PassThrough=n.PassThrough,t.exports.addAbortSignal=n.addAbortSignal,t.exports.finished=n.finished,t.exports.destroy=n.destroy,t.exports.destroy=o,t.exports.pipeline=n.pipeline,t.exports.compose=n.compose,Object.defineProperty(n,"promises",{configurable:!0,enumerable:!0,get(){return r}}),t.exports.Stream=n.Stream,t.exports.default=t.exports})),po=te(((e,t)=>{oe(),Kt(),Lt(),"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),ho=te(((e,t)=>{oe(),Kt(),Lt();var{Buffer:n}=(Gt(),re(Nt)),r=Symbol.for("BufferList");function o(e){if(!(this instanceof o))return new o(e);o._init.call(this,e)}o._init=function(e){Object.defineProperty(this,r,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)},o.prototype._new=function(e){return new o(e)},o.prototype._offset=function(e){if(0===e)return[0,0];let t=0;for(let n=0;nthis.length||e<0)return;let t=this._offset(e);return this._bufs[t[0]][t[1]]},o.prototype.slice=function(e,t){return"number"==typeof e&&e<0&&(e+=this.length),"number"==typeof t&&t<0&&(t+=this.length),this.copy(null,0,e,t)},o.prototype.copy=function(e,t,r,o){if(("number"!=typeof r||r<0)&&(r=0),("number"!=typeof o||o>this.length)&&(o=this.length),r>=this.length||o<=0)return e||n.alloc(0);let i=!!e,a=this._offset(r),s=o-r,l=s,c=i&&t||0,u=a[1];if(0===r&&o===this.length){if(!i)return 1===this._bufs.length?this._bufs[0]:n.concat(this._bufs,this.length);for(let t=0;tn)){this._bufs[t].copy(e,c,u,u+l),c+=n;break}this._bufs[t].copy(e,c,u),c+=n,l-=n,u&&(u=0)}return e.length>c?e.slice(0,c):e},o.prototype.shallowSlice=function(e,t){if(e=e||0,t="number"!=typeof t?this.length:t,e<0&&(e+=this.length),t<0&&(t+=this.length),e===t)return this._new();let n=this._offset(e),r=this._offset(t),o=this._bufs.slice(n[0],r[0]+1);return 0===r[1]?o.pop():o[o.length-1]=o[o.length-1].slice(0,r[1]),0!==n[1]&&(o[0]=o[0].slice(n[1])),this._new(o)},o.prototype.toString=function(e,t,n){return this.slice(t,n).toString(e)},o.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;){if(!(e>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},o.prototype.duplicate=function(){let e=this._new();for(let t=0;tthis.length?this.length:t;let o=this._offset(t),i=o[0],a=o[1];for(;i=e.length){let n=t.indexOf(e,a);if(-1!==n)return this._reverseOffset([i,n]);a=t.length-e.length+1}else{let t=this._reverseOffset([i,a]);if(this._match(t,e))return t;a++}a=0}return-1},o.prototype._match=function(e,t){if(this.length-e{oe(),Kt(),Lt();var n=fo().Duplex,r=po(),o=ho();function i(e){if(!(this instanceof i))return new i(e);if("function"==typeof e){this._callback=e;let t=function(e){this._callback&&(this._callback(e),this._callback=null)}.bind(this);this.on("pipe",(function(e){e.on("error",t)})),this.on("unpipe",(function(e){e.removeListener("error",t)})),e=null}o._init.call(this,e),n.call(this)}r(i,n),Object.assign(i.prototype,o.prototype),i.prototype._new=function(e){return new i(e)},i.prototype._write=function(e,t,n){this._appendBuffer(e),"function"==typeof n&&n()},i.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)},i.prototype.end=function(e){n.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)},i.prototype._destroy=function(e,t){this._bufs.length=0,this.length=0,t(e)},i.prototype._isBufferList=function(e){return e instanceof i||e instanceof o||i.isBufferList(e)},i.isBufferList=o.isBufferList,t.exports=i,t.exports.BufferListStream=i,t.exports.BufferList=o})),mo=te(((e,t)=>{oe(),Kt(),Lt();t.exports=class{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}}})),vo=te(((e,t)=>{oe(),Kt(),Lt();var n=t.exports,{Buffer:r}=(Gt(),re(Nt));n.types={0:"reserved",1:"connect",2:"connack",3:"publish",4:"puback",5:"pubrec",6:"pubrel",7:"pubcomp",8:"subscribe",9:"suback",10:"unsubscribe",11:"unsuback",12:"pingreq",13:"pingresp",14:"disconnect",15:"auth"},n.requiredHeaderFlags={1:0,2:0,4:0,5:0,6:2,7:0,8:2,9:0,10:2,11:0,12:0,13:0,14:0,15:0},n.requiredHeaderFlagsErrors={};for(let e in n.requiredHeaderFlags){let t=n.requiredHeaderFlags[e];n.requiredHeaderFlagsErrors[e]="Invalid header flag bits, must be 0x"+t.toString(16)+" for "+n.types[e]+" packet"}n.codes={};for(let e in n.types){let t=n.types[e];n.codes[t]=e}n.CMD_SHIFT=4,n.CMD_MASK=240,n.DUP_MASK=8,n.QOS_MASK=3,n.QOS_SHIFT=1,n.RETAIN_MASK=1,n.VARBYTEINT_MASK=127,n.VARBYTEINT_FIN_MASK=128,n.VARBYTEINT_MAX=268435455,n.SESSIONPRESENT_MASK=1,n.SESSIONPRESENT_HEADER=r.from([n.SESSIONPRESENT_MASK]),n.CONNACK_HEADER=r.from([n.codes.connack<[0,1].map((o=>[0,1].map((i=>{let a=r.alloc(1);return a.writeUInt8(n.codes[e]<r.from([e]))),n.EMPTY={pingreq:r.from([n.codes.pingreq<<4,0]),pingresp:r.from([n.codes.pingresp<<4,0]),disconnect:r.from([n.codes.disconnect<<4,0])},n.MQTT5_PUBACK_PUBREC_CODES={0:"Success",16:"No matching subscribers",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",144:"Topic Name invalid",145:"Packet identifier in use",151:"Quota exceeded",153:"Payload format invalid"},n.MQTT5_PUBREL_PUBCOMP_CODES={0:"Success",146:"Packet Identifier not found"},n.MQTT5_SUBACK_CODES={0:"Granted QoS 0",1:"Granted QoS 1",2:"Granted QoS 2",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use",151:"Quota exceeded",158:"Shared Subscriptions not supported",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},n.MQTT5_UNSUBACK_CODES={0:"Success",17:"No subscription existed",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use"},n.MQTT5_DISCONNECT_CODES={0:"Normal disconnection",4:"Disconnect with Will Message",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",135:"Not authorized",137:"Server busy",139:"Server shutting down",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},n.MQTT5_AUTH_CODES={0:"Success",24:"Continue authentication",25:"Re-authenticate"}})),yo=te(((e,t)=>{oe(),Kt(),Lt();var n=1e3,r=6e4,o=60*r,i=24*o,a=7*i,s=365.25*i;function l(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}t.exports=function(e,t){t=t||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var l=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*s;case"weeks":case"week":case"w":return l*a;case"days":case"day":case"d":return l*i;case"hours":case"hour":case"hrs":case"hr":case"h":return l*o;case"minutes":case"minute":case"mins":case"min":case"m":return l*r;case"seconds":case"second":case"secs":case"sec":case"s":return l*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}(e);if("number"===c&&isFinite(e))return t.long?function(e){var t=Math.abs(e);return t>=i?l(e,t,i,"day"):t>=o?l(e,t,o,"hour"):t>=r?l(e,t,r,"minute"):t>=n?l(e,t,n,"second"):e+" ms"}(e):function(e){var t=Math.abs(e);return t>=i?Math.round(e/i)+"d":t>=o?Math.round(e/o)+"h":t>=r?Math.round(e/r)+"m":t>=n?Math.round(e/n)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}})),bo=te(((e,t)=>{oe(),Kt(),Lt(),t.exports=function(e){function t(e){let r,o,i,a=null;function s(...e){if(!s.enabled)return;let n=s,o=Number(new Date),i=o-(r||o);n.diff=i,n.prev=r,n.curr=o,r=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,o)=>{if("%%"===r)return"%";a++;let i=t.formatters[o];if("function"==typeof i){let t=e[a];r=i.call(n,t),e.splice(a,1),a--}return r})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){let r=t(this.namespace+(typeof n>"u"?":":n)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names.map(r),...t.skips.map(r).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];let n,r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t{oe(),Kt(),Lt(),e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let n="color: "+this.color;e.splice(1,0,n,"color: inherit");let r=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(o=r))})),e.splice(o,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch{}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch{}return!t&&typeof ie<"u"&&"env"in ie&&(t=ie.env.DEBUG),t},e.useColors=function(){return!(!(typeof window<"u"&&window.process)||"renderer"!==window.process.type&&!window.process.__nwjs)||!(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage=function(){try{return localStorage}catch{}}(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||(()=>{}),t.exports=bo()(e);var{formatters:n}=t.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}})),Eo=te(((e,t)=>{oe(),Kt(),Lt();var n=go(),{EventEmitter:r}=(In(),re(xn)),o=mo(),i=vo(),a=wo()("mqtt-packet:parser");t.exports=class e extends r{constructor(){super(),this.parser=this.constructor.parser}static parser(t){return this instanceof e?(this.settings=t||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):(new e).parser(t)}_resetState(){a("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new o,this.error=null,this._list=n(),this._stateCounter=0}parse(e){for(this.error&&this._resetState(),this._list.append(e),a("parse: current state: %s",this._states[this._stateCounter]);(-1!==this.packet.length||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error;)this._stateCounter++,a("parse: state complete. _stateCounter is now: %d",this._stateCounter),a("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return a("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){let e=this._list.readUInt8(0),t=e>>i.CMD_SHIFT;this.packet.cmd=i.types[t];let n=15&e,r=i.requiredHeaderFlags[t];return null!=r&&n!==r?this._emitError(new Error(i.requiredHeaderFlagsErrors[t])):(this.packet.retain=0!=(e&i.RETAIN_MASK),this.packet.qos=e>>i.QOS_SHIFT&i.QOS_MASK,this.packet.qos>2?this._emitError(new Error("Packet must not have both QoS bits set to 1")):(this.packet.dup=0!=(e&i.DUP_MASK),a("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0))}_parseLength(){let e=this._parseVarByteNum(!0);return e&&(this.packet.length=e.value,this._list.consume(e.bytes)),a("_parseLength %d",e.value),!!e}_parsePayload(){a("_parsePayload: payload %O",this._list);let e=!1;if(0===this.packet.length||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}e=!0}return a("_parsePayload complete result: %s",e),e}_parseConnect(){a("_parseConnect");let e,t,n,r,o={},s=this.packet,l=this._parseString();if(null===l)return this._emitError(new Error("Cannot parse protocolId"));if("MQTT"!==l&&"MQIsdp"!==l)return this._emitError(new Error("Invalid protocolId"));if(s.protocolId=l,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(s.protocolVersion=this._list.readUInt8(this._pos),s.protocolVersion>=128&&(s.bridgeMode=!0,s.protocolVersion=s.protocolVersion-128),3!==s.protocolVersion&&4!==s.protocolVersion&&5!==s.protocolVersion)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(1&this._list.readUInt8(this._pos))return this._emitError(new Error("Connect flag bit 0 must be 0, but got 1"));o.username=this._list.readUInt8(this._pos)&i.USERNAME_MASK,o.password=this._list.readUInt8(this._pos)&i.PASSWORD_MASK,o.will=this._list.readUInt8(this._pos)&i.WILL_FLAG_MASK;let c=!!(this._list.readUInt8(this._pos)&i.WILL_RETAIN_MASK),u=(this._list.readUInt8(this._pos)&i.WILL_QOS_MASK)>>i.WILL_QOS_SHIFT;if(o.will)s.will={},s.will.retain=c,s.will.qos=u;else{if(c)return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));if(u)return this._emitError(new Error("Will QoS must be set to zero when Will Flag is set to 0"))}if(s.clean=0!=(this._list.readUInt8(this._pos)&i.CLEAN_SESSION_MASK),this._pos++,s.keepalive=this._parseNum(),-1===s.keepalive)return this._emitError(new Error("Packet too short"));if(5===s.protocolVersion){let e=this._parseProperties();Object.getOwnPropertyNames(e).length&&(s.properties=e)}let f=this._parseString();if(null===f)return this._emitError(new Error("Packet too short"));if(s.clientId=f,a("_parseConnect: packet.clientId: %s",s.clientId),o.will){if(5===s.protocolVersion){let e=this._parseProperties();Object.getOwnPropertyNames(e).length&&(s.will.properties=e)}if(e=this._parseString(),null===e)return this._emitError(new Error("Cannot parse will topic"));if(s.will.topic=e,a("_parseConnect: packet.will.topic: %s",s.will.topic),t=this._parseBuffer(),null===t)return this._emitError(new Error("Cannot parse will payload"));s.will.payload=t,a("_parseConnect: packet.will.paylaod: %s",s.will.payload)}if(o.username){if(r=this._parseString(),null===r)return this._emitError(new Error("Cannot parse username"));s.username=r,a("_parseConnect: packet.username: %s",s.username)}if(o.password){if(n=this._parseBuffer(),null===n)return this._emitError(new Error("Cannot parse password"));s.password=n}return this.settings=s,a("_parseConnect: complete"),s}_parseConnack(){a("_parseConnack");let e=this.packet;if(this._list.length<1)return null;let t=this._list.readUInt8(this._pos++);if(t>1)return this._emitError(new Error("Invalid connack flags, bits 7-1 must be set to 0"));if(e.sessionPresent=!!(t&i.SESSIONPRESENT_MASK),5===this.settings.protocolVersion)this._list.length>=2?e.reasonCode=this._list.readUInt8(this._pos++):e.reasonCode=0;else{if(this._list.length<2)return null;e.returnCode=this._list.readUInt8(this._pos++)}if(-1===e.returnCode||-1===e.reasonCode)return this._emitError(new Error("Cannot parse return code"));if(5===this.settings.protocolVersion){let t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}a("_parseConnack: complete")}_parsePublish(){a("_parsePublish");let e=this.packet;if(e.topic=this._parseString(),null===e.topic)return this._emitError(new Error("Cannot parse topic"));if(!(e.qos>0)||this._parseMessageId()){if(5===this.settings.protocolVersion){let t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}e.payload=this._list.slice(this._pos,e.length),a("_parsePublish: payload from buffer list: %o",e.payload)}}_parseSubscribe(){a("_parseSubscribe");let e,t,n,r,o,s,l,c=this.packet;if(c.subscriptions=[],this._parseMessageId()){if(5===this.settings.protocolVersion){let e=this._parseProperties();Object.getOwnPropertyNames(e).length&&(c.properties=e)}if(c.length<=0)return this._emitError(new Error("Malformed subscribe, no payload specified"));for(;this._pos=c.length)return this._emitError(new Error("Malformed Subscribe Payload"));if(t=this._parseByte(),5===this.settings.protocolVersion){if(192&t)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-6 must be 0"))}else if(252&t)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-2 must be 0"));if(n=t&i.SUBSCRIBE_OPTIONS_QOS_MASK,n>2)return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));if(s=0!=(t>>i.SUBSCRIBE_OPTIONS_NL_SHIFT&i.SUBSCRIBE_OPTIONS_NL_MASK),o=0!=(t>>i.SUBSCRIBE_OPTIONS_RAP_SHIFT&i.SUBSCRIBE_OPTIONS_RAP_MASK),r=t>>i.SUBSCRIBE_OPTIONS_RH_SHIFT&i.SUBSCRIBE_OPTIONS_RH_MASK,r>2)return this._emitError(new Error("Invalid retain handling, must be <= 2"));l={topic:e,qos:n},5===this.settings.protocolVersion?(l.nl=s,l.rap=o,l.rh=r):this.settings.bridgeMode&&(l.rh=0,l.rap=!0,l.nl=!0),a("_parseSubscribe: push subscription `%s` to subscription",l),c.subscriptions.push(l)}}}_parseSuback(){a("_parseSuback");let e=this.packet;if(this.packet.granted=[],this._parseMessageId()){if(5===this.settings.protocolVersion){let t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}if(e.length<=0)return this._emitError(new Error("Malformed suback, no payload specified"));for(;this._pos2&&128!==e)return this._emitError(new Error("Invalid suback QoS, must be 0, 1, 2 or 128"));this.packet.granted.push(e)}}}_parseUnsubscribe(){a("_parseUnsubscribe");let e=this.packet;if(e.unsubscriptions=[],this._parseMessageId()){if(5===this.settings.protocolVersion){let t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}if(e.length<=0)return this._emitError(new Error("Malformed unsubscribe, no payload specified"));for(;this._pos2){switch(e.reasonCode=this._parseByte(),this.packet.cmd){case"puback":case"pubrec":if(!i.MQTT5_PUBACK_PUBREC_CODES[e.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break;case"pubrel":case"pubcomp":if(!i.MQTT5_PUBREL_PUBCOMP_CODES[e.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"))}a("_parseConfirmation: packet.reasonCode `%d`",e.reasonCode)}else e.reasonCode=0;if(e.length>3){let t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}}return!0}_parseDisconnect(){let e=this.packet;if(a("_parseDisconnect"),5===this.settings.protocolVersion){this._list.length>0?(e.reasonCode=this._parseByte(),i.MQTT5_DISCONNECT_CODES[e.reasonCode]||this._emitError(new Error("Invalid disconnect reason code"))):e.reasonCode=0;let t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}return a("_parseDisconnect result: true"),!0}_parseAuth(){a("_parseAuth");let e=this.packet;if(5!==this.settings.protocolVersion)return this._emitError(new Error("Not supported auth packet for this version MQTT"));if(e.reasonCode=this._parseByte(),!i.MQTT5_AUTH_CODES[e.reasonCode])return this._emitError(new Error("Invalid auth reason code"));let t=this._parseProperties();return Object.getOwnPropertyNames(t).length&&(e.properties=t),a("_parseAuth: result: true"),!0}_parseMessageId(){let e=this.packet;return e.messageId=this._parseNum(),null===e.messageId?(this._emitError(new Error("Cannot parse messageId")),!1):(a("_parseMessageId: packet.messageId %d",e.messageId),!0)}_parseString(e){let t=this._parseNum(),n=t+this._pos;if(-1===t||n>this._list.length||n>this.packet.length)return null;let r=this._list.toString("utf8",this._pos,n);return this._pos+=t,a("_parseString: result: %s",r),r}_parseStringPair(){return a("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){let e=this._parseNum(),t=e+this._pos;if(-1===e||t>this._list.length||t>this.packet.length)return null;let n=this._list.slice(this._pos,t);return this._pos+=e,a("_parseBuffer: result: %o",n),n}_parseNum(){if(this._list.length-this._pos<2)return-1;let e=this._list.readUInt16BE(this._pos);return this._pos+=2,a("_parseNum: result: %s",e),e}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;let e=this._list.readUInt32BE(this._pos);return this._pos+=4,a("_parse4ByteNum: result: %s",e),e}_parseVarByteNum(e){a("_parseVarByteNum");let t,n=0,r=1,o=0,s=!1,l=this._pos?this._pos:0;for(;n<4&&l+n=n&&this._emitError(new Error("Invalid variable byte integer")),l&&(this._pos+=n),s=!!s&&(e?{bytes:n,value:o}:o),a("_parseVarByteNum: result: %o",s),s}_parseByte(){let e;return this._pos{oe(),Kt(),Lt();var{Buffer:n}=(Gt(),re(Nt)),r={},o=n.isBuffer(n.from([1,2]).subarray(0,1));function i(e){let t=n.allocUnsafe(2);return t.writeUInt8(e>>8,0),t.writeUInt8(255&e,1),t}t.exports={cache:r,generateCache:function(){for(let e=0;e<65536;e++)r[e]=i(e)},generateNumber:i,genBufVariableByteInt:function(e){let t=0,r=0,i=n.allocUnsafe(4);do{t=e%128|0,(e=e/128|0)>0&&(t|=128),i.writeUInt8(t,r++)}while(e>0&&r<4);return e>0&&(r=0),o?i.subarray(0,r):i.slice(0,r)},generate4ByteBuffer:function(e){let t=n.allocUnsafe(4);return t.writeUInt32BE(e,0),t}}})),_o=te(((e,t)=>{oe(),Kt(),Lt(),typeof ie>"u"||!ie.version||0===ie.version.indexOf("v0.")||0===ie.version.indexOf("v1.")&&0!==ie.version.indexOf("v1.8.")?t.exports={nextTick:function(e,t,n,r){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,i,a=arguments.length;switch(a){case 0:case 1:return ie.nextTick(e);case 2:return ie.nextTick((function(){e.call(null,t)}));case 3:return ie.nextTick((function(){e.call(null,t,n)}));case 4:return ie.nextTick((function(){e.call(null,t,n,r)}));default:for(o=new Array(a-1),i=0;i{oe(),Kt(),Lt();var n=vo(),{Buffer:r}=(Gt(),re(Nt)),o=r.allocUnsafe(0),i=r.from([0]),a=So(),s=_o().nextTick,l=wo()("mqtt-packet:writeToStream"),c=a.cache,u=a.generateNumber,f=a.generateCache,d=a.genBufVariableByteInt,p=a.generate4ByteBuffer,h=S,g=!0;function m(e,t,a){switch(l("generate called"),t.cork&&(t.cork(),s(v,t)),g&&(g=!1,f()),l("generate: packet.cmd: %s",e.cmd),e.cmd){case"connect":return function(e,t,o){let i=e||{},a=i.protocolId||"MQTT",s=i.protocolVersion||4,l=i.will,c=i.clean,u=i.keepalive||0,f=i.clientId||"",d=i.username,p=i.password,g=i.properties;void 0===c&&(c=!0);let m,v,y=0;if(!a||"string"!=typeof a&&!r.isBuffer(a))return t.destroy(new Error("Invalid protocolId")),!1;if(y+=a.length+2,3!==s&&4!==s&&5!==s)return t.destroy(new Error("Invalid protocol version")),!1;if(y+=1,("string"==typeof f||r.isBuffer(f))&&(f||s>=4)&&(f||c))y+=r.byteLength(f)+2;else{if(s<4)return t.destroy(new Error("clientId must be supplied before 3.1.1")),!1;if(1*c==0)return t.destroy(new Error("clientId must be given if cleanSession set to 0")),!1}if("number"!=typeof u||u<0||u>65535||u%1!=0)return t.destroy(new Error("Invalid keepalive")),!1;if(y+=2,y+=1,5===s){if(m=k(t,g),!m)return!1;y+=m.length}if(l){if("object"!=typeof l)return t.destroy(new Error("Invalid will")),!1;if(!l.topic||"string"!=typeof l.topic)return t.destroy(new Error("Invalid will topic")),!1;if(y+=r.byteLength(l.topic)+2,y+=2,l.payload){if(!(l.payload.length>=0))return t.destroy(new Error("Invalid will payload")),!1;"string"==typeof l.payload?y+=r.byteLength(l.payload):y+=l.payload.length}if(v={},5===s){if(v=k(t,l.properties),!v)return!1;y+=v.length}}let E=!1;if(null!=d){if(!P(d))return t.destroy(new Error("Invalid username")),!1;E=!0,y+=r.byteLength(d)+2}if(null!=p){if(!E)return t.destroy(new Error("Username is required to use password")),!1;if(!P(p))return t.destroy(new Error("Invalid password")),!1;y+=A(p)+2}t.write(n.CONNECT_HEADER),b(t,y),x(t,a),i.bridgeMode&&(s+=128),t.write(131===s?n.VERSION131:132===s?n.VERSION132:4===s?n.VERSION4:5===s?n.VERSION5:n.VERSION3);let S=0;return S|=null!=d?n.USERNAME_MASK:0,S|=null!=p?n.PASSWORD_MASK:0,S|=l&&l.retain?n.WILL_RETAIN_MASK:0,S|=l&&l.qos?l.qos<0&&h(t,p),v?.write(),l("publish: payload: %o",d),t.write(d)}(e,t,a);case"puback":case"pubrec":case"pubrel":case"pubcomp":return function(e,t,o){let i=o?o.protocolVersion:4,a=e||{},s=a.cmd||"puback",l=a.messageId,c=a.dup&&"pubrel"===s?n.DUP_MASK:0,u=0,f=a.reasonCode,d=a.properties,p=5===i?3:2;if("pubrel"===s&&(u=1),"number"!=typeof l)return t.destroy(new Error("Invalid messageId")),!1;let g=null;if(5===i&&"object"==typeof d){if(g=C(t,d,o,p),!g)return!1;p+=g.length}return t.write(n.ACKS[s][u][c][0]),3===p&&(p+=0!==f?1:-1),b(t,p),h(t,l),5===i&&2!==p&&t.write(r.from([f])),null!==g?g.write():4===p&&t.write(r.from([0])),!0}(e,t,a);case"subscribe":return function(e,t,o){l("subscribe: packet: ");let i=o?o.protocolVersion:4,a=e||{},s=a.dup?n.DUP_MASK:0,c=a.messageId,u=a.subscriptions,f=a.properties,d=0;if("number"!=typeof c)return t.destroy(new Error("Invalid messageId")),!1;d+=2;let p=null;if(5===i){if(p=k(t,f),!p)return!1;d+=p.length}if("object"!=typeof u||!u.length)return t.destroy(new Error("Invalid subscriptions")),!1;for(let e=0;e2)return t.destroy(new Error("Invalid subscriptions - invalid Retain Handling")),!1}d+=r.byteLength(n)+2+1}l("subscribe: writing to stream: %o",n.SUBSCRIBE_HEADER),t.write(n.SUBSCRIBE_HEADER[1][s?1:0][0]),b(t,d),h(t,c),null!==p&&p.write();let g=!0;for(let e of u){let o,a=e.topic,s=e.qos,l=+e.nl,c=+e.rap,u=e.rh;w(t,a),o=n.SUBSCRIBE_OPTIONS_QOS[s],5===i&&(o|=l?n.SUBSCRIBE_OPTIONS_NL:0,o|=c?n.SUBSCRIBE_OPTIONS_RAP:0,o|=u?n.SUBSCRIBE_OPTIONS_RH[u]:0),g=t.write(r.from([o]))}return g}(e,t,a);case"suback":return function(e,t,o){let i=o?o.protocolVersion:4,a=e||{},s=a.messageId,l=a.granted,c=a.properties,u=0;if("number"!=typeof s)return t.destroy(new Error("Invalid messageId")),!1;if(u+=2,"object"!=typeof l||!l.length)return t.destroy(new Error("Invalid qos vector")),!1;for(let e=0;en.VARBYTEINT_MAX)return e.destroy(new Error(`Invalid variable byte integer: ${t}`)),!1;let r=y[t];return r||(r=d(t),t<16384&&(y[t]=r)),l("writeVarByteInt: writing to stream: %o",r),e.write(r)}function w(e,t){let n=r.byteLength(t);return h(e,n),l("writeString: %s",t),e.write(t,"utf8")}function E(e,t,n){w(e,t),w(e,n)}function S(e,t){return l("writeNumberCached: number: %d",t),l("writeNumberCached: %o",c[t]),e.write(c[t])}function _(e,t){let n=u(t);return l("writeNumberGenerated: %o",n),e.write(n)}function x(e,t){"string"==typeof t?w(e,t):t?(h(e,t.length),e.write(t)):h(e,0)}function k(e,t){if("object"!=typeof t||null!=t.length)return{length:1,write(){O(e,{},0)}};let o=0;function i(t,o){let i=0;switch(n.propertiesTypes[t]){case"byte":if("boolean"!=typeof o)return e.destroy(new Error(`Invalid ${t}: ${o}`)),!1;i+=2;break;case"int8":if("number"!=typeof o||o<0||o>255)return e.destroy(new Error(`Invalid ${t}: ${o}`)),!1;i+=2;break;case"binary":if(o&&null===o)return e.destroy(new Error(`Invalid ${t}: ${o}`)),!1;i+=1+r.byteLength(o)+2;break;case"int16":if("number"!=typeof o||o<0||o>65535)return e.destroy(new Error(`Invalid ${t}: ${o}`)),!1;i+=3;break;case"int32":if("number"!=typeof o||o<0||o>4294967295)return e.destroy(new Error(`Invalid ${t}: ${o}`)),!1;i+=5;break;case"var":if("number"!=typeof o||o<0||o>268435455)return e.destroy(new Error(`Invalid ${t}: ${o}`)),!1;i+=1+r.byteLength(d(o));break;case"string":if("string"!=typeof o)return e.destroy(new Error(`Invalid ${t}: ${o}`)),!1;i+=3+r.byteLength(o.toString());break;case"pair":if("object"!=typeof o)return e.destroy(new Error(`Invalid ${t}: ${o}`)),!1;i+=Object.getOwnPropertyNames(o).reduce(((e,t)=>{let n=o[t];return Array.isArray(n)?e+=n.reduce(((e,n)=>e+=3+r.byteLength(t.toString())+2+r.byteLength(n.toString())),0):e+=3+r.byteLength(t.toString())+2+r.byteLength(o[t].toString()),e}),0);break;default:return e.destroy(new Error(`Invalid property ${t}: ${o}`)),!1}return i}if(t)for(let e in t){let n=0,r=0,a=t[e];if(Array.isArray(a))for(let t=0;ti;){let n=o.shift();if(!n||!t[n])return!1;delete t[n],a=k(e,t)}return a}function T(e,t,o){switch(n.propertiesTypes[t]){case"byte":e.write(r.from([n.properties[t]])),e.write(r.from([+o]));break;case"int8":e.write(r.from([n.properties[t]])),e.write(r.from([o]));break;case"binary":e.write(r.from([n.properties[t]])),x(e,o);break;case"int16":e.write(r.from([n.properties[t]])),h(e,o);break;case"int32":e.write(r.from([n.properties[t]])),function(e,t){let n=p(t);l("write4ByteNumber: %o",n),e.write(n)}(e,o);break;case"var":e.write(r.from([n.properties[t]])),b(e,o);break;case"string":e.write(r.from([n.properties[t]])),w(e,o);break;case"pair":Object.getOwnPropertyNames(o).forEach((i=>{let a=o[i];Array.isArray(a)?a.forEach((o=>{e.write(r.from([n.properties[t]])),E(e,i.toString(),o.toString())})):(e.write(r.from([n.properties[t]])),E(e,i.toString(),a.toString()))}));break;default:return e.destroy(new Error(`Invalid property ${t} value: ${o}`)),!1}}function O(e,t,n){b(e,n);for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&null!==t[n]){let r=t[n];if(Array.isArray(r))for(let t=0;t{oe(),Kt(),Lt();var n=xo(),{EventEmitter:r}=(In(),re(xn)),{Buffer:o}=(Gt(),re(Nt));var i=class extends r{constructor(){super(),this._array=new Array(20),this._i=0}write(e){return this._array[this._i++]=e,!0}concat(){let e,t=0,n=new Array(this._array.length),r=this._array,i=0;for(e=0;e{oe(),Kt(),Lt(),e.parser=Eo().parser,e.generate=ko(),e.writeToStream=xo()})),To=te((e=>{oe(),Kt(),Lt(),Object.defineProperty(e,"__esModule",{value:!0});e.default=class{constructor(){this.nextId=Math.max(1,Math.floor(65535*Math.random()))}allocate(){let e=this.nextId++;return 65536===this.nextId&&(this.nextId=1),e}getLastAllocated(){return 1===this.nextId?65535:this.nextId-1}register(e){return!0}deallocate(e){}clear(){}}})),Oo=te(((e,t)=>{function n(e){return e instanceof Wt?Wt.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}oe(),Kt(),Lt(),t.exports=function(e){return(e=e||{}).circles?function(e){var t=[],r=[];return e.proto?function e(i){if("object"!=typeof i||null===i)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return o(i,e);if(i instanceof Map)return new Map(o(Array.from(i),e));if(i instanceof Set)return new Set(o(Array.from(i),e));var a={};for(var s in t.push(i),r.push(a),i){var l=i[s];if("object"!=typeof l||null===l)a[s]=l;else if(l instanceof Date)a[s]=new Date(l);else if(l instanceof Map)a[s]=new Map(o(Array.from(l),e));else if(l instanceof Set)a[s]=new Set(o(Array.from(l),e));else if(ArrayBuffer.isView(l))a[s]=n(l);else{var c=t.indexOf(l);a[s]=-1!==c?r[c]:e(l)}}return t.pop(),r.pop(),a}:function e(i){if("object"!=typeof i||null===i)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return o(i,e);if(i instanceof Map)return new Map(o(Array.from(i),e));if(i instanceof Set)return new Set(o(Array.from(i),e));var a={};for(var s in t.push(i),r.push(a),i)if(!1!==Object.hasOwnProperty.call(i,s)){var l=i[s];if("object"!=typeof l||null===l)a[s]=l;else if(l instanceof Date)a[s]=new Date(l);else if(l instanceof Map)a[s]=new Map(o(Array.from(l),e));else if(l instanceof Set)a[s]=new Set(o(Array.from(l),e));else if(ArrayBuffer.isView(l))a[s]=n(l);else{var c=t.indexOf(l);a[s]=-1!==c?r[c]:e(l)}}return t.pop(),r.pop(),a};function o(e,o){for(var i=Object.keys(e),a=new Array(i.length),s=0;s{oe(),Kt(),Lt(),t.exports=Oo()()})),Po=te((e=>{function t(e){let t=e.split("/");for(let e=0;e{oe(),Kt(),Lt(),Object.defineProperty(e,"__esModule",{value:!0});var t=fo(),n={objectMode:!0},r={clean:!0};e.default=class{constructor(e){this.options=e||{},this.options=Object.assign(Object.assign({},r),e),this._inflights=new Map}put(e,t){return this._inflights.set(e.messageId,e),t&&t(),this}createStream(){let e=new t.Readable(n),r=[],o=!1,i=0;return this._inflights.forEach(((e,t)=>{r.push(e)})),e._read=()=>{!o&&i{if(!o)return o=!0,setTimeout((()=>{e.emit("close")}),0),e},e}del(e,t){let n=this._inflights.get(e.messageId);return n?(this._inflights.delete(e.messageId),t(null,n)):t&&t(new Error("missing packet")),this}get(e,t){let n=this._inflights.get(e.messageId);return n?t(null,n):t&&t(new Error("missing packet")),this}close(e){this.options.clean&&(this._inflights=null),e&&e()}}})),Ro=te((e=>{oe(),Kt(),Lt(),Object.defineProperty(e,"__esModule",{value:!0});var t=[0,16,128,131,135,144,145,151,153];e.default=(e,n,r)=>{e.log("handlePublish: packet %o",n),r=typeof r<"u"?r:e.noop;let o=n.topic.toString(),i=n.payload,{qos:a}=n,{messageId:s}=n,{options:l}=e;if(5===e.options.protocolVersion){let t;if(n.properties&&(t=n.properties.topicAlias),typeof t<"u")if(0===o.length){if(!(t>0&&t<=65535))return e.log("handlePublish :: topic alias out of range. alias: %d",t),void e.emit("error",new Error("Received Topic Alias is out of range"));{let n=e.topicAliasRecv.getTopicByAlias(t);if(!n)return e.log("handlePublish :: unregistered topic alias. alias: %d",t),void e.emit("error",new Error("Received unregistered Topic Alias"));o=n,e.log("handlePublish :: topic complemented by alias. topic: %s - alias: %d",o,t)}}else{if(!e.topicAliasRecv.put(o,t))return e.log("handlePublish :: topic alias out of range. alias: %d",t),void e.emit("error",new Error("Received Topic Alias is out of range"));e.log("handlePublish :: registered topic: %s - alias: %d",o,t)}}switch(e.log("handlePublish: qos %d",a),a){case 2:l.customHandleAcks(o,i,n,((o,i)=>("number"==typeof o&&(i=o,o=null),o?e.emit("error",o):-1===t.indexOf(i)?e.emit("error",new Error("Wrong reason code for pubrec")):void(i?e._sendPacket({cmd:"pubrec",messageId:s,reasonCode:i},r):e.incomingStore.put(n,(()=>{e._sendPacket({cmd:"pubrec",messageId:s},r)}))))));break;case 1:l.customHandleAcks(o,i,n,((a,l)=>("number"==typeof a&&(l=a,a=null),a?e.emit("error",a):-1===t.indexOf(l)?e.emit("error",new Error("Wrong reason code for puback")):(l||e.emit("message",o,i,n),void e.handleMessage(n,(t=>{if(t)return r&&r(t);e._sendPacket({cmd:"puback",messageId:s,reasonCode:l},r)}))))));break;case 0:e.emit("message",o,i,n),e.handleMessage(n,r);break;default:e.log("handlePublish: unknown QoS. Doing nothing.")}}})),Mo=te(((e,t)=>{t.exports={version:"5.10.3"}})),jo=te((e=>{oe(),Kt(),Lt(),Object.defineProperty(e,"__esModule",{value:!0}),e.MQTTJS_VERSION=e.nextTick=e.applyMixin=e.ErrorWithReasonCode=void 0;var t=class e extends Error{constructor(t,n){super(t),this.code=n,Object.setPrototypeOf(this,e.prototype),Object.getPrototypeOf(this).name="ErrorWithReasonCode"}};e.ErrorWithReasonCode=t,e.applyMixin=function(e,t,n=!1){var r;let o=[t];for(;;){let e=o[0],t=Object.getPrototypeOf(e);if(!t?.prototype)break;o.unshift(t)}for(let t of o)for(let o of Object.getOwnPropertyNames(t.prototype))(n||"constructor"!==o)&&Object.defineProperty(e.prototype,o,null!==(r=Object.getOwnPropertyDescriptor(t.prototype,o))&&void 0!==r?r:Object.create(null))},e.nextTick="function"==typeof(null==ie?void 0:ie.nextTick)?ie.nextTick:e=>{setTimeout(e,0)},e.MQTTJS_VERSION=Mo().version})),Lo=te((e=>{oe(),Kt(),Lt(),Object.defineProperty(e,"__esModule",{value:!0}),e.ReasonCodes=void 0;var t=jo();e.ReasonCodes={0:"",1:"Unacceptable protocol version",2:"Identifier rejected",3:"Server unavailable",4:"Bad username or password",5:"Not authorized",16:"No matching subscribers",17:"No subscription existed",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",132:"Unsupported Protocol Version",133:"Client Identifier not valid",134:"Bad User Name or Password",135:"Not authorized",136:"Server unavailable",137:"Server busy",138:"Banned",139:"Server shutting down",140:"Bad authentication method",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",145:"Packet identifier in use",146:"Packet Identifier not found",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"};e.default=(n,r)=>{let{messageId:o}=r,i=r.cmd,a=null,s=n.outgoing[o]?n.outgoing[o].cb:null,l=null;if(s){switch(n.log("_handleAck :: packet type",i),i){case"pubcomp":case"puback":{let i=r.reasonCode;i&&i>0&&16!==i?(l=new t.ErrorWithReasonCode(`Publish error: ${e.ReasonCodes[i]}`,i),n._removeOutgoingAndStoreMessage(o,(()=>{s(l,r)}))):n._removeOutgoingAndStoreMessage(o,s);break}case"pubrec":{a={cmd:"pubrel",qos:2,messageId:o};let i=r.reasonCode;i&&i>0&&16!==i?(l=new t.ErrorWithReasonCode(`Publish error: ${e.ReasonCodes[i]}`,i),n._removeOutgoingAndStoreMessage(o,(()=>{s(l,r)}))):n._sendPacket(a);break}case"suback":{delete n.outgoing[o],n.messageIdProvider.deallocate(o);let t=r.granted;for(let r=0;r{delete n._resubscribeTopics[e]}))}}delete n.messageIdToTopic[o],n._invokeStoreProcessingQueue(),s(l,r);break}case"unsuback":delete n.outgoing[o],n.messageIdProvider.deallocate(o),n._invokeStoreProcessingQueue(),s(null,r);break;default:n.emit("error",new Error("unrecognized packet type"))}n.disconnecting&&0===Object.keys(n.outgoing).length&&n.emit("outgoingEmpty")}else n.log("_handleAck :: Server sent an ack in error. Ignoring.")}})),No=te((e=>{oe(),Kt(),Lt(),Object.defineProperty(e,"__esModule",{value:!0});var t=jo(),n=Lo();e.default=(e,r)=>{let{options:o}=e,i=o.protocolVersion,a=5===i?r.reasonCode:r.returnCode;if(5===i)e.handleAuth(r,((r,o)=>{if(r)e.emit("error",r);else if(24===a)e.reconnecting=!1,e._sendPacket(o);else{let r=new t.ErrorWithReasonCode(`Connection refused: ${n.ReasonCodes[a]}`,a);e.emit("error",r)}}));else{let n=new t.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${i}`,a);e.emit("error",n)}}})),Do=te((e=>{oe(),Kt(),Lt(),Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=void 0;var t="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,n=new Set,r="object"==typeof ie&&ie?ie:{},o=(e,t,n,o)=>{"function"==typeof r.emitWarning?r.emitWarning(e,t,n,o):console.error(`[${n}] ${t}: ${e}`)},i=globalThis.AbortController,a=globalThis.AbortSignal;if(typeof i>"u"){a=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(e,t){this._onabort.push(t)}},i=class{constructor(){t()}signal=new a;abort(e){if(!this.signal.aborted){this.signal.reason=e,this.signal.aborted=!0;for(let t of this.signal._onabort)t(e);this.signal.onabort?.(e)}}};let e="1"!==r.env?.LRU_CACHE_IGNORE_AC_WARNING,t=()=>{e&&(e=!1,o("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}Symbol("type");var s=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),l=e=>s(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?c:null:null,c=class extends Array{constructor(e){super(e),this.fill(0)}},u=class e{heap;length;static#e=!1;static create(t){let n=l(t);if(!n)return[];e.#e=!0;let r=new e(t,n);return e.#e=!1,r}constructor(t,n){if(!e.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(t),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},f=class e{#e;#t;#n;#r;#o;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#i;#a;#s;#l;#c;#u;#f;#d;#p;#h;#g;#m;#v;#y;#b;#w;#E;static unsafeExposeInternals(e){return{starts:e.#v,ttls:e.#y,sizes:e.#m,keyMap:e.#s,keyList:e.#l,valList:e.#c,next:e.#u,prev:e.#f,get head(){return e.#d},get tail(){return e.#p},free:e.#h,isBackgroundFetch:t=>e.#S(t),backgroundFetch:(t,n,r,o)=>e.#_(t,n,r,o),moveToTail:t=>e.#x(t),indexes:t=>e.#k(t),rindexes:t=>e.#C(t),isStale:t=>e.#T(t)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#a}get size(){return this.#i}get fetchMethod(){return this.#o}get dispose(){return this.#n}get disposeAfter(){return this.#r}constructor(t){let{max:r=0,ttl:i,ttlResolution:a=1,ttlAutopurge:c,updateAgeOnGet:f,updateAgeOnHas:d,allowStale:p,dispose:h,disposeAfter:g,noDisposeOnSet:m,noUpdateTTL:v,maxSize:y=0,maxEntrySize:b=0,sizeCalculation:w,fetchMethod:E,noDeleteOnFetchRejection:S,noDeleteOnStaleGet:_,allowStaleOnFetchRejection:x,allowStaleOnFetchAbort:k,ignoreFetchAbort:C}=t;if(0!==r&&!s(r))throw new TypeError("max option must be a nonnegative integer");let T=r?l(r):Array;if(!T)throw new Error("invalid max value: "+r);if(this.#e=r,this.#t=y,this.maxEntrySize=b||this.#t,this.sizeCalculation=w,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==E&&"function"!=typeof E)throw new TypeError("fetchMethod must be a function if specified");if(this.#o=E,this.#w=!!E,this.#s=new Map,this.#l=new Array(r).fill(void 0),this.#c=new Array(r).fill(void 0),this.#u=new T(r),this.#f=new T(r),this.#d=0,this.#p=0,this.#h=u.create(r),this.#i=0,this.#a=0,"function"==typeof h&&(this.#n=h),"function"==typeof g?(this.#r=g,this.#g=[]):(this.#r=void 0,this.#g=void 0),this.#b=!!this.#n,this.#E=!!this.#r,this.noDisposeOnSet=!!m,this.noUpdateTTL=!!v,this.noDeleteOnFetchRejection=!!S,this.allowStaleOnFetchRejection=!!x,this.allowStaleOnFetchAbort=!!k,this.ignoreFetchAbort=!!C,0!==this.maxEntrySize){if(0!==this.#t&&!s(this.#t))throw new TypeError("maxSize must be a positive integer if specified");if(!s(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#O()}if(this.allowStale=!!p,this.noDeleteOnStaleGet=!!_,this.updateAgeOnGet=!!f,this.updateAgeOnHas=!!d,this.ttlResolution=s(a)||0===a?a:1,this.ttlAutopurge=!!c,this.ttl=i||0,this.ttl){if(!s(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#A()}if(0===this.#e&&0===this.ttl&&0===this.#t)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#t){let t="LRU_CACHE_UNBOUNDED";(e=>!n.has(e))(t)&&(n.add(t),o("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",t,e))}}getRemainingTTL(e){return this.#s.has(e)?1/0:0}#A(){let e=new c(this.#e),n=new c(this.#e);this.#y=e,this.#v=n,this.#P=(r,o,i=t.now())=>{if(n[r]=0!==o?i:0,e[r]=o,0!==o&&this.ttlAutopurge){let e=setTimeout((()=>{this.#T(r)&&this.delete(this.#l[r])}),o+1);e.unref&&e.unref()}},this.#I=r=>{n[r]=0!==e[r]?t.now():0},this.#R=(t,i)=>{if(e[i]){let a=e[i],s=n[i];t.ttl=a,t.start=s,t.now=r||o();let l=t.now-s;t.remainingTTL=a-l}};let r=0,o=()=>{let e=t.now();if(this.ttlResolution>0){r=e;let t=setTimeout((()=>r=0),this.ttlResolution);t.unref&&t.unref()}return e};this.getRemainingTTL=t=>{let i=this.#s.get(t);if(void 0===i)return 0;let a=e[i],s=n[i];return 0===a||0===s?1/0:a-((r||o())-s)},this.#T=t=>0!==e[t]&&0!==n[t]&&(r||o())-n[t]>e[t]}#I=()=>{};#R=()=>{};#P=()=>{};#T=()=>!1;#O(){let e=new c(this.#e);this.#a=0,this.#m=e,this.#M=t=>{this.#a-=e[t],e[t]=0},this.#j=(e,t,n,r)=>{if(this.#S(t))return 0;if(!s(n)){if(!r)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!=typeof r)throw new TypeError("sizeCalculation must be a function");if(n=r(t,e),!s(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return n},this.#L=(t,n,r)=>{if(e[t]=n,this.#t){let n=this.#t-e[t];for(;this.#a>n;)this.#N(!0)}this.#a+=e[t],r&&(r.entrySize=n,r.totalCalculatedSize=this.#a)}}#M=e=>{};#L=(e,t,n)=>{};#j=(e,t,n,r)=>{if(n||r)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#k({allowStale:e=this.allowStale}={}){if(this.#i)for(let t=this.#p;this.#D(t)&&((e||!this.#T(t))&&(yield t),t!==this.#d);)t=this.#f[t]}*#C({allowStale:e=this.allowStale}={}){if(this.#i)for(let t=this.#d;this.#D(t)&&((e||!this.#T(t))&&(yield t),t!==this.#p);)t=this.#u[t]}#D(e){return void 0!==e&&this.#s.get(this.#l[e])===e}*entries(){for(let e of this.#k())void 0!==this.#c[e]&&void 0!==this.#l[e]&&!this.#S(this.#c[e])&&(yield[this.#l[e],this.#c[e]])}*rentries(){for(let e of this.#C())void 0!==this.#c[e]&&void 0!==this.#l[e]&&!this.#S(this.#c[e])&&(yield[this.#l[e],this.#c[e]])}*keys(){for(let e of this.#k()){let t=this.#l[e];void 0!==t&&!this.#S(this.#c[e])&&(yield t)}}*rkeys(){for(let e of this.#C()){let t=this.#l[e];void 0!==t&&!this.#S(this.#c[e])&&(yield t)}}*values(){for(let e of this.#k())void 0!==this.#c[e]&&!this.#S(this.#c[e])&&(yield this.#c[e])}*rvalues(){for(let e of this.#C())void 0!==this.#c[e]&&!this.#S(this.#c[e])&&(yield this.#c[e])}[Symbol.iterator](){return this.entries()}find(e,t={}){for(let n of this.#k()){let r=this.#c[n],o=this.#S(r)?r.__staleWhileFetching:r;if(void 0!==o&&e(o,this.#l[n],this))return this.get(this.#l[n],t)}}forEach(e,t=this){for(let n of this.#k()){let r=this.#c[n],o=this.#S(r)?r.__staleWhileFetching:r;void 0!==o&&e.call(t,o,this.#l[n],this)}}rforEach(e,t=this){for(let n of this.#C()){let r=this.#c[n],o=this.#S(r)?r.__staleWhileFetching:r;void 0!==o&&e.call(t,o,this.#l[n],this)}}purgeStale(){let e=!1;for(let t of this.#C({allowStale:!0}))this.#T(t)&&(this.delete(this.#l[t]),e=!0);return e}dump(){let e=[];for(let n of this.#k({allowStale:!0})){let r=this.#l[n],o=this.#c[n],i=this.#S(o)?o.__staleWhileFetching:o;if(void 0===i||void 0===r)continue;let a={value:i};if(this.#y&&this.#v){a.ttl=this.#y[n];let e=t.now()-this.#v[n];a.start=Math.floor(Date.now()-e)}this.#m&&(a.size=this.#m[n]),e.unshift([r,a])}return e}load(e){this.clear();for(let[n,r]of e){if(r.start){let e=Date.now()-r.start;r.start=t.now()-e}this.set(n,r.value,r)}}set(e,t,n={}){if(void 0===t)return this.delete(e),this;let{ttl:r=this.ttl,start:o,noDisposeOnSet:i=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:s}=n,{noUpdateTTL:l=this.noUpdateTTL}=n,c=this.#j(e,t,n.size||0,a);if(this.maxEntrySize&&c>this.maxEntrySize)return s&&(s.set="miss",s.maxEntrySizeExceeded=!0),this.delete(e),this;let u=0===this.#i?void 0:this.#s.get(e);if(void 0===u)u=0===this.#i?this.#p:0!==this.#h.length?this.#h.pop():this.#i===this.#e?this.#N(!1):this.#i,this.#l[u]=e,this.#c[u]=t,this.#s.set(e,u),this.#u[this.#p]=u,this.#f[u]=this.#p,this.#p=u,this.#i++,this.#L(u,c,s),s&&(s.set="add"),l=!1;else{this.#x(u);let n=this.#c[u];if(t!==n){if(this.#w&&this.#S(n)){n.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:t}=n;void 0!==t&&!i&&(this.#b&&this.#n?.(t,e,"set"),this.#E&&this.#g?.push([t,e,"set"]))}else i||(this.#b&&this.#n?.(n,e,"set"),this.#E&&this.#g?.push([n,e,"set"]));if(this.#M(u),this.#L(u,c,s),this.#c[u]=t,s){s.set="replace";let e=n&&this.#S(n)?n.__staleWhileFetching:n;void 0!==e&&(s.oldValue=e)}}else s&&(s.set="update")}if(0!==r&&!this.#y&&this.#A(),this.#y&&(l||this.#P(u,r,o),s&&this.#R(s,u)),!i&&this.#E&&this.#g){let e,t=this.#g;for(;e=t?.shift();)this.#r?.(...e)}return this}pop(){try{for(;this.#i;){let e=this.#c[this.#d];if(this.#N(!0),this.#S(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(void 0!==e)return e}}finally{if(this.#E&&this.#g){let e,t=this.#g;for(;e=t?.shift();)this.#r?.(...e)}}}#N(e){let t=this.#d,n=this.#l[t],r=this.#c[t];return this.#w&&this.#S(r)?r.__abortController.abort(new Error("evicted")):(this.#b||this.#E)&&(this.#b&&this.#n?.(r,n,"evict"),this.#E&&this.#g?.push([r,n,"evict"])),this.#M(t),e&&(this.#l[t]=void 0,this.#c[t]=void 0,this.#h.push(t)),1===this.#i?(this.#d=this.#p=0,this.#h.length=0):this.#d=this.#u[t],this.#s.delete(n),this.#i--,t}has(e,t={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:r}=t,o=this.#s.get(e);if(void 0!==o){let e=this.#c[o];if(this.#S(e)&&void 0===e.__staleWhileFetching)return!1;if(!this.#T(o))return n&&this.#I(o),r&&(r.has="hit",this.#R(r,o)),!0;r&&(r.has="stale",this.#R(r,o))}else r&&(r.has="miss");return!1}peek(e,t={}){let{allowStale:n=this.allowStale}=t,r=this.#s.get(e);if(void 0!==r&&(n||!this.#T(r))){let e=this.#c[r];return this.#S(e)?e.__staleWhileFetching:e}}#_(e,t,n,r){let o=void 0===t?void 0:this.#c[t];if(this.#S(o))return o;let a=new i,{signal:s}=n;s?.addEventListener("abort",(()=>a.abort(s.reason)),{signal:a.signal});let l={signal:a.signal,options:n,context:r},c=(r,o=!1)=>{let{aborted:i}=a.signal,s=n.ignoreFetchAbort&&void 0!==r;if(n.status&&(i&&!o?(n.status.fetchAborted=!0,n.status.fetchError=a.signal.reason,s&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),i&&!s&&!o)return u(a.signal.reason);let c=f;return this.#c[t]===f&&(void 0===r?c.__staleWhileFetching?this.#c[t]=c.__staleWhileFetching:this.delete(e):(n.status&&(n.status.fetchUpdated=!0),this.set(e,r,l.options))),r},u=r=>{let{aborted:o}=a.signal,i=o&&n.allowStaleOnFetchAbort,s=i||n.allowStaleOnFetchRejection,l=s||n.noDeleteOnFetchRejection,c=f;if(this.#c[t]===f&&(l&&void 0!==c.__staleWhileFetching?i||(this.#c[t]=c.__staleWhileFetching):this.delete(e)),s)return n.status&&void 0!==c.__staleWhileFetching&&(n.status.returnedStale=!0),c.__staleWhileFetching;if(c.__returned===c)throw r};n.status&&(n.status.fetchDispatched=!0);let f=new Promise(((t,r)=>{let i=this.#o?.(e,o,l);i&&i instanceof Promise&&i.then((e=>t(void 0===e?void 0:e)),r),a.signal.addEventListener("abort",(()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(t(void 0),n.allowStaleOnFetchAbort&&(t=e=>c(e,!0)))}))})).then(c,(e=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=e),u(e)))),d=Object.assign(f,{__abortController:a,__staleWhileFetching:o,__returned:void 0});return void 0===t?(this.set(e,d,{...l.options,status:void 0}),t=this.#s.get(e)):this.#c[t]=d,d}#S(e){if(!this.#w)return!1;let t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof i}async fetch(e,t={}){let{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:s=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:u=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:f=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:h,forceRefresh:g=!1,status:m,signal:v}=t;if(!this.#w)return m&&(m.fetch="get"),this.get(e,{allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:o,status:m});let y={allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:o,ttl:i,noDisposeOnSet:a,size:s,sizeCalculation:l,noUpdateTTL:c,noDeleteOnFetchRejection:u,allowStaleOnFetchRejection:f,allowStaleOnFetchAbort:p,ignoreFetchAbort:d,status:m,signal:v},b=this.#s.get(e);if(void 0===b){m&&(m.fetch="miss");let t=this.#_(e,b,y,h);return t.__returned=t}{let t=this.#c[b];if(this.#S(t)){let e=n&&void 0!==t.__staleWhileFetching;return m&&(m.fetch="inflight",e&&(m.returnedStale=!0)),e?t.__staleWhileFetching:t.__returned=t}let o=this.#T(b);if(!g&&!o)return m&&(m.fetch="hit"),this.#x(b),r&&this.#I(b),m&&this.#R(m,b),t;let i=this.#_(e,b,y,h),a=void 0!==i.__staleWhileFetching&&n;return m&&(m.fetch=o?"stale":"refresh",a&&o&&(m.returnedStale=!0)),a?i.__staleWhileFetching:i.__returned=i}}get(e,t={}){let{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,status:i}=t,a=this.#s.get(e);if(void 0!==a){let t=this.#c[a],s=this.#S(t);return i&&this.#R(i,a),this.#T(a)?(i&&(i.get="stale"),s?(i&&n&&void 0!==t.__staleWhileFetching&&(i.returnedStale=!0),n?t.__staleWhileFetching:void 0):(o||this.delete(e),i&&n&&(i.returnedStale=!0),n?t:void 0)):(i&&(i.get="hit"),s?t.__staleWhileFetching:(this.#x(a),r&&this.#I(a),t))}i&&(i.get="miss")}#F(e,t){this.#f[t]=e,this.#u[e]=t}#x(e){e!==this.#p&&(e===this.#d?this.#d=this.#u[e]:this.#F(this.#f[e],this.#u[e]),this.#F(this.#p,e),this.#p=e)}delete(e){let t=!1;if(0!==this.#i){let n=this.#s.get(e);if(void 0!==n)if(t=!0,1===this.#i)this.clear();else{this.#M(n);let t=this.#c[n];this.#S(t)?t.__abortController.abort(new Error("deleted")):(this.#b||this.#E)&&(this.#b&&this.#n?.(t,e,"delete"),this.#E&&this.#g?.push([t,e,"delete"])),this.#s.delete(e),this.#l[n]=void 0,this.#c[n]=void 0,n===this.#p?this.#p=this.#f[n]:n===this.#d?this.#d=this.#u[n]:(this.#u[this.#f[n]]=this.#u[n],this.#f[this.#u[n]]=this.#f[n]),this.#i--,this.#h.push(n)}}if(this.#E&&this.#g?.length){let e,t=this.#g;for(;e=t?.shift();)this.#r?.(...e)}return t}clear(){for(let e of this.#C({allowStale:!0})){let t=this.#c[e];if(this.#S(t))t.__abortController.abort(new Error("deleted"));else{let n=this.#l[e];this.#b&&this.#n?.(t,n,"delete"),this.#E&&this.#g?.push([t,n,"delete"])}}if(this.#s.clear(),this.#c.fill(void 0),this.#l.fill(void 0),this.#y&&this.#v&&(this.#y.fill(0),this.#v.fill(0)),this.#m&&this.#m.fill(0),this.#d=0,this.#p=0,this.#h.length=0,this.#a=0,this.#i=0,this.#E&&this.#g){let e,t=this.#g;for(;e=t?.shift();)this.#r?.(...e)}}};e.LRUCache=f})),Fo=te((e=>{oe(),Kt(),Lt(),Object.defineProperty(e,"t",{value:!0}),e.ContainerIterator=e.Container=e.Base=void 0;e.ContainerIterator=class{constructor(e=0){this.iteratorType=e}equals(e){return this.o===e.o}};var t=class{constructor(){this.i=0}get length(){return this.i}size(){return this.i}empty(){return 0===this.i}};e.Base=t;e.Container=class extends t{}})),Bo=te((e=>{oe(),Kt(),Lt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Fo(),n=class extends t.Base{constructor(e=[]){super(),this.S=[];let t=this;e.forEach((function(e){t.push(e)}))}clear(){this.i=0,this.S=[]}push(e){return this.S.push(e),this.i+=1,this.i}pop(){if(0!==this.i)return this.i-=1,this.S.pop()}top(){return this.S[this.i-1]}};e.default=n})),$o=te((e=>{oe(),Kt(),Lt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Fo(),n=class extends t.Base{constructor(e=[]){super(),this.j=0,this.q=[];let t=this;e.forEach((function(e){t.push(e)}))}clear(){this.q=[],this.i=this.j=0}push(e){let t=this.q.length;if(this.j/t>.5&&this.j+this.i>=t&&t>4096){let t=this.i;for(let e=0;e{oe(),Kt(),Lt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Fo(),n=class extends t.Base{constructor(e=[],t=function(e,t){return e>t?-1:e>1;for(let e=this.i-1>>1;e>=0;--e)this.k(e,r)}m(e){let t=this.C[e];for(;e>0;){let n=e-1>>1,r=this.C[n];if(this.v(r,t)<=0)break;this.C[e]=r,e=n}this.C[e]=t}k(e,t){let n=this.C[e];for(;e0&&(t=r,o=this.C[r]),this.v(o,n)>=0)break;this.C[e]=o,e=t}this.C[e]=n}clear(){this.i=0,this.C.length=0}push(e){this.C.push(e),this.m(this.i),this.i+=1}pop(){if(0===this.i)return;let e=this.C[0],t=this.C.pop();return this.i-=1,this.i&&(this.C[0]=t,this.k(0,this.i>>1)),e}top(){return this.C[0]}find(e){return this.C.indexOf(e)>=0}remove(e){let t=this.C.indexOf(e);return!(t<0)&&(0===t?this.pop():t===this.i-1?(this.C.pop(),this.i-=1):(this.C.splice(t,1,this.C.pop()),this.i-=1,this.m(t),this.k(t,this.i>>1)),!0)}updateItem(e){let t=this.C.indexOf(e);return!(t<0)&&(this.m(t),this.k(t,this.i>>1),!0)}toArray(){return[...this.C]}},r=n;e.default=r})),zo=te((e=>{oe(),Kt(),Lt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Fo(),n=class extends t.Container{};e.default=n})),Uo=te((e=>{oe(),Kt(),Lt(),Object.defineProperty(e,"t",{value:!0}),e.throwIteratorAccessError=function(){throw new RangeError("Iterator access denied!")}})),Ho=te((e=>{oe(),Kt(),Lt(),Object.defineProperty(e,"t",{value:!0}),e.RandomIterator=void 0;var t=Fo(),n=Uo(),r=class extends t.ContainerIterator{constructor(e,t){super(t),this.o=e,0===this.iteratorType?(this.pre=function(){return 0===this.o&&(0,n.throwIteratorAccessError)(),this.o-=1,this},this.next=function(){return this.o===this.container.size()&&(0,n.throwIteratorAccessError)(),this.o+=1,this}):(this.pre=function(){return this.o===this.container.size()-1&&(0,n.throwIteratorAccessError)(),this.o+=1,this},this.next=function(){return-1===this.o&&(0,n.throwIteratorAccessError)(),this.o-=1,this})}get pointer(){return this.container.getElementByPos(this.o)}set pointer(e){this.container.setElementByPos(this.o,e)}};e.RandomIterator=r})),Wo=te((e=>{oe(),Kt(),Lt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t,n=(t=zo())&&t.t?t:{default:t},r=Ho();var o=class e extends r.RandomIterator{constructor(e,t,n){super(e,n),this.container=t}copy(){return new e(this.o,this.container,this.iteratorType)}},i=class extends n.default{constructor(e=[],t=!0){if(super(),Array.isArray(e))this.J=t?[...e]:e,this.i=e.length;else{this.J=[];let t=this;e.forEach((function(e){t.pushBack(e)}))}}clear(){this.i=0,this.J.length=0}begin(){return new o(0,this)}end(){return new o(this.i,this)}rBegin(){return new o(this.i-1,this,1)}rEnd(){return new o(-1,this,1)}front(){return this.J[0]}back(){return this.J[this.i-1]}getElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;return this.J[e]}eraseElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;return this.J.splice(e,1),this.i-=1,this.i}eraseElementByValue(e){let t=0;for(let n=0;nthis.i-1)throw new RangeError;this.J[e]=t}insert(e,t,n=1){if(e<0||e>this.i)throw new RangeError;return this.J.splice(e,0,...new Array(n).fill(t)),this.i+=n,this.i}find(e){for(let t=0;t{oe(),Kt(),Lt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t,n=(t=zo())&&t.t?t:{default:t},r=Fo(),o=Uo();var i=class e extends r.ContainerIterator{constructor(e,t,n,r){super(r),this.o=e,this.h=t,this.container=n,0===this.iteratorType?(this.pre=function(){return this.o.L===this.h&&(0,o.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,o.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,o.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,o.throwIteratorAccessError)(),this.o=this.o.L,this})}get pointer(){return this.o===this.h&&(0,o.throwIteratorAccessError)(),this.o.l}set pointer(e){this.o===this.h&&(0,o.throwIteratorAccessError)(),this.o.l=e}copy(){return new e(this.o,this.h,this.container,this.iteratorType)}},a=class extends n.default{constructor(e=[]){super(),this.h={},this.p=this._=this.h.L=this.h.B=this.h;let t=this;e.forEach((function(e){t.pushBack(e)}))}V(e){let{L:t,B:n}=e;t.B=n,n.L=t,e===this.p&&(this.p=n),e===this._&&(this._=t),this.i-=1}G(e,t){let n=t.B,r={l:e,L:t,B:n};t.B=r,n.L=r,t===this.h&&(this.p=r),n===this.h&&(this._=r),this.i+=1}clear(){this.i=0,this.p=this._=this.h.L=this.h.B=this.h}begin(){return new i(this.p,this.h,this)}end(){return new i(this.h,this.h,this)}rBegin(){return new i(this._,this.h,this,1)}rEnd(){return new i(this.h,this.h,this,1)}front(){return this.p.l}back(){return this._.l}getElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;let t=this.p;for(;e--;)t=t.B;return t.l}eraseElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;let t=this.p;for(;e--;)t=t.B;return this.V(t),this.i}eraseElementByValue(e){let t=this.p;for(;t!==this.h;)t.l===e&&this.V(t),t=t.B;return this.i}eraseElementByIterator(e){let t=e.o;return t===this.h&&(0,o.throwIteratorAccessError)(),e=e.next(),this.V(t),e}pushBack(e){return this.G(e,this._),this.i}popBack(){if(0===this.i)return;let e=this._.l;return this.V(this._),e}pushFront(e){return this.G(e,this.h),this.i}popFront(){if(0===this.i)return;let e=this.p.l;return this.V(this.p),e}setElementByPos(e,t){if(e<0||e>this.i-1)throw new RangeError;let n=this.p;for(;e--;)n=n.B;n.l=t}insert(e,t,n=1){if(e<0||e>this.i)throw new RangeError;if(n<=0)return this.i;if(0===e)for(;n--;)this.pushFront(t);else if(e===this.i)for(;n--;)this.pushBack(t);else{let r=this.p;for(let t=1;t{oe(),Kt(),Lt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t,n=(t=zo())&&t.t?t:{default:t},r=Ho();var o=class e extends r.RandomIterator{constructor(e,t,n){super(e,n),this.container=t}copy(){return new e(this.o,this.container,this.iteratorType)}},i=class extends n.default{constructor(e=[],t=4096){super(),this.j=0,this.D=0,this.R=0,this.N=0,this.P=0,this.A=[];let n=(()=>{if("number"==typeof e.length)return e.length;if("number"==typeof e.size)return e.size;if("function"==typeof e.size)return e.size();throw new TypeError("Cannot get the length or size of the container")})();this.F=t,this.P=Math.max(Math.ceil(n/this.F),1);for(let e=0;e>1)-(r>>1),this.D=this.N=this.F-n%this.F>>1;let o=this;e.forEach((function(e){o.pushBack(e)}))}T(){let e=[],t=Math.max(this.P>>1,1);for(let n=0;n>1}begin(){return new o(0,this)}end(){return new o(this.i,this)}rBegin(){return new o(this.i-1,this,1)}rEnd(){return new o(-1,this,1)}front(){if(0!==this.i)return this.A[this.j][this.D]}back(){if(0!==this.i)return this.A[this.R][this.N]}pushBack(e){return this.i&&(this.N0?this.N-=1:this.R>0?(this.R-=1,this.N=this.F-1):(this.R=this.P-1,this.N=this.F-1)),this.i-=1,e}pushFront(e){return this.i&&(this.D>0?this.D-=1:this.j>0?(this.j-=1,this.D=this.F-1):(this.j=this.P-1,this.D=this.F-1),this.j===this.R&&this.D===this.N&&this.T()),this.i+=1,this.A[this.j][this.D]=e,this.i}popFront(){if(0===this.i)return;let e=this.A[this.j][this.D];return 1!==this.i&&(this.Dthis.i-1)throw new RangeError;let{curNodeBucketIndex:t,curNodePointerIndex:n}=this.O(e);return this.A[t][n]}setElementByPos(e,t){if(e<0||e>this.i-1)throw new RangeError;let{curNodeBucketIndex:n,curNodePointerIndex:r}=this.O(e);this.A[n][r]=t}insert(e,t,n=1){if(e<0||e>this.i)throw new RangeError;if(0===e)for(;n--;)this.pushFront(t);else if(e===this.i)for(;n--;)this.pushBack(t);else{let r=[];for(let t=e;tthis.i-1)throw new RangeError;if(0===e)this.popFront();else if(e===this.i-1)this.popBack();else{let t=[];for(let n=e+1;ne;)this.popBack();return this.i}sort(e){let t=[];for(let e=0;e{oe(),Kt(),Lt(),Object.defineProperty(e,"t",{value:!0}),e.TreeNodeEnableIndex=e.TreeNode=void 0;var t=class{constructor(e,t){this.ee=1,this.u=void 0,this.l=void 0,this.U=void 0,this.W=void 0,this.tt=void 0,this.u=e,this.l=t}L(){let e=this;if(1===e.ee&&e.tt.tt===e)e=e.W;else if(e.U)for(e=e.U;e.W;)e=e.W;else{let t=e.tt;for(;t.U===e;)e=t,t=e.tt;e=t}return e}B(){let e=this;if(e.W){for(e=e.W;e.U;)e=e.U;return e}{let t=e.tt;for(;t.W===e;)e=t,t=e.tt;return e.W!==t?t:e}}te(){let e=this.tt,t=this.W,n=t.U;return e.tt===this?e.tt=t:e.U===this?e.U=t:e.W=t,t.tt=e,t.U=this,this.tt=t,this.W=n,n&&(n.tt=this),t}se(){let e=this.tt,t=this.U,n=t.W;return e.tt===this?e.tt=t:e.U===this?e.U=t:e.W=t,t.tt=e,t.W=this,this.tt=t,this.U=n,n&&(n.tt=this),t}};e.TreeNode=t;e.TreeNodeEnableIndex=class extends t{constructor(){super(...arguments),this.rt=1}te(){let e=super.te();return this.ie(),e.ie(),e}se(){let e=super.se();return this.ie(),e.ie(),e}ie(){this.rt=1,this.U&&(this.rt+=this.U.rt),this.W&&(this.rt+=this.W.rt)}}})),Ko=te((e=>{oe(),Kt(),Lt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Go(),n=Fo(),r=Uo(),o=class extends n.Container{constructor(e=function(e,t){return et?1:0},n=!1){super(),this.Y=void 0,this.v=e,n?(this.re=t.TreeNodeEnableIndex,this.M=function(e,t,n){let r=this.ne(e,t,n);if(r){let e=r.tt;for(;e!==this.h;)e.rt+=1,e=e.tt;let t=this.he(r);if(t){let{parentNode:e,grandParent:n,curNode:r}=t;e.ie(),n.ie(),r.ie()}}return this.i},this.V=function(e){let t=this.fe(e);for(;t!==this.h;)t.rt-=1,t=t.tt}):(this.re=t.TreeNode,this.M=function(e,t,n){let r=this.ne(e,t,n);return r&&this.he(r),this.i},this.V=this.fe),this.h=new this.re}X(e,t){let n=this.h;for(;e;){let r=this.v(e.u,t);if(r<0)e=e.W;else{if(!(r>0))return e;n=e,e=e.U}}return n}Z(e,t){let n=this.h;for(;e;)this.v(e.u,t)<=0?e=e.W:(n=e,e=e.U);return n}$(e,t){let n=this.h;for(;e;){let r=this.v(e.u,t);if(r<0)n=e,e=e.W;else{if(!(r>0))return e;e=e.U}}return n}rr(e,t){let n=this.h;for(;e;)this.v(e.u,t)<0?(n=e,e=e.W):e=e.U;return n}ue(e){for(;;){let t=e.tt;if(t===this.h)return;if(1===e.ee)return void(e.ee=0);if(e===t.U){let n=t.W;if(1===n.ee)n.ee=0,t.ee=1,t===this.Y?this.Y=t.te():t.te();else{if(n.W&&1===n.W.ee)return n.ee=t.ee,t.ee=0,n.W.ee=0,void(t===this.Y?this.Y=t.te():t.te());n.U&&1===n.U.ee?(n.ee=1,n.U.ee=0,n.se()):(n.ee=1,e=t)}}else{let n=t.U;if(1===n.ee)n.ee=0,t.ee=1,t===this.Y?this.Y=t.se():t.se();else{if(n.U&&1===n.U.ee)return n.ee=t.ee,t.ee=0,n.U.ee=0,void(t===this.Y?this.Y=t.se():t.se());n.W&&1===n.W.ee?(n.ee=1,n.W.ee=0,n.te()):(n.ee=1,e=t)}}}}fe(e){if(1===this.i)return this.clear(),this.h;let t=e;for(;t.U||t.W;){if(t.W)for(t=t.W;t.U;)t=t.U;else t=t.U;[e.u,t.u]=[t.u,e.u],[e.l,t.l]=[t.l,e.l],e=t}this.h.U===t?this.h.U=t.tt:this.h.W===t&&(this.h.W=t.tt),this.ue(t);let n=t.tt;return t===n.U?n.U=void 0:n.W=void 0,this.i-=1,this.Y.ee=0,n}oe(e,t){return void 0!==e&&(!(!this.oe(e.U,t)&&!t(e))||this.oe(e.W,t))}he(e){for(;;){let t=e.tt;if(0===t.ee)return;let n=t.tt;if(t===n.U){let r=n.W;if(r&&1===r.ee){if(r.ee=t.ee=0,n===this.Y)return;n.ee=1,e=n;continue}if(e===t.W){if(e.ee=0,e.U&&(e.U.tt=t),e.W&&(e.W.tt=n),t.W=e.U,n.U=e.W,e.U=t,e.W=n,n===this.Y)this.Y=e,this.h.tt=e;else{let t=n.tt;t.U===n?t.U=e:t.W=e}return e.tt=n.tt,t.tt=e,n.tt=e,n.ee=1,{parentNode:t,grandParent:n,curNode:e}}t.ee=0,n===this.Y?this.Y=n.se():n.se(),n.ee=1}else{let r=n.U;if(r&&1===r.ee){if(r.ee=t.ee=0,n===this.Y)return;n.ee=1,e=n;continue}if(e===t.U){if(e.ee=0,e.U&&(e.U.tt=n),e.W&&(e.W.tt=t),n.W=e.U,t.U=e.W,e.U=n,e.W=t,n===this.Y)this.Y=e,this.h.tt=e;else{let t=n.tt;t.U===n?t.U=e:t.W=e}return e.tt=n.tt,t.tt=e,n.tt=e,n.ee=1,{parentNode:t,grandParent:n,curNode:e}}t.ee=0,n===this.Y?this.Y=n.te():n.te(),n.ee=1}return}}ne(e,t,n){if(void 0===this.Y)return this.i+=1,this.Y=new this.re(e,t),this.Y.ee=0,this.Y.tt=this.h,this.h.tt=this.Y,this.h.U=this.Y,void(this.h.W=this.Y);let r,o=this.h.U,i=this.v(o.u,e);if(0!==i){if(i>0)o.U=new this.re(e,t),o.U.tt=o,r=o.U,this.h.U=r;else{let o=this.h.W,i=this.v(o.u,e);if(0===i)return void(o.l=t);if(i<0)o.W=new this.re(e,t),o.W.tt=o,r=o.W,this.h.W=r;else{if(void 0!==n){let o=n.o;if(o!==this.h){let n=this.v(o.u,e);if(0===n)return void(o.l=t);if(n>0){let n=o.L(),i=this.v(n.u,e);if(0===i)return void(n.l=t);i<0&&(r=new this.re(e,t),void 0===n.W?(n.W=r,r.tt=n):(o.U=r,r.tt=o))}}}if(void 0===r)for(r=this.Y;;){let n=this.v(r.u,e);if(n>0){if(void 0===r.U){r.U=new this.re(e,t),r.U.tt=r,r=r.U;break}r=r.U}else{if(!(n<0))return void(r.l=t);if(void 0===r.W){r.W=new this.re(e,t),r.W.tt=r,r=r.W;break}r=r.W}}}}return this.i+=1,r}o.l=t}I(e,t){for(;e;){let n=this.v(e.u,t);if(n<0)e=e.W;else{if(!(n>0))return e;e=e.U}}return e||this.h}clear(){this.i=0,this.Y=void 0,this.h.tt=void 0,this.h.U=this.h.W=void 0}updateKeyByIterator(e,t){let n=e.o;if(n===this.h&&(0,r.throwIteratorAccessError)(),1===this.i)return n.u=t,!0;if(n===this.h.U)return this.v(n.B().u,t)>0&&(n.u=t,!0);if(n===this.h.W)return this.v(n.L().u,t)<0&&(n.u=t,!0);let o=n.L().u;if(this.v(o,t)>=0)return!1;let i=n.B().u;return!(this.v(i,t)<=0)&&(n.u=t,!0)}eraseElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;let t=0,n=this;return this.oe(this.Y,(function(r){return e===t?(n.V(r),!0):(t+=1,!1)})),this.i}eraseElementByKey(e){if(0===this.i)return!1;let t=this.I(this.Y,e);return t!==this.h&&(this.V(t),!0)}eraseElementByIterator(e){let t=e.o;t===this.h&&(0,r.throwIteratorAccessError)();let n=void 0===t.W;return 0===e.iteratorType?n&&e.next():(!n||void 0===t.U)&&e.next(),this.V(t),e}forEach(e){let t=0;for(let n of this)e(n,t++,this)}getElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;let t,n=0;for(let r of this){if(n===e){t=r;break}n+=1}return t}getHeight(){if(0===this.i)return 0;let e=function(t){return t?Math.max(e(t.U),e(t.W))+1:0};return e(this.Y)}},i=o;e.default=i})),Yo=te((e=>{oe(),Kt(),Lt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Fo(),n=Uo(),r=class extends t.ContainerIterator{constructor(e,t,r){super(r),this.o=e,this.h=t,0===this.iteratorType?(this.pre=function(){return this.o===this.h.U&&(0,n.throwIteratorAccessError)(),this.o=this.o.L(),this},this.next=function(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.B(),this}):(this.pre=function(){return this.o===this.h.W&&(0,n.throwIteratorAccessError)(),this.o=this.o.B(),this},this.next=function(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.L(),this})}get index(){let e=this.o,t=this.h.tt;if(e===this.h)return t?t.rt-1:0;let n=0;for(e.U&&(n+=e.U.rt);e!==t;){let t=e.tt;e===t.W&&(n+=1,t.U&&(n+=t.U.rt)),e=t}return n}};e.default=r})),Xo=te((e=>{oe(),Kt(),Lt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=o(Ko()),n=o(Yo()),r=Uo();function o(e){return e&&e.t?e:{default:e}}var i=class e extends n.default{constructor(e,t,n,r){super(e,t,r),this.container=n}get pointer(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.u}copy(){return new e(this.o,this.h,this.container,this.iteratorType)}},a=class extends t.default{constructor(e=[],t,n){super(t,n);let r=this;e.forEach((function(e){r.insert(e)}))}*K(e){void 0!==e&&(yield*this.K(e.U),yield e.u,yield*this.K(e.W))}begin(){return new i(this.h.U||this.h,this.h,this)}end(){return new i(this.h,this.h,this)}rBegin(){return new i(this.h.W||this.h,this.h,this,1)}rEnd(){return new i(this.h,this.h,this,1)}front(){return this.h.U?this.h.U.u:void 0}back(){return this.h.W?this.h.W.u:void 0}insert(e,t){return this.M(e,void 0,t)}find(e){let t=this.I(this.Y,e);return new i(t,this.h,this)}lowerBound(e){let t=this.X(this.Y,e);return new i(t,this.h,this)}upperBound(e){let t=this.Z(this.Y,e);return new i(t,this.h,this)}reverseLowerBound(e){let t=this.$(this.Y,e);return new i(t,this.h,this)}reverseUpperBound(e){let t=this.rr(this.Y,e);return new i(t,this.h,this)}union(e){let t=this;return e.forEach((function(e){t.insert(e)})),this.i}[Symbol.iterator](){return this.K(this.Y)}};e.default=a})),Qo=te((e=>{oe(),Kt(),Lt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=o(Ko()),n=o(Yo()),r=Uo();function o(e){return e&&e.t?e:{default:e}}var i=class e extends n.default{constructor(e,t,n,r){super(e,t,r),this.container=n}get pointer(){this.o===this.h&&(0,r.throwIteratorAccessError)();let e=this;return new Proxy([],{get(t,n){return"0"===n?e.o.u:"1"===n?e.o.l:void 0},set(t,n,r){if("1"!==n)throw new TypeError("props must be 1");return e.o.l=r,!0}})}copy(){return new e(this.o,this.h,this.container,this.iteratorType)}},a=class extends t.default{constructor(e=[],t,n){super(t,n);let r=this;e.forEach((function(e){r.setElement(e[0],e[1])}))}*K(e){void 0!==e&&(yield*this.K(e.U),yield[e.u,e.l],yield*this.K(e.W))}begin(){return new i(this.h.U||this.h,this.h,this)}end(){return new i(this.h,this.h,this)}rBegin(){return new i(this.h.W||this.h,this.h,this,1)}rEnd(){return new i(this.h,this.h,this,1)}front(){if(0===this.i)return;let e=this.h.U;return[e.u,e.l]}back(){if(0===this.i)return;let e=this.h.W;return[e.u,e.l]}lowerBound(e){let t=this.X(this.Y,e);return new i(t,this.h,this)}upperBound(e){let t=this.Z(this.Y,e);return new i(t,this.h,this)}reverseLowerBound(e){let t=this.$(this.Y,e);return new i(t,this.h,this)}reverseUpperBound(e){let t=this.rr(this.Y,e);return new i(t,this.h,this)}setElement(e,t,n){return this.M(e,t,n)}find(e){let t=this.I(this.Y,e);return new i(t,this.h,this)}getElementByKey(e){return this.I(this.Y,e).l}union(e){let t=this;return e.forEach((function(e){t.setElement(e[0],e[1])})),this.i}[Symbol.iterator](){return this.K(this.Y)}};e.default=a})),Jo=te((e=>{oe(),Kt(),Lt(),Object.defineProperty(e,"t",{value:!0}),e.default=function(e){let t=typeof e;return"object"===t&&null!==e||"function"===t}})),ei=te((e=>{oe(),Kt(),Lt(),Object.defineProperty(e,"t",{value:!0}),e.HashContainerIterator=e.HashContainer=void 0;var t,n=Fo(),r=(t=Jo())&&t.t?t:{default:t},o=Uo();var i=class extends n.ContainerIterator{constructor(e,t,n){super(n),this.o=e,this.h=t,0===this.iteratorType?(this.pre=function(){return this.o.L===this.h&&(0,o.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,o.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,o.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,o.throwIteratorAccessError)(),this.o=this.o.L,this})}};e.HashContainerIterator=i;var a=class extends n.Container{constructor(){super(),this.H=[],this.g={},this.HASH_TAG=Symbol("@@HASH_TAG"),Object.setPrototypeOf(this.g,null),this.h={},this.h.L=this.h.B=this.p=this._=this.h}V(e){let{L:t,B:n}=e;t.B=n,n.L=t,e===this.p&&(this.p=n),e===this._&&(this._=t),this.i-=1}M(e,t,n){let o;if(void 0===n&&(n=(0,r.default)(e)),n){let n=e[this.HASH_TAG];if(void 0!==n)return this.H[n].l=t,this.i;Object.defineProperty(e,this.HASH_TAG,{value:this.H.length,configurable:!0}),o={u:e,l:t,L:this._,B:this.h},this.H.push(o)}else{let n=this.g[e];if(n)return n.l=t,this.i;o={u:e,l:t,L:this._,B:this.h},this.g[e]=o}return 0===this.i?(this.p=o,this.h.B=o):this._.B=o,this._=o,this.h.L=o,++this.i}I(e,t){if(void 0===t&&(t=(0,r.default)(e)),t){let t=e[this.HASH_TAG];return void 0===t?this.h:this.H[t]}return this.g[e]||this.h}clear(){let e=this.HASH_TAG;this.H.forEach((function(t){delete t.u[e]})),this.H=[],this.g={},Object.setPrototypeOf(this.g,null),this.i=0,this.p=this._=this.h.L=this.h.B=this.h}eraseElementByKey(e,t){let n;if(void 0===t&&(t=(0,r.default)(e)),t){let t=e[this.HASH_TAG];if(void 0===t)return!1;delete e[this.HASH_TAG],n=this.H[t],delete this.H[t]}else{if(n=this.g[e],void 0===n)return!1;delete this.g[e]}return this.V(n),!0}eraseElementByIterator(e){let t=e.o;return t===this.h&&(0,o.throwIteratorAccessError)(),this.V(t),e.next()}eraseElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;let t=this.p;for(;e--;)t=t.B;return this.V(t),this.i}};e.HashContainer=a})),ti=te((e=>{oe(),Kt(),Lt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=ei(),n=Uo(),r=class e extends t.HashContainerIterator{constructor(e,t,n,r){super(e,t,r),this.container=n}get pointer(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o.u}copy(){return new e(this.o,this.h,this.container,this.iteratorType)}},o=class extends t.HashContainer{constructor(e=[]){super();let t=this;e.forEach((function(e){t.insert(e)}))}begin(){return new r(this.p,this.h,this)}end(){return new r(this.h,this.h,this)}rBegin(){return new r(this._,this.h,this,1)}rEnd(){return new r(this.h,this.h,this,1)}front(){return this.p.u}back(){return this._.u}insert(e,t){return this.M(e,void 0,t)}getElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;let t=this.p;for(;e--;)t=t.B;return t.u}find(e,t){let n=this.I(e,t);return new r(n,this.h,this)}forEach(e){let t=0,n=this.p;for(;n!==this.h;)e(n.u,t++,this),n=n.B}[Symbol.iterator](){return function*(){let e=this.p;for(;e!==this.h;)yield e.u,e=e.B}.bind(this)()}};e.default=o})),ni=te((e=>{oe(),Kt(),Lt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t,n=ei(),r=(t=Jo())&&t.t?t:{default:t},o=Uo();var i=class e extends n.HashContainerIterator{constructor(e,t,n,r){super(e,t,r),this.container=n}get pointer(){this.o===this.h&&(0,o.throwIteratorAccessError)();let e=this;return new Proxy([],{get(t,n){return"0"===n?e.o.u:"1"===n?e.o.l:void 0},set(t,n,r){if("1"!==n)throw new TypeError("props must be 1");return e.o.l=r,!0}})}copy(){return new e(this.o,this.h,this.container,this.iteratorType)}},a=class extends n.HashContainer{constructor(e=[]){super();let t=this;e.forEach((function(e){t.setElement(e[0],e[1])}))}begin(){return new i(this.p,this.h,this)}end(){return new i(this.h,this.h,this)}rBegin(){return new i(this._,this.h,this,1)}rEnd(){return new i(this.h,this.h,this,1)}front(){if(0!==this.i)return[this.p.u,this.p.l]}back(){if(0!==this.i)return[this._.u,this._.l]}setElement(e,t,n){return this.M(e,t,n)}getElementByKey(e,t){if(void 0===t&&(t=(0,r.default)(e)),t){let t=e[this.HASH_TAG];return void 0!==t?this.H[t].l:void 0}let n=this.g[e];return n?n.l:void 0}getElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;let t=this.p;for(;e--;)t=t.B;return[t.u,t.l]}find(e,t){let n=this.I(e,t);return new i(n,this.h,this)}forEach(e){let t=0,n=this.p;for(;n!==this.h;)e([n.u,n.l],t++,this),n=n.B}[Symbol.iterator](){return function*(){let e=this.p;for(;e!==this.h;)yield[e.u,e.l],e=e.B}.bind(this)()}};e.default=a})),ri=te((e=>{oe(),Kt(),Lt(),Object.defineProperty(e,"t",{value:!0}),Object.defineProperty(e,"Deque",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"HashMap",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"HashSet",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"LinkList",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"OrderedMap",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"OrderedSet",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"PriorityQueue",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"Queue",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"Stack",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"Vector",{enumerable:!0,get:function(){return o.default}});var t=f(Bo()),n=f($o()),r=f(Zo()),o=f(Wo()),i=f(Vo()),a=f(qo()),s=f(Xo()),l=f(Qo()),c=f(ti()),u=f(ni());function f(e){return e&&e.t?e:{default:e}}})),oi=te(((e,t)=>{oe(),Kt(),Lt();var n=ri().OrderedSet,r=wo()("number-allocator:trace"),o=wo()("number-allocator:error");function i(e,t){this.low=e,this.high=t}function a(e,t){if(!(this instanceof a))return new a(e,t);this.min=e,this.max=t,this.ss=new n([],((e,t)=>e.compare(t))),r("Create"),this.clear()}i.prototype.equals=function(e){return this.low===e.low&&this.high===e.high},i.prototype.compare=function(e){return this.lowe)&&(o===e?(this.ss.updateKeyByIterator(n,new i(o+1,a)),r("use():"+e),!0):a===e?(this.ss.updateKeyByIterator(n,new i(o,a-1)),r("use():"+e),!0):(this.ss.updateKeyByIterator(n,new i(e+1,a)),this.ss.insert(new i(o,e-1)),r("use():"+e),!0))}return r("use():failed"),!1},a.prototype.free=function(e){if(ethis.max)return void o("free():"+e+" is out of range");let t=new i(e,e),n=this.ss.upperBound(t);if(n.equals(this.ss.end())){if(n.equals(this.ss.begin()))return void this.ss.insert(t);n.pre();let r=n.pointer.high;n.pointer.high+1===e?this.ss.updateKeyByIterator(n,new i(r,e)):this.ss.insert(t)}else if(n.equals(this.ss.begin()))if(e+1===n.pointer.low){let t=n.pointer.high;this.ss.updateKeyByIterator(n,new i(e,t))}else this.ss.insert(t);else{let r=n.pointer.low,o=n.pointer.high;n.pre();let a=n.pointer.low;n.pointer.high+1===e?e+1===r?(this.ss.eraseElementByIterator(n),this.ss.updateKeyByIterator(n,new i(a,o))):this.ss.updateKeyByIterator(n,new i(a,e)):e+1===r?(this.ss.eraseElementByIterator(n.next()),this.ss.insert(new i(e,o))):this.ss.insert(t)}r("free():"+e)},a.prototype.clear=function(){r("clear()"),this.ss.clear(),this.ss.insert(new i(this.min,this.max))},a.prototype.intervalCount=function(){return this.ss.size()},a.prototype.dump=function(){console.log("length:"+this.ss.size());for(let e of this.ss)console.log(e)},t.exports=a})),ii=te(((e,t)=>{oe(),Kt(),Lt();var n=oi();t.exports.NumberAllocator=n})),ai=te((e=>{oe(),Kt(),Lt(),Object.defineProperty(e,"__esModule",{value:!0});var t=Do(),n=ii();e.default=class{constructor(e){e>0&&(this.aliasToTopic=new t.LRUCache({max:e}),this.topicToAlias={},this.numberAllocator=new n.NumberAllocator(1,e),this.max=e,this.length=0)}put(e,t){if(0===t||t>this.max)return!1;let n=this.aliasToTopic.get(t);return n&&delete this.topicToAlias[n],this.aliasToTopic.set(t,e),this.topicToAlias[e]=t,this.numberAllocator.use(t),this.length=this.aliasToTopic.size,!0}getTopicByAlias(e){return this.aliasToTopic.get(e)}getAliasByTopic(e){let t=this.topicToAlias[e];return typeof t<"u"&&this.aliasToTopic.get(t),t}clear(){this.aliasToTopic.clear(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0}getLruAlias(){return this.numberAllocator.firstVacant()||[...this.aliasToTopic.keys()][this.aliasToTopic.size-1]}}})),si=te((e=>{oe(),Kt(),Lt();var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var n=Lo(),r=t(ai()),o=jo();e.default=(e,t)=>{e.log("_handleConnack");let{options:i}=e,a=5===i.protocolVersion?t.reasonCode:t.returnCode;if(clearTimeout(e.connackTimer),delete e.topicAliasSend,t.properties){if(t.properties.topicAliasMaximum){if(t.properties.topicAliasMaximum>65535)return void e.emit("error",new Error("topicAliasMaximum from broker is out of range"));t.properties.topicAliasMaximum>0&&(e.topicAliasSend=new r.default(t.properties.topicAliasMaximum))}t.properties.serverKeepAlive&&i.keepalive&&(i.keepalive=t.properties.serverKeepAlive),t.properties.maximumPacketSize&&(i.properties||(i.properties={}),i.properties.maximumPacketSize=t.properties.maximumPacketSize)}if(0===a)e.reconnecting=!1,e._onConnect(t);else if(a>0){let t=new o.ErrorWithReasonCode(`Connection refused: ${n.ReasonCodes[a]}`,a);e.emit("error",t),e.options.reconnectOnConnackError&&e._cleanUp(!0)}}})),li=te((e=>{oe(),Kt(),Lt(),Object.defineProperty(e,"__esModule",{value:!0});e.default=(e,t,n)=>{e.log("handling pubrel packet");let r=typeof n<"u"?n:e.noop,{messageId:o}=t,i={cmd:"pubcomp",messageId:o};e.incomingStore.get(t,((t,n)=>{t?e._sendPacket(i,r):(e.emit("message",n.topic,n.payload,n),e.handleMessage(n,(t=>{if(t)return r(t);e.incomingStore.del(n,e.noop),e._sendPacket(i,r)})))}))}})),ci=te((e=>{oe(),Kt(),Lt();var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(Ro()),r=t(No()),o=t(si()),i=t(Lo()),a=t(li());e.default=(e,t,s)=>{let{options:l}=e;if(5===l.protocolVersion&&l.properties&&l.properties.maximumPacketSize&&l.properties.maximumPacketSize{oe(),Kt(),Lt();var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.TypedEventEmitter=void 0;var n=t((In(),re(xn))),r=jo(),o=class{};e.TypedEventEmitter=o,(0,r.applyMixin)(o,n.default)})),fi=te((e=>{oe(),Kt(),Lt(),Object.defineProperty(e,"__esModule",{value:!0}),e.isReactNativeBrowser=e.isWebWorker=void 0;var t,n=()=>{var e,t;return!("object"!=typeof self||null===(t=null===(e=self?.constructor)||void 0===e?void 0:e.name)||void 0===t||!t.includes("WorkerGlobalScope"))},r=()=>typeof navigator<"u"&&"ReactNative"===navigator.product,o=typeof window<"u"&&(typeof navigator<"u"&&(null===(t=navigator.userAgent)||void 0===t?void 0:t.toLowerCase().indexOf(" electron/"))>-1&&null!=ie&&ie.versions?!Object.prototype.hasOwnProperty.call(ie.versions,"electron"):typeof window.document<"u")||n()||r();e.isWebWorker=n(),e.isReactNativeBrowser=r(),e.default=o})),di=te(((e,t)=>{var r,o;oe(),Kt(),Lt(),r=e,o=function(e){var t=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,n=536870912,r=2*n,o=new WeakMap,i=function(e){return function(t,n){return e.set(t,n),n}}(o),a=function(e,o){return function(i){var a=o.get(i),s=void 0===a?i.size:at)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;i.has(s);)s=Math.floor(Math.random()*t);return e(i,s)}}(i,o),s=function(e){return function(t){var n=e(t);return t.add(n),n}}(a);e.addUniqueNumber=s,e.generateUniqueNumber=a},"object"==typeof e&&typeof t<"u"?o(e):"function"==typeof define&&n.amdO?define(["exports"],o):o((r=typeof globalThis<"u"?globalThis:r||self).fastUniqueNumbers={})})),pi=te(((e,t)=>{var r,o;oe(),Kt(),Lt(),r=e,o=function(e,t){e.load=function(e){var n=new Map([[0,function(){}]]),r=new Map([[0,function(){}]]),o=new Map,i=new Worker(e);return i.addEventListener("message",(function(e){var t=e.data;if(function(e){return void 0!==e.method&&"call"===e.method}(t)){var i=t.params,a=i.timerId,s=i.timerType;if("interval"===s){var l=n.get(a);if("number"==typeof l){var c=o.get(l);if(void 0===c||c.timerId!==a||c.timerType!==s)throw new Error("The timer is in an undefined state.")}else{if(!(typeof l<"u"))throw new Error("The timer is in an undefined state.");l()}}else if("timeout"===s){var u=r.get(a);if("number"==typeof u){var f=o.get(u);if(void 0===f||f.timerId!==a||f.timerType!==s)throw new Error("The timer is in an undefined state.")}else{if(!(typeof u<"u"))throw new Error("The timer is in an undefined state.");u(),r.delete(a)}}}else{if(!function(e){return null===e.error&&"number"==typeof e.id}(t)){var d=t.error.message;throw new Error(d)}var p=t.id,h=o.get(p);if(void 0===h)throw new Error("The timer is in an undefined state.");var g=h.timerId,m=h.timerType;o.delete(p),"interval"===m?n.delete(g):r.delete(g)}})),{clearInterval:function(e){var r=t.generateUniqueNumber(o);o.set(r,{timerId:e,timerType:"interval"}),n.set(e,r),i.postMessage({id:r,method:"clear",params:{timerId:e,timerType:"interval"}})},clearTimeout:function(e){var n=t.generateUniqueNumber(o);o.set(n,{timerId:e,timerType:"timeout"}),r.set(e,n),i.postMessage({id:n,method:"clear",params:{timerId:e,timerType:"timeout"}})},setInterval:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=t.generateUniqueNumber(n);return n.set(o,(function(){e(),"function"==typeof n.get(o)&&i.postMessage({id:null,method:"set",params:{delay:r,now:performance.now(),timerId:o,timerType:"interval"}})})),i.postMessage({id:null,method:"set",params:{delay:r,now:performance.now(),timerId:o,timerType:"interval"}}),o},setTimeout:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=t.generateUniqueNumber(r);return r.set(o,e),i.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:o,timerType:"timeout"}}),o}}}},"object"==typeof e&&typeof t<"u"?o(e,di()):"function"==typeof define&&n.amdO?define(["exports","fast-unique-numbers"],o):o((r=typeof globalThis<"u"?globalThis:r||self).workerTimersBroker={},r.fastUniqueNumbers)})),hi=te(((e,t)=>{var r,o;oe(),Kt(),Lt(),r=e,o=function(e,t){var n=function(e,t){var n=null;return function(){if(null!==n)return n;var r=new Blob([t],{type:"application/javascript; charset=utf-8"}),o=URL.createObjectURL(r);return n=e(o),setTimeout((function(){return URL.revokeObjectURL(o)})),n}}(t.load,'(()=>{var e={472:(e,t,r)=>{var o,i;void 0===(i="function"==typeof(o=function(){"use strict";var e=new Map,t=new Map,r=function(t){var r=e.get(t);if(void 0===r)throw new Error(\'There is no interval scheduled with the given id "\'.concat(t,\'".\'));clearTimeout(r),e.delete(t)},o=function(e){var r=t.get(e);if(void 0===r)throw new Error(\'There is no timeout scheduled with the given id "\'.concat(e,\'".\'));clearTimeout(r),t.delete(e)},i=function(e,t){var r,o=performance.now();return{expected:o+(r=e-Math.max(0,o-t)),remainingDelay:r}},n=function e(t,r,o,i){var n=performance.now();n>o?postMessage({id:null,method:"call",params:{timerId:r,timerType:i}}):t.set(r,setTimeout(e,o-n,t,r,o,i))},a=function(t,r,o){var a=i(t,o),s=a.expected,d=a.remainingDelay;e.set(r,setTimeout(n,d,e,r,s,"interval"))},s=function(e,r,o){var a=i(e,o),s=a.expected,d=a.remainingDelay;t.set(r,setTimeout(n,d,t,r,s,"timeout"))};addEventListener("message",(function(e){var t=e.data;try{if("clear"===t.method){var i=t.id,n=t.params,d=n.timerId,c=n.timerType;if("interval"===c)r(d),postMessage({error:null,id:i});else{if("timeout"!==c)throw new Error(\'The given type "\'.concat(c,\'" is not supported\'));o(d),postMessage({error:null,id:i})}}else{if("set"!==t.method)throw new Error(\'The given method "\'.concat(t.method,\'" is not supported\'));var u=t.params,l=u.delay,p=u.now,m=u.timerId,v=u.timerType;if("interval"===v)a(l,m,p);else{if("timeout"!==v)throw new Error(\'The given type "\'.concat(v,\'" is not supported\'));s(l,m,p)}}}catch(e){postMessage({error:{message:e.message},id:t.id,result:null})}}))})?o.call(t,r,t,e):o)||(e.exports=i)}},t={};function r(o){var i=t[o];if(void 0!==i)return i.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";r(472)})()})();');e.clearInterval=function(e){return n().clearInterval(e)},e.clearTimeout=function(e){return n().clearTimeout(e)},e.setInterval=function(){var e;return(e=n()).setInterval.apply(e,arguments)},e.setTimeout=function(){var e;return(e=n()).setTimeout.apply(e,arguments)}},"object"==typeof e&&typeof t<"u"?o(e,pi()):"function"==typeof define&&n.amdO?define(["exports","worker-timers-broker"],o):o((r=typeof globalThis<"u"?globalThis:r||self).workerTimers={},r.workerTimersBroker)})),gi=te((e=>{oe(),Kt(),Lt();var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&t(r,e,o);return n(r,e),r};Object.defineProperty(e,"__esModule",{value:!0});var o=r(fi()),i=hi(),a={set:i.setInterval,clear:i.clearInterval},s={set:(e,t)=>setInterval(e,t),clear:e=>clearInterval(e)};e.default=e=>{switch(e){case"native":return s;case"worker":return a;default:return!o.default||o.isWebWorker||o.isReactNativeBrowser?s:a}}})),mi=te((e=>{oe(),Kt(),Lt();var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(gi());e.default=class{get keepaliveTimeoutTimestamp(){return this._keepaliveTimeoutTimestamp}get intervalEvery(){return this._intervalEvery}get keepalive(){return this._keepalive}constructor(e,t){this.destroyed=!1,this.client=e,this.timer="object"==typeof t&&"set"in t&&"clear"in t?t:(0,n.default)(t),this.setKeepalive(e.options.keepalive)}clear(){this.timerId&&(this.timer.clear(this.timerId),this.timerId=null)}setKeepalive(e){if(e*=1e3,isNaN(e)||e<=0||e>2147483647)throw new Error(`Keepalive value must be an integer between 0 and 2147483647. Provided value is ${e}`);this._keepalive=e,this.reschedule(),this.client.log(`KeepaliveManager: set keepalive to ${e}ms`)}destroy(){this.clear(),this.destroyed=!0}reschedule(){if(this.destroyed)return;this.clear(),this.counter=0;let e=Math.ceil(1.5*this._keepalive);this._keepaliveTimeoutTimestamp=Date.now()+e,this._intervalEvery=Math.ceil(this._keepalive/2),this.timerId=this.timer.set((()=>{this.destroyed||(this.counter+=1,2===this.counter?this.client.sendPing():this.counter>2&&this.client.onKeepaliveTimeout())}),this._intervalEvery)}}})),vi=te((e=>{oe(),Kt(),Lt();var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&t(r,e,o);return n(r,e),r},o=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var i=o(Yt()),a=o(Co()),s=o(To()),l=fo(),c=o(Ao()),u=r(Po()),f=o(wo()),d=o(Io()),p=o(ci()),h=jo(),g=ui(),m=o(mi()),v=r(fi()),y=globalThis.setImmediate||((...e)=>{let t=e.shift();(0,h.nextTick)((()=>{t(...e)}))}),b={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:3e4,clean:!0,resubscribe:!0,writeCache:!0,timerVariant:"auto"},w=class e extends g.TypedEventEmitter{static defaultId(){return`mqttjs_${Math.random().toString(16).substr(2,8)}`}constructor(t,n){super(),this.options=n||{};for(let e in b)typeof this.options[e]>"u"?this.options[e]=b[e]:this.options[e]=n[e];this.log=this.options.log||(0,f.default)("mqttjs:client"),this.noop=this._noop.bind(this),this.log("MqttClient :: version:",e.VERSION),v.isWebWorker?this.log("MqttClient :: environment","webworker"):this.log("MqttClient :: environment",v.default?"browser":"node"),this.log("MqttClient :: options.protocol",n.protocol),this.log("MqttClient :: options.protocolVersion",n.protocolVersion),this.log("MqttClient :: options.username",n.username),this.log("MqttClient :: options.keepalive",n.keepalive),this.log("MqttClient :: options.reconnectPeriod",n.reconnectPeriod),this.log("MqttClient :: options.rejectUnauthorized",n.rejectUnauthorized),this.log("MqttClient :: options.properties.topicAliasMaximum",n.properties?n.properties.topicAliasMaximum:void 0),this.options.clientId="string"==typeof n.clientId?n.clientId:e.defaultId(),this.log("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=5===n.protocolVersion&&n.customHandleAcks?n.customHandleAcks:(...e)=>{e[3](null,0)},this.options.writeCache||(a.default.writeToStream.cacheNumbers=!1),this.streamBuilder=t,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new s.default:this.options.messageIdProvider,this.outgoingStore=n.outgoingStore||new d.default,this.incomingStore=n.incomingStore||new d.default,this.queueQoSZero=void 0===n.queueQoSZero||n.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.keepaliveManager=null,this.connected=!1,this.disconnecting=!1,this.reconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,n.properties&&n.properties.topicAliasMaximum>0&&(n.properties.topicAliasMaximum>65535?this.log("MqttClient :: options.properties.topicAliasMaximum is out of range"):this.topicAliasRecv=new i.default(n.properties.topicAliasMaximum)),this.on("connect",(()=>{let{queue:e}=this,t=()=>{let n=e.shift();this.log("deliver :: entry %o",n);let r=null;if(!n)return void this._resubscribe();r=n.packet,this.log("deliver :: call _sendPacket for %o",r);let o=!0;r.messageId&&0!==r.messageId&&(this.messageIdProvider.register(r.messageId)||(o=!1)),o?this._sendPacket(r,(e=>{n.cb&&n.cb(e),t()})):(this.log("messageId: %d has already used. The message is skipped and removed.",r.messageId),t())};this.log("connect :: sending queued packets"),t()})),this.on("close",(()=>{this.log("close :: connected set to `false`"),this.connected=!1,this.log("close :: clearing connackTimer"),clearTimeout(this.connackTimer),this._destroyKeepaliveManager(),this.topicAliasRecv&&this.topicAliasRecv.clear(),this.log("close :: calling _setupReconnect"),this._setupReconnect()})),this.options.manualConnect||(this.log("MqttClient :: setting up stream"),this.connect())}handleAuth(e,t){t()}handleMessage(e,t){t()}_nextId(){return this.messageIdProvider.allocate()}getLastMessageId(){return this.messageIdProvider.getLastAllocated()}connect(){var e;let t=new l.Writable,n=a.default.parser(this.options),r=null,o=[];this.log("connect :: calling method to clear reconnect"),this._clearReconnect(),this.disconnected&&!this.reconnecting&&(this.incomingStore=this.options.incomingStore||new d.default,this.outgoingStore=this.options.outgoingStore||new d.default,this.disconnecting=!1,this.disconnected=!1),this.log("connect :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),n.on("packet",(e=>{this.log("parser :: on packet push to packets array."),o.push(e)}));let i=()=>{this.log("work :: getting next packet in queue");let e=o.shift();if(e)this.log("work :: packet pulled from queue"),(0,p.default)(this,e,s);else{this.log("work :: no packets in queue");let e=r;r=null,this.log("work :: done flag is %s",!!e),e&&e()}},s=()=>{if(o.length)(0,h.nextTick)(i);else{let e=r;r=null,e()}};t._write=(e,t,o)=>{r=o,this.log("writable stream :: parsing buffer"),n.parse(e),i()};this.log("connect :: pipe stream to writable stream"),this.stream.pipe(t),this.stream.on("error",(e=>{this.log("streamErrorHandler :: error",e.message),e.code?(this.log("streamErrorHandler :: emitting error"),this.emit("error",e)):this.noop(e)})),this.stream.on("close",(()=>{this.log("(%s)stream :: on close",this.options.clientId),this._flushVolatile(),this.log("stream: emit close to MqttClient"),this.emit("close")})),this.log("connect: sending packet `connect`");let c={cmd:"connect",protocolId:this.options.protocolId,protocolVersion:this.options.protocolVersion,clean:this.options.clean,clientId:this.options.clientId,keepalive:this.options.keepalive,username:this.options.username,password:this.options.password,properties:this.options.properties};if(this.options.will&&(c.will=Object.assign(Object.assign({},this.options.will),{payload:null===(e=this.options.will)||void 0===e?void 0:e.payload})),this.topicAliasRecv&&(c.properties||(c.properties={}),this.topicAliasRecv&&(c.properties.topicAliasMaximum=this.topicAliasRecv.max)),this._writePacket(c),n.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return this.end((()=>this.emit("error",new Error("Packet has no Authentication Method")))),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&"object"==typeof this.options.authPacket){let e=Object.assign({cmd:"auth",reasonCode:0},this.options.authPacket);this._writePacket(e)}}return this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout((()=>{this.log("!!connectTimeout hit!! Calling _cleanUp with force `true`"),this.emit("error",new Error("connack timeout")),this._cleanUp(!0)}),this.options.connectTimeout),this}publish(e,t,n,r){this.log("publish :: message `%s` to topic `%s`",t,e);let{options:o}=this;"function"==typeof n&&(r=n,n=null),n=n||{},n=Object.assign(Object.assign({},{qos:0,retain:!1,dup:!1}),n);let{qos:i,retain:a,dup:s,properties:l,cbStorePut:c}=n;if(this._checkDisconnecting(r))return this;let u=()=>{let n=0;if((1===i||2===i)&&(n=this._nextId(),null===n))return this.log("No messageId left"),!1;let u={cmd:"publish",topic:e,payload:t,qos:i,retain:a,messageId:n,dup:s};switch(5===o.protocolVersion&&(u.properties=l),this.log("publish :: qos",i),i){case 1:case 2:this.outgoing[u.messageId]={volatile:!1,cb:r||this.noop},this.log("MqttClient:publish: packet cmd: %s",u.cmd),this._sendPacket(u,void 0,c);break;default:this.log("MqttClient:publish: packet cmd: %s",u.cmd),this._sendPacket(u,r,c)}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!u())&&this._storeProcessingQueue.push({invoke:u,cbStorePut:n.cbStorePut,callback:r}),this}publishAsync(e,t,n){return new Promise(((r,o)=>{this.publish(e,t,n,((e,t)=>{e?o(e):r(t)}))}))}subscribe(e,t,n){let r=this.options.protocolVersion;"function"==typeof t&&(n=t),n=n||this.noop;let o=!1,i=[];"string"==typeof e?i=e=[e]:Array.isArray(e)?i=e:"object"==typeof e&&(o=e.resubscribe,delete e.resubscribe,i=Object.keys(e));let a=u.validateTopics(i);if(null!==a)return y(n,new Error(`Invalid topic ${a}`)),this;if(this._checkDisconnecting(n))return this.log("subscribe: discconecting true"),this;let s={qos:0};5===r&&(s.nl=!1,s.rap=!1,s.rh=0);let l=(t=Object.assign(Object.assign({},s),t)).properties,c=[],f=(e,n)=>{if(n=n||t,!Object.prototype.hasOwnProperty.call(this._resubscribeTopics,e)||this._resubscribeTopics[e].qos{this.log("subscribe: array topic %s",e),f(e)})):Object.keys(e).forEach((t=>{this.log("subscribe: object topic %s, %o",t,e[t]),f(t,e[t])})),!c.length)return n(null,[]),this;let d=()=>{let e=this._nextId();if(null===e)return this.log("No messageId left"),!1;let t={cmd:"subscribe",subscriptions:c,messageId:e};if(l&&(t.properties=l),this.options.resubscribe){this.log("subscribe :: resubscribe true");let e=[];c.forEach((t=>{if(this.options.reconnectPeriod>0){let n={qos:t.qos};5===r&&(n.nl=t.nl||!1,n.rap=t.rap||!1,n.rh=t.rh||0,n.properties=t.properties),this._resubscribeTopics[t.topic]=n,e.push(t.topic)}})),this.messageIdToTopic[t.messageId]=e}return this.outgoing[t.messageId]={volatile:!0,cb(e,t){if(!e){let{granted:e}=t;for(let t=0;t0||!d())&&this._storeProcessingQueue.push({invoke:d,callback:n}),this}subscribeAsync(e,t){return new Promise(((n,r)=>{this.subscribe(e,t,((e,t)=>{e?r(e):n(t)}))}))}unsubscribe(e,t,n){"string"==typeof e&&(e=[e]),"function"==typeof t&&(n=t),n=n||this.noop;let r=u.validateTopics(e);if(null!==r)return y(n,new Error(`Invalid topic ${r}`)),this;if(this._checkDisconnecting(n))return this;let o=()=>{let r=this._nextId();if(null===r)return this.log("No messageId left"),!1;let o={cmd:"unsubscribe",messageId:r,unsubscriptions:[]};return"string"==typeof e?o.unsubscriptions=[e]:Array.isArray(e)&&(o.unsubscriptions=e),this.options.resubscribe&&o.unsubscriptions.forEach((e=>{delete this._resubscribeTopics[e]})),"object"==typeof t&&t.properties&&(o.properties=t.properties),this.outgoing[o.messageId]={volatile:!0,cb:n},this.log("unsubscribe: call _sendPacket"),this._sendPacket(o),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!o())&&this._storeProcessingQueue.push({invoke:o,callback:n}),this}unsubscribeAsync(e,t){return new Promise(((n,r)=>{this.unsubscribe(e,t,((e,t)=>{e?r(e):n(t)}))}))}end(e,t,n){this.log("end :: (%s)",this.options.clientId),(null==e||"boolean"!=typeof e)&&(n=n||t,t=e,e=!1),"object"!=typeof t&&(n=n||t,t=null),this.log("end :: cb? %s",!!n),(!n||"function"!=typeof n)&&(n=this.noop);let r=()=>{this.log("end :: closeStores: closing incoming and outgoing stores"),this.disconnected=!0,this.incomingStore.close((e=>{this.outgoingStore.close((t=>{if(this.log("end :: closeStores: emitting end"),this.emit("end"),n){let r=e||t;this.log("end :: closeStores: invoking callback with args"),n(r)}}))})),this._deferredReconnect?this._deferredReconnect():(0===this.options.reconnectPeriod||this.options.manualConnect)&&(this.disconnecting=!1)},o=()=>{this.log("end :: (%s) :: finish :: calling _cleanUp with force %s",this.options.clientId,e),this._cleanUp(e,(()=>{this.log("end :: finish :: calling process.nextTick on closeStores"),(0,h.nextTick)(r)}),t)};return this.disconnecting?(n(),this):(this._clearReconnect(),this.disconnecting=!0,!e&&Object.keys(this.outgoing).length>0?(this.log("end :: (%s) :: calling finish in 10ms once outgoing is empty",this.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,o,10))):(this.log("end :: (%s) :: immediately calling finish",this.options.clientId),o()),this)}endAsync(e,t){return new Promise(((n,r)=>{this.end(e,t,(e=>{e?r(e):n()}))}))}removeOutgoingMessage(e){if(this.outgoing[e]){let{cb:t}=this.outgoing[e];this._removeOutgoingAndStoreMessage(e,(()=>{t(new Error("Message removed"))}))}return this}reconnect(e){this.log("client reconnect");let t=()=>{e?(this.options.incomingStore=e.incomingStore,this.options.outgoingStore=e.outgoingStore):(this.options.incomingStore=null,this.options.outgoingStore=null),this.incomingStore=this.options.incomingStore||new d.default,this.outgoingStore=this.options.outgoingStore||new d.default,this.disconnecting=!1,this.disconnected=!1,this._deferredReconnect=null,this._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=t:t(),this}_flushVolatile(){this.outgoing&&(this.log("_flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(this.outgoing).forEach((e=>{this.outgoing[e].volatile&&"function"==typeof this.outgoing[e].cb&&(this.outgoing[e].cb(new Error("Connection closed")),delete this.outgoing[e])})))}_flush(){this.outgoing&&(this.log("_flush: queue exists? %b",!!this.outgoing),Object.keys(this.outgoing).forEach((e=>{"function"==typeof this.outgoing[e].cb&&(this.outgoing[e].cb(new Error("Connection closed")),delete this.outgoing[e])})))}_removeTopicAliasAndRecoverTopicName(e){let t;e.properties&&(t=e.properties.topicAlias);let n=e.topic.toString();if(this.log("_removeTopicAliasAndRecoverTopicName :: alias %d, topic %o",t,n),0===n.length){if(typeof t>"u")return new Error("Unregistered Topic Alias");if(n=this.topicAliasSend.getTopicByAlias(t),typeof n>"u")return new Error("Unregistered Topic Alias");e.topic=n}t&&delete e.properties.topicAlias}_checkDisconnecting(e){return this.disconnecting&&(e&&e!==this.noop?e(new Error("client disconnecting")):this.emit("error",new Error("client disconnecting"))),this.disconnecting}_reconnect(){this.log("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end((()=>{this.connect()})),this.log("client already connected. disconnecting first.")):(this.log("_reconnect: calling connect"),this.connect())}_setupReconnect(){!this.disconnecting&&!this.reconnectTimer&&this.options.reconnectPeriod>0?(this.reconnecting||(this.log("_setupReconnect :: emit `offline` state"),this.emit("offline"),this.log("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),this.log("_setupReconnect :: setting reconnectTimer for %d ms",this.options.reconnectPeriod),this.reconnectTimer=setInterval((()=>{this.log("reconnectTimer :: reconnect triggered!"),this._reconnect()}),this.options.reconnectPeriod)):this.log("_setupReconnect :: doing nothing...")}_clearReconnect(){this.log("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)}_cleanUp(e,t,n={}){if(t&&(this.log("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",t)),this.log("_cleanUp :: forced? %s",e),e)0===this.options.reconnectPeriod&&this.options.clean&&this._flush(),this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{let e=Object.assign({cmd:"disconnect"},n);this.log("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(e,(()=>{this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),y((()=>{this.stream.end((()=>{this.log("_cleanUp :: (%s) :: stream destroyed",this.options.clientId)}))}))}))}!this.disconnecting&&!this.reconnecting&&(this.log("_cleanUp :: client not disconnecting/reconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),this._destroyKeepaliveManager(),t&&!this.connected&&(this.log("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",t),t())}_storeAndSend(e,t,n){this.log("storeAndSend :: store packet with cmd %s to outgoingStore",e.cmd);let r,o=e;if("publish"===o.cmd&&(o=(0,c.default)(e),r=this._removeTopicAliasAndRecoverTopicName(o),r))return t&&t(r);this.outgoingStore.put(o,(r=>{if(r)return t&&t(r);n(),this._writePacket(e,t)}))}_applyTopicAlias(e){if(5===this.options.protocolVersion&&"publish"===e.cmd){let t;e.properties&&(t=e.properties.topicAlias);let n=e.topic.toString();if(this.topicAliasSend)if(t){if(0!==n.length&&(this.log("applyTopicAlias :: register topic: %s - alias: %d",n,t),!this.topicAliasSend.put(n,t)))return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",n,t),new Error("Sending Topic Alias out of range")}else 0!==n.length&&(this.options.autoAssignTopicAlias?(t=this.topicAliasSend.getAliasByTopic(n),t?(e.topic="",e.properties=Object.assign(Object.assign({},e.properties),{topicAlias:t}),this.log("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",n,t)):(t=this.topicAliasSend.getLruAlias(),this.topicAliasSend.put(n,t),e.properties=Object.assign(Object.assign({},e.properties),{topicAlias:t}),this.log("applyTopicAlias :: auto assign topic: %s - alias: %d",n,t))):this.options.autoUseTopicAlias&&(t=this.topicAliasSend.getAliasByTopic(n),t&&(e.topic="",e.properties=Object.assign(Object.assign({},e.properties),{topicAlias:t}),this.log("applyTopicAlias :: auto use topic: %s - alias: %d",n,t))));else if(t)return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",n,t),new Error("Sending Topic Alias out of range")}}_noop(e){this.log("noop ::",e)}_writePacket(e,t){this.log("_writePacket :: packet: %O",e),this.log("_writePacket :: emitting `packetsend`"),this.emit("packetsend",e),this.log("_writePacket :: writing to stream");let n=a.default.writeToStream(e,this.stream,this.options);this.log("_writePacket :: writeToStream result %s",n),!n&&t&&t!==this.noop?(this.log("_writePacket :: handle events on `drain` once through callback."),this.stream.once("drain",t)):t&&(this.log("_writePacket :: invoking cb"),t())}_sendPacket(e,t,n,r){this.log("_sendPacket :: (%s) :: start",this.options.clientId),n=n||this.noop,t=t||this.noop;let o=this._applyTopicAlias(e);if(o)t(o);else{if(!this.connected)return"auth"===e.cmd?void this._writePacket(e,t):(this.log("_sendPacket :: client not connected. Storing packet offline."),void this._storePacket(e,t,n));if(r)this._writePacket(e,t);else{switch(e.cmd){case"publish":break;case"pubrel":return void this._storeAndSend(e,t,n);default:return void this._writePacket(e,t)}switch(e.qos){case 2:case 1:this._storeAndSend(e,t,n);break;default:this._writePacket(e,t)}this.log("_sendPacket :: (%s) :: end",this.options.clientId)}}}_storePacket(e,t,n){this.log("_storePacket :: packet: %o",e),this.log("_storePacket :: cb? %s",!!t),n=n||this.noop;let r=e;if("publish"===r.cmd){r=(0,c.default)(e);let n=this._removeTopicAliasAndRecoverTopicName(r);if(n)return t&&t(n)}let o=r.qos||0;0===o&&this.queueQoSZero||"publish"!==r.cmd?this.queue.push({packet:r,cb:t}):o>0?(t=this.outgoing[r.messageId]?this.outgoing[r.messageId].cb:null,this.outgoingStore.put(r,(e=>{if(e)return t&&t(e);n()}))):t&&t(new Error("No connection to broker"))}_setupKeepaliveManager(){this.log("_setupKeepaliveManager :: keepalive %d (seconds)",this.options.keepalive),!this.keepaliveManager&&this.options.keepalive&&(this.keepaliveManager=new m.default(this,this.options.timerVariant))}_destroyKeepaliveManager(){this.keepaliveManager&&(this.log("_destroyKeepaliveManager :: destroying keepalive manager"),this.keepaliveManager.destroy(),this.keepaliveManager=null)}reschedulePing(e=!1){this.keepaliveManager&&this.options.keepalive&&(e||this.options.reschedulePings)&&this._reschedulePing()}_reschedulePing(){this.log("_reschedulePing :: rescheduling ping"),this.keepaliveManager.reschedule()}sendPing(){this.log("_sendPing :: sending pingreq"),this._sendPacket({cmd:"pingreq"})}onKeepaliveTimeout(){this.emit("error",new Error("Keepalive timeout")),this.log("onKeepaliveTimeout :: calling _cleanUp with force true"),this._cleanUp(!0)}_resubscribe(){this.log("_resubscribe");let e=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion>=4&&!this.connackPacket.sessionPresent)&&e.length>0)if(this.options.resubscribe)if(5===this.options.protocolVersion){this.log("_resubscribe: protocolVersion 5");for(let t=0;t{let n=this.outgoingStore.createStream(),r=()=>{n.destroy(),n=null,this._flushStoreProcessingQueue(),o()},o=()=>{this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={}};this.once("close",r),n.on("error",(e=>{o(),this._flushStoreProcessingQueue(),this.removeListener("close",r),this.emit("error",e)}));let i=()=>{if(!n)return;let e,t=n.read(1);t?(this._storeProcessing=!0,this._packetIdsDuringStoreProcessing[t.messageId]?i():this.disconnecting||this.reconnectTimer?n.destroy&&n.destroy():(e=this.outgoing[t.messageId]?this.outgoing[t.messageId].cb:null,this.outgoing[t.messageId]={volatile:!1,cb(t,n){e&&e(t,n),i()}},this._packetIdsDuringStoreProcessing[t.messageId]=!0,this.messageIdProvider.register(t.messageId)?this._sendPacket(t,void 0,void 0,!0):this.log("messageId: %d has already used.",t.messageId))):n.once("readable",i)};n.on("end",(()=>{let n=!0;for(let e in this._packetIdsDuringStoreProcessing)if(!this._packetIdsDuringStoreProcessing[e]){n=!1;break}this.removeListener("close",r),n?(o(),this._invokeAllStoreProcessingQueue(),this.emit("connect",e)):t()})),i()};t()}_invokeStoreProcessingQueue(){if(!this._storeProcessing&&this._storeProcessingQueue.length>0){let e=this._storeProcessingQueue[0];if(e&&e.invoke())return this._storeProcessingQueue.shift(),!0}return!1}_invokeAllStoreProcessingQueue(){for(;this._invokeStoreProcessingQueue(););}_flushStoreProcessingQueue(){for(let e of this._storeProcessingQueue)e.cbStorePut&&e.cbStorePut(new Error("Connection closed")),e.callback&&e.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)}_removeOutgoingAndStoreMessage(e,t){delete this.outgoing[e],this.outgoingStore.del({messageId:e},((n,r)=>{t(n,r),this.messageIdProvider.deallocate(e),this._invokeStoreProcessingQueue()}))}};w.VERSION=h.MQTTJS_VERSION,e.default=w})),yi=te((e=>{oe(),Kt(),Lt(),Object.defineProperty(e,"__esModule",{value:!0});var t=ii();e.default=class{constructor(){this.numberAllocator=new t.NumberAllocator(1,65535)}allocate(){return this.lastId=this.numberAllocator.alloc(),this.lastId}getLastAllocated(){return this.lastId}register(e){return this.numberAllocator.use(e)}deallocate(e){this.numberAllocator.free(e)}clear(){this.numberAllocator.clear()}}}));function bi(e){throw new RangeError(ki[e])}function wi(e,t){let n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);let o=function(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(xi,".")).split("."),t).join(".");return r+o}function Ei(e){let t=[],n=0,r=e.length;for(;n=55296&&o<=56319&&n{oe(),Kt(),Lt(),Si=/^xn--/,_i=/[^\0-\x7E]/,xi=/[\x2E\u3002\uFF0E\uFF61]/g,ki={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ci=Math.floor,Ti=String.fromCharCode,Oi=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},Ai=function(e,t,n){let r=0;for(e=n?Ci(e/700):e>>1,e+=Ci(e/t);e>455;r+=36)e=Ci(e/35);return Ci(r+36*e/(e+38))},Pi=function(e){let t=[],n=e.length,r=0,o=128,i=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let n=0;n=128&&bi("not-basic"),t.push(e.charCodeAt(n));for(let l=a>0?a+1:0;l=n&&bi("invalid-input");let a=(s=e.charCodeAt(l++))-48<10?s-22:s-65<26?s-65:s-97<26?s-97:36;(a>=36||a>Ci((2147483647-r)/t))&&bi("overflow"),r+=a*t;let c=o<=i?1:o>=i+26?26:o-i;if(aCi(2147483647/u)&&bi("overflow"),t*=u}let c=t.length+1;i=Ai(r-a,c,0==a),Ci(r/c)>2147483647-o&&bi("overflow"),o+=Ci(r/c),r%=c,t.splice(r++,0,o)}var s;return String.fromCodePoint(...t)},Ii=function(e){let t=[],n=(e=Ei(e)).length,r=128,o=0,i=72;for(let n of e)n<128&&t.push(Ti(n));let a=t.length,s=a;for(a&&t.push("-");s=r&&tCi((2147483647-o)/l)&&bi("overflow"),o+=(n-r)*l,r=n;for(let n of e)if(n2147483647&&bi("overflow"),n==r){let e=o;for(let n=36;;n+=36){let r=n<=i?1:n>=i+26?26:n-i;if(eString.fromCodePoint(...e)},decode:Pi,encode:Ii,toASCII:function(e){return wi(e,(function(e){return _i.test(e)?"xn--"+Ii(e):e}))},toUnicode:function(e){return wi(e,(function(e){return Si.test(e)?Pi(e.slice(4).toLowerCase()):e}))}},Ri.encode,Ri.toASCII,Ri.toUnicode,Ri.ucs2,Ri.version}));function ji(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Li,Ni,Di,Fi,Bi=ee((()=>{oe(),Kt(),Lt(),Li=function(e,t,n,r){t=t||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var i=/\+/g;e=e.split(t);var a=1e3;r&&"number"==typeof r.maxKeys&&(a=r.maxKeys);var s=e.length;a>0&&s>a&&(s=a);for(var l=0;l=0?(c=p.substr(0,h),u=p.substr(h+1)):(c=p,u=""),f=decodeURIComponent(c),d=decodeURIComponent(u),ji(o,f)?Array.isArray(o[f])?o[f].push(d):o[f]=[o[f],d]:o[f]=d}return o},Ni=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},Di=function(e,t,n,r){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(r){var o=encodeURIComponent(Ni(r))+n;return Array.isArray(e[r])?e[r].map((function(e){return o+encodeURIComponent(Ni(e))})).join(t):o+encodeURIComponent(Ni(e[r]))})).join(t):r?encodeURIComponent(Ni(r))+n+encodeURIComponent(Ni(e)):""},(Fi={}).decode=Fi.parse=Li,Fi.encode=Fi.stringify=Di,Fi.decode,Fi.encode,Fi.parse,Fi.stringify}));function $i(){throw new Error("setTimeout has not been defined")}function Zi(){throw new Error("clearTimeout has not been defined")}function zi(e){if(Gi===setTimeout)return setTimeout(e,0);if((Gi===$i||!Gi)&&setTimeout)return Gi=setTimeout,setTimeout(e,0);try{return Gi(e,0)}catch{try{return Gi.call(null,e,0)}catch{return Gi.call(this||Yi,e,0)}}}function Ui(){ea&&Qi&&(ea=!1,Qi.length?Ji=Qi.concat(Ji):ta=-1,Ji.length&&Hi())}function Hi(){if(!ea){var e=zi(Ui);ea=!0;for(var t=Ji.length;t;){for(Qi=Ji,Ji=[];++ta{oe(),Kt(),Lt(),Yi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:n.g,Xi=qi={},function(){try{Gi="function"==typeof setTimeout?setTimeout:$i}catch{Gi=$i}try{Ki="function"==typeof clearTimeout?clearTimeout:Zi}catch{Ki=Zi}}(),Ji=[],ea=!1,ta=-1,Xi.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n1)for(var n=1;n{oe(),Kt(),Lt(),ia={},aa=!1,sa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:n.g,(la=oa()).platform="browser",la.addListener,la.argv,la.binding,la.browser,la.chdir,la.cwd,la.emit,la.env,la.listeners,la.nextTick,la.off,la.on,la.once,la.prependListener,la.prependOnceListener,la.removeAllListeners,la.removeListener,la.title,la.umask,la.version,la.versions}));var ua,fa,da,pa=ee((()=>{oe(),Kt(),Lt(),ca(),ua={},fa=!1,da=function(){if(fa)return ua;fa=!0;var e=la;function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",o=0,i=-1,a=0,s=0;s<=e.length;++s){if(s2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",o=0):o=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),i=s,a=0;continue}}else if(2===r.length||1===r.length){r="",o=0,i=s,a=0;continue}t&&(r.length>0?r+="/..":r="..",o=2)}else r.length>0?r+="/"+e.slice(i+1,s):r=e.slice(i+1,s),o=s-i-1;i=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var r={resolve:function(){for(var r,o="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var s;a>=0?s=arguments[a]:(void 0===r&&(r=e.cwd()),s=r),t(s),0!==s.length&&(o=s+"/"+o,i=47===s.charCodeAt(0))}return o=n(o,!i),i?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),o=47===e.charCodeAt(e.length-1);return 0===(e=n(e,!r)).length&&!r&&(e="."),e.length>0&&o&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n0&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n||(e=r.resolve(e))===(n=r.resolve(n)))return"";for(var o=1;oc){if(47===n.charCodeAt(s+f))return n.slice(s+f+1);if(0===f)return n.slice(s+f)}else a>c&&(47===e.charCodeAt(o+f)?u=f:0===f&&(u=0));break}var d=e.charCodeAt(o+f);if(d!==n.charCodeAt(s+f))break;47===d&&(u=f)}var p="";for(f=o+u+1;f<=i;++f)(f===i||47===e.charCodeAt(f))&&(0===p.length?p+="..":p+="/..");return p.length>0?p+n.slice(s+u):(s+=u,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,o=-1,i=!0,a=e.length-1;a>=1;--a)if(47===(n=e.charCodeAt(a))){if(!i){o=a;break}}else i=!1;return-1===o?r?"/":".":r&&1===o?"//":e.slice(0,o)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,o=0,i=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!a){o=r+1;break}}else-1===l&&(a=!1,l=r+1),s>=0&&(c===n.charCodeAt(s)?-1==--s&&(i=r):(s=-1,i=l))}return o===i?i=l:-1===i&&(i=e.length),e.slice(o,i)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){o=r+1;break}}else-1===i&&(a=!1,i=r+1);return-1===i?"":e.slice(o,i)},extname:function(e){t(e);for(var n=-1,r=0,o=-1,i=!0,a=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47!==l)-1===o&&(i=!1,o=s+1),46===l?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1);else if(!i){r=s+1;break}}return-1===n||-1===o||0===a||1===a&&n===o-1&&n===r+1?"":e.slice(n,o)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}("/",e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,o=e.charCodeAt(0),i=47===o;i?(n.root="/",r=1):r=0;for(var a=-1,s=0,l=-1,c=!0,u=e.length-1,f=0;u>=r;--u)if(47!==(o=e.charCodeAt(u)))-1===l&&(c=!1,l=u+1),46===o?-1===a?a=u:1!==f&&(f=1):-1!==a&&(f=-1);else if(!c){s=u+1;break}return-1===a||-1===l||0===f||1===f&&a===l-1&&a===s+1?-1!==l&&(n.base=n.name=0===s&&i?e.slice(1,l):e.slice(s,l)):(0===s&&i?(n.name=e.slice(1,a),n.base=e.slice(1,l)):(n.name=e.slice(s,a),n.base=e.slice(s,l)),n.ext=e.slice(a,l)),s>0?n.dir=e.slice(0,s-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};return r.posix=r,ua=r}()})),ha={};function ga(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function ma(e,t,n){if(e&&_a.isObject(e)&&e instanceof ga)return e;var r=new ga;return r.parse(e,t,n),r}function va(e){if("string"==typeof e)e=new URL(e);else if(!(e instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if("file:"!==e.protocol)throw new Deno.errors.InvalidData("invalid url scheme");return Wa?function(e){let t=e.hostname,n=e.pathname;for(let e=0;eHa||":"!==t)throw new Deno.errors.InvalidData("file url path must be absolute");return n.slice(1)}}(e):function(e){if(""!==e.hostname)throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let e=0;els||":"!==t)throw new Deno.errors.InvalidData("file url path must be absolute");return n.slice(1)}}(e):function(e){if(""!==e.hostname)throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let e=0;eos,Url:()=>Ja,default:()=>Ea,fileURLToPath:()=>ba,format:()=>es,parse:()=>rs,pathToFileURL:()=>wa,resolve:()=>ts,resolveObject:()=>ns});var Ea,Sa,_a,xa,ka,Ca,Ta,Oa,Aa,Pa,Ia,Ra,Ma,ja,La,Na,Da,Fa,Ba,$a,Za,za,Ua,Ha,Wa,Va,qa,Ga,Ka,Ya,Xa,Qa,Ja,es,ts,ns,rs,os,is,as,ss,ls,cs,us,fs,ds,ps,hs,gs,ms=ee((()=>{oe(),Kt(),Lt(),Mi(),Bi(),ra(),pa(),ca(),Sa=Ri,_a={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}},(Ea={}).parse=ma,Ea.resolve=function(e,t){return ma(e,!1,!0).resolve(t)},Ea.resolveObject=function(e,t){return e?ma(e,!1,!0).resolveObject(t):t},Ea.format=function(e){return _a.isString(e)&&(e=ma(e)),e instanceof ga?e.format():ga.prototype.format.call(e)},Ea.Url=ga,xa=/^([a-z0-9.+-]+:)/i,ka=/:[0-9]*$/,Ca=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Ta=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Oa=["'"].concat(Ta),Aa=["%","/","?",";","#"].concat(Oa),Pa=["/","?","#"],Ia=/^[+a-z0-9A-Z_-]{0,63}$/,Ra=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ma={javascript:!0,"javascript:":!0},ja={javascript:!0,"javascript:":!0},La={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Na=Fi,ga.prototype.parse=function(e,t,n){if(!_a.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),o=-1!==r&&r127?w+="x":w+=b[E];if(!w.match(Ia)){var _=v.slice(0,h),x=v.slice(h+1),k=b.match(Ra);k&&(_.push(k[1]),x.unshift(k[2])),x.length&&(a="/"+x.join(".")+a),this.hostname=_.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),m||(this.hostname=Sa.toASCII(this.hostname));var C=this.port?":"+this.port:"",T=this.hostname||"";this.host=T+C,this.href+=this.host,m&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!Ma[c])for(h=0,y=Oa.length;h0)&&n.host.split("@"))&&(n.auth=k.shift(),n.host=n.hostname=k.shift())),n.search=e.search,n.query=e.query,_a.isNull(n.pathname)&&_a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!b.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var E=b.slice(-1)[0],S=(n.host||e.host||b.length>1)&&("."===E||".."===E)||""===E,_=0,x=b.length;x>=0;x--)"."===(E=b[x])?b.splice(x,1):".."===E?(b.splice(x,1),_++):_&&(b.splice(x,1),_--);if(!v&&!y)for(;_--;_)b.unshift("..");!v||""===b[0]||b[0]&&"/"===b[0].charAt(0)||b.unshift(""),S&&"/"!==b.join("/").substr(-1)&&b.push("");var k,C=""===b[0]||b[0]&&"/"===b[0].charAt(0);return w&&(n.hostname=n.host=C?"":b.length?b.shift():"",(k=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=k.shift(),n.host=n.hostname=k.shift())),(v=v||n.host&&b.length)&&!C&&b.unshift(""),b.length?n.pathname=b.join("/"):(n.pathname=null,n.path=null),_a.isNull(n.pathname)&&_a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},ga.prototype.parseHost=function(){var e=this.host,t=ka.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},Ea.Url,Ea.format,Ea.resolve,Ea.resolveObject,Da={},Fa=!1,Ba=function(){if(Fa)return Da;Fa=!0;var e=na;function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",o=0,i=-1,a=0,s=0;s<=e.length;++s){if(s2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",o=0):o=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),i=s,a=0;continue}}else if(2===r.length||1===r.length){r="",o=0,i=s,a=0;continue}t&&(r.length>0?r+="/..":r="..",o=2)}else r.length>0?r+="/"+e.slice(i+1,s):r=e.slice(i+1,s),o=s-i-1;i=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var r={resolve:function(){for(var r,o="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var s;a>=0?s=arguments[a]:(void 0===r&&(r=e.cwd()),s=r),t(s),0!==s.length&&(o=s+"/"+o,i=47===s.charCodeAt(0))}return o=n(o,!i),i?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),o=47===e.charCodeAt(e.length-1);return 0===(e=n(e,!r)).length&&!r&&(e="."),e.length>0&&o&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n0&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n||(e=r.resolve(e))===(n=r.resolve(n)))return"";for(var o=1;oc){if(47===n.charCodeAt(s+f))return n.slice(s+f+1);if(0===f)return n.slice(s+f)}else a>c&&(47===e.charCodeAt(o+f)?u=f:0===f&&(u=0));break}var d=e.charCodeAt(o+f);if(d!==n.charCodeAt(s+f))break;47===d&&(u=f)}var p="";for(f=o+u+1;f<=i;++f)(f===i||47===e.charCodeAt(f))&&(0===p.length?p+="..":p+="/..");return p.length>0?p+n.slice(s+u):(s+=u,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,o=-1,i=!0,a=e.length-1;a>=1;--a)if(47===(n=e.charCodeAt(a))){if(!i){o=a;break}}else i=!1;return-1===o?r?"/":".":r&&1===o?"//":e.slice(0,o)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,o=0,i=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!a){o=r+1;break}}else-1===l&&(a=!1,l=r+1),s>=0&&(c===n.charCodeAt(s)?-1==--s&&(i=r):(s=-1,i=l))}return o===i?i=l:-1===i&&(i=e.length),e.slice(o,i)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){o=r+1;break}}else-1===i&&(a=!1,i=r+1);return-1===i?"":e.slice(o,i)},extname:function(e){t(e);for(var n=-1,r=0,o=-1,i=!0,a=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47!==l)-1===o&&(i=!1,o=s+1),46===l?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1);else if(!i){r=s+1;break}}return-1===n||-1===o||0===a||1===a&&n===o-1&&n===r+1?"":e.slice(n,o)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}("/",e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,o=e.charCodeAt(0),i=47===o;i?(n.root="/",r=1):r=0;for(var a=-1,s=0,l=-1,c=!0,u=e.length-1,f=0;u>=r;--u)if(47!==(o=e.charCodeAt(u)))-1===l&&(c=!1,l=u+1),46===o?-1===a?a=u:1!==f&&(f=1):-1!==a&&(f=-1);else if(!c){s=u+1;break}return-1===a||-1===l||0===f||1===f&&a===l-1&&a===s+1?-1!==l&&(n.base=n.name=0===s&&i?e.slice(1,l):e.slice(s,l)):(0===s&&i?(n.name=e.slice(1,a),n.base=e.slice(1,l)):(n.name=e.slice(s,a),n.base=e.slice(s,l)),n.ext=e.slice(a,l)),s>0?n.dir=e.slice(0,s-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};return r.posix=r,Da=r}(),$a=typeof Deno<"u"?"windows"===Deno.build.os?"win32":Deno.build.os:void 0,Ea.URL=typeof URL<"u"?URL:null,Ea.pathToFileURL=ya,Ea.fileURLToPath=va,Ea.Url,Ea.format,Ea.resolve,Ea.resolveObject,Ea.URL,Za=92,za=47,Ua=97,Ha=122,Wa="win32"===$a,Va=/\//g,qa=/%/g,Ga=/\\/g,Ka=/\n/g,Ya=/\r/g,Xa=/\t/g,Qa=typeof Deno<"u"?"windows"===Deno.build.os?"win32":Deno.build.os:void 0,Ea.URL=typeof URL<"u"?URL:null,Ea.pathToFileURL=wa,Ea.fileURLToPath=ba,Ja=Ea.Url,es=Ea.format,ts=Ea.resolve,ns=Ea.resolveObject,rs=Ea.parse,os=Ea.URL,is=92,as=47,ss=97,ls=122,cs="win32"===Qa,us=/\//g,fs=/%/g,ds=/\\/g,ps=/\n/g,hs=/\r/g,gs=/\t/g})),vs=te(((e,t)=>{oe(),Kt(),Lt(),t.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}})),ys=te((e=>{oe(),Kt(),Lt(),Object.defineProperty(e,"__esModule",{value:!0}),e.BufferedDuplex=e.writev=void 0;var t=fo(),n=(Gt(),re(Nt));function r(e,t){let r=new Array(e.length);for(let t=0;t{this.destroyed||this.push(e)}))}_read(e){this.proxy.read(e)}_write(e,t,n){this.isSocketOpen?this.writeToProxy(e,t,n):this.writeQueue.push({chunk:e,encoding:t,cb:n})}_final(e){this.writeQueue=[],this.proxy.end(e)}_destroy(e,t){this.writeQueue=[],this.proxy.destroy(),t(e)}socketReady(){this.emit("connect"),this.isSocketOpen=!0,this.processWriteQueue()}writeToProxy(e,t,n){!1===this.proxy.write(e,t)?this.proxy.once("drain",n):n()}processWriteQueue(){for(;this.writeQueue.length>0;){let{chunk:e,encoding:t,cb:n}=this.writeQueue.shift();this.writeToProxy(e,t,n)}}};e.BufferedDuplex=o})),bs=te((e=>{oe(),Kt(),Lt();var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.streamBuilder=e.browserStreamBuilder=void 0;var n=(Gt(),re(Nt)),r=t(vs()),o=t(wo()),i=fo(),a=t(fi()),s=ys(),l=(0,o.default)("mqttjs:ws"),c=["rejectUnauthorized","ca","cert","key","pfx","passphrase"];function u(e,t){let n=`${e.protocol}://${e.hostname}:${e.port}${e.path}`;return"function"==typeof e.transformWsUrl&&(n=e.transformWsUrl(n,e,t)),n}function f(e){let t=e;return e.port||("wss"===e.protocol?t.port=443:t.port=80),e.path||(t.path="/"),e.wsOptions||(t.wsOptions={}),!a.default&&!e.forceNativeWebSocket&&"wss"===e.protocol&&c.forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&!Object.prototype.hasOwnProperty.call(e.wsOptions,n)&&(t.wsOptions[n]=e[n])})),t}e.streamBuilder=(e,t)=>{l("streamBuilder");let n=f(t);n.hostname=n.hostname||n.host||"localhost";let o=u(n,e),i=function(e,t,n){l("createWebSocket"),l(`protocol: ${n.protocolId} ${n.protocolVersion}`);let o,i="MQIsdp"===n.protocolId&&3===n.protocolVersion?"mqttv3.1":"mqtt";return l(`creating new Websocket for url: ${t} and protocol: ${i}`),o=n.createWebsocket?n.createWebsocket(t,[i],n):new r.default(t,[i],n.wsOptions),o}(0,o,n),a=r.default.createWebSocketStream(i,n.wsOptions);return a.url=o,i.on("close",(()=>{a.destroy()})),a};e.browserStreamBuilder=(e,t)=>{l("browserStreamBuilder");let r,o=function(e){let t=f(e);if(t.hostname||(t.hostname=t.host),!t.hostname){if(typeof document>"u")throw new Error("Could not determine host. Specify host manually.");let e=new URL(document.URL);t.hostname=e.hostname,t.port||(t.port=Number(e.port))}return void 0===t.objectMode&&(t.objectMode=!(!0===t.binary||void 0===t.binary)),t}(t).browserBufferSize||524288,a=t.browserBufferTimeout||1e3,c=!t.objectMode,d=function(e,t){let n,r="MQIsdp"===t.protocolId&&3===t.protocolVersion?"mqttv3.1":"mqtt",o=u(t,e);return n=t.createWebsocket?t.createWebsocket(o,[r],t):new WebSocket(o,[r]),n.binaryType="arraybuffer",n}(e,t),p=function(e,t,n){let r=new i.Transform({objectMode:e.objectMode});return r._write=t,r._flush=n,r}(t,(function e(t,r,i){if(d.bufferedAmount>o)return void setTimeout(e,a,t,r,i);c&&"string"==typeof t&&(t=n.Buffer.from(t,"utf8"));try{d.send(t)}catch(e){return i(e)}i()}),(function(e){d.close(),e()}));t.objectMode||(p._writev=s.writev.bind(p)),p.on("close",(()=>{d.close()}));let h=typeof d.addEventListener<"u";function g(){l("WebSocket onOpen"),r instanceof s.BufferedDuplex&&r.socketReady()}function m(e){l("WebSocket onClose",e),r.end(),r.destroy()}function v(e){l("WebSocket onError",e);let t=new Error("WebSocket error");t.event=e,r.destroy(t)}async function y(e){let{data:t}=e;t=t instanceof ArrayBuffer?n.Buffer.from(t):t instanceof Blob?n.Buffer.from(await new Response(t).arrayBuffer()):n.Buffer.from(t,"utf8"),p&&!p.destroyed&&p.push(t)}return d.readyState===d.OPEN?(r=p,r.socket=d):(r=new s.BufferedDuplex(t,p,d),h?d.addEventListener("open",g):d.onopen=g),h?(d.addEventListener("close",m),d.addEventListener("error",v),d.addEventListener("message",y)):(d.onclose=m,d.onerror=v,d.onmessage=y),r}})),ws={};function Es(){throw new Error("Node.js net module is not supported by JSPM core outside of Node.js")}ne(ws,{Server:()=>Es,Socket:()=>Es,Stream:()=>Es,_createServerHandle:()=>Es,_normalizeArgs:()=>Es,_setSimultaneousAccepts:()=>Es,connect:()=>Es,createConnection:()=>Es,createServer:()=>Es,default:()=>Ss,isIP:()=>Es,isIPv4:()=>Es,isIPv6:()=>Es});var Ss,_s=ee((()=>{oe(),Kt(),Lt(),Ss={_createServerHandle:Es,_normalizeArgs:Es,_setSimultaneousAccepts:Es,connect:Es,createConnection:Es,createServer:Es,isIP:Es,isIPv4:Es,isIPv6:Es,Server:Es,Socket:Es,Stream:Es}})),xs=te((e=>{oe(),Kt(),Lt();var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var n=t((_s(),re(ws))),r=(0,t(wo()).default)("mqttjs:tcp");e.default=(e,t)=>{t.port=t.port||1883,t.hostname=t.hostname||t.host||"localhost";let{port:o,path:i}=t,a=t.hostname;return r("port %d and host %s",o,a),n.default.createConnection({port:o,host:a,path:i})}})),ks={};ne(ks,{default:()=>Cs});var Cs,Ts=ee((()=>{oe(),Kt(),Lt(),Cs={}})),Os=te((e=>{oe(),Kt(),Lt();var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var n=t((Ts(),re(ks))),r=t((_s(),re(ws))),o=(0,t(wo()).default)("mqttjs:tls");e.default=(e,t)=>{t.port=t.port||8883,t.host=t.hostname||t.host||"localhost",0===r.default.isIP(t.host)&&(t.servername=t.host),t.rejectUnauthorized=!1!==t.rejectUnauthorized,delete t.path,o("port %d host %s rejectUnauthorized %b",t.port,t.host,t.rejectUnauthorized);let i=n.default.connect(t);function a(n){t.rejectUnauthorized&&e.emit("error",n),i.end()}return i.on("secureConnect",(()=>{t.rejectUnauthorized&&!i.authorized?i.emit("error",new Error("TLS not authorized")):i.removeListener("error",a)})),i.on("error",a),i}})),As=te((e=>{oe(),Kt(),Lt(),Object.defineProperty(e,"__esModule",{value:!0});var t,n,r,o=(Gt(),re(Nt)),i=fo(),a=ys();e.default=(e,s)=>{if(s.hostname=s.hostname||s.host,!s.hostname)throw new Error("Could not determine host. Specify host manually.");let l="MQIsdp"===s.protocolId&&3===s.protocolVersion?"mqttv3.1":"mqtt";!function(e){e.hostname||(e.hostname="localhost"),e.path||(e.path="/"),e.wsOptions||(e.wsOptions={})}(s);let c=function(e,t){let n="wxs"===e.protocol?"wss":"ws",r=`${n}://${e.hostname}${e.path}`;return e.port&&80!==e.port&&443!==e.port&&(r=`${n}://${e.hostname}:${e.port}${e.path}`),"function"==typeof e.transformWsUrl&&(r=e.transformWsUrl(r,e,t)),r}(s,e);t=wx.connectSocket({url:c,protocols:[l]}),n=function(){let e=new i.Transform;return e._write=(e,n,r)=>{t.send({data:e.buffer,success(){r()},fail(e){r(new Error(e))}})},e._flush=e=>{t.close({success(){e()}})},e}(),(r=new a.BufferedDuplex(s,n,t))._destroy=(e,n)=>{t.close({success(){n&&n(e)}})};let u=r.destroy;return r.destroy=(e,n)=>(r.destroy=u,setTimeout((()=>{t.close({fail(){r._destroy(e,n)}})}),0),r),t.onOpen((()=>{r.socketReady()})),t.onMessage((e=>{let{data:t}=e;t=t instanceof ArrayBuffer?o.Buffer.from(t):o.Buffer.from(t,"utf8"),n.push(t)})),t.onClose((()=>{r.emit("close"),r.end(),r.destroy()})),t.onError((e=>{let t=new Error(e.errMsg);r.destroy(t)})),r}})),Ps=te((e=>{oe(),Kt(),Lt(),Object.defineProperty(e,"__esModule",{value:!0});var t,n,r,o=(Gt(),re(Nt)),i=fo(),a=ys(),s=!1;e.default=(e,l)=>{if(l.hostname=l.hostname||l.host,!l.hostname)throw new Error("Could not determine host. Specify host manually.");let c="MQIsdp"===l.protocolId&&3===l.protocolVersion?"mqttv3.1":"mqtt";!function(e){e.hostname||(e.hostname="localhost"),e.path||(e.path="/"),e.wsOptions||(e.wsOptions={})}(l);let u=function(e,t){let n="alis"===e.protocol?"wss":"ws",r=`${n}://${e.hostname}${e.path}`;return e.port&&80!==e.port&&443!==e.port&&(r=`${n}://${e.hostname}:${e.port}${e.path}`),"function"==typeof e.transformWsUrl&&(r=e.transformWsUrl(r,e,t)),r}(l,e);return(t=l.my).connectSocket({url:u,protocols:c}),n=function(){let e=new i.Transform;return e._write=(e,n,r)=>{t.sendSocketMessage({data:e.buffer,success(){r()},fail(){r(new Error)}})},e._flush=e=>{t.closeSocket({success(){e()}})},e}(),r=new a.BufferedDuplex(l,n,t),s||(s=!0,t.onSocketOpen((()=>{r.socketReady()})),t.onSocketMessage((e=>{if("string"==typeof e.data){let t=o.Buffer.from(e.data,"base64");n.push(t)}else{let t=new FileReader;t.addEventListener("load",(()=>{let e=t.result;e=e instanceof ArrayBuffer?o.Buffer.from(e):o.Buffer.from(e,"utf8"),n.push(e)})),t.readAsArrayBuffer(e.data)}})),t.onSocketClose((()=>{r.end(),r.destroy()})),t.onSocketError((e=>{r.destroy(e)}))),r}})),Is=te((e=>{oe(),Kt(),Lt();var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.connectAsync=void 0;var n=t(wo()),r=t((ms(),re(ha))),o=t(vi()),i=t(fi());"function"!=typeof(null==ie?void 0:ie.nextTick)&&(ie.nextTick=setImmediate);var a=(0,n.default)("mqttjs"),s=null;function l(e,t){var n,l,c,u;if(a("connecting to an MQTT broker..."),"object"==typeof e&&!t&&(t=e,e=""),t=t||{},e&&"string"==typeof e){let o=r.default.parse(e,!0),i={};if(null!=o.port&&(i.port=Number(o.port)),i.host=o.hostname,i.query=o.query,i.auth=o.auth,i.protocol=o.protocol,i.path=o.path,i.protocol=null===(n=i.protocol)||void 0===n?void 0:n.replace(/:$/,""),!(t=Object.assign(Object.assign({},i),t)).protocol)throw new Error("Missing protocol")}if(t.unixSocket=t.unixSocket||(null===(l=t.protocol)||void 0===l?void 0:l.includes("+unix")),t.unixSocket?t.protocol=t.protocol.replace("+unix",""):null!==(c=t.protocol)&&void 0!==c&&c.startsWith("ws")||null!==(u=t.protocol)&&void 0!==u&&u.startsWith("wx")||delete t.path,function(e){let t;e.auth&&(t=e.auth.match(/^(.+):(.+)$/),t?(e.username=t[1],e.password=t[2]):e.username=e.auth)}(t),t.query&&"string"==typeof t.query.clientId&&(t.clientId=t.query.clientId),t.cert&&t.key){if(!t.protocol)throw new Error("Missing secure protocol key");if(-1===["mqtts","wss","wxs","alis"].indexOf(t.protocol))switch(t.protocol){case"mqtt":t.protocol="mqtts";break;case"ws":t.protocol="wss";break;case"wx":t.protocol="wxs";break;case"ali":t.protocol="alis";break;default:throw new Error(`Unknown protocol for secure connection: "${t.protocol}"!`)}}if(s||(s={},i.default||t.forceNativeWebSocket?(s.ws=bs().browserStreamBuilder,s.wss=bs().browserStreamBuilder,s.wx=As().default,s.wxs=As().default,s.ali=Ps().default,s.alis=Ps().default):(s.ws=bs().streamBuilder,s.wss=bs().streamBuilder,s.mqtt=xs().default,s.tcp=xs().default,s.ssl=Os().default,s.tls=s.ssl,s.mqtts=Os().default)),!s[t.protocol]){let e=-1!==["mqtts","wss"].indexOf(t.protocol);t.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter(((t,n)=>(!e||n%2!=0)&&"function"==typeof s[t]))[0]}if(!1===t.clean&&!t.clientId)throw new Error("Missing clientId for unclean clients");t.protocol&&(t.defaultProtocol=t.protocol);let f=new o.default((function(e){return t.servers&&((!e._reconnectCount||e._reconnectCount===t.servers.length)&&(e._reconnectCount=0),t.host=t.servers[e._reconnectCount].host,t.port=t.servers[e._reconnectCount].port,t.protocol=t.servers[e._reconnectCount].protocol?t.servers[e._reconnectCount].protocol:t.defaultProtocol,t.hostname=t.host,e._reconnectCount++),a("calling streambuilder for",t.protocol),s[t.protocol](e,t)}),t);return f.on("error",(()=>{})),f}e.connectAsync=function(e,t,n=!0){return new Promise(((r,o)=>{let i=l(e,t),a={connect:e=>{s(),r(i)},end:()=>{s(),r(i)},error:e=>{s(),i.end(),o(e)}};function s(){Object.keys(a).forEach((e=>{i.off(e,a[e])}))}!1===n&&(a.close=()=>{a.error(new Error("Couldn't connect to server"))}),Object.keys(a).forEach((e=>{i.on(e,a[e])}))}))},e.default=l})),Rs=te((e=>{oe(),Kt(),Lt();var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&t(r,e,o);return n(r,e),r},o=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.ReasonCodes=e.KeepaliveManager=e.UniqueMessageIdProvider=e.DefaultMessageIdProvider=e.Store=e.MqttClient=e.connectAsync=e.connect=e.Client=void 0;var a=i(vi());e.MqttClient=a.default;var s=i(To());e.DefaultMessageIdProvider=s.default;var l=i(yi());e.UniqueMessageIdProvider=l.default;var c=i(Io());e.Store=c.default;var u=r(Is());e.connect=u.default,Object.defineProperty(e,"connectAsync",{enumerable:!0,get:function(){return u.connectAsync}});var f=i(mi());e.KeepaliveManager=f.default,e.Client=a.default,o(vi(),e),o(jo(),e);var d=Lo();Object.defineProperty(e,"ReasonCodes",{enumerable:!0,get:function(){return d.ReasonCodes}})})),Ms=te((e=>{oe(),Kt(),Lt();var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&t(r,e,o);return n(r,e),r},o=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(Rs());e.default=i,o(Rs(),e)}))(),js=n(78537),Ls=js,Ns=function(){return this?this:"undefined"!=typeof window?window:void 0!==Ns?Ns:"undefined"!=typeof self?self:Function("return this")()}.call(null);Ls.exportSymbol("proto.User",null,Ns),proto.User=function(e){js.Message.initialize(this,e,0,-1,null,null)},Ls.inherits(proto.User,js.Message),Ls.DEBUG&&!COMPILED&&(proto.User.displayName="proto.User"),js.Message.GENERATE_TO_OBJECT&&(proto.User.prototype.toObject=function(e){return proto.User.toObject(e,this)},proto.User.toObject=function(e,t){var n={uid:js.Message.getFieldWithDefault(t,1,""),nickname:js.Message.getFieldWithDefault(t,2,""),avatar:js.Message.getFieldWithDefault(t,3,""),type:js.Message.getFieldWithDefault(t,4,""),extra:js.Message.getFieldWithDefault(t,5,"")};return e&&(n.$jspbMessageInstance=t),n}),proto.User.deserializeBinary=function(e){var t=new js.BinaryReader(e),n=new proto.User;return proto.User.deserializeBinaryFromReader(n,t)},proto.User.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var n=t.readString();e.setUid(n);break;case 2:n=t.readString();e.setNickname(n);break;case 3:n=t.readString();e.setAvatar(n);break;case 4:n=t.readString();e.setType(n);break;case 5:n=t.readString();e.setExtra(n);break;default:t.skipField()}}return e},proto.User.prototype.serializeBinary=function(){var e=new js.BinaryWriter;return proto.User.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.User.serializeBinaryToWriter=function(e,t){var n=void 0;(n=e.getUid()).length>0&&t.writeString(1,n),(n=e.getNickname()).length>0&&t.writeString(2,n),(n=e.getAvatar()).length>0&&t.writeString(3,n),(n=e.getType()).length>0&&t.writeString(4,n),(n=e.getExtra()).length>0&&t.writeString(5,n)},proto.User.prototype.getUid=function(){return js.Message.getFieldWithDefault(this,1,"")},proto.User.prototype.setUid=function(e){return js.Message.setProto3StringField(this,1,e)},proto.User.prototype.getNickname=function(){return js.Message.getFieldWithDefault(this,2,"")},proto.User.prototype.setNickname=function(e){return js.Message.setProto3StringField(this,2,e)},proto.User.prototype.getAvatar=function(){return js.Message.getFieldWithDefault(this,3,"")},proto.User.prototype.setAvatar=function(e){return js.Message.setProto3StringField(this,3,e)},proto.User.prototype.getType=function(){return js.Message.getFieldWithDefault(this,4,"")},proto.User.prototype.setType=function(e){return js.Message.setProto3StringField(this,4,e)},proto.User.prototype.getExtra=function(){return js.Message.getFieldWithDefault(this,5,"")},proto.User.prototype.setExtra=function(e){return js.Message.setProto3StringField(this,5,e)};var Ds=js,Fs=function(){return this?this:"undefined"!=typeof window?window:void 0!==Fs?Fs:"undefined"!=typeof self?self:Function("return this")()}.call(null);Ds.exportSymbol("proto.Thread",null,Fs),proto.Thread=function(e){js.Message.initialize(this,e,0,-1,null,null)},Ds.inherits(proto.Thread,js.Message),Ds.DEBUG&&!COMPILED&&(proto.Thread.displayName="proto.Thread"),js.Message.GENERATE_TO_OBJECT&&(proto.Thread.prototype.toObject=function(e){return proto.Thread.toObject(e,this)},proto.Thread.toObject=function(e,t){var n,r={uid:js.Message.getFieldWithDefault(t,1,""),topic:js.Message.getFieldWithDefault(t,2,""),type:js.Message.getFieldWithDefault(t,3,""),state:js.Message.getFieldWithDefault(t,4,""),user:(n=t.getUser())&&proto.User.toObject(e,n),extra:js.Message.getFieldWithDefault(t,6,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.Thread.deserializeBinary=function(e){var t=new js.BinaryReader(e),n=new proto.Thread;return proto.Thread.deserializeBinaryFromReader(n,t)},proto.Thread.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var n=t.readString();e.setUid(n);break;case 2:n=t.readString();e.setTopic(n);break;case 3:n=t.readString();e.setType(n);break;case 4:n=t.readString();e.setState(n);break;case 5:n=new proto.User;t.readMessage(n,proto.User.deserializeBinaryFromReader),e.setUser(n);break;case 6:n=t.readString();e.setExtra(n);break;default:t.skipField()}}return e},proto.Thread.prototype.serializeBinary=function(){var e=new js.BinaryWriter;return proto.Thread.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.Thread.serializeBinaryToWriter=function(e,t){var n=void 0;(n=e.getUid()).length>0&&t.writeString(1,n),(n=e.getTopic()).length>0&&t.writeString(2,n),(n=e.getType()).length>0&&t.writeString(3,n),(n=e.getState()).length>0&&t.writeString(4,n),null!=(n=e.getUser())&&t.writeMessage(5,n,proto.User.serializeBinaryToWriter),(n=e.getExtra()).length>0&&t.writeString(6,n)},proto.Thread.prototype.getUid=function(){return js.Message.getFieldWithDefault(this,1,"")},proto.Thread.prototype.setUid=function(e){return js.Message.setProto3StringField(this,1,e)},proto.Thread.prototype.getTopic=function(){return js.Message.getFieldWithDefault(this,2,"")},proto.Thread.prototype.setTopic=function(e){return js.Message.setProto3StringField(this,2,e)},proto.Thread.prototype.getType=function(){return js.Message.getFieldWithDefault(this,3,"")},proto.Thread.prototype.setType=function(e){return js.Message.setProto3StringField(this,3,e)},proto.Thread.prototype.getState=function(){return js.Message.getFieldWithDefault(this,4,"")},proto.Thread.prototype.setState=function(e){return js.Message.setProto3StringField(this,4,e)},proto.Thread.prototype.getUser=function(){return js.Message.getWrapperField(this,proto.User,5)},proto.Thread.prototype.setUser=function(e){return js.Message.setWrapperField(this,5,e)},proto.Thread.prototype.clearUser=function(){return this.setUser(void 0)},proto.Thread.prototype.hasUser=function(){return null!=js.Message.getField(this,5)},proto.Thread.prototype.getExtra=function(){return js.Message.getFieldWithDefault(this,6,"")},proto.Thread.prototype.setExtra=function(e){return js.Message.setProto3StringField(this,6,e)};var Bs=js,$s=function(){return this?this:"undefined"!=typeof window?window:void 0!==$s?$s:"undefined"!=typeof self?self:Function("return this")()}.call(null);Bs.exportSymbol("proto.Message",null,$s),proto.Message=function(e){js.Message.initialize(this,e,0,-1,null,null)},Bs.inherits(proto.Message,js.Message),Bs.DEBUG&&!COMPILED&&(proto.Message.displayName="proto.Message"),js.Message.GENERATE_TO_OBJECT&&(proto.Message.prototype.toObject=function(e){return proto.Message.toObject(e,this)},proto.Message.toObject=function(e,t){var n,r={uid:js.Message.getFieldWithDefault(t,1,""),type:js.Message.getFieldWithDefault(t,2,""),content:js.Message.getFieldWithDefault(t,3,""),status:js.Message.getFieldWithDefault(t,4,""),createdat:js.Message.getFieldWithDefault(t,5,""),client:js.Message.getFieldWithDefault(t,6,""),thread:(n=t.getThread())&&proto.Thread.toObject(e,n),user:(n=t.getUser())&&proto.User.toObject(e,n),extra:js.Message.getFieldWithDefault(t,9,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.Message.deserializeBinary=function(e){var t=new js.BinaryReader(e),n=new proto.Message;return proto.Message.deserializeBinaryFromReader(n,t)},proto.Message.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var n=t.readString();e.setUid(n);break;case 2:n=t.readString();e.setType(n);break;case 3:n=t.readString();e.setContent(n);break;case 4:n=t.readString();e.setStatus(n);break;case 5:n=t.readString();e.setCreatedat(n);break;case 6:n=t.readString();e.setClient(n);break;case 7:n=new proto.Thread;t.readMessage(n,proto.Thread.deserializeBinaryFromReader),e.setThread(n);break;case 8:n=new proto.User;t.readMessage(n,proto.User.deserializeBinaryFromReader),e.setUser(n);break;case 9:n=t.readString();e.setExtra(n);break;default:t.skipField()}}return e},proto.Message.prototype.serializeBinary=function(){var e=new js.BinaryWriter;return proto.Message.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.Message.serializeBinaryToWriter=function(e,t){var n=void 0;(n=e.getUid()).length>0&&t.writeString(1,n),(n=e.getType()).length>0&&t.writeString(2,n),(n=e.getContent()).length>0&&t.writeString(3,n),(n=e.getStatus()).length>0&&t.writeString(4,n),(n=e.getCreatedat()).length>0&&t.writeString(5,n),(n=e.getClient()).length>0&&t.writeString(6,n),null!=(n=e.getThread())&&t.writeMessage(7,n,proto.Thread.serializeBinaryToWriter),null!=(n=e.getUser())&&t.writeMessage(8,n,proto.User.serializeBinaryToWriter),(n=e.getExtra()).length>0&&t.writeString(9,n)},proto.Message.prototype.getUid=function(){return js.Message.getFieldWithDefault(this,1,"")},proto.Message.prototype.setUid=function(e){return js.Message.setProto3StringField(this,1,e)},proto.Message.prototype.getType=function(){return js.Message.getFieldWithDefault(this,2,"")},proto.Message.prototype.setType=function(e){return js.Message.setProto3StringField(this,2,e)},proto.Message.prototype.getContent=function(){return js.Message.getFieldWithDefault(this,3,"")},proto.Message.prototype.setContent=function(e){return js.Message.setProto3StringField(this,3,e)},proto.Message.prototype.getStatus=function(){return js.Message.getFieldWithDefault(this,4,"")},proto.Message.prototype.setStatus=function(e){return js.Message.setProto3StringField(this,4,e)},proto.Message.prototype.getCreatedat=function(){return js.Message.getFieldWithDefault(this,5,"")},proto.Message.prototype.setCreatedat=function(e){return js.Message.setProto3StringField(this,5,e)},proto.Message.prototype.getClient=function(){return js.Message.getFieldWithDefault(this,6,"")},proto.Message.prototype.setClient=function(e){return js.Message.setProto3StringField(this,6,e)},proto.Message.prototype.getThread=function(){return js.Message.getWrapperField(this,proto.Thread,7)},proto.Message.prototype.setThread=function(e){return js.Message.setWrapperField(this,7,e)},proto.Message.prototype.clearThread=function(){return this.setThread(void 0)},proto.Message.prototype.hasThread=function(){return null!=js.Message.getField(this,7)},proto.Message.prototype.getUser=function(){return js.Message.getWrapperField(this,proto.User,8)},proto.Message.prototype.setUser=function(e){return js.Message.setWrapperField(this,8,e)},proto.Message.prototype.clearUser=function(){return this.setUser(void 0)},proto.Message.prototype.hasUser=function(){return null!=js.Message.getField(this,8)},proto.Message.prototype.getExtra=function(){return js.Message.getFieldWithDefault(this,9,"")},proto.Message.prototype.setExtra=function(e){return js.Message.setProto3StringField(this,9,e)};var Zs,zs=proto,Us=!1,Hs=function(e){var t=e.uid,n=e.username,r=e.accessToken;if(K.L.getState().userInfo,Us)console.log("mqtt is connecting");else if(Zs&&Zs.connected)console.log("mqtt already connected");else if(Zs&&Zs.reconnecting)console.log("mqtt already reconnecting");else{Us=!0;var o=K.L.getState().deviceUid,i={keepalive:30,clientId:t+"/"+C.bVn+"/"+o,username:n,password:r,clean:!1,path:"/websocket",reconnectPeriod:5e3,connectTimeout:3e4,reschedulePings:!0,rejectUnauthorized:!1,log:function(){}};console.log("mqtt start connect:",i),(Zs=Ms.connect((0,T.Hg)(),i)).on("connect",(function(){console.log("mqtt event connected"),Us=!1})),Zs.on("message",(function(e,n,r){var o=zs.Message.deserializeBinary(n);console.log("mqtt event message",e,o);var i=o.getType();if(i===C.n$Z){var a=o.getContent();a&&(console.log("mqtt receive notice",a),A.Z.emit(C.YwV,a))}else if(i===C.PYi){if(o.getUser().getUid()===t)return void console.log("mqtt receive self message");console.log("mqtt receive other message");var s=o.getContent();A.Z.emit(C.VZf,s)}})),Zs.on("packetsend",(function(e){console.log("mqtt event packetsend",e)})),Zs.on("packetreceive",(function(e){console.log("mqtt event packetreceive",e),"publish"===e.cmd||"pingresp"===e.cmd&&console.log("mqtt event packetreceive pingresp")})),Zs.on("reconnect",(function(){console.log("mqtt event reconnect")})),Zs.on("close",(function(){console.log("mqtt event close"),Us=!1})),Zs.on("disconnect",(function(){console.error("mqtt event disconnected"),Us=!1})),Zs.on("offline",(function(){console.log("mqtt event offline"),Us=!1})),Zs.on("error",(function(){console.log("mqtt event error")})),Zs.on("end",(function(){console.log("mqtt event end")}))}};var Ws=function(){var e=(0,j.useState)(!1),t=g()(e,2),n=t[0],r=t[1],o=(0,j.useState)(!1),i=g()(o,2),a=i[0],s=i[1],l=function(){var e=v()(p()().mark((function e(t,n){return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a?(console.log("handleNewMessage isBrowserTabHidden"),c(t,n)):console.log("handleNewMessage not isBrowserTabHidden");case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),c=function(e,t){console.log("showWebNotification");var n=new Notification(e,{body:t,icon:"./logo.png"});n.onshow=function(){console.log("Notification shown")},n.onclick=function(){console.log("notification click")},n.onclose=function(){console.log("notification close")},n.onerror=function(){console.log("notification error")}};return(0,j.useEffect)((function(){return window.Notification&&"granted"!==Notification.permission?Notification.requestPermission((function(e){"granted"===e?(console.log("Notification permission granted."),r(!0)):(console.log("notification denied"),r(!1))})):(console.log("已经授权或浏览器不支持通知"),r(!0)),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState?s(!0):"visible"===document.visibilityState&&s(!1)}),!1),function(){document.removeEventListener("visibilitychange",(function(){}))}}),[]),{isNotificationGranted:n,showWebNotification:c,showNotification:l}},Vs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"},qs=function(e,t){return j.createElement(N.Z,(0,M.Z)((0,M.Z)({},e),{},{ref:t,icon:Vs}))};var Gs=j.forwardRef(qs),Ks=function(){return(0,U.jsx)(E.ZP,{type:"text",icon:(0,U.jsx)(Gs,{}),onClick:function(){window.open("https://github.com/Bytedesk/bytedesk")}})},Ys="/auth/login";function Xs(){return Qs.apply(this,arguments)}function Qs(){return Qs=v()(p()().mark((function e(){var t,n;return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("getInitialState"),t=function(){var e=v()(p()().mark((function e(){var t,n;return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==(t=localStorage.getItem(C.LA8))&&0!==t.trim().length){e.next=3;break}return e.abrupt("return",void 0);case 3:return e.prev=3,e.next=6,(0,_.Ai)();case 6:return n=e.sent,console.log("user profile",n),e.abrupt("return",n.data);case 11:e.prev=11,e.t0=e.catch(3),x.history.push(Ys);case 14:return e.abrupt("return",void 0);case 15:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(){return e.apply(this,arguments)}}(),x.history.location.pathname.startsWith("/auth/")){e.next=8;break}return e.next=6,t();case 6:return n=e.sent,e.abrupt("return",{fetchUserInfo:t,userInfo:n,settings:k.Z});case 8:return e.abrupt("return",{fetchUserInfo:t,settings:k.Z});case 9:case"end":return e.stop()}}),e)}))),Qs.apply(this,arguments)}var Js=function(e){var t,n,r=e.initialState;e.setInitialState;Ws();var o=(null!=r?r:{}).userInfo,i=b.ZP.useNotification(),a=g()(i,2),s=a[0],l=a[1],c=(0,K.L)((function(e){return{deviceUid:e.deviceUid,setDeviceUid:e.setDeviceUid}})),u=c.deviceUid,d=c.setDeviceUid,h=(0,K.L)((function(e){return e.setUserInfo})),m=(0,I.Z)().isDarkMode;r.settings.navTheme=m?"realDark":"light";var _=(0,x.useIntl)(),k=function(){window.open((0,T.IA)())};(0,j.useEffect)((function(){!function(){if(null!=o){void 0!==u&&""!==u||d((0,R.Zx)());var e=localStorage.getItem(C.LA8);Hs({uid:null==o?void 0:o.uid,username:null==o?void 0:o.username,accessToken:e})}}(),h(o)}),[o]);var P,M=function(){var e=v()(p()().mark((function e(){var t;return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.ME)();case 2:t=(0,T.kG)(),console.log("Base URL:",t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,j.useEffect)((function(){return A.Z.on(C.fN$,(function(){console.log("EVENT_BUS_TOKEN_INVALID"),(0,R.NZ)()})),A.Z.on(C.YwV,(function(e){console.log("EVENT_BUS_MQTT_NOTICE",e)})),A.Z.on(C.VZf,(function(e){var t,n,r,o;console.log("EVENT_BUS_MQTT_MESSAGE",e),t="新消息",n=e+" 请在客服端打开查看",r="open".concat(Date.now()),o=(0,U.jsxs)(w.Z,{children:[(0,U.jsx)(E.ZP,{type:"link",size:"small",onClick:function(){return s.destroy()},children:"关闭所有"}),(0,U.jsx)(E.ZP,{type:"primary",size:"small",onClick:function(){return s.destroy(r)},children:"确定"})]}),s.open({message:t,description:n,duration:0,btn:o,key:r,onClose:k})})),(0,R.pr)(),M(),function(){A.Z.off(C.fN$),A.Z.off(C.YwV)}}),[]),f()({actionsRender:function(){return[(0,U.jsx)(H,{},"fullScreen"),(0,U.jsx)(Ks,{},"GotoGithub"),(0,U.jsx)(W,{},"GotoAgent"),(0,U.jsx)(G,{},"ContactUs")]},title:(P=(0,R.lk)(),_.formatMessage({id:P})),logo:(0,R.hX)(),avatarProps:{src:null==r||null===(t=r.userInfo)||void 0===t?void 0:t.avatar,title:(0,U.jsx)(y.gj,{}),render:function(e,t){return(0,U.jsx)(y.Kd,{menu:!0,children:t})}},waterMarkProps:{content:null==r||null===(n=r.userInfo)||void 0===n?void 0:n.nickname},footerRender:function(){return(0,U.jsx)(y.$_,{})},onPageChange:function(){var e=x.history.location;null!=r&&r.userInfo||e.pathname===Ys||x.history.push(Ys)},menuHeaderRender:void 0,menu:{type:"group",collapsedShowTitle:!0,hideChildrenInMenu:!0},collapsedButtonRender:function(){return(0,U.jsx)(U.Fragment,{})},childrenRender:function(e){return(0,U.jsxs)(U.Fragment,{children:[l,(0,U.jsx)(V.w,{children:(0,U.jsxs)(S.Z,{children:[(0,U.jsx)(O.ZP,{}),e]})})]})}},null==r?void 0:r.settings)},el=f()(f()({},P),{},{requestInterceptors:[function(e,t){var n=localStorage.getItem(C.LA8);if(n&&n.length>10&&e.startsWith("/api")){var r={Authorization:"Bearer ".concat(n)};return{url:"".concat((0,T.kG)()).concat(e),options:f()(f()({},t),{},{interceptors:!0,headers:r})}}return e.startsWith("http")?{url:"".concat(e),options:f()(f()({},t),{},{interceptors:!0})}:{url:"".concat((0,T.kG)()).concat(e),options:f()(f()({},t),{},{interceptors:!0})}}]}),tl=n(7862),nl=n.n(tl),rl=n(81690),ol=n.n(rl),il=n(21700),al=n.n(il),sl=n(31236),ll=n.n(sl);function cl(){return cl=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var pl={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},hl={rel:["amphtml","canonical","alternate"]},gl={type:["application/ld+json"]},ml={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},vl=Object.keys(pl).map((function(e){return pl[e]})),yl={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},bl=Object.keys(yl).reduce((function(e,t){return e[yl[t]]=t,e}),{}),wl=function(e,t){for(var n=e.length-1;n>=0;n-=1){var r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},El=function(e){var t=wl(e,pl.TITLE),n=wl(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(function(){return t}));var r=wl(e,"defaultTitle");return t||r||void 0},Sl=function(e){return wl(e,"onChangeClientState")||function(){}},_l=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return cl({},e,t)}),{})},xl=function(e,t){return t.filter((function(e){return void 0!==e[pl.BASE]})).map((function(e){return e[pl.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o/g,">").replace(/"/g,""").replace(/'/g,"'")},Rl=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},Ml=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,n){return t[yl[n]||n]=e[n],t}),t)},jl=function(e,t){return t.map((function(t,n){var r,o=((r={key:n})["data-rh"]=!0,r);return Object.keys(t).forEach((function(e){var n=yl[e]||e;"innerHTML"===n||"cssText"===n?o.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:o[n]=t[e]})),j.createElement(e,o)}))},Ll=function(e,t,n){switch(e){case pl.TITLE:return{toComponent:function(){return n=t.titleAttributes,(r={key:e=t.title})["data-rh"]=!0,o=Ml(n,r),[j.createElement(pl.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=Rl(n),i=Tl(t);return o?"<"+e+' data-rh="true" '+o+">"+Il(i,r)+"":"<"+e+' data-rh="true">'+Il(i,r)+""}(e,t.title,t.titleAttributes,n)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return Ml(t)},toString:function(){return Rl(t)}};default:return{toComponent:function(){return jl(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+Il(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===Pl.indexOf(e);return t+"<"+e+' data-rh="true" '+o+(a?"/>":">"+i+"")}),"")}(e,t,n)}}}},Nl=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.noscriptTags,a=e.styleTags,s=e.title,l=void 0===s?"":s,c=e.titleAttributes,u=e.linkTags,f=e.metaTags,d=e.scriptTags,p={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var h=function(e){var t=e.linkTags,n=e.scriptTags,r=e.encode,o=Ol(e.metaTags,ml),i=Ol(t,hl),a=Ol(n,gl);return{priorityMethods:{toComponent:function(){return[].concat(jl(pl.META,o.priority),jl(pl.LINK,i.priority),jl(pl.SCRIPT,a.priority))},toString:function(){return Ll(pl.META,o.priority,r)+" "+Ll(pl.LINK,i.priority,r)+" "+Ll(pl.SCRIPT,a.priority,r)}},metaTags:o.default,linkTags:i.default,scriptTags:a.default}}(e);p=h.priorityMethods,u=h.linkTags,f=h.metaTags,d=h.scriptTags}return{priority:p,base:Ll(pl.BASE,t,r),bodyAttributes:Ll("bodyAttributes",n,r),htmlAttributes:Ll("htmlAttributes",o,r),link:Ll(pl.LINK,u,r),meta:Ll(pl.META,f,r),noscript:Ll(pl.NOSCRIPT,i,r),script:Ll(pl.SCRIPT,d,r),style:Ll(pl.STYLE,a,r),title:Ll(pl.TITLE,{title:l,titleAttributes:c},r)}},Dl=[],Fl=function(e,t){var n=this;void 0===t&&(t="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(e){n.context.helmet=e},helmetInstances:{get:function(){return n.canUseDOM?Dl:n.instances},add:function(e){(n.canUseDOM?Dl:n.instances).push(e)},remove:function(e){var t=(n.canUseDOM?Dl:n.instances).indexOf(e);(n.canUseDOM?Dl:n.instances).splice(t,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=Nl({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},Bl=j.createContext({}),$l=nl().shape({setHelmet:nl().func,helmetInstances:nl().shape({get:nl().func,add:nl().func,remove:nl().func})}),Zl="undefined"!=typeof document,zl=function(e){function t(n){var r;return(r=e.call(this,n)||this).helmetData=new Fl(r.props.context,t.canUseDOM),r}return ul(t,e),t.prototype.render=function(){return j.createElement(Bl.Provider,{value:this.helmetData.value},this.props.children)},t}(j.Component);zl.canUseDOM=Zl,zl.propTypes={context:nl().shape({helmet:nl().shape()}),children:nl().node.isRequired},zl.defaultProps={context:{}},zl.displayName="HelmetProvider";var Ul=function(e,t){var n,r=document.head||document.querySelector(pl.HEAD),o=r.querySelectorAll(e+"[data-rh]"),i=[].slice.call(o),a=[];return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&("innerHTML"===o?r.innerHTML=t.innerHTML:"cssText"===o?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(o,void 0===t[o]?"":t[o]));r.setAttribute("data-rh","true"),i.some((function(e,t){return n=t,r.isEqualNode(e)}))?i.splice(n,1):a.push(r)})),i.forEach((function(e){return e.parentNode.removeChild(e)})),a.forEach((function(e){return r.appendChild(e)})),{oldTags:i,newTags:a}},Hl=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute("data-rh"),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),s=0;s=0;f-=1)n.removeAttribute(i[f]);o.length===i.length?n.removeAttribute("data-rh"):n.getAttribute("data-rh")!==a.join(",")&&n.setAttribute("data-rh",a.join(","))}},Wl=function(e,t){var n=e.baseTag,r=e.htmlAttributes,o=e.linkTags,i=e.metaTags,a=e.noscriptTags,s=e.onChangeClientState,l=e.scriptTags,c=e.styleTags,u=e.title,f=e.titleAttributes;Hl(pl.BODY,e.bodyAttributes),Hl(pl.HTML,r),function(e,t){void 0!==e&&document.title!==e&&(document.title=Tl(e)),Hl(pl.TITLE,t)}(u,f);var d={baseTag:Ul(pl.BASE,n),linkTags:Ul(pl.LINK,o),metaTags:Ul(pl.META,i),noscriptTags:Ul(pl.NOSCRIPT,a),scriptTags:Ul(pl.SCRIPT,l),styleTags:Ul(pl.STYLE,c)},p={},h={};Object.keys(d).forEach((function(e){var t=d[e],n=t.newTags,r=t.oldTags;n.length&&(p[e]=n),r.length&&(h[e]=d[e].oldTags)})),t&&t(),s(e,p,h)},Vl=null,ql=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o elements are self-closing and can not contain children. Refer to our API for more information.")}},n.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return cl({},r,((t={})[n.type]=[].concat(r[n.type]||[],[cl({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},n.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case pl.TITLE:return cl({},o,((t={})[r.type]=a,t.titleAttributes=cl({},i),t));case pl.BODY:return cl({},o,{bodyAttributes:cl({},i)});case pl.HTML:return cl({},o,{htmlAttributes:cl({},i)});default:return cl({},o,((n={})[r.type]=cl({},i),n))}},n.mapArrayTypeChildrenToProps=function(e,t){var n=cl({},t);return Object.keys(e).forEach((function(t){var r;n=cl({},n,((r={})[t]=e[t],r))})),n},n.warnOnInvalidChildren=function(e,t){return al()(vl.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+vl.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),al()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``} ) Refer to our API for more information."),!0},n.mapChildrenToProps=function(e,t){var n=this,r={};return j.Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=dl(o,Gl),s=Object.keys(a).reduce((function(e,t){return e[bl[t]||t]=a[t],e}),{}),l=e.type;switch("symbol"==typeof l?l=l.toString():n.warnOnInvalidChildren(e,i),l){case pl.FRAGMENT:t=n.mapChildrenToProps(i,t);break;case pl.LINK:case pl.META:case pl.NOSCRIPT:case pl.SCRIPT:case pl.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:s,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:i})}}})),this.mapArrayTypeChildrenToProps(r,t)},n.render=function(){var e=this.props,t=e.children,n=dl(e,Kl),r=cl({},n),o=n.helmetData;return t&&(r=this.mapChildrenToProps(t,r)),!o||o instanceof Fl||(o=new Fl(o.context,o.instances)),o?j.createElement(ql,cl({},r,{context:o.value,helmetData:void 0})):j.createElement(Bl.Consumer,null,(function(e){return j.createElement(ql,cl({},r,{context:e}))}))},t}(j.Component);Yl.propTypes={base:nl().object,bodyAttributes:nl().object,children:nl().oneOfType([nl().arrayOf(nl().node),nl().node]),defaultTitle:nl().string,defer:nl().bool,encodeSpecialCharacters:nl().bool,htmlAttributes:nl().object,link:nl().arrayOf(nl().object),meta:nl().arrayOf(nl().object),noscript:nl().arrayOf(nl().object),onChangeClientState:nl().func,script:nl().arrayOf(nl().object),style:nl().arrayOf(nl().object),title:nl().string,titleAttributes:nl().object,titleTemplate:nl().string,prioritizeSeoTags:nl().bool,helmetData:nl().object},Yl.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},Yl.displayName="Helmet";var Xl={},Ql=function(e){return j.createElement(zl,{context:Xl},e)};var Jl=n(58047),ec=n(39947);function tc(e){var t=(0,Jl.t)("@@initialState").initialState,n=j.useMemo((function(){return function(e){var t=(null!=e?e:{}).userInfo;return{canAdmin:function(){for(var e=!1,n=0;n<(null==t?void 0:t.userOrganizationRoles.length);n++){var r,o,i=null==t?void 0:t.userOrganizationRoles[n];if((null==i||null===(r=i.organization)||void 0===r?void 0:r.uid)===(null==t||null===(o=t.currentOrganization)||void 0===o?void 0:o.uid))for(var a=0;a<(null==i||null===(s=i.roles)||void 0===s?void 0:s.length);a++){var s;"ROLE_ADMIN"===(null==i?void 0:i.roles[a]).name&&(e=!0)}}return(null==t?void 0:t.superUser)||e},canSuper:function(){return null==t?void 0:t.superUser},canDebug:function(){return!1},canBytedesk:function(){return(null==t?void 0:t.platform)===C.Ogg},canLiangshibao:function(){return(null==t?void 0:t.platform)===C.EL2},canTiku:function(){return(null==t?void 0:t.platform)===C.SwN},canMeiyu:function(){return(null==t?void 0:t.platform)===C.gGr},canZhaobiao:function(){return(null==t?void 0:t.platform)===C.ue3},canReadFoo:!0,canUpdateFoo:function(){return!0}}}(t)}),[t]);return(0,U.jsx)(ec.J.Provider,{value:n,children:e.children})}function nc(e){return(0,U.jsx)(tc,{children:e})}function rc(){return(0,U.jsx)("div",{})}function oc(e){var t=j.useRef(!1),n=((0,Jl.t)("@@initialState")||{}).loading,r=void 0!==n&&n;return j.useEffect((function(){r||(t.current=!0)}),[r]),r&&!t.current&&"undefined"!=typeof window?(0,U.jsx)(rc,{}):e.children}function ic(e){return(0,U.jsx)(oc,{children:e})}var ac={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 01140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 00-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 000 79.2 55.95 55.95 0 0079.2 0 55.87 55.87 0 0014.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 00-11.3 0l-56.6 56.6a8.03 8.03 0 000 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 00-11.3 0l-31.1 31.1a8.03 8.03 0 000 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z"}}]},name:"dashboard",theme:"outlined"},sc=function(e,t){return j.createElement(N.Z,(0,M.Z)((0,M.Z)({},e),{},{ref:t,icon:ac}))};var lc=j.forwardRef(sc),cc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M824.2 699.9a301.55 301.55 0 00-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C345 754.6 314 826.8 312 903.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5A226.62 226.62 0 01612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c.1 4.3 3.7 7.7 8 7.7h56a8 8 0 008-8.2c-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5a126.86 126.86 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5A127.3 127.3 0 01612 612zM361.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z"}}]},name:"team",theme:"outlined"},uc=function(e,t){return j.createElement(N.Z,(0,M.Z)((0,M.Z)({},e),{},{ref:t,icon:cc}))};var fc=j.forwardRef(uc),dc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 128c-212.1 0-384 171.9-384 384v360c0 13.3 10.7 24 24 24h184c35.3 0 64-28.7 64-64V624c0-35.3-28.7-64-64-64H200v-48c0-172.3 139.7-312 312-312s312 139.7 312 312v48H688c-35.3 0-64 28.7-64 64v208c0 35.3 28.7 64 64 64h184c13.3 0 24-10.7 24-24V512c0-212.1-171.9-384-384-384zM328 632v192H200V632h128zm496 192H696V632h128v192z"}}]},name:"customer-service",theme:"outlined"},pc=function(e,t){return j.createElement(N.Z,(0,M.Z)((0,M.Z)({},e),{},{ref:t,icon:dc}))};var hc=j.forwardRef(pc),gc=n(69560),mc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"},vc=function(e,t){return j.createElement(N.Z,(0,M.Z)((0,M.Z)({},e),{},{ref:t,icon:mc}))};var yc=j.forwardRef(vc),bc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M304 280h56c4.4 0 8-3.6 8-8 0-28.3 5.9-53.2 17.1-73.5 10.6-19.4 26-34.8 45.4-45.4C450.9 142 475.7 136 504 136h16c28.3 0 53.2 5.9 73.5 17.1 19.4 10.6 34.8 26 45.4 45.4C650 218.9 656 243.7 656 272c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-40-8.8-76.7-25.9-108.1a184.31 184.31 0 00-74-74C596.7 72.8 560 64 520 64h-16c-40 0-76.7 8.8-108.1 25.9a184.31 184.31 0 00-74 74C304.8 195.3 296 232 296 272c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M940 512H792V412c76.8 0 139-62.2 139-139 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8a63 63 0 01-63 63H232a63 63 0 01-63-63c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 76.8 62.2 139 139 139v100H84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h148v96c0 6.5.2 13 .7 19.3C164.1 728.6 116 796.7 116 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-44.2 23.9-82.9 59.6-103.7a273 273 0 0022.7 49c24.3 41.5 59 76.2 100.5 100.5S460.5 960 512 960s99.8-13.9 141.3-38.2a281.38 281.38 0 00123.2-149.5A120 120 0 01836 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-79.3-48.1-147.4-116.7-176.7.4-6.4.7-12.8.7-19.3v-96h148c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM716 680c0 36.8-9.7 72-27.8 102.9-17.7 30.3-43 55.6-73.3 73.3C584 874.3 548.8 884 512 884s-72-9.7-102.9-27.8c-30.3-17.7-55.6-43-73.3-73.3A202.75 202.75 0 01308 680V412h408v268z"}}]},name:"bug",theme:"outlined"},wc=function(e,t){return j.createElement(N.Z,(0,M.Z)((0,M.Z)({},e),{},{ref:t,icon:bc}))};var Ec=j.forwardRef(wc),Sc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"},_c=function(e,t){return j.createElement(N.Z,(0,M.Z)((0,M.Z)({},e),{},{ref:t,icon:Sc}))};var xc=j.forwardRef(_c),kc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},Cc=function(e,t){return j.createElement(N.Z,(0,M.Z)((0,M.Z)({},e),{},{ref:t,icon:kc}))};var Tc=j.forwardRef(Cc),Oc=n(31816),Ac={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"},Pc=function(e,t){return j.createElement(N.Z,(0,M.Z)((0,M.Z)({},e),{},{ref:t,icon:Ac}))};var Ic=j.forwardRef(Pc),Rc=n(97460),Mc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M899.6 276.5L705 396.4 518.4 147.5a8.06 8.06 0 00-12.9 0L319 396.4 124.3 276.5c-5.7-3.5-13.1 1.2-12.2 7.9L188.5 865c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6c.8-6.7-6.5-11.4-12.3-7.9zm-126 534.1H250.3l-53.8-409.4 139.8 86.1L512 252.9l175.7 234.4 139.8-86.1-53.9 409.4zM512 509c-62.1 0-112.6 50.5-112.6 112.6S449.9 734.2 512 734.2s112.6-50.5 112.6-112.6S574.1 509 512 509zm0 160.9c-26.6 0-48.2-21.6-48.2-48.3 0-26.6 21.6-48.3 48.2-48.3s48.2 21.6 48.2 48.3c0 26.6-21.6 48.3-48.2 48.3z"}}]},name:"crown",theme:"outlined"},jc=function(e,t){return j.createElement(N.Z,(0,M.Z)((0,M.Z)({},e),{},{ref:t,icon:Mc}))};var Lc=j.forwardRef(jc),Nc=n(16655),Dc={DashboardOutlined:lc,TeamOutlined:fc,CustomerServiceOutlined:hc,RobotOutlined:gc.Z,BookOutlined:yc,BugOutlined:Ec,MessageOutlined:xc,FormOutlined:Tc,PlusOutlined:Oc.Z,HistoryOutlined:Ic,SettingOutlined:Rc.Z,CrownOutlined:Lc,QuestionOutlined:Nc.Z};function Fc(e){var t=e.routes;Object.keys(t).forEach((function(e){var n=t[e].icon;if(n&&"string"==typeof n){var r=function(e){return e.replace(e[0],e[0].toUpperCase()).replace(/-(w)/g,(function(e,t){return t.toUpperCase()}))}(n);(Dc[r]||Dc[r+"Outlined"])&&(t[e].icon=j.createElement(Dc[r]||Dc[r+"Outlined"]))}}))}var Bc=n(40881),$c=n(28977),Zc=n.n($c),zc=(n(9733),n(58070),n(6303),n(31897));var Uc="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?j.useLayoutEffect:j.useEffect,Hc=function(e){var t,n=(0,zc.Kd)(),r=j.useState(n),o=g()(r,2),i=o[0],a=o[1],s=j.useState((function(){return(0,zc.lw)(i,!0)})),l=g()(s,2),c=l[0],u=l[1],f=function(e){var t;null!==Zc()&&void 0!==Zc()&&Zc().locale&&Zc().locale((null===(t=zc.H8[e])||void 0===t?void 0:t.momentLocale)||"en");a(e),u((0,zc.lw)(e))};Uc((function(){return zc.B.on(zc.PZ,f),function(){zc.B.off(zc.PZ,f)}}),[]);var d=(0,zc.Mg)();return(0,U.jsx)(Bc.ZP,{direction:d,locale:(null===(t=zc.H8[i])||void 0===t?void 0:t.antd)||{},children:(0,U.jsx)(zc.eU,{value:c,children:e.children})})};function Wc(e){return j.createElement(Hc,null,e)}var Vc={initialState:void 0,loading:!0,error:void 0},qc={model_1:{namespace:"@@initialState",model:function(){var e=(0,j.useState)(Vc),t=g()(e,2),n=t[0],r=t[1],o=(0,j.useCallback)(v()(p()().mark((function e(){var t;return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r((function(e){return f()(f()({},e),{},{loading:!0,error:void 0})})),e.prev=1,e.next=4,Xs();case 4:t=e.sent,r((function(e){return f()(f()({},e),{},{initialState:t,loading:!1})})),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),r((function(t){return f()(f()({},t),{},{error:e.t0,loading:!1})}));case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))),[]),i=(0,j.useCallback)(function(){var e=v()(p()().mark((function e(t){return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r((function(e){return"function"==typeof t?f()(f()({},e),{},{initialState:t(e.initialState),loading:!1}):f()(f()({},e),{},{initialState:t,loading:!1})}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[]);return(0,j.useEffect)((function(){o()}),[]),f()(f()({},n),{},{refresh:o,setInitialState:i})}}};function Gc(e){var t=j.useMemo((function(){return Object.keys(qc).reduce((function(e,t){return e[qc[t].namespace]=qc[t].model,e}),{})}),[]);return(0,U.jsx)(Jl.z,f()(f()({models:t},e),{},{children:e.children}))}function Kc(e,t){return(0,U.jsx)(Gc,f()(f()({},t),{},{children:e}))}var Yc=null;function Xc(){var e;return Yc=x.PluginManager.create({plugins:[{apply:(e=r,e.default?"function"==typeof e.default?e.default():e.default:e),path:void 0},{apply:o,path:void 0},{apply:i,path:void 0},{apply:a,path:void 0},{apply:s,path:void 0},{apply:l,path:void 0},{apply:c,path:void 0}],validKeys:["patchRoutes","patchClientRoutes","modifyContextOpts","modifyClientRenderOpts","rootContainer","innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","render","onRouteChange","antd","getInitialState","layout","locale","qiankun","request"]})}function Qc(){return Yc}},7206:function(e,t,n){"use strict";n.d(t,{Access:function(){return r.Nv},ApplyPluginsType:function(){return fe},FormattedMessage:function(){return o._H},Link:function(){return K},Outlet:function(){return Z.j3},PluginManager:function(){return de},SelectLang:function(){return o.pD},getLocale:function(){return o.Kd},history:function(){return pe.m8},matchRoutes:function(){return Z.fp},request:function(){return F},setLocale:function(){return o.i_},useAccess:function(){return r.md},useAppData:function(){return q.Ov},useIntl:function(){return o.YB},useLocation:function(){return Z.TH},useModel:function(){return i.t},useNavigate:function(){return Z.s0},useOutletContext:function(){return Z.bx}});var r=n(90223),o=n(68094),i=n(58047),a=n(90819),s=n.n(a),l=n(89933),c=n.n(l),u=(n(84176),n(89957),n(73193)),f=n.n(u),d=n(24718),p=n.n(d),h=n(44194),g=n(51899),m=n.n(g),v=n(14978),y=n.n(v);function b(){return"undefined"==typeof document||void 0===document.visibilityState||"hidden"!==document.visibilityState}new Map;var w=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},E=function(){for(var e=[],t=0;t0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},I=function(){for(var e=[],t=0;t1&&void 0!==arguments[1]?arguments[1]:{method:"GET"},n=D(),r=N(),o=t.getResponse,i=void 0!==o&&o,a=t.requestInterceptors,l=t.responseInterceptors,u=null==a?void 0:a.map((function(e){return e instanceof Array?n.interceptors.request.use(function(){var t=c()(s()().mark((function t(n){var r,o,i,a;return s()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=n.url,2!==e[0].length){t.next=8;break}return t.next=4,e[0](r,n);case 4:return o=t.sent,i=o.url,a=o.options,t.abrupt("return",f()(f()({},a),{},{url:i}));case 8:return t.abrupt("return",e[0](n));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e[1]):n.interceptors.request.use(function(){var t=c()(s()().mark((function t(n){var r,o,i,a;return s()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=n.url,2!==e.length){t.next=8;break}return t.next=4,e(r,n);case 4:return o=t.sent,i=o.url,a=o.options,t.abrupt("return",f()(f()({},a),{},{url:i}));case 8:return t.abrupt("return",e(n));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())})),d=null==l?void 0:l.map((function(e){return e instanceof Array?n.interceptors.response.use(e[0],e[1]):n.interceptors.response.use(e)}));return new Promise((function(o,a){n.request(f()(f()({},t),{},{url:e})).then((function(e){null==u||u.forEach((function(e){n.interceptors.request.eject(e)})),null==d||d.forEach((function(e){n.interceptors.response.eject(e)})),o(i?e:e.data)})).catch((function(e){null==u||u.forEach((function(e){n.interceptors.request.eject(e)})),null==d||d.forEach((function(e){n.interceptors.response.eject(e)}));try{var o,i=null==r||null===(o=r.errorConfig)||void 0===o?void 0:o.errorHandler;i&&i(e,t,r)}catch(e){a(e)}a(e)}))}))},B=n(16076),$=n(18261),Z=n(45516),z=n(86380);function U(){return U=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}const W=["onClick","reloadDocument","replace","state","target","to"];const V=(0,h.forwardRef)((function(e,t){let{onClick:n,reloadDocument:r,replace:o=!1,state:i,target:a,to:s}=e,l=H(e,W),c=(0,Z.oQ)(s),u=function(e,t){let{target:n,replace:r,state:o}=void 0===t?{}:t,i=(0,Z.s0)(),a=(0,Z.TH)(),s=(0,Z.WU)(e);return(0,h.useCallback)((t=>{if(!(0!==t.button||n&&"_self"!==n||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(t))){t.preventDefault();let n=!!r||(0,z.Ep)(a)===(0,z.Ep)(s);i(e,{replace:n,state:o})}}),[a,i,s,r,o,n,e])}(s,{replace:o,state:i,target:a});return(0,h.createElement)("a",U({},l,{href:c,onClick:function(e){n&&n(e),e.defaultPrevented||r||u(e)},ref:t,target:a}))}));var q=n(38517),G=["prefetch"];function K(e){var t,n=e.prefetch,r=(0,$.Z)(e,G),o=(0,q.Ov)(),i="string"==typeof e.to?e.to:null===(t=e.to)||void 0===t?void 0:t.pathname;return i?h.createElement(V,(0,B.Z)({onMouseEnter:function(){var e;return n&&i&&(null===(e=o.preloadRoute)||void 0===e?void 0:e.call(o,i))}},r),e.children):null}var Y=n(49338);function X(){X=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),s=new A(r||[]);return o(a,"_invoke",{value:k(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",p="executing",h="completed",g={};function m(){}function v(){}function y(){}var b={};c(b,a,(function(){return this}));var w=Object.getPrototypeOf,E=w&&w(w(P([])));E&&E!==n&&r.call(E,a)&&(b=E);var S=y.prototype=m.prototype=Object.create(b);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(o,i,a,s){var l=f(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==(0,Y.Z)(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function k(t,n,r){var o=d;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=C(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var c=f(t,n,r);if("normal"===c.type){if(o=r.done?h:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=h,r.method="throw",r.arg=c.arg)}}}function C(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}var Q=n(42549);function J(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function ee(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){J(i,r,o,a,s,"next",e)}function s(e){J(i,r,o,a,s,"throw",e)}a(void 0)}))}}var te=n(2147);function ne(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,te.Z)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}var re=n(37115);var oe=n(58157);function ie(e){return(0,re.Z)(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,te.Z)(e)||(0,oe.Z)()}var ae=n(85649);function se(e,t){for(var n=0;n-1,"register failed, invalid key ".concat(n," ").concat(e.path?"from plugin ".concat(e.path):"",".")),t.hooks[n]=(t.hooks[n]||[]).concat(e.apply[n])}))}},{key:"getHooks",value:function(e){var t=ie(e.split(".")),n=t[0],r=t.slice(1),o=this.hooks[n]||[];return r.length&&(o=o.map((function(e){try{var t,n=e,o=ne(r);try{for(o.s();!(t=o.n()).done;)n=n[t.value]}catch(e){o.e(e)}finally{o.f()}return n}catch(e){return null}})).filter(Boolean)),o}},{key:"applyPlugins",value:function(e){var t=e.key,n=e.type,r=e.initialValue,o=e.args,i=e.async,a=this.getHooks(t)||[];switch(o&&ce("object"===(0,Y.Z)(o),"applyPlugins failed, args must be plain object."),i&&ce(n===fe.modify||n===fe.event,"async only works with modify and event type."),n){case fe.modify:return i?a.reduce(function(){var e=ee(X().mark((function e(n,r){var i;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(ce("function"==typeof r||"object"===(0,Y.Z)(r)||ue(r),"applyPlugins failed, all hooks for key ".concat(t," must be function, plain object or Promise.")),!ue(n)){e.next=5;break}return e.next=4,n;case 4:n=e.sent;case 5:if("function"!=typeof r){e.next=16;break}if(!ue(i=r(n,o))){e.next=13;break}return e.next=10,i;case 10:return e.abrupt("return",e.sent);case 13:return e.abrupt("return",i);case 14:e.next=21;break;case 16:if(!ue(r)){e.next=20;break}return e.next=19,r;case 19:r=e.sent;case 20:return e.abrupt("return",(0,Q.Z)((0,Q.Z)({},n),r));case 21:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),ue(r)?r:Promise.resolve(r)):a.reduce((function(e,n){return ce("function"==typeof n||"object"===(0,Y.Z)(n),"applyPlugins failed, all hooks for key ".concat(t," must be function or plain object.")),"function"==typeof n?n(e,o):(0,Q.Z)((0,Q.Z)({},e),n)}),r);case fe.event:return ee(X().mark((function e(){var n,r,s,l;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=ne(a),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=12;break}if(ce("function"==typeof(s=r.value),"applyPlugins failed, all hooks for key ".concat(t," must be function.")),l=s(o),!i||!ue(l)){e.next=10;break}return e.next=10,l;case 10:e.next=3;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(1),n.e(e.t0);case 17:return e.prev=17,n.f(),e.finish(17);case 20:case"end":return e.stop()}}),e,null,[[1,14,17,20]])})))();case fe.compose:return function(){return function(e){var t=e.fns,n=e.args;if(1===t.length)return t[0];var r=t.pop();return t.reduce((function(e,t){return function(){return t(e,n)}}),r)}({fns:a.concat(r),args:o})()}}}}],r=[{key:"create",value:function(t){var n=new e({validKeys:t.validKeys});return t.plugins.forEach((function(e){n.register(e)})),n}}],n&&se(t.prototype,n),r&&se(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),pe=n(46729)},39947:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});var r=n(44194).createContext(null)},90223:function(e,t,n){"use strict";n.d(t,{Mf:function(){return l},Nv:function(){return s},md:function(){return a}});var r=n(44194),o=n(39947),i=n(31549),a=function(){return r.useContext(o.J)},s=function(e){return(0,i.jsx)(i.Fragment,{children:e.accessible?e.children:e.fallback})},l=function(e){var t=a();return r.useMemo((function(){var n=function e(n,r,o){var i,a,s=n.access,l=n;if(!s&&r&&(s=r,l=o),n.unaccessible=!1,"string"==typeof s){var c=t[s];"function"==typeof c?n.unaccessible=!c(l):"boolean"==typeof c?n.unaccessible=!c:void 0===c&&(n.unaccessible=!0)}null!==(i=n.children)&&void 0!==i&&i.length&&(!n.children.reduce((function(t,r){return e(r,s,n),t||!r.unaccessible}),!1)&&(n.unaccessible=!0));null!==(a=n.routes)&&void 0!==a&&a.length&&(!n.routes.reduce((function(t,r){return e(r,s,n),t||!r.unaccessible}),!1)&&(n.unaccessible=!0));return n};return e.map((function(e){return n(e)}))}),[e.length,t])}},68094:function(e,t,n){"use strict";n.d(t,{_H:function(){return r._H},pD:function(){return b},Kd:function(){return r.Kd},i_:function(){return r.i_},YB:function(){return r.YB}});var r=n(31897),o=n(45332),i=n.n(o),a=(n(10154),n(73193)),s=n.n(a),l=n(84176),c=n.n(l),u=n(44194),f=n(24417),d=n(72615),p=n(32423),h=n(31549),g=["overlayClassName"],m=["globalIconClassName","postLocalesData","onItemClick","icon","style","reload"],v=function(e){var t=e.overlayClassName,n=c()(e,g);return(0,h.jsx)(f.Z,s()({overlayClassName:t},n))},y={"ar-EG":{lang:"ar-EG",label:"العربية",icon:"🇪🇬",title:"لغة"},"az-AZ":{lang:"az-AZ",label:"Azərbaycan dili",icon:"🇦🇿",title:"Dil"},"bg-BG":{lang:"bg-BG",label:"Български език",icon:"🇧🇬",title:"език"},"bn-BD":{lang:"bn-BD",label:"বাংলা",icon:"🇧🇩",title:"ভাষা"},"ca-ES":{lang:"ca-ES",label:"Catalá",icon:"🇨🇦",title:"llengua"},"cs-CZ":{lang:"cs-CZ",label:"Čeština",icon:"🇨🇿",title:"Jazyk"},"da-DK":{lang:"da-DK",label:"Dansk",icon:"🇩🇰",title:"Sprog"},"de-DE":{lang:"de-DE",label:"Deutsch",icon:"🇩🇪",title:"Sprache"},"el-GR":{lang:"el-GR",label:"Ελληνικά",icon:"🇬🇷",title:"Γλώσσα"},"en-GB":{lang:"en-GB",label:"English",icon:"🇬🇧",title:"Language"},"en-US":{lang:"en-US",label:"English",icon:"🇺🇸",title:"Language"},"es-ES":{lang:"es-ES",label:"Español",icon:"🇪🇸",title:"Idioma"},"et-EE":{lang:"et-EE",label:"Eesti",icon:"🇪🇪",title:"Keel"},"fa-IR":{lang:"fa-IR",label:"فارسی",icon:"🇮🇷",title:"زبان"},"fi-FI":{lang:"fi-FI",label:"Suomi",icon:"🇫🇮",title:"Kieli"},"fr-BE":{lang:"fr-BE",label:"Français",icon:"🇧🇪",title:"Langue"},"fr-FR":{lang:"fr-FR",label:"Français",icon:"🇫🇷",title:"Langue"},"ga-IE":{lang:"ga-IE",label:"Gaeilge",icon:"🇮🇪",title:"Teanga"},"he-IL":{lang:"he-IL",label:"עברית",icon:"🇮🇱",title:"שפה"},"hi-IN":{lang:"hi-IN",label:"हिन्दी, हिंदी",icon:"🇮🇳",title:"भाषा: हिन्दी"},"hr-HR":{lang:"hr-HR",label:"Hrvatski jezik",icon:"🇭🇷",title:"Jezik"},"hu-HU":{lang:"hu-HU",label:"Magyar",icon:"🇭🇺",title:"Nyelv"},"hy-AM":{lang:"hu-HU",label:"Հայերեն",icon:"🇦🇲",title:"Լեզու"},"id-ID":{lang:"id-ID",label:"Bahasa Indonesia",icon:"🇮🇩",title:"Bahasa"},"it-IT":{lang:"it-IT",label:"Italiano",icon:"🇮🇹",title:"Linguaggio"},"is-IS":{lang:"is-IS",label:"Íslenska",icon:"🇮🇸",title:"Tungumál"},"ja-JP":{lang:"ja-JP",label:"日本語",icon:"🇯🇵",title:"言語"},"ku-IQ":{lang:"ku-IQ",label:"کوردی",icon:"🇮🇶",title:"Ziman"},"kn-IN":{lang:"kn-IN",label:"ಕನ್ನಡ",icon:"🇮🇳",title:"ಭಾಷೆ"},"ko-KR":{lang:"ko-KR",label:"한국어",icon:"🇰🇷",title:"언어"},"lv-LV":{lang:"lv-LV",label:"Latviešu valoda",icon:"🇱🇮",title:"Kalba"},"mk-MK":{lang:"mk-MK",label:"македонски јазик",icon:"🇲🇰",title:"Јазик"},"mn-MN":{lang:"mn-MN",label:"Монгол хэл",icon:"🇲🇳",title:"Хэл"},"ms-MY":{lang:"ms-MY",label:"بهاس ملايو‎",icon:"🇲🇾",title:"Bahasa"},"nb-NO":{lang:"nb-NO",label:"Norsk",icon:"🇳🇴",title:"Språk"},"ne-NP":{lang:"ne-NP",label:"नेपाली",icon:"🇳🇵",title:"भाषा"},"nl-BE":{lang:"nl-BE",label:"Vlaams",icon:"🇧🇪",title:"Taal"},"nl-NL":{lang:"nl-NL",label:"Nederlands",icon:"🇳🇱",title:"Taal"},"pl-PL":{lang:"pl-PL",label:"Polski",icon:"🇵🇱",title:"Język"},"pt-BR":{lang:"pt-BR",label:"Português",icon:"🇧🇷",title:"Idiomas"},"pt-PT":{lang:"pt-PT",label:"Português",icon:"🇵🇹",title:"Idiomas"},"ro-RO":{lang:"ro-RO",label:"Română",icon:"🇷🇴",title:"Limba"},"ru-RU":{lang:"ru-RU",label:"Русский",icon:"🇷🇺",title:"язык"},"sk-SK":{lang:"sk-SK",label:"Slovenčina",icon:"🇸🇰",title:"Jazyk"},"sr-RS":{lang:"sr-RS",label:"српски језик",icon:"🇸🇷",title:"Језик"},"sl-SI":{lang:"sl-SI",label:"Slovenščina",icon:"🇸🇱",title:"Jezik"},"sv-SE":{lang:"sv-SE",label:"Svenska",icon:"🇸🇪",title:"Språk"},"ta-IN":{lang:"ta-IN",label:"தமிழ்",icon:"🇮🇳",title:"மொழி"},"th-TH":{lang:"th-TH",label:"ไทย",icon:"🇹🇭",title:"ภาษา"},"tr-TR":{lang:"tr-TR",label:"Türkçe",icon:"🇹🇷",title:"Dil"},"uk-UA":{lang:"uk-UA",label:"Українська",icon:"🇺🇰",title:"Мова"},"vi-VN":{lang:"vi-VN",label:"Tiếng Việt",icon:"🇻🇳",title:"Ngôn ngữ"},"zh-CN":{lang:"zh-CN",label:"简体中文",icon:"🇨🇳",title:"语言"},"zh-TW":{lang:"zh-TW",label:"繁體中文",icon:"🇭🇰",title:"語言"}},b=function(e){var t,n,o=e.globalIconClassName,a=e.postLocalesData,l=e.onItemClick,f=e.icon,g=e.style,b=e.reload,w=c()(e,m),E=(0,u.useState)((function(){return(0,r.Kd)()})),S=i()(E,2),_=S[0],x=S[1],k=(0,r.XZ)().map((function(e){return y[e]||{lang:e,label:e,icon:"🌐",title:e}})),C=(null==a?void 0:a(k))||k,T={minWidth:"160px"},O={marginRight:"8px"},A={selectedKeys:[_],onClick:l?function(e){return l(e)}:function(e){var t=e.key;(0,r.i_)(t,b),x((0,r.Kd)())},items:C.map((function(e){return{key:e.lang||e.key,style:T,label:(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("span",{role:"img","aria-label":(null==e?void 0:e.label)||"en-US",style:O,children:(null==e?void 0:e.icon)||"🌐"}),(null==e?void 0:e.label)||"en-US"]})}}))};n=d.Z.startsWith("5.")||d.Z.startsWith("4.24.")?{menu:A}:d.Z.startsWith("3.")?{overlay:(0,h.jsx)(p.Z,{children:A.items.map((function(e){return(0,h.jsx)(p.Z.Item,{onClick:e.onClick,children:e.label},e.key)}))})}:{overlay:(0,h.jsx)(p.Z,s()({},A))};var P=s()({cursor:"pointer",padding:"12px",display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:18,verticalAlign:"middle"},g);return(0,h.jsx)(v,s()(s()(s()({},n),{},{placement:"bottomRight"},w),{},{children:(0,h.jsx)("span",{className:o,style:P,children:(0,h.jsx)("i",{className:"anticon",title:null===(t=C[_])||void 0===t?void 0:t.title,children:f||(0,h.jsxs)("svg",{viewBox:"0 0 24 24",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:[(0,h.jsx)("path",{d:"M0 0h24v24H0z",fill:"none"}),(0,h.jsx)("path",{d:"M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z ",className:"css-c4d79v"})]})})})}))}},31897:function(e,t,n){"use strict";n.d(t,{_H:function(){return yt},PZ:function(){return Nt},eU:function(){return w},B:function(){return Lt},XZ:function(){return Vt},Mg:function(){return Ht},lw:function(){return Zt},Kd:function(){return Ut},H8:function(){return Ft},i_:function(){return Wt},YB:function(){return bt}});var r=n(84176),o=n.n(r),i=n(73193),a=n.n(i),s=n(78796),l=n.n(s),c=n(4977),u=n.n(c),f=n(49488),d=n.n(f),p=n(84047),h=n.n(p),g=n(44194),m=n.t(g,2),v=(n(10154),n(10063));n.n(v)();var y,b=g.createContext(null),w=(b.Consumer,b.Provider),E=b;function S(e){return e.type===y.literal}function _(e){return e.type===y.argument}function x(e){return e.type===y.number}function k(e){return e.type===y.date}function C(e){return e.type===y.time}function T(e){return e.type===y.select}function O(e){return e.type===y.plural}function A(e){return e.type===y.pound}function P(e){return!(!e||"object"!=typeof e||0!==e.type)}function I(e){return!(!e||"object"!=typeof e||1!==e.type)}!function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound"}(y||(y={}));var R,M=(R=function(e,t){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},R(e,t)},function(e,t){function n(){this.constructor=e}R(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),j=function(){return j=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0){for(t=1,n=1;t1&&"}"===e)},ue=Oe("\n",!1),fe=Pe("argNameOrNumber"),de=Pe("argNumber"),pe=Oe("0",!1),he=/^[1-9]/,ge=Ae([["1","9"]],!1,!1),me=/^[0-9]/,ve=Ae([["0","9"]],!1,!1),ye=Pe("argName"),be=0,we=0,Ee=[{line:1,column:1}],Se=0,_e=[],xe=0;if(void 0!==t.startRule){if(!(t.startRule in o))throw new Error("Can't start parsing from rule \""+t.startRule+'".');i=o[t.startRule]}function ke(){return e.substring(we,be)}function Ce(){return Re(we,be)}function Te(e,t){throw function(e,t){return new L(e,[],"",t)}(e,t=void 0!==t?t:Re(we,be))}function Oe(e,t){return{type:"literal",text:e,ignoreCase:t}}function Ae(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function Pe(e){return{type:"other",description:e}}function Ie(t){var n,r=Ee[t];if(r)return r;for(n=t-1;!Ee[n];)n--;for(r={line:(r=Ee[n]).line,column:r.column};nSe&&(Se=be,_e=[]),_e.push(e))}function je(e,t,n){return new L(L.buildMessage(e,t),e,t,n)}function Le(){return Ne()}function Ne(){var e,t;for(e=[],t=De();t!==r;)e.push(t),t=De();return e}function De(){var t;return(t=function(){var e,t;e=be,(t=Fe())!==r&&(we=e,n=t,t=j({type:y.literal,value:n},ot()));var n;return e=t,e}())===r&&(t=function(){var t,n,o,i;xe++,t=be,123===e.charCodeAt(be)?(n=l,be++):(n=r,0===xe&&Me(c));n!==r&&Ge()!==r&&(o=Je())!==r&&Ge()!==r?(125===e.charCodeAt(be)?(i=u,be++):(i=r,0===xe&&Me(f)),i!==r?(we=t,a=o,t=n=j({type:y.argument,value:a},ot())):(be=t,t=r)):(be=t,t=r);var a;xe--,t===r&&(n=r,0===xe&&Me(s));return t}())===r&&(t=function(){var t;t=function(){var t,n,o,i,a,s,d,p,h;t=be,123===e.charCodeAt(be)?(n=l,be++):(n=r,0===xe&&Me(c));n!==r&&Ge()!==r&&(o=Je())!==r&&Ge()!==r?(44===e.charCodeAt(be)?(i=_,be++):(i=r,0===xe&&Me(x)),i!==r&&Ge()!==r?(e.substr(be,6)===k?(a=k,be+=6):(a=r,0===xe&&Me(C)),a!==r&&Ge()!==r?(s=be,44===e.charCodeAt(be)?(d=_,be++):(d=r,0===xe&&Me(x)),d!==r&&(p=Ge())!==r?(h=function(){var t,n,o;t=be,e.substr(be,2)===w?(n=w,be+=2):(n=r,0===xe&&Me(E));n!==r?(o=function(){var e,t,n;if(e=be,t=[],n=Ze(),n!==r)for(;n!==r;)t.push(n),n=Ze();else t=r;t!==r&&(we=e,t=j({type:0,tokens:t},ot()));return e=t,e}(),o!==r?(we=t,t=n=o):(be=t,t=r)):(be=t,t=r);t===r&&(t=be,we=be,nt.push("numberArgStyle"),(n=(n=!0)?void 0:r)!==r&&(o=Fe())!==r?(we=t,t=n=S(o)):(be=t,t=r));return t}(),h!==r?s=d=[d,p,h]:(be=s,s=r)):(be=s,s=r),s===r&&(s=null),s!==r&&(d=Ge())!==r?(125===e.charCodeAt(be)?(p=u,be++):(p=r,0===xe&&Me(f)),p!==r?(we=t,t=n=T(o,a,s)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r);return t}(),t===r&&(t=function(){var t,n,o,i,a,s,d,p,h;t=be,123===e.charCodeAt(be)?(n=l,be++):(n=r,0===xe&&Me(c));n!==r&&Ge()!==r&&(o=Je())!==r&&Ge()!==r?(44===e.charCodeAt(be)?(i=_,be++):(i=r,0===xe&&Me(x)),i!==r&&Ge()!==r?(e.substr(be,4)===F?(a=F,be+=4):(a=r,0===xe&&Me(B)),a===r&&(e.substr(be,4)===$?(a=$,be+=4):(a=r,0===xe&&Me(Z))),a!==r&&Ge()!==r?(s=be,44===e.charCodeAt(be)?(d=_,be++):(d=r,0===xe&&Me(x)),d!==r&&(p=Ge())!==r?(h=function(){var t,n,o;t=be,e.substr(be,2)===w?(n=w,be+=2):(n=r,0===xe&&Me(E));n!==r?(o=function(){var t,n,o,i;t=be,n=be,o=[],i=ze(),i===r&&(i=Ue());if(i!==r)for(;i!==r;)o.push(i),(i=ze())===r&&(i=Ue());else o=r;n=o!==r?e.substring(n,be):o;n!==r&&(we=t,n=j({type:1,pattern:n},ot()));return t=n,t}(),o!==r?(we=t,t=n=o):(be=t,t=r)):(be=t,t=r);t===r&&(t=be,we=be,nt.push("dateOrTimeArgStyle"),(n=(n=!0)?void 0:r)!==r&&(o=Fe())!==r?(we=t,t=n=S(o)):(be=t,t=r));return t}(),h!==r?s=d=[d,p,h]:(be=s,s=r)):(be=s,s=r),s===r&&(s=null),s!==r&&(d=Ge())!==r?(125===e.charCodeAt(be)?(p=u,be++):(p=r,0===xe&&Me(f)),p!==r?(we=t,t=n=T(o,a,s)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r);return t}());return t}())===r&&(t=function(){var t,n,o,i,a,s,d,p,h,g,m;t=be,123===e.charCodeAt(be)?(n=l,be++):(n=r,0===xe&&Me(c));if(n!==r)if(Ge()!==r)if((o=Je())!==r)if(Ge()!==r)if(44===e.charCodeAt(be)?(i=_,be++):(i=r,0===xe&&Me(x)),i!==r)if(Ge()!==r)if(e.substr(be,6)===z?(a=z,be+=6):(a=r,0===xe&&Me(U)),a===r&&(e.substr(be,13)===H?(a=H,be+=13):(a=r,0===xe&&Me(W))),a!==r)if(Ge()!==r)if(44===e.charCodeAt(be)?(s=_,be++):(s=r,0===xe&&Me(x)),s!==r)if(Ge()!==r)if(d=be,e.substr(be,7)===V?(p=V,be+=7):(p=r,0===xe&&Me(q)),p!==r&&(h=Ge())!==r&&(g=Ke())!==r?d=p=[p,h,g]:(be=d,d=r),d===r&&(d=null),d!==r)if((p=Ge())!==r){if(h=[],(g=We())!==r)for(;g!==r;)h.push(g),g=We();else h=r;h!==r&&(g=Ge())!==r?(125===e.charCodeAt(be)?(m=u,be++):(m=r,0===xe&&Me(f)),m!==r?(we=t,n=function(e,t,n,r){return j({type:y.plural,pluralType:"plural"===t?"cardinal":"ordinal",value:e,offset:n?n[2]:0,options:r.reduce((function(e,t){var n=t.id,r=t.value,o=t.location;return n in e&&Te('Duplicate option "'+n+'" in plural element: "'+ke()+'"',Ce()),e[n]={value:r,location:o},e}),{})},ot())}(o,a,d,h),t=n):(be=t,t=r)):(be=t,t=r)}else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;return t}(),t===r&&(t=function(){var t,n,o,i,a,s,d,p,h;t=be,123===e.charCodeAt(be)?(n=l,be++):(n=r,0===xe&&Me(c));if(n!==r)if(Ge()!==r)if((o=Je())!==r)if(Ge()!==r)if(44===e.charCodeAt(be)?(i=_,be++):(i=r,0===xe&&Me(x)),i!==r)if(Ge()!==r)if(e.substr(be,6)===G?(a=G,be+=6):(a=r,0===xe&&Me(K)),a!==r)if(Ge()!==r)if(44===e.charCodeAt(be)?(s=_,be++):(s=r,0===xe&&Me(x)),s!==r)if(Ge()!==r){if(d=[],(p=He())!==r)for(;p!==r;)d.push(p),p=He();else d=r;d!==r&&(p=Ge())!==r?(125===e.charCodeAt(be)?(h=u,be++):(h=r,0===xe&&Me(f)),h!==r?(we=t,n=function(e,t){return j({type:y.select,value:e,options:t.reduce((function(e,t){var n=t.id,r=t.value,o=t.location;return n in e&&Te('Duplicate option "'+n+'" in select element: "'+ke()+'"',Ce()),e[n]={value:r,location:o},e}),{})},ot())}(o,d),t=n):(be=t,t=r)):(be=t,t=r)}else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;else be=t,t=r;return t}(),t===r&&(t=function(){var t,n;t=be,35===e.charCodeAt(be)?(n="#",be++):(n=r,0===xe&&Me(a));n!==r&&(we=t,n=j({type:y.pound},ot()));return t=n,t}()))),t}function Fe(){var e,t,n;if(e=be,t=[],(n=Ye())===r&&(n=Xe())===r&&(n=Qe()),n!==r)for(;n!==r;)t.push(n),(n=Ye())===r&&(n=Xe())===r&&(n=Qe());else t=r;return t!==r&&(we=e,t=t.join("")),e=t}function Be(){var t,n,o,i,a;if(xe++,t=be,n=[],o=be,i=be,xe++,(a=Ve())===r&&(p.test(e.charAt(be))?(a=e.charAt(be),be++):(a=r,0===xe&&Me(h))),xe--,a===r?i=void 0:(be=i,i=r),i!==r?(e.length>be?(a=e.charAt(be),be++):(a=r,0===xe&&Me(g)),a!==r?o=i=[i,a]:(be=o,o=r)):(be=o,o=r),o!==r)for(;o!==r;)n.push(o),o=be,i=be,xe++,(a=Ve())===r&&(p.test(e.charAt(be))?(a=e.charAt(be),be++):(a=r,0===xe&&Me(h))),xe--,a===r?i=void 0:(be=i,i=r),i!==r?(e.length>be?(a=e.charAt(be),be++):(a=r,0===xe&&Me(g)),a!==r?o=i=[i,a]:(be=o,o=r)):(be=o,o=r);else n=r;return t=n!==r?e.substring(t,be):n,xe--,t===r&&(n=r,0===xe&&Me(d)),t}function $e(){var t,n,o;return xe++,t=be,47===e.charCodeAt(be)?(n="/",be++):(n=r,0===xe&&Me(v)),n!==r&&(o=Be())!==r?(we=t,t=n=o):(be=t,t=r),xe--,t===r&&(n=r,0===xe&&Me(m)),t}function Ze(){var e,t,n,o,i;if(xe++,e=be,(t=Ge())!==r)if((n=Be())!==r){for(o=[],i=$e();i!==r;)o.push(i),i=$e();o!==r?(we=e,t=function(e,t){return{stem:e,options:t}}(n,o),e=t):(be=e,e=r)}else be=e,e=r;else be=e,e=r;return xe--,e===r&&(t=r,0===xe&&Me(b)),e}function ze(){var t,n,o,i;if(t=be,39===e.charCodeAt(be)?(n=O,be++):(n=r,0===xe&&Me(A)),n!==r){if(o=[],(i=Ye())===r&&(P.test(e.charAt(be))?(i=e.charAt(be),be++):(i=r,0===xe&&Me(I))),i!==r)for(;i!==r;)o.push(i),(i=Ye())===r&&(P.test(e.charAt(be))?(i=e.charAt(be),be++):(i=r,0===xe&&Me(I)));else o=r;o!==r?(39===e.charCodeAt(be)?(i=O,be++):(i=r,0===xe&&Me(A)),i!==r?t=n=[n,o,i]:(be=t,t=r)):(be=t,t=r)}else be=t,t=r;if(t===r)if(t=[],(n=Ye())===r&&(R.test(e.charAt(be))?(n=e.charAt(be),be++):(n=r,0===xe&&Me(M))),n!==r)for(;n!==r;)t.push(n),(n=Ye())===r&&(R.test(e.charAt(be))?(n=e.charAt(be),be++):(n=r,0===xe&&Me(M)));else t=r;return t}function Ue(){var t,n;if(t=[],N.test(e.charAt(be))?(n=e.charAt(be),be++):(n=r,0===xe&&Me(D)),n!==r)for(;n!==r;)t.push(n),N.test(e.charAt(be))?(n=e.charAt(be),be++):(n=r,0===xe&&Me(D));else t=r;return t}function He(){var t,n,o,i,a,s,d;return t=be,Ge()!==r&&(n=tt())!==r&&Ge()!==r?(123===e.charCodeAt(be)?(o=l,be++):(o=r,0===xe&&Me(c)),o!==r?(we=be,nt.push("select"),(!0?void 0:r)!==r&&(i=Ne())!==r?(125===e.charCodeAt(be)?(a=u,be++):(a=r,0===xe&&Me(f)),a!==r?(we=t,s=n,d=i,nt.pop(),t=j({id:s,value:d},ot())):(be=t,t=r)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r),t}function We(){var t,n,o,i,a,s,d;return t=be,Ge()!==r?(n=function(){var t,n,o,i;return t=be,n=be,61===e.charCodeAt(be)?(o="=",be++):(o=r,0===xe&&Me(Y)),o!==r&&(i=Ke())!==r?n=o=[o,i]:(be=n,n=r),(t=n!==r?e.substring(t,be):n)===r&&(t=tt()),t}(),n!==r&&Ge()!==r?(123===e.charCodeAt(be)?(o=l,be++):(o=r,0===xe&&Me(c)),o!==r?(we=be,nt.push("plural"),(!0?void 0:r)!==r&&(i=Ne())!==r?(125===e.charCodeAt(be)?(a=u,be++):(a=r,0===xe&&Me(f)),a!==r?(we=t,s=n,d=i,nt.pop(),t=j({id:s,value:d},ot())):(be=t,t=r)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r)):(be=t,t=r),t}function Ve(){var t;return xe++,Q.test(e.charAt(be))?(t=e.charAt(be),be++):(t=r,0===xe&&Me(J)),xe--,t===r&&(r,0===xe&&Me(X)),t}function qe(){var t;return xe++,te.test(e.charAt(be))?(t=e.charAt(be),be++):(t=r,0===xe&&Me(ne)),xe--,t===r&&(r,0===xe&&Me(ee)),t}function Ge(){var t,n,o;for(xe++,t=be,n=[],o=Ve();o!==r;)n.push(o),o=Ve();return t=n!==r?e.substring(t,be):n,xe--,t===r&&(n=r,0===xe&&Me(re)),t}function Ke(){var t,n,o,i,a;return xe++,t=be,45===e.charCodeAt(be)?(n="-",be++):(n=r,0===xe&&Me(ie)),n===r&&(n=null),n!==r&&(o=et())!==r?(we=t,i=n,t=n=(a=o)?i?-a:a:0):(be=t,t=r),xe--,t===r&&(n=r,0===xe&&Me(oe)),t}function Ye(){var t,n;return xe++,t=be,e.substr(be,2)===se?(n=se,be+=2):(n=r,0===xe&&Me(le)),n!==r&&(we=t,n="'"),xe--,(t=n)===r&&(n=r,0===xe&&Me(ae)),t}function Xe(){var t,n,o,i,a,s;if(t=be,39===e.charCodeAt(be)?(n=O,be++):(n=r,0===xe&&Me(A)),n!==r)if(o=function(){var t,n,o,i;t=be,n=be,e.length>be?(o=e.charAt(be),be++):(o=r,0===xe&&Me(g));o!==r?(we=be,(i=(i="{"===(a=o)||"}"===a||rt()&&"#"===a)?void 0:r)!==r?n=o=[o,i]:(be=n,n=r)):(be=n,n=r);var a;t=n!==r?e.substring(t,be):n;return t}(),o!==r){for(i=be,a=[],e.substr(be,2)===se?(s=se,be+=2):(s=r,0===xe&&Me(le)),s===r&&(P.test(e.charAt(be))?(s=e.charAt(be),be++):(s=r,0===xe&&Me(I)));s!==r;)a.push(s),e.substr(be,2)===se?(s=se,be+=2):(s=r,0===xe&&Me(le)),s===r&&(P.test(e.charAt(be))?(s=e.charAt(be),be++):(s=r,0===xe&&Me(I)));(i=a!==r?e.substring(i,be):a)!==r?(39===e.charCodeAt(be)?(a=O,be++):(a=r,0===xe&&Me(A)),a===r&&(a=null),a!==r?(we=t,t=n=o+i.replace("''","'")):(be=t,t=r)):(be=t,t=r)}else be=t,t=r;else be=t,t=r;return t}function Qe(){var t,n,o,i;return t=be,n=be,e.length>be?(o=e.charAt(be),be++):(o=r,0===xe&&Me(g)),o!==r?(we=be,(i=(i=ce(o))?void 0:r)!==r?n=o=[o,i]:(be=n,n=r)):(be=n,n=r),n===r&&(10===e.charCodeAt(be)?(n="\n",be++):(n=r,0===xe&&Me(ue))),t=n!==r?e.substring(t,be):n}function Je(){var t,n;return xe++,t=be,(n=et())===r&&(n=tt()),t=n!==r?e.substring(t,be):n,xe--,t===r&&(n=r,0===xe&&Me(fe)),t}function et(){var t,n,o,i,a;if(xe++,t=be,48===e.charCodeAt(be)?(n="0",be++):(n=r,0===xe&&Me(pe)),n!==r&&(we=t,n=0),(t=n)===r){if(t=be,n=be,he.test(e.charAt(be))?(o=e.charAt(be),be++):(o=r,0===xe&&Me(ge)),o!==r){for(i=[],me.test(e.charAt(be))?(a=e.charAt(be),be++):(a=r,0===xe&&Me(ve));a!==r;)i.push(a),me.test(e.charAt(be))?(a=e.charAt(be),be++):(a=r,0===xe&&Me(ve));i!==r?n=o=[o,i]:(be=n,n=r)}else be=n,n=r;n!==r&&(we=t,n=parseInt(n.join(""),10)),t=n}return xe--,t===r&&(n=r,0===xe&&Me(de)),t}function tt(){var t,n,o,i,a;if(xe++,t=be,n=[],o=be,i=be,xe++,(a=Ve())===r&&(a=qe()),xe--,a===r?i=void 0:(be=i,i=r),i!==r?(e.length>be?(a=e.charAt(be),be++):(a=r,0===xe&&Me(g)),a!==r?o=i=[i,a]:(be=o,o=r)):(be=o,o=r),o!==r)for(;o!==r;)n.push(o),o=be,i=be,xe++,(a=Ve())===r&&(a=qe()),xe--,a===r?i=void 0:(be=i,i=r),i!==r?(e.length>be?(a=e.charAt(be),be++):(a=r,0===xe&&Me(g)),a!==r?o=i=[i,a]:(be=o,o=r)):(be=o,o=r);else n=r;return t=n!==r?e.substring(t,be):n,xe--,t===r&&(n=r,0===xe&&Me(ye)),t}var nt=["root"];function rt(){return"plural"===nt[nt.length-1]}function ot(){return t&&t.captureLocation?{location:Ce()}:{}}if((n=i())!==r&&be===e.length)return n;throw n!==r&&be1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(q,(function(e,n,r){return"."===e?t.maximumFractionDigits=0:"+"===r?t.minimumFractionDigits=r.length:"#"===n[0]?t.maximumFractionDigits=n.length:(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length+("string"==typeof r?r.length:0)),""})),o.options.length&&(t=H(H({},t),K(o.options[0])))}else if(G.test(o.stem))t=H(H({},t),K(o.stem));else{var i=Y(o.stem);i&&(t=H(H({},t),i))}}return t}var J,ee=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),te=function(){for(var e=0,t=0,n=arguments.length;t(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,le=Date.now()+"@@",ce=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function ue(e,t,n){var r=e.tagName,o=e.outerHTML,i=e.textContent,a=e.childNodes;if(!r)return ae(i||"",t);r=r.toLowerCase();var s=~ce.indexOf(r),l=n[r];if(l&&s)throw new ne(r+" is a self-closing tag and can not be used, please use another tag name.");if(!a.length)return[o];var c=Array.prototype.slice.call(a).reduce((function(e,r){return e.concat(ue(r,t,n))}),[]);return l?"function"==typeof l?[l.apply(void 0,c)]:[l]:te(["<"+r+">"],c,[""])}function fe(e,t,n,r,o,i){var a=re(e,t,n,r,o,void 0,i),s={},l=a.reduce((function(e,t){if(0===t.type)return e+t.value;var n=Date.now()+"_"+ ++ie;return s[n]=t.value,e+"@@"+n+"@@"}),"");if(!se.test(l))return ae(l,s);if(!o)throw new ne("Message has placeholders but no values was given");if("undefined"==typeof DOMParser)throw new ne("Cannot format XML message without DOMParser");J||(J=new DOMParser);var c=J.parseFromString(''+l+"","text/html").getElementById(le);if(!c)throw new ne("Malformed HTML message "+l);var u=Object.keys(o).filter((function(e){return!!c.getElementsByTagName(e).length}));if(!u.length)return ae(l,s);var f=u.filter((function(e){return e!==e.toLowerCase()}));if(f.length)throw new ne("HTML tag must be lowercased but the following tags are not: "+f.join(", "));return Array.prototype.slice.call(c.childNodes).reduce((function(e,t){return e.concat(ue(t,s,o))}),[])}var de=function(){return de=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<"']/g;function be(e){return(""+e).replace(ye,(function(e){return ve[e.charCodeAt(0)]}))}function we(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.reduce((function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t}),{})}function Ee(e){me(e,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}function Se(e,t){var n=t?"\n".concat(t.stack):"";return"[React Intl] ".concat(e).concat(n)}var _e={formats:{},messages:{},timeZone:void 0,textComponent:g.Fragment,defaultLocale:"en",defaultFormats:{},onError:function(e){0}};function xe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames;return{getDateTimeFormat:U(Intl.DateTimeFormat,e.dateTime),getNumberFormat:U(Intl.NumberFormat,e.number),getMessageFormat:U(ge,e.message),getRelativeTimeFormat:U(t,e.relativeTime),getPluralRules:U(Intl.PluralRules,e.pluralRules),getListFormat:U(n,e.list),getDisplayNames:U(r,e.displayNames)}}function ke(e,t,n,r){var o,i=e&&e[t];if(i&&(o=i[n]),o)return o;r(Se("No ".concat(t," format named: ").concat(n)))}var Ce=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function Te(e,t){var n=e.locale,r=e.formats,o=e.onError,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=i.format,s=a&&ke(r,"number",a,o)||{},l=we(i,Ce,s);return t(n,l)}function Oe(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{return Te(e,t,r).format(n)}catch(t){e.onError(Se("Error formatting number.",t))}return String(n)}function Ae(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{return Te(e,t,r).formatToParts(n)}catch(t){e.onError(Se("Error formatting number.",t))}return[]}var Pe=["numeric","style"];function Ie(e,t){var n=e.locale,r=e.formats,o=e.onError,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=i.format,s=!!a&&ke(r,"relative",a,o)||{},l=we(i,Pe,s);return t(n,l)}function Re(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};r||(r="second");var i=Intl.RelativeTimeFormat;i||e.onError(Se('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n'));try{return Ie(e,t,o).format(n,r)}catch(t){e.onError(Se("Error formatting relative time.",t))}return String(n)}var Me=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function je(e,t,n){var r=e.locale,o=e.formats,i=e.onError,a=e.timeZone,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=s.format,c=Object.assign(Object.assign({},a&&{timeZone:a}),l&&ke(o,t,l,i)),u=we(s,Me,c);return"time"!==t||u.hour||u.minute||u.second||(u=Object.assign(Object.assign({},u),{hour:"numeric",minute:"numeric"})),n(r,u)}function Le(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof n?new Date(n||0):n;try{return je(e,"date",t,r).format(o)}catch(t){e.onError(Se("Error formatting date.",t))}return String(o)}function Ne(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof n?new Date(n||0):n;try{return je(e,"time",t,r).format(o)}catch(t){e.onError(Se("Error formatting time.",t))}return String(o)}function De(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof n?new Date(n||0):n;try{return je(e,"date",t,r).formatToParts(o)}catch(t){e.onError(Se("Error formatting date.",t))}return[]}function Fe(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof n?new Date(n||0):n;try{return je(e,"time",t,r).formatToParts(o)}catch(t){e.onError(Se("Error formatting time.",t))}return[]}var Be=["localeMatcher","type"];function $e(e,t,n){var r=e.locale,o=e.onError,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Intl.PluralRules||o(Se('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n'));var a=we(i,Be);try{return t(r,a).select(n)}catch(e){o(Se("Error formatting plural.",e))}return"other"}var Ze=n(76711),ze=n.n(Ze);function Ue(e,t){return Object.keys(e).reduce((function(n,r){return n[r]=Object.assign({timeZone:t},e[r]),n}),{})}function He(e,t){return Object.keys(Object.assign(Object.assign({},e),t)).reduce((function(n,r){return n[r]=Object.assign(Object.assign({},e[r]||{}),t[r]||{}),n}),{})}function We(e,t){if(!t)return e;var n=ge.formats;return Object.assign(Object.assign(Object.assign({},n),e),{date:He(Ue(n.date,t),Ue(e.date||{},t)),time:He(Ue(n.time,t),Ue(e.time||{},t))})}var Ve=function(e){return g.createElement.apply(m,[g.Fragment,null].concat(ze()(e)))};function qe(e,t){var n=e.locale,r=e.formats,o=e.messages,i=e.defaultLocale,a=e.defaultFormats,s=e.onError,l=e.timeZone,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{id:""},u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},f=c.id,d=c.defaultMessage;me(!!f,"[React Intl] An `id` must be provided to format a message.");var p=o&&o[String(f)];r=We(r,l),a=We(a,l);var h=[];if(p)try{var g=t.getMessageFormat(p,n,r,{formatters:t});h=g.formatHTMLMessage(u)}catch(e){s(Se('Error formatting message: "'.concat(f,'" for locale: "').concat(n,'"')+(d?", using default message as fallback.":""),e))}else(!d||n&&n.toLowerCase()!==i.toLowerCase())&&s(Se('Missing message: "'.concat(f,'" for locale: "').concat(n,'"')+(d?", using default message as fallback.":"")));if(!h.length&&d)try{var m=t.getMessageFormat(d,i,a);h=m.formatHTMLMessage(u)}catch(e){s(Se('Error formatting the default message for: "'.concat(f,'"'),e))}return h.length?1===h.length&&"string"==typeof h[0]?h[0]||d||String(f):Ve(h):(s(Se('Cannot format message: "'.concat(f,'", ')+"using message ".concat(p||d?"source":"id"," as fallback."))),"string"==typeof p?p||d||String(f):d||String(f))}function Ge(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{id:""},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=Object.keys(r).reduce((function(e,t){var n=r[t];return e[t]="string"==typeof n?be(n):n,e}),{});return qe(e,t,n,o)}var Ke=n(57761),Ye=n.n(Ke),Xe=n(89957),Qe=n.n(Xe),Je=["localeMatcher","type","style"],et=Date.now();function tt(e){return"".concat(et,"_").concat(e,"_").concat(et)}function nt(e,t,n){var r=e.locale,o=e.onError,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=Intl.ListFormat;a||o(Se('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n'));var s=we(i,Je);try{var l={},c=n.map((function(e,t){if("object"===Qe()(e)){var n=tt(t);return l[n]=e,n}return String(e)}));if(!Object.keys(l).length)return t(r,s).format(c);var u=t(r,s).formatToParts(c);return u.reduce((function(e,t){var n=t.value;return l[n]?e.push(l[n]):"string"==typeof e[e.length-1]?e[e.length-1]+=n:e.push(n),e}),[])}catch(e){o(Se("Error formatting list.",e))}return n}var rt=["localeMatcher","style","type","fallback"];function ot(e,t,n){var r=e.locale,o=e.onError,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=Intl.DisplayNames;a||o(Se('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n'));var s=we(i,rt);try{return t(r,s).of(n)}catch(e){o(Se("Error formatting display name.",e))}}var it=Ye()||Ke;function at(e){return{locale:e.locale,timeZone:e.timeZone,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError}}function st(e,t){var n=xe(t),r=Object.assign(Object.assign({},_e),e),o=r.locale,i=r.defaultLocale,a=r.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&a?a(Se('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&a&&a(Se('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details'))):(a&&a(Se('"locale" was not configured, using "'.concat(i,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/API.md#intlshape for more details'))),r.locale=r.defaultLocale||"en"),Object.assign(Object.assign({},r),{formatters:n,formatNumber:Oe.bind(null,r,n.getNumberFormat),formatNumberToParts:Ae.bind(null,r,n.getNumberFormat),formatRelativeTime:Re.bind(null,r,n.getRelativeTimeFormat),formatDate:Le.bind(null,r,n.getDateTimeFormat),formatDateToParts:De.bind(null,r,n.getDateTimeFormat),formatTime:Ne.bind(null,r,n.getDateTimeFormat),formatTimeToParts:Fe.bind(null,r,n.getDateTimeFormat),formatPlural:$e.bind(null,r,n.getPluralRules),formatMessage:qe.bind(null,r,n),formatHTMLMessage:Ge.bind(null,r,n),formatList:nt.bind(null,r,n.getListFormat),formatDisplayName:ot.bind(null,r,n.getDisplayNames)})}var lt=function(e){d()(n,e);var t=h()(n);function n(){var e;return l()(this,n),(e=t.apply(this,arguments)).cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},e.state={cache:e.cache,intl:st(at(e.props),e.cache),prevConfig:at(e.props)},e}return u()(n,[{key:"render",value:function(){return Ee(this.state.intl),g.createElement(w,{value:this.state.intl},this.props.children)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevConfig,r=t.cache,o=at(e);return it(n,o)?null:{intl:st(o,r),prevConfig:o}}}]),n}(g.PureComponent);lt.displayName="IntlProvider",lt.defaultProps=_e;var ct=n(34787),ut=n(87308),ft=n.n(ut),dt=n(62118),pt=n.n(dt),ht=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o