提交 54a0c005 编写于 作者: wanhai_wu's avatar wanhai_wu

build

上级 bed63178
......@@ -7,7 +7,9 @@ import routes from './routes';
const { REACT_APP_ENV = 'dev' } = process.env;
export default defineConfig({
export default defineConfig(
{
history: {type: 'hash'},
/**
* @name 开启 hash 模式
* @description 让 build 之后的产物包含 hash 后缀。通常用于增量发布和避免浏览器加载缓存。
......
......@@ -8,6 +8,6 @@
</head>
<body>
<div id="root"></div>
<script src="/umi.c054fc9f.js"></script>
<script src="/umi.f0ee633d.js"></script>
</body></html>
\ No newline at end of file
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[976],{3505:function(ae,B,t){var z=t(17061),a=t.n(z),F=t(17156),m=t.n(F),$=t(27424),i=t.n($),o=t(67294),g=t(66593),h=t(10979),Z=t(85893),b=function(I){var G=(0,o.useState)([]),R=i()(G,2),H=R[0],C=R[1],V=(0,o.useState)([]),D=i()(V,2),L=D[0],j=D[1],P=(0,o.useState)([]),O=i()(P,2),Q=O[0],l=O[1],N=(0,o.useState)(!0),x=i()(N,2),J=x[0],K=x[1],T=(0,o.useState)([]),E=i()(T,2),X=E[0],U=E[1],Y=(0,o.useState)([]),S=i()(Y,2),ne=S[0],w=S[1],e=function(){m()(a()().mark(function M(){var W,f;return a()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,(0,h.Th)();case 2:return W=y.sent,U(W.data),y.next=6,(0,h.pz)({r_id:I.editInfo.id});case 6:f=y.sent,w((f==null?void 0:f.m_ids)||[]),j(f==null?void 0:f.m_ids),C(f==null?void 0:f.m_ids);case 10:case"end":return y.stop()}},M)}))()};(0,o.useEffect)(function(){e()},[]);var r=function(M){console.log("onExpand",M),C(M),K(!1)},_=function(M){console.log("onCheck",M),j(M),localStorage.setItem("checkedKeysValue",JSON.stringify(M))},s=function(M,W){console.log("onSelect",W),l(M)};return(0,Z.jsx)(g.Z,{checkable:!0,onExpand:r,expandedKeys:H,autoExpandParent:J,onCheck:_,checkedKeys:L,onSelect:s,selectedKeys:Q,fieldNames:{title:"name",key:"id"},treeData:X})};B.Z=b},38115:function(ae,B,t){t.r(B);var z=t(42122),a=t.n(z),F=t(17061),m=t.n(F),$=t(17156),i=t.n($),o=t(27424),g=t.n(o),h=t(40741),Z=t(45360),b=t(42075),k=t(4393),I=t(71230),G=t(15746),R=t(15867),H=t(36692),C=t(5914),V=t(96074),D=t(96365),L=t(83863),j=t(11774),P=t(67294),O=t(10979),Q=t(3505),l=t(85893),N=function(){var J=h.Z.useForm(),K=g()(J,1),T=K[0],E=P.useRef(null),X=Z.ZP.useMessage(),U=g()(X,2),Y=U[0],S=U[1],ne=(0,P.useState)(0),w=g()(ne,2),e=w[0],r=w[1],_=(0,P.useState)(),s=g()(_,2),n=s[0],M=s[1],W=(0,P.useState)({page:1,page_size:10}),f=g()(W,2),q=f[0],y=f[1],oe=(0,P.useState)(0),se=g()(oe,2),de=se[0],ce=se[1],me=(0,P.useState)(!1),ue=g()(me,2),pe=ue[0],te=ue[1],le=function(){Y.open({type:"success",content:"\u64CD\u4F5C\u6210\u529F"})},_e=function(d){return Object.keys(d).length===0&&d.constructor===Object},re=function(){i()(m()().mark(function d(){var u,c,A;return m()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return ee.next=2,(0,O.Hs)(q);case 2:u=ee.sent,c=u.items,A=u.total,M(c),ce(A);case 7:case"end":return ee.stop()}},d)}))()},ie=function(){te(!0)},he=function(){var d=T.validateFields();d.then(function(){i()(m()().mark(function u(){var c;return m()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,e===0?(0,O.bL)({menu:a()({},T.getFieldsValue())}):e===1?(0,O.Mz)({menu:a()({},T.getFieldsValue())}):null;case 2:c=v.sent,(_e(c)||c!==null||c!=="")&&(le(),te(!1),re());case 4:case"end":return v.stop()}},u)}))()})},fe=function(d){i()(m()().mark(function u(){var c;return m()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,(0,O.yo)({id:d});case 2:c=v.sent,_e(c)&&(le(),re());case 4:case"end":return v.stop()}},u)}))()},ve=function(d){var u,c,A;switch(d){case"male":(u=E.current)===null||u===void 0||u.setFieldsValue({note:"Hi, man!"});break;case"female":(c=E.current)===null||c===void 0||c.setFieldsValue({note:"Hi, lady!"});break;case"other":(A=E.current)===null||A===void 0||A.setFieldsValue({note:"Hi there!"});break;default:break}},Ee=function(){te(!1)},Me=[{title:"ID",key:"menu",width:80,render:function(d,u){return console.log(u),u.menu.id}},{title:"\u4E0A\u7EA7\u83DC\u5355id",key:"menu",width:80,render:function(d,u){return console.log(u),u.menu.pid}},{title:"\u83DC\u5355\u540D\u79F0",key:"menu",width:80,render:function(d,u){return console.log(u),u.menu.name}},{title:"\u94FE\u63A5\u5730\u5740",key:"menu",width:80,render:function(d,u){return console.log(u),u.menu.link}},{title:"\u7C7B\u578B ",key:"menu",width:80,render:function(d,u){return u.type===1?"\u83DC\u5355":"\u63A5\u53E3"}},{title:"\u662F\u5426\u663E\u793A",key:"menu",width:80,render:function(d,u){var c;return console.log(u),((c=u.menu)===null||c===void 0?void 0:c.is_show)===1?(0,l.jsx)("div",{children:"\u662F"}):(0,l.jsx)("div",{children:"\u5426"})}},{title:"\u64CD\u4F5C",key:"action",render:function(d,u){return(0,l.jsxs)(b.Z,{size:"middle",children:[(0,l.jsx)("a",{onClick:function(){ie(),r(1),T.setFieldsValue({id:u.menu.id,link:u.menu.link,pid:u.menu.pid,type:u.menu.type,name:u.menu.name,is_show:u.menu.is_show})},children:"\u7F16\u8F91\u83DC\u5355"}),(0,l.jsx)("a",{onClick:function(){fe(u.menu.id)},children:"\u5220\u9664"})]})}}];return(0,P.useEffect)(function(){re()},[q]),(0,l.jsxs)(l.Fragment,{children:[S,(0,l.jsxs)(j._z,{children:[(0,l.jsx)(k.Z,{children:(0,l.jsx)(h.Z,{form:T,name:"advanced_search",size:"large",children:(0,l.jsx)(I.Z,{gutter:8,children:(0,l.jsx)(G.Z,{span:12,children:(0,l.jsx)(R.ZP,{type:"primary",onClick:function(){var d;(d=E.current)===null||d===void 0||d.resetFields(),r(0),ie()},children:"\u65B0\u589E\u83DC\u5355"})})})})}),(0,l.jsx)(k.Z,{style:{marginTop:20},children:(0,l.jsx)(H.Z,{dataSource:n,columns:Me,pagination:{total:de,onChange:function(d,u){y(a()(a()({},q),{},{page:d,page_size:u}))},pageSize:q.page_size}})})]}),(0,l.jsxs)(C.Z,{title:e===0?"\u65B0\u589E":e===1?"\u7F16\u8F91":e===2?"\u8BBE\u7F6E\u6743\u9650":null,open:pe,onOk:he,onCancel:Ee,children:[(0,l.jsx)(V.Z,{}),e===2?(0,l.jsx)(Q.Z,{}):(0,l.jsxs)(h.Z,{form:T,ref:E,name:"advanced_search",size:"large",labelCol:{span:6},wrapperCol:{span:24},style:{maxWidth:600},children:[(0,l.jsx)(h.Z.Item,{name:"pid",label:"\u4E0A\u7EA7\u83DC\u5355ID",hasFeedback:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540E"}],children:(0,l.jsx)(D.Z,{placeholder:"\u8BF7\u8F93\u5165"})}),(0,l.jsx)(h.Z.Item,{name:"name",label:"\u83DC\u5355\u540D",hasFeedback:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540E"}],children:(0,l.jsx)(D.Z,{placeholder:"\u8BF7\u8F93\u5165"})}),(0,l.jsx)(h.Z.Item,{name:"link",label:"\u94FE\u63A5\u5730\u5740",hasFeedback:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540E"}],children:(0,l.jsx)(D.Z,{placeholder:"\u8BF7\u8F93\u5165"})}),(0,l.jsx)(h.Z.Item,{label:"\u7C7B\u578B",name:"is_show",rules:[{required:!0}],children:(0,l.jsxs)(L.default,{placeholder:"\u8BF7\u8F93\u5165",allowClear:!0,children:[(0,l.jsx)(L.default.Option,{value:1,children:"\u663E\u793A"}),(0,l.jsx)(L.default.Option,{value:-1,children:"\u9690\u85CF"})]})}),(0,l.jsx)(h.Z.Item,{name:"id",hidden:!0,children:(0,l.jsx)(D.Z,{placeholder:"\u8BF7\u8F93\u5165",hidden:!0})})]})]})]})};B.default=N},10979:function(ae,B,t){t.d(B,{HP:function(){return L},Hs:function(){return k},Mz:function(){return J},O_:function(){return Q},S1:function(){return X},Th:function(){return ne},_A:function(){return V},bL:function(){return P},bi:function(){return T},do:function(){return g},id:function(){return Z},pz:function(){return G},vX:function(){return H},x$:function(){return N},yo:function(){return Y}});var z=t(17061),a=t.n(z),F=t(42122),m=t.n(F),$=t(17156),i=t.n($),o=t(9927);function g(e,r){return h.apply(this,arguments)}function h(){return h=i()(a()().mark(function e(r,_){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,o.request)("/api/member/fsQrLogin",m()({method:"POST",headers:{"Content-Type":"application/json"},data:r},_||{})));case 1:case"end":return n.stop()}},e)})),h.apply(this,arguments)}function Z(e){return b.apply(this,arguments)}function b(){return b=i()(a()().mark(function e(r){return a()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,o.request)("/api/permission/getRoleList",{method:"GET",params:r}));case 1:case"end":return s.stop()}},e)})),b.apply(this,arguments)}function k(e){return I.apply(this,arguments)}function I(){return I=i()(a()().mark(function e(r){return a()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,o.request)("/api/permission/getMenuPage",{method:"GET",params:r}));case 1:case"end":return s.stop()}},e)})),I.apply(this,arguments)}function G(e){return R.apply(this,arguments)}function R(){return R=i()(a()().mark(function e(r){return a()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,o.request)("/api/permission/getRoleMenu",{method:"GET",params:r}));case 1:case"end":return s.stop()}},e)})),R.apply(this,arguments)}function H(e){return C.apply(this,arguments)}function C(){return C=i()(a()().mark(function e(r){return a()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,o.request)("/api/member/getMemberPage",{method:"GET",params:r}));case 1:case"end":return s.stop()}},e)})),C.apply(this,arguments)}function V(e){return D.apply(this,arguments)}function D(){return D=i()(a()().mark(function e(r){return a()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,o.request)("/api/permission/getRoleMember",{method:"GET",params:r}));case 1:case"end":return s.stop()}},e)})),D.apply(this,arguments)}function L(e,r){return j.apply(this,arguments)}function j(){return j=i()(a()().mark(function e(r,_){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,o.request)("/api/permission/addRole",m()({method:"POST",headers:{"Content-Type":"application/json"},data:r},_||{})));case 1:case"end":return n.stop()}},e)})),j.apply(this,arguments)}function P(e,r){return O.apply(this,arguments)}function O(){return O=i()(a()().mark(function e(r,_){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,o.request)("/api/permission/addMenu",m()({method:"POST",headers:{"Content-Type":"application/json"},data:r},_||{})));case 1:case"end":return n.stop()}},e)})),O.apply(this,arguments)}function Q(e,r){return l.apply(this,arguments)}function l(){return l=i()(a()().mark(function e(r,_){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,o.request)("/api/permission/setRoleMenu",m()({method:"POST",headers:{"Content-Type":"application/json"},data:r},_||{})));case 1:case"end":return n.stop()}},e)})),l.apply(this,arguments)}function N(e,r){return x.apply(this,arguments)}function x(){return x=i()(a()().mark(function e(r,_){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,o.request)("/api/permission/saveRole",m()({method:"POST",headers:{"Content-Type":"application/json"},data:r},_||{})));case 1:case"end":return n.stop()}},e)})),x.apply(this,arguments)}function J(e,r){return K.apply(this,arguments)}function K(){return K=i()(a()().mark(function e(r,_){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,o.request)("/api/permission/saveMenu",m()({method:"POST",headers:{"Content-Type":"application/json"},data:r},_||{})));case 1:case"end":return n.stop()}},e)})),K.apply(this,arguments)}function T(e,r){return E.apply(this,arguments)}function E(){return E=i()(a()().mark(function e(r,_){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,o.request)("/api/permission/setRoleMember",m()({method:"POST",headers:{"Content-Type":"application/json"},data:r},_||{})));case 1:case"end":return n.stop()}},e)})),E.apply(this,arguments)}function X(e,r){return U.apply(this,arguments)}function U(){return U=i()(a()().mark(function e(r,_){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,o.request)("/api/permission/delRole",m()({method:"POST",data:r},_||{})));case 1:case"end":return n.stop()}},e)})),U.apply(this,arguments)}function Y(e,r){return S.apply(this,arguments)}function S(){return S=i()(a()().mark(function e(r,_){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,o.request)("/api/permission/delMenu",m()({method:"POST",data:r},_||{})));case 1:case"end":return n.stop()}},e)})),S.apply(this,arguments)}function ne(){return w.apply(this,arguments)}function w(){return w=i()(a()().mark(function e(){return a()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",(0,o.request)("/api/permission/getMenuTree",{method:"GET"}));case 1:case"end":return _.stop()}},e)})),w.apply(this,arguments)}}}]);
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[976],{3505:function(ae,B,t){var z=t(17061),a=t.n(z),F=t(17156),c=t.n(F),$=t(27424),i=t.n($),o=t(67294),g=t(66593),h=t(10979),Z=t(85893),b=function(I){var G=(0,o.useState)([]),R=i()(G,2),H=R[0],C=R[1],V=(0,o.useState)([]),D=i()(V,2),L=D[0],j=D[1],P=(0,o.useState)([]),O=i()(P,2),Q=O[0],l=O[1],N=(0,o.useState)(!0),x=i()(N,2),J=x[0],K=x[1],T=(0,o.useState)([]),E=i()(T,2),X=E[0],U=E[1],Y=(0,o.useState)([]),S=i()(Y,2),ne=S[0],w=S[1],e=function(){c()(a()().mark(function M(){var W,f;return a()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,(0,h.Th)();case 2:return W=y.sent,U(W.data),y.next=6,(0,h.pz)({r_id:I.editInfo.id});case 6:f=y.sent,w((f==null?void 0:f.m_ids)||[]),j(f==null?void 0:f.m_ids),C(f==null?void 0:f.m_ids);case 10:case"end":return y.stop()}},M)}))()};(0,o.useEffect)(function(){e()},[]);var r=function(M){console.log("onExpand",M),C(M),K(!1)},_=function(M){console.log("onCheck",M),j(M),localStorage.setItem("checkedKeysValue",JSON.stringify(M))},s=function(M,W){console.log("onSelect",W),l(M)};return(0,Z.jsx)(g.Z,{checkable:!0,onExpand:r,expandedKeys:H,autoExpandParent:J,onCheck:_,checkedKeys:L,onSelect:s,selectedKeys:Q,fieldNames:{title:"name",key:"id"},treeData:X})};B.Z=b},38115:function(ae,B,t){t.r(B);var z=t(42122),a=t.n(z),F=t(17061),c=t.n(F),$=t(17156),i=t.n($),o=t(27424),g=t.n(o),h=t(40741),Z=t(45360),b=t(42075),k=t(4393),I=t(71230),G=t(15746),R=t(15867),H=t(36692),C=t(5914),V=t(96074),D=t(96365),L=t(83863),j=t(11774),P=t(67294),O=t(10979),Q=t(3505),l=t(85893),N=function(){var J=h.Z.useForm(),K=g()(J,1),T=K[0],E=P.useRef(null),X=Z.ZP.useMessage(),U=g()(X,2),Y=U[0],S=U[1],ne=(0,P.useState)(0),w=g()(ne,2),e=w[0],r=w[1],_=(0,P.useState)(),s=g()(_,2),n=s[0],M=s[1],W=(0,P.useState)({page:1,page_size:10}),f=g()(W,2),q=f[0],y=f[1],oe=(0,P.useState)(0),se=g()(oe,2),de=se[0],ce=se[1],me=(0,P.useState)(!1),ue=g()(me,2),pe=ue[0],te=ue[1],le=function(){Y.open({type:"success",content:"\u64CD\u4F5C\u6210\u529F"})},_e=function(d){return Object.keys(d).length===0&&d.constructor===Object},re=function(){i()(c()().mark(function d(){var u,m,A;return c()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return ee.next=2,(0,O.Hs)(q);case 2:u=ee.sent,m=u.items,A=u.total,M(m),ce(A);case 7:case"end":return ee.stop()}},d)}))()},ie=function(){te(!0)},he=function(){var d=T.validateFields();d.then(function(){i()(c()().mark(function u(){var m;return c()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,e===0?(0,O.bL)({menu:a()({},T.getFieldsValue())}):e===1?(0,O.Mz)({role:a()({},T.getFieldsValue())}):null;case 2:m=v.sent,_e(m)&&(le(),te(!1),re());case 4:case"end":return v.stop()}},u)}))()})},fe=function(d){i()(c()().mark(function u(){var m;return c()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,(0,O.yo)({id:d});case 2:m=v.sent,_e(m)&&(le(),re());case 4:case"end":return v.stop()}},u)}))()},ve=function(d){var u,m,A;switch(d){case"male":(u=E.current)===null||u===void 0||u.setFieldsValue({note:"Hi, man!"});break;case"female":(m=E.current)===null||m===void 0||m.setFieldsValue({note:"Hi, lady!"});break;case"other":(A=E.current)===null||A===void 0||A.setFieldsValue({note:"Hi there!"});break;default:break}},Ee=function(){te(!1)},Me=[{title:"ID",key:"menu",width:80,render:function(d,u){return console.log(u),u.menu.id}},{title:"\u4E0A\u7EA7\u83DC\u5355id",key:"menu",width:80,render:function(d,u){return console.log(u),u.menu.pid}},{title:"\u83DC\u5355\u540D\u79F0",key:"menu",width:80,render:function(d,u){return console.log(u),u.menu.name}},{title:"\u94FE\u63A5\u5730\u5740",key:"menu",width:80,render:function(d,u){return console.log(u),u.menu.link}},{title:"\u7C7B\u578B ",key:"menu",width:80,render:function(d,u){return u.type===1?"\u83DC\u5355":"\u63A5\u53E3"}},{title:"\u662F\u5426\u663E\u793A",key:"menu",width:80,render:function(d,u){var m;return console.log(u),((m=u.menu)===null||m===void 0?void 0:m.is_show)===1?(0,l.jsx)("div",{children:"\u662F"}):(0,l.jsx)("div",{children:"\u5426"})}},{title:"\u64CD\u4F5C",key:"action",render:function(d,u){return(0,l.jsxs)(b.Z,{size:"middle",children:[(0,l.jsx)("a",{onClick:function(){ie(),r(1),T.setFieldsValue({id:u.menu.id,link:u.menu.link,pid:u.menu.pid,type:u.menu.type,name:u.menu.name,is_show:u.menu.is_show})},children:"\u7F16\u8F91\u83DC\u5355"}),(0,l.jsx)("a",{onClick:function(){fe(u.menu.id)},children:"\u5220\u9664"})]})}}];return(0,P.useEffect)(function(){re()},[q]),(0,l.jsxs)(l.Fragment,{children:[S,(0,l.jsxs)(j._z,{children:[(0,l.jsx)(k.Z,{children:(0,l.jsx)(h.Z,{form:T,name:"advanced_search",size:"large",children:(0,l.jsx)(I.Z,{gutter:8,children:(0,l.jsx)(G.Z,{span:12,children:(0,l.jsx)(R.ZP,{type:"primary",onClick:function(){var d;(d=E.current)===null||d===void 0||d.resetFields(),r(0),ie()},children:"\u65B0\u589E\u83DC\u5355"})})})})}),(0,l.jsx)(k.Z,{style:{marginTop:20},children:(0,l.jsx)(H.Z,{dataSource:n,columns:Me,pagination:{total:de,onChange:function(d,u){y(a()(a()({},q),{},{page:d,page_size:u}))},pageSize:q.page_size}})})]}),(0,l.jsxs)(C.Z,{title:e===0?"\u65B0\u589E":e===1?"\u7F16\u8F91":e===2?"\u8BBE\u7F6E\u6743\u9650":null,open:pe,onOk:he,onCancel:Ee,children:[(0,l.jsx)(V.Z,{}),e===2?(0,l.jsx)(Q.Z,{}):(0,l.jsxs)(h.Z,{form:T,ref:E,name:"advanced_search",size:"large",labelCol:{span:6},wrapperCol:{span:24},style:{maxWidth:600},children:[(0,l.jsx)(h.Z.Item,{name:"pid",label:"\u4E0A\u7EA7\u83DC\u5355ID",hasFeedback:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540E"}],children:(0,l.jsx)(D.Z,{placeholder:"\u8BF7\u8F93\u5165"})}),(0,l.jsx)(h.Z.Item,{name:"name",label:"\u83DC\u5355\u540D",hasFeedback:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540E"}],children:(0,l.jsx)(D.Z,{placeholder:"\u8BF7\u8F93\u5165"})}),(0,l.jsx)(h.Z.Item,{name:"link",label:"\u94FE\u63A5\u5730\u5740",hasFeedback:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540E"}],children:(0,l.jsx)(D.Z,{placeholder:"\u8BF7\u8F93\u5165"})}),(0,l.jsx)(h.Z.Item,{label:"\u7C7B\u578B",name:"is_show",rules:[{required:!0}],children:(0,l.jsxs)(L.default,{placeholder:"\u8BF7\u8F93\u5165",allowClear:!0,children:[(0,l.jsx)(L.default.Option,{value:1,children:"\u663E\u793A"}),(0,l.jsx)(L.default.Option,{value:-1,children:"\u9690\u85CF"})]})}),(0,l.jsx)(h.Z.Item,{name:"id",hidden:!0,children:(0,l.jsx)(D.Z,{placeholder:"\u8BF7\u8F93\u5165",hidden:!0})})]})]})]})};B.default=N},10979:function(ae,B,t){t.d(B,{HP:function(){return L},Hs:function(){return k},Mz:function(){return J},O_:function(){return Q},S1:function(){return X},Th:function(){return ne},_A:function(){return V},bL:function(){return P},bi:function(){return T},do:function(){return g},id:function(){return Z},pz:function(){return G},vX:function(){return H},x$:function(){return N},yo:function(){return Y}});var z=t(17061),a=t.n(z),F=t(42122),c=t.n(F),$=t(17156),i=t.n($),o=t(9927);function g(e,r){return h.apply(this,arguments)}function h(){return h=i()(a()().mark(function e(r,_){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,o.request)("/api/member/fsQrLogin",c()({method:"POST",headers:{"Content-Type":"application/json"},data:r},_||{})));case 1:case"end":return n.stop()}},e)})),h.apply(this,arguments)}function Z(e){return b.apply(this,arguments)}function b(){return b=i()(a()().mark(function e(r){return a()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,o.request)("/api/permission/getRoleList",{method:"GET",params:r}));case 1:case"end":return s.stop()}},e)})),b.apply(this,arguments)}function k(e){return I.apply(this,arguments)}function I(){return I=i()(a()().mark(function e(r){return a()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,o.request)("/api/permission/getMenuPage",{method:"GET",params:r}));case 1:case"end":return s.stop()}},e)})),I.apply(this,arguments)}function G(e){return R.apply(this,arguments)}function R(){return R=i()(a()().mark(function e(r){return a()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,o.request)("/api/permission/getRoleMenu",{method:"GET",params:r}));case 1:case"end":return s.stop()}},e)})),R.apply(this,arguments)}function H(e){return C.apply(this,arguments)}function C(){return C=i()(a()().mark(function e(r){return a()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,o.request)("/api/member/getMemberPage",{method:"GET",params:r}));case 1:case"end":return s.stop()}},e)})),C.apply(this,arguments)}function V(e){return D.apply(this,arguments)}function D(){return D=i()(a()().mark(function e(r){return a()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,o.request)("/api/permission/getRoleMember",{method:"GET",params:r}));case 1:case"end":return s.stop()}},e)})),D.apply(this,arguments)}function L(e,r){return j.apply(this,arguments)}function j(){return j=i()(a()().mark(function e(r,_){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,o.request)("/api/permission/addRole",c()({method:"POST",headers:{"Content-Type":"application/json"},data:r},_||{})));case 1:case"end":return n.stop()}},e)})),j.apply(this,arguments)}function P(e,r){return O.apply(this,arguments)}function O(){return O=i()(a()().mark(function e(r,_){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,o.request)("/api/permission/addMenu",c()({method:"POST",headers:{"Content-Type":"application/json"},data:r},_||{})));case 1:case"end":return n.stop()}},e)})),O.apply(this,arguments)}function Q(e,r){return l.apply(this,arguments)}function l(){return l=i()(a()().mark(function e(r,_){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,o.request)("/api/permission/setRoleMenu",c()({method:"POST",headers:{"Content-Type":"application/json"},data:r},_||{})));case 1:case"end":return n.stop()}},e)})),l.apply(this,arguments)}function N(e,r){return x.apply(this,arguments)}function x(){return x=i()(a()().mark(function e(r,_){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,o.request)("/api/permission/saveRole",c()({method:"POST",headers:{"Content-Type":"application/json"},data:r},_||{})));case 1:case"end":return n.stop()}},e)})),x.apply(this,arguments)}function J(e,r){return K.apply(this,arguments)}function K(){return K=i()(a()().mark(function e(r,_){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,o.request)("/api/permission/saveMenu",c()({method:"POST",headers:{"Content-Type":"application/json"},data:r},_||{})));case 1:case"end":return n.stop()}},e)})),K.apply(this,arguments)}function T(e,r){return E.apply(this,arguments)}function E(){return E=i()(a()().mark(function e(r,_){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,o.request)("/api/permission/setRoleMember",c()({method:"POST",headers:{"Content-Type":"application/json"},data:r},_||{})));case 1:case"end":return n.stop()}},e)})),E.apply(this,arguments)}function X(e,r){return U.apply(this,arguments)}function U(){return U=i()(a()().mark(function e(r,_){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,o.request)("/api/permission/delRole",c()({method:"POST",data:r},_||{})));case 1:case"end":return n.stop()}},e)})),U.apply(this,arguments)}function Y(e,r){return S.apply(this,arguments)}function S(){return S=i()(a()().mark(function e(r,_){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,o.request)("/api/permission/delMenu",c()({method:"POST",data:r},_||{})));case 1:case"end":return n.stop()}},e)})),S.apply(this,arguments)}function ne(){return w.apply(this,arguments)}function w(){return w=i()(a()().mark(function e(){return a()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",(0,o.request)("/api/permission/getMenuTree",{method:"GET"}));case 1:case"end":return _.stop()}},e)})),w.apply(this,arguments)}}}]);
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[366],{33726:function(ye,q,s){s.r(q),s.d(q,{default:function(){return je}});var re=s(17061),t=s.n(re),ne=s(42122),v=s.n(ne),te=s(17156),p=s.n(te),w=s(27424),V=s.n(w),f=s(9927);function ce(l){return C.apply(this,arguments)}function C(){return C=_asyncToGenerator(_regeneratorRuntime().mark(function l(o){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/api/currentUser",_objectSpread({method:"GET"},o||{})));case 1:case"end":return a.stop()}},l)})),C.apply(this,arguments)}function pe(l){return E.apply(this,arguments)}function E(){return E=_asyncToGenerator(_regeneratorRuntime().mark(function l(o){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/api/login/outLogin",_objectSpread({method:"POST"},o||{})));case 1:case"end":return a.stop()}},l)})),E.apply(this,arguments)}function ae(l,o){return x.apply(this,arguments)}function x(){return x=p()(t()().mark(function l(o,d){return t()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,f.request)("/api/admin/login",v()({method:"POST",headers:{"Content-Type":"application/json"},data:o},d||{})));case 1:case"end":return h.stop()}},l)})),x.apply(this,arguments)}function de(l){return F.apply(this,arguments)}function F(){return F=_asyncToGenerator(_regeneratorRuntime().mark(function l(o){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/api/notices",_objectSpread({method:"GET"},o||{})));case 1:case"end":return a.stop()}},l)})),F.apply(this,arguments)}function ge(l,o){return O.apply(this,arguments)}function O(){return O=_asyncToGenerator(_regeneratorRuntime().mark(function l(o,d){return _regeneratorRuntime().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",request("/api/rule",_objectSpread({method:"GET",params:_objectSpread({},o)},d||{})));case 1:case"end":return h.stop()}},l)})),O.apply(this,arguments)}function me(l){return A.apply(this,arguments)}function A(){return A=_asyncToGenerator(_regeneratorRuntime().mark(function l(o){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/api/rule",_objectSpread({method:"PUT"},o||{})));case 1:case"end":return a.stop()}},l)})),A.apply(this,arguments)}function fe(l){return U.apply(this,arguments)}function U(){return U=_asyncToGenerator(_regeneratorRuntime().mark(function l(o){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/api/rule",_objectSpread({method:"POST"},o||{})));case 1:case"end":return a.stop()}},l)})),U.apply(this,arguments)}function he(l){return $.apply(this,arguments)}function $(){return $=_asyncToGenerator(_regeneratorRuntime().mark(function l(o){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/api/rule",_objectSpread({method:"DELETE"},o||{})));case 1:case"end":return a.stop()}},l)})),$.apply(this,arguments)}function se(l,o){return I.apply(this,arguments)}function I(){return I=p()(t()().mark(function l(o,d){return t()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,f.request)("/api/login/captcha",v()({method:"GET",params:v()({},o)},d||{})));case 1:case"end":return h.stop()}},l)})),I.apply(this,arguments)}var ue=s(87547),B=s(94149),ie=s(24454),G=s(84942),z=s(78881),Z=s(16434),J=s(88433),N=s(38925),D=s(45360),W=s(64970),r=s(67610),n=s(67294),c=s(73935),u=s(10581),e=s(10979),i=s(85893),we=function(){var o=(0,f.useModel)("@@initialState"),d=o.initialState,a=o.setInitialState,h=(0,f.useIntl)(),Q=(0,n.useRef)(""),X=(0,n.useRef)(""),K=(0,n.useRef)(null);(0,n.useEffect)(function(){return window.addEventListener("message",H,!1),function(){window.removeEventListener("message",H,!1)}},[]),(0,n.useLayoutEffect)(function(){var R;if(window.location.search.indexOf("code")!==-1){var _=new URLSearchParams(window.location.search),L=_.get("code");(0,e.do)({code:L}).then(function(k){var g=k;if(g.token){localStorage.setItem("Token",g==null?void 0:g.token),localStorage.setItem("userInfo",JSON.stringify(g==null?void 0:g.member));var T=h.formatMessage({id:"pages.login.success",defaultMessage:"\u767B\u5F55\u6210\u529F\uFF01"});D.ZP.success(T),oe(g==null?void 0:g.member);var S=new URL(window.location.href).searchParams;u.m.push(S.get("redirect")||"/");return}}).catch(function(k){var g=h.formatMessage({id:"pages.login.failure",defaultMessage:"\u767B\u5F55\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\uFF01"});console.log(k),D.ZP.error(g),u.m.push("/user/login")})}var y=window.location.hostname,Y=window.location.port;console.log(y),console.log(Y);var le=y+":"+Y;X.current="".concat((R=window)===null||R===void 0||(R=R.location)===null||R===void 0?void 0:R.origin,"/user/login"),Q.current="https://passport.feishu.cn/suite/passport/oauth/authorize?client_id=cli_a3631f654971500d&redirect_uri=http://".concat(le,"/user/login&response_type=code&state=state123456");var P=document.querySelector("#script");P||(P=document.createElement("script"),P.id="script",P.src="https://sf3-cn.feishucdn.com/obj/feishu-static/lark/passport/qrcode/LarkSSOSDKWebQRCode-1.0.2.js",document.querySelector("body").appendChild(P),setTimeout(function(){K.current=QRLogin({id:"login_container",goto:Q.current,width:"250",height:"260",position:"fixed",top:"50vh",left:0,right:0,margin:"0 auto",display:"flex",justifyContent:"center"})},1e3))},[]);var oe=function(_){var L=_;L&&(0,c.flushSync)(function(){a(function(y){return v()(v()({},y),{},{currentUser:L})})})},H=function(_){var L=_.data,y=_.origin;window.location.search.indexOf("code")===-1&&(window.location.href="".concat(Q.current,"&tmp_code=").concat(L))};return(0,i.jsx)("div",{id:"login_container"})},Me=we,Re=function(){var o=useEmotionCss(function(d){var a=d.token;return{marginLeft:"8px",color:"rgba(0, 0, 0, 0.2)",fontSize:"24px",verticalAlign:"middle",cursor:"pointer",transition:"color 0.3s","&:hover":{color:a.colorPrimaryActive}}});return _jsxs(_Fragment,{children:[_jsx(AlipayCircleOutlined,{className:o},"AlipayCircleOutlined"),_jsx(TaobaoCircleOutlined,{className:o},"TaobaoCircleOutlined"),_jsx(WeiboCircleOutlined,{className:o},"WeiboCircleOutlined")]})},Te=function(){var o=(0,J.l)(function(d){var a=d.token;return{width:42,height:42,lineHeight:"42px",position:"fixed",right:16,borderRadius:a.borderRadius,":hover":{backgroundColor:a.colorBgTextHover}}});return(0,i.jsx)("div",{className:o,"data-lang":!0,children:f.SelectLang&&(0,i.jsx)(f.SelectLang,{})})},ve=function(o){var d=o.content;return(0,i.jsx)(N.Z,{style:{marginBottom:24},message:d,type:"error",showIcon:!0})},Se=function(){var o=(0,n.useState)({}),d=V()(o,2),a=d[0],h=d[1],Q=(0,n.useState)("account"),X=V()(Q,2),K=X[0],oe=X[1],H=(0,f.useModel)("@@initialState"),R=H.initialState,_=H.setInitialState,L=(0,J.l)(function(){return{display:"flex",flexDirection:"column",height:"100vh",overflow:"auto",backgroundImage:"url('https://mdn.alipayobjects.com/yuyan_qk0oxh/afts/img/V-_oS6r-i7wAAAAAAAAAAAAAFl94AQBr')",backgroundSize:"100% 100%"}}),y=(0,f.useIntl)(),Y=function(){var g=p()(t()().mark(function T(){var S,m;return t()().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,R==null||(S=R.fetchUserInfo)===null||S===void 0?void 0:S.call(R);case 2:m=M.sent,m&&(0,c.flushSync)(function(){_(function(ee){return v()(v()({},ee),{},{currentUser:m})})});case 4:case"end":return M.stop()}},T)}));return function(){return g.apply(this,arguments)}}(),le=function(){var g=p()(t()().mark(function T(S){var m,b,M,ee;return t()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.prev=0,j.next=3,ae(v()({},S));case 3:if(m=j.sent,localStorage.setItem("Token",m==null?void 0:m.token),m.user.name=m.user.username,localStorage.setItem("userInfo",JSON.stringify(m==null?void 0:m.user)),!m.token){j.next=15;break}return b=y.formatMessage({id:"pages.login.success",defaultMessage:"\u767B\u5F55\u6210\u529F\uFF01"}),D.ZP.success(b),j.next=12,Y();case 12:return M=new URL(window.location.href).searchParams,f.history.push(M.get("redirect")||"/"),j.abrupt("return");case 15:console.log(m),h(m),j.next=24;break;case 19:j.prev=19,j.t0=j.catch(0),ee=y.formatMessage({id:"pages.login.failure",defaultMessage:"\u767B\u5F55\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\uFF01"}),console.log(j.t0),D.ZP.error(ee);case 24:case"end":return j.stop()}},T,null,[[0,19]])}));return function(S){return g.apply(this,arguments)}}(),P=a.status,k=a.type;return(0,i.jsxs)("div",{className:L,children:[(0,i.jsx)(f.Helmet,{children:(0,i.jsxs)("title",{children:[y.formatMessage({id:"menu.login",defaultMessage:"\u767B\u5F55\u9875"}),"- ",r.Z.title]})}),(0,i.jsx)(Te,{}),(0,i.jsxs)("div",{style:{flex:"1",padding:"32px 0"},children:[(0,i.jsxs)(G.U,{contentStyle:{minWidth:280,maxWidth:"75vw"},logo:(0,i.jsx)("img",{alt:"logo",src:"/logo.svg"}),title:"\u521B\u5347\u65E0\u9650\u4E2D\u53F0\u7CFB\u7EDF",subTitle:y.formatMessage({id:"pages.layouts.userLayout.title"}),initialValues:{autoLogin:!0},onFinish:function(){var g=p()(t()().mark(function T(S){return t()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,le(S);case 2:case"end":return b.stop()}},T)}));return function(T){return g.apply(this,arguments)}}(),children:[(0,i.jsx)(W.Z,{activeKey:K,onChange:oe,centered:!0,items:[{key:"account",label:y.formatMessage({id:"pages.login.accountLogin.tab",defaultMessage:"\u8D26\u6237\u5BC6\u7801\u767B\u5F55"})}]}),P==="error"&&k==="account"&&(0,i.jsx)(ve,{content:y.formatMessage({id:"pages.login.accountLogin.errorMessage",defaultMessage:"\u8D26\u6237\u6216\u5BC6\u7801\u9519\u8BEF"})}),K==="account"&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(z.Z,{name:"username",fieldProps:{size:"large",prefix:(0,i.jsx)(ue.Z,{})},placeholder:y.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"\u8BF7\u8F93\u5165\u7528\u6237\u540D"}),rules:[{required:!0,message:(0,i.jsx)(f.FormattedMessage,{id:"pages.login.username.required",defaultMessage:"\u8BF7\u8F93\u5165\u7528\u6237\u540D!"})}]}),(0,i.jsx)(z.Z.Password,{name:"passwd",fieldProps:{size:"large",prefix:(0,i.jsx)(B.Z,{})},placeholder:y.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"\u8BF7\u8F93\u5165\u5BC6\u7801"}),rules:[{required:!0,message:(0,i.jsx)(f.FormattedMessage,{id:"pages.login.password.required",defaultMessage:"\u8BF7\u8F93\u5165\u5BC6\u7801\uFF01"})}]})]}),P==="error"&&k==="mobile"&&(0,i.jsx)(ve,{content:"\u9A8C\u8BC1\u7801\u9519\u8BEF"}),K==="mobile"&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(z.Z,{fieldProps:{size:"large",prefix:(0,i.jsx)(ie.Z,{})},name:"mobile",placeholder:y.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"\u624B\u673A\u53F7"}),rules:[{required:!0,message:(0,i.jsx)(f.FormattedMessage,{id:"pages.login.phoneNumber.required",defaultMessage:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\uFF01"})},{pattern:/^1\d{10}$/,message:(0,i.jsx)(f.FormattedMessage,{id:"pages.login.phoneNumber.invalid",defaultMessage:"\u624B\u673A\u53F7\u683C\u5F0F\u9519\u8BEF\uFF01"})}]}),(0,i.jsx)(Z.Z,{fieldProps:{size:"large",prefix:(0,i.jsx)(B.Z,{})},captchaProps:{size:"large"},placeholder:y.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}),captchaTextRender:function(T,S){return T?"".concat(S," ").concat(y.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"\u83B7\u53D6\u9A8C\u8BC1\u7801"})):y.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"\u83B7\u53D6\u9A8C\u8BC1\u7801"})},name:"captcha",rules:[{required:!0,message:(0,i.jsx)(f.FormattedMessage,{id:"pages.login.captcha.required",defaultMessage:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801\uFF01"})}],onGetCaptcha:function(){var g=p()(t()().mark(function T(S){var m;return t()().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,se({phone:S});case 2:if(m=M.sent,m){M.next=5;break}return M.abrupt("return");case 5:D.ZP.success("\u83B7\u53D6\u9A8C\u8BC1\u7801\u6210\u529F\uFF01\u9A8C\u8BC1\u7801\u4E3A\uFF1A1234");case 6:case"end":return M.stop()}},T)}));return function(T){return g.apply(this,arguments)}}()})]}),(0,i.jsx)("div",{style:{marginBottom:24}})]}),(0,i.jsx)(Me,{})]})]})},je=Se},10979:function(ye,q,s){s.d(q,{HP:function(){return me},Hs:function(){return pe},Mz:function(){return ue},O_:function(){return he},S1:function(){return z},Th:function(){return D},_A:function(){return ge},bL:function(){return fe},bi:function(){return ie},do:function(){return V},id:function(){return ce},pz:function(){return ae},vX:function(){return de},x$:function(){return se},yo:function(){return J}});var re=s(17061),t=s.n(re),ne=s(42122),v=s.n(ne),te=s(17156),p=s.n(te),w=s(9927);function V(r,n){return f.apply(this,arguments)}function f(){return f=p()(t()().mark(function r(n,c){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,w.request)("/api/member/fsQrLogin",v()({method:"POST",headers:{"Content-Type":"application/json"},data:n},c||{})));case 1:case"end":return e.stop()}},r)})),f.apply(this,arguments)}function ce(r){return C.apply(this,arguments)}function C(){return C=p()(t()().mark(function r(n){return t()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,w.request)("/api/permission/getRoleList",{method:"GET",params:n}));case 1:case"end":return u.stop()}},r)})),C.apply(this,arguments)}function pe(r){return E.apply(this,arguments)}function E(){return E=p()(t()().mark(function r(n){return t()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,w.request)("/api/permission/getMenuPage",{method:"GET",params:n}));case 1:case"end":return u.stop()}},r)})),E.apply(this,arguments)}function ae(r){return x.apply(this,arguments)}function x(){return x=p()(t()().mark(function r(n){return t()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,w.request)("/api/permission/getRoleMenu",{method:"GET",params:n}));case 1:case"end":return u.stop()}},r)})),x.apply(this,arguments)}function de(r){return F.apply(this,arguments)}function F(){return F=p()(t()().mark(function r(n){return t()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,w.request)("/api/member/getMemberPage",{method:"GET",params:n}));case 1:case"end":return u.stop()}},r)})),F.apply(this,arguments)}function ge(r){return O.apply(this,arguments)}function O(){return O=p()(t()().mark(function r(n){return t()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,w.request)("/api/permission/getRoleMember",{method:"GET",params:n}));case 1:case"end":return u.stop()}},r)})),O.apply(this,arguments)}function me(r,n){return A.apply(this,arguments)}function A(){return A=p()(t()().mark(function r(n,c){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,w.request)("/api/permission/addRole",v()({method:"POST",headers:{"Content-Type":"application/json"},data:n},c||{})));case 1:case"end":return e.stop()}},r)})),A.apply(this,arguments)}function fe(r,n){return U.apply(this,arguments)}function U(){return U=p()(t()().mark(function r(n,c){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,w.request)("/api/permission/addMenu",v()({method:"POST",headers:{"Content-Type":"application/json"},data:n},c||{})));case 1:case"end":return e.stop()}},r)})),U.apply(this,arguments)}function he(r,n){return $.apply(this,arguments)}function $(){return $=p()(t()().mark(function r(n,c){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,w.request)("/api/permission/setRoleMenu",v()({method:"POST",headers:{"Content-Type":"application/json"},data:n},c||{})));case 1:case"end":return e.stop()}},r)})),$.apply(this,arguments)}function se(r,n){return I.apply(this,arguments)}function I(){return I=p()(t()().mark(function r(n,c){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,w.request)("/api/permission/saveRole",v()({method:"POST",headers:{"Content-Type":"application/json"},data:n},c||{})));case 1:case"end":return e.stop()}},r)})),I.apply(this,arguments)}function ue(r,n){return B.apply(this,arguments)}function B(){return B=p()(t()().mark(function r(n,c){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,w.request)("/api/permission/saveMenu",v()({method:"POST",headers:{"Content-Type":"application/json"},data:n},c||{})));case 1:case"end":return e.stop()}},r)})),B.apply(this,arguments)}function ie(r,n){return G.apply(this,arguments)}function G(){return G=p()(t()().mark(function r(n,c){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,w.request)("/api/permission/setRoleMember",v()({method:"POST",headers:{"Content-Type":"application/json"},data:n},c||{})));case 1:case"end":return e.stop()}},r)})),G.apply(this,arguments)}function z(r,n){return Z.apply(this,arguments)}function Z(){return Z=p()(t()().mark(function r(n,c){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,w.request)("/api/permission/delRole",v()({method:"POST",data:n},c||{})));case 1:case"end":return e.stop()}},r)})),Z.apply(this,arguments)}function J(r,n){return N.apply(this,arguments)}function N(){return N=p()(t()().mark(function r(n,c){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,w.request)("/api/permission/delMenu",v()({method:"POST",data:n},c||{})));case 1:case"end":return e.stop()}},r)})),N.apply(this,arguments)}function D(){return W.apply(this,arguments)}function W(){return W=p()(t()().mark(function r(){return t()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,w.request)("/api/permission/getMenuTree",{method:"GET"}));case 1:case"end":return c.stop()}},r)})),W.apply(this,arguments)}}}]);
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[366],{33726:function(ye,q,s){s.r(q),s.d(q,{default:function(){return je}});var ee=s(17061),t=s.n(ee),re=s(42122),v=s.n(re),ne=s(17156),p=s.n(ne),w=s(27424),V=s.n(w),f=s(9927);function ce(l){return C.apply(this,arguments)}function C(){return C=_asyncToGenerator(_regeneratorRuntime().mark(function l(o){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/api/currentUser",_objectSpread({method:"GET"},o||{})));case 1:case"end":return a.stop()}},l)})),C.apply(this,arguments)}function pe(l){return E.apply(this,arguments)}function E(){return E=_asyncToGenerator(_regeneratorRuntime().mark(function l(o){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/api/login/outLogin",_objectSpread({method:"POST"},o||{})));case 1:case"end":return a.stop()}},l)})),E.apply(this,arguments)}function te(l,o){return x.apply(this,arguments)}function x(){return x=p()(t()().mark(function l(o,d){return t()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,f.request)("/api/admin/login",v()({method:"POST",headers:{"Content-Type":"application/json"},data:o},d||{})));case 1:case"end":return h.stop()}},l)})),x.apply(this,arguments)}function de(l){return F.apply(this,arguments)}function F(){return F=_asyncToGenerator(_regeneratorRuntime().mark(function l(o){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/api/notices",_objectSpread({method:"GET"},o||{})));case 1:case"end":return a.stop()}},l)})),F.apply(this,arguments)}function ge(l,o){return O.apply(this,arguments)}function O(){return O=_asyncToGenerator(_regeneratorRuntime().mark(function l(o,d){return _regeneratorRuntime().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",request("/api/rule",_objectSpread({method:"GET",params:_objectSpread({},o)},d||{})));case 1:case"end":return h.stop()}},l)})),O.apply(this,arguments)}function me(l){return A.apply(this,arguments)}function A(){return A=_asyncToGenerator(_regeneratorRuntime().mark(function l(o){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/api/rule",_objectSpread({method:"PUT"},o||{})));case 1:case"end":return a.stop()}},l)})),A.apply(this,arguments)}function fe(l){return U.apply(this,arguments)}function U(){return U=_asyncToGenerator(_regeneratorRuntime().mark(function l(o){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/api/rule",_objectSpread({method:"POST"},o||{})));case 1:case"end":return a.stop()}},l)})),U.apply(this,arguments)}function he(l){return $.apply(this,arguments)}function $(){return $=_asyncToGenerator(_regeneratorRuntime().mark(function l(o){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/api/rule",_objectSpread({method:"DELETE"},o||{})));case 1:case"end":return a.stop()}},l)})),$.apply(this,arguments)}function ae(l,o){return I.apply(this,arguments)}function I(){return I=p()(t()().mark(function l(o,d){return t()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,f.request)("/api/login/captcha",v()({method:"GET",params:v()({},o)},d||{})));case 1:case"end":return h.stop()}},l)})),I.apply(this,arguments)}var se=s(87547),B=s(94149),ue=s(24454),z=s(84942),Z=s(78881),N=s(16434),J=s(88433),W=s(38925),D=s(45360),Q=s(64970),r=s(67610),n=s(67294),c=s(73935),u=s(10581),e=s(10979),i=s(85893),we=function(){var o=(0,f.useModel)("@@initialState"),d=o.initialState,a=o.setInitialState,h=(0,f.useIntl)(),k=(0,n.useRef)(""),X=(0,n.useRef)(""),K=(0,n.useRef)(null);(0,n.useEffect)(function(){return window.addEventListener("message",H,!1),function(){window.removeEventListener("message",H,!1)}},[]),(0,n.useLayoutEffect)(function(){var R;if(window.location.search.indexOf("code")!==-1){var _=new URLSearchParams(window.location.search),L=_.get("code");(0,e.do)({code:L}).then(function(G){var g=G;if(g.token){localStorage.setItem("Token",g==null?void 0:g.token),localStorage.setItem("userInfo",JSON.stringify(g==null?void 0:g.member));var T=h.formatMessage({id:"pages.login.success",defaultMessage:"\u767B\u5F55\u6210\u529F\uFF01"});D.ZP.success(T),ie(g==null?void 0:g.member);var S=new URL(window.location.href).searchParams;u.m.push(S.get("redirect")||"/");return}}).catch(function(G){var g=h.formatMessage({id:"pages.login.failure",defaultMessage:"\u767B\u5F55\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\uFF01"});console.log(G),D.ZP.error(g),u.m.push("/user/login")})}var y=window.location.hostname,oe=window.location.port;console.log(y),console.log(oe);var le=y;X.current="".concat((R=window)===null||R===void 0||(R=R.location)===null||R===void 0?void 0:R.origin,"/user/login"),k.current="https://passport.feishu.cn/suite/passport/oauth/authorize?client_id=cli_a3631f654971500d&redirect_uri=http://".concat(le,"/user/login&response_type=code&state=state123456"),console.log(k.current,"++++++++++++++++++++++++");var P=document.querySelector("#script");P||(P=document.createElement("script"),P.id="script",P.src="https://sf3-cn.feishucdn.com/obj/feishu-static/lark/passport/qrcode/LarkSSOSDKWebQRCode-1.0.2.js",document.querySelector("body").appendChild(P),setTimeout(function(){K.current=QRLogin({id:"login_container",goto:k.current,width:"250",height:"260",position:"fixed",top:"50vh",left:0,right:0,margin:"0 auto",display:"flex",justifyContent:"center"})},1e3))},[]);var ie=function(_){var L=_;L&&(0,c.flushSync)(function(){a(function(y){return v()(v()({},y),{},{currentUser:L})})})},H=function(_){var L=_.data,y=_.origin;window.location.search.indexOf("code")===-1&&(window.location.href="".concat(k.current,"&tmp_code=").concat(L))};return(0,i.jsx)("div",{id:"login_container"})},Me=we,Re=function(){var o=useEmotionCss(function(d){var a=d.token;return{marginLeft:"8px",color:"rgba(0, 0, 0, 0.2)",fontSize:"24px",verticalAlign:"middle",cursor:"pointer",transition:"color 0.3s","&:hover":{color:a.colorPrimaryActive}}});return _jsxs(_Fragment,{children:[_jsx(AlipayCircleOutlined,{className:o},"AlipayCircleOutlined"),_jsx(TaobaoCircleOutlined,{className:o},"TaobaoCircleOutlined"),_jsx(WeiboCircleOutlined,{className:o},"WeiboCircleOutlined")]})},Te=function(){var o=(0,J.l)(function(d){var a=d.token;return{width:42,height:42,lineHeight:"42px",position:"fixed",right:16,borderRadius:a.borderRadius,":hover":{backgroundColor:a.colorBgTextHover}}});return(0,i.jsx)("div",{className:o,"data-lang":!0,children:f.SelectLang&&(0,i.jsx)(f.SelectLang,{})})},ve=function(o){var d=o.content;return(0,i.jsx)(W.Z,{style:{marginBottom:24},message:d,type:"error",showIcon:!0})},Se=function(){var o=(0,n.useState)({}),d=V()(o,2),a=d[0],h=d[1],k=(0,n.useState)("account"),X=V()(k,2),K=X[0],ie=X[1],H=(0,f.useModel)("@@initialState"),R=H.initialState,_=H.setInitialState,L=(0,J.l)(function(){return{display:"flex",flexDirection:"column",height:"100vh",overflow:"auto",backgroundImage:"url('https://mdn.alipayobjects.com/yuyan_qk0oxh/afts/img/V-_oS6r-i7wAAAAAAAAAAAAAFl94AQBr')",backgroundSize:"100% 100%"}}),y=(0,f.useIntl)(),oe=function(){var g=p()(t()().mark(function T(){var S,m;return t()().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,R==null||(S=R.fetchUserInfo)===null||S===void 0?void 0:S.call(R);case 2:m=M.sent,m&&(0,c.flushSync)(function(){_(function(Y){return v()(v()({},Y),{},{currentUser:m})})});case 4:case"end":return M.stop()}},T)}));return function(){return g.apply(this,arguments)}}(),le=function(){var g=p()(t()().mark(function T(S){var m,b,M,Y;return t()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.prev=0,j.next=3,te(v()({},S));case 3:if(m=j.sent,localStorage.setItem("Token",m==null?void 0:m.token),m.user.name=m.user.username,localStorage.setItem("userInfo",JSON.stringify(m==null?void 0:m.user)),!m.token){j.next=15;break}return b=y.formatMessage({id:"pages.login.success",defaultMessage:"\u767B\u5F55\u6210\u529F\uFF01"}),D.ZP.success(b),j.next=12,oe();case 12:return M=new URL(window.location.href).searchParams,f.history.push(M.get("redirect")||"/"),j.abrupt("return");case 15:console.log(m),h(m),j.next=24;break;case 19:j.prev=19,j.t0=j.catch(0),Y=y.formatMessage({id:"pages.login.failure",defaultMessage:"\u767B\u5F55\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\uFF01"}),console.log(j.t0),D.ZP.error(Y);case 24:case"end":return j.stop()}},T,null,[[0,19]])}));return function(S){return g.apply(this,arguments)}}(),P=a.status,G=a.type;return(0,i.jsxs)("div",{className:L,children:[(0,i.jsx)(f.Helmet,{children:(0,i.jsxs)("title",{children:[y.formatMessage({id:"menu.login",defaultMessage:"\u767B\u5F55\u9875"}),"- ",r.Z.title]})}),(0,i.jsx)(Te,{}),(0,i.jsxs)("div",{style:{flex:"1",padding:"32px 0"},children:[(0,i.jsxs)(z.U,{contentStyle:{minWidth:280,maxWidth:"75vw"},logo:(0,i.jsx)("img",{alt:"logo",src:"/logo.svg"}),title:"\u521B\u5347\u65E0\u9650\u4E2D\u53F0\u7CFB\u7EDF",subTitle:y.formatMessage({id:"pages.layouts.userLayout.title"}),initialValues:{autoLogin:!0},onFinish:function(){var g=p()(t()().mark(function T(S){return t()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,le(S);case 2:case"end":return b.stop()}},T)}));return function(T){return g.apply(this,arguments)}}(),children:[(0,i.jsx)(Q.Z,{activeKey:K,onChange:ie,centered:!0,items:[{key:"account",label:y.formatMessage({id:"pages.login.accountLogin.tab",defaultMessage:"\u8D26\u6237\u5BC6\u7801\u767B\u5F55"})}]}),P==="error"&&G==="account"&&(0,i.jsx)(ve,{content:y.formatMessage({id:"pages.login.accountLogin.errorMessage",defaultMessage:"\u8D26\u6237\u6216\u5BC6\u7801\u9519\u8BEF"})}),K==="account"&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Z.Z,{name:"username",fieldProps:{size:"large",prefix:(0,i.jsx)(se.Z,{})},placeholder:y.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"\u8BF7\u8F93\u5165\u7528\u6237\u540D"}),rules:[{required:!0,message:(0,i.jsx)(f.FormattedMessage,{id:"pages.login.username.required",defaultMessage:"\u8BF7\u8F93\u5165\u7528\u6237\u540D!"})}]}),(0,i.jsx)(Z.Z.Password,{name:"passwd",fieldProps:{size:"large",prefix:(0,i.jsx)(B.Z,{})},placeholder:y.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"\u8BF7\u8F93\u5165\u5BC6\u7801"}),rules:[{required:!0,message:(0,i.jsx)(f.FormattedMessage,{id:"pages.login.password.required",defaultMessage:"\u8BF7\u8F93\u5165\u5BC6\u7801\uFF01"})}]})]}),P==="error"&&G==="mobile"&&(0,i.jsx)(ve,{content:"\u9A8C\u8BC1\u7801\u9519\u8BEF"}),K==="mobile"&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Z.Z,{fieldProps:{size:"large",prefix:(0,i.jsx)(ue.Z,{})},name:"mobile",placeholder:y.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"\u624B\u673A\u53F7"}),rules:[{required:!0,message:(0,i.jsx)(f.FormattedMessage,{id:"pages.login.phoneNumber.required",defaultMessage:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\uFF01"})},{pattern:/^1\d{10}$/,message:(0,i.jsx)(f.FormattedMessage,{id:"pages.login.phoneNumber.invalid",defaultMessage:"\u624B\u673A\u53F7\u683C\u5F0F\u9519\u8BEF\uFF01"})}]}),(0,i.jsx)(N.Z,{fieldProps:{size:"large",prefix:(0,i.jsx)(B.Z,{})},captchaProps:{size:"large"},placeholder:y.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}),captchaTextRender:function(T,S){return T?"".concat(S," ").concat(y.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"\u83B7\u53D6\u9A8C\u8BC1\u7801"})):y.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"\u83B7\u53D6\u9A8C\u8BC1\u7801"})},name:"captcha",rules:[{required:!0,message:(0,i.jsx)(f.FormattedMessage,{id:"pages.login.captcha.required",defaultMessage:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801\uFF01"})}],onGetCaptcha:function(){var g=p()(t()().mark(function T(S){var m;return t()().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,ae({phone:S});case 2:if(m=M.sent,m){M.next=5;break}return M.abrupt("return");case 5:D.ZP.success("\u83B7\u53D6\u9A8C\u8BC1\u7801\u6210\u529F\uFF01\u9A8C\u8BC1\u7801\u4E3A\uFF1A1234");case 6:case"end":return M.stop()}},T)}));return function(T){return g.apply(this,arguments)}}()})]}),(0,i.jsx)("div",{style:{marginBottom:24}})]}),(0,i.jsx)(Me,{})]})]})},je=Se},10979:function(ye,q,s){s.d(q,{HP:function(){return me},Hs:function(){return pe},Mz:function(){return se},O_:function(){return he},S1:function(){return Z},Th:function(){return D},_A:function(){return ge},bL:function(){return fe},bi:function(){return ue},do:function(){return V},id:function(){return ce},pz:function(){return te},vX:function(){return de},x$:function(){return ae},yo:function(){return J}});var ee=s(17061),t=s.n(ee),re=s(42122),v=s.n(re),ne=s(17156),p=s.n(ne),w=s(9927);function V(r,n){return f.apply(this,arguments)}function f(){return f=p()(t()().mark(function r(n,c){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,w.request)("/api/member/fsQrLogin",v()({method:"POST",headers:{"Content-Type":"application/json"},data:n},c||{})));case 1:case"end":return e.stop()}},r)})),f.apply(this,arguments)}function ce(r){return C.apply(this,arguments)}function C(){return C=p()(t()().mark(function r(n){return t()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,w.request)("/api/permission/getRoleList",{method:"GET",params:n}));case 1:case"end":return u.stop()}},r)})),C.apply(this,arguments)}function pe(r){return E.apply(this,arguments)}function E(){return E=p()(t()().mark(function r(n){return t()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,w.request)("/api/permission/getMenuPage",{method:"GET",params:n}));case 1:case"end":return u.stop()}},r)})),E.apply(this,arguments)}function te(r){return x.apply(this,arguments)}function x(){return x=p()(t()().mark(function r(n){return t()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,w.request)("/api/permission/getRoleMenu",{method:"GET",params:n}));case 1:case"end":return u.stop()}},r)})),x.apply(this,arguments)}function de(r){return F.apply(this,arguments)}function F(){return F=p()(t()().mark(function r(n){return t()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,w.request)("/api/member/getMemberPage",{method:"GET",params:n}));case 1:case"end":return u.stop()}},r)})),F.apply(this,arguments)}function ge(r){return O.apply(this,arguments)}function O(){return O=p()(t()().mark(function r(n){return t()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,w.request)("/api/permission/getRoleMember",{method:"GET",params:n}));case 1:case"end":return u.stop()}},r)})),O.apply(this,arguments)}function me(r,n){return A.apply(this,arguments)}function A(){return A=p()(t()().mark(function r(n,c){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,w.request)("/api/permission/addRole",v()({method:"POST",headers:{"Content-Type":"application/json"},data:n},c||{})));case 1:case"end":return e.stop()}},r)})),A.apply(this,arguments)}function fe(r,n){return U.apply(this,arguments)}function U(){return U=p()(t()().mark(function r(n,c){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,w.request)("/api/permission/addMenu",v()({method:"POST",headers:{"Content-Type":"application/json"},data:n},c||{})));case 1:case"end":return e.stop()}},r)})),U.apply(this,arguments)}function he(r,n){return $.apply(this,arguments)}function $(){return $=p()(t()().mark(function r(n,c){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,w.request)("/api/permission/setRoleMenu",v()({method:"POST",headers:{"Content-Type":"application/json"},data:n},c||{})));case 1:case"end":return e.stop()}},r)})),$.apply(this,arguments)}function ae(r,n){return I.apply(this,arguments)}function I(){return I=p()(t()().mark(function r(n,c){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,w.request)("/api/permission/saveRole",v()({method:"POST",headers:{"Content-Type":"application/json"},data:n},c||{})));case 1:case"end":return e.stop()}},r)})),I.apply(this,arguments)}function se(r,n){return B.apply(this,arguments)}function B(){return B=p()(t()().mark(function r(n,c){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,w.request)("/api/permission/saveMenu",v()({method:"POST",headers:{"Content-Type":"application/json"},data:n},c||{})));case 1:case"end":return e.stop()}},r)})),B.apply(this,arguments)}function ue(r,n){return z.apply(this,arguments)}function z(){return z=p()(t()().mark(function r(n,c){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,w.request)("/api/permission/setRoleMember",v()({method:"POST",headers:{"Content-Type":"application/json"},data:n},c||{})));case 1:case"end":return e.stop()}},r)})),z.apply(this,arguments)}function Z(r,n){return N.apply(this,arguments)}function N(){return N=p()(t()().mark(function r(n,c){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,w.request)("/api/permission/delRole",v()({method:"POST",data:n},c||{})));case 1:case"end":return e.stop()}},r)})),N.apply(this,arguments)}function J(r,n){return W.apply(this,arguments)}function W(){return W=p()(t()().mark(function r(n,c){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,w.request)("/api/permission/delMenu",v()({method:"POST",data:n},c||{})));case 1:case"end":return e.stop()}},r)})),W.apply(this,arguments)}function D(){return Q.apply(this,arguments)}function Q(){return Q=p()(t()().mark(function r(){return t()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,w.request)("/api/permission/getMenuTree",{method:"GET"}));case 1:case"end":return c.stop()}},r)})),Q.apply(this,arguments)}}}]);
......@@ -412,6 +412,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.`)}m.exports=h,m.exports.__esModule=!0,m.exports.default=m.exports},42122:function(m,h,e){var t=e(38416);function r(o,l){var c=Object.keys(o);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(o);l&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable})),c.push.apply(c,u)}return c}function i(o){for(var l=1;l<arguments.length;l++){var c=arguments[l]!=null?arguments[l]:{};l%2?r(Object(c),!0).forEach(function(u){t(o,u,c[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(c)):r(Object(c)).forEach(function(u){Object.defineProperty(o,u,Object.getOwnPropertyDescriptor(c,u))})}return o}m.exports=i,m.exports.__esModule=!0,m.exports.default=m.exports},70215:function(m,h,e){var t=e(7071);function r(i,o){if(i==null)return{};var l=t(i,o),c,u;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);for(u=0;u<s.length;u++)c=s[u],!(o.indexOf(c)>=0)&&Object.prototype.propertyIsEnumerable.call(i,c)&&(l[c]=i[c])}return l}m.exports=r,m.exports.__esModule=!0,m.exports.default=m.exports},7071:function(m){function h(e,t){if(e==null)return{};var r={},i=Object.keys(e),o,l;for(l=0;l<i.length;l++)o=i[l],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}m.exports=h,m.exports.__esModule=!0,m.exports.default=m.exports},94993:function(m,h,e){var t=e(18698).default,r=e(66115);function i(o,l){if(l&&(t(l)==="object"||typeof l=="function"))return l;if(l!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return r(o)}m.exports=i,m.exports.__esModule=!0,m.exports.default=m.exports},17061:function(m,h,e){var t=e(18698).default;function r(){"use strict";m.exports=r=function(){return o},m.exports.__esModule=!0,m.exports.default=m.exports;var i,o={},l=Object.prototype,c=l.hasOwnProperty,u=Object.defineProperty||function(R,O,F){R[O]=F.value},s=typeof Symbol=="function"?Symbol:{},d=s.iterator||"@@iterator",v=s.asyncIterator||"@@asyncIterator",y=s.toStringTag||"@@toStringTag";function f(R,O,F){return Object.defineProperty(R,O,{value:F,enumerable:!0,configurable:!0,writable:!0}),R[O]}try{f({},"")}catch(R){f=function(F,X,oe){return F[X]=oe}}function g(R,O,F,X){var oe=O&&O.prototype instanceof A?O:A,ue=Object.create(oe.prototype),ce=new L(X||[]);return u(ue,"_invoke",{value:ee(R,F,ce)}),ue}function b(R,O,F){try{return{type:"normal",arg:R.call(O,F)}}catch(X){return{type:"throw",arg:X}}}o.wrap=g;var w="suspendedStart",$="suspendedYield",I="executing",M="completed",C={};function A(){}function S(){}function N(){}var E={};f(E,d,function(){return this});var z=Object.getPrototypeOf,D=z&&z(z(B([])));D&&D!==l&&c.call(D,d)&&(E=D);var G=N.prototype=A.prototype=Object.create(E);function Q(R){["next","throw","return"].forEach(function(O){f(R,O,function(F){return this._invoke(O,F)})})}function q(R,O){function F(oe,ue,ce,ye){var Ce=b(R[oe],R,ue);if(Ce.type!=="throw"){var Le=Ce.arg,Te=Le.value;return Te&&t(Te)=="object"&&c.call(Te,"__await")?O.resolve(Te.__await).then(function(Ke){F("next",Ke,ce,ye)},function(Ke){F("throw",Ke,ce,ye)}):O.resolve(Te).then(function(Ke){Le.value=Ke,ce(Le)},function(Ke){return F("throw",Ke,ce,ye)})}ye(Ce.arg)}var X;u(this,"_invoke",{value:function(ue,ce){function ye(){return new O(function(Ce,Le){F(ue,ce,Ce,Le)})}return X=X?X.then(ye,ye):ye()}})}function ee(R,O,F){var X=w;return function(oe,ue){if(X===I)throw new Error("Generator is already running");if(X===M){if(oe==="throw")throw ue;return{value:i,done:!0}}for(F.method=oe,F.arg=ue;;){var ce=F.delegate;if(ce){var ye=te(ce,F);if(ye){if(ye===C)continue;return ye}}if(F.method==="next")F.sent=F._sent=F.arg;else if(F.method==="throw"){if(X===w)throw X=M,F.arg;F.dispatchException(F.arg)}else F.method==="return"&&F.abrupt("return",F.arg);X=I;var Ce=b(R,O,F);if(Ce.type==="normal"){if(X=F.done?M:$,Ce.arg===C)continue;return{value:Ce.arg,done:F.done}}Ce.type==="throw"&&(X=M,F.method="throw",F.arg=Ce.arg)}}}function te(R,O){var F=O.method,X=R.iterator[F];if(X===i)return O.delegate=null,F==="throw"&&R.iterator.return&&(O.method="return",O.arg=i,te(R,O),O.method==="throw")||F!=="return"&&(O.method="throw",O.arg=new TypeError("The iterator does not provide a '"+F+"' method")),C;var oe=b(X,R.iterator,O.arg);if(oe.type==="throw")return O.method="throw",O.arg=oe.arg,O.delegate=null,C;var ue=oe.arg;return ue?ue.done?(O[R.resultName]=ue.value,O.next=R.nextLoc,O.method!=="return"&&(O.method="next",O.arg=i),O.delegate=null,C):ue:(O.method="throw",O.arg=new TypeError("iterator result is not an object"),O.delegate=null,C)}function K(R){var O={tryLoc:R[0]};1 in R&&(O.catchLoc=R[1]),2 in R&&(O.finallyLoc=R[2],O.afterLoc=R[3]),this.tryEntries.push(O)}function ie(R){var O=R.completion||{};O.type="normal",delete O.arg,R.completion=O}function L(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(K,this),this.reset(!0)}function B(R){if(R||R===""){var O=R[d];if(O)return O.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var F=-1,X=function oe(){for(;++F<R.length;)if(c.call(R,F))return oe.value=R[F],oe.done=!1,oe;return oe.value=i,oe.done=!0,oe};return X.next=X}}throw new TypeError(t(R)+" is not iterable")}return S.prototype=N,u(G,"constructor",{value:N,configurable:!0}),u(N,"constructor",{value:S,configurable:!0}),S.displayName=f(N,y,"GeneratorFunction"),o.isGeneratorFunction=function(R){var O=typeof R=="function"&&R.constructor;return!!O&&(O===S||(O.displayName||O.name)==="GeneratorFunction")},o.mark=function(R){return Object.setPrototypeOf?Object.setPrototypeOf(R,N):(R.__proto__=N,f(R,y,"GeneratorFunction")),R.prototype=Object.create(G),R},o.awrap=function(R){return{__await:R}},Q(q.prototype),f(q.prototype,v,function(){return this}),o.AsyncIterator=q,o.async=function(R,O,F,X,oe){oe===void 0&&(oe=Promise);var ue=new q(g(R,O,F,X),oe);return o.isGeneratorFunction(O)?ue:ue.next().then(function(ce){return ce.done?ce.value:ue.next()})},Q(G),f(G,y,"Generator"),f(G,d,function(){return this}),f(G,"toString",function(){return"[object Generator]"}),o.keys=function(R){var O=Object(R),F=[];for(var X in O)F.push(X);return F.reverse(),function oe(){for(;F.length;){var ue=F.pop();if(ue in O)return oe.value=ue,oe.done=!1,oe}return oe.done=!0,oe}},o.values=B,L.prototype={constructor:L,reset:function(O){if(this.prev=0,this.next=0,this.sent=this._sent=i,this.done=!1,this.delegate=null,this.method="next",this.arg=i,this.tryEntries.forEach(ie),!O)for(var F in this)F.charAt(0)==="t"&&c.call(this,F)&&!isNaN(+F.slice(1))&&(this[F]=i)},stop:function(){this.done=!0;var O=this.tryEntries[0].completion;if(O.type==="throw")throw O.arg;return this.rval},dispatchException:function(O){if(this.done)throw O;var F=this;function X(Le,Te){return ce.type="throw",ce.arg=O,F.next=Le,Te&&(F.method="next",F.arg=i),!!Te}for(var oe=this.tryEntries.length-1;oe>=0;--oe){var ue=this.tryEntries[oe],ce=ue.completion;if(ue.tryLoc==="root")return X("end");if(ue.tryLoc<=this.prev){var ye=c.call(ue,"catchLoc"),Ce=c.call(ue,"finallyLoc");if(ye&&Ce){if(this.prev<ue.catchLoc)return X(ue.catchLoc,!0);if(this.prev<ue.finallyLoc)return X(ue.finallyLoc)}else if(ye){if(this.prev<ue.catchLoc)return X(ue.catchLoc,!0)}else{if(!Ce)throw new Error("try statement without catch or finally");if(this.prev<ue.finallyLoc)return X(ue.finallyLoc)}}}},abrupt:function(O,F){for(var X=this.tryEntries.length-1;X>=0;--X){var oe=this.tryEntries[X];if(oe.tryLoc<=this.prev&&c.call(oe,"finallyLoc")&&this.prev<oe.finallyLoc){var ue=oe;break}}ue&&(O==="break"||O==="continue")&&ue.tryLoc<=F&&F<=ue.finallyLoc&&(ue=null);var ce=ue?ue.completion:{};return ce.type=O,ce.arg=F,ue?(this.method="next",this.next=ue.finallyLoc,C):this.complete(ce)},complete:function(O,F){if(O.type==="throw")throw O.arg;return O.type==="break"||O.type==="continue"?this.next=O.arg:O.type==="return"?(this.rval=this.arg=O.arg,this.method="return",this.next="end"):O.type==="normal"&&F&&(this.next=F),C},finish:function(O){for(var F=this.tryEntries.length-1;F>=0;--F){var X=this.tryEntries[F];if(X.finallyLoc===O)return this.complete(X.completion,X.afterLoc),ie(X),C}},catch:function(O){for(var F=this.tryEntries.length-1;F>=0;--F){var X=this.tryEntries[F];if(X.tryLoc===O){var oe=X.completion;if(oe.type==="throw"){var ue=oe.arg;ie(X)}return ue}}throw new Error("illegal catch attempt")},delegateYield:function(O,F,X){return this.delegate={iterator:B(O),resultName:F,nextLoc:X},this.method==="next"&&(this.arg=i),C}},o}m.exports=r,m.exports.__esModule=!0,m.exports.default=m.exports},6015:function(m){function h(e,t){return m.exports=h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},m.exports.__esModule=!0,m.exports.default=m.exports,h(e,t)}m.exports=h,m.exports.__esModule=!0,m.exports.default=m.exports},27424:function(m,h,e){var t=e(85372),r=e(68872),i=e(86116),o=e(12218);function l(c,u){return t(c)||r(c,u)||i(c,u)||o()}m.exports=l,m.exports.__esModule=!0,m.exports.default=m.exports},861:function(m,h,e){var t=e(63405),r=e(79498),i=e(86116),o=e(42281);function l(c){return t(c)||r(c)||i(c)||o()}m.exports=l,m.exports.__esModule=!0,m.exports.default=m.exports},95036:function(m,h,e){var t=e(18698).default;function r(i,o){if(t(i)!=="object"||i===null)return i;var l=i[Symbol.toPrimitive];if(l!==void 0){var c=l.call(i,o||"default");if(t(c)!=="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(i)}m.exports=r,m.exports.__esModule=!0,m.exports.default=m.exports},64062:function(m,h,e){var t=e(18698).default,r=e(95036);function i(o){var l=r(o,"string");return t(l)==="symbol"?l:String(l)}m.exports=i,m.exports.__esModule=!0,m.exports.default=m.exports},18698:function(m){function h(e){"@babel/helpers - typeof";return m.exports=h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m.exports.__esModule=!0,m.exports.default=m.exports,h(e)}m.exports=h,m.exports.__esModule=!0,m.exports.default=m.exports},86116:function(m,h,e){var t=e(73897);function r(i,o){if(i){if(typeof i=="string")return t(i,o);var l=Object.prototype.toString.call(i).slice(8,-1);if(l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set")return Array.from(i);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return t(i,o)}}m.exports=r,m.exports.__esModule=!0,m.exports.default=m.exports},30907:function(m,h,e){"use strict";e.d(h,{Z:function(){return t}});function t(r,i){(i==null||i>r.length)&&(i=r.length);for(var o=0,l=new Array(i);o<i;o++)l[o]=r[o];return l}},83878:function(m,h,e){"use strict";e.d(h,{Z:function(){return t}});function t(r){if(Array.isArray(r))return r}},97326:function(m,h,e){"use strict";e.d(h,{Z:function(){return t}});function t(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}},15861:function(m,h,e){"use strict";e.d(h,{Z:function(){return r}});function t(i,o,l,c,u,s,d){try{var v=i[s](d),y=v.value}catch(f){l(f);return}v.done?o(y):Promise.resolve(y).then(c,u)}function r(i){return function(){var o=this,l=arguments;return new Promise(function(c,u){var s=i.apply(o,l);function d(y){t(s,c,u,d,v,"next",y)}function v(y){t(s,c,u,d,v,"throw",y)}d(void 0)})}}},15671:function(m,h,e){"use strict";e.d(h,{Z:function(){return t}});function t(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}},43144:function(m,h,e){"use strict";e.d(h,{Z:function(){return i}});var t=e(83997);function r(o,l){for(var c=0;c<l.length;c++){var u=l[c];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(o,(0,t.Z)(u.key),u)}}function i(o,l,c){return l&&r(o.prototype,l),c&&r(o,c),Object.defineProperty(o,"prototype",{writable:!1}),o}},37762:function(m,h,e){"use strict";e.d(h,{Z:function(){return r}});var t=e(40181);function r(i,o){var l=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!l){if(Array.isArray(i)||(l=(0,t.Z)(i))||o&&i&&typeof i.length=="number"){l&&(i=l);var c=0,u=function(){};return{s:u,n:function(){return c>=i.length?{done:!0}:{done:!1,value:i[c++]}},e:function(f){throw f},f:u}}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 s=!0,d=!1,v;return{s:function(){l=l.call(i)},n:function(){var f=l.next();return s=f.done,f},e:function(f){d=!0,v=f},f:function(){try{!s&&l.return!=null&&l.return()}finally{if(d)throw v}}}}},73568:function(m,h,e){"use strict";e.d(h,{Z:function(){return c}});function t(u){return t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(d){return d.__proto__||Object.getPrototypeOf(d)},t(u)}function r(){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(u){return!1}}var i=e(71002),o=e(97326);function l(u,s){if(s&&((0,i.Z)(s)==="object"||typeof s=="function"))return s;if(s!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(u)}function c(u){var s=r();return function(){var v=t(u),y;if(s){var f=t(this).constructor;y=Reflect.construct(v,arguments,f)}else y=v.apply(this,arguments);return l(this,y)}}},4942:function(m,h,e){"use strict";e.d(h,{Z:function(){return r}});var t=e(83997);function r(i,o,l){return o=(0,t.Z)(o),o in i?Object.defineProperty(i,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):i[o]=l,i}},87462:function(m,h,e){"use strict";e.d(h,{Z:function(){return t}});function t(){return t=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var o=arguments[i];for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(r[l]=o[l])}return r},t.apply(this,arguments)}},32531:function(m,h,e){"use strict";e.d(h,{Z:function(){return r}});function t(i,o){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,u){return c.__proto__=u,c},t(i,o)}function r(i,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(o&&o.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),o&&t(i,o)}},59199:function(m,h,e){"use strict";e.d(h,{Z:function(){return t}});function t(r){if(typeof Symbol!="undefined"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}},25267:function(m,h,e){"use strict";e.d(h,{Z:function(){return t}});function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}},1413:function(m,h,e){"use strict";e.d(h,{Z:function(){return i}});var t=e(4942);function r(o,l){var c=Object.keys(o);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(o);l&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable})),c.push.apply(c,u)}return c}function i(o){for(var l=1;l<arguments.length;l++){var c=arguments[l]!=null?arguments[l]:{};l%2?r(Object(c),!0).forEach(function(u){(0,t.Z)(o,u,c[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(c)):r(Object(c)).forEach(function(u){Object.defineProperty(o,u,Object.getOwnPropertyDescriptor(c,u))})}return o}},91:function(m,h,e){"use strict";e.d(h,{Z:function(){return r}});function t(i,o){if(i==null)return{};var l={},c=Object.keys(i),u,s;for(s=0;s<c.length;s++)u=c[s],!(o.indexOf(u)>=0)&&(l[u]=i[u]);return l}function r(i,o){if(i==null)return{};var l=t(i,o),c,u;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);for(u=0;u<s.length;u++)c=s[u],!(o.indexOf(c)>=0)&&Object.prototype.propertyIsEnumerable.call(i,c)&&(l[c]=i[c])}return l}},74165:function(m,h,e){"use strict";e.d(h,{Z:function(){return r}});var t=e(71002);function r(){"use strict";r=function(){return o};var i,o={},l=Object.prototype,c=l.hasOwnProperty,u=Object.defineProperty||function(R,O,F){R[O]=F.value},s=typeof Symbol=="function"?Symbol:{},d=s.iterator||"@@iterator",v=s.asyncIterator||"@@asyncIterator",y=s.toStringTag||"@@toStringTag";function f(R,O,F){return Object.defineProperty(R,O,{value:F,enumerable:!0,configurable:!0,writable:!0}),R[O]}try{f({},"")}catch(R){f=function(F,X,oe){return F[X]=oe}}function g(R,O,F,X){var oe=O&&O.prototype instanceof A?O:A,ue=Object.create(oe.prototype),ce=new L(X||[]);return u(ue,"_invoke",{value:ee(R,F,ce)}),ue}function b(R,O,F){try{return{type:"normal",arg:R.call(O,F)}}catch(X){return{type:"throw",arg:X}}}o.wrap=g;var w="suspendedStart",$="suspendedYield",I="executing",M="completed",C={};function A(){}function S(){}function N(){}var E={};f(E,d,function(){return this});var z=Object.getPrototypeOf,D=z&&z(z(B([])));D&&D!==l&&c.call(D,d)&&(E=D);var G=N.prototype=A.prototype=Object.create(E);function Q(R){["next","throw","return"].forEach(function(O){f(R,O,function(F){return this._invoke(O,F)})})}function q(R,O){function F(oe,ue,ce,ye){var Ce=b(R[oe],R,ue);if(Ce.type!=="throw"){var Le=Ce.arg,Te=Le.value;return Te&&(0,t.Z)(Te)=="object"&&c.call(Te,"__await")?O.resolve(Te.__await).then(function(Ke){F("next",Ke,ce,ye)},function(Ke){F("throw",Ke,ce,ye)}):O.resolve(Te).then(function(Ke){Le.value=Ke,ce(Le)},function(Ke){return F("throw",Ke,ce,ye)})}ye(Ce.arg)}var X;u(this,"_invoke",{value:function(ue,ce){function ye(){return new O(function(Ce,Le){F(ue,ce,Ce,Le)})}return X=X?X.then(ye,ye):ye()}})}function ee(R,O,F){var X=w;return function(oe,ue){if(X===I)throw new Error("Generator is already running");if(X===M){if(oe==="throw")throw ue;return{value:i,done:!0}}for(F.method=oe,F.arg=ue;;){var ce=F.delegate;if(ce){var ye=te(ce,F);if(ye){if(ye===C)continue;return ye}}if(F.method==="next")F.sent=F._sent=F.arg;else if(F.method==="throw"){if(X===w)throw X=M,F.arg;F.dispatchException(F.arg)}else F.method==="return"&&F.abrupt("return",F.arg);X=I;var Ce=b(R,O,F);if(Ce.type==="normal"){if(X=F.done?M:$,Ce.arg===C)continue;return{value:Ce.arg,done:F.done}}Ce.type==="throw"&&(X=M,F.method="throw",F.arg=Ce.arg)}}}function te(R,O){var F=O.method,X=R.iterator[F];if(X===i)return O.delegate=null,F==="throw"&&R.iterator.return&&(O.method="return",O.arg=i,te(R,O),O.method==="throw")||F!=="return"&&(O.method="throw",O.arg=new TypeError("The iterator does not provide a '"+F+"' method")),C;var oe=b(X,R.iterator,O.arg);if(oe.type==="throw")return O.method="throw",O.arg=oe.arg,O.delegate=null,C;var ue=oe.arg;return ue?ue.done?(O[R.resultName]=ue.value,O.next=R.nextLoc,O.method!=="return"&&(O.method="next",O.arg=i),O.delegate=null,C):ue:(O.method="throw",O.arg=new TypeError("iterator result is not an object"),O.delegate=null,C)}function K(R){var O={tryLoc:R[0]};1 in R&&(O.catchLoc=R[1]),2 in R&&(O.finallyLoc=R[2],O.afterLoc=R[3]),this.tryEntries.push(O)}function ie(R){var O=R.completion||{};O.type="normal",delete O.arg,R.completion=O}function L(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(K,this),this.reset(!0)}function B(R){if(R||R===""){var O=R[d];if(O)return O.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var F=-1,X=function oe(){for(;++F<R.length;)if(c.call(R,F))return oe.value=R[F],oe.done=!1,oe;return oe.value=i,oe.done=!0,oe};return X.next=X}}throw new TypeError((0,t.Z)(R)+" is not iterable")}return S.prototype=N,u(G,"constructor",{value:N,configurable:!0}),u(N,"constructor",{value:S,configurable:!0}),S.displayName=f(N,y,"GeneratorFunction"),o.isGeneratorFunction=function(R){var O=typeof R=="function"&&R.constructor;return!!O&&(O===S||(O.displayName||O.name)==="GeneratorFunction")},o.mark=function(R){return Object.setPrototypeOf?Object.setPrototypeOf(R,N):(R.__proto__=N,f(R,y,"GeneratorFunction")),R.prototype=Object.create(G),R},o.awrap=function(R){return{__await:R}},Q(q.prototype),f(q.prototype,v,function(){return this}),o.AsyncIterator=q,o.async=function(R,O,F,X,oe){oe===void 0&&(oe=Promise);var ue=new q(g(R,O,F,X),oe);return o.isGeneratorFunction(O)?ue:ue.next().then(function(ce){return ce.done?ce.value:ue.next()})},Q(G),f(G,y,"Generator"),f(G,d,function(){return this}),f(G,"toString",function(){return"[object Generator]"}),o.keys=function(R){var O=Object(R),F=[];for(var X in O)F.push(X);return F.reverse(),function oe(){for(;F.length;){var ue=F.pop();if(ue in O)return oe.value=ue,oe.done=!1,oe}return oe.done=!0,oe}},o.values=B,L.prototype={constructor:L,reset:function(O){if(this.prev=0,this.next=0,this.sent=this._sent=i,this.done=!1,this.delegate=null,this.method="next",this.arg=i,this.tryEntries.forEach(ie),!O)for(var F in this)F.charAt(0)==="t"&&c.call(this,F)&&!isNaN(+F.slice(1))&&(this[F]=i)},stop:function(){this.done=!0;var O=this.tryEntries[0].completion;if(O.type==="throw")throw O.arg;return this.rval},dispatchException:function(O){if(this.done)throw O;var F=this;function X(Le,Te){return ce.type="throw",ce.arg=O,F.next=Le,Te&&(F.method="next",F.arg=i),!!Te}for(var oe=this.tryEntries.length-1;oe>=0;--oe){var ue=this.tryEntries[oe],ce=ue.completion;if(ue.tryLoc==="root")return X("end");if(ue.tryLoc<=this.prev){var ye=c.call(ue,"catchLoc"),Ce=c.call(ue,"finallyLoc");if(ye&&Ce){if(this.prev<ue.catchLoc)return X(ue.catchLoc,!0);if(this.prev<ue.finallyLoc)return X(ue.finallyLoc)}else if(ye){if(this.prev<ue.catchLoc)return X(ue.catchLoc,!0)}else{if(!Ce)throw new Error("try statement without catch or finally");if(this.prev<ue.finallyLoc)return X(ue.finallyLoc)}}}},abrupt:function(O,F){for(var X=this.tryEntries.length-1;X>=0;--X){var oe=this.tryEntries[X];if(oe.tryLoc<=this.prev&&c.call(oe,"finallyLoc")&&this.prev<oe.finallyLoc){var ue=oe;break}}ue&&(O==="break"||O==="continue")&&ue.tryLoc<=F&&F<=ue.finallyLoc&&(ue=null);var ce=ue?ue.completion:{};return ce.type=O,ce.arg=F,ue?(this.method="next",this.next=ue.finallyLoc,C):this.complete(ce)},complete:function(O,F){if(O.type==="throw")throw O.arg;return O.type==="break"||O.type==="continue"?this.next=O.arg:O.type==="return"?(this.rval=this.arg=O.arg,this.method="return",this.next="end"):O.type==="normal"&&F&&(this.next=F),C},finish:function(O){for(var F=this.tryEntries.length-1;F>=0;--F){var X=this.tryEntries[F];if(X.finallyLoc===O)return this.complete(X.completion,X.afterLoc),ie(X),C}},catch:function(O){for(var F=this.tryEntries.length-1;F>=0;--F){var X=this.tryEntries[F];if(X.tryLoc===O){var oe=X.completion;if(oe.type==="throw"){var ue=oe.arg;ie(X)}return ue}}throw new Error("illegal catch attempt")},delegateYield:function(O,F,X){return this.delegate={iterator:B(O),resultName:F,nextLoc:X},this.method==="next"&&(this.arg=i),C}},o}},97685:function(m,h,e){"use strict";e.d(h,{Z:function(){return l}});var t=e(83878);function r(c,u){var s=c==null?null:typeof Symbol!="undefined"&&c[Symbol.iterator]||c["@@iterator"];if(s!=null){var d,v,y,f,g=[],b=!0,w=!1;try{if(y=(s=s.call(c)).next,u===0){if(Object(s)!==s)return;b=!1}else for(;!(b=(d=y.call(s)).done)&&(g.push(d.value),g.length!==u);b=!0);}catch($){w=!0,v=$}finally{try{if(!b&&s.return!=null&&(f=s.return(),Object(f)!==f))return}finally{if(w)throw v}}return g}}var i=e(40181),o=e(25267);function l(c,u){return(0,t.Z)(c)||r(c,u)||(0,i.Z)(c,u)||(0,o.Z)()}},84506:function(m,h,e){"use strict";e.d(h,{Z:function(){return l}});var t=e(83878),r=e(59199),i=e(40181),o=e(25267);function l(c){return(0,t.Z)(c)||(0,r.Z)(c)||(0,i.Z)(c)||(0,o.Z)()}},74902:function(m,h,e){"use strict";e.d(h,{Z:function(){return c}});var t=e(30907);function r(u){if(Array.isArray(u))return(0,t.Z)(u)}var i=e(59199),o=e(40181);function l(){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 c(u){return r(u)||(0,i.Z)(u)||(0,o.Z)(u)||l()}},83997:function(m,h,e){"use strict";e.d(h,{Z:function(){return i}});var t=e(71002);function r(o,l){if((0,t.Z)(o)!=="object"||o===null)return o;var c=o[Symbol.toPrimitive];if(c!==void 0){var u=c.call(o,l||"default");if((0,t.Z)(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(o)}function i(o){var l=r(o,"string");return(0,t.Z)(l)==="symbol"?l:String(l)}},71002:function(m,h,e){"use strict";e.d(h,{Z:function(){return t}});function t(r){"@babel/helpers - typeof";return t=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},t(r)}},40181:function(m,h,e){"use strict";e.d(h,{Z:function(){return r}});var t=e(30907);function r(i,o){if(i){if(typeof i=="string")return(0,t.Z)(i,o);var l=Object.prototype.toString.call(i).slice(8,-1);if(l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set")return Array.from(i);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return(0,t.Z)(i,o)}}},59734:function(m,h,e){"use strict";e.d(h,{J$:function(){return Be},ZP:function(){return tt},kY:function(){return pe}});var t=e(67294),r=e(61688);const i=()=>{},o=i(),l=Object,c=Re=>Re===o,u=Re=>typeof Re=="function",s=(Re,Xe)=>Fl(Fl({},Re),Xe),d=Re=>u(Re.then),v=new WeakMap;let y=0;const f=Re=>{const Xe=typeof Re,Ze=Re&&Re.constructor,_e=Ze==Date;let at,rt;if(l(Re)===Re&&!_e&&Ze!=RegExp){if(at=v.get(Re),at)return at;if(at=++y+"~",v.set(Re,at),Ze==Array){for(at="@",rt=0;rt<Re.length;rt++)at+=f(Re[rt])+",";v.set(Re,at)}if(Ze==l){at="#";const Tt=l.keys(Re).sort();for(;!c(rt=Tt.pop());)c(Re[rt])||(at+=rt+":"+f(Re[rt])+",");v.set(Re,at)}}else at=_e?Re.toJSON():Xe=="symbol"?Re.toString():Xe=="string"?JSON.stringify(Re):""+Re;return at},g=new WeakMap,b={},w={},$="undefined",I=typeof window!=$,M=typeof document!=$,C=()=>I&&typeof window.requestAnimationFrame!=$,A=(Re,Xe)=>{const Ze=g.get(Re);return[()=>!c(Xe)&&Re.get(Xe)||b,_e=>{if(!c(Xe)){const at=Re.get(Xe);Xe in w||(w[Xe]=at),Ze[5](Xe,s(at,_e),at||b)}},Ze[6],()=>!c(Xe)&&Xe in w?w[Xe]:!c(Xe)&&Re.get(Xe)||b]};let S=!0;const N=()=>S,[E,z]=I&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[i,i],D=()=>{const Re=M&&document.visibilityState;return c(Re)||Re!=="hidden"},G=Re=>(M&&document.addEventListener("visibilitychange",Re),E("focus",Re),()=>{M&&document.removeEventListener("visibilitychange",Re),z("focus",Re)}),Q=Re=>{const Xe=()=>{S=!0,Re()},Ze=()=>{S=!1};return E("online",Xe),E("offline",Ze),()=>{z("online",Xe),z("offline",Ze)}},q={isOnline:N,isVisible:D},ee={initFocus:G,initReconnect:Q},te=!t.useId,K=!I||"Deno"in window,ie=Re=>C()?window.requestAnimationFrame(Re):setTimeout(Re,1),L=K?t.useEffect:t.useLayoutEffect,B=typeof navigator!="undefined"&&navigator.connection,R=!K&&B&&(["slow-2g","2g"].includes(B.effectiveType)||B.saveData),O=Re=>{if(u(Re))try{Re=Re()}catch(Ze){Re=""}const Xe=Re;return Re=typeof Re=="string"?Re:(Array.isArray(Re)?Re.length:Re)?f(Re):"",[Re,Xe]};let F=0;const X=()=>++F,oe=0,ue=1,ce=2;var Ce={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:oe,MUTATE_EVENT:ce,RECONNECT_EVENT:ue};function Le(...Re){return Iu(this,null,function*(){const[Xe,Ze,_e,at]=Re,rt=s({populateCache:!0,throwOnError:!0},typeof at=="boolean"?{revalidate:at}:at||{});let Tt=rt.populateCache;const Ot=rt.rollbackOnError;let Nt=rt.optimisticData;const vn=rt.revalidate!==!1,At=Yt=>typeof Ot=="function"?Ot(Yt):Ot!==!1,Kt=rt.throwOnError;if(u(Ze)){const Yt=Ze,jt=[],Xt=Xe.keys();for(const Jt of Xt)!/^\$(inf|sub)\$/.test(Jt)&&Yt(Xe.get(Jt)._k)&&jt.push(Jt);return Promise.all(jt.map(qt))}return qt(Ze);function qt(Yt){return Iu(this,null,function*(){const[jt]=O(Yt);if(!jt)return;const[Xt,Jt]=A(Xe,jt),[Dt,Wt,On,pn]=g.get(Xe),kn=()=>{const Vn=Dt[jt];return vn&&(delete On[jt],delete pn[jt],Vn&&Vn[0])?Vn[0](ce).then(()=>Xt().data):Xt().data};if(Re.length<3)return kn();let In=_e,fn;const mn=X();Wt[jt]=[mn,0];const gn=!c(Nt),Ln=Xt(),xr=Ln.data,rr=Ln._c,Ar=c(rr)?xr:rr;if(gn&&(Nt=u(Nt)?Nt(Ar,xr):Nt,Jt({data:Nt,_c:Ar})),u(In))try{In=In(Ar)}catch(Vn){fn=Vn}if(In&&d(In))if(In=yield In.catch(Vn=>{fn=Vn}),mn!==Wt[jt][0]){if(fn)throw fn;return In}else fn&&gn&&At(fn)&&(Tt=!0,Jt({data:Ar,_c:o}));if(Tt&&!fn)if(u(Tt)){const Vn=Tt(In,Ar);Jt({data:Vn,error:o,_c:o})}else Jt({data:In,error:o,_c:o});if(Wt[jt][1]=X(),Promise.resolve(kn()).then(()=>{Jt({_c:o})}),fn){if(Kt)throw fn;return}return In})}})}const Te=(Re,Xe)=>{for(const Ze in Re)Re[Ze][0]&&Re[Ze][0](Xe)},Ke=(Re,Xe)=>{if(!g.has(Re)){const Ze=s(ee,Xe),_e={},at=Le.bind(o,Re);let rt=i;const Tt={},Ot=(At,Kt)=>{const qt=Tt[At]||[];return Tt[At]=qt,qt.push(Kt),()=>qt.splice(qt.indexOf(Kt),1)},Nt=(At,Kt,qt)=>{Re.set(At,Kt);const Yt=Tt[At];if(Yt)for(const jt of Yt)jt(Kt,qt)},vn=()=>{if(!g.has(Re)&&(g.set(Re,[_e,{},{},{},at,Nt,Ot]),!K)){const At=Ze.initFocus(setTimeout.bind(o,Te.bind(o,_e,oe))),Kt=Ze.initReconnect(setTimeout.bind(o,Te.bind(o,_e,ue)));rt=()=>{At&&At(),Kt&&Kt(),g.delete(Re)}}};return vn(),[Re,at,vn,rt]}return[Re,g.get(Re)[4]]},et=(Re,Xe,Ze,_e,at)=>{const rt=Ze.errorRetryCount,Tt=at.retryCount,Ot=~~((Math.random()+.5)*(1<<(Tt<8?Tt:8)))*Ze.errorRetryInterval;!c(rt)&&Tt>rt||setTimeout(_e,Ot,at)},xt=(Re,Xe)=>f(Re)==f(Xe),[Qe,ft]=Ke(new Map),Ue=s({onLoadingSlow:i,onSuccess:i,onError:i,onErrorRetry:et,onDiscarded:i,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:R?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:R?5e3:3e3,compare:xt,isPaused:()=>!1,cache:Qe,mutate:ft,fallback:{}},q),xe=(Re,Xe)=>{const Ze=s(Re,Xe);if(Xe){const{use:_e,fallback:at}=Re,{use:rt,fallback:Tt}=Xe;_e&&rt&&(Ze.use=_e.concat(rt)),at&&Tt&&(Ze.fallback=s(at,Tt))}return Ze},H=(0,t.createContext)({}),T=Re=>{const{value:Xe}=Re,Ze=(0,t.useContext)(H),_e=u(Xe),at=(0,t.useMemo)(()=>_e?Xe(Ze):Xe,[_e,Ze,Xe]),rt=(0,t.useMemo)(()=>_e?at:xe(Ze,at),[_e,Ze,at]),Tt=at&&at.provider,Ot=(0,t.useRef)(o);Tt&&!Ot.current&&(Ot.current=Ke(Tt(rt.cache||Qe),at));const Nt=Ot.current;return Nt&&(rt.cache=Nt[0],rt.mutate=Nt[1]),L(()=>{if(Nt)return Nt[2]&&Nt[2](),Nt[3]},[]),(0,t.createElement)(H.Provider,s(Re,{value:rt}))},x="$inf$",W=I&&window.__SWR_DEVTOOLS_USE__,k=W?window.__SWR_DEVTOOLS_USE__:[],re=()=>{W&&(window.__SWR_DEVTOOLS_REACT__=t)},se=Re=>u(Re[1])?[Re[0],Re[1],Re[2]||{}]:[Re[0],null,(Re[1]===null?Re[2]:Re[1])||{}],pe=()=>s(Ue,(0,t.useContext)(H)),Ie=(Re,Xe)=>{const[Ze,_e]=O(Re),[,,,at]=g.get(Qe);if(at[Ze])return at[Ze];const rt=Xe(_e);return at[Ze]=rt,rt},le=Re=>(Xe,Ze,_e)=>Re(Xe,Ze&&((...rt)=>{const[Tt]=O(Xe),[,,,Ot]=g.get(Qe);if(Tt.startsWith(x))return Ze(...rt);const Nt=Ot[Tt];return c(Nt)?Ze(...rt):(delete Ot[Tt],Nt)}),_e),ge=k.concat(le),Ve=Re=>function(...Ze){const _e=pe(),[at,rt,Tt]=se(Ze),Ot=xe(_e,Tt);let Nt=Re;const{use:vn}=Ot,At=(vn||[]).concat(ge);for(let Kt=At.length;Kt--;)Nt=At[Kt](Nt);return Nt(at,rt||Ot.fetcher||null,Ot)},ze=(Re,Xe,Ze)=>{const _e=Xe[Re]||(Xe[Re]=[]);return _e.push(Ze),()=>{const at=_e.indexOf(Ze);at>=0&&(_e[at]=_e[_e.length-1],_e.pop())}},_=(Re,Xe)=>(...Ze)=>{const[_e,at,rt]=se(Ze),Tt=(rt.use||[]).concat(Xe);return Re(_e,at,Jc(Fl({},rt),{use:Tt}))};re();const Oe=Re=>serialize(Re)[0],$e=t.use||(Re=>{if(Re.status==="pending")throw Re;if(Re.status==="fulfilled")return Re.value;throw Re.status==="rejected"?Re.reason:(Re.status="pending",Re.then(Xe=>{Re.status="fulfilled",Re.value=Xe},Xe=>{Re.status="rejected",Re.reason=Xe}),Re)}),be={dedupe:!0},He=(Re,Xe,Ze)=>{const{cache:_e,compare:at,suspense:rt,fallbackData:Tt,revalidateOnMount:Ot,revalidateIfStale:Nt,refreshInterval:vn,refreshWhenHidden:At,refreshWhenOffline:Kt,keepPreviousData:qt}=Ze,[Yt,jt,Xt,Jt]=g.get(_e),[Dt,Wt]=O(Re),On=(0,t.useRef)(!1),pn=(0,t.useRef)(!1),kn=(0,t.useRef)(Dt),In=(0,t.useRef)(Xe),fn=(0,t.useRef)(Ze),mn=()=>fn.current,gn=()=>mn().isVisible()&&mn().isOnline(),[Ln,xr,rr,Ar]=A(_e,Dt),Vn=(0,t.useRef)({}).current,pr=c(Tt)?Ze.fallback[Dt]:Tt,Xn=(ht,Se)=>{for(const he in Vn){const De=he;if(De==="data"){if(!at(ht[De],Se[De])&&(!c(ht[De])||!at(Vr,Se[De])))return!1}else if(Se[De]!==ht[De])return!1}return!0},hr=(0,t.useMemo)(()=>{const ht=(()=>!Dt||!Xe?!1:c(Ot)?mn().isPaused()||rt?!1:c(Nt)?!0:Nt:Ot)(),Se=Ne=>{const it=s(Ne);return delete it._k,ht?Fl({isValidating:!0,isLoading:!0},it):it},he=Ln(),De=Ar(),ae=Se(he),de=he===De?ae:Se(De);let Ye=ae;return[()=>{const Ne=Se(Ln());return Xn(Ne,Ye)?(Ye.data=Ne.data,Ye.isLoading=Ne.isLoading,Ye.isValidating=Ne.isValidating,Ye.error=Ne.error,Ye):(Ye=Ne,Ne)},()=>de]},[_e,Dt]),Rr=(0,r.useSyncExternalStore)((0,t.useCallback)(ht=>rr(Dt,(Se,he)=>{Xn(he,Se)||ht()}),[_e,Dt]),hr[0],hr[1]),yn=!On.current,qn=Yt[Dt]&&Yt[Dt].length>0,Fn=Rr.data,vr=c(Fn)?pr:Fn,tr=Rr.error,Lr=(0,t.useRef)(vr),Vr=qt?c(Fn)?Lr.current:Fn:vr,Nr=(()=>qn&&!c(tr)?!1:yn&&!c(Ot)?Ot:mn().isPaused()?!1:rt?c(vr)?!1:Nt:c(vr)||Nt)(),nr=!!(Dt&&Xe&&yn&&Nr),Qr=c(Rr.isValidating)?nr:Rr.isValidating,Or=c(Rr.isLoading)?nr:Rr.isLoading,pt=(0,t.useCallback)(ht=>Iu(this,null,function*(){const Se=In.current;if(!Dt||!Se||pn.current||mn().isPaused())return!1;let he,De,ae=!0;const de=ht||{},Ye=!Xt[Dt]||!de.dedupe,Ne=()=>te?!pn.current&&Dt===kn.current&&On.current:Dt===kn.current,it={isValidating:!1,isLoading:!1},Ct=()=>{xr(it)},Et=()=>{const St=Xt[Dt];St&&St[1]===De&&delete Xt[Dt]},Rt={isValidating:!0};c(Ln().data)&&(Rt.isLoading=!0);try{if(Ye&&(xr(Rt),Ze.loadingTimeout&&c(Ln().data)&&setTimeout(()=>{ae&&Ne()&&mn().onLoadingSlow(Dt,Ze)},Ze.loadingTimeout),Xt[Dt]=[Se(Wt),X()]),[he,De]=Xt[Dt],he=yield he,Ye&&setTimeout(Et,Ze.dedupingInterval),!Xt[Dt]||Xt[Dt][1]!==De)return Ye&&Ne()&&mn().onDiscarded(Dt),!1;it.error=o;const St=jt[Dt];if(!c(St)&&(De<=St[0]||De<=St[1]||St[1]===0))return Ct(),Ye&&Ne()&&mn().onDiscarded(Dt),!1;const me=Ln().data;it.data=at(me,he)?me:he,Ye&&Ne()&&mn().onSuccess(he,Dt,Ze)}catch(St){Et();const me=mn(),{shouldRetryOnError:j}=me;me.isPaused()||(it.error=St,Ye&&Ne()&&(me.onError(St,Dt,me),(j===!0||u(j)&&j(St))&&gn()&&me.onErrorRetry(St,Dt,me,Z=>{const Y=Yt[Dt];Y&&Y[0]&&Y[0](Ce.ERROR_REVALIDATE_EVENT,Z)},{retryCount:(de.retryCount||0)+1,dedupe:!0})))}return ae=!1,Ct(),!0}),[Dt,_e]),ct=(0,t.useCallback)((...ht)=>Le(_e,kn.current,...ht),[]);if(L(()=>{In.current=Xe,fn.current=Ze,c(Fn)||(Lr.current=Fn)}),L(()=>{if(!Dt)return;const ht=pt.bind(o,be);let Se=0;const De=ze(Dt,Yt,(ae,de={})=>{if(ae==Ce.FOCUS_EVENT){const Ye=Date.now();mn().revalidateOnFocus&&Ye>Se&&gn()&&(Se=Ye+mn().focusThrottleInterval,ht())}else if(ae==Ce.RECONNECT_EVENT)mn().revalidateOnReconnect&&gn()&&ht();else{if(ae==Ce.MUTATE_EVENT)return pt();if(ae==Ce.ERROR_REVALIDATE_EVENT)return pt(de)}});return pn.current=!1,kn.current=Dt,On.current=!0,xr({_k:Wt}),Nr&&(c(vr)||K?ht():ie(ht)),()=>{pn.current=!0,De()}},[Dt]),L(()=>{let ht;function Se(){const De=u(vn)?vn(Ln().data):vn;De&&ht!==-1&&(ht=setTimeout(he,De))}function he(){!Ln().error&&(At||mn().isVisible())&&(Kt||mn().isOnline())?pt(be).then(Se):Se()}return Se(),()=>{ht&&(clearTimeout(ht),ht=-1)}},[vn,At,Kt,Dt]),(0,t.useDebugValue)(Vr),rt&&c(vr)&&Dt){if(!te&&K)throw new Error("Fallback data is required when using suspense in SSR.");In.current=Xe,fn.current=Ze,pn.current=!1;const ht=Jt[Dt];if(!c(ht)){const Se=ct(ht);$e(Se)}if(c(tr)){const Se=pt(be);c(Vr)||(Se.status="fulfilled",Se.value=!0),$e(Se)}else throw tr}return{mutate:ct,get data(){return Vn.data=!0,Vr},get error(){return Vn.error=!0,tr},get isValidating(){return Vn.isValidating=!0,Qr},get isLoading(){return Vn.isLoading=!0,Or}}},Be=l.defineProperty(T,"defaultValue",{value:Ue}),tt=Ve(He)},27856:function(m,h,e){"use strict";e.d(h,{D:function(){return r}});function t(i,o,l){var c=l||{},u=c.noTrailing,s=u===void 0?!1:u,d=c.noLeading,v=d===void 0?!1:d,y=c.debounceMode,f=y===void 0?void 0:y,g,b=!1,w=0;function $(){g&&clearTimeout(g)}function I(C){var A=C||{},S=A.upcomingOnly,N=S===void 0?!1:S;$(),b=!N}function M(){for(var C=arguments.length,A=new Array(C),S=0;S<C;S++)A[S]=arguments[S];var N=this,E=Date.now()-w;if(b)return;function z(){w=Date.now(),o.apply(N,A)}function D(){g=void 0}!v&&f&&!g&&z(),$(),f===void 0&&E>i?v?(w=Date.now(),s||(g=setTimeout(f?D:z,i))):z():s!==!0&&(g=setTimeout(f?D:z,f===void 0?i-E:i))}return M.cancel=I,M}function r(i,o,l){var c=l||{},u=c.atBegin,s=u===void 0?!1:u;return t(i,o,{debounceMode:s!==!1})}}},go={};function Ae(m){var h=go[m];if(h!==void 0)return h.exports;var e=go[m]={id:m,loaded:!1,exports:{}};return jo[m].call(e.exports,e,e.exports,Ae),e.loaded=!0,e.exports}Ae.m=jo,function(){Ae.n=function(m){var h=m&&m.__esModule?function(){return m.default}:function(){return m};return Ae.d(h,{a:h}),h}}(),function(){var m=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},h;Ae.t=function(e,t){if(t&1&&(e=this(e)),t&8||typeof e=="object"&&e&&(t&4&&e.__esModule||t&16&&typeof e.then=="function"))return e;var r=Object.create(null);Ae.r(r);var i={};h=h||[null,m({}),m([]),m(m)];for(var o=t&2&&e;typeof o=="object"&&!~h.indexOf(o);o=m(o))Object.getOwnPropertyNames(o).forEach(function(l){i[l]=function(){return e[l]}});return i.default=function(){return e},Ae.d(r,i),r}}(),function(){Ae.d=function(m,h){for(var e in h)Ae.o(h,e)&&!Ae.o(m,e)&&Object.defineProperty(m,e,{enumerable:!0,get:h[e]})}}(),function(){Ae.f={},Ae.e=function(m){return Promise.all(Object.keys(Ae.f).reduce(function(h,e){return Ae.f[e](m,h),h},[]))}}(),function(){Ae.u=function(m){return""+({185:"p__Welcome",301:"t__plugin-layout__Layout",366:"p__User__Login__index",571:"p__404",799:"p__Auth__index",976:"p__Menu__index"}[m]||m)+"."+{123:"bb21d6ae",185:"6e7974cf",301:"f0bdabbe",366:"4e384745",390:"a9a600c5",423:"59b57b74",432:"e514b26d",445:"fcd2389d",571:"ea85c8a6",774:"53626a1c",784:"2230c855",799:"7e44e741",905:"6d6897a4",976:"d0b549c4"}[m]+".async.js"}}(),function(){Ae.miniCssF=function(m){return""+{301:"t__plugin-layout__Layout",366:"p__User__Login__index"}[m]+"."+{301:"8f39539f",366:"2ba91129"}[m]+".chunk.css"}}(),function(){Ae.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(m){if(typeof window=="object")return window}}()}(),function(){Ae.o=function(m,h){return Object.prototype.hasOwnProperty.call(m,h)}}(),function(){var m={},h="ant-design-pro:";Ae.l=function(e,t,r,i){if(m[e]){m[e].push(t);return}var o,l;if(r!==void 0)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var s=c[u];if(s.getAttribute("src")==e||s.getAttribute("data-webpack")==h+r){o=s;break}}o||(l=!0,o=document.createElement("script"),o.charset="utf-8",o.timeout=120,Ae.nc&&o.setAttribute("nonce",Ae.nc),o.setAttribute("data-webpack",h+r),o.src=e),m[e]=[t];var d=function(y,f){o.onerror=o.onload=null,clearTimeout(v);var g=m[e];if(delete m[e],o.parentNode&&o.parentNode.removeChild(o),g&&g.forEach(function(b){return b(f)}),y)return y(f)},v=setTimeout(d.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=d.bind(null,o.onerror),o.onload=d.bind(null,o.onload),l&&document.head.appendChild(o)}}(),function(){Ae.r=function(m){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(m,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(m,"__esModule",{value:!0})}}(),function(){Ae.nmd=function(m){return m.paths=[],m.children||(m.children=[]),m}}(),function(){Ae.p="/"}(),function(){if(typeof document!="undefined"){var m=function(r,i,o,l,c){var u=document.createElement("link");u.rel="stylesheet",u.type="text/css";var s=function(d){if(u.onerror=u.onload=null,d.type==="load")l();else{var v=d&&(d.type==="load"?"missing":d.type),y=d&&d.target&&d.target.href||i,f=new Error("Loading CSS chunk "+r+` failed.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(u){return r(u)||(0,i.Z)(u)||(0,o.Z)(u)||l()}},83997:function(m,h,e){"use strict";e.d(h,{Z:function(){return i}});var t=e(71002);function r(o,l){if((0,t.Z)(o)!=="object"||o===null)return o;var c=o[Symbol.toPrimitive];if(c!==void 0){var u=c.call(o,l||"default");if((0,t.Z)(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(o)}function i(o){var l=r(o,"string");return(0,t.Z)(l)==="symbol"?l:String(l)}},71002:function(m,h,e){"use strict";e.d(h,{Z:function(){return t}});function t(r){"@babel/helpers - typeof";return t=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},t(r)}},40181:function(m,h,e){"use strict";e.d(h,{Z:function(){return r}});var t=e(30907);function r(i,o){if(i){if(typeof i=="string")return(0,t.Z)(i,o);var l=Object.prototype.toString.call(i).slice(8,-1);if(l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set")return Array.from(i);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return(0,t.Z)(i,o)}}},59734:function(m,h,e){"use strict";e.d(h,{J$:function(){return Be},ZP:function(){return tt},kY:function(){return pe}});var t=e(67294),r=e(61688);const i=()=>{},o=i(),l=Object,c=Re=>Re===o,u=Re=>typeof Re=="function",s=(Re,Xe)=>Fl(Fl({},Re),Xe),d=Re=>u(Re.then),v=new WeakMap;let y=0;const f=Re=>{const Xe=typeof Re,Ze=Re&&Re.constructor,_e=Ze==Date;let at,rt;if(l(Re)===Re&&!_e&&Ze!=RegExp){if(at=v.get(Re),at)return at;if(at=++y+"~",v.set(Re,at),Ze==Array){for(at="@",rt=0;rt<Re.length;rt++)at+=f(Re[rt])+",";v.set(Re,at)}if(Ze==l){at="#";const Tt=l.keys(Re).sort();for(;!c(rt=Tt.pop());)c(Re[rt])||(at+=rt+":"+f(Re[rt])+",");v.set(Re,at)}}else at=_e?Re.toJSON():Xe=="symbol"?Re.toString():Xe=="string"?JSON.stringify(Re):""+Re;return at},g=new WeakMap,b={},w={},$="undefined",I=typeof window!=$,M=typeof document!=$,C=()=>I&&typeof window.requestAnimationFrame!=$,A=(Re,Xe)=>{const Ze=g.get(Re);return[()=>!c(Xe)&&Re.get(Xe)||b,_e=>{if(!c(Xe)){const at=Re.get(Xe);Xe in w||(w[Xe]=at),Ze[5](Xe,s(at,_e),at||b)}},Ze[6],()=>!c(Xe)&&Xe in w?w[Xe]:!c(Xe)&&Re.get(Xe)||b]};let S=!0;const N=()=>S,[E,z]=I&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[i,i],D=()=>{const Re=M&&document.visibilityState;return c(Re)||Re!=="hidden"},G=Re=>(M&&document.addEventListener("visibilitychange",Re),E("focus",Re),()=>{M&&document.removeEventListener("visibilitychange",Re),z("focus",Re)}),Q=Re=>{const Xe=()=>{S=!0,Re()},Ze=()=>{S=!1};return E("online",Xe),E("offline",Ze),()=>{z("online",Xe),z("offline",Ze)}},q={isOnline:N,isVisible:D},ee={initFocus:G,initReconnect:Q},te=!t.useId,K=!I||"Deno"in window,ie=Re=>C()?window.requestAnimationFrame(Re):setTimeout(Re,1),L=K?t.useEffect:t.useLayoutEffect,B=typeof navigator!="undefined"&&navigator.connection,R=!K&&B&&(["slow-2g","2g"].includes(B.effectiveType)||B.saveData),O=Re=>{if(u(Re))try{Re=Re()}catch(Ze){Re=""}const Xe=Re;return Re=typeof Re=="string"?Re:(Array.isArray(Re)?Re.length:Re)?f(Re):"",[Re,Xe]};let F=0;const X=()=>++F,oe=0,ue=1,ce=2;var Ce={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:oe,MUTATE_EVENT:ce,RECONNECT_EVENT:ue};function Le(...Re){return Iu(this,null,function*(){const[Xe,Ze,_e,at]=Re,rt=s({populateCache:!0,throwOnError:!0},typeof at=="boolean"?{revalidate:at}:at||{});let Tt=rt.populateCache;const Ot=rt.rollbackOnError;let Nt=rt.optimisticData;const vn=rt.revalidate!==!1,At=Yt=>typeof Ot=="function"?Ot(Yt):Ot!==!1,Kt=rt.throwOnError;if(u(Ze)){const Yt=Ze,jt=[],Xt=Xe.keys();for(const Jt of Xt)!/^\$(inf|sub)\$/.test(Jt)&&Yt(Xe.get(Jt)._k)&&jt.push(Jt);return Promise.all(jt.map(qt))}return qt(Ze);function qt(Yt){return Iu(this,null,function*(){const[jt]=O(Yt);if(!jt)return;const[Xt,Jt]=A(Xe,jt),[Dt,Wt,On,pn]=g.get(Xe),kn=()=>{const Vn=Dt[jt];return vn&&(delete On[jt],delete pn[jt],Vn&&Vn[0])?Vn[0](ce).then(()=>Xt().data):Xt().data};if(Re.length<3)return kn();let In=_e,fn;const mn=X();Wt[jt]=[mn,0];const gn=!c(Nt),Ln=Xt(),xr=Ln.data,rr=Ln._c,Ar=c(rr)?xr:rr;if(gn&&(Nt=u(Nt)?Nt(Ar,xr):Nt,Jt({data:Nt,_c:Ar})),u(In))try{In=In(Ar)}catch(Vn){fn=Vn}if(In&&d(In))if(In=yield In.catch(Vn=>{fn=Vn}),mn!==Wt[jt][0]){if(fn)throw fn;return In}else fn&&gn&&At(fn)&&(Tt=!0,Jt({data:Ar,_c:o}));if(Tt&&!fn)if(u(Tt)){const Vn=Tt(In,Ar);Jt({data:Vn,error:o,_c:o})}else Jt({data:In,error:o,_c:o});if(Wt[jt][1]=X(),Promise.resolve(kn()).then(()=>{Jt({_c:o})}),fn){if(Kt)throw fn;return}return In})}})}const Te=(Re,Xe)=>{for(const Ze in Re)Re[Ze][0]&&Re[Ze][0](Xe)},Ke=(Re,Xe)=>{if(!g.has(Re)){const Ze=s(ee,Xe),_e={},at=Le.bind(o,Re);let rt=i;const Tt={},Ot=(At,Kt)=>{const qt=Tt[At]||[];return Tt[At]=qt,qt.push(Kt),()=>qt.splice(qt.indexOf(Kt),1)},Nt=(At,Kt,qt)=>{Re.set(At,Kt);const Yt=Tt[At];if(Yt)for(const jt of Yt)jt(Kt,qt)},vn=()=>{if(!g.has(Re)&&(g.set(Re,[_e,{},{},{},at,Nt,Ot]),!K)){const At=Ze.initFocus(setTimeout.bind(o,Te.bind(o,_e,oe))),Kt=Ze.initReconnect(setTimeout.bind(o,Te.bind(o,_e,ue)));rt=()=>{At&&At(),Kt&&Kt(),g.delete(Re)}}};return vn(),[Re,at,vn,rt]}return[Re,g.get(Re)[4]]},et=(Re,Xe,Ze,_e,at)=>{const rt=Ze.errorRetryCount,Tt=at.retryCount,Ot=~~((Math.random()+.5)*(1<<(Tt<8?Tt:8)))*Ze.errorRetryInterval;!c(rt)&&Tt>rt||setTimeout(_e,Ot,at)},xt=(Re,Xe)=>f(Re)==f(Xe),[Qe,ft]=Ke(new Map),Ue=s({onLoadingSlow:i,onSuccess:i,onError:i,onErrorRetry:et,onDiscarded:i,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:R?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:R?5e3:3e3,compare:xt,isPaused:()=>!1,cache:Qe,mutate:ft,fallback:{}},q),xe=(Re,Xe)=>{const Ze=s(Re,Xe);if(Xe){const{use:_e,fallback:at}=Re,{use:rt,fallback:Tt}=Xe;_e&&rt&&(Ze.use=_e.concat(rt)),at&&Tt&&(Ze.fallback=s(at,Tt))}return Ze},H=(0,t.createContext)({}),T=Re=>{const{value:Xe}=Re,Ze=(0,t.useContext)(H),_e=u(Xe),at=(0,t.useMemo)(()=>_e?Xe(Ze):Xe,[_e,Ze,Xe]),rt=(0,t.useMemo)(()=>_e?at:xe(Ze,at),[_e,Ze,at]),Tt=at&&at.provider,Ot=(0,t.useRef)(o);Tt&&!Ot.current&&(Ot.current=Ke(Tt(rt.cache||Qe),at));const Nt=Ot.current;return Nt&&(rt.cache=Nt[0],rt.mutate=Nt[1]),L(()=>{if(Nt)return Nt[2]&&Nt[2](),Nt[3]},[]),(0,t.createElement)(H.Provider,s(Re,{value:rt}))},x="$inf$",W=I&&window.__SWR_DEVTOOLS_USE__,k=W?window.__SWR_DEVTOOLS_USE__:[],re=()=>{W&&(window.__SWR_DEVTOOLS_REACT__=t)},se=Re=>u(Re[1])?[Re[0],Re[1],Re[2]||{}]:[Re[0],null,(Re[1]===null?Re[2]:Re[1])||{}],pe=()=>s(Ue,(0,t.useContext)(H)),Ie=(Re,Xe)=>{const[Ze,_e]=O(Re),[,,,at]=g.get(Qe);if(at[Ze])return at[Ze];const rt=Xe(_e);return at[Ze]=rt,rt},le=Re=>(Xe,Ze,_e)=>Re(Xe,Ze&&((...rt)=>{const[Tt]=O(Xe),[,,,Ot]=g.get(Qe);if(Tt.startsWith(x))return Ze(...rt);const Nt=Ot[Tt];return c(Nt)?Ze(...rt):(delete Ot[Tt],Nt)}),_e),ge=k.concat(le),Ve=Re=>function(...Ze){const _e=pe(),[at,rt,Tt]=se(Ze),Ot=xe(_e,Tt);let Nt=Re;const{use:vn}=Ot,At=(vn||[]).concat(ge);for(let Kt=At.length;Kt--;)Nt=At[Kt](Nt);return Nt(at,rt||Ot.fetcher||null,Ot)},ze=(Re,Xe,Ze)=>{const _e=Xe[Re]||(Xe[Re]=[]);return _e.push(Ze),()=>{const at=_e.indexOf(Ze);at>=0&&(_e[at]=_e[_e.length-1],_e.pop())}},_=(Re,Xe)=>(...Ze)=>{const[_e,at,rt]=se(Ze),Tt=(rt.use||[]).concat(Xe);return Re(_e,at,Jc(Fl({},rt),{use:Tt}))};re();const Oe=Re=>serialize(Re)[0],$e=t.use||(Re=>{if(Re.status==="pending")throw Re;if(Re.status==="fulfilled")return Re.value;throw Re.status==="rejected"?Re.reason:(Re.status="pending",Re.then(Xe=>{Re.status="fulfilled",Re.value=Xe},Xe=>{Re.status="rejected",Re.reason=Xe}),Re)}),be={dedupe:!0},He=(Re,Xe,Ze)=>{const{cache:_e,compare:at,suspense:rt,fallbackData:Tt,revalidateOnMount:Ot,revalidateIfStale:Nt,refreshInterval:vn,refreshWhenHidden:At,refreshWhenOffline:Kt,keepPreviousData:qt}=Ze,[Yt,jt,Xt,Jt]=g.get(_e),[Dt,Wt]=O(Re),On=(0,t.useRef)(!1),pn=(0,t.useRef)(!1),kn=(0,t.useRef)(Dt),In=(0,t.useRef)(Xe),fn=(0,t.useRef)(Ze),mn=()=>fn.current,gn=()=>mn().isVisible()&&mn().isOnline(),[Ln,xr,rr,Ar]=A(_e,Dt),Vn=(0,t.useRef)({}).current,pr=c(Tt)?Ze.fallback[Dt]:Tt,Xn=(ht,Se)=>{for(const he in Vn){const De=he;if(De==="data"){if(!at(ht[De],Se[De])&&(!c(ht[De])||!at(Vr,Se[De])))return!1}else if(Se[De]!==ht[De])return!1}return!0},hr=(0,t.useMemo)(()=>{const ht=(()=>!Dt||!Xe?!1:c(Ot)?mn().isPaused()||rt?!1:c(Nt)?!0:Nt:Ot)(),Se=Ne=>{const it=s(Ne);return delete it._k,ht?Fl({isValidating:!0,isLoading:!0},it):it},he=Ln(),De=Ar(),ae=Se(he),de=he===De?ae:Se(De);let Ye=ae;return[()=>{const Ne=Se(Ln());return Xn(Ne,Ye)?(Ye.data=Ne.data,Ye.isLoading=Ne.isLoading,Ye.isValidating=Ne.isValidating,Ye.error=Ne.error,Ye):(Ye=Ne,Ne)},()=>de]},[_e,Dt]),Rr=(0,r.useSyncExternalStore)((0,t.useCallback)(ht=>rr(Dt,(Se,he)=>{Xn(he,Se)||ht()}),[_e,Dt]),hr[0],hr[1]),yn=!On.current,qn=Yt[Dt]&&Yt[Dt].length>0,Fn=Rr.data,vr=c(Fn)?pr:Fn,tr=Rr.error,Lr=(0,t.useRef)(vr),Vr=qt?c(Fn)?Lr.current:Fn:vr,Nr=(()=>qn&&!c(tr)?!1:yn&&!c(Ot)?Ot:mn().isPaused()?!1:rt?c(vr)?!1:Nt:c(vr)||Nt)(),nr=!!(Dt&&Xe&&yn&&Nr),Qr=c(Rr.isValidating)?nr:Rr.isValidating,Or=c(Rr.isLoading)?nr:Rr.isLoading,pt=(0,t.useCallback)(ht=>Iu(this,null,function*(){const Se=In.current;if(!Dt||!Se||pn.current||mn().isPaused())return!1;let he,De,ae=!0;const de=ht||{},Ye=!Xt[Dt]||!de.dedupe,Ne=()=>te?!pn.current&&Dt===kn.current&&On.current:Dt===kn.current,it={isValidating:!1,isLoading:!1},Ct=()=>{xr(it)},Et=()=>{const St=Xt[Dt];St&&St[1]===De&&delete Xt[Dt]},Rt={isValidating:!0};c(Ln().data)&&(Rt.isLoading=!0);try{if(Ye&&(xr(Rt),Ze.loadingTimeout&&c(Ln().data)&&setTimeout(()=>{ae&&Ne()&&mn().onLoadingSlow(Dt,Ze)},Ze.loadingTimeout),Xt[Dt]=[Se(Wt),X()]),[he,De]=Xt[Dt],he=yield he,Ye&&setTimeout(Et,Ze.dedupingInterval),!Xt[Dt]||Xt[Dt][1]!==De)return Ye&&Ne()&&mn().onDiscarded(Dt),!1;it.error=o;const St=jt[Dt];if(!c(St)&&(De<=St[0]||De<=St[1]||St[1]===0))return Ct(),Ye&&Ne()&&mn().onDiscarded(Dt),!1;const me=Ln().data;it.data=at(me,he)?me:he,Ye&&Ne()&&mn().onSuccess(he,Dt,Ze)}catch(St){Et();const me=mn(),{shouldRetryOnError:j}=me;me.isPaused()||(it.error=St,Ye&&Ne()&&(me.onError(St,Dt,me),(j===!0||u(j)&&j(St))&&gn()&&me.onErrorRetry(St,Dt,me,Z=>{const Y=Yt[Dt];Y&&Y[0]&&Y[0](Ce.ERROR_REVALIDATE_EVENT,Z)},{retryCount:(de.retryCount||0)+1,dedupe:!0})))}return ae=!1,Ct(),!0}),[Dt,_e]),ct=(0,t.useCallback)((...ht)=>Le(_e,kn.current,...ht),[]);if(L(()=>{In.current=Xe,fn.current=Ze,c(Fn)||(Lr.current=Fn)}),L(()=>{if(!Dt)return;const ht=pt.bind(o,be);let Se=0;const De=ze(Dt,Yt,(ae,de={})=>{if(ae==Ce.FOCUS_EVENT){const Ye=Date.now();mn().revalidateOnFocus&&Ye>Se&&gn()&&(Se=Ye+mn().focusThrottleInterval,ht())}else if(ae==Ce.RECONNECT_EVENT)mn().revalidateOnReconnect&&gn()&&ht();else{if(ae==Ce.MUTATE_EVENT)return pt();if(ae==Ce.ERROR_REVALIDATE_EVENT)return pt(de)}});return pn.current=!1,kn.current=Dt,On.current=!0,xr({_k:Wt}),Nr&&(c(vr)||K?ht():ie(ht)),()=>{pn.current=!0,De()}},[Dt]),L(()=>{let ht;function Se(){const De=u(vn)?vn(Ln().data):vn;De&&ht!==-1&&(ht=setTimeout(he,De))}function he(){!Ln().error&&(At||mn().isVisible())&&(Kt||mn().isOnline())?pt(be).then(Se):Se()}return Se(),()=>{ht&&(clearTimeout(ht),ht=-1)}},[vn,At,Kt,Dt]),(0,t.useDebugValue)(Vr),rt&&c(vr)&&Dt){if(!te&&K)throw new Error("Fallback data is required when using suspense in SSR.");In.current=Xe,fn.current=Ze,pn.current=!1;const ht=Jt[Dt];if(!c(ht)){const Se=ct(ht);$e(Se)}if(c(tr)){const Se=pt(be);c(Vr)||(Se.status="fulfilled",Se.value=!0),$e(Se)}else throw tr}return{mutate:ct,get data(){return Vn.data=!0,Vr},get error(){return Vn.error=!0,tr},get isValidating(){return Vn.isValidating=!0,Qr},get isLoading(){return Vn.isLoading=!0,Or}}},Be=l.defineProperty(T,"defaultValue",{value:Ue}),tt=Ve(He)},27856:function(m,h,e){"use strict";e.d(h,{D:function(){return r}});function t(i,o,l){var c=l||{},u=c.noTrailing,s=u===void 0?!1:u,d=c.noLeading,v=d===void 0?!1:d,y=c.debounceMode,f=y===void 0?void 0:y,g,b=!1,w=0;function $(){g&&clearTimeout(g)}function I(C){var A=C||{},S=A.upcomingOnly,N=S===void 0?!1:S;$(),b=!N}function M(){for(var C=arguments.length,A=new Array(C),S=0;S<C;S++)A[S]=arguments[S];var N=this,E=Date.now()-w;if(b)return;function z(){w=Date.now(),o.apply(N,A)}function D(){g=void 0}!v&&f&&!g&&z(),$(),f===void 0&&E>i?v?(w=Date.now(),s||(g=setTimeout(f?D:z,i))):z():s!==!0&&(g=setTimeout(f?D:z,f===void 0?i-E:i))}return M.cancel=I,M}function r(i,o,l){var c=l||{},u=c.atBegin,s=u===void 0?!1:u;return t(i,o,{debounceMode:s!==!1})}}},go={};function Ae(m){var h=go[m];if(h!==void 0)return h.exports;var e=go[m]={id:m,loaded:!1,exports:{}};return jo[m].call(e.exports,e,e.exports,Ae),e.loaded=!0,e.exports}Ae.m=jo,function(){Ae.n=function(m){var h=m&&m.__esModule?function(){return m.default}:function(){return m};return Ae.d(h,{a:h}),h}}(),function(){var m=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},h;Ae.t=function(e,t){if(t&1&&(e=this(e)),t&8||typeof e=="object"&&e&&(t&4&&e.__esModule||t&16&&typeof e.then=="function"))return e;var r=Object.create(null);Ae.r(r);var i={};h=h||[null,m({}),m([]),m(m)];for(var o=t&2&&e;typeof o=="object"&&!~h.indexOf(o);o=m(o))Object.getOwnPropertyNames(o).forEach(function(l){i[l]=function(){return e[l]}});return i.default=function(){return e},Ae.d(r,i),r}}(),function(){Ae.d=function(m,h){for(var e in h)Ae.o(h,e)&&!Ae.o(m,e)&&Object.defineProperty(m,e,{enumerable:!0,get:h[e]})}}(),function(){Ae.f={},Ae.e=function(m){return Promise.all(Object.keys(Ae.f).reduce(function(h,e){return Ae.f[e](m,h),h},[]))}}(),function(){Ae.u=function(m){return""+({185:"p__Welcome",301:"t__plugin-layout__Layout",366:"p__User__Login__index",571:"p__404",799:"p__Auth__index",976:"p__Menu__index"}[m]||m)+"."+{123:"bb21d6ae",185:"6e7974cf",301:"f0bdabbe",366:"5458ac46",390:"a9a600c5",423:"59b57b74",432:"e514b26d",445:"fcd2389d",571:"ea85c8a6",774:"53626a1c",784:"2230c855",799:"7e44e741",905:"6d6897a4",976:"9baf2a26"}[m]+".async.js"}}(),function(){Ae.miniCssF=function(m){return""+{301:"t__plugin-layout__Layout",366:"p__User__Login__index"}[m]+"."+{301:"8f39539f",366:"2ba91129"}[m]+".chunk.css"}}(),function(){Ae.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(m){if(typeof window=="object")return window}}()}(),function(){Ae.o=function(m,h){return Object.prototype.hasOwnProperty.call(m,h)}}(),function(){var m={},h="ant-design-pro:";Ae.l=function(e,t,r,i){if(m[e]){m[e].push(t);return}var o,l;if(r!==void 0)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var s=c[u];if(s.getAttribute("src")==e||s.getAttribute("data-webpack")==h+r){o=s;break}}o||(l=!0,o=document.createElement("script"),o.charset="utf-8",o.timeout=120,Ae.nc&&o.setAttribute("nonce",Ae.nc),o.setAttribute("data-webpack",h+r),o.src=e),m[e]=[t];var d=function(y,f){o.onerror=o.onload=null,clearTimeout(v);var g=m[e];if(delete m[e],o.parentNode&&o.parentNode.removeChild(o),g&&g.forEach(function(b){return b(f)}),y)return y(f)},v=setTimeout(d.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=d.bind(null,o.onerror),o.onload=d.bind(null,o.onload),l&&document.head.appendChild(o)}}(),function(){Ae.r=function(m){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(m,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(m,"__esModule",{value:!0})}}(),function(){Ae.nmd=function(m){return m.paths=[],m.children||(m.children=[]),m}}(),function(){Ae.p="/"}(),function(){if(typeof document!="undefined"){var m=function(r,i,o,l,c){var u=document.createElement("link");u.rel="stylesheet",u.type="text/css";var s=function(d){if(u.onerror=u.onload=null,d.type==="load")l();else{var v=d&&(d.type==="load"?"missing":d.type),y=d&&d.target&&d.target.href||i,f=new Error("Loading CSS chunk "+r+` failed.
(`+y+")");f.code="CSS_CHUNK_LOAD_FAILED",f.type=v,f.request=y,u.parentNode.removeChild(u),c(f)}};return u.onerror=u.onload=s,u.href=i,o?o.parentNode.insertBefore(u,o.nextSibling):document.head.appendChild(u),u},h=function(r,i){for(var o=document.getElementsByTagName("link"),l=0;l<o.length;l++){var c=o[l],u=c.getAttribute("data-href")||c.getAttribute("href");if(c.rel==="stylesheet"&&(u===r||u===i))return c}for(var s=document.getElementsByTagName("style"),l=0;l<s.length;l++){var c=s[l],u=c.getAttribute("data-href");if(u===r||u===i)return c}},e=function(r){return new Promise(function(i,o){var l=Ae.miniCssF(r),c=Ae.p+l;if(h(l,c))return i();m(r,c,null,i,o)})},t={620:0};Ae.f.miniCss=function(r,i){var o={301:1,366:1};t[r]?i.push(t[r]):t[r]!==0&&o[r]&&i.push(t[r]=e(r).then(function(){t[r]=0},function(l){throw delete t[r],l}))}}}(),function(){var m={620:0};Ae.f.j=function(t,r){var i=Ae.o(m,t)?m[t]:void 0;if(i!==0)if(i)r.push(i[2]);else{var o=new Promise(function(s,d){i=m[t]=[s,d]});r.push(i[2]=o);var l=Ae.p+Ae.u(t),c=new Error,u=function(s){if(Ae.o(m,t)&&(i=m[t],i!==0&&(m[t]=void 0),i)){var d=s&&(s.type==="load"?"missing":s.type),v=s&&s.target&&s.target.src;c.message="Loading chunk "+t+` failed.
(`+d+": "+v+")",c.name="ChunkLoadError",c.type=d,c.request=v,i[1](c)}};Ae.l(l,u,"chunk-"+t,t)}};var h=function(t,r){var i=r[0],o=r[1],l=r[2],c,u,s=0;if(i.some(function(v){return m[v]!==0})){for(c in o)Ae.o(o,c)&&(Ae.m[c]=o[c]);if(l)var d=l(Ae)}for(t&&t(r);s<i.length;s++)u=i[s],Ae.o(m,u)&&m[u]&&m[u][0](),m[u]=0},e=self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[];e.forEach(h.bind(null,0)),e.push=h.bind(null,e.push.bind(e))}();var sc={};(function(){"use strict";var m=Ae(17061),h=Ae.n(m),e=Ae(42122),t=Ae.n(e),r=Ae(17156),i=Ae.n(r),o=Ae(21703),l=Ae(9170),c=Ae(32120),u=Ae(52262),s=Ae(67635),d=Ae(77287),v=Ae(57658),y=Ae(85827),f=Ae(96644),g=Ae(90476),b=Ae(76459),w=Ae(99892),$=Ae(35581),I=Ae(46314),M=Ae(34668),C=Ae(81299),A=Ae(92087),S=Ae(24506),N=Ae(68757),E=Ae(48675),z=Ae(63408),D=Ae(14590),G=Ae(3462),Q=Ae(1439),q=Ae(87585),ee=Ae(55315),te=Ae(16586),K=Ae(19258),ie=Ae(84811),L=Ae(34286),B=Ae(52550),R=Ae(1999),O=Ae(61886),F=Ae(59422),X=Ae(8e4),oe=Ae(83475),ue=Ae(46273),ce=Ae(3087),ye=Ae(23252),Ce=Ae(6461),Le=Ae(32372),Te=Ae(4763),Ke=Ae(66342),et=Ae(40787),xt=Ae(1094),Qe=Ae(23647),ft=Ae(68216),Ue=Ae(88449),xe=Ae(31672),H=Ae(74326),T=Ae(15581),x=Ae(78631),W=Ae(48746),k=Ae(57640),re=Ae(25387),se=Ae(64211),pe=Ae(12771),Ie=Ae(62962),le=Ae(71790),ge=Ae(51568),Ve=Ae(26349),ze=Ae(30800),_=Ae(48580),Oe=Ae(67427),$e=Ae(32279),be=Ae(13384),He=Ae(2490),Be=Ae(85567),tt=Ae(18359),Re=Ae(5332),Xe=Ae(79433),Ze=Ae(59849),_e=Ae(59461),at=Ae(82499),rt=Ae(34514),Tt=Ae(26877),Ot=Ae(64994),Nt=Ae(9924),vn=Ae(64411),At=Ae(72608),Kt=Ae(41874),qt=Ae(66043),Yt=Ae(23748),jt=Ae(71501),Xt=Ae(60855),Jt=Ae(43847),Dt=Ae(38564),Wt=Ae(10072),On=Ae(23042),pn=Ae(99137),kn=Ae(71957),In=Ae(96306),fn=Ae(103),mn=Ae(8582),gn=Ae(90618),Ln=Ae(74592),xr=Ae(88440),rr=Ae(58276),Ar=Ae(35082),Vn=Ae(12813),pr=Ae(18222),Xn=Ae(24838),hr=Ae(38563),Rr=Ae(50336),yn=Ae(7512),qn=Ae(74442),Fn=Ae(87713),vr=Ae(46603),tr=Ae(70100),Lr=Ae(10490),Vr=Ae(13187),Nr=Ae(60092),nr=Ae(19041),Qr=Ae(30666),Or=Ae(51638),pt=Ae(62975),ct=Ae(15728),ht=Ae(46056),Se=Ae(44299),he=Ae(5162),De=Ae(50292),ae=Ae(29427),de=Ae(99964),Ye=Ae(75238),Ne=Ae(4987),it=Ae(1025),Ct=Ae(77479),Et=Ae(34582),Rt=Ae(47896),St=Ae(12647),me=Ae(98558),j=Ae(84018),Z=Ae(97507),Y=Ae(61605),V=Ae(49076),ve=Ae(34999),Ee=Ae(88921),Fe=Ae(96248),Ge=Ae(27561),qe=Ae(13599),Je=Ae(11477),ot=Ae(64362),Pt=Ae(15389),bt=Ae(46006),It=Ae(3440),lt=Ae(90401),gt=Ae(66244),vt=Ae(45164),Ft=Ae(89772),Bt=Ae(91238),tn=Ae(88910),on=Ae(54837),_t=Ae(87485),sn=Ae(56767),en=Ae(69916),nn=Ae(76651),Dn=Ae(61437),jn=Ae(63252),_n=Ae(35285),lr=Ae(17454),cr=Ae(39865),Fr=Ae(86035),Sr=Ae(50058),Hr=Ae(67501),ea=Ae(85576),er=Ae(98275),Kn=Ae(71842),Jn=Ae(609),yr=Ae(21568),Pr=Ae(96431),Bn=Ae(40050),Cr=Ae(54534),na=Ae(95090),Vt=Ae(34744),ut=Ae(48824),kt=Ae(44130),ln=Ae(35954),un=Ae(16850),Zn=Ae(26182),Cn=Ae(8922),ar=Ae(5835),wr=Ae(8970),or=Ae(84444),ur=Ae(78206),br=Ae(76478),Zr=Ae(79715),Wr=Ae(12714),Ur=Ae(5964),ra=Ae(43561),Oa=Ae(32049),ke=Ae(86020),dt=Ae(56585),mt=Ae(82801),Lt=Ae(84633),Ht=Ae(71550),Sn=Ae(61295),zt=Ae(13399),Qt=Ae(9927),$n=Ae(45360),xn=Ae(15867),Nn=Ae(26855),ir=Ae(67610),jr=Ae(85893),Gr=ir.Z.pwa,ta=document.location.protocol==="https:",dr=function(){window.caches&&caches.keys().then(function(Qn){Qn.forEach(function(kr){caches.delete(kr)})}).catch(function(Qn){return console.log(Qn)})};if(Gr)window.addEventListener("sw.offline",function(){$n.ZP.warning((0,Qt.useIntl)().formatMessage({id:"app.pwa.offline"}))}),window.addEventListener("sw.updated",function(Tr){var Qn=Tr,kr=function(){var $a=i()(h()().mark(function Na(){var za;return h()().wrap(function(Va){for(;;)switch(Va.prev=Va.next){case 0:if(za=Qn.detail&&Qn.detail.waiting,za){Va.next=3;break}return Va.abrupt("return",!0);case 3:return Va.next=5,new Promise(function(ka,oo){var Oi=new MessageChannel;Oi.port1.onmessage=function(Bo){Bo.data.error?oo(Bo.data.error):ka(Bo.data)},za.postMessage({type:"skip-waiting"},[Oi.port2])});case 5:return dr(),window.location.reload(),Va.abrupt("return",!0);case 8:case"end":return Va.stop()}},Na)}));return function(){return $a.apply(this,arguments)}}(),Ta="open".concat(Date.now()),Ia=(0,jr.jsx)(xn.ZP,{type:"primary",onClick:function(){Nn.Z.destroy(Ta),kr()},children:(0,Qt.useIntl)().formatMessage({id:"app.pwa.serviceworker.updated.ok"})});Nn.Z.open({message:(0,Qt.useIntl)().formatMessage({id:"app.pwa.serviceworker.updated"}),description:(0,Qt.useIntl)().formatMessage({id:"app.pwa.serviceworker.updated.hint"}),btn:Ia,key:Ta,onClose:function(){var $a=i()(h()().mark(function za(){return h()().wrap(function(Va){for(;;)switch(Va.prev=Va.next){case 0:return Va.abrupt("return",null);case 1:case"end":return Va.stop()}},za)}));function Na(){return $a.apply(this,arguments)}return Na}()})});else if("serviceWorker"in navigator&&ta){var hn=navigator,Mn=hn.serviceWorker;Mn.getRegistrations&&Mn.getRegistrations().then(function(Tr){Tr.forEach(function(Qn){Qn.unregister()})}),Mn.getRegistration().then(function(Tr){Tr&&Tr.unregister()}),dr()}var bn=Ae(4942),zn=Ae(1413),sr=Ae(97685),wn=Ae(67294),_r=Ae(20745),mr=Ae(96974),sa=Ae(34162),fa=Ae(91),Br=Ae(87462),pa=wn.createContext(void 0);function ia(){return wn.useContext(pa)}var Fa=["redirect"];function ha(Tr){var Qn=Tr.routesById,kr=Tr.parentId,Ta=Tr.routeComponents;return Object.keys(Qn).filter(function(Ia){return Qn[Ia].parentId===kr}).map(function(Ia){var $a=Xa((0,zn.Z)({route:Qn[Ia],routeComponent:Ta[Ia],loadingComponent:Tr.loadingComponent,reactRouter5Compat:Tr.reactRouter5Compat},Tr.reactRouter5Compat&&{hasChildren:Object.keys(Qn).filter(function(za){return Qn[za].parentId===Ia}).length>0})),Na=ha({routesById:Qn,routeComponents:Ta,parentId:$a.id,loadingComponent:Tr.loadingComponent,reactRouter5Compat:Tr.reactRouter5Compat});return Na.length>0&&($a.children=Na,$a.routes=Na),$a})}function aa(Tr){var Qn=(0,mr.UO)(),kr=(0,zn.Z)((0,zn.Z)({},Tr),{},{to:(0,mr.Gn)(Tr.to,Qn)});return wn.createElement(mr.Fg,(0,Br.Z)({replace:!0},kr))}function Xa(Tr){var Qn=Tr.route,kr=Qn.redirect,Ta=(0,fa.Z)(Qn,Fa),Ia=Tr.reactRouter5Compat?va:ua;return(0,zn.Z)({element:kr?wn.createElement(aa,{to:kr}):wn.createElement(pa.Provider,{value:{route:Tr.route}},wn.createElement(Ia,{loader:wn.memo(Tr.routeComponent),loadingComponent:Tr.loadingComponent||la,hasChildren:Tr.hasChildren}))},Ta)}function la(){return wn.createElement("div",null)}function va(Tr){var Qn=ia(),kr=Qn.route,Ta=(0,sa.Ov)(),Ia=Ta.history,$a=Ta.clientRoutes,Na=(0,mr.UO)(),za={params:Na,isExact:!0,path:kr.path,url:Ia.location.pathname},uo=Tr.loader;return wn.createElement(wn.Suspense,{fallback:wn.createElement(Tr.loadingComponent,null)},wn.createElement(uo,{location:Ia.location,match:za,history:Ia,params:Na,route:kr,routes:$a},Tr.hasChildren&&wn.createElement(mr.j3,null)))}function ua(Tr){var Qn=Tr.loader;return wn.createElement(wn.Suspense,{fallback:wn.createElement(Tr.loadingComponent,null)},wn.createElement(Qn,null))}var Ra=null;function Za(){return Ra}function Ba(Tr){var Qn=Tr.history,kr=wn.useState({action:Qn.action,location:Qn.location}),Ta=(0,sr.Z)(kr,2),Ia=Ta[0],$a=Ta[1];return(0,wn.useLayoutEffect)(function(){return Qn.listen($a)},[Qn]),(0,wn.useLayoutEffect)(function(){function Na(za){Tr.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:Tr.routes,clientRoutes:Tr.clientRoutes,location:za.location,action:za.action,basename:Tr.basename,isFirst:!!za.isFirst}})}return Na({location:Ia.location,action:Ia.action,isFirst:!0}),Qn.listen(Na)},[Qn,Tr.routes,Tr.clientRoutes]),wn.createElement(mr.F0,{navigator:Qn,location:Ia.location,basename:Tr.basename},Tr.children)}function To(){var Tr=(0,sa.Ov)(),Qn=Tr.clientRoutes;return(0,mr.V$)(Qn)}var xo=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],Ko=function(Qn,kr){var Ta=Qn.basename||"/",Ia=ha({routesById:Qn.routes,routeComponents:Qn.routeComponents,loadingComponent:Qn.loadingComponent,reactRouter5Compat:Qn.reactRouter5Compat});Qn.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:Ia}});for(var $a=wn.createElement(Ba,{basename:Ta,pluginManager:Qn.pluginManager,routes:Qn.routes,clientRoutes:Ia,history:Qn.history},kr),Na=0,za=xo;Na<za.length;Na++){var uo=za[Na];$a=Qn.pluginManager.applyPlugins({type:"modify",key:uo,initialValue:$a,args:{routes:Qn.routes,history:Qn.history,plugin:Qn.pluginManager}})}var Va=function(){var oo=(0,wn.useState)({}),Oi=(0,sr.Z)(oo,2),Bo=Oi[0],ms=Oi[1],Bi=(0,wn.useState)(window.__UMI_LOADER_DATA__||{}),Pi=(0,sr.Z)(Bi,2),oi=Pi[0],gs=Pi[1],Zi=(0,wn.useCallback)(function(wi,Bl){var Ji,Pe=(((Ji=(0,mr.fp)(Ia,wi,Ta))===null||Ji===void 0?void 0:Ji.map(function(je){return je.route.id}))||[]).filter(Boolean);Pe.forEach(function(je){var J,st,Mt=window.__umi_manifest__;if(Mt){var rn=je.replace(/[\/\-]/g,"_"),cn="preload-".concat(rn,".js");if(!document.getElementById(cn)){var Wn=Object.keys(Mt).filter(function(An){return An.startsWith(rn+".")});Wn.forEach(function(An){if(!/\.(js|css)$/.test(An))throw Error("preload not support ".concat(An," file"));var Gn=Mt[An],Kr=document.createElement("link");Kr.rel="preload",Kr.as="style",An.endsWith(".js")&&(Kr.as="script",Kr.id=cn),Qn.runtimePublicPath&&(Gn=Gn.replace(new RegExp("^".concat(Qn.publicPath)),window.publicPath)),Kr.href=Gn,document.head.appendChild(Kr)})}}if(!Bl&&(J=Qn.routes[je])!==null&&J!==void 0&&J.hasServerLoader){var fr=new URLSearchParams({route:je,url:window.location.href}).toString(),da="".concat(Si(Ta),"__serverLoader?").concat(fr);fetch(da,{credentials:"include"}).then(function(An){return An.json()}).then(function(An){wn.startTransition(function(){gs(function(Gn){return(0,zn.Z)((0,zn.Z)({},Gn),{},(0,bn.Z)({},je,An))})})}).catch(console.error)}var Yn=(st=Qn.routes[je])===null||st===void 0?void 0:st.clientLoader;Yn&&!Bo[je]&&Yn().then(function(An){ms(function(Gn){return(0,zn.Z)((0,zn.Z)({},Gn),{},(0,bn.Z)({},je,An))})})})},[Bo]);return(0,wn.useEffect)(function(){return Zi(window.location.pathname,!0),Qn.history.listen(function(wi){Zi(wi.location.pathname)})},[]),(0,wn.useLayoutEffect)(function(){typeof Qn.callback=="function"&&Qn.callback()},[]),wn.createElement(sa.Il.Provider,{value:{routes:Qn.routes,routeComponents:Qn.routeComponents,clientRoutes:Ia,pluginManager:Qn.pluginManager,rootElement:Qn.rootElement,basename:Ta,clientLoaderData:Bo,serverLoaderData:oi,preloadRoute:Zi,history:Qn.history}},$a)};return Va};function xi(Tr){var Qn=Tr.rootElement||document.getElementById("root"),kr=Ko(Tr,wn.createElement(To,null));if(Tr.components)return kr;if(Tr.hydrate){_r.hydrateRoot(Qn,wn.createElement(kr,null));return}if(_r.createRoot){Ra=_r.createRoot(Qn),Ra.render(wn.createElement(kr,null));return}_r.render(wn.createElement(kr,null),Qn)}function Si(Tr){return Tr.endsWith("/")?Tr:"".concat(Tr,"/")}function Ci(){return Ga.apply(this,arguments)}function Ga(){return Ga=i()(h()().mark(function Tr(){var Qn;return h()().wrap(function(Ta){for(;;)switch(Ta.prev=Ta.next){case 0:return Qn={1:{path:"/user",layout:!1,id:"1"},2:{name:"login",path:"/user/login",parentId:"1",id:"2"},3:{path:"/welcome",name:"welcome",icon:"smile",parentId:"ant-design-pro-layout",id:"3"},4:{path:"/auth",name:"auth",icon:"crown",parentId:"ant-design-pro-layout",id:"4"},5:{path:"/auth",redirect:"/auth/sub-page",parentId:"4",id:"5"},6:{path:"/auth/auth-list",name:"auth-list",parentId:"4",id:"6"},7:{path:"/auth/menu",name:"config",parentId:"4",id:"7"},8:{path:"/",redirect:"/welcome",parentId:"ant-design-pro-layout",id:"8"},9:{path:"*",layout:!1,id:"9"},"ant-design-pro-layout":{id:"ant-design-pro-layout",path:"/",isLayout:!0}},Ta.abrupt("return",{routes:Qn,routeComponents:{1:wn.lazy(function(){return Ae.e(390).then(Ae.bind(Ae,96390))}),2:wn.lazy(function(){return Promise.all([Ae.e(432),Ae.e(423),Ae.e(905),Ae.e(784),Ae.e(445),Ae.e(366)]).then(Ae.bind(Ae,33726))}),3:wn.lazy(function(){return Ae.e(185).then(Ae.bind(Ae,9622))}),4:wn.lazy(function(){return Ae.e(390).then(Ae.bind(Ae,96390))}),5:wn.lazy(function(){return Ae.e(390).then(Ae.bind(Ae,96390))}),6:wn.lazy(function(){return Promise.all([Ae.e(432),Ae.e(423),Ae.e(774),Ae.e(784),Ae.e(799)]).then(Ae.bind(Ae,49468))}),7:wn.lazy(function(){return Promise.all([Ae.e(432),Ae.e(423),Ae.e(774),Ae.e(976)]).then(Ae.bind(Ae,38115))}),8:wn.lazy(function(){return Ae.e(390).then(Ae.bind(Ae,96390))}),9:wn.lazy(function(){return Promise.all([Ae.e(905),Ae.e(571)]).then(Ae.bind(Ae,9826))}),"ant-design-pro-layout":wn.lazy(function(){return Promise.all([Ae.e(432),Ae.e(905),Ae.e(123),Ae.e(301)]).then(Ae.bind(Ae,27626))})}});case 2:case"end":return Ta.stop()}},Tr)})),Ga.apply(this,arguments)}var lo=Ae(94980),Vo=Ae(10581),La=Ae(27484),qr=Ae.n(La),xa=Ae(40873),zr=Ae.n(xa),Mr=Ae(37412),ja=Ae.n(Mr),Ua=Ae(79212),wa=Ae.n(Ua),Ja=Ae(28734),Qa=Ae.n(Ja),Go=Ae(10285),Io=Ae.n(Go),Mo=Ae(72540),ro=Ae.n(Mo),Ei=Ae(172),Is=Ae.n(Ei),Xi=Ae(55183),Ms=Ae.n(Xi),Rs=Ae(34425),$s=Ae.n(Rs),_s=Ae(96036),ds=Ae.n(_s),fs=Ae(56176),Yo=Ae.n(fs),ps=Ae(1646),ao=Ae.n(ps);qr().extend(ja()),qr().extend(wa()),qr().extend(Qa()),qr().extend(Io()),qr().extend(ro()),qr().extend(Is()),qr().extend(Ms()),qr().extend($s()),qr().extend(ds()),qr().extend(Yo()),qr().extend(ao()),qr().extend(zr());var jl="/",qs=!1;function ji(){return vs.apply(this,arguments)}function vs(){return vs=i()(h()().mark(function Tr(){var Qn,kr,Ta,Ia,$a,Na,za,uo;return h()().wrap(function(ka){for(;;)switch(ka.prev=ka.next){case 0:return Qn=(0,lo.gD)(),ka.next=3,Ci(Qn);case 3:return kr=ka.sent,Ta=kr.routes,Ia=kr.routeComponents,ka.next=8,Qn.applyPlugins({key:"patchRoutes",type:Qt.ApplyPluginsType.event,args:{routes:Ta,routeComponents:Ia}});case 8:return $a=Qn.applyPlugins({key:"modifyContextOpts",type:Qt.ApplyPluginsType.modify,initialValue:{}}),Na=$a.basename||"/",za=$a.historyType||"browser",uo=(0,Vo.f)(t()({type:za,basename:Na},$a.historyOpts)),ka.abrupt("return",Qn.applyPlugins({key:"render",type:Qt.ApplyPluginsType.compose,initialValue:function(){var Oi={routes:Ta,routeComponents:Ia,pluginManager:Qn,rootElement:$a.rootElement||document.getElementById("root"),publicPath:jl,runtimePublicPath:qs,history:uo,historyType:za,basename:Na,callback:$a.callback},Bo=Qn.applyPlugins({key:"modifyClientRenderOpts",type:Qt.ApplyPluginsType.modify,initialValue:Oi});return xi(Bo)}})());case 13:case"end":return ka.stop()}},Tr)})),vs.apply(this,arguments)}ji(),window.g_umi={version:"4.0.88"}})()})();
(`+d+": "+v+")",c.name="ChunkLoadError",c.type=d,c.request=v,i[1](c)}};Ae.l(l,u,"chunk-"+t,t)}};var h=function(t,r){var i=r[0],o=r[1],l=r[2],c,u,s=0;if(i.some(function(v){return m[v]!==0})){for(c in o)Ae.o(o,c)&&(Ae.m[c]=o[c]);if(l)var d=l(Ae)}for(t&&t(r);s<i.length;s++)u=i[s],Ae.o(m,u)&&m[u]&&m[u][0](),m[u]=0},e=self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[];e.forEach(h.bind(null,0)),e.push=h.bind(null,e.push.bind(e))}();var sc={};(function(){"use strict";var m=Ae(17061),h=Ae.n(m),e=Ae(42122),t=Ae.n(e),r=Ae(17156),i=Ae.n(r),o=Ae(21703),l=Ae(9170),c=Ae(32120),u=Ae(52262),s=Ae(67635),d=Ae(77287),v=Ae(57658),y=Ae(85827),f=Ae(96644),g=Ae(90476),b=Ae(76459),w=Ae(99892),$=Ae(35581),I=Ae(46314),M=Ae(34668),C=Ae(81299),A=Ae(92087),S=Ae(24506),N=Ae(68757),E=Ae(48675),z=Ae(63408),D=Ae(14590),G=Ae(3462),Q=Ae(1439),q=Ae(87585),ee=Ae(55315),te=Ae(16586),K=Ae(19258),ie=Ae(84811),L=Ae(34286),B=Ae(52550),R=Ae(1999),O=Ae(61886),F=Ae(59422),X=Ae(8e4),oe=Ae(83475),ue=Ae(46273),ce=Ae(3087),ye=Ae(23252),Ce=Ae(6461),Le=Ae(32372),Te=Ae(4763),Ke=Ae(66342),et=Ae(40787),xt=Ae(1094),Qe=Ae(23647),ft=Ae(68216),Ue=Ae(88449),xe=Ae(31672),H=Ae(74326),T=Ae(15581),x=Ae(78631),W=Ae(48746),k=Ae(57640),re=Ae(25387),se=Ae(64211),pe=Ae(12771),Ie=Ae(62962),le=Ae(71790),ge=Ae(51568),Ve=Ae(26349),ze=Ae(30800),_=Ae(48580),Oe=Ae(67427),$e=Ae(32279),be=Ae(13384),He=Ae(2490),Be=Ae(85567),tt=Ae(18359),Re=Ae(5332),Xe=Ae(79433),Ze=Ae(59849),_e=Ae(59461),at=Ae(82499),rt=Ae(34514),Tt=Ae(26877),Ot=Ae(64994),Nt=Ae(9924),vn=Ae(64411),At=Ae(72608),Kt=Ae(41874),qt=Ae(66043),Yt=Ae(23748),jt=Ae(71501),Xt=Ae(60855),Jt=Ae(43847),Dt=Ae(38564),Wt=Ae(10072),On=Ae(23042),pn=Ae(99137),kn=Ae(71957),In=Ae(96306),fn=Ae(103),mn=Ae(8582),gn=Ae(90618),Ln=Ae(74592),xr=Ae(88440),rr=Ae(58276),Ar=Ae(35082),Vn=Ae(12813),pr=Ae(18222),Xn=Ae(24838),hr=Ae(38563),Rr=Ae(50336),yn=Ae(7512),qn=Ae(74442),Fn=Ae(87713),vr=Ae(46603),tr=Ae(70100),Lr=Ae(10490),Vr=Ae(13187),Nr=Ae(60092),nr=Ae(19041),Qr=Ae(30666),Or=Ae(51638),pt=Ae(62975),ct=Ae(15728),ht=Ae(46056),Se=Ae(44299),he=Ae(5162),De=Ae(50292),ae=Ae(29427),de=Ae(99964),Ye=Ae(75238),Ne=Ae(4987),it=Ae(1025),Ct=Ae(77479),Et=Ae(34582),Rt=Ae(47896),St=Ae(12647),me=Ae(98558),j=Ae(84018),Z=Ae(97507),Y=Ae(61605),V=Ae(49076),ve=Ae(34999),Ee=Ae(88921),Fe=Ae(96248),Ge=Ae(27561),qe=Ae(13599),Je=Ae(11477),ot=Ae(64362),Pt=Ae(15389),bt=Ae(46006),It=Ae(3440),lt=Ae(90401),gt=Ae(66244),vt=Ae(45164),Ft=Ae(89772),Bt=Ae(91238),tn=Ae(88910),on=Ae(54837),_t=Ae(87485),sn=Ae(56767),en=Ae(69916),nn=Ae(76651),Dn=Ae(61437),jn=Ae(63252),_n=Ae(35285),lr=Ae(17454),cr=Ae(39865),Fr=Ae(86035),Sr=Ae(50058),Hr=Ae(67501),ea=Ae(85576),er=Ae(98275),Kn=Ae(71842),Jn=Ae(609),yr=Ae(21568),Pr=Ae(96431),Bn=Ae(40050),Cr=Ae(54534),na=Ae(95090),Vt=Ae(34744),ut=Ae(48824),kt=Ae(44130),ln=Ae(35954),un=Ae(16850),Zn=Ae(26182),Cn=Ae(8922),ar=Ae(5835),wr=Ae(8970),or=Ae(84444),ur=Ae(78206),br=Ae(76478),Zr=Ae(79715),Wr=Ae(12714),Ur=Ae(5964),ra=Ae(43561),Oa=Ae(32049),ke=Ae(86020),dt=Ae(56585),mt=Ae(82801),Lt=Ae(84633),Ht=Ae(71550),Sn=Ae(61295),zt=Ae(13399),Qt=Ae(9927),$n=Ae(45360),xn=Ae(15867),Nn=Ae(26855),ir=Ae(67610),jr=Ae(85893),Gr=ir.Z.pwa,ta=document.location.protocol==="https:",dr=function(){window.caches&&caches.keys().then(function(Qn){Qn.forEach(function(kr){caches.delete(kr)})}).catch(function(Qn){return console.log(Qn)})};if(Gr)window.addEventListener("sw.offline",function(){$n.ZP.warning((0,Qt.useIntl)().formatMessage({id:"app.pwa.offline"}))}),window.addEventListener("sw.updated",function(Tr){var Qn=Tr,kr=function(){var $a=i()(h()().mark(function Na(){var za;return h()().wrap(function(Va){for(;;)switch(Va.prev=Va.next){case 0:if(za=Qn.detail&&Qn.detail.waiting,za){Va.next=3;break}return Va.abrupt("return",!0);case 3:return Va.next=5,new Promise(function(ka,oo){var Oi=new MessageChannel;Oi.port1.onmessage=function(Bo){Bo.data.error?oo(Bo.data.error):ka(Bo.data)},za.postMessage({type:"skip-waiting"},[Oi.port2])});case 5:return dr(),window.location.reload(),Va.abrupt("return",!0);case 8:case"end":return Va.stop()}},Na)}));return function(){return $a.apply(this,arguments)}}(),Ta="open".concat(Date.now()),Ia=(0,jr.jsx)(xn.ZP,{type:"primary",onClick:function(){Nn.Z.destroy(Ta),kr()},children:(0,Qt.useIntl)().formatMessage({id:"app.pwa.serviceworker.updated.ok"})});Nn.Z.open({message:(0,Qt.useIntl)().formatMessage({id:"app.pwa.serviceworker.updated"}),description:(0,Qt.useIntl)().formatMessage({id:"app.pwa.serviceworker.updated.hint"}),btn:Ia,key:Ta,onClose:function(){var $a=i()(h()().mark(function za(){return h()().wrap(function(Va){for(;;)switch(Va.prev=Va.next){case 0:return Va.abrupt("return",null);case 1:case"end":return Va.stop()}},za)}));function Na(){return $a.apply(this,arguments)}return Na}()})});else if("serviceWorker"in navigator&&ta){var hn=navigator,Mn=hn.serviceWorker;Mn.getRegistrations&&Mn.getRegistrations().then(function(Tr){Tr.forEach(function(Qn){Qn.unregister()})}),Mn.getRegistration().then(function(Tr){Tr&&Tr.unregister()}),dr()}var bn=Ae(4942),zn=Ae(1413),sr=Ae(97685),wn=Ae(67294),_r=Ae(20745),mr=Ae(96974),sa=Ae(34162),fa=Ae(91),Br=Ae(87462),pa=wn.createContext(void 0);function ia(){return wn.useContext(pa)}var Fa=["redirect"];function ha(Tr){var Qn=Tr.routesById,kr=Tr.parentId,Ta=Tr.routeComponents;return Object.keys(Qn).filter(function(Ia){return Qn[Ia].parentId===kr}).map(function(Ia){var $a=Xa((0,zn.Z)({route:Qn[Ia],routeComponent:Ta[Ia],loadingComponent:Tr.loadingComponent,reactRouter5Compat:Tr.reactRouter5Compat},Tr.reactRouter5Compat&&{hasChildren:Object.keys(Qn).filter(function(za){return Qn[za].parentId===Ia}).length>0})),Na=ha({routesById:Qn,routeComponents:Ta,parentId:$a.id,loadingComponent:Tr.loadingComponent,reactRouter5Compat:Tr.reactRouter5Compat});return Na.length>0&&($a.children=Na,$a.routes=Na),$a})}function aa(Tr){var Qn=(0,mr.UO)(),kr=(0,zn.Z)((0,zn.Z)({},Tr),{},{to:(0,mr.Gn)(Tr.to,Qn)});return wn.createElement(mr.Fg,(0,Br.Z)({replace:!0},kr))}function Xa(Tr){var Qn=Tr.route,kr=Qn.redirect,Ta=(0,fa.Z)(Qn,Fa),Ia=Tr.reactRouter5Compat?va:ua;return(0,zn.Z)({element:kr?wn.createElement(aa,{to:kr}):wn.createElement(pa.Provider,{value:{route:Tr.route}},wn.createElement(Ia,{loader:wn.memo(Tr.routeComponent),loadingComponent:Tr.loadingComponent||la,hasChildren:Tr.hasChildren}))},Ta)}function la(){return wn.createElement("div",null)}function va(Tr){var Qn=ia(),kr=Qn.route,Ta=(0,sa.Ov)(),Ia=Ta.history,$a=Ta.clientRoutes,Na=(0,mr.UO)(),za={params:Na,isExact:!0,path:kr.path,url:Ia.location.pathname},uo=Tr.loader;return wn.createElement(wn.Suspense,{fallback:wn.createElement(Tr.loadingComponent,null)},wn.createElement(uo,{location:Ia.location,match:za,history:Ia,params:Na,route:kr,routes:$a},Tr.hasChildren&&wn.createElement(mr.j3,null)))}function ua(Tr){var Qn=Tr.loader;return wn.createElement(wn.Suspense,{fallback:wn.createElement(Tr.loadingComponent,null)},wn.createElement(Qn,null))}var Ra=null;function Za(){return Ra}function Ba(Tr){var Qn=Tr.history,kr=wn.useState({action:Qn.action,location:Qn.location}),Ta=(0,sr.Z)(kr,2),Ia=Ta[0],$a=Ta[1];return(0,wn.useLayoutEffect)(function(){return Qn.listen($a)},[Qn]),(0,wn.useLayoutEffect)(function(){function Na(za){Tr.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:Tr.routes,clientRoutes:Tr.clientRoutes,location:za.location,action:za.action,basename:Tr.basename,isFirst:!!za.isFirst}})}return Na({location:Ia.location,action:Ia.action,isFirst:!0}),Qn.listen(Na)},[Qn,Tr.routes,Tr.clientRoutes]),wn.createElement(mr.F0,{navigator:Qn,location:Ia.location,basename:Tr.basename},Tr.children)}function To(){var Tr=(0,sa.Ov)(),Qn=Tr.clientRoutes;return(0,mr.V$)(Qn)}var xo=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],Ko=function(Qn,kr){var Ta=Qn.basename||"/",Ia=ha({routesById:Qn.routes,routeComponents:Qn.routeComponents,loadingComponent:Qn.loadingComponent,reactRouter5Compat:Qn.reactRouter5Compat});Qn.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:Ia}});for(var $a=wn.createElement(Ba,{basename:Ta,pluginManager:Qn.pluginManager,routes:Qn.routes,clientRoutes:Ia,history:Qn.history},kr),Na=0,za=xo;Na<za.length;Na++){var uo=za[Na];$a=Qn.pluginManager.applyPlugins({type:"modify",key:uo,initialValue:$a,args:{routes:Qn.routes,history:Qn.history,plugin:Qn.pluginManager}})}var Va=function(){var oo=(0,wn.useState)({}),Oi=(0,sr.Z)(oo,2),Bo=Oi[0],ms=Oi[1],Bi=(0,wn.useState)(window.__UMI_LOADER_DATA__||{}),Pi=(0,sr.Z)(Bi,2),oi=Pi[0],gs=Pi[1],Zi=(0,wn.useCallback)(function(wi,Bl){var Ji,Pe=(((Ji=(0,mr.fp)(Ia,wi,Ta))===null||Ji===void 0?void 0:Ji.map(function(je){return je.route.id}))||[]).filter(Boolean);Pe.forEach(function(je){var J,st,Mt=window.__umi_manifest__;if(Mt){var rn=je.replace(/[\/\-]/g,"_"),cn="preload-".concat(rn,".js");if(!document.getElementById(cn)){var Wn=Object.keys(Mt).filter(function(An){return An.startsWith(rn+".")});Wn.forEach(function(An){if(!/\.(js|css)$/.test(An))throw Error("preload not support ".concat(An," file"));var Gn=Mt[An],Kr=document.createElement("link");Kr.rel="preload",Kr.as="style",An.endsWith(".js")&&(Kr.as="script",Kr.id=cn),Qn.runtimePublicPath&&(Gn=Gn.replace(new RegExp("^".concat(Qn.publicPath)),window.publicPath)),Kr.href=Gn,document.head.appendChild(Kr)})}}if(!Bl&&(J=Qn.routes[je])!==null&&J!==void 0&&J.hasServerLoader){var fr=new URLSearchParams({route:je,url:window.location.href}).toString(),da="".concat(Si(Ta),"__serverLoader?").concat(fr);fetch(da,{credentials:"include"}).then(function(An){return An.json()}).then(function(An){wn.startTransition(function(){gs(function(Gn){return(0,zn.Z)((0,zn.Z)({},Gn),{},(0,bn.Z)({},je,An))})})}).catch(console.error)}var Yn=(st=Qn.routes[je])===null||st===void 0?void 0:st.clientLoader;Yn&&!Bo[je]&&Yn().then(function(An){ms(function(Gn){return(0,zn.Z)((0,zn.Z)({},Gn),{},(0,bn.Z)({},je,An))})})})},[Bo]);return(0,wn.useEffect)(function(){return Zi(window.location.pathname,!0),Qn.history.listen(function(wi){Zi(wi.location.pathname)})},[]),(0,wn.useLayoutEffect)(function(){typeof Qn.callback=="function"&&Qn.callback()},[]),wn.createElement(sa.Il.Provider,{value:{routes:Qn.routes,routeComponents:Qn.routeComponents,clientRoutes:Ia,pluginManager:Qn.pluginManager,rootElement:Qn.rootElement,basename:Ta,clientLoaderData:Bo,serverLoaderData:oi,preloadRoute:Zi,history:Qn.history}},$a)};return Va};function xi(Tr){var Qn=Tr.rootElement||document.getElementById("root"),kr=Ko(Tr,wn.createElement(To,null));if(Tr.components)return kr;if(Tr.hydrate){_r.hydrateRoot(Qn,wn.createElement(kr,null));return}if(_r.createRoot){Ra=_r.createRoot(Qn),Ra.render(wn.createElement(kr,null));return}_r.render(wn.createElement(kr,null),Qn)}function Si(Tr){return Tr.endsWith("/")?Tr:"".concat(Tr,"/")}function Ci(){return Ga.apply(this,arguments)}function Ga(){return Ga=i()(h()().mark(function Tr(){var Qn;return h()().wrap(function(Ta){for(;;)switch(Ta.prev=Ta.next){case 0:return Qn={1:{path:"/user",layout:!1,id:"1"},2:{name:"login",path:"/user/login",parentId:"1",id:"2"},3:{path:"/welcome",name:"welcome",icon:"smile",parentId:"ant-design-pro-layout",id:"3"},4:{path:"/auth",name:"auth",icon:"crown",parentId:"ant-design-pro-layout",id:"4"},5:{path:"/auth",redirect:"/auth/sub-page",parentId:"4",id:"5"},6:{path:"/auth/auth-list",name:"auth-list",parentId:"4",id:"6"},7:{path:"/auth/menu",name:"config",parentId:"4",id:"7"},8:{path:"/",redirect:"/welcome",parentId:"ant-design-pro-layout",id:"8"},9:{path:"*",layout:!1,id:"9"},"ant-design-pro-layout":{id:"ant-design-pro-layout",path:"/",isLayout:!0}},Ta.abrupt("return",{routes:Qn,routeComponents:{1:wn.lazy(function(){return Ae.e(390).then(Ae.bind(Ae,96390))}),2:wn.lazy(function(){return Promise.all([Ae.e(432),Ae.e(423),Ae.e(905),Ae.e(784),Ae.e(445),Ae.e(366)]).then(Ae.bind(Ae,33726))}),3:wn.lazy(function(){return Ae.e(185).then(Ae.bind(Ae,9622))}),4:wn.lazy(function(){return Ae.e(390).then(Ae.bind(Ae,96390))}),5:wn.lazy(function(){return Ae.e(390).then(Ae.bind(Ae,96390))}),6:wn.lazy(function(){return Promise.all([Ae.e(432),Ae.e(423),Ae.e(774),Ae.e(784),Ae.e(799)]).then(Ae.bind(Ae,49468))}),7:wn.lazy(function(){return Promise.all([Ae.e(432),Ae.e(423),Ae.e(774),Ae.e(976)]).then(Ae.bind(Ae,38115))}),8:wn.lazy(function(){return Ae.e(390).then(Ae.bind(Ae,96390))}),9:wn.lazy(function(){return Promise.all([Ae.e(905),Ae.e(571)]).then(Ae.bind(Ae,9826))}),"ant-design-pro-layout":wn.lazy(function(){return Promise.all([Ae.e(432),Ae.e(905),Ae.e(123),Ae.e(301)]).then(Ae.bind(Ae,27626))})}});case 2:case"end":return Ta.stop()}},Tr)})),Ga.apply(this,arguments)}var lo=Ae(94980),Vo=Ae(10581),La=Ae(27484),qr=Ae.n(La),xa=Ae(40873),zr=Ae.n(xa),Mr=Ae(37412),ja=Ae.n(Mr),Ua=Ae(79212),wa=Ae.n(Ua),Ja=Ae(28734),Qa=Ae.n(Ja),Go=Ae(10285),Io=Ae.n(Go),Mo=Ae(72540),ro=Ae.n(Mo),Ei=Ae(172),Is=Ae.n(Ei),Xi=Ae(55183),Ms=Ae.n(Xi),Rs=Ae(34425),$s=Ae.n(Rs),_s=Ae(96036),ds=Ae.n(_s),fs=Ae(56176),Yo=Ae.n(fs),ps=Ae(1646),ao=Ae.n(ps);qr().extend(ja()),qr().extend(wa()),qr().extend(Qa()),qr().extend(Io()),qr().extend(ro()),qr().extend(Is()),qr().extend(Ms()),qr().extend($s()),qr().extend(ds()),qr().extend(Yo()),qr().extend(ao()),qr().extend(zr());var jl="/",qs=!1;function ji(){return vs.apply(this,arguments)}function vs(){return vs=i()(h()().mark(function Tr(){var Qn,kr,Ta,Ia,$a,Na,za,uo;return h()().wrap(function(ka){for(;;)switch(ka.prev=ka.next){case 0:return Qn=(0,lo.gD)(),ka.next=3,Ci(Qn);case 3:return kr=ka.sent,Ta=kr.routes,Ia=kr.routeComponents,ka.next=8,Qn.applyPlugins({key:"patchRoutes",type:Qt.ApplyPluginsType.event,args:{routes:Ta,routeComponents:Ia}});case 8:return $a=Qn.applyPlugins({key:"modifyContextOpts",type:Qt.ApplyPluginsType.modify,initialValue:{}}),Na=$a.basename||"/",za=$a.historyType||"hash",uo=(0,Vo.f)(t()({type:za,basename:Na},$a.historyOpts)),ka.abrupt("return",Qn.applyPlugins({key:"render",type:Qt.ApplyPluginsType.compose,initialValue:function(){var Oi={routes:Ta,routeComponents:Ia,pluginManager:Qn,rootElement:$a.rootElement||document.getElementById("root"),publicPath:jl,runtimePublicPath:qs,history:uo,historyType:za,basename:Na,callback:$a.callback},Bo=Qn.applyPlugins({key:"modifyClientRenderOpts",type:Qt.ApplyPluginsType.modify,initialValue:Oi});return xi(Bo)}})());case 13:case"end":return ka.stop()}},Tr)})),vs.apply(this,arguments)}ji(),window.g_umi={version:"4.0.88"}})()})();
......@@ -69,8 +69,8 @@ const Auth = () => {
const fie = form.validateFields()
fie.then(()=> {
( async ()=> {
let msg = await (status === 0 ? addMenu({menu:{...form.getFieldsValue()}}) : status === 1 ? saveMenu({role:{...form.getFieldsValue()}}): null)
if (isEmptyObject(msg)) {
let msg = await (status === 0 ? addMenu({menu:{...form.getFieldsValue()}}) : status === 1 ? saveMenu({menu:{...form.getFieldsValue()}}): null)
if (isEmptyObject(msg) || (msg !== null || msg !== '')) {
success()
setIsModalOpen(false);
search()
......
......@@ -82,10 +82,11 @@ const FsQr = () => {
const port = window.location.port;
console.log(domain);
console.log(port);
const src = domain + ':' + port
const src = domain
redirectUri.current = `${window?.location?.origin}/user/login`;//重定向地址,需在管理后台进行配置
goto.current = `https://passport.feishu.cn/suite/passport/oauth/authorize?client_id=cli_a3631f654971500d&redirect_uri=http://${src}/user/login&response_type=code&state=state123456`
console.log(goto.current,'++++++++++++++++++++++++')
let script = document.querySelector('#script');
if (script) {
return;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册