diff --git a/core/admin/index.html b/core/admin/index.html index 083637e..c3353cf 100644 --- a/core/admin/index.html +++ b/core/admin/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/admin/p__Basic__index.9e867cce.async.js b/core/admin/p__Basic__index.2fa897e6.async.js similarity index 67% rename from core/admin/p__Basic__index.9e867cce.async.js rename to core/admin/p__Basic__index.2fa897e6.async.js index 8f3a74d..3c48c6f 100644 --- a/core/admin/p__Basic__index.9e867cce.async.js +++ b/core/admin/p__Basic__index.2fa897e6.async.js @@ -1,4 +1,4 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[294],{96642:function(X,S,t){var _=t(75782),E=t(58733),F=t(50959),i=t(72961),x=t(11527),D=["fieldProps","min","proFieldProps","max"],M=function(C,$){var j=C.fieldProps,g=C.min,d=C.proFieldProps,s=C.max,y=(0,E.Z)(C,D);return(0,x.jsx)(i.Z,(0,_.Z)({valueType:"digit",fieldProps:(0,_.Z)({min:g,max:s},j),ref:$,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:d},y))},v=F.forwardRef(M);S.Z=v},59419:function(X,S,t){var _=t(75782),E=t(58733),F=t(18518),i=t(50959),x=t(60061),D=t(72961),M=t(11527),v=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],b=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],C=i.forwardRef(function(s,y){var l=s.fieldProps,I=s.children,R=s.params,K=s.proFieldProps,L=s.mode,B=s.valueEnum,h=s.request,f=s.showSearch,p=s.options,c=(0,E.Z)(s,v),u=(0,i.useContext)(x.Z);return(0,M.jsx)(D.Z,(0,_.Z)((0,_.Z)({valueEnum:(0,F.h)(B),request:h,params:R,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,_.Z)({options:p,mode:L,showSearch:f,getPopupContainer:u.getPopupContainer},l),ref:y,proFieldProps:K},c),{},{children:I}))}),$=i.forwardRef(function(s,y){var l=s.fieldProps,I=s.children,R=s.params,K=s.proFieldProps,L=s.mode,B=s.valueEnum,h=s.request,f=s.options,p=(0,E.Z)(s,b),c=(0,_.Z)({options:f,mode:L||"multiple",labelInValue:!0,showSearch:!0,showArrow:!1,autoClearSearchValue:!0,optionLabelProp:"label"},l),u=(0,i.useContext)(x.Z);return(0,M.jsx)(D.Z,(0,_.Z)((0,_.Z)({valueEnum:(0,F.h)(B),request:h,params:R,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,_.Z)({getPopupContainer:u.getPopupContainer},c),ref:y,proFieldProps:K},p),{},{children:I}))}),j=C,g=$,d=j;d.SearchSelect=g,d.displayName="ProFormComponent",S.Z=d},66732:function(X,S,t){var _=t(75782),E=t(58733),F=t(50959),i=t(72961),x=t(11527),D=["fieldProps","proFieldProps"],M=["fieldProps","proFieldProps"],v="text",b=function(g){var d=g.fieldProps,s=g.proFieldProps,y=(0,E.Z)(g,D);return(0,x.jsx)(i.Z,(0,_.Z)({valueType:v,fieldProps:d,filedConfig:{valueType:v},proFieldProps:s},y))},C=function(g){var d=g.fieldProps,s=g.proFieldProps,y=(0,E.Z)(g,M);return(0,x.jsx)(i.Z,(0,_.Z)({valueType:"password",fieldProps:d,proFieldProps:s,filedConfig:{valueType:v}},y))},$=b;$.Password=C,$.displayName="ProFormComponent",S.Z=$},15717:function(X,S,t){t.r(S);var _=t(25359),E=t.n(_),F=t(49811),i=t.n(F),x=t(54306),D=t.n(x),M=t(12472),v=t(81308),b=t(66732),C=t(96642),$=t(59419),j=t(31491),g=t(26572),d=t(21362),s=t(86195),y=t(50959),l=t(11527);S.default=function(){var I=(0,y.useState)(!1),R=D()(I,2),K=R[0],L=R[1];return(0,l.jsx)(M._z,{title:"\u57FA\u7840\u914D\u7F6E",children:(0,l.jsx)(j.Z,{children:(0,l.jsxs)(v.A,{autoFocus:!1,submitter:{render:function(h,f){return[(0,l.jsx)(g.ZP,{htmlType:"button",onClick:function(){d.ZP.info("\u5347\u7EA7\u4E2D..."),(0,s.request)("/api/storage",{method:"put",data:{"app.compiled_at":Math.random().toString(36).substring(2,12)}}).then(function(c){if(c.errors)for(var u in c.errors)d.ZP.error(c.errors[u],4);if(c.messages)for(var T in c.messages)d.ZP.success(c.messages[T],4)})},children:"\u4E00\u952E\u5347\u7EA7"},"update"),(0,l.jsx)(g.ZP,{htmlType:"button",onClick:function(){d.ZP.info("\u91CD\u542F\u4E2D..."),(0,s.request)("/api/storage",{method:"put",data:{"app.started_at":Math.random().toString(36).substring(2,12)}}).then(function(c){if(c.errors)for(var u in c.errors)d.ZP.error(c.errors[u],4);if(c.messages)for(var T in c.messages)d.ZP.success(c.messages[T],4)})},children:"\u91CD\u542F\u7A0B\u5E8F"},"reload")]}},request:i()(E()().mark(function B(){var h;return E()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,(0,s.request)("/api/storage",{params:{keys:["app.name","app.port","app.password","app.machine_id","app.started_at","app.compiled_at","app.storage","app.redis_addr","app.redis_password"].join(",")}});case 2:return h=p.sent,h.data["app.storage"]=="redis"&&L(!0),p.abrupt("return",h.data);case 5:case"end":return p.stop()}},B)})),onBlur:function(h){var f=h.target.value,p=h.target.getAttribute("id");if(p!="app.storage"){var c={};p&&(c[p]=f,(0,s.request)("/api/storage",{method:"put",data:c}).then(function(u){var T=!1;for(var k in u.errors)T=!0,u.errors[k]!="unchanged"&&d.ZP.warning(u.errors[k],4);var V=!1;for(var U in u.messages)V=!0,d.ZP.info(u.messages[U],4);if(!T)if(p=="app.port"){d.ZP.success("\u7AEF\u53E3\u4FEE\u6539\u6210\u529F\uFF0C\u5373\u5C06\u8DF3\u8F6C\u9875\u9762\uFF01",5);var z=window.location.origin,e="80",r="";if(z.includes(":".concat(e,"/")))r=z.replace(":".concat(e,"/"),":".concat(f,"/"));else{var o=new URL(z);o.port=f,r=o.toString()}window.location.href=r}else V||d.ZP.success("\u63D0\u4EA4\u6210\u529F\uFF01",1)}))}},children:[(0,l.jsxs)(v.A.Group,{children:[(0,l.jsx)(b.Z,{name:"app.name",label:"\u767B\u5F55\u8D26\u53F7",tooltip:"\u673A\u5668\u4EBA\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"}),(0,l.jsx)(b.Z,{width:"md",name:"app.password",label:"\u767B\u5F55\u5BC6\u7801",tooltip:"\u4E3B\u8981\u7528\u4E8E\u7BA1\u7406\u5458\u9875\u9762\u767B\u5F55"})]}),(0,l.jsxs)(v.A.Group,{children:[(0,l.jsx)(b.Z,{disabled:!0,name:"app.started_at",label:"\u542F\u52A8\u65F6\u95F4"}),(0,l.jsx)(b.Z,{disabled:!0,name:"app.compiled_at",label:"\u7F16\u8BD1\u7248\u672C"}),(0,l.jsx)(b.Z,{width:"md",name:"app.machine_id",label:"\u673A\u5668\u7801",disabled:!0})]}),(0,l.jsx)(v.A.Group,{children:(0,l.jsx)(C.Z,{width:"sm",tooltip:"\u8BF7\u8C28\u614E\u4FEE\u6539\uFF0C\u5982\u679C\u56E0\u6B64\u65E0\u6CD5\u8BBF\u95EE\u8BF7\u91CD\u65B0\u8FD0\u884C\u7A0B\u5E8F\u5E76\u4FEE\u6539\u7AEF\u53E3\u3002",name:"app.port",label:"\u7AEF\u53E3"})}),(0,l.jsxs)(v.A.Group,{children:[(0,l.jsx)($.Z,{fieldProps:{onChange:function(h){L(h=="redis"),(0,s.request)("/api/storage",{method:"put",data:{"app.storage":h}}).then(function(f){var p=!1;for(var c in f.errors)p=!0,d.ZP.warning(f.errors[c],4);var u=!0;for(var T in f.messages)u=!0,d.ZP.info(f.messages[T],4);!p&&!u&&d.ZP.success("\u63D0\u4EA4\u6210\u529F\uFF01",1)})}},options:[{value:"boltdb",label:"BoltDB"},{value:"redis",label:"Redis"}],name:"app.storage",label:"\u9ED8\u8BA4\u5B58\u50A8"}),K&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.Z,{name:"app.redis_addr",label:"Redis\u5730\u5740",placeholder:"\u8BF7\u8F93\u5165Redis\u5730\u5740"}),(0,l.jsx)(b.Z,{width:"md",name:"app.redis_password",label:"Redis\u5BC6\u7801",placeholder:"\u8BF7\u8F93\u5165Redis\u5BC6\u7801"})]})]})]})})})}},31491:function(X,S,t){t.d(S,{Z:function(){return z}});var _=t(84875),E=t.n(_),F=t(65395),i=t(50959),x=t(70458),D=t(85460),M=t(37454),v=t(53315),b=function(e,r){var o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(o[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n{var{prefixCls:r,className:o,hoverable:a=!0}=e,n=b(e,["prefixCls","className","hoverable"]);const{getPrefixCls:P}=i.useContext(x.E_),W=P("card",r),w=E()(`${W}-grid`,o,{[`${W}-grid-hoverable`]:a});return i.createElement("div",Object.assign({},n,{className:w}))},j=t(97624),g=t(74074),d=t(49272);const s=e=>{const{antCls:r,componentCls:o,cardHeadHeight:a,cardPaddingBase:n,cardHeadTabsMarginBottom:P}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:a,marginBottom:-1,padding:`0 ${n}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},(0,d.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},d.vS),{[` +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[294],{96642:function(X,S,t){var _=t(75782),E=t(58733),F=t(50959),i=t(72961),x=t(11527),D=["fieldProps","min","proFieldProps","max"],M=function(C,$){var j=C.fieldProps,g=C.min,d=C.proFieldProps,s=C.max,y=(0,E.Z)(C,D);return(0,x.jsx)(i.Z,(0,_.Z)({valueType:"digit",fieldProps:(0,_.Z)({min:g,max:s},j),ref:$,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:d},y))},v=F.forwardRef(M);S.Z=v},59419:function(X,S,t){var _=t(75782),E=t(58733),F=t(18518),i=t(50959),x=t(60061),D=t(72961),M=t(11527),v=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],b=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],C=i.forwardRef(function(s,y){var l=s.fieldProps,I=s.children,R=s.params,K=s.proFieldProps,L=s.mode,B=s.valueEnum,h=s.request,f=s.showSearch,p=s.options,c=(0,E.Z)(s,v),u=(0,i.useContext)(x.Z);return(0,M.jsx)(D.Z,(0,_.Z)((0,_.Z)({valueEnum:(0,F.h)(B),request:h,params:R,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,_.Z)({options:p,mode:L,showSearch:f,getPopupContainer:u.getPopupContainer},l),ref:y,proFieldProps:K},c),{},{children:I}))}),$=i.forwardRef(function(s,y){var l=s.fieldProps,I=s.children,R=s.params,K=s.proFieldProps,L=s.mode,B=s.valueEnum,h=s.request,f=s.options,p=(0,E.Z)(s,b),c=(0,_.Z)({options:f,mode:L||"multiple",labelInValue:!0,showSearch:!0,showArrow:!1,autoClearSearchValue:!0,optionLabelProp:"label"},l),u=(0,i.useContext)(x.Z);return(0,M.jsx)(D.Z,(0,_.Z)((0,_.Z)({valueEnum:(0,F.h)(B),request:h,params:R,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,_.Z)({getPopupContainer:u.getPopupContainer},c),ref:y,proFieldProps:K},p),{},{children:I}))}),j=C,g=$,d=j;d.SearchSelect=g,d.displayName="ProFormComponent",S.Z=d},66732:function(X,S,t){var _=t(75782),E=t(58733),F=t(50959),i=t(72961),x=t(11527),D=["fieldProps","proFieldProps"],M=["fieldProps","proFieldProps"],v="text",b=function(g){var d=g.fieldProps,s=g.proFieldProps,y=(0,E.Z)(g,D);return(0,x.jsx)(i.Z,(0,_.Z)({valueType:v,fieldProps:d,filedConfig:{valueType:v},proFieldProps:s},y))},C=function(g){var d=g.fieldProps,s=g.proFieldProps,y=(0,E.Z)(g,M);return(0,x.jsx)(i.Z,(0,_.Z)({valueType:"password",fieldProps:d,proFieldProps:s,filedConfig:{valueType:v}},y))},$=b;$.Password=C,$.displayName="ProFormComponent",S.Z=$},15717:function(X,S,t){t.r(S);var _=t(25359),E=t.n(_),F=t(49811),i=t.n(F),x=t(54306),D=t.n(x),M=t(12472),v=t(81308),b=t(66732),C=t(96642),$=t(59419),j=t(31491),g=t(26572),d=t(21362),s=t(86195),y=t(50959),l=t(11527);S.default=function(){var I=(0,y.useState)(!1),R=D()(I,2),K=R[0],L=R[1];return(0,l.jsx)(M._z,{title:"\u57FA\u7840\u914D\u7F6E",children:(0,l.jsx)(j.Z,{children:(0,l.jsxs)(v.A,{autoFocusFirstInput:!1,autoFocus:!1,submitter:{render:function(h,f){return[(0,l.jsx)(g.ZP,{htmlType:"button",onClick:function(){d.ZP.info("\u5347\u7EA7\u4E2D..."),(0,s.request)("/api/storage",{method:"put",data:{"app.compiled_at":Math.random().toString(36).substring(2,12)}}).then(function(c){if(c.errors)for(var u in c.errors)d.ZP.error(c.errors[u],4);if(c.messages)for(var T in c.messages)d.ZP.success(c.messages[T],4)})},children:"\u4E00\u952E\u5347\u7EA7"},"update"),(0,l.jsx)(g.ZP,{htmlType:"button",onClick:function(){d.ZP.info("\u91CD\u542F\u4E2D..."),(0,s.request)("/api/storage",{method:"put",data:{"app.started_at":Math.random().toString(36).substring(2,12)}}).then(function(c){if(c.errors)for(var u in c.errors)d.ZP.error(c.errors[u],4);if(c.messages)for(var T in c.messages)d.ZP.success(c.messages[T],4)})},children:"\u91CD\u542F\u7A0B\u5E8F"},"reload")]}},request:i()(E()().mark(function B(){var h;return E()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,(0,s.request)("/api/storage",{params:{keys:["app.name","app.port","app.password","app.machine_id","app.started_at","app.compiled_at","app.storage","app.redis_addr","app.redis_password"].join(",")}});case 2:return h=p.sent,h.data["app.storage"]=="redis"&&L(!0),p.abrupt("return",h.data);case 5:case"end":return p.stop()}},B)})),onBlur:function(h){var f=h.target.value,p=h.target.getAttribute("id");if(p!="app.storage"){var c={};p&&(c[p]=f,(0,s.request)("/api/storage",{method:"put",data:c}).then(function(u){var T=!1;for(var k in u.errors)T=!0,u.errors[k]!="unchanged"&&d.ZP.warning(u.errors[k],4);var V=!1;for(var U in u.messages)V=!0,d.ZP.info(u.messages[U],4);if(!T)if(p=="app.port"){d.ZP.success("\u7AEF\u53E3\u4FEE\u6539\u6210\u529F\uFF0C\u5373\u5C06\u8DF3\u8F6C\u9875\u9762\uFF01",5);var z=window.location.origin,e="80",r="";if(z.includes(":".concat(e,"/")))r=z.replace(":".concat(e,"/"),":".concat(f,"/"));else{var o=new URL(z);o.port=f,r=o.toString()}window.location.href=r}else V||d.ZP.success("\u63D0\u4EA4\u6210\u529F\uFF01",1)}))}},children:[(0,l.jsxs)(v.A.Group,{children:[(0,l.jsx)(b.Z,{name:"app.name",label:"\u767B\u5F55\u8D26\u53F7",tooltip:"\u673A\u5668\u4EBA\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"}),(0,l.jsx)(b.Z,{width:"md",name:"app.password",label:"\u767B\u5F55\u5BC6\u7801",tooltip:"\u4E3B\u8981\u7528\u4E8E\u7BA1\u7406\u5458\u9875\u9762\u767B\u5F55"})]}),(0,l.jsxs)(v.A.Group,{children:[(0,l.jsx)(b.Z,{disabled:!0,name:"app.started_at",label:"\u542F\u52A8\u65F6\u95F4"}),(0,l.jsx)(b.Z,{disabled:!0,name:"app.compiled_at",label:"\u7F16\u8BD1\u7248\u672C"}),(0,l.jsx)(b.Z,{width:"md",name:"app.machine_id",label:"\u673A\u5668\u7801",disabled:!0})]}),(0,l.jsx)(v.A.Group,{children:(0,l.jsx)(C.Z,{width:"sm",tooltip:"\u8BF7\u8C28\u614E\u4FEE\u6539\uFF0C\u5982\u679C\u56E0\u6B64\u65E0\u6CD5\u8BBF\u95EE\u8BF7\u91CD\u65B0\u8FD0\u884C\u7A0B\u5E8F\u5E76\u4FEE\u6539\u7AEF\u53E3\u3002",name:"app.port",label:"\u7AEF\u53E3"})}),(0,l.jsxs)(v.A.Group,{children:[(0,l.jsx)($.Z,{fieldProps:{onChange:function(h){L(h=="redis"),(0,s.request)("/api/storage",{method:"put",data:{"app.storage":h}}).then(function(f){var p=!1;for(var c in f.errors)p=!0,d.ZP.warning(f.errors[c],4);var u=!0;for(var T in f.messages)u=!0,d.ZP.info(f.messages[T],4);!p&&!u&&d.ZP.success("\u63D0\u4EA4\u6210\u529F\uFF01",1)})}},options:[{value:"boltdb",label:"BoltDB"},{value:"redis",label:"Redis"}],name:"app.storage",label:"\u9ED8\u8BA4\u5B58\u50A8"}),K&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.Z,{name:"app.redis_addr",label:"Redis\u5730\u5740",placeholder:"\u8BF7\u8F93\u5165Redis\u5730\u5740"}),(0,l.jsx)(b.Z,{width:"md",name:"app.redis_password",label:"Redis\u5BC6\u7801",placeholder:"\u8BF7\u8F93\u5165Redis\u5BC6\u7801"})]})]})]})})})}},31491:function(X,S,t){t.d(S,{Z:function(){return z}});var _=t(84875),E=t.n(_),F=t(65395),i=t(50959),x=t(70458),D=t(85460),M=t(37454),v=t(53315),b=function(e,r){var o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(o[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n{var{prefixCls:r,className:o,hoverable:a=!0}=e,n=b(e,["prefixCls","className","hoverable"]);const{getPrefixCls:P}=i.useContext(x.E_),W=P("card",r),w=E()(`${W}-grid`,o,{[`${W}-grid-hoverable`]:a});return i.createElement("div",Object.assign({},n,{className:w}))},j=t(97624),g=t(74074),d=t(49272);const s=e=>{const{antCls:r,componentCls:o,cardHeadHeight:a,cardPaddingBase:n,cardHeadTabsMarginBottom:P}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:a,marginBottom:-1,padding:`0 ${n}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},(0,d.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},d.vS),{[` > ${o}-typography, > ${o}-typography-edit-content `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${r}-tabs-top`]:{clear:"both",marginBottom:P,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},y=e=>{const{cardPaddingBase:r,colorBorderSecondary:o,cardShadow:a,lineWidth:n}=e;return{width:"33.33%",padding:r,border:0,borderRadius:0,boxShadow:` diff --git a/core/admin/p__Proxy__index.414b0326.async.js b/core/admin/p__Proxy__index.414b0326.async.js deleted file mode 100644 index 9c5c158..0000000 --- a/core/admin/p__Proxy__index.414b0326.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[583],{96642:function(ae,w,r){var E=r(75782),T=r(58733),K=r(50959),u=r(72961),B=r(11527),j=["fieldProps","min","proFieldProps","max"],U=function(y,W){var G=y.fieldProps,o=y.min,O=y.proFieldProps,d=y.max,L=(0,T.Z)(y,j);return(0,B.jsx)(u.Z,(0,E.Z)({valueType:"digit",fieldProps:(0,E.Z)({min:o,max:d},G),ref:W,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:O},L))},A=K.forwardRef(U);w.Z=A},59419:function(ae,w,r){var E=r(75782),T=r(58733),K=r(18518),u=r(50959),B=r(60061),j=r(72961),U=r(11527),A=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],z=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],y=u.forwardRef(function(d,L){var Y=d.fieldProps,ne=d.children,_=d.params,q=d.proFieldProps,R=d.mode,S=d.valueEnum,V=d.request,e=d.showSearch,c=d.options,l=(0,T.Z)(d,A),a=(0,u.useContext)(B.Z);return(0,U.jsx)(j.Z,(0,E.Z)((0,E.Z)({valueEnum:(0,K.h)(S),request:V,params:_,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,E.Z)({options:c,mode:R,showSearch:e,getPopupContainer:a.getPopupContainer},Y),ref:L,proFieldProps:q},l),{},{children:ne}))}),W=u.forwardRef(function(d,L){var Y=d.fieldProps,ne=d.children,_=d.params,q=d.proFieldProps,R=d.mode,S=d.valueEnum,V=d.request,e=d.options,c=(0,T.Z)(d,z),l=(0,E.Z)({options:e,mode:R||"multiple",labelInValue:!0,showSearch:!0,showArrow:!1,autoClearSearchValue:!0,optionLabelProp:"label"},Y),a=(0,u.useContext)(B.Z);return(0,U.jsx)(j.Z,(0,E.Z)((0,E.Z)({valueEnum:(0,K.h)(S),request:V,params:_,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,E.Z)({getPopupContainer:a.getPopupContainer},l),ref:L,proFieldProps:q},c),{},{children:ne}))}),G=y,o=W,O=G;O.SearchSelect=o,O.displayName="ProFormComponent",w.Z=O},40792:function(ae,w,r){var E=r(75782),T=r(58733),K=r(50959),u=r(72961),B=r(11527),j=["fieldProps","unCheckedChildren","checkedChildren","proFieldProps"],U=K.forwardRef(function(A,z){var y=A.fieldProps,W=A.unCheckedChildren,G=A.checkedChildren,o=A.proFieldProps,O=(0,T.Z)(A,j);return(0,B.jsx)(u.Z,(0,E.Z)({valueType:"switch",fieldProps:(0,E.Z)({unCheckedChildren:W,checkedChildren:G},y),ref:z,valuePropName:"checked",proFieldProps:o,filedConfig:{valuePropName:"checked",ignoreWidth:!0}},O))});w.Z=U},66732:function(ae,w,r){var E=r(75782),T=r(58733),K=r(50959),u=r(72961),B=r(11527),j=["fieldProps","proFieldProps"],U=["fieldProps","proFieldProps"],A="text",z=function(o){var O=o.fieldProps,d=o.proFieldProps,L=(0,T.Z)(o,j);return(0,B.jsx)(u.Z,(0,E.Z)({valueType:A,fieldProps:O,filedConfig:{valueType:A},proFieldProps:d},L))},y=function(o){var O=o.fieldProps,d=o.proFieldProps,L=(0,T.Z)(o,U);return(0,B.jsx)(u.Z,(0,E.Z)({valueType:"password",fieldProps:O,proFieldProps:d,filedConfig:{valueType:A}},L))},W=z;W.Password=y,W.displayName="ProFormComponent",w.Z=W},82730:function(ae,w,r){r.r(w),r.d(w,{default:function(){return oe}});var E=r(25359),T=r.n(E),K=r(49811),u=r.n(K),B=r(54306),j=r.n(B),U=r(27693),z={randomUUID:typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let y;const W=new Uint8Array(16);function G(){if(!y&&(y=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!y))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return y(W)}const o=[];for(let n=0;n<256;++n)o.push((n+256).toString(16).slice(1));function O(n,s=0){return(o[n[s+0]]+o[n[s+1]]+o[n[s+2]]+o[n[s+3]]+"-"+o[n[s+4]]+o[n[s+5]]+"-"+o[n[s+6]]+o[n[s+7]]+"-"+o[n[s+8]]+o[n[s+9]]+"-"+o[n[s+10]]+o[n[s+11]]+o[n[s+12]]+o[n[s+13]]+o[n[s+14]]+o[n[s+15]]).toLowerCase()}function d(n,s=0){const b=O(n,s);if(!validate(b))throw TypeError("Stringified UUID is invalid");return b}var L=null;function Y(n,s,b){if(z.randomUUID&&!s&&!n)return z.randomUUID();n=n||{};const x=n.random||(n.rng||G)();if(x[6]=x[6]&15|64,x[8]=x[8]&63|128,s){b=b||0;for(let m=0;m<16;++m)s[b+m]=x[m];return s}return O(x)}var ne=Y,_=r(12472),q=r(19646),R=r(81308),S=r(66732),V=r(59419),e=r(24176),c=r(96642),l=r(40792),a=r(86195),i=r(4050),M=r(833),v=r(21362),ee=r(68243),N=r(26572),H=r(79112),g=r(50959),t=r(11527),oe=function(){var n=(0,g.useRef)(),s=(0,g.useState)(le),b=j()(s,2),x=b[0],m=b[1],te=[{title:"\u7F16\u53F7",dataIndex:"index",key:"index"},{title:"\u540D\u79F0",dataIndex:"name",key:"name"},{title:"\u7C7B\u578B",dataIndex:"type",key:"type",render:function(Z,p){return(0,t.jsx)(i.Z,{color:"purple",children:Z})}},{title:"\u670D\u52A1\u5668",dataIndex:"server",key:"server"},{title:"\u7AEF\u53E3",dataIndex:"port",key:"port"},{title:"\u5907\u6CE8",dataIndex:"remark",key:"remark"},{title:"\u521B\u5EFA\u65E5\u671F",dataIndex:"created_at",key:"created_at",render:function(Z,p){return(0,t.jsx)("span",{children:new Date(Z*1e3).toLocaleDateString()})}},{title:"\u542F\u7528",dataIndex:"enable",key:"enable",renderFormItem:function(){return(0,t.jsx)(M.Z,{disabled:!0,defaultChecked:!1})},render:function(Z,p){return(0,t.jsx)(M.Z,{onChange:function($){p.enable=$;var h={};h[p.id]=p,(0,a.request)("/api/storage",{method:"put",data:h}).then(function(C){var f,P,Q=!1;for(var J in C.errors)Q=!0,v.ZP.warning(C.errors[J],10);var F=!0;for(var ie in C.messages)F=!0,v.ZP.info(C.messages[ie],10);!Q&&!F&&v.ZP.success("\u63D0\u4EA4\u6210\u529F\uFF01",1),(f=n.current)===null||f===void 0||(P=f.reloadAndRest)===null||P===void 0||P.call(f)})},defaultChecked:p==null?void 0:p.enable})}},{title:"\u64CD\u4F5C",valueType:"option",width:"10%",render:function(Z,p){return[(0,t.jsx)("a",{onClick:function(){return m(p)},children:"\u7F16\u8F91"},"more"),(0,t.jsx)("a",{onClick:function(){var $={};$[p.id]="",(0,a.request)("/api/storage",{method:"put",data:$}).then(function(h){var C,f,P=!1;for(var Q in h.errors)P=!0,v.ZP.warning(h.errors[Q],10);var J=!0;for(var F in h.messages)J=!0,v.ZP.info(h.messages[F],10);!P&&!J&&v.ZP.success("\u63D0\u4EA4\u6210\u529F\uFF01",1),(C=n.current)===null||C===void 0||(f=C.reloadAndRest)===null||f===void 0||f.call(C)})},children:"\u5220\u9664"},"delete")]}}];return(0,t.jsxs)(_._z,{content:"\u4EE3\u7406\u5217\u8868",children:[(0,t.jsx)(ee.Z,{style:{marginBottom:10},children:(0,t.jsx)(N.ZP,{type:"primary",onClick:function(){m(de)},icon:(0,t.jsx)(U.Z,{}),children:"\u65B0\u5EFA\u4E00\u884C"})}),(0,t.jsx)(q.Z,{search:!1,actionRef:n,rowKey:function(Z){return Z.id},columns:te,request:u()(T()().mark(function D(){var Z,p=arguments;return T()().wrap(function($){for(;;)switch($.prev=$.next){case 0:return Z=p.length>0&&p[0]!==void 0?p[0]:{},$.abrupt("return",(0,a.request)("/api/storage?keys=proxies",{params:Z}).then(function(h){var C=[],f=0;for(var P in h.data)f++,h.data[P].id=P,h.data[P].index=f,C.push(h.data[P]);return h.data=C,h}));case 2:case"end":return $.stop()}},D)}))}),x.id!="-1"&&(0,t.jsx)(X,{open:x.id!="-1",data:x,onCancel:function(){return m(le)},onFinish:function(){var D=u()(T()().mark(function Z(p){var k;return T()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:k={},x.id==""&&(x.id="proxies."+ne()),k[x.id]=p,(0,a.request)("/api/storage",{method:"put",data:k}).then(function(C){var f,P,Q=!1;for(var J in C.errors)Q=!0,v.ZP.warning(C.errors[J],4);var F=!0;for(var ie in C.messages)F=!0,v.ZP.info(C.messages[ie],4);!Q&&!F&&v.ZP.success("\u63D0\u4EA4\u6210\u529F\uFF01",1),m(le),(f=n.current)===null||f===void 0||(P=f.reloadAndRest)===null||P===void 0||P.call(f)});case 4:case"end":return h.stop()}},Z)}));return function(Z){return D.apply(this,arguments)}}()})]})};function X(n){var s,b,x,m,te,D,Z=(0,g.useState)({}),p=j()(Z,2),k=p[0],$=p[1],h=(0,g.useState)({}),C=j()(h,2),f=C[0],P=C[1],Q=(0,g.useState)(n.data.type),J=j()(Q,2),F=J[0],ie=J[1],se=(0,g.useRef)(),fe=(0,g.useState)((s=(b=n.data)===null||b===void 0?void 0:b.plugin)!==null&&s!==void 0?s:""),ve=j()(fe,2),Pe=ve[0],Ee=ve[1],xe=(0,g.useState)((x=n.data["plugin-opts"])===null||x===void 0?void 0:x.mode),he=j()(xe,2),ge=he[0],Ce=he[1];return(0,g.useEffect)(function(){return(0,a.request)("/api/proxy/scripts").then(function(ue){ue.data&&$(ue.data)}),function(){}},[]),(0,t.jsx)(H.Z,{title:n.data.id==0?"\u521B\u5EFA":"\u7F16\u8F91",open:!0,onCancel:n.onCancel,onOk:function(){var I;n.onFinish(se==null||(I=se.current)===null||I===void 0?void 0:I.getFieldsValue())},children:(0,t.jsxs)(R.A,{formRef:se,onValuesChange:function(I){if("type"in I&&ie(I.type),"plugin"in I){var re,ce,Fe=(re=I==null?void 0:I.plugin)!==null&&re!==void 0?re:"";Ee(Fe),(ce=se.current)===null||ce===void 0||ce.setFieldValue("plugin-opts",{}),Ce("")}if(console.log(I),"plugin-opts"in I&&"mode"in I["plugin-opts"]){var me,pe,ye=(me=(pe=I["plugin-opts"])===null||pe===void 0?void 0:pe.mode)!==null&&me!==void 0?me:"";Ce(ye)}},onFinish:n.onFinish,submitter:!1,children:[(0,t.jsxs)(R.A.Group,{title:"\u63CF\u8FF0",children:[(0,t.jsx)(S.Z,{tooltip:"\u7CFB\u7EDF\u552F\u4E00\u4E0D\u53EF\u66F4\u6539\uFF0C\u53EA\u80FD\u5220\u9664\u3002",name:"id",initialValue:n.data.id,label:"\u7FA4\u7EC4ID",hidden:!0}),(0,t.jsx)(S.Z,{name:"name",initialValue:n.data.name,label:"\u540D\u79F0",required:!0}),(0,t.jsx)(S.Z,{name:"remark",initialValue:n.data.remark,label:"\u5907\u6CE8",rules:[{message:"\u8BF7\u586B\u5199\u7FA4\u5907\u6CE8"}]})]}),(0,t.jsx)(R.A.Group,{children:(0,t.jsx)(V.Z,{tooltip:"\u5E73\u53F0\u63A5\u5165\u7CFB\u7EDF\u540E\u5C06\u81EA\u52A8\u51FA\u73B0\u5728\u5217\u8868\u4E2D\u3002",initialValue:n.data.type,valueEnum:{http:"Http",socks5:"Socks5",trojan:"Trojan",vmess:"Vmess",ss:"Shadowsocks",ssr:"ShadowSocksR",snell:"Snell"},width:"md",name:"type",label:"\u7C7B\u578B",required:!0})}),(0,t.jsxs)(e.UW,{title:"\u4EE3\u7406\u53C2\u6570",children:[(0,t.jsx)(S.Z,{name:"server",initialValue:n.data.server,label:"\u5730\u5740",required:!0}),(0,t.jsx)(c.Z,{name:"port",initialValue:n.data.port,label:"\u7AEF\u53E3",required:!0}),["http","socks5"].includes(F)&&(0,t.jsx)(S.Z,{name:"username",initialValue:n.data.username,label:"\u7528\u6237"}),["snell"].includes(F)&&(0,t.jsx)(S.Z,{name:"psk",initialValue:n.data.psk,label:"\u9884\u5171\u4EAB\u5BC6\u94A5"}),["http","ss","socks5","trojan"].includes(F)&&(0,t.jsx)(S.Z,{name:"password",initialValue:n.data.password,label:"\u5BC6\u7801"}),["vmess"].includes(F)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.Z,{name:"uuid",initialValue:n.data.uuid,label:"UUID"}),(0,t.jsx)(c.Z,{name:"alterId",initialValue:n.data.alterId,label:"AlterId"})]}),["vmess","trojan"].includes(F)&&(0,t.jsx)(l.Z,{name:"skip-cert-verify",initialValue:n.data["skip-cert-verify"],label:"\u8DF3\u8FC7\u8BC1\u4E66\u9A8C\u8BC1"}),["http","ss","vmess","socks5"].includes(F)&&(0,t.jsx)(l.Z,{name:"tls",initialValue:n.data.tls,label:"TLS"}),["vmess","trojan"].includes(F)&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(V.Z,{name:"network",initialValue:n.data.network,label:"\u4F20\u8F93\u65B9\u5F0F",width:"sm",valueEnum:Object.assign({ws:"WebSocket"},F=="vmess"?{h2:"HTTP/2"}:{http:"Http"})})}),["ss","vmess","ssr"].includes(F)&&(0,t.jsx)(V.Z,{name:"cipher",initialValue:n.data.tls?n.data.tls:"none",label:"\u52A0\u5BC6\u65B9\u5F0F",width:"md",valueEnum:F=="vmess"?{none:"none",auto:"Auto","chacha20-poly1305":"ChaCha20-Poly1305","aes-128-gcm":"AES-128-GCM"}:{"aes-128-gcm":"AES-128-GCM","aes-192-gcm":"AES-192-GCM","aes-256-gcm":"AES-256-GCM","aes-128-cfb":"AES-128-CFB","aes-192-cfb":"AES-192-CFB","aes-256-cfb":"AES-256-CFB","aes-128-ctr":"AES-128-CTR","aes-192-ctr":"AES-192-CTR","aes-256-ctr":"AES-256-CTR","rc4-md5":"RC4-MD5","chacha20-ietf":"ChaCha20-IETF",xchacha20:"XChaCha20","chacha20-ietf-poly1305":"ChaCha20-IETF-Poly1305","xchacha20-ietf-poly1305":"XChaCha20-IETF-Poly1305"}}),["ss"].includes(F)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(V.Z,{name:"plugin",initialValue:(m=n.data.plugin)!==null&&m!==void 0?m:"",label:"\u63D2\u4EF6",width:"md",valueEnum:{"":"none",obfs:"obfs","v2ray-plugin":"v2ray-plugin"}}),Pe!=""&&(0,t.jsxs)(e.UW,{title:"\u63D2\u4EF6\u53C2\u6570",children:[(0,t.jsx)(R.A.Group,{children:(0,t.jsx)(V.Z,{name:["plugin-opts","mode"],label:"\u6A21\u5F0F",width:"md",valueEnum:{"":"none",tls:"TLS",http:"Http",websocket:"Websocket"}})}),["websocket"].includes(ge)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(R.A.Group,{children:[(0,t.jsx)(l.Z,{label:"TLS",name:["plugin-opts","tls"]}),(0,t.jsx)(l.Z,{label:"\u8DF3\u8FC7\u8BC1\u4E66\u9A8C\u8BC1",name:["plugin-opts","skip-cert-verify"]})]}),(0,t.jsxs)(R.A.Group,{children:[(0,t.jsx)(l.Z,{label:"WebSocket",name:["plugin-opts","wss"]}),(0,t.jsx)(S.Z,{label:"\u4E3B\u673A(Host)",name:["plugin-opts","host"]}),(0,t.jsx)(S.Z,{label:"\u8DEF\u5F84(Path)",name:["plugin-opts","path"]}),(0,t.jsx)(l.Z,{label:"\u591A\u8DEF\u590D\u7528(Mux)",name:["plugin-opts","mux"]})]}),(0,t.jsx)(R.A.Group,{children:(0,t.jsx)(S.Z,{label:"\u81EA\u5B9A\u4E49\u8BF7\u6C42\u5934(Headers)",name:["plugin-opts","headers","custom"]})})]}),["http","tls"].includes(ge)&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(R.A.Group,{children:(0,t.jsx)(S.Z,{label:"\u4E3B\u673A(Host)",name:["plugin-opts","host"]})})})]})]})]}),(0,t.jsxs)(e.UW,{title:"\u652F\u63F4\u65B9\u5F0F",children:[(0,t.jsx)(V.Z,{initialValue:(te=n.data.rules)!==null&&te!==void 0?te:[],tooltip:"\u8F93\u5165\uFF0C\u56DE\u8F66\u6216\u70B9\u51FB\u9009\u62E9\u4EE5\u6DFB\u52A0\u6570\u636E",name:"rules",label:"\u57DF\u540D&IP",fieldProps:{mode:"multiple",showSearch:!0,onSearch:function(I){(0,a.request)("/api/proxy/rules?keyword="+I).then(function(re){re&&re.data&&P(re.data)})}},width:"lg",valueEnum:f}),(0,t.jsx)(V.Z,{initialValue:(D=n.data.plugins)!==null&&D!==void 0?D:[],name:"plugins",label:"\u811A\u672C",width:"lg",fieldProps:{mode:"multiple"},valueEnum:k})]})]})},n.data.chat_id)}var le={id:"-1",index:0,type:"",server:"",port:0,name:""},de={id:"",index:0,type:"",server:"",port:0,name:"",enable:!0}},4050:function(ae,w,r){r.d(w,{Z:function(){return V}});var E=r(96157),T=r(84875),K=r.n(T),u=r(50959),B=r(85548),j=r(78862),U=r(70458);function A(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}var z=r(49272),y=r(42498),W=r(97624),G=r(74074);const o=(e,c,l)=>{const a=A(l);return{[`${e.componentCls}-${c}`]:{color:e[`color${l}`],background:e[`color${a}Bg`],borderColor:e[`color${a}Border`]}}},O=e=>(0,y.Z)(e,(c,l)=>{let{textColor:a,lightBorderColor:i,lightColor:M,darkColor:v}=l;return{[`${e.componentCls}-${c}`]:{color:a,background:M,borderColor:i,"&-inverse":{color:e.colorTextLightSolid,background:v,borderColor:v},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),d=e=>{const{paddingXXS:c,lineWidth:l,tagPaddingHorizontal:a,componentCls:i}=e,M=a-l,v=c-l;return{[i]:Object.assign(Object.assign({},(0,z.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:M,fontSize:e.tagFontSize,lineHeight:`${e.tagLineHeight}px`,whiteSpace:"nowrap",background:e.tagDefaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.tagDefaultColor},[`${i}-close-icon`]:{marginInlineStart:v,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},["&-checkable"]:{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},["&-hidden"]:{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:M}}),[`${i}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}};var L=(0,W.Z)("Tag",e=>{const{fontSize:c,lineHeight:l,lineWidth:a,fontSizeIcon:i}=e,M=Math.round(c*l),v=e.fontSizeSM,ee=M-a*2,N=e.colorFillQuaternary,H=e.colorText,g=(0,G.TS)(e,{tagFontSize:v,tagLineHeight:ee,tagDefaultBg:N,tagDefaultColor:H,tagIconSize:i-2*a,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return[d(g),O(g),o(g,"success","Success"),o(g,"processing","Info"),o(g,"error","Error"),o(g,"warning","Warning")]}),Y=function(e,c){var l={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&c.indexOf(a)<0&&(l[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(e);i{const{prefixCls:c,className:l,checked:a,onChange:i,onClick:M}=e,v=Y(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:ee}=u.useContext(U.E_),N=X=>{i==null||i(!a),M==null||M(X)},H=ee("tag",c),[g,t]=L(H),oe=K()(H,{[`${H}-checkable`]:!0,[`${H}-checkable-checked`]:a},l,t);return g(u.createElement("span",Object.assign({},v,{className:oe,onClick:N})))},q=function(e,c){var l={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&c.indexOf(a)<0&&(l[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(e);i{const{prefixCls:l,className:a,rootClassName:i,style:M,children:v,icon:ee,color:N,onClose:H,closeIcon:g,closable:t=!1,bordered:oe=!0}=e,X=q(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:le,direction:de}=u.useContext(U.E_),[n,s]=u.useState(!0);u.useEffect(()=>{"visible"in X&&s(X.visible)},[X.visible]);const b=(0,B.o2)(N)||(0,B.yT)(N),x=Object.assign({backgroundColor:N&&!b?N:void 0},M),m=le("tag",l),[te,D]=L(m),Z=K()(m,{[`${m}-${N}`]:b,[`${m}-has-color`]:N&&!b,[`${m}-hidden`]:!n,[`${m}-rtl`]:de==="rtl",[`${m}-borderless`]:!oe},a,i,D),p=P=>{P.stopPropagation(),H==null||H(P),!P.defaultPrevented&&s(!1)},k=u.useMemo(()=>t?g?u.createElement("span",{className:`${m}-close-icon`,onClick:p},g):u.createElement(E.Z,{className:`${m}-close-icon`,onClick:p}):null,[t,g,m,p]),$=typeof X.onClick=="function"||v&&v.type==="a",h=ee||null,C=h?u.createElement(u.Fragment,null,h,u.createElement("span",null,v)):v,f=u.createElement("span",Object.assign({},X,{ref:c,className:Z,style:x}),C,k);return te($?u.createElement(j.Z,null,f):f)},S=u.forwardRef(R);S.CheckableTag=_;var V=S}}]); diff --git a/core/admin/p__Proxy__index.bd331266.async.js b/core/admin/p__Proxy__index.bd331266.async.js new file mode 100644 index 0000000..0809f3c --- /dev/null +++ b/core/admin/p__Proxy__index.bd331266.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[583],{96642:function(oe,w,r){var P=r(75782),T=r(58733),K=r(50959),u=r(72961),B=r(11527),j=["fieldProps","min","proFieldProps","max"],W=function(S,$){var G=S.fieldProps,o=S.min,O=S.proFieldProps,d=S.max,L=(0,T.Z)(S,j);return(0,B.jsx)(u.Z,(0,P.Z)({valueType:"digit",fieldProps:(0,P.Z)({min:o,max:d},G),ref:$,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:O},L))},A=K.forwardRef(W);w.Z=A},59419:function(oe,w,r){var P=r(75782),T=r(58733),K=r(18518),u=r(50959),B=r(60061),j=r(72961),W=r(11527),A=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],z=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],S=u.forwardRef(function(d,L){var Y=d.fieldProps,ne=d.children,_=d.params,q=d.proFieldProps,R=d.mode,x=d.valueEnum,V=d.request,e=d.showSearch,c=d.options,l=(0,T.Z)(d,A),n=(0,u.useContext)(B.Z);return(0,W.jsx)(j.Z,(0,P.Z)((0,P.Z)({valueEnum:(0,K.h)(x),request:V,params:_,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,P.Z)({options:c,mode:R,showSearch:e,getPopupContainer:n.getPopupContainer},Y),ref:L,proFieldProps:q},l),{},{children:ne}))}),$=u.forwardRef(function(d,L){var Y=d.fieldProps,ne=d.children,_=d.params,q=d.proFieldProps,R=d.mode,x=d.valueEnum,V=d.request,e=d.options,c=(0,T.Z)(d,z),l=(0,P.Z)({options:e,mode:R||"multiple",labelInValue:!0,showSearch:!0,showArrow:!1,autoClearSearchValue:!0,optionLabelProp:"label"},Y),n=(0,u.useContext)(B.Z);return(0,W.jsx)(j.Z,(0,P.Z)((0,P.Z)({valueEnum:(0,K.h)(x),request:V,params:_,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,P.Z)({getPopupContainer:n.getPopupContainer},l),ref:L,proFieldProps:q},c),{},{children:ne}))}),G=S,o=$,O=G;O.SearchSelect=o,O.displayName="ProFormComponent",w.Z=O},40792:function(oe,w,r){var P=r(75782),T=r(58733),K=r(50959),u=r(72961),B=r(11527),j=["fieldProps","unCheckedChildren","checkedChildren","proFieldProps"],W=K.forwardRef(function(A,z){var S=A.fieldProps,$=A.unCheckedChildren,G=A.checkedChildren,o=A.proFieldProps,O=(0,T.Z)(A,j);return(0,B.jsx)(u.Z,(0,P.Z)({valueType:"switch",fieldProps:(0,P.Z)({unCheckedChildren:$,checkedChildren:G},S),ref:z,valuePropName:"checked",proFieldProps:o,filedConfig:{valuePropName:"checked",ignoreWidth:!0}},O))});w.Z=W},66732:function(oe,w,r){var P=r(75782),T=r(58733),K=r(50959),u=r(72961),B=r(11527),j=["fieldProps","proFieldProps"],W=["fieldProps","proFieldProps"],A="text",z=function(o){var O=o.fieldProps,d=o.proFieldProps,L=(0,T.Z)(o,j);return(0,B.jsx)(u.Z,(0,P.Z)({valueType:A,fieldProps:O,filedConfig:{valueType:A},proFieldProps:d},L))},S=function(o){var O=o.fieldProps,d=o.proFieldProps,L=(0,T.Z)(o,W);return(0,B.jsx)(u.Z,(0,P.Z)({valueType:"password",fieldProps:O,proFieldProps:d,filedConfig:{valueType:A}},L))},$=z;$.Password=S,$.displayName="ProFormComponent",w.Z=$},82730:function(oe,w,r){r.r(w),r.d(w,{default:function(){return le}});var P=r(25359),T=r.n(P),K=r(49811),u=r.n(K),B=r(54306),j=r.n(B),W=r(27693),z={randomUUID:typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let S;const $=new Uint8Array(16);function G(){if(!S&&(S=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!S))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return S($)}const o=[];for(let a=0;a<256;++a)o.push((a+256).toString(16).slice(1));function O(a,s=0){return(o[a[s+0]]+o[a[s+1]]+o[a[s+2]]+o[a[s+3]]+"-"+o[a[s+4]]+o[a[s+5]]+"-"+o[a[s+6]]+o[a[s+7]]+"-"+o[a[s+8]]+o[a[s+9]]+"-"+o[a[s+10]]+o[a[s+11]]+o[a[s+12]]+o[a[s+13]]+o[a[s+14]]+o[a[s+15]]).toLowerCase()}function d(a,s=0){const b=O(a,s);if(!validate(b))throw TypeError("Stringified UUID is invalid");return b}var L=null;function Y(a,s,b){if(z.randomUUID&&!s&&!a)return z.randomUUID();a=a||{};const F=a.random||(a.rng||G)();if(F[6]=F[6]&15|64,F[8]=F[8]&63|128,s){b=b||0;for(let p=0;p<16;++p)s[b+p]=F[p];return s}return O(F)}var ne=Y,_=r(12472),q=r(19646),R=r(81308),x=r(66732),V=r(59419),e=r(24176),c=r(96642),l=r(40792),n=r(86195),i=r(4050),M=r(833),h=r(21362),ee=r(68243),N=r(26572),H=r(79112),g=r(50959),t=r(11527),le=function(){var a=(0,g.useRef)(),s=(0,g.useState)(ie),b=j()(s,2),F=b[0],p=b[1],te=[{title:"\u7F16\u53F7",dataIndex:"index",key:"index"},{title:"\u540D\u79F0",dataIndex:"name",key:"name"},{title:"\u7C7B\u578B",dataIndex:"type",key:"type",render:function(Z,m){return(0,t.jsx)(i.Z,{color:"purple",children:Z})}},{title:"\u670D\u52A1\u5668",dataIndex:"server",key:"server"},{title:"\u7AEF\u53E3",dataIndex:"port",key:"port"},{title:"\u5907\u6CE8",dataIndex:"remark",key:"remark"},{title:"\u521B\u5EFA\u65E5\u671F",dataIndex:"created_at",key:"created_at",render:function(Z,m){return(0,t.jsx)("span",{children:new Date(Z*1e3).toLocaleDateString()})}},{title:"\u542F\u7528",dataIndex:"enable",key:"enable",renderFormItem:function(){return(0,t.jsx)(M.Z,{disabled:!0,defaultChecked:!1})},render:function(Z,m){return(0,t.jsx)(M.Z,{onChange:function(U){m.enable=U;var v={};v[m.id]=m,(0,n.request)("/api/storage",{method:"put",data:v}).then(function(C){var E,y,X=!1;for(var J in C.errors)X=!0,h.ZP.warning(C.errors[J],10);var f=!0;for(var re in C.messages)f=!0,h.ZP.info(C.messages[re],10);!X&&!f&&h.ZP.success("\u63D0\u4EA4\u6210\u529F\uFF01",1),(E=a.current)===null||E===void 0||(y=E.reloadAndRest)===null||y===void 0||y.call(E)})},defaultChecked:m==null?void 0:m.enable})}},{title:"\u64CD\u4F5C",valueType:"option",width:"10%",render:function(Z,m){return[(0,t.jsx)("a",{onClick:function(){return p(m)},children:"\u7F16\u8F91"},"more"),(0,t.jsx)("a",{onClick:function(){var U={};U[m.id]="",(0,n.request)("/api/storage",{method:"put",data:U}).then(function(v){var C,E,y=!1;for(var X in v.errors)y=!0,h.ZP.warning(v.errors[X],10);var J=!0;for(var f in v.messages)J=!0,h.ZP.info(v.messages[f],10);!y&&!J&&h.ZP.success("\u63D0\u4EA4\u6210\u529F\uFF01",1),(C=a.current)===null||C===void 0||(E=C.reloadAndRest)===null||E===void 0||E.call(C)})},children:"\u5220\u9664"},"delete")]}}];return(0,t.jsxs)(_._z,{content:"\u4EE3\u7406\u5217\u8868",children:[(0,t.jsx)(ee.Z,{style:{marginBottom:10},children:(0,t.jsx)(N.ZP,{type:"primary",onClick:function(){p(de)},icon:(0,t.jsx)(W.Z,{}),children:"\u65B0\u5EFA\u4E00\u884C"})}),(0,t.jsx)(q.Z,{search:!1,actionRef:a,rowKey:function(Z){return Z.id},columns:te,request:u()(T()().mark(function D(){var Z,m=arguments;return T()().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return Z=m.length>0&&m[0]!==void 0?m[0]:{},U.abrupt("return",(0,n.request)("/api/storage?keys=proxies",{params:Z}).then(function(v){var C=[],E=0;for(var y in v.data)E++,v.data[y].id=y,v.data[y].index=E,C.push(v.data[y]);return v.data=C,v}));case 2:case"end":return U.stop()}},D)}))}),F.id!="-1"&&(0,t.jsx)(Q,{open:F.id!="-1",data:F,onCancel:function(){return p(ie)},onFinish:function(){var D=u()(T()().mark(function Z(m){var k;return T()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:k={},F.id==""&&(F.id="proxies."+ne()),m.created_at=Math.floor(Date.now()/1e3),k[F.id]=m,(0,n.request)("/api/storage",{method:"put",data:k}).then(function(C){var E=!1;for(var y in C.errors)E=!0,h.ZP.warning(C.errors[y],4);var X=!1;for(var J in C.messages)X=!0,h.ZP.info(C.messages[J],4);if(console.log(E,X),!E&&!X){var f,re;h.ZP.success("\u63D0\u4EA4\u6210\u529F\uFF01",1),p(ie),(f=a.current)===null||f===void 0||(re=f.reloadAndRest)===null||re===void 0||re.call(f)}});case 5:case"end":return v.stop()}},Z)}));return function(Z){return D.apply(this,arguments)}}()})]})};function Q(a){var s,b,F,p,te,D,Z=(0,g.useState)({}),m=j()(Z,2),k=m[0],U=m[1],v=(0,g.useState)({}),C=j()(v,2),E=C[0],y=C[1],X=(0,g.useState)(a.data.type),J=j()(X,2),f=J[0],re=J[1],se=(0,g.useRef)(),fe=(0,g.useState)((s=(b=a.data)===null||b===void 0?void 0:b.plugin)!==null&&s!==void 0?s:""),he=j()(fe,2),Pe=he[0],Ee=he[1],xe=(0,g.useState)((F=a.data["plugin-opts"])===null||F===void 0?void 0:F.mode),ve=j()(xe,2),ge=ve[0],Ce=ve[1];return(0,g.useEffect)(function(){return(0,n.request)("/api/proxy/scripts").then(function(ue){ue.data&&U(ue.data)}),function(){}},[]),(0,t.jsx)(H.Z,{title:a.data.id==0?"\u521B\u5EFA":"\u7F16\u8F91",open:!0,onCancel:a.onCancel,onOk:function(){var I;a.onFinish(se==null||(I=se.current)===null||I===void 0?void 0:I.getFieldsValue())},children:(0,t.jsxs)(R.A,{formRef:se,onValuesChange:function(I){if("type"in I&&re(I.type),"plugin"in I){var ae,ce,Fe=(ae=I==null?void 0:I.plugin)!==null&&ae!==void 0?ae:"";Ee(Fe),(ce=se.current)===null||ce===void 0||ce.setFieldValue("plugin-opts",{}),Ce("")}if(console.log(I),"plugin-opts"in I&&"mode"in I["plugin-opts"]){var me,pe,ye=(me=(pe=I["plugin-opts"])===null||pe===void 0?void 0:pe.mode)!==null&&me!==void 0?me:"";Ce(ye)}},onFinish:a.onFinish,submitter:!1,children:[(0,t.jsxs)(R.A.Group,{title:"\u63CF\u8FF0",children:[(0,t.jsx)(x.Z,{tooltip:"\u7CFB\u7EDF\u552F\u4E00\u4E0D\u53EF\u66F4\u6539\uFF0C\u53EA\u80FD\u5220\u9664\u3002",name:"id",initialValue:a.data.id,label:"\u7FA4\u7EC4ID",hidden:!0}),(0,t.jsx)(x.Z,{name:"name",initialValue:a.data.name,label:"\u540D\u79F0",required:!0}),(0,t.jsx)(x.Z,{name:"remark",initialValue:a.data.remark,label:"\u5907\u6CE8",rules:[{message:"\u8BF7\u586B\u5199\u7FA4\u5907\u6CE8"}]})]}),(0,t.jsx)(R.A.Group,{children:(0,t.jsx)(V.Z,{tooltip:"\u5E73\u53F0\u63A5\u5165\u7CFB\u7EDF\u540E\u5C06\u81EA\u52A8\u51FA\u73B0\u5728\u5217\u8868\u4E2D\u3002",initialValue:a.data.type,valueEnum:{http:"Http",socks5:"Socks5",trojan:"Trojan",vmess:"Vmess",ss:"Shadowsocks",ssr:"ShadowSocksR",snell:"Snell"},width:"md",name:"type",label:"\u7C7B\u578B",required:!0})}),(0,t.jsxs)(e.UW,{title:"\u4EE3\u7406\u53C2\u6570",children:[(0,t.jsx)(x.Z,{name:"server",initialValue:a.data.server,label:"\u5730\u5740",required:!0}),(0,t.jsx)(c.Z,{name:"port",initialValue:a.data.port,label:"\u7AEF\u53E3",required:!0}),["http","socks5"].includes(f)&&(0,t.jsx)(x.Z,{name:"username",initialValue:a.data.username,label:"\u7528\u6237"}),["snell"].includes(f)&&(0,t.jsx)(x.Z,{name:"psk",initialValue:a.data.psk,label:"\u9884\u5171\u4EAB\u5BC6\u94A5"}),["http","ss","socks5","trojan"].includes(f)&&(0,t.jsx)(x.Z,{name:"password",initialValue:a.data.password,label:"\u5BC6\u7801"}),["vmess"].includes(f)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(x.Z,{name:"uuid",initialValue:a.data.uuid,label:"UUID"}),(0,t.jsx)(c.Z,{name:"alterId",initialValue:a.data.alterId,label:"AlterId"})]}),["vmess","trojan"].includes(f)&&(0,t.jsx)(l.Z,{name:"skip-cert-verify",initialValue:a.data["skip-cert-verify"],label:"\u8DF3\u8FC7\u8BC1\u4E66\u9A8C\u8BC1"}),["http","ss","vmess","socks5"].includes(f)&&(0,t.jsx)(l.Z,{name:"tls",initialValue:a.data.tls,label:"TLS"}),["vmess","trojan"].includes(f)&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(V.Z,{name:"network",initialValue:a.data.network,label:"\u4F20\u8F93\u65B9\u5F0F",width:"sm",valueEnum:Object.assign({ws:"WebSocket"},f=="vmess"?{h2:"HTTP/2"}:{http:"Http"})})}),["ss","vmess","ssr"].includes(f)&&(0,t.jsx)(V.Z,{name:"cipher",initialValue:a.data.tls?a.data.tls:"none",label:"\u52A0\u5BC6\u65B9\u5F0F",width:"md",valueEnum:f=="vmess"?{none:"none",auto:"Auto","chacha20-poly1305":"ChaCha20-Poly1305","aes-128-gcm":"AES-128-GCM"}:{"aes-128-gcm":"AES-128-GCM","aes-192-gcm":"AES-192-GCM","aes-256-gcm":"AES-256-GCM","aes-128-cfb":"AES-128-CFB","aes-192-cfb":"AES-192-CFB","aes-256-cfb":"AES-256-CFB","aes-128-ctr":"AES-128-CTR","aes-192-ctr":"AES-192-CTR","aes-256-ctr":"AES-256-CTR","rc4-md5":"RC4-MD5","chacha20-ietf":"ChaCha20-IETF",xchacha20:"XChaCha20","chacha20-ietf-poly1305":"ChaCha20-IETF-Poly1305","xchacha20-ietf-poly1305":"XChaCha20-IETF-Poly1305"}}),["ss"].includes(f)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(V.Z,{name:"plugin",initialValue:(p=a.data.plugin)!==null&&p!==void 0?p:"",label:"\u63D2\u4EF6",width:"md",valueEnum:{"":"none",obfs:"obfs","v2ray-plugin":"v2ray-plugin"}}),Pe!=""&&(0,t.jsxs)(e.UW,{title:"\u63D2\u4EF6\u53C2\u6570",children:[(0,t.jsx)(R.A.Group,{children:(0,t.jsx)(V.Z,{name:["plugin-opts","mode"],label:"\u6A21\u5F0F",width:"md",valueEnum:{"":"none",tls:"TLS",http:"Http",websocket:"Websocket"}})}),["websocket"].includes(ge)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(R.A.Group,{children:[(0,t.jsx)(l.Z,{label:"TLS",name:["plugin-opts","tls"]}),(0,t.jsx)(l.Z,{label:"\u8DF3\u8FC7\u8BC1\u4E66\u9A8C\u8BC1",name:["plugin-opts","skip-cert-verify"]})]}),(0,t.jsxs)(R.A.Group,{children:[(0,t.jsx)(l.Z,{label:"WebSocket",name:["plugin-opts","wss"]}),(0,t.jsx)(x.Z,{label:"\u4E3B\u673A(Host)",name:["plugin-opts","host"]}),(0,t.jsx)(x.Z,{label:"\u8DEF\u5F84(Path)",name:["plugin-opts","path"]}),(0,t.jsx)(l.Z,{label:"\u591A\u8DEF\u590D\u7528(Mux)",name:["plugin-opts","mux"]})]}),(0,t.jsx)(R.A.Group,{children:(0,t.jsx)(x.Z,{label:"\u81EA\u5B9A\u4E49\u8BF7\u6C42\u5934(Headers)",name:["plugin-opts","headers","custom"]})})]}),["http","tls"].includes(ge)&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(R.A.Group,{children:(0,t.jsx)(x.Z,{label:"\u4E3B\u673A(Host)",name:["plugin-opts","host"]})})})]})]})]}),(0,t.jsxs)(e.UW,{title:"\u652F\u63F4\u65B9\u5F0F",children:[(0,t.jsx)(V.Z,{initialValue:(te=a.data.rules)!==null&&te!==void 0?te:[],tooltip:"\u8F93\u5165\uFF0C\u56DE\u8F66\u6216\u70B9\u51FB\u9009\u62E9\u4EE5\u6DFB\u52A0\u6570\u636E",name:"rules",label:"\u57DF\u540D&IP",fieldProps:{mode:"multiple",showSearch:!0,onSearch:function(I){(0,n.request)("/api/proxy/rules?keyword="+I).then(function(ae){ae&&ae.data&&y(ae.data)})}},width:"lg",valueEnum:E}),(0,t.jsx)(V.Z,{initialValue:(D=a.data.plugins)!==null&&D!==void 0?D:[],name:"plugins",label:"\u811A\u672C",width:"lg",fieldProps:{mode:"multiple"},valueEnum:k})]})]})},a.data.chat_id)}var ie={id:"-1",index:0,type:"",server:"",port:0,name:""},de={id:"",index:0,type:"",server:"",port:0,name:"",enable:!0}},4050:function(oe,w,r){r.d(w,{Z:function(){return V}});var P=r(96157),T=r(84875),K=r.n(T),u=r(50959),B=r(85548),j=r(78862),W=r(70458);function A(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}var z=r(49272),S=r(42498),$=r(97624),G=r(74074);const o=(e,c,l)=>{const n=A(l);return{[`${e.componentCls}-${c}`]:{color:e[`color${l}`],background:e[`color${n}Bg`],borderColor:e[`color${n}Border`]}}},O=e=>(0,S.Z)(e,(c,l)=>{let{textColor:n,lightBorderColor:i,lightColor:M,darkColor:h}=l;return{[`${e.componentCls}-${c}`]:{color:n,background:M,borderColor:i,"&-inverse":{color:e.colorTextLightSolid,background:h,borderColor:h},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),d=e=>{const{paddingXXS:c,lineWidth:l,tagPaddingHorizontal:n,componentCls:i}=e,M=n-l,h=c-l;return{[i]:Object.assign(Object.assign({},(0,z.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:M,fontSize:e.tagFontSize,lineHeight:`${e.tagLineHeight}px`,whiteSpace:"nowrap",background:e.tagDefaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.tagDefaultColor},[`${i}-close-icon`]:{marginInlineStart:h,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},["&-checkable"]:{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},["&-hidden"]:{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:M}}),[`${i}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}};var L=(0,$.Z)("Tag",e=>{const{fontSize:c,lineHeight:l,lineWidth:n,fontSizeIcon:i}=e,M=Math.round(c*l),h=e.fontSizeSM,ee=M-n*2,N=e.colorFillQuaternary,H=e.colorText,g=(0,G.TS)(e,{tagFontSize:h,tagLineHeight:ee,tagDefaultBg:N,tagDefaultColor:H,tagIconSize:i-2*n,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return[d(g),O(g),o(g,"success","Success"),o(g,"processing","Info"),o(g,"error","Error"),o(g,"warning","Warning")]}),Y=function(e,c){var l={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&c.indexOf(n)<0&&(l[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const{prefixCls:c,className:l,checked:n,onChange:i,onClick:M}=e,h=Y(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:ee}=u.useContext(W.E_),N=Q=>{i==null||i(!n),M==null||M(Q)},H=ee("tag",c),[g,t]=L(H),le=K()(H,{[`${H}-checkable`]:!0,[`${H}-checkable-checked`]:n},l,t);return g(u.createElement("span",Object.assign({},h,{className:le,onClick:N})))},q=function(e,c){var l={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&c.indexOf(n)<0&&(l[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const{prefixCls:l,className:n,rootClassName:i,style:M,children:h,icon:ee,color:N,onClose:H,closeIcon:g,closable:t=!1,bordered:le=!0}=e,Q=q(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:ie,direction:de}=u.useContext(W.E_),[a,s]=u.useState(!0);u.useEffect(()=>{"visible"in Q&&s(Q.visible)},[Q.visible]);const b=(0,B.o2)(N)||(0,B.yT)(N),F=Object.assign({backgroundColor:N&&!b?N:void 0},M),p=ie("tag",l),[te,D]=L(p),Z=K()(p,{[`${p}-${N}`]:b,[`${p}-has-color`]:N&&!b,[`${p}-hidden`]:!a,[`${p}-rtl`]:de==="rtl",[`${p}-borderless`]:!le},n,i,D),m=y=>{y.stopPropagation(),H==null||H(y),!y.defaultPrevented&&s(!1)},k=u.useMemo(()=>t?g?u.createElement("span",{className:`${p}-close-icon`,onClick:m},g):u.createElement(P.Z,{className:`${p}-close-icon`,onClick:m}):null,[t,g,p,m]),U=typeof Q.onClick=="function"||h&&h.type==="a",v=ee||null,C=v?u.createElement(u.Fragment,null,v,u.createElement("span",null,h)):h,E=u.createElement("span",Object.assign({},Q,{ref:c,className:Z,style:F}),C,k);return te(U?u.createElement(j.Z,null,E):E)},x=u.forwardRef(R);x.CheckableTag=_;var V=x}}]); diff --git a/core/admin/umi.37bf7c95.js b/core/admin/umi.6114f405.js similarity index 99% rename from core/admin/umi.37bf7c95.js rename to core/admin/umi.6114f405.js index 84a0199..d9e5c8d 100644 --- a/core/admin/umi.37bf7c95.js +++ b/core/admin/umi.6114f405.js @@ -287,6 +287,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(c){return n(c)||i(c)||(0,l.Z)(c)||r()}},34242:function(h,y,e){"use strict";e.d(y,{Z:function(){return i}});var o=e(82604);function n(l,r){if((0,o.Z)(l)!=="object"||l===null)return l;var f=l[Symbol.toPrimitive];if(f!==void 0){var c=f.call(l,r||"default");if((0,o.Z)(c)!=="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(l)}function i(l){var r=n(l,"string");return(0,o.Z)(r)==="symbol"?r:String(r)}},82604:function(h,y,e){"use strict";e.d(y,{Z:function(){return o}});function o(n){return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},o(n)}},7979:function(h,y,e){"use strict";e.d(y,{Z:function(){return n}});var o=e(45725);function n(i,l){if(i){if(typeof i=="string")return(0,o.Z)(i,l);var r=Object.prototype.toString.call(i).slice(8,-1);if(r==="Object"&&i.constructor&&(r=i.constructor.name),r==="Map"||r==="Set")return Array.from(i);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return(0,o.Z)(i,l)}}},8681:function(h,y,e){"use strict";e.d(y,{Z:function(){return o}});function o(n,i){(i==null||i>n.length)&&(i=n.length);for(var l=0,r=new Array(i);l=i.length?{done:!0}:{done:!1,value:i[f++]}},e:function(g){throw g},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u=!0,d=!1,m;return{s:function(){r=r.call(i)},n:function(){var g=r.next();return u=g.done,g},e:function(g){d=!0,m=g},f:function(){try{!u&&r.return!=null&&r.return()}finally{if(d)throw m}}}}},76614:function(h,y,e){"use strict";e.d(y,{Z:function(){return f}});function o(c){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(d){return d.__proto__||Object.getPrototypeOf(d)},o(c)}function n(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(c){return!1}}var i=e(26143),l=e(60790);function r(c,u){if(u&&((0,i.Z)(u)==="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(0,l.Z)(c)}function f(c){var u=n();return function(){var m=o(c),b;if(u){var g=o(this).constructor;b=Reflect.construct(m,arguments,g)}else b=m.apply(this,arguments);return r(this,b)}}},24572:function(h,y,e){"use strict";e.d(y,{Z:function(){return n}});var o=e(1536);function n(i,l,r){return l=(0,o.Z)(l),l in i?Object.defineProperty(i,l,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[l]=r,i}},51163:function(h,y,e){"use strict";e.d(y,{Z:function(){return o}});function o(){return o=Object.assign?Object.assign.bind():function(n){for(var i=1;i=0)&&(r[c]=i[c]);return r}function n(i,l){if(i==null)return{};var r=o(i,l),f,c;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(i);for(c=0;c=0)&&Object.prototype.propertyIsEnumerable.call(i,f)&&(r[f]=i[f])}return r}},99932:function(h,y,e){"use strict";e.d(y,{Z:function(){return n}});var o=e(26143);function n(){"use strict";n=function(){return i};var i={},l=Object.prototype,r=l.hasOwnProperty,f=Object.defineProperty||function(F,D,w){F[D]=w.value},c=typeof Symbol=="function"?Symbol:{},u=c.iterator||"@@iterator",d=c.asyncIterator||"@@asyncIterator",m=c.toStringTag||"@@toStringTag";function b(F,D,w){return Object.defineProperty(F,D,{value:w,enumerable:!0,configurable:!0,writable:!0}),F[D]}try{b({},"")}catch(F){b=function(w,k,U){return w[k]=U}}function g(F,D,w,k){var U=D&&D.prototype instanceof M?D:M,Z=Object.create(U.prototype),J=new ne(k||[]);return f(Z,"_invoke",{value:V(F,w,J)}),Z}function x(F,D,w){try{return{type:"normal",arg:F.call(D,w)}}catch(k){return{type:"throw",arg:k}}}i.wrap=g;var T={};function M(){}function L(){}function $(){}var O={};b(O,u,function(){return this});var N=Object.getPrototypeOf,j=N&&N(N(oe([])));j&&j!==l&&r.call(j,u)&&(O=j);var I=$.prototype=M.prototype=Object.create(O);function R(F){["next","throw","return"].forEach(function(D){b(F,D,function(w){return this._invoke(D,w)})})}function A(F,D){function w(U,Z,J,ue){var Fe=x(F[U],F,Z);if(Fe.type!=="throw"){var be=Fe.arg,we=be.value;return we&&(0,o.Z)(we)=="object"&&r.call(we,"__await")?D.resolve(we.__await).then(function(De){w("next",De,J,ue)},function(De){w("throw",De,J,ue)}):D.resolve(we).then(function(De){be.value=De,J(be)},function(De){return w("throw",De,J,ue)})}ue(Fe.arg)}var k;f(this,"_invoke",{value:function(Z,J){function ue(){return new D(function(Fe,be){w(Z,J,Fe,be)})}return k=k?k.then(ue,ue):ue()}})}function V(F,D,w){var k="suspendedStart";return function(U,Z){if(k==="executing")throw new Error("Generator is already running");if(k==="completed"){if(U==="throw")throw Z;return _()}for(w.method=U,w.arg=Z;;){var J=w.delegate;if(J){var ue=H(J,w);if(ue){if(ue===T)continue;return ue}}if(w.method==="next")w.sent=w._sent=w.arg;else if(w.method==="throw"){if(k==="suspendedStart")throw k="completed",w.arg;w.dispatchException(w.arg)}else w.method==="return"&&w.abrupt("return",w.arg);k="executing";var Fe=x(F,D,w);if(Fe.type==="normal"){if(k=w.done?"completed":"suspendedYield",Fe.arg===T)continue;return{value:Fe.arg,done:w.done}}Fe.type==="throw"&&(k="completed",w.method="throw",w.arg=Fe.arg)}}}function H(F,D){var w=D.method,k=F.iterator[w];if(k===void 0)return D.delegate=null,w==="throw"&&F.iterator.return&&(D.method="return",D.arg=void 0,H(F,D),D.method==="throw")||w!=="return"&&(D.method="throw",D.arg=new TypeError("The iterator does not provide a '"+w+"' method")),T;var U=x(k,F.iterator,D.arg);if(U.type==="throw")return D.method="throw",D.arg=U.arg,D.delegate=null,T;var Z=U.arg;return Z?Z.done?(D[F.resultName]=Z.value,D.next=F.nextLoc,D.method!=="return"&&(D.method="next",D.arg=void 0),D.delegate=null,T):Z:(D.method="throw",D.arg=new TypeError("iterator result is not an object"),D.delegate=null,T)}function G(F){var D={tryLoc:F[0]};1 in F&&(D.catchLoc=F[1]),2 in F&&(D.finallyLoc=F[2],D.afterLoc=F[3]),this.tryEntries.push(D)}function K(F){var D=F.completion||{};D.type="normal",delete D.arg,F.completion=D}function ne(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(G,this),this.reset(!0)}function oe(F){if(F){var D=F[u];if(D)return D.call(F);if(typeof F.next=="function")return F;if(!isNaN(F.length)){var w=-1,k=function U(){for(;++w=0;--U){var Z=this.tryEntries[U],J=Z.completion;if(Z.tryLoc==="root")return k("end");if(Z.tryLoc<=this.prev){var ue=r.call(Z,"catchLoc"),Fe=r.call(Z,"finallyLoc");if(ue&&Fe){if(this.prev=0;--k){var U=this.tryEntries[k];if(U.tryLoc<=this.prev&&r.call(U,"finallyLoc")&&this.prev=0;--w){var k=this.tryEntries[w];if(k.finallyLoc===D)return this.complete(k.completion,k.afterLoc),K(k),T}},catch:function(D){for(var w=this.tryEntries.length-1;w>=0;--w){var k=this.tryEntries[w];if(k.tryLoc===D){var U=k.completion;if(U.type==="throw"){var Z=U.arg;K(k)}return Z}}throw new Error("illegal catch attempt")},delegateYield:function(D,w,k){return this.delegate={iterator:oe(D),resultName:w,nextLoc:k},this.method==="next"&&(this.arg=void 0),T}},i}},91600:function(h,y,e){"use strict";e.d(y,{Z:function(){return r}});var o=e(20533);function n(f,c){var u=f==null?null:typeof Symbol!="undefined"&&f[Symbol.iterator]||f["@@iterator"];if(u!=null){var d,m,b,g,x=[],T=!0,M=!1;try{if(b=(u=u.call(f)).next,c===0){if(Object(u)!==u)return;T=!1}else for(;!(T=(d=b.call(u)).done)&&(x.push(d.value),x.length!==c);T=!0);}catch(L){M=!0,m=L}finally{try{if(!T&&u.return!=null&&(g=u.return(),Object(g)!==g))return}finally{if(M)throw m}}return x}}var i=e(22266),l=e(71885);function r(f,c){return(0,o.Z)(f)||n(f,c)||(0,i.Z)(f,c)||(0,l.Z)()}},9942:function(h,y,e){"use strict";e.d(y,{Z:function(){return r}});var o=e(20533),n=e(52987),i=e(22266),l=e(71885);function r(f){return(0,o.Z)(f)||(0,n.Z)(f)||(0,i.Z)(f)||(0,l.Z)()}},49544:function(h,y,e){"use strict";e.d(y,{Z:function(){return f}});var o=e(8681);function n(c){if(Array.isArray(c))return(0,o.Z)(c)}var i=e(52987),l=e(22266);function r(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(c){return n(c)||(0,i.Z)(c)||(0,l.Z)(c)||r()}},1536:function(h,y,e){"use strict";e.d(y,{Z:function(){return i}});var o=e(26143);function n(l,r){if((0,o.Z)(l)!=="object"||l===null)return l;var f=l[Symbol.toPrimitive];if(f!==void 0){var c=f.call(l,r||"default");if((0,o.Z)(c)!=="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(l)}function i(l){var r=n(l,"string");return(0,o.Z)(r)==="symbol"?r:String(r)}},26143:function(h,y,e){"use strict";e.d(y,{Z:function(){return o}});function o(n){return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},o(n)}},22266:function(h,y,e){"use strict";e.d(y,{Z:function(){return n}});var o=e(8681);function n(i,l){if(i){if(typeof i=="string")return(0,o.Z)(i,l);var r=Object.prototype.toString.call(i).slice(8,-1);if(r==="Object"&&i.constructor&&(r=i.constructor.name),r==="Map"||r==="Set")return Array.from(i);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return(0,o.Z)(i,l)}}},71448:function(h,y,e){"use strict";e.d(y,{Ab:function(){return l},Fr:function(){return r},G$:function(){return i},K$:function(){return d},MS:function(){return o},h5:function(){return f},lK:function(){return M},uj:function(){return n}});var o="-ms-",n="-moz-",i="-webkit-",l="comm",r="rule",f="decl",c="@page",u="@media",d="@import",m="@charset",b="@viewport",g="@supports",x="@document",T="@namespace",M="@keyframes",L="@font-face",$="@counter-style",O="@font-feature-values"},42727:function(h,y,e){"use strict";e.d(y,{MY:function(){return l}});var o=e(71448),n=e(22697),i=e(97765);function l(d){return(0,i.cE)(r("",null,null,null,[""],d=(0,i.un)(d),0,[0],d))}function r(d,m,b,g,x,T,M,L,$){for(var O=0,N=0,j=M,I=0,R=0,A=0,V=1,H=1,G=1,K=0,ne="",oe=x,_=T,F=g,D=ne;H;)switch(A=K,K=(0,i.lp)()){case 40:if(A!=108&&(0,n.uO)(D,j-1)==58){(0,n.Cw)(D+=(0,n.gx)((0,i.iF)(K),"&","&\f"),"&\f")!=-1&&(G=-1);break}case 34:case 39:case 91:D+=(0,i.iF)(K);break;case 9:case 10:case 13:case 32:D+=(0,i.Qb)(A);break;case 92:D+=(0,i.kq)((0,i.Ud)()-1,7);continue;case 47:switch((0,i.fj)()){case 42:case 47:(0,n.R3)(c((0,i.q6)((0,i.lp)(),(0,i.Ud)()),m,b),$);break;default:D+="/"}break;case 123*V:L[O++]=(0,n.to)(D)*G;case 125*V:case 59:case 0:switch(K){case 0:case 125:H=0;case 59+N:R>0&&(0,n.to)(D)-j&&(0,n.R3)(R>32?u(D+";",g,b,j-1):u((0,n.gx)(D," ","")+";",g,b,j-2),$);break;case 59:D+=";";default:if((0,n.R3)(F=f(D,m,b,O,N,x,L,ne,oe=[],_=[],j),T),K===123)if(N===0)r(D,m,F,F,oe,T,j,L,_);else switch(I===99&&(0,n.uO)(D,3)===110?100:I){case 100:case 109:case 115:r(d,F,F,g&&(0,n.R3)(f(d,F,F,0,0,x,L,ne,x,oe=[],j),_),x,_,j,L,g?oe:_);break;default:r(D,F,F,F,[""],_,0,L,_)}}O=N=R=0,V=G=1,ne=D="",j=M;break;case 58:j=1+(0,n.to)(D),R=A;default:if(V<1){if(K==123)--V;else if(K==125&&V++==0&&(0,i.mp)()==125)continue}switch(D+=(0,n.Dp)(K),K*V){case 38:G=N>0?1:(D+="\f",-1);break;case 44:L[O++]=((0,n.to)(D)-1)*G,G=1;break;case 64:(0,i.fj)()===45&&(D+=(0,i.iF)((0,i.lp)())),I=(0,i.fj)(),N=j=(0,n.to)(ne=D+=(0,i.QU)((0,i.Ud)())),K++;break;case 45:A===45&&(0,n.to)(D)==2&&(V=0)}}return T}function f(d,m,b,g,x,T,M,L,$,O,N){for(var j=x-1,I=x===0?T:[""],R=(0,n.Ei)(I),A=0,V=0,H=0;A0?I[G]+" "+K:(0,n.gx)(K,/&\f/g,I[G])))&&($[H++]=ne);return(0,i.dH)(d,m,b,x===0?o.Fr:L,$,O,N)}function c(d,m,b){return(0,i.dH)(d,m,b,o.Ab,(0,n.Dp)((0,i.Tb)()),(0,n.tb)(d,2,-2),0)}function u(d,m,b,g){return(0,i.dH)(d,m,b,o.h5,(0,n.tb)(d,0,g),(0,n.tb)(d,g+1,-1),g)}},90137:function(h,y,e){"use strict";e.d(y,{P:function(){return l},q:function(){return i}});var o=e(71448),n=e(22697);function i(r,f){for(var c="",u=(0,n.Ei)(r),d=0;d0?(0,o.uO)(c,--r):0,i--,f===10&&(i=1,n--),f}function g(){return f=r2||L(f)>3?"":" "}function R(K){for(;g();)switch(L(f)){case 0:append(G(r-1),K);break;case 2:append(N(f),K);break;default:append(from(f),K)}return K}function A(K,ne){for(;--ne&&g()&&!(f<48||f>102||f>57&&f<65||f>70&&f<97););return M(K,T()+(ne<6&&x()==32&&g()==32))}function V(K){for(;g();)switch(f){case K:return r;case 34:case 39:K!==34&&K!==39&&V(f);break;case 40:K===41&&V(K);break;case 92:g();break}return r}function H(K,ne){for(;g()&&K+f!==57;)if(K+f===84&&x()===47)break;return"/*"+M(ne,r-1)+"*"+(0,o.Dp)(K===47?K:g())}function G(K){for(;!L(x());)g();return M(K,r)}},22697:function(h,y,e){"use strict";e.d(y,{$e:function(){return T},Cw:function(){return u},Dp:function(){return n},EQ:function(){return f},Ei:function(){return g},R3:function(){return x},Wn:function(){return o},f0:function(){return i},fy:function(){return r},gx:function(){return c},tb:function(){return m},to:function(){return b},uO:function(){return d},vp:function(){return l}});var o=Math.abs,n=String.fromCharCode,i=Object.assign;function l(M,L){return d(M,0)^45?(((L<<2^d(M,0))<<2^d(M,1))<<2^d(M,2))<<2^d(M,3):0}function r(M){return M.trim()}function f(M,L){return(M=L.exec(M))?M[0]:M}function c(M,L,$){return M.replace(L,$)}function u(M,L){return M.indexOf(L)}function d(M,L){return M.charCodeAt(L)|0}function m(M,L,$){return M.slice(L,$)}function b(M){return M.length}function g(M){return M.length}function x(M,L){return L.push(M),M}function T(M,L){return M.map(L).join("")}},94083:function(h,y,e){"use strict";e.d(y,{J$:function(){return Je},ZP:function(){return _e},kY:function(){return Q}});var o=e(50959),n=e(4322);const i=new WeakMap,l={},r={},f=()=>{},c=f(),u=Object,d=Ze=>Ze===c,m=Ze=>typeof Ze=="function",b=(Ze,vt)=>Kp(Kp({},Ze),vt),g="undefined",x=typeof window!=g,T=typeof document!=g,M=()=>x&&typeof window.requestAnimationFrame!=g,L=(Ze,vt)=>{const wt=i.get(Ze);return[()=>Ze.get(vt)||l,me=>{if(!d(vt)){const We=Ze.get(vt);vt in r||(r[vt]=We),wt[5](vt,b(We,me),We||l)}},wt[6],()=>!d(vt)&&vt in r?r[vt]:Ze.get(vt)||l]},$=new WeakMap;let O=0;const N=Ze=>{const vt=typeof Ze,wt=Ze&&Ze.constructor,me=wt==Date;let We,Ke;if(u(Ze)===Ze&&!me&&wt!=RegExp){if(We=$.get(Ze),We)return We;if(We=++O+"~",$.set(Ze,We),wt==Array){for(We="@",Ke=0;Kej,[R,A]=x&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[f,f],V=()=>{const Ze=T&&document.visibilityState;return d(Ze)||Ze!=="hidden"},H=Ze=>(T&&document.addEventListener("visibilitychange",Ze),R("focus",Ze),()=>{T&&document.removeEventListener("visibilitychange",Ze),A("focus",Ze)}),G=Ze=>{const vt=()=>{j=!0,Ze()},wt=()=>{j=!1};return R("online",vt),R("offline",wt),()=>{A("online",vt),A("offline",wt)}},K={isOnline:I,isVisible:V},ne={initFocus:H,initReconnect:G},oe=!o.useId,_=!x||"Deno"in window,F=Ze=>M()?window.requestAnimationFrame(Ze):setTimeout(Ze,1),D=_?o.useEffect:o.useLayoutEffect,w=typeof navigator!="undefined"&&navigator.connection,k=!_&&w&&(["slow-2g","2g"].includes(w.effectiveType)||w.saveData),U=Ze=>{if(m(Ze))try{Ze=Ze()}catch(wt){Ze=""}const vt=Ze;return Ze=typeof Ze=="string"?Ze:(Array.isArray(Ze)?Ze.length:Ze)?N(Ze):"",[Ze,vt]};let Z=0;const J=()=>++Z,ue=0,Fe=1,be=2;var we={__proto__:null,FOCUS_EVENT:ue,RECONNECT_EVENT:Fe,MUTATE_EVENT:be};function De(...Ze){return Dv(this,null,function*(){const[vt,wt,me,We]=Ze,Ke=b({populateCache:!0,throwOnError:!0},typeof We=="boolean"?{revalidate:We}:We||{});let mt=Ke.populateCache;const Ot=Ke.rollbackOnError;let Ut=Ke.optimisticData;const cn=Ke.revalidate!==!1,Ne=nt=>typeof Ot=="function"?Ot(nt):Ot!==!1,Me=Ke.throwOnError;if(m(wt)){const nt=wt,Mt=[],Lt=vt.keys();for(let Ct=Lt.next();!Ct.done;Ct=Lt.next()){const fn=Ct.value;!fn.startsWith("$inf$")&&nt(vt.get(fn)._k)&&Mt.push(fn)}return Promise.all(Mt.map(at))}return at(wt);function at(nt){return Dv(this,null,function*(){const[Mt]=U(nt);if(!Mt)return;const[Lt,Ct]=L(vt,Mt),[fn,zn,Mn]=i.get(vt),Tn=fn[Mt],or=()=>cn&&(delete Mn[Mt],Tn&&Tn[0])?Tn[0](be).then(()=>Lt().data):Lt().data;if(Ze.length<3)return or();let Qn=me,In;const Dn=J();zn[Mt]=[Dn,0];const $t=!d(Ut),kt=Lt(),jt=kt.data,Jt=kt._c,pn=d(Jt)?jt:Jt;if($t&&(Ut=m(Ut)?Ut(pn):Ut,Ct({data:Ut,_c:pn})),m(Qn))try{Qn=Qn(pn)}catch(bn){In=bn}if(Qn&&m(Qn.then))if(Qn=yield Qn.catch(bn=>{In=bn}),Dn!==zn[Mt][0]){if(In)throw In;return Qn}else In&&$t&&Ne(In)&&(mt=!0,Qn=pn,Ct({data:Qn,_c:c}));mt&&(In||(m(mt)&&(Qn=mt(Qn,pn)),Ct({data:Qn,_c:c}))),zn[Mt][1]=J();const Fn=yield or();if(Ct({_c:c}),In){if(Me)throw In;return}return mt?Fn:Qn})}})}const He=(Ze,vt)=>{for(const wt in Ze)Ze[wt][0]&&Ze[wt][0](vt)},Ve=(Ze,vt)=>{if(!i.has(Ze)){const wt=b(ne,vt),me={},We=De.bind(c,Ze);let Ke=f;const mt={},Ot=(Ne,Me)=>{const at=mt[Ne]||[];return mt[Ne]=at,at.push(Me),()=>at.splice(at.indexOf(Me),1)},Ut=(Ne,Me,at)=>{Ze.set(Ne,Me);const nt=mt[Ne];if(nt)for(let Mt=nt.length;Mt--;)nt[Mt](Me,at)},cn=()=>{if(!i.has(Ze)&&(i.set(Ze,[me,{},{},{},We,Ut,Ot]),!_)){const Ne=wt.initFocus(setTimeout.bind(c,He.bind(c,me,ue))),Me=wt.initReconnect(setTimeout.bind(c,He.bind(c,me,Fe)));Ke=()=>{Ne&&Ne(),Me&&Me(),i.delete(Ze)}}};return cn(),[Ze,We,cn,Ke]}return[Ze,i.get(Ze)[4]]},Ie=(Ze,vt,wt,me,We)=>{const Ke=wt.errorRetryCount,mt=We.retryCount,Ot=~~((Math.random()+.5)*(1<<(mt<8?mt:8)))*wt.errorRetryInterval;!d(Ke)&&mt>Ke||setTimeout(me,Ot,We)},Le=(Ze,vt)=>N(Ze)==N(vt),[dt,St]=Ve(new Map),ht=b({onLoadingSlow:f,onSuccess:f,onError:f,onErrorRetry:Ie,onDiscarded:f,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:k?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:k?5e3:3e3,compare:Le,isPaused:()=>!1,cache:dt,mutate:St,fallback:{}},K),pt=(Ze,vt)=>{const wt=b(Ze,vt);if(vt){const{use:me,fallback:We}=Ze,{use:Ke,fallback:mt}=vt;me&&Ke&&(wt.use=me.concat(Ke)),We&&mt&&(wt.fallback=b(We,mt))}return wt},Rt=(0,o.createContext)({}),q=Ze=>{const{value:vt}=Ze,wt=(0,o.useContext)(Rt),me=m(vt),We=(0,o.useMemo)(()=>me?vt(wt):vt,[me,wt,vt]),Ke=(0,o.useMemo)(()=>me?We:pt(wt,We),[me,wt,We]),mt=We&&We.provider,[Ot]=(0,o.useState)(()=>mt?Ve(mt(Ke.cache||dt),We):c);return Ot&&(Ke.cache=Ot[0],Ke.mutate=Ot[1]),D(()=>{if(Ot)return Ot[2]&&Ot[2](),Ot[3]},[]),(0,o.createElement)(Rt.Provider,b(Ze,{value:Ke}))},B=x&&window.__SWR_DEVTOOLS_USE__,S=B?window.__SWR_DEVTOOLS_USE__:[],C=()=>{B&&(window.__SWR_DEVTOOLS_REACT__=o)},Y=Ze=>m(Ze[1])?[Ze[0],Ze[1],Ze[2]||{}]:[Ze[0],null,(Ze[1]===null?Ze[2]:Ze[1])||{}],Q=()=>b(ht,(0,o.useContext)(Rt)),se=(Ze,vt)=>{const wt=U(Ze)[0],[,,,me]=i.get(dt);if(me[wt])return me[wt];const We=vt(Ze);return me[wt]=We,We},ye=Ze=>(vt,wt,me)=>Ze(vt,wt&&((...Ke)=>{const mt=U(vt)[0],[,,,Ot]=i.get(dt),Ut=Ot[mt];return Ut?(delete Ot[mt],Ut):wt(...Ke)}),me),re=S.concat(ye),he=Ze=>function(...wt){const me=Q(),[We,Ke,mt]=Y(wt),Ot=pt(me,mt);let Ut=Ze;const{use:cn}=Ot,Ne=(cn||[]).concat(re);for(let Me=Ne.length;Me--;)Ut=Ne[Me](Ut);return Ut(We,Ke||Ot.fetcher||null,Ot)},ot=Ze=>{const vt=useState({})[1],wt=useRef(!1),me=useRef(Ze),We=useRef({data:!1,error:!1,isValidating:!1}),Ke=useCallback(mt=>{let Ot=!1;const Ut=me.current;for(const cn in mt){const Ne=cn;Ut[Ne]!==mt[Ne]&&(Ut[Ne]=mt[Ne],We.current[Ne]&&(Ot=!0))}Ot&&!wt.current&&(oe?vt({}):React.startTransition(()=>vt({})))},[]);return D(()=>(wt.current=!1,()=>{wt.current=!0})),[me,We.current,Ke]},Ue=(Ze,vt,wt)=>{const me=vt[Ze]||(vt[Ze]=[]);return me.push(wt),()=>{const We=me.indexOf(wt);We>=0&&(me[We]=me[me.length-1],me.pop())}},Se=(Ze,vt)=>(...wt)=>{const[me,We,Ke]=Y(wt),mt=(Ke.use||[]).concat(vt);return Ze(me,We,KC(Kp({},Ke),{use:mt}))};C();const tt={dedupe:!0},yt=(Ze,vt,wt)=>{const{cache:me,compare:We,suspense:Ke,fallbackData:mt,revalidateOnMount:Ot,revalidateIfStale:Ut,refreshInterval:cn,refreshWhenHidden:Ne,refreshWhenOffline:Me,keepPreviousData:at}=wt,[nt,Mt,Lt]=i.get(me),[Ct,fn]=U(Ze),zn=(0,o.useRef)(!1),Mn=(0,o.useRef)(!1),Tn=(0,o.useRef)(Ct),or=(0,o.useRef)(vt),Qn=(0,o.useRef)(wt),In=()=>Qn.current,Dn=()=>In().isVisible()&&In().isOnline(),[$t,kt,jt,Jt]=L(me,Ct),pn=(0,o.useRef)({}).current,Fn=d(mt)?wt.fallback[Ct]:mt,bn=(_n,tr)=>{let Tr=!0;for(const Ir in pn){const Sr=Ir;Sr==="data"?We(tr[Sr],_n[Sr])||d(_n[Sr])&&We(tr[Sr],er)||(Tr=!1):tr[Sr]!==_n[Sr]&&(Tr=!1)}return Tr},Zn=(0,o.useMemo)(()=>{const _n=(()=>!Ct||!vt?!1:d(Ot)?In().isPaused()||Ke?!1:d(Ut)?!0:Ut:Ot)(),tr=Sr=>{const rt=b(Sr);return delete rt._k,_n?Kp({isValidating:!0,isLoading:!0},rt):rt};let Tr=tr($t());const Ir=tr(Jt());return[()=>{const Sr=tr($t());return bn(Sr,Tr)?Tr:Tr=Sr},()=>Ir]},[me,Ct]),Jn=(0,n.useSyncExternalStore)((0,o.useCallback)(_n=>jt(Ct,(tr,Tr)=>{bn(Tr,tr)||_n()}),[me,Ct]),Zn[0],Zn[1]),sr=!zn.current,br=nt[Ct]&&nt[Ct].length>0,Or=Jn.data,ur=d(Or)?Fn:Or,cr=Jn.error,Pr=(0,o.useRef)(ur),er=at?d(Or)?Pr.current:Or:ur,Sa=(()=>br&&!d(cr)?!1:sr&&!d(Ot)?Ot:In().isPaused()?!1:Ke?d(ur)?!1:Ut:d(ur)||Ut)(),ya=!!(Ct&&vt&&sr&&Sa),Pa=d(Jn.isValidating)?ya:Jn.isValidating,$a=d(Jn.isLoading)?ya:Jn.isLoading,fa=(0,o.useCallback)(_n=>Dv(this,null,function*(){const tr=or.current;if(!Ct||!tr||Mn.current||In().isPaused())return!1;let Tr,Ir,Sr=!0;const rt=_n||{},Xe=!Lt[Ct]||!rt.dedupe,ut=()=>oe?!Mn.current&&Ct===Tn.current&&zn.current:Ct===Tn.current,st={isValidating:!1,isLoading:!1},It=()=>{kt(st)},Ye=()=>{const le=Lt[Ct];le&&le[1]===Ir&&delete Lt[Ct]},ve={isValidating:!0};d($t().data)&&(ve.isLoading=!0);try{if(Xe&&(kt(ve),wt.loadingTimeout&&d($t().data)&&setTimeout(()=>{Sr&&ut()&&In().onLoadingSlow(Ct,wt)},wt.loadingTimeout),Lt[Ct]=[tr(fn),J()]),[Tr,Ir]=Lt[Ct],Tr=yield Tr,Xe&&setTimeout(Ye,wt.dedupingInterval),!Lt[Ct]||Lt[Ct][1]!==Ir)return Xe&&ut()&&In().onDiscarded(Ct),!1;st.error=c;const le=Mt[Ct];if(!d(le)&&(Ir<=le[0]||Ir<=le[1]||le[1]===0))return It(),Xe&&ut()&&In().onDiscarded(Ct),!1;const Ee=$t().data;st.data=We(Ee,Tr)?Ee:Tr,Xe&&ut()&&In().onSuccess(Tr,Ct,wt)}catch(le){Ye();const Ee=In(),{shouldRetryOnError:de}=Ee;Ee.isPaused()||(st.error=le,Xe&&ut()&&(Ee.onError(le,Ct,Ee),(de===!0||m(de)&&de(le))&&Dn()&&Ee.onErrorRetry(le,Ct,Ee,fa,{retryCount:(rt.retryCount||0)+1,dedupe:!0})))}return Sr=!1,It(),!0}),[Ct,me]),nr=(0,o.useCallback)((..._n)=>De(me,Tn.current,..._n),[]);if(D(()=>{or.current=vt,Qn.current=wt,d(Or)||(Pr.current=Or)}),D(()=>{if(!Ct)return;const _n=fa.bind(c,tt);let tr=0;const Ir=Ue(Ct,nt,Sr=>{if(Sr==we.FOCUS_EVENT){const rt=Date.now();In().revalidateOnFocus&&rt>tr&&Dn()&&(tr=rt+In().focusThrottleInterval,_n())}else if(Sr==we.RECONNECT_EVENT)In().revalidateOnReconnect&&Dn()&&_n();else if(Sr==we.MUTATE_EVENT)return fa()});return Mn.current=!1,Tn.current=Ct,zn.current=!0,kt({_k:fn}),Sa&&(d(ur)||_?_n():F(_n)),()=>{Mn.current=!0,Ir()}},[Ct]),D(()=>{let _n;function tr(){const Ir=m(cn)?cn(ur):cn;Ir&&_n!==-1&&(_n=setTimeout(Tr,Ir))}function Tr(){!$t().error&&(Ne||In().isVisible())&&(Me||In().isOnline())?fa(tt).then(tr):tr()}return tr(),()=>{_n&&(clearTimeout(_n),_n=-1)}},[cn,Ne,Me,Ct]),(0,o.useDebugValue)(er),Ke&&d(ur)&&Ct)throw!oe&&_?new Error("Fallback data is required when using suspense in SSR."):(or.current=vt,Qn.current=wt,Mn.current=!1,d(cr)?fa(tt):cr);return{mutate:nr,get data(){return pn.data=!0,er},get error(){return pn.error=!0,cr},get isValidating(){return pn.isValidating=!0,Pa},get isLoading(){return pn.isLoading=!0,$a}}},Je=u.defineProperty(q,"defaultValue",{value:ht}),Nt=Ze=>serialize(Ze)[0];var _e=he(yt)}},Ls={};function fe(h){var y=Ls[h];if(y!==void 0)return y.exports;var e=Ls[h]={id:h,loaded:!1,exports:{}};return yl[h].call(e.exports,e,e.exports,fe),e.loaded=!0,e.exports}fe.m=yl,function(){fe.n=function(h){var y=h&&h.__esModule?function(){return h.default}:function(){return h};return fe.d(y,{a:y}),y}}(),function(){var h=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},y;fe.t=function(e,o){if(o&1&&(e=this(e)),o&8||typeof e=="object"&&e&&(o&4&&e.__esModule||o&16&&typeof e.then=="function"))return e;var n=Object.create(null);fe.r(n);var i={};y=y||[null,h({}),h([]),h(h)];for(var l=o&2&&e;typeof l=="object"&&!~y.indexOf(l);l=h(l))Object.getOwnPropertyNames(l).forEach(function(r){i[r]=function(){return e[r]}});return i.default=function(){return e},fe.d(n,i),n}}(),function(){fe.d=function(h,y){for(var e in y)fe.o(y,e)&&!fe.o(h,e)&&Object.defineProperty(h,e,{enumerable:!0,get:y[e]})}}(),function(){fe.f={},fe.e=function(h){return Promise.all(Object.keys(fe.f).reduce(function(y,e){return fe.f[e](h,y),y},[]))}}(),function(){fe.u=function(h){return""+({81:"p__Message__Noreply__index",96:"p__Plugin__Share__index",145:"p__Plugin__Subscribe__index",185:"p__Welcome",274:"p__Carry__index",294:"p__Basic__index",301:"t__plugin-layout__Layout",354:"p__Storage__index",366:"p__User__Login__index",398:"p__Script__index",402:"p__Reply__index",430:"p__Master__index",538:"p__Message__Private__index",571:"p__404",583:"p__Proxy__index",737:"p__Plugin__Publish__index",929:"p__Secret__Fenyong__index",966:"p__Message__Listen__index"}[h]||h)+"."+{54:"698cd806",81:"7e4d6d65",96:"47d4de2f",118:"99dbea07",145:"122c4cdc",164:"c823ecee",185:"31f51469",273:"3dfaac85",274:"4274a36e",294:"9e867cce",301:"f972cb61",315:"ca5fa681",354:"53f68d94",361:"a6a74763",366:"a85e5196",398:"5a05d19e",402:"a17ebe51",430:"bf2b2645",454:"045543df",472:"ccfb3d48",538:"31d914cd",571:"7e3f819c",583:"414b0326",630:"42a3526e",646:"abeba3c8",650:"6dec3238",737:"3ba2cf00",845:"273402fd",852:"e34fba04",929:"809c357f",964:"43acb396",966:"c2e6f837",989:"2d9cc9ce"}[h]+".async.js"}}(),function(){fe.miniCssF=function(h){return"t__plugin-layout__Layout.74b4118c.chunk.css"}}(),function(){fe.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(h){if(typeof window=="object")return window}}()}(),function(){fe.o=function(h,y){return Object.prototype.hasOwnProperty.call(h,y)}}(),function(){var h={},y="ant-design-pro:";fe.l=function(e,o,n,i){if(h[e]){h[e].push(o);return}var l,r;if(n!==void 0)for(var f=document.getElementsByTagName("script"),c=0;c0&&(0,n.to)(D)-j&&(0,n.R3)(R>32?u(D+";",g,b,j-1):u((0,n.gx)(D," ","")+";",g,b,j-2),$);break;case 59:D+=";";default:if((0,n.R3)(F=f(D,m,b,O,N,x,L,ne,oe=[],_=[],j),T),K===123)if(N===0)r(D,m,F,F,oe,T,j,L,_);else switch(I===99&&(0,n.uO)(D,3)===110?100:I){case 100:case 109:case 115:r(d,F,F,g&&(0,n.R3)(f(d,F,F,0,0,x,L,ne,x,oe=[],j),_),x,_,j,L,g?oe:_);break;default:r(D,F,F,F,[""],_,0,L,_)}}O=N=R=0,V=G=1,ne=D="",j=M;break;case 58:j=1+(0,n.to)(D),R=A;default:if(V<1){if(K==123)--V;else if(K==125&&V++==0&&(0,i.mp)()==125)continue}switch(D+=(0,n.Dp)(K),K*V){case 38:G=N>0?1:(D+="\f",-1);break;case 44:L[O++]=((0,n.to)(D)-1)*G,G=1;break;case 64:(0,i.fj)()===45&&(D+=(0,i.iF)((0,i.lp)())),I=(0,i.fj)(),N=j=(0,n.to)(ne=D+=(0,i.QU)((0,i.Ud)())),K++;break;case 45:A===45&&(0,n.to)(D)==2&&(V=0)}}return T}function f(d,m,b,g,x,T,M,L,$,O,N){for(var j=x-1,I=x===0?T:[""],R=(0,n.Ei)(I),A=0,V=0,H=0;A0?I[G]+" "+K:(0,n.gx)(K,/&\f/g,I[G])))&&($[H++]=ne);return(0,i.dH)(d,m,b,x===0?o.Fr:L,$,O,N)}function c(d,m,b){return(0,i.dH)(d,m,b,o.Ab,(0,n.Dp)((0,i.Tb)()),(0,n.tb)(d,2,-2),0)}function u(d,m,b,g){return(0,i.dH)(d,m,b,o.h5,(0,n.tb)(d,0,g),(0,n.tb)(d,g+1,-1),g)}},90137:function(h,y,e){"use strict";e.d(y,{P:function(){return l},q:function(){return i}});var o=e(71448),n=e(22697);function i(r,f){for(var c="",u=(0,n.Ei)(r),d=0;d0?(0,o.uO)(c,--r):0,i--,f===10&&(i=1,n--),f}function g(){return f=r2||L(f)>3?"":" "}function R(K){for(;g();)switch(L(f)){case 0:append(G(r-1),K);break;case 2:append(N(f),K);break;default:append(from(f),K)}return K}function A(K,ne){for(;--ne&&g()&&!(f<48||f>102||f>57&&f<65||f>70&&f<97););return M(K,T()+(ne<6&&x()==32&&g()==32))}function V(K){for(;g();)switch(f){case K:return r;case 34:case 39:K!==34&&K!==39&&V(f);break;case 40:K===41&&V(K);break;case 92:g();break}return r}function H(K,ne){for(;g()&&K+f!==57;)if(K+f===84&&x()===47)break;return"/*"+M(ne,r-1)+"*"+(0,o.Dp)(K===47?K:g())}function G(K){for(;!L(x());)g();return M(K,r)}},22697:function(h,y,e){"use strict";e.d(y,{$e:function(){return T},Cw:function(){return u},Dp:function(){return n},EQ:function(){return f},Ei:function(){return g},R3:function(){return x},Wn:function(){return o},f0:function(){return i},fy:function(){return r},gx:function(){return c},tb:function(){return m},to:function(){return b},uO:function(){return d},vp:function(){return l}});var o=Math.abs,n=String.fromCharCode,i=Object.assign;function l(M,L){return d(M,0)^45?(((L<<2^d(M,0))<<2^d(M,1))<<2^d(M,2))<<2^d(M,3):0}function r(M){return M.trim()}function f(M,L){return(M=L.exec(M))?M[0]:M}function c(M,L,$){return M.replace(L,$)}function u(M,L){return M.indexOf(L)}function d(M,L){return M.charCodeAt(L)|0}function m(M,L,$){return M.slice(L,$)}function b(M){return M.length}function g(M){return M.length}function x(M,L){return L.push(M),M}function T(M,L){return M.map(L).join("")}},94083:function(h,y,e){"use strict";e.d(y,{J$:function(){return Je},ZP:function(){return _e},kY:function(){return Q}});var o=e(50959),n=e(4322);const i=new WeakMap,l={},r={},f=()=>{},c=f(),u=Object,d=Ze=>Ze===c,m=Ze=>typeof Ze=="function",b=(Ze,vt)=>Kp(Kp({},Ze),vt),g="undefined",x=typeof window!=g,T=typeof document!=g,M=()=>x&&typeof window.requestAnimationFrame!=g,L=(Ze,vt)=>{const wt=i.get(Ze);return[()=>Ze.get(vt)||l,me=>{if(!d(vt)){const We=Ze.get(vt);vt in r||(r[vt]=We),wt[5](vt,b(We,me),We||l)}},wt[6],()=>!d(vt)&&vt in r?r[vt]:Ze.get(vt)||l]},$=new WeakMap;let O=0;const N=Ze=>{const vt=typeof Ze,wt=Ze&&Ze.constructor,me=wt==Date;let We,Ke;if(u(Ze)===Ze&&!me&&wt!=RegExp){if(We=$.get(Ze),We)return We;if(We=++O+"~",$.set(Ze,We),wt==Array){for(We="@",Ke=0;Kej,[R,A]=x&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[f,f],V=()=>{const Ze=T&&document.visibilityState;return d(Ze)||Ze!=="hidden"},H=Ze=>(T&&document.addEventListener("visibilitychange",Ze),R("focus",Ze),()=>{T&&document.removeEventListener("visibilitychange",Ze),A("focus",Ze)}),G=Ze=>{const vt=()=>{j=!0,Ze()},wt=()=>{j=!1};return R("online",vt),R("offline",wt),()=>{A("online",vt),A("offline",wt)}},K={isOnline:I,isVisible:V},ne={initFocus:H,initReconnect:G},oe=!o.useId,_=!x||"Deno"in window,F=Ze=>M()?window.requestAnimationFrame(Ze):setTimeout(Ze,1),D=_?o.useEffect:o.useLayoutEffect,w=typeof navigator!="undefined"&&navigator.connection,k=!_&&w&&(["slow-2g","2g"].includes(w.effectiveType)||w.saveData),U=Ze=>{if(m(Ze))try{Ze=Ze()}catch(wt){Ze=""}const vt=Ze;return Ze=typeof Ze=="string"?Ze:(Array.isArray(Ze)?Ze.length:Ze)?N(Ze):"",[Ze,vt]};let Z=0;const J=()=>++Z,ue=0,Fe=1,be=2;var we={__proto__:null,FOCUS_EVENT:ue,RECONNECT_EVENT:Fe,MUTATE_EVENT:be};function De(...Ze){return Dv(this,null,function*(){const[vt,wt,me,We]=Ze,Ke=b({populateCache:!0,throwOnError:!0},typeof We=="boolean"?{revalidate:We}:We||{});let mt=Ke.populateCache;const Ot=Ke.rollbackOnError;let Ut=Ke.optimisticData;const cn=Ke.revalidate!==!1,Ne=nt=>typeof Ot=="function"?Ot(nt):Ot!==!1,Me=Ke.throwOnError;if(m(wt)){const nt=wt,Mt=[],Lt=vt.keys();for(let Ct=Lt.next();!Ct.done;Ct=Lt.next()){const fn=Ct.value;!fn.startsWith("$inf$")&&nt(vt.get(fn)._k)&&Mt.push(fn)}return Promise.all(Mt.map(at))}return at(wt);function at(nt){return Dv(this,null,function*(){const[Mt]=U(nt);if(!Mt)return;const[Lt,Ct]=L(vt,Mt),[fn,zn,Mn]=i.get(vt),Tn=fn[Mt],or=()=>cn&&(delete Mn[Mt],Tn&&Tn[0])?Tn[0](be).then(()=>Lt().data):Lt().data;if(Ze.length<3)return or();let Qn=me,In;const Dn=J();zn[Mt]=[Dn,0];const $t=!d(Ut),kt=Lt(),jt=kt.data,Jt=kt._c,pn=d(Jt)?jt:Jt;if($t&&(Ut=m(Ut)?Ut(pn):Ut,Ct({data:Ut,_c:pn})),m(Qn))try{Qn=Qn(pn)}catch(bn){In=bn}if(Qn&&m(Qn.then))if(Qn=yield Qn.catch(bn=>{In=bn}),Dn!==zn[Mt][0]){if(In)throw In;return Qn}else In&&$t&&Ne(In)&&(mt=!0,Qn=pn,Ct({data:Qn,_c:c}));mt&&(In||(m(mt)&&(Qn=mt(Qn,pn)),Ct({data:Qn,_c:c}))),zn[Mt][1]=J();const Fn=yield or();if(Ct({_c:c}),In){if(Me)throw In;return}return mt?Fn:Qn})}})}const He=(Ze,vt)=>{for(const wt in Ze)Ze[wt][0]&&Ze[wt][0](vt)},Ve=(Ze,vt)=>{if(!i.has(Ze)){const wt=b(ne,vt),me={},We=De.bind(c,Ze);let Ke=f;const mt={},Ot=(Ne,Me)=>{const at=mt[Ne]||[];return mt[Ne]=at,at.push(Me),()=>at.splice(at.indexOf(Me),1)},Ut=(Ne,Me,at)=>{Ze.set(Ne,Me);const nt=mt[Ne];if(nt)for(let Mt=nt.length;Mt--;)nt[Mt](Me,at)},cn=()=>{if(!i.has(Ze)&&(i.set(Ze,[me,{},{},{},We,Ut,Ot]),!_)){const Ne=wt.initFocus(setTimeout.bind(c,He.bind(c,me,ue))),Me=wt.initReconnect(setTimeout.bind(c,He.bind(c,me,Fe)));Ke=()=>{Ne&&Ne(),Me&&Me(),i.delete(Ze)}}};return cn(),[Ze,We,cn,Ke]}return[Ze,i.get(Ze)[4]]},Ie=(Ze,vt,wt,me,We)=>{const Ke=wt.errorRetryCount,mt=We.retryCount,Ot=~~((Math.random()+.5)*(1<<(mt<8?mt:8)))*wt.errorRetryInterval;!d(Ke)&&mt>Ke||setTimeout(me,Ot,We)},Le=(Ze,vt)=>N(Ze)==N(vt),[dt,St]=Ve(new Map),ht=b({onLoadingSlow:f,onSuccess:f,onError:f,onErrorRetry:Ie,onDiscarded:f,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:k?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:k?5e3:3e3,compare:Le,isPaused:()=>!1,cache:dt,mutate:St,fallback:{}},K),pt=(Ze,vt)=>{const wt=b(Ze,vt);if(vt){const{use:me,fallback:We}=Ze,{use:Ke,fallback:mt}=vt;me&&Ke&&(wt.use=me.concat(Ke)),We&&mt&&(wt.fallback=b(We,mt))}return wt},Rt=(0,o.createContext)({}),q=Ze=>{const{value:vt}=Ze,wt=(0,o.useContext)(Rt),me=m(vt),We=(0,o.useMemo)(()=>me?vt(wt):vt,[me,wt,vt]),Ke=(0,o.useMemo)(()=>me?We:pt(wt,We),[me,wt,We]),mt=We&&We.provider,[Ot]=(0,o.useState)(()=>mt?Ve(mt(Ke.cache||dt),We):c);return Ot&&(Ke.cache=Ot[0],Ke.mutate=Ot[1]),D(()=>{if(Ot)return Ot[2]&&Ot[2](),Ot[3]},[]),(0,o.createElement)(Rt.Provider,b(Ze,{value:Ke}))},B=x&&window.__SWR_DEVTOOLS_USE__,S=B?window.__SWR_DEVTOOLS_USE__:[],C=()=>{B&&(window.__SWR_DEVTOOLS_REACT__=o)},Y=Ze=>m(Ze[1])?[Ze[0],Ze[1],Ze[2]||{}]:[Ze[0],null,(Ze[1]===null?Ze[2]:Ze[1])||{}],Q=()=>b(ht,(0,o.useContext)(Rt)),se=(Ze,vt)=>{const wt=U(Ze)[0],[,,,me]=i.get(dt);if(me[wt])return me[wt];const We=vt(Ze);return me[wt]=We,We},ye=Ze=>(vt,wt,me)=>Ze(vt,wt&&((...Ke)=>{const mt=U(vt)[0],[,,,Ot]=i.get(dt),Ut=Ot[mt];return Ut?(delete Ot[mt],Ut):wt(...Ke)}),me),re=S.concat(ye),he=Ze=>function(...wt){const me=Q(),[We,Ke,mt]=Y(wt),Ot=pt(me,mt);let Ut=Ze;const{use:cn}=Ot,Ne=(cn||[]).concat(re);for(let Me=Ne.length;Me--;)Ut=Ne[Me](Ut);return Ut(We,Ke||Ot.fetcher||null,Ot)},ot=Ze=>{const vt=useState({})[1],wt=useRef(!1),me=useRef(Ze),We=useRef({data:!1,error:!1,isValidating:!1}),Ke=useCallback(mt=>{let Ot=!1;const Ut=me.current;for(const cn in mt){const Ne=cn;Ut[Ne]!==mt[Ne]&&(Ut[Ne]=mt[Ne],We.current[Ne]&&(Ot=!0))}Ot&&!wt.current&&(oe?vt({}):React.startTransition(()=>vt({})))},[]);return D(()=>(wt.current=!1,()=>{wt.current=!0})),[me,We.current,Ke]},Ue=(Ze,vt,wt)=>{const me=vt[Ze]||(vt[Ze]=[]);return me.push(wt),()=>{const We=me.indexOf(wt);We>=0&&(me[We]=me[me.length-1],me.pop())}},Se=(Ze,vt)=>(...wt)=>{const[me,We,Ke]=Y(wt),mt=(Ke.use||[]).concat(vt);return Ze(me,We,KC(Kp({},Ke),{use:mt}))};C();const tt={dedupe:!0},yt=(Ze,vt,wt)=>{const{cache:me,compare:We,suspense:Ke,fallbackData:mt,revalidateOnMount:Ot,revalidateIfStale:Ut,refreshInterval:cn,refreshWhenHidden:Ne,refreshWhenOffline:Me,keepPreviousData:at}=wt,[nt,Mt,Lt]=i.get(me),[Ct,fn]=U(Ze),zn=(0,o.useRef)(!1),Mn=(0,o.useRef)(!1),Tn=(0,o.useRef)(Ct),or=(0,o.useRef)(vt),Qn=(0,o.useRef)(wt),In=()=>Qn.current,Dn=()=>In().isVisible()&&In().isOnline(),[$t,kt,jt,Jt]=L(me,Ct),pn=(0,o.useRef)({}).current,Fn=d(mt)?wt.fallback[Ct]:mt,bn=(_n,tr)=>{let Tr=!0;for(const Ir in pn){const Sr=Ir;Sr==="data"?We(tr[Sr],_n[Sr])||d(_n[Sr])&&We(tr[Sr],er)||(Tr=!1):tr[Sr]!==_n[Sr]&&(Tr=!1)}return Tr},Zn=(0,o.useMemo)(()=>{const _n=(()=>!Ct||!vt?!1:d(Ot)?In().isPaused()||Ke?!1:d(Ut)?!0:Ut:Ot)(),tr=Sr=>{const rt=b(Sr);return delete rt._k,_n?Kp({isValidating:!0,isLoading:!0},rt):rt};let Tr=tr($t());const Ir=tr(Jt());return[()=>{const Sr=tr($t());return bn(Sr,Tr)?Tr:Tr=Sr},()=>Ir]},[me,Ct]),Jn=(0,n.useSyncExternalStore)((0,o.useCallback)(_n=>jt(Ct,(tr,Tr)=>{bn(Tr,tr)||_n()}),[me,Ct]),Zn[0],Zn[1]),sr=!zn.current,br=nt[Ct]&&nt[Ct].length>0,Or=Jn.data,ur=d(Or)?Fn:Or,cr=Jn.error,Pr=(0,o.useRef)(ur),er=at?d(Or)?Pr.current:Or:ur,Sa=(()=>br&&!d(cr)?!1:sr&&!d(Ot)?Ot:In().isPaused()?!1:Ke?d(ur)?!1:Ut:d(ur)||Ut)(),ya=!!(Ct&&vt&&sr&&Sa),Pa=d(Jn.isValidating)?ya:Jn.isValidating,$a=d(Jn.isLoading)?ya:Jn.isLoading,fa=(0,o.useCallback)(_n=>Dv(this,null,function*(){const tr=or.current;if(!Ct||!tr||Mn.current||In().isPaused())return!1;let Tr,Ir,Sr=!0;const rt=_n||{},Xe=!Lt[Ct]||!rt.dedupe,ut=()=>oe?!Mn.current&&Ct===Tn.current&&zn.current:Ct===Tn.current,st={isValidating:!1,isLoading:!1},It=()=>{kt(st)},Ye=()=>{const le=Lt[Ct];le&&le[1]===Ir&&delete Lt[Ct]},ve={isValidating:!0};d($t().data)&&(ve.isLoading=!0);try{if(Xe&&(kt(ve),wt.loadingTimeout&&d($t().data)&&setTimeout(()=>{Sr&&ut()&&In().onLoadingSlow(Ct,wt)},wt.loadingTimeout),Lt[Ct]=[tr(fn),J()]),[Tr,Ir]=Lt[Ct],Tr=yield Tr,Xe&&setTimeout(Ye,wt.dedupingInterval),!Lt[Ct]||Lt[Ct][1]!==Ir)return Xe&&ut()&&In().onDiscarded(Ct),!1;st.error=c;const le=Mt[Ct];if(!d(le)&&(Ir<=le[0]||Ir<=le[1]||le[1]===0))return It(),Xe&&ut()&&In().onDiscarded(Ct),!1;const Ee=$t().data;st.data=We(Ee,Tr)?Ee:Tr,Xe&&ut()&&In().onSuccess(Tr,Ct,wt)}catch(le){Ye();const Ee=In(),{shouldRetryOnError:de}=Ee;Ee.isPaused()||(st.error=le,Xe&&ut()&&(Ee.onError(le,Ct,Ee),(de===!0||m(de)&&de(le))&&Dn()&&Ee.onErrorRetry(le,Ct,Ee,fa,{retryCount:(rt.retryCount||0)+1,dedupe:!0})))}return Sr=!1,It(),!0}),[Ct,me]),nr=(0,o.useCallback)((..._n)=>De(me,Tn.current,..._n),[]);if(D(()=>{or.current=vt,Qn.current=wt,d(Or)||(Pr.current=Or)}),D(()=>{if(!Ct)return;const _n=fa.bind(c,tt);let tr=0;const Ir=Ue(Ct,nt,Sr=>{if(Sr==we.FOCUS_EVENT){const rt=Date.now();In().revalidateOnFocus&&rt>tr&&Dn()&&(tr=rt+In().focusThrottleInterval,_n())}else if(Sr==we.RECONNECT_EVENT)In().revalidateOnReconnect&&Dn()&&_n();else if(Sr==we.MUTATE_EVENT)return fa()});return Mn.current=!1,Tn.current=Ct,zn.current=!0,kt({_k:fn}),Sa&&(d(ur)||_?_n():F(_n)),()=>{Mn.current=!0,Ir()}},[Ct]),D(()=>{let _n;function tr(){const Ir=m(cn)?cn(ur):cn;Ir&&_n!==-1&&(_n=setTimeout(Tr,Ir))}function Tr(){!$t().error&&(Ne||In().isVisible())&&(Me||In().isOnline())?fa(tt).then(tr):tr()}return tr(),()=>{_n&&(clearTimeout(_n),_n=-1)}},[cn,Ne,Me,Ct]),(0,o.useDebugValue)(er),Ke&&d(ur)&&Ct)throw!oe&&_?new Error("Fallback data is required when using suspense in SSR."):(or.current=vt,Qn.current=wt,Mn.current=!1,d(cr)?fa(tt):cr);return{mutate:nr,get data(){return pn.data=!0,er},get error(){return pn.error=!0,cr},get isValidating(){return pn.isValidating=!0,Pa},get isLoading(){return pn.isLoading=!0,$a}}},Je=u.defineProperty(q,"defaultValue",{value:ht}),Nt=Ze=>serialize(Ze)[0];var _e=he(yt)}},Ls={};function fe(h){var y=Ls[h];if(y!==void 0)return y.exports;var e=Ls[h]={id:h,loaded:!1,exports:{}};return yl[h].call(e.exports,e,e.exports,fe),e.loaded=!0,e.exports}fe.m=yl,function(){fe.n=function(h){var y=h&&h.__esModule?function(){return h.default}:function(){return h};return fe.d(y,{a:y}),y}}(),function(){var h=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},y;fe.t=function(e,o){if(o&1&&(e=this(e)),o&8||typeof e=="object"&&e&&(o&4&&e.__esModule||o&16&&typeof e.then=="function"))return e;var n=Object.create(null);fe.r(n);var i={};y=y||[null,h({}),h([]),h(h)];for(var l=o&2&&e;typeof l=="object"&&!~y.indexOf(l);l=h(l))Object.getOwnPropertyNames(l).forEach(function(r){i[r]=function(){return e[r]}});return i.default=function(){return e},fe.d(n,i),n}}(),function(){fe.d=function(h,y){for(var e in y)fe.o(y,e)&&!fe.o(h,e)&&Object.defineProperty(h,e,{enumerable:!0,get:y[e]})}}(),function(){fe.f={},fe.e=function(h){return Promise.all(Object.keys(fe.f).reduce(function(y,e){return fe.f[e](h,y),y},[]))}}(),function(){fe.u=function(h){return""+({81:"p__Message__Noreply__index",96:"p__Plugin__Share__index",145:"p__Plugin__Subscribe__index",185:"p__Welcome",274:"p__Carry__index",294:"p__Basic__index",301:"t__plugin-layout__Layout",354:"p__Storage__index",366:"p__User__Login__index",398:"p__Script__index",402:"p__Reply__index",430:"p__Master__index",538:"p__Message__Private__index",571:"p__404",583:"p__Proxy__index",737:"p__Plugin__Publish__index",929:"p__Secret__Fenyong__index",966:"p__Message__Listen__index"}[h]||h)+"."+{54:"698cd806",81:"7e4d6d65",96:"47d4de2f",118:"99dbea07",145:"122c4cdc",164:"c823ecee",185:"31f51469",273:"3dfaac85",274:"4274a36e",294:"2fa897e6",301:"f972cb61",315:"ca5fa681",354:"53f68d94",361:"a6a74763",366:"a85e5196",398:"5a05d19e",402:"a17ebe51",430:"bf2b2645",454:"045543df",472:"ccfb3d48",538:"31d914cd",571:"7e3f819c",583:"bd331266",630:"42a3526e",646:"abeba3c8",650:"6dec3238",737:"3ba2cf00",845:"273402fd",852:"e34fba04",929:"809c357f",964:"43acb396",966:"c2e6f837",989:"2d9cc9ce"}[h]+".async.js"}}(),function(){fe.miniCssF=function(h){return"t__plugin-layout__Layout.74b4118c.chunk.css"}}(),function(){fe.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(h){if(typeof window=="object")return window}}()}(),function(){fe.o=function(h,y){return Object.prototype.hasOwnProperty.call(h,y)}}(),function(){var h={},y="ant-design-pro:";fe.l=function(e,o,n,i){if(h[e]){h[e].push(o);return}var l,r;if(n!==void 0)for(var f=document.getElementsByTagName("script"),c=0;c0})),ca=js({routesById:Sn,routeComponents:Lr,parentId:ra.id,loadingComponent:Ln.loadingComponent,reactRouter5Compat:Ln.reactRouter5Compat});return ca.length>0&&(ra.children=ca,ra.routes=ca),ra})}function bl(Ln){var Sn=(0,za.UO)(),xr=(0,wa.Z)((0,wa.Z)({},Ln),{},{to:(0,za.Gn)(Ln.to,Sn)});return qn.createElement(za.Fg,(0,jo.Z)({replace:!0},xr))}function Oa(Ln){var Sn=Ln.route,xr=Sn.redirect,Lr=(0,ao.Z)(Sn,Pi),Xr=Ln.reactRouter5Compat?Cr:Aa;return(0,wa.Z)({element:xr?qn.createElement(bl,{to:xr}):qn.createElement(si.Provider,{value:{route:Ln.route}},qn.createElement(Xr,{loader:qn.memo(Ln.routeComponent),loadingComponent:Ln.loadingComponent||Jr,hasChildren:Ln.hasChildren}))},Lr)}function Jr(){return qn.createElement("div",null)}function Cr(Ln){var Sn=Xo(),xr=Sn.route,Lr=(0,Va.Ov)(),Xr=Lr.history,ra=Lr.clientRoutes,ca=(0,za.UO)(),Ma={params:ca,isExact:!0,path:xr.path,url:Xr.location.pathname},Xa=Ln.loader;return qn.createElement(qn.Suspense,{fallback:qn.createElement(Ln.loadingComponent,null)},qn.createElement(Xa,{location:Xr.location,match:Ma,history:Xr,params:ca,route:xr,routes:ra},Ln.hasChildren&&qn.createElement(za.j3,null)))}function Aa(Ln){var Sn=Ln.loader;return qn.createElement(qn.Suspense,{fallback:qn.createElement(Ln.loadingComponent,null)},qn.createElement(Sn,null))}var Ca=null;function Vo(){return Ca}function yi(Ln){var Sn=Ln.history,xr=qn.useState({action:Sn.action,location:Sn.location}),Lr=(0,Wo.Z)(xr,2),Xr=Lr[0],ra=Lr[1];return(0,qn.useLayoutEffect)(function(){return Sn.listen(ra)},[Sn]),(0,qn.useLayoutEffect)(function(){function ca(Ma){Ln.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:Ln.routes,clientRoutes:Ln.clientRoutes,location:Ma.location,action:Ma.action,basename:Ln.basename,isFirst:Boolean(Ma.isFirst)}})}Sn.listen(ca),ca({location:Xr.location,action:Xr.action,isFirst:!0})},[Sn,Ln.routes,Ln.clientRoutes]),qn.createElement(za.F0,{navigator:Sn,location:Xr.location,basename:Ln.basename},Ln.children)}function Ui(){var Ln=(0,Va.Ov)(),Sn=Ln.clientRoutes;return(0,za.V$)(Sn)}var _i=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],$o=function(Sn,xr){var Lr=Sn.basename||"/",Xr=js({routesById:Sn.routes,routeComponents:Sn.routeComponents,loadingComponent:Sn.loadingComponent,reactRouter5Compat:Sn.reactRouter5Compat});Sn.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:Xr}});for(var ra=qn.createElement(yi,{basename:Lr,pluginManager:Sn.pluginManager,routes:Sn.routes,clientRoutes:Xr,history:Sn.history},xr),ca=0,Ma=_i;ca